daily update
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
d36bf488
DE
12014-09-13 Doug Evans <xdje42@gmail.com>
2
3 * linux-nat.c (wait_lwp): Add debugging printf.
4 (linux_nat_wait_1): Ditto.
5
f37f681c
PA
62014-09-12 Pedro Alves <palves@redhat.com>
7
8 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
9 (create_and_insert_solib_event_breakpoint): New functions.
10 * breakpoint.h (create_and_insert_solib_event_breakpoint)
11 (remove_solib_event_breakpoints_at_next_stop): New declarations.
12 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
13 (remove_dbx_link_breakpoint): Delete function.
14 (insert_dbx_link_bpt_in_file): Use
15 create_and_insert_solib_event_breakpoint instead of
16 deprecated_insert_raw_breakpoint.
17 (procfs_wait): Don't check whether we hit __dbx_link here.
18 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
19 here.
20 * solib-irix.c (base_breakpoint): Delete global.
21 (disable_break): Delete function.
22 (enable_break): Use create_solib_event_breakpoint
23 instead of deprecated_insert_raw_breakpoint.
24 (irix_solib_handle_event): New function.
25 (irix_solib_create_inferior_hook): Don't run the target or disable
26 the mapping-complete breakpoint here.
27 (_initialize_irix_solib): Install irix_solib_handle_event as
28 so_ops->handle_event hook.
29
9d9bf2df
EBM
302014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
31 Ulrich Weigand  <uweigand@de.ibm.com>
32
33 PR tdep/17379
34 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
35 instead of read_memory_unsigned_integer.
36
b006a80e
GB
372014-09-12 Gary Benson <gbenson@redhat.com>
38
39 * nat/linux-waitpid.c: Include common-defs.h.
40 [GDBSERVER]: Add FIXME comment.
41 [!GDBSERVER]: Don't include defs.h or signal.h.
42 (linux_debug) [!GDBSERVER]: Remove empty block.
43
296b1496
GB
442014-09-12 Gary Benson <gbenson@redhat.com>
45
46 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
47 Don't include defs.h or server.h.
48
53f81362
GB
492014-09-12 Gary Benson <gbenson@redhat.com>
50
51 * nat/linux-btrace.c: Include common-defs.h.
52 Don't include defs.h, server.h or gdbthread.h.
53 * nat/linux-btrace.h (struct target_ops): New forward declaration.
54
727605ca
GB
552014-09-12 Gary Benson <gbenson@redhat.com>
56
57 * common/agent.c: Include common-defs.h.
58 Don't include defs.h or server.h.
59 * common/buffer.c: Likewise.
60 * common/common-debug.c: Likewise.
61 * common/common-utils.c: Likewise.
62 * common/errors.c: Likewise.
63 * common/filestuff.c: Likewise.
64 * common/format.c: Likewise.
65 * common/gdb_vecs.c: Likewise.
66 * common/print-utils.c: Likewise.
67 * common/ptid.c: Likewise.
68 * common/rsp-low.c: Likewise.
69 * common/signals.c: Likewise.
70 * common/vec.c: Likewise.
71 * common/xml-utils.c: Likewise.
72 * nat/linux-osdata.c: Likewise.
73 * nat/linux-procfs.c: Likewise.
74 * nat/linux-ptrace.c: Likewise.
75 * nat/mips-linux-watch.c: Likewise.
76 * target/waitstatus.c: Likewise.
77
361c8ade
GB
782014-09-12 Tom Tromey <tromey@redhat.com>
79 Gary Benson <gbenson@redhat.com>
80
81 * common/common-regcache.h: New file.
82 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
83 * regcache.h: Include common-regcache.h.
84 (regcache_read_pc): Don't declare.
85 * regcache.c (get_thread_regcache_for_ptid): New function.
86 * nat/linux-btrace.c: Don't include regcache.h.
87 Include common-regcache.h.
88 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
89
a01cbb49
TS
902014-09-11 Thomas Schwinge <thomas@codesourcery.com>
91
92 * regcache.h (struct regset): Declare.
93
98880d46
PA
942014-09-11 Pedro Alves <palves@redhat.com>
95
96 PR gdb/17347
97 * main.c: Include "infrun.h".
98 (catch_command_errors, catch_command_errors_const): Wait for the
99 foreground command to complete.
100 * top.c (maybe_wait_sync_command_done): New function, factored out
101 from ...
102 (maybe_wait_sync_command_done): ... here.
103 * top.h (maybe_wait_sync_command_done): New declaration.
104
bd9269f7
GB
1052014-09-11 Tom Tromey <tromey@redhat.com>
106 Gary Benson <gbenson@redhat.com>
107
108 * common/symbol.h: New file.
109 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
110 * minsyms.c (find_minimal_symbol_address): New function.
111 * common/agent.c: Include common/symbol.h.
112 [!GDBSERVER]: Don't include objfiles.h.
113 (agent_look_up_symbols): Use find_minimal_symbol_address.
114
f8c1d06b
GB
1152014-09-11 Gary Benson <gbenson@redhat.com>
116
117 * target/target.h (target_stop_ptid, target_continue_ptid):
118 Declare.
119 * target.c (target_stop_ptid, target_continue_ptid): New
120 functions.
121 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
122 (agent_run_command): Always use target_stop_ptid and
123 target_continue_ptid.
124
721ec300
GB
1252014-09-11 Tom Tromey <tromey@redhat.com>
126 Gary Benson <gbenson@redhat.com>
127
128 * target/target.h: New file.
129 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
130 * target.h: Include target/target.h.
131 (target_read_memory, target_write_memory): Don't declare.
132 * target.c (target_read_uint32): New function.
133 * common/agent.c: Include target/target.h.
134 [!GDBSERVER]: Don't include target.h.
135 (helper_thread_id): Type changed to uint32_t.
136 (agent_get_helper_thread_id): Use target_read_uint32.
137 (agent_run_command): Always use target_read_memory and
138 target_write_memory.
139 (agent_capability): Type changed to uint32_t.
140 (agent_capability_check): Use target_read_uint32.
141
c5e92cca
GB
1422014-09-11 Gary Benson <gbenson@redhat.com>
143
144 * common/common-debug.h (show_debug_regs): Declare.
145 * common/common-debug.c (show_debug_regs): Define.
146 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
147 all uses with show_debug_regs. Replace all uses that considered
148 debug_hw_points as a multi-value integer with straight boolean
149 uses.
150 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
151 with show_debug_regs.
152 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
153 all uses with show_debug_regs.
154 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
155 uses with show_debug_regs.
156
eeef931a
UW
1572014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
158
159 * findvar.c (address_from_register): Handle targets requiring
160 a special conversion routine even for plain pointer types.
161
8efa9855
UW
1622014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
163
164 * rs6000-nat.c (exec_one_dummy_insn): Remove.
165 (store_register): Do not call exec_one_dummy_insn.
166
eb479039
JB
1672014-09-10 Joel Brobecker <brobecker@adacore.com>
168
169 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
170 dereference it first. Use value_enclosing_type instead of
171 value_type.
172 (ada_array_length): Likewise.
173
deede10c
JB
1742014-09-10 Joel Brobecker <brobecker@adacore.com>
175
176 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
177 Adjust function implementation and documentation accordingly.
178 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
179 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
180 Update call to ada_value_ptr_subscript.
181
7828a5f5
JB
1822014-09-10 Joel Brobecker <brobecker@adacore.com>
183
184 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
185 instead of VAL's type.
186
35782f14
JB
1872014-09-10 Joel Brobecker <brobecker@adacore.com>
188
189 * amd64-linux-nat.c: Add <sys/uio.h> #include.
190
d342a0da
DE
1912014-09-09 Doug Evans <xdje42@gmail.com>
192
193 PR guile/17367
194 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
195 last parameter to pkg-config, not first.
196 * configure.ac: Pass --with-guile provided pkg-config path to
197 GDB_GUILE_PROGRAM_NAMES.
198 * configure: Regenerate.
199
b4a3d263
GKB
2002014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
201
202 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
203 Bertazi".
204
6e466374
MR
2052014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
206
207 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
208 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
209 the list of sections determining GDB_OSABI_IRIX.
210
a1ada89a
JH
2112014-09-09 James Hogan <james.hogan@imgtec.com>
212
213 * MAINTAINERS (Write After Approval): Add "James Hogan".
214
86db008d
JH
2152014-09-09 James Hogan <james.hogan@imgtec.com>
216
217 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
218
72fde3df
JB
2192014-09-09 Joel Brobecker <brobecker@adacore.com>
220
221 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
222
92d8d229
DE
2232014-09-08 Doug Evans <xdje42@gmail.com>
224
225 PR 17247
226 * guile.c: #include <signal.h>.
227 (_initialize_guile): Block SIGCHLD while initializing Guile.
228
229 Replaces the following, which is reverted.
230
231 2014-07-26 Doug Evans <xdje42@gmail.com>
232
233 PR 17185
234 * configure.ac: Add check for header gc/gc.h.
235 Add check for function setenv.
236 * configure: Regenerate.
237 * config.in: Regenerate.
238 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
239
d81412aa
DE
2402014-09-08 Doug Evans <xdje42@gmail.com>
241
242 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
243 with named constant. Fix style of pointer comparison.
244 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
245
a9f116cb
GKB
2462014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
247
248 PR gdb/17035
249 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
250 decide whether we display the command on "show user".
251 * cli/cli-script.c (show_user_1): Only verify cmdlines after
252 printing command name.
253 * cli/cli-decode.h (cli_user_command_p): Declare new function.
254 * cli/cli-decode.c (cli_user_command_p): Create helper function
255 to verify whether cmd_list_element is a user-defined command.
256
c75bd3a2
JK
2572014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
258
259 PR python/17355
260 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
261 Fix goto out of TRY_CATCH.
262
faa42425 2632014-09-06 Doug Evans <xdje42@gmail.com>
1a52a81c 264 Tom Tromey <tromey@redhat.com>
faa42425
DE
265
266 PR 15276
267 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
268 $_any_caller_matches.
269 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
270 * python/lib/gdb/function/caller_is.py: New file.
271
0d41ba00
DE
2722014-09-06 Doug Evans <xdje42@gmail.com>
273
274 * infcmd.c (program_info): Fix typo.
275
474ca4f6
SDJ
2762014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
277
278 PR gdb/17235
279 * stap-probe.c (stap_parse_single_operand): Delete unused variable
280 'number'. New variable 'has_digit'. Rewrite code to deal with
281 subexpressions on SDT probes.
282
ebf13736
PA
2832014-09-04 Pedro Alves <palves@redhat.com>
284
285 * c-exp.y (parse_number): Skip handling base-switching prefixes if
286 the input is only one character long.
287
eb0b0463
SDJ
2882014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
289
290 PR fortran/17237
291 * f-valprint.c (f_val_print): Specify the correct print option to
292 use when printing integer values.
293
5ee44bfa
GB
2942014-09-04 Gary Benson <gbenson@redhat.com>
295
296 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
297 Remove code to cope with LWPs wrapped as PIDs.
298 Add assertions to ensure no wrapped LWPs are passed.
299
4875ffdb
PA
3002014-09-04 Pedro Alves <palves@redhat.com>
301
302 * value.c (value_ranges_copy_adjusted): New function, factored out
303 from ...
304 (value_contents_copy_raw): ... here.
305 (unpack_value_bits_as_long_1): Rename back to ...
306 (unpack_bits_as_long): ... this. Remove 'original_value' and
307 'result' parameters. Change return type to LONGEST.
308 (unpack_value_bits_as_long): Delete.
309 (unpack_value_field_as_long_1): Delete.
310 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
311 (unpack_value_bitfield): New function.
312 (value_field_bitfield): Reimplement using unpack_value_bitfield.
313 (value_fetch_lazy): Use unpack_value_bitfield.
314 * value.h (unpack_value_bits_as_long): Delete declaration.
315
5f3b99cf
SS
3162014-09-03 Sasha Smundak <asmundak@google.com>
317
318 * python/py-frame.c (frapy_read_register): New function.
319
ac740bc7
JH
3202014-09-03 James Hogan <james.hogan@imgtec.com>
321
322 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
323 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
324
7d793aa9
SDJ
3252014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
326
327 PR python/16699
328 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
329 function.
330 (add_cmd): Set "completer_handle_brkchars" to NULL.
331 * cli/cli-decode.h (struct cmd_list_element)
332 <completer_handle_brkchars>: New field.
333 * command.h (completer_ftype_void): New typedef.
334 (set_cmd_completer_handle_brkchars): New prototype.
335 * completer.c (set_gdb_completion_word_break_characters): New
336 function.
337 (complete_line_internal): Call "completer_handle_brkchars"
338 callback from command.
339 * completer.h: Include "command.h".
340 (set_gdb_completion_word_break_characters): New prototype.
341 * python/py-cmd.c (cmdpy_completer_helper): New function.
342 (cmdpy_completer_handle_brkchars): New function.
343 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
344 (cmdpy_init): Set completer_handle_brkchars to
345 cmdpy_completer_handle_brkchars.
346
97ea6506
GB
3472014-09-03 Gary Benson <gbenson@redhat.com>
348
349 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
350 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
351 Loop conditions changed to equivalent form.
352 (struct x86_debug_reg_state): Updated dr_ref_count comment.
353 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
354 ALL_DEBUG_ADDRESS_REGISTERS.
355
d1437815
JB
3562014-09-03 Joel Brobecker <brobecker@adacore.com>
357
358 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
359 description fix.
360
9b94fcf1
DE
3612014-09-02 Doug Evans <dje@google.com>
362
363 * typeprint.c (find_global_typedef): Fix comment.
364
df7e5265
GB
3652014-09-02 Gary Benson <gbenson@redhat.com>
366
367 * i386-nat.h: Renamed as...
368 * x86-nat.h: New file. All type, function and variable name
369 prefixes changed from "i386_" to "x86_". All references updated.
370 * i386-nat.c: Renamed as...
371 * x86-nat.c: New file. All type, function and variable name
372 prefixes changed from "i386_" to "x86_". All references updated.
373 * common/i386-xstate.h: Renamed as...
374 * common/x86-xstate.h: New file. All type, function and variable
375 name prefixes changed from "i386_" to "x86_". All references
376 updated.
377 * nat/i386-cpuid.h: Renamed as...
378 * nat/x86-cpuid.h: New file. All type, function and variable name
379 prefixes changed from "i386_" to "x86_". All references updated.
380 * nat/i386-gcc-cpuid.h: Renamed as...
381 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
382 name prefixes changed from "i386_" to "x86_". All references
383 updated.
384 * nat/i386-dregs.h: Renamed as...
385 * nat/x86-dregs.h: New file. All type, function and variable name
386 prefixes changed from "i386_" to "x86_". All references updated.
387 * nat/i386-dregs.c: Renamed as...
388 * nat/x86-dregs.c: New file. All type, function and variable name
389 prefixes changed from "i386_" to "x86_". All references updated.
390
1c3569d4
MR
3912014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
392
393 * varobj.c (_initialize_varobj): Move to the end of file.
394
ff55e1b5
GB
3952014-08-29 Gary Benson <gbenson@redhat.com>
396
397 * common/common-exceptions.h: New file.
398 * common/common-exceptions.c: Likewise.
399 * Makefile.in (SFILES): Add common/common-exceptions.c.
400 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
401 (COMMON_OBS): Add common-exceptions.o.
402 (common-exceptions.o): New rule.
403 * exceptions.h (common-exceptions.h): Include.
404 (gdb_setjmp.h): Do not include.
405 (return_reason): Moved to common-exceptions.h.
406 (enum return_reason): Likewise.
407 (RETURN_MASK): Likewise.
408 (typedef return_mask): Likewise.
409 (enum errors): Likewise.
410 (struct gdb_exception): Likewise.
411 (exceptions_state_mc_init): Likewise.
412 (exceptions_state_mc_action_iter): Likewise.
413 (exceptions_state_mc_action_iter_1): Likewise.
414 (TRY_CATCH): Likewise.
415 (throw_exception): Likewise.
416 (throw_verror): Likewise.
417 (throw_vquit): Likewise.
418 (throw_error): Likewise.
419 (throw_quit): Likewise.
420 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
421 (enum catcher_action): Likewise.
422 (struct catcher): Likewise.
423 (current_catcher): Likewise.
424 (catcher_list_size): Likewise.
425 (exceptions_state_mc_init): Likewise.
426 (catcher_pop): Likewise.
427 (exceptions_state_mc): Likewise.
428 (exceptions_state_mc_action_iter): Likewise.
429 (exceptions_state_mc_action_iter_1): Likewise.
430 (throw_exception): Likewise.
431 (exception_messages): Likewise.
432 (exception_messages_size): Likewise.
433 (throw_it): Likewise.
434 (throw_verror): Likewise.
435 (throw_vquit): Likewise.
436 (throw_error): Likewise.
437 (throw_quit): Likewise.
438 (prepare_to_throw_exception): New function.
439
e9bcb658
GB
4402014-08-29 Gary Benson <gbenson@redhat.com>
441
442 * common/gdb_setjmp.h: New file.
443 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
444 * configure.ac: Move sigsetjmp check...
445 * common/common.m4: ...here.
446 * configure: Regenerate.
447 * cp-support.c (SIGJMP_BUF): Delete.
448 (SIGSETJMP): Likewise.
449 (SIGLONGJMP): Likewise.
450 * exceptions.h (gdb_setjmp.h): Include.
451 (setjmp.h): Do not include.
452 (EXCEPTIONS_SIGJMP_BUF): Delete.
453 (EXCEPTIONS_SIGSETJMP): Likewise.
454 (EXCEPTIONS_SIGLONGJMP): Likewise.
455 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
456 from gdb_setjmp.h.
457 * exceptions.c: Likewise.
458
e3180625
GB
4592014-08-29 Gary Benson <gbenson@redhat.com>
460
461 * cleanups.h: Moved to...
462 * common/cleanups.h: New file.
463 * cleanups.c: Moved to...
464 * common/cleanups.c: New file. Include common-defs.h and
465 cleanups.h. Do not include defs.h.
466 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
467 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
468 (cleanups.o): New rule.
469
e3d6ba5d
GB
4702014-08-29 Gary Benson <gbenson@redhat.com>
471
472 * common/errors.h (internal_warning): New declaration.
473 (internal_vwarning): Likewise.
474 * common/errors.c (internal_warning): New function.
475 * utils.h (internal_warning): Don't declare.
476 (internal_vwarning): Likewise.
477 * utils.c (internal_warning): Removed.
478
075c7033
GB
4792014-08-29 Gary Benson <gbenson@redhat.com>
480
481 * main.c (captured_main): Use warning during startup.
482 Prefix startup warning messages with command name.
483
91b35fd0
GB
4842014-08-29 Gary Benson <gbenson@redhat.com>
485
486 * main.c (captured_main): Handle usage errors with error.
487
b1ec390e
GB
4882014-08-29 Gary Benson <gbenson@redhat.com>
489
490 * go32-nat.c (go32_create_inferior): Replace a fprintf/
491 exit pair with a call to error. Wrap the message with _().
492
fd0ef3dd
GB
4932014-08-29 Gary Benson <gbenson@redhat.com>
494
495 * main.c (captured_main): Replace a fprintf/exit
496 pair with a call to error. Wrap the message with _().
497
e0e6bcab
GB
4982014-08-29 Gary Benson <gbenson@redhat.com>
499
500 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
501 pairs with calls to error. Wrap the message with _().
502
0d2f5c07
GB
5032014-08-29 Gary Benson <gbenson@redhat.com>
504
505 * utils.c (vwarning): Protect calls to target_terminal_ours
506 and wrap_here.
507
5df43998
GB
5082014-08-29 Gary Benson <gbenson@redhat.com>
509
510 * exceptions.c (print_flush): Protect calls to
511 target_terminal_ours and wrap_here.
512
2437fd32
GB
5132014-08-29 Gary Benson <gbenson@redhat.com>
514
515 * utils.h (filtered_printing_initialized): New declaration.
516 * utils.c (abort_with_message): New function.
517 (internal_vproblem): Use abort_with_message for first level
518 recursive internal problems, and if gdb_stderr is not set up.
519 Protect calls to target_terminal_ours, begin_line and query.
520
f1f58506
DE
5212014-08-28 Doug Evans <dje@google.com>
522
523 * symtab.c (in_prologue): Move definition to better spot.
524 (skip_prologue_using_sal): Ditto.
525
aab2f208
DE
5262014-08-28 Doug Evans <dje@google.com>
527
528 * symtab.c (find_function_start_sal): Move definition to better spot.
529
6b65d1b6
YQ
5302014-08-28 Yao Qi <yao@codesourcery.com>
531
532 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
533 found_stack_adjust in forward scan. Remove condition check
534 on found_stack_adjust which is always true. Indent the code.
535
a1b34d15
YQ
5362014-08-28 Yao Qi <yao@codesourcery.com>
537
538 * dwarf2read.c (dwarf_decode_lines): Update declaration.
539 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
540 (dwarf_decode_lines): Remove argument
541 want_line_info. Remove condition check on want_line_info.
542 Callers update.
543
d5962de5
DE
5442014-08-27 Doug Evans <dje@google.com>
545
546 * dwarf2read.c (dwarf_record_line): Fix typo.
547
9b139002
SDJ
5482014-08-27 Patrick Palka <patrick@parcs.ath.cx>
549
550 * target.h (struct target_ops::to_terminal_save_ours): Remove
551 declaration.
552 (target_terminal_save_ours): Remove macro.
553 * target-delegates.c: Regenerate.
554 * inf-child.c (inf_child_target): Don't set the nonexistent
555 field to_terminal_save_ours.
556 * inferior.h (child_terminal_save_ours): Remove declaration.
557 * terminal.h (gdb_save_tty_state): New declaration.
558 * inflow.c (child_terminal_save_ours): Rename to ...
559 (gdb_save_tty_state): ... this.
560 * tui/tui.c: Include terminal.h.
561 (tui_enable): Use gdb_save_tty_state instead of
562 target_terminal_save_ours.
563 (tui_disable): Likewise.
564
9debeba0
DE
5652014-08-25 Doug Evans <dje@google.com>
566
567 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
568 Pass NULL instead of 0 for context pointer.
569
428fc5fc
YQ
5702014-08-25 Yao Qi <yao@codesourcery.com>
571
572 * dwarf2read.c: Fix grammatical error.
573
cdc07690
YQ
5742014-08-24 Yao Qi <yao@codesourcery.com>
575
576 * dwarf2read.c (scan_partial_symbols): Update comments.
577 Rename argument 'need_pc' with 'set_addrmap'.
578 (add_partial_namespace): Rename argument 'need_pc' with
579 'set_addrmap'.
580 (add_partial_module): Likewise.
581 (add_partial_subprogram): Likewise. Update comments.
582 (dwarf2_name): Fix typo.
583
a05a36a5
DE
5842014-08-22 Doug Evans <dje@google.com>
585
586 PR 17276
587 * dwarf2read.c (dwarf_record_line_p): New function.
588 (dwarf_decode_lines_1): Ignore subsequent line number entries
589 for the same line if any entry had a non-zero discriminator.
590
252a6764
DE
5912014-08-22 Doug Evans <dje@google.com>
592
593 * buildsym.h (record_line_ftype): New typedef.
594 (record_line): Use it.
595 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
596 (dwarf_decode_lines_1): Call them.
597
510db052
YQ
5982014-08-22 Yao Qi <yao@codesourcery.com>
599
600 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
601 (ctf_end): Remove code.
602
22fd09ae
JK
6032014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
604
605 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
606 (linux_make_corefile_notes): call update_thread_list, protected against
607 exceptions.
608
656e8868
PA
6092014-08-21 Pedro Alves <palves@redhat.com>
610
611 * infcmd.c (attach_command): Remove comment.
612
de589d04
WN
6132014-08-21 Bin Cheng <bin.cheng@arm.com>
614
615 * aarch64-linux-nat.c (dr_changed_t): Change the type from
616 unsigned LONGEST to ULONGEST.
617
2a31c623
PA
6182014-08-20 Pedro Alves <palves@redhat.com>
619
620 * Makefile.in (check-read1): New rule.
621
d36430db
JB
6222014-08-20 Joel Brobecker <brobecker@adacore.com>
623
624 * value.c (value_from_contents_and_address): Strip resolved_type's
625 typedef layers before checking its TYPE_DATA_LOCATION.
626
000339af
PA
6272014-08-20 Pedro Alves <palves@redhat.com>
628
629 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
630
5f52445b
YQ
6312014-08-20 Yao Qi <yao@codesourcery.com>
632
633 * amd64-tdep.c (amd64_classify): Add a blank line after the
634 example. Move "*/" to a new line.
635 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
636 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
637 * dwarf2read.c (psymtab_include_file_name): Likewise.
638
9a0dc9e3
PA
6392014-08-19 Andrew Burgess <aburgess@broadcom.com>
640 Pedro Alves <palves@redhat.com>
641
642 PR symtab/14604
643 PR symtab/14605
644 * ada-lang.c (coerce_unspec_val_to_type): Use
645 value_contents_copy_raw.
646 * ada-valprint.c (val_print_packed_array_elements): Adjust.
647 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
648 * cp-valprint.c (cp_print_value_fields): Let the common printing
649 code handle optimized out values.
650 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
651 * d-valprint.c (dynamic_array_type): Use
652 value_bits_any_optimized_out.
653 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
654 check_any_valid fields.
655 (check_pieced_value_bits): Delete and inline ...
656 (check_pieced_synthetic_pointer): ... here.
657 (check_pieced_value_validity): Delete.
658 (check_pieced_value_invalid): Delete.
659 (pieced_value_funcs): Remove check_validity and check_any_valid
660 fields.
661 (read_pieced_value): Use mark_value_bits_optimized_out.
662 (write_pieced_value): Switch to use
663 mark_value_bytes_optimized_out.
664 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
665 of assuming the whole value is optimized out.
666 * findvar.c (read_frame_register_value): Remove special handling
667 of optimized out registers.
668 (value_from_register): Use mark_value_bytes_optimized_out.
669 * frame-unwind.c (frame_unwind_got_optimized): Use
670 mark_value_bytes_optimized_out.
671 * jv-valprint.c (java_value_print): Adjust.
672 (java_print_value_fields): Let the common printing code handle
673 optimized out values.
674 * mips-tdep.c (mips_print_register): Remove special handling of
675 optimized out registers.
676 * opencl-lang.c (lval_func_check_validity): Delete.
677 (lval_func_check_any_valid): Delete.
678 (opencl_value_funcs): Remove check_validity and check_any_valid
679 fields.
680 * p-valprint.c (pascal_object_print_value_fields): Let the common
681 printing code handle optimized out values.
682 * stack.c (read_frame_arg): Remove special handling of optimized
683 out values. Fetch both VAL and ENTRYVAL before comparing
684 contents. Adjust to value_available_contents_eq rename.
685 * valprint.c (valprint_check_validity)
686 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
687 (val_print_array_elements): Adjust.
688 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
689 (value_bits_any_optimized_out): New function.
690 (value_entirely_covered_by_range_vector): New function, factored
691 out from value_entirely_unavailable.
692 (value_entirely_unavailable): Reimplement.
693 (value_entirely_optimized_out): New function.
694 (insert_into_bit_range_vector): New function, factored out from
695 mark_value_bits_unavailable.
696 (mark_value_bits_unavailable): Reimplement.
697 (struct ranges_and_idx): New struct.
698 (find_first_range_overlap_and_match): New function, factored out
699 from value_available_contents_bits_eq.
700 (value_available_contents_bits_eq): Rename to ...
701 (value_contents_bits_eq): ... this. Check both unavailable
702 contents and optimized out contents.
703 (value_available_contents_eq): Rename to ...
704 (value_contents_eq): ... this.
705 (allocate_value_lazy): Remove reference to the old optimized_out
706 boolean.
707 (allocate_optimized_out_value): Use
708 mark_value_bytes_optimized_out.
709 (require_not_optimized_out): Adjust to check whether the
710 optimized_out vec is empty.
711 (ranges_copy_adjusted): New function, factored out from
712 value_contents_copy_raw.
713 (value_contents_copy_raw): Also copy the optimized out ranges.
714 Assert the destination ranges aren't optimized out.
715 (value_contents_copy): Update comment, remove call to
716 require_not_optimized_out.
717 (value_contents_equal): Adjust to check whether the optimized_out
718 vec is empty.
719 (set_value_optimized_out, value_optimized_out_const): Delete.
720 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
721 New functions.
722 (value_entirely_optimized_out, value_bits_valid): Delete.
723 (value_copy): Take a VEC copy of the 'optimized_out' field.
724 (value_primitive_field): Remove special handling of optimized out.
725 (value_fetch_lazy): Assert that lazy values have no unavailable
726 regions. Use value_bits_any_optimized_out. Remove some special
727 handling for optimized out values.
728 * value.h: Add intro comment about <optimized out> and
729 <unavailable>.
730 (struct lval_funcs): Remove check_validity and check_any_valid
731 fields.
732 (set_value_optimized_out, value_optimized_out_const): Remove.
733 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
734 New declarations.
735 (value_bits_any_optimized_out): New declaration.
736 (value_bits_valid): Delete declaration.
737 (value_available_contents_eq): Rename to ...
738 (value_contents_eq): ... this, and extend comments.
739
6694c411
JK
7402014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
741
742 Fix -fsanitize=address on unreadable inferior strings.
743 * valprint.c (val_print_string): Fix access before BUFFER.
744
89a1c21a
SM
7452014-08-19 Simon Marchi <simon.marchi@ericsson.com>
746
747 * target.c (target_struct_size): Remove.
748 (target_struct_allocsize): Remove.
749 (DEFAULT_ALLOCSIZE): Remove.
750 (target_ops_p): New typedef.
751 (DEF_VEC_P (target_ops_p)): New vector type.
752 (target_structs): Change type to VEC (target_ops_p).
753 (add_target_with_completer): Replace "push" code by VEC_safe_push.
754 (find_default_run_target): Rewrite for loop following changes to
755 target_structs.
756
cb417230
JB
7572014-08-19 Joel Brobecker <brobecker@adacore.com>
758
759 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
760 Adjust code accordingly. Adjust function description comment.
761
817e0957
YQ
7622014-08-19 Yao Qi <yao@codesourcery.com>
763
764 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
765 types.
766
2974be62
AM
7672014-08-19 Alan Modra <amodra@gmail.com>
768
769 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
770 * config.in: Regenerate.
771 * configure: Regenerate.
772
34abf635
GB
7732014-08-19 Tom Tromey <tromey@redhat.com>
774 Gary Benson <gbenson@redhat.com>
775
776 * common/common-debug.h: New file.
777 * common/common-debug.c: Likewise.
778 * debug.c: Likewise.
779 * Makefile.in (SFILES): Add common/common-debug.c.
780 (HFILES_NO_SRCDIR): Add common/common-debug.h.
781 (COMMON_OBS): Add common-debug.o and debug.o.
782 (common-debug.o): New rule.
783 * common/common-defs.h: Include common-debug.h.
784 * common/agent.c (debug_agent_printf): New function.
785 (DEBUG_AGENT): Redefine.
786 * nat/i386-dregs.c (debug_printf): Undefine.
787
f6e94d78
GB
7882014-08-19 Gary Benson <gbenson@redhat.com>
789
790 * common/common-defs.h: Include print-utils.h.
791 * utils.h: Do not include print-utils.h.
792
9239eeab
GB
7932014-08-19 Tom Tromey <tromey@redhat.com>
794 Gary Benson <gbenson@redhat.com>
795
796 * common/common-types.h: New file.
797 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
798 * common/common-defs.h: Include common-types.h.
799 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
800 (ULONGEST): Remove.
801
ef87c8bb
GB
8022014-08-19 Tom Tromey <tromey@redhat.com>
803 Gary Benson <gbenson@redhat.com>
804
805 * common/errors.h: New file.
806 * common/errors.c: Likewise.
807 * Makefile.in (SFILES): Add common/errors.c.
808 (HFILES_NO_SRCDIR): Add common/errors.h.
809 (COMMON_OBS): Add errors.o.
810 (errors.o): New rule.
811 * common/common-defs.h: Include errors.h.
812 * utils.h (perror_with_name, error, verror, warning, vwarning):
813 Don't declare.
814 * common/common-utils.h: (malloc_failure, internal_error):
815 Likewise.
816
196a707b
GB
8172014-08-19 Gary Benson <gbenson@redhat.com>
818
819 * utils.c (internal_vproblem): Always print the message.
820
ded4fc8f
DE
8212014-08-18 Doug Evans <dje@google.com>
822
823 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
824
950c97d8
JB
8252014-08-18 Joel Brobecker <brobecker@adacore.com>
826
827 * ada-typeprint.c (type_is_full_subrange_of_target_type):
828 Return 0 if TYPE is dynamic.
829 (print_range): Add handling of dynamic ranges.
830
3cdcd0ce
JB
8312014-08-18 Keven Boell <keven.boell@intel.com>
832 Joel Brobecker <brobecker@adacore.com>
833
834 * gdbtypes.h (struct main_type): Add field "data_location".
835 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
836 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
837 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
838 a dynamic data location.
839 (resolve_dynamic_type): Add DW_AT_data_location handling.
840 (copy_recursive, copy_type): Copy the data_location information
841 when present.
842 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
843 * value.c (value_from_contents_and_address): Add
844 DW_AT_data_location handling.
845
08412b07
JB
8462014-08-18 Keven Boell <keven.boell@intel.com>
847 Joel Brobecker <brobecker@adacore.com>
848
849 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
850 field "get_object_address".
851 * dwarf2expr.c (execute_stack_op): Add handling for
852 DW_OP_push_object_address.
853 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
854 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
855 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
856 (dwarf_expr_get_obj_addr): New function.
857 (dwarf_expr_ctx_funcs): Add get_object_address field.
858 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
859 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
860 (dwarf2_evaluate_property): Add parameter "address". Use it.
861 (needs_get_obj_addr): New function.
862 (needs_frame_ctx_funcs): Add get_object_address field.
863 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
864 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
865 (resolve_dynamic_array): Likewise.
866
84754697
JB
8672014-08-18 Joel Brobecker <brobecker@adacore.com>
868
869 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
870 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
871 fixed value for records and unions for which some GNAT encodings
872 are present.
873
da5c522f
JB
8742014-08-18 Joel Brobecker <brobecker@adacore.com>
875
876 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
877 rewrite to avoid "else if" and "else" constructs. Should be
878 a no-op in practice.
879
0d72a7c3
JB
8802014-08-18 Joel Brobecker <brobecker@adacore.com>
881
882 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
883 of lexical block.
884
e66d4446
SC
8852014-08-15 Siva Chandra Reddy <sivachandra@google.com>
886
887 PR c++/17132
888 * eval.c: Update all calls to find_overload_match.
889 * valarith.c: Likewise.
890 (value_user_defined_cpp_op, value_user_defined_op): New
891 argument NOSIDE. Update all callers.
892 * valops.c (find_overload_match): New argument NOSIDE.
893 * value.h (find_overload_match): Update signature.
894
940df408
SC
8952014-08-15 Siva Chandra Reddy <sivachandra@google.com>
896
897 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
898 'items' methods instead of 'iteritems' method on dictionaries.
899
699ca60a
DE
9002014-08-15 Doug Evans <dje@google.com>
901
902 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
903 closer to use.
904
37780ee5
DE
9052014-08-15 Doug Evans <dje@google.com>
906
907 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
908
0ad93d4f
DE
9092014-08-15 Doug Evans <dje@google.com>
910
911 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
912
20d8c372
DE
9132014-08-15 Doug Evans <dje@google.com>
914
915 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
916 unused.
917
cb039ba4
EZ
9182014-08-15 Eli Zaretskii <eliz@gnu.org>
919
920 * dcache.h: Include target.h, to avoid compile time warnings.
921
eb7a547a
JB
9222014-08-15 Joel Brobecker <brobecker@adacore.com>
923
924 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
925 frame_info" partial declaration.
926 * gdbarch.h: Regenerate.
927
783cecc8
YQ
9282014-08-15 Yao Qi <yao@codesourcery.com>
929
930 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
931 Add parameter 'decode_for_pst_p'. Callers update.
932
65c749e7
YQ
9332014-08-13 Yao Qi <yao@codesourcery.com>
934
935 PR build/17104
936 * configure.ac: Use local variable 'pos'.
937 * configure: Regenerated.
938
d769e349
DE
9392014-08-11 Doug Evans <dje@google.com>
940
941 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
942 message, it is redundant with "Reading symbols from ..." message.
943
24f1235e
DE
9442014-08-10 Doug Evans <xdje42@gmail.com>
945
946 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
947
dcd2e6ef
YQ
9482014-08-09 Yao Qi <yao@codesourcery.com>
949
950 PR remote/9053
951 * remote.c (remote_xfer_partial): Remove dead code.
952
070bdf0b
AA
9532014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
954
955 * ia64-linux-tdep.c: Include "regset.h".
956 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
957 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
958 (ia64_linux_supply_fpregset): New function.
959 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
960 (ia64_linux_regset_from_core_section): New function.
961 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
962 method.
963
08f9f542
AA
9642014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
965
966 * m68klinux-tdep.c: Include "regset.h".
967 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
968 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
969 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
970 (m68k_linux_regset_from_core_section): New function.
971 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
972 method.
973
8f1cee41
AA
9742014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
975
976 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
977 function. Move logic to...
978 (tilegx_linux_regmap): ... this new register map.
979 (tilegx_linux_regset): Refer to register map, replace supply
980 method by regcache_supply_regset, and add collect method.
981 * tilegx-tdep.h (enum tilegx_regnum): New enum value
982 TILEGX_FIRST_EASY_REGNUM.
983
c5741217
AA
9842014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
985
986 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
987 that calls regcache_supply_regset and handles the EPC register
988 separately. Move main logic to...
989 (score7_linux_gregmap): ... this new register map.
990 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
991 (score7_linux_gregset): Refer to register map. Add collect method.
992 (score7_linux_regset_from_core_section): Replace
993 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
994 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
995 (struct regset): Delete unused forward declaraction.
996 (struct pt_regs): Delete structure definition.
997 (elf_gregset_t): Delete typedef.
998
81580573
AA
9992014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1000
1001 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
1002 (nios2_core_regset): Add collect method.
1003
ba199d7d
AA
10042014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1005
1006 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
1007 platform-independent and don't write to read-only input buffer.
1008 (m32r_linux_collect_gregset): New function.
1009 (m32r_linux_gregset): Add collect method.
1010
0006a9da
AA
10112014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1012
1013 * hppa-linux-tdep.c (greg_map): Rename to...
1014 (hppa_linux_gregmap): ... this. Also convert to
1015 regcache_map_entry format.
1016 (hppa_linux_supply_regset): Delete function.
1017 (hppa_linux_supply_fpregset): Delete function. Move logic to...
1018 (hppa_linux_fpregmap): ... this new register map.
1019 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
1020 register map, replace supply method by regcache_supply_regset, and
1021 add collect method regcache_collect_regset.
1022
901e1b23
AA
10232014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1024
1025 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
1026 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
1027 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
1028 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
1029 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
1030 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
1031 (frv_linux_supply_gregset): Replace main logic by call to
1032 regcache_supply_regset, but keep clearing gr32-gr63.
1033 (frv_linux_supply_fpregset): Delete function.
1034 (frv_linux_gregset): Refer to appropriate register map and add
1035 regcache_collect_regset as the collect method.
1036 (frv_linux_fpregset): Likewise. Also exchange the supply method
1037 by regcache_supply_regset.
1038
1d6e7555
AA
10392014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1040
1041 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
1042 by call to alpha_supply_int_regs.
1043 (alpha_linux_collect_gregset): New function.
1044 (alpha_linux_supply_fpregset): Replace logic by call to
1045 alpha_supply_fp_regs.
1046 (alpha_linux_collect_fpregset): New function.
1047 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
1048
d4d793bf
AA
10492014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1050
1051 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
1052 by call to regcache_collect_regset.
1053 (supply_gregset, supply_fpregset): Call regcache_supply_regset
1054 instead of aarch64_linux_supply_gregset/_fpregset.
1055 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
1056 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
1057 header file instead.
1058 (aarch64_linux_supply_gregset, supply_gregset_from_core)
1059 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
1060 functions. Move logic to ...
1061 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
1062 register maps.
1063 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
1064 refer to new register maps, replace *_regset_from_core by
1065 regcache_supply_regset, and also use regcache_collect_regset.
1066 * aarch64-linux-tdep.h: Include "regset.h".
1067 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
1068 Delete prototypes.
1069 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
1070 macros, moved from C source file.
1071 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
1072 variable declarations.
1073
99b7da5d
AA
10742014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1075
1076 * s390-linux-nat.c: Include "regset.h".
1077 (regmap_gregset): Delete macro.
1078 (s390_64_regmap_gregset): New register map for
1079 regcache_supply/_collect_regset.
1080 (s390_64_gregset): New regset.
1081 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
1082 (regmap_fpregset): Delete macro.
1083 (s390_native_supply, s390_native_collect): Delete functions.
1084 (supply_gregset, fill_gregset): Replace s390-specific regmap
1085 handling by a call to regcache_supply/_collect_regset.
1086 (supply_fpregset, fill_fpregset): Call regcache_supply/
1087 _collect_regset instead of s390_native_supply/_collect.
1088 (fetch_regset, store_regset): Likewise. Also change the last
1089 parameter to a regset instead of a regmap.
1090 (s390_linux_fetch_inferior_registers)
1091 (390_linux_store_inferior_registers): Adjust last parameter in
1092 calls to fetch_regset and store_regset.
1093 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
1094 (s390_gregmap): ... this. Also make static const and convert to
1095 regcache_map_entry format.
1096 (s390x_regmap_gregset): Delete.
1097 (s390_regmap_fpregset): Rename to...
1098 (s390_fpregmap): ... this. Make static const and convert to
1099 regcache_map_entry format.
1100 (s390_regmap_upper, s390_regmap_last_break)
1101 (s390x_regmap_last_break, s390_regmap_system_call)
1102 (s390_regmap_tdb): Likewise.
1103 (s390_supply_regset, s390_collect_regset): Remove functions.
1104 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
1105 s390_supply_regset.
1106 (s390_gregset, s390_fpregset, s390_upper_regset)
1107 (s390_last_break_regset, s390x_last_break_regset)
1108 (s390_system_call_regset, s390_tdb_regset): Make global and
1109 replace s390_supply/_collect_regset by regcache_supply/
1110 _collect_regset.
1111 (s390x_gregset): Delete.
1112 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
1113 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
1114 (s390_regmap_fpregset, s390_regmap_last_break)
1115 (s390x_regmap_last_break, s390_regmap_system_call)
1116 (s390_regmap_tdb): Delete global variable declarations.
1117 (s390_gregset, s390_fpregset, s390_last_break_regset)
1118 (s390x_last_break_regset, s390_system_call_regset)
1119 (s390_tdb_regset): New global variable declarations.
1120
0b309272
AA
11212014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1122
1123 * regcache.c: Include "regset.h".
1124 (regcache_transfer_regset): New local function.
1125 (regcache_supply_regset, regcache_collect_regset): New functions.
1126 * regcache.h (struct regcache_map_entry): New structure.
1127 (REGCACHE_MAP_SKIP): New enum value.
1128 (regcache_supply_regset, regcache_collect_regset): New prototypes.
1129
7fefa8d7
AA
11302014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1131
1132 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
1133 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
1134 (ppc_linux_collect_gregset ): Likewise.
1135 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
1136 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
1137 (ppc_collect_vrregset): Likewise.
1138 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
1139 Likewise.
1140
96c4f946
YQ
11412014-08-07 Yao Qi <yao@codesourcery.com>
1142
1143 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
1144 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
1145 * remote.c (remote_read_bytes): Likewise.
1146
fffbe6a8
YQ
11472014-08-07 Yao Qi <yao@codesourcery.com>
1148
1149 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
1150
5ee8a82c
YQ
11512014-08-07 Yao Qi <yao@codesourcery.com>
1152
1153 PR remote/17230
1154 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
1155 TARGET_XFER_OK instead of 0.
1156
bb974a24
GB
11572014-08-07 Gary Benson <gbenson@redhat.com>
1158
1159 * common/common-defs.h: Include errno.h.
1160 * defs.h: Do not include errno.h.
1161 * ada-typeprint.c: Likewise.
1162 * c-typeprint.c: Likewise.
1163 * core-regset.c: Likewise.
1164 * corefile.c: Likewise.
1165 * corelow.c: Likewise.
1166 * event-loop.c: Likewise.
1167 * f-typeprint.c: Likewise.
1168 * gnu-nat.c: Likewise.
1169 * go32-nat.c: Likewise.
1170 * i386gnu-nat.c: Likewise.
1171 * m2-typeprint.c: Likewise.
1172 * nat/linux-btrace.c: Likewise.
1173 * p-typeprint.c: Likewise.
1174 * procfs.c: Likewise.
1175 * remote-sim.c: Likewise.
1176 * rs6000-nat.c: Likewise.
1177 * target.c: Likewise.
1178 * typeprint.c: Likewise.
1179 * ui-file.c: Likewise.
1180 * valops.c: Likewise.
1181 * valprint.c: Likewise.
1182
6d3d12eb
GB
11832014-08-07 Gary Benson <gbenson@redhat.com>
1184
1185 * common/common-defs.h: Include string.h.
1186 * aarch64-tdep.c: Do not include string.h.
1187 * ada-exp.y: Likewise.
1188 * ada-lang.c: Likewise.
1189 * ada-lex.l: Likewise.
1190 * ada-typeprint.c: Likewise.
1191 * ada-valprint.c: Likewise.
1192 * aix-thread.c: Likewise.
1193 * alpha-linux-tdep.c: Likewise.
1194 * alpha-mdebug-tdep.c: Likewise.
1195 * alpha-nat.c: Likewise.
1196 * alpha-osf1-tdep.c: Likewise.
1197 * alpha-tdep.c: Likewise.
1198 * alphanbsd-tdep.c: Likewise.
1199 * amd64-dicos-tdep.c: Likewise.
1200 * amd64-linux-tdep.c: Likewise.
1201 * amd64-nat.c: Likewise.
1202 * amd64-sol2-tdep.c: Likewise.
1203 * amd64fbsd-tdep.c: Likewise.
1204 * amd64obsd-tdep.c: Likewise.
1205 * arch-utils.c: Likewise.
1206 * arm-linux-nat.c: Likewise.
1207 * arm-linux-tdep.c: Likewise.
1208 * arm-tdep.c: Likewise.
1209 * arm-wince-tdep.c: Likewise.
1210 * armbsd-tdep.c: Likewise.
1211 * armnbsd-nat.c: Likewise.
1212 * armnbsd-tdep.c: Likewise.
1213 * armobsd-tdep.c: Likewise.
1214 * avr-tdep.c: Likewise.
1215 * ax-gdb.c: Likewise.
1216 * ax-general.c: Likewise.
1217 * bcache.c: Likewise.
1218 * bfin-tdep.c: Likewise.
1219 * breakpoint.c: Likewise.
1220 * build-id.c: Likewise.
1221 * buildsym.c: Likewise.
1222 * c-exp.y: Likewise.
1223 * c-lang.c: Likewise.
1224 * c-typeprint.c: Likewise.
1225 * c-valprint.c: Likewise.
1226 * charset.c: Likewise.
1227 * cli-out.c: Likewise.
1228 * cli/cli-cmds.c: Likewise.
1229 * cli/cli-decode.c: Likewise.
1230 * cli/cli-dump.c: Likewise.
1231 * cli/cli-interp.c: Likewise.
1232 * cli/cli-logging.c: Likewise.
1233 * cli/cli-script.c: Likewise.
1234 * cli/cli-setshow.c: Likewise.
1235 * cli/cli-utils.c: Likewise.
1236 * coffread.c: Likewise.
1237 * common/agent.c: Likewise.
1238 * common/buffer.c: Likewise.
1239 * common/buffer.h: Likewise.
1240 * common/common-utils.c: Likewise.
1241 * common/filestuff.c: Likewise.
1242 * common/filestuff.c: Likewise.
1243 * common/format.c: Likewise.
1244 * common/print-utils.c: Likewise.
1245 * common/rsp-low.c: Likewise.
1246 * common/signals.c: Likewise.
1247 * common/vec.h: Likewise.
1248 * common/xml-utils.c: Likewise.
1249 * core-regset.c: Likewise.
1250 * corefile.c: Likewise.
1251 * corelow.c: Likewise.
1252 * cp-abi.c: Likewise.
1253 * cp-name-parser.y: Likewise.
1254 * cp-support.c: Likewise.
1255 * cp-valprint.c: Likewise.
1256 * cris-tdep.c: Likewise.
1257 * d-exp.y: Likewise.
1258 * darwin-nat.c: Likewise.
1259 * dbxread.c: Likewise.
1260 * dcache.c: Likewise.
1261 * demangle.c: Likewise.
1262 * dicos-tdep.c: Likewise.
1263 * disasm.c: Likewise.
1264 * doublest.c: Likewise.
1265 * dsrec.c: Likewise.
1266 * dummy-frame.c: Likewise.
1267 * dwarf2-frame.c: Likewise.
1268 * dwarf2loc.c: Likewise.
1269 * dwarf2read.c: Likewise.
1270 * elfread.c: Likewise.
1271 * environ.c: Likewise.
1272 * eval.c: Likewise.
1273 * event-loop.c: Likewise.
1274 * exceptions.c: Likewise.
1275 * exec.c: Likewise.
1276 * expprint.c: Likewise.
1277 * f-exp.y: Likewise.
1278 * f-lang.c: Likewise.
1279 * f-typeprint.c: Likewise.
1280 * f-valprint.c: Likewise.
1281 * fbsd-nat.c: Likewise.
1282 * findcmd.c: Likewise.
1283 * findvar.c: Likewise.
1284 * fork-child.c: Likewise.
1285 * frame.c: Likewise.
1286 * frv-linux-tdep.c: Likewise.
1287 * frv-tdep.c: Likewise.
1288 * gdb.c: Likewise.
1289 * gdb_bfd.c: Likewise.
1290 * gdbarch.c: Likewise.
1291 * gdbarch.sh: Likewise.
1292 * gdbtypes.c: Likewise.
1293 * gnu-nat.c: Likewise.
1294 * gnu-v2-abi.c: Likewise.
1295 * gnu-v3-abi.c: Likewise.
1296 * go-exp.y: Likewise.
1297 * go-lang.c: Likewise.
1298 * go32-nat.c: Likewise.
1299 * guile/guile.c: Likewise.
1300 * guile/scm-auto-load.c: Likewise.
1301 * hppa-hpux-tdep.c: Likewise.
1302 * hppa-linux-nat.c: Likewise.
1303 * hppanbsd-tdep.c: Likewise.
1304 * hppaobsd-tdep.c: Likewise.
1305 * i386-cygwin-tdep.c: Likewise.
1306 * i386-dicos-tdep.c: Likewise.
1307 * i386-linux-tdep.c: Likewise.
1308 * i386-nto-tdep.c: Likewise.
1309 * i386-sol2-tdep.c: Likewise.
1310 * i386-tdep.c: Likewise.
1311 * i386bsd-tdep.c: Likewise.
1312 * i386gnu-nat.c: Likewise.
1313 * i386nbsd-tdep.c: Likewise.
1314 * i386obsd-tdep.c: Likewise.
1315 * i387-tdep.c: Likewise.
1316 * ia64-libunwind-tdep.c: Likewise.
1317 * ia64-linux-nat.c: Likewise.
1318 * inf-child.c: Likewise.
1319 * inf-ptrace.c: Likewise.
1320 * inf-ttrace.c: Likewise.
1321 * infcall.c: Likewise.
1322 * infcmd.c: Likewise.
1323 * inflow.c: Likewise.
1324 * infrun.c: Likewise.
1325 * interps.c: Likewise.
1326 * iq2000-tdep.c: Likewise.
1327 * irix5-nat.c: Likewise.
1328 * jv-exp.y: Likewise.
1329 * jv-lang.c: Likewise.
1330 * jv-typeprint.c: Likewise.
1331 * jv-valprint.c: Likewise.
1332 * language.c: Likewise.
1333 * linux-fork.c: Likewise.
1334 * linux-nat.c: Likewise.
1335 * lm32-tdep.c: Likewise.
1336 * m2-exp.y: Likewise.
1337 * m2-typeprint.c: Likewise.
1338 * m32c-tdep.c: Likewise.
1339 * m32r-linux-nat.c: Likewise.
1340 * m32r-linux-tdep.c: Likewise.
1341 * m32r-rom.c: Likewise.
1342 * m32r-tdep.c: Likewise.
1343 * m68hc11-tdep.c: Likewise.
1344 * m68k-tdep.c: Likewise.
1345 * m68kbsd-tdep.c: Likewise.
1346 * m68klinux-nat.c: Likewise.
1347 * m68klinux-tdep.c: Likewise.
1348 * m88k-tdep.c: Likewise.
1349 * machoread.c: Likewise.
1350 * macrocmd.c: Likewise.
1351 * main.c: Likewise.
1352 * mdebugread.c: Likewise.
1353 * mem-break.c: Likewise.
1354 * memattr.c: Likewise.
1355 * memory-map.c: Likewise.
1356 * mep-tdep.c: Likewise.
1357 * mi/mi-cmd-break.c: Likewise.
1358 * mi/mi-cmd-disas.c: Likewise.
1359 * mi/mi-cmd-env.c: Likewise.
1360 * mi/mi-cmd-stack.c: Likewise.
1361 * mi/mi-cmd-var.c: Likewise.
1362 * mi/mi-cmds.c: Likewise.
1363 * mi/mi-console.c: Likewise.
1364 * mi/mi-getopt.c: Likewise.
1365 * mi/mi-interp.c: Likewise.
1366 * mi/mi-main.c: Likewise.
1367 * mi/mi-parse.c: Likewise.
1368 * microblaze-rom.c: Likewise.
1369 * microblaze-tdep.c: Likewise.
1370 * mingw-hdep.c: Likewise.
1371 * minidebug.c: Likewise.
1372 * minsyms.c: Likewise.
1373 * mips-irix-tdep.c: Likewise.
1374 * mips-linux-tdep.c: Likewise.
1375 * mips-tdep.c: Likewise.
1376 * mips64obsd-tdep.c: Likewise.
1377 * mipsnbsd-tdep.c: Likewise.
1378 * mipsread.c: Likewise.
1379 * mn10300-linux-tdep.c: Likewise.
1380 * mn10300-tdep.c: Likewise.
1381 * monitor.c: Likewise.
1382 * moxie-tdep.c: Likewise.
1383 * mt-tdep.c: Likewise.
1384 * nat/linux-btrace.c: Likewise.
1385 * nat/linux-osdata.c: Likewise.
1386 * nat/linux-procfs.c: Likewise.
1387 * nat/linux-ptrace.c: Likewise.
1388 * nat/linux-waitpid.c: Likewise.
1389 * nbsd-tdep.c: Likewise.
1390 * nios2-linux-tdep.c: Likewise.
1391 * nto-procfs.c: Likewise.
1392 * nto-tdep.c: Likewise.
1393 * objc-lang.c: Likewise.
1394 * objfiles.c: Likewise.
1395 * opencl-lang.c: Likewise.
1396 * osabi.c: Likewise.
1397 * osdata.c: Likewise.
1398 * p-exp.y: Likewise.
1399 * p-lang.c: Likewise.
1400 * p-typeprint.c: Likewise.
1401 * parse.c: Likewise.
1402 * posix-hdep.c: Likewise.
1403 * ppc-linux-nat.c: Likewise.
1404 * ppc-sysv-tdep.c: Likewise.
1405 * ppcfbsd-tdep.c: Likewise.
1406 * ppcnbsd-tdep.c: Likewise.
1407 * ppcobsd-tdep.c: Likewise.
1408 * printcmd.c: Likewise.
1409 * procfs.c: Likewise.
1410 * prologue-value.c: Likewise.
1411 * python/py-auto-load.c: Likewise.
1412 * python/py-gdb-readline.c: Likewise.
1413 * ravenscar-thread.c: Likewise.
1414 * regcache.c: Likewise.
1415 * registry.c: Likewise.
1416 * remote-fileio.c: Likewise.
1417 * remote-m32r-sdi.c: Likewise.
1418 * remote-mips.c: Likewise.
1419 * remote-notif.c: Likewise.
1420 * remote-sim.c: Likewise.
1421 * remote.c: Likewise.
1422 * reverse.c: Likewise.
1423 * rs6000-aix-tdep.c: Likewise.
1424 * ser-base.c: Likewise.
1425 * ser-go32.c: Likewise.
1426 * ser-mingw.c: Likewise.
1427 * ser-pipe.c: Likewise.
1428 * ser-tcp.c: Likewise.
1429 * ser-unix.c: Likewise.
1430 * serial.c: Likewise.
1431 * sh-tdep.c: Likewise.
1432 * sh64-tdep.c: Likewise.
1433 * shnbsd-tdep.c: Likewise.
1434 * skip.c: Likewise.
1435 * sol-thread.c: Likewise.
1436 * solib-dsbt.c: Likewise.
1437 * solib-frv.c: Likewise.
1438 * solib-osf.c: Likewise.
1439 * solib-som.c: Likewise.
1440 * solib-spu.c: Likewise.
1441 * solib-target.c: Likewise.
1442 * solib.c: Likewise.
1443 * somread.c: Likewise.
1444 * source.c: Likewise.
1445 * sparc-nat.c: Likewise.
1446 * sparc-sol2-tdep.c: Likewise.
1447 * sparc-tdep.c: Likewise.
1448 * sparc64-tdep.c: Likewise.
1449 * sparc64fbsd-tdep.c: Likewise.
1450 * sparc64nbsd-tdep.c: Likewise.
1451 * sparcnbsd-tdep.c: Likewise.
1452 * spu-linux-nat.c: Likewise.
1453 * spu-multiarch.c: Likewise.
1454 * spu-tdep.c: Likewise.
1455 * stabsread.c: Likewise.
1456 * stack.c: Likewise.
1457 * std-regs.c: Likewise.
1458 * symfile.c: Likewise.
1459 * symmisc.c: Likewise.
1460 * symtab.c: Likewise.
1461 * target.c: Likewise.
1462 * thread.c: Likewise.
1463 * tilegx-linux-nat.c: Likewise.
1464 * tilegx-tdep.c: Likewise.
1465 * top.c: Likewise.
1466 * tracepoint.c: Likewise.
1467 * tui/tui-command.c: Likewise.
1468 * tui/tui-data.c: Likewise.
1469 * tui/tui-disasm.c: Likewise.
1470 * tui/tui-file.c: Likewise.
1471 * tui/tui-layout.c: Likewise.
1472 * tui/tui-out.c: Likewise.
1473 * tui/tui-regs.c: Likewise.
1474 * tui/tui-source.c: Likewise.
1475 * tui/tui-stack.c: Likewise.
1476 * tui/tui-win.c: Likewise.
1477 * tui/tui-windata.c: Likewise.
1478 * tui/tui-winsource.c: Likewise.
1479 * typeprint.c: Likewise.
1480 * ui-file.c: Likewise.
1481 * ui-out.c: Likewise.
1482 * user-regs.c: Likewise.
1483 * utils.c: Likewise.
1484 * v850-tdep.c: Likewise.
1485 * valarith.c: Likewise.
1486 * valops.c: Likewise.
1487 * valprint.c: Likewise.
1488 * value.c: Likewise.
1489 * varobj.c: Likewise.
1490 * vax-tdep.c: Likewise.
1491 * vaxnbsd-tdep.c: Likewise.
1492 * vaxobsd-tdep.c: Likewise.
1493 * windows-nat.c: Likewise.
1494 * xcoffread.c: Likewise.
1495 * xml-support.c: Likewise.
1496 * xstormy16-tdep.c: Likewise.
1497 * xtensa-linux-nat.c: Likewise.
1498
dccbb609
GB
14992014-08-07 Gary Benson <gbenson@redhat.com>
1500
1501 * common/common-defs.h: Include gdb_assert.h.
1502 * aarch64-tdep.c: Do not include gdb_assert.h.
1503 * addrmap.c: Likewise.
1504 * aix-thread.c: Likewise.
1505 * alpha-linux-tdep.c: Likewise.
1506 * alpha-mdebug-tdep.c: Likewise.
1507 * alphanbsd-tdep.c: Likewise.
1508 * amd64-nat.c: Likewise.
1509 * amd64-tdep.c: Likewise.
1510 * amd64bsd-nat.c: Likewise.
1511 * amd64fbsd-nat.c: Likewise.
1512 * amd64fbsd-tdep.c: Likewise.
1513 * amd64nbsd-nat.c: Likewise.
1514 * amd64nbsd-tdep.c: Likewise.
1515 * amd64obsd-nat.c: Likewise.
1516 * amd64obsd-tdep.c: Likewise.
1517 * arch-utils.c: Likewise.
1518 * arm-tdep.c: Likewise.
1519 * armbsd-tdep.c: Likewise.
1520 * auxv.c: Likewise.
1521 * bcache.c: Likewise.
1522 * bfin-tdep.c: Likewise.
1523 * blockframe.c: Likewise.
1524 * breakpoint.c: Likewise.
1525 * bsd-kvm.c: Likewise.
1526 * bsd-uthread.c: Likewise.
1527 * buildsym.c: Likewise.
1528 * c-exp.y: Likewise.
1529 * c-lang.c: Likewise.
1530 * charset.c: Likewise.
1531 * cleanups.c: Likewise.
1532 * cli-out.c: Likewise.
1533 * cli/cli-decode.c: Likewise.
1534 * cli/cli-dump.c: Likewise.
1535 * cli/cli-logging.c: Likewise.
1536 * cli/cli-script.c: Likewise.
1537 * cli/cli-utils.c: Likewise.
1538 * coffread.c: Likewise.
1539 * common/common-utils.c: Likewise.
1540 * common/queue.h: Likewise.
1541 * common/signals.c: Likewise.
1542 * common/vec.h: Likewise.
1543 * complaints.c: Likewise.
1544 * completer.c: Likewise.
1545 * corelow.c: Likewise.
1546 * cp-abi.c: Likewise.
1547 * cp-name-parser.y: Likewise.
1548 * cp-namespace.c: Likewise.
1549 * cp-support.c: Likewise.
1550 * cris-tdep.c: Likewise.
1551 * dbxread.c: Likewise.
1552 * dictionary.c: Likewise.
1553 * doublest.c: Likewise.
1554 * dsrec.c: Likewise.
1555 * dummy-frame.c: Likewise.
1556 * dwarf2-frame-tailcall.c: Likewise.
1557 * dwarf2-frame.c: Likewise.
1558 * dwarf2expr.c: Likewise.
1559 * dwarf2loc.c: Likewise.
1560 * dwarf2read.c: Likewise.
1561 * eval.c: Likewise.
1562 * event-loop.c: Likewise.
1563 * exceptions.c: Likewise.
1564 * expprint.c: Likewise.
1565 * f-valprint.c: Likewise.
1566 * fbsd-nat.c: Likewise.
1567 * findvar.c: Likewise.
1568 * frame-unwind.c: Likewise.
1569 * frame.c: Likewise.
1570 * frv-tdep.c: Likewise.
1571 * gcore.c: Likewise.
1572 * gdb-dlfcn.c: Likewise.
1573 * gdb_bfd.c: Likewise.
1574 * gdbarch.c: Likewise.
1575 * gdbarch.sh: Likewise.
1576 * gdbtypes.c: Likewise.
1577 * gnu-nat.c: Likewise.
1578 * gnu-v3-abi.c: Likewise.
1579 * go-lang.c: Likewise.
1580 * guile/scm-exception.c: Likewise.
1581 * guile/scm-gsmob.c: Likewise.
1582 * guile/scm-lazy-string.c: Likewise.
1583 * guile/scm-math.c: Likewise.
1584 * guile/scm-pretty-print.c: Likewise.
1585 * guile/scm-safe-call.c: Likewise.
1586 * guile/scm-utils.c: Likewise.
1587 * guile/scm-value.c: Likewise.
1588 * h8300-tdep.c: Likewise.
1589 * hppa-hpux-nat.c: Likewise.
1590 * hppa-tdep.c: Likewise.
1591 * hppanbsd-tdep.c: Likewise.
1592 * hppaobsd-tdep.c: Likewise.
1593 * i386-darwin-nat.c: Likewise.
1594 * i386-darwin-tdep.c: Likewise.
1595 * i386-nto-tdep.c: Likewise.
1596 * i386-tdep.c: Likewise.
1597 * i386bsd-nat.c: Likewise.
1598 * i386fbsd-tdep.c: Likewise.
1599 * i386gnu-nat.c: Likewise.
1600 * i386nbsd-tdep.c: Likewise.
1601 * i386obsd-tdep.c: Likewise.
1602 * i387-tdep.c: Likewise.
1603 * ia64-libunwind-tdep.c: Likewise.
1604 * ia64-tdep.c: Likewise.
1605 * inf-ptrace.c: Likewise.
1606 * inf-ttrace.c: Likewise.
1607 * infcall.c: Likewise.
1608 * infcmd.c: Likewise.
1609 * infrun.c: Likewise.
1610 * inline-frame.c: Likewise.
1611 * interps.c: Likewise.
1612 * jv-lang.c: Likewise.
1613 * jv-typeprint.c: Likewise.
1614 * linux-fork.c: Likewise.
1615 * linux-nat.c: Likewise.
1616 * linux-thread-db.c: Likewise.
1617 * m32c-tdep.c: Likewise.
1618 * m32r-linux-nat.c: Likewise.
1619 * m32r-tdep.c: Likewise.
1620 * m68k-tdep.c: Likewise.
1621 * m68kbsd-nat.c: Likewise.
1622 * m68kbsd-tdep.c: Likewise.
1623 * m88k-tdep.c: Likewise.
1624 * machoread.c: Likewise.
1625 * macroexp.c: Likewise.
1626 * macrotab.c: Likewise.
1627 * maint.c: Likewise.
1628 * mdebugread.c: Likewise.
1629 * memory-map.c: Likewise.
1630 * mep-tdep.c: Likewise.
1631 * mi/mi-common.c: Likewise.
1632 * microblaze-tdep.c: Likewise.
1633 * mingw-hdep.c: Likewise.
1634 * mips-linux-nat.c: Likewise.
1635 * mips-linux-tdep.c: Likewise.
1636 * mips-tdep.c: Likewise.
1637 * mips64obsd-tdep.c: Likewise.
1638 * mipsnbsd-tdep.c: Likewise.
1639 * mn10300-linux-tdep.c: Likewise.
1640 * mn10300-tdep.c: Likewise.
1641 * moxie-tdep.c: Likewise.
1642 * mt-tdep.c: Likewise.
1643 * nat/linux-btrace.c: Likewise.
1644 * nat/linux-osdata.c: Likewise.
1645 * nat/linux-ptrace.c: Likewise.
1646 * nat/mips-linux-watch.c: Likewise.
1647 * nios2-linux-tdep.c: Likewise.
1648 * nios2-tdep.c: Likewise.
1649 * objc-lang.c: Likewise.
1650 * objfiles.c: Likewise.
1651 * obsd-nat.c: Likewise.
1652 * opencl-lang.c: Likewise.
1653 * osabi.c: Likewise.
1654 * parse.c: Likewise.
1655 * ppc-linux-nat.c: Likewise.
1656 * ppc-sysv-tdep.c: Likewise.
1657 * ppcfbsd-nat.c: Likewise.
1658 * ppcfbsd-tdep.c: Likewise.
1659 * ppcnbsd-nat.c: Likewise.
1660 * ppcnbsd-tdep.c: Likewise.
1661 * ppcobsd-nat.c: Likewise.
1662 * ppcobsd-tdep.c: Likewise.
1663 * printcmd.c: Likewise.
1664 * procfs.c: Likewise.
1665 * prologue-value.c: Likewise.
1666 * psymtab.c: Likewise.
1667 * python/py-lazy-string.c: Likewise.
1668 * python/py-value.c: Likewise.
1669 * regcache.c: Likewise.
1670 * reggroups.c: Likewise.
1671 * registry.c: Likewise.
1672 * remote-sim.c: Likewise.
1673 * remote.c: Likewise.
1674 * rs6000-aix-tdep.c: Likewise.
1675 * rs6000-tdep.c: Likewise.
1676 * s390-linux-tdep.c: Likewise.
1677 * score-tdep.c: Likewise.
1678 * ser-base.c: Likewise.
1679 * ser-mingw.c: Likewise.
1680 * sh-tdep.c: Likewise.
1681 * sh64-tdep.c: Likewise.
1682 * solib-darwin.c: Likewise.
1683 * solib-spu.c: Likewise.
1684 * solib-svr4.c: Likewise.
1685 * source.c: Likewise.
1686 * sparc-nat.c: Likewise.
1687 * sparc-sol2-tdep.c: Likewise.
1688 * sparc-tdep.c: Likewise.
1689 * sparc64-sol2-tdep.c: Likewise.
1690 * sparc64-tdep.c: Likewise.
1691 * sparc64fbsd-tdep.c: Likewise.
1692 * sparc64nbsd-tdep.c: Likewise.
1693 * sparc64obsd-tdep.c: Likewise.
1694 * sparcnbsd-tdep.c: Likewise.
1695 * sparcobsd-tdep.c: Likewise.
1696 * spu-multiarch.c: Likewise.
1697 * spu-tdep.c: Likewise.
1698 * stabsread.c: Likewise.
1699 * stack.c: Likewise.
1700 * symfile.c: Likewise.
1701 * symtab.c: Likewise.
1702 * target-descriptions.c: Likewise.
1703 * target-memory.c: Likewise.
1704 * target.c: Likewise.
1705 * tic6x-linux-tdep.c: Likewise.
1706 * tic6x-tdep.c: Likewise.
1707 * tilegx-linux-nat.c: Likewise.
1708 * tilegx-tdep.c: Likewise.
1709 * top.c: Likewise.
1710 * tramp-frame.c: Likewise.
1711 * tui/tui-out.c: Likewise.
1712 * tui/tui-winsource.c: Likewise.
1713 * ui-out.c: Likewise.
1714 * user-regs.c: Likewise.
1715 * utils.c: Likewise.
1716 * v850-tdep.c: Likewise.
1717 * valops.c: Likewise.
1718 * value.c: Likewise.
1719 * varobj.c: Likewise.
1720 * vax-nat.c: Likewise.
1721 * xml-syscall.c: Likewise.
1722 * xml-tdesc.c: Likewise.
1723 * xstormy16-tdep.c: Likewise.
1724 * xtensa-linux-nat.c: Likewise.
1725 * xtensa-tdep.c: Likewise.
1726
e76df0d0
GB
17272014-08-07 Gary Benson <gbenson@redhat.com>
1728
1729 * common/common-defs.h: Include common-utils.h.
1730 * defs.h: Do not include common-utils.h.
1731 * common/gdb_assert.h: Likewise.
1732 * darwin-nat.h: Likewise.
1733 * nat/linux-btrace.c: Likewise.
1734 * target/waitstatus.h: Likewise.
1735
4cb9c816
GB
17362014-08-07 Gary Benson <gbenson@redhat.com>
1737
1738 * common/common-defs.h: Include ptid.h.
1739 * defs.h: Do not include ptid.h.
1740 * inferior.h: Likewise.
1741 * infrun.h: Likewise.
1742 * nat/linux-btrace.h: Likewise.
1743 * nat/linux-osdata.h: Likewise.
1744 * target/waitstatus.h: Likewise.
1745
3995eeee
GB
17462014-08-07 Gary Benson <gbenson@redhat.com>
1747
1748 * common/common-defs.h: Include gdb_locale.h.
1749 * defs.h: Do not include gdb_locale.h.
1750
cb9f1a9b
GB
17512014-08-07 Gary Benson <gbenson@redhat.com>
1752
1753 * common/common-defs.h: Include gdb/signals.h.
1754 * defs.h: Do not include gdb/signals.h.
1755
a5fceff8
GB
17562014-08-07 Gary Benson <gbenson@redhat.com>
1757
1758 * common/common-defs.h: Include pathmax.h.
1759 * defs.h: Do not include pathmax.h.
1760
b9391142
GB
17612014-08-07 Gary Benson <gbenson@redhat.com>
1762
1763 * common/common-defs.h: Include libiberty.h.
1764 * defs.h: Do not include libiberty.h.
1765 * common/queue.h: Likewise.
1766 * cp-name-parser.y: Likewise.
1767 * mi/mi-cmd-catch.c: Likewise.
1768 * python/python.c: Likewise.
1769
0e443c87
GB
17702014-08-07 Gary Benson <gbenson@redhat.com>
1771
1772 * common/common-defs.h: Include ansidecl.h.
1773 * defs.h: Do not include ansidecl.h.
1774 * common/buffer.h: Likewise.
1775 * common/common-utils.h: Likewise.
1776
8ebb3f56
GB
17772014-08-07 Gary Benson <gbenson@redhat.com>
1778
1779 * common/common-defs.h: Include stddef.h.
1780 * defs.h: Do not include stddef.h.
1781 * common/common-utils.h: Likewise.
1782 * amd64fbsd-nat.c: Likewise.
1783 * bcache.c: Likewise.
1784 * charset.c: Likewise.
1785 * common/buffer.h: Likewise.
1786 * common/vec.h: Likewise.
1787 * i386bsd-nat.c: Likewise.
1788 * nat/linux-btrace.h: Likewise.
1789 * ppcfbsd-nat.c: Likewise.
1790 * ppcnbsd-tdep.h: Likewise.
1791 * ppcobsd-nat.c: Likewise.
1792 * ppcobsd-tdep.h: Likewise.
1793 * python/py-gdb-readline.c: Likewise.
1794
8980bdf6
GB
17952014-08-07 Gary Benson <gbenson@redhat.com>
1796
1797 * common/common-defs.h: Include stdarg.h.
1798 * defs.h: Do not include stdarg.h.
1799 * ada-lang.c: Likewise.
1800 * common/common-utils.h: Likewise.
1801 * guile/scm-string.c: Likewise.
1802 * guile/scm-utils.c: Likewise.
1803 * m32c-tdep.c: Likewise.
1804
d7096f71
GB
18052014-08-07 Gary Benson <gbenson@redhat.com>
1806
1807 * common/common-defs.h: Include stdlib.h.
1808 * defs.h: Do not include stdlib.h.
1809 * addrmap.c: Likewise.
1810 * bcache.c: Likewise.
1811 * common/buffer.c: Likewise.
1812 * common/common-utils.c: Likewise.
1813 * cp-name-parser.y: Likewise.
1814 * go32-nat.c: Likewise.
1815 * mn10300-linux-tdep.c: Likewise.
1816 * nat/linux-osdata.c: Likewise.
1817 * tui/tui.c: Likewise.
1818 * windows-nat.c: Likewise.
1819
d02f550d
GB
18202014-08-07 Gary Benson <gbenson@redhat.com>
1821
1822 * common/common-defs.h: Include stdio.h.
1823 * defs.h: Do not include stdio.h.
1824 * ada-lang.c: Likewise.
1825 * common/buffer.c: Likewise.
1826 * common/common-utils.c: Likewise.
1827 * cp-name-parser.y: Likewise.
1828 * gnu-nat.c: Likewise.
1829 * go32-nat.c: Likewise.
1830 * i386gnu-nat.c: Likewise.
1831 * proc-api.c: Likewise.
1832 * proc-events.c: Likewise.
1833 * proc-flags.c: Likewise.
1834 * proc-why.c: Likewise.
1835 * python/python-internal.h: Likewise.
1836 * target-memory.c: Likewise.
1837 * tui/tui-io.c: Likewise.
1838 * tui/tui.c: Likewise.
1839
b6d7a4bf
SM
18402014-08-06 Simon Marchi <simon.marchi@ericsson.com>
1841
1842 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
1843 (scan_dyntag_auxv): Same.
1844
af19829b
YQ
18452014-08-06 Yao Qi <yao@codesourcery.com>
1846
1847 * amd64-linux-nat.c: Remove duplicated include
1848 "x86-linux-nat.h".
1849 * i386-linux-nat.c: Likewise.
1850
8e07a239
YQ
18512014-08-06 Yao Qi <yao@codesourcery.com>
1852
1853 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
1854 operand" with "Special opcode" in comments.
1855
7bfe8241
GB
18562014-08-05 Gary Benson <gbenson@redhat.com>
1857
1858 * interps.c (initialize_interps): Remove prototype.
1859 (interpreter_initialized): Remove static global.
1860 (interp_add): Do not call initialize_interps.
1861 (initialize_interps): Remove function.
1862
d6c95504
GB
18632014-08-05 Gary Benson <gbenson@redhat.com>
1864
1865 * utils.c (vwarning): Remove spurious va_end.
1866
241fd515
AM
18672014-08-05 Alan Modra <amodra@gmail.com>
1868
1869 * charset.c (convert_between_encodings): Cast result of obstack_base.
1870 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
1871 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
1872 (read_unwind_info): Use size_t for some locals.
1873 * jit.c (finalize_symtab): Likewise.
1874 * utils.c (hashtab_obstack_allocate): Likewise.
1875 * symmisc.c (print_objfile_statistics): Update format strings.
1876
dc304a94
JK
18772014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1878
1879 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
1880 (Changes in GDB 7.8): ... here.
1881
3cecbbbe
TT
18822014-08-04 Tom Tromey <tromey@redhat.com>
1883
1884 * target.c (set_targetdebug): New function.
1885 (initialize_targets): Pass set_targetdebug when creating "set
1886 debug target".
1887
6908c509
JB
18882014-08-01 Joel Brobecker <brobecker@adacore.com>
1889
1890 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
1891 if detecting a variable-sized field that is not the last field.
1892 Fix struct type length computation.
1893
53e8f97d
JB
18942014-08-01 Joel Brobecker <brobecker@adacore.com>
1895
1896 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1897 Add debug trace.
1898
e068c55d
JB
18992014-08-01 Joel Brobecker <brobecker@adacore.com>
1900
1901 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1902 Remove "+ 8" offset in computation of CHAIN_VMA.
1903
4d4ca2a1
DE
19042014-07-31 Doug Evans <dje@google.com>
1905
1906 * inflow.c (child_terminal_inferior): Add comment.
1907 (child_terminal_ours_for_output): Add comment.
1908 (child_terminal_ours): Add comment.
1909 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
1910 (linux_nat_terminal_ours): Add comment.
1911
462f517e
GB
19122014-07-31 Gary Benson <gbenson@redhat.com>
1913
1914 * common/btrace-common.h: Do not include defs.h or server.h.
1915 * nat/mips-linux-watch.h: Likewise.
1916 * gdb-dlfcn.h: Do not include defs.h.
1917 * tracefile.h: Likewise.
1918
74228e77
RM
19192014-07-30 Roland McGrath <mcgrathr@google.com>
1920
1921 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
1922
014f9477
TT
19232014-07-30 Tom Tromey <tromey@redhat.com>
1924
1925 * bsd-kvm.c (bsd_kvm_open): Constify.
1926 * corelow.c (core_open): Constify.
1927 * ctf.c (ctf_open): Constify.
1928 * dbug-rom.c (dbug_open): Constify.
1929 * exec.c (exec_open): Constify.
1930 * m32r-rom.c (m32r_open, mon2000_open): Constify.
1931 * microblaze-rom.c (picobug_open): Constify.
1932 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
1933 Constify.
1934 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
1935 * record-btrace.c (record_btrace_open): Constify.
1936 * record-full.c (record_full_core_open_1, record_full_open_1)
1937 (record_full_open): Constify.
1938 * remote-m32r-sdi.c (m32r_open): Constify.
1939 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
1940 (rockhopper_open, lsi_open): Constify.
1941 * remote-sim.c (gdbsim_open): Constify.
1942 * remote.c (remote_open, extended_remote_open, remote_open_1):
1943 Constify.
1944 * target.h (struct target_ops) <to_open>: Make "arg" const.
1945 * tracefile-tfile.c (tfile_open): Constify.
1946
e799154c
TT
19472014-07-30 Tom Tromey <tromey@redhat.com>
1948
1949 * breakpoint.c (map_breakpoint_numbers): Update.
1950 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
1951 (get_number_const): New function.
1952 (get_number): Rewrite using get_number_const.
1953 (init_number_or_range): Make "string" const.
1954 (number_is_in_list): Make "list" const.
1955 * cli/cli-utils.h (get_number_const): Declare.
1956 (struct get_number_or_range_state) <string, end_ptr>: Now const.
1957 (init_number_or_range, number_is_in_list): Update.
1958 * printcmd.c (map_display_numbers): Update.
1959 * value.c (value_from_history_ref): Constify.
1960 * value.h (value_from_history_ref): Update.
1961
5f08566b
TT
19622014-07-30 Tom Tromey <tromey@redhat.com>
1963
1964 * corefile.c (hook_type, call_extra_exec_file_hooks)
1965 (specify_exec_file_hook): Constify.
1966 * exec.c (exec_file_attach): Make "filename" const.
1967 * gdbcore.h (deprecated_exec_file_display_hook)
1968 (specify_exec_file_hook, exec_file_attach): Constify.
1969 * main.c (captured_main): Use catch_command_errors_const.
1970
8981c758
TT
19712014-07-30 Tom Tromey <tromey@redhat.com>
1972
1973 * target.c (open_target): New function.
1974 (add_target_with_completer, add_deprecated_target_alias): Use
1975 set_cmd_sfunc, set_cmd_context.
1976 (debug_to_open): Remove.
1977 (setup_target_debug): Update.
1978
a1c7835a
YQ
19792014-07-30 Yao Qi <yao@codesourcery.com>
1980
1981 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
1982 comments.
1983 * parse.c (exp_iterate): Update comments.
1984
976411d6
GB
19852014-07-30 Gary Benson <gbenson@redhat.com>
1986
1987 * common/common-defs.h: New file.
1988 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
1989 * defs.h: Include common-defs.h.
1990 Do not include config.h or build-gnulib/config.h.
1991
5d4848a4
GB
19922014-07-30 Gary Benson <gbenson@redhat.com>
1993
1994 * common/common-utils.h: Do not include config.h.
1995 * nat/linux-btrace.h: Likewise.
1996
d41f6d8e
GB
19972014-07-30 Gary Benson <gbenson@redhat.com>
1998
1999 * btrace.c: Include defs.h.
2000 * common/ptid.c: Include defs.h or server.h as appropriate.
2001 * nat/mips-linux-watch.c: Likewise.
2002
84202f9c
TT
20032014-07-29 Tom Tromey <tromey@redhat.com>
2004
2005 * target.c (target_is_pushed): Simplify.
2006
2530441c
JB
20072014-07-29 Joel Brobecker <brobecker@adacore.com>
2008
2009 GDB 7.8 released.
2010
7e09a223
YQ
20112014-07-29 Yao Qi <yao@codesourcery.com>
2012
2013 PR gdb/17206
2014 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
2015
7ebdbe92
DE
20162014-07-28 Doug Evans <xdje42@gmail.com>
2017
2018 PR guile/17203
2019 * guile/scm-param.c (pascm_parameter_defined_p): New function.
2020 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
2021 parameters.
2022
f347ffc9
WN
20232014-07-28 Will Newton <will.newton@linaro.org>
2024
2025 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
2026 (THUMB2_SET_R7_SIGRETURN2): Likewise.
2027 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
2028 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
2029 (THUMB2_EABI_SYSCALL): Likewise.
2030 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
2031 struct tramp_frame.
2032 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
2033 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
2034
37c5f1f7
DE
20352014-07-27 Doug Evans <xdje42@gmail.com>
2036
2037 * guile/scm-param.c (pascm_print_param_smob): Fix output.
2038
0c3abbc7
DE
20392014-07-27 Doug Evans <xdje42@gmail.com>
2040
2041 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
2042
e76c5d17
DE
20432014-07-26 Ludovic Courtès <ludo@gnu.org>
2044 Doug Evans <xdje42@gmail.com>
2045
2046 PR guile/17146
2047 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
2048 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
2049 * configure.ac: Try to use guild to compile an scm file, if it fails
2050 then disable guile support.
2051 * configure: Regenerate.
2052 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
2053 GUILE_FILE_LIST.
2054 (GUILE_COMPILED_FILES): New variable.
2055 (GUILE_FILES) Update.
2056 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
2057 (stamp-guile): Compile scm files.
2058 * guile/guile.c (boot_guile_support): New function.
2059 (standard_throw_args_p): New function.
2060 (print_standard_throw_error, print_throw_error): New functions.
2061 (handle_boot_error): New function.
2062 (initialize_scheme_side): Rewrite to call boot_guile_support.
2063 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
2064 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
2065
186fcde0
DE
20662014-07-26 Ludovic Courtès <ludo@gnu.org>
2067 Doug Evans <xdje42@gmail.com>
2068
2069 PR guile/17146
2070 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
2071 * guile/lib/gdb/support.scm: New file.
2072 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
2073 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
2074 All uses updated.
2075 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
2076 All uses updated.
2077 (%assert-type): Ditto, and renamed to assert-type.
2078 (%exception-print-style): Delete.
2079
4df42755
DE
20802014-07-26 Doug Evans <xdje42@gmail.com>
2081
2082 PR build/17105
2083 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
2084 * configure: Regenerate.
2085 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
2086 PYTHON_FILES.
2087 (PYTHON_FILES): New variable.
2088 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
2089 (GUILE_FILES): New variable.
2090 (stamp-python, install-python, uninstall-python): Handle empty
2091 file list.
2092 (stamp-guile, install-guile, uninstall-guile): Ditto.
2093
ee7333ae
DE
20942014-07-26 Doug Evans <xdje42@gmail.com>
2095
2096 PR guile/17177
2097 * guile/lib/gdb.scm (pretty-printers): Export.
2098 (set-pretty-printers!): Export.
2099 * guile/lib/gdb/printing.scm (gdb module): Update.
2100 (prepend-pretty-printer!, append-pretty-printer!): Update.
2101 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
2102 (pretty_printer_list_var): Delete.
2103 (pretty_printer_list): New static global.
2104 (gdbscm_pretty_printers): New function.
2105 (gdbscm_set_pretty_printers_x): New function.
2106 (ppscm_find_pretty_printer_from_gdb): Update.
2107 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
2108 (gdbscm_initialize_pretty_printers): Update.
2109
74edf516
DE
21102014-07-26 Doug Evans <xdje42@gmail.com>
2111
2112 PR 17185
2113 * configure.ac: Add check for header gc/gc.h.
2114 Add check for function setenv.
2115 * configure: Regenerate.
2116 * config.in: Regenerate.
2117 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
2118
d54398a7
MR
21192014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
2120
2121 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
2122 variation in gdbarch matching.
2123
ab16fce8
TT
21242014-07-25 Tom Tromey <tromey@redhat.com>
2125
2126 * exec.c (using_exec_ops): Remove.
2127 (exec_close_1): Update. Remove extraneous block, reindent.
2128 (add_target_sections): Use target_is_pushed.
2129
88056fbb
PA
21302014-07-25 Pedro Alves <palves@redhat.com>
2131
2132 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
2133 * monitor.c (monitor_create_inferior): Likewise.
2134 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
2135 * remote-sim.c (gdbsim_create_inferior): Likewise.
2136 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
2137 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
2138 * windows-nat.c (do_initial_windows_stuff): Likewise.
2139
70509625
PA
21402014-07-25 Pedro Alves <palves@redhat.com>
2141
2142 * NEWS: Mention signal passing and "signal" command changes.
2143 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
2144 comment.
2145 * breakpoint.c (until_break_command): Adjust clear_proceed_status
2146 call.
2147 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
2148 * infcmd.c (proceed_thread_callback, continue_1, step_once)
2149 (jump_command): Adjust clear_proceed_status call.
2150 (signal_command): Warn if other thread that are resumed have
2151 signals that will be delivered. Adjust clear_proceed_status call.
2152 (until_next_command, finish_command)
2153 (proceed_after_attach_callback, attach_command_post_wait)
2154 (attach_command): Adjust clear_proceed_status call.
2155 * infrun.c (proceed_after_vfork_done): Likewise.
2156 (proceed_after_attach_callback): Adjust comment.
2157 (clear_proceed_status_thread): Clear stop_signal if not in pass
2158 state.
2159 (clear_proceed_status_callback): Delete.
2160 (clear_proceed_status): New 'step' parameter. Only clear the
2161 proceed status of threads the command being prepared is about to
2162 resume.
2163 (proceed): If passed in an explicit signal, override stop_signal
2164 with it. Don't pass the last stop signal to the thread we're
2165 resuming.
2166 (init_wait_for_inferior): Adjust clear_proceed_status call.
2167 (switch_back_to_stepped_thread): Clear the signal if it should not
2168 be passed.
2169 * infrun.h (clear_proceed_status): New 'step' parameter.
2170 (user_visible_resume_ptid): Add comment.
2171 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
2172 signal is in pass state.
2173 * remote.c (append_pending_thread_resumptions): Likewise.
2174 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
2175
d8be2939
TT
21762014-07-25 Tom Tromey <tromey@redhat.com>
2177
2178 * target.h (target_stopped_data_address)
2179 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
2180 parentheses.
2181
7d0d9d2b
PL
21822014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
2183
2184 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
2185 comments.
2186 (avr_pointer_to_address): Likewise.
2187
e9e7f724
TT
21882014-07-24 Tom Tromey <tromey@redhat.com>
2189
2190 * monitor.c (compile_pattern): Update.
2191 * target.h (struct target_ops) <to_shortname, to_longname,
2192 to_doc>: Now const.
2193
1947513d
TT
21942014-07-24 Tom Tromey <tromey@redhat.com>
2195
2196 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
2197 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
2198 (add_info_alias, add_com): Make "doc" const.
2199 (print_doc_line): Make "str" const.
2200 (delete_cmd): Update.
2201 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
2202 (print_doc_line): Update.
2203 * cli/cli-script.c (document_command): Update.
2204 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
2205 (add_com, add_info, add_info_alias): Update.
2206 * guile/scm-cmd.c (cmdscm_destroyer): Update.
2207 * python/py-cmd.c (cmdpy_destroyer): Update.
2208
64e61d29
TT
22092014-07-24 Tom Tromey <tromey@redhat.com>
2210
2211 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
2212 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
2213 (help_cmd_list): Constify.
2214 (lookup_cmd): Update.
2215 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
2216 const.
2217 (help_cmd_list, apropos_cmd): Update.
2218 * cli/cli-script.c (show_user): Update.
2219 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
2220 * cli/cli-setshow.h (cmd_show_list): Update.
2221 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
2222 (cmd_show_list): Update.
2223 * guile/scm-cmd.c (cmdscm_destroyer): Update.
2224 * python/py-cmd.c (cmdpy_destroyer): Update.
2225
429e55ea
TT
22262014-07-24 Tom Tromey <tromey@redhat.com>
2227
2228 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
2229 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
2230 const.
2231 * command.h (deprecate_cmd): Update.
2232 * maint.c (maintenance_do_deprecate): Add casts.
2233
64669f3b
TT
22342014-07-24 Tom Tromey <tromey@redhat.com>
2235
2236 * cli/cli-decode.c (help_cmd): Make parameter "const".
2237 * cli/cli-decode.h (help_cmd): Update.
2238
d3d3328b
TT
22392014-07-24 Tom Tromey <tromey@redhat.com>
2240
2241 * stack.c (up_silently_base, down_silently_base): Make argument
2242 const.
2243
414842dc
TT
22442014-07-24 Tom Tromey <tromey@redhat.com>
2245
2246 * solib.c (solib_add): Make "pattern" const.
2247 * solib.h (solib_add): Update.
2248
baa336ce
TT
22492014-07-24 Tom Tromey <tromey@redhat.com>
2250
2251 * remote.c (remote_serial_open, print_packet, putpkt)
2252 (putpkt_binary): Constify.
2253 * remote.h (putpkt): Update.
2254
5a19e2d0
TT
22552014-07-24 Tom Tromey <tromey@redhat.com>
2256
2257 * monitor.c (monitor_open): Make "args" const.
2258 * monitor.h (monitor_open): Update.
2259
fc4baa5e
TT
22602014-07-24 Tom Tromey <tromey@redhat.com>
2261
2262 * maint.c (match_bfd_flags): Make "string" const.
2263 (print_bfd_section_info): Remove casts.
2264 (print_objfile_section_info): Make "string" const.
2265
0d5f0dbe
TT
22662014-07-24 Tom Tromey <tromey@redhat.com>
2267
2268 * inf-child.c (inf_child_open_target): Make "arg" const.
2269 * inf-child.h (inf_child_open_target): Update.
2270
41c77899
TT
22712014-07-24 Tom Tromey <tromey@redhat.com>
2272
2273 * environ.c (unset_in_environ): Make "var" const.
2274 * environ.h (unset_in_environ): Update.
2275
93db0d79
TT
22762014-07-24 Tom Tromey <tromey@redhat.com>
2277
2278 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
2279 Make "cmd" const.
2280 (scan_filename_with_cleanup): Likewise.
2281 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
2282 Make arguments const.
2283 (restore_command): Update.
2284
36d6eb95
PA
22852014-07-24 Pedro Alves <palves@redhat.com>
2286
2287 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
2288
8009206a
TT
22892014-07-24 Tom Tromey <tromey@redhat.com>
2290 Gary Benson <gbenson@redhat.com>
2291
2292 * nat/linux-ptrace.c (additional_flags): New global.
2293 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
2294 additional_flags; don't check GDBSERVER.
2295 (linux_ptrace_set_additional_flags): New function.
2296 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
2297 Declare.
2298 * linux-nat.c (_initialize_linux_nat): Call
2299 linux_ptrace_set_additional_flags.
2300
a7068b60
TT
23012014-07-24 Tom Tromey <tromey@redhat.com>
2302
2303 * make-target-delegates (munge_type, write_debugmethod): New
2304 functions.
2305 (debug_names): New global.
2306 ($TARGET_DEBUG_PRINTER): New global.
2307 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
2308 name.
2309 Write debug methods. Generate init_debug_target.
2310 * target-debug.h: New file.
2311 * target-delegates.c: Rebuild.
2312 * target.c: Include target-debug.h.
2313 (debug_target): Hoist definition.
2314 (target_kill, target_get_section_table, target_memory_map)
2315 (target_flash_erase, target_flash_done, target_detach)
2316 (target_disconnect, target_wait, target_resume)
2317 (target_pass_signals, target_program_signals, target_follow_fork)
2318 (target_mourn_inferior, target_search_memory)
2319 (target_thread_address_space, target_close)
2320 (target_find_new_threads, target_core_of_thread)
2321 (target_verify_memory, target_insert_mask_watchpoint)
2322 (target_remove_mask_watchpoint): Remove targetdebug code.
2323 (debug_to_post_attach, debug_to_prepare_to_store)
2324 (debug_to_files_info, debug_to_insert_breakpoint)
2325 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
2326 (debug_to_region_ok_for_hw_watchpoint)
2327 (debug_to_can_accel_watchpoint_condition)
2328 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
2329 (debug_to_watchpoint_addr_within_range)
2330 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
2331 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
2332 (debug_to_terminal_init, debug_to_terminal_inferior)
2333 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
2334 (debug_to_terminal_save_ours, debug_to_terminal_info)
2335 (debug_to_load, debug_to_post_startup_inferior)
2336 (debug_to_insert_fork_catchpoint)
2337 (debug_to_remove_fork_catchpoint)
2338 (debug_to_insert_vfork_catchpoint)
2339 (debug_to_remove_vfork_catchpoint)
2340 (debug_to_insert_exec_catchpoint)
2341 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
2342 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
2343 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
2344 (setup_target_debug): Call init_debug_target.
2345 * target.h (TARGET_DEBUG_PRINTER): New macro.
2346 (struct target_ops) <to_resume, to_wait, to_pass_signals,
2347 to_program_signals>: Use TARGET_DEBUG_PRINTER.
2348
2c51604d
GB
23492014-07-24 Gary Benson <gbenson@redhat.com>
2350
2351 * exceptions.h (throw_vfatal): Renamed to...
2352 (throw_vquit): New declaration.
2353 (throw_quit): Likewise.
2354 * exceptions.c (throw_vfatal): Renamed to...
2355 (throw_vquit): New function.
2356 (throw_quit): Likewise.
2357 (throw_error): Call throw_verror rather than throw_it.
2358 * utils.h (vfatal): Removed.
2359 (fatal): Likewise.
2360 * utils.c (vfatal): Removed.
2361 (fatal): Likewise.
2362 (internal_verror): Replaced call to fatal with call to throw_quit.
2363 (quit): Replaced calls to fatal with calls to throw_quit.
2364
34211963
ME
23652014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
2366
2367 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
2368 target_read_code.
2369
a52b4d3e
ME
23702014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
2371
2372 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
2373 less than zero in conditional expression.
2374
a8bdc56b
TT
23752014-07-23 Tom Tromey <tromey@redhat.com>
2376
2377 * make-target-delegates ($ARGS_PART): Match trailing close paren.
2378 ($INTRO_PART): Don't match whitespace.
2379 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
2380 argument matching.
2381 ($METHOD): Add $METHOD_TRAILER.
2382 (trim): Rewrite.
2383 (scan_target_h): New sub.
2384 Change main loop not to collect state.
2385 * target-delegates.c: Rebuild.
2386
91b52240
GB
23872014-07-23 Gary Benson <gbenson@redhat.com>
2388
2389 * cp-support.c (gdb_demangle): Fix build on systems without
2390 sigaltstack.
2391
45326f6f
JK
23922014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2393
2394 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
2395 for reference entry value target data value.
2396
e214cf6c
JK
23972014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2398
2399 * stack.c (read_frame_arg): Verify value_optimized_out before calling
2400 value_available_contents_eq.
2401
bddbbedd
PA
24022014-07-22 Pedro Alves <palves@redhat.com>
2403
2404 * value.c (allocate_optimized_out_value): Don't mark value as
2405 non-lazy.
2406
45c71484
JW
24072014-07-22 Jiong Wang <jiong.wang@arm.com>
2408
2409 * MAINTAINERS (Write After Approval): Update my email address.
2410
9597b22a
DE
24112014-07-20 Doug Evans <dje@google.com>
2412
2413 PR server/17147
2414 * remote.c (putpkt_binary): Add text to error message.
2415
91101fe5
YQ
24162014-07-20 Yao Qi <yao@codesourcery.com>
2417
2418 * eval.c: Remove "Chill" from comments.
2419 * gdbtypes.h: Likewise.
2420 * symtab.h: Likewise.
2421
c9402c95
YQ
24222014-07-20 Yao Qi <yao@codesourcery.com>
2423
2424 * std-operator.def: Update comments to TERNOP_SLICE.
2425
ae8fddda
YQ
24262014-07-20 Yao Qi <yao@codesourcery.com>
2427
2428 * std-operator.def: Remove BINOP_RANGE.
2429 * breakpoint.c (watchpoint_exp_is_const): Update.
2430 * expprint.c (dump_subexp_body_standard): Likewise.
2431 * eval.c (init_array_element): Remove dead code.
2432 (evaluate_subexp_standard): Likewise.
2433
9c816640
YQ
24342014-07-20 Yao Qi <yao@codesourcery.com>
2435
2436 * std-operator.def: Remove BINOP_IN.
2437 * breakpoint.c (watchpoint_exp_is_const): Update.
2438 * eval.c (evaluate_subexp_standard): Likewise.
2439 * expprint.c (dump_subexp_body_standard): Likewise.
2440
164224e9
ME
24412014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
2442
2443 * microblaze-tdep.c (microblaze_register_names): Add
2444 the rshr and rslr register names.
2445 (microblaze_gdbarch_init): Use of tdesc_has_registers.
2446 Use of tdesc_find_feature. Use of tdesc_data_alloc.
2447 Use of tdesc_numbered_register. Use of
2448 microblaze_register_g_packet_guesses. Use of
2449 tdesc_use_registers. Use of set_gdbarch_register_type.
2450 (microblaze_register_g_packet_guesses): New.
2451 * microblaze-tdep.h (microblaze_reg_num): Add
2452 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
2453 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
2454 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
2455 * features/microblaze-core.xml: New file.
2456 * features/microblaze-stack-protect.xml: New file.
2457 * features/microblaze-with-stack-protect.c: New file.
2458 * features/microblaze-with-stack-protect.xml: New file.
2459 * features/microblaze.xml: New file.
2460 * features/microblaze.c: New file.
2461 * features/Makefile (microblaze-with-stack-protect): Add
2462 microblaze-with-stack-protect microblaze and microblaze-expedite.
2463 * regformats/microblaze-with-stack-protect.dat: New file.
2464 * regformats/microblaze.dat: New file.
2465 * doc/gdb.texinfo (MicroBlaze Features): Added.
2466
e8b2341c
TT
24672014-07-18 Tom Tromey <tromey@redhat.com>
2468
2469 * exec.c (exec_ops): Now static.
2470 * exec.h (exec_ops): Don't declare.
2471
44e89118
TT
24722014-07-18 Tom Tromey <tromey@redhat.com>
2473
2474 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
2475 to find_target_beneath.
2476 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
2477 find_target_beneath.
2478 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
2479
b0ed115f
TT
24802014-07-18 Tom Tromey <tromey@redhat.com>
2481
2482 PR gdb/17130:
2483 * utils.c (quit): Use target_supports_terminal_ours.
2484 * target.h (target_supports_terminal_ours): Declare.
2485 * target.c (target_supports_delete_record): Don't check
2486 to_delete_record against NULL.
2487 (target_supports_terminal_ours): New function.
2488
e75fdfca
TT
24892014-07-18 Tom Tromey <tromey@redhat.com>
2490
2491 PR gdb/17130:
2492 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
2493 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
2494 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
2495 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
2496 * windows-nat.c (windows_xfer_partial): Always delegate.
2497 * record-btrace.c (record_btrace_xfer_partial): Simplify
2498 delegation.
2499 (record_btrace_fetch_registers, record_btrace_store_registers)
2500 (record_btrace_prepare_to_store, record_btrace_resume)
2501 (record_btrace_wait, record_btrace_find_new_threads)
2502 (record_btrace_thread_alive): Likewise.
2503 * procfs.c (procfs_xfer_partial): Always delegate.
2504 * corelow.c (core_xfer_partial): Always delegate.
2505 * sol-thread.c (sol_find_new_threads): Simplify delegation.
2506
83814951
TT
25072014-07-18 Tom Tromey <tromey@redhat.com>
2508
2509 * exec.c (exec_make_note_section): Move earlier.
2510
b8b8facf
DE
25112014-07-17 Doug Evans <dje@google.com>
2512
74b49205 2513 PR gdb/17170
b8b8facf
DE
2514 * maint.c (count_symtabs_and_blocks): Handle NULL
2515 current_program_space.
2516 (report_command_stats): Check global enabled flag in addition to
2517 recorded enabled flag.
2518 (make_command_stats_cleanup): Handle msg_type == 0, startup.
2519
69ff6be5
PA
25202014-07-16 Pedro Alves <palves@redhat.com>
2521
2522 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
2523
252db1b5
TT
25242014-07-16 Tom Tromey <tromey@redhat.com>
2525
2526 * target.h (struct target_ops) <to_delete_record>: Reformat
2527 comment.
2528
a432721e
TT
25292014-07-16 Tom Tromey <tromey@redhat.com>
2530
2531 * target-delegates.c: Rebuild.
2532
487d9753
PL
25332014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
2534
2535 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
2536 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
2537 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
2538 (avr_pointer_to_address): Likewise.
2539 (avr_address_class_type_flags): New function.
2540 (avr_address_class_type_flags_to_name): Likewise.
2541 (avr_address_class_name_to_type_flags): Likewise.
2542 (avr_gdbarch_init): Set address_class_type_flags,
2543 address_class_type_flags_to_name and
2544 address_class_name_to_type_flags.
2545
57745c90
PA
25462014-07-15 Pedro Alves <palves@redhat.com>
2547
2548 * linux-nat.c (kill_callback): Save errno and work with saved
2549 copy.
2550
2d40be18
SM
25512014-07-15 Simon Marchi <simon.marchi@ericsson.com>
2552
2553 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
2554
572f6555
EBM
25552014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2556
2557 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
2558 breakpoint support correctly.
2559
cc1c52ad
PA
25602014-07-14 Pedro Alves <palves@redhat.com>
2561
2562 * utils.c (prompt_for_continue): Call target_terminal_ours.
2563
1e973570
PA
25642014-07-14 Pedro Alves <palves@redhat.com>
2565
2566 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
2567 catch_errors. Don't re-enable stdin or notify observers where,
2568 and rethrow error.
2569 (fetch_inferior_event_wrapper): Delete.
2570
93d6eb10
PA
25712014-07-14 Pedro Alves <palves@redhat.com>
2572
2573 PR gdb/17072
2574 * top.c: Include "inf-loop.h".
2575 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
2576 field.
2577 (gdb_readline_wrapper_cleanup): Make the target async again, if it
2578 was async before.
2579 (gdb_readline_wrapper): Store whether the target is async, and
2580 make it sync.
2581
0017922d
PA
25822014-07-14 Pedro Alves <palves@redhat.com>
2583
2584 PR gdb/17072
2585 * top.c (gdb_readline_wrapper_line): Tweak comment.
2586 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
2587 the input handler callback.
2588
94696ad3
PA
25892014-07-14 Pedro Alves <palves@redhat.com>
2590
2591 PR gdb/17072
2592 * main.c: Include event-top.h.
2593 (handle_command_errors): New function.
2594 (catch_command_errors, catch_command_errors_const): Use it.
2595
9d1e69a2
PA
25962014-07-14 Pedro Alves <palves@redhat.com>
2597
2598 * exceptions.c (catch_command_errors, catch_command_errors_const):
2599 Moved to main.c.
2600 * exceptions.h (catch_command_errors_ftype)
2601 (catch_command_errors_const_ftype): Moved to main.c.
2602 (catch_command_errors, catch_command_errors_const): Delete
2603 declarations.
2604 * main.c (catch_command_errors_ftype)
2605 (catch_command_errors_const_ftype): Moved here from exceptions.h.
2606 (catch_command_errors, catch_command_errors_const)): Moved here
2607 from exceptions.c and make static.
2608
feefc97b
PA
26092014-07-14 Pedro Alves <palves@redhat.com>
2610
2611 * exceptions.c (print_any_exception): Delete.
2612 (catch_exceptions_with_msg): Use exception_print instead of
2613 print_any_exception.
2614 (catch_errors): Use exception_fprintf instead of
2615 print_any_exception.
2616 (catch_command_errors, catch_command_errors_const): Use
2617 exception_print instead of print_any_exception.
2618
c933f875
PA
26192014-07-14 Pedro Alves <palves@redhat.com>
2620
2621 * infcall.c (run_inferior_call): Set 'sync_execution' while
2622 running the inferior call.
2623
feb6f816
PA
26242014-07-14 Pedro Alves <palves@redhat.com>
2625
2626 * value.c (value_contents_equal): Delete function.
2627 * value.h (value_contents_equal): Delete declaration.
2628
d98b7a16
TT
26292014-07-14 Tom Tromey <tromey@redhat.com>
2630
2631 PR exp/17106:
2632 * gdbtypes.c (is_dynamic_type_internal): New function, from
2633 is_dynamic_type.
2634 (is_dynamic_type): Rewrite.
2635 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
2636 (resolve_dynamic_struct): Likewise.
2637 (resolve_dynamic_type_internal): New function, from
2638 resolve_dynamic_type.
2639 (resolve_dynamic_type): Rewrite.
2640
548740d6
TT
26412014-07-14 Tom Tromey <tromey@redhat.com>
2642
2643 * target.c (target_require_runnable): Also check record_stratum.
2644 Update comment.
2645
808f7ab1
YQ
26462014-07-11 Yao Qi <yao@codesourcery.com>
2647
2648 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
2649 thumb_instruction_restores_sp return true.
2650
540314bd
YQ
26512014-07-11 Yao Qi <yao@codesourcery.com>
2652
2653 * arm-tdep.c (thumb_instruction_restores_sp): New function.
2654 (thumb_in_function_epilogue_p): Call
2655 thumb_instruction_restores_sp.
2656
1db01f22
YQ
26572014-07-11 Yao Qi <yao@codesourcery.com>
2658
2659 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
2660 'add sp, #imm'.
2661 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
2662
3116063b
GB
26632014-07-11 Gary Benson <gbenson@redhat.com>
2664
2665 * amd64-linux-nat.c (gdbcore.h): Remove include.
2666 (regset.h): Likewise.
2667 (nat/linux-btrace.h): Likewise.
2668 (btrace.h): Likewise.
2669 (gdb_assert.h): Likewise.
2670 (string.h): Likewise.
2671 (sys/uio.h): Likewise.
2672 (sys/debugreg.h): Likewise.
2673 (sys/syscall.h): Likewise.
2674 (sys/procfs.h): Likewise.
2675 (sys/user.h): Likewise.
2676 (asm/ptrace.h): Likewise.
2677 (i386-nat.h): Likewise.
2678 * i386-linux-nat.c (i386-nat.h): Likewise.
2679 (regset.h): Likewise.
2680 (target.h): Likewise.
2681 (linux-nat.h): Likewise.
2682 (nat/linux-btrace.h): Likewise.
2683 (btrace.h): Likewise.
2684 (gdb_assert.h): Likewise.
2685 (string.h): Likewise.
2686 (sys/uio.h): Likewise.
2687 (sys/user.h): Likewise.
2688 (sys/procfs.h): Likewise.
2689 (sys/reg.h): Likewise.
2690 (sys/debugreg.h): Likewise.
2691 (ORIG_EAX): Remove definition.
2692
040baaf6
GB
26932014-07-11 Gary Benson <gbenson@redhat.com>
2694
2695 * i386-linux-nat.h: New file.
2696 * x86-linux-nat.h: Likewise.
2697 * x86-linux-nat.c: Likewise.
2698 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
2699 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
2700 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2701 * amd64-linux-nat.c (x86-linux-nat.h): New include.
2702 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2703 (PTRACE_SETREGSET): Likewise.
2704 (arch_lwp_info): Now in x86-linux-nat.c.
2705 (have_ptrace_getregset): Now in x86-linux-nat.h.
2706 (x86_linux_dr_get): Now in x86-linux-nat.c.
2707 (x86_linux_dr_set): Likewise.
2708 (x86_linux_dr_get_addr): Likewise.
2709 (x86_linux_dr_get_control): Likewise.
2710 (x86_linux_dr_get_status): Likewise.
2711 (update_debug_registers_callback): Likewise.
2712 (x86_linux_dr_set_control): Likewise.
2713 (x86_linux_dr_set_addr): Likewise.
2714 (x86_linux_prepare_to_resume): Likewise.
2715 (x86_linux_new_thread): Likewise.
2716 (x86_linux_new_fork): Likewise.
2717 (x86_linux_get_thread_area): Likewise.
2718 (super_post_startup_inferior): Likewise.
2719 (x86_linux_child_post_startup_inferior): Likewise.
2720 (AMD64_LINUX_USER64_CS): Likewise.
2721 (AMD64_LINUX_X32_DS): Likewise.
2722 (x86_linux_read_description): Likewise.
2723 (x86_linux_enable_btrace): Likewise.
2724 (x86_linux_disable_btrace): Likewise.
2725 (x86_linux_teardown_btrace): Likewise.
2726 (x86_linux_read_btrace): Likewise.
2727 (x86_linux_create_target): Likewise.
2728 (x86_linux_add_target): Likewise.
2729 * i386-linux-nat.c (x86-linux-nat.h): New include.
2730 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2731 (PTRACE_SETREGSET): Likewise.
2732 (arch_lwp_info): Now in x86-linux-nat.c.
2733 (have_ptrace_getregset): Now in x86-linux-nat.h.
2734 (x86_linux_dr_get): Now in x86-linux-nat.c.
2735 (x86_linux_dr_set): Likewise.
2736 (x86_linux_dr_get_addr): Likewise.
2737 (x86_linux_dr_get_control): Likewise.
2738 (x86_linux_dr_get_status): Likewise.
2739 (update_debug_registers_callback): Likewise.
2740 (x86_linux_dr_set_control): Likewise.
2741 (x86_linux_dr_set_addr): Likewise.
2742 (x86_linux_prepare_to_resume): Likewise.
2743 (x86_linux_new_thread): Likewise.
2744 (x86_linux_new_fork): Likewise.
2745 (x86_linux_get_thread_area): Likewise.
2746 (super_post_startup_inferior): Likewise.
2747 (x86_linux_child_post_startup_inferior): Likewise.
2748 (AMD64_LINUX_USER64_CS): Likewise.
2749 (AMD64_LINUX_X32_DS): Likewise.
2750 (x86_linux_read_description): Likewise.
2751 (x86_linux_enable_btrace): Likewise.
2752 (x86_linux_disable_btrace): Likewise.
2753 (x86_linux_teardown_btrace): Likewise.
2754 (x86_linux_read_btrace): Likewise.
2755 (x86_linux_create_target): Likewise.
2756 (x86_linux_add_target): Likewise.
2757
1aa7e42c
GB
27582014-07-11 Gary Benson <gbenson@redhat.com>
2759
2760 * amd64-linux-nat.c: Comment and whitespace changes.
2761 * i386-linux-nat.c: Comment and whitespace changes.
2762
c1e246a0
GB
27632014-07-11 Gary Benson <gbenson@redhat.com>
2764
2765 * amd64-linux-nat.c (x86_linux_create_target): New function.
2766 (x86_linux_add_target): Likewise.
2767 (_initialize_amd64_linux_nat): Delegate to the above new functions.
2768 * i386-linux-nat.c (x86_linux_create_target): New function.
2769 (x86_linux_add_target): Likewise.
2770 (_initialize_i386_linux_nat): Delegate to the above new functions.
2771
8c420b8d
GB
27722014-07-11 Gary Benson <gbenson@redhat.com>
2773
2774 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
2775 (ps_get_thread_area): Delegate to the above in 32-bit mode.
2776 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
2777 (ps_get_thread_area): Delegate to the above.
2778
cb1da100
GB
27792014-07-11 Gary Benson <gbenson@redhat.com>
2780
2781 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
2782 x86_linux_read_description. All uses updated. amd64-specific
2783 code conditionalized. Conditionalized i386-specific code added.
2784 Redundant cast removed.
2785 * i386-linux-nat.c (i386_linux_read_description): Renamed to
2786 x86_linux_read_description. All uses updated. i386-specific
2787 code conditionalized. Conditionalized amd64-specific code added.
2788 One sizeof replaced with the actual type it is describing.
2789
2acf3cd0
GB
27902014-07-11 Gary Benson <gbenson@redhat.com>
2791
2792 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
2793 x86_linux_dr_get. All uses updated.
2794 (amd64_linux_dr_set): Renamed to
2795 x86_linux_dr_set. All uses updated.
2796 (amd64_linux_dr_get_addr): Renamed to
2797 x86_linux_dr_get_addr. All uses updated.
2798 (amd64_linux_dr_get_control): Renamed to
2799 x86_linux_dr_get_control. All uses updated.
2800 (amd64_linux_dr_get_status): Renamed to
2801 x86_linux_dr_get_status. All uses updated.
2802 (amd64_linux_dr_set_control): Renamed to
2803 x86_linux_dr_set_control. All uses updated.
2804 (amd64_linux_dr_set_addr): Renamed to
2805 x86_linux_dr_set_addr. All uses updated.
2806 (amd64_linux_prepare_to_resume): Renamed to
2807 x86_linux_prepare_to_resume. All uses updated.
2808 (amd64_linux_new_thread): Renamed to
2809 x86_linux_new_thread. All uses updated.
2810 (amd64_linux_new_fork): Renamed to
2811 x86_linux_new_fork. All uses updated.
2812 (amd64_linux_child_post_startup_inferior): Renamed to
2813 x86_linux_child_post_startup_inferior. All uses updated.
2814 (amd64_linux_enable_btrace): Renamed to
2815 x86_linux_enable_btrace. All uses updated.
2816 (amd64_linux_disable_btrace): Renamed to
2817 x86_linux_disable_btrace. All uses updated.
2818 (amd64_linux_teardown_btrace): Renamed to
2819 x86_linux_teardown_btrace. All uses updated.
2820 (amd64_linux_read_btrace): Renamed to
2821 x86_linux_read_btrace. All uses updated.
2822 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
2823 x86_linux_dr_get. All uses updated.
2824 (i386_linux_dr_set): Renamed to
2825 x86_linux_dr_set. All uses updated.
2826 (i386_linux_dr_get_addr): Renamed to
2827 x86_linux_dr_get_addr. All uses updated.
2828 (i386_linux_dr_get_control): Renamed to
2829 x86_linux_dr_get_control. All uses updated.
2830 (i386_linux_dr_get_status): Renamed to
2831 x86_linux_dr_get_status. All uses updated.
2832 (i386_linux_dr_set_control): Renamed to
2833 x86_linux_dr_set_control. All uses updated.
2834 (i386_linux_dr_set_addr): Renamed to
2835 x86_linux_dr_set_addr. All uses updated.
2836 (i386_linux_prepare_to_resume): Renamed to
2837 x86_linux_prepare_to_resume. All uses updated.
2838 (i386_linux_new_thread): Renamed to
2839 x86_linux_new_thread. All uses updated.
2840 (i386_linux_new_fork): Renamed to
2841 x86_linux_new_fork. All uses updated.
2842 (i386_linux_child_post_startup_inferior): Renamed to
2843 x86_linux_child_post_startup_inferior. All uses updated.
2844 (i386_linux_enable_btrace): Renamed to
2845 x86_linux_enable_btrace. All uses updated.
2846 (i386_linux_disable_btrace): Renamed to
2847 x86_linux_disable_btrace. All uses updated.
2848 (i386_linux_teardown_btrace): Renamed to
2849 x86_linux_teardown_btrace. All uses updated.
2850 (i386_linux_read_btrace): Renamed to
2851 x86_linux_read_btrace. All uses updated.
2852
b9c1d481
AS
28532014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
2854
2855 * remote.c (extended_remote_post_attach): New function.
2856 (init_extended_remote_ops): Install it as to_post_attach method.
2857
7180e04a
PA
28582014-07-09 Pedro Alves <palves@redhat.com>
2859
2860 * infcmd.c (attach_command_post_wait): Don't call
2861 target_terminal_inferior here.
2862 (attach_command): Call it here instead.
2863
9a9a7608
AB
28642014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
2865
2866 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
2867 field.
2868 * c-varobj.c (c_is_path_expr_parent): New function, moved core
2869 from varobj.c, with additional checks.
2870 (c_varobj_ops): Fill in is_path_expr_parent field.
2871 (cplus_varobj_ops): Fill in is_path_expr_parent field.
2872 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
2873 field.
2874 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
2875 ops method.
2876 (varobj_default_is_path_expr_parent): New function.
2877 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
2878 (varobj_default_is_path_expr_parent): Declare new function.
2879
1f267ae3
MM
28802014-07-08 Markus Metzger <markus.t.metzger@intel.com>
2881
2882 * infcmd.c (finish_backward): Turn internal error into normal error.
2883
b2ee242b
PA
28842014-07-07 Pedro Alves <palves@redhat.com>
2885
8a869bca 2886 PR gdb/17096
b2ee242b
PA
2887 * remote.c (async_handle_remote_sigint)
2888 (async_handle_remote_sigint_twice): Call
2889 gdb_call_async_signal_handler instead of
2890 mark_async_signal_handler.
2891
38e229b2
TT
28922014-07-07 Tom Tromey <tromey@redhat.com>
2893
2894 * target-delegates.c: Rebuild.
2895 * target.c (target_info_record): Remove.
2896 * record.c (info_record_command): Unconditionally call
2897 to_info_record.
2898 * target.h (struct target_ops) <to_info_record>: Use
2899 TARGET_DEFAULT_IGNORE.
2900 (target_info_record): Remove.
2901
f0f9ff95
TT
29022014-07-07 Tom Tromey <tromey@redhat.com>
2903
2904 * target.h (struct target_ops) <to_get_thread_local_address>: Use
2905 TARGET_DEFAULT_NORETURN.
2906 * target.c (generic_tls_error): New function.
2907 (target_translate_tls_address): Don't search target stack.
2908 * target-delegates.c: Rebuild.
2909 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
2910 stack.
2911 * linux-thread-db.c (thread_db_get_thread_local_address):
2912 Unconditionally call beneath target.
2913
4a5be5ee
MK
29142014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
2915
2916 * cli/cli-logging.c (pop_output_files): Assign targerr to
2917 gdb_stdtargerr.
2918
92c3b204
AB
29192014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
2920
2921 * MAINTAINERS (Write After Approval): Update my email address.
2922
9b11e3a7
GB
29232014-07-02 Gary Benson <gbenson@redhat.com>
2924
2925 * proc-service.c (ps_xfer_memory): Update comment.
2926 (ps_pstop): Remove unused function.
2927 (ps_pcontinue): Likewise.
2928 (ps_lstop): Likewise.
2929 (ps_lcontinue): Likewise.
2930 (ps_lgetxregsize): Likewise.
2931 (ps_lgetxregs): Likewise.
2932 (ps_lsetxregs): Likewise.
2933 (ps_plog): Likewise.
2934 (ps_ptread): Likewise.
2935 (ps_ptwrite): Likewise.
2936
cf363f18
MW
29372014-07-01 Mark Wielaard <mjw@redhat.com>
2938
2939 * dwarf2read.c (add_array_cv_type): New function.
2940 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
2941 (read_tag_volatile_type): Likewise.
2942
82ae6c8d
TT
29432014-07-01 Tom Tromey <tromey@redhat.com>
2944
2945 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
2946 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
2947 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
2948 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
2949 * command.h (cmd_cfunc_ftype): Move earlier.
2950 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
2951 (add_com, add_info): Use cmd_cfunc_ftype.
2952
96142726
TT
29532014-06-30 Tom Tromey <tromey@redhat.com>
2954
2955 * symtab.c (operator_chars): Make parameters and return type
2956 const.
2957 (file_matches): Make "files" const.
2958 (struct search_symbols_data) <files>: Now const.
2959 (search_symbols): Make "regexp" and "files" parameters const.
2960 Update.
2961 (symtab_symbol_info): Remove cast.
2962 (rbreak_command): Update.
2963 * symtab.h (search_symbols): Update.
2964
b67a2c6f
YQ
29652014-06-27 Yao Qi <yao@codesourcery.com>
2966
2967 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
2968 Change parameter type to 'struct thread_info *'. Caller
2969 updated.
2970 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
2971 Update declaration.
2972 * dummy-frame.c (struct dummy_frame_id): New.
2973 (dummy_frame_id_eq): New function.
2974 (struct dummy_frame) <id>: Change its type to 'struct
2975 dummy_frame_id'.
2976 (dummy_frame_push): Add parameter ptid and save it in
2977 dummy_frame_id.
2978 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
2979 inferior_ptid.
2980 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
2981 to inferior_ptid.
2982 (lookup_dummy_frame): Change parameter type to 'struct
2983 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
2984 instead of frame_id_eq.
2985 (dummy_frame_pop): Add parameter ptid. Callers updated.
2986 Update comments. Compose dummy_frame_id and pass it to
2987 lookup_dummy_frame.
2988 (dummy_frame_discard): Add parameter ptid.
2989 (dummy_frame_sniffer): Compose dummy_frame_id and call
2990 dummy_frame_id_eq instead of frame_id_eq.
2991 (fprint_dummy_frames): Print ptid.
2992 * dummy-frame.h: Remove comments.
2993 (dummy_frame_push): Add ptid in declaration.
2994 (dummy_frame_pop, dummy_frame_discard): Likewise.
2995
5b10184c
TT
29962014-06-26 Tom Tromey <tromey@redhat.com>
2997
2998 * cli/cli-cmds.c (error_no_arg): Make "why" const.
2999 * command.h (error_no_arg): Update.
3000
06900326
TT
30012014-06-26 Tom Tromey <tromey@redhat.com>
3002
3003 * cli/cli-setshow.c (do_set_command): Make "arg" const.
3004 (do_show_command): Make "arg" const.
3005 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
3006
c2bcbb1d
TT
30072014-06-26 Tom Tromey <tromey@redhat.com>
3008
3009 * record-full.c (record_full_get_bookmark): Make "args" const.
3010 (record_full_goto_bookmark): Make "raw_bookmark" const.
3011 * record.c (record_goto): New function.
3012 (cmd_record_goto): Use it. Now static.
3013 * record.h (record_goto): Declare.
3014 (cmd_record_goto): Remove declaration.
3015 * target-delegates.c: Rebuild.
3016 * target.h (struct target_ops) <to_get_bookmark,
3017 to_goto_bookmark>: Make parameter const.
3018
9cbe5fff
TT
30192014-06-26 Tom Tromey <tromey@redhat.com>
3020
3021 * defs.h (generic_load): Update.
3022 * m32r-rom.c (m32r_load_gen): Make "filename" const.
3023 * monitor.c (monitor_load): Make "args" const.
3024 * remote-m32r-sdi.c (m32r_load): Make "args" const.
3025 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
3026 const.
3027 (mips_load): Make "file" const.
3028 * remote-sim.c (gdbsim_load): Make "args" const.
3029 * remote.c (remote_load): Make "name" const.
3030 * symfile.c (generic_load): Make "args" const.
3031 * target-delegates.c: Rebuild.
3032 * target.c (target_load): Make "arg" const.
3033 (debug_to_load): Make "args" const.
3034 * target.h (struct target_ops) <to_load>: Make parameter const.
3035 (target_load): Update.
3036
34a68019
TT
30372014-06-26 Tom Tromey <tromey@redhat.com>
3038
3039 PR symtab/16902:
3040 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
3041 (dwarf2_physname, read_partial_die)
3042 (guess_partial_die_structure_name, fixup_partial_die)
3043 (guess_full_die_structure_name, anonymous_struct_prefix)
3044 (dwarf2_name): Use per-BFD obstack.
3045
efc889c1
YQ
30462014-06-26 Yao Qi <yao@codesourcery.com>
3047
3048 * dummy-frame.c (dummy_frame_sniffer): Move local variables
3049 dummyframe and this_id into inner block below.
3050
4395285e
YQ
30512014-06-26 Yao Qi <yao@codesourcery.com>
3052
3053 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
3054 with "signal_pass[0]" in the initialization of signal_pass.
3055
aef92902
MM
30562014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3057
3058 * record-btrace.c (record_btrace_generating_corefile)
3059 (record_btrace_prepare_to_generate_core)
3060 (record_btrace_done_generating_core): New.
3061 (record_btrace_xfer_partial, record_btrace_fetch_registers)
3062 (record_btrace_store_registers, record_btrace_prepare_to_store):
3063 Forward request when generating a core file.
3064 (record_btrace_open): Set record_btrace_generating_corefile to zero.
3065 (init_record_btrace_ops): Set to_prepare_to_generate_core and
3066 to_done_generating_core.
3067
5fff78c4
MM
30682014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3069
3070 * target.h (target_ops) <to_prepare_to_generate_core>
3071 <to_done_generating_core>: New.
3072 (target_prepare_to_generate_core, target_done_generating_core): New.
3073 * target.c (target_prepare_to_generate_core)
3074 (target_done_generating_core): New.
3075 * target-delegates.c: Regenerate.
3076 * gcore.c: (write_gcore_file): Rename to ...
3077 (write_gcore_file_1): ...this.
3078 (write_gcore_file): Call target_prepare_to_generate_core
3079 and target_done_generating_core.
3080
1d1f1ccb
MM
30812014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3082
3083 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
3084 * gcore.c (write_gcore_file): Free memory returned from
3085 make_corefile_notes.
3086 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
3087 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
3088
3343ef86
YQ
30892014-06-24 Yao Qi <yao@codesourcery.com>
3090
3091 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
3092 (arm_linux_init_abi): Set skip_trampoline_code with
3093 gdbarch_skip_trampoline_code instead of
3094 find_solib_trampoline_target.
3095
18d18ac8
YQ
30962014-06-24 Yao Qi <yao@codesourcery.com>
3097
3098 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
3099 arm_skip_bx_reg returns non-zero.
3100
80d8d390
YQ
31012014-06-24 Yao Qi <yao@codesourcery.com>
3102
3103 * arm-tdep.c (arm_skip_bx_reg): New function.
3104 (arm_skip_stub): Call arm_skip_bx_reg.
3105
6a18a01c
DB
31062014-06-23 Don Breazeal <donb@codesourcery.com>
3107
3108 * MAINTAINERS: Add myself as write-after-approval maintainer.
3109
8e9db26e
PA
31102014-06-23 Pedro Alves <palves@redhat.com>
3111
3112 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
3113 DR_CONTROL before setting DR0..DR3.
3114 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
3115 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
3116 bits of DR_CONTROL related to the debug register slot being
3117 disabled. If all slots are vacant, clear local slowdown as well,
3118 and assert DR_CONTROL is 0.
3119
70afc5b7
SC
31202014-06-23 Siva Chandra Reddy <sivachandra@google.com>
3121
3122 * python/lib/gdb/command/xmethods.py
3123 (get_method_matchers_in_loci): Lookup xmethod matchers in the
3124 current progspace only if the string "progspace" matches LOCUS_RE.
3125
840ed64d
JK
31262014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3127
3128 Fix --with-system-readline with readline-6.3 patch 5.
3129 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
3130 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
3131 types.
3132
26f2dc30
TT
31332014-06-20 Tom Tromey <tromey@redhat.com>
3134
3135 * dwarf2read.c (dw2_get_real_path): Use correct type in
3136 OBSTACK_CALLOC.
3137 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
3138
125f8a3d
GB
31392014-06-20 Gary Benson <gbenson@redhat.com>
3140
3141 * common/gdb_thread_db.h: Moved to nat. All includes updated.
3142 * common/glibc_thread_db.h: Likewise.
3143 * common/i386-cpuid.h: Likewise.
3144 * common/i386-gcc-cpuid.h: Likewise.
3145 * common/linux-btrace.h: Likewise.
3146 * common/linux-osdata.h: Likewise.
3147 * common/linux-procfs.h: Likewise.
3148 * common/linux-ptrace.h: Likewise.
3149 * common/mips-linux-watch.h: Likewise.
3150 * common/linux-btrace.c: Moved to nat.
3151 * common/linux-osdata.c: Likewise.
3152 * common/linux-procfs.c: Likewise.
3153 * common/linux-ptrace.c: Likewise.
3154 * common/mips-linux-watch.c: Likewise.
3155 * nat/gdb_thread_db.h: Moved from common.
3156 * nat/glibc_thread_db.h: Likewise.
3157 * nat/i386-cpuid.h: Likewise.
3158 * nat/i386-gcc-cpuid.h: Likewise.
3159 * nat/linux-btrace.c: Likewise.
3160 * nat/linux-btrace.h: Likewise.
3161 * nat/linux-osdata.c: Likewise.
3162 * nat/linux-osdata.h: Likewise.
3163 * nat/linux-procfs.c: Likewise.
3164 * nat/linux-procfs.h: Likewise.
3165 * nat/linux-ptrace.c: Likewise.
3166 * nat/linux-ptrace.h: Likewise.
3167 * nat/mips-linux-watch.c: Likewise.
3168 * nat/mips-linux-watch.h: Likewise.
3169 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
3170 (object file files): Reordered.
3171 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
3172 of glibc_thread_db.h.
3173
42995dbd
GB
31742014-06-20 Gary Benson <gbenson@redhat.com>
3175
3176 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
3177 (i386_dr_low_type): Moved to nat/i386-dregs.h.
3178 (i386_dr_low): Likewise.
3179 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
3180 (i386_dr_low_set_addr): Likewise.
3181 (i386_dr_low_get_addr): Likewise.
3182 (i386_dr_low_can_set_control): Likewise.
3183 (i386_dr_low_set_control): Likewise.
3184 (i386_dr_low_get_control): Likewise.
3185 (i386_dr_low_get_status): Likewise.
3186 (i386_get_debug_register_length): Likewise.
3187 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
3188 (i386_dr_low): Likewise.
3189 * nat/i386-dregs.c (i386-low.h): Remove include.
3190 (i386-nat.h): Likewise.
3191 (nat/i386-dregs.h): New include.
3192 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
3193 (i386_dr_low_set_addr): Likewise.
3194 (i386_dr_low_get_addr): Likewise.
3195 (i386_dr_low_can_set_control): Likewise.
3196 (i386_dr_low_set_control): Likewise.
3197 (i386_dr_low_get_control): Likewise.
3198 (i386_dr_low_get_status): Likewise.
3199 (i386_get_debug_register_length): Likewise.
3200 (debug_hw_points): Likewise.
3201
3ed9baed
IB
32022014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
3203
3204 * Makefile.in (SFILES): Add d-exp.y.
3205 (YYFILES): Add d-exp.c.
3206 (YYOBJ): Add d-exp.o.
3207 (local-maintainer-clean): Delete d-exp.c.
3208 * d-exp.y: New file.
3209 * d-lang.h (d_parse): New declaration.
3210 (d_error): New declaration.
3211 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
3212 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
3213 PREC_ORDER operators.
3214 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
3215
78c164b0
YQ
32162014-06-19 Yao Qi <yao@codesourcery.com>
3217
3218 * gdbthread.h (any_running): Remove the declaration.
3219 * thread.c (any_running): Remove.
3220
f6e29b6e
YQ
32212014-06-19 Yao Qi <yao@codesourcery.com>
3222
3223 * gdbthread.h (struct thread_info) <state>: Change its type to
3224 'enum thread_state'. Update comments.
3225
034f788c
PA
32262014-06-19 Pedro Alves <palves@redhat.com>
3227
3228 * gdbthread.h (ALL_THREADS): Delete.
3229 (ALL_NON_EXITED_THREADS): New macro.
3230 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
3231 instead of ALL_THREADS.
3232 * infrun.c (find_thread_needs_step_over)
3233 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
3234 instead of ALL_THREADS.
3235 * record-btrace.c (record_btrace_open)
3236 (record_btrace_stop_recording, record_btrace_close)
3237 (record_btrace_is_replaying, record_btrace_resume)
3238 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
3239 * remote.c (append_pending_thread_resumptions): Likewise.
3240 * thread.c (thread_apply_all_command): Likewise.
3241
46e33252
GB
32422014-06-19 Gary Benson <gbenson@redhat.com>
3243
3244 * i386-nat.c (i386_stopped_by_watchpoint):
3245 Use i386_dr_stopped_by_watchpoint.
3246 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
3247 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
3248
3a8ee006
GB
32492014-06-19 Gary Benson <gbenson@redhat.com>
3250
3251 * nat/i386-dregs.c: New file.
3252 * Makefile.in (i386-dregs.o): New rule.
3253 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
3254 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
3255 * config/i386/darwin.mh (NATDEPFILES): Likewise.
3256 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
3257 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
3258 * config/i386/go32.mh (NATDEPFILES): Likewise.
3259 * config/i386/linux.mh (NATDEPFILES): Likewise.
3260 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3261 * config/i386/mingw.mh (NATDEPFILES): Likewise.
3262 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
3263 * i386-nat.h (debug_hw_points): New declaration.
3264 * i386-nat.c (breakpoint.h): Remove include.
3265 (command.h): Likewise.
3266 (target.h): Likewise.
3267 (gdb_assert.h): Likewise.
3268 (debug_hw_points): Made nonstatic.
3269 (debug_printf): Now in i386-dregs.c.
3270 (TARGET_HAS_DR_LEN_8): Likewise.
3271 (DR_CONTROL_SHIFT): Likewise.
3272 (DR_CONTROL_SIZE): Likewise.
3273 (DR_RW_EXECUTE): Likewise.
3274 (DR_RW_WRITE): Likewise.
3275 (DR_RW_READ): Likewise.
3276 (DR_RW_IORW): Likewise.
3277 (DR_LEN_1): Likewise.
3278 (DR_LEN_2): Likewise.
3279 (DR_LEN_4): Likewise.
3280 (DR_LEN_8): Likewise.
3281 (DR_LOCAL_ENABLE_SHIFT): Likewise.
3282 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
3283 (DR_ENABLE_SIZE): Likewise.
3284 (DR_LOCAL_SLOWDOWN): Likewise.
3285 (DR_GLOBAL_SLOWDOWN): Likewise.
3286 (DR_CONTROL_RESERVED): Likewise.
3287 (I386_DR_CONTROL_MASK): Likewise.
3288 (I386_DR_VACANT): Likewise.
3289 (I386_DR_LOCAL_ENABLE): Likewise.
3290 (I386_DR_GLOBAL_ENABLE): Likewise.
3291 (I386_DR_DISABLE): Likewise.
3292 (I386_DR_SET_RW_LEN): Likewise.
3293 (I386_DR_GET_RW_LEN): Likewise.
3294 (I386_DR_WATCH_HIT): Likewise.
3295 (i386_wp_op_t): Likewise.
3296 (i386_show_dr): Likewise.
3297 (i386_length_and_rw_bits): Likewise.
3298 (i386_insert_aligned_watchpoint): Likewise.
3299 (i386_remove_aligned_watchpoint): Likewise.
3300 (i386_handle_nonaligned_watchpoint): Likewise.
3301 (i386_update_inferior_debug_regs): Likewise.
3302 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
3303 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
3304 (i386_region_ok_for_watchpoint):
3305 Use i386_dr_region_ok_for_watchpoint.
3306 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
3307
322a8e06
GB
33082014-06-19 Gary Benson <gbenson@redhat.com>
3309
3310 * i386-nat.c (i386_insert_hw_breakpoint): Use
3311 i386_insert_watchpoint.
3312 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
3313
8f26655c
GB
33142014-06-19 Gary Benson <gbenson@redhat.com>
3315
3316 * i386-nat.c (i386_dr_show): Renamed to
3317 i386_show_dr and made static. All uses updated.
3318 (i386_dr_length_and_rw_bits): Renamed to
3319 i386_length_and_rw_bits and made static.
3320 All uses updated.
3321 (i386_dr_insert_aligned_watchpoint): Renamed to
3322 i386_insert_aligned_watchpoint and made static.
3323 All uses updated.
3324 (i386_dr_remove_aligned_watchpoint): Renamed to
3325 i386_remove_aligned_watchpoint and made static.
3326 All uses updated.
3327 (i386_dr_update_inferior_debug_regs): Renamed to
3328 i386_update_inferior_debug_regs and made static.
3329 All uses updated.
3330 * nat/i386-dregs.h (i386_dr_show): Removed.
3331 (i386_dr_length_and_rw_bits): Likewise.
3332 (i386_dr_insert_aligned_watchpoint): Likewise.
3333 (i386_dr_remove_aligned_watchpoint): Likewise.
3334 (i386_dr_update_inferior_debug_regs): Likewise.
3335
992c7d70
GB
33362014-06-19 Gary Benson <gbenson@redhat.com>
3337
3338 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
3339 * configure: Regenerate.
3340 * config.in: Likewise.
3341 * main.c (signal.h): New include.
3342 (setup_alternate_signal_stack): New function.
3343 (captured_main): Call the above.
3344 * cp-support.c (signal.h): New include.
3345 (catch_demangler_crashes): New flag.
3346 (SIGJMP_BUF): New define.
3347 (SIGSETJMP): Likewise.
3348 (SIGLONGJMP): Likewise.
3349 (gdb_demangle_jmp_buf): New static global.
3350 (gdb_demangle_attempt_core_dump): Likewise.
3351 (gdb_demangle_signal_handler): New function.
3352 (gdb_demangle): If catch_demangler_crashes is set, install the
3353 above signal handler before calling bfd_demangle, and restore
3354 the original signal handler afterwards. Display the offending
3355 symbol and call demangler_warning the first time a segmentation
3356 fault is caught.
3357 (_initialize_cp_support): New maint set/show command.
3358
eae7090b
GB
33592014-06-19 Gary Benson <gbenson@redhat.com>
3360
3361 * utils.h (resource_limit_kind): New enum.
3362 (can_dump_core): New declaration.
3363 (warn_cant_dump_core): Likewise.
3364 (dump_core): Likewise.
3365 * utils.c (dump_core): Made nonstatic. Added new
3366 parameter "limit_kind".
3367 (can_dump_core): Made nonstatic. Moved printing code to...
3368 (warn_cant_dump_core): New function.
3369 (can_dump_core_warn): Likewise.
3370 (internal_vproblem): Replace calls to can_dump_core with
3371 calls to can_dump_core_warn. Supply new argument to each.
3372
57fcfb1b
GB
33732014-06-19 Gary Benson <gbenson@redhat.com>
3374
3375 * utils.h (demangler_vwarning): New declaration.
3376 (demangler_warning): Likewise.
3377 * utils.c (struct internal_problem)
3378 <user_settable_should_quit>: New field.
3379 <user_settable_should_dump_core>: Likewise
3380 (internal_error_problem): Add values for above new fields.
3381 (internal_warning_problem): Likewise.
3382 (demangler_warning_problem): New static global.
3383 (demangler_vwarning): New function.
3384 (demangler_warning): Likewise.
3385 (add_internal_problem_command): Selectively add commands.
3386 (_initialize_utils): New internal problem command.
3387 * maint.c (maintenance_demangler_warning): New function.
3388 (_initialize_maint_cmds): New command.
3389
17a40b44
TT
33902014-06-18 Tom Tromey <tromey@redhat.com>
3391
3392 * f-valprint.c (info_common_command_for_block): Update.
3393 * symtab.h (struct general_symbol_info) <common_block>: Now
3394 const.
3395
346d1dfe
TT
33962014-06-18 Tom Tromey <tromey@redhat.com>
3397
3398 * symtab.h (struct symtab) <blockvector>: Now const.
3399 * ada-lang.c (ada_add_global_exceptions): Update.
3400 * buildsym.c (augment_type_symtab): Update.
3401 * dwarf2read.c (dw2_lookup_symbol): Update.
3402 * jit.c (finalize_symtab): Update.
3403 * jv-lang.c (add_class_symtab_symbol): Update.
3404 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
3405 Update.
3406 * objfiles.c (objfile_relocate1): Update.
3407 * psymtab.c (lookup_symbol_aux_psymtabs)
3408 (maintenance_check_psymtabs): Update.
3409 * python/py-symtab.c (stpy_global_block, stpy_static_block):
3410 Update.
3411 * spu-tdep.c (spu_catch_start): Update.
3412 * symmisc.c (dump_symtab_1): Update.
3413 * symtab.c (lookup_global_symbol_from_objfile)
3414 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
3415 (basic_lookup_transparent_type_quick)
3416 (basic_lookup_transparent_type, find_pc_sect_symtab)
3417 (find_pc_sect_line, search_symbols): Update.
3418 * block.c (find_block_in_blockvector): Make "bl" const.
3419 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
3420 const.
3421 (blockvector_contains_pc): Make "bv" const.
3422 (block_for_pc_sect): Update.
3423 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3424 (blockvector_contains_pc): Update.
3425 * breakpoint.c (resolve_sal_pc): Update.
3426 * inline-frame.c (block_starting_point_at): Update.
3427
1834676b
TT
34282014-06-18 Tom Tromey <tromey@redhat.com>
3429
3430 * completer.c (complete_line): Make "line_buffer" const.
3431 * completer.h (complete_line): Update.
3432
ac1a991b
TT
34332014-06-18 Tom Tromey <tromey@redhat.com>
3434
3435 * symtab.c (add_macro_name): Remove unneeded cast.
3436
5bc98e52
TT
34372014-06-18 Tom Tromey <tromey@redhat.com>
3438
3439 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
3440 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
3441
8236def8
TT
34422014-06-18 Tom Tromey <tromey@redhat.com>
3443
3444 * probe.c (info_probes_for_ops): Make "arg" const.
3445 * probe.h (info_probes_for_ops): Update.
3446
3977b71f
TT
34472014-06-18 Tom Tromey <tromey@redhat.com>
3448
3449 * varobj.c (varobj_create): Update.
3450 * valops.c (value_of_this): Update.
3451 * tracepoint.c (add_local_symbols, scope_info): Update.
3452 * symtab.h (struct general_symbol_info) <block>: Now const.
3453 * symtab.c (skip_prologue_sal)
3454 (default_make_symbol_completion_list_break_on)
3455 (skip_prologue_using_sal): Update.
3456 * stack.h (iterate_over_block_locals)
3457 (iterate_over_block_local_vars): Update.
3458 * stack.c (print_frame_args): Update.
3459 (iterate_over_block_locals, iterate_over_block_local_vars): Make
3460 parameter const.
3461 (get_selected_block): Make return type const.
3462 * python/py-frame.c (frapy_block): Update.
3463 * python/py-block.c (gdbpy_block_for_pc): Update.
3464 * p-exp.y (%union) <bval>: Now const.
3465 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
3466 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
3467 * m2-exp.y (%union) <bval>: Now const.
3468 * linespec.c (get_current_search_block): Make return type const.
3469 (create_sals_line_offset, find_label_symbols): Update.
3470 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
3471 Update.
3472 (block_starting_point_at): Make "block" const.
3473 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
3474 (check_exception_resume): Update.
3475 * guile/scm-frame.c (gdbscm_frame_block): Update.
3476 * guile/scm-block.c (gdbscm_lookup_block): Update.
3477 * frame.h (get_frame_block): Update.
3478 (get_selected_block): Make return type const.
3479 * frame.c (frame_id_inner): Update.
3480 * f-valprint.c (info_common_command_for_block)
3481 (info_common_command): Update.
3482 * dwarf2loc.c (dwarf2_find_location_expression)
3483 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
3484 (locexpr_describe_location_piece): Update.
3485 * c-exp.y (%union) <bval>: Now const.
3486 * breakpoint.c (resolve_sal_pc): Update.
3487 * blockframe.c (get_frame_block):Make return type const.
3488 (get_pc_function_start, get_frame_function, find_pc_sect_function)
3489 (block_innermost_frame): Update.
3490 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3491 (block_for_pc, block_for_pc_sect): Update.
3492 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
3493 'pblock' const.
3494 (block_for_pc_sect, block_for_pc): Make return type const.
3495 * ax-gdb.c (gen_expr): Update.
3496 * alpha-mdebug-tdep.c (find_proc_desc): Update.
3497 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
3498 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
3499 (ada_read_var_value): Update.
3500 * ada-exp.y (struct name_info) <block>: Now const.
3501 (%union): Likewise.
3502 (block_lookup): Constify.
3503
b9228891
GB
35042014-06-18 Gary Benson <gbenson@redhat.com>
3505
3506 * nat/i386-dregs.h: New file.
3507 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
3508 * i386-nat.h (i386-dregs.h): New include.
3509 (DR_FIRSTADDR): Now in i386-dregs.h.
3510 (DR_LASTADDR): Likewise.
3511 (DR_NADDR): Likewise.
3512 (DR_STATUS): Likewise.
3513 (DR_CONTROL): Likewise.
3514 (i386_debug_reg_state): Likewise.
3515 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
3516
a1aa2221
LM
35172014-06-18 Don Breazeal <donb@codesourcery.com>
3518
3519 * breakpoint.c (set_longjmp_breakpoint): Call
3520 momentary_breakpoint_from_master with additional argument.
3521 (set_longjmp_breakpoint_for_call_dummy): Call
3522 momentary_breakpoint_from_master with additional argument.
3523 (set_std_terminate_breakpoint): Call
3524 momentary_breakpoint_from_master with additional argument.
3525 (momentary_breakpoint_from_master): Add argument to function
3526 definition and use it to initialize structure member flag.
74228e77 3527 (clone_momentary_breakpoint): Call
a1aa2221
LM
3528 momentary_breakpoint_from_master with additional argument.
3529 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
3530 member flags set in momentary_breakpoint_from_master.
3531
4be83cc2
GB
35322014-06-18 Gary Benson <gbenson@redhat.com>
3533
3534 * i386-nat.c (i386_show_dr): Renamed to
3535 i386_dr_show and made nonstatic. All uses updated.
3536 (i386_length_and_rw_bits): Renamed to
3537 i386_dr_length_and_rw_bits and made nonstatic.
3538 All uses updated.
3539 (i386_insert_aligned_watchpoint): Renamed to
3540 i386_dr_insert_aligned_watchpoint and made nonstatic.
3541 All uses updated.
3542 (i386_remove_aligned_watchpoint): Renamed to
3543 i386_dr_remove_aligned_watchpoint and made nonstatic.
3544 All uses updated.
3545 (i386_update_inferior_debug_regs): Renamed to
3546 i386_dr_update_inferior_debug_regs and made nonstatic.
3547 All uses updated.
3548
131aa0d4
GB
35492014-06-18 Gary Benson <gbenson@redhat.com>
3550
3551 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
3552 (i386_dr_low_can_set_control): Likewise.
3553 (i386_dr_low_set_addr): Likewise.
3554 (i386_dr_low_set_control): Likewise.
3555 (i386_dr_low_get_addr): Likewise.
3556 (i386_dr_low_get_status): Likewise.
3557 (i386_dr_low_get_control): Likewise.
3558 (i386_insert_aligned_watchpoint): Use new macros.
3559 (i386_update_inferior_debug_regs): Likewise.
3560 (i386_stopped_data_address): Likewise.
3561
d9305f7f
GB
35622014-06-18 Gary Benson <gbenson@redhat.com>
3563
3564 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
3565 New parameter. All uses updated.
3566
ea008da4
GB
35672014-06-18 Gary Benson <gbenson@redhat.com>
3568
3569 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
3570 All uses updated.
3571
1b6d4134
GB
35722014-06-18 Gary Benson <gbenson@redhat.com>
3573
3574 * i386-nat.c (debug_printf): New macro.
3575 (i386_get_debug_register_length): Likewise.
3576 (TARGET_HAS_DR_LEN_8): Use above macro.
3577 (i386_show_dr): Use debug_printf instead of puts_unfiltered
3578 and printf_unfiltered. Use phex to format values.
3579
9b4550ef
GB
35802014-06-18 Gary Benson <gbenson@redhat.com>
3581
3582 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
3583 Make const.
3584
6e62758f
GB
35852014-06-18 Gary Benson <gbenson@redhat.com>
3586
3587 * i386-nat.c: Comment changes.
3588
51c79e94
GB
35892014-06-18 Gary Benson <gbenson@redhat.com>
3590
3591 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
3592
3e11889a
GB
35932014-06-18 Gary Benson <gbenson@redhat.com>
3594
3595 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
3596 (i386_insert_aligned_watchpoint): Likewise.
3597 (i386_remove_aligned_watchpoint): Likewise.
3598 (i386_handle_nonaligned_watchpoint): Likewise.
3599
fc6e2f03
GB
36002014-06-18 Gary Benson <gbenson@redhat.com>
3601
3602 * i386-nat.c: Whitespace changes.
3603
2afe7d50
SB
36042014-06-17 Samuel Bronson <naesten@gmail.com>
3605
3606 * MAINTAINERS: Update Roland McGrath's email address.
3607 Thanks to Sergio Durigan Junior for pointing out that he left
6a83deea 3608 Red Hat a while ago, and giving me a current address.
2afe7d50 3609
3bca49ee
TT
36102014-06-17 Tom Tromey <tromey@redhat.com>
3611
3612 * utils.h (savestring): Remove declaration.
3613
6e366df1
TT
36142014-06-17 Tom Tromey <tromey@redhat.com>
3615
3616 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
3617
6be47f0c
KS
36182014-06-16 Keith Seitz <keiths@redhat.com>
3619
3620 PR mi/15863
3621 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
3622 to update the varobj if inferior_ptid is null_ptid.
3623
7bc112c1
TT
36242014-06-16 Tom Tromey <tromey@redhat.com>
3625
3626 * target.h (struct target_ops) <to_info_proc>: Make parameter
3627 const.
3628 (target_info_proc): Update.
3629 * target.c (target_info_proc): Make "args" const.
3630 * procfs.c (procfs_info_proc): Update.
3631 * linux-tdep.c (linux_info_proc): Update.
3632 (linux_core_info_proc_mappings): Make "args" const.
3633 (linux_core_info_proc): Update.
3634 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
3635 * gdbarch.c: Rebuild.
3636 * gdbarch.h: Rebuild.
3637 * corelow.c (core_info_proc): Update.
3638
fee354ee
TT
36392014-06-16 Tom Tromey <tromey@redhat.com>
3640
3641 * target.h (struct target_ops) <to_disconnect>: Make parameter
3642 const.
3643 (target_disconnect): Update.
3644 * target.c (target_disconnect): Make "args" const.
3645 * target-delegates.c: Rebuild.
3646 * remote.c (remote_disconnect): Update.
3647 * record.h (record_disconnect): Update.
3648 * record.c (record_disconnect): Update.
3649 * inf-child.c (inf_child_disconnect): Update.
3650
a30bf1f1
TT
36512014-06-16 Tom Tromey <tromey@redhat.com>
3652
3653 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
3654 * target.c (debug_to_rcmd, default_rcmd): Update.
3655 * target-delegates.c: Rebuild.
3656 * remote.c (remote_rcmd): Update.
3657 * monitor.c (monitor_rcmd): Update.
3658
d03de421
PA
36592014-06-16 Pedro Alves <palves@redhat.com>
3660
3661 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
3662 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
3663 have OBJF_SHARED set.
3664 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
3665 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
3666 instead of OBJF_USERLOADED.
3667 * objfiles.h (OBJF_SHARED): Update comment.
3668 (userloaded_objfile_contains_address_p): Rename to ...
3669 (shared_objfile_contains_address_p): ... this, and update
3670 comments.
3671 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
3672 new objfile.
3673 (remove_symbol_file_command): Skip objfiles that don't have
3674 OBJF_SHARED set.
3675
99f4262f
TT
36762014-06-16 Tom Tromey <tromey@redhat.com>
3677
3678 * minsyms.h (prim_record_minimal_symbol)
3679 (prim_record_minimal_symbol_and_info): Update comments.
3680
97d66cc6
EZ
36812014-06-14 Eli Zaretskii <eliz@gnu.org>
3682
3683 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
3684 or --without-guile, according to how GDB was built.
3685
635c7e8a
TT
36862014-06-13 Tom Tromey <tromey@redhat.com>
3687
3688 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
3689 to help_list.
3690 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
3691 to help_list.
3692 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
3693 help_list.
3694 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
3695 help_list.Pass all_commands, not -1, to help_list.
3696 * cli/cli-dump.c (dump_command, append_command)
3697 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
3698 (binary_dump_command, binary_append_command): Pass all_commands,
3699 not -1, to help_list.
3700 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
3701 -1, to help_list.
3702 * valprint.c (set_print, set_print_raw): Pass all_commands, not
3703 -1, to help_list.
3704 * typeprint.c (set_print_type): Pass all_commands, not -1, to
3705 help_list.
3706 * top.c (set_history): Pass all_commands, not -1, to help_list.
3707 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
3708 all_commands, not -1, to help_list.
3709 * symfile.c (overlay_command): Pass all_commands, not -1, to
3710 help_list.
3711 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
3712 help_list.
3713 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
3714 help_list.
3715 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
3716 -1, to help_list.
3717 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
3718 not -1, to help_list.
3719 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
3720 not -1, to help_list.
3721 * maint.c (maintenance_command, maintenance_info_command)
3722 (maintenance_print_command, maintenance_set_cmd): Pass
3723 all_commands, not -1, to help_list.
3724 * macrocmd.c (macro_command): Pass all_commands, not -1, to
3725 help_list.
3726 * language.c (set_check): Pass all_commands, not -1, to help_list.
3727 * infcmd.c (unset_command): Pass all_commands, not -1, to
3728 help_list.
3729 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
3730 help_list.
3731 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
3732 help_list.
3733 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
3734 help_list.
3735 * breakpoint.c (save_command): Pass all_commands, not -1, to
3736 help_list.
3737 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
3738 all_commands, not -1, to help_list.
3739
b94ade42
PL
37402014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
3741
3742 * regcache.c (struct register_to_invalidate): New structure.
3743 (do_register_invalidate, make_cleanup_regcache_invalidate): New
3744 functions.
3745 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
3746
31f628ae
YQ
37472014-06-12 Yao Qi <yao@codesourcery.com>
3748
3749 * varobj.c (varobj_get_num_children): Call
3750 varobj_is_dynamic_p.
3751 (varobj_list_children): Likewise.
3752 (varobj_update): Likewise. Update comments.
3753
cde5ef40
YQ
37542014-06-12 Yao Qi <yao@codesourcery.com>
3755
3756 * varobj.c (varobj_pretty_printed_p): Rename to ...
3757 (varobj_is_dynamic_p): ... this. New function.
3758 * varobj.h (varobj_pretty_printed_p): Remove declaration.
3759 (varobj_is_dynamic_p): Declare.
3760 * mi/mi-cmd-var.c (print_varobj): All callers updated.
3761 (mi_print_value_p, varobj_update_one): Likewise.
3762
576ea091
YQ
37632014-06-12 Pedro Alves <pedro@codesourcery.com>
3764 Yao Qi <yao@codesourcery.com>
3765
3766 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
3767 (varobj_get_iterator): Wrap up code for pretty-printer by
3768 "#if HAVE_PYTHON" and "#endif".
3769 (update_dynamic_varobj_children): Likewise.
3770
827f100c
YQ
37712014-06-12 Pedro Alves <pedro@codesourcery.com>
3772 Yao Qi <yao@codesourcery.com>
3773
3774 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
3775 gdb_python_initialized is false. Move some code from varobj.c.
3776 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
3777 * varobj.c: Move "varobj-iter.h" inclusion earlier.
3778 (struct varobj_item): Moved to varobj-iter.h".
3779 (varobj_clear_saved_item): New function.
3780 (update_dynamic_varobj_children): Move python-related code to
3781 py-varobj.c.
3782 (free_variable): Call varobj_clear_saved_item and
3783 varobj_iter_delete.
3784
e5250216
YQ
37852014-06-12 Pedro Alves <pedro@codesourcery.com>
3786 Yao Qi <yao@codesourcery.com>
3787
3788 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
3789 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
3790 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
3791 (py-varobj.o): New rule.
3792 * python/py-varobj.c: New file.
3793 * python/python-internal.h (py_varobj_get_iterator): Declare.
3794 * varobj-iter.h: New file.
3795 * varobj.c: Include "varobj-iter.h"
3796 (struct varobj) <child_iter>: Change its type from "PyObject *"
3797 to "struct varobj_iter *".
3798 <saved_item>: Likewise.
3799 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
3800 [HAVE_PYTHON] (varobj_get_iterator): New function.
3801 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
3802 python-specific code to python/py-varobj.c.
3803 (install_visualizer): Call varobj_iter_delete instead of
3804 Py_XDECREF.
3805 * varobj.h (varobj_ensure_python_env): Declare.
3806
5a2e0d6e
YQ
38072014-06-12 Yao Qi <yao@codesourcery.com>
3808
3809 * varobj.c (struct varobj_item): New structure.
3810 (create_child_with_value): Update declaration.
3811 (varobj_add_child): Replace arguments 'name' and 'value' with
3812 'item'. All callers updated.
3813 (install_dynamic_child): Likewise.
3814 (update_dynamic_varobj_children): Likewise.
3815 (varobj_add_child): Likewise.
3816 (create_child_with_value): Likewise.
3817
919b9a93
JB
38182014-06-11 Joel Brobecker <brobecker@adacore.com>
3819
3820 * NEWS: Create a new section for the next release branch.
3821 Rename the section of the current branch, now that it has
3822 been cut.
3823
71a55bdf
JB
38242014-06-11 Joel Brobecker <brobecker@adacore.com>
3825
3826 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
3827 * version.in: Bump version to 7.8.50.DATE-cvs.
3828
364fe1f7
PA
38292014-06-11 Pedro Alves <palves@redhat.com>
3830
3831 PR remote/17028
3832 * ser-mingw.c (net_windows_socket_check_pending): New function.
3833 (net_windows_select_thread): Ignore spurious wakeups. Use
3834 net_windows_socket_check_pending.
3835 (net_windows_wait_handle): Check for pending events with
3836 ioctlsocket, through net_windows_socket_check_pending, instead of
3837 checking the socket's event.
3838
5a6c7709
SC
38392014-06-10 Siva Chandra Reddy <sivachandra@google.com>
3840
3841 * python/python-internal.h (gdb_PyObject_GetAttrString)
3842 (gdb_PyObject_HasAttrString): New inline function definitions.
3843 * py-value.c (get_field_flag): Remove the now unnecessary cast to
3844 char * of the second argument to PyObject_GetAttrString.
74228e77 3845
0e58ee40
JB
38462014-06-10 Joel Brobecker <brobecker@adacore.com>
3847
3848 * serial.c (serial_write): Fix index of character to be printed
3849 in call to serial_logchar when serial debug traces are enabled.
3850
d190df30
JB
38512014-06-10 Joel Brobecker <brobecker@adacore.com>
3852
3853 * gdbtypes (resolve_dynamic_range): Add function description.
3854
b4b01d36
PA
38552014-06-09 Pedro Alves <palves@redhat.com>
3856
3857 * linux-nat.c (linux_child_follow_fork): Initialize status with
3858 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
3859 inner block. Only pass the signal to PTRACE_DETACH if in pass
3860 state.
3861
3657956b
GB
38622014-06-09 Gary Benson <gbenson@redhat.com>
3863
3864 * common/signals.c (gdb_signal_from_host): Reorder to separate
3865 the always-available ANSI-standard signals from the signals that
3866 require checking.
3867 (do_gdb_signal_to_host): Likewise.
3868 * proc-events.c (signal_table): Likewise.
3869
c077881a
HZ
38702014-06-08 Hui Zhu <hui@codesourcery.com>
3871
3872 * common/linux-ptrace.c (linux_disable_event_reporting): New
3873 function.
3874 * common/linux-ptrace.h (linux_disable_event_reporting): New
3875 declaration.
3876 * linux-nat.c (linux_child_follow_fork): Do a single step before
3877 detach.
3878
4186eb54
KS
38792014-06-07 Keith Seitz <keiths@redhat.com>
3880
3881 Revert:
3882 PR c++/16253
3883 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
3884 from symbol_matches_domain in symtab.c. All local callers
3885 of symbol_matches_domain updated.
3886 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
3887 search STRUCT_DOMAIN.
3888 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
3889 independently. standard_lookup will do that automatically.
3890 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
3891 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3892 (cp_lookup_symbol_in_namespace): Likewise.
3893 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
3894 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
3895 may return a STRUCT_DOMAIN match.
3896 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
3897 * cp-support.c: Include language.h.
3898 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
3899 VAR_DOMAIN.
3900 * psymtab.c (match_partial_symbol): Compare the requested
3901 domain with the symbol's domain directly.
3902 (lookup_partial_symbol): Likewise.
3903 * symtab.c (lookup_symbol_in_language): Explain when/why
3904 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3905 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
3906 appropriate languages.
3907 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
3908 and moved to ada-lang.c
3909 (lookup_block_symbol): Explain that this function only returns
3910 symbol matching the requested DOMAIN.
3911 Compare the requested domain with the symbol's domain directly.
3912 (iterate_over_symbols): Compare the requested domain with the
3913 symbol's domain directly.
3914 * symtab.h (symbol_matches_domain): Remove.
3915
25326a28 39162014-06-06 Doug Evans <xdje42@gmail.com>
d2929fdc
DE
3917
3918 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
3919 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
3920 (gdbscm_guile_version_is_at_least): Declare.
3921 (gdbscm_scm_string_to_int): Declare.
3922 * guile/guile.c (gdbscm_guile_major_version): New global.
3923 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
3924 (guile_datadir): New static global.
3925 (gdbscm_guile_data_directory): New function.
3926 (initialize_scheme_side): Update.
3927 (misc_guile_functions): Add guile-data-directory.
3928 (initialize_gdb_module): Fetch guile version number.
3929 * guile/lib/gdb.scm: Remove call to add-to-load-path.
3930 * guile/lib/gdb/init.scm (%initialize!): Ditto.
3931 * guile/lib/gdb/boot.scm: Use guile-data-directory.
3932 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
3933 comments.
3934 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
3935 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
3936 * guile/scm-value.c (gdbscm_value_to_string): Only call
3937 scm_port_conversion_strategy if Guile version >= 2.0.6.
3938
0a770bb2 39392014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
3940
3941 * main.c (print_gdb_help): Add -q and --silent.
3942
73ba372c
GB
39432014-06-06 Gary Benson <gbenson@redhat.com>
3944
3945 * common/signals.c: Remove preprocessor conditionals for
3946 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
3947 SIGSEGV and SIGTERM.
3948 * proc-events.c: Likewise.
3949
c33b2f12
MM
39502014-06-06 Markus Metzger <markus.t.metzger@intel.com>
3951
3952 * symfile.c (symfile_free_objfile): Remove restriction to
3953 OBJF_USERLOADED.
3954 * symfile-mem.c (symbol_file_add_from_memory): Call
3955 add_target_sections_of_objfile.
3956
fb934770
LC
39572014-06-05 Ludovic Courtès <ludo@gnu.org>
3958
3959 * guile/scm-value.c (gdbscm_history_append_x): Use
3960 'vlscm_get_value_smob_arg_unsafe' instead of
3961 'vlscm_scm_to_value'.
3962
6ef284bd
SM
39632014-06-05 Simon Marchi <simon.marchi@ericsson.com>
3964
3965 PR mi/15806
3966 * utils.c (printchar): Don't escape at all if quoter is NUL.
3967 Update function documentation to clarify effect of parameter
3968 QUOTER.
3969 * remote.c (escape_buffer): Pass '\\' as the quoter to
3970 fputstrn_unfiltered.
3971 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
3972 generate the output.
3973 (mi_solib_unloaded): Same.
3974
270c9937
JB
39752014-06-05 Joel Brobecker <brobecker@adacore.com>
3976
3977 * development.sh: Delete.
3978 * Makefile.in (config.status): Adjust dependency on development.sh.
3979 * configure.ac: Adjust development.sh source call.
3980 * configure: Regenerate.
3981
16f691fb
DE
39822014-06-04 Doug Evans <xdje42@gmail.com>
3983
3984 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
3985 is_scheme_bkpt, spec.
3986 (bpscm_make_breakpoint_smob): Initialize new members.
3987 (gdbscm_create_breakpoint_x): Split into two ...
3988 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
3989 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
3990 (scheme_function breakpoint_functions): Update.
3991 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
3992 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
3993 register-breakpoint!.
3994
ef7cab6b
JB
39952014-06-04 Joel Brobecker <brobecker@adacorer.com>
3996
3997 PR server/17023
3998 * mem-break.c (z_type_supported): Return zero if
3999 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
4000
012370f6
TT
40012014-06-04 Tom Tromey <tromey@redhat.com>
4002
4003 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
4004 value_from_contents_and_address_unresolved.
4005 (ada_template_to_fixed_record_type_1): Likewise.
4006 (ada_which_variant_applies): Likewise.
4007 * value.h (value_from_contents_and_address_unresolved): Declare.
4008 * value.c (value_from_contents_and_address_unresolved): New
4009 function.
4010 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
4011 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
4012 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
4013
92e2a17f
TT
40142014-06-04 Tom Tromey <tromey@redhat.com>
4015
4016 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
4017
c0939df1
TT
40182014-06-04 Tom Tromey <tromey@redhat.com>
4019
4020 * procfs.c (procfs_attach): Make "args" const.
4021 * windows-nat.c (windows_attach): Make "args" const.
4022 * nto-procfs.c (procfs_attach): Make "args" const.
4023 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
4024 * go32-nat.c (go32_attach): Make "args" const.
4025 * gnu-nat.c (gnu_attach): Make "args" const.
4026 * darwin-nat.c (darwin_attach): Make "args" const.
4027 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
4028 * linux-nat.c (linux_nat_attach): Make "args" const.
4029 * remote.c (extended_remote_attach_1, extended_remote_attach):
4030 Make "args" const.
4031 * target.h (struct target_ops) <to_attach>: Make "args" const.
4032 (find_default_attach): Likewise.
4033 * utils.c (parse_pid_to_attach): Make "args" const.
4034 * utils.h (parse_pid_to_attach): Update.
4035
8eaff7cd
TT
40362014-06-04 Tom Tromey <tromey@redhat.com>
4037
4038 * target-delegates.c: Rebuild.
4039 * target.c (default_thread_address_space): New function.
4040 (target_thread_address_space): Simplify.
4041 * target.h (struct target_ops) <to_thread_address_space>: Add
4042 TARGET_DEFAULT_FUNC.
4043
1913f160
DE
40442014-06-04 Doug Evans <xdje42@gmail.com>
4045
4046 * guile/scm-type.c (type_smob): Remove duplicate typedef.
4047
70ad5bff
MM
40482014-06-04 Markus Metzger <markus.t.metzger@intel.com>
4049
4050 * record-btrace.c: Include event-loop.h and inf-loop.h.
4051 (record_btrace_resume_exec_dir)
4052 (record_btrace_async_inferior_event_handler)
4053 (record_btrace_handle_async_inferior_event): New.
4054 (record_btrace_open): Create async event handler.
4055 (record_btrace_close): Delete async event handler.
4056 (record_btrace_resume): Set record_btrace_resume_exec_dir,
4057 Mark async event handler.
4058 (record_btrace_execution_direction): New.
4059 (init_record_btrace_ops): Initialize to_execution_direction.
4060
b6210538
DE
40612014-06-03 Doug Evans <xdje42@gmail.com>
4062
4063 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
4064 (gdbscm_make_parameter): Ditto.
4065
a5b1fd27
DE
40662014-06-03 Doug Evans <dje@google.com>
4067
4068 * exec.c (exec_close_1): Call clear_section_table instead of
4069 resize_section_table.
4070 (clear_section_table): New function.
4071 (resize_section_table): Make static. Rename arg num_added to
4072 adjustment.
4073 * exec.h (clear_section_table): Declare.
4074 (resize_section_table): Delete.
4075 * progspace.c (release_program_space): Call clear_section_table
4076 instead of resize_section_table.
4077
0c6e92a5
SC
40782014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4079
4080 * NEWS (Python Scripting): Add entry about the new xmethods
4081 feature.
4082
883964a7
SC
40832014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4084
4085 * python/py-xmethods.c: New file.
4086 * python/py-objfile.c (objfile_object): New field 'xmethods'.
4087 (objfpy_dealloc): XDECREF on the new xmethods field.
4088 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
4089 field.
4090 (objfpy_get_xmethods): New function.
4091 (objfile_getset): New entry 'xmethods'.
4092 * python/py-progspace.c (pspace_object): New field 'xmethods'.
4093 (pspy_dealloc): XDECREF on the new xmethods field.
4094 (pspy_new, pspace_to_pspace_object): Initialize xmethods
4095 field.
4096 (pspy_get_xmethods): New function.
4097 (pspace_getset): New entry 'xmethods'.
4098 * python/python-internal.h: Add declarations for new functions.
4099 * python/python.c (_initialize_python): Invoke
4100 gdbpy_initialize_xmethods.
4101 * python/lib/gdb/__init__.py (xmethods): New
4102 attribute.
4103 * python/lib/gdb/xmethod.py: New file.
4104 * python/lib/gdb/command/xmethods.py: New file.
4105
58992dc5
SC
41062014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4107
4108 * eval.c (evaluate_subexp_standard): Call the xmethod if the
4109 best match method returned by find_overload_match is an xmethod.
4110 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
4111 the best matching operator returned by find_overload_match is an
4112 xmethod.
4113 * valops.c: #include "extension.h".
4114 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
4115 Return void. The list of matching source methods is returned in
4116 "fn_list" and a vector of matching debug method workers is
4117 returned in "xm_worker_vec". Update all callers.
4118 (value_find_oload_method_list): Likewise.
4119 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
4120 non-NULL, then the index of the best matching method in this
4121 vector is returned. Update all callers.
4122 (find_overload_match): Include xmethods while performing overload
4123 resolution.
4124
e81e7f5e
SC
41252014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4126
4127 * defs.h (enum lval_type): New enumerator "lval_xcallable".
4128 * extension-priv.h (struct extension_language_ops): Add the
4129 xmethod interface.
4130 * extension.c (new_xmethod_worker, clone_xmethod_worker,
4131 get_matching_xmethod_workers, get_xmethod_argtypes,
4132 invoke_xmethod, free_xmethod_worker,
4133 free_xmethod_worker_vec): New functions.
4134 * extension.h: #include "common/vec.h".
4135 New function declarations.
4136 (struct xmethod_worker): New struct.
4137 (VEC (xmethod_worker_ptr)): New vector type.
4138 (xmethod_worker_ptr): New typedef.
4139 (xmethod_worker_vec): Likewise.
4140 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
4141 builtin_type.
4142 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
4143 (struct builtin_type): New field "xmethod".
4144 * valarith.c (value_ptradd): Assert that the value argument is not
4145 lval_xcallable.
4146 * valops.c (value_must_coerce_to_target): Return 0 for
4147 lval_xcallable values.
4148 * value.c (struct value): New field XM_WORKER in the field
4149 LOCATION.
4150 (value_address, value_raw_address): Return 0 for lval_xcallable
4151 values.
4152 (set_value_address): Assert that the value is not an
4153 lval_xcallable.
4154 (value_free): Free the associated xmethod worker when freeing
4155 lval_xcallable values.
4156 (set_value_component_location): Assert that the WHOLE value is not
4157 lval_xcallable.
4158 (value_of_xmethod, call_xmethod): New functions.
4159 * value.h: Declare "struct xmethod_worker".
4160 Declare new functions value_of_xmethod, call_xmethod.
4161
ef370185
JB
41622014-06-03 Joel Brobecker <brobecker@adacore.com>
4163 Pedro Alves <palves@redhat.com>
4164
4165 PR breakpoints/17000
4166 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
4167 New function, extracted from software_breakpoint_inserted_here_p.
4168 (software_breakpoint_inserted_here_p): Replace factored out code
4169 by call to find_non_raw_software_breakpoint_inserted_here.
4170 (bp_target_info_copy_insertion_state): New function.
4171 (bkpt_insert_location): Handle the case of a single-step
4172 breakpoint already inserted at the same address.
4173 (bkpt_remove_location): Handle the case of a single-step
4174 breakpoint still inserted at the same address.
4175 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
4176 breakpoint already inserted at the same address.
4177 (deprecated_remove_raw_breakpoint): Handle the case of a
4178 non-raw breakpoint still inserted at the same address.
4179 (find_single_step_breakpoint): New function, extracted from
4180 single_step_breakpoint_inserted_here_p.
4181 (find_single_step_breakpoint): New function,
4182 factored out from single_step_breakpoint_inserted_here_p.
4183 (single_step_breakpoint_inserted_here_p): Reimplement.
4184
1e2ccb61
BM
41852014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
4186
4187 Pushed by Joel Brobecker <brobecker@adacore.com>
4188 * source.c (show_substitute_path_command): Fix display of matching
4189 substitution rules.
4190
d3448d85
GB
41912014-06-03 Gary Benson <gbenson@redhat.com>
4192
4193 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
4194
06eb1586
DE
41952014-06-02 Doug Evans <xdje42@gmail.com>
4196
4197 Add parameter support for Guile.
4198 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
4199 (SUBDIR_GUILE_SRCS): Add scm-param.c.
4200 (scm-param.o): New rule.
4201 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
4202 (gdbscm_misc_error): Declare.
4203 (gdbscm_canonicalize_command_name): Declare.
4204 (gdbscm_scm_to_host_string): Declare.
4205 (gdbscm_scm_from_host_string): Declare.
4206 (gdbscm_initialize_parameters): Declare.
4207 * guile/guile.c (initialize_gdb_module): Call
4208 gdbscm_initialize_parameters.
4209 * guile/lib/gdb.scm: Export parameter symbols.
4210 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
4211 cmdscm_canonicalize_name and made public. All callers updated.
4212 * guile/scm-exception.c (gdbscm_misc_error): New function.
4213 * guile/scm-param.c: New file.
4214 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
4215 (gdbscm_scm_to_host_string): New function.
4216 (gdbscm_scm_from_host_string): New function.
4217 * scm-utils.c (gdbscm_gc_dup_argv): New function.
4218
e698b8c4
DE
42192014-06-02 Doug Evans <xdje42@gmail.com>
4220
4221 Add command support for Guile.
4222 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
4223 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
4224 (scm-cmd.o): New rule.
4225 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
4226 (gdbscm_user_error_p): Declare.
4227 (gdbscm_parse_command_name): Declare.
4228 (gdbscm_valid_command_class_p): Declare.
4229 (gdbscm_initialize_commands): Declare.
4230 * guile/guile.c (initialize_gdb_module): Call
4231 gdbscm_initialize_commands.
4232 * guile/lib/gdb.scm: Export command symbols.
4233 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
4234 (throw-user-error): New function.
4235 * guile/scm-cmd.c: New file.
4236 * guile/scm-exception.c (user_error_symbol): New static global.
4237 (gdbscm_user_error_p): New function.
4238 (gdbscm_initialize_exceptions): Set user_error_symbol.
4239 * scm-utils.c (gdbscm_gc_xstrdup): New function.
4240
fb1f94b0
PM
42412014-06-02 Phil Muldoon <pmuldoon@redhat.com>
4242
4243 * top.c (command_loop): Handle comments here...
4244 (command_line_input): ... not here.
4245
ded03782
DE
42462014-06-02 Doug Evans <xdje42@gmail.com>
4247
4248 Add progspace support for Guile.
4249 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
4250 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
4251 (scm-progspace.o): New rule.
4252 * guile/guile-internal.h (pspace_smob): New typedef.
4253 (psscm_pspace_smob_pretty_printers): Declare.
4254 (psscm_pspace_smob_from_pspace): Declare.
4255 (psscm_scm_from_pspace): Declare.
4256 * guile/guile.c (initialize_gdb_module): Call
4257 gdbscm_initialize_pspaces.
4258 * guile/lib/gdb.scm: Export progspace symbols.
4259 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
4260 support.
4261 (append-pretty-printer!): Ditto.
4262 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
4263 Implement.
4264 * guile/scm-progspace.c: New file.
4265
397998fc
AM
42662014-06-03 Alan Modra <amodra@gmail.com>
4267
4268 * ppc64-tdep.c (ppc64_standard_linkage8): New.
4269 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
4270
6aa5f3a6
DE
42712014-06-02 Doug Evans <dje@google.com>
4272
4273 Add support for skeletonless type units.
4274 * dwarf2read.c (struct dwarf2_per_objfile): New member
4275 n_allocated_type_units.
4276 (struct dwarf2_per_objfile) <tu_stats>: New member
4277 nr_all_type_units_reallocs.
4278 (create_signatured_type_table_from_index): Initialize
4279 n_allocated_type_units
4280 (create_all_type_units): Ditto.
4281 (add_type_unit): Move up in file. New arg slot.
4282 All callers updated. Increase space for all_type_units more
4283 efficiently.
4284 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
4285 (lookup_dwo_signatured_type): Handle skeletonless TUs.
4286 (lookup_dwp_signatured_type): Ditto.
4287 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
4288 All callers updated.
4289 (build_type_psymtabs_1): Leave type_unit_groups as
4290 NULL if no TUs present.
4291 (print_tu_stats): New function.
4292 (process_skeletonless_type_unit): New function.
4293 (process_dwo_file_for_skeletonless_type_units): New
4294 function.
4295 (process_skeletonless_type_units): New function.
4296 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
4297 Call print tu_stats if debugging enabled.
4298
41fac0cf
PA
42992014-06-02 Pedro Alves <palves@redhat.com>
4300
4301 * breakpoint.c (build_target_command_list): Don't build a command
4302 list if we have any duplicate location that isn't a dprintf.
4303
cd1608cc
PA
43042014-06-02 Pedro Alves <palves@redhat.com>
4305
4306 * breakpoint.c (dprintf_breakpoint_hit): New function.
4307 (initialize_breakpoint_ops): Install it as dprintf's
4308 breakpoint_hit method.
4309
486ef3b9
JB
43102014-06-02 Joel Brobecker <brobecker@adacore.com>
4311
4312 * source.c (substitute_path_rule_matches): Simplify using
4313 filename_ncmp instead of FILENAME_CMP.
4314
230cd560
JB
43152014-06-02 Joel Brobecker <brobecker@adacore.com>
4316
4317 * source.c (substitute_path_rule_matches): Remove trailing spaces.
4318
16954d5d
LC
43192014-06-01 Ludovic Courtès <ludo@gnu.org>
4320
4321 * configure.ac: When Guile is available, check for the
4322 availability of 'scm_new_smob'.
4323 * configure, config.h.in: Regenerate.
4324 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
4325 function.
4326
53e8a631
AB
43272014-05-30 Andrew Burgess <aburgess@broadcom.com>
4328
4329 * frame.c (struct frame_info): Add stop_string field.
4330 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
4331 (get_prev_frame_always): Old content moved into
4332 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
4333 TRY_CATCH, handle MEMORY_ERROR exceptions.
4334 (frame_stop_reason_string): New function definition.
4335 * frame.h (unwind_stop_reason_to_string): Extend comment to
4336 mention frame_stop_reason_string.
4337 (frame_stop_reason_string): New function declaration.
4338 * stack.c (frame_info): Switch to frame_stop_reason_string.
4339 (backtrace_command_1): Switch to frame_stop_reason_string.
4340 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
4341 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
4342 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
4343
70e38b8e
AB
43442014-05-30 Andrew Burgess <aburgess@broadcom.com>
4345
4346 * frame.c (frame_stop_reason_string): Rename to ...
4347 (unwind_stop_reason_to_string): this.
4348 * frame.h (frame_stop_reason_string): Rename to ...
4349 (unwind_stop_reason_to_string): this.
4350 * stack.c (frame_info): Update call to frame_stop_reason_string.
4351 (backtrace_command_1): Likewise.
4352 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
4353 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
4354
938f0e2f
AB
43552014-05-30 Andrew Burgess <aburgess@broadcom.com>
4356
4357 * frame.c (remove_prev_frame): New function.
4358 (get_prev_frame_if_no_cycle): Create / discard cleanup using
4359 remove_prev_frame.
4360
a09dd441
PA
43612014-05-29 Pedro Alves <palves@redhat.com>
4362
4363 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
4364 and make it const. When a single-step decays to a continue,
4365 clear 'step', not 'hw_step'. Pass whether the caller wanted
4366 to step to user_visible_resume_ptid, not what we ask the
4367 target to do.
4368
bdc36728
PA
43692014-05-29 Pedro Alves <palves@redhat.com>
4370
4371 * infrun.c (process_event_stop_test, handle_step_into_function)
4372 (handle_step_into_function_backward): Adjust.
4373 Don't set the even thread's stop_step and call stop_waiting before
4374 calling end_stepping_range. Instead do that ...
4375 (end_stepping_range): ... here. Take an ecs pointer parameter.
4376
22bcd14b
PA
43772014-05-29 Pedro Alves <palves@redhat.com>
4378
4379 * infrun.c (stop_stepping): Rename to ...
4380 (stop_waiting): ... this.
4381 (proceed): Update comment.
4382 (process_event_stop_test, handle_inferior_event)
4383 (handle_signal_stop, handle_step_into_function)
4384 (handle_step_into_function_backward): Update.
4385
4ae57c05
PA
43862014-05-29 Pedro Alves <palves@redhat.com>
4387
4388 * infcall.c (run_inferior_call): Don't check whether the current
4389 thread is running after the proceed call.
4390
329ea579
PA
43912014-05-29 Pedro Alves <palves@redhat.com>
4392 Tom Tromey <tromey@redhat.com>
4393
4394 * NEWS: Mention "maint set target-async", "set mi-async", and that
4395 background execution commands are now always available.
4396 * target.h (target_async_permitted): Update comment.
4397 * target.c (target_async_permitted, target_async_permitted_1):
4398 Default to 1.
4399 (set_target_async_command): Rename to ...
4400 (maint_set_target_async_command): ... this.
4401 (show_target_async_command): Rename to ...
4402 (maint_show_target_async_command): ... this.
4403 (_initialize_target): Adjust.
4404 * infcmd.c (prepare_execution_command): Make extern.
4405 * inferior.h (prepare_execution_command): Declare.
4406 * infrun.c (set_observer_mode): Leave target async alone.
4407 * mi/mi-interp.c (mi_interpreter_init): Install
4408 mi_on_sync_execution_done as sync_execution_done observer.
4409 (mi_on_sync_execution_done): New function.
4410 (mi_execute_command_input_handler): Don't print the prompt if we
4411 just started a synchronous command with an async target.
4412 (mi_on_resume): Check sync_execution before printing prompt.
4413 * mi/mi-main.h (mi_async_p): Declare.
4414 * mi/mi-main.c: Include gdbcmd.h.
4415 (mi_async_p): New function.
4416 (mi_async, mi_async_1): New globals.
4417 (set_mi_async_command, show_mi_async_command, mi_async): New
4418 functions.
4419 (exec_continue): Call prepare_execution_command.
4420 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
4421 (mi_execute_async_cli_command): Use mi_async_p.
4422 (_initialize_mi_main): Install "set mi-async". Make
4423 "target-async" a deprecated alias.
4424
92bcb5f9
PA
44252014-05-29 Pedro Alves <palves@redhat.com>
4426
4427 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
4428 (_initialize_cli_interp): Adjust.
4429 * event-loop.c: Include "observer.h".
4430 (start_event_loop): Notify 'command_error' observers instead of
4431 calling display_gdb_prompt. Remove FIXME comment.
4432 * event-top.c (display_gdb_prompt): Remove call into the
4433 interpreters.
4434 * inf-loop.c: Include "observer.h".
4435 (inferior_event_handler): Notify 'command_error' observers instead
4436 of calling display_gdb_prompt.
4437 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
4438 observers instead of calling display_gdb_prompt.
4439 * interps.c (interp_set): Don't call display_gdb_prompt.
4440 (current_interp_display_prompt_p): Delete.
4441 * interps.h (interp_prompt_p): Delete declaration.
4442 (interp_prompt_p_ftype): Delete.
4443 (struct interp_procs) <prompt_proc_p>: Delete field.
4444 (current_interp_display_prompt_p): Delete declaration.
4445 * mi-interp.c (mi_interpreter_prompt_p): Delete.
4446 (_initialize_mi_interp): Adjust.
4447 * tui-interp.c (tui_init): Install 'sync_execution_done' and
4448 'command_error' observers.
4449 (tui_on_sync_execution_done, tui_on_command_error): New
4450 functions.
4451 (tui_display_prompt_p): Delete.
4452 (_initialize_tui_interp): Adjust.
4453
fd664c91
PA
44542014-05-29 Pedro Alves <palves@redhat.com>
4455
4456 PR gdb/13860
4457 * cli/cli-interp.c: Include infrun.h and observer.h.
4458 (cli_uiout, cli_interp): New globals.
4459 (cli_on_signal_received, cli_on_end_stepping_range)
4460 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
4461 functions.
4462 (cli_interpreter_init): Install them as 'end_stepping_range',
4463 'signal_received' 'signal_exited', 'exited' and 'no_history'
4464 observers.
4465 (_initialize_cli_interp): Remove cli_interp local.
4466 * infrun.c (handle_inferior_event): Call the several stop reason
4467 observers instead of printing the stop reason directly.
4468 (end_stepping_range): New function.
4469 (print_end_stepping_range_reason, print_signal_exited_reason)
4470 (print_exited_reason, print_signal_received_reason)
4471 (print_no_history_reason): Make static, and add an uiout
4472 parameter. Print to that instead of to CURRENT_UIOUT.
4473 * infrun.h (print_end_stepping_range_reason)
4474 (print_signal_exited_reason, print_exited_reason)
4475 (print_signal_received_reason print_no_history_reason): New
4476 declarations.
4477 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
4478 'mi_uiout'.
4479 <cli_uiout>: New field.
4480 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
4481 uiout for CLI output. Install 'signal_received',
4482 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
4483 observers.
4484 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
4485 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
4486 (mi_on_no_history): New functions.
4487 (ui_out_free_cleanup): Delete function.
4488 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
4489 instead use the one already stored in the MI interpreter data.
4490 (mi_ui_out): Adjust.
4491 * tui/tui-interp.c: Include infrun.h and observer.h.
4492 (tui_interp): New global.
4493 (tui_on_signal_received, tui_on_end_stepping_range)
4494 (tui_on_signal_exited, tui_on_exited)
4495 (tui_on_no_history): New functions.
4496 (tui_init): Install them as 'end_stepping_range',
4497 'signal_received' 'signal_exited', 'exited' and 'no_history'
4498 observers.
4499 (_initialize_tui_interp): Delete tui_interp local.
4500
8817a6f2
PA
45012014-05-29 Pedro Alves <palves@redhat.com>
4502
4503 PR gdb/15713
4504 * linux-nat.c (linux_nat_resume_callback): Rename the second
4505 parameter to 'except'. Skip LP if it points to EXCEPT.
4506 (linux_nat_resume): Don't mark the event lwp as not stopped
4507 before resuming sibling lwps. Instead ask
4508 linux_nat_resume_callback to skip the event lwp. Mark it as not
4509 stopped after actually resuming it.
4510 (linux_handle_syscall_trap): Mark the lwp as not stopped after
4511 resuming it.
4512 (wait_lwp): Mark the lwp as stopped here.
4513 (stop_wait_callback): Mark the lwp as not stopped right after
4514 resuming it. Don't mark lwps as stopped here.
4515 (linux_nat_filter_event): Mark the lwp as stopped earlier.
4516 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
4517
251bde03
PA
45182014-05-29 Pedro Alves <palves@redhat.com>
4519
4520 PR PR15693
4521 * infrun.c (resume): Determine how much to resume depending on
4522 whether the caller wanted a step, not whether we can hardware step
4523 the target. Mark all threads that we intend to run as running,
4524 unless we're calling an inferior function.
4525 (normal_stop): If the thread is running an infcall, don't finish
4526 thread state.
4527 * target.c (target_resume): Don't mark threads as running here.
4528
7f3c0343
JB
45292014-05-28 Joel Brobecker <brobecker@adacore.com>
4530
4531 * serial.c (_initialize_serial): Remove support for
4532 the "set remotebaud" and "show remotebaud" commands.
4533 * NEWS: Add entry documenting the removal of that command.
4534
ee34b3f9
YQ
45352014-05-28 Yao Qi <yao@codesourcery.com>
4536
4537 * charset.c: Fix typo in comments.
4538
add6c04d
GB
45392014-05-27 Gary Benson <gbenson@redhat.com>
4540
4541 * utils.c (internal_vproblem): Prompt for a bug report.
4542
92c48fc5
AW
45432014-05-26 Andy Wingo <wingo@igalia.com>
4544
4545 * guile/scm-arch.c (arscm_mark_arch_smob):
4546 * guile/scm-block.c (bkscm_mark_block_smob)
4547 (bkscm_mark_block_syms_progress_smob):
4548 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
4549 * guile/scm-exception.c (exscm_mark_exception_smob):
4550 * guile/scm-frame.c (frscm_mark_frame_smob):
4551 * guile/scm-iterator.c (itscm_mark_iterator_smob):
4552 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
4553 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
4554 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
4555 (ppscm_mark_pretty_printer_worker_smob):
4556 * guile/scm-symbol.c (syscm_mark_symbol_smob):
4557 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
4558 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
4559 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
4560 mark functions.
4561 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
4562 function.
4563
b2715b27
AW
45642014-05-26 Andy Wingo <wingo@igalia.com>
4565 Doug Evans <xdje42@gmail.com>
4566
4567 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
4568 empty_base_class. All uses updated.
4569 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
4570 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
4571 Adapt all callers.
4572 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
4573 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
4574 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
4575 (gdbscm_gsmob_has_property_p, add_property_name)
4576 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
4577 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
4578 (gdb-object-has-property?, gdb-object-properties): Remove.
4579 (gdb-object-kind): Renamed from gsmob-kind.
4580
214ab2da
AW
45812014-05-26 Andy Wingo <wingo@igalia.com>
4582
4583 * configure.ac (try_guile_versions): Allow building with guile 2.2.
4584 * configure: Regenerate.
4585
589fdceb
MM
45862014-05-23 Markus Metzger <markus.t.metzger@intel.com>
4587
4588 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
4589
67b5c0c1
MM
45902014-05-23 Markus Metzger <markus.t.metzger@intel.com>
4591
4592 * record-btrace.c (record_btrace_allow_memory_access): Remove.
4593 (replay_memory_access_read_only, replay_memory_access_read_write)
4594 (replay_memory_access_types, replay_memory_access)
4595 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
4596 (cmd_set_record_btrace, cmd_show_record_btrace)
4597 (cmd_show_replay_memory_access): New.
4598 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
4599 (record_btrace_remove_breakpoint): Replace
4600 record_btrace_allow_memory_access with replay_memory_access.
4601 (_initialize_record_btrace): Add commands.
4602 * NEWS: Announce it.
4603
036cd381
RR
46042014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4605
4606 * aarch64-linux-nat.c (asm/ptrace.h): Include.
4607
c77c1e42
RR
46082014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4609
4610 * MAINTAINERS (Write After Approval): Move self back from
4611 paper trail.
4612
45741a9c
PA
46132014-05-22 Pedro Alves <palves@redhat.com>
4614
4615 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
4616 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
4617 (disable_randomization, enum exec_direction_kind)
4618 (execution_direction, stop_registers, start_remote)
4619 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
4620 (wait_for_inferior, normal_stop, get_last_target_status)
4621 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
4622 (insert_step_resume_breakpoint_at_sal)
4623 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
4624 (set_step_info, print_stop_event, signal_stop_state)
4625 (signal_print_state, signal_pass_state, signal_stop_update)
4626 (signal_print_update, signal_pass_update)
4627 (update_signals_program_target, clear_exit_convenience_vars)
4628 (displaced_step_dump_bytes, update_observer_mode)
4629 (signal_catch_update, gdb_signal_from_command): Move
4630 declarations ...
4631 * infrun.h: ... to this new file.
4632 * amd64-tdep.c: Include infrun.h.
4633 * annotate.c: Include infrun.h.
4634 * arch-utils.c: Include infrun.h.
4635 * arm-linux-tdep.c: Include infrun.h.
4636 * arm-tdep.c: Include infrun.h.
4637 * break-catch-sig.c: Include infrun.h.
4638 * breakpoint.c: Include infrun.h.
4639 * common/agent.c: Include infrun.h instead of inferior.h.
4640 * corelow.c: Include infrun.h.
4641 * event-top.c: Include infrun.h.
4642 * go32-nat.c: Include infrun.h.
4643 * i386-tdep.c: Include infrun.h.
4644 * inf-loop.c: Include infrun.h.
4645 * infcall.c: Include infrun.h.
4646 * infcmd.c: Include infrun.h.
4647 * infrun.c: Include infrun.h.
4648 * linux-fork.c: Include infrun.h.
4649 * linux-nat.c: Include infrun.h.
4650 * linux-thread-db.c: Include infrun.h.
4651 * monitor.c: Include infrun.h.
4652 * nto-tdep.c: Include infrun.h.
4653 * procfs.c: Include infrun.h.
4654 * record-btrace.c: Include infrun.h.
4655 * record-full.c: Include infrun.h.
4656 * remote-m32r-sdi.c: Include infrun.h.
4657 * remote-mips.c: Include infrun.h.
4658 * remote-notif.c: Include infrun.h.
4659 * remote-sim.c: Include infrun.h.
4660 * remote.c: Include infrun.h.
4661 * reverse.c: Include infrun.h.
4662 * rs6000-tdep.c: Include infrun.h.
4663 * s390-linux-tdep.c: Include infrun.h.
4664 * solib-irix.c: Include infrun.h.
4665 * solib-osf.c: Include infrun.h.
4666 * solib-svr4.c: Include infrun.h.
4667 * target.c: Include infrun.h.
4668 * top.c: Include infrun.h.
4669 * windows-nat.c: Include infrun.h.
4670 * mi/mi-interp.c: Include infrun.h.
4671 * mi/mi-main.c: Include infrun.h.
4672 * python/py-threadevent.c: Include infrun.h.
4673
98eb56a4
PA
46742014-05-22 Pedro Alves <palves@redhat.com>
4675
4676 * infrun.c (handle_inferior_event): Store the exit code for
4677 --return-child-result here, instead of ...
4678 (print_exited_reason): ... here.
4679
17b2616c
PA
46802014-05-21 Pedro Alves <palves@redhat.com>
4681
4682 PR gdb/13860
4683 * gdbthread.h (struct thread_control_state): New field
4684 `command_interp'.
4685 * infrun.c (follow_fork): Copy the new thread control field to the
4686 child fork thread.
4687 (clear_proceed_status_thread): Clear the new thread control field.
4688 (proceed): Set the new thread control field.
4689 * interps.h (command_interp): Declare.
4690 * interps.c (command_interpreter): New global.
4691 (command_interp): New function.
4692 (interp_exec): Set `command_interpreter' while here.
4693 * cli-out.c (cli_uiout_dtor): New function.
4694 (cli_ui_out_impl): Install it.
4695 * mi/mi-interp.c: Include cli-out.h.
4696 (mi_cmd_interpreter_exec): Add comment.
4697 (restore_current_uiout_cleanup): New function.
4698 (ui_out_free_cleanup): New function.
4699 (mi_on_normal_stop): If finishing an execution command started by
4700 a CLI command, or any kind of breakpoint-like event triggered,
4701 print the stop event to the output (CLI) stream.
4702 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
4703
5166082f
PA
47042014-05-21 Pedro Alves <palves@redhat.com>
4705
4706 * cli/cli-cmds.c (list_command): Handle the first "list" after the
4707 current source line having changed.
4708 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
4709 * infrun.c (normal_stop): Adjust call to
4710 set_current_sal_from_frame.
4711 * source.c (clear_lines_listed_range): New function.
4712 (set_current_source_symtab_and_line, identify_source_line): Clear
4713 the lines listed range.
4714 (line_info): Handle the first "info line" after the current source
4715 line having changed.
4716 * stack.c (print_stack_frame): Remove center handling.
4717 (set_current_sal_from_frame): Remove 'center' parameter. Don't
4718 center sal.line.
4719
c1ee2fb3
PA
47202014-05-21 Pedro Alves <palves@redhat.com>
4721
4722 * inf-child.c (inf_child_mourn_inferior): New function.
4723 * inf-child.h (inf_child_mourn_inferior): New declaration.
4724 * darwin-nat.c (darwin_mourn_inferior): Use
4725 inf_child_mourn_inferior.
4726 * gnu-nat.c (gnu_mourn_inferior): Likewise.
4727 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
4728 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
4729 * nto-procfs.c (procfs_mourn_inferior): Likewise.
4730 * windows-nat.c (windows_mourn_inferior): Likewise.
4731
5c6d4fb2
DE
47322014-05-21 Doug Evans <xdje42@gmail.com>
4733
250748cb 4734 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5c6d4fb2 4735
4a2722c5
DE
47362014-05-21 Doug Evans <xdje42@gmail.com>
4737
17292b30 4738 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4a2722c5
DE
4739 (gdbscm_out_of_range_error): Ditto.
4740 (gdbscm_memory_error): Ditto.
250748cb
DE
4741 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
4742 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4a2722c5
DE
4743 (gdbscm_out_of_range_error): Update.
4744 (gdbscm_memory_error): Update.
4745 (gdbscm_scm_to_target_string_unsafe): Delete.
4746
6a3cb8e8
PA
47472014-05-21 Pedro Alves <palves@redhat.com>
4748
4749 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
4750 globals.
4751 (inf_child_open_target): New function.
4752 (inf_child_open): Use inf_child_open_target to push the target
4753 instead of erroring out.
4754 (inf_child_disconnect, inf_child_close)
4755 (inf_child_maybe_unpush_target): New functions.
4756 (inf_child_target): Install inf_child_disconnect and
4757 inf_child_close. Store a pointer to the returned object.
4758 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
4759 declarations.
4760 * target.c (auto_connect_native_target): New global.
4761 (show_default_run_target): New function.
4762 (find_default_run_target): Return NULL if automatically connecting
4763 to the native target is disabled.
4764 (_initialize_target): Install set/show auto-connect-native-target.
4765 * NEWS: Mention "set auto-connect-native-target", and "target
4766 native".
4767 * linux-nat.c (super_close): New global.
4768 (linux_nat_close): Call super_close.
4769 (linux_nat_add_target): Store a pointer to the base class's
4770 to_close method.
4771 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
4772 inf_child_maybe_unpush.
4773 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
4774 already pushed.
4775 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
4776 the inferior. Use inf_child_maybe_unpush_target.
4777 (inf_ttrace_attach): Don't push the target if it is already
4778 pushed.
4779 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
4780 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
4781 after mourning the inferior. Use inf_child_maybe_unpush_target.
4782 (darwin_attach_pid): Don't push the target if it is already
4783 pushed.
4784 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
4785 mourning the inferior. Use inf_child_maybe_unpush_target.
4786 (gnu_detach): Use inf_child_maybe_unpush_target.
4787 * go32-nat.c (go32_create_inferior): Don't push the target if it
4788 is already pushed.
4789 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
4790 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
4791 (procfs_open): Rename to ...
4792 (procfs_open_1): ... this. Add target_ops parameter. Adjust
4793 comments. Can target_preopen before changing node. Call
4794 inf_child_open_target to push the target explicitly.
4795 (procfs_attach): Don't push the target if it is already pushed.
4796 (procfs_detach): Use inf_child_maybe_unpush_target.
4797 (procfs_create_inferior): Don't push the target if it is already
4798 pushed.
4799 (nto_native_ops): New global.
4800 (procfs_open): Reimplement.
4801 (procfs_native_open): New function.
4802 (init_procfs_targets): Install procfs_native_open as to_open of
4803 "target native". Store a pointer to the "native" target in
4804 nto_native_ops.
4805 * procfs.c (procfs_attach): Don't push the target if it is already
4806 pushed.
4807 (procfs_detach): Use inf_child_maybe_unpush_target.
4808 (procfs_mourn_inferior): Only unpush the target after mourning the
4809 inferior. Use inf_child_maybe_unpush_target.
4810 (procfs_init_inferior): Don't push the target if it is already
4811 pushed.
4812 * windows-nat.c (do_initial_windows_stuff): Don't push the target
4813 if it is already pushed.
4814
930ee1b1
PA
48152014-05-21 Pedro Alves <palves@redhat.com>
4816
4817 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
4818 and "procfs" targets are now called "native" instead.
4819
1f5d1b13
PA
48202014-05-21 Pedro Alves <palves@redhat.com>
4821
4822 * go32-nat.c (go32_open): Delete.
4823 (go32_target): Don't override the to_open method.
4824
132f8e03
PA
48252014-05-21 Pedro Alves <palves@redhat.com>
4826
4827 * nto-procfs.c (procfs_can_run): New function.
4828 (nto_procfs_ops): New global.
4829 (init_procfs_targets): New, based on procfs_target. Install
4830 "target native" in addition to "target procfs".
4831 (_initialize_procfs): Call init_procfs_targets instead of adding
4832 the target here.
4833
03c136c3
PA
48342014-05-21 Pedro Alves <palves@redhat.com>
4835
4836 * windows-nat.c (windows_target): Don't override to_shortname,
4837 to_longname or to_doc.
4838
a635d0f3
PA
48392014-05-21 Pedro Alves <palves@redhat.com>
4840
4841 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
4842 to_doc.
4843
4f9b5133
PA
48442014-05-21 Pedro Alves <palves@redhat.com>
4845
4846 * darwin-nat.c (_initialize_darwin_inferior): Don't override
4847 to_shortname, to_longname or to_doc.
4848
bc85afde
PA
48492014-05-21 Pedro Alves <palves@redhat.com>
4850
4851 * go32-nat.c (go32_target): Don't override to_shortname,
4852 to_longname or to_doc.
4853
4ebfc96e
PA
48542014-05-21 Pedro Alves <palves@redhat.com>
4855
4856 * inf-child.c (inf_child_open): Remove mention of "child".
4857 (inf_child_target): Rename target to "native" instead of "child".
4858
2648dfed
AA
48592014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4860
4861 * Makefile.in (SFILES): Delete "regset.c".
4862 (COMMON_OBS): Delete "regset.o".
4863 * regset.c: Remove.
4864 * regset.h (regset_alloc): Delete prototype.
4865
b13feb94
AA
48662014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4867
4868 * sparc-linux-tdep.c (sparc32_linux_gregset)
4869 (sparc32_linux_fpregset): New static regset structures.
4870 (sparc32_linux_init_abi): Drop dynamic regset allocations.
4871 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
4872 'fpregset' fields.
4873 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
4874 (sparc64_linux_fpregset): New static regset structures.
4875 (sparc64_linux_init_abi): Drop dynamic regset allocations.
4876 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
4877 New static regset structures.
4878 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
4879 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
4880 New static regset structures.
4881 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
4882 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
4883 New static regset structures.
4884 (sparc64obsd_init_abi): Drop dynamic regset allocations.
4885 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
4886 New static regset structures.
4887 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
4888
b4fd25c9
AA
48892014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4890
4891 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
4892 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
4893 register maps ("regmaps") from "*regset" to "*regmap". Do this
4894 for all regmap types and variables.
4895 * sparc-linux-tdep.c (sparc32_linux_step_trap)
4896 (sparc32_linux_supply_core_gregset)
4897 (sparc32_linux_collect_core_gregset)
4898 (sparc32_linux_supply_core_fpregset)
4899 (sparc32_linux_collect_core_fpregset): Likewise.
4900 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
4901 (sparc_gregmap, sparc_fpregmap): ... these.
4902 (sparc_supply_gregset, sparc_collect_gregset)
4903 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
4904 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
4905 (_initialize_sparc_nat): Rename regmaps.
4906 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
4907 (sparc_gregmap, sparc_fpregmap): ... these.
4908 (sparc_supply_gregset, sparc_collect_gregset)
4909 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
4910 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
4911 Rename macros to...
4912 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
4913 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
4914 Likewise.
4915 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
4916 Rename to...
4917 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
4918 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
4919 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
4920 regmaps.
4921 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4922 (sparc32_bsd_fpregset): Rename to...
4923 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4924 (sparc32_bsd_fpregmap): ... these.
4925 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
4926 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4927 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
4928 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
4929 (struct sparc_gregmap, struct sparc_fpregmap)
4930 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4931 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
4932 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
4933 (sparc32_supply_regset, sparc32_collect_gregset)
4934 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
4935 prototypes.
4936 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
4937 (sparc64_linux_ptrace_gregmap): ... this.
4938 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
4939 (_initialize_sparc64_linux_nat): Rename regmaps.
4940 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
4941 (sparc64_linux_core_gregmap): ... this.
4942 (sparc64_linux_supply_core_gregset)
4943 (sparc64_linux_collect_core_gregset)
4944 (sparc64_linux_supply_core_fpregset)
4945 (sparc64_linux_collect_core_fpregset): Rename regmaps.
4946 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
4947 (sparc64_sol2_fpregset): Rename to...
4948 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
4949 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
4950 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
4951 regmaps.
4952 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
4953 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
4954 (sparc64_bsd_fpregset): Rename to...
4955 (struct sparc_gregmap, sparc64_sol2_gregmap)
4956 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
4957 (sparc64_bsd_fpregmap): ... these.
4958 (sparc64_supply_gregset, sparc64_collect_gregset)
4959 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
4960 prototypes.
4961 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
4962 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
4963 (sparc64fbsd_gregmap): ... this.
4964 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
4965 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
4966 Rename regmaps.
4967 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
4968 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
4969 (sparc64nbsd_collect_fpregset): Likewise.
4970 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
4971 (sparc64nbsd_gregmap): ... this.
4972 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
4973 regmaps.
4974 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
4975 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
4976 (sparc64obsd_gregmap): ... this.
4977 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
4978 regmaps.
4979 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
4980 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
4981 (sparc32nbsd_gregmap): ... this.
4982 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
4983 regmaps.
4984
8fea3224
AA
49852014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4986
4987 * score-tdep.c (score7_linux_gregset): New static regset
4988 structure.
4989 (score7_linux_regset_from_core_section): Remove dynamic regset
4990 allocation.
4991 (score_gdbarch_init): Drop allocation of tdep structure.
4992 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
4993
24534243
AA
49942014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4995
4996 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
4997 regset structures.
4998 (am33_regset_from_core_section): Remove dynamic regset
4999 allocations.
5000
b7195f27
AA
50012014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5002
5003 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
5004 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
5005 structures.
5006 (mips_linux_regset_from_core_section): Remove dynamic regset
5007 allocations.
5008 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
5009 'gregset64', 'fpregset', and 'fpregset64'.
5010 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
5011 deleted tdep fields.
5012
ecc37a5a
AA
50132014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5014
5015 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
5016 regset structures.
5017 (amd64_regset_from_core_section): Remove dynamic regset
5018 allocations.
5019 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
5020 structure.
5021 (amd64obsd_regset_from_core_section): Remove dynamic regset
5022 allocation.
5023 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
5024 Likewise.
5025 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
5026 x86-common regset supply function.
5027 * i386-tdep.c (i386_collect_gregset): Make static.
5028 (i386_gregset): New global regset structure.
5029 (i386_fpregset, i386_xstateregset): New static regset structures.
5030 (i386_regset_from_core_section): Remove dynamic regset
5031 allocations.
5032 (i386_gdbarch_init): Remove initialization of tdep fields
5033 'gregset', 'fpregset', and 'xstateregset'.
5034 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
5035 'fpregset', and 'xstateregset'.
5036 (i386_collect_gregset): Remove prototype.
5037 (i386_gregset): New declaration.
5038 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
5039 structure.
5040 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
5041 allocation.
5042
b7611c43
AA
50432014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5044
5045 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
5046 (arm_linux_vfpregset): New static regset structures.
5047 (arm_linux_regset_from_core_section): Remove dynamic allocation of
5048 regset structures.
5049 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
5050 and 'vfpregset' fields.
5051
a069a2bd
AA
50522014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5053
5054 * aarch64-linux-tdep.c (aarch64_linux_gregset)
5055 (aarch64_linux_fpregset): New static regset structures.
5056 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
5057 of regset structures.
5058 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
5059 'fpregset' fields.
5060
09424cff
AA
50612014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5062
5063 * regset.h (struct regset): Remove gdbarch field.
5064 * regset.c (regset_alloc): Drop initialization of gdbarch field.
5065 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
5066 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
5067 Likewise.
5068 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
5069 (ppc32_linux_fpregset, ppc32_linux_vrregset)
5070 (ppc32_linux_vsxregset): Likewise.
5071 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
5072 via the regcache instead of the regset.
5073 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
5074 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
5075 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
5076 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
5077 Likewise.
5078
3ca7dae4
AA
50792014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5080
5081 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
5082 Constify structures.
5083 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
5084 (alphanbsd_aout_gregset): Likewise.
5085 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
5086 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
5087 Likewise.
5088 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
5089 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
5090 Likewise.
5091 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
5092 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
5093 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
5094 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
5095 * m88k-tdep.c (m88k_gregset): Likewise.
5096 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
5097 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
5098 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
5099 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
5100 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
5101 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
5102 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
5103 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
5104 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
5105 Likewise.
5106 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
5107 * sh-tdep.h (sh_corefile_gregset): Likewise.
5108 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
5109 * vax-tdep.c (vax_gregset): Likewise.
5110
5876f503
JK
51112014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5112
5113 Fix TLS access for -static -pthread.
5114 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
5115 (try_thread_db_load_1): Initialize it.
5116 (thread_db_get_thread_local_address): Call it if LM is zero.
5117 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
5118 * target.h (struct target_ops) (to_get_thread_local_address): Add
5119 load_module_addr comment.
5120
0256a6ac
PA
51212014-05-21 Pedro Alves <palves@redhat.com>
5122
5123 * dcache.c (dcache_read_memory_partial): If reading the cache line
5124 fails, fallback to reading just the memory the caller wanted.
5125
227533ac
DE
51262014-05-20 Doug Evans <dje@google.com>
5127
5128 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
5129 instead of get_current_arch.
5130
936d2992
PA
51312014-05-20 Pedro Alves <palves@redhat.com>
5132
5133 * NEWS: Mention that compare-sections now works with all targets.
5134
5135 * remote.c (PACKET_qCRC): New enum value.
5136 (remote_verify_memory): Don't send qCRC if the target has no
5137 execution. Use packet_support/packet_ok. If the target doesn't
5138 support the qCRC packet, fallback to a deep memory copy.
5139 (compare_sections_command): Say "target image" instead of "remote
5140 executable".
5141 (_initialize_remote): Add PACKET_qCRC to the list of config
5142 packets that have no associated command. Extend comment.
5143 * target.c (simple_verify_memory, default_verify_memory): New
5144 function.
5145 * target.h (struct target_ops) <to_verify_memory>: Default to
5146 default_verify_memory.
5147 (simple_verify_memory): New declaration.
5148 * target-delegates.c: Regenerate.
5149
e59fa00f
MM
51502014-05-20 Markus Metzger <markus.t.metzger@intel.com>
5151
5152 * record-btrace.c (record_btrace_step_thread): Check for empty history.
5153
f2205de0
HZ
51542014-05-20 Hui Zhu <hui@codesourcery.com>
5155 Yao Qi <yao@codesourcery.com>
5156
5157 PR backtrace/16558
5158 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
5159 and change address of sp and pc.
5160
c4e54771
TT
51612014-05-19 Tom Tromey <tromey@redhat.com>
5162
5163 * gdbtypes.c (rank_function): Use XNEWVEC.
5164 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
5165
73051182
DE
51662014-05-19 Doug Evans <dje@google.com>
5167
5168 * dwarf2read.c (build_type_psymtabs_1): Renamed from
5169 build_type_unit_groups and moved closer to only caller. Remove
5170 arguments. All references updated. Remove outdated .gdb_index
5171 comment.
5172 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
5173 build_type_psymtabs_1.
5174
8832e7e3
DE
51752014-05-19 Doug Evans <dje@google.com>
5176
5177 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
5178 n_type_unit_groups, all_type_unit_groups. All uses removed.
5179 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
5180 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
5181 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
5182 (add_type_unit_group_to_table): Delete.
5183
cd8ae15e
DE
51842014-05-19 Doug Evans <dje@google.com>
5185
5186 * eval.c (evaluate_subexp_standard): Add some comments.
5187
08f4850b
DE
51882014-05-17 Doug Evans <xdje42@gmail.com>
5189
5190 * progspace.c (remove_program_space): Delete, unused.
5191 * progspace.h (remove_program_space): Ditto.
5192
bed8455c
DE
51932014-05-17 Doug Evans <xdje42@gmail.com>
5194
5195 * inferior.c (prune_inferiors): Fix comment.
5196 (remove_inferior_command): Call prune_program_spaces.
5197
8d551b02
DE
51982014-05-16 Doug Evans <dje@google.com>
5199
5200 New command line option -D.
5201 * NEWS: Mention it.
5202 * main.c (set_gdb_data_directory): New function.
5203 (captured_main): Recognize -D. Flag error for --data-directory "".
5204 Call set_gdb_data_directory.
5205 (print_gdb_help): Print --data-directory, -D.
5206 * main.h (set_gdb_data_directory): Declare.
5207 * top.c (staged_gdb_datadir): New static global.
5208 (set_gdb_datadir): Call set_gdb_data_directory
5209 (show_gdb_datadir): New function.
5210 (init_main): Update init of data-directory parameter.
5211
18848e28
GF
52122014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
5213
5214 Import the "dirfd" gnulib module.
5215 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
5216 * gnulib/aclocal.m4: Update.
5217 * gnulib/config.in: Update.
5218 * gnulib/configure: Update.
5219 * gnulib/import/Makefile.am: Update.
5220 * gnulib/import/Makefile.in: Update.
5221 * gnulib/import/dirfd.c: New.
5222 * gnulib/import/m4/dirfd.m4: New.
5223 * gnulib/import/m4/gnulib-cache.m4: Update.
5224 * gnulib/import/m4/gnulib-comp.m4: Update.
5225
95c64f92
YQ
52262014-05-16 Pierre Muller <muller@sourceware.org>
5227 Yao Qi <yao@codesourcery.com>
5228
5229 * valprint.c (print_wchar): Move the code on checking whether
5230 W is a printable wide char to the default branch of switch
5231 statement below. Call wchar_printable instead of gdb_iswprint.
5232
cac395ea
TM
52332014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
5234
19679eca 5235 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
cac395ea
TM
5236 ldr.w and ldrd instructions.
5237
83655187
DE
52382014-05-15 Doug Evans <dje@google.com>
5239
5240 * dwarf2read.c (read_structure_type): Delete outdated comments.
5241
dd756689
TT
52422014-05-14 Tom Tromey <tromey@redhat.com>
5243
5244 * macrocmd.c (print_macro_definition): Reindent.
5245
75ddda77
DE
52462014-05-13 Doug Evans <xdje42@gmail.com>
5247
5248 * python/py-cmd.c (cmdpy_completer): Add comment.
5249 (completers): Make const.
5250
b0f16a3e
SM
52512014-05-13 Simon Marchi <simon.marchi@ericsson.com>
5252
5253 * infrun.c (resume): Remove should_resume (unused). Move up
5254 declaration of resume_ptid.
5255
033c3379
TT
52562014-05-13 Tom Tromey <tromey@redhat.com>
5257
5258 * language.h (unop_type_check): Remove.
5259 (binop_type_check): Don't declare.
5260
9b44a3a5
AA
52612014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
5262
5263 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
5264 call to regcache_raw_collect.
5265
303a33fa
SM
52662014-05-12 Simon Marchi <simon.marchi@ericsson.com>
5267
5268 * mi/mi-console.c (mi_console_raw_packet): Use the value from
5269 mi_console->quote as the quoting character.
5270
196100a0
SM
52712014-05-12 Simon Marchi <simon.marchi@ericsson.com>
5272
5273 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
5274
f989a1c8
TT
52752014-04-29 Tom Tromey <tromey@redhat.com>
5276
5277 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
5278 "show debug varobj".
5279
9404b58f
KM
52802014-05-07 Kyle McMartin <kyle@redhat.com>
5281
5282 Pushed by Joel Brobecker <brobecker@adacore.com>.
5283 * aarch64-tdep.c (aarch64_software_single_step): New function.
5284 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
5285 with aarch64_software_single_step.
5286
5e49ba57
JB
52872014-05-05 Joel Brobecker <brobecker@adacore.com>
5288
5289 GDB 7.7.1 released.
5290
c888a17d
KS
52912014-05-05 Keith Seitz <keiths@redhat.com>
5292
5293 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
5294 variable or history value is successfully parsed.
5295
290a839c
YQ
52962014-05-05 Yao Qi <yao@codesourcery.com>
5297 Pedro Alves <palves@redhat.com>
5298
5299 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
5300 address of blocks that intersects the requested range. Trim
5301 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
5302 sections.
5303 * ctf.c (ctf_xfer_partial): Likewise.
5304
91256dc2
YQ
53052014-05-05 Yao Qi <yao@codesourcery.com>
5306
5307 * printcmd.c (display_command): Remove the check to
5308 target_has_execution.
5309
07284463
MK
53102014-05-03 Mark Kettenis <kettenis@gnu.org>
5311
5312 * ppcobsd-nat.c: Include "obsd-nat.h".
5313 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
5314 add_target.
5315 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
5316
30a1e6cc
SDJ
53172014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
5318
5319 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
5320 and 16-bit signed and unsigned arguments. Update comment.
5321 (stap_parse_probe_arguments): Extend code to handle such
5322 arguments. Use warning instead of complaint to notify about
5323 unrecognized bitness.
5324
f33da99a
SDJ
53252014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
5326
5327 PR breakpoints/16889
5328 * stap-probe.c (stap_parse_probe_arguments): Simplify
5329 check for non-prefixed probes (i.e., probes whose
5330 arguments do not start with "N@"). Always set the
5331 argument type to a sane value.
5332
95cf3b38
DT
53332014-05-01 David Taylor <dtaylor@emc.com>
5334
5335 * remote.c (compare_sections_command): Add -r option to compare
5336 all loadable read-only sections.
5337
1cfdf534
SC
53382014-04-30 Siva Chandra Reddy <sivachandra@google.com>
5339
5340 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
5341 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
5342 Update all callers.
5343 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
5344 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
5345 Remove unused CORE_ADDR argument. Update all callers.
5346
ca4f7f8b
PA
53472014-04-29 Pedro Alves <palves@redhat.com>
5348
5349 * remote.c (struct packet_config) <detect>: Extend comment.
5350 (add_packet_config_cmd): Don't set the config's detect or support
5351 fields here.
5352 (init_all_packet_configs): Also initialize the config's 'detect'
5353 field.
5354 (reset_all_packet_configs_support): New function.
5355 (remote_open_1): Call reset_all_packet_configs_support instead of
5356 init_all_packet_configs.
5357 (_initialize_remote): Initialize all packet configs. Assert that
5358 all packets have an associated command, except a few known
5359 outliers.
5360
11c1ba78
JB
53612014-04-28 Joel Brobecker <brobecker@adacore.com>
5362
5363 * dwarf2read.c (read_subrange_type): Handle dynamic
5364 DW_AT_lower_bound attributes.
5365
8739bc53
JB
53662014-04-28 Joel Brobecker <brobecker@adacore.com>
5367
5368 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
5369 dynamic bounds before computing its upper bound.
5370 (ada_discrete_type_low_bound): Same as above with the lower bound.
5371
6f8a3220
JB
53722014-04-28 Joel Brobecker <brobecker@adacore.com>
5373
5374 * dwarf2read.c (is_dynamic_type): Return true for dynamic
5375 range types. Adjust the array handling implementation to
5376 take advantage of this change.
5377 (resolve_dynamic_range): New function, mostly extracted from
5378 resolve_dynamic_bounds.
5379 (resolve_dynamic_array): New function, mostly extracted from
5380 resolve_dynamic_bounds.
5381 (resolve_dynamic_bounds): Delete.
5382 (resolve_dynamic_type): Reimplement. Add handling of
5383 TYPE_CODE_RANGE types.
5384
4d072ce4
JB
53852014-04-28 Joel Brobecker <brobecker@adacore.com>
5386
5387 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
5388 handling of parallel ___XA types.
5389
52865325
JB
53902014-04-28 Joel Brobecker <brobecker@adacore.com>
5391
5392 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
5393 unnecessary second call to static_unwrap_type.
5394
433e77fa
HZ
53952014-04-27 Hui Zhu <hui@codesourcery.com>
5396
5397 * stack.c (print_frame_info): Call do_gdb_disassembly with
5398 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
5399
b51a69ee
DE
54002014-04-26 Doug Evans <xdje42@gmail.com>
5401
5402 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
5403
7ae1a6a6
PA
54042014-04-25 Pedro Alves <palves@redhat.com>
5405
5406 PR server/16255
5407 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
5408 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
5409 and newline from built string.
5410 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
5411 (linux_ptrace_attach_fail_reason): ... this.
5412 * linux-nat.c (linux_nat_attach): Adjust to use
5413 linux_ptrace_attach_fail_reason.
5414
4082afcc
PA
54152014-04-25 Pedro Alves <palves@redhat.com>
5416
5417 * remote.c (struct remote_state): Remove multi_process_aware,
5418 non_stop_aware, cond_tracepoints, cond_breakpoints,
5419 breakpoint_commands, fast_tracepoints, static_tracepoints,
5420 install_in_trace, disconnected_tracing,
5421 enable_disable_tracepoints, string_tracing, and
5422 augmented_libraries_svr4_read fields.
5423 (remote_multi_process_p): Move further below in the file.
5424 (struct packet_config): Add comments.
5425 (update_packet_config): Delete function.
5426 (show_packet_config_cmd): Use packet_config_support.
5427 (add_packet_config_cmd): Use NULL as set callback.
5428 (packet_ok): "set remote foo-packet"-style commands no longer
5429 change config->supported -- adjust.
5430 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
5431 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
5432 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
5433 (PACKET_QNonStop, PACKET_multiprocess_feature)
5434 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
5435 (PACKET_DisconnectedTracing_feature)
5436 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
5437 (set_remote_protocol_packet_cmd): Delete function.
5438 (packet_config_support, packet_support): New functions.
5439 (set_remote_protocol_Z_packet_cmd): Don't call
5440 update_packet_config.
5441 (remote_query_attached, remote_pass_signals)
5442 (remote_program_signals, remote_threads_info)
5443 (remote_threads_extra_info, remote_start_remote): Use
5444 packet_support.
5445 (remote_start_remote): Use packet_config_support and
5446 packet_support.
5447 (init_all_packet_configs): Set all packets to unknown support,
5448 instead of calling update_packet_config.
5449 (remote_check_symbols): Use packet_support.
5450 (remote_supported_packet): Unconditionally set the packet config's
5451 support status.
5452 (remote_multi_process_feature, remote_non_stop_feature)
5453 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
5454 (remote_breakpoint_commands_feature)
5455 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
5456 (remote_install_in_trace_feature)
5457 (remote_disconnected_tracing_feature)
5458 (remote_enable_disable_tracepoint_feature)
5459 (remote_string_tracing_feature)
5460 (remote_augmented_libraries_svr4_read_feature): Delete functions.
5461 (remote_protocol_features): Adjust to use remote_supported_packet
5462 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
5463 "ConditionalTracepoints", "ConditionalBreakpoints",
5464 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
5465 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
5466 "EnableDisableTracepoints", and "tracenz".
5467 (remote_query_supported): Use packet_support.
5468 (remote_open_1): Adjust.
5469 (extended_remote_attach_1): Use packet_support. Switch on the
5470 result of packet_ok instead of checking whether the packet ended
5471 up disabled.
5472 (remote_vcont_resume): Use packet_support.
5473 (remote_resume, remote_stop_ns, fetch_register_using_p)
5474 (remote_prepare_to_store, store_register_using_P)
5475 (check_binary_download, remote_write_bytes): Use packet_support.
5476 (remote_vkill): Use packet_support. Switch on the result of
5477 packet_ok instead of checking whether the packet ended up
5478 disabled.
5479 (extended_remote_supports_disable_randomization): Use
5480 packet_support.
5481 (extended_remote_run): Switch on the result of packet_ok instead
5482 of checking whether the packet ended up disabled.
5483 (remote_insert_breakpoint, remote_remove_breakpoint)
5484 (remote_insert_watchpoint, remote_remove_watchpoint)
5485 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
5486 packet_support.
5487 (remote_search_memory): Use packet_config_support.
5488 (remote_get_thread_local_address, remote_get_tib_address)
5489 (remote_hostio_send_command, remote_can_execute_reverse): Use
5490 packet_support.
5491 (remote_supports_cond_tracepoints)
5492 (remote_supports_cond_breakpoints)
5493 (remote_supports_fast_tracepoints)
5494 (remote_supports_static_tracepoints)
5495 (remote_supports_install_in_trace)
5496 (remote_supports_enable_disable_tracepoint)
5497 (remote_supports_string_tracing)
5498 (remote_can_run_breakpoint_commands): Rewrite, checking whether
5499 the packet config says the feature is enabled or disabled.
5500 (remote_download_tracepoint, remote_trace_set_readonly_regions)
5501 (remote_get_trace_status): Use packet_support.
5502 (remote_set_disconnected_tracing): Adjust to check whether the
5503 feature is enabled with packet_support.
5504 (remote_set_trace_buffer_size, remote_use_agent)
5505 (remote_can_use_agent, remote_supports_btrace): Use
5506 packet_support.
5507 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
5508 Use packet_config_support.
5509 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
5510 the packet config says the feature is enabled or disabled.
5511 (set_range_stepping): Use packet_support.
5512
bdb52a22
TT
55132014-04-25 Tom Tromey <tromey@redhat.com>
5514
5515 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
5516 argument.
5517
e9475ead
SA
55182014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
5519
5520 * NEWS: Mention support for C99 variable length arrays.
5521
82eacd52
JB
55222014-04-24 Joel Brobecker <brobecker@adacore.com>
5523
5524 * ada-lang.c (standard_exc): Expand introductory comment.
5525
01f9f808
MS
55262014-04-24 Michael Sturm <michael.sturm@mintel.com>
5527 Walfred Tedeschi <walfred.tedeschi@intel.com>
5528
5529 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
5530 AVX512 registers.
5531 (amd64_linux_read_description): Add code to handle AVX512 xstate
5532 mask and return respective tdesc.
5533 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
5534 and features/i386/x32-avx512-linux.c.
5535 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
5536 (amd64_linux_core_read_description): Add code to handle AVX512
5537 xstate mask and return respective tdesc.
5538 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
5539 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
5540 calculation.
5541 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
5542 (tdesc_amd64_avx512_linux): New prototype.
5543 (tdesc_x32_avx512_linux): Likewise.
5544 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
5545 features/i386/x32-avx512.c.
5546 (amd64_ymm_avx512_names): New register names for pseudo
5547 registers YMM16-31.
5548 (amd64_ymmh_avx512_names): New register names for raw registers
5549 YMMH16-31.
5550 (amd64_k_names): New register names for K registers.
5551 (amd64_zmmh_names): New register names for ZMM raw registers.
5552 (amd64_zmm_names): New registers names for ZMM pseudo registers.
5553 (amd64_xmm_avx512_names): New register names for XMM16-31
5554 registers.
5555 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
5556 registers.
5557 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
5558 if feature is present.
5559 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
5560 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
5561 (AMD64_NUM_REGS): Adjust to new number of registers.
5562 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
5563 registers supplied via XSTATE by AVX512 registers.
5564 (i386_linux_read_description): Add case for AVX512.
5565 * i386-linux-tdep.c: Include i386-avx512-linux.c.
5566 (i386_linux_gregset_reg_offset): Add AVX512 registers.
5567 (i386_linux_core_read_description): Add case for AVX512.
5568 (i386_linux_init_abi): Install supported register note section
5569 for AVX512.
5570 (_initialize_i386_linux_tdep): Add call to tdesc init function for
5571 AVX512.
5572 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
5573 registers to be number of zmm7h + 1.
5574 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
5575 * i386-tdep.c: Include features/i386/i386-avx512.c.
5576 (i386_zmm_names): Add ZMM pseudo register names array.
5577 (i386_zmmh_names): Add ZMM raw register names array.
5578 (i386_k_names): Add K raw register names array.
5579 (num_lower_zmm_regs): Add constant for the number of lower ZMM
5580 registers. AVX512 has 16 more ZMM registers than there are YMM
5581 registers.
5582 (i386_zmmh_regnum_p): Add function to look up register number of
5583 ZMM raw registers.
5584 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
5585 (i386_k_regnum_p): Likewise for K raw registers.
5586 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
5587 registers added by AVX512.
5588 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
5589 registers added by AVX512.
5590 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
5591 added by AVX512.
5592 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
5593 (i386_pseudo_register_name): Add ZMM pseudo registers.
5594 (i386_zmm_type): Construct and return vector registers type for ZMM
5595 registers.
5596 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
5597 ZMM0-31 pseudo registers and K registers.
5598 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
5599 and YMM16-31 registers from register cache.
5600 (i386_pseudo_register_write): Add code to write K, ZMM and
5601 YMM16-31 registers.
5602 (i386_register_reggroup_p): Add code to include/exclude AVX512
5603 registers in/from respective register groups.
5604 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
5605 registers if feature is present in xcr0.
5606 (i386_gdbarch_init): Add code to initialize AVX512 feature
5607 variables in tdep structure, wire in pseudo registers and call
5608 initialize_tdesc_i386_avx512.
5609 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
5610 variables.
5611 (i386_regnum): Add AVX512 registers.
5612 (I386_SSE_NUM_REGS): New define for number of SSE registers.
5613 (I386_AVX_NUM_REGS): Likewise for AVX registers.
5614 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
5615 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
5616 512 bits wide.
5617 (i386_xmm_avx512_regnum_p): New prototype for register look up.
5618 (i386_ymm_avx512_regnum_p): Likewise.
5619 (i386_k_regnum_p): Likewise.
5620 (i386_zmm_regnum_p): Likewise.
5621 (i386_zmmh_regnum_p): Likewise.
5622 * i387-tdep.c : Update year in copyright notice.
5623 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
5624 XSAVE buffer.
5625 (XSAVE_YMM_AVX512_ADDR): New macro.
5626 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
5627 XSAVE buffer.
5628 (XSAVE_XMM_AVX512_ADDR): New macro.
5629 (xsave_avx512_k_offset): New table for K register offsets in
5630 XSAVE buffer.
5631 (XSAVE_AVX512_K_ADDR): New macro.
5632 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
5633 in XSAVE buffer.
5634 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
5635 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
5636 buffer.
5637 (i387_collect_xsave): Add code to collect AVX512 registers from
5638 XSAVE buffer.
5639 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
5640 of XMM16-31 registers.
5641 (I387_NUM_K_REGS): New define for number of K registers.
5642 (I387_K0_REGNUM): New define for K0 register number.
5643 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
5644 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
5645 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
5646 registers.
5647 (I387_YMM16H_REGNUM): New define for YMM16H register number.
5648 (I387_XMM16_REGNUM): New define for XMM16 register number.
5649 (I387_YMM0_REGNUM): New define for YMM0 register number.
5650 (I387_KEND_REGNUM): New define for last K register number.
5651 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
5652 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
5653 number.
5654 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
5655 number.
5656 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
5657 size.
5658 * features/Makefile: Add AVX512 related files.
5659 * features/i386/32bit-avx512.xml: New file.
5660 * features/i386/64bit-avx512.xml: Likewise.
5661 * features/i386/amd64-avx512-linux.c: Likewise.
5662 * features/i386/amd64-avx512-linux.xml: Likewise.
5663 * features/i386/amd64-avx512.c: Likewise.
5664 * features/i386/amd64-avx512.xml: Likewise.
5665 * features/i386/i386-avx512-linux.c: Likewise.
5666 * features/i386/i386-avx512-linux.xml: Likewise.
5667 * features/i386/i386-avx512.c: Likewise.
5668 * features/i386/i386-avx512.xml: Likewise.
5669 * features/i386/x32-avx512-linux.c: Likewise.
5670 * features/i386/x32-avx512-linux.xml: Likewise.
5671 * features/i386/x32-avx512.c: Likewise.
5672 * features/i386/x32-avx512.xml: Likewise.
5673 * regformats/i386/amd64-avx512-linux.dat: New file.
5674 * regformats/i386/amd64-avx512.dat: Likewise.
5675 * regformats/i386/i386-avx512-linux.dat: Likewise.
5676 * regformats/i386/i386-avx512.dat: Likewise.
5677 * regformats/i386/x32-avx512-linux.dat: Likewise.
5678 * regformats/i386/x32-avx512.dat: Likewise.
5679 * NEWS: Add note about new support for AVX512.
5680
5681
08351840
PA
56822014-04-23 Pedro Alves <palves@redhat.com>
5683
5684 * breakpoint.c (insert_bp_location): Tolerate errors if the
5685 breakpoint is set in a user-loaded objfile.
5686 (remove_breakpoint_1): Likewise. Also tolerate errors if the
5687 location is marked shlib_disabled. If the breakpoint is set in a
5688 user-loaded objfile is a GDB-side memory breakpoint, validate it
5689 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
5690 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
5691 flag.
5692 * mem-break.c (memory_validate_breakpoint): New function.
5693 * objfiles.c (userloaded_objfile_contains_address_p): New
5694 function.
5695 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
5696 * target.h (memory_validate_breakpoint): New declaration.
5697
076855f9
PA
56982014-04-23 Pedro Alves <palves@redhat.com>
5699
5700 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
5701 the breakpoint is set in a shared library, only suppress
5702 errors for software breakpoints, not hardware breakpoints.
5703
483805cf
PA
57042014-04-22 Pedro Alves <palves@redhat.com>
5705
5706 * infrun.c (schedlock_applies): New function, factored out from
5707 find_thread_needs_step_over.
5708 (find_thread_needs_step_over): Use it.
5709 (switch_back_to_stepped_thread): Always clear trap_expected if the
5710 step over is finished. Return early if scheduler locking applies.
5711 Look for the stepping thread and a potential step-over thread with
5712 a single loop.
5713 (currently_stepping_or_nexting_callback): Delete.
5714
a75fef0e
NC
57152014-04-22 Nick Clifton <nickc@redhat.com>
5716
5717 * NEWS: Mention that ARM sim now supports tracing.
5718
48b6e87e
YQ
57192014-04-22 Yao Qi <yao@codesourcery.com>
5720
5721 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
5722 to ...
5723 * tracefile.c (tracefile_fetch_registers): ... it. New
5724 function.
5725 * tracefile.h (tracefile_fetch_registers): Declare.
5726 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
5727 tracefile_fetch_registers.
5728
17617f2d
EZ
57292014-04-19 Eli Zaretskii <eliz@gnu.org>
5730
5731 PR gdb/14018
5732 * windows-nat.c (thread_rec): Don't display a warning when
5733 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
5734 fails for any reason, set th->suspended to -1, so that we don't
5735 try to resume such a thread. Also, don't return NULL in these
5736 cases, to avoid completely ruin the session due to "PC register is
5737 not available" error.
5738 (do_windows_fetch_inferior_registers): Check errors in
5739 GetThreadContext call.
5740 (windows_continue): Accept an additional argument KILLED; if not
5741 zero, ignore errors in the SetThreadContext call, since the
5742 inferior was killed and is shutting down.
5743 (windows_resume, get_windows_debug_event)
5744 (windows_create_inferior, windows_mourn_inferior)
5745 (windows_kill_inferior): All callers of windows_continue changed
5746 to adjust to its new calling sequence.
5747
5723a6fd
YQ
57482014-04-19 Yao Qi <yao@codesourcery.com>
5749
5750 * ctf.c (ctf_open): Call post_create_inferior.
5751
614d5099
YQ
57522014-04-19 Yao Qi <yao@codesourcery.com>
5753
5754 * ctf.c (handle_id): New static variable.
5755 (ctf_open_dir): Get handle_id from bt_context_add_trace return
5756 value. Get the declaration of event "register" and get length
5757 of field "contents".
5758
dac3e710
YQ
57592014-04-19 Yao Qi <yao@codesourcery.com>
5760
5761 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
5762
2bca57ba
SC
57632014-04-18 Siva Chandra Reddy <sivachandra@google.com>
5764
5765 * valops.c (oload_method_static): Remove unnecessary argument
5766 METHOD. Update all callers.
5767
51d48146
PA
57682014-04-18 Pedro alves <palves@redhat.com>
5769 Tom Tromey <tromey@redhat.com>
5770
5771 PR backtrace/15558
5772 * frame.c (get_prev_frame_1): Rename to ...
5773 (get_prev_frame_always): ... this, and make extern. Adjust.
5774 (skip_artificial_frames): Use get_prev_frame_always.
5775 (frame_unwind_caller_id, frame_pop, get_prev_frame)
5776 (get_frame_unwind_stop_reason): Adjust to rename.
5777 * frame.h (get_prev_frame_always): Declare.
5778 * inline-frame.c: Include frame.h.
5779 (inline_frame_this_id): Use get_prev_frame_always.
5780
1bdad2e0
TG
57812014-04-18 Tristan Gingold <gingold@adacore.com>
5782
5783 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
5784 code by using bfd_mach_o_get_base_address.
5785
7ce16bd4
UW
57862014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
5787
5788 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
5789 (spu_ax_pseudo_register_collect): New function.
5790 (spu_ax_pseudo_register_push_stack): Likewise.
5791 (spu_dwarf_reg_to_regnum): Likewise.
5792 (spu_gdbarch_init): Install them. Append DWARF unwinders.
5793
2ed3c037
UW
57942014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
5795
5796 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
5797 Replace FRAME argument with FRAME_ID.
5798 * gdbarch.c, gdbarch.h: Regenerate.
5799 * findvar.c (default_value_from_register): Add GDBARCH argument;
5800 replace FRAME by FRAME_ID. No longer call get_frame_id.
5801 (value_from_register): Update call to gdbarch_value_from_register.
5802 * value.h (default_value_from_register): Update prototype.
5803 * s390-linux-tdep.c (s390_value_from_register): Update interface
5804 and call to default_value_from_register.
5805 * spu-tdep.c (spu_value_from_register): Likewise.
5806
5807 * findvar.c (address_from_register): Remove TYPE argument.
5808 Do not call value_from_register; use gdbarch_value_from_register
5809 with null_frame_id instead.
5810 * value.h (address_from_register): Update prototype.
5811 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
5812 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
5813 address_from_register interface change.
5814
71e50e83
YQ
58152014-04-17 Yao Qi <yao@codesourcery.com>
5816
5817 * gdbtypes.h: Update comments to link to types and macros'
5818 definitions.
5819
7a23c549
SC
58202014-04-16 Siva Chandra Reddy <sivachandra@google.com>
5821
5822 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
5823
22869d73
KS
58242014-04-16 Keith Seitz <keiths@redhat.com>
5825
5826 PR gdb/15827
5827 * dwarf2read.c (skip_one_die): Check that all relative-offset
5828 sibling DIEs fall within range of the current reader's buffer.
5829 (read_partial_die): Likewise.
5830
c4f87ca6
KS
58312014-04-16 Keith Seitz <keiths@redhat.com>
5832
5833 PR c++/16597
5834 * cp-namespace.c (lookup_symbol_file): If the type name of
5835 `this' is NULL, return immediately.
5836
b50c8614
KS
58372014-04-14 Keith Seitz <keiths@redhat.com>
5838
5839 PR c++/16253
5840 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
5841 from symbol_matches_domain in symtab.c. All local callers
5842 of symbol_matches_domain updated.
5843 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
5844 search STRUCT_DOMAIN.
5845 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
5846 independently. standard_lookup will do that automatically.
5847 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
5848 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5849 (cp_lookup_symbol_in_namespace): Likewise.
5850 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
5851 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
5852 may return a STRUCT_DOMAIN match.
5853 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
5854 * cp-support.c: Include language.h.
5855 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
5856 VAR_DOMAIN.
5857 * psymtab.c (match_partial_symbol): Compare the requested
5858 domain with the symbol's domain directly.
5859 (lookup_partial_symbol): Likewise.
5860 * symtab.c (lookup_symbol_in_language): Explain when/why
5861 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5862 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
5863 appropriate languages.
5864 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
5865 and moved to ada-lang.c
5866 (lookup_block_symbol): Explain that this function only returns
5867 symbol matching the requested DOMAIN.
5868 Compare the requested domain with the symbol's domain directly.
5869 (iterate_over_symbols): Compare the requested domain with the
5870 symbol's domain directly.
5871 * symtab.h (symbol_matches_domain): Remove.
5872
3d567982
TT
58732014-04-14 Tom Tromey <tromey@redhat.com>
5874
5875 PR c++/15246:
5876 * c-exp.y (type_aggregate_p): New function.
5877 (qualified_name, classify_inner_name): Use it.
5878 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
5879 and TYPE_TARGET_TYPE of an enum type.
5880 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
5881 an enum type.
5882 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
5883 handle TYPE_DECLARED_CLASS.
5884 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
5885 types.
5886 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
5887 * valops.c (enum_constant_from_type): New function.
5888 (value_aggregate_elt): Use it.
5889 * cp-namespace.c (cp_lookup_nested_symbol): Handle
5890 TYPE_CODE_ENUM.
5891
c848d642
TT
58922014-04-14 Tom Tromey <tromey@redhat.com>
5893
5894 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
5895 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
5896 const.
5897 * value.h (value_aggregate_elt): Update.
5898
0626fc76
TT
58992014-04-14 Tom Tromey <tromey@redhat.com>
5900
5901 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
5902
5ecaaa66
SA
59032014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5904
5905 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5906 (evaluate_subexp_standard): Pass noside argument.
5907 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5908 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5909 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5910 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5911 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5912
1612e0c0
SA
59132014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5914
5915 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5916 points to a constant blob.
5917
c451ebe5
SA
59182014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5919
5920 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5921 property and store it as the high bound and flag the range accordingly.
5922 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5923 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5924 * gdbtypes.h (enum range_flags): New enum.
5925 (struct range_bounds): Add flags member.
5926
1d42e4c4
SA
59272014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5928
5929 * c-typeprint.c (c_type_print_varspec_suffix): Added
5930 check for not yet resolved high bound. If unresolved, print
5931 "variable length" string to the console instead of random
5932 length.
5933
9f1f738a
SA
59342014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5935
5936 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
5937 value.
5938 (ada_template_to_fixed_record_type_1): Likewise.
5939 (ada_to_fixed_type_1): Likewise.
5940 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5941 (cp_print_value): Likewise.
5942 * d-valprint.c (dynamic_array_type): Likewise.
5943 * findvar.c (address_of_variable): Likewise.
5944 * jv-valprint.c (java_value_print): Likewise.
5945 * valops.c (value_ind): Likewise.
5946 * value.c (coerce_ref): Likewise.
5947
3c8452d4
SA
59482014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5949
5950 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5951 value and retrieve the dynamic type size.
5952
4ad88275
SA
59532014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5954
5955 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5956 passed to sizeof is dynamic evaluate the argument to compute the length.
5957
80180f79
SA
59582014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5959 Joel Brobecker <brobecker@adacore.com>
5960
5961 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5962 (dwarf2_evaluate_property): New function.
5963 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5964 * dwarf2read.c (attr_to_dynamic_prop): New function.
5965 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5966 attribute.
5967 * gdbtypes.c: Include dwarf2loc.h.
5968 (is_dynamic_type): New function.
5969 (resolve_dynamic_type): New function.
5970 (resolve_dynamic_bounds): New function.
5971 (get_type_length): New function.
5972 (check_typedef): Use get_type_length to compute type length.
5973 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5974 (TYPE_LOW_BOUND_KIND): New macro.
5975 (is_dynamic_type): New function prototype.
5976 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5977 to resolve dynamic properties of the type. Update comment.
5978 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5979
a1556843
RH
59802014-04-14 Richard Henderson <rth@redhat.com>
5981
5982 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
5983
0be03e84
DE
59842014-04-12 Siva Chandra Reddy <sivachandra@google.com>
5985 Doug Evans <xdje42@gmail.com>
5986
5987 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
5988 dereference TYPE_CODE_REF values.
5989
6b662e19
JB
59902014-04-11 Joel Brobecker <brobecker@adacore.com>
5991
5992 Revert the following changes due to regressions:
5993
5994 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5995 (dwarf2_evaluate_property): New function.
5996 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5997 * dwarf2read.c (attr_to_dynamic_prop): New function.
5998 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5999 attribute.
6000 * gdbtypes.c: Include dwarf2loc.h.
6001 (is_dynamic_type): New function.
6002 (resolve_dynamic_type): New function.
6003 (resolve_dynamic_bounds): New function.
6004 (get_type_length): New function.
6005 (check_typedef): Use get_type_length to compute type length.
6006 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6007 (TYPE_LOW_BOUND_KIND): New macro.
6008 (is_dynamic_type): New function prototype.
6009 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6010 to resolve dynamic properties of the type. Update comment.
6011 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6012
6013 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6014 passed to sizeof is dynamic evaluate the argument to compute the length.
6015
6016 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6017 value and retrieve the dynamic type size.
6018
6019 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
6020 (ada_template_to_fixed_record_type_1): Likewise.
6021 (ada_to_fixed_type_1): Likewise.
6022 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6023 (cp_print_value): Likewise.
6024 * d-valprint.c (dynamic_array_type): Likewise.
6025 * eval.c (evaluate_subexp_with_coercion): Likewise.
6026 * findvar.c (address_of_variable): Likewise.
6027 * jv-valprint.c (java_value_print): Likewise.
6028 * valops.c (value_ind): Likewise.
6029 * value.c (coerce_ref): Likewise.
6030
6031 * c-typeprint.c (c_type_print_varspec_suffix): Added
6032 check for not yet resolved high bound. If unresolved, print
6033 "variable length" string to the console instead of random
6034 length.
6035
6036 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6037 property and store it as the high bound and flag the range accordingly.
6038 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6039 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6040 * gdbtypes.h (enum range_flags): New enum.
6041 (struct range_bounds): Add flags member.
6042
6043 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6044 points to a constant blob.
6045
6046 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6047 (evaluate_subexp_standard): Pass noside argument.
6048 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6049 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6050 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6051 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6052 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6053
245a5f0b
KS
60542014-04-11 Keith Seitz <keiths@redhat.com>
6055
6056 PR c++/16675
6057 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
6058 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
6059 reference types.
6060
3bce8237
SA
60612014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6062
6063 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6064 (evaluate_subexp_standard): Pass noside argument.
6065 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6066 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6067 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6068 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6069 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6070
92b09522
SA
60712014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6072
6073 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6074 points to a constant blob.
6075
e1969afb
SA
60762014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6077
6078 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6079 property and store it as the high bound and flag the range accordingly.
6080 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6081 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6082 * gdbtypes.h (enum range_flags): New enum.
6083 (struct range_bounds): Add flags member.
6084
b86138fb
SA
60852014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6086
6087 * c-typeprint.c (c_type_print_varspec_suffix): Added
6088 check for not yet resolved high bound. If unresolved, print
6089 "variable length" string to the console instead of random
6090 length.
6091
bcd629a4
SA
60922014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6093
6094 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
6095 (ada_template_to_fixed_record_type_1): Likewise.
6096 (ada_to_fixed_type_1): Likewise.
6097 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6098 (cp_print_value): Likewise.
6099 * d-valprint.c (dynamic_array_type): Likewise.
6100 * eval.c (evaluate_subexp_with_coercion): Likewise.
6101 * findvar.c (address_of_variable): Likewise.
6102 * jv-valprint.c (java_value_print): Likewise.
6103 * valops.c (value_ind): Likewise.
6104 * value.c (coerce_ref): Likewise.
6105
04b19544
SA
61062014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6107
6108 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6109 value and retrieve the dynamic type size.
6110
26cb189f
SA
61112014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6112
6113 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6114 passed to sizeof is dynamic evaluate the argument to compute the length.
6115
37c1ab67
SA
61162014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6117
6118 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6119 (dwarf2_evaluate_property): New function.
6120 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6121 * dwarf2read.c (attr_to_dynamic_prop): New function.
6122 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6123 attribute.
6124 * gdbtypes.c: Include dwarf2loc.h.
6125 (is_dynamic_type): New function.
6126 (resolve_dynamic_type): New function.
6127 (resolve_dynamic_bounds): New function.
6128 (get_type_length): New function.
6129 (check_typedef): Use get_type_length to compute type length.
6130 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6131 (TYPE_LOW_BOUND_KIND): New macro.
6132 (is_dynamic_type): New function prototype.
6133 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6134 to resolve dynamic properties of the type. Update comment.
6135 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6136
729efb13
SA
61372014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6138
6139 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
6140 declaring high/low bounds and change uses accordingly. Call
6141 create_range_type instead of create_static_range_type.
6142 * gdbtypes.c (create_range_type): New function.
6143 (create_range_type): Convert bounds into struct bound_prop and pass
6144 them to create_range_type.
6145 * gdbtypes.h (struct bound_prop): New struct.
6146 (create_range_type): New function prototype.
6147 (struct range_bounds): Use struct bound_prop instead of LONGEST for
6148 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
6149 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
6150 part of the bound.
6151 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
6152
0c9c3474
SA
61532014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6154
6155 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
6156 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
6157 * ada-lang.c: All uses of create_range_type updated.
6158 * coffread.c: All uses of create_range_type updated.
6159 * dwarf2read.c: All uses of create_range_type updated.
6160 * f-exp.y: All uses of create_range_type updated.
6161 * m2-valprint.c: All uses of create_range_type updated.
6162 * mdebugread.c: All uses of create_range_type updated.
6163 * stabsread.c: All uses of create_range_type updated.
6164 * valops.c: All uses of create_range_type updated.
6165 * valprint.c: All uses of create_range_type updated.
6166
9d497a19
PA
61672014-04-10 Pedro Alves <palves@redhat.com>
6168
6169 * breakpoint.c (single_step_breakpoints)
6170 (single_step_gdbarch): Move up in the file.
6171 (one_breakpoint_xfer_memory): New function, factored out from ...
6172 (breakpoint_xfer_memory): ... here. Also process single-step
6173 breakpoints.
6174
15a9128a
TG
61752014-04-09 Tristan Gingold <gingold@adacore.com>
6176
6177 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
6178 comments.
6179 (darwin_decode_exception_message): Free port only after use.
6180
9c97a070
PL
61812014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
6182
6183 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
6184 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
6185 when setting the size of call_length.
6186
7af389b8
SC
61872014-04-07 Siva Chandra Reddy <sivachandra@google.com>
6188
6189 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
6190 dereference TYPE_CODE_REF values.
6191
86ad98c3
JB
61922014-04-07 Joel Brobecker <brobecker@adacore.com>
6193
6194 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
6195 end of warning message.
6196
b0aeadb3
DE
61972014-04-03 Doug Evans <dje@google.com>
6198
6199 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
6200 of stub_comp_unit_die, stub_comp_dir is non-NULL.
6201
5979d6b6
AM
62022014-04-02 Alan Modra <amodra@gmail.com>
6203
6204 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
6205 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
6206 (struct symbol_file_add_from_memory_args): Add size field.
6207 (find_vdso_size): New function.
6208 (add_vsyscall_page): Attempt to find vdso size.
6209
0d60c288
DE
62102014-04-01 Doug Evans <dje@google.com>
6211
6212 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
6213
a41f2563
TG
62142014-04-01 Tristan Gingold <gingold@adacore.com>
6215
6216 * darwin-nat.c (darwin_encode_reply): Add prototype.
6217 (darwin_decode_exception_message): Reply to unknown inferiors.
6218 (darwin_decode_message): Handle message by id. Ignore message
6219 to unknown inferior.
6220 (darwin_wait): Discard unknown messages, add debug trace.
6221
11a865c8
DE
62222014-03-31 Doug Evans <dje@google.com>
6223
6224 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
6225 comp_dir_string.
6226
770e7fc7
DE
62272014-03-31 Doug Evans <dje@google.com>
6228
6229 New option "set print symbol-loading".
6230 * NEWS: Mention it.
6231 * solib.c (solib_read_symbols): Only print symbol loading messages
6232 if requested.
6233 (solib_add): If symbol loading is in "brief" mode, notify user
6234 symbols are being loaded.
6235 (reload_shared_libraries_1): Ditto.
6236 * symfile.c (print_symbol_loading_off): New static global.
6237 (print_symbol_loading_brief): New static global.
6238 (print_symbol_loading_full): New static global.
6239 (print_symbol_loading_enums): New static global.
6240 (print_symbol_loading): New static global.
6241 (print_symbol_loading_p): New function.
6242 (symbol_file_add_with_addrs): Only print symbol loading messages
6243 if requested.
6244 (_initialize_symfile): Register "print symbol-loading" set/show
6245 command.
6246 * symfile.h (print_symbol_loading_p): Declare.
6247
c32c64b7
DE
62482014-03-30 Doug Evans <xdje42@gmail.com>
6249
6250 * infrun.c (set_last_target_status): New function.
6251 (handle_inferior_event): Call it.
6252
7c0bc051
DE
62532014-03-30 Doug Evans <xdje42@gmail.com>
6254
6255 * inferior.h (enum stop_kind): Improve comment.
6256
8776cfe9
JB
62572014-03-28 Joel Brobecker <brobecker@adacore.com>
6258
6259 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
6260 a reference, strip the reference layer before calling
6261 the lang_ops value_has_mutated callback.
6262
410a0ff2
SDJ
62632014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
6264
6265 Remove some globals from our parser.
6266 * language.c (unk_lang_parser): Add "struct parser_state"
6267 argument.
6268 * language.h (struct language_defn) <la_parser>: Likewise.
6269 * parse.c (expout, expout_size, expout_ptr): Remove variables.
6270 (initialize_expout): Add "struct parser_state" argument.
6271 Rewrite function to use the parser state.
6272 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
6273 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
6274 write_exp_elt_longcst, write_exp_elt_dblcst,
6275 write_exp_elt_decfloatcst, write_exp_elt_type,
6276 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6277 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
6278 write_dollar_variable): Likewise.
6279 (parse_exp_in_context_1): Use parser state.
6280 (insert_type_address_space): Add "struct parser_state" argument.
6281 Use parser state.
6282 (increase_expout_size): New function.
6283 * parser-defs.h: Forward declare "struct language_defn" and
6284 "struct parser_state".
6285 (expout, expout_size, expout_ptr): Remove extern declarations.
6286 (parse_gdbarch, parse_language): Rewrite macro declarations to
6287 accept the parser state.
6288 (struct parser_state): New struct.
6289 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
6290 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
6291 write_exp_elt_decfloatcst, write_exp_elt_type,
6292 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6293 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
6294 write_exp_msymbol, write_dollar_variable,
6295 mark_struct_expression, insert_type_address_space): Add "struct
6296 parser_state" argument.
6297 (increase_expout_size): New function.
6298 * utils.c (do_clear_parser_state): New function.
6299 (make_cleanup_clear_parser_state): Likewise.
6300 * utils.h (make_cleanup_clear_parser_state): New function
6301 prototype.
6302 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
6303 Update calls to write_exp* in order to pass the parser state.
6304 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
6305 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
6306 (i386_stap_parse_special_token_three_arg_disp): Likewise.
6307 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
6308 * stap-probe.c (stap_parse_register_operand): Likewise.
6309 (stap_parse_single_operand): Likewise.
6310 (stap_parse_argument_1): Likewise.
6311 (stap_parse_argument): Use parser state.
6312 * stap-probe.h: Include "parser-defs.h".
6313 (struct stap_parse_info) <pstate>: New field.
6314 * c-exp.y (parse_type): Rewrite to use parser state.
6315 (yyparse): Redefine to c_parse_internal.
6316 (pstate): New global variable.
6317 (parse_number): Add "struct parser_state" argument.
6318 (write_destructor_name): Likewise.
6319 (type_exp): Update calls to write_exp* and similars in order to
6320 use parser state.
6321 (exp1, exp, variable, qualified_name, space_identifier,
6322 typename, typebase): Likewise.
6323 (write_destructor_name, parse_number, lex_one_token,
6324 classify_name, classify_inner_name, c_parse): Add "struct
6325 parser_state" argument. Update function to use parser state.
6326 * c-lang.h: Forward declare "struct parser_state".
6327 (c_parse): Add "struct parser_state" argument.
6328 * ada-exp.y (parse_type): Rewrite macro to use parser state.
6329 (yyparse): Redefine macro to ada_parse_internal.
6330 (pstate): New variable.
6331 (write_int, write_object_renaming, write_var_or_type,
6332 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
6333 type_int, type_long, type_long_long, type_float, type_double,
6334 type_long_double, type_char, type_boolean, type_system_address):
6335 Add "struct parser_state" argument.
6336 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
6337 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
6338 var_or_type, aggregate, aggregate_component_list,
6339 positional_list, others, component_group,
6340 component_associations): Update calls to write_exp* and similar
6341 functions in order to use parser state.
6342 (ada_parse, write_var_from_sym, write_int,
6343 write_exp_op_with_string, write_object_renaming,
6344 find_primitive_type, write_selectors, write_ambiguous_var,
6345 write_var_or_type, write_name_assoc, type_int, type_long,
6346 type_long_long, type_float, type_double, type_long_double,
6347 type_char, type_boolean, type_system_address): Add "struct
6348 parser_state" argument. Adjust function to use parser state.
6349 * ada-lang.c (parse): Likewise.
6350 * ada-lang.h: Forward declare "struct parser_state".
6351 (ada_parse): Add "struct parser_state" argument.
6352 * ada-lex.l (processInt, processReal): Likewise. Adjust all
6353 calls to both functions.
6354 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
6355 parser state.
6356 (yyparse): Redefine macro to f_parse_internal.
6357 (pstate): New variable.
6358 (parse_number): Add "struct parser_state" argument.
6359 (type_exp, exp, subrange, typebase): Update calls to write_exp*
6360 and similars in order to use parser state.
6361 (parse_number): Adjust code to use parser state.
6362 (yylex): Likewise.
6363 (f_parse): New function.
6364 * f-lang.h: Forward declare "struct parser_state".
6365 (f_parse): Add "struct parser_state" argument.
6366 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
6367 parser state.
6368 (yyparse): Redefine macro for java_parse_internal.
6369 (pstate): New variable.
6370 (push_expression_name, push_expression_name, insert_exp): Add
6371 "struct parser_state" argument.
6372 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
6373 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
6374 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
6375 PostIncrementExpression, PostDecrementExpression,
6376 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
6377 UnaryExpressionNotPlusMinus, CastExpression,
6378 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
6379 RelationalExpression, EqualityExpression, AndExpression,
6380 ExclusiveOrExpression, InclusiveOrExpression,
6381 ConditionalAndExpression, ConditionalOrExpression,
6382 ConditionalExpression, Assignment, LeftHandSide): Update
6383 calls to write_exp* and similars in order to use parser state.
6384 (parse_number): Ajust code to use parser state.
6385 (yylex): Likewise.
6386 (java_parse): New function.
6387 (push_variable): Add "struct parser_state" argument. Adjust
6388 code to user parser state.
6389 (push_fieldnames, push_qualified_expression_name,
6390 push_expression_name, insert_exp): Likewise.
6391 * jv-lang.h: Forward declare "struct parser_state".
6392 (java_parse): Add "struct parser_state" argument.
6393 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
6394 parser state.
6395 (yyparse): Redefine macro to m2_parse_internal.
6396 (pstate): New variable.
6397 (type_exp, exp, fblock, variable, type): Update calls to
6398 write_exp* and similars to use parser state.
6399 (yylex): Likewise.
6400 (m2_parse): New function.
6401 * m2-lang.h: Forward declare "struct parser_state".
6402 (m2_parse): Add "struct parser_state" argument.
6403 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
6404 * objc-lang.h: Forward declare "struct parser_state".
6405 (end_msglist): Add "struct parser_state" argument.
6406 * p-exp.y (parse_type): Rewrite macro to use parser state.
6407 (yyparse): Redefine macro to pascal_parse_internal.
6408 (pstate): New variable.
6409 (parse_number): Add "struct parser_state" argument.
6410 (type_exp, exp1, exp, qualified_name, variable): Update calls to
6411 write_exp* and similars in order to use parser state.
6412 (parse_number, yylex): Adjust code to use parser state.
6413 (pascal_parse): New function.
6414 * p-lang.h: Forward declare "struct parser_state".
6415 (pascal_parse): Add "struct parser_state" argument.
6416 * go-exp.y (parse_type): Rewrite macro to use parser state.
6417 (yyparse): Redefine macro to go_parse_internal.
6418 (pstate): New variable.
6419 (parse_number): Add "struct parser_state" argument.
6420 (type_exp, exp1, exp, variable, type): Update calls to
6421 write_exp* and similars in order to use parser state.
6422 (parse_number, lex_one_token, classify_name, yylex): Adjust code
6423 to use parser state.
6424 (go_parse): Likewise.
6425 * go-lang.h: Forward declare "struct parser_state".
6426 (go_parse): Add "struct parser_state" argument.
6427
342587c4
DE
64282014-03-27 Doug Evans <dje@google.com>
6429
6430 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
6431
33e80786
DE
64322014-03-27 Doug Evans <dje@google.com>
6433
6434 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
6435 Remove argument abbrev_section. All callers updated.
6436
1dbab08b
DE
64372014-03-27 Doug Evans <dje@google.com>
6438
6439 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
6440 addr_base, ranges_base.
6441
318d3177
KS
64422014-03-26 Keith Seitz <keiths@redhat.com>
6443
6444 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
6445 types, not VAR_DOMAIN.
6446
1e54db15
SL
64472014-03-25 Sandra Loosemore <sandra@codesourcery.com>
6448
6449 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
6450 "ra" registers.
6451 * features/nios2-linux.c: Regenerated.
6452 * features/nios2.c: Regenerated.
6453
d3839ede
PA
64542014-03-25 Pedro Alves <palves@redhat.com>
6455
6456 * cli/cli-script.c (script_from_file): Force the interpreter to
6457 sync mode.
6458
7588d2ec
PL
64592014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
6460
6461 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
6462 small stack allocation.
6463
a6290449
TG
64642014-03-24 Tristan Gingold <gingold@adacore.com>
6465
6466 * darwin-nat.c (exc_server): Remove unused prototype.
6467 (darwin_dump_message): Correctly display data on x86_64.
6468 (darwin_encode_reply): Fix style.
6469 Add comments and fix indentation.
6470
31ae9d24 64712014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
69fa4030
PL
6472
6473 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
6474
6339bfc4
DE
64752014-03-22 Doug Evans <xdje42@gmail.com>
6476
6477 * infcmd.c: Whitespace fixes.
6478 (interrupt_command): Merge two function comments into one.
6479
0a07590b
DE
64802014-03-22 Doug Evans <xdje42@gmail.com>
6481
6482 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
6483 All uses updated.
6484
b55fbac4
YQ
64852014-03-22 Yao Qi <yao@codesourcery.com>
6486
6487 * remote.c (target_read_live_memory): Remove.
6488 (memory_xfer_live_readonly_partial): Rename it to
6489 remote_xfer_live_readonly_partial. Remove argument 'object'.
6490 All callers updated. Call remote_read_bytes_1
6491 instead of target_read_live_memory.
6492 * tracepoint.c (set_traceframe_number): Remove.
6493 (make_cleanup_restore_traceframe_number): Likewise .
6494 * tracepoint.h (set_traceframe_number): Remove declaration.
6495 (make_cleanup_restore_traceframe_number): Likewise.
6496
9217e74e
YQ
64972014-03-22 Yao Qi <yao@codesourcery.com>
6498
6499 * remote.c (remote_read_bytes): Move code on reading from the
6500 remote stub to ...
6501 (remote_read_bytes_1): ... here. New function.
6502
8acf9577
YQ
65032014-03-22 Yao Qi <yao@codesourcery.com>
6504
6505 * ctf.c (ctf_xfer_partial): Check the return value of
6506 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
6507 return TARGET_XFER_UNAVAILABLE.
6508 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
6509 * target.c (target_read_live_memory): Move it to remote.c.
6510 (memory_xfer_live_readonly_partial): Likewise.
6511 (memory_xfer_partial_1): Move some code to remote_read_bytes.
6512 * remote.c (target_read_live_memory): Moved from target.c.
6513 (memory_xfer_live_readonly_partial): Likewise.
6514 (remote_read_bytes): Factored out from
6515 memory_xfer_partial_1.
6516
feef67ab
DE
65172014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
6518
6519 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
6520 NULL pointer.
6521
b65dc60b
PA
65222014-03-21 Pedro Alves <palves@redhat.com>
6523
6524 * infrun.c (normal_stop): Extend comment.
6525
b4ab256d
HZ
65262014-03-21 Hui Zhu <hui@codesourcery.com>
6527 Pedro Alves <palves@redhat.com>
6528
6529 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
6530 static buffer.
6531 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
6532 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
6533 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
6534
deba7593
MR
65352014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
6536
6537 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
6538 `z' formatted output modifier.
6539
1bff71c3
SDJ
65402014-03-20 Tom Tromey <tromey@redhat.com>
6541 Sergio Durigan Junior <sergiodj@redhat.com>
6542
6543 * probe.c (parse_probes): Turn assert into an ordinary error.
6544 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
6545 exceptions when parsing probes. Rearrange the code for clarity.
6546
90e28950
TT
65472014-03-20 Tom Tromey <tromey@redhat.com>
6548
6549 PR gdb/14135
6550 * top.c (execute_command): Only dispatch events if the command
6551 started the target.
6552
beb460e8
PA
65532014-03-20 Tom Tromey <tromey@redhat.com>
6554
6555 PR cli/15718
6556 * infcall.c: Include event-top.h.
6557 (run_inferior_call): Call async_disable_stdin if needed.
6558
99619bea
PA
65592014-03-20 Pedro Alves <palves@redhat.com>
6560
6561 * infrun.c (prepare_to_proceed): Delete.
6562 (thread_still_needs_step_over): New function.
6563 (find_thread_needs_step_over): New function.
6564 (proceed): If the current thread needs a step-over, set its
6565 steping_over_breakpoint flag. Adjust to use
6566 find_thread_needs_step_over instead of prepare_to_proceed.
6567 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
6568 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
6569 breakpoint.
6570 (switch_back_to_stepped_thread): Step over breakpoints of all
6571 threads not the stepping thread, before switching back to the
6572 stepping thread.
6573
2adfaa28
PA
65742014-03-20 Pedro Alves <palves@redhat.com>
6575
6576 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
6577 extern.
6578 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
6579 * infrun.c (saved_singlestep_ptid)
6580 (stepping_past_singlestep_breakpoint): Delete.
6581 (resume): Remove stepping_past_singlestep_breakpoint handling.
6582 (proceed): Store the prev_pc of the stepping thread too.
6583 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
6584 singlestep_pc.
6585 (enum infwait_states): Delete infwait_thread_hop_state.
6586 (struct execution_control_state) <hit_singlestep_breakpoint>: New
6587 field.
6588 (handle_inferior_event): Adjust.
6589 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
6590 handling and the thread-hop code. Before removing single-step
6591 breakpoints, check whether the thread hit a single-step breakpoint
6592 of another thread. If it did, the trap is not a random signal.
6593 (switch_back_to_stepped_thread): If the event thread hit a
6594 single-step breakpoint, unblock it before switching to the
6595 stepping thread. Handle the case of the stepped thread having
6596 advanced already.
6597 (keep_going): Handle the case of the current thread moving past a
6598 single-step breakpoint.
6599
31e77af2
PA
66002014-03-20 Pedro Alves <palves@redhat.com>
6601
6602 PR breakpoints/7143
6603 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
6604 are being stepped over.
6605 (breakpoint_address_match): Make extern.
6606 * breakpoint.h (breakpoint_address_match): New declaration.
6607 * inferior.h (stepping_past_instruction_at): New declaration.
6608 * infrun.c (struct step_over_info): New type.
6609 (step_over_info): New global.
6610 (set_step_over_info, clear_step_over_info)
6611 (stepping_past_instruction_at): New functions.
6612 (handle_inferior_event): Clear the step-over info when
6613 trap_expected is cleared.
6614 (resume): Remove now stale comment.
6615 (clear_proceed_status): Clear step-over info.
6616 (proceed): Adjust step-over handling to set or clear the step-over
6617 info instead of removing all breakpoints.
6618 (handle_signal_stop): When setting up a thread-hop, don't remove
6619 breakpoints here.
6620 (stop_stepping): Clear step-over info.
6621 (keep_going): Adjust step-over handling to set or clear step-over
6622 info and then always inserting breakpoints, instead of removing
6623 all breakpoints when stepping over one.
6624
b9f437de
PA
66252014-03-20 Pedro Alves <palves@redhat.com>
6626
6627 * infrun.c (previous_inferior_ptid): Adjust comment.
6628 (deferred_step_ptid): Delete.
6629 (infrun_thread_ptid_changed, prepare_to_proceed)
6630 (init_wait_for_inferior): Adjust.
6631 (handle_signal_stop): Delete deferred_step_ptid handling.
6632
06c868a8
JK
66332014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6634
6635 PR gdb/15358
6636 * defs.h (sync_quit_force_run): New declaration.
6637 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
6638 * event-top.c (async_sigterm_handler): New declaration.
6639 (async_sigterm_token): New variable.
6640 (async_init_signals): Create also async_sigterm_token.
6641 (async_sigterm_handler): New function.
6642 (sync_quit_force_run): New variable.
6643 (handle_sigterm): Replace quit_force call by other calls.
6644 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
6645
dea80df0
MR
66462014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
6647
6648 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
6649 offset into SPE pseudo registers.
6650
0c7e1a46
PA
66512014-03-18 Pedro Alves <palves@redhat.com>
6652
6653 PR gdb/13860
6654 * inferior.h (print_stop_event): Declare.
6655 * infrun.c (print_stop_event): New, factored out from ...
6656 (normal_stop): ... this.
6657 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
6658 of bpstat_print/print_stack_frame.
6659
9c1fcd01
TT
66602014-03-17 Tom Tromey <tromey@redhat.com>
6661
6662 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
6663
11aa919a
PMR
66642014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
6665
6666 * ada-lang.c (decode_constrained_packed_array): Perform a
6667 minimal coercion for reference with coerce_ref instead of
6668 ada_coerce_ref.
6669
d4ccb5e0
TG
66702014-03-17 Tristan Gingold <gingold@adacore.com>
6671
6672 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
6673 (darwin_solib_create_inferior_hook): Emit a warning if version
6674 is unhandled.
6675
49840f2a
UW
66762014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
6677
6678 * python/py-value.c (get_field_flag): Cast flag_name argument to
6679 PyObject_GetAttrString to support Python 2.4.
6680
ed4123e5
JK
66812014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6682
6683 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
6684 (Global Maintainers): Remove Jan Kratochvil.
6685
d6b64346
PA
66862014-03-14 Pedro Alves <palves@redhat.com>
6687
6688 * inferior.h (terminal_ours_for_output): Rename to ...
6689 (child_terminal_ours_for_output): ... this.
6690 (terminal_save_ours): Rename to ...
6691 (child_terminal_save_ours): ... this.
6692 (terminal_ours): Rename to ...
6693 (child_terminal_ours): ... this.
6694 (terminal_inferior): Rename to ...
6695 (child_terminal_inferior): ... this.
6696 (terminal_init_inferior): Rename to ...
6697 (child_terminal_init_inferior): ... this.
6698 (terminal_init_inferior_with_pgrp): Rename to ...
6699 (child_terminal_init_inferior_with_pgrp): ... this.
6700 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
6701 (child_terminal_init_with_pgrp): ... this.
6702 (terminal_save_ours): Rename to ...
6703 (child_terminal_save_ours): ... this.
6704 (terminal_init_inferior): Rename to ...
6705 (child_terminal_init): ... this. Adjust.
6706 (terminal_inferior): Rename to ...
6707 (child_terminal_inferior): ... this.
6708 (terminal_ours_for_output): Rename to ...
6709 (child_terminal_ours_for_output): ... this. Adjust.
6710 (terminal_ours): Rename to ...
6711 (child_terminal_ours): ... this.
6712 (terminal_ours_1): Rename to ...
6713 (child_terminal_ours_1): ... this. Adjust.
6714 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
6715 * windows-nat.c (do_initial_windows_stuff): Adjust.
6716 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
6717 (gnu_terminal_init): ... this. Adjust.
6718 (gnu_target): Adjust.
6719 * inf-child.c (inf_child_target): Adjust.
6720
5a1e8c7a
DE
67212014-03-13 Doug Evans <xdje42@gmail.com>
6722
6723 PR guile/16612
6724 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
6725 new eq?-hashtab.
6726
350e1a76
DE
67272014-03-13 Doug Evans <xdje42@gmail.com>
6728
6729 * value.c (record_latest_value): Call release_value_or_incref
6730 instead of release_value.
6731
a69900ae
PA
67322014-03-13 Pedro Alves <palves@redhat.com>
6733
6734 * procfs.c (procfs_target): Don't override to_shortname,
6735 to_longname or to_doc.
6736
5db9f0bd
PA
67372014-03-13 Pedro Alves <palves@redhat.com>
6738
6739 * inf-child.c (inf_child_open, inf_child_target): Don't mention
6740 Unix in user visible strings.
6741
5e3a2c38
SS
67422014-03-12 Stan Shebs <stan@codesourcery.com>
6743
6744 * gdbtypes.h: Annotate comments for Doxygen, add a page
6745 block comment with some general info.
6746
8bc2fe48
PA
67472014-03-12 Pedro Alves <palves@redhat.com>
6748
6749 * infcmd.c (prepare_execution_command): New function, factored out
6750 from several execution commands.
6751 (run_command_1, continue_command, step_1, jump_command)
6752 (signal_command, until_command, advance_command, finish_command)
6753 (attach_command): Use prepare_execution_command.
6754
638c5f49
OJ
67552014-03-12 Omair Javaid <omair.javaid@linaro.org>
6756
6757 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
6758 (MAX_BPTS): Define.
6759 (MAX_WPTS): Define.
6760 (struct arm_linux_thread_points): Removed.
6761 (struct arm_linux_process_info): New.
6762 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
6763 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
6764 (arm_linux_find_breakpoints_by_tid): Removed.
6765 (struct arch_lwp_info): New.
6766 (arm_linux_find_process_pid): New functions.
6767 (arm_linux_add_process): New functions.
6768 (arm_linux_process_info_get): New functions.
6769 (arm_linux_forget_process): New function.
6770 (arm_linux_get_debug_reg_state): New function.
6771 (struct update_registers_data): New.
6772 (update_registers_callback): New function.
6773 (arm_linux_insert_hw_breakpoint1): Updated.
6774 (arm_linux_remove_hw_breakpoint1): Updated.
6775 (arm_linux_insert_hw_breakpoint): Updated.
6776 (arm_linux_remove_hw_breakpoint): Updated.
6777 (arm_linux_insert_watchpoint): Updated.
6778 (arm_linux_remove_watchpoint): Updated.
6779 (arm_linux_new_thread): Updated.
6780 (arm_linux_prepare_to_resume): New function.
6781 (arm_linux_new_fork): New function.
6782 (_initialize_arm_linux_nat): Updated.
6783
6d03af93
PA
67842014-03-12 Pedro Alves <palves@redhat.com>
6785
6786 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
6787
b3ccfe11
TT
67882014-03-12 Tom Tromey <tromey@redhat.com>
6789
6790 * inf-child.c (return_zero): New function.
6791 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
6792 * aix-thread.c (aix_thread_inferior_created): New function.
6793 (aix_thread_attach): Remove.
6794 (init_aix_thread_ops): Don't set to_attach.
6795 (_initialize_aix_thread): Register inferior_created observer.
6796 * corelow.c (init_core_ops): Don't set to_attach or
6797 to_create_inferior.
6798 * exec.c (init_exec_ops): Don't set to_attach or
6799 to_create_inferior.
6800 * infcmd.c (run_command_1): Use find_run_target. Make direct
6801 target calls.
6802 (attach_command): Use find_attach_target. Make direct target
6803 calls.
6804 * record-btrace.c (init_record_btrace_ops): Don't set
6805 to_create_inferior.
6806 * record-full.c (record_full_can_async_p, record_full_is_async_p):
6807 Remove.
6808 (init_record_full_ops, init_record_full_core_ops): Update. Don't
6809 set to_create_inferior.
6810 * target.c (complete_target_initialization): Add assertion.
6811 (target_create_inferior): Remove.
6812 (find_default_attach, find_default_create_inferior): Remove.
6813 (find_attach_target, find_run_target): New functions.
6814 (find_default_is_async_p, find_default_can_async_p)
6815 (target_supports_non_stop, target_attach): Remove.
6816 (init_dummy_target): Don't set to_create_inferior or
6817 to_supports_non_stop.
6818 * target.h (struct target_ops) <to_attach>: Add comment. Remove
6819 TARGET_DEFAULT_FUNC.
6820 <to_create_inferior>: Add comment.
6821 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
6822 TARGET_DEFAULT_RETURN.
6823 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
6824 (find_attach_target, find_run_target): Declare.
6825 (target_create_inferior): Remove.
6826 (target_has_execution_1): Update comment.
6827 (target_supports_non_stop): Remove.
6828 * target-delegates.c: Rebuild.
6829
91f83b02
PA
68302014-03-12 Pedro Alves <palves@redhat.com>
6831
6832 * inf-child.h: Update comment to not mention Unix.
6833
f1aea813
PA
68342014-03-12 Pedro Alves <palves@redhat.com>
6835
6836 * inf-child.c: Update top comment to not mention Unix. Add
6837 generic comment describing how this target is meant to be used.
6838 (inf_child_post_attach, inf_child_post_startup_inferior)
6839 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
6840 Unix in comment.
6841
ee8e9165
PA
68422014-03-12 Pedro Alves <palves@redhat.com>
6843
6844 * nto-procfs.c: Include inf-child.h.
6845 (procfs_ops): Delete global.
6846 (procfs_can_run): Delete method.
6847 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
6848 target pointer instead of referencing procfs_ops.
6849 (procfs_prepare_to_store): Delete.
6850 (init_procfs_ops): Delete function.
6851 (procfs_target): New function, based on init_procfs_ops, but
6852 inherit inf_child_target.
6853 (_initialize_procfs): Use procfs_target.
6854
51a9c8c5
PA
68552014-03-12 Pedro Alves <palves@redhat.com>
6856
6857 * windows-nat.c: Include inf-child.h.
6858 (windows_ops): Delete global.
6859 (windows_open, windows_prepare_to_store, windows_can_run): Delete
6860 methods.
6861 (init_windows_ops): Delete function.
6862 (windows_target): New function, based on init_windows_ops, but
6863 inherit inf_child_target.
6864 (_initialize_windows_nat): Use windows_target. Install x86
6865 specific target methods here.
6866
c1966e26
DE
68672014-03-10 Doug Evans <xdje42@gmail.com>
6868
6869 * guile/guile.c (call_initialize_gdb_module): New function.
6870 (initialize_guile): Replace call to scm_init_guile with call to
6871 scm_with_guile.
6872
023db19c
JB
68732014-03-10 Joel Brobecker <brobecker@adacore.com>
6874
6875 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
6876 in call to TYPE_CODE macro.
6877
5ec18f2b
JG
68782014-03-10 Jerome Guitton <guitton@adacore.com>
6879
8668be63
JB
6880 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
6881 Resolve tagged types to full view.
5ec18f2b 6882
7d03f2eb
HZ
68832014-03-10 Hui Zhu <hui@codesourcery.com>
6884
6885 * target.h (target_insert_breakpoint): Remove "hardware" from its
6886 comments.
6887
c5164cbc
DE
68882014-03-07 Doug Evans <dje@google.com>
6889
6890 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
6891
c4a3fee2
DE
68922014-03-07 Doug Evans <dje@google.com>
6893
6894 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
6895 Remove unused local comp_dir_attr. Assert exactly one of
6896 stub_comp_unit_die, stub_comp_dir is non-NULL.
6897
3156469c
JB
68982014-03-07 Joel Brobecker <brobecker@adacore.com>
6899
6900 * target.h (complete_target_initialization, add_target):
6901 Add comment.
6902
c1a7b7c6
PA
69032014-03-07 Pedro Alves <palves@redhat.com>
6904
6905 * go32-nat.c: Include inf-child.h.
6906 (go32_ops): Delete global.
6907 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
6908 Delete methods.
6909 (go32_create_inferior): Push the passed in target pointer instead
6910 of referencing go32_ops.
6911 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
6912 (go32_target): New function, based on init_go32_ops, but inherit
6913 inf_child_target.
6914 (_initialize_go32_nat): Use go32_target. Move parts of
6915 init_go32_ops here.
6916
d3c1a85f
JB
69172014-03-06 Joel Brobecker <brobecker@adacore.com>
6918
6919 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
6920 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
6921 SYMBOL_VALUE_ADDRESS.
6922 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
6923
5fa1d40e
YQ
69242014-03-06 Yao Qi <yao@codesourcery.com>
6925
6926 * breakpoint.c (get_tracepoint_by_number): Remove argument
6927 optional_p. All callers updated. Adjust comments. Update
6928 output message.
6929 * breakpoint.h (get_tracepoint_by_number): Update declaration.
6930
0c13193f
YQ
69312014-03-06 Yao Qi <yao@codesourcery.com>
6932
6933 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
6934 early if get_number returns zero. Use 'p' instead of 'args'.
6935
2217da06
YQ
69362014-03-06 Yao Qi <yao@codesourcery.com>
6937
6938 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
6939 message.
6940
cc3da688
YQ
69412014-03-06 Yao Qi <yao@codesourcery.com>
6942
6943 PR breakpoints/16508
6944 * tracepoint.c (check_trace_running): New function.
6945 (trace_find_command): Move code to check_trace_running and
6946 call check_trace_running.
6947 (trace_find_pc_command): Likewise.
6948 (trace_find_tracepoint_command): Likewise.
6949 (trace_find_line_command): Likewise.
6950 (trace_find_range_command): Likewise.
6951 * tracepoint.h (check_trace_running): Likewise.
6952 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
6953
6a5f844b
YQ
69542014-03-06 Yao Qi <yao@codesourcery.com>
6955
6956 * target.h (struct target_ops) <to_traceframe_info>: Use
6957 TARGET_DEFAULT_NORETURN (tcomplain ()).
6958 * target-delegates.c: Regenerated.
6959
0f26cec1
PA
69602014-03-05 Pedro Alves <palves@redhat.com>
6961
6962 PR gdb/16575
6963 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
6964 void. Update comment.
6965 (dcache_xfer_memory): Delete.
6966 (dcache_read_memory_partial): New, based on the read bits of
6967 dcache_xfer_memory.
6968 (dcache_update): Add status parameter. Use ULONGEST for len, and
6969 adjust. Discard cache lines if the reason for the update was
6970 error.
6971 * dcache.h (dcache_xfer_memory): Delete declaration.
6972 (dcache_read_memory_partial): New declaration.
6973 (dcache_update): Update prototype.
6974 * target.c (raw_memory_xfer_partial): Update the dcache here.
6975 (memory_xfer_partial_1): Don't handle dcache writes here.
6976
b2b255bd
MF
69772014-03-05 Mike Frysinger <vapier@gentoo.org>
6978
6979 * remote-sim.c (gdbsim_load): Add const to prog.
6980
5d9cf8a4
TT
69812014-03-03 Tom Tromey <tromey@redhat.com>
6982
6983 * elfread.c (probe_key): Change to bfd_data.
6984 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
6985 now per-BFD, not per-objfile.
6986 * stap-probe.c (stap_probe_destroy): Update comment.
6987 (handle_stap_probe): Allocate on the per-BFD obstack.
6988
729662a5
TT
69892014-03-03 Tom Tromey <tromey@redhat.com>
6990
6991 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
6992 * breakpoint.c (create_longjmp_master_breakpoint): Use
6993 get_probe_address.
6994 (add_location_to_breakpoint, bkpt_probe_insert_location)
6995 (bkpt_probe_remove_location): Update.
6996 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
6997 * elfread.c (elf_symfile_relocate_probe): Remove.
6998 (elf_probe_fns): Update.
6999 (insert_exception_resume_breakpoint): Change type of "probe"
7000 parameter to bound_probe.
7001 (check_exception_resume): Update.
7002 * objfiles.c (objfile_relocate1): Don't relocate probes.
7003 * probe.c (bound_probe_s): New typedef.
7004 (parse_probes): Use get_probe_address. Set sal's objfile.
7005 (find_probe_by_pc): Return a bound_probe.
7006 (collect_probes): Return a VEC(bound_probe_s).
7007 (compare_probes): Update.
7008 (gen_ui_out_table_header_info): Change type of "probes"
7009 parameter. Update.
7010 (info_probes_for_ops): Update.
7011 (get_probe_address): New function.
7012 (probe_safe_evaluate_at_pc): Update.
7013 * probe.h (struct probe_ops) <get_probe_address>: New field.
7014 <set_semaphore, clear_semaphore>: Add objfile parameter.
7015 (struct probe) <objfile>: Remove field.
7016 <arch>: New field.
7017 <address>: Update comment.
7018 (struct bound_probe): New.
7019 (find_probe_by_pc): Return a bound_probe.
7020 (get_probe_address): Declare.
7021 * solib-svr4.c (struct probe_and_action) <address>: New field.
7022 (hash_probe_and_action, equal_probe_and_action): Update.
7023 (register_solib_event_probe): Add address parameter.
7024 (solib_event_probe_at): Update.
7025 (svr4_create_probe_breakpoints): Add objfile parameter. Use
7026 get_probe_address.
7027 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
7028 (stap_get_probe_address): New function.
7029 (stap_can_evaluate_probe_arguments, compute_probe_arg)
7030 (compile_probe_arg): Update.
7031 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
7032 address.
7033 (handle_stap_probe): Don't relocate the probe.
7034 (stap_relocate): Remove.
7035 (stap_gen_info_probes_table_values): Update.
7036 (stap_probe_ops): Remove stap_relocate.
7037 * symfile-debug.c (debug_sym_relocate_probe): Remove.
7038 (debug_sym_probe_fns): Update.
7039 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
7040 * symtab.c (init_sal): Use memset.
7041 * symtab.h (struct symtab_and_line) <objfile>: New field.
7042 * tracepoint.c (start_tracing, stop_tracing): Update.
7043
ff887920
TT
70442014-03-03 Tom Tromey <tromey@redhat.com>
7045
7046 * probe.h (parse_probes, find_probe_by_pc)
7047 (find_probes_in_objfile): Fix comments.
7048
f0407826
DE
70492014-03-02 Doug Evans <xdje42@gmail.com>
7050
7051 * infrun.c (handle_signal_stop): Replace test for
7052 TARGET_WAITKIND_STOPPED with an assert.
7053
35e6a711
DE
70542014-03-02 Doug Evans <xdje42@gmail.com>
7055
7056 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
7057
667f9d0b
DE
70582014-03-02 Doug Evans <xdje42@gmail.com>
7059
7060 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
7061
dc92ace0
MK
70622014-03-01 Mark Kettenis <kettenis@gnu.org>
7063
7064 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
7065
a900370f
MK
70662014-03-01 Mark Kettenis <kettenis@gnu.org>
7067
7068 * i386obsd-nat.c: Include "obsd-nat.h".
7069 (_initialize_i386obsd_nat): Call obsd_add_target instead of
7070 add_target.
7071 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
7072
b72a7981
MK
70732014-03-01 Mark Kettenis <kettenis@gnu.org>
7074
7075 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
7076
96c70aba
MK
70772014-03-01 Mark Kettenis <kettenis@gnu.org>
7078
7079 * mips64obsd-nat.c: Include "obsd-nath".
7080 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
7081 add_target
7082 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
7083
874a80af
MK
70842014-03-01 Mark Kettenis <kettenis@gnu.org>
7085
8fd408f1
MK
7086 * amd64obsd-nat.c: Include "obsd-nat,h.
7087 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
7088 add_target.
874a80af
MK
7089 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
7090
9cf95373
SC
70912014-02-28 Siva Chandra Reddy <sivachandra@google.com>
7092
7093 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
7094 (find_overload_match): Update call to find_oload_champ.
7095 (find_oload_champ_namespace_loop): Likewise
7096
863e4da4
MK
70972014-02-28 Mark Kettenis <kettenis@gnu.org>
7098
025cac40
MK
7099 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
7100
1ed586ce
MK
7101 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
7102 * config/sparc/obsd64.mh: New file.
7103 * sparc64obsd-nat.c: New file.
7104
863e4da4
MK
7105 * obsd-nat.h: New file.
7106 * obsd-nat.c: New file.
7107 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
7108 (ALLDEPFILES): Add obsd-nat.c.
7109
89de4da4
TT
71102014-02-28 Tom Tromey <tromey@redhat.com>
7111
7112 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
7113 * cli-out.h (cli_ui_out_impl): Now const.
7114 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
7115 * ui-out.c (struct ui_out) <impl>: Now const.
7116 (default_ui_out_impl): Now const.
7117 (ui_out_new): Make 'impl' parameter const.
7118 * ui-out.h (ui_out_new): Update.
7119
c725e7b6
MK
71202014-02-27 Mark Kettenis <kettenis@gnu.org>
7121
7122 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
7123
670b46b3
MK
71242014-02-27 Mark Kettenis <kettenis@gnu.org>
7125
7126 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
7127
c91550fc
JK
71282014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
7129
7130 Additional PR 8882 fix.
7131 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
7132
2fa0369e
PA
71332014-02-27 Pedro Alves <palves@redhat.com>
7134
7135 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
7136 isn't set.
7137
d632a097
PA
71382014-02-27 Pedro Alves <palves@redhat.com>
7139
7140 PR 12702
7141 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
7142 * nat/linux-waitpid.c: Include string.h.
7143 (status_to_str): Moved here and made extern.
7144 * nat/linux-waitpid.h (status_to_str): New declaration.
7145
2ebd5a35
HZ
71462014-02-27 Hui Zhu <hui@codesourcery.com>
7147
7148 PR 12702
7149 * infrun.c (ptid_match): Move ...
7150 * common/ptid.c (ptid_match): ... here.
7151 * inferior.h (ptid_match): Move ...
7152 * common/ptid.h (ptid_match): ... here.
7153
3cdd631f
MK
71542014-02-27 Mark Kettenis <kettenis@gnu.org>
7155
7156 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
7157 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
7158 gdb_target_obs.
7159
bee30a64
MK
71602014-02-27 Mark Kettenis <kettenis@gnu.org>
7161
7162 * obsd-tdep.c (obsd_auxv_parse): New function.
7163 (obsd_init_abi): Set auxv_parse.
27a48a92
MK
7164
7165 * gdbarch.sh (auxv_parse): New.
7166 * gdbarch.h: Regenerated.
7167 * gdbarch.c: Regenerated.
7168 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
7169
7a5a839f
LC
71702014-02-26 Ludovic Courtès <ludo@gnu.org>
7171
7172 * guile/scm-value.c (gdbscm_history_append_x): New function.
7173 (value_functions): Add it.
7174
31aa7e4e
JB
71752014-02-27 Joel Brobecker <brobecker@adacore.com>
7176
7177 * dwarf2read.c (attr_value_as_address): New function.
7178 (dwarf2_find_base_address, read_call_site_scope): Use
7179 attr_value_as_address in place of DW_ADDR.
7180 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
7181 the low and high addresses. Slight rework of the handling
7182 of the high pc being a constant form, and limit it to
7183 DWARF verson 4 or higher.
7184 (dwarf2_record_block_ranges): Likewise.
7185 (read_partial_die): Likewise.
7186 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
7187
9b333ba3
TT
71882014-02-26 Tom Tromey <tromey@redhat.com>
7189
7190 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
7191
5f6cac40
TT
71922014-02-26 Tom Tromey <tromey@redhat.com>
7193
7194 * elfread.c (elf_read_minimal_symbols): Return early if
7195 minimal symbols have already been read. Add "ei" parameter.
7196 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
7197 * minsyms.c (prim_record_minimal_symbol_full): Update.
7198 * objfiles.h (struct objstats) <n_minsyms>: Move...
7199 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
7200 * symmisc.c (print_objfile_statistics): Update.
7201
2750ef27
TT
72022014-02-26 Tom Tromey <tromey@redhat.com>
7203
7204 * elfread.c (elf_read_minimal_symbols): New function, from
7205 elf_symfile_read.
7206 (elf_symfile_read): Call it.
7207
34643a32
TT
72082014-02-26 Tom Tromey <tromey@redhat.com>
7209
7210 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
7211 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
7212 (lookup_minimal_symbol_solib_trampoline)
7213 (lookup_minimal_symbol_by_pc_section_1)
7214 (lookup_minimal_symbol_and_objfile): Update.
7215 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
7216 Don't allocate a minimal symbol if minsyms have already been read.
7217 (build_minimal_symbol_hash_tables): Update.
7218 (install_minimal_symbols): Do nothing if minsyms already read.
7219 Use the per-BFD obstack.
7220 (terminate_minimal_symbol_table): Use the per-BFD obstack.
7221 * objfiles.c (allocate_objfile): Call
7222 terminate_minimal_symbol_table later.
7223 (have_minimal_symbols): Update.
7224 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
7225 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
7226 Move from struct objfile.
7227 <minsyms_read>: New field.
7228 (struct objfile) <msymbols, minimal_symbol_count,
7229 msymbol_hash, msymbol_demangled_hash>: Move.
7230 (ALL_OBJFILE_MSYMBOLS): Update.
7231 * symfile.c (read_symbols): Set minsyms_read.
7232 (reread_symbols): Update.
7233 * symmisc.c (dump_objfile, dump_msymbols): Update.
7234
2273f0ac
TT
72352014-02-26 Tom Tromey <tromey@redhat.com>
7236
7237 * minsyms.c (msymbols_sort): Remove.
7238 * minsyms.h (msymbols_sort): Remove.
7239 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
7240 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
7241 * elfread.c (elf_symtab_read): Don't add section offsets.
7242 * xcoffread.c (record_minimal_symbol): Don't add section offset
7243 to minimal symbol address.
7244 * somread.c (text_offset, data_offset): Remove.
7245 (som_symtab_read): Don't add section offsets to minimal symbol
7246 addresses.
7247 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
7248 Don't add section offsets to minimal symbols.
7249 * coffread.c (coff_symtab_read): Don't add section offsets
7250 to minimal symbol addresses.
7251 * machoread.c (macho_symtab_add_minsym): Don't add section offset
7252 to minimal symbol addresses.
7253 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
7254 section offset to minimal symbol addresses.
7255 * mdebugread.c (parse_partial_symbols): Don't add section
7256 offset to minimal symbol addresses.
7257 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
7258 offset to minimal symbol addresses.
7259
77e371c0
TT
72602014-02-26 Tom Tromey <tromey@redhat.com>
7261
7262 * ada-lang.c (ada_main_name): Update.
7263 (ada_add_standard_exceptions): Update.
7264 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7265 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7266 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
7267 * auxv.c (ld_so_xfer_auxv): Update.
7268 * avr-tdep.c (avr_scan_prologue): Update.
7269 * ax-gdb.c (gen_var_ref): Update.
7270 * blockframe.c (get_pc_function_start)
7271 (find_pc_partial_function_gnu_ifunc): Update.
7272 * breakpoint.c (create_overlay_event_breakpoint)
7273 (create_longjmp_master_breakpoint)
7274 (create_std_terminate_master_breakpoint)
7275 (create_exception_master_breakpoint): Update.
7276 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7277 * c-valprint.c (c_val_print): Update.
7278 * coff-pe-read.c (add_pe_forwarded_sym): Update.
7279 * common/agent.c (agent_look_up_symbols): Update.
7280 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7281 * dwarf2loc.c (call_site_to_target_addr): Update.
7282 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
7283 * elfread.c (elf_gnu_ifunc_record_cache)
7284 (elf_gnu_ifunc_resolve_by_got): Update.
7285 * findvar.c (default_read_var_value): Update.
7286 * frame.c (inside_main_func): Update.
7287 * frv-tdep.c (frv_frame_this_id): Update.
7288 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7289 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7290 Update.
7291 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
7292 (hppa_hpux_find_dummy_bpaddr): Update.
7293 * hppa-tdep.c (hppa_symbol_address): Update.
7294 * infcmd.c (until_next_command): Update.
7295 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
7296 Update.
7297 * linespec.c (minsym_found, add_minsym): Update.
7298 * linux-nat.c (get_signo): Update.
7299 * linux-thread-db.c (inferior_has_bug): Update.
7300 * m32c-tdep.c (m32c_return_value)
7301 (m32c_m16c_address_to_pointer): Update.
7302 * m32r-tdep.c (m32r_frame_this_id): Update.
7303 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7304 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7305 * maint.c (maintenance_translate_address): Update.
7306 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
7307 (frob_address): New function.
7308 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
7309 frob_address. Rename parameter to "pc_in".
7310 (compare_minimal_symbols, compact_minimal_symbols): Use raw
7311 addresses.
7312 (find_solib_trampoline_target, minimal_symbol_upper_bound):
7313 Update.
7314 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7315 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
7316 * objc-lang.c (find_objc_msgsend): Update.
7317 * objfiles.c (objfile_relocate1): Update.
7318 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7319 * p-valprint.c (pascal_val_print): Update.
7320 * parse.c (write_exp_msymbol): Update.
7321 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
7322 (ppc_elfv2_skip_entrypoint): Update.
7323 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7324 * printcmd.c (build_address_symbolic, msym_info)
7325 (address_info): Update.
7326 * proc-service.c (ps_pglobal_lookup): Update.
7327 * psymtab.c (find_pc_sect_psymtab_closer)
7328 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
7329 Change msymbol parameter to bound_minimal_symbol.
7330 * ravenscar-thread.c (get_running_thread_id): Update.
7331 * remote.c (remote_check_symbols): Update.
7332 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
7333 address.
7334 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7335 * solib-dsbt.c (lm_base): Update.
7336 * solib-frv.c (lm_base, main_got): Update.
7337 * solib-irix.c (locate_base): Update.
7338 * solib-som.c (som_solib_create_inferior_hook)
7339 (link_map_start): Update.
7340 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
7341 * solib-svr4.c (elf_locate_base, enable_break): Update.
7342 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7343 (flush_ea_cache): Update.
7344 * stabsread.c (define_symbol, scan_file_globals): Update.
7345 * stack.c (find_frame_funname): Update.
7346 * symfile-debug.c (debug_qf_expand_symtabs_matching)
7347 (debug_qf_find_pc_sect_symtab): Update.
7348 * symfile.c (simple_read_overlay_table)
7349 (simple_overlay_update): Update.
7350 * symfile.h (struct quick_symbol_functions)
7351 <find_pc_sect_symtab>: Change type of msymbol to
7352 bound_minimal_symbol.
7353 * symmisc.c (dump_msymbols): Update.
7354 * symtab.c (find_pc_sect_symtab_via_partial)
7355 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
7356 (search_symbols, print_msymbol_info): Update.
7357 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
7358 (MSYMBOL_VALUE_ADDRESS): Redefine.
7359 (BMSYMBOL_VALUE_ADDRESS): New macro.
7360 * tracepoint.c (scope_info): Update.
7361 * tui/tui-disasm.c (tui_find_disassembly_address)
7362 (tui_get_begin_asm_address): Update.
7363 * valops.c (find_function_in_inferior): Update.
7364 * value.c (value_static_field, value_fn_field): Update.
7365
3b7344d5
TT
73662014-02-26 Tom Tromey <tromey@redhat.com>
7367
7368 * ada-lang.c (ada_update_initial_language): Update.
7369 (ada_main_name, ada_has_this_exception_support): Update.
7370 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7371 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7372 * arm-tdep.c (arm_skip_stub): Update.
7373 * auxv.c (ld_so_xfer_auxv): Update.
7374 * avr-tdep.c (avr_scan_prologue): Update.
7375 * ax-gdb.c (gen_var_ref): Update.
7376 * breakpoint.c (struct breakpoint_objfile_data)
7377 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
7378 type to bound_minimal_symbol.
7379 (create_overlay_event_breakpoint)
7380 (create_longjmp_master_breakpoint)
7381 (create_std_terminate_master_breakpoint)
7382 (create_exception_master_breakpoint): Update.
7383 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7384 * c-exp.y (classify_name): Update.
7385 * coffread.c (coff_symfile_read): Update.
7386 * common/agent.c (agent_look_up_symbols): Update.
7387 * d-lang.c (d_main_name): Update.
7388 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7389 * dec-thread.c (enable_dec_thread): Update.
7390 * dwarf2loc.c (call_site_to_target_addr): Update.
7391 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
7392 * eval.c (evaluate_subexp_standard): Update.
7393 * findvar.c (struct minsym_lookup_data) <result>: Change type
7394 to bound_minimal_symbol.
7395 <objfile>: Remove.
7396 (minsym_lookup_iterator_cb, default_read_var_value): Update.
7397 * frame.c (inside_main_func): Update.
7398 * frv-tdep.c (frv_frame_this_id): Update.
7399 * gcore.c (call_target_sbrk): Update.
7400 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7401 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7402 Update.
7403 * go-lang.c (go_main_name): Update.
7404 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
7405 (hppa_hpux_find_import_stub_for_addr): Update.
7406 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
7407 Update. Change return type.
7408 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
7409 type.
7410 * jit.c (jit_breakpoint_re_set_internal): Update.
7411 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
7412 Update.
7413 * linux-nat.c (get_signo): Update.
7414 * linux-thread-db.c (inferior_has_bug): Update
7415 * m32c-tdep.c (m32c_return_value)
7416 (m32c_m16c_address_to_pointer): Update.
7417 * m32r-tdep.c (m32r_frame_this_id): Update.
7418 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7419 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7420 * minsyms.c (lookup_minimal_symbol_internal): Rename to
7421 lookup_minimal_symbol. Change return type.
7422 (lookup_minimal_symbol): Remove.
7423 (lookup_bound_minimal_symbol): Update.
7424 (lookup_minimal_symbol_text): Change return type.
7425 (lookup_minimal_symbol_solib_trampoline): Change return type.
7426 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
7427 (lookup_minimal_symbol_solib_trampoline): Change return type.
7428 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7429 * objc-lang.c (lookup_objc_class, lookup_child_selector)
7430 (value_nsstring, find_imps): Update.
7431 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7432 * p-lang.c (pascal_main_name): Update.
7433 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
7434 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7435 * proc-service.c (ps_pglobal_lookup): Update.
7436 * ravenscar-thread.c (get_running_thread_msymbol): Change
7437 return type.
7438 (has_ravenscar_runtime, get_running_thread_id): Update.
7439 * remote.c (remote_check_symbols): Update.
7440 * sol-thread.c (ps_pglobal_lookup): Update.
7441 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7442 * solib-dsbt.c (lm_base): Update.
7443 * solib-frv.c (lm_base, frv_relocate_section_addresses):
7444 Update.
7445 * solib-irix.c (locate_base): Update.
7446 * solib-som.c (som_solib_create_inferior_hook)
7447 (som_solib_desire_dynamic_linker_symbols, link_map_start):
7448 Update.
7449 * solib-spu.c (spu_enable_break): Update.
7450 * solib-svr4.c (elf_locate_base, enable_break): Update.
7451 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7452 (flush_ea_cache): Update.
7453 * stabsread.c (define_symbol): Update.
7454 * symfile.c (simple_read_overlay_table): Update.
7455 * symtab.c (find_pc_sect_line): Update.
7456 * tracepoint.c (scope_info): Update.
7457 * tui-disasm.c (tui_get_begin_asm_address): Update.
7458 * value.c (value_static_field): Update.
7459
40c1a007
TT
74602014-02-26 Tom Tromey <tromey@redhat.com>
7461
7462 * minsyms.c (prim_record_minimal_symbol_full): Use
7463 SET_MSYMBOL_VALUE_ADDRESS.
7464 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
7465 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
7466 SET_MSYMBOL_VALUE_ADDRESS.
7467 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
7468 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
7469
efd66ac6
TT
74702014-02-26 Tom Tromey <tromey@redhat.com>
7471
7472 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
7473 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
7474 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
7475 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
7476 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
7477 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
7478 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
7479 * ada-lang.c (ada_main_name): Update.
7480 (ada_lookup_simple_minsym): Update.
7481 (ada_make_symbol_completion_list): Update.
7482 (ada_add_standard_exceptions): Update.
7483 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
7484 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7485 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
7486 * arm-tdep.c (skip_prologue_function): Update.
7487 (arm_skip_stack_protector, arm_skip_stub): Update.
7488 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
7489 (arm_wince_skip_main_prologue): Update.
7490 * auxv.c (ld_so_xfer_auxv): Update.
7491 * avr-tdep.c (avr_scan_prologue): Update.
7492 * ax-gdb.c (gen_var_ref): Update.
7493 * block.c (call_site_for_pc): Update.
7494 * blockframe.c (get_pc_function_start): Update.
7495 (find_pc_partial_function_gnu_ifunc): Update.
7496 * breakpoint.c (create_overlay_event_breakpoint): Update.
7497 (create_longjmp_master_breakpoint): Update.
7498 (create_std_terminate_master_breakpoint): Update.
7499 (create_exception_master_breakpoint): Update.
7500 (resolve_sal_pc): Update.
7501 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7502 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
7503 Update.
7504 * c-valprint.c (c_val_print): Update.
7505 * coff-pe-read.c (add_pe_forwarded_sym): Update.
7506 * coffread.c (coff_symfile_read): Update.
7507 * common/agent.c (agent_look_up_symbols): Update.
7508 * dbxread.c (find_stab_function_addr): Update.
7509 (end_psymtab): Update.
7510 * dwarf2loc.c (call_site_to_target_addr): Update.
7511 (func_verify_no_selftailcall): Update.
7512 (tailcall_dump): Update.
7513 (call_site_find_chain_1): Update.
7514 (dwarf_expr_reg_to_entry_parameter): Update.
7515 * elfread.c (elf_gnu_ifunc_record_cache): Update.
7516 (elf_gnu_ifunc_resolve_by_got): Update.
7517 * f-valprint.c (info_common_command): Update.
7518 * findvar.c (read_var_value): Update.
7519 * frame.c (get_prev_frame_1): Update.
7520 (inside_main_func): Update.
7521 * frv-tdep.c (frv_skip_main_prologue): Update.
7522 (frv_frame_this_id): Update.
7523 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7524 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
7525 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
7526 (gnuv3_skip_trampoline): Update.
7527 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
7528 (hppa64_hpux_in_solib_call_trampoline): Update.
7529 (hppa_hpux_skip_trampoline_code): Update.
7530 (hppa64_hpux_search_dummy_call_sequence): Update.
7531 (hppa_hpux_find_import_stub_for_addr): Update.
7532 (hppa_hpux_find_dummy_bpaddr): Update.
7533 * hppa-tdep.c (hppa_symbol_address)
7534 (hppa_lookup_stub_minimal_symbol): Update.
7535 * i386-tdep.c (i386_skip_main_prologue): Update.
7536 (i386_pe_skip_trampoline_code): Update.
7537 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
7538 * infcall.c (get_function_name): Update.
7539 * infcmd.c (until_next_command): Update.
7540 * jit.c (jit_breakpoint_re_set_internal): Update.
7541 (jit_inferior_init): Update.
7542 * linespec.c (minsym_found): Update.
7543 (add_minsym): Update.
7544 * linux-fork.c (info_checkpoints_command): Update.
7545 * linux-nat.c (get_signo): Update.
7546 * linux-thread-db.c (inferior_has_bug): Update.
7547 * m32c-tdep.c (m32c_return_value): Update.
7548 (m32c_m16c_address_to_pointer): Update.
7549 (m32c_m16c_pointer_to_address): Update.
7550 * m32r-tdep.c (m32r_frame_this_id): Update.
7551 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7552 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7553 * maint.c (maintenance_translate_address): Update.
7554 * minsyms.c (add_minsym_to_hash_table): Update.
7555 (add_minsym_to_demangled_hash_table): Update.
7556 (msymbol_objfile): Update.
7557 (lookup_minimal_symbol): Update.
7558 (iterate_over_minimal_symbols): Update.
7559 (lookup_minimal_symbol_text): Update.
7560 (lookup_minimal_symbol_by_pc_name): Update.
7561 (lookup_minimal_symbol_solib_trampoline): Update.
7562 (lookup_minimal_symbol_by_pc_section_1): Update.
7563 (lookup_minimal_symbol_and_objfile): Update.
7564 (prim_record_minimal_symbol_full): Update.
7565 (compare_minimal_symbols): Update.
7566 (compact_minimal_symbols): Update.
7567 (build_minimal_symbol_hash_tables): Update.
7568 (install_minimal_symbols): Update.
7569 (terminate_minimal_symbol_table): Update.
7570 (find_solib_trampoline_target): Update.
7571 (minimal_symbol_upper_bound): Update.
7572 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7573 * mips-tdep.c (mips_stub_frame_sniffer): Update.
7574 (mips_skip_pic_trampoline_code): Update.
7575 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
7576 * objc-lang.c (selectors_info): Update.
7577 (classes_info): Update.
7578 (find_methods): Update.
7579 (find_imps): Update.
7580 (find_objc_msgsend): Update.
7581 * objfiles.c (objfile_relocate1): Update.
7582 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
7583 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7584 * p-valprint.c (pascal_val_print): Update.
7585 * parse.c (write_exp_msymbol): Update.
7586 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
7587 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
7588 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7589 * printcmd.c (build_address_symbolic): Update.
7590 (sym_info): Update.
7591 (address_info): Update.
7592 * proc-service.c (ps_pglobal_lookup): Update.
7593 * psymtab.c (find_pc_sect_psymtab_closer): Update.
7594 (find_pc_sect_psymtab): Update.
7595 * python/py-framefilter.c (py_print_frame): Update.
7596 * ravenscar-thread.c (get_running_thread_id): Update.
7597 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
7598 Update.
7599 * remote.c (remote_check_symbols): Update.
7600 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
7601 (rs6000_skip_trampoline_code): Update.
7602 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
7603 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7604 * solib-dsbt.c (lm_base): Update.
7605 * solib-frv.c (lm_base): Update.
7606 (main_got): Update.
7607 * solib-irix.c (locate_base): Update.
7608 * solib-som.c (som_solib_create_inferior_hook): Update.
7609 (som_solib_desire_dynamic_linker_symbols): Update.
7610 (link_map_start): Update.
7611 * solib-spu.c (spu_enable_break): Update.
7612 (ocl_enable_break): Update.
7613 * solib-svr4.c (elf_locate_base): Update.
7614 (enable_break): Update.
7615 * spu-tdep.c (spu_get_overlay_table): Update.
7616 (spu_catch_start): Update.
7617 (flush_ea_cache): Update.
7618 * stabsread.c (define_symbol): Update.
7619 (scan_file_globals): Update.
7620 * stack.c (find_frame_funname): Update.
7621 (frame_info): Update.
7622 * symfile.c (simple_read_overlay_table): Update.
7623 (simple_overlay_update): Update.
7624 * symmisc.c (dump_msymbols): Update.
7625 * symtab.c (fixup_section): Update.
7626 (find_pc_sect_line): Update.
7627 (skip_prologue_sal): Update.
7628 (search_symbols): Update.
7629 (print_msymbol_info): Update.
7630 (rbreak_command): Update.
7631 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
7632 (completion_list_objc_symbol): Update.
7633 (default_make_symbol_completion_list_break_on): Update.
7634 * tracepoint.c (scope_info): Update.
7635 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
7636 (tui_get_begin_asm_address): Update.
7637 * valops.c (find_function_in_inferior): Update.
7638 * value.c (value_static_field): Update.
7639 (value_fn_field): Update.
7640
50e65b17
TT
76412014-02-26 Tom Tromey <tromey@redhat.com>
7642
7643 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
7644 bound minimal symbols. Move code that knows about minsym
7645 table layout...
7646 * minsyms.c (minimal_symbol_upper_bound): ... here. New
7647 function.
7648 * minsyms.h (minimal_symbol_upper_bound): Declare.
7649 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
7650 minimal_symbol_upper_bound.
7651
1b588015
JB
76522014-02-27 Joel Brobecker <brobecker@adacore.com>
7653
7654 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
7655 Use the type's name if its basic type does not have a tag.
7656
dbb9c2b1
JB
76572014-02-27 Joel Brobecker <brobecker@adacore.com>
7658
7659 * dwarf2read.c (read_subrange_type): Add comment.
7660
55426c9d
JB
76612014-02-27 Joel Brobecker <brobecker@adacore.com>
7662
7663 * dwarf2read.c (update_enumeration_type_from_children): New
7664 function, mostly extracted from process_structure_scope.
7665 (read_enumeration_type): Call update_enumeration_type_from_children.
7666 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
7667 and flag_flag_enum fields.
7668
f2fce0ca
PA
76692014-02-26 Pedro Alves <palves@redhat.com>
7670
7671 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
7672 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
7673 to_xfer_partial method.
7674
7a44e40e
PA
76752014-02-26 Pedro Alves <palves@redhat.com>
7676
7677 * target.c (complete_target_initialization): Don't install
7678 default_xfer_partial as to_xfer_partial hook.
7679 (nomemory): Delete.
7680 (update_current_target): Don't INHERIT nor de_fault
7681 deprecated_xfer_memory. Delete de_fault macro.
7682 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
7683 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
7684 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
7685 field.
7686
bd265cd0
PA
76872014-02-26 Pedro Alves <palves@redhat.com>
7688
7689 * go32-nat.c (my_write_child): New function.
7690 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
7691 (go32_xfer_partial): New function.
7692 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
7693 Instead install a to_xfer_partial hook.
7694
9d46c4e5
PA
76952014-02-26 Pedro Alves <palves@redhat.com>
7696
7697 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
7698 to_xfer_partial helper. Rewrite.
7699 (procfs_xfer_partial): New function.
7700 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
7701 Install a to_xfer_partial hook.
7702
a1583b1f
PA
77032014-02-26 Pedro Alves <palves@redhat.com>
7704
7705 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
7706 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
7707 (m32r_xfer_partial): New function.
7708 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
7709 Install a to_xfer_partial hook.
7710
6df1b29f
PA
77112014-02-26 Pedro Alves <palves@redhat.com>
7712
7713 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
7714 helper.
7715 (mips_xfer_partial): New function.
7716 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
7717 hook. Install a to_xfer_partial hook.
7718
dc53a7ad
JB
77192014-02-26 Joel Brobecker <brobecker@adacore.com>
7720
7721 * gdbtypes.h (create_array_type_with_stride): Add declaration.
7722 * gdbtypes.c (create_array_type_with_stride): New function,
7723 renaming create_array_type, but with an added parameter
7724 called "bit_stride".
7725 (create_array_type): Re-implement using
7726 create_array_type_with_stride.
7727 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
7728 and DW_AT_bit_stride attributes.
7729
12ab52e9
PA
77302014-02-26 Pedro Alves <palves@redhat.com>
7731
7732 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
7733 task-specific breakpoints.
7734
d16461ae
PA
77352014-02-25 Pedro Alves <palves@redhat.com>
7736
7737 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
7738 handling of object == TARGET_OBJECT_UNWIND_TABLE.
7739
a8b16220
SS
77402014-02-25 Stan Shebs <stan@codesourcery.com>
7741
7742 * defs.h: Annotate comments for Doxygen.
7743
b9e795ee
TT
77442014-02-25 Tom Tromey <tromey@redhat.com>
7745
7746 * target.h (target_ignore): Don't declare.
7747 * target.c (target_ignore): Remove.
7748
849c862e
JK
77492014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7750
7751 PR gdb/16626
7752 * auto-load.c (auto_load_objfile_script_1): Change filename to
7753 debugfile.
7754
475109d8
JB
77552014-02-25 Joel Brobecker <brobecker@adacore.com>
7756
7757 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
7758 documentation. Adjust prototype to match the target_ops
7759 to_xfer_partial method. Adjust implementation accordingly.
7760
e186c3bd
HZ
77612014-02-25 Hui Zhu <hui@codesourcery.com>
7762
7763 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
7764 to_traceframe_info.
7765
6d451942
KB
77662014-02-25 Kevin Buettner <kevinb@redhat.com>
7767
041ab8b4 7768 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
6d451942
KB
7769 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
7770 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
7771 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
7772 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
7773 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
7774 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
7775 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
7776 New constants.
7777 (rl78_register_type): Use a data pointer type for SP and
7778 new pseudo registers mentioned above. Use a 16 bit integer
7779 type for all other register pairs.
7780 (rl78_register_name, rl78_g10_register_name): Update for
7781 new pseudo registers.
7782 (rl78_pseudo_register_read): Likewise.
7783 (rl78_pseudo_register_write): Likewise.
7784 (rl78_dwarf_reg_to_regnum): Return register numbers representing
7785 to the newly added pseudo registers.
7786
eddf0bae
DE
77872014-02-24 Doug Evans <dje@google.com>
7788
7789 * value.c (record_latest_value): Fix comment.
7790 * printcmd.c (print_command_1): Remove code to handle -1 return from
7791 record_latest_value.
7792
e96027e0
PA
77932014-02-24 Pedro Alves <palves@redhat.com>
7794
7795 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
7796 deprecated_xfer_memory hook.
7797 (procfs_xfer_partial): Call procfs_xfer_memory instead
7798 of the deprecated_xfer_memory target hook.
7799 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
7800 helper.
7801
0837c976
YZ
78022014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
7803
7804 * windows-nat.c (windows_xfer_shared_libraries): Return
7805 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
7806 requested object is TARGET_OBJECT_LIBRARIES.
7807
bc113b4e
YQ
78082014-02-24 Yao Qi <yao@codesourcery.com>
7809
7810 * target.h (enum target_xfer_status)
7811 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
7812 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
7813 explicitly. New.
7814 * corefile.c (memory_error_message): User updated.
7815 * exec.c (section_table_read_available_memory): Likewise.
7816 * record-btrace.c (record_btrace_xfer_partial): Likewise.
7817 * target.c (target_xfer_status_to_string): Likewise.
7818 (raw_memory_xfer_partial): Likewise.
7819 (memory_xfer_partial_1, target_xfer_partial): Likewise.
7820 * valops.c (read_value_memory): Likewise.
7821 * exec.h: Update comments.
7822
01cb8804
YQ
78232014-02-24 Yao Qi <yao@codesourcery.com>
7824
7825 * target.c (target_xfer_status_to_string): Rename argument err
7826 to status.
7827 * target.h (target_xfer_status_to_string): Update declaration.
7828 Replace target_xfer_error_to_string with
7829 target_xfer_status_to_string in comment.
7830
93063aa6
YQ
78312014-02-24 Yao Qi <yao@codesourcery.com>
7832
7833 * mips-linux-nat.c (super_close): Update its type.
7834 (mips_linux_close): Pass 'self' to super_close.
7835
5c328c05
YQ
78362014-02-24 Yao Qi <yao@codesourcery.com>
7837
7838 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
7839 * corefile.c (read_memory): Adjusted.
7840 * target.c (target_write_with_progress): Adjusted.
7841
f73023dd
YQ
78422014-02-23 Yao Qi <yao@codesourcery.com>
7843
7844 Revert two patches:
7845
7846 2013-10-25 Yao Qi <yao@codesourcery.com>
7847
7848 * remote.c (remote_traceframe_info): Return early if
7849 traceframe is not selected.
7850
7851 2013-07-19 Yao Qi <yao@codesourcery.com>
7852
7853 * target.c (update_current_target): Change the default action
7854 of 'to_traceframe_info' from tcomplain to return_zero.
7855 * target.h (struct target_ops) <to_traceframe_info>: Add more
7856 comments.
7857
5a2eb0ef
YQ
78582014-02-23 Yao Qi <yao@codesourcery.com>
7859
7860 * valops.c (read_value_memory): Rewrite it. Call
7861 target_xfer_partial in a loop.
7862 * exec.h (section_table_available_memory): Remove declaration.
7863 Move comments to ...
7864 * exec.c (section_table_available_memory): ... here. Make it
7865 static.
7866
1ee79381
YQ
78672014-02-23 Yao Qi <yao@codesourcery.com>
7868
7869 * exec.c (section_table_read_available_memory): New function.
7870 * exec.h (section_table_read_available_memory): Declare.
7871 * ctf.c (ctf_xfer_partial): Call
7872 section_table_read_available_memory.
7873 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7874
1ca49d37
YQ
78752014-02-23 Yao Qi <yao@codesourcery.com>
7876
7877 * ctf.c (ctf_xfer_partial): Move code to ...
7878 * exec.c (exec_read_partial_read_only): ... it. New function.
7879 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7880 * tracefile.c: Include "exec.h".
7881 * exec.h (exec_read_partial_read_only): Declare.
7882
a283690e
YQ
78832014-02-23 Yao Qi <yao@codesourcery.com>
7884
7885 * tracefile-tfile.c (tfile_has_all_memory): Remove.
7886 (tfile_has_memory): Remove.
7887 (init_tfile_ops): Don't set fields to_has_all_memory and
7888 to_has_memory of tfile_ops.
7889 * tracefile.c (tracefile_has_all_memory): New function.
7890 (tracefile_has_memory): New function.
7891 (init_tracefile_ops): Initialize fields to_has_all_memory and
7892 to_has_memory of 'ops'.
7893
12e03cd0
YQ
78942014-02-23 Yao Qi <yao@codesourcery.com>
7895
7896 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
7897 (ctf_thread_alive, ctf_get_trace_status): Remove.
7898 (init_ctf_ops): Don't set some fields of ctf_ops. Call
7899 init_tracefile_ops.
7900 * tracefile-tfile.c (tfile_get_trace_status): Remove.
7901 (tfile_has_stack, tfile_has_registers): Remove.
7902 (tfile_thread_alive): Remove.
7903 (init_tfile_ops): Don't set some fields of tfile_ops. Call
7904 init_tracefile_ops.
7905 * tracefile.c (tracefile_has_stack): New function.
7906 (tracefile_has_registers): New function.
7907 (tracefile_thread_alive): New function.
7908 (tracefile_get_trace_status): New function.
7909 (init_tracefile_ops): New function.
7910 * tracefile.h (init_tracefile_ops): Declare.
7911
11395323
YQ
79122014-02-23 Yao Qi <yao@codesourcery.com>
7913
7914 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
7915 (O_LARGEFILE): Likewise.
7916 (tfile_ops): Likewise.
7917 (TRACE_HEADER_SIZE): Likewise.
7918 (trace_fd, trace_frames_offset, cur_offset): Likewise.
7919 (cur_data_size): Likewise.
7920 (tfile_read, tfile_open, tfile_interp_line): Likewise.
7921 (tfile_close, tfile_files_info): Likewise.
7922 (tfile_get_trace_status): Likewise.
7923 (tfile_get_tracepoint_status): Likewise.
7924 (tfile_get_traceframe_address): Likewise.
7925 (tfile_trace_find, match_blocktype): Likewise.
7926 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
7927 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
7928 (tfile_get_trace_state_variable_value): Likewise.
7929 (tfile_has_all_memory, tfile_has_memory): Likewise.
7930 (tfile_has_stack, tfile_has_registers): Likewise.
7931 (tfile_thread_alive, build_traceframe_info): Likewise.
7932 (tfile_traceframe_info, init_tfile_ops): Likewise.
7933 (_initialize_tracepoint): Don't call init_tfile_ops
7934 and add_target_with_completer.
7935 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
7936 exec.h, completer.h and filenames.h.
7937 (_initialize_tracefile_tfile): New function.
7938
7951c4eb
YQ
79392014-02-23 Yao Qi <yao@codesourcery.com>
7940
7941 * Makefile.in (REMOTE_OBS): Append tracefile.o and
7942 tracefile-tfile.o.
7943 (HFILES_NO_SRCDIR): Add tracefile.h.
7944 * ctf.c: Include "tracefile.h".
7945 * tracefile.h: New file.
7946 * tracefile.c: New file
7947 * tracefile-tfile.c: New file.
7948 * tracepoint.c: Include "tracefile.h".
7949 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
7950 (stop_reason_names): Add const.
7951 (trace_file_writer_xfree): Move it to tracefile.c.
7952 (trace_save, trace_save_command, trace_save_tfile): Likewise.
7953 (trace_save_ctf): Likewise.
7954 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
7955 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
7956 (tfile_write_header, tfile_write_regblock_type): Likewise.
7957 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
7958 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
7959 (tfile_write_raw_data, tfile_end): Likewise.
7960 (tfile_trace_file_writer_new): Likewise.
7961 (free_uploaded_tp): Make it extern.
7962 (free_uploaded_tsv): Make it extern.
7963 (_initialize_tracepoint): Move code to register command 'tsave'
7964 to tracefile.c.
7965 * tracepoint.h (stop_reason_names): Declare.
7966 (struct trace_frame_write_ops): Move it to tracefile.h.
7967 (struct trace_file_write_ops): Likewise.
7968 (struct trace_file_writer): Likewise.
7969 (free_uploaded_tsvs, free_uploaded_tps): Declare.
7970
184cd072
JK
79712014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7972
7973 PR gdb/16594
7974 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
7975 process name.
7976 (get_cores_used_by_process): New parameter num_cores, use it.
7977 (linux_xfer_osdata_processes): Pass num_cores to it.
7978 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
7979 process name.
7980
c63528fc
AK
79812014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
7982
7983 * target.c (memory_xfer_partial): Fix length arg in call to
7984 breakpoint_xfer_memory.
7985
d7b30f67
SDJ
79862014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
7987
7988 PR tdep/16397
7989 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
7990 number comes after the + or - signs. Adjust length of register
7991 name to be extracted.
7992
8838afaf
TT
79932014-02-20 Tom Tromey <tromey@redhat.com>
7994
7995 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
7996 (ada_varobj_ops): Mark "extern".
7997
05227d14
TT
79982014-02-20 Tom Tromey <tromey@redhat.com>
7999
8000 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
8001
1254eefc
DE
80022014-02-20 Doug Evans <xdje42@gmail.com>
8003
8004 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
8005 All callers updated.
8006 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
8007 All callers updated.
8008 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
8009 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
8010
adde2bff
DE
80112014-02-20 lin zuojian <manjian2006@gmail.com>
8012 Joel Brobecker <brobecker@adacore.com>
8013 Doug Evans <xdje42@gmail.com>
8014
8015 PR symtab/16581
8016 * dwarf2read.c (struct die_info): New member in_process.
8017 (reset_die_in_process): New function.
8018 (process_die): Set it at the start, reset when returning.
8019 (inherit_abstract_dies): Only call process_die if origin_child_die
8020 not already being processed.
8021
3be75f87
JB
80222014-02-20 Joel Brobecker <brobecker@adacore.com>
8023
8024 * windows-nat.c (handle_unload_dll): Add function documentation.
8025 (do_initial_windows_stuff): Add comment explaining why we wait
8026 until after inferior initialization has finished before
8027 processing all DLLs.
8028
47f7ffdb
JB
80292014-02-20 Joel Brobecker <brobecker@adacore.com>
8030
8031 * windows-nat.c (get_module_name): Delete.
8032 (windows_get_exec_module_filename): New function, mostly
8033 inspired from get_module_name.
8034 (windows_pid_to_exec_file): Replace call to get_module_name
8035 by call to windows_get_exec_module_filename.
8036
1cd9feab
JB
80372014-02-20 Joel Brobecker <brobecker@adacore.com>
8038
8039 * windows-nat.c (handle_load_dll): Rewrite this function's
8040 introductory comment. Remove code using get_module_name
8041 to get the DLL's name.
8042
ea39ad35
JB
80432014-02-20 Joel Brobecker <brobecker@adacore.com>
8044
8045 * windows-nat.c (get_windows_debug_event): Ignore
8046 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
8047 if windows_initialization_done == 0.
8048 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
8049 Adjust implementation to always load all DLLs.
8050 (do_initial_windows_stuff): Replace call to
8051 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
8052
95060284
JB
80532014-02-20 Joel Brobecker <brobecker@adacore.com>
8054
8055 * windows-nat.c (_initialize_windows_nat): Deprecate the
8056 "dll-symbols" command. Turn the "add-shared-symbol-files"
8057 and "assf" aliases into commands, and deprecate them as well.
8058 * NEWS: Add entry explaining that "dll-symbols" and its two
8059 aliases are now deprecated.
8060
8d4fdb12
JB
80612014-02-20 Joel Brobecker <brobecker@adacore.com>
8062
8063 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
8064 new-line in debug string. Remove trailing spaces.
8065
1b281443
SS
80662014-02-19 Stan Shebs <stan@codesourcery.com>
8067
8068 * darwin-nat.c (darwin_xfer_partial): Fix return type.
8069
f7bd0f78
SC
80702014-02-19 Siva Chandra Reddy <sivachandra@google.com>
8071
8072 * NEWS: Add entry for the new feature
8073 * python/py-value.c (valpy_binop): Call value_x_binop for struct
8074 and class values.
8075
399ebc3d
SS
80762014-02-19 Stan Shebs <stan@codesourcery.com>
8077
8078 * MAINTAINERS: List Yao Qi as nios2 maintainer.
8079
c658158d
PA
80802014-02-19 Pedro Alves <palves@redhat.com>
8081
8082 * common/ptid.h (struct ptid): Mention that process_stratum
8083 targets should prefer ptid.lwp.
8084
ba348170
PA
80852014-02-19 Pedro Alves <palves@redhat.com>
8086
8087 * remote.c (remote_thread_alive, write_ptid, read_ptid)
8088 (read_ptid, remote_newthread_step, remote_threads_extra_info)
8089 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
8090 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
8091 store remote thread ids rather than ptid.tid.
8092 (_initialize_remote): Adjust.
8093
ac01945b
TT
80942014-02-19 Tom Tromey <tromey@redhat.com>
8095
8096 * target.c (target_get_unwinder): Rewrite.
8097 (target_get_tailcall_unwinder): Rewrite.
8098 * record-btrace.c (record_btrace_to_get_unwinder): New function.
8099 (record_btrace_to_get_tailcall_unwinder): New function.
8100 (init_record_btrace_ops): Update.
8101 * target.h (struct target_ops) <to_get_unwinder,
8102 to_get_tailcall_unwinder>: Now function pointers. Use
8103 TARGET_DEFAULT_RETURN.
8104
8476dc92
TT
81052014-02-19 Tom Tromey <tromey@redhat.com>
8106
8107 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
8108 argument.
8109 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
8110
c0eca49f
TT
81112014-02-19 Tom Tromey <tromey@redhat.com>
8112
8113 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
8114 directly.
8115 * target-delegates.c: Rebuild.
8116 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
8117 TARGET_DEFAULT_FUNC.
8118 * target.c (default_target_decr_pc_after_break): Rename from
8119 forward_target_decr_pc_after_break. Simplify.
8120 (target_decr_pc_after_break): Rely on delegation.
8121
596b6b39
TT
81222014-02-19 Tom Tromey <tromey@redhat.com>
8123
8124 * target.c (update_current_target): Do not INHERIT to_doc or
8125 to_magic. Do not de_fault to_open or to_close.
8126
b427c1bc
TT
81272014-02-19 Tom Tromey <tromey@redhat.com>
8128
8129 * gcore.h (objfile_find_memory_regions): Declare.
8130 * gcore.c (objfile_find_memory_regions): No longer static. Add
8131 "self" argument.
8132 (_initialize_gcore): Don't call exec_set_find_memory_regions.
8133 * exec.c: Include gcore.h.
8134 (exec_set_find_memory_regions): Remove.
8135 (exec_find_memory_regions): Remove.
8136 (exec_do_find_memory_regions): Remove.
8137 (init_exec_ops): Update.
8138 * defs.h (exec_set_find_memory_regions): Remove.
8139
9b144037
TT
81402014-02-19 Tom Tromey <tromey@redhat.com>
8141
8142 * target-delegates.c: Rebuild.
8143 * target.h (struct target_ops) <to_extra_thread_info,
8144 to_thread_name, to_pid_to_exec_file, to_get_section_table,
8145 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
8146 not 0, in TARGET_DEFAULT_RETURN.
8147
555bbdeb
TT
81482014-02-19 Tom Tromey <tromey@redhat.com>
8149
8150 * target.c (complete_target_initialization): Remove casts. Use
8151 return_zero_has_execution.
8152 (return_zero): Add "ignore" argument.
8153 (return_zero_has_execution): New function.
8154 (init_dummy_target): Remove casts. Use
8155 return_zero_has_execution.
8156
be4ddd36
TT
81572014-02-19 Tom Tromey <tromey@redhat.com>
8158
8159 * target.c (update_current_target): Update comments. Do not
8160 INHERIT to_stratum.
8161
2117c711
TT
81622014-02-19 Tom Tromey <tromey@redhat.com>
8163
8164 * arm-linux-nat.c (arm_linux_read_description): Delegate when
8165 needed.
8166 * corelow.c (core_read_description): Delegate when needed.
8167 * remote.c (remote_read_description): Delegate when needed.
8168 * target-delegates.c: Rebuild.
8169 * target.c (target_read_description): Rewrite.
8170 * target.h (struct target_ops) <to_read_description>: Update
8171 comment. Use TARGET_DEFAULT_RETURN.
8172
e88ef65c
TT
81732014-02-19 Tom Tromey <tromey@redhat.com>
8174
8175 * target-delegates.c: Rebuild.
8176 * target.c (update_current_target): Don't inherit or default
8177 to_can_run.
8178 (find_default_run_target): Check against delegate_can_run.
8179 * target.h (struct target_ops) <to_can_run>: Use
8180 TARGET_DEFAULT_RETURN.
8181
86a0854a
TT
81822014-02-19 Tom Tromey <tromey@redhat.com>
8183
8184 * target-delegates.c: Rebuild.
8185 * target.c (target_disconnect): Unconditionally delegate.
8186 * target.h (struct target_ops) <to_disconnect>: Use
8187 TARGET_DEFAULT_NORETURN.
8188
ee97f592
TT
81892014-02-19 Tom Tromey <tromey@redhat.com>
8190
8191 * record.c (record_stop): Unconditionally delegate.
8192 * target-delegates.c: Rebuild.
8193 * target.c (target_stop_recording): Unconditionally delegate.
8194 * target.h (struct target_ops) <to_stop_recording>: Use
8195 TARGET_DEFAULT_IGNORE.
8196
6dc7fcf4
TT
81972014-02-19 Tom Tromey <tromey@redhat.com>
8198
8199 * target-delegates.c: Rebuild.
8200 * target.c (target_enable_btrace): Unconditionally delegate.
8201 * target.h (struct target_ops) <to_enable_btrace>: Use
8202 TARGET_DEFAULT_NORETURN.
8203
eb5b20d4
TT
82042014-02-19 Tom Tromey <tromey@redhat.com>
8205
8206 * target-delegates.c: Rebuild.
8207 * target.c (target_read_btrace): Unconditionally delegate.
8208 * target.h (struct target_ops) <to_read_btrace>: Use
8209 TARGET_DEFAULT_NORETURN.
8210
9ace480d
TT
82112014-02-19 Tom Tromey <tromey@redhat.com>
8212
8213 * target-delegates.c: Rebuild.
8214 * target.c (target_teardown_btrace): Unconditionally delegate.
8215 * target.h (struct target_ops) <to_teardown_btrace>: Use
8216 TARGET_DEFAULT_NORETURN.
8217
8dc292d3
TT
82182014-02-19 Tom Tromey <tromey@redhat.com>
8219
8220 * target-delegates.c: Rebuild.
8221 * target.c (target_disable_btrace): Unconditionally delegate.
8222 * target.h (struct target_ops) <to_disable_btrace>: Use
8223 TARGET_DEFAULT_NORETURN.
8224
58a5184e
TT
82252014-02-19 Tom Tromey <tromey@redhat.com>
8226
8227 * target-delegates.c: Rebuild.
8228 * target.c (default_search_memory): New function.
8229 (simple_search_memory): Update comment.
8230 (target_search_memory): Unconditionally delegate.
8231 * target.h (struct target_ops) <to_search_memory>: Use
8232 TARGET_DEFAULT_FUNC.
8233
8de71aab
TT
82342014-02-19 Tom Tromey <tromey@redhat.com>
8235
8236 * auxv.c (default_auxv_parse): No longer static.
8237 (target_auxv_parse): Unconditionally delegate.
8238 * auxv.h (default_auxv_parse): Declare.
8239 * target-delegates.c: Rebuild.
8240 * target.c: Include auxv.h.
8241 * target.h (struct target_ops) <to_auxv_parse>: Use
8242 TARGET_DEFAULT_FUNC.
8243
6b2c5a57
TT
82442014-02-19 Tom Tromey <tromey@redhat.com>
8245
8246 * target-delegates.c: Rebuild.
8247 * target.c (target_memory_map): Unconditionally delegate.
8248 * target.h (struct target_ops) <to_memory_map>: Use
8249 TARGET_DEFAULT_RETURN.
8250
cbffc065
TT
82512014-02-19 Tom Tromey <tromey@redhat.com>
8252
8253 * target-delegates.c: Rebuild.
8254 * target.c (target_thread_alive): Unconditionally delegate.
8255 * target.h (struct target_ops) <to_thread_alive>: Use
8256 TARGET_DEFAULT_RETURN.
8257
f09e2107
TT
82582014-02-19 Tom Tromey <tromey@redhat.com>
8259
8260 * target-delegates.c: Rebuild.
8261 * target.c (target_save_record): Unconditionally delegate.
8262 * target.h (struct target_ops) <to_save_record>: Use
8263 TARGET_DEFAULT_NORETURN.
8264
07366925
TT
82652014-02-19 Tom Tromey <tromey@redhat.com>
8266
8267 * target-delegates.c: Rebuild.
8268 * target.c (target_delete_record): Unconditionally delegate.
8269 * target.h (struct target_ops) <to_delete_record>: Use
8270 TARGET_DEFAULT_NORETURN.
8271
dd2e9d25
TT
82722014-02-19 Tom Tromey <tromey@redhat.com>
8273
8274 * target-delegates.c: Rebuild.
8275 * target.c (target_record_is_replaying): Unconditionally
8276 delegate.
8277 * target.h (struct target_ops) <to_record_is_replaying>: Use
8278 TARGET_DEFAULT_RETURN.
8279
671e76cc
TT
82802014-02-19 Tom Tromey <tromey@redhat.com>
8281
8282 * target-delegates.c: Rebuild.
8283 * target.c (target_goto_record_begin): Unconditionally delegate.
8284 * target.h (struct target_ops) <to_goto_record_begin>: Use
8285 TARGET_DEFAULT_NORETURN.
8286
e9179bb3
TT
82872014-02-19 Tom Tromey <tromey@redhat.com>
8288
8289 * target-delegates.c: Rebuild.
8290 * target.c (target_goto_record_end): Unconditionally delegate.
8291 * target.h (struct target_ops) <to_goto_record_end>: Use
8292 TARGET_DEFAULT_NORETURN.
8293
05969c84
TT
82942014-02-19 Tom Tromey <tromey@redhat.com>
8295
8296 * target-delegates.c: Rebuild.
8297 * target.c (target_goto_record): Unconditionally delegate.
8298 * target.h (struct target_ops) <to_goto_record>: Use
8299 TARGET_DEFAULT_NORETURN.
8300
3679abfa
TT
83012014-02-19 Tom Tromey <tromey@redhat.com>
8302
8303 * target-delegates.c: Rebuild.
8304 * target.c (target_insn_history): Unconditionally delegate.
8305 * target.h (struct target_ops) <to_insn_history>: Use
8306 TARGET_DEFAULT_NORETURN.
8307
8444ab58
TT
83082014-02-19 Tom Tromey <tromey@redhat.com>
8309
8310 * target-delegates.c: Rebuild.
8311 * target.c (target_insn_history_from): Unconditionally delegate.
8312 * target.h (struct target_ops) <to_insn_history_from>: Use
8313 TARGET_DEFAULT_NORETURN.
8314
c29302cc
TT
83152014-02-19 Tom Tromey <tromey@redhat.com>
8316
8317 * target-delegates.c: Rebuild.
8318 * target.c (target_insn_history_range): Unconditionally delegate.
8319 * target.h (struct target_ops) <to_insn_history_range>: Use
8320 TARGET_DEFAULT_NORETURN.
8321
170049d4
TT
83222014-02-19 Tom Tromey <tromey@redhat.com>
8323
8324 * target-delegates.c: Rebuild.
8325 * target.c (target_call_history): Unconditionally delegate.
8326 * target.h (struct target_ops) <to_call_history>: Use
8327 TARGET_DEFAULT_NORETURN.
8328
16fc27d6
TT
83292014-02-19 Tom Tromey <tromey@redhat.com>
8330
8331 * target-delegates.c: Rebuild.
8332 * target.c (target_call_history_from): Unconditionally delegate.
8333 * target.h (struct target_ops) <to_call_history_from>: Use
8334 TARGET_DEFAULT_NORETURN.
8335
115d9817
TT
83362014-02-19 Tom Tromey <tromey@redhat.com>
8337
8338 * target-delegates.c: Rebuild.
8339 * target.c (target_call_history_range): Unconditionally delegate.
8340 * target.h (struct target_ops) <to_call_history_range>: Use
8341 TARGET_DEFAULT_NORETURN.
8342
eb276a6b
TT
83432014-02-19 Tom Tromey <tromey@redhat.com>
8344
8345 * target-delegates.c: Rebuild.
8346 * target.c (target_verify_memory): Unconditionally delegate.
8347 * target.h (struct target_ops) <to_verify_memory>: Use
8348 TARGET_DEFAULT_NORETURN.
8349
9e538d0d
TT
83502014-02-19 Tom Tromey <tromey@redhat.com>
8351
8352 * target-delegates.c: Rebuild.
8353 * target.c (target_core_of_thread): Unconditionally delegate.
8354 * target.h (struct target_ops) <to_core_of_thread>: Use
8355 TARGET_DEFAULT_RETURN.
8356
f6fb2925
TT
83572014-02-19 Tom Tromey <tromey@redhat.com>
8358
8359 * target-delegates.c: Rebuild.
8360 * target.c (target_flash_done): Unconditionally delegate.
8361 * target.h (struct target_ops) <to_flash_done>: Use
8362 TARGET_DEFAULT_NORETURN.
8363
e8a6c6ac
TT
83642014-02-19 Tom Tromey <tromey@redhat.com>
8365
8366 * target-delegates.c: Rebuild.
8367 * target.c (target_flash_erase): Unconditionally delegate.
8368 * target.h (struct target_ops) <to_flash_erase>: Use
8369 TARGET_DEFAULT_NORETURN.
8370
7e35c012
TT
83712014-02-19 Tom Tromey <tromey@redhat.com>
8372
8373 * target-delegates.c: Rebuild.
8374 * target.c (target_get_section_table): Unconditionally delegate.
8375 * target.h (struct target_ops) <to_get_section_table>: Use
8376 TARGET_DEFAULT_RETURN.
8377
770234d3
TT
83782014-02-19 Tom Tromey <tromey@redhat.com>
8379
8380 * target-delegates.c: Rebuild.
8381 * target.c (target_pid_to_str): Unconditionally delegate.
8382 (init_dummy_target): Don't initialize to_pid_to_str.
8383 (default_pid_to_str): Rename from dummy_pid_to_str.
8384 * target.h (struct target_ops) <to_pid_to_str>: Use
8385 TARGET_DEFAULT_FUNC.
8386
09b0dc2b
TT
83872014-02-19 Tom Tromey <tromey@redhat.com>
8388
8389 * target-delegates.c: Rebuild.
8390 * target.c (target_find_new_threads): Unconditionally delegate.
8391 * target.h (struct target_ops) <to_find_new_threads>: Use
8392 TARGET_DEFAULT_RETURN.
8393
7d4f8efa
TT
83942014-02-19 Tom Tromey <tromey@redhat.com>
8395
8396 * target-delegates.c: Rebuild.
8397 * target.c (target_program_signals): Unconditionally delegate.
8398 * target.h (struct target_ops) <to_program_signals>: Use
8399 TARGET_DEFAULT_IGNORE.
8400
035cad7f
TT
84012014-02-19 Tom Tromey <tromey@redhat.com>
8402
8403 * target-delegates.c: Rebuild.
8404 * target.c (target_pass_signals): Unconditionally delegate.
8405 * target.h (struct target_ops) <to_pass_signals>: Use
8406 TARGET_DEFAULT_IGNORE.
8407
8d657035
TT
84082014-02-19 Tom Tromey <tromey@redhat.com>
8409
8410 * target-delegates.c: Rebuild.
8411 * target.c (default_mourn_inferior): New function.
8412 (target_mourn_inferior): Unconditionally delegate.
8413 * target.h (struct target_ops) <to_mourn_inferior>: Use
8414 TARGET_DEFAULT_FUNC.
8415
098dba18
TT
84162014-02-19 Tom Tromey <tromey@redhat.com>
8417
8418 * target-delegates.c: Rebuild.
8419 * target.c (default_follow_fork): New function.
8420 (target_follow_fork): Unconditionally delegate.
8421 * target.h (struct target_ops) <to_follow_fork>: Use
8422 TARGET_DEFAULT_FUNC.
8423
423a4807
TT
84242014-02-19 Tom Tromey <tromey@redhat.com>
8425
8426 * target-delegates.c: Rebuild.
8427 * target.c (target_kill): Unconditionally delegate.
8428 * target.h (struct target_ops) <to_kill>: Use
8429 TARGET_DEFAULT_NORETURN.
8430
6c7e5e5c
TT
84312014-02-19 Tom Tromey <tromey@redhat.com>
8432
8433 * target-delegates.c: Rebuild.
8434 * target.c (target_masked_watch_num_registers): Unconditionally
8435 delegate.
8436 * target.h (struct target_ops) <to_masked_watch_num_registers>:
8437 Use TARGET_DEFAULT_RETURN.
8438
8b1c364c
TT
84392014-02-19 Tom Tromey <tromey@redhat.com>
8440
8441 * target-delegates.c: Rebuild.
8442 * target.c (target_remove_mask_watchpoint): Unconditionally
8443 delegate.
8444 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
8445 TARGET_DEFAULT_RETURN.
8446
cd4ae029
TT
84472014-02-19 Tom Tromey <tromey@redhat.com>
8448
8449 * target-delegates.c: Rebuild.
8450 * target.c (target_insert_mask_watchpoint): Unconditionally
8451 delegate.
8452 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
8453 TARGET_DEFAULT_RETURN.
8454
a134316b
TT
84552014-02-19 Tom Tromey <tromey@redhat.com>
8456
8457 * target-delegates.c: Rebuild.
8458 * target.c (target_ranged_break_num_registers): Unconditionally
8459 delegate.
8460 * target.h (struct target_ops) <to_ranged_break_num_registers>:
8461 Use TARGET_DEFAULT_RETURN.
8462
ad5989bd
TT
84632014-02-19 Tom Tromey <tromey@redhat.com>
8464
8465 * target-delegates.c: Rebuild.
8466 * target.c (target_fetch_registers): Unconditionally delegate.
8467 * target.h (struct target_ops) <to_fetch_registers>: Use
8468 TARGET_DEFAULT_NORETURN.
8469
46ee7e8d
TT
84702014-02-19 Tom Tromey <tromey@redhat.com>
8471
8472 * target-delegates.c: Rebuild.
8473 * target.c (update_current_target): Don't inherit or default
8474 to_stop.
8475 * target.h (struct target_ops) <to_stop>: Use
8476 TARGET_DEFAULT_IGNORE.
8477
843f59ed
TT
84782014-02-19 Tom Tromey <tromey@redhat.com>
8479
8480 * target-delegates.c: Rebuild.
8481 * target.c (update_current_target): Don't inherit or default
8482 to_can_run_breakpoint_commands.
8483 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
8484 Use TARGET_DEFAULT_RETURN.
8485
ccfde2a0
TT
84862014-02-19 Tom Tromey <tromey@redhat.com>
8487
8488 * target-delegates.c: Rebuild.
8489 * target.c (update_current_target): Don't inherit or default
8490 to_supports_evaluation_of_breakpoint_conditions.
8491 * target.h (struct target_ops)
8492 <to_supports_evaluation_of_breakpoint_conditions>: Use
8493 TARGET_DEFAULT_RETURN.
8494
0de91722
TT
84952014-02-19 Tom Tromey <tromey@redhat.com>
8496
8497 * target-delegates.c: Rebuild.
8498 * target.c (update_current_target): Don't inherit or default
8499 to_augmented_libraries_svr4_read.
8500 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8501 Use TARGET_DEFAULT_RETURN.
8502
9a7d8b48
TT
85032014-02-19 Tom Tromey <tromey@redhat.com>
8504
8505 * target-delegates.c: Rebuild.
8506 * target.c (update_current_target): Don't inherit or default
8507 to_can_use_agent.
8508 * target.h (struct target_ops) <to_can_use_agent>: Use
8509 TARGET_DEFAULT_RETURN.
8510
d9db5b21
TT
85112014-02-19 Tom Tromey <tromey@redhat.com>
8512
8513 * target-delegates.c: Rebuild.
8514 * target.c (update_current_target): Don't inherit or default
8515 to_use_agent.
8516 * target.h (struct target_ops) <to_use_agent>: Use
8517 TARGET_DEFAULT_NORETURN.
8518
92155eeb
TT
85192014-02-19 Tom Tromey <tromey@redhat.com>
8520
8521 * target-delegates.c: Rebuild.
8522 * target.c (update_current_target): Don't inherit or default
8523 to_traceframe_info.
8524 (return_null): Remove.
8525 * target.h (struct target_ops) <to_traceframe_info>: Use
8526 TARGET_DEFAULT_RETURN.
8527
d6522a22
TT
85282014-02-19 Tom Tromey <tromey@redhat.com>
8529
8530 * target-delegates.c: Rebuild.
8531 * target.c (update_current_target): Don't inherit or default
8532 to_static_tracepoint_markers_by_strid.
8533 * target.h (struct target_ops)
8534 <to_static_tracepoint_markers_by_strid>: Use
8535 TARGET_DEFAULT_NORETURN.
8536
4c3e4425
TT
85372014-02-19 Tom Tromey <tromey@redhat.com>
8538
8539 * target-delegates.c: Rebuild.
8540 * target.c (update_current_target): Don't inherit or default
8541 to_static_tracepoint_marker_at.
8542 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
8543 Use TARGET_DEFAULT_RETURN.
8544
dcd6917f
TT
85452014-02-19 Tom Tromey <tromey@redhat.com>
8546
8547 * target-delegates.c: Rebuild.
8548 * target.c (update_current_target): Don't inherit or default
8549 to_set_permissions.
8550 * target.h (struct target_ops) <to_set_permissions>: Use
8551 TARGET_DEFAULT_IGNORE.
8552
22bcceee
TT
85532014-02-19 Tom Tromey <tromey@redhat.com>
8554
8555 * target-delegates.c: Rebuild.
8556 * target.c (update_current_target): Don't inherit or default
8557 to_get_tib_address.
8558 * target.h (struct target_ops) <to_get_tib_address>: Use
8559 TARGET_DEFAULT_NORETURN.
8560
8586ccaa
TT
85612014-02-19 Tom Tromey <tromey@redhat.com>
8562
8563 * target-delegates.c: Rebuild.
8564 * target.c (update_current_target): Don't inherit or default
8565 to_set_trace_notes.
8566 * target.h (struct target_ops) <to_set_trace_notes>: Use
8567 TARGET_DEFAULT_RETURN.
8568
91df8d1d
TT
85692014-02-19 Tom Tromey <tromey@redhat.com>
8570
8571 * target-delegates.c: Rebuild.
8572 * target.c (update_current_target): Don't initialize
8573 to_set_trace_buffer_size.
8574 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
8575 TARGET_DEFAULT_IGNORE.
8576
8d526939
TT
85772014-02-19 Tom Tromey <tromey@redhat.com>
8578
8579 * target-delegates.c: Rebuild.
8580 * target.c (update_current_target): Don't inherit or default
8581 to_set_circular_trace_buffer.
8582 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
8583 TARGET_DEFAULT_IGNORE.
8584
0bcfeddf
TT
85852014-02-19 Tom Tromey <tromey@redhat.com>
8586
8587 * target-delegates.c: Rebuild.
8588 * target.c (update_current_target): Don't inherit or default
8589 to_set_disconnected_tracing.
8590 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
8591 TARGET_DEFAULT_IGNORE.
8592
9249843f
TT
85932014-02-19 Tom Tromey <tromey@redhat.com>
8594
8595 * target-delegates.c: Rebuild.
8596 * target.c (update_current_target): Don't inherit or default
8597 to_get_min_fast_tracepoint_insn_len.
8598 (return_minus_one): Remove.
8599 * target.h (struct target_ops)
8600 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
8601
ace92e7d
TT
86022014-02-19 Tom Tromey <tromey@redhat.com>
8603
8604 * target-delegates.c: Rebuild.
8605 * target.c (update_current_target): Don't inherit or default
8606 to_get_raw_trace_data.
8607 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
8608 TARGET_DEFAULT_NORETURN.
8609
08120467
TT
86102014-02-19 Tom Tromey <tromey@redhat.com>
8611
8612 * target-delegates.c: Rebuild.
8613 * target.c (update_current_target): Don't inherit or default
8614 to_upload_trace_state_variables.
8615 * target.h (struct target_ops) <to_upload_trace_state_variables>:
8616 Use TARGET_DEFAULT_RETURN.
8617
1e949b00
TT
86182014-02-19 Tom Tromey <tromey@redhat.com>
8619
8620 * target-delegates.c: Rebuild.
8621 * target.c (update_current_target): Don't inherit or default
8622 to_upload_tracepoints.
8623 * target.h (struct target_ops) <to_upload_tracepoints>: Use
8624 TARGET_DEFAULT_RETURN.
8625
a2e6c147
TT
86262014-02-19 Tom Tromey <tromey@redhat.com>
8627
8628 * target-delegates.c: Rebuild.
8629 * target.c (update_current_target): Don't inherit or default
8630 to_save_trace_data.
8631 * target.h (struct target_ops) <to_save_trace_data>: Use
8632 TARGET_DEFAULT_NORETURN.
8633
959bcd0b
TT
86342014-02-19 Tom Tromey <tromey@redhat.com>
8635
8636 * target-delegates.c: Rebuild.
8637 * target.c (update_current_target): Don't inherit or default
8638 to_get_trace_state_variable_value.
8639 * target.h (struct target_ops)
8640 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
8641
afc94e66
TT
86422014-02-19 Tom Tromey <tromey@redhat.com>
8643
8644 * target-delegates.c: Rebuild.
8645 * target.c (update_current_target): Don't inherit or default
8646 to_trace_find.
8647 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
8648
e51c07ea
TT
86492014-02-19 Tom Tromey <tromey@redhat.com>
8650
8651 * target-delegates.c: Rebuild.
8652 * target.c (update_current_target): Don't inherit or default
8653 to_trace_stop.
8654 * target.h (struct target_ops) <to_trace_stop>: Use
8655 TARGET_DEFAULT_NORETURN.
8656
6fea14cd
TT
86572014-02-19 Tom Tromey <tromey@redhat.com>
8658
8659 * target-delegates.c: Rebuild.
8660 * target.c (update_current_target): Don't inherit or default
8661 to_get_tracepoint_status.
8662 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
8663 TARGET_DEFAULT_NORETURN.
8664
4072d4ff
TT
86652014-02-19 Tom Tromey <tromey@redhat.com>
8666
8667 * target-delegates.c: Rebuild.
8668 * target.c (update_current_target): Don't inherit or default
8669 to_get_trace_status.
8670 * target.h (struct target_ops) <to_get_trace_status>: Use
8671 TARGET_DEFAULT_RETURN.
8672
25da2e80
TT
86732014-02-19 Tom Tromey <tromey@redhat.com>
8674
8675 * target-delegates.c: Rebuild.
8676 * target.c (update_current_target): Don't inherit or default
8677 to_trace_start.
8678 * target.h (struct target_ops) <to_trace_start>: Use
8679 TARGET_DEFAULT_NORETURN.
8680
86dd181d
TT
86812014-02-19 Tom Tromey <tromey@redhat.com>
8682
8683 * target-delegates.c: Rebuild.
8684 * target.c (update_current_target): Don't inherit or default
8685 to_trace_set_readonly_regions.
8686 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
8687 Use TARGET_DEFAULT_NORETURN.
8688
05c41993
TT
86892014-02-19 Tom Tromey <tromey@redhat.com>
8690
8691 * target-delegates.c: Rebuild.
8692 * target.c (update_current_target): Don't inherit or default
8693 to_disable_tracepoint.
8694 * target.h (struct target_ops) <to_disable_tracepoint>: Use
8695 TARGET_DEFAULT_NORETURN.
8696
151f70f1
TT
86972014-02-19 Tom Tromey <tromey@redhat.com>
8698
8699 * target-delegates.c: Rebuild.
8700 * target.c (update_current_target): Don't inherit or default
8701 to_enable_tracepoint.
8702 * target.h (struct target_ops) <to_enable_tracepoint>: Use
8703 TARGET_DEFAULT_NORETURN.
8704
94eb98b9
TT
87052014-02-19 Tom Tromey <tromey@redhat.com>
8706
8707 * target-delegates.c: Rebuild.
8708 * target.c (update_current_target): Don't inherit or default
8709 to_download_trace_state_variable.
8710 * target.h (struct target_ops) <to_download_trace_state_variable>:
8711 Use TARGET_DEFAULT_NORETURN.
8712
719acc4a
TT
87132014-02-19 Tom Tromey <tromey@redhat.com>
8714
8715 * target-delegates.c: Rebuild.
8716 * target.c (update_current_target): Don't inherit or default
8717 to_can_download_tracepoint.
8718 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
8719 TARGET_DEFAULT_RETURN.
8720
9a980a22
TT
87212014-02-19 Tom Tromey <tromey@redhat.com>
8722
8723 * target-delegates.c: Rebuild.
8724 * target.c (update_current_target): Don't inherit or default
8725 to_download_tracepoint.
8726 * target.h (struct target_ops) <to_download_tracepoint>: Use
8727 TARGET_DEFAULT_NORETURN.
8728
5536135b
TT
87292014-02-19 Tom Tromey <tromey@redhat.com>
8730
8731 * target-delegates.c: Rebuild.
8732 * target.c (update_current_target): Don't inherit or default
8733 to_trace_init.
8734 * target.h (struct target_ops) <to_trace_init>: Use
8735 TARGET_DEFAULT_RETURN.
8736
9409d39e
TT
87372014-02-19 Tom Tromey <tromey@redhat.com>
8738
8739 * target-delegates.c: Rebuild.
8740 * target.c (update_current_target): Don't inherit or default
8741 to_supports_string_tracing.
8742 * target.h (struct target_ops) <to_supports_string_tracing>: Use
8743 TARGET_DEFAULT_RETURN.
8744
aab1b22d
TT
87452014-02-19 Tom Tromey <tromey@redhat.com>
8746
8747 * target-delegates.c: Rebuild.
8748 * target.c (update_current_target): Don't inherit or default
8749 to_supports_enable_disable_tracepoint.
8750 * target.h (struct target_ops)
8751 <to_supports_enable_disable_tracepoint>: Use
8752 TARGET_DEFAULT_RETURN.
8753
a7304748
TT
87542014-02-19 Tom Tromey <tromey@redhat.com>
8755
8756 * target-delegates.c: Rebuild.
8757 * target.c (update_current_target): Don't inherit or default
8758 to_supports_multi_process.
8759 * target.h (struct target_ops) <to_supports_multi_process>: Use
8760 TARGET_DEFAULT_RETURN.
8761
4229b31d
TT
87622014-02-19 Tom Tromey <tromey@redhat.com>
8763
8764 * target-delegates.c: Rebuild.
8765 * target.c (update_current_target): Don't inherit or default
8766 to_get_ada_task_ptid.
8767 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
8768 TARGET_DEFAULT_FUNC.
8769
43eba180
TT
87702014-02-19 Tom Tromey <tromey@redhat.com>
8771
8772 * target-delegates.c: Rebuild.
8773 * target.c (update_current_target): Don't inherit or default
8774 to_thread_architecture.
8775 * target.h (struct target_ops) <to_thread_architecture>: Use
8776 TARGET_DEFAULT_FUNC.
8777
fe31bf5b
TT
87782014-02-19 Tom Tromey <tromey@redhat.com>
8779
8780 * target-delegates.c: Rebuild.
8781 * target.c (update_current_target): Don't inherit or default
8782 to_execution_direction.
8783 * target.h (struct target_ops) <to_execution_direction>: Use
8784 TARGET_DEFAULT_FUNC.
8785
53e1cfc7
TT
87862014-02-19 Tom Tromey <tromey@redhat.com>
8787
8788 * target-delegates.c: Rebuild.
8789 * target.c (update_current_target): Don't inherit or default
8790 to_can_execute_reverse.
8791 * target.h (struct target_ops) <to_can_execute_reverse>: Use
8792 TARGET_DEFAULT_RETURN.
8793 (target_can_execute_reverse): Unconditionally delegate.
8794
9bb9d61d
TT
87952014-02-19 Tom Tromey <tromey@redhat.com>
8796
8797 * target-delegates.c: Rebuild.
8798 * target.c (update_current_target): Don't inherit or default
8799 to_goto_bookmark.
8800 (dummy_goto_bookmark): Remove.
8801 (init_dummy_target): Don't inherit or default to_goto_bookmark.
8802 * target.h (struct target_ops) <to_goto_bookmark>: Use
8803 TARGET_DEFAULT_NORETURN.
8804
3dbafbbb
TT
88052014-02-19 Tom Tromey <tromey@redhat.com>
8806
8807 * target-delegates.c: Rebuild.
8808 * target.c (update_current_target): Don't inherit or default
8809 to_get_bookmark.
8810 (dummy_get_bookmark): Remove.
8811 (init_dummy_target): Don't inherit or default to_get_bookmark.
8812 * target.h (struct target_ops) <to_get_bookmark>: Use
8813 TARGET_DEFAULT_NORETURN
8814
16f796b1
TT
88152014-02-19 Tom Tromey <tromey@redhat.com>
8816
8817 * target-delegates.c: Rebuild.
8818 * target.c (update_current_target): Don't inherit or default
8819 to_make_corefile_notes.
8820 (init_dummy_target): Don't initialize to_make_corefile_notes.
8821 * target.h (struct target_ops) <to_make_corefile_notes>: Use
8822 TARGET_DEFAULT_FUNC.
8823
0b5a2719
TT
88242014-02-19 Tom Tromey <tromey@redhat.com>
8825
8826 * target-delegates.c: Rebuild.
8827 * target.c (update_current_target): Don't inherit or default
8828 to_find_memory_regions.
8829 (init_dummy_target): Don't initialize to_find_memory_regions.
8830 * target.h (struct target_ops) <to_find_memory_regions>: Use
8831 TARGET_DEFAULT_FUNC.
8832
d9cb0195
TT
88332014-02-19 Tom Tromey <tromey@redhat.com>
8834
8835 * target-delegates.c: Rebuild.
8836 * target.c (update_current_target): Don't inherit or default
8837 to_log_command.
8838 * target.h (struct target_ops) <to_log_command>: Use
8839 TARGET_DEFAULT_IGNORE.
8840 (target_log_command): Unconditionally delegate.
8841
830ca330
TT
88422014-02-19 Tom Tromey <tromey@redhat.com>
8843
8844 * target-delegates.c: Rebuild.
8845 * target.c (update_current_target): Don't inherit or default
8846 to_pid_to_exec_file.
8847 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
8848 TARGET_DEFAULT_RETURN.
8849
825828fc
TT
88502014-02-19 Tom Tromey <tromey@redhat.com>
8851
8852 * target-delegates.c: Rebuild.
8853 * target.c (update_current_target): Don't inherit or default
8854 to_thread_name.
8855 (target_thread_name): Unconditionally delegate.
8856 * target.h (struct target_ops) <to_thread_name>: Use
8857 TARGET_DEFAULT_RETURN.
8858
4a7e6dda
TT
88592014-02-19 Tom Tromey <tromey@redhat.com>
8860
8861 * target-delegates.c: Rebuild.
8862 * target.c (update_current_target): Don't inherit or default
8863 to_extra_thread_info.
8864 * target.h (struct target_ops) <to_extra_thread_info>: Use
8865 TARGET_DEFAULT_RETURN.
8866
0db88c1d
TT
88672014-02-19 Tom Tromey <tromey@redhat.com>
8868
8869 * target-delegates.c: Rebuild.
8870 * target.c (update_current_target): Don't inherit or default
8871 to_has_exited.
8872 * target.h (struct target_ops) <to_has_exited>: Use
8873 TARGET_DEFAULT_RETURN..
8874
6a9fa051
TT
88752014-02-19 Tom Tromey <tromey@redhat.com>
8876
8877 * target-delegates.c: Rebuild.
8878 * target.c (update_current_target): Don't inherit or default
8879 to_set_syscall_catchpoint.
8880 (return_one): Remove.
8881 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
8882 TARGET_DEFAULT_RETURN.
8883
62f64d7a
TT
88842014-02-19 Tom Tromey <tromey@redhat.com>
8885
8886 * target-delegates.c: Rebuild.
8887 * target.c (update_current_target): Don't inherit or default
8888 to_insert_exec_catchpoint.
8889 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8890 TARGET_DEFAULT_RETURN.
8891
cda0f38c
TT
88922014-01-08 Tom Tromey <tromey@redhat.com>
8893
8894 * target-delegates.c: Rebuild.
8895 * target.c (update_current_target): Don't inherit or default
8896 to_insert_exec_catchpoint.
8897 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8898 TARGET_DEFAULT_RETURN.
8899
95c3375e
TT
89002014-02-19 Tom Tromey <tromey@redhat.com>
8901
8902 * target-delegates.c: Rebuild.
8903 * target.c (update_current_target): Don't inherit or default
8904 to_remove_vfork_catchpoint.
8905 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
8906 TARGET_DEFAULT_RETURN.
8907
7e18a8dc
TT
89082014-02-19 Tom Tromey <tromey@redhat.com>
8909
8910 * target-delegates.c: Rebuild.
8911 * target.c (update_current_target): Don't inherit or default
8912 to_insert_vfork_catchpoint.
8913 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
8914 TARGET_DEFAULT_RETURN.
8915
e1a21fb7
TT
89162014-02-19 Tom Tromey <tromey@redhat.com>
8917
8918 * target-delegates.c: Rebuild.
8919 * target.c (update_current_target): Don't inherit or default
8920 to_remove_fork_catchpoint.
8921 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
8922 TARGET_DEFAULT_RETURN.
8923
5958ebeb
TT
89242014-02-19 Tom Tromey <tromey@redhat.com>
8925
8926 * target-delegates.c: Rebuild.
8927 * target.c (update_current_target): Don't inherit or default
8928 to_insert_fork_catchpoint.
8929 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
8930 TARGET_DEFAULT_RETURN.
8931
340ba4bf
TT
89322014-02-19 Tom Tromey <tromey@redhat.com>
8933
8934 * target-delegates.c: Rebuild.
8935 * target.c (update_current_target): Don't inherit or default
8936 to_post_startup_inferior.
8937 * target.h (struct target_ops) <to_post_startup_inferior>: Use
8938 TARGET_DEFAULT_IGNORE.
8939
7634da87
TT
89402014-02-19 Tom Tromey <tromey@redhat.com>
8941
8942 * target-delegates.c: Rebuild.
8943 * target.c (update_current_target): Don't inherit or default
8944 to_load.
8945 * target.h (struct target_ops) <to_load>: Use
8946 TARGET_DEFAULT_NORETURN.
8947
e19e919f
TT
89482014-02-19 Tom Tromey <tromey@redhat.com>
8949
8950 * target-delegates.c: Rebuild.
8951 * target.c (update_current_target): Don't inherit or default
8952 to_terminal_info.
8953 * target.h (struct target_ops) <to_terminal_info>: Use
8954 TARGET_DEFAULT_FUNC.
8955
c6ea8f79
TT
89562014-02-19 Tom Tromey <tromey@redhat.com>
8957
8958 * target-delegates.c: Rebuild.
8959 * target.c (update_current_target): Don't inherit or default
8960 to_terminal_save_ours.
8961 * target.h (struct target_ops) <to_terminal_save_ours>: Use
8962 TARGET_DEFAULT_IGNORE.
8963
e4a733f1
TT
89642014-02-19 Tom Tromey <tromey@redhat.com>
8965
8966 * target-delegates.c: Rebuild.
8967 * target.c (update_current_target): Don't inherit or default
8968 to_terminal_ours.
8969 * target.h (struct target_ops) <to_terminal_ours>: Use
8970 TARGET_DEFAULT_IGNORE.
8971
74fcbef9
TT
89722014-02-19 Tom Tromey <tromey@redhat.com>
8973
8974 * target-delegates.c: Rebuild.
8975 * target.c (update_current_target): Don't inherit or default
8976 to_terminal_ours_for_output.
8977 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
8978 TARGET_DEFAULT_IGNORE.
8979
ddeaacc9
TT
89802014-02-19 Tom Tromey <tromey@redhat.com>
8981
8982 * target-delegates.c: Rebuild.
8983 * target.c (update_current_target): Don't inherit or default
8984 to_terminal_inferior.
8985 * target.h (struct target_ops) <to_terminal_inferior>: Use
8986 TARGET_DEFAULT_IGNORE.
8987
0343661d
TT
89882014-02-19 Tom Tromey <tromey@redhat.com>
8989
8990 * target-delegates.c: Rebuild.
8991 * target.c (update_current_target): Don't inherit or default
8992 to_terminal_init.
8993 * target.h (struct target_ops) <to_terminal_init>: Use
8994 TARGET_DEFAULT_IGNORE.
8995
77cdffe9
TT
89962014-02-19 Tom Tromey <tromey@redhat.com>
8997
8998 * target-delegates.c: Rebuild.
8999 * target.c (update_current_target): Don't inherit or default
9000 to_can_accel_watchpoint_condition.
9001 * target.h (struct target_ops)
9002 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
9003
d03655e4
TT
90042014-02-19 Tom Tromey <tromey@redhat.com>
9005
9006 * target-delegates.c: Rebuild.
9007 * target.c (update_current_target): Don't inherit or default
9008 to_region_ok_for_hw_watchpoint.
9009 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
9010 Use TARGET_DEFAULT_FUNC.
9011
65f160a9
TT
90122014-02-19 Tom Tromey <tromey@redhat.com>
9013
9014 * target-delegates.c: Rebuild.
9015 * target.c (update_current_target): Don't inherit or default
9016 to_watchpoint_addr_within_range.
9017 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
9018 Use TARGET_DEFAULT_FUNC.
9019
61dd109f
TT
90202014-02-19 Tom Tromey <tromey@redhat.com>
9021
9022 * target-delegates.c: Rebuild.
9023 * target.c (update_current_target): Don't inherit or default
9024 to_remove_watchpoint.
9025 * target.h (struct target_ops) <to_remove_watchpoint>: Use
9026 TARGET_DEFAULT_NORETURN.
9027
016facd4
TT
90282014-02-19 Tom Tromey <tromey@redhat.com>
9029
9030 * target-delegates.c: Rebuild.
9031 * target.c (update_current_target): Don't inherit or default
9032 to_insert_watchpoint.
9033 * target.h (struct target_ops) <to_insert_watchpoint>: Use
9034 TARGET_DEFAULT_RETURN.
9035
418dabac
TT
90362014-02-19 Tom Tromey <tromey@redhat.com>
9037
9038 * target-delegates.c: Rebuild.
9039 * target.c (update_current_target): Don't inherit or default
9040 to_remove_hw_breakpoint.
9041 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
9042 TARGET_DEFAULT_RETURN.
9043
61b371f9
TT
90442014-02-19 Tom Tromey <tromey@redhat.com>
9045
9046 * target-delegates.c: Rebuild.
9047 * target.c (update_current_target): Don't inherit or default
9048 to_insert_hw_breakpoint.
9049 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
9050 TARGET_DEFAULT_RETURN.
9051
52b51d06
TT
90522014-02-19 Tom Tromey <tromey@redhat.com>
9053
9054 * target-delegates.c: Rebuild.
9055 * target.c (update_current_target): Don't inherit or default
9056 to_can_use_hw_breakpoint.
9057 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
9058 TARGET_DEFAULT_RETURN.
9059
f86e59b2
TT
90602014-02-19 Tom Tromey <tromey@redhat.com>
9061
9062 * target-delegates.c: Rebuild.
9063 * target.c (update_current_target): Don't inherit or default
9064 to_files_info.
9065 * target.h (struct target_ops) <to_files_info>: Use
9066 TARGET_DEFAULT_IGNORE.
9067
6c628163
TT
90682014-02-19 Tom Tromey <tromey@redhat.com>
9069
9070 * target-delegates.c: Rebuild.
9071 * target.c (update_current_target): Don't inherit or default
9072 to_store.
9073 * target.h (struct target_ops) <to_store>: Use
9074 TARGET_DEFAULT_NORETURN.
9075
bebd3233
TT
90762014-02-19 Tom Tromey <tromey@redhat.com>
9077
9078 * target-delegates.c: Rebuild.
9079 * target.c (update_current_target): Don't inherit or default
9080 to_post_attach.
9081 * target.h (struct target_ops) <to_post_attach>: Use
9082 TARGET_DEFAULT_IGNORE.
9083
a53f3625
TT
90842014-02-19 Tom Tromey <tromey@redhat.com>
9085
9086 * target-delegates.c: Rebuild.
9087 * target.c (update_current_target): Don't inherit or default
9088 to_rcmd.
9089 (default_rcmd): New function.
9090 (do_monitor_command): Unconditionally delegate.
9091 * target.h (struct target_ops) <to_rmcd>: Use
9092 TARGET_DEFAULT_FUNC.
9093
e9a29200
TT
90942014-02-19 Tom Tromey <tromey@redhat.com>
9095
9096 * target-delegates.c: Rebuild.
9097 * target.c (init_dummy_target): Don't initialize to_attach.
9098 (target_attach): Unconditionally delegate.
9099 * target.h (struct target_ops) <to_attach>: Use
9100 TARGET_DEFAULT_FUNC.
9101
09da0d0a
TT
91022014-02-19 Tom Tromey <tromey@redhat.com>
9103
9104 * target-delegates.c: Rebuild.
9105 * target.c (target_detach): Unconditionally delegate.
9106 (init_dummy_target): Don't initialize to_detach.
9107 * target.h (struct target_ops) <to_detach>: Use
9108 TARGET_DEFAULT_IGNORE.
9109
5436ff03
TT
91102014-02-19 Tom Tromey <tromey@redhat.com>
9111
9112 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
9113 Add argument.
9114 (target_augmented_libraries_svr4_read): Add argument.
9115 * target.c (update_current_target): Update.
9116 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
9117 argument.
9118
f0d960ea
TT
91192014-02-19 Tom Tromey <tromey@redhat.com>
9120
9121 * target.h (struct target_ops) <to_call_history_range>: Add
9122 argument.
9123 * target.c (target_call_history_range): Add argument.
9124 * record-btrace.c (record_btrace_call_history_range): Add 'self'
9125 argument.
9126 (record_btrace_call_history_from): Update.
9127
ec0aea04
TT
91282014-02-19 Tom Tromey <tromey@redhat.com>
9129
9130 * target.h (struct target_ops) <to_call_history_from>: Add
9131 argument.
9132 * target.c (target_call_history_from): Add argument.
9133 * record-btrace.c (record_btrace_call_history_from): Add 'self'
9134 argument.
9135
5df2fcba
TT
91362014-02-19 Tom Tromey <tromey@redhat.com>
9137
9138 * target.h (struct target_ops) <to_call_history>: Add argument.
9139 * target.c (target_call_history): Add argument.
9140 * record-btrace.c (record_btrace_call_history): Add 'self'
9141 argument.
9142
4e99c6b7
TT
91432014-02-19 Tom Tromey <tromey@redhat.com>
9144
9145 * target.h (struct target_ops) <to_insn_history_range>: Add
9146 argument.
9147 * target.c (target_insn_history_range): Add argument.
9148 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
9149 argument.
9150 (record_btrace_insn_history_from): Update.
9151
9abc3ff3
TT
91522014-02-19 Tom Tromey <tromey@redhat.com>
9153
9154 * target.h (struct target_ops) <to_insn_history_from>: Add
9155 argument.
9156 * target.c (target_insn_history_from): Add argument.
9157 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
9158 argument.
9159
7a6c5609
TT
91602014-02-19 Tom Tromey <tromey@redhat.com>
9161
9162 * target.h (struct target_ops) <to_insn_history>: Add argument.
9163 * target.c (target_insn_history): Add argument.
9164 * record-btrace.c (record_btrace_insn_history): Add 'self'
9165 argument.
9166
606183ac
TT
91672014-02-19 Tom Tromey <tromey@redhat.com>
9168
9169 * target.h (struct target_ops) <to_goto_record>: Add argument.
9170 * target.c (target_goto_record): Add argument.
9171 * record-full.c (record_full_goto): Add 'self' argument.
9172 * record-btrace.c (record_btrace_goto): Add 'self' argument.
9173
307a1b91
TT
91742014-02-19 Tom Tromey <tromey@redhat.com>
9175
9176 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
9177 * target.c (target_goto_record_end): Add argument.
9178 * record-full.c (record_full_goto_end): Add 'self' argument.
9179 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
9180
08475817
TT
91812014-02-19 Tom Tromey <tromey@redhat.com>
9182
9183 * target.h (struct target_ops) <to_goto_record_begin>: Add
9184 argument.
9185 * target.c (target_goto_record_begin): Add argument.
9186 * record-full.c (record_full_goto_begin): Add 'self' argument.
9187 * record-btrace.c (record_btrace_goto_begin): Add 'self'
9188 argument.
9189
1c63c994
TT
91902014-02-19 Tom Tromey <tromey@redhat.com>
9191
9192 * target.h (struct target_ops) <to_record_is_replaying>: Add
9193 argument.
9194 * target.c (target_record_is_replaying): Add argument.
9195 * record-full.c (record_full_is_replaying): Add 'self' argument.
9196 * record-btrace.c (record_btrace_is_replaying): Add 'self'
9197 argument.
9198 (record_btrace_xfer_partial, record_btrace_store_registers)
9199 (record_btrace_prepare_to_store, record_btrace_resume)
9200 (record_btrace_wait, record_btrace_decr_pc_after_break)
9201 (record_btrace_find_new_threads, record_btrace_thread_alive):
9202 Update.
9203
d1b55219
TT
92042014-02-19 Tom Tromey <tromey@redhat.com>
9205
9206 * target.h (struct target_ops) <to_delete_record>: Add argument.
9207 * target.c (target_delete_record): Add argument.
9208 * record-full.c (record_full_delete): Add 'self' argument.
9209
1390f529
TT
92102014-02-19 Tom Tromey <tromey@redhat.com>
9211
9212 * target.h (struct target_ops) <to_save_record>: Add argument.
9213 * target.c (target_save_record): Add argument.
9214 * record-full.c (record_full_save): Add 'self' argument.
9215 (record_full_save): Add 'self' argument.
9216
630d6a4a
TT
92172014-02-19 Tom Tromey <tromey@redhat.com>
9218
9219 * target.h (struct target_ops) <to_info_record>: Add argument.
9220 * target.c (target_info_record): Add argument.
9221 * record.c (info_record_command): Add argument.
9222 * record-full.c (record_full_info): Add 'self' argument.
9223 * record-btrace.c (record_btrace_info): Add 'self' argument.
9224
c6cd7c02
TT
92252014-02-19 Tom Tromey <tromey@redhat.com>
9226
9227 * target.h (struct target_ops) <to_stop_recording>: Add argument.
9228 * target.c (target_stop_recording): Add argument.
9229 * record.c (record_stop): Add argument.
9230 * record-btrace.c (record_btrace_stop_recording): Add 'self'
9231 argument.
9232
39c49f83
TT
92332014-02-19 Tom Tromey <tromey@redhat.com>
9234
9235 * target.h (struct target_ops) <to_read_btrace>: Add argument.
9236 * target.c (struct target_ops) <to_read_btrace>: Add argument.
9237 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
9238 argument.
9239 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
9240 (_initialize_amd64_linux_nat): Use it.
9241 * i386-linux-nat.c (i386_linux_read_btrace): New function.
9242 (_initialize_i386_linux_nat): Use it.
9243
1777056d
TT
92442014-02-19 Tom Tromey <tromey@redhat.com>
9245
9246 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
9247 * target.c (target_teardown_btrace): Add argument.
9248 * remote.c (remote_teardown_btrace): Add 'self' argument.
9249 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
9250 argument.
9251 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
9252 argument.
9253
25e95349
TT
92542014-02-19 Tom Tromey <tromey@redhat.com>
9255
9256 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
9257 * target.c (target_disable_btrace): Add argument.
9258 * remote.c (remote_disable_btrace): Add 'self' argument.
9259 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
9260 argument.
9261 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
9262 argument.
9263
e3c49f88
TT
92642014-02-19 Tom Tromey <tromey@redhat.com>
9265
9266 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
9267 * target.c (target_enable_btrace): Add argument.
9268 * remote.c (remote_enable_btrace): Add 'self' argument.
9269 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
9270 argument.
9271 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
9272 argument.
9273
fe38f897
TT
92742014-02-19 Tom Tromey <tromey@redhat.com>
9275
9276 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
9277 (target_can_use_agent): Add argument.
9278 * target.c (update_current_target): Update.
9279 * remote.c (remote_can_use_agent): Add 'self' argument.
9280 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
9281
2c152180
TT
92822014-02-19 Tom Tromey <tromey@redhat.com>
9283
9284 * target.h (struct target_ops) <to_use_agent>: Add argument.
9285 (target_use_agent): Add argument.
9286 * target.c (update_current_target): Update.
9287 * remote.c (remote_use_agent): Add 'self' argument.
9288 * inf-child.c (inf_child_use_agent): Add 'self' argument.
9289
a893e81f
TT
92902014-02-19 Tom Tromey <tromey@redhat.com>
9291
9292 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
9293 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
9294 (target_traceframe_info): Add argument.
9295 * target.c (update_current_target): Update.
9296 * remote.c (remote_traceframe_info): Add 'self' argument.
9297 * ctf.c (ctf_traceframe_info): Add 'self' argument.
9298
c686c57f
TT
92992014-02-19 Tom Tromey <tromey@redhat.com>
9300
9301 * target.h (target_static_tracepoint_markers_by_strid): Add
9302 argument.
9303 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
9304 'self' argument.
9305 * target.c (update_current_target): Update.
9306 * remote.c (struct target_ops)
9307 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9308 * linux-nat.c (struct target_ops)
9309 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9310
61fc905d
TT
93112014-02-19 Tom Tromey <tromey@redhat.com>
9312
9313 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
9314 Add argument.
9315 (target_static_tracepoint_marker_at): Add argument.
9316 * target.c (update_current_target): Update.
9317 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
9318 argument.
9319
c378d69d
TT
93202014-02-19 Tom Tromey <tromey@redhat.com>
9321
9322 * target.h (struct target_ops) <to_set_permissions>: Add argument.
9323 (target_set_permissions): Add argument.
9324 * target.c (update_current_target): Update.
9325 * remote.c (remote_set_permissions): Add 'self' argument.
9326 (remote_start_remote): Update.
9327
bd7ae0f5
TT
93282014-02-19 Tom Tromey <tromey@redhat.com>
9329
9330 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
9331 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
9332 (target_get_tib_address): Add argument.
9333 * target.c (update_current_target): Update.
9334 * remote.c (remote_get_tib_address): Add 'self' argument.
9335
d9e68a2c
TT
93362014-02-19 Tom Tromey <tromey@redhat.com>
9337
9338 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
9339 (target_set_trace_notes): Add argument.
9340 * target.c (update_current_target): Update.
9341 * remote.c (remote_set_trace_notes): Add 'self' argument.
9342
4da384be
TT
93432014-02-19 Tom Tromey <tromey@redhat.com>
9344
9345 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
9346 argument.
9347 (target_set_trace_buffer_size): Add argument.
9348 * target.c (update_current_target): Update.
9349 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
9350
736d5b1f
TT
93512014-02-19 Tom Tromey <tromey@redhat.com>
9352
9353 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
9354 argument.
9355 (target_set_circular_trace_buffer): Add argument.
9356 * target.c (update_current_target): Update.
9357 * remote.c (remote_set_circular_trace_buffer): Add 'self'
9358 argument.
9359
37b25738
TT
93602014-02-19 Tom Tromey <tromey@redhat.com>
9361
9362 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
9363 argument.
9364 (target_set_disconnected_tracing): Add argument.
9365 * target.c (update_current_target): Update.
9366 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
9367
0e67620a
TT
93682014-02-19 Tom Tromey <tromey@redhat.com>
9369
9370 * target.h (struct target_ops)
9371 <to_get_min_fast_tracepoint_insn_len>: Add argument.
9372 (target_get_min_fast_tracepoint_insn_len): Add argument.
9373 * target.c (update_current_target): Update.
9374 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
9375 argument.
9376
88ee6f45
TT
93772014-02-19 Tom Tromey <tromey@redhat.com>
9378
9379 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
9380 argument.
9381 (target_get_raw_trace_data): Add argument.
9382 * target.c (update_current_target): Update.
9383 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
9384
181e3713
TT
93852014-02-19 Tom Tromey <tromey@redhat.com>
9386
9387 * target.h (struct target_ops) <to_upload_trace_state_variables>:
9388 Add argument.
9389 (target_upload_trace_state_variables): Add argument.
9390 * target.c (update_current_target): Update.
9391 * remote.c (remote_upload_trace_state_variables): Add 'self'
9392 argument.
9393 (remote_start_remote): Update.
9394
ab6617cc
TT
93952014-02-19 Tom Tromey <tromey@redhat.com>
9396
9397 * target.h (struct target_ops) <to_upload_tracepoints>: Add
9398 argument.
9399 (target_upload_tracepoints): Add argument.
9400 * target.c (update_current_target): Update.
9401 * remote.c (remote_upload_tracepoints): Add 'self' argument.
9402 (remote_start_remote): Update.
9403
dc3decaf
TT
94042014-02-19 Tom Tromey <tromey@redhat.com>
9405
9406 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
9407 (target_save_trace_data): Add argument.
9408 * target.c (update_current_target): Update.
9409 * remote.c (remote_save_trace_data): Add 'self' argument.
9410
4011015b
TT
94112014-02-19 Tom Tromey <tromey@redhat.com>
9412
9413 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
9414 argument.
9415 * target.h (struct target_ops)
9416 <to_get_trace_state_variable_value>: Add argument.
9417 (target_get_trace_state_variable_value): Add argument.
9418 * target.c (update_current_target): Update.
9419 * remote.c (remote_get_trace_state_variable_value): Add 'self'
9420 argument.
9421 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
9422
bd4c6793
TT
94232014-02-19 Tom Tromey <tromey@redhat.com>
9424
9425 * tracepoint.c (tfile_trace_find): Add 'self' argument.
9426 * target.h (struct target_ops) <to_trace_find>: Add argument.
9427 (target_trace_find): Add argument.
9428 * target.c (update_current_target): Update.
9429 * remote.c (remote_trace_find): Add 'self' argument.
9430 * ctf.c (ctf_trace_find): Add 'self' argument.
9431
74499f1b
TT
94322014-02-19 Tom Tromey <tromey@redhat.com>
9433
9434 * target.h (struct target_ops) <to_trace_stop>: Add argument.
9435 (target_trace_stop): Add argument.
9436 * target.c (update_current_target): Update.
9437 * remote.c (remote_trace_stop): Add 'self' argument.
9438
db90e85c
TT
94392014-02-19 Tom Tromey <tromey@redhat.com>
9440
9441 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
9442 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
9443 argument.
9444 (target_get_tracepoint_status): Add argument.
9445 * target.c (update_current_target): Update.
9446 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
9447
8bd200f1
TT
94482014-02-19 Tom Tromey <tromey@redhat.com>
9449
9450 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
9451 * target.h (struct target_ops) <to_get_trace_status>: Add
9452 argument.
9453 (target_get_trace_status): Add argument.
9454 * target.c (update_current_target): Update.
9455 * remote.c (remote_get_trace_status): Add 'self' argument.
9456 (remote_start_remote, remote_can_download_tracepoint): Update.
9457 * ctf.c (ctf_get_trace_status): Add 'self' argument.
9458
e2d1aae3
TT
94592014-02-19 Tom Tromey <tromey@redhat.com>
9460
9461 * target.h (struct target_ops) <to_trace_start>: Add argument.
9462 (target_trace_start): Add argument.
9463 * target.c (update_current_target): Update.
9464 * remote.c (remote_trace_start): Add 'self' argument.
9465
583f9a86
TT
94662014-02-19 Tom Tromey <tromey@redhat.com>
9467
9468 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
9469 Add argument.
9470 (target_trace_set_readonly_regions): Add argument.
9471 * target.c (update_current_target): Update.
9472 * remote.c (remote_trace_set_readonly_regions): Add 'self'
9473 argument.
9474
780b049c
TT
94752014-02-19 Tom Tromey <tromey@redhat.com>
9476
9477 * target.h (struct target_ops) <to_disable_tracepoint>: Add
9478 argument.
9479 (target_disable_tracepoint): Add argument.
9480 * target.c (update_current_target): Update.
9481 * remote.c (remote_disable_tracepoint): Add 'self' argument.
9482
46670d57
TT
94832014-02-19 Tom Tromey <tromey@redhat.com>
9484
9485 * target.h (struct target_ops) <to_enable_tracepoint>: Add
9486 argument.
9487 (target_enable_tracepoint): Add argument.
9488 * target.c (update_current_target): Update.
9489 * remote.c (remote_enable_tracepoint): Add 'self' argument.
9490
559d2b81
TT
94912014-02-19 Tom Tromey <tromey@redhat.com>
9492
9493 * target.h (struct target_ops) <to_download_trace_state_variable>:
9494 Add argument.
9495 (target_download_trace_state_variable): Add argument.
9496 * target.c (update_current_target): Update.
9497 * remote.c (remote_download_trace_state_variable): Add 'self'
9498 argument.
9499
a52a8357
TT
95002014-02-19 Tom Tromey <tromey@redhat.com>
9501
9502 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
9503 argument.
9504 (target_can_download_tracepoint): Add argument.
9505 * target.c (update_current_target): Update.
9506 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
9507
548f7808
TT
95082014-02-19 Tom Tromey <tromey@redhat.com>
9509
9510 * target.h (struct target_ops) <to_download_tracepoint>: Add
9511 argument.
9512 (target_download_tracepoint): Add argument.
9513 * target.c (update_current_target): Update.
9514 * remote.c (remote_download_tracepoint): Add 'self' argument.
9515
ecae04e1
TT
95162014-02-19 Tom Tromey <tromey@redhat.com>
9517
9518 * target.h (struct target_ops) <to_trace_init>: Add argument.
9519 (target_trace_init): Add argument.
9520 * target.c (update_current_target): Update.
9521 * remote.c (remote_trace_init): Add 'self' argument.
9522
fab5aa7c
TT
95232014-02-19 Tom Tromey <tromey@redhat.com>
9524
9525 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
9526 * target.c (target_fileio_readlink): Add argument.
9527 * remote.c (remote_hostio_readlink): Add 'self' argument.
9528 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
9529
dbbca37d
TT
95302014-02-19 Tom Tromey <tromey@redhat.com>
9531
9532 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
9533 * target.c (target_fileio_unlink): Add argument.
9534 * remote.c (remote_hostio_unlink): Add 'self' argument.
9535 (remote_file_delete): Update.
9536 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
9537
df39ea25
TT
95382014-02-19 Tom Tromey <tromey@redhat.com>
9539
9540 * target.h (struct target_ops) <to_fileio_close>: Add argument.
9541 * target.c (target_fileio_close): Add argument.
9542 * remote.c (remote_hostio_close): Add 'self' argument.
9543 (remote_hostio_close_cleanup): Update.
9544 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
9545 Update.
9546 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
9547
a3be983c
TT
95482014-02-19 Tom Tromey <tromey@redhat.com>
9549
9550 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
9551 * target.c (target_fileio_pread): Add argument.
9552 * remote.c (remote_hostio_pread): Add 'self' argument.
9553 (remote_bfd_iovec_pread, remote_file_get): Update.
9554 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
9555
0d866f62
TT
95562014-02-19 Tom Tromey <tromey@redhat.com>
9557
9558 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
9559 * target.c (target_fileio_pwrite): Add argument.
9560 * remote.c (remote_hostio_pwrite): Add 'self' argument.
9561 (remote_file_put): Update.
9562 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
9563
cd897586
TT
95642014-02-19 Tom Tromey <tromey@redhat.com>
9565
9566 * target.h (struct target_ops) <to_fileio_open>: Add argument.
9567 * target.c (target_fileio_open): Add argument.
9568 * remote.c (remote_hostio_open): Add 'self' argument.
9569 (remote_bfd_iovec_open): Add 'self' argument.
9570 (remote_file_put): Add 'self' argument.
9571 (remote_file_get): Add 'self' argument.
9572 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
9573
78eff0ec
TT
95742014-02-19 Tom Tromey <tromey@redhat.com>
9575
9576 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
9577 Add argument.
9578 (target_can_run_breakpoint_commands): Add argument.
9579 * target.c (update_current_target): Update.
9580 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
9581 argument.
9582 (remote_insert_breakpoint): Add 'self' argument.
9583 (remote_insert_hw_breakpoint): Add 'self' argument.
9584 (remote_can_run_breakpoint_commands): Add 'self' argument.
9585
efcc2da7
TT
95862014-02-19 Tom Tromey <tromey@redhat.com>
9587
9588 * target.h (struct target_ops)
9589 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
9590 (target_supports_evaluation_of_breakpoint_conditions): Add
9591 argument.
9592 * target.c (update_current_target): Update.
9593 * remote.c (remote_supports_cond_breakpoints): Add 'self'
9594 argument.
9595 (remote_insert_breakpoint): Add 'self' argument.
9596 (remote_insert_hw_breakpoint): Add 'self' argument.
9597 (remote_supports_cond_breakpoints): Add 'self' argument.
9598
6de37a3a
TT
95992014-02-19 Tom Tromey <tromey@redhat.com>
9600
9601 * target.h (struct target_ops) <to_supports_string_tracing>: Add
9602 argument.
9603 (target_supports_string_tracing): Add argument.
9604 * target.c (update_current_target): Update.
9605 * remote.c (remote_supports_string_tracing): Add 'self' argument.
9606
2bfc0540
TT
96072014-02-19 Tom Tromey <tromey@redhat.com>
9608
9609 * target.h (struct target_ops)
9610 <to_supports_disable_randomization>: Add argument.
9611 * target.c (find_default_supports_disable_randomization): Add
9612 argument.
9613 (target_supports_disable_randomization): Add argument.
9614 (find_default_supports_disable_randomization): Add 'self'
9615 argument.
9616 * remote.c (extended_remote_supports_disable_randomization): Add
9617 'self' argument.
9618 (remote_supports_disable_randomization): Add 'self' argument.
9619 (extended_remote_create_inferior): Update.
9620 * linux-nat.c (linux_nat_supports_disable_randomization): Add
9621 'self' argument.
9622
7d178d6a
TT
96232014-02-19 Tom Tromey <tromey@redhat.com>
9624
9625 * target.h (struct target_ops)
9626 <to_supports_enable_disable_tracepoint>: Add argument.
9627 (target_supports_enable_disable_tracepoint): Add argument.
9628 * target.c (update_current_target): Update.
9629 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
9630 argument.
9631
86ce2668
TT
96322014-02-19 Tom Tromey <tromey@redhat.com>
9633
9634 * target.h (struct target_ops) <to_supports_multi_process>: Add
9635 argument.
9636 (target_supports_multi_process): Add argument.
9637 * target.c (update_current_target): Update.
9638 * remote.c (remote_supports_multi_process): Add 'self' argument.
9639 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
9640 argument.
9641 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
9642 argument.
9643
4c612759
TT
96442014-02-19 Tom Tromey <tromey@redhat.com>
9645
9646 * target.h (struct target_ops) <to_execution_direction>: Add
9647 argument.
9648 (target_execution_direction): Add argument.
9649 * target.c (default_execution_direction): Add 'self' argument.
9650 * record-full.c (record_full_execution_direction): Add 'self'
9651 argument.
9652
19db3e69
TT
96532014-02-19 Tom Tromey <tromey@redhat.com>
9654
9655 * target.h (struct target_ops) <to_can_execute_reverse>: Add
9656 argument.
9657 (target_can_execute_reverse): Add argument.
9658 * remote.c (remote_can_execute_reverse): Add 'self' argument.
9659 * record-full.c (record_full_can_execute_reverse): Add 'self'
9660 argument.
9661 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
9662 argument.
9663
1e6b91a4
TT
96642014-02-19 Tom Tromey <tromey@redhat.com>
9665
9666 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
9667 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
9668 argument.
9669 (target_get_ada_task_ptid): Add argument.
9670 * target.c (update_current_target): Update.
9671 (default_get_ada_task_ptid): Add 'self' argument.
9672 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
9673 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
9674 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
9675 argument.
9676 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
9677 argument.
9678 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
9679 argument.
9680 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
9681 argument.
9682 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
9683 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
9684 argument.
9685
3c80fb48
TT
96862014-02-19 Tom Tromey <tromey@redhat.com>
9687
9688 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
9689 (target_goto_bookmark): Add argument.
9690 * target.c (dummy_goto_bookmark): Add 'self' argument.
9691 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
9692
dd0e2830
TT
96932014-02-19 Tom Tromey <tromey@redhat.com>
9694
9695 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
9696 (target_get_bookmark): Add argument.
9697 * target.c (dummy_get_bookmark): Add 'self' argument.
9698 * record-full.c (record_full_get_bookmark): Add 'self' argument.
9699
fc6691b2
TT
97002014-02-19 Tom Tromey <tromey@redhat.com>
9701
9702 * target.h (struct target_ops) <to_make_corefile_notes>: Add
9703 argument.
9704 (target_make_corefile_notes): Add argument.
9705 * target.c (dummy_make_corefile_notes): Add 'self' argument.
9706 * procfs.c (procfs_make_note_section): Add 'self' argument.
9707 (procfs_make_note_section): Add 'self' argument.
9708 (procfs_make_note_section): Add 'self' argument.
9709 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
9710 argument.
9711 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
9712 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
9713 * exec.c (exec_make_note_section): Add 'self' argument.
9714 (exec_make_note_section): Add 'self' argument.
9715
2e73927c
TT
97162014-02-19 Tom Tromey <tromey@redhat.com>
9717
9718 * target.h (struct target_ops) <to_find_memory_regions>: Add
9719 argument.
9720 (target_find_memory_regions): Add argument.
9721 * target.c (dummy_find_memory_regions): Add 'self' argument.
9722 * procfs.c (proc_find_memory_regions): Add 'self' argument.
9723 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
9724 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
9725 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
9726 * exec. (exec_do_find_memory_regions): New global.
9727 (exec_set_find_memory_regions): Rewrite.
9728 (exec_find_memory_regions): New function.
9729 (init_exec_ops): Use exec_find_memory_regions.
9730
2a9a2795
TT
97312014-02-19 Tom Tromey <tromey@redhat.com>
9732
9733 * target.h (struct target_ops) <to_supports_non_stop>: Add
9734 argument.
9735 * target.c (find_default_supports_non_stop): Add argument.
9736 (target_supports_non_stop): Add argument.
9737 (find_default_supports_non_stop): Add 'self' argument.
9738 * remote.c (remote_supports_non_stop): Add 'self' argument.
9739 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
9740
4ab76ea3
TT
97412014-02-19 Tom Tromey <tromey@redhat.com>
9742
9743 * target.h (struct target_ops) <to_log_command>: Add argument.
9744 (target_log_command): Add argument.
9745 * serial.h (serial_log_command): Add 'self' argument.
9746 * serial.c (serial_log_command): Add 'self' argument.
9747
8dd27370
TT
97482014-02-19 Tom Tromey <tromey@redhat.com>
9749
9750 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
9751 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
9752 argument.
9753 (target_pid_to_exec_file): Add argument.
9754 * target.c (debug_to_pid_to_exec_file): Add argument.
9755 (update_current_target): Update.
9756 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
9757 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
9758 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
9759 (linux_handle_extended_wait): Update.
9760 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
9761 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
9762 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
9763 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
9764
1aac633b
TT
97652014-02-19 Tom Tromey <tromey@redhat.com>
9766
9767 * target.h (struct target_ops) <to_rcmd>: Add argument.
9768 (target_rcmd): Add argument.
9769 * target.c (debug_to_rcmd): Add argument.
9770 (update_current_target, do_monitor_command): Update.
9771 * remote.c (remote_rcmd): Add 'self' argument.
9772 * monitor.c (monitor_rcmd): Add 'self' argument.
9773
1eab8a48
TT
97742014-02-19 Tom Tromey <tromey@redhat.com>
9775
9776 * windows-nat.c (windows_stop): Add 'self' argument.
9777 * target.h (struct target_ops) <to_stop>: Add argument.
9778 * target.c (target_stop): Add argument.
9779 (debug_to_stop): Add argument.
9780 (update_current_target): Update.
9781 * remote.c (remote_stop): Add 'self' argument.
9782 * remote-sim.c (gdbsim_stop): Add 'self' argument.
9783 (gdbsim_cntrl_c): Update.
9784 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
9785 * procfs.c (procfs_stop): Add 'self' argument.
9786 * nto-procfs.c (procfs_stop): Add 'self' argument.
9787 * monitor.c (monitor_stop): Add 'self' argument.
9788 (monitor_open): Update.
9789 * linux-nat.c (linux_nat_stop): Add argument.
9790 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
9791 * gnu-nat.c (gnu_stop): Add 'self' argument.
9792 * darwin-nat.c (darwin_stop): Add 'self' argument.
9793
503a628d
TT
97942014-02-19 Tom Tromey <tromey@redhat.com>
9795
9796 * target.h (struct target_ops) <to_thread_name>: Add argument.
9797 * target.c (target_thread_name): Add argument.
9798 (update_current_target): Update.
9799 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
9800
c15906d8
TT
98012014-02-19 Tom Tromey <tromey@redhat.com>
9802
9803 * target.h (struct target_ops) <to_extra_thread_info>: Add
9804 argument.
9805 (target_extra_thread_info): Add argument.
9806 * target.c (update_current_target): Update.
9807 * remote.c (remote_threads_extra_info): Add 'self' argument.
9808 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
9809 argument.
9810 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
9811 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
9812 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
9813 argument.
9814 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
9815 argument.
9816 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
9817 argument.
9818 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
9819 argument.
9820
daf5e9b6
TT
98212014-02-19 Tom Tromey <tromey@redhat.com>
9822
9823 * target.h (struct target_ops) <to_program_signals>: Add argument.
9824 * target.c (target_program_signals): Add argument.
9825 * remote.c (remote_program_signals): Add 'self' argument.
9826
94bedb42
TT
98272014-02-19 Tom Tromey <tromey@redhat.com>
9828
9829 * target.h (struct target_ops) <to_pass_signals>: Add argument.
9830 * target.c (target_pass_signals): Add argument.
9831 * remote.c (remote_pass_signals): Add 'self' argument.
9832 (remote_start_remote): Update.
9833 * procfs.c (procfs_pass_signals): Add 'self' argument.
9834 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
9835 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
9836 (linux_nat_create_inferior, linux_nat_attach): Update.
9837
da82bd6b
TT
98382014-02-19 Tom Tromey <tromey@redhat.com>
9839
9840 * windows-nat.c (windows_can_run): Add 'self' argument.
9841 * target.h (struct target_ops) <to_can_run>: Add argument.
9842 (target_can_run): Add argument.
9843 * target.c (debug_to_can_run): Add argument.
9844 (update_current_target): Update.
9845 * nto-procfs.c (procfs_can_run): Add 'self' argument.
9846 * inf-child.c (inf_child_can_run): Add 'self' argument.
9847 * go32-nat.c (go32_can_run): Add 'self' argument.
9848
d796e1d6
TT
98492014-02-19 Tom Tromey <tromey@redhat.com>
9850
9851 * target.h (struct target_ops) <to_has_exited>: Add argument.
9852 (target_has_exited): Add argument.
9853 * target.c (debug_to_has_exited): Add argument.
9854 (update_current_target): Update.
9855
ff214e67
TT
98562014-02-19 Tom Tromey <tromey@redhat.com>
9857
9858 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
9859 argument.
9860 (target_set_syscall_catchpoint): Add argument.
9861 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
9862 argument.
9863 * target.c (update_current_target): Update.
9864
758e29d2
TT
98652014-02-19 Tom Tromey <tromey@redhat.com>
9866
9867 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
9868 argument.
9869 (target_remove_exec_catchpoint): Add argument.
9870 * target.c (debug_to_remove_exec_catchpoint): Add argument.
9871 (update_current_target): Update.
9872 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
9873 argument.
9874
ba025e51
TT
98752014-02-19 Tom Tromey <tromey@redhat.com>
9876
9877 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
9878 argument.
9879 (target_insert_exec_catchpoint): Add argument.
9880 * target.c (debug_to_insert_exec_catchpoint): Add argument.
9881 (update_current_target): Update.
9882 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
9883 argument.
9884
e98cf0cd
TT
98852014-02-19 Tom Tromey <tromey@redhat.com>
9886
9887 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
9888 argument.
9889 (target_remove_vfork_catchpoint): Add argument.
9890 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
9891 (update_current_target): Update.
9892 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
9893 argument.
9894
3ecc7da0
TT
98952014-02-19 Tom Tromey <tromey@redhat.com>
9896
9897 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
9898 argument.
9899 (target_insert_vfork_catchpoint): Add argument.
9900 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
9901 (update_current_target): Update.
9902 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
9903 argument.
9904
973fc227
TT
99052014-02-19 Tom Tromey <tromey@redhat.com>
9906
9907 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
9908 argument.
9909 (target_remove_fork_catchpoint): Add argument.
9910 * target.c (debug_to_remove_fork_catchpoint): Add argument.
9911 (update_current_target): Update.
9912 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
9913 argument.
9914
a863b201
TT
99152014-02-19 Tom Tromey <tromey@redhat.com>
9916
9917 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
9918 argument.
9919 (target_insert_fork_catchpoint): Add argument.
9920 * target.c (debug_to_insert_fork_catchpoint): Add argument.
9921 (update_current_target): Update.
9922 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
9923 argument.
9924
2e97a79e
TT
99252014-02-19 Tom Tromey <tromey@redhat.com>
9926
9927 * target.h (struct target_ops) <to_post_startup_inferior>: Add
9928 argument.
9929 (target_post_startup_inferior): Add argument.
9930 * target.c (debug_to_post_startup_inferior): Add argument.
9931 (update_current_target): Update.
9932 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
9933 argument.
9934 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
9935 argument.
9936 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
9937 argument.
9938 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
9939 argument.
9940 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
9941 'self' argument.
9942 (super_post_startup_inferior): Likewise.
9943 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
9944 'self' argument.
9945 (super_post_startup_inferior): Likewise.
9946 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
9947 Add 'self' argument.
9948 (super_post_startup_inferior): Likewise.
9949
71a9f134
TT
99502014-02-19 Tom Tromey <tromey@redhat.com>
9951
9952 * target.h (struct target_ops) <to_load>: Add argument.
9953 * target.c (target_load): Add argument.
9954 (debug_to_load): Add argument.
9955 (update_current_target): Update.
9956 * remote.c (remote_load): Add 'self' argument.
9957 * remote-sim.c (gdbsim_load): Add 'self' argument.
9958 * remote-mips.c (mips_load): Add 'self' argument.
9959 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
9960 * monitor.c (monitor_load): Add 'self' argument.
9961 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
9962
0a4f40a2
TT
99632014-02-19 Tom Tromey <tromey@redhat.com>
9964
9965 * target.h (struct target_ops) <to_terminal_info>: Add argument.
9966 (target_terminal_info): Add argument.
9967 * target.c (debug_to_terminal_info): Add argument.
9968 (default_terminal_info): Likewise.
9969 * inflow.c (child_terminal_info): Add 'self' argument.
9970 * inferior.h (child_terminal_info): Add 'self' argument.
9971 * go32-nat.c (go32_terminal_info): Add 'self' argument.
9972
ae3bd431
TT
99732014-02-19 Tom Tromey <tromey@redhat.com>
9974
9975 * target.h (struct target_ops) <to_terminal_save_ours>: Add
9976 argument.
9977 (target_terminal_save_ours): Add argument.
9978 * target.c (debug_to_terminal_save_ours): Add argument.
9979 (update_current_target): Update.
9980 * inflow.c (terminal_save_ours): Add 'self' argument.
9981 * inferior.h (terminal_save_ours): Add 'self' argument.
9982
e3594fd1
TT
99832014-02-19 Tom Tromey <tromey@redhat.com>
9984
9985 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
9986 (target_terminal_ours): Add argument.
9987 * target.c (debug_to_terminal_ours): Add argument.
9988 (update_current_target): Update.
9989 * remote.c (remote_terminal_ours): Add 'self' argument.
9990 (remote_close): Update.
9991 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
9992 * inflow.c (terminal_ours): Add 'self' argument.
9993 * inferior.h (terminal_ours): Add 'self' argument.
9994 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9995
2e1e1a19
TT
99962014-02-19 Pedro Alves <palves@redhat.com>
9997 Tom Tromey <tromey@redhat.com>
9998
9999 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
10000 argument.
10001 (target_terminal_ours_for_output): Add argument.
10002 * target.c (debug_to_terminal_ours_for_output): Add argument.
10003 (update_current_target): Update.
10004 * inflow.c (terminal_ours_for_output): Add 'self' argument.
10005 * inferior.h (terminal_ours_for_output): Add 'self' argument.
10006 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
10007
d2f640d4
TT
100082014-02-19 Tom Tromey <tromey@redhat.com>
10009
10010 * target.h (struct target_ops) <to_terminal_inferior>: Add
10011 argument.
10012 * target.c (target_terminal_inferior): Add argument.
10013 (update_current_target): Update.
10014 * remote.c (remote_terminal_inferior): Add 'self' argument.
10015 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
10016 * inflow.c (terminal_inferior): Add 'self' argument.
10017 * inferior.h (terminal_inferior): Add 'self' argument.
10018 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
10019 (go32_terminal_inferior): Add 'self' argument.
10020
c42bf286
TT
100212014-02-19 Tom Tromey <tromey@redhat.com>
10022
10023 * target.h (struct target_ops) <to_terminal_init>: Add argument.
10024 (target_terminal_init): Add argument.
10025 * target.c (debug_to_terminal_init): Add argument.
10026 (update_current_target): Update.
10027 * inflow.c (terminal_init_inferior): Add 'self' argument.
10028 * inferior.h (terminal_init_inferior): Add 'self' argument.
10029 * go32-nat.c (go32_terminal_init): Add 'self' argument.
10030 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
10031
c3a5ff89
TT
100322014-02-19 Tom Tromey <tromey@redhat.com>
10033
10034 * target.h (struct target_ops)
10035 <to_can_accel_watchpoint_condition>: Add argument.
10036 (target_can_accel_watchpoint_condition): Add argument.
10037 * target.c (debug_to_can_accel_watchpoint_condition): Add
10038 argument.
10039 (update_current_target): Update.
10040 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
10041 'self' argument.
10042
31568a15
TT
100432014-02-19 Tom Tromey <tromey@redhat.com>
10044
10045 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10046 Add argument.
10047 (target_region_ok_for_hw_watchpoint): Add argument.
10048 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
10049 (default_region_ok_for_hw_watchpoint): Add argument.
10050 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
10051 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
10052 argument.
10053 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
10054 argument.
10055 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
10056 argument.
10057 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
10058 'self' argument.
10059 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
10060 'self' argument.
10061 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
10062 'self' argument.
10063 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
10064 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
10065 'self' argument.
10066 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
10067 Add 'self' argument.
10068
7bb99c53
TT
100692014-02-19 Tom Tromey <tromey@redhat.com>
10070
10071 * target.h (struct target_ops) <to_insert_watchpoint>: Add
10072 argument.
10073 (target_insert_watchpoint): Add argument.
10074 * target.c (debug_to_insert_watchpoint): Add argument.
10075 (update_current_target): Update.
10076 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
10077 * remote.c (remote_insert_watchpoint): Add 'self' argument.
10078 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
10079 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
10080 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
10081 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
10082 argument.
10083 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
10084 (procfs_insert_hw_watchpoint): Add 'self' argument.
10085 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
10086 argument.
10087 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
10088 argument.
10089 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
10090 argument.
10091 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
10092 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
10093 argument.
10094 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
10095 'self' argument.
10096
11b5219a
TT
100972014-02-19 Tom Tromey <tromey@redhat.com>
10098
10099 * target.h (struct target_ops) <to_remove_watchpoint>: Add
10100 argument.
10101 (target_remove_watchpoint): Add argument.
10102 * target.c (debug_to_remove_watchpoint): Add argument.
10103 (update_current_target): Update.
10104 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
10105 * remote.c (remote_remove_watchpoint): Add 'self' argument.
10106 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
10107 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
10108 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
10109 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
10110 argument.
10111 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
10112 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
10113 argument.
10114 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
10115 argument.
10116 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
10117 argument.
10118 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
10119 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
10120 argument.
10121 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
10122 'self' argument.
10123
a64dc96c
TT
101242014-02-19 Tom Tromey <tromey@redhat.com>
10125
10126 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
10127 argument.
10128 (target_remove_hw_breakpoint): Add argument.
10129 * target.c (debug_to_remove_hw_breakpoint): Add argument.
10130 (update_current_target): Update.
10131 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
10132 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
10133 argument.
10134 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
10135 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
10136 argument.
10137 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
10138 'self' argument.
10139
23a26771
TT
101402014-02-19 Tom Tromey <tromey@redhat.com>
10141
10142 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
10143 argument.
10144 (target_insert_hw_breakpoint): Add argument.
10145 * target.c (debug_to_insert_hw_breakpoint): Add argument.
10146 (update_current_target): Update.
10147 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
10148 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
10149 argument.
10150 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
10151 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
10152 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
10153 argument.
10154 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
10155 'self' argument.
10156
5461485a
TT
101572014-02-19 Tom Tromey <tromey@redhat.com>
10158
10159 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
10160 argument.
10161 (target_can_use_hardware_watchpoint): Add argument.
10162 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
10163 (update_current_target): Update.
10164 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
10165 argument.
10166 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
10167 argument.
10168 * remote.c (remote_check_watch_resources): Add 'self' argument.
10169 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
10170 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
10171 argument.
10172 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
10173 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
10174 argument.
10175 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
10176 argument.
10177 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
10178 argument.
10179 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
10180 argument.
10181 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
10182 argument.
10183 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
10184 argument.
10185 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
10186 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
10187 argument.
10188 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
10189 'self' argument.
10190
f045800c
TT
101912014-02-19 Tom Tromey <tromey@redhat.com>
10192
10193 * target.h (struct target_ops) <to_post_attach>: Add argument.
10194 (target_post_attach): Add argument.
10195 * target.c (debug_to_post_attach): Add argument.
10196 (update_current_target): Update.
10197 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
10198 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
10199 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
10200 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
10201 * inf-child.c (inf_child_post_attach): Add 'self' argument.
10202
de90e03d
TT
102032014-02-19 Tom Tromey <tromey@redhat.com>
10204
10205 * windows-nat.c (windows_close): Add 'self' argument.
10206 * tracepoint.c (tfile_close): Add 'self' argument.
10207 * target.h (struct target_ops) <to_close>: Add argument.
10208 * target.c (target_close): Add argument.
10209 (update_current_target): Update.
10210 * remote.c (remote_close): Add 'self' argument.
10211 * remote-sim.c (gdbsim_close): Add 'self' argument.
10212 * remote-mips.c (mips_close): Add 'self' argument.
10213 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
10214 * record-full.c (record_full_close): Add 'self' argument.
10215 * record-btrace.c (record_btrace_close): Add 'self' argument.
10216 * monitor.h (monitor_close): Add 'self' argument.
10217 * monitor.c (monitor_close): Add 'self' argument.
10218 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
10219 * linux-nat.c (linux_nat_close): Add argument.
10220 * go32-nat.c (go32_close): Add 'self' argument.
10221 * exec.c (exec_close_1): Add 'self' argument.
10222 * ctf.c (ctf_close): Add 'self' argument.
10223 * corelow.c (core_close): Add 'self' argument.
10224 (core_close_cleanup): Update.
10225 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
10226 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
10227
9dd130a0
TT
102282014-02-19 Tom Tromey <tromey@redhat.com>
10229
10230 * remote.c (remote_load): New function.
10231 (init_remote_ops): Use it.
10232
46917d26
TT
102332014-02-19 Tom Tromey <tromey@redhat.com>
10234
10235 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
10236 argument.
10237 * common/linux-btrace.h (linux_supports_btrace): Update.
10238 * remote.c (remote_supports_btrace): Add "self" argument.
10239 * target-delegates.c: Rebuild.
10240 * target.c (target_supports_btrace): Remove.
10241 * target.h (struct target_ops) <to_supports_btrace>: Add
10242 target_ops argument.
10243 (target_supports_btrace): New define.
10244
6b84065d
TT
102452014-02-19 Tom Tromey <tromey@redhat.com>
10246
10247 * record-full.c (record_full_beneath_to_resume_ops)
10248 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
10249 (record_full_beneath_to_wait)
10250 (record_full_beneath_to_store_registers_ops)
10251 (record_full_beneath_to_store_registers)
10252 (record_full_beneath_to_xfer_partial_ops)
10253 (record_full_beneath_to_xfer_partial)
10254 (record_full_beneath_to_insert_breakpoint_ops)
10255 (record_full_beneath_to_insert_breakpoint)
10256 (record_full_beneath_to_remove_breakpoint_ops)
10257 (record_full_beneath_to_remove_breakpoint)
10258 (record_full_beneath_to_stopped_by_watchpoint)
10259 (record_full_beneath_to_stopped_data_address)
10260 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
10261 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
10262 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
10263 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
10264 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
10265 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
10266 (tmp_to_stopped_data_address, tmp_to_async): Remove.
10267 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
10268 (record_full_resume, record_full_wait_1)
10269 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
10270 (record_full_store_registers, record_full_xfer_partial)
10271 (record_full_insert_breakpoint, record_full_remove_breakpoint)
10272 (record_full_async, record_full_core_xfer_partial): Use target
10273 delegation.
10274 * target-delegates.c: Rebuild.
10275 * target.c (current_xfer_partial): Remove.
10276 (update_current_target): Do not INHERIT or de_fault
10277 to_insert_breakpoint, to_remove_breakpoint,
10278 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
10279 to_is_async_p, to_async. Do not set to_xfer_partial field.
10280 (default_xfer_partial): Simplify.
10281 (current_xfer_partial): Remove.
10282 (target_wait, target_resume): Simplify.
10283 (find_default_can_async_p, find_default_is_async_p): Update.
10284 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
10285 to_xfer_partial, to_stopped_by_watchpoint,
10286 to_stopped_data_address.
10287 (target_store_registers): Simplify.
10288 (forward_target_remove_breakpoint)
10289 (forward_target_insert_breakpoint): Remove.
10290 (target_remove_breakpoint, target_insert_breakpoint)
10291 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
10292 * target.h (struct target_ops) <to_resume, to_wait,
10293 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
10294 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
10295 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
10296 markup.
10297 (forward_target_remove_breakpoint)
10298 (forward_target_insert_breakpoint): Remove.
10299 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
10300 directly.
10301 (record_btrace_insert_breakpoint): Delegate directly.
10302
1101cb7b
TT
103032014-02-19 Tom Tromey <tromey@redhat.com>
10304
10305 PR build/7701:
10306 * target-delegates.c: New file.
10307 * target.c: Include target-delegates.c.
10308 (init_dummy_target): Call install_dummy_methods.
10309 (complete_target_initialization): Call install_delegators.
10310 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
10311 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
10312 * make-target-delegates: New file.
10313
8b06beed
TT
103142014-02-19 Tom Tromey <tromey@redhat.com>
10315
10316 * record.c (find_record_target): Use find_target_at.
10317 * target.c (find_target_at): New function.
10318 * target.h (find_target_at): Declare.
10319
6a109b6b
TT
103202014-02-19 Tom Tromey <tromey@redhat.com>
10321
10322 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
10323 Add 'ops' argument.
10324 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
10325 'ops' argument.
10326 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
10327 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
10328 'ops' argument.
10329 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
10330 argument.
10331 * linux-nat.c (save_sigtrap): Update.
10332 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
10333 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
10334 (linux_nat_close): Update.
10335 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
10336 argument.
10337 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
10338 argument.
10339 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
10340 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
10341 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
10342 (tmp_to_async): Add 'ops' argument.
10343 (record_full_stopped_by_watchpoint, record_full_async)
10344 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
10345 argument.
10346 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
10347 (m32r_stopped_by_watchpoint): Add 'ops' argument.
10348 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
10349 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
10350 (remote_is_async_p, remote_async): Add 'ops' argument.
10351 (remote_stopped_data_address): Update.
10352 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
10353 * target.c (update_current_target)
10354 (find_default_can_async_p, find_default_is_async_p): Update.
10355 (init_dummy_target): Update.
10356 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
10357 * target.h (struct target_ops) <to_stopped_by_watchpoint,
10358 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
10359 (target_can_async_p, target_is_async_p, target_async)
10360 (target_stopped_by_watchpoint): Update.
10361
e095146b
YQ
103622014-02-19 Yao Qi <yao@codesourcery.com>
10363
10364 PR gdb/16220
10365 * gdbarch.sh: Remove startup_gdbarch.
10366 * gdbarch.c: Regenerated.
10367 * gdbarch.h: Likewise.
10368
bc3c6b36
KB
103692014-02-17 Kevin Buettner <kevinb@redhat.com>
10370
10371 * rl78-tdep.c (rl78_g10_register_name): New function.
10372 (rl78_return_value): Add g10 support.
10373 (rl78_gdbarch_init): Register rl78_g10_register_name for the
10374 g10.
10375
98dc0167 103762014-02-17 Doug Evans <xdje42@gmail.com>
f01c1940
DE
10377
10378 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
10379 (SUBDIR_GUILE_SRCS): Ditto.
10380 (scm-gsmob.o): Ditto.
10381
842c05cd
YQ
103822014-02-17 Yao Qi <yao@codesourcery.com>
10383
10384 * gnu-nat.c (ILL_RPC): Declare defined function.
10385
25c0bd04
YQ
103862014-02-17 Yao Qi <yao@codesourcery.com>
10387
10388 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
10389 mach_msg_type_number_t.
10390 (gnu_write_inferior): Likewise.
10391
a9a758e3
YQ
103922014-02-17 Yao Qi <yao@codesourcery.com>
10393
10394 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
10395 in format string.
10396 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
10397 (inf_validate_procs, inf_signal): Likewise.
10398 (S_exception_raise_request): Likewise.
10399 (do_mach_notify_dead_name): Likewise.
10400 (steal_exc_port): Likewise.
10401 (gnu_read_inferior): Change 'copy_count''s type to
10402 mach_msg_type_number_t.
10403 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
10404 format string.
10405
bae8023e
TS
104062014-02-16 Thomas Schwinge <thomas@codesourcery.com>
10407
c82f56d9
TS
10408 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
10409 flag. Adjust all users; in particular...
10410 (gnu_wait): ..., don't decrement its value in here...
10411 (gnu_create_inferior): ..., and instead set the flag in here,
10412 around the startup_inferior call, and call that one with
10413 START_INFERIOR_TRAPS_EXPECTED.
10414
3398af6a
TS
10415 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
10416 (ILL_RPC): ... new macro.
10417 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
10418 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
10419 (do_mach_notify_send_once, S_proc_setmsgport_reply)
10420 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
10421 functions with ILL_RPC macro.
10422 (S_proc_pid2task_reply, S_proc_task2pid_reply)
10423 (S_proc_task2proc_reply, S_proc_proc2task_reply)
10424 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
10425 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
10426 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
10427 (S_proc_getlogin_reply, S_proc_getsid_reply)
10428 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
10429 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
10430 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
10431 (S_proc_getnports_reply, S_proc_is_important_reply)
10432 (S_proc_get_code_reply): New stub functions, generated with
10433 ILL_RPC macro.
10434
d47642c9
TS
10435 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
10436 collected the type check structures.
10437
bae8023e
TS
10438 * reply_mig_hack.awk: Don't expect to see the auto keyword.
10439
8a55ffb0
DE
104402014-02-14 Doug Evans <dje@google.com>
10441
10442 * target.c (target_write_partial): Fix result type.
10443
c2853f3d
JM
104442014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
10445
10446 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
10447 the proper offsets to access fpregset_t.
10448
ac61d2db
SA
104492014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
10450
10451 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
10452 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
10453 * h8300-tdep.c (setmachinelist): Remove global.
10454 * hppa-tdep.c (hppa_sigtramp): Remove global.
10455 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
10456 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
10457 * ravenscar-thread.c (update_target_observer): Remove global.
10458 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
10459
9d2d0b8b
TT
104602014-02-12 Tom Tromey <tromey@redhat.com>
10461
10462 * common/rsp-low.c: Update comments.
10463 * common/rsp-low.h: Update comments.
10464
a7191e8b
TT
104652014-02-12 Tom Tromey <tromey@redhat.com>
10466
10467 * common/rsp-low.c (convert_ascii_to_int): Remove.
10468 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
10469
ff0e980e
TT
104702014-02-12 Tom Tromey <tromey@redhat.com>
10471
10472 * common/rsp-low.h (unhexify): Don't declare.
10473 * common/rsp-low.c (unhexify): Remove.
10474
e9371aff
TT
104752014-02-12 Tom Tromey <tromey@redhat.com>
10476
10477 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
10478 * common/rsp-low.c (convert_int_to_ascii): Remove.
10479
971dc0b8
TT
104802014-02-12 Tom Tromey <tromey@redhat.com>
10481
10482 * common/rsp-low.h (hexify): Don't declare.
10483 * common/rsp-low.c (hexify): Remove.
10484
0a822afb
TT
104852014-02-12 Tom Tromey <tromey@redhat.com>
10486
10487 * common/rsp-low.c (hexify): Never take strlen of argument.
10488
9f1b45b0
TT
104892014-02-12 Tom Tromey <tromey@redhat.com>
10490
10491 * common/rsp-low.c (bin2hex): Never take strlen of argument.
10492 * remote.c (extended_remote_run, remote_rcmd)
10493 (remote_download_trace_state_variable, remote_save_trace_data)
10494 (remote_set_trace_notes): Update.
10495 * tracepoint.c (encode_source_string, tfile_write_status)
10496 (tfile_write_uploaded_tsv): Update.
10497
9c3d6531
TT
104982014-02-12 Tom Tromey <tromey@redhat.com>
10499
10500 * tracepoint.c: Include rsp-low.h.
10501 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
10502 * remote.c: Include rsp-low.h.
10503 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
10504 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
10505 (remote_unescape_input): Move to common/rsp-low.c.
10506 * common/rsp-low.h: New file.
10507 * common/rsp-low.c: New file.
10508 * Makefile.in (SFILES): Add common/rsp-low.c.
10509 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
10510 (COMMON_OBS): Add rsp-low.o.
10511 (rsp-low.o): New target.
10512
01fd3ea5
TT
105132014-02-12 Tom Tromey <tromey@redhat.com>
10514
10515 * utils.h: Include print-utils.h.
10516 (host_address_to_string, plongest, pulongest, phex, phex_nz)
10517 (int_string, core_addr_to_string, core_addr_to_string_nz)
10518 (hex_string, hex_string_custom): Don't declare.
10519 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
10520 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
10521 (hex_string_custom, int_string, core_addr_to_string)
10522 (core_addr_to_string_nz, host_address_to_string): Move to
10523 common/print-utils.c.
10524 * common/print-utils.h: New file.
10525 * common/print-utils.c: New file
10526 * Makefile.in (SFILES): Add common/print-utils.c.
10527 (HFILES_NO_SRCDIR): Add common/print-utils.h.
10528 (COMMON_OBS): Add print-utils.o.
10529 (print-utils.o): New target.
10530
9fb50108
TT
105312014-02-12 Tom Tromey <tromey@redhat.com>
10532
10533 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
10534
0548b5db
MK
105352014-02-12 Mark Kettenis <kettenis@gnu.org>
10536
10537 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
10538
493443a4
MK
105392014-02-12 Mark Kettenis <kettenis@gnu.org>
10540
10541 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
10542 if a PT_IO ptrace request returns sucessfully but indicates that 0
10543 bytes were transferred.
10544
706d0883
PA
105452014-02-12 Pedro Alves <palves@redhat.com>
10546 Kevin Buettner <kevinb@redhat.com>
10547
10548 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
10549 TYPE_INSTANCE_FLAG_CODE_SPACE.
10550
5caa2f0b
PA
105512014-02-12 Pedro Alves <palves@redhat.com>
10552
10553 * h8300-tdep.c (pseudo_from_raw_register)
10554 (raw_from_pseudo_register): New functions.
10555 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
10556 them.
10557
76fd5f74
PA
105582014-02-12 Pedro Alves <palves@redhat.com>
10559
10560 * h8300-tdep.c (h8300_register_sim_regno): New function.
10561 (h8300_gdbarch_init): Install h8300_register_sim_regno as
10562 gdbarch_register_sim_regno hook.
10563
8f008406
SA
105642014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10565
10566 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
10567
195abc10
SA
105682014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10569
10570 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
10571
93ffa5b9
MK
105722014-02-12 Mark Kettenis <kettenis@gnu.org>
10573
10574 * obsd-tdep.h (obsd_init_abi): New prototype.
10575 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
10576 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
10577 (obsd_init_abi): New functions.
10578 * i386obsd-tdep.c: Include "obsd-tdep.h".
10579 (i386obsd_init_abi): Call obsd_init_abi.
10580 * amd64obsd-tdep.c: Include "obsd-tdep.h".
10581 (amd64obsd_init_abi): Call obsd_init_abi.
10582 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
10583 obsd-tdep.c to gdb_target_obs.
10584
49caec94
JM
105852014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
10586
10587 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
10588 double float arguments to 16-byte in the argument slots.
10589
e1402065
DE
105902014-02-11 Doug Evans <xdje42@gmail.com>
10591
10592 * configure.ac: Don't crash if pkg-config is not found and guile
10593 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
10594 in guile checks.
10595 * configure: Regenerate.
10596
edcc890f
YQ
105972014-02-11 Yao Qi <yao@codesourcery.com>
10598
10599 * aix-thread.c (aix_thread_xfer_partial): Update comments.
10600 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
10601 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
10602 * gnu-nat.c (gnu_xfer_memory): Likewise.
10603 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10604 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10605 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10606 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10607
9b409511
YQ
106082014-02-11 Yao Qi <yao@codesourcery.com>
10609
10610 * target.h (enum target_xfer_error): Rename to ...
10611 (enum target_xfer_status): ... it. New. All users updated.
10612 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
10613 New.
10614 (TARGET_XFER_STATUS_ERROR_P): New macro.
10615 (target_xfer_error_to_string): Remove declaration.
10616 (target_xfer_status_to_string): Declare.
10617 (target_xfer_partial_ftype): Adjust it.
10618 (struct target_ops) <to_xfer_partial>: Return
10619 target_xfer_status. Add argument xfered_len. Update
10620 comments.
10621 * target.c (target_xfer_error_to_string): Rename to ...
10622 (target_xfer_status_to_string): ... it. New. All callers
10623 updated.
10624 (target_read_live_memory): Likewise. Call target_xfer_partial
10625 instead of target_read.
10626 (memory_xfer_live_readonly_partial): Return
10627 target_xfer_status. Add argument xfered_len.
10628 (raw_memory_xfer_partial): Likewise.
10629 (memory_xfer_partial_1): Likewise.
10630 (memory_xfer_partial): Likewise.
10631 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
10632 properly. Update debug message.
10633 (default_xfer_partial, current_xfer_partial): Likewise.
10634 (target_write_partial): Likewise.
10635 (target_read_partial): Likewise. All callers updated.
10636 (read_whatever_is_readable): Likewise.
10637 (target_write_with_progress): Likewise.
10638 (target_read_alloc_1): Likewise.
10639
10640 * aix-thread.c (aix_thread_xfer_partial): Likewise.
10641 * auxv.c (procfs_xfer_auxv): Likewise.
10642 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
10643 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10644 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10645 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
10646 * corefile.c (read_memory): Adjust.
10647 * corelow.c (core_xfer_partial): Likewise.
10648 * ctf.c (ctf_xfer_partial): Likewise.
10649 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
10650 updated.
10651 (darwin_xfer_partial): Likewise.
10652 * exec.c (section_table_xfer_memory_partial): Likewise. All
10653 callers updated.
10654 (exec_xfer_partial): Likewise.
10655 * exec.h (section_table_xfer_memory_partial): Update
10656 declaration.
10657 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
10658 negative.
10659 (gnu_xfer_partial): Likewise.
10660 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
10661 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
10662 (ia64_hpux_xfer_solib_got): Likewise.
10663 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
10664 type of 'partial_len' to ULONGEST.
10665 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10666 * linux-nat.c (linux_xfer_siginfo ): Likewise.
10667 (linux_nat_xfer_partial): Likewise.
10668 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
10669 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
10670 * monitor.c (monitor_xfer_memory): Likewise.
10671 (monitor_xfer_partial): Likewise.
10672 * procfs.c (procfs_xfer_partial): Likewise.
10673 * record-btrace.c (record_btrace_xfer_partial): Likewise.
10674 * record-full.c (record_full_xfer_partial): Likewise.
10675 (record_full_core_xfer_partial): Likewise.
10676 * remote-sim.c (gdbsim_xfer_memory): Likewise.
10677 (gdbsim_xfer_partial): Likewise.
10678 * remote.c (remote_write_bytes_aux): Likewise. All callers
10679 updated.
10680 (remote_write_bytes, remote_read_bytes): Likewise. All
10681 callers updated.
10682 (remote_flash_erase): Likewise. All callers updated.
10683 (remote_write_qxfer): Likewise. All callers updated.
10684 (remote_read_qxfer): Likewise. All callers updated.
10685 (remote_xfer_partial): Likewise.
10686 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10687 (rs6000_xfer_shared_libraries): Likewise.
10688 * sol-thread.c (sol_thread_xfer_partial): Likewise.
10689 (sol_thread_xfer_partial): Likewise.
10690 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10691 (sparc_xfer_partial): Likewise.
10692 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
10693 updated.
10694 (spu_xfer_partial): Likewise.
10695 * spu-multiarch.c (spu_xfer_partial): Likewise.
10696 * tracepoint.c (tfile_xfer_partial): Likewise.
10697 * windows-nat.c (windows_xfer_memory): Likewise.
10698 (windows_xfer_shared_libraries): Likewise.
10699 (windows_xfer_partial): Likewise.
10700 * valprint.c: Replace 'target_xfer_error' with
10701 'target_xfer_status' in comments.
10702
a8e63083
JB
107032014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
10704
10705 Checked in by Joel Brobecker <brobecker@adacore.com>.
10706 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
10707
e86b67d3
JB
107082014-02-11 Joel Brobecker <brobecker@adacore.com>
10709
10710 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
10711 function parameters.
10712
4b7d1f7f
WN
107132014-02-10 Will Newton <will.newton@linaro.org>
10714
10715 * elfread.c (elf_rel_plt_read): Look for a .got section if
10716 looking up .got.plt fails.
10717 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
10718 on address passed to elf_gnu_ifunc_record_cache.
10719 (elf_gnu_ifunc_resolve_addr): Likewise.
10720 (elf_gnu_ifunc_resolver_return_stop): Likewise.
10721
961842b2
JM
107222014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
10723
10724 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
10725 (X_RETTURN): New macro.
10726 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
10727
10728 * sparc64-tdep.c (sparc64_init_abi): Hook
10729 sparc_in_function_epilogue_p.
10730
3f03e7b1
GB
107312014-02-10 Gary Benson <gbenson@redhat.com>
10732
10733 * symfile-debug.c (debug_qf_expand_symtabs_matching):
10734 Rename name_matcher to symbol_matcher.
10735
96f861ef
GB
107362014-02-10 Gary Benson <gbenson@redhat.com>
10737
10738 * symfile-debug.c (debug_qf_expand_symtabs_matching):
10739 Use expand_symtabs_file_matcher_ftype and
10740 expand_symtabs_symbol_matcher_ftype.
10741
ee01b665
JB
107422014-02-10 Joel Brobecker <brobecker@adacore.com>
10743
10744 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
10745 (struct ada_symbol_cache): New.
10746 (ada_free_symbol_cache): Forward declare.
10747 (struct ada_pspace_data): New.
10748 (ada_pspace_data_handle): New static global.
10749 (get_ada_pspace_data, ada_pspace_data_cleanup)
10750 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
10751 (cache_space, cache): Delete, now folded inside struct
10752 ada_pspace_data.
10753 (ada_get_symbol_cache): New function.
10754 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
10755 implementation.
10756 (_initialize_ada_language): Remove initialization of cache_space.
10757 Move call to observer_attach_inferior_exit up, grouping it
10758 with the other observer registrations inside this function.
10759 Rename command to be more general. Add call to
10760 register_program_space_data_with_cleanup.
10761
143adbbf
JB
107622014-02-10 Joel Brobecker <brobecker@adacore.com>
10763
10764 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
10765 ada_new_objfile_observer.
10766 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
10767 (_initialize_tasks): Update uses of ada_new_objfile_observer
10768 and ada_tasks_normal_stop_observer.
10769
aa4fb036
JB
107702014-02-10 Joel Brobecker <brobecker@adacore.com>
10771
10772 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
10773 returned by the 'Length attribute to integer.
10774
9dee8cc6
JB
107752014-02-10 Joel Brobecker <brobecker@adacore.com>
10776
10777 * ada-lang.c (_initialize_ada_language): Initialize
10778 cache_space obstack.
10779
3d9434b5
JB
107802014-02-10 Joel Brobecker <brobecker@adacore.com>
10781
10782 * ada-lang.c (HASH_SIZE): New macro.
10783 (struct cache_entry): New type.
10784 (cache_space, cache): New static globals.
10785 (ada_clear_symbol_cache, find_entry): New functions.
10786 (lookup_cached_symbol, cache_symbol): Implement.
10787 (ada_new_objfile_observer, ada_free_objfile_observer): New.
10788 (_initialize_ada_language): Attach ada_new_objfile_observer
10789 and ada_free_objfile_observer.
10790
f0c5f9b2
JB
107912014-02-10 Joel Brobecker <brobecker@adacore.com>
10792
10793 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
10794 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
10795 struct block * parameter.
10796 (ada_lookup_symbol_list_worker): Constify local variable "block".
10797 Remove cast which is no longer necessary.
10798
ed3ef339
DE
107992014-02-10 Doug Evans <xdje42@gmail.com>
10800
10801 Add Guile as an extension language.
10802 * NEWS: Mention Guile scripting.
10803 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
10804 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
10805 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
10806 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
10807 (CLIBS): Add GUILE_LIBS.
10808 (install-guile): New rule.
10809 (guile.o): New rule.
10810 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
10811 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
10812 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
10813 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
10814 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
10815 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
10816 (scm-type.o, scm-utils.o, scm-value.o): New rules.
10817 * configure.ac: New option --with-guile.
10818 * configure: Regenerate.
10819 * config.in: Regenerate.
10820 * auto-load.c: Remove #include "python/python.h". Add #include
10821 "gdb/section-scripts.h".
10822 (source_section_scripts): Handle Guile scripts.
10823 (_initialize_auto_load): Add name of Guile objfile script to
10824 scripts-directory help text.
10825 * breakpoint.c (condition_command): Tweak comment to include Scheme.
10826 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
10827 (struct breakpoint): New member scm_bp_object.
10828 * defs.h (enum command_control_type): New value guile_control.
10829 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
10830 "extension.h".
10831 (show_user): Update comment.
10832 (_initialize_cli_cmds): Update help text for "show user". Update help
10833 text for max-user-call-depth.
10834 * cli/cli-script.c: Remove #include "python/python.h". Add #include
10835 "extension.h".
10836 (multi_line_command_p): Add guile_control.
10837 (print_command_lines): Handle guile_control.
10838 (execute_control_command, recurse_read_control_structure): Ditto.
10839 (process_next_line): Recognize "guile" commands.
10840 * disasm.c (gdb_disassemble_info): Make non-static.
10841 * disasm.h: #include "dis-asm.h".
10842 (struct gdbarch): Add forward decl.
10843 (gdb_disassemble_info): Declare.
10844 * extension.c: #include "guile/guile.h".
10845 (extension_languages): Add guile.
10846 (get_ext_lang_defn): Handle EXT_LANG_GDB.
10847 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
10848 * gdbtypes.c (get_unsigned_type_max): New function.
10849 (get_signed_type_minmax): New function.
10850 * gdbtypes.h (get_unsigned_type_max): Declare.
10851 (get_signed_type_minmax): Declare.
10852 * guile/README: New file.
10853 * guile/guile-internal.h: New file.
10854 * guile/guile.c: New file.
10855 * guile/guile.h: New file.
10856 * guile/scm-arch.c: New file.
10857 * guile/scm-auto-load.c: New file.
10858 * guile/scm-block.c: New file.
10859 * guile/scm-breakpoint.c: New file.
10860 * guile/scm-disasm.c: New file.
10861 * guile/scm-exception.c: New file.
10862 * guile/scm-frame.c: New file.
10863 * guile/scm-gsmob.c: New file.
10864 * guile/scm-iterator.c: New file.
10865 * guile/scm-lazy-string.c: New file.
10866 * guile/scm-math.c: New file.
10867 * guile/scm-objfile.c: New file.
10868 * guile/scm-ports.c: New file.
10869 * guile/scm-pretty-print.c: New file.
10870 * guile/scm-safe-call.c: New file.
10871 * guile/scm-string.c: New file.
10872 * guile/scm-symbol.c: New file.
10873 * guile/scm-symtab.c: New file.
10874 * guile/scm-type.c: New file.
10875 * guile/scm-utils.c: New file.
10876 * guile/scm-value.c: New file.
10877 * guile/lib/gdb.scm: New file.
10878 * guile/lib/gdb/boot.scm: New file.
10879 * guile/lib/gdb/experimental.scm: New file.
10880 * guile/lib/gdb/init.scm: New file.
10881 * guile/lib/gdb/iterator.scm: New file.
10882 * guile/lib/gdb/printing.scm: New file.
10883 * guile/lib/gdb/types.scm: New file.
10884 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
10885 (VPATH): Add $(GUILE_SRCDIR).
10886 (GUILE_DIR): New variable.
10887 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
10888 (all): Add stamp-guile dependency.
10889 (stamp-guile): New rule.
10890 (clean-guile, install-guile, uninstall-guile): New rules.
10891 (install-only): Add install-guile dependency.
10892 (uninstall): Add uninstall-guile dependency.
10893 (clean): Add clean-guile dependency.
10894
ac020ec5
DE
108952014-02-09 Doug Evans <xdje42@gmail.com>
10896
10897 Revert this patch (which I approved, mea culpa).
10898
10899 2014-02-08 Mark Kettenis <kettenis@gnu.org>
10900
10901 * Makefile.in (all-lib): Remove.
10902 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10903
2a081c59
JK
109042014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10905
10906 Fix Python stack corruption.
10907 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
10908 gdb_py_longest.
10909
0a6bd22d
MK
109102014-02-08 Mark Kettenis <kettenis@gnu.org>
10911
10912 * Makefile.in (all-lib): Remove.
10913 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10914
1a860409
DE
109152014-02-07 Doug Evans <dje@google.com>
10916
10917 * extension-priv.h (extension_language_script_ops): Add comment.
10918 (extension_language_ops): Add comment.
caf5a491 10919 (active_ext_lang_state): Fix typo in comment.
1a860409 10920
d137e6dc
PA
109212014-02-07 Pedro Alves <palves@redhat.com>
10922
0dcb32c3 10923 PR breakpoints/16292
d137e6dc
PA
10924 * infrun.c (handle_signal_stop) <signal arrives while stepping
10925 over a breakpoint>: Switch back to the stepping thread.
10926
ce6d0892
YQ
109272014-02-07 Yao Qi <yao@codesourcery.com>
10928
10929 * target.c (target_xfer_partial): Return zero if LEN is zero.
10930
2ed4b548
YQ
109312014-02-07 Yao Qi <yao@codesourcery.com>
10932
10933 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
10934 (ld_so_xfer_auxv): Likewise.
10935 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10936 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10937 * corelow.c (core_xfer_partial): Likewise.
10938 * ctf.c (ctf_xfer_partial): Likewise.
10939 * darwin-nat.c (darwin_read_dyld_info): Likewise.
10940 (darwin_xfer_partial): Likewise.
10941 * exec.c (exec_xfer_partial): Likewise.
10942 * gnu-nat.c (gnu_xfer_partial): Likewise.
10943 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
10944 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10945 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10946 * linux-nat.c (linux_xfer_siginfo): Likewise.
10947 (linux_proc_xfer_spu): Likewise.
10948 * procfs.c (procfs_xfer_partial): Likewise.
10949 * record-full.c (record_full_xfer_partial): Likewise.
10950 (record_full_core_xfer_partial): Likewise.
10951 * remote-sim.c (gdbsim_xfer_partial): Likewise.
10952 * remote.c (remote_write_qxfer): Likewise.
10953 (remote_write_qxfer, remote_read_qxfer): Likewise.
10954 (remote_xfer_partial): Likewise.
10955 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10956 (rs6000_xfer_shared_libraries): Likewise.
10957 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10958 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10959 (spu_xfer_partial): Likewise.
10960 * target.c (memory_xfer_partial_1): Likewise.
10961 * tracepoint.c (tfile_xfer_partial): Likewise.
10962 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
10963 (windows_xfer_partial): Likewise.
10964
c09f20e4
YQ
109652014-02-07 Yao Qi <yao@codesourcery.com>
10966
10967 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
10968 comments.
10969 (core_xfer_shared_libraries_aix): Likewise.
10970 * gdbarch.c, gdbarch.h: Regenerated.
10971 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
10972 ULONGEST. Change 'len_avail' type to ULONGEST.
10973 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
10974 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
10975 declaration.
10976 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
10977
8635b3bf
YQ
109782014-02-07 Yao Qi <yao@codesourcery.com>
10979
10980 * corefile.c (memory_error): Get 'exception' from ERR and pass
10981 'exception' to throw_error.
10982
6dddc817
DE
109832014-02-06 Doug Evans <xdje42@gmail.com>
10984
10985 * configure.ac (libpython checking): Remove all but python.o from
10986 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
10987 * configure: Regenerate.
10988
10989 * Makefile.in (SFILES): Add extension.c.
10990 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
10991 (COMMON_OBS): Add extension.o.
10992 * extension.h: New file.
10993 * extension-priv.h: New file.
10994 * extension.c: New file.
10995
10996 * python/python-internal.h: #include "extension.h".
10997 (gdbpy_auto_load_enabled): Declare.
10998 (gdbpy_apply_val_pretty_printer): Declare.
10999 (gdbpy_apply_frame_filter): Declare.
11000 (gdbpy_preserve_values): Declare.
11001 (gdbpy_breakpoint_cond_says_stop): Declare.
11002 (gdbpy_breakpoint_has_cond): Declare.
11003 (void source_python_script_for_objfile): Delete.
11004 * python/python.c: #include "extension-priv.h".
11005 Delete inclusion of "observer.h".
11006 (extension_language_python): Moved here and renamed from
11007 script_language_python in py-auto-load.c.
11008 Redefined to be of type extension_language_defn.
11009 (python_extension_script_ops): New global.
11010 (python_extension_ops): New global.
11011 (struct python_env): New member previous_active.
11012 (restore_python_env): Call restore_active_ext_lang.
11013 (ensure_python_env): Call set_active_ext_lang.
11014 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
11015 New arg extlang.
11016 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
11017 New arg extlang.
11018 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
11019 New arg extlang.
11020 (gdbpy_eval_from_control_command): Renamed from
11021 eval_python_from_control_command, made static. New arg extlang.
11022 (gdbpy_source_script) Renamed from source_python_script, made static.
11023 New arg extlang.
11024 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
11025 result to int. New arg extlang.
11026 (gdbpy_source_objfile_script): Renamed from
11027 source_python_script_for_objfile, made static. New arg extlang.
11028 (gdbpy_start_type_printers): Renamed from start_type_printers, made
11029 static. New args extlang, extlang_printers. Change result type to
11030 "void".
11031 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
11032 static. New arg extlang. Rename arg printers to extlang_printers
11033 and change type to ext_lang_type_printers *.
11034 (gdbpy_free_type_printers): Renamed from free_type_printers, made
11035 static. Replace argument arg with extlang, extlang_printers.
11036 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
11037 (!HAVE_PYTHON, source_python_script): Delete.
11038 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
11039 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
11040 (!HAVE_PYTHON, start_type_printers): Delete.
11041 (!HAVE_PYTHON, apply_type_printers): Delete.
11042 (!HAVE_PYTHON, free_type_printers): Delete.
11043 (_initialize_python): Delete call to observer_attach_before_prompt.
11044 (finalize_python): Set/restore active extension language.
11045 (gdbpy_finish_initialization) Renamed from
11046 finish_python_initialization, made static. New arg extlang.
11047 (gdbpy_initialized): New function.
11048 * python/python.h: #include "extension.h". Delete #include
11049 "value.h", "mi/mi-cmds.h".
11050 (extension_language_python): Declare.
11051 (GDBPY_AUTO_FILE_NAME): Delete.
11052 (enum py_bt_status): Moved to extension.h and renamed to
11053 ext_lang_bt_status.
11054 (enum frame_filter_flags): Moved to extension.h.
11055 (enum py_frame_args): Moved to extension.h and renamed to
11056 ext_lang_frame_args.
11057 (finish_python_initialization): Delete.
11058 (eval_python_from_control_command): Delete.
11059 (source_python_script): Delete.
11060 (apply_val_pretty_printer): Delete.
11061 (apply_frame_filter): Delete.
11062 (preserve_python_values): Delete.
11063 (gdbpy_script_language_defn): Delete.
11064 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
11065 (start_type_printers, apply_type_printers, free_type_printers): Delete.
11066
11067 * auto-load.c: #include "extension.h".
11068 (GDB_AUTO_FILE_NAME): Delete.
11069 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
11070 (script_language_gdb): Delete, moved to extension.c and renamed to
11071 extension_language_gdb.
11072 (source_gdb_script_for_objfile): Delete.
11073 (auto_load_pspace_info): New member unsupported_script_warning_printed.
11074 (loaded_script): Change type of language member to
11075 struct extension_language_defn *.
11076 (init_loaded_scripts_info): Initialize
11077 unsupported_script_warning_printed.
11078 (maybe_add_script): Make static. Change type of language arg to
11079 struct extension_language_defn *.
11080 (clear_section_scripts): Reset unsupported_script_warning_printed.
11081 (auto_load_objfile_script_1): Rewrite to use extension language API.
11082 (auto_load_objfile_script): Make public. Remove support-compiled-in
11083 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
11084 (source_section_scripts): Rewrite to use extension language API.
11085 (load_auto_scripts_for_objfile): Rewrite to use
11086 auto_load_scripts_for_objfile.
11087 (collect_matching_scripts_data): Change type of language member to
11088 struct extension_language_defn *.
11089 (auto_load_info_scripts): Change type of language arg to
11090 struct extension_language_defn *.
11091 (unsupported_script_warning_print): New function.
11092 (script_not_found_warning_print): Make static.
11093 (_initialize_auto_load): Rewrite construction of scripts-directory
11094 help.
11095 * auto-load.h (struct objfile): Add forward decl.
11096 (struct script_language): Delete.
11097 (struct auto_load_pspace_info): Add forward decl.
11098 (struct extension_language_defn): Add forward decl.
11099 (maybe_add_script): Delete.
11100 (auto_load_objfile_script): Declare.
11101 (script_not_found_warning_print): Delete.
11102 (auto_load_info_scripts): Update prototype.
11103 (auto_load_gdb_scripts_enabled): Declare.
11104 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
11105 auto_load_python_scripts_enabled and made public.
11106 (script_language_python): Delete, moved to python.c.
11107 (gdbpy_script_language_defn): Delete.
11108 (info_auto_load_python_scripts): Update to use
11109 extension_language_python.
11110
11111 * breakpoint.c (condition_command): Replace call to
11112 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
11113 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
11114 with call to breakpoint_ext_lang_cond_says_stop.
11115 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
11116 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
11117 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
11118 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
11119 New arg slang.
11120 (local_setattro): Print name of extension language with existing
11121 stop condition.
11122
11123 * valprint.c (val_print, value_print): Update to call
11124 apply_ext_lang_val_pretty_printer.
11125 * cp-valprint.c (cp_print_value): Update call to
11126 apply_ext_lang_val_pretty_printer.
11127 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
11128 (gdbpy_apply_val_pretty_printer): Renamed from
11129 apply_val_pretty_printer. New arg extlang.
11130 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
11131
11132 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
11133 extension language API.
11134 * cli/cli-script.c (execute_control_command): Update to call
11135 eval_ext_lang_from_control_command.
11136
11137 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
11138 enum ext_lang_bt_status values. Update call to
11139 apply_ext_lang_frame_filter.
11140 (mi_cmd_stack_list_locals): Ditto.
11141 (mi_cmd_stack_list_args): Ditto.
11142 (mi_cmd_stack_list_variables): Ditto.
11143 * mi/mi-main.c: Delete #include "python/python-internal.h".
11144 Add #include "extension.h".
11145 (mi_cmd_list_features): Replace reference to python internal variable
11146 gdb_python_initialized with call to ext_lang_initialized_p.
11147
11148 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
11149 Update to use enum ext_lang_frame_args. Update to call
11150 apply_ext_lang_frame_filter.
11151 * python/py-framefilter.c (extract_sym): Update to use enum
11152 ext_lang_bt_status.
11153 (extract_value, py_print_type, py_print_value): Ditto.
11154 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
11155 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
11156 (py_print_frame): Ditto.
11157 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
11158 New arg extlang. Update to use enum ext_lang_bt_status.
11159
11160 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
11161 finish_python_initialization. Replace with call to
11162 finish_ext_lang_initialization.
11163
11164 * typeprint.c (do_free_global_table): Update to call
11165 free_ext_lang_type_printers.
11166 (create_global_typedef_table): Update to call
11167 start_ext_lang_type_printers.
11168 (find_global_typedef): Update to call apply_ext_lang_type_printers.
11169 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
11170 (type_print_options): Change type of global_printers from "void *"
11171 to "struct ext_lang_type_printers *".
11172
11173 * value.c (preserve_values): Update to call preserve_ext_lang_values.
11174 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
11175 (gdbpy_preserve_values): Renamed from preserve_python_values.
11176 New arg extlang.
11177 (!HAVE_PYTHON, preserve_python_values): Delete.
11178
11179 * utils.c (quit_flag): Delete, moved to extension.c.
11180 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
11181 extension.c.
11182
11183 * eval.c: Delete #include "python/python.h".
11184 * main.c: Delete #include "python/python.h".
11185
11186 * defs.h: Update comment.
11187
6af79985
JB
111882014-02-06 Joel Brobecker <brobecker@adacore.com>
11189
11190 GDB 7.7 released.
11191
12c5175d
MK
111922014-02-05 Mark Kettenis <kettenis@gnu.org>
11193
11194 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
11195 defined.
11196
8dc5b319
YQ
111972014-02-05 Yao Qi <yao@codesourcery.com>
11198
11199 * remote.c (remote_pass_signals): Remove local 'buf' and use
11200 rs->buf.
11201 (remote_program_signals): Likewise.
11202
de7b2893
YQ
112032014-02-05 Yao Qi <yao@codesourcery.com>
11204
11205 * ctf.c: Include "inferior.h" and "gdbthread.h".
11206 (CTF_PID): A new macro.
11207 (ctf_open): Call inferior_appeared and add_thread_silent.
11208 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
11209 (ctf_thread_alive): New function.
11210 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
11211
66d032ac
YQ
112122014-02-05 Yao Qi <yao@codesourcery.com>
11213
11214 Revert this patch:
11215
11216 2013-05-24 Yao Qi <yao@codesourcery.com>
11217
11218 * tracepoint.c (TFILE_PID): Remove.
11219 (tfile_open): Don't add thread and inferior.
11220 (tfile_close): Don't set 'inferior_ptid'. Don't call
11221 exit_inferior_silent.
11222 (tfile_thread_alive): Remove.
11223 (init_tfile_ops): Don't set field 'to_thread_alive' of
11224 tfile_ops.
11225
f4ccffad
CE
112262014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
11227
11228 * remote.c (remote_start_remote): Call remote_check_symbols even
11229 if only symbol-file (not file) has been given.
11230
591a12a1
UW
112312014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11232
11233 * gdbarch.sh (skip_entrypoint): New callback.
11234 * gdbarch.c, gdbarch.h: Regenerate.
11235 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
11236 * infrun.c (fill_in_stop_func): Likewise.
11237 * ppc-linux-tdep.c: Include "elf/ppc64.h".
11238 (ppc_elfv2_elf_make_msymbol_special): New function.
11239 (ppc_elfv2_skip_entrypoint): Likewise.
11240 (ppc_linux_init_abi): Install them for ELFv2.
11241
cc0e89c5
UW
112422014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11243
11244 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
11245 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
11246 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
11247 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
11248 structures returned in GPRs.
11249
52f548e4
UW
112502014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11251
11252 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
11253 offset to the stack parameter list for the ELFv2 ABI.
11254
d4094b6a
UW
112552014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11256
11257 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
11258 set_gdbarch_convert_from_func_ptr_addr and
11259 set_gdbarch_elf_make_msymbol_special for ELFv1.
11260 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
11261 function descriptors on ELFv1.
11262 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
11263 set up r12 at function entry.
11264
cd453cd0
UW
112652014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11266
11267 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
11268 (struct gdbarch_tdep): New member elf_abi.
11269
11270 * rs6000-tdep.c: Include "elf/ppc64.h".
11271 (rs6000_gdbarch_init): Detect ELF ABI version.
11272
0ff3e01f
UW
112732014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11274
11275 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
11276 within a register pair holding a DFP 128-bit value on little-endian.
11277 (ppc64_sysv_abi_return_value_base): Likewise.
11278 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
11279 (dfp_pseudo_register_write): Likewise.
11280
5b757e5d
UW
112812014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11282
11283 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
11284 offset on little-endian when passing _Decimal32.
11285 (ppc64_sysv_abi_return_value_base): Likewise for return values.
11286
084ee545
UW
112872014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11288
11289 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
11290 of the overlapped FP register within the VSX register on little-
11291 endian platforms.
11292 (efpr_pseudo_register_write): Likewise.
11293
d63167af
UW
112942014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11295
11296 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
11297 offset on little-endian when passing small structures.
11298
e765b44c
UW
112992014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11300
11301 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
11302 (struct ppc64_sysv_argpos): New data structure.
11303 (ppc64_sysv_abi_push_float): Remove.
11304 (ppc64_sysv_abi_push_val): New function.
11305 (ppc64_sysv_abi_push_integer): Likewise.
11306 (ppc64_sysv_abi_push_freg): Likewise.
11307 (ppc64_sysv_abi_push_vreg): Likewise.
11308 (ppc64_sysv_abi_push_param): Likewise.
11309 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
11310 (ppc64_sysv_abi_return_value_base): New function.
11311 (ppc64_sysv_abi_return_value): Refactor to use it.
11312
36c24d95
UW
113132014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11314
11315 * NEWS: Document new target powerpc64le-*-linux*.
11316
26fd9228
MK
113172014-02-04 Mark Kettenis <kettenis@gnu.org>
11318
11319 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
11320 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
11321 core dumps.
11322 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
11323 register set used in ELF core dumps. Add floating-point register set.
11324
c5bb7362
KB
113252014-02-03 Kevin Buettner <kevinb@redhat.com>
11326
74228e77 11327 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
c5bb7362
KB
11328 dwarf2_to_gdb[] table using symbolic constants. Adjust
11329 penultimate entry from number representing the PC register
11330 to symbolic constant representing the MDR register. Add
11331 constant for the PC register to the end of the table.
11332
af09351e
MK
113332014-02-03 Mark Kettenis <kettenis@gnu.org>
11334
11335 * bsd-kvm.c: Include <sys/param.h>
11336
8507e05d
MK
113372014-02-03 Mark Kettenis <kettenis@gnu.org>
11338
11339 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
11340
ae56bfb8
JB
113412014-01-31 Joel Brobecker <brobecker@adacore.com>
11342
11343 * ada-lang.h (clear_ada_sym_cache): Delete.
11344
718ee4dc
UW
113452014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
11346
11347 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
11348
401e27fd
JM
113492014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
11350
11351 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
11352 the sigreturn register save area only if the syscall is
11353 sigreturn.
11354
a7c88acd
JB
113552014-01-29 Joel Brobecker <brobecker@adacore.com>
11356
11357 * valops.c (value_slice): Minor reformatting.
11358
fa0079ea
UW
113592014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
11360
11361 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
11362
c6044dd1
JB
113632014-01-28 Joel Brobecker <brobecker@adacore.com>
11364
11365 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
11366 New static globals.
11367 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
11368 (ada_ignore_descriptive_types_p): New static global.
11369 (find_parallel_type_by_descriptive_type): Return immediately
11370 if ada_ignore_descriptive_types_p is set.
11371 (_initialize_ada_language): Register new commands "maintenance
11372 set ada", "maintenance show ada", "maintenance set ada
11373 ignore-descriptive-types" and "maintenance show ada
11374 ignore-descriptive-types".
11375 * NEWS: Add entry for new "maint ada set/show
11376 ignore-descriptive-types" commands.
11377
568e808b
MM
113782014-01-27 Markus Metzger <markus.t.metzger@intel.com>
11379
11380 * record-btrace.c (record_btrace_close): Call btrace_teardown
11381 for all threads.
11382
467d141b
JB
113832014-01-27 Joel Brobecker <brobecker@adacore.com>
11384
11385 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
11386 "ui-out.h".
11387
fb151210
JB
113882014-01-27 Joel Brobecker <brobecker@adacore.com>
11389
11390 * ada-typeprint (type_is_full_subrange_of_target_type):
11391 New function.
11392 (print_range): Add parameter bounds_prefered_p. If not set,
11393 try printing range types using the name of their base type.
11394 (print_range_type): Add parameter bounds_prefered_p.
11395 Use it in call to print_range.
11396 (print_array_type, ada_print_type): Update calls to print_range
11397 and print_range_type.
11398
aba02109
JB
113992014-01-27 Joel Brobecker <brobecker@adacore.com>
11400
11401 * ada-typeprint.c (print_array_type, print_choices, print_range)
11402 (print_range_bound, print_dynamic_range_bound, print_range_type):
11403 Remove declaration.
11404
e62e21fd
JB
114052014-01-27 Joel Brobecker <brobecker@adacore.com>
11406
11407 * ada-typeprint.c (print_range): Add missing empty line
11408 after local declaration.
11409
859cf5d1
JB
114102014-01-27 Joel Brobecker <brobecker@adacore.com>
11411
11412 * ada-valprint.c (print_optional_low_bound): Get index_type's
11413 target type for as long as it is a TYPE_CODE_RANGE.
11414
25790f6f
JB
114152014-01-27 Joel Brobecker <brobecker@adacore.com>
11416
11417 * procfs.c (procfs_make_note_section): Remove assertion and
11418 associated comment.
11419
6b6aa828
YQ
114202014-01-24 Yao Qi <yao@codesourcery.com>
11421
11422 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
11423 * corelow.c (get_core_siginfo): Likewise.
11424
5d6df423
YQ
114252014-01-24 Yao Qi <yao@codesourcery.com>
11426
11427 * remote.c (remote_write_bytes_aux): Change type of 'len' to
11428 ULONGEST. Don't check 'len' is negative.
11429 (remote_write_bytes): Change type of 'len' to ULONGEST.
11430
83b645b8
TT
114312014-01-23 Tom Tromey <tromey@redhat.com>
11432
11433 PR python/16485:
11434 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
11435 Handle exception from frame.block.
11436 (FrameVars.fetch_frame_locals): Likewise.
11437
0740f8d8
TT
114382014-01-23 Tom Tromey <tromey@redhat.com>
11439
11440 PR python/16487:
11441 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
11442 on a NULL pointer. Move "goto error" to correct place.
11443
21909fa1
TT
114442014-01-23 Tom Tromey <tromey@redhat.com>
11445
11446 PR python/16491:
11447 * python/py-framefilter.c (apply_frame_filter): Call
11448 ensure_python_env after computing gdbarch.
11449
17fde6d0
YQ
114502014-01-23 Yao Qi <yao@codesourcery.com>
11451
11452 * target.c (raw_memory_xfer_partial): Change argument type
11453 from void * to gdb_byte *.
11454 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
11455
87ce2a04
DE
114562014-01-22 Doug Evans <dje@google.com>
11457
11458 New gdbserver option --debug-format=timestamp.
11459 * NEWS: Mention it.
11460
237b092b
AA
114612014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
11462
11463 * syscalls/s390x-linux.xml: New file.
11464 * syscalls/s390-linux.xml: New file.
11465 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
11466 (XML_SYSCALL_FILENAME_S390X): Likewise.
11467 (op_svc): New enum value for SVC opcode.
11468 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
11469 (s390_linux_get_syscall_number): New function.
11470 (s390_gdbarch_init): Register '*get_syscall_number' and the
11471 syscall xml file name.
11472 * data-directory/Makefile.in (SYSCALLS_FILES): Add
11473 "s390-linux.xml" and "s390x-linux.xml".
11474 * NEWS: Announce new feature.
11475
54bff650
BS
114762014-01-22 Baruch Siach <baruch@tkos.co.il>
11477
11478 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
11479
14e361d7
PA
114802014-01-22 Pedro Alves <palves@redhat.com>
11481
11482 * xtensa-config.c: Include defs.h.
11483
46bbb3ed
JB
114842014-01-22 Joel Brobecker <brobecker@adacore.com>
11485
11486 * common/common-utils.h: Add "ARI:" comment beside __func__
11487 reference.
11488
3a80edfc
JB
114892014-01-22 Joel Brobecker <brobecker@adacore.com>
11490
11491 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
11492 documentation a bit.
11493
4869db5e
RM
114942014-01-21 Roland McGrath <mcgrathr@google.com>
11495
11496 * configure.ac: Call AM_PROG_INSTALL_STRIP.
11497 * configure: Regenerate.
11498 * aclocal.m4: Regenerate.
11499 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
11500 New substituted variables.
11501 (install-strip): New target.
11502 (INSTALL_SCRIPT): New substituted variable.
11503 (FLAGS_TO_PASS): Add it.
11504 (install-only): Use $(INSTALL_SCRIPT) rather than
11505 $(INSTALL_PROGRAM) for gcore.
11506
9ea4267d
TT
115072014-01-20 Tom Tromey <tromey@redhat.com>
11508
11509 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
11510 together.
11511
1f2bdf09
TT
115122014-01-20 Tom Tromey <tromey@redhat.com>
11513
11514 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
11515 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
11516 (deprecated_cmd_warning, complete_on_cmdlist): Update.
11517 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
11518 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
11519 (struct cmd_list_element) <flags>: Remove.
11520 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
11521 doc_allocated>: New fields.
11522 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
11523 bitfields.
11524 * maint.c (maintenance_do_deprecate): Update.
11525 * top.c (execute_command): Update.
11526
e671835b
BS
115272014-01-20 Baruch Siach <baruch@tkos.co.il>
11528
11529 * xtensa-linux-nat.c: Include asm/ptrace.h.
11530
50367cd2
IB
115312014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11532
11533 * Makefile.in (SFILES): Add d-support.c.
11534 (COMMON_OBS): Add d-support.o.
11535 * d-lang.h (d_parse_symbol): Add comment, now defined in
11536 d-support.c.
11537 * d-lang.c (parse_call_convention)
11538 (parse_attributes, parse_function_types)
11539 (parse_function_args, parse_type, parse_identifier)
11540 (call_convention_p, d_parse_symbol): Move functions to ...
11541 * d-support.c: ... New file.
11542
ec9f644a
IB
115432014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11544
11545 * d-lang.h (d_parse_symbol): Add declaration.
11546 * d-lang.c (extract_identifiers)
11547 (extract_type_info): Remove functions.
11548 (parse_call_convention, parse_attributes)
11549 (parse_function_types, parse_function_args)
11550 (parse_type, parse_identifier, call_convention_p)
11551 (d_parse_symbol): New functions.
11552 (d_demangle): Use d_parse_symbol to demangle D symbols.
11553
94b1b47e
IB
115542014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11555
11556 * d-lang.h (struct builtin_d_type): New data type.
11557 (builtin_d_type): Add declaration.
11558 * d-lang.c (d_language_arch_info, build_d_types)
11559 (builtin_d_type): New functions.
11560 (enum d_primitive_types): New data type.
11561 (d_language_defn): Change c_language_arch_info to
11562 d_language_arch_info.
11563 (d_type_data): New static variable.
11564 (_initialize_d_language): Initialize d_type_data.
11565
63778547
IB
115662014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11567
11568 * d-lang.h (d_main_name): Add declaration.
11569 * d-lang.c (d_main_name): New function.
11570 * symtab.c (find_main_name): Add call to d_main_name.
11571
3271ba66
IB
115722014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11573
11574 * d-lang.c (d_language_defn): Change macro_expansion_c to
11575 macro_expansion_no.
11576
d36b3012
IB
115772014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11578
11579 * MAINTAINERS: Add myself as a write-after-approval maintainer.
11580
c90a6fb7
SDJ
115812014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
11582
11583 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
11584 gdb_exception" declaration.
11585 * remote.c (getpkt_or_notif_sane): Likewise.
11586
749234e5
DE
115872014-01-17 Doug Evans <dje@google.com>
11588
11589 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
11590 function, contents of dirnames_to_char_ptr_vec_append moved here.
11591 (delim_string_to_char_ptr_vec): New function.
11592 (dirnames_to_char_ptr_vec_append): Rewrite.
11593 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
11594
df049a58
DE
115952014-01-17 Doug Evans <dje@google.com>
11596
11597 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
11598 and moved here ...
11599 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
11600 #include "common-utils.h".
11601 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
11602 * common/vec.h (VEC_ASSERT_PASS): Update.
11603 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
11604 (MACH_CHECK_ERROR): Update.
11605
69f97648
SM
116062014-01-17 Simon Marchi <simon.marchi@ericsson.com>
11607
11608 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
11609 comments.
11610 * gdbarch.h: Regenerate.
11611
98b1cfdc
TT
116122014-01-16 Tom Tromey <tromey@redhat.com>
11613
11614 * value.c (struct value) <regnum>: Move earlier.
11615
77a19445
TT
116162014-01-16 Tom Tromey <tromey@redhat.com>
11617
11618 * remote.c (extended_remote_create_inferior): Rename from
11619 extended_remote_create_inferior_1. Add "ops" argument. Remove
11620 old implementation.
11621
62261490
PA
116222014-01-16 Pedro Alves <palves@redhat.com>
11623
11624 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
11625 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
11626 the backchain.
11627
4d65956b
DE
116282014-01-16 Doug Evans <dje@google.com>
11629
11630 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
11631
52834460
MM
116322014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11633
11634 * btrace.h (btrace_thread_flag): New.
11635 (struct btrace_thread_info) <flags>: New.
11636 * record-btrace.c (record_btrace_resume_thread)
11637 (record_btrace_find_thread_to_move, btrace_step_no_history)
11638 (btrace_step_stopped, record_btrace_start_replaying)
11639 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
11640 (record_btrace_find_resume_thread): New.
11641 (record_btrace_resume, record_btrace_wait): Extend.
11642 (record_btrace_can_execute_reverse): New.
11643 (record_btrace_open): Fail in non-stop mode.
11644 (record_btrace_set_replay): Split into this, ...
11645 (record_btrace_stop_replaying): ... this, ...
11646 (record_btrace_clear_histories): ... and this.
11647 (init_record_btrace_ops): Init to_can_execute_reverse.
11648 * NEWS: Announce it.
11649
118e6252
MM
116502014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11651
11652 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
11653 (forward_target_decr_pc_after_break)
11654 (target_decr_pc_after_break): New.
11655 * target.c (forward_target_decr_pc_after_break)
11656 (target_decr_pc_after_break): New.
11657 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
11658 instead of gdbarch_decr_pc_after_break.
11659 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11660 instead of gdbarch_decr_pc_after_break.
11661 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
11662 instead of gdbarch_decr_pc_after_break.
11663 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11664 instead of gdbarch_decr_pc_after_break.
11665 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
11666 instead of gdbarch_decr_pc_after_break.
11667 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
11668 instead of gdbarch_decr_pc_after_break.
11669
6e07b1d2
MM
116702014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11671
11672 * btrace.c: Include regcache.h.
11673 (btrace_add_pc): New.
11674 (btrace_enable): Call btrace_add_pc.
11675 (btrace_is_empty): New.
11676 * btrace.h (btrace_is_empty): New.
11677 * record-btrace.c (require_btrace, record_btrace_info): Call
11678 btrace_is_empty.
11679
969c39fb
MM
116802014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11681
11682 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
11683 Support delta reads.
11684 (linux_disable_btrace): Change return type.
11685 * common/linux-btrace.h (linux_read_btrace): Change parameters
11686 and return type to allow error reporting. Update users.
11687 (linux_disable_btrace): Change return type. Update users.
11688 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
11689 New.
11690 (btrace_error): New.
11691 (btrace_block) <begin>: Comment on BEGIN == 0.
11692 * btrace.c (btrace_compute_ftrace): Start from the end of
11693 the current trace.
11694 (btrace_stitch_trace, btrace_clear_history): New.
11695 (btrace_fetch): Read delta trace, return if replaying.
11696 (btrace_clear): Move clear history code to btrace_clear_history.
11697 (parse_xml_btrace): Throw an error if parsing failed.
11698 * target.h (struct target_ops) <to_read_btrace>: Change parameters
11699 and return type to allow error reporting.
11700 (target_read_btrace): Change parameters and return type to allow
11701 error reporting.
11702 * target.c (target_read_btrace): Update.
11703 * remote.c (remote_read_btrace): Support delta reads. Pass
11704 errors on.
11705 * NEWS: Announce it.
11706
0b722aec
MM
117072014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11708
11709 * record.h (record_btrace_frame_unwind)
11710 (record_btrace_tailcall_frame_unwind): New declarations.
11711 * dwarf2-frame: Include record.h
11712 (dwarf2_frame_cfa): Throw an error for btrace frames.
11713 * record-btrace.c: Include hashtab.h.
11714 (btrace_get_bfun_name): New.
11715 (btrace_call_history): Call btrace_get_bfun_name.
11716 (struct btrace_frame_cache): New.
11717 (bfcache): New.
11718 (bfcache_hash, bfcache_eq, bfcache_new): New.
11719 (btrace_get_frame_function): New.
11720 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
11721 (record_btrace_frame_this_id): Compute own id.
11722 (record_btrace_frame_prev_register): Provide PC, throw_error
11723 for all other registers.
11724 (record_btrace_frame_sniffer): Detect btrace frames.
11725 (record_btrace_tailcall_frame_sniffer): New.
11726 (record_btrace_frame_dealloc_cache): New.
11727 (record_btrace_frame_unwind): Add new functions.
11728 (record_btrace_tailcall_frame_unwind): New.
11729 (_initialize_record_btrace): Allocate cache.
11730 * btrace.c (btrace_clear): Call reinit_frame_cache.
11731 * NEWS: Announce it.
11732
066ce621
MM
117332014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11734
11735 * record-btrace.c (record_btrace_set_replay)
11736 (record_btrace_goto_begin, record_btrace_goto_end)
11737 (record_btrace_goto): New.
11738 (init_record_btrace_ops): Initialize them.
11739 * NEWS: Announce it.
11740
e2887aa3
MM
117412014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11742
11743 * record-btrace.c (record_btrace_find_new_threads)
11744 (record_btrace_thread_alive): New.
11745 (init_record_btrace_ops): Initialize to_find_new_threads and
11746 to_thread_alive.
11747
b2f4cfde
MM
117482014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11749
11750 * record-btrace.c (record_btrace_resume): New.
11751 (record_btrace_wait): New.
11752 (init_record_btrace_ops): Initialize to_wait and to_resume.
11753
633785ff
MM
117542014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11755
11756 * record-btrace.c (record_btrace_xfer_partial)
11757 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
11758 (record_btrace_allow_memory_access): New.
11759 (init_record_btrace_ops): Initialize new methods.
11760 * target.c (raw_memory_xfer_partial): Bail out if target reports
11761 that this memory is not available.
11762
3db08215
MM
117632014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11764
11765 * target.h (target_ops) <to_insert_breakpoint>
11766 <to_remove_breakpoint>: Add target_ops parameter.
11767 (forward_target_insert_breakpoint): New.
11768 (forward_target_remove_breakpoint): New.
11769 (memory_remove_breakpoint, memory_insert_breakpoint):
11770 Add target_ops parameter.
11771 * target.c (target_insert_breakpoint): Split into this and ...
11772 (forward_target_insert_breakpoint): ... this.
11773 (target_remove_breakpoint): Split into this and ...
11774 (forward_target_remove_breakpoint): ... this.
11775 (debug_to_insert_breakpoint): Add target_ops parameter.
11776 Call forward_target_insert_breakpoint.
11777 (debug_to_remove_breakpoint): Add target_ops parameter.
11778 Call forward_target_remove_breakpoint.
11779 (update_current_target): Do not inherit or default to_insert_breakpoint
11780 and to_remove_breakpoint.
11781 * corelow.c (ignore): Add target_ops parameter.
11782 * exec.c (ignore): Add target_ops parameter.
11783 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
11784 Add target_ops parameter.
11785 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
11786 Add target_ops parameter.
11787 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
11788 Add target_ops parameter.
11789 * record-full.c (record_full_beneath_to_insert_breakpoint)
11790 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
11791 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
11792 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
11793 (record_full_core_remove_breakpoint): Add target_ops parameter.
11794 Update users.
11795 (record_full_beneath_to_insert_breakpoint_ops)
11796 (record_full_beneath_to_remove_breakpoint_ops)
11797 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
11798 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
11799 tmp_to_remove_breakpoint_ops,
11800 record_full_beneath_to_insert_breakpoint_ops, and
11801 record_full_beneath_to_remove_breakpoint_ops.
11802 * remote-m32r-sdi.c (m32r_insert_breakpoint)
11803 (m32r_remove_breakpoint): Add target_ops parameter.
11804 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
11805 Add target_ops parameter.
11806 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
11807 Add target_ops parameter.
11808
cecac1ab
MM
118092014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11810 Markus Metzger <markus.t.metzger@intel.com>
11811
11812 * record-btrace.c: Include frame-unwind.h.
11813 (record_btrace_frame_unwind_stop_reason)
11814 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
11815 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
11816 New.
11817 (init_record_btrace_ops): Install it.
11818
824344ca
MM
118192014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11820
11821 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
11822 get_prev_frame_1.
11823
32261e52
MM
118242014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11825
11826 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
11827 earlier.
11828
ea001bdc
MM
118292014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11830
11831 * frame-unwind.c: Include target.h.
11832 (frame_unwind_try_unwinder): New function with code from ...
11833 (frame_unwind_find_by_frame): ... here. New variable
11834 unwinder_from_target, call also target_get_unwinder)
11835 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
11836 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
11837 * target.h (struct target_ops): New fields to_get_unwinder and
11838 to_get_tailcall_unwinder.
11839 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
11840
1f3ef581
MM
118412014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11842
11843 * record-btrace.c (record_btrace_fetch_registers)
11844 (record_btrace_store_registers)
11845 (record_btrace_to_prepare_to_store): New.
11846 (init_record_btrace_ops): Add the above.
11847
f32dbf8c
MM
118482014-01-16 Tom Tromey <tromey@redhat.com>
11849
11850 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
11851 * target.h (struct target_ops) <to_prepare_to_store>: Add
11852 argument.
11853 (target_prepare_to_store): Add argument.
11854 * target.c (debug_to_prepare_to_store): Add argument.
11855 (update_current_target): Update.
11856 * remote.c (remote_prepare_to_store): Add 'self' argument.
11857 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
11858 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
11859 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
11860 * record-full.c (record_full_core_prepare_to_store): Add 'self'
11861 argument.
11862 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
11863 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
11864 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
11865 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
11866 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
11867
07bbe694
MM
118682014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11869
11870 * btrace.h (replay) <replay>: New.
11871 (btrace_is_replaying): New.
11872 * btrace.c (btrace_clear): Free replay iterator.
11873 (btrace_is_replaying): New.
11874 * record-btrace.c (record_btrace_is_replaying): New.
11875 (record_btrace_info): Print insn number if replaying.
11876 (record_btrace_insn_history): Start at replay position.
11877 (record_btrace_call_history): Start at replay position.
11878 (init_record_btrace_ops): Init to_record_is_replaying.
11879
0688d04e
MM
118802014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11881
11882 * record-btrace.c (record_btrace_insn_history_range): Include
11883 end.
11884 (record_btrace_insn_history_from): Adjust range.
11885 (record_btrace_call_history_range): Include
11886 end.
11887 (record_btrace_call_history_from): Adjust range.
11888 * NEWS: Announce changes.
11889
8710b709
MM
118902014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11891
11892 * record.h (enum record_print_flag)
11893 <record_print_indent_calls>: New.
11894 * record.c (get_call_history_modifiers): Recognize /c modifier.
11895 (_initialize_record): Document /c modifier.
11896 * record-btrace.c (btrace_call_history): Add btinfo parameter.
11897 Reorder fields. Optionally indent the function name. Update
11898 all users.
11899 * NEWS: Announce changes.
11900
d0fa7535
MM
119012014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11902
11903 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
11904
5de9129b
MM
119052014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11906
11907 * btrace.c (ftrace_new_function): Start counting at one.
11908 * record-btrace.c (record_btrace_info): Adjust number of calls
11909 and insns.
11910 * NEWS: Announce it.
11911
7acbe133
MM
119122014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11913
11914 * record-btrace.c (btrace_call_history_insn_range): Print
11915 insn range as [begin, end].
11916
23a7fe75
MM
119172014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11918
11919 * btrace.h (struct btrace_func_link): New.
11920 (enum btrace_function_flag): New.
11921 (struct btrace_inst): Rename to ...
11922 (struct btrace_insn): ...this. Update all users.
11923 (struct btrace_func) <ibegin, iend>: Remove.
11924 (struct btrace_func_link): New.
11925 (struct btrace_func): Rename to ...
11926 (struct btrace_function): ...this. Update all users.
11927 (struct btrace_function) <segment, flow, up, insn, insn_offset)
11928 (number, level, flags>: New.
11929 (struct btrace_insn_iterator): Rename to ...
11930 (struct btrace_insn_history): ...this.
11931 Update all users.
11932 (struct btrace_insn_iterator, btrace_call_iterator): New.
11933 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
11934 (struct btrace_target_info) <begin, end, level>
11935 <insn_history, call_history>: New.
11936 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11937 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11938 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11939 (btrace_call_number, btrace_call_begin, btrace_call_end)
11940 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11941 (btrace_find_function_by_number, btrace_set_insn_history)
11942 (btrace_set_call_history): New.
11943 * btrace.c (btrace_init_insn_iterator)
11944 (btrace_init_func_iterator, compute_itrace): Remove.
11945 (ftrace_print_function_name, ftrace_print_filename)
11946 (ftrace_skip_file): Change
11947 parameter to const.
11948 (ftrace_init_func): Remove.
11949 (ftrace_debug): Use new btrace_function fields.
11950 (ftrace_function_switched): Also consider gaining and
11951 losing symbol information).
11952 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
11953 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
11954 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
11955 New.
11956 (ftrace_new_function): Move. Remove debug print.
11957 (ftrace_update_lines, ftrace_update_insns): New.
11958 (ftrace_update_function): Check for call, ret, and jump.
11959 (compute_ftrace): Renamed to ...
11960 (btrace_compute_ftrace): ...this. Rewritten to compute call
11961 stack.
11962 (btrace_fetch, btrace_clear): Updated.
11963 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11964 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11965 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11966 (btrace_call_number, btrace_call_begin, btrace_call_end)
11967 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11968 (btrace_find_function_by_number, btrace_set_insn_history)
11969 (btrace_set_call_history): New.
11970 * record-btrace.c (require_btrace): Use new btrace thread
11971 info fields.
11972 (record_btrace_info, btrace_insn_history)
11973 (record_btrace_insn_history, record_btrace_insn_history_range):
11974 Use new btrace thread info fields and new iterator.
11975 (btrace_func_history_src_line): Rename to ...
11976 (btrace_call_history_src_line): ...this. Use new btrace
11977 thread info fields.
11978 (btrace_func_history): Rename to ...
11979 (btrace_call_history): ...this. Use new btrace thread info
11980 fields and new iterator.
11981 (record_btrace_call_history, record_btrace_call_history_range):
11982 Use new btrace thread info fields and new iterator.
11983
8372a7cb
MM
119842014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11985
11986 * frame.h (frame_id_build_unavailable_stack_special): New.
11987 * frame.c (frame_id_build_unavailable_stack_special): New.
11988
c2170eef
MM
119892014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11990
11991 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
11992 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
11993 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
11994 to gdbarch.
11995 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
11996 (i386_insn_is_jump, i386_jmp_p): New.
11997 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
11998 insn_is_jump to gdbarch.
11999 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
12000 * gdbarch.h: Regenerated.
12001 * gdbarch.c: Regenerated.
12002 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
12003 (default_insn_is_jump): New.
12004 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
12005 (default_insn_is_jump): New.
12006
864089d2
MM
120072014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12008
12009 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
12010 Change to ...
12011 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
12012 (btrace_read_type) <btrace_read_new>: Change to ...
12013 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
12014
ed9edfb5
MM
120152014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12016
12017 * common/linux-btrace.c (linux_read_btrace): Free trace from
12018 previous iteration.
12019
fbcbc3fd
DE
120202014-01-15 Doug Evans <dje@google.com>
12021
12022 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
12023 uint32_t.
12024
3d548a53
TT
120252014-01-15 Tom Tromey <tromey@redhat.com>
12026
12027 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
12028 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
12029 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
12030 (set_objfile_main_name): New function.
12031 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
12032 language_of_main>: New fields.
12033 (set_objfile_main_name): Declare.
12034 * symtab.c (find_main_name): Loop over objfiles to find the main
12035 name and language.
12036 (set_main_name): Now static.
12037 (get_main_info): Add comment.
12038 * symtab.h (set_main_name): Don't declare.
12039
32ac0d11
TT
120402014-01-15 Tom Tromey <tromey@redhat.com>
12041
12042 * symtab.c (main_progspace_key): New global.
12043 (struct main_info): New.
12044 (name_of_main, language_of_main): Remove.
12045 (get_main_info, main_info_cleanup): New function.
12046 (set_main_name, main_name, main_language): Use get_main_info.
12047 (_initialize_symtab): Initialize main_progspace_key.
12048
9e6c82ad
TT
120492014-01-15 Tom Tromey <tromey@redhat.com>
12050
12051 * dbxread.c (process_one_symbol): Update.
12052 * dwarf2read.c (read_partial_die): Update.
12053 * symfile.c (set_initial_language): Call main_language.
12054 * symtab.c (language_of_main): Now static.
12055 (set_main_name): Add 'lang' parameter.
12056 (find_main_name): Update.
12057 (main_language): New function.
12058 (symtab_observer_executable_changed): Update.
12059 * symtab.h (set_main_name): Update.
12060 (language_of_main): Remove.
12061 (main_language): Declare.
12062
6ef55de7
TT
120632014-01-15 Tom Tromey <tromey@redhat.com>
12064
12065 * symfile.c (init_entry_point_info): Use new "initialized" field.
12066 Update.
12067 * objfiles.h (struct entry_point) <initialized>: New field.
12068 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
12069 (struct objfile) <ei>: ...here. Remove.
12070 * objfiles.c (entry_point_address_query): Update.
12071
53eddfa6
TT
120722014-01-15 Tom Tromey <tromey@redhat.com>
12073
12074 * objfiles.c (entry_point_address_query): Relocate entry point
12075 address.
12076 (objfile_relocate1): Do not relocate entry point address.
12077 * objfiles.h (struct entry_info) <entry_point>: Update comment.
12078 <the_bfd_section_index>: New field.
12079 * symfile.c (init_entry_point_info): Find the entry point's
12080 section.
12081
d56e56aa
TT
120822014-01-15 Tom Tromey <tromey@redhat.com>
12083
12084 * solib-frv.c (enable_break): Use entry_point_address_query.
12085
33a97bbe
OJ
120862014-01-15 Omair Javaid <omair.javaid@linaro.org>
12087
12088 * NEWS: Add note on improved process record-replay on
12089 arm*-linux* targets.
12090
c6ec2b30
OJ
120912014-01-15 Omair Javaid <omair.javaid@linaro.org>
12092
12093 * arm-tdep.c (enum arm_record_result): New enum.
12094 (arm_record_unsupported_insn): New function.
12095 (arm_record_coproc_data_proc): Removed.
12096 (thumb2_record_ld_st_multiple): New function.
12097 (thumb2_record_ld_st_dual_ex_tbb): New function.
12098 (thumb2_record_data_proc_sreg_mimm): New function.
12099 (thumb2_record_ps_dest_generic): New function.
12100 (thumb2_record_branch_misc_cntrl): New function.
12101 (thumb2_record_str_single_data): New function.
12102 (thumb2_record_ld_mem_hints): New function.
12103 (thumb2_record_ld_word): New function.
12104 (thumb2_record_lmul_lmla_div): New function.
12105 (thumb2_record_decode_insn_handler): New function.
12106 (decode_insn): Add thumb32 instruction handlers.
12107
97dfe206
OJ
121082014-01-15 Omair Javaid <omair.javaid@linaro.org>
12109
12110 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
12111 (struct arm_linux_record_tdep): Declare.
12112 (arm_canonicalize_syscall): New function.
12113 (arm_all_but_pc_registers_record): New function.
12114 (arm_linux_syscall_record): New function.
12115 (arm_linux_init_abi): Add syscall recording constructs.
12116 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
12117 decoding. (arm_record_coproc_data_proc): Update arm syscall
12118 decoding.
12119 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
12120 <arm_syscall_record>: New field.
12121 * configure.tgt (arm*-*-linux*): Add linux-record.o to
12122 gdb_target_obs.
12123
9904a494
OJ
121242014-01-15 Omair Javaid <omair.javaid@linaro.org>
12125
12126 * arm-tdep.c (thumb_record_misc): Update to use sp as base
12127 register for push instruction recording.
12128
f969241e
OJ
121292014-01-15 Omair Javaid <omair.javaid@linaro.org>
12130
12131 * arm-tdep.c (thumb_record_misc): Update to correct logical
12132 error while recording ldm, ldmia and pop instructions.
12133
bfbbec00
OJ
121342014-01-15 Omair Javaid <omair.javaid@linaro.org>
12135
12136 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
12137
e40adcc9
PA
121382014-01-15 Pedro Alves <palves@redhat.com>
12139
12140 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
12141 (go32_resume, go32_fetch_registers, store_register)
12142 (go32_store_registers, go32_prepare_to_store)
12143 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
12144 (go32_create_inferior, go32_can_run, go32_terminal_init)
12145 (go32_terminal_inferior, go32_terminal_ours): Delete forward
12146 declarations.
12147
b0a16e66
TT
121482014-01-15 Tom Tromey <tromey@redhat.com>
12149
12150 * target.h (async_callback_ftype): New typedef.
12151 (struct target_ops) <to_async>: Use it.
12152
bf7105a4
JB
121532014-01-15 Joel Brobecker <brobecker@adacore.com>
12154
12155 * python/py-value.c (get_field_type): Remove unnecessary curly
12156 braces for single-statement if block.
12157
a8f35c2e
JB
121582014-01-15 Joel Brobecker <brobecker@adacore.com>
12159
12160 * python/py-type.c (convert_field): Add missing empty line
12161 after declarations.
12162
bb4142cf
DE
121632014-01-14 Doug Evans <dje@google.com>
12164
12165 * symfile.h (expand_symtabs_matching): Renamed from
12166 expand_partial_symbol_names. Update prototype.
12167 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
12168 * symfile.c (expand_symtabs_matching): Renamed from
12169 expand_partial_symbol_names. New args file_matcher, kind.
12170 Rename arg fun to symbol_matcher.
12171 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
12172 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
12173 ada_expand_partial_symbol_name.
12174 (ada_make_symbol_completion_list): Update to call
12175 expand_symtabs_matching.
12176 (ada_add_global_exceptions): Call expand_symtabs_matching.
12177 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
12178 call map_symbol_filenames.
12179 * symtab.c (sources_info): Update to call map_symbol_filenames.
12180 (search_symbols): Call expand_symtabs_matching.
12181 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
12182 (default_make_symbol_completion_list_break_on): Update to call
12183 expand_symtabs_matching.
12184 (make_source_files_completion_list): Update to call
12185 map_symbol_filenames.
12186
206f2a57
DE
121872014-01-14 Doug Evans <dje@google.com>
12188
12189 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
12190 (expand_symtabs_symbol_matcher_ftype): New typedef.
12191 (quick_symbol_functions.expand_symtabs_matching): Update to use.
12192 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12193 * symfile.c (expand_partial_symbol_names): Update to use
12194 expand_symtabs_symbol_matcher_ftype.
12195 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
12196 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12197 Arg name_matcher renamed to symbol_matcher.
12198 * psymtab.c (recursively_search_psymtabs): Update to use
12199 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
12200 sym_matcher.
12201 (expand_symtabs_matching_via_partial): Update to use
12202 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12203 Arg name_matcher renamed to symbol_matcher.
12204
540c2971
DE
122052014-01-14 Doug Evans <dje@google.com>
12206
12207 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
12208 (map_partial_symbol_filenames): Ditto.
12209 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
12210 (map_partial_symbol_filenames): Ditto.
12211 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
12212 (map_partial_symbol_filenames): Ditto.
12213 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
12214 (map_partial_symbol_filenames): Ditto.
12215 * symtab.c: Delete #include "psymtab.h".
12216
8213266a
PA
122172014-01-14 Pedro Alves <palves@redhat.com>
12218 Tom Tromey <tromey@redhat.com>
12219
12220 * infrun.c (use_displaced_stepping): Use find_record_target
12221 instead of RECORD_IS_USED.
12222 (adjust_pc_after_break): Use record_full_is_used instead of
12223 RECORD_IS_USED.
12224 * record-btrace.c (record_btrace_open): Call record_preopen
12225 instead of checking RECORD_IS_USED.
12226 * record-full.c (record_full_shortname)
12227 (record_full_core_shortname): New globals.
12228 (record_full_is_used): New function.
12229 (find_full_open): Call record_preopen instead of checking
12230 RECORD_IS_USED.
12231 (init_record_full_ops): Set the target's shortname to
12232 record_full_shortname.
12233 (init_record_full_core_ops): Set the target's shortname to
12234 record_full_core_shortname.
12235 * record-full.h (record_full_is_used): Declare.
12236 * record.c (find_record_target): Make extern.
12237 (record_preopen): New function.
12238 * record.h (RECORD_IS_USED): Delete macro.
12239 (find_record_target, record_preopen): Declare functions.
12240
7ec1862d
YQ
122412014-01-14 Yao Qi <yao@codesourcery.com>
12242
12243 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
12244 'len''s type to ULONGEST.
12245 (core_xfer_shared_libraries_aix): Likewise.
12246 * gdbarch.c, gdbarch.h: Regenerated.
12247 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
12248 Change type of 'len' to ULONGEST.
12249 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12250 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
12251
dea80a27
YQ
122522014-01-14 Yao Qi <yao@codesourcery.com>
12253
12254 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
12255 type of 'len' to ULONGEST.
12256 (linux_xfer_osdata_processgroups): Likewise.
12257 (linux_xfer_osdata_threads): Likewise.
12258 (linux_xfer_osdata_fds): Likewise.
12259 (linux_xfer_osdata_isockets): Likewise.
12260 (linux_xfer_osdata_shm): Likewise.
12261 (linux_xfer_osdata_sem): Likewise.
12262 (linux_xfer_osdata_msg): Likewise.
12263 (linux_common_xfer_osdata): Likewise.
12264 (struct osdata_type) <getter>: Likewise.
12265 * common/linux-osdata.h (linux_common_xfer_osdata): Update
12266 the declaration.
12267
b55e14c7
YQ
122682014-01-14 Yao Qi <yao@codesourcery.com>
12269
12270 * target.h (target_xfer_partial_ftype): Update.
12271 (struct target_ops) <to_xfer_partial>: Change 'len' type to
12272 ULONGEST.
12273 * aix-thread.c (aix_thread_xfer_partial): Change type of
12274 argument 'len' to ULONGEST.
12275 * auxv.c (procfs_xfer_auxv): Likewise.
12276 (ld_so_xfer_auxv): Likewise.
12277 (memory_xfer_auxv): Likewise.
12278 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12279 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12280 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
12281 * corelow.c (core_xfer_partial): Likewise.
12282 * ctf.c (ctf_xfer_partial): Likewise.
12283 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
12284 '%u'.
12285 (darwin_read_dyld_info): Likewise.
12286 (darwin_xfer_partial): Likewise.
12287 * exec.c (section_table_xfer_memory_partial): Likewise.
12288 (exec_xfer_partial): Likewise.
12289 * exec.h (section_table_xfer_memory_partial): Update
12290 declaration.
12291 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
12292 instead of plongest.
12293 (gnu_xfer_partial): Likewise.
12294 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
12295 (ia64_hpux_xfer_solib_got): Likewise.
12296 (ia64_hpux_xfer_partial): Likewise.
12297 * ia64-linux-nat.c (ia64_linux_xfer_partial):
12298 * inf-ptrace.c (inf_ptrace_xfer_partial):
12299 * inf-ttrace.c (inf_ttrace_xfer_partial):
12300 * linux-nat.c (linux_xfer_siginfo): Likewise.
12301 (linux_nat_xfer_partial): Likewise.
12302 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
12303 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
12304 * monitor.c (monitor_xfer_memory): Likewise.
12305 (monitor_xfer_partial): Likewise.
12306 * procfs.c (procfs_xfer_partial): Likewise.
12307 * record-full.c (record_full_xfer_partial): Likewise.
12308 (record_full_core_xfer_partial): Likewise.
12309 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
12310 instead of plongest.
12311 (gdbsim_xfer_partial): Likewise.
12312 * remote.c (remote_xfer_partial): Likewise.
12313 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12314 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12315 declaration.
12316 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12317 (rs6000_xfer_shared_libraries): Likewise.
12318 * sol-thread.c (sol_thread_xfer_partial): Likewise.
12319 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12320 (sparc_xfer_partial): Likewise.
12321 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12322 (spu_xfer_partial): Likewise.
12323 * spu-multiarch.c (spu_xfer_partial): Likewise.
12324 * target.c (target_read_live_memory): Likewise.
12325 (memory_xfer_live_readonly_partial): Likewise.
12326 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
12327 (target_xfer_partial, default_xfer_partial): Likewise.
12328 (current_xfer_partial): Likewise.
12329 * tracepoint.c (tfile_xfer_partial): Likewise.
12330 * windows-nat.c (windows_xfer_memory): Likewise. Call
12331 pulongest instead of plongest.
12332 (windows_xfer_partial): Likewise.
12333 (windows_xfer_shared_libraries): Likewise.
12334
05804640
YQ
123352014-01-14 Yao Qi <yao@codesourcery.com>
12336
12337 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
12338 target_xfer_partial_ftype.
12339
b5b08fb4
SC
123402014-01-13 Siva Chandra Reddy <sivachandra@google.com>
12341
12342 PR python/15464
12343 PR python/16113
12344 * valops.c (value_struct_elt_bitpos): New function
12345 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
12346 object to 'None' if the field name is an empty string ("").
12347 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
12348 attribute to look for a field when 'name' is 'None'.
12349 (get_field_type): New function
12350
13aaf454
DE
123512014-01-13 Doug Evans <dje@google.com>
12352
12353 PR symtab/16426
12354 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
12355 (try_open_dwop_file): Ditto.
12356 * gdb_bfd.c: #include "vec.h".
12357 (bfdp): New typedef.
12358 (struct gdb_bfd_data): New member included_bfds.
12359 (gdb_bfd_unref): Unref all included bfds.
12360 (gdb_bfd_record_inclusion): New function.
12361 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
12362
c2cec97c
TT
123632014-01-13 Tom Tromey <tromey@redhat.com>
12364
12365 * gdbcore.h (deprecated_core_resize_section_table): Remove.
12366
78e5999d
TT
123672014-01-13 Tom Tromey <tromey@redhat.com>
12368
12369 * defs.h (use_windows): Remove.
12370 * gdb.c (main): Update.
12371 * main.c (captured_main, gdb_main): Update.
12372 * main.h (struct captured_main_args) <use_windows>: Remove.
12373 * top.c (use_windows): Remove.
12374
f2052bbe
TT
123752014-01-13 Tom Tromey <tromey@redhat.com>
12376
12377 * defs.h (deprecated_flush_hook): Remove.
12378
fde4f8ed
JK
123792014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12380
12381 PR threads/16216
12382 * linux-thread-db.c (try_thread_db_load): Add parameter
12383 check_auto_load_safe. Move here the file_is_auto_load_safe call.
12384 (try_thread_db_load_from_pdir_1): Move it there from here.
12385 (try_thread_db_load_from_sdir): Update caller.
12386 (try_thread_db_load_from_dir): Move it there from here.
12387
bdf61915
PP
123882014-01-13 Patrick Palka <patrick@parcs.ath.cx>
12389
12390 * regformats/regdat.sh: Always rewrite the register file.
12391
f71e1a8d
PA
123922014-01-13 Pedro Alves <palves@redhat.com>
12393
12394 * Makefile.in (CHECK_HEADERS): New variable.
12395 (check-headers:): New rule.
12396
42c85435
TT
123972014-01-13 Tom Tromey <tromey@redhat.com>
12398
12399 * cli/cli-setshow.c (do_set_command): Update.
12400 * defs.h (deprecated_set_hook): Remove.
12401 * top.c (deprecated_set_hook): Remove.
12402
f8de5129
PA
124032014-01-13 Pedro Alves <palves@redhat.com>
12404
12405 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
12406 the tracepoint if the PC is a pseudo-register.
12407
fc270c35
TT
124082014-01-13 Tom Tromey <tromey@redhat.com>
12409
12410 * defs.h (XCALLOC): Remove.
12411 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
12412 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
12413 * dwarf2loc.c (allocate_piece_closure): Likewise.
12414 * elfread.c (elf_symfile_segments): Likewise.
12415 (elf_symfile_segments): Likewise.
12416 * gdbtypes.c (copy_type_recursive): Likewise.
12417 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
12418 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
12419 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
12420 XCALLOC.
12421 * mt-tdep.c (mt_gdbarch_init): Likewise.
12422 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
12423 XCALLOC.
12424 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
12425 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
12426 * registry.c (registry_alloc_data): Likewise.
12427 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
12428 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
12429 * serial.c (serial_fdopen_ops): Likewise.
12430 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
12431 XCALLOC.
12432 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
12433 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
12434 not XCALLOC.
12435
70ba0933
TT
124362014-01-13 Tom Tromey <tromey@redhat.com>
12437
12438 * defs.h (XMALLOC): Remove.
12439 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
12440 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
12441 * cli-out.c (struct ui_out *): Likewise.
12442 * cli/cli-dump.c (add_dump_command): Likewise.
12443 (add_dump_command): Likewise.
12444 * complaints.c (get_complaints): Likewise.
12445 (find_complaint): Likewise.
12446 * dwarf2-frame.c (execute_cfa_program): Likewise.
12447 * dwarf2read.c (abbrev_table_read_table): Likewise.
12448 * gdbarch.sh: Likewise.
12449 * gdbarch.c: Rebuild.
12450 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
12451 * interps.c (interp_new): Likewise.
12452 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
12453 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
12454 * mi/mi-console.c (mi_console_file_new): Likewise.
12455 * mi/mi-interp.c (mi_interpreter_init): Likewise.
12456 * mi/mi-out.c (mi_out_new): Likewise.
12457 * mi/mi-parse.c (mi_parse): Likewise.
12458 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
12459 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
12460 * observer.c (xalloc_observer_list_node): Likewise.
12461 * regcache.c (regcache_xmalloc_1): Likewise.
12462 * reggroups.c (reggroup_new): Likewise.
12463 (_initialize_reggroup): Likewise.
12464 * registry.c (register_data_with_cleanup): Likewise.
12465 * remote.c (remote_notif_stop_alloc_reply): Likewise.
12466 * ser-base.c (serial_ttystate): Likewise.
12467 * ser-mingw.c (make_pipe_state): Likewise.
12468 * ser-pipe.c (pipe_open): Likewise.
12469 * serial.c (serial_open): Likewise.
12470 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
12471 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
12472 (tui_alloc_win_info): Likewise.
12473 (tui_add_content_elements): Likewise.
12474 * tui/tui-file.c (tui_file_new): Likewise.
12475 * tui/tui-out.c (tui_out_new): Likewise.
12476 * ui-file.c (mem_file_new): Likewise.
12477 * ui-out.c (push_level): Likewise.
12478 (make_cleanup_ui_out_end): Likewise.
12479 (append_header_to_list): Likewise.
12480 (ui_out_new): Likewise.
12481 * user-regs.c (user_reg_add_builtin): Likewise.
12482
41bf6aca
TT
124832014-01-13 Tom Tromey <tromey@redhat.com>
12484
12485 * defs.h (XZALLOC): Remove.
12486 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
12487 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
12488 (get_ada_tasks_inferior_data): Likewise.
12489 * auto-load.c (get_auto_load_pspace_data): Likewise.
12490 * auxv.c (get_auxv_inferior_data): Likewise.
12491 * bfd-target.c (target_bfd_reopen): Likewise.
12492 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
12493 (deprecated_insert_raw_breakpoint): Likewise.
12494 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
12495 * corelow.c (core_open): Likewise.
12496 * darwin-nat.c (darwin_check_new_threads): Likewise.
12497 (darwin_attach_pid): Likewise.
12498 * dummy-frame.c (dummy_frame_push): Likewise.
12499 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
12500 * dwarf2loc.c (allocate_piece_closure): Likewise.
12501 * elfread.c (elf_symfile_segments): Likewise.
12502 * eval.c (ptrmath_type_p): Likewise.
12503 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
12504 * gdbtypes.c (alloc_type_arch): Likewise.
12505 (alloc_type_instance): Likewise.
12506 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
12507 * inf-child.c (inf_child_can_use_agent): Likewise.
12508 * inflow.c (get_inflow_inferior_data): Likewise.
12509 * infrun.c (save_infcall_suspend_state): Likewise.
12510 * jit.c (jit_reader_load): Likewise.
12511 (get_jit_objfile_data): Likewise.
12512 (get_jit_program_space_data): Likewise.
12513 (jit_object_open_impl): Likewise.
12514 (jit_symtab_open_impl): Likewise.
12515 (jit_block_open_impl): Likewise.
12516 (jit_frame_sniffer): Likewise.
12517 * linux-fork.c (add_fork): Likewise.
12518 * maint.c (make_command_stats_cleanup): Likewise.
12519 * objfiles.c (get_objfile_pspace_data): Likewise.
12520 * opencl-lang.c (struct lval_closure): Likewise.
12521 * osdata.c (osdata_start_osdata): Likewise.
12522 * progspace.c (new_address_space): Likewise.
12523 (add_program_space): Likewise.
12524 * remote-sim.c (get_sim_inferior_data): Likewise.
12525 * sh-tdep.c (sh_gdbarch_init): Likewise.
12526 * skip.c (Ignore): Likewise.
12527 (skip_delete_command): Likewise.
12528 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
12529 (library_list_start_library): Likewise.
12530 (solib_aix_current_sos): Likewise.
12531 * solib-darwin.c (get_darwin_info): Likewise.
12532 (darwin_current_sos): Likewise.
12533 * solib-dsbt.c (get_dsbt_info): Likewise.
12534 * solib-ia64-hpux.c (new_so_list): Likewise.
12535 (ia64_hpux_get_solib_linkage_addr): Likewise.
12536 * solib-spu.c (append_ocl_sos): Likewise.
12537 (spu_current_sos): Likewise.
12538 * solib-svr4.c (get_svr4_info): Likewise.
12539 (svr4_keep_data_in_core): Likewise.
12540 (library_list_start_library): Likewise.
12541 (svr4_default_sos): Likewise.
12542 (svr4_read_so_list): Likewise.
12543 * solib-target.c (library_list_start_library): Likewise.
12544 (solib_target_current_sos): Likewise.
12545 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
12546 * symfile-debug.c (install_symfile_debug_logging): Likewise.
12547 * symfile.c (default_symfile_segments): Likewise.
12548 * target-descriptions.c (tdesc_data_init): Likewise.
12549 (tdesc_create_reg): Likewise.
12550 (struct tdesc_type *): Likewise.
12551 (tdesc_create_vector): Likewise.
12552 (tdesc_set_struct_size): Likewise.
12553 (struct tdesc_type *): Likewise.
12554 (tdesc_free_feature): Likewise.
12555 (tdesc_create_feature): Likewise.
12556 * windows-nat.c (windows_add_thread): Likewise.
12557 (windows_make_so): Likewise.
12558 * xml-support.c (gdb_xml_body_text): Likewise.
12559 (gdb_xml_create_parser_and_cleanup): Likewise.
12560 (xml_process_xincludes): Likewise.
12561 * xml-syscall.c (allocate_syscalls_info): Likewise.
12562 (syscall_create_syscall_desc): Likewise.
12563
5acfdbae
SDJ
125642014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
12565
12566 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
12567 function, with code from i386_stap_parse_special_token.
12568 (i386_stap_parse_special_token_three_arg_disp): Likewise.
12569 (i386_stap_parse_special_token): Move code to the two functions
12570 above; simplify it.
12571
0000e5cc
PA
125722014-01-09 Pedro Alves <palves@redhat.com>
12573 Hui Zhu <hui@codesourcery.com>
12574
12575 PR gdb/16101
12576 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
12577 bp_err_string. Don't mark the location shlib_disabled if the
12578 error thrown wasn't a generic or memory error. Catch errors
12579 thrown while inserting breakpoints in overlayed code. Output
12580 error message of software breakpoints.
12581 * remote.c (remote_insert_breakpoint): If this breakpoint has
12582 target-side commands but this stub doesn't support Z0 packets,
12583 throw NOT_SUPPORTED_ERROR error.
12584 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
12585 * target.h (target_insert_breakpoint): Extend comment.
12586 (target_insert_hw_breakpoint): Add comment.
12587
b7ea362b
PA
125882014-01-08 Pedro Alves <palves@redhat.com>
12589
12590 * remote.c (remote_add_thread): Add threads silently if starting
12591 up.
12592 (remote_notice_new_inferior): If in all-stop, and starting up,
12593 don't call notice_new_inferior.
12594 (get_current_thread): New function, factored out from ...
12595 (add_current_inferior_and_thread): ... this. Adjust.
12596 (remote_start_remote) <all-stop>: Fetch the thread list. If we
12597 found any thread, then select the remote's current thread as GDB's
12598 current thread too.
12599
b7bba001
JB
126002014-01-08 Joel Brobecker <brobecker@adacore.com>
12601
12602 * NEWS: Create a new section for the next release branch.
12603 Rename the section of the current branch, now that it has
12604 been cut.
12605
16dfbded
JB
126062014-01-08 Joel Brobecker <brobecker@adacore.com>
12607
12608 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
12609 * version.in: Bump version to 7.7.50.DATE-cvs.
12610
22c90ac1
YQ
126112014-01-08 Yao Qi <yao@codesourcery.com>
12612
12613 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
12614 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
12615 (spu_xfer_partial): Cast 'buf' to 'const char *'.
12616
d64ad97c
YQ
126172014-01-08 Yao Qi <yao@codesourcery.com>
12618
12619 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
12620 return value of bfd_get_filename to symbol_file_add_from_bfd.
12621
f93ba80c
PM
126222014-01-08 Pierre Muller <muller@sourceware.org>
12623
12624 Fix PR16201.
12625 * coff-pe-read.c (struct read_pe_section_data): Add index field.
12626 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
12627 to prim_record_mininal_symbol_and_info.
12628 (add_pe_forwarded_sym): Use known section number of forwarded symbol
12629 in call to prim_record_minimal_symbol_and_info.
12630 (read_pe_exported_syms): Set index field of section_data.
12631
a4d9ba85
AP
126322014-01-07 Andrew Pinski <apinski@cavium.com>
12633
12634 * features/aarch64-core.xml (cpsr): Change to be 64bit.
12635 * features/aarch64.c: Regenerate.
12636
1b67eb02
AS
126372014-01-07 Andreas Schwab <schwab@linux-m68k.org>
12638
12639 * target.c (return_null): Define.
12640 (update_current_target): Use it instead of return_zero for
12641 functions that return a pointer.
12642
5e3f4fab
EBM
126432014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
12644
12645 * source.c (add_path): Fix check for duplicated paths in the previously
12646 included paths.
12647
e2616788
HK
126482014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
12649
12650 * ada-lang.c: Remove duplicated include statements.
12651 * alphabsd-nat.c: Ditto.
12652 * amd64-darwin-tdep.c: Ditto.
12653 * amd64fbsd-nat.c: Ditto.
12654 * auto-load.c: Ditto.
12655 * ax-gdb.c: Ditto.
12656 * breakpoint.c: Ditto.
12657 * dbxread.c: Ditto.
12658 * fork-child.c: Ditto.
12659 * gdb_usleep.c: Ditto.
12660 * i386-darwin-tdep.c: Ditto.
12661 * i386fbsd-nat.c: Ditto.
12662 * infcmd.c: Ditto.
12663 * inferior.c: Ditto.
12664 * jv-lang.c: Ditto.
12665 * linux-nat.c: Ditto.
12666 * linux-tdep.c: Ditto.
12667 * m68kbsd-nat.c: Ditto.
12668 * m68klinux-nat.c: Ditto.
12669 * microblaze-tdep.c: Ditto.
12670 * mips-linux-tdep.c: Ditto.
12671 * mn10300-tdep.c: Ditto.
12672 * nto-tdep.c: Ditto.
12673 * opencl-lang.c: Ditto.
12674 * osdata.c: Ditto.
12675 * printcmd.c: Ditto.
12676 * regcache.c: Ditto.
12677 * remote-m32r-sdi.c: Ditto.
12678 * remote.c: Ditto.
12679 * symfile.c: Ditto.
12680 * symtab.c: Ditto.
12681 * tilegx-linux-nat.c: Ditto.
12682 * tilegx-tdep.c: Ditto.
12683 * tracepoint.c: Ditto.
12684 * valops.c: Ditto.
12685 * vaxbsd-nat.c: Ditto.
12686 * windows-nat.c: Ditto.
12687 * xtensa-tdep.c: Ditto.
12688
bd1f7788
YQ
126892014-01-07 Yao Qi <yao@codesourcery.com>
12690
12691 * spu-linux-nat.c (_initialize_spu_nat): Declare.
12692
79301218
JB
126932014-01-07 Yao Qi <yao@codesourcery.com>
12694 Joel Brobecker <brobecker@adacore.com>
12695
12696 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
12697 (pdc_write_regs): Likewise.
12698 (fetch_regs_kernel_thread): Likewise.
12699 (store_regs_kernel_thread): Likewise.
12700
127012014-01-07 Joel Brobecker <brobecker@adacore.com>
12702
12703 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
12704 tagged type objects to their actual type.
12705
8e355c5d
JB
127062014-01-07 Joel Brobecker <brobecker@adacore.com>
12707
12708 * ada-valprint.c (print_field_values): Add "language" parameter.
12709 Update calls to print_field_values and print_variant_part.
12710 Pass new parameter "language" in call to val_print instead
12711 of "current_language". Replace call to ada_val_print by call
12712 to val_print.
12713 (print_variant_part): Add "language" parameter.
12714 (ada_val_print_struct_union): Update call to print_field_values.
12715
4fbf5aa5
JB
127162014-01-07 Joel Brobecker <brobecker@adacore.com>
12717
12718 * ada-valprint.c (ui_memcpy): Delete.
12719 (ada_print_floating): Update documentation. Add empty line
12720 between between function documentation and implementation.
12721 Delete variable "buffer". Use ui_file_xstrdup in place of
12722 ui_file_put. Minor adjustments following this change.
12723
71855601
JB
127242014-01-07 Joel Brobecker <brobecker@adacore.com>
12725
12726 * ada-valprint.c (ada_val_print_string): New function,
12727 extracted from ada_val_print_array.
12728 (ada_val_print_array): Replace extracted code by call
12729 to ada_val_print_string followed by a return. Move
12730 "else" branch to the function's top block.
12731
4eb27a30
JB
127322014-01-07 Joel Brobecker <brobecker@adacore.com>
12733
12734 * ada-valprint.c (ada_val_print_array): Move implementation
12735 down. Rename parameter "offset" and "val" into "offset_aligned"
12736 and "original_value" respectively. Add parameter "offset".
12737
34b27950
JB
127382014-01-07 Joel Brobecker <brobecker@adacore.com>
12739
12740 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
12741 re-organizing the code. Change the "???" message printed
12742 when target type is a TYPE_CODE_UNDEF into
12743 "<ref to undefined type>".
12744
079e4591
JB
127452014-01-07 Joel Brobecker <brobecker@adacore.com>
12746
12747 * ada-valprint.c (print_record): Delete, implementation inlined...
12748 (ada_val_print_struct_union): ... here. Remove call to
12749 ada_check_typedef in inlined implementation.
12750
8004dfd1
JB
127512014-01-07 Joel Brobecker <brobecker@adacore.com>
12752
12753 * ada-valprint.c (ada_val_print_gnat_array): New function,
12754 extracted from ada_val_print_1;
12755 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
12756 (ada_val_print_flt, ada_val_print_struct_union)
12757 (ada_val_print_ref): Likewise.
12758 (ada_val_print_1): Delete variables i and elttype.
12759 Replace extracted-out code by call to corresponding
12760 new functions.
12761
760a2db0
JB
127622014-01-07 Joel Brobecker <brobecker@adacore.com>
12763
12764 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
12765
3a92c861
JB
127662014-01-07 Joel Brobecker <brobecker@adacore.com>
12767
12768 * ada-valprint.c (ada_val_print_1): Replace calls to
12769 ada_val_print_1 by calls to val_print.
12770
cd1630f9
JB
127712014-01-07 Joel Brobecker <brobecker@adacore.com>
12772
12773 * ada-valprint.c (ada_val_print_1): Add parameter "language".
12774 Update calls to self accordingly. Replace calls to c_val_print
12775 by calls to val_print.
12776
bdf779a0
JB
127772014-01-07 Joel Brobecker <brobecker@adacore.com>
12778
12779 * ada-valprint.c (print_record): Delete declaration.
12780 (adjust_type_signedness, ada_val_print_1): Likewise.
12781 (ada_val_print): Move function implementation down.
12782 (print_variant_part, print_field_values, print_record):
12783 Move function implementation up.
12784
c0d48811
JB
127852014-01-07 Joel Brobecker <brobecker@adacore.com>
12786
12787 * python/py-type.c (typy_get_name): New function.
12788 (type_object_getset): Add entry for attribute "name".
12789 * NEWS: Add entry mentioning this new attribute.
12790
c26e9cbb
YQ
127912014-01-07 Yao Qi <yao@codesourcery.com>
12792
12793 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
12794 statement.
12795
0cc6f43d
YQ
127962014-01-07 Yao Qi <yao@codesourcery.com>
12797
12798 * gnu-nat.c (info_port_rights): Add qualifier const to
12799 argument args.
12800
eec03155
YQ
128012014-01-07 Yao Qi <yao@codesourcery.com>
12802
12803 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
12804
f04a82ef
YQ
128052014-01-07 Yao Qi <yao@codesourcery.com>
12806
12807 * gnu-nat.c (make_inf) Update declaration.
12808 (make_inf): Make it static.
12809 (inf_set_traced): Likewise.
12810 (inf_port_to_thread, inf_task_died_status): Likewise.
12811
d57dda0a
YQ
128122014-01-07 Yao Qi <yao@codesourcery.com>
12813
12814 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
12815
3aa8c969
YQ
128162014-01-07 Yao Qi <yao@codesourcery.com>
12817
12818 * gnu-nat.c (_initialize_gnu_nat): Declare.
12819
94123b4f
YQ
128202014-01-07 Yao Qi <yao@codesourcery.com>
12821
12822 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
12823 'enum bfd_endian'.
12824 (struct gdbarch_info) <byte_order>: Change type to
12825 'enum bfd_endian'.
12826 <byte_order_for_code>: Likewise.
12827 * gdbarch.c, gdbarch.h: Regenerated.
12828
dc81d70a
TT
128292014-01-06 Sasha Smundak <asmundak@google.com>
12830
12831 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
12832
cc2f3c35
TT
128332014-01-06 Tom Tromey <tromey@redhat.com>
12834
12835 * doublest.c (convert_doublest_to_floatformat): Use const, not
12836 CONST.
12837 * somread.c (som_symtab_read): Likewise.
12838
adcf2eed
HZ
128392014-01-07 Hui Zhu <hui@codesourcery.com>
12840
12841 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
12842 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
12843 (gdb_bfd_fopen): Ditto.
12844 (gdb_bfd_openr): Ditto.
12845 (gdb_bfd_openw): Ditto.
12846 (gdb_bfd_openr_iovec): Ditto.
12847 (gdb_bfd_fdopenr): Ditto.
12848 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
12849 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
12850 with xstrdup.
12851 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
12852 with xstrdup.
12853 * symfile-mem.c (symbol_file_add_from_memory): Removed
12854 gdb_bfd_stash_filename.
12855
50722198
DE
128562014-01-03 Doug Evans <dje@google.com>
12857
12858 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
12859 output.
12860
2fa4b862
JB
128612014-01-01 Joel Brobecker <brobecker@adacore.com>
12862
12863 Update year range in copyright notice of all files.
12864
28498c42
JB
128652014-01-01 Joel Brobecker <brobecker@adacore.com>
12866
12867 * top.c (print_gdb_version): Set copyright year to 2014.
12868
7b6e1046
JB
128692014-01-01 Joel Brobecker <brobecker@adacore.com>
12870
12871 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
12872
df96af55 12873For older changes see ChangeLog-2013.
c906108c
SS
12874\f
12875Local Variables:
12876mode: change-log
12877left-margin: 8
12878fill-column: 74
12879version-control: never
57da7796 12880coding: utf-8
c906108c 12881End:
This page took 2.218617 seconds and 4 git commands to generate.