Rename lookup_symbol_static to lookup_symbol_in_static_block,
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
24d864bb
DE
12014-11-06 Doug Evans <xdje42@gmail.com>
2
3 * symtab.c (lookup_static_symbol): Renamed from
4 lookup_static_symbol_aux. All callers updated.
5 (lookup_symbol_in_static_block): Renamed from lookup_symbol_static.
6 All callers updated.
7
358d6ab3
DE
82014-11-06 Doug Evans <xdje42@gmail.com>
9
10 * block.h (ALL_BLOCK_SYMBOLS_WITH_NAME): New macro.
11 * block.c (block_lookup_symbol): Use it.
12 * cp-support.c (make_symbol_overload_list_block): Use it.
13 * symtab.c (iterate_over_symbols): Use it.
14
16b2eaa1
DE
152014-11-06 Doug Evans <xdje42@gmail.com>
16
17 * symtab.c (lookup_block_symbol): Moved to ...
18 * block.c (block_lookup_symbol): ... here and renamed.
19 All callers updated.
20 * block.h (block_lookup_symbol): Declare.
21 * symtab.h (lookup_block_symbol): Delete.
22
2dd2cd1c
DE
232014-11-06 Doug Evans <xdje42@gmail.com>
24
25 * ada-lang.c (ada_make_symbol_completion_list): Use
26 ALL_PRIMARY_SYMTABS instead of ALL_SYMTABS.
27 * symtab.c (lookup_objfile_from_block): Ditto.
28
d4c58915
DE
292014-11-06 Doug Evans <xdje42@gmail.com>
30
31 * gdbtypes.h (TYPE_CODE_CLASS): Delete. All uses changed to use
32 TYPE_CODE_STRUCT.
33
9c1877ea
DE
342014-11-06 Doug Evans <xdje42@gmail.com>
35
36 * objfiles.c (get_objfile_arch): Constify.
37 * objfiles.h (get_objfile_arch): Update prototype.
38 * solib.c (solib_global_lookup): Fetch arch from objfile,
39 not target_gdbarch.
40
426a4079
SL
412014-11-06 Sandra Loosemore <sandra@codesourcery.com>
42
43 * nios2-tdep.c (wild_insn): Delete.
44 (profiler_insn, irqentry_insn): Delete.
45 (nios2_match_sequence): Delete.
46 (nios2_analyze_prologue): Update comments. Remove matching
47 of obsolete profiler_insn and irqentry_insn sequences.
48
ee11262d
AM
492014-11-05 Alan Modra <amodra@gmail.com>
50
51 * charset.c (convert_between_encodings): Shrink obstack using
52 obstack_blank_fast.
53 * minsyms.c (install_minimal_symbols): Likewise.
1ae1b8cc
AM
54 * cp-valprint.c (cp_print_value_fields): Cast obstack_next_free
55 to char* before doing pointer arithmetic.
ee11262d 56
c87e6d00
SM
572014-11-04 Simon Marchi <simon.marchi@ericsson.com>
58
59 * tui/tui.c (tui_enable): Pass stdout and stdin to newterm.
60
441ef17f
PA
612014-11-04 Pedro Alves <palves@redhat.com>
62
63 * breakpoint.c (breakpoint_thread_match): Delete function.
64 * breakpoint.h (breakpoint_thread_match): Delete declaration.
65
e0f52461
SC
662014-11-03 Siva Chandra Reddy <sivachandra@google.com>
67
68 PR c++/17494
69 * eval.c (evaluate_subexp_standard): Evaluate the "object" and
70 the method args also under EVAL_SKIP when evaluating method
71 calls under EVAL_SKIP.
72
a0b4d890
YQ
732014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
74
75 * dwarf2loc.c (read_pieced_value): Do big endian
76 processing only if gdb_regnum is not -1.
77 (write_pieced_value): Ditto.
78
792014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
80
81 * arm-linux-tdep.c (arm_linux_init_abi): Use
82 info.byte_order_for_code to choose endianity of breakpoint
83 instructions snippets.
84
852014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
86
87 * arm-tdep.c (extract_arm_insn): Use
88 gdbarch_byte_order_for_code to read arm instruction.
89
e82149ff
DE
902014-11-02 Doug Evans <xdje42@gmail.com>
91
92 * mdebugread.c (parse_procedure): Delete unnecessary forward decl.
93
d7ee84f1
DE
942014-11-02 Doug Evans <xdje42@gmail.com>
95
96 * xcoffread.c (process_linenos): Delete unnecessary zeroing of
97 main_subfile before returning.
98
4f072d17
DE
992014-10-31 Doug Evans <xdje42@gmail.com>
100
101 * objfiles.h (ALL_PSPACE_OBJFILES_SAFE): Delete, unused.
102 (ALL_PSPACE_SYMTABS, ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
103
8301c89e
DE
1042014-10-31 Doug Evans <xdje42@gmail.com>
105
106 * valops.c (value_cast_pointers): Fix whitespace.
107 (typecmp, search_struct_method, value_struct_elt, find_oload_champ):
108 Ditto.
109
02be9a71
DE
1102014-10-30 Doug Evans <dje@google.com>
111
112 * NEWS: Mention ability add attributes to gdb.Objfile and
113 gdb.Progspace objects.
114 * python/py-objfile.c (objfile_object): New member dict.
115 (objfpy_dealloc): Py_XDECREF dict.
116 (objfpy_initialize): Initialize dict.
117 (objfile_getset): Add __dict__.
118 (objfile_object_type): Set tp_dictoffset member.
119 * python/py-progspace.c (progspace_object): New member dict.
120 (pspy_dealloc): Py_XDECREF dict.
121 (pspy_initialize): Initialize dict.
122 (pspace_getset): Add __dict__.
123 (pspace_object_type): Set tp_dictoffset member.
124
6427bef6
YQ
1252014-10-30 Yao Qi <yao@codesourcery.com>
126
127 * python/lib/gdb/command/prompt.py (before_prompt_hook): Don't
128 replace '\\' with '\\\\'.
129
f60325be
JB
1302014-10-29 Joel Brobecker <brobecker@adacore.com>
131
132 GDB 7.8.1 released.
133
ab917dfb
PA
1342014-10-29 Pedro Alves <palves@redhat.com>
135
136 PR gdb/17408
137 * infrun.c (switch_back_to_stepped_thread): Use currently_stepping
138 instead of assuming a thread with a stepping range is always
139 stepping.
140
d3d4baed
PA
1412014-10-29 Pedro Alves <palves@redhat.com>
142
143 PR python/17372
144 * event-top.c (change_line_handler): Call
145 gdb_rl_callback_handler_remove instead of
146 rl_callback_handler_remove.
147 (callback_handler_installed): New global.
148 (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
149 (gdb_rl_callback_handler_reinstall): New functions.
150 (display_gdb_prompt): Call gdb_rl_callback_handler_remove and
151 gdb_rl_callback_handler_install instead of
152 rl_callback_handler_remove and rl_callback_handler_install.
153 (gdb_disable_readline): Call gdb_rl_callback_handler_remove
154 instead of rl_callback_handler_remove.
155 * event-top.h (gdb_rl_callback_handler_remove)
156 (gdb_rl_callback_handler_install)
157 (gdb_rl_callback_handler_reinstall): New declarations.
158 * infrun.c (reinstall_readline_callback_handler_cleanup): New
159 cleanup function.
160 (fetch_inferior_event): Install it.
161 * top.c (gdb_readline_wrapper_line) Call
162 gdb_rl_callback_handler_remove instead of
163 rl_callback_handler_remove.
164 (gdb_readline_wrapper_cleanup): Don't call
165 rl_callback_handler_install.
166
6e5d7f39
PA
1672014-10-29 Pedro Alves <palves@redhat.com>
168
169 * event-top.c (command_line_handler): Clear the first byte of
170 linebuffer, when it is first allocated.
171
551cb6a5
PA
1722014-10-29 Pedro Alves <palves@redhat.com>
173
174 * tui/tui.c (tui_rl_switch_mode): Wrap tui_enable/tui_disable in
175 TRY_CATCH.
176
1e1e619b
PA
1772014-10-29 Pedro Alves <palves@redhat.com>
178
179 PR tui/16138
180 PR tui/17519
181 * tui/tui-interp.c (tui_is_toplevel): Delete global.
182 (tui_allowed_p): Delete function.
183 * tui/tui.c: Include "interps.h".
184 (tui_enable): Don't use tui_allowed_p. Error out here with
185 detailed error messages if the TUI is the top level interpreter,
186 or if output is not a terminal. Use newterm instead of initscr,
187 and error out if initializing the terminal fails. Also error out if
188 the terminal doesn't support cursor addressing.
189 * tui/tui.h (tui_allowed_p): Delete declaration.
190
6041179a
JB
1912014-10-29 Joel Brobecker <brobecker@adacore.com>
192
193 * arm-tdep.c (arm_skip_stack_protector): Return early if
194 address loaded by first "ldr" instruction does not have
195 a corresponding minimal symbol. Update comment.
196
6ae274b7
YQ
1972014-10-29 Yao Qi <yao@codesourcery.com>
198
199 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Compute the
200 loaded address correctly of ldr instruction.
201
7f5ef605
PA
2022014-10-28 Pedro Alves <palves@redhat.com>
203
204 PR gdb/12623
205 * gdbthread.h (struct thread_info) <stepped_breakpoint>: New
206 field.
207 * infrun.c (resume) <stepping breakpoint instruction>: Set the
208 thread's stepped_breakpoint field. Skip if reverse debugging.
209 Add comment.
210 (init_thread_stepping_state, handle_signal_stop): Clear the
211 thread's stepped_breakpoint field.
212
7d1a114c
PA
2132014-10-27 Pedro Alves <palves@redhat.com>
214
215 * remote.c (remote_thread_alive): New, factored out from ...
216 (remote_thread_alive): ... this.
217 (remote_update_thread_list): Bail out before deleting threads if
218 the target returned an empty list, and, the current thread has a
219 magic/fake ptid.
220
e5f8a7cc
PA
2212014-10-27 Pedro Alves <palves@redhat.com>
222
223 * infrun.c (handle_signal_stop): Also skip handlers when a random
224 signal arrives while handling a "stepi" or a "nexti". Set the
225 thread's 'step_after_step_resume_breakpoint' flag.
226
71e396f9
LM
2272014-10-27 Luis Machado <lgustavo@codesourcery.com>
228
229 * arm-tdep.c (INSN_S_L_BIT_NUM): Document.
230 (arm_record_ld_st_imm_offset): Reimplement to cover all
231 load/store cases for ARM opcode 010.
232 (arm_record_ld_st_multiple): Reimplement to cover all
233 load/store cases for ARM opcode 100.
234
3aee438b
DE
2352014-10-26 Doug Evans <xdje42@gmail.com>
236
237 * symtab.c (lookup_symbol_aux_local): Fix typo in comment.
238
f88cb4b6
DE
2392014-10-26 Doug Evans <xdje42@gmail.com>
240
241 * symfile.h (struct quick_symbol_functions) <lookup_symbol>: Rename
242 parameter "kind" to "block_index".
243 * symtab.c (error_in_psymtab_expansion): Rename parameter "kind" to
244 "block_index".
245 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Ditto.
246
a023a30f
DE
2472014-10-26 Doug Evans <xdje42@gmail.com>
248
249 * block.h (ALL_BLOCK_SYMBOLS): Fix comment.
250
4c35218e
DE
2512014-10-26 Doug Evans <xdje42@gmail.com>
252
253 * block.c (allocate_block): Use OBSTACK_ZALLOC instead of
254 obstack_alloc.
255
f08e8df3
DE
2562014-10-26 Doug Evans <xdje42@gmail.com>
257
258 * parser-defs.h (block_found): Move decl from here ...
259 * symtab.h (block_found): ... to here.
260
cf901d3b
DE
2612014-10-26 Doug Evans <xdje42@gmail.com>
262
263 * symtab.h (struct field_of_this_result): Fix typo in comment.
264 (lookup_symbol_in_language): Move function comment here.
265 (lookup_symbol): Improve function comment.
266 (basic_lookup_symbol_nonlocal): Ditto.
267 (lookup_symbol_static, lookup_symbol_global): Ditto.
268 (lookup_symbol_aux_block): Ditto.
269 (lookup_language_this): Add function comment.
270 (lookup_static_symbol_aux): Explicitly mark as extern. Improve
271 function comment.
272 (lookup_block_symbol): Improve function comment.
273 (lookup_struct): Fix capitalization in function comment.
274 (lookup_transparent_type): Add function comment.
275 (lookup_global_symbol_from_objfile): Explicitly mark as extern.
276 Improve function comment.
277 (lookup_objfile_from_block): Add function comment.
278 * symtab.c (lookup_symbol_in_language): Update function comment.
279 (lookup_symbol, lookup_language_this): Ditto.
280 (lookup_static_symbol_aux, lookup_objfile_from_block): Ditto.
281 (lookup_symbol_aux_block, lookup_global_symbol_from_objfile): Ditto.
282 (basic_lookup_symbol_nonlocal): Ditto.
283 (lookup_symbol_static, lookup_symbol_global): Ditto.
284 (lookup_transparent_type, lookup_block_symbol): Ditto.
285
ff6c39cf
DE
2862014-10-25 Doug Evans <xdje42@gmail.com>
287
288 * symtab.c (types_info): Delete forward decl.
289 (functions_info, variables_info, sources_info): Ditto.
290 (_initialize_symtab): Rewrite forward decl to use
291 initialize_file_ftype.
292
ec201f0c
DE
2932014-10-25 Doug Evans <xdje42@gmail.com>
294
295 * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
296
ca040673
DE
2972014-10-25 Doug Evans <xdje42@gmail.com>
298
299 * dwarf2read.c (process_structure_scope): Remove second (nested) copy
300 of local var child_die.
301
6f259a23
DB
3022014-10-24 Don Breazeal <donb@codesourcery.com>
303
304 * infrun.c (follow_fork_inferior): Update fork message printing
305 to use target_terminal_ours_for_output instead of
306 target_terminal_ours, to use _() for all format strings, to print
307 "vfork" instead of "fork" for vforks, and to add a detach message.
308 (handle_vfork_child_exec_or_exit): Update message printing to use
309 target_terminal_ours_for_output instead of target_terminal_ours, to
310 use _() for all format strings, and to fix some formatting.
311
09dd9a69
PA
3122014-10-24 Pedro Alves <palves@redhat.com>
313
314 * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
315 * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
316 * config/vax/vax.mh: Delete.
317 * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
318 obsolete configurations section.
319 * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
320 * vax-nat.c: Delete file.
321
5ab806de
PA
3222014-10-24 Pedro Alves <palves@redhat.com>
323
324 * NEWS (Removed targets): Add OS/arch column.
325
3433cfa5
SC
3262014-10-24 Siva Chandra Reddy <sivachandra@google.com>
327
328 * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
329 on the arg type of a constructor only if it is of reference type.
330
96ba4233
SL
3312014-10-23 Sandra Loosemore <sandra@codesourcery.com>
332
333 * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
334 accessors and constants from nios2 opcodes update.
335 (nios2_get_next_pc): Likewise.
336
28153fd3
DE
3372014-10-19 Doug Evans <xdje42@gmail.com>
338
339 * gdbthread.h (set_running): Fix comment.
340 (set_executing, finish_thread_state): Fix comment.
341
fc9b8e47
DE
3422014-10-18 Doug Evans <xdje42@gmail.com>
343
344 * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
345
4ffbba72
DE
3462014-10-17 Doug Evans <dje@google.com>
347
348 * NEWS: Mention new event gdb.clear_objfiles.
349 * python/py-event.h (emit_clear_objfiles_event): Clear
350 * python/py-events.h (events_object): New member clear_objfiles.
351 * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
352 event.
353 * python/py-inferior.c (python_new_objfile): If objfile is NULL,
354 emit clear_objfiles event.
355 * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
356 function.
357 (emit_clear_objfiles_event): New function.
358 (clear_objfiles): New event.
359 * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
360 Declare.
361 * python/python.c (_initialize_python): Call
362 gdbpy_initialize_clear_objfiles_event.
363
d096d8c1
DE
3642014-10-17 Doug Evans <dje@google.com>
365
366 * NEWS: Mention new gdb.Objfile.progspace attribute.
367 * python/py-objfile.c (objfpy_get_progspace): New function.
368 (objfile_getset): New entry for "progspace".
369
6c4486e6
PA
3702014-10-17 Pedro Alves <palves@redhat.com>
371
372 PR gdb/17471
373 * infcmd.c (strip_bg_char): Change prototype and rewrite. Now
374 returns a copy of the input.
375 (run_command_1, continue_command, step_1, jump_command)
376 (signal_command, until_command, advance_command, finish_command)
377 (attach_command): Adjust and install a cleanup to free the
378 stripped args.
379
0ff33695
PA
3802014-10-17 Pedro Alves <palves@redhat.com>
381
382 PR gdb/17300
383 * infcmd.c (continue_1): If continuing all threads in the
384 foreground, make sure the inferior's terminal settings are put in
385 effect.
386
6fdebc3d
PA
3872014-10-17 Pedro Alves <palves@redhat.com>
388
389 PR gdb/17472
390 * annotate.c (annotate_breakpoints_invalid): Use
391 target_terminal_our_for_output instead of target_terminal_ours.
392 Give back the terminal to the target.
393 (annotate_frames_invalid): Likewise.
394
5842f62a
PA
3952014-10-17 Pedro Alves <palves@redhat.com>
396
397 * target.c (enum terminal_state): New enum.
398 (terminal_state): New global.
399 (target_terminal_init): New function.
400 (target_terminal_inferior): Skip if inferior already owns the
401 terminal.
402 (target_terminal_ours, target_terminal_ours_for_output): New
403 functions.
404 * target.h (target_terminal_init): Convert to function prototype.
405 (target_terminal_ours_for_output): Convert to function prototype
406 and tweak comment.
407 (target_terminal_ours): Convert to function prototype and tweak
408 comment.
409 * windows-nat.c (do_initial_windows_stuff): Call
410 target_terminal_init instead of child_terminal_init_with_pgrp.
411
32a8097b
PA
4122014-10-17 Pedro Alves <palves@redhat.com>
413
414 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
415 (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
416 (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
417 solib-osf.c.
418 * NEWS: Mention that support for alpha*-*-osf* has been removed.
419 * ada-lang.h [__alpha__ && __osf__]
420 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
421 * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
422 * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
423 GDB_OSABI_OSF1.
424 * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
425 files.
426 * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
427 (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
428 * configure: Regenerate.
429 * configure.ac: Remove references to osf.
430 * configure.host: Handle alpha*-*-osf* in the obsolete hosts
431 section. Remove all other references to osf.
432 * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
433 Remove all other references to osf.
434 * dec-thread.c: Delete file.
435 * defs.h (GDB_OSABI_OSF1): Delete.
436 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
437 defined.
438 * osabi.c (gdb_osabi_names): Delete "OSF/1".
439 * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
440 Delete code.
441 (unconditionally_kill_inferior)
442 [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
443 * solib-osf.c: Delete file.
444
80134cf5
PA
4452014-10-17 Pedro Alves <palves@redhat.com>
446
447 * remote.c (clear_threads_listing_context): Move higher up, out of
448 the HAVE_LIBEXPAT guard.
449
89c7137f
TG
4502014-10-16 Tristan Gingold <gingold@adacore.com>
451
452 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
453 (i386_darwin_store_inferior_registers): Sanitize gs and fs values
454 on amd64.
455
44ee4a52
PA
4562014-10-15 Pedro Alves <palves@redhat.com>
457
458 * dec-thread.c (dec_thread_count_gdb_threads)
459 (dec_thread_add_gdb_thread): Delete.
460 (dec_thread_update_thread_list): Delete.
461 (dec_thread_find_new_threads): Rename to ...
462 (dec_thread_update_thread_list): ... this. Delete GDB-size
463 threads that are no longer found in dec_thread_list.
464 (resync_thread_list): Delete.
465 (dec_thread_wait): Call dec_thread_update_thread_list instead of
466 resync_thread_list.
467
ab970af1
PA
4682014-10-15 Pedro Alves <palves@redhat.com>
469
470 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
471 * remote.c (remote_update_thread_list): Skip calling prune_threads
472 if any thread listing method is supported, and instead walk over
473 the set of remote threads listed, deleting those that are not
474 found in GDB's thread list.
475
e8032dde
PA
4762014-10-15 Pedro Alves <palves@redhat.com>
477
478 * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
479 * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
480 (bsd_uthread_update_thread_list): ... this. Call prune_threads.
481 (bsd_uthread_target): Adjust.
482 * corelow.c (core_open): Adjust.
483 * dec-thread.c (dec_thread_find_new_threads): Update comment.
484 (dec_thread_update_thread_list): New function.
485 (init_dec_thread_ops): Adjust.
486 * gdbthread.h (prune_threads): New declaration.
487 * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
488 (thread_db_update_thread_list): ... this. Call prune_threads.
489 (init_thread_db_ops): Adjust.
490 * nto-procfs.c (procfs_find_new_threads): Rename to ...
491 (procfs_update_thread_list): ... this. Call prune_threads.
492 (procfs_attach, procfs_create_inferior, init_procfs_targets):
493 Adjust.
494 * obsd-nat.c (obsd_find_new_threads): Rename to ...
495 (obsd_update_thread_list): ... this. Call prune_threads.
496 (obsd_add_target): Adjust.
497 * procfs.c (procfs_target): Adjust.
498 (procfs_notice_thread): Update comment.
499 (procfs_find_new_threads): Rename to ...
500 (procfs_update_thread_list): ... this. Call prune_threads.
501 * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
502 comment.
503 (ravenscar_wait): Adjust.
504 (ravenscar_find_new_threads): Rename to ...
505 (ravenscar_update_thread_list): ... this. Call prune_threads.
506 (init_ravenscar_thread_ops): Adjust.
507 * record-btrace.c (record_btrace_find_new_threads): Rename to ...
508 (record_btrace_update_thread_list): ... this. Adjust comment.
509 (init_record_btrace_ops): Adjust.
510 * remote.c (remote_threads_info): Rename to ...
511 (remote_update_thread_list): ... this. Call prune_threads.
512 (remote_start_remote, extended_remote_attach_1, init_remote_ops):
513 Adjust.
514 * sol-thread.c (check_for_thread_db): Adjust.
515 (sol_find_new_threads_callback): Rename to ...
516 (sol_update_thread_list_callback): ... this.
517 (sol_find_new_threads): Rename to ...
518 (sol_update_thread_list): ... this. Call prune_threads. Adjust.
519 (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
520 * target-delegates.c: Regenerate.
521 * target.c (target_find_new_threads): Rename to ...
522 (target_update_thread_list): ... this.
523 * target.h (struct target_ops): Rename to_find_new_threads field
524 to to_update_thread_list.
525 (target_find_new_threads): Rename to ...
526 (target_update_thread_list): ... this.
527 * thread.c (prune_threads): Make extern.
528 (update_thread_list): Adjust.
529
6dc54d91
PA
5302014-10-15 Pedro Alves <palves@redhat.com>
531
532 * remote.c (remote_get_threadlist, remote_threadlist_iterator):
533 Add describing comment. Return -1 if the qL packet is not
534 supported.
535 (struct thread_item, thread_item_t): Move higher up in
536 the file. Add comments.
537 (struct threads_parsing_context): Move higher up in
538 the file, add comments, and remote to ...
539 (struct threads_listing_context): ... this.
540 (remote_newthread_step): Don't add the thread to GDB's thread
541 database here. Instead push it to the thread_listing_context
542 list.
543 (remote_find_new_threads): Rename to ...
544 (remote_get_threads_with_ql): ... this. Add target_ops and
545 targets_listing_context parameters. Pass down context.
546 (start_thread): Adjust.
547 (clear_threads_parsing_context): Rename to ...
548 (clear_threads_listing_context): ... this.
549 (remote_get_threads_with_qxfer): New, with parts salvaged from old
550 remote_threads_info.
551 (remote_get_threads_with_qthreadinfo): Ditto.
552 (remote_threads_info): Reimplement.
553
36728e82
PA
5542014-10-15 Pedro Alves <palves@redhat.com>
555
556 * infrun.c (resume): Don't force displaced-stepping for all
557 single-steps on software single-stepping archs.
558
34b7e8a6
PA
5592014-10-15 Pedro Alves <palves@redhat.com>
560
561 * breakpoint.c (single_step_breakpoints): Delete global.
562 (insert_single_step_breakpoint): Adjust to store the breakpoint
563 pointer in the current thread.
564 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
565 (cancel_single_step_breakpoints): Delete functions.
566 (breakpoint_has_location_inserted_here): Make extern.
567 (single_step_breakpoint_inserted_here_p): Adjust to walk the
568 breakpoint list.
569 * breakpoint.h (breakpoint_has_location_inserted_here): New
570 declaration.
571 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
572 (cancel_single_step_breakpoints): Remove declarations.
573 * gdbthread.h (struct thread_control_state)
574 <single_step_breakpoints>: New field.
575 (delete_single_step_breakpoints)
576 (thread_has_single_step_breakpoints_set)
577 (thread_has_single_step_breakpoint_here): New declarations.
578 * infrun.c (follow_exec): Also clear the single-step breakpoints.
579 (singlestep_breakpoints_inserted_p, singlestep_ptid)
580 (singlestep_pc): Delete globals.
581 (infrun_thread_ptid_changed): Remove references to removed
582 globals.
583 (resume_cleanups): Delete the current thread's single-step
584 breakpoints.
585 (maybe_software_singlestep): Remove references to removed globals.
586 (resume): Adjust to use thread_has_single_step_breakpoints_set and
587 delete_single_step_breakpoints.
588 (init_wait_for_inferior): Remove references to removed globals.
589 (delete_thread_infrun_breakpoints): Delete the thread's
590 single-step breakpoints too.
591 (delete_just_stopped_threads_infrun_breakpoints): Don't delete
592 single-step breakpoints here.
593 (delete_stopped_threads_single_step_breakpoints): New function.
594 (adjust_pc_after_break): Adjust to use
595 thread_has_single_step_breakpoints_set.
596 (handle_inferior_event): Remove references to removed globals.
597 Use delete_stopped_threads_single_step_breakpoints.
598 (handle_signal_stop): Adjust to per-thread single-step
599 breakpoints. Swap test order to do cheaper tests first.
600 (switch_back_to_stepped_thread): Extend debug output. Remove
601 references to removed globals.
602 * record-full.c (record_full_wait_1): Adjust to per-thread
603 single-step breakpoints.
604 * thread.c (delete_single_step_breakpoints)
605 (thread_has_single_step_breakpoints_set)
606 (thread_has_single_step_breakpoint_here): New functions.
607 (clear_thread_inferior_resources): Also delete the thread's
608 single-step breakpoints.
609
5b834a0a
PA
6102014-10-15 Pedro Alves <palves@redhat.com>
611
612 * thread.c (delete_thread_breakpoint): New function.
613 (delete_step_resume_breakpoint)
614 (delete_exception_resume_breakpoint): Use it.
615 (delete_at_next_stop): New function.
616 (clear_thread_inferior_resources): Use delete_at_next_stop.
617
a1fd2fa5
PA
6182014-10-15 Pedro Alves <palves@redhat.com>
619
620 * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
621 (breakpoint_inserted_here_p): ... here. Remove special case for
622 software single-step breakpoints.
623 (find_non_raw_software_breakpoint_inserted_here): Inline ...
624 (software_breakpoint_inserted_here_p): ... here. Remove special
625 case for software single-step breakpoints.
626 (bp_target_info_copy_insertion_state)
627 (deprecated_insert_raw_breakpoint)
628 (deprecated_remove_raw_breakpoint): Delete functions.
629 * breakpoint.h (deprecated_insert_raw_breakpoint)
630 (deprecated_remove_raw_breakpoint): Remove declarations.
631
7c16b83e
PA
6322014-10-15 Pedro Alves <palves@redhat.com>
633
634 PR breakpoints/9649
635 * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
636 Delete array globals.
637 (single_step_breakpoints): New global.
638 (breakpoint_xfer_memory): Remove special handling for single-step
639 breakpoints.
640 (update_breakpoints_after_exec): Delete bp_single_step
641 breakpoints.
642 (detach_breakpoints): Remove special handling for single-step
643 breakpoints.
644 (breakpoint_init_inferior): Delete bp_single_step breakpoints.
645 (bpstat_stop_status): Add comment.
646 (bpstat_what, bptype_string, print_one_breakpoint_location)
647 (adjust_breakpoint_address, init_bp_location): Handle
648 bp_single_step.
649 (new_single_step_breakpoint): New function.
650 (set_momentary_breakpoint, bkpt_remove_location): Remove special
651 handling for single-step breakpoints.
652 (insert_single_step_breakpoint, single_step_breakpoints_inserted)
653 (remove_single_step_breakpoints, cancel_single_step_breakpoints):
654 Rewrite.
655 (detach_single_step_breakpoints, find_single_step_breakpoint):
656 Delete functions.
657 (breakpoint_has_location_inserted_here): New function.
658 (single_step_breakpoint_inserted_here_p): Rewrite.
659 * breakpoint.h: Remove FIXME.
660 (enum bptype) <bp_single_step>: New enum value.
661 (insert_single_step_breakpoint): Update comment.
662 * infrun.c (resume_cleanups)
663 (delete_step_thread_step_resume_breakpoint): Remove single-step
664 breakpoints.
665 (fetch_inferior_event): Install a cleanup that removes infrun
666 breakpoints.
667 (switch_back_to_stepped_thread) <expect thread advanced also>:
668 Clear step-over info.
669
0cbcdb96
PA
6702014-10-15 Pedro Alves <palves@redhat.com>
671
672 * infrun.c (delete_step_resume_breakpoint_callback): Delete.
673 (delete_thread_infrun_breakpoints): New function, with parts
674 salvaged from delete_step_resume_breakpoint_callback.
675 (delete_step_thread_step_resume_breakpoint): Delete.
676 (for_each_just_stopped_thread_callback_func): New typedef.
677 (for_each_just_stopped_thread): New function.
678 (delete_just_stopped_threads_infrun_breakpoints): New function.
679 (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
680 (delete_just_stopped_threads_infrun_breakpoints_cleanup):
681 ... this. Adjust.
682 (wait_for_inferior, fetch_inferior_event): Adjust to renames.
683
963f9c80
PA
6842014-10-15 Pedro Alves <palves@redhat.com>
685
686 * breakpoint.c (should_be_inserted): Don't insert watchpoints if
687 trying to step past a non-steppable watchpoint.
688 * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
689 field.
690 * infrun.c (struct step_over_info): Add new field
691 'nonsteppable_watchpoint_p' and adjust comments.
692 (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
693 Adjust.
694 (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
695 (stepping_past_nonsteppable_watchpoint): New function.
696 (step_over_info_valid_p): Also return true if stepping past a
697 nonsteppable watchpoint.
698 (proceed): Adjust call to set_step_over_info. Remove reference to
699 init_infwait_state.
700 (init_wait_for_inferior): Remove reference to init_infwait_state.
701 (waiton_ptid): Delete global.
702 (struct execution_control_state)
703 <stepped_after_stopped_by_watchpoint>: Delete field.
704 (wait_for_inferior, fetch_inferior_event): Always pass
705 minus_one_ptid to target_wait.
706 (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
707 field.
708 (init_infwait_state): Delete function.
709 (handle_inferior_event): Remove infwait_state handling.
710 (handle_signal_stop) <watchpoints handling>: Adjust after
711 stepped_after_stopped_by_watchpoint removal. Don't remove
712 breakpoints here nor set infwait_state. Set the thread's
713 stepping_over_watchpoint flag, and call keep_going instead.
714 (keep_going): Handle stepping_over_watchpoint. Adjust
715 set_step_over_info calls.
716 * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
717 function.
718
6cc83d2a
PA
7192014-10-15 Pedro Alves <palves@redhat.com>
720
721 * infrun.c (step_over_info_valid_p): New function.
722 (resume): Use step_over_info_valid_p instead of checking the
723 threads's trap_expected flag.
724
6979730b
DE
7252014-10-15 Doug Evans <dje@google.com>
726 Walfred Tedeschi <walfred.tedeschi@intel.com>
727
728 PR python/17364
729 * python/lib/gdb/__init__.py (packages): Add "printer".
730 * python/lib/gdb/command/bound_registers.py: Moved to ...
731 * python/lib/gdb/printer/bound_registers.py: ... here.
732 Add printer to global set of builtin printers. Rename printer from
733 "bound" to "mpx_bound128".
734 * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
735 registered as global "builtin" printer.
736 (add_builtin_pretty_printer): New function.
737 * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
738 gdb/printer/__init__.py.
739
35a49624
IB
7402014-10-15 Iain Buclaw <ibuclaw@gdcproject.org>
741
742 * Makefile.in (SFILES): Remove d-support.c.
743 (COMMON_OBS): Remove d-support.o.
744 * d-lang.h (d_parse_symbol): Remove declaration.
745 * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
746 * d-support.c: Remove file.
747
8fa0c4f8
AA
7482014-10-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
749
750 * gdb/infrun.c (process_event_stop_test): Apply
751 gdbarch_addr_bits_remove to longjmp resume address.
752
3666da81
PA
7532014-10-15 Pedro Alves <palves@redhat.com>
754
755 * regformats/microblaze.dat: Delete file.
756
449aa9df
AKA
7572014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
758
759 * features/Makefile (microblaze-expedite): Replace pc with rpc.
760 * regformats/microblaze-with-stack-protect.dat: Regenerate.
761
ebb8ece2
SC
7622014-10-15 Siva Chandra Reddy <sivachandra@google.com>
763
764 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
765 as non-trivial.
766
82c48ac7
SC
7672014-10-15 Siva Chandra Reddy <sivachandra@google.com>
768
769 PR c++/13403
770 PR c++/15154
771 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
772 with qualified args.
773
c40cc657
JB
7742014-10-14 Joel Brobecker <brobecker@adacore.com>
775
776 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
777 of the case where the second operand is a pointer.
778 <BINOP_SUB>: Likewise.
779
0ea5cda8
SDJ
7802014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
781
782 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
783 only if it is not NULL.
784 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
785 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
786 (struct probe_ops) <clear_semaphore>: Likewise.
787 * tracepoint.c (start_tracing): Call set_semaphore only if it is
788 not NULL.
789 (stop_tracing): Likewise, for clear_semaphore.
790
f7088df3
SDJ
7912014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
792
793 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
794 using language_c, instead of current_language.
795
4e1bbde0
DE
7962014-10-13 Doug Evans <dje@google.com>
797
6ff5a0f6 798 * python/py-objfile.c (objfpy_initialize): New function.
4e1bbde0 799 (objfpy_new, objfile_to_objfile_object): Call it.
6ff5a0f6 800 * python/py-progspace.c (pspy_initialize): New function.
4e1bbde0
DE
801 (pspy_new, pspace_to_pspace_object): Call it.
802
c780cc2f
JK
8032014-10-13 Miroslav Franc <mfranc@redhat.com>
804 Jan Kratochvil <jan.kratochvil@redhat.com>
805
806 Fix "save breakpoints" for "catch" command.
807 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
808 newline.
809
99894e11
JK
8102014-10-12 Miroslav Franc <mfranc@redhat.com>
811
812 Fix "save breakpoints" for "disable $bpnum" command.
813 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
814
3831839c
PA
8152014-10-10 Pedro Alves <palves@redhat.com>
816
817 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
818 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
819 (HFILES_NO_SRCDIR): Remove solib-irix.h.
820 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
821 and been removed.
822 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
823 * configure.ac: Remove references to IRIX.
824 * configure.host: Add *-*-irix* to the obsolete hosts section.
825 Remove all other references to irix.
826 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
827 Delete files.
828
cc3afae2
AKA
8292014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
830
831 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
832 isn't valid, release the tdesc arch data and return NULL.
833
cdfa0b0a
PA
8342014-10-10 Pedro Alves <palves@redhat.com>
835
836 * linux-tdep.c: Include observer.h.
837 (linux_inferior_data): New global.
838 (struct linux_info): New structure.
839 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
840 (get_linux_inferior_data): New functions.
841 (linux_vsyscall_range): Rename to ...
842 (linux_vsyscall_range_raw): ... this.
843 (linux_vsyscall_range): New function; handles caching.
844 (_initialize_linux_tdep): Register linux_inferior_data. Install
845 inferior_exit and inferior_appeared observers.
846
8b9a549d
PA
8472014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
848 Pedro Alves <palves@redhat.com>
849
850 PR symtab/14466
851 * solib-svr4.c (svr4_read_so_list): Rename to ...
852 (svr4_current_sos_1): ... this and change the function comment.
853 (svr4_current_sos): New function.
854
3437254d
PA
8552014-10-10 Pedro Alves <palves@redhat.com>
856
857 * arch-utils.c (default_vsyscall_range): New function.
858 * arch-utils.h (default_vsyscall_range): New declaration.
859 * gdbarch.sh (vsyscall_range): New hook.
860 * gdbarch.h, gdbarch.c: Regenerate.
861 * linux-tdep.c (linux_vsyscall_range): New function.
862 (linux_init_abi): Install linux_vsyscall_range as
863 vsyscall_range gdbarch hook.
864 * memrange.c (address_in_mem_range): New function.
865 * memrange.h (address_in_mem_range): New declaration.
866 * symfile-mem.c (find_vdso_size): Delete function.
867 (add_vsyscall_page): Use gdbarch_vsyscall_range.
868
31cc0b80
PA
8692014-10-10 Pedro Alves <palves@redhat.com>
870
871 * infrun.c (normal_stop): Fix typo in comment.
872
3e3286a2
SDJ
8732014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
874
875 PR tdep/9390
876 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
877 typo when using logical AND to determine instruction type.
878
fcbdedf8
YQ
8792014-10-09 Yao Qi <yao@codesourcery.com>
880
881 * infrun.c (handle_signal_stop): Remove local variable
882 'printed'.
883
db984616
SS
8842014-10-08 Stan Shebs <stan@codesourcery.com>
885
886 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
887
3ba37e6c
GB
8882014-10-08 Gary Benson <gbenson@redhat.com>
889
890 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
891
a442d071
GB
8922014-10-08 Gary Benson <gbenson@redhat.com>
893
894 * common/common-defs.h: Include common-exceptions.h.
895 * exceptions.h: Do not include common-exceptions.h.
896
6f1947e8
GB
8972014-10-08 Gary Benson <gbenson@redhat.com>
898
899 * common/common-defs.h: Include cleanups.h.
900 * common/common-exceptions.c: Do not include cleanups.h.
901 * utils.h: Likewise.
902
c765fdb9
GB
9032014-10-08 Gary Benson <gbenson@redhat.com>
904
905 * ada-lang.c: Do not include exceptions.h.
906 * ada-valprint.c: Likewise.
907 * amd64-tdep.c: Likewise.
908 * auto-load.c: Likewise.
909 * block.c: Likewise.
910 * break-catch-throw.c: Likewise.
911 * breakpoint.c: Likewise.
912 * btrace.c: Likewise.
913 * c-lang.c: Likewise.
914 * cli/cli-cmds.c: Likewise.
915 * cli/cli-interp.c: Likewise.
916 * cli/cli-script.c: Likewise.
917 * completer.c: Likewise.
918 * corefile.c: Likewise.
919 * corelow.c: Likewise.
920 * cp-abi.c: Likewise.
921 * cp-support.c: Likewise.
922 * cp-valprint.c: Likewise.
923 * darwin-nat.c: Likewise.
924 * dwarf2-frame-tailcall.c: Likewise.
925 * dwarf2-frame.c: Likewise.
926 * dwarf2loc.c: Likewise.
927 * dwarf2read.c: Likewise.
928 * eval.c: Likewise.
929 * event-loop.c: Likewise.
930 * event-top.c: Likewise.
931 * f-valprint.c: Likewise.
932 * frame-unwind.c: Likewise.
933 * frame.c: Likewise.
934 * gdbtypes.c: Likewise.
935 * gnu-v2-abi.c: Likewise.
936 * gnu-v3-abi.c: Likewise.
937 * guile/scm-auto-load.c: Likewise.
938 * guile/scm-breakpoint.c: Likewise.
939 * guile/scm-cmd.c: Likewise.
940 * guile/scm-frame.c: Likewise.
941 * guile/scm-lazy-string.c: Likewise.
942 * guile/scm-param.c: Likewise.
943 * guile/scm-symbol.c: Likewise.
944 * guile/scm-type.c: Likewise.
945 * hppa-hpux-tdep.c: Likewise.
946 * i386-tdep.c: Likewise.
947 * inf-loop.c: Likewise.
948 * infcall.c: Likewise.
949 * infcmd.c: Likewise.
950 * infrun.c: Likewise.
951 * interps.c: Likewise.
952 * interps.h: Likewise.
953 * jit.c: Likewise.
954 * linespec.c: Likewise.
955 * linux-nat.c: Likewise.
956 * linux-thread-db.c: Likewise.
957 * m32r-rom.c: Likewise.
958 * main.c: Likewise.
959 * memory-map.c: Likewise.
960 * mi/mi-cmd-break.c: Likewise.
961 * mi/mi-cmd-stack.c: Likewise.
962 * mi/mi-interp.c: Likewise.
963 * mi/mi-main.c: Likewise.
964 * monitor.c: Likewise.
965 * nto-procfs.c: Likewise.
966 * objc-lang.c: Likewise.
967 * p-valprint.c: Likewise.
968 * parse.c: Likewise.
969 * ppc-linux-tdep.c: Likewise.
970 * printcmd.c: Likewise.
971 * probe.c: Likewise.
972 * python/py-auto-load.c: Likewise.
973 * python/py-breakpoint.c: Likewise.
974 * python/py-cmd.c: Likewise.
975 * python/py-finishbreakpoint.c: Likewise.
976 * python/py-frame.c: Likewise.
977 * python/py-framefilter.c: Likewise.
978 * python/py-function.c: Likewise.
979 * python/py-gdb-readline.c: Likewise.
980 * python/py-inferior.c: Likewise.
981 * python/py-infthread.c: Likewise.
982 * python/py-lazy-string.c: Likewise.
983 * python/py-linetable.c: Likewise.
984 * python/py-param.c: Likewise.
985 * python/py-prettyprint.c: Likewise.
986 * python/py-symbol.c: Likewise.
987 * python/py-type.c: Likewise.
988 * python/py-value.c: Likewise.
989 * python/python-internal.h: Likewise.
990 * python/python.c: Likewise.
991 * record-btrace.c: Likewise.
992 * record-full.c: Likewise.
993 * regcache.c: Likewise.
994 * remote-fileio.c: Likewise.
995 * remote-mips.c: Likewise.
996 * remote.c: Likewise.
997 * rs6000-aix-tdep.c: Likewise.
998 * rs6000-nat.c: Likewise.
999 * skip.c: Likewise.
1000 * solib-darwin.c: Likewise.
1001 * solib-dsbt.c: Likewise.
1002 * solib-frv.c: Likewise.
1003 * solib-ia64-hpux.c: Likewise.
1004 * solib-spu.c: Likewise.
1005 * solib-svr4.c: Likewise.
1006 * solib.c: Likewise.
1007 * spu-tdep.c: Likewise.
1008 * stack.c: Likewise.
1009 * stap-probe.c: Likewise.
1010 * symfile-mem.c: Likewise.
1011 * symmisc.c: Likewise.
1012 * target.c: Likewise.
1013 * thread.c: Likewise.
1014 * top.c: Likewise.
1015 * tracepoint.c: Likewise.
1016 * tui/tui-interp.c: Likewise.
1017 * typeprint.c: Likewise.
1018 * utils.c: Likewise.
1019 * valarith.c: Likewise.
1020 * valops.c: Likewise.
1021 * valprint.c: Likewise.
1022 * value.c: Likewise.
1023 * varobj.c: Likewise.
1024 * windows-nat.c: Likewise.
1025 * xml-support.c: Likewise.
1026
484933d1
MR
10272014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1028
1029 * mips-tdep.c (add_offset_16): Rewrite to implement what the
1030 name implies.
1031 (extended_mips16_next_pc): Update accordingly.
1032
ab50adb6
MR
10332014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1034
1035 * mips-tdep.c (mips16_instruction_is_compact_branch): New
1036 function.
1037 (micromips_instruction_is_compact_branch): Likewise.
1038 (mips16_scan_prologue): Terminate scanning upon seeing a branch
1039 or a compact jump, reaching a jump delay slot, or seeing a
1040 second non-prologue instruction.
1041 (micromips_scan_prologue): Also terminate scanning upon seeing a
1042 compact branch or jump, or reaching a branch or jump delay slot.
1043 (mips32_scan_prologue): Terminate scanning upon reaching a branch
1044 or jump delay slot, or seeing a second non-prologue instruction.
1045 (mips32_instruction_has_delay_slot): Retain instruction
1046 examination code only, update arguments accordingly and move
1047 instruction fetch pieces to...
1048 (mips32_insn_at_pc_has_delay_slot): ... this new function.
1049 (micromips_instruction_has_delay_slot): Likewise and to...
1050 (micromips_insn_at_pc_has_delay_slot): ... this new function.
1051 (mips16_instruction_has_delay_slot): Likewise and to...
1052 (mips16_insn_at_pc_has_delay_slot): ... this new function.
1053 (mips_single_step_through_delay): Update accordingly.
1054 (mips_adjust_breakpoint_address): Likewise.
1055
ae790652
MR
10562014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1057
1058 * mips-tdep.c (micromips_instruction_has_delay_slot): When
1059 !mustbe32 also return 1 for 32-bit instructions.
1060 (mips16_instruction_has_delay_slot): Likewise. Add an
1061 explanatory comment.
1062
9b807e7b
MR
10632014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
1064
1065 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
1066 symbols special.
1067
0d5ed153
MR
10682014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
1069
1070 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
1071 update comments.
1072 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
1073 for the breakpoint's address. Don't preinitialize `placed_size'.
1074 (insert_bp_location): Set `reqstd_address' rather than
1075 `placed_address'.
1076 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
1077 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
1078 address.
1079 (bkpt_remove_location): Likewise.
1080 (deprecated_insert_raw_breakpoint): Likewise.
1081 (deprecated_remove_raw_breakpoint): Likewise.
1082 (find_single_step_breakpoint): Likewise.
1083 * mem-break.c (default_memory_insert_breakpoint): Use
1084 `reqstd_address' for the breakpoint's address. Don't set
1085 `placed_address' or `placed_size' if breakpoint contents couldn't
1086 have been determined.
1087 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
1088 the breakpoint's address.
1089 (remote_insert_hw_breakpoint): Likewise. Don't set
1090 `placed_address' or `placed_size' if breakpoint couldn't have been
1091 set.
1092 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
1093 `reqstd_address' for the breakpoint's address.
1094 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
1095 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
1096 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
1097 * microblaze-linux-tdep.c
1098 (microblaze_linux_memory_remove_breakpoint): Likewise.
1099 * monitor.c (monitor_insert_breakpoint): Likewise.
1100 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
1101 (procfs_insert_hw_breakpoint): Likewise.
1102 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
1103 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
1104 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
1105 * remote-mips.c (mips_insert_breakpoint): Likewise.
1106 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
1107
3e871532
LM
11082014-10-03 Luis Machado <lgustavo@codesourcery.com>
1109
1110 * valops.c (value_assign): Check for bit field assignments
1111 before calling architecture-specific register value
1112 conversion functions.
1113
ec48dc8b
PM
11142014-10-03 Pierre Muller <muller@sourceware.org>
1115
1116 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
1117
b57bacec
PA
11182014-10-02 Pedro Alves <palves@redhat.com>
1119
1120 * breakpoint.c (breakpoints_should_be_inserted_now): Use
1121 threads_are_executing.
1122 * breakpoint.h (breakpoints_should_be_inserted_now): Add
1123 describing comment.
1124 * gdbthread.h (threads_are_executing): Declare.
1125 (handle_signal_stop) <random signals>: Don't print about the
1126 signal here if stopping.
1127 (end_stepping_range): Don't notify observers here.
1128 (normal_stop): Update the thread list. If stopped by a random
1129 signal or a stepping range ended, notify observers.
1130 * thread.c (threads_executing): New global.
1131 (init_thread_list): Clear 'threads_executing'.
1132 (set_executing): Set or clear 'threads_executing'.
1133 (threads_are_executing): New function.
1134 (update_threads_executing): New function.
1135 (update_thread_list): Use it.
1136
13fd3ff3
PA
11372014-10-02 Pedro Alves <palves@redhat.com>
1138
1139 PR breakpoints/17431
1140 * breakpoint.c (update_breakpoints_after_exec): Don't create
1141 overlay, longjmp, std terminate nor exception breakpoints here.
1142
32990ada
PA
11432014-10-02 Pedro Alves <palves@redhat.com>
1144
1145 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
1146 Adjust comments.
1147 * inferior.c (find_inferior_for_program_space): Give preference to
1148 the current inferior.
1149 * inferior.h (find_inferior_for_program_space): Update comment.
1150 * progspace.c (switch_to_program_space_and_thread): Prefer the
1151 current inferior if it's bound to the program space requested. If
1152 the inferior found doesn't have a PID yet, don't bother looking up
1153 a thread.
1154 * progspace.h (switch_to_program_space_and_thread): Adjust
1155 comment.
1156 * thread.c (any_thread_of_process, any_live_thread_of_process):
1157 Give preference to the current thread.
1158
0fec99e8
PA
11592014-10-01 Pedro Alves <palves@redhat.com>
1160
1161 * breakpoint.c (insert_bp_location): Error out if inserting a
1162 software breakpoint at a read-only address.
1163 * target.c (memory_xfer_check_region): New function, factored out
1164 from ...
1165 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
1166 ULONGEST.
1167 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
1168 against the memory region attributes.
1169
2ddf4301
SM
11702014-10-01 Simon Marchi <simon.marchi@ericsson.com>
1171
1172 * NEWS: Announce new exit-code field in -list-thread-groups
1173 output.
1174 * inferior.c (exit_inferior_1): Don't clear exit code.
1175 (inferior_appeared): Clear exit code.
1176 * mi/mi-main.c (print_one_inferior): Add printing of the exit
1177 code.
1178
5fdeec1d
PA
11792014-10-01 Pedro Alves <palves@redhat.com>
1180
1181 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
1182 GENERATED" along with emacs/vi read-only markers.
1183 * regformats/aarch64.dat: Regenerate.
1184 * regformats/arm-with-iwmmxt.dat: Regenerate.
1185 * regformats/arm-with-neon.dat: Regenerate.
1186 * regformats/arm-with-vfpv2.dat: Regenerate.
1187 * regformats/arm-with-vfpv3.dat: Regenerate.
1188 * regformats/i386/amd64-avx-linux.dat: Regenerate.
1189 * regformats/i386/amd64-avx.dat: Regenerate.
1190 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
1191 * regformats/i386/amd64-avx512.dat: Regenerate.
1192 * regformats/i386/amd64-linux.dat: Regenerate.
1193 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
1194 * regformats/i386/amd64-mpx.dat: Regenerate.
1195 * regformats/i386/amd64.dat: Regenerate.
1196 * regformats/i386/i386-avx-linux.dat: Regenerate.
1197 * regformats/i386/i386-avx.dat: Regenerate.
1198 * regformats/i386/i386-avx512-linux.dat: Regenerate.
1199 * regformats/i386/i386-avx512.dat: Regenerate.
1200 * regformats/i386/i386-linux.dat: Regenerate.
1201 * regformats/i386/i386-mmx-linux.dat: Regenerate.
1202 * regformats/i386/i386-mmx.dat: Regenerate.
1203 * regformats/i386/i386-mpx-linux.dat: Regenerate.
1204 * regformats/i386/i386-mpx.dat: Regenerate.
1205 * regformats/i386/i386.dat: Regenerate.
1206 * regformats/i386/x32-avx-linux.dat: Regenerate.
1207 * regformats/i386/x32-avx.dat: Regenerate.
1208 * regformats/i386/x32-avx512-linux.dat: Regenerate.
1209 * regformats/i386/x32-avx512.dat: Regenerate.
1210 * regformats/i386/x32-linux.dat: Regenerate.
1211 * regformats/i386/x32.dat: Regenerate.
1212 * regformats/microblaze-with-stack-protect.dat: Regenerate.
1213 * regformats/mips-dsp-linux.dat: Regenerate.
1214 * regformats/mips-linux.dat: Regenerate.
1215 * regformats/mips64-dsp-linux.dat: Regenerate.
1216 * regformats/mips64-linux.dat: Regenerate.
1217 * regformats/nios2-linux.dat: Regenerate.
1218 * regformats/rs6000/powerpc-32.dat: Regenerate.
1219 * regformats/rs6000/powerpc-32l.dat: Regenerate.
1220 * regformats/rs6000/powerpc-64l.dat: Regenerate.
1221 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
1222 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
1223 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
1224 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
1225 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
1226 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
1227 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
1228 * regformats/s390-linux32.dat: Regenerate.
1229 * regformats/s390-linux32v1.dat: Regenerate.
1230 * regformats/s390-linux32v2.dat: Regenerate.
1231 * regformats/s390-linux64.dat: Regenerate.
1232 * regformats/s390-linux64v1.dat: Regenerate.
1233 * regformats/s390-linux64v2.dat: Regenerate.
1234 * regformats/s390-te-linux64.dat: Regenerate.
1235 * regformats/s390x-linux64.dat: Regenerate.
1236 * regformats/s390x-linux64v1.dat: Regenerate.
1237 * regformats/s390x-linux64v2.dat: Regenerate.
1238 * regformats/s390x-te-linux64.dat: Regenerate.
1239 * regformats/tic6x-c62x-linux.dat: Regenerate.
1240 * regformats/tic6x-c62x.dat: Regenerate.
1241 * regformats/tic6x-c64x-linux.dat: Regenerate.
1242 * regformats/tic6x-c64x.dat: Regenerate.
1243 * regformats/tic6x-c64xp-linux.dat: Regenerate.
1244 * regformats/tic6x-c64xp.dat: Regenerate.
1245
db74e4ba
PA
12462014-10-01 Pedro Alves <palves@redhat.com>
1247
1248 * features/Makefile: Update comments.
1249 (XMLTOC): List all xml files we build C files from.
1250 (clean-cfiles): New rule.
1251
d63f2f84
PA
12522014-10-01 Pedro Alves <palves@redhat.com>
1253
1254 * features/i386/amd64-avx512-linux.c: Regenerate.
1255 * features/i386/amd64-avx512.c: Regenerate.
1256 * features/i386/x32-avx512-linux.c: Regenerate.
1257 * features/i386/x32-avx512.c: Regenerate.
1258
20ad026d
PA
12592014-10-01 Pedro Alves <palves@redhat.com>
1260
1261 * features/Makefile (WHICH): Remove arm-with-m,
1262 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
1263
acc9fe45
PA
12642014-10-01 Pedro Alves <palves@redhat.com>
1265
1266 * features/Makefile (clean): New rule.
1267
e001e535
PA
12682014-10-01 Pedro Alves <palves@redhat.com>
1269
1270 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
1271 (zmm14h): Add missing end quotes.
1272
bdc14417
PA
12732014-10-01 Pedro Alves <palves@redhat.com>
1274
1275 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
1276 * features/aarch64.c: Regenerate.
1277
d83ad864
DB
12782014-09-30 Don Breazeal <donb@codesourcery.com>
1279
1280 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
1281 code so as to work with follow_fork_inferior.
1282 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
1283 (inf_ttrace_create_inferior): Remove reference to
1284 inf_ttrace_vfork_ppid.
1285 (inf_ttrace_attach): Ditto.
1286 (inf_ttrace_detach): Ditto.
1287 (inf_ttrace_kill): Use current_inferior instead of
1288 inf_ttrace_vfork_ppid.
1289 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
1290 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
1291 inferior away from the parent.
1292 * infrun.c (follow_fork): Call follow_fork_inferior instead of
1293 target_follow_fork.
1294 (follow_fork_inferior): New function.
1295 (follow_inferior_reset_breakpoints): Make function static.
1296 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
1297 * linux-nat.c (linux_child_follow_fork): Move target-independent
1298 code to infrun.c:follow_fork_inferior.
1299
29082443
AA
13002014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1301
1302 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
1303 * gdbarch.c: Regenerate.
1304 * gdbarch.h: Likewise.
1305 * corelow.c (sniff_core_bfd): Drop presence check for deleted
1306 gdbarch method 'regset_from_core_section'.
1307 (get_core_register_section): Remove handling for the case that
1308 regset == NULL and regset_from_core_section is defined.
1309 (get_core_registers): Drop check for deleted method.
1310 * procfs.c (procfs_do_thread_registers): Adjust comment.
1311
f968fe80
AA
13122014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1313
1314 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
1315 (linux_nat_make_corefile_notes): Remove.
1316 (linux_target_install_ops): Do not set target method
1317 'make_corefile_notes'.
1318 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
1319 Remove field.
1320 (linux_corefile_thread_callback): Instead of args->collect, call
1321 linux_collect_thread_registers.
1322 (linux_make_corefile_notes): Remove 'collect' parameter. Return
1323 NULL unless there is a regset iterator.
1324 (linux_make_corefile_notes_1): Remove.
1325 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
1326 by linux_make_corefile_notes.
1327 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
1328
174ad59a
AA
13292014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1330
1331 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
1332 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
1333 Remove.
1334 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
1335
97094034
AA
13362014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1337
1338 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
1339 (xtensa_iterate_over_regset_sections): New.
1340 (xtensa_gdbarch_init): Adjust gdbarch initialization.
1341
f73d3ce7
AA
13422014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1343
1344 * vax-tdep.c (vax_regset_from_core_section): Remove.
1345 (vax_iterate_over_regset_sections): New.
1346 (vax_gdbarch_init): Adjust gdbarch initialization.
1347
cb24567a
AA
13482014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1349
1350 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
1351 (tilegx_regset_from_core_section): Remove.
1352 (tilegx_iterate_over_regset_sections): New.
1353 (tilegx_linux_init_abi): Adjust gdbarch initialization.
1354
e5139de8
AA
13552014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1356
1357 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
1358 (sparc_iterate_over_regset_sections): New.
1359 (sparc32_gdbarch_init): Adjust gdbarch initialization.
1360 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
1361 targets.
1362 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
1363 (sparc64fbsd_init_abi): Call fbsd_init_abi.
1364 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
1365 target method 'make_corefile_notes'.
1366
c6d41a6f
AA
13672014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1368
1369 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
1370 'sizeof_gregset' and 'sizeof_fpregset'.
1371 * sh-tdep.c (sh_regset_from_core_section): Remove.
1372 (sh_iterate_over_regset_sections): New.
1373 (sh_gdbarch_init): Adjust gdbarch initialization.
1374 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
1375 sizeof_fpregset.
1376 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
1377 'sizeof_gregset'.
1378
9845a0b5
AA
13792014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1380
1381 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
1382 (score7_linux_iterate_over_regset_sections): New.
1383 (score_gdbarch_init): Adjust gdbarch initialization.
1384
23ea9aeb
AA
13852014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1386
1387 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
1388 FreeBSD targets.
1389 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
1390 method 'make_corefile_notes'.
1391 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
1392 (ppcfbsd_regset_from_core_section): Remove.
1393 (ppcfbsd_iterate_over_regset_sections): New.
1394 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
1395 initialization.
1396 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
1397 (ppcnbsd_iterate_over_regset_sections): New.
1398 (ppcnbsd_init_abi): Adjust.
1399 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
1400 (ppcobsd_iterate_over_regset_sections): New.
1401 (ppcobsd_init_abi): Adjust.
1402 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
1403 (rs6000_aix_iterate_over_regset_sections): New.
1404 (rs6000_aix_init_osabi): Adjust.
1405
c5b8d704
AA
14062014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1407
1408 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
1409 (nios2_regset_from_core_section): Remove.
1410 (nios2_iterate_over_regset_sections): New.
1411 (nios2_linux_init_abi): Adjust gdbarch initialization.
1412
3636e608
AA
14132014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1414
1415 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
1416 (am33_iterate_over_regset_sections): New.
1417 (am33_linux_init_osabi): Adjust gdbarch initialization.
1418
d4036235
AA
14192014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1420
1421 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
1422 (mips_linux_iterate_over_regset_sections): New.
1423 (mips_linux_init_abi): Adjust gdbarch initialization.
1424 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
1425 (mips64obsd_iterate_over_regset_sections): New.
1426 (mips64obsd_init_abi): Adjust.
1427 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
1428 (mipsnbsd_iterate_over_regset_sections): New.
1429 (mipsnbsd_init_abi): Adjust.
1430
b61ddd6e
AA
14312014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1432
1433 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
1434 (m88k_iterate_over_regset_sections): New.
1435 (m88k_gdbarch_init): Adjust gdbarch initialization.
1436
55a2906a
AA
14372014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1438
1439 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
1440 (ia64_linux_iterate_over_regset_sections): New.
1441 (ia64_linux_init_abi): Adjust gdbarch initialization.
1442
022c98ab
AA
14432014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1444
1445 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
1446 (m68kbsd_iterate_over_regset_sections): New.
1447 (m68kbsd_init_abi): Adjust gdbarch initialization.
1448 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
1449 (m68k_linux_iterate_over_regset_sections): New.
1450 (m68k_linux_init_abi): Adjust gdbarch initialization.
1451
5fac247f
AA
14522014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1453
1454 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
1455 (m32r_linux_regset_from_core_section): Remove.
1456 (m32r_linux_iterate_over_regset_sections): New.
1457 (m32r_linux_init_abi): Adjust gdbarch initialization.
1458
490496c3
AA
14592014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1460
1461 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
1462 (amd64obsd_iterate_over_regset_sections): New.
1463 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
1464 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
1465 Remove.
1466 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
1467 regset_from_core_section initialization.
1468 * i386-tdep.c (i386_regset_from_core_section): Remove.
1469 (i386_iterate_over_regset_sections): New.
1470 (i386_gdbarch_init): Adjust gdbarch initialization.
1471 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
1472 (i386_iterate_over_regset_sections): New prototype.
1473 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
1474 Remove.
1475 (i386obsd_aout_iterate_over_regset_sections): New.
1476 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
1477 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
1478 targets.
1479 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
1480 (amd64fbsd_init_abi): Call fbsd_init_abi.
1481 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
1482 (i386fbsd4_init_abi): Call fbsd_init_abi.
1483 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
1484 target method 'make_corefile_notes'.
1485 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
1486
50c5eb53
AA
14872014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1488
1489 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
1490 (hppa_hpux_iterate_over_regset_sections): New.
1491 (hppa_hpux_init_abi): Adjust gdbarch initialization.
1492 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
1493 (hppa_linux_iterate_over_regset_sections): New.
1494 (hppa_linux_init_abi): Adjust.
1495 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
1496 (hppanbsd_iterate_over_regset_sections): New.
1497 (hppanbsd_init_abi): Adjust.
1498 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
1499 (hppaobsd_iterate_over_regset_sections): New.
1500 (hppaobsd_init_abi): Adjust.
1501
66afae4f
AA
15022014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1503
1504 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
1505 (frv_linux_iterate_over_regset_sections): New.
1506 (frv_linux_init_abi): Adjust gdbarch initialization.
1507
ed09174e
AA
15082014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1509
1510 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
1511 (armbsd_iterate_over_regset_sections): New prototype.
1512 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
1513 (armbsd_iterate_over_regset_sections): New.
1514 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
1515 initialization.
1516
dff2166e
AA
15172014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1518
1519 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
1520 (alpha_linux_iterate_over_regset_sections): New.
1521 (alpha_linux_init_abi): Adjust gdbarch initialization.
1522 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
1523 prototype.
1524 (alphanbsd_iterate_over_regset_sections): New prototype.
1525
4108500a
AA
15262014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1527
1528 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
1529 Remove.
1530 (aarch64_linux_iterate_over_regset_sections): New.
1531 (aarch64_linux_init_abi): Adjust gdbarch initialization.
1532
a904c024
AA
15332014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1534
1535 * fbsd-tdep.c: New file.
1536 * fbsd-tdep.h: New file.
1537 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
1538 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
1539 (ALLDEPFILES): Add fbsd-tdep.c.
1540
8f0435f7
AA
15412014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1542
1543 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
1544 parameter.
1545 * gdbarch.h: Regenerate.
1546 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
1547 iterator.
1548 (get_core_register_section): Add parameter 'regset' and use it, if
1549 set. Add parameter 'min_size' and verify the bfd section size
1550 against it.
1551 (get_core_registers_cb): Add parameter 'regset' and pass it to
1552 get_core_register section. For the "standard" register sections
1553 ".reg" and ".reg2", set an appropriate default for human_name.
1554 (get_core_registers): Don't abort when the gdbarch has an iterator
1555 but no regset_from_core_section. Add NULL/0 for parameters
1556 'regset'/'min_size' in calls to get_core_register_section.
1557 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
1558 'regset' and use it instead of calling the
1559 regset_from_core_section gdbarch method.
1560 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
1561 * i386-tdep.c (i386_supply_xstateregset)
1562 (i386_collect_xstateregset, i386_xstateregset): Moved to
1563 i386-linux-tdep.c.
1564 (i386_regset_from_core_section): Drop handling for .reg-xfp and
1565 .reg-xstate.
1566 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
1567 core file support only if the regset iterator hasn't been set.
1568 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
1569 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
1570 Moved from i386-tdep.c and renamed to *_linux*.
1571 (i386_linux_iterate_over_regset_sections): Add regset parameter to
1572 each callback invocation. Allow any .reg-xstate size when reading
1573 from a core file.
1574 * amd64-tdep.c (amd64_supply_xstateregset)
1575 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
1576 amd64-linux-tdep.c.
1577 (amd64_regset_from_core_section): Remove.
1578 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
1579 install an amd64-specific regset_from_core_section gdbarch method.
1580 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
1581 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
1582 Moved from amd64-tdep.c and renamed to *_linux*.
1583 (amd64_linux_iterate_over_regset_sections): Add regset parameter
1584 to each callback invocation. Allow any .reg-xstate size when
1585 reading from a core file.
1586 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
1587 (arm_linux_iterate_over_regset_sections): Add regset parameter to
1588 each callback invocation.
1589 (arm_linux_init_abi): No longer set the regset_from_core_section
1590 gdbarch method.
1591 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
1592 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
1593 each callback invocation.
1594 (ppc_linux_init_abi): No longer set the regset_from_core_section
1595 gdbarch method.
1596 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
1597 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
1598 (s390_regset_from_core_section): Remove.
1599 (s390_iterate_over_regset_sections): Add regset parameter to each
1600 callback invocation.
1601 (s390_gdbarch_init): No longer set the regset_from_core_section
1602 gdbarch method. Drop initialization of deleted tdep fields.
1603
5aa82d05
AA
16042014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1605
1606 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
1607 (amd64_linux_iterate_over_regset_sections): New.
1608 (amd64_linux_init_abi_common): Don't install the regset section
1609 list, but the new iterator in gdbarch.
1610 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
1611 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
1612 (arm_linux_iterate_over_regset_sections): ...here. New function.
1613 (arm_linux_init_abi): Set iterator instead of section list.
1614 * corelow.c (get_core_registers_cb): New function, logic moved
1615 from...
1616 (get_core_registers): ...loop body here. Use new iterator method
1617 instead of walking through the regset section list.
1618 * gdbarch.sh: Remove 'core_regset_sections'. New method
1619 'iterate_over_regset_sections'. New typedef
1620 'iterate_over_regset_sections_cb'.
1621 * gdbarch.c: Regenerate.
1622 * gdbarch.h: Likewise.
1623 * i386-linux-tdep.c (i386_linux_regset_sections)
1624 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
1625 Remove.
1626 (i386_linux_iterate_over_regset_sections): New.
1627 (i386_linux_init_abi): Don't choose a regset section list, but
1628 install new iterator in gdbarch.
1629 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
1630 (linux_collect_regset_section_cb): New function, logic moved
1631 from...
1632 (linux_collect_thread_registers): ...loop body here. Use iterator
1633 method instead of walking through list.
1634 (linux_make_corefile_notes_1): Check for presence of iterator
1635 method instead of regset section list.
1636 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
1637 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
1638 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
1639 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
1640 (ppc_linux_iterate_over_regset_sections): ...here. New function.
1641 (ppc_linux_init_abi): Don't choose from above regset section
1642 lists, but install new iterator in gdbarch.
1643 * regset.h (struct core_regset_section): Remove.
1644 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
1645 have_linux_v1, have_linux_v2, and have_tdb.
1646 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
1647 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
1648 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
1649 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
1650 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
1651 (s390_iterate_over_regset_sections): ...here. New function. Use
1652 new tdep fields.
1653 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
1654 regset section lists, but install new iterator.
1655
2eca4a8d
JK
16562014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1657
1658 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
1659
a73c2b56
SM
16602014-09-26 Simon Marchi <simon.marchi@ericsson.com>
1661
1662 * progspace.c (print_program_space): Don't prune program spaces
1663 before printing them.
1664
03d46957
PA
16652014-09-25 Pedro Alves <palves@redhat.com>
1666
1667 * infrun.c (user_visible_resume_ptid): Don't check
1668 singlestep_breakpoints_inserted_p.
1669
e558d7c1
PA
16702014-09-25 Pedro Alves <palves@redhat.com>
1671
1672 * breakpoint.c (should_be_inserted): Add debug output.
1673
7f89fd65
PA
16742014-09-25 Pedro Alves <palves@redhat.com>
1675
1676 * infrun.c (stepping_past_instruction_at)
1677 (clear_exit_convenience_vars): Point at infrun.h instead of
1678 inferior.h.
1679 (handle_signal_stop): Fix typo.
1680
b7576e5c
YQ
16812014-09-24 Yao Qi <yao@codesourcery.com>
1682
1683 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
1684 bitmask.
1685
9a6cf368
GB
16862014-09-22 Gary Benson <gbenson@redhat.com>
1687
1688 * target.c (target_stop): Updated comment.
1689
03f4463b
GB
16902014-09-22 Gary Benson <gbenson@redhat.com>
1691
1692 * target/target.h (target_stop_ptid): Renamed as...
1693 (target_stop_and_wait): New function. Updated comment.
1694 All uses updated.
1695 (target_continue_ptid): Renamed as...
1696 (target_continue_no_signal): New function. Updated comment.
1697 All uses updated.
1698
a25a5a45
PA
16992014-09-22 Pedro Alves <palves@redhat.com>
1700
1701 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
1702 and "auto" merged.
1703 * breakpoint.c (enum ugll_insert_mode): New enum.
1704 (always_inserted_mode): Now a plain boolean.
1705 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
1706 (breakpoints_always_inserted_mode): Delete.
1707 (breakpoints_should_be_inserted_now): New function.
1708 (insert_breakpoints): Pass UGLL_INSERT to
1709 update_global_location_list instead of calling
1710 insert_breakpoint_locations manually.
1711 (create_solib_event_breakpoint_1): New, factored out from ...
1712 (create_solib_event_breakpoint): ... this.
1713 (create_and_insert_solib_event_breakpoint): Use
1714 create_solib_event_breakpoint_1 instead of calling
1715 insert_breakpoint_locations manually.
1716 (update_global_location_list): Change parameter type from boolean
1717 to enum ugll_insert_mode. All callers adjusted. Adjust to use
1718 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
1719 (update_global_location_list_nothrow): Change parameter type from
1720 boolean to enum ugll_insert_mode.
1721 (_initialize_breakpoint): "breakpoint always-inserted" option is
1722 now a boolean command. Update help text.
1723 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
1724 (breakpoints_should_be_inserted_now): New declaration.
1725 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
1726 Remove breakpoints_always_inserted_mode check.
1727 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
1728 * remote.c (remote_start_remote): Likewise.
1729
04086b45
PA
17302014-09-22 Pedro Alves <palves@redhat.com>
1731
1732 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
1733 (insert_breakpoints): Don't call insert_breakpoint_locations here.
1734 Instead, pass UGLL_INSERT to update_global_location_list.
1735 (update_global_location_list): Change parameter type from boolean
1736 to enum ugll_insert_mode. All callers adjusted. Adjust to use
1737 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
1738 (create_solib_event_breakpoint_1): New, factored out from ...
1739 (create_solib_event_breakpoint): ... this.
1740 (create_and_insert_solib_event_breakpoint): Use
1741 create_solib_event_breakpoint_1 instead of calling
1742 insert_breakpoint_locations manually.
1743 (update_global_location_list): Handle UGLL_INSERT.
1744
44702360
PA
17452014-09-22 Pedro Alves <palves@redhat.com>
1746
1747 * breakpoint.c (enum ugll_insert_mode): New enum.
1748 (update_global_location_list)
1749 (update_global_location_list_nothrow): Change parameter type from
1750 boolean to enum ugll_insert_mode. All callers adjusted.
1751
93c6145a
JB
17522014-09-19 Joel Brobecker <brobecker@adacore.com>
1753
1754 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
1755 SystemTap support in GDB.
1756
89a5711c
DB
17572014-09-19 Don Breazeal <donb@codesourcery.com>
1758
1759 * linux-nat.c (linux_handle_extended_wait): Call
1760 linux_ptrace_get_extended_event.
1761 (wait_lwp): Call linux_is_extended_waitstatus.
1762 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
1763 and linux_is_extended_waitstatus.
1764 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
1765 linux_ptrace_get_extended_event.
1766 (linux_ptrace_get_extended_event): New function.
1767 (linux_is_extended_waitstatus): New function.
1768 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
1769 (linux_is_extended_waitstatus): New declarations.
1770
c3b7b696
YQ
17712014-09-19 Yao Qi <yao@codesourcery.com>
1772
1773 * dwarf2read.c (dwarf_decode_lines): Update declaration.
1774 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
1775 comments. Callers update.
1776 (dwarf_decode_lines): Likewise.
1777 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
1778 comments. Skip the line table if 'lowpc' is greater than
1779 'address'. Don't check
1780 dwarf2_per_objfile->has_section_at_zero.
1781
2b4fd423
DE
17822014-09-18 Doug Evans <dje@google.com>
1783
1784 * NEWS: Mention new "producer" attribute of gdb.Symtab.
1785 * python/py-symtab.c (stpy_get_producer): New function.
1786 (symtab_object_getset): Add "producer" attribute.
1787
5e43d467
UW
17882014-09-17 Ulrich Weigand  <uweigand@de.ibm.com>
1789
1790 PR gdb/17384
1791 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
1792 (do_captured_read_memory_integer): Remove.
1793 (safe_read_memory_integer): Use target_read_memory directly instead
1794 of catching errors in do_captured_read_memory_integer.
1795
04e79979
MR
17962014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
1797
1798 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
1799 not gdb/doc.
1800
76aeec5b
SDJ
18012014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1802
1803 * objc-lang.c (find_implementation_from_class): Remove dead code.
1804
2f693f9d
SDJ
18052014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1806
1807 PR cli/7233
1808 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
1809 "fprintf_unfiltered (gdb_stdlog...)".
1810
bb9d5f81
PP
18112014-09-16 Patrick Palka <patrick@parcs.ath.cx>
1812
1813 PR breakpoints/12526
1814 * breakpoint.h (struct watchpoint): New fields val_bitpos and
1815 val_bitsize.
1816 * breakpoint.c (watch_command_1): Use these fields to retain
1817 bitfield information.
1818 (extract_bitfield_from_watchpoint_value): New function.
1819 (watchpoint_check): Use it.
1820 (update_watchpoint): Use it. Optimize the address and length of a
1821 HW watchpoint pointing to a bitfield.
1822 * value.h (unpack_value_bitfield): New prototype.
1823 * value.c (unpack_value_bitfield): Make extern.
1824
05db5edd
ST
18252014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
1826
1827 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
1828 x86-dregs.o.
1829 * gnu-nat.c (inf_threads): New function.
1830 * gnu-nat.h (inf_threads_ftype): New typedef.
1831 (inf_threads): New declaration.
1832 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
1833 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
1834 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
1835 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
1836 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
1837 (i386_gnu_dr_get_control): New functions.
1838 (reg_addr): New structure.
1839 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
1840 i386 debugging register hooks.
1841 * NEWS: Mention this.
1842
5a578da5
OJ
18432014-08-13 Omair Javaid <omair.javaid@linaro.org>
1844
1845 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
1846 vector data transfer instructions.
1847 (arm_record_coproc_data_proc): Updated.
1848
f20f80dd
OJ
18492014-08-13 Omair Javaid <omair.javaid@linaro.org>
1850
1851 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
1852 arm_record_exreg_ld_st_insn.
1853 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
1854 load/store insns.
1855
851f26ae
OJ
18562014-08-13 Omair Javaid <omair.javaid@linaro.org>
1857
1858 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
1859 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
1860 processing instructions.
1861
1e1b6563
OJ
18622014-08-13 Omair Javaid <omair.javaid@linaro.org>
1863
1864 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
1865 for advance SIMD struct ld/st insn.
1866 (thumb2_record_decode_insn_handler): Replace stub handler with
1867 thumb2_record_asimd_struct_ld_st.
1868
60cc5e93
OJ
18692014-08-13 Omair Javaid <omair.javaid@linaro.org>
1870
1871 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
1872 for asimd, vfp and coprocessor insns.
1873 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
1874 and coprocessor insns.
1875 (thumb2_record_coproc_insn): New function.
1876 (thumb2_record_decode_insn_handler): Update coprocessor insns record
1877 handlers.
1878 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
1879 opcode 110 insns.
1880
81219e53
DE
18812014-09-13 Doug Evans <xdje42@gmail.com>
1882
1883 * NEWS: Mention new "queue-signal" command.
1884 * infcmd.c (queue_signal_command): New function.
1885 (_initialize_infcmd): Add new queue-signal command.
1886
d36bf488
DE
18872014-09-13 Doug Evans <xdje42@gmail.com>
1888
1889 * linux-nat.c (wait_lwp): Add debugging printf.
1890 (linux_nat_wait_1): Ditto.
1891
f37f681c
PA
18922014-09-12 Pedro Alves <palves@redhat.com>
1893
1894 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
1895 (create_and_insert_solib_event_breakpoint): New functions.
1896 * breakpoint.h (create_and_insert_solib_event_breakpoint)
1897 (remove_solib_event_breakpoints_at_next_stop): New declarations.
1898 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
1899 (remove_dbx_link_breakpoint): Delete function.
1900 (insert_dbx_link_bpt_in_file): Use
1901 create_and_insert_solib_event_breakpoint instead of
1902 deprecated_insert_raw_breakpoint.
1903 (procfs_wait): Don't check whether we hit __dbx_link here.
1904 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
1905 here.
1906 * solib-irix.c (base_breakpoint): Delete global.
1907 (disable_break): Delete function.
1908 (enable_break): Use create_solib_event_breakpoint
1909 instead of deprecated_insert_raw_breakpoint.
1910 (irix_solib_handle_event): New function.
1911 (irix_solib_create_inferior_hook): Don't run the target or disable
1912 the mapping-complete breakpoint here.
1913 (_initialize_irix_solib): Install irix_solib_handle_event as
1914 so_ops->handle_event hook.
1915
9d9bf2df
EBM
19162014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1917 Ulrich Weigand  <uweigand@de.ibm.com>
1918
1919 PR tdep/17379
1920 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
1921 instead of read_memory_unsigned_integer.
1922
b006a80e
GB
19232014-09-12 Gary Benson <gbenson@redhat.com>
1924
1925 * nat/linux-waitpid.c: Include common-defs.h.
1926 [GDBSERVER]: Add FIXME comment.
1927 [!GDBSERVER]: Don't include defs.h or signal.h.
1928 (linux_debug) [!GDBSERVER]: Remove empty block.
1929
296b1496
GB
19302014-09-12 Gary Benson <gbenson@redhat.com>
1931
1932 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
1933 Don't include defs.h or server.h.
1934
53f81362
GB
19352014-09-12 Gary Benson <gbenson@redhat.com>
1936
1937 * nat/linux-btrace.c: Include common-defs.h.
1938 Don't include defs.h, server.h or gdbthread.h.
1939 * nat/linux-btrace.h (struct target_ops): New forward declaration.
1940
727605ca
GB
19412014-09-12 Gary Benson <gbenson@redhat.com>
1942
1943 * common/agent.c: Include common-defs.h.
1944 Don't include defs.h or server.h.
1945 * common/buffer.c: Likewise.
1946 * common/common-debug.c: Likewise.
1947 * common/common-utils.c: Likewise.
1948 * common/errors.c: Likewise.
1949 * common/filestuff.c: Likewise.
1950 * common/format.c: Likewise.
1951 * common/gdb_vecs.c: Likewise.
1952 * common/print-utils.c: Likewise.
1953 * common/ptid.c: Likewise.
1954 * common/rsp-low.c: Likewise.
1955 * common/signals.c: Likewise.
1956 * common/vec.c: Likewise.
1957 * common/xml-utils.c: Likewise.
1958 * nat/linux-osdata.c: Likewise.
1959 * nat/linux-procfs.c: Likewise.
1960 * nat/linux-ptrace.c: Likewise.
1961 * nat/mips-linux-watch.c: Likewise.
1962 * target/waitstatus.c: Likewise.
1963
361c8ade
GB
19642014-09-12 Tom Tromey <tromey@redhat.com>
1965 Gary Benson <gbenson@redhat.com>
1966
1967 * common/common-regcache.h: New file.
1968 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
1969 * regcache.h: Include common-regcache.h.
1970 (regcache_read_pc): Don't declare.
1971 * regcache.c (get_thread_regcache_for_ptid): New function.
1972 * nat/linux-btrace.c: Don't include regcache.h.
1973 Include common-regcache.h.
1974 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
1975
a01cbb49
TS
19762014-09-11 Thomas Schwinge <thomas@codesourcery.com>
1977
1978 * regcache.h (struct regset): Declare.
1979
98880d46
PA
19802014-09-11 Pedro Alves <palves@redhat.com>
1981
1982 PR gdb/17347
1983 * main.c: Include "infrun.h".
1984 (catch_command_errors, catch_command_errors_const): Wait for the
1985 foreground command to complete.
1986 * top.c (maybe_wait_sync_command_done): New function, factored out
1987 from ...
1988 (maybe_wait_sync_command_done): ... here.
1989 * top.h (maybe_wait_sync_command_done): New declaration.
1990
bd9269f7
GB
19912014-09-11 Tom Tromey <tromey@redhat.com>
1992 Gary Benson <gbenson@redhat.com>
1993
1994 * common/symbol.h: New file.
1995 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
1996 * minsyms.c (find_minimal_symbol_address): New function.
1997 * common/agent.c: Include common/symbol.h.
1998 [!GDBSERVER]: Don't include objfiles.h.
1999 (agent_look_up_symbols): Use find_minimal_symbol_address.
2000
f8c1d06b
GB
20012014-09-11 Gary Benson <gbenson@redhat.com>
2002
2003 * target/target.h (target_stop_ptid, target_continue_ptid):
2004 Declare.
2005 * target.c (target_stop_ptid, target_continue_ptid): New
2006 functions.
2007 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
2008 (agent_run_command): Always use target_stop_ptid and
2009 target_continue_ptid.
2010
721ec300
GB
20112014-09-11 Tom Tromey <tromey@redhat.com>
2012 Gary Benson <gbenson@redhat.com>
2013
2014 * target/target.h: New file.
2015 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
2016 * target.h: Include target/target.h.
2017 (target_read_memory, target_write_memory): Don't declare.
2018 * target.c (target_read_uint32): New function.
2019 * common/agent.c: Include target/target.h.
2020 [!GDBSERVER]: Don't include target.h.
2021 (helper_thread_id): Type changed to uint32_t.
2022 (agent_get_helper_thread_id): Use target_read_uint32.
2023 (agent_run_command): Always use target_read_memory and
2024 target_write_memory.
2025 (agent_capability): Type changed to uint32_t.
2026 (agent_capability_check): Use target_read_uint32.
2027
c5e92cca
GB
20282014-09-11 Gary Benson <gbenson@redhat.com>
2029
2030 * common/common-debug.h (show_debug_regs): Declare.
2031 * common/common-debug.c (show_debug_regs): Define.
2032 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
2033 all uses with show_debug_regs. Replace all uses that considered
2034 debug_hw_points as a multi-value integer with straight boolean
2035 uses.
2036 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
2037 with show_debug_regs.
2038 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
2039 all uses with show_debug_regs.
2040 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
2041 uses with show_debug_regs.
2042
eeef931a
UW
20432014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
2044
2045 * findvar.c (address_from_register): Handle targets requiring
2046 a special conversion routine even for plain pointer types.
2047
8efa9855
UW
20482014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
2049
2050 * rs6000-nat.c (exec_one_dummy_insn): Remove.
2051 (store_register): Do not call exec_one_dummy_insn.
2052
eb479039
JB
20532014-09-10 Joel Brobecker <brobecker@adacore.com>
2054
2055 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
2056 dereference it first. Use value_enclosing_type instead of
2057 value_type.
2058 (ada_array_length): Likewise.
2059
deede10c
JB
20602014-09-10 Joel Brobecker <brobecker@adacore.com>
2061
2062 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
2063 Adjust function implementation and documentation accordingly.
2064 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
2065 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
2066 Update call to ada_value_ptr_subscript.
2067
7828a5f5
JB
20682014-09-10 Joel Brobecker <brobecker@adacore.com>
2069
2070 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
2071 instead of VAL's type.
2072
35782f14
JB
20732014-09-10 Joel Brobecker <brobecker@adacore.com>
2074
2075 * amd64-linux-nat.c: Add <sys/uio.h> #include.
2076
d342a0da
DE
20772014-09-09 Doug Evans <xdje42@gmail.com>
2078
2079 PR guile/17367
2080 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
2081 last parameter to pkg-config, not first.
2082 * configure.ac: Pass --with-guile provided pkg-config path to
2083 GDB_GUILE_PROGRAM_NAMES.
2084 * configure: Regenerate.
2085
b4a3d263
GKB
20862014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
2087
2088 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
2089 Bertazi".
2090
6e466374
MR
20912014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
2092
2093 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
2094 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
2095 the list of sections determining GDB_OSABI_IRIX.
2096
a1ada89a
JH
20972014-09-09 James Hogan <james.hogan@imgtec.com>
2098
2099 * MAINTAINERS (Write After Approval): Add "James Hogan".
2100
86db008d
JH
21012014-09-09 James Hogan <james.hogan@imgtec.com>
2102
2103 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
2104
72fde3df
JB
21052014-09-09 Joel Brobecker <brobecker@adacore.com>
2106
2107 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
2108
92d8d229
DE
21092014-09-08 Doug Evans <xdje42@gmail.com>
2110
2111 PR 17247
2112 * guile.c: #include <signal.h>.
2113 (_initialize_guile): Block SIGCHLD while initializing Guile.
2114
2115 Replaces the following, which is reverted.
2116
2117 2014-07-26 Doug Evans <xdje42@gmail.com>
2118
2119 PR 17185
2120 * configure.ac: Add check for header gc/gc.h.
2121 Add check for function setenv.
2122 * configure: Regenerate.
2123 * config.in: Regenerate.
2124 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
2125
d81412aa
DE
21262014-09-08 Doug Evans <xdje42@gmail.com>
2127
2128 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
2129 with named constant. Fix style of pointer comparison.
2130 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
2131
a9f116cb
GKB
21322014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
2133
2134 PR gdb/17035
2135 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
2136 decide whether we display the command on "show user".
2137 * cli/cli-script.c (show_user_1): Only verify cmdlines after
2138 printing command name.
2139 * cli/cli-decode.h (cli_user_command_p): Declare new function.
2140 * cli/cli-decode.c (cli_user_command_p): Create helper function
2141 to verify whether cmd_list_element is a user-defined command.
2142
c75bd3a2
JK
21432014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2144
2145 PR python/17355
2146 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
2147 Fix goto out of TRY_CATCH.
2148
faa42425 21492014-09-06 Doug Evans <xdje42@gmail.com>
1a52a81c 2150 Tom Tromey <tromey@redhat.com>
faa42425
DE
2151
2152 PR 15276
2153 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
2154 $_any_caller_matches.
2155 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
2156 * python/lib/gdb/function/caller_is.py: New file.
2157
0d41ba00
DE
21582014-09-06 Doug Evans <xdje42@gmail.com>
2159
2160 * infcmd.c (program_info): Fix typo.
2161
474ca4f6
SDJ
21622014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
2163
2164 PR gdb/17235
2165 * stap-probe.c (stap_parse_single_operand): Delete unused variable
2166 'number'. New variable 'has_digit'. Rewrite code to deal with
2167 subexpressions on SDT probes.
2168
ebf13736
PA
21692014-09-04 Pedro Alves <palves@redhat.com>
2170
2171 * c-exp.y (parse_number): Skip handling base-switching prefixes if
2172 the input is only one character long.
2173
eb0b0463
SDJ
21742014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
2175
2176 PR fortran/17237
2177 * f-valprint.c (f_val_print): Specify the correct print option to
2178 use when printing integer values.
2179
5ee44bfa
GB
21802014-09-04 Gary Benson <gbenson@redhat.com>
2181
2182 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
2183 Remove code to cope with LWPs wrapped as PIDs.
2184 Add assertions to ensure no wrapped LWPs are passed.
2185
4875ffdb
PA
21862014-09-04 Pedro Alves <palves@redhat.com>
2187
2188 * value.c (value_ranges_copy_adjusted): New function, factored out
2189 from ...
2190 (value_contents_copy_raw): ... here.
2191 (unpack_value_bits_as_long_1): Rename back to ...
2192 (unpack_bits_as_long): ... this. Remove 'original_value' and
2193 'result' parameters. Change return type to LONGEST.
2194 (unpack_value_bits_as_long): Delete.
2195 (unpack_value_field_as_long_1): Delete.
2196 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
2197 (unpack_value_bitfield): New function.
2198 (value_field_bitfield): Reimplement using unpack_value_bitfield.
2199 (value_fetch_lazy): Use unpack_value_bitfield.
2200 * value.h (unpack_value_bits_as_long): Delete declaration.
2201
5f3b99cf
SS
22022014-09-03 Sasha Smundak <asmundak@google.com>
2203
2204 * python/py-frame.c (frapy_read_register): New function.
2205
ac740bc7
JH
22062014-09-03 James Hogan <james.hogan@imgtec.com>
2207
2208 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
2209 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
2210
7d793aa9
SDJ
22112014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
2212
2213 PR python/16699
2214 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
2215 function.
2216 (add_cmd): Set "completer_handle_brkchars" to NULL.
2217 * cli/cli-decode.h (struct cmd_list_element)
2218 <completer_handle_brkchars>: New field.
2219 * command.h (completer_ftype_void): New typedef.
2220 (set_cmd_completer_handle_brkchars): New prototype.
2221 * completer.c (set_gdb_completion_word_break_characters): New
2222 function.
2223 (complete_line_internal): Call "completer_handle_brkchars"
2224 callback from command.
2225 * completer.h: Include "command.h".
2226 (set_gdb_completion_word_break_characters): New prototype.
2227 * python/py-cmd.c (cmdpy_completer_helper): New function.
2228 (cmdpy_completer_handle_brkchars): New function.
2229 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
2230 (cmdpy_init): Set completer_handle_brkchars to
2231 cmdpy_completer_handle_brkchars.
2232
97ea6506
GB
22332014-09-03 Gary Benson <gbenson@redhat.com>
2234
2235 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
2236 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
2237 Loop conditions changed to equivalent form.
2238 (struct x86_debug_reg_state): Updated dr_ref_count comment.
2239 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
2240 ALL_DEBUG_ADDRESS_REGISTERS.
2241
d1437815
JB
22422014-09-03 Joel Brobecker <brobecker@adacore.com>
2243
2244 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
2245 description fix.
2246
9b94fcf1
DE
22472014-09-02 Doug Evans <dje@google.com>
2248
2249 * typeprint.c (find_global_typedef): Fix comment.
2250
df7e5265
GB
22512014-09-02 Gary Benson <gbenson@redhat.com>
2252
2253 * i386-nat.h: Renamed as...
2254 * x86-nat.h: New file. All type, function and variable name
2255 prefixes changed from "i386_" to "x86_". All references updated.
2256 * i386-nat.c: Renamed as...
2257 * x86-nat.c: New file. All type, function and variable name
2258 prefixes changed from "i386_" to "x86_". All references updated.
2259 * common/i386-xstate.h: Renamed as...
2260 * common/x86-xstate.h: New file. All type, function and variable
2261 name prefixes changed from "i386_" to "x86_". All references
2262 updated.
2263 * nat/i386-cpuid.h: Renamed as...
2264 * nat/x86-cpuid.h: New file. All type, function and variable name
2265 prefixes changed from "i386_" to "x86_". All references updated.
2266 * nat/i386-gcc-cpuid.h: Renamed as...
2267 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
2268 name prefixes changed from "i386_" to "x86_". All references
2269 updated.
2270 * nat/i386-dregs.h: Renamed as...
2271 * nat/x86-dregs.h: New file. All type, function and variable name
2272 prefixes changed from "i386_" to "x86_". All references updated.
2273 * nat/i386-dregs.c: Renamed as...
2274 * nat/x86-dregs.c: New file. All type, function and variable name
2275 prefixes changed from "i386_" to "x86_". All references updated.
2276
1c3569d4
MR
22772014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
2278
2279 * varobj.c (_initialize_varobj): Move to the end of file.
2280
ff55e1b5
GB
22812014-08-29 Gary Benson <gbenson@redhat.com>
2282
2283 * common/common-exceptions.h: New file.
2284 * common/common-exceptions.c: Likewise.
2285 * Makefile.in (SFILES): Add common/common-exceptions.c.
2286 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
2287 (COMMON_OBS): Add common-exceptions.o.
2288 (common-exceptions.o): New rule.
2289 * exceptions.h (common-exceptions.h): Include.
2290 (gdb_setjmp.h): Do not include.
2291 (return_reason): Moved to common-exceptions.h.
2292 (enum return_reason): Likewise.
2293 (RETURN_MASK): Likewise.
2294 (typedef return_mask): Likewise.
2295 (enum errors): Likewise.
2296 (struct gdb_exception): Likewise.
2297 (exceptions_state_mc_init): Likewise.
2298 (exceptions_state_mc_action_iter): Likewise.
2299 (exceptions_state_mc_action_iter_1): Likewise.
2300 (TRY_CATCH): Likewise.
2301 (throw_exception): Likewise.
2302 (throw_verror): Likewise.
2303 (throw_vquit): Likewise.
2304 (throw_error): Likewise.
2305 (throw_quit): Likewise.
2306 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
2307 (enum catcher_action): Likewise.
2308 (struct catcher): Likewise.
2309 (current_catcher): Likewise.
2310 (catcher_list_size): Likewise.
2311 (exceptions_state_mc_init): Likewise.
2312 (catcher_pop): Likewise.
2313 (exceptions_state_mc): Likewise.
2314 (exceptions_state_mc_action_iter): Likewise.
2315 (exceptions_state_mc_action_iter_1): Likewise.
2316 (throw_exception): Likewise.
2317 (exception_messages): Likewise.
2318 (exception_messages_size): Likewise.
2319 (throw_it): Likewise.
2320 (throw_verror): Likewise.
2321 (throw_vquit): Likewise.
2322 (throw_error): Likewise.
2323 (throw_quit): Likewise.
2324 (prepare_to_throw_exception): New function.
2325
e9bcb658
GB
23262014-08-29 Gary Benson <gbenson@redhat.com>
2327
2328 * common/gdb_setjmp.h: New file.
2329 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
2330 * configure.ac: Move sigsetjmp check...
2331 * common/common.m4: ...here.
2332 * configure: Regenerate.
2333 * cp-support.c (SIGJMP_BUF): Delete.
2334 (SIGSETJMP): Likewise.
2335 (SIGLONGJMP): Likewise.
2336 * exceptions.h (gdb_setjmp.h): Include.
2337 (setjmp.h): Do not include.
2338 (EXCEPTIONS_SIGJMP_BUF): Delete.
2339 (EXCEPTIONS_SIGSETJMP): Likewise.
2340 (EXCEPTIONS_SIGLONGJMP): Likewise.
2341 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
2342 from gdb_setjmp.h.
2343 * exceptions.c: Likewise.
2344
e3180625
GB
23452014-08-29 Gary Benson <gbenson@redhat.com>
2346
2347 * cleanups.h: Moved to...
2348 * common/cleanups.h: New file.
2349 * cleanups.c: Moved to...
2350 * common/cleanups.c: New file. Include common-defs.h and
2351 cleanups.h. Do not include defs.h.
2352 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
2353 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
2354 (cleanups.o): New rule.
2355
e3d6ba5d
GB
23562014-08-29 Gary Benson <gbenson@redhat.com>
2357
2358 * common/errors.h (internal_warning): New declaration.
2359 (internal_vwarning): Likewise.
2360 * common/errors.c (internal_warning): New function.
2361 * utils.h (internal_warning): Don't declare.
2362 (internal_vwarning): Likewise.
2363 * utils.c (internal_warning): Removed.
2364
075c7033
GB
23652014-08-29 Gary Benson <gbenson@redhat.com>
2366
2367 * main.c (captured_main): Use warning during startup.
2368 Prefix startup warning messages with command name.
2369
91b35fd0
GB
23702014-08-29 Gary Benson <gbenson@redhat.com>
2371
2372 * main.c (captured_main): Handle usage errors with error.
2373
b1ec390e
GB
23742014-08-29 Gary Benson <gbenson@redhat.com>
2375
2376 * go32-nat.c (go32_create_inferior): Replace a fprintf/
2377 exit pair with a call to error. Wrap the message with _().
2378
fd0ef3dd
GB
23792014-08-29 Gary Benson <gbenson@redhat.com>
2380
2381 * main.c (captured_main): Replace a fprintf/exit
2382 pair with a call to error. Wrap the message with _().
2383
e0e6bcab
GB
23842014-08-29 Gary Benson <gbenson@redhat.com>
2385
2386 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
2387 pairs with calls to error. Wrap the message with _().
2388
0d2f5c07
GB
23892014-08-29 Gary Benson <gbenson@redhat.com>
2390
2391 * utils.c (vwarning): Protect calls to target_terminal_ours
2392 and wrap_here.
2393
5df43998
GB
23942014-08-29 Gary Benson <gbenson@redhat.com>
2395
2396 * exceptions.c (print_flush): Protect calls to
2397 target_terminal_ours and wrap_here.
2398
2437fd32
GB
23992014-08-29 Gary Benson <gbenson@redhat.com>
2400
2401 * utils.h (filtered_printing_initialized): New declaration.
2402 * utils.c (abort_with_message): New function.
2403 (internal_vproblem): Use abort_with_message for first level
2404 recursive internal problems, and if gdb_stderr is not set up.
2405 Protect calls to target_terminal_ours, begin_line and query.
2406
f1f58506
DE
24072014-08-28 Doug Evans <dje@google.com>
2408
2409 * symtab.c (in_prologue): Move definition to better spot.
2410 (skip_prologue_using_sal): Ditto.
2411
aab2f208
DE
24122014-08-28 Doug Evans <dje@google.com>
2413
2414 * symtab.c (find_function_start_sal): Move definition to better spot.
2415
6b65d1b6
YQ
24162014-08-28 Yao Qi <yao@codesourcery.com>
2417
2418 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
2419 found_stack_adjust in forward scan. Remove condition check
2420 on found_stack_adjust which is always true. Indent the code.
2421
a1b34d15
YQ
24222014-08-28 Yao Qi <yao@codesourcery.com>
2423
2424 * dwarf2read.c (dwarf_decode_lines): Update declaration.
2425 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
2426 (dwarf_decode_lines): Remove argument
2427 want_line_info. Remove condition check on want_line_info.
2428 Callers update.
2429
d5962de5
DE
24302014-08-27 Doug Evans <dje@google.com>
2431
2432 * dwarf2read.c (dwarf_record_line): Fix typo.
2433
9b139002
SDJ
24342014-08-27 Patrick Palka <patrick@parcs.ath.cx>
2435
2436 * target.h (struct target_ops::to_terminal_save_ours): Remove
2437 declaration.
2438 (target_terminal_save_ours): Remove macro.
2439 * target-delegates.c: Regenerate.
2440 * inf-child.c (inf_child_target): Don't set the nonexistent
2441 field to_terminal_save_ours.
2442 * inferior.h (child_terminal_save_ours): Remove declaration.
2443 * terminal.h (gdb_save_tty_state): New declaration.
2444 * inflow.c (child_terminal_save_ours): Rename to ...
2445 (gdb_save_tty_state): ... this.
2446 * tui/tui.c: Include terminal.h.
2447 (tui_enable): Use gdb_save_tty_state instead of
2448 target_terminal_save_ours.
2449 (tui_disable): Likewise.
2450
9debeba0
DE
24512014-08-25 Doug Evans <dje@google.com>
2452
2453 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
2454 Pass NULL instead of 0 for context pointer.
2455
428fc5fc
YQ
24562014-08-25 Yao Qi <yao@codesourcery.com>
2457
2458 * dwarf2read.c: Fix grammatical error.
2459
cdc07690
YQ
24602014-08-24 Yao Qi <yao@codesourcery.com>
2461
2462 * dwarf2read.c (scan_partial_symbols): Update comments.
2463 Rename argument 'need_pc' with 'set_addrmap'.
2464 (add_partial_namespace): Rename argument 'need_pc' with
2465 'set_addrmap'.
2466 (add_partial_module): Likewise.
2467 (add_partial_subprogram): Likewise. Update comments.
2468 (dwarf2_name): Fix typo.
2469
a05a36a5
DE
24702014-08-22 Doug Evans <dje@google.com>
2471
2472 PR 17276
2473 * dwarf2read.c (dwarf_record_line_p): New function.
2474 (dwarf_decode_lines_1): Ignore subsequent line number entries
2475 for the same line if any entry had a non-zero discriminator.
2476
252a6764
DE
24772014-08-22 Doug Evans <dje@google.com>
2478
2479 * buildsym.h (record_line_ftype): New typedef.
2480 (record_line): Use it.
2481 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
2482 (dwarf_decode_lines_1): Call them.
2483
510db052
YQ
24842014-08-22 Yao Qi <yao@codesourcery.com>
2485
2486 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
2487 (ctf_end): Remove code.
2488
22fd09ae
JK
24892014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2490
2491 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
2492 (linux_make_corefile_notes): call update_thread_list, protected against
2493 exceptions.
2494
656e8868
PA
24952014-08-21 Pedro Alves <palves@redhat.com>
2496
2497 * infcmd.c (attach_command): Remove comment.
2498
de589d04
WN
24992014-08-21 Bin Cheng <bin.cheng@arm.com>
2500
2501 * aarch64-linux-nat.c (dr_changed_t): Change the type from
2502 unsigned LONGEST to ULONGEST.
2503
2a31c623
PA
25042014-08-20 Pedro Alves <palves@redhat.com>
2505
2506 * Makefile.in (check-read1): New rule.
2507
d36430db
JB
25082014-08-20 Joel Brobecker <brobecker@adacore.com>
2509
2510 * value.c (value_from_contents_and_address): Strip resolved_type's
2511 typedef layers before checking its TYPE_DATA_LOCATION.
2512
000339af
PA
25132014-08-20 Pedro Alves <palves@redhat.com>
2514
2515 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
2516
5f52445b
YQ
25172014-08-20 Yao Qi <yao@codesourcery.com>
2518
2519 * amd64-tdep.c (amd64_classify): Add a blank line after the
2520 example. Move "*/" to a new line.
2521 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
2522 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
2523 * dwarf2read.c (psymtab_include_file_name): Likewise.
2524
9a0dc9e3
PA
25252014-08-19 Andrew Burgess <aburgess@broadcom.com>
2526 Pedro Alves <palves@redhat.com>
2527
2528 PR symtab/14604
2529 PR symtab/14605
2530 * ada-lang.c (coerce_unspec_val_to_type): Use
2531 value_contents_copy_raw.
2532 * ada-valprint.c (val_print_packed_array_elements): Adjust.
2533 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
2534 * cp-valprint.c (cp_print_value_fields): Let the common printing
2535 code handle optimized out values.
2536 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
2537 * d-valprint.c (dynamic_array_type): Use
2538 value_bits_any_optimized_out.
2539 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
2540 check_any_valid fields.
2541 (check_pieced_value_bits): Delete and inline ...
2542 (check_pieced_synthetic_pointer): ... here.
2543 (check_pieced_value_validity): Delete.
2544 (check_pieced_value_invalid): Delete.
2545 (pieced_value_funcs): Remove check_validity and check_any_valid
2546 fields.
2547 (read_pieced_value): Use mark_value_bits_optimized_out.
2548 (write_pieced_value): Switch to use
2549 mark_value_bytes_optimized_out.
2550 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
2551 of assuming the whole value is optimized out.
2552 * findvar.c (read_frame_register_value): Remove special handling
2553 of optimized out registers.
2554 (value_from_register): Use mark_value_bytes_optimized_out.
2555 * frame-unwind.c (frame_unwind_got_optimized): Use
2556 mark_value_bytes_optimized_out.
2557 * jv-valprint.c (java_value_print): Adjust.
2558 (java_print_value_fields): Let the common printing code handle
2559 optimized out values.
2560 * mips-tdep.c (mips_print_register): Remove special handling of
2561 optimized out registers.
2562 * opencl-lang.c (lval_func_check_validity): Delete.
2563 (lval_func_check_any_valid): Delete.
2564 (opencl_value_funcs): Remove check_validity and check_any_valid
2565 fields.
2566 * p-valprint.c (pascal_object_print_value_fields): Let the common
2567 printing code handle optimized out values.
2568 * stack.c (read_frame_arg): Remove special handling of optimized
2569 out values. Fetch both VAL and ENTRYVAL before comparing
2570 contents. Adjust to value_available_contents_eq rename.
2571 * valprint.c (valprint_check_validity)
2572 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
2573 (val_print_array_elements): Adjust.
2574 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
2575 (value_bits_any_optimized_out): New function.
2576 (value_entirely_covered_by_range_vector): New function, factored
2577 out from value_entirely_unavailable.
2578 (value_entirely_unavailable): Reimplement.
2579 (value_entirely_optimized_out): New function.
2580 (insert_into_bit_range_vector): New function, factored out from
2581 mark_value_bits_unavailable.
2582 (mark_value_bits_unavailable): Reimplement.
2583 (struct ranges_and_idx): New struct.
2584 (find_first_range_overlap_and_match): New function, factored out
2585 from value_available_contents_bits_eq.
2586 (value_available_contents_bits_eq): Rename to ...
2587 (value_contents_bits_eq): ... this. Check both unavailable
2588 contents and optimized out contents.
2589 (value_available_contents_eq): Rename to ...
2590 (value_contents_eq): ... this.
2591 (allocate_value_lazy): Remove reference to the old optimized_out
2592 boolean.
2593 (allocate_optimized_out_value): Use
2594 mark_value_bytes_optimized_out.
2595 (require_not_optimized_out): Adjust to check whether the
2596 optimized_out vec is empty.
2597 (ranges_copy_adjusted): New function, factored out from
2598 value_contents_copy_raw.
2599 (value_contents_copy_raw): Also copy the optimized out ranges.
2600 Assert the destination ranges aren't optimized out.
2601 (value_contents_copy): Update comment, remove call to
2602 require_not_optimized_out.
2603 (value_contents_equal): Adjust to check whether the optimized_out
2604 vec is empty.
2605 (set_value_optimized_out, value_optimized_out_const): Delete.
2606 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
2607 New functions.
2608 (value_entirely_optimized_out, value_bits_valid): Delete.
2609 (value_copy): Take a VEC copy of the 'optimized_out' field.
2610 (value_primitive_field): Remove special handling of optimized out.
2611 (value_fetch_lazy): Assert that lazy values have no unavailable
2612 regions. Use value_bits_any_optimized_out. Remove some special
2613 handling for optimized out values.
2614 * value.h: Add intro comment about <optimized out> and
2615 <unavailable>.
2616 (struct lval_funcs): Remove check_validity and check_any_valid
2617 fields.
2618 (set_value_optimized_out, value_optimized_out_const): Remove.
2619 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
2620 New declarations.
2621 (value_bits_any_optimized_out): New declaration.
2622 (value_bits_valid): Delete declaration.
2623 (value_available_contents_eq): Rename to ...
2624 (value_contents_eq): ... this, and extend comments.
2625
6694c411
JK
26262014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2627
2628 Fix -fsanitize=address on unreadable inferior strings.
2629 * valprint.c (val_print_string): Fix access before BUFFER.
2630
89a1c21a
SM
26312014-08-19 Simon Marchi <simon.marchi@ericsson.com>
2632
2633 * target.c (target_struct_size): Remove.
2634 (target_struct_allocsize): Remove.
2635 (DEFAULT_ALLOCSIZE): Remove.
2636 (target_ops_p): New typedef.
2637 (DEF_VEC_P (target_ops_p)): New vector type.
2638 (target_structs): Change type to VEC (target_ops_p).
2639 (add_target_with_completer): Replace "push" code by VEC_safe_push.
2640 (find_default_run_target): Rewrite for loop following changes to
2641 target_structs.
2642
cb417230
JB
26432014-08-19 Joel Brobecker <brobecker@adacore.com>
2644
2645 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
2646 Adjust code accordingly. Adjust function description comment.
2647
817e0957
YQ
26482014-08-19 Yao Qi <yao@codesourcery.com>
2649
2650 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
2651 types.
2652
2974be62
AM
26532014-08-19 Alan Modra <amodra@gmail.com>
2654
2655 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
2656 * config.in: Regenerate.
2657 * configure: Regenerate.
2658
34abf635
GB
26592014-08-19 Tom Tromey <tromey@redhat.com>
2660 Gary Benson <gbenson@redhat.com>
2661
2662 * common/common-debug.h: New file.
2663 * common/common-debug.c: Likewise.
2664 * debug.c: Likewise.
2665 * Makefile.in (SFILES): Add common/common-debug.c.
2666 (HFILES_NO_SRCDIR): Add common/common-debug.h.
2667 (COMMON_OBS): Add common-debug.o and debug.o.
2668 (common-debug.o): New rule.
2669 * common/common-defs.h: Include common-debug.h.
2670 * common/agent.c (debug_agent_printf): New function.
2671 (DEBUG_AGENT): Redefine.
2672 * nat/i386-dregs.c (debug_printf): Undefine.
2673
f6e94d78
GB
26742014-08-19 Gary Benson <gbenson@redhat.com>
2675
2676 * common/common-defs.h: Include print-utils.h.
2677 * utils.h: Do not include print-utils.h.
2678
9239eeab
GB
26792014-08-19 Tom Tromey <tromey@redhat.com>
2680 Gary Benson <gbenson@redhat.com>
2681
2682 * common/common-types.h: New file.
2683 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
2684 * common/common-defs.h: Include common-types.h.
2685 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
2686 (ULONGEST): Remove.
2687
ef87c8bb
GB
26882014-08-19 Tom Tromey <tromey@redhat.com>
2689 Gary Benson <gbenson@redhat.com>
2690
2691 * common/errors.h: New file.
2692 * common/errors.c: Likewise.
2693 * Makefile.in (SFILES): Add common/errors.c.
2694 (HFILES_NO_SRCDIR): Add common/errors.h.
2695 (COMMON_OBS): Add errors.o.
2696 (errors.o): New rule.
2697 * common/common-defs.h: Include errors.h.
2698 * utils.h (perror_with_name, error, verror, warning, vwarning):
2699 Don't declare.
2700 * common/common-utils.h: (malloc_failure, internal_error):
2701 Likewise.
2702
196a707b
GB
27032014-08-19 Gary Benson <gbenson@redhat.com>
2704
2705 * utils.c (internal_vproblem): Always print the message.
2706
ded4fc8f
DE
27072014-08-18 Doug Evans <dje@google.com>
2708
2709 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
2710
950c97d8
JB
27112014-08-18 Joel Brobecker <brobecker@adacore.com>
2712
2713 * ada-typeprint.c (type_is_full_subrange_of_target_type):
2714 Return 0 if TYPE is dynamic.
2715 (print_range): Add handling of dynamic ranges.
2716
3cdcd0ce
JB
27172014-08-18 Keven Boell <keven.boell@intel.com>
2718 Joel Brobecker <brobecker@adacore.com>
2719
2720 * gdbtypes.h (struct main_type): Add field "data_location".
2721 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
2722 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
2723 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
2724 a dynamic data location.
2725 (resolve_dynamic_type): Add DW_AT_data_location handling.
2726 (copy_recursive, copy_type): Copy the data_location information
2727 when present.
2728 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
2729 * value.c (value_from_contents_and_address): Add
2730 DW_AT_data_location handling.
2731
08412b07
JB
27322014-08-18 Keven Boell <keven.boell@intel.com>
2733 Joel Brobecker <brobecker@adacore.com>
2734
2735 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
2736 field "get_object_address".
2737 * dwarf2expr.c (execute_stack_op): Add handling for
2738 DW_OP_push_object_address.
2739 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
2740 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
2741 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
2742 (dwarf_expr_get_obj_addr): New function.
2743 (dwarf_expr_ctx_funcs): Add get_object_address field.
2744 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
2745 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
2746 (dwarf2_evaluate_property): Add parameter "address". Use it.
2747 (needs_get_obj_addr): New function.
2748 (needs_frame_ctx_funcs): Add get_object_address field.
2749 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
2750 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
2751 (resolve_dynamic_array): Likewise.
2752
84754697
JB
27532014-08-18 Joel Brobecker <brobecker@adacore.com>
2754
2755 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
2756 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
2757 fixed value for records and unions for which some GNAT encodings
2758 are present.
2759
da5c522f
JB
27602014-08-18 Joel Brobecker <brobecker@adacore.com>
2761
2762 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
2763 rewrite to avoid "else if" and "else" constructs. Should be
2764 a no-op in practice.
2765
0d72a7c3
JB
27662014-08-18 Joel Brobecker <brobecker@adacore.com>
2767
2768 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
2769 of lexical block.
2770
e66d4446
SC
27712014-08-15 Siva Chandra Reddy <sivachandra@google.com>
2772
2773 PR c++/17132
2774 * eval.c: Update all calls to find_overload_match.
2775 * valarith.c: Likewise.
2776 (value_user_defined_cpp_op, value_user_defined_op): New
2777 argument NOSIDE. Update all callers.
2778 * valops.c (find_overload_match): New argument NOSIDE.
2779 * value.h (find_overload_match): Update signature.
2780
940df408
SC
27812014-08-15 Siva Chandra Reddy <sivachandra@google.com>
2782
2783 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
2784 'items' methods instead of 'iteritems' method on dictionaries.
2785
699ca60a
DE
27862014-08-15 Doug Evans <dje@google.com>
2787
2788 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
2789 closer to use.
2790
37780ee5
DE
27912014-08-15 Doug Evans <dje@google.com>
2792
2793 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
2794
0ad93d4f
DE
27952014-08-15 Doug Evans <dje@google.com>
2796
2797 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
2798
20d8c372
DE
27992014-08-15 Doug Evans <dje@google.com>
2800
2801 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
2802 unused.
2803
cb039ba4
EZ
28042014-08-15 Eli Zaretskii <eliz@gnu.org>
2805
2806 * dcache.h: Include target.h, to avoid compile time warnings.
2807
eb7a547a
JB
28082014-08-15 Joel Brobecker <brobecker@adacore.com>
2809
2810 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
2811 frame_info" partial declaration.
2812 * gdbarch.h: Regenerate.
2813
783cecc8
YQ
28142014-08-15 Yao Qi <yao@codesourcery.com>
2815
2816 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
2817 Add parameter 'decode_for_pst_p'. Callers update.
2818
65c749e7
YQ
28192014-08-13 Yao Qi <yao@codesourcery.com>
2820
2821 PR build/17104
2822 * configure.ac: Use local variable 'pos'.
2823 * configure: Regenerated.
2824
d769e349
DE
28252014-08-11 Doug Evans <dje@google.com>
2826
2827 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
2828 message, it is redundant with "Reading symbols from ..." message.
2829
24f1235e
DE
28302014-08-10 Doug Evans <xdje42@gmail.com>
2831
2832 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
2833
dcd2e6ef
YQ
28342014-08-09 Yao Qi <yao@codesourcery.com>
2835
2836 PR remote/9053
2837 * remote.c (remote_xfer_partial): Remove dead code.
2838
070bdf0b
AA
28392014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2840
2841 * ia64-linux-tdep.c: Include "regset.h".
2842 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
2843 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
2844 (ia64_linux_supply_fpregset): New function.
2845 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
2846 (ia64_linux_regset_from_core_section): New function.
2847 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
2848 method.
2849
08f9f542
AA
28502014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2851
2852 * m68klinux-tdep.c: Include "regset.h".
2853 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
2854 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
2855 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
2856 (m68k_linux_regset_from_core_section): New function.
2857 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
2858 method.
2859
8f1cee41
AA
28602014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2861
2862 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
2863 function. Move logic to...
2864 (tilegx_linux_regmap): ... this new register map.
2865 (tilegx_linux_regset): Refer to register map, replace supply
2866 method by regcache_supply_regset, and add collect method.
2867 * tilegx-tdep.h (enum tilegx_regnum): New enum value
2868 TILEGX_FIRST_EASY_REGNUM.
2869
c5741217
AA
28702014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2871
2872 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
2873 that calls regcache_supply_regset and handles the EPC register
2874 separately. Move main logic to...
2875 (score7_linux_gregmap): ... this new register map.
2876 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
2877 (score7_linux_gregset): Refer to register map. Add collect method.
2878 (score7_linux_regset_from_core_section): Replace
2879 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
2880 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
2881 (struct regset): Delete unused forward declaraction.
2882 (struct pt_regs): Delete structure definition.
2883 (elf_gregset_t): Delete typedef.
2884
81580573
AA
28852014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2886
2887 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
2888 (nios2_core_regset): Add collect method.
2889
ba199d7d
AA
28902014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2891
2892 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
2893 platform-independent and don't write to read-only input buffer.
2894 (m32r_linux_collect_gregset): New function.
2895 (m32r_linux_gregset): Add collect method.
2896
0006a9da
AA
28972014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2898
2899 * hppa-linux-tdep.c (greg_map): Rename to...
2900 (hppa_linux_gregmap): ... this. Also convert to
2901 regcache_map_entry format.
2902 (hppa_linux_supply_regset): Delete function.
2903 (hppa_linux_supply_fpregset): Delete function. Move logic to...
2904 (hppa_linux_fpregmap): ... this new register map.
2905 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
2906 register map, replace supply method by regcache_supply_regset, and
2907 add collect method regcache_collect_regset.
2908
901e1b23
AA
29092014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2910
2911 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
2912 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
2913 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
2914 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
2915 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
2916 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
2917 (frv_linux_supply_gregset): Replace main logic by call to
2918 regcache_supply_regset, but keep clearing gr32-gr63.
2919 (frv_linux_supply_fpregset): Delete function.
2920 (frv_linux_gregset): Refer to appropriate register map and add
2921 regcache_collect_regset as the collect method.
2922 (frv_linux_fpregset): Likewise. Also exchange the supply method
2923 by regcache_supply_regset.
2924
1d6e7555
AA
29252014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2926
2927 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
2928 by call to alpha_supply_int_regs.
2929 (alpha_linux_collect_gregset): New function.
2930 (alpha_linux_supply_fpregset): Replace logic by call to
2931 alpha_supply_fp_regs.
2932 (alpha_linux_collect_fpregset): New function.
2933 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
2934
d4d793bf
AA
29352014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2936
2937 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
2938 by call to regcache_collect_regset.
2939 (supply_gregset, supply_fpregset): Call regcache_supply_regset
2940 instead of aarch64_linux_supply_gregset/_fpregset.
2941 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
2942 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
2943 header file instead.
2944 (aarch64_linux_supply_gregset, supply_gregset_from_core)
2945 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
2946 functions. Move logic to ...
2947 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
2948 register maps.
2949 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
2950 refer to new register maps, replace *_regset_from_core by
2951 regcache_supply_regset, and also use regcache_collect_regset.
2952 * aarch64-linux-tdep.h: Include "regset.h".
2953 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
2954 Delete prototypes.
2955 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
2956 macros, moved from C source file.
2957 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
2958 variable declarations.
2959
99b7da5d
AA
29602014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2961
2962 * s390-linux-nat.c: Include "regset.h".
2963 (regmap_gregset): Delete macro.
2964 (s390_64_regmap_gregset): New register map for
2965 regcache_supply/_collect_regset.
2966 (s390_64_gregset): New regset.
2967 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
2968 (regmap_fpregset): Delete macro.
2969 (s390_native_supply, s390_native_collect): Delete functions.
2970 (supply_gregset, fill_gregset): Replace s390-specific regmap
2971 handling by a call to regcache_supply/_collect_regset.
2972 (supply_fpregset, fill_fpregset): Call regcache_supply/
2973 _collect_regset instead of s390_native_supply/_collect.
2974 (fetch_regset, store_regset): Likewise. Also change the last
2975 parameter to a regset instead of a regmap.
2976 (s390_linux_fetch_inferior_registers)
2977 (390_linux_store_inferior_registers): Adjust last parameter in
2978 calls to fetch_regset and store_regset.
2979 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
2980 (s390_gregmap): ... this. Also make static const and convert to
2981 regcache_map_entry format.
2982 (s390x_regmap_gregset): Delete.
2983 (s390_regmap_fpregset): Rename to...
2984 (s390_fpregmap): ... this. Make static const and convert to
2985 regcache_map_entry format.
2986 (s390_regmap_upper, s390_regmap_last_break)
2987 (s390x_regmap_last_break, s390_regmap_system_call)
2988 (s390_regmap_tdb): Likewise.
2989 (s390_supply_regset, s390_collect_regset): Remove functions.
2990 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
2991 s390_supply_regset.
2992 (s390_gregset, s390_fpregset, s390_upper_regset)
2993 (s390_last_break_regset, s390x_last_break_regset)
2994 (s390_system_call_regset, s390_tdb_regset): Make global and
2995 replace s390_supply/_collect_regset by regcache_supply/
2996 _collect_regset.
2997 (s390x_gregset): Delete.
2998 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
2999 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
3000 (s390_regmap_fpregset, s390_regmap_last_break)
3001 (s390x_regmap_last_break, s390_regmap_system_call)
3002 (s390_regmap_tdb): Delete global variable declarations.
3003 (s390_gregset, s390_fpregset, s390_last_break_regset)
3004 (s390x_last_break_regset, s390_system_call_regset)
3005 (s390_tdb_regset): New global variable declarations.
3006
0b309272
AA
30072014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3008
3009 * regcache.c: Include "regset.h".
3010 (regcache_transfer_regset): New local function.
3011 (regcache_supply_regset, regcache_collect_regset): New functions.
3012 * regcache.h (struct regcache_map_entry): New structure.
3013 (REGCACHE_MAP_SKIP): New enum value.
3014 (regcache_supply_regset, regcache_collect_regset): New prototypes.
3015
7fefa8d7
AA
30162014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3017
3018 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
3019 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
3020 (ppc_linux_collect_gregset ): Likewise.
3021 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
3022 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
3023 (ppc_collect_vrregset): Likewise.
3024 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
3025 Likewise.
3026
96c4f946
YQ
30272014-08-07 Yao Qi <yao@codesourcery.com>
3028
3029 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
3030 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
3031 * remote.c (remote_read_bytes): Likewise.
3032
fffbe6a8
YQ
30332014-08-07 Yao Qi <yao@codesourcery.com>
3034
3035 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
3036
5ee8a82c
YQ
30372014-08-07 Yao Qi <yao@codesourcery.com>
3038
3039 PR remote/17230
3040 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
3041 TARGET_XFER_OK instead of 0.
3042
bb974a24
GB
30432014-08-07 Gary Benson <gbenson@redhat.com>
3044
3045 * common/common-defs.h: Include errno.h.
3046 * defs.h: Do not include errno.h.
3047 * ada-typeprint.c: Likewise.
3048 * c-typeprint.c: Likewise.
3049 * core-regset.c: Likewise.
3050 * corefile.c: Likewise.
3051 * corelow.c: Likewise.
3052 * event-loop.c: Likewise.
3053 * f-typeprint.c: Likewise.
3054 * gnu-nat.c: Likewise.
3055 * go32-nat.c: Likewise.
3056 * i386gnu-nat.c: Likewise.
3057 * m2-typeprint.c: Likewise.
3058 * nat/linux-btrace.c: Likewise.
3059 * p-typeprint.c: Likewise.
3060 * procfs.c: Likewise.
3061 * remote-sim.c: Likewise.
3062 * rs6000-nat.c: Likewise.
3063 * target.c: Likewise.
3064 * typeprint.c: Likewise.
3065 * ui-file.c: Likewise.
3066 * valops.c: Likewise.
3067 * valprint.c: Likewise.
3068
6d3d12eb
GB
30692014-08-07 Gary Benson <gbenson@redhat.com>
3070
3071 * common/common-defs.h: Include string.h.
3072 * aarch64-tdep.c: Do not include string.h.
3073 * ada-exp.y: Likewise.
3074 * ada-lang.c: Likewise.
3075 * ada-lex.l: Likewise.
3076 * ada-typeprint.c: Likewise.
3077 * ada-valprint.c: Likewise.
3078 * aix-thread.c: Likewise.
3079 * alpha-linux-tdep.c: Likewise.
3080 * alpha-mdebug-tdep.c: Likewise.
3081 * alpha-nat.c: Likewise.
3082 * alpha-osf1-tdep.c: Likewise.
3083 * alpha-tdep.c: Likewise.
3084 * alphanbsd-tdep.c: Likewise.
3085 * amd64-dicos-tdep.c: Likewise.
3086 * amd64-linux-tdep.c: Likewise.
3087 * amd64-nat.c: Likewise.
3088 * amd64-sol2-tdep.c: Likewise.
3089 * amd64fbsd-tdep.c: Likewise.
3090 * amd64obsd-tdep.c: Likewise.
3091 * arch-utils.c: Likewise.
3092 * arm-linux-nat.c: Likewise.
3093 * arm-linux-tdep.c: Likewise.
3094 * arm-tdep.c: Likewise.
3095 * arm-wince-tdep.c: Likewise.
3096 * armbsd-tdep.c: Likewise.
3097 * armnbsd-nat.c: Likewise.
3098 * armnbsd-tdep.c: Likewise.
3099 * armobsd-tdep.c: Likewise.
3100 * avr-tdep.c: Likewise.
3101 * ax-gdb.c: Likewise.
3102 * ax-general.c: Likewise.
3103 * bcache.c: Likewise.
3104 * bfin-tdep.c: Likewise.
3105 * breakpoint.c: Likewise.
3106 * build-id.c: Likewise.
3107 * buildsym.c: Likewise.
3108 * c-exp.y: Likewise.
3109 * c-lang.c: Likewise.
3110 * c-typeprint.c: Likewise.
3111 * c-valprint.c: Likewise.
3112 * charset.c: Likewise.
3113 * cli-out.c: Likewise.
3114 * cli/cli-cmds.c: Likewise.
3115 * cli/cli-decode.c: Likewise.
3116 * cli/cli-dump.c: Likewise.
3117 * cli/cli-interp.c: Likewise.
3118 * cli/cli-logging.c: Likewise.
3119 * cli/cli-script.c: Likewise.
3120 * cli/cli-setshow.c: Likewise.
3121 * cli/cli-utils.c: Likewise.
3122 * coffread.c: Likewise.
3123 * common/agent.c: Likewise.
3124 * common/buffer.c: Likewise.
3125 * common/buffer.h: Likewise.
3126 * common/common-utils.c: Likewise.
3127 * common/filestuff.c: Likewise.
3128 * common/filestuff.c: Likewise.
3129 * common/format.c: Likewise.
3130 * common/print-utils.c: Likewise.
3131 * common/rsp-low.c: Likewise.
3132 * common/signals.c: Likewise.
3133 * common/vec.h: Likewise.
3134 * common/xml-utils.c: Likewise.
3135 * core-regset.c: Likewise.
3136 * corefile.c: Likewise.
3137 * corelow.c: Likewise.
3138 * cp-abi.c: Likewise.
3139 * cp-name-parser.y: Likewise.
3140 * cp-support.c: Likewise.
3141 * cp-valprint.c: Likewise.
3142 * cris-tdep.c: Likewise.
3143 * d-exp.y: Likewise.
3144 * darwin-nat.c: Likewise.
3145 * dbxread.c: Likewise.
3146 * dcache.c: Likewise.
3147 * demangle.c: Likewise.
3148 * dicos-tdep.c: Likewise.
3149 * disasm.c: Likewise.
3150 * doublest.c: Likewise.
3151 * dsrec.c: Likewise.
3152 * dummy-frame.c: Likewise.
3153 * dwarf2-frame.c: Likewise.
3154 * dwarf2loc.c: Likewise.
3155 * dwarf2read.c: Likewise.
3156 * elfread.c: Likewise.
3157 * environ.c: Likewise.
3158 * eval.c: Likewise.
3159 * event-loop.c: Likewise.
3160 * exceptions.c: Likewise.
3161 * exec.c: Likewise.
3162 * expprint.c: Likewise.
3163 * f-exp.y: Likewise.
3164 * f-lang.c: Likewise.
3165 * f-typeprint.c: Likewise.
3166 * f-valprint.c: Likewise.
3167 * fbsd-nat.c: Likewise.
3168 * findcmd.c: Likewise.
3169 * findvar.c: Likewise.
3170 * fork-child.c: Likewise.
3171 * frame.c: Likewise.
3172 * frv-linux-tdep.c: Likewise.
3173 * frv-tdep.c: Likewise.
3174 * gdb.c: Likewise.
3175 * gdb_bfd.c: Likewise.
3176 * gdbarch.c: Likewise.
3177 * gdbarch.sh: Likewise.
3178 * gdbtypes.c: Likewise.
3179 * gnu-nat.c: Likewise.
3180 * gnu-v2-abi.c: Likewise.
3181 * gnu-v3-abi.c: Likewise.
3182 * go-exp.y: Likewise.
3183 * go-lang.c: Likewise.
3184 * go32-nat.c: Likewise.
3185 * guile/guile.c: Likewise.
3186 * guile/scm-auto-load.c: Likewise.
3187 * hppa-hpux-tdep.c: Likewise.
3188 * hppa-linux-nat.c: Likewise.
3189 * hppanbsd-tdep.c: Likewise.
3190 * hppaobsd-tdep.c: Likewise.
3191 * i386-cygwin-tdep.c: Likewise.
3192 * i386-dicos-tdep.c: Likewise.
3193 * i386-linux-tdep.c: Likewise.
3194 * i386-nto-tdep.c: Likewise.
3195 * i386-sol2-tdep.c: Likewise.
3196 * i386-tdep.c: Likewise.
3197 * i386bsd-tdep.c: Likewise.
3198 * i386gnu-nat.c: Likewise.
3199 * i386nbsd-tdep.c: Likewise.
3200 * i386obsd-tdep.c: Likewise.
3201 * i387-tdep.c: Likewise.
3202 * ia64-libunwind-tdep.c: Likewise.
3203 * ia64-linux-nat.c: Likewise.
3204 * inf-child.c: Likewise.
3205 * inf-ptrace.c: Likewise.
3206 * inf-ttrace.c: Likewise.
3207 * infcall.c: Likewise.
3208 * infcmd.c: Likewise.
3209 * inflow.c: Likewise.
3210 * infrun.c: Likewise.
3211 * interps.c: Likewise.
3212 * iq2000-tdep.c: Likewise.
3213 * irix5-nat.c: Likewise.
3214 * jv-exp.y: Likewise.
3215 * jv-lang.c: Likewise.
3216 * jv-typeprint.c: Likewise.
3217 * jv-valprint.c: Likewise.
3218 * language.c: Likewise.
3219 * linux-fork.c: Likewise.
3220 * linux-nat.c: Likewise.
3221 * lm32-tdep.c: Likewise.
3222 * m2-exp.y: Likewise.
3223 * m2-typeprint.c: Likewise.
3224 * m32c-tdep.c: Likewise.
3225 * m32r-linux-nat.c: Likewise.
3226 * m32r-linux-tdep.c: Likewise.
3227 * m32r-rom.c: Likewise.
3228 * m32r-tdep.c: Likewise.
3229 * m68hc11-tdep.c: Likewise.
3230 * m68k-tdep.c: Likewise.
3231 * m68kbsd-tdep.c: Likewise.
3232 * m68klinux-nat.c: Likewise.
3233 * m68klinux-tdep.c: Likewise.
3234 * m88k-tdep.c: Likewise.
3235 * machoread.c: Likewise.
3236 * macrocmd.c: Likewise.
3237 * main.c: Likewise.
3238 * mdebugread.c: Likewise.
3239 * mem-break.c: Likewise.
3240 * memattr.c: Likewise.
3241 * memory-map.c: Likewise.
3242 * mep-tdep.c: Likewise.
3243 * mi/mi-cmd-break.c: Likewise.
3244 * mi/mi-cmd-disas.c: Likewise.
3245 * mi/mi-cmd-env.c: Likewise.
3246 * mi/mi-cmd-stack.c: Likewise.
3247 * mi/mi-cmd-var.c: Likewise.
3248 * mi/mi-cmds.c: Likewise.
3249 * mi/mi-console.c: Likewise.
3250 * mi/mi-getopt.c: Likewise.
3251 * mi/mi-interp.c: Likewise.
3252 * mi/mi-main.c: Likewise.
3253 * mi/mi-parse.c: Likewise.
3254 * microblaze-rom.c: Likewise.
3255 * microblaze-tdep.c: Likewise.
3256 * mingw-hdep.c: Likewise.
3257 * minidebug.c: Likewise.
3258 * minsyms.c: Likewise.
3259 * mips-irix-tdep.c: Likewise.
3260 * mips-linux-tdep.c: Likewise.
3261 * mips-tdep.c: Likewise.
3262 * mips64obsd-tdep.c: Likewise.
3263 * mipsnbsd-tdep.c: Likewise.
3264 * mipsread.c: Likewise.
3265 * mn10300-linux-tdep.c: Likewise.
3266 * mn10300-tdep.c: Likewise.
3267 * monitor.c: Likewise.
3268 * moxie-tdep.c: Likewise.
3269 * mt-tdep.c: Likewise.
3270 * nat/linux-btrace.c: Likewise.
3271 * nat/linux-osdata.c: Likewise.
3272 * nat/linux-procfs.c: Likewise.
3273 * nat/linux-ptrace.c: Likewise.
3274 * nat/linux-waitpid.c: Likewise.
3275 * nbsd-tdep.c: Likewise.
3276 * nios2-linux-tdep.c: Likewise.
3277 * nto-procfs.c: Likewise.
3278 * nto-tdep.c: Likewise.
3279 * objc-lang.c: Likewise.
3280 * objfiles.c: Likewise.
3281 * opencl-lang.c: Likewise.
3282 * osabi.c: Likewise.
3283 * osdata.c: Likewise.
3284 * p-exp.y: Likewise.
3285 * p-lang.c: Likewise.
3286 * p-typeprint.c: Likewise.
3287 * parse.c: Likewise.
3288 * posix-hdep.c: Likewise.
3289 * ppc-linux-nat.c: Likewise.
3290 * ppc-sysv-tdep.c: Likewise.
3291 * ppcfbsd-tdep.c: Likewise.
3292 * ppcnbsd-tdep.c: Likewise.
3293 * ppcobsd-tdep.c: Likewise.
3294 * printcmd.c: Likewise.
3295 * procfs.c: Likewise.
3296 * prologue-value.c: Likewise.
3297 * python/py-auto-load.c: Likewise.
3298 * python/py-gdb-readline.c: Likewise.
3299 * ravenscar-thread.c: Likewise.
3300 * regcache.c: Likewise.
3301 * registry.c: Likewise.
3302 * remote-fileio.c: Likewise.
3303 * remote-m32r-sdi.c: Likewise.
3304 * remote-mips.c: Likewise.
3305 * remote-notif.c: Likewise.
3306 * remote-sim.c: Likewise.
3307 * remote.c: Likewise.
3308 * reverse.c: Likewise.
3309 * rs6000-aix-tdep.c: Likewise.
3310 * ser-base.c: Likewise.
3311 * ser-go32.c: Likewise.
3312 * ser-mingw.c: Likewise.
3313 * ser-pipe.c: Likewise.
3314 * ser-tcp.c: Likewise.
3315 * ser-unix.c: Likewise.
3316 * serial.c: Likewise.
3317 * sh-tdep.c: Likewise.
3318 * sh64-tdep.c: Likewise.
3319 * shnbsd-tdep.c: Likewise.
3320 * skip.c: Likewise.
3321 * sol-thread.c: Likewise.
3322 * solib-dsbt.c: Likewise.
3323 * solib-frv.c: Likewise.
3324 * solib-osf.c: Likewise.
3325 * solib-som.c: Likewise.
3326 * solib-spu.c: Likewise.
3327 * solib-target.c: Likewise.
3328 * solib.c: Likewise.
3329 * somread.c: Likewise.
3330 * source.c: Likewise.
3331 * sparc-nat.c: Likewise.
3332 * sparc-sol2-tdep.c: Likewise.
3333 * sparc-tdep.c: Likewise.
3334 * sparc64-tdep.c: Likewise.
3335 * sparc64fbsd-tdep.c: Likewise.
3336 * sparc64nbsd-tdep.c: Likewise.
3337 * sparcnbsd-tdep.c: Likewise.
3338 * spu-linux-nat.c: Likewise.
3339 * spu-multiarch.c: Likewise.
3340 * spu-tdep.c: Likewise.
3341 * stabsread.c: Likewise.
3342 * stack.c: Likewise.
3343 * std-regs.c: Likewise.
3344 * symfile.c: Likewise.
3345 * symmisc.c: Likewise.
3346 * symtab.c: Likewise.
3347 * target.c: Likewise.
3348 * thread.c: Likewise.
3349 * tilegx-linux-nat.c: Likewise.
3350 * tilegx-tdep.c: Likewise.
3351 * top.c: Likewise.
3352 * tracepoint.c: Likewise.
3353 * tui/tui-command.c: Likewise.
3354 * tui/tui-data.c: Likewise.
3355 * tui/tui-disasm.c: Likewise.
3356 * tui/tui-file.c: Likewise.
3357 * tui/tui-layout.c: Likewise.
3358 * tui/tui-out.c: Likewise.
3359 * tui/tui-regs.c: Likewise.
3360 * tui/tui-source.c: Likewise.
3361 * tui/tui-stack.c: Likewise.
3362 * tui/tui-win.c: Likewise.
3363 * tui/tui-windata.c: Likewise.
3364 * tui/tui-winsource.c: Likewise.
3365 * typeprint.c: Likewise.
3366 * ui-file.c: Likewise.
3367 * ui-out.c: Likewise.
3368 * user-regs.c: Likewise.
3369 * utils.c: Likewise.
3370 * v850-tdep.c: Likewise.
3371 * valarith.c: Likewise.
3372 * valops.c: Likewise.
3373 * valprint.c: Likewise.
3374 * value.c: Likewise.
3375 * varobj.c: Likewise.
3376 * vax-tdep.c: Likewise.
3377 * vaxnbsd-tdep.c: Likewise.
3378 * vaxobsd-tdep.c: Likewise.
3379 * windows-nat.c: Likewise.
3380 * xcoffread.c: Likewise.
3381 * xml-support.c: Likewise.
3382 * xstormy16-tdep.c: Likewise.
3383 * xtensa-linux-nat.c: Likewise.
3384
dccbb609
GB
33852014-08-07 Gary Benson <gbenson@redhat.com>
3386
3387 * common/common-defs.h: Include gdb_assert.h.
3388 * aarch64-tdep.c: Do not include gdb_assert.h.
3389 * addrmap.c: Likewise.
3390 * aix-thread.c: Likewise.
3391 * alpha-linux-tdep.c: Likewise.
3392 * alpha-mdebug-tdep.c: Likewise.
3393 * alphanbsd-tdep.c: Likewise.
3394 * amd64-nat.c: Likewise.
3395 * amd64-tdep.c: Likewise.
3396 * amd64bsd-nat.c: Likewise.
3397 * amd64fbsd-nat.c: Likewise.
3398 * amd64fbsd-tdep.c: Likewise.
3399 * amd64nbsd-nat.c: Likewise.
3400 * amd64nbsd-tdep.c: Likewise.
3401 * amd64obsd-nat.c: Likewise.
3402 * amd64obsd-tdep.c: Likewise.
3403 * arch-utils.c: Likewise.
3404 * arm-tdep.c: Likewise.
3405 * armbsd-tdep.c: Likewise.
3406 * auxv.c: Likewise.
3407 * bcache.c: Likewise.
3408 * bfin-tdep.c: Likewise.
3409 * blockframe.c: Likewise.
3410 * breakpoint.c: Likewise.
3411 * bsd-kvm.c: Likewise.
3412 * bsd-uthread.c: Likewise.
3413 * buildsym.c: Likewise.
3414 * c-exp.y: Likewise.
3415 * c-lang.c: Likewise.
3416 * charset.c: Likewise.
3417 * cleanups.c: Likewise.
3418 * cli-out.c: Likewise.
3419 * cli/cli-decode.c: Likewise.
3420 * cli/cli-dump.c: Likewise.
3421 * cli/cli-logging.c: Likewise.
3422 * cli/cli-script.c: Likewise.
3423 * cli/cli-utils.c: Likewise.
3424 * coffread.c: Likewise.
3425 * common/common-utils.c: Likewise.
3426 * common/queue.h: Likewise.
3427 * common/signals.c: Likewise.
3428 * common/vec.h: Likewise.
3429 * complaints.c: Likewise.
3430 * completer.c: Likewise.
3431 * corelow.c: Likewise.
3432 * cp-abi.c: Likewise.
3433 * cp-name-parser.y: Likewise.
3434 * cp-namespace.c: Likewise.
3435 * cp-support.c: Likewise.
3436 * cris-tdep.c: Likewise.
3437 * dbxread.c: Likewise.
3438 * dictionary.c: Likewise.
3439 * doublest.c: Likewise.
3440 * dsrec.c: Likewise.
3441 * dummy-frame.c: Likewise.
3442 * dwarf2-frame-tailcall.c: Likewise.
3443 * dwarf2-frame.c: Likewise.
3444 * dwarf2expr.c: Likewise.
3445 * dwarf2loc.c: Likewise.
3446 * dwarf2read.c: Likewise.
3447 * eval.c: Likewise.
3448 * event-loop.c: Likewise.
3449 * exceptions.c: Likewise.
3450 * expprint.c: Likewise.
3451 * f-valprint.c: Likewise.
3452 * fbsd-nat.c: Likewise.
3453 * findvar.c: Likewise.
3454 * frame-unwind.c: Likewise.
3455 * frame.c: Likewise.
3456 * frv-tdep.c: Likewise.
3457 * gcore.c: Likewise.
3458 * gdb-dlfcn.c: Likewise.
3459 * gdb_bfd.c: Likewise.
3460 * gdbarch.c: Likewise.
3461 * gdbarch.sh: Likewise.
3462 * gdbtypes.c: Likewise.
3463 * gnu-nat.c: Likewise.
3464 * gnu-v3-abi.c: Likewise.
3465 * go-lang.c: Likewise.
3466 * guile/scm-exception.c: Likewise.
3467 * guile/scm-gsmob.c: Likewise.
3468 * guile/scm-lazy-string.c: Likewise.
3469 * guile/scm-math.c: Likewise.
3470 * guile/scm-pretty-print.c: Likewise.
3471 * guile/scm-safe-call.c: Likewise.
3472 * guile/scm-utils.c: Likewise.
3473 * guile/scm-value.c: Likewise.
3474 * h8300-tdep.c: Likewise.
3475 * hppa-hpux-nat.c: Likewise.
3476 * hppa-tdep.c: Likewise.
3477 * hppanbsd-tdep.c: Likewise.
3478 * hppaobsd-tdep.c: Likewise.
3479 * i386-darwin-nat.c: Likewise.
3480 * i386-darwin-tdep.c: Likewise.
3481 * i386-nto-tdep.c: Likewise.
3482 * i386-tdep.c: Likewise.
3483 * i386bsd-nat.c: Likewise.
3484 * i386fbsd-tdep.c: Likewise.
3485 * i386gnu-nat.c: Likewise.
3486 * i386nbsd-tdep.c: Likewise.
3487 * i386obsd-tdep.c: Likewise.
3488 * i387-tdep.c: Likewise.
3489 * ia64-libunwind-tdep.c: Likewise.
3490 * ia64-tdep.c: Likewise.
3491 * inf-ptrace.c: Likewise.
3492 * inf-ttrace.c: Likewise.
3493 * infcall.c: Likewise.
3494 * infcmd.c: Likewise.
3495 * infrun.c: Likewise.
3496 * inline-frame.c: Likewise.
3497 * interps.c: Likewise.
3498 * jv-lang.c: Likewise.
3499 * jv-typeprint.c: Likewise.
3500 * linux-fork.c: Likewise.
3501 * linux-nat.c: Likewise.
3502 * linux-thread-db.c: Likewise.
3503 * m32c-tdep.c: Likewise.
3504 * m32r-linux-nat.c: Likewise.
3505 * m32r-tdep.c: Likewise.
3506 * m68k-tdep.c: Likewise.
3507 * m68kbsd-nat.c: Likewise.
3508 * m68kbsd-tdep.c: Likewise.
3509 * m88k-tdep.c: Likewise.
3510 * machoread.c: Likewise.
3511 * macroexp.c: Likewise.
3512 * macrotab.c: Likewise.
3513 * maint.c: Likewise.
3514 * mdebugread.c: Likewise.
3515 * memory-map.c: Likewise.
3516 * mep-tdep.c: Likewise.
3517 * mi/mi-common.c: Likewise.
3518 * microblaze-tdep.c: Likewise.
3519 * mingw-hdep.c: Likewise.
3520 * mips-linux-nat.c: Likewise.
3521 * mips-linux-tdep.c: Likewise.
3522 * mips-tdep.c: Likewise.
3523 * mips64obsd-tdep.c: Likewise.
3524 * mipsnbsd-tdep.c: Likewise.
3525 * mn10300-linux-tdep.c: Likewise.
3526 * mn10300-tdep.c: Likewise.
3527 * moxie-tdep.c: Likewise.
3528 * mt-tdep.c: Likewise.
3529 * nat/linux-btrace.c: Likewise.
3530 * nat/linux-osdata.c: Likewise.
3531 * nat/linux-ptrace.c: Likewise.
3532 * nat/mips-linux-watch.c: Likewise.
3533 * nios2-linux-tdep.c: Likewise.
3534 * nios2-tdep.c: Likewise.
3535 * objc-lang.c: Likewise.
3536 * objfiles.c: Likewise.
3537 * obsd-nat.c: Likewise.
3538 * opencl-lang.c: Likewise.
3539 * osabi.c: Likewise.
3540 * parse.c: Likewise.
3541 * ppc-linux-nat.c: Likewise.
3542 * ppc-sysv-tdep.c: Likewise.
3543 * ppcfbsd-nat.c: Likewise.
3544 * ppcfbsd-tdep.c: Likewise.
3545 * ppcnbsd-nat.c: Likewise.
3546 * ppcnbsd-tdep.c: Likewise.
3547 * ppcobsd-nat.c: Likewise.
3548 * ppcobsd-tdep.c: Likewise.
3549 * printcmd.c: Likewise.
3550 * procfs.c: Likewise.
3551 * prologue-value.c: Likewise.
3552 * psymtab.c: Likewise.
3553 * python/py-lazy-string.c: Likewise.
3554 * python/py-value.c: Likewise.
3555 * regcache.c: Likewise.
3556 * reggroups.c: Likewise.
3557 * registry.c: Likewise.
3558 * remote-sim.c: Likewise.
3559 * remote.c: Likewise.
3560 * rs6000-aix-tdep.c: Likewise.
3561 * rs6000-tdep.c: Likewise.
3562 * s390-linux-tdep.c: Likewise.
3563 * score-tdep.c: Likewise.
3564 * ser-base.c: Likewise.
3565 * ser-mingw.c: Likewise.
3566 * sh-tdep.c: Likewise.
3567 * sh64-tdep.c: Likewise.
3568 * solib-darwin.c: Likewise.
3569 * solib-spu.c: Likewise.
3570 * solib-svr4.c: Likewise.
3571 * source.c: Likewise.
3572 * sparc-nat.c: Likewise.
3573 * sparc-sol2-tdep.c: Likewise.
3574 * sparc-tdep.c: Likewise.
3575 * sparc64-sol2-tdep.c: Likewise.
3576 * sparc64-tdep.c: Likewise.
3577 * sparc64fbsd-tdep.c: Likewise.
3578 * sparc64nbsd-tdep.c: Likewise.
3579 * sparc64obsd-tdep.c: Likewise.
3580 * sparcnbsd-tdep.c: Likewise.
3581 * sparcobsd-tdep.c: Likewise.
3582 * spu-multiarch.c: Likewise.
3583 * spu-tdep.c: Likewise.
3584 * stabsread.c: Likewise.
3585 * stack.c: Likewise.
3586 * symfile.c: Likewise.
3587 * symtab.c: Likewise.
3588 * target-descriptions.c: Likewise.
3589 * target-memory.c: Likewise.
3590 * target.c: Likewise.
3591 * tic6x-linux-tdep.c: Likewise.
3592 * tic6x-tdep.c: Likewise.
3593 * tilegx-linux-nat.c: Likewise.
3594 * tilegx-tdep.c: Likewise.
3595 * top.c: Likewise.
3596 * tramp-frame.c: Likewise.
3597 * tui/tui-out.c: Likewise.
3598 * tui/tui-winsource.c: Likewise.
3599 * ui-out.c: Likewise.
3600 * user-regs.c: Likewise.
3601 * utils.c: Likewise.
3602 * v850-tdep.c: Likewise.
3603 * valops.c: Likewise.
3604 * value.c: Likewise.
3605 * varobj.c: Likewise.
3606 * vax-nat.c: Likewise.
3607 * xml-syscall.c: Likewise.
3608 * xml-tdesc.c: Likewise.
3609 * xstormy16-tdep.c: Likewise.
3610 * xtensa-linux-nat.c: Likewise.
3611 * xtensa-tdep.c: Likewise.
3612
e76df0d0
GB
36132014-08-07 Gary Benson <gbenson@redhat.com>
3614
3615 * common/common-defs.h: Include common-utils.h.
3616 * defs.h: Do not include common-utils.h.
3617 * common/gdb_assert.h: Likewise.
3618 * darwin-nat.h: Likewise.
3619 * nat/linux-btrace.c: Likewise.
3620 * target/waitstatus.h: Likewise.
3621
4cb9c816
GB
36222014-08-07 Gary Benson <gbenson@redhat.com>
3623
3624 * common/common-defs.h: Include ptid.h.
3625 * defs.h: Do not include ptid.h.
3626 * inferior.h: Likewise.
3627 * infrun.h: Likewise.
3628 * nat/linux-btrace.h: Likewise.
3629 * nat/linux-osdata.h: Likewise.
3630 * target/waitstatus.h: Likewise.
3631
3995eeee
GB
36322014-08-07 Gary Benson <gbenson@redhat.com>
3633
3634 * common/common-defs.h: Include gdb_locale.h.
3635 * defs.h: Do not include gdb_locale.h.
3636
cb9f1a9b
GB
36372014-08-07 Gary Benson <gbenson@redhat.com>
3638
3639 * common/common-defs.h: Include gdb/signals.h.
3640 * defs.h: Do not include gdb/signals.h.
3641
a5fceff8
GB
36422014-08-07 Gary Benson <gbenson@redhat.com>
3643
3644 * common/common-defs.h: Include pathmax.h.
3645 * defs.h: Do not include pathmax.h.
3646
b9391142
GB
36472014-08-07 Gary Benson <gbenson@redhat.com>
3648
3649 * common/common-defs.h: Include libiberty.h.
3650 * defs.h: Do not include libiberty.h.
3651 * common/queue.h: Likewise.
3652 * cp-name-parser.y: Likewise.
3653 * mi/mi-cmd-catch.c: Likewise.
3654 * python/python.c: Likewise.
3655
0e443c87
GB
36562014-08-07 Gary Benson <gbenson@redhat.com>
3657
3658 * common/common-defs.h: Include ansidecl.h.
3659 * defs.h: Do not include ansidecl.h.
3660 * common/buffer.h: Likewise.
3661 * common/common-utils.h: Likewise.
3662
8ebb3f56
GB
36632014-08-07 Gary Benson <gbenson@redhat.com>
3664
3665 * common/common-defs.h: Include stddef.h.
3666 * defs.h: Do not include stddef.h.
3667 * common/common-utils.h: Likewise.
3668 * amd64fbsd-nat.c: Likewise.
3669 * bcache.c: Likewise.
3670 * charset.c: Likewise.
3671 * common/buffer.h: Likewise.
3672 * common/vec.h: Likewise.
3673 * i386bsd-nat.c: Likewise.
3674 * nat/linux-btrace.h: Likewise.
3675 * ppcfbsd-nat.c: Likewise.
3676 * ppcnbsd-tdep.h: Likewise.
3677 * ppcobsd-nat.c: Likewise.
3678 * ppcobsd-tdep.h: Likewise.
3679 * python/py-gdb-readline.c: Likewise.
3680
8980bdf6
GB
36812014-08-07 Gary Benson <gbenson@redhat.com>
3682
3683 * common/common-defs.h: Include stdarg.h.
3684 * defs.h: Do not include stdarg.h.
3685 * ada-lang.c: Likewise.
3686 * common/common-utils.h: Likewise.
3687 * guile/scm-string.c: Likewise.
3688 * guile/scm-utils.c: Likewise.
3689 * m32c-tdep.c: Likewise.
3690
d7096f71
GB
36912014-08-07 Gary Benson <gbenson@redhat.com>
3692
3693 * common/common-defs.h: Include stdlib.h.
3694 * defs.h: Do not include stdlib.h.
3695 * addrmap.c: Likewise.
3696 * bcache.c: Likewise.
3697 * common/buffer.c: Likewise.
3698 * common/common-utils.c: Likewise.
3699 * cp-name-parser.y: Likewise.
3700 * go32-nat.c: Likewise.
3701 * mn10300-linux-tdep.c: Likewise.
3702 * nat/linux-osdata.c: Likewise.
3703 * tui/tui.c: Likewise.
3704 * windows-nat.c: Likewise.
3705
d02f550d
GB
37062014-08-07 Gary Benson <gbenson@redhat.com>
3707
3708 * common/common-defs.h: Include stdio.h.
3709 * defs.h: Do not include stdio.h.
3710 * ada-lang.c: Likewise.
3711 * common/buffer.c: Likewise.
3712 * common/common-utils.c: Likewise.
3713 * cp-name-parser.y: Likewise.
3714 * gnu-nat.c: Likewise.
3715 * go32-nat.c: Likewise.
3716 * i386gnu-nat.c: Likewise.
3717 * proc-api.c: Likewise.
3718 * proc-events.c: Likewise.
3719 * proc-flags.c: Likewise.
3720 * proc-why.c: Likewise.
3721 * python/python-internal.h: Likewise.
3722 * target-memory.c: Likewise.
3723 * tui/tui-io.c: Likewise.
3724 * tui/tui.c: Likewise.
3725
b6d7a4bf
SM
37262014-08-06 Simon Marchi <simon.marchi@ericsson.com>
3727
3728 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
3729 (scan_dyntag_auxv): Same.
3730
af19829b
YQ
37312014-08-06 Yao Qi <yao@codesourcery.com>
3732
3733 * amd64-linux-nat.c: Remove duplicated include
3734 "x86-linux-nat.h".
3735 * i386-linux-nat.c: Likewise.
3736
8e07a239
YQ
37372014-08-06 Yao Qi <yao@codesourcery.com>
3738
3739 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
3740 operand" with "Special opcode" in comments.
3741
7bfe8241
GB
37422014-08-05 Gary Benson <gbenson@redhat.com>
3743
3744 * interps.c (initialize_interps): Remove prototype.
3745 (interpreter_initialized): Remove static global.
3746 (interp_add): Do not call initialize_interps.
3747 (initialize_interps): Remove function.
3748
d6c95504
GB
37492014-08-05 Gary Benson <gbenson@redhat.com>
3750
3751 * utils.c (vwarning): Remove spurious va_end.
3752
241fd515
AM
37532014-08-05 Alan Modra <amodra@gmail.com>
3754
3755 * charset.c (convert_between_encodings): Cast result of obstack_base.
3756 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
3757 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
3758 (read_unwind_info): Use size_t for some locals.
3759 * jit.c (finalize_symtab): Likewise.
3760 * utils.c (hashtab_obstack_allocate): Likewise.
3761 * symmisc.c (print_objfile_statistics): Update format strings.
3762
dc304a94
JK
37632014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3764
3765 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
3766 (Changes in GDB 7.8): ... here.
3767
3cecbbbe
TT
37682014-08-04 Tom Tromey <tromey@redhat.com>
3769
3770 * target.c (set_targetdebug): New function.
3771 (initialize_targets): Pass set_targetdebug when creating "set
3772 debug target".
3773
6908c509
JB
37742014-08-01 Joel Brobecker <brobecker@adacore.com>
3775
3776 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
3777 if detecting a variable-sized field that is not the last field.
3778 Fix struct type length computation.
3779
53e8f97d
JB
37802014-08-01 Joel Brobecker <brobecker@adacore.com>
3781
3782 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
3783 Add debug trace.
3784
e068c55d
JB
37852014-08-01 Joel Brobecker <brobecker@adacore.com>
3786
3787 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
3788 Remove "+ 8" offset in computation of CHAIN_VMA.
3789
4d4ca2a1
DE
37902014-07-31 Doug Evans <dje@google.com>
3791
3792 * inflow.c (child_terminal_inferior): Add comment.
3793 (child_terminal_ours_for_output): Add comment.
3794 (child_terminal_ours): Add comment.
3795 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
3796 (linux_nat_terminal_ours): Add comment.
3797
462f517e
GB
37982014-07-31 Gary Benson <gbenson@redhat.com>
3799
3800 * common/btrace-common.h: Do not include defs.h or server.h.
3801 * nat/mips-linux-watch.h: Likewise.
3802 * gdb-dlfcn.h: Do not include defs.h.
3803 * tracefile.h: Likewise.
3804
74228e77
RM
38052014-07-30 Roland McGrath <mcgrathr@google.com>
3806
3807 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
3808
014f9477
TT
38092014-07-30 Tom Tromey <tromey@redhat.com>
3810
3811 * bsd-kvm.c (bsd_kvm_open): Constify.
3812 * corelow.c (core_open): Constify.
3813 * ctf.c (ctf_open): Constify.
3814 * dbug-rom.c (dbug_open): Constify.
3815 * exec.c (exec_open): Constify.
3816 * m32r-rom.c (m32r_open, mon2000_open): Constify.
3817 * microblaze-rom.c (picobug_open): Constify.
3818 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
3819 Constify.
3820 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
3821 * record-btrace.c (record_btrace_open): Constify.
3822 * record-full.c (record_full_core_open_1, record_full_open_1)
3823 (record_full_open): Constify.
3824 * remote-m32r-sdi.c (m32r_open): Constify.
3825 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
3826 (rockhopper_open, lsi_open): Constify.
3827 * remote-sim.c (gdbsim_open): Constify.
3828 * remote.c (remote_open, extended_remote_open, remote_open_1):
3829 Constify.
3830 * target.h (struct target_ops) <to_open>: Make "arg" const.
3831 * tracefile-tfile.c (tfile_open): Constify.
3832
e799154c
TT
38332014-07-30 Tom Tromey <tromey@redhat.com>
3834
3835 * breakpoint.c (map_breakpoint_numbers): Update.
3836 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
3837 (get_number_const): New function.
3838 (get_number): Rewrite using get_number_const.
3839 (init_number_or_range): Make "string" const.
3840 (number_is_in_list): Make "list" const.
3841 * cli/cli-utils.h (get_number_const): Declare.
3842 (struct get_number_or_range_state) <string, end_ptr>: Now const.
3843 (init_number_or_range, number_is_in_list): Update.
3844 * printcmd.c (map_display_numbers): Update.
3845 * value.c (value_from_history_ref): Constify.
3846 * value.h (value_from_history_ref): Update.
3847
5f08566b
TT
38482014-07-30 Tom Tromey <tromey@redhat.com>
3849
3850 * corefile.c (hook_type, call_extra_exec_file_hooks)
3851 (specify_exec_file_hook): Constify.
3852 * exec.c (exec_file_attach): Make "filename" const.
3853 * gdbcore.h (deprecated_exec_file_display_hook)
3854 (specify_exec_file_hook, exec_file_attach): Constify.
3855 * main.c (captured_main): Use catch_command_errors_const.
3856
8981c758
TT
38572014-07-30 Tom Tromey <tromey@redhat.com>
3858
3859 * target.c (open_target): New function.
3860 (add_target_with_completer, add_deprecated_target_alias): Use
3861 set_cmd_sfunc, set_cmd_context.
3862 (debug_to_open): Remove.
3863 (setup_target_debug): Update.
3864
a1c7835a
YQ
38652014-07-30 Yao Qi <yao@codesourcery.com>
3866
3867 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
3868 comments.
3869 * parse.c (exp_iterate): Update comments.
3870
976411d6
GB
38712014-07-30 Gary Benson <gbenson@redhat.com>
3872
3873 * common/common-defs.h: New file.
3874 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
3875 * defs.h: Include common-defs.h.
3876 Do not include config.h or build-gnulib/config.h.
3877
5d4848a4
GB
38782014-07-30 Gary Benson <gbenson@redhat.com>
3879
3880 * common/common-utils.h: Do not include config.h.
3881 * nat/linux-btrace.h: Likewise.
3882
d41f6d8e
GB
38832014-07-30 Gary Benson <gbenson@redhat.com>
3884
3885 * btrace.c: Include defs.h.
3886 * common/ptid.c: Include defs.h or server.h as appropriate.
3887 * nat/mips-linux-watch.c: Likewise.
3888
84202f9c
TT
38892014-07-29 Tom Tromey <tromey@redhat.com>
3890
3891 * target.c (target_is_pushed): Simplify.
3892
2530441c
JB
38932014-07-29 Joel Brobecker <brobecker@adacore.com>
3894
3895 GDB 7.8 released.
3896
7e09a223
YQ
38972014-07-29 Yao Qi <yao@codesourcery.com>
3898
3899 PR gdb/17206
3900 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
3901
7ebdbe92
DE
39022014-07-28 Doug Evans <xdje42@gmail.com>
3903
3904 PR guile/17203
3905 * guile/scm-param.c (pascm_parameter_defined_p): New function.
3906 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
3907 parameters.
3908
f347ffc9
WN
39092014-07-28 Will Newton <will.newton@linaro.org>
3910
3911 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
3912 (THUMB2_SET_R7_SIGRETURN2): Likewise.
3913 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
3914 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
3915 (THUMB2_EABI_SYSCALL): Likewise.
3916 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
3917 struct tramp_frame.
3918 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
3919 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
3920
37c5f1f7
DE
39212014-07-27 Doug Evans <xdje42@gmail.com>
3922
3923 * guile/scm-param.c (pascm_print_param_smob): Fix output.
3924
0c3abbc7
DE
39252014-07-27 Doug Evans <xdje42@gmail.com>
3926
3927 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
3928
e76c5d17
DE
39292014-07-26 Ludovic Courtès <ludo@gnu.org>
3930 Doug Evans <xdje42@gmail.com>
3931
3932 PR guile/17146
3933 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
3934 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
3935 * configure.ac: Try to use guild to compile an scm file, if it fails
3936 then disable guile support.
3937 * configure: Regenerate.
3938 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
3939 GUILE_FILE_LIST.
3940 (GUILE_COMPILED_FILES): New variable.
3941 (GUILE_FILES) Update.
3942 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
3943 (stamp-guile): Compile scm files.
3944 * guile/guile.c (boot_guile_support): New function.
3945 (standard_throw_args_p): New function.
3946 (print_standard_throw_error, print_throw_error): New functions.
3947 (handle_boot_error): New function.
3948 (initialize_scheme_side): Rewrite to call boot_guile_support.
3949 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
3950 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
3951
186fcde0
DE
39522014-07-26 Ludovic Courtès <ludo@gnu.org>
3953 Doug Evans <xdje42@gmail.com>
3954
3955 PR guile/17146
3956 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
3957 * guile/lib/gdb/support.scm: New file.
3958 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
3959 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
3960 All uses updated.
3961 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
3962 All uses updated.
3963 (%assert-type): Ditto, and renamed to assert-type.
3964 (%exception-print-style): Delete.
3965
4df42755
DE
39662014-07-26 Doug Evans <xdje42@gmail.com>
3967
3968 PR build/17105
3969 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
3970 * configure: Regenerate.
3971 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
3972 PYTHON_FILES.
3973 (PYTHON_FILES): New variable.
3974 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
3975 (GUILE_FILES): New variable.
3976 (stamp-python, install-python, uninstall-python): Handle empty
3977 file list.
3978 (stamp-guile, install-guile, uninstall-guile): Ditto.
3979
ee7333ae
DE
39802014-07-26 Doug Evans <xdje42@gmail.com>
3981
3982 PR guile/17177
3983 * guile/lib/gdb.scm (pretty-printers): Export.
3984 (set-pretty-printers!): Export.
3985 * guile/lib/gdb/printing.scm (gdb module): Update.
3986 (prepend-pretty-printer!, append-pretty-printer!): Update.
3987 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
3988 (pretty_printer_list_var): Delete.
3989 (pretty_printer_list): New static global.
3990 (gdbscm_pretty_printers): New function.
3991 (gdbscm_set_pretty_printers_x): New function.
3992 (ppscm_find_pretty_printer_from_gdb): Update.
3993 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
3994 (gdbscm_initialize_pretty_printers): Update.
3995
74edf516
DE
39962014-07-26 Doug Evans <xdje42@gmail.com>
3997
3998 PR 17185
3999 * configure.ac: Add check for header gc/gc.h.
4000 Add check for function setenv.
4001 * configure: Regenerate.
4002 * config.in: Regenerate.
4003 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
4004
d54398a7
MR
40052014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
4006
4007 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
4008 variation in gdbarch matching.
4009
ab16fce8
TT
40102014-07-25 Tom Tromey <tromey@redhat.com>
4011
4012 * exec.c (using_exec_ops): Remove.
4013 (exec_close_1): Update. Remove extraneous block, reindent.
4014 (add_target_sections): Use target_is_pushed.
4015
88056fbb
PA
40162014-07-25 Pedro Alves <palves@redhat.com>
4017
4018 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
4019 * monitor.c (monitor_create_inferior): Likewise.
4020 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
4021 * remote-sim.c (gdbsim_create_inferior): Likewise.
4022 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
4023 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
4024 * windows-nat.c (do_initial_windows_stuff): Likewise.
4025
70509625
PA
40262014-07-25 Pedro Alves <palves@redhat.com>
4027
4028 * NEWS: Mention signal passing and "signal" command changes.
4029 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
4030 comment.
4031 * breakpoint.c (until_break_command): Adjust clear_proceed_status
4032 call.
4033 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
4034 * infcmd.c (proceed_thread_callback, continue_1, step_once)
4035 (jump_command): Adjust clear_proceed_status call.
4036 (signal_command): Warn if other thread that are resumed have
4037 signals that will be delivered. Adjust clear_proceed_status call.
4038 (until_next_command, finish_command)
4039 (proceed_after_attach_callback, attach_command_post_wait)
4040 (attach_command): Adjust clear_proceed_status call.
4041 * infrun.c (proceed_after_vfork_done): Likewise.
4042 (proceed_after_attach_callback): Adjust comment.
4043 (clear_proceed_status_thread): Clear stop_signal if not in pass
4044 state.
4045 (clear_proceed_status_callback): Delete.
4046 (clear_proceed_status): New 'step' parameter. Only clear the
4047 proceed status of threads the command being prepared is about to
4048 resume.
4049 (proceed): If passed in an explicit signal, override stop_signal
4050 with it. Don't pass the last stop signal to the thread we're
4051 resuming.
4052 (init_wait_for_inferior): Adjust clear_proceed_status call.
4053 (switch_back_to_stepped_thread): Clear the signal if it should not
4054 be passed.
4055 * infrun.h (clear_proceed_status): New 'step' parameter.
4056 (user_visible_resume_ptid): Add comment.
4057 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
4058 signal is in pass state.
4059 * remote.c (append_pending_thread_resumptions): Likewise.
4060 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
4061
d8be2939
TT
40622014-07-25 Tom Tromey <tromey@redhat.com>
4063
4064 * target.h (target_stopped_data_address)
4065 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
4066 parentheses.
4067
7d0d9d2b
PL
40682014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
4069
4070 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
4071 comments.
4072 (avr_pointer_to_address): Likewise.
4073
e9e7f724
TT
40742014-07-24 Tom Tromey <tromey@redhat.com>
4075
4076 * monitor.c (compile_pattern): Update.
4077 * target.h (struct target_ops) <to_shortname, to_longname,
4078 to_doc>: Now const.
4079
1947513d
TT
40802014-07-24 Tom Tromey <tromey@redhat.com>
4081
4082 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
4083 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
4084 (add_info_alias, add_com): Make "doc" const.
4085 (print_doc_line): Make "str" const.
4086 (delete_cmd): Update.
4087 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
4088 (print_doc_line): Update.
4089 * cli/cli-script.c (document_command): Update.
4090 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
4091 (add_com, add_info, add_info_alias): Update.
4092 * guile/scm-cmd.c (cmdscm_destroyer): Update.
4093 * python/py-cmd.c (cmdpy_destroyer): Update.
4094
64e61d29
TT
40952014-07-24 Tom Tromey <tromey@redhat.com>
4096
4097 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
4098 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
4099 (help_cmd_list): Constify.
4100 (lookup_cmd): Update.
4101 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
4102 const.
4103 (help_cmd_list, apropos_cmd): Update.
4104 * cli/cli-script.c (show_user): Update.
4105 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
4106 * cli/cli-setshow.h (cmd_show_list): Update.
4107 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
4108 (cmd_show_list): Update.
4109 * guile/scm-cmd.c (cmdscm_destroyer): Update.
4110 * python/py-cmd.c (cmdpy_destroyer): Update.
4111
429e55ea
TT
41122014-07-24 Tom Tromey <tromey@redhat.com>
4113
4114 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
4115 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
4116 const.
4117 * command.h (deprecate_cmd): Update.
4118 * maint.c (maintenance_do_deprecate): Add casts.
4119
64669f3b
TT
41202014-07-24 Tom Tromey <tromey@redhat.com>
4121
4122 * cli/cli-decode.c (help_cmd): Make parameter "const".
4123 * cli/cli-decode.h (help_cmd): Update.
4124
d3d3328b
TT
41252014-07-24 Tom Tromey <tromey@redhat.com>
4126
4127 * stack.c (up_silently_base, down_silently_base): Make argument
4128 const.
4129
414842dc
TT
41302014-07-24 Tom Tromey <tromey@redhat.com>
4131
4132 * solib.c (solib_add): Make "pattern" const.
4133 * solib.h (solib_add): Update.
4134
baa336ce
TT
41352014-07-24 Tom Tromey <tromey@redhat.com>
4136
4137 * remote.c (remote_serial_open, print_packet, putpkt)
4138 (putpkt_binary): Constify.
4139 * remote.h (putpkt): Update.
4140
5a19e2d0
TT
41412014-07-24 Tom Tromey <tromey@redhat.com>
4142
4143 * monitor.c (monitor_open): Make "args" const.
4144 * monitor.h (monitor_open): Update.
4145
fc4baa5e
TT
41462014-07-24 Tom Tromey <tromey@redhat.com>
4147
4148 * maint.c (match_bfd_flags): Make "string" const.
4149 (print_bfd_section_info): Remove casts.
4150 (print_objfile_section_info): Make "string" const.
4151
0d5f0dbe
TT
41522014-07-24 Tom Tromey <tromey@redhat.com>
4153
4154 * inf-child.c (inf_child_open_target): Make "arg" const.
4155 * inf-child.h (inf_child_open_target): Update.
4156
41c77899
TT
41572014-07-24 Tom Tromey <tromey@redhat.com>
4158
4159 * environ.c (unset_in_environ): Make "var" const.
4160 * environ.h (unset_in_environ): Update.
4161
93db0d79
TT
41622014-07-24 Tom Tromey <tromey@redhat.com>
4163
4164 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
4165 Make "cmd" const.
4166 (scan_filename_with_cleanup): Likewise.
4167 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
4168 Make arguments const.
4169 (restore_command): Update.
4170
36d6eb95
PA
41712014-07-24 Pedro Alves <palves@redhat.com>
4172
4173 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
4174
8009206a
TT
41752014-07-24 Tom Tromey <tromey@redhat.com>
4176 Gary Benson <gbenson@redhat.com>
4177
4178 * nat/linux-ptrace.c (additional_flags): New global.
4179 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
4180 additional_flags; don't check GDBSERVER.
4181 (linux_ptrace_set_additional_flags): New function.
4182 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
4183 Declare.
4184 * linux-nat.c (_initialize_linux_nat): Call
4185 linux_ptrace_set_additional_flags.
4186
a7068b60
TT
41872014-07-24 Tom Tromey <tromey@redhat.com>
4188
4189 * make-target-delegates (munge_type, write_debugmethod): New
4190 functions.
4191 (debug_names): New global.
4192 ($TARGET_DEBUG_PRINTER): New global.
4193 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
4194 name.
4195 Write debug methods. Generate init_debug_target.
4196 * target-debug.h: New file.
4197 * target-delegates.c: Rebuild.
4198 * target.c: Include target-debug.h.
4199 (debug_target): Hoist definition.
4200 (target_kill, target_get_section_table, target_memory_map)
4201 (target_flash_erase, target_flash_done, target_detach)
4202 (target_disconnect, target_wait, target_resume)
4203 (target_pass_signals, target_program_signals, target_follow_fork)
4204 (target_mourn_inferior, target_search_memory)
4205 (target_thread_address_space, target_close)
4206 (target_find_new_threads, target_core_of_thread)
4207 (target_verify_memory, target_insert_mask_watchpoint)
4208 (target_remove_mask_watchpoint): Remove targetdebug code.
4209 (debug_to_post_attach, debug_to_prepare_to_store)
4210 (debug_to_files_info, debug_to_insert_breakpoint)
4211 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
4212 (debug_to_region_ok_for_hw_watchpoint)
4213 (debug_to_can_accel_watchpoint_condition)
4214 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
4215 (debug_to_watchpoint_addr_within_range)
4216 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
4217 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
4218 (debug_to_terminal_init, debug_to_terminal_inferior)
4219 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
4220 (debug_to_terminal_save_ours, debug_to_terminal_info)
4221 (debug_to_load, debug_to_post_startup_inferior)
4222 (debug_to_insert_fork_catchpoint)
4223 (debug_to_remove_fork_catchpoint)
4224 (debug_to_insert_vfork_catchpoint)
4225 (debug_to_remove_vfork_catchpoint)
4226 (debug_to_insert_exec_catchpoint)
4227 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
4228 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
4229 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
4230 (setup_target_debug): Call init_debug_target.
4231 * target.h (TARGET_DEBUG_PRINTER): New macro.
4232 (struct target_ops) <to_resume, to_wait, to_pass_signals,
4233 to_program_signals>: Use TARGET_DEBUG_PRINTER.
4234
2c51604d
GB
42352014-07-24 Gary Benson <gbenson@redhat.com>
4236
4237 * exceptions.h (throw_vfatal): Renamed to...
4238 (throw_vquit): New declaration.
4239 (throw_quit): Likewise.
4240 * exceptions.c (throw_vfatal): Renamed to...
4241 (throw_vquit): New function.
4242 (throw_quit): Likewise.
4243 (throw_error): Call throw_verror rather than throw_it.
4244 * utils.h (vfatal): Removed.
4245 (fatal): Likewise.
4246 * utils.c (vfatal): Removed.
4247 (fatal): Likewise.
4248 (internal_verror): Replaced call to fatal with call to throw_quit.
4249 (quit): Replaced calls to fatal with calls to throw_quit.
4250
34211963
ME
42512014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
4252
4253 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
4254 target_read_code.
4255
a52b4d3e
ME
42562014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
4257
4258 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
4259 less than zero in conditional expression.
4260
a8bdc56b
TT
42612014-07-23 Tom Tromey <tromey@redhat.com>
4262
4263 * make-target-delegates ($ARGS_PART): Match trailing close paren.
4264 ($INTRO_PART): Don't match whitespace.
4265 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
4266 argument matching.
4267 ($METHOD): Add $METHOD_TRAILER.
4268 (trim): Rewrite.
4269 (scan_target_h): New sub.
4270 Change main loop not to collect state.
4271 * target-delegates.c: Rebuild.
4272
91b52240
GB
42732014-07-23 Gary Benson <gbenson@redhat.com>
4274
4275 * cp-support.c (gdb_demangle): Fix build on systems without
4276 sigaltstack.
4277
45326f6f
JK
42782014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4279
4280 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
4281 for reference entry value target data value.
4282
e214cf6c
JK
42832014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4284
4285 * stack.c (read_frame_arg): Verify value_optimized_out before calling
4286 value_available_contents_eq.
4287
bddbbedd
PA
42882014-07-22 Pedro Alves <palves@redhat.com>
4289
4290 * value.c (allocate_optimized_out_value): Don't mark value as
4291 non-lazy.
4292
45c71484
JW
42932014-07-22 Jiong Wang <jiong.wang@arm.com>
4294
4295 * MAINTAINERS (Write After Approval): Update my email address.
4296
9597b22a
DE
42972014-07-20 Doug Evans <dje@google.com>
4298
4299 PR server/17147
4300 * remote.c (putpkt_binary): Add text to error message.
4301
91101fe5
YQ
43022014-07-20 Yao Qi <yao@codesourcery.com>
4303
4304 * eval.c: Remove "Chill" from comments.
4305 * gdbtypes.h: Likewise.
4306 * symtab.h: Likewise.
4307
c9402c95
YQ
43082014-07-20 Yao Qi <yao@codesourcery.com>
4309
4310 * std-operator.def: Update comments to TERNOP_SLICE.
4311
ae8fddda
YQ
43122014-07-20 Yao Qi <yao@codesourcery.com>
4313
4314 * std-operator.def: Remove BINOP_RANGE.
4315 * breakpoint.c (watchpoint_exp_is_const): Update.
4316 * expprint.c (dump_subexp_body_standard): Likewise.
4317 * eval.c (init_array_element): Remove dead code.
4318 (evaluate_subexp_standard): Likewise.
4319
9c816640
YQ
43202014-07-20 Yao Qi <yao@codesourcery.com>
4321
4322 * std-operator.def: Remove BINOP_IN.
4323 * breakpoint.c (watchpoint_exp_is_const): Update.
4324 * eval.c (evaluate_subexp_standard): Likewise.
4325 * expprint.c (dump_subexp_body_standard): Likewise.
4326
164224e9
ME
43272014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
4328
4329 * microblaze-tdep.c (microblaze_register_names): Add
4330 the rshr and rslr register names.
4331 (microblaze_gdbarch_init): Use of tdesc_has_registers.
4332 Use of tdesc_find_feature. Use of tdesc_data_alloc.
4333 Use of tdesc_numbered_register. Use of
4334 microblaze_register_g_packet_guesses. Use of
4335 tdesc_use_registers. Use of set_gdbarch_register_type.
4336 (microblaze_register_g_packet_guesses): New.
4337 * microblaze-tdep.h (microblaze_reg_num): Add
4338 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
4339 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
4340 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
4341 * features/microblaze-core.xml: New file.
4342 * features/microblaze-stack-protect.xml: New file.
4343 * features/microblaze-with-stack-protect.c: New file.
4344 * features/microblaze-with-stack-protect.xml: New file.
4345 * features/microblaze.xml: New file.
4346 * features/microblaze.c: New file.
4347 * features/Makefile (microblaze-with-stack-protect): Add
4348 microblaze-with-stack-protect microblaze and microblaze-expedite.
4349 * regformats/microblaze-with-stack-protect.dat: New file.
4350 * regformats/microblaze.dat: New file.
4351 * doc/gdb.texinfo (MicroBlaze Features): Added.
4352
e8b2341c
TT
43532014-07-18 Tom Tromey <tromey@redhat.com>
4354
4355 * exec.c (exec_ops): Now static.
4356 * exec.h (exec_ops): Don't declare.
4357
44e89118
TT
43582014-07-18 Tom Tromey <tromey@redhat.com>
4359
4360 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
4361 to find_target_beneath.
4362 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
4363 find_target_beneath.
4364 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
4365
b0ed115f
TT
43662014-07-18 Tom Tromey <tromey@redhat.com>
4367
4368 PR gdb/17130:
4369 * utils.c (quit): Use target_supports_terminal_ours.
4370 * target.h (target_supports_terminal_ours): Declare.
4371 * target.c (target_supports_delete_record): Don't check
4372 to_delete_record against NULL.
4373 (target_supports_terminal_ours): New function.
4374
e75fdfca
TT
43752014-07-18 Tom Tromey <tromey@redhat.com>
4376
4377 PR gdb/17130:
4378 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
4379 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
4380 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
4381 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
4382 * windows-nat.c (windows_xfer_partial): Always delegate.
4383 * record-btrace.c (record_btrace_xfer_partial): Simplify
4384 delegation.
4385 (record_btrace_fetch_registers, record_btrace_store_registers)
4386 (record_btrace_prepare_to_store, record_btrace_resume)
4387 (record_btrace_wait, record_btrace_find_new_threads)
4388 (record_btrace_thread_alive): Likewise.
4389 * procfs.c (procfs_xfer_partial): Always delegate.
4390 * corelow.c (core_xfer_partial): Always delegate.
4391 * sol-thread.c (sol_find_new_threads): Simplify delegation.
4392
83814951
TT
43932014-07-18 Tom Tromey <tromey@redhat.com>
4394
4395 * exec.c (exec_make_note_section): Move earlier.
4396
b8b8facf
DE
43972014-07-17 Doug Evans <dje@google.com>
4398
74b49205 4399 PR gdb/17170
b8b8facf
DE
4400 * maint.c (count_symtabs_and_blocks): Handle NULL
4401 current_program_space.
4402 (report_command_stats): Check global enabled flag in addition to
4403 recorded enabled flag.
4404 (make_command_stats_cleanup): Handle msg_type == 0, startup.
4405
69ff6be5
PA
44062014-07-16 Pedro Alves <palves@redhat.com>
4407
4408 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
4409
252db1b5
TT
44102014-07-16 Tom Tromey <tromey@redhat.com>
4411
4412 * target.h (struct target_ops) <to_delete_record>: Reformat
4413 comment.
4414
a432721e
TT
44152014-07-16 Tom Tromey <tromey@redhat.com>
4416
4417 * target-delegates.c: Rebuild.
4418
487d9753
PL
44192014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
4420
4421 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
4422 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
4423 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
4424 (avr_pointer_to_address): Likewise.
4425 (avr_address_class_type_flags): New function.
4426 (avr_address_class_type_flags_to_name): Likewise.
4427 (avr_address_class_name_to_type_flags): Likewise.
4428 (avr_gdbarch_init): Set address_class_type_flags,
4429 address_class_type_flags_to_name and
4430 address_class_name_to_type_flags.
4431
57745c90
PA
44322014-07-15 Pedro Alves <palves@redhat.com>
4433
4434 * linux-nat.c (kill_callback): Save errno and work with saved
4435 copy.
4436
2d40be18
SM
44372014-07-15 Simon Marchi <simon.marchi@ericsson.com>
4438
4439 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
4440
572f6555
EBM
44412014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
4442
4443 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
4444 breakpoint support correctly.
4445
cc1c52ad
PA
44462014-07-14 Pedro Alves <palves@redhat.com>
4447
4448 * utils.c (prompt_for_continue): Call target_terminal_ours.
4449
1e973570
PA
44502014-07-14 Pedro Alves <palves@redhat.com>
4451
4452 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
4453 catch_errors. Don't re-enable stdin or notify observers where,
4454 and rethrow error.
4455 (fetch_inferior_event_wrapper): Delete.
4456
93d6eb10
PA
44572014-07-14 Pedro Alves <palves@redhat.com>
4458
4459 PR gdb/17072
4460 * top.c: Include "inf-loop.h".
4461 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
4462 field.
4463 (gdb_readline_wrapper_cleanup): Make the target async again, if it
4464 was async before.
4465 (gdb_readline_wrapper): Store whether the target is async, and
4466 make it sync.
4467
0017922d
PA
44682014-07-14 Pedro Alves <palves@redhat.com>
4469
4470 PR gdb/17072
4471 * top.c (gdb_readline_wrapper_line): Tweak comment.
4472 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
4473 the input handler callback.
4474
94696ad3
PA
44752014-07-14 Pedro Alves <palves@redhat.com>
4476
4477 PR gdb/17072
4478 * main.c: Include event-top.h.
4479 (handle_command_errors): New function.
4480 (catch_command_errors, catch_command_errors_const): Use it.
4481
9d1e69a2
PA
44822014-07-14 Pedro Alves <palves@redhat.com>
4483
4484 * exceptions.c (catch_command_errors, catch_command_errors_const):
4485 Moved to main.c.
4486 * exceptions.h (catch_command_errors_ftype)
4487 (catch_command_errors_const_ftype): Moved to main.c.
4488 (catch_command_errors, catch_command_errors_const): Delete
4489 declarations.
4490 * main.c (catch_command_errors_ftype)
4491 (catch_command_errors_const_ftype): Moved here from exceptions.h.
4492 (catch_command_errors, catch_command_errors_const)): Moved here
4493 from exceptions.c and make static.
4494
feefc97b
PA
44952014-07-14 Pedro Alves <palves@redhat.com>
4496
4497 * exceptions.c (print_any_exception): Delete.
4498 (catch_exceptions_with_msg): Use exception_print instead of
4499 print_any_exception.
4500 (catch_errors): Use exception_fprintf instead of
4501 print_any_exception.
4502 (catch_command_errors, catch_command_errors_const): Use
4503 exception_print instead of print_any_exception.
4504
c933f875
PA
45052014-07-14 Pedro Alves <palves@redhat.com>
4506
4507 * infcall.c (run_inferior_call): Set 'sync_execution' while
4508 running the inferior call.
4509
feb6f816
PA
45102014-07-14 Pedro Alves <palves@redhat.com>
4511
4512 * value.c (value_contents_equal): Delete function.
4513 * value.h (value_contents_equal): Delete declaration.
4514
d98b7a16
TT
45152014-07-14 Tom Tromey <tromey@redhat.com>
4516
4517 PR exp/17106:
4518 * gdbtypes.c (is_dynamic_type_internal): New function, from
4519 is_dynamic_type.
4520 (is_dynamic_type): Rewrite.
4521 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
4522 (resolve_dynamic_struct): Likewise.
4523 (resolve_dynamic_type_internal): New function, from
4524 resolve_dynamic_type.
4525 (resolve_dynamic_type): Rewrite.
4526
548740d6
TT
45272014-07-14 Tom Tromey <tromey@redhat.com>
4528
4529 * target.c (target_require_runnable): Also check record_stratum.
4530 Update comment.
4531
808f7ab1
YQ
45322014-07-11 Yao Qi <yao@codesourcery.com>
4533
4534 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
4535 thumb_instruction_restores_sp return true.
4536
540314bd
YQ
45372014-07-11 Yao Qi <yao@codesourcery.com>
4538
4539 * arm-tdep.c (thumb_instruction_restores_sp): New function.
4540 (thumb_in_function_epilogue_p): Call
4541 thumb_instruction_restores_sp.
4542
1db01f22
YQ
45432014-07-11 Yao Qi <yao@codesourcery.com>
4544
4545 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
4546 'add sp, #imm'.
4547 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
4548
3116063b
GB
45492014-07-11 Gary Benson <gbenson@redhat.com>
4550
4551 * amd64-linux-nat.c (gdbcore.h): Remove include.
4552 (regset.h): Likewise.
4553 (nat/linux-btrace.h): Likewise.
4554 (btrace.h): Likewise.
4555 (gdb_assert.h): Likewise.
4556 (string.h): Likewise.
4557 (sys/uio.h): Likewise.
4558 (sys/debugreg.h): Likewise.
4559 (sys/syscall.h): Likewise.
4560 (sys/procfs.h): Likewise.
4561 (sys/user.h): Likewise.
4562 (asm/ptrace.h): Likewise.
4563 (i386-nat.h): Likewise.
4564 * i386-linux-nat.c (i386-nat.h): Likewise.
4565 (regset.h): Likewise.
4566 (target.h): Likewise.
4567 (linux-nat.h): Likewise.
4568 (nat/linux-btrace.h): Likewise.
4569 (btrace.h): Likewise.
4570 (gdb_assert.h): Likewise.
4571 (string.h): Likewise.
4572 (sys/uio.h): Likewise.
4573 (sys/user.h): Likewise.
4574 (sys/procfs.h): Likewise.
4575 (sys/reg.h): Likewise.
4576 (sys/debugreg.h): Likewise.
4577 (ORIG_EAX): Remove definition.
4578
040baaf6
GB
45792014-07-11 Gary Benson <gbenson@redhat.com>
4580
4581 * i386-linux-nat.h: New file.
4582 * x86-linux-nat.h: Likewise.
4583 * x86-linux-nat.c: Likewise.
4584 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
4585 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
4586 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4587 * amd64-linux-nat.c (x86-linux-nat.h): New include.
4588 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
4589 (PTRACE_SETREGSET): Likewise.
4590 (arch_lwp_info): Now in x86-linux-nat.c.
4591 (have_ptrace_getregset): Now in x86-linux-nat.h.
4592 (x86_linux_dr_get): Now in x86-linux-nat.c.
4593 (x86_linux_dr_set): Likewise.
4594 (x86_linux_dr_get_addr): Likewise.
4595 (x86_linux_dr_get_control): Likewise.
4596 (x86_linux_dr_get_status): Likewise.
4597 (update_debug_registers_callback): Likewise.
4598 (x86_linux_dr_set_control): Likewise.
4599 (x86_linux_dr_set_addr): Likewise.
4600 (x86_linux_prepare_to_resume): Likewise.
4601 (x86_linux_new_thread): Likewise.
4602 (x86_linux_new_fork): Likewise.
4603 (x86_linux_get_thread_area): Likewise.
4604 (super_post_startup_inferior): Likewise.
4605 (x86_linux_child_post_startup_inferior): Likewise.
4606 (AMD64_LINUX_USER64_CS): Likewise.
4607 (AMD64_LINUX_X32_DS): Likewise.
4608 (x86_linux_read_description): Likewise.
4609 (x86_linux_enable_btrace): Likewise.
4610 (x86_linux_disable_btrace): Likewise.
4611 (x86_linux_teardown_btrace): Likewise.
4612 (x86_linux_read_btrace): Likewise.
4613 (x86_linux_create_target): Likewise.
4614 (x86_linux_add_target): Likewise.
4615 * i386-linux-nat.c (x86-linux-nat.h): New include.
4616 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
4617 (PTRACE_SETREGSET): Likewise.
4618 (arch_lwp_info): Now in x86-linux-nat.c.
4619 (have_ptrace_getregset): Now in x86-linux-nat.h.
4620 (x86_linux_dr_get): Now in x86-linux-nat.c.
4621 (x86_linux_dr_set): Likewise.
4622 (x86_linux_dr_get_addr): Likewise.
4623 (x86_linux_dr_get_control): Likewise.
4624 (x86_linux_dr_get_status): Likewise.
4625 (update_debug_registers_callback): Likewise.
4626 (x86_linux_dr_set_control): Likewise.
4627 (x86_linux_dr_set_addr): Likewise.
4628 (x86_linux_prepare_to_resume): Likewise.
4629 (x86_linux_new_thread): Likewise.
4630 (x86_linux_new_fork): Likewise.
4631 (x86_linux_get_thread_area): Likewise.
4632 (super_post_startup_inferior): Likewise.
4633 (x86_linux_child_post_startup_inferior): Likewise.
4634 (AMD64_LINUX_USER64_CS): Likewise.
4635 (AMD64_LINUX_X32_DS): Likewise.
4636 (x86_linux_read_description): Likewise.
4637 (x86_linux_enable_btrace): Likewise.
4638 (x86_linux_disable_btrace): Likewise.
4639 (x86_linux_teardown_btrace): Likewise.
4640 (x86_linux_read_btrace): Likewise.
4641 (x86_linux_create_target): Likewise.
4642 (x86_linux_add_target): Likewise.
4643
1aa7e42c
GB
46442014-07-11 Gary Benson <gbenson@redhat.com>
4645
4646 * amd64-linux-nat.c: Comment and whitespace changes.
4647 * i386-linux-nat.c: Comment and whitespace changes.
4648
c1e246a0
GB
46492014-07-11 Gary Benson <gbenson@redhat.com>
4650
4651 * amd64-linux-nat.c (x86_linux_create_target): New function.
4652 (x86_linux_add_target): Likewise.
4653 (_initialize_amd64_linux_nat): Delegate to the above new functions.
4654 * i386-linux-nat.c (x86_linux_create_target): New function.
4655 (x86_linux_add_target): Likewise.
4656 (_initialize_i386_linux_nat): Delegate to the above new functions.
4657
8c420b8d
GB
46582014-07-11 Gary Benson <gbenson@redhat.com>
4659
4660 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
4661 (ps_get_thread_area): Delegate to the above in 32-bit mode.
4662 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
4663 (ps_get_thread_area): Delegate to the above.
4664
cb1da100
GB
46652014-07-11 Gary Benson <gbenson@redhat.com>
4666
4667 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
4668 x86_linux_read_description. All uses updated. amd64-specific
4669 code conditionalized. Conditionalized i386-specific code added.
4670 Redundant cast removed.
4671 * i386-linux-nat.c (i386_linux_read_description): Renamed to
4672 x86_linux_read_description. All uses updated. i386-specific
4673 code conditionalized. Conditionalized amd64-specific code added.
4674 One sizeof replaced with the actual type it is describing.
4675
2acf3cd0
GB
46762014-07-11 Gary Benson <gbenson@redhat.com>
4677
4678 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
4679 x86_linux_dr_get. All uses updated.
4680 (amd64_linux_dr_set): Renamed to
4681 x86_linux_dr_set. All uses updated.
4682 (amd64_linux_dr_get_addr): Renamed to
4683 x86_linux_dr_get_addr. All uses updated.
4684 (amd64_linux_dr_get_control): Renamed to
4685 x86_linux_dr_get_control. All uses updated.
4686 (amd64_linux_dr_get_status): Renamed to
4687 x86_linux_dr_get_status. All uses updated.
4688 (amd64_linux_dr_set_control): Renamed to
4689 x86_linux_dr_set_control. All uses updated.
4690 (amd64_linux_dr_set_addr): Renamed to
4691 x86_linux_dr_set_addr. All uses updated.
4692 (amd64_linux_prepare_to_resume): Renamed to
4693 x86_linux_prepare_to_resume. All uses updated.
4694 (amd64_linux_new_thread): Renamed to
4695 x86_linux_new_thread. All uses updated.
4696 (amd64_linux_new_fork): Renamed to
4697 x86_linux_new_fork. All uses updated.
4698 (amd64_linux_child_post_startup_inferior): Renamed to
4699 x86_linux_child_post_startup_inferior. All uses updated.
4700 (amd64_linux_enable_btrace): Renamed to
4701 x86_linux_enable_btrace. All uses updated.
4702 (amd64_linux_disable_btrace): Renamed to
4703 x86_linux_disable_btrace. All uses updated.
4704 (amd64_linux_teardown_btrace): Renamed to
4705 x86_linux_teardown_btrace. All uses updated.
4706 (amd64_linux_read_btrace): Renamed to
4707 x86_linux_read_btrace. All uses updated.
4708 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
4709 x86_linux_dr_get. All uses updated.
4710 (i386_linux_dr_set): Renamed to
4711 x86_linux_dr_set. All uses updated.
4712 (i386_linux_dr_get_addr): Renamed to
4713 x86_linux_dr_get_addr. All uses updated.
4714 (i386_linux_dr_get_control): Renamed to
4715 x86_linux_dr_get_control. All uses updated.
4716 (i386_linux_dr_get_status): Renamed to
4717 x86_linux_dr_get_status. All uses updated.
4718 (i386_linux_dr_set_control): Renamed to
4719 x86_linux_dr_set_control. All uses updated.
4720 (i386_linux_dr_set_addr): Renamed to
4721 x86_linux_dr_set_addr. All uses updated.
4722 (i386_linux_prepare_to_resume): Renamed to
4723 x86_linux_prepare_to_resume. All uses updated.
4724 (i386_linux_new_thread): Renamed to
4725 x86_linux_new_thread. All uses updated.
4726 (i386_linux_new_fork): Renamed to
4727 x86_linux_new_fork. All uses updated.
4728 (i386_linux_child_post_startup_inferior): Renamed to
4729 x86_linux_child_post_startup_inferior. All uses updated.
4730 (i386_linux_enable_btrace): Renamed to
4731 x86_linux_enable_btrace. All uses updated.
4732 (i386_linux_disable_btrace): Renamed to
4733 x86_linux_disable_btrace. All uses updated.
4734 (i386_linux_teardown_btrace): Renamed to
4735 x86_linux_teardown_btrace. All uses updated.
4736 (i386_linux_read_btrace): Renamed to
4737 x86_linux_read_btrace. All uses updated.
4738
b9c1d481
AS
47392014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
4740
4741 * remote.c (extended_remote_post_attach): New function.
4742 (init_extended_remote_ops): Install it as to_post_attach method.
4743
7180e04a
PA
47442014-07-09 Pedro Alves <palves@redhat.com>
4745
4746 * infcmd.c (attach_command_post_wait): Don't call
4747 target_terminal_inferior here.
4748 (attach_command): Call it here instead.
4749
9a9a7608
AB
47502014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4751
4752 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
4753 field.
4754 * c-varobj.c (c_is_path_expr_parent): New function, moved core
4755 from varobj.c, with additional checks.
4756 (c_varobj_ops): Fill in is_path_expr_parent field.
4757 (cplus_varobj_ops): Fill in is_path_expr_parent field.
4758 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
4759 field.
4760 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
4761 ops method.
4762 (varobj_default_is_path_expr_parent): New function.
4763 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
4764 (varobj_default_is_path_expr_parent): Declare new function.
4765
1f267ae3
MM
47662014-07-08 Markus Metzger <markus.t.metzger@intel.com>
4767
4768 * infcmd.c (finish_backward): Turn internal error into normal error.
4769
b2ee242b
PA
47702014-07-07 Pedro Alves <palves@redhat.com>
4771
8a869bca 4772 PR gdb/17096
b2ee242b
PA
4773 * remote.c (async_handle_remote_sigint)
4774 (async_handle_remote_sigint_twice): Call
4775 gdb_call_async_signal_handler instead of
4776 mark_async_signal_handler.
4777
38e229b2
TT
47782014-07-07 Tom Tromey <tromey@redhat.com>
4779
4780 * target-delegates.c: Rebuild.
4781 * target.c (target_info_record): Remove.
4782 * record.c (info_record_command): Unconditionally call
4783 to_info_record.
4784 * target.h (struct target_ops) <to_info_record>: Use
4785 TARGET_DEFAULT_IGNORE.
4786 (target_info_record): Remove.
4787
f0f9ff95
TT
47882014-07-07 Tom Tromey <tromey@redhat.com>
4789
4790 * target.h (struct target_ops) <to_get_thread_local_address>: Use
4791 TARGET_DEFAULT_NORETURN.
4792 * target.c (generic_tls_error): New function.
4793 (target_translate_tls_address): Don't search target stack.
4794 * target-delegates.c: Rebuild.
4795 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
4796 stack.
4797 * linux-thread-db.c (thread_db_get_thread_local_address):
4798 Unconditionally call beneath target.
4799
4a5be5ee
MK
48002014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
4801
4802 * cli/cli-logging.c (pop_output_files): Assign targerr to
4803 gdb_stdtargerr.
4804
92c3b204
AB
48052014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
4806
4807 * MAINTAINERS (Write After Approval): Update my email address.
4808
9b11e3a7
GB
48092014-07-02 Gary Benson <gbenson@redhat.com>
4810
4811 * proc-service.c (ps_xfer_memory): Update comment.
4812 (ps_pstop): Remove unused function.
4813 (ps_pcontinue): Likewise.
4814 (ps_lstop): Likewise.
4815 (ps_lcontinue): Likewise.
4816 (ps_lgetxregsize): Likewise.
4817 (ps_lgetxregs): Likewise.
4818 (ps_lsetxregs): Likewise.
4819 (ps_plog): Likewise.
4820 (ps_ptread): Likewise.
4821 (ps_ptwrite): Likewise.
4822
cf363f18
MW
48232014-07-01 Mark Wielaard <mjw@redhat.com>
4824
4825 * dwarf2read.c (add_array_cv_type): New function.
4826 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
4827 (read_tag_volatile_type): Likewise.
4828
82ae6c8d
TT
48292014-07-01 Tom Tromey <tromey@redhat.com>
4830
4831 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
4832 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
4833 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
4834 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
4835 * command.h (cmd_cfunc_ftype): Move earlier.
4836 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
4837 (add_com, add_info): Use cmd_cfunc_ftype.
4838
96142726
TT
48392014-06-30 Tom Tromey <tromey@redhat.com>
4840
4841 * symtab.c (operator_chars): Make parameters and return type
4842 const.
4843 (file_matches): Make "files" const.
4844 (struct search_symbols_data) <files>: Now const.
4845 (search_symbols): Make "regexp" and "files" parameters const.
4846 Update.
4847 (symtab_symbol_info): Remove cast.
4848 (rbreak_command): Update.
4849 * symtab.h (search_symbols): Update.
4850
b67a2c6f
YQ
48512014-06-27 Yao Qi <yao@codesourcery.com>
4852
4853 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
4854 Change parameter type to 'struct thread_info *'. Caller
4855 updated.
4856 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
4857 Update declaration.
4858 * dummy-frame.c (struct dummy_frame_id): New.
4859 (dummy_frame_id_eq): New function.
4860 (struct dummy_frame) <id>: Change its type to 'struct
4861 dummy_frame_id'.
4862 (dummy_frame_push): Add parameter ptid and save it in
4863 dummy_frame_id.
4864 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
4865 inferior_ptid.
4866 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
4867 to inferior_ptid.
4868 (lookup_dummy_frame): Change parameter type to 'struct
4869 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
4870 instead of frame_id_eq.
4871 (dummy_frame_pop): Add parameter ptid. Callers updated.
4872 Update comments. Compose dummy_frame_id and pass it to
4873 lookup_dummy_frame.
4874 (dummy_frame_discard): Add parameter ptid.
4875 (dummy_frame_sniffer): Compose dummy_frame_id and call
4876 dummy_frame_id_eq instead of frame_id_eq.
4877 (fprint_dummy_frames): Print ptid.
4878 * dummy-frame.h: Remove comments.
4879 (dummy_frame_push): Add ptid in declaration.
4880 (dummy_frame_pop, dummy_frame_discard): Likewise.
4881
5b10184c
TT
48822014-06-26 Tom Tromey <tromey@redhat.com>
4883
4884 * cli/cli-cmds.c (error_no_arg): Make "why" const.
4885 * command.h (error_no_arg): Update.
4886
06900326
TT
48872014-06-26 Tom Tromey <tromey@redhat.com>
4888
4889 * cli/cli-setshow.c (do_set_command): Make "arg" const.
4890 (do_show_command): Make "arg" const.
4891 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
4892
c2bcbb1d
TT
48932014-06-26 Tom Tromey <tromey@redhat.com>
4894
4895 * record-full.c (record_full_get_bookmark): Make "args" const.
4896 (record_full_goto_bookmark): Make "raw_bookmark" const.
4897 * record.c (record_goto): New function.
4898 (cmd_record_goto): Use it. Now static.
4899 * record.h (record_goto): Declare.
4900 (cmd_record_goto): Remove declaration.
4901 * target-delegates.c: Rebuild.
4902 * target.h (struct target_ops) <to_get_bookmark,
4903 to_goto_bookmark>: Make parameter const.
4904
9cbe5fff
TT
49052014-06-26 Tom Tromey <tromey@redhat.com>
4906
4907 * defs.h (generic_load): Update.
4908 * m32r-rom.c (m32r_load_gen): Make "filename" const.
4909 * monitor.c (monitor_load): Make "args" const.
4910 * remote-m32r-sdi.c (m32r_load): Make "args" const.
4911 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
4912 const.
4913 (mips_load): Make "file" const.
4914 * remote-sim.c (gdbsim_load): Make "args" const.
4915 * remote.c (remote_load): Make "name" const.
4916 * symfile.c (generic_load): Make "args" const.
4917 * target-delegates.c: Rebuild.
4918 * target.c (target_load): Make "arg" const.
4919 (debug_to_load): Make "args" const.
4920 * target.h (struct target_ops) <to_load>: Make parameter const.
4921 (target_load): Update.
4922
34a68019
TT
49232014-06-26 Tom Tromey <tromey@redhat.com>
4924
4925 PR symtab/16902:
4926 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
4927 (dwarf2_physname, read_partial_die)
4928 (guess_partial_die_structure_name, fixup_partial_die)
4929 (guess_full_die_structure_name, anonymous_struct_prefix)
4930 (dwarf2_name): Use per-BFD obstack.
4931
efc889c1
YQ
49322014-06-26 Yao Qi <yao@codesourcery.com>
4933
4934 * dummy-frame.c (dummy_frame_sniffer): Move local variables
4935 dummyframe and this_id into inner block below.
4936
4395285e
YQ
49372014-06-26 Yao Qi <yao@codesourcery.com>
4938
4939 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
4940 with "signal_pass[0]" in the initialization of signal_pass.
4941
aef92902
MM
49422014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4943
4944 * record-btrace.c (record_btrace_generating_corefile)
4945 (record_btrace_prepare_to_generate_core)
4946 (record_btrace_done_generating_core): New.
4947 (record_btrace_xfer_partial, record_btrace_fetch_registers)
4948 (record_btrace_store_registers, record_btrace_prepare_to_store):
4949 Forward request when generating a core file.
4950 (record_btrace_open): Set record_btrace_generating_corefile to zero.
4951 (init_record_btrace_ops): Set to_prepare_to_generate_core and
4952 to_done_generating_core.
4953
5fff78c4
MM
49542014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4955
4956 * target.h (target_ops) <to_prepare_to_generate_core>
4957 <to_done_generating_core>: New.
4958 (target_prepare_to_generate_core, target_done_generating_core): New.
4959 * target.c (target_prepare_to_generate_core)
4960 (target_done_generating_core): New.
4961 * target-delegates.c: Regenerate.
4962 * gcore.c: (write_gcore_file): Rename to ...
4963 (write_gcore_file_1): ...this.
4964 (write_gcore_file): Call target_prepare_to_generate_core
4965 and target_done_generating_core.
4966
1d1f1ccb
MM
49672014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4968
4969 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
4970 * gcore.c (write_gcore_file): Free memory returned from
4971 make_corefile_notes.
4972 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
4973 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
4974
3343ef86
YQ
49752014-06-24 Yao Qi <yao@codesourcery.com>
4976
4977 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
4978 (arm_linux_init_abi): Set skip_trampoline_code with
4979 gdbarch_skip_trampoline_code instead of
4980 find_solib_trampoline_target.
4981
18d18ac8
YQ
49822014-06-24 Yao Qi <yao@codesourcery.com>
4983
4984 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
4985 arm_skip_bx_reg returns non-zero.
4986
80d8d390
YQ
49872014-06-24 Yao Qi <yao@codesourcery.com>
4988
4989 * arm-tdep.c (arm_skip_bx_reg): New function.
4990 (arm_skip_stub): Call arm_skip_bx_reg.
4991
6a18a01c
DB
49922014-06-23 Don Breazeal <donb@codesourcery.com>
4993
4994 * MAINTAINERS: Add myself as write-after-approval maintainer.
4995
8e9db26e
PA
49962014-06-23 Pedro Alves <palves@redhat.com>
4997
4998 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
4999 DR_CONTROL before setting DR0..DR3.
5000 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
5001 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
5002 bits of DR_CONTROL related to the debug register slot being
5003 disabled. If all slots are vacant, clear local slowdown as well,
5004 and assert DR_CONTROL is 0.
5005
70afc5b7
SC
50062014-06-23 Siva Chandra Reddy <sivachandra@google.com>
5007
5008 * python/lib/gdb/command/xmethods.py
5009 (get_method_matchers_in_loci): Lookup xmethod matchers in the
5010 current progspace only if the string "progspace" matches LOCUS_RE.
5011
840ed64d
JK
50122014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5013
5014 Fix --with-system-readline with readline-6.3 patch 5.
5015 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
5016 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
5017 types.
5018
26f2dc30
TT
50192014-06-20 Tom Tromey <tromey@redhat.com>
5020
5021 * dwarf2read.c (dw2_get_real_path): Use correct type in
5022 OBSTACK_CALLOC.
5023 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
5024
125f8a3d
GB
50252014-06-20 Gary Benson <gbenson@redhat.com>
5026
5027 * common/gdb_thread_db.h: Moved to nat. All includes updated.
5028 * common/glibc_thread_db.h: Likewise.
5029 * common/i386-cpuid.h: Likewise.
5030 * common/i386-gcc-cpuid.h: Likewise.
5031 * common/linux-btrace.h: Likewise.
5032 * common/linux-osdata.h: Likewise.
5033 * common/linux-procfs.h: Likewise.
5034 * common/linux-ptrace.h: Likewise.
5035 * common/mips-linux-watch.h: Likewise.
5036 * common/linux-btrace.c: Moved to nat.
5037 * common/linux-osdata.c: Likewise.
5038 * common/linux-procfs.c: Likewise.
5039 * common/linux-ptrace.c: Likewise.
5040 * common/mips-linux-watch.c: Likewise.
5041 * nat/gdb_thread_db.h: Moved from common.
5042 * nat/glibc_thread_db.h: Likewise.
5043 * nat/i386-cpuid.h: Likewise.
5044 * nat/i386-gcc-cpuid.h: Likewise.
5045 * nat/linux-btrace.c: Likewise.
5046 * nat/linux-btrace.h: Likewise.
5047 * nat/linux-osdata.c: Likewise.
5048 * nat/linux-osdata.h: Likewise.
5049 * nat/linux-procfs.c: Likewise.
5050 * nat/linux-procfs.h: Likewise.
5051 * nat/linux-ptrace.c: Likewise.
5052 * nat/linux-ptrace.h: Likewise.
5053 * nat/mips-linux-watch.c: Likewise.
5054 * nat/mips-linux-watch.h: Likewise.
5055 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
5056 (object file files): Reordered.
5057 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
5058 of glibc_thread_db.h.
5059
42995dbd
GB
50602014-06-20 Gary Benson <gbenson@redhat.com>
5061
5062 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
5063 (i386_dr_low_type): Moved to nat/i386-dregs.h.
5064 (i386_dr_low): Likewise.
5065 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
5066 (i386_dr_low_set_addr): Likewise.
5067 (i386_dr_low_get_addr): Likewise.
5068 (i386_dr_low_can_set_control): Likewise.
5069 (i386_dr_low_set_control): Likewise.
5070 (i386_dr_low_get_control): Likewise.
5071 (i386_dr_low_get_status): Likewise.
5072 (i386_get_debug_register_length): Likewise.
5073 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
5074 (i386_dr_low): Likewise.
5075 * nat/i386-dregs.c (i386-low.h): Remove include.
5076 (i386-nat.h): Likewise.
5077 (nat/i386-dregs.h): New include.
5078 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
5079 (i386_dr_low_set_addr): Likewise.
5080 (i386_dr_low_get_addr): Likewise.
5081 (i386_dr_low_can_set_control): Likewise.
5082 (i386_dr_low_set_control): Likewise.
5083 (i386_dr_low_get_control): Likewise.
5084 (i386_dr_low_get_status): Likewise.
5085 (i386_get_debug_register_length): Likewise.
5086 (debug_hw_points): Likewise.
5087
3ed9baed
IB
50882014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
5089
5090 * Makefile.in (SFILES): Add d-exp.y.
5091 (YYFILES): Add d-exp.c.
5092 (YYOBJ): Add d-exp.o.
5093 (local-maintainer-clean): Delete d-exp.c.
5094 * d-exp.y: New file.
5095 * d-lang.h (d_parse): New declaration.
5096 (d_error): New declaration.
5097 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
5098 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
5099 PREC_ORDER operators.
5100 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
5101
78c164b0
YQ
51022014-06-19 Yao Qi <yao@codesourcery.com>
5103
5104 * gdbthread.h (any_running): Remove the declaration.
5105 * thread.c (any_running): Remove.
5106
f6e29b6e
YQ
51072014-06-19 Yao Qi <yao@codesourcery.com>
5108
5109 * gdbthread.h (struct thread_info) <state>: Change its type to
5110 'enum thread_state'. Update comments.
5111
034f788c
PA
51122014-06-19 Pedro Alves <palves@redhat.com>
5113
5114 * gdbthread.h (ALL_THREADS): Delete.
5115 (ALL_NON_EXITED_THREADS): New macro.
5116 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
5117 instead of ALL_THREADS.
5118 * infrun.c (find_thread_needs_step_over)
5119 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
5120 instead of ALL_THREADS.
5121 * record-btrace.c (record_btrace_open)
5122 (record_btrace_stop_recording, record_btrace_close)
5123 (record_btrace_is_replaying, record_btrace_resume)
5124 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
5125 * remote.c (append_pending_thread_resumptions): Likewise.
5126 * thread.c (thread_apply_all_command): Likewise.
5127
46e33252
GB
51282014-06-19 Gary Benson <gbenson@redhat.com>
5129
5130 * i386-nat.c (i386_stopped_by_watchpoint):
5131 Use i386_dr_stopped_by_watchpoint.
5132 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
5133 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
5134
3a8ee006
GB
51352014-06-19 Gary Benson <gbenson@redhat.com>
5136
5137 * nat/i386-dregs.c: New file.
5138 * Makefile.in (i386-dregs.o): New rule.
5139 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
5140 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
5141 * config/i386/darwin.mh (NATDEPFILES): Likewise.
5142 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
5143 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
5144 * config/i386/go32.mh (NATDEPFILES): Likewise.
5145 * config/i386/linux.mh (NATDEPFILES): Likewise.
5146 * config/i386/linux64.mh (NATDEPFILES): Likewise.
5147 * config/i386/mingw.mh (NATDEPFILES): Likewise.
5148 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
5149 * i386-nat.h (debug_hw_points): New declaration.
5150 * i386-nat.c (breakpoint.h): Remove include.
5151 (command.h): Likewise.
5152 (target.h): Likewise.
5153 (gdb_assert.h): Likewise.
5154 (debug_hw_points): Made nonstatic.
5155 (debug_printf): Now in i386-dregs.c.
5156 (TARGET_HAS_DR_LEN_8): Likewise.
5157 (DR_CONTROL_SHIFT): Likewise.
5158 (DR_CONTROL_SIZE): Likewise.
5159 (DR_RW_EXECUTE): Likewise.
5160 (DR_RW_WRITE): Likewise.
5161 (DR_RW_READ): Likewise.
5162 (DR_RW_IORW): Likewise.
5163 (DR_LEN_1): Likewise.
5164 (DR_LEN_2): Likewise.
5165 (DR_LEN_4): Likewise.
5166 (DR_LEN_8): Likewise.
5167 (DR_LOCAL_ENABLE_SHIFT): Likewise.
5168 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
5169 (DR_ENABLE_SIZE): Likewise.
5170 (DR_LOCAL_SLOWDOWN): Likewise.
5171 (DR_GLOBAL_SLOWDOWN): Likewise.
5172 (DR_CONTROL_RESERVED): Likewise.
5173 (I386_DR_CONTROL_MASK): Likewise.
5174 (I386_DR_VACANT): Likewise.
5175 (I386_DR_LOCAL_ENABLE): Likewise.
5176 (I386_DR_GLOBAL_ENABLE): Likewise.
5177 (I386_DR_DISABLE): Likewise.
5178 (I386_DR_SET_RW_LEN): Likewise.
5179 (I386_DR_GET_RW_LEN): Likewise.
5180 (I386_DR_WATCH_HIT): Likewise.
5181 (i386_wp_op_t): Likewise.
5182 (i386_show_dr): Likewise.
5183 (i386_length_and_rw_bits): Likewise.
5184 (i386_insert_aligned_watchpoint): Likewise.
5185 (i386_remove_aligned_watchpoint): Likewise.
5186 (i386_handle_nonaligned_watchpoint): Likewise.
5187 (i386_update_inferior_debug_regs): Likewise.
5188 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
5189 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
5190 (i386_region_ok_for_watchpoint):
5191 Use i386_dr_region_ok_for_watchpoint.
5192 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
5193
322a8e06
GB
51942014-06-19 Gary Benson <gbenson@redhat.com>
5195
5196 * i386-nat.c (i386_insert_hw_breakpoint): Use
5197 i386_insert_watchpoint.
5198 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
5199
8f26655c
GB
52002014-06-19 Gary Benson <gbenson@redhat.com>
5201
5202 * i386-nat.c (i386_dr_show): Renamed to
5203 i386_show_dr and made static. All uses updated.
5204 (i386_dr_length_and_rw_bits): Renamed to
5205 i386_length_and_rw_bits and made static.
5206 All uses updated.
5207 (i386_dr_insert_aligned_watchpoint): Renamed to
5208 i386_insert_aligned_watchpoint and made static.
5209 All uses updated.
5210 (i386_dr_remove_aligned_watchpoint): Renamed to
5211 i386_remove_aligned_watchpoint and made static.
5212 All uses updated.
5213 (i386_dr_update_inferior_debug_regs): Renamed to
5214 i386_update_inferior_debug_regs and made static.
5215 All uses updated.
5216 * nat/i386-dregs.h (i386_dr_show): Removed.
5217 (i386_dr_length_and_rw_bits): Likewise.
5218 (i386_dr_insert_aligned_watchpoint): Likewise.
5219 (i386_dr_remove_aligned_watchpoint): Likewise.
5220 (i386_dr_update_inferior_debug_regs): Likewise.
5221
992c7d70
GB
52222014-06-19 Gary Benson <gbenson@redhat.com>
5223
5224 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
5225 * configure: Regenerate.
5226 * config.in: Likewise.
5227 * main.c (signal.h): New include.
5228 (setup_alternate_signal_stack): New function.
5229 (captured_main): Call the above.
5230 * cp-support.c (signal.h): New include.
5231 (catch_demangler_crashes): New flag.
5232 (SIGJMP_BUF): New define.
5233 (SIGSETJMP): Likewise.
5234 (SIGLONGJMP): Likewise.
5235 (gdb_demangle_jmp_buf): New static global.
5236 (gdb_demangle_attempt_core_dump): Likewise.
5237 (gdb_demangle_signal_handler): New function.
5238 (gdb_demangle): If catch_demangler_crashes is set, install the
5239 above signal handler before calling bfd_demangle, and restore
5240 the original signal handler afterwards. Display the offending
5241 symbol and call demangler_warning the first time a segmentation
5242 fault is caught.
5243 (_initialize_cp_support): New maint set/show command.
5244
eae7090b
GB
52452014-06-19 Gary Benson <gbenson@redhat.com>
5246
5247 * utils.h (resource_limit_kind): New enum.
5248 (can_dump_core): New declaration.
5249 (warn_cant_dump_core): Likewise.
5250 (dump_core): Likewise.
5251 * utils.c (dump_core): Made nonstatic. Added new
5252 parameter "limit_kind".
5253 (can_dump_core): Made nonstatic. Moved printing code to...
5254 (warn_cant_dump_core): New function.
5255 (can_dump_core_warn): Likewise.
5256 (internal_vproblem): Replace calls to can_dump_core with
5257 calls to can_dump_core_warn. Supply new argument to each.
5258
57fcfb1b
GB
52592014-06-19 Gary Benson <gbenson@redhat.com>
5260
5261 * utils.h (demangler_vwarning): New declaration.
5262 (demangler_warning): Likewise.
5263 * utils.c (struct internal_problem)
5264 <user_settable_should_quit>: New field.
5265 <user_settable_should_dump_core>: Likewise
5266 (internal_error_problem): Add values for above new fields.
5267 (internal_warning_problem): Likewise.
5268 (demangler_warning_problem): New static global.
5269 (demangler_vwarning): New function.
5270 (demangler_warning): Likewise.
5271 (add_internal_problem_command): Selectively add commands.
5272 (_initialize_utils): New internal problem command.
5273 * maint.c (maintenance_demangler_warning): New function.
5274 (_initialize_maint_cmds): New command.
5275
17a40b44
TT
52762014-06-18 Tom Tromey <tromey@redhat.com>
5277
5278 * f-valprint.c (info_common_command_for_block): Update.
5279 * symtab.h (struct general_symbol_info) <common_block>: Now
5280 const.
5281
346d1dfe
TT
52822014-06-18 Tom Tromey <tromey@redhat.com>
5283
5284 * symtab.h (struct symtab) <blockvector>: Now const.
5285 * ada-lang.c (ada_add_global_exceptions): Update.
5286 * buildsym.c (augment_type_symtab): Update.
5287 * dwarf2read.c (dw2_lookup_symbol): Update.
5288 * jit.c (finalize_symtab): Update.
5289 * jv-lang.c (add_class_symtab_symbol): Update.
5290 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
5291 Update.
5292 * objfiles.c (objfile_relocate1): Update.
5293 * psymtab.c (lookup_symbol_aux_psymtabs)
5294 (maintenance_check_psymtabs): Update.
5295 * python/py-symtab.c (stpy_global_block, stpy_static_block):
5296 Update.
5297 * spu-tdep.c (spu_catch_start): Update.
5298 * symmisc.c (dump_symtab_1): Update.
5299 * symtab.c (lookup_global_symbol_from_objfile)
5300 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
5301 (basic_lookup_transparent_type_quick)
5302 (basic_lookup_transparent_type, find_pc_sect_symtab)
5303 (find_pc_sect_line, search_symbols): Update.
5304 * block.c (find_block_in_blockvector): Make "bl" const.
5305 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
5306 const.
5307 (blockvector_contains_pc): Make "bv" const.
5308 (block_for_pc_sect): Update.
5309 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
5310 (blockvector_contains_pc): Update.
5311 * breakpoint.c (resolve_sal_pc): Update.
5312 * inline-frame.c (block_starting_point_at): Update.
5313
1834676b
TT
53142014-06-18 Tom Tromey <tromey@redhat.com>
5315
5316 * completer.c (complete_line): Make "line_buffer" const.
5317 * completer.h (complete_line): Update.
5318
ac1a991b
TT
53192014-06-18 Tom Tromey <tromey@redhat.com>
5320
5321 * symtab.c (add_macro_name): Remove unneeded cast.
5322
5bc98e52
TT
53232014-06-18 Tom Tromey <tromey@redhat.com>
5324
5325 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
5326 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
5327
8236def8
TT
53282014-06-18 Tom Tromey <tromey@redhat.com>
5329
5330 * probe.c (info_probes_for_ops): Make "arg" const.
5331 * probe.h (info_probes_for_ops): Update.
5332
3977b71f
TT
53332014-06-18 Tom Tromey <tromey@redhat.com>
5334
5335 * varobj.c (varobj_create): Update.
5336 * valops.c (value_of_this): Update.
5337 * tracepoint.c (add_local_symbols, scope_info): Update.
5338 * symtab.h (struct general_symbol_info) <block>: Now const.
5339 * symtab.c (skip_prologue_sal)
5340 (default_make_symbol_completion_list_break_on)
5341 (skip_prologue_using_sal): Update.
5342 * stack.h (iterate_over_block_locals)
5343 (iterate_over_block_local_vars): Update.
5344 * stack.c (print_frame_args): Update.
5345 (iterate_over_block_locals, iterate_over_block_local_vars): Make
5346 parameter const.
5347 (get_selected_block): Make return type const.
5348 * python/py-frame.c (frapy_block): Update.
5349 * python/py-block.c (gdbpy_block_for_pc): Update.
5350 * p-exp.y (%union) <bval>: Now const.
5351 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
5352 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
5353 * m2-exp.y (%union) <bval>: Now const.
5354 * linespec.c (get_current_search_block): Make return type const.
5355 (create_sals_line_offset, find_label_symbols): Update.
5356 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
5357 Update.
5358 (block_starting_point_at): Make "block" const.
5359 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
5360 (check_exception_resume): Update.
5361 * guile/scm-frame.c (gdbscm_frame_block): Update.
5362 * guile/scm-block.c (gdbscm_lookup_block): Update.
5363 * frame.h (get_frame_block): Update.
5364 (get_selected_block): Make return type const.
5365 * frame.c (frame_id_inner): Update.
5366 * f-valprint.c (info_common_command_for_block)
5367 (info_common_command): Update.
5368 * dwarf2loc.c (dwarf2_find_location_expression)
5369 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
5370 (locexpr_describe_location_piece): Update.
5371 * c-exp.y (%union) <bval>: Now const.
5372 * breakpoint.c (resolve_sal_pc): Update.
5373 * blockframe.c (get_frame_block):Make return type const.
5374 (get_pc_function_start, get_frame_function, find_pc_sect_function)
5375 (block_innermost_frame): Update.
5376 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
5377 (block_for_pc, block_for_pc_sect): Update.
5378 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
5379 'pblock' const.
5380 (block_for_pc_sect, block_for_pc): Make return type const.
5381 * ax-gdb.c (gen_expr): Update.
5382 * alpha-mdebug-tdep.c (find_proc_desc): Update.
5383 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
5384 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
5385 (ada_read_var_value): Update.
5386 * ada-exp.y (struct name_info) <block>: Now const.
5387 (%union): Likewise.
5388 (block_lookup): Constify.
5389
b9228891
GB
53902014-06-18 Gary Benson <gbenson@redhat.com>
5391
5392 * nat/i386-dregs.h: New file.
5393 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
5394 * i386-nat.h (i386-dregs.h): New include.
5395 (DR_FIRSTADDR): Now in i386-dregs.h.
5396 (DR_LASTADDR): Likewise.
5397 (DR_NADDR): Likewise.
5398 (DR_STATUS): Likewise.
5399 (DR_CONTROL): Likewise.
5400 (i386_debug_reg_state): Likewise.
5401 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
5402
a1aa2221
LM
54032014-06-18 Don Breazeal <donb@codesourcery.com>
5404
5405 * breakpoint.c (set_longjmp_breakpoint): Call
5406 momentary_breakpoint_from_master with additional argument.
5407 (set_longjmp_breakpoint_for_call_dummy): Call
5408 momentary_breakpoint_from_master with additional argument.
5409 (set_std_terminate_breakpoint): Call
5410 momentary_breakpoint_from_master with additional argument.
5411 (momentary_breakpoint_from_master): Add argument to function
5412 definition and use it to initialize structure member flag.
74228e77 5413 (clone_momentary_breakpoint): Call
a1aa2221
LM
5414 momentary_breakpoint_from_master with additional argument.
5415 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
5416 member flags set in momentary_breakpoint_from_master.
5417
4be83cc2
GB
54182014-06-18 Gary Benson <gbenson@redhat.com>
5419
5420 * i386-nat.c (i386_show_dr): Renamed to
5421 i386_dr_show and made nonstatic. All uses updated.
5422 (i386_length_and_rw_bits): Renamed to
5423 i386_dr_length_and_rw_bits and made nonstatic.
5424 All uses updated.
5425 (i386_insert_aligned_watchpoint): Renamed to
5426 i386_dr_insert_aligned_watchpoint and made nonstatic.
5427 All uses updated.
5428 (i386_remove_aligned_watchpoint): Renamed to
5429 i386_dr_remove_aligned_watchpoint and made nonstatic.
5430 All uses updated.
5431 (i386_update_inferior_debug_regs): Renamed to
5432 i386_dr_update_inferior_debug_regs and made nonstatic.
5433 All uses updated.
5434
131aa0d4
GB
54352014-06-18 Gary Benson <gbenson@redhat.com>
5436
5437 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
5438 (i386_dr_low_can_set_control): Likewise.
5439 (i386_dr_low_set_addr): Likewise.
5440 (i386_dr_low_set_control): Likewise.
5441 (i386_dr_low_get_addr): Likewise.
5442 (i386_dr_low_get_status): Likewise.
5443 (i386_dr_low_get_control): Likewise.
5444 (i386_insert_aligned_watchpoint): Use new macros.
5445 (i386_update_inferior_debug_regs): Likewise.
5446 (i386_stopped_data_address): Likewise.
5447
d9305f7f
GB
54482014-06-18 Gary Benson <gbenson@redhat.com>
5449
5450 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
5451 New parameter. All uses updated.
5452
ea008da4
GB
54532014-06-18 Gary Benson <gbenson@redhat.com>
5454
5455 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
5456 All uses updated.
5457
1b6d4134
GB
54582014-06-18 Gary Benson <gbenson@redhat.com>
5459
5460 * i386-nat.c (debug_printf): New macro.
5461 (i386_get_debug_register_length): Likewise.
5462 (TARGET_HAS_DR_LEN_8): Use above macro.
5463 (i386_show_dr): Use debug_printf instead of puts_unfiltered
5464 and printf_unfiltered. Use phex to format values.
5465
9b4550ef
GB
54662014-06-18 Gary Benson <gbenson@redhat.com>
5467
5468 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
5469 Make const.
5470
6e62758f
GB
54712014-06-18 Gary Benson <gbenson@redhat.com>
5472
5473 * i386-nat.c: Comment changes.
5474
51c79e94
GB
54752014-06-18 Gary Benson <gbenson@redhat.com>
5476
5477 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
5478
3e11889a
GB
54792014-06-18 Gary Benson <gbenson@redhat.com>
5480
5481 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
5482 (i386_insert_aligned_watchpoint): Likewise.
5483 (i386_remove_aligned_watchpoint): Likewise.
5484 (i386_handle_nonaligned_watchpoint): Likewise.
5485
fc6e2f03
GB
54862014-06-18 Gary Benson <gbenson@redhat.com>
5487
5488 * i386-nat.c: Whitespace changes.
5489
2afe7d50
SB
54902014-06-17 Samuel Bronson <naesten@gmail.com>
5491
5492 * MAINTAINERS: Update Roland McGrath's email address.
5493 Thanks to Sergio Durigan Junior for pointing out that he left
6a83deea 5494 Red Hat a while ago, and giving me a current address.
2afe7d50 5495
3bca49ee
TT
54962014-06-17 Tom Tromey <tromey@redhat.com>
5497
5498 * utils.h (savestring): Remove declaration.
5499
6e366df1
TT
55002014-06-17 Tom Tromey <tromey@redhat.com>
5501
5502 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
5503
6be47f0c
KS
55042014-06-16 Keith Seitz <keiths@redhat.com>
5505
5506 PR mi/15863
5507 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
5508 to update the varobj if inferior_ptid is null_ptid.
5509
7bc112c1
TT
55102014-06-16 Tom Tromey <tromey@redhat.com>
5511
5512 * target.h (struct target_ops) <to_info_proc>: Make parameter
5513 const.
5514 (target_info_proc): Update.
5515 * target.c (target_info_proc): Make "args" const.
5516 * procfs.c (procfs_info_proc): Update.
5517 * linux-tdep.c (linux_info_proc): Update.
5518 (linux_core_info_proc_mappings): Make "args" const.
5519 (linux_core_info_proc): Update.
5520 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
5521 * gdbarch.c: Rebuild.
5522 * gdbarch.h: Rebuild.
5523 * corelow.c (core_info_proc): Update.
5524
fee354ee
TT
55252014-06-16 Tom Tromey <tromey@redhat.com>
5526
5527 * target.h (struct target_ops) <to_disconnect>: Make parameter
5528 const.
5529 (target_disconnect): Update.
5530 * target.c (target_disconnect): Make "args" const.
5531 * target-delegates.c: Rebuild.
5532 * remote.c (remote_disconnect): Update.
5533 * record.h (record_disconnect): Update.
5534 * record.c (record_disconnect): Update.
5535 * inf-child.c (inf_child_disconnect): Update.
5536
a30bf1f1
TT
55372014-06-16 Tom Tromey <tromey@redhat.com>
5538
5539 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
5540 * target.c (debug_to_rcmd, default_rcmd): Update.
5541 * target-delegates.c: Rebuild.
5542 * remote.c (remote_rcmd): Update.
5543 * monitor.c (monitor_rcmd): Update.
5544
d03de421
PA
55452014-06-16 Pedro Alves <palves@redhat.com>
5546
5547 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
5548 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
5549 have OBJF_SHARED set.
5550 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
5551 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
5552 instead of OBJF_USERLOADED.
5553 * objfiles.h (OBJF_SHARED): Update comment.
5554 (userloaded_objfile_contains_address_p): Rename to ...
5555 (shared_objfile_contains_address_p): ... this, and update
5556 comments.
5557 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
5558 new objfile.
5559 (remove_symbol_file_command): Skip objfiles that don't have
5560 OBJF_SHARED set.
5561
99f4262f
TT
55622014-06-16 Tom Tromey <tromey@redhat.com>
5563
5564 * minsyms.h (prim_record_minimal_symbol)
5565 (prim_record_minimal_symbol_and_info): Update comments.
5566
97d66cc6
EZ
55672014-06-14 Eli Zaretskii <eliz@gnu.org>
5568
5569 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
5570 or --without-guile, according to how GDB was built.
5571
635c7e8a
TT
55722014-06-13 Tom Tromey <tromey@redhat.com>
5573
5574 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
5575 to help_list.
5576 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
5577 to help_list.
5578 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
5579 help_list.
5580 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
5581 help_list.Pass all_commands, not -1, to help_list.
5582 * cli/cli-dump.c (dump_command, append_command)
5583 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
5584 (binary_dump_command, binary_append_command): Pass all_commands,
5585 not -1, to help_list.
5586 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
5587 -1, to help_list.
5588 * valprint.c (set_print, set_print_raw): Pass all_commands, not
5589 -1, to help_list.
5590 * typeprint.c (set_print_type): Pass all_commands, not -1, to
5591 help_list.
5592 * top.c (set_history): Pass all_commands, not -1, to help_list.
5593 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
5594 all_commands, not -1, to help_list.
5595 * symfile.c (overlay_command): Pass all_commands, not -1, to
5596 help_list.
5597 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
5598 help_list.
5599 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
5600 help_list.
5601 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
5602 -1, to help_list.
5603 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
5604 not -1, to help_list.
5605 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
5606 not -1, to help_list.
5607 * maint.c (maintenance_command, maintenance_info_command)
5608 (maintenance_print_command, maintenance_set_cmd): Pass
5609 all_commands, not -1, to help_list.
5610 * macrocmd.c (macro_command): Pass all_commands, not -1, to
5611 help_list.
5612 * language.c (set_check): Pass all_commands, not -1, to help_list.
5613 * infcmd.c (unset_command): Pass all_commands, not -1, to
5614 help_list.
5615 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
5616 help_list.
5617 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
5618 help_list.
5619 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
5620 help_list.
5621 * breakpoint.c (save_command): Pass all_commands, not -1, to
5622 help_list.
5623 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
5624 all_commands, not -1, to help_list.
5625
b94ade42
PL
56262014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
5627
5628 * regcache.c (struct register_to_invalidate): New structure.
5629 (do_register_invalidate, make_cleanup_regcache_invalidate): New
5630 functions.
5631 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
5632
31f628ae
YQ
56332014-06-12 Yao Qi <yao@codesourcery.com>
5634
5635 * varobj.c (varobj_get_num_children): Call
5636 varobj_is_dynamic_p.
5637 (varobj_list_children): Likewise.
5638 (varobj_update): Likewise. Update comments.
5639
cde5ef40
YQ
56402014-06-12 Yao Qi <yao@codesourcery.com>
5641
5642 * varobj.c (varobj_pretty_printed_p): Rename to ...
5643 (varobj_is_dynamic_p): ... this. New function.
5644 * varobj.h (varobj_pretty_printed_p): Remove declaration.
5645 (varobj_is_dynamic_p): Declare.
5646 * mi/mi-cmd-var.c (print_varobj): All callers updated.
5647 (mi_print_value_p, varobj_update_one): Likewise.
5648
576ea091
YQ
56492014-06-12 Pedro Alves <pedro@codesourcery.com>
5650 Yao Qi <yao@codesourcery.com>
5651
5652 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
5653 (varobj_get_iterator): Wrap up code for pretty-printer by
5654 "#if HAVE_PYTHON" and "#endif".
5655 (update_dynamic_varobj_children): Likewise.
5656
827f100c
YQ
56572014-06-12 Pedro Alves <pedro@codesourcery.com>
5658 Yao Qi <yao@codesourcery.com>
5659
5660 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
5661 gdb_python_initialized is false. Move some code from varobj.c.
5662 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
5663 * varobj.c: Move "varobj-iter.h" inclusion earlier.
5664 (struct varobj_item): Moved to varobj-iter.h".
5665 (varobj_clear_saved_item): New function.
5666 (update_dynamic_varobj_children): Move python-related code to
5667 py-varobj.c.
5668 (free_variable): Call varobj_clear_saved_item and
5669 varobj_iter_delete.
5670
e5250216
YQ
56712014-06-12 Pedro Alves <pedro@codesourcery.com>
5672 Yao Qi <yao@codesourcery.com>
5673
5674 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
5675 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
5676 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
5677 (py-varobj.o): New rule.
5678 * python/py-varobj.c: New file.
5679 * python/python-internal.h (py_varobj_get_iterator): Declare.
5680 * varobj-iter.h: New file.
5681 * varobj.c: Include "varobj-iter.h"
5682 (struct varobj) <child_iter>: Change its type from "PyObject *"
5683 to "struct varobj_iter *".
5684 <saved_item>: Likewise.
5685 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
5686 [HAVE_PYTHON] (varobj_get_iterator): New function.
5687 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
5688 python-specific code to python/py-varobj.c.
5689 (install_visualizer): Call varobj_iter_delete instead of
5690 Py_XDECREF.
5691 * varobj.h (varobj_ensure_python_env): Declare.
5692
5a2e0d6e
YQ
56932014-06-12 Yao Qi <yao@codesourcery.com>
5694
5695 * varobj.c (struct varobj_item): New structure.
5696 (create_child_with_value): Update declaration.
5697 (varobj_add_child): Replace arguments 'name' and 'value' with
5698 'item'. All callers updated.
5699 (install_dynamic_child): Likewise.
5700 (update_dynamic_varobj_children): Likewise.
5701 (varobj_add_child): Likewise.
5702 (create_child_with_value): Likewise.
5703
919b9a93
JB
57042014-06-11 Joel Brobecker <brobecker@adacore.com>
5705
5706 * NEWS: Create a new section for the next release branch.
5707 Rename the section of the current branch, now that it has
5708 been cut.
5709
71a55bdf
JB
57102014-06-11 Joel Brobecker <brobecker@adacore.com>
5711
5712 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
5713 * version.in: Bump version to 7.8.50.DATE-cvs.
5714
364fe1f7
PA
57152014-06-11 Pedro Alves <palves@redhat.com>
5716
5717 PR remote/17028
5718 * ser-mingw.c (net_windows_socket_check_pending): New function.
5719 (net_windows_select_thread): Ignore spurious wakeups. Use
5720 net_windows_socket_check_pending.
5721 (net_windows_wait_handle): Check for pending events with
5722 ioctlsocket, through net_windows_socket_check_pending, instead of
5723 checking the socket's event.
5724
5a6c7709
SC
57252014-06-10 Siva Chandra Reddy <sivachandra@google.com>
5726
5727 * python/python-internal.h (gdb_PyObject_GetAttrString)
5728 (gdb_PyObject_HasAttrString): New inline function definitions.
5729 * py-value.c (get_field_flag): Remove the now unnecessary cast to
5730 char * of the second argument to PyObject_GetAttrString.
74228e77 5731
0e58ee40
JB
57322014-06-10 Joel Brobecker <brobecker@adacore.com>
5733
5734 * serial.c (serial_write): Fix index of character to be printed
5735 in call to serial_logchar when serial debug traces are enabled.
5736
d190df30
JB
57372014-06-10 Joel Brobecker <brobecker@adacore.com>
5738
5739 * gdbtypes (resolve_dynamic_range): Add function description.
5740
b4b01d36
PA
57412014-06-09 Pedro Alves <palves@redhat.com>
5742
5743 * linux-nat.c (linux_child_follow_fork): Initialize status with
5744 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
5745 inner block. Only pass the signal to PTRACE_DETACH if in pass
5746 state.
5747
3657956b
GB
57482014-06-09 Gary Benson <gbenson@redhat.com>
5749
5750 * common/signals.c (gdb_signal_from_host): Reorder to separate
5751 the always-available ANSI-standard signals from the signals that
5752 require checking.
5753 (do_gdb_signal_to_host): Likewise.
5754 * proc-events.c (signal_table): Likewise.
5755
c077881a
HZ
57562014-06-08 Hui Zhu <hui@codesourcery.com>
5757
5758 * common/linux-ptrace.c (linux_disable_event_reporting): New
5759 function.
5760 * common/linux-ptrace.h (linux_disable_event_reporting): New
5761 declaration.
5762 * linux-nat.c (linux_child_follow_fork): Do a single step before
5763 detach.
5764
4186eb54
KS
57652014-06-07 Keith Seitz <keiths@redhat.com>
5766
5767 Revert:
5768 PR c++/16253
5769 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
5770 from symbol_matches_domain in symtab.c. All local callers
5771 of symbol_matches_domain updated.
5772 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
5773 search STRUCT_DOMAIN.
5774 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
5775 independently. standard_lookup will do that automatically.
5776 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
5777 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5778 (cp_lookup_symbol_in_namespace): Likewise.
5779 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
5780 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
5781 may return a STRUCT_DOMAIN match.
5782 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
5783 * cp-support.c: Include language.h.
5784 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
5785 VAR_DOMAIN.
5786 * psymtab.c (match_partial_symbol): Compare the requested
5787 domain with the symbol's domain directly.
5788 (lookup_partial_symbol): Likewise.
5789 * symtab.c (lookup_symbol_in_language): Explain when/why
5790 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5791 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
5792 appropriate languages.
5793 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
5794 and moved to ada-lang.c
5795 (lookup_block_symbol): Explain that this function only returns
5796 symbol matching the requested DOMAIN.
5797 Compare the requested domain with the symbol's domain directly.
5798 (iterate_over_symbols): Compare the requested domain with the
5799 symbol's domain directly.
5800 * symtab.h (symbol_matches_domain): Remove.
5801
25326a28 58022014-06-06 Doug Evans <xdje42@gmail.com>
d2929fdc
DE
5803
5804 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
5805 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
5806 (gdbscm_guile_version_is_at_least): Declare.
5807 (gdbscm_scm_string_to_int): Declare.
5808 * guile/guile.c (gdbscm_guile_major_version): New global.
5809 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
5810 (guile_datadir): New static global.
5811 (gdbscm_guile_data_directory): New function.
5812 (initialize_scheme_side): Update.
5813 (misc_guile_functions): Add guile-data-directory.
5814 (initialize_gdb_module): Fetch guile version number.
5815 * guile/lib/gdb.scm: Remove call to add-to-load-path.
5816 * guile/lib/gdb/init.scm (%initialize!): Ditto.
5817 * guile/lib/gdb/boot.scm: Use guile-data-directory.
5818 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
5819 comments.
5820 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
5821 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
5822 * guile/scm-value.c (gdbscm_value_to_string): Only call
5823 scm_port_conversion_strategy if Guile version >= 2.0.6.
5824
0a770bb2 58252014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
5826
5827 * main.c (print_gdb_help): Add -q and --silent.
5828
73ba372c
GB
58292014-06-06 Gary Benson <gbenson@redhat.com>
5830
5831 * common/signals.c: Remove preprocessor conditionals for
5832 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
5833 SIGSEGV and SIGTERM.
5834 * proc-events.c: Likewise.
5835
c33b2f12
MM
58362014-06-06 Markus Metzger <markus.t.metzger@intel.com>
5837
5838 * symfile.c (symfile_free_objfile): Remove restriction to
5839 OBJF_USERLOADED.
5840 * symfile-mem.c (symbol_file_add_from_memory): Call
5841 add_target_sections_of_objfile.
5842
fb934770
LC
58432014-06-05 Ludovic Courtès <ludo@gnu.org>
5844
5845 * guile/scm-value.c (gdbscm_history_append_x): Use
5846 'vlscm_get_value_smob_arg_unsafe' instead of
5847 'vlscm_scm_to_value'.
5848
6ef284bd
SM
58492014-06-05 Simon Marchi <simon.marchi@ericsson.com>
5850
5851 PR mi/15806
5852 * utils.c (printchar): Don't escape at all if quoter is NUL.
5853 Update function documentation to clarify effect of parameter
5854 QUOTER.
5855 * remote.c (escape_buffer): Pass '\\' as the quoter to
5856 fputstrn_unfiltered.
5857 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
5858 generate the output.
5859 (mi_solib_unloaded): Same.
5860
270c9937
JB
58612014-06-05 Joel Brobecker <brobecker@adacore.com>
5862
5863 * development.sh: Delete.
5864 * Makefile.in (config.status): Adjust dependency on development.sh.
5865 * configure.ac: Adjust development.sh source call.
5866 * configure: Regenerate.
5867
16f691fb
DE
58682014-06-04 Doug Evans <xdje42@gmail.com>
5869
5870 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
5871 is_scheme_bkpt, spec.
5872 (bpscm_make_breakpoint_smob): Initialize new members.
5873 (gdbscm_create_breakpoint_x): Split into two ...
5874 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
5875 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
5876 (scheme_function breakpoint_functions): Update.
5877 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
5878 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
5879 register-breakpoint!.
5880
ef7cab6b
JB
58812014-06-04 Joel Brobecker <brobecker@adacorer.com>
5882
5883 PR server/17023
5884 * mem-break.c (z_type_supported): Return zero if
5885 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
5886
012370f6
TT
58872014-06-04 Tom Tromey <tromey@redhat.com>
5888
5889 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
5890 value_from_contents_and_address_unresolved.
5891 (ada_template_to_fixed_record_type_1): Likewise.
5892 (ada_which_variant_applies): Likewise.
5893 * value.h (value_from_contents_and_address_unresolved): Declare.
5894 * value.c (value_from_contents_and_address_unresolved): New
5895 function.
5896 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
5897 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
5898 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
5899
92e2a17f
TT
59002014-06-04 Tom Tromey <tromey@redhat.com>
5901
5902 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
5903
c0939df1
TT
59042014-06-04 Tom Tromey <tromey@redhat.com>
5905
5906 * procfs.c (procfs_attach): Make "args" const.
5907 * windows-nat.c (windows_attach): Make "args" const.
5908 * nto-procfs.c (procfs_attach): Make "args" const.
5909 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
5910 * go32-nat.c (go32_attach): Make "args" const.
5911 * gnu-nat.c (gnu_attach): Make "args" const.
5912 * darwin-nat.c (darwin_attach): Make "args" const.
5913 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
5914 * linux-nat.c (linux_nat_attach): Make "args" const.
5915 * remote.c (extended_remote_attach_1, extended_remote_attach):
5916 Make "args" const.
5917 * target.h (struct target_ops) <to_attach>: Make "args" const.
5918 (find_default_attach): Likewise.
5919 * utils.c (parse_pid_to_attach): Make "args" const.
5920 * utils.h (parse_pid_to_attach): Update.
5921
8eaff7cd
TT
59222014-06-04 Tom Tromey <tromey@redhat.com>
5923
5924 * target-delegates.c: Rebuild.
5925 * target.c (default_thread_address_space): New function.
5926 (target_thread_address_space): Simplify.
5927 * target.h (struct target_ops) <to_thread_address_space>: Add
5928 TARGET_DEFAULT_FUNC.
5929
1913f160
DE
59302014-06-04 Doug Evans <xdje42@gmail.com>
5931
5932 * guile/scm-type.c (type_smob): Remove duplicate typedef.
5933
70ad5bff
MM
59342014-06-04 Markus Metzger <markus.t.metzger@intel.com>
5935
5936 * record-btrace.c: Include event-loop.h and inf-loop.h.
5937 (record_btrace_resume_exec_dir)
5938 (record_btrace_async_inferior_event_handler)
5939 (record_btrace_handle_async_inferior_event): New.
5940 (record_btrace_open): Create async event handler.
5941 (record_btrace_close): Delete async event handler.
5942 (record_btrace_resume): Set record_btrace_resume_exec_dir,
5943 Mark async event handler.
5944 (record_btrace_execution_direction): New.
5945 (init_record_btrace_ops): Initialize to_execution_direction.
5946
b6210538
DE
59472014-06-03 Doug Evans <xdje42@gmail.com>
5948
5949 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
5950 (gdbscm_make_parameter): Ditto.
5951
a5b1fd27
DE
59522014-06-03 Doug Evans <dje@google.com>
5953
5954 * exec.c (exec_close_1): Call clear_section_table instead of
5955 resize_section_table.
5956 (clear_section_table): New function.
5957 (resize_section_table): Make static. Rename arg num_added to
5958 adjustment.
5959 * exec.h (clear_section_table): Declare.
5960 (resize_section_table): Delete.
5961 * progspace.c (release_program_space): Call clear_section_table
5962 instead of resize_section_table.
5963
0c6e92a5
SC
59642014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5965
5966 * NEWS (Python Scripting): Add entry about the new xmethods
5967 feature.
5968
883964a7
SC
59692014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5970
5971 * python/py-xmethods.c: New file.
5972 * python/py-objfile.c (objfile_object): New field 'xmethods'.
5973 (objfpy_dealloc): XDECREF on the new xmethods field.
5974 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
5975 field.
5976 (objfpy_get_xmethods): New function.
5977 (objfile_getset): New entry 'xmethods'.
5978 * python/py-progspace.c (pspace_object): New field 'xmethods'.
5979 (pspy_dealloc): XDECREF on the new xmethods field.
5980 (pspy_new, pspace_to_pspace_object): Initialize xmethods
5981 field.
5982 (pspy_get_xmethods): New function.
5983 (pspace_getset): New entry 'xmethods'.
5984 * python/python-internal.h: Add declarations for new functions.
5985 * python/python.c (_initialize_python): Invoke
5986 gdbpy_initialize_xmethods.
5987 * python/lib/gdb/__init__.py (xmethods): New
5988 attribute.
5989 * python/lib/gdb/xmethod.py: New file.
5990 * python/lib/gdb/command/xmethods.py: New file.
5991
58992dc5
SC
59922014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5993
5994 * eval.c (evaluate_subexp_standard): Call the xmethod if the
5995 best match method returned by find_overload_match is an xmethod.
5996 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
5997 the best matching operator returned by find_overload_match is an
5998 xmethod.
5999 * valops.c: #include "extension.h".
6000 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
6001 Return void. The list of matching source methods is returned in
6002 "fn_list" and a vector of matching debug method workers is
6003 returned in "xm_worker_vec". Update all callers.
6004 (value_find_oload_method_list): Likewise.
6005 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
6006 non-NULL, then the index of the best matching method in this
6007 vector is returned. Update all callers.
6008 (find_overload_match): Include xmethods while performing overload
6009 resolution.
6010
e81e7f5e
SC
60112014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6012
6013 * defs.h (enum lval_type): New enumerator "lval_xcallable".
6014 * extension-priv.h (struct extension_language_ops): Add the
6015 xmethod interface.
6016 * extension.c (new_xmethod_worker, clone_xmethod_worker,
6017 get_matching_xmethod_workers, get_xmethod_argtypes,
6018 invoke_xmethod, free_xmethod_worker,
6019 free_xmethod_worker_vec): New functions.
6020 * extension.h: #include "common/vec.h".
6021 New function declarations.
6022 (struct xmethod_worker): New struct.
6023 (VEC (xmethod_worker_ptr)): New vector type.
6024 (xmethod_worker_ptr): New typedef.
6025 (xmethod_worker_vec): Likewise.
6026 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
6027 builtin_type.
6028 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
6029 (struct builtin_type): New field "xmethod".
6030 * valarith.c (value_ptradd): Assert that the value argument is not
6031 lval_xcallable.
6032 * valops.c (value_must_coerce_to_target): Return 0 for
6033 lval_xcallable values.
6034 * value.c (struct value): New field XM_WORKER in the field
6035 LOCATION.
6036 (value_address, value_raw_address): Return 0 for lval_xcallable
6037 values.
6038 (set_value_address): Assert that the value is not an
6039 lval_xcallable.
6040 (value_free): Free the associated xmethod worker when freeing
6041 lval_xcallable values.
6042 (set_value_component_location): Assert that the WHOLE value is not
6043 lval_xcallable.
6044 (value_of_xmethod, call_xmethod): New functions.
6045 * value.h: Declare "struct xmethod_worker".
6046 Declare new functions value_of_xmethod, call_xmethod.
6047
ef370185
JB
60482014-06-03 Joel Brobecker <brobecker@adacore.com>
6049 Pedro Alves <palves@redhat.com>
6050
6051 PR breakpoints/17000
6052 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
6053 New function, extracted from software_breakpoint_inserted_here_p.
6054 (software_breakpoint_inserted_here_p): Replace factored out code
6055 by call to find_non_raw_software_breakpoint_inserted_here.
6056 (bp_target_info_copy_insertion_state): New function.
6057 (bkpt_insert_location): Handle the case of a single-step
6058 breakpoint already inserted at the same address.
6059 (bkpt_remove_location): Handle the case of a single-step
6060 breakpoint still inserted at the same address.
6061 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
6062 breakpoint already inserted at the same address.
6063 (deprecated_remove_raw_breakpoint): Handle the case of a
6064 non-raw breakpoint still inserted at the same address.
6065 (find_single_step_breakpoint): New function, extracted from
6066 single_step_breakpoint_inserted_here_p.
6067 (find_single_step_breakpoint): New function,
6068 factored out from single_step_breakpoint_inserted_here_p.
6069 (single_step_breakpoint_inserted_here_p): Reimplement.
6070
1e2ccb61
BM
60712014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
6072
6073 Pushed by Joel Brobecker <brobecker@adacore.com>
6074 * source.c (show_substitute_path_command): Fix display of matching
6075 substitution rules.
6076
d3448d85
GB
60772014-06-03 Gary Benson <gbenson@redhat.com>
6078
6079 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
6080
06eb1586
DE
60812014-06-02 Doug Evans <xdje42@gmail.com>
6082
6083 Add parameter support for Guile.
6084 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
6085 (SUBDIR_GUILE_SRCS): Add scm-param.c.
6086 (scm-param.o): New rule.
6087 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
6088 (gdbscm_misc_error): Declare.
6089 (gdbscm_canonicalize_command_name): Declare.
6090 (gdbscm_scm_to_host_string): Declare.
6091 (gdbscm_scm_from_host_string): Declare.
6092 (gdbscm_initialize_parameters): Declare.
6093 * guile/guile.c (initialize_gdb_module): Call
6094 gdbscm_initialize_parameters.
6095 * guile/lib/gdb.scm: Export parameter symbols.
6096 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
6097 cmdscm_canonicalize_name and made public. All callers updated.
6098 * guile/scm-exception.c (gdbscm_misc_error): New function.
6099 * guile/scm-param.c: New file.
6100 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
6101 (gdbscm_scm_to_host_string): New function.
6102 (gdbscm_scm_from_host_string): New function.
6103 * scm-utils.c (gdbscm_gc_dup_argv): New function.
6104
e698b8c4
DE
61052014-06-02 Doug Evans <xdje42@gmail.com>
6106
6107 Add command support for Guile.
6108 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
6109 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
6110 (scm-cmd.o): New rule.
6111 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
6112 (gdbscm_user_error_p): Declare.
6113 (gdbscm_parse_command_name): Declare.
6114 (gdbscm_valid_command_class_p): Declare.
6115 (gdbscm_initialize_commands): Declare.
6116 * guile/guile.c (initialize_gdb_module): Call
6117 gdbscm_initialize_commands.
6118 * guile/lib/gdb.scm: Export command symbols.
6119 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
6120 (throw-user-error): New function.
6121 * guile/scm-cmd.c: New file.
6122 * guile/scm-exception.c (user_error_symbol): New static global.
6123 (gdbscm_user_error_p): New function.
6124 (gdbscm_initialize_exceptions): Set user_error_symbol.
6125 * scm-utils.c (gdbscm_gc_xstrdup): New function.
6126
fb1f94b0
PM
61272014-06-02 Phil Muldoon <pmuldoon@redhat.com>
6128
6129 * top.c (command_loop): Handle comments here...
6130 (command_line_input): ... not here.
6131
ded03782
DE
61322014-06-02 Doug Evans <xdje42@gmail.com>
6133
6134 Add progspace support for Guile.
6135 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
6136 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
6137 (scm-progspace.o): New rule.
6138 * guile/guile-internal.h (pspace_smob): New typedef.
6139 (psscm_pspace_smob_pretty_printers): Declare.
6140 (psscm_pspace_smob_from_pspace): Declare.
6141 (psscm_scm_from_pspace): Declare.
6142 * guile/guile.c (initialize_gdb_module): Call
6143 gdbscm_initialize_pspaces.
6144 * guile/lib/gdb.scm: Export progspace symbols.
6145 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
6146 support.
6147 (append-pretty-printer!): Ditto.
6148 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
6149 Implement.
6150 * guile/scm-progspace.c: New file.
6151
397998fc
AM
61522014-06-03 Alan Modra <amodra@gmail.com>
6153
6154 * ppc64-tdep.c (ppc64_standard_linkage8): New.
6155 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
6156
6aa5f3a6
DE
61572014-06-02 Doug Evans <dje@google.com>
6158
6159 Add support for skeletonless type units.
6160 * dwarf2read.c (struct dwarf2_per_objfile): New member
6161 n_allocated_type_units.
6162 (struct dwarf2_per_objfile) <tu_stats>: New member
6163 nr_all_type_units_reallocs.
6164 (create_signatured_type_table_from_index): Initialize
6165 n_allocated_type_units
6166 (create_all_type_units): Ditto.
6167 (add_type_unit): Move up in file. New arg slot.
6168 All callers updated. Increase space for all_type_units more
6169 efficiently.
6170 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
6171 (lookup_dwo_signatured_type): Handle skeletonless TUs.
6172 (lookup_dwp_signatured_type): Ditto.
6173 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
6174 All callers updated.
6175 (build_type_psymtabs_1): Leave type_unit_groups as
6176 NULL if no TUs present.
6177 (print_tu_stats): New function.
6178 (process_skeletonless_type_unit): New function.
6179 (process_dwo_file_for_skeletonless_type_units): New
6180 function.
6181 (process_skeletonless_type_units): New function.
6182 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
6183 Call print tu_stats if debugging enabled.
6184
41fac0cf
PA
61852014-06-02 Pedro Alves <palves@redhat.com>
6186
6187 * breakpoint.c (build_target_command_list): Don't build a command
6188 list if we have any duplicate location that isn't a dprintf.
6189
cd1608cc
PA
61902014-06-02 Pedro Alves <palves@redhat.com>
6191
6192 * breakpoint.c (dprintf_breakpoint_hit): New function.
6193 (initialize_breakpoint_ops): Install it as dprintf's
6194 breakpoint_hit method.
6195
486ef3b9
JB
61962014-06-02 Joel Brobecker <brobecker@adacore.com>
6197
6198 * source.c (substitute_path_rule_matches): Simplify using
6199 filename_ncmp instead of FILENAME_CMP.
6200
230cd560
JB
62012014-06-02 Joel Brobecker <brobecker@adacore.com>
6202
6203 * source.c (substitute_path_rule_matches): Remove trailing spaces.
6204
16954d5d
LC
62052014-06-01 Ludovic Courtès <ludo@gnu.org>
6206
6207 * configure.ac: When Guile is available, check for the
6208 availability of 'scm_new_smob'.
6209 * configure, config.h.in: Regenerate.
6210 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
6211 function.
6212
53e8a631
AB
62132014-05-30 Andrew Burgess <aburgess@broadcom.com>
6214
6215 * frame.c (struct frame_info): Add stop_string field.
6216 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
6217 (get_prev_frame_always): Old content moved into
6218 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
6219 TRY_CATCH, handle MEMORY_ERROR exceptions.
6220 (frame_stop_reason_string): New function definition.
6221 * frame.h (unwind_stop_reason_to_string): Extend comment to
6222 mention frame_stop_reason_string.
6223 (frame_stop_reason_string): New function declaration.
6224 * stack.c (frame_info): Switch to frame_stop_reason_string.
6225 (backtrace_command_1): Switch to frame_stop_reason_string.
6226 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
6227 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
6228 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
6229
70e38b8e
AB
62302014-05-30 Andrew Burgess <aburgess@broadcom.com>
6231
6232 * frame.c (frame_stop_reason_string): Rename to ...
6233 (unwind_stop_reason_to_string): this.
6234 * frame.h (frame_stop_reason_string): Rename to ...
6235 (unwind_stop_reason_to_string): this.
6236 * stack.c (frame_info): Update call to frame_stop_reason_string.
6237 (backtrace_command_1): Likewise.
6238 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
6239 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
6240
938f0e2f
AB
62412014-05-30 Andrew Burgess <aburgess@broadcom.com>
6242
6243 * frame.c (remove_prev_frame): New function.
6244 (get_prev_frame_if_no_cycle): Create / discard cleanup using
6245 remove_prev_frame.
6246
a09dd441
PA
62472014-05-29 Pedro Alves <palves@redhat.com>
6248
6249 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
6250 and make it const. When a single-step decays to a continue,
6251 clear 'step', not 'hw_step'. Pass whether the caller wanted
6252 to step to user_visible_resume_ptid, not what we ask the
6253 target to do.
6254
bdc36728
PA
62552014-05-29 Pedro Alves <palves@redhat.com>
6256
6257 * infrun.c (process_event_stop_test, handle_step_into_function)
6258 (handle_step_into_function_backward): Adjust.
6259 Don't set the even thread's stop_step and call stop_waiting before
6260 calling end_stepping_range. Instead do that ...
6261 (end_stepping_range): ... here. Take an ecs pointer parameter.
6262
22bcd14b
PA
62632014-05-29 Pedro Alves <palves@redhat.com>
6264
6265 * infrun.c (stop_stepping): Rename to ...
6266 (stop_waiting): ... this.
6267 (proceed): Update comment.
6268 (process_event_stop_test, handle_inferior_event)
6269 (handle_signal_stop, handle_step_into_function)
6270 (handle_step_into_function_backward): Update.
6271
4ae57c05
PA
62722014-05-29 Pedro Alves <palves@redhat.com>
6273
6274 * infcall.c (run_inferior_call): Don't check whether the current
6275 thread is running after the proceed call.
6276
329ea579
PA
62772014-05-29 Pedro Alves <palves@redhat.com>
6278 Tom Tromey <tromey@redhat.com>
6279
6280 * NEWS: Mention "maint set target-async", "set mi-async", and that
6281 background execution commands are now always available.
6282 * target.h (target_async_permitted): Update comment.
6283 * target.c (target_async_permitted, target_async_permitted_1):
6284 Default to 1.
6285 (set_target_async_command): Rename to ...
6286 (maint_set_target_async_command): ... this.
6287 (show_target_async_command): Rename to ...
6288 (maint_show_target_async_command): ... this.
6289 (_initialize_target): Adjust.
6290 * infcmd.c (prepare_execution_command): Make extern.
6291 * inferior.h (prepare_execution_command): Declare.
6292 * infrun.c (set_observer_mode): Leave target async alone.
6293 * mi/mi-interp.c (mi_interpreter_init): Install
6294 mi_on_sync_execution_done as sync_execution_done observer.
6295 (mi_on_sync_execution_done): New function.
6296 (mi_execute_command_input_handler): Don't print the prompt if we
6297 just started a synchronous command with an async target.
6298 (mi_on_resume): Check sync_execution before printing prompt.
6299 * mi/mi-main.h (mi_async_p): Declare.
6300 * mi/mi-main.c: Include gdbcmd.h.
6301 (mi_async_p): New function.
6302 (mi_async, mi_async_1): New globals.
6303 (set_mi_async_command, show_mi_async_command, mi_async): New
6304 functions.
6305 (exec_continue): Call prepare_execution_command.
6306 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
6307 (mi_execute_async_cli_command): Use mi_async_p.
6308 (_initialize_mi_main): Install "set mi-async". Make
6309 "target-async" a deprecated alias.
6310
92bcb5f9
PA
63112014-05-29 Pedro Alves <palves@redhat.com>
6312
6313 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
6314 (_initialize_cli_interp): Adjust.
6315 * event-loop.c: Include "observer.h".
6316 (start_event_loop): Notify 'command_error' observers instead of
6317 calling display_gdb_prompt. Remove FIXME comment.
6318 * event-top.c (display_gdb_prompt): Remove call into the
6319 interpreters.
6320 * inf-loop.c: Include "observer.h".
6321 (inferior_event_handler): Notify 'command_error' observers instead
6322 of calling display_gdb_prompt.
6323 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
6324 observers instead of calling display_gdb_prompt.
6325 * interps.c (interp_set): Don't call display_gdb_prompt.
6326 (current_interp_display_prompt_p): Delete.
6327 * interps.h (interp_prompt_p): Delete declaration.
6328 (interp_prompt_p_ftype): Delete.
6329 (struct interp_procs) <prompt_proc_p>: Delete field.
6330 (current_interp_display_prompt_p): Delete declaration.
6331 * mi-interp.c (mi_interpreter_prompt_p): Delete.
6332 (_initialize_mi_interp): Adjust.
6333 * tui-interp.c (tui_init): Install 'sync_execution_done' and
6334 'command_error' observers.
6335 (tui_on_sync_execution_done, tui_on_command_error): New
6336 functions.
6337 (tui_display_prompt_p): Delete.
6338 (_initialize_tui_interp): Adjust.
6339
fd664c91
PA
63402014-05-29 Pedro Alves <palves@redhat.com>
6341
6342 PR gdb/13860
6343 * cli/cli-interp.c: Include infrun.h and observer.h.
6344 (cli_uiout, cli_interp): New globals.
6345 (cli_on_signal_received, cli_on_end_stepping_range)
6346 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
6347 functions.
6348 (cli_interpreter_init): Install them as 'end_stepping_range',
6349 'signal_received' 'signal_exited', 'exited' and 'no_history'
6350 observers.
6351 (_initialize_cli_interp): Remove cli_interp local.
6352 * infrun.c (handle_inferior_event): Call the several stop reason
6353 observers instead of printing the stop reason directly.
6354 (end_stepping_range): New function.
6355 (print_end_stepping_range_reason, print_signal_exited_reason)
6356 (print_exited_reason, print_signal_received_reason)
6357 (print_no_history_reason): Make static, and add an uiout
6358 parameter. Print to that instead of to CURRENT_UIOUT.
6359 * infrun.h (print_end_stepping_range_reason)
6360 (print_signal_exited_reason, print_exited_reason)
6361 (print_signal_received_reason print_no_history_reason): New
6362 declarations.
6363 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
6364 'mi_uiout'.
6365 <cli_uiout>: New field.
6366 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
6367 uiout for CLI output. Install 'signal_received',
6368 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
6369 observers.
6370 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
6371 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
6372 (mi_on_no_history): New functions.
6373 (ui_out_free_cleanup): Delete function.
6374 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
6375 instead use the one already stored in the MI interpreter data.
6376 (mi_ui_out): Adjust.
6377 * tui/tui-interp.c: Include infrun.h and observer.h.
6378 (tui_interp): New global.
6379 (tui_on_signal_received, tui_on_end_stepping_range)
6380 (tui_on_signal_exited, tui_on_exited)
6381 (tui_on_no_history): New functions.
6382 (tui_init): Install them as 'end_stepping_range',
6383 'signal_received' 'signal_exited', 'exited' and 'no_history'
6384 observers.
6385 (_initialize_tui_interp): Delete tui_interp local.
6386
8817a6f2
PA
63872014-05-29 Pedro Alves <palves@redhat.com>
6388
6389 PR gdb/15713
6390 * linux-nat.c (linux_nat_resume_callback): Rename the second
6391 parameter to 'except'. Skip LP if it points to EXCEPT.
6392 (linux_nat_resume): Don't mark the event lwp as not stopped
6393 before resuming sibling lwps. Instead ask
6394 linux_nat_resume_callback to skip the event lwp. Mark it as not
6395 stopped after actually resuming it.
6396 (linux_handle_syscall_trap): Mark the lwp as not stopped after
6397 resuming it.
6398 (wait_lwp): Mark the lwp as stopped here.
6399 (stop_wait_callback): Mark the lwp as not stopped right after
6400 resuming it. Don't mark lwps as stopped here.
6401 (linux_nat_filter_event): Mark the lwp as stopped earlier.
6402 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
6403
251bde03
PA
64042014-05-29 Pedro Alves <palves@redhat.com>
6405
6406 PR PR15693
6407 * infrun.c (resume): Determine how much to resume depending on
6408 whether the caller wanted a step, not whether we can hardware step
6409 the target. Mark all threads that we intend to run as running,
6410 unless we're calling an inferior function.
6411 (normal_stop): If the thread is running an infcall, don't finish
6412 thread state.
6413 * target.c (target_resume): Don't mark threads as running here.
6414
7f3c0343
JB
64152014-05-28 Joel Brobecker <brobecker@adacore.com>
6416
6417 * serial.c (_initialize_serial): Remove support for
6418 the "set remotebaud" and "show remotebaud" commands.
6419 * NEWS: Add entry documenting the removal of that command.
6420
ee34b3f9
YQ
64212014-05-28 Yao Qi <yao@codesourcery.com>
6422
6423 * charset.c: Fix typo in comments.
6424
add6c04d
GB
64252014-05-27 Gary Benson <gbenson@redhat.com>
6426
6427 * utils.c (internal_vproblem): Prompt for a bug report.
6428
92c48fc5
AW
64292014-05-26 Andy Wingo <wingo@igalia.com>
6430
6431 * guile/scm-arch.c (arscm_mark_arch_smob):
6432 * guile/scm-block.c (bkscm_mark_block_smob)
6433 (bkscm_mark_block_syms_progress_smob):
6434 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
6435 * guile/scm-exception.c (exscm_mark_exception_smob):
6436 * guile/scm-frame.c (frscm_mark_frame_smob):
6437 * guile/scm-iterator.c (itscm_mark_iterator_smob):
6438 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
6439 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
6440 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
6441 (ppscm_mark_pretty_printer_worker_smob):
6442 * guile/scm-symbol.c (syscm_mark_symbol_smob):
6443 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
6444 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
6445 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
6446 mark functions.
6447 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
6448 function.
6449
b2715b27
AW
64502014-05-26 Andy Wingo <wingo@igalia.com>
6451 Doug Evans <xdje42@gmail.com>
6452
6453 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
6454 empty_base_class. All uses updated.
6455 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
6456 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
6457 Adapt all callers.
6458 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
6459 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
6460 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
6461 (gdbscm_gsmob_has_property_p, add_property_name)
6462 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
6463 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
6464 (gdb-object-has-property?, gdb-object-properties): Remove.
6465 (gdb-object-kind): Renamed from gsmob-kind.
6466
214ab2da
AW
64672014-05-26 Andy Wingo <wingo@igalia.com>
6468
6469 * configure.ac (try_guile_versions): Allow building with guile 2.2.
6470 * configure: Regenerate.
6471
589fdceb
MM
64722014-05-23 Markus Metzger <markus.t.metzger@intel.com>
6473
6474 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
6475
67b5c0c1
MM
64762014-05-23 Markus Metzger <markus.t.metzger@intel.com>
6477
6478 * record-btrace.c (record_btrace_allow_memory_access): Remove.
6479 (replay_memory_access_read_only, replay_memory_access_read_write)
6480 (replay_memory_access_types, replay_memory_access)
6481 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
6482 (cmd_set_record_btrace, cmd_show_record_btrace)
6483 (cmd_show_replay_memory_access): New.
6484 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
6485 (record_btrace_remove_breakpoint): Replace
6486 record_btrace_allow_memory_access with replay_memory_access.
6487 (_initialize_record_btrace): Add commands.
6488 * NEWS: Announce it.
6489
036cd381
RR
64902014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6491
6492 * aarch64-linux-nat.c (asm/ptrace.h): Include.
6493
c77c1e42
RR
64942014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6495
6496 * MAINTAINERS (Write After Approval): Move self back from
6497 paper trail.
6498
45741a9c
PA
64992014-05-22 Pedro Alves <palves@redhat.com>
6500
6501 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
6502 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
6503 (disable_randomization, enum exec_direction_kind)
6504 (execution_direction, stop_registers, start_remote)
6505 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
6506 (wait_for_inferior, normal_stop, get_last_target_status)
6507 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
6508 (insert_step_resume_breakpoint_at_sal)
6509 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
6510 (set_step_info, print_stop_event, signal_stop_state)
6511 (signal_print_state, signal_pass_state, signal_stop_update)
6512 (signal_print_update, signal_pass_update)
6513 (update_signals_program_target, clear_exit_convenience_vars)
6514 (displaced_step_dump_bytes, update_observer_mode)
6515 (signal_catch_update, gdb_signal_from_command): Move
6516 declarations ...
6517 * infrun.h: ... to this new file.
6518 * amd64-tdep.c: Include infrun.h.
6519 * annotate.c: Include infrun.h.
6520 * arch-utils.c: Include infrun.h.
6521 * arm-linux-tdep.c: Include infrun.h.
6522 * arm-tdep.c: Include infrun.h.
6523 * break-catch-sig.c: Include infrun.h.
6524 * breakpoint.c: Include infrun.h.
6525 * common/agent.c: Include infrun.h instead of inferior.h.
6526 * corelow.c: Include infrun.h.
6527 * event-top.c: Include infrun.h.
6528 * go32-nat.c: Include infrun.h.
6529 * i386-tdep.c: Include infrun.h.
6530 * inf-loop.c: Include infrun.h.
6531 * infcall.c: Include infrun.h.
6532 * infcmd.c: Include infrun.h.
6533 * infrun.c: Include infrun.h.
6534 * linux-fork.c: Include infrun.h.
6535 * linux-nat.c: Include infrun.h.
6536 * linux-thread-db.c: Include infrun.h.
6537 * monitor.c: Include infrun.h.
6538 * nto-tdep.c: Include infrun.h.
6539 * procfs.c: Include infrun.h.
6540 * record-btrace.c: Include infrun.h.
6541 * record-full.c: Include infrun.h.
6542 * remote-m32r-sdi.c: Include infrun.h.
6543 * remote-mips.c: Include infrun.h.
6544 * remote-notif.c: Include infrun.h.
6545 * remote-sim.c: Include infrun.h.
6546 * remote.c: Include infrun.h.
6547 * reverse.c: Include infrun.h.
6548 * rs6000-tdep.c: Include infrun.h.
6549 * s390-linux-tdep.c: Include infrun.h.
6550 * solib-irix.c: Include infrun.h.
6551 * solib-osf.c: Include infrun.h.
6552 * solib-svr4.c: Include infrun.h.
6553 * target.c: Include infrun.h.
6554 * top.c: Include infrun.h.
6555 * windows-nat.c: Include infrun.h.
6556 * mi/mi-interp.c: Include infrun.h.
6557 * mi/mi-main.c: Include infrun.h.
6558 * python/py-threadevent.c: Include infrun.h.
6559
98eb56a4
PA
65602014-05-22 Pedro Alves <palves@redhat.com>
6561
6562 * infrun.c (handle_inferior_event): Store the exit code for
6563 --return-child-result here, instead of ...
6564 (print_exited_reason): ... here.
6565
17b2616c
PA
65662014-05-21 Pedro Alves <palves@redhat.com>
6567
6568 PR gdb/13860
6569 * gdbthread.h (struct thread_control_state): New field
6570 `command_interp'.
6571 * infrun.c (follow_fork): Copy the new thread control field to the
6572 child fork thread.
6573 (clear_proceed_status_thread): Clear the new thread control field.
6574 (proceed): Set the new thread control field.
6575 * interps.h (command_interp): Declare.
6576 * interps.c (command_interpreter): New global.
6577 (command_interp): New function.
6578 (interp_exec): Set `command_interpreter' while here.
6579 * cli-out.c (cli_uiout_dtor): New function.
6580 (cli_ui_out_impl): Install it.
6581 * mi/mi-interp.c: Include cli-out.h.
6582 (mi_cmd_interpreter_exec): Add comment.
6583 (restore_current_uiout_cleanup): New function.
6584 (ui_out_free_cleanup): New function.
6585 (mi_on_normal_stop): If finishing an execution command started by
6586 a CLI command, or any kind of breakpoint-like event triggered,
6587 print the stop event to the output (CLI) stream.
6588 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
6589
5166082f
PA
65902014-05-21 Pedro Alves <palves@redhat.com>
6591
6592 * cli/cli-cmds.c (list_command): Handle the first "list" after the
6593 current source line having changed.
6594 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
6595 * infrun.c (normal_stop): Adjust call to
6596 set_current_sal_from_frame.
6597 * source.c (clear_lines_listed_range): New function.
6598 (set_current_source_symtab_and_line, identify_source_line): Clear
6599 the lines listed range.
6600 (line_info): Handle the first "info line" after the current source
6601 line having changed.
6602 * stack.c (print_stack_frame): Remove center handling.
6603 (set_current_sal_from_frame): Remove 'center' parameter. Don't
6604 center sal.line.
6605
c1ee2fb3
PA
66062014-05-21 Pedro Alves <palves@redhat.com>
6607
6608 * inf-child.c (inf_child_mourn_inferior): New function.
6609 * inf-child.h (inf_child_mourn_inferior): New declaration.
6610 * darwin-nat.c (darwin_mourn_inferior): Use
6611 inf_child_mourn_inferior.
6612 * gnu-nat.c (gnu_mourn_inferior): Likewise.
6613 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
6614 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
6615 * nto-procfs.c (procfs_mourn_inferior): Likewise.
6616 * windows-nat.c (windows_mourn_inferior): Likewise.
6617
5c6d4fb2
DE
66182014-05-21 Doug Evans <xdje42@gmail.com>
6619
250748cb 6620 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5c6d4fb2 6621
4a2722c5
DE
66222014-05-21 Doug Evans <xdje42@gmail.com>
6623
17292b30 6624 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4a2722c5
DE
6625 (gdbscm_out_of_range_error): Ditto.
6626 (gdbscm_memory_error): Ditto.
250748cb
DE
6627 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
6628 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4a2722c5
DE
6629 (gdbscm_out_of_range_error): Update.
6630 (gdbscm_memory_error): Update.
6631 (gdbscm_scm_to_target_string_unsafe): Delete.
6632
6a3cb8e8
PA
66332014-05-21 Pedro Alves <palves@redhat.com>
6634
6635 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
6636 globals.
6637 (inf_child_open_target): New function.
6638 (inf_child_open): Use inf_child_open_target to push the target
6639 instead of erroring out.
6640 (inf_child_disconnect, inf_child_close)
6641 (inf_child_maybe_unpush_target): New functions.
6642 (inf_child_target): Install inf_child_disconnect and
6643 inf_child_close. Store a pointer to the returned object.
6644 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
6645 declarations.
6646 * target.c (auto_connect_native_target): New global.
6647 (show_default_run_target): New function.
6648 (find_default_run_target): Return NULL if automatically connecting
6649 to the native target is disabled.
6650 (_initialize_target): Install set/show auto-connect-native-target.
6651 * NEWS: Mention "set auto-connect-native-target", and "target
6652 native".
6653 * linux-nat.c (super_close): New global.
6654 (linux_nat_close): Call super_close.
6655 (linux_nat_add_target): Store a pointer to the base class's
6656 to_close method.
6657 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
6658 inf_child_maybe_unpush.
6659 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
6660 already pushed.
6661 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
6662 the inferior. Use inf_child_maybe_unpush_target.
6663 (inf_ttrace_attach): Don't push the target if it is already
6664 pushed.
6665 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
6666 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
6667 after mourning the inferior. Use inf_child_maybe_unpush_target.
6668 (darwin_attach_pid): Don't push the target if it is already
6669 pushed.
6670 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
6671 mourning the inferior. Use inf_child_maybe_unpush_target.
6672 (gnu_detach): Use inf_child_maybe_unpush_target.
6673 * go32-nat.c (go32_create_inferior): Don't push the target if it
6674 is already pushed.
6675 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
6676 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
6677 (procfs_open): Rename to ...
6678 (procfs_open_1): ... this. Add target_ops parameter. Adjust
6679 comments. Can target_preopen before changing node. Call
6680 inf_child_open_target to push the target explicitly.
6681 (procfs_attach): Don't push the target if it is already pushed.
6682 (procfs_detach): Use inf_child_maybe_unpush_target.
6683 (procfs_create_inferior): Don't push the target if it is already
6684 pushed.
6685 (nto_native_ops): New global.
6686 (procfs_open): Reimplement.
6687 (procfs_native_open): New function.
6688 (init_procfs_targets): Install procfs_native_open as to_open of
6689 "target native". Store a pointer to the "native" target in
6690 nto_native_ops.
6691 * procfs.c (procfs_attach): Don't push the target if it is already
6692 pushed.
6693 (procfs_detach): Use inf_child_maybe_unpush_target.
6694 (procfs_mourn_inferior): Only unpush the target after mourning the
6695 inferior. Use inf_child_maybe_unpush_target.
6696 (procfs_init_inferior): Don't push the target if it is already
6697 pushed.
6698 * windows-nat.c (do_initial_windows_stuff): Don't push the target
6699 if it is already pushed.
6700
930ee1b1
PA
67012014-05-21 Pedro Alves <palves@redhat.com>
6702
6703 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
6704 and "procfs" targets are now called "native" instead.
6705
1f5d1b13
PA
67062014-05-21 Pedro Alves <palves@redhat.com>
6707
6708 * go32-nat.c (go32_open): Delete.
6709 (go32_target): Don't override the to_open method.
6710
132f8e03
PA
67112014-05-21 Pedro Alves <palves@redhat.com>
6712
6713 * nto-procfs.c (procfs_can_run): New function.
6714 (nto_procfs_ops): New global.
6715 (init_procfs_targets): New, based on procfs_target. Install
6716 "target native" in addition to "target procfs".
6717 (_initialize_procfs): Call init_procfs_targets instead of adding
6718 the target here.
6719
03c136c3
PA
67202014-05-21 Pedro Alves <palves@redhat.com>
6721
6722 * windows-nat.c (windows_target): Don't override to_shortname,
6723 to_longname or to_doc.
6724
a635d0f3
PA
67252014-05-21 Pedro Alves <palves@redhat.com>
6726
6727 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
6728 to_doc.
6729
4f9b5133
PA
67302014-05-21 Pedro Alves <palves@redhat.com>
6731
6732 * darwin-nat.c (_initialize_darwin_inferior): Don't override
6733 to_shortname, to_longname or to_doc.
6734
bc85afde
PA
67352014-05-21 Pedro Alves <palves@redhat.com>
6736
6737 * go32-nat.c (go32_target): Don't override to_shortname,
6738 to_longname or to_doc.
6739
4ebfc96e
PA
67402014-05-21 Pedro Alves <palves@redhat.com>
6741
6742 * inf-child.c (inf_child_open): Remove mention of "child".
6743 (inf_child_target): Rename target to "native" instead of "child".
6744
2648dfed
AA
67452014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6746
6747 * Makefile.in (SFILES): Delete "regset.c".
6748 (COMMON_OBS): Delete "regset.o".
6749 * regset.c: Remove.
6750 * regset.h (regset_alloc): Delete prototype.
6751
b13feb94
AA
67522014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6753
6754 * sparc-linux-tdep.c (sparc32_linux_gregset)
6755 (sparc32_linux_fpregset): New static regset structures.
6756 (sparc32_linux_init_abi): Drop dynamic regset allocations.
6757 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
6758 'fpregset' fields.
6759 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
6760 (sparc64_linux_fpregset): New static regset structures.
6761 (sparc64_linux_init_abi): Drop dynamic regset allocations.
6762 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
6763 New static regset structures.
6764 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
6765 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
6766 New static regset structures.
6767 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
6768 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
6769 New static regset structures.
6770 (sparc64obsd_init_abi): Drop dynamic regset allocations.
6771 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
6772 New static regset structures.
6773 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
6774
b4fd25c9
AA
67752014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6776
6777 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
6778 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
6779 register maps ("regmaps") from "*regset" to "*regmap". Do this
6780 for all regmap types and variables.
6781 * sparc-linux-tdep.c (sparc32_linux_step_trap)
6782 (sparc32_linux_supply_core_gregset)
6783 (sparc32_linux_collect_core_gregset)
6784 (sparc32_linux_supply_core_fpregset)
6785 (sparc32_linux_collect_core_fpregset): Likewise.
6786 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
6787 (sparc_gregmap, sparc_fpregmap): ... these.
6788 (sparc_supply_gregset, sparc_collect_gregset)
6789 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
6790 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
6791 (_initialize_sparc_nat): Rename regmaps.
6792 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
6793 (sparc_gregmap, sparc_fpregmap): ... these.
6794 (sparc_supply_gregset, sparc_collect_gregset)
6795 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
6796 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
6797 Rename macros to...
6798 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
6799 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
6800 Likewise.
6801 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
6802 Rename to...
6803 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
6804 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
6805 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
6806 regmaps.
6807 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
6808 (sparc32_bsd_fpregset): Rename to...
6809 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
6810 (sparc32_bsd_fpregmap): ... these.
6811 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
6812 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
6813 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
6814 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
6815 (struct sparc_gregmap, struct sparc_fpregmap)
6816 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
6817 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
6818 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
6819 (sparc32_supply_regset, sparc32_collect_gregset)
6820 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
6821 prototypes.
6822 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
6823 (sparc64_linux_ptrace_gregmap): ... this.
6824 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
6825 (_initialize_sparc64_linux_nat): Rename regmaps.
6826 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
6827 (sparc64_linux_core_gregmap): ... this.
6828 (sparc64_linux_supply_core_gregset)
6829 (sparc64_linux_collect_core_gregset)
6830 (sparc64_linux_supply_core_fpregset)
6831 (sparc64_linux_collect_core_fpregset): Rename regmaps.
6832 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
6833 (sparc64_sol2_fpregset): Rename to...
6834 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
6835 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
6836 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
6837 regmaps.
6838 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
6839 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
6840 (sparc64_bsd_fpregset): Rename to...
6841 (struct sparc_gregmap, sparc64_sol2_gregmap)
6842 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
6843 (sparc64_bsd_fpregmap): ... these.
6844 (sparc64_supply_gregset, sparc64_collect_gregset)
6845 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
6846 prototypes.
6847 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
6848 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
6849 (sparc64fbsd_gregmap): ... this.
6850 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
6851 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
6852 Rename regmaps.
6853 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
6854 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
6855 (sparc64nbsd_collect_fpregset): Likewise.
6856 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
6857 (sparc64nbsd_gregmap): ... this.
6858 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
6859 regmaps.
6860 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
6861 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
6862 (sparc64obsd_gregmap): ... this.
6863 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
6864 regmaps.
6865 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
6866 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
6867 (sparc32nbsd_gregmap): ... this.
6868 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
6869 regmaps.
6870
8fea3224
AA
68712014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6872
6873 * score-tdep.c (score7_linux_gregset): New static regset
6874 structure.
6875 (score7_linux_regset_from_core_section): Remove dynamic regset
6876 allocation.
6877 (score_gdbarch_init): Drop allocation of tdep structure.
6878 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
6879
24534243
AA
68802014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6881
6882 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
6883 regset structures.
6884 (am33_regset_from_core_section): Remove dynamic regset
6885 allocations.
6886
b7195f27
AA
68872014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6888
6889 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
6890 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
6891 structures.
6892 (mips_linux_regset_from_core_section): Remove dynamic regset
6893 allocations.
6894 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
6895 'gregset64', 'fpregset', and 'fpregset64'.
6896 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
6897 deleted tdep fields.
6898
ecc37a5a
AA
68992014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6900
6901 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
6902 regset structures.
6903 (amd64_regset_from_core_section): Remove dynamic regset
6904 allocations.
6905 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
6906 structure.
6907 (amd64obsd_regset_from_core_section): Remove dynamic regset
6908 allocation.
6909 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
6910 Likewise.
6911 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
6912 x86-common regset supply function.
6913 * i386-tdep.c (i386_collect_gregset): Make static.
6914 (i386_gregset): New global regset structure.
6915 (i386_fpregset, i386_xstateregset): New static regset structures.
6916 (i386_regset_from_core_section): Remove dynamic regset
6917 allocations.
6918 (i386_gdbarch_init): Remove initialization of tdep fields
6919 'gregset', 'fpregset', and 'xstateregset'.
6920 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
6921 'fpregset', and 'xstateregset'.
6922 (i386_collect_gregset): Remove prototype.
6923 (i386_gregset): New declaration.
6924 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
6925 structure.
6926 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
6927 allocation.
6928
b7611c43
AA
69292014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6930
6931 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
6932 (arm_linux_vfpregset): New static regset structures.
6933 (arm_linux_regset_from_core_section): Remove dynamic allocation of
6934 regset structures.
6935 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
6936 and 'vfpregset' fields.
6937
a069a2bd
AA
69382014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6939
6940 * aarch64-linux-tdep.c (aarch64_linux_gregset)
6941 (aarch64_linux_fpregset): New static regset structures.
6942 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
6943 of regset structures.
6944 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
6945 'fpregset' fields.
6946
09424cff
AA
69472014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6948
6949 * regset.h (struct regset): Remove gdbarch field.
6950 * regset.c (regset_alloc): Drop initialization of gdbarch field.
6951 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
6952 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
6953 Likewise.
6954 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
6955 (ppc32_linux_fpregset, ppc32_linux_vrregset)
6956 (ppc32_linux_vsxregset): Likewise.
6957 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
6958 via the regcache instead of the regset.
6959 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
6960 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
6961 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
6962 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
6963 Likewise.
6964
3ca7dae4
AA
69652014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6966
6967 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
6968 Constify structures.
6969 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
6970 (alphanbsd_aout_gregset): Likewise.
6971 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
6972 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
6973 Likewise.
6974 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
6975 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
6976 Likewise.
6977 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
6978 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
6979 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
6980 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
6981 * m88k-tdep.c (m88k_gregset): Likewise.
6982 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
6983 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
6984 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
6985 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
6986 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
6987 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
6988 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
6989 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
6990 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
6991 Likewise.
6992 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
6993 * sh-tdep.h (sh_corefile_gregset): Likewise.
6994 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
6995 * vax-tdep.c (vax_gregset): Likewise.
6996
5876f503
JK
69972014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6998
6999 Fix TLS access for -static -pthread.
7000 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
7001 (try_thread_db_load_1): Initialize it.
7002 (thread_db_get_thread_local_address): Call it if LM is zero.
7003 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
7004 * target.h (struct target_ops) (to_get_thread_local_address): Add
7005 load_module_addr comment.
7006
0256a6ac
PA
70072014-05-21 Pedro Alves <palves@redhat.com>
7008
7009 * dcache.c (dcache_read_memory_partial): If reading the cache line
7010 fails, fallback to reading just the memory the caller wanted.
7011
227533ac
DE
70122014-05-20 Doug Evans <dje@google.com>
7013
7014 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
7015 instead of get_current_arch.
7016
936d2992
PA
70172014-05-20 Pedro Alves <palves@redhat.com>
7018
7019 * NEWS: Mention that compare-sections now works with all targets.
7020
7021 * remote.c (PACKET_qCRC): New enum value.
7022 (remote_verify_memory): Don't send qCRC if the target has no
7023 execution. Use packet_support/packet_ok. If the target doesn't
7024 support the qCRC packet, fallback to a deep memory copy.
7025 (compare_sections_command): Say "target image" instead of "remote
7026 executable".
7027 (_initialize_remote): Add PACKET_qCRC to the list of config
7028 packets that have no associated command. Extend comment.
7029 * target.c (simple_verify_memory, default_verify_memory): New
7030 function.
7031 * target.h (struct target_ops) <to_verify_memory>: Default to
7032 default_verify_memory.
7033 (simple_verify_memory): New declaration.
7034 * target-delegates.c: Regenerate.
7035
e59fa00f
MM
70362014-05-20 Markus Metzger <markus.t.metzger@intel.com>
7037
7038 * record-btrace.c (record_btrace_step_thread): Check for empty history.
7039
f2205de0
HZ
70402014-05-20 Hui Zhu <hui@codesourcery.com>
7041 Yao Qi <yao@codesourcery.com>
7042
7043 PR backtrace/16558
7044 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
7045 and change address of sp and pc.
7046
c4e54771
TT
70472014-05-19 Tom Tromey <tromey@redhat.com>
7048
7049 * gdbtypes.c (rank_function): Use XNEWVEC.
7050 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
7051
73051182
DE
70522014-05-19 Doug Evans <dje@google.com>
7053
7054 * dwarf2read.c (build_type_psymtabs_1): Renamed from
7055 build_type_unit_groups and moved closer to only caller. Remove
7056 arguments. All references updated. Remove outdated .gdb_index
7057 comment.
7058 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
7059 build_type_psymtabs_1.
7060
8832e7e3
DE
70612014-05-19 Doug Evans <dje@google.com>
7062
7063 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
7064 n_type_unit_groups, all_type_unit_groups. All uses removed.
7065 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
7066 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
7067 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
7068 (add_type_unit_group_to_table): Delete.
7069
cd8ae15e
DE
70702014-05-19 Doug Evans <dje@google.com>
7071
7072 * eval.c (evaluate_subexp_standard): Add some comments.
7073
08f4850b
DE
70742014-05-17 Doug Evans <xdje42@gmail.com>
7075
7076 * progspace.c (remove_program_space): Delete, unused.
7077 * progspace.h (remove_program_space): Ditto.
7078
bed8455c
DE
70792014-05-17 Doug Evans <xdje42@gmail.com>
7080
7081 * inferior.c (prune_inferiors): Fix comment.
7082 (remove_inferior_command): Call prune_program_spaces.
7083
8d551b02
DE
70842014-05-16 Doug Evans <dje@google.com>
7085
7086 New command line option -D.
7087 * NEWS: Mention it.
7088 * main.c (set_gdb_data_directory): New function.
7089 (captured_main): Recognize -D. Flag error for --data-directory "".
7090 Call set_gdb_data_directory.
7091 (print_gdb_help): Print --data-directory, -D.
7092 * main.h (set_gdb_data_directory): Declare.
7093 * top.c (staged_gdb_datadir): New static global.
7094 (set_gdb_datadir): Call set_gdb_data_directory
7095 (show_gdb_datadir): New function.
7096 (init_main): Update init of data-directory parameter.
7097
18848e28
GF
70982014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
7099
7100 Import the "dirfd" gnulib module.
7101 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
7102 * gnulib/aclocal.m4: Update.
7103 * gnulib/config.in: Update.
7104 * gnulib/configure: Update.
7105 * gnulib/import/Makefile.am: Update.
7106 * gnulib/import/Makefile.in: Update.
7107 * gnulib/import/dirfd.c: New.
7108 * gnulib/import/m4/dirfd.m4: New.
7109 * gnulib/import/m4/gnulib-cache.m4: Update.
7110 * gnulib/import/m4/gnulib-comp.m4: Update.
7111
95c64f92
YQ
71122014-05-16 Pierre Muller <muller@sourceware.org>
7113 Yao Qi <yao@codesourcery.com>
7114
7115 * valprint.c (print_wchar): Move the code on checking whether
7116 W is a printable wide char to the default branch of switch
7117 statement below. Call wchar_printable instead of gdb_iswprint.
7118
cac395ea
TM
71192014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
7120
19679eca 7121 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
cac395ea
TM
7122 ldr.w and ldrd instructions.
7123
83655187
DE
71242014-05-15 Doug Evans <dje@google.com>
7125
7126 * dwarf2read.c (read_structure_type): Delete outdated comments.
7127
dd756689
TT
71282014-05-14 Tom Tromey <tromey@redhat.com>
7129
7130 * macrocmd.c (print_macro_definition): Reindent.
7131
75ddda77
DE
71322014-05-13 Doug Evans <xdje42@gmail.com>
7133
7134 * python/py-cmd.c (cmdpy_completer): Add comment.
7135 (completers): Make const.
7136
b0f16a3e
SM
71372014-05-13 Simon Marchi <simon.marchi@ericsson.com>
7138
7139 * infrun.c (resume): Remove should_resume (unused). Move up
7140 declaration of resume_ptid.
7141
033c3379
TT
71422014-05-13 Tom Tromey <tromey@redhat.com>
7143
7144 * language.h (unop_type_check): Remove.
7145 (binop_type_check): Don't declare.
7146
9b44a3a5
AA
71472014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
7148
7149 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
7150 call to regcache_raw_collect.
7151
303a33fa
SM
71522014-05-12 Simon Marchi <simon.marchi@ericsson.com>
7153
7154 * mi/mi-console.c (mi_console_raw_packet): Use the value from
7155 mi_console->quote as the quoting character.
7156
196100a0
SM
71572014-05-12 Simon Marchi <simon.marchi@ericsson.com>
7158
7159 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
7160
f989a1c8
TT
71612014-04-29 Tom Tromey <tromey@redhat.com>
7162
7163 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
7164 "show debug varobj".
7165
9404b58f
KM
71662014-05-07 Kyle McMartin <kyle@redhat.com>
7167
7168 Pushed by Joel Brobecker <brobecker@adacore.com>.
7169 * aarch64-tdep.c (aarch64_software_single_step): New function.
7170 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
7171 with aarch64_software_single_step.
7172
5e49ba57
JB
71732014-05-05 Joel Brobecker <brobecker@adacore.com>
7174
7175 GDB 7.7.1 released.
7176
c888a17d
KS
71772014-05-05 Keith Seitz <keiths@redhat.com>
7178
7179 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
7180 variable or history value is successfully parsed.
7181
290a839c
YQ
71822014-05-05 Yao Qi <yao@codesourcery.com>
7183 Pedro Alves <palves@redhat.com>
7184
7185 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
7186 address of blocks that intersects the requested range. Trim
7187 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
7188 sections.
7189 * ctf.c (ctf_xfer_partial): Likewise.
7190
91256dc2
YQ
71912014-05-05 Yao Qi <yao@codesourcery.com>
7192
7193 * printcmd.c (display_command): Remove the check to
7194 target_has_execution.
7195
07284463
MK
71962014-05-03 Mark Kettenis <kettenis@gnu.org>
7197
7198 * ppcobsd-nat.c: Include "obsd-nat.h".
7199 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
7200 add_target.
7201 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
7202
30a1e6cc
SDJ
72032014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
7204
7205 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
7206 and 16-bit signed and unsigned arguments. Update comment.
7207 (stap_parse_probe_arguments): Extend code to handle such
7208 arguments. Use warning instead of complaint to notify about
7209 unrecognized bitness.
7210
f33da99a
SDJ
72112014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
7212
7213 PR breakpoints/16889
7214 * stap-probe.c (stap_parse_probe_arguments): Simplify
7215 check for non-prefixed probes (i.e., probes whose
7216 arguments do not start with "N@"). Always set the
7217 argument type to a sane value.
7218
95cf3b38
DT
72192014-05-01 David Taylor <dtaylor@emc.com>
7220
7221 * remote.c (compare_sections_command): Add -r option to compare
7222 all loadable read-only sections.
7223
1cfdf534
SC
72242014-04-30 Siva Chandra Reddy <sivachandra@google.com>
7225
7226 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
7227 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
7228 Update all callers.
7229 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
7230 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
7231 Remove unused CORE_ADDR argument. Update all callers.
7232
ca4f7f8b
PA
72332014-04-29 Pedro Alves <palves@redhat.com>
7234
7235 * remote.c (struct packet_config) <detect>: Extend comment.
7236 (add_packet_config_cmd): Don't set the config's detect or support
7237 fields here.
7238 (init_all_packet_configs): Also initialize the config's 'detect'
7239 field.
7240 (reset_all_packet_configs_support): New function.
7241 (remote_open_1): Call reset_all_packet_configs_support instead of
7242 init_all_packet_configs.
7243 (_initialize_remote): Initialize all packet configs. Assert that
7244 all packets have an associated command, except a few known
7245 outliers.
7246
11c1ba78
JB
72472014-04-28 Joel Brobecker <brobecker@adacore.com>
7248
7249 * dwarf2read.c (read_subrange_type): Handle dynamic
7250 DW_AT_lower_bound attributes.
7251
8739bc53
JB
72522014-04-28 Joel Brobecker <brobecker@adacore.com>
7253
7254 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
7255 dynamic bounds before computing its upper bound.
7256 (ada_discrete_type_low_bound): Same as above with the lower bound.
7257
6f8a3220
JB
72582014-04-28 Joel Brobecker <brobecker@adacore.com>
7259
7260 * dwarf2read.c (is_dynamic_type): Return true for dynamic
7261 range types. Adjust the array handling implementation to
7262 take advantage of this change.
7263 (resolve_dynamic_range): New function, mostly extracted from
7264 resolve_dynamic_bounds.
7265 (resolve_dynamic_array): New function, mostly extracted from
7266 resolve_dynamic_bounds.
7267 (resolve_dynamic_bounds): Delete.
7268 (resolve_dynamic_type): Reimplement. Add handling of
7269 TYPE_CODE_RANGE types.
7270
4d072ce4
JB
72712014-04-28 Joel Brobecker <brobecker@adacore.com>
7272
7273 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
7274 handling of parallel ___XA types.
7275
52865325
JB
72762014-04-28 Joel Brobecker <brobecker@adacore.com>
7277
7278 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
7279 unnecessary second call to static_unwrap_type.
7280
433e77fa
HZ
72812014-04-27 Hui Zhu <hui@codesourcery.com>
7282
7283 * stack.c (print_frame_info): Call do_gdb_disassembly with
7284 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
7285
b51a69ee
DE
72862014-04-26 Doug Evans <xdje42@gmail.com>
7287
7288 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
7289
7ae1a6a6
PA
72902014-04-25 Pedro Alves <palves@redhat.com>
7291
7292 PR server/16255
7293 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
7294 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
7295 and newline from built string.
7296 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
7297 (linux_ptrace_attach_fail_reason): ... this.
7298 * linux-nat.c (linux_nat_attach): Adjust to use
7299 linux_ptrace_attach_fail_reason.
7300
4082afcc
PA
73012014-04-25 Pedro Alves <palves@redhat.com>
7302
7303 * remote.c (struct remote_state): Remove multi_process_aware,
7304 non_stop_aware, cond_tracepoints, cond_breakpoints,
7305 breakpoint_commands, fast_tracepoints, static_tracepoints,
7306 install_in_trace, disconnected_tracing,
7307 enable_disable_tracepoints, string_tracing, and
7308 augmented_libraries_svr4_read fields.
7309 (remote_multi_process_p): Move further below in the file.
7310 (struct packet_config): Add comments.
7311 (update_packet_config): Delete function.
7312 (show_packet_config_cmd): Use packet_config_support.
7313 (add_packet_config_cmd): Use NULL as set callback.
7314 (packet_ok): "set remote foo-packet"-style commands no longer
7315 change config->supported -- adjust.
7316 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
7317 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
7318 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
7319 (PACKET_QNonStop, PACKET_multiprocess_feature)
7320 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
7321 (PACKET_DisconnectedTracing_feature)
7322 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
7323 (set_remote_protocol_packet_cmd): Delete function.
7324 (packet_config_support, packet_support): New functions.
7325 (set_remote_protocol_Z_packet_cmd): Don't call
7326 update_packet_config.
7327 (remote_query_attached, remote_pass_signals)
7328 (remote_program_signals, remote_threads_info)
7329 (remote_threads_extra_info, remote_start_remote): Use
7330 packet_support.
7331 (remote_start_remote): Use packet_config_support and
7332 packet_support.
7333 (init_all_packet_configs): Set all packets to unknown support,
7334 instead of calling update_packet_config.
7335 (remote_check_symbols): Use packet_support.
7336 (remote_supported_packet): Unconditionally set the packet config's
7337 support status.
7338 (remote_multi_process_feature, remote_non_stop_feature)
7339 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
7340 (remote_breakpoint_commands_feature)
7341 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
7342 (remote_install_in_trace_feature)
7343 (remote_disconnected_tracing_feature)
7344 (remote_enable_disable_tracepoint_feature)
7345 (remote_string_tracing_feature)
7346 (remote_augmented_libraries_svr4_read_feature): Delete functions.
7347 (remote_protocol_features): Adjust to use remote_supported_packet
7348 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
7349 "ConditionalTracepoints", "ConditionalBreakpoints",
7350 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
7351 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
7352 "EnableDisableTracepoints", and "tracenz".
7353 (remote_query_supported): Use packet_support.
7354 (remote_open_1): Adjust.
7355 (extended_remote_attach_1): Use packet_support. Switch on the
7356 result of packet_ok instead of checking whether the packet ended
7357 up disabled.
7358 (remote_vcont_resume): Use packet_support.
7359 (remote_resume, remote_stop_ns, fetch_register_using_p)
7360 (remote_prepare_to_store, store_register_using_P)
7361 (check_binary_download, remote_write_bytes): Use packet_support.
7362 (remote_vkill): Use packet_support. Switch on the result of
7363 packet_ok instead of checking whether the packet ended up
7364 disabled.
7365 (extended_remote_supports_disable_randomization): Use
7366 packet_support.
7367 (extended_remote_run): Switch on the result of packet_ok instead
7368 of checking whether the packet ended up disabled.
7369 (remote_insert_breakpoint, remote_remove_breakpoint)
7370 (remote_insert_watchpoint, remote_remove_watchpoint)
7371 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
7372 packet_support.
7373 (remote_search_memory): Use packet_config_support.
7374 (remote_get_thread_local_address, remote_get_tib_address)
7375 (remote_hostio_send_command, remote_can_execute_reverse): Use
7376 packet_support.
7377 (remote_supports_cond_tracepoints)
7378 (remote_supports_cond_breakpoints)
7379 (remote_supports_fast_tracepoints)
7380 (remote_supports_static_tracepoints)
7381 (remote_supports_install_in_trace)
7382 (remote_supports_enable_disable_tracepoint)
7383 (remote_supports_string_tracing)
7384 (remote_can_run_breakpoint_commands): Rewrite, checking whether
7385 the packet config says the feature is enabled or disabled.
7386 (remote_download_tracepoint, remote_trace_set_readonly_regions)
7387 (remote_get_trace_status): Use packet_support.
7388 (remote_set_disconnected_tracing): Adjust to check whether the
7389 feature is enabled with packet_support.
7390 (remote_set_trace_buffer_size, remote_use_agent)
7391 (remote_can_use_agent, remote_supports_btrace): Use
7392 packet_support.
7393 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
7394 Use packet_config_support.
7395 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
7396 the packet config says the feature is enabled or disabled.
7397 (set_range_stepping): Use packet_support.
7398
bdb52a22
TT
73992014-04-25 Tom Tromey <tromey@redhat.com>
7400
7401 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
7402 argument.
7403
e9475ead
SA
74042014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
7405
7406 * NEWS: Mention support for C99 variable length arrays.
7407
82eacd52
JB
74082014-04-24 Joel Brobecker <brobecker@adacore.com>
7409
7410 * ada-lang.c (standard_exc): Expand introductory comment.
7411
01f9f808
MS
74122014-04-24 Michael Sturm <michael.sturm@mintel.com>
7413 Walfred Tedeschi <walfred.tedeschi@intel.com>
7414
7415 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
7416 AVX512 registers.
7417 (amd64_linux_read_description): Add code to handle AVX512 xstate
7418 mask and return respective tdesc.
7419 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
7420 and features/i386/x32-avx512-linux.c.
7421 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
7422 (amd64_linux_core_read_description): Add code to handle AVX512
7423 xstate mask and return respective tdesc.
7424 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
7425 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
7426 calculation.
7427 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
7428 (tdesc_amd64_avx512_linux): New prototype.
7429 (tdesc_x32_avx512_linux): Likewise.
7430 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
7431 features/i386/x32-avx512.c.
7432 (amd64_ymm_avx512_names): New register names for pseudo
7433 registers YMM16-31.
7434 (amd64_ymmh_avx512_names): New register names for raw registers
7435 YMMH16-31.
7436 (amd64_k_names): New register names for K registers.
7437 (amd64_zmmh_names): New register names for ZMM raw registers.
7438 (amd64_zmm_names): New registers names for ZMM pseudo registers.
7439 (amd64_xmm_avx512_names): New register names for XMM16-31
7440 registers.
7441 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
7442 registers.
7443 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
7444 if feature is present.
7445 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
7446 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
7447 (AMD64_NUM_REGS): Adjust to new number of registers.
7448 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
7449 registers supplied via XSTATE by AVX512 registers.
7450 (i386_linux_read_description): Add case for AVX512.
7451 * i386-linux-tdep.c: Include i386-avx512-linux.c.
7452 (i386_linux_gregset_reg_offset): Add AVX512 registers.
7453 (i386_linux_core_read_description): Add case for AVX512.
7454 (i386_linux_init_abi): Install supported register note section
7455 for AVX512.
7456 (_initialize_i386_linux_tdep): Add call to tdesc init function for
7457 AVX512.
7458 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
7459 registers to be number of zmm7h + 1.
7460 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
7461 * i386-tdep.c: Include features/i386/i386-avx512.c.
7462 (i386_zmm_names): Add ZMM pseudo register names array.
7463 (i386_zmmh_names): Add ZMM raw register names array.
7464 (i386_k_names): Add K raw register names array.
7465 (num_lower_zmm_regs): Add constant for the number of lower ZMM
7466 registers. AVX512 has 16 more ZMM registers than there are YMM
7467 registers.
7468 (i386_zmmh_regnum_p): Add function to look up register number of
7469 ZMM raw registers.
7470 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
7471 (i386_k_regnum_p): Likewise for K raw registers.
7472 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
7473 registers added by AVX512.
7474 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
7475 registers added by AVX512.
7476 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
7477 added by AVX512.
7478 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
7479 (i386_pseudo_register_name): Add ZMM pseudo registers.
7480 (i386_zmm_type): Construct and return vector registers type for ZMM
7481 registers.
7482 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
7483 ZMM0-31 pseudo registers and K registers.
7484 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
7485 and YMM16-31 registers from register cache.
7486 (i386_pseudo_register_write): Add code to write K, ZMM and
7487 YMM16-31 registers.
7488 (i386_register_reggroup_p): Add code to include/exclude AVX512
7489 registers in/from respective register groups.
7490 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
7491 registers if feature is present in xcr0.
7492 (i386_gdbarch_init): Add code to initialize AVX512 feature
7493 variables in tdep structure, wire in pseudo registers and call
7494 initialize_tdesc_i386_avx512.
7495 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
7496 variables.
7497 (i386_regnum): Add AVX512 registers.
7498 (I386_SSE_NUM_REGS): New define for number of SSE registers.
7499 (I386_AVX_NUM_REGS): Likewise for AVX registers.
7500 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
7501 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
7502 512 bits wide.
7503 (i386_xmm_avx512_regnum_p): New prototype for register look up.
7504 (i386_ymm_avx512_regnum_p): Likewise.
7505 (i386_k_regnum_p): Likewise.
7506 (i386_zmm_regnum_p): Likewise.
7507 (i386_zmmh_regnum_p): Likewise.
7508 * i387-tdep.c : Update year in copyright notice.
7509 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
7510 XSAVE buffer.
7511 (XSAVE_YMM_AVX512_ADDR): New macro.
7512 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
7513 XSAVE buffer.
7514 (XSAVE_XMM_AVX512_ADDR): New macro.
7515 (xsave_avx512_k_offset): New table for K register offsets in
7516 XSAVE buffer.
7517 (XSAVE_AVX512_K_ADDR): New macro.
7518 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
7519 in XSAVE buffer.
7520 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
7521 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
7522 buffer.
7523 (i387_collect_xsave): Add code to collect AVX512 registers from
7524 XSAVE buffer.
7525 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
7526 of XMM16-31 registers.
7527 (I387_NUM_K_REGS): New define for number of K registers.
7528 (I387_K0_REGNUM): New define for K0 register number.
7529 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
7530 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
7531 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
7532 registers.
7533 (I387_YMM16H_REGNUM): New define for YMM16H register number.
7534 (I387_XMM16_REGNUM): New define for XMM16 register number.
7535 (I387_YMM0_REGNUM): New define for YMM0 register number.
7536 (I387_KEND_REGNUM): New define for last K register number.
7537 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
7538 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
7539 number.
7540 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
7541 number.
7542 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
7543 size.
7544 * features/Makefile: Add AVX512 related files.
7545 * features/i386/32bit-avx512.xml: New file.
7546 * features/i386/64bit-avx512.xml: Likewise.
7547 * features/i386/amd64-avx512-linux.c: Likewise.
7548 * features/i386/amd64-avx512-linux.xml: Likewise.
7549 * features/i386/amd64-avx512.c: Likewise.
7550 * features/i386/amd64-avx512.xml: Likewise.
7551 * features/i386/i386-avx512-linux.c: Likewise.
7552 * features/i386/i386-avx512-linux.xml: Likewise.
7553 * features/i386/i386-avx512.c: Likewise.
7554 * features/i386/i386-avx512.xml: Likewise.
7555 * features/i386/x32-avx512-linux.c: Likewise.
7556 * features/i386/x32-avx512-linux.xml: Likewise.
7557 * features/i386/x32-avx512.c: Likewise.
7558 * features/i386/x32-avx512.xml: Likewise.
7559 * regformats/i386/amd64-avx512-linux.dat: New file.
7560 * regformats/i386/amd64-avx512.dat: Likewise.
7561 * regformats/i386/i386-avx512-linux.dat: Likewise.
7562 * regformats/i386/i386-avx512.dat: Likewise.
7563 * regformats/i386/x32-avx512-linux.dat: Likewise.
7564 * regformats/i386/x32-avx512.dat: Likewise.
7565 * NEWS: Add note about new support for AVX512.
7566
7567
08351840
PA
75682014-04-23 Pedro Alves <palves@redhat.com>
7569
7570 * breakpoint.c (insert_bp_location): Tolerate errors if the
7571 breakpoint is set in a user-loaded objfile.
7572 (remove_breakpoint_1): Likewise. Also tolerate errors if the
7573 location is marked shlib_disabled. If the breakpoint is set in a
7574 user-loaded objfile is a GDB-side memory breakpoint, validate it
7575 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
7576 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
7577 flag.
7578 * mem-break.c (memory_validate_breakpoint): New function.
7579 * objfiles.c (userloaded_objfile_contains_address_p): New
7580 function.
7581 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
7582 * target.h (memory_validate_breakpoint): New declaration.
7583
076855f9
PA
75842014-04-23 Pedro Alves <palves@redhat.com>
7585
7586 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
7587 the breakpoint is set in a shared library, only suppress
7588 errors for software breakpoints, not hardware breakpoints.
7589
483805cf
PA
75902014-04-22 Pedro Alves <palves@redhat.com>
7591
7592 * infrun.c (schedlock_applies): New function, factored out from
7593 find_thread_needs_step_over.
7594 (find_thread_needs_step_over): Use it.
7595 (switch_back_to_stepped_thread): Always clear trap_expected if the
7596 step over is finished. Return early if scheduler locking applies.
7597 Look for the stepping thread and a potential step-over thread with
7598 a single loop.
7599 (currently_stepping_or_nexting_callback): Delete.
7600
a75fef0e
NC
76012014-04-22 Nick Clifton <nickc@redhat.com>
7602
7603 * NEWS: Mention that ARM sim now supports tracing.
7604
48b6e87e
YQ
76052014-04-22 Yao Qi <yao@codesourcery.com>
7606
7607 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
7608 to ...
7609 * tracefile.c (tracefile_fetch_registers): ... it. New
7610 function.
7611 * tracefile.h (tracefile_fetch_registers): Declare.
7612 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
7613 tracefile_fetch_registers.
7614
17617f2d
EZ
76152014-04-19 Eli Zaretskii <eliz@gnu.org>
7616
7617 PR gdb/14018
7618 * windows-nat.c (thread_rec): Don't display a warning when
7619 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
7620 fails for any reason, set th->suspended to -1, so that we don't
7621 try to resume such a thread. Also, don't return NULL in these
7622 cases, to avoid completely ruin the session due to "PC register is
7623 not available" error.
7624 (do_windows_fetch_inferior_registers): Check errors in
7625 GetThreadContext call.
7626 (windows_continue): Accept an additional argument KILLED; if not
7627 zero, ignore errors in the SetThreadContext call, since the
7628 inferior was killed and is shutting down.
7629 (windows_resume, get_windows_debug_event)
7630 (windows_create_inferior, windows_mourn_inferior)
7631 (windows_kill_inferior): All callers of windows_continue changed
7632 to adjust to its new calling sequence.
7633
5723a6fd
YQ
76342014-04-19 Yao Qi <yao@codesourcery.com>
7635
7636 * ctf.c (ctf_open): Call post_create_inferior.
7637
614d5099
YQ
76382014-04-19 Yao Qi <yao@codesourcery.com>
7639
7640 * ctf.c (handle_id): New static variable.
7641 (ctf_open_dir): Get handle_id from bt_context_add_trace return
7642 value. Get the declaration of event "register" and get length
7643 of field "contents".
7644
dac3e710
YQ
76452014-04-19 Yao Qi <yao@codesourcery.com>
7646
7647 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
7648
2bca57ba
SC
76492014-04-18 Siva Chandra Reddy <sivachandra@google.com>
7650
7651 * valops.c (oload_method_static): Remove unnecessary argument
7652 METHOD. Update all callers.
7653
51d48146
PA
76542014-04-18 Pedro alves <palves@redhat.com>
7655 Tom Tromey <tromey@redhat.com>
7656
7657 PR backtrace/15558
7658 * frame.c (get_prev_frame_1): Rename to ...
7659 (get_prev_frame_always): ... this, and make extern. Adjust.
7660 (skip_artificial_frames): Use get_prev_frame_always.
7661 (frame_unwind_caller_id, frame_pop, get_prev_frame)
7662 (get_frame_unwind_stop_reason): Adjust to rename.
7663 * frame.h (get_prev_frame_always): Declare.
7664 * inline-frame.c: Include frame.h.
7665 (inline_frame_this_id): Use get_prev_frame_always.
7666
1bdad2e0
TG
76672014-04-18 Tristan Gingold <gingold@adacore.com>
7668
7669 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
7670 code by using bfd_mach_o_get_base_address.
7671
7ce16bd4
UW
76722014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
7673
7674 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
7675 (spu_ax_pseudo_register_collect): New function.
7676 (spu_ax_pseudo_register_push_stack): Likewise.
7677 (spu_dwarf_reg_to_regnum): Likewise.
7678 (spu_gdbarch_init): Install them. Append DWARF unwinders.
7679
2ed3c037
UW
76802014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
7681
7682 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
7683 Replace FRAME argument with FRAME_ID.
7684 * gdbarch.c, gdbarch.h: Regenerate.
7685 * findvar.c (default_value_from_register): Add GDBARCH argument;
7686 replace FRAME by FRAME_ID. No longer call get_frame_id.
7687 (value_from_register): Update call to gdbarch_value_from_register.
7688 * value.h (default_value_from_register): Update prototype.
7689 * s390-linux-tdep.c (s390_value_from_register): Update interface
7690 and call to default_value_from_register.
7691 * spu-tdep.c (spu_value_from_register): Likewise.
7692
7693 * findvar.c (address_from_register): Remove TYPE argument.
7694 Do not call value_from_register; use gdbarch_value_from_register
7695 with null_frame_id instead.
7696 * value.h (address_from_register): Update prototype.
7697 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
7698 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
7699 address_from_register interface change.
7700
71e50e83
YQ
77012014-04-17 Yao Qi <yao@codesourcery.com>
7702
7703 * gdbtypes.h: Update comments to link to types and macros'
7704 definitions.
7705
7a23c549
SC
77062014-04-16 Siva Chandra Reddy <sivachandra@google.com>
7707
7708 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
7709
22869d73
KS
77102014-04-16 Keith Seitz <keiths@redhat.com>
7711
7712 PR gdb/15827
7713 * dwarf2read.c (skip_one_die): Check that all relative-offset
7714 sibling DIEs fall within range of the current reader's buffer.
7715 (read_partial_die): Likewise.
7716
c4f87ca6
KS
77172014-04-16 Keith Seitz <keiths@redhat.com>
7718
7719 PR c++/16597
7720 * cp-namespace.c (lookup_symbol_file): If the type name of
7721 `this' is NULL, return immediately.
7722
b50c8614
KS
77232014-04-14 Keith Seitz <keiths@redhat.com>
7724
7725 PR c++/16253
7726 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
7727 from symbol_matches_domain in symtab.c. All local callers
7728 of symbol_matches_domain updated.
7729 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
7730 search STRUCT_DOMAIN.
7731 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
7732 independently. standard_lookup will do that automatically.
7733 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
7734 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7735 (cp_lookup_symbol_in_namespace): Likewise.
7736 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
7737 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
7738 may return a STRUCT_DOMAIN match.
7739 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
7740 * cp-support.c: Include language.h.
7741 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
7742 VAR_DOMAIN.
7743 * psymtab.c (match_partial_symbol): Compare the requested
7744 domain with the symbol's domain directly.
7745 (lookup_partial_symbol): Likewise.
7746 * symtab.c (lookup_symbol_in_language): Explain when/why
7747 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7748 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
7749 appropriate languages.
7750 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
7751 and moved to ada-lang.c
7752 (lookup_block_symbol): Explain that this function only returns
7753 symbol matching the requested DOMAIN.
7754 Compare the requested domain with the symbol's domain directly.
7755 (iterate_over_symbols): Compare the requested domain with the
7756 symbol's domain directly.
7757 * symtab.h (symbol_matches_domain): Remove.
7758
3d567982
TT
77592014-04-14 Tom Tromey <tromey@redhat.com>
7760
7761 PR c++/15246:
7762 * c-exp.y (type_aggregate_p): New function.
7763 (qualified_name, classify_inner_name): Use it.
7764 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
7765 and TYPE_TARGET_TYPE of an enum type.
7766 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
7767 an enum type.
7768 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
7769 handle TYPE_DECLARED_CLASS.
7770 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
7771 types.
7772 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
7773 * valops.c (enum_constant_from_type): New function.
7774 (value_aggregate_elt): Use it.
7775 * cp-namespace.c (cp_lookup_nested_symbol): Handle
7776 TYPE_CODE_ENUM.
7777
c848d642
TT
77782014-04-14 Tom Tromey <tromey@redhat.com>
7779
7780 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
7781 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
7782 const.
7783 * value.h (value_aggregate_elt): Update.
7784
0626fc76
TT
77852014-04-14 Tom Tromey <tromey@redhat.com>
7786
7787 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
7788
5ecaaa66
SA
77892014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7790
7791 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7792 (evaluate_subexp_standard): Pass noside argument.
7793 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7794 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7795 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7796 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7797 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7798
1612e0c0
SA
77992014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7800
7801 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7802 points to a constant blob.
7803
c451ebe5
SA
78042014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7805
7806 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7807 property and store it as the high bound and flag the range accordingly.
7808 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7809 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7810 * gdbtypes.h (enum range_flags): New enum.
7811 (struct range_bounds): Add flags member.
7812
1d42e4c4
SA
78132014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7814
7815 * c-typeprint.c (c_type_print_varspec_suffix): Added
7816 check for not yet resolved high bound. If unresolved, print
7817 "variable length" string to the console instead of random
7818 length.
7819
9f1f738a
SA
78202014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7821
7822 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
7823 value.
7824 (ada_template_to_fixed_record_type_1): Likewise.
7825 (ada_to_fixed_type_1): Likewise.
7826 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7827 (cp_print_value): Likewise.
7828 * d-valprint.c (dynamic_array_type): Likewise.
7829 * findvar.c (address_of_variable): Likewise.
7830 * jv-valprint.c (java_value_print): Likewise.
7831 * valops.c (value_ind): Likewise.
7832 * value.c (coerce_ref): Likewise.
7833
3c8452d4
SA
78342014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7835
7836 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7837 value and retrieve the dynamic type size.
7838
4ad88275
SA
78392014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7840
7841 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7842 passed to sizeof is dynamic evaluate the argument to compute the length.
7843
80180f79
SA
78442014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7845 Joel Brobecker <brobecker@adacore.com>
7846
7847 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7848 (dwarf2_evaluate_property): New function.
7849 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7850 * dwarf2read.c (attr_to_dynamic_prop): New function.
7851 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7852 attribute.
7853 * gdbtypes.c: Include dwarf2loc.h.
7854 (is_dynamic_type): New function.
7855 (resolve_dynamic_type): New function.
7856 (resolve_dynamic_bounds): New function.
7857 (get_type_length): New function.
7858 (check_typedef): Use get_type_length to compute type length.
7859 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7860 (TYPE_LOW_BOUND_KIND): New macro.
7861 (is_dynamic_type): New function prototype.
7862 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7863 to resolve dynamic properties of the type. Update comment.
7864 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7865
a1556843
RH
78662014-04-14 Richard Henderson <rth@redhat.com>
7867
7868 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
7869
0be03e84
DE
78702014-04-12 Siva Chandra Reddy <sivachandra@google.com>
7871 Doug Evans <xdje42@gmail.com>
7872
7873 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
7874 dereference TYPE_CODE_REF values.
7875
6b662e19
JB
78762014-04-11 Joel Brobecker <brobecker@adacore.com>
7877
7878 Revert the following changes due to regressions:
7879
7880 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7881 (dwarf2_evaluate_property): New function.
7882 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7883 * dwarf2read.c (attr_to_dynamic_prop): New function.
7884 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7885 attribute.
7886 * gdbtypes.c: Include dwarf2loc.h.
7887 (is_dynamic_type): New function.
7888 (resolve_dynamic_type): New function.
7889 (resolve_dynamic_bounds): New function.
7890 (get_type_length): New function.
7891 (check_typedef): Use get_type_length to compute type length.
7892 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7893 (TYPE_LOW_BOUND_KIND): New macro.
7894 (is_dynamic_type): New function prototype.
7895 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7896 to resolve dynamic properties of the type. Update comment.
7897 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7898
7899 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7900 passed to sizeof is dynamic evaluate the argument to compute the length.
7901
7902 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7903 value and retrieve the dynamic type size.
7904
7905 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
7906 (ada_template_to_fixed_record_type_1): Likewise.
7907 (ada_to_fixed_type_1): Likewise.
7908 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7909 (cp_print_value): Likewise.
7910 * d-valprint.c (dynamic_array_type): Likewise.
7911 * eval.c (evaluate_subexp_with_coercion): Likewise.
7912 * findvar.c (address_of_variable): Likewise.
7913 * jv-valprint.c (java_value_print): Likewise.
7914 * valops.c (value_ind): Likewise.
7915 * value.c (coerce_ref): Likewise.
7916
7917 * c-typeprint.c (c_type_print_varspec_suffix): Added
7918 check for not yet resolved high bound. If unresolved, print
7919 "variable length" string to the console instead of random
7920 length.
7921
7922 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7923 property and store it as the high bound and flag the range accordingly.
7924 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7925 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7926 * gdbtypes.h (enum range_flags): New enum.
7927 (struct range_bounds): Add flags member.
7928
7929 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7930 points to a constant blob.
7931
7932 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7933 (evaluate_subexp_standard): Pass noside argument.
7934 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7935 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7936 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7937 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7938 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7939
245a5f0b
KS
79402014-04-11 Keith Seitz <keiths@redhat.com>
7941
7942 PR c++/16675
7943 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
7944 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
7945 reference types.
7946
3bce8237
SA
79472014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7948
7949 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7950 (evaluate_subexp_standard): Pass noside argument.
7951 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7952 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7953 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7954 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7955 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7956
92b09522
SA
79572014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7958
7959 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7960 points to a constant blob.
7961
e1969afb
SA
79622014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7963
7964 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7965 property and store it as the high bound and flag the range accordingly.
7966 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7967 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7968 * gdbtypes.h (enum range_flags): New enum.
7969 (struct range_bounds): Add flags member.
7970
b86138fb
SA
79712014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7972
7973 * c-typeprint.c (c_type_print_varspec_suffix): Added
7974 check for not yet resolved high bound. If unresolved, print
7975 "variable length" string to the console instead of random
7976 length.
7977
bcd629a4
SA
79782014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7979
7980 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
7981 (ada_template_to_fixed_record_type_1): Likewise.
7982 (ada_to_fixed_type_1): Likewise.
7983 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7984 (cp_print_value): Likewise.
7985 * d-valprint.c (dynamic_array_type): Likewise.
7986 * eval.c (evaluate_subexp_with_coercion): Likewise.
7987 * findvar.c (address_of_variable): Likewise.
7988 * jv-valprint.c (java_value_print): Likewise.
7989 * valops.c (value_ind): Likewise.
7990 * value.c (coerce_ref): Likewise.
7991
04b19544
SA
79922014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7993
7994 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7995 value and retrieve the dynamic type size.
7996
26cb189f
SA
79972014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7998
7999 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8000 passed to sizeof is dynamic evaluate the argument to compute the length.
8001
37c1ab67
SA
80022014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8003
8004 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8005 (dwarf2_evaluate_property): New function.
8006 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8007 * dwarf2read.c (attr_to_dynamic_prop): New function.
8008 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8009 attribute.
8010 * gdbtypes.c: Include dwarf2loc.h.
8011 (is_dynamic_type): New function.
8012 (resolve_dynamic_type): New function.
8013 (resolve_dynamic_bounds): New function.
8014 (get_type_length): New function.
8015 (check_typedef): Use get_type_length to compute type length.
8016 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8017 (TYPE_LOW_BOUND_KIND): New macro.
8018 (is_dynamic_type): New function prototype.
8019 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8020 to resolve dynamic properties of the type. Update comment.
8021 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8022
729efb13
SA
80232014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8024
8025 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
8026 declaring high/low bounds and change uses accordingly. Call
8027 create_range_type instead of create_static_range_type.
8028 * gdbtypes.c (create_range_type): New function.
8029 (create_range_type): Convert bounds into struct bound_prop and pass
8030 them to create_range_type.
8031 * gdbtypes.h (struct bound_prop): New struct.
8032 (create_range_type): New function prototype.
8033 (struct range_bounds): Use struct bound_prop instead of LONGEST for
8034 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
8035 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
8036 part of the bound.
8037 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
8038
0c9c3474
SA
80392014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8040
8041 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
8042 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
8043 * ada-lang.c: All uses of create_range_type updated.
8044 * coffread.c: All uses of create_range_type updated.
8045 * dwarf2read.c: All uses of create_range_type updated.
8046 * f-exp.y: All uses of create_range_type updated.
8047 * m2-valprint.c: All uses of create_range_type updated.
8048 * mdebugread.c: All uses of create_range_type updated.
8049 * stabsread.c: All uses of create_range_type updated.
8050 * valops.c: All uses of create_range_type updated.
8051 * valprint.c: All uses of create_range_type updated.
8052
9d497a19
PA
80532014-04-10 Pedro Alves <palves@redhat.com>
8054
8055 * breakpoint.c (single_step_breakpoints)
8056 (single_step_gdbarch): Move up in the file.
8057 (one_breakpoint_xfer_memory): New function, factored out from ...
8058 (breakpoint_xfer_memory): ... here. Also process single-step
8059 breakpoints.
8060
15a9128a
TG
80612014-04-09 Tristan Gingold <gingold@adacore.com>
8062
8063 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
8064 comments.
8065 (darwin_decode_exception_message): Free port only after use.
8066
9c97a070
PL
80672014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
8068
8069 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
8070 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
8071 when setting the size of call_length.
8072
7af389b8
SC
80732014-04-07 Siva Chandra Reddy <sivachandra@google.com>
8074
8075 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
8076 dereference TYPE_CODE_REF values.
8077
86ad98c3
JB
80782014-04-07 Joel Brobecker <brobecker@adacore.com>
8079
8080 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
8081 end of warning message.
8082
b0aeadb3
DE
80832014-04-03 Doug Evans <dje@google.com>
8084
8085 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
8086 of stub_comp_unit_die, stub_comp_dir is non-NULL.
8087
5979d6b6
AM
80882014-04-02 Alan Modra <amodra@gmail.com>
8089
8090 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
8091 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
8092 (struct symbol_file_add_from_memory_args): Add size field.
8093 (find_vdso_size): New function.
8094 (add_vsyscall_page): Attempt to find vdso size.
8095
0d60c288
DE
80962014-04-01 Doug Evans <dje@google.com>
8097
8098 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
8099
a41f2563
TG
81002014-04-01 Tristan Gingold <gingold@adacore.com>
8101
8102 * darwin-nat.c (darwin_encode_reply): Add prototype.
8103 (darwin_decode_exception_message): Reply to unknown inferiors.
8104 (darwin_decode_message): Handle message by id. Ignore message
8105 to unknown inferior.
8106 (darwin_wait): Discard unknown messages, add debug trace.
8107
11a865c8
DE
81082014-03-31 Doug Evans <dje@google.com>
8109
8110 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
8111 comp_dir_string.
8112
770e7fc7
DE
81132014-03-31 Doug Evans <dje@google.com>
8114
8115 New option "set print symbol-loading".
8116 * NEWS: Mention it.
8117 * solib.c (solib_read_symbols): Only print symbol loading messages
8118 if requested.
8119 (solib_add): If symbol loading is in "brief" mode, notify user
8120 symbols are being loaded.
8121 (reload_shared_libraries_1): Ditto.
8122 * symfile.c (print_symbol_loading_off): New static global.
8123 (print_symbol_loading_brief): New static global.
8124 (print_symbol_loading_full): New static global.
8125 (print_symbol_loading_enums): New static global.
8126 (print_symbol_loading): New static global.
8127 (print_symbol_loading_p): New function.
8128 (symbol_file_add_with_addrs): Only print symbol loading messages
8129 if requested.
8130 (_initialize_symfile): Register "print symbol-loading" set/show
8131 command.
8132 * symfile.h (print_symbol_loading_p): Declare.
8133
c32c64b7
DE
81342014-03-30 Doug Evans <xdje42@gmail.com>
8135
8136 * infrun.c (set_last_target_status): New function.
8137 (handle_inferior_event): Call it.
8138
7c0bc051
DE
81392014-03-30 Doug Evans <xdje42@gmail.com>
8140
8141 * inferior.h (enum stop_kind): Improve comment.
8142
8776cfe9
JB
81432014-03-28 Joel Brobecker <brobecker@adacore.com>
8144
8145 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
8146 a reference, strip the reference layer before calling
8147 the lang_ops value_has_mutated callback.
8148
410a0ff2
SDJ
81492014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
8150
8151 Remove some globals from our parser.
8152 * language.c (unk_lang_parser): Add "struct parser_state"
8153 argument.
8154 * language.h (struct language_defn) <la_parser>: Likewise.
8155 * parse.c (expout, expout_size, expout_ptr): Remove variables.
8156 (initialize_expout): Add "struct parser_state" argument.
8157 Rewrite function to use the parser state.
8158 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
8159 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
8160 write_exp_elt_longcst, write_exp_elt_dblcst,
8161 write_exp_elt_decfloatcst, write_exp_elt_type,
8162 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
8163 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
8164 write_dollar_variable): Likewise.
8165 (parse_exp_in_context_1): Use parser state.
8166 (insert_type_address_space): Add "struct parser_state" argument.
8167 Use parser state.
8168 (increase_expout_size): New function.
8169 * parser-defs.h: Forward declare "struct language_defn" and
8170 "struct parser_state".
8171 (expout, expout_size, expout_ptr): Remove extern declarations.
8172 (parse_gdbarch, parse_language): Rewrite macro declarations to
8173 accept the parser state.
8174 (struct parser_state): New struct.
8175 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
8176 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
8177 write_exp_elt_decfloatcst, write_exp_elt_type,
8178 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
8179 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
8180 write_exp_msymbol, write_dollar_variable,
8181 mark_struct_expression, insert_type_address_space): Add "struct
8182 parser_state" argument.
8183 (increase_expout_size): New function.
8184 * utils.c (do_clear_parser_state): New function.
8185 (make_cleanup_clear_parser_state): Likewise.
8186 * utils.h (make_cleanup_clear_parser_state): New function
8187 prototype.
8188 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
8189 Update calls to write_exp* in order to pass the parser state.
8190 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
8191 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
8192 (i386_stap_parse_special_token_three_arg_disp): Likewise.
8193 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
8194 * stap-probe.c (stap_parse_register_operand): Likewise.
8195 (stap_parse_single_operand): Likewise.
8196 (stap_parse_argument_1): Likewise.
8197 (stap_parse_argument): Use parser state.
8198 * stap-probe.h: Include "parser-defs.h".
8199 (struct stap_parse_info) <pstate>: New field.
8200 * c-exp.y (parse_type): Rewrite to use parser state.
8201 (yyparse): Redefine to c_parse_internal.
8202 (pstate): New global variable.
8203 (parse_number): Add "struct parser_state" argument.
8204 (write_destructor_name): Likewise.
8205 (type_exp): Update calls to write_exp* and similars in order to
8206 use parser state.
8207 (exp1, exp, variable, qualified_name, space_identifier,
8208 typename, typebase): Likewise.
8209 (write_destructor_name, parse_number, lex_one_token,
8210 classify_name, classify_inner_name, c_parse): Add "struct
8211 parser_state" argument. Update function to use parser state.
8212 * c-lang.h: Forward declare "struct parser_state".
8213 (c_parse): Add "struct parser_state" argument.
8214 * ada-exp.y (parse_type): Rewrite macro to use parser state.
8215 (yyparse): Redefine macro to ada_parse_internal.
8216 (pstate): New variable.
8217 (write_int, write_object_renaming, write_var_or_type,
8218 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
8219 type_int, type_long, type_long_long, type_float, type_double,
8220 type_long_double, type_char, type_boolean, type_system_address):
8221 Add "struct parser_state" argument.
8222 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
8223 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
8224 var_or_type, aggregate, aggregate_component_list,
8225 positional_list, others, component_group,
8226 component_associations): Update calls to write_exp* and similar
8227 functions in order to use parser state.
8228 (ada_parse, write_var_from_sym, write_int,
8229 write_exp_op_with_string, write_object_renaming,
8230 find_primitive_type, write_selectors, write_ambiguous_var,
8231 write_var_or_type, write_name_assoc, type_int, type_long,
8232 type_long_long, type_float, type_double, type_long_double,
8233 type_char, type_boolean, type_system_address): Add "struct
8234 parser_state" argument. Adjust function to use parser state.
8235 * ada-lang.c (parse): Likewise.
8236 * ada-lang.h: Forward declare "struct parser_state".
8237 (ada_parse): Add "struct parser_state" argument.
8238 * ada-lex.l (processInt, processReal): Likewise. Adjust all
8239 calls to both functions.
8240 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
8241 parser state.
8242 (yyparse): Redefine macro to f_parse_internal.
8243 (pstate): New variable.
8244 (parse_number): Add "struct parser_state" argument.
8245 (type_exp, exp, subrange, typebase): Update calls to write_exp*
8246 and similars in order to use parser state.
8247 (parse_number): Adjust code to use parser state.
8248 (yylex): Likewise.
8249 (f_parse): New function.
8250 * f-lang.h: Forward declare "struct parser_state".
8251 (f_parse): Add "struct parser_state" argument.
8252 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
8253 parser state.
8254 (yyparse): Redefine macro for java_parse_internal.
8255 (pstate): New variable.
8256 (push_expression_name, push_expression_name, insert_exp): Add
8257 "struct parser_state" argument.
8258 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
8259 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
8260 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
8261 PostIncrementExpression, PostDecrementExpression,
8262 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
8263 UnaryExpressionNotPlusMinus, CastExpression,
8264 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
8265 RelationalExpression, EqualityExpression, AndExpression,
8266 ExclusiveOrExpression, InclusiveOrExpression,
8267 ConditionalAndExpression, ConditionalOrExpression,
8268 ConditionalExpression, Assignment, LeftHandSide): Update
8269 calls to write_exp* and similars in order to use parser state.
8270 (parse_number): Ajust code to use parser state.
8271 (yylex): Likewise.
8272 (java_parse): New function.
8273 (push_variable): Add "struct parser_state" argument. Adjust
8274 code to user parser state.
8275 (push_fieldnames, push_qualified_expression_name,
8276 push_expression_name, insert_exp): Likewise.
8277 * jv-lang.h: Forward declare "struct parser_state".
8278 (java_parse): Add "struct parser_state" argument.
8279 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
8280 parser state.
8281 (yyparse): Redefine macro to m2_parse_internal.
8282 (pstate): New variable.
8283 (type_exp, exp, fblock, variable, type): Update calls to
8284 write_exp* and similars to use parser state.
8285 (yylex): Likewise.
8286 (m2_parse): New function.
8287 * m2-lang.h: Forward declare "struct parser_state".
8288 (m2_parse): Add "struct parser_state" argument.
8289 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
8290 * objc-lang.h: Forward declare "struct parser_state".
8291 (end_msglist): Add "struct parser_state" argument.
8292 * p-exp.y (parse_type): Rewrite macro to use parser state.
8293 (yyparse): Redefine macro to pascal_parse_internal.
8294 (pstate): New variable.
8295 (parse_number): Add "struct parser_state" argument.
8296 (type_exp, exp1, exp, qualified_name, variable): Update calls to
8297 write_exp* and similars in order to use parser state.
8298 (parse_number, yylex): Adjust code to use parser state.
8299 (pascal_parse): New function.
8300 * p-lang.h: Forward declare "struct parser_state".
8301 (pascal_parse): Add "struct parser_state" argument.
8302 * go-exp.y (parse_type): Rewrite macro to use parser state.
8303 (yyparse): Redefine macro to go_parse_internal.
8304 (pstate): New variable.
8305 (parse_number): Add "struct parser_state" argument.
8306 (type_exp, exp1, exp, variable, type): Update calls to
8307 write_exp* and similars in order to use parser state.
8308 (parse_number, lex_one_token, classify_name, yylex): Adjust code
8309 to use parser state.
8310 (go_parse): Likewise.
8311 * go-lang.h: Forward declare "struct parser_state".
8312 (go_parse): Add "struct parser_state" argument.
8313
342587c4
DE
83142014-03-27 Doug Evans <dje@google.com>
8315
8316 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
8317
33e80786
DE
83182014-03-27 Doug Evans <dje@google.com>
8319
8320 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
8321 Remove argument abbrev_section. All callers updated.
8322
1dbab08b
DE
83232014-03-27 Doug Evans <dje@google.com>
8324
8325 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
8326 addr_base, ranges_base.
8327
318d3177
KS
83282014-03-26 Keith Seitz <keiths@redhat.com>
8329
8330 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
8331 types, not VAR_DOMAIN.
8332
1e54db15
SL
83332014-03-25 Sandra Loosemore <sandra@codesourcery.com>
8334
8335 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
8336 "ra" registers.
8337 * features/nios2-linux.c: Regenerated.
8338 * features/nios2.c: Regenerated.
8339
d3839ede
PA
83402014-03-25 Pedro Alves <palves@redhat.com>
8341
8342 * cli/cli-script.c (script_from_file): Force the interpreter to
8343 sync mode.
8344
7588d2ec
PL
83452014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
8346
8347 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
8348 small stack allocation.
8349
a6290449
TG
83502014-03-24 Tristan Gingold <gingold@adacore.com>
8351
8352 * darwin-nat.c (exc_server): Remove unused prototype.
8353 (darwin_dump_message): Correctly display data on x86_64.
8354 (darwin_encode_reply): Fix style.
8355 Add comments and fix indentation.
8356
31ae9d24 83572014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
69fa4030
PL
8358
8359 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
8360
6339bfc4
DE
83612014-03-22 Doug Evans <xdje42@gmail.com>
8362
8363 * infcmd.c: Whitespace fixes.
8364 (interrupt_command): Merge two function comments into one.
8365
0a07590b
DE
83662014-03-22 Doug Evans <xdje42@gmail.com>
8367
8368 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
8369 All uses updated.
8370
b55fbac4
YQ
83712014-03-22 Yao Qi <yao@codesourcery.com>
8372
8373 * remote.c (target_read_live_memory): Remove.
8374 (memory_xfer_live_readonly_partial): Rename it to
8375 remote_xfer_live_readonly_partial. Remove argument 'object'.
8376 All callers updated. Call remote_read_bytes_1
8377 instead of target_read_live_memory.
8378 * tracepoint.c (set_traceframe_number): Remove.
8379 (make_cleanup_restore_traceframe_number): Likewise .
8380 * tracepoint.h (set_traceframe_number): Remove declaration.
8381 (make_cleanup_restore_traceframe_number): Likewise.
8382
9217e74e
YQ
83832014-03-22 Yao Qi <yao@codesourcery.com>
8384
8385 * remote.c (remote_read_bytes): Move code on reading from the
8386 remote stub to ...
8387 (remote_read_bytes_1): ... here. New function.
8388
8acf9577
YQ
83892014-03-22 Yao Qi <yao@codesourcery.com>
8390
8391 * ctf.c (ctf_xfer_partial): Check the return value of
8392 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
8393 return TARGET_XFER_UNAVAILABLE.
8394 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8395 * target.c (target_read_live_memory): Move it to remote.c.
8396 (memory_xfer_live_readonly_partial): Likewise.
8397 (memory_xfer_partial_1): Move some code to remote_read_bytes.
8398 * remote.c (target_read_live_memory): Moved from target.c.
8399 (memory_xfer_live_readonly_partial): Likewise.
8400 (remote_read_bytes): Factored out from
8401 memory_xfer_partial_1.
8402
feef67ab
DE
84032014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
8404
8405 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
8406 NULL pointer.
8407
b65dc60b
PA
84082014-03-21 Pedro Alves <palves@redhat.com>
8409
8410 * infrun.c (normal_stop): Extend comment.
8411
b4ab256d
HZ
84122014-03-21 Hui Zhu <hui@codesourcery.com>
8413 Pedro Alves <palves@redhat.com>
8414
8415 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
8416 static buffer.
8417 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
8418 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
8419 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
8420
deba7593
MR
84212014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
8422
8423 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
8424 `z' formatted output modifier.
8425
1bff71c3
SDJ
84262014-03-20 Tom Tromey <tromey@redhat.com>
8427 Sergio Durigan Junior <sergiodj@redhat.com>
8428
8429 * probe.c (parse_probes): Turn assert into an ordinary error.
8430 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
8431 exceptions when parsing probes. Rearrange the code for clarity.
8432
90e28950
TT
84332014-03-20 Tom Tromey <tromey@redhat.com>
8434
8435 PR gdb/14135
8436 * top.c (execute_command): Only dispatch events if the command
8437 started the target.
8438
beb460e8
PA
84392014-03-20 Tom Tromey <tromey@redhat.com>
8440
8441 PR cli/15718
8442 * infcall.c: Include event-top.h.
8443 (run_inferior_call): Call async_disable_stdin if needed.
8444
99619bea
PA
84452014-03-20 Pedro Alves <palves@redhat.com>
8446
8447 * infrun.c (prepare_to_proceed): Delete.
8448 (thread_still_needs_step_over): New function.
8449 (find_thread_needs_step_over): New function.
8450 (proceed): If the current thread needs a step-over, set its
8451 steping_over_breakpoint flag. Adjust to use
8452 find_thread_needs_step_over instead of prepare_to_proceed.
8453 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
8454 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
8455 breakpoint.
8456 (switch_back_to_stepped_thread): Step over breakpoints of all
8457 threads not the stepping thread, before switching back to the
8458 stepping thread.
8459
2adfaa28
PA
84602014-03-20 Pedro Alves <palves@redhat.com>
8461
8462 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
8463 extern.
8464 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
8465 * infrun.c (saved_singlestep_ptid)
8466 (stepping_past_singlestep_breakpoint): Delete.
8467 (resume): Remove stepping_past_singlestep_breakpoint handling.
8468 (proceed): Store the prev_pc of the stepping thread too.
8469 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
8470 singlestep_pc.
8471 (enum infwait_states): Delete infwait_thread_hop_state.
8472 (struct execution_control_state) <hit_singlestep_breakpoint>: New
8473 field.
8474 (handle_inferior_event): Adjust.
8475 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
8476 handling and the thread-hop code. Before removing single-step
8477 breakpoints, check whether the thread hit a single-step breakpoint
8478 of another thread. If it did, the trap is not a random signal.
8479 (switch_back_to_stepped_thread): If the event thread hit a
8480 single-step breakpoint, unblock it before switching to the
8481 stepping thread. Handle the case of the stepped thread having
8482 advanced already.
8483 (keep_going): Handle the case of the current thread moving past a
8484 single-step breakpoint.
8485
31e77af2
PA
84862014-03-20 Pedro Alves <palves@redhat.com>
8487
8488 PR breakpoints/7143
8489 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
8490 are being stepped over.
8491 (breakpoint_address_match): Make extern.
8492 * breakpoint.h (breakpoint_address_match): New declaration.
8493 * inferior.h (stepping_past_instruction_at): New declaration.
8494 * infrun.c (struct step_over_info): New type.
8495 (step_over_info): New global.
8496 (set_step_over_info, clear_step_over_info)
8497 (stepping_past_instruction_at): New functions.
8498 (handle_inferior_event): Clear the step-over info when
8499 trap_expected is cleared.
8500 (resume): Remove now stale comment.
8501 (clear_proceed_status): Clear step-over info.
8502 (proceed): Adjust step-over handling to set or clear the step-over
8503 info instead of removing all breakpoints.
8504 (handle_signal_stop): When setting up a thread-hop, don't remove
8505 breakpoints here.
8506 (stop_stepping): Clear step-over info.
8507 (keep_going): Adjust step-over handling to set or clear step-over
8508 info and then always inserting breakpoints, instead of removing
8509 all breakpoints when stepping over one.
8510
b9f437de
PA
85112014-03-20 Pedro Alves <palves@redhat.com>
8512
8513 * infrun.c (previous_inferior_ptid): Adjust comment.
8514 (deferred_step_ptid): Delete.
8515 (infrun_thread_ptid_changed, prepare_to_proceed)
8516 (init_wait_for_inferior): Adjust.
8517 (handle_signal_stop): Delete deferred_step_ptid handling.
8518
06c868a8
JK
85192014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
8520
8521 PR gdb/15358
8522 * defs.h (sync_quit_force_run): New declaration.
8523 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
8524 * event-top.c (async_sigterm_handler): New declaration.
8525 (async_sigterm_token): New variable.
8526 (async_init_signals): Create also async_sigterm_token.
8527 (async_sigterm_handler): New function.
8528 (sync_quit_force_run): New variable.
8529 (handle_sigterm): Replace quit_force call by other calls.
8530 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
8531
dea80df0
MR
85322014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
8533
8534 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
8535 offset into SPE pseudo registers.
8536
0c7e1a46
PA
85372014-03-18 Pedro Alves <palves@redhat.com>
8538
8539 PR gdb/13860
8540 * inferior.h (print_stop_event): Declare.
8541 * infrun.c (print_stop_event): New, factored out from ...
8542 (normal_stop): ... this.
8543 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
8544 of bpstat_print/print_stack_frame.
8545
9c1fcd01
TT
85462014-03-17 Tom Tromey <tromey@redhat.com>
8547
8548 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
8549
11aa919a
PMR
85502014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
8551
8552 * ada-lang.c (decode_constrained_packed_array): Perform a
8553 minimal coercion for reference with coerce_ref instead of
8554 ada_coerce_ref.
8555
d4ccb5e0
TG
85562014-03-17 Tristan Gingold <gingold@adacore.com>
8557
8558 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
8559 (darwin_solib_create_inferior_hook): Emit a warning if version
8560 is unhandled.
8561
49840f2a
UW
85622014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
8563
8564 * python/py-value.c (get_field_flag): Cast flag_name argument to
8565 PyObject_GetAttrString to support Python 2.4.
8566
ed4123e5
JK
85672014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8568
8569 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
8570 (Global Maintainers): Remove Jan Kratochvil.
8571
d6b64346
PA
85722014-03-14 Pedro Alves <palves@redhat.com>
8573
8574 * inferior.h (terminal_ours_for_output): Rename to ...
8575 (child_terminal_ours_for_output): ... this.
8576 (terminal_save_ours): Rename to ...
8577 (child_terminal_save_ours): ... this.
8578 (terminal_ours): Rename to ...
8579 (child_terminal_ours): ... this.
8580 (terminal_inferior): Rename to ...
8581 (child_terminal_inferior): ... this.
8582 (terminal_init_inferior): Rename to ...
8583 (child_terminal_init_inferior): ... this.
8584 (terminal_init_inferior_with_pgrp): Rename to ...
8585 (child_terminal_init_inferior_with_pgrp): ... this.
8586 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
8587 (child_terminal_init_with_pgrp): ... this.
8588 (terminal_save_ours): Rename to ...
8589 (child_terminal_save_ours): ... this.
8590 (terminal_init_inferior): Rename to ...
8591 (child_terminal_init): ... this. Adjust.
8592 (terminal_inferior): Rename to ...
8593 (child_terminal_inferior): ... this.
8594 (terminal_ours_for_output): Rename to ...
8595 (child_terminal_ours_for_output): ... this. Adjust.
8596 (terminal_ours): Rename to ...
8597 (child_terminal_ours): ... this.
8598 (terminal_ours_1): Rename to ...
8599 (child_terminal_ours_1): ... this. Adjust.
8600 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
8601 * windows-nat.c (do_initial_windows_stuff): Adjust.
8602 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
8603 (gnu_terminal_init): ... this. Adjust.
8604 (gnu_target): Adjust.
8605 * inf-child.c (inf_child_target): Adjust.
8606
5a1e8c7a
DE
86072014-03-13 Doug Evans <xdje42@gmail.com>
8608
8609 PR guile/16612
8610 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
8611 new eq?-hashtab.
8612
350e1a76
DE
86132014-03-13 Doug Evans <xdje42@gmail.com>
8614
8615 * value.c (record_latest_value): Call release_value_or_incref
8616 instead of release_value.
8617
a69900ae
PA
86182014-03-13 Pedro Alves <palves@redhat.com>
8619
8620 * procfs.c (procfs_target): Don't override to_shortname,
8621 to_longname or to_doc.
8622
5db9f0bd
PA
86232014-03-13 Pedro Alves <palves@redhat.com>
8624
8625 * inf-child.c (inf_child_open, inf_child_target): Don't mention
8626 Unix in user visible strings.
8627
5e3a2c38
SS
86282014-03-12 Stan Shebs <stan@codesourcery.com>
8629
8630 * gdbtypes.h: Annotate comments for Doxygen, add a page
8631 block comment with some general info.
8632
8bc2fe48
PA
86332014-03-12 Pedro Alves <palves@redhat.com>
8634
8635 * infcmd.c (prepare_execution_command): New function, factored out
8636 from several execution commands.
8637 (run_command_1, continue_command, step_1, jump_command)
8638 (signal_command, until_command, advance_command, finish_command)
8639 (attach_command): Use prepare_execution_command.
8640
638c5f49
OJ
86412014-03-12 Omair Javaid <omair.javaid@linaro.org>
8642
8643 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
8644 (MAX_BPTS): Define.
8645 (MAX_WPTS): Define.
8646 (struct arm_linux_thread_points): Removed.
8647 (struct arm_linux_process_info): New.
8648 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
8649 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
8650 (arm_linux_find_breakpoints_by_tid): Removed.
8651 (struct arch_lwp_info): New.
8652 (arm_linux_find_process_pid): New functions.
8653 (arm_linux_add_process): New functions.
8654 (arm_linux_process_info_get): New functions.
8655 (arm_linux_forget_process): New function.
8656 (arm_linux_get_debug_reg_state): New function.
8657 (struct update_registers_data): New.
8658 (update_registers_callback): New function.
8659 (arm_linux_insert_hw_breakpoint1): Updated.
8660 (arm_linux_remove_hw_breakpoint1): Updated.
8661 (arm_linux_insert_hw_breakpoint): Updated.
8662 (arm_linux_remove_hw_breakpoint): Updated.
8663 (arm_linux_insert_watchpoint): Updated.
8664 (arm_linux_remove_watchpoint): Updated.
8665 (arm_linux_new_thread): Updated.
8666 (arm_linux_prepare_to_resume): New function.
8667 (arm_linux_new_fork): New function.
8668 (_initialize_arm_linux_nat): Updated.
8669
6d03af93
PA
86702014-03-12 Pedro Alves <palves@redhat.com>
8671
8672 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
8673
b3ccfe11
TT
86742014-03-12 Tom Tromey <tromey@redhat.com>
8675
8676 * inf-child.c (return_zero): New function.
8677 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
8678 * aix-thread.c (aix_thread_inferior_created): New function.
8679 (aix_thread_attach): Remove.
8680 (init_aix_thread_ops): Don't set to_attach.
8681 (_initialize_aix_thread): Register inferior_created observer.
8682 * corelow.c (init_core_ops): Don't set to_attach or
8683 to_create_inferior.
8684 * exec.c (init_exec_ops): Don't set to_attach or
8685 to_create_inferior.
8686 * infcmd.c (run_command_1): Use find_run_target. Make direct
8687 target calls.
8688 (attach_command): Use find_attach_target. Make direct target
8689 calls.
8690 * record-btrace.c (init_record_btrace_ops): Don't set
8691 to_create_inferior.
8692 * record-full.c (record_full_can_async_p, record_full_is_async_p):
8693 Remove.
8694 (init_record_full_ops, init_record_full_core_ops): Update. Don't
8695 set to_create_inferior.
8696 * target.c (complete_target_initialization): Add assertion.
8697 (target_create_inferior): Remove.
8698 (find_default_attach, find_default_create_inferior): Remove.
8699 (find_attach_target, find_run_target): New functions.
8700 (find_default_is_async_p, find_default_can_async_p)
8701 (target_supports_non_stop, target_attach): Remove.
8702 (init_dummy_target): Don't set to_create_inferior or
8703 to_supports_non_stop.
8704 * target.h (struct target_ops) <to_attach>: Add comment. Remove
8705 TARGET_DEFAULT_FUNC.
8706 <to_create_inferior>: Add comment.
8707 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
8708 TARGET_DEFAULT_RETURN.
8709 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
8710 (find_attach_target, find_run_target): Declare.
8711 (target_create_inferior): Remove.
8712 (target_has_execution_1): Update comment.
8713 (target_supports_non_stop): Remove.
8714 * target-delegates.c: Rebuild.
8715
91f83b02
PA
87162014-03-12 Pedro Alves <palves@redhat.com>
8717
8718 * inf-child.h: Update comment to not mention Unix.
8719
f1aea813
PA
87202014-03-12 Pedro Alves <palves@redhat.com>
8721
8722 * inf-child.c: Update top comment to not mention Unix. Add
8723 generic comment describing how this target is meant to be used.
8724 (inf_child_post_attach, inf_child_post_startup_inferior)
8725 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
8726 Unix in comment.
8727
ee8e9165
PA
87282014-03-12 Pedro Alves <palves@redhat.com>
8729
8730 * nto-procfs.c: Include inf-child.h.
8731 (procfs_ops): Delete global.
8732 (procfs_can_run): Delete method.
8733 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
8734 target pointer instead of referencing procfs_ops.
8735 (procfs_prepare_to_store): Delete.
8736 (init_procfs_ops): Delete function.
8737 (procfs_target): New function, based on init_procfs_ops, but
8738 inherit inf_child_target.
8739 (_initialize_procfs): Use procfs_target.
8740
51a9c8c5
PA
87412014-03-12 Pedro Alves <palves@redhat.com>
8742
8743 * windows-nat.c: Include inf-child.h.
8744 (windows_ops): Delete global.
8745 (windows_open, windows_prepare_to_store, windows_can_run): Delete
8746 methods.
8747 (init_windows_ops): Delete function.
8748 (windows_target): New function, based on init_windows_ops, but
8749 inherit inf_child_target.
8750 (_initialize_windows_nat): Use windows_target. Install x86
8751 specific target methods here.
8752
c1966e26
DE
87532014-03-10 Doug Evans <xdje42@gmail.com>
8754
8755 * guile/guile.c (call_initialize_gdb_module): New function.
8756 (initialize_guile): Replace call to scm_init_guile with call to
8757 scm_with_guile.
8758
023db19c
JB
87592014-03-10 Joel Brobecker <brobecker@adacore.com>
8760
8761 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
8762 in call to TYPE_CODE macro.
8763
5ec18f2b
JG
87642014-03-10 Jerome Guitton <guitton@adacore.com>
8765
8668be63
JB
8766 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
8767 Resolve tagged types to full view.
5ec18f2b 8768
7d03f2eb
HZ
87692014-03-10 Hui Zhu <hui@codesourcery.com>
8770
8771 * target.h (target_insert_breakpoint): Remove "hardware" from its
8772 comments.
8773
c5164cbc
DE
87742014-03-07 Doug Evans <dje@google.com>
8775
8776 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
8777
c4a3fee2
DE
87782014-03-07 Doug Evans <dje@google.com>
8779
8780 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
8781 Remove unused local comp_dir_attr. Assert exactly one of
8782 stub_comp_unit_die, stub_comp_dir is non-NULL.
8783
3156469c
JB
87842014-03-07 Joel Brobecker <brobecker@adacore.com>
8785
8786 * target.h (complete_target_initialization, add_target):
8787 Add comment.
8788
c1a7b7c6
PA
87892014-03-07 Pedro Alves <palves@redhat.com>
8790
8791 * go32-nat.c: Include inf-child.h.
8792 (go32_ops): Delete global.
8793 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
8794 Delete methods.
8795 (go32_create_inferior): Push the passed in target pointer instead
8796 of referencing go32_ops.
8797 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
8798 (go32_target): New function, based on init_go32_ops, but inherit
8799 inf_child_target.
8800 (_initialize_go32_nat): Use go32_target. Move parts of
8801 init_go32_ops here.
8802
d3c1a85f
JB
88032014-03-06 Joel Brobecker <brobecker@adacore.com>
8804
8805 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
8806 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
8807 SYMBOL_VALUE_ADDRESS.
8808 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
8809
5fa1d40e
YQ
88102014-03-06 Yao Qi <yao@codesourcery.com>
8811
8812 * breakpoint.c (get_tracepoint_by_number): Remove argument
8813 optional_p. All callers updated. Adjust comments. Update
8814 output message.
8815 * breakpoint.h (get_tracepoint_by_number): Update declaration.
8816
0c13193f
YQ
88172014-03-06 Yao Qi <yao@codesourcery.com>
8818
8819 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
8820 early if get_number returns zero. Use 'p' instead of 'args'.
8821
2217da06
YQ
88222014-03-06 Yao Qi <yao@codesourcery.com>
8823
8824 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
8825 message.
8826
cc3da688
YQ
88272014-03-06 Yao Qi <yao@codesourcery.com>
8828
8829 PR breakpoints/16508
8830 * tracepoint.c (check_trace_running): New function.
8831 (trace_find_command): Move code to check_trace_running and
8832 call check_trace_running.
8833 (trace_find_pc_command): Likewise.
8834 (trace_find_tracepoint_command): Likewise.
8835 (trace_find_line_command): Likewise.
8836 (trace_find_range_command): Likewise.
8837 * tracepoint.h (check_trace_running): Likewise.
8838 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
8839
6a5f844b
YQ
88402014-03-06 Yao Qi <yao@codesourcery.com>
8841
8842 * target.h (struct target_ops) <to_traceframe_info>: Use
8843 TARGET_DEFAULT_NORETURN (tcomplain ()).
8844 * target-delegates.c: Regenerated.
8845
0f26cec1
PA
88462014-03-05 Pedro Alves <palves@redhat.com>
8847
8848 PR gdb/16575
8849 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
8850 void. Update comment.
8851 (dcache_xfer_memory): Delete.
8852 (dcache_read_memory_partial): New, based on the read bits of
8853 dcache_xfer_memory.
8854 (dcache_update): Add status parameter. Use ULONGEST for len, and
8855 adjust. Discard cache lines if the reason for the update was
8856 error.
8857 * dcache.h (dcache_xfer_memory): Delete declaration.
8858 (dcache_read_memory_partial): New declaration.
8859 (dcache_update): Update prototype.
8860 * target.c (raw_memory_xfer_partial): Update the dcache here.
8861 (memory_xfer_partial_1): Don't handle dcache writes here.
8862
b2b255bd
MF
88632014-03-05 Mike Frysinger <vapier@gentoo.org>
8864
8865 * remote-sim.c (gdbsim_load): Add const to prog.
8866
5d9cf8a4
TT
88672014-03-03 Tom Tromey <tromey@redhat.com>
8868
8869 * elfread.c (probe_key): Change to bfd_data.
8870 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
8871 now per-BFD, not per-objfile.
8872 * stap-probe.c (stap_probe_destroy): Update comment.
8873 (handle_stap_probe): Allocate on the per-BFD obstack.
8874
729662a5
TT
88752014-03-03 Tom Tromey <tromey@redhat.com>
8876
8877 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
8878 * breakpoint.c (create_longjmp_master_breakpoint): Use
8879 get_probe_address.
8880 (add_location_to_breakpoint, bkpt_probe_insert_location)
8881 (bkpt_probe_remove_location): Update.
8882 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
8883 * elfread.c (elf_symfile_relocate_probe): Remove.
8884 (elf_probe_fns): Update.
8885 (insert_exception_resume_breakpoint): Change type of "probe"
8886 parameter to bound_probe.
8887 (check_exception_resume): Update.
8888 * objfiles.c (objfile_relocate1): Don't relocate probes.
8889 * probe.c (bound_probe_s): New typedef.
8890 (parse_probes): Use get_probe_address. Set sal's objfile.
8891 (find_probe_by_pc): Return a bound_probe.
8892 (collect_probes): Return a VEC(bound_probe_s).
8893 (compare_probes): Update.
8894 (gen_ui_out_table_header_info): Change type of "probes"
8895 parameter. Update.
8896 (info_probes_for_ops): Update.
8897 (get_probe_address): New function.
8898 (probe_safe_evaluate_at_pc): Update.
8899 * probe.h (struct probe_ops) <get_probe_address>: New field.
8900 <set_semaphore, clear_semaphore>: Add objfile parameter.
8901 (struct probe) <objfile>: Remove field.
8902 <arch>: New field.
8903 <address>: Update comment.
8904 (struct bound_probe): New.
8905 (find_probe_by_pc): Return a bound_probe.
8906 (get_probe_address): Declare.
8907 * solib-svr4.c (struct probe_and_action) <address>: New field.
8908 (hash_probe_and_action, equal_probe_and_action): Update.
8909 (register_solib_event_probe): Add address parameter.
8910 (solib_event_probe_at): Update.
8911 (svr4_create_probe_breakpoints): Add objfile parameter. Use
8912 get_probe_address.
8913 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
8914 (stap_get_probe_address): New function.
8915 (stap_can_evaluate_probe_arguments, compute_probe_arg)
8916 (compile_probe_arg): Update.
8917 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
8918 address.
8919 (handle_stap_probe): Don't relocate the probe.
8920 (stap_relocate): Remove.
8921 (stap_gen_info_probes_table_values): Update.
8922 (stap_probe_ops): Remove stap_relocate.
8923 * symfile-debug.c (debug_sym_relocate_probe): Remove.
8924 (debug_sym_probe_fns): Update.
8925 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
8926 * symtab.c (init_sal): Use memset.
8927 * symtab.h (struct symtab_and_line) <objfile>: New field.
8928 * tracepoint.c (start_tracing, stop_tracing): Update.
8929
ff887920
TT
89302014-03-03 Tom Tromey <tromey@redhat.com>
8931
8932 * probe.h (parse_probes, find_probe_by_pc)
8933 (find_probes_in_objfile): Fix comments.
8934
f0407826
DE
89352014-03-02 Doug Evans <xdje42@gmail.com>
8936
8937 * infrun.c (handle_signal_stop): Replace test for
8938 TARGET_WAITKIND_STOPPED with an assert.
8939
35e6a711
DE
89402014-03-02 Doug Evans <xdje42@gmail.com>
8941
8942 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
8943
667f9d0b
DE
89442014-03-02 Doug Evans <xdje42@gmail.com>
8945
8946 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
8947
dc92ace0
MK
89482014-03-01 Mark Kettenis <kettenis@gnu.org>
8949
8950 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
8951
a900370f
MK
89522014-03-01 Mark Kettenis <kettenis@gnu.org>
8953
8954 * i386obsd-nat.c: Include "obsd-nat.h".
8955 (_initialize_i386obsd_nat): Call obsd_add_target instead of
8956 add_target.
8957 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
8958
b72a7981
MK
89592014-03-01 Mark Kettenis <kettenis@gnu.org>
8960
8961 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
8962
96c70aba
MK
89632014-03-01 Mark Kettenis <kettenis@gnu.org>
8964
8965 * mips64obsd-nat.c: Include "obsd-nath".
8966 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
8967 add_target
8968 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
8969
874a80af
MK
89702014-03-01 Mark Kettenis <kettenis@gnu.org>
8971
8fd408f1
MK
8972 * amd64obsd-nat.c: Include "obsd-nat,h.
8973 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
8974 add_target.
874a80af
MK
8975 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
8976
9cf95373
SC
89772014-02-28 Siva Chandra Reddy <sivachandra@google.com>
8978
8979 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
8980 (find_overload_match): Update call to find_oload_champ.
8981 (find_oload_champ_namespace_loop): Likewise
8982
863e4da4
MK
89832014-02-28 Mark Kettenis <kettenis@gnu.org>
8984
025cac40
MK
8985 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
8986
1ed586ce
MK
8987 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
8988 * config/sparc/obsd64.mh: New file.
8989 * sparc64obsd-nat.c: New file.
8990
863e4da4
MK
8991 * obsd-nat.h: New file.
8992 * obsd-nat.c: New file.
8993 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
8994 (ALLDEPFILES): Add obsd-nat.c.
8995
89de4da4
TT
89962014-02-28 Tom Tromey <tromey@redhat.com>
8997
8998 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
8999 * cli-out.h (cli_ui_out_impl): Now const.
9000 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
9001 * ui-out.c (struct ui_out) <impl>: Now const.
9002 (default_ui_out_impl): Now const.
9003 (ui_out_new): Make 'impl' parameter const.
9004 * ui-out.h (ui_out_new): Update.
9005
c725e7b6
MK
90062014-02-27 Mark Kettenis <kettenis@gnu.org>
9007
9008 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
9009
670b46b3
MK
90102014-02-27 Mark Kettenis <kettenis@gnu.org>
9011
9012 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
9013
c91550fc
JK
90142014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
9015
9016 Additional PR 8882 fix.
9017 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
9018
2fa0369e
PA
90192014-02-27 Pedro Alves <palves@redhat.com>
9020
9021 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
9022 isn't set.
9023
d632a097
PA
90242014-02-27 Pedro Alves <palves@redhat.com>
9025
9026 PR 12702
9027 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
9028 * nat/linux-waitpid.c: Include string.h.
9029 (status_to_str): Moved here and made extern.
9030 * nat/linux-waitpid.h (status_to_str): New declaration.
9031
2ebd5a35
HZ
90322014-02-27 Hui Zhu <hui@codesourcery.com>
9033
9034 PR 12702
9035 * infrun.c (ptid_match): Move ...
9036 * common/ptid.c (ptid_match): ... here.
9037 * inferior.h (ptid_match): Move ...
9038 * common/ptid.h (ptid_match): ... here.
9039
3cdd631f
MK
90402014-02-27 Mark Kettenis <kettenis@gnu.org>
9041
9042 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
9043 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
9044 gdb_target_obs.
9045
bee30a64
MK
90462014-02-27 Mark Kettenis <kettenis@gnu.org>
9047
9048 * obsd-tdep.c (obsd_auxv_parse): New function.
9049 (obsd_init_abi): Set auxv_parse.
27a48a92
MK
9050
9051 * gdbarch.sh (auxv_parse): New.
9052 * gdbarch.h: Regenerated.
9053 * gdbarch.c: Regenerated.
9054 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
9055
7a5a839f
LC
90562014-02-26 Ludovic Courtès <ludo@gnu.org>
9057
9058 * guile/scm-value.c (gdbscm_history_append_x): New function.
9059 (value_functions): Add it.
9060
31aa7e4e
JB
90612014-02-27 Joel Brobecker <brobecker@adacore.com>
9062
9063 * dwarf2read.c (attr_value_as_address): New function.
9064 (dwarf2_find_base_address, read_call_site_scope): Use
9065 attr_value_as_address in place of DW_ADDR.
9066 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
9067 the low and high addresses. Slight rework of the handling
9068 of the high pc being a constant form, and limit it to
9069 DWARF verson 4 or higher.
9070 (dwarf2_record_block_ranges): Likewise.
9071 (read_partial_die): Likewise.
9072 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
9073
9b333ba3
TT
90742014-02-26 Tom Tromey <tromey@redhat.com>
9075
9076 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
9077
5f6cac40
TT
90782014-02-26 Tom Tromey <tromey@redhat.com>
9079
9080 * elfread.c (elf_read_minimal_symbols): Return early if
9081 minimal symbols have already been read. Add "ei" parameter.
9082 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
9083 * minsyms.c (prim_record_minimal_symbol_full): Update.
9084 * objfiles.h (struct objstats) <n_minsyms>: Move...
9085 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
9086 * symmisc.c (print_objfile_statistics): Update.
9087
2750ef27
TT
90882014-02-26 Tom Tromey <tromey@redhat.com>
9089
9090 * elfread.c (elf_read_minimal_symbols): New function, from
9091 elf_symfile_read.
9092 (elf_symfile_read): Call it.
9093
34643a32
TT
90942014-02-26 Tom Tromey <tromey@redhat.com>
9095
9096 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
9097 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
9098 (lookup_minimal_symbol_solib_trampoline)
9099 (lookup_minimal_symbol_by_pc_section_1)
9100 (lookup_minimal_symbol_and_objfile): Update.
9101 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
9102 Don't allocate a minimal symbol if minsyms have already been read.
9103 (build_minimal_symbol_hash_tables): Update.
9104 (install_minimal_symbols): Do nothing if minsyms already read.
9105 Use the per-BFD obstack.
9106 (terminate_minimal_symbol_table): Use the per-BFD obstack.
9107 * objfiles.c (allocate_objfile): Call
9108 terminate_minimal_symbol_table later.
9109 (have_minimal_symbols): Update.
9110 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
9111 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
9112 Move from struct objfile.
9113 <minsyms_read>: New field.
9114 (struct objfile) <msymbols, minimal_symbol_count,
9115 msymbol_hash, msymbol_demangled_hash>: Move.
9116 (ALL_OBJFILE_MSYMBOLS): Update.
9117 * symfile.c (read_symbols): Set minsyms_read.
9118 (reread_symbols): Update.
9119 * symmisc.c (dump_objfile, dump_msymbols): Update.
9120
2273f0ac
TT
91212014-02-26 Tom Tromey <tromey@redhat.com>
9122
9123 * minsyms.c (msymbols_sort): Remove.
9124 * minsyms.h (msymbols_sort): Remove.
9125 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
9126 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
9127 * elfread.c (elf_symtab_read): Don't add section offsets.
9128 * xcoffread.c (record_minimal_symbol): Don't add section offset
9129 to minimal symbol address.
9130 * somread.c (text_offset, data_offset): Remove.
9131 (som_symtab_read): Don't add section offsets to minimal symbol
9132 addresses.
9133 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
9134 Don't add section offsets to minimal symbols.
9135 * coffread.c (coff_symtab_read): Don't add section offsets
9136 to minimal symbol addresses.
9137 * machoread.c (macho_symtab_add_minsym): Don't add section offset
9138 to minimal symbol addresses.
9139 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
9140 section offset to minimal symbol addresses.
9141 * mdebugread.c (parse_partial_symbols): Don't add section
9142 offset to minimal symbol addresses.
9143 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
9144 offset to minimal symbol addresses.
9145
77e371c0
TT
91462014-02-26 Tom Tromey <tromey@redhat.com>
9147
9148 * ada-lang.c (ada_main_name): Update.
9149 (ada_add_standard_exceptions): Update.
9150 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
9151 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9152 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
9153 * auxv.c (ld_so_xfer_auxv): Update.
9154 * avr-tdep.c (avr_scan_prologue): Update.
9155 * ax-gdb.c (gen_var_ref): Update.
9156 * blockframe.c (get_pc_function_start)
9157 (find_pc_partial_function_gnu_ifunc): Update.
9158 * breakpoint.c (create_overlay_event_breakpoint)
9159 (create_longjmp_master_breakpoint)
9160 (create_std_terminate_master_breakpoint)
9161 (create_exception_master_breakpoint): Update.
9162 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9163 * c-valprint.c (c_val_print): Update.
9164 * coff-pe-read.c (add_pe_forwarded_sym): Update.
9165 * common/agent.c (agent_look_up_symbols): Update.
9166 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
9167 * dwarf2loc.c (call_site_to_target_addr): Update.
9168 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
9169 * elfread.c (elf_gnu_ifunc_record_cache)
9170 (elf_gnu_ifunc_resolve_by_got): Update.
9171 * findvar.c (default_read_var_value): Update.
9172 * frame.c (inside_main_func): Update.
9173 * frv-tdep.c (frv_frame_this_id): Update.
9174 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9175 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
9176 Update.
9177 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
9178 (hppa_hpux_find_dummy_bpaddr): Update.
9179 * hppa-tdep.c (hppa_symbol_address): Update.
9180 * infcmd.c (until_next_command): Update.
9181 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
9182 Update.
9183 * linespec.c (minsym_found, add_minsym): Update.
9184 * linux-nat.c (get_signo): Update.
9185 * linux-thread-db.c (inferior_has_bug): Update.
9186 * m32c-tdep.c (m32c_return_value)
9187 (m32c_m16c_address_to_pointer): Update.
9188 * m32r-tdep.c (m32r_frame_this_id): Update.
9189 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9190 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9191 * maint.c (maintenance_translate_address): Update.
9192 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
9193 (frob_address): New function.
9194 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
9195 frob_address. Rename parameter to "pc_in".
9196 (compare_minimal_symbols, compact_minimal_symbols): Use raw
9197 addresses.
9198 (find_solib_trampoline_target, minimal_symbol_upper_bound):
9199 Update.
9200 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9201 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
9202 * objc-lang.c (find_objc_msgsend): Update.
9203 * objfiles.c (objfile_relocate1): Update.
9204 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9205 * p-valprint.c (pascal_val_print): Update.
9206 * parse.c (write_exp_msymbol): Update.
9207 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
9208 (ppc_elfv2_skip_entrypoint): Update.
9209 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9210 * printcmd.c (build_address_symbolic, msym_info)
9211 (address_info): Update.
9212 * proc-service.c (ps_pglobal_lookup): Update.
9213 * psymtab.c (find_pc_sect_psymtab_closer)
9214 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
9215 Change msymbol parameter to bound_minimal_symbol.
9216 * ravenscar-thread.c (get_running_thread_id): Update.
9217 * remote.c (remote_check_symbols): Update.
9218 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
9219 address.
9220 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9221 * solib-dsbt.c (lm_base): Update.
9222 * solib-frv.c (lm_base, main_got): Update.
9223 * solib-irix.c (locate_base): Update.
9224 * solib-som.c (som_solib_create_inferior_hook)
9225 (link_map_start): Update.
9226 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
9227 * solib-svr4.c (elf_locate_base, enable_break): Update.
9228 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
9229 (flush_ea_cache): Update.
9230 * stabsread.c (define_symbol, scan_file_globals): Update.
9231 * stack.c (find_frame_funname): Update.
9232 * symfile-debug.c (debug_qf_expand_symtabs_matching)
9233 (debug_qf_find_pc_sect_symtab): Update.
9234 * symfile.c (simple_read_overlay_table)
9235 (simple_overlay_update): Update.
9236 * symfile.h (struct quick_symbol_functions)
9237 <find_pc_sect_symtab>: Change type of msymbol to
9238 bound_minimal_symbol.
9239 * symmisc.c (dump_msymbols): Update.
9240 * symtab.c (find_pc_sect_symtab_via_partial)
9241 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
9242 (search_symbols, print_msymbol_info): Update.
9243 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
9244 (MSYMBOL_VALUE_ADDRESS): Redefine.
9245 (BMSYMBOL_VALUE_ADDRESS): New macro.
9246 * tracepoint.c (scope_info): Update.
9247 * tui/tui-disasm.c (tui_find_disassembly_address)
9248 (tui_get_begin_asm_address): Update.
9249 * valops.c (find_function_in_inferior): Update.
9250 * value.c (value_static_field, value_fn_field): Update.
9251
3b7344d5
TT
92522014-02-26 Tom Tromey <tromey@redhat.com>
9253
9254 * ada-lang.c (ada_update_initial_language): Update.
9255 (ada_main_name, ada_has_this_exception_support): Update.
9256 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
9257 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9258 * arm-tdep.c (arm_skip_stub): Update.
9259 * auxv.c (ld_so_xfer_auxv): Update.
9260 * avr-tdep.c (avr_scan_prologue): Update.
9261 * ax-gdb.c (gen_var_ref): Update.
9262 * breakpoint.c (struct breakpoint_objfile_data)
9263 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
9264 type to bound_minimal_symbol.
9265 (create_overlay_event_breakpoint)
9266 (create_longjmp_master_breakpoint)
9267 (create_std_terminate_master_breakpoint)
9268 (create_exception_master_breakpoint): Update.
9269 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9270 * c-exp.y (classify_name): Update.
9271 * coffread.c (coff_symfile_read): Update.
9272 * common/agent.c (agent_look_up_symbols): Update.
9273 * d-lang.c (d_main_name): Update.
9274 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
9275 * dec-thread.c (enable_dec_thread): Update.
9276 * dwarf2loc.c (call_site_to_target_addr): Update.
9277 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
9278 * eval.c (evaluate_subexp_standard): Update.
9279 * findvar.c (struct minsym_lookup_data) <result>: Change type
9280 to bound_minimal_symbol.
9281 <objfile>: Remove.
9282 (minsym_lookup_iterator_cb, default_read_var_value): Update.
9283 * frame.c (inside_main_func): Update.
9284 * frv-tdep.c (frv_frame_this_id): Update.
9285 * gcore.c (call_target_sbrk): Update.
9286 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9287 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
9288 Update.
9289 * go-lang.c (go_main_name): Update.
9290 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
9291 (hppa_hpux_find_import_stub_for_addr): Update.
9292 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
9293 Update. Change return type.
9294 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
9295 type.
9296 * jit.c (jit_breakpoint_re_set_internal): Update.
9297 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
9298 Update.
9299 * linux-nat.c (get_signo): Update.
9300 * linux-thread-db.c (inferior_has_bug): Update
9301 * m32c-tdep.c (m32c_return_value)
9302 (m32c_m16c_address_to_pointer): Update.
9303 * m32r-tdep.c (m32r_frame_this_id): Update.
9304 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9305 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9306 * minsyms.c (lookup_minimal_symbol_internal): Rename to
9307 lookup_minimal_symbol. Change return type.
9308 (lookup_minimal_symbol): Remove.
9309 (lookup_bound_minimal_symbol): Update.
9310 (lookup_minimal_symbol_text): Change return type.
9311 (lookup_minimal_symbol_solib_trampoline): Change return type.
9312 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
9313 (lookup_minimal_symbol_solib_trampoline): Change return type.
9314 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9315 * objc-lang.c (lookup_objc_class, lookup_child_selector)
9316 (value_nsstring, find_imps): Update.
9317 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9318 * p-lang.c (pascal_main_name): Update.
9319 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
9320 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9321 * proc-service.c (ps_pglobal_lookup): Update.
9322 * ravenscar-thread.c (get_running_thread_msymbol): Change
9323 return type.
9324 (has_ravenscar_runtime, get_running_thread_id): Update.
9325 * remote.c (remote_check_symbols): Update.
9326 * sol-thread.c (ps_pglobal_lookup): Update.
9327 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9328 * solib-dsbt.c (lm_base): Update.
9329 * solib-frv.c (lm_base, frv_relocate_section_addresses):
9330 Update.
9331 * solib-irix.c (locate_base): Update.
9332 * solib-som.c (som_solib_create_inferior_hook)
9333 (som_solib_desire_dynamic_linker_symbols, link_map_start):
9334 Update.
9335 * solib-spu.c (spu_enable_break): Update.
9336 * solib-svr4.c (elf_locate_base, enable_break): Update.
9337 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
9338 (flush_ea_cache): Update.
9339 * stabsread.c (define_symbol): Update.
9340 * symfile.c (simple_read_overlay_table): Update.
9341 * symtab.c (find_pc_sect_line): Update.
9342 * tracepoint.c (scope_info): Update.
9343 * tui-disasm.c (tui_get_begin_asm_address): Update.
9344 * value.c (value_static_field): Update.
9345
40c1a007
TT
93462014-02-26 Tom Tromey <tromey@redhat.com>
9347
9348 * minsyms.c (prim_record_minimal_symbol_full): Use
9349 SET_MSYMBOL_VALUE_ADDRESS.
9350 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
9351 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
9352 SET_MSYMBOL_VALUE_ADDRESS.
9353 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
9354 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
9355
efd66ac6
TT
93562014-02-26 Tom Tromey <tromey@redhat.com>
9357
9358 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
9359 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
9360 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
9361 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
9362 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
9363 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
9364 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
9365 * ada-lang.c (ada_main_name): Update.
9366 (ada_lookup_simple_minsym): Update.
9367 (ada_make_symbol_completion_list): Update.
9368 (ada_add_standard_exceptions): Update.
9369 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
9370 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9371 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
9372 * arm-tdep.c (skip_prologue_function): Update.
9373 (arm_skip_stack_protector, arm_skip_stub): Update.
9374 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
9375 (arm_wince_skip_main_prologue): Update.
9376 * auxv.c (ld_so_xfer_auxv): Update.
9377 * avr-tdep.c (avr_scan_prologue): Update.
9378 * ax-gdb.c (gen_var_ref): Update.
9379 * block.c (call_site_for_pc): Update.
9380 * blockframe.c (get_pc_function_start): Update.
9381 (find_pc_partial_function_gnu_ifunc): Update.
9382 * breakpoint.c (create_overlay_event_breakpoint): Update.
9383 (create_longjmp_master_breakpoint): Update.
9384 (create_std_terminate_master_breakpoint): Update.
9385 (create_exception_master_breakpoint): Update.
9386 (resolve_sal_pc): Update.
9387 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9388 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
9389 Update.
9390 * c-valprint.c (c_val_print): Update.
9391 * coff-pe-read.c (add_pe_forwarded_sym): Update.
9392 * coffread.c (coff_symfile_read): Update.
9393 * common/agent.c (agent_look_up_symbols): Update.
9394 * dbxread.c (find_stab_function_addr): Update.
9395 (end_psymtab): Update.
9396 * dwarf2loc.c (call_site_to_target_addr): Update.
9397 (func_verify_no_selftailcall): Update.
9398 (tailcall_dump): Update.
9399 (call_site_find_chain_1): Update.
9400 (dwarf_expr_reg_to_entry_parameter): Update.
9401 * elfread.c (elf_gnu_ifunc_record_cache): Update.
9402 (elf_gnu_ifunc_resolve_by_got): Update.
9403 * f-valprint.c (info_common_command): Update.
9404 * findvar.c (read_var_value): Update.
9405 * frame.c (get_prev_frame_1): Update.
9406 (inside_main_func): Update.
9407 * frv-tdep.c (frv_skip_main_prologue): Update.
9408 (frv_frame_this_id): Update.
9409 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9410 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
9411 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
9412 (gnuv3_skip_trampoline): Update.
9413 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
9414 (hppa64_hpux_in_solib_call_trampoline): Update.
9415 (hppa_hpux_skip_trampoline_code): Update.
9416 (hppa64_hpux_search_dummy_call_sequence): Update.
9417 (hppa_hpux_find_import_stub_for_addr): Update.
9418 (hppa_hpux_find_dummy_bpaddr): Update.
9419 * hppa-tdep.c (hppa_symbol_address)
9420 (hppa_lookup_stub_minimal_symbol): Update.
9421 * i386-tdep.c (i386_skip_main_prologue): Update.
9422 (i386_pe_skip_trampoline_code): Update.
9423 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
9424 * infcall.c (get_function_name): Update.
9425 * infcmd.c (until_next_command): Update.
9426 * jit.c (jit_breakpoint_re_set_internal): Update.
9427 (jit_inferior_init): Update.
9428 * linespec.c (minsym_found): Update.
9429 (add_minsym): Update.
9430 * linux-fork.c (info_checkpoints_command): Update.
9431 * linux-nat.c (get_signo): Update.
9432 * linux-thread-db.c (inferior_has_bug): Update.
9433 * m32c-tdep.c (m32c_return_value): Update.
9434 (m32c_m16c_address_to_pointer): Update.
9435 (m32c_m16c_pointer_to_address): Update.
9436 * m32r-tdep.c (m32r_frame_this_id): Update.
9437 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9438 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9439 * maint.c (maintenance_translate_address): Update.
9440 * minsyms.c (add_minsym_to_hash_table): Update.
9441 (add_minsym_to_demangled_hash_table): Update.
9442 (msymbol_objfile): Update.
9443 (lookup_minimal_symbol): Update.
9444 (iterate_over_minimal_symbols): Update.
9445 (lookup_minimal_symbol_text): Update.
9446 (lookup_minimal_symbol_by_pc_name): Update.
9447 (lookup_minimal_symbol_solib_trampoline): Update.
9448 (lookup_minimal_symbol_by_pc_section_1): Update.
9449 (lookup_minimal_symbol_and_objfile): Update.
9450 (prim_record_minimal_symbol_full): Update.
9451 (compare_minimal_symbols): Update.
9452 (compact_minimal_symbols): Update.
9453 (build_minimal_symbol_hash_tables): Update.
9454 (install_minimal_symbols): Update.
9455 (terminate_minimal_symbol_table): Update.
9456 (find_solib_trampoline_target): Update.
9457 (minimal_symbol_upper_bound): Update.
9458 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9459 * mips-tdep.c (mips_stub_frame_sniffer): Update.
9460 (mips_skip_pic_trampoline_code): Update.
9461 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
9462 * objc-lang.c (selectors_info): Update.
9463 (classes_info): Update.
9464 (find_methods): Update.
9465 (find_imps): Update.
9466 (find_objc_msgsend): Update.
9467 * objfiles.c (objfile_relocate1): Update.
9468 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
9469 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9470 * p-valprint.c (pascal_val_print): Update.
9471 * parse.c (write_exp_msymbol): Update.
9472 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
9473 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
9474 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9475 * printcmd.c (build_address_symbolic): Update.
9476 (sym_info): Update.
9477 (address_info): Update.
9478 * proc-service.c (ps_pglobal_lookup): Update.
9479 * psymtab.c (find_pc_sect_psymtab_closer): Update.
9480 (find_pc_sect_psymtab): Update.
9481 * python/py-framefilter.c (py_print_frame): Update.
9482 * ravenscar-thread.c (get_running_thread_id): Update.
9483 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
9484 Update.
9485 * remote.c (remote_check_symbols): Update.
9486 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
9487 (rs6000_skip_trampoline_code): Update.
9488 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
9489 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9490 * solib-dsbt.c (lm_base): Update.
9491 * solib-frv.c (lm_base): Update.
9492 (main_got): Update.
9493 * solib-irix.c (locate_base): Update.
9494 * solib-som.c (som_solib_create_inferior_hook): Update.
9495 (som_solib_desire_dynamic_linker_symbols): Update.
9496 (link_map_start): Update.
9497 * solib-spu.c (spu_enable_break): Update.
9498 (ocl_enable_break): Update.
9499 * solib-svr4.c (elf_locate_base): Update.
9500 (enable_break): Update.
9501 * spu-tdep.c (spu_get_overlay_table): Update.
9502 (spu_catch_start): Update.
9503 (flush_ea_cache): Update.
9504 * stabsread.c (define_symbol): Update.
9505 (scan_file_globals): Update.
9506 * stack.c (find_frame_funname): Update.
9507 (frame_info): Update.
9508 * symfile.c (simple_read_overlay_table): Update.
9509 (simple_overlay_update): Update.
9510 * symmisc.c (dump_msymbols): Update.
9511 * symtab.c (fixup_section): Update.
9512 (find_pc_sect_line): Update.
9513 (skip_prologue_sal): Update.
9514 (search_symbols): Update.
9515 (print_msymbol_info): Update.
9516 (rbreak_command): Update.
9517 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
9518 (completion_list_objc_symbol): Update.
9519 (default_make_symbol_completion_list_break_on): Update.
9520 * tracepoint.c (scope_info): Update.
9521 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
9522 (tui_get_begin_asm_address): Update.
9523 * valops.c (find_function_in_inferior): Update.
9524 * value.c (value_static_field): Update.
9525 (value_fn_field): Update.
9526
50e65b17
TT
95272014-02-26 Tom Tromey <tromey@redhat.com>
9528
9529 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
9530 bound minimal symbols. Move code that knows about minsym
9531 table layout...
9532 * minsyms.c (minimal_symbol_upper_bound): ... here. New
9533 function.
9534 * minsyms.h (minimal_symbol_upper_bound): Declare.
9535 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
9536 minimal_symbol_upper_bound.
9537
1b588015
JB
95382014-02-27 Joel Brobecker <brobecker@adacore.com>
9539
9540 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
9541 Use the type's name if its basic type does not have a tag.
9542
dbb9c2b1
JB
95432014-02-27 Joel Brobecker <brobecker@adacore.com>
9544
9545 * dwarf2read.c (read_subrange_type): Add comment.
9546
55426c9d
JB
95472014-02-27 Joel Brobecker <brobecker@adacore.com>
9548
9549 * dwarf2read.c (update_enumeration_type_from_children): New
9550 function, mostly extracted from process_structure_scope.
9551 (read_enumeration_type): Call update_enumeration_type_from_children.
9552 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
9553 and flag_flag_enum fields.
9554
f2fce0ca
PA
95552014-02-26 Pedro Alves <palves@redhat.com>
9556
9557 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
9558 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
9559 to_xfer_partial method.
9560
7a44e40e
PA
95612014-02-26 Pedro Alves <palves@redhat.com>
9562
9563 * target.c (complete_target_initialization): Don't install
9564 default_xfer_partial as to_xfer_partial hook.
9565 (nomemory): Delete.
9566 (update_current_target): Don't INHERIT nor de_fault
9567 deprecated_xfer_memory. Delete de_fault macro.
9568 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
9569 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
9570 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
9571 field.
9572
bd265cd0
PA
95732014-02-26 Pedro Alves <palves@redhat.com>
9574
9575 * go32-nat.c (my_write_child): New function.
9576 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
9577 (go32_xfer_partial): New function.
9578 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
9579 Instead install a to_xfer_partial hook.
9580
9d46c4e5
PA
95812014-02-26 Pedro Alves <palves@redhat.com>
9582
9583 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
9584 to_xfer_partial helper. Rewrite.
9585 (procfs_xfer_partial): New function.
9586 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
9587 Install a to_xfer_partial hook.
9588
a1583b1f
PA
95892014-02-26 Pedro Alves <palves@redhat.com>
9590
9591 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
9592 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
9593 (m32r_xfer_partial): New function.
9594 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
9595 Install a to_xfer_partial hook.
9596
6df1b29f
PA
95972014-02-26 Pedro Alves <palves@redhat.com>
9598
9599 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
9600 helper.
9601 (mips_xfer_partial): New function.
9602 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
9603 hook. Install a to_xfer_partial hook.
9604
dc53a7ad
JB
96052014-02-26 Joel Brobecker <brobecker@adacore.com>
9606
9607 * gdbtypes.h (create_array_type_with_stride): Add declaration.
9608 * gdbtypes.c (create_array_type_with_stride): New function,
9609 renaming create_array_type, but with an added parameter
9610 called "bit_stride".
9611 (create_array_type): Re-implement using
9612 create_array_type_with_stride.
9613 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
9614 and DW_AT_bit_stride attributes.
9615
12ab52e9
PA
96162014-02-26 Pedro Alves <palves@redhat.com>
9617
9618 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
9619 task-specific breakpoints.
9620
d16461ae
PA
96212014-02-25 Pedro Alves <palves@redhat.com>
9622
9623 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
9624 handling of object == TARGET_OBJECT_UNWIND_TABLE.
9625
a8b16220
SS
96262014-02-25 Stan Shebs <stan@codesourcery.com>
9627
9628 * defs.h: Annotate comments for Doxygen.
9629
b9e795ee
TT
96302014-02-25 Tom Tromey <tromey@redhat.com>
9631
9632 * target.h (target_ignore): Don't declare.
9633 * target.c (target_ignore): Remove.
9634
849c862e
JK
96352014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
9636
9637 PR gdb/16626
9638 * auto-load.c (auto_load_objfile_script_1): Change filename to
9639 debugfile.
9640
475109d8
JB
96412014-02-25 Joel Brobecker <brobecker@adacore.com>
9642
9643 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
9644 documentation. Adjust prototype to match the target_ops
9645 to_xfer_partial method. Adjust implementation accordingly.
9646
e186c3bd
HZ
96472014-02-25 Hui Zhu <hui@codesourcery.com>
9648
9649 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
9650 to_traceframe_info.
9651
6d451942
KB
96522014-02-25 Kevin Buettner <kevinb@redhat.com>
9653
041ab8b4 9654 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
6d451942
KB
9655 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
9656 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
9657 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
9658 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
9659 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
9660 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
9661 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
9662 New constants.
9663 (rl78_register_type): Use a data pointer type for SP and
9664 new pseudo registers mentioned above. Use a 16 bit integer
9665 type for all other register pairs.
9666 (rl78_register_name, rl78_g10_register_name): Update for
9667 new pseudo registers.
9668 (rl78_pseudo_register_read): Likewise.
9669 (rl78_pseudo_register_write): Likewise.
9670 (rl78_dwarf_reg_to_regnum): Return register numbers representing
9671 to the newly added pseudo registers.
9672
eddf0bae
DE
96732014-02-24 Doug Evans <dje@google.com>
9674
9675 * value.c (record_latest_value): Fix comment.
9676 * printcmd.c (print_command_1): Remove code to handle -1 return from
9677 record_latest_value.
9678
e96027e0
PA
96792014-02-24 Pedro Alves <palves@redhat.com>
9680
9681 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
9682 deprecated_xfer_memory hook.
9683 (procfs_xfer_partial): Call procfs_xfer_memory instead
9684 of the deprecated_xfer_memory target hook.
9685 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
9686 helper.
9687
0837c976
YZ
96882014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
9689
9690 * windows-nat.c (windows_xfer_shared_libraries): Return
9691 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
9692 requested object is TARGET_OBJECT_LIBRARIES.
9693
bc113b4e
YQ
96942014-02-24 Yao Qi <yao@codesourcery.com>
9695
9696 * target.h (enum target_xfer_status)
9697 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
9698 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
9699 explicitly. New.
9700 * corefile.c (memory_error_message): User updated.
9701 * exec.c (section_table_read_available_memory): Likewise.
9702 * record-btrace.c (record_btrace_xfer_partial): Likewise.
9703 * target.c (target_xfer_status_to_string): Likewise.
9704 (raw_memory_xfer_partial): Likewise.
9705 (memory_xfer_partial_1, target_xfer_partial): Likewise.
9706 * valops.c (read_value_memory): Likewise.
9707 * exec.h: Update comments.
9708
01cb8804
YQ
97092014-02-24 Yao Qi <yao@codesourcery.com>
9710
9711 * target.c (target_xfer_status_to_string): Rename argument err
9712 to status.
9713 * target.h (target_xfer_status_to_string): Update declaration.
9714 Replace target_xfer_error_to_string with
9715 target_xfer_status_to_string in comment.
9716
93063aa6
YQ
97172014-02-24 Yao Qi <yao@codesourcery.com>
9718
9719 * mips-linux-nat.c (super_close): Update its type.
9720 (mips_linux_close): Pass 'self' to super_close.
9721
5c328c05
YQ
97222014-02-24 Yao Qi <yao@codesourcery.com>
9723
9724 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
9725 * corefile.c (read_memory): Adjusted.
9726 * target.c (target_write_with_progress): Adjusted.
9727
f73023dd
YQ
97282014-02-23 Yao Qi <yao@codesourcery.com>
9729
9730 Revert two patches:
9731
9732 2013-10-25 Yao Qi <yao@codesourcery.com>
9733
9734 * remote.c (remote_traceframe_info): Return early if
9735 traceframe is not selected.
9736
9737 2013-07-19 Yao Qi <yao@codesourcery.com>
9738
9739 * target.c (update_current_target): Change the default action
9740 of 'to_traceframe_info' from tcomplain to return_zero.
9741 * target.h (struct target_ops) <to_traceframe_info>: Add more
9742 comments.
9743
5a2eb0ef
YQ
97442014-02-23 Yao Qi <yao@codesourcery.com>
9745
9746 * valops.c (read_value_memory): Rewrite it. Call
9747 target_xfer_partial in a loop.
9748 * exec.h (section_table_available_memory): Remove declaration.
9749 Move comments to ...
9750 * exec.c (section_table_available_memory): ... here. Make it
9751 static.
9752
1ee79381
YQ
97532014-02-23 Yao Qi <yao@codesourcery.com>
9754
9755 * exec.c (section_table_read_available_memory): New function.
9756 * exec.h (section_table_read_available_memory): Declare.
9757 * ctf.c (ctf_xfer_partial): Call
9758 section_table_read_available_memory.
9759 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9760
1ca49d37
YQ
97612014-02-23 Yao Qi <yao@codesourcery.com>
9762
9763 * ctf.c (ctf_xfer_partial): Move code to ...
9764 * exec.c (exec_read_partial_read_only): ... it. New function.
9765 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9766 * tracefile.c: Include "exec.h".
9767 * exec.h (exec_read_partial_read_only): Declare.
9768
a283690e
YQ
97692014-02-23 Yao Qi <yao@codesourcery.com>
9770
9771 * tracefile-tfile.c (tfile_has_all_memory): Remove.
9772 (tfile_has_memory): Remove.
9773 (init_tfile_ops): Don't set fields to_has_all_memory and
9774 to_has_memory of tfile_ops.
9775 * tracefile.c (tracefile_has_all_memory): New function.
9776 (tracefile_has_memory): New function.
9777 (init_tracefile_ops): Initialize fields to_has_all_memory and
9778 to_has_memory of 'ops'.
9779
12e03cd0
YQ
97802014-02-23 Yao Qi <yao@codesourcery.com>
9781
9782 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
9783 (ctf_thread_alive, ctf_get_trace_status): Remove.
9784 (init_ctf_ops): Don't set some fields of ctf_ops. Call
9785 init_tracefile_ops.
9786 * tracefile-tfile.c (tfile_get_trace_status): Remove.
9787 (tfile_has_stack, tfile_has_registers): Remove.
9788 (tfile_thread_alive): Remove.
9789 (init_tfile_ops): Don't set some fields of tfile_ops. Call
9790 init_tracefile_ops.
9791 * tracefile.c (tracefile_has_stack): New function.
9792 (tracefile_has_registers): New function.
9793 (tracefile_thread_alive): New function.
9794 (tracefile_get_trace_status): New function.
9795 (init_tracefile_ops): New function.
9796 * tracefile.h (init_tracefile_ops): Declare.
9797
11395323
YQ
97982014-02-23 Yao Qi <yao@codesourcery.com>
9799
9800 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
9801 (O_LARGEFILE): Likewise.
9802 (tfile_ops): Likewise.
9803 (TRACE_HEADER_SIZE): Likewise.
9804 (trace_fd, trace_frames_offset, cur_offset): Likewise.
9805 (cur_data_size): Likewise.
9806 (tfile_read, tfile_open, tfile_interp_line): Likewise.
9807 (tfile_close, tfile_files_info): Likewise.
9808 (tfile_get_trace_status): Likewise.
9809 (tfile_get_tracepoint_status): Likewise.
9810 (tfile_get_traceframe_address): Likewise.
9811 (tfile_trace_find, match_blocktype): Likewise.
9812 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
9813 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
9814 (tfile_get_trace_state_variable_value): Likewise.
9815 (tfile_has_all_memory, tfile_has_memory): Likewise.
9816 (tfile_has_stack, tfile_has_registers): Likewise.
9817 (tfile_thread_alive, build_traceframe_info): Likewise.
9818 (tfile_traceframe_info, init_tfile_ops): Likewise.
9819 (_initialize_tracepoint): Don't call init_tfile_ops
9820 and add_target_with_completer.
9821 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
9822 exec.h, completer.h and filenames.h.
9823 (_initialize_tracefile_tfile): New function.
9824
7951c4eb
YQ
98252014-02-23 Yao Qi <yao@codesourcery.com>
9826
9827 * Makefile.in (REMOTE_OBS): Append tracefile.o and
9828 tracefile-tfile.o.
9829 (HFILES_NO_SRCDIR): Add tracefile.h.
9830 * ctf.c: Include "tracefile.h".
9831 * tracefile.h: New file.
9832 * tracefile.c: New file
9833 * tracefile-tfile.c: New file.
9834 * tracepoint.c: Include "tracefile.h".
9835 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
9836 (stop_reason_names): Add const.
9837 (trace_file_writer_xfree): Move it to tracefile.c.
9838 (trace_save, trace_save_command, trace_save_tfile): Likewise.
9839 (trace_save_ctf): Likewise.
9840 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
9841 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
9842 (tfile_write_header, tfile_write_regblock_type): Likewise.
9843 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
9844 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
9845 (tfile_write_raw_data, tfile_end): Likewise.
9846 (tfile_trace_file_writer_new): Likewise.
9847 (free_uploaded_tp): Make it extern.
9848 (free_uploaded_tsv): Make it extern.
9849 (_initialize_tracepoint): Move code to register command 'tsave'
9850 to tracefile.c.
9851 * tracepoint.h (stop_reason_names): Declare.
9852 (struct trace_frame_write_ops): Move it to tracefile.h.
9853 (struct trace_file_write_ops): Likewise.
9854 (struct trace_file_writer): Likewise.
9855 (free_uploaded_tsvs, free_uploaded_tps): Declare.
9856
184cd072
JK
98572014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9858
9859 PR gdb/16594
9860 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
9861 process name.
9862 (get_cores_used_by_process): New parameter num_cores, use it.
9863 (linux_xfer_osdata_processes): Pass num_cores to it.
9864 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
9865 process name.
9866
c63528fc
AK
98672014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
9868
9869 * target.c (memory_xfer_partial): Fix length arg in call to
9870 breakpoint_xfer_memory.
9871
d7b30f67
SDJ
98722014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9873
9874 PR tdep/16397
9875 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
9876 number comes after the + or - signs. Adjust length of register
9877 name to be extracted.
9878
8838afaf
TT
98792014-02-20 Tom Tromey <tromey@redhat.com>
9880
9881 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
9882 (ada_varobj_ops): Mark "extern".
9883
05227d14
TT
98842014-02-20 Tom Tromey <tromey@redhat.com>
9885
9886 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
9887
1254eefc
DE
98882014-02-20 Doug Evans <xdje42@gmail.com>
9889
9890 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
9891 All callers updated.
9892 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
9893 All callers updated.
9894 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
9895 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
9896
adde2bff
DE
98972014-02-20 lin zuojian <manjian2006@gmail.com>
9898 Joel Brobecker <brobecker@adacore.com>
9899 Doug Evans <xdje42@gmail.com>
9900
9901 PR symtab/16581
9902 * dwarf2read.c (struct die_info): New member in_process.
9903 (reset_die_in_process): New function.
9904 (process_die): Set it at the start, reset when returning.
9905 (inherit_abstract_dies): Only call process_die if origin_child_die
9906 not already being processed.
9907
3be75f87
JB
99082014-02-20 Joel Brobecker <brobecker@adacore.com>
9909
9910 * windows-nat.c (handle_unload_dll): Add function documentation.
9911 (do_initial_windows_stuff): Add comment explaining why we wait
9912 until after inferior initialization has finished before
9913 processing all DLLs.
9914
47f7ffdb
JB
99152014-02-20 Joel Brobecker <brobecker@adacore.com>
9916
9917 * windows-nat.c (get_module_name): Delete.
9918 (windows_get_exec_module_filename): New function, mostly
9919 inspired from get_module_name.
9920 (windows_pid_to_exec_file): Replace call to get_module_name
9921 by call to windows_get_exec_module_filename.
9922
1cd9feab
JB
99232014-02-20 Joel Brobecker <brobecker@adacore.com>
9924
9925 * windows-nat.c (handle_load_dll): Rewrite this function's
9926 introductory comment. Remove code using get_module_name
9927 to get the DLL's name.
9928
ea39ad35
JB
99292014-02-20 Joel Brobecker <brobecker@adacore.com>
9930
9931 * windows-nat.c (get_windows_debug_event): Ignore
9932 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
9933 if windows_initialization_done == 0.
9934 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
9935 Adjust implementation to always load all DLLs.
9936 (do_initial_windows_stuff): Replace call to
9937 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
9938
95060284
JB
99392014-02-20 Joel Brobecker <brobecker@adacore.com>
9940
9941 * windows-nat.c (_initialize_windows_nat): Deprecate the
9942 "dll-symbols" command. Turn the "add-shared-symbol-files"
9943 and "assf" aliases into commands, and deprecate them as well.
9944 * NEWS: Add entry explaining that "dll-symbols" and its two
9945 aliases are now deprecated.
9946
8d4fdb12
JB
99472014-02-20 Joel Brobecker <brobecker@adacore.com>
9948
9949 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
9950 new-line in debug string. Remove trailing spaces.
9951
1b281443
SS
99522014-02-19 Stan Shebs <stan@codesourcery.com>
9953
9954 * darwin-nat.c (darwin_xfer_partial): Fix return type.
9955
f7bd0f78
SC
99562014-02-19 Siva Chandra Reddy <sivachandra@google.com>
9957
9958 * NEWS: Add entry for the new feature
9959 * python/py-value.c (valpy_binop): Call value_x_binop for struct
9960 and class values.
9961
399ebc3d
SS
99622014-02-19 Stan Shebs <stan@codesourcery.com>
9963
9964 * MAINTAINERS: List Yao Qi as nios2 maintainer.
9965
c658158d
PA
99662014-02-19 Pedro Alves <palves@redhat.com>
9967
9968 * common/ptid.h (struct ptid): Mention that process_stratum
9969 targets should prefer ptid.lwp.
9970
ba348170
PA
99712014-02-19 Pedro Alves <palves@redhat.com>
9972
9973 * remote.c (remote_thread_alive, write_ptid, read_ptid)
9974 (read_ptid, remote_newthread_step, remote_threads_extra_info)
9975 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
9976 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
9977 store remote thread ids rather than ptid.tid.
9978 (_initialize_remote): Adjust.
9979
ac01945b
TT
99802014-02-19 Tom Tromey <tromey@redhat.com>
9981
9982 * target.c (target_get_unwinder): Rewrite.
9983 (target_get_tailcall_unwinder): Rewrite.
9984 * record-btrace.c (record_btrace_to_get_unwinder): New function.
9985 (record_btrace_to_get_tailcall_unwinder): New function.
9986 (init_record_btrace_ops): Update.
9987 * target.h (struct target_ops) <to_get_unwinder,
9988 to_get_tailcall_unwinder>: Now function pointers. Use
9989 TARGET_DEFAULT_RETURN.
9990
8476dc92
TT
99912014-02-19 Tom Tromey <tromey@redhat.com>
9992
9993 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
9994 argument.
9995 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
9996
c0eca49f
TT
99972014-02-19 Tom Tromey <tromey@redhat.com>
9998
9999 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
10000 directly.
10001 * target-delegates.c: Rebuild.
10002 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
10003 TARGET_DEFAULT_FUNC.
10004 * target.c (default_target_decr_pc_after_break): Rename from
10005 forward_target_decr_pc_after_break. Simplify.
10006 (target_decr_pc_after_break): Rely on delegation.
10007
596b6b39
TT
100082014-02-19 Tom Tromey <tromey@redhat.com>
10009
10010 * target.c (update_current_target): Do not INHERIT to_doc or
10011 to_magic. Do not de_fault to_open or to_close.
10012
b427c1bc
TT
100132014-02-19 Tom Tromey <tromey@redhat.com>
10014
10015 * gcore.h (objfile_find_memory_regions): Declare.
10016 * gcore.c (objfile_find_memory_regions): No longer static. Add
10017 "self" argument.
10018 (_initialize_gcore): Don't call exec_set_find_memory_regions.
10019 * exec.c: Include gcore.h.
10020 (exec_set_find_memory_regions): Remove.
10021 (exec_find_memory_regions): Remove.
10022 (exec_do_find_memory_regions): Remove.
10023 (init_exec_ops): Update.
10024 * defs.h (exec_set_find_memory_regions): Remove.
10025
9b144037
TT
100262014-02-19 Tom Tromey <tromey@redhat.com>
10027
10028 * target-delegates.c: Rebuild.
10029 * target.h (struct target_ops) <to_extra_thread_info,
10030 to_thread_name, to_pid_to_exec_file, to_get_section_table,
10031 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
10032 not 0, in TARGET_DEFAULT_RETURN.
10033
555bbdeb
TT
100342014-02-19 Tom Tromey <tromey@redhat.com>
10035
10036 * target.c (complete_target_initialization): Remove casts. Use
10037 return_zero_has_execution.
10038 (return_zero): Add "ignore" argument.
10039 (return_zero_has_execution): New function.
10040 (init_dummy_target): Remove casts. Use
10041 return_zero_has_execution.
10042
be4ddd36
TT
100432014-02-19 Tom Tromey <tromey@redhat.com>
10044
10045 * target.c (update_current_target): Update comments. Do not
10046 INHERIT to_stratum.
10047
2117c711
TT
100482014-02-19 Tom Tromey <tromey@redhat.com>
10049
10050 * arm-linux-nat.c (arm_linux_read_description): Delegate when
10051 needed.
10052 * corelow.c (core_read_description): Delegate when needed.
10053 * remote.c (remote_read_description): Delegate when needed.
10054 * target-delegates.c: Rebuild.
10055 * target.c (target_read_description): Rewrite.
10056 * target.h (struct target_ops) <to_read_description>: Update
10057 comment. Use TARGET_DEFAULT_RETURN.
10058
e88ef65c
TT
100592014-02-19 Tom Tromey <tromey@redhat.com>
10060
10061 * target-delegates.c: Rebuild.
10062 * target.c (update_current_target): Don't inherit or default
10063 to_can_run.
10064 (find_default_run_target): Check against delegate_can_run.
10065 * target.h (struct target_ops) <to_can_run>: Use
10066 TARGET_DEFAULT_RETURN.
10067
86a0854a
TT
100682014-02-19 Tom Tromey <tromey@redhat.com>
10069
10070 * target-delegates.c: Rebuild.
10071 * target.c (target_disconnect): Unconditionally delegate.
10072 * target.h (struct target_ops) <to_disconnect>: Use
10073 TARGET_DEFAULT_NORETURN.
10074
ee97f592
TT
100752014-02-19 Tom Tromey <tromey@redhat.com>
10076
10077 * record.c (record_stop): Unconditionally delegate.
10078 * target-delegates.c: Rebuild.
10079 * target.c (target_stop_recording): Unconditionally delegate.
10080 * target.h (struct target_ops) <to_stop_recording>: Use
10081 TARGET_DEFAULT_IGNORE.
10082
6dc7fcf4
TT
100832014-02-19 Tom Tromey <tromey@redhat.com>
10084
10085 * target-delegates.c: Rebuild.
10086 * target.c (target_enable_btrace): Unconditionally delegate.
10087 * target.h (struct target_ops) <to_enable_btrace>: Use
10088 TARGET_DEFAULT_NORETURN.
10089
eb5b20d4
TT
100902014-02-19 Tom Tromey <tromey@redhat.com>
10091
10092 * target-delegates.c: Rebuild.
10093 * target.c (target_read_btrace): Unconditionally delegate.
10094 * target.h (struct target_ops) <to_read_btrace>: Use
10095 TARGET_DEFAULT_NORETURN.
10096
9ace480d
TT
100972014-02-19 Tom Tromey <tromey@redhat.com>
10098
10099 * target-delegates.c: Rebuild.
10100 * target.c (target_teardown_btrace): Unconditionally delegate.
10101 * target.h (struct target_ops) <to_teardown_btrace>: Use
10102 TARGET_DEFAULT_NORETURN.
10103
8dc292d3
TT
101042014-02-19 Tom Tromey <tromey@redhat.com>
10105
10106 * target-delegates.c: Rebuild.
10107 * target.c (target_disable_btrace): Unconditionally delegate.
10108 * target.h (struct target_ops) <to_disable_btrace>: Use
10109 TARGET_DEFAULT_NORETURN.
10110
58a5184e
TT
101112014-02-19 Tom Tromey <tromey@redhat.com>
10112
10113 * target-delegates.c: Rebuild.
10114 * target.c (default_search_memory): New function.
10115 (simple_search_memory): Update comment.
10116 (target_search_memory): Unconditionally delegate.
10117 * target.h (struct target_ops) <to_search_memory>: Use
10118 TARGET_DEFAULT_FUNC.
10119
8de71aab
TT
101202014-02-19 Tom Tromey <tromey@redhat.com>
10121
10122 * auxv.c (default_auxv_parse): No longer static.
10123 (target_auxv_parse): Unconditionally delegate.
10124 * auxv.h (default_auxv_parse): Declare.
10125 * target-delegates.c: Rebuild.
10126 * target.c: Include auxv.h.
10127 * target.h (struct target_ops) <to_auxv_parse>: Use
10128 TARGET_DEFAULT_FUNC.
10129
6b2c5a57
TT
101302014-02-19 Tom Tromey <tromey@redhat.com>
10131
10132 * target-delegates.c: Rebuild.
10133 * target.c (target_memory_map): Unconditionally delegate.
10134 * target.h (struct target_ops) <to_memory_map>: Use
10135 TARGET_DEFAULT_RETURN.
10136
cbffc065
TT
101372014-02-19 Tom Tromey <tromey@redhat.com>
10138
10139 * target-delegates.c: Rebuild.
10140 * target.c (target_thread_alive): Unconditionally delegate.
10141 * target.h (struct target_ops) <to_thread_alive>: Use
10142 TARGET_DEFAULT_RETURN.
10143
f09e2107
TT
101442014-02-19 Tom Tromey <tromey@redhat.com>
10145
10146 * target-delegates.c: Rebuild.
10147 * target.c (target_save_record): Unconditionally delegate.
10148 * target.h (struct target_ops) <to_save_record>: Use
10149 TARGET_DEFAULT_NORETURN.
10150
07366925
TT
101512014-02-19 Tom Tromey <tromey@redhat.com>
10152
10153 * target-delegates.c: Rebuild.
10154 * target.c (target_delete_record): Unconditionally delegate.
10155 * target.h (struct target_ops) <to_delete_record>: Use
10156 TARGET_DEFAULT_NORETURN.
10157
dd2e9d25
TT
101582014-02-19 Tom Tromey <tromey@redhat.com>
10159
10160 * target-delegates.c: Rebuild.
10161 * target.c (target_record_is_replaying): Unconditionally
10162 delegate.
10163 * target.h (struct target_ops) <to_record_is_replaying>: Use
10164 TARGET_DEFAULT_RETURN.
10165
671e76cc
TT
101662014-02-19 Tom Tromey <tromey@redhat.com>
10167
10168 * target-delegates.c: Rebuild.
10169 * target.c (target_goto_record_begin): Unconditionally delegate.
10170 * target.h (struct target_ops) <to_goto_record_begin>: Use
10171 TARGET_DEFAULT_NORETURN.
10172
e9179bb3
TT
101732014-02-19 Tom Tromey <tromey@redhat.com>
10174
10175 * target-delegates.c: Rebuild.
10176 * target.c (target_goto_record_end): Unconditionally delegate.
10177 * target.h (struct target_ops) <to_goto_record_end>: Use
10178 TARGET_DEFAULT_NORETURN.
10179
05969c84
TT
101802014-02-19 Tom Tromey <tromey@redhat.com>
10181
10182 * target-delegates.c: Rebuild.
10183 * target.c (target_goto_record): Unconditionally delegate.
10184 * target.h (struct target_ops) <to_goto_record>: Use
10185 TARGET_DEFAULT_NORETURN.
10186
3679abfa
TT
101872014-02-19 Tom Tromey <tromey@redhat.com>
10188
10189 * target-delegates.c: Rebuild.
10190 * target.c (target_insn_history): Unconditionally delegate.
10191 * target.h (struct target_ops) <to_insn_history>: Use
10192 TARGET_DEFAULT_NORETURN.
10193
8444ab58
TT
101942014-02-19 Tom Tromey <tromey@redhat.com>
10195
10196 * target-delegates.c: Rebuild.
10197 * target.c (target_insn_history_from): Unconditionally delegate.
10198 * target.h (struct target_ops) <to_insn_history_from>: Use
10199 TARGET_DEFAULT_NORETURN.
10200
c29302cc
TT
102012014-02-19 Tom Tromey <tromey@redhat.com>
10202
10203 * target-delegates.c: Rebuild.
10204 * target.c (target_insn_history_range): Unconditionally delegate.
10205 * target.h (struct target_ops) <to_insn_history_range>: Use
10206 TARGET_DEFAULT_NORETURN.
10207
170049d4
TT
102082014-02-19 Tom Tromey <tromey@redhat.com>
10209
10210 * target-delegates.c: Rebuild.
10211 * target.c (target_call_history): Unconditionally delegate.
10212 * target.h (struct target_ops) <to_call_history>: Use
10213 TARGET_DEFAULT_NORETURN.
10214
16fc27d6
TT
102152014-02-19 Tom Tromey <tromey@redhat.com>
10216
10217 * target-delegates.c: Rebuild.
10218 * target.c (target_call_history_from): Unconditionally delegate.
10219 * target.h (struct target_ops) <to_call_history_from>: Use
10220 TARGET_DEFAULT_NORETURN.
10221
115d9817
TT
102222014-02-19 Tom Tromey <tromey@redhat.com>
10223
10224 * target-delegates.c: Rebuild.
10225 * target.c (target_call_history_range): Unconditionally delegate.
10226 * target.h (struct target_ops) <to_call_history_range>: Use
10227 TARGET_DEFAULT_NORETURN.
10228
eb276a6b
TT
102292014-02-19 Tom Tromey <tromey@redhat.com>
10230
10231 * target-delegates.c: Rebuild.
10232 * target.c (target_verify_memory): Unconditionally delegate.
10233 * target.h (struct target_ops) <to_verify_memory>: Use
10234 TARGET_DEFAULT_NORETURN.
10235
9e538d0d
TT
102362014-02-19 Tom Tromey <tromey@redhat.com>
10237
10238 * target-delegates.c: Rebuild.
10239 * target.c (target_core_of_thread): Unconditionally delegate.
10240 * target.h (struct target_ops) <to_core_of_thread>: Use
10241 TARGET_DEFAULT_RETURN.
10242
f6fb2925
TT
102432014-02-19 Tom Tromey <tromey@redhat.com>
10244
10245 * target-delegates.c: Rebuild.
10246 * target.c (target_flash_done): Unconditionally delegate.
10247 * target.h (struct target_ops) <to_flash_done>: Use
10248 TARGET_DEFAULT_NORETURN.
10249
e8a6c6ac
TT
102502014-02-19 Tom Tromey <tromey@redhat.com>
10251
10252 * target-delegates.c: Rebuild.
10253 * target.c (target_flash_erase): Unconditionally delegate.
10254 * target.h (struct target_ops) <to_flash_erase>: Use
10255 TARGET_DEFAULT_NORETURN.
10256
7e35c012
TT
102572014-02-19 Tom Tromey <tromey@redhat.com>
10258
10259 * target-delegates.c: Rebuild.
10260 * target.c (target_get_section_table): Unconditionally delegate.
10261 * target.h (struct target_ops) <to_get_section_table>: Use
10262 TARGET_DEFAULT_RETURN.
10263
770234d3
TT
102642014-02-19 Tom Tromey <tromey@redhat.com>
10265
10266 * target-delegates.c: Rebuild.
10267 * target.c (target_pid_to_str): Unconditionally delegate.
10268 (init_dummy_target): Don't initialize to_pid_to_str.
10269 (default_pid_to_str): Rename from dummy_pid_to_str.
10270 * target.h (struct target_ops) <to_pid_to_str>: Use
10271 TARGET_DEFAULT_FUNC.
10272
09b0dc2b
TT
102732014-02-19 Tom Tromey <tromey@redhat.com>
10274
10275 * target-delegates.c: Rebuild.
10276 * target.c (target_find_new_threads): Unconditionally delegate.
10277 * target.h (struct target_ops) <to_find_new_threads>: Use
10278 TARGET_DEFAULT_RETURN.
10279
7d4f8efa
TT
102802014-02-19 Tom Tromey <tromey@redhat.com>
10281
10282 * target-delegates.c: Rebuild.
10283 * target.c (target_program_signals): Unconditionally delegate.
10284 * target.h (struct target_ops) <to_program_signals>: Use
10285 TARGET_DEFAULT_IGNORE.
10286
035cad7f
TT
102872014-02-19 Tom Tromey <tromey@redhat.com>
10288
10289 * target-delegates.c: Rebuild.
10290 * target.c (target_pass_signals): Unconditionally delegate.
10291 * target.h (struct target_ops) <to_pass_signals>: Use
10292 TARGET_DEFAULT_IGNORE.
10293
8d657035
TT
102942014-02-19 Tom Tromey <tromey@redhat.com>
10295
10296 * target-delegates.c: Rebuild.
10297 * target.c (default_mourn_inferior): New function.
10298 (target_mourn_inferior): Unconditionally delegate.
10299 * target.h (struct target_ops) <to_mourn_inferior>: Use
10300 TARGET_DEFAULT_FUNC.
10301
098dba18
TT
103022014-02-19 Tom Tromey <tromey@redhat.com>
10303
10304 * target-delegates.c: Rebuild.
10305 * target.c (default_follow_fork): New function.
10306 (target_follow_fork): Unconditionally delegate.
10307 * target.h (struct target_ops) <to_follow_fork>: Use
10308 TARGET_DEFAULT_FUNC.
10309
423a4807
TT
103102014-02-19 Tom Tromey <tromey@redhat.com>
10311
10312 * target-delegates.c: Rebuild.
10313 * target.c (target_kill): Unconditionally delegate.
10314 * target.h (struct target_ops) <to_kill>: Use
10315 TARGET_DEFAULT_NORETURN.
10316
6c7e5e5c
TT
103172014-02-19 Tom Tromey <tromey@redhat.com>
10318
10319 * target-delegates.c: Rebuild.
10320 * target.c (target_masked_watch_num_registers): Unconditionally
10321 delegate.
10322 * target.h (struct target_ops) <to_masked_watch_num_registers>:
10323 Use TARGET_DEFAULT_RETURN.
10324
8b1c364c
TT
103252014-02-19 Tom Tromey <tromey@redhat.com>
10326
10327 * target-delegates.c: Rebuild.
10328 * target.c (target_remove_mask_watchpoint): Unconditionally
10329 delegate.
10330 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
10331 TARGET_DEFAULT_RETURN.
10332
cd4ae029
TT
103332014-02-19 Tom Tromey <tromey@redhat.com>
10334
10335 * target-delegates.c: Rebuild.
10336 * target.c (target_insert_mask_watchpoint): Unconditionally
10337 delegate.
10338 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
10339 TARGET_DEFAULT_RETURN.
10340
a134316b
TT
103412014-02-19 Tom Tromey <tromey@redhat.com>
10342
10343 * target-delegates.c: Rebuild.
10344 * target.c (target_ranged_break_num_registers): Unconditionally
10345 delegate.
10346 * target.h (struct target_ops) <to_ranged_break_num_registers>:
10347 Use TARGET_DEFAULT_RETURN.
10348
ad5989bd
TT
103492014-02-19 Tom Tromey <tromey@redhat.com>
10350
10351 * target-delegates.c: Rebuild.
10352 * target.c (target_fetch_registers): Unconditionally delegate.
10353 * target.h (struct target_ops) <to_fetch_registers>: Use
10354 TARGET_DEFAULT_NORETURN.
10355
46ee7e8d
TT
103562014-02-19 Tom Tromey <tromey@redhat.com>
10357
10358 * target-delegates.c: Rebuild.
10359 * target.c (update_current_target): Don't inherit or default
10360 to_stop.
10361 * target.h (struct target_ops) <to_stop>: Use
10362 TARGET_DEFAULT_IGNORE.
10363
843f59ed
TT
103642014-02-19 Tom Tromey <tromey@redhat.com>
10365
10366 * target-delegates.c: Rebuild.
10367 * target.c (update_current_target): Don't inherit or default
10368 to_can_run_breakpoint_commands.
10369 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
10370 Use TARGET_DEFAULT_RETURN.
10371
ccfde2a0
TT
103722014-02-19 Tom Tromey <tromey@redhat.com>
10373
10374 * target-delegates.c: Rebuild.
10375 * target.c (update_current_target): Don't inherit or default
10376 to_supports_evaluation_of_breakpoint_conditions.
10377 * target.h (struct target_ops)
10378 <to_supports_evaluation_of_breakpoint_conditions>: Use
10379 TARGET_DEFAULT_RETURN.
10380
0de91722
TT
103812014-02-19 Tom Tromey <tromey@redhat.com>
10382
10383 * target-delegates.c: Rebuild.
10384 * target.c (update_current_target): Don't inherit or default
10385 to_augmented_libraries_svr4_read.
10386 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
10387 Use TARGET_DEFAULT_RETURN.
10388
9a7d8b48
TT
103892014-02-19 Tom Tromey <tromey@redhat.com>
10390
10391 * target-delegates.c: Rebuild.
10392 * target.c (update_current_target): Don't inherit or default
10393 to_can_use_agent.
10394 * target.h (struct target_ops) <to_can_use_agent>: Use
10395 TARGET_DEFAULT_RETURN.
10396
d9db5b21
TT
103972014-02-19 Tom Tromey <tromey@redhat.com>
10398
10399 * target-delegates.c: Rebuild.
10400 * target.c (update_current_target): Don't inherit or default
10401 to_use_agent.
10402 * target.h (struct target_ops) <to_use_agent>: Use
10403 TARGET_DEFAULT_NORETURN.
10404
92155eeb
TT
104052014-02-19 Tom Tromey <tromey@redhat.com>
10406
10407 * target-delegates.c: Rebuild.
10408 * target.c (update_current_target): Don't inherit or default
10409 to_traceframe_info.
10410 (return_null): Remove.
10411 * target.h (struct target_ops) <to_traceframe_info>: Use
10412 TARGET_DEFAULT_RETURN.
10413
d6522a22
TT
104142014-02-19 Tom Tromey <tromey@redhat.com>
10415
10416 * target-delegates.c: Rebuild.
10417 * target.c (update_current_target): Don't inherit or default
10418 to_static_tracepoint_markers_by_strid.
10419 * target.h (struct target_ops)
10420 <to_static_tracepoint_markers_by_strid>: Use
10421 TARGET_DEFAULT_NORETURN.
10422
4c3e4425
TT
104232014-02-19 Tom Tromey <tromey@redhat.com>
10424
10425 * target-delegates.c: Rebuild.
10426 * target.c (update_current_target): Don't inherit or default
10427 to_static_tracepoint_marker_at.
10428 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
10429 Use TARGET_DEFAULT_RETURN.
10430
dcd6917f
TT
104312014-02-19 Tom Tromey <tromey@redhat.com>
10432
10433 * target-delegates.c: Rebuild.
10434 * target.c (update_current_target): Don't inherit or default
10435 to_set_permissions.
10436 * target.h (struct target_ops) <to_set_permissions>: Use
10437 TARGET_DEFAULT_IGNORE.
10438
22bcceee
TT
104392014-02-19 Tom Tromey <tromey@redhat.com>
10440
10441 * target-delegates.c: Rebuild.
10442 * target.c (update_current_target): Don't inherit or default
10443 to_get_tib_address.
10444 * target.h (struct target_ops) <to_get_tib_address>: Use
10445 TARGET_DEFAULT_NORETURN.
10446
8586ccaa
TT
104472014-02-19 Tom Tromey <tromey@redhat.com>
10448
10449 * target-delegates.c: Rebuild.
10450 * target.c (update_current_target): Don't inherit or default
10451 to_set_trace_notes.
10452 * target.h (struct target_ops) <to_set_trace_notes>: Use
10453 TARGET_DEFAULT_RETURN.
10454
91df8d1d
TT
104552014-02-19 Tom Tromey <tromey@redhat.com>
10456
10457 * target-delegates.c: Rebuild.
10458 * target.c (update_current_target): Don't initialize
10459 to_set_trace_buffer_size.
10460 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
10461 TARGET_DEFAULT_IGNORE.
10462
8d526939
TT
104632014-02-19 Tom Tromey <tromey@redhat.com>
10464
10465 * target-delegates.c: Rebuild.
10466 * target.c (update_current_target): Don't inherit or default
10467 to_set_circular_trace_buffer.
10468 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
10469 TARGET_DEFAULT_IGNORE.
10470
0bcfeddf
TT
104712014-02-19 Tom Tromey <tromey@redhat.com>
10472
10473 * target-delegates.c: Rebuild.
10474 * target.c (update_current_target): Don't inherit or default
10475 to_set_disconnected_tracing.
10476 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
10477 TARGET_DEFAULT_IGNORE.
10478
9249843f
TT
104792014-02-19 Tom Tromey <tromey@redhat.com>
10480
10481 * target-delegates.c: Rebuild.
10482 * target.c (update_current_target): Don't inherit or default
10483 to_get_min_fast_tracepoint_insn_len.
10484 (return_minus_one): Remove.
10485 * target.h (struct target_ops)
10486 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
10487
ace92e7d
TT
104882014-02-19 Tom Tromey <tromey@redhat.com>
10489
10490 * target-delegates.c: Rebuild.
10491 * target.c (update_current_target): Don't inherit or default
10492 to_get_raw_trace_data.
10493 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
10494 TARGET_DEFAULT_NORETURN.
10495
08120467
TT
104962014-02-19 Tom Tromey <tromey@redhat.com>
10497
10498 * target-delegates.c: Rebuild.
10499 * target.c (update_current_target): Don't inherit or default
10500 to_upload_trace_state_variables.
10501 * target.h (struct target_ops) <to_upload_trace_state_variables>:
10502 Use TARGET_DEFAULT_RETURN.
10503
1e949b00
TT
105042014-02-19 Tom Tromey <tromey@redhat.com>
10505
10506 * target-delegates.c: Rebuild.
10507 * target.c (update_current_target): Don't inherit or default
10508 to_upload_tracepoints.
10509 * target.h (struct target_ops) <to_upload_tracepoints>: Use
10510 TARGET_DEFAULT_RETURN.
10511
a2e6c147
TT
105122014-02-19 Tom Tromey <tromey@redhat.com>
10513
10514 * target-delegates.c: Rebuild.
10515 * target.c (update_current_target): Don't inherit or default
10516 to_save_trace_data.
10517 * target.h (struct target_ops) <to_save_trace_data>: Use
10518 TARGET_DEFAULT_NORETURN.
10519
959bcd0b
TT
105202014-02-19 Tom Tromey <tromey@redhat.com>
10521
10522 * target-delegates.c: Rebuild.
10523 * target.c (update_current_target): Don't inherit or default
10524 to_get_trace_state_variable_value.
10525 * target.h (struct target_ops)
10526 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
10527
afc94e66
TT
105282014-02-19 Tom Tromey <tromey@redhat.com>
10529
10530 * target-delegates.c: Rebuild.
10531 * target.c (update_current_target): Don't inherit or default
10532 to_trace_find.
10533 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
10534
e51c07ea
TT
105352014-02-19 Tom Tromey <tromey@redhat.com>
10536
10537 * target-delegates.c: Rebuild.
10538 * target.c (update_current_target): Don't inherit or default
10539 to_trace_stop.
10540 * target.h (struct target_ops) <to_trace_stop>: Use
10541 TARGET_DEFAULT_NORETURN.
10542
6fea14cd
TT
105432014-02-19 Tom Tromey <tromey@redhat.com>
10544
10545 * target-delegates.c: Rebuild.
10546 * target.c (update_current_target): Don't inherit or default
10547 to_get_tracepoint_status.
10548 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
10549 TARGET_DEFAULT_NORETURN.
10550
4072d4ff
TT
105512014-02-19 Tom Tromey <tromey@redhat.com>
10552
10553 * target-delegates.c: Rebuild.
10554 * target.c (update_current_target): Don't inherit or default
10555 to_get_trace_status.
10556 * target.h (struct target_ops) <to_get_trace_status>: Use
10557 TARGET_DEFAULT_RETURN.
10558
25da2e80
TT
105592014-02-19 Tom Tromey <tromey@redhat.com>
10560
10561 * target-delegates.c: Rebuild.
10562 * target.c (update_current_target): Don't inherit or default
10563 to_trace_start.
10564 * target.h (struct target_ops) <to_trace_start>: Use
10565 TARGET_DEFAULT_NORETURN.
10566
86dd181d
TT
105672014-02-19 Tom Tromey <tromey@redhat.com>
10568
10569 * target-delegates.c: Rebuild.
10570 * target.c (update_current_target): Don't inherit or default
10571 to_trace_set_readonly_regions.
10572 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
10573 Use TARGET_DEFAULT_NORETURN.
10574
05c41993
TT
105752014-02-19 Tom Tromey <tromey@redhat.com>
10576
10577 * target-delegates.c: Rebuild.
10578 * target.c (update_current_target): Don't inherit or default
10579 to_disable_tracepoint.
10580 * target.h (struct target_ops) <to_disable_tracepoint>: Use
10581 TARGET_DEFAULT_NORETURN.
10582
151f70f1
TT
105832014-02-19 Tom Tromey <tromey@redhat.com>
10584
10585 * target-delegates.c: Rebuild.
10586 * target.c (update_current_target): Don't inherit or default
10587 to_enable_tracepoint.
10588 * target.h (struct target_ops) <to_enable_tracepoint>: Use
10589 TARGET_DEFAULT_NORETURN.
10590
94eb98b9
TT
105912014-02-19 Tom Tromey <tromey@redhat.com>
10592
10593 * target-delegates.c: Rebuild.
10594 * target.c (update_current_target): Don't inherit or default
10595 to_download_trace_state_variable.
10596 * target.h (struct target_ops) <to_download_trace_state_variable>:
10597 Use TARGET_DEFAULT_NORETURN.
10598
719acc4a
TT
105992014-02-19 Tom Tromey <tromey@redhat.com>
10600
10601 * target-delegates.c: Rebuild.
10602 * target.c (update_current_target): Don't inherit or default
10603 to_can_download_tracepoint.
10604 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
10605 TARGET_DEFAULT_RETURN.
10606
9a980a22
TT
106072014-02-19 Tom Tromey <tromey@redhat.com>
10608
10609 * target-delegates.c: Rebuild.
10610 * target.c (update_current_target): Don't inherit or default
10611 to_download_tracepoint.
10612 * target.h (struct target_ops) <to_download_tracepoint>: Use
10613 TARGET_DEFAULT_NORETURN.
10614
5536135b
TT
106152014-02-19 Tom Tromey <tromey@redhat.com>
10616
10617 * target-delegates.c: Rebuild.
10618 * target.c (update_current_target): Don't inherit or default
10619 to_trace_init.
10620 * target.h (struct target_ops) <to_trace_init>: Use
10621 TARGET_DEFAULT_RETURN.
10622
9409d39e
TT
106232014-02-19 Tom Tromey <tromey@redhat.com>
10624
10625 * target-delegates.c: Rebuild.
10626 * target.c (update_current_target): Don't inherit or default
10627 to_supports_string_tracing.
10628 * target.h (struct target_ops) <to_supports_string_tracing>: Use
10629 TARGET_DEFAULT_RETURN.
10630
aab1b22d
TT
106312014-02-19 Tom Tromey <tromey@redhat.com>
10632
10633 * target-delegates.c: Rebuild.
10634 * target.c (update_current_target): Don't inherit or default
10635 to_supports_enable_disable_tracepoint.
10636 * target.h (struct target_ops)
10637 <to_supports_enable_disable_tracepoint>: Use
10638 TARGET_DEFAULT_RETURN.
10639
a7304748
TT
106402014-02-19 Tom Tromey <tromey@redhat.com>
10641
10642 * target-delegates.c: Rebuild.
10643 * target.c (update_current_target): Don't inherit or default
10644 to_supports_multi_process.
10645 * target.h (struct target_ops) <to_supports_multi_process>: Use
10646 TARGET_DEFAULT_RETURN.
10647
4229b31d
TT
106482014-02-19 Tom Tromey <tromey@redhat.com>
10649
10650 * target-delegates.c: Rebuild.
10651 * target.c (update_current_target): Don't inherit or default
10652 to_get_ada_task_ptid.
10653 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
10654 TARGET_DEFAULT_FUNC.
10655
43eba180
TT
106562014-02-19 Tom Tromey <tromey@redhat.com>
10657
10658 * target-delegates.c: Rebuild.
10659 * target.c (update_current_target): Don't inherit or default
10660 to_thread_architecture.
10661 * target.h (struct target_ops) <to_thread_architecture>: Use
10662 TARGET_DEFAULT_FUNC.
10663
fe31bf5b
TT
106642014-02-19 Tom Tromey <tromey@redhat.com>
10665
10666 * target-delegates.c: Rebuild.
10667 * target.c (update_current_target): Don't inherit or default
10668 to_execution_direction.
10669 * target.h (struct target_ops) <to_execution_direction>: Use
10670 TARGET_DEFAULT_FUNC.
10671
53e1cfc7
TT
106722014-02-19 Tom Tromey <tromey@redhat.com>
10673
10674 * target-delegates.c: Rebuild.
10675 * target.c (update_current_target): Don't inherit or default
10676 to_can_execute_reverse.
10677 * target.h (struct target_ops) <to_can_execute_reverse>: Use
10678 TARGET_DEFAULT_RETURN.
10679 (target_can_execute_reverse): Unconditionally delegate.
10680
9bb9d61d
TT
106812014-02-19 Tom Tromey <tromey@redhat.com>
10682
10683 * target-delegates.c: Rebuild.
10684 * target.c (update_current_target): Don't inherit or default
10685 to_goto_bookmark.
10686 (dummy_goto_bookmark): Remove.
10687 (init_dummy_target): Don't inherit or default to_goto_bookmark.
10688 * target.h (struct target_ops) <to_goto_bookmark>: Use
10689 TARGET_DEFAULT_NORETURN.
10690
3dbafbbb
TT
106912014-02-19 Tom Tromey <tromey@redhat.com>
10692
10693 * target-delegates.c: Rebuild.
10694 * target.c (update_current_target): Don't inherit or default
10695 to_get_bookmark.
10696 (dummy_get_bookmark): Remove.
10697 (init_dummy_target): Don't inherit or default to_get_bookmark.
10698 * target.h (struct target_ops) <to_get_bookmark>: Use
10699 TARGET_DEFAULT_NORETURN
10700
16f796b1
TT
107012014-02-19 Tom Tromey <tromey@redhat.com>
10702
10703 * target-delegates.c: Rebuild.
10704 * target.c (update_current_target): Don't inherit or default
10705 to_make_corefile_notes.
10706 (init_dummy_target): Don't initialize to_make_corefile_notes.
10707 * target.h (struct target_ops) <to_make_corefile_notes>: Use
10708 TARGET_DEFAULT_FUNC.
10709
0b5a2719
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_find_memory_regions.
10715 (init_dummy_target): Don't initialize to_find_memory_regions.
10716 * target.h (struct target_ops) <to_find_memory_regions>: Use
10717 TARGET_DEFAULT_FUNC.
10718
d9cb0195
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_log_command.
10724 * target.h (struct target_ops) <to_log_command>: Use
10725 TARGET_DEFAULT_IGNORE.
10726 (target_log_command): Unconditionally delegate.
10727
830ca330
TT
107282014-02-19 Tom Tromey <tromey@redhat.com>
10729
10730 * target-delegates.c: Rebuild.
10731 * target.c (update_current_target): Don't inherit or default
10732 to_pid_to_exec_file.
10733 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
10734 TARGET_DEFAULT_RETURN.
10735
825828fc
TT
107362014-02-19 Tom Tromey <tromey@redhat.com>
10737
10738 * target-delegates.c: Rebuild.
10739 * target.c (update_current_target): Don't inherit or default
10740 to_thread_name.
10741 (target_thread_name): Unconditionally delegate.
10742 * target.h (struct target_ops) <to_thread_name>: Use
10743 TARGET_DEFAULT_RETURN.
10744
4a7e6dda
TT
107452014-02-19 Tom Tromey <tromey@redhat.com>
10746
10747 * target-delegates.c: Rebuild.
10748 * target.c (update_current_target): Don't inherit or default
10749 to_extra_thread_info.
10750 * target.h (struct target_ops) <to_extra_thread_info>: Use
10751 TARGET_DEFAULT_RETURN.
10752
0db88c1d
TT
107532014-02-19 Tom Tromey <tromey@redhat.com>
10754
10755 * target-delegates.c: Rebuild.
10756 * target.c (update_current_target): Don't inherit or default
10757 to_has_exited.
10758 * target.h (struct target_ops) <to_has_exited>: Use
10759 TARGET_DEFAULT_RETURN..
10760
6a9fa051
TT
107612014-02-19 Tom Tromey <tromey@redhat.com>
10762
10763 * target-delegates.c: Rebuild.
10764 * target.c (update_current_target): Don't inherit or default
10765 to_set_syscall_catchpoint.
10766 (return_one): Remove.
10767 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
10768 TARGET_DEFAULT_RETURN.
10769
62f64d7a
TT
107702014-02-19 Tom Tromey <tromey@redhat.com>
10771
10772 * target-delegates.c: Rebuild.
10773 * target.c (update_current_target): Don't inherit or default
10774 to_insert_exec_catchpoint.
10775 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
10776 TARGET_DEFAULT_RETURN.
10777
cda0f38c
TT
107782014-01-08 Tom Tromey <tromey@redhat.com>
10779
10780 * target-delegates.c: Rebuild.
10781 * target.c (update_current_target): Don't inherit or default
10782 to_insert_exec_catchpoint.
10783 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
10784 TARGET_DEFAULT_RETURN.
10785
95c3375e
TT
107862014-02-19 Tom Tromey <tromey@redhat.com>
10787
10788 * target-delegates.c: Rebuild.
10789 * target.c (update_current_target): Don't inherit or default
10790 to_remove_vfork_catchpoint.
10791 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
10792 TARGET_DEFAULT_RETURN.
10793
7e18a8dc
TT
107942014-02-19 Tom Tromey <tromey@redhat.com>
10795
10796 * target-delegates.c: Rebuild.
10797 * target.c (update_current_target): Don't inherit or default
10798 to_insert_vfork_catchpoint.
10799 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
10800 TARGET_DEFAULT_RETURN.
10801
e1a21fb7
TT
108022014-02-19 Tom Tromey <tromey@redhat.com>
10803
10804 * target-delegates.c: Rebuild.
10805 * target.c (update_current_target): Don't inherit or default
10806 to_remove_fork_catchpoint.
10807 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
10808 TARGET_DEFAULT_RETURN.
10809
5958ebeb
TT
108102014-02-19 Tom Tromey <tromey@redhat.com>
10811
10812 * target-delegates.c: Rebuild.
10813 * target.c (update_current_target): Don't inherit or default
10814 to_insert_fork_catchpoint.
10815 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
10816 TARGET_DEFAULT_RETURN.
10817
340ba4bf
TT
108182014-02-19 Tom Tromey <tromey@redhat.com>
10819
10820 * target-delegates.c: Rebuild.
10821 * target.c (update_current_target): Don't inherit or default
10822 to_post_startup_inferior.
10823 * target.h (struct target_ops) <to_post_startup_inferior>: Use
10824 TARGET_DEFAULT_IGNORE.
10825
7634da87
TT
108262014-02-19 Tom Tromey <tromey@redhat.com>
10827
10828 * target-delegates.c: Rebuild.
10829 * target.c (update_current_target): Don't inherit or default
10830 to_load.
10831 * target.h (struct target_ops) <to_load>: Use
10832 TARGET_DEFAULT_NORETURN.
10833
e19e919f
TT
108342014-02-19 Tom Tromey <tromey@redhat.com>
10835
10836 * target-delegates.c: Rebuild.
10837 * target.c (update_current_target): Don't inherit or default
10838 to_terminal_info.
10839 * target.h (struct target_ops) <to_terminal_info>: Use
10840 TARGET_DEFAULT_FUNC.
10841
c6ea8f79
TT
108422014-02-19 Tom Tromey <tromey@redhat.com>
10843
10844 * target-delegates.c: Rebuild.
10845 * target.c (update_current_target): Don't inherit or default
10846 to_terminal_save_ours.
10847 * target.h (struct target_ops) <to_terminal_save_ours>: Use
10848 TARGET_DEFAULT_IGNORE.
10849
e4a733f1
TT
108502014-02-19 Tom Tromey <tromey@redhat.com>
10851
10852 * target-delegates.c: Rebuild.
10853 * target.c (update_current_target): Don't inherit or default
10854 to_terminal_ours.
10855 * target.h (struct target_ops) <to_terminal_ours>: Use
10856 TARGET_DEFAULT_IGNORE.
10857
74fcbef9
TT
108582014-02-19 Tom Tromey <tromey@redhat.com>
10859
10860 * target-delegates.c: Rebuild.
10861 * target.c (update_current_target): Don't inherit or default
10862 to_terminal_ours_for_output.
10863 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
10864 TARGET_DEFAULT_IGNORE.
10865
ddeaacc9
TT
108662014-02-19 Tom Tromey <tromey@redhat.com>
10867
10868 * target-delegates.c: Rebuild.
10869 * target.c (update_current_target): Don't inherit or default
10870 to_terminal_inferior.
10871 * target.h (struct target_ops) <to_terminal_inferior>: Use
10872 TARGET_DEFAULT_IGNORE.
10873
0343661d
TT
108742014-02-19 Tom Tromey <tromey@redhat.com>
10875
10876 * target-delegates.c: Rebuild.
10877 * target.c (update_current_target): Don't inherit or default
10878 to_terminal_init.
10879 * target.h (struct target_ops) <to_terminal_init>: Use
10880 TARGET_DEFAULT_IGNORE.
10881
77cdffe9
TT
108822014-02-19 Tom Tromey <tromey@redhat.com>
10883
10884 * target-delegates.c: Rebuild.
10885 * target.c (update_current_target): Don't inherit or default
10886 to_can_accel_watchpoint_condition.
10887 * target.h (struct target_ops)
10888 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
10889
d03655e4
TT
108902014-02-19 Tom Tromey <tromey@redhat.com>
10891
10892 * target-delegates.c: Rebuild.
10893 * target.c (update_current_target): Don't inherit or default
10894 to_region_ok_for_hw_watchpoint.
10895 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10896 Use TARGET_DEFAULT_FUNC.
10897
65f160a9
TT
108982014-02-19 Tom Tromey <tromey@redhat.com>
10899
10900 * target-delegates.c: Rebuild.
10901 * target.c (update_current_target): Don't inherit or default
10902 to_watchpoint_addr_within_range.
10903 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
10904 Use TARGET_DEFAULT_FUNC.
10905
61dd109f
TT
109062014-02-19 Tom Tromey <tromey@redhat.com>
10907
10908 * target-delegates.c: Rebuild.
10909 * target.c (update_current_target): Don't inherit or default
10910 to_remove_watchpoint.
10911 * target.h (struct target_ops) <to_remove_watchpoint>: Use
10912 TARGET_DEFAULT_NORETURN.
10913
016facd4
TT
109142014-02-19 Tom Tromey <tromey@redhat.com>
10915
10916 * target-delegates.c: Rebuild.
10917 * target.c (update_current_target): Don't inherit or default
10918 to_insert_watchpoint.
10919 * target.h (struct target_ops) <to_insert_watchpoint>: Use
10920 TARGET_DEFAULT_RETURN.
10921
418dabac
TT
109222014-02-19 Tom Tromey <tromey@redhat.com>
10923
10924 * target-delegates.c: Rebuild.
10925 * target.c (update_current_target): Don't inherit or default
10926 to_remove_hw_breakpoint.
10927 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
10928 TARGET_DEFAULT_RETURN.
10929
61b371f9
TT
109302014-02-19 Tom Tromey <tromey@redhat.com>
10931
10932 * target-delegates.c: Rebuild.
10933 * target.c (update_current_target): Don't inherit or default
10934 to_insert_hw_breakpoint.
10935 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
10936 TARGET_DEFAULT_RETURN.
10937
52b51d06
TT
109382014-02-19 Tom Tromey <tromey@redhat.com>
10939
10940 * target-delegates.c: Rebuild.
10941 * target.c (update_current_target): Don't inherit or default
10942 to_can_use_hw_breakpoint.
10943 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
10944 TARGET_DEFAULT_RETURN.
10945
f86e59b2
TT
109462014-02-19 Tom Tromey <tromey@redhat.com>
10947
10948 * target-delegates.c: Rebuild.
10949 * target.c (update_current_target): Don't inherit or default
10950 to_files_info.
10951 * target.h (struct target_ops) <to_files_info>: Use
10952 TARGET_DEFAULT_IGNORE.
10953
6c628163
TT
109542014-02-19 Tom Tromey <tromey@redhat.com>
10955
10956 * target-delegates.c: Rebuild.
10957 * target.c (update_current_target): Don't inherit or default
10958 to_store.
10959 * target.h (struct target_ops) <to_store>: Use
10960 TARGET_DEFAULT_NORETURN.
10961
bebd3233
TT
109622014-02-19 Tom Tromey <tromey@redhat.com>
10963
10964 * target-delegates.c: Rebuild.
10965 * target.c (update_current_target): Don't inherit or default
10966 to_post_attach.
10967 * target.h (struct target_ops) <to_post_attach>: Use
10968 TARGET_DEFAULT_IGNORE.
10969
a53f3625
TT
109702014-02-19 Tom Tromey <tromey@redhat.com>
10971
10972 * target-delegates.c: Rebuild.
10973 * target.c (update_current_target): Don't inherit or default
10974 to_rcmd.
10975 (default_rcmd): New function.
10976 (do_monitor_command): Unconditionally delegate.
10977 * target.h (struct target_ops) <to_rmcd>: Use
10978 TARGET_DEFAULT_FUNC.
10979
e9a29200
TT
109802014-02-19 Tom Tromey <tromey@redhat.com>
10981
10982 * target-delegates.c: Rebuild.
10983 * target.c (init_dummy_target): Don't initialize to_attach.
10984 (target_attach): Unconditionally delegate.
10985 * target.h (struct target_ops) <to_attach>: Use
10986 TARGET_DEFAULT_FUNC.
10987
09da0d0a
TT
109882014-02-19 Tom Tromey <tromey@redhat.com>
10989
10990 * target-delegates.c: Rebuild.
10991 * target.c (target_detach): Unconditionally delegate.
10992 (init_dummy_target): Don't initialize to_detach.
10993 * target.h (struct target_ops) <to_detach>: Use
10994 TARGET_DEFAULT_IGNORE.
10995
5436ff03
TT
109962014-02-19 Tom Tromey <tromey@redhat.com>
10997
10998 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
10999 Add argument.
11000 (target_augmented_libraries_svr4_read): Add argument.
11001 * target.c (update_current_target): Update.
11002 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
11003 argument.
11004
f0d960ea
TT
110052014-02-19 Tom Tromey <tromey@redhat.com>
11006
11007 * target.h (struct target_ops) <to_call_history_range>: Add
11008 argument.
11009 * target.c (target_call_history_range): Add argument.
11010 * record-btrace.c (record_btrace_call_history_range): Add 'self'
11011 argument.
11012 (record_btrace_call_history_from): Update.
11013
ec0aea04
TT
110142014-02-19 Tom Tromey <tromey@redhat.com>
11015
11016 * target.h (struct target_ops) <to_call_history_from>: Add
11017 argument.
11018 * target.c (target_call_history_from): Add argument.
11019 * record-btrace.c (record_btrace_call_history_from): Add 'self'
11020 argument.
11021
5df2fcba
TT
110222014-02-19 Tom Tromey <tromey@redhat.com>
11023
11024 * target.h (struct target_ops) <to_call_history>: Add argument.
11025 * target.c (target_call_history): Add argument.
11026 * record-btrace.c (record_btrace_call_history): Add 'self'
11027 argument.
11028
4e99c6b7
TT
110292014-02-19 Tom Tromey <tromey@redhat.com>
11030
11031 * target.h (struct target_ops) <to_insn_history_range>: Add
11032 argument.
11033 * target.c (target_insn_history_range): Add argument.
11034 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
11035 argument.
11036 (record_btrace_insn_history_from): Update.
11037
9abc3ff3
TT
110382014-02-19 Tom Tromey <tromey@redhat.com>
11039
11040 * target.h (struct target_ops) <to_insn_history_from>: Add
11041 argument.
11042 * target.c (target_insn_history_from): Add argument.
11043 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
11044 argument.
11045
7a6c5609
TT
110462014-02-19 Tom Tromey <tromey@redhat.com>
11047
11048 * target.h (struct target_ops) <to_insn_history>: Add argument.
11049 * target.c (target_insn_history): Add argument.
11050 * record-btrace.c (record_btrace_insn_history): Add 'self'
11051 argument.
11052
606183ac
TT
110532014-02-19 Tom Tromey <tromey@redhat.com>
11054
11055 * target.h (struct target_ops) <to_goto_record>: Add argument.
11056 * target.c (target_goto_record): Add argument.
11057 * record-full.c (record_full_goto): Add 'self' argument.
11058 * record-btrace.c (record_btrace_goto): Add 'self' argument.
11059
307a1b91
TT
110602014-02-19 Tom Tromey <tromey@redhat.com>
11061
11062 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
11063 * target.c (target_goto_record_end): Add argument.
11064 * record-full.c (record_full_goto_end): Add 'self' argument.
11065 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
11066
08475817
TT
110672014-02-19 Tom Tromey <tromey@redhat.com>
11068
11069 * target.h (struct target_ops) <to_goto_record_begin>: Add
11070 argument.
11071 * target.c (target_goto_record_begin): Add argument.
11072 * record-full.c (record_full_goto_begin): Add 'self' argument.
11073 * record-btrace.c (record_btrace_goto_begin): Add 'self'
11074 argument.
11075
1c63c994
TT
110762014-02-19 Tom Tromey <tromey@redhat.com>
11077
11078 * target.h (struct target_ops) <to_record_is_replaying>: Add
11079 argument.
11080 * target.c (target_record_is_replaying): Add argument.
11081 * record-full.c (record_full_is_replaying): Add 'self' argument.
11082 * record-btrace.c (record_btrace_is_replaying): Add 'self'
11083 argument.
11084 (record_btrace_xfer_partial, record_btrace_store_registers)
11085 (record_btrace_prepare_to_store, record_btrace_resume)
11086 (record_btrace_wait, record_btrace_decr_pc_after_break)
11087 (record_btrace_find_new_threads, record_btrace_thread_alive):
11088 Update.
11089
d1b55219
TT
110902014-02-19 Tom Tromey <tromey@redhat.com>
11091
11092 * target.h (struct target_ops) <to_delete_record>: Add argument.
11093 * target.c (target_delete_record): Add argument.
11094 * record-full.c (record_full_delete): Add 'self' argument.
11095
1390f529
TT
110962014-02-19 Tom Tromey <tromey@redhat.com>
11097
11098 * target.h (struct target_ops) <to_save_record>: Add argument.
11099 * target.c (target_save_record): Add argument.
11100 * record-full.c (record_full_save): Add 'self' argument.
11101 (record_full_save): Add 'self' argument.
11102
630d6a4a
TT
111032014-02-19 Tom Tromey <tromey@redhat.com>
11104
11105 * target.h (struct target_ops) <to_info_record>: Add argument.
11106 * target.c (target_info_record): Add argument.
11107 * record.c (info_record_command): Add argument.
11108 * record-full.c (record_full_info): Add 'self' argument.
11109 * record-btrace.c (record_btrace_info): Add 'self' argument.
11110
c6cd7c02
TT
111112014-02-19 Tom Tromey <tromey@redhat.com>
11112
11113 * target.h (struct target_ops) <to_stop_recording>: Add argument.
11114 * target.c (target_stop_recording): Add argument.
11115 * record.c (record_stop): Add argument.
11116 * record-btrace.c (record_btrace_stop_recording): Add 'self'
11117 argument.
11118
39c49f83
TT
111192014-02-19 Tom Tromey <tromey@redhat.com>
11120
11121 * target.h (struct target_ops) <to_read_btrace>: Add argument.
11122 * target.c (struct target_ops) <to_read_btrace>: Add argument.
11123 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
11124 argument.
11125 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
11126 (_initialize_amd64_linux_nat): Use it.
11127 * i386-linux-nat.c (i386_linux_read_btrace): New function.
11128 (_initialize_i386_linux_nat): Use it.
11129
1777056d
TT
111302014-02-19 Tom Tromey <tromey@redhat.com>
11131
11132 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
11133 * target.c (target_teardown_btrace): Add argument.
11134 * remote.c (remote_teardown_btrace): Add 'self' argument.
11135 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
11136 argument.
11137 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
11138 argument.
11139
25e95349
TT
111402014-02-19 Tom Tromey <tromey@redhat.com>
11141
11142 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
11143 * target.c (target_disable_btrace): Add argument.
11144 * remote.c (remote_disable_btrace): Add 'self' argument.
11145 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
11146 argument.
11147 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
11148 argument.
11149
e3c49f88
TT
111502014-02-19 Tom Tromey <tromey@redhat.com>
11151
11152 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
11153 * target.c (target_enable_btrace): Add argument.
11154 * remote.c (remote_enable_btrace): Add 'self' argument.
11155 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
11156 argument.
11157 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
11158 argument.
11159
fe38f897
TT
111602014-02-19 Tom Tromey <tromey@redhat.com>
11161
11162 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
11163 (target_can_use_agent): Add argument.
11164 * target.c (update_current_target): Update.
11165 * remote.c (remote_can_use_agent): Add 'self' argument.
11166 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
11167
2c152180
TT
111682014-02-19 Tom Tromey <tromey@redhat.com>
11169
11170 * target.h (struct target_ops) <to_use_agent>: Add argument.
11171 (target_use_agent): Add argument.
11172 * target.c (update_current_target): Update.
11173 * remote.c (remote_use_agent): Add 'self' argument.
11174 * inf-child.c (inf_child_use_agent): Add 'self' argument.
11175
a893e81f
TT
111762014-02-19 Tom Tromey <tromey@redhat.com>
11177
11178 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
11179 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
11180 (target_traceframe_info): Add argument.
11181 * target.c (update_current_target): Update.
11182 * remote.c (remote_traceframe_info): Add 'self' argument.
11183 * ctf.c (ctf_traceframe_info): Add 'self' argument.
11184
c686c57f
TT
111852014-02-19 Tom Tromey <tromey@redhat.com>
11186
11187 * target.h (target_static_tracepoint_markers_by_strid): Add
11188 argument.
11189 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
11190 'self' argument.
11191 * target.c (update_current_target): Update.
11192 * remote.c (struct target_ops)
11193 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
11194 * linux-nat.c (struct target_ops)
11195 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
11196
61fc905d
TT
111972014-02-19 Tom Tromey <tromey@redhat.com>
11198
11199 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
11200 Add argument.
11201 (target_static_tracepoint_marker_at): Add argument.
11202 * target.c (update_current_target): Update.
11203 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
11204 argument.
11205
c378d69d
TT
112062014-02-19 Tom Tromey <tromey@redhat.com>
11207
11208 * target.h (struct target_ops) <to_set_permissions>: Add argument.
11209 (target_set_permissions): Add argument.
11210 * target.c (update_current_target): Update.
11211 * remote.c (remote_set_permissions): Add 'self' argument.
11212 (remote_start_remote): Update.
11213
bd7ae0f5
TT
112142014-02-19 Tom Tromey <tromey@redhat.com>
11215
11216 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
11217 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
11218 (target_get_tib_address): Add argument.
11219 * target.c (update_current_target): Update.
11220 * remote.c (remote_get_tib_address): Add 'self' argument.
11221
d9e68a2c
TT
112222014-02-19 Tom Tromey <tromey@redhat.com>
11223
11224 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
11225 (target_set_trace_notes): Add argument.
11226 * target.c (update_current_target): Update.
11227 * remote.c (remote_set_trace_notes): Add 'self' argument.
11228
4da384be
TT
112292014-02-19 Tom Tromey <tromey@redhat.com>
11230
11231 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
11232 argument.
11233 (target_set_trace_buffer_size): Add argument.
11234 * target.c (update_current_target): Update.
11235 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
11236
736d5b1f
TT
112372014-02-19 Tom Tromey <tromey@redhat.com>
11238
11239 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
11240 argument.
11241 (target_set_circular_trace_buffer): Add argument.
11242 * target.c (update_current_target): Update.
11243 * remote.c (remote_set_circular_trace_buffer): Add 'self'
11244 argument.
11245
37b25738
TT
112462014-02-19 Tom Tromey <tromey@redhat.com>
11247
11248 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
11249 argument.
11250 (target_set_disconnected_tracing): Add argument.
11251 * target.c (update_current_target): Update.
11252 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
11253
0e67620a
TT
112542014-02-19 Tom Tromey <tromey@redhat.com>
11255
11256 * target.h (struct target_ops)
11257 <to_get_min_fast_tracepoint_insn_len>: Add argument.
11258 (target_get_min_fast_tracepoint_insn_len): Add argument.
11259 * target.c (update_current_target): Update.
11260 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
11261 argument.
11262
88ee6f45
TT
112632014-02-19 Tom Tromey <tromey@redhat.com>
11264
11265 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
11266 argument.
11267 (target_get_raw_trace_data): Add argument.
11268 * target.c (update_current_target): Update.
11269 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
11270
181e3713
TT
112712014-02-19 Tom Tromey <tromey@redhat.com>
11272
11273 * target.h (struct target_ops) <to_upload_trace_state_variables>:
11274 Add argument.
11275 (target_upload_trace_state_variables): Add argument.
11276 * target.c (update_current_target): Update.
11277 * remote.c (remote_upload_trace_state_variables): Add 'self'
11278 argument.
11279 (remote_start_remote): Update.
11280
ab6617cc
TT
112812014-02-19 Tom Tromey <tromey@redhat.com>
11282
11283 * target.h (struct target_ops) <to_upload_tracepoints>: Add
11284 argument.
11285 (target_upload_tracepoints): Add argument.
11286 * target.c (update_current_target): Update.
11287 * remote.c (remote_upload_tracepoints): Add 'self' argument.
11288 (remote_start_remote): Update.
11289
dc3decaf
TT
112902014-02-19 Tom Tromey <tromey@redhat.com>
11291
11292 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
11293 (target_save_trace_data): Add argument.
11294 * target.c (update_current_target): Update.
11295 * remote.c (remote_save_trace_data): Add 'self' argument.
11296
4011015b
TT
112972014-02-19 Tom Tromey <tromey@redhat.com>
11298
11299 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
11300 argument.
11301 * target.h (struct target_ops)
11302 <to_get_trace_state_variable_value>: Add argument.
11303 (target_get_trace_state_variable_value): Add argument.
11304 * target.c (update_current_target): Update.
11305 * remote.c (remote_get_trace_state_variable_value): Add 'self'
11306 argument.
11307 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
11308
bd4c6793
TT
113092014-02-19 Tom Tromey <tromey@redhat.com>
11310
11311 * tracepoint.c (tfile_trace_find): Add 'self' argument.
11312 * target.h (struct target_ops) <to_trace_find>: Add argument.
11313 (target_trace_find): Add argument.
11314 * target.c (update_current_target): Update.
11315 * remote.c (remote_trace_find): Add 'self' argument.
11316 * ctf.c (ctf_trace_find): Add 'self' argument.
11317
74499f1b
TT
113182014-02-19 Tom Tromey <tromey@redhat.com>
11319
11320 * target.h (struct target_ops) <to_trace_stop>: Add argument.
11321 (target_trace_stop): Add argument.
11322 * target.c (update_current_target): Update.
11323 * remote.c (remote_trace_stop): Add 'self' argument.
11324
db90e85c
TT
113252014-02-19 Tom Tromey <tromey@redhat.com>
11326
11327 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
11328 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
11329 argument.
11330 (target_get_tracepoint_status): Add argument.
11331 * target.c (update_current_target): Update.
11332 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
11333
8bd200f1
TT
113342014-02-19 Tom Tromey <tromey@redhat.com>
11335
11336 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
11337 * target.h (struct target_ops) <to_get_trace_status>: Add
11338 argument.
11339 (target_get_trace_status): Add argument.
11340 * target.c (update_current_target): Update.
11341 * remote.c (remote_get_trace_status): Add 'self' argument.
11342 (remote_start_remote, remote_can_download_tracepoint): Update.
11343 * ctf.c (ctf_get_trace_status): Add 'self' argument.
11344
e2d1aae3
TT
113452014-02-19 Tom Tromey <tromey@redhat.com>
11346
11347 * target.h (struct target_ops) <to_trace_start>: Add argument.
11348 (target_trace_start): Add argument.
11349 * target.c (update_current_target): Update.
11350 * remote.c (remote_trace_start): Add 'self' argument.
11351
583f9a86
TT
113522014-02-19 Tom Tromey <tromey@redhat.com>
11353
11354 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
11355 Add argument.
11356 (target_trace_set_readonly_regions): Add argument.
11357 * target.c (update_current_target): Update.
11358 * remote.c (remote_trace_set_readonly_regions): Add 'self'
11359 argument.
11360
780b049c
TT
113612014-02-19 Tom Tromey <tromey@redhat.com>
11362
11363 * target.h (struct target_ops) <to_disable_tracepoint>: Add
11364 argument.
11365 (target_disable_tracepoint): Add argument.
11366 * target.c (update_current_target): Update.
11367 * remote.c (remote_disable_tracepoint): Add 'self' argument.
11368
46670d57
TT
113692014-02-19 Tom Tromey <tromey@redhat.com>
11370
11371 * target.h (struct target_ops) <to_enable_tracepoint>: Add
11372 argument.
11373 (target_enable_tracepoint): Add argument.
11374 * target.c (update_current_target): Update.
11375 * remote.c (remote_enable_tracepoint): Add 'self' argument.
11376
559d2b81
TT
113772014-02-19 Tom Tromey <tromey@redhat.com>
11378
11379 * target.h (struct target_ops) <to_download_trace_state_variable>:
11380 Add argument.
11381 (target_download_trace_state_variable): Add argument.
11382 * target.c (update_current_target): Update.
11383 * remote.c (remote_download_trace_state_variable): Add 'self'
11384 argument.
11385
a52a8357
TT
113862014-02-19 Tom Tromey <tromey@redhat.com>
11387
11388 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
11389 argument.
11390 (target_can_download_tracepoint): Add argument.
11391 * target.c (update_current_target): Update.
11392 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
11393
548f7808
TT
113942014-02-19 Tom Tromey <tromey@redhat.com>
11395
11396 * target.h (struct target_ops) <to_download_tracepoint>: Add
11397 argument.
11398 (target_download_tracepoint): Add argument.
11399 * target.c (update_current_target): Update.
11400 * remote.c (remote_download_tracepoint): Add 'self' argument.
11401
ecae04e1
TT
114022014-02-19 Tom Tromey <tromey@redhat.com>
11403
11404 * target.h (struct target_ops) <to_trace_init>: Add argument.
11405 (target_trace_init): Add argument.
11406 * target.c (update_current_target): Update.
11407 * remote.c (remote_trace_init): Add 'self' argument.
11408
fab5aa7c
TT
114092014-02-19 Tom Tromey <tromey@redhat.com>
11410
11411 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
11412 * target.c (target_fileio_readlink): Add argument.
11413 * remote.c (remote_hostio_readlink): Add 'self' argument.
11414 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
11415
dbbca37d
TT
114162014-02-19 Tom Tromey <tromey@redhat.com>
11417
11418 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
11419 * target.c (target_fileio_unlink): Add argument.
11420 * remote.c (remote_hostio_unlink): Add 'self' argument.
11421 (remote_file_delete): Update.
11422 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
11423
df39ea25
TT
114242014-02-19 Tom Tromey <tromey@redhat.com>
11425
11426 * target.h (struct target_ops) <to_fileio_close>: Add argument.
11427 * target.c (target_fileio_close): Add argument.
11428 * remote.c (remote_hostio_close): Add 'self' argument.
11429 (remote_hostio_close_cleanup): Update.
11430 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
11431 Update.
11432 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
11433
a3be983c
TT
114342014-02-19 Tom Tromey <tromey@redhat.com>
11435
11436 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
11437 * target.c (target_fileio_pread): Add argument.
11438 * remote.c (remote_hostio_pread): Add 'self' argument.
11439 (remote_bfd_iovec_pread, remote_file_get): Update.
11440 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
11441
0d866f62
TT
114422014-02-19 Tom Tromey <tromey@redhat.com>
11443
11444 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
11445 * target.c (target_fileio_pwrite): Add argument.
11446 * remote.c (remote_hostio_pwrite): Add 'self' argument.
11447 (remote_file_put): Update.
11448 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
11449
cd897586
TT
114502014-02-19 Tom Tromey <tromey@redhat.com>
11451
11452 * target.h (struct target_ops) <to_fileio_open>: Add argument.
11453 * target.c (target_fileio_open): Add argument.
11454 * remote.c (remote_hostio_open): Add 'self' argument.
11455 (remote_bfd_iovec_open): Add 'self' argument.
11456 (remote_file_put): Add 'self' argument.
11457 (remote_file_get): Add 'self' argument.
11458 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
11459
78eff0ec
TT
114602014-02-19 Tom Tromey <tromey@redhat.com>
11461
11462 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
11463 Add argument.
11464 (target_can_run_breakpoint_commands): Add argument.
11465 * target.c (update_current_target): Update.
11466 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
11467 argument.
11468 (remote_insert_breakpoint): Add 'self' argument.
11469 (remote_insert_hw_breakpoint): Add 'self' argument.
11470 (remote_can_run_breakpoint_commands): Add 'self' argument.
11471
efcc2da7
TT
114722014-02-19 Tom Tromey <tromey@redhat.com>
11473
11474 * target.h (struct target_ops)
11475 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
11476 (target_supports_evaluation_of_breakpoint_conditions): Add
11477 argument.
11478 * target.c (update_current_target): Update.
11479 * remote.c (remote_supports_cond_breakpoints): Add 'self'
11480 argument.
11481 (remote_insert_breakpoint): Add 'self' argument.
11482 (remote_insert_hw_breakpoint): Add 'self' argument.
11483 (remote_supports_cond_breakpoints): Add 'self' argument.
11484
6de37a3a
TT
114852014-02-19 Tom Tromey <tromey@redhat.com>
11486
11487 * target.h (struct target_ops) <to_supports_string_tracing>: Add
11488 argument.
11489 (target_supports_string_tracing): Add argument.
11490 * target.c (update_current_target): Update.
11491 * remote.c (remote_supports_string_tracing): Add 'self' argument.
11492
2bfc0540
TT
114932014-02-19 Tom Tromey <tromey@redhat.com>
11494
11495 * target.h (struct target_ops)
11496 <to_supports_disable_randomization>: Add argument.
11497 * target.c (find_default_supports_disable_randomization): Add
11498 argument.
11499 (target_supports_disable_randomization): Add argument.
11500 (find_default_supports_disable_randomization): Add 'self'
11501 argument.
11502 * remote.c (extended_remote_supports_disable_randomization): Add
11503 'self' argument.
11504 (remote_supports_disable_randomization): Add 'self' argument.
11505 (extended_remote_create_inferior): Update.
11506 * linux-nat.c (linux_nat_supports_disable_randomization): Add
11507 'self' argument.
11508
7d178d6a
TT
115092014-02-19 Tom Tromey <tromey@redhat.com>
11510
11511 * target.h (struct target_ops)
11512 <to_supports_enable_disable_tracepoint>: Add argument.
11513 (target_supports_enable_disable_tracepoint): Add argument.
11514 * target.c (update_current_target): Update.
11515 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
11516 argument.
11517
86ce2668
TT
115182014-02-19 Tom Tromey <tromey@redhat.com>
11519
11520 * target.h (struct target_ops) <to_supports_multi_process>: Add
11521 argument.
11522 (target_supports_multi_process): Add argument.
11523 * target.c (update_current_target): Update.
11524 * remote.c (remote_supports_multi_process): Add 'self' argument.
11525 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
11526 argument.
11527 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
11528 argument.
11529
4c612759
TT
115302014-02-19 Tom Tromey <tromey@redhat.com>
11531
11532 * target.h (struct target_ops) <to_execution_direction>: Add
11533 argument.
11534 (target_execution_direction): Add argument.
11535 * target.c (default_execution_direction): Add 'self' argument.
11536 * record-full.c (record_full_execution_direction): Add 'self'
11537 argument.
11538
19db3e69
TT
115392014-02-19 Tom Tromey <tromey@redhat.com>
11540
11541 * target.h (struct target_ops) <to_can_execute_reverse>: Add
11542 argument.
11543 (target_can_execute_reverse): Add argument.
11544 * remote.c (remote_can_execute_reverse): Add 'self' argument.
11545 * record-full.c (record_full_can_execute_reverse): Add 'self'
11546 argument.
11547 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
11548 argument.
11549
1e6b91a4
TT
115502014-02-19 Tom Tromey <tromey@redhat.com>
11551
11552 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
11553 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
11554 argument.
11555 (target_get_ada_task_ptid): Add argument.
11556 * target.c (update_current_target): Update.
11557 (default_get_ada_task_ptid): Add 'self' argument.
11558 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
11559 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
11560 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
11561 argument.
11562 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
11563 argument.
11564 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
11565 argument.
11566 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
11567 argument.
11568 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
11569 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
11570 argument.
11571
3c80fb48
TT
115722014-02-19 Tom Tromey <tromey@redhat.com>
11573
11574 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
11575 (target_goto_bookmark): Add argument.
11576 * target.c (dummy_goto_bookmark): Add 'self' argument.
11577 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
11578
dd0e2830
TT
115792014-02-19 Tom Tromey <tromey@redhat.com>
11580
11581 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
11582 (target_get_bookmark): Add argument.
11583 * target.c (dummy_get_bookmark): Add 'self' argument.
11584 * record-full.c (record_full_get_bookmark): Add 'self' argument.
11585
fc6691b2
TT
115862014-02-19 Tom Tromey <tromey@redhat.com>
11587
11588 * target.h (struct target_ops) <to_make_corefile_notes>: Add
11589 argument.
11590 (target_make_corefile_notes): Add argument.
11591 * target.c (dummy_make_corefile_notes): Add 'self' argument.
11592 * procfs.c (procfs_make_note_section): Add 'self' argument.
11593 (procfs_make_note_section): Add 'self' argument.
11594 (procfs_make_note_section): Add 'self' argument.
11595 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
11596 argument.
11597 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
11598 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
11599 * exec.c (exec_make_note_section): Add 'self' argument.
11600 (exec_make_note_section): Add 'self' argument.
11601
2e73927c
TT
116022014-02-19 Tom Tromey <tromey@redhat.com>
11603
11604 * target.h (struct target_ops) <to_find_memory_regions>: Add
11605 argument.
11606 (target_find_memory_regions): Add argument.
11607 * target.c (dummy_find_memory_regions): Add 'self' argument.
11608 * procfs.c (proc_find_memory_regions): Add 'self' argument.
11609 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
11610 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
11611 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
11612 * exec. (exec_do_find_memory_regions): New global.
11613 (exec_set_find_memory_regions): Rewrite.
11614 (exec_find_memory_regions): New function.
11615 (init_exec_ops): Use exec_find_memory_regions.
11616
2a9a2795
TT
116172014-02-19 Tom Tromey <tromey@redhat.com>
11618
11619 * target.h (struct target_ops) <to_supports_non_stop>: Add
11620 argument.
11621 * target.c (find_default_supports_non_stop): Add argument.
11622 (target_supports_non_stop): Add argument.
11623 (find_default_supports_non_stop): Add 'self' argument.
11624 * remote.c (remote_supports_non_stop): Add 'self' argument.
11625 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
11626
4ab76ea3
TT
116272014-02-19 Tom Tromey <tromey@redhat.com>
11628
11629 * target.h (struct target_ops) <to_log_command>: Add argument.
11630 (target_log_command): Add argument.
11631 * serial.h (serial_log_command): Add 'self' argument.
11632 * serial.c (serial_log_command): Add 'self' argument.
11633
8dd27370
TT
116342014-02-19 Tom Tromey <tromey@redhat.com>
11635
11636 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
11637 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
11638 argument.
11639 (target_pid_to_exec_file): Add argument.
11640 * target.c (debug_to_pid_to_exec_file): Add argument.
11641 (update_current_target): Update.
11642 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
11643 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
11644 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
11645 (linux_handle_extended_wait): Update.
11646 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
11647 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
11648 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
11649 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
11650
1aac633b
TT
116512014-02-19 Tom Tromey <tromey@redhat.com>
11652
11653 * target.h (struct target_ops) <to_rcmd>: Add argument.
11654 (target_rcmd): Add argument.
11655 * target.c (debug_to_rcmd): Add argument.
11656 (update_current_target, do_monitor_command): Update.
11657 * remote.c (remote_rcmd): Add 'self' argument.
11658 * monitor.c (monitor_rcmd): Add 'self' argument.
11659
1eab8a48
TT
116602014-02-19 Tom Tromey <tromey@redhat.com>
11661
11662 * windows-nat.c (windows_stop): Add 'self' argument.
11663 * target.h (struct target_ops) <to_stop>: Add argument.
11664 * target.c (target_stop): Add argument.
11665 (debug_to_stop): Add argument.
11666 (update_current_target): Update.
11667 * remote.c (remote_stop): Add 'self' argument.
11668 * remote-sim.c (gdbsim_stop): Add 'self' argument.
11669 (gdbsim_cntrl_c): Update.
11670 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
11671 * procfs.c (procfs_stop): Add 'self' argument.
11672 * nto-procfs.c (procfs_stop): Add 'self' argument.
11673 * monitor.c (monitor_stop): Add 'self' argument.
11674 (monitor_open): Update.
11675 * linux-nat.c (linux_nat_stop): Add argument.
11676 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
11677 * gnu-nat.c (gnu_stop): Add 'self' argument.
11678 * darwin-nat.c (darwin_stop): Add 'self' argument.
11679
503a628d
TT
116802014-02-19 Tom Tromey <tromey@redhat.com>
11681
11682 * target.h (struct target_ops) <to_thread_name>: Add argument.
11683 * target.c (target_thread_name): Add argument.
11684 (update_current_target): Update.
11685 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
11686
c15906d8
TT
116872014-02-19 Tom Tromey <tromey@redhat.com>
11688
11689 * target.h (struct target_ops) <to_extra_thread_info>: Add
11690 argument.
11691 (target_extra_thread_info): Add argument.
11692 * target.c (update_current_target): Update.
11693 * remote.c (remote_threads_extra_info): Add 'self' argument.
11694 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
11695 argument.
11696 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
11697 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
11698 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
11699 argument.
11700 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
11701 argument.
11702 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
11703 argument.
11704 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
11705 argument.
11706
daf5e9b6
TT
117072014-02-19 Tom Tromey <tromey@redhat.com>
11708
11709 * target.h (struct target_ops) <to_program_signals>: Add argument.
11710 * target.c (target_program_signals): Add argument.
11711 * remote.c (remote_program_signals): Add 'self' argument.
11712
94bedb42
TT
117132014-02-19 Tom Tromey <tromey@redhat.com>
11714
11715 * target.h (struct target_ops) <to_pass_signals>: Add argument.
11716 * target.c (target_pass_signals): Add argument.
11717 * remote.c (remote_pass_signals): Add 'self' argument.
11718 (remote_start_remote): Update.
11719 * procfs.c (procfs_pass_signals): Add 'self' argument.
11720 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
11721 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
11722 (linux_nat_create_inferior, linux_nat_attach): Update.
11723
da82bd6b
TT
117242014-02-19 Tom Tromey <tromey@redhat.com>
11725
11726 * windows-nat.c (windows_can_run): Add 'self' argument.
11727 * target.h (struct target_ops) <to_can_run>: Add argument.
11728 (target_can_run): Add argument.
11729 * target.c (debug_to_can_run): Add argument.
11730 (update_current_target): Update.
11731 * nto-procfs.c (procfs_can_run): Add 'self' argument.
11732 * inf-child.c (inf_child_can_run): Add 'self' argument.
11733 * go32-nat.c (go32_can_run): Add 'self' argument.
11734
d796e1d6
TT
117352014-02-19 Tom Tromey <tromey@redhat.com>
11736
11737 * target.h (struct target_ops) <to_has_exited>: Add argument.
11738 (target_has_exited): Add argument.
11739 * target.c (debug_to_has_exited): Add argument.
11740 (update_current_target): Update.
11741
ff214e67
TT
117422014-02-19 Tom Tromey <tromey@redhat.com>
11743
11744 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
11745 argument.
11746 (target_set_syscall_catchpoint): Add argument.
11747 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
11748 argument.
11749 * target.c (update_current_target): Update.
11750
758e29d2
TT
117512014-02-19 Tom Tromey <tromey@redhat.com>
11752
11753 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
11754 argument.
11755 (target_remove_exec_catchpoint): Add argument.
11756 * target.c (debug_to_remove_exec_catchpoint): Add argument.
11757 (update_current_target): Update.
11758 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
11759 argument.
11760
ba025e51
TT
117612014-02-19 Tom Tromey <tromey@redhat.com>
11762
11763 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
11764 argument.
11765 (target_insert_exec_catchpoint): Add argument.
11766 * target.c (debug_to_insert_exec_catchpoint): Add argument.
11767 (update_current_target): Update.
11768 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
11769 argument.
11770
e98cf0cd
TT
117712014-02-19 Tom Tromey <tromey@redhat.com>
11772
11773 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
11774 argument.
11775 (target_remove_vfork_catchpoint): Add argument.
11776 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
11777 (update_current_target): Update.
11778 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
11779 argument.
11780
3ecc7da0
TT
117812014-02-19 Tom Tromey <tromey@redhat.com>
11782
11783 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
11784 argument.
11785 (target_insert_vfork_catchpoint): Add argument.
11786 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
11787 (update_current_target): Update.
11788 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
11789 argument.
11790
973fc227
TT
117912014-02-19 Tom Tromey <tromey@redhat.com>
11792
11793 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
11794 argument.
11795 (target_remove_fork_catchpoint): Add argument.
11796 * target.c (debug_to_remove_fork_catchpoint): Add argument.
11797 (update_current_target): Update.
11798 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
11799 argument.
11800
a863b201
TT
118012014-02-19 Tom Tromey <tromey@redhat.com>
11802
11803 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
11804 argument.
11805 (target_insert_fork_catchpoint): Add argument.
11806 * target.c (debug_to_insert_fork_catchpoint): Add argument.
11807 (update_current_target): Update.
11808 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
11809 argument.
11810
2e97a79e
TT
118112014-02-19 Tom Tromey <tromey@redhat.com>
11812
11813 * target.h (struct target_ops) <to_post_startup_inferior>: Add
11814 argument.
11815 (target_post_startup_inferior): Add argument.
11816 * target.c (debug_to_post_startup_inferior): Add argument.
11817 (update_current_target): Update.
11818 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
11819 argument.
11820 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
11821 argument.
11822 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
11823 argument.
11824 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
11825 argument.
11826 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
11827 'self' argument.
11828 (super_post_startup_inferior): Likewise.
11829 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
11830 'self' argument.
11831 (super_post_startup_inferior): Likewise.
11832 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
11833 Add 'self' argument.
11834 (super_post_startup_inferior): Likewise.
11835
71a9f134
TT
118362014-02-19 Tom Tromey <tromey@redhat.com>
11837
11838 * target.h (struct target_ops) <to_load>: Add argument.
11839 * target.c (target_load): Add argument.
11840 (debug_to_load): Add argument.
11841 (update_current_target): Update.
11842 * remote.c (remote_load): Add 'self' argument.
11843 * remote-sim.c (gdbsim_load): Add 'self' argument.
11844 * remote-mips.c (mips_load): Add 'self' argument.
11845 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
11846 * monitor.c (monitor_load): Add 'self' argument.
11847 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
11848
0a4f40a2
TT
118492014-02-19 Tom Tromey <tromey@redhat.com>
11850
11851 * target.h (struct target_ops) <to_terminal_info>: Add argument.
11852 (target_terminal_info): Add argument.
11853 * target.c (debug_to_terminal_info): Add argument.
11854 (default_terminal_info): Likewise.
11855 * inflow.c (child_terminal_info): Add 'self' argument.
11856 * inferior.h (child_terminal_info): Add 'self' argument.
11857 * go32-nat.c (go32_terminal_info): Add 'self' argument.
11858
ae3bd431
TT
118592014-02-19 Tom Tromey <tromey@redhat.com>
11860
11861 * target.h (struct target_ops) <to_terminal_save_ours>: Add
11862 argument.
11863 (target_terminal_save_ours): Add argument.
11864 * target.c (debug_to_terminal_save_ours): Add argument.
11865 (update_current_target): Update.
11866 * inflow.c (terminal_save_ours): Add 'self' argument.
11867 * inferior.h (terminal_save_ours): Add 'self' argument.
11868
e3594fd1
TT
118692014-02-19 Tom Tromey <tromey@redhat.com>
11870
11871 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
11872 (target_terminal_ours): Add argument.
11873 * target.c (debug_to_terminal_ours): Add argument.
11874 (update_current_target): Update.
11875 * remote.c (remote_terminal_ours): Add 'self' argument.
11876 (remote_close): Update.
11877 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
11878 * inflow.c (terminal_ours): Add 'self' argument.
11879 * inferior.h (terminal_ours): Add 'self' argument.
11880 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
11881
2e1e1a19
TT
118822014-02-19 Pedro Alves <palves@redhat.com>
11883 Tom Tromey <tromey@redhat.com>
11884
11885 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
11886 argument.
11887 (target_terminal_ours_for_output): Add argument.
11888 * target.c (debug_to_terminal_ours_for_output): Add argument.
11889 (update_current_target): Update.
11890 * inflow.c (terminal_ours_for_output): Add 'self' argument.
11891 * inferior.h (terminal_ours_for_output): Add 'self' argument.
11892 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
11893
d2f640d4
TT
118942014-02-19 Tom Tromey <tromey@redhat.com>
11895
11896 * target.h (struct target_ops) <to_terminal_inferior>: Add
11897 argument.
11898 * target.c (target_terminal_inferior): Add argument.
11899 (update_current_target): Update.
11900 * remote.c (remote_terminal_inferior): Add 'self' argument.
11901 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
11902 * inflow.c (terminal_inferior): Add 'self' argument.
11903 * inferior.h (terminal_inferior): Add 'self' argument.
11904 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
11905 (go32_terminal_inferior): Add 'self' argument.
11906
c42bf286
TT
119072014-02-19 Tom Tromey <tromey@redhat.com>
11908
11909 * target.h (struct target_ops) <to_terminal_init>: Add argument.
11910 (target_terminal_init): Add argument.
11911 * target.c (debug_to_terminal_init): Add argument.
11912 (update_current_target): Update.
11913 * inflow.c (terminal_init_inferior): Add 'self' argument.
11914 * inferior.h (terminal_init_inferior): Add 'self' argument.
11915 * go32-nat.c (go32_terminal_init): Add 'self' argument.
11916 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
11917
c3a5ff89
TT
119182014-02-19 Tom Tromey <tromey@redhat.com>
11919
11920 * target.h (struct target_ops)
11921 <to_can_accel_watchpoint_condition>: Add argument.
11922 (target_can_accel_watchpoint_condition): Add argument.
11923 * target.c (debug_to_can_accel_watchpoint_condition): Add
11924 argument.
11925 (update_current_target): Update.
11926 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
11927 'self' argument.
11928
31568a15
TT
119292014-02-19 Tom Tromey <tromey@redhat.com>
11930
11931 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11932 Add argument.
11933 (target_region_ok_for_hw_watchpoint): Add argument.
11934 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
11935 (default_region_ok_for_hw_watchpoint): Add argument.
11936 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
11937 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
11938 argument.
11939 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
11940 argument.
11941 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
11942 argument.
11943 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
11944 'self' argument.
11945 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
11946 'self' argument.
11947 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
11948 'self' argument.
11949 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
11950 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
11951 'self' argument.
11952 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
11953 Add 'self' argument.
11954
7bb99c53
TT
119552014-02-19 Tom Tromey <tromey@redhat.com>
11956
11957 * target.h (struct target_ops) <to_insert_watchpoint>: Add
11958 argument.
11959 (target_insert_watchpoint): Add argument.
11960 * target.c (debug_to_insert_watchpoint): Add argument.
11961 (update_current_target): Update.
11962 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
11963 * remote.c (remote_insert_watchpoint): Add 'self' argument.
11964 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
11965 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
11966 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
11967 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
11968 argument.
11969 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
11970 (procfs_insert_hw_watchpoint): Add 'self' argument.
11971 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
11972 argument.
11973 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
11974 argument.
11975 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
11976 argument.
11977 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
11978 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
11979 argument.
11980 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
11981 'self' argument.
11982
11b5219a
TT
119832014-02-19 Tom Tromey <tromey@redhat.com>
11984
11985 * target.h (struct target_ops) <to_remove_watchpoint>: Add
11986 argument.
11987 (target_remove_watchpoint): Add argument.
11988 * target.c (debug_to_remove_watchpoint): Add argument.
11989 (update_current_target): Update.
11990 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
11991 * remote.c (remote_remove_watchpoint): Add 'self' argument.
11992 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
11993 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
11994 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
11995 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
11996 argument.
11997 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
11998 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
11999 argument.
12000 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
12001 argument.
12002 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
12003 argument.
12004 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
12005 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
12006 argument.
12007 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
12008 'self' argument.
12009
a64dc96c
TT
120102014-02-19 Tom Tromey <tromey@redhat.com>
12011
12012 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
12013 argument.
12014 (target_remove_hw_breakpoint): Add argument.
12015 * target.c (debug_to_remove_hw_breakpoint): Add argument.
12016 (update_current_target): Update.
12017 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
12018 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
12019 argument.
12020 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
12021 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
12022 argument.
12023 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
12024 'self' argument.
12025
23a26771
TT
120262014-02-19 Tom Tromey <tromey@redhat.com>
12027
12028 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
12029 argument.
12030 (target_insert_hw_breakpoint): Add argument.
12031 * target.c (debug_to_insert_hw_breakpoint): Add argument.
12032 (update_current_target): Update.
12033 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
12034 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
12035 argument.
12036 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
12037 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
12038 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
12039 argument.
12040 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
12041 'self' argument.
12042
5461485a
TT
120432014-02-19 Tom Tromey <tromey@redhat.com>
12044
12045 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
12046 argument.
12047 (target_can_use_hardware_watchpoint): Add argument.
12048 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
12049 (update_current_target): Update.
12050 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
12051 argument.
12052 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
12053 argument.
12054 * remote.c (remote_check_watch_resources): Add 'self' argument.
12055 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
12056 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
12057 argument.
12058 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
12059 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
12060 argument.
12061 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
12062 argument.
12063 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
12064 argument.
12065 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
12066 argument.
12067 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
12068 argument.
12069 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
12070 argument.
12071 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
12072 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
12073 argument.
12074 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
12075 'self' argument.
12076
f045800c
TT
120772014-02-19 Tom Tromey <tromey@redhat.com>
12078
12079 * target.h (struct target_ops) <to_post_attach>: Add argument.
12080 (target_post_attach): Add argument.
12081 * target.c (debug_to_post_attach): Add argument.
12082 (update_current_target): Update.
12083 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
12084 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
12085 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
12086 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
12087 * inf-child.c (inf_child_post_attach): Add 'self' argument.
12088
de90e03d
TT
120892014-02-19 Tom Tromey <tromey@redhat.com>
12090
12091 * windows-nat.c (windows_close): Add 'self' argument.
12092 * tracepoint.c (tfile_close): Add 'self' argument.
12093 * target.h (struct target_ops) <to_close>: Add argument.
12094 * target.c (target_close): Add argument.
12095 (update_current_target): Update.
12096 * remote.c (remote_close): Add 'self' argument.
12097 * remote-sim.c (gdbsim_close): Add 'self' argument.
12098 * remote-mips.c (mips_close): Add 'self' argument.
12099 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
12100 * record-full.c (record_full_close): Add 'self' argument.
12101 * record-btrace.c (record_btrace_close): Add 'self' argument.
12102 * monitor.h (monitor_close): Add 'self' argument.
12103 * monitor.c (monitor_close): Add 'self' argument.
12104 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
12105 * linux-nat.c (linux_nat_close): Add argument.
12106 * go32-nat.c (go32_close): Add 'self' argument.
12107 * exec.c (exec_close_1): Add 'self' argument.
12108 * ctf.c (ctf_close): Add 'self' argument.
12109 * corelow.c (core_close): Add 'self' argument.
12110 (core_close_cleanup): Update.
12111 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
12112 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
12113
9dd130a0
TT
121142014-02-19 Tom Tromey <tromey@redhat.com>
12115
12116 * remote.c (remote_load): New function.
12117 (init_remote_ops): Use it.
12118
46917d26
TT
121192014-02-19 Tom Tromey <tromey@redhat.com>
12120
12121 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
12122 argument.
12123 * common/linux-btrace.h (linux_supports_btrace): Update.
12124 * remote.c (remote_supports_btrace): Add "self" argument.
12125 * target-delegates.c: Rebuild.
12126 * target.c (target_supports_btrace): Remove.
12127 * target.h (struct target_ops) <to_supports_btrace>: Add
12128 target_ops argument.
12129 (target_supports_btrace): New define.
12130
6b84065d
TT
121312014-02-19 Tom Tromey <tromey@redhat.com>
12132
12133 * record-full.c (record_full_beneath_to_resume_ops)
12134 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
12135 (record_full_beneath_to_wait)
12136 (record_full_beneath_to_store_registers_ops)
12137 (record_full_beneath_to_store_registers)
12138 (record_full_beneath_to_xfer_partial_ops)
12139 (record_full_beneath_to_xfer_partial)
12140 (record_full_beneath_to_insert_breakpoint_ops)
12141 (record_full_beneath_to_insert_breakpoint)
12142 (record_full_beneath_to_remove_breakpoint_ops)
12143 (record_full_beneath_to_remove_breakpoint)
12144 (record_full_beneath_to_stopped_by_watchpoint)
12145 (record_full_beneath_to_stopped_data_address)
12146 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
12147 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
12148 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
12149 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
12150 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
12151 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
12152 (tmp_to_stopped_data_address, tmp_to_async): Remove.
12153 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
12154 (record_full_resume, record_full_wait_1)
12155 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
12156 (record_full_store_registers, record_full_xfer_partial)
12157 (record_full_insert_breakpoint, record_full_remove_breakpoint)
12158 (record_full_async, record_full_core_xfer_partial): Use target
12159 delegation.
12160 * target-delegates.c: Rebuild.
12161 * target.c (current_xfer_partial): Remove.
12162 (update_current_target): Do not INHERIT or de_fault
12163 to_insert_breakpoint, to_remove_breakpoint,
12164 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
12165 to_is_async_p, to_async. Do not set to_xfer_partial field.
12166 (default_xfer_partial): Simplify.
12167 (current_xfer_partial): Remove.
12168 (target_wait, target_resume): Simplify.
12169 (find_default_can_async_p, find_default_is_async_p): Update.
12170 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
12171 to_xfer_partial, to_stopped_by_watchpoint,
12172 to_stopped_data_address.
12173 (target_store_registers): Simplify.
12174 (forward_target_remove_breakpoint)
12175 (forward_target_insert_breakpoint): Remove.
12176 (target_remove_breakpoint, target_insert_breakpoint)
12177 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
12178 * target.h (struct target_ops) <to_resume, to_wait,
12179 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
12180 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
12181 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
12182 markup.
12183 (forward_target_remove_breakpoint)
12184 (forward_target_insert_breakpoint): Remove.
12185 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
12186 directly.
12187 (record_btrace_insert_breakpoint): Delegate directly.
12188
1101cb7b
TT
121892014-02-19 Tom Tromey <tromey@redhat.com>
12190
12191 PR build/7701:
12192 * target-delegates.c: New file.
12193 * target.c: Include target-delegates.c.
12194 (init_dummy_target): Call install_dummy_methods.
12195 (complete_target_initialization): Call install_delegators.
12196 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
12197 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
12198 * make-target-delegates: New file.
12199
8b06beed
TT
122002014-02-19 Tom Tromey <tromey@redhat.com>
12201
12202 * record.c (find_record_target): Use find_target_at.
12203 * target.c (find_target_at): New function.
12204 * target.h (find_target_at): Declare.
12205
6a109b6b
TT
122062014-02-19 Tom Tromey <tromey@redhat.com>
12207
12208 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
12209 Add 'ops' argument.
12210 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
12211 'ops' argument.
12212 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
12213 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
12214 'ops' argument.
12215 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
12216 argument.
12217 * linux-nat.c (save_sigtrap): Update.
12218 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
12219 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
12220 (linux_nat_close): Update.
12221 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
12222 argument.
12223 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
12224 argument.
12225 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
12226 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
12227 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
12228 (tmp_to_async): Add 'ops' argument.
12229 (record_full_stopped_by_watchpoint, record_full_async)
12230 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
12231 argument.
12232 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
12233 (m32r_stopped_by_watchpoint): Add 'ops' argument.
12234 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
12235 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
12236 (remote_is_async_p, remote_async): Add 'ops' argument.
12237 (remote_stopped_data_address): Update.
12238 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
12239 * target.c (update_current_target)
12240 (find_default_can_async_p, find_default_is_async_p): Update.
12241 (init_dummy_target): Update.
12242 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
12243 * target.h (struct target_ops) <to_stopped_by_watchpoint,
12244 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
12245 (target_can_async_p, target_is_async_p, target_async)
12246 (target_stopped_by_watchpoint): Update.
12247
e095146b
YQ
122482014-02-19 Yao Qi <yao@codesourcery.com>
12249
12250 PR gdb/16220
12251 * gdbarch.sh: Remove startup_gdbarch.
12252 * gdbarch.c: Regenerated.
12253 * gdbarch.h: Likewise.
12254
bc3c6b36
KB
122552014-02-17 Kevin Buettner <kevinb@redhat.com>
12256
12257 * rl78-tdep.c (rl78_g10_register_name): New function.
12258 (rl78_return_value): Add g10 support.
12259 (rl78_gdbarch_init): Register rl78_g10_register_name for the
12260 g10.
12261
98dc0167 122622014-02-17 Doug Evans <xdje42@gmail.com>
f01c1940
DE
12263
12264 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
12265 (SUBDIR_GUILE_SRCS): Ditto.
12266 (scm-gsmob.o): Ditto.
12267
842c05cd
YQ
122682014-02-17 Yao Qi <yao@codesourcery.com>
12269
12270 * gnu-nat.c (ILL_RPC): Declare defined function.
12271
25c0bd04
YQ
122722014-02-17 Yao Qi <yao@codesourcery.com>
12273
12274 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
12275 mach_msg_type_number_t.
12276 (gnu_write_inferior): Likewise.
12277
a9a758e3
YQ
122782014-02-17 Yao Qi <yao@codesourcery.com>
12279
12280 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
12281 in format string.
12282 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
12283 (inf_validate_procs, inf_signal): Likewise.
12284 (S_exception_raise_request): Likewise.
12285 (do_mach_notify_dead_name): Likewise.
12286 (steal_exc_port): Likewise.
12287 (gnu_read_inferior): Change 'copy_count''s type to
12288 mach_msg_type_number_t.
12289 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
12290 format string.
12291
bae8023e
TS
122922014-02-16 Thomas Schwinge <thomas@codesourcery.com>
12293
c82f56d9
TS
12294 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
12295 flag. Adjust all users; in particular...
12296 (gnu_wait): ..., don't decrement its value in here...
12297 (gnu_create_inferior): ..., and instead set the flag in here,
12298 around the startup_inferior call, and call that one with
12299 START_INFERIOR_TRAPS_EXPECTED.
12300
3398af6a
TS
12301 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
12302 (ILL_RPC): ... new macro.
12303 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
12304 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
12305 (do_mach_notify_send_once, S_proc_setmsgport_reply)
12306 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
12307 functions with ILL_RPC macro.
12308 (S_proc_pid2task_reply, S_proc_task2pid_reply)
12309 (S_proc_task2proc_reply, S_proc_proc2task_reply)
12310 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
12311 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
12312 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
12313 (S_proc_getlogin_reply, S_proc_getsid_reply)
12314 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
12315 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
12316 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
12317 (S_proc_getnports_reply, S_proc_is_important_reply)
12318 (S_proc_get_code_reply): New stub functions, generated with
12319 ILL_RPC macro.
12320
d47642c9
TS
12321 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
12322 collected the type check structures.
12323
bae8023e
TS
12324 * reply_mig_hack.awk: Don't expect to see the auto keyword.
12325
8a55ffb0
DE
123262014-02-14 Doug Evans <dje@google.com>
12327
12328 * target.c (target_write_partial): Fix result type.
12329
c2853f3d
JM
123302014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
12331
12332 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
12333 the proper offsets to access fpregset_t.
12334
ac61d2db
SA
123352014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
12336
12337 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
12338 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
12339 * h8300-tdep.c (setmachinelist): Remove global.
12340 * hppa-tdep.c (hppa_sigtramp): Remove global.
12341 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
12342 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
12343 * ravenscar-thread.c (update_target_observer): Remove global.
12344 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
12345
9d2d0b8b
TT
123462014-02-12 Tom Tromey <tromey@redhat.com>
12347
12348 * common/rsp-low.c: Update comments.
12349 * common/rsp-low.h: Update comments.
12350
a7191e8b
TT
123512014-02-12 Tom Tromey <tromey@redhat.com>
12352
12353 * common/rsp-low.c (convert_ascii_to_int): Remove.
12354 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
12355
ff0e980e
TT
123562014-02-12 Tom Tromey <tromey@redhat.com>
12357
12358 * common/rsp-low.h (unhexify): Don't declare.
12359 * common/rsp-low.c (unhexify): Remove.
12360
e9371aff
TT
123612014-02-12 Tom Tromey <tromey@redhat.com>
12362
12363 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
12364 * common/rsp-low.c (convert_int_to_ascii): Remove.
12365
971dc0b8
TT
123662014-02-12 Tom Tromey <tromey@redhat.com>
12367
12368 * common/rsp-low.h (hexify): Don't declare.
12369 * common/rsp-low.c (hexify): Remove.
12370
0a822afb
TT
123712014-02-12 Tom Tromey <tromey@redhat.com>
12372
12373 * common/rsp-low.c (hexify): Never take strlen of argument.
12374
9f1b45b0
TT
123752014-02-12 Tom Tromey <tromey@redhat.com>
12376
12377 * common/rsp-low.c (bin2hex): Never take strlen of argument.
12378 * remote.c (extended_remote_run, remote_rcmd)
12379 (remote_download_trace_state_variable, remote_save_trace_data)
12380 (remote_set_trace_notes): Update.
12381 * tracepoint.c (encode_source_string, tfile_write_status)
12382 (tfile_write_uploaded_tsv): Update.
12383
9c3d6531
TT
123842014-02-12 Tom Tromey <tromey@redhat.com>
12385
12386 * tracepoint.c: Include rsp-low.h.
12387 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
12388 * remote.c: Include rsp-low.h.
12389 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
12390 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
12391 (remote_unescape_input): Move to common/rsp-low.c.
12392 * common/rsp-low.h: New file.
12393 * common/rsp-low.c: New file.
12394 * Makefile.in (SFILES): Add common/rsp-low.c.
12395 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
12396 (COMMON_OBS): Add rsp-low.o.
12397 (rsp-low.o): New target.
12398
01fd3ea5
TT
123992014-02-12 Tom Tromey <tromey@redhat.com>
12400
12401 * utils.h: Include print-utils.h.
12402 (host_address_to_string, plongest, pulongest, phex, phex_nz)
12403 (int_string, core_addr_to_string, core_addr_to_string_nz)
12404 (hex_string, hex_string_custom): Don't declare.
12405 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
12406 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
12407 (hex_string_custom, int_string, core_addr_to_string)
12408 (core_addr_to_string_nz, host_address_to_string): Move to
12409 common/print-utils.c.
12410 * common/print-utils.h: New file.
12411 * common/print-utils.c: New file
12412 * Makefile.in (SFILES): Add common/print-utils.c.
12413 (HFILES_NO_SRCDIR): Add common/print-utils.h.
12414 (COMMON_OBS): Add print-utils.o.
12415 (print-utils.o): New target.
12416
9fb50108
TT
124172014-02-12 Tom Tromey <tromey@redhat.com>
12418
12419 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
12420
0548b5db
MK
124212014-02-12 Mark Kettenis <kettenis@gnu.org>
12422
12423 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
12424
493443a4
MK
124252014-02-12 Mark Kettenis <kettenis@gnu.org>
12426
12427 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
12428 if a PT_IO ptrace request returns sucessfully but indicates that 0
12429 bytes were transferred.
12430
706d0883
PA
124312014-02-12 Pedro Alves <palves@redhat.com>
12432 Kevin Buettner <kevinb@redhat.com>
12433
12434 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
12435 TYPE_INSTANCE_FLAG_CODE_SPACE.
12436
5caa2f0b
PA
124372014-02-12 Pedro Alves <palves@redhat.com>
12438
12439 * h8300-tdep.c (pseudo_from_raw_register)
12440 (raw_from_pseudo_register): New functions.
12441 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
12442 them.
12443
76fd5f74
PA
124442014-02-12 Pedro Alves <palves@redhat.com>
12445
12446 * h8300-tdep.c (h8300_register_sim_regno): New function.
12447 (h8300_gdbarch_init): Install h8300_register_sim_regno as
12448 gdbarch_register_sim_regno hook.
12449
8f008406
SA
124502014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
12451
12452 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
12453
195abc10
SA
124542014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
12455
12456 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
12457
93ffa5b9
MK
124582014-02-12 Mark Kettenis <kettenis@gnu.org>
12459
12460 * obsd-tdep.h (obsd_init_abi): New prototype.
12461 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
12462 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
12463 (obsd_init_abi): New functions.
12464 * i386obsd-tdep.c: Include "obsd-tdep.h".
12465 (i386obsd_init_abi): Call obsd_init_abi.
12466 * amd64obsd-tdep.c: Include "obsd-tdep.h".
12467 (amd64obsd_init_abi): Call obsd_init_abi.
12468 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
12469 obsd-tdep.c to gdb_target_obs.
12470
49caec94
JM
124712014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
12472
12473 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
12474 double float arguments to 16-byte in the argument slots.
12475
e1402065
DE
124762014-02-11 Doug Evans <xdje42@gmail.com>
12477
12478 * configure.ac: Don't crash if pkg-config is not found and guile
12479 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
12480 in guile checks.
12481 * configure: Regenerate.
12482
edcc890f
YQ
124832014-02-11 Yao Qi <yao@codesourcery.com>
12484
12485 * aix-thread.c (aix_thread_xfer_partial): Update comments.
12486 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
12487 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
12488 * gnu-nat.c (gnu_xfer_memory): Likewise.
12489 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
12490 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12491 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12492 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12493
9b409511
YQ
124942014-02-11 Yao Qi <yao@codesourcery.com>
12495
12496 * target.h (enum target_xfer_error): Rename to ...
12497 (enum target_xfer_status): ... it. New. All users updated.
12498 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
12499 New.
12500 (TARGET_XFER_STATUS_ERROR_P): New macro.
12501 (target_xfer_error_to_string): Remove declaration.
12502 (target_xfer_status_to_string): Declare.
12503 (target_xfer_partial_ftype): Adjust it.
12504 (struct target_ops) <to_xfer_partial>: Return
12505 target_xfer_status. Add argument xfered_len. Update
12506 comments.
12507 * target.c (target_xfer_error_to_string): Rename to ...
12508 (target_xfer_status_to_string): ... it. New. All callers
12509 updated.
12510 (target_read_live_memory): Likewise. Call target_xfer_partial
12511 instead of target_read.
12512 (memory_xfer_live_readonly_partial): Return
12513 target_xfer_status. Add argument xfered_len.
12514 (raw_memory_xfer_partial): Likewise.
12515 (memory_xfer_partial_1): Likewise.
12516 (memory_xfer_partial): Likewise.
12517 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
12518 properly. Update debug message.
12519 (default_xfer_partial, current_xfer_partial): Likewise.
12520 (target_write_partial): Likewise.
12521 (target_read_partial): Likewise. All callers updated.
12522 (read_whatever_is_readable): Likewise.
12523 (target_write_with_progress): Likewise.
12524 (target_read_alloc_1): Likewise.
12525
12526 * aix-thread.c (aix_thread_xfer_partial): Likewise.
12527 * auxv.c (procfs_xfer_auxv): Likewise.
12528 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
12529 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12530 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12531 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
12532 * corefile.c (read_memory): Adjust.
12533 * corelow.c (core_xfer_partial): Likewise.
12534 * ctf.c (ctf_xfer_partial): Likewise.
12535 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
12536 updated.
12537 (darwin_xfer_partial): Likewise.
12538 * exec.c (section_table_xfer_memory_partial): Likewise. All
12539 callers updated.
12540 (exec_xfer_partial): Likewise.
12541 * exec.h (section_table_xfer_memory_partial): Update
12542 declaration.
12543 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
12544 negative.
12545 (gnu_xfer_partial): Likewise.
12546 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
12547 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
12548 (ia64_hpux_xfer_solib_got): Likewise.
12549 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
12550 type of 'partial_len' to ULONGEST.
12551 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
12552 * linux-nat.c (linux_xfer_siginfo ): Likewise.
12553 (linux_nat_xfer_partial): Likewise.
12554 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
12555 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
12556 * monitor.c (monitor_xfer_memory): Likewise.
12557 (monitor_xfer_partial): Likewise.
12558 * procfs.c (procfs_xfer_partial): Likewise.
12559 * record-btrace.c (record_btrace_xfer_partial): Likewise.
12560 * record-full.c (record_full_xfer_partial): Likewise.
12561 (record_full_core_xfer_partial): Likewise.
12562 * remote-sim.c (gdbsim_xfer_memory): Likewise.
12563 (gdbsim_xfer_partial): Likewise.
12564 * remote.c (remote_write_bytes_aux): Likewise. All callers
12565 updated.
12566 (remote_write_bytes, remote_read_bytes): Likewise. All
12567 callers updated.
12568 (remote_flash_erase): Likewise. All callers updated.
12569 (remote_write_qxfer): Likewise. All callers updated.
12570 (remote_read_qxfer): Likewise. All callers updated.
12571 (remote_xfer_partial): Likewise.
12572 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12573 (rs6000_xfer_shared_libraries): Likewise.
12574 * sol-thread.c (sol_thread_xfer_partial): Likewise.
12575 (sol_thread_xfer_partial): Likewise.
12576 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12577 (sparc_xfer_partial): Likewise.
12578 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
12579 updated.
12580 (spu_xfer_partial): Likewise.
12581 * spu-multiarch.c (spu_xfer_partial): Likewise.
12582 * tracepoint.c (tfile_xfer_partial): Likewise.
12583 * windows-nat.c (windows_xfer_memory): Likewise.
12584 (windows_xfer_shared_libraries): Likewise.
12585 (windows_xfer_partial): Likewise.
12586 * valprint.c: Replace 'target_xfer_error' with
12587 'target_xfer_status' in comments.
12588
a8e63083
JB
125892014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
12590
12591 Checked in by Joel Brobecker <brobecker@adacore.com>.
12592 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
12593
e86b67d3
JB
125942014-02-11 Joel Brobecker <brobecker@adacore.com>
12595
12596 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
12597 function parameters.
12598
4b7d1f7f
WN
125992014-02-10 Will Newton <will.newton@linaro.org>
12600
12601 * elfread.c (elf_rel_plt_read): Look for a .got section if
12602 looking up .got.plt fails.
12603 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
12604 on address passed to elf_gnu_ifunc_record_cache.
12605 (elf_gnu_ifunc_resolve_addr): Likewise.
12606 (elf_gnu_ifunc_resolver_return_stop): Likewise.
12607
961842b2
JM
126082014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
12609
12610 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
12611 (X_RETTURN): New macro.
12612 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
12613
12614 * sparc64-tdep.c (sparc64_init_abi): Hook
12615 sparc_in_function_epilogue_p.
12616
3f03e7b1
GB
126172014-02-10 Gary Benson <gbenson@redhat.com>
12618
12619 * symfile-debug.c (debug_qf_expand_symtabs_matching):
12620 Rename name_matcher to symbol_matcher.
12621
96f861ef
GB
126222014-02-10 Gary Benson <gbenson@redhat.com>
12623
12624 * symfile-debug.c (debug_qf_expand_symtabs_matching):
12625 Use expand_symtabs_file_matcher_ftype and
12626 expand_symtabs_symbol_matcher_ftype.
12627
ee01b665
JB
126282014-02-10 Joel Brobecker <brobecker@adacore.com>
12629
12630 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
12631 (struct ada_symbol_cache): New.
12632 (ada_free_symbol_cache): Forward declare.
12633 (struct ada_pspace_data): New.
12634 (ada_pspace_data_handle): New static global.
12635 (get_ada_pspace_data, ada_pspace_data_cleanup)
12636 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
12637 (cache_space, cache): Delete, now folded inside struct
12638 ada_pspace_data.
12639 (ada_get_symbol_cache): New function.
12640 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
12641 implementation.
12642 (_initialize_ada_language): Remove initialization of cache_space.
12643 Move call to observer_attach_inferior_exit up, grouping it
12644 with the other observer registrations inside this function.
12645 Rename command to be more general. Add call to
12646 register_program_space_data_with_cleanup.
12647
143adbbf
JB
126482014-02-10 Joel Brobecker <brobecker@adacore.com>
12649
12650 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
12651 ada_new_objfile_observer.
12652 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
12653 (_initialize_tasks): Update uses of ada_new_objfile_observer
12654 and ada_tasks_normal_stop_observer.
12655
aa4fb036
JB
126562014-02-10 Joel Brobecker <brobecker@adacore.com>
12657
12658 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
12659 returned by the 'Length attribute to integer.
12660
9dee8cc6
JB
126612014-02-10 Joel Brobecker <brobecker@adacore.com>
12662
12663 * ada-lang.c (_initialize_ada_language): Initialize
12664 cache_space obstack.
12665
3d9434b5
JB
126662014-02-10 Joel Brobecker <brobecker@adacore.com>
12667
12668 * ada-lang.c (HASH_SIZE): New macro.
12669 (struct cache_entry): New type.
12670 (cache_space, cache): New static globals.
12671 (ada_clear_symbol_cache, find_entry): New functions.
12672 (lookup_cached_symbol, cache_symbol): Implement.
12673 (ada_new_objfile_observer, ada_free_objfile_observer): New.
12674 (_initialize_ada_language): Attach ada_new_objfile_observer
12675 and ada_free_objfile_observer.
12676
f0c5f9b2
JB
126772014-02-10 Joel Brobecker <brobecker@adacore.com>
12678
12679 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
12680 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
12681 struct block * parameter.
12682 (ada_lookup_symbol_list_worker): Constify local variable "block".
12683 Remove cast which is no longer necessary.
12684
ed3ef339
DE
126852014-02-10 Doug Evans <xdje42@gmail.com>
12686
12687 Add Guile as an extension language.
12688 * NEWS: Mention Guile scripting.
12689 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
12690 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
12691 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
12692 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
12693 (CLIBS): Add GUILE_LIBS.
12694 (install-guile): New rule.
12695 (guile.o): New rule.
12696 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
12697 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
12698 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
12699 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
12700 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
12701 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
12702 (scm-type.o, scm-utils.o, scm-value.o): New rules.
12703 * configure.ac: New option --with-guile.
12704 * configure: Regenerate.
12705 * config.in: Regenerate.
12706 * auto-load.c: Remove #include "python/python.h". Add #include
12707 "gdb/section-scripts.h".
12708 (source_section_scripts): Handle Guile scripts.
12709 (_initialize_auto_load): Add name of Guile objfile script to
12710 scripts-directory help text.
12711 * breakpoint.c (condition_command): Tweak comment to include Scheme.
12712 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
12713 (struct breakpoint): New member scm_bp_object.
12714 * defs.h (enum command_control_type): New value guile_control.
12715 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
12716 "extension.h".
12717 (show_user): Update comment.
12718 (_initialize_cli_cmds): Update help text for "show user". Update help
12719 text for max-user-call-depth.
12720 * cli/cli-script.c: Remove #include "python/python.h". Add #include
12721 "extension.h".
12722 (multi_line_command_p): Add guile_control.
12723 (print_command_lines): Handle guile_control.
12724 (execute_control_command, recurse_read_control_structure): Ditto.
12725 (process_next_line): Recognize "guile" commands.
12726 * disasm.c (gdb_disassemble_info): Make non-static.
12727 * disasm.h: #include "dis-asm.h".
12728 (struct gdbarch): Add forward decl.
12729 (gdb_disassemble_info): Declare.
12730 * extension.c: #include "guile/guile.h".
12731 (extension_languages): Add guile.
12732 (get_ext_lang_defn): Handle EXT_LANG_GDB.
12733 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
12734 * gdbtypes.c (get_unsigned_type_max): New function.
12735 (get_signed_type_minmax): New function.
12736 * gdbtypes.h (get_unsigned_type_max): Declare.
12737 (get_signed_type_minmax): Declare.
12738 * guile/README: New file.
12739 * guile/guile-internal.h: New file.
12740 * guile/guile.c: New file.
12741 * guile/guile.h: New file.
12742 * guile/scm-arch.c: New file.
12743 * guile/scm-auto-load.c: New file.
12744 * guile/scm-block.c: New file.
12745 * guile/scm-breakpoint.c: New file.
12746 * guile/scm-disasm.c: New file.
12747 * guile/scm-exception.c: New file.
12748 * guile/scm-frame.c: New file.
12749 * guile/scm-gsmob.c: New file.
12750 * guile/scm-iterator.c: New file.
12751 * guile/scm-lazy-string.c: New file.
12752 * guile/scm-math.c: New file.
12753 * guile/scm-objfile.c: New file.
12754 * guile/scm-ports.c: New file.
12755 * guile/scm-pretty-print.c: New file.
12756 * guile/scm-safe-call.c: New file.
12757 * guile/scm-string.c: New file.
12758 * guile/scm-symbol.c: New file.
12759 * guile/scm-symtab.c: New file.
12760 * guile/scm-type.c: New file.
12761 * guile/scm-utils.c: New file.
12762 * guile/scm-value.c: New file.
12763 * guile/lib/gdb.scm: New file.
12764 * guile/lib/gdb/boot.scm: New file.
12765 * guile/lib/gdb/experimental.scm: New file.
12766 * guile/lib/gdb/init.scm: New file.
12767 * guile/lib/gdb/iterator.scm: New file.
12768 * guile/lib/gdb/printing.scm: New file.
12769 * guile/lib/gdb/types.scm: New file.
12770 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
12771 (VPATH): Add $(GUILE_SRCDIR).
12772 (GUILE_DIR): New variable.
12773 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
12774 (all): Add stamp-guile dependency.
12775 (stamp-guile): New rule.
12776 (clean-guile, install-guile, uninstall-guile): New rules.
12777 (install-only): Add install-guile dependency.
12778 (uninstall): Add uninstall-guile dependency.
12779 (clean): Add clean-guile dependency.
12780
ac020ec5
DE
127812014-02-09 Doug Evans <xdje42@gmail.com>
12782
12783 Revert this patch (which I approved, mea culpa).
12784
12785 2014-02-08 Mark Kettenis <kettenis@gnu.org>
12786
12787 * Makefile.in (all-lib): Remove.
12788 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
12789
2a081c59
JK
127902014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
12791
12792 Fix Python stack corruption.
12793 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
12794 gdb_py_longest.
12795
0a6bd22d
MK
127962014-02-08 Mark Kettenis <kettenis@gnu.org>
12797
12798 * Makefile.in (all-lib): Remove.
12799 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
12800
1a860409
DE
128012014-02-07 Doug Evans <dje@google.com>
12802
12803 * extension-priv.h (extension_language_script_ops): Add comment.
12804 (extension_language_ops): Add comment.
caf5a491 12805 (active_ext_lang_state): Fix typo in comment.
1a860409 12806
d137e6dc
PA
128072014-02-07 Pedro Alves <palves@redhat.com>
12808
0dcb32c3 12809 PR breakpoints/16292
d137e6dc
PA
12810 * infrun.c (handle_signal_stop) <signal arrives while stepping
12811 over a breakpoint>: Switch back to the stepping thread.
12812
ce6d0892
YQ
128132014-02-07 Yao Qi <yao@codesourcery.com>
12814
12815 * target.c (target_xfer_partial): Return zero if LEN is zero.
12816
2ed4b548
YQ
128172014-02-07 Yao Qi <yao@codesourcery.com>
12818
12819 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
12820 (ld_so_xfer_auxv): Likewise.
12821 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12822 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12823 * corelow.c (core_xfer_partial): Likewise.
12824 * ctf.c (ctf_xfer_partial): Likewise.
12825 * darwin-nat.c (darwin_read_dyld_info): Likewise.
12826 (darwin_xfer_partial): Likewise.
12827 * exec.c (exec_xfer_partial): Likewise.
12828 * gnu-nat.c (gnu_xfer_partial): Likewise.
12829 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
12830 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
12831 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
12832 * linux-nat.c (linux_xfer_siginfo): Likewise.
12833 (linux_proc_xfer_spu): Likewise.
12834 * procfs.c (procfs_xfer_partial): Likewise.
12835 * record-full.c (record_full_xfer_partial): Likewise.
12836 (record_full_core_xfer_partial): Likewise.
12837 * remote-sim.c (gdbsim_xfer_partial): Likewise.
12838 * remote.c (remote_write_qxfer): Likewise.
12839 (remote_write_qxfer, remote_read_qxfer): Likewise.
12840 (remote_xfer_partial): Likewise.
12841 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12842 (rs6000_xfer_shared_libraries): Likewise.
12843 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12844 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12845 (spu_xfer_partial): Likewise.
12846 * target.c (memory_xfer_partial_1): Likewise.
12847 * tracepoint.c (tfile_xfer_partial): Likewise.
12848 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
12849 (windows_xfer_partial): Likewise.
12850
c09f20e4
YQ
128512014-02-07 Yao Qi <yao@codesourcery.com>
12852
12853 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
12854 comments.
12855 (core_xfer_shared_libraries_aix): Likewise.
12856 * gdbarch.c, gdbarch.h: Regenerated.
12857 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
12858 ULONGEST. Change 'len_avail' type to ULONGEST.
12859 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12860 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12861 declaration.
12862 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
12863
8635b3bf
YQ
128642014-02-07 Yao Qi <yao@codesourcery.com>
12865
12866 * corefile.c (memory_error): Get 'exception' from ERR and pass
12867 'exception' to throw_error.
12868
6dddc817
DE
128692014-02-06 Doug Evans <xdje42@gmail.com>
12870
12871 * configure.ac (libpython checking): Remove all but python.o from
12872 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
12873 * configure: Regenerate.
12874
12875 * Makefile.in (SFILES): Add extension.c.
12876 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
12877 (COMMON_OBS): Add extension.o.
12878 * extension.h: New file.
12879 * extension-priv.h: New file.
12880 * extension.c: New file.
12881
12882 * python/python-internal.h: #include "extension.h".
12883 (gdbpy_auto_load_enabled): Declare.
12884 (gdbpy_apply_val_pretty_printer): Declare.
12885 (gdbpy_apply_frame_filter): Declare.
12886 (gdbpy_preserve_values): Declare.
12887 (gdbpy_breakpoint_cond_says_stop): Declare.
12888 (gdbpy_breakpoint_has_cond): Declare.
12889 (void source_python_script_for_objfile): Delete.
12890 * python/python.c: #include "extension-priv.h".
12891 Delete inclusion of "observer.h".
12892 (extension_language_python): Moved here and renamed from
12893 script_language_python in py-auto-load.c.
12894 Redefined to be of type extension_language_defn.
12895 (python_extension_script_ops): New global.
12896 (python_extension_ops): New global.
12897 (struct python_env): New member previous_active.
12898 (restore_python_env): Call restore_active_ext_lang.
12899 (ensure_python_env): Call set_active_ext_lang.
12900 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
12901 New arg extlang.
12902 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
12903 New arg extlang.
12904 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
12905 New arg extlang.
12906 (gdbpy_eval_from_control_command): Renamed from
12907 eval_python_from_control_command, made static. New arg extlang.
12908 (gdbpy_source_script) Renamed from source_python_script, made static.
12909 New arg extlang.
12910 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
12911 result to int. New arg extlang.
12912 (gdbpy_source_objfile_script): Renamed from
12913 source_python_script_for_objfile, made static. New arg extlang.
12914 (gdbpy_start_type_printers): Renamed from start_type_printers, made
12915 static. New args extlang, extlang_printers. Change result type to
12916 "void".
12917 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
12918 static. New arg extlang. Rename arg printers to extlang_printers
12919 and change type to ext_lang_type_printers *.
12920 (gdbpy_free_type_printers): Renamed from free_type_printers, made
12921 static. Replace argument arg with extlang, extlang_printers.
12922 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
12923 (!HAVE_PYTHON, source_python_script): Delete.
12924 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
12925 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
12926 (!HAVE_PYTHON, start_type_printers): Delete.
12927 (!HAVE_PYTHON, apply_type_printers): Delete.
12928 (!HAVE_PYTHON, free_type_printers): Delete.
12929 (_initialize_python): Delete call to observer_attach_before_prompt.
12930 (finalize_python): Set/restore active extension language.
12931 (gdbpy_finish_initialization) Renamed from
12932 finish_python_initialization, made static. New arg extlang.
12933 (gdbpy_initialized): New function.
12934 * python/python.h: #include "extension.h". Delete #include
12935 "value.h", "mi/mi-cmds.h".
12936 (extension_language_python): Declare.
12937 (GDBPY_AUTO_FILE_NAME): Delete.
12938 (enum py_bt_status): Moved to extension.h and renamed to
12939 ext_lang_bt_status.
12940 (enum frame_filter_flags): Moved to extension.h.
12941 (enum py_frame_args): Moved to extension.h and renamed to
12942 ext_lang_frame_args.
12943 (finish_python_initialization): Delete.
12944 (eval_python_from_control_command): Delete.
12945 (source_python_script): Delete.
12946 (apply_val_pretty_printer): Delete.
12947 (apply_frame_filter): Delete.
12948 (preserve_python_values): Delete.
12949 (gdbpy_script_language_defn): Delete.
12950 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
12951 (start_type_printers, apply_type_printers, free_type_printers): Delete.
12952
12953 * auto-load.c: #include "extension.h".
12954 (GDB_AUTO_FILE_NAME): Delete.
12955 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
12956 (script_language_gdb): Delete, moved to extension.c and renamed to
12957 extension_language_gdb.
12958 (source_gdb_script_for_objfile): Delete.
12959 (auto_load_pspace_info): New member unsupported_script_warning_printed.
12960 (loaded_script): Change type of language member to
12961 struct extension_language_defn *.
12962 (init_loaded_scripts_info): Initialize
12963 unsupported_script_warning_printed.
12964 (maybe_add_script): Make static. Change type of language arg to
12965 struct extension_language_defn *.
12966 (clear_section_scripts): Reset unsupported_script_warning_printed.
12967 (auto_load_objfile_script_1): Rewrite to use extension language API.
12968 (auto_load_objfile_script): Make public. Remove support-compiled-in
12969 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
12970 (source_section_scripts): Rewrite to use extension language API.
12971 (load_auto_scripts_for_objfile): Rewrite to use
12972 auto_load_scripts_for_objfile.
12973 (collect_matching_scripts_data): Change type of language member to
12974 struct extension_language_defn *.
12975 (auto_load_info_scripts): Change type of language arg to
12976 struct extension_language_defn *.
12977 (unsupported_script_warning_print): New function.
12978 (script_not_found_warning_print): Make static.
12979 (_initialize_auto_load): Rewrite construction of scripts-directory
12980 help.
12981 * auto-load.h (struct objfile): Add forward decl.
12982 (struct script_language): Delete.
12983 (struct auto_load_pspace_info): Add forward decl.
12984 (struct extension_language_defn): Add forward decl.
12985 (maybe_add_script): Delete.
12986 (auto_load_objfile_script): Declare.
12987 (script_not_found_warning_print): Delete.
12988 (auto_load_info_scripts): Update prototype.
12989 (auto_load_gdb_scripts_enabled): Declare.
12990 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
12991 auto_load_python_scripts_enabled and made public.
12992 (script_language_python): Delete, moved to python.c.
12993 (gdbpy_script_language_defn): Delete.
12994 (info_auto_load_python_scripts): Update to use
12995 extension_language_python.
12996
12997 * breakpoint.c (condition_command): Replace call to
12998 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
12999 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
13000 with call to breakpoint_ext_lang_cond_says_stop.
13001 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
13002 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
13003 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
13004 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
13005 New arg slang.
13006 (local_setattro): Print name of extension language with existing
13007 stop condition.
13008
13009 * valprint.c (val_print, value_print): Update to call
13010 apply_ext_lang_val_pretty_printer.
13011 * cp-valprint.c (cp_print_value): Update call to
13012 apply_ext_lang_val_pretty_printer.
13013 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
13014 (gdbpy_apply_val_pretty_printer): Renamed from
13015 apply_val_pretty_printer. New arg extlang.
13016 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
13017
13018 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
13019 extension language API.
13020 * cli/cli-script.c (execute_control_command): Update to call
13021 eval_ext_lang_from_control_command.
13022
13023 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
13024 enum ext_lang_bt_status values. Update call to
13025 apply_ext_lang_frame_filter.
13026 (mi_cmd_stack_list_locals): Ditto.
13027 (mi_cmd_stack_list_args): Ditto.
13028 (mi_cmd_stack_list_variables): Ditto.
13029 * mi/mi-main.c: Delete #include "python/python-internal.h".
13030 Add #include "extension.h".
13031 (mi_cmd_list_features): Replace reference to python internal variable
13032 gdb_python_initialized with call to ext_lang_initialized_p.
13033
13034 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
13035 Update to use enum ext_lang_frame_args. Update to call
13036 apply_ext_lang_frame_filter.
13037 * python/py-framefilter.c (extract_sym): Update to use enum
13038 ext_lang_bt_status.
13039 (extract_value, py_print_type, py_print_value): Ditto.
13040 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
13041 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
13042 (py_print_frame): Ditto.
13043 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
13044 New arg extlang. Update to use enum ext_lang_bt_status.
13045
13046 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
13047 finish_python_initialization. Replace with call to
13048 finish_ext_lang_initialization.
13049
13050 * typeprint.c (do_free_global_table): Update to call
13051 free_ext_lang_type_printers.
13052 (create_global_typedef_table): Update to call
13053 start_ext_lang_type_printers.
13054 (find_global_typedef): Update to call apply_ext_lang_type_printers.
13055 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
13056 (type_print_options): Change type of global_printers from "void *"
13057 to "struct ext_lang_type_printers *".
13058
13059 * value.c (preserve_values): Update to call preserve_ext_lang_values.
13060 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
13061 (gdbpy_preserve_values): Renamed from preserve_python_values.
13062 New arg extlang.
13063 (!HAVE_PYTHON, preserve_python_values): Delete.
13064
13065 * utils.c (quit_flag): Delete, moved to extension.c.
13066 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
13067 extension.c.
13068
13069 * eval.c: Delete #include "python/python.h".
13070 * main.c: Delete #include "python/python.h".
13071
13072 * defs.h: Update comment.
13073
6af79985
JB
130742014-02-06 Joel Brobecker <brobecker@adacore.com>
13075
13076 GDB 7.7 released.
13077
12c5175d
MK
130782014-02-05 Mark Kettenis <kettenis@gnu.org>
13079
13080 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
13081 defined.
13082
8dc5b319
YQ
130832014-02-05 Yao Qi <yao@codesourcery.com>
13084
13085 * remote.c (remote_pass_signals): Remove local 'buf' and use
13086 rs->buf.
13087 (remote_program_signals): Likewise.
13088
de7b2893
YQ
130892014-02-05 Yao Qi <yao@codesourcery.com>
13090
13091 * ctf.c: Include "inferior.h" and "gdbthread.h".
13092 (CTF_PID): A new macro.
13093 (ctf_open): Call inferior_appeared and add_thread_silent.
13094 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
13095 (ctf_thread_alive): New function.
13096 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
13097
66d032ac
YQ
130982014-02-05 Yao Qi <yao@codesourcery.com>
13099
13100 Revert this patch:
13101
13102 2013-05-24 Yao Qi <yao@codesourcery.com>
13103
13104 * tracepoint.c (TFILE_PID): Remove.
13105 (tfile_open): Don't add thread and inferior.
13106 (tfile_close): Don't set 'inferior_ptid'. Don't call
13107 exit_inferior_silent.
13108 (tfile_thread_alive): Remove.
13109 (init_tfile_ops): Don't set field 'to_thread_alive' of
13110 tfile_ops.
13111
f4ccffad
CE
131122014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
13113
13114 * remote.c (remote_start_remote): Call remote_check_symbols even
13115 if only symbol-file (not file) has been given.
13116
591a12a1
UW
131172014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13118
13119 * gdbarch.sh (skip_entrypoint): New callback.
13120 * gdbarch.c, gdbarch.h: Regenerate.
13121 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
13122 * infrun.c (fill_in_stop_func): Likewise.
13123 * ppc-linux-tdep.c: Include "elf/ppc64.h".
13124 (ppc_elfv2_elf_make_msymbol_special): New function.
13125 (ppc_elfv2_skip_entrypoint): Likewise.
13126 (ppc_linux_init_abi): Install them for ELFv2.
13127
cc0e89c5
UW
131282014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13129
13130 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
13131 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
13132 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
13133 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
13134 structures returned in GPRs.
13135
52f548e4
UW
131362014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13137
13138 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
13139 offset to the stack parameter list for the ELFv2 ABI.
13140
d4094b6a
UW
131412014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13142
13143 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
13144 set_gdbarch_convert_from_func_ptr_addr and
13145 set_gdbarch_elf_make_msymbol_special for ELFv1.
13146 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
13147 function descriptors on ELFv1.
13148 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
13149 set up r12 at function entry.
13150
cd453cd0
UW
131512014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13152
13153 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
13154 (struct gdbarch_tdep): New member elf_abi.
13155
13156 * rs6000-tdep.c: Include "elf/ppc64.h".
13157 (rs6000_gdbarch_init): Detect ELF ABI version.
13158
0ff3e01f
UW
131592014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13160
13161 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
13162 within a register pair holding a DFP 128-bit value on little-endian.
13163 (ppc64_sysv_abi_return_value_base): Likewise.
13164 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
13165 (dfp_pseudo_register_write): Likewise.
13166
5b757e5d
UW
131672014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13168
13169 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
13170 offset on little-endian when passing _Decimal32.
13171 (ppc64_sysv_abi_return_value_base): Likewise for return values.
13172
084ee545
UW
131732014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13174
13175 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
13176 of the overlapped FP register within the VSX register on little-
13177 endian platforms.
13178 (efpr_pseudo_register_write): Likewise.
13179
d63167af
UW
131802014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13181
13182 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
13183 offset on little-endian when passing small structures.
13184
e765b44c
UW
131852014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13186
13187 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
13188 (struct ppc64_sysv_argpos): New data structure.
13189 (ppc64_sysv_abi_push_float): Remove.
13190 (ppc64_sysv_abi_push_val): New function.
13191 (ppc64_sysv_abi_push_integer): Likewise.
13192 (ppc64_sysv_abi_push_freg): Likewise.
13193 (ppc64_sysv_abi_push_vreg): Likewise.
13194 (ppc64_sysv_abi_push_param): Likewise.
13195 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
13196 (ppc64_sysv_abi_return_value_base): New function.
13197 (ppc64_sysv_abi_return_value): Refactor to use it.
13198
36c24d95
UW
131992014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13200
13201 * NEWS: Document new target powerpc64le-*-linux*.
13202
26fd9228
MK
132032014-02-04 Mark Kettenis <kettenis@gnu.org>
13204
13205 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
13206 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
13207 core dumps.
13208 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
13209 register set used in ELF core dumps. Add floating-point register set.
13210
c5bb7362
KB
132112014-02-03 Kevin Buettner <kevinb@redhat.com>
13212
74228e77 13213 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
c5bb7362
KB
13214 dwarf2_to_gdb[] table using symbolic constants. Adjust
13215 penultimate entry from number representing the PC register
13216 to symbolic constant representing the MDR register. Add
13217 constant for the PC register to the end of the table.
13218
af09351e
MK
132192014-02-03 Mark Kettenis <kettenis@gnu.org>
13220
13221 * bsd-kvm.c: Include <sys/param.h>
13222
8507e05d
MK
132232014-02-03 Mark Kettenis <kettenis@gnu.org>
13224
13225 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
13226
ae56bfb8
JB
132272014-01-31 Joel Brobecker <brobecker@adacore.com>
13228
13229 * ada-lang.h (clear_ada_sym_cache): Delete.
13230
718ee4dc
UW
132312014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
13232
13233 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
13234
401e27fd
JM
132352014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
13236
13237 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
13238 the sigreturn register save area only if the syscall is
13239 sigreturn.
13240
a7c88acd
JB
132412014-01-29 Joel Brobecker <brobecker@adacore.com>
13242
13243 * valops.c (value_slice): Minor reformatting.
13244
fa0079ea
UW
132452014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
13246
13247 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
13248
c6044dd1
JB
132492014-01-28 Joel Brobecker <brobecker@adacore.com>
13250
13251 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
13252 New static globals.
13253 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
13254 (ada_ignore_descriptive_types_p): New static global.
13255 (find_parallel_type_by_descriptive_type): Return immediately
13256 if ada_ignore_descriptive_types_p is set.
13257 (_initialize_ada_language): Register new commands "maintenance
13258 set ada", "maintenance show ada", "maintenance set ada
13259 ignore-descriptive-types" and "maintenance show ada
13260 ignore-descriptive-types".
13261 * NEWS: Add entry for new "maint ada set/show
13262 ignore-descriptive-types" commands.
13263
568e808b
MM
132642014-01-27 Markus Metzger <markus.t.metzger@intel.com>
13265
13266 * record-btrace.c (record_btrace_close): Call btrace_teardown
13267 for all threads.
13268
467d141b
JB
132692014-01-27 Joel Brobecker <brobecker@adacore.com>
13270
13271 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
13272 "ui-out.h".
13273
fb151210
JB
132742014-01-27 Joel Brobecker <brobecker@adacore.com>
13275
13276 * ada-typeprint (type_is_full_subrange_of_target_type):
13277 New function.
13278 (print_range): Add parameter bounds_prefered_p. If not set,
13279 try printing range types using the name of their base type.
13280 (print_range_type): Add parameter bounds_prefered_p.
13281 Use it in call to print_range.
13282 (print_array_type, ada_print_type): Update calls to print_range
13283 and print_range_type.
13284
aba02109
JB
132852014-01-27 Joel Brobecker <brobecker@adacore.com>
13286
13287 * ada-typeprint.c (print_array_type, print_choices, print_range)
13288 (print_range_bound, print_dynamic_range_bound, print_range_type):
13289 Remove declaration.
13290
e62e21fd
JB
132912014-01-27 Joel Brobecker <brobecker@adacore.com>
13292
13293 * ada-typeprint.c (print_range): Add missing empty line
13294 after local declaration.
13295
859cf5d1
JB
132962014-01-27 Joel Brobecker <brobecker@adacore.com>
13297
13298 * ada-valprint.c (print_optional_low_bound): Get index_type's
13299 target type for as long as it is a TYPE_CODE_RANGE.
13300
25790f6f
JB
133012014-01-27 Joel Brobecker <brobecker@adacore.com>
13302
13303 * procfs.c (procfs_make_note_section): Remove assertion and
13304 associated comment.
13305
6b6aa828
YQ
133062014-01-24 Yao Qi <yao@codesourcery.com>
13307
13308 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
13309 * corelow.c (get_core_siginfo): Likewise.
13310
5d6df423
YQ
133112014-01-24 Yao Qi <yao@codesourcery.com>
13312
13313 * remote.c (remote_write_bytes_aux): Change type of 'len' to
13314 ULONGEST. Don't check 'len' is negative.
13315 (remote_write_bytes): Change type of 'len' to ULONGEST.
13316
83b645b8
TT
133172014-01-23 Tom Tromey <tromey@redhat.com>
13318
13319 PR python/16485:
13320 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
13321 Handle exception from frame.block.
13322 (FrameVars.fetch_frame_locals): Likewise.
13323
0740f8d8
TT
133242014-01-23 Tom Tromey <tromey@redhat.com>
13325
13326 PR python/16487:
13327 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
13328 on a NULL pointer. Move "goto error" to correct place.
13329
21909fa1
TT
133302014-01-23 Tom Tromey <tromey@redhat.com>
13331
13332 PR python/16491:
13333 * python/py-framefilter.c (apply_frame_filter): Call
13334 ensure_python_env after computing gdbarch.
13335
17fde6d0
YQ
133362014-01-23 Yao Qi <yao@codesourcery.com>
13337
13338 * target.c (raw_memory_xfer_partial): Change argument type
13339 from void * to gdb_byte *.
13340 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
13341
87ce2a04
DE
133422014-01-22 Doug Evans <dje@google.com>
13343
13344 New gdbserver option --debug-format=timestamp.
13345 * NEWS: Mention it.
13346
237b092b
AA
133472014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
13348
13349 * syscalls/s390x-linux.xml: New file.
13350 * syscalls/s390-linux.xml: New file.
13351 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
13352 (XML_SYSCALL_FILENAME_S390X): Likewise.
13353 (op_svc): New enum value for SVC opcode.
13354 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
13355 (s390_linux_get_syscall_number): New function.
13356 (s390_gdbarch_init): Register '*get_syscall_number' and the
13357 syscall xml file name.
13358 * data-directory/Makefile.in (SYSCALLS_FILES): Add
13359 "s390-linux.xml" and "s390x-linux.xml".
13360 * NEWS: Announce new feature.
13361
54bff650
BS
133622014-01-22 Baruch Siach <baruch@tkos.co.il>
13363
13364 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
13365
14e361d7
PA
133662014-01-22 Pedro Alves <palves@redhat.com>
13367
13368 * xtensa-config.c: Include defs.h.
13369
46bbb3ed
JB
133702014-01-22 Joel Brobecker <brobecker@adacore.com>
13371
13372 * common/common-utils.h: Add "ARI:" comment beside __func__
13373 reference.
13374
3a80edfc
JB
133752014-01-22 Joel Brobecker <brobecker@adacore.com>
13376
13377 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
13378 documentation a bit.
13379
4869db5e
RM
133802014-01-21 Roland McGrath <mcgrathr@google.com>
13381
13382 * configure.ac: Call AM_PROG_INSTALL_STRIP.
13383 * configure: Regenerate.
13384 * aclocal.m4: Regenerate.
13385 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
13386 New substituted variables.
13387 (install-strip): New target.
13388 (INSTALL_SCRIPT): New substituted variable.
13389 (FLAGS_TO_PASS): Add it.
13390 (install-only): Use $(INSTALL_SCRIPT) rather than
13391 $(INSTALL_PROGRAM) for gcore.
13392
9ea4267d
TT
133932014-01-20 Tom Tromey <tromey@redhat.com>
13394
13395 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
13396 together.
13397
1f2bdf09
TT
133982014-01-20 Tom Tromey <tromey@redhat.com>
13399
13400 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
13401 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
13402 (deprecated_cmd_warning, complete_on_cmdlist): Update.
13403 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
13404 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
13405 (struct cmd_list_element) <flags>: Remove.
13406 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
13407 doc_allocated>: New fields.
13408 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
13409 bitfields.
13410 * maint.c (maintenance_do_deprecate): Update.
13411 * top.c (execute_command): Update.
13412
e671835b
BS
134132014-01-20 Baruch Siach <baruch@tkos.co.il>
13414
13415 * xtensa-linux-nat.c: Include asm/ptrace.h.
13416
50367cd2
IB
134172014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13418
13419 * Makefile.in (SFILES): Add d-support.c.
13420 (COMMON_OBS): Add d-support.o.
13421 * d-lang.h (d_parse_symbol): Add comment, now defined in
13422 d-support.c.
13423 * d-lang.c (parse_call_convention)
13424 (parse_attributes, parse_function_types)
13425 (parse_function_args, parse_type, parse_identifier)
13426 (call_convention_p, d_parse_symbol): Move functions to ...
13427 * d-support.c: ... New file.
13428
ec9f644a
IB
134292014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13430
13431 * d-lang.h (d_parse_symbol): Add declaration.
13432 * d-lang.c (extract_identifiers)
13433 (extract_type_info): Remove functions.
13434 (parse_call_convention, parse_attributes)
13435 (parse_function_types, parse_function_args)
13436 (parse_type, parse_identifier, call_convention_p)
13437 (d_parse_symbol): New functions.
13438 (d_demangle): Use d_parse_symbol to demangle D symbols.
13439
94b1b47e
IB
134402014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13441
13442 * d-lang.h (struct builtin_d_type): New data type.
13443 (builtin_d_type): Add declaration.
13444 * d-lang.c (d_language_arch_info, build_d_types)
13445 (builtin_d_type): New functions.
13446 (enum d_primitive_types): New data type.
13447 (d_language_defn): Change c_language_arch_info to
13448 d_language_arch_info.
13449 (d_type_data): New static variable.
13450 (_initialize_d_language): Initialize d_type_data.
13451
63778547
IB
134522014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13453
13454 * d-lang.h (d_main_name): Add declaration.
13455 * d-lang.c (d_main_name): New function.
13456 * symtab.c (find_main_name): Add call to d_main_name.
13457
3271ba66
IB
134582014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13459
13460 * d-lang.c (d_language_defn): Change macro_expansion_c to
13461 macro_expansion_no.
13462
d36b3012
IB
134632014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13464
13465 * MAINTAINERS: Add myself as a write-after-approval maintainer.
13466
c90a6fb7
SDJ
134672014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
13468
13469 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
13470 gdb_exception" declaration.
13471 * remote.c (getpkt_or_notif_sane): Likewise.
13472
749234e5
DE
134732014-01-17 Doug Evans <dje@google.com>
13474
13475 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
13476 function, contents of dirnames_to_char_ptr_vec_append moved here.
13477 (delim_string_to_char_ptr_vec): New function.
13478 (dirnames_to_char_ptr_vec_append): Rewrite.
13479 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
13480
df049a58
DE
134812014-01-17 Doug Evans <dje@google.com>
13482
13483 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
13484 and moved here ...
13485 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
13486 #include "common-utils.h".
13487 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
13488 * common/vec.h (VEC_ASSERT_PASS): Update.
13489 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
13490 (MACH_CHECK_ERROR): Update.
13491
69f97648
SM
134922014-01-17 Simon Marchi <simon.marchi@ericsson.com>
13493
13494 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
13495 comments.
13496 * gdbarch.h: Regenerate.
13497
98b1cfdc
TT
134982014-01-16 Tom Tromey <tromey@redhat.com>
13499
13500 * value.c (struct value) <regnum>: Move earlier.
13501
77a19445
TT
135022014-01-16 Tom Tromey <tromey@redhat.com>
13503
13504 * remote.c (extended_remote_create_inferior): Rename from
13505 extended_remote_create_inferior_1. Add "ops" argument. Remove
13506 old implementation.
13507
62261490
PA
135082014-01-16 Pedro Alves <palves@redhat.com>
13509
13510 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
13511 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
13512 the backchain.
13513
4d65956b
DE
135142014-01-16 Doug Evans <dje@google.com>
13515
13516 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
13517
52834460
MM
135182014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13519
13520 * btrace.h (btrace_thread_flag): New.
13521 (struct btrace_thread_info) <flags>: New.
13522 * record-btrace.c (record_btrace_resume_thread)
13523 (record_btrace_find_thread_to_move, btrace_step_no_history)
13524 (btrace_step_stopped, record_btrace_start_replaying)
13525 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
13526 (record_btrace_find_resume_thread): New.
13527 (record_btrace_resume, record_btrace_wait): Extend.
13528 (record_btrace_can_execute_reverse): New.
13529 (record_btrace_open): Fail in non-stop mode.
13530 (record_btrace_set_replay): Split into this, ...
13531 (record_btrace_stop_replaying): ... this, ...
13532 (record_btrace_clear_histories): ... and this.
13533 (init_record_btrace_ops): Init to_can_execute_reverse.
13534 * NEWS: Announce it.
13535
118e6252
MM
135362014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13537
13538 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
13539 (forward_target_decr_pc_after_break)
13540 (target_decr_pc_after_break): New.
13541 * target.c (forward_target_decr_pc_after_break)
13542 (target_decr_pc_after_break): New.
13543 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
13544 instead of gdbarch_decr_pc_after_break.
13545 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
13546 instead of gdbarch_decr_pc_after_break.
13547 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
13548 instead of gdbarch_decr_pc_after_break.
13549 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
13550 instead of gdbarch_decr_pc_after_break.
13551 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
13552 instead of gdbarch_decr_pc_after_break.
13553 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
13554 instead of gdbarch_decr_pc_after_break.
13555
6e07b1d2
MM
135562014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13557
13558 * btrace.c: Include regcache.h.
13559 (btrace_add_pc): New.
13560 (btrace_enable): Call btrace_add_pc.
13561 (btrace_is_empty): New.
13562 * btrace.h (btrace_is_empty): New.
13563 * record-btrace.c (require_btrace, record_btrace_info): Call
13564 btrace_is_empty.
13565
969c39fb
MM
135662014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13567
13568 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
13569 Support delta reads.
13570 (linux_disable_btrace): Change return type.
13571 * common/linux-btrace.h (linux_read_btrace): Change parameters
13572 and return type to allow error reporting. Update users.
13573 (linux_disable_btrace): Change return type. Update users.
13574 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
13575 New.
13576 (btrace_error): New.
13577 (btrace_block) <begin>: Comment on BEGIN == 0.
13578 * btrace.c (btrace_compute_ftrace): Start from the end of
13579 the current trace.
13580 (btrace_stitch_trace, btrace_clear_history): New.
13581 (btrace_fetch): Read delta trace, return if replaying.
13582 (btrace_clear): Move clear history code to btrace_clear_history.
13583 (parse_xml_btrace): Throw an error if parsing failed.
13584 * target.h (struct target_ops) <to_read_btrace>: Change parameters
13585 and return type to allow error reporting.
13586 (target_read_btrace): Change parameters and return type to allow
13587 error reporting.
13588 * target.c (target_read_btrace): Update.
13589 * remote.c (remote_read_btrace): Support delta reads. Pass
13590 errors on.
13591 * NEWS: Announce it.
13592
0b722aec
MM
135932014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13594
13595 * record.h (record_btrace_frame_unwind)
13596 (record_btrace_tailcall_frame_unwind): New declarations.
13597 * dwarf2-frame: Include record.h
13598 (dwarf2_frame_cfa): Throw an error for btrace frames.
13599 * record-btrace.c: Include hashtab.h.
13600 (btrace_get_bfun_name): New.
13601 (btrace_call_history): Call btrace_get_bfun_name.
13602 (struct btrace_frame_cache): New.
13603 (bfcache): New.
13604 (bfcache_hash, bfcache_eq, bfcache_new): New.
13605 (btrace_get_frame_function): New.
13606 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
13607 (record_btrace_frame_this_id): Compute own id.
13608 (record_btrace_frame_prev_register): Provide PC, throw_error
13609 for all other registers.
13610 (record_btrace_frame_sniffer): Detect btrace frames.
13611 (record_btrace_tailcall_frame_sniffer): New.
13612 (record_btrace_frame_dealloc_cache): New.
13613 (record_btrace_frame_unwind): Add new functions.
13614 (record_btrace_tailcall_frame_unwind): New.
13615 (_initialize_record_btrace): Allocate cache.
13616 * btrace.c (btrace_clear): Call reinit_frame_cache.
13617 * NEWS: Announce it.
13618
066ce621
MM
136192014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13620
13621 * record-btrace.c (record_btrace_set_replay)
13622 (record_btrace_goto_begin, record_btrace_goto_end)
13623 (record_btrace_goto): New.
13624 (init_record_btrace_ops): Initialize them.
13625 * NEWS: Announce it.
13626
e2887aa3
MM
136272014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13628
13629 * record-btrace.c (record_btrace_find_new_threads)
13630 (record_btrace_thread_alive): New.
13631 (init_record_btrace_ops): Initialize to_find_new_threads and
13632 to_thread_alive.
13633
b2f4cfde
MM
136342014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13635
13636 * record-btrace.c (record_btrace_resume): New.
13637 (record_btrace_wait): New.
13638 (init_record_btrace_ops): Initialize to_wait and to_resume.
13639
633785ff
MM
136402014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13641
13642 * record-btrace.c (record_btrace_xfer_partial)
13643 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
13644 (record_btrace_allow_memory_access): New.
13645 (init_record_btrace_ops): Initialize new methods.
13646 * target.c (raw_memory_xfer_partial): Bail out if target reports
13647 that this memory is not available.
13648
3db08215
MM
136492014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13650
13651 * target.h (target_ops) <to_insert_breakpoint>
13652 <to_remove_breakpoint>: Add target_ops parameter.
13653 (forward_target_insert_breakpoint): New.
13654 (forward_target_remove_breakpoint): New.
13655 (memory_remove_breakpoint, memory_insert_breakpoint):
13656 Add target_ops parameter.
13657 * target.c (target_insert_breakpoint): Split into this and ...
13658 (forward_target_insert_breakpoint): ... this.
13659 (target_remove_breakpoint): Split into this and ...
13660 (forward_target_remove_breakpoint): ... this.
13661 (debug_to_insert_breakpoint): Add target_ops parameter.
13662 Call forward_target_insert_breakpoint.
13663 (debug_to_remove_breakpoint): Add target_ops parameter.
13664 Call forward_target_remove_breakpoint.
13665 (update_current_target): Do not inherit or default to_insert_breakpoint
13666 and to_remove_breakpoint.
13667 * corelow.c (ignore): Add target_ops parameter.
13668 * exec.c (ignore): Add target_ops parameter.
13669 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
13670 Add target_ops parameter.
13671 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
13672 Add target_ops parameter.
13673 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
13674 Add target_ops parameter.
13675 * record-full.c (record_full_beneath_to_insert_breakpoint)
13676 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
13677 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
13678 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
13679 (record_full_core_remove_breakpoint): Add target_ops parameter.
13680 Update users.
13681 (record_full_beneath_to_insert_breakpoint_ops)
13682 (record_full_beneath_to_remove_breakpoint_ops)
13683 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
13684 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
13685 tmp_to_remove_breakpoint_ops,
13686 record_full_beneath_to_insert_breakpoint_ops, and
13687 record_full_beneath_to_remove_breakpoint_ops.
13688 * remote-m32r-sdi.c (m32r_insert_breakpoint)
13689 (m32r_remove_breakpoint): Add target_ops parameter.
13690 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
13691 Add target_ops parameter.
13692 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
13693 Add target_ops parameter.
13694
cecac1ab
MM
136952014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13696 Markus Metzger <markus.t.metzger@intel.com>
13697
13698 * record-btrace.c: Include frame-unwind.h.
13699 (record_btrace_frame_unwind_stop_reason)
13700 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
13701 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
13702 New.
13703 (init_record_btrace_ops): Install it.
13704
824344ca
MM
137052014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13706
13707 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
13708 get_prev_frame_1.
13709
32261e52
MM
137102014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13711
13712 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
13713 earlier.
13714
ea001bdc
MM
137152014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13716
13717 * frame-unwind.c: Include target.h.
13718 (frame_unwind_try_unwinder): New function with code from ...
13719 (frame_unwind_find_by_frame): ... here. New variable
13720 unwinder_from_target, call also target_get_unwinder)
13721 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
13722 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
13723 * target.h (struct target_ops): New fields to_get_unwinder and
13724 to_get_tailcall_unwinder.
13725 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
13726
1f3ef581
MM
137272014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13728
13729 * record-btrace.c (record_btrace_fetch_registers)
13730 (record_btrace_store_registers)
13731 (record_btrace_to_prepare_to_store): New.
13732 (init_record_btrace_ops): Add the above.
13733
f32dbf8c
MM
137342014-01-16 Tom Tromey <tromey@redhat.com>
13735
13736 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
13737 * target.h (struct target_ops) <to_prepare_to_store>: Add
13738 argument.
13739 (target_prepare_to_store): Add argument.
13740 * target.c (debug_to_prepare_to_store): Add argument.
13741 (update_current_target): Update.
13742 * remote.c (remote_prepare_to_store): Add 'self' argument.
13743 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
13744 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
13745 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
13746 * record-full.c (record_full_core_prepare_to_store): Add 'self'
13747 argument.
13748 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
13749 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
13750 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
13751 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
13752 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
13753
07bbe694
MM
137542014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13755
13756 * btrace.h (replay) <replay>: New.
13757 (btrace_is_replaying): New.
13758 * btrace.c (btrace_clear): Free replay iterator.
13759 (btrace_is_replaying): New.
13760 * record-btrace.c (record_btrace_is_replaying): New.
13761 (record_btrace_info): Print insn number if replaying.
13762 (record_btrace_insn_history): Start at replay position.
13763 (record_btrace_call_history): Start at replay position.
13764 (init_record_btrace_ops): Init to_record_is_replaying.
13765
0688d04e
MM
137662014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13767
13768 * record-btrace.c (record_btrace_insn_history_range): Include
13769 end.
13770 (record_btrace_insn_history_from): Adjust range.
13771 (record_btrace_call_history_range): Include
13772 end.
13773 (record_btrace_call_history_from): Adjust range.
13774 * NEWS: Announce changes.
13775
8710b709
MM
137762014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13777
13778 * record.h (enum record_print_flag)
13779 <record_print_indent_calls>: New.
13780 * record.c (get_call_history_modifiers): Recognize /c modifier.
13781 (_initialize_record): Document /c modifier.
13782 * record-btrace.c (btrace_call_history): Add btinfo parameter.
13783 Reorder fields. Optionally indent the function name. Update
13784 all users.
13785 * NEWS: Announce changes.
13786
d0fa7535
MM
137872014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13788
13789 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
13790
5de9129b
MM
137912014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13792
13793 * btrace.c (ftrace_new_function): Start counting at one.
13794 * record-btrace.c (record_btrace_info): Adjust number of calls
13795 and insns.
13796 * NEWS: Announce it.
13797
7acbe133
MM
137982014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13799
13800 * record-btrace.c (btrace_call_history_insn_range): Print
13801 insn range as [begin, end].
13802
23a7fe75
MM
138032014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13804
13805 * btrace.h (struct btrace_func_link): New.
13806 (enum btrace_function_flag): New.
13807 (struct btrace_inst): Rename to ...
13808 (struct btrace_insn): ...this. Update all users.
13809 (struct btrace_func) <ibegin, iend>: Remove.
13810 (struct btrace_func_link): New.
13811 (struct btrace_func): Rename to ...
13812 (struct btrace_function): ...this. Update all users.
13813 (struct btrace_function) <segment, flow, up, insn, insn_offset)
13814 (number, level, flags>: New.
13815 (struct btrace_insn_iterator): Rename to ...
13816 (struct btrace_insn_history): ...this.
13817 Update all users.
13818 (struct btrace_insn_iterator, btrace_call_iterator): New.
13819 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
13820 (struct btrace_target_info) <begin, end, level>
13821 <insn_history, call_history>: New.
13822 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
13823 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
13824 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
13825 (btrace_call_number, btrace_call_begin, btrace_call_end)
13826 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
13827 (btrace_find_function_by_number, btrace_set_insn_history)
13828 (btrace_set_call_history): New.
13829 * btrace.c (btrace_init_insn_iterator)
13830 (btrace_init_func_iterator, compute_itrace): Remove.
13831 (ftrace_print_function_name, ftrace_print_filename)
13832 (ftrace_skip_file): Change
13833 parameter to const.
13834 (ftrace_init_func): Remove.
13835 (ftrace_debug): Use new btrace_function fields.
13836 (ftrace_function_switched): Also consider gaining and
13837 losing symbol information).
13838 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
13839 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
13840 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
13841 New.
13842 (ftrace_new_function): Move. Remove debug print.
13843 (ftrace_update_lines, ftrace_update_insns): New.
13844 (ftrace_update_function): Check for call, ret, and jump.
13845 (compute_ftrace): Renamed to ...
13846 (btrace_compute_ftrace): ...this. Rewritten to compute call
13847 stack.
13848 (btrace_fetch, btrace_clear): Updated.
13849 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
13850 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
13851 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
13852 (btrace_call_number, btrace_call_begin, btrace_call_end)
13853 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
13854 (btrace_find_function_by_number, btrace_set_insn_history)
13855 (btrace_set_call_history): New.
13856 * record-btrace.c (require_btrace): Use new btrace thread
13857 info fields.
13858 (record_btrace_info, btrace_insn_history)
13859 (record_btrace_insn_history, record_btrace_insn_history_range):
13860 Use new btrace thread info fields and new iterator.
13861 (btrace_func_history_src_line): Rename to ...
13862 (btrace_call_history_src_line): ...this. Use new btrace
13863 thread info fields.
13864 (btrace_func_history): Rename to ...
13865 (btrace_call_history): ...this. Use new btrace thread info
13866 fields and new iterator.
13867 (record_btrace_call_history, record_btrace_call_history_range):
13868 Use new btrace thread info fields and new iterator.
13869
8372a7cb
MM
138702014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13871
13872 * frame.h (frame_id_build_unavailable_stack_special): New.
13873 * frame.c (frame_id_build_unavailable_stack_special): New.
13874
c2170eef
MM
138752014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13876
13877 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
13878 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
13879 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
13880 to gdbarch.
13881 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
13882 (i386_insn_is_jump, i386_jmp_p): New.
13883 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
13884 insn_is_jump to gdbarch.
13885 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
13886 * gdbarch.h: Regenerated.
13887 * gdbarch.c: Regenerated.
13888 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
13889 (default_insn_is_jump): New.
13890 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
13891 (default_insn_is_jump): New.
13892
864089d2
MM
138932014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13894
13895 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
13896 Change to ...
13897 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
13898 (btrace_read_type) <btrace_read_new>: Change to ...
13899 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
13900
ed9edfb5
MM
139012014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13902
13903 * common/linux-btrace.c (linux_read_btrace): Free trace from
13904 previous iteration.
13905
fbcbc3fd
DE
139062014-01-15 Doug Evans <dje@google.com>
13907
13908 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
13909 uint32_t.
13910
3d548a53
TT
139112014-01-15 Tom Tromey <tromey@redhat.com>
13912
13913 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
13914 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
13915 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
13916 (set_objfile_main_name): New function.
13917 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
13918 language_of_main>: New fields.
13919 (set_objfile_main_name): Declare.
13920 * symtab.c (find_main_name): Loop over objfiles to find the main
13921 name and language.
13922 (set_main_name): Now static.
13923 (get_main_info): Add comment.
13924 * symtab.h (set_main_name): Don't declare.
13925
32ac0d11
TT
139262014-01-15 Tom Tromey <tromey@redhat.com>
13927
13928 * symtab.c (main_progspace_key): New global.
13929 (struct main_info): New.
13930 (name_of_main, language_of_main): Remove.
13931 (get_main_info, main_info_cleanup): New function.
13932 (set_main_name, main_name, main_language): Use get_main_info.
13933 (_initialize_symtab): Initialize main_progspace_key.
13934
9e6c82ad
TT
139352014-01-15 Tom Tromey <tromey@redhat.com>
13936
13937 * dbxread.c (process_one_symbol): Update.
13938 * dwarf2read.c (read_partial_die): Update.
13939 * symfile.c (set_initial_language): Call main_language.
13940 * symtab.c (language_of_main): Now static.
13941 (set_main_name): Add 'lang' parameter.
13942 (find_main_name): Update.
13943 (main_language): New function.
13944 (symtab_observer_executable_changed): Update.
13945 * symtab.h (set_main_name): Update.
13946 (language_of_main): Remove.
13947 (main_language): Declare.
13948
6ef55de7
TT
139492014-01-15 Tom Tromey <tromey@redhat.com>
13950
13951 * symfile.c (init_entry_point_info): Use new "initialized" field.
13952 Update.
13953 * objfiles.h (struct entry_point) <initialized>: New field.
13954 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
13955 (struct objfile) <ei>: ...here. Remove.
13956 * objfiles.c (entry_point_address_query): Update.
13957
53eddfa6
TT
139582014-01-15 Tom Tromey <tromey@redhat.com>
13959
13960 * objfiles.c (entry_point_address_query): Relocate entry point
13961 address.
13962 (objfile_relocate1): Do not relocate entry point address.
13963 * objfiles.h (struct entry_info) <entry_point>: Update comment.
13964 <the_bfd_section_index>: New field.
13965 * symfile.c (init_entry_point_info): Find the entry point's
13966 section.
13967
d56e56aa
TT
139682014-01-15 Tom Tromey <tromey@redhat.com>
13969
13970 * solib-frv.c (enable_break): Use entry_point_address_query.
13971
33a97bbe
OJ
139722014-01-15 Omair Javaid <omair.javaid@linaro.org>
13973
13974 * NEWS: Add note on improved process record-replay on
13975 arm*-linux* targets.
13976
c6ec2b30
OJ
139772014-01-15 Omair Javaid <omair.javaid@linaro.org>
13978
13979 * arm-tdep.c (enum arm_record_result): New enum.
13980 (arm_record_unsupported_insn): New function.
13981 (arm_record_coproc_data_proc): Removed.
13982 (thumb2_record_ld_st_multiple): New function.
13983 (thumb2_record_ld_st_dual_ex_tbb): New function.
13984 (thumb2_record_data_proc_sreg_mimm): New function.
13985 (thumb2_record_ps_dest_generic): New function.
13986 (thumb2_record_branch_misc_cntrl): New function.
13987 (thumb2_record_str_single_data): New function.
13988 (thumb2_record_ld_mem_hints): New function.
13989 (thumb2_record_ld_word): New function.
13990 (thumb2_record_lmul_lmla_div): New function.
13991 (thumb2_record_decode_insn_handler): New function.
13992 (decode_insn): Add thumb32 instruction handlers.
13993
97dfe206
OJ
139942014-01-15 Omair Javaid <omair.javaid@linaro.org>
13995
13996 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
13997 (struct arm_linux_record_tdep): Declare.
13998 (arm_canonicalize_syscall): New function.
13999 (arm_all_but_pc_registers_record): New function.
14000 (arm_linux_syscall_record): New function.
14001 (arm_linux_init_abi): Add syscall recording constructs.
14002 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
14003 decoding. (arm_record_coproc_data_proc): Update arm syscall
14004 decoding.
14005 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
14006 <arm_syscall_record>: New field.
14007 * configure.tgt (arm*-*-linux*): Add linux-record.o to
14008 gdb_target_obs.
14009
9904a494
OJ
140102014-01-15 Omair Javaid <omair.javaid@linaro.org>
14011
14012 * arm-tdep.c (thumb_record_misc): Update to use sp as base
14013 register for push instruction recording.
14014
f969241e
OJ
140152014-01-15 Omair Javaid <omair.javaid@linaro.org>
14016
14017 * arm-tdep.c (thumb_record_misc): Update to correct logical
14018 error while recording ldm, ldmia and pop instructions.
14019
bfbbec00
OJ
140202014-01-15 Omair Javaid <omair.javaid@linaro.org>
14021
14022 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
14023
e40adcc9
PA
140242014-01-15 Pedro Alves <palves@redhat.com>
14025
14026 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
14027 (go32_resume, go32_fetch_registers, store_register)
14028 (go32_store_registers, go32_prepare_to_store)
14029 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
14030 (go32_create_inferior, go32_can_run, go32_terminal_init)
14031 (go32_terminal_inferior, go32_terminal_ours): Delete forward
14032 declarations.
14033
b0a16e66
TT
140342014-01-15 Tom Tromey <tromey@redhat.com>
14035
14036 * target.h (async_callback_ftype): New typedef.
14037 (struct target_ops) <to_async>: Use it.
14038
bf7105a4
JB
140392014-01-15 Joel Brobecker <brobecker@adacore.com>
14040
14041 * python/py-value.c (get_field_type): Remove unnecessary curly
14042 braces for single-statement if block.
14043
a8f35c2e
JB
140442014-01-15 Joel Brobecker <brobecker@adacore.com>
14045
14046 * python/py-type.c (convert_field): Add missing empty line
14047 after declarations.
14048
bb4142cf
DE
140492014-01-14 Doug Evans <dje@google.com>
14050
14051 * symfile.h (expand_symtabs_matching): Renamed from
14052 expand_partial_symbol_names. Update prototype.
14053 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
14054 * symfile.c (expand_symtabs_matching): Renamed from
14055 expand_partial_symbol_names. New args file_matcher, kind.
14056 Rename arg fun to symbol_matcher.
14057 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
14058 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
14059 ada_expand_partial_symbol_name.
14060 (ada_make_symbol_completion_list): Update to call
14061 expand_symtabs_matching.
14062 (ada_add_global_exceptions): Call expand_symtabs_matching.
14063 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
14064 call map_symbol_filenames.
14065 * symtab.c (sources_info): Update to call map_symbol_filenames.
14066 (search_symbols): Call expand_symtabs_matching.
14067 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
14068 (default_make_symbol_completion_list_break_on): Update to call
14069 expand_symtabs_matching.
14070 (make_source_files_completion_list): Update to call
14071 map_symbol_filenames.
14072
206f2a57
DE
140732014-01-14 Doug Evans <dje@google.com>
14074
14075 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
14076 (expand_symtabs_symbol_matcher_ftype): New typedef.
14077 (quick_symbol_functions.expand_symtabs_matching): Update to use.
14078 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14079 * symfile.c (expand_partial_symbol_names): Update to use
14080 expand_symtabs_symbol_matcher_ftype.
14081 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
14082 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14083 Arg name_matcher renamed to symbol_matcher.
14084 * psymtab.c (recursively_search_psymtabs): Update to use
14085 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
14086 sym_matcher.
14087 (expand_symtabs_matching_via_partial): Update to use
14088 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14089 Arg name_matcher renamed to symbol_matcher.
14090
540c2971
DE
140912014-01-14 Doug Evans <dje@google.com>
14092
14093 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
14094 (map_partial_symbol_filenames): Ditto.
14095 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
14096 (map_partial_symbol_filenames): Ditto.
14097 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
14098 (map_partial_symbol_filenames): Ditto.
14099 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
14100 (map_partial_symbol_filenames): Ditto.
14101 * symtab.c: Delete #include "psymtab.h".
14102
8213266a
PA
141032014-01-14 Pedro Alves <palves@redhat.com>
14104 Tom Tromey <tromey@redhat.com>
14105
14106 * infrun.c (use_displaced_stepping): Use find_record_target
14107 instead of RECORD_IS_USED.
14108 (adjust_pc_after_break): Use record_full_is_used instead of
14109 RECORD_IS_USED.
14110 * record-btrace.c (record_btrace_open): Call record_preopen
14111 instead of checking RECORD_IS_USED.
14112 * record-full.c (record_full_shortname)
14113 (record_full_core_shortname): New globals.
14114 (record_full_is_used): New function.
14115 (find_full_open): Call record_preopen instead of checking
14116 RECORD_IS_USED.
14117 (init_record_full_ops): Set the target's shortname to
14118 record_full_shortname.
14119 (init_record_full_core_ops): Set the target's shortname to
14120 record_full_core_shortname.
14121 * record-full.h (record_full_is_used): Declare.
14122 * record.c (find_record_target): Make extern.
14123 (record_preopen): New function.
14124 * record.h (RECORD_IS_USED): Delete macro.
14125 (find_record_target, record_preopen): Declare functions.
14126
7ec1862d
YQ
141272014-01-14 Yao Qi <yao@codesourcery.com>
14128
14129 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
14130 'len''s type to ULONGEST.
14131 (core_xfer_shared_libraries_aix): Likewise.
14132 * gdbarch.c, gdbarch.h: Regenerated.
14133 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
14134 Change type of 'len' to ULONGEST.
14135 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14136 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
14137
dea80a27
YQ
141382014-01-14 Yao Qi <yao@codesourcery.com>
14139
14140 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
14141 type of 'len' to ULONGEST.
14142 (linux_xfer_osdata_processgroups): Likewise.
14143 (linux_xfer_osdata_threads): Likewise.
14144 (linux_xfer_osdata_fds): Likewise.
14145 (linux_xfer_osdata_isockets): Likewise.
14146 (linux_xfer_osdata_shm): Likewise.
14147 (linux_xfer_osdata_sem): Likewise.
14148 (linux_xfer_osdata_msg): Likewise.
14149 (linux_common_xfer_osdata): Likewise.
14150 (struct osdata_type) <getter>: Likewise.
14151 * common/linux-osdata.h (linux_common_xfer_osdata): Update
14152 the declaration.
14153
b55e14c7
YQ
141542014-01-14 Yao Qi <yao@codesourcery.com>
14155
14156 * target.h (target_xfer_partial_ftype): Update.
14157 (struct target_ops) <to_xfer_partial>: Change 'len' type to
14158 ULONGEST.
14159 * aix-thread.c (aix_thread_xfer_partial): Change type of
14160 argument 'len' to ULONGEST.
14161 * auxv.c (procfs_xfer_auxv): Likewise.
14162 (ld_so_xfer_auxv): Likewise.
14163 (memory_xfer_auxv): Likewise.
14164 * bfd-target.c (target_bfd_xfer_partial): Likewise.
14165 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
14166 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
14167 * corelow.c (core_xfer_partial): Likewise.
14168 * ctf.c (ctf_xfer_partial): Likewise.
14169 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
14170 '%u'.
14171 (darwin_read_dyld_info): Likewise.
14172 (darwin_xfer_partial): Likewise.
14173 * exec.c (section_table_xfer_memory_partial): Likewise.
14174 (exec_xfer_partial): Likewise.
14175 * exec.h (section_table_xfer_memory_partial): Update
14176 declaration.
14177 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
14178 instead of plongest.
14179 (gnu_xfer_partial): Likewise.
14180 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
14181 (ia64_hpux_xfer_solib_got): Likewise.
14182 (ia64_hpux_xfer_partial): Likewise.
14183 * ia64-linux-nat.c (ia64_linux_xfer_partial):
14184 * inf-ptrace.c (inf_ptrace_xfer_partial):
14185 * inf-ttrace.c (inf_ttrace_xfer_partial):
14186 * linux-nat.c (linux_xfer_siginfo): Likewise.
14187 (linux_nat_xfer_partial): Likewise.
14188 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
14189 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
14190 * monitor.c (monitor_xfer_memory): Likewise.
14191 (monitor_xfer_partial): Likewise.
14192 * procfs.c (procfs_xfer_partial): Likewise.
14193 * record-full.c (record_full_xfer_partial): Likewise.
14194 (record_full_core_xfer_partial): Likewise.
14195 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
14196 instead of plongest.
14197 (gdbsim_xfer_partial): Likewise.
14198 * remote.c (remote_xfer_partial): Likewise.
14199 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14200 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
14201 declaration.
14202 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14203 (rs6000_xfer_shared_libraries): Likewise.
14204 * sol-thread.c (sol_thread_xfer_partial): Likewise.
14205 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14206 (sparc_xfer_partial): Likewise.
14207 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
14208 (spu_xfer_partial): Likewise.
14209 * spu-multiarch.c (spu_xfer_partial): Likewise.
14210 * target.c (target_read_live_memory): Likewise.
14211 (memory_xfer_live_readonly_partial): Likewise.
14212 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
14213 (target_xfer_partial, default_xfer_partial): Likewise.
14214 (current_xfer_partial): Likewise.
14215 * tracepoint.c (tfile_xfer_partial): Likewise.
14216 * windows-nat.c (windows_xfer_memory): Likewise. Call
14217 pulongest instead of plongest.
14218 (windows_xfer_partial): Likewise.
14219 (windows_xfer_shared_libraries): Likewise.
14220
05804640
YQ
142212014-01-14 Yao Qi <yao@codesourcery.com>
14222
14223 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
14224 target_xfer_partial_ftype.
14225
b5b08fb4
SC
142262014-01-13 Siva Chandra Reddy <sivachandra@google.com>
14227
14228 PR python/15464
14229 PR python/16113
14230 * valops.c (value_struct_elt_bitpos): New function
14231 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
14232 object to 'None' if the field name is an empty string ("").
14233 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
14234 attribute to look for a field when 'name' is 'None'.
14235 (get_field_type): New function
14236
13aaf454
DE
142372014-01-13 Doug Evans <dje@google.com>
14238
14239 PR symtab/16426
14240 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
14241 (try_open_dwop_file): Ditto.
14242 * gdb_bfd.c: #include "vec.h".
14243 (bfdp): New typedef.
14244 (struct gdb_bfd_data): New member included_bfds.
14245 (gdb_bfd_unref): Unref all included bfds.
14246 (gdb_bfd_record_inclusion): New function.
14247 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
14248
c2cec97c
TT
142492014-01-13 Tom Tromey <tromey@redhat.com>
14250
14251 * gdbcore.h (deprecated_core_resize_section_table): Remove.
14252
78e5999d
TT
142532014-01-13 Tom Tromey <tromey@redhat.com>
14254
14255 * defs.h (use_windows): Remove.
14256 * gdb.c (main): Update.
14257 * main.c (captured_main, gdb_main): Update.
14258 * main.h (struct captured_main_args) <use_windows>: Remove.
14259 * top.c (use_windows): Remove.
14260
f2052bbe
TT
142612014-01-13 Tom Tromey <tromey@redhat.com>
14262
14263 * defs.h (deprecated_flush_hook): Remove.
14264
fde4f8ed
JK
142652014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
14266
14267 PR threads/16216
14268 * linux-thread-db.c (try_thread_db_load): Add parameter
14269 check_auto_load_safe. Move here the file_is_auto_load_safe call.
14270 (try_thread_db_load_from_pdir_1): Move it there from here.
14271 (try_thread_db_load_from_sdir): Update caller.
14272 (try_thread_db_load_from_dir): Move it there from here.
14273
bdf61915
PP
142742014-01-13 Patrick Palka <patrick@parcs.ath.cx>
14275
14276 * regformats/regdat.sh: Always rewrite the register file.
14277
f71e1a8d
PA
142782014-01-13 Pedro Alves <palves@redhat.com>
14279
14280 * Makefile.in (CHECK_HEADERS): New variable.
14281 (check-headers:): New rule.
14282
42c85435
TT
142832014-01-13 Tom Tromey <tromey@redhat.com>
14284
14285 * cli/cli-setshow.c (do_set_command): Update.
14286 * defs.h (deprecated_set_hook): Remove.
14287 * top.c (deprecated_set_hook): Remove.
14288
f8de5129
PA
142892014-01-13 Pedro Alves <palves@redhat.com>
14290
14291 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
14292 the tracepoint if the PC is a pseudo-register.
14293
fc270c35
TT
142942014-01-13 Tom Tromey <tromey@redhat.com>
14295
14296 * defs.h (XCALLOC): Remove.
14297 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
14298 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
14299 * dwarf2loc.c (allocate_piece_closure): Likewise.
14300 * elfread.c (elf_symfile_segments): Likewise.
14301 (elf_symfile_segments): Likewise.
14302 * gdbtypes.c (copy_type_recursive): Likewise.
14303 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
14304 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
14305 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
14306 XCALLOC.
14307 * mt-tdep.c (mt_gdbarch_init): Likewise.
14308 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
14309 XCALLOC.
14310 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
14311 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
14312 * registry.c (registry_alloc_data): Likewise.
14313 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
14314 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
14315 * serial.c (serial_fdopen_ops): Likewise.
14316 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
14317 XCALLOC.
14318 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
14319 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
14320 not XCALLOC.
14321
70ba0933
TT
143222014-01-13 Tom Tromey <tromey@redhat.com>
14323
14324 * defs.h (XMALLOC): Remove.
14325 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
14326 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
14327 * cli-out.c (struct ui_out *): Likewise.
14328 * cli/cli-dump.c (add_dump_command): Likewise.
14329 (add_dump_command): Likewise.
14330 * complaints.c (get_complaints): Likewise.
14331 (find_complaint): Likewise.
14332 * dwarf2-frame.c (execute_cfa_program): Likewise.
14333 * dwarf2read.c (abbrev_table_read_table): Likewise.
14334 * gdbarch.sh: Likewise.
14335 * gdbarch.c: Rebuild.
14336 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
14337 * interps.c (interp_new): Likewise.
14338 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
14339 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
14340 * mi/mi-console.c (mi_console_file_new): Likewise.
14341 * mi/mi-interp.c (mi_interpreter_init): Likewise.
14342 * mi/mi-out.c (mi_out_new): Likewise.
14343 * mi/mi-parse.c (mi_parse): Likewise.
14344 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
14345 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
14346 * observer.c (xalloc_observer_list_node): Likewise.
14347 * regcache.c (regcache_xmalloc_1): Likewise.
14348 * reggroups.c (reggroup_new): Likewise.
14349 (_initialize_reggroup): Likewise.
14350 * registry.c (register_data_with_cleanup): Likewise.
14351 * remote.c (remote_notif_stop_alloc_reply): Likewise.
14352 * ser-base.c (serial_ttystate): Likewise.
14353 * ser-mingw.c (make_pipe_state): Likewise.
14354 * ser-pipe.c (pipe_open): Likewise.
14355 * serial.c (serial_open): Likewise.
14356 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
14357 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
14358 (tui_alloc_win_info): Likewise.
14359 (tui_add_content_elements): Likewise.
14360 * tui/tui-file.c (tui_file_new): Likewise.
14361 * tui/tui-out.c (tui_out_new): Likewise.
14362 * ui-file.c (mem_file_new): Likewise.
14363 * ui-out.c (push_level): Likewise.
14364 (make_cleanup_ui_out_end): Likewise.
14365 (append_header_to_list): Likewise.
14366 (ui_out_new): Likewise.
14367 * user-regs.c (user_reg_add_builtin): Likewise.
14368
41bf6aca
TT
143692014-01-13 Tom Tromey <tromey@redhat.com>
14370
14371 * defs.h (XZALLOC): Remove.
14372 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
14373 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
14374 (get_ada_tasks_inferior_data): Likewise.
14375 * auto-load.c (get_auto_load_pspace_data): Likewise.
14376 * auxv.c (get_auxv_inferior_data): Likewise.
14377 * bfd-target.c (target_bfd_reopen): Likewise.
14378 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
14379 (deprecated_insert_raw_breakpoint): Likewise.
14380 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
14381 * corelow.c (core_open): Likewise.
14382 * darwin-nat.c (darwin_check_new_threads): Likewise.
14383 (darwin_attach_pid): Likewise.
14384 * dummy-frame.c (dummy_frame_push): Likewise.
14385 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
14386 * dwarf2loc.c (allocate_piece_closure): Likewise.
14387 * elfread.c (elf_symfile_segments): Likewise.
14388 * eval.c (ptrmath_type_p): Likewise.
14389 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
14390 * gdbtypes.c (alloc_type_arch): Likewise.
14391 (alloc_type_instance): Likewise.
14392 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
14393 * inf-child.c (inf_child_can_use_agent): Likewise.
14394 * inflow.c (get_inflow_inferior_data): Likewise.
14395 * infrun.c (save_infcall_suspend_state): Likewise.
14396 * jit.c (jit_reader_load): Likewise.
14397 (get_jit_objfile_data): Likewise.
14398 (get_jit_program_space_data): Likewise.
14399 (jit_object_open_impl): Likewise.
14400 (jit_symtab_open_impl): Likewise.
14401 (jit_block_open_impl): Likewise.
14402 (jit_frame_sniffer): Likewise.
14403 * linux-fork.c (add_fork): Likewise.
14404 * maint.c (make_command_stats_cleanup): Likewise.
14405 * objfiles.c (get_objfile_pspace_data): Likewise.
14406 * opencl-lang.c (struct lval_closure): Likewise.
14407 * osdata.c (osdata_start_osdata): Likewise.
14408 * progspace.c (new_address_space): Likewise.
14409 (add_program_space): Likewise.
14410 * remote-sim.c (get_sim_inferior_data): Likewise.
14411 * sh-tdep.c (sh_gdbarch_init): Likewise.
14412 * skip.c (Ignore): Likewise.
14413 (skip_delete_command): Likewise.
14414 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
14415 (library_list_start_library): Likewise.
14416 (solib_aix_current_sos): Likewise.
14417 * solib-darwin.c (get_darwin_info): Likewise.
14418 (darwin_current_sos): Likewise.
14419 * solib-dsbt.c (get_dsbt_info): Likewise.
14420 * solib-ia64-hpux.c (new_so_list): Likewise.
14421 (ia64_hpux_get_solib_linkage_addr): Likewise.
14422 * solib-spu.c (append_ocl_sos): Likewise.
14423 (spu_current_sos): Likewise.
14424 * solib-svr4.c (get_svr4_info): Likewise.
14425 (svr4_keep_data_in_core): Likewise.
14426 (library_list_start_library): Likewise.
14427 (svr4_default_sos): Likewise.
14428 (svr4_read_so_list): Likewise.
14429 * solib-target.c (library_list_start_library): Likewise.
14430 (solib_target_current_sos): Likewise.
14431 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
14432 * symfile-debug.c (install_symfile_debug_logging): Likewise.
14433 * symfile.c (default_symfile_segments): Likewise.
14434 * target-descriptions.c (tdesc_data_init): Likewise.
14435 (tdesc_create_reg): Likewise.
14436 (struct tdesc_type *): Likewise.
14437 (tdesc_create_vector): Likewise.
14438 (tdesc_set_struct_size): Likewise.
14439 (struct tdesc_type *): Likewise.
14440 (tdesc_free_feature): Likewise.
14441 (tdesc_create_feature): Likewise.
14442 * windows-nat.c (windows_add_thread): Likewise.
14443 (windows_make_so): Likewise.
14444 * xml-support.c (gdb_xml_body_text): Likewise.
14445 (gdb_xml_create_parser_and_cleanup): Likewise.
14446 (xml_process_xincludes): Likewise.
14447 * xml-syscall.c (allocate_syscalls_info): Likewise.
14448 (syscall_create_syscall_desc): Likewise.
14449
5acfdbae
SDJ
144502014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
14451
14452 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
14453 function, with code from i386_stap_parse_special_token.
14454 (i386_stap_parse_special_token_three_arg_disp): Likewise.
14455 (i386_stap_parse_special_token): Move code to the two functions
14456 above; simplify it.
14457
0000e5cc
PA
144582014-01-09 Pedro Alves <palves@redhat.com>
14459 Hui Zhu <hui@codesourcery.com>
14460
14461 PR gdb/16101
14462 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
14463 bp_err_string. Don't mark the location shlib_disabled if the
14464 error thrown wasn't a generic or memory error. Catch errors
14465 thrown while inserting breakpoints in overlayed code. Output
14466 error message of software breakpoints.
14467 * remote.c (remote_insert_breakpoint): If this breakpoint has
14468 target-side commands but this stub doesn't support Z0 packets,
14469 throw NOT_SUPPORTED_ERROR error.
14470 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
14471 * target.h (target_insert_breakpoint): Extend comment.
14472 (target_insert_hw_breakpoint): Add comment.
14473
b7ea362b
PA
144742014-01-08 Pedro Alves <palves@redhat.com>
14475
14476 * remote.c (remote_add_thread): Add threads silently if starting
14477 up.
14478 (remote_notice_new_inferior): If in all-stop, and starting up,
14479 don't call notice_new_inferior.
14480 (get_current_thread): New function, factored out from ...
14481 (add_current_inferior_and_thread): ... this. Adjust.
14482 (remote_start_remote) <all-stop>: Fetch the thread list. If we
14483 found any thread, then select the remote's current thread as GDB's
14484 current thread too.
14485
b7bba001
JB
144862014-01-08 Joel Brobecker <brobecker@adacore.com>
14487
14488 * NEWS: Create a new section for the next release branch.
14489 Rename the section of the current branch, now that it has
14490 been cut.
14491
16dfbded
JB
144922014-01-08 Joel Brobecker <brobecker@adacore.com>
14493
14494 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
14495 * version.in: Bump version to 7.7.50.DATE-cvs.
14496
22c90ac1
YQ
144972014-01-08 Yao Qi <yao@codesourcery.com>
14498
14499 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
14500 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
14501 (spu_xfer_partial): Cast 'buf' to 'const char *'.
14502
d64ad97c
YQ
145032014-01-08 Yao Qi <yao@codesourcery.com>
14504
14505 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
14506 return value of bfd_get_filename to symbol_file_add_from_bfd.
14507
f93ba80c
PM
145082014-01-08 Pierre Muller <muller@sourceware.org>
14509
14510 Fix PR16201.
14511 * coff-pe-read.c (struct read_pe_section_data): Add index field.
14512 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
14513 to prim_record_mininal_symbol_and_info.
14514 (add_pe_forwarded_sym): Use known section number of forwarded symbol
14515 in call to prim_record_minimal_symbol_and_info.
14516 (read_pe_exported_syms): Set index field of section_data.
14517
a4d9ba85
AP
145182014-01-07 Andrew Pinski <apinski@cavium.com>
14519
14520 * features/aarch64-core.xml (cpsr): Change to be 64bit.
14521 * features/aarch64.c: Regenerate.
14522
1b67eb02
AS
145232014-01-07 Andreas Schwab <schwab@linux-m68k.org>
14524
14525 * target.c (return_null): Define.
14526 (update_current_target): Use it instead of return_zero for
14527 functions that return a pointer.
14528
5e3f4fab
EBM
145292014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
14530
14531 * source.c (add_path): Fix check for duplicated paths in the previously
14532 included paths.
14533
e2616788
HK
145342014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
14535
14536 * ada-lang.c: Remove duplicated include statements.
14537 * alphabsd-nat.c: Ditto.
14538 * amd64-darwin-tdep.c: Ditto.
14539 * amd64fbsd-nat.c: Ditto.
14540 * auto-load.c: Ditto.
14541 * ax-gdb.c: Ditto.
14542 * breakpoint.c: Ditto.
14543 * dbxread.c: Ditto.
14544 * fork-child.c: Ditto.
14545 * gdb_usleep.c: Ditto.
14546 * i386-darwin-tdep.c: Ditto.
14547 * i386fbsd-nat.c: Ditto.
14548 * infcmd.c: Ditto.
14549 * inferior.c: Ditto.
14550 * jv-lang.c: Ditto.
14551 * linux-nat.c: Ditto.
14552 * linux-tdep.c: Ditto.
14553 * m68kbsd-nat.c: Ditto.
14554 * m68klinux-nat.c: Ditto.
14555 * microblaze-tdep.c: Ditto.
14556 * mips-linux-tdep.c: Ditto.
14557 * mn10300-tdep.c: Ditto.
14558 * nto-tdep.c: Ditto.
14559 * opencl-lang.c: Ditto.
14560 * osdata.c: Ditto.
14561 * printcmd.c: Ditto.
14562 * regcache.c: Ditto.
14563 * remote-m32r-sdi.c: Ditto.
14564 * remote.c: Ditto.
14565 * symfile.c: Ditto.
14566 * symtab.c: Ditto.
14567 * tilegx-linux-nat.c: Ditto.
14568 * tilegx-tdep.c: Ditto.
14569 * tracepoint.c: Ditto.
14570 * valops.c: Ditto.
14571 * vaxbsd-nat.c: Ditto.
14572 * windows-nat.c: Ditto.
14573 * xtensa-tdep.c: Ditto.
14574
bd1f7788
YQ
145752014-01-07 Yao Qi <yao@codesourcery.com>
14576
14577 * spu-linux-nat.c (_initialize_spu_nat): Declare.
14578
79301218
JB
145792014-01-07 Yao Qi <yao@codesourcery.com>
14580 Joel Brobecker <brobecker@adacore.com>
14581
14582 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
14583 (pdc_write_regs): Likewise.
14584 (fetch_regs_kernel_thread): Likewise.
14585 (store_regs_kernel_thread): Likewise.
14586
145872014-01-07 Joel Brobecker <brobecker@adacore.com>
14588
14589 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
14590 tagged type objects to their actual type.
14591
8e355c5d
JB
145922014-01-07 Joel Brobecker <brobecker@adacore.com>
14593
14594 * ada-valprint.c (print_field_values): Add "language" parameter.
14595 Update calls to print_field_values and print_variant_part.
14596 Pass new parameter "language" in call to val_print instead
14597 of "current_language". Replace call to ada_val_print by call
14598 to val_print.
14599 (print_variant_part): Add "language" parameter.
14600 (ada_val_print_struct_union): Update call to print_field_values.
14601
4fbf5aa5
JB
146022014-01-07 Joel Brobecker <brobecker@adacore.com>
14603
14604 * ada-valprint.c (ui_memcpy): Delete.
14605 (ada_print_floating): Update documentation. Add empty line
14606 between between function documentation and implementation.
14607 Delete variable "buffer". Use ui_file_xstrdup in place of
14608 ui_file_put. Minor adjustments following this change.
14609
71855601
JB
146102014-01-07 Joel Brobecker <brobecker@adacore.com>
14611
14612 * ada-valprint.c (ada_val_print_string): New function,
14613 extracted from ada_val_print_array.
14614 (ada_val_print_array): Replace extracted code by call
14615 to ada_val_print_string followed by a return. Move
14616 "else" branch to the function's top block.
14617
4eb27a30
JB
146182014-01-07 Joel Brobecker <brobecker@adacore.com>
14619
14620 * ada-valprint.c (ada_val_print_array): Move implementation
14621 down. Rename parameter "offset" and "val" into "offset_aligned"
14622 and "original_value" respectively. Add parameter "offset".
14623
34b27950
JB
146242014-01-07 Joel Brobecker <brobecker@adacore.com>
14625
14626 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
14627 re-organizing the code. Change the "???" message printed
14628 when target type is a TYPE_CODE_UNDEF into
14629 "<ref to undefined type>".
14630
079e4591
JB
146312014-01-07 Joel Brobecker <brobecker@adacore.com>
14632
14633 * ada-valprint.c (print_record): Delete, implementation inlined...
14634 (ada_val_print_struct_union): ... here. Remove call to
14635 ada_check_typedef in inlined implementation.
14636
8004dfd1
JB
146372014-01-07 Joel Brobecker <brobecker@adacore.com>
14638
14639 * ada-valprint.c (ada_val_print_gnat_array): New function,
14640 extracted from ada_val_print_1;
14641 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
14642 (ada_val_print_flt, ada_val_print_struct_union)
14643 (ada_val_print_ref): Likewise.
14644 (ada_val_print_1): Delete variables i and elttype.
14645 Replace extracted-out code by call to corresponding
14646 new functions.
14647
760a2db0
JB
146482014-01-07 Joel Brobecker <brobecker@adacore.com>
14649
14650 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
14651
3a92c861
JB
146522014-01-07 Joel Brobecker <brobecker@adacore.com>
14653
14654 * ada-valprint.c (ada_val_print_1): Replace calls to
14655 ada_val_print_1 by calls to val_print.
14656
cd1630f9
JB
146572014-01-07 Joel Brobecker <brobecker@adacore.com>
14658
14659 * ada-valprint.c (ada_val_print_1): Add parameter "language".
14660 Update calls to self accordingly. Replace calls to c_val_print
14661 by calls to val_print.
14662
bdf779a0
JB
146632014-01-07 Joel Brobecker <brobecker@adacore.com>
14664
14665 * ada-valprint.c (print_record): Delete declaration.
14666 (adjust_type_signedness, ada_val_print_1): Likewise.
14667 (ada_val_print): Move function implementation down.
14668 (print_variant_part, print_field_values, print_record):
14669 Move function implementation up.
14670
c0d48811
JB
146712014-01-07 Joel Brobecker <brobecker@adacore.com>
14672
14673 * python/py-type.c (typy_get_name): New function.
14674 (type_object_getset): Add entry for attribute "name".
14675 * NEWS: Add entry mentioning this new attribute.
14676
c26e9cbb
YQ
146772014-01-07 Yao Qi <yao@codesourcery.com>
14678
14679 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
14680 statement.
14681
0cc6f43d
YQ
146822014-01-07 Yao Qi <yao@codesourcery.com>
14683
14684 * gnu-nat.c (info_port_rights): Add qualifier const to
14685 argument args.
14686
eec03155
YQ
146872014-01-07 Yao Qi <yao@codesourcery.com>
14688
14689 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
14690
f04a82ef
YQ
146912014-01-07 Yao Qi <yao@codesourcery.com>
14692
14693 * gnu-nat.c (make_inf) Update declaration.
14694 (make_inf): Make it static.
14695 (inf_set_traced): Likewise.
14696 (inf_port_to_thread, inf_task_died_status): Likewise.
14697
d57dda0a
YQ
146982014-01-07 Yao Qi <yao@codesourcery.com>
14699
14700 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
14701
3aa8c969
YQ
147022014-01-07 Yao Qi <yao@codesourcery.com>
14703
14704 * gnu-nat.c (_initialize_gnu_nat): Declare.
14705
94123b4f
YQ
147062014-01-07 Yao Qi <yao@codesourcery.com>
14707
14708 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
14709 'enum bfd_endian'.
14710 (struct gdbarch_info) <byte_order>: Change type to
14711 'enum bfd_endian'.
14712 <byte_order_for_code>: Likewise.
14713 * gdbarch.c, gdbarch.h: Regenerated.
14714
dc81d70a
TT
147152014-01-06 Sasha Smundak <asmundak@google.com>
14716
14717 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
14718
cc2f3c35
TT
147192014-01-06 Tom Tromey <tromey@redhat.com>
14720
14721 * doublest.c (convert_doublest_to_floatformat): Use const, not
14722 CONST.
14723 * somread.c (som_symtab_read): Likewise.
14724
adcf2eed
HZ
147252014-01-07 Hui Zhu <hui@codesourcery.com>
14726
14727 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
14728 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
14729 (gdb_bfd_fopen): Ditto.
14730 (gdb_bfd_openr): Ditto.
14731 (gdb_bfd_openw): Ditto.
14732 (gdb_bfd_openr_iovec): Ditto.
14733 (gdb_bfd_fdopenr): Ditto.
14734 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
14735 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
14736 with xstrdup.
14737 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
14738 with xstrdup.
14739 * symfile-mem.c (symbol_file_add_from_memory): Removed
14740 gdb_bfd_stash_filename.
14741
50722198
DE
147422014-01-03 Doug Evans <dje@google.com>
14743
14744 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
14745 output.
14746
2fa4b862
JB
147472014-01-01 Joel Brobecker <brobecker@adacore.com>
14748
14749 Update year range in copyright notice of all files.
14750
28498c42
JB
147512014-01-01 Joel Brobecker <brobecker@adacore.com>
14752
14753 * top.c (print_gdb_version): Set copyright year to 2014.
14754
7b6e1046
JB
147552014-01-01 Joel Brobecker <brobecker@adacore.com>
14756
14757 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
14758
df96af55 14759For older changes see ChangeLog-2013.
c906108c
SS
14760\f
14761Local Variables:
14762mode: change-log
14763left-margin: 8
14764fill-column: 74
14765version-control: never
57da7796 14766coding: utf-8
c906108c 14767End:
This page took 2.573759 seconds and 4 git commands to generate.