[IRIX] eliminate deprecated_insert_raw_breakpoint uses
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
f37f681c
PA
12014-09-12 Pedro Alves <palves@redhat.com>
2
3 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
4 (create_and_insert_solib_event_breakpoint): New functions.
5 * breakpoint.h (create_and_insert_solib_event_breakpoint)
6 (remove_solib_event_breakpoints_at_next_stop): New declarations.
7 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
8 (remove_dbx_link_breakpoint): Delete function.
9 (insert_dbx_link_bpt_in_file): Use
10 create_and_insert_solib_event_breakpoint instead of
11 deprecated_insert_raw_breakpoint.
12 (procfs_wait): Don't check whether we hit __dbx_link here.
13 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
14 here.
15 * solib-irix.c (base_breakpoint): Delete global.
16 (disable_break): Delete function.
17 (enable_break): Use create_solib_event_breakpoint
18 instead of deprecated_insert_raw_breakpoint.
19 (irix_solib_handle_event): New function.
20 (irix_solib_create_inferior_hook): Don't run the target or disable
21 the mapping-complete breakpoint here.
22 (_initialize_irix_solib): Install irix_solib_handle_event as
23 so_ops->handle_event hook.
24
9d9bf2df
EBM
252014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
26 Ulrich Weigand  <uweigand@de.ibm.com>
27
28 PR tdep/17379
29 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
30 instead of read_memory_unsigned_integer.
31
b006a80e
GB
322014-09-12 Gary Benson <gbenson@redhat.com>
33
34 * nat/linux-waitpid.c: Include common-defs.h.
35 [GDBSERVER]: Add FIXME comment.
36 [!GDBSERVER]: Don't include defs.h or signal.h.
37 (linux_debug) [!GDBSERVER]: Remove empty block.
38
296b1496
GB
392014-09-12 Gary Benson <gbenson@redhat.com>
40
41 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
42 Don't include defs.h or server.h.
43
53f81362
GB
442014-09-12 Gary Benson <gbenson@redhat.com>
45
46 * nat/linux-btrace.c: Include common-defs.h.
47 Don't include defs.h, server.h or gdbthread.h.
48 * nat/linux-btrace.h (struct target_ops): New forward declaration.
49
727605ca
GB
502014-09-12 Gary Benson <gbenson@redhat.com>
51
52 * common/agent.c: Include common-defs.h.
53 Don't include defs.h or server.h.
54 * common/buffer.c: Likewise.
55 * common/common-debug.c: Likewise.
56 * common/common-utils.c: Likewise.
57 * common/errors.c: Likewise.
58 * common/filestuff.c: Likewise.
59 * common/format.c: Likewise.
60 * common/gdb_vecs.c: Likewise.
61 * common/print-utils.c: Likewise.
62 * common/ptid.c: Likewise.
63 * common/rsp-low.c: Likewise.
64 * common/signals.c: Likewise.
65 * common/vec.c: Likewise.
66 * common/xml-utils.c: Likewise.
67 * nat/linux-osdata.c: Likewise.
68 * nat/linux-procfs.c: Likewise.
69 * nat/linux-ptrace.c: Likewise.
70 * nat/mips-linux-watch.c: Likewise.
71 * target/waitstatus.c: Likewise.
72
361c8ade
GB
732014-09-12 Tom Tromey <tromey@redhat.com>
74 Gary Benson <gbenson@redhat.com>
75
76 * common/common-regcache.h: New file.
77 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
78 * regcache.h: Include common-regcache.h.
79 (regcache_read_pc): Don't declare.
80 * regcache.c (get_thread_regcache_for_ptid): New function.
81 * nat/linux-btrace.c: Don't include regcache.h.
82 Include common-regcache.h.
83 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
84
a01cbb49
TS
852014-09-11 Thomas Schwinge <thomas@codesourcery.com>
86
87 * regcache.h (struct regset): Declare.
88
98880d46
PA
892014-09-11 Pedro Alves <palves@redhat.com>
90
91 PR gdb/17347
92 * main.c: Include "infrun.h".
93 (catch_command_errors, catch_command_errors_const): Wait for the
94 foreground command to complete.
95 * top.c (maybe_wait_sync_command_done): New function, factored out
96 from ...
97 (maybe_wait_sync_command_done): ... here.
98 * top.h (maybe_wait_sync_command_done): New declaration.
99
bd9269f7
GB
1002014-09-11 Tom Tromey <tromey@redhat.com>
101 Gary Benson <gbenson@redhat.com>
102
103 * common/symbol.h: New file.
104 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
105 * minsyms.c (find_minimal_symbol_address): New function.
106 * common/agent.c: Include common/symbol.h.
107 [!GDBSERVER]: Don't include objfiles.h.
108 (agent_look_up_symbols): Use find_minimal_symbol_address.
109
f8c1d06b
GB
1102014-09-11 Gary Benson <gbenson@redhat.com>
111
112 * target/target.h (target_stop_ptid, target_continue_ptid):
113 Declare.
114 * target.c (target_stop_ptid, target_continue_ptid): New
115 functions.
116 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
117 (agent_run_command): Always use target_stop_ptid and
118 target_continue_ptid.
119
721ec300
GB
1202014-09-11 Tom Tromey <tromey@redhat.com>
121 Gary Benson <gbenson@redhat.com>
122
123 * target/target.h: New file.
124 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
125 * target.h: Include target/target.h.
126 (target_read_memory, target_write_memory): Don't declare.
127 * target.c (target_read_uint32): New function.
128 * common/agent.c: Include target/target.h.
129 [!GDBSERVER]: Don't include target.h.
130 (helper_thread_id): Type changed to uint32_t.
131 (agent_get_helper_thread_id): Use target_read_uint32.
132 (agent_run_command): Always use target_read_memory and
133 target_write_memory.
134 (agent_capability): Type changed to uint32_t.
135 (agent_capability_check): Use target_read_uint32.
136
c5e92cca
GB
1372014-09-11 Gary Benson <gbenson@redhat.com>
138
139 * common/common-debug.h (show_debug_regs): Declare.
140 * common/common-debug.c (show_debug_regs): Define.
141 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
142 all uses with show_debug_regs. Replace all uses that considered
143 debug_hw_points as a multi-value integer with straight boolean
144 uses.
145 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
146 with show_debug_regs.
147 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
148 all uses with show_debug_regs.
149 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
150 uses with show_debug_regs.
151
eeef931a
UW
1522014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
153
154 * findvar.c (address_from_register): Handle targets requiring
155 a special conversion routine even for plain pointer types.
156
8efa9855
UW
1572014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
158
159 * rs6000-nat.c (exec_one_dummy_insn): Remove.
160 (store_register): Do not call exec_one_dummy_insn.
161
eb479039
JB
1622014-09-10 Joel Brobecker <brobecker@adacore.com>
163
164 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
165 dereference it first. Use value_enclosing_type instead of
166 value_type.
167 (ada_array_length): Likewise.
168
deede10c
JB
1692014-09-10 Joel Brobecker <brobecker@adacore.com>
170
171 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
172 Adjust function implementation and documentation accordingly.
173 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
174 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
175 Update call to ada_value_ptr_subscript.
176
7828a5f5
JB
1772014-09-10 Joel Brobecker <brobecker@adacore.com>
178
179 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
180 instead of VAL's type.
181
35782f14
JB
1822014-09-10 Joel Brobecker <brobecker@adacore.com>
183
184 * amd64-linux-nat.c: Add <sys/uio.h> #include.
185
d342a0da
DE
1862014-09-09 Doug Evans <xdje42@gmail.com>
187
188 PR guile/17367
189 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
190 last parameter to pkg-config, not first.
191 * configure.ac: Pass --with-guile provided pkg-config path to
192 GDB_GUILE_PROGRAM_NAMES.
193 * configure: Regenerate.
194
b4a3d263
GKB
1952014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
196
197 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
198 Bertazi".
199
6e466374
MR
2002014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
201
202 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
203 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
204 the list of sections determining GDB_OSABI_IRIX.
205
a1ada89a
JH
2062014-09-09 James Hogan <james.hogan@imgtec.com>
207
208 * MAINTAINERS (Write After Approval): Add "James Hogan".
209
86db008d
JH
2102014-09-09 James Hogan <james.hogan@imgtec.com>
211
212 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
213
72fde3df
JB
2142014-09-09 Joel Brobecker <brobecker@adacore.com>
215
216 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
217
92d8d229
DE
2182014-09-08 Doug Evans <xdje42@gmail.com>
219
220 PR 17247
221 * guile.c: #include <signal.h>.
222 (_initialize_guile): Block SIGCHLD while initializing Guile.
223
224 Replaces the following, which is reverted.
225
226 2014-07-26 Doug Evans <xdje42@gmail.com>
227
228 PR 17185
229 * configure.ac: Add check for header gc/gc.h.
230 Add check for function setenv.
231 * configure: Regenerate.
232 * config.in: Regenerate.
233 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
234
d81412aa
DE
2352014-09-08 Doug Evans <xdje42@gmail.com>
236
237 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
238 with named constant. Fix style of pointer comparison.
239 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
240
a9f116cb
GKB
2412014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
242
243 PR gdb/17035
244 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
245 decide whether we display the command on "show user".
246 * cli/cli-script.c (show_user_1): Only verify cmdlines after
247 printing command name.
248 * cli/cli-decode.h (cli_user_command_p): Declare new function.
249 * cli/cli-decode.c (cli_user_command_p): Create helper function
250 to verify whether cmd_list_element is a user-defined command.
251
c75bd3a2
JK
2522014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
253
254 PR python/17355
255 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
256 Fix goto out of TRY_CATCH.
257
faa42425 2582014-09-06 Doug Evans <xdje42@gmail.com>
1a52a81c 259 Tom Tromey <tromey@redhat.com>
faa42425
DE
260
261 PR 15276
262 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
263 $_any_caller_matches.
264 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
265 * python/lib/gdb/function/caller_is.py: New file.
266
0d41ba00
DE
2672014-09-06 Doug Evans <xdje42@gmail.com>
268
269 * infcmd.c (program_info): Fix typo.
270
474ca4f6
SDJ
2712014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
272
273 PR gdb/17235
274 * stap-probe.c (stap_parse_single_operand): Delete unused variable
275 'number'. New variable 'has_digit'. Rewrite code to deal with
276 subexpressions on SDT probes.
277
ebf13736
PA
2782014-09-04 Pedro Alves <palves@redhat.com>
279
280 * c-exp.y (parse_number): Skip handling base-switching prefixes if
281 the input is only one character long.
282
eb0b0463
SDJ
2832014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
284
285 PR fortran/17237
286 * f-valprint.c (f_val_print): Specify the correct print option to
287 use when printing integer values.
288
5ee44bfa
GB
2892014-09-04 Gary Benson <gbenson@redhat.com>
290
291 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
292 Remove code to cope with LWPs wrapped as PIDs.
293 Add assertions to ensure no wrapped LWPs are passed.
294
4875ffdb
PA
2952014-09-04 Pedro Alves <palves@redhat.com>
296
297 * value.c (value_ranges_copy_adjusted): New function, factored out
298 from ...
299 (value_contents_copy_raw): ... here.
300 (unpack_value_bits_as_long_1): Rename back to ...
301 (unpack_bits_as_long): ... this. Remove 'original_value' and
302 'result' parameters. Change return type to LONGEST.
303 (unpack_value_bits_as_long): Delete.
304 (unpack_value_field_as_long_1): Delete.
305 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
306 (unpack_value_bitfield): New function.
307 (value_field_bitfield): Reimplement using unpack_value_bitfield.
308 (value_fetch_lazy): Use unpack_value_bitfield.
309 * value.h (unpack_value_bits_as_long): Delete declaration.
310
5f3b99cf
SS
3112014-09-03 Sasha Smundak <asmundak@google.com>
312
313 * python/py-frame.c (frapy_read_register): New function.
314
ac740bc7
JH
3152014-09-03 James Hogan <james.hogan@imgtec.com>
316
317 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
318 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
319
7d793aa9
SDJ
3202014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
321
322 PR python/16699
323 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
324 function.
325 (add_cmd): Set "completer_handle_brkchars" to NULL.
326 * cli/cli-decode.h (struct cmd_list_element)
327 <completer_handle_brkchars>: New field.
328 * command.h (completer_ftype_void): New typedef.
329 (set_cmd_completer_handle_brkchars): New prototype.
330 * completer.c (set_gdb_completion_word_break_characters): New
331 function.
332 (complete_line_internal): Call "completer_handle_brkchars"
333 callback from command.
334 * completer.h: Include "command.h".
335 (set_gdb_completion_word_break_characters): New prototype.
336 * python/py-cmd.c (cmdpy_completer_helper): New function.
337 (cmdpy_completer_handle_brkchars): New function.
338 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
339 (cmdpy_init): Set completer_handle_brkchars to
340 cmdpy_completer_handle_brkchars.
341
97ea6506
GB
3422014-09-03 Gary Benson <gbenson@redhat.com>
343
344 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
345 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
346 Loop conditions changed to equivalent form.
347 (struct x86_debug_reg_state): Updated dr_ref_count comment.
348 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
349 ALL_DEBUG_ADDRESS_REGISTERS.
350
d1437815
JB
3512014-09-03 Joel Brobecker <brobecker@adacore.com>
352
353 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
354 description fix.
355
9b94fcf1
DE
3562014-09-02 Doug Evans <dje@google.com>
357
358 * typeprint.c (find_global_typedef): Fix comment.
359
df7e5265
GB
3602014-09-02 Gary Benson <gbenson@redhat.com>
361
362 * i386-nat.h: Renamed as...
363 * x86-nat.h: New file. All type, function and variable name
364 prefixes changed from "i386_" to "x86_". All references updated.
365 * i386-nat.c: Renamed as...
366 * x86-nat.c: New file. All type, function and variable name
367 prefixes changed from "i386_" to "x86_". All references updated.
368 * common/i386-xstate.h: Renamed as...
369 * common/x86-xstate.h: New file. All type, function and variable
370 name prefixes changed from "i386_" to "x86_". All references
371 updated.
372 * nat/i386-cpuid.h: Renamed as...
373 * nat/x86-cpuid.h: New file. All type, function and variable name
374 prefixes changed from "i386_" to "x86_". All references updated.
375 * nat/i386-gcc-cpuid.h: Renamed as...
376 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
377 name prefixes changed from "i386_" to "x86_". All references
378 updated.
379 * nat/i386-dregs.h: Renamed as...
380 * nat/x86-dregs.h: New file. All type, function and variable name
381 prefixes changed from "i386_" to "x86_". All references updated.
382 * nat/i386-dregs.c: Renamed as...
383 * nat/x86-dregs.c: New file. All type, function and variable name
384 prefixes changed from "i386_" to "x86_". All references updated.
385
1c3569d4
MR
3862014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
387
388 * varobj.c (_initialize_varobj): Move to the end of file.
389
ff55e1b5
GB
3902014-08-29 Gary Benson <gbenson@redhat.com>
391
392 * common/common-exceptions.h: New file.
393 * common/common-exceptions.c: Likewise.
394 * Makefile.in (SFILES): Add common/common-exceptions.c.
395 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
396 (COMMON_OBS): Add common-exceptions.o.
397 (common-exceptions.o): New rule.
398 * exceptions.h (common-exceptions.h): Include.
399 (gdb_setjmp.h): Do not include.
400 (return_reason): Moved to common-exceptions.h.
401 (enum return_reason): Likewise.
402 (RETURN_MASK): Likewise.
403 (typedef return_mask): Likewise.
404 (enum errors): Likewise.
405 (struct gdb_exception): Likewise.
406 (exceptions_state_mc_init): Likewise.
407 (exceptions_state_mc_action_iter): Likewise.
408 (exceptions_state_mc_action_iter_1): Likewise.
409 (TRY_CATCH): Likewise.
410 (throw_exception): Likewise.
411 (throw_verror): Likewise.
412 (throw_vquit): Likewise.
413 (throw_error): Likewise.
414 (throw_quit): Likewise.
415 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
416 (enum catcher_action): Likewise.
417 (struct catcher): Likewise.
418 (current_catcher): Likewise.
419 (catcher_list_size): Likewise.
420 (exceptions_state_mc_init): Likewise.
421 (catcher_pop): Likewise.
422 (exceptions_state_mc): Likewise.
423 (exceptions_state_mc_action_iter): Likewise.
424 (exceptions_state_mc_action_iter_1): Likewise.
425 (throw_exception): Likewise.
426 (exception_messages): Likewise.
427 (exception_messages_size): Likewise.
428 (throw_it): Likewise.
429 (throw_verror): Likewise.
430 (throw_vquit): Likewise.
431 (throw_error): Likewise.
432 (throw_quit): Likewise.
433 (prepare_to_throw_exception): New function.
434
e9bcb658
GB
4352014-08-29 Gary Benson <gbenson@redhat.com>
436
437 * common/gdb_setjmp.h: New file.
438 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
439 * configure.ac: Move sigsetjmp check...
440 * common/common.m4: ...here.
441 * configure: Regenerate.
442 * cp-support.c (SIGJMP_BUF): Delete.
443 (SIGSETJMP): Likewise.
444 (SIGLONGJMP): Likewise.
445 * exceptions.h (gdb_setjmp.h): Include.
446 (setjmp.h): Do not include.
447 (EXCEPTIONS_SIGJMP_BUF): Delete.
448 (EXCEPTIONS_SIGSETJMP): Likewise.
449 (EXCEPTIONS_SIGLONGJMP): Likewise.
450 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
451 from gdb_setjmp.h.
452 * exceptions.c: Likewise.
453
e3180625
GB
4542014-08-29 Gary Benson <gbenson@redhat.com>
455
456 * cleanups.h: Moved to...
457 * common/cleanups.h: New file.
458 * cleanups.c: Moved to...
459 * common/cleanups.c: New file. Include common-defs.h and
460 cleanups.h. Do not include defs.h.
461 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
462 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
463 (cleanups.o): New rule.
464
e3d6ba5d
GB
4652014-08-29 Gary Benson <gbenson@redhat.com>
466
467 * common/errors.h (internal_warning): New declaration.
468 (internal_vwarning): Likewise.
469 * common/errors.c (internal_warning): New function.
470 * utils.h (internal_warning): Don't declare.
471 (internal_vwarning): Likewise.
472 * utils.c (internal_warning): Removed.
473
075c7033
GB
4742014-08-29 Gary Benson <gbenson@redhat.com>
475
476 * main.c (captured_main): Use warning during startup.
477 Prefix startup warning messages with command name.
478
91b35fd0
GB
4792014-08-29 Gary Benson <gbenson@redhat.com>
480
481 * main.c (captured_main): Handle usage errors with error.
482
b1ec390e
GB
4832014-08-29 Gary Benson <gbenson@redhat.com>
484
485 * go32-nat.c (go32_create_inferior): Replace a fprintf/
486 exit pair with a call to error. Wrap the message with _().
487
fd0ef3dd
GB
4882014-08-29 Gary Benson <gbenson@redhat.com>
489
490 * main.c (captured_main): Replace a fprintf/exit
491 pair with a call to error. Wrap the message with _().
492
e0e6bcab
GB
4932014-08-29 Gary Benson <gbenson@redhat.com>
494
495 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
496 pairs with calls to error. Wrap the message with _().
497
0d2f5c07
GB
4982014-08-29 Gary Benson <gbenson@redhat.com>
499
500 * utils.c (vwarning): Protect calls to target_terminal_ours
501 and wrap_here.
502
5df43998
GB
5032014-08-29 Gary Benson <gbenson@redhat.com>
504
505 * exceptions.c (print_flush): Protect calls to
506 target_terminal_ours and wrap_here.
507
2437fd32
GB
5082014-08-29 Gary Benson <gbenson@redhat.com>
509
510 * utils.h (filtered_printing_initialized): New declaration.
511 * utils.c (abort_with_message): New function.
512 (internal_vproblem): Use abort_with_message for first level
513 recursive internal problems, and if gdb_stderr is not set up.
514 Protect calls to target_terminal_ours, begin_line and query.
515
f1f58506
DE
5162014-08-28 Doug Evans <dje@google.com>
517
518 * symtab.c (in_prologue): Move definition to better spot.
519 (skip_prologue_using_sal): Ditto.
520
aab2f208
DE
5212014-08-28 Doug Evans <dje@google.com>
522
523 * symtab.c (find_function_start_sal): Move definition to better spot.
524
6b65d1b6
YQ
5252014-08-28 Yao Qi <yao@codesourcery.com>
526
527 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
528 found_stack_adjust in forward scan. Remove condition check
529 on found_stack_adjust which is always true. Indent the code.
530
a1b34d15
YQ
5312014-08-28 Yao Qi <yao@codesourcery.com>
532
533 * dwarf2read.c (dwarf_decode_lines): Update declaration.
534 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
535 (dwarf_decode_lines): Remove argument
536 want_line_info. Remove condition check on want_line_info.
537 Callers update.
538
d5962de5
DE
5392014-08-27 Doug Evans <dje@google.com>
540
541 * dwarf2read.c (dwarf_record_line): Fix typo.
542
9b139002
SDJ
5432014-08-27 Patrick Palka <patrick@parcs.ath.cx>
544
545 * target.h (struct target_ops::to_terminal_save_ours): Remove
546 declaration.
547 (target_terminal_save_ours): Remove macro.
548 * target-delegates.c: Regenerate.
549 * inf-child.c (inf_child_target): Don't set the nonexistent
550 field to_terminal_save_ours.
551 * inferior.h (child_terminal_save_ours): Remove declaration.
552 * terminal.h (gdb_save_tty_state): New declaration.
553 * inflow.c (child_terminal_save_ours): Rename to ...
554 (gdb_save_tty_state): ... this.
555 * tui/tui.c: Include terminal.h.
556 (tui_enable): Use gdb_save_tty_state instead of
557 target_terminal_save_ours.
558 (tui_disable): Likewise.
559
9debeba0
DE
5602014-08-25 Doug Evans <dje@google.com>
561
562 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
563 Pass NULL instead of 0 for context pointer.
564
428fc5fc
YQ
5652014-08-25 Yao Qi <yao@codesourcery.com>
566
567 * dwarf2read.c: Fix grammatical error.
568
cdc07690
YQ
5692014-08-24 Yao Qi <yao@codesourcery.com>
570
571 * dwarf2read.c (scan_partial_symbols): Update comments.
572 Rename argument 'need_pc' with 'set_addrmap'.
573 (add_partial_namespace): Rename argument 'need_pc' with
574 'set_addrmap'.
575 (add_partial_module): Likewise.
576 (add_partial_subprogram): Likewise. Update comments.
577 (dwarf2_name): Fix typo.
578
a05a36a5
DE
5792014-08-22 Doug Evans <dje@google.com>
580
581 PR 17276
582 * dwarf2read.c (dwarf_record_line_p): New function.
583 (dwarf_decode_lines_1): Ignore subsequent line number entries
584 for the same line if any entry had a non-zero discriminator.
585
252a6764
DE
5862014-08-22 Doug Evans <dje@google.com>
587
588 * buildsym.h (record_line_ftype): New typedef.
589 (record_line): Use it.
590 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
591 (dwarf_decode_lines_1): Call them.
592
510db052
YQ
5932014-08-22 Yao Qi <yao@codesourcery.com>
594
595 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
596 (ctf_end): Remove code.
597
22fd09ae
JK
5982014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
599
600 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
601 (linux_make_corefile_notes): call update_thread_list, protected against
602 exceptions.
603
656e8868
PA
6042014-08-21 Pedro Alves <palves@redhat.com>
605
606 * infcmd.c (attach_command): Remove comment.
607
de589d04
WN
6082014-08-21 Bin Cheng <bin.cheng@arm.com>
609
610 * aarch64-linux-nat.c (dr_changed_t): Change the type from
611 unsigned LONGEST to ULONGEST.
612
2a31c623
PA
6132014-08-20 Pedro Alves <palves@redhat.com>
614
615 * Makefile.in (check-read1): New rule.
616
d36430db
JB
6172014-08-20 Joel Brobecker <brobecker@adacore.com>
618
619 * value.c (value_from_contents_and_address): Strip resolved_type's
620 typedef layers before checking its TYPE_DATA_LOCATION.
621
000339af
PA
6222014-08-20 Pedro Alves <palves@redhat.com>
623
624 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
625
5f52445b
YQ
6262014-08-20 Yao Qi <yao@codesourcery.com>
627
628 * amd64-tdep.c (amd64_classify): Add a blank line after the
629 example. Move "*/" to a new line.
630 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
631 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
632 * dwarf2read.c (psymtab_include_file_name): Likewise.
633
9a0dc9e3
PA
6342014-08-19 Andrew Burgess <aburgess@broadcom.com>
635 Pedro Alves <palves@redhat.com>
636
637 PR symtab/14604
638 PR symtab/14605
639 * ada-lang.c (coerce_unspec_val_to_type): Use
640 value_contents_copy_raw.
641 * ada-valprint.c (val_print_packed_array_elements): Adjust.
642 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
643 * cp-valprint.c (cp_print_value_fields): Let the common printing
644 code handle optimized out values.
645 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
646 * d-valprint.c (dynamic_array_type): Use
647 value_bits_any_optimized_out.
648 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
649 check_any_valid fields.
650 (check_pieced_value_bits): Delete and inline ...
651 (check_pieced_synthetic_pointer): ... here.
652 (check_pieced_value_validity): Delete.
653 (check_pieced_value_invalid): Delete.
654 (pieced_value_funcs): Remove check_validity and check_any_valid
655 fields.
656 (read_pieced_value): Use mark_value_bits_optimized_out.
657 (write_pieced_value): Switch to use
658 mark_value_bytes_optimized_out.
659 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
660 of assuming the whole value is optimized out.
661 * findvar.c (read_frame_register_value): Remove special handling
662 of optimized out registers.
663 (value_from_register): Use mark_value_bytes_optimized_out.
664 * frame-unwind.c (frame_unwind_got_optimized): Use
665 mark_value_bytes_optimized_out.
666 * jv-valprint.c (java_value_print): Adjust.
667 (java_print_value_fields): Let the common printing code handle
668 optimized out values.
669 * mips-tdep.c (mips_print_register): Remove special handling of
670 optimized out registers.
671 * opencl-lang.c (lval_func_check_validity): Delete.
672 (lval_func_check_any_valid): Delete.
673 (opencl_value_funcs): Remove check_validity and check_any_valid
674 fields.
675 * p-valprint.c (pascal_object_print_value_fields): Let the common
676 printing code handle optimized out values.
677 * stack.c (read_frame_arg): Remove special handling of optimized
678 out values. Fetch both VAL and ENTRYVAL before comparing
679 contents. Adjust to value_available_contents_eq rename.
680 * valprint.c (valprint_check_validity)
681 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
682 (val_print_array_elements): Adjust.
683 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
684 (value_bits_any_optimized_out): New function.
685 (value_entirely_covered_by_range_vector): New function, factored
686 out from value_entirely_unavailable.
687 (value_entirely_unavailable): Reimplement.
688 (value_entirely_optimized_out): New function.
689 (insert_into_bit_range_vector): New function, factored out from
690 mark_value_bits_unavailable.
691 (mark_value_bits_unavailable): Reimplement.
692 (struct ranges_and_idx): New struct.
693 (find_first_range_overlap_and_match): New function, factored out
694 from value_available_contents_bits_eq.
695 (value_available_contents_bits_eq): Rename to ...
696 (value_contents_bits_eq): ... this. Check both unavailable
697 contents and optimized out contents.
698 (value_available_contents_eq): Rename to ...
699 (value_contents_eq): ... this.
700 (allocate_value_lazy): Remove reference to the old optimized_out
701 boolean.
702 (allocate_optimized_out_value): Use
703 mark_value_bytes_optimized_out.
704 (require_not_optimized_out): Adjust to check whether the
705 optimized_out vec is empty.
706 (ranges_copy_adjusted): New function, factored out from
707 value_contents_copy_raw.
708 (value_contents_copy_raw): Also copy the optimized out ranges.
709 Assert the destination ranges aren't optimized out.
710 (value_contents_copy): Update comment, remove call to
711 require_not_optimized_out.
712 (value_contents_equal): Adjust to check whether the optimized_out
713 vec is empty.
714 (set_value_optimized_out, value_optimized_out_const): Delete.
715 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
716 New functions.
717 (value_entirely_optimized_out, value_bits_valid): Delete.
718 (value_copy): Take a VEC copy of the 'optimized_out' field.
719 (value_primitive_field): Remove special handling of optimized out.
720 (value_fetch_lazy): Assert that lazy values have no unavailable
721 regions. Use value_bits_any_optimized_out. Remove some special
722 handling for optimized out values.
723 * value.h: Add intro comment about <optimized out> and
724 <unavailable>.
725 (struct lval_funcs): Remove check_validity and check_any_valid
726 fields.
727 (set_value_optimized_out, value_optimized_out_const): Remove.
728 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
729 New declarations.
730 (value_bits_any_optimized_out): New declaration.
731 (value_bits_valid): Delete declaration.
732 (value_available_contents_eq): Rename to ...
733 (value_contents_eq): ... this, and extend comments.
734
6694c411
JK
7352014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
736
737 Fix -fsanitize=address on unreadable inferior strings.
738 * valprint.c (val_print_string): Fix access before BUFFER.
739
89a1c21a
SM
7402014-08-19 Simon Marchi <simon.marchi@ericsson.com>
741
742 * target.c (target_struct_size): Remove.
743 (target_struct_allocsize): Remove.
744 (DEFAULT_ALLOCSIZE): Remove.
745 (target_ops_p): New typedef.
746 (DEF_VEC_P (target_ops_p)): New vector type.
747 (target_structs): Change type to VEC (target_ops_p).
748 (add_target_with_completer): Replace "push" code by VEC_safe_push.
749 (find_default_run_target): Rewrite for loop following changes to
750 target_structs.
751
cb417230
JB
7522014-08-19 Joel Brobecker <brobecker@adacore.com>
753
754 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
755 Adjust code accordingly. Adjust function description comment.
756
817e0957
YQ
7572014-08-19 Yao Qi <yao@codesourcery.com>
758
759 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
760 types.
761
2974be62
AM
7622014-08-19 Alan Modra <amodra@gmail.com>
763
764 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
765 * config.in: Regenerate.
766 * configure: Regenerate.
767
34abf635
GB
7682014-08-19 Tom Tromey <tromey@redhat.com>
769 Gary Benson <gbenson@redhat.com>
770
771 * common/common-debug.h: New file.
772 * common/common-debug.c: Likewise.
773 * debug.c: Likewise.
774 * Makefile.in (SFILES): Add common/common-debug.c.
775 (HFILES_NO_SRCDIR): Add common/common-debug.h.
776 (COMMON_OBS): Add common-debug.o and debug.o.
777 (common-debug.o): New rule.
778 * common/common-defs.h: Include common-debug.h.
779 * common/agent.c (debug_agent_printf): New function.
780 (DEBUG_AGENT): Redefine.
781 * nat/i386-dregs.c (debug_printf): Undefine.
782
f6e94d78
GB
7832014-08-19 Gary Benson <gbenson@redhat.com>
784
785 * common/common-defs.h: Include print-utils.h.
786 * utils.h: Do not include print-utils.h.
787
9239eeab
GB
7882014-08-19 Tom Tromey <tromey@redhat.com>
789 Gary Benson <gbenson@redhat.com>
790
791 * common/common-types.h: New file.
792 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
793 * common/common-defs.h: Include common-types.h.
794 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
795 (ULONGEST): Remove.
796
ef87c8bb
GB
7972014-08-19 Tom Tromey <tromey@redhat.com>
798 Gary Benson <gbenson@redhat.com>
799
800 * common/errors.h: New file.
801 * common/errors.c: Likewise.
802 * Makefile.in (SFILES): Add common/errors.c.
803 (HFILES_NO_SRCDIR): Add common/errors.h.
804 (COMMON_OBS): Add errors.o.
805 (errors.o): New rule.
806 * common/common-defs.h: Include errors.h.
807 * utils.h (perror_with_name, error, verror, warning, vwarning):
808 Don't declare.
809 * common/common-utils.h: (malloc_failure, internal_error):
810 Likewise.
811
196a707b
GB
8122014-08-19 Gary Benson <gbenson@redhat.com>
813
814 * utils.c (internal_vproblem): Always print the message.
815
ded4fc8f
DE
8162014-08-18 Doug Evans <dje@google.com>
817
818 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
819
950c97d8
JB
8202014-08-18 Joel Brobecker <brobecker@adacore.com>
821
822 * ada-typeprint.c (type_is_full_subrange_of_target_type):
823 Return 0 if TYPE is dynamic.
824 (print_range): Add handling of dynamic ranges.
825
3cdcd0ce
JB
8262014-08-18 Keven Boell <keven.boell@intel.com>
827 Joel Brobecker <brobecker@adacore.com>
828
829 * gdbtypes.h (struct main_type): Add field "data_location".
830 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
831 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
832 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
833 a dynamic data location.
834 (resolve_dynamic_type): Add DW_AT_data_location handling.
835 (copy_recursive, copy_type): Copy the data_location information
836 when present.
837 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
838 * value.c (value_from_contents_and_address): Add
839 DW_AT_data_location handling.
840
08412b07
JB
8412014-08-18 Keven Boell <keven.boell@intel.com>
842 Joel Brobecker <brobecker@adacore.com>
843
844 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
845 field "get_object_address".
846 * dwarf2expr.c (execute_stack_op): Add handling for
847 DW_OP_push_object_address.
848 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
849 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
850 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
851 (dwarf_expr_get_obj_addr): New function.
852 (dwarf_expr_ctx_funcs): Add get_object_address field.
853 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
854 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
855 (dwarf2_evaluate_property): Add parameter "address". Use it.
856 (needs_get_obj_addr): New function.
857 (needs_frame_ctx_funcs): Add get_object_address field.
858 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
859 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
860 (resolve_dynamic_array): Likewise.
861
84754697
JB
8622014-08-18 Joel Brobecker <brobecker@adacore.com>
863
864 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
865 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
866 fixed value for records and unions for which some GNAT encodings
867 are present.
868
da5c522f
JB
8692014-08-18 Joel Brobecker <brobecker@adacore.com>
870
871 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
872 rewrite to avoid "else if" and "else" constructs. Should be
873 a no-op in practice.
874
0d72a7c3
JB
8752014-08-18 Joel Brobecker <brobecker@adacore.com>
876
877 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
878 of lexical block.
879
e66d4446
SC
8802014-08-15 Siva Chandra Reddy <sivachandra@google.com>
881
882 PR c++/17132
883 * eval.c: Update all calls to find_overload_match.
884 * valarith.c: Likewise.
885 (value_user_defined_cpp_op, value_user_defined_op): New
886 argument NOSIDE. Update all callers.
887 * valops.c (find_overload_match): New argument NOSIDE.
888 * value.h (find_overload_match): Update signature.
889
940df408
SC
8902014-08-15 Siva Chandra Reddy <sivachandra@google.com>
891
892 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
893 'items' methods instead of 'iteritems' method on dictionaries.
894
699ca60a
DE
8952014-08-15 Doug Evans <dje@google.com>
896
897 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
898 closer to use.
899
37780ee5
DE
9002014-08-15 Doug Evans <dje@google.com>
901
902 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
903
0ad93d4f
DE
9042014-08-15 Doug Evans <dje@google.com>
905
906 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
907
20d8c372
DE
9082014-08-15 Doug Evans <dje@google.com>
909
910 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
911 unused.
912
cb039ba4
EZ
9132014-08-15 Eli Zaretskii <eliz@gnu.org>
914
915 * dcache.h: Include target.h, to avoid compile time warnings.
916
eb7a547a
JB
9172014-08-15 Joel Brobecker <brobecker@adacore.com>
918
919 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
920 frame_info" partial declaration.
921 * gdbarch.h: Regenerate.
922
783cecc8
YQ
9232014-08-15 Yao Qi <yao@codesourcery.com>
924
925 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
926 Add parameter 'decode_for_pst_p'. Callers update.
927
65c749e7
YQ
9282014-08-13 Yao Qi <yao@codesourcery.com>
929
930 PR build/17104
931 * configure.ac: Use local variable 'pos'.
932 * configure: Regenerated.
933
d769e349
DE
9342014-08-11 Doug Evans <dje@google.com>
935
936 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
937 message, it is redundant with "Reading symbols from ..." message.
938
24f1235e
DE
9392014-08-10 Doug Evans <xdje42@gmail.com>
940
941 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
942
dcd2e6ef
YQ
9432014-08-09 Yao Qi <yao@codesourcery.com>
944
945 PR remote/9053
946 * remote.c (remote_xfer_partial): Remove dead code.
947
070bdf0b
AA
9482014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
949
950 * ia64-linux-tdep.c: Include "regset.h".
951 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
952 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
953 (ia64_linux_supply_fpregset): New function.
954 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
955 (ia64_linux_regset_from_core_section): New function.
956 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
957 method.
958
08f9f542
AA
9592014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
960
961 * m68klinux-tdep.c: Include "regset.h".
962 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
963 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
964 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
965 (m68k_linux_regset_from_core_section): New function.
966 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
967 method.
968
8f1cee41
AA
9692014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
970
971 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
972 function. Move logic to...
973 (tilegx_linux_regmap): ... this new register map.
974 (tilegx_linux_regset): Refer to register map, replace supply
975 method by regcache_supply_regset, and add collect method.
976 * tilegx-tdep.h (enum tilegx_regnum): New enum value
977 TILEGX_FIRST_EASY_REGNUM.
978
c5741217
AA
9792014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
980
981 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
982 that calls regcache_supply_regset and handles the EPC register
983 separately. Move main logic to...
984 (score7_linux_gregmap): ... this new register map.
985 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
986 (score7_linux_gregset): Refer to register map. Add collect method.
987 (score7_linux_regset_from_core_section): Replace
988 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
989 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
990 (struct regset): Delete unused forward declaraction.
991 (struct pt_regs): Delete structure definition.
992 (elf_gregset_t): Delete typedef.
993
81580573
AA
9942014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
995
996 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
997 (nios2_core_regset): Add collect method.
998
ba199d7d
AA
9992014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1000
1001 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
1002 platform-independent and don't write to read-only input buffer.
1003 (m32r_linux_collect_gregset): New function.
1004 (m32r_linux_gregset): Add collect method.
1005
0006a9da
AA
10062014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1007
1008 * hppa-linux-tdep.c (greg_map): Rename to...
1009 (hppa_linux_gregmap): ... this. Also convert to
1010 regcache_map_entry format.
1011 (hppa_linux_supply_regset): Delete function.
1012 (hppa_linux_supply_fpregset): Delete function. Move logic to...
1013 (hppa_linux_fpregmap): ... this new register map.
1014 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
1015 register map, replace supply method by regcache_supply_regset, and
1016 add collect method regcache_collect_regset.
1017
901e1b23
AA
10182014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1019
1020 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
1021 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
1022 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
1023 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
1024 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
1025 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
1026 (frv_linux_supply_gregset): Replace main logic by call to
1027 regcache_supply_regset, but keep clearing gr32-gr63.
1028 (frv_linux_supply_fpregset): Delete function.
1029 (frv_linux_gregset): Refer to appropriate register map and add
1030 regcache_collect_regset as the collect method.
1031 (frv_linux_fpregset): Likewise. Also exchange the supply method
1032 by regcache_supply_regset.
1033
1d6e7555
AA
10342014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1035
1036 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
1037 by call to alpha_supply_int_regs.
1038 (alpha_linux_collect_gregset): New function.
1039 (alpha_linux_supply_fpregset): Replace logic by call to
1040 alpha_supply_fp_regs.
1041 (alpha_linux_collect_fpregset): New function.
1042 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
1043
d4d793bf
AA
10442014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1045
1046 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
1047 by call to regcache_collect_regset.
1048 (supply_gregset, supply_fpregset): Call regcache_supply_regset
1049 instead of aarch64_linux_supply_gregset/_fpregset.
1050 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
1051 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
1052 header file instead.
1053 (aarch64_linux_supply_gregset, supply_gregset_from_core)
1054 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
1055 functions. Move logic to ...
1056 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
1057 register maps.
1058 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
1059 refer to new register maps, replace *_regset_from_core by
1060 regcache_supply_regset, and also use regcache_collect_regset.
1061 * aarch64-linux-tdep.h: Include "regset.h".
1062 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
1063 Delete prototypes.
1064 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
1065 macros, moved from C source file.
1066 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
1067 variable declarations.
1068
99b7da5d
AA
10692014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1070
1071 * s390-linux-nat.c: Include "regset.h".
1072 (regmap_gregset): Delete macro.
1073 (s390_64_regmap_gregset): New register map for
1074 regcache_supply/_collect_regset.
1075 (s390_64_gregset): New regset.
1076 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
1077 (regmap_fpregset): Delete macro.
1078 (s390_native_supply, s390_native_collect): Delete functions.
1079 (supply_gregset, fill_gregset): Replace s390-specific regmap
1080 handling by a call to regcache_supply/_collect_regset.
1081 (supply_fpregset, fill_fpregset): Call regcache_supply/
1082 _collect_regset instead of s390_native_supply/_collect.
1083 (fetch_regset, store_regset): Likewise. Also change the last
1084 parameter to a regset instead of a regmap.
1085 (s390_linux_fetch_inferior_registers)
1086 (390_linux_store_inferior_registers): Adjust last parameter in
1087 calls to fetch_regset and store_regset.
1088 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
1089 (s390_gregmap): ... this. Also make static const and convert to
1090 regcache_map_entry format.
1091 (s390x_regmap_gregset): Delete.
1092 (s390_regmap_fpregset): Rename to...
1093 (s390_fpregmap): ... this. Make static const and convert to
1094 regcache_map_entry format.
1095 (s390_regmap_upper, s390_regmap_last_break)
1096 (s390x_regmap_last_break, s390_regmap_system_call)
1097 (s390_regmap_tdb): Likewise.
1098 (s390_supply_regset, s390_collect_regset): Remove functions.
1099 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
1100 s390_supply_regset.
1101 (s390_gregset, s390_fpregset, s390_upper_regset)
1102 (s390_last_break_regset, s390x_last_break_regset)
1103 (s390_system_call_regset, s390_tdb_regset): Make global and
1104 replace s390_supply/_collect_regset by regcache_supply/
1105 _collect_regset.
1106 (s390x_gregset): Delete.
1107 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
1108 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
1109 (s390_regmap_fpregset, s390_regmap_last_break)
1110 (s390x_regmap_last_break, s390_regmap_system_call)
1111 (s390_regmap_tdb): Delete global variable declarations.
1112 (s390_gregset, s390_fpregset, s390_last_break_regset)
1113 (s390x_last_break_regset, s390_system_call_regset)
1114 (s390_tdb_regset): New global variable declarations.
1115
0b309272
AA
11162014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1117
1118 * regcache.c: Include "regset.h".
1119 (regcache_transfer_regset): New local function.
1120 (regcache_supply_regset, regcache_collect_regset): New functions.
1121 * regcache.h (struct regcache_map_entry): New structure.
1122 (REGCACHE_MAP_SKIP): New enum value.
1123 (regcache_supply_regset, regcache_collect_regset): New prototypes.
1124
7fefa8d7
AA
11252014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1126
1127 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
1128 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
1129 (ppc_linux_collect_gregset ): Likewise.
1130 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
1131 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
1132 (ppc_collect_vrregset): Likewise.
1133 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
1134 Likewise.
1135
96c4f946
YQ
11362014-08-07 Yao Qi <yao@codesourcery.com>
1137
1138 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
1139 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
1140 * remote.c (remote_read_bytes): Likewise.
1141
fffbe6a8
YQ
11422014-08-07 Yao Qi <yao@codesourcery.com>
1143
1144 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
1145
5ee8a82c
YQ
11462014-08-07 Yao Qi <yao@codesourcery.com>
1147
1148 PR remote/17230
1149 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
1150 TARGET_XFER_OK instead of 0.
1151
bb974a24
GB
11522014-08-07 Gary Benson <gbenson@redhat.com>
1153
1154 * common/common-defs.h: Include errno.h.
1155 * defs.h: Do not include errno.h.
1156 * ada-typeprint.c: Likewise.
1157 * c-typeprint.c: Likewise.
1158 * core-regset.c: Likewise.
1159 * corefile.c: Likewise.
1160 * corelow.c: Likewise.
1161 * event-loop.c: Likewise.
1162 * f-typeprint.c: Likewise.
1163 * gnu-nat.c: Likewise.
1164 * go32-nat.c: Likewise.
1165 * i386gnu-nat.c: Likewise.
1166 * m2-typeprint.c: Likewise.
1167 * nat/linux-btrace.c: Likewise.
1168 * p-typeprint.c: Likewise.
1169 * procfs.c: Likewise.
1170 * remote-sim.c: Likewise.
1171 * rs6000-nat.c: Likewise.
1172 * target.c: Likewise.
1173 * typeprint.c: Likewise.
1174 * ui-file.c: Likewise.
1175 * valops.c: Likewise.
1176 * valprint.c: Likewise.
1177
6d3d12eb
GB
11782014-08-07 Gary Benson <gbenson@redhat.com>
1179
1180 * common/common-defs.h: Include string.h.
1181 * aarch64-tdep.c: Do not include string.h.
1182 * ada-exp.y: Likewise.
1183 * ada-lang.c: Likewise.
1184 * ada-lex.l: Likewise.
1185 * ada-typeprint.c: Likewise.
1186 * ada-valprint.c: Likewise.
1187 * aix-thread.c: Likewise.
1188 * alpha-linux-tdep.c: Likewise.
1189 * alpha-mdebug-tdep.c: Likewise.
1190 * alpha-nat.c: Likewise.
1191 * alpha-osf1-tdep.c: Likewise.
1192 * alpha-tdep.c: Likewise.
1193 * alphanbsd-tdep.c: Likewise.
1194 * amd64-dicos-tdep.c: Likewise.
1195 * amd64-linux-tdep.c: Likewise.
1196 * amd64-nat.c: Likewise.
1197 * amd64-sol2-tdep.c: Likewise.
1198 * amd64fbsd-tdep.c: Likewise.
1199 * amd64obsd-tdep.c: Likewise.
1200 * arch-utils.c: Likewise.
1201 * arm-linux-nat.c: Likewise.
1202 * arm-linux-tdep.c: Likewise.
1203 * arm-tdep.c: Likewise.
1204 * arm-wince-tdep.c: Likewise.
1205 * armbsd-tdep.c: Likewise.
1206 * armnbsd-nat.c: Likewise.
1207 * armnbsd-tdep.c: Likewise.
1208 * armobsd-tdep.c: Likewise.
1209 * avr-tdep.c: Likewise.
1210 * ax-gdb.c: Likewise.
1211 * ax-general.c: Likewise.
1212 * bcache.c: Likewise.
1213 * bfin-tdep.c: Likewise.
1214 * breakpoint.c: Likewise.
1215 * build-id.c: Likewise.
1216 * buildsym.c: Likewise.
1217 * c-exp.y: Likewise.
1218 * c-lang.c: Likewise.
1219 * c-typeprint.c: Likewise.
1220 * c-valprint.c: Likewise.
1221 * charset.c: Likewise.
1222 * cli-out.c: Likewise.
1223 * cli/cli-cmds.c: Likewise.
1224 * cli/cli-decode.c: Likewise.
1225 * cli/cli-dump.c: Likewise.
1226 * cli/cli-interp.c: Likewise.
1227 * cli/cli-logging.c: Likewise.
1228 * cli/cli-script.c: Likewise.
1229 * cli/cli-setshow.c: Likewise.
1230 * cli/cli-utils.c: Likewise.
1231 * coffread.c: Likewise.
1232 * common/agent.c: Likewise.
1233 * common/buffer.c: Likewise.
1234 * common/buffer.h: Likewise.
1235 * common/common-utils.c: Likewise.
1236 * common/filestuff.c: Likewise.
1237 * common/filestuff.c: Likewise.
1238 * common/format.c: Likewise.
1239 * common/print-utils.c: Likewise.
1240 * common/rsp-low.c: Likewise.
1241 * common/signals.c: Likewise.
1242 * common/vec.h: Likewise.
1243 * common/xml-utils.c: Likewise.
1244 * core-regset.c: Likewise.
1245 * corefile.c: Likewise.
1246 * corelow.c: Likewise.
1247 * cp-abi.c: Likewise.
1248 * cp-name-parser.y: Likewise.
1249 * cp-support.c: Likewise.
1250 * cp-valprint.c: Likewise.
1251 * cris-tdep.c: Likewise.
1252 * d-exp.y: Likewise.
1253 * darwin-nat.c: Likewise.
1254 * dbxread.c: Likewise.
1255 * dcache.c: Likewise.
1256 * demangle.c: Likewise.
1257 * dicos-tdep.c: Likewise.
1258 * disasm.c: Likewise.
1259 * doublest.c: Likewise.
1260 * dsrec.c: Likewise.
1261 * dummy-frame.c: Likewise.
1262 * dwarf2-frame.c: Likewise.
1263 * dwarf2loc.c: Likewise.
1264 * dwarf2read.c: Likewise.
1265 * elfread.c: Likewise.
1266 * environ.c: Likewise.
1267 * eval.c: Likewise.
1268 * event-loop.c: Likewise.
1269 * exceptions.c: Likewise.
1270 * exec.c: Likewise.
1271 * expprint.c: Likewise.
1272 * f-exp.y: Likewise.
1273 * f-lang.c: Likewise.
1274 * f-typeprint.c: Likewise.
1275 * f-valprint.c: Likewise.
1276 * fbsd-nat.c: Likewise.
1277 * findcmd.c: Likewise.
1278 * findvar.c: Likewise.
1279 * fork-child.c: Likewise.
1280 * frame.c: Likewise.
1281 * frv-linux-tdep.c: Likewise.
1282 * frv-tdep.c: Likewise.
1283 * gdb.c: Likewise.
1284 * gdb_bfd.c: Likewise.
1285 * gdbarch.c: Likewise.
1286 * gdbarch.sh: Likewise.
1287 * gdbtypes.c: Likewise.
1288 * gnu-nat.c: Likewise.
1289 * gnu-v2-abi.c: Likewise.
1290 * gnu-v3-abi.c: Likewise.
1291 * go-exp.y: Likewise.
1292 * go-lang.c: Likewise.
1293 * go32-nat.c: Likewise.
1294 * guile/guile.c: Likewise.
1295 * guile/scm-auto-load.c: Likewise.
1296 * hppa-hpux-tdep.c: Likewise.
1297 * hppa-linux-nat.c: Likewise.
1298 * hppanbsd-tdep.c: Likewise.
1299 * hppaobsd-tdep.c: Likewise.
1300 * i386-cygwin-tdep.c: Likewise.
1301 * i386-dicos-tdep.c: Likewise.
1302 * i386-linux-tdep.c: Likewise.
1303 * i386-nto-tdep.c: Likewise.
1304 * i386-sol2-tdep.c: Likewise.
1305 * i386-tdep.c: Likewise.
1306 * i386bsd-tdep.c: Likewise.
1307 * i386gnu-nat.c: Likewise.
1308 * i386nbsd-tdep.c: Likewise.
1309 * i386obsd-tdep.c: Likewise.
1310 * i387-tdep.c: Likewise.
1311 * ia64-libunwind-tdep.c: Likewise.
1312 * ia64-linux-nat.c: Likewise.
1313 * inf-child.c: Likewise.
1314 * inf-ptrace.c: Likewise.
1315 * inf-ttrace.c: Likewise.
1316 * infcall.c: Likewise.
1317 * infcmd.c: Likewise.
1318 * inflow.c: Likewise.
1319 * infrun.c: Likewise.
1320 * interps.c: Likewise.
1321 * iq2000-tdep.c: Likewise.
1322 * irix5-nat.c: Likewise.
1323 * jv-exp.y: Likewise.
1324 * jv-lang.c: Likewise.
1325 * jv-typeprint.c: Likewise.
1326 * jv-valprint.c: Likewise.
1327 * language.c: Likewise.
1328 * linux-fork.c: Likewise.
1329 * linux-nat.c: Likewise.
1330 * lm32-tdep.c: Likewise.
1331 * m2-exp.y: Likewise.
1332 * m2-typeprint.c: Likewise.
1333 * m32c-tdep.c: Likewise.
1334 * m32r-linux-nat.c: Likewise.
1335 * m32r-linux-tdep.c: Likewise.
1336 * m32r-rom.c: Likewise.
1337 * m32r-tdep.c: Likewise.
1338 * m68hc11-tdep.c: Likewise.
1339 * m68k-tdep.c: Likewise.
1340 * m68kbsd-tdep.c: Likewise.
1341 * m68klinux-nat.c: Likewise.
1342 * m68klinux-tdep.c: Likewise.
1343 * m88k-tdep.c: Likewise.
1344 * machoread.c: Likewise.
1345 * macrocmd.c: Likewise.
1346 * main.c: Likewise.
1347 * mdebugread.c: Likewise.
1348 * mem-break.c: Likewise.
1349 * memattr.c: Likewise.
1350 * memory-map.c: Likewise.
1351 * mep-tdep.c: Likewise.
1352 * mi/mi-cmd-break.c: Likewise.
1353 * mi/mi-cmd-disas.c: Likewise.
1354 * mi/mi-cmd-env.c: Likewise.
1355 * mi/mi-cmd-stack.c: Likewise.
1356 * mi/mi-cmd-var.c: Likewise.
1357 * mi/mi-cmds.c: Likewise.
1358 * mi/mi-console.c: Likewise.
1359 * mi/mi-getopt.c: Likewise.
1360 * mi/mi-interp.c: Likewise.
1361 * mi/mi-main.c: Likewise.
1362 * mi/mi-parse.c: Likewise.
1363 * microblaze-rom.c: Likewise.
1364 * microblaze-tdep.c: Likewise.
1365 * mingw-hdep.c: Likewise.
1366 * minidebug.c: Likewise.
1367 * minsyms.c: Likewise.
1368 * mips-irix-tdep.c: Likewise.
1369 * mips-linux-tdep.c: Likewise.
1370 * mips-tdep.c: Likewise.
1371 * mips64obsd-tdep.c: Likewise.
1372 * mipsnbsd-tdep.c: Likewise.
1373 * mipsread.c: Likewise.
1374 * mn10300-linux-tdep.c: Likewise.
1375 * mn10300-tdep.c: Likewise.
1376 * monitor.c: Likewise.
1377 * moxie-tdep.c: Likewise.
1378 * mt-tdep.c: Likewise.
1379 * nat/linux-btrace.c: Likewise.
1380 * nat/linux-osdata.c: Likewise.
1381 * nat/linux-procfs.c: Likewise.
1382 * nat/linux-ptrace.c: Likewise.
1383 * nat/linux-waitpid.c: Likewise.
1384 * nbsd-tdep.c: Likewise.
1385 * nios2-linux-tdep.c: Likewise.
1386 * nto-procfs.c: Likewise.
1387 * nto-tdep.c: Likewise.
1388 * objc-lang.c: Likewise.
1389 * objfiles.c: Likewise.
1390 * opencl-lang.c: Likewise.
1391 * osabi.c: Likewise.
1392 * osdata.c: Likewise.
1393 * p-exp.y: Likewise.
1394 * p-lang.c: Likewise.
1395 * p-typeprint.c: Likewise.
1396 * parse.c: Likewise.
1397 * posix-hdep.c: Likewise.
1398 * ppc-linux-nat.c: Likewise.
1399 * ppc-sysv-tdep.c: Likewise.
1400 * ppcfbsd-tdep.c: Likewise.
1401 * ppcnbsd-tdep.c: Likewise.
1402 * ppcobsd-tdep.c: Likewise.
1403 * printcmd.c: Likewise.
1404 * procfs.c: Likewise.
1405 * prologue-value.c: Likewise.
1406 * python/py-auto-load.c: Likewise.
1407 * python/py-gdb-readline.c: Likewise.
1408 * ravenscar-thread.c: Likewise.
1409 * regcache.c: Likewise.
1410 * registry.c: Likewise.
1411 * remote-fileio.c: Likewise.
1412 * remote-m32r-sdi.c: Likewise.
1413 * remote-mips.c: Likewise.
1414 * remote-notif.c: Likewise.
1415 * remote-sim.c: Likewise.
1416 * remote.c: Likewise.
1417 * reverse.c: Likewise.
1418 * rs6000-aix-tdep.c: Likewise.
1419 * ser-base.c: Likewise.
1420 * ser-go32.c: Likewise.
1421 * ser-mingw.c: Likewise.
1422 * ser-pipe.c: Likewise.
1423 * ser-tcp.c: Likewise.
1424 * ser-unix.c: Likewise.
1425 * serial.c: Likewise.
1426 * sh-tdep.c: Likewise.
1427 * sh64-tdep.c: Likewise.
1428 * shnbsd-tdep.c: Likewise.
1429 * skip.c: Likewise.
1430 * sol-thread.c: Likewise.
1431 * solib-dsbt.c: Likewise.
1432 * solib-frv.c: Likewise.
1433 * solib-osf.c: Likewise.
1434 * solib-som.c: Likewise.
1435 * solib-spu.c: Likewise.
1436 * solib-target.c: Likewise.
1437 * solib.c: Likewise.
1438 * somread.c: Likewise.
1439 * source.c: Likewise.
1440 * sparc-nat.c: Likewise.
1441 * sparc-sol2-tdep.c: Likewise.
1442 * sparc-tdep.c: Likewise.
1443 * sparc64-tdep.c: Likewise.
1444 * sparc64fbsd-tdep.c: Likewise.
1445 * sparc64nbsd-tdep.c: Likewise.
1446 * sparcnbsd-tdep.c: Likewise.
1447 * spu-linux-nat.c: Likewise.
1448 * spu-multiarch.c: Likewise.
1449 * spu-tdep.c: Likewise.
1450 * stabsread.c: Likewise.
1451 * stack.c: Likewise.
1452 * std-regs.c: Likewise.
1453 * symfile.c: Likewise.
1454 * symmisc.c: Likewise.
1455 * symtab.c: Likewise.
1456 * target.c: Likewise.
1457 * thread.c: Likewise.
1458 * tilegx-linux-nat.c: Likewise.
1459 * tilegx-tdep.c: Likewise.
1460 * top.c: Likewise.
1461 * tracepoint.c: Likewise.
1462 * tui/tui-command.c: Likewise.
1463 * tui/tui-data.c: Likewise.
1464 * tui/tui-disasm.c: Likewise.
1465 * tui/tui-file.c: Likewise.
1466 * tui/tui-layout.c: Likewise.
1467 * tui/tui-out.c: Likewise.
1468 * tui/tui-regs.c: Likewise.
1469 * tui/tui-source.c: Likewise.
1470 * tui/tui-stack.c: Likewise.
1471 * tui/tui-win.c: Likewise.
1472 * tui/tui-windata.c: Likewise.
1473 * tui/tui-winsource.c: Likewise.
1474 * typeprint.c: Likewise.
1475 * ui-file.c: Likewise.
1476 * ui-out.c: Likewise.
1477 * user-regs.c: Likewise.
1478 * utils.c: Likewise.
1479 * v850-tdep.c: Likewise.
1480 * valarith.c: Likewise.
1481 * valops.c: Likewise.
1482 * valprint.c: Likewise.
1483 * value.c: Likewise.
1484 * varobj.c: Likewise.
1485 * vax-tdep.c: Likewise.
1486 * vaxnbsd-tdep.c: Likewise.
1487 * vaxobsd-tdep.c: Likewise.
1488 * windows-nat.c: Likewise.
1489 * xcoffread.c: Likewise.
1490 * xml-support.c: Likewise.
1491 * xstormy16-tdep.c: Likewise.
1492 * xtensa-linux-nat.c: Likewise.
1493
dccbb609
GB
14942014-08-07 Gary Benson <gbenson@redhat.com>
1495
1496 * common/common-defs.h: Include gdb_assert.h.
1497 * aarch64-tdep.c: Do not include gdb_assert.h.
1498 * addrmap.c: Likewise.
1499 * aix-thread.c: Likewise.
1500 * alpha-linux-tdep.c: Likewise.
1501 * alpha-mdebug-tdep.c: Likewise.
1502 * alphanbsd-tdep.c: Likewise.
1503 * amd64-nat.c: Likewise.
1504 * amd64-tdep.c: Likewise.
1505 * amd64bsd-nat.c: Likewise.
1506 * amd64fbsd-nat.c: Likewise.
1507 * amd64fbsd-tdep.c: Likewise.
1508 * amd64nbsd-nat.c: Likewise.
1509 * amd64nbsd-tdep.c: Likewise.
1510 * amd64obsd-nat.c: Likewise.
1511 * amd64obsd-tdep.c: Likewise.
1512 * arch-utils.c: Likewise.
1513 * arm-tdep.c: Likewise.
1514 * armbsd-tdep.c: Likewise.
1515 * auxv.c: Likewise.
1516 * bcache.c: Likewise.
1517 * bfin-tdep.c: Likewise.
1518 * blockframe.c: Likewise.
1519 * breakpoint.c: Likewise.
1520 * bsd-kvm.c: Likewise.
1521 * bsd-uthread.c: Likewise.
1522 * buildsym.c: Likewise.
1523 * c-exp.y: Likewise.
1524 * c-lang.c: Likewise.
1525 * charset.c: Likewise.
1526 * cleanups.c: Likewise.
1527 * cli-out.c: Likewise.
1528 * cli/cli-decode.c: Likewise.
1529 * cli/cli-dump.c: Likewise.
1530 * cli/cli-logging.c: Likewise.
1531 * cli/cli-script.c: Likewise.
1532 * cli/cli-utils.c: Likewise.
1533 * coffread.c: Likewise.
1534 * common/common-utils.c: Likewise.
1535 * common/queue.h: Likewise.
1536 * common/signals.c: Likewise.
1537 * common/vec.h: Likewise.
1538 * complaints.c: Likewise.
1539 * completer.c: Likewise.
1540 * corelow.c: Likewise.
1541 * cp-abi.c: Likewise.
1542 * cp-name-parser.y: Likewise.
1543 * cp-namespace.c: Likewise.
1544 * cp-support.c: Likewise.
1545 * cris-tdep.c: Likewise.
1546 * dbxread.c: Likewise.
1547 * dictionary.c: Likewise.
1548 * doublest.c: Likewise.
1549 * dsrec.c: Likewise.
1550 * dummy-frame.c: Likewise.
1551 * dwarf2-frame-tailcall.c: Likewise.
1552 * dwarf2-frame.c: Likewise.
1553 * dwarf2expr.c: Likewise.
1554 * dwarf2loc.c: Likewise.
1555 * dwarf2read.c: Likewise.
1556 * eval.c: Likewise.
1557 * event-loop.c: Likewise.
1558 * exceptions.c: Likewise.
1559 * expprint.c: Likewise.
1560 * f-valprint.c: Likewise.
1561 * fbsd-nat.c: Likewise.
1562 * findvar.c: Likewise.
1563 * frame-unwind.c: Likewise.
1564 * frame.c: Likewise.
1565 * frv-tdep.c: Likewise.
1566 * gcore.c: Likewise.
1567 * gdb-dlfcn.c: Likewise.
1568 * gdb_bfd.c: Likewise.
1569 * gdbarch.c: Likewise.
1570 * gdbarch.sh: Likewise.
1571 * gdbtypes.c: Likewise.
1572 * gnu-nat.c: Likewise.
1573 * gnu-v3-abi.c: Likewise.
1574 * go-lang.c: Likewise.
1575 * guile/scm-exception.c: Likewise.
1576 * guile/scm-gsmob.c: Likewise.
1577 * guile/scm-lazy-string.c: Likewise.
1578 * guile/scm-math.c: Likewise.
1579 * guile/scm-pretty-print.c: Likewise.
1580 * guile/scm-safe-call.c: Likewise.
1581 * guile/scm-utils.c: Likewise.
1582 * guile/scm-value.c: Likewise.
1583 * h8300-tdep.c: Likewise.
1584 * hppa-hpux-nat.c: Likewise.
1585 * hppa-tdep.c: Likewise.
1586 * hppanbsd-tdep.c: Likewise.
1587 * hppaobsd-tdep.c: Likewise.
1588 * i386-darwin-nat.c: Likewise.
1589 * i386-darwin-tdep.c: Likewise.
1590 * i386-nto-tdep.c: Likewise.
1591 * i386-tdep.c: Likewise.
1592 * i386bsd-nat.c: Likewise.
1593 * i386fbsd-tdep.c: Likewise.
1594 * i386gnu-nat.c: Likewise.
1595 * i386nbsd-tdep.c: Likewise.
1596 * i386obsd-tdep.c: Likewise.
1597 * i387-tdep.c: Likewise.
1598 * ia64-libunwind-tdep.c: Likewise.
1599 * ia64-tdep.c: Likewise.
1600 * inf-ptrace.c: Likewise.
1601 * inf-ttrace.c: Likewise.
1602 * infcall.c: Likewise.
1603 * infcmd.c: Likewise.
1604 * infrun.c: Likewise.
1605 * inline-frame.c: Likewise.
1606 * interps.c: Likewise.
1607 * jv-lang.c: Likewise.
1608 * jv-typeprint.c: Likewise.
1609 * linux-fork.c: Likewise.
1610 * linux-nat.c: Likewise.
1611 * linux-thread-db.c: Likewise.
1612 * m32c-tdep.c: Likewise.
1613 * m32r-linux-nat.c: Likewise.
1614 * m32r-tdep.c: Likewise.
1615 * m68k-tdep.c: Likewise.
1616 * m68kbsd-nat.c: Likewise.
1617 * m68kbsd-tdep.c: Likewise.
1618 * m88k-tdep.c: Likewise.
1619 * machoread.c: Likewise.
1620 * macroexp.c: Likewise.
1621 * macrotab.c: Likewise.
1622 * maint.c: Likewise.
1623 * mdebugread.c: Likewise.
1624 * memory-map.c: Likewise.
1625 * mep-tdep.c: Likewise.
1626 * mi/mi-common.c: Likewise.
1627 * microblaze-tdep.c: Likewise.
1628 * mingw-hdep.c: Likewise.
1629 * mips-linux-nat.c: Likewise.
1630 * mips-linux-tdep.c: Likewise.
1631 * mips-tdep.c: Likewise.
1632 * mips64obsd-tdep.c: Likewise.
1633 * mipsnbsd-tdep.c: Likewise.
1634 * mn10300-linux-tdep.c: Likewise.
1635 * mn10300-tdep.c: Likewise.
1636 * moxie-tdep.c: Likewise.
1637 * mt-tdep.c: Likewise.
1638 * nat/linux-btrace.c: Likewise.
1639 * nat/linux-osdata.c: Likewise.
1640 * nat/linux-ptrace.c: Likewise.
1641 * nat/mips-linux-watch.c: Likewise.
1642 * nios2-linux-tdep.c: Likewise.
1643 * nios2-tdep.c: Likewise.
1644 * objc-lang.c: Likewise.
1645 * objfiles.c: Likewise.
1646 * obsd-nat.c: Likewise.
1647 * opencl-lang.c: Likewise.
1648 * osabi.c: Likewise.
1649 * parse.c: Likewise.
1650 * ppc-linux-nat.c: Likewise.
1651 * ppc-sysv-tdep.c: Likewise.
1652 * ppcfbsd-nat.c: Likewise.
1653 * ppcfbsd-tdep.c: Likewise.
1654 * ppcnbsd-nat.c: Likewise.
1655 * ppcnbsd-tdep.c: Likewise.
1656 * ppcobsd-nat.c: Likewise.
1657 * ppcobsd-tdep.c: Likewise.
1658 * printcmd.c: Likewise.
1659 * procfs.c: Likewise.
1660 * prologue-value.c: Likewise.
1661 * psymtab.c: Likewise.
1662 * python/py-lazy-string.c: Likewise.
1663 * python/py-value.c: Likewise.
1664 * regcache.c: Likewise.
1665 * reggroups.c: Likewise.
1666 * registry.c: Likewise.
1667 * remote-sim.c: Likewise.
1668 * remote.c: Likewise.
1669 * rs6000-aix-tdep.c: Likewise.
1670 * rs6000-tdep.c: Likewise.
1671 * s390-linux-tdep.c: Likewise.
1672 * score-tdep.c: Likewise.
1673 * ser-base.c: Likewise.
1674 * ser-mingw.c: Likewise.
1675 * sh-tdep.c: Likewise.
1676 * sh64-tdep.c: Likewise.
1677 * solib-darwin.c: Likewise.
1678 * solib-spu.c: Likewise.
1679 * solib-svr4.c: Likewise.
1680 * source.c: Likewise.
1681 * sparc-nat.c: Likewise.
1682 * sparc-sol2-tdep.c: Likewise.
1683 * sparc-tdep.c: Likewise.
1684 * sparc64-sol2-tdep.c: Likewise.
1685 * sparc64-tdep.c: Likewise.
1686 * sparc64fbsd-tdep.c: Likewise.
1687 * sparc64nbsd-tdep.c: Likewise.
1688 * sparc64obsd-tdep.c: Likewise.
1689 * sparcnbsd-tdep.c: Likewise.
1690 * sparcobsd-tdep.c: Likewise.
1691 * spu-multiarch.c: Likewise.
1692 * spu-tdep.c: Likewise.
1693 * stabsread.c: Likewise.
1694 * stack.c: Likewise.
1695 * symfile.c: Likewise.
1696 * symtab.c: Likewise.
1697 * target-descriptions.c: Likewise.
1698 * target-memory.c: Likewise.
1699 * target.c: Likewise.
1700 * tic6x-linux-tdep.c: Likewise.
1701 * tic6x-tdep.c: Likewise.
1702 * tilegx-linux-nat.c: Likewise.
1703 * tilegx-tdep.c: Likewise.
1704 * top.c: Likewise.
1705 * tramp-frame.c: Likewise.
1706 * tui/tui-out.c: Likewise.
1707 * tui/tui-winsource.c: Likewise.
1708 * ui-out.c: Likewise.
1709 * user-regs.c: Likewise.
1710 * utils.c: Likewise.
1711 * v850-tdep.c: Likewise.
1712 * valops.c: Likewise.
1713 * value.c: Likewise.
1714 * varobj.c: Likewise.
1715 * vax-nat.c: Likewise.
1716 * xml-syscall.c: Likewise.
1717 * xml-tdesc.c: Likewise.
1718 * xstormy16-tdep.c: Likewise.
1719 * xtensa-linux-nat.c: Likewise.
1720 * xtensa-tdep.c: Likewise.
1721
e76df0d0
GB
17222014-08-07 Gary Benson <gbenson@redhat.com>
1723
1724 * common/common-defs.h: Include common-utils.h.
1725 * defs.h: Do not include common-utils.h.
1726 * common/gdb_assert.h: Likewise.
1727 * darwin-nat.h: Likewise.
1728 * nat/linux-btrace.c: Likewise.
1729 * target/waitstatus.h: Likewise.
1730
4cb9c816
GB
17312014-08-07 Gary Benson <gbenson@redhat.com>
1732
1733 * common/common-defs.h: Include ptid.h.
1734 * defs.h: Do not include ptid.h.
1735 * inferior.h: Likewise.
1736 * infrun.h: Likewise.
1737 * nat/linux-btrace.h: Likewise.
1738 * nat/linux-osdata.h: Likewise.
1739 * target/waitstatus.h: Likewise.
1740
3995eeee
GB
17412014-08-07 Gary Benson <gbenson@redhat.com>
1742
1743 * common/common-defs.h: Include gdb_locale.h.
1744 * defs.h: Do not include gdb_locale.h.
1745
cb9f1a9b
GB
17462014-08-07 Gary Benson <gbenson@redhat.com>
1747
1748 * common/common-defs.h: Include gdb/signals.h.
1749 * defs.h: Do not include gdb/signals.h.
1750
a5fceff8
GB
17512014-08-07 Gary Benson <gbenson@redhat.com>
1752
1753 * common/common-defs.h: Include pathmax.h.
1754 * defs.h: Do not include pathmax.h.
1755
b9391142
GB
17562014-08-07 Gary Benson <gbenson@redhat.com>
1757
1758 * common/common-defs.h: Include libiberty.h.
1759 * defs.h: Do not include libiberty.h.
1760 * common/queue.h: Likewise.
1761 * cp-name-parser.y: Likewise.
1762 * mi/mi-cmd-catch.c: Likewise.
1763 * python/python.c: Likewise.
1764
0e443c87
GB
17652014-08-07 Gary Benson <gbenson@redhat.com>
1766
1767 * common/common-defs.h: Include ansidecl.h.
1768 * defs.h: Do not include ansidecl.h.
1769 * common/buffer.h: Likewise.
1770 * common/common-utils.h: Likewise.
1771
8ebb3f56
GB
17722014-08-07 Gary Benson <gbenson@redhat.com>
1773
1774 * common/common-defs.h: Include stddef.h.
1775 * defs.h: Do not include stddef.h.
1776 * common/common-utils.h: Likewise.
1777 * amd64fbsd-nat.c: Likewise.
1778 * bcache.c: Likewise.
1779 * charset.c: Likewise.
1780 * common/buffer.h: Likewise.
1781 * common/vec.h: Likewise.
1782 * i386bsd-nat.c: Likewise.
1783 * nat/linux-btrace.h: Likewise.
1784 * ppcfbsd-nat.c: Likewise.
1785 * ppcnbsd-tdep.h: Likewise.
1786 * ppcobsd-nat.c: Likewise.
1787 * ppcobsd-tdep.h: Likewise.
1788 * python/py-gdb-readline.c: Likewise.
1789
8980bdf6
GB
17902014-08-07 Gary Benson <gbenson@redhat.com>
1791
1792 * common/common-defs.h: Include stdarg.h.
1793 * defs.h: Do not include stdarg.h.
1794 * ada-lang.c: Likewise.
1795 * common/common-utils.h: Likewise.
1796 * guile/scm-string.c: Likewise.
1797 * guile/scm-utils.c: Likewise.
1798 * m32c-tdep.c: Likewise.
1799
d7096f71
GB
18002014-08-07 Gary Benson <gbenson@redhat.com>
1801
1802 * common/common-defs.h: Include stdlib.h.
1803 * defs.h: Do not include stdlib.h.
1804 * addrmap.c: Likewise.
1805 * bcache.c: Likewise.
1806 * common/buffer.c: Likewise.
1807 * common/common-utils.c: Likewise.
1808 * cp-name-parser.y: Likewise.
1809 * go32-nat.c: Likewise.
1810 * mn10300-linux-tdep.c: Likewise.
1811 * nat/linux-osdata.c: Likewise.
1812 * tui/tui.c: Likewise.
1813 * windows-nat.c: Likewise.
1814
d02f550d
GB
18152014-08-07 Gary Benson <gbenson@redhat.com>
1816
1817 * common/common-defs.h: Include stdio.h.
1818 * defs.h: Do not include stdio.h.
1819 * ada-lang.c: Likewise.
1820 * common/buffer.c: Likewise.
1821 * common/common-utils.c: Likewise.
1822 * cp-name-parser.y: Likewise.
1823 * gnu-nat.c: Likewise.
1824 * go32-nat.c: Likewise.
1825 * i386gnu-nat.c: Likewise.
1826 * proc-api.c: Likewise.
1827 * proc-events.c: Likewise.
1828 * proc-flags.c: Likewise.
1829 * proc-why.c: Likewise.
1830 * python/python-internal.h: Likewise.
1831 * target-memory.c: Likewise.
1832 * tui/tui-io.c: Likewise.
1833 * tui/tui.c: Likewise.
1834
b6d7a4bf
SM
18352014-08-06 Simon Marchi <simon.marchi@ericsson.com>
1836
1837 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
1838 (scan_dyntag_auxv): Same.
1839
af19829b
YQ
18402014-08-06 Yao Qi <yao@codesourcery.com>
1841
1842 * amd64-linux-nat.c: Remove duplicated include
1843 "x86-linux-nat.h".
1844 * i386-linux-nat.c: Likewise.
1845
8e07a239
YQ
18462014-08-06 Yao Qi <yao@codesourcery.com>
1847
1848 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
1849 operand" with "Special opcode" in comments.
1850
7bfe8241
GB
18512014-08-05 Gary Benson <gbenson@redhat.com>
1852
1853 * interps.c (initialize_interps): Remove prototype.
1854 (interpreter_initialized): Remove static global.
1855 (interp_add): Do not call initialize_interps.
1856 (initialize_interps): Remove function.
1857
d6c95504
GB
18582014-08-05 Gary Benson <gbenson@redhat.com>
1859
1860 * utils.c (vwarning): Remove spurious va_end.
1861
241fd515
AM
18622014-08-05 Alan Modra <amodra@gmail.com>
1863
1864 * charset.c (convert_between_encodings): Cast result of obstack_base.
1865 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
1866 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
1867 (read_unwind_info): Use size_t for some locals.
1868 * jit.c (finalize_symtab): Likewise.
1869 * utils.c (hashtab_obstack_allocate): Likewise.
1870 * symmisc.c (print_objfile_statistics): Update format strings.
1871
dc304a94
JK
18722014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1873
1874 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
1875 (Changes in GDB 7.8): ... here.
1876
3cecbbbe
TT
18772014-08-04 Tom Tromey <tromey@redhat.com>
1878
1879 * target.c (set_targetdebug): New function.
1880 (initialize_targets): Pass set_targetdebug when creating "set
1881 debug target".
1882
6908c509
JB
18832014-08-01 Joel Brobecker <brobecker@adacore.com>
1884
1885 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
1886 if detecting a variable-sized field that is not the last field.
1887 Fix struct type length computation.
1888
53e8f97d
JB
18892014-08-01 Joel Brobecker <brobecker@adacore.com>
1890
1891 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1892 Add debug trace.
1893
e068c55d
JB
18942014-08-01 Joel Brobecker <brobecker@adacore.com>
1895
1896 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1897 Remove "+ 8" offset in computation of CHAIN_VMA.
1898
4d4ca2a1
DE
18992014-07-31 Doug Evans <dje@google.com>
1900
1901 * inflow.c (child_terminal_inferior): Add comment.
1902 (child_terminal_ours_for_output): Add comment.
1903 (child_terminal_ours): Add comment.
1904 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
1905 (linux_nat_terminal_ours): Add comment.
1906
462f517e
GB
19072014-07-31 Gary Benson <gbenson@redhat.com>
1908
1909 * common/btrace-common.h: Do not include defs.h or server.h.
1910 * nat/mips-linux-watch.h: Likewise.
1911 * gdb-dlfcn.h: Do not include defs.h.
1912 * tracefile.h: Likewise.
1913
74228e77
RM
19142014-07-30 Roland McGrath <mcgrathr@google.com>
1915
1916 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
1917
014f9477
TT
19182014-07-30 Tom Tromey <tromey@redhat.com>
1919
1920 * bsd-kvm.c (bsd_kvm_open): Constify.
1921 * corelow.c (core_open): Constify.
1922 * ctf.c (ctf_open): Constify.
1923 * dbug-rom.c (dbug_open): Constify.
1924 * exec.c (exec_open): Constify.
1925 * m32r-rom.c (m32r_open, mon2000_open): Constify.
1926 * microblaze-rom.c (picobug_open): Constify.
1927 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
1928 Constify.
1929 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
1930 * record-btrace.c (record_btrace_open): Constify.
1931 * record-full.c (record_full_core_open_1, record_full_open_1)
1932 (record_full_open): Constify.
1933 * remote-m32r-sdi.c (m32r_open): Constify.
1934 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
1935 (rockhopper_open, lsi_open): Constify.
1936 * remote-sim.c (gdbsim_open): Constify.
1937 * remote.c (remote_open, extended_remote_open, remote_open_1):
1938 Constify.
1939 * target.h (struct target_ops) <to_open>: Make "arg" const.
1940 * tracefile-tfile.c (tfile_open): Constify.
1941
e799154c
TT
19422014-07-30 Tom Tromey <tromey@redhat.com>
1943
1944 * breakpoint.c (map_breakpoint_numbers): Update.
1945 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
1946 (get_number_const): New function.
1947 (get_number): Rewrite using get_number_const.
1948 (init_number_or_range): Make "string" const.
1949 (number_is_in_list): Make "list" const.
1950 * cli/cli-utils.h (get_number_const): Declare.
1951 (struct get_number_or_range_state) <string, end_ptr>: Now const.
1952 (init_number_or_range, number_is_in_list): Update.
1953 * printcmd.c (map_display_numbers): Update.
1954 * value.c (value_from_history_ref): Constify.
1955 * value.h (value_from_history_ref): Update.
1956
5f08566b
TT
19572014-07-30 Tom Tromey <tromey@redhat.com>
1958
1959 * corefile.c (hook_type, call_extra_exec_file_hooks)
1960 (specify_exec_file_hook): Constify.
1961 * exec.c (exec_file_attach): Make "filename" const.
1962 * gdbcore.h (deprecated_exec_file_display_hook)
1963 (specify_exec_file_hook, exec_file_attach): Constify.
1964 * main.c (captured_main): Use catch_command_errors_const.
1965
8981c758
TT
19662014-07-30 Tom Tromey <tromey@redhat.com>
1967
1968 * target.c (open_target): New function.
1969 (add_target_with_completer, add_deprecated_target_alias): Use
1970 set_cmd_sfunc, set_cmd_context.
1971 (debug_to_open): Remove.
1972 (setup_target_debug): Update.
1973
a1c7835a
YQ
19742014-07-30 Yao Qi <yao@codesourcery.com>
1975
1976 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
1977 comments.
1978 * parse.c (exp_iterate): Update comments.
1979
976411d6
GB
19802014-07-30 Gary Benson <gbenson@redhat.com>
1981
1982 * common/common-defs.h: New file.
1983 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
1984 * defs.h: Include common-defs.h.
1985 Do not include config.h or build-gnulib/config.h.
1986
5d4848a4
GB
19872014-07-30 Gary Benson <gbenson@redhat.com>
1988
1989 * common/common-utils.h: Do not include config.h.
1990 * nat/linux-btrace.h: Likewise.
1991
d41f6d8e
GB
19922014-07-30 Gary Benson <gbenson@redhat.com>
1993
1994 * btrace.c: Include defs.h.
1995 * common/ptid.c: Include defs.h or server.h as appropriate.
1996 * nat/mips-linux-watch.c: Likewise.
1997
84202f9c
TT
19982014-07-29 Tom Tromey <tromey@redhat.com>
1999
2000 * target.c (target_is_pushed): Simplify.
2001
2530441c
JB
20022014-07-29 Joel Brobecker <brobecker@adacore.com>
2003
2004 GDB 7.8 released.
2005
7e09a223
YQ
20062014-07-29 Yao Qi <yao@codesourcery.com>
2007
2008 PR gdb/17206
2009 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
2010
7ebdbe92
DE
20112014-07-28 Doug Evans <xdje42@gmail.com>
2012
2013 PR guile/17203
2014 * guile/scm-param.c (pascm_parameter_defined_p): New function.
2015 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
2016 parameters.
2017
f347ffc9
WN
20182014-07-28 Will Newton <will.newton@linaro.org>
2019
2020 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
2021 (THUMB2_SET_R7_SIGRETURN2): Likewise.
2022 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
2023 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
2024 (THUMB2_EABI_SYSCALL): Likewise.
2025 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
2026 struct tramp_frame.
2027 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
2028 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
2029
37c5f1f7
DE
20302014-07-27 Doug Evans <xdje42@gmail.com>
2031
2032 * guile/scm-param.c (pascm_print_param_smob): Fix output.
2033
0c3abbc7
DE
20342014-07-27 Doug Evans <xdje42@gmail.com>
2035
2036 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
2037
e76c5d17
DE
20382014-07-26 Ludovic Courtès <ludo@gnu.org>
2039 Doug Evans <xdje42@gmail.com>
2040
2041 PR guile/17146
2042 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
2043 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
2044 * configure.ac: Try to use guild to compile an scm file, if it fails
2045 then disable guile support.
2046 * configure: Regenerate.
2047 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
2048 GUILE_FILE_LIST.
2049 (GUILE_COMPILED_FILES): New variable.
2050 (GUILE_FILES) Update.
2051 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
2052 (stamp-guile): Compile scm files.
2053 * guile/guile.c (boot_guile_support): New function.
2054 (standard_throw_args_p): New function.
2055 (print_standard_throw_error, print_throw_error): New functions.
2056 (handle_boot_error): New function.
2057 (initialize_scheme_side): Rewrite to call boot_guile_support.
2058 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
2059 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
2060
186fcde0
DE
20612014-07-26 Ludovic Courtès <ludo@gnu.org>
2062 Doug Evans <xdje42@gmail.com>
2063
2064 PR guile/17146
2065 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
2066 * guile/lib/gdb/support.scm: New file.
2067 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
2068 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
2069 All uses updated.
2070 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
2071 All uses updated.
2072 (%assert-type): Ditto, and renamed to assert-type.
2073 (%exception-print-style): Delete.
2074
4df42755
DE
20752014-07-26 Doug Evans <xdje42@gmail.com>
2076
2077 PR build/17105
2078 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
2079 * configure: Regenerate.
2080 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
2081 PYTHON_FILES.
2082 (PYTHON_FILES): New variable.
2083 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
2084 (GUILE_FILES): New variable.
2085 (stamp-python, install-python, uninstall-python): Handle empty
2086 file list.
2087 (stamp-guile, install-guile, uninstall-guile): Ditto.
2088
ee7333ae
DE
20892014-07-26 Doug Evans <xdje42@gmail.com>
2090
2091 PR guile/17177
2092 * guile/lib/gdb.scm (pretty-printers): Export.
2093 (set-pretty-printers!): Export.
2094 * guile/lib/gdb/printing.scm (gdb module): Update.
2095 (prepend-pretty-printer!, append-pretty-printer!): Update.
2096 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
2097 (pretty_printer_list_var): Delete.
2098 (pretty_printer_list): New static global.
2099 (gdbscm_pretty_printers): New function.
2100 (gdbscm_set_pretty_printers_x): New function.
2101 (ppscm_find_pretty_printer_from_gdb): Update.
2102 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
2103 (gdbscm_initialize_pretty_printers): Update.
2104
74edf516
DE
21052014-07-26 Doug Evans <xdje42@gmail.com>
2106
2107 PR 17185
2108 * configure.ac: Add check for header gc/gc.h.
2109 Add check for function setenv.
2110 * configure: Regenerate.
2111 * config.in: Regenerate.
2112 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
2113
d54398a7
MR
21142014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
2115
2116 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
2117 variation in gdbarch matching.
2118
ab16fce8
TT
21192014-07-25 Tom Tromey <tromey@redhat.com>
2120
2121 * exec.c (using_exec_ops): Remove.
2122 (exec_close_1): Update. Remove extraneous block, reindent.
2123 (add_target_sections): Use target_is_pushed.
2124
88056fbb
PA
21252014-07-25 Pedro Alves <palves@redhat.com>
2126
2127 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
2128 * monitor.c (monitor_create_inferior): Likewise.
2129 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
2130 * remote-sim.c (gdbsim_create_inferior): Likewise.
2131 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
2132 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
2133 * windows-nat.c (do_initial_windows_stuff): Likewise.
2134
70509625
PA
21352014-07-25 Pedro Alves <palves@redhat.com>
2136
2137 * NEWS: Mention signal passing and "signal" command changes.
2138 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
2139 comment.
2140 * breakpoint.c (until_break_command): Adjust clear_proceed_status
2141 call.
2142 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
2143 * infcmd.c (proceed_thread_callback, continue_1, step_once)
2144 (jump_command): Adjust clear_proceed_status call.
2145 (signal_command): Warn if other thread that are resumed have
2146 signals that will be delivered. Adjust clear_proceed_status call.
2147 (until_next_command, finish_command)
2148 (proceed_after_attach_callback, attach_command_post_wait)
2149 (attach_command): Adjust clear_proceed_status call.
2150 * infrun.c (proceed_after_vfork_done): Likewise.
2151 (proceed_after_attach_callback): Adjust comment.
2152 (clear_proceed_status_thread): Clear stop_signal if not in pass
2153 state.
2154 (clear_proceed_status_callback): Delete.
2155 (clear_proceed_status): New 'step' parameter. Only clear the
2156 proceed status of threads the command being prepared is about to
2157 resume.
2158 (proceed): If passed in an explicit signal, override stop_signal
2159 with it. Don't pass the last stop signal to the thread we're
2160 resuming.
2161 (init_wait_for_inferior): Adjust clear_proceed_status call.
2162 (switch_back_to_stepped_thread): Clear the signal if it should not
2163 be passed.
2164 * infrun.h (clear_proceed_status): New 'step' parameter.
2165 (user_visible_resume_ptid): Add comment.
2166 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
2167 signal is in pass state.
2168 * remote.c (append_pending_thread_resumptions): Likewise.
2169 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
2170
d8be2939
TT
21712014-07-25 Tom Tromey <tromey@redhat.com>
2172
2173 * target.h (target_stopped_data_address)
2174 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
2175 parentheses.
2176
7d0d9d2b
PL
21772014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
2178
2179 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
2180 comments.
2181 (avr_pointer_to_address): Likewise.
2182
e9e7f724
TT
21832014-07-24 Tom Tromey <tromey@redhat.com>
2184
2185 * monitor.c (compile_pattern): Update.
2186 * target.h (struct target_ops) <to_shortname, to_longname,
2187 to_doc>: Now const.
2188
1947513d
TT
21892014-07-24 Tom Tromey <tromey@redhat.com>
2190
2191 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
2192 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
2193 (add_info_alias, add_com): Make "doc" const.
2194 (print_doc_line): Make "str" const.
2195 (delete_cmd): Update.
2196 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
2197 (print_doc_line): Update.
2198 * cli/cli-script.c (document_command): Update.
2199 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
2200 (add_com, add_info, add_info_alias): Update.
2201 * guile/scm-cmd.c (cmdscm_destroyer): Update.
2202 * python/py-cmd.c (cmdpy_destroyer): Update.
2203
64e61d29
TT
22042014-07-24 Tom Tromey <tromey@redhat.com>
2205
2206 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
2207 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
2208 (help_cmd_list): Constify.
2209 (lookup_cmd): Update.
2210 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
2211 const.
2212 (help_cmd_list, apropos_cmd): Update.
2213 * cli/cli-script.c (show_user): Update.
2214 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
2215 * cli/cli-setshow.h (cmd_show_list): Update.
2216 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
2217 (cmd_show_list): Update.
2218 * guile/scm-cmd.c (cmdscm_destroyer): Update.
2219 * python/py-cmd.c (cmdpy_destroyer): Update.
2220
429e55ea
TT
22212014-07-24 Tom Tromey <tromey@redhat.com>
2222
2223 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
2224 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
2225 const.
2226 * command.h (deprecate_cmd): Update.
2227 * maint.c (maintenance_do_deprecate): Add casts.
2228
64669f3b
TT
22292014-07-24 Tom Tromey <tromey@redhat.com>
2230
2231 * cli/cli-decode.c (help_cmd): Make parameter "const".
2232 * cli/cli-decode.h (help_cmd): Update.
2233
d3d3328b
TT
22342014-07-24 Tom Tromey <tromey@redhat.com>
2235
2236 * stack.c (up_silently_base, down_silently_base): Make argument
2237 const.
2238
414842dc
TT
22392014-07-24 Tom Tromey <tromey@redhat.com>
2240
2241 * solib.c (solib_add): Make "pattern" const.
2242 * solib.h (solib_add): Update.
2243
baa336ce
TT
22442014-07-24 Tom Tromey <tromey@redhat.com>
2245
2246 * remote.c (remote_serial_open, print_packet, putpkt)
2247 (putpkt_binary): Constify.
2248 * remote.h (putpkt): Update.
2249
5a19e2d0
TT
22502014-07-24 Tom Tromey <tromey@redhat.com>
2251
2252 * monitor.c (monitor_open): Make "args" const.
2253 * monitor.h (monitor_open): Update.
2254
fc4baa5e
TT
22552014-07-24 Tom Tromey <tromey@redhat.com>
2256
2257 * maint.c (match_bfd_flags): Make "string" const.
2258 (print_bfd_section_info): Remove casts.
2259 (print_objfile_section_info): Make "string" const.
2260
0d5f0dbe
TT
22612014-07-24 Tom Tromey <tromey@redhat.com>
2262
2263 * inf-child.c (inf_child_open_target): Make "arg" const.
2264 * inf-child.h (inf_child_open_target): Update.
2265
41c77899
TT
22662014-07-24 Tom Tromey <tromey@redhat.com>
2267
2268 * environ.c (unset_in_environ): Make "var" const.
2269 * environ.h (unset_in_environ): Update.
2270
93db0d79
TT
22712014-07-24 Tom Tromey <tromey@redhat.com>
2272
2273 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
2274 Make "cmd" const.
2275 (scan_filename_with_cleanup): Likewise.
2276 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
2277 Make arguments const.
2278 (restore_command): Update.
2279
36d6eb95
PA
22802014-07-24 Pedro Alves <palves@redhat.com>
2281
2282 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
2283
8009206a
TT
22842014-07-24 Tom Tromey <tromey@redhat.com>
2285 Gary Benson <gbenson@redhat.com>
2286
2287 * nat/linux-ptrace.c (additional_flags): New global.
2288 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
2289 additional_flags; don't check GDBSERVER.
2290 (linux_ptrace_set_additional_flags): New function.
2291 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
2292 Declare.
2293 * linux-nat.c (_initialize_linux_nat): Call
2294 linux_ptrace_set_additional_flags.
2295
a7068b60
TT
22962014-07-24 Tom Tromey <tromey@redhat.com>
2297
2298 * make-target-delegates (munge_type, write_debugmethod): New
2299 functions.
2300 (debug_names): New global.
2301 ($TARGET_DEBUG_PRINTER): New global.
2302 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
2303 name.
2304 Write debug methods. Generate init_debug_target.
2305 * target-debug.h: New file.
2306 * target-delegates.c: Rebuild.
2307 * target.c: Include target-debug.h.
2308 (debug_target): Hoist definition.
2309 (target_kill, target_get_section_table, target_memory_map)
2310 (target_flash_erase, target_flash_done, target_detach)
2311 (target_disconnect, target_wait, target_resume)
2312 (target_pass_signals, target_program_signals, target_follow_fork)
2313 (target_mourn_inferior, target_search_memory)
2314 (target_thread_address_space, target_close)
2315 (target_find_new_threads, target_core_of_thread)
2316 (target_verify_memory, target_insert_mask_watchpoint)
2317 (target_remove_mask_watchpoint): Remove targetdebug code.
2318 (debug_to_post_attach, debug_to_prepare_to_store)
2319 (debug_to_files_info, debug_to_insert_breakpoint)
2320 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
2321 (debug_to_region_ok_for_hw_watchpoint)
2322 (debug_to_can_accel_watchpoint_condition)
2323 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
2324 (debug_to_watchpoint_addr_within_range)
2325 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
2326 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
2327 (debug_to_terminal_init, debug_to_terminal_inferior)
2328 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
2329 (debug_to_terminal_save_ours, debug_to_terminal_info)
2330 (debug_to_load, debug_to_post_startup_inferior)
2331 (debug_to_insert_fork_catchpoint)
2332 (debug_to_remove_fork_catchpoint)
2333 (debug_to_insert_vfork_catchpoint)
2334 (debug_to_remove_vfork_catchpoint)
2335 (debug_to_insert_exec_catchpoint)
2336 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
2337 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
2338 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
2339 (setup_target_debug): Call init_debug_target.
2340 * target.h (TARGET_DEBUG_PRINTER): New macro.
2341 (struct target_ops) <to_resume, to_wait, to_pass_signals,
2342 to_program_signals>: Use TARGET_DEBUG_PRINTER.
2343
2c51604d
GB
23442014-07-24 Gary Benson <gbenson@redhat.com>
2345
2346 * exceptions.h (throw_vfatal): Renamed to...
2347 (throw_vquit): New declaration.
2348 (throw_quit): Likewise.
2349 * exceptions.c (throw_vfatal): Renamed to...
2350 (throw_vquit): New function.
2351 (throw_quit): Likewise.
2352 (throw_error): Call throw_verror rather than throw_it.
2353 * utils.h (vfatal): Removed.
2354 (fatal): Likewise.
2355 * utils.c (vfatal): Removed.
2356 (fatal): Likewise.
2357 (internal_verror): Replaced call to fatal with call to throw_quit.
2358 (quit): Replaced calls to fatal with calls to throw_quit.
2359
34211963
ME
23602014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
2361
2362 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
2363 target_read_code.
2364
a52b4d3e
ME
23652014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
2366
2367 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
2368 less than zero in conditional expression.
2369
a8bdc56b
TT
23702014-07-23 Tom Tromey <tromey@redhat.com>
2371
2372 * make-target-delegates ($ARGS_PART): Match trailing close paren.
2373 ($INTRO_PART): Don't match whitespace.
2374 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
2375 argument matching.
2376 ($METHOD): Add $METHOD_TRAILER.
2377 (trim): Rewrite.
2378 (scan_target_h): New sub.
2379 Change main loop not to collect state.
2380 * target-delegates.c: Rebuild.
2381
91b52240
GB
23822014-07-23 Gary Benson <gbenson@redhat.com>
2383
2384 * cp-support.c (gdb_demangle): Fix build on systems without
2385 sigaltstack.
2386
45326f6f
JK
23872014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2388
2389 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
2390 for reference entry value target data value.
2391
e214cf6c
JK
23922014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2393
2394 * stack.c (read_frame_arg): Verify value_optimized_out before calling
2395 value_available_contents_eq.
2396
bddbbedd
PA
23972014-07-22 Pedro Alves <palves@redhat.com>
2398
2399 * value.c (allocate_optimized_out_value): Don't mark value as
2400 non-lazy.
2401
45c71484
JW
24022014-07-22 Jiong Wang <jiong.wang@arm.com>
2403
2404 * MAINTAINERS (Write After Approval): Update my email address.
2405
9597b22a
DE
24062014-07-20 Doug Evans <dje@google.com>
2407
2408 PR server/17147
2409 * remote.c (putpkt_binary): Add text to error message.
2410
91101fe5
YQ
24112014-07-20 Yao Qi <yao@codesourcery.com>
2412
2413 * eval.c: Remove "Chill" from comments.
2414 * gdbtypes.h: Likewise.
2415 * symtab.h: Likewise.
2416
c9402c95
YQ
24172014-07-20 Yao Qi <yao@codesourcery.com>
2418
2419 * std-operator.def: Update comments to TERNOP_SLICE.
2420
ae8fddda
YQ
24212014-07-20 Yao Qi <yao@codesourcery.com>
2422
2423 * std-operator.def: Remove BINOP_RANGE.
2424 * breakpoint.c (watchpoint_exp_is_const): Update.
2425 * expprint.c (dump_subexp_body_standard): Likewise.
2426 * eval.c (init_array_element): Remove dead code.
2427 (evaluate_subexp_standard): Likewise.
2428
9c816640
YQ
24292014-07-20 Yao Qi <yao@codesourcery.com>
2430
2431 * std-operator.def: Remove BINOP_IN.
2432 * breakpoint.c (watchpoint_exp_is_const): Update.
2433 * eval.c (evaluate_subexp_standard): Likewise.
2434 * expprint.c (dump_subexp_body_standard): Likewise.
2435
164224e9
ME
24362014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
2437
2438 * microblaze-tdep.c (microblaze_register_names): Add
2439 the rshr and rslr register names.
2440 (microblaze_gdbarch_init): Use of tdesc_has_registers.
2441 Use of tdesc_find_feature. Use of tdesc_data_alloc.
2442 Use of tdesc_numbered_register. Use of
2443 microblaze_register_g_packet_guesses. Use of
2444 tdesc_use_registers. Use of set_gdbarch_register_type.
2445 (microblaze_register_g_packet_guesses): New.
2446 * microblaze-tdep.h (microblaze_reg_num): Add
2447 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
2448 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
2449 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
2450 * features/microblaze-core.xml: New file.
2451 * features/microblaze-stack-protect.xml: New file.
2452 * features/microblaze-with-stack-protect.c: New file.
2453 * features/microblaze-with-stack-protect.xml: New file.
2454 * features/microblaze.xml: New file.
2455 * features/microblaze.c: New file.
2456 * features/Makefile (microblaze-with-stack-protect): Add
2457 microblaze-with-stack-protect microblaze and microblaze-expedite.
2458 * regformats/microblaze-with-stack-protect.dat: New file.
2459 * regformats/microblaze.dat: New file.
2460 * doc/gdb.texinfo (MicroBlaze Features): Added.
2461
e8b2341c
TT
24622014-07-18 Tom Tromey <tromey@redhat.com>
2463
2464 * exec.c (exec_ops): Now static.
2465 * exec.h (exec_ops): Don't declare.
2466
44e89118
TT
24672014-07-18 Tom Tromey <tromey@redhat.com>
2468
2469 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
2470 to find_target_beneath.
2471 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
2472 find_target_beneath.
2473 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
2474
b0ed115f
TT
24752014-07-18 Tom Tromey <tromey@redhat.com>
2476
2477 PR gdb/17130:
2478 * utils.c (quit): Use target_supports_terminal_ours.
2479 * target.h (target_supports_terminal_ours): Declare.
2480 * target.c (target_supports_delete_record): Don't check
2481 to_delete_record against NULL.
2482 (target_supports_terminal_ours): New function.
2483
e75fdfca
TT
24842014-07-18 Tom Tromey <tromey@redhat.com>
2485
2486 PR gdb/17130:
2487 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
2488 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
2489 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
2490 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
2491 * windows-nat.c (windows_xfer_partial): Always delegate.
2492 * record-btrace.c (record_btrace_xfer_partial): Simplify
2493 delegation.
2494 (record_btrace_fetch_registers, record_btrace_store_registers)
2495 (record_btrace_prepare_to_store, record_btrace_resume)
2496 (record_btrace_wait, record_btrace_find_new_threads)
2497 (record_btrace_thread_alive): Likewise.
2498 * procfs.c (procfs_xfer_partial): Always delegate.
2499 * corelow.c (core_xfer_partial): Always delegate.
2500 * sol-thread.c (sol_find_new_threads): Simplify delegation.
2501
83814951
TT
25022014-07-18 Tom Tromey <tromey@redhat.com>
2503
2504 * exec.c (exec_make_note_section): Move earlier.
2505
b8b8facf
DE
25062014-07-17 Doug Evans <dje@google.com>
2507
74b49205 2508 PR gdb/17170
b8b8facf
DE
2509 * maint.c (count_symtabs_and_blocks): Handle NULL
2510 current_program_space.
2511 (report_command_stats): Check global enabled flag in addition to
2512 recorded enabled flag.
2513 (make_command_stats_cleanup): Handle msg_type == 0, startup.
2514
69ff6be5
PA
25152014-07-16 Pedro Alves <palves@redhat.com>
2516
2517 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
2518
252db1b5
TT
25192014-07-16 Tom Tromey <tromey@redhat.com>
2520
2521 * target.h (struct target_ops) <to_delete_record>: Reformat
2522 comment.
2523
a432721e
TT
25242014-07-16 Tom Tromey <tromey@redhat.com>
2525
2526 * target-delegates.c: Rebuild.
2527
487d9753
PL
25282014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
2529
2530 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
2531 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
2532 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
2533 (avr_pointer_to_address): Likewise.
2534 (avr_address_class_type_flags): New function.
2535 (avr_address_class_type_flags_to_name): Likewise.
2536 (avr_address_class_name_to_type_flags): Likewise.
2537 (avr_gdbarch_init): Set address_class_type_flags,
2538 address_class_type_flags_to_name and
2539 address_class_name_to_type_flags.
2540
57745c90
PA
25412014-07-15 Pedro Alves <palves@redhat.com>
2542
2543 * linux-nat.c (kill_callback): Save errno and work with saved
2544 copy.
2545
2d40be18
SM
25462014-07-15 Simon Marchi <simon.marchi@ericsson.com>
2547
2548 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
2549
572f6555
EBM
25502014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2551
2552 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
2553 breakpoint support correctly.
2554
cc1c52ad
PA
25552014-07-14 Pedro Alves <palves@redhat.com>
2556
2557 * utils.c (prompt_for_continue): Call target_terminal_ours.
2558
1e973570
PA
25592014-07-14 Pedro Alves <palves@redhat.com>
2560
2561 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
2562 catch_errors. Don't re-enable stdin or notify observers where,
2563 and rethrow error.
2564 (fetch_inferior_event_wrapper): Delete.
2565
93d6eb10
PA
25662014-07-14 Pedro Alves <palves@redhat.com>
2567
2568 PR gdb/17072
2569 * top.c: Include "inf-loop.h".
2570 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
2571 field.
2572 (gdb_readline_wrapper_cleanup): Make the target async again, if it
2573 was async before.
2574 (gdb_readline_wrapper): Store whether the target is async, and
2575 make it sync.
2576
0017922d
PA
25772014-07-14 Pedro Alves <palves@redhat.com>
2578
2579 PR gdb/17072
2580 * top.c (gdb_readline_wrapper_line): Tweak comment.
2581 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
2582 the input handler callback.
2583
94696ad3
PA
25842014-07-14 Pedro Alves <palves@redhat.com>
2585
2586 PR gdb/17072
2587 * main.c: Include event-top.h.
2588 (handle_command_errors): New function.
2589 (catch_command_errors, catch_command_errors_const): Use it.
2590
9d1e69a2
PA
25912014-07-14 Pedro Alves <palves@redhat.com>
2592
2593 * exceptions.c (catch_command_errors, catch_command_errors_const):
2594 Moved to main.c.
2595 * exceptions.h (catch_command_errors_ftype)
2596 (catch_command_errors_const_ftype): Moved to main.c.
2597 (catch_command_errors, catch_command_errors_const): Delete
2598 declarations.
2599 * main.c (catch_command_errors_ftype)
2600 (catch_command_errors_const_ftype): Moved here from exceptions.h.
2601 (catch_command_errors, catch_command_errors_const)): Moved here
2602 from exceptions.c and make static.
2603
feefc97b
PA
26042014-07-14 Pedro Alves <palves@redhat.com>
2605
2606 * exceptions.c (print_any_exception): Delete.
2607 (catch_exceptions_with_msg): Use exception_print instead of
2608 print_any_exception.
2609 (catch_errors): Use exception_fprintf instead of
2610 print_any_exception.
2611 (catch_command_errors, catch_command_errors_const): Use
2612 exception_print instead of print_any_exception.
2613
c933f875
PA
26142014-07-14 Pedro Alves <palves@redhat.com>
2615
2616 * infcall.c (run_inferior_call): Set 'sync_execution' while
2617 running the inferior call.
2618
feb6f816
PA
26192014-07-14 Pedro Alves <palves@redhat.com>
2620
2621 * value.c (value_contents_equal): Delete function.
2622 * value.h (value_contents_equal): Delete declaration.
2623
d98b7a16
TT
26242014-07-14 Tom Tromey <tromey@redhat.com>
2625
2626 PR exp/17106:
2627 * gdbtypes.c (is_dynamic_type_internal): New function, from
2628 is_dynamic_type.
2629 (is_dynamic_type): Rewrite.
2630 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
2631 (resolve_dynamic_struct): Likewise.
2632 (resolve_dynamic_type_internal): New function, from
2633 resolve_dynamic_type.
2634 (resolve_dynamic_type): Rewrite.
2635
548740d6
TT
26362014-07-14 Tom Tromey <tromey@redhat.com>
2637
2638 * target.c (target_require_runnable): Also check record_stratum.
2639 Update comment.
2640
808f7ab1
YQ
26412014-07-11 Yao Qi <yao@codesourcery.com>
2642
2643 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
2644 thumb_instruction_restores_sp return true.
2645
540314bd
YQ
26462014-07-11 Yao Qi <yao@codesourcery.com>
2647
2648 * arm-tdep.c (thumb_instruction_restores_sp): New function.
2649 (thumb_in_function_epilogue_p): Call
2650 thumb_instruction_restores_sp.
2651
1db01f22
YQ
26522014-07-11 Yao Qi <yao@codesourcery.com>
2653
2654 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
2655 'add sp, #imm'.
2656 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
2657
3116063b
GB
26582014-07-11 Gary Benson <gbenson@redhat.com>
2659
2660 * amd64-linux-nat.c (gdbcore.h): Remove include.
2661 (regset.h): Likewise.
2662 (nat/linux-btrace.h): Likewise.
2663 (btrace.h): Likewise.
2664 (gdb_assert.h): Likewise.
2665 (string.h): Likewise.
2666 (sys/uio.h): Likewise.
2667 (sys/debugreg.h): Likewise.
2668 (sys/syscall.h): Likewise.
2669 (sys/procfs.h): Likewise.
2670 (sys/user.h): Likewise.
2671 (asm/ptrace.h): Likewise.
2672 (i386-nat.h): Likewise.
2673 * i386-linux-nat.c (i386-nat.h): Likewise.
2674 (regset.h): Likewise.
2675 (target.h): Likewise.
2676 (linux-nat.h): Likewise.
2677 (nat/linux-btrace.h): Likewise.
2678 (btrace.h): Likewise.
2679 (gdb_assert.h): Likewise.
2680 (string.h): Likewise.
2681 (sys/uio.h): Likewise.
2682 (sys/user.h): Likewise.
2683 (sys/procfs.h): Likewise.
2684 (sys/reg.h): Likewise.
2685 (sys/debugreg.h): Likewise.
2686 (ORIG_EAX): Remove definition.
2687
040baaf6
GB
26882014-07-11 Gary Benson <gbenson@redhat.com>
2689
2690 * i386-linux-nat.h: New file.
2691 * x86-linux-nat.h: Likewise.
2692 * x86-linux-nat.c: Likewise.
2693 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
2694 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
2695 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2696 * amd64-linux-nat.c (x86-linux-nat.h): New include.
2697 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2698 (PTRACE_SETREGSET): Likewise.
2699 (arch_lwp_info): Now in x86-linux-nat.c.
2700 (have_ptrace_getregset): Now in x86-linux-nat.h.
2701 (x86_linux_dr_get): Now in x86-linux-nat.c.
2702 (x86_linux_dr_set): Likewise.
2703 (x86_linux_dr_get_addr): Likewise.
2704 (x86_linux_dr_get_control): Likewise.
2705 (x86_linux_dr_get_status): Likewise.
2706 (update_debug_registers_callback): Likewise.
2707 (x86_linux_dr_set_control): Likewise.
2708 (x86_linux_dr_set_addr): Likewise.
2709 (x86_linux_prepare_to_resume): Likewise.
2710 (x86_linux_new_thread): Likewise.
2711 (x86_linux_new_fork): Likewise.
2712 (x86_linux_get_thread_area): Likewise.
2713 (super_post_startup_inferior): Likewise.
2714 (x86_linux_child_post_startup_inferior): Likewise.
2715 (AMD64_LINUX_USER64_CS): Likewise.
2716 (AMD64_LINUX_X32_DS): Likewise.
2717 (x86_linux_read_description): Likewise.
2718 (x86_linux_enable_btrace): Likewise.
2719 (x86_linux_disable_btrace): Likewise.
2720 (x86_linux_teardown_btrace): Likewise.
2721 (x86_linux_read_btrace): Likewise.
2722 (x86_linux_create_target): Likewise.
2723 (x86_linux_add_target): Likewise.
2724 * i386-linux-nat.c (x86-linux-nat.h): New include.
2725 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2726 (PTRACE_SETREGSET): Likewise.
2727 (arch_lwp_info): Now in x86-linux-nat.c.
2728 (have_ptrace_getregset): Now in x86-linux-nat.h.
2729 (x86_linux_dr_get): Now in x86-linux-nat.c.
2730 (x86_linux_dr_set): Likewise.
2731 (x86_linux_dr_get_addr): Likewise.
2732 (x86_linux_dr_get_control): Likewise.
2733 (x86_linux_dr_get_status): Likewise.
2734 (update_debug_registers_callback): Likewise.
2735 (x86_linux_dr_set_control): Likewise.
2736 (x86_linux_dr_set_addr): Likewise.
2737 (x86_linux_prepare_to_resume): Likewise.
2738 (x86_linux_new_thread): Likewise.
2739 (x86_linux_new_fork): Likewise.
2740 (x86_linux_get_thread_area): Likewise.
2741 (super_post_startup_inferior): Likewise.
2742 (x86_linux_child_post_startup_inferior): Likewise.
2743 (AMD64_LINUX_USER64_CS): Likewise.
2744 (AMD64_LINUX_X32_DS): Likewise.
2745 (x86_linux_read_description): Likewise.
2746 (x86_linux_enable_btrace): Likewise.
2747 (x86_linux_disable_btrace): Likewise.
2748 (x86_linux_teardown_btrace): Likewise.
2749 (x86_linux_read_btrace): Likewise.
2750 (x86_linux_create_target): Likewise.
2751 (x86_linux_add_target): Likewise.
2752
1aa7e42c
GB
27532014-07-11 Gary Benson <gbenson@redhat.com>
2754
2755 * amd64-linux-nat.c: Comment and whitespace changes.
2756 * i386-linux-nat.c: Comment and whitespace changes.
2757
c1e246a0
GB
27582014-07-11 Gary Benson <gbenson@redhat.com>
2759
2760 * amd64-linux-nat.c (x86_linux_create_target): New function.
2761 (x86_linux_add_target): Likewise.
2762 (_initialize_amd64_linux_nat): Delegate to the above new functions.
2763 * i386-linux-nat.c (x86_linux_create_target): New function.
2764 (x86_linux_add_target): Likewise.
2765 (_initialize_i386_linux_nat): Delegate to the above new functions.
2766
8c420b8d
GB
27672014-07-11 Gary Benson <gbenson@redhat.com>
2768
2769 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
2770 (ps_get_thread_area): Delegate to the above in 32-bit mode.
2771 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
2772 (ps_get_thread_area): Delegate to the above.
2773
cb1da100
GB
27742014-07-11 Gary Benson <gbenson@redhat.com>
2775
2776 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
2777 x86_linux_read_description. All uses updated. amd64-specific
2778 code conditionalized. Conditionalized i386-specific code added.
2779 Redundant cast removed.
2780 * i386-linux-nat.c (i386_linux_read_description): Renamed to
2781 x86_linux_read_description. All uses updated. i386-specific
2782 code conditionalized. Conditionalized amd64-specific code added.
2783 One sizeof replaced with the actual type it is describing.
2784
2acf3cd0
GB
27852014-07-11 Gary Benson <gbenson@redhat.com>
2786
2787 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
2788 x86_linux_dr_get. All uses updated.
2789 (amd64_linux_dr_set): Renamed to
2790 x86_linux_dr_set. All uses updated.
2791 (amd64_linux_dr_get_addr): Renamed to
2792 x86_linux_dr_get_addr. All uses updated.
2793 (amd64_linux_dr_get_control): Renamed to
2794 x86_linux_dr_get_control. All uses updated.
2795 (amd64_linux_dr_get_status): Renamed to
2796 x86_linux_dr_get_status. All uses updated.
2797 (amd64_linux_dr_set_control): Renamed to
2798 x86_linux_dr_set_control. All uses updated.
2799 (amd64_linux_dr_set_addr): Renamed to
2800 x86_linux_dr_set_addr. All uses updated.
2801 (amd64_linux_prepare_to_resume): Renamed to
2802 x86_linux_prepare_to_resume. All uses updated.
2803 (amd64_linux_new_thread): Renamed to
2804 x86_linux_new_thread. All uses updated.
2805 (amd64_linux_new_fork): Renamed to
2806 x86_linux_new_fork. All uses updated.
2807 (amd64_linux_child_post_startup_inferior): Renamed to
2808 x86_linux_child_post_startup_inferior. All uses updated.
2809 (amd64_linux_enable_btrace): Renamed to
2810 x86_linux_enable_btrace. All uses updated.
2811 (amd64_linux_disable_btrace): Renamed to
2812 x86_linux_disable_btrace. All uses updated.
2813 (amd64_linux_teardown_btrace): Renamed to
2814 x86_linux_teardown_btrace. All uses updated.
2815 (amd64_linux_read_btrace): Renamed to
2816 x86_linux_read_btrace. All uses updated.
2817 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
2818 x86_linux_dr_get. All uses updated.
2819 (i386_linux_dr_set): Renamed to
2820 x86_linux_dr_set. All uses updated.
2821 (i386_linux_dr_get_addr): Renamed to
2822 x86_linux_dr_get_addr. All uses updated.
2823 (i386_linux_dr_get_control): Renamed to
2824 x86_linux_dr_get_control. All uses updated.
2825 (i386_linux_dr_get_status): Renamed to
2826 x86_linux_dr_get_status. All uses updated.
2827 (i386_linux_dr_set_control): Renamed to
2828 x86_linux_dr_set_control. All uses updated.
2829 (i386_linux_dr_set_addr): Renamed to
2830 x86_linux_dr_set_addr. All uses updated.
2831 (i386_linux_prepare_to_resume): Renamed to
2832 x86_linux_prepare_to_resume. All uses updated.
2833 (i386_linux_new_thread): Renamed to
2834 x86_linux_new_thread. All uses updated.
2835 (i386_linux_new_fork): Renamed to
2836 x86_linux_new_fork. All uses updated.
2837 (i386_linux_child_post_startup_inferior): Renamed to
2838 x86_linux_child_post_startup_inferior. All uses updated.
2839 (i386_linux_enable_btrace): Renamed to
2840 x86_linux_enable_btrace. All uses updated.
2841 (i386_linux_disable_btrace): Renamed to
2842 x86_linux_disable_btrace. All uses updated.
2843 (i386_linux_teardown_btrace): Renamed to
2844 x86_linux_teardown_btrace. All uses updated.
2845 (i386_linux_read_btrace): Renamed to
2846 x86_linux_read_btrace. All uses updated.
2847
b9c1d481
AS
28482014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
2849
2850 * remote.c (extended_remote_post_attach): New function.
2851 (init_extended_remote_ops): Install it as to_post_attach method.
2852
7180e04a
PA
28532014-07-09 Pedro Alves <palves@redhat.com>
2854
2855 * infcmd.c (attach_command_post_wait): Don't call
2856 target_terminal_inferior here.
2857 (attach_command): Call it here instead.
2858
9a9a7608
AB
28592014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
2860
2861 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
2862 field.
2863 * c-varobj.c (c_is_path_expr_parent): New function, moved core
2864 from varobj.c, with additional checks.
2865 (c_varobj_ops): Fill in is_path_expr_parent field.
2866 (cplus_varobj_ops): Fill in is_path_expr_parent field.
2867 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
2868 field.
2869 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
2870 ops method.
2871 (varobj_default_is_path_expr_parent): New function.
2872 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
2873 (varobj_default_is_path_expr_parent): Declare new function.
2874
1f267ae3
MM
28752014-07-08 Markus Metzger <markus.t.metzger@intel.com>
2876
2877 * infcmd.c (finish_backward): Turn internal error into normal error.
2878
b2ee242b
PA
28792014-07-07 Pedro Alves <palves@redhat.com>
2880
8a869bca 2881 PR gdb/17096
b2ee242b
PA
2882 * remote.c (async_handle_remote_sigint)
2883 (async_handle_remote_sigint_twice): Call
2884 gdb_call_async_signal_handler instead of
2885 mark_async_signal_handler.
2886
38e229b2
TT
28872014-07-07 Tom Tromey <tromey@redhat.com>
2888
2889 * target-delegates.c: Rebuild.
2890 * target.c (target_info_record): Remove.
2891 * record.c (info_record_command): Unconditionally call
2892 to_info_record.
2893 * target.h (struct target_ops) <to_info_record>: Use
2894 TARGET_DEFAULT_IGNORE.
2895 (target_info_record): Remove.
2896
f0f9ff95
TT
28972014-07-07 Tom Tromey <tromey@redhat.com>
2898
2899 * target.h (struct target_ops) <to_get_thread_local_address>: Use
2900 TARGET_DEFAULT_NORETURN.
2901 * target.c (generic_tls_error): New function.
2902 (target_translate_tls_address): Don't search target stack.
2903 * target-delegates.c: Rebuild.
2904 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
2905 stack.
2906 * linux-thread-db.c (thread_db_get_thread_local_address):
2907 Unconditionally call beneath target.
2908
4a5be5ee
MK
29092014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
2910
2911 * cli/cli-logging.c (pop_output_files): Assign targerr to
2912 gdb_stdtargerr.
2913
92c3b204
AB
29142014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
2915
2916 * MAINTAINERS (Write After Approval): Update my email address.
2917
9b11e3a7
GB
29182014-07-02 Gary Benson <gbenson@redhat.com>
2919
2920 * proc-service.c (ps_xfer_memory): Update comment.
2921 (ps_pstop): Remove unused function.
2922 (ps_pcontinue): Likewise.
2923 (ps_lstop): Likewise.
2924 (ps_lcontinue): Likewise.
2925 (ps_lgetxregsize): Likewise.
2926 (ps_lgetxregs): Likewise.
2927 (ps_lsetxregs): Likewise.
2928 (ps_plog): Likewise.
2929 (ps_ptread): Likewise.
2930 (ps_ptwrite): Likewise.
2931
cf363f18
MW
29322014-07-01 Mark Wielaard <mjw@redhat.com>
2933
2934 * dwarf2read.c (add_array_cv_type): New function.
2935 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
2936 (read_tag_volatile_type): Likewise.
2937
82ae6c8d
TT
29382014-07-01 Tom Tromey <tromey@redhat.com>
2939
2940 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
2941 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
2942 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
2943 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
2944 * command.h (cmd_cfunc_ftype): Move earlier.
2945 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
2946 (add_com, add_info): Use cmd_cfunc_ftype.
2947
96142726
TT
29482014-06-30 Tom Tromey <tromey@redhat.com>
2949
2950 * symtab.c (operator_chars): Make parameters and return type
2951 const.
2952 (file_matches): Make "files" const.
2953 (struct search_symbols_data) <files>: Now const.
2954 (search_symbols): Make "regexp" and "files" parameters const.
2955 Update.
2956 (symtab_symbol_info): Remove cast.
2957 (rbreak_command): Update.
2958 * symtab.h (search_symbols): Update.
2959
b67a2c6f
YQ
29602014-06-27 Yao Qi <yao@codesourcery.com>
2961
2962 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
2963 Change parameter type to 'struct thread_info *'. Caller
2964 updated.
2965 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
2966 Update declaration.
2967 * dummy-frame.c (struct dummy_frame_id): New.
2968 (dummy_frame_id_eq): New function.
2969 (struct dummy_frame) <id>: Change its type to 'struct
2970 dummy_frame_id'.
2971 (dummy_frame_push): Add parameter ptid and save it in
2972 dummy_frame_id.
2973 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
2974 inferior_ptid.
2975 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
2976 to inferior_ptid.
2977 (lookup_dummy_frame): Change parameter type to 'struct
2978 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
2979 instead of frame_id_eq.
2980 (dummy_frame_pop): Add parameter ptid. Callers updated.
2981 Update comments. Compose dummy_frame_id and pass it to
2982 lookup_dummy_frame.
2983 (dummy_frame_discard): Add parameter ptid.
2984 (dummy_frame_sniffer): Compose dummy_frame_id and call
2985 dummy_frame_id_eq instead of frame_id_eq.
2986 (fprint_dummy_frames): Print ptid.
2987 * dummy-frame.h: Remove comments.
2988 (dummy_frame_push): Add ptid in declaration.
2989 (dummy_frame_pop, dummy_frame_discard): Likewise.
2990
5b10184c
TT
29912014-06-26 Tom Tromey <tromey@redhat.com>
2992
2993 * cli/cli-cmds.c (error_no_arg): Make "why" const.
2994 * command.h (error_no_arg): Update.
2995
06900326
TT
29962014-06-26 Tom Tromey <tromey@redhat.com>
2997
2998 * cli/cli-setshow.c (do_set_command): Make "arg" const.
2999 (do_show_command): Make "arg" const.
3000 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
3001
c2bcbb1d
TT
30022014-06-26 Tom Tromey <tromey@redhat.com>
3003
3004 * record-full.c (record_full_get_bookmark): Make "args" const.
3005 (record_full_goto_bookmark): Make "raw_bookmark" const.
3006 * record.c (record_goto): New function.
3007 (cmd_record_goto): Use it. Now static.
3008 * record.h (record_goto): Declare.
3009 (cmd_record_goto): Remove declaration.
3010 * target-delegates.c: Rebuild.
3011 * target.h (struct target_ops) <to_get_bookmark,
3012 to_goto_bookmark>: Make parameter const.
3013
9cbe5fff
TT
30142014-06-26 Tom Tromey <tromey@redhat.com>
3015
3016 * defs.h (generic_load): Update.
3017 * m32r-rom.c (m32r_load_gen): Make "filename" const.
3018 * monitor.c (monitor_load): Make "args" const.
3019 * remote-m32r-sdi.c (m32r_load): Make "args" const.
3020 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
3021 const.
3022 (mips_load): Make "file" const.
3023 * remote-sim.c (gdbsim_load): Make "args" const.
3024 * remote.c (remote_load): Make "name" const.
3025 * symfile.c (generic_load): Make "args" const.
3026 * target-delegates.c: Rebuild.
3027 * target.c (target_load): Make "arg" const.
3028 (debug_to_load): Make "args" const.
3029 * target.h (struct target_ops) <to_load>: Make parameter const.
3030 (target_load): Update.
3031
34a68019
TT
30322014-06-26 Tom Tromey <tromey@redhat.com>
3033
3034 PR symtab/16902:
3035 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
3036 (dwarf2_physname, read_partial_die)
3037 (guess_partial_die_structure_name, fixup_partial_die)
3038 (guess_full_die_structure_name, anonymous_struct_prefix)
3039 (dwarf2_name): Use per-BFD obstack.
3040
efc889c1
YQ
30412014-06-26 Yao Qi <yao@codesourcery.com>
3042
3043 * dummy-frame.c (dummy_frame_sniffer): Move local variables
3044 dummyframe and this_id into inner block below.
3045
4395285e
YQ
30462014-06-26 Yao Qi <yao@codesourcery.com>
3047
3048 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
3049 with "signal_pass[0]" in the initialization of signal_pass.
3050
aef92902
MM
30512014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3052
3053 * record-btrace.c (record_btrace_generating_corefile)
3054 (record_btrace_prepare_to_generate_core)
3055 (record_btrace_done_generating_core): New.
3056 (record_btrace_xfer_partial, record_btrace_fetch_registers)
3057 (record_btrace_store_registers, record_btrace_prepare_to_store):
3058 Forward request when generating a core file.
3059 (record_btrace_open): Set record_btrace_generating_corefile to zero.
3060 (init_record_btrace_ops): Set to_prepare_to_generate_core and
3061 to_done_generating_core.
3062
5fff78c4
MM
30632014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3064
3065 * target.h (target_ops) <to_prepare_to_generate_core>
3066 <to_done_generating_core>: New.
3067 (target_prepare_to_generate_core, target_done_generating_core): New.
3068 * target.c (target_prepare_to_generate_core)
3069 (target_done_generating_core): New.
3070 * target-delegates.c: Regenerate.
3071 * gcore.c: (write_gcore_file): Rename to ...
3072 (write_gcore_file_1): ...this.
3073 (write_gcore_file): Call target_prepare_to_generate_core
3074 and target_done_generating_core.
3075
1d1f1ccb
MM
30762014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3077
3078 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
3079 * gcore.c (write_gcore_file): Free memory returned from
3080 make_corefile_notes.
3081 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
3082 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
3083
3343ef86
YQ
30842014-06-24 Yao Qi <yao@codesourcery.com>
3085
3086 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
3087 (arm_linux_init_abi): Set skip_trampoline_code with
3088 gdbarch_skip_trampoline_code instead of
3089 find_solib_trampoline_target.
3090
18d18ac8
YQ
30912014-06-24 Yao Qi <yao@codesourcery.com>
3092
3093 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
3094 arm_skip_bx_reg returns non-zero.
3095
80d8d390
YQ
30962014-06-24 Yao Qi <yao@codesourcery.com>
3097
3098 * arm-tdep.c (arm_skip_bx_reg): New function.
3099 (arm_skip_stub): Call arm_skip_bx_reg.
3100
6a18a01c
DB
31012014-06-23 Don Breazeal <donb@codesourcery.com>
3102
3103 * MAINTAINERS: Add myself as write-after-approval maintainer.
3104
8e9db26e
PA
31052014-06-23 Pedro Alves <palves@redhat.com>
3106
3107 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
3108 DR_CONTROL before setting DR0..DR3.
3109 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
3110 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
3111 bits of DR_CONTROL related to the debug register slot being
3112 disabled. If all slots are vacant, clear local slowdown as well,
3113 and assert DR_CONTROL is 0.
3114
70afc5b7
SC
31152014-06-23 Siva Chandra Reddy <sivachandra@google.com>
3116
3117 * python/lib/gdb/command/xmethods.py
3118 (get_method_matchers_in_loci): Lookup xmethod matchers in the
3119 current progspace only if the string "progspace" matches LOCUS_RE.
3120
840ed64d
JK
31212014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3122
3123 Fix --with-system-readline with readline-6.3 patch 5.
3124 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
3125 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
3126 types.
3127
26f2dc30
TT
31282014-06-20 Tom Tromey <tromey@redhat.com>
3129
3130 * dwarf2read.c (dw2_get_real_path): Use correct type in
3131 OBSTACK_CALLOC.
3132 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
3133
125f8a3d
GB
31342014-06-20 Gary Benson <gbenson@redhat.com>
3135
3136 * common/gdb_thread_db.h: Moved to nat. All includes updated.
3137 * common/glibc_thread_db.h: Likewise.
3138 * common/i386-cpuid.h: Likewise.
3139 * common/i386-gcc-cpuid.h: Likewise.
3140 * common/linux-btrace.h: Likewise.
3141 * common/linux-osdata.h: Likewise.
3142 * common/linux-procfs.h: Likewise.
3143 * common/linux-ptrace.h: Likewise.
3144 * common/mips-linux-watch.h: Likewise.
3145 * common/linux-btrace.c: Moved to nat.
3146 * common/linux-osdata.c: Likewise.
3147 * common/linux-procfs.c: Likewise.
3148 * common/linux-ptrace.c: Likewise.
3149 * common/mips-linux-watch.c: Likewise.
3150 * nat/gdb_thread_db.h: Moved from common.
3151 * nat/glibc_thread_db.h: Likewise.
3152 * nat/i386-cpuid.h: Likewise.
3153 * nat/i386-gcc-cpuid.h: Likewise.
3154 * nat/linux-btrace.c: Likewise.
3155 * nat/linux-btrace.h: Likewise.
3156 * nat/linux-osdata.c: Likewise.
3157 * nat/linux-osdata.h: Likewise.
3158 * nat/linux-procfs.c: Likewise.
3159 * nat/linux-procfs.h: Likewise.
3160 * nat/linux-ptrace.c: Likewise.
3161 * nat/linux-ptrace.h: Likewise.
3162 * nat/mips-linux-watch.c: Likewise.
3163 * nat/mips-linux-watch.h: Likewise.
3164 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
3165 (object file files): Reordered.
3166 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
3167 of glibc_thread_db.h.
3168
42995dbd
GB
31692014-06-20 Gary Benson <gbenson@redhat.com>
3170
3171 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
3172 (i386_dr_low_type): Moved to nat/i386-dregs.h.
3173 (i386_dr_low): Likewise.
3174 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
3175 (i386_dr_low_set_addr): Likewise.
3176 (i386_dr_low_get_addr): Likewise.
3177 (i386_dr_low_can_set_control): Likewise.
3178 (i386_dr_low_set_control): Likewise.
3179 (i386_dr_low_get_control): Likewise.
3180 (i386_dr_low_get_status): Likewise.
3181 (i386_get_debug_register_length): Likewise.
3182 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
3183 (i386_dr_low): Likewise.
3184 * nat/i386-dregs.c (i386-low.h): Remove include.
3185 (i386-nat.h): Likewise.
3186 (nat/i386-dregs.h): New include.
3187 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
3188 (i386_dr_low_set_addr): Likewise.
3189 (i386_dr_low_get_addr): Likewise.
3190 (i386_dr_low_can_set_control): Likewise.
3191 (i386_dr_low_set_control): Likewise.
3192 (i386_dr_low_get_control): Likewise.
3193 (i386_dr_low_get_status): Likewise.
3194 (i386_get_debug_register_length): Likewise.
3195 (debug_hw_points): Likewise.
3196
3ed9baed
IB
31972014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
3198
3199 * Makefile.in (SFILES): Add d-exp.y.
3200 (YYFILES): Add d-exp.c.
3201 (YYOBJ): Add d-exp.o.
3202 (local-maintainer-clean): Delete d-exp.c.
3203 * d-exp.y: New file.
3204 * d-lang.h (d_parse): New declaration.
3205 (d_error): New declaration.
3206 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
3207 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
3208 PREC_ORDER operators.
3209 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
3210
78c164b0
YQ
32112014-06-19 Yao Qi <yao@codesourcery.com>
3212
3213 * gdbthread.h (any_running): Remove the declaration.
3214 * thread.c (any_running): Remove.
3215
f6e29b6e
YQ
32162014-06-19 Yao Qi <yao@codesourcery.com>
3217
3218 * gdbthread.h (struct thread_info) <state>: Change its type to
3219 'enum thread_state'. Update comments.
3220
034f788c
PA
32212014-06-19 Pedro Alves <palves@redhat.com>
3222
3223 * gdbthread.h (ALL_THREADS): Delete.
3224 (ALL_NON_EXITED_THREADS): New macro.
3225 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
3226 instead of ALL_THREADS.
3227 * infrun.c (find_thread_needs_step_over)
3228 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
3229 instead of ALL_THREADS.
3230 * record-btrace.c (record_btrace_open)
3231 (record_btrace_stop_recording, record_btrace_close)
3232 (record_btrace_is_replaying, record_btrace_resume)
3233 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
3234 * remote.c (append_pending_thread_resumptions): Likewise.
3235 * thread.c (thread_apply_all_command): Likewise.
3236
46e33252
GB
32372014-06-19 Gary Benson <gbenson@redhat.com>
3238
3239 * i386-nat.c (i386_stopped_by_watchpoint):
3240 Use i386_dr_stopped_by_watchpoint.
3241 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
3242 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
3243
3a8ee006
GB
32442014-06-19 Gary Benson <gbenson@redhat.com>
3245
3246 * nat/i386-dregs.c: New file.
3247 * Makefile.in (i386-dregs.o): New rule.
3248 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
3249 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
3250 * config/i386/darwin.mh (NATDEPFILES): Likewise.
3251 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
3252 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
3253 * config/i386/go32.mh (NATDEPFILES): Likewise.
3254 * config/i386/linux.mh (NATDEPFILES): Likewise.
3255 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3256 * config/i386/mingw.mh (NATDEPFILES): Likewise.
3257 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
3258 * i386-nat.h (debug_hw_points): New declaration.
3259 * i386-nat.c (breakpoint.h): Remove include.
3260 (command.h): Likewise.
3261 (target.h): Likewise.
3262 (gdb_assert.h): Likewise.
3263 (debug_hw_points): Made nonstatic.
3264 (debug_printf): Now in i386-dregs.c.
3265 (TARGET_HAS_DR_LEN_8): Likewise.
3266 (DR_CONTROL_SHIFT): Likewise.
3267 (DR_CONTROL_SIZE): Likewise.
3268 (DR_RW_EXECUTE): Likewise.
3269 (DR_RW_WRITE): Likewise.
3270 (DR_RW_READ): Likewise.
3271 (DR_RW_IORW): Likewise.
3272 (DR_LEN_1): Likewise.
3273 (DR_LEN_2): Likewise.
3274 (DR_LEN_4): Likewise.
3275 (DR_LEN_8): Likewise.
3276 (DR_LOCAL_ENABLE_SHIFT): Likewise.
3277 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
3278 (DR_ENABLE_SIZE): Likewise.
3279 (DR_LOCAL_SLOWDOWN): Likewise.
3280 (DR_GLOBAL_SLOWDOWN): Likewise.
3281 (DR_CONTROL_RESERVED): Likewise.
3282 (I386_DR_CONTROL_MASK): Likewise.
3283 (I386_DR_VACANT): Likewise.
3284 (I386_DR_LOCAL_ENABLE): Likewise.
3285 (I386_DR_GLOBAL_ENABLE): Likewise.
3286 (I386_DR_DISABLE): Likewise.
3287 (I386_DR_SET_RW_LEN): Likewise.
3288 (I386_DR_GET_RW_LEN): Likewise.
3289 (I386_DR_WATCH_HIT): Likewise.
3290 (i386_wp_op_t): Likewise.
3291 (i386_show_dr): Likewise.
3292 (i386_length_and_rw_bits): Likewise.
3293 (i386_insert_aligned_watchpoint): Likewise.
3294 (i386_remove_aligned_watchpoint): Likewise.
3295 (i386_handle_nonaligned_watchpoint): Likewise.
3296 (i386_update_inferior_debug_regs): Likewise.
3297 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
3298 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
3299 (i386_region_ok_for_watchpoint):
3300 Use i386_dr_region_ok_for_watchpoint.
3301 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
3302
322a8e06
GB
33032014-06-19 Gary Benson <gbenson@redhat.com>
3304
3305 * i386-nat.c (i386_insert_hw_breakpoint): Use
3306 i386_insert_watchpoint.
3307 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
3308
8f26655c
GB
33092014-06-19 Gary Benson <gbenson@redhat.com>
3310
3311 * i386-nat.c (i386_dr_show): Renamed to
3312 i386_show_dr and made static. All uses updated.
3313 (i386_dr_length_and_rw_bits): Renamed to
3314 i386_length_and_rw_bits and made static.
3315 All uses updated.
3316 (i386_dr_insert_aligned_watchpoint): Renamed to
3317 i386_insert_aligned_watchpoint and made static.
3318 All uses updated.
3319 (i386_dr_remove_aligned_watchpoint): Renamed to
3320 i386_remove_aligned_watchpoint and made static.
3321 All uses updated.
3322 (i386_dr_update_inferior_debug_regs): Renamed to
3323 i386_update_inferior_debug_regs and made static.
3324 All uses updated.
3325 * nat/i386-dregs.h (i386_dr_show): Removed.
3326 (i386_dr_length_and_rw_bits): Likewise.
3327 (i386_dr_insert_aligned_watchpoint): Likewise.
3328 (i386_dr_remove_aligned_watchpoint): Likewise.
3329 (i386_dr_update_inferior_debug_regs): Likewise.
3330
992c7d70
GB
33312014-06-19 Gary Benson <gbenson@redhat.com>
3332
3333 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
3334 * configure: Regenerate.
3335 * config.in: Likewise.
3336 * main.c (signal.h): New include.
3337 (setup_alternate_signal_stack): New function.
3338 (captured_main): Call the above.
3339 * cp-support.c (signal.h): New include.
3340 (catch_demangler_crashes): New flag.
3341 (SIGJMP_BUF): New define.
3342 (SIGSETJMP): Likewise.
3343 (SIGLONGJMP): Likewise.
3344 (gdb_demangle_jmp_buf): New static global.
3345 (gdb_demangle_attempt_core_dump): Likewise.
3346 (gdb_demangle_signal_handler): New function.
3347 (gdb_demangle): If catch_demangler_crashes is set, install the
3348 above signal handler before calling bfd_demangle, and restore
3349 the original signal handler afterwards. Display the offending
3350 symbol and call demangler_warning the first time a segmentation
3351 fault is caught.
3352 (_initialize_cp_support): New maint set/show command.
3353
eae7090b
GB
33542014-06-19 Gary Benson <gbenson@redhat.com>
3355
3356 * utils.h (resource_limit_kind): New enum.
3357 (can_dump_core): New declaration.
3358 (warn_cant_dump_core): Likewise.
3359 (dump_core): Likewise.
3360 * utils.c (dump_core): Made nonstatic. Added new
3361 parameter "limit_kind".
3362 (can_dump_core): Made nonstatic. Moved printing code to...
3363 (warn_cant_dump_core): New function.
3364 (can_dump_core_warn): Likewise.
3365 (internal_vproblem): Replace calls to can_dump_core with
3366 calls to can_dump_core_warn. Supply new argument to each.
3367
57fcfb1b
GB
33682014-06-19 Gary Benson <gbenson@redhat.com>
3369
3370 * utils.h (demangler_vwarning): New declaration.
3371 (demangler_warning): Likewise.
3372 * utils.c (struct internal_problem)
3373 <user_settable_should_quit>: New field.
3374 <user_settable_should_dump_core>: Likewise
3375 (internal_error_problem): Add values for above new fields.
3376 (internal_warning_problem): Likewise.
3377 (demangler_warning_problem): New static global.
3378 (demangler_vwarning): New function.
3379 (demangler_warning): Likewise.
3380 (add_internal_problem_command): Selectively add commands.
3381 (_initialize_utils): New internal problem command.
3382 * maint.c (maintenance_demangler_warning): New function.
3383 (_initialize_maint_cmds): New command.
3384
17a40b44
TT
33852014-06-18 Tom Tromey <tromey@redhat.com>
3386
3387 * f-valprint.c (info_common_command_for_block): Update.
3388 * symtab.h (struct general_symbol_info) <common_block>: Now
3389 const.
3390
346d1dfe
TT
33912014-06-18 Tom Tromey <tromey@redhat.com>
3392
3393 * symtab.h (struct symtab) <blockvector>: Now const.
3394 * ada-lang.c (ada_add_global_exceptions): Update.
3395 * buildsym.c (augment_type_symtab): Update.
3396 * dwarf2read.c (dw2_lookup_symbol): Update.
3397 * jit.c (finalize_symtab): Update.
3398 * jv-lang.c (add_class_symtab_symbol): Update.
3399 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
3400 Update.
3401 * objfiles.c (objfile_relocate1): Update.
3402 * psymtab.c (lookup_symbol_aux_psymtabs)
3403 (maintenance_check_psymtabs): Update.
3404 * python/py-symtab.c (stpy_global_block, stpy_static_block):
3405 Update.
3406 * spu-tdep.c (spu_catch_start): Update.
3407 * symmisc.c (dump_symtab_1): Update.
3408 * symtab.c (lookup_global_symbol_from_objfile)
3409 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
3410 (basic_lookup_transparent_type_quick)
3411 (basic_lookup_transparent_type, find_pc_sect_symtab)
3412 (find_pc_sect_line, search_symbols): Update.
3413 * block.c (find_block_in_blockvector): Make "bl" const.
3414 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
3415 const.
3416 (blockvector_contains_pc): Make "bv" const.
3417 (block_for_pc_sect): Update.
3418 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3419 (blockvector_contains_pc): Update.
3420 * breakpoint.c (resolve_sal_pc): Update.
3421 * inline-frame.c (block_starting_point_at): Update.
3422
1834676b
TT
34232014-06-18 Tom Tromey <tromey@redhat.com>
3424
3425 * completer.c (complete_line): Make "line_buffer" const.
3426 * completer.h (complete_line): Update.
3427
ac1a991b
TT
34282014-06-18 Tom Tromey <tromey@redhat.com>
3429
3430 * symtab.c (add_macro_name): Remove unneeded cast.
3431
5bc98e52
TT
34322014-06-18 Tom Tromey <tromey@redhat.com>
3433
3434 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
3435 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
3436
8236def8
TT
34372014-06-18 Tom Tromey <tromey@redhat.com>
3438
3439 * probe.c (info_probes_for_ops): Make "arg" const.
3440 * probe.h (info_probes_for_ops): Update.
3441
3977b71f
TT
34422014-06-18 Tom Tromey <tromey@redhat.com>
3443
3444 * varobj.c (varobj_create): Update.
3445 * valops.c (value_of_this): Update.
3446 * tracepoint.c (add_local_symbols, scope_info): Update.
3447 * symtab.h (struct general_symbol_info) <block>: Now const.
3448 * symtab.c (skip_prologue_sal)
3449 (default_make_symbol_completion_list_break_on)
3450 (skip_prologue_using_sal): Update.
3451 * stack.h (iterate_over_block_locals)
3452 (iterate_over_block_local_vars): Update.
3453 * stack.c (print_frame_args): Update.
3454 (iterate_over_block_locals, iterate_over_block_local_vars): Make
3455 parameter const.
3456 (get_selected_block): Make return type const.
3457 * python/py-frame.c (frapy_block): Update.
3458 * python/py-block.c (gdbpy_block_for_pc): Update.
3459 * p-exp.y (%union) <bval>: Now const.
3460 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
3461 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
3462 * m2-exp.y (%union) <bval>: Now const.
3463 * linespec.c (get_current_search_block): Make return type const.
3464 (create_sals_line_offset, find_label_symbols): Update.
3465 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
3466 Update.
3467 (block_starting_point_at): Make "block" const.
3468 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
3469 (check_exception_resume): Update.
3470 * guile/scm-frame.c (gdbscm_frame_block): Update.
3471 * guile/scm-block.c (gdbscm_lookup_block): Update.
3472 * frame.h (get_frame_block): Update.
3473 (get_selected_block): Make return type const.
3474 * frame.c (frame_id_inner): Update.
3475 * f-valprint.c (info_common_command_for_block)
3476 (info_common_command): Update.
3477 * dwarf2loc.c (dwarf2_find_location_expression)
3478 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
3479 (locexpr_describe_location_piece): Update.
3480 * c-exp.y (%union) <bval>: Now const.
3481 * breakpoint.c (resolve_sal_pc): Update.
3482 * blockframe.c (get_frame_block):Make return type const.
3483 (get_pc_function_start, get_frame_function, find_pc_sect_function)
3484 (block_innermost_frame): Update.
3485 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3486 (block_for_pc, block_for_pc_sect): Update.
3487 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
3488 'pblock' const.
3489 (block_for_pc_sect, block_for_pc): Make return type const.
3490 * ax-gdb.c (gen_expr): Update.
3491 * alpha-mdebug-tdep.c (find_proc_desc): Update.
3492 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
3493 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
3494 (ada_read_var_value): Update.
3495 * ada-exp.y (struct name_info) <block>: Now const.
3496 (%union): Likewise.
3497 (block_lookup): Constify.
3498
b9228891
GB
34992014-06-18 Gary Benson <gbenson@redhat.com>
3500
3501 * nat/i386-dregs.h: New file.
3502 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
3503 * i386-nat.h (i386-dregs.h): New include.
3504 (DR_FIRSTADDR): Now in i386-dregs.h.
3505 (DR_LASTADDR): Likewise.
3506 (DR_NADDR): Likewise.
3507 (DR_STATUS): Likewise.
3508 (DR_CONTROL): Likewise.
3509 (i386_debug_reg_state): Likewise.
3510 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
3511
a1aa2221
LM
35122014-06-18 Don Breazeal <donb@codesourcery.com>
3513
3514 * breakpoint.c (set_longjmp_breakpoint): Call
3515 momentary_breakpoint_from_master with additional argument.
3516 (set_longjmp_breakpoint_for_call_dummy): Call
3517 momentary_breakpoint_from_master with additional argument.
3518 (set_std_terminate_breakpoint): Call
3519 momentary_breakpoint_from_master with additional argument.
3520 (momentary_breakpoint_from_master): Add argument to function
3521 definition and use it to initialize structure member flag.
74228e77 3522 (clone_momentary_breakpoint): Call
a1aa2221
LM
3523 momentary_breakpoint_from_master with additional argument.
3524 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
3525 member flags set in momentary_breakpoint_from_master.
3526
4be83cc2
GB
35272014-06-18 Gary Benson <gbenson@redhat.com>
3528
3529 * i386-nat.c (i386_show_dr): Renamed to
3530 i386_dr_show and made nonstatic. All uses updated.
3531 (i386_length_and_rw_bits): Renamed to
3532 i386_dr_length_and_rw_bits and made nonstatic.
3533 All uses updated.
3534 (i386_insert_aligned_watchpoint): Renamed to
3535 i386_dr_insert_aligned_watchpoint and made nonstatic.
3536 All uses updated.
3537 (i386_remove_aligned_watchpoint): Renamed to
3538 i386_dr_remove_aligned_watchpoint and made nonstatic.
3539 All uses updated.
3540 (i386_update_inferior_debug_regs): Renamed to
3541 i386_dr_update_inferior_debug_regs and made nonstatic.
3542 All uses updated.
3543
131aa0d4
GB
35442014-06-18 Gary Benson <gbenson@redhat.com>
3545
3546 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
3547 (i386_dr_low_can_set_control): Likewise.
3548 (i386_dr_low_set_addr): Likewise.
3549 (i386_dr_low_set_control): Likewise.
3550 (i386_dr_low_get_addr): Likewise.
3551 (i386_dr_low_get_status): Likewise.
3552 (i386_dr_low_get_control): Likewise.
3553 (i386_insert_aligned_watchpoint): Use new macros.
3554 (i386_update_inferior_debug_regs): Likewise.
3555 (i386_stopped_data_address): Likewise.
3556
d9305f7f
GB
35572014-06-18 Gary Benson <gbenson@redhat.com>
3558
3559 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
3560 New parameter. All uses updated.
3561
ea008da4
GB
35622014-06-18 Gary Benson <gbenson@redhat.com>
3563
3564 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
3565 All uses updated.
3566
1b6d4134
GB
35672014-06-18 Gary Benson <gbenson@redhat.com>
3568
3569 * i386-nat.c (debug_printf): New macro.
3570 (i386_get_debug_register_length): Likewise.
3571 (TARGET_HAS_DR_LEN_8): Use above macro.
3572 (i386_show_dr): Use debug_printf instead of puts_unfiltered
3573 and printf_unfiltered. Use phex to format values.
3574
9b4550ef
GB
35752014-06-18 Gary Benson <gbenson@redhat.com>
3576
3577 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
3578 Make const.
3579
6e62758f
GB
35802014-06-18 Gary Benson <gbenson@redhat.com>
3581
3582 * i386-nat.c: Comment changes.
3583
51c79e94
GB
35842014-06-18 Gary Benson <gbenson@redhat.com>
3585
3586 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
3587
3e11889a
GB
35882014-06-18 Gary Benson <gbenson@redhat.com>
3589
3590 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
3591 (i386_insert_aligned_watchpoint): Likewise.
3592 (i386_remove_aligned_watchpoint): Likewise.
3593 (i386_handle_nonaligned_watchpoint): Likewise.
3594
fc6e2f03
GB
35952014-06-18 Gary Benson <gbenson@redhat.com>
3596
3597 * i386-nat.c: Whitespace changes.
3598
2afe7d50
SB
35992014-06-17 Samuel Bronson <naesten@gmail.com>
3600
3601 * MAINTAINERS: Update Roland McGrath's email address.
3602 Thanks to Sergio Durigan Junior for pointing out that he left
6a83deea 3603 Red Hat a while ago, and giving me a current address.
2afe7d50 3604
3bca49ee
TT
36052014-06-17 Tom Tromey <tromey@redhat.com>
3606
3607 * utils.h (savestring): Remove declaration.
3608
6e366df1
TT
36092014-06-17 Tom Tromey <tromey@redhat.com>
3610
3611 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
3612
6be47f0c
KS
36132014-06-16 Keith Seitz <keiths@redhat.com>
3614
3615 PR mi/15863
3616 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
3617 to update the varobj if inferior_ptid is null_ptid.
3618
7bc112c1
TT
36192014-06-16 Tom Tromey <tromey@redhat.com>
3620
3621 * target.h (struct target_ops) <to_info_proc>: Make parameter
3622 const.
3623 (target_info_proc): Update.
3624 * target.c (target_info_proc): Make "args" const.
3625 * procfs.c (procfs_info_proc): Update.
3626 * linux-tdep.c (linux_info_proc): Update.
3627 (linux_core_info_proc_mappings): Make "args" const.
3628 (linux_core_info_proc): Update.
3629 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
3630 * gdbarch.c: Rebuild.
3631 * gdbarch.h: Rebuild.
3632 * corelow.c (core_info_proc): Update.
3633
fee354ee
TT
36342014-06-16 Tom Tromey <tromey@redhat.com>
3635
3636 * target.h (struct target_ops) <to_disconnect>: Make parameter
3637 const.
3638 (target_disconnect): Update.
3639 * target.c (target_disconnect): Make "args" const.
3640 * target-delegates.c: Rebuild.
3641 * remote.c (remote_disconnect): Update.
3642 * record.h (record_disconnect): Update.
3643 * record.c (record_disconnect): Update.
3644 * inf-child.c (inf_child_disconnect): Update.
3645
a30bf1f1
TT
36462014-06-16 Tom Tromey <tromey@redhat.com>
3647
3648 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
3649 * target.c (debug_to_rcmd, default_rcmd): Update.
3650 * target-delegates.c: Rebuild.
3651 * remote.c (remote_rcmd): Update.
3652 * monitor.c (monitor_rcmd): Update.
3653
d03de421
PA
36542014-06-16 Pedro Alves <palves@redhat.com>
3655
3656 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
3657 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
3658 have OBJF_SHARED set.
3659 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
3660 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
3661 instead of OBJF_USERLOADED.
3662 * objfiles.h (OBJF_SHARED): Update comment.
3663 (userloaded_objfile_contains_address_p): Rename to ...
3664 (shared_objfile_contains_address_p): ... this, and update
3665 comments.
3666 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
3667 new objfile.
3668 (remove_symbol_file_command): Skip objfiles that don't have
3669 OBJF_SHARED set.
3670
99f4262f
TT
36712014-06-16 Tom Tromey <tromey@redhat.com>
3672
3673 * minsyms.h (prim_record_minimal_symbol)
3674 (prim_record_minimal_symbol_and_info): Update comments.
3675
97d66cc6
EZ
36762014-06-14 Eli Zaretskii <eliz@gnu.org>
3677
3678 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
3679 or --without-guile, according to how GDB was built.
3680
635c7e8a
TT
36812014-06-13 Tom Tromey <tromey@redhat.com>
3682
3683 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
3684 to help_list.
3685 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
3686 to help_list.
3687 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
3688 help_list.
3689 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
3690 help_list.Pass all_commands, not -1, to help_list.
3691 * cli/cli-dump.c (dump_command, append_command)
3692 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
3693 (binary_dump_command, binary_append_command): Pass all_commands,
3694 not -1, to help_list.
3695 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
3696 -1, to help_list.
3697 * valprint.c (set_print, set_print_raw): Pass all_commands, not
3698 -1, to help_list.
3699 * typeprint.c (set_print_type): Pass all_commands, not -1, to
3700 help_list.
3701 * top.c (set_history): Pass all_commands, not -1, to help_list.
3702 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
3703 all_commands, not -1, to help_list.
3704 * symfile.c (overlay_command): Pass all_commands, not -1, to
3705 help_list.
3706 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
3707 help_list.
3708 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
3709 help_list.
3710 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
3711 -1, to help_list.
3712 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
3713 not -1, to help_list.
3714 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
3715 not -1, to help_list.
3716 * maint.c (maintenance_command, maintenance_info_command)
3717 (maintenance_print_command, maintenance_set_cmd): Pass
3718 all_commands, not -1, to help_list.
3719 * macrocmd.c (macro_command): Pass all_commands, not -1, to
3720 help_list.
3721 * language.c (set_check): Pass all_commands, not -1, to help_list.
3722 * infcmd.c (unset_command): Pass all_commands, not -1, to
3723 help_list.
3724 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
3725 help_list.
3726 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
3727 help_list.
3728 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
3729 help_list.
3730 * breakpoint.c (save_command): Pass all_commands, not -1, to
3731 help_list.
3732 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
3733 all_commands, not -1, to help_list.
3734
b94ade42
PL
37352014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
3736
3737 * regcache.c (struct register_to_invalidate): New structure.
3738 (do_register_invalidate, make_cleanup_regcache_invalidate): New
3739 functions.
3740 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
3741
31f628ae
YQ
37422014-06-12 Yao Qi <yao@codesourcery.com>
3743
3744 * varobj.c (varobj_get_num_children): Call
3745 varobj_is_dynamic_p.
3746 (varobj_list_children): Likewise.
3747 (varobj_update): Likewise. Update comments.
3748
cde5ef40
YQ
37492014-06-12 Yao Qi <yao@codesourcery.com>
3750
3751 * varobj.c (varobj_pretty_printed_p): Rename to ...
3752 (varobj_is_dynamic_p): ... this. New function.
3753 * varobj.h (varobj_pretty_printed_p): Remove declaration.
3754 (varobj_is_dynamic_p): Declare.
3755 * mi/mi-cmd-var.c (print_varobj): All callers updated.
3756 (mi_print_value_p, varobj_update_one): Likewise.
3757
576ea091
YQ
37582014-06-12 Pedro Alves <pedro@codesourcery.com>
3759 Yao Qi <yao@codesourcery.com>
3760
3761 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
3762 (varobj_get_iterator): Wrap up code for pretty-printer by
3763 "#if HAVE_PYTHON" and "#endif".
3764 (update_dynamic_varobj_children): Likewise.
3765
827f100c
YQ
37662014-06-12 Pedro Alves <pedro@codesourcery.com>
3767 Yao Qi <yao@codesourcery.com>
3768
3769 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
3770 gdb_python_initialized is false. Move some code from varobj.c.
3771 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
3772 * varobj.c: Move "varobj-iter.h" inclusion earlier.
3773 (struct varobj_item): Moved to varobj-iter.h".
3774 (varobj_clear_saved_item): New function.
3775 (update_dynamic_varobj_children): Move python-related code to
3776 py-varobj.c.
3777 (free_variable): Call varobj_clear_saved_item and
3778 varobj_iter_delete.
3779
e5250216
YQ
37802014-06-12 Pedro Alves <pedro@codesourcery.com>
3781 Yao Qi <yao@codesourcery.com>
3782
3783 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
3784 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
3785 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
3786 (py-varobj.o): New rule.
3787 * python/py-varobj.c: New file.
3788 * python/python-internal.h (py_varobj_get_iterator): Declare.
3789 * varobj-iter.h: New file.
3790 * varobj.c: Include "varobj-iter.h"
3791 (struct varobj) <child_iter>: Change its type from "PyObject *"
3792 to "struct varobj_iter *".
3793 <saved_item>: Likewise.
3794 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
3795 [HAVE_PYTHON] (varobj_get_iterator): New function.
3796 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
3797 python-specific code to python/py-varobj.c.
3798 (install_visualizer): Call varobj_iter_delete instead of
3799 Py_XDECREF.
3800 * varobj.h (varobj_ensure_python_env): Declare.
3801
5a2e0d6e
YQ
38022014-06-12 Yao Qi <yao@codesourcery.com>
3803
3804 * varobj.c (struct varobj_item): New structure.
3805 (create_child_with_value): Update declaration.
3806 (varobj_add_child): Replace arguments 'name' and 'value' with
3807 'item'. All callers updated.
3808 (install_dynamic_child): Likewise.
3809 (update_dynamic_varobj_children): Likewise.
3810 (varobj_add_child): Likewise.
3811 (create_child_with_value): Likewise.
3812
919b9a93
JB
38132014-06-11 Joel Brobecker <brobecker@adacore.com>
3814
3815 * NEWS: Create a new section for the next release branch.
3816 Rename the section of the current branch, now that it has
3817 been cut.
3818
71a55bdf
JB
38192014-06-11 Joel Brobecker <brobecker@adacore.com>
3820
3821 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
3822 * version.in: Bump version to 7.8.50.DATE-cvs.
3823
364fe1f7
PA
38242014-06-11 Pedro Alves <palves@redhat.com>
3825
3826 PR remote/17028
3827 * ser-mingw.c (net_windows_socket_check_pending): New function.
3828 (net_windows_select_thread): Ignore spurious wakeups. Use
3829 net_windows_socket_check_pending.
3830 (net_windows_wait_handle): Check for pending events with
3831 ioctlsocket, through net_windows_socket_check_pending, instead of
3832 checking the socket's event.
3833
5a6c7709
SC
38342014-06-10 Siva Chandra Reddy <sivachandra@google.com>
3835
3836 * python/python-internal.h (gdb_PyObject_GetAttrString)
3837 (gdb_PyObject_HasAttrString): New inline function definitions.
3838 * py-value.c (get_field_flag): Remove the now unnecessary cast to
3839 char * of the second argument to PyObject_GetAttrString.
74228e77 3840
0e58ee40
JB
38412014-06-10 Joel Brobecker <brobecker@adacore.com>
3842
3843 * serial.c (serial_write): Fix index of character to be printed
3844 in call to serial_logchar when serial debug traces are enabled.
3845
d190df30
JB
38462014-06-10 Joel Brobecker <brobecker@adacore.com>
3847
3848 * gdbtypes (resolve_dynamic_range): Add function description.
3849
b4b01d36
PA
38502014-06-09 Pedro Alves <palves@redhat.com>
3851
3852 * linux-nat.c (linux_child_follow_fork): Initialize status with
3853 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
3854 inner block. Only pass the signal to PTRACE_DETACH if in pass
3855 state.
3856
3657956b
GB
38572014-06-09 Gary Benson <gbenson@redhat.com>
3858
3859 * common/signals.c (gdb_signal_from_host): Reorder to separate
3860 the always-available ANSI-standard signals from the signals that
3861 require checking.
3862 (do_gdb_signal_to_host): Likewise.
3863 * proc-events.c (signal_table): Likewise.
3864
c077881a
HZ
38652014-06-08 Hui Zhu <hui@codesourcery.com>
3866
3867 * common/linux-ptrace.c (linux_disable_event_reporting): New
3868 function.
3869 * common/linux-ptrace.h (linux_disable_event_reporting): New
3870 declaration.
3871 * linux-nat.c (linux_child_follow_fork): Do a single step before
3872 detach.
3873
4186eb54
KS
38742014-06-07 Keith Seitz <keiths@redhat.com>
3875
3876 Revert:
3877 PR c++/16253
3878 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
3879 from symbol_matches_domain in symtab.c. All local callers
3880 of symbol_matches_domain updated.
3881 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
3882 search STRUCT_DOMAIN.
3883 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
3884 independently. standard_lookup will do that automatically.
3885 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
3886 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3887 (cp_lookup_symbol_in_namespace): Likewise.
3888 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
3889 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
3890 may return a STRUCT_DOMAIN match.
3891 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
3892 * cp-support.c: Include language.h.
3893 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
3894 VAR_DOMAIN.
3895 * psymtab.c (match_partial_symbol): Compare the requested
3896 domain with the symbol's domain directly.
3897 (lookup_partial_symbol): Likewise.
3898 * symtab.c (lookup_symbol_in_language): Explain when/why
3899 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3900 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
3901 appropriate languages.
3902 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
3903 and moved to ada-lang.c
3904 (lookup_block_symbol): Explain that this function only returns
3905 symbol matching the requested DOMAIN.
3906 Compare the requested domain with the symbol's domain directly.
3907 (iterate_over_symbols): Compare the requested domain with the
3908 symbol's domain directly.
3909 * symtab.h (symbol_matches_domain): Remove.
3910
25326a28 39112014-06-06 Doug Evans <xdje42@gmail.com>
d2929fdc
DE
3912
3913 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
3914 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
3915 (gdbscm_guile_version_is_at_least): Declare.
3916 (gdbscm_scm_string_to_int): Declare.
3917 * guile/guile.c (gdbscm_guile_major_version): New global.
3918 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
3919 (guile_datadir): New static global.
3920 (gdbscm_guile_data_directory): New function.
3921 (initialize_scheme_side): Update.
3922 (misc_guile_functions): Add guile-data-directory.
3923 (initialize_gdb_module): Fetch guile version number.
3924 * guile/lib/gdb.scm: Remove call to add-to-load-path.
3925 * guile/lib/gdb/init.scm (%initialize!): Ditto.
3926 * guile/lib/gdb/boot.scm: Use guile-data-directory.
3927 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
3928 comments.
3929 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
3930 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
3931 * guile/scm-value.c (gdbscm_value_to_string): Only call
3932 scm_port_conversion_strategy if Guile version >= 2.0.6.
3933
0a770bb2 39342014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
3935
3936 * main.c (print_gdb_help): Add -q and --silent.
3937
73ba372c
GB
39382014-06-06 Gary Benson <gbenson@redhat.com>
3939
3940 * common/signals.c: Remove preprocessor conditionals for
3941 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
3942 SIGSEGV and SIGTERM.
3943 * proc-events.c: Likewise.
3944
c33b2f12
MM
39452014-06-06 Markus Metzger <markus.t.metzger@intel.com>
3946
3947 * symfile.c (symfile_free_objfile): Remove restriction to
3948 OBJF_USERLOADED.
3949 * symfile-mem.c (symbol_file_add_from_memory): Call
3950 add_target_sections_of_objfile.
3951
fb934770
LC
39522014-06-05 Ludovic Courtès <ludo@gnu.org>
3953
3954 * guile/scm-value.c (gdbscm_history_append_x): Use
3955 'vlscm_get_value_smob_arg_unsafe' instead of
3956 'vlscm_scm_to_value'.
3957
6ef284bd
SM
39582014-06-05 Simon Marchi <simon.marchi@ericsson.com>
3959
3960 PR mi/15806
3961 * utils.c (printchar): Don't escape at all if quoter is NUL.
3962 Update function documentation to clarify effect of parameter
3963 QUOTER.
3964 * remote.c (escape_buffer): Pass '\\' as the quoter to
3965 fputstrn_unfiltered.
3966 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
3967 generate the output.
3968 (mi_solib_unloaded): Same.
3969
270c9937
JB
39702014-06-05 Joel Brobecker <brobecker@adacore.com>
3971
3972 * development.sh: Delete.
3973 * Makefile.in (config.status): Adjust dependency on development.sh.
3974 * configure.ac: Adjust development.sh source call.
3975 * configure: Regenerate.
3976
16f691fb
DE
39772014-06-04 Doug Evans <xdje42@gmail.com>
3978
3979 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
3980 is_scheme_bkpt, spec.
3981 (bpscm_make_breakpoint_smob): Initialize new members.
3982 (gdbscm_create_breakpoint_x): Split into two ...
3983 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
3984 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
3985 (scheme_function breakpoint_functions): Update.
3986 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
3987 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
3988 register-breakpoint!.
3989
ef7cab6b
JB
39902014-06-04 Joel Brobecker <brobecker@adacorer.com>
3991
3992 PR server/17023
3993 * mem-break.c (z_type_supported): Return zero if
3994 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
3995
012370f6
TT
39962014-06-04 Tom Tromey <tromey@redhat.com>
3997
3998 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
3999 value_from_contents_and_address_unresolved.
4000 (ada_template_to_fixed_record_type_1): Likewise.
4001 (ada_which_variant_applies): Likewise.
4002 * value.h (value_from_contents_and_address_unresolved): Declare.
4003 * value.c (value_from_contents_and_address_unresolved): New
4004 function.
4005 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
4006 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
4007 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
4008
92e2a17f
TT
40092014-06-04 Tom Tromey <tromey@redhat.com>
4010
4011 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
4012
c0939df1
TT
40132014-06-04 Tom Tromey <tromey@redhat.com>
4014
4015 * procfs.c (procfs_attach): Make "args" const.
4016 * windows-nat.c (windows_attach): Make "args" const.
4017 * nto-procfs.c (procfs_attach): Make "args" const.
4018 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
4019 * go32-nat.c (go32_attach): Make "args" const.
4020 * gnu-nat.c (gnu_attach): Make "args" const.
4021 * darwin-nat.c (darwin_attach): Make "args" const.
4022 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
4023 * linux-nat.c (linux_nat_attach): Make "args" const.
4024 * remote.c (extended_remote_attach_1, extended_remote_attach):
4025 Make "args" const.
4026 * target.h (struct target_ops) <to_attach>: Make "args" const.
4027 (find_default_attach): Likewise.
4028 * utils.c (parse_pid_to_attach): Make "args" const.
4029 * utils.h (parse_pid_to_attach): Update.
4030
8eaff7cd
TT
40312014-06-04 Tom Tromey <tromey@redhat.com>
4032
4033 * target-delegates.c: Rebuild.
4034 * target.c (default_thread_address_space): New function.
4035 (target_thread_address_space): Simplify.
4036 * target.h (struct target_ops) <to_thread_address_space>: Add
4037 TARGET_DEFAULT_FUNC.
4038
1913f160
DE
40392014-06-04 Doug Evans <xdje42@gmail.com>
4040
4041 * guile/scm-type.c (type_smob): Remove duplicate typedef.
4042
70ad5bff
MM
40432014-06-04 Markus Metzger <markus.t.metzger@intel.com>
4044
4045 * record-btrace.c: Include event-loop.h and inf-loop.h.
4046 (record_btrace_resume_exec_dir)
4047 (record_btrace_async_inferior_event_handler)
4048 (record_btrace_handle_async_inferior_event): New.
4049 (record_btrace_open): Create async event handler.
4050 (record_btrace_close): Delete async event handler.
4051 (record_btrace_resume): Set record_btrace_resume_exec_dir,
4052 Mark async event handler.
4053 (record_btrace_execution_direction): New.
4054 (init_record_btrace_ops): Initialize to_execution_direction.
4055
b6210538
DE
40562014-06-03 Doug Evans <xdje42@gmail.com>
4057
4058 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
4059 (gdbscm_make_parameter): Ditto.
4060
a5b1fd27
DE
40612014-06-03 Doug Evans <dje@google.com>
4062
4063 * exec.c (exec_close_1): Call clear_section_table instead of
4064 resize_section_table.
4065 (clear_section_table): New function.
4066 (resize_section_table): Make static. Rename arg num_added to
4067 adjustment.
4068 * exec.h (clear_section_table): Declare.
4069 (resize_section_table): Delete.
4070 * progspace.c (release_program_space): Call clear_section_table
4071 instead of resize_section_table.
4072
0c6e92a5
SC
40732014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4074
4075 * NEWS (Python Scripting): Add entry about the new xmethods
4076 feature.
4077
883964a7
SC
40782014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4079
4080 * python/py-xmethods.c: New file.
4081 * python/py-objfile.c (objfile_object): New field 'xmethods'.
4082 (objfpy_dealloc): XDECREF on the new xmethods field.
4083 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
4084 field.
4085 (objfpy_get_xmethods): New function.
4086 (objfile_getset): New entry 'xmethods'.
4087 * python/py-progspace.c (pspace_object): New field 'xmethods'.
4088 (pspy_dealloc): XDECREF on the new xmethods field.
4089 (pspy_new, pspace_to_pspace_object): Initialize xmethods
4090 field.
4091 (pspy_get_xmethods): New function.
4092 (pspace_getset): New entry 'xmethods'.
4093 * python/python-internal.h: Add declarations for new functions.
4094 * python/python.c (_initialize_python): Invoke
4095 gdbpy_initialize_xmethods.
4096 * python/lib/gdb/__init__.py (xmethods): New
4097 attribute.
4098 * python/lib/gdb/xmethod.py: New file.
4099 * python/lib/gdb/command/xmethods.py: New file.
4100
58992dc5
SC
41012014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4102
4103 * eval.c (evaluate_subexp_standard): Call the xmethod if the
4104 best match method returned by find_overload_match is an xmethod.
4105 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
4106 the best matching operator returned by find_overload_match is an
4107 xmethod.
4108 * valops.c: #include "extension.h".
4109 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
4110 Return void. The list of matching source methods is returned in
4111 "fn_list" and a vector of matching debug method workers is
4112 returned in "xm_worker_vec". Update all callers.
4113 (value_find_oload_method_list): Likewise.
4114 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
4115 non-NULL, then the index of the best matching method in this
4116 vector is returned. Update all callers.
4117 (find_overload_match): Include xmethods while performing overload
4118 resolution.
4119
e81e7f5e
SC
41202014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4121
4122 * defs.h (enum lval_type): New enumerator "lval_xcallable".
4123 * extension-priv.h (struct extension_language_ops): Add the
4124 xmethod interface.
4125 * extension.c (new_xmethod_worker, clone_xmethod_worker,
4126 get_matching_xmethod_workers, get_xmethod_argtypes,
4127 invoke_xmethod, free_xmethod_worker,
4128 free_xmethod_worker_vec): New functions.
4129 * extension.h: #include "common/vec.h".
4130 New function declarations.
4131 (struct xmethod_worker): New struct.
4132 (VEC (xmethod_worker_ptr)): New vector type.
4133 (xmethod_worker_ptr): New typedef.
4134 (xmethod_worker_vec): Likewise.
4135 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
4136 builtin_type.
4137 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
4138 (struct builtin_type): New field "xmethod".
4139 * valarith.c (value_ptradd): Assert that the value argument is not
4140 lval_xcallable.
4141 * valops.c (value_must_coerce_to_target): Return 0 for
4142 lval_xcallable values.
4143 * value.c (struct value): New field XM_WORKER in the field
4144 LOCATION.
4145 (value_address, value_raw_address): Return 0 for lval_xcallable
4146 values.
4147 (set_value_address): Assert that the value is not an
4148 lval_xcallable.
4149 (value_free): Free the associated xmethod worker when freeing
4150 lval_xcallable values.
4151 (set_value_component_location): Assert that the WHOLE value is not
4152 lval_xcallable.
4153 (value_of_xmethod, call_xmethod): New functions.
4154 * value.h: Declare "struct xmethod_worker".
4155 Declare new functions value_of_xmethod, call_xmethod.
4156
ef370185
JB
41572014-06-03 Joel Brobecker <brobecker@adacore.com>
4158 Pedro Alves <palves@redhat.com>
4159
4160 PR breakpoints/17000
4161 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
4162 New function, extracted from software_breakpoint_inserted_here_p.
4163 (software_breakpoint_inserted_here_p): Replace factored out code
4164 by call to find_non_raw_software_breakpoint_inserted_here.
4165 (bp_target_info_copy_insertion_state): New function.
4166 (bkpt_insert_location): Handle the case of a single-step
4167 breakpoint already inserted at the same address.
4168 (bkpt_remove_location): Handle the case of a single-step
4169 breakpoint still inserted at the same address.
4170 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
4171 breakpoint already inserted at the same address.
4172 (deprecated_remove_raw_breakpoint): Handle the case of a
4173 non-raw breakpoint still inserted at the same address.
4174 (find_single_step_breakpoint): New function, extracted from
4175 single_step_breakpoint_inserted_here_p.
4176 (find_single_step_breakpoint): New function,
4177 factored out from single_step_breakpoint_inserted_here_p.
4178 (single_step_breakpoint_inserted_here_p): Reimplement.
4179
1e2ccb61
BM
41802014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
4181
4182 Pushed by Joel Brobecker <brobecker@adacore.com>
4183 * source.c (show_substitute_path_command): Fix display of matching
4184 substitution rules.
4185
d3448d85
GB
41862014-06-03 Gary Benson <gbenson@redhat.com>
4187
4188 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
4189
06eb1586
DE
41902014-06-02 Doug Evans <xdje42@gmail.com>
4191
4192 Add parameter support for Guile.
4193 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
4194 (SUBDIR_GUILE_SRCS): Add scm-param.c.
4195 (scm-param.o): New rule.
4196 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
4197 (gdbscm_misc_error): Declare.
4198 (gdbscm_canonicalize_command_name): Declare.
4199 (gdbscm_scm_to_host_string): Declare.
4200 (gdbscm_scm_from_host_string): Declare.
4201 (gdbscm_initialize_parameters): Declare.
4202 * guile/guile.c (initialize_gdb_module): Call
4203 gdbscm_initialize_parameters.
4204 * guile/lib/gdb.scm: Export parameter symbols.
4205 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
4206 cmdscm_canonicalize_name and made public. All callers updated.
4207 * guile/scm-exception.c (gdbscm_misc_error): New function.
4208 * guile/scm-param.c: New file.
4209 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
4210 (gdbscm_scm_to_host_string): New function.
4211 (gdbscm_scm_from_host_string): New function.
4212 * scm-utils.c (gdbscm_gc_dup_argv): New function.
4213
e698b8c4
DE
42142014-06-02 Doug Evans <xdje42@gmail.com>
4215
4216 Add command support for Guile.
4217 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
4218 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
4219 (scm-cmd.o): New rule.
4220 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
4221 (gdbscm_user_error_p): Declare.
4222 (gdbscm_parse_command_name): Declare.
4223 (gdbscm_valid_command_class_p): Declare.
4224 (gdbscm_initialize_commands): Declare.
4225 * guile/guile.c (initialize_gdb_module): Call
4226 gdbscm_initialize_commands.
4227 * guile/lib/gdb.scm: Export command symbols.
4228 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
4229 (throw-user-error): New function.
4230 * guile/scm-cmd.c: New file.
4231 * guile/scm-exception.c (user_error_symbol): New static global.
4232 (gdbscm_user_error_p): New function.
4233 (gdbscm_initialize_exceptions): Set user_error_symbol.
4234 * scm-utils.c (gdbscm_gc_xstrdup): New function.
4235
fb1f94b0
PM
42362014-06-02 Phil Muldoon <pmuldoon@redhat.com>
4237
4238 * top.c (command_loop): Handle comments here...
4239 (command_line_input): ... not here.
4240
ded03782
DE
42412014-06-02 Doug Evans <xdje42@gmail.com>
4242
4243 Add progspace support for Guile.
4244 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
4245 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
4246 (scm-progspace.o): New rule.
4247 * guile/guile-internal.h (pspace_smob): New typedef.
4248 (psscm_pspace_smob_pretty_printers): Declare.
4249 (psscm_pspace_smob_from_pspace): Declare.
4250 (psscm_scm_from_pspace): Declare.
4251 * guile/guile.c (initialize_gdb_module): Call
4252 gdbscm_initialize_pspaces.
4253 * guile/lib/gdb.scm: Export progspace symbols.
4254 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
4255 support.
4256 (append-pretty-printer!): Ditto.
4257 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
4258 Implement.
4259 * guile/scm-progspace.c: New file.
4260
397998fc
AM
42612014-06-03 Alan Modra <amodra@gmail.com>
4262
4263 * ppc64-tdep.c (ppc64_standard_linkage8): New.
4264 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
4265
6aa5f3a6
DE
42662014-06-02 Doug Evans <dje@google.com>
4267
4268 Add support for skeletonless type units.
4269 * dwarf2read.c (struct dwarf2_per_objfile): New member
4270 n_allocated_type_units.
4271 (struct dwarf2_per_objfile) <tu_stats>: New member
4272 nr_all_type_units_reallocs.
4273 (create_signatured_type_table_from_index): Initialize
4274 n_allocated_type_units
4275 (create_all_type_units): Ditto.
4276 (add_type_unit): Move up in file. New arg slot.
4277 All callers updated. Increase space for all_type_units more
4278 efficiently.
4279 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
4280 (lookup_dwo_signatured_type): Handle skeletonless TUs.
4281 (lookup_dwp_signatured_type): Ditto.
4282 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
4283 All callers updated.
4284 (build_type_psymtabs_1): Leave type_unit_groups as
4285 NULL if no TUs present.
4286 (print_tu_stats): New function.
4287 (process_skeletonless_type_unit): New function.
4288 (process_dwo_file_for_skeletonless_type_units): New
4289 function.
4290 (process_skeletonless_type_units): New function.
4291 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
4292 Call print tu_stats if debugging enabled.
4293
41fac0cf
PA
42942014-06-02 Pedro Alves <palves@redhat.com>
4295
4296 * breakpoint.c (build_target_command_list): Don't build a command
4297 list if we have any duplicate location that isn't a dprintf.
4298
cd1608cc
PA
42992014-06-02 Pedro Alves <palves@redhat.com>
4300
4301 * breakpoint.c (dprintf_breakpoint_hit): New function.
4302 (initialize_breakpoint_ops): Install it as dprintf's
4303 breakpoint_hit method.
4304
486ef3b9
JB
43052014-06-02 Joel Brobecker <brobecker@adacore.com>
4306
4307 * source.c (substitute_path_rule_matches): Simplify using
4308 filename_ncmp instead of FILENAME_CMP.
4309
230cd560
JB
43102014-06-02 Joel Brobecker <brobecker@adacore.com>
4311
4312 * source.c (substitute_path_rule_matches): Remove trailing spaces.
4313
16954d5d
LC
43142014-06-01 Ludovic Courtès <ludo@gnu.org>
4315
4316 * configure.ac: When Guile is available, check for the
4317 availability of 'scm_new_smob'.
4318 * configure, config.h.in: Regenerate.
4319 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
4320 function.
4321
53e8a631
AB
43222014-05-30 Andrew Burgess <aburgess@broadcom.com>
4323
4324 * frame.c (struct frame_info): Add stop_string field.
4325 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
4326 (get_prev_frame_always): Old content moved into
4327 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
4328 TRY_CATCH, handle MEMORY_ERROR exceptions.
4329 (frame_stop_reason_string): New function definition.
4330 * frame.h (unwind_stop_reason_to_string): Extend comment to
4331 mention frame_stop_reason_string.
4332 (frame_stop_reason_string): New function declaration.
4333 * stack.c (frame_info): Switch to frame_stop_reason_string.
4334 (backtrace_command_1): Switch to frame_stop_reason_string.
4335 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
4336 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
4337 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
4338
70e38b8e
AB
43392014-05-30 Andrew Burgess <aburgess@broadcom.com>
4340
4341 * frame.c (frame_stop_reason_string): Rename to ...
4342 (unwind_stop_reason_to_string): this.
4343 * frame.h (frame_stop_reason_string): Rename to ...
4344 (unwind_stop_reason_to_string): this.
4345 * stack.c (frame_info): Update call to frame_stop_reason_string.
4346 (backtrace_command_1): Likewise.
4347 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
4348 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
4349
938f0e2f
AB
43502014-05-30 Andrew Burgess <aburgess@broadcom.com>
4351
4352 * frame.c (remove_prev_frame): New function.
4353 (get_prev_frame_if_no_cycle): Create / discard cleanup using
4354 remove_prev_frame.
4355
a09dd441
PA
43562014-05-29 Pedro Alves <palves@redhat.com>
4357
4358 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
4359 and make it const. When a single-step decays to a continue,
4360 clear 'step', not 'hw_step'. Pass whether the caller wanted
4361 to step to user_visible_resume_ptid, not what we ask the
4362 target to do.
4363
bdc36728
PA
43642014-05-29 Pedro Alves <palves@redhat.com>
4365
4366 * infrun.c (process_event_stop_test, handle_step_into_function)
4367 (handle_step_into_function_backward): Adjust.
4368 Don't set the even thread's stop_step and call stop_waiting before
4369 calling end_stepping_range. Instead do that ...
4370 (end_stepping_range): ... here. Take an ecs pointer parameter.
4371
22bcd14b
PA
43722014-05-29 Pedro Alves <palves@redhat.com>
4373
4374 * infrun.c (stop_stepping): Rename to ...
4375 (stop_waiting): ... this.
4376 (proceed): Update comment.
4377 (process_event_stop_test, handle_inferior_event)
4378 (handle_signal_stop, handle_step_into_function)
4379 (handle_step_into_function_backward): Update.
4380
4ae57c05
PA
43812014-05-29 Pedro Alves <palves@redhat.com>
4382
4383 * infcall.c (run_inferior_call): Don't check whether the current
4384 thread is running after the proceed call.
4385
329ea579
PA
43862014-05-29 Pedro Alves <palves@redhat.com>
4387 Tom Tromey <tromey@redhat.com>
4388
4389 * NEWS: Mention "maint set target-async", "set mi-async", and that
4390 background execution commands are now always available.
4391 * target.h (target_async_permitted): Update comment.
4392 * target.c (target_async_permitted, target_async_permitted_1):
4393 Default to 1.
4394 (set_target_async_command): Rename to ...
4395 (maint_set_target_async_command): ... this.
4396 (show_target_async_command): Rename to ...
4397 (maint_show_target_async_command): ... this.
4398 (_initialize_target): Adjust.
4399 * infcmd.c (prepare_execution_command): Make extern.
4400 * inferior.h (prepare_execution_command): Declare.
4401 * infrun.c (set_observer_mode): Leave target async alone.
4402 * mi/mi-interp.c (mi_interpreter_init): Install
4403 mi_on_sync_execution_done as sync_execution_done observer.
4404 (mi_on_sync_execution_done): New function.
4405 (mi_execute_command_input_handler): Don't print the prompt if we
4406 just started a synchronous command with an async target.
4407 (mi_on_resume): Check sync_execution before printing prompt.
4408 * mi/mi-main.h (mi_async_p): Declare.
4409 * mi/mi-main.c: Include gdbcmd.h.
4410 (mi_async_p): New function.
4411 (mi_async, mi_async_1): New globals.
4412 (set_mi_async_command, show_mi_async_command, mi_async): New
4413 functions.
4414 (exec_continue): Call prepare_execution_command.
4415 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
4416 (mi_execute_async_cli_command): Use mi_async_p.
4417 (_initialize_mi_main): Install "set mi-async". Make
4418 "target-async" a deprecated alias.
4419
92bcb5f9
PA
44202014-05-29 Pedro Alves <palves@redhat.com>
4421
4422 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
4423 (_initialize_cli_interp): Adjust.
4424 * event-loop.c: Include "observer.h".
4425 (start_event_loop): Notify 'command_error' observers instead of
4426 calling display_gdb_prompt. Remove FIXME comment.
4427 * event-top.c (display_gdb_prompt): Remove call into the
4428 interpreters.
4429 * inf-loop.c: Include "observer.h".
4430 (inferior_event_handler): Notify 'command_error' observers instead
4431 of calling display_gdb_prompt.
4432 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
4433 observers instead of calling display_gdb_prompt.
4434 * interps.c (interp_set): Don't call display_gdb_prompt.
4435 (current_interp_display_prompt_p): Delete.
4436 * interps.h (interp_prompt_p): Delete declaration.
4437 (interp_prompt_p_ftype): Delete.
4438 (struct interp_procs) <prompt_proc_p>: Delete field.
4439 (current_interp_display_prompt_p): Delete declaration.
4440 * mi-interp.c (mi_interpreter_prompt_p): Delete.
4441 (_initialize_mi_interp): Adjust.
4442 * tui-interp.c (tui_init): Install 'sync_execution_done' and
4443 'command_error' observers.
4444 (tui_on_sync_execution_done, tui_on_command_error): New
4445 functions.
4446 (tui_display_prompt_p): Delete.
4447 (_initialize_tui_interp): Adjust.
4448
fd664c91
PA
44492014-05-29 Pedro Alves <palves@redhat.com>
4450
4451 PR gdb/13860
4452 * cli/cli-interp.c: Include infrun.h and observer.h.
4453 (cli_uiout, cli_interp): New globals.
4454 (cli_on_signal_received, cli_on_end_stepping_range)
4455 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
4456 functions.
4457 (cli_interpreter_init): Install them as 'end_stepping_range',
4458 'signal_received' 'signal_exited', 'exited' and 'no_history'
4459 observers.
4460 (_initialize_cli_interp): Remove cli_interp local.
4461 * infrun.c (handle_inferior_event): Call the several stop reason
4462 observers instead of printing the stop reason directly.
4463 (end_stepping_range): New function.
4464 (print_end_stepping_range_reason, print_signal_exited_reason)
4465 (print_exited_reason, print_signal_received_reason)
4466 (print_no_history_reason): Make static, and add an uiout
4467 parameter. Print to that instead of to CURRENT_UIOUT.
4468 * infrun.h (print_end_stepping_range_reason)
4469 (print_signal_exited_reason, print_exited_reason)
4470 (print_signal_received_reason print_no_history_reason): New
4471 declarations.
4472 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
4473 'mi_uiout'.
4474 <cli_uiout>: New field.
4475 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
4476 uiout for CLI output. Install 'signal_received',
4477 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
4478 observers.
4479 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
4480 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
4481 (mi_on_no_history): New functions.
4482 (ui_out_free_cleanup): Delete function.
4483 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
4484 instead use the one already stored in the MI interpreter data.
4485 (mi_ui_out): Adjust.
4486 * tui/tui-interp.c: Include infrun.h and observer.h.
4487 (tui_interp): New global.
4488 (tui_on_signal_received, tui_on_end_stepping_range)
4489 (tui_on_signal_exited, tui_on_exited)
4490 (tui_on_no_history): New functions.
4491 (tui_init): Install them as 'end_stepping_range',
4492 'signal_received' 'signal_exited', 'exited' and 'no_history'
4493 observers.
4494 (_initialize_tui_interp): Delete tui_interp local.
4495
8817a6f2
PA
44962014-05-29 Pedro Alves <palves@redhat.com>
4497
4498 PR gdb/15713
4499 * linux-nat.c (linux_nat_resume_callback): Rename the second
4500 parameter to 'except'. Skip LP if it points to EXCEPT.
4501 (linux_nat_resume): Don't mark the event lwp as not stopped
4502 before resuming sibling lwps. Instead ask
4503 linux_nat_resume_callback to skip the event lwp. Mark it as not
4504 stopped after actually resuming it.
4505 (linux_handle_syscall_trap): Mark the lwp as not stopped after
4506 resuming it.
4507 (wait_lwp): Mark the lwp as stopped here.
4508 (stop_wait_callback): Mark the lwp as not stopped right after
4509 resuming it. Don't mark lwps as stopped here.
4510 (linux_nat_filter_event): Mark the lwp as stopped earlier.
4511 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
4512
251bde03
PA
45132014-05-29 Pedro Alves <palves@redhat.com>
4514
4515 PR PR15693
4516 * infrun.c (resume): Determine how much to resume depending on
4517 whether the caller wanted a step, not whether we can hardware step
4518 the target. Mark all threads that we intend to run as running,
4519 unless we're calling an inferior function.
4520 (normal_stop): If the thread is running an infcall, don't finish
4521 thread state.
4522 * target.c (target_resume): Don't mark threads as running here.
4523
7f3c0343
JB
45242014-05-28 Joel Brobecker <brobecker@adacore.com>
4525
4526 * serial.c (_initialize_serial): Remove support for
4527 the "set remotebaud" and "show remotebaud" commands.
4528 * NEWS: Add entry documenting the removal of that command.
4529
ee34b3f9
YQ
45302014-05-28 Yao Qi <yao@codesourcery.com>
4531
4532 * charset.c: Fix typo in comments.
4533
add6c04d
GB
45342014-05-27 Gary Benson <gbenson@redhat.com>
4535
4536 * utils.c (internal_vproblem): Prompt for a bug report.
4537
92c48fc5
AW
45382014-05-26 Andy Wingo <wingo@igalia.com>
4539
4540 * guile/scm-arch.c (arscm_mark_arch_smob):
4541 * guile/scm-block.c (bkscm_mark_block_smob)
4542 (bkscm_mark_block_syms_progress_smob):
4543 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
4544 * guile/scm-exception.c (exscm_mark_exception_smob):
4545 * guile/scm-frame.c (frscm_mark_frame_smob):
4546 * guile/scm-iterator.c (itscm_mark_iterator_smob):
4547 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
4548 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
4549 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
4550 (ppscm_mark_pretty_printer_worker_smob):
4551 * guile/scm-symbol.c (syscm_mark_symbol_smob):
4552 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
4553 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
4554 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
4555 mark functions.
4556 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
4557 function.
4558
b2715b27
AW
45592014-05-26 Andy Wingo <wingo@igalia.com>
4560 Doug Evans <xdje42@gmail.com>
4561
4562 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
4563 empty_base_class. All uses updated.
4564 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
4565 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
4566 Adapt all callers.
4567 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
4568 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
4569 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
4570 (gdbscm_gsmob_has_property_p, add_property_name)
4571 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
4572 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
4573 (gdb-object-has-property?, gdb-object-properties): Remove.
4574 (gdb-object-kind): Renamed from gsmob-kind.
4575
214ab2da
AW
45762014-05-26 Andy Wingo <wingo@igalia.com>
4577
4578 * configure.ac (try_guile_versions): Allow building with guile 2.2.
4579 * configure: Regenerate.
4580
589fdceb
MM
45812014-05-23 Markus Metzger <markus.t.metzger@intel.com>
4582
4583 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
4584
67b5c0c1
MM
45852014-05-23 Markus Metzger <markus.t.metzger@intel.com>
4586
4587 * record-btrace.c (record_btrace_allow_memory_access): Remove.
4588 (replay_memory_access_read_only, replay_memory_access_read_write)
4589 (replay_memory_access_types, replay_memory_access)
4590 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
4591 (cmd_set_record_btrace, cmd_show_record_btrace)
4592 (cmd_show_replay_memory_access): New.
4593 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
4594 (record_btrace_remove_breakpoint): Replace
4595 record_btrace_allow_memory_access with replay_memory_access.
4596 (_initialize_record_btrace): Add commands.
4597 * NEWS: Announce it.
4598
036cd381
RR
45992014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4600
4601 * aarch64-linux-nat.c (asm/ptrace.h): Include.
4602
c77c1e42
RR
46032014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4604
4605 * MAINTAINERS (Write After Approval): Move self back from
4606 paper trail.
4607
45741a9c
PA
46082014-05-22 Pedro Alves <palves@redhat.com>
4609
4610 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
4611 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
4612 (disable_randomization, enum exec_direction_kind)
4613 (execution_direction, stop_registers, start_remote)
4614 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
4615 (wait_for_inferior, normal_stop, get_last_target_status)
4616 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
4617 (insert_step_resume_breakpoint_at_sal)
4618 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
4619 (set_step_info, print_stop_event, signal_stop_state)
4620 (signal_print_state, signal_pass_state, signal_stop_update)
4621 (signal_print_update, signal_pass_update)
4622 (update_signals_program_target, clear_exit_convenience_vars)
4623 (displaced_step_dump_bytes, update_observer_mode)
4624 (signal_catch_update, gdb_signal_from_command): Move
4625 declarations ...
4626 * infrun.h: ... to this new file.
4627 * amd64-tdep.c: Include infrun.h.
4628 * annotate.c: Include infrun.h.
4629 * arch-utils.c: Include infrun.h.
4630 * arm-linux-tdep.c: Include infrun.h.
4631 * arm-tdep.c: Include infrun.h.
4632 * break-catch-sig.c: Include infrun.h.
4633 * breakpoint.c: Include infrun.h.
4634 * common/agent.c: Include infrun.h instead of inferior.h.
4635 * corelow.c: Include infrun.h.
4636 * event-top.c: Include infrun.h.
4637 * go32-nat.c: Include infrun.h.
4638 * i386-tdep.c: Include infrun.h.
4639 * inf-loop.c: Include infrun.h.
4640 * infcall.c: Include infrun.h.
4641 * infcmd.c: Include infrun.h.
4642 * infrun.c: Include infrun.h.
4643 * linux-fork.c: Include infrun.h.
4644 * linux-nat.c: Include infrun.h.
4645 * linux-thread-db.c: Include infrun.h.
4646 * monitor.c: Include infrun.h.
4647 * nto-tdep.c: Include infrun.h.
4648 * procfs.c: Include infrun.h.
4649 * record-btrace.c: Include infrun.h.
4650 * record-full.c: Include infrun.h.
4651 * remote-m32r-sdi.c: Include infrun.h.
4652 * remote-mips.c: Include infrun.h.
4653 * remote-notif.c: Include infrun.h.
4654 * remote-sim.c: Include infrun.h.
4655 * remote.c: Include infrun.h.
4656 * reverse.c: Include infrun.h.
4657 * rs6000-tdep.c: Include infrun.h.
4658 * s390-linux-tdep.c: Include infrun.h.
4659 * solib-irix.c: Include infrun.h.
4660 * solib-osf.c: Include infrun.h.
4661 * solib-svr4.c: Include infrun.h.
4662 * target.c: Include infrun.h.
4663 * top.c: Include infrun.h.
4664 * windows-nat.c: Include infrun.h.
4665 * mi/mi-interp.c: Include infrun.h.
4666 * mi/mi-main.c: Include infrun.h.
4667 * python/py-threadevent.c: Include infrun.h.
4668
98eb56a4
PA
46692014-05-22 Pedro Alves <palves@redhat.com>
4670
4671 * infrun.c (handle_inferior_event): Store the exit code for
4672 --return-child-result here, instead of ...
4673 (print_exited_reason): ... here.
4674
17b2616c
PA
46752014-05-21 Pedro Alves <palves@redhat.com>
4676
4677 PR gdb/13860
4678 * gdbthread.h (struct thread_control_state): New field
4679 `command_interp'.
4680 * infrun.c (follow_fork): Copy the new thread control field to the
4681 child fork thread.
4682 (clear_proceed_status_thread): Clear the new thread control field.
4683 (proceed): Set the new thread control field.
4684 * interps.h (command_interp): Declare.
4685 * interps.c (command_interpreter): New global.
4686 (command_interp): New function.
4687 (interp_exec): Set `command_interpreter' while here.
4688 * cli-out.c (cli_uiout_dtor): New function.
4689 (cli_ui_out_impl): Install it.
4690 * mi/mi-interp.c: Include cli-out.h.
4691 (mi_cmd_interpreter_exec): Add comment.
4692 (restore_current_uiout_cleanup): New function.
4693 (ui_out_free_cleanup): New function.
4694 (mi_on_normal_stop): If finishing an execution command started by
4695 a CLI command, or any kind of breakpoint-like event triggered,
4696 print the stop event to the output (CLI) stream.
4697 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
4698
5166082f
PA
46992014-05-21 Pedro Alves <palves@redhat.com>
4700
4701 * cli/cli-cmds.c (list_command): Handle the first "list" after the
4702 current source line having changed.
4703 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
4704 * infrun.c (normal_stop): Adjust call to
4705 set_current_sal_from_frame.
4706 * source.c (clear_lines_listed_range): New function.
4707 (set_current_source_symtab_and_line, identify_source_line): Clear
4708 the lines listed range.
4709 (line_info): Handle the first "info line" after the current source
4710 line having changed.
4711 * stack.c (print_stack_frame): Remove center handling.
4712 (set_current_sal_from_frame): Remove 'center' parameter. Don't
4713 center sal.line.
4714
c1ee2fb3
PA
47152014-05-21 Pedro Alves <palves@redhat.com>
4716
4717 * inf-child.c (inf_child_mourn_inferior): New function.
4718 * inf-child.h (inf_child_mourn_inferior): New declaration.
4719 * darwin-nat.c (darwin_mourn_inferior): Use
4720 inf_child_mourn_inferior.
4721 * gnu-nat.c (gnu_mourn_inferior): Likewise.
4722 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
4723 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
4724 * nto-procfs.c (procfs_mourn_inferior): Likewise.
4725 * windows-nat.c (windows_mourn_inferior): Likewise.
4726
5c6d4fb2
DE
47272014-05-21 Doug Evans <xdje42@gmail.com>
4728
250748cb 4729 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5c6d4fb2 4730
4a2722c5
DE
47312014-05-21 Doug Evans <xdje42@gmail.com>
4732
17292b30 4733 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4a2722c5
DE
4734 (gdbscm_out_of_range_error): Ditto.
4735 (gdbscm_memory_error): Ditto.
250748cb
DE
4736 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
4737 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4a2722c5
DE
4738 (gdbscm_out_of_range_error): Update.
4739 (gdbscm_memory_error): Update.
4740 (gdbscm_scm_to_target_string_unsafe): Delete.
4741
6a3cb8e8
PA
47422014-05-21 Pedro Alves <palves@redhat.com>
4743
4744 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
4745 globals.
4746 (inf_child_open_target): New function.
4747 (inf_child_open): Use inf_child_open_target to push the target
4748 instead of erroring out.
4749 (inf_child_disconnect, inf_child_close)
4750 (inf_child_maybe_unpush_target): New functions.
4751 (inf_child_target): Install inf_child_disconnect and
4752 inf_child_close. Store a pointer to the returned object.
4753 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
4754 declarations.
4755 * target.c (auto_connect_native_target): New global.
4756 (show_default_run_target): New function.
4757 (find_default_run_target): Return NULL if automatically connecting
4758 to the native target is disabled.
4759 (_initialize_target): Install set/show auto-connect-native-target.
4760 * NEWS: Mention "set auto-connect-native-target", and "target
4761 native".
4762 * linux-nat.c (super_close): New global.
4763 (linux_nat_close): Call super_close.
4764 (linux_nat_add_target): Store a pointer to the base class's
4765 to_close method.
4766 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
4767 inf_child_maybe_unpush.
4768 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
4769 already pushed.
4770 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
4771 the inferior. Use inf_child_maybe_unpush_target.
4772 (inf_ttrace_attach): Don't push the target if it is already
4773 pushed.
4774 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
4775 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
4776 after mourning the inferior. Use inf_child_maybe_unpush_target.
4777 (darwin_attach_pid): Don't push the target if it is already
4778 pushed.
4779 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
4780 mourning the inferior. Use inf_child_maybe_unpush_target.
4781 (gnu_detach): Use inf_child_maybe_unpush_target.
4782 * go32-nat.c (go32_create_inferior): Don't push the target if it
4783 is already pushed.
4784 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
4785 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
4786 (procfs_open): Rename to ...
4787 (procfs_open_1): ... this. Add target_ops parameter. Adjust
4788 comments. Can target_preopen before changing node. Call
4789 inf_child_open_target to push the target explicitly.
4790 (procfs_attach): Don't push the target if it is already pushed.
4791 (procfs_detach): Use inf_child_maybe_unpush_target.
4792 (procfs_create_inferior): Don't push the target if it is already
4793 pushed.
4794 (nto_native_ops): New global.
4795 (procfs_open): Reimplement.
4796 (procfs_native_open): New function.
4797 (init_procfs_targets): Install procfs_native_open as to_open of
4798 "target native". Store a pointer to the "native" target in
4799 nto_native_ops.
4800 * procfs.c (procfs_attach): Don't push the target if it is already
4801 pushed.
4802 (procfs_detach): Use inf_child_maybe_unpush_target.
4803 (procfs_mourn_inferior): Only unpush the target after mourning the
4804 inferior. Use inf_child_maybe_unpush_target.
4805 (procfs_init_inferior): Don't push the target if it is already
4806 pushed.
4807 * windows-nat.c (do_initial_windows_stuff): Don't push the target
4808 if it is already pushed.
4809
930ee1b1
PA
48102014-05-21 Pedro Alves <palves@redhat.com>
4811
4812 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
4813 and "procfs" targets are now called "native" instead.
4814
1f5d1b13
PA
48152014-05-21 Pedro Alves <palves@redhat.com>
4816
4817 * go32-nat.c (go32_open): Delete.
4818 (go32_target): Don't override the to_open method.
4819
132f8e03
PA
48202014-05-21 Pedro Alves <palves@redhat.com>
4821
4822 * nto-procfs.c (procfs_can_run): New function.
4823 (nto_procfs_ops): New global.
4824 (init_procfs_targets): New, based on procfs_target. Install
4825 "target native" in addition to "target procfs".
4826 (_initialize_procfs): Call init_procfs_targets instead of adding
4827 the target here.
4828
03c136c3
PA
48292014-05-21 Pedro Alves <palves@redhat.com>
4830
4831 * windows-nat.c (windows_target): Don't override to_shortname,
4832 to_longname or to_doc.
4833
a635d0f3
PA
48342014-05-21 Pedro Alves <palves@redhat.com>
4835
4836 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
4837 to_doc.
4838
4f9b5133
PA
48392014-05-21 Pedro Alves <palves@redhat.com>
4840
4841 * darwin-nat.c (_initialize_darwin_inferior): Don't override
4842 to_shortname, to_longname or to_doc.
4843
bc85afde
PA
48442014-05-21 Pedro Alves <palves@redhat.com>
4845
4846 * go32-nat.c (go32_target): Don't override to_shortname,
4847 to_longname or to_doc.
4848
4ebfc96e
PA
48492014-05-21 Pedro Alves <palves@redhat.com>
4850
4851 * inf-child.c (inf_child_open): Remove mention of "child".
4852 (inf_child_target): Rename target to "native" instead of "child".
4853
2648dfed
AA
48542014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4855
4856 * Makefile.in (SFILES): Delete "regset.c".
4857 (COMMON_OBS): Delete "regset.o".
4858 * regset.c: Remove.
4859 * regset.h (regset_alloc): Delete prototype.
4860
b13feb94
AA
48612014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4862
4863 * sparc-linux-tdep.c (sparc32_linux_gregset)
4864 (sparc32_linux_fpregset): New static regset structures.
4865 (sparc32_linux_init_abi): Drop dynamic regset allocations.
4866 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
4867 'fpregset' fields.
4868 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
4869 (sparc64_linux_fpregset): New static regset structures.
4870 (sparc64_linux_init_abi): Drop dynamic regset allocations.
4871 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
4872 New static regset structures.
4873 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
4874 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
4875 New static regset structures.
4876 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
4877 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
4878 New static regset structures.
4879 (sparc64obsd_init_abi): Drop dynamic regset allocations.
4880 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
4881 New static regset structures.
4882 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
4883
b4fd25c9
AA
48842014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4885
4886 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
4887 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
4888 register maps ("regmaps") from "*regset" to "*regmap". Do this
4889 for all regmap types and variables.
4890 * sparc-linux-tdep.c (sparc32_linux_step_trap)
4891 (sparc32_linux_supply_core_gregset)
4892 (sparc32_linux_collect_core_gregset)
4893 (sparc32_linux_supply_core_fpregset)
4894 (sparc32_linux_collect_core_fpregset): Likewise.
4895 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
4896 (sparc_gregmap, sparc_fpregmap): ... these.
4897 (sparc_supply_gregset, sparc_collect_gregset)
4898 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
4899 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
4900 (_initialize_sparc_nat): Rename regmaps.
4901 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
4902 (sparc_gregmap, sparc_fpregmap): ... these.
4903 (sparc_supply_gregset, sparc_collect_gregset)
4904 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
4905 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
4906 Rename macros to...
4907 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
4908 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
4909 Likewise.
4910 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
4911 Rename to...
4912 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
4913 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
4914 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
4915 regmaps.
4916 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4917 (sparc32_bsd_fpregset): Rename to...
4918 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4919 (sparc32_bsd_fpregmap): ... these.
4920 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
4921 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4922 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
4923 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
4924 (struct sparc_gregmap, struct sparc_fpregmap)
4925 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4926 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
4927 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
4928 (sparc32_supply_regset, sparc32_collect_gregset)
4929 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
4930 prototypes.
4931 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
4932 (sparc64_linux_ptrace_gregmap): ... this.
4933 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
4934 (_initialize_sparc64_linux_nat): Rename regmaps.
4935 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
4936 (sparc64_linux_core_gregmap): ... this.
4937 (sparc64_linux_supply_core_gregset)
4938 (sparc64_linux_collect_core_gregset)
4939 (sparc64_linux_supply_core_fpregset)
4940 (sparc64_linux_collect_core_fpregset): Rename regmaps.
4941 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
4942 (sparc64_sol2_fpregset): Rename to...
4943 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
4944 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
4945 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
4946 regmaps.
4947 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
4948 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
4949 (sparc64_bsd_fpregset): Rename to...
4950 (struct sparc_gregmap, sparc64_sol2_gregmap)
4951 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
4952 (sparc64_bsd_fpregmap): ... these.
4953 (sparc64_supply_gregset, sparc64_collect_gregset)
4954 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
4955 prototypes.
4956 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
4957 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
4958 (sparc64fbsd_gregmap): ... this.
4959 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
4960 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
4961 Rename regmaps.
4962 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
4963 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
4964 (sparc64nbsd_collect_fpregset): Likewise.
4965 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
4966 (sparc64nbsd_gregmap): ... this.
4967 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
4968 regmaps.
4969 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
4970 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
4971 (sparc64obsd_gregmap): ... this.
4972 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
4973 regmaps.
4974 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
4975 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
4976 (sparc32nbsd_gregmap): ... this.
4977 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
4978 regmaps.
4979
8fea3224
AA
49802014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4981
4982 * score-tdep.c (score7_linux_gregset): New static regset
4983 structure.
4984 (score7_linux_regset_from_core_section): Remove dynamic regset
4985 allocation.
4986 (score_gdbarch_init): Drop allocation of tdep structure.
4987 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
4988
24534243
AA
49892014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4990
4991 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
4992 regset structures.
4993 (am33_regset_from_core_section): Remove dynamic regset
4994 allocations.
4995
b7195f27
AA
49962014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4997
4998 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
4999 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
5000 structures.
5001 (mips_linux_regset_from_core_section): Remove dynamic regset
5002 allocations.
5003 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
5004 'gregset64', 'fpregset', and 'fpregset64'.
5005 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
5006 deleted tdep fields.
5007
ecc37a5a
AA
50082014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5009
5010 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
5011 regset structures.
5012 (amd64_regset_from_core_section): Remove dynamic regset
5013 allocations.
5014 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
5015 structure.
5016 (amd64obsd_regset_from_core_section): Remove dynamic regset
5017 allocation.
5018 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
5019 Likewise.
5020 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
5021 x86-common regset supply function.
5022 * i386-tdep.c (i386_collect_gregset): Make static.
5023 (i386_gregset): New global regset structure.
5024 (i386_fpregset, i386_xstateregset): New static regset structures.
5025 (i386_regset_from_core_section): Remove dynamic regset
5026 allocations.
5027 (i386_gdbarch_init): Remove initialization of tdep fields
5028 'gregset', 'fpregset', and 'xstateregset'.
5029 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
5030 'fpregset', and 'xstateregset'.
5031 (i386_collect_gregset): Remove prototype.
5032 (i386_gregset): New declaration.
5033 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
5034 structure.
5035 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
5036 allocation.
5037
b7611c43
AA
50382014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5039
5040 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
5041 (arm_linux_vfpregset): New static regset structures.
5042 (arm_linux_regset_from_core_section): Remove dynamic allocation of
5043 regset structures.
5044 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
5045 and 'vfpregset' fields.
5046
a069a2bd
AA
50472014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5048
5049 * aarch64-linux-tdep.c (aarch64_linux_gregset)
5050 (aarch64_linux_fpregset): New static regset structures.
5051 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
5052 of regset structures.
5053 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
5054 'fpregset' fields.
5055
09424cff
AA
50562014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5057
5058 * regset.h (struct regset): Remove gdbarch field.
5059 * regset.c (regset_alloc): Drop initialization of gdbarch field.
5060 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
5061 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
5062 Likewise.
5063 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
5064 (ppc32_linux_fpregset, ppc32_linux_vrregset)
5065 (ppc32_linux_vsxregset): Likewise.
5066 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
5067 via the regcache instead of the regset.
5068 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
5069 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
5070 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
5071 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
5072 Likewise.
5073
3ca7dae4
AA
50742014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5075
5076 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
5077 Constify structures.
5078 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
5079 (alphanbsd_aout_gregset): Likewise.
5080 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
5081 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
5082 Likewise.
5083 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
5084 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
5085 Likewise.
5086 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
5087 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
5088 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
5089 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
5090 * m88k-tdep.c (m88k_gregset): Likewise.
5091 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
5092 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
5093 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
5094 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
5095 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
5096 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
5097 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
5098 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
5099 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
5100 Likewise.
5101 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
5102 * sh-tdep.h (sh_corefile_gregset): Likewise.
5103 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
5104 * vax-tdep.c (vax_gregset): Likewise.
5105
5876f503
JK
51062014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5107
5108 Fix TLS access for -static -pthread.
5109 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
5110 (try_thread_db_load_1): Initialize it.
5111 (thread_db_get_thread_local_address): Call it if LM is zero.
5112 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
5113 * target.h (struct target_ops) (to_get_thread_local_address): Add
5114 load_module_addr comment.
5115
0256a6ac
PA
51162014-05-21 Pedro Alves <palves@redhat.com>
5117
5118 * dcache.c (dcache_read_memory_partial): If reading the cache line
5119 fails, fallback to reading just the memory the caller wanted.
5120
227533ac
DE
51212014-05-20 Doug Evans <dje@google.com>
5122
5123 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
5124 instead of get_current_arch.
5125
936d2992
PA
51262014-05-20 Pedro Alves <palves@redhat.com>
5127
5128 * NEWS: Mention that compare-sections now works with all targets.
5129
5130 * remote.c (PACKET_qCRC): New enum value.
5131 (remote_verify_memory): Don't send qCRC if the target has no
5132 execution. Use packet_support/packet_ok. If the target doesn't
5133 support the qCRC packet, fallback to a deep memory copy.
5134 (compare_sections_command): Say "target image" instead of "remote
5135 executable".
5136 (_initialize_remote): Add PACKET_qCRC to the list of config
5137 packets that have no associated command. Extend comment.
5138 * target.c (simple_verify_memory, default_verify_memory): New
5139 function.
5140 * target.h (struct target_ops) <to_verify_memory>: Default to
5141 default_verify_memory.
5142 (simple_verify_memory): New declaration.
5143 * target-delegates.c: Regenerate.
5144
e59fa00f
MM
51452014-05-20 Markus Metzger <markus.t.metzger@intel.com>
5146
5147 * record-btrace.c (record_btrace_step_thread): Check for empty history.
5148
f2205de0
HZ
51492014-05-20 Hui Zhu <hui@codesourcery.com>
5150 Yao Qi <yao@codesourcery.com>
5151
5152 PR backtrace/16558
5153 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
5154 and change address of sp and pc.
5155
c4e54771
TT
51562014-05-19 Tom Tromey <tromey@redhat.com>
5157
5158 * gdbtypes.c (rank_function): Use XNEWVEC.
5159 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
5160
73051182
DE
51612014-05-19 Doug Evans <dje@google.com>
5162
5163 * dwarf2read.c (build_type_psymtabs_1): Renamed from
5164 build_type_unit_groups and moved closer to only caller. Remove
5165 arguments. All references updated. Remove outdated .gdb_index
5166 comment.
5167 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
5168 build_type_psymtabs_1.
5169
8832e7e3
DE
51702014-05-19 Doug Evans <dje@google.com>
5171
5172 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
5173 n_type_unit_groups, all_type_unit_groups. All uses removed.
5174 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
5175 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
5176 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
5177 (add_type_unit_group_to_table): Delete.
5178
cd8ae15e
DE
51792014-05-19 Doug Evans <dje@google.com>
5180
5181 * eval.c (evaluate_subexp_standard): Add some comments.
5182
08f4850b
DE
51832014-05-17 Doug Evans <xdje42@gmail.com>
5184
5185 * progspace.c (remove_program_space): Delete, unused.
5186 * progspace.h (remove_program_space): Ditto.
5187
bed8455c
DE
51882014-05-17 Doug Evans <xdje42@gmail.com>
5189
5190 * inferior.c (prune_inferiors): Fix comment.
5191 (remove_inferior_command): Call prune_program_spaces.
5192
8d551b02
DE
51932014-05-16 Doug Evans <dje@google.com>
5194
5195 New command line option -D.
5196 * NEWS: Mention it.
5197 * main.c (set_gdb_data_directory): New function.
5198 (captured_main): Recognize -D. Flag error for --data-directory "".
5199 Call set_gdb_data_directory.
5200 (print_gdb_help): Print --data-directory, -D.
5201 * main.h (set_gdb_data_directory): Declare.
5202 * top.c (staged_gdb_datadir): New static global.
5203 (set_gdb_datadir): Call set_gdb_data_directory
5204 (show_gdb_datadir): New function.
5205 (init_main): Update init of data-directory parameter.
5206
18848e28
GF
52072014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
5208
5209 Import the "dirfd" gnulib module.
5210 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
5211 * gnulib/aclocal.m4: Update.
5212 * gnulib/config.in: Update.
5213 * gnulib/configure: Update.
5214 * gnulib/import/Makefile.am: Update.
5215 * gnulib/import/Makefile.in: Update.
5216 * gnulib/import/dirfd.c: New.
5217 * gnulib/import/m4/dirfd.m4: New.
5218 * gnulib/import/m4/gnulib-cache.m4: Update.
5219 * gnulib/import/m4/gnulib-comp.m4: Update.
5220
95c64f92
YQ
52212014-05-16 Pierre Muller <muller@sourceware.org>
5222 Yao Qi <yao@codesourcery.com>
5223
5224 * valprint.c (print_wchar): Move the code on checking whether
5225 W is a printable wide char to the default branch of switch
5226 statement below. Call wchar_printable instead of gdb_iswprint.
5227
cac395ea
TM
52282014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
5229
19679eca 5230 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
cac395ea
TM
5231 ldr.w and ldrd instructions.
5232
83655187
DE
52332014-05-15 Doug Evans <dje@google.com>
5234
5235 * dwarf2read.c (read_structure_type): Delete outdated comments.
5236
dd756689
TT
52372014-05-14 Tom Tromey <tromey@redhat.com>
5238
5239 * macrocmd.c (print_macro_definition): Reindent.
5240
75ddda77
DE
52412014-05-13 Doug Evans <xdje42@gmail.com>
5242
5243 * python/py-cmd.c (cmdpy_completer): Add comment.
5244 (completers): Make const.
5245
b0f16a3e
SM
52462014-05-13 Simon Marchi <simon.marchi@ericsson.com>
5247
5248 * infrun.c (resume): Remove should_resume (unused). Move up
5249 declaration of resume_ptid.
5250
033c3379
TT
52512014-05-13 Tom Tromey <tromey@redhat.com>
5252
5253 * language.h (unop_type_check): Remove.
5254 (binop_type_check): Don't declare.
5255
9b44a3a5
AA
52562014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
5257
5258 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
5259 call to regcache_raw_collect.
5260
303a33fa
SM
52612014-05-12 Simon Marchi <simon.marchi@ericsson.com>
5262
5263 * mi/mi-console.c (mi_console_raw_packet): Use the value from
5264 mi_console->quote as the quoting character.
5265
196100a0
SM
52662014-05-12 Simon Marchi <simon.marchi@ericsson.com>
5267
5268 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
5269
f989a1c8
TT
52702014-04-29 Tom Tromey <tromey@redhat.com>
5271
5272 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
5273 "show debug varobj".
5274
9404b58f
KM
52752014-05-07 Kyle McMartin <kyle@redhat.com>
5276
5277 Pushed by Joel Brobecker <brobecker@adacore.com>.
5278 * aarch64-tdep.c (aarch64_software_single_step): New function.
5279 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
5280 with aarch64_software_single_step.
5281
5e49ba57
JB
52822014-05-05 Joel Brobecker <brobecker@adacore.com>
5283
5284 GDB 7.7.1 released.
5285
c888a17d
KS
52862014-05-05 Keith Seitz <keiths@redhat.com>
5287
5288 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
5289 variable or history value is successfully parsed.
5290
290a839c
YQ
52912014-05-05 Yao Qi <yao@codesourcery.com>
5292 Pedro Alves <palves@redhat.com>
5293
5294 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
5295 address of blocks that intersects the requested range. Trim
5296 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
5297 sections.
5298 * ctf.c (ctf_xfer_partial): Likewise.
5299
91256dc2
YQ
53002014-05-05 Yao Qi <yao@codesourcery.com>
5301
5302 * printcmd.c (display_command): Remove the check to
5303 target_has_execution.
5304
07284463
MK
53052014-05-03 Mark Kettenis <kettenis@gnu.org>
5306
5307 * ppcobsd-nat.c: Include "obsd-nat.h".
5308 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
5309 add_target.
5310 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
5311
30a1e6cc
SDJ
53122014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
5313
5314 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
5315 and 16-bit signed and unsigned arguments. Update comment.
5316 (stap_parse_probe_arguments): Extend code to handle such
5317 arguments. Use warning instead of complaint to notify about
5318 unrecognized bitness.
5319
f33da99a
SDJ
53202014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
5321
5322 PR breakpoints/16889
5323 * stap-probe.c (stap_parse_probe_arguments): Simplify
5324 check for non-prefixed probes (i.e., probes whose
5325 arguments do not start with "N@"). Always set the
5326 argument type to a sane value.
5327
95cf3b38
DT
53282014-05-01 David Taylor <dtaylor@emc.com>
5329
5330 * remote.c (compare_sections_command): Add -r option to compare
5331 all loadable read-only sections.
5332
1cfdf534
SC
53332014-04-30 Siva Chandra Reddy <sivachandra@google.com>
5334
5335 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
5336 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
5337 Update all callers.
5338 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
5339 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
5340 Remove unused CORE_ADDR argument. Update all callers.
5341
ca4f7f8b
PA
53422014-04-29 Pedro Alves <palves@redhat.com>
5343
5344 * remote.c (struct packet_config) <detect>: Extend comment.
5345 (add_packet_config_cmd): Don't set the config's detect or support
5346 fields here.
5347 (init_all_packet_configs): Also initialize the config's 'detect'
5348 field.
5349 (reset_all_packet_configs_support): New function.
5350 (remote_open_1): Call reset_all_packet_configs_support instead of
5351 init_all_packet_configs.
5352 (_initialize_remote): Initialize all packet configs. Assert that
5353 all packets have an associated command, except a few known
5354 outliers.
5355
11c1ba78
JB
53562014-04-28 Joel Brobecker <brobecker@adacore.com>
5357
5358 * dwarf2read.c (read_subrange_type): Handle dynamic
5359 DW_AT_lower_bound attributes.
5360
8739bc53
JB
53612014-04-28 Joel Brobecker <brobecker@adacore.com>
5362
5363 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
5364 dynamic bounds before computing its upper bound.
5365 (ada_discrete_type_low_bound): Same as above with the lower bound.
5366
6f8a3220
JB
53672014-04-28 Joel Brobecker <brobecker@adacore.com>
5368
5369 * dwarf2read.c (is_dynamic_type): Return true for dynamic
5370 range types. Adjust the array handling implementation to
5371 take advantage of this change.
5372 (resolve_dynamic_range): New function, mostly extracted from
5373 resolve_dynamic_bounds.
5374 (resolve_dynamic_array): New function, mostly extracted from
5375 resolve_dynamic_bounds.
5376 (resolve_dynamic_bounds): Delete.
5377 (resolve_dynamic_type): Reimplement. Add handling of
5378 TYPE_CODE_RANGE types.
5379
4d072ce4
JB
53802014-04-28 Joel Brobecker <brobecker@adacore.com>
5381
5382 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
5383 handling of parallel ___XA types.
5384
52865325
JB
53852014-04-28 Joel Brobecker <brobecker@adacore.com>
5386
5387 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
5388 unnecessary second call to static_unwrap_type.
5389
433e77fa
HZ
53902014-04-27 Hui Zhu <hui@codesourcery.com>
5391
5392 * stack.c (print_frame_info): Call do_gdb_disassembly with
5393 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
5394
b51a69ee
DE
53952014-04-26 Doug Evans <xdje42@gmail.com>
5396
5397 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
5398
7ae1a6a6
PA
53992014-04-25 Pedro Alves <palves@redhat.com>
5400
5401 PR server/16255
5402 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
5403 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
5404 and newline from built string.
5405 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
5406 (linux_ptrace_attach_fail_reason): ... this.
5407 * linux-nat.c (linux_nat_attach): Adjust to use
5408 linux_ptrace_attach_fail_reason.
5409
4082afcc
PA
54102014-04-25 Pedro Alves <palves@redhat.com>
5411
5412 * remote.c (struct remote_state): Remove multi_process_aware,
5413 non_stop_aware, cond_tracepoints, cond_breakpoints,
5414 breakpoint_commands, fast_tracepoints, static_tracepoints,
5415 install_in_trace, disconnected_tracing,
5416 enable_disable_tracepoints, string_tracing, and
5417 augmented_libraries_svr4_read fields.
5418 (remote_multi_process_p): Move further below in the file.
5419 (struct packet_config): Add comments.
5420 (update_packet_config): Delete function.
5421 (show_packet_config_cmd): Use packet_config_support.
5422 (add_packet_config_cmd): Use NULL as set callback.
5423 (packet_ok): "set remote foo-packet"-style commands no longer
5424 change config->supported -- adjust.
5425 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
5426 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
5427 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
5428 (PACKET_QNonStop, PACKET_multiprocess_feature)
5429 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
5430 (PACKET_DisconnectedTracing_feature)
5431 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
5432 (set_remote_protocol_packet_cmd): Delete function.
5433 (packet_config_support, packet_support): New functions.
5434 (set_remote_protocol_Z_packet_cmd): Don't call
5435 update_packet_config.
5436 (remote_query_attached, remote_pass_signals)
5437 (remote_program_signals, remote_threads_info)
5438 (remote_threads_extra_info, remote_start_remote): Use
5439 packet_support.
5440 (remote_start_remote): Use packet_config_support and
5441 packet_support.
5442 (init_all_packet_configs): Set all packets to unknown support,
5443 instead of calling update_packet_config.
5444 (remote_check_symbols): Use packet_support.
5445 (remote_supported_packet): Unconditionally set the packet config's
5446 support status.
5447 (remote_multi_process_feature, remote_non_stop_feature)
5448 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
5449 (remote_breakpoint_commands_feature)
5450 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
5451 (remote_install_in_trace_feature)
5452 (remote_disconnected_tracing_feature)
5453 (remote_enable_disable_tracepoint_feature)
5454 (remote_string_tracing_feature)
5455 (remote_augmented_libraries_svr4_read_feature): Delete functions.
5456 (remote_protocol_features): Adjust to use remote_supported_packet
5457 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
5458 "ConditionalTracepoints", "ConditionalBreakpoints",
5459 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
5460 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
5461 "EnableDisableTracepoints", and "tracenz".
5462 (remote_query_supported): Use packet_support.
5463 (remote_open_1): Adjust.
5464 (extended_remote_attach_1): Use packet_support. Switch on the
5465 result of packet_ok instead of checking whether the packet ended
5466 up disabled.
5467 (remote_vcont_resume): Use packet_support.
5468 (remote_resume, remote_stop_ns, fetch_register_using_p)
5469 (remote_prepare_to_store, store_register_using_P)
5470 (check_binary_download, remote_write_bytes): Use packet_support.
5471 (remote_vkill): Use packet_support. Switch on the result of
5472 packet_ok instead of checking whether the packet ended up
5473 disabled.
5474 (extended_remote_supports_disable_randomization): Use
5475 packet_support.
5476 (extended_remote_run): Switch on the result of packet_ok instead
5477 of checking whether the packet ended up disabled.
5478 (remote_insert_breakpoint, remote_remove_breakpoint)
5479 (remote_insert_watchpoint, remote_remove_watchpoint)
5480 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
5481 packet_support.
5482 (remote_search_memory): Use packet_config_support.
5483 (remote_get_thread_local_address, remote_get_tib_address)
5484 (remote_hostio_send_command, remote_can_execute_reverse): Use
5485 packet_support.
5486 (remote_supports_cond_tracepoints)
5487 (remote_supports_cond_breakpoints)
5488 (remote_supports_fast_tracepoints)
5489 (remote_supports_static_tracepoints)
5490 (remote_supports_install_in_trace)
5491 (remote_supports_enable_disable_tracepoint)
5492 (remote_supports_string_tracing)
5493 (remote_can_run_breakpoint_commands): Rewrite, checking whether
5494 the packet config says the feature is enabled or disabled.
5495 (remote_download_tracepoint, remote_trace_set_readonly_regions)
5496 (remote_get_trace_status): Use packet_support.
5497 (remote_set_disconnected_tracing): Adjust to check whether the
5498 feature is enabled with packet_support.
5499 (remote_set_trace_buffer_size, remote_use_agent)
5500 (remote_can_use_agent, remote_supports_btrace): Use
5501 packet_support.
5502 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
5503 Use packet_config_support.
5504 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
5505 the packet config says the feature is enabled or disabled.
5506 (set_range_stepping): Use packet_support.
5507
bdb52a22
TT
55082014-04-25 Tom Tromey <tromey@redhat.com>
5509
5510 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
5511 argument.
5512
e9475ead
SA
55132014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
5514
5515 * NEWS: Mention support for C99 variable length arrays.
5516
82eacd52
JB
55172014-04-24 Joel Brobecker <brobecker@adacore.com>
5518
5519 * ada-lang.c (standard_exc): Expand introductory comment.
5520
01f9f808
MS
55212014-04-24 Michael Sturm <michael.sturm@mintel.com>
5522 Walfred Tedeschi <walfred.tedeschi@intel.com>
5523
5524 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
5525 AVX512 registers.
5526 (amd64_linux_read_description): Add code to handle AVX512 xstate
5527 mask and return respective tdesc.
5528 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
5529 and features/i386/x32-avx512-linux.c.
5530 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
5531 (amd64_linux_core_read_description): Add code to handle AVX512
5532 xstate mask and return respective tdesc.
5533 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
5534 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
5535 calculation.
5536 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
5537 (tdesc_amd64_avx512_linux): New prototype.
5538 (tdesc_x32_avx512_linux): Likewise.
5539 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
5540 features/i386/x32-avx512.c.
5541 (amd64_ymm_avx512_names): New register names for pseudo
5542 registers YMM16-31.
5543 (amd64_ymmh_avx512_names): New register names for raw registers
5544 YMMH16-31.
5545 (amd64_k_names): New register names for K registers.
5546 (amd64_zmmh_names): New register names for ZMM raw registers.
5547 (amd64_zmm_names): New registers names for ZMM pseudo registers.
5548 (amd64_xmm_avx512_names): New register names for XMM16-31
5549 registers.
5550 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
5551 registers.
5552 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
5553 if feature is present.
5554 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
5555 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
5556 (AMD64_NUM_REGS): Adjust to new number of registers.
5557 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
5558 registers supplied via XSTATE by AVX512 registers.
5559 (i386_linux_read_description): Add case for AVX512.
5560 * i386-linux-tdep.c: Include i386-avx512-linux.c.
5561 (i386_linux_gregset_reg_offset): Add AVX512 registers.
5562 (i386_linux_core_read_description): Add case for AVX512.
5563 (i386_linux_init_abi): Install supported register note section
5564 for AVX512.
5565 (_initialize_i386_linux_tdep): Add call to tdesc init function for
5566 AVX512.
5567 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
5568 registers to be number of zmm7h + 1.
5569 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
5570 * i386-tdep.c: Include features/i386/i386-avx512.c.
5571 (i386_zmm_names): Add ZMM pseudo register names array.
5572 (i386_zmmh_names): Add ZMM raw register names array.
5573 (i386_k_names): Add K raw register names array.
5574 (num_lower_zmm_regs): Add constant for the number of lower ZMM
5575 registers. AVX512 has 16 more ZMM registers than there are YMM
5576 registers.
5577 (i386_zmmh_regnum_p): Add function to look up register number of
5578 ZMM raw registers.
5579 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
5580 (i386_k_regnum_p): Likewise for K raw registers.
5581 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
5582 registers added by AVX512.
5583 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
5584 registers added by AVX512.
5585 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
5586 added by AVX512.
5587 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
5588 (i386_pseudo_register_name): Add ZMM pseudo registers.
5589 (i386_zmm_type): Construct and return vector registers type for ZMM
5590 registers.
5591 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
5592 ZMM0-31 pseudo registers and K registers.
5593 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
5594 and YMM16-31 registers from register cache.
5595 (i386_pseudo_register_write): Add code to write K, ZMM and
5596 YMM16-31 registers.
5597 (i386_register_reggroup_p): Add code to include/exclude AVX512
5598 registers in/from respective register groups.
5599 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
5600 registers if feature is present in xcr0.
5601 (i386_gdbarch_init): Add code to initialize AVX512 feature
5602 variables in tdep structure, wire in pseudo registers and call
5603 initialize_tdesc_i386_avx512.
5604 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
5605 variables.
5606 (i386_regnum): Add AVX512 registers.
5607 (I386_SSE_NUM_REGS): New define for number of SSE registers.
5608 (I386_AVX_NUM_REGS): Likewise for AVX registers.
5609 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
5610 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
5611 512 bits wide.
5612 (i386_xmm_avx512_regnum_p): New prototype for register look up.
5613 (i386_ymm_avx512_regnum_p): Likewise.
5614 (i386_k_regnum_p): Likewise.
5615 (i386_zmm_regnum_p): Likewise.
5616 (i386_zmmh_regnum_p): Likewise.
5617 * i387-tdep.c : Update year in copyright notice.
5618 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
5619 XSAVE buffer.
5620 (XSAVE_YMM_AVX512_ADDR): New macro.
5621 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
5622 XSAVE buffer.
5623 (XSAVE_XMM_AVX512_ADDR): New macro.
5624 (xsave_avx512_k_offset): New table for K register offsets in
5625 XSAVE buffer.
5626 (XSAVE_AVX512_K_ADDR): New macro.
5627 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
5628 in XSAVE buffer.
5629 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
5630 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
5631 buffer.
5632 (i387_collect_xsave): Add code to collect AVX512 registers from
5633 XSAVE buffer.
5634 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
5635 of XMM16-31 registers.
5636 (I387_NUM_K_REGS): New define for number of K registers.
5637 (I387_K0_REGNUM): New define for K0 register number.
5638 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
5639 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
5640 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
5641 registers.
5642 (I387_YMM16H_REGNUM): New define for YMM16H register number.
5643 (I387_XMM16_REGNUM): New define for XMM16 register number.
5644 (I387_YMM0_REGNUM): New define for YMM0 register number.
5645 (I387_KEND_REGNUM): New define for last K register number.
5646 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
5647 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
5648 number.
5649 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
5650 number.
5651 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
5652 size.
5653 * features/Makefile: Add AVX512 related files.
5654 * features/i386/32bit-avx512.xml: New file.
5655 * features/i386/64bit-avx512.xml: Likewise.
5656 * features/i386/amd64-avx512-linux.c: Likewise.
5657 * features/i386/amd64-avx512-linux.xml: Likewise.
5658 * features/i386/amd64-avx512.c: Likewise.
5659 * features/i386/amd64-avx512.xml: Likewise.
5660 * features/i386/i386-avx512-linux.c: Likewise.
5661 * features/i386/i386-avx512-linux.xml: Likewise.
5662 * features/i386/i386-avx512.c: Likewise.
5663 * features/i386/i386-avx512.xml: Likewise.
5664 * features/i386/x32-avx512-linux.c: Likewise.
5665 * features/i386/x32-avx512-linux.xml: Likewise.
5666 * features/i386/x32-avx512.c: Likewise.
5667 * features/i386/x32-avx512.xml: Likewise.
5668 * regformats/i386/amd64-avx512-linux.dat: New file.
5669 * regformats/i386/amd64-avx512.dat: Likewise.
5670 * regformats/i386/i386-avx512-linux.dat: Likewise.
5671 * regformats/i386/i386-avx512.dat: Likewise.
5672 * regformats/i386/x32-avx512-linux.dat: Likewise.
5673 * regformats/i386/x32-avx512.dat: Likewise.
5674 * NEWS: Add note about new support for AVX512.
5675
5676
08351840
PA
56772014-04-23 Pedro Alves <palves@redhat.com>
5678
5679 * breakpoint.c (insert_bp_location): Tolerate errors if the
5680 breakpoint is set in a user-loaded objfile.
5681 (remove_breakpoint_1): Likewise. Also tolerate errors if the
5682 location is marked shlib_disabled. If the breakpoint is set in a
5683 user-loaded objfile is a GDB-side memory breakpoint, validate it
5684 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
5685 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
5686 flag.
5687 * mem-break.c (memory_validate_breakpoint): New function.
5688 * objfiles.c (userloaded_objfile_contains_address_p): New
5689 function.
5690 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
5691 * target.h (memory_validate_breakpoint): New declaration.
5692
076855f9
PA
56932014-04-23 Pedro Alves <palves@redhat.com>
5694
5695 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
5696 the breakpoint is set in a shared library, only suppress
5697 errors for software breakpoints, not hardware breakpoints.
5698
483805cf
PA
56992014-04-22 Pedro Alves <palves@redhat.com>
5700
5701 * infrun.c (schedlock_applies): New function, factored out from
5702 find_thread_needs_step_over.
5703 (find_thread_needs_step_over): Use it.
5704 (switch_back_to_stepped_thread): Always clear trap_expected if the
5705 step over is finished. Return early if scheduler locking applies.
5706 Look for the stepping thread and a potential step-over thread with
5707 a single loop.
5708 (currently_stepping_or_nexting_callback): Delete.
5709
a75fef0e
NC
57102014-04-22 Nick Clifton <nickc@redhat.com>
5711
5712 * NEWS: Mention that ARM sim now supports tracing.
5713
48b6e87e
YQ
57142014-04-22 Yao Qi <yao@codesourcery.com>
5715
5716 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
5717 to ...
5718 * tracefile.c (tracefile_fetch_registers): ... it. New
5719 function.
5720 * tracefile.h (tracefile_fetch_registers): Declare.
5721 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
5722 tracefile_fetch_registers.
5723
17617f2d
EZ
57242014-04-19 Eli Zaretskii <eliz@gnu.org>
5725
5726 PR gdb/14018
5727 * windows-nat.c (thread_rec): Don't display a warning when
5728 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
5729 fails for any reason, set th->suspended to -1, so that we don't
5730 try to resume such a thread. Also, don't return NULL in these
5731 cases, to avoid completely ruin the session due to "PC register is
5732 not available" error.
5733 (do_windows_fetch_inferior_registers): Check errors in
5734 GetThreadContext call.
5735 (windows_continue): Accept an additional argument KILLED; if not
5736 zero, ignore errors in the SetThreadContext call, since the
5737 inferior was killed and is shutting down.
5738 (windows_resume, get_windows_debug_event)
5739 (windows_create_inferior, windows_mourn_inferior)
5740 (windows_kill_inferior): All callers of windows_continue changed
5741 to adjust to its new calling sequence.
5742
5723a6fd
YQ
57432014-04-19 Yao Qi <yao@codesourcery.com>
5744
5745 * ctf.c (ctf_open): Call post_create_inferior.
5746
614d5099
YQ
57472014-04-19 Yao Qi <yao@codesourcery.com>
5748
5749 * ctf.c (handle_id): New static variable.
5750 (ctf_open_dir): Get handle_id from bt_context_add_trace return
5751 value. Get the declaration of event "register" and get length
5752 of field "contents".
5753
dac3e710
YQ
57542014-04-19 Yao Qi <yao@codesourcery.com>
5755
5756 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
5757
2bca57ba
SC
57582014-04-18 Siva Chandra Reddy <sivachandra@google.com>
5759
5760 * valops.c (oload_method_static): Remove unnecessary argument
5761 METHOD. Update all callers.
5762
51d48146
PA
57632014-04-18 Pedro alves <palves@redhat.com>
5764 Tom Tromey <tromey@redhat.com>
5765
5766 PR backtrace/15558
5767 * frame.c (get_prev_frame_1): Rename to ...
5768 (get_prev_frame_always): ... this, and make extern. Adjust.
5769 (skip_artificial_frames): Use get_prev_frame_always.
5770 (frame_unwind_caller_id, frame_pop, get_prev_frame)
5771 (get_frame_unwind_stop_reason): Adjust to rename.
5772 * frame.h (get_prev_frame_always): Declare.
5773 * inline-frame.c: Include frame.h.
5774 (inline_frame_this_id): Use get_prev_frame_always.
5775
1bdad2e0
TG
57762014-04-18 Tristan Gingold <gingold@adacore.com>
5777
5778 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
5779 code by using bfd_mach_o_get_base_address.
5780
7ce16bd4
UW
57812014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
5782
5783 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
5784 (spu_ax_pseudo_register_collect): New function.
5785 (spu_ax_pseudo_register_push_stack): Likewise.
5786 (spu_dwarf_reg_to_regnum): Likewise.
5787 (spu_gdbarch_init): Install them. Append DWARF unwinders.
5788
2ed3c037
UW
57892014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
5790
5791 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
5792 Replace FRAME argument with FRAME_ID.
5793 * gdbarch.c, gdbarch.h: Regenerate.
5794 * findvar.c (default_value_from_register): Add GDBARCH argument;
5795 replace FRAME by FRAME_ID. No longer call get_frame_id.
5796 (value_from_register): Update call to gdbarch_value_from_register.
5797 * value.h (default_value_from_register): Update prototype.
5798 * s390-linux-tdep.c (s390_value_from_register): Update interface
5799 and call to default_value_from_register.
5800 * spu-tdep.c (spu_value_from_register): Likewise.
5801
5802 * findvar.c (address_from_register): Remove TYPE argument.
5803 Do not call value_from_register; use gdbarch_value_from_register
5804 with null_frame_id instead.
5805 * value.h (address_from_register): Update prototype.
5806 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
5807 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
5808 address_from_register interface change.
5809
71e50e83
YQ
58102014-04-17 Yao Qi <yao@codesourcery.com>
5811
5812 * gdbtypes.h: Update comments to link to types and macros'
5813 definitions.
5814
7a23c549
SC
58152014-04-16 Siva Chandra Reddy <sivachandra@google.com>
5816
5817 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
5818
22869d73
KS
58192014-04-16 Keith Seitz <keiths@redhat.com>
5820
5821 PR gdb/15827
5822 * dwarf2read.c (skip_one_die): Check that all relative-offset
5823 sibling DIEs fall within range of the current reader's buffer.
5824 (read_partial_die): Likewise.
5825
c4f87ca6
KS
58262014-04-16 Keith Seitz <keiths@redhat.com>
5827
5828 PR c++/16597
5829 * cp-namespace.c (lookup_symbol_file): If the type name of
5830 `this' is NULL, return immediately.
5831
b50c8614
KS
58322014-04-14 Keith Seitz <keiths@redhat.com>
5833
5834 PR c++/16253
5835 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
5836 from symbol_matches_domain in symtab.c. All local callers
5837 of symbol_matches_domain updated.
5838 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
5839 search STRUCT_DOMAIN.
5840 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
5841 independently. standard_lookup will do that automatically.
5842 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
5843 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5844 (cp_lookup_symbol_in_namespace): Likewise.
5845 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
5846 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
5847 may return a STRUCT_DOMAIN match.
5848 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
5849 * cp-support.c: Include language.h.
5850 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
5851 VAR_DOMAIN.
5852 * psymtab.c (match_partial_symbol): Compare the requested
5853 domain with the symbol's domain directly.
5854 (lookup_partial_symbol): Likewise.
5855 * symtab.c (lookup_symbol_in_language): Explain when/why
5856 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5857 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
5858 appropriate languages.
5859 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
5860 and moved to ada-lang.c
5861 (lookup_block_symbol): Explain that this function only returns
5862 symbol matching the requested DOMAIN.
5863 Compare the requested domain with the symbol's domain directly.
5864 (iterate_over_symbols): Compare the requested domain with the
5865 symbol's domain directly.
5866 * symtab.h (symbol_matches_domain): Remove.
5867
3d567982
TT
58682014-04-14 Tom Tromey <tromey@redhat.com>
5869
5870 PR c++/15246:
5871 * c-exp.y (type_aggregate_p): New function.
5872 (qualified_name, classify_inner_name): Use it.
5873 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
5874 and TYPE_TARGET_TYPE of an enum type.
5875 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
5876 an enum type.
5877 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
5878 handle TYPE_DECLARED_CLASS.
5879 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
5880 types.
5881 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
5882 * valops.c (enum_constant_from_type): New function.
5883 (value_aggregate_elt): Use it.
5884 * cp-namespace.c (cp_lookup_nested_symbol): Handle
5885 TYPE_CODE_ENUM.
5886
c848d642
TT
58872014-04-14 Tom Tromey <tromey@redhat.com>
5888
5889 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
5890 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
5891 const.
5892 * value.h (value_aggregate_elt): Update.
5893
0626fc76
TT
58942014-04-14 Tom Tromey <tromey@redhat.com>
5895
5896 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
5897
5ecaaa66
SA
58982014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5899
5900 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5901 (evaluate_subexp_standard): Pass noside argument.
5902 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5903 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5904 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5905 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5906 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5907
1612e0c0
SA
59082014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5909
5910 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5911 points to a constant blob.
5912
c451ebe5
SA
59132014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5914
5915 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5916 property and store it as the high bound and flag the range accordingly.
5917 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5918 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5919 * gdbtypes.h (enum range_flags): New enum.
5920 (struct range_bounds): Add flags member.
5921
1d42e4c4
SA
59222014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5923
5924 * c-typeprint.c (c_type_print_varspec_suffix): Added
5925 check for not yet resolved high bound. If unresolved, print
5926 "variable length" string to the console instead of random
5927 length.
5928
9f1f738a
SA
59292014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5930
5931 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
5932 value.
5933 (ada_template_to_fixed_record_type_1): Likewise.
5934 (ada_to_fixed_type_1): Likewise.
5935 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5936 (cp_print_value): Likewise.
5937 * d-valprint.c (dynamic_array_type): Likewise.
5938 * findvar.c (address_of_variable): Likewise.
5939 * jv-valprint.c (java_value_print): Likewise.
5940 * valops.c (value_ind): Likewise.
5941 * value.c (coerce_ref): Likewise.
5942
3c8452d4
SA
59432014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5944
5945 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5946 value and retrieve the dynamic type size.
5947
4ad88275
SA
59482014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5949
5950 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5951 passed to sizeof is dynamic evaluate the argument to compute the length.
5952
80180f79
SA
59532014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5954 Joel Brobecker <brobecker@adacore.com>
5955
5956 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5957 (dwarf2_evaluate_property): New function.
5958 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5959 * dwarf2read.c (attr_to_dynamic_prop): New function.
5960 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5961 attribute.
5962 * gdbtypes.c: Include dwarf2loc.h.
5963 (is_dynamic_type): New function.
5964 (resolve_dynamic_type): New function.
5965 (resolve_dynamic_bounds): New function.
5966 (get_type_length): New function.
5967 (check_typedef): Use get_type_length to compute type length.
5968 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5969 (TYPE_LOW_BOUND_KIND): New macro.
5970 (is_dynamic_type): New function prototype.
5971 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5972 to resolve dynamic properties of the type. Update comment.
5973 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5974
a1556843
RH
59752014-04-14 Richard Henderson <rth@redhat.com>
5976
5977 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
5978
0be03e84
DE
59792014-04-12 Siva Chandra Reddy <sivachandra@google.com>
5980 Doug Evans <xdje42@gmail.com>
5981
5982 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
5983 dereference TYPE_CODE_REF values.
5984
6b662e19
JB
59852014-04-11 Joel Brobecker <brobecker@adacore.com>
5986
5987 Revert the following changes due to regressions:
5988
5989 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5990 (dwarf2_evaluate_property): New function.
5991 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5992 * dwarf2read.c (attr_to_dynamic_prop): New function.
5993 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5994 attribute.
5995 * gdbtypes.c: Include dwarf2loc.h.
5996 (is_dynamic_type): New function.
5997 (resolve_dynamic_type): New function.
5998 (resolve_dynamic_bounds): New function.
5999 (get_type_length): New function.
6000 (check_typedef): Use get_type_length to compute type length.
6001 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6002 (TYPE_LOW_BOUND_KIND): New macro.
6003 (is_dynamic_type): New function prototype.
6004 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6005 to resolve dynamic properties of the type. Update comment.
6006 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6007
6008 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6009 passed to sizeof is dynamic evaluate the argument to compute the length.
6010
6011 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6012 value and retrieve the dynamic type size.
6013
6014 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
6015 (ada_template_to_fixed_record_type_1): Likewise.
6016 (ada_to_fixed_type_1): Likewise.
6017 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6018 (cp_print_value): Likewise.
6019 * d-valprint.c (dynamic_array_type): Likewise.
6020 * eval.c (evaluate_subexp_with_coercion): Likewise.
6021 * findvar.c (address_of_variable): Likewise.
6022 * jv-valprint.c (java_value_print): Likewise.
6023 * valops.c (value_ind): Likewise.
6024 * value.c (coerce_ref): Likewise.
6025
6026 * c-typeprint.c (c_type_print_varspec_suffix): Added
6027 check for not yet resolved high bound. If unresolved, print
6028 "variable length" string to the console instead of random
6029 length.
6030
6031 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6032 property and store it as the high bound and flag the range accordingly.
6033 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6034 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6035 * gdbtypes.h (enum range_flags): New enum.
6036 (struct range_bounds): Add flags member.
6037
6038 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6039 points to a constant blob.
6040
6041 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6042 (evaluate_subexp_standard): Pass noside argument.
6043 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6044 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6045 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6046 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6047 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6048
245a5f0b
KS
60492014-04-11 Keith Seitz <keiths@redhat.com>
6050
6051 PR c++/16675
6052 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
6053 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
6054 reference types.
6055
3bce8237
SA
60562014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6057
6058 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6059 (evaluate_subexp_standard): Pass noside argument.
6060 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6061 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6062 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6063 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6064 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6065
92b09522
SA
60662014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6067
6068 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6069 points to a constant blob.
6070
e1969afb
SA
60712014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6072
6073 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6074 property and store it as the high bound and flag the range accordingly.
6075 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6076 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6077 * gdbtypes.h (enum range_flags): New enum.
6078 (struct range_bounds): Add flags member.
6079
b86138fb
SA
60802014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6081
6082 * c-typeprint.c (c_type_print_varspec_suffix): Added
6083 check for not yet resolved high bound. If unresolved, print
6084 "variable length" string to the console instead of random
6085 length.
6086
bcd629a4
SA
60872014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6088
6089 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
6090 (ada_template_to_fixed_record_type_1): Likewise.
6091 (ada_to_fixed_type_1): Likewise.
6092 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6093 (cp_print_value): Likewise.
6094 * d-valprint.c (dynamic_array_type): Likewise.
6095 * eval.c (evaluate_subexp_with_coercion): Likewise.
6096 * findvar.c (address_of_variable): Likewise.
6097 * jv-valprint.c (java_value_print): Likewise.
6098 * valops.c (value_ind): Likewise.
6099 * value.c (coerce_ref): Likewise.
6100
04b19544
SA
61012014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6102
6103 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6104 value and retrieve the dynamic type size.
6105
26cb189f
SA
61062014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6107
6108 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6109 passed to sizeof is dynamic evaluate the argument to compute the length.
6110
37c1ab67
SA
61112014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6112
6113 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6114 (dwarf2_evaluate_property): New function.
6115 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6116 * dwarf2read.c (attr_to_dynamic_prop): New function.
6117 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6118 attribute.
6119 * gdbtypes.c: Include dwarf2loc.h.
6120 (is_dynamic_type): New function.
6121 (resolve_dynamic_type): New function.
6122 (resolve_dynamic_bounds): New function.
6123 (get_type_length): New function.
6124 (check_typedef): Use get_type_length to compute type length.
6125 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6126 (TYPE_LOW_BOUND_KIND): New macro.
6127 (is_dynamic_type): New function prototype.
6128 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6129 to resolve dynamic properties of the type. Update comment.
6130 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6131
729efb13
SA
61322014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6133
6134 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
6135 declaring high/low bounds and change uses accordingly. Call
6136 create_range_type instead of create_static_range_type.
6137 * gdbtypes.c (create_range_type): New function.
6138 (create_range_type): Convert bounds into struct bound_prop and pass
6139 them to create_range_type.
6140 * gdbtypes.h (struct bound_prop): New struct.
6141 (create_range_type): New function prototype.
6142 (struct range_bounds): Use struct bound_prop instead of LONGEST for
6143 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
6144 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
6145 part of the bound.
6146 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
6147
0c9c3474
SA
61482014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6149
6150 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
6151 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
6152 * ada-lang.c: All uses of create_range_type updated.
6153 * coffread.c: All uses of create_range_type updated.
6154 * dwarf2read.c: All uses of create_range_type updated.
6155 * f-exp.y: All uses of create_range_type updated.
6156 * m2-valprint.c: All uses of create_range_type updated.
6157 * mdebugread.c: All uses of create_range_type updated.
6158 * stabsread.c: All uses of create_range_type updated.
6159 * valops.c: All uses of create_range_type updated.
6160 * valprint.c: All uses of create_range_type updated.
6161
9d497a19
PA
61622014-04-10 Pedro Alves <palves@redhat.com>
6163
6164 * breakpoint.c (single_step_breakpoints)
6165 (single_step_gdbarch): Move up in the file.
6166 (one_breakpoint_xfer_memory): New function, factored out from ...
6167 (breakpoint_xfer_memory): ... here. Also process single-step
6168 breakpoints.
6169
15a9128a
TG
61702014-04-09 Tristan Gingold <gingold@adacore.com>
6171
6172 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
6173 comments.
6174 (darwin_decode_exception_message): Free port only after use.
6175
9c97a070
PL
61762014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
6177
6178 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
6179 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
6180 when setting the size of call_length.
6181
7af389b8
SC
61822014-04-07 Siva Chandra Reddy <sivachandra@google.com>
6183
6184 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
6185 dereference TYPE_CODE_REF values.
6186
86ad98c3
JB
61872014-04-07 Joel Brobecker <brobecker@adacore.com>
6188
6189 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
6190 end of warning message.
6191
b0aeadb3
DE
61922014-04-03 Doug Evans <dje@google.com>
6193
6194 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
6195 of stub_comp_unit_die, stub_comp_dir is non-NULL.
6196
5979d6b6
AM
61972014-04-02 Alan Modra <amodra@gmail.com>
6198
6199 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
6200 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
6201 (struct symbol_file_add_from_memory_args): Add size field.
6202 (find_vdso_size): New function.
6203 (add_vsyscall_page): Attempt to find vdso size.
6204
0d60c288
DE
62052014-04-01 Doug Evans <dje@google.com>
6206
6207 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
6208
a41f2563
TG
62092014-04-01 Tristan Gingold <gingold@adacore.com>
6210
6211 * darwin-nat.c (darwin_encode_reply): Add prototype.
6212 (darwin_decode_exception_message): Reply to unknown inferiors.
6213 (darwin_decode_message): Handle message by id. Ignore message
6214 to unknown inferior.
6215 (darwin_wait): Discard unknown messages, add debug trace.
6216
11a865c8
DE
62172014-03-31 Doug Evans <dje@google.com>
6218
6219 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
6220 comp_dir_string.
6221
770e7fc7
DE
62222014-03-31 Doug Evans <dje@google.com>
6223
6224 New option "set print symbol-loading".
6225 * NEWS: Mention it.
6226 * solib.c (solib_read_symbols): Only print symbol loading messages
6227 if requested.
6228 (solib_add): If symbol loading is in "brief" mode, notify user
6229 symbols are being loaded.
6230 (reload_shared_libraries_1): Ditto.
6231 * symfile.c (print_symbol_loading_off): New static global.
6232 (print_symbol_loading_brief): New static global.
6233 (print_symbol_loading_full): New static global.
6234 (print_symbol_loading_enums): New static global.
6235 (print_symbol_loading): New static global.
6236 (print_symbol_loading_p): New function.
6237 (symbol_file_add_with_addrs): Only print symbol loading messages
6238 if requested.
6239 (_initialize_symfile): Register "print symbol-loading" set/show
6240 command.
6241 * symfile.h (print_symbol_loading_p): Declare.
6242
c32c64b7
DE
62432014-03-30 Doug Evans <xdje42@gmail.com>
6244
6245 * infrun.c (set_last_target_status): New function.
6246 (handle_inferior_event): Call it.
6247
7c0bc051
DE
62482014-03-30 Doug Evans <xdje42@gmail.com>
6249
6250 * inferior.h (enum stop_kind): Improve comment.
6251
8776cfe9
JB
62522014-03-28 Joel Brobecker <brobecker@adacore.com>
6253
6254 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
6255 a reference, strip the reference layer before calling
6256 the lang_ops value_has_mutated callback.
6257
410a0ff2
SDJ
62582014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
6259
6260 Remove some globals from our parser.
6261 * language.c (unk_lang_parser): Add "struct parser_state"
6262 argument.
6263 * language.h (struct language_defn) <la_parser>: Likewise.
6264 * parse.c (expout, expout_size, expout_ptr): Remove variables.
6265 (initialize_expout): Add "struct parser_state" argument.
6266 Rewrite function to use the parser state.
6267 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
6268 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
6269 write_exp_elt_longcst, write_exp_elt_dblcst,
6270 write_exp_elt_decfloatcst, write_exp_elt_type,
6271 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6272 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
6273 write_dollar_variable): Likewise.
6274 (parse_exp_in_context_1): Use parser state.
6275 (insert_type_address_space): Add "struct parser_state" argument.
6276 Use parser state.
6277 (increase_expout_size): New function.
6278 * parser-defs.h: Forward declare "struct language_defn" and
6279 "struct parser_state".
6280 (expout, expout_size, expout_ptr): Remove extern declarations.
6281 (parse_gdbarch, parse_language): Rewrite macro declarations to
6282 accept the parser state.
6283 (struct parser_state): New struct.
6284 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
6285 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
6286 write_exp_elt_decfloatcst, write_exp_elt_type,
6287 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6288 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
6289 write_exp_msymbol, write_dollar_variable,
6290 mark_struct_expression, insert_type_address_space): Add "struct
6291 parser_state" argument.
6292 (increase_expout_size): New function.
6293 * utils.c (do_clear_parser_state): New function.
6294 (make_cleanup_clear_parser_state): Likewise.
6295 * utils.h (make_cleanup_clear_parser_state): New function
6296 prototype.
6297 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
6298 Update calls to write_exp* in order to pass the parser state.
6299 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
6300 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
6301 (i386_stap_parse_special_token_three_arg_disp): Likewise.
6302 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
6303 * stap-probe.c (stap_parse_register_operand): Likewise.
6304 (stap_parse_single_operand): Likewise.
6305 (stap_parse_argument_1): Likewise.
6306 (stap_parse_argument): Use parser state.
6307 * stap-probe.h: Include "parser-defs.h".
6308 (struct stap_parse_info) <pstate>: New field.
6309 * c-exp.y (parse_type): Rewrite to use parser state.
6310 (yyparse): Redefine to c_parse_internal.
6311 (pstate): New global variable.
6312 (parse_number): Add "struct parser_state" argument.
6313 (write_destructor_name): Likewise.
6314 (type_exp): Update calls to write_exp* and similars in order to
6315 use parser state.
6316 (exp1, exp, variable, qualified_name, space_identifier,
6317 typename, typebase): Likewise.
6318 (write_destructor_name, parse_number, lex_one_token,
6319 classify_name, classify_inner_name, c_parse): Add "struct
6320 parser_state" argument. Update function to use parser state.
6321 * c-lang.h: Forward declare "struct parser_state".
6322 (c_parse): Add "struct parser_state" argument.
6323 * ada-exp.y (parse_type): Rewrite macro to use parser state.
6324 (yyparse): Redefine macro to ada_parse_internal.
6325 (pstate): New variable.
6326 (write_int, write_object_renaming, write_var_or_type,
6327 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
6328 type_int, type_long, type_long_long, type_float, type_double,
6329 type_long_double, type_char, type_boolean, type_system_address):
6330 Add "struct parser_state" argument.
6331 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
6332 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
6333 var_or_type, aggregate, aggregate_component_list,
6334 positional_list, others, component_group,
6335 component_associations): Update calls to write_exp* and similar
6336 functions in order to use parser state.
6337 (ada_parse, write_var_from_sym, write_int,
6338 write_exp_op_with_string, write_object_renaming,
6339 find_primitive_type, write_selectors, write_ambiguous_var,
6340 write_var_or_type, write_name_assoc, type_int, type_long,
6341 type_long_long, type_float, type_double, type_long_double,
6342 type_char, type_boolean, type_system_address): Add "struct
6343 parser_state" argument. Adjust function to use parser state.
6344 * ada-lang.c (parse): Likewise.
6345 * ada-lang.h: Forward declare "struct parser_state".
6346 (ada_parse): Add "struct parser_state" argument.
6347 * ada-lex.l (processInt, processReal): Likewise. Adjust all
6348 calls to both functions.
6349 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
6350 parser state.
6351 (yyparse): Redefine macro to f_parse_internal.
6352 (pstate): New variable.
6353 (parse_number): Add "struct parser_state" argument.
6354 (type_exp, exp, subrange, typebase): Update calls to write_exp*
6355 and similars in order to use parser state.
6356 (parse_number): Adjust code to use parser state.
6357 (yylex): Likewise.
6358 (f_parse): New function.
6359 * f-lang.h: Forward declare "struct parser_state".
6360 (f_parse): Add "struct parser_state" argument.
6361 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
6362 parser state.
6363 (yyparse): Redefine macro for java_parse_internal.
6364 (pstate): New variable.
6365 (push_expression_name, push_expression_name, insert_exp): Add
6366 "struct parser_state" argument.
6367 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
6368 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
6369 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
6370 PostIncrementExpression, PostDecrementExpression,
6371 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
6372 UnaryExpressionNotPlusMinus, CastExpression,
6373 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
6374 RelationalExpression, EqualityExpression, AndExpression,
6375 ExclusiveOrExpression, InclusiveOrExpression,
6376 ConditionalAndExpression, ConditionalOrExpression,
6377 ConditionalExpression, Assignment, LeftHandSide): Update
6378 calls to write_exp* and similars in order to use parser state.
6379 (parse_number): Ajust code to use parser state.
6380 (yylex): Likewise.
6381 (java_parse): New function.
6382 (push_variable): Add "struct parser_state" argument. Adjust
6383 code to user parser state.
6384 (push_fieldnames, push_qualified_expression_name,
6385 push_expression_name, insert_exp): Likewise.
6386 * jv-lang.h: Forward declare "struct parser_state".
6387 (java_parse): Add "struct parser_state" argument.
6388 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
6389 parser state.
6390 (yyparse): Redefine macro to m2_parse_internal.
6391 (pstate): New variable.
6392 (type_exp, exp, fblock, variable, type): Update calls to
6393 write_exp* and similars to use parser state.
6394 (yylex): Likewise.
6395 (m2_parse): New function.
6396 * m2-lang.h: Forward declare "struct parser_state".
6397 (m2_parse): Add "struct parser_state" argument.
6398 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
6399 * objc-lang.h: Forward declare "struct parser_state".
6400 (end_msglist): Add "struct parser_state" argument.
6401 * p-exp.y (parse_type): Rewrite macro to use parser state.
6402 (yyparse): Redefine macro to pascal_parse_internal.
6403 (pstate): New variable.
6404 (parse_number): Add "struct parser_state" argument.
6405 (type_exp, exp1, exp, qualified_name, variable): Update calls to
6406 write_exp* and similars in order to use parser state.
6407 (parse_number, yylex): Adjust code to use parser state.
6408 (pascal_parse): New function.
6409 * p-lang.h: Forward declare "struct parser_state".
6410 (pascal_parse): Add "struct parser_state" argument.
6411 * go-exp.y (parse_type): Rewrite macro to use parser state.
6412 (yyparse): Redefine macro to go_parse_internal.
6413 (pstate): New variable.
6414 (parse_number): Add "struct parser_state" argument.
6415 (type_exp, exp1, exp, variable, type): Update calls to
6416 write_exp* and similars in order to use parser state.
6417 (parse_number, lex_one_token, classify_name, yylex): Adjust code
6418 to use parser state.
6419 (go_parse): Likewise.
6420 * go-lang.h: Forward declare "struct parser_state".
6421 (go_parse): Add "struct parser_state" argument.
6422
342587c4
DE
64232014-03-27 Doug Evans <dje@google.com>
6424
6425 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
6426
33e80786
DE
64272014-03-27 Doug Evans <dje@google.com>
6428
6429 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
6430 Remove argument abbrev_section. All callers updated.
6431
1dbab08b
DE
64322014-03-27 Doug Evans <dje@google.com>
6433
6434 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
6435 addr_base, ranges_base.
6436
318d3177
KS
64372014-03-26 Keith Seitz <keiths@redhat.com>
6438
6439 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
6440 types, not VAR_DOMAIN.
6441
1e54db15
SL
64422014-03-25 Sandra Loosemore <sandra@codesourcery.com>
6443
6444 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
6445 "ra" registers.
6446 * features/nios2-linux.c: Regenerated.
6447 * features/nios2.c: Regenerated.
6448
d3839ede
PA
64492014-03-25 Pedro Alves <palves@redhat.com>
6450
6451 * cli/cli-script.c (script_from_file): Force the interpreter to
6452 sync mode.
6453
7588d2ec
PL
64542014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
6455
6456 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
6457 small stack allocation.
6458
a6290449
TG
64592014-03-24 Tristan Gingold <gingold@adacore.com>
6460
6461 * darwin-nat.c (exc_server): Remove unused prototype.
6462 (darwin_dump_message): Correctly display data on x86_64.
6463 (darwin_encode_reply): Fix style.
6464 Add comments and fix indentation.
6465
31ae9d24 64662014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
69fa4030
PL
6467
6468 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
6469
6339bfc4
DE
64702014-03-22 Doug Evans <xdje42@gmail.com>
6471
6472 * infcmd.c: Whitespace fixes.
6473 (interrupt_command): Merge two function comments into one.
6474
0a07590b
DE
64752014-03-22 Doug Evans <xdje42@gmail.com>
6476
6477 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
6478 All uses updated.
6479
b55fbac4
YQ
64802014-03-22 Yao Qi <yao@codesourcery.com>
6481
6482 * remote.c (target_read_live_memory): Remove.
6483 (memory_xfer_live_readonly_partial): Rename it to
6484 remote_xfer_live_readonly_partial. Remove argument 'object'.
6485 All callers updated. Call remote_read_bytes_1
6486 instead of target_read_live_memory.
6487 * tracepoint.c (set_traceframe_number): Remove.
6488 (make_cleanup_restore_traceframe_number): Likewise .
6489 * tracepoint.h (set_traceframe_number): Remove declaration.
6490 (make_cleanup_restore_traceframe_number): Likewise.
6491
9217e74e
YQ
64922014-03-22 Yao Qi <yao@codesourcery.com>
6493
6494 * remote.c (remote_read_bytes): Move code on reading from the
6495 remote stub to ...
6496 (remote_read_bytes_1): ... here. New function.
6497
8acf9577
YQ
64982014-03-22 Yao Qi <yao@codesourcery.com>
6499
6500 * ctf.c (ctf_xfer_partial): Check the return value of
6501 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
6502 return TARGET_XFER_UNAVAILABLE.
6503 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
6504 * target.c (target_read_live_memory): Move it to remote.c.
6505 (memory_xfer_live_readonly_partial): Likewise.
6506 (memory_xfer_partial_1): Move some code to remote_read_bytes.
6507 * remote.c (target_read_live_memory): Moved from target.c.
6508 (memory_xfer_live_readonly_partial): Likewise.
6509 (remote_read_bytes): Factored out from
6510 memory_xfer_partial_1.
6511
feef67ab
DE
65122014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
6513
6514 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
6515 NULL pointer.
6516
b65dc60b
PA
65172014-03-21 Pedro Alves <palves@redhat.com>
6518
6519 * infrun.c (normal_stop): Extend comment.
6520
b4ab256d
HZ
65212014-03-21 Hui Zhu <hui@codesourcery.com>
6522 Pedro Alves <palves@redhat.com>
6523
6524 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
6525 static buffer.
6526 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
6527 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
6528 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
6529
deba7593
MR
65302014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
6531
6532 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
6533 `z' formatted output modifier.
6534
1bff71c3
SDJ
65352014-03-20 Tom Tromey <tromey@redhat.com>
6536 Sergio Durigan Junior <sergiodj@redhat.com>
6537
6538 * probe.c (parse_probes): Turn assert into an ordinary error.
6539 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
6540 exceptions when parsing probes. Rearrange the code for clarity.
6541
90e28950
TT
65422014-03-20 Tom Tromey <tromey@redhat.com>
6543
6544 PR gdb/14135
6545 * top.c (execute_command): Only dispatch events if the command
6546 started the target.
6547
beb460e8
PA
65482014-03-20 Tom Tromey <tromey@redhat.com>
6549
6550 PR cli/15718
6551 * infcall.c: Include event-top.h.
6552 (run_inferior_call): Call async_disable_stdin if needed.
6553
99619bea
PA
65542014-03-20 Pedro Alves <palves@redhat.com>
6555
6556 * infrun.c (prepare_to_proceed): Delete.
6557 (thread_still_needs_step_over): New function.
6558 (find_thread_needs_step_over): New function.
6559 (proceed): If the current thread needs a step-over, set its
6560 steping_over_breakpoint flag. Adjust to use
6561 find_thread_needs_step_over instead of prepare_to_proceed.
6562 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
6563 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
6564 breakpoint.
6565 (switch_back_to_stepped_thread): Step over breakpoints of all
6566 threads not the stepping thread, before switching back to the
6567 stepping thread.
6568
2adfaa28
PA
65692014-03-20 Pedro Alves <palves@redhat.com>
6570
6571 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
6572 extern.
6573 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
6574 * infrun.c (saved_singlestep_ptid)
6575 (stepping_past_singlestep_breakpoint): Delete.
6576 (resume): Remove stepping_past_singlestep_breakpoint handling.
6577 (proceed): Store the prev_pc of the stepping thread too.
6578 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
6579 singlestep_pc.
6580 (enum infwait_states): Delete infwait_thread_hop_state.
6581 (struct execution_control_state) <hit_singlestep_breakpoint>: New
6582 field.
6583 (handle_inferior_event): Adjust.
6584 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
6585 handling and the thread-hop code. Before removing single-step
6586 breakpoints, check whether the thread hit a single-step breakpoint
6587 of another thread. If it did, the trap is not a random signal.
6588 (switch_back_to_stepped_thread): If the event thread hit a
6589 single-step breakpoint, unblock it before switching to the
6590 stepping thread. Handle the case of the stepped thread having
6591 advanced already.
6592 (keep_going): Handle the case of the current thread moving past a
6593 single-step breakpoint.
6594
31e77af2
PA
65952014-03-20 Pedro Alves <palves@redhat.com>
6596
6597 PR breakpoints/7143
6598 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
6599 are being stepped over.
6600 (breakpoint_address_match): Make extern.
6601 * breakpoint.h (breakpoint_address_match): New declaration.
6602 * inferior.h (stepping_past_instruction_at): New declaration.
6603 * infrun.c (struct step_over_info): New type.
6604 (step_over_info): New global.
6605 (set_step_over_info, clear_step_over_info)
6606 (stepping_past_instruction_at): New functions.
6607 (handle_inferior_event): Clear the step-over info when
6608 trap_expected is cleared.
6609 (resume): Remove now stale comment.
6610 (clear_proceed_status): Clear step-over info.
6611 (proceed): Adjust step-over handling to set or clear the step-over
6612 info instead of removing all breakpoints.
6613 (handle_signal_stop): When setting up a thread-hop, don't remove
6614 breakpoints here.
6615 (stop_stepping): Clear step-over info.
6616 (keep_going): Adjust step-over handling to set or clear step-over
6617 info and then always inserting breakpoints, instead of removing
6618 all breakpoints when stepping over one.
6619
b9f437de
PA
66202014-03-20 Pedro Alves <palves@redhat.com>
6621
6622 * infrun.c (previous_inferior_ptid): Adjust comment.
6623 (deferred_step_ptid): Delete.
6624 (infrun_thread_ptid_changed, prepare_to_proceed)
6625 (init_wait_for_inferior): Adjust.
6626 (handle_signal_stop): Delete deferred_step_ptid handling.
6627
06c868a8
JK
66282014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6629
6630 PR gdb/15358
6631 * defs.h (sync_quit_force_run): New declaration.
6632 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
6633 * event-top.c (async_sigterm_handler): New declaration.
6634 (async_sigterm_token): New variable.
6635 (async_init_signals): Create also async_sigterm_token.
6636 (async_sigterm_handler): New function.
6637 (sync_quit_force_run): New variable.
6638 (handle_sigterm): Replace quit_force call by other calls.
6639 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
6640
dea80df0
MR
66412014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
6642
6643 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
6644 offset into SPE pseudo registers.
6645
0c7e1a46
PA
66462014-03-18 Pedro Alves <palves@redhat.com>
6647
6648 PR gdb/13860
6649 * inferior.h (print_stop_event): Declare.
6650 * infrun.c (print_stop_event): New, factored out from ...
6651 (normal_stop): ... this.
6652 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
6653 of bpstat_print/print_stack_frame.
6654
9c1fcd01
TT
66552014-03-17 Tom Tromey <tromey@redhat.com>
6656
6657 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
6658
11aa919a
PMR
66592014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
6660
6661 * ada-lang.c (decode_constrained_packed_array): Perform a
6662 minimal coercion for reference with coerce_ref instead of
6663 ada_coerce_ref.
6664
d4ccb5e0
TG
66652014-03-17 Tristan Gingold <gingold@adacore.com>
6666
6667 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
6668 (darwin_solib_create_inferior_hook): Emit a warning if version
6669 is unhandled.
6670
49840f2a
UW
66712014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
6672
6673 * python/py-value.c (get_field_flag): Cast flag_name argument to
6674 PyObject_GetAttrString to support Python 2.4.
6675
ed4123e5
JK
66762014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6677
6678 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
6679 (Global Maintainers): Remove Jan Kratochvil.
6680
d6b64346
PA
66812014-03-14 Pedro Alves <palves@redhat.com>
6682
6683 * inferior.h (terminal_ours_for_output): Rename to ...
6684 (child_terminal_ours_for_output): ... this.
6685 (terminal_save_ours): Rename to ...
6686 (child_terminal_save_ours): ... this.
6687 (terminal_ours): Rename to ...
6688 (child_terminal_ours): ... this.
6689 (terminal_inferior): Rename to ...
6690 (child_terminal_inferior): ... this.
6691 (terminal_init_inferior): Rename to ...
6692 (child_terminal_init_inferior): ... this.
6693 (terminal_init_inferior_with_pgrp): Rename to ...
6694 (child_terminal_init_inferior_with_pgrp): ... this.
6695 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
6696 (child_terminal_init_with_pgrp): ... this.
6697 (terminal_save_ours): Rename to ...
6698 (child_terminal_save_ours): ... this.
6699 (terminal_init_inferior): Rename to ...
6700 (child_terminal_init): ... this. Adjust.
6701 (terminal_inferior): Rename to ...
6702 (child_terminal_inferior): ... this.
6703 (terminal_ours_for_output): Rename to ...
6704 (child_terminal_ours_for_output): ... this. Adjust.
6705 (terminal_ours): Rename to ...
6706 (child_terminal_ours): ... this.
6707 (terminal_ours_1): Rename to ...
6708 (child_terminal_ours_1): ... this. Adjust.
6709 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
6710 * windows-nat.c (do_initial_windows_stuff): Adjust.
6711 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
6712 (gnu_terminal_init): ... this. Adjust.
6713 (gnu_target): Adjust.
6714 * inf-child.c (inf_child_target): Adjust.
6715
5a1e8c7a
DE
67162014-03-13 Doug Evans <xdje42@gmail.com>
6717
6718 PR guile/16612
6719 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
6720 new eq?-hashtab.
6721
350e1a76
DE
67222014-03-13 Doug Evans <xdje42@gmail.com>
6723
6724 * value.c (record_latest_value): Call release_value_or_incref
6725 instead of release_value.
6726
a69900ae
PA
67272014-03-13 Pedro Alves <palves@redhat.com>
6728
6729 * procfs.c (procfs_target): Don't override to_shortname,
6730 to_longname or to_doc.
6731
5db9f0bd
PA
67322014-03-13 Pedro Alves <palves@redhat.com>
6733
6734 * inf-child.c (inf_child_open, inf_child_target): Don't mention
6735 Unix in user visible strings.
6736
5e3a2c38
SS
67372014-03-12 Stan Shebs <stan@codesourcery.com>
6738
6739 * gdbtypes.h: Annotate comments for Doxygen, add a page
6740 block comment with some general info.
6741
8bc2fe48
PA
67422014-03-12 Pedro Alves <palves@redhat.com>
6743
6744 * infcmd.c (prepare_execution_command): New function, factored out
6745 from several execution commands.
6746 (run_command_1, continue_command, step_1, jump_command)
6747 (signal_command, until_command, advance_command, finish_command)
6748 (attach_command): Use prepare_execution_command.
6749
638c5f49
OJ
67502014-03-12 Omair Javaid <omair.javaid@linaro.org>
6751
6752 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
6753 (MAX_BPTS): Define.
6754 (MAX_WPTS): Define.
6755 (struct arm_linux_thread_points): Removed.
6756 (struct arm_linux_process_info): New.
6757 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
6758 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
6759 (arm_linux_find_breakpoints_by_tid): Removed.
6760 (struct arch_lwp_info): New.
6761 (arm_linux_find_process_pid): New functions.
6762 (arm_linux_add_process): New functions.
6763 (arm_linux_process_info_get): New functions.
6764 (arm_linux_forget_process): New function.
6765 (arm_linux_get_debug_reg_state): New function.
6766 (struct update_registers_data): New.
6767 (update_registers_callback): New function.
6768 (arm_linux_insert_hw_breakpoint1): Updated.
6769 (arm_linux_remove_hw_breakpoint1): Updated.
6770 (arm_linux_insert_hw_breakpoint): Updated.
6771 (arm_linux_remove_hw_breakpoint): Updated.
6772 (arm_linux_insert_watchpoint): Updated.
6773 (arm_linux_remove_watchpoint): Updated.
6774 (arm_linux_new_thread): Updated.
6775 (arm_linux_prepare_to_resume): New function.
6776 (arm_linux_new_fork): New function.
6777 (_initialize_arm_linux_nat): Updated.
6778
6d03af93
PA
67792014-03-12 Pedro Alves <palves@redhat.com>
6780
6781 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
6782
b3ccfe11
TT
67832014-03-12 Tom Tromey <tromey@redhat.com>
6784
6785 * inf-child.c (return_zero): New function.
6786 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
6787 * aix-thread.c (aix_thread_inferior_created): New function.
6788 (aix_thread_attach): Remove.
6789 (init_aix_thread_ops): Don't set to_attach.
6790 (_initialize_aix_thread): Register inferior_created observer.
6791 * corelow.c (init_core_ops): Don't set to_attach or
6792 to_create_inferior.
6793 * exec.c (init_exec_ops): Don't set to_attach or
6794 to_create_inferior.
6795 * infcmd.c (run_command_1): Use find_run_target. Make direct
6796 target calls.
6797 (attach_command): Use find_attach_target. Make direct target
6798 calls.
6799 * record-btrace.c (init_record_btrace_ops): Don't set
6800 to_create_inferior.
6801 * record-full.c (record_full_can_async_p, record_full_is_async_p):
6802 Remove.
6803 (init_record_full_ops, init_record_full_core_ops): Update. Don't
6804 set to_create_inferior.
6805 * target.c (complete_target_initialization): Add assertion.
6806 (target_create_inferior): Remove.
6807 (find_default_attach, find_default_create_inferior): Remove.
6808 (find_attach_target, find_run_target): New functions.
6809 (find_default_is_async_p, find_default_can_async_p)
6810 (target_supports_non_stop, target_attach): Remove.
6811 (init_dummy_target): Don't set to_create_inferior or
6812 to_supports_non_stop.
6813 * target.h (struct target_ops) <to_attach>: Add comment. Remove
6814 TARGET_DEFAULT_FUNC.
6815 <to_create_inferior>: Add comment.
6816 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
6817 TARGET_DEFAULT_RETURN.
6818 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
6819 (find_attach_target, find_run_target): Declare.
6820 (target_create_inferior): Remove.
6821 (target_has_execution_1): Update comment.
6822 (target_supports_non_stop): Remove.
6823 * target-delegates.c: Rebuild.
6824
91f83b02
PA
68252014-03-12 Pedro Alves <palves@redhat.com>
6826
6827 * inf-child.h: Update comment to not mention Unix.
6828
f1aea813
PA
68292014-03-12 Pedro Alves <palves@redhat.com>
6830
6831 * inf-child.c: Update top comment to not mention Unix. Add
6832 generic comment describing how this target is meant to be used.
6833 (inf_child_post_attach, inf_child_post_startup_inferior)
6834 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
6835 Unix in comment.
6836
ee8e9165
PA
68372014-03-12 Pedro Alves <palves@redhat.com>
6838
6839 * nto-procfs.c: Include inf-child.h.
6840 (procfs_ops): Delete global.
6841 (procfs_can_run): Delete method.
6842 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
6843 target pointer instead of referencing procfs_ops.
6844 (procfs_prepare_to_store): Delete.
6845 (init_procfs_ops): Delete function.
6846 (procfs_target): New function, based on init_procfs_ops, but
6847 inherit inf_child_target.
6848 (_initialize_procfs): Use procfs_target.
6849
51a9c8c5
PA
68502014-03-12 Pedro Alves <palves@redhat.com>
6851
6852 * windows-nat.c: Include inf-child.h.
6853 (windows_ops): Delete global.
6854 (windows_open, windows_prepare_to_store, windows_can_run): Delete
6855 methods.
6856 (init_windows_ops): Delete function.
6857 (windows_target): New function, based on init_windows_ops, but
6858 inherit inf_child_target.
6859 (_initialize_windows_nat): Use windows_target. Install x86
6860 specific target methods here.
6861
c1966e26
DE
68622014-03-10 Doug Evans <xdje42@gmail.com>
6863
6864 * guile/guile.c (call_initialize_gdb_module): New function.
6865 (initialize_guile): Replace call to scm_init_guile with call to
6866 scm_with_guile.
6867
023db19c
JB
68682014-03-10 Joel Brobecker <brobecker@adacore.com>
6869
6870 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
6871 in call to TYPE_CODE macro.
6872
5ec18f2b
JG
68732014-03-10 Jerome Guitton <guitton@adacore.com>
6874
8668be63
JB
6875 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
6876 Resolve tagged types to full view.
5ec18f2b 6877
7d03f2eb
HZ
68782014-03-10 Hui Zhu <hui@codesourcery.com>
6879
6880 * target.h (target_insert_breakpoint): Remove "hardware" from its
6881 comments.
6882
c5164cbc
DE
68832014-03-07 Doug Evans <dje@google.com>
6884
6885 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
6886
c4a3fee2
DE
68872014-03-07 Doug Evans <dje@google.com>
6888
6889 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
6890 Remove unused local comp_dir_attr. Assert exactly one of
6891 stub_comp_unit_die, stub_comp_dir is non-NULL.
6892
3156469c
JB
68932014-03-07 Joel Brobecker <brobecker@adacore.com>
6894
6895 * target.h (complete_target_initialization, add_target):
6896 Add comment.
6897
c1a7b7c6
PA
68982014-03-07 Pedro Alves <palves@redhat.com>
6899
6900 * go32-nat.c: Include inf-child.h.
6901 (go32_ops): Delete global.
6902 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
6903 Delete methods.
6904 (go32_create_inferior): Push the passed in target pointer instead
6905 of referencing go32_ops.
6906 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
6907 (go32_target): New function, based on init_go32_ops, but inherit
6908 inf_child_target.
6909 (_initialize_go32_nat): Use go32_target. Move parts of
6910 init_go32_ops here.
6911
d3c1a85f
JB
69122014-03-06 Joel Brobecker <brobecker@adacore.com>
6913
6914 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
6915 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
6916 SYMBOL_VALUE_ADDRESS.
6917 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
6918
5fa1d40e
YQ
69192014-03-06 Yao Qi <yao@codesourcery.com>
6920
6921 * breakpoint.c (get_tracepoint_by_number): Remove argument
6922 optional_p. All callers updated. Adjust comments. Update
6923 output message.
6924 * breakpoint.h (get_tracepoint_by_number): Update declaration.
6925
0c13193f
YQ
69262014-03-06 Yao Qi <yao@codesourcery.com>
6927
6928 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
6929 early if get_number returns zero. Use 'p' instead of 'args'.
6930
2217da06
YQ
69312014-03-06 Yao Qi <yao@codesourcery.com>
6932
6933 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
6934 message.
6935
cc3da688
YQ
69362014-03-06 Yao Qi <yao@codesourcery.com>
6937
6938 PR breakpoints/16508
6939 * tracepoint.c (check_trace_running): New function.
6940 (trace_find_command): Move code to check_trace_running and
6941 call check_trace_running.
6942 (trace_find_pc_command): Likewise.
6943 (trace_find_tracepoint_command): Likewise.
6944 (trace_find_line_command): Likewise.
6945 (trace_find_range_command): Likewise.
6946 * tracepoint.h (check_trace_running): Likewise.
6947 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
6948
6a5f844b
YQ
69492014-03-06 Yao Qi <yao@codesourcery.com>
6950
6951 * target.h (struct target_ops) <to_traceframe_info>: Use
6952 TARGET_DEFAULT_NORETURN (tcomplain ()).
6953 * target-delegates.c: Regenerated.
6954
0f26cec1
PA
69552014-03-05 Pedro Alves <palves@redhat.com>
6956
6957 PR gdb/16575
6958 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
6959 void. Update comment.
6960 (dcache_xfer_memory): Delete.
6961 (dcache_read_memory_partial): New, based on the read bits of
6962 dcache_xfer_memory.
6963 (dcache_update): Add status parameter. Use ULONGEST for len, and
6964 adjust. Discard cache lines if the reason for the update was
6965 error.
6966 * dcache.h (dcache_xfer_memory): Delete declaration.
6967 (dcache_read_memory_partial): New declaration.
6968 (dcache_update): Update prototype.
6969 * target.c (raw_memory_xfer_partial): Update the dcache here.
6970 (memory_xfer_partial_1): Don't handle dcache writes here.
6971
b2b255bd
MF
69722014-03-05 Mike Frysinger <vapier@gentoo.org>
6973
6974 * remote-sim.c (gdbsim_load): Add const to prog.
6975
5d9cf8a4
TT
69762014-03-03 Tom Tromey <tromey@redhat.com>
6977
6978 * elfread.c (probe_key): Change to bfd_data.
6979 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
6980 now per-BFD, not per-objfile.
6981 * stap-probe.c (stap_probe_destroy): Update comment.
6982 (handle_stap_probe): Allocate on the per-BFD obstack.
6983
729662a5
TT
69842014-03-03 Tom Tromey <tromey@redhat.com>
6985
6986 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
6987 * breakpoint.c (create_longjmp_master_breakpoint): Use
6988 get_probe_address.
6989 (add_location_to_breakpoint, bkpt_probe_insert_location)
6990 (bkpt_probe_remove_location): Update.
6991 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
6992 * elfread.c (elf_symfile_relocate_probe): Remove.
6993 (elf_probe_fns): Update.
6994 (insert_exception_resume_breakpoint): Change type of "probe"
6995 parameter to bound_probe.
6996 (check_exception_resume): Update.
6997 * objfiles.c (objfile_relocate1): Don't relocate probes.
6998 * probe.c (bound_probe_s): New typedef.
6999 (parse_probes): Use get_probe_address. Set sal's objfile.
7000 (find_probe_by_pc): Return a bound_probe.
7001 (collect_probes): Return a VEC(bound_probe_s).
7002 (compare_probes): Update.
7003 (gen_ui_out_table_header_info): Change type of "probes"
7004 parameter. Update.
7005 (info_probes_for_ops): Update.
7006 (get_probe_address): New function.
7007 (probe_safe_evaluate_at_pc): Update.
7008 * probe.h (struct probe_ops) <get_probe_address>: New field.
7009 <set_semaphore, clear_semaphore>: Add objfile parameter.
7010 (struct probe) <objfile>: Remove field.
7011 <arch>: New field.
7012 <address>: Update comment.
7013 (struct bound_probe): New.
7014 (find_probe_by_pc): Return a bound_probe.
7015 (get_probe_address): Declare.
7016 * solib-svr4.c (struct probe_and_action) <address>: New field.
7017 (hash_probe_and_action, equal_probe_and_action): Update.
7018 (register_solib_event_probe): Add address parameter.
7019 (solib_event_probe_at): Update.
7020 (svr4_create_probe_breakpoints): Add objfile parameter. Use
7021 get_probe_address.
7022 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
7023 (stap_get_probe_address): New function.
7024 (stap_can_evaluate_probe_arguments, compute_probe_arg)
7025 (compile_probe_arg): Update.
7026 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
7027 address.
7028 (handle_stap_probe): Don't relocate the probe.
7029 (stap_relocate): Remove.
7030 (stap_gen_info_probes_table_values): Update.
7031 (stap_probe_ops): Remove stap_relocate.
7032 * symfile-debug.c (debug_sym_relocate_probe): Remove.
7033 (debug_sym_probe_fns): Update.
7034 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
7035 * symtab.c (init_sal): Use memset.
7036 * symtab.h (struct symtab_and_line) <objfile>: New field.
7037 * tracepoint.c (start_tracing, stop_tracing): Update.
7038
ff887920
TT
70392014-03-03 Tom Tromey <tromey@redhat.com>
7040
7041 * probe.h (parse_probes, find_probe_by_pc)
7042 (find_probes_in_objfile): Fix comments.
7043
f0407826
DE
70442014-03-02 Doug Evans <xdje42@gmail.com>
7045
7046 * infrun.c (handle_signal_stop): Replace test for
7047 TARGET_WAITKIND_STOPPED with an assert.
7048
35e6a711
DE
70492014-03-02 Doug Evans <xdje42@gmail.com>
7050
7051 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
7052
667f9d0b
DE
70532014-03-02 Doug Evans <xdje42@gmail.com>
7054
7055 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
7056
dc92ace0
MK
70572014-03-01 Mark Kettenis <kettenis@gnu.org>
7058
7059 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
7060
a900370f
MK
70612014-03-01 Mark Kettenis <kettenis@gnu.org>
7062
7063 * i386obsd-nat.c: Include "obsd-nat.h".
7064 (_initialize_i386obsd_nat): Call obsd_add_target instead of
7065 add_target.
7066 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
7067
b72a7981
MK
70682014-03-01 Mark Kettenis <kettenis@gnu.org>
7069
7070 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
7071
96c70aba
MK
70722014-03-01 Mark Kettenis <kettenis@gnu.org>
7073
7074 * mips64obsd-nat.c: Include "obsd-nath".
7075 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
7076 add_target
7077 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
7078
874a80af
MK
70792014-03-01 Mark Kettenis <kettenis@gnu.org>
7080
8fd408f1
MK
7081 * amd64obsd-nat.c: Include "obsd-nat,h.
7082 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
7083 add_target.
874a80af
MK
7084 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
7085
9cf95373
SC
70862014-02-28 Siva Chandra Reddy <sivachandra@google.com>
7087
7088 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
7089 (find_overload_match): Update call to find_oload_champ.
7090 (find_oload_champ_namespace_loop): Likewise
7091
863e4da4
MK
70922014-02-28 Mark Kettenis <kettenis@gnu.org>
7093
025cac40
MK
7094 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
7095
1ed586ce
MK
7096 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
7097 * config/sparc/obsd64.mh: New file.
7098 * sparc64obsd-nat.c: New file.
7099
863e4da4
MK
7100 * obsd-nat.h: New file.
7101 * obsd-nat.c: New file.
7102 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
7103 (ALLDEPFILES): Add obsd-nat.c.
7104
89de4da4
TT
71052014-02-28 Tom Tromey <tromey@redhat.com>
7106
7107 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
7108 * cli-out.h (cli_ui_out_impl): Now const.
7109 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
7110 * ui-out.c (struct ui_out) <impl>: Now const.
7111 (default_ui_out_impl): Now const.
7112 (ui_out_new): Make 'impl' parameter const.
7113 * ui-out.h (ui_out_new): Update.
7114
c725e7b6
MK
71152014-02-27 Mark Kettenis <kettenis@gnu.org>
7116
7117 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
7118
670b46b3
MK
71192014-02-27 Mark Kettenis <kettenis@gnu.org>
7120
7121 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
7122
c91550fc
JK
71232014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
7124
7125 Additional PR 8882 fix.
7126 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
7127
2fa0369e
PA
71282014-02-27 Pedro Alves <palves@redhat.com>
7129
7130 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
7131 isn't set.
7132
d632a097
PA
71332014-02-27 Pedro Alves <palves@redhat.com>
7134
7135 PR 12702
7136 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
7137 * nat/linux-waitpid.c: Include string.h.
7138 (status_to_str): Moved here and made extern.
7139 * nat/linux-waitpid.h (status_to_str): New declaration.
7140
2ebd5a35
HZ
71412014-02-27 Hui Zhu <hui@codesourcery.com>
7142
7143 PR 12702
7144 * infrun.c (ptid_match): Move ...
7145 * common/ptid.c (ptid_match): ... here.
7146 * inferior.h (ptid_match): Move ...
7147 * common/ptid.h (ptid_match): ... here.
7148
3cdd631f
MK
71492014-02-27 Mark Kettenis <kettenis@gnu.org>
7150
7151 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
7152 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
7153 gdb_target_obs.
7154
bee30a64
MK
71552014-02-27 Mark Kettenis <kettenis@gnu.org>
7156
7157 * obsd-tdep.c (obsd_auxv_parse): New function.
7158 (obsd_init_abi): Set auxv_parse.
27a48a92
MK
7159
7160 * gdbarch.sh (auxv_parse): New.
7161 * gdbarch.h: Regenerated.
7162 * gdbarch.c: Regenerated.
7163 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
7164
7a5a839f
LC
71652014-02-26 Ludovic Courtès <ludo@gnu.org>
7166
7167 * guile/scm-value.c (gdbscm_history_append_x): New function.
7168 (value_functions): Add it.
7169
31aa7e4e
JB
71702014-02-27 Joel Brobecker <brobecker@adacore.com>
7171
7172 * dwarf2read.c (attr_value_as_address): New function.
7173 (dwarf2_find_base_address, read_call_site_scope): Use
7174 attr_value_as_address in place of DW_ADDR.
7175 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
7176 the low and high addresses. Slight rework of the handling
7177 of the high pc being a constant form, and limit it to
7178 DWARF verson 4 or higher.
7179 (dwarf2_record_block_ranges): Likewise.
7180 (read_partial_die): Likewise.
7181 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
7182
9b333ba3
TT
71832014-02-26 Tom Tromey <tromey@redhat.com>
7184
7185 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
7186
5f6cac40
TT
71872014-02-26 Tom Tromey <tromey@redhat.com>
7188
7189 * elfread.c (elf_read_minimal_symbols): Return early if
7190 minimal symbols have already been read. Add "ei" parameter.
7191 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
7192 * minsyms.c (prim_record_minimal_symbol_full): Update.
7193 * objfiles.h (struct objstats) <n_minsyms>: Move...
7194 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
7195 * symmisc.c (print_objfile_statistics): Update.
7196
2750ef27
TT
71972014-02-26 Tom Tromey <tromey@redhat.com>
7198
7199 * elfread.c (elf_read_minimal_symbols): New function, from
7200 elf_symfile_read.
7201 (elf_symfile_read): Call it.
7202
34643a32
TT
72032014-02-26 Tom Tromey <tromey@redhat.com>
7204
7205 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
7206 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
7207 (lookup_minimal_symbol_solib_trampoline)
7208 (lookup_minimal_symbol_by_pc_section_1)
7209 (lookup_minimal_symbol_and_objfile): Update.
7210 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
7211 Don't allocate a minimal symbol if minsyms have already been read.
7212 (build_minimal_symbol_hash_tables): Update.
7213 (install_minimal_symbols): Do nothing if minsyms already read.
7214 Use the per-BFD obstack.
7215 (terminate_minimal_symbol_table): Use the per-BFD obstack.
7216 * objfiles.c (allocate_objfile): Call
7217 terminate_minimal_symbol_table later.
7218 (have_minimal_symbols): Update.
7219 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
7220 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
7221 Move from struct objfile.
7222 <minsyms_read>: New field.
7223 (struct objfile) <msymbols, minimal_symbol_count,
7224 msymbol_hash, msymbol_demangled_hash>: Move.
7225 (ALL_OBJFILE_MSYMBOLS): Update.
7226 * symfile.c (read_symbols): Set minsyms_read.
7227 (reread_symbols): Update.
7228 * symmisc.c (dump_objfile, dump_msymbols): Update.
7229
2273f0ac
TT
72302014-02-26 Tom Tromey <tromey@redhat.com>
7231
7232 * minsyms.c (msymbols_sort): Remove.
7233 * minsyms.h (msymbols_sort): Remove.
7234 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
7235 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
7236 * elfread.c (elf_symtab_read): Don't add section offsets.
7237 * xcoffread.c (record_minimal_symbol): Don't add section offset
7238 to minimal symbol address.
7239 * somread.c (text_offset, data_offset): Remove.
7240 (som_symtab_read): Don't add section offsets to minimal symbol
7241 addresses.
7242 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
7243 Don't add section offsets to minimal symbols.
7244 * coffread.c (coff_symtab_read): Don't add section offsets
7245 to minimal symbol addresses.
7246 * machoread.c (macho_symtab_add_minsym): Don't add section offset
7247 to minimal symbol addresses.
7248 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
7249 section offset to minimal symbol addresses.
7250 * mdebugread.c (parse_partial_symbols): Don't add section
7251 offset to minimal symbol addresses.
7252 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
7253 offset to minimal symbol addresses.
7254
77e371c0
TT
72552014-02-26 Tom Tromey <tromey@redhat.com>
7256
7257 * ada-lang.c (ada_main_name): Update.
7258 (ada_add_standard_exceptions): Update.
7259 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7260 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7261 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
7262 * auxv.c (ld_so_xfer_auxv): Update.
7263 * avr-tdep.c (avr_scan_prologue): Update.
7264 * ax-gdb.c (gen_var_ref): Update.
7265 * blockframe.c (get_pc_function_start)
7266 (find_pc_partial_function_gnu_ifunc): Update.
7267 * breakpoint.c (create_overlay_event_breakpoint)
7268 (create_longjmp_master_breakpoint)
7269 (create_std_terminate_master_breakpoint)
7270 (create_exception_master_breakpoint): Update.
7271 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7272 * c-valprint.c (c_val_print): Update.
7273 * coff-pe-read.c (add_pe_forwarded_sym): Update.
7274 * common/agent.c (agent_look_up_symbols): Update.
7275 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7276 * dwarf2loc.c (call_site_to_target_addr): Update.
7277 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
7278 * elfread.c (elf_gnu_ifunc_record_cache)
7279 (elf_gnu_ifunc_resolve_by_got): Update.
7280 * findvar.c (default_read_var_value): Update.
7281 * frame.c (inside_main_func): Update.
7282 * frv-tdep.c (frv_frame_this_id): Update.
7283 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7284 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7285 Update.
7286 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
7287 (hppa_hpux_find_dummy_bpaddr): Update.
7288 * hppa-tdep.c (hppa_symbol_address): Update.
7289 * infcmd.c (until_next_command): Update.
7290 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
7291 Update.
7292 * linespec.c (minsym_found, add_minsym): Update.
7293 * linux-nat.c (get_signo): Update.
7294 * linux-thread-db.c (inferior_has_bug): Update.
7295 * m32c-tdep.c (m32c_return_value)
7296 (m32c_m16c_address_to_pointer): Update.
7297 * m32r-tdep.c (m32r_frame_this_id): Update.
7298 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7299 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7300 * maint.c (maintenance_translate_address): Update.
7301 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
7302 (frob_address): New function.
7303 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
7304 frob_address. Rename parameter to "pc_in".
7305 (compare_minimal_symbols, compact_minimal_symbols): Use raw
7306 addresses.
7307 (find_solib_trampoline_target, minimal_symbol_upper_bound):
7308 Update.
7309 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7310 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
7311 * objc-lang.c (find_objc_msgsend): Update.
7312 * objfiles.c (objfile_relocate1): Update.
7313 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7314 * p-valprint.c (pascal_val_print): Update.
7315 * parse.c (write_exp_msymbol): Update.
7316 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
7317 (ppc_elfv2_skip_entrypoint): Update.
7318 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7319 * printcmd.c (build_address_symbolic, msym_info)
7320 (address_info): Update.
7321 * proc-service.c (ps_pglobal_lookup): Update.
7322 * psymtab.c (find_pc_sect_psymtab_closer)
7323 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
7324 Change msymbol parameter to bound_minimal_symbol.
7325 * ravenscar-thread.c (get_running_thread_id): Update.
7326 * remote.c (remote_check_symbols): Update.
7327 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
7328 address.
7329 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7330 * solib-dsbt.c (lm_base): Update.
7331 * solib-frv.c (lm_base, main_got): Update.
7332 * solib-irix.c (locate_base): Update.
7333 * solib-som.c (som_solib_create_inferior_hook)
7334 (link_map_start): Update.
7335 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
7336 * solib-svr4.c (elf_locate_base, enable_break): Update.
7337 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7338 (flush_ea_cache): Update.
7339 * stabsread.c (define_symbol, scan_file_globals): Update.
7340 * stack.c (find_frame_funname): Update.
7341 * symfile-debug.c (debug_qf_expand_symtabs_matching)
7342 (debug_qf_find_pc_sect_symtab): Update.
7343 * symfile.c (simple_read_overlay_table)
7344 (simple_overlay_update): Update.
7345 * symfile.h (struct quick_symbol_functions)
7346 <find_pc_sect_symtab>: Change type of msymbol to
7347 bound_minimal_symbol.
7348 * symmisc.c (dump_msymbols): Update.
7349 * symtab.c (find_pc_sect_symtab_via_partial)
7350 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
7351 (search_symbols, print_msymbol_info): Update.
7352 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
7353 (MSYMBOL_VALUE_ADDRESS): Redefine.
7354 (BMSYMBOL_VALUE_ADDRESS): New macro.
7355 * tracepoint.c (scope_info): Update.
7356 * tui/tui-disasm.c (tui_find_disassembly_address)
7357 (tui_get_begin_asm_address): Update.
7358 * valops.c (find_function_in_inferior): Update.
7359 * value.c (value_static_field, value_fn_field): Update.
7360
3b7344d5
TT
73612014-02-26 Tom Tromey <tromey@redhat.com>
7362
7363 * ada-lang.c (ada_update_initial_language): Update.
7364 (ada_main_name, ada_has_this_exception_support): Update.
7365 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7366 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7367 * arm-tdep.c (arm_skip_stub): Update.
7368 * auxv.c (ld_so_xfer_auxv): Update.
7369 * avr-tdep.c (avr_scan_prologue): Update.
7370 * ax-gdb.c (gen_var_ref): Update.
7371 * breakpoint.c (struct breakpoint_objfile_data)
7372 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
7373 type to bound_minimal_symbol.
7374 (create_overlay_event_breakpoint)
7375 (create_longjmp_master_breakpoint)
7376 (create_std_terminate_master_breakpoint)
7377 (create_exception_master_breakpoint): Update.
7378 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7379 * c-exp.y (classify_name): Update.
7380 * coffread.c (coff_symfile_read): Update.
7381 * common/agent.c (agent_look_up_symbols): Update.
7382 * d-lang.c (d_main_name): Update.
7383 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7384 * dec-thread.c (enable_dec_thread): Update.
7385 * dwarf2loc.c (call_site_to_target_addr): Update.
7386 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
7387 * eval.c (evaluate_subexp_standard): Update.
7388 * findvar.c (struct minsym_lookup_data) <result>: Change type
7389 to bound_minimal_symbol.
7390 <objfile>: Remove.
7391 (minsym_lookup_iterator_cb, default_read_var_value): Update.
7392 * frame.c (inside_main_func): Update.
7393 * frv-tdep.c (frv_frame_this_id): Update.
7394 * gcore.c (call_target_sbrk): Update.
7395 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7396 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7397 Update.
7398 * go-lang.c (go_main_name): Update.
7399 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
7400 (hppa_hpux_find_import_stub_for_addr): Update.
7401 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
7402 Update. Change return type.
7403 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
7404 type.
7405 * jit.c (jit_breakpoint_re_set_internal): Update.
7406 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
7407 Update.
7408 * linux-nat.c (get_signo): Update.
7409 * linux-thread-db.c (inferior_has_bug): Update
7410 * m32c-tdep.c (m32c_return_value)
7411 (m32c_m16c_address_to_pointer): Update.
7412 * m32r-tdep.c (m32r_frame_this_id): Update.
7413 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7414 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7415 * minsyms.c (lookup_minimal_symbol_internal): Rename to
7416 lookup_minimal_symbol. Change return type.
7417 (lookup_minimal_symbol): Remove.
7418 (lookup_bound_minimal_symbol): Update.
7419 (lookup_minimal_symbol_text): Change return type.
7420 (lookup_minimal_symbol_solib_trampoline): Change return type.
7421 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
7422 (lookup_minimal_symbol_solib_trampoline): Change return type.
7423 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7424 * objc-lang.c (lookup_objc_class, lookup_child_selector)
7425 (value_nsstring, find_imps): Update.
7426 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7427 * p-lang.c (pascal_main_name): Update.
7428 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
7429 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7430 * proc-service.c (ps_pglobal_lookup): Update.
7431 * ravenscar-thread.c (get_running_thread_msymbol): Change
7432 return type.
7433 (has_ravenscar_runtime, get_running_thread_id): Update.
7434 * remote.c (remote_check_symbols): Update.
7435 * sol-thread.c (ps_pglobal_lookup): Update.
7436 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7437 * solib-dsbt.c (lm_base): Update.
7438 * solib-frv.c (lm_base, frv_relocate_section_addresses):
7439 Update.
7440 * solib-irix.c (locate_base): Update.
7441 * solib-som.c (som_solib_create_inferior_hook)
7442 (som_solib_desire_dynamic_linker_symbols, link_map_start):
7443 Update.
7444 * solib-spu.c (spu_enable_break): Update.
7445 * solib-svr4.c (elf_locate_base, enable_break): Update.
7446 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7447 (flush_ea_cache): Update.
7448 * stabsread.c (define_symbol): Update.
7449 * symfile.c (simple_read_overlay_table): Update.
7450 * symtab.c (find_pc_sect_line): Update.
7451 * tracepoint.c (scope_info): Update.
7452 * tui-disasm.c (tui_get_begin_asm_address): Update.
7453 * value.c (value_static_field): Update.
7454
40c1a007
TT
74552014-02-26 Tom Tromey <tromey@redhat.com>
7456
7457 * minsyms.c (prim_record_minimal_symbol_full): Use
7458 SET_MSYMBOL_VALUE_ADDRESS.
7459 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
7460 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
7461 SET_MSYMBOL_VALUE_ADDRESS.
7462 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
7463 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
7464
efd66ac6
TT
74652014-02-26 Tom Tromey <tromey@redhat.com>
7466
7467 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
7468 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
7469 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
7470 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
7471 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
7472 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
7473 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
7474 * ada-lang.c (ada_main_name): Update.
7475 (ada_lookup_simple_minsym): Update.
7476 (ada_make_symbol_completion_list): Update.
7477 (ada_add_standard_exceptions): Update.
7478 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
7479 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7480 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
7481 * arm-tdep.c (skip_prologue_function): Update.
7482 (arm_skip_stack_protector, arm_skip_stub): Update.
7483 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
7484 (arm_wince_skip_main_prologue): Update.
7485 * auxv.c (ld_so_xfer_auxv): Update.
7486 * avr-tdep.c (avr_scan_prologue): Update.
7487 * ax-gdb.c (gen_var_ref): Update.
7488 * block.c (call_site_for_pc): Update.
7489 * blockframe.c (get_pc_function_start): Update.
7490 (find_pc_partial_function_gnu_ifunc): Update.
7491 * breakpoint.c (create_overlay_event_breakpoint): Update.
7492 (create_longjmp_master_breakpoint): Update.
7493 (create_std_terminate_master_breakpoint): Update.
7494 (create_exception_master_breakpoint): Update.
7495 (resolve_sal_pc): Update.
7496 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7497 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
7498 Update.
7499 * c-valprint.c (c_val_print): Update.
7500 * coff-pe-read.c (add_pe_forwarded_sym): Update.
7501 * coffread.c (coff_symfile_read): Update.
7502 * common/agent.c (agent_look_up_symbols): Update.
7503 * dbxread.c (find_stab_function_addr): Update.
7504 (end_psymtab): Update.
7505 * dwarf2loc.c (call_site_to_target_addr): Update.
7506 (func_verify_no_selftailcall): Update.
7507 (tailcall_dump): Update.
7508 (call_site_find_chain_1): Update.
7509 (dwarf_expr_reg_to_entry_parameter): Update.
7510 * elfread.c (elf_gnu_ifunc_record_cache): Update.
7511 (elf_gnu_ifunc_resolve_by_got): Update.
7512 * f-valprint.c (info_common_command): Update.
7513 * findvar.c (read_var_value): Update.
7514 * frame.c (get_prev_frame_1): Update.
7515 (inside_main_func): Update.
7516 * frv-tdep.c (frv_skip_main_prologue): Update.
7517 (frv_frame_this_id): Update.
7518 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7519 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
7520 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
7521 (gnuv3_skip_trampoline): Update.
7522 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
7523 (hppa64_hpux_in_solib_call_trampoline): Update.
7524 (hppa_hpux_skip_trampoline_code): Update.
7525 (hppa64_hpux_search_dummy_call_sequence): Update.
7526 (hppa_hpux_find_import_stub_for_addr): Update.
7527 (hppa_hpux_find_dummy_bpaddr): Update.
7528 * hppa-tdep.c (hppa_symbol_address)
7529 (hppa_lookup_stub_minimal_symbol): Update.
7530 * i386-tdep.c (i386_skip_main_prologue): Update.
7531 (i386_pe_skip_trampoline_code): Update.
7532 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
7533 * infcall.c (get_function_name): Update.
7534 * infcmd.c (until_next_command): Update.
7535 * jit.c (jit_breakpoint_re_set_internal): Update.
7536 (jit_inferior_init): Update.
7537 * linespec.c (minsym_found): Update.
7538 (add_minsym): Update.
7539 * linux-fork.c (info_checkpoints_command): Update.
7540 * linux-nat.c (get_signo): Update.
7541 * linux-thread-db.c (inferior_has_bug): Update.
7542 * m32c-tdep.c (m32c_return_value): Update.
7543 (m32c_m16c_address_to_pointer): Update.
7544 (m32c_m16c_pointer_to_address): Update.
7545 * m32r-tdep.c (m32r_frame_this_id): Update.
7546 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7547 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7548 * maint.c (maintenance_translate_address): Update.
7549 * minsyms.c (add_minsym_to_hash_table): Update.
7550 (add_minsym_to_demangled_hash_table): Update.
7551 (msymbol_objfile): Update.
7552 (lookup_minimal_symbol): Update.
7553 (iterate_over_minimal_symbols): Update.
7554 (lookup_minimal_symbol_text): Update.
7555 (lookup_minimal_symbol_by_pc_name): Update.
7556 (lookup_minimal_symbol_solib_trampoline): Update.
7557 (lookup_minimal_symbol_by_pc_section_1): Update.
7558 (lookup_minimal_symbol_and_objfile): Update.
7559 (prim_record_minimal_symbol_full): Update.
7560 (compare_minimal_symbols): Update.
7561 (compact_minimal_symbols): Update.
7562 (build_minimal_symbol_hash_tables): Update.
7563 (install_minimal_symbols): Update.
7564 (terminate_minimal_symbol_table): Update.
7565 (find_solib_trampoline_target): Update.
7566 (minimal_symbol_upper_bound): Update.
7567 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7568 * mips-tdep.c (mips_stub_frame_sniffer): Update.
7569 (mips_skip_pic_trampoline_code): Update.
7570 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
7571 * objc-lang.c (selectors_info): Update.
7572 (classes_info): Update.
7573 (find_methods): Update.
7574 (find_imps): Update.
7575 (find_objc_msgsend): Update.
7576 * objfiles.c (objfile_relocate1): Update.
7577 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
7578 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7579 * p-valprint.c (pascal_val_print): Update.
7580 * parse.c (write_exp_msymbol): Update.
7581 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
7582 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
7583 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7584 * printcmd.c (build_address_symbolic): Update.
7585 (sym_info): Update.
7586 (address_info): Update.
7587 * proc-service.c (ps_pglobal_lookup): Update.
7588 * psymtab.c (find_pc_sect_psymtab_closer): Update.
7589 (find_pc_sect_psymtab): Update.
7590 * python/py-framefilter.c (py_print_frame): Update.
7591 * ravenscar-thread.c (get_running_thread_id): Update.
7592 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
7593 Update.
7594 * remote.c (remote_check_symbols): Update.
7595 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
7596 (rs6000_skip_trampoline_code): Update.
7597 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
7598 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7599 * solib-dsbt.c (lm_base): Update.
7600 * solib-frv.c (lm_base): Update.
7601 (main_got): Update.
7602 * solib-irix.c (locate_base): Update.
7603 * solib-som.c (som_solib_create_inferior_hook): Update.
7604 (som_solib_desire_dynamic_linker_symbols): Update.
7605 (link_map_start): Update.
7606 * solib-spu.c (spu_enable_break): Update.
7607 (ocl_enable_break): Update.
7608 * solib-svr4.c (elf_locate_base): Update.
7609 (enable_break): Update.
7610 * spu-tdep.c (spu_get_overlay_table): Update.
7611 (spu_catch_start): Update.
7612 (flush_ea_cache): Update.
7613 * stabsread.c (define_symbol): Update.
7614 (scan_file_globals): Update.
7615 * stack.c (find_frame_funname): Update.
7616 (frame_info): Update.
7617 * symfile.c (simple_read_overlay_table): Update.
7618 (simple_overlay_update): Update.
7619 * symmisc.c (dump_msymbols): Update.
7620 * symtab.c (fixup_section): Update.
7621 (find_pc_sect_line): Update.
7622 (skip_prologue_sal): Update.
7623 (search_symbols): Update.
7624 (print_msymbol_info): Update.
7625 (rbreak_command): Update.
7626 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
7627 (completion_list_objc_symbol): Update.
7628 (default_make_symbol_completion_list_break_on): Update.
7629 * tracepoint.c (scope_info): Update.
7630 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
7631 (tui_get_begin_asm_address): Update.
7632 * valops.c (find_function_in_inferior): Update.
7633 * value.c (value_static_field): Update.
7634 (value_fn_field): Update.
7635
50e65b17
TT
76362014-02-26 Tom Tromey <tromey@redhat.com>
7637
7638 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
7639 bound minimal symbols. Move code that knows about minsym
7640 table layout...
7641 * minsyms.c (minimal_symbol_upper_bound): ... here. New
7642 function.
7643 * minsyms.h (minimal_symbol_upper_bound): Declare.
7644 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
7645 minimal_symbol_upper_bound.
7646
1b588015
JB
76472014-02-27 Joel Brobecker <brobecker@adacore.com>
7648
7649 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
7650 Use the type's name if its basic type does not have a tag.
7651
dbb9c2b1
JB
76522014-02-27 Joel Brobecker <brobecker@adacore.com>
7653
7654 * dwarf2read.c (read_subrange_type): Add comment.
7655
55426c9d
JB
76562014-02-27 Joel Brobecker <brobecker@adacore.com>
7657
7658 * dwarf2read.c (update_enumeration_type_from_children): New
7659 function, mostly extracted from process_structure_scope.
7660 (read_enumeration_type): Call update_enumeration_type_from_children.
7661 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
7662 and flag_flag_enum fields.
7663
f2fce0ca
PA
76642014-02-26 Pedro Alves <palves@redhat.com>
7665
7666 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
7667 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
7668 to_xfer_partial method.
7669
7a44e40e
PA
76702014-02-26 Pedro Alves <palves@redhat.com>
7671
7672 * target.c (complete_target_initialization): Don't install
7673 default_xfer_partial as to_xfer_partial hook.
7674 (nomemory): Delete.
7675 (update_current_target): Don't INHERIT nor de_fault
7676 deprecated_xfer_memory. Delete de_fault macro.
7677 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
7678 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
7679 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
7680 field.
7681
bd265cd0
PA
76822014-02-26 Pedro Alves <palves@redhat.com>
7683
7684 * go32-nat.c (my_write_child): New function.
7685 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
7686 (go32_xfer_partial): New function.
7687 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
7688 Instead install a to_xfer_partial hook.
7689
9d46c4e5
PA
76902014-02-26 Pedro Alves <palves@redhat.com>
7691
7692 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
7693 to_xfer_partial helper. Rewrite.
7694 (procfs_xfer_partial): New function.
7695 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
7696 Install a to_xfer_partial hook.
7697
a1583b1f
PA
76982014-02-26 Pedro Alves <palves@redhat.com>
7699
7700 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
7701 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
7702 (m32r_xfer_partial): New function.
7703 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
7704 Install a to_xfer_partial hook.
7705
6df1b29f
PA
77062014-02-26 Pedro Alves <palves@redhat.com>
7707
7708 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
7709 helper.
7710 (mips_xfer_partial): New function.
7711 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
7712 hook. Install a to_xfer_partial hook.
7713
dc53a7ad
JB
77142014-02-26 Joel Brobecker <brobecker@adacore.com>
7715
7716 * gdbtypes.h (create_array_type_with_stride): Add declaration.
7717 * gdbtypes.c (create_array_type_with_stride): New function,
7718 renaming create_array_type, but with an added parameter
7719 called "bit_stride".
7720 (create_array_type): Re-implement using
7721 create_array_type_with_stride.
7722 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
7723 and DW_AT_bit_stride attributes.
7724
12ab52e9
PA
77252014-02-26 Pedro Alves <palves@redhat.com>
7726
7727 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
7728 task-specific breakpoints.
7729
d16461ae
PA
77302014-02-25 Pedro Alves <palves@redhat.com>
7731
7732 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
7733 handling of object == TARGET_OBJECT_UNWIND_TABLE.
7734
a8b16220
SS
77352014-02-25 Stan Shebs <stan@codesourcery.com>
7736
7737 * defs.h: Annotate comments for Doxygen.
7738
b9e795ee
TT
77392014-02-25 Tom Tromey <tromey@redhat.com>
7740
7741 * target.h (target_ignore): Don't declare.
7742 * target.c (target_ignore): Remove.
7743
849c862e
JK
77442014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7745
7746 PR gdb/16626
7747 * auto-load.c (auto_load_objfile_script_1): Change filename to
7748 debugfile.
7749
475109d8
JB
77502014-02-25 Joel Brobecker <brobecker@adacore.com>
7751
7752 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
7753 documentation. Adjust prototype to match the target_ops
7754 to_xfer_partial method. Adjust implementation accordingly.
7755
e186c3bd
HZ
77562014-02-25 Hui Zhu <hui@codesourcery.com>
7757
7758 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
7759 to_traceframe_info.
7760
6d451942
KB
77612014-02-25 Kevin Buettner <kevinb@redhat.com>
7762
041ab8b4 7763 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
6d451942
KB
7764 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
7765 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
7766 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
7767 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
7768 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
7769 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
7770 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
7771 New constants.
7772 (rl78_register_type): Use a data pointer type for SP and
7773 new pseudo registers mentioned above. Use a 16 bit integer
7774 type for all other register pairs.
7775 (rl78_register_name, rl78_g10_register_name): Update for
7776 new pseudo registers.
7777 (rl78_pseudo_register_read): Likewise.
7778 (rl78_pseudo_register_write): Likewise.
7779 (rl78_dwarf_reg_to_regnum): Return register numbers representing
7780 to the newly added pseudo registers.
7781
eddf0bae
DE
77822014-02-24 Doug Evans <dje@google.com>
7783
7784 * value.c (record_latest_value): Fix comment.
7785 * printcmd.c (print_command_1): Remove code to handle -1 return from
7786 record_latest_value.
7787
e96027e0
PA
77882014-02-24 Pedro Alves <palves@redhat.com>
7789
7790 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
7791 deprecated_xfer_memory hook.
7792 (procfs_xfer_partial): Call procfs_xfer_memory instead
7793 of the deprecated_xfer_memory target hook.
7794 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
7795 helper.
7796
0837c976
YZ
77972014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
7798
7799 * windows-nat.c (windows_xfer_shared_libraries): Return
7800 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
7801 requested object is TARGET_OBJECT_LIBRARIES.
7802
bc113b4e
YQ
78032014-02-24 Yao Qi <yao@codesourcery.com>
7804
7805 * target.h (enum target_xfer_status)
7806 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
7807 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
7808 explicitly. New.
7809 * corefile.c (memory_error_message): User updated.
7810 * exec.c (section_table_read_available_memory): Likewise.
7811 * record-btrace.c (record_btrace_xfer_partial): Likewise.
7812 * target.c (target_xfer_status_to_string): Likewise.
7813 (raw_memory_xfer_partial): Likewise.
7814 (memory_xfer_partial_1, target_xfer_partial): Likewise.
7815 * valops.c (read_value_memory): Likewise.
7816 * exec.h: Update comments.
7817
01cb8804
YQ
78182014-02-24 Yao Qi <yao@codesourcery.com>
7819
7820 * target.c (target_xfer_status_to_string): Rename argument err
7821 to status.
7822 * target.h (target_xfer_status_to_string): Update declaration.
7823 Replace target_xfer_error_to_string with
7824 target_xfer_status_to_string in comment.
7825
93063aa6
YQ
78262014-02-24 Yao Qi <yao@codesourcery.com>
7827
7828 * mips-linux-nat.c (super_close): Update its type.
7829 (mips_linux_close): Pass 'self' to super_close.
7830
5c328c05
YQ
78312014-02-24 Yao Qi <yao@codesourcery.com>
7832
7833 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
7834 * corefile.c (read_memory): Adjusted.
7835 * target.c (target_write_with_progress): Adjusted.
7836
f73023dd
YQ
78372014-02-23 Yao Qi <yao@codesourcery.com>
7838
7839 Revert two patches:
7840
7841 2013-10-25 Yao Qi <yao@codesourcery.com>
7842
7843 * remote.c (remote_traceframe_info): Return early if
7844 traceframe is not selected.
7845
7846 2013-07-19 Yao Qi <yao@codesourcery.com>
7847
7848 * target.c (update_current_target): Change the default action
7849 of 'to_traceframe_info' from tcomplain to return_zero.
7850 * target.h (struct target_ops) <to_traceframe_info>: Add more
7851 comments.
7852
5a2eb0ef
YQ
78532014-02-23 Yao Qi <yao@codesourcery.com>
7854
7855 * valops.c (read_value_memory): Rewrite it. Call
7856 target_xfer_partial in a loop.
7857 * exec.h (section_table_available_memory): Remove declaration.
7858 Move comments to ...
7859 * exec.c (section_table_available_memory): ... here. Make it
7860 static.
7861
1ee79381
YQ
78622014-02-23 Yao Qi <yao@codesourcery.com>
7863
7864 * exec.c (section_table_read_available_memory): New function.
7865 * exec.h (section_table_read_available_memory): Declare.
7866 * ctf.c (ctf_xfer_partial): Call
7867 section_table_read_available_memory.
7868 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7869
1ca49d37
YQ
78702014-02-23 Yao Qi <yao@codesourcery.com>
7871
7872 * ctf.c (ctf_xfer_partial): Move code to ...
7873 * exec.c (exec_read_partial_read_only): ... it. New function.
7874 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7875 * tracefile.c: Include "exec.h".
7876 * exec.h (exec_read_partial_read_only): Declare.
7877
a283690e
YQ
78782014-02-23 Yao Qi <yao@codesourcery.com>
7879
7880 * tracefile-tfile.c (tfile_has_all_memory): Remove.
7881 (tfile_has_memory): Remove.
7882 (init_tfile_ops): Don't set fields to_has_all_memory and
7883 to_has_memory of tfile_ops.
7884 * tracefile.c (tracefile_has_all_memory): New function.
7885 (tracefile_has_memory): New function.
7886 (init_tracefile_ops): Initialize fields to_has_all_memory and
7887 to_has_memory of 'ops'.
7888
12e03cd0
YQ
78892014-02-23 Yao Qi <yao@codesourcery.com>
7890
7891 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
7892 (ctf_thread_alive, ctf_get_trace_status): Remove.
7893 (init_ctf_ops): Don't set some fields of ctf_ops. Call
7894 init_tracefile_ops.
7895 * tracefile-tfile.c (tfile_get_trace_status): Remove.
7896 (tfile_has_stack, tfile_has_registers): Remove.
7897 (tfile_thread_alive): Remove.
7898 (init_tfile_ops): Don't set some fields of tfile_ops. Call
7899 init_tracefile_ops.
7900 * tracefile.c (tracefile_has_stack): New function.
7901 (tracefile_has_registers): New function.
7902 (tracefile_thread_alive): New function.
7903 (tracefile_get_trace_status): New function.
7904 (init_tracefile_ops): New function.
7905 * tracefile.h (init_tracefile_ops): Declare.
7906
11395323
YQ
79072014-02-23 Yao Qi <yao@codesourcery.com>
7908
7909 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
7910 (O_LARGEFILE): Likewise.
7911 (tfile_ops): Likewise.
7912 (TRACE_HEADER_SIZE): Likewise.
7913 (trace_fd, trace_frames_offset, cur_offset): Likewise.
7914 (cur_data_size): Likewise.
7915 (tfile_read, tfile_open, tfile_interp_line): Likewise.
7916 (tfile_close, tfile_files_info): Likewise.
7917 (tfile_get_trace_status): Likewise.
7918 (tfile_get_tracepoint_status): Likewise.
7919 (tfile_get_traceframe_address): Likewise.
7920 (tfile_trace_find, match_blocktype): Likewise.
7921 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
7922 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
7923 (tfile_get_trace_state_variable_value): Likewise.
7924 (tfile_has_all_memory, tfile_has_memory): Likewise.
7925 (tfile_has_stack, tfile_has_registers): Likewise.
7926 (tfile_thread_alive, build_traceframe_info): Likewise.
7927 (tfile_traceframe_info, init_tfile_ops): Likewise.
7928 (_initialize_tracepoint): Don't call init_tfile_ops
7929 and add_target_with_completer.
7930 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
7931 exec.h, completer.h and filenames.h.
7932 (_initialize_tracefile_tfile): New function.
7933
7951c4eb
YQ
79342014-02-23 Yao Qi <yao@codesourcery.com>
7935
7936 * Makefile.in (REMOTE_OBS): Append tracefile.o and
7937 tracefile-tfile.o.
7938 (HFILES_NO_SRCDIR): Add tracefile.h.
7939 * ctf.c: Include "tracefile.h".
7940 * tracefile.h: New file.
7941 * tracefile.c: New file
7942 * tracefile-tfile.c: New file.
7943 * tracepoint.c: Include "tracefile.h".
7944 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
7945 (stop_reason_names): Add const.
7946 (trace_file_writer_xfree): Move it to tracefile.c.
7947 (trace_save, trace_save_command, trace_save_tfile): Likewise.
7948 (trace_save_ctf): Likewise.
7949 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
7950 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
7951 (tfile_write_header, tfile_write_regblock_type): Likewise.
7952 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
7953 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
7954 (tfile_write_raw_data, tfile_end): Likewise.
7955 (tfile_trace_file_writer_new): Likewise.
7956 (free_uploaded_tp): Make it extern.
7957 (free_uploaded_tsv): Make it extern.
7958 (_initialize_tracepoint): Move code to register command 'tsave'
7959 to tracefile.c.
7960 * tracepoint.h (stop_reason_names): Declare.
7961 (struct trace_frame_write_ops): Move it to tracefile.h.
7962 (struct trace_file_write_ops): Likewise.
7963 (struct trace_file_writer): Likewise.
7964 (free_uploaded_tsvs, free_uploaded_tps): Declare.
7965
184cd072
JK
79662014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7967
7968 PR gdb/16594
7969 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
7970 process name.
7971 (get_cores_used_by_process): New parameter num_cores, use it.
7972 (linux_xfer_osdata_processes): Pass num_cores to it.
7973 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
7974 process name.
7975
c63528fc
AK
79762014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
7977
7978 * target.c (memory_xfer_partial): Fix length arg in call to
7979 breakpoint_xfer_memory.
7980
d7b30f67
SDJ
79812014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
7982
7983 PR tdep/16397
7984 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
7985 number comes after the + or - signs. Adjust length of register
7986 name to be extracted.
7987
8838afaf
TT
79882014-02-20 Tom Tromey <tromey@redhat.com>
7989
7990 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
7991 (ada_varobj_ops): Mark "extern".
7992
05227d14
TT
79932014-02-20 Tom Tromey <tromey@redhat.com>
7994
7995 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
7996
1254eefc
DE
79972014-02-20 Doug Evans <xdje42@gmail.com>
7998
7999 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
8000 All callers updated.
8001 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
8002 All callers updated.
8003 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
8004 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
8005
adde2bff
DE
80062014-02-20 lin zuojian <manjian2006@gmail.com>
8007 Joel Brobecker <brobecker@adacore.com>
8008 Doug Evans <xdje42@gmail.com>
8009
8010 PR symtab/16581
8011 * dwarf2read.c (struct die_info): New member in_process.
8012 (reset_die_in_process): New function.
8013 (process_die): Set it at the start, reset when returning.
8014 (inherit_abstract_dies): Only call process_die if origin_child_die
8015 not already being processed.
8016
3be75f87
JB
80172014-02-20 Joel Brobecker <brobecker@adacore.com>
8018
8019 * windows-nat.c (handle_unload_dll): Add function documentation.
8020 (do_initial_windows_stuff): Add comment explaining why we wait
8021 until after inferior initialization has finished before
8022 processing all DLLs.
8023
47f7ffdb
JB
80242014-02-20 Joel Brobecker <brobecker@adacore.com>
8025
8026 * windows-nat.c (get_module_name): Delete.
8027 (windows_get_exec_module_filename): New function, mostly
8028 inspired from get_module_name.
8029 (windows_pid_to_exec_file): Replace call to get_module_name
8030 by call to windows_get_exec_module_filename.
8031
1cd9feab
JB
80322014-02-20 Joel Brobecker <brobecker@adacore.com>
8033
8034 * windows-nat.c (handle_load_dll): Rewrite this function's
8035 introductory comment. Remove code using get_module_name
8036 to get the DLL's name.
8037
ea39ad35
JB
80382014-02-20 Joel Brobecker <brobecker@adacore.com>
8039
8040 * windows-nat.c (get_windows_debug_event): Ignore
8041 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
8042 if windows_initialization_done == 0.
8043 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
8044 Adjust implementation to always load all DLLs.
8045 (do_initial_windows_stuff): Replace call to
8046 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
8047
95060284
JB
80482014-02-20 Joel Brobecker <brobecker@adacore.com>
8049
8050 * windows-nat.c (_initialize_windows_nat): Deprecate the
8051 "dll-symbols" command. Turn the "add-shared-symbol-files"
8052 and "assf" aliases into commands, and deprecate them as well.
8053 * NEWS: Add entry explaining that "dll-symbols" and its two
8054 aliases are now deprecated.
8055
8d4fdb12
JB
80562014-02-20 Joel Brobecker <brobecker@adacore.com>
8057
8058 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
8059 new-line in debug string. Remove trailing spaces.
8060
1b281443
SS
80612014-02-19 Stan Shebs <stan@codesourcery.com>
8062
8063 * darwin-nat.c (darwin_xfer_partial): Fix return type.
8064
f7bd0f78
SC
80652014-02-19 Siva Chandra Reddy <sivachandra@google.com>
8066
8067 * NEWS: Add entry for the new feature
8068 * python/py-value.c (valpy_binop): Call value_x_binop for struct
8069 and class values.
8070
399ebc3d
SS
80712014-02-19 Stan Shebs <stan@codesourcery.com>
8072
8073 * MAINTAINERS: List Yao Qi as nios2 maintainer.
8074
c658158d
PA
80752014-02-19 Pedro Alves <palves@redhat.com>
8076
8077 * common/ptid.h (struct ptid): Mention that process_stratum
8078 targets should prefer ptid.lwp.
8079
ba348170
PA
80802014-02-19 Pedro Alves <palves@redhat.com>
8081
8082 * remote.c (remote_thread_alive, write_ptid, read_ptid)
8083 (read_ptid, remote_newthread_step, remote_threads_extra_info)
8084 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
8085 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
8086 store remote thread ids rather than ptid.tid.
8087 (_initialize_remote): Adjust.
8088
ac01945b
TT
80892014-02-19 Tom Tromey <tromey@redhat.com>
8090
8091 * target.c (target_get_unwinder): Rewrite.
8092 (target_get_tailcall_unwinder): Rewrite.
8093 * record-btrace.c (record_btrace_to_get_unwinder): New function.
8094 (record_btrace_to_get_tailcall_unwinder): New function.
8095 (init_record_btrace_ops): Update.
8096 * target.h (struct target_ops) <to_get_unwinder,
8097 to_get_tailcall_unwinder>: Now function pointers. Use
8098 TARGET_DEFAULT_RETURN.
8099
8476dc92
TT
81002014-02-19 Tom Tromey <tromey@redhat.com>
8101
8102 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
8103 argument.
8104 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
8105
c0eca49f
TT
81062014-02-19 Tom Tromey <tromey@redhat.com>
8107
8108 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
8109 directly.
8110 * target-delegates.c: Rebuild.
8111 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
8112 TARGET_DEFAULT_FUNC.
8113 * target.c (default_target_decr_pc_after_break): Rename from
8114 forward_target_decr_pc_after_break. Simplify.
8115 (target_decr_pc_after_break): Rely on delegation.
8116
596b6b39
TT
81172014-02-19 Tom Tromey <tromey@redhat.com>
8118
8119 * target.c (update_current_target): Do not INHERIT to_doc or
8120 to_magic. Do not de_fault to_open or to_close.
8121
b427c1bc
TT
81222014-02-19 Tom Tromey <tromey@redhat.com>
8123
8124 * gcore.h (objfile_find_memory_regions): Declare.
8125 * gcore.c (objfile_find_memory_regions): No longer static. Add
8126 "self" argument.
8127 (_initialize_gcore): Don't call exec_set_find_memory_regions.
8128 * exec.c: Include gcore.h.
8129 (exec_set_find_memory_regions): Remove.
8130 (exec_find_memory_regions): Remove.
8131 (exec_do_find_memory_regions): Remove.
8132 (init_exec_ops): Update.
8133 * defs.h (exec_set_find_memory_regions): Remove.
8134
9b144037
TT
81352014-02-19 Tom Tromey <tromey@redhat.com>
8136
8137 * target-delegates.c: Rebuild.
8138 * target.h (struct target_ops) <to_extra_thread_info,
8139 to_thread_name, to_pid_to_exec_file, to_get_section_table,
8140 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
8141 not 0, in TARGET_DEFAULT_RETURN.
8142
555bbdeb
TT
81432014-02-19 Tom Tromey <tromey@redhat.com>
8144
8145 * target.c (complete_target_initialization): Remove casts. Use
8146 return_zero_has_execution.
8147 (return_zero): Add "ignore" argument.
8148 (return_zero_has_execution): New function.
8149 (init_dummy_target): Remove casts. Use
8150 return_zero_has_execution.
8151
be4ddd36
TT
81522014-02-19 Tom Tromey <tromey@redhat.com>
8153
8154 * target.c (update_current_target): Update comments. Do not
8155 INHERIT to_stratum.
8156
2117c711
TT
81572014-02-19 Tom Tromey <tromey@redhat.com>
8158
8159 * arm-linux-nat.c (arm_linux_read_description): Delegate when
8160 needed.
8161 * corelow.c (core_read_description): Delegate when needed.
8162 * remote.c (remote_read_description): Delegate when needed.
8163 * target-delegates.c: Rebuild.
8164 * target.c (target_read_description): Rewrite.
8165 * target.h (struct target_ops) <to_read_description>: Update
8166 comment. Use TARGET_DEFAULT_RETURN.
8167
e88ef65c
TT
81682014-02-19 Tom Tromey <tromey@redhat.com>
8169
8170 * target-delegates.c: Rebuild.
8171 * target.c (update_current_target): Don't inherit or default
8172 to_can_run.
8173 (find_default_run_target): Check against delegate_can_run.
8174 * target.h (struct target_ops) <to_can_run>: Use
8175 TARGET_DEFAULT_RETURN.
8176
86a0854a
TT
81772014-02-19 Tom Tromey <tromey@redhat.com>
8178
8179 * target-delegates.c: Rebuild.
8180 * target.c (target_disconnect): Unconditionally delegate.
8181 * target.h (struct target_ops) <to_disconnect>: Use
8182 TARGET_DEFAULT_NORETURN.
8183
ee97f592
TT
81842014-02-19 Tom Tromey <tromey@redhat.com>
8185
8186 * record.c (record_stop): Unconditionally delegate.
8187 * target-delegates.c: Rebuild.
8188 * target.c (target_stop_recording): Unconditionally delegate.
8189 * target.h (struct target_ops) <to_stop_recording>: Use
8190 TARGET_DEFAULT_IGNORE.
8191
6dc7fcf4
TT
81922014-02-19 Tom Tromey <tromey@redhat.com>
8193
8194 * target-delegates.c: Rebuild.
8195 * target.c (target_enable_btrace): Unconditionally delegate.
8196 * target.h (struct target_ops) <to_enable_btrace>: Use
8197 TARGET_DEFAULT_NORETURN.
8198
eb5b20d4
TT
81992014-02-19 Tom Tromey <tromey@redhat.com>
8200
8201 * target-delegates.c: Rebuild.
8202 * target.c (target_read_btrace): Unconditionally delegate.
8203 * target.h (struct target_ops) <to_read_btrace>: Use
8204 TARGET_DEFAULT_NORETURN.
8205
9ace480d
TT
82062014-02-19 Tom Tromey <tromey@redhat.com>
8207
8208 * target-delegates.c: Rebuild.
8209 * target.c (target_teardown_btrace): Unconditionally delegate.
8210 * target.h (struct target_ops) <to_teardown_btrace>: Use
8211 TARGET_DEFAULT_NORETURN.
8212
8dc292d3
TT
82132014-02-19 Tom Tromey <tromey@redhat.com>
8214
8215 * target-delegates.c: Rebuild.
8216 * target.c (target_disable_btrace): Unconditionally delegate.
8217 * target.h (struct target_ops) <to_disable_btrace>: Use
8218 TARGET_DEFAULT_NORETURN.
8219
58a5184e
TT
82202014-02-19 Tom Tromey <tromey@redhat.com>
8221
8222 * target-delegates.c: Rebuild.
8223 * target.c (default_search_memory): New function.
8224 (simple_search_memory): Update comment.
8225 (target_search_memory): Unconditionally delegate.
8226 * target.h (struct target_ops) <to_search_memory>: Use
8227 TARGET_DEFAULT_FUNC.
8228
8de71aab
TT
82292014-02-19 Tom Tromey <tromey@redhat.com>
8230
8231 * auxv.c (default_auxv_parse): No longer static.
8232 (target_auxv_parse): Unconditionally delegate.
8233 * auxv.h (default_auxv_parse): Declare.
8234 * target-delegates.c: Rebuild.
8235 * target.c: Include auxv.h.
8236 * target.h (struct target_ops) <to_auxv_parse>: Use
8237 TARGET_DEFAULT_FUNC.
8238
6b2c5a57
TT
82392014-02-19 Tom Tromey <tromey@redhat.com>
8240
8241 * target-delegates.c: Rebuild.
8242 * target.c (target_memory_map): Unconditionally delegate.
8243 * target.h (struct target_ops) <to_memory_map>: Use
8244 TARGET_DEFAULT_RETURN.
8245
cbffc065
TT
82462014-02-19 Tom Tromey <tromey@redhat.com>
8247
8248 * target-delegates.c: Rebuild.
8249 * target.c (target_thread_alive): Unconditionally delegate.
8250 * target.h (struct target_ops) <to_thread_alive>: Use
8251 TARGET_DEFAULT_RETURN.
8252
f09e2107
TT
82532014-02-19 Tom Tromey <tromey@redhat.com>
8254
8255 * target-delegates.c: Rebuild.
8256 * target.c (target_save_record): Unconditionally delegate.
8257 * target.h (struct target_ops) <to_save_record>: Use
8258 TARGET_DEFAULT_NORETURN.
8259
07366925
TT
82602014-02-19 Tom Tromey <tromey@redhat.com>
8261
8262 * target-delegates.c: Rebuild.
8263 * target.c (target_delete_record): Unconditionally delegate.
8264 * target.h (struct target_ops) <to_delete_record>: Use
8265 TARGET_DEFAULT_NORETURN.
8266
dd2e9d25
TT
82672014-02-19 Tom Tromey <tromey@redhat.com>
8268
8269 * target-delegates.c: Rebuild.
8270 * target.c (target_record_is_replaying): Unconditionally
8271 delegate.
8272 * target.h (struct target_ops) <to_record_is_replaying>: Use
8273 TARGET_DEFAULT_RETURN.
8274
671e76cc
TT
82752014-02-19 Tom Tromey <tromey@redhat.com>
8276
8277 * target-delegates.c: Rebuild.
8278 * target.c (target_goto_record_begin): Unconditionally delegate.
8279 * target.h (struct target_ops) <to_goto_record_begin>: Use
8280 TARGET_DEFAULT_NORETURN.
8281
e9179bb3
TT
82822014-02-19 Tom Tromey <tromey@redhat.com>
8283
8284 * target-delegates.c: Rebuild.
8285 * target.c (target_goto_record_end): Unconditionally delegate.
8286 * target.h (struct target_ops) <to_goto_record_end>: Use
8287 TARGET_DEFAULT_NORETURN.
8288
05969c84
TT
82892014-02-19 Tom Tromey <tromey@redhat.com>
8290
8291 * target-delegates.c: Rebuild.
8292 * target.c (target_goto_record): Unconditionally delegate.
8293 * target.h (struct target_ops) <to_goto_record>: Use
8294 TARGET_DEFAULT_NORETURN.
8295
3679abfa
TT
82962014-02-19 Tom Tromey <tromey@redhat.com>
8297
8298 * target-delegates.c: Rebuild.
8299 * target.c (target_insn_history): Unconditionally delegate.
8300 * target.h (struct target_ops) <to_insn_history>: Use
8301 TARGET_DEFAULT_NORETURN.
8302
8444ab58
TT
83032014-02-19 Tom Tromey <tromey@redhat.com>
8304
8305 * target-delegates.c: Rebuild.
8306 * target.c (target_insn_history_from): Unconditionally delegate.
8307 * target.h (struct target_ops) <to_insn_history_from>: Use
8308 TARGET_DEFAULT_NORETURN.
8309
c29302cc
TT
83102014-02-19 Tom Tromey <tromey@redhat.com>
8311
8312 * target-delegates.c: Rebuild.
8313 * target.c (target_insn_history_range): Unconditionally delegate.
8314 * target.h (struct target_ops) <to_insn_history_range>: Use
8315 TARGET_DEFAULT_NORETURN.
8316
170049d4
TT
83172014-02-19 Tom Tromey <tromey@redhat.com>
8318
8319 * target-delegates.c: Rebuild.
8320 * target.c (target_call_history): Unconditionally delegate.
8321 * target.h (struct target_ops) <to_call_history>: Use
8322 TARGET_DEFAULT_NORETURN.
8323
16fc27d6
TT
83242014-02-19 Tom Tromey <tromey@redhat.com>
8325
8326 * target-delegates.c: Rebuild.
8327 * target.c (target_call_history_from): Unconditionally delegate.
8328 * target.h (struct target_ops) <to_call_history_from>: Use
8329 TARGET_DEFAULT_NORETURN.
8330
115d9817
TT
83312014-02-19 Tom Tromey <tromey@redhat.com>
8332
8333 * target-delegates.c: Rebuild.
8334 * target.c (target_call_history_range): Unconditionally delegate.
8335 * target.h (struct target_ops) <to_call_history_range>: Use
8336 TARGET_DEFAULT_NORETURN.
8337
eb276a6b
TT
83382014-02-19 Tom Tromey <tromey@redhat.com>
8339
8340 * target-delegates.c: Rebuild.
8341 * target.c (target_verify_memory): Unconditionally delegate.
8342 * target.h (struct target_ops) <to_verify_memory>: Use
8343 TARGET_DEFAULT_NORETURN.
8344
9e538d0d
TT
83452014-02-19 Tom Tromey <tromey@redhat.com>
8346
8347 * target-delegates.c: Rebuild.
8348 * target.c (target_core_of_thread): Unconditionally delegate.
8349 * target.h (struct target_ops) <to_core_of_thread>: Use
8350 TARGET_DEFAULT_RETURN.
8351
f6fb2925
TT
83522014-02-19 Tom Tromey <tromey@redhat.com>
8353
8354 * target-delegates.c: Rebuild.
8355 * target.c (target_flash_done): Unconditionally delegate.
8356 * target.h (struct target_ops) <to_flash_done>: Use
8357 TARGET_DEFAULT_NORETURN.
8358
e8a6c6ac
TT
83592014-02-19 Tom Tromey <tromey@redhat.com>
8360
8361 * target-delegates.c: Rebuild.
8362 * target.c (target_flash_erase): Unconditionally delegate.
8363 * target.h (struct target_ops) <to_flash_erase>: Use
8364 TARGET_DEFAULT_NORETURN.
8365
7e35c012
TT
83662014-02-19 Tom Tromey <tromey@redhat.com>
8367
8368 * target-delegates.c: Rebuild.
8369 * target.c (target_get_section_table): Unconditionally delegate.
8370 * target.h (struct target_ops) <to_get_section_table>: Use
8371 TARGET_DEFAULT_RETURN.
8372
770234d3
TT
83732014-02-19 Tom Tromey <tromey@redhat.com>
8374
8375 * target-delegates.c: Rebuild.
8376 * target.c (target_pid_to_str): Unconditionally delegate.
8377 (init_dummy_target): Don't initialize to_pid_to_str.
8378 (default_pid_to_str): Rename from dummy_pid_to_str.
8379 * target.h (struct target_ops) <to_pid_to_str>: Use
8380 TARGET_DEFAULT_FUNC.
8381
09b0dc2b
TT
83822014-02-19 Tom Tromey <tromey@redhat.com>
8383
8384 * target-delegates.c: Rebuild.
8385 * target.c (target_find_new_threads): Unconditionally delegate.
8386 * target.h (struct target_ops) <to_find_new_threads>: Use
8387 TARGET_DEFAULT_RETURN.
8388
7d4f8efa
TT
83892014-02-19 Tom Tromey <tromey@redhat.com>
8390
8391 * target-delegates.c: Rebuild.
8392 * target.c (target_program_signals): Unconditionally delegate.
8393 * target.h (struct target_ops) <to_program_signals>: Use
8394 TARGET_DEFAULT_IGNORE.
8395
035cad7f
TT
83962014-02-19 Tom Tromey <tromey@redhat.com>
8397
8398 * target-delegates.c: Rebuild.
8399 * target.c (target_pass_signals): Unconditionally delegate.
8400 * target.h (struct target_ops) <to_pass_signals>: Use
8401 TARGET_DEFAULT_IGNORE.
8402
8d657035
TT
84032014-02-19 Tom Tromey <tromey@redhat.com>
8404
8405 * target-delegates.c: Rebuild.
8406 * target.c (default_mourn_inferior): New function.
8407 (target_mourn_inferior): Unconditionally delegate.
8408 * target.h (struct target_ops) <to_mourn_inferior>: Use
8409 TARGET_DEFAULT_FUNC.
8410
098dba18
TT
84112014-02-19 Tom Tromey <tromey@redhat.com>
8412
8413 * target-delegates.c: Rebuild.
8414 * target.c (default_follow_fork): New function.
8415 (target_follow_fork): Unconditionally delegate.
8416 * target.h (struct target_ops) <to_follow_fork>: Use
8417 TARGET_DEFAULT_FUNC.
8418
423a4807
TT
84192014-02-19 Tom Tromey <tromey@redhat.com>
8420
8421 * target-delegates.c: Rebuild.
8422 * target.c (target_kill): Unconditionally delegate.
8423 * target.h (struct target_ops) <to_kill>: Use
8424 TARGET_DEFAULT_NORETURN.
8425
6c7e5e5c
TT
84262014-02-19 Tom Tromey <tromey@redhat.com>
8427
8428 * target-delegates.c: Rebuild.
8429 * target.c (target_masked_watch_num_registers): Unconditionally
8430 delegate.
8431 * target.h (struct target_ops) <to_masked_watch_num_registers>:
8432 Use TARGET_DEFAULT_RETURN.
8433
8b1c364c
TT
84342014-02-19 Tom Tromey <tromey@redhat.com>
8435
8436 * target-delegates.c: Rebuild.
8437 * target.c (target_remove_mask_watchpoint): Unconditionally
8438 delegate.
8439 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
8440 TARGET_DEFAULT_RETURN.
8441
cd4ae029
TT
84422014-02-19 Tom Tromey <tromey@redhat.com>
8443
8444 * target-delegates.c: Rebuild.
8445 * target.c (target_insert_mask_watchpoint): Unconditionally
8446 delegate.
8447 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
8448 TARGET_DEFAULT_RETURN.
8449
a134316b
TT
84502014-02-19 Tom Tromey <tromey@redhat.com>
8451
8452 * target-delegates.c: Rebuild.
8453 * target.c (target_ranged_break_num_registers): Unconditionally
8454 delegate.
8455 * target.h (struct target_ops) <to_ranged_break_num_registers>:
8456 Use TARGET_DEFAULT_RETURN.
8457
ad5989bd
TT
84582014-02-19 Tom Tromey <tromey@redhat.com>
8459
8460 * target-delegates.c: Rebuild.
8461 * target.c (target_fetch_registers): Unconditionally delegate.
8462 * target.h (struct target_ops) <to_fetch_registers>: Use
8463 TARGET_DEFAULT_NORETURN.
8464
46ee7e8d
TT
84652014-02-19 Tom Tromey <tromey@redhat.com>
8466
8467 * target-delegates.c: Rebuild.
8468 * target.c (update_current_target): Don't inherit or default
8469 to_stop.
8470 * target.h (struct target_ops) <to_stop>: Use
8471 TARGET_DEFAULT_IGNORE.
8472
843f59ed
TT
84732014-02-19 Tom Tromey <tromey@redhat.com>
8474
8475 * target-delegates.c: Rebuild.
8476 * target.c (update_current_target): Don't inherit or default
8477 to_can_run_breakpoint_commands.
8478 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
8479 Use TARGET_DEFAULT_RETURN.
8480
ccfde2a0
TT
84812014-02-19 Tom Tromey <tromey@redhat.com>
8482
8483 * target-delegates.c: Rebuild.
8484 * target.c (update_current_target): Don't inherit or default
8485 to_supports_evaluation_of_breakpoint_conditions.
8486 * target.h (struct target_ops)
8487 <to_supports_evaluation_of_breakpoint_conditions>: Use
8488 TARGET_DEFAULT_RETURN.
8489
0de91722
TT
84902014-02-19 Tom Tromey <tromey@redhat.com>
8491
8492 * target-delegates.c: Rebuild.
8493 * target.c (update_current_target): Don't inherit or default
8494 to_augmented_libraries_svr4_read.
8495 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8496 Use TARGET_DEFAULT_RETURN.
8497
9a7d8b48
TT
84982014-02-19 Tom Tromey <tromey@redhat.com>
8499
8500 * target-delegates.c: Rebuild.
8501 * target.c (update_current_target): Don't inherit or default
8502 to_can_use_agent.
8503 * target.h (struct target_ops) <to_can_use_agent>: Use
8504 TARGET_DEFAULT_RETURN.
8505
d9db5b21
TT
85062014-02-19 Tom Tromey <tromey@redhat.com>
8507
8508 * target-delegates.c: Rebuild.
8509 * target.c (update_current_target): Don't inherit or default
8510 to_use_agent.
8511 * target.h (struct target_ops) <to_use_agent>: Use
8512 TARGET_DEFAULT_NORETURN.
8513
92155eeb
TT
85142014-02-19 Tom Tromey <tromey@redhat.com>
8515
8516 * target-delegates.c: Rebuild.
8517 * target.c (update_current_target): Don't inherit or default
8518 to_traceframe_info.
8519 (return_null): Remove.
8520 * target.h (struct target_ops) <to_traceframe_info>: Use
8521 TARGET_DEFAULT_RETURN.
8522
d6522a22
TT
85232014-02-19 Tom Tromey <tromey@redhat.com>
8524
8525 * target-delegates.c: Rebuild.
8526 * target.c (update_current_target): Don't inherit or default
8527 to_static_tracepoint_markers_by_strid.
8528 * target.h (struct target_ops)
8529 <to_static_tracepoint_markers_by_strid>: Use
8530 TARGET_DEFAULT_NORETURN.
8531
4c3e4425
TT
85322014-02-19 Tom Tromey <tromey@redhat.com>
8533
8534 * target-delegates.c: Rebuild.
8535 * target.c (update_current_target): Don't inherit or default
8536 to_static_tracepoint_marker_at.
8537 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
8538 Use TARGET_DEFAULT_RETURN.
8539
dcd6917f
TT
85402014-02-19 Tom Tromey <tromey@redhat.com>
8541
8542 * target-delegates.c: Rebuild.
8543 * target.c (update_current_target): Don't inherit or default
8544 to_set_permissions.
8545 * target.h (struct target_ops) <to_set_permissions>: Use
8546 TARGET_DEFAULT_IGNORE.
8547
22bcceee
TT
85482014-02-19 Tom Tromey <tromey@redhat.com>
8549
8550 * target-delegates.c: Rebuild.
8551 * target.c (update_current_target): Don't inherit or default
8552 to_get_tib_address.
8553 * target.h (struct target_ops) <to_get_tib_address>: Use
8554 TARGET_DEFAULT_NORETURN.
8555
8586ccaa
TT
85562014-02-19 Tom Tromey <tromey@redhat.com>
8557
8558 * target-delegates.c: Rebuild.
8559 * target.c (update_current_target): Don't inherit or default
8560 to_set_trace_notes.
8561 * target.h (struct target_ops) <to_set_trace_notes>: Use
8562 TARGET_DEFAULT_RETURN.
8563
91df8d1d
TT
85642014-02-19 Tom Tromey <tromey@redhat.com>
8565
8566 * target-delegates.c: Rebuild.
8567 * target.c (update_current_target): Don't initialize
8568 to_set_trace_buffer_size.
8569 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
8570 TARGET_DEFAULT_IGNORE.
8571
8d526939
TT
85722014-02-19 Tom Tromey <tromey@redhat.com>
8573
8574 * target-delegates.c: Rebuild.
8575 * target.c (update_current_target): Don't inherit or default
8576 to_set_circular_trace_buffer.
8577 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
8578 TARGET_DEFAULT_IGNORE.
8579
0bcfeddf
TT
85802014-02-19 Tom Tromey <tromey@redhat.com>
8581
8582 * target-delegates.c: Rebuild.
8583 * target.c (update_current_target): Don't inherit or default
8584 to_set_disconnected_tracing.
8585 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
8586 TARGET_DEFAULT_IGNORE.
8587
9249843f
TT
85882014-02-19 Tom Tromey <tromey@redhat.com>
8589
8590 * target-delegates.c: Rebuild.
8591 * target.c (update_current_target): Don't inherit or default
8592 to_get_min_fast_tracepoint_insn_len.
8593 (return_minus_one): Remove.
8594 * target.h (struct target_ops)
8595 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
8596
ace92e7d
TT
85972014-02-19 Tom Tromey <tromey@redhat.com>
8598
8599 * target-delegates.c: Rebuild.
8600 * target.c (update_current_target): Don't inherit or default
8601 to_get_raw_trace_data.
8602 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
8603 TARGET_DEFAULT_NORETURN.
8604
08120467
TT
86052014-02-19 Tom Tromey <tromey@redhat.com>
8606
8607 * target-delegates.c: Rebuild.
8608 * target.c (update_current_target): Don't inherit or default
8609 to_upload_trace_state_variables.
8610 * target.h (struct target_ops) <to_upload_trace_state_variables>:
8611 Use TARGET_DEFAULT_RETURN.
8612
1e949b00
TT
86132014-02-19 Tom Tromey <tromey@redhat.com>
8614
8615 * target-delegates.c: Rebuild.
8616 * target.c (update_current_target): Don't inherit or default
8617 to_upload_tracepoints.
8618 * target.h (struct target_ops) <to_upload_tracepoints>: Use
8619 TARGET_DEFAULT_RETURN.
8620
a2e6c147
TT
86212014-02-19 Tom Tromey <tromey@redhat.com>
8622
8623 * target-delegates.c: Rebuild.
8624 * target.c (update_current_target): Don't inherit or default
8625 to_save_trace_data.
8626 * target.h (struct target_ops) <to_save_trace_data>: Use
8627 TARGET_DEFAULT_NORETURN.
8628
959bcd0b
TT
86292014-02-19 Tom Tromey <tromey@redhat.com>
8630
8631 * target-delegates.c: Rebuild.
8632 * target.c (update_current_target): Don't inherit or default
8633 to_get_trace_state_variable_value.
8634 * target.h (struct target_ops)
8635 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
8636
afc94e66
TT
86372014-02-19 Tom Tromey <tromey@redhat.com>
8638
8639 * target-delegates.c: Rebuild.
8640 * target.c (update_current_target): Don't inherit or default
8641 to_trace_find.
8642 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
8643
e51c07ea
TT
86442014-02-19 Tom Tromey <tromey@redhat.com>
8645
8646 * target-delegates.c: Rebuild.
8647 * target.c (update_current_target): Don't inherit or default
8648 to_trace_stop.
8649 * target.h (struct target_ops) <to_trace_stop>: Use
8650 TARGET_DEFAULT_NORETURN.
8651
6fea14cd
TT
86522014-02-19 Tom Tromey <tromey@redhat.com>
8653
8654 * target-delegates.c: Rebuild.
8655 * target.c (update_current_target): Don't inherit or default
8656 to_get_tracepoint_status.
8657 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
8658 TARGET_DEFAULT_NORETURN.
8659
4072d4ff
TT
86602014-02-19 Tom Tromey <tromey@redhat.com>
8661
8662 * target-delegates.c: Rebuild.
8663 * target.c (update_current_target): Don't inherit or default
8664 to_get_trace_status.
8665 * target.h (struct target_ops) <to_get_trace_status>: Use
8666 TARGET_DEFAULT_RETURN.
8667
25da2e80
TT
86682014-02-19 Tom Tromey <tromey@redhat.com>
8669
8670 * target-delegates.c: Rebuild.
8671 * target.c (update_current_target): Don't inherit or default
8672 to_trace_start.
8673 * target.h (struct target_ops) <to_trace_start>: Use
8674 TARGET_DEFAULT_NORETURN.
8675
86dd181d
TT
86762014-02-19 Tom Tromey <tromey@redhat.com>
8677
8678 * target-delegates.c: Rebuild.
8679 * target.c (update_current_target): Don't inherit or default
8680 to_trace_set_readonly_regions.
8681 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
8682 Use TARGET_DEFAULT_NORETURN.
8683
05c41993
TT
86842014-02-19 Tom Tromey <tromey@redhat.com>
8685
8686 * target-delegates.c: Rebuild.
8687 * target.c (update_current_target): Don't inherit or default
8688 to_disable_tracepoint.
8689 * target.h (struct target_ops) <to_disable_tracepoint>: Use
8690 TARGET_DEFAULT_NORETURN.
8691
151f70f1
TT
86922014-02-19 Tom Tromey <tromey@redhat.com>
8693
8694 * target-delegates.c: Rebuild.
8695 * target.c (update_current_target): Don't inherit or default
8696 to_enable_tracepoint.
8697 * target.h (struct target_ops) <to_enable_tracepoint>: Use
8698 TARGET_DEFAULT_NORETURN.
8699
94eb98b9
TT
87002014-02-19 Tom Tromey <tromey@redhat.com>
8701
8702 * target-delegates.c: Rebuild.
8703 * target.c (update_current_target): Don't inherit or default
8704 to_download_trace_state_variable.
8705 * target.h (struct target_ops) <to_download_trace_state_variable>:
8706 Use TARGET_DEFAULT_NORETURN.
8707
719acc4a
TT
87082014-02-19 Tom Tromey <tromey@redhat.com>
8709
8710 * target-delegates.c: Rebuild.
8711 * target.c (update_current_target): Don't inherit or default
8712 to_can_download_tracepoint.
8713 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
8714 TARGET_DEFAULT_RETURN.
8715
9a980a22
TT
87162014-02-19 Tom Tromey <tromey@redhat.com>
8717
8718 * target-delegates.c: Rebuild.
8719 * target.c (update_current_target): Don't inherit or default
8720 to_download_tracepoint.
8721 * target.h (struct target_ops) <to_download_tracepoint>: Use
8722 TARGET_DEFAULT_NORETURN.
8723
5536135b
TT
87242014-02-19 Tom Tromey <tromey@redhat.com>
8725
8726 * target-delegates.c: Rebuild.
8727 * target.c (update_current_target): Don't inherit or default
8728 to_trace_init.
8729 * target.h (struct target_ops) <to_trace_init>: Use
8730 TARGET_DEFAULT_RETURN.
8731
9409d39e
TT
87322014-02-19 Tom Tromey <tromey@redhat.com>
8733
8734 * target-delegates.c: Rebuild.
8735 * target.c (update_current_target): Don't inherit or default
8736 to_supports_string_tracing.
8737 * target.h (struct target_ops) <to_supports_string_tracing>: Use
8738 TARGET_DEFAULT_RETURN.
8739
aab1b22d
TT
87402014-02-19 Tom Tromey <tromey@redhat.com>
8741
8742 * target-delegates.c: Rebuild.
8743 * target.c (update_current_target): Don't inherit or default
8744 to_supports_enable_disable_tracepoint.
8745 * target.h (struct target_ops)
8746 <to_supports_enable_disable_tracepoint>: Use
8747 TARGET_DEFAULT_RETURN.
8748
a7304748
TT
87492014-02-19 Tom Tromey <tromey@redhat.com>
8750
8751 * target-delegates.c: Rebuild.
8752 * target.c (update_current_target): Don't inherit or default
8753 to_supports_multi_process.
8754 * target.h (struct target_ops) <to_supports_multi_process>: Use
8755 TARGET_DEFAULT_RETURN.
8756
4229b31d
TT
87572014-02-19 Tom Tromey <tromey@redhat.com>
8758
8759 * target-delegates.c: Rebuild.
8760 * target.c (update_current_target): Don't inherit or default
8761 to_get_ada_task_ptid.
8762 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
8763 TARGET_DEFAULT_FUNC.
8764
43eba180
TT
87652014-02-19 Tom Tromey <tromey@redhat.com>
8766
8767 * target-delegates.c: Rebuild.
8768 * target.c (update_current_target): Don't inherit or default
8769 to_thread_architecture.
8770 * target.h (struct target_ops) <to_thread_architecture>: Use
8771 TARGET_DEFAULT_FUNC.
8772
fe31bf5b
TT
87732014-02-19 Tom Tromey <tromey@redhat.com>
8774
8775 * target-delegates.c: Rebuild.
8776 * target.c (update_current_target): Don't inherit or default
8777 to_execution_direction.
8778 * target.h (struct target_ops) <to_execution_direction>: Use
8779 TARGET_DEFAULT_FUNC.
8780
53e1cfc7
TT
87812014-02-19 Tom Tromey <tromey@redhat.com>
8782
8783 * target-delegates.c: Rebuild.
8784 * target.c (update_current_target): Don't inherit or default
8785 to_can_execute_reverse.
8786 * target.h (struct target_ops) <to_can_execute_reverse>: Use
8787 TARGET_DEFAULT_RETURN.
8788 (target_can_execute_reverse): Unconditionally delegate.
8789
9bb9d61d
TT
87902014-02-19 Tom Tromey <tromey@redhat.com>
8791
8792 * target-delegates.c: Rebuild.
8793 * target.c (update_current_target): Don't inherit or default
8794 to_goto_bookmark.
8795 (dummy_goto_bookmark): Remove.
8796 (init_dummy_target): Don't inherit or default to_goto_bookmark.
8797 * target.h (struct target_ops) <to_goto_bookmark>: Use
8798 TARGET_DEFAULT_NORETURN.
8799
3dbafbbb
TT
88002014-02-19 Tom Tromey <tromey@redhat.com>
8801
8802 * target-delegates.c: Rebuild.
8803 * target.c (update_current_target): Don't inherit or default
8804 to_get_bookmark.
8805 (dummy_get_bookmark): Remove.
8806 (init_dummy_target): Don't inherit or default to_get_bookmark.
8807 * target.h (struct target_ops) <to_get_bookmark>: Use
8808 TARGET_DEFAULT_NORETURN
8809
16f796b1
TT
88102014-02-19 Tom Tromey <tromey@redhat.com>
8811
8812 * target-delegates.c: Rebuild.
8813 * target.c (update_current_target): Don't inherit or default
8814 to_make_corefile_notes.
8815 (init_dummy_target): Don't initialize to_make_corefile_notes.
8816 * target.h (struct target_ops) <to_make_corefile_notes>: Use
8817 TARGET_DEFAULT_FUNC.
8818
0b5a2719
TT
88192014-02-19 Tom Tromey <tromey@redhat.com>
8820
8821 * target-delegates.c: Rebuild.
8822 * target.c (update_current_target): Don't inherit or default
8823 to_find_memory_regions.
8824 (init_dummy_target): Don't initialize to_find_memory_regions.
8825 * target.h (struct target_ops) <to_find_memory_regions>: Use
8826 TARGET_DEFAULT_FUNC.
8827
d9cb0195
TT
88282014-02-19 Tom Tromey <tromey@redhat.com>
8829
8830 * target-delegates.c: Rebuild.
8831 * target.c (update_current_target): Don't inherit or default
8832 to_log_command.
8833 * target.h (struct target_ops) <to_log_command>: Use
8834 TARGET_DEFAULT_IGNORE.
8835 (target_log_command): Unconditionally delegate.
8836
830ca330
TT
88372014-02-19 Tom Tromey <tromey@redhat.com>
8838
8839 * target-delegates.c: Rebuild.
8840 * target.c (update_current_target): Don't inherit or default
8841 to_pid_to_exec_file.
8842 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
8843 TARGET_DEFAULT_RETURN.
8844
825828fc
TT
88452014-02-19 Tom Tromey <tromey@redhat.com>
8846
8847 * target-delegates.c: Rebuild.
8848 * target.c (update_current_target): Don't inherit or default
8849 to_thread_name.
8850 (target_thread_name): Unconditionally delegate.
8851 * target.h (struct target_ops) <to_thread_name>: Use
8852 TARGET_DEFAULT_RETURN.
8853
4a7e6dda
TT
88542014-02-19 Tom Tromey <tromey@redhat.com>
8855
8856 * target-delegates.c: Rebuild.
8857 * target.c (update_current_target): Don't inherit or default
8858 to_extra_thread_info.
8859 * target.h (struct target_ops) <to_extra_thread_info>: Use
8860 TARGET_DEFAULT_RETURN.
8861
0db88c1d
TT
88622014-02-19 Tom Tromey <tromey@redhat.com>
8863
8864 * target-delegates.c: Rebuild.
8865 * target.c (update_current_target): Don't inherit or default
8866 to_has_exited.
8867 * target.h (struct target_ops) <to_has_exited>: Use
8868 TARGET_DEFAULT_RETURN..
8869
6a9fa051
TT
88702014-02-19 Tom Tromey <tromey@redhat.com>
8871
8872 * target-delegates.c: Rebuild.
8873 * target.c (update_current_target): Don't inherit or default
8874 to_set_syscall_catchpoint.
8875 (return_one): Remove.
8876 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
8877 TARGET_DEFAULT_RETURN.
8878
62f64d7a
TT
88792014-02-19 Tom Tromey <tromey@redhat.com>
8880
8881 * target-delegates.c: Rebuild.
8882 * target.c (update_current_target): Don't inherit or default
8883 to_insert_exec_catchpoint.
8884 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8885 TARGET_DEFAULT_RETURN.
8886
cda0f38c
TT
88872014-01-08 Tom Tromey <tromey@redhat.com>
8888
8889 * target-delegates.c: Rebuild.
8890 * target.c (update_current_target): Don't inherit or default
8891 to_insert_exec_catchpoint.
8892 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8893 TARGET_DEFAULT_RETURN.
8894
95c3375e
TT
88952014-02-19 Tom Tromey <tromey@redhat.com>
8896
8897 * target-delegates.c: Rebuild.
8898 * target.c (update_current_target): Don't inherit or default
8899 to_remove_vfork_catchpoint.
8900 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
8901 TARGET_DEFAULT_RETURN.
8902
7e18a8dc
TT
89032014-02-19 Tom Tromey <tromey@redhat.com>
8904
8905 * target-delegates.c: Rebuild.
8906 * target.c (update_current_target): Don't inherit or default
8907 to_insert_vfork_catchpoint.
8908 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
8909 TARGET_DEFAULT_RETURN.
8910
e1a21fb7
TT
89112014-02-19 Tom Tromey <tromey@redhat.com>
8912
8913 * target-delegates.c: Rebuild.
8914 * target.c (update_current_target): Don't inherit or default
8915 to_remove_fork_catchpoint.
8916 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
8917 TARGET_DEFAULT_RETURN.
8918
5958ebeb
TT
89192014-02-19 Tom Tromey <tromey@redhat.com>
8920
8921 * target-delegates.c: Rebuild.
8922 * target.c (update_current_target): Don't inherit or default
8923 to_insert_fork_catchpoint.
8924 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
8925 TARGET_DEFAULT_RETURN.
8926
340ba4bf
TT
89272014-02-19 Tom Tromey <tromey@redhat.com>
8928
8929 * target-delegates.c: Rebuild.
8930 * target.c (update_current_target): Don't inherit or default
8931 to_post_startup_inferior.
8932 * target.h (struct target_ops) <to_post_startup_inferior>: Use
8933 TARGET_DEFAULT_IGNORE.
8934
7634da87
TT
89352014-02-19 Tom Tromey <tromey@redhat.com>
8936
8937 * target-delegates.c: Rebuild.
8938 * target.c (update_current_target): Don't inherit or default
8939 to_load.
8940 * target.h (struct target_ops) <to_load>: Use
8941 TARGET_DEFAULT_NORETURN.
8942
e19e919f
TT
89432014-02-19 Tom Tromey <tromey@redhat.com>
8944
8945 * target-delegates.c: Rebuild.
8946 * target.c (update_current_target): Don't inherit or default
8947 to_terminal_info.
8948 * target.h (struct target_ops) <to_terminal_info>: Use
8949 TARGET_DEFAULT_FUNC.
8950
c6ea8f79
TT
89512014-02-19 Tom Tromey <tromey@redhat.com>
8952
8953 * target-delegates.c: Rebuild.
8954 * target.c (update_current_target): Don't inherit or default
8955 to_terminal_save_ours.
8956 * target.h (struct target_ops) <to_terminal_save_ours>: Use
8957 TARGET_DEFAULT_IGNORE.
8958
e4a733f1
TT
89592014-02-19 Tom Tromey <tromey@redhat.com>
8960
8961 * target-delegates.c: Rebuild.
8962 * target.c (update_current_target): Don't inherit or default
8963 to_terminal_ours.
8964 * target.h (struct target_ops) <to_terminal_ours>: Use
8965 TARGET_DEFAULT_IGNORE.
8966
74fcbef9
TT
89672014-02-19 Tom Tromey <tromey@redhat.com>
8968
8969 * target-delegates.c: Rebuild.
8970 * target.c (update_current_target): Don't inherit or default
8971 to_terminal_ours_for_output.
8972 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
8973 TARGET_DEFAULT_IGNORE.
8974
ddeaacc9
TT
89752014-02-19 Tom Tromey <tromey@redhat.com>
8976
8977 * target-delegates.c: Rebuild.
8978 * target.c (update_current_target): Don't inherit or default
8979 to_terminal_inferior.
8980 * target.h (struct target_ops) <to_terminal_inferior>: Use
8981 TARGET_DEFAULT_IGNORE.
8982
0343661d
TT
89832014-02-19 Tom Tromey <tromey@redhat.com>
8984
8985 * target-delegates.c: Rebuild.
8986 * target.c (update_current_target): Don't inherit or default
8987 to_terminal_init.
8988 * target.h (struct target_ops) <to_terminal_init>: Use
8989 TARGET_DEFAULT_IGNORE.
8990
77cdffe9
TT
89912014-02-19 Tom Tromey <tromey@redhat.com>
8992
8993 * target-delegates.c: Rebuild.
8994 * target.c (update_current_target): Don't inherit or default
8995 to_can_accel_watchpoint_condition.
8996 * target.h (struct target_ops)
8997 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
8998
d03655e4
TT
89992014-02-19 Tom Tromey <tromey@redhat.com>
9000
9001 * target-delegates.c: Rebuild.
9002 * target.c (update_current_target): Don't inherit or default
9003 to_region_ok_for_hw_watchpoint.
9004 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
9005 Use TARGET_DEFAULT_FUNC.
9006
65f160a9
TT
90072014-02-19 Tom Tromey <tromey@redhat.com>
9008
9009 * target-delegates.c: Rebuild.
9010 * target.c (update_current_target): Don't inherit or default
9011 to_watchpoint_addr_within_range.
9012 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
9013 Use TARGET_DEFAULT_FUNC.
9014
61dd109f
TT
90152014-02-19 Tom Tromey <tromey@redhat.com>
9016
9017 * target-delegates.c: Rebuild.
9018 * target.c (update_current_target): Don't inherit or default
9019 to_remove_watchpoint.
9020 * target.h (struct target_ops) <to_remove_watchpoint>: Use
9021 TARGET_DEFAULT_NORETURN.
9022
016facd4
TT
90232014-02-19 Tom Tromey <tromey@redhat.com>
9024
9025 * target-delegates.c: Rebuild.
9026 * target.c (update_current_target): Don't inherit or default
9027 to_insert_watchpoint.
9028 * target.h (struct target_ops) <to_insert_watchpoint>: Use
9029 TARGET_DEFAULT_RETURN.
9030
418dabac
TT
90312014-02-19 Tom Tromey <tromey@redhat.com>
9032
9033 * target-delegates.c: Rebuild.
9034 * target.c (update_current_target): Don't inherit or default
9035 to_remove_hw_breakpoint.
9036 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
9037 TARGET_DEFAULT_RETURN.
9038
61b371f9
TT
90392014-02-19 Tom Tromey <tromey@redhat.com>
9040
9041 * target-delegates.c: Rebuild.
9042 * target.c (update_current_target): Don't inherit or default
9043 to_insert_hw_breakpoint.
9044 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
9045 TARGET_DEFAULT_RETURN.
9046
52b51d06
TT
90472014-02-19 Tom Tromey <tromey@redhat.com>
9048
9049 * target-delegates.c: Rebuild.
9050 * target.c (update_current_target): Don't inherit or default
9051 to_can_use_hw_breakpoint.
9052 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
9053 TARGET_DEFAULT_RETURN.
9054
f86e59b2
TT
90552014-02-19 Tom Tromey <tromey@redhat.com>
9056
9057 * target-delegates.c: Rebuild.
9058 * target.c (update_current_target): Don't inherit or default
9059 to_files_info.
9060 * target.h (struct target_ops) <to_files_info>: Use
9061 TARGET_DEFAULT_IGNORE.
9062
6c628163
TT
90632014-02-19 Tom Tromey <tromey@redhat.com>
9064
9065 * target-delegates.c: Rebuild.
9066 * target.c (update_current_target): Don't inherit or default
9067 to_store.
9068 * target.h (struct target_ops) <to_store>: Use
9069 TARGET_DEFAULT_NORETURN.
9070
bebd3233
TT
90712014-02-19 Tom Tromey <tromey@redhat.com>
9072
9073 * target-delegates.c: Rebuild.
9074 * target.c (update_current_target): Don't inherit or default
9075 to_post_attach.
9076 * target.h (struct target_ops) <to_post_attach>: Use
9077 TARGET_DEFAULT_IGNORE.
9078
a53f3625
TT
90792014-02-19 Tom Tromey <tromey@redhat.com>
9080
9081 * target-delegates.c: Rebuild.
9082 * target.c (update_current_target): Don't inherit or default
9083 to_rcmd.
9084 (default_rcmd): New function.
9085 (do_monitor_command): Unconditionally delegate.
9086 * target.h (struct target_ops) <to_rmcd>: Use
9087 TARGET_DEFAULT_FUNC.
9088
e9a29200
TT
90892014-02-19 Tom Tromey <tromey@redhat.com>
9090
9091 * target-delegates.c: Rebuild.
9092 * target.c (init_dummy_target): Don't initialize to_attach.
9093 (target_attach): Unconditionally delegate.
9094 * target.h (struct target_ops) <to_attach>: Use
9095 TARGET_DEFAULT_FUNC.
9096
09da0d0a
TT
90972014-02-19 Tom Tromey <tromey@redhat.com>
9098
9099 * target-delegates.c: Rebuild.
9100 * target.c (target_detach): Unconditionally delegate.
9101 (init_dummy_target): Don't initialize to_detach.
9102 * target.h (struct target_ops) <to_detach>: Use
9103 TARGET_DEFAULT_IGNORE.
9104
5436ff03
TT
91052014-02-19 Tom Tromey <tromey@redhat.com>
9106
9107 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
9108 Add argument.
9109 (target_augmented_libraries_svr4_read): Add argument.
9110 * target.c (update_current_target): Update.
9111 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
9112 argument.
9113
f0d960ea
TT
91142014-02-19 Tom Tromey <tromey@redhat.com>
9115
9116 * target.h (struct target_ops) <to_call_history_range>: Add
9117 argument.
9118 * target.c (target_call_history_range): Add argument.
9119 * record-btrace.c (record_btrace_call_history_range): Add 'self'
9120 argument.
9121 (record_btrace_call_history_from): Update.
9122
ec0aea04
TT
91232014-02-19 Tom Tromey <tromey@redhat.com>
9124
9125 * target.h (struct target_ops) <to_call_history_from>: Add
9126 argument.
9127 * target.c (target_call_history_from): Add argument.
9128 * record-btrace.c (record_btrace_call_history_from): Add 'self'
9129 argument.
9130
5df2fcba
TT
91312014-02-19 Tom Tromey <tromey@redhat.com>
9132
9133 * target.h (struct target_ops) <to_call_history>: Add argument.
9134 * target.c (target_call_history): Add argument.
9135 * record-btrace.c (record_btrace_call_history): Add 'self'
9136 argument.
9137
4e99c6b7
TT
91382014-02-19 Tom Tromey <tromey@redhat.com>
9139
9140 * target.h (struct target_ops) <to_insn_history_range>: Add
9141 argument.
9142 * target.c (target_insn_history_range): Add argument.
9143 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
9144 argument.
9145 (record_btrace_insn_history_from): Update.
9146
9abc3ff3
TT
91472014-02-19 Tom Tromey <tromey@redhat.com>
9148
9149 * target.h (struct target_ops) <to_insn_history_from>: Add
9150 argument.
9151 * target.c (target_insn_history_from): Add argument.
9152 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
9153 argument.
9154
7a6c5609
TT
91552014-02-19 Tom Tromey <tromey@redhat.com>
9156
9157 * target.h (struct target_ops) <to_insn_history>: Add argument.
9158 * target.c (target_insn_history): Add argument.
9159 * record-btrace.c (record_btrace_insn_history): Add 'self'
9160 argument.
9161
606183ac
TT
91622014-02-19 Tom Tromey <tromey@redhat.com>
9163
9164 * target.h (struct target_ops) <to_goto_record>: Add argument.
9165 * target.c (target_goto_record): Add argument.
9166 * record-full.c (record_full_goto): Add 'self' argument.
9167 * record-btrace.c (record_btrace_goto): Add 'self' argument.
9168
307a1b91
TT
91692014-02-19 Tom Tromey <tromey@redhat.com>
9170
9171 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
9172 * target.c (target_goto_record_end): Add argument.
9173 * record-full.c (record_full_goto_end): Add 'self' argument.
9174 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
9175
08475817
TT
91762014-02-19 Tom Tromey <tromey@redhat.com>
9177
9178 * target.h (struct target_ops) <to_goto_record_begin>: Add
9179 argument.
9180 * target.c (target_goto_record_begin): Add argument.
9181 * record-full.c (record_full_goto_begin): Add 'self' argument.
9182 * record-btrace.c (record_btrace_goto_begin): Add 'self'
9183 argument.
9184
1c63c994
TT
91852014-02-19 Tom Tromey <tromey@redhat.com>
9186
9187 * target.h (struct target_ops) <to_record_is_replaying>: Add
9188 argument.
9189 * target.c (target_record_is_replaying): Add argument.
9190 * record-full.c (record_full_is_replaying): Add 'self' argument.
9191 * record-btrace.c (record_btrace_is_replaying): Add 'self'
9192 argument.
9193 (record_btrace_xfer_partial, record_btrace_store_registers)
9194 (record_btrace_prepare_to_store, record_btrace_resume)
9195 (record_btrace_wait, record_btrace_decr_pc_after_break)
9196 (record_btrace_find_new_threads, record_btrace_thread_alive):
9197 Update.
9198
d1b55219
TT
91992014-02-19 Tom Tromey <tromey@redhat.com>
9200
9201 * target.h (struct target_ops) <to_delete_record>: Add argument.
9202 * target.c (target_delete_record): Add argument.
9203 * record-full.c (record_full_delete): Add 'self' argument.
9204
1390f529
TT
92052014-02-19 Tom Tromey <tromey@redhat.com>
9206
9207 * target.h (struct target_ops) <to_save_record>: Add argument.
9208 * target.c (target_save_record): Add argument.
9209 * record-full.c (record_full_save): Add 'self' argument.
9210 (record_full_save): Add 'self' argument.
9211
630d6a4a
TT
92122014-02-19 Tom Tromey <tromey@redhat.com>
9213
9214 * target.h (struct target_ops) <to_info_record>: Add argument.
9215 * target.c (target_info_record): Add argument.
9216 * record.c (info_record_command): Add argument.
9217 * record-full.c (record_full_info): Add 'self' argument.
9218 * record-btrace.c (record_btrace_info): Add 'self' argument.
9219
c6cd7c02
TT
92202014-02-19 Tom Tromey <tromey@redhat.com>
9221
9222 * target.h (struct target_ops) <to_stop_recording>: Add argument.
9223 * target.c (target_stop_recording): Add argument.
9224 * record.c (record_stop): Add argument.
9225 * record-btrace.c (record_btrace_stop_recording): Add 'self'
9226 argument.
9227
39c49f83
TT
92282014-02-19 Tom Tromey <tromey@redhat.com>
9229
9230 * target.h (struct target_ops) <to_read_btrace>: Add argument.
9231 * target.c (struct target_ops) <to_read_btrace>: Add argument.
9232 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
9233 argument.
9234 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
9235 (_initialize_amd64_linux_nat): Use it.
9236 * i386-linux-nat.c (i386_linux_read_btrace): New function.
9237 (_initialize_i386_linux_nat): Use it.
9238
1777056d
TT
92392014-02-19 Tom Tromey <tromey@redhat.com>
9240
9241 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
9242 * target.c (target_teardown_btrace): Add argument.
9243 * remote.c (remote_teardown_btrace): Add 'self' argument.
9244 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
9245 argument.
9246 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
9247 argument.
9248
25e95349
TT
92492014-02-19 Tom Tromey <tromey@redhat.com>
9250
9251 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
9252 * target.c (target_disable_btrace): Add argument.
9253 * remote.c (remote_disable_btrace): Add 'self' argument.
9254 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
9255 argument.
9256 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
9257 argument.
9258
e3c49f88
TT
92592014-02-19 Tom Tromey <tromey@redhat.com>
9260
9261 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
9262 * target.c (target_enable_btrace): Add argument.
9263 * remote.c (remote_enable_btrace): Add 'self' argument.
9264 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
9265 argument.
9266 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
9267 argument.
9268
fe38f897
TT
92692014-02-19 Tom Tromey <tromey@redhat.com>
9270
9271 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
9272 (target_can_use_agent): Add argument.
9273 * target.c (update_current_target): Update.
9274 * remote.c (remote_can_use_agent): Add 'self' argument.
9275 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
9276
2c152180
TT
92772014-02-19 Tom Tromey <tromey@redhat.com>
9278
9279 * target.h (struct target_ops) <to_use_agent>: Add argument.
9280 (target_use_agent): Add argument.
9281 * target.c (update_current_target): Update.
9282 * remote.c (remote_use_agent): Add 'self' argument.
9283 * inf-child.c (inf_child_use_agent): Add 'self' argument.
9284
a893e81f
TT
92852014-02-19 Tom Tromey <tromey@redhat.com>
9286
9287 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
9288 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
9289 (target_traceframe_info): Add argument.
9290 * target.c (update_current_target): Update.
9291 * remote.c (remote_traceframe_info): Add 'self' argument.
9292 * ctf.c (ctf_traceframe_info): Add 'self' argument.
9293
c686c57f
TT
92942014-02-19 Tom Tromey <tromey@redhat.com>
9295
9296 * target.h (target_static_tracepoint_markers_by_strid): Add
9297 argument.
9298 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
9299 'self' argument.
9300 * target.c (update_current_target): Update.
9301 * remote.c (struct target_ops)
9302 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9303 * linux-nat.c (struct target_ops)
9304 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9305
61fc905d
TT
93062014-02-19 Tom Tromey <tromey@redhat.com>
9307
9308 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
9309 Add argument.
9310 (target_static_tracepoint_marker_at): Add argument.
9311 * target.c (update_current_target): Update.
9312 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
9313 argument.
9314
c378d69d
TT
93152014-02-19 Tom Tromey <tromey@redhat.com>
9316
9317 * target.h (struct target_ops) <to_set_permissions>: Add argument.
9318 (target_set_permissions): Add argument.
9319 * target.c (update_current_target): Update.
9320 * remote.c (remote_set_permissions): Add 'self' argument.
9321 (remote_start_remote): Update.
9322
bd7ae0f5
TT
93232014-02-19 Tom Tromey <tromey@redhat.com>
9324
9325 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
9326 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
9327 (target_get_tib_address): Add argument.
9328 * target.c (update_current_target): Update.
9329 * remote.c (remote_get_tib_address): Add 'self' argument.
9330
d9e68a2c
TT
93312014-02-19 Tom Tromey <tromey@redhat.com>
9332
9333 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
9334 (target_set_trace_notes): Add argument.
9335 * target.c (update_current_target): Update.
9336 * remote.c (remote_set_trace_notes): Add 'self' argument.
9337
4da384be
TT
93382014-02-19 Tom Tromey <tromey@redhat.com>
9339
9340 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
9341 argument.
9342 (target_set_trace_buffer_size): Add argument.
9343 * target.c (update_current_target): Update.
9344 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
9345
736d5b1f
TT
93462014-02-19 Tom Tromey <tromey@redhat.com>
9347
9348 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
9349 argument.
9350 (target_set_circular_trace_buffer): Add argument.
9351 * target.c (update_current_target): Update.
9352 * remote.c (remote_set_circular_trace_buffer): Add 'self'
9353 argument.
9354
37b25738
TT
93552014-02-19 Tom Tromey <tromey@redhat.com>
9356
9357 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
9358 argument.
9359 (target_set_disconnected_tracing): Add argument.
9360 * target.c (update_current_target): Update.
9361 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
9362
0e67620a
TT
93632014-02-19 Tom Tromey <tromey@redhat.com>
9364
9365 * target.h (struct target_ops)
9366 <to_get_min_fast_tracepoint_insn_len>: Add argument.
9367 (target_get_min_fast_tracepoint_insn_len): Add argument.
9368 * target.c (update_current_target): Update.
9369 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
9370 argument.
9371
88ee6f45
TT
93722014-02-19 Tom Tromey <tromey@redhat.com>
9373
9374 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
9375 argument.
9376 (target_get_raw_trace_data): Add argument.
9377 * target.c (update_current_target): Update.
9378 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
9379
181e3713
TT
93802014-02-19 Tom Tromey <tromey@redhat.com>
9381
9382 * target.h (struct target_ops) <to_upload_trace_state_variables>:
9383 Add argument.
9384 (target_upload_trace_state_variables): Add argument.
9385 * target.c (update_current_target): Update.
9386 * remote.c (remote_upload_trace_state_variables): Add 'self'
9387 argument.
9388 (remote_start_remote): Update.
9389
ab6617cc
TT
93902014-02-19 Tom Tromey <tromey@redhat.com>
9391
9392 * target.h (struct target_ops) <to_upload_tracepoints>: Add
9393 argument.
9394 (target_upload_tracepoints): Add argument.
9395 * target.c (update_current_target): Update.
9396 * remote.c (remote_upload_tracepoints): Add 'self' argument.
9397 (remote_start_remote): Update.
9398
dc3decaf
TT
93992014-02-19 Tom Tromey <tromey@redhat.com>
9400
9401 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
9402 (target_save_trace_data): Add argument.
9403 * target.c (update_current_target): Update.
9404 * remote.c (remote_save_trace_data): Add 'self' argument.
9405
4011015b
TT
94062014-02-19 Tom Tromey <tromey@redhat.com>
9407
9408 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
9409 argument.
9410 * target.h (struct target_ops)
9411 <to_get_trace_state_variable_value>: Add argument.
9412 (target_get_trace_state_variable_value): Add argument.
9413 * target.c (update_current_target): Update.
9414 * remote.c (remote_get_trace_state_variable_value): Add 'self'
9415 argument.
9416 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
9417
bd4c6793
TT
94182014-02-19 Tom Tromey <tromey@redhat.com>
9419
9420 * tracepoint.c (tfile_trace_find): Add 'self' argument.
9421 * target.h (struct target_ops) <to_trace_find>: Add argument.
9422 (target_trace_find): Add argument.
9423 * target.c (update_current_target): Update.
9424 * remote.c (remote_trace_find): Add 'self' argument.
9425 * ctf.c (ctf_trace_find): Add 'self' argument.
9426
74499f1b
TT
94272014-02-19 Tom Tromey <tromey@redhat.com>
9428
9429 * target.h (struct target_ops) <to_trace_stop>: Add argument.
9430 (target_trace_stop): Add argument.
9431 * target.c (update_current_target): Update.
9432 * remote.c (remote_trace_stop): Add 'self' argument.
9433
db90e85c
TT
94342014-02-19 Tom Tromey <tromey@redhat.com>
9435
9436 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
9437 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
9438 argument.
9439 (target_get_tracepoint_status): Add argument.
9440 * target.c (update_current_target): Update.
9441 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
9442
8bd200f1
TT
94432014-02-19 Tom Tromey <tromey@redhat.com>
9444
9445 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
9446 * target.h (struct target_ops) <to_get_trace_status>: Add
9447 argument.
9448 (target_get_trace_status): Add argument.
9449 * target.c (update_current_target): Update.
9450 * remote.c (remote_get_trace_status): Add 'self' argument.
9451 (remote_start_remote, remote_can_download_tracepoint): Update.
9452 * ctf.c (ctf_get_trace_status): Add 'self' argument.
9453
e2d1aae3
TT
94542014-02-19 Tom Tromey <tromey@redhat.com>
9455
9456 * target.h (struct target_ops) <to_trace_start>: Add argument.
9457 (target_trace_start): Add argument.
9458 * target.c (update_current_target): Update.
9459 * remote.c (remote_trace_start): Add 'self' argument.
9460
583f9a86
TT
94612014-02-19 Tom Tromey <tromey@redhat.com>
9462
9463 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
9464 Add argument.
9465 (target_trace_set_readonly_regions): Add argument.
9466 * target.c (update_current_target): Update.
9467 * remote.c (remote_trace_set_readonly_regions): Add 'self'
9468 argument.
9469
780b049c
TT
94702014-02-19 Tom Tromey <tromey@redhat.com>
9471
9472 * target.h (struct target_ops) <to_disable_tracepoint>: Add
9473 argument.
9474 (target_disable_tracepoint): Add argument.
9475 * target.c (update_current_target): Update.
9476 * remote.c (remote_disable_tracepoint): Add 'self' argument.
9477
46670d57
TT
94782014-02-19 Tom Tromey <tromey@redhat.com>
9479
9480 * target.h (struct target_ops) <to_enable_tracepoint>: Add
9481 argument.
9482 (target_enable_tracepoint): Add argument.
9483 * target.c (update_current_target): Update.
9484 * remote.c (remote_enable_tracepoint): Add 'self' argument.
9485
559d2b81
TT
94862014-02-19 Tom Tromey <tromey@redhat.com>
9487
9488 * target.h (struct target_ops) <to_download_trace_state_variable>:
9489 Add argument.
9490 (target_download_trace_state_variable): Add argument.
9491 * target.c (update_current_target): Update.
9492 * remote.c (remote_download_trace_state_variable): Add 'self'
9493 argument.
9494
a52a8357
TT
94952014-02-19 Tom Tromey <tromey@redhat.com>
9496
9497 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
9498 argument.
9499 (target_can_download_tracepoint): Add argument.
9500 * target.c (update_current_target): Update.
9501 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
9502
548f7808
TT
95032014-02-19 Tom Tromey <tromey@redhat.com>
9504
9505 * target.h (struct target_ops) <to_download_tracepoint>: Add
9506 argument.
9507 (target_download_tracepoint): Add argument.
9508 * target.c (update_current_target): Update.
9509 * remote.c (remote_download_tracepoint): Add 'self' argument.
9510
ecae04e1
TT
95112014-02-19 Tom Tromey <tromey@redhat.com>
9512
9513 * target.h (struct target_ops) <to_trace_init>: Add argument.
9514 (target_trace_init): Add argument.
9515 * target.c (update_current_target): Update.
9516 * remote.c (remote_trace_init): Add 'self' argument.
9517
fab5aa7c
TT
95182014-02-19 Tom Tromey <tromey@redhat.com>
9519
9520 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
9521 * target.c (target_fileio_readlink): Add argument.
9522 * remote.c (remote_hostio_readlink): Add 'self' argument.
9523 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
9524
dbbca37d
TT
95252014-02-19 Tom Tromey <tromey@redhat.com>
9526
9527 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
9528 * target.c (target_fileio_unlink): Add argument.
9529 * remote.c (remote_hostio_unlink): Add 'self' argument.
9530 (remote_file_delete): Update.
9531 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
9532
df39ea25
TT
95332014-02-19 Tom Tromey <tromey@redhat.com>
9534
9535 * target.h (struct target_ops) <to_fileio_close>: Add argument.
9536 * target.c (target_fileio_close): Add argument.
9537 * remote.c (remote_hostio_close): Add 'self' argument.
9538 (remote_hostio_close_cleanup): Update.
9539 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
9540 Update.
9541 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
9542
a3be983c
TT
95432014-02-19 Tom Tromey <tromey@redhat.com>
9544
9545 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
9546 * target.c (target_fileio_pread): Add argument.
9547 * remote.c (remote_hostio_pread): Add 'self' argument.
9548 (remote_bfd_iovec_pread, remote_file_get): Update.
9549 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
9550
0d866f62
TT
95512014-02-19 Tom Tromey <tromey@redhat.com>
9552
9553 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
9554 * target.c (target_fileio_pwrite): Add argument.
9555 * remote.c (remote_hostio_pwrite): Add 'self' argument.
9556 (remote_file_put): Update.
9557 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
9558
cd897586
TT
95592014-02-19 Tom Tromey <tromey@redhat.com>
9560
9561 * target.h (struct target_ops) <to_fileio_open>: Add argument.
9562 * target.c (target_fileio_open): Add argument.
9563 * remote.c (remote_hostio_open): Add 'self' argument.
9564 (remote_bfd_iovec_open): Add 'self' argument.
9565 (remote_file_put): Add 'self' argument.
9566 (remote_file_get): Add 'self' argument.
9567 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
9568
78eff0ec
TT
95692014-02-19 Tom Tromey <tromey@redhat.com>
9570
9571 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
9572 Add argument.
9573 (target_can_run_breakpoint_commands): Add argument.
9574 * target.c (update_current_target): Update.
9575 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
9576 argument.
9577 (remote_insert_breakpoint): Add 'self' argument.
9578 (remote_insert_hw_breakpoint): Add 'self' argument.
9579 (remote_can_run_breakpoint_commands): Add 'self' argument.
9580
efcc2da7
TT
95812014-02-19 Tom Tromey <tromey@redhat.com>
9582
9583 * target.h (struct target_ops)
9584 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
9585 (target_supports_evaluation_of_breakpoint_conditions): Add
9586 argument.
9587 * target.c (update_current_target): Update.
9588 * remote.c (remote_supports_cond_breakpoints): Add 'self'
9589 argument.
9590 (remote_insert_breakpoint): Add 'self' argument.
9591 (remote_insert_hw_breakpoint): Add 'self' argument.
9592 (remote_supports_cond_breakpoints): Add 'self' argument.
9593
6de37a3a
TT
95942014-02-19 Tom Tromey <tromey@redhat.com>
9595
9596 * target.h (struct target_ops) <to_supports_string_tracing>: Add
9597 argument.
9598 (target_supports_string_tracing): Add argument.
9599 * target.c (update_current_target): Update.
9600 * remote.c (remote_supports_string_tracing): Add 'self' argument.
9601
2bfc0540
TT
96022014-02-19 Tom Tromey <tromey@redhat.com>
9603
9604 * target.h (struct target_ops)
9605 <to_supports_disable_randomization>: Add argument.
9606 * target.c (find_default_supports_disable_randomization): Add
9607 argument.
9608 (target_supports_disable_randomization): Add argument.
9609 (find_default_supports_disable_randomization): Add 'self'
9610 argument.
9611 * remote.c (extended_remote_supports_disable_randomization): Add
9612 'self' argument.
9613 (remote_supports_disable_randomization): Add 'self' argument.
9614 (extended_remote_create_inferior): Update.
9615 * linux-nat.c (linux_nat_supports_disable_randomization): Add
9616 'self' argument.
9617
7d178d6a
TT
96182014-02-19 Tom Tromey <tromey@redhat.com>
9619
9620 * target.h (struct target_ops)
9621 <to_supports_enable_disable_tracepoint>: Add argument.
9622 (target_supports_enable_disable_tracepoint): Add argument.
9623 * target.c (update_current_target): Update.
9624 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
9625 argument.
9626
86ce2668
TT
96272014-02-19 Tom Tromey <tromey@redhat.com>
9628
9629 * target.h (struct target_ops) <to_supports_multi_process>: Add
9630 argument.
9631 (target_supports_multi_process): Add argument.
9632 * target.c (update_current_target): Update.
9633 * remote.c (remote_supports_multi_process): Add 'self' argument.
9634 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
9635 argument.
9636 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
9637 argument.
9638
4c612759
TT
96392014-02-19 Tom Tromey <tromey@redhat.com>
9640
9641 * target.h (struct target_ops) <to_execution_direction>: Add
9642 argument.
9643 (target_execution_direction): Add argument.
9644 * target.c (default_execution_direction): Add 'self' argument.
9645 * record-full.c (record_full_execution_direction): Add 'self'
9646 argument.
9647
19db3e69
TT
96482014-02-19 Tom Tromey <tromey@redhat.com>
9649
9650 * target.h (struct target_ops) <to_can_execute_reverse>: Add
9651 argument.
9652 (target_can_execute_reverse): Add argument.
9653 * remote.c (remote_can_execute_reverse): Add 'self' argument.
9654 * record-full.c (record_full_can_execute_reverse): Add 'self'
9655 argument.
9656 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
9657 argument.
9658
1e6b91a4
TT
96592014-02-19 Tom Tromey <tromey@redhat.com>
9660
9661 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
9662 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
9663 argument.
9664 (target_get_ada_task_ptid): Add argument.
9665 * target.c (update_current_target): Update.
9666 (default_get_ada_task_ptid): Add 'self' argument.
9667 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
9668 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
9669 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
9670 argument.
9671 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
9672 argument.
9673 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
9674 argument.
9675 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
9676 argument.
9677 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
9678 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
9679 argument.
9680
3c80fb48
TT
96812014-02-19 Tom Tromey <tromey@redhat.com>
9682
9683 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
9684 (target_goto_bookmark): Add argument.
9685 * target.c (dummy_goto_bookmark): Add 'self' argument.
9686 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
9687
dd0e2830
TT
96882014-02-19 Tom Tromey <tromey@redhat.com>
9689
9690 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
9691 (target_get_bookmark): Add argument.
9692 * target.c (dummy_get_bookmark): Add 'self' argument.
9693 * record-full.c (record_full_get_bookmark): Add 'self' argument.
9694
fc6691b2
TT
96952014-02-19 Tom Tromey <tromey@redhat.com>
9696
9697 * target.h (struct target_ops) <to_make_corefile_notes>: Add
9698 argument.
9699 (target_make_corefile_notes): Add argument.
9700 * target.c (dummy_make_corefile_notes): Add 'self' argument.
9701 * procfs.c (procfs_make_note_section): Add 'self' argument.
9702 (procfs_make_note_section): Add 'self' argument.
9703 (procfs_make_note_section): Add 'self' argument.
9704 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
9705 argument.
9706 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
9707 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
9708 * exec.c (exec_make_note_section): Add 'self' argument.
9709 (exec_make_note_section): Add 'self' argument.
9710
2e73927c
TT
97112014-02-19 Tom Tromey <tromey@redhat.com>
9712
9713 * target.h (struct target_ops) <to_find_memory_regions>: Add
9714 argument.
9715 (target_find_memory_regions): Add argument.
9716 * target.c (dummy_find_memory_regions): Add 'self' argument.
9717 * procfs.c (proc_find_memory_regions): Add 'self' argument.
9718 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
9719 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
9720 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
9721 * exec. (exec_do_find_memory_regions): New global.
9722 (exec_set_find_memory_regions): Rewrite.
9723 (exec_find_memory_regions): New function.
9724 (init_exec_ops): Use exec_find_memory_regions.
9725
2a9a2795
TT
97262014-02-19 Tom Tromey <tromey@redhat.com>
9727
9728 * target.h (struct target_ops) <to_supports_non_stop>: Add
9729 argument.
9730 * target.c (find_default_supports_non_stop): Add argument.
9731 (target_supports_non_stop): Add argument.
9732 (find_default_supports_non_stop): Add 'self' argument.
9733 * remote.c (remote_supports_non_stop): Add 'self' argument.
9734 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
9735
4ab76ea3
TT
97362014-02-19 Tom Tromey <tromey@redhat.com>
9737
9738 * target.h (struct target_ops) <to_log_command>: Add argument.
9739 (target_log_command): Add argument.
9740 * serial.h (serial_log_command): Add 'self' argument.
9741 * serial.c (serial_log_command): Add 'self' argument.
9742
8dd27370
TT
97432014-02-19 Tom Tromey <tromey@redhat.com>
9744
9745 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
9746 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
9747 argument.
9748 (target_pid_to_exec_file): Add argument.
9749 * target.c (debug_to_pid_to_exec_file): Add argument.
9750 (update_current_target): Update.
9751 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
9752 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
9753 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
9754 (linux_handle_extended_wait): Update.
9755 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
9756 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
9757 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
9758 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
9759
1aac633b
TT
97602014-02-19 Tom Tromey <tromey@redhat.com>
9761
9762 * target.h (struct target_ops) <to_rcmd>: Add argument.
9763 (target_rcmd): Add argument.
9764 * target.c (debug_to_rcmd): Add argument.
9765 (update_current_target, do_monitor_command): Update.
9766 * remote.c (remote_rcmd): Add 'self' argument.
9767 * monitor.c (monitor_rcmd): Add 'self' argument.
9768
1eab8a48
TT
97692014-02-19 Tom Tromey <tromey@redhat.com>
9770
9771 * windows-nat.c (windows_stop): Add 'self' argument.
9772 * target.h (struct target_ops) <to_stop>: Add argument.
9773 * target.c (target_stop): Add argument.
9774 (debug_to_stop): Add argument.
9775 (update_current_target): Update.
9776 * remote.c (remote_stop): Add 'self' argument.
9777 * remote-sim.c (gdbsim_stop): Add 'self' argument.
9778 (gdbsim_cntrl_c): Update.
9779 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
9780 * procfs.c (procfs_stop): Add 'self' argument.
9781 * nto-procfs.c (procfs_stop): Add 'self' argument.
9782 * monitor.c (monitor_stop): Add 'self' argument.
9783 (monitor_open): Update.
9784 * linux-nat.c (linux_nat_stop): Add argument.
9785 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
9786 * gnu-nat.c (gnu_stop): Add 'self' argument.
9787 * darwin-nat.c (darwin_stop): Add 'self' argument.
9788
503a628d
TT
97892014-02-19 Tom Tromey <tromey@redhat.com>
9790
9791 * target.h (struct target_ops) <to_thread_name>: Add argument.
9792 * target.c (target_thread_name): Add argument.
9793 (update_current_target): Update.
9794 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
9795
c15906d8
TT
97962014-02-19 Tom Tromey <tromey@redhat.com>
9797
9798 * target.h (struct target_ops) <to_extra_thread_info>: Add
9799 argument.
9800 (target_extra_thread_info): Add argument.
9801 * target.c (update_current_target): Update.
9802 * remote.c (remote_threads_extra_info): Add 'self' argument.
9803 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
9804 argument.
9805 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
9806 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
9807 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
9808 argument.
9809 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
9810 argument.
9811 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
9812 argument.
9813 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
9814 argument.
9815
daf5e9b6
TT
98162014-02-19 Tom Tromey <tromey@redhat.com>
9817
9818 * target.h (struct target_ops) <to_program_signals>: Add argument.
9819 * target.c (target_program_signals): Add argument.
9820 * remote.c (remote_program_signals): Add 'self' argument.
9821
94bedb42
TT
98222014-02-19 Tom Tromey <tromey@redhat.com>
9823
9824 * target.h (struct target_ops) <to_pass_signals>: Add argument.
9825 * target.c (target_pass_signals): Add argument.
9826 * remote.c (remote_pass_signals): Add 'self' argument.
9827 (remote_start_remote): Update.
9828 * procfs.c (procfs_pass_signals): Add 'self' argument.
9829 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
9830 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
9831 (linux_nat_create_inferior, linux_nat_attach): Update.
9832
da82bd6b
TT
98332014-02-19 Tom Tromey <tromey@redhat.com>
9834
9835 * windows-nat.c (windows_can_run): Add 'self' argument.
9836 * target.h (struct target_ops) <to_can_run>: Add argument.
9837 (target_can_run): Add argument.
9838 * target.c (debug_to_can_run): Add argument.
9839 (update_current_target): Update.
9840 * nto-procfs.c (procfs_can_run): Add 'self' argument.
9841 * inf-child.c (inf_child_can_run): Add 'self' argument.
9842 * go32-nat.c (go32_can_run): Add 'self' argument.
9843
d796e1d6
TT
98442014-02-19 Tom Tromey <tromey@redhat.com>
9845
9846 * target.h (struct target_ops) <to_has_exited>: Add argument.
9847 (target_has_exited): Add argument.
9848 * target.c (debug_to_has_exited): Add argument.
9849 (update_current_target): Update.
9850
ff214e67
TT
98512014-02-19 Tom Tromey <tromey@redhat.com>
9852
9853 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
9854 argument.
9855 (target_set_syscall_catchpoint): Add argument.
9856 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
9857 argument.
9858 * target.c (update_current_target): Update.
9859
758e29d2
TT
98602014-02-19 Tom Tromey <tromey@redhat.com>
9861
9862 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
9863 argument.
9864 (target_remove_exec_catchpoint): Add argument.
9865 * target.c (debug_to_remove_exec_catchpoint): Add argument.
9866 (update_current_target): Update.
9867 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
9868 argument.
9869
ba025e51
TT
98702014-02-19 Tom Tromey <tromey@redhat.com>
9871
9872 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
9873 argument.
9874 (target_insert_exec_catchpoint): Add argument.
9875 * target.c (debug_to_insert_exec_catchpoint): Add argument.
9876 (update_current_target): Update.
9877 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
9878 argument.
9879
e98cf0cd
TT
98802014-02-19 Tom Tromey <tromey@redhat.com>
9881
9882 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
9883 argument.
9884 (target_remove_vfork_catchpoint): Add argument.
9885 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
9886 (update_current_target): Update.
9887 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
9888 argument.
9889
3ecc7da0
TT
98902014-02-19 Tom Tromey <tromey@redhat.com>
9891
9892 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
9893 argument.
9894 (target_insert_vfork_catchpoint): Add argument.
9895 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
9896 (update_current_target): Update.
9897 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
9898 argument.
9899
973fc227
TT
99002014-02-19 Tom Tromey <tromey@redhat.com>
9901
9902 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
9903 argument.
9904 (target_remove_fork_catchpoint): Add argument.
9905 * target.c (debug_to_remove_fork_catchpoint): Add argument.
9906 (update_current_target): Update.
9907 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
9908 argument.
9909
a863b201
TT
99102014-02-19 Tom Tromey <tromey@redhat.com>
9911
9912 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
9913 argument.
9914 (target_insert_fork_catchpoint): Add argument.
9915 * target.c (debug_to_insert_fork_catchpoint): Add argument.
9916 (update_current_target): Update.
9917 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
9918 argument.
9919
2e97a79e
TT
99202014-02-19 Tom Tromey <tromey@redhat.com>
9921
9922 * target.h (struct target_ops) <to_post_startup_inferior>: Add
9923 argument.
9924 (target_post_startup_inferior): Add argument.
9925 * target.c (debug_to_post_startup_inferior): Add argument.
9926 (update_current_target): Update.
9927 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
9928 argument.
9929 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
9930 argument.
9931 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
9932 argument.
9933 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
9934 argument.
9935 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
9936 'self' argument.
9937 (super_post_startup_inferior): Likewise.
9938 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
9939 'self' argument.
9940 (super_post_startup_inferior): Likewise.
9941 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
9942 Add 'self' argument.
9943 (super_post_startup_inferior): Likewise.
9944
71a9f134
TT
99452014-02-19 Tom Tromey <tromey@redhat.com>
9946
9947 * target.h (struct target_ops) <to_load>: Add argument.
9948 * target.c (target_load): Add argument.
9949 (debug_to_load): Add argument.
9950 (update_current_target): Update.
9951 * remote.c (remote_load): Add 'self' argument.
9952 * remote-sim.c (gdbsim_load): Add 'self' argument.
9953 * remote-mips.c (mips_load): Add 'self' argument.
9954 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
9955 * monitor.c (monitor_load): Add 'self' argument.
9956 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
9957
0a4f40a2
TT
99582014-02-19 Tom Tromey <tromey@redhat.com>
9959
9960 * target.h (struct target_ops) <to_terminal_info>: Add argument.
9961 (target_terminal_info): Add argument.
9962 * target.c (debug_to_terminal_info): Add argument.
9963 (default_terminal_info): Likewise.
9964 * inflow.c (child_terminal_info): Add 'self' argument.
9965 * inferior.h (child_terminal_info): Add 'self' argument.
9966 * go32-nat.c (go32_terminal_info): Add 'self' argument.
9967
ae3bd431
TT
99682014-02-19 Tom Tromey <tromey@redhat.com>
9969
9970 * target.h (struct target_ops) <to_terminal_save_ours>: Add
9971 argument.
9972 (target_terminal_save_ours): Add argument.
9973 * target.c (debug_to_terminal_save_ours): Add argument.
9974 (update_current_target): Update.
9975 * inflow.c (terminal_save_ours): Add 'self' argument.
9976 * inferior.h (terminal_save_ours): Add 'self' argument.
9977
e3594fd1
TT
99782014-02-19 Tom Tromey <tromey@redhat.com>
9979
9980 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
9981 (target_terminal_ours): Add argument.
9982 * target.c (debug_to_terminal_ours): Add argument.
9983 (update_current_target): Update.
9984 * remote.c (remote_terminal_ours): Add 'self' argument.
9985 (remote_close): Update.
9986 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
9987 * inflow.c (terminal_ours): Add 'self' argument.
9988 * inferior.h (terminal_ours): Add 'self' argument.
9989 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9990
2e1e1a19
TT
99912014-02-19 Pedro Alves <palves@redhat.com>
9992 Tom Tromey <tromey@redhat.com>
9993
9994 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
9995 argument.
9996 (target_terminal_ours_for_output): Add argument.
9997 * target.c (debug_to_terminal_ours_for_output): Add argument.
9998 (update_current_target): Update.
9999 * inflow.c (terminal_ours_for_output): Add 'self' argument.
10000 * inferior.h (terminal_ours_for_output): Add 'self' argument.
10001 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
10002
d2f640d4
TT
100032014-02-19 Tom Tromey <tromey@redhat.com>
10004
10005 * target.h (struct target_ops) <to_terminal_inferior>: Add
10006 argument.
10007 * target.c (target_terminal_inferior): Add argument.
10008 (update_current_target): Update.
10009 * remote.c (remote_terminal_inferior): Add 'self' argument.
10010 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
10011 * inflow.c (terminal_inferior): Add 'self' argument.
10012 * inferior.h (terminal_inferior): Add 'self' argument.
10013 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
10014 (go32_terminal_inferior): Add 'self' argument.
10015
c42bf286
TT
100162014-02-19 Tom Tromey <tromey@redhat.com>
10017
10018 * target.h (struct target_ops) <to_terminal_init>: Add argument.
10019 (target_terminal_init): Add argument.
10020 * target.c (debug_to_terminal_init): Add argument.
10021 (update_current_target): Update.
10022 * inflow.c (terminal_init_inferior): Add 'self' argument.
10023 * inferior.h (terminal_init_inferior): Add 'self' argument.
10024 * go32-nat.c (go32_terminal_init): Add 'self' argument.
10025 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
10026
c3a5ff89
TT
100272014-02-19 Tom Tromey <tromey@redhat.com>
10028
10029 * target.h (struct target_ops)
10030 <to_can_accel_watchpoint_condition>: Add argument.
10031 (target_can_accel_watchpoint_condition): Add argument.
10032 * target.c (debug_to_can_accel_watchpoint_condition): Add
10033 argument.
10034 (update_current_target): Update.
10035 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
10036 'self' argument.
10037
31568a15
TT
100382014-02-19 Tom Tromey <tromey@redhat.com>
10039
10040 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10041 Add argument.
10042 (target_region_ok_for_hw_watchpoint): Add argument.
10043 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
10044 (default_region_ok_for_hw_watchpoint): Add argument.
10045 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
10046 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
10047 argument.
10048 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
10049 argument.
10050 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
10051 argument.
10052 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
10053 'self' argument.
10054 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
10055 'self' argument.
10056 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
10057 'self' argument.
10058 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
10059 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
10060 'self' argument.
10061 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
10062 Add 'self' argument.
10063
7bb99c53
TT
100642014-02-19 Tom Tromey <tromey@redhat.com>
10065
10066 * target.h (struct target_ops) <to_insert_watchpoint>: Add
10067 argument.
10068 (target_insert_watchpoint): Add argument.
10069 * target.c (debug_to_insert_watchpoint): Add argument.
10070 (update_current_target): Update.
10071 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
10072 * remote.c (remote_insert_watchpoint): Add 'self' argument.
10073 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
10074 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
10075 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
10076 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
10077 argument.
10078 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
10079 (procfs_insert_hw_watchpoint): Add 'self' argument.
10080 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
10081 argument.
10082 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
10083 argument.
10084 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
10085 argument.
10086 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
10087 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
10088 argument.
10089 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
10090 'self' argument.
10091
11b5219a
TT
100922014-02-19 Tom Tromey <tromey@redhat.com>
10093
10094 * target.h (struct target_ops) <to_remove_watchpoint>: Add
10095 argument.
10096 (target_remove_watchpoint): Add argument.
10097 * target.c (debug_to_remove_watchpoint): Add argument.
10098 (update_current_target): Update.
10099 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
10100 * remote.c (remote_remove_watchpoint): Add 'self' argument.
10101 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
10102 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
10103 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
10104 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
10105 argument.
10106 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
10107 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
10108 argument.
10109 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
10110 argument.
10111 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
10112 argument.
10113 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
10114 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
10115 argument.
10116 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
10117 'self' argument.
10118
a64dc96c
TT
101192014-02-19 Tom Tromey <tromey@redhat.com>
10120
10121 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
10122 argument.
10123 (target_remove_hw_breakpoint): Add argument.
10124 * target.c (debug_to_remove_hw_breakpoint): Add argument.
10125 (update_current_target): Update.
10126 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
10127 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
10128 argument.
10129 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
10130 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
10131 argument.
10132 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
10133 'self' argument.
10134
23a26771
TT
101352014-02-19 Tom Tromey <tromey@redhat.com>
10136
10137 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
10138 argument.
10139 (target_insert_hw_breakpoint): Add argument.
10140 * target.c (debug_to_insert_hw_breakpoint): Add argument.
10141 (update_current_target): Update.
10142 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
10143 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
10144 argument.
10145 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
10146 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
10147 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
10148 argument.
10149 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
10150 'self' argument.
10151
5461485a
TT
101522014-02-19 Tom Tromey <tromey@redhat.com>
10153
10154 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
10155 argument.
10156 (target_can_use_hardware_watchpoint): Add argument.
10157 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
10158 (update_current_target): Update.
10159 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
10160 argument.
10161 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
10162 argument.
10163 * remote.c (remote_check_watch_resources): Add 'self' argument.
10164 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
10165 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
10166 argument.
10167 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
10168 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
10169 argument.
10170 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
10171 argument.
10172 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
10173 argument.
10174 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
10175 argument.
10176 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
10177 argument.
10178 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
10179 argument.
10180 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
10181 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
10182 argument.
10183 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
10184 'self' argument.
10185
f045800c
TT
101862014-02-19 Tom Tromey <tromey@redhat.com>
10187
10188 * target.h (struct target_ops) <to_post_attach>: Add argument.
10189 (target_post_attach): Add argument.
10190 * target.c (debug_to_post_attach): Add argument.
10191 (update_current_target): Update.
10192 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
10193 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
10194 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
10195 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
10196 * inf-child.c (inf_child_post_attach): Add 'self' argument.
10197
de90e03d
TT
101982014-02-19 Tom Tromey <tromey@redhat.com>
10199
10200 * windows-nat.c (windows_close): Add 'self' argument.
10201 * tracepoint.c (tfile_close): Add 'self' argument.
10202 * target.h (struct target_ops) <to_close>: Add argument.
10203 * target.c (target_close): Add argument.
10204 (update_current_target): Update.
10205 * remote.c (remote_close): Add 'self' argument.
10206 * remote-sim.c (gdbsim_close): Add 'self' argument.
10207 * remote-mips.c (mips_close): Add 'self' argument.
10208 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
10209 * record-full.c (record_full_close): Add 'self' argument.
10210 * record-btrace.c (record_btrace_close): Add 'self' argument.
10211 * monitor.h (monitor_close): Add 'self' argument.
10212 * monitor.c (monitor_close): Add 'self' argument.
10213 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
10214 * linux-nat.c (linux_nat_close): Add argument.
10215 * go32-nat.c (go32_close): Add 'self' argument.
10216 * exec.c (exec_close_1): Add 'self' argument.
10217 * ctf.c (ctf_close): Add 'self' argument.
10218 * corelow.c (core_close): Add 'self' argument.
10219 (core_close_cleanup): Update.
10220 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
10221 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
10222
9dd130a0
TT
102232014-02-19 Tom Tromey <tromey@redhat.com>
10224
10225 * remote.c (remote_load): New function.
10226 (init_remote_ops): Use it.
10227
46917d26
TT
102282014-02-19 Tom Tromey <tromey@redhat.com>
10229
10230 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
10231 argument.
10232 * common/linux-btrace.h (linux_supports_btrace): Update.
10233 * remote.c (remote_supports_btrace): Add "self" argument.
10234 * target-delegates.c: Rebuild.
10235 * target.c (target_supports_btrace): Remove.
10236 * target.h (struct target_ops) <to_supports_btrace>: Add
10237 target_ops argument.
10238 (target_supports_btrace): New define.
10239
6b84065d
TT
102402014-02-19 Tom Tromey <tromey@redhat.com>
10241
10242 * record-full.c (record_full_beneath_to_resume_ops)
10243 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
10244 (record_full_beneath_to_wait)
10245 (record_full_beneath_to_store_registers_ops)
10246 (record_full_beneath_to_store_registers)
10247 (record_full_beneath_to_xfer_partial_ops)
10248 (record_full_beneath_to_xfer_partial)
10249 (record_full_beneath_to_insert_breakpoint_ops)
10250 (record_full_beneath_to_insert_breakpoint)
10251 (record_full_beneath_to_remove_breakpoint_ops)
10252 (record_full_beneath_to_remove_breakpoint)
10253 (record_full_beneath_to_stopped_by_watchpoint)
10254 (record_full_beneath_to_stopped_data_address)
10255 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
10256 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
10257 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
10258 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
10259 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
10260 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
10261 (tmp_to_stopped_data_address, tmp_to_async): Remove.
10262 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
10263 (record_full_resume, record_full_wait_1)
10264 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
10265 (record_full_store_registers, record_full_xfer_partial)
10266 (record_full_insert_breakpoint, record_full_remove_breakpoint)
10267 (record_full_async, record_full_core_xfer_partial): Use target
10268 delegation.
10269 * target-delegates.c: Rebuild.
10270 * target.c (current_xfer_partial): Remove.
10271 (update_current_target): Do not INHERIT or de_fault
10272 to_insert_breakpoint, to_remove_breakpoint,
10273 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
10274 to_is_async_p, to_async. Do not set to_xfer_partial field.
10275 (default_xfer_partial): Simplify.
10276 (current_xfer_partial): Remove.
10277 (target_wait, target_resume): Simplify.
10278 (find_default_can_async_p, find_default_is_async_p): Update.
10279 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
10280 to_xfer_partial, to_stopped_by_watchpoint,
10281 to_stopped_data_address.
10282 (target_store_registers): Simplify.
10283 (forward_target_remove_breakpoint)
10284 (forward_target_insert_breakpoint): Remove.
10285 (target_remove_breakpoint, target_insert_breakpoint)
10286 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
10287 * target.h (struct target_ops) <to_resume, to_wait,
10288 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
10289 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
10290 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
10291 markup.
10292 (forward_target_remove_breakpoint)
10293 (forward_target_insert_breakpoint): Remove.
10294 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
10295 directly.
10296 (record_btrace_insert_breakpoint): Delegate directly.
10297
1101cb7b
TT
102982014-02-19 Tom Tromey <tromey@redhat.com>
10299
10300 PR build/7701:
10301 * target-delegates.c: New file.
10302 * target.c: Include target-delegates.c.
10303 (init_dummy_target): Call install_dummy_methods.
10304 (complete_target_initialization): Call install_delegators.
10305 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
10306 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
10307 * make-target-delegates: New file.
10308
8b06beed
TT
103092014-02-19 Tom Tromey <tromey@redhat.com>
10310
10311 * record.c (find_record_target): Use find_target_at.
10312 * target.c (find_target_at): New function.
10313 * target.h (find_target_at): Declare.
10314
6a109b6b
TT
103152014-02-19 Tom Tromey <tromey@redhat.com>
10316
10317 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
10318 Add 'ops' argument.
10319 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
10320 'ops' argument.
10321 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
10322 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
10323 'ops' argument.
10324 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
10325 argument.
10326 * linux-nat.c (save_sigtrap): Update.
10327 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
10328 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
10329 (linux_nat_close): Update.
10330 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
10331 argument.
10332 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
10333 argument.
10334 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
10335 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
10336 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
10337 (tmp_to_async): Add 'ops' argument.
10338 (record_full_stopped_by_watchpoint, record_full_async)
10339 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
10340 argument.
10341 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
10342 (m32r_stopped_by_watchpoint): Add 'ops' argument.
10343 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
10344 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
10345 (remote_is_async_p, remote_async): Add 'ops' argument.
10346 (remote_stopped_data_address): Update.
10347 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
10348 * target.c (update_current_target)
10349 (find_default_can_async_p, find_default_is_async_p): Update.
10350 (init_dummy_target): Update.
10351 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
10352 * target.h (struct target_ops) <to_stopped_by_watchpoint,
10353 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
10354 (target_can_async_p, target_is_async_p, target_async)
10355 (target_stopped_by_watchpoint): Update.
10356
e095146b
YQ
103572014-02-19 Yao Qi <yao@codesourcery.com>
10358
10359 PR gdb/16220
10360 * gdbarch.sh: Remove startup_gdbarch.
10361 * gdbarch.c: Regenerated.
10362 * gdbarch.h: Likewise.
10363
bc3c6b36
KB
103642014-02-17 Kevin Buettner <kevinb@redhat.com>
10365
10366 * rl78-tdep.c (rl78_g10_register_name): New function.
10367 (rl78_return_value): Add g10 support.
10368 (rl78_gdbarch_init): Register rl78_g10_register_name for the
10369 g10.
10370
98dc0167 103712014-02-17 Doug Evans <xdje42@gmail.com>
f01c1940
DE
10372
10373 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
10374 (SUBDIR_GUILE_SRCS): Ditto.
10375 (scm-gsmob.o): Ditto.
10376
842c05cd
YQ
103772014-02-17 Yao Qi <yao@codesourcery.com>
10378
10379 * gnu-nat.c (ILL_RPC): Declare defined function.
10380
25c0bd04
YQ
103812014-02-17 Yao Qi <yao@codesourcery.com>
10382
10383 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
10384 mach_msg_type_number_t.
10385 (gnu_write_inferior): Likewise.
10386
a9a758e3
YQ
103872014-02-17 Yao Qi <yao@codesourcery.com>
10388
10389 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
10390 in format string.
10391 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
10392 (inf_validate_procs, inf_signal): Likewise.
10393 (S_exception_raise_request): Likewise.
10394 (do_mach_notify_dead_name): Likewise.
10395 (steal_exc_port): Likewise.
10396 (gnu_read_inferior): Change 'copy_count''s type to
10397 mach_msg_type_number_t.
10398 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
10399 format string.
10400
bae8023e
TS
104012014-02-16 Thomas Schwinge <thomas@codesourcery.com>
10402
c82f56d9
TS
10403 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
10404 flag. Adjust all users; in particular...
10405 (gnu_wait): ..., don't decrement its value in here...
10406 (gnu_create_inferior): ..., and instead set the flag in here,
10407 around the startup_inferior call, and call that one with
10408 START_INFERIOR_TRAPS_EXPECTED.
10409
3398af6a
TS
10410 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
10411 (ILL_RPC): ... new macro.
10412 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
10413 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
10414 (do_mach_notify_send_once, S_proc_setmsgport_reply)
10415 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
10416 functions with ILL_RPC macro.
10417 (S_proc_pid2task_reply, S_proc_task2pid_reply)
10418 (S_proc_task2proc_reply, S_proc_proc2task_reply)
10419 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
10420 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
10421 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
10422 (S_proc_getlogin_reply, S_proc_getsid_reply)
10423 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
10424 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
10425 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
10426 (S_proc_getnports_reply, S_proc_is_important_reply)
10427 (S_proc_get_code_reply): New stub functions, generated with
10428 ILL_RPC macro.
10429
d47642c9
TS
10430 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
10431 collected the type check structures.
10432
bae8023e
TS
10433 * reply_mig_hack.awk: Don't expect to see the auto keyword.
10434
8a55ffb0
DE
104352014-02-14 Doug Evans <dje@google.com>
10436
10437 * target.c (target_write_partial): Fix result type.
10438
c2853f3d
JM
104392014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
10440
10441 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
10442 the proper offsets to access fpregset_t.
10443
ac61d2db
SA
104442014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
10445
10446 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
10447 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
10448 * h8300-tdep.c (setmachinelist): Remove global.
10449 * hppa-tdep.c (hppa_sigtramp): Remove global.
10450 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
10451 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
10452 * ravenscar-thread.c (update_target_observer): Remove global.
10453 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
10454
9d2d0b8b
TT
104552014-02-12 Tom Tromey <tromey@redhat.com>
10456
10457 * common/rsp-low.c: Update comments.
10458 * common/rsp-low.h: Update comments.
10459
a7191e8b
TT
104602014-02-12 Tom Tromey <tromey@redhat.com>
10461
10462 * common/rsp-low.c (convert_ascii_to_int): Remove.
10463 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
10464
ff0e980e
TT
104652014-02-12 Tom Tromey <tromey@redhat.com>
10466
10467 * common/rsp-low.h (unhexify): Don't declare.
10468 * common/rsp-low.c (unhexify): Remove.
10469
e9371aff
TT
104702014-02-12 Tom Tromey <tromey@redhat.com>
10471
10472 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
10473 * common/rsp-low.c (convert_int_to_ascii): Remove.
10474
971dc0b8
TT
104752014-02-12 Tom Tromey <tromey@redhat.com>
10476
10477 * common/rsp-low.h (hexify): Don't declare.
10478 * common/rsp-low.c (hexify): Remove.
10479
0a822afb
TT
104802014-02-12 Tom Tromey <tromey@redhat.com>
10481
10482 * common/rsp-low.c (hexify): Never take strlen of argument.
10483
9f1b45b0
TT
104842014-02-12 Tom Tromey <tromey@redhat.com>
10485
10486 * common/rsp-low.c (bin2hex): Never take strlen of argument.
10487 * remote.c (extended_remote_run, remote_rcmd)
10488 (remote_download_trace_state_variable, remote_save_trace_data)
10489 (remote_set_trace_notes): Update.
10490 * tracepoint.c (encode_source_string, tfile_write_status)
10491 (tfile_write_uploaded_tsv): Update.
10492
9c3d6531
TT
104932014-02-12 Tom Tromey <tromey@redhat.com>
10494
10495 * tracepoint.c: Include rsp-low.h.
10496 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
10497 * remote.c: Include rsp-low.h.
10498 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
10499 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
10500 (remote_unescape_input): Move to common/rsp-low.c.
10501 * common/rsp-low.h: New file.
10502 * common/rsp-low.c: New file.
10503 * Makefile.in (SFILES): Add common/rsp-low.c.
10504 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
10505 (COMMON_OBS): Add rsp-low.o.
10506 (rsp-low.o): New target.
10507
01fd3ea5
TT
105082014-02-12 Tom Tromey <tromey@redhat.com>
10509
10510 * utils.h: Include print-utils.h.
10511 (host_address_to_string, plongest, pulongest, phex, phex_nz)
10512 (int_string, core_addr_to_string, core_addr_to_string_nz)
10513 (hex_string, hex_string_custom): Don't declare.
10514 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
10515 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
10516 (hex_string_custom, int_string, core_addr_to_string)
10517 (core_addr_to_string_nz, host_address_to_string): Move to
10518 common/print-utils.c.
10519 * common/print-utils.h: New file.
10520 * common/print-utils.c: New file
10521 * Makefile.in (SFILES): Add common/print-utils.c.
10522 (HFILES_NO_SRCDIR): Add common/print-utils.h.
10523 (COMMON_OBS): Add print-utils.o.
10524 (print-utils.o): New target.
10525
9fb50108
TT
105262014-02-12 Tom Tromey <tromey@redhat.com>
10527
10528 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
10529
0548b5db
MK
105302014-02-12 Mark Kettenis <kettenis@gnu.org>
10531
10532 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
10533
493443a4
MK
105342014-02-12 Mark Kettenis <kettenis@gnu.org>
10535
10536 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
10537 if a PT_IO ptrace request returns sucessfully but indicates that 0
10538 bytes were transferred.
10539
706d0883
PA
105402014-02-12 Pedro Alves <palves@redhat.com>
10541 Kevin Buettner <kevinb@redhat.com>
10542
10543 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
10544 TYPE_INSTANCE_FLAG_CODE_SPACE.
10545
5caa2f0b
PA
105462014-02-12 Pedro Alves <palves@redhat.com>
10547
10548 * h8300-tdep.c (pseudo_from_raw_register)
10549 (raw_from_pseudo_register): New functions.
10550 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
10551 them.
10552
76fd5f74
PA
105532014-02-12 Pedro Alves <palves@redhat.com>
10554
10555 * h8300-tdep.c (h8300_register_sim_regno): New function.
10556 (h8300_gdbarch_init): Install h8300_register_sim_regno as
10557 gdbarch_register_sim_regno hook.
10558
8f008406
SA
105592014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10560
10561 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
10562
195abc10
SA
105632014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10564
10565 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
10566
93ffa5b9
MK
105672014-02-12 Mark Kettenis <kettenis@gnu.org>
10568
10569 * obsd-tdep.h (obsd_init_abi): New prototype.
10570 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
10571 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
10572 (obsd_init_abi): New functions.
10573 * i386obsd-tdep.c: Include "obsd-tdep.h".
10574 (i386obsd_init_abi): Call obsd_init_abi.
10575 * amd64obsd-tdep.c: Include "obsd-tdep.h".
10576 (amd64obsd_init_abi): Call obsd_init_abi.
10577 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
10578 obsd-tdep.c to gdb_target_obs.
10579
49caec94
JM
105802014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
10581
10582 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
10583 double float arguments to 16-byte in the argument slots.
10584
e1402065
DE
105852014-02-11 Doug Evans <xdje42@gmail.com>
10586
10587 * configure.ac: Don't crash if pkg-config is not found and guile
10588 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
10589 in guile checks.
10590 * configure: Regenerate.
10591
edcc890f
YQ
105922014-02-11 Yao Qi <yao@codesourcery.com>
10593
10594 * aix-thread.c (aix_thread_xfer_partial): Update comments.
10595 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
10596 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
10597 * gnu-nat.c (gnu_xfer_memory): Likewise.
10598 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10599 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10600 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10601 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10602
9b409511
YQ
106032014-02-11 Yao Qi <yao@codesourcery.com>
10604
10605 * target.h (enum target_xfer_error): Rename to ...
10606 (enum target_xfer_status): ... it. New. All users updated.
10607 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
10608 New.
10609 (TARGET_XFER_STATUS_ERROR_P): New macro.
10610 (target_xfer_error_to_string): Remove declaration.
10611 (target_xfer_status_to_string): Declare.
10612 (target_xfer_partial_ftype): Adjust it.
10613 (struct target_ops) <to_xfer_partial>: Return
10614 target_xfer_status. Add argument xfered_len. Update
10615 comments.
10616 * target.c (target_xfer_error_to_string): Rename to ...
10617 (target_xfer_status_to_string): ... it. New. All callers
10618 updated.
10619 (target_read_live_memory): Likewise. Call target_xfer_partial
10620 instead of target_read.
10621 (memory_xfer_live_readonly_partial): Return
10622 target_xfer_status. Add argument xfered_len.
10623 (raw_memory_xfer_partial): Likewise.
10624 (memory_xfer_partial_1): Likewise.
10625 (memory_xfer_partial): Likewise.
10626 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
10627 properly. Update debug message.
10628 (default_xfer_partial, current_xfer_partial): Likewise.
10629 (target_write_partial): Likewise.
10630 (target_read_partial): Likewise. All callers updated.
10631 (read_whatever_is_readable): Likewise.
10632 (target_write_with_progress): Likewise.
10633 (target_read_alloc_1): Likewise.
10634
10635 * aix-thread.c (aix_thread_xfer_partial): Likewise.
10636 * auxv.c (procfs_xfer_auxv): Likewise.
10637 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
10638 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10639 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10640 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
10641 * corefile.c (read_memory): Adjust.
10642 * corelow.c (core_xfer_partial): Likewise.
10643 * ctf.c (ctf_xfer_partial): Likewise.
10644 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
10645 updated.
10646 (darwin_xfer_partial): Likewise.
10647 * exec.c (section_table_xfer_memory_partial): Likewise. All
10648 callers updated.
10649 (exec_xfer_partial): Likewise.
10650 * exec.h (section_table_xfer_memory_partial): Update
10651 declaration.
10652 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
10653 negative.
10654 (gnu_xfer_partial): Likewise.
10655 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
10656 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
10657 (ia64_hpux_xfer_solib_got): Likewise.
10658 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
10659 type of 'partial_len' to ULONGEST.
10660 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10661 * linux-nat.c (linux_xfer_siginfo ): Likewise.
10662 (linux_nat_xfer_partial): Likewise.
10663 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
10664 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
10665 * monitor.c (monitor_xfer_memory): Likewise.
10666 (monitor_xfer_partial): Likewise.
10667 * procfs.c (procfs_xfer_partial): Likewise.
10668 * record-btrace.c (record_btrace_xfer_partial): Likewise.
10669 * record-full.c (record_full_xfer_partial): Likewise.
10670 (record_full_core_xfer_partial): Likewise.
10671 * remote-sim.c (gdbsim_xfer_memory): Likewise.
10672 (gdbsim_xfer_partial): Likewise.
10673 * remote.c (remote_write_bytes_aux): Likewise. All callers
10674 updated.
10675 (remote_write_bytes, remote_read_bytes): Likewise. All
10676 callers updated.
10677 (remote_flash_erase): Likewise. All callers updated.
10678 (remote_write_qxfer): Likewise. All callers updated.
10679 (remote_read_qxfer): Likewise. All callers updated.
10680 (remote_xfer_partial): Likewise.
10681 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10682 (rs6000_xfer_shared_libraries): Likewise.
10683 * sol-thread.c (sol_thread_xfer_partial): Likewise.
10684 (sol_thread_xfer_partial): Likewise.
10685 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10686 (sparc_xfer_partial): Likewise.
10687 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
10688 updated.
10689 (spu_xfer_partial): Likewise.
10690 * spu-multiarch.c (spu_xfer_partial): Likewise.
10691 * tracepoint.c (tfile_xfer_partial): Likewise.
10692 * windows-nat.c (windows_xfer_memory): Likewise.
10693 (windows_xfer_shared_libraries): Likewise.
10694 (windows_xfer_partial): Likewise.
10695 * valprint.c: Replace 'target_xfer_error' with
10696 'target_xfer_status' in comments.
10697
a8e63083
JB
106982014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
10699
10700 Checked in by Joel Brobecker <brobecker@adacore.com>.
10701 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
10702
e86b67d3
JB
107032014-02-11 Joel Brobecker <brobecker@adacore.com>
10704
10705 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
10706 function parameters.
10707
4b7d1f7f
WN
107082014-02-10 Will Newton <will.newton@linaro.org>
10709
10710 * elfread.c (elf_rel_plt_read): Look for a .got section if
10711 looking up .got.plt fails.
10712 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
10713 on address passed to elf_gnu_ifunc_record_cache.
10714 (elf_gnu_ifunc_resolve_addr): Likewise.
10715 (elf_gnu_ifunc_resolver_return_stop): Likewise.
10716
961842b2
JM
107172014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
10718
10719 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
10720 (X_RETTURN): New macro.
10721 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
10722
10723 * sparc64-tdep.c (sparc64_init_abi): Hook
10724 sparc_in_function_epilogue_p.
10725
3f03e7b1
GB
107262014-02-10 Gary Benson <gbenson@redhat.com>
10727
10728 * symfile-debug.c (debug_qf_expand_symtabs_matching):
10729 Rename name_matcher to symbol_matcher.
10730
96f861ef
GB
107312014-02-10 Gary Benson <gbenson@redhat.com>
10732
10733 * symfile-debug.c (debug_qf_expand_symtabs_matching):
10734 Use expand_symtabs_file_matcher_ftype and
10735 expand_symtabs_symbol_matcher_ftype.
10736
ee01b665
JB
107372014-02-10 Joel Brobecker <brobecker@adacore.com>
10738
10739 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
10740 (struct ada_symbol_cache): New.
10741 (ada_free_symbol_cache): Forward declare.
10742 (struct ada_pspace_data): New.
10743 (ada_pspace_data_handle): New static global.
10744 (get_ada_pspace_data, ada_pspace_data_cleanup)
10745 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
10746 (cache_space, cache): Delete, now folded inside struct
10747 ada_pspace_data.
10748 (ada_get_symbol_cache): New function.
10749 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
10750 implementation.
10751 (_initialize_ada_language): Remove initialization of cache_space.
10752 Move call to observer_attach_inferior_exit up, grouping it
10753 with the other observer registrations inside this function.
10754 Rename command to be more general. Add call to
10755 register_program_space_data_with_cleanup.
10756
143adbbf
JB
107572014-02-10 Joel Brobecker <brobecker@adacore.com>
10758
10759 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
10760 ada_new_objfile_observer.
10761 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
10762 (_initialize_tasks): Update uses of ada_new_objfile_observer
10763 and ada_tasks_normal_stop_observer.
10764
aa4fb036
JB
107652014-02-10 Joel Brobecker <brobecker@adacore.com>
10766
10767 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
10768 returned by the 'Length attribute to integer.
10769
9dee8cc6
JB
107702014-02-10 Joel Brobecker <brobecker@adacore.com>
10771
10772 * ada-lang.c (_initialize_ada_language): Initialize
10773 cache_space obstack.
10774
3d9434b5
JB
107752014-02-10 Joel Brobecker <brobecker@adacore.com>
10776
10777 * ada-lang.c (HASH_SIZE): New macro.
10778 (struct cache_entry): New type.
10779 (cache_space, cache): New static globals.
10780 (ada_clear_symbol_cache, find_entry): New functions.
10781 (lookup_cached_symbol, cache_symbol): Implement.
10782 (ada_new_objfile_observer, ada_free_objfile_observer): New.
10783 (_initialize_ada_language): Attach ada_new_objfile_observer
10784 and ada_free_objfile_observer.
10785
f0c5f9b2
JB
107862014-02-10 Joel Brobecker <brobecker@adacore.com>
10787
10788 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
10789 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
10790 struct block * parameter.
10791 (ada_lookup_symbol_list_worker): Constify local variable "block".
10792 Remove cast which is no longer necessary.
10793
ed3ef339
DE
107942014-02-10 Doug Evans <xdje42@gmail.com>
10795
10796 Add Guile as an extension language.
10797 * NEWS: Mention Guile scripting.
10798 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
10799 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
10800 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
10801 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
10802 (CLIBS): Add GUILE_LIBS.
10803 (install-guile): New rule.
10804 (guile.o): New rule.
10805 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
10806 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
10807 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
10808 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
10809 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
10810 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
10811 (scm-type.o, scm-utils.o, scm-value.o): New rules.
10812 * configure.ac: New option --with-guile.
10813 * configure: Regenerate.
10814 * config.in: Regenerate.
10815 * auto-load.c: Remove #include "python/python.h". Add #include
10816 "gdb/section-scripts.h".
10817 (source_section_scripts): Handle Guile scripts.
10818 (_initialize_auto_load): Add name of Guile objfile script to
10819 scripts-directory help text.
10820 * breakpoint.c (condition_command): Tweak comment to include Scheme.
10821 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
10822 (struct breakpoint): New member scm_bp_object.
10823 * defs.h (enum command_control_type): New value guile_control.
10824 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
10825 "extension.h".
10826 (show_user): Update comment.
10827 (_initialize_cli_cmds): Update help text for "show user". Update help
10828 text for max-user-call-depth.
10829 * cli/cli-script.c: Remove #include "python/python.h". Add #include
10830 "extension.h".
10831 (multi_line_command_p): Add guile_control.
10832 (print_command_lines): Handle guile_control.
10833 (execute_control_command, recurse_read_control_structure): Ditto.
10834 (process_next_line): Recognize "guile" commands.
10835 * disasm.c (gdb_disassemble_info): Make non-static.
10836 * disasm.h: #include "dis-asm.h".
10837 (struct gdbarch): Add forward decl.
10838 (gdb_disassemble_info): Declare.
10839 * extension.c: #include "guile/guile.h".
10840 (extension_languages): Add guile.
10841 (get_ext_lang_defn): Handle EXT_LANG_GDB.
10842 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
10843 * gdbtypes.c (get_unsigned_type_max): New function.
10844 (get_signed_type_minmax): New function.
10845 * gdbtypes.h (get_unsigned_type_max): Declare.
10846 (get_signed_type_minmax): Declare.
10847 * guile/README: New file.
10848 * guile/guile-internal.h: New file.
10849 * guile/guile.c: New file.
10850 * guile/guile.h: New file.
10851 * guile/scm-arch.c: New file.
10852 * guile/scm-auto-load.c: New file.
10853 * guile/scm-block.c: New file.
10854 * guile/scm-breakpoint.c: New file.
10855 * guile/scm-disasm.c: New file.
10856 * guile/scm-exception.c: New file.
10857 * guile/scm-frame.c: New file.
10858 * guile/scm-gsmob.c: New file.
10859 * guile/scm-iterator.c: New file.
10860 * guile/scm-lazy-string.c: New file.
10861 * guile/scm-math.c: New file.
10862 * guile/scm-objfile.c: New file.
10863 * guile/scm-ports.c: New file.
10864 * guile/scm-pretty-print.c: New file.
10865 * guile/scm-safe-call.c: New file.
10866 * guile/scm-string.c: New file.
10867 * guile/scm-symbol.c: New file.
10868 * guile/scm-symtab.c: New file.
10869 * guile/scm-type.c: New file.
10870 * guile/scm-utils.c: New file.
10871 * guile/scm-value.c: New file.
10872 * guile/lib/gdb.scm: New file.
10873 * guile/lib/gdb/boot.scm: New file.
10874 * guile/lib/gdb/experimental.scm: New file.
10875 * guile/lib/gdb/init.scm: New file.
10876 * guile/lib/gdb/iterator.scm: New file.
10877 * guile/lib/gdb/printing.scm: New file.
10878 * guile/lib/gdb/types.scm: New file.
10879 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
10880 (VPATH): Add $(GUILE_SRCDIR).
10881 (GUILE_DIR): New variable.
10882 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
10883 (all): Add stamp-guile dependency.
10884 (stamp-guile): New rule.
10885 (clean-guile, install-guile, uninstall-guile): New rules.
10886 (install-only): Add install-guile dependency.
10887 (uninstall): Add uninstall-guile dependency.
10888 (clean): Add clean-guile dependency.
10889
ac020ec5
DE
108902014-02-09 Doug Evans <xdje42@gmail.com>
10891
10892 Revert this patch (which I approved, mea culpa).
10893
10894 2014-02-08 Mark Kettenis <kettenis@gnu.org>
10895
10896 * Makefile.in (all-lib): Remove.
10897 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10898
2a081c59
JK
108992014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10900
10901 Fix Python stack corruption.
10902 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
10903 gdb_py_longest.
10904
0a6bd22d
MK
109052014-02-08 Mark Kettenis <kettenis@gnu.org>
10906
10907 * Makefile.in (all-lib): Remove.
10908 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10909
1a860409
DE
109102014-02-07 Doug Evans <dje@google.com>
10911
10912 * extension-priv.h (extension_language_script_ops): Add comment.
10913 (extension_language_ops): Add comment.
caf5a491 10914 (active_ext_lang_state): Fix typo in comment.
1a860409 10915
d137e6dc
PA
109162014-02-07 Pedro Alves <palves@redhat.com>
10917
0dcb32c3 10918 PR breakpoints/16292
d137e6dc
PA
10919 * infrun.c (handle_signal_stop) <signal arrives while stepping
10920 over a breakpoint>: Switch back to the stepping thread.
10921
ce6d0892
YQ
109222014-02-07 Yao Qi <yao@codesourcery.com>
10923
10924 * target.c (target_xfer_partial): Return zero if LEN is zero.
10925
2ed4b548
YQ
109262014-02-07 Yao Qi <yao@codesourcery.com>
10927
10928 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
10929 (ld_so_xfer_auxv): Likewise.
10930 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10931 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10932 * corelow.c (core_xfer_partial): Likewise.
10933 * ctf.c (ctf_xfer_partial): Likewise.
10934 * darwin-nat.c (darwin_read_dyld_info): Likewise.
10935 (darwin_xfer_partial): Likewise.
10936 * exec.c (exec_xfer_partial): Likewise.
10937 * gnu-nat.c (gnu_xfer_partial): Likewise.
10938 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
10939 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10940 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10941 * linux-nat.c (linux_xfer_siginfo): Likewise.
10942 (linux_proc_xfer_spu): Likewise.
10943 * procfs.c (procfs_xfer_partial): Likewise.
10944 * record-full.c (record_full_xfer_partial): Likewise.
10945 (record_full_core_xfer_partial): Likewise.
10946 * remote-sim.c (gdbsim_xfer_partial): Likewise.
10947 * remote.c (remote_write_qxfer): Likewise.
10948 (remote_write_qxfer, remote_read_qxfer): Likewise.
10949 (remote_xfer_partial): Likewise.
10950 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10951 (rs6000_xfer_shared_libraries): Likewise.
10952 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10953 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10954 (spu_xfer_partial): Likewise.
10955 * target.c (memory_xfer_partial_1): Likewise.
10956 * tracepoint.c (tfile_xfer_partial): Likewise.
10957 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
10958 (windows_xfer_partial): Likewise.
10959
c09f20e4
YQ
109602014-02-07 Yao Qi <yao@codesourcery.com>
10961
10962 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
10963 comments.
10964 (core_xfer_shared_libraries_aix): Likewise.
10965 * gdbarch.c, gdbarch.h: Regenerated.
10966 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
10967 ULONGEST. Change 'len_avail' type to ULONGEST.
10968 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
10969 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
10970 declaration.
10971 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
10972
8635b3bf
YQ
109732014-02-07 Yao Qi <yao@codesourcery.com>
10974
10975 * corefile.c (memory_error): Get 'exception' from ERR and pass
10976 'exception' to throw_error.
10977
6dddc817
DE
109782014-02-06 Doug Evans <xdje42@gmail.com>
10979
10980 * configure.ac (libpython checking): Remove all but python.o from
10981 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
10982 * configure: Regenerate.
10983
10984 * Makefile.in (SFILES): Add extension.c.
10985 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
10986 (COMMON_OBS): Add extension.o.
10987 * extension.h: New file.
10988 * extension-priv.h: New file.
10989 * extension.c: New file.
10990
10991 * python/python-internal.h: #include "extension.h".
10992 (gdbpy_auto_load_enabled): Declare.
10993 (gdbpy_apply_val_pretty_printer): Declare.
10994 (gdbpy_apply_frame_filter): Declare.
10995 (gdbpy_preserve_values): Declare.
10996 (gdbpy_breakpoint_cond_says_stop): Declare.
10997 (gdbpy_breakpoint_has_cond): Declare.
10998 (void source_python_script_for_objfile): Delete.
10999 * python/python.c: #include "extension-priv.h".
11000 Delete inclusion of "observer.h".
11001 (extension_language_python): Moved here and renamed from
11002 script_language_python in py-auto-load.c.
11003 Redefined to be of type extension_language_defn.
11004 (python_extension_script_ops): New global.
11005 (python_extension_ops): New global.
11006 (struct python_env): New member previous_active.
11007 (restore_python_env): Call restore_active_ext_lang.
11008 (ensure_python_env): Call set_active_ext_lang.
11009 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
11010 New arg extlang.
11011 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
11012 New arg extlang.
11013 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
11014 New arg extlang.
11015 (gdbpy_eval_from_control_command): Renamed from
11016 eval_python_from_control_command, made static. New arg extlang.
11017 (gdbpy_source_script) Renamed from source_python_script, made static.
11018 New arg extlang.
11019 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
11020 result to int. New arg extlang.
11021 (gdbpy_source_objfile_script): Renamed from
11022 source_python_script_for_objfile, made static. New arg extlang.
11023 (gdbpy_start_type_printers): Renamed from start_type_printers, made
11024 static. New args extlang, extlang_printers. Change result type to
11025 "void".
11026 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
11027 static. New arg extlang. Rename arg printers to extlang_printers
11028 and change type to ext_lang_type_printers *.
11029 (gdbpy_free_type_printers): Renamed from free_type_printers, made
11030 static. Replace argument arg with extlang, extlang_printers.
11031 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
11032 (!HAVE_PYTHON, source_python_script): Delete.
11033 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
11034 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
11035 (!HAVE_PYTHON, start_type_printers): Delete.
11036 (!HAVE_PYTHON, apply_type_printers): Delete.
11037 (!HAVE_PYTHON, free_type_printers): Delete.
11038 (_initialize_python): Delete call to observer_attach_before_prompt.
11039 (finalize_python): Set/restore active extension language.
11040 (gdbpy_finish_initialization) Renamed from
11041 finish_python_initialization, made static. New arg extlang.
11042 (gdbpy_initialized): New function.
11043 * python/python.h: #include "extension.h". Delete #include
11044 "value.h", "mi/mi-cmds.h".
11045 (extension_language_python): Declare.
11046 (GDBPY_AUTO_FILE_NAME): Delete.
11047 (enum py_bt_status): Moved to extension.h and renamed to
11048 ext_lang_bt_status.
11049 (enum frame_filter_flags): Moved to extension.h.
11050 (enum py_frame_args): Moved to extension.h and renamed to
11051 ext_lang_frame_args.
11052 (finish_python_initialization): Delete.
11053 (eval_python_from_control_command): Delete.
11054 (source_python_script): Delete.
11055 (apply_val_pretty_printer): Delete.
11056 (apply_frame_filter): Delete.
11057 (preserve_python_values): Delete.
11058 (gdbpy_script_language_defn): Delete.
11059 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
11060 (start_type_printers, apply_type_printers, free_type_printers): Delete.
11061
11062 * auto-load.c: #include "extension.h".
11063 (GDB_AUTO_FILE_NAME): Delete.
11064 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
11065 (script_language_gdb): Delete, moved to extension.c and renamed to
11066 extension_language_gdb.
11067 (source_gdb_script_for_objfile): Delete.
11068 (auto_load_pspace_info): New member unsupported_script_warning_printed.
11069 (loaded_script): Change type of language member to
11070 struct extension_language_defn *.
11071 (init_loaded_scripts_info): Initialize
11072 unsupported_script_warning_printed.
11073 (maybe_add_script): Make static. Change type of language arg to
11074 struct extension_language_defn *.
11075 (clear_section_scripts): Reset unsupported_script_warning_printed.
11076 (auto_load_objfile_script_1): Rewrite to use extension language API.
11077 (auto_load_objfile_script): Make public. Remove support-compiled-in
11078 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
11079 (source_section_scripts): Rewrite to use extension language API.
11080 (load_auto_scripts_for_objfile): Rewrite to use
11081 auto_load_scripts_for_objfile.
11082 (collect_matching_scripts_data): Change type of language member to
11083 struct extension_language_defn *.
11084 (auto_load_info_scripts): Change type of language arg to
11085 struct extension_language_defn *.
11086 (unsupported_script_warning_print): New function.
11087 (script_not_found_warning_print): Make static.
11088 (_initialize_auto_load): Rewrite construction of scripts-directory
11089 help.
11090 * auto-load.h (struct objfile): Add forward decl.
11091 (struct script_language): Delete.
11092 (struct auto_load_pspace_info): Add forward decl.
11093 (struct extension_language_defn): Add forward decl.
11094 (maybe_add_script): Delete.
11095 (auto_load_objfile_script): Declare.
11096 (script_not_found_warning_print): Delete.
11097 (auto_load_info_scripts): Update prototype.
11098 (auto_load_gdb_scripts_enabled): Declare.
11099 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
11100 auto_load_python_scripts_enabled and made public.
11101 (script_language_python): Delete, moved to python.c.
11102 (gdbpy_script_language_defn): Delete.
11103 (info_auto_load_python_scripts): Update to use
11104 extension_language_python.
11105
11106 * breakpoint.c (condition_command): Replace call to
11107 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
11108 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
11109 with call to breakpoint_ext_lang_cond_says_stop.
11110 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
11111 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
11112 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
11113 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
11114 New arg slang.
11115 (local_setattro): Print name of extension language with existing
11116 stop condition.
11117
11118 * valprint.c (val_print, value_print): Update to call
11119 apply_ext_lang_val_pretty_printer.
11120 * cp-valprint.c (cp_print_value): Update call to
11121 apply_ext_lang_val_pretty_printer.
11122 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
11123 (gdbpy_apply_val_pretty_printer): Renamed from
11124 apply_val_pretty_printer. New arg extlang.
11125 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
11126
11127 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
11128 extension language API.
11129 * cli/cli-script.c (execute_control_command): Update to call
11130 eval_ext_lang_from_control_command.
11131
11132 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
11133 enum ext_lang_bt_status values. Update call to
11134 apply_ext_lang_frame_filter.
11135 (mi_cmd_stack_list_locals): Ditto.
11136 (mi_cmd_stack_list_args): Ditto.
11137 (mi_cmd_stack_list_variables): Ditto.
11138 * mi/mi-main.c: Delete #include "python/python-internal.h".
11139 Add #include "extension.h".
11140 (mi_cmd_list_features): Replace reference to python internal variable
11141 gdb_python_initialized with call to ext_lang_initialized_p.
11142
11143 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
11144 Update to use enum ext_lang_frame_args. Update to call
11145 apply_ext_lang_frame_filter.
11146 * python/py-framefilter.c (extract_sym): Update to use enum
11147 ext_lang_bt_status.
11148 (extract_value, py_print_type, py_print_value): Ditto.
11149 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
11150 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
11151 (py_print_frame): Ditto.
11152 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
11153 New arg extlang. Update to use enum ext_lang_bt_status.
11154
11155 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
11156 finish_python_initialization. Replace with call to
11157 finish_ext_lang_initialization.
11158
11159 * typeprint.c (do_free_global_table): Update to call
11160 free_ext_lang_type_printers.
11161 (create_global_typedef_table): Update to call
11162 start_ext_lang_type_printers.
11163 (find_global_typedef): Update to call apply_ext_lang_type_printers.
11164 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
11165 (type_print_options): Change type of global_printers from "void *"
11166 to "struct ext_lang_type_printers *".
11167
11168 * value.c (preserve_values): Update to call preserve_ext_lang_values.
11169 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
11170 (gdbpy_preserve_values): Renamed from preserve_python_values.
11171 New arg extlang.
11172 (!HAVE_PYTHON, preserve_python_values): Delete.
11173
11174 * utils.c (quit_flag): Delete, moved to extension.c.
11175 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
11176 extension.c.
11177
11178 * eval.c: Delete #include "python/python.h".
11179 * main.c: Delete #include "python/python.h".
11180
11181 * defs.h: Update comment.
11182
6af79985
JB
111832014-02-06 Joel Brobecker <brobecker@adacore.com>
11184
11185 GDB 7.7 released.
11186
12c5175d
MK
111872014-02-05 Mark Kettenis <kettenis@gnu.org>
11188
11189 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
11190 defined.
11191
8dc5b319
YQ
111922014-02-05 Yao Qi <yao@codesourcery.com>
11193
11194 * remote.c (remote_pass_signals): Remove local 'buf' and use
11195 rs->buf.
11196 (remote_program_signals): Likewise.
11197
de7b2893
YQ
111982014-02-05 Yao Qi <yao@codesourcery.com>
11199
11200 * ctf.c: Include "inferior.h" and "gdbthread.h".
11201 (CTF_PID): A new macro.
11202 (ctf_open): Call inferior_appeared and add_thread_silent.
11203 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
11204 (ctf_thread_alive): New function.
11205 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
11206
66d032ac
YQ
112072014-02-05 Yao Qi <yao@codesourcery.com>
11208
11209 Revert this patch:
11210
11211 2013-05-24 Yao Qi <yao@codesourcery.com>
11212
11213 * tracepoint.c (TFILE_PID): Remove.
11214 (tfile_open): Don't add thread and inferior.
11215 (tfile_close): Don't set 'inferior_ptid'. Don't call
11216 exit_inferior_silent.
11217 (tfile_thread_alive): Remove.
11218 (init_tfile_ops): Don't set field 'to_thread_alive' of
11219 tfile_ops.
11220
f4ccffad
CE
112212014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
11222
11223 * remote.c (remote_start_remote): Call remote_check_symbols even
11224 if only symbol-file (not file) has been given.
11225
591a12a1
UW
112262014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11227
11228 * gdbarch.sh (skip_entrypoint): New callback.
11229 * gdbarch.c, gdbarch.h: Regenerate.
11230 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
11231 * infrun.c (fill_in_stop_func): Likewise.
11232 * ppc-linux-tdep.c: Include "elf/ppc64.h".
11233 (ppc_elfv2_elf_make_msymbol_special): New function.
11234 (ppc_elfv2_skip_entrypoint): Likewise.
11235 (ppc_linux_init_abi): Install them for ELFv2.
11236
cc0e89c5
UW
112372014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11238
11239 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
11240 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
11241 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
11242 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
11243 structures returned in GPRs.
11244
52f548e4
UW
112452014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11246
11247 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
11248 offset to the stack parameter list for the ELFv2 ABI.
11249
d4094b6a
UW
112502014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11251
11252 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
11253 set_gdbarch_convert_from_func_ptr_addr and
11254 set_gdbarch_elf_make_msymbol_special for ELFv1.
11255 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
11256 function descriptors on ELFv1.
11257 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
11258 set up r12 at function entry.
11259
cd453cd0
UW
112602014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11261
11262 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
11263 (struct gdbarch_tdep): New member elf_abi.
11264
11265 * rs6000-tdep.c: Include "elf/ppc64.h".
11266 (rs6000_gdbarch_init): Detect ELF ABI version.
11267
0ff3e01f
UW
112682014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11269
11270 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
11271 within a register pair holding a DFP 128-bit value on little-endian.
11272 (ppc64_sysv_abi_return_value_base): Likewise.
11273 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
11274 (dfp_pseudo_register_write): Likewise.
11275
5b757e5d
UW
112762014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11277
11278 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
11279 offset on little-endian when passing _Decimal32.
11280 (ppc64_sysv_abi_return_value_base): Likewise for return values.
11281
084ee545
UW
112822014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11283
11284 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
11285 of the overlapped FP register within the VSX register on little-
11286 endian platforms.
11287 (efpr_pseudo_register_write): Likewise.
11288
d63167af
UW
112892014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11290
11291 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
11292 offset on little-endian when passing small structures.
11293
e765b44c
UW
112942014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11295
11296 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
11297 (struct ppc64_sysv_argpos): New data structure.
11298 (ppc64_sysv_abi_push_float): Remove.
11299 (ppc64_sysv_abi_push_val): New function.
11300 (ppc64_sysv_abi_push_integer): Likewise.
11301 (ppc64_sysv_abi_push_freg): Likewise.
11302 (ppc64_sysv_abi_push_vreg): Likewise.
11303 (ppc64_sysv_abi_push_param): Likewise.
11304 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
11305 (ppc64_sysv_abi_return_value_base): New function.
11306 (ppc64_sysv_abi_return_value): Refactor to use it.
11307
36c24d95
UW
113082014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11309
11310 * NEWS: Document new target powerpc64le-*-linux*.
11311
26fd9228
MK
113122014-02-04 Mark Kettenis <kettenis@gnu.org>
11313
11314 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
11315 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
11316 core dumps.
11317 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
11318 register set used in ELF core dumps. Add floating-point register set.
11319
c5bb7362
KB
113202014-02-03 Kevin Buettner <kevinb@redhat.com>
11321
74228e77 11322 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
c5bb7362
KB
11323 dwarf2_to_gdb[] table using symbolic constants. Adjust
11324 penultimate entry from number representing the PC register
11325 to symbolic constant representing the MDR register. Add
11326 constant for the PC register to the end of the table.
11327
af09351e
MK
113282014-02-03 Mark Kettenis <kettenis@gnu.org>
11329
11330 * bsd-kvm.c: Include <sys/param.h>
11331
8507e05d
MK
113322014-02-03 Mark Kettenis <kettenis@gnu.org>
11333
11334 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
11335
ae56bfb8
JB
113362014-01-31 Joel Brobecker <brobecker@adacore.com>
11337
11338 * ada-lang.h (clear_ada_sym_cache): Delete.
11339
718ee4dc
UW
113402014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
11341
11342 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
11343
401e27fd
JM
113442014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
11345
11346 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
11347 the sigreturn register save area only if the syscall is
11348 sigreturn.
11349
a7c88acd
JB
113502014-01-29 Joel Brobecker <brobecker@adacore.com>
11351
11352 * valops.c (value_slice): Minor reformatting.
11353
fa0079ea
UW
113542014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
11355
11356 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
11357
c6044dd1
JB
113582014-01-28 Joel Brobecker <brobecker@adacore.com>
11359
11360 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
11361 New static globals.
11362 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
11363 (ada_ignore_descriptive_types_p): New static global.
11364 (find_parallel_type_by_descriptive_type): Return immediately
11365 if ada_ignore_descriptive_types_p is set.
11366 (_initialize_ada_language): Register new commands "maintenance
11367 set ada", "maintenance show ada", "maintenance set ada
11368 ignore-descriptive-types" and "maintenance show ada
11369 ignore-descriptive-types".
11370 * NEWS: Add entry for new "maint ada set/show
11371 ignore-descriptive-types" commands.
11372
568e808b
MM
113732014-01-27 Markus Metzger <markus.t.metzger@intel.com>
11374
11375 * record-btrace.c (record_btrace_close): Call btrace_teardown
11376 for all threads.
11377
467d141b
JB
113782014-01-27 Joel Brobecker <brobecker@adacore.com>
11379
11380 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
11381 "ui-out.h".
11382
fb151210
JB
113832014-01-27 Joel Brobecker <brobecker@adacore.com>
11384
11385 * ada-typeprint (type_is_full_subrange_of_target_type):
11386 New function.
11387 (print_range): Add parameter bounds_prefered_p. If not set,
11388 try printing range types using the name of their base type.
11389 (print_range_type): Add parameter bounds_prefered_p.
11390 Use it in call to print_range.
11391 (print_array_type, ada_print_type): Update calls to print_range
11392 and print_range_type.
11393
aba02109
JB
113942014-01-27 Joel Brobecker <brobecker@adacore.com>
11395
11396 * ada-typeprint.c (print_array_type, print_choices, print_range)
11397 (print_range_bound, print_dynamic_range_bound, print_range_type):
11398 Remove declaration.
11399
e62e21fd
JB
114002014-01-27 Joel Brobecker <brobecker@adacore.com>
11401
11402 * ada-typeprint.c (print_range): Add missing empty line
11403 after local declaration.
11404
859cf5d1
JB
114052014-01-27 Joel Brobecker <brobecker@adacore.com>
11406
11407 * ada-valprint.c (print_optional_low_bound): Get index_type's
11408 target type for as long as it is a TYPE_CODE_RANGE.
11409
25790f6f
JB
114102014-01-27 Joel Brobecker <brobecker@adacore.com>
11411
11412 * procfs.c (procfs_make_note_section): Remove assertion and
11413 associated comment.
11414
6b6aa828
YQ
114152014-01-24 Yao Qi <yao@codesourcery.com>
11416
11417 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
11418 * corelow.c (get_core_siginfo): Likewise.
11419
5d6df423
YQ
114202014-01-24 Yao Qi <yao@codesourcery.com>
11421
11422 * remote.c (remote_write_bytes_aux): Change type of 'len' to
11423 ULONGEST. Don't check 'len' is negative.
11424 (remote_write_bytes): Change type of 'len' to ULONGEST.
11425
83b645b8
TT
114262014-01-23 Tom Tromey <tromey@redhat.com>
11427
11428 PR python/16485:
11429 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
11430 Handle exception from frame.block.
11431 (FrameVars.fetch_frame_locals): Likewise.
11432
0740f8d8
TT
114332014-01-23 Tom Tromey <tromey@redhat.com>
11434
11435 PR python/16487:
11436 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
11437 on a NULL pointer. Move "goto error" to correct place.
11438
21909fa1
TT
114392014-01-23 Tom Tromey <tromey@redhat.com>
11440
11441 PR python/16491:
11442 * python/py-framefilter.c (apply_frame_filter): Call
11443 ensure_python_env after computing gdbarch.
11444
17fde6d0
YQ
114452014-01-23 Yao Qi <yao@codesourcery.com>
11446
11447 * target.c (raw_memory_xfer_partial): Change argument type
11448 from void * to gdb_byte *.
11449 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
11450
87ce2a04
DE
114512014-01-22 Doug Evans <dje@google.com>
11452
11453 New gdbserver option --debug-format=timestamp.
11454 * NEWS: Mention it.
11455
237b092b
AA
114562014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
11457
11458 * syscalls/s390x-linux.xml: New file.
11459 * syscalls/s390-linux.xml: New file.
11460 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
11461 (XML_SYSCALL_FILENAME_S390X): Likewise.
11462 (op_svc): New enum value for SVC opcode.
11463 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
11464 (s390_linux_get_syscall_number): New function.
11465 (s390_gdbarch_init): Register '*get_syscall_number' and the
11466 syscall xml file name.
11467 * data-directory/Makefile.in (SYSCALLS_FILES): Add
11468 "s390-linux.xml" and "s390x-linux.xml".
11469 * NEWS: Announce new feature.
11470
54bff650
BS
114712014-01-22 Baruch Siach <baruch@tkos.co.il>
11472
11473 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
11474
14e361d7
PA
114752014-01-22 Pedro Alves <palves@redhat.com>
11476
11477 * xtensa-config.c: Include defs.h.
11478
46bbb3ed
JB
114792014-01-22 Joel Brobecker <brobecker@adacore.com>
11480
11481 * common/common-utils.h: Add "ARI:" comment beside __func__
11482 reference.
11483
3a80edfc
JB
114842014-01-22 Joel Brobecker <brobecker@adacore.com>
11485
11486 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
11487 documentation a bit.
11488
4869db5e
RM
114892014-01-21 Roland McGrath <mcgrathr@google.com>
11490
11491 * configure.ac: Call AM_PROG_INSTALL_STRIP.
11492 * configure: Regenerate.
11493 * aclocal.m4: Regenerate.
11494 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
11495 New substituted variables.
11496 (install-strip): New target.
11497 (INSTALL_SCRIPT): New substituted variable.
11498 (FLAGS_TO_PASS): Add it.
11499 (install-only): Use $(INSTALL_SCRIPT) rather than
11500 $(INSTALL_PROGRAM) for gcore.
11501
9ea4267d
TT
115022014-01-20 Tom Tromey <tromey@redhat.com>
11503
11504 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
11505 together.
11506
1f2bdf09
TT
115072014-01-20 Tom Tromey <tromey@redhat.com>
11508
11509 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
11510 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
11511 (deprecated_cmd_warning, complete_on_cmdlist): Update.
11512 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
11513 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
11514 (struct cmd_list_element) <flags>: Remove.
11515 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
11516 doc_allocated>: New fields.
11517 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
11518 bitfields.
11519 * maint.c (maintenance_do_deprecate): Update.
11520 * top.c (execute_command): Update.
11521
e671835b
BS
115222014-01-20 Baruch Siach <baruch@tkos.co.il>
11523
11524 * xtensa-linux-nat.c: Include asm/ptrace.h.
11525
50367cd2
IB
115262014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11527
11528 * Makefile.in (SFILES): Add d-support.c.
11529 (COMMON_OBS): Add d-support.o.
11530 * d-lang.h (d_parse_symbol): Add comment, now defined in
11531 d-support.c.
11532 * d-lang.c (parse_call_convention)
11533 (parse_attributes, parse_function_types)
11534 (parse_function_args, parse_type, parse_identifier)
11535 (call_convention_p, d_parse_symbol): Move functions to ...
11536 * d-support.c: ... New file.
11537
ec9f644a
IB
115382014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11539
11540 * d-lang.h (d_parse_symbol): Add declaration.
11541 * d-lang.c (extract_identifiers)
11542 (extract_type_info): Remove functions.
11543 (parse_call_convention, parse_attributes)
11544 (parse_function_types, parse_function_args)
11545 (parse_type, parse_identifier, call_convention_p)
11546 (d_parse_symbol): New functions.
11547 (d_demangle): Use d_parse_symbol to demangle D symbols.
11548
94b1b47e
IB
115492014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11550
11551 * d-lang.h (struct builtin_d_type): New data type.
11552 (builtin_d_type): Add declaration.
11553 * d-lang.c (d_language_arch_info, build_d_types)
11554 (builtin_d_type): New functions.
11555 (enum d_primitive_types): New data type.
11556 (d_language_defn): Change c_language_arch_info to
11557 d_language_arch_info.
11558 (d_type_data): New static variable.
11559 (_initialize_d_language): Initialize d_type_data.
11560
63778547
IB
115612014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11562
11563 * d-lang.h (d_main_name): Add declaration.
11564 * d-lang.c (d_main_name): New function.
11565 * symtab.c (find_main_name): Add call to d_main_name.
11566
3271ba66
IB
115672014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11568
11569 * d-lang.c (d_language_defn): Change macro_expansion_c to
11570 macro_expansion_no.
11571
d36b3012
IB
115722014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11573
11574 * MAINTAINERS: Add myself as a write-after-approval maintainer.
11575
c90a6fb7
SDJ
115762014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
11577
11578 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
11579 gdb_exception" declaration.
11580 * remote.c (getpkt_or_notif_sane): Likewise.
11581
749234e5
DE
115822014-01-17 Doug Evans <dje@google.com>
11583
11584 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
11585 function, contents of dirnames_to_char_ptr_vec_append moved here.
11586 (delim_string_to_char_ptr_vec): New function.
11587 (dirnames_to_char_ptr_vec_append): Rewrite.
11588 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
11589
df049a58
DE
115902014-01-17 Doug Evans <dje@google.com>
11591
11592 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
11593 and moved here ...
11594 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
11595 #include "common-utils.h".
11596 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
11597 * common/vec.h (VEC_ASSERT_PASS): Update.
11598 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
11599 (MACH_CHECK_ERROR): Update.
11600
69f97648
SM
116012014-01-17 Simon Marchi <simon.marchi@ericsson.com>
11602
11603 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
11604 comments.
11605 * gdbarch.h: Regenerate.
11606
98b1cfdc
TT
116072014-01-16 Tom Tromey <tromey@redhat.com>
11608
11609 * value.c (struct value) <regnum>: Move earlier.
11610
77a19445
TT
116112014-01-16 Tom Tromey <tromey@redhat.com>
11612
11613 * remote.c (extended_remote_create_inferior): Rename from
11614 extended_remote_create_inferior_1. Add "ops" argument. Remove
11615 old implementation.
11616
62261490
PA
116172014-01-16 Pedro Alves <palves@redhat.com>
11618
11619 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
11620 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
11621 the backchain.
11622
4d65956b
DE
116232014-01-16 Doug Evans <dje@google.com>
11624
11625 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
11626
52834460
MM
116272014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11628
11629 * btrace.h (btrace_thread_flag): New.
11630 (struct btrace_thread_info) <flags>: New.
11631 * record-btrace.c (record_btrace_resume_thread)
11632 (record_btrace_find_thread_to_move, btrace_step_no_history)
11633 (btrace_step_stopped, record_btrace_start_replaying)
11634 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
11635 (record_btrace_find_resume_thread): New.
11636 (record_btrace_resume, record_btrace_wait): Extend.
11637 (record_btrace_can_execute_reverse): New.
11638 (record_btrace_open): Fail in non-stop mode.
11639 (record_btrace_set_replay): Split into this, ...
11640 (record_btrace_stop_replaying): ... this, ...
11641 (record_btrace_clear_histories): ... and this.
11642 (init_record_btrace_ops): Init to_can_execute_reverse.
11643 * NEWS: Announce it.
11644
118e6252
MM
116452014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11646
11647 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
11648 (forward_target_decr_pc_after_break)
11649 (target_decr_pc_after_break): New.
11650 * target.c (forward_target_decr_pc_after_break)
11651 (target_decr_pc_after_break): New.
11652 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
11653 instead of gdbarch_decr_pc_after_break.
11654 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11655 instead of gdbarch_decr_pc_after_break.
11656 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
11657 instead of gdbarch_decr_pc_after_break.
11658 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11659 instead of gdbarch_decr_pc_after_break.
11660 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
11661 instead of gdbarch_decr_pc_after_break.
11662 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
11663 instead of gdbarch_decr_pc_after_break.
11664
6e07b1d2
MM
116652014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11666
11667 * btrace.c: Include regcache.h.
11668 (btrace_add_pc): New.
11669 (btrace_enable): Call btrace_add_pc.
11670 (btrace_is_empty): New.
11671 * btrace.h (btrace_is_empty): New.
11672 * record-btrace.c (require_btrace, record_btrace_info): Call
11673 btrace_is_empty.
11674
969c39fb
MM
116752014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11676
11677 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
11678 Support delta reads.
11679 (linux_disable_btrace): Change return type.
11680 * common/linux-btrace.h (linux_read_btrace): Change parameters
11681 and return type to allow error reporting. Update users.
11682 (linux_disable_btrace): Change return type. Update users.
11683 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
11684 New.
11685 (btrace_error): New.
11686 (btrace_block) <begin>: Comment on BEGIN == 0.
11687 * btrace.c (btrace_compute_ftrace): Start from the end of
11688 the current trace.
11689 (btrace_stitch_trace, btrace_clear_history): New.
11690 (btrace_fetch): Read delta trace, return if replaying.
11691 (btrace_clear): Move clear history code to btrace_clear_history.
11692 (parse_xml_btrace): Throw an error if parsing failed.
11693 * target.h (struct target_ops) <to_read_btrace>: Change parameters
11694 and return type to allow error reporting.
11695 (target_read_btrace): Change parameters and return type to allow
11696 error reporting.
11697 * target.c (target_read_btrace): Update.
11698 * remote.c (remote_read_btrace): Support delta reads. Pass
11699 errors on.
11700 * NEWS: Announce it.
11701
0b722aec
MM
117022014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11703
11704 * record.h (record_btrace_frame_unwind)
11705 (record_btrace_tailcall_frame_unwind): New declarations.
11706 * dwarf2-frame: Include record.h
11707 (dwarf2_frame_cfa): Throw an error for btrace frames.
11708 * record-btrace.c: Include hashtab.h.
11709 (btrace_get_bfun_name): New.
11710 (btrace_call_history): Call btrace_get_bfun_name.
11711 (struct btrace_frame_cache): New.
11712 (bfcache): New.
11713 (bfcache_hash, bfcache_eq, bfcache_new): New.
11714 (btrace_get_frame_function): New.
11715 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
11716 (record_btrace_frame_this_id): Compute own id.
11717 (record_btrace_frame_prev_register): Provide PC, throw_error
11718 for all other registers.
11719 (record_btrace_frame_sniffer): Detect btrace frames.
11720 (record_btrace_tailcall_frame_sniffer): New.
11721 (record_btrace_frame_dealloc_cache): New.
11722 (record_btrace_frame_unwind): Add new functions.
11723 (record_btrace_tailcall_frame_unwind): New.
11724 (_initialize_record_btrace): Allocate cache.
11725 * btrace.c (btrace_clear): Call reinit_frame_cache.
11726 * NEWS: Announce it.
11727
066ce621
MM
117282014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11729
11730 * record-btrace.c (record_btrace_set_replay)
11731 (record_btrace_goto_begin, record_btrace_goto_end)
11732 (record_btrace_goto): New.
11733 (init_record_btrace_ops): Initialize them.
11734 * NEWS: Announce it.
11735
e2887aa3
MM
117362014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11737
11738 * record-btrace.c (record_btrace_find_new_threads)
11739 (record_btrace_thread_alive): New.
11740 (init_record_btrace_ops): Initialize to_find_new_threads and
11741 to_thread_alive.
11742
b2f4cfde
MM
117432014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11744
11745 * record-btrace.c (record_btrace_resume): New.
11746 (record_btrace_wait): New.
11747 (init_record_btrace_ops): Initialize to_wait and to_resume.
11748
633785ff
MM
117492014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11750
11751 * record-btrace.c (record_btrace_xfer_partial)
11752 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
11753 (record_btrace_allow_memory_access): New.
11754 (init_record_btrace_ops): Initialize new methods.
11755 * target.c (raw_memory_xfer_partial): Bail out if target reports
11756 that this memory is not available.
11757
3db08215
MM
117582014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11759
11760 * target.h (target_ops) <to_insert_breakpoint>
11761 <to_remove_breakpoint>: Add target_ops parameter.
11762 (forward_target_insert_breakpoint): New.
11763 (forward_target_remove_breakpoint): New.
11764 (memory_remove_breakpoint, memory_insert_breakpoint):
11765 Add target_ops parameter.
11766 * target.c (target_insert_breakpoint): Split into this and ...
11767 (forward_target_insert_breakpoint): ... this.
11768 (target_remove_breakpoint): Split into this and ...
11769 (forward_target_remove_breakpoint): ... this.
11770 (debug_to_insert_breakpoint): Add target_ops parameter.
11771 Call forward_target_insert_breakpoint.
11772 (debug_to_remove_breakpoint): Add target_ops parameter.
11773 Call forward_target_remove_breakpoint.
11774 (update_current_target): Do not inherit or default to_insert_breakpoint
11775 and to_remove_breakpoint.
11776 * corelow.c (ignore): Add target_ops parameter.
11777 * exec.c (ignore): Add target_ops parameter.
11778 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
11779 Add target_ops parameter.
11780 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
11781 Add target_ops parameter.
11782 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
11783 Add target_ops parameter.
11784 * record-full.c (record_full_beneath_to_insert_breakpoint)
11785 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
11786 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
11787 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
11788 (record_full_core_remove_breakpoint): Add target_ops parameter.
11789 Update users.
11790 (record_full_beneath_to_insert_breakpoint_ops)
11791 (record_full_beneath_to_remove_breakpoint_ops)
11792 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
11793 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
11794 tmp_to_remove_breakpoint_ops,
11795 record_full_beneath_to_insert_breakpoint_ops, and
11796 record_full_beneath_to_remove_breakpoint_ops.
11797 * remote-m32r-sdi.c (m32r_insert_breakpoint)
11798 (m32r_remove_breakpoint): Add target_ops parameter.
11799 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
11800 Add target_ops parameter.
11801 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
11802 Add target_ops parameter.
11803
cecac1ab
MM
118042014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11805 Markus Metzger <markus.t.metzger@intel.com>
11806
11807 * record-btrace.c: Include frame-unwind.h.
11808 (record_btrace_frame_unwind_stop_reason)
11809 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
11810 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
11811 New.
11812 (init_record_btrace_ops): Install it.
11813
824344ca
MM
118142014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11815
11816 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
11817 get_prev_frame_1.
11818
32261e52
MM
118192014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11820
11821 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
11822 earlier.
11823
ea001bdc
MM
118242014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11825
11826 * frame-unwind.c: Include target.h.
11827 (frame_unwind_try_unwinder): New function with code from ...
11828 (frame_unwind_find_by_frame): ... here. New variable
11829 unwinder_from_target, call also target_get_unwinder)
11830 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
11831 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
11832 * target.h (struct target_ops): New fields to_get_unwinder and
11833 to_get_tailcall_unwinder.
11834 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
11835
1f3ef581
MM
118362014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11837
11838 * record-btrace.c (record_btrace_fetch_registers)
11839 (record_btrace_store_registers)
11840 (record_btrace_to_prepare_to_store): New.
11841 (init_record_btrace_ops): Add the above.
11842
f32dbf8c
MM
118432014-01-16 Tom Tromey <tromey@redhat.com>
11844
11845 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
11846 * target.h (struct target_ops) <to_prepare_to_store>: Add
11847 argument.
11848 (target_prepare_to_store): Add argument.
11849 * target.c (debug_to_prepare_to_store): Add argument.
11850 (update_current_target): Update.
11851 * remote.c (remote_prepare_to_store): Add 'self' argument.
11852 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
11853 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
11854 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
11855 * record-full.c (record_full_core_prepare_to_store): Add 'self'
11856 argument.
11857 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
11858 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
11859 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
11860 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
11861 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
11862
07bbe694
MM
118632014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11864
11865 * btrace.h (replay) <replay>: New.
11866 (btrace_is_replaying): New.
11867 * btrace.c (btrace_clear): Free replay iterator.
11868 (btrace_is_replaying): New.
11869 * record-btrace.c (record_btrace_is_replaying): New.
11870 (record_btrace_info): Print insn number if replaying.
11871 (record_btrace_insn_history): Start at replay position.
11872 (record_btrace_call_history): Start at replay position.
11873 (init_record_btrace_ops): Init to_record_is_replaying.
11874
0688d04e
MM
118752014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11876
11877 * record-btrace.c (record_btrace_insn_history_range): Include
11878 end.
11879 (record_btrace_insn_history_from): Adjust range.
11880 (record_btrace_call_history_range): Include
11881 end.
11882 (record_btrace_call_history_from): Adjust range.
11883 * NEWS: Announce changes.
11884
8710b709
MM
118852014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11886
11887 * record.h (enum record_print_flag)
11888 <record_print_indent_calls>: New.
11889 * record.c (get_call_history_modifiers): Recognize /c modifier.
11890 (_initialize_record): Document /c modifier.
11891 * record-btrace.c (btrace_call_history): Add btinfo parameter.
11892 Reorder fields. Optionally indent the function name. Update
11893 all users.
11894 * NEWS: Announce changes.
11895
d0fa7535
MM
118962014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11897
11898 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
11899
5de9129b
MM
119002014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11901
11902 * btrace.c (ftrace_new_function): Start counting at one.
11903 * record-btrace.c (record_btrace_info): Adjust number of calls
11904 and insns.
11905 * NEWS: Announce it.
11906
7acbe133
MM
119072014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11908
11909 * record-btrace.c (btrace_call_history_insn_range): Print
11910 insn range as [begin, end].
11911
23a7fe75
MM
119122014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11913
11914 * btrace.h (struct btrace_func_link): New.
11915 (enum btrace_function_flag): New.
11916 (struct btrace_inst): Rename to ...
11917 (struct btrace_insn): ...this. Update all users.
11918 (struct btrace_func) <ibegin, iend>: Remove.
11919 (struct btrace_func_link): New.
11920 (struct btrace_func): Rename to ...
11921 (struct btrace_function): ...this. Update all users.
11922 (struct btrace_function) <segment, flow, up, insn, insn_offset)
11923 (number, level, flags>: New.
11924 (struct btrace_insn_iterator): Rename to ...
11925 (struct btrace_insn_history): ...this.
11926 Update all users.
11927 (struct btrace_insn_iterator, btrace_call_iterator): New.
11928 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
11929 (struct btrace_target_info) <begin, end, level>
11930 <insn_history, call_history>: New.
11931 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11932 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11933 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11934 (btrace_call_number, btrace_call_begin, btrace_call_end)
11935 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11936 (btrace_find_function_by_number, btrace_set_insn_history)
11937 (btrace_set_call_history): New.
11938 * btrace.c (btrace_init_insn_iterator)
11939 (btrace_init_func_iterator, compute_itrace): Remove.
11940 (ftrace_print_function_name, ftrace_print_filename)
11941 (ftrace_skip_file): Change
11942 parameter to const.
11943 (ftrace_init_func): Remove.
11944 (ftrace_debug): Use new btrace_function fields.
11945 (ftrace_function_switched): Also consider gaining and
11946 losing symbol information).
11947 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
11948 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
11949 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
11950 New.
11951 (ftrace_new_function): Move. Remove debug print.
11952 (ftrace_update_lines, ftrace_update_insns): New.
11953 (ftrace_update_function): Check for call, ret, and jump.
11954 (compute_ftrace): Renamed to ...
11955 (btrace_compute_ftrace): ...this. Rewritten to compute call
11956 stack.
11957 (btrace_fetch, btrace_clear): Updated.
11958 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11959 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11960 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11961 (btrace_call_number, btrace_call_begin, btrace_call_end)
11962 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11963 (btrace_find_function_by_number, btrace_set_insn_history)
11964 (btrace_set_call_history): New.
11965 * record-btrace.c (require_btrace): Use new btrace thread
11966 info fields.
11967 (record_btrace_info, btrace_insn_history)
11968 (record_btrace_insn_history, record_btrace_insn_history_range):
11969 Use new btrace thread info fields and new iterator.
11970 (btrace_func_history_src_line): Rename to ...
11971 (btrace_call_history_src_line): ...this. Use new btrace
11972 thread info fields.
11973 (btrace_func_history): Rename to ...
11974 (btrace_call_history): ...this. Use new btrace thread info
11975 fields and new iterator.
11976 (record_btrace_call_history, record_btrace_call_history_range):
11977 Use new btrace thread info fields and new iterator.
11978
8372a7cb
MM
119792014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11980
11981 * frame.h (frame_id_build_unavailable_stack_special): New.
11982 * frame.c (frame_id_build_unavailable_stack_special): New.
11983
c2170eef
MM
119842014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11985
11986 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
11987 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
11988 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
11989 to gdbarch.
11990 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
11991 (i386_insn_is_jump, i386_jmp_p): New.
11992 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
11993 insn_is_jump to gdbarch.
11994 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
11995 * gdbarch.h: Regenerated.
11996 * gdbarch.c: Regenerated.
11997 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
11998 (default_insn_is_jump): New.
11999 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
12000 (default_insn_is_jump): New.
12001
864089d2
MM
120022014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12003
12004 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
12005 Change to ...
12006 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
12007 (btrace_read_type) <btrace_read_new>: Change to ...
12008 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
12009
ed9edfb5
MM
120102014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12011
12012 * common/linux-btrace.c (linux_read_btrace): Free trace from
12013 previous iteration.
12014
fbcbc3fd
DE
120152014-01-15 Doug Evans <dje@google.com>
12016
12017 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
12018 uint32_t.
12019
3d548a53
TT
120202014-01-15 Tom Tromey <tromey@redhat.com>
12021
12022 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
12023 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
12024 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
12025 (set_objfile_main_name): New function.
12026 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
12027 language_of_main>: New fields.
12028 (set_objfile_main_name): Declare.
12029 * symtab.c (find_main_name): Loop over objfiles to find the main
12030 name and language.
12031 (set_main_name): Now static.
12032 (get_main_info): Add comment.
12033 * symtab.h (set_main_name): Don't declare.
12034
32ac0d11
TT
120352014-01-15 Tom Tromey <tromey@redhat.com>
12036
12037 * symtab.c (main_progspace_key): New global.
12038 (struct main_info): New.
12039 (name_of_main, language_of_main): Remove.
12040 (get_main_info, main_info_cleanup): New function.
12041 (set_main_name, main_name, main_language): Use get_main_info.
12042 (_initialize_symtab): Initialize main_progspace_key.
12043
9e6c82ad
TT
120442014-01-15 Tom Tromey <tromey@redhat.com>
12045
12046 * dbxread.c (process_one_symbol): Update.
12047 * dwarf2read.c (read_partial_die): Update.
12048 * symfile.c (set_initial_language): Call main_language.
12049 * symtab.c (language_of_main): Now static.
12050 (set_main_name): Add 'lang' parameter.
12051 (find_main_name): Update.
12052 (main_language): New function.
12053 (symtab_observer_executable_changed): Update.
12054 * symtab.h (set_main_name): Update.
12055 (language_of_main): Remove.
12056 (main_language): Declare.
12057
6ef55de7
TT
120582014-01-15 Tom Tromey <tromey@redhat.com>
12059
12060 * symfile.c (init_entry_point_info): Use new "initialized" field.
12061 Update.
12062 * objfiles.h (struct entry_point) <initialized>: New field.
12063 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
12064 (struct objfile) <ei>: ...here. Remove.
12065 * objfiles.c (entry_point_address_query): Update.
12066
53eddfa6
TT
120672014-01-15 Tom Tromey <tromey@redhat.com>
12068
12069 * objfiles.c (entry_point_address_query): Relocate entry point
12070 address.
12071 (objfile_relocate1): Do not relocate entry point address.
12072 * objfiles.h (struct entry_info) <entry_point>: Update comment.
12073 <the_bfd_section_index>: New field.
12074 * symfile.c (init_entry_point_info): Find the entry point's
12075 section.
12076
d56e56aa
TT
120772014-01-15 Tom Tromey <tromey@redhat.com>
12078
12079 * solib-frv.c (enable_break): Use entry_point_address_query.
12080
33a97bbe
OJ
120812014-01-15 Omair Javaid <omair.javaid@linaro.org>
12082
12083 * NEWS: Add note on improved process record-replay on
12084 arm*-linux* targets.
12085
c6ec2b30
OJ
120862014-01-15 Omair Javaid <omair.javaid@linaro.org>
12087
12088 * arm-tdep.c (enum arm_record_result): New enum.
12089 (arm_record_unsupported_insn): New function.
12090 (arm_record_coproc_data_proc): Removed.
12091 (thumb2_record_ld_st_multiple): New function.
12092 (thumb2_record_ld_st_dual_ex_tbb): New function.
12093 (thumb2_record_data_proc_sreg_mimm): New function.
12094 (thumb2_record_ps_dest_generic): New function.
12095 (thumb2_record_branch_misc_cntrl): New function.
12096 (thumb2_record_str_single_data): New function.
12097 (thumb2_record_ld_mem_hints): New function.
12098 (thumb2_record_ld_word): New function.
12099 (thumb2_record_lmul_lmla_div): New function.
12100 (thumb2_record_decode_insn_handler): New function.
12101 (decode_insn): Add thumb32 instruction handlers.
12102
97dfe206
OJ
121032014-01-15 Omair Javaid <omair.javaid@linaro.org>
12104
12105 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
12106 (struct arm_linux_record_tdep): Declare.
12107 (arm_canonicalize_syscall): New function.
12108 (arm_all_but_pc_registers_record): New function.
12109 (arm_linux_syscall_record): New function.
12110 (arm_linux_init_abi): Add syscall recording constructs.
12111 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
12112 decoding. (arm_record_coproc_data_proc): Update arm syscall
12113 decoding.
12114 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
12115 <arm_syscall_record>: New field.
12116 * configure.tgt (arm*-*-linux*): Add linux-record.o to
12117 gdb_target_obs.
12118
9904a494
OJ
121192014-01-15 Omair Javaid <omair.javaid@linaro.org>
12120
12121 * arm-tdep.c (thumb_record_misc): Update to use sp as base
12122 register for push instruction recording.
12123
f969241e
OJ
121242014-01-15 Omair Javaid <omair.javaid@linaro.org>
12125
12126 * arm-tdep.c (thumb_record_misc): Update to correct logical
12127 error while recording ldm, ldmia and pop instructions.
12128
bfbbec00
OJ
121292014-01-15 Omair Javaid <omair.javaid@linaro.org>
12130
12131 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
12132
e40adcc9
PA
121332014-01-15 Pedro Alves <palves@redhat.com>
12134
12135 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
12136 (go32_resume, go32_fetch_registers, store_register)
12137 (go32_store_registers, go32_prepare_to_store)
12138 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
12139 (go32_create_inferior, go32_can_run, go32_terminal_init)
12140 (go32_terminal_inferior, go32_terminal_ours): Delete forward
12141 declarations.
12142
b0a16e66
TT
121432014-01-15 Tom Tromey <tromey@redhat.com>
12144
12145 * target.h (async_callback_ftype): New typedef.
12146 (struct target_ops) <to_async>: Use it.
12147
bf7105a4
JB
121482014-01-15 Joel Brobecker <brobecker@adacore.com>
12149
12150 * python/py-value.c (get_field_type): Remove unnecessary curly
12151 braces for single-statement if block.
12152
a8f35c2e
JB
121532014-01-15 Joel Brobecker <brobecker@adacore.com>
12154
12155 * python/py-type.c (convert_field): Add missing empty line
12156 after declarations.
12157
bb4142cf
DE
121582014-01-14 Doug Evans <dje@google.com>
12159
12160 * symfile.h (expand_symtabs_matching): Renamed from
12161 expand_partial_symbol_names. Update prototype.
12162 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
12163 * symfile.c (expand_symtabs_matching): Renamed from
12164 expand_partial_symbol_names. New args file_matcher, kind.
12165 Rename arg fun to symbol_matcher.
12166 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
12167 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
12168 ada_expand_partial_symbol_name.
12169 (ada_make_symbol_completion_list): Update to call
12170 expand_symtabs_matching.
12171 (ada_add_global_exceptions): Call expand_symtabs_matching.
12172 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
12173 call map_symbol_filenames.
12174 * symtab.c (sources_info): Update to call map_symbol_filenames.
12175 (search_symbols): Call expand_symtabs_matching.
12176 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
12177 (default_make_symbol_completion_list_break_on): Update to call
12178 expand_symtabs_matching.
12179 (make_source_files_completion_list): Update to call
12180 map_symbol_filenames.
12181
206f2a57
DE
121822014-01-14 Doug Evans <dje@google.com>
12183
12184 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
12185 (expand_symtabs_symbol_matcher_ftype): New typedef.
12186 (quick_symbol_functions.expand_symtabs_matching): Update to use.
12187 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12188 * symfile.c (expand_partial_symbol_names): Update to use
12189 expand_symtabs_symbol_matcher_ftype.
12190 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
12191 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12192 Arg name_matcher renamed to symbol_matcher.
12193 * psymtab.c (recursively_search_psymtabs): Update to use
12194 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
12195 sym_matcher.
12196 (expand_symtabs_matching_via_partial): Update to use
12197 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12198 Arg name_matcher renamed to symbol_matcher.
12199
540c2971
DE
122002014-01-14 Doug Evans <dje@google.com>
12201
12202 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
12203 (map_partial_symbol_filenames): Ditto.
12204 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
12205 (map_partial_symbol_filenames): Ditto.
12206 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
12207 (map_partial_symbol_filenames): Ditto.
12208 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
12209 (map_partial_symbol_filenames): Ditto.
12210 * symtab.c: Delete #include "psymtab.h".
12211
8213266a
PA
122122014-01-14 Pedro Alves <palves@redhat.com>
12213 Tom Tromey <tromey@redhat.com>
12214
12215 * infrun.c (use_displaced_stepping): Use find_record_target
12216 instead of RECORD_IS_USED.
12217 (adjust_pc_after_break): Use record_full_is_used instead of
12218 RECORD_IS_USED.
12219 * record-btrace.c (record_btrace_open): Call record_preopen
12220 instead of checking RECORD_IS_USED.
12221 * record-full.c (record_full_shortname)
12222 (record_full_core_shortname): New globals.
12223 (record_full_is_used): New function.
12224 (find_full_open): Call record_preopen instead of checking
12225 RECORD_IS_USED.
12226 (init_record_full_ops): Set the target's shortname to
12227 record_full_shortname.
12228 (init_record_full_core_ops): Set the target's shortname to
12229 record_full_core_shortname.
12230 * record-full.h (record_full_is_used): Declare.
12231 * record.c (find_record_target): Make extern.
12232 (record_preopen): New function.
12233 * record.h (RECORD_IS_USED): Delete macro.
12234 (find_record_target, record_preopen): Declare functions.
12235
7ec1862d
YQ
122362014-01-14 Yao Qi <yao@codesourcery.com>
12237
12238 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
12239 'len''s type to ULONGEST.
12240 (core_xfer_shared_libraries_aix): Likewise.
12241 * gdbarch.c, gdbarch.h: Regenerated.
12242 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
12243 Change type of 'len' to ULONGEST.
12244 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12245 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
12246
dea80a27
YQ
122472014-01-14 Yao Qi <yao@codesourcery.com>
12248
12249 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
12250 type of 'len' to ULONGEST.
12251 (linux_xfer_osdata_processgroups): Likewise.
12252 (linux_xfer_osdata_threads): Likewise.
12253 (linux_xfer_osdata_fds): Likewise.
12254 (linux_xfer_osdata_isockets): Likewise.
12255 (linux_xfer_osdata_shm): Likewise.
12256 (linux_xfer_osdata_sem): Likewise.
12257 (linux_xfer_osdata_msg): Likewise.
12258 (linux_common_xfer_osdata): Likewise.
12259 (struct osdata_type) <getter>: Likewise.
12260 * common/linux-osdata.h (linux_common_xfer_osdata): Update
12261 the declaration.
12262
b55e14c7
YQ
122632014-01-14 Yao Qi <yao@codesourcery.com>
12264
12265 * target.h (target_xfer_partial_ftype): Update.
12266 (struct target_ops) <to_xfer_partial>: Change 'len' type to
12267 ULONGEST.
12268 * aix-thread.c (aix_thread_xfer_partial): Change type of
12269 argument 'len' to ULONGEST.
12270 * auxv.c (procfs_xfer_auxv): Likewise.
12271 (ld_so_xfer_auxv): Likewise.
12272 (memory_xfer_auxv): Likewise.
12273 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12274 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12275 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
12276 * corelow.c (core_xfer_partial): Likewise.
12277 * ctf.c (ctf_xfer_partial): Likewise.
12278 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
12279 '%u'.
12280 (darwin_read_dyld_info): Likewise.
12281 (darwin_xfer_partial): Likewise.
12282 * exec.c (section_table_xfer_memory_partial): Likewise.
12283 (exec_xfer_partial): Likewise.
12284 * exec.h (section_table_xfer_memory_partial): Update
12285 declaration.
12286 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
12287 instead of plongest.
12288 (gnu_xfer_partial): Likewise.
12289 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
12290 (ia64_hpux_xfer_solib_got): Likewise.
12291 (ia64_hpux_xfer_partial): Likewise.
12292 * ia64-linux-nat.c (ia64_linux_xfer_partial):
12293 * inf-ptrace.c (inf_ptrace_xfer_partial):
12294 * inf-ttrace.c (inf_ttrace_xfer_partial):
12295 * linux-nat.c (linux_xfer_siginfo): Likewise.
12296 (linux_nat_xfer_partial): Likewise.
12297 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
12298 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
12299 * monitor.c (monitor_xfer_memory): Likewise.
12300 (monitor_xfer_partial): Likewise.
12301 * procfs.c (procfs_xfer_partial): Likewise.
12302 * record-full.c (record_full_xfer_partial): Likewise.
12303 (record_full_core_xfer_partial): Likewise.
12304 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
12305 instead of plongest.
12306 (gdbsim_xfer_partial): Likewise.
12307 * remote.c (remote_xfer_partial): Likewise.
12308 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12309 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12310 declaration.
12311 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12312 (rs6000_xfer_shared_libraries): Likewise.
12313 * sol-thread.c (sol_thread_xfer_partial): Likewise.
12314 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12315 (sparc_xfer_partial): Likewise.
12316 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12317 (spu_xfer_partial): Likewise.
12318 * spu-multiarch.c (spu_xfer_partial): Likewise.
12319 * target.c (target_read_live_memory): Likewise.
12320 (memory_xfer_live_readonly_partial): Likewise.
12321 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
12322 (target_xfer_partial, default_xfer_partial): Likewise.
12323 (current_xfer_partial): Likewise.
12324 * tracepoint.c (tfile_xfer_partial): Likewise.
12325 * windows-nat.c (windows_xfer_memory): Likewise. Call
12326 pulongest instead of plongest.
12327 (windows_xfer_partial): Likewise.
12328 (windows_xfer_shared_libraries): Likewise.
12329
05804640
YQ
123302014-01-14 Yao Qi <yao@codesourcery.com>
12331
12332 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
12333 target_xfer_partial_ftype.
12334
b5b08fb4
SC
123352014-01-13 Siva Chandra Reddy <sivachandra@google.com>
12336
12337 PR python/15464
12338 PR python/16113
12339 * valops.c (value_struct_elt_bitpos): New function
12340 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
12341 object to 'None' if the field name is an empty string ("").
12342 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
12343 attribute to look for a field when 'name' is 'None'.
12344 (get_field_type): New function
12345
13aaf454
DE
123462014-01-13 Doug Evans <dje@google.com>
12347
12348 PR symtab/16426
12349 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
12350 (try_open_dwop_file): Ditto.
12351 * gdb_bfd.c: #include "vec.h".
12352 (bfdp): New typedef.
12353 (struct gdb_bfd_data): New member included_bfds.
12354 (gdb_bfd_unref): Unref all included bfds.
12355 (gdb_bfd_record_inclusion): New function.
12356 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
12357
c2cec97c
TT
123582014-01-13 Tom Tromey <tromey@redhat.com>
12359
12360 * gdbcore.h (deprecated_core_resize_section_table): Remove.
12361
78e5999d
TT
123622014-01-13 Tom Tromey <tromey@redhat.com>
12363
12364 * defs.h (use_windows): Remove.
12365 * gdb.c (main): Update.
12366 * main.c (captured_main, gdb_main): Update.
12367 * main.h (struct captured_main_args) <use_windows>: Remove.
12368 * top.c (use_windows): Remove.
12369
f2052bbe
TT
123702014-01-13 Tom Tromey <tromey@redhat.com>
12371
12372 * defs.h (deprecated_flush_hook): Remove.
12373
fde4f8ed
JK
123742014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12375
12376 PR threads/16216
12377 * linux-thread-db.c (try_thread_db_load): Add parameter
12378 check_auto_load_safe. Move here the file_is_auto_load_safe call.
12379 (try_thread_db_load_from_pdir_1): Move it there from here.
12380 (try_thread_db_load_from_sdir): Update caller.
12381 (try_thread_db_load_from_dir): Move it there from here.
12382
bdf61915
PP
123832014-01-13 Patrick Palka <patrick@parcs.ath.cx>
12384
12385 * regformats/regdat.sh: Always rewrite the register file.
12386
f71e1a8d
PA
123872014-01-13 Pedro Alves <palves@redhat.com>
12388
12389 * Makefile.in (CHECK_HEADERS): New variable.
12390 (check-headers:): New rule.
12391
42c85435
TT
123922014-01-13 Tom Tromey <tromey@redhat.com>
12393
12394 * cli/cli-setshow.c (do_set_command): Update.
12395 * defs.h (deprecated_set_hook): Remove.
12396 * top.c (deprecated_set_hook): Remove.
12397
f8de5129
PA
123982014-01-13 Pedro Alves <palves@redhat.com>
12399
12400 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
12401 the tracepoint if the PC is a pseudo-register.
12402
fc270c35
TT
124032014-01-13 Tom Tromey <tromey@redhat.com>
12404
12405 * defs.h (XCALLOC): Remove.
12406 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
12407 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
12408 * dwarf2loc.c (allocate_piece_closure): Likewise.
12409 * elfread.c (elf_symfile_segments): Likewise.
12410 (elf_symfile_segments): Likewise.
12411 * gdbtypes.c (copy_type_recursive): Likewise.
12412 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
12413 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
12414 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
12415 XCALLOC.
12416 * mt-tdep.c (mt_gdbarch_init): Likewise.
12417 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
12418 XCALLOC.
12419 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
12420 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
12421 * registry.c (registry_alloc_data): Likewise.
12422 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
12423 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
12424 * serial.c (serial_fdopen_ops): Likewise.
12425 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
12426 XCALLOC.
12427 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
12428 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
12429 not XCALLOC.
12430
70ba0933
TT
124312014-01-13 Tom Tromey <tromey@redhat.com>
12432
12433 * defs.h (XMALLOC): Remove.
12434 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
12435 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
12436 * cli-out.c (struct ui_out *): Likewise.
12437 * cli/cli-dump.c (add_dump_command): Likewise.
12438 (add_dump_command): Likewise.
12439 * complaints.c (get_complaints): Likewise.
12440 (find_complaint): Likewise.
12441 * dwarf2-frame.c (execute_cfa_program): Likewise.
12442 * dwarf2read.c (abbrev_table_read_table): Likewise.
12443 * gdbarch.sh: Likewise.
12444 * gdbarch.c: Rebuild.
12445 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
12446 * interps.c (interp_new): Likewise.
12447 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
12448 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
12449 * mi/mi-console.c (mi_console_file_new): Likewise.
12450 * mi/mi-interp.c (mi_interpreter_init): Likewise.
12451 * mi/mi-out.c (mi_out_new): Likewise.
12452 * mi/mi-parse.c (mi_parse): Likewise.
12453 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
12454 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
12455 * observer.c (xalloc_observer_list_node): Likewise.
12456 * regcache.c (regcache_xmalloc_1): Likewise.
12457 * reggroups.c (reggroup_new): Likewise.
12458 (_initialize_reggroup): Likewise.
12459 * registry.c (register_data_with_cleanup): Likewise.
12460 * remote.c (remote_notif_stop_alloc_reply): Likewise.
12461 * ser-base.c (serial_ttystate): Likewise.
12462 * ser-mingw.c (make_pipe_state): Likewise.
12463 * ser-pipe.c (pipe_open): Likewise.
12464 * serial.c (serial_open): Likewise.
12465 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
12466 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
12467 (tui_alloc_win_info): Likewise.
12468 (tui_add_content_elements): Likewise.
12469 * tui/tui-file.c (tui_file_new): Likewise.
12470 * tui/tui-out.c (tui_out_new): Likewise.
12471 * ui-file.c (mem_file_new): Likewise.
12472 * ui-out.c (push_level): Likewise.
12473 (make_cleanup_ui_out_end): Likewise.
12474 (append_header_to_list): Likewise.
12475 (ui_out_new): Likewise.
12476 * user-regs.c (user_reg_add_builtin): Likewise.
12477
41bf6aca
TT
124782014-01-13 Tom Tromey <tromey@redhat.com>
12479
12480 * defs.h (XZALLOC): Remove.
12481 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
12482 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
12483 (get_ada_tasks_inferior_data): Likewise.
12484 * auto-load.c (get_auto_load_pspace_data): Likewise.
12485 * auxv.c (get_auxv_inferior_data): Likewise.
12486 * bfd-target.c (target_bfd_reopen): Likewise.
12487 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
12488 (deprecated_insert_raw_breakpoint): Likewise.
12489 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
12490 * corelow.c (core_open): Likewise.
12491 * darwin-nat.c (darwin_check_new_threads): Likewise.
12492 (darwin_attach_pid): Likewise.
12493 * dummy-frame.c (dummy_frame_push): Likewise.
12494 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
12495 * dwarf2loc.c (allocate_piece_closure): Likewise.
12496 * elfread.c (elf_symfile_segments): Likewise.
12497 * eval.c (ptrmath_type_p): Likewise.
12498 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
12499 * gdbtypes.c (alloc_type_arch): Likewise.
12500 (alloc_type_instance): Likewise.
12501 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
12502 * inf-child.c (inf_child_can_use_agent): Likewise.
12503 * inflow.c (get_inflow_inferior_data): Likewise.
12504 * infrun.c (save_infcall_suspend_state): Likewise.
12505 * jit.c (jit_reader_load): Likewise.
12506 (get_jit_objfile_data): Likewise.
12507 (get_jit_program_space_data): Likewise.
12508 (jit_object_open_impl): Likewise.
12509 (jit_symtab_open_impl): Likewise.
12510 (jit_block_open_impl): Likewise.
12511 (jit_frame_sniffer): Likewise.
12512 * linux-fork.c (add_fork): Likewise.
12513 * maint.c (make_command_stats_cleanup): Likewise.
12514 * objfiles.c (get_objfile_pspace_data): Likewise.
12515 * opencl-lang.c (struct lval_closure): Likewise.
12516 * osdata.c (osdata_start_osdata): Likewise.
12517 * progspace.c (new_address_space): Likewise.
12518 (add_program_space): Likewise.
12519 * remote-sim.c (get_sim_inferior_data): Likewise.
12520 * sh-tdep.c (sh_gdbarch_init): Likewise.
12521 * skip.c (Ignore): Likewise.
12522 (skip_delete_command): Likewise.
12523 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
12524 (library_list_start_library): Likewise.
12525 (solib_aix_current_sos): Likewise.
12526 * solib-darwin.c (get_darwin_info): Likewise.
12527 (darwin_current_sos): Likewise.
12528 * solib-dsbt.c (get_dsbt_info): Likewise.
12529 * solib-ia64-hpux.c (new_so_list): Likewise.
12530 (ia64_hpux_get_solib_linkage_addr): Likewise.
12531 * solib-spu.c (append_ocl_sos): Likewise.
12532 (spu_current_sos): Likewise.
12533 * solib-svr4.c (get_svr4_info): Likewise.
12534 (svr4_keep_data_in_core): Likewise.
12535 (library_list_start_library): Likewise.
12536 (svr4_default_sos): Likewise.
12537 (svr4_read_so_list): Likewise.
12538 * solib-target.c (library_list_start_library): Likewise.
12539 (solib_target_current_sos): Likewise.
12540 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
12541 * symfile-debug.c (install_symfile_debug_logging): Likewise.
12542 * symfile.c (default_symfile_segments): Likewise.
12543 * target-descriptions.c (tdesc_data_init): Likewise.
12544 (tdesc_create_reg): Likewise.
12545 (struct tdesc_type *): Likewise.
12546 (tdesc_create_vector): Likewise.
12547 (tdesc_set_struct_size): Likewise.
12548 (struct tdesc_type *): Likewise.
12549 (tdesc_free_feature): Likewise.
12550 (tdesc_create_feature): Likewise.
12551 * windows-nat.c (windows_add_thread): Likewise.
12552 (windows_make_so): Likewise.
12553 * xml-support.c (gdb_xml_body_text): Likewise.
12554 (gdb_xml_create_parser_and_cleanup): Likewise.
12555 (xml_process_xincludes): Likewise.
12556 * xml-syscall.c (allocate_syscalls_info): Likewise.
12557 (syscall_create_syscall_desc): Likewise.
12558
5acfdbae
SDJ
125592014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
12560
12561 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
12562 function, with code from i386_stap_parse_special_token.
12563 (i386_stap_parse_special_token_three_arg_disp): Likewise.
12564 (i386_stap_parse_special_token): Move code to the two functions
12565 above; simplify it.
12566
0000e5cc
PA
125672014-01-09 Pedro Alves <palves@redhat.com>
12568 Hui Zhu <hui@codesourcery.com>
12569
12570 PR gdb/16101
12571 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
12572 bp_err_string. Don't mark the location shlib_disabled if the
12573 error thrown wasn't a generic or memory error. Catch errors
12574 thrown while inserting breakpoints in overlayed code. Output
12575 error message of software breakpoints.
12576 * remote.c (remote_insert_breakpoint): If this breakpoint has
12577 target-side commands but this stub doesn't support Z0 packets,
12578 throw NOT_SUPPORTED_ERROR error.
12579 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
12580 * target.h (target_insert_breakpoint): Extend comment.
12581 (target_insert_hw_breakpoint): Add comment.
12582
b7ea362b
PA
125832014-01-08 Pedro Alves <palves@redhat.com>
12584
12585 * remote.c (remote_add_thread): Add threads silently if starting
12586 up.
12587 (remote_notice_new_inferior): If in all-stop, and starting up,
12588 don't call notice_new_inferior.
12589 (get_current_thread): New function, factored out from ...
12590 (add_current_inferior_and_thread): ... this. Adjust.
12591 (remote_start_remote) <all-stop>: Fetch the thread list. If we
12592 found any thread, then select the remote's current thread as GDB's
12593 current thread too.
12594
b7bba001
JB
125952014-01-08 Joel Brobecker <brobecker@adacore.com>
12596
12597 * NEWS: Create a new section for the next release branch.
12598 Rename the section of the current branch, now that it has
12599 been cut.
12600
16dfbded
JB
126012014-01-08 Joel Brobecker <brobecker@adacore.com>
12602
12603 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
12604 * version.in: Bump version to 7.7.50.DATE-cvs.
12605
22c90ac1
YQ
126062014-01-08 Yao Qi <yao@codesourcery.com>
12607
12608 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
12609 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
12610 (spu_xfer_partial): Cast 'buf' to 'const char *'.
12611
d64ad97c
YQ
126122014-01-08 Yao Qi <yao@codesourcery.com>
12613
12614 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
12615 return value of bfd_get_filename to symbol_file_add_from_bfd.
12616
f93ba80c
PM
126172014-01-08 Pierre Muller <muller@sourceware.org>
12618
12619 Fix PR16201.
12620 * coff-pe-read.c (struct read_pe_section_data): Add index field.
12621 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
12622 to prim_record_mininal_symbol_and_info.
12623 (add_pe_forwarded_sym): Use known section number of forwarded symbol
12624 in call to prim_record_minimal_symbol_and_info.
12625 (read_pe_exported_syms): Set index field of section_data.
12626
a4d9ba85
AP
126272014-01-07 Andrew Pinski <apinski@cavium.com>
12628
12629 * features/aarch64-core.xml (cpsr): Change to be 64bit.
12630 * features/aarch64.c: Regenerate.
12631
1b67eb02
AS
126322014-01-07 Andreas Schwab <schwab@linux-m68k.org>
12633
12634 * target.c (return_null): Define.
12635 (update_current_target): Use it instead of return_zero for
12636 functions that return a pointer.
12637
5e3f4fab
EBM
126382014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
12639
12640 * source.c (add_path): Fix check for duplicated paths in the previously
12641 included paths.
12642
e2616788
HK
126432014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
12644
12645 * ada-lang.c: Remove duplicated include statements.
12646 * alphabsd-nat.c: Ditto.
12647 * amd64-darwin-tdep.c: Ditto.
12648 * amd64fbsd-nat.c: Ditto.
12649 * auto-load.c: Ditto.
12650 * ax-gdb.c: Ditto.
12651 * breakpoint.c: Ditto.
12652 * dbxread.c: Ditto.
12653 * fork-child.c: Ditto.
12654 * gdb_usleep.c: Ditto.
12655 * i386-darwin-tdep.c: Ditto.
12656 * i386fbsd-nat.c: Ditto.
12657 * infcmd.c: Ditto.
12658 * inferior.c: Ditto.
12659 * jv-lang.c: Ditto.
12660 * linux-nat.c: Ditto.
12661 * linux-tdep.c: Ditto.
12662 * m68kbsd-nat.c: Ditto.
12663 * m68klinux-nat.c: Ditto.
12664 * microblaze-tdep.c: Ditto.
12665 * mips-linux-tdep.c: Ditto.
12666 * mn10300-tdep.c: Ditto.
12667 * nto-tdep.c: Ditto.
12668 * opencl-lang.c: Ditto.
12669 * osdata.c: Ditto.
12670 * printcmd.c: Ditto.
12671 * regcache.c: Ditto.
12672 * remote-m32r-sdi.c: Ditto.
12673 * remote.c: Ditto.
12674 * symfile.c: Ditto.
12675 * symtab.c: Ditto.
12676 * tilegx-linux-nat.c: Ditto.
12677 * tilegx-tdep.c: Ditto.
12678 * tracepoint.c: Ditto.
12679 * valops.c: Ditto.
12680 * vaxbsd-nat.c: Ditto.
12681 * windows-nat.c: Ditto.
12682 * xtensa-tdep.c: Ditto.
12683
bd1f7788
YQ
126842014-01-07 Yao Qi <yao@codesourcery.com>
12685
12686 * spu-linux-nat.c (_initialize_spu_nat): Declare.
12687
79301218
JB
126882014-01-07 Yao Qi <yao@codesourcery.com>
12689 Joel Brobecker <brobecker@adacore.com>
12690
12691 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
12692 (pdc_write_regs): Likewise.
12693 (fetch_regs_kernel_thread): Likewise.
12694 (store_regs_kernel_thread): Likewise.
12695
126962014-01-07 Joel Brobecker <brobecker@adacore.com>
12697
12698 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
12699 tagged type objects to their actual type.
12700
8e355c5d
JB
127012014-01-07 Joel Brobecker <brobecker@adacore.com>
12702
12703 * ada-valprint.c (print_field_values): Add "language" parameter.
12704 Update calls to print_field_values and print_variant_part.
12705 Pass new parameter "language" in call to val_print instead
12706 of "current_language". Replace call to ada_val_print by call
12707 to val_print.
12708 (print_variant_part): Add "language" parameter.
12709 (ada_val_print_struct_union): Update call to print_field_values.
12710
4fbf5aa5
JB
127112014-01-07 Joel Brobecker <brobecker@adacore.com>
12712
12713 * ada-valprint.c (ui_memcpy): Delete.
12714 (ada_print_floating): Update documentation. Add empty line
12715 between between function documentation and implementation.
12716 Delete variable "buffer". Use ui_file_xstrdup in place of
12717 ui_file_put. Minor adjustments following this change.
12718
71855601
JB
127192014-01-07 Joel Brobecker <brobecker@adacore.com>
12720
12721 * ada-valprint.c (ada_val_print_string): New function,
12722 extracted from ada_val_print_array.
12723 (ada_val_print_array): Replace extracted code by call
12724 to ada_val_print_string followed by a return. Move
12725 "else" branch to the function's top block.
12726
4eb27a30
JB
127272014-01-07 Joel Brobecker <brobecker@adacore.com>
12728
12729 * ada-valprint.c (ada_val_print_array): Move implementation
12730 down. Rename parameter "offset" and "val" into "offset_aligned"
12731 and "original_value" respectively. Add parameter "offset".
12732
34b27950
JB
127332014-01-07 Joel Brobecker <brobecker@adacore.com>
12734
12735 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
12736 re-organizing the code. Change the "???" message printed
12737 when target type is a TYPE_CODE_UNDEF into
12738 "<ref to undefined type>".
12739
079e4591
JB
127402014-01-07 Joel Brobecker <brobecker@adacore.com>
12741
12742 * ada-valprint.c (print_record): Delete, implementation inlined...
12743 (ada_val_print_struct_union): ... here. Remove call to
12744 ada_check_typedef in inlined implementation.
12745
8004dfd1
JB
127462014-01-07 Joel Brobecker <brobecker@adacore.com>
12747
12748 * ada-valprint.c (ada_val_print_gnat_array): New function,
12749 extracted from ada_val_print_1;
12750 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
12751 (ada_val_print_flt, ada_val_print_struct_union)
12752 (ada_val_print_ref): Likewise.
12753 (ada_val_print_1): Delete variables i and elttype.
12754 Replace extracted-out code by call to corresponding
12755 new functions.
12756
760a2db0
JB
127572014-01-07 Joel Brobecker <brobecker@adacore.com>
12758
12759 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
12760
3a92c861
JB
127612014-01-07 Joel Brobecker <brobecker@adacore.com>
12762
12763 * ada-valprint.c (ada_val_print_1): Replace calls to
12764 ada_val_print_1 by calls to val_print.
12765
cd1630f9
JB
127662014-01-07 Joel Brobecker <brobecker@adacore.com>
12767
12768 * ada-valprint.c (ada_val_print_1): Add parameter "language".
12769 Update calls to self accordingly. Replace calls to c_val_print
12770 by calls to val_print.
12771
bdf779a0
JB
127722014-01-07 Joel Brobecker <brobecker@adacore.com>
12773
12774 * ada-valprint.c (print_record): Delete declaration.
12775 (adjust_type_signedness, ada_val_print_1): Likewise.
12776 (ada_val_print): Move function implementation down.
12777 (print_variant_part, print_field_values, print_record):
12778 Move function implementation up.
12779
c0d48811
JB
127802014-01-07 Joel Brobecker <brobecker@adacore.com>
12781
12782 * python/py-type.c (typy_get_name): New function.
12783 (type_object_getset): Add entry for attribute "name".
12784 * NEWS: Add entry mentioning this new attribute.
12785
c26e9cbb
YQ
127862014-01-07 Yao Qi <yao@codesourcery.com>
12787
12788 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
12789 statement.
12790
0cc6f43d
YQ
127912014-01-07 Yao Qi <yao@codesourcery.com>
12792
12793 * gnu-nat.c (info_port_rights): Add qualifier const to
12794 argument args.
12795
eec03155
YQ
127962014-01-07 Yao Qi <yao@codesourcery.com>
12797
12798 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
12799
f04a82ef
YQ
128002014-01-07 Yao Qi <yao@codesourcery.com>
12801
12802 * gnu-nat.c (make_inf) Update declaration.
12803 (make_inf): Make it static.
12804 (inf_set_traced): Likewise.
12805 (inf_port_to_thread, inf_task_died_status): Likewise.
12806
d57dda0a
YQ
128072014-01-07 Yao Qi <yao@codesourcery.com>
12808
12809 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
12810
3aa8c969
YQ
128112014-01-07 Yao Qi <yao@codesourcery.com>
12812
12813 * gnu-nat.c (_initialize_gnu_nat): Declare.
12814
94123b4f
YQ
128152014-01-07 Yao Qi <yao@codesourcery.com>
12816
12817 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
12818 'enum bfd_endian'.
12819 (struct gdbarch_info) <byte_order>: Change type to
12820 'enum bfd_endian'.
12821 <byte_order_for_code>: Likewise.
12822 * gdbarch.c, gdbarch.h: Regenerated.
12823
dc81d70a
TT
128242014-01-06 Sasha Smundak <asmundak@google.com>
12825
12826 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
12827
cc2f3c35
TT
128282014-01-06 Tom Tromey <tromey@redhat.com>
12829
12830 * doublest.c (convert_doublest_to_floatformat): Use const, not
12831 CONST.
12832 * somread.c (som_symtab_read): Likewise.
12833
adcf2eed
HZ
128342014-01-07 Hui Zhu <hui@codesourcery.com>
12835
12836 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
12837 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
12838 (gdb_bfd_fopen): Ditto.
12839 (gdb_bfd_openr): Ditto.
12840 (gdb_bfd_openw): Ditto.
12841 (gdb_bfd_openr_iovec): Ditto.
12842 (gdb_bfd_fdopenr): Ditto.
12843 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
12844 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
12845 with xstrdup.
12846 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
12847 with xstrdup.
12848 * symfile-mem.c (symbol_file_add_from_memory): Removed
12849 gdb_bfd_stash_filename.
12850
50722198
DE
128512014-01-03 Doug Evans <dje@google.com>
12852
12853 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
12854 output.
12855
2fa4b862
JB
128562014-01-01 Joel Brobecker <brobecker@adacore.com>
12857
12858 Update year range in copyright notice of all files.
12859
28498c42
JB
128602014-01-01 Joel Brobecker <brobecker@adacore.com>
12861
12862 * top.c (print_gdb_version): Set copyright year to 2014.
12863
7b6e1046
JB
128642014-01-01 Joel Brobecker <brobecker@adacore.com>
12865
12866 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
12867
df96af55 12868For older changes see ChangeLog-2013.
c906108c
SS
12869\f
12870Local Variables:
12871mode: change-log
12872left-margin: 8
12873fill-column: 74
12874version-control: never
57da7796 12875coding: utf-8
c906108c 12876End:
This page took 2.362396 seconds and 4 git commands to generate.