* Makefile.in: Regenerate.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
52554a0e
TT
12013-11-08 Tom Tromey <tromey@redhat.com>
2
3 * aix-thread.c (aix_thread_detach): Update.
4 * corelow.c (core_detach): Update.
5 * darwin-nat.c (darwin_detach): Update.
6 * dec-thread.c (dec_thread_detach): Update.
7 * gnu-nat.c (gnu_detach): Update.
8 * go32-nat.c (go32_detach): Update.
9 * inf-ptrace.c (inf_ptrace_detach): Update.
10 * inf-ttrace.c (inf_ttrace_detach): Update.
11 * linux-fork.c (linux_fork_detach): Update.
12 * linux-fork.h (linux_fork_detach): Update.
13 * linux-nat.c (linux_nat_detach): Update. Introduce "tem"
14 local for const-correctness.
15 * linux-thread-db.c (thread_db_detach): Update.
16 * monitor.c (monitor_detach): Update.
17 * nto-procfs.c (procfs_detach): Update.
18 * procfs.c (procfs_detach): Update.
19 * record.c (record_detach): Update.
20 * record.h (record_detach): Update.
21 * remote-m32r-sdi.c (m32r_detach): Update.
22 * remote-mips.c (mips_detach): Update.
23 * remote-sim.c (gdbsim_detach): Update.
24 * remote.c (remote_detach_1, remote_detach)
25 (extended_remote_detach): Update.
26 * sol-thread.c (sol_thread_detach): Update.
27 * target.c (target_detach): Make "args" const.
28 (init_dummy_target): Update.
29 * target.h (struct target_ops) <to_detach>: Make argument const.
30 (target_detach): Likewise.
31 * windows-nat.c (windows_detach): Update.
32
204b5331
DE
332013-11-07 Doug Evans <dje@google.com>
34
35 PR 11786
36 * solib-svr4.c (svr4_exec_displacement): Ignore filesz, memsz, flags
37 and align fields for PT_GNU_RELRO segments.
38
92e32e33
PM
392013-11-07 Phil Muldoon <pmuldoon@redhat.com>
40
41 PR python/15747
42 * python/py-cmd.c: Add COMPLETE_EXPRESSION constant.
43
f76c27b5
PM
442013-11-07 Phil Muldoon <pmuldoon@redhat.com>
45
46 * NEWS: Document Python temporary breakpoint support.
47 * python/py-breakpoint.c (bppy_get_temporary): New function.
48 (bppy_init): New keyword: temporary. Parse it and set breakpoint
49 to temporary if True.
50
d52cd232
JM
512013-11-07 Jose E. Marchesi <jose.marchesi@oracle.com>
52
53 * sparc-tdep.c (sparc_analyze_control_transfer): Assertion
54 removed to allow analyzing unconditional branch instructions
55 with PC-relative offsets of zero.
56
fa4d0c40
YQ
572013-11-07 Yao Qi <yao@codesourcery.com>
58
59 * mi/mi-cmd-var.c: Include "language.h".
60 (mi_cmd_var_info_expression): Get language name from
61 language_defn.
62 * varobj.c (varobj_language_string): Remove.
63 (variable_language): Remove declaration.
64 (languages): Remove.
65 (varobj_get_language): Change the type of return value.
66 (variable_language): Remove.
67 * varobj.h (enum varobj_languages): Remove.
68 (varobj_language_string): Remove declaration.
69 (varobj_get_language): Update declaration.
70
6abde28f
YQ
712013-11-07 Yao Qi <yao@codesourcery.com>
72
73 * language.h (struct language_defn) <la_natural_name>: New
74 field.
75 * ada-lang.c (ada_language_defn): Initialize field
76 'la_natural_name'.
77 * c-lang.c (c_language_defn): Likewise.
78 (cplus_language_defn, asm_language_defn): Likewise.
79 * d-lang.c (d_language_defn): Likewise.
80 * f-lang.c (f_language_defn): Likewise.
81 * go-lang.c (go_language_defn): Likewise.
82 * jv-lang.c (java_language_defn): Likewise.
83 * language.c (unknown_language_defn ): Likewise.
84 (auto_language_defn): Likewise.
85 * m2-lang.c (m2_language_defn): Likewise.
86 * objc-lang.c (objc_language_defn): Likewise.
87 * opencl-lang.c (opencl_language_defn): Likewise.
88 * p-lang.c (pascal_language_defn): Likewise.
89
27cd387b
YQ
902013-11-07 Yao Qi <yao@codesourcery.com>
91
92 * language.c (language_str): Return const char *.
93 (add_language): Add const to 'language_names'
94 * language.h (struct language_defn) <la_name>: Add const.
95 (language_str: Update declaration.
96
6682d959
AA
972013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
98
99 * s390-linux-nat.c (s390_read_description): Consider the TE field
100 in the HWCAP for determining 'have_regset_tdb'.
101
b9502d3f
WN
1022013-11-06 Will Newton <will.newton@linaro.org>
103
104 PR gdb/12866
105 * dwarf2read.c (skip_one_die): Sanity check DW_AT_sibling
106 values. (read_partial_die): Likewise.
107
840da61a
MB
1082013-11-06 Muhammad Bilal <mbilal@codesourcery.com>
109
110 PR cli/16122
111 * top.c (command_line_input): Unify interactivity tests to use
112 input_from_terminal_p.
113 * event-top.c (command_line_handler): Likewise.
114
7636ccf9
YQ
1152013-11-06 Yao Qi <yao@codesourcery.com>
116
117 * Makefile.in (check-perf): New target.
118
12b27276
WN
1192013-11-05 Will Newton <will.newton@linaro.org>
120
121 PR gdb/7670
122 * arm-tdep.c (print_fpu_flags): Use filtered output routines.
123 (arm_print_float_info): Likewise.
124
67c059c2
AB
1252013-11-04 Anton Blanchard <anton@samba.org>
126
127 * target.c (memory_xfer_partial): Cap write to 4KB.
128
0569175e
TSD
1292013-11-01 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
130
131 * breakpoint.c (create_longjmp_master_breakpoint): Allow libc
132 probe scan even when the arch provides no get_longjmp_target.
133
b18e90f5
PA
1342013-10-31 Pedro Alves <palves@redhat.com>
135
136 * infrun.c (handle_syscall_event): Don't set or clear stop_signal.
137 (handle_inferior_event) <TARGET_WAITKIND_FORKED,
138 TARGET_WAITKIND_VFORKED>: Don't set stop_signal to
139 GDB_SIGNAL_TRAP, or clear it. Pass GDB_SIGNAL_0 to
140 bpstat_explains signal, instead of GDB_SIGNAL_TRAP.
141 <bpstat handling>: If the bpstat chain wants the signal to be
142 hidden, then set stop_signal to GDB_SIGNAL_0 instead of
143 GDB_SIGNAL_TRAP.
144
638aa5a1
AB
1452013-10-31 Andrew Burgess <aburgess@broadcom.com>
146
147 * breakpoint.c (update_watchpoint): Update error message and add
148 an additional error message.
149
0e5fae36
UW
1502013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
151
152 * s390-tdep.h: Rename to...
153 * s390-linux-tdep.h: ...here.
154 * s390-tdep.c: Rename to...
155 * s390-linux-tdep.c: ...here. Adjust #include.
156 * s390-nat.c: Rename to...
157 * s390-linux-nat.c: ...here. Adjust #include.
158 * config/s390/s390.mh: Rename to...
159 * config/s390/linux.mh: ...here. Reflect rename s390-nat.o ->
160 s390-linux-nat.o.
161 * configure.host: Reflect host rename "s390" -> "linux".
162 * configure.tgt: Reflect rename s390-tdep.o -> s390-linux-tdep.o.
163 * Makefile.in (ALL_TARGET_OBS): Likewise.
164 (HFILES_NO_SRCDIR): Reflect rename s390-tdep.h ->
165 s390-linux-tdep.h.
166 (ALLDEPFILES): Reflect rename of .c files.
167
34201ae3
UW
1682013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
169
170 * s390-nat.c: Whitespace cleanup.
171 * s390-tdep.c: Likewise.
172 * s390-tdep.h: Remove empty line at end of file.
173
e17aaa33
MR
1742013-10-30 Maciej W. Rozycki <macro@codesourcery.com>
175
176 * linux-tdep.c (linux_corefile_thread_callback): Preinitialize
177 siginfo_size.
178
aee17e42
TT
1792013-10-29 Tom Tromey <tromey@redhat.com>
180
181 * utils.c (reg): Move undefinition...
182 * gdb_curses.h: ... here. Update comment to mention AIX.
183
9ac69859
NB
1842013-10-29 Nicolas Blanc <nicolas.blanc@intel.com>
185
186 * exec.h (add_target_sections_of_objfile): New declaration.
187 * exec.c (add_target_sections_of_objfile): New function.
188 * symfile.c (add_symbol_file_command): Update current target sections.
189 (remove_symbol_file_command): New command.
190 (symfile_free_objfile): New function.
191 (_initialize_symfile): Register observer for free_objfile events.
192 * NEWS: Add description of the remove-symbol-file command.
193 * breakpoint.c (disable_breakpoints_in_freed_objfile): New function.
194 * objfiles.c (free_objfile): Notify free_objfile.
195 (is_addr_in_objfile): New function.
196 * objfiles.h (is_addr_in_objfile): New declaration.
197 * printcmd.c (clear_dangling_display_expressions): Act upon free_objfile
198 events instead of solib_unloaded events.
199 (_initialize_printcmd): Register observer for free_objfile instead
200 of solib_unloaded notifications.
201 * solib.c (remove_user_added_objfile): New function.
202 (_initialize_symfile): Add remove-symbol-file.
203
f69d9aef
AB
2042013-10-29 Andrew Burgess <aburgess@broadcom.com>
205
206 * infcmd.c (default_print_one_register_info): Use val_print to
207 print all values even optimized out or unavailable ones. Don't
208 try to print a raw form of optimized out or unavailable values.
209
487ad57c
YQ
2102013-10-29 Yao Qi <yao@codesourcery.com>
211
212 * auto-load.c (auto_load_pspace_data_cleanup): Get data from
213 parameter 'arg' instead of from program_space_data.
214 * objfiles.c (objfiles_pspace_data_cleanup): Likewise.
215 * solib-darwin.c (darwin_pspace_data_cleanup): Likewise.
216 * solib-dsbt.c (dsbt_pspace_data_cleanup): Likewise.
217 * solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
218 * inflow.c (inflow_inferior_data_cleanup): Get data from
219 parameter 'arg' instead of inferior_data.
220 * registry.h: Add comments.
221
3c4797ba
PA
2222013-10-28 Pedro Alves <palves@redhat.com>
223
224 * breakpoint.c (watchpoints_triggered)
225 <!target_stopped_data_address>: Hardcode return 1.
226
cdaa5b73
PA
2272013-10-28 Pedro Alves <palves@redhat.com>
228
229 * infrun.c (process_event_stop_test): Remove unnecessary scoping
230 level and reindent.
231
94c57d6a
PA
2322013-10-28 Pedro Alves <palves@redhat.com>
233
234 * infrun.c (process_event_stop_test): New function, factored out
235 from handle_inferior_event.
236 (handle_inferior_event): 'process_event_stop_test' is now a
237 function instead of a goto label -- adjust.
238
fcf3daef
PA
2392013-10-28 Pedro Alves <palves@redhat.com>
240
241 * infrun.c (handle_inferior_event): Move process_event_stop_test
242 goto label to the else branch of the ecs->random_signal check,
243 along with FRAME and GDBARCH re-fetching.
244
c447ac0b
PA
2452013-10-28 Pedro Alves <palves@redhat.com>
246
247 * infrun.c (switch_back_to_stepped_thread): New function, factored
248 out from handle_inferior_event.
249 (handle_inferior_event): Adjust to call
250 switch_back_to_stepped_thread. Call it also at the tail of the
251 random signal handling, and return, instead of also handling
252 random signals just before the stepping tests.
253
f05e4c11
PA
2542013-10-28 Pedro Alves <palves@redhat.com>
255
256 * infrun.c (clear_stop_func): Delete.
257 (handle_inferior_event): Don't call clear_stop_func and don't
258 clear 'ecs->random_signal'.
259
ca20d462
YQ
2602013-10-27 Yao Qi <yao@codesourcery.com>
261
262 * varobj.c (struct varobj_root) <lang>: Rename to 'lang_ops'.
263 (varobj_create, varobj_get_path_expr): Update.
264 (varobj_value_has_mutated, varobj_update): Likewise.
265 (create_child_with_value, new_root_variable): Likewise.
266 (number_of_children, name_of_variable): Likewise.
267 (value_of_child, my_value_of_variable): Likewise.
268 (varobj_value_is_changeable_p): Likewise.
269
a53b64ea
YQ
2702013-10-25 Yao Qi <yao@codesourcery.com>
271
272 * language.h (struct lang_varobj_ops): Declare.
273 (struct language_defn) <la_varobj_ops>: New field.
274 * ada-lang.c: Include "varobj.h"
275 (defn ada_language_defn): Initialize field 'la_varobj_ops' with
276 ada_varobj_ops.
277 * c-lang.c: Include "varobj.h"
278 (c_language_defn): Initialize field 'la_varobj_ops' with
279 c_varobj_ops.
280 (cplus_language_defn): Initialize field 'la_varobj_ops' with
281 cplus_varobj_ops.
282 (asm_language_defn): Initialize field 'la_varobj_ops' with
283 default_varobj_ops.
284 (minimal_language_defn): Likewise.
285 * d-lang.c (d_language_defn): Likewise.
286 * f-lang.c (f_language_defn): Likewise.
287 * go-lang.c (go_language_defn): Likewise.
288 * m2-lang.c (m2_language_defn): Likewise.
289 * objc-lang.c (objc_language_defn): Likewise.
290 * opencl-lang.c (opencl_language_defn): Likewise.
291 * p-lang.c (pascal_language_defn): Likewise.
292 * language.c (unknown_language_defn): Likewise.
293 (auto_language_defn): Likewise.
294 (local_language_defn): Likewise.
295 * jv-lang.c (java_language_defn): Initialize field
296 'la_varobj_ops' with java_varobj_ops.
297 * varobj.c (varobj_create): Update.
298 * varobj.h (default_varobj_ops): Define macro.
299
686d4def
PA
3002013-10-25 Pedro Alves <palves@redhat.com>
301
302 * cp-valprint.c (cp_print_value_fields): No longer handle a NULL
303 static field value.
304 (cp_print_static_field): If the value is entirely optimized out,
305 print <optimized out> here.
306 * jv-valprint.c (java_print_value_fields): No longer handle a NULL
307 static field value.
308 * p-valprint.c (pascal_object_print_static_field): If the value is
309 entirely optimized out, print <optimized out> here.
310 * valops.c (do_search_struct_field)
311 (value_struct_elt_for_reference): No longer handle a NULL static
312 field value.
313 * value.c (value_static_field): Return an optimized out value
314 instead of NULL.
315
6c177e28
YQ
3162013-10-25 Yao Qi <yao@codesourcery.com>
317
318 * remote.c (remote_traceframe_info): Return early if
319 traceframe is not selected.
320
98322bfa
YQ
3212013-10-25 Yao Qi <yao@codesourcery.com>
322
323 * tracepoint.c (traceframe_fun): Remove.
324 (traceframe_sal): Remove.
325 (set_traceframe_context): Add local variables.
326
6ba1f115
JB
3272013-10-25 Joel Brobecker <brobecker@adacore.com>
328
329 * varobj.h (struct lang_varobj_ops): Remove spaces between '*'
330 and parameter name.
331
bbe769cc
MR
3322013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
333
334 * linux-tdep.c (linux_corefile_thread_callback): Propagate any
335 failure from register information collection.
336
72ee4495 3372013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
59a70096
MR
338
339 * linux-tdep.c (linux_corefile_thread_data): Remove `num_notes'
340 member.
341 (linux_corefile_thread_callback): Update accordingly.
342 (linux_make_corefile_notes): Likewise.
343
98882a26
PA
3442013-10-24 Pedro Alves <palves@redhat.com>
345
346 * NEWS (New options): Mention set/show startup-with-shell.
347 * config/alpha/nm-osf3.h (START_INFERIOR_TRAPS_EXPECTED): Set to 2
348 instead of 3.
349 * fork-child.c (fork_inferior, startup_inferior): Handle 'set
350 startup-with-shell'.
351 (show_startup_with_shell): New function.
352 (_initialize_fork_child): Register the set/show startup-with-shell
353 commands.
354 * inf-ptrace.c (inf_ptrace_create_inferior): Remove comment.
355 * inf-ttrace.c (inf_ttrace_him): Remove comment.
356 * procfs.c (procfs_init_inferior): Remove comment.
357 * infcmd.c (startup_with_shell): New global.
358 * inferior.h (startup_with_shell): Declare global.
359 (STARTUP_WITH_SHELL): Delete.
360 (START_INFERIOR_TRAPS_EXPECTED): Set to 1 by default instead of 2.
361
c9737c08
PA
3622013-10-23 Pedro Alves <palves@redhat.com>
363
364 * common/gdb_signals.h (gdb_signal_to_symbol_string): Declare.
365 * common/signals.c: Include "gdb_assert.h".
366 (signals): New field 'symbol'.
367 (SET): Use the 'symbol' parameter.
368 (gdb_signal_to_symbol_string): New function.
369 * infrun.c (handle_inferior_event) <random signal>: In debug
370 output, print the random signal enum as string in addition to its
371 number.
372 * target/waitstatus.c (target_waitstatus_to_string): Print the
373 signal's enum value as string instead of the (POSIX) signal name.
374
f60db4f0
GB
3752013-10-23 Gary Benson <gbenson@redhat.com>
376
377 PR 16013
378 * common/linux-osdata.c (command_from_pid): Reduced size of cmd
379 from 32 to 18. Adjusted fscanf format string accordingly.
380 (Avoids leaving cmd unterminated.)
381 (print_sockets): Do not parse tlen, inode, sl, timeout, txq, rxq,
382 trun, retn or extra. (Avoids leaving extra unterminated.) Check
383 that local_address and remote_address will not overflow.
384 (linux_xfer_osdata_modules): Parse lines using strtok to avoid
385 leaving dependencies unterminated. Parse size as "%u" to match
386 definition.
387
6d3e7a94
PA
3882013-10-22 Pedro Alves <palves@redhat.com>
389
390 * infrun.c (handle_inferior_event) <thread hop>: Don't clear or
391 set ecs->random signal.
392
42ec045f
PA
3932013-10-22 Pedro Alves <palves@redhat.com>
394
395 * infrun.c (keep_going): Update comments.
396
3972013-10-22 Pedro Alves <palves@redhat.com>
398
399 * remote.c (remote_parse_stop_reply) <'T'/'S'/'X' replies>: Map
400 invalid signal numbers to GDB_SIGNAL_UNKNOWN.
401
4022013-10-22 Pedro Alves <palves@redhat.com>
403
404 * include/gdb/signals.def (TARGET_EXC_BAD_ACCESS): Rename to
405 GDB_EXC_BAD_ACCESS.
406 (TARGET_EXC_BAD_INSTRUCTION): Rename to GDB_EXC_BAD_INSTRUCTION.
407 (TARGET_EXC_ARITHMETIC): Rename to GDB_EXC_ARITHMETIC.
408 (TARGET_EXC_EMULATION): Rename to GDB_EXC_EMULATION.
409 (TARGET_EXC_SOFTWARE): Rename to GDB_EXC_SOFTWARE.
410 (TARGET_EXC_BREAKPOINT): Rename to GDB_EXC_BREAKPOINT.
411 (GDB_SIGNAL_LAST): Change description string.
412 * common/signals.c (gdb_signal_from_host, do_gdb_signal_to_host):
413 Adjust to signal renaming.
414 * darwin-nat.c (darwin_decode_message): Likewise.
415
c8fde1b1
JM
4162013-10-22 Jose E. Marchesi <jose.marchesi@oracle.com>
417
418 * MAINTAINERS (Write After Approval): Add myself to the list.
419
e8369a73
AB
4202013-10-18 Andrew Burgess <aburgess@broadcom.com>
421
422 * breakpoint.c (update_watchpoint): If hardware watchpoints are
423 forced off, downgrade them to software watchpoints if possible,
424 and error out if not possible.
425 (watch_command_1): Move watchpoint type selection closer to
426 watchpoint creation, and extend the comments.
427
776f04fa
PA
4282013-10-18 Pedro Alves <palves@redhat.com>
429
430 PR gdb/16062
431 * infrun.c (handle_inferior_event): Keep going if we got a random
432 signal we should not stop for, instead of falling through to the
433 step tests.
434
0c6faab5
YQ
4352013-10-18 Yao Qi <yao@codesourcery.com>
436
437 * c-varobj.c (cplus_number_of_children): Fix indentation.
438
50b34a18
TT
4392013-10-17 Tom Tromey <tromey@redhat.com>
440
441 PR gdb/15995:
442 * printcmd.c (printcmd): Call gdb_flush.
443
5c4c8a59
TT
4442013-10-17 Tom Tromey <tromey@redhat.com>
445
446 * elfread.c (struct elfinfo) <stabindexsect>: Remove.
447 (elf_locate_sections): Update.
448
c4124bf1
YQ
4492013-10-17 Yao Qi <yao@codesourcery.com>
450
451 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
452 * ada-varobj.c: Remove the include of ada-varobj.h.
453 (ada_varobj_get_number_of_children): Declare.
454 (ada_varobj_get_name_of_child): Make it static.
455 (ada_varobj_get_path_expr_of_child): Likewise.
456 (ada_varobj_get_value_of_child): Likewise.
457 (ada_varobj_get_type_of_child): Likewise.
458 (ada_varobj_get_value_of_array_variable): Likewise.
459 * ada-varobj.h: Remove.
460
99ad9427
YQ
4612013-10-17 Yao Qi <yao@codesourcery.com>
462
463 * Makefile.in (SFILES): Add c-varobj.c and jv-varobj.c.
464 (COMMON_OBS): Add c-varobj.o and jv-varobj.o.
465 * ada-varobj.c: Include "varobj.h".
466 (ada_number_of_children): New. Moved from varobj.c.
467 (ada_name_of_variable, ada_name_of_child): Likewise.
468 (ada_path_expr_of_child, ada_value_of_child): Likewise.
469 (ada_type_of_child, ada_value_of_variable): Likewise.
470 (ada_value_is_changeable_p, ada_value_has_mutated): Likewise.
471 (ada_varobj_ops): New.
472 * c-varobj.c, jv-varobj.c: New file. Moved from varobj.c.
473 * gdbtypes.c (get_target_type): New. Moved from varobj.c.
474 * gdbtypes.h (get_target_type): Declare.
475 * varobj.c: Remove the inclusion of "ada-varobj.h" and
476 "ada-lang.h".
477 (ANONYMOUS_STRUCT_NAME): Move it to c-varobj.c.
478 (ANONYMOUS_UNION_NAME): Likewise.
479 (get_type, get_value_type, get_target_type): Remove declarations.
480 (value_get_print_value, varobj_value_get_print_value): Likewise.
481 (c_number_of_children, c_name_of_variable): Likewise.
482 (c_name_of_child, c_path_expr_of_child): Likewise.
483 (c_value_of_child, c_type_of_child): Likewise.
484 (c_value_of_variable, cplus_number_of_children): Likewise.
485 (cplus_class_num_children, cplus_name_of_variable): Likewise.
486 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
487 (cplus_value_of_child, cplus_type_of_child): Likewise.
488 (cplus_value_of_variable, java_number_of_children): Likewise.
489 (java_name_of_variable, java_name_of_child): Likewise.
490 (java_path_expr_of_child, java_value_of_child): Likewise.
491 (java_type_of_child, java_value_of_variable): Likewise.
492 (ada_number_of_children, ada_name_of_variable): Likewise.
493 (ada_name_of_child, ada_path_expr_of_child): Likewise.
494 (ada_value_of_child, ada_type_of_child): Likewise.
495 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
496 (ada_value_has_mutated): Likewise.
497 (struct language_specific): Move it to varobj.h.
498 (CPLUS_FAKE_CHILD): Move it to varobj.h.
499 (restrict_range): Rename it varobj_restrict_range. Make it extern.
500 Callers update.
501 (get_path_expr_parent): Rename it to varobj_get_path_expr_parent.
502 Make it extern.
503 (is_anonymous_child): Move it to c-varobj.c and rename to
504 varobj_is_anonymous_child. Caller update.
505 (get_type): Move it to c-varobj.c.
506 (get_value_type): Rename it varobj_get_value_type. Make it
507 extern.
508 (get_target_type): Move it gdbtypes.c.
509 (varobj_formatted_print_options): New function.
510 (value_get_print_value): Rename it to
511 varobj_value_get_print_value and make it extern.
512 (varobj_value_is_changeable_p): Make it extern.
513 (adjust_value_for_child_access): Move it to c-varobj.c.
514 (default_value_is_changeable_p): Rename it to
515 varobj_default_value_is_changeable_p. Make it extern.
516 (c_number_of_children, c_name_of_variable): Move it to c-varobj.c
517 (c_name_of_child, c_path_expr_of_child): Likewise.
518 (c_value_of_child, c_type_of_child): Likewise.
519 (c_value_of_variable, cplus_number_of_children): Likewise.
520 (cplus_class_num_children, cplus_name_of_variable): Likewise.
521 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
522 (cplus_value_of_child, cplus_type_of_child): Likewise.
523 (cplus_value_of_variable): Likewise.
524 (java_number_of_children, java_name_of_variable): Move it to jv-varobj.c.
525 (java_name_of_child, java_path_expr_of_child): Likewise.
526 (java_value_of_child, java_type_of_child): Likewise.
527 (java_value_of_variable): Likewise.
528 (ada_number_of_children, ada_name_of_variable): Move it to ada-varobj.c.
529 (ada_name_of_child, ada_path_expr_of_child): Likewise.
530 (ada_value_of_child, ada_type_of_child): Likewise.
531 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
532 (ada_value_has_mutated): Likewise.
533 * varobj.h (CPLUS_FAKE_CHILD): New macro, moved from varobj.c.
534 (struct lang_varobj_ops): New. Renamed by 'struct language_specific'.
535 (c_varobj_ops, cplus_varobj_ops): Declare.
536 (java_varobj_ops, ada_varobj_ops): Declare.
537 (varobj_default_value_is_changeable_p): Declare.
538 (varobj_value_is_changeable_p): Declare.
539 (varobj_get_value_type, varobj_is_anonymous_child): Declare.
540 (varobj_get_path_expr_parent): Declare.
541 (varobj_value_get_print_value): Declare.
542 (varobj_formatted_print_options): Declare.
543 (varobj_restrict_range): Declare.
544
c8a62302
LM
5452013-10-17 Luis Machado <lgustavo@codesourcery.com>
546
547 * target/waitstatus.h (target_waitkind): Remove spurious
548 character from the comments.
549
eade6471
JB
5502013-10-17 Joel Brobecker <brobecker@adacore.com>
551
552 * gdbarch.sh (get_longjmp_target): Add method documentation.
553 * gdbarch.h: Regenerate.
554
5411b26c
TT
5552013-10-16 Tom Tromey <tromey@redhat.com>
556
557 * dbxread.c (read_dbx_symtab) <bss_ext_symbol>: Remove unused
558 label.
559
87326c87
LM
5602013-10-16 Luis Machado <lgustavo@codesourcery.com>
561
562 * gcore.in: Call GDB using the full path to the gcore script.
563 Error out if the GDB binary is not found.
564
fd0a4d76
SDJ
5652013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
566
567 PR gdb/16014
568 * dwarf2read.c (dw2_get_real_path): Remove unnecessary call to
569 sizeof.
570
d92f7ee3
SDJ
5712013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
572
573 PR gdb/16042
574 * target.c (target_disable_btrace): Fix invalid return value for
575 void function.
576 (target_teardown_btrace): Likewise.
577
bb5ce47a
YQ
5782013-10-14 Yao Qi <yao@codesourcery.com>
579
580 * varobj.c (struct varobj): Move most of the fields to
581 varobj.h.
582 (struct varobj_dynamic): New struct.
583 (varobj_get_display_hint) [HAVE_PYTHON]: Adjust.
584 (varobj_has_more): Likewise.
585 (dynamic_varobj_has_child_method): Likewise.
586 (update_dynamic_varobj_children): Likewise.
587 (varobj_get_num_children): Likewise.
588 (varobj_list_children, varobj_pretty_printed_p): Likewise.
589 (install_new_value_visualizer): Likewise.
590 (install_new_value_visualizer, install_new_value): Likewise.
591 (varobj_update, new_variable, free_variable): Likewise.
592 (my_value_of_variable, value_get_print_value): Likewise.
593 (install_visualizer): Change the type of parameter 'var' to
594 'struct varobjd_dynamic *'. Callers update.
595 * varobj.h (struct varobj): Moved from varobj.c.
596 (struct varobj) <dynamic>: New field.
597
0b76b0ce
SL
5982013-10-13 Sandra Loosemore <sandra@codesourcery.com>
599
600 * nios2-tdep.c (nios2_reg_names): Use "sstatus" rather than "ba"
601 as the preferred name of r30.
602 * nios2-linux-tdep.c (reg_offsets): Likewise.
603 * features/nios2-cpu.xml: Likewise.
604 * features/nios2-linux.c: Regenerated.
605 * features/nios2.c: Regenerated.
606 * regformats/nios2-linux.dat: Regenerated.
607
4856b6bc
JK
6082013-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
609
610 Canonicalize directories for EXEC_FILENAME.
611 * exec.c (exec_file_attach): Use gdb_realpath_keepfile for
612 exec_filename.
613 * utils.c (gdb_realpath_keepfile): New function.
614 * utils.h (gdb_realpath_keepfile): New declaration.
615
9b557b58
DE
6162013-10-11 Doug Evans <dje@google.com>
617
618 * Makefile.in (GDBFLAGS): New variable.
619 (run): New rule.
620
ce13fade
JB
6212013-10-11 Joel Brobecker <brobecker@adacore.com>
622
623 * NEWS: Add entry documenting the new "-catch-assert" and
624 "-catch-exception" GDB/MI commands.
625
349774ef
JB
6262013-10-11 Joel Brobecker <brobecker@adacore.com>
627
628 * breakpoint.h (init_ada_exception_breakpoint): Add parameter
629 "enabled".
630 * breakpoint.c (init_ada_exception_breakpoint): Add parameter
631 "enabled". Set B->ENABLE_STATE accordingly.
632 * ada-lang.h (ada_exception_catchpoint_kind): Move here from
633 ada-lang.c.
634 (create_ada_exception_catchpoint): Add declaration.
635 * ada-lang.c (ada_exception_catchpoint_kind): Move to ada-lang.h.
636 (create_ada_exception_catchpoint): Make non-static. Add new
637 parameter "disabled". Use it in call to
638 init_ada_exception_breakpoint.
639 (catch_ada_exception_command): Add parameter "enabled" in call
640 to create_ada_exception_catchpoint.
641 (catch_assert_command): Likewise.
642
643 * mi/mi-cmds.h (mi_cmd_catch_assert, mi_cmd_catch_exception):
644 Add declarations.
645 * mi/mi-cmds.c (mi_cmds): Add the "catch-assert" and
646 "catch-exception" commands.
647 * mi/mi-cmd-catch.c: Add #include "ada-lang.h".
648 (mi_cmd_catch_assert, mi_cmd_catch_exception): New functions.
649
761269c8
JB
6502013-10-11 Joel Brobecker <brobecker@adacore.com>
651
652 * ada-lang.c (enum ada_exception_catchpoint_kind): Renames
653 "enum exception_catchpoint_kind". Replace the "ex_" prefix
654 of all its enumerates with "ada_". Update the rest of this
655 file throughout.
656
b4a5b78b
JB
6572013-10-11 Joel Brobecker <brobecker@adacore.com>
658
659 * ada-lang.c (ada_decode_exception_location): Delete.
660 (create_ada_exception_catchpoint): Remove arguments "sal",
661 "addr_string" and "ops". Add argument "ex_kind" instead.
662 Adjust implementation accordingly, calling ada_exception_sal
663 to get the entities it no longer gets passed as arguments.
664 Document the function's arguments.
665 (catch_ada_exception_command): Use catch_ada_exception_command_split
666 instead of ada_decode_exception_location, and update call to
667 create_ada_exception_catchpoint.
668 (catch_ada_assert_command_split): Renames
669 ada_decode_assert_location. Remove parameters "addr_string" and
670 "ops", and now returns void. Adjust implementation accordingly.
671 Update the function documentation.
672 (catch_assert_command): Use catch_ada_assert_command_split
673 instead of ada_decode_assert_location. Update call to
674 create_ada_exception_catchpoint.
675
7ad1d32c 6762013-10-11 Joel Brobecker <brobecker@adacore.com>
7c647d61
JB
677
678 * utils.h (perror_warning_with_name): Add declaration.
679 * utils.c (perror_warning_with_name): New function.
680 * cli/cli-cmds.c (source_script_with_search): Add call to
681 perror_warning_with_name if from_tty is nul.
682
7ad1d32c 6832013-10-11 Joel Brobecker <brobecker@adacore.com>
0cf4063e
JB
684
685 * utils.c (perror_string): New function, extracted out of
686 throw_perror_with_name.
687 (throw_perror_with_name): Rework to use perror_string.
688
bcc75809
YQ
6892013-10-11 Yao Qi <yao@codesourcery.com>
690
691 * remote.c (discard_pending_stop_replies_in_queue): Update
692 declaration.
693 (struct stop_reply) <rs>: New field.
694 (remove_stop_reply_of_remote_state): New function.
695 (discard_pending_stop_replies_in_queue): Add parameter 'rs'.
696 Callers update. Pass remove_stop_reply_of_remote_state to
697 QUEUE_iterate.
698 (remote_parse_stop_reply): Initialize field 'rs'.
699
05feb193
WN
7002013-10-10 Will Newton <will.newton@linaro.org>
701
702 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
703 linux_init_abi.
704
0d12017b
JB
7052013-10-10 Joel Brobecker <brobecker@adacore.com>
706
707 * cli/cli-cmds.c (show_baud_rate): Moved to serial.c as
708 serial_baud_show_cmd.
709 (_initialize_cli_cmds): Delete the code creating the
710 "set/show remotebaud" commands.
711 * serial.c (baud_rate): Move here from top.c.
712 (serial_baud_show_cmd): Move here from cli/cli-cmds.c.
713 (_initialize_serial): Create "set/show serial baud" commands.
714 Add "set/show remotebaud" command aliases.
715 * top.c (baud_rate): Moved to serial.c.
716 * NEWS: Document the new "set/show serial baud" commands,
717 replacing "set/show remotebaud".
718
578d3588
PA
7192013-10-09 Pedro Alves <palves@redhat.com>
720
721 * breakpoint.c (insert_bp_location): Use memory_error_message to
722 build the memory error string.
723 * c-lang.c: Include "gdbcore.h".
724 (c_get_string): Use memory_error to throw error.
725 (target_xfer_memory_error): Delete.
726 (memory_error_message): New, factored out from
727 target_xfer_memory_error.
728 (memory_error): Change parameter type to target_xfer_error.
729 Rewrite.
730 (read_memory): Use memory_error instead of
731 target_xfer_memory_error.
732 * gdbcore.h: Include "target.h".
733 (memory_error): Change parameter type to target_xfer_error.
734 (memory_error_message): Declare function.
735 * target.c (target_read_memory, target_read_stack)
736 (target_write_memory, target_write_raw_memory): Return
737 TARGET_XFER_E_IO on error. Adjust comments.
738 (get_target_memory): Pass TARGET_XFER_E_IO to memory_error,
739 instead of EIO.
740 * target.h (target_read, target_insert_breakpoint)
741 (target_remove_breakpoint): Adjust comments.
742 * valprint.c (partial_memory_read): Rename parameter, and adjust
743 comment.
744 (val_print_string): Use memory_error_message to build the memory
745 error string.
746
c74e1ccf
JK
7472013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
748
749 * common/filestuff.c (gdb_fopen_cloexec): Remove initialization of
750 result variable. Rename variable fopen_e_ever_failed to
751 fopen_e_ever_failed_einval. Retry fopen only for errno EINVAL.
752
915215be
PA
7532013-10-09 Pedro Alves <palves@redhat.com>
754
755 * monitor.c (monitor_write_memory, monitor_write_memory_bytes)
756 (monitor_write_memory_longlongs, monitor_write_memory_block):
757 Constify 'myaddr' parameter.
758 (monitor_xfer_memory): Adjust interface as monitor_xfer_partial
759 helper.
760 (monitor_xfer_partial): New function.
761 (init_base_monitor_ops): Don't install a deprecated_xfer_memory
762 hook. Install a to_xfer_partial hook.
763
acd13123
TT
7642013-10-09 Tom Tromey <tromey@redhat.com>
765
766 * dwarf2read.c (dwarf2_get_dwz_file): Update for type change in
767 bfd_get_alt_debug_link_info.
768
40135bb1
JK
7692013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
770
771 New flag OBJF_NOT_FILENAME.
772 * auto-load.c (auto_load_objfile_script): Check also OBJF_NOT_FILENAME.
773 * jit.c (jit_object_close_impl): Use OBJF_NOT_FILENAME for
774 allocate_objfile.
775 (jit_bfd_try_read_symtab): Use OBJF_NOT_FILENAME for
776 symbol_file_add_from_bfd.
777 * jv-lang.c (get_dynamics_objfile): Use OBJF_NOT_FILENAME for
778 allocate_objfile.
779 * objfiles.c (allocate_objfile): Assert OBJF_NOT_FILENAME if NAME is
780 NULL.
781 * objfiles.h (OBJF_NOT_FILENAME): New.
782
dc294be5
TT
7832013-10-08 Tom Tromey <tromey@redhat.com>
784
785 * Makefile.in (SFILES): Add build-id.c.
786 (HFILES_NO_SRCDIR): Add build-id.h.
787 * build-id.c: New file, largely from elfread.c. Modified
788 most functions.
789 * build-id.h: New file.
790 * dwarf2read.c (dwarf2_get_dwz_file): Update for change to
791 bfd_get_alt_debug_link_info. Verify dwz file's build-id.
792 Search for dwz file using build-id.
793 * elfread.c (build_id_bfd_get, build_id_verify)
794 (build_id_to_debug_filename, find_separate_debug_file): Remove.
795
db230ce3
JB
7962013-10-08 Joel Brobecker <brobecker@adacore.com>
797
798 * ada-lang.c (compare_names_with_case): Renamed from
799 compare_names, adding a new parameter "casing" and its handling.
800 New function documentation.
801 (compare_names): New function, implemented using
802 compare_names_with_case.
803
6501c98a
JB
8042013-10-08 Joel Brobecker <brobecker@adacore.com>
805
806 * ada-lang.c (ada_exception_sal): Remove advance declaration.
807
84a1243b
TT
8082013-10-07 Tom Tromey <tromey@redhat.com>
809
810 * objfiles.c (free_objfile_per_bfd_storage): Delete the
811 demangled_names_hash.
812 (free_objfile): Don't delete the demangled_names_hash.
813 * objfiles.h (struct objfile_per_bfd_storage)
814 <demangled_names_hash>: New field.
815 (struct objfile) <demangled_names_hash>: Move to
816 objfile_per_bfd_storage.
817 * symfile.c (reread_symbols): Don't delete the
818 demangled_names_hash.
819 * symtab.c (create_demangled_names_hash): Update.
820 (symbol_set_names): Update.
821
1da77581
TT
8222013-10-07 Tom Tromey <tromey@redhat.com>
823
824 * gdb_bfd.c (struct gdb_bfd_data) <relocation_computed,
825 needs_relocations>: New fields.
826 (gdb_bfd_requires_relocations): New function.
827 * gdb_bfd.h (gdb_bfd_requires_relocations): Declare.
828 * objfiles.c (get_objfile_bfd_data): Disallow sharing if
829 the BFD needs relocations applied.
830
46ecd527
PA
8312013-10-07 Pedro Alves <palves@redhat.com>
832
833 PR breakpoints/11568
834 * breakpoint.c (remove_threaded_breakpoints): Say "no longer in
835 the thread list" instead of "gone".
836
0c557179
SDJ
8372013-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
838
839 * NEWS: Mention new convenience variable $_exitsignal.
840 * corelow.c (core_open): Reset exit convenience variables. Set
841 $_exitsignal to the uncaught signal which generated the corefile.
842 * infrun.c (handle_inferior_event): Reset exit convenience
843 variables. Set $_exitsignal for TARGET_WAITKIND_SIGNALLED.
844 (clear_exit_convenience_vars): New function.
845 * inferior.h (clear_exit_convenience_vars): New prototype.
846
1cc47d81
YQ
8472013-10-06 Yao Qi <yao@codesourcery.com>
848
849 * varobj.h: Add comments to enum varobj_languages.
850
73869dc2
DE
8512013-10-04 Doug Evans <dje@google.com>
852
853 Add support for DWP file format version 2.
854 * NEWS: Mention support for DWP file format version 2.
855 * dwarf2read.c (dwarf2_section_info): Convert asection field to a
856 union of asection, containing_section. New fields virtual_offset
857 and is_virtual. Change type of readin filed from int to char.
858 (dwo_sections, dwo_file): Tweak comments.
859 (dwp_v2_section_ids): New enum.
860 (dwp_sections): New fields abbrev, info, line, loc, macinfo, macro,
861 str_offsets, types.
862 (virtual_v1_dwo_sections): Renamed from virtual_dwo_sections.
863 All uses updated.
864 (virtual_v2_dwo_sections): New struct.
865 (dwp_hash_table): New fields version, nr_columns. Change type of
866 section_pool field to a union.
867 (dwp_file): New field version.
868 (dwarf2_has_info): Check for virtual sections.
869 (get_containing_section): New function.
870 (get_section_bfd_owner, get_section_bfd_section): Call it.
871 (dwarf2_locate_sections): Update.
872 (dwarf2_section_empty_p): Update.
873 (dwarf2_read_section): Handle virtual sections.
874 (locate_dwz_sections): Update.
875 (create_dwp_hash_table): Document and handle V2 format.
876 (locate_v1_virtual_dwo_sections): Renamed from
877 locate_virtual_dwo_sections and update. All callers updated.
878 (create_dwo_unit_in_dwp_v1): Renamed from create_dwo_in_dwp.
879 Delete arg htab. Rename arg section_index to unit_index.
880 All callers updated.
881 (MAX_NR_V1_DWO_SECTIONS): Renamed from MAX_NR_DWO_SECTIONS.
882 All uses updated.
883 (create_dwp_v2_section, create_dwo_unit_in_dwp_v2): New functions.
884 (lookup_dwo_unit_in_dwp): Add V2 support.
885 (dwarf2_locate_dwo_sections): Update.
886 (dwarf2_locate_common_dwp_sections): Renamed from
887 dwarf2_locate_dwp_sections and update. All callers updated.
888 (dwarf2_locate_v2_dwp_sections): New function.
889 (open_and_init_dwp_file): Add V2 support.
890 (read_str_index): New locals str_section, str_offsets_section.
891
9a2c3737
PA
8922013-10-04 Pedro Alves <palves@redhat.com>
893
894 * common/ptid.c (null_ptid, minus_one_ptid, ptid_build)
895 (pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid)
896 (ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p): Replace
897 describing comments with references to ptid.h.
898 * common/ptid.h: Remove intro description of constructors,
899 accessors and predicates.
900 (struct ptid): Reformat.
901 (minus_one_ptid, ptid_build, pid_to_ptid, ptid_get_pid)
902 (ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid): Change
903 describing comments.
904
f5371440
JB
9052013-10-04 Joel Brobecker <brobecker@adacore.com>
906
907 * aix-thread.c (sync_threadlists): Add missing ')' in call
908 to ptid_build.
909
793e1c06
JB
9102013-10-04 Joel Brobecker <brobecker@adacore.com>
911
912 * procfs.c (procfs_init_inferior): Fix typo causing the build
913 to fail.
914
26f0edc1
JB
9152013-10-04 Joel Brobecker <brobecker@adacore.com>
916
917 * aix-thread.c (ptrace32): Remove cast to addr_ptr.
918
5713b9b5
JB
9192013-10-04 Joel Brobecker <brobecker@adacore.com>
920
921 * mi/mi-main.c (run_one_inferior): Add function description.
922 Make ARG a pointer to an integer whose value determines whether
923 we should "run" or "start" the program.
924 (mi_cmd_exec_run): Add handling of the "--start" option.
925 Reject all other command-line options.
926 * NEWS: Add entry for "-exec-run"'s new "--start" option.
927
f48ff2a7
YQ
9282013-10-04 Yao Qi <yao@codesourcery.com>
929
930 * remote-notif.h (REMOTE_NOTIF_ID): New enum.
931 (struct notif_client) <pending_event>: Moved
932 to struct remote_notif_state.
933 <id>: New field.
934 (struct remote_notif_state) <pending_event>: New field.
935 (notif_event_xfree): Declare.
936 * remote-notif.c (handle_notification): Adjust.
937 (notif_event_xfree): New function.
938 (do_notif_event_xfree): Call notif_event_xfree.
939 (remote_notif_state_xfree): Call notif_event_xfree to free
940 each element in field pending_event.
941 * remote.c (discard_pending_stop_replies): Remove declaration.
942 (discard_pending_stop_replies_in_queue): Declare.
943 (remote_close): Call discard_pending_stop_replies_in_queue
944 instead of discard_pending_stop_replies.
945 (remote_start_remote): Adjust.
946 (stop_reply_xfree): Call notif_event_xfree.
947 (notif_client_stop): Adjust initialization.
948 (remote_notif_remove_all): Rename it to ...
949 (remove_stop_reply_for_inferior): ... this. Update comments.
950 Don't check INF is NULL.
951 (discard_pending_stop_replies): Return early if notif_state is
952 NULL. Adjust. Don't check INF is NULL.
953 (remote_notif_get_pending_events): Adjust.
954 (discard_pending_stop_replies_in_queue): New function.
955 (remote_wait_ns): Likewise.
956
5965e028
YQ
9572013-10-04 Yao Qi <yao@codesourcery.com>
958
959 * remote-notif.c (DECLARE_QUEUE_P): Remove.
960 (notif_queue): Remove.
961 (remote_notif_process): Add one parameter 'notif_queue'.
962 Update comments. Callers update.
963 (remote_async_get_pending_events_token): Remove.
964 (remote_notif_register_async_event_handler): Remove.
965 (remote_notif_unregister_async_event_handler): Remove.
966 (handle_notification): Add parameter 'notif_queue'. Update
967 comments. Callers update.
968 (notif_xfree): Remove.
969 (remote_notif_state_allocate): New function.
970 (remote_notif_state_xfree): New function.
971 (_initialize_notif): Remove code to allocate queue.
972 * remote-notif.h (DECLARE_QUEUE_P): Moved from remote-notif.c.
973 (struct remote_notif_state): New.
974 (handle_notification): Update declaration.
975 (remote_notif_process): Likewise.
976 (remote_notif_register_async_event_handler): Remove.
977 (remote_notif_unregister_async_event_handler): Remove.
978 (remote_notif_state_allocate): Declare.
979 (remote_notif_state_xfree): Declare.
980 * remote.c (struct remote_state) <notif_state>: New field.
981 (remote_close): Don't call
982 remote_notif_unregister_async_event_handler. Call
983 remote_notif_state_xfree.
984 (remote_open_1): Don't call
985 remote_notif_register_async_event_handler. Call
986 remote_notif_state_allocate.
987
5e5ac9a5
YQ
9882013-10-04 Yao Qi <yao@codesourcery.com>
989
990 * varobj.c (create_child_with_value): Remove 'const' from the
991 type of parameter 'name'.
992 (varobj_add_child): Likewise.
993 (install_dynamic_child): Remove 'const' from the type of
994 parameter 'name'.
995 (varobj_add_child): Likewise.
996 (create_child_with_value): Likewise. Update comments. Don't
997 duplicate 'name'.
998 (update_dynamic_varobj_children): Duplicate 'name'
999 and pass it to install_dynamic_child.
1000
06ab7b19
PM
10012013-10-03 Phil Muldoon <pmuldoon@redhat.com>
1002
1003 * python/py-value.c (convert_value_from_python): Move PyInt_Check
1004 conversion logic to occur after PyLong_Check. Comment on order
1005 change significance.
1006 * python/py-arch.c (archpy_disassemble): Comment on order of
1007 conversion for integers and longs.
1008
8ae377e8
PA
10092013-10-03 Pedro Alves <palves@redhat.com>
1010
1011 * common/linux-ptrace.c (linux_check_ptrace_features): Factor out
1012 the PTRACE_O_TRACESYSGOOD and PTRACE_O_TRACEFORK to separate
1013 functions. Always test for PTRACE_O_TRACESYSGOOD even if
1014 PTRACE_O_TRACEFORK is not supported.
1015 (linux_test_for_tracesysgood): New function.
1016 (linux_test_for_tracefork): New function, factored out from
1017 linux_check_ptrace_features, and also don't kill child_pid here.
1018
b1328b1b
TG
10192013-10-03 Tristan Gingold <gingold@adacore.com>
1020
1021 * i386-darwin-nat.c (i386_darwin_dr_set): Fix argument type.
1022 Remove verbose error reporting. Use detected state to
1023 thread_set_state call.
1024 (i386_darwin_dr_get): Fix return type. Remove verbose error
1025 report.
1026 Remove trailing spaces.
1027
901461f8
PA
10282013-10-02 Pedro Alves <palves@redhat.com>
1029
1030 * cp-valprint.c (cp_print_value_fields): Adjust calls to
1031 val_print_optimized_out.
1032 * jv-valprint.c (java_print_value_fields): Likewise.
1033 * p-valprint.c (pascal_object_print_value_fields): Likewise.
1034 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
1035 <DWARF_VALUE_REGISTER>: If the register was not saved, return a
1036 new optimized out value.
1037 * findvar.c (address_from_register): Likewise.
1038 * frame.c (put_frame_register): Tweak error string to say the
1039 register was not saved, rather than optimized out.
1040 * infcmd.c (default_print_one_register_info): Adjust call to
1041 val_print_optimized_out. Use value_of_register instead of
1042 get_frame_register_value.
1043 * mi/mi-main.c (output_register): Use value_of_register instead of
1044 get_frame_register_value.
1045 * valprint.c (valprint_check_validity): Likewise.
1046 (val_print_optimized_out): New value parameter. If the value is
1047 lval_register, print <not saved> instead.
1048 (value_check_printable, val_print_scalar_formatted): Adjust calls
1049 to val_print_optimized_out.
1050 * valprint.h (val_print_optimized_out): New value parameter.
1051 * value.c (struct value) <optimized_out>: Extend comment.
1052 (error_value_optimized_out): New function.
1053 (require_not_optimized_out): Use it. Use a different string for
1054 lval_register values.
1055 * value.h (error_value_optimized_out): New declaration.
1056 * NEWS: Mention <not saved>.
1057
042a84d9
JB
10582013-10-02 Joel Brobecker <brobecker@adacore.com>
1059
1060 * symtab.c (compare_search_syms): Use FILENAME_CMP instead of
1061 strcmp to compare two symtab filenames.
1062
6b9780fb
JB
10632013-10-02 Joel Brobecker <brobecker@adacore.com>
1064
1065 * symtab.c (search_symbols_equal): Delete.
1066 (sort_search_symbols_remove_dups): Replace call to
1067 search_symbols_equal by call to compare_search_syms,
1068 adjusting as necessary.
1069
751e7549
PM
10702013-10-02 Phil Muldoon <pmuldoon@redhat.com>
1071
1072 PR python/15579
751e7549
PM
1073 * python/python.c: Document gdb.execute command in Python help.
1074
1efd7661
PM
10752013-10-02 Phil Muldoon <pmuldoon@redhat.com>
1076
1077 * python/py-frame.c (frame_info_to_frame_object): Use
1078 gdbpy_convert_exception. Clean up Python object on failure.
1079
562fc849
PM
10802013-10-02 Phil Muldoon <pmuldoon@redhat.com>
1081
1082 * python/lib/gdb/command/frame_filters.py
1083 (InfoFrameFilter.list_frame_filters): Retrieve exception manually.
1084 (ShowFrameFilterPriority.invoke): Ditto.
1085
d7561cbb
KS
10862013-10-01 Keith Seitz <keiths@redhat.com>
1087
1088 * linespec.c (struct ls_parser): Make 'saved_arg' const.
1089 (parse_linespec): Make 'argptr' const.
1090 Remove temporary cast of 'argptr' to const char **.
1091 (decode_line_full): Pass const pointer to parse_linespec.
1092 (decode_line_1): Likewise.
1093 (decode_objc): Make local variable 'new_argptr' const.
1094 (find_function_symbols): Remove temporary cast to char *
1095 to find_imps.
1096 * objc-lang.c (find_imps): Make argument 'method' const.
1097 Return const.
1098 * objc-lang.h (find_imps): Likewise.
1099
11002013-10-01 Keith Seitz <keiths@redhat.com>
1101
1102 * completer.c (skip_quoted_chars): Make all arguments const.
1103 Return const.
1104 (skip_quoted): Likewise.
1105 * completer.h (skip_quoted_chars): Likewise.
1106 (skip_quoted): Likewise.
1107 * defs.h (skip_quoted): Remove duplicate declaration.
1108 * jv-exp.y: Include completer.h.
1109 (yylex): Remove unneccessary cast to char * fro skip_quoted.
1110 * p-exp.y: Include completer.h.
1111
11122013-10-01 Keith Seitz <keiths@redhat.com>
1113
1114 * c-exp.y (parse_number): Make first argument const.
1115 Make a copy of the input to manipulate.
1116 (c_parse_escape): Make first argument const.
1117 Make local variable 'tokptr' const.
1118 (parse_string_or_char): Make first two arguments const.
1119 (macro_original_text): Make const.
1120 (lex_one_token): Make local variable 'tokstart' const.
1121 Likewise for local variables named 'p'.
1122 Cast away const for struct stoken (temporary).
1123 * c-lang.h (c_parse_escpae): Make first argument const.
1124 * cli/cli-cmds.c (echo_command): Make local variable 'p'
1125 const.
1126 * cli/cli-setshow.c (do_set_command): Likewise for 'p' in
1127 var_string case.
1128 * f-exp.y (parse_number): Make first argument const.
1129 (match_string_literal): Make local variable 'tokstart'
1130 const.
1131 (yylex): Make local variable 'p' const.
1132 Cast away const for struct stoken (temporary).
1133 * go-exp.y (parse_number): Make first argument const.
1134 (parse_string_or_char): Likewise.
1135 Make local variable 'tokstart' const.
1136 (lex_one_token): Likewise for numerous locals called 'p'.
1137 Cast away const for struct stoken (temporary).
1138 * jv-exp.y (parse_number): Make first argument const.
1139 Make local variables 'tokstart' and 'tokptr' const.
1140 Cast away const for call to skip_quoted (temporary).
1141 (yylex): Make local variable 'p' const.
1142 Cast away const for struct stoken (temporary).
1143 * m2-exp.y (parse_number): Make local variable 'p' const.
1144 (yylex): Likewise for 'tokstart'.
1145 Cast away const for struct stoken (temporary).
1146 Make local variable 'p' const.
1147 * macroexp.c (get_character_constant): Pass a const string
1148 to c_parse_escape.
1149 (get_string_literal): Likewise.
1150 (macro_expand_next): Make first argument const.
1151 Cast away const for init_shared_buffer.
1152 * macroexp.h (macro_expand_next): Make first argument const.
1153 * p-exp.y (yylex): Make a local copy of 'lexptr'.
1154 Pass a const string to c_parse_escape.
1155 Make local variables 'p' and 'namestart' const.
1156 * parse.c (lexptr): Make const.
1157 (prev_lexptr): Likewise.
1158 (find_template_name_end): Return const.
1159 Make argument const, too.
1160 (parse_exp_in_context): Make first argument const.
1161 Remove the entire const_hack.
1162 (parse_exp_in_context_1): Make first argument const.
1163 * parser-defs.h (find_template_name_end): Return const.
1164 Make argument const, too.
1165 (lexptr): Make const.
1166 (prev_lexptr): Likewise.
1167 * utils.c (parse_escape): Make second argument const.
1168 * utils.h (parse_escape): Likewise.
1169
11702013-10-01 Keith Seitz <keiths@redhat.com>
1171
1172 * ada-exp.y (write_object_renaming): Update: struct stoken.ptr
1173 is now const.
1174 (block_lookup): Make 'raw_name' and 'name' const.
1175 * ada-lex.l (processString): Update for struct stoken.ptr.
1176 * c-exp.y (qualified_name : TYPENAME COLONCOLON '~' name): Likewise.
1177 (operator_stoken): Likewise.
1178 (lex_one_token): Remove temporary cast to char * for
1179 'yylval.sval.ptr'.
1180 * f-exp.y (yylex): Likewise.
1181 * gdb-types.c (lookup_struct_elt_type): Make argument 'name' const.
1182 * gdbtypes.h (lookup_struct_elt_type): Likewisee.
1183 * go-exp.y (lex_one_token): Remove temporary cast to char * for
1184 'yylval.sval.ptr'.
1185 * jv-exp.y (QualifiedName): Update for struct stoken.ptr.
1186 (yylex): Remove temporary cast to char * for 'yylval.sval.ptr'.
1187 * linespec.c (struct ls_parser): Make 'stream' const.
1188 (find_parameter_list_end): Make argument 'input' and local
1189 variable 'p' const.
1190 (linespec_lexer_lex_string): Make local variables 'start' and
1191 'p' const.
1192 Use skip_spaces_const instead of skip_spaces.
1193 (linespec_lexer_peek_token): Make local variable 'saved_stream'
1194 const.
1195 (parse_linespec): Temporarily cast 'argptr' to const for
1196 'parser->lexer.stream'.
1197 * m2-exp.y (yylex): Remove temporary cast to char * for
1198 'yylval.sval.ptr'.
1199 * objc-lang.c (add_msglist): Make local variable 'p' const.
1200 * p-exp.y (exp : exp '['): Update for struct stoken.ptr.
1201 (exp : STRING): Make 'sp' const.
1202 (parse_number): Make argument 'p' const.
1203 * parser-defs.h (struct stoken): Make 'ptr' const.
1204
193a8eac
DE
12052013-10-01 Doug Evans <dje@google.com>
1206
1207 * cli/cli-decode.c: Remove unnecessary inclusion of tui/tui.h.
1208
2213e2be
YQ
12092013-10-01 Yao Qi <yao@codesourcery.com>
1210
1211 * varobj.c (c_value_of_root): Remove declaration.
1212 (cplus_value_of_root, java_value_of_root): Likewise.
1213 (ada_value_of_root): Likewise.
1214 (struct language_specific) <value_of_root>: Remove.
1215 (languages): Update initialization.
1216 (check_scope): Move earlier.
1217 (c_value_of_root): Move earlier and rename to ...
1218 (value_of_root_1): ... this.
1219 (value_of_root): Caller update.
1220 (cplus_value_of_root, java_value_of_root): Remove.
1221 (ada_value_of_root): Remove.
1222
c573f273
YQ
12232013-10-01 Yao Qi <yao@codesourcery.com>
1224
1225 * varobj.c (varobj_format_string): Remove "unknown".
1226 (languages): Remove the first element.
1227 * varobj.h (enum varobj_languages): Remove vlang_c.
1228
56250258
YQ
12292013-10-01 Yao Qi <yao@codesourcery.com>
1230
1231 * varobj.c (struct language_specific) <language>: Remove.
1232 (languages): Update the initialization.
1233
29f9ebfa
YQ
12342013-10-01 Yao Qi <yao@codesourcery.com>
1235
1236 * arm-wince-tdep.c: Remove inclusion of "solib.h" and
1237 "solib-target.h". Include "windows-tdep.h".
1238 (arm_wince_init_abi): Call windows_init_abi. Remove call to
1239 set_solib_ops and set_gdbarch_has_dos_based_file_system.
1240 * configure.tgt (arm*-wince-pe | arm*-*-mingw32ce*): Append
1241 windows-tdep.o to gdb_target_obs.
1242
64870a42
YQ
12432013-10-01 Yao Qi <yao@codesourcery.com>
1244
1245 * amd64-windows-tdep.c: Remove inclusion of "solib.h" and
1246 "solib-target.h".
1247 (amd64_windows_init_abi): Don't call set_solib_ops and
1248 set_gdbarch_iterate_over_objfiles_in_search_order. Call
1249 windows_init_abi instead.
1250 * i386-cygwin-tdep.c: Remove inclusion of "solib.h" and
1251 "solib-target.h".
1252 (i386_cygwin_init_abi): Don't call set_solib_ops,
1253 set_gdbarch_has_dos_based_file_system and
1254 set_gdbarch_iterate_over_objfiles_in_search_order. Call
1255 windows_init_abi instead.
1256 * windows-tdep.c: Include "solib.h" and "solib-target.h".
1257 (windows_init_abi): New function.
1258 (windows_iterate_over_objfiles_in_search_order): Make it
1259 static.
1260 * windows-tdep.h (windows_init_abi): Declare.
1261 (windows_iterate_over_objfiles_in_search_order): Remove
1262 declaration.
1263
0aebdefa
JB
12642013-10-01 Jerome Guitton <guitton@adacore.com>
1265
1266 Checked in by Joel Brobecker <brobecker@adacore.com>
1267 * system-gdbinit/elinos.py (get_elinos_environment): Return an
1268 incomplete dictionnary instead of None in case of missing
1269 environment variables.
1270 (elinos_init): in case of an incomplete environment, best
1271 effort to load system libraries instead of abort.
1272
1c8e84b0
JB
12732013-10-01 Joel Brobecker <brobecker@adacore.com>
1274
1275 * ada-lang.c (ada_has_this_exception_support): Ignore
1276 mst_solib_trampoline minimal symbols.
1277
61d82a0d
TG
12782013-09-30 Tristan Gingold <gingold@adacore.com>
1279
1280 * i386-darwin-nat.c (darwin_complete_target): Install methods for
1281 hardware watchpoint.
1282 (i386_darwin_dr_set): Support 32 and 64 bit states.
1283 (i386_darwin_dr_get): Likewise.
1284 (i386_darwin_dr_set_control): Make static.
1285 (i386_darwin_dr_set_addr, i386_darwin_dr_get_addr)
1286 (i386_darwin_dr_get_status, i386_darwin_dr_get_control): Likewise.
1287
dfd4cc63
LM
12882013-09-30 Luis Machado <lgustavo@codesourcery.com>
1289
1290 * aarch64-linux-nat.c: Replace PIDGET with ptid_get_pid.
1291 Replace TIDGET with ptid_get_lwp.
1292 Replace GET_LWP with ptid_get_lwp.
1293 * aix-thread.c (BUILD_THREAD, BUILD_LWP): Remove.
1294 Replace BUILD_THREAD with ptid_build.
1295 Replace BUILD_LWP with ptid_build.
1296 Replace PIDGET with ptid_get_pid.
1297 Replace TIDGET with ptid_get_lwp.
1298 * alphabsd-nat.c: Replace PIDGET with ptid_get_pid.
1299 * amd64-linux-nat.c: Replace PIDGET with ptid_get_pid.
1300 Replace TIDGET with ptid_get_lwp.
1301 * amd64bsd-nat.c: Replace PIDGET with ptid_get_pid.
1302 * arm-linux-nat.c: Replace PIDGET with ptid_get_pid.
1303 Replace TIDGET with ptid_get_lwp.
1304 Replace GET_LWP with ptid_get_lwp.
1305 * armnbsd-nat.c: Replace PIDGET with ptid_get_pid.
1306 * auxv.c: Likewise.
1307 * breakpoint.c: Likewise.
1308 * common/ptid.c (ptid_is_pid): Condense check for
1309 null_ptid and minus_one_ptid.
1310 (ptid_lwp_p): New function.
1311 (ptid_tid_p): New function.
1312 * common/ptid.h: Update comments for accessors.
1313 (ptid_lwp_p): New prototype.
1314 (ptid_tid_p): New prototype.
1315 * defs.h (PIDGET, TIDGET, MERGEPID): Do not define.
1316 * gcore.c: Replace PIDGET with ptid_get_pid.
1317 * gdbthread.h: Likewise.
1318 * gnu-nat.c: Likewise.
1319 * hppa-linux-nat.c: Replace PIDGET with ptid_get_pid.
1320 Replace TIDGET with ptid_get_lwp.
1321 * hppabsd-nat.c: Replace PIDGET with ptid_get_pid.
1322 * hppanbsd-nat.c: Likewise.
1323 * i386-linux-nat.c: Replace PIDGET with ptid_get_pid.
1324 Replace TIDGET with ptid_get_lwp.
1325 * i386bsd-nat.c: Replace PIDGET with ptid_get_pid.
1326 * ia64-linux-nat.c: Replace PIDGET with ptid_get_pid.
1327 * infcmd.c: Likewise.
1328 * inferior.h: Likewise.
1329 * inflow.c: Likewise.
1330 * infrun.c: Likewise.
1331 * linux-fork.c: Likewise.
1332 * linux-nat.c: Replace PIDGET with ptid_get_pid.
1333 Replace GET_PID with ptid_get_pid.
1334 Replace is_lwp with ptid_lwp_p.
1335 Replace GET_LWP with ptid_get_lwp.
1336 Replace BUILD_LWP with ptid_build.
1337
5b4e221c
MF
13382013-09-28 Mike Frysinger <vapier@gentoo.org>
1339
1340 * common/linux-btrace.c: Move sys/syscall.h out of the
1341 HAVE_LINUX_PERF_EVENT_H check and wrap it in HAVE_SYS_SYSCALL_H.
1342 Also check for SYS_perf_event_open before attempting to buid.
1343
57d63ce2
DE
13442013-09-27 Doug Evans <dje@google.com>
1345
19ac8c2e
DE
1346 * dwarf2read.c (dwarf2_section_info): Add comment.
1347 (dwp_file): Split loaded_cutus into loaded_cus, loaded_tus.
1348 All uses updated.
1349 (dwarf2_section_empty_p): Rename arg from "info" to "section".
1350 (dwarf2_read_section): Delete unused local "header". Add section
1351 name to error message.
1352 (create_dwo_in_dwp): Tweak comment.
1353 (MAX_NR_DWO_SECTIONS): Combine count of .debug_macro + .debug_macinfo.
1354
a32a8923
DE
1355 * dwarf2read.c (die_reader_specs): Tweak comment.
1356 (get_section_bfd_owner, get_section_bfd_section): New functions.
1357 (get_section_name, get_section_file_name): New functions.
1358 (get_section_id, get_section_flags): New functions.
1359 (*): Use new functions to access section fields.
1360
57d63ce2
DE
1361 * dwarf2read.c (struct dwo_file): Add/tweak comments.
1362 (lookup_dwo_unit_in_dwp): Renamed from lookup_dwo_in_dwp. Remove
1363 arg "htab". All callers updated.
1364 (create_debug_types_hash_table): Remove redundant copy of
1365 abbrev_section.
1366 (create_dwo_in_dwp): Tweak comments.
1367 (read_str_index): Tweak comment. Record dwarf form name in static
1368 local.
1369
3736004f
PA
13702013-09-27 Pedro Alves <palves@redhat.com>
1371
1372 * remote.h (REMOTE_SYSROOT_PREFIX): New define.
1373 (remote_filename_p): Add comment.
1374 * remote.c (remote_filename_p): Adjust to use
1375 REMOTE_SYSROOT_PREFIX.
1376 * solib.c (solib_find): When deciding whether we need to add a
1377 directory separator, check whether the sysroot is "remote:"
1378 instead of checking whether the patch has a drive spec. Add
1379 comments.
1380
5b5596ff
PA
13812013-09-27 Pedro Alves <palves@redhat.com>
1382
1383 * remote.c (struct stop_reply) <solibs_changed, replay_event>:
1384 Delete fields.
1385 (remote_parse_stop_reply): Adjust, setting event->ws.kind
1386 directly.
1387
b5eef7aa
JK
13882013-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1389
1390 Fix set debug frame output.
1391 * frame.c (fprint_frame_type): Add TAILCALL_FRAME entry. Move
1392 SENTINEL_FRAME entry lower to match enum frame_type order.
1393
5b856f36
PM
13942013-09-26 Pierre Muller <muller@sourceware.org>
1395
1396 Replace constant values 8 to 15 by AMD64_R8_REGNUM to
1397 AMD64_R15_REGNUM when a register index is expected.
1398 * amd64-windows-tdep.c (amd64_windows_dummy_call_integer_regs):
1399 Substitute in array.
1400 * amd64-tdep.c (amd64_dwarf_regmap): Ditto.
1401 (amd64_push_arguments): Substitute in integer_regnum array.
1402
ade7ed9e
DE
14032013-09-25 Doug Evans <dje@google.com>
1404
d3e81981
DE
1405 * objfiles.c (allocate_objfile): Move comment to better place.
1406
8fb8eb5c
DE
1407 New option "set debug symfile on".
1408 * NEWS: Mention "set debug symfile".
1409 * Makefile.in (SFILES): Add symfile-debug.c.
1410 (COMMON_OBS): Add symfile-debug.o.
1411 * elfread.c (elf_symfile_read): Use objfile_set_sym_fns to set the
1412 objfile's symbol functions.
1413 * objfiles.h (objfile_set_sym_fns): Declare.
1414 * symfile-debug.c: New file.
1415 * symfile.c (syms_from_objfile_1): Use objfile_set_sym_fns to set the
1416 objfile's symbol functions.
1417 (reread_symbols): Ditto.
1418
c256e171
DE
1419 * symfile.h (struct sym_fns): Delete member "sym_flavour".
1420 All uses updated.
1421 (add_symtab_fns): Update prototype.
1422 * symfile.c (sym_fns_ptr): Delete. Replace with ...
1423 (registered_sym_fns): ... this.
1424 (symtab_fns): Update.
1425 (add_symtab_fns): New arg "flavour". All callers updated.
1426 (find_sym_fns): Rewrite to use new sym_fns registry.
1427
f56ce883
DE
1428 * symfile.h (struct sym_fns): Add "objfile" argument to
1429 sym_read_linetable. All uses updated.
1430
20c681d1
DE
1431 * symtab.c (domain_name, search_domain_name): New functions.
1432 * symtab.h (domain_name, search_domain_name): Declare.
1433
ade7ed9e
DE
1434 * symfile.h (struct quick_symbol_functions): Reorg arg list of
1435 map_matching_symbols so objfile is first. All uses updated.
1436 * dwarf2read.c (dw2_map_matching_symbols): Update signature.
1437 * psymtab.c (map_matching_symbols_psymtab): Update signature.
1438
7d760051
UW
14392013-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
1440
1441 PR shlibs/8882
1442 * solib-svr4.c (svr4_read_so_list): Skip the vDSO when reading
1443 link map entries.
1444
020f7036
DE
14452013-09-24 Doug Evans <dje@google.com>
1446
1447 * objfiles.c (free_objfile): Move comment.
1448
598402f0
JB
14492013-09-24 Joel Brobecker <brobecker@adacore.com>
1450
1451 * ada-exp.y (string_to_operator): Delete.
1452 (dummy_string_to_ada_operator): Delete.
1453
bf4d6c1c
JB
14542013-09-24 Joel Brobecker <brobecker@adacore.com>
1455
1456 Revert:
1457 * i386-tdep.h (enum amd64_reg_class): New, moved here from
1458 amd64-tdep.c.
1459 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
1460 call_dummy_integer_regs, and classify.
1461 * amd64-tdep.h (amd64_classify): Add declaration.
1462 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
1463 (amd64_reg_class): Delete, moved to i386-tdep.h.
1464 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
1465 Replace call to amd64_classify by call to tdep->classify.
1466 (amd64_push_arguments): Get the list of registers to use for
1467 passing integer parameters from the gdbarch tdep structure,
1468 rather than using a hardcoded one. Replace calls to amd64_classify
1469 by calls to tdep->classify.
1470 (amd64_push_dummy_call): Get the register number used for
1471 the "hidden" argument from tdep->call_dummy_integer_regs.
1472 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
1473 and tdep->call_dummy_integer_regs. Set tdep->classify.
1474
849e9755
JB
14752013-09-24 Joel Brobecker <brobecker@adacore.com>
1476
1477 Revert:
1478 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
1479 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
1480 where tdep->memory_args_by_pointer is non-zero.
1481
c1459fd6
JB
14822013-09-24 Joel Brobecker <brobecker@adacore.com>
1483
1484 Revert:
1485 * i386-tdep.h (struct gdbarch_tdep): Add new field
1486 integer_param_regs_saved_in_caller_frame.
1487 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
1488 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
1489
20c2e3e0
JB
14902013-09-24 Joel Brobecker <brobecker@adacore.com>
1491
874440b8 1492 * amd64-windows-tdep.c: #include "value.h"
20c2e3e0
JB
1493 (amd64_windows_classify): Delete.
1494 (amd64_windows_passed_by_integer_register)
1495 (amd64_windows_passed_by_xmm_register)
1496 (amd64_windows_passed_by_pointer)
1497 (amd64_windows_adjust_args_passed_by_pointer)
1498 (amd64_windows_store_arg_in_reg, amd64_windows_push_arguments)
1499 (amd64_windows_push_dummy_call): New functions.
1500 (amd64_windows_init_abi): Remove setting of
1501 tdep->call_dummy_num_integer_regs, tdep->call_dummy_integer_regs,
1502 tdep->classify, tdep->memory_args_by_pointer and
1503 tdep->integer_param_regs_saved_in_caller_frame.
1504 Add call to set_gdbarch_push_dummy_call.
1505
82bf32bc
JK
15062013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1507
1508 * dwarf2read.c (open_and_init_dwp_file): Try open_dwp_file also with
1509 objfile->original_name.
1510
24ba069a
JK
15112013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1512
1513 Pass down original filename for objfile.
1514 * coffread.c (coff_symfile_read): Update symbol_file_add_separate call.
1515 * elfread.c (elf_symfile_read): Likewise.
1516 * jit.c (jit_object_close_impl): Update allocate_objfile call, no
1517 longer set ORIGINAL_NAME.
1518 (jit_bfd_try_read_symtab): Update symbol_file_add_from_bfd call.
1519 * jv-lang.c (get_dynamics_objfile): Update allocate_objfile call.
1520 * machoread.c (macho_add_oso_symfile): Add parameter name. Update
1521 symbol_file_add_from_bfd call.
1522 (macho_symfile_read_all_oso): Update two macho_add_oso_symfile calls.
1523 (macho_check_dsym): Add parameter filenamep. Change function comment.
1524 Set *filenamep.
1525 (macho_symfile_read): New variable dsym_filename. Update
1526 macho_check_dsym call. Use it for symbol_file_add_separate.
1527 * objfiles.c (allocate_objfile): Add parameter name. New comment for
1528 it. Use it for objfile->original_name.
1529 (objfile_name): Return OBFD's filename, if available.
1530 * objfiles.h (allocate_objfile): Add new parameter name.
1531 * solib.c (solib_read_symbols): Update symbol_file_add_from_bfd call.
1532 * symfile-mem.c (symbol_file_add_from_memory): Update
1533 symbol_file_add_from_bfd call.
1534 * symfile.c (read_symbols): Update symbol_file_add_separate call, new
1535 comment for it.
1536 (symbol_file_add_with_addrs): New parameter name, add function comment
1537 for it. Remove variable name. Update allocate_objfile call.
1538 (symbol_file_add_separate): New parameter name, add function comment
1539 for it. Update symbol_file_add_with_addrs call.
1540 (symbol_file_add_from_bfd): New parameter name. Update
1541 symbol_file_add_with_addrs call.
1542 (symbol_file_add): Update symbol_file_add_from_bfd call.
1543 (reread_symbols): New variable original_name. Save
1544 objfile->original_name by it.
1545 * symfile.h (symbol_file_add_from_bfd, symbol_file_add_separate): Add
1546 second parameter.
1547
4262abfb
JK
15482013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1549
1550 Code cleanup: Add objfile_name accessor function.
1551 * ada-lang.c (is_known_support_routine): Use objfile_name.
1552 * auto-load.c (source_gdb_script_for_objfile)
1553 (auto_load_objfile_script): Likewise.
1554 * coffread.c (coff_symtab_read, read_one_sym): Likewise.
1555 * dbxread.c (dbx_symfile_read): Likewise.
1556 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
1557 * dwarf2loc.c (locexpr_describe_location_piece): Likewise.
1558 * dwarf2read.c (dwarf2_get_dwz_file, dwarf2_read_index)
1559 (dw2_symtab_iter_next, dw2_expand_symtabs_matching)
1560 (lookup_dwp_signatured_type, lookup_dwo_unit)
1561 (dwarf2_build_psymtabs_hard, scan_partial_symbols, process_queue)
1562 (fixup_go_packaging, process_imported_unit_die, dwarf2_physname)
1563 (read_import_statement, create_dwo_cu, open_and_init_dwp_file)
1564 (lookup_dwo_cutu, read_call_site_scope, dwarf2_ranges_read)
1565 (dwarf2_record_block_ranges, read_common_block, read_typedef)
1566 (read_subrange_type, load_partial_dies, read_partial_die)
1567 (read_addr_index_1, read_str_index, dwarf_decode_lines_1)
1568 (die_containing_type, build_error_marker_type, lookup_die_type)
1569 (follow_die_ref_or_sig, follow_die_ref, dwarf2_fetch_die_loc_sect_off)
1570 (dwarf2_fetch_constant_bytes, follow_die_sig, get_signatured_type)
1571 (get_DW_AT_signature_type, write_psymtabs_to_index)
1572 (save_gdb_index_command): Likewise.
1573 * elfread.c (find_separate_debug_file_by_buildid, elf_symfile_read):
1574 Likewise.
1575 * expprint.c (dump_subexp_body_standard): Likewise.
1576 * gdbtypes.c (type_name_no_tag_or_error): Likewise.
1577 * jit.c (jit_object_close_impl): Use the objfile field name renamed to
1578 original_name.
1579 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New variable
1580 obj_name, use objfile_name for it, use the variable.
1581 (try_thread_db_load_from_pdir, has_libpthread, thread_db_new_objfile):
1582 Use objfile_name.
1583 * machoread.c (macho_symtab_read, macho_check_dsym)
1584 (macho_symfile_relocate): Likewise.
1585 * maint.c (maintenance_translate_address): Likewise.
1586 * minidebug.c (find_separate_debug_file_in_section): Likewise.
1587 * minsyms.c (install_minimal_symbols): Likewise.
1588 * objfiles.c (allocate_objfile): Use the objfile field name renamed to
1589 original_name.
1590 (filter_overlapping_sections): Use objfile_name.
1591 (objfile_name): New function.
1592 * objfiles.h (struct objfile): Rename field name to original_name.
1593 (objfile_name): New prototype.
1594 * printcmd.c (sym_info, address_info): Use objfile_name.
1595 * probe.c (parse_probes, collect_probes, compare_probes)
1596 (info_probes_for_ops): Likewise.
1597 * progspace.c (clone_program_space): Likewise.
1598 * psymtab.c (require_partial_symbols, dump_psymtab, allocate_psymtab)
1599 (maintenance_info_psymtabs): Likewise.
1600 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
1601 (source_section_scripts): Likewise.
1602 * python/py-objfile.c (objfpy_get_filename): Likewise.
1603 * python/py-progspace.c (pspy_get_filename): Likewise.
1604 * solib-aix.c (solib_aix_get_toc_value): Likewise.
1605 * solib-som.c (match_main, som_solib_section_offsets): Likewise.
1606 * solib.c (solib_read_symbols): Likewise.
1607 * stabsread.c (scan_file_globals): Likewise.
1608 * stap-probe.c (handle_stap_probe): Likewise.
1609 * symfile.c (symbol_file_clear, separate_debug_file_exists)
1610 (find_separate_debug_file_by_debuglink): Likewise.
1611 (reread_symbols): Likewise. Use the objfile field name renamed to
1612 original_name.
1613 (allocate_symtab): Use objfile_name.
1614 * symmisc.c (print_symbol_bcache_statistics, print_objfile_statistics)
1615 (dump_objfile, dump_msymbols, dump_symtab_1)
1616 (maintenance_print_msymbols, maintenance_print_objfiles)
1617 (maintenance_info_symtabs, maintenance_check_symtabs): Likewise.
1618 * target.c (target_translate_tls_address, target_info): Likewise.
1619 * xcoffread.c (xcoff_initial_scan): Make variable name const. Use
1620 objfile_name.
1621
4721dc18
JK
16222013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1623
1624 Code cleanup.
1625 * probe.c (parse_probes): Rename variable objfile_name to
1626 objfile_namestr.
1627
a61d6db8
JK
16282013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1629
1630 Remove solib-sunos.c.
1631 * Makefile.in (ALLDEPFILES): Remove solib-sunos.c.
1632 * config/m68k/obsd.mh (NATDEPFILES): Remove solib-sunos.o.
1633 * objfiles.c (rt_common_objfile): Remove.
1634 (free_objfile): Remove rt_common_objfile comparison.
1635 * objfiles.h (rt_common_objfile): Remove.
1636 * solib-sunos.c: Remove.
1637 * symfile.c (reread_symbols): Remove solib-sunos.c comment.
1638
2659903b
JK
16392013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1640
1641 Remove a.out NetBSD and OpenBSD hosts.
1642 * NEWS (Removed native configurations): New.
1643 * config/arm/nbsdaout.mh: Remove.
1644 * config/i386/nbsdaout.mh: Remove.
1645 * config/i386/obsdaout.mh: Remove.
1646 * config/m68k/nbsdaout.mh: Remove.
1647 * config/sparc/nbsdaout.mh: Remove.
1648 * config/vax/nbsdaout.mh: Remove.
1649 * configure.host (arm*-*-netbsd*, i[34567]86-*-netbsd*)
1650 (i[34567]86-*-openbsd[0-2].*, i[34567]86-*-openbsd3.[0-3])
1651 (m68*-*-netbsd*, sparc-*-netbsd*, vax-*-netbsd*): Add them to obsolete
1652 error.
1653 (arm*-*-netbsd*, i[34567]86-*-netbsd*, i[34567]86-*-openbsd[0-2].*)
1654 (i[34567]86-*-openbsd3.[0-3], m68*-*-netbsd*, sparc-*-netbsdaout*)
1655 (sparc-*-netbsd*, vax-*-netbsd*): Remove.
1656
f60e2d5c
TT
16572013-09-23 Tom Tromey <tromey@redhat.com>
1658
1659 * linespec.c (struct minsym_and_objfile): Remove.
1660 (minsym_and_objfile_d): Remove.
1661 (struct linespec, struct collect_info, linespec_parse_basic)
1662 (convert_linespec_to_sals, linespec_parser_delete, decode_objc)
1663 (compare_msymbols, find_method, find_function_symbols)
1664 (find_linespec_symbols, struct collect_minsyms, compare_msyms)
1665 (add_minsym, search_minsyms_for_name): Update.
1666
d3eaaf66
AB
16672013-09-23 Andrew Burgess <aburgess@broadcom.com>
1668
1669 * regcache.c: Add include of valprint.h.
1670 (dump_endian_bytes): Delete.
1671 (regcache_dump): Use print_hex_chars not dump_endian_bytes.
1672
2cc762b5
AB
16732013-09-23 Andrew Burgess <aburgess@broadcom.com>
1674
1675 * sh64-tdep.c (sh64_do_fp_register): Use print_hex_chars.
1676
96181529
PA
16772013-09-19 Pedro Alves <palves@redhat.com>
1678
1679 * breakpoint.c (remove_threaded_breakpoints): Skip non-user
1680 breakpoints.
1681
9b3f3ee6
TS
16822013-09-19 Pedro Alves <palves@redhat.com>
1683 Thomas Schwinge <thomas@codesourcery.com>
1684 Yue Lu <hacklu.newborn@gmail.com>
1685
1686 * gnu-nat.c (gnu_read_inferior, gnu_write_inferior): Make static.
1687 Take a gdb_byte pointer instead of a char pointer.
1688
1689 * gnu-nat.c (gnu_xfer_memory): Adjust interface as
1690 gnu_xfer_partial helper.
1691 (gnu_xfer_partial): New function.
1692 (gnu_target): Don't install a deprecated_xfer_memory hook.
1693 Install a to_xfer_partial hook.
1694
69150c3d
JK
16952013-09-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1696
1697 Constification.
1698 * main.c (captured_main): Replace catch_command_errors by
1699 catch_command_errors_const. Twice.
1700 * symfile.c (symbol_file_add_main_1): Make args parameter const.
1701 (symbol_file_add): Make name parameter const.
1702 (symbol_file_add_main, symbol_file_add_main_1): Make args parameter const.
1703 (symfile_bfd_open): Make name parameter const, rename it to cname. Add
1704 variable name. Change their usage accordingly.
1705 * symfile.h (symbol_file_add, symfile_bfd_open): Make first parameter
1706 const.
1707 (symbol_file_add_main): Make args parameter const.
1708
086850b2
UW
17092013-09-18 Raunaq Bathija <raunaq12@in.ibm.com>
1710 Ulrich Weigand <uweigand@de.ibm.com>
1711
1712 * xcoffread.c (struct coff_symbol): Use CORE_ADDR as type
1713 of c_value member.
1714 (read_xcoff_symtab): Use CORE_ADDR as type of fcn_start_addr.
1715
ca08a94c 17162013-09-18 Pedro Alves <palves@redhat.com>
d255f61f 1717 Yue Lu <hacklu.newborn@gmail.com>
ca08a94c
PA
1718
1719 * gnu-nat.c (inf_validate_procs, gnu_wait, gnu_resume)
1720 (gnu_create_inferior)
1721 (gnu_attach, gnu_thread_alive, gnu_pid_to_str, cur_thread)
1722 (set_sig_thread_cmd): Use the lwpid field of ptids to
1723 store/extract thread ids instead of the tid field.
1724 * i386gnu-nat.c (gnu_fetch_registers): Adjust.
1725
e4c6a2c4
AB
17262013-09-18 Andrew Burgess <aburgess@broadcom.com>
1727
1728 * infcmd.c (default_print_one_register_info): Add detection of
1729 optimized out values.
1730 (default_print_registers_info): Switch to using
1731 get_frame_register_value.
1732
58c48e72
MM
17332013-09-18 Markus Metzger <markus.t.metzger@intel.com>
1734
1735 * infrun.c (handle_inferior_event): Check if we know the
1736 function start address before setting a resume breakpoint.
1737
c8d37639
PA
17382013-09-18 Pedro Alves <palves@redhat.com>
1739
1740 * gnu-nat.c (set_sig_thread_cmd): Compare the thread's ptid to
1741 minus_one_ptid instead of looking at the ptid's tid field and
1742 comparing that to -1.
1743
71926e28
AB
17442013-09-18 Andrew Burgess <aburgess@broadcom.com>
1745
1746 * main.h (get_gdb_program_name): Remove extra whitespace.
1747
c88a1531
AB
17482013-09-18 Andrew Burgess <aburgess@broadcom.com>
1749
1750 * main.h (get_gdb_program_name): Add declaration.
1751 * main.c (get_gdb_program_name): Add definition.
1752
4390d890
DE
17532013-09-17 Doug Evans <dje@google.com>
1754
1755 * dwarf2read.c: Move definitions of complaint functions to after
1756 forward declarations of local functions.
1757
49fa26b0
PA
17582013-09-17 Muhammad Waqas <mwaqas@codesourcery.com>
1759 Pedro Alves <palves@redhat.com>
1760
1761 PR gdb/11568
1762 * breakpoint.c (remove_threaded_breakpoints): New function.
1763 (_initialize_breakpoint): Attach remove_threaded_breakpoints
1764 as thread_exit observer.
1765
08d72866
PA
17662013-09-17 Pedro Alves <palves@redhat.com>
1767
1768 PR gdb/15911
1769 * ada-tasks.c (task_command_1): Adjust call to print_stack_frame.
1770 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
1771 * corelow.c (core_open):
1772 * frame.h (print_stack_frame, print_frame_info): New
1773 'set_current_sal' parameter.
1774 * infcmd.c (finish_command, kill_command): Adjust call to
1775 print_stack_frame.
1776 * inferior.c (inferior_command): Likewise.
1777 * infrun.c (normal_stop): Likewise.
1778 * linux-fork.c (linux_fork_context): Likewise.
1779 * record-full.c (record_full_goto_entry, record_full_restore):
1780 Likewise.
1781 * remote-mips.c (common_open): Likewise.
1782 * stack.c (print_stack_frame): New 'set_current_sal' parameter.
1783 Use it.
1784 (print_frame_info): New 'set_current_sal' parameter. Set the last
1785 displayed sal depending on the new paremeter instead of looking at
1786 print_what.
1787 (backtrace_command_1, select_and_print_frame, frame_command)
1788 (current_frame_command, up_command, down_command): Adjust call to
1789 print_stack_frame.
1790 * thread.c (print_thread_info, restore_selected_frame)
1791 (do_captured_thread_select): Adjust call to print_stack_frame.
1792 * tracepoint.c (tfind_1): Likewise.
1793 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
1794 (mi_cmd_stack_info_frame): Likewise.
1795 * mi/mi-interp.c (mi_on_normal_stop): Likewise.
1796 * mi/mi-main.c (mi_cmd_exec_return, mi_cmd_trace_find): Likewise.
1797
6bc305f5
SDJ
17982013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1799
1800 * value.c (isvoid_internal_fn): Replace "parameter" with
1801 "argument".
1802
0a7cfe2c
SS
18032013-09-16 Stan Shebs <stan@codesourcery.com>
1804
1805 * README: Update references to writing code for GDB.
1806 * configure.ac (build_warnings): Remove obsolete comment.
1807 * configure: Regenerate.
1808 * gdbarch.sh: Remove references to gdbint.texinfo.
1809 * gdbarch.h: Regenerate.
1810 * gdbtypes.c (objfile_type): Remove comments referencing internals
1811 manual and D10V.
1812
a280dbd1
SDJ
18132013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1814
1815 * NEWS: Mention new convenience function $_isvoid.
1816 * value.c (isvoid_internal_fn): New function.
1817 (_initialize_values): Add new convenience function $_isvoid.
1818
04a83fee
PM
18192013-09-16 Pierre Muller <muller@sourceware.org>
1820
1821 * arm-linux-tdep.c: Add "elf/common.h" header.
1822 Remove AT_HWCAP macro definintion as it is provided in
1823 added include file.
1824 * s390-tdep.c: Remove system header <elf.h>
1825 Add "elf/common.h" header for AT_HWCAP definition.
1826 (s390_core_read_description): Use correct CORE_ADDR
1827 for hwcap local variable used as third parameter
1828 of function target_auxv_search.
1829
88505fac
PM
18302013-09-14 Pierre Muller <muller@sourceware.org>
1831 Tom Tromey <tromey@redhat.com>
1832 Pedro Alves <palves@redhat.com>
1833
1834 * common/filestuff.c (gdb_fopen_cloexec): Do not try to use "e"
1835 mode if operating system doesn't know O_CLOEXEC.
1836
d3846e71
JK
18372013-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1838
1839 Code cleanup.
1840 * symfile.c (reread_symbols): Move variable obfd_filename to a more
1841 inner block.
1842
4ac33720
UW
18432013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
1844
1845 * NEWS: Mention TDB support.
1846 * features/s390-tdb.xml: New file.
1847 * features/s390-te-linux64.xml: New file.
1848 * features/s390x-te-linux64.xml: New file.
1849 * features/Makefile (WHICH): Add new tdescs above.
1850 (s390-te-linux64-expedite): Set.
1851 (s390x-te-linux64-expedite): Set.
1852 * features/s390-te-linux64.c: New file (generated).
1853 * features/s390x-te-linux64.c: New file (generated).
1854 * regformats/s390-te-linux64.dat: New file (generated).
1855 * regformats/s390x-te-linux64.dat: New file (generated).
1856 * s390-tdep.h (HWCAP_S390_HIGH_GPRS): Define.
1857 (HWCAP_S390_TE): Likewise.
1858 (S390_TDB_DWORD0_REGNUM): Likewise.
1859 (S390_TDB_DWORD0_REGNUM): Likewise.
1860 (S390_TDB_ABORT_CODE_REGNUM): Likewise.
1861 (S390_TDB_CONFLICT_TOKEN_REGNUM): Likewise.
1862 (S390_TDB_ATIA_REGNUM): Likewise.
1863 (S390_TDB_R0_REGNUM): Likewise.
1864 (S390_TDB_R1_REGNUM): Likewise.
1865 (S390_TDB_R2_REGNUM): Likewise.
1866 (S390_TDB_R3_REGNUM): Likewise.
1867 (S390_TDB_R4_REGNUM): Likewise.
1868 (S390_TDB_R5_REGNUM): Likewise.
1869 (S390_TDB_R6_REGNUM): Likewise.
1870 (S390_TDB_R7_REGNUM): Likewise.
1871 (S390_TDB_R8_REGNUM): Likewise.
1872 (S390_TDB_R9_REGNUM): Likewise.
1873 (S390_TDB_R10_REGNUM): Likewise.
1874 (S390_TDB_R11_REGNUM): Likewise.
1875 (S390_TDB_R12_REGNUM): Likewise.
1876 (S390_TDB_R13_REGNUM): Likewise.
1877 (S390_TDB_R14_REGNUM): Likewise.
1878 (S390_TDB_R15_REGNUM): Likewise.
1879 (S390_NUM_REGS): Increase.
1880 (S390_IS_TDBREGSET_REGNUM): New macro.
1881 (s390_regmap_tdb): Declare.
1882 (s390_sizeof_tdbregset): Define.
1883 (tdesc_s390_te_linux64): Declare.
1884 (tdesc_s390x_te_linux64): Likewise.
1885 * s390-tdep.c: Add includes for "auxv.h", <elf.h>,
1886 "features/s390-te-linux64.c", and "features/s390x-te-linux64.c".
1887 (s390_regmap_tdb): New regmap.
1888 (s390_supply_tdb_regset): New function.
1889 (s390_tdb_regset): New regset.
1890 (s390_linux64v2_regset_sections): Add TDB regset to list.
1891 (s390x_linux64v2_regset_sections): Likewise.
1892 (s390_regset_from_core_section): Recognize TDB core note section.
1893 (s390_core_read_description): If HWCAP indicates TE support,
1894 select tdesc_s390_te_linux64 or tdesc_s390_s390x_te_linux64.
1895 (s390_gdbarch_init): Handle TDB regset.
1896 (_initialize_s390_tdep): Initialize new tdescs.
1897 * s390-nat.c (HWCAP_S390_HIGH_GPRS): Remove define.
1898 (have_regset_tdb): New variable.
1899 (s390_native_supply): Support register invalidation.
1900 (fetch_regset): Invalidate registers if ptrace yields ENODATA.
1901 (check_regset): Treat ENODATA as "regset exists".
1902 (s390_linux_fetch_inferior_registers): Add TDB.
1903 (s390_read_description): Check for TDB existence and select
1904 appropriate tdesc.
1905 * gdbserver/Makefile.in (clean): Add removal of new makefile
1906 targets.
1907 (s390-te-linux64.c): New makefile target.
1908 (s390x-te-linux64.c): Likewise.
1909 * gdbserver/configure.srv (srv_regobj): Append new objects
1910 s390-te-linux64.o and s390x-te-linux64.o.
1911 (srv_xmlfiles): Append new files s390-te-linux64.xml,
1912 s390x-te-linux64.xml, and s390-tdb.xml.
1913 * gdbserver/linux-s390-low.c (init_registers_s390_te_linux64): New
1914 declaration.
1915 (tdesc_s390_te_linux64): Likewise.
1916 (init_registers_s390x_te_linux64): Likewise.
1917 (tdesc_s390x_te_linux64): Likewise.
1918 (s390_check_regset): Treat ENODATA as "regset exists".
1919 (s390_arch_setup): Add TDB regset support.
1920 (initialize_low_arch): Initialize registers for new tdescs.
1921
2ccd1468
UW
19222013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
1923
1924 * s390-tdep.h (S390_IS_GREGSET_REGNUM): New macro.
1925 (S390_IS_FPREGSET_REGNUM): New macro.
1926 * s390-tdep.c (s390_dwarf_regmap): Make const.
1927 (regnum_is_gpr_full): New function for replacing repeated code.
1928 (s390_pseudo_register_name): Use it.
1929 (s390_pseudo_register_type): Likewise.
1930 (s390_pseudo_register_read): Likewise.
1931 (s390_pseudo_register_write): Likewise.
1932 (s390_unwind_pseudo_register): Likewise.
1933 (s390_regmap_gregset): New format for regmap.
1934 (s390x_regmap_gregset): Likewise.
1935 (s390_regmap_fpregset): Likewise.
1936 (s390_regmap_upper): Likewise.
1937 (s390_regmap_last_break): Likewise.
1938 (s390_regmap_system_call): Likewise.
1939 (s390_supply_regset): Adjust to new regmap format.
1940 (s390_collect_regset): Likewise.
1941 * s390-nat.c (s390_native_supply): Adjust to new regmap format.
1942 (s390_native_collect): Likewise.
1943 (supply_gregset): Likewise.
1944 (fill_gregset): Likewise.
1945 (supply_fpregset): Likewise.
1946 (fill_fpregset): Likewise.
1947 (fetch_regset): Likewise.
1948 (store_regset): Likewise.
1949 (s390_linux_fetch_inferior_registers): Likewise.
1950 (s390_linux_fetch_inferior_registers): Likewise.
1951
1aa4cd77
AP
19522013-09-12 Andrew Pinski <apinski@cavium.com>
1953
1954 * aarch64-linux-nat.c (aarch64_linux_set_debug_regs): Zero out regs.
1955
d91fab15
UW
19562013-09-10 Andreas Arnez <arnez@linux.vnet.ibm.com>
1957
1958 * config/s390/s390.mh (NATDEPFILES): Add linux-waitpid.o.
1959
5a5d8ead
AB
19602013-09-09 Andrew Burgess <aburgess@broadcom.com>
1961
1962 * top.c (quit_confirm): Remove use of deprecated_init_ui_hook.
1963
1385f66c
PA
19642013-09-06 Pedro Alves <palves@redhat.com>
1965
1966 * remote-sim.c (dump_mem, gdbsim_fetch_register)
1967 (gdbsim_store_register, gdbsim_kill, gdbsim_load)
1968 (gdbsim_create_inferior, gdbsim_open, gdbsim_close)
1969 (gdbsim_detach, gdbsim_resume_inferior, gdbsim_wait)
1970 (gdbsim_files_info, gdbsim_mourn_inferior): Send debug output to
1971 gdb_stdlog.
1972
146ec4db
PA
19732013-09-06 Pedro Alves <palves@redhat.com>
1974
1975 * remote-sim.c (dump_mem): Constify buf parameter.
1976 gdbsim_xfer_inferior_memory): Rename to ...
1977 (gdbsim_xfer_memory): ... this. Adjust interface as
1978 target_xfer_partial helper.
1979 (gdbsim_xfer_partial): New function.
1980 (init_gdbsim_ops): Don't install a deprecated_xfer_memory hook.
1981 Install a to_xfer_partial hook. Send output to gdb_stdlog.
1982
fcde0081
PA
19832013-09-06 Pedro Alves <palves@redhat.com>
1984
1985 * remote-sim.c (gdbsim_xfer_inferior_memory): Use
1986 host_address_to_string, and send debug output to gdb_stdlog.
1987
749c8b38
RW
19882013-09-06 Ricard Wanderlof <ricardw@axis.com>
1989
1990 * Makefile.in (ALL_TARGET_OBS): Add cris-linux-tdep.o.
1991 * configure.tgt: Add cris-linux-tdep.o and linux-tdep.o to
1992 gdb_target_obs for cris target.
1993 * cris-tdep.c (struct gdbarch_tdep): Move to cris-tdep.h.
1994 (cris_gdbarch_init): Move calls to
1995 set_gdbarch_fetch_tls_load_module_address and
1996 set_solib_svr4_fetch_link_map_offsets to cris-linux-tdep.c.
1997 Add call to gdbarch_init_osabi.
1998 * cris-linux-tdep.c: New file.
1999 * cris-tdep.h: New file.
2000
43df09d9
AB
20012013-09-06 Andrew Burgess <aburgess@broadcom.com>
2002
2003 * tui/tui-io.c (tui_initialize_io): Remove legacy comment referring
2004 to deprecated_init_ui_hook.
2005
4d09c5b4
AB
20062013-09-06 Andrew Burgess <aburgess@broadcom.com>
2007
2008 * cli/cli-interp.c (_initialize_cli_interp): Add a
2009 command_loop_proc to interp_procs.
2010 * event-top.c (cli_command_loop): Change signature to match
2011 interp_command_loop_ftype.
2012 * event-top.h (cli_command_loop): Same.
2013 * interps.c (interp_new): Require every interpreter to have a
2014 command_loop_proc.
2015 (current_interp_command_loop): Just call the command_loop_proc on
2016 the current interpreter.
2017 * tui/tui-interp.c (_initialize_tui_interp): Add a
2018 command_loop_proc to interp_procs.
2019
8eb3d7b6
RW
20202013-09-06 Ricard Wanderlof <ricardw@axis.com>
2021
2022 * cris-tdep.c (cris_gdbarch_init): Add call to
2023 get_gdbarch_fetch_tls_load_module_address.
2024
18b3c2f5
RW
20252013-09-06 Ricard Wanderlof <ricardw@axis.com>
2026
2027 * cris-tdep.c (cris_elf_greg_t): Rename from elf_greg_t.
2028 (cris_elf_gregset_t): Rename from elf_gregset_t.
2029 (crisv32_elf_gregset_t): Adjust.
2030 (cris_supply_gregset, fetch_core_registers): Adjust.
2031
dc8636ef
RW
20322013-09-06 Ricard Wanderlof <ricardw@axis.com>
2033
2034 * cris-tdep.c (elf_greg_t): Change typedef to unsigned char[4]
2035
257e6d53
AB
20362013-09-05 Andrew Burgess <aburgess@broadcom.com>
2037
1581d8a7 2038 * defs.h (deprecated_command_loop_hook): Remove, including
257e6d53 2039 references in comments.
1581d8a7 2040 * interps.c (current_interp_command_loop): No longer use
257e6d53
AB
2041 deprecated_command_loop_hook.
2042 (clear_interpreter_hooks): Remove deprecated_command_loop_hook
2043 setup.
1581d8a7 2044 * top.c (deprecated_command_loop_hook): Remove.
257e6d53 2045
7c33b57c
PA
20462013-09-05 Pedro Alves <palves@redhat.com>
2047
2048 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): 'dwarf_regnum'
2049 local is now int instead of ULONGEST. Print it with %d
2050 instead of paddress.
2051
9f8edbd5
TG
20522013-09-05 Tristan Gingold <gingold@adacore.com>
2053
2054 * MAINTAINERS: Remove avr maintainership.
2055
d5b495b4
PA
20562013-09-05 Pedro Alves <palves@redhat.com>
2057
2058 * findvar.c (value_of_register): Rework in terms of
2059 value_of_register_lazy.
2060
40b91786
MB
20612013-09-05 Muhammad Bilal <mbilal@codesourcery.com>
2062
2063 * symfile.c (add_symbol_file_command): Remove trailing
2064 whitespaces and blank line after comment.
2065
6eed1678
PA
20662013-09-05 Pedro Alves <palves@redhat.com>
2067
2068 * tui/tui-regs.c (tui_register_format): Don't look at the
2069 register's name here. Return string representing register
2070 value instead of storing it in the data element.
2071 (tui_get_register): Compare register string representations
2072 instead of register value states and contents.
2073
8eb6bda2
PA
20742013-09-05 Pedro Alves <palves@redhat.com>
2075
2076 PR tui/15933
2077 * tui/tui-regs.c (tui_show_registers): Show registers of the
2078 selected frame, not the current frame.
2079
48b1f08c
RW
20802013-09-05 Ricard Wanderlof <ricardw@axis.com>
2081
2082 * MAINTAINERS (Write After Approval): Add myself to the list.
2083
89e63ee4
DE
20842013-09-04 Doug Evans <dje@google.com>
2085
2086 * dwarf2read.c (queue_and_load_all_dwo_tus): New function.
2087 (queue_and_load_dwo_tu): New function.
2088 (lookup_dwo_signatured_type): Set per_cu.tu_read.
2089 (maybe_queue_comp_unit): Rename this_cu argument to dependent_cu.
2090 Make dependent_cu optional.
2091 (dw2_do_instantiate_symtab): If we just loaded a CU from a DWO,
2092 and an older .gdb_index is in use, queue and load all its TUs too.
2093
492c0ab7
JK
20942013-09-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2095
2096 Code cleanup: Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH.
2097 * cli/cli-cmds.c (find_and_open_script): Add OPF_RETURN_REALPATH to
2098 variable search_flags.
2099 * defs.h (OPF_DISABLE_REALPATH): Rename to ...
2100 (OPF_RETURN_REALPATH): ... here.
2101 * dwarf2read.c (try_open_dwop_file): Set OPF_RETURN_REALPATH for flags.
2102 * exec.c (exec_file_attach): Remove OPF_DISABLE_REALPATH from openp
2103 call. Twice.
2104 * nto-tdep.c (nto_find_and_open_solib): Add OPF_RETURN_REALPATH for
2105 openp call.
2106 * solib.c (solib_find): Likewise. Four times.
2107 * source.c (openp): Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH
2108 in the function comment and for the realpath_fptr variable.
2109 (source_full_path_of): Add OPF_RETURN_REALPATH for openp call.
2110 (find_and_open_source): Likewise. Twice.
2111 * symfile.c (symfile_bfd_open): Likewise, also twice.
2112
23a44de8
DE
21132013-09-04 Doug Evans <dje@google.com>
2114
2115 * progspace.c (save_current_space_and_thread): Remove unnecessary
2116 call to save_current_inferior.
2117
47061676
AB
21182013-09-04 Andrew Burgess <aburgess@broadcom.com>
2119
2120 * sh64-tdep.c (sh64_do_register): Return after printing message
2121 about unavailable register contents.
2122
41dc8db8
MB
21232013-09-04 Muhammad Bilal <mbilal@codesourcery.com>
2124 Pedro Alves <palves@redhat.com>
2125
2126 * symfile.c (add_symbol_file_command): Error out on unknown
2127 option. Handle EXPECTING_SEC_ADDR/EXPECTING_SEC_NAME before '-'
2128 options and collapse into single conditional branch.
2129
07107ca6
LM
21302013-09-03 Luis Machado <lgustavo@codesourcery.com>
2131
a7ea61cf 2132 * inf-child.c (inf_child_follow_fork): New parameter
07107ca6
LM
2133 detach_fork.
2134 * inf-ptrace.c (inf_ptrace_follow_fork): Likewise.
2135 * inf-ttrace.c (inf_ttrace_follow_fork): Likewise.
2136 * inferior.h (detach_fork): Remove.
2137 * infrun.c (detach_fork): Adjust comment and make it
2138 static.
2139 (follow_fork): Pass detach_fork parameter to
2140 target_follow_fork.
2141 * linux-nat.c (linux_child_follow_fork): New parameter
2142 detach_fork.
2143 * target.c (target_follow_fork): New parameter detach_fork.
2144 Pass detach_fork as parameter and print its value.
2145 * target.h (struct target_ops) <to_follow_fork>: New int
2146 parameter.
2147 (target_follow_fork): New parameter detach_fork.
2148
3bec2768
JB
21492013-09-03 Joel Brobecker <brobecker@adacore.com>
2150
2151 * solib-ia64-hpux.c (ia64_hpux_relocate_section_addresses):
2152 Replace sec->bfd by sec->the_bfd_section->owner.
2153
c01cbb3d
YQ
21542013-09-03 Yao Qi <yao@codesourcery.com>
2155
2156 * linux-tdep.c (linux_is_uclinux): New function. Code moved
2157 from linux_has_shared_address_space.
2158 (linux_has_shared_address_space): Call linux_is_uclinux.
2159 * linux-tdep.h (linux_is_uclinux): Declare.
2160 * m68klinux-tdep.c (m68k_linux_get_sigtramp_info): Call
2161 linux_is_uclinux.
2162
7b00db47
YQ
21632013-09-03 Yao Qi <yao@codesourcery.com>
2164
2165 * config/djgpp/fnchange.lst: Remove entry of
2166 i386-interix-nat.c and i386-interix-tdep.c.
2167 * configure.ac: Remove '*-*-interix*'.
2168 * configure: Re-generated.
2169 * defs.h (enum gdb_osabi): Remove GDB_OSABI_INTERIX.
2170 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Remove
2171 obsolete comments.
2172 * osabi.c (gdb_osabi_names): Remove "Interix".
2173
0f9741f2
YQ
21742013-09-03 Yao Qi <yao@codesourcery.com>
2175
2176 * arch-utils.c: Fix typo in the comment to gdbarch_update_p.
2177
1e038f67
MM
21782013-09-02 Markus Metzger <markus.t.metzger@intel.com>
2179
2180 * record.h (record_print_flag) <record_print_src_line,
2181 record_print_insn_range>: Rename into ...
2182 (record_print_flag) <record_print_src_line,
2183 record_print_insn_range>: ... this. Update all users.
2184
9e52adf9
PM
21852013-09-02 Pierre Muller <muller@sourceware.org>
2186
2187 * windows-nat.c (windows_xfer_memory): Handle ERROR_PARTIAL_COPY
2188 error code.
2189
a2388568
PM
21902013-09-02 Pierre Muller <muller@sourceware.org>
2191
2192 * windows-nat.c (windows_xfer_memory): Fix compilation failure
2193 by use of plongest function.
2194
9058cc3a
TG
21952013-09-02 Tristan Gingold <gingold@adacore.com>
2196
2197 * NEWS: Add entry mentioning support for native Windows x64
2198 SEH data.
2199
2200 * amd64-windows-tdep.c: #include "objfiles.h", "frame-unwind.h",
2201 "coff/internal.h", "coff/i386.h", "coff/pe.h" and "libcoff.h".
2202 (struct amd64_windows_frame_cache): New struct.
2203 (amd64_windows_w2gdb_regnum): New global.
2204 (pc_in_range, amd64_windows_frame_decode_epilogue)
2205 (amd64_windows_frame_decode_insns, amd64_windows_find_unwind_info)
2206 (amd64_windows_frame_cache, amd64_windows_frame_prev_register)
2207 (amd64_windows_frame_this_id): New functions.
2208 (amd64_windows_frame_unwind): New static global.
2209 (amd64_windows_skip_prologue): New function.
2210 (amd64_windows_init_abi): Call frame_unwind_prepend_unwinder
2211 with amd64_windows_frame_unwind. Call set_gdbarch_skip_prologue
2212 with amd64_windows_skip_prologue.
2213
3161820b 22142013-08-30 Joel Brobecker <brobecker@adacore.com>
2215
2216 GDB 7.6.1 released.
2217
02457c76
PA
22182013-08-30 Pedro Alves <palves@redhat.com>
2219
2220 * mi/mi-main.c (mi_cmd_trace_find): Use LOC_AND_ADDRESS instead of
2221 SRC_AND_LOC.
2222
e0162910
PA
22232013-08-30 Pedro Alves <palves@redhat.com>
2224
2225 * thread.c (restore_selected_frame): Use SRC_AND_LOC, and change
2226 warning text.
2227
6391ce51
PA
22282013-08-30 Pedro Alves <palves@redhat.com>
2229
2230 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
2231 Adjust arguments to print_stack_frame.
2232
d1da0587
PA
22332013-08-30 Pedro Alves <palves@redhat.com>
2234
2235 * ada-tasks.c (task_command_1): Write SRC_AND_LOC instead '1'.
2236
adfd8245
PA
22372013-08-30 Pedro Alves <palves@redhat.com>
2238
2239 * frame.h (show_and_print_stack_frame): Delete declaration.
2240
96d9056e
PM
22412013-08-30 Phil Muldoon <pmuldoon@redhat.com>
2242
2243 PR python/15461
96d9056e
PM
2244 * python/py-arch.c (ARCHPY_REQUIRE_VALID): New macro.
2245 (archpy_name): Check for valid architecture.
2246 (archpy_disassemble): Ditto.
2247
11cb8762
JB
22482013-08-29 Joel Brobecker <brobecker@adacore.com>
2249
2250 * rs6000-nat.c (rs6000_ptrace32): Cast "addr" to "uintptr_t"
2251 instead of "long long" in call to ptrace64.
2252
1af12a7d
AB
22532013-08-29 Andrew Burgess <aburgess@broadcom.com>
2254
2255 * mi/mi-interp.c (mi_command_loop): Change signature to match
2256 interp_command_loop_ftype.
2257 (mi1_command_loop): Remove.
2258 (mi2_command_loop): Remove.
2259 (mi3_command_loop): Remove.
2260 (mi_interpreter_resume): Remove setting of
2261 deprecated_command_loop_hook.
2262 (_initialize_mi_interp): Set mi_command_loop as the command loop
2263 callback.
2264
acc900c2
SA
22652013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
2266
2267 * valops.c (do_search_struct_field): Pass v2 instead of base_type to
2268 value_type.
2269
548b762d
SA
22702013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
2271
2272 * value.c (allocate_value_contents): Make static.
2273 * value.h (allocate_value_contents): Remove prototype.
2274
08039c9e
SA
22752013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
2276
2277 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use value_at_lazy instead
2278 of assembling value via allocate_value_lazy and attribute setter.
2279 * findvar.c (default_read_var_value): Use value_at_lazy instead of
2280 assembling value via allocate_value_lazy and attribute setter.
2281 * valops.c (do_search_struct_field): Use value_at_lazy instead of
2282 assembling value via allocate_value_lazy and attribute setter.
2283
314c7de9
SA
22842013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
2285
2286 * value.c (value_from_contents_and_address): Replace allocate_value and
2287 memcpy with value_from_contents.
2288
8f28f522
PM
22892013-08-29 Phil Muldoon <pmuldoon@redhat.com>
2290
2291 * python/py-framefilter.c (py_print_frame): Remove usage of
2292 PyString_AsString. Use python_string_to_host_string instead.
2293 Refactor function to work with a string as a new allocation
2294 instead of a pointer.
2295 (py_print_frame): Ditto.
2296 * python/lib/gdb/frames.py (return_list): Cain iterators together
2297 instead of adding them as a list.
2298 (_sort_list): Call return_list, and remove duplicate code.
2299 (execute_frame_filters): Convert iterator to a list with list().
2300 * python/lib/gdb/command/frame_filters.py
2301 (SetFrameFilterPriority._set_filter_priority): Convert priority
2302 attribute to an integer.
2303 * python/lib/gdb/FrameIterator.py (FrameIterator.next): Define
2304 wrapper function __next__.
2305 * python/lib/gdb/FrameDecorator.py: If basestring not defined,
2306 define as "str".
2307
8ee002df
PM
23082013-08-29 Phil Muldoon <pmuldoon@redhat.com>
2309
2310 PR python/15752
8ee002df
PM
2311 * python/py-framefilter.c (apply_frame_filter): Check
2312 gdb_python_initialized. Exit if the Python frame-filter code
2313 cannot be initialized.
2314
af4c453a
PM
23152013-08-29 Phil Muldoon <pmuldoon@redhat.com>
2316
2317 PR cli/15842
af4c453a
PM
2318 * top.c (print_gdb_version): Remove erroneous newline after help
2319 text.
2320
bf8793bb
YQ
23212013-08-29 Yao Qi <yao@codesourcery.com>
2322
2323 * varobj.c (install_dynamic_child): Remove trailing space.
2324 Add one blank line after variable declaration.
2325
1f0c4988
JK
23262013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2327
2328 PR gdb/15415
2329 * corefile.c (get_exec_file): Use exec_filename.
2330 * defs.h (OPF_DISABLE_REALPATH): New definition. Add new comment.
2331 * exec.c (exec_close): Free EXEC_FILENAME.
2332 (exec_file_attach): New variable canonical_pathname. Use
2333 OPF_DISABLE_REALPATH. Call gdb_realpath explicitly. Set
2334 EXEC_FILENAME.
2335 * exec.h (exec_filename): New.
2336 * inferior.c (print_inferior, inferior_command): Use
2337 PSPACE_EXEC_FILENAME.
2338 * mi/mi-main.c (print_one_inferior): Likewise.
2339 * progspace.c (clone_program_space, print_program_space): Likewise.
2340 * progspace.h (struct program_space): New field pspace_exec_filename.
2341 * source.c (openp): Describe OPF_DISABLE_REALPATH. New variable
2342 realpath_fptr, initialize it from OPF_DISABLE_REALPATH, use it.
2343
59ee9f94
WN
23442013-08-28 Will Newton <will.newton@linaro.org>
2345
2346 * common/linux-ptrace.c: Include stdint.h unconditionally.
2347
c8a2a419
JK
23482013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2349
2350 Code cleanup.
2351 * nto-tdep.c (nto_find_and_open_solib): Use OPF_TRY_CWD_FIRST.
2352
ffa4ac95
YQ
23532013-08-28 Yao Qi <yao@codesourcery.com>
2354 Pedro Alves <palves@redhat.com>
2355
2356 * event-top.c (gdb_setup_readline): Call stderr_fileopen
2357 instead of stdio_fileopen.
2358 * main.c (captured_main) [__MINGW32__]: Set stderr unbuffered.
2359 .Call stderr_fileopen instead of stdio_fileopen.
2360 * ui-file.c [__MINGW32__] (stderr_file_write): New function.
2361 [__MINGW32__] (stderr_file_fputs): New function.
2362 (stderr_fileopen): New function.
2363 * ui-file.h (stderr_fileopen): Declare.
2364
69d751e3
DE
23652013-08-27 Doug Evans <dje@google.com>
2366
2367 * dwarf2read.c (struct dwarf2_cu): Tweak comment.
2368 (struct dwarf2_per_cu_data): Ditto.
2369 (maybe_queue_comp_unit): Delete forward decl. Add comment.
2370 (process_imported_unit_die): Ditto.
2371 (follow_die_sig_1): Simplify assert.
2372
44f38867
PA
23732013-08-27 Pedro Alves <palves@redhat.com>
2374
2375 * windows-nat.c (windows_xfer_memory): Adjust prototype to follow
2376 xfer_partial's interface. Return TARGET_XFER_E_IO on error.
2377 (windows_xfer_partial): Defer TARGET_OBJECT_MEMORY handling to
2378 windows_xfer_memory directly.
2379 (init_windows_ops): Don't install a deprecated_xfer_memory method.
2380
d28d46b5
PA
23812013-08-27 Pedro Alves <palves@redhat.com>
2382
2383 * darwin-nat.c (darwin_xfer_memory): Delete.
2384 (_initialize_darwin_inferior): Don't install a
2385 deprecated_xfer_memory method.
2386
6211c335
YQ
23872013-08-27 Pedro Alves <pedro@codesourcery.com>
2388 Yao Qi <yao@codesourcery.com>
2389
2390 * mi/mi-cmd-stack.c (list_args_or_locals): Adjust prototype.
2391 (parse_no_frames_option): Remove.
2392 (mi_cmd_stack_list_locals): Handle --skip-unavailable.
2393 (mi_cmd_stack_list_args): Adjust.
2394 (mi_cmd_stack_list_variables): Handle --skip-unavailable.
2395 (list_arg_or_local): Add new parameter 'skip_unavailable'. Return
2396 early if SKIP_UNAVAILABLE is true and ARG->val is unavailable.
2397 Caller update.
2398 (list_args_or_locals): New parameter 'skip_unavailable'.
2399 Handle it.
2400 * valprint.c (scalar_type_p): Rename to ...
2401 (val_print_scalar_type_p): ... this. Make extern.
2402 (val_print, value_check_printable): Adjust.
2403 * valprint.h (val_print_scalar_type_p): Declare.
2404 * value.c (value_entirely_unavailable): New function.
2405 * value.h (value_entirely_unavailable): Declare.
2406
2407 * NEWS: Mention the new option "--skip-unavailable" to MI
2408 commands '-stack-list-locals', '-stack-list-arguments' and
2409 '-stack-list-variables'.
2410
242f1fd7
YQ
24112013-08-27 Yao Qi <yao@codesourcery.com>
2412
2413 * mi/mi-cmd-stack.c (parse_no_frames_option): Remove.
2414 (mi_cmd_stack_list_args): Use mi_getopt_silent to handle
2415 options.
2416 * mi/mi-getopt.c (mi_getopt): Remove.
2417 (mi_getopt_1): Renamed from mi_getopt. Add one parameter
2418 'error_on_unknown'.
2419 (mi_getopt): Call mi_getopt_1.
2420 (mi_getopt_silent): New.
2421 * mi/mi-getopt.h (mi_getopt_silent): Declare.
2422
260b681b
DE
24232013-08-26 Doug Evans <dje@google.com>
2424
779bd270
DE
2425 PR symtab/15885
2426 * dwarf2read.c (dw2_dump): Print some minimal information indicating
2427 .gdb_index is in use.
2428 * symfile.c (reread_symbols): Reset objfile->sf.
2429
52e260a3
DE
2430 * NEWS: Document "mt print objfiles" now takes optional regexp.
2431 * symmisc.c (maintenance_print_objfiles): Argument is now an optional
2432 regexp of objfiles to print.
2433 (_initialize_symmisc): Update doc string for "mt print objfiles".
2434
260b681b
DE
2435 * dwarf2read.c (write_psymtabs_to_index): Move error checks ahead of
2436 missing debug info checks.
2437
a85c52f2
UW
24382013-08-26 Raunaq Bathija <raunaq12@in.ibm.com>
2439 Ulrich Weigand <uweigand@de.ibm.com>
2440
2441 * xcoffread.c (arrange_linetable): Add fix to correctly handle
2442 line tables generated by XLC compiled binaries.
2443
4f00dda3
DE
24442013-08-23 Doug Evans <dje@google.com>
2445
db68bbae
DE
2446 * symmisc.c (dump_symtab): Delete prototype.
2447 (dump_msymbols, dump_objfile): Ditto.
2448 (maintenance_info_symtabs): Mark as dont_repeat.
2449 (_initialize_symmisc): Improve doc string for "mt info symtabs".
2450
4f00dda3
DE
2451 * elfread.c (elf_symfile_read): Move "Done reading minimal symbols"
2452 debugging printf to better location.
2453
23d577b0
PA
24542013-08-23 Pedro Alves <palves@redhat.com>
2455
2456 * target.c (target_read_live_memory): Change type of 'ret' local
2457 to LONGEST.
2458
00d84524
PA
24592013-08-23 Pedro Alves <palves@redhat.com>
2460
2461 * remote.c (remote_write_bytes_aux, remote_write_bytes)
2462 (remote_read_bytes): Change return type to LONGEST, and adjust to
2463 return a target_xfer_error on error.
2464 (remote_xfer_memory): Delete.
2465 (remote_flash_write): Change type of 'ret' local to LONGEST.
2466 (remote_xfer_partial, remote_xfer_partial): Adjust.
2467 (init_remote_ops): Don't install a deprecated_xfer_memory hook.
2468
1ed3ee94
PM
24692013-08-23 Pierre Muller <muller@sourceware.org>
2470
2471 ARI fix: Push # directives to start of line.
2472 * rs6000-nat.c (rs6000_ptrace32, rs6000_ptrace64): Rule applied.
2473
9eaabc75
MW
24742013-08-12 Muhammad Waqas <mwaqas@codesourcery.com>
2475
2476 PR gdb/15501
2477 * breakpoint.c (enable_command, disable_command): Iterate over
2478 all specified breakpoint locations.
2479
101158d9
LM
24802013-08-22 Luis Machado <lgustavo@codesourcery.com>
2481
2482 * common/linux-ptrace.c (linux_fork_to_function): Push #
2483 directives to the start of the line.
2484 (linux_check_ptrace_features): Fix warning message to use
2485 the "_" markup.
2486
96d7229d
LM
24872013-08-22 Luis Machado <lgustavo@codesourcery.com>
2488
2489 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-nat.h and
2490 nat/linux-waitpid.h.
2491 (linux-waitpid.o): New object file rule.
2492 * common/linux-ptrace.c: Include nat/linux-waitpid.h.
2493 (current_ptrace_options): Moved from linux-nat.c.
2494 (linux_ptrace_test_ret_to_nx): Use type casts for ptrace
2495 parameters.
2496 (linux_fork_to_function): New function.
2497 (linux_grandchild_function): Likewise.
2498 (linux_child_function): Likewise.
2499 (linux_check_ptrace_features): New function, heavily
2500 based on linux-nat.c:linux_test_for_tracefork.
2501 (linux_enable_event_reporting): New function.
2502 (ptrace_supports_feature): Likewise.
2503 (linux_supports_tracefork): Likewise.
2504 (linux_supports_traceclone): Likewise.
2505 (linux_supports_tracevforkdone): Likewise.
2506 (linux_supports_tracesysgood): Likewise.
2507 * common/linux-ptrace.h (HAS_NOMMU): Moved from
2508 gdbserver/linux-low.c.
2509 (linux_enable_event_reporting): New declaration.
2510 (linux_supports_tracefork): Likewise.
2511 (linux_supports_traceclone): Likewise.
2512 (linux_supports_tracevforkdone): Likewise.
2513 (linux_supports_tracesysgood): Likewise.
2514 * config.in (PTRACE_TYPE_ARG4): Regenerate.
2515 * config/aarch64/linux.mh (NATDEPFILES): Add linux-waitpid.o.
2516 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
2517 * config/arm/linux.mh (NATDEPFILES): Likewise.
2518 * config/i386/linux.mh (NATDEPFILES): Likewise.
2519 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2520 * config/ia64/linux.mh (NATDEPFILES): Likewise.
2521 * config/m32r/linux.mh (NATDEPFILES): Likewise.
2522 * config/m68k/linux.mh (NATDEPFILES): Likewise.
2523 * config/mips/linux.mh (NATDEPFILES): Likewise.
2524 * config/pa/linux.mh (NATDEPFILES): Likewise..
2525 * config/powerpc/linux.mh (NATDEPFILES): Likewise..
2526 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
2527 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
2528 * config/sparc/linux.mh (NATDEPFILES): Likewise.
2529 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
2530 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
2531 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
2532 * configure.ac (AC_CACHE_CHECK): Add void * to the list of
2533 ptrace's 4th argument's types.
2534 Check the type of PTRACE_TYPE_ARG4.
2535 * configure: Regenerate.
2536 * linux-nat.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
2537 (SYSCALL_SIGTRAP): Moved to nat/linux-nat.h.
2538 (linux_supports_tracefork_flag): Remove.
2539 (linux_supports_tracesysgood_flag): Likewise.
2540 (linux_supports_tracevforkdone_flag): Likewise.
2541 (current_ptrace_options): Moved to
2542 common/linux-ptrace.c.
2543 (linux_tracefork_child): Remove.
2544 (my_waitpid): Remove.
2545 (linux_test_for_tracefork): Renamed to
2546 linux_check_ptrace_features and moved to common/linux-ptrace.c.
2547 (linux_test_for_tracesysgood): Remove.
2548 (linux_supports_tracesysgood): Remove.
2549 (linux_supports_tracefork): Remove.
2550 (linux_supports_tracevforkdone): Remove.
2551 (linux_enable_tracesysgood): Remove.
2552 (linux_enable_event_reporting): Remove.
2553 (linux_init_ptrace): New function.
2554 (linux_child_post_attach): Call linux_init_ptrace.
2555 (linux_child_post_startup_inferior): Call linux_init_ptrace.
2556 (linux_child_follow_fork): Call linux_supports_tracefork
2557 and linux_supports_tracevforkdone.
2558 (linux_child_insert_fork_catchpoint): Call
2559 linux_supports_tracefork.
2560 (linux_child_insert_vfork_catchpoint): Likewise.
2561 (linux_child_set_syscall_catchpoint): Call
2562 linux_supports_tracesysgood.
2563 (lin_lwp_attach_lwp): Call linux_supports_tracefork.
2564 * nat/linux-nat.h: New file.
2565 * nat/linux-waitpid.c: New file.
2566 * nat/linux-waitpid.h: New file.
2567
9f948660
SDJ
25682013-08-22 Samuel Bronson <naesten@gmail.com>
2569
2570 ARM Linux support for `catch syscall'.
2571 * syscalls/arm-linux.py: New file.
2572 * syscalls/arm-linux.xml: Likewise.
2573 * arm-linux-tdep.c (arm_linux_get_syscall_number): New function.
2574 (arm_linux_init_abi): Register the new function and syscall xml file.
2575 * data-directory/Makefile.in: Install the new syscall xml file.
2576 * NEWS: Brag about this.
2577
6be7b56e
PA
25782013-08-22 Pedro Alves <palves@redhat.com>
2579
2580 PR gdb/15871
2581 * corefile.c (target_xfer_memory_error): New function.
2582 (memory_error): Defer EIO to target_memory_error.
2583 (read_memory): Use target_xfer_partial, and handle finer-grained
2584 target xfer errors.
2585 * target.c (target_xfer_error_to_string): New function.
2586 (memory_xfer_partial_1): If memory is known to be
2587 unavailable, return TARGET_XFER_E_UNAVAILABLE instead of -1.
2588 (target_xfer_partial): Make extern.
2589 * target.h (enum target_xfer_error): New enum.
2590 (target_xfer_error_to_string): Declare function.
2591 (target_xfer_partial): Declare function.
2592 (struct target_ops) <xfer_partial>: Adjust describing comment.
2593
bcbec14e
AM
25942013-08-22 Alan Modra <amodra@gmail.com>
2595
2596 * configure.host: Support powerpc64le-linux and powerpcle-linux hosts.
2597 * configure.tgt: Likewise as targets.
2598
fc474241
DE
25992013-08-20 Doug Evans <dje@google.com>
2600
2601 * buildsym.c (subfile_stack): Move here from buildsym.h.
2602 (pending_macros): Ditto.
2603 (get_macro_table): New function.
2604 (buildsym_init): Initialize subfile_stack.
2605 * coffread.c (type_vector,type_vector_length): Moved here from
2606 buildsym.h.
2607 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
2608 (coff_symtab_read): Use it.
2609 * dbxread.c (read_ofile_symtab): Delete init of subfile_stack.
2610 * dwarf2read.c (macro_start_file): Replace uses of pending_macros
2611 with call to get_macro_table.
2612 * stabsread.c (type_vector,type_vector_length): Moved here from
2613 buildsym.h.
2614 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
2615 * buildsym.h (get_macro_table): Declare.
2616
bec71544
TT
26172013-08-20 Tom Tromey <tromey@redhat.com>
2618
2619 * dbxread.c (record_minimal_symbol): Make 'name' argument const.
2620 Update.
2621 (read_dbx_dynamic_symtab): Make 'name' const. Remove casts.
2622
0002ad5f
DE
26232013-08-20 Doug Evans <dje@google.com>
2624
2625 * blockframe.c: Remove #include "psymtab.h".
2626 * cp-support.c: Ditto.
2627 * source.c: Ditto.
2628 * stack.c: Ditto.
2629
df302446
TT
26302013-08-20 Tom Tromey <tromey@redhat.com>
2631
2632 PR python/15816:
2633 * exceptions.h (return_mask): Now an enum.
2634 (RETURN_MASK_QUIT, RETURN_MASK_ERROR, RETURN_MASK_ALL): Now
2635 enum constants.
2636
df6d5441
TT
26372013-08-20 Tom Tromey <tromey@redhat.com>
2638
2639 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
2640 get_objfile_arch.
2641 * elfread.c (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
2642 (elf_gnu_ifunc_resolve_by_got): Use get_objfile_arch.
2643 * jit.c (jit_object_close_impl): Update.
2644 * jv-lang.c (get_dynamics_objfile): Update.
2645 * linespec.c (add_minsym): Use get_dynamics_objfile.
2646 * objfiles.c (get_objfile_bfd_data): Initialize 'gdbarch' field.
2647 (allocate_objfile): Don't initialize 'gdbarch' field.
2648 (get_objfile_arch): Update.
2649 * objfiles.h (struct objfile_per_bfd_storage) <gdbarch>: New field,
2650 moved from...
2651 (struct objfile) <gdbarch>: ... here. Remove.
2652 * stap-probe.c (stap_can_evaluate_probe_arguments): Use
2653 get_objfile_arch.
2654 * symfile.c (init_entry_point_info): Use get_objfile_arch.
2655
f5aee5ee
AM
26562013-08-20 Alan Modra <amodra@gmail.com>
2657
2658 * doublest.c (convert_floatformat_to_doublest): Use fmt->split_half
2659 for IBM long double nan and inf.
2660 (floatformat_is_negative, floatformat_classify,
2661 floatformat_mantissa): Similarly.
2662 (floatformat_ieee_single, floatformat_ieee_double,
2663 floatformat_ieee_quad, floatformat_arm_ext,
2664 floatformat_ia64_spill): Delete unused vars.
2665 (_initialize_doublest): Delete unused function.
2666 * gdbtypes.c (floatformats_ibm_long_double): Use new big- and
2667 little-endian variants of floatformat_ibm_long_double.
2668
33b60d58 26692013-08-19 Luis Machado <lgustavo@codesourcery.com>
f5aee5ee 2670
33b60d58
LM
2671 * Makefile.in (SFILES): Remove common/target-common.c and
2672 add target/waitstatus.c.
2673 (HFILES_NO_SRCDIR): Remove common/target-common.h and add
2674 target/resume.h, target/wait.h and target/waitstatus.h.
2675 (COMMON_OBS): Remove target-common.o and add
2676 waitstatus.o.
2677 (target-common.o): Remove.
2678 (waitstatus.o): New target object file.
2679 * common/target-common.c: Move contents to
2680 target/waitstatus.c and remove.
2681 * common/target-common.h: Move contents to other files and
2682 remove.
2683 (enum resume_kind: Move to target/resume.h.
2684 (TARGET_WNOHANG): Move to target/wait.h.
2685 (enum target_waitkind): Move to target/waitstatus.h.
2686 (struct target_waitstatus): Likewise.
2687 * target.h: Do not include target-common.h and
2688 include target/resume.h, target/wait.h and
2689 target/waitstatus.h.
2690 * target/resume.h: New file.
2691 * target/wait.h: New file.
2692 * target/waitstatus.h: New file.
2693 * target/waitstatus.c: New file.
2694
12696c10
PA
26952013-08-19 Pedro Alves <palves@redhat.com>
2696
2697 * linux-nat.c (linux_test_for_tracefork)
2698 (linux_test_for_tracesysgood, linux_child_follow_fork)
2699 (lin_lwp_attach_lwp, linux_nat_resume): Don't block child signals.
2700 (linux_nat_wait_1): Extend comment.
2701 (linux_async_pipe): Add comment.
2702
ba89f962
KB
27032013-08-15 Kevin Buettner <kevinb@redhat.com>
2704
2705 * rl78-tdep.c (RL78_RAW_PC_REGNUM): New enum.
2706 (RL78_PC_REGNUM): Move to list of pseudo-register enums.
2707 (rl78_register_type, rl78_register_name, rl78_register_reggroup_p):
2708 Update to account for fact that PC is now a pseudo-register.
2709 (rl78_pseudo_register_write, rl78_pseudo_register_read): Add
2710 cases for RL78_PC_REGNUM.
2711
35ab155d
MB
27122013-08-15 Muhammad Bilal <mbilal@codesourcery.com>
2713
2714 PR cli/15841
2715 * top.c (quit_force): Skip writing history file
2716 if input is not from terminal.
2717
0d031856
TT
27182013-08-14 Tom Tromey <tromey@redhat.com>
2719
2720 * remote.c (struct remote_state) <echo_nextthread, nextthread,
2721 resultthreadlist>: New fields.
2722 (OPAQUETHREADBYTES, threadref, MAXTHREADLISTRESULTS): Move earlier.
2723 (remote_get_threadlist, remote_threadlist_iterator): Use
2724 new fields. Remove static variables.
2725
ee154bee
TT
27262013-08-14 Tom Tromey <tromey@redhat.com>
2727
2728 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p,
2729 remote_watch_data_address>: New fields.
2730 (remote_stopped_by_watchpoint_p, remote_watch_data_address): Remove.
2731 (process_stop_reply, remote_wait_as)
2732 (remote_check_watch_resources, remote_stopped_data_address): Update.
2733
88b496c3
TT
27342013-08-14 Tom Tromey <tromey@redhat.com>
2735
2736 * remote.c (struct remote_state) <async_client_callback,
2737 async_client_context>: New fields.
2738 (async_client_callback, async_client_context): Remove.
2739 (remote_async_serial_handler, remote_async): Update.
2740
2f65bcb7
TT
27412013-08-14 Tom Tromey <tromey@redhat.com>
2742
2743 * remote.c (sizeof_pkt): Remove.
2744 (remote_trace_find): Use rs->buf_size, not sizeof_pkt.
2745
b80fafe3
TT
27462013-08-14 Tom Tromey <tromey@redhat.com>
2747
2748 * remote.c (struct remote_state) <use_threadinfo_query,
2749 use_threadextra_query>: New fields.
2750 (remote_threads_info, remote_threads_extra_info)
2751 (remote_open_1): Update.
2752
8e88304f
TT
27532013-08-14 Tom Tromey <tromey@redhat.com>
2754
2755 * remote.c (struct remote_state) <finished_object,
2756 finished_annex, finished_offset>: New fields.
2757 (remote_read_qxfer): Use remote_state fields; remove static
2758 variables.
2759
280ceea3
TT
27602013-08-14 Tom Tromey <tromey@redhat.com>
2761
2762 * remote.c (struct remote_state) <last_sent_step>:
2763 New field.
2764 (last_sent_step): Remove.
2765 (remote_resume, remote_wait_as): Update.
2766
b73be471
TT
27672013-08-14 Tom Tromey <tromey@redhat.com>
2768
2769 * remote.c (struct remote_state) <last_sent_signal>:
2770 New field.
2771 (last_sent_signal): Remove.
2772 (new_remote_state, remote_resume, remote_wait_as): Update.
2773
5e4a05c4
TT
27742013-08-14 Tom Tromey <tromey@redhat.com>
2775
2776 * remote.c (struct remote_state) <last_program_signals_packet>:
2777 New field.
2778 (last_program_signals_packet): Remove.
2779 (remote_program_signals, remote_open_1): Update.
2780
747dc59d
TT
27812013-08-14 Tom Tromey <tromey@redhat.com>
2782
2783 * remote.c (struct remote_state) <last_pass_packet>:
2784 New field.
2785 (last_pass_packet): Remove.
2786 (remote_pass_signals, remote_open_1): Update.
2787
262e1174
TT
27882013-08-14 Tom Tromey <tromey@redhat.com>
2789
2790 * remote.c (struct remote_state) <remote_traceframe_number>:
2791 New field.
2792 (remote_traceframe_number): Remove.
2793 (new_remote_state, remote_open_1, set_remote_traceframe)
2794 (remote_trace_find): Update.
2795
47f8a51d
TT
27962013-08-14 Tom Tromey <tromey@redhat.com>
2797
2798 * remote.c (struct remote_state) <general_thread, continue_thread>:
2799 New fields.
2800 (general_thread, continue_thread): Remove.
2801 (record_currthread, set_thread, set_general_process)
2802 (remote_open_1, extended_remote_attach_1, remote_wait_as)
2803 (extended_remote_mourn_1): Update.
2804
5d93a237
TT
28052013-08-14 Tom Tromey <tromey@redhat.com>
2806
2807 * remote.c (struct remote_state) <remote_desc>: New field.
2808 (remote_desc): Remove.
2809 (remote_threads_info, remote_threads_extra_info, remote_close)
2810 (send_interrupt_sequence, remote_start_remote, remote_open_1)
2811 (readchar, remote_xfer_partial, remote_rcmd, packet_command)
2812 (remote_hostio_send_command, remote_file_put, remote_file_get)
2813 (remote_file_delete, remote_can_async_p, remote_is_async_p)
2814 (remote_async, remote_new_objfile, set_range_stepping): Update.
2815
cf792862
TT
28162013-08-14 Tom Tromey <tromey@redhat.com>
2817
2818 * remote.c (remote_state): Now a pointer.
2819 (get_remote_state_raw): Update.
2820 (new_remote_state): New function.
2821 (_initialize_remote): Use new_remote_state.
2822
dc473cfb
TT
28232013-08-14 Tom Tromey <tromey@redhat.com>
2824
2825 * remote.c (remote_protocol_features): Now const.
2826
85ec6ce7
TT
28272013-08-14 Tom Tromey <tromey@redhat.com>
2828
2829 * remote.c (crc32_table, crc32): Remove.
2830 (remote_verify_memory): Use xcrc32.
2831
73033f12
SDJ
28322013-08-13 Sergio Durigan Junior <sergiodj@redhat.com>
2833
2834 * value.h (create_internalvar_type_lazy): Adjust prototype
2835 declaration.
2836
5c30d39a
AB
28372013-08-13 Andrew Burgess <aburgess@broadcom.com>
2838
2839 * common/format.c (parse_format_string): Don't allow '#' flag for
2840 pointer arguments in format string.
2841
1a66331e
PM
28422013-08-13 Pierre Muller <muller@sourceware.org>
2843
fde605f3 2844 * utils.c (init_page_info): Only call tgetnum function
1a66331e
PM
2845 if rl_get_screen_size did not return useful values.
2846
b4013987
AA
28472013-08-12 Ali Anwar <ali_anwar@codesourcery.com>
2848
2849 PR breakpoints/15117
2850 * linespec.c (linespec_parse_basic): Check for convenience
2851 variable or history value while parsing.
2852
959b6a66
SDJ
28532013-08-12 Sergio Durigan Junior <sergiodj@redhat.com>
2854
2855 Revert implementation of gdbarch_gdb_signal_{to,from}_target for
2856 AVR.
2857 * avr-tdep.c: Remove include of "linux-tdep.h". Remove enum with
2858 different signals between the generic Linux kernel implementation
2859 and AVR's.
2860 (avr_linux_gdb_signal_from_target): Delete.
2861 (avr_linux_gdb_signal_to_target): Delete.
2862 (avr_gdbarch_init): Don't set gdbarch_gdb_signal_{to,from}_target.
2863
24a55014
DE
28642013-08-09 Doug Evans <dje@google.com>
2865
2866 * dwarf2read.c (create_addrmap_from_index): Ignore bad address table
2867 entries.
2868
eb14d406
SDJ
28692013-08-09 Sergio Durigan Junior <sergiodj@redhat.com>
2870
2871 * linux-tdep.c: Define enum with generic signal numbers.
2872 (linux_gdb_signal_from_target): New function.
2873 (linux_gdb_signal_to_target): Likewise.
2874 (linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
2875 methods to the functions above.
2876 * linux-tdep.h (linux_gdb_signal_from_target): New prototype.
2877 (linux_gdb_signal_to_target): Likewise.
2878 * alpha-linux-tdep.c: Define new enum with signals different
2879 from generic Linux kernel.
2880 (alpha_linux_gdb_signal_from_target): New function.
2881 (alpha_linux_gdb_signal_to_target): Likewise.
2882 (alpha_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
2883 with the functions mentioned above.
2884 * avr-tdep.c: Define enum with differences between Linux kernel
2885 and AVR signals.
2886 (avr_linux_gdb_signal_from_target): New function.
2887 (avr_linux_gdb_signal_to_target): Likewise.
2888 (avr_gdbarch_init): Set gdbarch_gdb_signal_{to,from}_target to
2889 the functions mentioned above.
2890 * sparc-linux-tdep.c: Define enum with differences between SPARC
2891 and generic Linux kernel signal numbers.
2892 (sparc32_linux_gdb_signal_from_target): New function.
2893 (sparc32_linux_gdb_signal_to_target): Likewise.
2894 (sparc32_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
2895 to the functions defined above.
2896 * xtensa-linux-tdep.c: Define enum with differences between
2897 Xtensa and Linux kernel generic signals.
2898 (xtensa_linux_gdb_signal_from_target): New function.
2899 (xtensa_linux_gdb_signal_to_target): Likewise.
2900 (xtensa_linux_init_abi): Set gdbarch_gdb_signal_to_target
2901 to the functions defined above.
2902 * mips-linux-tdep.c: Define enum with differences between
2903 signals in MIPS and Linux kernel generic ones.
2904 (mips_gdb_signal_to_target): New function.
2905 (mips_gdb_signal_from_target): Redefine to use new enum, handle
2906 only different signals from the Linux kernel generic.
2907 (mips_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
2908 the functions defined above.
2909 * mips-linux-tdep.h (enum mips_signals): Remove.
2910
156d08c8
PA
29112013-08-09 Pedro Alves <palves@redhat.com>
2912
2913 * avr-tdep.c (XMALLOC): Delete macro.
2914 * cli/cli-dump.c (XMALLOC): Delete macro.
2915
db229724
PA
29162013-08-09 Pedro Alves <palves@redhat.com>
2917
2918 * cli/cli-dump.c: Don't include cli/cli-dump.h.
2919 (scan_expression_with_cleanup, scan_filename_with_cleanup)
2920 (fopen_with_cleanup, add_dump_command): Make static.
2921 * cli/cli-dump.h: Delete file.
2922 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to
2923 cli/cli-dump.h.
2924
3f12a589
PA
29252013-08-09 Pedro Alves <palves@redhat.com>
2926
2927 * tracepoint.c (tfile_start): Show tilde-expanded filename in
2928 error message.
2929
c718be47
PA
29302013-08-09 Pedro Alves <palves@redhat.com>
2931
156d08c8 2932 * breakpoint.c (save_breakpoints): Show tilde-expanded filename in
c718be47
PA
2933 error message.
2934
1e351ed1
PA
29352013-08-09 Pedro Alves <palves@redhat.com>
2936
2937 * gcore.c (create_gcore_bfd): Don't use tilde_expand here.
2938 (gcore_command): Use tilde_expand here, and when showing the
2939 filename to the user, show the expanded version.
2940
1ed8d800
YQ
29412013-08-09 Yao Qi <yao@codesourcery.com>
2942
2943 * stack.c (read_frame_arg): Set 'entryval_error' to NULL if
2944 'entryval' is set.
2945
47ecca85
PA
29462013-08-08 Azat Khuzhin <a3at.mail@gmail.com> (tiny change)
2947
2948 * gcore.c (create_gcore_bfd): Use tilde_expand.
2949
82a0a75f
YQ
29502013-08-08 Yao Qi <yao@codesourcery.com>
2951
2952 * frame.h (read_frame_local): Declare.
2953 * mi/mi-cmd-stack.c (list_args_or_locals): Call
2954 read_frame_local.
2955 * stack.c (read_frame_local): New.
2956
5c4aa40b
YQ
29572013-08-08 Yao Qi <yao@codesourcery.com>
2958
2959 * mi/mi-cmd-stack.c: Update comments to function
2960 list_args_or_locals.
2961
b93601f3
TT
29622013-08-07 Tom Tromey <tromey@redhat.com>
2963
2964 PR symtab/15028:
2965 * dwarf2read.c (struct process_psymtab_comp_unit_data): New.
2966 (process_psymtab_comp_unit_reader): Use it.
2967 (process_psymtab_comp_unit): Update. Add "pretend_language"
2968 argument.
2969 (dwarf2_build_psymtabs_hard): Update.
2970 (scan_partial_symbols): Pass CU's language to
2971 process_psymtab_comp_unit.
2972
fa760f46
TT
29732013-08-07 Tom Tromey <tromey@redhat.com>
2974
2975 * dwarf2read.c (dw2_get_primary_filename_reader): Remove.
2976 (dwarf2_gdb_index_functions): Update.
2977 * psymtab.c (find_symbol_file_from_partial): Remove.
2978 (psym_functions): Update.
2979 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
2980 Remove.
2981
bf6d8a91
TT
29822013-08-07 Tom Tromey <tromey@redhat.com>
2983
2984 * symfile.c (set_initial_language): Look up "main" symbol
2985 and use its language.
2986 * symtab.c (find_main_filename): Remove.
2987 * symtab.h (find_main_filename): Remove.
2988
f9125b6c
TT
29892013-08-07 Tom Tromey <tromey@redhat.com>
2990
2991 * dwarf2read.c (recursively_compute_inclusions): Add
2992 "immediate_parent" argument. Set symtab's "user" field
2993 if not set.
2994 (compute_symtab_includes): Update.
2995
fdbb204b
TT
29962013-08-07 Tom Tromey <tromey@redhat.com>
2997
2998 * linespec.c (convert_linespec_to_sals): Use maybe_add_address
2999 when adding label symbols.
3000
49de1690
UW
30012013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
3002 Ulrich Weigand <uweigand@de.ibm.com>
3003
3004 * configure.tgt (powerpc64-*-aix*): Match powerpc64 running aix.
3005 * configure.host (powerpc64-*-aix*): Likewise.
3006
b08ee99f
UW
30072013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
3008 Ulrich Weigand <uweigand@de.ibm.com>
3009
3010 * gdb_ptrace.h: Use ptrace64 instead of ptrace if HAVE_PTRACE64
3011 is defined.
3012 * rs6000-nat.c: Check for __ld_info64_ if compiling 64 BIT gdb.
3013 (rs6000_ptrace32): Call ptrace64 instead of ptrace if present.
3014 (rs6000_ptrace64): Call ptace64 instead of ptracex if present.
3015 * configure.ac: Check for ptrace64.
3016 * configure, config.in: Regenerate.
3017
fecf803e
UW
30182013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
3019 Ulrich Weigand <uweigand@de.ibm.com>
3020
3021 * aixthread.c: Call ptrace64 instead of ptracex if defined.
3022 Call ptrace64 instead of ptrace if defined.
3023 Add macro addr_ptr to take care of ptrace address argument.
3024 (pdc_read_regs): Likewise.
3025 (pdc_write_regs): Likewise.
3026 (aix_thread_resume): Likewise.
3027 (fetch_regs_kernel_thread): Likewise.
3028 (store_regs_kernel_thread): Likewise.
3029
3bb5e4a8
AB
30302013-08-07 Anton Blanchard <anton@samba.org>
3031
3032 * MAINTAINERS: Add myself to Write After Approval.
3033
12070676
TT
30342013-08-05 Tom Tromey <tromey@redhat.com>
3035
3036 * aix-thread.c (_initialize_aix_thread): Use
3037 complete_target_initialization.
3038 * bsd-uthread.c (_initialize_bsd_uthread): Use
3039 complete_target_initialization.
3040 * dec-thread.c (_initialize_dec_thread): Use
3041 complete_target_initialization.
3042 * ravenscar-thread.c (_initialize_ravenscar): Use
3043 complete_target_initialization.
3044 * sol-thread.c (_initialize_sol_thread): Use
3045 complete_target_initialization.
3046 * spu-multiarch.c (_initialize_spu_multiarch): Use
3047 complete_target_initialization.
3048
7c7b6655
TT
30492013-08-05 Tom Tromey <tromey@redhat.com>
3050
3051 * ada-exp.y (write_var_or_type): Use bound_minimal_symbol.
3052 * ada-lang.c (ada_lookup_simple_minsym): Return
3053 bound_minimal_symbol.
3054 * ada-lang.h (ada_lookup_simple_minsym): Update.
3055 * c-exp.y (variable): Use lookup_bound_minimal_symbol.
3056 * f-exp.y (variable): Use lookup_bound_minimal_symbol.
3057 * go-exp.y (variable): Use lookup_bound_minimal_symbol.
3058 * jv-exp.y (push_expression_name): Use lookup_bound_minimal_symbol.
3059 * m2-exp.y (variable): Use lookup_bound_minimal_symbol.
3060 * minsyms.c (msymbol_objfile): Remove.
3061 (lookup_minimal_symbol_internal): New function, from
3062 lookup_minimal_symbol.
3063 (lookup_minimal_symbol): Rewrite using
3064 lookup_minimal_symbol_internal.
3065 (lookup_bound_minimal_symbol): New function.
3066 * minsyms.h (msymbol_objfile): Remove.
3067 (lookup_bound_minimal_symbol): Declare.
3068 * p-exp.y (variable): Use lookup_bound_minimal_symbol.
3069 * parse.c (write_exp_msymbol): Change parameter to a
3070 bound_minimal_symbol.
3071 (write_dollar_variable): Use lookup_bound_minimal_symbol.
3072 * parser-defs.h (write_exp_msymbol): Update.
3073 * printcmd.c (address_info): Use lookup_bound_minimal_symbol.
3074 * symfile.c (simple_read_overlay_table): Use
3075 lookup_bound_minimal_symbol.
3076 * symtab.c (skip_prologue_sal): Don't use msymbol_objfile.
3077 (search_symbols): Likewise.
3078 (print_msymbol_info): Take a bound_minimal_symbol argument.
3079 (symtab_symbol_info, rbreak_command): Update.
3080 * symtab.h (struct symbol_search) <msymbol>: Change type
3081 to bound_minimal_symbol.
3082 * valops.c (find_function_in_inferior): Use
3083 lookup_bound_minimal_symbol.
3084 * value.c (value_fn_field): Use lookup_bound_minimal_symbol.
3085
934b9bac
JK
30862013-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3087
3088 Code cleanup.
3089 * remote.c (cleanup_sigint_signal_handler): Rename the declaration
3090 to ...
3091 (async_cleanup_sigint_signal_handler): ... this.
3092 (initialize_sigint_signal_handler): Remove declaration.
3093 (handle_remote_sigint): Rename the declaration to ...
3094 (async_handle_remote_sigint): ... this.
3095 (handle_remote_sigint_twice): Rename the declaration to ...
3096 (async_handle_remote_sigint_twice): ... this.
3097 (async_remote_interrupt, async_remote_interrupt_twice)
3098 (remote_interrupt): Remove the declarations.
3099 (remote_interrupt_twice): Rename the declaration ...
3100 (sync_remote_interrupt_twice): ... this.
3101 (sigint_remote_twice_token): Rename the variable to ...
3102 (async_sigint_remote_twice_token): ... this.
3103 (sigint_remote_token): Rename the variable to ...
3104 (async_sigint_remote_token): ... this.
3105 (initialize_sigint_signal_handler): Rename the function to ...
3106 (async_initialize_sigint_signal_handler): ... this. Update the name
3107 inside.
3108 (handle_remote_sigint): Rename the function to ...
3109 (async_handle_remote_sigint): ... this. Update the names inside.
3110 (handle_remote_sigint_twice): Rename the function to ...
3111 (async_handle_remote_sigint_twice): ... this. Update the names inside.
3112 (cleanup_sigint_signal_handler): Rename the function to ...
3113 (async_cleanup_sigint_signal_handler): ... this.
3114 (remote_interrupt): Rename the function to ...
3115 (sync_remote_interrupt): this. Update the names inside.
3116 (remote_interrupt_twice): Rename the function to ...
3117 (sync_remote_interrupt_twice): this. Update the names inside.
3118 (remote_terminal_inferior, remote_terminal_ours, remote_wait_as)
3119 (_initialize_remote): Update the names inside.
3120
3a1115a0
TT
31212013-08-02 Tom Tromey <tromey@redhat.com>
3122
3123 PR symtab/15719:
3124 * breakpoint.c (update_watchpoint, watchpoint_check)
3125 (watch_command_1): Update.
3126 * eval.c (fetch_subexp_value): Add "preserve_errors"
3127 parameter.
3128 * ppc-linux-nat.c (check_condition): Update.
3129 * value.h (fetch_subexp_value): Update.
3130
58b19776
AB
31312013-08-02 Andrew Burgess <aburgess@broadcom.com>
3132
3133 * mi/mi-interp.c (mi_interpreter_resume): Remove call to
3134 add_file_handler.
3135
ec94af83
DE
31362013-08-01 Doug Evans <dje@google.com>
3137
7ee85ab1
DE
3138 PR symtab/15691
3139 * dwarf2read.c (struct dwarf2_per_cu_data): New member tu_read.
3140 (fill_in_sig_entry_from_dwo_entry): Reorganize asserts.
3141 Add assert of sig_entry->dwo_unit == NULL.
3142 (lookup_dwo_signatured_type): Don't assign TU to a DWO if the TU
3143 had already been read.
3144 (read_signatured_type): Set per_cu.tu_read.
3145
b846d303
DE
3146 PR symtab/15695
3147 * valops.c (value_struct_elt): Add missing call to check_typedef.
3148 (value_find_oload_method_list): Ditto.
3149
b52109bc
DE
3150 * symtab.c (do_free_search_symbols_cleanup): Change arg to,
3151 effectively, struct symbol_search **.
3152 (make_cleanup_free_search_symbols): Change arg to struct
3153 symbol_search **. All callers updated.
3154 (compare_search_syms): Compare symtab file name and block as well.
3155 (search_symbols_equal): New function.
3156 (sort_search_symbols_remove_dups): Renamed from sort_search_symbols.
3157 New args new_head, new_tail. Result is now void. Remove dups after
3158 sorting the symbols.
3159 (search_symbols): Sort all found symbols once, after all have been
3160 found, and remove duplicates. Simplify cleanup tracking of result.
3161 * symtab.h (make_cleanup_free_search_symbols): Update prototype.
3162
ec94af83
DE
3163 Further workarounds for binutils/15021.
3164 * dwarf2read.c (recursively_compute_inclusions): Change type of result
3165 parameter to VEC (symtab_ptr) **. New parameter all_type_symtabs.
3166 Watch for duplicate symtabs coming from type units.
3167 (compute_symtab_includes): Update call to
3168 recursively_compute_inclusions. Build vector of included symtabs
3169 instead of per_cus.
3170 * symtab.h (symtab_ptr): New typedef.
3171 (DEF_VEC_P (symtab_ptr)): New VEC type.
3172 * linespec.c (symtab_p): Delete. All uses updated to use symtab_ptr
3173 instead.
3174
b2ae85cf
AB
31752013-08-01 Andrew Burgess <aburgess@broadcom.com>
3176
3177 * cli/cli-script.c (script_from_file): Remove use of
3178 error_pre_print.
3179 * main.c (captured_main): Remove use of error_pre_print and
3180 quit_pre_print.
3181 * utils.c (error_pre_print, quit_pre_print): Remove.
3182 * utils.h (error_pre_print, quit_pre_print): Likewise.
3183
645eab03
YQ
31842013-08-01 Yao Qi <yao@codesourcery.com>
3185
3186 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Parse argv
3187 with mi_getopt.
3188 (mi_cmd_stack_list_variables): Likewise.
3189
16f92dd4
AB
31902013-07-31 Andrew Burgess <aburgess@broadcom.com>
3191
3192 * exceptions.c (deprecated_throw_reason): Remove.
3193 * exceptions.h (deprecated_throw_reason): Remove.
3194
13f78033
AB
31952013-07-31 Andrew Burgess <aburgess@broadcom.com>
3196
3197 * remote-mips.c (mips_error): Replace use of
3198 deprecated_throw_reason with throw_verror. Use the error message
3199 passed to mips_error as the error message for throw_verror.
3200
039e3c22
AB
32012013-07-31 Andrew Burgess <aburgess@broadcom.com>
3202
3203 * monitor.c (monitor_interrupt_query): Replace use of
3204 deprecated_throw_reason with quit.
3205 * nto-procfs.c (interrupt_query): Likewise.
3206 * remote-fileio.c (remote_fileio_sig_exit): Likewise.
3207 * remote-mips.c (mips_kill): Likewise.
3208 * remote.c (interrupt_query): Likewise.
3209
8150913b
AB
32102013-07-31 Andrew Burgess <aburgess@broadcom.com>
3211
3212 * utils.c (internal_verror): Replace use of deprecated_throw_reason
3213 with call to fatal.
3214
de74e63a
YQ
32152013-07-31 Pedro Alves <pedro@codesourcery.com>
3216 Yao Qi <yao@codesourcery.com>
3217
3218 * tracepoint.c (trace_dump_command): Select the current frame.
3219
247f5c4f
DE
32202013-07-30 Doug Evans <dje@google.com>
3221
3222 * dwarf2read.c (process_queue): Add type signature to debug output.
3223
11b4b7cc
AB
32242013-07-30 Andrew Burgess <aburgess@broadcom.com>
3225
3226 * value.c (value_fetch_lazy): Mark optimized out values as such
3227 rather than raising an error.
3228
b0c54aa5
AB
32292013-07-30 Andrew Burgess <aburgess@broadcom.com>
3230
3231 * value.c (value_fetch_lazy): Ensure parent value is not lazy
3232 before checking which bits of the parent, not the child, value are
3233 valid.
3234
97c85fc6
MB
32352013-07-30 Muhammad Bilal <mbilal@codesorcery.com>
3236
3237 PR gdb/15715
3238 * top.c: Include "filenames.h".
3239 (set_history_filename): New function.
3240 (init_main): Install it as set hook of the "set history filename"
3241 command.
3242
ff39bb5e
SA
32432013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
3244
3245 * dwarf2read.c (dwarf2_get_ref_die_offset): Constify struct
3246 attribute parameter.
3247 (dwarf2_const_value_data): Constify struct attribute parameter.
3248 (dwarf2_const_value): Constify struct attribute parameter.
3249 (dwarf2_const_value_attr): Constify struct attribute parameter.
3250 (lookup_die_type): Constify struct attribute parameter.
3251 (dwarf2_get_attr_constant_value): Constify struct attribute parameter.
3252 (follow_die_ref_or_sig): Constify struct attribute parameter.
3253 (follow_die_ref): Constify struct attribute parameter.
3254 (follow_die_sig): Constify struct attribute parameter.
3255 (get_DW_AT_signature_type): Constify struct attribute parameter.
3256 (get_type_unit_group): Constify struct attribute parameter.
3257 (fill_in_loclist_baton): Constify struct attribute parameter.
3258 (dwarf2_symbol_mark_computed): Constify struct attribute parameter.
3259 (type_unit_group): Constify struct attribute parameter.
3260
6e5a29e1
SA
32612013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
3262
3263 * dwarf2read.c (attr_form_is_block): Make argument const.
3264 (attr_form_is_section_offset): Make argument const.
3265 (attr_form_is_constant): Make argument const.
3266 (attr_form_is_ref): Make argument const.
3267
7771576e
SA
32682013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
3269
3270 * dwarf2read.c (attr_is_ref): Rename to attr_form_is_ref.
3271 All uses updated.
3272 (attr_form_is_ref): Moved below attr_form_is_constant.
3273
a94e8645
DE
32742013-07-29 Doug Evans <dje@google.com>
3275
bb5291d0
DE
3276 * main.c (captured_command_loop): Tweak comment.
3277
b5419e49
DE
3278 * target.c (target_async_permitted_1): Fix comment.
3279
b2d23133
DE
3280 * symtab.c (iterate_over_some_symtabs): Add comment.
3281
a94e8645
DE
3282 * symtab.c (iterate_over_some_symtabs): Fix indentation.
3283
7a60ad40
YQ
32842013-07-27 Yao Qi <yao@codesourcery.com>
3285
3286 * NEWS: Mention that GDBserver now supports hardware
3287 watchpoints on the MIPS GNU/Linux target.
3288
aaee2056
YQ
32892013-07-27 Yao Qi <yao@codesourcery.com>
3290
3291 * Makefile.in (HFILES_NO_SRCDIR): Add
3292 common/mips-linux-watch.h.
3293 (mips-linux-watch.o): New rule.
3294 * common/mips-linux-watch.c: New.
3295 * common/mips-linux-watch.h: New.
3296 * config/mips/linux.mh (NATDEPFILES): Add mips-linux-watch.o
3297 * mips-linux-nat.c: Include mips-linux-watch.h.
3298 (W_BIT, R_BIT, I_BIT, W_MASK, R_MASK, I_MASK, IRW_MASK): Move
3299 to common/mips-linux-watch.h.
3300 (MAX_DEBUG_REGISTER): Likewise.
3301 (enum pt_watch_style): Likewise.
3302 (struct mips32_watch_regs): Likewise.
3303 (struct mips64_watch_regs): Likewise.
3304 (struct pt_watch_regs): Likewise.
3305 (struct mips_watchpoint): Likewise.
3306 (mips_linux_watch_get_irw_mask): Move to
3307 common/mips-linux-watch.c.
3308 (get_reg_mask, mips_linux_watch_get_num_valid): Likewise.
3309 (mips_linux_watch_get_watchlo): Likewise.
3310 (mips_linux_watch_set_watchlo): Likewise.
3311 (mips_linux_watch_get_watchhi): Likewise.
3312 (mips_linux_watch_set_watchhi): Likewise.
3313 (mips_linux_read_watch_registers): Likewise.
3314 (mips_linux_watch_type_to_irw): Likewise.
3315 (mips_linux_stopped_data_address, fill_mask): Likewise.
3316 (mips_linux_watch_try_one_watch): Likewise.
3317 (mips_linux_watch_populate_regs): Likewise.
3318
b3436450
YQ
33192013-07-27 Yao Qi <yao@codesourcery.com>
3320
3321 * mips-linux-nat.c (get_irw_mask): Rename to ...
3322 (mips_linux_watch_get_irw_mask): ... this. Rename parameter
3323 'set' to 'n'. Update function comment. All callers changed.
3324 (get_reg_mask): Rename parameter 'set' to 'n'. Update
3325 function comment. All callers changed.
3326 (get_num_valid): Rename to ...
3327 (mips_linux_watch_get_num_valid): ... this. Rename parameter
3328 'set' to 'n'. Update function comment. All callers changed.
3329 (get_watchlo): Rename to ...
3330 (mips_linux_watch_get_watchlo): ... this. Rename parameter
3331 'set' to 'n'. Update function comment. All callers changed.
3332 (set_watchlo): Rename to ...
3333 (mips_linux_watch_set_watchlo): ... this. Rename parameter
3334 'set' to 'n'. Update function comment. All callers changed.
3335 (get_watchhi): Rename to ...
3336 (mips_linux_watch_get_watchhi): ... this. Update function
3337 comment. All callers changed.
3338 (set_watchhi): Rename to ...
3339 (mips_linux_watch_set_watchhi): ... this. Update function
3340 comment. All callers changed.
3341 (mips_linux_read_watch_registers): Update function comment.
3342 Add new parameters 'lwpid', 'watch_readback', and
3343 'watch_readback_valid'. Update.
3344 (type_to_irw): Rename to ...
3345 (mips_linux_watch_type_to_irw): ... this. Update function
3346 comment. All callers changed.
3347 (fill_mask): Update function comment.
3348 (try_one_watch): Rename to ...
3349 (mips_linux_watch_try_one_watch): ... this. Change the type
3350 of parameter 'irw' from 'unsigned' to 'uint32_t'.
3351 (populate_regs_from_watches): Rename to ...
3352 (mips_linux_watch_populate_regs): ... this. Add parameter
3353 'current_watches'. All callers changed.
3354
9be14b81
YQ
33552013-07-27 Yao Qi <yao@codesourcery.com>
3356
3357 * mips-linux-nat.c (MAX_DEBUG_REGISTER): Move it earlier in
3358 the code.
3359 (PTRACE_SET_WATCH_REGS, enum pt_watch_style): Remove.
3360 (struct mips32_watch_regs, struct mips64_watch_regs): Remove.
3361 (struct pt_watch_regs): Likewise.
3362 [!PTRACE_GET_WATCH_REGS] (PTRACE_SET_WATCH_REGS): New macro.
3363 [!PTRACE_GET_WATCH_REGS] (enum pt_watch_style): New.
3364 [!PTRACE_GET_WATCH_REGS] (struct mips32_watch_regs): New.
3365 [!PTRACE_GET_WATCH_REGS] (struct mips64_watch_regs): New.
3366 [!PTRACE_GET_WATCH_REGS] (struct pt_watch_regs): New.
3367
de6f69ad
YQ
33682013-07-27 Yao Qi <yao@codesourcery.com>
3369
3370 * breakpoint.h: Include break-common.h.
3371 (enum target_hw_bp_type): Move to ...
3372 * common/break-common.h: ... here. New.
3373
6f64ef53
PA
33742013-07-26 Cyril Nikolaev <cyril@nichtverstehen.de>
3375
3376 * inflow.c (terminal_init_inferior_with_pgrp): Save inferior
3377 process group regardless of having tty on stdin.
3378
6107e809
DE
33792013-07-25 Doug Evans <dje@google.com>
3380
3381 * linux-fork.h (detach_fork): Delete.
3382
7fdc1521
TT
33832013-07-25 Tom Tromey <tromey@redhat.com>
3384
3385 PR remote/15256, PR remote/15266:
3386 * bfd-target.c (target_bfd_reopen): Initialize to_magic.
3387 * monitor.c (monitor_detach): Use unpush_target.
3388 * remote-m32r-sdi.c (m32r_detach): Use unpush_target.
3389 * remote-mips.c (mips_detach): Use unpush_target. Don't
3390 call mips_close.
3391 * remote-sim.c (gdbsim_detach): Use unpush_target.
3392 * target.c (pop_target): Remove.
3393 (pop_all_targets_above): Don't call target_close.
3394 (target_close): Assert that the target is unpushed.
3395 * target.h (pop_target): Don't declare.
3396 * tracepoint.c (tfile_open): Use unpush_target.
3397
c22a2b88
TT
33982013-07-25 Tom Tromey <tromey@redhat.com>
3399
3400 * linux-thread-db.c (init_thread_db_ops): Call
3401 complete_target_initialization.
3402 (_initialize_thread_db): Don't call add_target.
3403 * target.c (complete_target_initialization): New function.
3404 (add_target_with_completer): Call it.
3405 * target.h (complete_target_initialization): Declare.
3406
cbb6aada
MK
34072013-07-25 Mark Kettenis <kettenis@gnu.org>
3408
3409 * hppa-tdep.h (enum hppa_regnum): Add members for all space registers.
3410 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Add comment.
3411 (HPPANBSD_SIZEOF_GREGS): New define.
3412 (hppaobsd_supply_gregset): Handle additional registers.
3413 * hppabsd-nat.c (hppabsd_gregset_supplies_p): Adjust to indicate
3414 we provide more registers now.
3415 (hppabsd_supply_gregset): Supply additional registers.
3416 (hppabsd_collect_gregset): Collect additional registers.
3417
17767988
MK
34182013-07-25 Mark Kettenis <kettenis@gnu.org>
3419
3420 * hppabsd-tdep.c: Include "dwarf2-frame.h".
3421 (hppabsd_dwarf2_frame_init_reg): New function.
3422 (hppabsd_init_abi): Hook in the DWARF CFI frame unwinder.
3423
fdc8aae8
AB
34242013-07-25 Andrew Burgess <aburgess@broadcom.com>
3425
3426 * mi/mi-main.c (output_register): Make MI 'r' format use standard
3427 'z' format code. Remove error for optimized out values, standard
3428 code will handle these fine.
3429
6fbe845e
AB
34302013-07-25 Andrew Burgess <aburgess@broadcom.com>
3431
3432 * NEWS: Mention new 'z' formatter.
3433 * printcmd.c (print_scalar_formatted): Add new 'z' formatter.
3434 (_initialize_printcmd): Mention 'z' formatter in help text of the
3435 'x' command.
3436
3373342d
MR
34372013-07-24 Maciej W. Rozycki <macro@codesourcery.com>
3438
3439 * mips-tdep.c (micromips_deal_with_atomic_sequence): Correct
3440 formatting.
3441
25f9533e
SDJ
34422013-07-24 Sergio Durigan Junior <sergiodj@redhat.com>
3443
3444 * breakpoint.c (create_longjmp_master_breakpoint): Check if probe
3445 interface can evaluate arguments. Fallback to the old mode if it
3446 cannot.
3447 (create_exception_master_breakpoint): Likewise.
3448 * elfread.c (elf_can_evaluate_probe_arguments): New function.
3449 (struct sym_probe_fns elf_probe_fns): Export function above to the
3450 probe interface.
3451 * probe.c (can_evaluate_probe_arguments): New function.
3452 * probe.h (struct probe_ops) <can_evaluate_probe_arguments>: New
3453 function pointer.
3454 (can_evaluate_probe_arguments): New function prototype.
3455 * solib-svr4.c (svr4_create_solib_event_breakpoints): Check if
3456 probe interface can evaluate arguments. Fallback to the old mode
3457 if it cannot.
3458 * stap-probe.c (stap_get_probe_argument_count): Check if probe
3459 interface can evaluate arguments. Warning the user if it cannot.
3460 (stap_can_evaluate_probe_arguments): New function.
3461 (struct probe_ops stap_probe_ops): Export function above to the
3462 probe interface.
3463 * symfile.h (struct sym_probe_fns) <can_evaluate_probe_arguments>:
3464 New function pointer.
3465
3360c0bf
LM
34662013-07-24 Luis Machado <lgustavo@codesourcery.com>
3467
3468 * Makefile.in (SFILES): Add common/target-common.c.
3469 Add common/target-common.h to headers.
3470 (COMMON_OBS): Add target-common.o.
3471 (target-common.o): New target.
3472 * linux-nat.h (resume_kind): Move to common/target-common.h.
3473 * target.c (target_waitstatus_to_string): Move to
3474 common/target-common.c.
3475 * target.h: Include target-common.h.
3476 (target_waitkind): Move to common/target-common.h.
3477 (target_waitstatus): Likewise.
3478 (TARGET_WNOHANG): Likewise.
3479 * common/target-common.c: New file.
3480 * common/target-common.h: New file.
3481
6656a72d
DE
34822013-07-24 Doug Evans <dje@google.com>
3483
3484 * dwarf2read.c (lookup_dwo_cutu): Change missing DWO complaint to
3485 a warning.
3486
6df81a63
YQ
34872013-07-23 Yao Qi <yao@codesourcery.com>
3488
3489 * i386-tdep.c (i386_in_stack_tramp_p): Remove unused
3490 parameter 'gdbarch'.
3491 (i386_stack_tramp_frame_sniffer): Caller update.
3492 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Remove
3493 parameter 'gdbarch' and 'target'.
3494 (i386_linux_core_read_description): Caller update.
3495 * amd64-linux-tdep.c (amd64_linux_core_read_description):
3496 Likewise.
3497 * i386-linux-tdep.h (i386_linux_core_read_xcr0): Update
3498 declaration.
3499
365156ad
TT
35002013-07-23 Tom Tromey <tromey@redhat.com>
3501
3502 * dwarf2read.c (init_cutu_and_read_dies): Revert patch from
3503 2013-07-22.
3504
046ac79f
JK
35052013-07-22 Doug Evans <dje@google.com>
3506
3507 * exec.h (remove_target_sections): Delete arg abfd.
66cbcda4
JK
3508 * exec.c (exec_close): Update call to remove_target_sections.
3509 (remove_target_sections): Delete arg abfd.
046ac79f
JK
3510 * solib.c (update_solib_list): Ditto.
3511 (reload_shared_libraries_1): Ditto.
3512 (clear_solib): Ditto, and unconditionally call remove_target_sections.
66cbcda4
JK
3513 * target.h (struct target_section): Rename key to owner.
3514 All uses updated.
046ac79f 3515
29b2cc46
TT
35162013-07-22 Tom Tromey <tromey@redhat.com>
3517
3518 * solib-som.c (som_open_symbol_file_object): Call do_cleanups.
3519
d1160018
TT
35202013-07-22 Tom Tromey <tromey@redhat.com>
3521
3522 * dwarf2read.c (init_cutu_and_read_dies): Remove 'free_cu_cleanup'.
3523 Simplify cleanup handling.
3524
2f324bf6
TT
35252013-07-22 Tom Tromey <tromey@redhat.com>
3526
3527 * dwarf2read.c (dwarf_decode_line_header): Call do_cleanups
3528 on all return paths.
3529
e23b9d6e
UW
35302013-07-22 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3531
3532 * ppc-linux-nat.c (PPC_DEBUG_FEATURE_DATA_BP_DAWR): New define.
3533 (ppc_linux_region_ok_for_hw_watchpoint): Add checking to use the new
3534 DAWR interface for longer ranges hardware watchpoint (up to 512 bytes).
3535
1cf55f60
PM
35362013-07-22 Phil Muldoon <pmuldoon@redhat.com>
3537
3538 * top.c (print_gdb_version): Add help, apropos description and
3539 url to online documentation.
3540
fa876972
HZ
35412013-07-19 Hui Zhu <hui@codesourcery.com>
3542
3543 PR gdb/15692
3544 * mi/mi-cmd-break.c (mi_argv_to_format): Handle double quotes.
3545
1527aea8
YQ
35462013-07-19 Yao Qi <yao@codesourcery.com>
3547
3548 * target.c (update_current_target): Change the default action
3549 of 'to_traceframe_info' from tcomplain to return_zero.
3550 * target.h (struct target_ops) <to_traceframe_info>: Add more
3551 comments.
3552 * valops.c (read_value_memory): Call
3553 traceframe_available_memory unconditionally.
3554
886f230e
YQ
35552013-07-18 Yao Qi <yao@codesourcery.com>
3556
3557 * coffread.c (coff_symfile_read): Iterate over minimal symbols,
3558 if the name is prefixed by "__imp_" or "_imp_", look for minimal
3559 symbol without prefix. If found, set its type to
3560 'mst_solib_trampoline'.
3561
16419bae
DE
35622013-07-17 Doug Evans <dje@google.com>
3563
e7045703
DE
3564 * NEWS: Mention "set print raw frame-arguments".
3565 * gdbcmd.h (setprintrawlist, showprintrawlist): Declare.
3566 * stack.c (print_raw_frame_arguments): New static global.
3567 (print_frame_arg): Set opts.raw from print_raw_frame_arguments.
3568 (_initialize_stack): New command "set/show print raw frame-arguments".
3569 * valprint.c (setprintrawlist, showprintrawlist): New globals.
3570 (set_print_raw, show_print_raw): New functions.
3571 (_initialize_valprint): New prefix command "set/show print raw".
3572 * valprint.h (value_print_options): Improve comments.
3573
453e48a5
DE
3574 * cli/cli-cmds.c (init_cmd_lists): Delete unnecessary initialization
3575 of all *list variables.
3576
16419bae
DE
3577 * gdbcmd.h (togglelist): Delete.
3578 * cli/cli-cmds.c (togglelist): Delete.
3579 (init_cmd_lists): Update.
3580 * cli/cli-cmds.h (togglelist): Delete.
3581
626f2d1c
TT
35822013-07-17 Tom Tromey <tromey@redhat.com>
3583
3584 * dwarf2read.c (dwarf2_per_objfile_free): Clear
3585 dwarf2_per_objfile.
3586
57e6060e
DE
35872013-07-16 Doug Evans <dje@google.com>
3588
3589 * nto-tdep.c (nto_relocate_section_addresses): Update,
3590 target_section.bfd deleted.
3591 * ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Ditto.
3592 * s390-tdep.c (s390_load): Ditto.
3593 * solib-aix.c (solib_aix_relocate_section_addresses): Ditto.
3594
5ea5559b
AB
35952013-07-16 Andrew Burgess <aburgess@broadcom.com>
3596
3597 * common/format.c (parse_format_string): Add checks for NULL
3598 character before calling strchr.
3599
2b2848e2
DE
36002013-07-16 Doug Evans <dje@google.com>
3601
2c571006
DE
3602 * solist.h (target_so_ops.find_and_open_solib): Clarify usage of
3603 temp_pathname argument.
3604 * nto-tdep.c (nto_find_and_open_solib): Fix setting of temp_pathname
3605 when opening the file fails.
3606
2b2848e2
DE
3607 * target.h (struct target_section): Delete member bfd.
3608 All users updated to use the_bfd_section->owner instead.
3609 * exec.c (add_to_section_table): Assert bfd is expected value.
3610 Remove initialization of target_section.bfd.
3611 (remove_target_sections): Update.
3612 (section_table_available_memory): Update.
3613 (section_table_xfer_memory_partial): Update.
3614 (print_section_info): Update.
3615 (exec_set_section_address): Update.
3616 * record-full.c (record_full_core_xfer_partial): Update.
3617 * solib-svr4.c (svr4_relocate_section_addresses): Update.
3618 * solib-target.c (solib_target_relocate_section_addresses): Update.
3619 * symfile.c (build_section_addr_info_from_section_table): Update.
3620 * target.c (memory_xfer_live_readonly_partial): Update.
3621 (memory_xfer_partial_1): Update.
3622
926bf92d
UW
36232013-07-15 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3624
3625 * ppc-linux-nat.c: Since the new PowerPC specific ptrace interface is
3626 now available for embedded (BookE) and server (BookS) processors,
3627 correct mentions of 'booke' and adjust comments accordingly in order to
3628 avoid confusion. Rename struct 'booke_debug_info' to 'hwdebug_info'.
3629 (have_ptrace_booke_interface): Rename function and variable
3630 'have_ptrace_booke_interface' to 'have_ptrace_hwdebug_interface'.
3631 Rename struct 'booke_debug_info' to 'hwdebug_info'. Update all uses.
3632 (booke_cmp_hw_point): Rename function 'booke_cmp_hw_point' to
3633 'hwdebug_point_cmp'. Update all uses.
3634 (booke_find_thread_points_by_tid): Rename function
3635 'booke_find_thread_points_by_tid' to
3636 'hwdebug_find_thread_points_by_tid'. Update all uses.
3637 (booke_insert_point): Rename function 'booke_insert_point' to
3638 'hwdebug_insert_point'. Update all uses.
3639 (booke_remove_point): Rename function 'booke_remove_point' to
3640 'hwdebug_remove_point'. Update all uses.
3641
d929bc19
MR
36422013-07-15 Maciej W. Rozycki <macro@codesourcery.com>
3643
3644 * mips-tdep.c (mips_gdbarch_init): Replace hardcoded magic
3645 numbers with enum values.
3646
054e8d9e
AA
36472013-07-15 Ali Anwar <ali_anwar@codesourcery.com>
3648
3649 PR threads/13217
3650 * thread.c (thread_apply_all_command): Check for valid threads
3651 and thread count.
3652 (thread_array_cleanup): New struct.
3653 (set_thread_refcount): New function.
3654
cf006359
AB
36552013-07-11 Andrew Burgess <aburgess@broadcom.com>
3656
3657 * infcmd.c (default_print_one_register_info): Reuse function
3658 print_hex_chars.
3659
94e36acc
TT
36602013-07-10 Tom Tromey <tromey@redhat.com>
3661
3662 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS, ADA_EXP_C): New macros.
3663 (ada-exp.o): New target.
3664
915dd369
SDJ
36652013-07-10 Sergio Durigan Junior <sergiodj@redhat.com>
3666
3667 * mt-tdep.c (mt_registers_info): Call
3668 get_no_prettyformat_print_options instead of
3669 get_raw_print_options (regression by last patch from Doug
3670 Evans).
3671
eca07816
JB
36722013-07-09 Pedro Alves <palves@redhat.com>
3673
3674 Checked in by Joel Brobecker <brobecker@adacore.com>.
3675 * ada-lang.c (coerce_unspec_val_to_type): Use
3676 value_optimized_out_const.
3677 * value.c (value_optimized_out_const): New function.
3678 * value.h (value_optimized_out_const): New declaration.
3679
2a998fc0
DE
36802013-07-09 Doug Evans <dje@google.com>
3681
3682 * defs.h (enum val_prettyformat): Renamed from val_prettyprint.
3683 Enum values rename as well. All uses updated.
3684 * valprint.h (value_print_options): Rename member pretty to
3685 pretty format. Rename member prettyprint_arrays to
3686 prettyformat_arrays. Rename member prettyprint_structs to
3687 prettyformat_structs. All uses updated.
3688 (get_no_prettyformat_print_options): Renamed from
3689 get_raw_print_options.
3690 * valprint.c (get_no_prettyformat_print_options): Renamed from
3691 get_raw_print_options. All callers updated.
3692 (show_prettyformat_structs): Renamed from show_prettyprint_structs.
3693 All callers updated.
3694 (show_prettyformat_arrays): Renamed from show_prettyprint_arrays.
3695 All callers updated.
3696 (_initialize_valprint): Improve help text for "set print pretty" and
3697 "set print arrays".
3698
466c1fca
AB
36992013-07-09 Andrew Burgess <aburgess@broadcom.com>
3700
3701 * value.c (value_bits_valid): Revert previous change, and change
3702 by Pedro on 2013-07-04, due to regressions in
3703 gdb.dwarf2/implptr.exp and gdb.dwarf2/pieces.exp.
3704
ad0f0303
AB
37052013-07-08 Andrew Burgess <aburgess@broadcom.com>
3706 Pedro Alves <palves@redhat.com>
3707
3708 * value.c (value_bits_valid): If the value is not lval_computed
3709 or has no check validity handler then the answer is the
3710 optimized_out flag, otherwise defer to the handler.
3711
b187bec1
EZ
37122013-07-06 Eli Zaretskii <eliz@gnu.org>
3713
48d1d6f5
EZ
3714 * top.c (print_gdb_configuration): Explain in output of
3715 --configuration what does "relocatable" mean.
3716
b187bec1
EZ
3717 * main.c (print_gdb_help): Regroup options in the --help text.
3718 See http://sourceware.org/ml/gdb-patches/2013-04/msg00362.html for
3719 the relevant discussions.
3720
52d361e1
YQ
37212013-07-06 Yao Qi <yao@codesourcery.com>
3722
3723 * breakpoint.h (struct breakpoint_ops) <create_breakpoints_sal>:
3724 Remove parameter 'lsal'.
3725 * breakpoint.c (create_breakpoint): Move local variable 'lsal'
3726 to inner block. Caller update.
3727 (base_breakpoint_create_breakpoints_sal): Update.
3728 (bkpt_create_breakpoints_sal): Likewise.
3729 (tracepoint_create_breakpoints_sal): Likewise.
3730 (strace_marker_create_breakpoints_sal): Get 'lsal' from the
3731 element 0 of vector 'canonical->sals'.
3732
e1ec1b42
LM
37332013-07-05 Luis Machado <lgustavo@codesourcery.com>
3734
3735 * rs6000-tdep.c (rs6000_stab_reg_to_regnum): Return the real
3736 register number instead of the pseudo register one.
3737 (rs6000_dwarf2_reg_to_regnum): Likewise.
3738
7195e6f0
PA
37392013-07-04 Pedro Alves <palves@redhat.com>
3740
3741 * findvar.c (value_of_register): Use allocate_optimized_out_value
3742 if the register has been optimized out, instead of
3743 set_value_optimized_out.
3744 * frame-unwind.c (frame_unwind_got_optimized): Use
3745 allocate_optimized_out_value.
3746
58722cac
PA
37472013-07-04 Pedro Alves <palves@redhat.com>
3748
3749 * value.c (value_bits_valid): If the value is not lval_computed,
3750 or doesn't have a check_validity hook, assume the value is entirely
3751 valid.
3752
691a26f5
AB
37532013-07-04 Andrew Burgess <aburgess@broadcom.com>
3754
3755 * stack.c (read_frame_arg): No longer fetch lazy values.
3756 * value.c (value_optimized_out): If the value is not already
3757 marked optimized out, and is lazy then fetch it.
3758 (value_primitive_field): Move optimized out check to later in the
3759 function, after we have loaded any lazy values.
3760 (value_fetch_lazy): Use optimized out flag directly rather than
3761 calling optimized_out method.
3762
a58e2656
AB
37632013-07-04 Andrew Burgess <aburgess@broadcom.com>
3764
3765 * valops.c: Don't include "user-regs.h".
3766 (value_fetch_lazy): Moved to value.c.
3767 * value.c: Include "user-regs.h".
3768 (value_fetch_lazy): Moved from valops.c.
3769
bd885420
YQ
37702013-07-04 Yao Qi <yao@codesourcery.com>
3771
3772 Revert:
3773 2013-06-27 Yao Qi <yao@codesourcery.com>
3774
3775 * common/create-version.sh: Update comments. Handle the case
3776 that TARGET_ALIAS is empty.
3777
17ef446e
PA
37782013-07-03 Pedro Alves <palves@redhat.com>
3779
3780 * Makefile.in (config.status): Depend on development.sh.
3781 (aclocal_m4_deps): Add libmcheck.m4.
3782 * acinclude.m4: Include libmcheck.m4.
3783 * configure.ac: Source development.sh instead of setting
3784 'development' here. --enable-libmcheck/--disable-libmcheck code
3785 factored out to GDB_AC_LIBMCHECK. Run it.
3786 * development.sh: New file.
3787 * libmcheck.m4: New file.
3788 * configure: Regenerate.
3789
ac6dd50f
TT
37902013-07-02 Tom Tromey <tromey@redhat.com>
3791
3792 * contrib/ari/update-web-ari.sh: Update for version.in change.
3793
bd1df410
TT
37942013-07-02 Tom Tromey <tromey@redhat.com>
3795
3796 * common/ptid.h: Comment fixes.
3797
4db1a1dc
TT
37982013-07-01 Tom Tromey <tromey@redhat.com>
3799
3800 * dwarf2read.c (dwarf2_get_dwz_file): Return NULL if
3801 .gnu_debugaltlink not found. Use bfd_get_alt_debug_link_info.
3802 (dwarf2_read_index, create_all_comp_units): Update.
3803
dd9aa048
TT
38042013-07-01 Tom Tromey <tromey@redhat.com>
3805
3806 * configure.ac (build_warnings): Add -Wold-style-definition.
3807 * configure: Rebuild.
3808 * machoread.c (_initialize_machoread): Use "(void)".
3809 * macrocmd.c (macro_inform_no_debuginfo): Fix formatting;
3810 use "(void)".
3811
44d100c3
TT
38122013-07-01 Tom Tromey <tromey@redhat.com>
3813
3814 * configure.ac (build_warnings): Add -Wold-style-declaration.
3815 * configure: Rebuild.
3816 * dsrec.c (make_srec): Use "static const", not "const static".
3817 * h8300-tdep.c (h8300_breakpoint_from_pc): Use "static const",
3818 not "const static".
3819 * mi/mi-parse.c (mi_no_values, mi_simple_values, mi_all_values):
3820 Use "static const", not "const static".
3821 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Use "static const",
3822 not "const static".
3823 * moxie-tdep.c (moxie_breakpoint_from_pc): Use "static const",
3824 not "const static".
3825 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Use "static const",
3826 not "const static".
3827 * v850-tdep.c (v850_breakpoint_from_pc): Use "static const",
3828 not "const static".
3829 (v850_dbtrap_breakpoint_from_pc): Likewise.
3830 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Use "static const",
3831 not "const static".
3832
2945b807
TT
38332013-07-01 Tom Tromey <tromey@redhat.com>
3834
3835 * configure.ac (build_warnings): Add -Wmissing-parameter-type.
3836 * configure: Rebuild.
3837
d8d2a3ee
PA
38382013-07-01 Pedro Alves <palves@redhat.com>
3839
3840 * defs.h: Include "pathmax.h".
3841 * utils.c: Don't include sys/param.h.
3842 (gdb_realpath): Remove code that checks for MAXPATHLEN.
3843 * solib-ia64-hpux.c (ia64_hpux_handle_load_event): Use PATH_MAX
3844 instead of MAXPATHLEN.
3845 * solib-sunos.c: Don't include sys/param.h.
3846 * xcoffread.c: Don't include sys/param.h.
3847 * bsd-kvm.c: Don't include sys/param.h.
3848 * darwin-nat.c: Don't include sys/param.h.
3849 (darwin_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
3850 * darwin-nat-info.c: Don't include sys/param.h.
3851 * fbsd-nat.c (fbsd_pid_to_exec_file): Use PATH_MAX instead of
3852 MAXPATHLEN.
3853 * i386obsd-nat.c: Don't include sys/param.h.
3854 * inf-child.c: Don't include sys/param.h.
3855 (inf_child_fileio_readlink): Use PATH_MAX instead of MAXPATHLEN.
3856 * linux-fork.c: Don't include sys/param.h.
3857 (fork_save_infrun_state): Use PATH_MAX instead of MAXPATHLEN.
3858 * linux-nat.c: Don't include sys/param.h.
3859 (linux_child_pid_to_exec_file, linux_proc_pending_signals)
3860 (linux_proc_pending_signals): Use PATH_MAX instead of MAXPATHLEN.
3861 * m68klinux-nat.c: Don't include sys/param.h.
3862 * nbsd-nat.c: Don't include sys/param.h.
3863 (nbsd_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
3864 * ppc-linux-nat.c: Don't include sys/param.h.
3865 * rs6000-nat.c: Don't include sys/param.h.
3866 * spu-linux-nat.c. Don't include sys/param.h.
3867 * windows-nat.c: Don't include sys/param.h.
3868 * xtensa-linux-nat.c: Don't include sys/param.h.
3869 * config/i386/nm-fbsd.h: Don't include sys/param.h.
3870
38ec2207
PA
38712013-07-01 Pedro Alves <palves@redhat.com>
3872
3873 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add pathmax.
3874 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/pathmax.m4.
3875 * gnulib/aclocal.m4: Regenerate.
3876 * gnulib/config.in: Regenerate.
3877 * gnulib/configure: Regenerate.
3878 * gnulib/import/pathmax.h: New file.
3879 * gnulib/import/Makefile.am: Regenerate.
3880 * gnulib/import/Makefile.in: Regenerate.
3881 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
3882 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
3883 * gnulib/import/m4/pathmax.m4: New file.
3884
e655c1a2
PA
38852013-07-01 Pedro Alves <palves@redhat.com>
3886
3887 * configure.ac (GDBINIT): Define, depending on host.
3888 * go32-nat.c (init_go32_ops): Don't override gdbinit here.
3889 * top.c (PATH_MAX): Delete fallback definition.
3890 (GDBINIT_FILENAME): Delete.
3891 (gdbinit): Reimplement as const char array set to the GDBINIT
3892 string constant.
3893 * top.h (gdbinit): Make const.
3894 * configure, config.in: Regenerate.
3895
50dd9793
PA
38962013-07-01 Pedro Alves <palves@redhat.com>
3897
3898 * cli/cli-cmds.c (source_script): Make 'file' parameter const.
3899 * cli/cli-cmds.h (source_script): Likewise.
3900 * exceptions.c (catch_command_errors_const): New function.
3901 * exceptions.h (catch_command_errors_const): Declare.
3902 * main.c (get_init_files): Make parameters const, and adjust.
3903 (captured_main): Make 'system_gdbinit', 'home_gdbinit' and
3904 'local_gdbinit' locals const. Adjust to use
3905 catch_command_errors_const.
3906 (print_gdb_help): Make 'system_gdbinit', 'home_gdbinit' and
3907 'local_gdbinit' locals const.
3908
bc7dea8d
PA
39092013-07-01 Pedro Alves <palves@redhat.com>
3910
3911 * defs.h: Don't check HAVE_UNISTD_H before including <unistd.h>.
3912 (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO): Delete.
3913 * tracepoint.c: Don't check HAVE_UNISTD_H before including
3914 <unistd.h>.
3915
8839a007
PA
39162013-07-01 Pedro Alves <palves@redhat.com>
3917
3918 Import the "unistd" gnulib module.
3919 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add "unistd".
3920 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/off_t.m4,
3921 import/m4/ssize_t.m4, import/m4/sys_types_h.m4 and
3922 import/m4/unistd_h.m4.
3923 * gnulib/aclocal.m4: Renenerate.
3924 * gnulib/config.in: Renenerate.
3925 * gnulib/configure: Renenerate.
3926 * gnulib/import/Makefile.am: Renenerate.
3927 * gnulib/import/Makefile.in: Renenerate.
3928 * gnulib/import/m4/gnulib-cache.m4: Renenerate.
3929 * gnulib/import/m4/gnulib-comp.m4: Renenerate.
3930 * gnulib/import/m4/off_t.m4: New file.
3931 * gnulib/import/m4/ssize_t.m4: New file.
3932 * gnulib/import/m4/sys_types_h.m4: New file.
3933 * gnulib/import/m4/unistd_h.m4: New file.
3934 * gnulib/import/sys_types.in.h: New file.
3935 * gnulib/import/unistd.c: New file.
3936 * gnulib/import/unistd.in.h: New file.
3937
8c0da261
PA
39382013-07-01 Pedro Alves <palves@redhat.com>
3939
3940 * utils.c <pathconf/_PC_PATH_MAX use>: Check if _PC_PATH_MAX is
3941 defined instead of checking HAVE_UNISTD_H.
3942
3574124b
PA
39432013-07-01 Pedro Alves <palves@redhat.com>
3944
3945 Reimport gnulib from scratch.
3946 * gnulib/Makefile.in (aclocal_m4_deps): Remove reference to
3947 import/m4/onceonly.m4.
3948 * gnulib/aclocal.m4: Renegerate.
3949 * gnulib/config.in: Renegerate.
3950 * gnulib/configure: Renegerate.
3951 * gnulib/import/Makefile.in: Renegerate.
3952 * gnulib/import/extra/update-copyright: Renegerate.
3953 * gnulib/import/m4/onceonly.m4: Delete.
3954
702dc4fd
PA
39552013-07-01 Pedro Alves <palves@redhat.com>
3956
3957 * tui/tui-regs.c (pagination_enabled): Delete declaration.
3958
47e1ce27
JK
39592013-06-30 Jan Kratochvil <jan.kratochvil@redhat.com>
3960
3961 Code cleanup.
3962 * remote.c (async_remote_interrupt_twice): Make it static.
3963 * remote.h (async_remote_interrupt_twice): Remove the declaration.
3964
e82839d4
SDJ
39652013-06-29 Sergio Durigan Junior <sergiodj@redhat.com>
3966
3967 * ia64-linux-tdep.c: Include <ctype.h>.
3968 (ia64_linux_stap_is_single_operand): New function.
3969 (ia64_linux_init_abi): Initialize SystemTap related attributes.
3970
d6c2da54
TT
39712013-06-28 Tom Tromey <tromey@redhat.com>
3972
3973 * Makefile.in (version.c): Use version.in, not
3974 common/version.in.
3975 * common/create-version.sh: Likewise.
3976 * common/version.in: Move...
3977 * version.in: ...here.
3978
74da6f00
PA
39792013-06-28 Pedro Alves <palves@redhat.com>
3980
3981 * infrun.c (set_observer_mode): Don't declare pagination_enabled
3982 here.
3983 * utils.h (pagination_enabled): Declare.
3984
d32dc48e
PA
39852013-06-28 Pedro Alves <palves@redhat.com>
3986
3987 * infrun.c (non_stop, non_stop_1, set_non_stop, show_non_stop):
3988 Move higher up in file.
3989
0edd9e3b
TT
39902013-06-28 Tom Tromey <tromey@redhat.com>
3991
3992 * tracepoint.c (deprecated_readline_begin_hook)
3993 (deprecated_readline_hook, deprecated_readline_end_hook): Don't
3994 declare.
3995
4eb59108
PA
39962013-06-28 Pedro Alves <palves@redhat.com>
3997
3998 PR tui/14880
3999 * tui/tui-regs.c (tui_get_register): Fetch value contents before
4000 checking if they're available.
4001 * value.c (value_available_contents_eq): Change comment.
4002 * value.h (value_available_contents_eq): Expand comment.
4003
97b17156
TT
40042013-06-27 Tom Tromey <tromey@redhat.com>
4005
4006 * target.c (find_run_target): Remove.
4007 * target.h (find_run_target): Remove.
4008
6a3bfc5c
TT
40092013-06-27 Tom Tromey <tromey@redhat.com>
4010
4011 * corelow.c (core_gdbarch): Now static.
4012
c9ef825d
TT
40132013-06-27 Tom Tromey <tromey@redhat.com>
4014
4015 * target.c (target_struct_index): Remove.
4016
e5823f1c
PA
40172013-06-27 Pedro Alves <palves@redhat.com>
4018
4019 * infrun.c: Remove comment describing the 'stepping over runtime
4020 loader dynamic symbol resolution code' mechanism; moved to
4021 gdbint.texinfo.
4022
97f8dd09
PA
40232013-06-27 Pedro Alves <palves@redhat.com>
4024
4025 * exceptions.c (catch_command_errors): Remove spurious space.
4026 * exceptions.h (catch_command_errors): Second parameter is "arg",
4027 not "command".
4028
02b1871e
YQ
40292013-06-27 Yao Qi <yao@codesourcery.com>
4030
4031 * common/create-version.sh: Update comments. Handle the case
4032 that TARGET_ALIAS is empty.
4033
bb1b1cf1
PA
40342013-06-26 Pedro Alves <palves@redhat.com>
4035
4036 * infrun.c (SOLIB_IN_DYNAMIC_LINKER): Delete macro and describing
4037 comment.
4038
7b624e71
PA
40392013-06-26 Pedro Alves <palves@redhat.com>
4040
4041 * infrun.c: Update comments on stepping over runtime loader
4042 dynamic symbol resolution code.
4043
74e5a346
SDJ
40442013-06-26 Sergio Durigan Junior <sergiodj@redhat.com>
4045
4046 * ax-gdb.h (union exp_element): Forward declare.
4047 * parser-defs.h: Include expression.h.
4048
a2fb2cee
MR
40492013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
4050
4051 * mips-tdep.c (fetch_mips_16): Use unmake_compact_addr.
4052
cdba14e0
DK
40532013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
4054
4055 * tracepoint.c (trace_save): Extend tsave to save starttime, stoptime.
4056
f30aa5af
DK
40572013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
4058
4059 Fix trace-status to output proper start-time and stop-time.
4060 * tracepoint.c (trace_status_command): Fix type of printf arg to
4061 prevent improper type conversion.
4062 (trace_status_mi): Likewise.
4063
1aee363c
MR
40642013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
4065
4066 * mips-tdep.c (mips_next_pc): Fix a typo.
4067
3356937a
MR
40682013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
4069
4070 * mips-tdep.c (micromips_scan_prologue): Fix a typo.
4071
dc673c81
YQ
40722013-06-26 Pedro Alves <pedro@codesourcery.com>
4073 Yao Qi <yao@codesourcery.com>
4074
4075 * mi/mi-cmds.c (mi_cmds): Register -trace-frame-collected.
4076 * mi/mi-cmds.h (mi_cmd_trace_frame_collected): Declare.
4077 * mi/mi-main.c (print_variable_or_computed): New function.
4078 (mi_cmd_trace_frame_collected): New function.
4079 * tracepoint.c (find_trace_state_variable_by_number): New.
4080 (struct traceframe_info): Move to tracepoint.h
4081 (struct collection_list): Likewise.
4082 (do_collect_symbol): Include locals and arguments in the
4083 collected variables list.
4084 (clear_collection_list): Clear wholly collected variables list
4085 and computed variables list.
4086 (append_exp): New function.
4087 (encode_actions_1): Include variables in the wholly
4088 collected variables list. Include memory ranges and
4089 full-fledged expressions in the computed expressions list.
4090 (encode_actions): Move some code to ...
4091 Return the cleanup chain.
4092 (encode_actions_rsp): ... here. New function.
4093 (get_traceframe_location, get_traceframe_info): Remove static.
4094 * tracepoint.h (struct memrange): Moved from tracepoint.c.
4095 (struct collection_list): Moved from tracepoint.c. Add two
4096 new fields 'wholly_collected' and 'computed'.
4097 (find_trace_state_variable_by_number): Declare.
4098 (encode_actions): Adjust declaration.
4099 (encode_actions_rsp): Declare.
4100 (get_traceframe_info, get_traceframe_location): Declare.
4101
4102 * NEWS: Mention new MI command -trace-frame-collected.
4103
28a93511
YQ
41042013-06-26 Pedro Alves <pedro@codesourcery.com>
4105 Yao Qi <yao@codesourcery.com>
4106
4107 * ctf.c (ctf_traceframe_info): Push trace state variables
4108 present in the trace data into the traceframe info object.
4109 * breakpoint.c (DEF_VEC_I): Remove.
4110 * common/filestuff.c (DEF_VEC_I): Likewise.
4111 * dwarf2loc.c (DEF_VEC_I): Likewise.
4112 * mi/mi-main.c (DEF_VEC_I): Likewise.
4113 * common/gdb_vecs.h (DEF_VEC_I): Define vector for int.
4114 * features/traceframe-info.dtd: Add tvar element and its
4115 attributes.
4116 * tracepoint.c (free_traceframe_info): Free vector 'tvars'.
4117 (build_traceframe_info): Push trace state variables present in
4118 the trace data into the traceframe info object.
4119 (traceframe_info_start_tvar): New function.
4120 (tvar_attributes): New.
4121 (traceframe_info_children): Add "tvar" element.
4122 * tracepoint.h (struct traceframe_info) <tvars>: New field.
4123
4124 * NEWS: Mention the change in GDB and GDBserver.
4125
ddacd3c8
YQ
41262013-06-26 Pedro Alves <pedro@codesourcery.com>
4127 Yao Qi <yao@codesourcery.com>
4128
4129 * tracepoint.c (trace_dump_command): Move code to ...
4130 (get_traceframe_location): ... here. New.
4131
05796b35
YQ
41322013-06-26 Pedro Alves <pedro@codesourcery.com>
4133 Yao Qi <yao@codesourcery.com>
4134
4135 * tracepoint.c (trace_dump_command): GDB emits an error
4136 instead of a warning when a traceframe is not selected.
4137
cbfa3b61
YQ
41382013-06-26 Pedro Alves <pedro@codesourcery.com>
4139 Yao Qi <yao@codesourcery.com>
4140
4141 * tracepoint.c (tracepoint_list, stepping_list): Remove.
4142 (clear_collection_list): Free fields 'aexpre_list' and 'list'
4143 in collection_list.
4144 (do_clear_collection_list, init_collection_list): New.
4145 (encode_actions): Add local variables 'tracepoint_list' and
4146 'stepping_list'. Call init_collection_list and make cleanup
4147 which calls do_clear_collection_list. Don't call
4148 clear_collection_list.
4149 (_initialize_tracepoint): Delete references to
4150 'tracepoint_list' and 'stepping_list'.
4151
6e2048d3
TT
41522013-06-25 Tom Tromey <tromey@redhat.com>
4153
4154 * common/create-version.sh (date): Use "$", not "$$" in sed
4155 expression.
4156
42059f0e
KB
41572013-06-25 Kevin Buettner <kevinb@redhat.com>
4158
4159 * NEWS (New targets): Add entry for TI MSP430.
4160
a0743c90
YQ
41612013-06-25 Yao Qi <yao@codesourcery.com>
4162
4163 * remote.c (remote_start_remote): Move code to upload tsv
4164 earlier.
4165
9d6e6e84
HZ
41662013-06-25 Yao Qi <yao@codesourcery.com>
4167 Hui Zhu <hui@codesourcery.com>
4168 Pedro Alves <palves@redhat.com>
4169
4170 PR breakpoints/15075
4171 PR breakpoints/15434
4172 * breakpoint.c (bpstat_stop_status): Call
4173 b->ops->after_condition_true.
4174 (update_dprintf_command_list): Don't append "continue" command
4175 to the command list of dprintf breakpoint.
4176 (base_breakpoint_after_condition_true): New function.
4177 (base_breakpoint_ops): Add base_breakpoint_after_condition_true.
4178 (dprintf_after_condition_true): New function.
4179 (initialize_breakpoint_ops): Set dprintf_after_condition_true.
4180 * breakpoint.h (breakpoint_ops): Add after_condition_true.
4181
586cf749
KB
41822013-06-24 Kevin Buettner <kevinb@redhat.com>
4183
4184 * Makefile.in (ALL_TARGET_OBS): Add msp430-tdep.o.
4185 (ALLDEPFILES): Add msp430-tdep.c.
4186 * configure.tgt (msp430*-*-elf): New target.
4187 * msp430-tdep.c: New file.
4188
1bbce132
MR
41892013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
4190
4191 * mips-tdep.c (mips_elf_make_msymbol_special): Handle MIPS16 and
4192 microMIPS synthetic symbols.
4193
3e5d3a5a
MR
41942013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
4195
4196 * objfiles.h (pc_in_section): New prototype.
4197 (in_plt_section): Remove name argument, replace prototype with
4198 static inline function.
4199 * mips-tdep.h: Include "objfiles.h".
4200 (in_mips_stubs_section): New function.
4201 * hppa-tdep.h (gdbarch_tdep): Remove name argument of
4202 in_solib_call_trampoline member.
4203 (hppa_in_solib_call_trampoline): Remove name argument.
4204 * objfiles.c (pc_in_section): New function.
4205 (in_plt_section): Remove function.
4206 * mips-linux-tdep.c: Include "objfiles.h".
4207 (mips_linux_in_dynsym_stub): Call in_mips_stubs_section. Remove
4208 name argument. Return 1 rather than the low 16-bit halfword of
4209 any instruction examined.
4210 (mips_linux_in_dynsym_resolve_code): Update
4211 mips_linux_in_dynsym_stub call accordingly.
4212 * mips-tdep.c (mips_stub_frame_sniffer): Use in_mips_stubs_section
4213 rather than an equivalent hand-coded sequence.
4214 * hppa-hpux-tdep.c (in_opd_section): Remove function.
4215 (hppa32_hpux_in_solib_call_trampoline): Remove name argument.
4216 (hppa64_hpux_in_solib_call_trampoline): Likewise.
4217 (hppa64_hpux_find_global_pointer): Use pc_in_section rather than
4218 in_opd_section.
4219 * hppa-tdep.c (hppa_stub_unwind_sniffer): Remove name argument
4220 on call to tdep->in_solib_call_trampoline.
4221 (hppa_in_solib_call_trampoline): Remove name argument, update
4222 according to in_plt_section change.
4223 (hppa_skip_trampoline_code): Update according to in_plt_section
4224 change.
4225 * aarch64-tdep.c (aarch64_stub_unwind_sniffer): Likewise.
4226 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code):
4227 Likewise.
4228 * arm-tdep.c (arm_stub_unwind_sniffer): Likewise.
4229 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
4230 * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise.
4231 * nios2-tdep.c (nios2_stub_frame_sniffer): Likewise.
4232 * nto-tdep.c (nto_relocate_section_addresses): Likewise.
4233 * s390-tdep.c (s390_stub_frame_sniffer): Likewise.
4234 * sh-tdep.c (sh_stub_unwind_sniffer): Likewise.
4235 * solib-dsbt.c (dsbt_in_dynsym_resolve_code): Likewise.
4236 * solib-frv.c (frv_in_dynsym_resolve_code): Likewise.
4237 * solib-svr4.c (svr4_in_dynsym_resolve_code): Likewise.
4238 * solib-target.c (solib_target_in_dynsym_resolve_code): Likewise.
4239 * sparc-tdep.c (sparc_analyze_prologue): Likewise.
4240 * tic6x-tdep.c (tic6x_stub_unwind_sniffer): Likewise.
4241
b9b26a16
JB
42422013-06-24 Joel Brobecker <brobecker@adacore.com>
4243
4244 * common/create-version.sh: Fix expansion of $host_alias
4245 and $target_alias in generation of HOST_NAME and TARGET_NAME
4246 (resp.).
4247
01208463
TT
42482013-06-24 Tom Tromey <tromey@redhat.com>
4249
4250 * common/create-version.sh: New file.
4251 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
4252 create-version.sh.
4253 (HFILES_NO_SRCDIR): Use common/version.h.
4254 * version.in: Move to ...
4255 * common/version.in: ... here. Replace date with "DATE".
4256 * version.h: Move to ...
4257 * common/version.h: ... here.
4258
bb6b9a5e
JB
42592013-06-21 Joel Brobecker <brobecker@adacore.com>
4260
4261 * gdb/gnulib/Makefile.in: Update date in copyright header.
4262 * gdb/gnulib/configure.ac: Ditto.
4263 * gdb/gnulib/update-gnulib.sh: Ditto.
4264
c3b18ee7
JB
42652013-06-21 Joel Brobecker <brobecker@adacore.com>
4266
4267 * copyright.py (EXCLUDE_LIST): Replace "gdb/gnulib" by
4268 "gdb/gnulib/import".
4269
85d3b769
WN
42702013-06-21 Will Newton <will.newton@linaro.org>
4271
4272 * doublest.c (ldfrexp): Remove function.
4273 (convert_doublest_to_floatformat): Call frexpl instead of
4274 ldfrexp.
4275
88b48903
WN
42762013-06-21 Will Newton <will.newton@linaro.org>
4277
4278 * gnulib/update-gnulib.sh(IMPORTED_GNULIB_MODULES): Add frexpl.
4279 * gnulib/aclocal.m4: Regenerate.
4280 * gnulib/config.in: Regenerate.
4281 * gnulib/configure: Regenerate.
4282 * gnulib/import/Makefile.am: Update.
4283 * gnulib/import/Makefile.in: Update.
4284 * gnulib/import/m4/gnulib-cache.m4: Update.
4285 * gnulib/import/m4/gnulib-comp.m4: Update.
4286 * gnulib/import/float+.h: Import.
4287 * gnulib/import/float.c: Import.
4288 * gnulib/import/float.in.h: Import.
4289 * gnulib/import/fpucw.h: Import.
4290 * gnulib/import/frexp.c: Import.
4291 * gnulib/import/frexpl.c: Import.
4292 * gnulib/import/isnan.c: Import.
4293 * gnulib/import/isnand-nolibm.h: Import.
4294 * gnulib/import/isnand.c: Import.
4295 * gnulib/import/isnanl-nolibm.h: Import.
4296 * gnulib/import/isnanl.c: Import.
4297 * gnulib/import/itold.c: Import.
4298 * gnulib/import/m4/exponentd.m4: Import.
4299 * gnulib/import/m4/exponentl.m4: Import.
4300 * gnulib/import/m4/float_h.m4: Import.
4301 * gnulib/import/m4/fpieee.m4: Import.
4302 * gnulib/import/m4/frexp.m4: Import.
4303 * gnulib/import/m4/frexpl.m4: Import.
4304 * gnulib/import/m4/isnand.m4: Import.
4305 * gnulib/import/m4/isnanl.m4: Import.
4306 * gnulib/import/m4/math_h.m4: Import.
4307 * gnulib/import/math.c: Import.
4308 * gnulib/import/math.in.h: Import.
4309
4353c9e6
JK
43102013-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4311
4312 * common/linux-btrace.c (cpu_supports_btrace): Remove variable vendor,
4313 replace strcmp with signature_INTEL_ebx, signature_INTEL_ecx and
4314 signature_INTEL_edx comparisons.
4315
e3e06db3
DE
43162013-06-20 Doug Evans <dje@google.com>
4317
6ac97d4c
DE
4318 symtab/15652
4319 * dwarf2read.c (try_open_dwop_file): New arg search_cwd.
4320 All callers updated.
4321 (open_dwp_file): If we can't find the dwp file, search the basename
4322 in debug-file-directory.
4323
93417882
DE
4324 * dwarf2read.c (struct dwp_file): Fix comment.
4325 (open_and_init_dwp_file): Set dwp_file->name to bfd's file name.
4326
e3e06db3
DE
4327 * source.c (openp): Document OPF_TRY_CWD_FIRST+OPF_SEARCH_IN_PATH
4328 better.
4329
0878d0fa
YQ
43302013-06-20 Yao Qi <yao@codesourcery.com>
4331
4332 * breakpoint.c (create_breakpoint): Fix code indentation.
4333
023fa29b
YQ
43342013-06-20 Yao Qi <yao@codesourcery.com>
4335
4336 * breakpoint.c (create_breakpoints_sal_default): Remove
4337 parameter 'lsal'. Update declaration.
4338 (bkpt_create_breakpoints_sal): Caller update.
4339 (tracepoint_create_breakpoints_sal): Likewise.
4340
c898adb7
YQ
43412013-06-20 Pedro Alves <pedro@codesourcery.com>
4342 Yao Qi <yao@codesourcery.com>
4343
4344 * NEWS: Mention the new option '--skip-unavailable' of command
4345 -data-list-register-values.
4346 * mi/mi-main.c (mi_cmd_data_list_register_values): Accept the
4347 --skip-unavailable option. Adjust to use output_register.
4348 (output_register): Add new 'skip_unavailable' parameter.
4349 Handle it.
4350
4d157a3d
MF
43512013-06-19 Mike Frysinger <vapier@gentoo.org>
4352
4353 * Makefile.in (HFILES_NO_SRCDIR): Add common/i386-cpuid.h and
4354 common/i386-gcc-cpuid.h.
4355 * common/i386-cpuid.h: New wrapper header around i386-gcc-cpuid.h.
4356 * common/i386-gcc-cpuid.h: Rename from testsuite/gdb.arch/i386-cpuid.h.
4357 Copy the latest version from upstream gcc.
4358 * common/linux-btrace.c: Include i386-cpuid.h.
4359 (intel_supports_btrace): Delete x86 ifdefs and replace inline asm with
4360 call to i386_cpuid.
4361 (cpu_supports_btrace): Likewise.
4362 * go32-nat.c: Include i386-cpuid.h.
4363 (go32_sysinfo): Add (disabled) calls to i386_cpuid with comments.
4364
1ce4db08
DE
43652013-06-19 Doug Evans <dje@google.com>
4366
4367 * symfile.c (symfile_bfd_open): Delete unnecessary declaration.
4368 (get_section_index): Ditto.
4369
0e4777df
TT
43702013-06-19 Tom Tromey <tromey@redhat.com>
4371
4372 * breakpoint.c (_initialize_breakpoint): Remove trailing \n from
4373 "dprintf" help.
4374
3190f0c6
DE
43752013-06-18 Doug Evans <dje@google.com>
4376
4377 * dwarf2read.c (dw2_symtab_iter_next): Check value of cu_index
4378 before using it.
4379 (dw2_expand_symtabs_matching): Fix symbol kind validity check.
4380 Move test of cu_index closer to use. Print complaint if cu_index
4381 is bad.
4382
8b89a20a
JB
43832013-06-18 Joel Brobecker <brobecker@adacore.com>
4384
4385 * machoread.c (oso_vector): Delete this global.
4386 (macho_register_oso): Add new parameter "oso_vector_ptr".
4387 Use it instead of the "oso_vector" global.
4388 (macho_symtab_read, macho_symfile_read_all_oso): Likewise.
4389 (macho_symfile_read): Use a local oso_vector, to be free'ed
4390 at the end of this function, in place of the old "oso_vector"
4391 global. Update various function calls accordingly. Use one
4392 single cleanup chain for the entire function.
4393
59b0c7c1
JB
43942013-06-18 Joel Brobecker <brobecker@adacore.com>
4395
937c708c 4396 * dwarf2read.c (dwarf2_per_objfile_free): Replace uses of
59b0c7c1
JB
4397 DWARF2_PER_OBJFILE by uses of DATA instead.
4398
427cd150
TT
43992013-06-18 Tom Tromey <tromey@redhat.com>
4400
4401 * break-catch-sig.c (signal_catchpoint_explains_signal): Add 'sig'
4402 argument.
4403 * breakpoint.c (bpstat_explains_signal): Add 'sig' argument.
4404 Special case signals other than GDB_SIGNAL_TRAP.
4405 (explains_signal_watchpoint): New function.
4406 (base_breakpoint_explains_signal): Add 'sig' argument.
4407 (initialize_breakpoint_ops): Set 'explains_signal' method for
4408 watchpoints.
4409 * breakpoint.h (struct breakpoint_ops) <explains_signal>: Add
4410 signal argument.
4411 (bpstat_explains_signal): Likewise.
4412 * infrun.c (handle_syscall_event, handle_inferior_event): Update.
4413
2d57700b
TT
44142013-06-18 Tom Tromey <tromey@redhat.com>
4415
4416 * python/py-inferior.c (gdbpy_selected_inferior): Don't incref.
4417
ac475191
TT
44182013-06-18 Tom Tromey <tromey@redhat.com>
4419
4420 * python/python.c (finish_python_initialization): Decref
4421 'pythondir' on failure path as well.
4422
5bd1ef56
TT
44232013-06-18 Tom Tromey <tromey@redhat.com>
4424
4425 PR symtab/15391:
4426 * dwarf2loc.c (read_pieced_value): Truncate this_size_bits
4427 after taking bits_to_skip into account. Sign extend byte_offset.
4428 * utils.h (gdb_sign_extend): Declare.
4429 * utils.c (gdb_sign_extend): New function.
4430
92fac807
JK
44312013-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4432
4433 * dwarf2read.c (write_psymtabs_to_index): Ignore NULL PSYMTAB.
4434
2d503272
PM
44352013-06-17 Pierre Muller <muller@sourceware.org>
4436
4437 * corelow.c (core_open): Print GDB signal name instead of target
4438 signal number.
4439
6916fd98
MF
44402013-06-17 Mike Frysinger <vapier@gentoo.org>
4441
4442 * .gitignore: Add /gcore.
4443
9c02c129
DE
44442013-06-13 Doug Evans <dje@google.com>
4445
4446 * dwarf2read.c (try_open_dwop_file): Work around behaviour of
4447 OPF_TRY_CWD_FIRST to not search path if the file contains a '/'.
4448
d0548fa2
PM
44492013-06-12 Phil Muldoon <pmuldoon@redhat.com>
4450
4451 * stack.c (backtrace_command_1): Fix indentation.
4452
22128028
JB
44532013-06-11 Joel Brobecker <brobecker@adacore.com>
4454
4455 * window-nat.c (thread_rec): Add missing empty line after
4456 local variable declaration.
4457
2ed3e009
JB
44582013-06-11 Joel Brobecker <brobecker@adacore.com>
4459
4460 * windows-nat.c (thread_rec): Revert format used to print
4461 error code returned by SuspendThread from %d back to %u.
4462
0c3d84be
JB
44632013-06-11 Joel Brobecker <brobecker@adacore.com>
4464
4465 * windows-nat.c (windows_continue): Add "0x" prefix for thread
4466 ID in debug trace.
4467 (get_windows_debug_event): Likewise, for all debug traces.
4468
80e88e1a
JB
44692013-06-11 Joel Brobecker <brobecker@adacore.com>
4470
4471 * window-nat.c (thread_rec): Add thread ID in SuspendThread
4472 warning message.
4473
1edebdbf
YQ
44742013-06-08 Pedro Alves <pedro@codesourcery.com>
4475 Yao Qi <yao@codesourcery.com>
4476
4477 * mi/mi-main.c (get_register): Remove declaration.
4478 (output_register): Declare.
4479 (mi_cmd_data_list_register_values): Remove local variable
4480 'tuple_cleanup'. Move some code into output_register.
4481 (get_register): Renamed to ...
4482 (output_register): ... this. Output the register's
4483 "number" ui_out tuple here.
4484
47d48711
PA
44852013-06-07 Pedro Alves <palves@redhat.com>
4486
4487 * darwin-nat.c: Fix formating in copyright header.
4488 * darwin-nat.h: Likewise.
4489 * gnu-nat.c: Likewise.
4490 * machoread.c: Likewise.
4491
3aee8918
PA
44922013-06-07 Pedro Alves <palves@redhat.com>
4493
5f2b57b5 4494 PR server/14823
3aee8918
PA
4495 * regformats/regdat.sh: Output #include tdesc.h. Make globals
4496 static. Output a global target description pointer.
4497 (init_registers_${name}): Adjust to initialize a
4498 target description structure.
4499
fe8400b4
WN
45002013-06-07 Will Newton <will.newton@linaro.org>
4501
4502 * printcmd.c (build_address_symbolic): Call
4503 gdbarch_addr_bits_remove for text minimal symbols.
4504
20df6206
WN
45052013-06-07 Will Newton <will.newton@linaro.org>
4506
4507 * MAINTAINERS: Add myself to Write After Approval.
4508
aef525cb
YQ
45092013-06-07 Yao Qi <yao@codesourcery.com>
4510
4511 * tracepoint.c (start_tracing): Move code to ...
4512 (trace_reset_local_state): ... here. New.
4513 (disconnect_tracing): Don't call set_current_traceframe,
4514 set_tracepoint_num, and set_traceframe_context. Call
4515 trace_reset_local_state instead.
4516 (tfile_close): Call trace_reset_local_state.
4517 * ctf.c (ctf_close): Likewise.
4518 * remote.c (remote_close): Likewise.
4519 * tracepoint.h (trace_reset_local_state): Declare.
4520
d2415c6c
DE
45212013-06-06 Doug Evans <dje@google.com>
4522
4523 * dwarf2read.c: Whitespace fixes for DWP file format documentation,
4524 and fix header docs.
4525
69fc87c2
DE
45262013-06-05 Doug Evans <dje@google.com>
4527 Keith Seitz <keiths@redhat.com>
4528
4529 PR 15519
4530 * cp-namespace.c (find_symbol_in_baseclass): Call
4531 cp_lookup_symbol_in_namespace instead of cp_lookup_symbol_namespace.
4532 Check result of call to lookup_symbol_static.
4533 Call lookup_static_symbol_aux unconditionally.
4534 Call check_typedef on base types before accessing them.
4535 (cp_lookup_nested_symbol): Fix comment.
4536
a513d1e8
LM
45372013-06-05 Luis Machado <lgustavo@codesourcery.com>
4538
4539 * gnu-v3-abi.c (gnuv3_skip_trampoline): Handle thunk
4540 minimal symbols pointing to function descriptors.
4541
351a6f02
TT
45422013-06-05 Tom Tromey <tromey@redhat.com>
4543
4544 * python/py-utils.c (gdb_pymodule_addobject): Cast away const.
4545
5e1b953b 45462013-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
c7c0b644 4547 Pedro Alves <palves@redhat.com>
5e1b953b
SDJ
4548
4549 * remote.c (remote_wait_as): Restore signal handler before returning
4550 when GDB gets a notification.
4551
f9e14852
GB
45522013-06-04 Gary Benson <gbenson@redhat.com>
4553
8445cbf1 4554 PR 2328
f9e14852
GB
4555 * breakpoint.h (handle_solib_event): Moved function declaration
4556 to solib.h.
4557 * breakpoint.c (handle_solib_event): Moved function to solib.c.
4558 (bpstat_stop_status): Pass new argument to handle_solib_event.
4559 * solib.h (update_solib_breakpoints): New function declaration.
4560 (handle_solib_event): Moved function declaration from
4561 breakpoint.h.
4562 * solib.c (update_solib_breakpoints): New function.
4563 (handle_solib_event): Moved function from breakpoint.c.
4564 Updated to call solib_ops->handle_event if not NULL.
4565 * solist.h (target_so_ops): New fields "update_breakpoints" and
4566 "handle_event".
4567 * infrun.c (set_stop_on_solib_events): New function.
4568 (_initialize_infrun): Use the above for "set
4569 stop-on-solib-events".
4570 (handle_inferior_event): Pass new argument to handle_solib_event.
4571 * solib-svr4.c (probe.h): New include.
4572 (svr4_free_library_list): New forward declaration.
4573 (probe_action): New enum.
4574 (probe_info): New struct.
4575 (probe_info): New static variable.
4576 (NUM_PROBES): New definition.
4577 (svr4_info): New fields "using_xfer", "probes_table" and
4578 "solib_list".
4579 (free_probes_table): New function.
4580 (free_solib_list): New function.
4581 (svr4_pspace_data_cleanup): Free probes table and solib list.
4582 (svr4_copy_library_list): New function.
4583 (svr4_current_sos_via_xfer_libraries): New parameter "annex".
4584 (svr4_read_so_list): New parameter "prev_lm".
4585 (svr4_current_sos_direct): Renamed from "svr4_current_sos".
4586 (svr4_current_sos): New function.
4587 (probe_and_action): New struct.
4588 (hash_probe_and_action): New function.
4589 (equal_probe_and_action): Likewise.
4590 (register_solib_event_probe): Likewise.
4591 (solib_event_probe_at): Likewise.
4592 (solib_event_probe_action): Likewise.
4593 (solist_update_full): Likewise.
4594 (solist_update_incremental): Likewise.
4595 (disable_probes_interface_cleanup): Likewise.
4596 (svr4_handle_solib_event): Likewise.
4597 (svr4_update_solib_event_breakpoint): Likewise.
4598 (svr4_update_solib_event_breakpoints): Likewise.
4599 (svr4_create_solib_event_breakpoints): Likewise.
4600 (enable_break): Free probes table before creating breakpoints.
4601 Use svr4_create_solib_event_breakpoints to create breakpoints.
4602 (svr4_solib_create_inferior_hook): Free the solib list.
4603 (_initialize_svr4_solib): Initialise
4604 svr4_so_ops.handle_solib_event and svr4_so_ops.update_breakpoints.
4605
ced63ec0
GB
46062013-06-04 Gary Benson <gbenson@redhat.com>
4607
4608 * target.h (target_ops): New field
4609 "to_augmented_libraries_svr4_read".
4610 (target_augmented_libraries_svr4_read): New macro.
4611 * target.c (update_current_target): Handle
4612 to_augmented_libraries_svr4_read.
4613 * remote.c (remote_state): New field
4614 "augmented_libraries_svr4_read".
4615 (remote_augmented_libraries_svr4_read_feature): New function.
4616 (remote_protocol_features): Add entry for
4617 "augmented-libraries-svr4-read".
4618 (remote_augmented_libraries_svr4_read): New function.
4619 (init_remote_ops): Initialize
4620 remote_ops.to_augmented_libraries_svr4_read.
4621
7f91dbec
GB
46222013-06-04 Gary Benson <gbenson@redhat.com>
4623
4624 * NEWS: Update.
4625
607ece04
GB
46262013-06-04 Gary Benson <gbenson@redhat.com>
4627
4628 * objfiles.h (inhibit_section_map_updates): New function
4629 declaration.
4630 (resume_section_map_updates): Likewise.
4631 (resume_section_map_updates_cleanup): Likewise.
4632 * objfiles.c (objfile_pspace_info): Removed field
4633 "objfiles_changed_p". New fields "new_objfiles_available",
4634 "section_map_dirty" and "inhibit_updates".
4635 (allocate_objfile): Set new_objfiles_available.
4636 (free_objfile): Set section_map_dirty.
4637 (objfile_relocate1): Likewise.
4638 (in_plt_section): Likewise.
4639 (find_pc_section): Update the conditions under which the
4640 section map will be updated.
4641 (inhibit_section_map_updates): New function.
4642 (resume_section_map_updates): Likewise.
4643 (resume_section_map_updates_cleanup): Likewise.
4644
9ee6a5ac
GB
46452013-06-04 Gary Benson <gbenson@redhat.com>
4646
4647 * probe.h (get_probe_argument_count): New declaration.
4648 (evaluate_probe_argument): Likewise.
4649 * probe.c (get_probe_argument_count): New function.
4650 (evaluate_probe_argument): Likewise.
4651 (probe_safe_evaluate_at_pc): Use the above new functions.
4652
845d4708
AM
46532013-06-04 Alan Modra <amodra@gmail.com>
4654
4655 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
4656 * rs6000-tdep.c (read_insn): Add frame param, don't assume big-endian.
4657 (ppc_insns_match_pattern): Add frame param. Avoid multiple
4658 target mem reads on optional insns.
4659 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Update
4660 ppc_insns_match_pattern calls.
4661 * ppc64-tdep.c (ppc64_standard_linkage2, ppc64_standard_linkage3):
4662 Add match for power7 thread safety insns, and new order of
4663 std 2,40(1) insn. Correct code shown for _dl_runtime_resolve
4664 invocation in comment, and update rest of comment.
4665 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN,
4666 PPC64_STANDARD_LINKAGE3_LEN): Delete.
4667 (ppc64_standard_linkage2_target): Update insn offsets.
4668 (ppc64_skip_trampoline_code): Use a single insn buffer. Match newer
4669 stubs first. Update calls.
4670
404e278f
YQ
46712013-06-04 Yao Qi <yao@codesourcery.com>
4672
4673 * solib.c (solib_find): Don't need dir separator if path has
4674 drive spec.
4675
f6aea118
JB
46762013-06-03 Joel Brobecker <brobecker@adacore.com>
4677
4678 Revert (indirectly causes a SIGSEGV):
4679 * machoread.c (macho_symfile_read): Assign first cleanup to
4680 'back_to'.
4681
87967e27
YQ
46822013-06-03 Yao Qi <yao@codesourcery.com>
4683
4684 * mi/mi-cmd-var.c (mi_no_values, mi_simple_values): Move to
4685 mi-parse.c. Make them static.
4686 (mi_all_values): Likewise.
4687 (mi_parse_values_option): Move to mi-parse.c. Rename it to
4688 mi_parse_print_values. Make it external.
4689 * mi/mi-cmds.h (mi_no_values, mi_simple_values, mi_all_values):
4690 Remove the declarations.
4691 * mi/mi-parse.c (mi_parse_print_values): Moved from mi-cmd-var.c.
4692 * mi/mi-parse.h (mi_parse_print_values): Declare.
4693 * mi/mi-cmd-stack.c: Include mi-parse.h.
4694 (parse_print_values): Remove
4695 (mi_cmd_stack_list_locals): Call mi_parse_print_values instead
4696 of parse_print_values.
4697 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Likewise.
4698
3ca73e0c
YQ
46992013-05-31 Pedro Alves <pedro@codesourcery.com>
4700 Yao Qi <yao@codesourcery.com>
4701
4702 * tracepoint.c (all_tracepoint_actions_and_cleanup): Declare.
4703 (encode_actions): Move code to ...
4704 (all_tracepoint_actions_and_cleanup): ... here. New.
4705 (trace_dump_command): Likewise.
4706
4e993a19
TT
47072013-05-30 Tom Tromey <tromey@redhat.com>
4708
4709 * symmisc.c (maintenance_expand_symtabs): Call do_cleanups.
4710
e3b76b4f
TT
47112013-05-30 Tom Tromey <tromey@redhat.com>
4712
4713 * xml-support.c (gdb_xml_create_parser_and_cleanup): Rename from
4714 gdb_xml_create_parser_and_cleanup_1. Return a cleanup. Remove
4715 'old_chain' argument. Add 'parser_result' argument.
4716 (gdb_xml_create_parser_and_cleanup): Remove old version.
4717 (gdb_xml_parse_quick): Update.
4718 (xml_process_xincludes): Update.
4719 * xml-support.h (gdb_xml_create_parser_and_cleanup): Don't
4720 declare.
4721
db26349c
TT
47222013-05-30 Tom Tromey <tromey@redhat.com>
4723
4724 * probe.c (collect_probes): Check arguments for NULL before
4725 calling compile_rx_or_error.
4726 * utils.c (compile_rx_or_error): Require 'rx' to be non-NULL.
4727 Remove NULL return.
4728
77f9e713
TT
47292013-05-30 Tom Tromey <tromey@redhat.com>
4730
4731 * infrun.c (adjust_pc_after_break): Introduce an outer null
4732 cleanup.
4733
45475de7
TT
47342013-05-30 Tom Tromey <tromey@redhat.com>
4735
4736 * mi/mi-cmd-var.c (varobj_update_one): Add an outer null cleanup.
4737
ac5007fd
TT
47382013-05-30 Tom Tromey <tromey@redhat.com>
4739
4740 * cli/cli-script.c (read_command_lines_1): Use a null cleanup
4741 for 'old_chain'. Do not check 'head' before processing
4742 cleanups.
4743
cd82eddc
TT
47442013-05-30 Tom Tromey <tromey@redhat.com>
4745
4746 * mi/mi-cmd-stack.c (list_arg_or_local): Remove
4747 "cleanup_tuple".
4748
57cee33a
TT
47492013-05-30 Tom Tromey <tromey@redhat.com>
4750
4751 * dbxread.c (dbx_read_symtab): Declare 'back_to' in a more
4752 inner scope. Unconditionally call do_cleanups.
4753
795d915c
TT
47542013-05-30 Tom Tromey <tromey@redhat.com>
4755
4756 * source.c (find_and_open_source): Call do_cleanups.
4757
1fc3cf4a
TT
47582013-05-30 Tom Tromey <tromey@redhat.com>
4759
4760 * linux-thread-db.c (thread_db_load_search): Unconditionally
4761 call do_cleanups.
4762
e35ac9bf
TT
47632013-05-30 Tom Tromey <tromey@redhat.com>
4764
4765 * solib-aix.c (solib_aix_bfd_open): Don't use a null cleanup
4766 for 'cleanup'; instead use a later one.
4767
f3300387
TT
47682013-05-30 Tom Tromey <tromey@redhat.com>
4769
4770 * python/py-breakpoint.c (bppy_get_commands): Use
4771 explicit, unconditional return.
4772 * python/py-frame.c (frapy_read_var): Likewise.
4773 * python/python.c (gdbpy_decode_line): Likewise.
4774
c27e16e3
TT
47752013-05-30 Tom Tromey <tromey@redhat.com>
4776
4777 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Call
4778 do_cleanups on all return paths.
4779
5ae85e44
TT
47802013-05-30 Tom Tromey <tromey@redhat.com>
4781
4782 * top.c (execute_command): Discard 'cleanup_if_error' cleanups.
4783
73b8d9da
TT
47842013-05-30 Tom Tromey <tromey@redhat.com>
4785
4786 * stabsread.c (read_struct_type): Call do_cleanups along
4787 all return paths.
4788
7d266584
MR
47892013-05-30 Maciej W. Rozycki <macro@codesourcery.com>
4790
4791 * mips-linux-tdep.c: Adjust formatting throughout.
4792
0f900f54
TT
47932013-05-30 Tom Tromey <tromey@redhat.com>
4794
4795 * mipsread.c (read_alphacoff_dynamic_symtab): Call do_cleanups
4796 along all return paths.
4797
a991ac28
TT
47982013-05-30 Tom Tromey <tromey@redhat.com>
4799
4800 * symfile.c (find_separate_debug_file): Call do_cleanups
4801 along all return paths.
4802
1abaf042
TT
48032013-05-30 Tom Tromey <tromey@redhat.com>
4804
4805 * symtab.c (search_symbols): Introduce a null cleanup for
4806 'retval_chain'.
4807
edefe1da
TT
48082013-05-30 Tom Tromey <tromey@redhat.com>
4809
4810 * python/py-value.c (valpy_binop): Call do_cleanups before
4811 exiting loop.
4812
54f72dcc
TT
48132013-05-30 Tom Tromey <tromey@redhat.com>
4814
4815 * python/py-prettyprint.c (print_children): Remove extra
4816 do_cleanups call.
4817
af1c6971
TT
48182013-05-30 Tom Tromey <tromey@redhat.com>
4819
4820 * python/py-frame.c (frapy_read_var): Call do_cleanups along
4821 all return paths.
4822
b862ce75
TT
48232013-05-30 Tom Tromey <tromey@redhat.com>
4824
4825 * python/py-breakpoint.c (bppy_get_commands): Call do_cleanups
4826 along all return paths.
4827
e12fefc8
TT
48282013-05-30 Tom Tromey <tromey@redhat.com>
4829
4830 * cli/cli-logging.c (set_logging_redirect): Unconditionally
4831 call do_cleanups.
4832
4867f990
TT
48332013-05-30 Tom Tromey <tromey@redhat.com>
4834
4835 * varobj.c (c_value_of_root): Call do_cleanups along all
4836 return paths.
4837
4fd2d6af
TT
48382013-05-30 Tom Tromey <tromey@redhat.com>
4839
4840 * tracepoint.c (trace_dump_command): Unconditionally call
4841 do_cleanups.
4842
752eb8b4
TT
48432013-05-30 Tom Tromey <tromey@redhat.com>
4844
4845 * breakpoint.c (output_thread_groups, parse_cmd_to_aexpr): Call
4846 do_cleanups earlier.
4847
e42d0aa5
TT
48482013-05-30 Tom Tromey <tromey@redhat.com>
4849
4850 * machoread.c (macho_symfile_read): Assign first cleanup to
4851 'back_to'.
4852
4bbc010a
TT
48532013-05-30 Tom Tromey <tromey@redhat.com>
4854
4855 * m32r-rom.c (m32r_load): Call do_cleanups at all returns.
4856
b9635925
TT
48572013-05-30 Tom Tromey <tromey@redhat.com>
4858
4859 * mi/mi-main.c (list_available_thread_groups): Call do_cleanups.
4860
25f43500
TT
48612013-05-30 Tom Tromey <tromey@redhat.com>
4862
4863 * inf-ptrace.c (inf_ptrace_create_inferior): Unconditionally
4864 call discard_cleanups.
4865 (inf_ptrace_attach): Likewise.
4866
d6a2e54a
TT
48672013-05-30 Tom Tromey <tromey@redhat.com>
4868
4869 * remote-mips.c (mips_exit_debug): Call do_cleanups on all
4870 return paths.
4871 (mips_initialize): Likewise.
4872 (common_open): Call do_cleanups.
4873
48be7c1b
TT
48742013-05-30 Tom Tromey <tromey@redhat.com>
4875
4876 * utils.c (internal_vproblem): Call do_cleanups.
4877
e61727ab
TT
48782013-05-30 Tom Tromey <tromey@redhat.com>
4879
4880 * linespec.c (find_linespec_symbols): Don't reassign to 'cleanup'.
4881
b81b921f
TT
48822013-05-30 Tom Tromey <tromey@redhat.com>
4883
4884 * cli/cli-script.c (setup_user_args): Don't return after error.
4885
fe48dfb1
TT
48862013-05-30 Tom Tromey <tromey@redhat.com>
4887
4888 * somread.c (som_symtab_read): Call do_cleanups.
4889
27833de7
TT
48902013-05-30 Tom Tromey <tromey@redhat.com>
4891
4892 * printcmd.c (print_command_1): Unconditionally call do_cleanups.
4893
5b3fca71
TT
48942013-05-30 Tom Tromey <tromey@redhat.com>
4895
4896 * cli/cli-cmds.c (cd_command, alias_command): Call do_cleanups.
4897 * cli/cli-dump.c (restore_binary_file): Call do_cleanups.
4898 * interps.c (interpreter_exec_cmd): Call do_cleanups.
4899 * source.c (show_substitute_path_command): Call do_cleanups.
4900 (unset_substitute_path_command, set_substitute_path_command):
4901 Likewise.
4902 * symfile.c (load_command): Call do_cleanups.
4903
af83e3f8
TT
49042013-05-30 Tom Tromey <tromey@redhat.com>
4905
4906 * contrib/cleanup_check.py: New file.
4907 * contrib/gcc-with-excheck: Add option parsing.
4908
564eac42
JB
49092013-05-30 Joel Brobecker <brobecker@adacore.com>
4910
4911 * windows-nat.c (windows_delete_thread): Add missing space
4912 in cast expression.
4913
47902076
HAQ
49142013-05-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
4915
4916 * inferior.c (top level): Include tilde.h.
4917 (add_inferior_command): Call tilde_expand on the value of 'exec'
4918 argument.
4919
23da373a
YQ
49202013-05-30 Pedro Alves <pedro@codesourcery.com>
4921 Yao Qi <yao@codesourcery.com>
4922
4923 * tracepoint.c (encode_actions_1): Remove parameter 't'.
4924 Caller update.
4925 (encode_actions): Likewise.
4926 * remote.c (remote_download_tracepoint): Caller update.
4927 * tracepoint.h (encode_actions): Update declaration.
4928
a6e6f791
PA
49292013-05-30 Pedro Alves <palves@redhat.com>
4930
4931 * python/python-internal.h (gdb_Py_DECREF): Cast OP to PyObject
4932 pointer.
4933
36d25514
YQ
49342013-05-30 Yao Qi <yao@codesourcery.com>
4935
4936 * remote.c (remote_check_symbols): Remove unused parameter
4937 'objfile'.
4938 Declaration update.
4939 (remote_start_remote, remote_new_objfile): Caller update.
4940
62a813cc
YQ
49412013-05-30 Yao Qi <yao@codesourcery.com>
4942
4943 * mi/mi-cmds.c (mi_cmds): Define MI command
4944 '-exec-arguments' by macro DEF_MI_CMD_CLI_1 instead of
4945 DEF_MI_CMD_CLI.
4946
28439a30
PA
49472013-05-29 Pedro Alves <palves@redhat.com>
4948
4949 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint)
4950 (remote_insert_watchpoint, remote_remove_watchpoint)
4951 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
4952 (remote_verify_memory, compare_sections_command)
4953 (remote_search_memory): Set the general process/thread on the
4954 remote side.
4955
6ac1c082
PA
49562013-05-29 Pedro Alves <palves@redhat.com>
4957
4958 * aarch64-tdep.c: Don't include "features/aarch64-without-fpu.c".
4959 (_initialize_aarch64_tdep): Don't call
4960 initialize_tdesc_aarch64_without_fpu.
4961 * features/Makefile (WHICH): Remove reference to
4962 aarch64-without-fpu.
4963 * features/aarch64-without-fpu.c: Delete file.
4964 * regformats/aarch64-without-fpu.dat: Delete file.
4965
a73e3634
YQ
49662013-05-28 Yao Qi <yao@codesourcery.com>
4967
4968 * tracepoint.c (stringify_collection_list): Remove parameter
4969 'string'.
4970 (encode_actions): Caller update. Remove local variables.
4971
c0ea94eb
YQ
49722013-05-24 Yao Qi <yao@codesourcery.com>
4973
4974 * tracepoint.c (TFILE_PID): Remove.
4975 (tfile_open): Don't add thread and inferior.
4976 (tfile_close): Don't set 'inferior_ptid'. Don't call
4977 exit_inferior_silent.
4978 (tfile_thread_alive): Remove.
4979 (init_tfile_ops): Don't set field 'to_thread_alive' of
4980 tfile_ops.
4981
20d7f211
DE
49822013-05-23 Doug Evans <dje@google.com>
4983
4984 * contrib/cc-with-tweaks.sh (-p): Handle no dwo files.
4985
8658d16d
PA
49862013-05-23 Pedro Alves <palves@redhat.com>
4987
4988 * common/filestuff.c [USE_WIN32API]: Define HAVE_SOCKETS.
4989 [HAVE_SYS_SOCKET_H]: Define HAVE_SOCKETS.
4990 (socket_mark_cloexec, gdb_socketpair_cloexec, gdb_socket_cloexec):
4991 Only define if HAVE_SOCKETS is defined.
4992 * configure.ac: Check for sys/socket.h.
4993 * config.in, configure: Regenerate.
4994
21aa081e
PA
49952013-05-23 Pedro Alves <palves@redhat.com>
4996
4997 * dwarf2read.c (create_dwp_hash_table, create_dwo_in_dwp)
4998 (open_and_init_dwp_file): Use %s/pulongest instead of %u for
4999 printing uint32_t variables.
5000
c2d6af84
PA
50012013-05-23 Pedro Alves <palves@redhat.com>
5002
5003 * NEWS: Mention GDBserver range stepping support.
5004
c1e36e3e
PA
50052013-05-23 Yao Qi <yao@codesourcery.com>
5006 Pedro Alves <palves@redhat.com>
5007
5008 * gdbthread.h (struct thread_control_state) <may_range_step>: New
5009 field.
5010 * infcmd.c (step_once, until_next_command): Enable range stepping.
5011 * infrun.c (displaced_step_prepare): Disable range stepping.
5012 (resume): Disable range stepping if stepping over a breakpoint or
5013 we have software watchpoints. If range stepping is enabled,
5014 assert the thread is in the stepping range.
5015 (clear_proceed_status_thread): Clear may_range_step.
5016 (handle_inferior_event): Disable range stepping as soon as we know
5017 the thread that hit the event. Re-enable it whenever we're going
5018 to step with a step range.
5019 * remote.c (struct vCont_action_support) <r>: New field.
5020 (use_range_stepping): New global.
5021 (remote_vcont_probe): Handle 'r' action.
5022 (append_resumption): Append an 'r' action if the thread may range
5023 step.
5024 (show_range_stepping): New function.
5025 (set_range_stepping): New function.
5026 (_initialize_remote): Call add_setshow_boolean_cmd to register the
5027 'set range-stepping' and 'show range-stepping' commands.
5028 * NEWS: Mention range stepping, the new vCont;r action, and the
5029 new "set/show range-stepping" commands.
5030
d458bd84
PA
50312013-05-23 Yao Qi <yao@codesourcery.com>
5032 Pedro Alves <palves@redhat.com>
5033
5034 * remote.c (struct vCont_action_support): New struct.
5035 (struct remote_state) <support_vCont_t>: Remove field.
5036 <vCont_actions_support>: New field.
5037 (remote_vcont_probe, remote_stop_ns): Update.
5038
ce4c476a
PA
50392013-05-23 Yao Qi <yao@codesourcery.com>
5040 Pedro Alves <palves@redhat.com>
5041
5042 * gdbthread.h (pc_in_thread_step_range): New declaration.
5043 * thread.c (pc_in_thread_step_range): New function.
5044 * infrun.c (handle_inferior_event): Use it.
5045
ce70887a
JB
50462013-05-23 Joel Brobecker <brobecker@adacore.com>
5047
5048 * mi/mi-cmd-break.c (mi_argv_to_format): Use xsnprintf instead
5049 of sprintf.
5050
55b87a52
KS
50512013-05-22 Keith Seitz <keiths@redhat.com>
5052
5053 * ada-lang.c (is_known_support_routine): Add explicit free of
5054 'func_name' from find_frame_funname.
5055 (ada_unhandled_exception_name_addr_from_raise): Add cleanups
5056 for func_name from find_frame_funname.
5057 * python/py-frame.c (frapy_name): Add explicit free of
5058 'name' from find_frame_funname.
5059 * stack.c (find_frame_funname): Add comment explaining that
5060 funcp must be freed by the caller.
5061 Return copy of symbol names instead of pointers.
5062 (print_frame): Add a cleanup for 'funname' from
5063 find_frame_funname.
5064 * stack.h (find_frame_funname): Remove "const" from
5065 'funname' parameter.
5066
5f2e6b00
TT
50672013-05-22 Tom Tromey <tromey@redhat.com>
5068
5069 PR c++/15401:
5070 * c-valprint.c (c_value_print): Use value_addr for
5071 references. Convert back to reference type with value_ref.
5072
d85c4847
EZ
50732013-05-22 Eli Zaretskii <eliz@gnu.org>
5074
5075 * windows-nat.c (handle_unload_dll): Don't call solib_add for the
5076 unloaded DLL, it will be done by handle_solib_event. See
5077 http://sourceware.org/ml/gdb-patches/2013-05/msg00713.html for the
5078 details.
5079
54eb231c
PM
50802013-05-22 Phil Muldoon <pmuldoon@redhat.com>
5081
5082 * ui-out.c: Create typedef ui_out_level_p and define vector
5083 operations for that type.
5084 (struct ui_out): Use a vector instead of an array.
5085 (current_level): Return level from a vector.
5086 (push_level): Create a level in a vector.
5087 (pop_level): Delete a level in a vector.
5088 (ui_out_new): Create initial level zero level, and store in a
5089 vector.
5090 (ui_out_destroy): Add vector cleanup.
5091
ac90359c
PA
50922013-05-22 Pedro Alves <palves@redhat.com>
5093
5094 * python/python-internal.h (gdb_Py_DECREF): Tag with
5095 "ARI: editCase function".
5096
6dcc1893
PP
50972013-05-21 Paul Pluzhnikov <ppluzhnikov@google.com>
5098
5099 * solib-svr4.c (svr4_free_so): Protect against NULL dereference.
5100
c8c735b9
PA
51012013-05-21 Pedro Alves <palves@redhat.com>
5102
5103 * python/py-prettyprint.c (apply_val_pretty_printer): Check
5104 whether PRINTER is NULL before installing a Py_DECREF cleanup.
5105 * python/py-utils.c (py_decref): Don't check for NULL before
5106 calling Py_DECREF.
5107
1915daeb
PA
51082013-05-21 Pedro Alves <palves@redhat.com>
5109
5110 * python/py-utils.c (py_decref): Remove extra braces.
5111 (gdb_pymodule_addobject): Remove extra braces.
5112 * python-internal.h (gdb_Py_DECREF): New static inline function.
5113 (Py_DECREF): Redefine as calling gdb_Py_DECREF.
5114
bd9673a4
PW
51152013-05-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5116
5117 * breakpoints.c (detach_breakpoints): Do not
5118 detach breakpoints locations with loc_type bp_loc_other.
5119
ff6009d0
JK
51202013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5121
5122 Workaround Python 2.6.
5123 * python/py-utils.c (gdb_pymodule_addobject): Wrap Py_DECREF into
5124 a block.
5125
3641da11
JK
51262013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5127
5128 Code cleanup: constification.
5129 * solib.c (solib_ops): Make return type and ops variable type const.
5130 (set_solib_ops): Make the new_ops parameter and ops variable const.
5131 (solib_find, solib_map_sections, clear_so, free_so, update_solib_list)
5132 (solib_add, solib_keep_data_in_core, clear_solib)
5133 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
5134 (reload_shared_libraries, solib_global_lookup): Make the ops variable
5135 const.
5136 * solib.h (set_solib_ops): Make the new_ops parameter const.
5137
776af39e
JB
51382013-05-21 Joel Brobecker <brobecker@adacore.com>
5139
5140 * data-directory/Makefile.in (SYSTEM_GDBINIT_SRCDIR): New
5141 variable.
5142 (VPATH): Add SYSTEM_GDBINIT_SRCDIR.
5143 (SYSTEM_GDBINIT_DIR, SYSTEM_GDBINIT_INSTALL_DIR)
5144 (SYSTEM_GDBINIT_FILES): New variables.
5145 (all): Add stamp-system-gdbinit.
5146 (stamp-system-gdbinit): New rule.
5147 (clean-system-gdbinit, install-system-gdbinit)
5148 (uninstall-system-gdbinit): New rules. Make them .PHONY.
5149 (install-only): Add dependency on install-system-gdbinit.
5150 (uninstall): Add dependency on uninstall-system-gdbinit.
5151 (clean): Add dependency on clean-system-gdbinit.
5152 * system-gdbinit/elinos.py: New file.
5153 * system-gdbinit/wrs-linux.py: New file.
5154
1509e573
JB
51552013-05-21 Joel Brobecker <brobecker@adacore.com>
5156
5157 * ada-lang.c (old_renaming_is_invisible): Fix cleanup leak.
5158
c5867ab6
HZ
51592013-05-21 Hui Zhu <hui@codesourcery.com>
5160
5161 * breakpoint.c (dprintf_breakpoint_ops): Remove its static.
5162 * breakpoint.h (dprintf_breakpoint_ops): Add extern.
5163 * mi/mi-cmd-break.c (ctype.h): New include.
5164 (gdb_obstack.h): New include.
5165 (mi_argv_to_format, mi_cmd_break_insert_1): New.
5166 (mi_cmd_break_insert): Call mi_cmd_break_insert_1.
5167 (mi_cmd_dprintf_insert): New.
5168 * mi/mi-cmds.c (mi_cmds): Add "dprintf-insert".
5169 * mi/mi-cmds.h (mi_cmd_dprintf_insert): New extern.
5170
7d38e38f
TT
51712013-05-20 Tom Tromey <tromey@redhat.com>
5172
5173 * python/py-prettyprint.c (search_pp_list): Decref 'attr'.
5174
97b77b39
TT
51752013-05-20 Tom Tromey <tromey@redhat.com>
5176
5177 * python/py-value.c (valpy_get_dynamic_type): Simplify
5178 dynamic_type assignment. Use Py_XINCREF.
5179
53e66479
TT
51802013-05-20 Tom Tromey <tromey@redhat.com>
5181
5182 * python/py-type.c (typy_fields): Unconditionally decref 'r'.
5183
dcf87832
TT
51842013-05-20 Tom Tromey <tromey@redhat.com>
5185
5186 * python/py-frame.c (frapy_older, frapy_newer, gdbpy_newest_frame)
5187 (gdbpy_selected_frame): Move object-construction code
5188 out of TRY_CATCH.
5189
aa36459a
TT
51902013-05-20 Tom Tromey <tromey@redhat.com>
5191
5192 * python/py-arch.c (gdbpy_initialize_arch): Use
5193 gdb_pymodule_addobject.
5194 * python/py-block.c (gdbpy_initialize_blocks): Use
5195 gdb_pymodule_addobject.
5196 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Use
5197 gdb_pymodule_addobject.
5198 * python/py-cmd.c (gdbpy_initialize_breakpoints): Use
5199 gdb_pymodule_addobject.
5200 * python/py-event.c (gdbpy_initialize_event_generic): Use
5201 gdb_pymodule_addobject.
5202 * python/py-evtregistry.c (gdbpy_initialize_eventregistry): Use
5203 gdb_pymodule_addobject.
5204 * python/py-evts.c (add_new_registry): Use
5205 gdb_pymodule_addobject.
5206 (gdbpy_initialize_py_events): Likewise.
5207 * python/py-finishbreakpoint.c
5208 (gdbpy_initialize_finishbreakpoints): Use
5209 gdb_pymodule_addobject.
5210 * python/py-frame.c (gdbpy_initialize_frames): Use
5211 gdb_pymodule_addobject.
5212 * python/py-function.c (gdbpy_initialize_functions): Use
5213 gdb_pymodule_addobject.
5214 * python/py-inferior.c (gdbpy_initialize_inferior): Use
5215 gdb_pymodule_addobject.
5216 * python/py-infthread.c (gdbpy_initialize_thread): Use
5217 gdb_pymodule_addobject.
5218 * python/py-objfile.c (gdbpy_initialize_objfile): Use
5219 gdb_pymodule_addobject.
5220 * python/py-param.c (gdbpy_initialize_parameters): Use
5221 gdb_pymodule_addobject.
5222 * python/py-progspace.c (gdbpy_initialize_pspace): Use
5223 gdb_pymodule_addobject.
5224 * python/py-symbol.c (gdbpy_initialize_symbols): Use
5225 gdb_pymodule_addobject.
5226 * python/py-symtab.c (gdbpy_initialize_symtabs): Use
5227 gdb_pymodule_addobject.
5228 * python/py-type.c (gdbpy_initialize_types): Use
5229 gdb_pymodule_addobject.
5230 * python/py-utils.c (gdb_pymodule_addobject): New function.
5231 * python/py-value.c (gdbpy_initialize_values): Use
5232 gdb_pymodule_addobject.
5233 * python/python-internal.h (gdb_pymodule_addobject): Declare.
5234 * python/python.c (_initialize_python): Use
5235 gdb_pymodule_addobject.
5236
3d4a3c3e
TT
52372013-05-20 Tom Tromey <tromey@redhat.com>
5238
5239 * python/py-cmd.c (cmdpy_completer): Use explicit decref.
5240 * python/py-param.c (get_set_value, get_show_value): Use
5241 explicit decrefs.
5242 * python/python.c (start_type_printers, apply_type_printers):
5243 Use explicit decrefs.
5244
72ff8829
TT
52452013-05-20 Tom Tromey <tromey@redhat.com>
5246
5247 * python/py-evts.c (gdbpy_initialize_py_events): Don't
5248 incref the module.
5249
02146ba5
TT
52502013-05-20 Tom Tromey <tromey@redhat.com>
5251
5252 * python/python.c (gdbpy_run_events): Decref the result
5253 of PyObject_CallObject.
5254
33ee792f
TT
52552013-05-20 Tom Tromey <tromey@redhat.com>
5256
5257 * python/py-symtab.c (set_sal): Use
5258 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION. Return -1 on error.
5259 (symtab_and_line_to_sal_object): Update.
5260
fcb49fc8
TT
52612013-05-20 Tom Tromey <tromey@redhat.com>
5262
5263 * python/py-param.c (compute_enum_values): Decref 'item'.
5264
0646da15
TT
52652013-05-20 Tom Tromey <tromey@redhat.com>
5266
5267 * mi/mi-main.c: Include python-internal.h.
5268 (mi_cmd_list_features): Check gdb_python_initialized.
5269 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
5270 (python_inferior_exit, python_new_objfile, add_thread_object)
5271 (delete_thread_object, py_free_inferior): Check
5272 gdb_python_initialized.
5273 * python/py-prettyprint.c (apply_val_pretty_printer): Check
5274 gdb_python_initialized.
5275 * python/py-type.c (save_objfile_types): Check
5276 gdb_python_initialized.
5277 * python/python-internal.h (gdb_python_initialized): Declare.
5278 * python/python.c (ensure_python_env): Throw exception if
5279 Python not initialized.
5280 (before_prompt_hook, source_python_script_for_objfile)
5281 (start_type_printers, apply_type_printers,
5282 free_type_printers): Check gdb_python_initialized.
5283 * varobj.c (varobj_get_display_hint)
5284 (dynamic_varobj_has_child_method, update_dynamic_varobj_children)
5285 (install_new_value_visualizer, varobj_set_visualizer)
5286 (value_get_print_value): Check gdb_python_initialized.
5287
999633ed
TT
52882013-05-20 Tom Tromey <tromey@redhat.com>
5289
5290 * python/py-arch.c (gdbpy_initialize_arch): Return 'int'.
5291 Check errors.
5292 * python/py-auto-load.c (gdbpy_initialize_auto_load): Return 'int'.
5293 * python/py-block.c (gdbpy_initialize_blocks): Return 'int'.
5294 Check errors.
5295 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Return 'int'.
5296 Check errors.
5297 * python/py-cmd.c (gdbpy_initialize_commands): Return 'int'.
5298 Check errors.
5299 * python/py-event.c (gdbpy_initialize_event): Return 'int'.
5300 Check errors.
5301 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Change generated
5302 init function to return 'int'.
5303 * python/py-evtregistry.c (gdbpy_initialize_eventregistry):
5304 Return 'int'. Check errors.
5305 * python/py-evts.c (gdbpy_initialize_py_events): Return 'int'.
5306 Check errors.
5307 * python/py-finishbreakpoint.c (gdbpy_initialize_finishbreakpoints):
5308 Return 'int'. Check errors.
5309 * python/py-frame.c (gdbpy_initialize_frames): Return 'int'.
5310 Check errors.
5311 * python/py-function.c (gdbpy_initialize_functions): Return 'int'.
5312 Check errors.
5313 * python/py-gdb-readline.c (gdbpy_initialize_gdb_readline):
5314 Check errors.
5315 * python/py-inferior.c (gdbpy_initialize_inferior): Return 'int'.
5316 Check errors.
5317 * python/py-infthread.c (gdbpy_initialize_thread): Return 'int'.
5318 Check errors.
5319 * python/py-lazy-string.c (gdbpy_initialize_lazy_string): Return 'int'.
5320 Check errors.
5321 * python/py-objfile.c (gdbpy_initialize_objfile): Return 'int'.
5322 Check errors.
5323 * python/py-param.c (gdbpy_initialize_parameters): Return 'int'.
5324 Check errors.
5325 * python/py-progspace.c (gdbpy_initialize_pspace): Return 'int'.
5326 Check errors.
5327 * python/py-symbol.c (gdbpy_initialize_symbols): Return 'int'.
5328 Check errors.
5329 * python/py-symtab.c (gdbpy_initialize_symtabs): Return 'int'.
5330 Check errors.
5331 * python/py-type.c (gdbpy_initialize_types): Return 'int'.
5332 Check errors.
5333 * python/py-value.c (gdbpy_initialize_values): Return 'int'.
5334 Check errors.
5335 * python/python-internal.h (gdbpy_initialize_auto_load,
5336 gdbpy_initialize_values, gdbpy_initialize_frames,
5337 gdbpy_initialize_symtabs, gdbpy_initialize_commands,
5338 gdbpy_initialize_symbols, gdbpy_initialize_symtabs,
5339 gdbpy_initialize_blocks, gdbpy_initialize_types,
5340 gdbpy_initialize_functions, gdbpy_initialize_pspace,
5341 gdbpy_initialize_objfile, gdbpy_initialize_breakpoints,
5342 gdbpy_initialize_finishbreakpoints,
5343 gdbpy_initialize_lazy_string, gdbpy_initialize_parameters,
5344 gdbpy_initialize_thread, gdbpy_initialize_inferior,
5345 gdbpy_initialize_eventregistry, gdbpy_initialize_event,
5346 gdbpy_initialize_py_events, gdbpy_initialize_stop_event,
5347 gdbpy_initialize_signal_event,
5348 gdbpy_initialize_breakpoint_event,
5349 gdbpy_initialize_continue_event,
5350 gdbpy_initialize_exited_event, gdbpy_initialize_thread_event,
5351 gdbpy_initialize_new_objfile_event, gdbpy_initialize_arch):
5352 Update. Use CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
5353 * python/python.c (gdb_python_initialized): New global.
5354 (gdbpy_initialize_events): Return 'int'. Check errors.
5355 (_initialize_python): Check errors. Set
5356 gdb_python_initialized.
5357
18868860
TT
53582013-05-20 Tom Tromey <tromey@redhat.com>
5359
5360 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope):
5361 Decref the reslut of PyObject_CallMethod.
5362
9f4ff0c2
TT
53632013-05-20 Tom Tromey <tromey@redhat.com>
5364
5365 * python/py-event.c (gdbpy_initialize_event_generic): Return
5366 early if PyType_Ready fails.
5367
0d3a2e8a
TT
53682013-05-20 Tom Tromey <tromey@redhat.com>
5369
5370 * python/py-type.c (make_fielditem): Add gdb_assert_not_reached
5371 as 'default' in the switch.
5372
b86af38a
TT
53732013-05-20 Tom Tromey <tromey@redhat.com>
5374
5375 * python/py-inferior.c (gdbpy_inferiors): Update. Hoist
5376 get_addr_from_python calls out of TRY_CATCH.
5377 (infpy_write_memory, infpy_search_memory): Likewise.
5378 * python/py-utils.c (get_addr_from_python): Return negative
5379 value on error. Use TRY_CATCH.
5380 * python/python-internal.h (get_addr_from_python): Use
5381 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
5382
c127ec58
TT
53832013-05-20 Tom Tromey <tromey@redhat.com>
5384
5385 * python/py-event.c (evpy_emit_event): Decref the
5386 result of PyObject_CallFunctionObjArgs.
5387
ba327838
TT
53882013-05-20 Tom Tromey <tromey@redhat.com>
5389
5390 * python/py-cmd.c (cmdpy_completer): Use iterator protocol.
5391 Correctly decref.
5392
d8191432
TT
53932013-05-20 Tom Tromey <tromey@redhat.com>
5394
5395 * python/py-cmd.c (cmdpy_init): Decref 'ds_obj'.
5396
5d153bd1
TT
53972013-05-20 Tom Tromey <tromey@redhat.com>
5398
5399 * python/py-event.h (gdbpy_initialize_event_generic): Use
5400 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
5401 * python/py-evts.c (add_new_registry): Use
5402 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
5403 * python/python-internal.h
5404 (CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION): New macro.
5405
56cc411c
TT
54062013-05-20 Tom Tromey <tromey@redhat.com>
5407
5408 * python/py-arch.c (archpy_disassemble): Update.
5409 * python/py-type.c (typy_get_composite, typy_lookup_typename)
5410 (typy_lookup_type): Use GDB_PY_HANDLE_EXCEPTION.
5411 * python/py-utils.c (gdbpy_convert_exception): Return 'void'.
5412 * python/python-internal.h (CPYCHECKER_SETS_EXCEPTION): New
5413 macro.
5414 (GDB_PY_HANDLE_EXCEPTION): Update.
5415 (gdbpy_convert_exception): Update. Use CPYCHECKER_SETS_EXCEPTION.
5416
8919e174
TT
54172013-05-20 Tom Tromey <tromey@redhat.com>
5418
5419 * python/python-internal.h (events_object_type): Remove.
5420
9b08f225
TT
54212013-05-20 Tom Tromey <tromey@redhat.com>
5422
f5aee5ee
AM
5423 * python/py-event.h (evpy_emit_event): Use
5424 CPYCHECKER_STEALS_REFERENCE_TO_ARG.
5425 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
5426 New macro.
9b08f225 5427
f04010ff
TT
54282013-05-20 Tom Tromey <tromey@redhat.com>
5429
5430 * py-evtregistry.c (create_event_object): Decref
5431 eventregistry_object if PyList_New fails.
5432
3919fd96
TT
54332013-05-20 Tom Tromey <tromey@redhat.com>
5434
5435 * py-cmd.c (gdbpy_string_to_argv): Check result of
5436 PyList_New.
5437
0430e8cb
TT
54382013-05-20 Tom Tromey <tromey@redhat.com>
5439
5440 * python/python.c (before_prompt_hook): Add cleanup to
5441 decref 'hook'.
5442
764123e4
TT
54432013-05-20 Tom Tromey <tromey@redhat.com>
5444
5445 * python/py-function.c (fnpy_init): Decref result of
5446 PyObject_GetAttrString.
5447
634c58be
TT
54482013-05-20 Tom Tromey <tromey@redhat.com>
5449
5450 * python/py-threadevent.c (get_event_thread): Use
5451 CPYCHECKER_RETURNS_BORROWED_REF.
5452 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
5453 New define.
5454 (pspace_to_pspace_object, objfile_to_objfile_object)
5455 (find_thread_object): Use it.
5456
62eec1a5
TT
54572013-05-20 Tom Tromey <tromey@redhat.com>
5458
5459 * python/py-arch.c (arch_object_type): Use
5460 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5461 * python/py-block.c (block_syms_iterator_object_type):
5462 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5463 * python/py-bpevent.c (breakpoint_event_object_type):
5464 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5465 * python/py-cmd.c (cmdpy_object_type): Use
5466 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5467 * python/py-continueevent.c (continue_event_object_type):
5468 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5469 * python/py-event.h (GDBPY_NEW_EVENT_TYPE):
5470 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5471 * python/py-events.h (thread_event_object_type):
5472 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5473 * python/py-evtregistry.c (eventregistry_object_type): Use
5474 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5475 * python/py-exitedevent.c (exited_event_object_type):
5476 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5477 * python/py-finishbreakpoint.c (finish_breakpoint_object_type):
5478 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5479 * python/py-function.c (fnpy_object_type): Use
5480 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5481 * python/py-inferior.c (inferior_object_type, membuf_object_type):
5482 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5483 * python/py-infthread.c (thread_object_type): Use
5484 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5485 * python/py-lazy-string.c (lazy_string_object_type):
5486 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5487 * python/py-newobjfileevent.c (new_objfile_event_object_type):
5488 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5489 * python/py-objfile.c (objfile_object_type): Use
5490 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5491 * python/py-param.c (parmpy_object_type):
5492 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5493 * python/py-progspace.c (pspace_object_type):
5494 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5495 * python/py-signalevent.c (signal_event_object_type):
5496 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5497 * python/py-symtab.c (symtab_object_type, sal_object_type): Use
5498 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5499 * python/py-type.c (type_object_type, field_object_type)
5500 (type_iterator_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5501 * python/py-internal.h (CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF): New
5502 define.
5503 (value_object_type, block_object_type, symbol_object_type)
5504 (event_object_type, stop_event_object_type, breakpoint_object_type)
5505 (frame_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5506
81ea8796
AT
55072013-05-20 Andreas Tobler <andreas@fgznet.ch>
5508
5509 * Makefile.in (ALL_TARGET_OBS): Add ppcfbsd-tdep.o.
5510 (ALLDEPFILES): Add ppcfbsd-nat.c and ppcfbsd-tdep.c.
5511
a2ce51a0
DE
55122013-05-20 Doug Evans <dje@google.com>
5513
5514 When reading CU, stay in DWO. Be more tolerent of bad debug info.
5515 For Fission.
5516 * dwarf2read.c (struct dwarf2_per_cu_data): New member
5517 reading_dwo_directly.
5518 (struct signatured_type): New member dwo_unit.
5519 (struct die_reader_specs): New member comp_dir.
5520 (create_signatured_type_table_from_index): Use malloc for
5521 all_type_units instead of objfile's obstack.
5522 (create_all_type_units): Ditto.
5523 (fill_in_sig_entry_from_dwo_entry): New function.
5524 (add_type_unit): New function.
5525 (lookup_dwo_signatured_type): New function.
5526 (lookup_dwp_signatured_type): New function.
5527 (lookup_signatured_type): New arg cu. All callers updated.
5528 (init_cu_die_reader): Initialize comp_dir.
5529 (read_cutu_die_from_dwo): New arg stub_comp_dir. All callers updated.
5530 Change assert of matching type signatures to call error on mismatch.
5531 (lookup_dwo_unit): Add assert.
5532 (init_tu_and_read_dwo_dies): New function.
5533 (init_cutu_and_read_dies): Call it.
5534 (build_type_unit_groups): Handle case of no type unit groups created.
5535 (hash_dwo_file, eq_dwo_file): Handle missing comp_dir.
5536 (lookup_dwo_cutu): Tweak complaint.
5537 (dwarf2_free_abbrev_table): Check for NULL abbrev_table.
5538 (dwarf2_per_objfile_free): Free all_type_units.
5539
a25cd31f
JB
55402013-05-20 Joel Brobecker <brobecker@adacore.com>
5541
5542 * windows-nat.c (handle_unload_dll): Add missing empty line.
5543
4d804846
JB
55442013-05-20 Joel Brobecker <brobecker@adacore.com>
5545
5546 * dwarf2read.c (prototyped_function_p): New function.
5547 (read_subroutine_type): Use it.
5548
1c432e72
JB
55492013-05-20 Joel Brobecker <brobecker@adacore.com>
5550
5551 * rs6000-aix-tdep.c: De-indent some example code provided
5552 as a comment.
5553
4feebbdd
EBM
55542013-05-17 Edjunior Machado <emachado@linux.vnet.ibm.com>
5555
5556 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Check if the
5557 region is ok for a hardware watchpoint using the new ptrace interface
5558 on Power servers.
5559
7d0c9981
DE
55602013-05-17 Doug Evans <dje@google.com>
5561
5562 * NEWS: Mention new maintenance commands check-symtabs, and
5563 expand-symtabs, and renamed check-psymtabs.
5564 * psymtab.c (maintenance_check_psymtabs): Renamed from
5565 maintenance_check_symtabs. Only process already-expanded symbol
5566 tables.
5567 (_initialize_psymtab): Update.
5568 * symmisc.c (maintenance_check_symtabs): New function.
5569 (maintenance_expand_name_matcher): New function
5570 (maintenance_expand_file_matcher): New function
5571 (maintenance_expand_symtabs): New function.
5572 (_initialize_symmisc): Add "mt check-symtabs" and "mt expand-symtabs"
5573 commands.
5574
6cbc7c3d
TT
55752013-05-17 Tom Tromey <tromey@redhat.com>
5576
5577 * python/py-inferior.c (infpy_read_memory): Don't call
5578 PyErr_SetString if PyObject_New fails.
5579 * python/py-frame.c (frame_info_to_frame_object): Don't call
5580 PyErr_SetString if PyObject_New fails.
5581
a48b32c0
L
55822013-05-17 Pavel Chupin <pavel.v.chupin@intel.com>
5583
5584 * acinclude.m4: Add check for dlopen in libdl.
5585 * configure.ac: Ditto.
5586 * configure: Regenerate.
5587
3de661e6
PM
55882013-05-17 Phil Muldoon <pmuldoon@redhat.com>
5589
5590 * frame.c (frame_stash): Convert to htab.
5591 (frame_addr_hash): New function.
5592 (frame_addr_hash_eq): New function.
5593 (frame_stash_create): Convert function to create
5594 a hash table.
5595 (frame_stash_add): Convert function to add an entry to a hash
5596 table.
5597 (frame_stash_find): Convert function to search the hash table.
5598 (frame_stash_invalidate): Convert function to empty the hash
5599 table.
5600 (get_frame_id): Only add to stash if a frame_id is created.
5601 (_initialize_frame): Call frame_stash_create.
5602
bb4168a9 56032013-05-16 Yue Lu <hacklu.newborn@gmail.com> (tiny change)
036c3acb
TS
5604
5605 * configure.ac: Ensure MIG is available when building for GNU Hurd
5606 hosts.
5607 * configure: Regenerate.
5608
d1be3247
JB
56092013-05-16 Joel Brobecker <brobecker@adacore.com>
5610
5611 * dwarf2read.c (set_cu_language): Add DW_LANG_UPC handling.
5612
b8fea896
JB
56132013-05-16 Joel Brobecker <brobecker@adacore.com>
5614
5615 * ada-lang.c (ada_make_symbol_completion_list): Make sure
5616 all cleanups are done before returning from this function.
5617
af880d85
JB
56182013-05-15 Joel Brobecker <brobecker@adacore.com>
5619
5620 * utils.h: #include "exceptions.h".
5621 (enum errors): Remove partial declaration.
5622
356a5233
JB
56232013-05-15 Joel Brobecker <brobecker@adacore.com>
5624
5625 * gdbarch.sh (core_xfer_shared_libraries_aix): New method.
5626 * gdbarch.h, gdbarch.c: Regenerate.
5627 * corelow.c (core_xfer_partial): Add TARGET_OBJECT_LIBRARIES_AIX
5628 handling.
5629
5630 * rs6000-aix-tdep.h: New file.
5631 * Makefile.in (HFILES_NO_SRCDIR): Add rs6000-aix-tdep.h.
5632 * rs6000-aix-tdep.c: Include "rs6000-aix-tdep.h" and
5633 "xml-utils.h".
5634 (struct field_info, struct ld_info_desc): New types.
5635 (ld_info32_desc, ld_info64_desc): New static constants.
5636 (struct ld_info): New type.
5637 (rs6000_aix_extract_ld_info): New function.
5638 (rs6000_aix_shared_library_to_xml): Likewise.
5639 (rs6000_aix_ld_info_to_xml): Likewise.
5640 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
5641 (rs6000_aix_init_osabi): Add call to
5642 set_gdbarch_core_xfer_shared_libraries_aix.
5643 * rs6000-nat.c: Add "rs6000-aix-tdep.h" include.
5644 Remove "xml-utils.h" include.
5645 (LdInfo): Delete typedef.
5646 (ARCH64_DECL, LDI_FIELD, LDI_NEXT, LDI_FD, LDI_FILENAME):
5647 Delete macros.
5648 (rs6000_ptrace_ldinfo): Change return type to gdb_byte *.
5649 Adjust code accordingly.
5650 (rs6000_core_ldinfo): Delete, folded into
5651 rs6000_aix_core_xfer_shared_libraries_aix.
5652 (rs6000_xfer_shared_library): Delete.
5653 (rs6000_xfer_shared_libraries): Reimplement.
5654
742ce053
MM
56552013-05-15 Markus Metzger <markus.t.metzger@intel.com>
5656
5657 * record.c (record_goto_cmdlist): New.
5658 (cmd_record_goto): Split into this ...
5659 (cmd_record_goto_begin): ... this
5660 (cmd_record_goto_end): ... and this.
5661 (_initialize_record): Change "record goto" to prefix command.
5662 Add commands for "record goto begin" and "record goto end".
5663 Add an alias for "record goto start" to "record goto begin".
5664
e93ba630
JK
56652013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
5666
5667 * linespec.c (convert_linespec_to_sals): New comment for
5668 SOURCE_FILENAME assignment.
5669
5821aace
JK
56702013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
5671
5672 * cleanups.c (restore_my_cleanups): Replace gdb_assert by
5673 internal_warning.
5674
a1b8c4cc
TT
56752013-05-14 Tom Tromey <tromey@redhat.com>
5676
5677 * eval.c (parse_and_eval_long): Make 'exp' const.
5678 * value.h (parse_and_eval_long): Update.
5679
23b3a2c3
TT
56802013-05-14 Tom Tromey <tromey@redhat.com>
5681
5682 * ui-file.c (gdb_fopen): Make arguments const.
5683 * ui-file.h (gdb_fopen): Make arguments const.
5684
ca623f82
TT
56852013-05-14 Tom Tromey <tromey@redhat.com>
5686
5687 * remote.c (remote_set_trace_notes): Make arguments const.
5688 * target.c (update_current_target): Update cast.
5689 * target.h (to_set_trace_notes): Make arguments const.
5690
503ebb2c
TT
56912013-05-14 Tom Tromey <tromey@redhat.com>
5692
5693 * go32-nat.c (go32_terminal_info): Make 'args' const.
5694 * inferior.h (child_terminal_info): Update.
5695 * inflow.c (child_terminal_info): Make 'args' const.
5696 * target.c (default_terminal_info): Make 'args' const.
5697 (debug_to_terminal_save_ours): Likewise.
5698 * target.h (struct target_ops) <to_terminal_info>: Make argument
5699 const.
5700
85e1311a
TT
57012013-05-13 Tom Tromey <tromey@redhat.com>
5702
5703 * gcore.c (create_gcore_bfd): Make 'filename' const.
5704 * gcore.h (create_gcore_bfd): Make 'filename' const.
5705 * record-full.c (record_full_save): Make 'recfilename' const.
5706 * target.c (target_save_record): Make 'filename' const.
5707 * target.h (struct target_ops) <to_save_record>: Make 'filename'
5708 const.
5709 (target_save_record): Likewise.
5710
d62bfeaf
TT
57112013-05-13 Tom Tromey <tromey@redhat.com>
5712
f5aee5ee 5713 PR gdb/15338:
d62bfeaf
TT
5714 * dwarf2read.c (dwarf2_record_block_ranges): Ensure that the
5715 ranges section has been read.
5716
ac1ca910
TT
57172013-05-13 Tom Tromey <tromey@redhat.com>
5718
5719 PR exp/15364:
5720 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
5721 STRUCTOP_PTR>: Return a not_lval value for
5722 EVAL_AVOID_SIDE_EFFECTS.
5723 * opencl-lang.c (evaluate_subexp_opencl): Return a not_lval value
5724 for EVAL_AVOID_SIDE_EFFECTS.
5725
36d1c68c
JB
57262013-05-13 Joel Brobecker <brobecker@adacore.com>
5727
5728 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Convert
5729 floating point registers to register type before storing
5730 value.
5731 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call):
5732 Likewise.
5733
21ff4686
TT
57342013-05-10 Joel Brobecker <brobecker@adacore.com>
5735 Tom Tromey <tromey@redhat.com>
5736
5737 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
5738 New functions.
5739 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
5740 Declare.
5741 * darwin-nat.c (darwin_pre_ptrace): Use mark_fd_no_cloexec.
5742 (darwin_ptrace_him): Use unmark_fd_no_cloexec.
5743 * inf-ttrace.c (do_cleanup_pfds): Use unmark_fd_no_cloexec.
5744 (inf_ttrace_prepare): Use mark_fd_no_cloexec.
5745
d3685d60
TT
57462013-05-10 Freddie Chopin <freddie_chopin@op.pl>
5747 Tom Tromey <tromey@redhat.com>
5748
5749 PR build/15414:
5750 * configure: Rebuild.
5751 * configure.ac (build_warnings): Do not use -Wformat-nonliteral
5752 with -Wno-format.
5753
eb9fe518
PA
57542013-05-10 Pedro Alves <palves@redhat.com>
5755
5756 * remote.c (_initialize_remote): Fix spelling of
5757 qXfer:traceframe-info:read packet in packet config command.
5758
9779ab84
PA
57592013-05-10 David Taylor <dtaylor@emc.com>
5760
5761 PR remote/15455
5762
5763 * remote.c (remote_trace_set_readonly_regions): Do not overwrite
5764 "QTro" at start of packet.
5765
060cfbef
JB
57662013-05-10 Joel Brobecker <brobecker@adacore.com>
5767
5768 * solib-aix.c (solib_aix_relocate_section_addresses):
5769 For the .bss section action, apply the same offset as
5770 the .data section.
5771
ab1c4e88
JB
57722013-05-10 Joel Brobecker <brobecker@adacore.com>
5773
5774 * solib-aix.c (solib_aix_relocate_section_addresses):
5775 Remove FIXME comment.
5776
c1357578
JB
57772013-05-10 Joel Brobecker <brobecker@adacore.com>
5778
5779 PR tdep/15420:
5780 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
5781 New functions, directly copied from sparc-sol-thread.c.
5782 * sparc-sol-thread.c: Delete.
5783 * configure.ac: Remove code handling sparc-solaris-thread.c.
5784 * configure: Regenerate.
5785
1e611234
PM
57862013-05-10 Phil Muldoon <pmuldoon@redhat.com>
5787
5788 * stack.c (backtrace_command_1): Add "no-filters", and Python frame
5789 filter logic.
5790 (backtrace_command): Add "no-filters" option parsing.
5791 (_initialize_stack): Alter help to reflect "no-filters" option.
5792 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-framefilter.o
5793 (SUBDIR_PYTHON_SRCS): Add py-framefilter.c
5794 (py-frame.o): Add target
5795 * data-directory/Makefile.in (PYTHON_DIR): Add Python frame
5796 filter files.
5797 * python/python.h: Add new frame filter constants, and flag enum.
5798 (apply_frame_filter): Add definition.
5799 * python/python.c (apply_frame_filter): New non-Python
5800 enabled function.
5801 * python/py-utils.c (py_xdecref): New function.
5802 (make_cleanup_py_xdecref): Ditto.
5803 * python/py-objfile.c: Declare frame_filters dictionary.
5804 (objfpy_dealloc): Add frame_filters dealloc.
5805 (objfpy_new): Initialize frame_filters attribute.
5806 (objfile_to_objfile_object): Ditto.
5807 (objfpy_get_frame_filters): New function.
5808 (objfpy_set_frame_filters): New function.
5809 * python/py-progspace.c: Declare frame_filters dictionary.
5810 (pspy_dealloc): Add frame_filters dealloc.
5811 (pspy_new): Initialize frame_filters attribute.
5812 (pspacee_to_pspace_object): Ditto.
5813 (pspy_get_frame_filters): New function.
5814 (pspy_set_frame_filters): New function.
5815 * python/py-framefilter.c: New file.
5816 * python/lib/gdb/command/frame_filters.py: New file.
5817 * python/lib/gdb/frames.py: New file.
5818 * python/lib/gdb/__init__.py: Initialize global frame_filters
5819 dictionary
5820 * python/lib/gdb/FrameDecorator.py: New file.
5821 * python/lib/gdb/FrameIterator.py: New file.
5822 * mi/mi-cmds.c (mi_cmds): Add frame filters command.
5823 * mi/mi-cmds.h: Declare.
5824 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Add
5825 --no-frame-filter logic, and Python frame filter logic.
5826 (stack_enable_frame_filters): New function.
5827 (parse_no_frame_option): Ditto.
5828 (mi_cmd_stack_list_frames): Add --no-frame-filter and Python frame
5829 filter logic.
5830 (mi_cmd_stack_list_locals): Ditto.
5831 (mi_cmd_stack_list_args): Ditto.
5832 (mi_cmd_stack_list_variables): Ditto.
5833 * NEWS: Add frame filter note.
5834
2cb9c859
DE
58352013-05-09 Doug Evans <dje@google.com>
5836
6bf667bb
DE
5837 * symfile.c (syms_from_objfile_1): Delete args offsets, num_offsets.
5838 All callers updated.
5839 (syms_from_objfile): Ditto. Make static.
5840 (symbol_file_add_with_addrs): Renamed from
5841 symbol_file_add_with_addrs_or_offsets. Delete args offsets,
5842 num_offsets. All callers updated.
5843 * symfile.h (syms_from_objfile): Delete.
5844
2cb9c859
DE
5845 * symfile.c (decrement_reading_symtab): Add assert.
5846 (increment_reading_symtab): Ditto.
5847
40aea477
JB
58482013-05-09 Joel Brobecker <brobecker@adacore.com>
5849
5850 * source.c (forward_search_command): Replace call to getc
5851 by call to fgetc.
5852 (reverse_search_command): Likewise.
5853
680d1742
DE
58542013-05-08 Doug Evans <dje@google.com>
5855
5856 * psymtab.c (expand_symtabs_matching_via_partial): Fix file name
5857 matching test.
5858
17e760ae
JB
58592013-05-08 Joel Brobecker <brobecker@adacore.com>
5860
5861 * sol-thread.c (info_cb): Factorize the code a little.
5862
c0f5f490
JB
58632013-05-08 Joel Brobecker <brobecker@adacore.com>
5864
5865 * sol-thread.c (info_cb): Rework the output of the "maintenance
5866 info sol-threads" command a bit.
5867
5d74e061
JB
58682013-05-08 Joel Brobecker <brobecker@adacore.com>
5869
5870 * sol-thread.c (info_cb) [ti.ti_state == TD_THR_SLEEP]:
5871 Replace ti.ti_startfunc by ti.ti_pc.
5872
814a3ff7
JB
58732013-05-08 Joel Brobecker <brobecker@adacore.com>
5874
5875 * solib-aix.c (solib_aix_free_library_list): New function
5876 for the case where HAVE_LIBEXPAT is not defined.
5877
58ce7251
SDJ
58782013-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
5879
5880 PR breakpoints/15413:
5881 * breakpoint.c (condition_completer): Simplify the code to
5882 disconsider multiple locations of breakpoints when completing the
5883 "condition" command.
5884
be8b1ea6
PM
58852013-05-07 Pierre Muller <muller@sourceware.org>
5886
5887 * common/linux-btrace.c: ARI fix: Include "gdb_wait.h"
5888 instead of <sys/wait.h>.
5889
1e52bda6
PM
58902013-05-07 Pierre Muller <muller@sourceware.org>
5891
5892 * nios2-tdep.c (nios2_dwarf_reg_to_regnum): ARI fix: remove
5893 trailing new line from warning message.
5894
27fd0c6b
PM
58952013-05-07 Pierre Muller <muller@sourceware.org>
5896
5897 * contrib/ari/gdb_ari.sh (SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK)
5898 (PC_SOLIB): Change type from ari_deprecate to ari_regression.
5899
e228ac87
JB
59002013-05-07 Joel Brobecker <brobecker@adacore.com>
5901
5902 * rs6000-nat.c (rs6000_core_ldinfo): Remove '\n' at end of
5903 error message (ARI fix).
5904
59052013-05-07 Joel Brobecker <brobecker@adacore.com>
5906
5907 * features/library-list-aix.dtd: Replace library-list by
5908 library-list-aix.
5909 * rs6000-nat.c: Replace library-list by library-list-aix
5910 throughout.
5911 * solib-aix.c: Likewise.
5912
59132013-05-07 Joel Brobecker <brobecker@adacore.com>
5914
5915 * target.h (enum target_object) [TARGET_OBJECT_LIBRARIES_AIX]:
5916 Renames TARGET_OBJECT_AIX_LIBRARIES.
5917 * rs6000-nat.c: Replace TARGET_OBJECT_AIX_LIBRARIES with
5918 TARGET_OBJECT_LIBRARIES_AIX throughout.
5919 * solib-aix.c: Likwise.
5920
26a4dda9
YQ
59212013-05-07 Yao Qi <yao@codesourcery.com>
5922
5923 * solib-dsbt.c (struct dsbt_info) <enable_break2_done>: Remove.
5924 (get_dsbt_info, enable_break, dsbt_clear_solib): Update.
5925
3582629f
YQ
59262013-05-07 Yao Qi <yao@codesourcery.com>
5927
5928 * solib-dsbt.c (enable_break): Declare.
5929 (dsbt_current_sos): Remove call to enable_break2.
5930 (enable_break2): Rename to enable_break. Set solib breakpoint
5931 on '_dl_debug_state'.
5932 (enable_break): Remove.
5933
aacbb8a5
LM
59342013-05-07 Luis Machado <lgustavo@codesourcery.com>
5935
5936 * ppc-linux-nat.c (ppc_linux_new_thread): Clear the new thread's
5937 debug state prior to replicating existing hardware watchpoints or
5938 breakpoints.
5939
0c013353
JK
59402013-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
5941
5942 * gcore.c (gcore_create_callback): Ignore sections with
5943 separate_debug_objfile_backlink != NULL.
5944
a1217d97
SL
59452013-05-06 Sandra Loosemore <sandra@codesourcery.com>
5946 Andrew Jenner <andrew@codesourcery.com>
5947 Chung-Lin Tang <cltang@codesourcery.com>
5948 Julian Brown <julian@codesourcery.com>
5949
5950 Based on the nios2-elf port from Altera Corporation.
5951
5952 * Makefile.in (ALL_TARGET_OBS): Add nios2-tdep.o and
5953 nios2-linux-tdep.o.
5954 (HFILES_NO_SRCDIR): Add nios2-tdep.h.
5955 (ALLDEPFILES): Add nios2-tdep.c and nios2-linux-tdep.c.
5956 * configure.tgt: Add nios2*-*-linux* and nios2*-*-* targets.
5957 * nios2-tdep.h: New.
5958 * nios2-tdep.c: New.
5959 * nios2-linux-tdep.c: New.
5960 * features/Makefile (WHICH): Add nios2-linux.
5961 (nios2-linux-expedite): Set.
5962 * features/nios2-cpu.xml: New.
5963 * features/nios2.xml: New.
5964 * features/nios2-linux.xml: New.
5965 * features/nios2.c: New (autogenerated).
5966 * features/nios2-linux.c: New (autogenerated).
5967 * regformats/nios2-linux.dat: New (autogenerated).
5968 * NEWS (Changes since GDB 7.6): Add new Nios II targets
5969 and commands.
5970
0892cb63
DE
59712013-05-06 Doug Evans <dje@google.com>
5972
3b7bacac
DE
5973 * symfile.c: Whitespace cleanup.
5974
0892cb63
DE
5975 * solist.h (struct target_so_ops): New member clear_so.
5976 * solib-svr4.c (svr4_clear_so): New function.
5977 (_initialize_svr4_solib): Set svr4_so_ops.clear_so.
5978 * solib.c (clear_so): Renamed from free_so_symbols.
5979 All callers updated. Call target clear_so if it exists.
5980
40501e00
TT
59812013-05-06 Tom Tromey <tromey@redhat.com>
5982
5983 * ada-lang.c (ada_value_primitive_packed_val): Don't
5984 call value_incref.
5985 * value.c (set_value_parent): Incref the new parent and decref
5986 the old parent.
5987 (value_copy, value_primitive_field): Use set_value_parent.
5988
b6807d98
TT
59892013-05-06 Tom Tromey <tromey@redhat.com>
5990
5991 * dwarf2loc.c (invalid_synthetic_pointer): Move earlier.
5992 (indirect_pieced_value): Call dwarf2_fetch_constant_bytes
5993 if needed.
5994 * dwarf2loc.h (dwarf2_fetch_constant_bytes): Declare.
5995 * dwarf2read.c (write_constant_as_bytes)
5996 (dwarf2_fetch_constant_bytes): New functions.
5997
3aef2284
TT
59982013-05-06 Tom Tromey <tromey@redhat.com>
5999
6000 * dwarf2read.c (dwarf2_const_value_data): Remove unused
6001 parameters.
6002 (dwarf2_const_value_attr): Update.
6003
66f65e2b
TT
60042013-05-06 Tom Tromey <tromey@redhat.com>
6005
6006 * somread.c (som_symfile_offsets): Add 'const' to addrs.
6007 * machoread.c (macho_symfile_offsets): Add 'const' to addrs.
6008 * xcoffread.c (xcoff_symfile_offsets): Add 'const' to addrs.
6009 Remove declaration.
6010
7919a973
TT
60112013-05-06 Tom Tromey <tromey@redhat.com>
6012
6013 * dwarf2read.c (dwarf2_const_value_attr): Use 'obstack', not
6014 objfile's obstack.
6015
a7bfba49
DE
60162013-05-06 Doug Evans <dje@google.com>
6017
3189cb12
DE
6018 * dbxread.c (process_one_symbol): Constify section_offsets parameter.
6019 * stabsread.h (process_one_symbol): Update declaration.
6020 * dwarf2read.c (dw2_relocate): Constify new_offsets, delta parameters.
6021 * elfread.c (elf_symfile_relocate_probe): Ditto.
6022 * psymtab.c (relocate_psymtabs): Ditto.
6023 * objfiles.c (objfile_relocate1): Constify new_offsets parameter.
6024 (objfile_relocate): Ditto.
6025 * objfiles.h (objfile_relocate): Update declaration.
6026 * symfile.c (relative_addr_info_to_section_offsets): Constify
6027 addrs parameter.
6028 (default_symfile_offsets): Ditto.
6029 (syms_from_objfile_1): Constify offsets parameter.
6030 (syms_from_objfile): Ditto.
6031 (symbol_file_add_with_addrs_or_offsets): Ditto.
6032 (symfile_map_offsets_to_segments): Constify data parameter.
6033 * symfile.h (struct quick_symbol_functions): Constify new_offsets,
6034 delta parameters of member relocate.
6035 (struct sym_probe_fns): Constify new_offsets,
6036 delta parameters of member sym_relocate_probe.
6037 (struct sym_fns): Constify section_addr_info parameter of member
6038 sym_offsets.
6039 (relative_addr_info_to_section_offsets): Update declaration.
6040 (default_symfile_offsets): Ditto.
6041 (syms_from_objfile): Ditto.
6042 (symfile_map_offsets_to_segments): Ditto.
6043
a7bfba49
DE
6044 * symfile.c (syms_from_objfile_1): Use correct section count when
6045 objfile->sf == NULL.
6046
5f8e0b8f
MF
60472013-05-06 Mike Frysinger <vapier@gentoo.org>
6048
6049 * common/linux-btrace.c (intel_supports_btrace): Fix indentation.
6050
ea52d893
DE
60512013-05-06 Doug Evans <dje@google.com>
6052
6053 * psympriv.h (struct partial_symtab): Augment comment for member
6054 section_offsets.
6055
4d1eb6b4
JB
60562013-05-06 Joel Brobecker <brobecker@adacore.com>
6057
6058 Reimplement shared library support on ppc-aix...
6059 * target.h (TARGET_OBJECT_AIX_LIBRARIES): New target_object enum.
6060 * features/library-list-aix.dtd: New file.
6061 * solib-aix.h, solib-aix.c: New file.
6062 * rs6000-aix-tdep.c: #include "solib.h" and "solib-aix.h".
6063 (rs6000_find_toc_address_hook): Delete.
6064 (rs6000_push_dummy_call): Rewrite code setting the TOC value.
6065 (rs6000_aix_init_osabi): Register solib_aix_so_ops.
6066 * rs6000-nat.c: Remove "xcoffsolib.h" include. Include
6067 "xml-utils.h".
6068 (map_vmap, vmap_exec, vmap_ldinfo, add_vmap, objfile_symbol_add)
6069 (vmap_symtab, fixup_breakpoints): Delete.
6070 (rs6000_xfer_shared_libraries): New function.
6071 (rs6000_xfer_partial): Add TARGET_OBJECT_AIX_LIBRARIES handling.
6072 (vmap_secs, bss_data_overlap, vmap_add_symbols): Delete.
6073 (xcoff_relocate_symtab, xcoff_relocate_core): Delete.
6074 (rs6000_ptrace_ldinfo, rs6000_core_ldinfo)
6075 (rs6000_xfer_shared_library): New function.
6076 (find_toc_address): Delete.
6077 (_initialize_rs6000_nat): Do not set rs6000_find_toc_address_hook.
6078 * rs6000-tdep.h (rs6000_find_toc_address_hook): Remove.
6079 * xcoffread.c (record_minimal_symbol): Reloate symbol address
6080 before creating minimal symbol. Adjust function description
6081 accordingly.
6082 (scan_xcoff_symtab): Replace call to
6083 prim_record_minimal_symbol_and_info by call to
6084 record_minimal_symbol.
6085 (xcoff_symfile_offsets): Reimplement mostly as a wrapper
6086 around default_symfile_offsets.
6087 * configure.tgt: Add solib-aix.o to gdb_target_obs for
6088 powerpc-aix targets.
6089 * config/rs6000/nm-rs6000.h: Delete.
6090 * config/powerpc/aix.mh (NAT_FILE): Delete.
6091 (NATDEPFILES): Remove xcoffsolib.o.
6092 * Makefile.in (XMLFILES): Add library-list-aix.dtd.
6093 (ALL_TARGET_OBS): Add solib-aix.o.
6094 (HFILES_NO_SRCDIR): Remove xcoffsolib.h and
6095 config/rs6000/nm-rs6000.h. Add solib-aix.h.
6096 (ALLDEPFILES): Add solib-aix.c. Remove xcoffsolib.c.
6097 * xcoffsolib.h, xcoffsolib.c: Delete.
6098
6099 * solib.c (reload_shared_libraries): Remove reference to
6100 SOLIB_CREATE_INFERIOR_HOOK.
6101 * breakpoint.c (handle_solib_event): Remove reference to SOLIB_ADD.
6102 (disable_breakpoints_in_shlibs): Remove reference to PC_SOLIB.
6103 (momentary_bkpt_re_set): Replace SOLIB_ADD by solib_add in
6104 comment.
6105 * corelow.c (deprecated_core_resize_section_table): Delete.
6106 * exec.c: Remove include of xcoffsolib.h".
6107 (map_vmap, vmap): Delete.
6108 (exec_close_1): Remove references to vmap.
6109 (exec_file_attach): Remove vmap handling code, and reference
6110 to DEPRECATED_IBM6000_TARGET.
6111 (bfdsec_to_vmap): Delete.
6112 (exec_files_info): Remove block of code handling VMAP.
6113 * infcmd.c (post_create_inferior): Remove reference to
6114 SOLIB_CREATE_INFERIOR_HOOK and SOLIB_ADD.
6115 * infrun.c (follow_exec): Remove reference to
6116 SOLIB_CREATE_INFERIOR_HOOK.
6117 * stack.c (print_frame): Remove reference to PC_SOLIB.
6118 * solib-dsbt.c (dsbt_current_sos): Adjust comment.
6119 (dsbt_relocate_main_executable): Likewise.
6120 * solib-frv.c (frv_current_sos): Likewise.
6121
0c4f667c
JB
61222013-05-06 Joel Brobecker <brobecker@adacore.com>
6123
6124 * sol-thread.c (rw_common): Cast BUF to "gdb_byte *" in calls
6125 to target_write_memory and target_read_memory.
6126
726ce67c
JB
61272013-05-06 Joel Brobecker <brobecker@adacore.com>
6128
6129 * darwin-nat.c (darwin_setup_fake_stop_event): New function.
6130 (darwin_attach): Adjust using darwin_setup_fake_stop_event.
6131
c8c9911f
JB
61322013-05-06 Joel Brobecker <brobecker@adacore.com>
6133
6134 * darwin-nat.c: Replace all "%x" instances in format strings
6135 into "0x%x" throughout.
6136
fda184b6
JB
61372013-05-06 Joel Brobecker <brobecker@adacore.com>
6138
6139 * darwin-nat.c (darwin_mourn_inferior): Replace call to
6140 gdb_assert by call to MACH_CHECK_ERROR.
6141 (darwin_attach_pid): Raise an error rather than a failed
6142 assertion when various system calls failed. Report a warning
6143 instead of raising a failed assertion when PREV_NOT is not NULL
6144 after call to mach_port_request_notification.
6145 (darwin_ptrace_me): Raise an error rather than a failed
6146 assertion when read returns nonzero.
6147
d1d69afb
JB
61482013-05-06 Joel Brobecker <brobecker@adacore.com>
6149
6150 * amd64-darwin-tdep.c: Remove #include "gdb_assert.h".
6151
dc90b24d
JK
61522013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
6153
6154 * cleanups.c (restore_my_cleanups): New gdb_assert for SENTINEL_CLEANUP.
6155
faab9922
JK
61562013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
6157
6158 * event-top.c (display_gdb_prompt): Call missing do_cleanups.
6159 * infcmd.c (get_return_value) <!stop_regs>: Do not overwrite CLEANUP.
6160 * symfile.c (symfile_bfd_open): New variable back_to. Do not leave
6161 a stale cleanup. Fix double free of NAME.
6162
e0ea48a0
EZ
61632013-05-04 Eli Zaretskii <eliz@gnu.org>
6164
6165 * windows-nat.c (windows_delete_thread): Accept an additional
6166 argument, the thread's exit code, and announce thread death when
6167 print_thread_events is non-zero and we are deleting a thread that
6168 is not the main thread.
6169 (get_windows_debug_event): Pass thread exit code to
6170 windows_delete_thread.
6171
83b2706a
KB
61722013-05-03 Kevin Buettner <kevinb@redhat.com>
6173
6174 * v850-tdep.c (elf-bfd.h, elf/v850.h): Include.
6175 (R_149_REGNUM, E_NUM_OF_V850E2_REGS, E_SELID_1_R0_REGNUM)
6176 (E_SELID_1_R31_REGNUM, E_SELID_2_R0_REGNUM, E_SELID_2_R31_REGNUM)
6177 (E_SELID_3_R0_REGNUM, E_SELID_3_R31_REGNUM, E_SELID_4_R0_REGNUM)
6178 (E_SELID_4_R31_REGNUM, E_SELID_5_R0_REGNUM, E_SELID_5_R31_REGNUM)
6179 (E_SELID_6_R0_REGNUM, E_SELID_6_R31_REGNUM, E_SELID_7_R0_REGNUM, E_SELID_7_R31_REGNUM)
6180 (E_VR0_REGNUM, E_VR31_REGNUM, E_NUM_OF_V850E3V5_REGS): Define.
6181 (v850_abi, V850_ABI_GCC, V850_ABI_RH850): New enum and constants.
6182 (gdbarch_tdep): New struct.
6183 (v850e2_register_name): Use E_NUM_OF_V850E2_REGS instead of
6184 E_NUM_REGS.
6185 (v850e3v5_register_name): New function.
6186 (v850_register_type): v850e3v5 vector registers are 64-bits wide.
6187 (v850_use_struct_convention): Add `gdbarch' parameter. Add new
6188 code handling the struct return conventions for the RH850 ABI.
6189 Update all callers.
6190 (v850_eight_byte_align_p): New function.
6191 (v850_push_call_dummy): Push structs by value, not by reference
6192 for the RH850 ABI. Add support for eight byte alignment.
6193 (v850_dbtrap_breakpoint_from_pc): New function.
6194 (v850_gdbarch_init): Add ABI detection code. Register
6195 v850e3v5_register_name for the v850e3v5 architecture. Set the
6196 number of registers for v850e3v5. Register
6197 v850_dbtrap_breakpoint_from_pc as appropriate.
6198 (_initialize_gdbarch_init): Registration bfd_arch_v850_rh850.
6199
d445b2f6
DE
62002013-05-03 Doug Evans <dje@google.com>
6201
6202 * objfiles.c (objfile_relocate): Use gdb_bfd_count_sections instead
6203 of bfd_count_sections.
6204 * solib-target.c (solib_target_relocate_section_addresses): Ditto.
6205 * symfile.c (default_symfile_offsets): Ditto.
6206 (syms_from_objfile_1): Ditto. Make dummy addrs list an array of
6207 one entry, not bfd_count_sections entries.
6208
b3ce41ea
KB
62092013-05-03 Kevin Buettner <kevinb@redhat.com>
6210
6211 * rl78-tdep.c (rl78_register_reggroup_p): Include SP in the
6212 `save' and `restore' register groups. Don't include SPL
6213 or SPH in these groups.
6214 (rl78_dwarf_reg_to_regnum): Adjust mapping for
6215 RL78_PC_REGNUM. Add mappings for RL78_PSW_REGNUM,
6216 RL78_ES_REGNUM, and RL78_CS_REGNUM.
6217 (rl78_gdbarch_init): Set `dwarf2_addr_size' to 4. Invoke
6218 dwarf2_append_unwinders().
6219
96f7d3f1
PW
62202013-05-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6221
6222 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Do not
6223 ignore SIGINT and SIGTRAP in case these internal signals are
6224 caught explicitely.
6225
b9dd1947
JB
62262013-05-01 Joel Brobecker <brobecker@adacore.com>
6227
6228 * darwin-nat.c (darwin_read_write_inferior): Change types
6229 of parameters rdaddr and wraddr to "gdb_byte *". Change type
6230 of copy_count to "mach_msg_type_number_t".
6231 (darwin_read_dyld_info): Change type of parameter
6232 rdaddr to "gdb_byte *".
6233
4ca18a63
JB
62342013-05-01 Joel Brobecker <brobecker@adacore.com>
6235
6236 * solib-ia64-hpux.c (ia64_hpux_read_dynamic_info): Change cast
6237 of &info->load_map from "char *" to "gdb_byte *".
6238
2b692d32
JB
62392013-05-01 Joel Brobecker <brobecker@adacore.com>
6240
6241 * ia64-tdep.c (ia64_access_fpreg): Change cast of val
6242 from "char *" to "gdb_byte *".
6243 (ia64_access_rse_fpreg, ia64_access_mem): Likewise.
6244
a98c29a0
DE
62452013-04-30 Doug Evans <dje@google.com>
6246
6a506a2d
DE
6247 * dwarf2read.c (lookup_dwo_unit): Return NULL if DWO not found.
6248 (init_cutu_and_read_dies): Flag a complaint, not error, for bad
6249 DWO stub. If DWO isn't found, just use stub.
6250 (lookup_dwo_cutu): Don't try DWO if there's a DWP file.
6251
a98c29a0
DE
6252 * dwarf2read.c (dw2_find_symbol_file): Initialize filename before
6253 calling init_cutu_and_read_dies.
6254
f92b06da
WT
62552013-03-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
6256
6257 * target-descriptions.c (maint_print_c_tdesc_cmd):
6258 Add case to parse structures as register types and
6259 bitfields.
6260
95eebdcc
WT
62612013-04-30 Walfred Tedeschi <walfred.tedeschi@intel.com>
6262
6263 * MAINTAINERS (Write After Approval): Add myself to the list.
6264
019c1128
JB
62652013-04-30 Joel Brobecker <brobecker@adacore.com>
6266
6267 * sol-thread.c (rw_common): Change type of parameter "buf"
6268 to "gdb_byte *".
6269 (ps_pdwrite, ps_ptwrite): Cast parameter "buf" in call to
6270 rw_common to "gdb_byte *" instead of "char *".
6271
5812197c
JB
62722013-04-30 Joel Brobecker <brobecker@adacore.com>
6273
6274 * sol-thread.c (info_cb) [ti.ti_startfunc != 0]: Change type
6275 of local variable msym to const struct bound_minimal_symbol.
6276 Adjust use accordingly.
6277 [ti.ti_state == TD_THR_SLEEP]: Likewise.
6278
ecccb813
TS
62792013-04-30 Samuel Thibault <samuel.thibault@gnu.org>
6280
6281 * i386gnu-nat.c (CREG_OFFSET): New macro.
6282 (creg_offset): New array.
6283 (CREG_ADDR): Use creg_offset instead of reg_offset.
6284
f1d02dd4 62852013-04-30 Joel Brobecker <brobecker@adacore.com>
54746424
JB
6286
6287 * mep-tdep.c (mep_write_pc): Delete.
6288 (mep_gdbarch_init): Remove call to set_gdbarch_write_pc.
6289 Add call to set_gdbarch_pc_regnum.
6290
f1d02dd4 62912013-04-30 Joel Brobecker <brobecker@adacore.com>
01da98f9
JB
6292
6293 * common/filestuff.c: Replace #include <dirent.h> by
6294 #include "gdb_dirent.h".
6295
f1d02dd4 62962013-04-30 Joel Brobecker <brobecker@adacore.com>
366c6766
JB
6297
6298 * common/filestuff.c: Replace #include <sys/stat.h> by
6299 #include "gdb_stat.h".
6300
b385a60d
PM
63012013-04-29 Pierre Muller <muller@sourceware.org>
6302
6303 * dwarf2read.c (handle_DW_AT_stmt_list): Avoid ARI warning for
6304 editCase function rule.
6305 (get_DW_AT_signature_type): Likewise.
6306
d27b54ad
JB
63072013-04-29 Joel Brobecker <brobecker@adacore.com>
6308
6309 * m32r-tdep.c (m32r_write_pc): Delete.
6310 (m32r_gdbarch_init): Remove call to set_gdbarch_write_pc.
6311 Add call to set_gdbarch_pc_regnum.
6312
47d21dc5
PM
63132013-04-29 Pierre Muller <muller@sourceware.org>
6314
6315 * ./contrib/ari/gdb_ari.sh (editCase rule): Fix spelling error.
6316
9056882e
JB
63172013-04-29 Joel Brobecker <brobecker@adacore.com>
6318
6319 * dwarf2read.c (get_DW_AT_signature_type): Add ARI marker.
6320
7ee4732a
YQ
63212013-04-28 Yao Qi <yao@codesourcery.com>
6322
6323 * solib-dsbt.c (fetch_loadmap): Re-indent.
6324 (displacement_from_map, enable_break2): Likewise.
6325 (dsbt_relocate_section_addresses): Likewise.
6326
2260af53 63272013-04-26 Joel Brobecker <brobecker@adacore.com>
6328
6329 GDB 7.6 released.
6330
ff546935
TT
63312013-04-25 Andreas Kaufmann <Andreas.Kaufmann@synopsys.com>
6332
6333 PR corefiles/14983:
6334 * dwarf2read.c (process_full_comp_unit): Always create a static
6335 block.
6336
40fb6c5e
HZ
63372013-04-25 Hui Zhu <hui@codesourcery.com>
6338
6339 * breakpoint.c (build_target_command_list): Change loc->cond_bytecode
6340 to loc->cmd_bytecode.
6341
74e04d1c
DE
63422013-04-24 Doug Evans <dje@google.com>
6343
6344 * dwarf2read.c (setup_type_unit_groups): Fix comment.
6345
3cf62c1d
KS
63462013-04-22 Keith Seitz <keiths@redhat.com>
6347
6348 * tracepoint.c (trace_save): Call the writer's start method.
6349
bf9e4d0c
MB
63502013-04-24 Muhammad Bilal <mbilal@codesourcery.com>
6351
6352 PR gdb/10462
6353 * cli/cli-decode.c (lookup_command): Show an error if there is no space
6354 before argument.
6355
5d71132c
TT
63562013-04-23 Tom Tromey <tromey@redhat.com>
6357
6358 * common/filestuff.c: Check USE_WIN32API before including
6359 sys/socket.h.
6360 (HAVE_F_GETFD): New define.
6361 (mark_cloexec): Check HAVE_F_GETFD.
6362 (gdb_open_cloexec): Change 'mode' to unsigned long.
6363 (gdb_socketpair_cloexec): Check HAVE_SOCKETPAIR.
6364 (gdb_pipe_cloexec): Check HAVE_PIPE.
6365 * common/filestuff.h (gdb_open_cloexec): Change 'mode' to unsigned
6366 long.
6367
a11cfd87
HZ
63682013-04-23 Hui Zhu <hui@codesourcery.com>
6369
6370 PR gdb/15293
a11cfd87
HZ
6371 * breakpoint.c (bpstat_what): Add BPSTAT_WHAT_SINGLE to bp_dprintf.
6372
2d9442cc
HZ
63732013-04-23 Hui Zhu <hui@codesourcery.com>
6374
6375 PR gdb/15165
2d9442cc
HZ
6376 * breakpoint.c (dprintf_print_recreate): New.
6377 (save_breakpoints): Let it not save dprintf commands.
6378 (initialize_breakpoint_ops): Set dprintf_print_recreate.
6379
614c279d
TT
63802013-04-22 Tom Tromey <tromey@redhat.com>
6381
6382 PR gdb/7912:
6383 * Makefile.in (SFILES): Add filestuff.c
6384 (COMMON_OBS): Add filestuff.o.
6385 (filestuff.o): New target.
6386 * auto-load.c (auto_load_objfile_script_1): Use
6387 gdb_fopen_cloexec.
6388 * auxv.c (procfs_xfer_auxv): Use gdb_open_cloexec.
6389 * cli/cli-cmds.c (shell_escape): Call close_most_fds.
6390 * cli/cli-dump.c (fopen_with_cleanup): Use gdb_fopen_cloexec.
6391 * common/agent.c (gdb_connect_sync_socket): Use
6392 gdb_socket_cloexec.
6393 * common/filestuff.c: New file.
6394 * common/filestuff.h: New file.
6395 * common/linux-osdata.c (linux_common_core_of_thread)
6396 (command_from_pid, commandline_from_pid, print_source_lines)
6397 (linux_xfer_osdata_shm, linux_xfer_osdata_sem)
6398 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Use
6399 gdb_fopen_cloexec.
6400 * common/linux-procfs.c (linux_proc_get_int)
6401 (linux_proc_pid_has_state): Use gdb_fopen_cloexec.
6402 * config.in, configure: Rebuild.
6403 * configure.ac: Don't check for sys/socket.h. Check for
6404 fdwalk, pipe2.
6405 * corelow.c (core_open): Use gdb_open_cloexec.
6406 * dwarf2read.c (write_psymtabs_to_index): Use gdb_fopen_cloexec.
6407 * fork-child.c (fork_inferior): Call close_most_fds.
6408 * gdb_bfd.c (gdb_bfd_open): Use gdb_open_cloexec.
6409 * inf-child.c (inf_child_fileio_readlink): Use gdb_open_cloexec.
6410 * linux-nat.c (linux_nat_thread_name, linux_proc_pending_signals):
6411 Use gdb_fopen_cloexec.
6412 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use
6413 gdb_open_cloexec.
6414 (linux_async_pipe): Use gdb_pipe_cloexec.
6415 * remote-fileio.c (remote_fileio_func_open): Use
6416 gdb_open_cloexec.
6417 * remote.c (remote_file_put, remote_file_get): Use
6418 gdb_fopen_cloexec.
6419 * ser-pipe.c (pipe_open): Use gdb_socketpair_cloexec,
6420 close_most_fds.
6421 * ser-tcp.c (net_open): Use gdb_socket_cloexec.
6422 * ser-unix.c (hardwire_open): Use gdb_open_cloexec.
6423 * solib.c (solib_find): Use gdb_open_cloexec.
6424 * source.c (openp, find_and_open_source): Use gdb_open_cloexec.
6425 * tracepoint.c (tfile_start): Use gdb_fopen_cloexec.
6426 (tfile_open): Use gdb_open_cloexec.
6427 * tui/tui-io.c (tui_initialize_io): Use gdb_pipe_cloexec.
6428 * ui-file.c (gdb_fopen): Use gdb_fopen_cloexec.
6429 * xml-support.c (xml_fetch_content_from_file): Use
6430 gdb_fopen_cloexec.
6431 * main.c (captured_main): Call notice_open_fds.
6432
5fda2332
EBM
64332013-04-22 Edjunior Machado <emachado@linux.vnet.ibm.com>
6434
6435 * remote-sim.c (dump_mem): Change the type of 'buf' parameter from
6436 'char *' to 'gdb_byte *'.
6437 (gdbsim_store_register): Change the type of 'tmp' from 'char' to
6438 'gdb_byte'.
6439
eb6c553b
YQ
64402013-04-22 Yao Qi <yao@codesourcery.com>
6441
6442 * infrun.c: Fix typo in comment.
6443
9991b207
SDJ
64442013-04-22 Andrew Haley <aph@redhat.com>
6445
6446 * arm-tdep.c (BranchDest): Cast result as "unsigned long",
6447 instead of "long".
6448
8b4833e3
YQ
64492013-04-20 Yao Qi <yao@codesourcery.com>
6450
6451 * ctf.c (ctf_fetch_registers): Change the type of 'regs' from
6452 'char *' to 'gdb_byte *'. Cast the return value of
6453 'bt_ctf_get_char_array' to 'gdb_byte *'.
6454
bd3f3b55
PA
64552013-04-19 Pedro Alves <palves@redhat.com>
6456
6457 * configure.ac (build_warnings): Replace -Wno-pointer-sign with
6458 -Wpointer-sign.
6459 * configure: Regenerate.
6460
c49e7f76
PA
64612013-04-19 Pedro Alves <palves@redhat.com>
6462
6463 * ser-tcp.c (net_read_prim): Cast second argument to recv to
6464 'void *'.
6465
12ff8552
PA
64662013-04-19 Pedro Alves <palves@redhat.com>
6467
6468 * monitor.c (monitor_write_memory, monitor_write_memory_bytes):
6469 Change type of 'myaddr' parameter to gdb_byte pointer.
6470 (monitor_write_memory_longlongs): Likewise. Cast 'myaddr' pointer
6471 to 'long long' pointer instead of to 'unsigned long long'.
6472 (monitor_write_memory_block, monitor_read_memory_single)
6473 (monitor_read_memory): Change type of 'myaddr' parameter to
6474 gdb_byte pointer.
6475
9c37696b
PA
64762013-04-19 Pedro Alves <palves@redhat.com>
6477
6478 * record.c (validate_history_size): Make parameter 'setting'
6479 unsigned.
6480
a398505b
PA
64812013-04-19 Pedro Alves <palves@redhat.com>
6482
6483 * ctf.c (ctf_write_uploaded_tsv, ctf_write_uploaded_tp): Add casts
6484 to 'gdb_byte *'.
6485
9f8afa72
PA
64862013-04-19 Pedro Alves <palves@redhat.com>
6487
6488 * cp-valprint.c (cp_print_class_member): Change type of 'fieldno'
6489 local to int.
6490
c714b426
PA
64912013-04-19 Pedro Alves <palves@redhat.com>
6492
6493 * ada-lang.c (print_it_exception): Add cast to gdb_byte *.
6494 * ada-tasks.c (read_fat_string_value): Likewise.
6495
507a579c
PA
64962013-04-19 Pedro Alves <palves@redhat.com>
6497
6498 * dwarf2-frame.c (execute_cfa_program): Make 'bytes_read' local
6499 unsigned. Pass 'tmp' to safe_read_uleb128 instead of the signed
6500 'offset', and adjust.
6501
f9d83a0b
PA
65022013-04-19 Pedro Alves <palves@redhat.com>
6503
6504 * dwarf2read.c (dwarf2_get_dwz_file): Add cast to const char *.
6505 (read_index_from_section): Add cast to 'char *'.
6506
745eb4fd
PA
65072013-04-19 Pedro Alves <palves@redhat.com>
6508
6509 * xcoffread.c (xcoff_initial_scan): Add cast to 'char *'.
6510
db5be46f
PA
65112013-04-19 Pedro Alves <palves@redhat.com>
6512
6513 * coff-pe-read.c (read_pe_exported_syms): Handle strings as char.
6514
0f928d68
PA
65152013-04-19 Pedro Alves <palves@redhat.com>
6516
6517 * record-full.c (record_full_get_bookmark): Change local 'ret'
6518 type to char * and add cast to gdb_byte *.
6519 (record_full_goto_bookmark): Handle 'bookmark' argument as a
6520 string.
6521 * reverse.c (goto_bookmark_command): Add casts to gdb_byte *.
6522
89f6d837
PA
65232013-04-19 Pedro Alves <palves@redhat.com>
6524
6525 * python/py-inferior.c (infpy_write_memory): Add cast to gdb_byte
6526 * python/py-prettyprint.c (print_string_repr): Change type of
6527 'output' local to char *. Add cast to gdb_byte * in
6528 LA_PRINT_STRING call.
6529 (print_children): Change type of 'output' local to char *.
6530 * python/py-value.c (valpy_string): Add cast to const char * in
6531 PyUnicode_Decode call.
6532
ce6ec7d8
PA
65332013-04-19 Pedro Alves <palves@redhat.com>
6534
6535 * remote-mips.c (mips_cksum): Rename 'data' parameter to 'datastr'
6536 and change its type to 'const char *'. Adjust.
6537 (mips_send_packet): Add cast to 'char *', and remove cast to
6538 'unsigned char *'.
6539 (mips_receive_packet): Remove cast to 'unsigned char *'.
6540 (mips_load_srec): Use bfd_byte.
6541 (pmon_makeb64, pmon_zeroset): Make 'chksum' parameter unsigned.
6542 (pmon_checkset): Make 'value' parameter unsigned.
6543
fda0389f
PA
65442013-04-19 Pedro Alves <palves@redhat.com>
6545
6546 * common/agent.c (agent_run_command): Add cast to gdb_byte *.
6547
bc20a4af
PA
65482013-04-19 Pedro Alves <palves@redhat.com>
6549
6550 * remote.c (remote_write_bytes_aux, compare_sections_command)
6551 (remote_read_qxfer)
6552 (remote_search_memory, remote_hostio_pwrite, remote_hostio_pread)
6553 (remote_hostio_readlink, remote_bfd_iovec_pread)
6554 (remote_set_trace_notes): Use gdb_byte when RSP buffer is used as
6555 binary buffer, and char when buffer is used as string.
6556 * tracepoint.c (encode_source_string, tfile_write_uploaded_tp)
6557 (trace_save, tfile_open, traceframe_walk_blocks)
6558 (tfile_fetch_registers): Likewise.
6559
c628b528
PA
65602013-04-19 Pedro Alves <palves@redhat.com>
6561
6562 * ser-base.c (ser_base_write): Change prototype -- take 'void *'
6563 buffer and size_t size. Adjust.
6564 * ser-base.h (ser_base_write): Adjust.
6565 * ser-go32.c (cnts): Change type to size_t.
6566 (dos_write): Change prototype -- take 'void *'
6567 buffer and size_t size. Adjust.
6568 (dos_info): Print elements of 'cnts' as unsigned long.
6569 * serial.c (serial_write): Likewise.
6570 * serial.h (serial_write): Adjust.
6571 (struct serial_ops) <write>: Change prototype -- take 'void *'
6572 buffer and size_t size. Adjust.
6573
51a5cd90
PA
65742013-04-19 Pedro Alves <palves@redhat.com>
6575
6576 * c-lang.c (evaluate_subexp_c): Cast result of obstack_base to
6577 gdb_byte *.
6578 * linux-tdep.c (linux_make_mappings_corefile_notes): Likewise.
6579
a9933661
PA
65802013-04-19 Pedro Alves <palves@redhat.com>
6581
6582 * alpha-tdep.c (alpha_extract_return_value): Use
6583 regcache_cooked_read_unsigned to read 'v0'.
6584
19afdd07
PA
65852013-04-19 Pedro Alves <palves@redhat.com>
6586
6587 * xtensa-tdep.c (execute_l32e, execute_s32e): Change type of
6588 parameters 'at', 'as' and 'offset' to uint32_t.
6589
96b32e50
PA
65902013-04-19 Pedro Alves <palves@redhat.com>
6591
6592 * aarch64-tdep.c (aarch64_analyze_prologue): Change type of local
6593 'is64' to signed 'int'.
6594
eb1bd1fb
PA
65952013-04-19 Pedro Alves <palves@redhat.com>
6596
6597 * s390-tdep.c (is_rs, is_rsy, is_rx, is_rxy): Change type of 'd2'
6598 parameter to int *.
6599
463920bf
PA
66002013-04-19 Pedro Alves <palves@redhat.com>
6601
6602 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Change local
6603 'insnbuf' buffer type to unsigned int[].
6604
70242eb1
PA
66052013-04-19 Pedro Alves <palves@redhat.com>
6606
6607 * mips-tdep.c (mips_read_pc): Change local 'pc' type to LONGEST.
6608
9d1dd0e2
PA
66092013-04-19 Pedro Alves <palves@redhat.com>
6610
6611 * mep-tdep.c (mep_get_insn): Change 'insn' parameter type to
6612 unsigned long *.
6613
44096aee
PA
66142013-04-19 Pedro Alves <palves@redhat.com>
6615
6616 * alpha-tdep.c (heuristic_fence_post): Change type to int.
6617 (alpha_heuristic_proc_start): Adjust to check -1 instead of
6618 UINT_MAX.
6619 * mips-tdep.c (heuristic_fence_post): Change type to int.
6620 (heuristic_proc_start): Adjust to check -1 instead of UINT_MAX.
6621
e4286e57
PA
66222013-04-19 Pedro Alves <palves@redhat.com>
6623
6624 * cris-tdep.c (usr_cmd_cris_version): Make unsigned.
6625 (struct gdbarch_tdep) <cris_version>: Make unsigned.
6626 (cris_spec_reg_applicable, cris_gdbarch_init): Adjust locals.
6627
001f13d8
PA
66282013-04-19 Pedro Alves <palves@redhat.com>
6629
6630 * avr-tdep.c (avr_io_reg_read_command): New local 'bufstr'. Use
6631 it to get a string view of the byte buffer.
6632 * i386-cygwin-tdep.c (core_process_module_section): Change local 'buf'
6633 type to gdb_byte *. Adjust.
6634 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full):
6635 Change local to char *.
6636 * solib-darwin.c (find_program_interpreter): Change return type to
6637 char *. Adjust.
6638 (darwin_solib_get_all_image_info_addr_at_init): Adjust.
6639 * solib-dsbt.c (enable_break2): Change local 'buf' to char *.
6640 * solib-frv.c (enable_break2): Change local 'buf' to char *.
6641 * solib-spu.c (spu_current_sos): Add gdb_byte * cast.
6642 * solib-svr4.c (find_program_interpreter): Change return type to
6643 char *. Adjust.
6644 (enable_break): Change local 'interp_name' to char *.
6645 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
6646 * spu-tdep.c (spu_pseudo_register_read_spu): Add cast to 'char *'.
6647 (spu_pseudo_register_write_spu): Use char for string buffer.
6648 Adjust.
6649 (info_spu_event_command, info_spu_signal_command): Add casts to
6650 'char *'.
6651
948f8e3d
PA
66522013-04-19 Pedro Alves <palves@redhat.com>
6653
6654 * aarch64-tdep.c (aarch64_default_breakpoint): Change type to
6655 gdb_byte[].
6656 (aarch64_breakpoint_from_pc): Change return type to gdb_byte *.
6657 * ada-lang.c (ada_value_assign): Use gdb_byte.
6658 * alphanbsd-tdep.c (sigtramp_retcode): Change type to gdb_byte[].
6659 (alphanbsd_sigtramp_offset): Use gdb_byte.
6660 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint)
6661 (arm_linux_arm_be_breakpoint, eabi_linux_arm_le_breakpoint)
6662 (eabi_linux_arm_be_breakpoint, arm_linux_thumb_be_breakpoint)
6663 (arm_linux_thumb_le_breakpoint, arm_linux_thumb2_be_breakpoint)
6664 (arm_linux_thumb2_le_breakpoint): Change type to gdb_byte[].
6665 * arm-tdep.c (arm_stub_unwind_sniffer)
6666 (arm_displaced_init_closure): Use gdb_byte.
6667 (arm_default_arm_le_breakpoint, arm_default_arm_be_breakpoint)
6668 (arm_default_thumb_le_breakpoint)
6669 (arm_default_thumb_be_breakpoint): Change type to gdb_byte[].
6670 * arm-tdep.h (struct gdbarch_tdep) <arm_breakpoint,
6671 thumb_breakpoint, thumb2_breakpoint>: Change type to gdb_byte *.
6672 * arm-wince-tdep.c (arm_wince_le_breakpoint)
6673 (arm_wince_thumb_le_breakpoint): Change type to gdb_byte[].
6674 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint)
6675 (arm_nbsd_arm_be_breakpoint, arm_nbsd_thumb_le_breakpoint)
6676 (arm_nbsd_thumb_be_breakpoint): Change type to gdb_byte[].
6677 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint)
6678 (arm_obsd_thumb_be_breakpoint): Change type to gdb_byte[].
6679 * cris-tdep.c (push_stack_item, cris_push_dummy_call)
6680 (cris_store_return_value, cris_extract_return_value): Use
6681 gdb_byte.
6682 (constraint): Change type of parameter to char * from signed
6683 char*. Use gdb_byte.
6684 * dwarf2loc.c (read_pieced_value, write_pieced_value): Change type
6685 of local buffer to gdb_byte *.
6686 * dwarf2read.c (read_index_from_section): Use gdb_byte.
6687 (create_dwp_hash_table): Change type of locals to gdb_byte *.
6688 (add_address_entry): Change type of local buffer to gdb_byte[].
6689 * frv-tdep.c (frv_adjust_breakpoint_address, find_func_descr)
6690 (frv_push_dummy_call): Use gdb_byte.
6691 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code)
6692 (hppa_hpux_supply_ss_fpblock, hppa_hpux_supply_ss_wide)
6693 (hppa_hpux_supply_save_state): Use gdb_byte.
6694 * hppa-tdep.c (hppa32_push_dummy_call)
6695 (hppa64_convert_code_addr_to_fptr): Use gdb_byte.
6696 * ia64-tdep.c (extract_bit_field, replace_bit_field)
6697 (slotN_contents, replace_slotN_contents): Change type of parameter
6698 to gdb_byte *.
6699 (fetch_instruction, ia64_pseudo_register_write)
6700 (ia64_register_to_value, ia64_value_to_register)
6701 (ia64_extract_return_value, ia64_store_return_value)
6702 (ia64_push_dummy_call): Use gdb_byte.
6703 * m32c-tdep.c (m32c_return_value): Remove cast.
6704 * m68hc11-tdep.c (m68hc11_pseudo_register_write)
6705 (m68hc11_push_dummy_call, m68hc11_store_return_value): Use
6706 gdb_byte.
6707 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use gdb_byte.
6708 * mn10300-tdep.c (mn10300_store_return_value)
6709 (mn10300_breakpoint_from_pc, mn10300_push_dummy_call): Use
6710 gdb_byte.
6711 * moxie-tdep.c (moxie_process_readu): Use gdb_byte.
6712 (moxie_process_record): Remove casts.
6713 * ppc-ravenscar-thread.c (supply_register_at_address)
6714 (ppc_ravenscar_generic_store_registers): Use gdb_byte.
6715 * ravenscar-thread.c (get_running_thread_id): Use gdb_byte.
6716 * remote-m32r-sdi.c (m32r_fetch_register): Use gdb_byte.
6717 * remote-mips.c (mips_xfer_memory): Use gdb_byte.
6718 * remote.c (compare_sections_command): Use gdb_byte.
6719 * score-tdep.c (score7_free_memblock): Change type of parameter to
6720 gdb_byte *.
6721 * sh-tdep.c (sh_justify_value_in_reg): Change return type to
6722 gdb_byte *. Use gdb_byte.
6723 (sh_push_dummy_call_fpu): Use gdb_byte.
6724 (sh_extract_return_value_nofpu, sh_extract_return_value_fpu)
6725 (sh_store_return_value_nofpu, sh_store_return_value_fpu)
6726 (sh_register_convert_to_virtual, sh_register_convert_to_raw):
6727 Change parameter type to 'gdb_byte *'. Use gdb_byte.
6728 (sh_pseudo_register_read, sh_pseudo_register_write): Use gdb_byte.
6729 * sh64-tdep.c (sh64_push_dummy_call): Use gdb_byte.
6730 (sh64_store_return_value, sh64_register_convert_to_virtual):
6731 Change parameter type to 'gdb_byte *'. Use gdb_byte.
6732 (sh64_pseudo_register_write): Use gdb_byte.
6733 * solib-darwin.c (darwin_current_sos): Add casts to 'gdb_byte *'.
6734 * solib-irix.c (fetch_lm_info): Likewise. Use gdb_byte for byte
6735 buffer.
6736 (irix_current_sos): Use gdb_byte.
6737 * solib-som.c (som_current_sos): Use gdb_byte.
6738 * sparc-ravenscar-thread.c (supply_register_at_address)
6739 (sparc_ravenscar_generic_store_registers): Use gdb_byte.
6740 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
6741 * spu-tdep.c (spu_get_overlay_table): Use gdb_byte.
6742 * tic6x-tdep.c (tic6x_breakpoint_from_pc): Change return type to
6743 'gdb_byte *'.
6744 * tic6x-tdep.h (struct gdbarch_tdep) <breakpoint>: Change type to
6745 'gdb_byte *'.
6746 * tracepoint.c (tfile_fetch_registers): Use gdb_byte.
6747 * xstormy16-tdep.c (xstormy16_extract_return_value)
6748 (xstormy16_store_return_value): Change parameter type to
6749 'gdb_byte *'. Adjust.
6750 (xstormy16_push_dummy_call): Use gdb_byte.
6751 * xtensa-tdep.c (xtensa_scan_prologue, call0_ret)
6752 (call0_analyze_prologue, execute_code): Use gdb_byte.
6753
433730c9
PA
67542013-04-19 Vladimir Kargov <kargov@gmail.com>
6755 Pedro Alves <palves@redhat.com>
6756
6757 * i387-tdep.c (i387_print_float_info): Use gdb_byte for pointer to
6758 value contents.
6759
ac9ec31b
DE
67602013-04-17 Doug Evans <dje@google.com>
6761
6762 * dwarf2read.c (struct signatured_type): New member type.
6763 (struct attribute): Replace member signatured_type with signature.
6764 (DW_SIGNATURE): Replaces DW_SIGNATURE_TYPE.
6765 (read_call_site_scope): Call follow_die_ref instead of
6766 follow_die_ref_or_sig.
6767 (read_structure_type): Rewrite handling of signatured types.
6768 (read_enumeration_type): Ditto.
6769 (read_attribute_value): Update.
6770 (build_error_marker_type): New function.
6771 (lookup_die_type): Add assert. Rewrite handling of signatured types.
6772 Don't call error for bad types, just build an error marker type.
6773 (dump_die_shallow): Update.
6774 (follow_die_sig_1): Renamed from follow_die_sig.
6775 Don't call error for bad types, instead return NULL.
6776 (follow_die_sig): New function.
6777 (get_signatured_type, get_DW_AT_signature_type): New functions.
6778
e546e8bb
YZ
67792013-04-17 Yufeng Zhang <yufeng.zhang@arm.com>
6780
6781 * aarch64-tdep.c (aarch64_write_pc): Removed.
543cdd95
JB
6782 (aarch64_gdbarch_init): Remove set_gdbarch_write_pc of the above
6783 function.
e546e8bb 6784
ab116149
YQ
67852013-04-17 Yao Qi <yao@codesourcery.com>
6786
6787 * top.c (print_gdb_configuration): Print configure-time
6788 parameter on using libbabeltrace or not.
6789
488a42b8
PA
67902013-04-16 Pedro Alves <palves@redhat.com>
6791
6792 * copyright.py (EXCLUDE_LIST): Add gdb/common/glibc_thread_db.h.
6793
f5fb825b
PA
67942013-04-16 Pedro Alves <palves@redhat.com>
6795
85d494ea 6796 * common/glibc_thread_db.h: Update from upstream glibc
f5fb825b
PA
6797 (git 568035b7874a099087b77f7bba3e36a1173787b0).
6798
e1154999
PA
67992013-04-16 Pedro Alves <palves@redhat.com>
6800
6801 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: Factor out to ...
6802 * common/glibc_thread_db.h: ... this new file ...
6803 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: ... and include it.
6804
e3b50a7f
PA
68052013-04-16 Will Newton <will.newton@gmail.com>
6806 Pedro Alves <palves@redhat.com>
6807
6808 PR build/11881
6809
6810 * common/gdb_thread_db.h (LIBTHREAD_DB_SO)
6811 (LIBTHREAD_DB_SEARCH_PATH): Move outside of #ifdef
6812 HAVE_THREAD_DB_H.
6813
1c2e4450
PA
68142013-04-16 Pedro Alves <palves@redhat.com>
6815 Eli Zaretskii <eliz@gnu.org>
6816
6817 * NEWS: Mention "set foo unlimited".
6818
4031ecc5
DE
68192013-04-15 Doug Evans <dje@google.com>
6820
19c3d4c9
DE
6821 * dwarf2read.c (struct dwo_file): Replace member "cus" with "cu".
6822 (struct create_dwo_cu_data): Renamed from create_dwo_info_table_data.
6823 (create_dwo_cu_reader): Renamed from
6824 create_dwo_debug_info_hash_table_reader.
6825 (create_dwo_cu): Renamed from create_dwo_debug_info_hash_table.
6826 Remove support for multiple CUs in a DWO file.
6827 (open_and_init_dwo_file, lookup_dwo_cutu): Update.
6828
4031ecc5
DE
6829 * dwarf2read.c (create_debug_types_hash_table): Use hex_string
6830 instead of phex.
6831 (lookup_dwo_unit, create_dwo_debug_info_hash_table_reader): Ditto.
6832 (create_dwo_in_dwp): Ditto.
6833
b340913d
TT
68342013-04-15 Tom Tromey <tromey@redhat.com>
6835
6836 * NEWS: Move recent entries into "since 7.6" section.
6837
cc16e6c9
TT
68382013-04-15 Tom Tromey <tromey@redhat.com>
6839
6840 PR c++/13588:
6841 * NEWS: Update.
6842 * break-catch-throw.c (struct exception_catchpoint)
6843 <exception_rx, pattern>: New fields.
6844 (fetch_probe_arguments, dtor_exception_catchpoint)
6845 (check_status_exception_catchpoint)
6846 (print_one_detail_exception_catchpoint): New functions.
6847 (handle_gnu_v3_exceptions): Add "except_rx" argument.
6848 Compile regular expression if needed.
6849 (extract_exception_regexp): New function.
6850 (catch_exception_command_1): Use extract_exception_regexp.
6851 (compute_exception): Use fetch_probe_arguments.
6852 (initialize_throw_catchpoint_ops): Set dtor, print_one_detail,
6853 and check_status fields.
6854 * cp-abi.c (cplus_typename_from_type_info): New function.
6855 * cp-abi.h (cplus_typename_from_type_info): Declare.
6856 (struct cp_abi_ops) <get_typename_from_type_info>: New field.
6857 * gdb_regex.h (compile_rx_or_error): Declare.
6858 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info): Update
6859 comment.
6860 (init_gnuv3_ops): Set get_type_from_type_info field.
6861 * probe.c (compile_rx_or_error): Move...
6862 * utils.c (compile_rx_or_error): ... here.
6863
72f1fe8a
TT
68642013-04-15 Tom Tromey <tromey@redhat.com>
6865
6866 PR c++/15176:
6867 * NEWS: Update.
6868 * break-catch-throw.c (compute_exception): New function.
6869 (exception_funcs): New global.
6870 (_initialize_break_catch_throw): Create $_exception.
6871 * cp-abi.c (cplus_type_from_type_info): New function.
6872 * cp-abi.h (cplus_type_from_type_info): Declare.
6873 (struct cp_abi_ops) <get_type_from_type_info>: New field.
6874 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info)
6875 (gnuv3_get_type_from_type_info): New functions.
6876 (init_gnuv3_ops): Set get_type_from_type_info ABI field.
6877
fc4746a2
TT
68782013-04-15 Tom Tromey <tromey@redhat.com>
6879
6880 * break-catch-throw.c (struct exception_names): New.
6881 (exception_functions): Change type.
6882 (re_set_exception_catchpoint): Look for SDT probes.
6883
15a73f56
TT
68842013-04-15 Tom Tromey <tromey@redhat.com>
6885
6886 PR c++/10119:
6887 * break-catch-throw.c (exception_functions): New global.
6888 (gnu_v3_exception_catchpoint_ops): Move earlier.
6889 (struct exception_catchpoint): New.
6890 (classify_exception_breakpoint): Rewrite.
6891 (re_set_exception_catchpoint): New function.
6892 (handle_gnu_v3_exceptions): Return void. Use init_catchpoint.
6893 Allocate a struct exception_catchpoint.
6894 (catch_exception_command_1): Update.
6895 (initialize_throw_catchpoint_ops): Set 're_set' method.
6896
916703c0
TT
68972013-04-15 Tom Tromey <tromey@redhat.com>
6898
6899 * Makefile.in (SFILES): Add break-catch-throw.c
6900 (COMMON_OBS): Add break-catch-throw.o.
6901 * break-catch-throw.c: New file.
6902 * breakpoint.c: Move exception-catching code to new file.
6903 (ep_parse_optional_if_clause): No longer static.
6904 * breakpoint.h (ep_parse_optional_if_clause): Declare.
6905
6e72ca20
TT
69062013-04-15 Tom Tromey <tromey@redhat.com>
6907
6908 PR c++/9065:
6909 * NEWS: Update.
6910 * breakpoint.c (watchpoint_exp_is_const): Add OP_TYPEID.
6911 * c-exp.y (TYPEID): New token.
6912 (exp): Add new TYPEID productions.
6913 (ident_tokens): Add "typeid".
6914 * cp-abi.c (cplus_typeid, cplus_typeid_type): New functions.
6915 * cp-abi.h (cplus_typeid, cplus_typeid_type): Declare.
6916 (struct cp_abi_ops) <get_typeid, get_typeid_type>: New fields.
6917 * eval.c (evaluate_subexp_standard) <OP_TYPEID>: New case.
6918 * expprint.c (dump_subexp_body_standard) <OP_TYPEID>: New
6919 case.
6920 * gnu-v3-abi.c (std_type_info_gdbarch_data): New global.
6921 (build_std_type_info_type, gnuv3_get_typeid_type)
6922 (gnuv3_get_typeid): New functions.
6923 (init_gnuv3_ops): Initialize std_type_info_gdbarch_data. Set
6924 new fields on ABI object.
6925 * parse.c (operator_length_standard) <OP_TYPEID>: New case.
6926 * std-operator.def (OP_TYPEID): New.
6927
715c6909
TT
69282013-04-15 Tom Tromey <tromey@redhat.com>
6929
6930 * elfread.c (elf_symtab_read): Install versioned symbol under
6931 unversioned name as well.
6932
8de20a37
TT
69332013-04-15 Tom Tromey <tromey@redhat.com>
6934
6935 PR c++/11990:
6936 * c-lang.c (cplus_language_defn): Use gdb_demangle.
6937 * c-typeprint.c (c_type_print_base): Use gdb_demangle.
6938 * cp-support.c (mangled_name_to_comp): Use gdb_demangle.
6939 (gdb_demangle): New function.
6940 * cp-support.h (gdb_demangle): Declare.
6941 * dwarf2read.c (dwarf2_physname, fixup_partial_die)
6942 (dwarf2_name): Use gdb_demangle.
6943 * gdbtypes.c (check_stub_method): Use gdb_demangle.
6944 * gnu-v3-abi.c (gnuv3_rtti_type): Strip @plt and version
6945 suffixes from name.
6946 (gnuv3_print_method_ptr): Use gdb_demangle.
6947 * jv-lang.c (java_demangle): Use gdb_demangle.
6948 * jv-typeprint.c (java_type_print_base): Use gdb_demangle.
6949 * language.c (unk_lang_demangle): Use gdb_demangle.
6950 * symtab.c (symbol_find_demangled_name)
6951 (demangle_for_lookup): Use gdb_demangle.
6952
591f19e8
TT
69532013-04-15 Tom Tromey <tromey@redhat.com>
6954
6955 PR c++/12824:
6956 * NEWS: Update.
6957 * breakpoint.c (enum exception_event_kind) <EX_EVENT_RETHROW>:
6958 New constant.
6959 (classify_exception_breakpoint): New function.
6960 (print_it_exception_catchpoint, print_one_exception_catchpoint)
6961 (print_mention_exception_catchpoint)
6962 (print_recreate_exception_catchpoint, handle_gnu_v3_exceptions)
6963 (catch_exception_command_1): Handle "rethrow" catchpoint.
6964 (catch_rethrow_command): New function.
6965 (_initialize_breakpoint): Add "catch rethrow" command.
6966
4d40cad2
PM
69672013-04-15 Pierre Muller <muller@sourceware.org>
6968
6969 * contrib/ari/gdb_ari.sh (write_pc rule): Do not consider
6970 set_gdbarch_write_pc as deprecated anymore.
6971
30bcb456
JB
69722013-04-15 Joel Brobecker <brobecker@adacore.com>
6973
6974 * spu-tdep.c (spu_write_pc): Add empty line after local variable
6975 declarations.
6976
da9160e4
YQ
69772013-04-13 Yao Qi <yao@codesourcery.com>
6978
6979 * ctf.c (_initialize_ctf): Include "completer.h".
6980 Call add_target_with_completer instead of add_target.
6981
39ed5604
JK
69822013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
6983
6984 Fix GDB regression related to PR binutils/14813.
6985 * jit.c (mem_bfd_iovec_close): Return 0 for success.
6986 * minidebug.c (lzma_close): Add return value comment.
6987 * remote.c (remote_bfd_iovec_close): Return 0 for success.
6988 * solib-spu.c (spu_bfd_iovec_close): Likewise.
6989 * spu-linux-nat.c (spu_bfd_iovec_close): Likewise.
6990
69912013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
49369217
JK
6992
6993 * config.in: Regenerate.
6994
d521ce57
TT
69952013-04-12 Tom Tromey <tromey@redhat.com>
6996
6997 * dwarf2-frame.c (struct comp_unit) <dwarf_frame_buffer>: Now
6998 const.
6999 * dwarf2read.c (struct dwarf2_section_info) <buffer>: Now const.
7000 (struct die_reader_specs) <buffer>: Likewise.
7001 (die_reader_func_ftype): Make 'info_ptr' const.
7002 (struct line_header) <include_dirs, statement_program_start,
7003 statement_program_end>: Now const.
7004 (struct file_entry) <name>: Likewise.
7005 (struct partial_die_info) <sibling>: Likewise.
7006 (struct dwarf_block) <data>: Likewise.
7007 (dwarf2_read_section): Remove cast.
7008 (dwarf2_get_section_info): Make 'bufp' const.
7009 (read_index_from_section): Constify.
7010 (dw2_get_file_names_reader): Make 'info_ptr' const.
7011 (dw2_get_primary_filename_reader): Likewise.
7012 (read_comp_unit_head): Make 'info_ptr' and return type const.
7013 (read_and_check_comp_unit_head, read_and_check_type_unit_head):
7014 Likewise.
7015 (read_abbrev_offset): Constify.
7016 (dwarf2_create_include_psymtab): Make 'name' const.
7017 (create_debug_types_hash_table): Update.
7018 (read_cutu_die_from_dwo): Make 'result_info_ptr' const.
7019 (init_cutu_and_read_dies, init_cutu_and_read_dies_no_follow):
7020 Constify.
7021 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader)
7022 (load_partial_comp_unit_reader): Make 'info_ptr' const.
7023 (read_comp_units_from_section): Constify.
7024 (peek_abbrev_code, peek_die_abbrev, skip_children, skip_one_die)
7025 (locate_pdi_sibling, load_full_comp_unit_reader): Make 'info_ptr'
7026 const.
7027 (dwarf2_compute_name, setup_type_unit_groups): Constify.
7028 (create_dwo_debug_info_hash_table): Make 'info_ptr' const.
7029 (create_dwp_hash_table, dwarf2_ranges_read)
7030 (dwarf2_record_block_ranges): Constify.
7031 (read_die_and_children, read_die_and_siblings_1)
7032 (read_die_and_siblings): Make 'info_ptr' and 'new_info_ptr'
7033 const.
7034 (read_full_die_1, read_full_die): Make 'info_ptr' const.
7035 (abbrev_table_read_table): Constify.
7036 (load_partial_dies): Make 'info_ptr' const.
7037 (read_partial_die, read_attribute_value, read_attribute): Make
7038 'info_ptr' and return type const.
7039 (read_address, read_initial_length)
7040 (read_checked_initial_length_and_offset, read_offset)
7041 (read_offset_1, read_n_bytes, read_direct_string): Make 'buf'
7042 const.
7043 (read_direct_string): Make 'buf' and return type const.
7044 (read_indirect_string_at_offset, read_indirect_string_from_dwz)
7045 (read_indirect_string): Make return type const.
7046 (read_unsigned_leb128, read_signed_leb128): Make 'buf' const.
7047 (read_addr_index_from_leb128, dwarf2_read_addr_index_reader): Make
7048 'info_ptr' const.
7049 (read_str_index): Make return type const.
7050 (add_include_dir): Make 'include_dir' const.
7051 (add_file_name): Make 'name' const.
7052 (dwarf_decode_line_header): Constify.
7053 (psymtab_include_file_name): Make return type const.
7054 (dwarf_decode_lines_1, dwarf_decode_lines): Constify.
7055 (dwarf2_start_subfile): Make 'filename' const.
7056 (dwarf2_const_value_attr): Make 'bytes' const.
7057 (read_signatured_type_reader): Make 'info_ptr' const.
7058 (decode_locdesc): Constify.
7059 (skip_form_bytes): Make 'bytes', 'buffer_end', and return type
7060 const.
7061 (skip_unknown_opcode): Make 'opcode_definitions', 'mac_ptr',
7062 'mac_end', and return type const.
7063 (dwarf_parse_macro_header): Make 'mac_ptr' and return type const.
7064 (dwarf_decode_macro_bytes): Make 'mac_ptr', 'mac_end', and return
7065 type const.
7066 (per_cu_header_read_in): Constify.
7067 * symfile.h (dwarf2_get_section_info): Update.
7068
d47a1bc1
TT
70692013-04-12 Tom Tromey <tromey@redhat.com>
7070
7071 * symtab.h (struct general_symbol_info) <value.bytes>: Make const.
7072
6eaaf48b
EZ
70732013-04-12 Eli Zaretskii <eliz@gnu.org>
7074
fc4c25bf 7075 * NEWS: Mention "show configuration", --configuration.
6eaaf48b
EZ
7076 * top.c (print_gdb_configuration): New function, displays the
7077 details about GDB configure-time parameters.
7078 (print_gdb_version): Mention "show configuration".
6eaaf48b
EZ
7079 * cli/cli-cmds.c (show_configuration): New function.
7080 (_initialize_cli_cmds): Add the "show configuration" command.
6eaaf48b
EZ
7081 * main.c (captured_main) <print_configuration>: New static var.
7082 <long_options>: Use it.
7083 If --configuration was given, call print_gdb_configuration.
7084
b292c783
JK
70852013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7086 Pedro Alves <palves@redhat.com>
7087
7088 * Makefile.in (HAVE_NATIVE_GCORE_TARGET): New.
7089 (generated_files): Add gcore.
7090 (install-only, uninstall): Add gcore if HAVE_NATIVE_GCORE_TARGET or
7091 HAVE_NATIVE_GCORE_HOST.
7092 (gcore): New.
7093 * NEWS (Changes since GDB 7.6): Mention newly installed gcore.
7094 * config/alpha/alpha-osf3.mh, config/i386/fbsd.mh,
7095 config/i386/fbsd64.mh, config/i386/i386gnu.mh, config/i386/i386sol2.mh,
7096 config/i386/sol2-64.mh, config/mips/irix5.mh, config/mips/irix6.mh,
7097 config/powerpc/fbsd.mh, config/sparc/fbsd.mh, config/sparc/sol2.mh:
7098 Add HAVE_NATIVE_GCORE_HOST.
7099 * configure: Regenerate.
7100 * configure.ac (HAVE_NATIVE_GCORE_TARGET): New, set it, AC_SUBST it.
7101 New AC_SUBST fir GDB_TRANSFORM_NAME and GCORE_TRANSFORM_NAME. New
7102 AC_CONFIG_FILES for gcore.
7103 * configure.tgt: Add gdb_have_gcore to the initial comment. Set
7104 gdb_have_gcore.
7105 * gdb_gcore.sh: Rename to ...
7106 * gcore.in: ... here. Remove gcore.sh comment. Use GDB_TRANSFORM_NAME
7107 and GCORE_TRANSFORM_NAME substitutions.
7108
c96b3c4f
JK
7109 Fix parsing tabs in ${gdb_target_obs}.
7110 * configure.tgt (gdb_have_gcore): Replace case with for and if.
7111
d6cb50a2
JK
71122013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7113
7114 * remote.c (unpush_and_perror): Add output message final dot.
7115
cf2cb5ec
YQ
71162013-04-11 Yao Qi <yao@codesourcery.com>
7117
7118 * tracepoint.c (tfile_interp_line): Fit parameters line and
7119 utpp in one line.
7120
07293be4
JB
71212013-04-10 Joel Brobecker <brobecker@adacore.com>
7122
7123 * solib.c (solib_map_sections): Remove code overwriting
7124 SO->SO_NAME with the bfd's filename.
7125
f81d1120
PA
71262013-04-10 Pedro Alves <palves@redhat.com>
7127
7128 * cli/cli-decode.c (integer_unlimited_completer): New function.
7129 (add_setshow_integer_cmd, add_setshow_uinteger_cmd)
7130 (add_setshow_zuinteger_unlimited_cmd): Install the "unlimited"
7131 completer.
7132 * cli/cli-setshow.c: Include "cli/cli-utils.h".
7133 (is_unlimited_literal): New function.
7134 (do_set_command): Handle literal "unlimited" arguments.
7135 * frame.c (_initialize_frame) <set backtrace limit>: Document
7136 "unlimited".
7137 * printcmd.c (_initialize_printcmd) <set print
7138 max-symbolic-offset>: Add help text.
7139 * record-full.c (_initialize_record_full) <set record full
7140 insn-number-max>: Likewise.
7141 * record.c (_initialize_record) <set record
7142 instruction-history-size, set record function-call-history-size>:
7143 Add help text.
7144 * ser-tcp.c (_initialize_ser_tcp) <set tcp connect-timeout>: Add
7145 help text.
7146 * tracepoint.c (_initialize_tracepoint) <set trace-buffer-size>:
7147 Likewise.
7148 * source.c (_initialize_source) <set listsize>: Add help text.
7149 * utils.c (initialize_utils) <set height, set width>: Likewise.
7150 <set pagination>: Mention "set height unlimited".
7151 * valprint.c (_initialize_valprint) <set print elements, set print
7152 repeats>: Document "unlimited".
7153
2f9d54cf
PA
71542013-04-10 Pedro Alves <palves@redhat.com>
7155
7156 * cli/cli-cmds.c (quit_command): Call query_if_trace_running
7157 instead of disconnect_tracing.
7158 * infcmd.c (detach_command, disconnect_command): Call
7159 query_if_trace_running. Adjust.
7160 * top.c: Include "tracepoint.h".
7161 (quit_target): Delete. Contents moved ...
7162 (quit_force): ... here. Wrap each stage of teardown in
7163 TRY_CATCH. Call disconnect_tracing before detaching.
7164
393fd4c3
YQ
71652013-04-10 Hui Zhu <hui@codesourcery.com>
7166 Yao Qi <yao@codesourcery.com>
7167
7168 * configure.ac: Check libbabeltrace is installed.
7169 * config.in: Regenerate.
7170 * configure: Regenerate.
7171 * Makefile.in (LIBBABELTRACE): New.
7172 (CLIBS): Add LIBBABELTRACE.
7173 * ctf.c: Include "exec.h".
7174 (CTF_EVENT_ID_STATUS, CTF_EVENT_ID_TSV_DEF): New macros.
7175 (CTF_EVENT_ID_TP_DEF, ctf_save_write_int32): New macros.
7176 (ctf_save_metadata_header): Define new type aliases in
7177 metadata.
7178 (ctf_write_header): Define event type "tsv_def" and "tp_def"
7179 in metadata. Start a new faked packet for trace status.
7180 (ctf_write_status): Write trace status to CTF.
7181 (ctf_write_uploaded_tsv): Write TSV to CTF.
7182 (ctf_write_uploaded_tp): Write tracepoint definition to CTF.
7183 (ctf_write_definition_end): End the faked packet.
7184
7185 (ctx, ctf_iter, trace_dirname): New.
7186 (start_pos): New variable.
7187 (ctf_destroy, ctf_open_dir, ctf_open): New.
7188 (SET_INT32_FIELD, SET_ARRAY_FIELD, SET_STRING_FIELD): New
7189 macros.
7190 (ctf_read_tsv, ctf_read_tp, ctf_close, ctf_files_info): New.
7191 (ctf_fetch_registers, ctf_xfer_partial): New.
7192 (ctf_get_trace_state_variable_value): New.
7193 (ctf_get_tpnum_from_frame_event): New.
7194 (ctf_get_traceframe_address): New.
7195 (ctf_trace_find, ctf_has_stack): New.
7196 (ctf_has_registers, ctf_traceframe_info, init_ctf_ops): New.
7197 (ctf_get_trace_status, ctf_read_status): New.
7198 (_initialize_ctf): New.
7199 * tracepoint.c (get_tracepoint_number): New
7200 (get_uploaded_tsv): Remove 'static'.
5f8e0b8f 7201 (struct traceframe_info, trace_regblock_size): Move it to ...
393fd4c3
YQ
7202 * tracepoint.h: ... here.
7203 (get_tracepoint_number): Declare it.
7204 (get_uploaded_tsv): Declare it.
7205
7206 * NEWS: Mention new configure option.
7207
5c2b4418
HZ
72082013-04-10 Pedro Alves <palves@redhat.com>
7209 Hui Zhu <hui@codesourcery.com>
7210
7211 * breakpoint.c (dprintf_re_set): New.
7212 (initialize_breakpoint_ops): Set dprintf_breakpoint_ops re_set
7213 to dprintf_re_set.
7214
a5c66735
JB
72152013-04-09 Joel Brobecker <brobecker@adacore.com>
7216
7217 * configure.tgt (gdb_target_obs) <powerpc-*-aix* | rs6000-*-*>:
7218 Remove solib-svr4.o from the list.
7219
9e77999c
JB
72202013-04-09 Joel Brobecker <brobecker@adacore.com>
7221
7222 * varobj.c (update_dynamic_varobj_children) [!HAVE_PYTHON]:
7223 Use gdb_assert_not_reached instead of invalid boolean expression.
7224
1927e618
PA
72252013-04-09 Pedro Alves <palves@redhat.com>
7226
7227 * remote.c (unpush_and_perror): New function.
7228 (readchar, remote_serial_write): Use it.
7229
10782d74
MM
72302013-04-09 Markus Metzger <markus.t.metzger@intel.com>
7231
7232 * NEWS: Mention new btrace RSP packets.
7233
4c8429ef
TT
72342013-04-08 Tom Tromey <tromey@redhat.com>
7235
7236 * symmisc.c (dump_msymbols): Cast fprintf_filtered argument to
7237 long.
7238
8625fc1b
TT
72392013-04-08 Tom Tromey <tromey@redhat.com>
7240
7241 * maint.c (print_bfd_section_info): Print the section index.
7242 * symmisc.c (dump_msymbols): Print the section index.
7243
e27d198c
TT
72442013-04-08 Tom Tromey <tromey@redhat.com>
7245
7246 PR symtab/8424:
7247 * blockframe.c (find_pc_partial_function_gnu_ifunc): Check
7248 SYMBOL_SECTION, not SYMBOL_OBJ_SECTION.
7249 * breakpoint.c (resolve_sal_pc): Update.
7250 * elfread.c (elf_gnu_ifunc_record_cache): Update.
7251 * findvar.c (struct minsym_lookup_data) <objfile>: New field.
7252 (minsym_lookup_iterator_cb): Use it.
7253 (default_read_var_value): Update.
7254 * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline):
7255 Update.
7256 * infcmd.c (jump_command): Update.
7257 * linespec.c (minsym_found): Update.
7258 * maint.c (maintenance_translate_address): Update.
7259 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Update.
7260 (prim_record_minimal_symbol_full): Don't set SYMBOL_OBJ_SECTION.
7261 * parse.c (write_exp_msymbol): Update.
7262 * printcmd.c (address_info): Update.
7263 * psymtab.c (find_pc_sect_psymbol): Update.
7264 (fixup_psymbol_section): Check SYMBOL_SECTION, not
7265 SYMBOL_OBJ_SECTION.
7266 (add_psymbol_to_bcache): Correctly initialize SYMBOL_SECTION.
7267 Don't initialize SYMBOL_OBJ_SECTION.
7268 * spu-tdep.c (spu_catch_start): Update.
7269 * stabsread.c (define_symbol): Don't set SYMBOL_SECTION.
7270 * symmisc.c (dump_msymbols, print_symbol): Update.
7271 * symtab.c (fixup_section): Don't set 'obj_section'. Change
7272 how fallback section is computed.
7273 (fixup_symbol_section): Update.
7274 (find_pc_sect_symtab, find_function_start_sal, skip_prologue_sal):
7275 Update.
7276 (allocate_symbol, initialize_symbol, allocate_template_symbol):
7277 Initialize SYMBOL_SECTION.
7278 * symtab.h (struct general_symbol_info) <section>: Update comment.
7279 <obj_section>: Remove.
7280 (SYMBOL_OBJ_SECTION): Add 'objfile' argument. Rewrite.
7281 (SYMBOL_OBJFILE): New macro.
7282
e6dc44a8
TT
72832013-04-08 Tom Tromey <tromey@redhat.com>
7284
7285 * coffread.c (record_minimal_symbol): Update.
7286 * dbxread.c (record_minimal_symbol): Update.
7287 * elfread.c (record_minimal_symbol): Update.
7288 * machoread.c (macho_symtab_add_minsym): Update.
7289 * mdebugread.c (record_minimal_symbol, parse_partial_symbols):
7290 Update.
7291 * minsyms.c (prim_record_minimal_symbol): Update.
7292 (prim_record_minimal_symbol_full): Remove 'bfd_section'
7293 argument.
7294 (prim_record_minimal_symbol_and_info): Likewise.
7295 * minsyms.h (prim_record_minimal_symbol_full)
7296 (prim_record_minimal_symbol_and_info): Update.
7297 * symtab.c (allocate_symbol, initialize_symbol)
7298 (allocate_template_symbol): Initialize SYMBOL_SECTION.
7299 * xcoffread.c (record_minimal_symbol, scan_xcoff_symtab):
7300 Update.
7301
36192a8d
TT
73022013-04-08 Tom Tromey <tromey@redhat.com>
7303
7304 PR symtab/8423:
7305 * solib-som.c (som_solib_section_offsets): Use BFD section
7306 indices. Set offsets for all sections.
7307 * somread.c (som_symtab_read): Compute BFD section for
7308 symbol. Use prim_record_minimal_symbol_and_info.
7309 (som_symfile_read): Fix comment.
7310 (struct find_section_offset_arg): New.
7311 (find_section_offset, set_section_index): New functions.
7312 (som_symfile_offsets): Use set_section_index to compute
7313 section indices.
7314
65cf3563
TT
73152013-04-08 Tom Tromey <tromey@redhat.com>
7316
7317 * coffread.c (cs_to_section): Use gdb_bfd_section_index.
7318 * elfread.c (record_minimal_symbol, elf_symtab_read): Use
7319 gdb_bfd_section_index.
7320 * gdb_bfd.c (gdb_bfd_section_index, gdb_bfd_count_sections):
7321 New functions.
7322 * gdb_bfd.h (gdb_bfd_section_index, gdb_bfd_count_sections):
7323 Declare.
7324 * machoread.c (macho_symtab_add_minsym, macho_symfile_offsets):
7325 Update.
7326 * objfiles.c (add_to_objfile_sections_full): New function.
7327 (add_to_objfile_sections): Use it.
7328 (build_section_table): Rewrite.
7329 (objfile_relocate1): Use gdb_bfd_section_index. Update.
7330 * objfiles.h (obj_section_offset): Use gdb_bfd_section_index.
7331 (struct objfile) <sections>: Update comment.
7332 (ALL_OBJFILE_OSECTIONS): Skip sections where the_bfd_section
7333 is NULL.
7334 (ALL_OBJSECTIONS): Use it.
7335 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
7336 * solib-frv.c (frv_relocate_main_executable): Update.
7337 * solib-target.c (solib_target_relocate_section_addresses):
7338 Use gdb_bfd_section_index.
7339 * symfile.c (build_section_addr_info_from_section_table):
7340 Use gdb_bfd_section_index.
7341 (build_section_addr_info_from_bfd, place_section): Likewise.
7342 * symtab.c (fixup_section): Update.
7343 * xcoffread.c (find_targ_sec): Use gdb_bfd_section_index.
7344
7cbd4a93
TT
73452013-04-08 Tom Tromey <tromey@redhat.com>
7346
7347 * minsyms.h (struct bound_minimal_symbol): New.
7348 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
7349 Remove objfile argument.
7350 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
7351 Return bound_minimal_symbol.
7352 * minsyms.c (lookup_minimal_symbol_by_pc_1)
7353 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
7354 Return bound_minimal_symbol.
7355 (in_gnu_ifunc_stub): Update.
7356 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
7357 Remove 'objfile_p' argument.
7358 (lookup_solib_trampoline_symbol_by_pc): Update.
7359 * ada-tasks.c, amd64-windows-tdep.c, arm-tdep.c,
7360 arm-wince-tdep.c, block.c, blockframe.c, breakpoint.c, btrace.c,
7361 c-valprint.c, dwarf2loc.c, elfread.c, frame.c, frv-tdep.c,
7362 glibc-tdep.c, gnu-v2-abi.c, gnu-v3-abi.c, hppa-hpux-tdep.c,
7363 i386-tdep.c, ia64-tdep.c, infcall.c, infcmd.c, jit.c,
7364 linux-fork.c, m32c-tdep.c, m68hc11-tdep.c, maint.c,
7365 mips-tdep.c, p-valprint.c, parse.c, ppc-linux-tdep.c,
7366 ppc-sysv-tdep.c, printcmd.c, rs6000-tdep.c, sh64-tdep.c,
7367 stack.c, symtab.c, tui/tui-disasm.c: Update.
7368
f85f34ed
TT
73692013-04-08 Tom Tromey <tromey@redhat.com>
7370
7371 * ada-lang.c (ada_decode_symbol): Check and set 'ada_mangled'.
7372 Use symbol's obstack, not an objfile.
7373 * coffread.c (process_coff_symbol): Update.
7374 * dwarf2read.c (fixup_go_packaging, new_symbol_full): Update.
7375 * jv-lang.c (add_class_symbol): Update.
7376 * mdebugread.c (new_symbol): Update.
7377 * minsyms.c (prim_record_minimal_symbol_full)
7378 (terminate_minimal_symbol_table): Update.
7379 * psymtab.c (add_psymbol_to_bcache): Clear entire symbol. Update.
7380 * stabsread.c (define_symbol, read_enum_type): Update.
7381 * symtab.c (symbol_set_demangled_name, symbol_get_demangled_name):
7382 Handle Ada specially.
7383 (symbol_set_language): Add 'obstack' argument.
7384 (symbol_set_names): Update.
7385 (symbol_natural_name, symbol_demangled_name): Always use
7386 ada_decode_symbol.
7387 * symtab.h (struct general_symbol_info)
7388 <language_specific::obstack>: New field.
7389 <ada_mangled>: New field.
7390 (SYMBOL_SET_LANGUAGE): Add 'obstack' argument.
7391 (symbol_set_language): Update.
7392
ccde22c0
TT
73932013-04-08 Tom Tromey <tromey@redhat.com>
7394
7395 * symtab.c (symbol_init_cplus_specific, symbol_set_demangled_name):
7396 Take an obstack, not an objfile.
7397 (symbol_set_names): Update.
7398 * symtab.h (symbol_set_demangled_name): Update.
7399
e623cf5d
TT
74002013-04-08 Tom Tromey <tromey@redhat.com>
7401
7402 * coffread.c (process_coff_symbol, coff_read_enum_type): Call
7403 allocate_symbol.
7404 * dwarf2read.c (fixup_go_packaging): Call allocate_symbol.
7405 (read_func_scope): Call allocate_template_symbol.
7406 (new_symbol_full): Call allocate_symbol.
7407 * jit.c (finalize_symtab): Call allocate_symbol.
7408 * jv-lang.c (add_class_symbol): Call allocate_symbol.
7409 * mdebugread.c (parse_symbol, new_block): Call allocate_symbol.
7410 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
7411 (common_block_end): Call allocate_symbol.
7412 * symtab.c (allocate_symbol, initialize_symbol)
7413 (allocate_template_symbol): New functions.
7414 * symtab.c (allocate_symbol, initialize_symbol)
7415 (allocate_template_symbol): Declare.
7416 * xcoffread.c (process_xcoff_symbol): Call initialize_symbol.
7417
f6de8ec2
PA
74182013-04-08 Pedro Alves <palves@redhat.com>
7419 Keith Seitz <keiths@redhat.com>
7420
7421 * breakpoint.c (create_breakpoint): Rename
7422 "parse_condition_and_thread" parameter to "parse_arg". Update
7423 describing comment. If !PARSE_ARG, then error out if ARG is not
7424 the empty string after extracting the location.
7425 * breakpoint.h (create_breakpoint): Rename
7426 "parse_condition_and_thread" parameter to "parse_arg".
7427
f65ce5fb
AR
74282013-04-08 Aleksandar Ristovski <aristovski@qnx.com
7429
7430 * solib-svr4.c (lm_addr_check): Add const qualifier to 'so' arg.
7431
cc5925ad
YQ
74322013-04-07 Yao Qi <yao@codesourcery.com>
7433
7434 * remote.c (remote_trace_find): Change type of parameters 'addr1'
7435 and 'addr2' to CORE_ADDR.
7436 * target.c (update_current_target): Update.
7437 * target.h (struct target_ops) <to_trace_find>: Change parameter
7438 type to CORE_ADDR.
7439 * tracepoint.c (tfind_1): Change type of parameters 'addr1' and
7440 'addr2' to CORE_ADDR.
7441 (tfile_trace_find): Likewise.
7442 (tfile_get_traceframe_address): Change return type to CORE_ADDR.
7443 Change local variable 'addr' to type CORE_ADDR.
7444 * tracepoint.h (tfind_1): Update declaration.
7445
d9ac0664
EZ
74462013-04-06 Eli Zaretskii <eliz@gnu.org>
7447
7448 * windows-nat.c (windows_get_absolute_argv0): Move from here...
7449 * mingw-hdep.c (windows_get_absolute_argv0): ...to here.
7450 Include main.h.
7451
7452 * windows-nat.h (windows_get_absolute_argv0): Move prototype from
7453 here...
7454 * main.h (windows_get_absolute_argv0): ...to here.
7455
02142a6c
DE
74562013-04-05 Doug Evans <dje@google.com>
7457
7458 * dwarf2read.c (struct dwarf2_per_objfile): Tweak comment.
7459 (read_cutu_die_from_dwo): Add comments.
7460 (read_structure_type): Update comment.
7461 (read_enumeration_type, read_namespace_type): Update comment.
7462 (read_die_type, get_die_type_at_offset, get_die_type): Update comment.
7463
43662968
JK
74642013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7465
7466 Convert man pages to texinfo, new gdbinit.5 texinfo page.
7467 * Makefile.in (gdb.z): Remove.
7468 (install-only): Remove $(man1dir) and gdb.1 installation.
7469 * gdb.1: Remove.
7470
9ead1b84
JK
74712013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7472
7473 Fix compatibility with Linux kernel 3.8.3.
7474 * linux-tdep.c (linux_find_memory_regions_full): Move variable number
7475 to more inner block. Remove parsing of NUMBER from outer block.
7476 Parse NUMBER only if KEYWORD has been identified.
7477
d1794952
JK
74782013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7479
7480 Fix variable name shadowing.
7481 * linux-tdep.c (linux_find_memory_regions_full): Rename outer variable
7482 filename to mapsfilename and update its uses.
7483
9025569e
EZ
74842013-04-05 Eli Zaretskii <eliz@gnu.org>
7485
7486 * Makefile.in (TAGS): Avoid warning from etags when $GDB_NM_FILE is
7487 empty. See http://sourceware.org/ml/gdb-patches/2012-08/msg00504.html
7488 and http://sourceware.org/ml/gdb-patches/2013-04/msg00055.html for
7489 details of the problem.
7490
c9a6ce02
PA
74912013-04-04 Pedro Alves <palves@redhat.com>
7492 Hui Zhu <hui@codesourcery.com>
7493
7494 * breakpoint.c (validate_commands_for_breakpoint): If validating a
7495 tracepoint, reset its STEP_COUNT and call validate_actionline.
7496
5ff888ce
DE
74972013-04-03 Doug Evans <dje@google.com>
7498
bf6af496
DE
7499 * dwarf2read.c (read_die_and_siblings_1): Renamed from
7500 read_die_and_siblings.
7501 (read_die_and_siblings): New function.
7502 (read_cutu_die_from_dwo): Dump die if requested.
7503 (read_die_and_children): Call read_full_die_1 and
7504 read_die_and_siblings_1.
7505 (read_full_die): Dump die if requested.
7506
7507 * dwarf2read.c (read_comp_units_from_section): Add debugging printf.
7508
0ac5b59e
DE
7509 * dwarf2read.c (struct dwo_file): New member comp_dir.
7510 Rename member name to dwo_name. All uses updated.
7511 (hash_dwo_file): Include comp_dir in computation.
7512 (eq_dwo_file): Ditto.
7513 (lookup_dwo_file_slot): New arg comp_dir. All callers updated.
7514 (create_dwo_in_dwp, lookup_dwo_in_dwp, open_and_init_dwo_file): Ditto.
7515
5ff888ce
DE
7516 * psymtab.c (read_psymtabs_with_fullname): Don't call
7517 psymtab_to_fullname if the basenames are different.
7518
ec83d211
JK
75192013-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7520
7521 * NEWS (Changes in GDB 7.6): Update the data-disassemble for "fullname".
7522 New entry about "fullname" presence.
7523
4f4352f7
PA
75242013-04-03 Pedro Alves <palves@redhat.com>
7525
7526 * NEWS: Mention x86_64/Cygwin as new native configuration.
7527
3d1d5ea3
DE
75282013-04-02 Doug Evans <dje@google.com>
7529
7530 * dwarf2read.c (read_structure_type): Fix typo in comment.
7531
be9a8770
PA
75322013-04-02 Pedro Alves <palves@redhat.com>
7533
7534 * NEWS: Mention "set/show debug aarch64", "set/show debug
7535 coff-pe-read" and "set/show debug mach-o".
7536
a46c1e42
PA
75372013-04-02 Pedro Alves <palves@redhat.com>
7538
7539 * NEWS: Mention "set/show remote trace-buffer-size-packet".
7540
3ad18b19
EZ
75412013-04-02 Eli Zaretskii <eliz@gnu.org>
7542
7543 * Makefile.in (HFILES_NO_SRCDIR): Remove call-cmds.h.
7544 gdb_string.h is now in common/.
7545
e9f1758d
PA
75462013-04-02 Pedro Alves <palves@redhat.com>
7547
7548 * NEWS: Move "set debug notification" and "set trace-buffer-size"
7549 under "New options".
7550
049dc89b
JK
75512013-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7552
7553 Revert this patch:
7554 PR gdb/15275
7555 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
7556
c33e31fd
PA
75572013-04-02 Pedro Alves <palves@redhat.com>
7558
7559 PR gdb/15275
7560
7561 * remote.c (send_interrupt_sequence): Use remote_serial_write.
7562 (remote_serial_write): New function.
7563 (putpkt_binary, getpkt_or_notif_sane_1): Use remote_serial_write.
7564
ea5f3910
JW
75652013-04-01 Jiong Wang <jiwang@tilera.com>
7566
7567 * NEWS: Mention TILE-Gx in "New native configurations" and
f5aee5ee 7568 "New targets" sections.
ea5f3910 7569
5c6fa7ab
DE
75702013-04-01 Doug Evans <dje@google.com>
7571
c0f78cd4
DE
7572 * dwarf2read.c (lookup_signatured_type_at_offset): Delete.
7573 (process_enumeration_scope): Simplify.
7574
0186c6a7
DE
7575 * dwarf2read.c (struct dwarf2_per_cu_data): Move member
7576 type_unit_group ...
7577 (struct signatured_type): ... to here.
7578 (sig_type_ptr): New typedef.
7579 (type_unit_group): Delete member 't.first_cu'. Move member 'tus'
7580 out of union 't'. All uses updated.
7581 (dw2_get_file_names_reader): Assert not called for a type unit.
7582 (dw2_get_file_names): Assert not called for a type unit or type
7583 unit group.
7584 (build_type_psymtabs_reader): Assert called for a type unit.
7585 (build_type_psymtab_dependencies): Assert called for a type unit group.
7586
5c6fa7ab
DE
7587 * dwarf2read.c (free_dwo_file): Add comment.
7588 (dwarf2_per_objfile_free): Unref dwp bfd.
7589
b3c0ad67 75902013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
cebca8c1
AR
7591
7592 * coff-pe-read.c (add_pe_exported_sym): Remove unused 'dll_name_len'.
7593 (add_pe_forwarded_sym): Remove unused 'section', 'dll_name_len'.
7594 (read_pe_exported_syms): Remove unused 'exportix'.
7595 (pe_text_section_offset): Remove unused 'opthdr_ofs', 'num_entries',
7596 'export_rva', 'export_size', 'expptr', 'exp_funcbase', 'expdata',
7597 'erva', 'name_rvas', 'ordinals', 'nexp', 'ordbase', 'dll_name'.
7598
e2df1547
AR
75992013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
7600
7601 * breakpoint.c (parse_cond_to_aexpr): Remove unused 'old_chain'.
7602 (print_it_watchpoint): Remove unused 'bl'.
7603 (say_where): Remove unused 'uiout'.
7604 (bpstat_remove_breakpoint_callback): Remove unused 'uiout'.
7605 (bkpt_breakpoint_hit): Remove unused 'b'.
7606 (internal_bkpt_print_it): Remove unused 'uiout'.
7607 * buildsym.c (augment_type_symtab): Remove unused 'i'.
7608
d81e75c0
TD
76092013-03-31 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
7610
7611 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_float): New function.
7612 (ppc64_sysv_abi_push_dummy_call): Handle complex arguments.
7613
5a8b3f62
DE
76142013-03-29 Doug Evans <dje@google.com>
7615
ab5088bf
DE
7616 * dwarf2read.c (open_dwo_file): Renamed from open_dwop_file.
7617 Delete arg is_dwp. All callers updated.
7618 (open_dwp_file): New function.
7619 (open_and_init_dwp_file): Call it.
7620 (get_dwp_file): New function.
7621 (lookup_dwo_cutu): Call it.
7622
a8ad1e57
DE
7623 * dwarf2read.c (open_and_init_dwp_file): Remove incorrect, and
7624 unnecessary, cleanup.
7625
6296d8c1
DE
7626 * dwarf2read.c (lookup_dwo_cutu): Improve complaint text.
7627
b0c7bfa9
DE
7628 * dwarf2read.c (read_cutu_die_from_dwo): New function.
7629 (lookup_dwo_unit): New function.
7630 (init_cutu_and_read_dies): Move DWO handling to new functions.
7631
c88ee1f0
DE
7632 * dwarf2read.c (struct signatured_type): Tweak comment.
7633 (struct dwo_unit): Tweak comment.
7634 (create_debug_types_hash_table): Tweak comment. Reformat long line.
7635 (create_dwo_debug_info_hash_table): Tweak comment.
7636 (dwarf2_per_cu_offset_and_type): Tweak comment.
7637
5a8b3f62
DE
7638 * dwarf2read.c (lookup_signatured_type): Remove complaint about
7639 missing .debug_types section.
7640
9852c492
YQ
76412013-03-29 Yao Qi <yao@codesourcery.com>
7642
7643 * corelow.c: Include "completer.h".
7644 (_initialize_corelow): Call add_target_with_completer with
7645 argument 'filename_completer'.
7646 * tracepoint.c: Likewise.
7647 * exec.c (_initialize_exec): Likewise.
7648 * target.c (add_target): Rename to ...
7649 (add_target_with_completer): ... this. Call set_cmd_completer
7650 if parameter completer is not NULL.
7651 (add_target): New.
7652 * target.h: Include "command.h".
7653 (add_target_with_completer): Declare it.
7654
af312be7
JB
76552013-03-28 Joel Brobecker <brobecker@adacore.com>
7656
7657 * coffread.c (is_import_fixup_symbol): New function.
7658 (record_minimal_symbol): Use is_import_fixup_symbol to
7659 detect import fixup symbols, and discard them.
7660
8a0459fd
DE
76612013-03-28 Doug Evans <dje@google.com>
7662
0349ea22
DE
7663 * dwarf2read.c (create_debug_types_hash_table): Don't allocate the
7664 types hash table until we know we need it.
7665
f652bce2
DE
7666 * dwarf2read.c (create_addrmap_from_index): Complain about bad CU
7667 index numbers.
7668
e4a48d9d
DE
7669 * dwarf2read.c (dw2_get_file_names): Delete arg "objfile".
7670 All callers updated.
7671 (dw2_print_stats): Print #read CUs too.
7672 (dump_die_shallow): Print signatured types better.
7673
8a0459fd
DE
7674 * dwarf2read.c (struct dwarf2_per_cu_data): Rename member
7675 info_or_types_section to section. All uses updated.
7676 (struct dwo_unit): Ditto.
7677
bd3eecc3
PA
76782013-03-28 Pedro Alves <palves@redhat.com>
7679
7680 * NEWS (New options): New section.
7681 (New options): Mention set/show remote trace-status-packet.
7682 * remote.c (PACKET_qTStatus): New enumeration value.
7683 (remote_get_trace_status): Skip sending qTStatus if the packet is
7684 disabled. Use packet_ok.
7685 (_initialize_remote): Register a configuration command for
7686 qTStatus packet.
7687
41245087
DE
76882013-03-28 Doug Evans <dje@google.com>
7689
7edbb660
DE
7690 * symfile.c (find_separate_debug_file): Add comment.
7691 (terminate_after_last_dir_separator): Tweak comment.
7692
0018ea6f
DE
7693 * dwarf2read.c (create_partial_symtab): Add forward decl.
7694 (create_partial_symtab): Move to be closer to other psymtab functions.
7695 (process_psymtab_comp_unit_reader, process_psymtab_comp_unit): Ditto.
7696
ca69b9e6
DE
7697 * dwarf2read.c (dwarf2_physname): Move declaration to better spot.
7698 (compute_symtab_includes): Remove unnecessary forward declaration.
7699 (die_needs_namespace): Add comment marking group of functions for
7700 dwarf2 name computation.
7701
a9375afe
DE
7702 * typeprint.c (_initialize_typeprint): Improve type help text.
7703
41245087
DE
7704 * python/python.c (finish_python_initialization): Provide suggestion
7705 for how to tell gdb to find its python files.
7706
7f7cc265
PA
77072013-03-28 Pedro Alves <palves@redhat.com>
7708
7709 PR gdb/15294
7710
7711 * source.c (_initialize_source): Change back "set listsize" to an
7712 integer command.
7713
ec21308c
JK
77142013-03-27 Gareth McMullin <gareth@blacksphere.co.nz>
7715
7716 PR gdb/15275
7717 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
7718
840a9a1f
PA
77192013-03-27 Pedro Alves <palves@redhat.com>
7720
7721 * top.c (history_size): Rename to ...
7722 (history_size_setshow_var): ... this. Add comment.
7723 (show_commands): Use readline's 'history_length' instead of
7724 computing the history length by calling history_get in a loop.
7725 (set_history_size_command): Error out for sizes over INT_MAX.
7726 Restore previous history size on invalid size.
7727 (init_history): If HISTSIZE is negative, leave the history size as
7728 zero. Add comments.
7729 (init_main): Adjust.
7730
826ecc4d
PA
77312013-03-27 Pedro Alves <palves@redhat.com>
7732
7733 * coff-pe-read.c (_initialize_coff_pe_read): Rename "set debug
7734 coff_pe_read" command to "set debug coff-pe-read".
7735
0ccfeeae
MM
77362013-03-27 Markus Metzger <markus.t.metzger@intel.com>
7737
7738 * record.c (command_size_to_target_size): Fix size comparison.
7739 Change parameter type from pointer to integer to integer.
7740 Update all users.
7741
40653b35
PM
77422013-03-27 Pierre Muller <muller@sourceware.org>
7743
7744 * windows-nat.c (handle_output_debug_string): Avoid typecast
7745 from integer of different size warning.
7746
c62fa0e2
JB
77472013-03-26 Joel Brobecker <brobecker@adacore.com>
7748
7749 * windows-nat.c (handle_output_debug_string): Add empty line
7750 after local block variable definition.
7751
2c619be2
PA
77522013-03-26 Pedro Alves <palves@redhat.com>
7753
7754 * ser-tcp.c (wait_for_connect): Make 'polls' parameter unsigned.
7755 (net_open): Make 'polls' local unsigned.
7756
1b493192
PA
77572013-03-26 Pedro Alves <palves@redhat.com>
7758
7759 * remote.c (_initialize_remote): Make "set remoteaddresssize"
7760 a zuinteger command instead of uinteger.
7761
7ee70bf5
PA
77622013-03-26 Pedro Alves <palves@redhat.com>
7763
7764 * record-full.c (record_full_insn_num): Make it unsigned.
7765 (record_full_check_insn_num, record_full_message)
7766 (record_full_registers_change, record_full_xfer_partial): Remove
7767 record_full_insn_max_num check (it's always != 0).
7768 (record_full_info, record_full_restore): Use %u as format string.
7769 (): Use %u as format string.
7770 (set_record_full_insn_max_num): Remove record_full_insn_max_num
7771 check (it's always != 0).
7772
dfd1f9bb
PA
77732013-03-26 Pedro Alves <palves@redhat.com>
7774
7775 * dcache.c (_initialize_dcache): Make the "set dcache line-size"
7776 and "set dcache size" commands zuinteger instead of uinteger.
7777
addb4faf
PA
77782013-03-26 Pedro Alves <palves@redhat.com>
7779
7780 * cris-tdep.c (_initialize_cris_tdep): Make the "set cris-version"
7781 command zuinteger instead of uinteger.
7782
b75bf488
PA
77832013-03-26 Pedro Alves <palves@redhat.com>
7784
7785 * coff-pe-read.c (_initialize_coff_pe_read): Make the command
7786 zuinteger instead of uinteger.
7787
42c634cb
PA
77882013-03-26 Pedro Alves <palves@redhat.com>
7789
7790 * record.c (record_insn_history_size_setshow_var)
7791 (record_call_history_size_setshow_var): New globals.
7792 (command_size_to_target_size): New function.
7793 (cmd_record_insn_history, cmd_record_call_history): Use
7794 command_size_to_target_size instead of cast.
7795 (validate_history_size, set_record_insn_history_size)
7796 (set_record_call_history_size): New functions.
7797 (_initialize_record): Install set_record_insn_history_size and
7798 set_record_call_history_size as "set" hooks of "set record
7799 instruction-history-size" and "set record
7800 function-call-history-size".
7801
1fb2e2b5
PA
78022013-03-26 Pedro Alves <palves@redhat.com>
7803
7804 * top.c (gdb_rl_operate_and_get_next): Replace max_input_history
7805 use with history_max_entries use. Remove FIXME note.
7806
99c819ee
MM
78072013-03-26 Markus Metzger <markus.t.metzger@intel.com>
7808
7809 * record-btrace.c (record_btrace_close): Call
7810 record_btrace_auto_disable.
7811
9f9e404c
JB
78122013-03-25 Joel Brobecker <brobecker@adacore.com>
7813
7814 * rs6000-nat.c (fixup_breakpoints): Delete declaration.
7815
ebcdfe33
DE
78162013-03-25 Doug Evans <dje@google.com>
7817
7818 * contrib/cc-with-tweaks.sh: Check exit code of dwp.
7819
24955f63
TT
78202013-03-25 Tom Tromey <tromey@redhat.com>
7821
7822 PR symtab/11462:
7823 * c-exp.y (exp): Add new productions for destructors after '.' and
7824 '->'.
7825 (write_destructor_name): New function.
7826
fce632b6
TT
78272013-03-25 Tom Tromey <tromey@redhat.com>
7828
7829 PR c++/9197:
7830 * opencl-lang.c (evaluate_subexp_opencl) <STRUCTOP_STRUCT>: Use
7831 value_struct_elt, not lookup_struct_elt_type.
7832 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
7833 STRUCTOP_PTR>: Use value_struct_elt, not lookup_struct_elt_type.
7834 * expression.h (EVAL_AVOID_SIDE_EFFECTS): Update comment.
7835
a4341769
YQ
78362013-03-25 Yao Qi <yao@codesourcery.com>
7837
7838 * ctf.c [USE_WIN32API]: Undef 'mkdir' and use 'mkdir'
7839 instead of '_mkdir'.
7840
b5981e5a
EZ
78412013-03-23 Eli Zaretskii <eliz@gnu.org>
7842
7843 * windows-nat.c (windows_get_absolute_argv0): New function.
7844 * windows-nat.h: Add its prototype.
7845
7846 * main.c (get_init_files): Use filename_ncmp instead of strncmp.
7847 Use IS_DIR_SEPARATOR instead of looking for a character inside
7848 SLASH_STRING. Include filenames.h.
7849 (captured_main) [__MINGW32__]: Make argv[0] absolute, so that
7850 relocate_gdb_directory works when passed gdb_program_name.
7851 Include windows-nat.h.
7852
598d3636
JK
78532013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7854
7855 * exceptions.h (enum errors): New entry TARGET_CLOSE_ERROR.
7856 * remote.c (trace_error): Remove the special handling of '2'.
7857 (readchar) <SERIAL_EOF>
7858 (readchar) <SERIAL_ERROR>
7859 (getpkt_or_notif_sane_1): Use TARGET_CLOSE_ERROR for them.
7860 (remote_get_trace_status): Call throw_exception if EX is
7861 TARGET_CLOSE_ERROR.
7862 * utils.c (perror_with_name): Rename to ...
7863 (throw_perror_with_name): ... here. New parameter errcode, describe it
7864 in the function comment.
7865 (perror_with_name): New function wrapper.
7866 * utils.h (enum errors): New stub declaration.
7867 (throw_perror_with_name): New declaration.
7868
82b821e9
PA
78692013-03-22 Pedro Alves <palves@redhat.com>
7870 Yao Qi <yao@codesourcery.com>
7871 Mark Kettenis <kettenis@gnu.org>
7872
7873 * cli/cli-setshow.c (do_set_command) <var_uinteger>:
7874 Don't let the user set the value to UINT_MAX directly.
7875 <var_integer>: Don't let the user set the value to INT_MAX
7876 directly.
7877
78a095c3
JK
78782013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7879
7880 * remote.c (remote_unpush_target): New function.
7881 (remote_open_1): Remove two pop_target calls, update one comment, add
7882 comment to target_preopen call. Replace pop_target call by
7883 remote_unpush_target call.
7884 (interrupt_query, readchar, getpkt_or_notif_sane_1): Replace
7885 pop_target calls by remote_unpush_target calls.
7886
3e74e146
PA
78872013-03-22 Pedro Alves <palves@redhat.com>
7888
7889 * linux-nat.c (linux_child_follow_fork): Don't call
7890 linux_enable_event_reporting.
7891 (linux_handle_extended_wait): Don't call
7892 linux_enable_event_reporting.
7893
a2213dca
PA
78942013-03-22 Pedro Alves <palves@redhat.com>
7895
7896 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Define INSN macro,
7897 use it to rewrite the trampoline buffers with type gdb_byte[], and
7898 undefine the macro. Remove char* cast.
7899
bd712aed
DE
79002013-03-21 Doug Evans <dje@google.com>
7901
7902 New commands "mt set per-command {space,time,symtab} {on,off}".
7903 * NEWS: Add entry.
7904 * event-top.c: #include "maint.h".
7905 * main.c: #include "maint.h".
7906 * maint.c: #include <sys/time.h>, <time.h>, block.h, top.h,
7907 timeval-utils.h, maint.h, cli/cli-setshow.h.
7908 (per_command_time, per_command_space): New static globals.
7909 (per_command_symtab): New static global.
7910 (per_command_setlist, per_command_showlist): New static globals.
7911 (struct cmd_stats): Move here from utils.c.
7912 (set_per_command_time): Renamed from set_display_time in utils.c
7913 and moved here. All callers updated.
7914 (set_per_command_space): Renamed from set_display_space in utils.c
7915 and moved here. All callers updated.
7916 (count_symtabs_and_blocks): New function.
7917 (report_command_stats): Moved here from utils.c. Add support for
7918 printing symtab stats. Only print data if enabled before command
7919 executed.
7920 (make_command_stats_cleanup): Ditto.
7921 (sert_per_command_cmd, show_per_command_cmd): New functions.
7922 (_initialize_maint_cmds): Add new commands
7923 mt set per-command {space,time,symtab} {on,off}.
7924 * maint.h: New file.
7925 * top.c: #include "maint.h".
7926 * utils.c (reset_prompt_for_continue_wait_time): New function.
7927 (get_prompt_for_continue_wait_time): New function.
7928 * utils.h (reset_prompt_for_continue_wait_time): Declare
7929 (get_prompt_for_continue_wait_time): Declare.
7930 (make_command_stats_cleanup): Moved to maint.h.
7931 (set_display_time, set_display_space): Moved to maint.h and renamed
7932 to set_per_command_time, set_per_command_space.
7933 * cli/cli-setshow.c (parse_cli_boolean_value): Renamed from
7934 parse_binary_operation and made non-static. Don't call error,
7935 just return an error marker. All callers updated.
7936 * cli/cli-setshow.h (parse_cli_boolean_value): Declare.
7937
d76488d8
TT
79382013-03-21 Tom Tromey <tromey@redhat.com>
7939
7940 * symfile.c (alloc_section_addr_info): Update header. Don't set
7941 'num_sections' field.
7942 (build_section_addr_info_from_section_table): Set 'num_sections'.
7943 (build_section_addr_info_from_bfd): Likewise.
7944 (build_section_addr_info_from_objfile): Remove dead loop
7945 condition.
7946 (free_section_addr_info): Unconditionally call xfree.
7947 (relative_addr_info_to_section_offsets, addrs_section_sort)
7948 (addr_info_make_relative, syms_from_objfile_1): Remove dead loop
7949 condition.
7950 (syms_from_objfile_1): Remove dead 'if' condition. Check
7951 'num_sections'.
7952 (add_symbol_file_command): Set 'num_sections'.
7953 * symfile-mem.c (symbol_file_add_from_memory): Set
7954 'num_sections'.
7955 * somread.c (som_symfile_offsets): Remove dead loop condition.
7956 * machoread.c (macho_symfile_offsets): Remove dead 'if'.
7957 * jit.c (jit_bfd_try_read_symtab): Set 'num_sections'.
7958
a72e5169 79592013-03-21 Tom Tromey <tromey@redhat.com>
92bc6a20
TT
7960
7961 * tracepoint.h (decode_agent_options): Add 'trace_string'
7962 argument.
7963 * tracepoint.c (decode_agent_options): Add 'trace_string'
7964 argument.
7965 (validate_actionline): Update.
7966 (collect_symbol): Add 'trace_string' argument.
7967 (struct add_local_symbols_data) <trace_string>: New field.
7968 (do_collect_symbol): Update.
7969 (add_local_symbols): Add 'trace_string' argument.
7970 (encode_actions_1): Update.
7971 (trace_dump_actions): Update.
7972 * dwarf2loc.c (access_memory): Update.
7973 * ax.h (struct agent_expr) <tracing, trace_string>: New fields.
7974 * ax-general.c (new_agent_expr): Update.
7975 * ax-gdb.h (gen_trace_for_expr, gen_trace_for_var)
7976 (gen_trace_for_return_address): Add argument.
7977 (trace_kludge, trace_string_kludge): Remove.
7978 * ax-gdb.c (trace_kludge, trace_string_kludge): Remove.
7979 (gen_traced_pop, gen_fetch, gen_bitfield_ref, gen_expr): Update.
7980 (gen_trace_for_var): Add 'trace_string' argument.
7981 (gen_trace_for_expr, gen_trace_for_return_address): Likewise.
7982 (gen_printf, agent_eval_command_one): Update.
7983
b2f83c08
TT
79842013-03-21 Tom Tromey <tromey@redhat.com>
7985
7986 PR exp/15109:
7987 * c-exp.y (yylex): Rewrite to push all tokens onto the FIFO.
7988 Handle FILENAME token.
7989
9507860e
TT
79902013-03-21 Tom Tromey <tromey@redhat.com>
7991
7992 * c-exp.y (YYPRINT): Define.
7993 (c_print_token): New function.
7994
e403aa4b
TT
79952013-03-21 Tom Tromey <tromey@redhat.com>
7996
7997 * c-exp.y (%union) <sym, ivar, ivec>: Remove.
7998
af307d6a
YQ
79992013-03-21 Yao Qi <yao@codesourcery.com>
8000
8001 * ctf.c: Include "gdb_stat.h".
8002 [USE_WIN32API]: New macro 'mkdir'.
8003 (ctf_start): Use permission bits macros if they are defined.
8004
fb81d016
KS
80052013-03-20 Keith Seitz <keiths@redhat.com>
8006
8007 * breakpoint.h (struct breakpoint): Add comment to
8008 extra_string indicating that this member is mallod'd.
8009 * breakpoint.c (base_breakpoint_dtor): Free extra_string.
8010
ef0026f0
PA
80112013-03-20 Pedro Alves <palves@redhat.com>
8012
8013 PR gdb/15289
8014
8015 * cli/cli-setshow.c (do_set_command)
8016 <var_uinteger, var_zuinteger>: Use LONGEST for variable holding
8017 the result of parsing the command argument. Throw error if the
8018 value is greater than UINT_MAX. Print the invalid value with
8019 plongest.
8020 <var_integer, var_zinteger>: Use LONGEST for variable holding the
8021 result of parsing the command argument. Throw error if the value
8022 is greater than INT_MAX, not greater or equal. Also throw error
8023 if the value is less than INT_MIN. Print the invalid value with
8024 plongest.
8025 <var_zuinteger_unlimited>: Throw error if the value is greater
8026 than INT_MAX, not greater or equal.
8027 (do_show_command) <var_integer, var_zinteger,
8028 var_zuinteger_unlimited>: Use %d for printing int, not %u.
8029
24d6c2a0
TT
80302013-03-20 Tom Tromey <tromey@redhat.com>
8031
8032 * ax-gdb.c (gen_var_ref): Unconditionally call via computed ops,
8033 if possible.
8034 * dwarf2read.c (read_func_scope): Remove old FIXME.
8035 * eval.c (evaluate_subexp_standard): Check SYMBOL_COMPUTED_OPS,
8036 not LOC_COMPUTED.
8037 * findvar.c (symbol_read_needs_frame, default_read_var_value):
8038 Unconditionally call via computed ops, if possible.
8039 * printcmd.c (address_info): Unconditionally call via computed ops,
8040 if possible.
8041 * stack.c (read_frame_arg): Unconditionally call via computed ops,
8042 if possible.
8043 * symtab.c (register_symbol_computed_impl): Sanity check 'ops'.
8044 * tracepoint.c (scope_info): Unconditionally call via computed ops,
8045 if possible.
8046
f1e6e072
TT
80472013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
8048 Tom Tromey <tromey@redhat.com>
8049
8050 PR symtab/8421:
8051 * coffread.c (coff_register_index): New global.
8052 (process_coff_symbol, coff_read_enum_type): Set
8053 SYMBOL_ACLASS_INDEX.
8054 (_initialize_coffread): Initialize new global.
8055 * dwarf2loc.c (locexpr_find_frame_base_location)
8056 (dwarf2_block_frame_base_locexpr_funcs)
8057 (loclist_find_frame_base_location)
8058 (dwarf2_block_frame_base_loclist_funcs): New.
8059 (dwarf_expr_frame_base_1): Call SYMBOL_BLOCK_OPS, remove internal_error.
8060 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Add location_has_loclist.
8061 * dwarf2loc.h (dwarf2_block_frame_base_locexpr_funcs)
8062 (dwarf2_block_frame_base_loclist_funcs): New.
8063 * dwarf2read.c (dwarf2_locexpr_index, dwarf2_loclist_index)
8064 (dwarf2_locexpr_block_index, dwarf2_loclist_block_index): New
8065 globals.
8066 (read_func_scope): Update.
8067 (fixup_go_packaging, mark_common_block_symbol_computed)
8068 (var_decode_location, new_symbol_full, dwarf2_const_value):
8069 Set SYMBOL_ACLASS_INDEX.
8070 (dwarf2_symbol_mark_computed): Likewise. Add 'is_block' argument.
8071 (_initialize_dwarf2_read): Initialize new globals.
8072 * jit.c (finalize_symtab): Set SYMBOL_ACLASS_INDEX.
8073 * jv-lang.c (add_class_symbol): Set SYMBOL_ACLASS_INDEX.
8074 * mdebugread.c (mdebug_register_index, mdebug_regparm_index): New
8075 globals.
8076 (parse_symbol, psymtab_to_symtab_1): Set SYMBOL_ACLASS_INDEX.
8077 (_initialize_mdebugread): Initialize new globals.
8078 * psympriv.h (struct partial_symbol) <aclass>: Update comment.
8079 * stabsread.c (patch_block_stabs): Set SYMBOL_ACLASS_INDEX.
8080 (stab_register_index, stab_regparm_index): New globals.
8081 (define_symbol, read_enum_type, common_block_end): Set
8082 SYMBOL_ACLASS_INDEX.
8083 (_initialize_stabsread): Initialize new globals.
8084 * symtab.c (next_aclass_value, symbol_impl, symbol_impls): New
8085 globals.
8086 (MAX_SYMBOL_IMPLS): New define.
8087 (register_symbol_computed_impl, register_symbol_block_impl)
8088 (register_symbol_register_impl)
8089 (initialize_ordinary_address_classes): New functions.
8090 (_initialize_symtab): Call initialize_ordinary_address_classes.
8091 * symtab.h (enum address_class) <LOC_FINAL_VALUE>: New constant.
8092 (struct symbol_impl): New.
8093 (SYMBOL_ACLASS_BITS): New define.
8094 (struct symbol) <aclass, ops>: Remove fields.
8095 <aclass_index>: New field.
8096 (symbol_impls): Declare.
8097 (SYMBOL_CLASS, SYMBOL_COMPUTED_OPS, SYMBOL_REGISTER_OPS): Redefine.
8098 (SYMBOL_IMPL, SYMBOL_ACLASS_INDEX): New defines.
8099 (register_symbol_computed_impl, register_symbol_block_impl)
8100 (register_symbol_register_impl): Declare.
8101 (struct symbol_computed_ops): Add location_has_loclist.
8102 (struct symbol_block_ops): New.
8103 (SYMBOL_BLOCK_OPS): New.
8104 * xcoffread.c (process_xcoff_symbol): Set SYMBOL_ACLASS_INDEX.
8105
dbccfd4c
TT
81062013-03-20 Tom Tromey <tromey@redhat.com>
8107
8108 * psymtab.c (find_pc_sect_psymbol, fixup_psymbol_section)
8109 (print_partial_symbols, recursively_search_psymtabs): Use
8110 PSYMBOL_CLASS.
8111
e3f1ad4f
PM
81122013-03-20 Pierre Muller <muller@sourceware.org>
8113
8114 * contrib/ari/gdb_ari.sh (OP eol rule): Also check
8115 addtion, subtraction, multiplication and division binary operator.
8116
460014f5
JK
81172013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
8118
8119 Code cleanup.
8120 * bfd-target.c (target_bfd_xclose): Remove parameter quitting.
8121 * bsd-kvm.c (bsd_kvm_close): Likewise.
8122 * bsd-uthread.c (bsd_uthread_close): Likewise.
8123 * corelow.c (core_close): Likewise.
8124 (core_close_cleanup): Remove parameter quitting from a caller.
8125 * event-top.c (async_disconnect): Likewise.
8126 * exec.c (exec_close_1): Remove parameter quitting.
8127 * go32-nat.c (go32_close): Likewise.
8128 * linux-nat.c (linux_nat_close): Remove parameter quitting. Remove
8129 parameter quitting from a caller.
8130 * mips-linux-nat.c (super_close): Remove parameter quitting from the
8131 variable.
8132 (mips_linux_close): Remove parameter quitting. Remove parameter
8133 quitting from a caller.
8134 * monitor.c (monitor_close): Remove parameter quitting.
8135 * monitor.h (monitor_close): Likewise.
8136 * record-btrace.c (record_btrace_close): Likewise.
8137 * record-full.c (record_full_close): Likewise.
8138 * remote-m32r-sdi.c (m32r_close): Remove parameter quitting and remove
8139 it also from fprintf_unfiltered.
8140 * remote-mips.c (mips_close): Remove parameter quitting.
8141 (mips_detach): Remove parameter quitting from a caller.
8142 * remote-sim.c (gdbsim_close): Remove parameter quitting.
8143 (gdbsim_close): Remove duplicate function comment. Remove parameter
8144 quitting and remove it also from printf_filtered.
8145 * remote.c (remote_close): Remove parameter quitting.
8146 * solib-svr4.c (enable_break): Remove parameter quitting from a caller.
8147 * target.c (update_current_target): Remove parameter int from to_close
8148 de_fault.
8149 (push_target, unpush_target, pop_target): Remove parameter quitting from
8150 a caller.
8151 (pop_all_targets_above, pop_all_targets): Remove parameter quitting.
8152 Remove parameter quitting from a caller.
8153 (target_preopen): Remove parameter quitting from a caller.
8154 (target_close): Remove parameter quitting. Remove parameter quitting
8155 from a caller two times. Remove parameter quitting also from
8156 fprintf_unfiltered.
8157 * target.h (struct target_ops): Remove parameter quitting and as int
8158 from fields to_xclose and to_close.
8159 (extern struct target_ops current_target):
8160 (target_close, pop_all_targets): Remove parameter quitting. Update the
8161 comment.
8162 (pop_all_targets_above): Remove parameter quitting.
8163 * top.c (quit_target): Remove parameter quitting from a caller.
8164 * tracepoint.c (tfile_close): Remove parameter quitting.
8165 * windows-nat.c (windows_close): Remove parameter quitting.
8166
35a7120b
CV
81672013-03-20 Corinna Vinschen <vinschen@redhat.com>
8168
8169 * windows-nat.c (handle_output_debug_string): Replace call
8170 to string_to_core_addr with call to strtoull.
8171
8249a5a9
YQ
81722013-03-20 Yao Qi <yao@codesourcery.com>
8173
8174 * ctf.c (ctf_save_metadata_header): Define macro HOST_ENDIANNESS
8175 and write it to CTF metadata.
8176
2c15ef43
CV
81772013-03-19 Corinna Vinschen <vinschen@redhat.com>
8178
8179 * windows-nat.c (handle_output_debug_string): Change type of n to
8180 SIZE_T to avoid crash on 64 bit systems.
8181
1cdd3232
EZ
81822013-03-17 Eli Zaretskii <eliz@gnu.org>
8183
8184 * python/python-internal.h (HAVE_SNPRINTF)
8185 [_WIN32 && HAVE_DECL_SNPRINTF]: Define, to avoid compiler warnings
8186 about redefinition of snprintf by pyerrors.h.
8187
3cb2ab1a
SE
81882013-03-15 Steve Ellcey <sellcey@mips.com>
8189
8190 * remote-sim.c (sim_command_completer): Make char arguments const.
8191
9ce98649
TT
81922013-03-15 Tom Tromey <tromey@redhat.com>
8193
8194 PR c++/15116:
8195 * gdbtypes.c (types_equal): Handle TYPE_CODE_FUNC.
8196
dccee2de
TT
81972013-03-14 Tom Tromey <tromey@redhat.com>
8198
8199 * gdb_bfd.c (struct gdb_bfd_data) <crc_computed, crc>:
8200 New fields.
8201 (get_file_crc): Move from symfile.c.
8202 (gdb_bfd_crc): New function.
8203 * gdb_bfd.h (gdb_bfd_crc): Declare.
8204 * objfiles.h (struct objfile) <crc32, crc32_p>: Remove.
8205 * symfile.c (get_file_crc): Move to gdb_bfd.c.
8206 (separate_debug_file_exists): Use gdb_bfd_crc.
8207
cc0ea93c
TT
82082013-03-14 Tom Tromey <tromey@redhat.com>
8209
8210 * symfile.c (get_debug_link_info): Remove.
8211 (find_separate_debug_file_by_debuglink): Use
8212 bfd_get_debug_link_info.
8213
08c23b0d
TT
82142013-03-14 Tom Tromey <tromey@redhat.com>
8215
8216 * symtab.c (error_in_psymtab_expansion): New function.
8217 (lookup_symbol_aux_quick)
8218 (basic_lookup_transparent_type_quick): Remove "last resort"
8219 code. Use error_in_psymtab_expansion.
8220
288e77a7
JK
82212013-03-14 Doug Evans <dje@google.com>
8222 Jan Kratochvil <jan.kratochvil@redhat.com>
8223
8224 * dwarf2read.c (dw2_map_symtabs_matching_filename): Put continue after
8225 any successful compare_filenames_for_search or FILENAME_CMP.
8226 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
8227 * symtab.c (iterate_over_some_symtabs): Likewise.
8228
8f1b8b82
JK
82292013-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8230
8231 * source.c (print_source_lines_base): Make a local copy of
8232 symtab_to_fullname.
8233
23eb71e4
JK
82342013-03-14 Hui Zhu <hui_zhu@mentor.com>
8235 Jan Kratochvil <jan.kratochvil@redhat.com>
8236
8237 * source.c (print_source_lines_base): Suppress "file" for TUI.
8238
bb869963
SDJ
82392013-03-14 Keith Seitz <keiths@redhat.com>
8240 Alan Matsuoka <alanm@redhat.com>
8241
8242 PR c++/15203
8243 PR c++/15210
8244 * cp-namespace.c (cp_lookup_nested_symbol): Handle TYPE_CODE_FUNC and
8245 TYPE_CODE_METHOD.
8246 * elfread.c (elf_symtab_read): Handle BSF_GNU_UNIQUE for certain
8247 symbols.
8248
d6682f9e
YQ
82492013-03-14 Yao Qi <yao@codesourcery.com>
8250
8251 * tracepoint.c (tfile_write_status): Write 'stop_desc' of trace
8252 status to tfile if trace is stopped by command 'tstop'.
8253
a22fa6e4
YQ
82542013-03-14 Yao Qi <yao@codesourcery.com>
8255
8256 * tracepoint.c (tfile_write_status): Write trace notes and user
8257 name into tfile if they are not NULL.
8258
d0353e76
YQ
82592013-03-14 Hui Zhu <hui@codesourcery.com>
8260 Yao Qi <yao@codesourcery.com>
8261
8262 * Makefile.in (REMOTE_OBS): Add ctf.o.
8263 (SFILES): Add ctf.c.
8264 (HFILES_NO_SRCDIR): Add ctf.h.
8265 * ctf.c, ctf.h: New files.
8266 * tracepoint.c: Include 'ctf.h'.
8267 (collect_pseudocommand): Remove static.
8268 (trace_save_command): Parse option "-ctf".
8269 Produce different trace file writers per option.
8270 Adjust output message.
8271 (trace_save_tfile, trace_save_ctf): New.
8272 * tracepoint.h (trace_save_tfile, trace_save_ctf): Declare.
8273 * mi/mi-main.c: Include 'ctf.h'.
8274 (mi_cmd_trace_save): Handle option '-ctf'. Call either
8275 trace_save_tfile or trace_save_ctf.
8276 * NEWS: Mention these changes.
8277
3f43bc09
YQ
82782013-03-14 Yao Qi <yao@codesourcery.com>
8279
8280 * tracepoint.c (trace_file_writer_xfree): New.
8281 (struct tfile_writer_data): New.
8282 (tfile_dtor, tfile_can_target_save, tfile_start): New.
8283 (tfile_write_header, tfile_write_regblock_type): New.
8284 (tfile_write_status, tfile_write_uploaded_tsv): New.
8285 (tfile_write_uploaded_tp, tfile_write_definition_end): New.
8286 (tfile_write_raw_data, (tfile_end): New.
8287 (tfile_write_ops): New global variable.
8288 (TRACE_WRITE_R_BLOCK): New macro.
8289 (TRACE_WRITE_M_BLOCK_HEADER): New macro.
8290 (TRACE_WRITE_M_BLOCK_MEMORY): New macro.
8291 (TRACE_WRITE_V_BLOCK): New macro.
8292 (trace_save): Add extra one parameter WRITER. Make it static.
8293 Use WRITER to writer trace.
8294 (tfile_trace_file_writer_new): New.
8295 (trace_save_command): Caller update.
8296 (trace_save_tfile): Write trace data in TFILE format.
8297 * tracepoint.h (struct trace_frame_write_ops): New.
8298 (struct trace_file_write_ops): New.
8299 (struct trace_file_writer): New.
8300 (trace_save): Remove its declaration.
8301 (trace_save_tfile): Declare it.
8302 * mi/mi-main.c (mi_cmd_trace_save): Call trace_save_tfile
8303 instead of trace_save.
8304
58665b40
PA
83052013-03-13 Pedro Alves <palves@redhat.com>
8306
8307 * hppa-hpux-nat.c (hppa_hpux_save_state_offset): Make static.
8308
10217050
PA
83092013-03-13 Pedro Alves <palves@redhat.com>
8310
8311 * dbxread.c (read_ofile_symtab, process_one_symbol): Remove
8312 commented out code.
8313 * demangle.c (current_demangling_style_string): Make it const.
8314 (set_demangling_command): Assert the demangling style is known.
8315 Remove all handling of unknown styles. Set
8316 'current_demangling_style_string' to an element of the
8317 demangling_style_names array.
8318 (set_demangling_style): Delete.
8319 (_initialize_demangler): Set current_demangling_style_string to the
8320 element of the demangling_style_names array that corresponds to
8321 the default demangling style. Remove FIXME note. Don't call
8322 set_demangling_style.
8323 * gdb-demangle.h (set_demangling_style): Remove declaration.
8324
6f937416
PA
83252013-03-13 Pedro Alves <palves@redhat.com>
8326
8327 * ada-lang.c (struct add_partial_datum) <text, text0, word>: Make
8328 fields const.
8329 (ada_make_symbol_completion_list): Make "text0" parameter const.
8330 * ax-gdb.c (agent_eval_command_one): Make "exp" parameter const.
8331 * breakpoint.c (condition_completer): Make "text" and "word"
8332 parameters const. Adjust.
8333 (check_tracepoint_command): Adjust to validate_actionline
8334 prototype change.
8335 (catch_syscall_completer): Make "text" and "word" parameters
8336 const.
8337 * cli/cli-cmds.c (show_user): Make "comname" local const.
8338 (valid_command_p): Make "command" parameter const.
8339 (alias_command): Make "alias_prefix" and "command_prefix" locals
8340 const.
8341 * cli/cli-decode.c (add_cmd): Make "name" parameter const.
8342 (add_alias_cmd): Make "name" and "oldname" parameters const.
8343 Adjust. No longer make copy of OLDNAME.
8344 (add_prefix_cmd, add_abbrev_prefix_cmd, add_set_or_show_cmd)
8345 (add_setshow_cmd_full, add_setshow_enum_cmd)
8346 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
8347 (add_setshow_filename_cmd, add_setshow_string_cmd)
8348 (add_setshow_string_noescape_cmd)
8349 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
8350 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
8351 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd)
8352 (delete_cmd, add_info, add_info_alias, add_com, add_com_alias):
8353 Make "name" parameter const.
8354 (help_cmd): Rename "command" parameter to "arg". New const local
8355 "command".
8356 (find_cmd): Make "command" parameter const.
8357 (lookup_cmd_1): Make "text" parameter pointer to const. Adjust to
8358 deprecated_cmd_warning prototype change.
8359 (undef_cmd_error): Make "cmdtype" parameter const.
8360 (lookup_cmd): Make "line" parameter const.
8361 (deprecated_cmd_warning): Change type of "text" parameter to
8362 pointer to const char, from pointer to pointer to char. Adjust.
8363 (lookup_cmd_composition): Make "text" parameter const.
8364 (complete_on_cmdlist, complete_on_enum): Make "text" and "word"
8365 parameters const.
8366 * cli/cli-decode.h (struct cmd_list_element) <name>: Make field
8367 const.
8368 * cli/cli-script.c (validate_comname): Make "tem" local const.
8369 (define_command): New const local "tem_c". Use it in calls to
8370 lookup_cmd.
8371 (document_command): Make "tem" and "comfull" locals const.
8372 (show_user_1): Make "prefix" and "name" parameters const.
8373 * cli-script.h (show_user_1): Make "prefix" and "name" parameters
8374 const.
8375 * command.h (add_cmd, add_alias_cmd, add_prefix_cmd)
8376 (add_abbrev_prefix_cmd, completer_ftype, lookup_cmd, lookup_cmd_1)
8377 (deprecated_cmd_warning, lookup_cmd_composition, add_com)
8378 (add_com_alias, add_info, add_info_alias, complete_on_cmdlist)
8379 (complete_on_enum, add_setshow_enum_cmd)
8380 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
8381 (add_setshow_filename_cmd, add_setshow_string_cmd)
8382 (add_setshow_string_noescape_cmd)
8383 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
8384 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
8385 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
8386 Change prototypes, constifying strings.
8387 * completer.c (noop_completer, filename_completer): Make "text"
8388 and "prefix" parameters const.
8389 (location_completer, expression_completer)
8390 (complete_line_internal): Make "text" and "prefix" parameters
8391 const and adjust.
8392 (command_completer, signal_completer): Make "text" and "prefix"
8393 parameters const.
8394 * completer.h (noop_completer, filename_completer)
8395 (expression_completer, location_completer, command_completer)
8396 (signal_completer): Change prototypes.
8397 * corefile.c (complete_set_gnutarget): Make "text" and "word"
8398 parameters const.
8399 * cp-abi.c (cp_abi_completer): Likewise.
8400 * expression.h (parse_expression_for_completion): Change
8401 prototype.
8402 * f-lang.c (f_make_symbol_completion_list): Make "text" and "word"
8403 parameters const.
8404 * infcmd.c (_initialize_infcmd): Make "cmd_name" local const.
8405 * infrun.c (handle_completer): Make "text" and "word" parameters
8406 const.
8407 * interps.c (interpreter_completer): Make "text" and "word"
8408 parameters const.
8409 * language.h (struct language_defn)
8410 <la_make_symbol_completion_list>: Make "text" and "word"
8411 parameters const.
8412 * parse.c (parse_exp_1): Move const hack to parse_exp_in_context.
8413 (parse_exp_in_context): Rename to ...
8414 (parse_exp_in_context_1): ... this.
8415 (parse_exp_in_context): Reimplement, with const hack from
8416 parse_exp_1.
8417 (parse_expression_for_completion): Make "string" parameter const.
8418 * printcmd.c (decode_format): Make "string_ptr" parameter pointer
8419 to pointer to const char. Adjust.
8420 (print_command_1): Make "exp" parameter const.
8421 (output_command): Rename to ...
8422 (output_command_const): ... this. Make "exp" parameter const.
8423 (output_command): Reimplement.
8424 (x_command): Adjust.
8425 (display_command): Rename "exp" parameter to "arg". New "exp"
8426 local, const version of "arg".
8427 * python/py-auto-load.c (gdbpy_initialize_auto_load): Make
8428 "cmd_name" local const.
8429 * python/py-cmd.c (cmdpy_destroyer): Cast const away in xfree
8430 call.
8431 (cmdpy_completer): Make "text" and "word" parameters const.
8432 (gdbpy_parse_command_name): Make "prefix_text2" local const.
8433 * python/py-param.c (add_setshow_generic): Make "tmp_name" local
8434 const.
8435 * remote.c (_initialize_remote): Make "cmd_name" local const.
8436 * symtab.c (language_search_unquoted_string): Make "text" and "p"
8437 parameters const. Adjust.
8438 (completion_list_add_fields): Make "sym_text", "text" and "word"
8439 parameters const.
8440 (struct add_name_data) <sym_text, text, word>: Make fields const.
8441 (default_make_symbol_completion_list_break_on): Make "text" and
8442 "word" parameters const. Adjust locals.
8443 (default_make_symbol_completion_list)
8444 (make_symbol_completion_list, make_symbol_completion_type)
8445 (make_symbol_completion_list_fn): Make "text" and "word"
8446 parameters const.
8447 (make_file_symbol_completion_list): Make "text", "word" and
8448 "srcfile" parameters const. Adjust locals.
8449 (add_filename_to_list): Make "text" and "word" parameters const.
8450 (struct add_partial_filename_data) <text, word>: Make fields
8451 const.
8452 (make_source_files_completion_list): Make "text" and "word"
8453 parameters const.
8454 * symtab.h (default_make_symbol_completion_list_break_on)
8455 (default_make_symbol_completion_list, make_symbol_completion_list)
8456 (make_symbol_completion_type enum type_code)
8457 (make_symbol_completion_list_fn make_file_symbol_completion_list)
8458 (make_source_files_completion_list): Change prototype.
8459 * top.c (execute_command): Adjust to pass pointer to pointer to
8460 const char to lookup_cmd, and to deprecated_cmd_warning prototype
8461 change.
8462 (set_verbose): Make "cmdname" local const.
8463 * tracepoint.c (decode_agent_options): Make "exp" parameter const,
8464 and adjust.
8465 (validate_actionline): Make "line" parameter a pointer to const
8466 char, and adjust.
8467 (encode_actions_1): Make "action_exp" local const, and adjust.
8468 (encode_actions): Adjust.
8469 (replace_comma): Delete.
8470 (trace_dump_actions): Make "action_exp" and "next_comma" locals
8471 const, and adjust. Don't frob the action string while splitting
8472 it at commas. Instead, make a copy of each split substring in
8473 turn.
8474 (trace_dump_command): Adjust to validate_actionline prototype
8475 change.
8476 * tracepoint.h (decode_agent_options, decode_agent_options)
8477 (encode_actions, validate_actionline): Change prototypes.
8478 * valprint.h (output_command): Delete declaration.
8479 (output_command_const): Declare.
8480 * value.c (function_destroyer): Cast const away in xfree call.
8481
a0bcdaa7
PA
84822013-03-13 Pedro Alves <palves@redhat.com>
8483
8484 * ada-lang.c (ada_decode_symbol): Cast away constness of GSYMBOL
8485 rather than casting 'const char * const *' to 'const char **'.
8486 * ada-lex.l (processInt): Make "trailer" local const. Remove
8487 'const char **' cast.
8488 * arm-linux-tdep.c (arm_stap_parse_special_token): Add 'char *'
8489 locals, and use those as strtol output pointer, instead than doing
8490 invalid casts to from 'const char **' to 'char **'.
8491 (_initialize_demangle): Remove cast.
8492 * i386-tdep.c (i386_stap_parse_special_token): : Add 'char *'
8493 locals, and use those as strtol output pointer, instead than doing
8494 invalid casts to from 'const char **' to 'char **'.
8495 * solib-dsbt.c (dsbt_get_initial_loadmaps): Remove 'gdb_byte**'
8496 casts.
8497 * stap-probe.c (stap_parse_register_operand)
8498 (stap_parse_single_operand): Likewise.
8499
8ddb1965
YQ
85002013-03-13 Yao Qi <yao@codesourcery.com>
8501
8502 * tracepoint.c (tfile_get_trace_state_variable_value): Look for
8503 the last matched 'V' blcok in trace frame.
8504
2d450646
JB
85052013-03-12 Joel Brobecker <brobecker@adacore.com>
8506
8507 * NEWS: Create a new section for the next release branch.
8508 Rename the section of the current branch, now that it has
8509 been cut.
8510
b4b79973 85112013-03-12 Joel Brobecker <brobecker@adacore.com>
8512
8513 GDB 7.6 branch created (branch timestamp: 2013-03-12 22:15 UTC)
8514 * version.in: Bump version to 7.6.50.20130312-cvs.
8515
ee047554
KS
85162013-03-12 Keith Seitz <keiths@redhat.com>
8517
8518 * mi/mi-cmds.h (mi_execute_command): Make "cmd" const.
8519 * mi/mi-interp.c (mi_interpreter_exec): Make "command" const.
8520 Remove temporary copy of input string.
8521 (mi_execute_command_wrapper): Make "cmd" const.
8522 * mi/mi-main.c (mi_execute_command): Make "string_ptr" const.
8523 * mi/mi-parse.c (mi_parse_argv): Make "args" const.
8524 Use const strings.
8525 (mi_parse): Make "cmd" const.
8526 Use const strings.
8527 * mi/mi-parse.h (mi_parse): Make "cmd" const.
8528
bbc13ae3
KS
85292013-03-12 Keith Seitz <keiths@redhat.com>
8530
8531 * ada-lang.c (ada_read_renaming_var_value): Pass const
8532 pointer to expression string to parse_exp_1.
8533 (create_excep_cond_exprs): Likewise.
8534 * ax-gdb.c (agent_eval_command_one): Likewise.
8535 (maint_agent_printf_command): Likewise.
8536 Constify much of the string handling/parsing.
8537 * breakpoint.c (set_breakpoint_condition): Pass const
8538 pointer to expression string to parse_exp_1.
8539 (update_watchpoint): Likewise.
8540 (parse_cmd_to_aexpr): Constify string handling.
8541 Pass const pointer to parse_exp_1.
8542 (init_breakpoint_sal): Pass const pointer to parse_exp_1.
8543 (find_condition_and_thread): Likewise.
8544 Make TOK const.
8545 (watch_command_1): Make "arg" const.
8546 Constify string handling.
8547 Copy the expression string instead of changing the input
8548 string.
8549 (update_breakpoint_location): Pass const pointer to
8550 parse_exp_1.
8551 * eval.c (parse_and_eval_address): Make "exp" const.
8552 (parse_to_comma_and_eval): Make "expp" const.
8553 (parse_and_eval): Make "exp" const.
8554 * expression.h (parse_expression): Make argument const.
8555 (parse_exp_1): Make first argument const.
8556 * findcmd.c (parse_find_args): Treat "args" as const.
8557 * linespec.c (parse_linespec): Pass const pointer to
8558 linespec_expression_to_pc.
8559 (linespec_expression_to_pc): Make "exp_ptr" const.
8560 * parse.c (parse_exp_1): Make "stringptr" const.
8561 Make a copy of the expression to pass to parse_exp_in_context until
8562 this whole interface can be constified.
8563 (parse_expression): Make "string" const.
8564 * printcmd.c (ui_printf): Treat "arg" as const.
8565 Handle const strings.
8566 * tracepoint.c (validate_actionline): Pass const pointer to
8567 all calls to parse_exp_1.
8568 (encode_actions_1): Likewise.
8569 * value.h (parse_to_comma_and_eval): Make argument const.
8570 (parse_and_eval_address): Likewise.
8571 (parse_and_eval): Likewise.
8572 * varobj.c (varobj_create): Pass const pointer to parse_exp_1.
8573 (varobj_set_value): Likewise.
8574 * cli/cli-cmds.c (disassemble_command): Treat "arg" as const and
8575 constify string handling.
8576 Pass const pointers to parse_and_eval_address and
8577 parse_to_comman_and_eval.
8578 * cli/cli-utils.c (skip_to_space): Rename to ...
8579 (skip_to_space_const): ... this. Handle const strings.
8580 * cli/cli-utils.h (skip_to_space): Turn into macro which invokes
8581 skip_to_space_const.
8582 (skip_to_space_const): Declare.
8583 * common/format.c (parse_format_string): Make "arg" const.
8584 Handle const strings.
8585 * common/format.h (parse_format_string): Make "arg" const.
8586 * gdbserver/ax.c (ax_printf): Make "format" const.
8587 * python/python.c (gdbpy_parse_and_eval): Do not make a copy
8588 of the expression string.
8589
f3cec7e6
HZ
85902013-03-12 Hui Zhu <hui@codesourcery.com>
8591
8592 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Update error message.
8593
9df7235c
HZ
85942013-03-12 Yao Qi <yao@codesourcery.com>
8595 Hui Zhu <hui@codesourcery.com>
8596
8597 * dwarf2loc.c (access_memory): Change nbits to nbytes in gdb_assert.
8598 (dwarf2_compile_expr_to_ax): Call access_memory in DW_OP_deref and
8599 DW_OP_deref_size.
8600
82d049ab
PH
86012013-03-12 Paul Hilfinger <hilfingr@adacore.com>
8602
5f8e0b8f
MF
8603 * ada-lex.l (rules): Only recognize 'thread' as a
8604 delimiter when followed by numerals, as for c-exp.y.
8605 Use new rewind_to_char function to rewind the input for
8606 expression-delimiting tokens.
8607 (rewind_to_char): New function.
82d049ab 8608
8c1fb155
JK
86092013-03-11 Pedro Alves <palves@redhat.com>
8610 Jan Kratochvil <jan.kratochvil@redhat.com>
8611
8612 * configure: Regenerate.
8613 * configure.ac (check dynamic export flag): Link python test with
8614 $PYTHON_LIBS.
8615
cc81e1c6
DE
86162013-03-11 Doug Evans <dje@google.com>
8617 Keith Seitz <keiths@redhat.com>
8618
8619 * linespec.c (find_linespec_symbols): Call find_function_symbols
8620 first, and then call lookup_prefix_sym/find_method.
8621
39086a0e
PA
86222013-03-11 Pedro Alves <palves@redhat.com>
8623
8624 * charset.c (convert_between_encodings): Don't cast between
8625 different pointer to pointer types. Instead, make the 'inp' local
8626 be of the type iconv expects.
8627 (wchar_iterate): Don't cast between different pointer to pointer
8628 types. Instead, use new pointer local of the type iconv expects.
8629 * target.c (target_read_stralloc, target_fileio_read_stralloc):
8630 Add new local of type char pointer, and use it to get a
8631 char/string view of the byte buffer, instead of casting between
8632 pointer to pointer types.
8633
90585175
HAQ
86342013-03-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
8635
8636 * remote.c (remote_set_trace_buffer_size): Move != operator
8637 to the start of next line to fix an ARI warning.
8638
59ea5688
MM
86392013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8640
8641 * NEWS: Add record changes.
8642
946287b7
MM
86432013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8644
8645 * record-btrace.c (btrace_insn_history): Omit the pc prefix in
8646 the instruction history disassembly.
8647 * disasm.c (dump_insns): Omit the pc prefix, if requested.
8648 * disasm.h (DISASSEMBLY_OMIT_PC): New.
8649
afedecd3
MM
86502013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8651
8652 * Makefile.in (SFILES): Add record-btrace.c
8653 (COMMON_OBS): Add record-btrace.o
8654 * record-btrace.c: New.
8655 * objfiles.c: Include btrace.h.
8656 (free_objfile): call btrace_free_objfile.
8657
15984c13
MM
86582013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8659
8660 * target.c (target_call_history, target_call_history_from,
8661 target_call_history_range): New.
8662 * target.h (target_ops) <to_call_history, to_call_history_from,
8663 to_call_history_range>: New fields.
8664 (target_call_history, target_call_history_from,
8665 target_call_history_range): New declaration.
8666 * record.c (get_call_history_modifiers, cmd_record_call_history,
8667 record_call_history_size): New.
8668 (_initialize_record): Add the "record function-call-history" command.
8669 Add "set/show record function-call-history-size" commands.
8670 * record.h (record_print_flag): New.
8671
67c86d06
MM
86722013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8673
8674 * target.h (target_ops) <to_insn_history, to_insn_history_from,
8675 to_insn_history_range>: New fields.
8676 (target_insn_history): New.
8677 (target_insn_history_from): New.
8678 (target_insn_history_range): New.
8679 * target.c (target_insn_history): New.
8680 (target_insn_history_from): New.
8681 (target_insn_history_range): New.
8682 * record.c: Include cli/cli-utils.h, disasm.h, ctype.h.
8683 (record_insn_history_size): New.
8684 (get_insn_number): New.
8685 (get_context_size): New.
8686 (no_chunk): New.
8687 (get_insn_history_modifiers): New.
8688 (cmd_record_insn_history): New.
8689 (_initialize_record): Add "set/show record instruction-history-size"
8690 command. Add "record instruction-history" command.
8691
7c1687a9
MM
86922013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8693
8694 * record.h (record_disconnect): New.
8695 (record_detach): New.
8696 (record_mourn_inferior): New.
8697 (record_kill): New.
8698 * record-full.c (record_disconnect, record_detach,
8699 record_mourn_inferior, record_kill): Move to...
8700 * record.c: ...here.
8701 (DEBUG): New.
8702 (record_stop): New.
8703 (record_unpush): New.
8704 (cmd_record_stop): Call record_stop. Replace unpush_target
8705 call with record_unpush call.
8706 (record_disconnect, record_detach): Assert that the target
8707 is of record stratum. Call record_unpush, record_stop, and
8708 DEBUG.
8709 (record_mourn_inferior, record_kill): Assert that the target
8710 is of record stratum. Call record_unpush and DEBUG.
8711
25ea693b
MM
87122013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8713
8714 * record-full.h, record-full.c (record_memory_query): Rename
8715 to ...
8716 (record_full_memory_query): ...this. Update all users.
8717 (record_arch_list_add_reg): Rename to ...
8718 (record_full_arch_list_add_reg): ...this. Update all users.
8719 (record_arch_list_add_mem): Rename to ...
8720 (record_full_arch_list_add_mem): ...this. Update all users.
8721 (record_arch_list_add_end): Rename to ...
8722 (record_full_arch_list_add_end): ...this. Update all users.
8723 (record_gdb_operation_disable_set): Rename to ...
8724 (record_full_gdb_operation_disable_set): ...this.
8725 Update all users.
8726
88d1aa9d
MM
87272013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8728
8729 * record-full.c (DEFAULT_RECORD_INSN_MAX_NUM): Renamed to ...
8730 (DEFAULT_RECORD_FULL_INSN_MAX_NUM): ... this. Updated all users.
8731 (RECORD_IS_REPLAY): Renamed to ...
8732 (RECORD_FULL_IS_REPLAY): ... this. Updated all users.
8733 (RECORD_FILE_MAGIC): Renamed to ...
8734 (RECORD_FULL_FILE_MAGIC): ... this. Updated all users.
8735 (record_mem_entry): Renamed to ...
8736 (record_full_mem_entry): ... this. Updated all users.
8737 (record_reg_entry): Renamed to ...
8738 (record_full_reg_entry): ... this. Updated all users.
8739 (record_end_entry): Renamed to ...
8740 (record_full_end_entry): ... this. Updated all users.
8741 (record_type) <record_end, record_reg, record_mem>: Renamed
8742 to ...
8743 (record_full_type) <record_full_end, record_full_reg,
8744 record_full_mem>: ... this. Updated all users.
8745 (record_entry): Renamed to ...
8746 (record_full_entry): ... this. Updated all users.
8747 (record_core_buf_entry): Renamed to ...
8748 (record_full_core_buf_entry): ... this. Updated all users.
8749 (record_core_regbuf): Renamed to ...
8750 (record_full_core_regbuf): ... this. Updated all users.
8751 (record_core_start): Renamed to ...
8752 (record_full_core_start): ... this. Updated all users.
8753 (record_core_end): Renamed to ...
8754 (record_full_core_end): ... this. Updated all users.
8755 (record_core_buf_list): Renamed to ...
8756 (record_full_core_buf_list): ... this. Updated all users.
8757 (record_first): Renamed to ...
8758 (record_full_first): ... this. Updated all users.
8759 (record_list): Renamed to ...
8760 (record_full_list): ... this. Updated all users.
8761 (record_arch_list_head): Renamed to ...
8762 (record_full_arch_list_head): ... this. Updated all users.
8763 (record_arch_list_tail): Renamed to ...
8764 (record_full_arch_list_tail): ... this. Updated all users.
8765 (record_stop_at_limit): Renamed to ...
8766 (record_full_stop_at_limit): ... this. Updated all users.
8767 (record_insn_max_num): Renamed to ...
8768 (record_full_insn_max_num): ... this. Updated all users.
8769 (record_insn_num): Renamed to ...
8770 (record_full_insn_num): ... this. Updated all users.
8771 (record_insn_count): Renamed to ...
8772 (record_full_insn_count): ... this. Updated all users.
8773 (record_ops): Renamed to ...
8774 (record_full_ops): ... this. Updated all users.
8775 (record_core_ops): Renamed to ...
8776 (record_full_core_ops): ... this. Updated all users.
8777 (set_record_cmdlist): Renamed to ...
8778 (set_record_full_cmdlist): ... this. Updated all users.
8779 (show_record_cmdlist): Renamed to ...
8780 (show_record_full_cmdlist): ... this. Updated all users.
8781 (record_cmdlist): Renamed to ...
8782 (record_full_cmdlist): ... this. Updated all users.
8783 (record_beneath_to_resume_ops): Renamed to ...
8784 (record_full_beneath_to_resume_ops): ... this. Updated all users.
8785 (record_beneath_to_resume): Renamed to ...
8786 (record_full_beneath_to_resume): ... this. Updated all users.
8787 (record_beneath_to_wait_ops): Renamed to ...
8788 (record_full_beneath_to_wait_ops): ... this. Updated all users.
8789 (record_beneath_to_wait): Renamed to ...
8790 (record_full_beneath_to_wait): ... this. Updated all users.
8791 (record_beneath_to_store_registers_ops): Renamed to ...
8792 (record_full_beneath_to_store_registers_ops): ... this.
8793 Updated all users.
8794 (record_beneath_to_store_registers): Renamed to ...
8795 (record_full_beneath_to_store_registers): ... this.
8796 Updated all users.
8797 (record_beneath_to_xfer_partial_ops): Renamed to ...
8798 (record_full_beneath_to_xfer_partial_ops): ... this.
8799 Updated all users.
8800 (record_beneath_to_xfer_partial): Renamed to ...
8801 (record_full_beneath_to_xfer_partial): ... this.
8802 Updated all users.
8803 (record_beneath_to_insert_breakpoint): Renamed to ...
8804 (record_full_beneath_to_insert_breakpoint): ... this.
8805 Updated all users.
8806 (record_beneath_to_stopped_by_watchpoint): Renamed to ...
8807 (record_full_beneath_to_stopped_by_watchpoint): ... this.
8808 Updated all users.
8809 (record_beneath_to_stopped_data_address): Renamed to ...
8810 (record_full_beneath_to_stopped_data_address): ... this.
8811 Updated all users.
8812 (record_beneath_to_async): Renamed to ...
8813 (record_full_beneath_to_async): ... this. Updated all users.
8814 (record_goto_insn): Renamed to ...
8815 (record_full_goto_insn): ... this. Updated all users.
8816 (record_save): Renamed to ...
8817 (record_full_save): ... this. Updated all users.
8818 (record_reg_alloc): Renamed to ...
8819 (record_full_reg_alloc): ... this. Updated all users.
8820 (record_reg_release): Renamed to ...
8821 (record_full_reg_release): ... this. Updated all users.
8822 (record_mem_alloc): Renamed to ...
8823 (record_full_mem_alloc): ... this. Updated all users.
8824 (record_mem_release): Renamed to ...
8825 (record_full_mem_release): ... this. Updated all users.
8826 (record_end_alloc): Renamed to ...
8827 (record_full_end_alloc): ... this. Updated all users.
8828 (record_end_release): Renamed to ...
8829 (record_full_end_release): ... this. Updated all users.
8830 (record_entry_release): Renamed to ...
8831 (record_full_entry_release): ... this. Updated all users.
8832 (record_list_release): Renamed to ...
8833 (record_full_list_release): ... this. Updated all users.
8834 (record_list_release_following): Renamed to ...
8835 (record_full_list_release_following): ... this.
8836 Updated all users.
8837 (record_list_release_first): Renamed to ...
8838 (record_full_list_release_first): ... this. Updated all users.
8839 (record_arch_list_add): Renamed to ...
8840 (record_full_arch_list_add): ... this. Updated all users.
8841 (record_get_loc): Renamed to ...
8842 (record_full_get_loc): ... this. Updated all users.
8843 (record_check_insn_num): Renamed to ...
8844 (record_full_check_insn_num): ... this. Updated all users.
8845 (record_arch_list_cleanups): Renamed to ...
8846 (record_full_arch_list_cleanups): ... this. Updated all users.
8847 (record_message): Renamed to ...
8848 (record_full_message): ... this. Updated all users.
8849 (record_message_wrapper): Renamed to ...
8850 (record_full_message_wrapper): ... this. Updated all users.
8851 (record_message_wrapper_safe): Renamed to ...
8852 (record_full_message_wrapper_safe): ... this. Updated all users.
8853 (record_gdb_operation_disable): Renamed to ...
8854 (record_full_gdb_operation_disable): ... this. Updated all users.
8855 (record_hw_watchpoint): Renamed to ...
8856 (record_full_hw_watchpoint): ... this. Updated all users.
8857 (record_exec_insn): Renamed to ...
8858 (record_full_exec_insn): ... this. Updated all users.
8859 (record_restore): Renamed to ...
8860 (record_full_restore): ... this. Updated all users.
8861 (record_async_inferior_event_token): Renamed to ...
8862 (record_full_async_inferior_event_token): ... this.
8863 Updated all users.
8864 (record_async_inferior_event_handler): Renamed to ...
8865 (record_full_async_inferior_event_handler): ... this.
8866 Updated all users.
8867 (record_core_open_1): Renamed to ...
8868 (record_full_core_open_1): ... this. Updated all users.
8869 (record_open_1): Renamed to ...
8870 (record_full_open_1): ... this. Updated all users.
8871 (record_open): Renamed to ...
8872 (record_full_open): ... this. Updated all users.
8873 (record_close): Renamed to ...
8874 (record_full_close): ... this. Updated all users.
8875 (record_resume_step): Renamed to ...
8876 (record_full_resume_step): ... this. Updated all users.
8877 (record_resumed): Renamed to ...
8878 (record_full_resumed): ... this. Updated all users.
8879 (record_execution_dir): Renamed to ...
8880 (record_full_execution_dir): ... this. Updated all users.
8881 (record_resume): Renamed to ...
8882 (record_full_resume): ... this. Updated all users.
8883 (record_get_sig): Renamed to ...
8884 (record_full_get_sig): ... this. Updated all users.
8885 (record_sig_handler): Renamed to ...
8886 (record_full_sig_handler): ... this. Updated all users.
8887 (record_wait_cleanups): Renamed to ...
8888 (record_full_wait_cleanups): ... this. Updated all users.
8889 (record_wait_1): Renamed to ...
8890 (record_full_wait_1): ... this. Updated all users.
8891 (record_wait): Renamed to ...
8892 (record_full_wait): ... this. Updated all users.
8893 (record_stopped_by_watchpoint): Renamed to ...
8894 (record_full_stopped_by_watchpoint): ... this. Updated all users.
8895 (record_disconnect): Renamed to ...
8896 (record_full_disconnect): ... this. Updated all users.
8897 (record_detach): Renamed to ...
8898 (record_full_detach): ... this. Updated all users.
8899 (record_mourn_inferior): Renamed to ...
8900 (record_full_mourn_inferior): ... this. Updated all users.
8901 (record_kill): Renamed to ...
8902 (record_full_kill): ... this. Updated all users.
8903 (record_stopped_data_address): Renamed to ...
8904 (record_full_stopped_data_address): ... this. Updated all users.
8905 (record_registers_change): Renamed to ...
8906 (record_full_registers_change): ... this. Updated all users.
8907 (record_store_registers): Renamed to ...
8908 (record_full_store_registers): ... this. Updated all users.
8909 (record_xfer_partial): Renamed to ...
8910 (record_full_xfer_partial): ... this. Updated all users.
8911 (record_breakpoint): Renamed to ...
8912 (record_full_breakpoint): ... this. Updated all users.
8913 (record_breakpoint_p): Renamed to ...
8914 (record_full_breakpoint_p): ... this. Updated all users.
8915 (record_breakpoints): Renamed to ...
8916 (record_full_breakpoints): ... this. Updated all users.
8917 (record_sync_record_breakpoints): Renamed to ...
8918 (record_full_sync_record_breakpoints): ... this.
8919 Updated all users.
8920 (record_init_record_breakpoints): Renamed to ...
8921 (record_full_init_record_breakpoints): ... this.
8922 Updated all users.
8923 (record_insert_breakpoint): Renamed to ...
8924 (record_full_insert_breakpoint): ... this. Updated all users.
8925 (record_remove_breakpoint): Renamed to ...
8926 (record_full_remove_breakpoint): ... this. Updated all users.
8927 (record_can_execute_reverse): Renamed to ...
8928 (record_full_can_execute_reverse): ... this. Updated all users.
8929 (record_get_bookmark): Renamed to ...
8930 (record_full_get_bookmark): ... this. Updated all users.
8931 (record_goto_bookmark): Renamed to ...
8932 (record_full_goto_bookmark): ... this. Updated all users.
8933 (record_async): Renamed to ...
8934 (record_full_async): ... this. Updated all users.
8935 (record_can_async_p): Renamed to ...
8936 (record_full_can_async_p): ... this. Updated all users.
8937 (record_is_async_p): Renamed to ...
8938 (record_full_is_async_p): ... this. Updated all users.
8939 (record_execution_direction): Renamed to ...
8940 (record_full_execution_direction): ... this. Updated all users.
8941 (record_info): Renamed to ...
8942 (record_full_info): ... this. Updated all users.
8943 (record_delete): Renamed to ...
8944 (record_full_delete): ... this. Updated all users.
8945 (record_is_replaying): Renamed to ...
8946 (record_full_is_replaying): ... this. Updated all users.
8947 (record_goto_entry): Renamed to ...
8948 (record_full_goto_entry): ... this. Updated all users.
8949 (record_goto_begin): Renamed to ...
8950 (record_full_goto_begin): ... this. Updated all users.
8951 (record_goto_end): Renamed to ...
8952 (record_full_goto_end): ... this. Updated all users.
8953 (record_goto): Renamed to ...
8954 (record_full_goto): ... this. Updated all users.
8955 (init_record_ops): Renamed to ...
8956 (init_record_full_ops): ... this. Updated all users.
8957 (record_core_resume): Renamed to ...
8958 (record_full_core_resume): ... this. Updated all users.
8959 (record_core_kill): Renamed to ...
8960 (record_full_core_kill): ... this. Updated all users.
8961 (record_core_fetch_registers): Renamed to ...
8962 (record_full_core_fetch_registers): ... this. Updated all users.
8963 (record_core_prepare_to_store): Renamed to ...
8964 (record_full_core_prepare_to_store): ... this. Updated all users.
8965 (record_core_store_registers): Renamed to ...
8966 (record_full_core_store_registers): ... this. Updated all users.
8967 (record_core_xfer_partial): Renamed to ...
8968 (record_full_core_xfer_partial): ... this. Updated all users.
8969 (record_core_insert_breakpoint): Renamed to ...
8970 (record_full_core_insert_breakpoint): ... this. Updated all users.
8971 (record_core_remove_breakpoint): Renamed to ...
8972 (record_full_core_remove_breakpoint): ... this. Updated all users.
8973 (record_core_has_execution): Renamed to ...
8974 (record_full_core_has_execution): ... this. Updated all users.
8975 (init_record_core_ops): Renamed to ...
8976 (init_record_full_core_ops): ... this. Updated all users.
8977 (cmd_record_restore): Renamed to ...
8978 (cmd_record_full_restore): ... this. Updated all users.
8979 (record_save_cleanups): Renamed to ...
8980 (record_full_save_cleanups): ... this. Updated all users.
8981 (cmd_record_start): Renamed to ...
8982 (cmd_record_full_start): ... this. Updated all users.
8983 (set_record_insn_max_num): Renamed to ...
8984 (set_record_full_insn_max_num): ... this. Updated all users.
8985 (set_record_command): Renamed to ...
8986 (set_record_full_command): ... this. Updated all users.
8987 (show_record_command): Renamed to ...
8988 (show_record_full_command): ... this. Updated all users.
8989 (_initialize_record): Renamed to ...
8990 (_initialize_record_full): ... this. Updated all users.
8991
d02ed0bb
MM
89922013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8993
8994 * record.h: Split into this and ...
8995 * record-full.h: ... this.
8996 * record.c: Split into this and ...
8997 * record-full.c: ... this.
8998 * target.h (target_ops): Add new fields to_info_record,
8999 to_save_record, to_delete_record, to_record_is_replaying,
9000 to_goto_record_begin, to_goto_record_end, to_goto_record.
9001 (target_info_record): New.
9002 (target_save_record): New.
9003 (target_supports_delete_record): New.
9004 (target_delete_record): New.
9005 (target_record_is_replaying): New.
9006 (target_goto_record_begin): New.
9007 (target_goto_record_end): New.
9008 (target_goto_record): New.
9009 * target.c (target_info_record): New.
9010 (target_save_record): New.
9011 (target_supports_delete_record): New.
9012 (target_delete_record): New.
9013 (target_record_is_replaying): New.
9014 (target_goto_record_begin): New.
9015 (target_goto_record_end): New.
9016 (target_goto_record): New.
9017 * record.h: Declare struct cmd_list_element.
9018 (record_cmdlist): New declaration.
9019 (set_record_cmdlist): New declaration.
9020 (show_record_cmdlist): New declaration.
9021 (info_record_cmdlist): New declaration.
9022 (cmd_record_goto): New declaration.
9023 * record.c: Remove unnecessary includes.
9024 Include inferior.h.
9025 (cmd_record_goto): Remove declaration.
9026 (record_cmdlist): Now extern. Initialize.
9027 (set_record_cmdlist): Now extern. Initialize.
9028 (show_record_cmdlist): Now extern. Initialize.
9029 (info_record_cmdlist): Now extern. Initialize.
9030 (find_record_target): New.
9031 (require_record_target): New.
9032 (cmd_record_start): Update.
9033 (cmd_record_delete): Remove target-specific code.
9034 Call target_delete_record.
9035 (cmd_record_stop): Unpush any record target.
9036 (set_record_insn_max_num): Move to record-full.c
9037 (set_record_command): Add comment.
9038 (show_record_command): Add comment.
9039 (info_record_command): Update comment.
9040 Remove target-specific code.
9041 Call the record target's to_info_record.
9042 (cmd_record_start): New.
9043 (cmd_record_goto): Now extern.
9044 Remove target-specific code.
9045 Call target_goto_begin, target_goto_end, or target_goto.
9046 (_initialize_record): Move record target ops initialization to
9047 record-full.c.
9048 Change "record" command help text.
9049 Move "record restore", "record set", and "record show" commands to
9050 record-full.c.
9051 * Makefile.in (SFILES): Add record-full.c.
9052 (HFILES_NO_SRCDIR): Add record-full.h.
9053 (COMMON_OBS): Add record-full.o.
9054 * amd64-linux-tdep.c: Include record-full.h instead of record.h.
9055 * arm-tdep.c: Include record-full.h.
9056 * i386-linux-tdep.c: Include record-full.h instead of record.h.
9057 * i386-tdep.c: Include record-full.h.
9058 * infrun.c: Include record-full.h.
9059 * linux-record.c: Include record-full.h.
9060 * moxie-tdep.c: Include record-full.h.
9061 * record-full.c: Include record-full.h.
9062 Change module comment.
9063 (set_record_full_cmdlist): New.
9064 (show_record_full_cmdlist): New.
9065 (record_full_cmdlist): New.
9066 (record_goto_insn): New declaration.
9067 (record_save): New declaration.
9068 (record_check_insn_num): Change query string.
9069 (record_info): New.
9070 (record_delete): New.
9071 (record_is_replaying): New.
9072 (record_goto_entry): New.
9073 (record_goto_begin): New.
9074 (record_goto_end): New.
9075 (record_goto): New.
9076 (init_record_ops): Update.
9077 (init_record_core_ops): Update.
9078 (cmd_record_save): Rename to record_save. Remove target and arg checks.
9079 (cmd_record_start): New.
9080 (set_record_insn_max_num): Moved from record.c
9081 (set_record_full_command): New.
9082 (show_record_full_command): New.
9083 (_initialize_record_full): New.
9084
b48d48eb
MM
90852013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9086
9087 * target.h (add_deprecated_target_alias): New.
9088 * target.c (add_deprecated_target_alias): New.
9089
a950d57c
MM
90902013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9091
9092 * common/linux-btrace.c: Include sys/ptrace, sys/types, sys/wait.h,
9093 and signal.h.
9094 (linux_supports_btrace): Add kernel and
9095 cpuid check.
9096 (kernel_supports_btrace): New function.
9097 (cpu_supports_btrace): New function.
9098 (intel_supports_btrace): New function.
9099
9accd112
MM
91002013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9101
9102 * target.h (enum target_object): Add TARGET_OBJECT_BTRACE.
9103 * remote.c: Include btrace.h.
9104 (struct btrace_target_info): New struct.
9105 (remote_supports_btrace): New function.
9106 (send_Qbtrace): New function.
9107 (remote_enable_btrace): New function.
9108 (remote_disable_btrace): New function.
9109 (remote_teardown_btrace): New function.
9110 (remote_read_btrace): New function.
9111 (init_remote_ops): Add btrace ops.
9112 (enum <unnamed>): Add btrace packets.
9113 (struct protocol_feature remote_protocol_features[]): Add btrace packets.
9114 (_initialize_remote): Add packet configuration for branch tracing.
9115
c12a2917
MM
91162013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9117
9118 * features/btrace.dtd: New file.
9119 * Makefile.in (XMLFILES): Add btrace.dtd.
9120 * btrace.h (parse_xml_btrace): New declaration.
9121 * btrace.c: Include xml-support.h.
9122 (parse_xml_btrace): New function.
9123 (parse_xml_btrace_block): New function.
9124 (block_attributes): New struct.
9125 (btrace_attributes): New struct.
9126 (btrace_children): New struct.
9127 (btrace_elements): New struct.
9128
3e3aea48
MM
91292013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9130
9131 * amd64-linux-nat.c: Include btrace.h and linux-btrace.h.
9132 (amd64_linux_enable_btrace): New.
9133 (amd64_linux_disable_btrace): New.
9134 (amd64_linux_teardown_btrace): New.
9135 (_initialize_amd64_linux_nat): Initialize btrace ops.
9136 * i386-linux.nat.c: Include btrace.h and linux-btrace.h.
9137 (i386_linux_enable_btrace): New.
9138 (i386_linux_disable_btrace): New.
9139 (i386_linux_teardown_btrace): New.
9140 (_initialize_i386_linux_nat): Initialize btrace ops.
9141 * config/i386/linux.mh: Add linux-btrace.o.
9142 * config/i386/linux64.mh: Add linux-btrace.o.
9143
7c97f91e
MM
91442013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9145
9146 * common/linux_btrace.h: New file.
9147 * common/linux_btrace.c: New file.
9148 * Makefile.in (SFILES): Add btrace.c.
9149 (HFILES_NO_SRCDIR): Add common/linux-btrace.h.
9150 (COMMON_OBS): Add btrace.o.
9151 (linux-btrace.o): New rule.
9152
1999790b 91532013-03-11 Markus Metzger <markus.t.metzger@intel.com>
02d27625
MM
9154
9155 * target.h: Include btrace.h.
9156 (struct target_ops) <to_supports_btrace, to_enable_btrace,
9157 to_disable_btrace, to_teardown_btrace, to_read_btrace>: New.
9158 * target.c (target_supports_btrace): New function.
9159 (target_enable_btrace): New function.
9160 (target_disable_btrace): New function.
9161 (target_teardown_btrace): New function.
9162 (target_read_btrace): New function.
9163 * btrace.h: New file.
9164 * btrace.c: New file.
9165 * Makefile.in: Add btrace.c.
9166 * gdbthread.h: Include btrace.h.
9167 (struct thread_info): Add btrace field.
9168 * thread.c: Include btrace.h.
9169 (clear_thread_inferior_resources): Call target_teardown_btrace.
9170 * common/btrace-common.h: New file.
9171
61a31a67
JK
91722013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9173
9174 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Call also kill
9175 for CHILD, ignore PTRACE_KILL errors, move the inner block variable
9176 kill_status to outer block.
9177
05c56a9d
JK
91782013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9179
9180 Fix entry-values if the callee called a noreturn function.
9181 * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
9182 get_frame_address_in_block. Add new comment.
9183
9112db09
JK
91842013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9185
9186 Fix entry-values in C++ across CUs.
9187 * dwarf2loc.c (call_site_to_target_addr) <FIELD_LOC_KIND_PHYSNAME>: Use
9188 lookup_minimal_symbol. Add a comment.
9189 * dwarf2read.c
9190 (read_call_site_scope) <is_ref_attr> <die_is_declaration>: Prefer
9191 DW_AT_linkage_name.
9192
9b67fcec
YQ
91932013-03-08 Yao Qi <yao@codesourcery.com>
9194
9195 * tracepoint.c (_initialize_tracepoint): Indent the code.
9196
6221be90
PA
91972013-03-08 Pedro Alves <palves@redhat.com>
9198
9199 * findcmd.c (put_bits): Change type of parameter to 'gdb_byte *'.
9200 (parse_find_args, find_command): Change type of pattern buffer
9201 locals to 'gdb_byte *'.
9202
be9a119c 92032013-03-08 Stan Shebs <stan@codesourcery.com>
f6f899bf
HAQ
9204 Hafiz Abid Qadeer <abidh@codesourcery.com>
9205
9206 * NEWS: Mention set and show trace-buffer-size commands.
9207 Mention new packet.
9208 * target.h (struct target_ops): New method
9209 to_set_trace_buffer_size.
9210 (target_set_trace_buffer_size): New macro.
9211 * target.c (update_current_target): Set up new method.
9212 * tracepoint.c (trace_buffer_size): New global.
9213 (start_tracing): Send it to the target.
9214 (set_trace_buffer_size): New function.
9215 (_initialize_tracepoint): Add new setshow for trace-buffer-size.
9216 * remote.c (remote_set_trace_buffer_size): New function.
9217 (_initialize_remote): Use it.
9218 (QTBuffer:size) New remote command.
9219 (PACKET_QTBuffer_size): New enum.
9220 (remote_protocol_features): Add an entry for
9221 PACKET_QTBuffer_size.
9222
7da3ab79
TT
92232013-03-08 Tom Tromey <tromey@redhat.com>
9224
9225 * remote-m32r-sdi.c (m32r_load): Call skip_spaces on correct
9226 variable.
9227
0c1f71e7
PA
92282013-03-07 Pedro Alves <palves@redhat.com>
9229
9230 * target.c (target_read_stralloc, target_fileio_read_alloc):
9231 *Cast pointer to 'gdb_byte *' in target call.
9232
c8af03a2
PA
92332013-03-07 Pedro Alves <palves@redhat.com>
9234
9235 * corefile.c (read_memory_string): Cast pointer to gdb_byte* in
9236 call.
9237
529480d0
KS
92382013-03-07 Keith Seitz <keiths@redhat.com>
9239
9240 * breakpoint.c (catch_syscall_split_args): Use skip_spaces.
9241 (trace_pass_command): Likewise.
9242 * cli/cli-cmds.c: Include cli/cli-utils.h.
9243 (source_command): Use skip-spaces.
9244 (disassemble_command): Likewise.
9245 * findcmd.c: Include cli/cli-utils.h.
9246 (parse_find_args): Use skip_spaces.
9247 * go32-nat.c: Include cli/cli-utils.h.
9248 (go32_sldt): Use skip_spaces.
9249 (go32_sgdt): Likewise.
9250 (go32_sidt): Likewise.
9251 (go32_pde): Likewise.
9252 (go32_pte): Likewise.
9253 (go32_pte_for_address): Likewise.
9254 * infcmd.c: Include cli/cli-utils.h.
9255 (registers_info): Use skip_spaces.
9256 * linux-tdep.c (read_mapping): Use skip_spaces_const.
9257 (linux_info_proc): Likewise.
9258 * linux-thread-db.c: Include cli/cli-utils.h.
9259 (info_auto_load_libthread_db): Use skip_spaces_const.
9260 * m32r-rom.c: Include cli/cli-utils.h.
9261 (m32r_upload_command): Use skip_spaces.
9262 * maint.c: Include cli/cli-utils.h.
9263 (maintenance_translate_address): Use skip_spaces.
9264 * mi/mi-parse.c: Include cli/cli-utils.h.
9265 (mi_parse_argv): Use skip_spaces.
9266 (mi_parse): Likewise.
9267 * minsyms.c: Include cli/cli-utils.h.
9268 (msymbol_hash_iw): Use skip_spaces_const.
9269 * objc-lang.c: Include cli/cli-utils.h.
9270 (parse_selector): Use skip_spaces.
9271 (parse_method): Likewise.
9272 * python/python.c: Include cli/cli-utils.h.
9273 (python_interactive_command)[HAVE_PYTHON]: Use skip_spaces.
9274 (python_command)[HAVE_PYTHON]: Likewise.
9275 (python_interactive_command)[!HAVE_PYTHON]: Likewise.
9276 * remote-m32r-sdi.c: Include cli/cli-utils.h.
9277 (m32r_load): Use skip_spaces.
9278 * serial.c: Include cli/cli-utils.h.
9279 (serial_open): Use skip_spaces_const.
9280 * stack.c: Include cli/cli-utils.h.
9281 (parse_frame_specification_1): Use skip_spaces_const.
9282 * symfile.c: Include cli/cli-utils.h.
9283 (set_ext_lang_command): Use skip_spaces.
9284 * symtab.c: Include cli/cli-utils.h.
9285 (rbreak_command): Use skip_spaces.
9286 * thread.c (thread_name_command): Use skip_spaces.
9287 * tracepoint.c (validate_actionline): Use skip_spaces.
9288 (encode_actions_1): Likewise.
9289 (trace_find_range_command): Likewise.
9290 (trace_find_outside_command): Likewise.
9291 (trace_dump_actions): Likewise.
9292
ac91cd70
PA
92932013-03-07 Pedro Alves <palves@redhat.com>
9294
9295 * c-lang.c (parse_one_string): Cast argument to gdb_byte *.
9296 * expprint.c (print_subexp_standard): Likewise.
9297 * utils.c (host_char_to_target): Likewise.
9298 * valprint.c (generic_emit_char, generic_printstr): Likewise.
9299 * varobj.c (value_get_print_value): Change type of local to char*.
9300 Cast it gdb_byte * in call to language printer.
9301
2898e560
PA
93022013-03-07 Pedro Alves <palves@redhat.com>
9303
9304 * charset.c (struct wchar_iterator) <input>: Change type to 'const
9305 gdb_byte *'.
9306 (make_wchar_iterator): Remove cast to char*.
9307 (wchar_iterate): Change type of local.
9308
a09b4448
PA
93092013-03-07 Pedro Alves <palves@redhat.com>
9310
9311 * regcache.c (regcache_xmalloc_1): Call XCALLOC with signed char
9312 for 'regcache->register_status'.
9313
20ced3e4
PA
93142013-03-07 Pedro Alves <palves@redhat.com>
9315
c2d6a675 9316 * breakpoint.c (breakpoint_xfer_memory): Change type of local to
20ced3e4
PA
9317 int.
9318
fe106009
PA
93192013-03-07 Pedro Alves <palves@redhat.com>
9320
9321 * stap-probe.c (handle_stap_probe): Add cast to char*.
9322
8ac2c12b
PA
93232013-03-07 Pedro Alves <palves@redhat.com>
9324
9325 * linux-record.c (record_linux_system_call) <gdb_sys_msgrcv,
9326 RECORD_MSGRCV>: Pass a signed variable to
9327 regcache_raw_read_signed, instead of an unsigned one.
9328
99f0a309
PA
93292013-03-07 Pedro Alves <palves@redhat.com>
9330
9331 * remote-notif.c (notif_debug): Change type to int.
9332 * remote-notif.h (notif_debug): Likewise.
9333
964b8317
PA
93342013-03-07 Pedro Alves <palves@redhat.com>
9335
9336 * ser-tcp.c (tcp_retry_limit): Change type to unsigned int.
9337
f0cc8ad4
PA
93382013-03-07 Pedro Alves <palves@redhat.com>
9339
9340 * remote.c (hex2bin, bin2hex): Move extern declarations to ...
9341 * remote.h (hex2bin, bin2hex): ... here.
9342 * tracepoint.c (hex2bin, bin2hex): Remove extern declarations.
9343
77dec115
EZ
93442013-03-07 Eli Zaretskii <eliz@gnu.org>
9345
9346 * utils.c (initialize_utils): Improve doc strings of "set/show
9347 width", "set/show height", and "set/show pagination".
9348
741d92cf
KS
93492013-03-06 Keith Seitz <keiths@redhat.com>
9350
9351 * ax-gdb.c (gen_printf): Make FORMAT const.
9352 * ax-gdb.h (gen_printf): Likewise.
9353 * ax-general.c (ax_string): Make STR const.
9354 * ax.h (ax_string): Likewise.
9355
7b6c814e
DE
93562013-03-06 Doug Evans <dje@google.com>
9357
9358 * elfread.c (elf_symfile_read): Move debugging printf to more
9359 logical location.
9360
634334ab
PA
93612013-03-06 Pedro Alves <palves@redhat.com>
9362
9363 * python/py-utils.c (target_string_to_unicode): Delete function.
9364 * python/python-internal.h (target_string_to_unicode): Delete
9365 declaration.
9366
e482a1a7
PM
93672013-03-06 Pierre Muller <muller@sourceware.org>
9368
9369 * linespec.c (get_current_search_block): ARI fix, use (void)
9370 for empty parameter list.
9371
4eeaa230
DE
93722013-03-05 Doug Evans <dje@google.com>
9373
9374 * ada-lang.c (ada_lookup_symbol_list_worker): New function, contents
9375 of old ada_lookup_symbol_list. In !full_search case, don't
9376 search superblocks.
9377 (ada_lookup_symbol_list): Delete arg full_search, all callers
9378 updated. Call ada_lookup_symbol_list_worker.
9379 (ada_iterate_over_symbols): Call ada_lookup_symbol_list_worker.
9380 * ada-lang.h (ada_lookup_symbol_list): Update.
9381 * language.h (language_defn): Update comment for
9382 la_iterate_over_symbols.
9383 * linespec.c (iterate_over_file_blocks): New function.
9384 (iterate_over_all_matching_symtabs): Call it.
9385 (lookup_prefix_sym): Ditto.
9386 (get_current_search_block): New function.
9387 (get_search_block): Delete.
9388 (find_label_symbols): Call get_current_search_block.
9389 (add_matching_symbols_to_info): Call iterate_over_file_blocks.
9390 * symtab.c (iterate_over_symbols): Don't search superblocks.
9391
b69b1fb1
YQ
93922013-03-05 Yao Qi <yao@codesourcery.com>
9393
9394 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): Change
9395 parameter VAR's type from "unsigned int" to "int".
9396 * command.h (var_zuinteger_unlimited): Update its comments.
9397 (add_setshow_zuinteger_unlimited_cmd): Update the declaration.
9398
3c095f49
CV
93992013-03-05 Corinna Vinschen <vinschen@redhat.de>
9400
9401 * NEWS: Mention new target x86_64-*-cygwin*.
9402
b5b0b0af
CV
94032013-03-05 Corinna Vinschen <vinschen@redhat.de>
9404
9405 * configure.host: Add x86_64-*-cygwin* as host.
9406 * configure.tgt: Add x86_64-*-cygwin* as target.
9407 * config/i386/cygwin64.mh: New file.
9408
f6f99966
JK
94092013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
9410
9411 * linespec.c (decode_line_2): Fix duplicate request off by two message.
9412
33f448b1
JK
94132013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
9414
9415 * linespec.c (struct linespec_canonical_name): New.
9416 (struct linespec_state): Change canonical_names type to it.
9417 (add_sal_to_sals): Change variable canonical_name to canonical. Change
9418 xrealloc element size. Initialize the different CANONICAL fields.
9419 (canonical_to_fullform): New.
9420 (filter_results): Use it. Add variables canonical, fullform and
9421 cleanup.
9422 (struct decode_line_2_item, decode_line_2_compare_items): New.
9423 (decode_line_2): Remove variables iter and item_names, add variables
9424 items and items_count. Modify the code for these new variables.
9425
feb14725
CV
94262013-03-04 Corinna Vinschen <vinschen@redhat.com>
9427
9428 * coff-pe-read.c (read_pe_exported_syms): Don't return without
9429 calling do_cleanup.
9430
e83b17ba
HZ
94312013-03-04 Luis Machado <lgustavo@codesourcery.com>
9432
9433 * tracepoint.c (build_traceframe_info): Add code for byte order.
9434
a2d13a0d
KB
94352013-03-02 Kevin Buettner <kevinb@redhat.com>
9436
8dddcae8
KB
9437 * v850-tdep.c: (v850e2_register_name): Revise system register
9438 names to match current V850E2M architecture specifications.
9439 Update register number enum comments too.
f5aee5ee 9440
d79e58d8
JW
94412013-03-01 Jiong Wang <jiwang@tilera.com>
9442 Pedro Alves <palves@redhat.com>
9443
9444 * tilegx-tdep.c (tilegx_analyze_prologue): Limit bundle reading
9445 to END_ADDR.
9446 (tilegx_skip_prologue): Limit prologue analysis to section end.
9447
c4be5165
JK
94482013-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9449
9450 * dwarf2loc.c (call_site_find_chain_1): New variable save_callee_pc,
9451 use it.
9452
e362b510
PA
94532013-03-01 Pedro Alves <palves@redhat.com>
9454
9455 Use gdb_byte for bytes from the program being debugged.
9456
9457 * arm-tdep.c (arm_store_return_value, arm_get_longjmp_target):
9458 Change type of local 'buf' to gdb_byte.
9459 * avr-tdep.c (avr_frame_prev_register, avr_push_dummy_call): Likewise.
9460 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
9461 * cris-tdep.c (cris_sigcontext_addr)
9462 (cris_sigtramp_frame_unwind_cache): Likewise.
9463 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp)
9464 (frv_linux_sigcontext_reg_addr, frv_linux_sigtramp_frame_cache):
9465 Likewise.
9466 * frv-tdep.c (frv_pseudo_register_write, frv_analyze_prologue): Likewise.
9467 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer)
9468 (hppa32_hpux_search_dummy_call_sequence)
9469 (hppa_hpux_supply_save_state): Likewise.
9470 * hppa-linux-tdep.c (insns_match_pattern)
9471 (hppa_linux_find_global_pointer): Likewise.
9472 * hppa-tdep.c (hppa_in_function_epilogue_p)
9473 (skip_prologue_hard_way, hppa_frame_cache): Likewise.
9474 * i386-nto-tdep.c (i386nto_sigcontext_addr): Likewise.
9475 * i386fbsd-tdep.c (i386fbsd_supply_uthread)
9476 (i386fbsd_collect_uthread): Likewise.
9477 * ia64-hpux-tdep.c (ia64_hpux_push_dummy_code): Likewise.
9478 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Likewise.
9479 * ia64-tdep.c (examine_prologue, ia64_frame_cache)
9480 (ia64_frame_prev_register, ia64_sigtramp_frame_cache)
9481 (ia64_sigtramp_frame_prev_register, ia64_access_reg)
9482 (ia64_access_rse_reg, ia64_libunwind_frame_this_id)
9483 (ia64_libunwind_frame_prev_register)
9484 (ia64_libunwind_sigtramp_frame_this_id)
9485 (ia64_find_global_pointer_from_dynamic_section)
9486 (find_extant_func_descr, find_func_descr, ia64_dummy_id)
9487 (ia64_unwind_pc): Likewise.
9488 * iq2000-tdep.c (iq2000_store_return_value): Likewise.
9489 * m68hc11-tdep.c (m68hc11_push_dummy_call)
9490 (m68hc11_extract_return_value): Likewise.
9491 * m68klinux-nat.c (fetch_register, store_register): Likewise.
9492 * mep-tdep.c (mep_pseudo_cr32_read, mep_pseudo_cr32_write)
9493 (mep_get_insn, mep_push_dummy_call): Likewise.
9494 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
9495 (mips_linux_in_dynsym_stub): Likewise.
9496 * mn10300-tdep.c (mep_pseudo_cr32_write): Likewise.
9497 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
9498 * regcache.c (dump_endian_bytes): Change type of parameter 'buf'
9499 to gdb_byte.
9500 * remote-mips.c (mips_set_register): Likewise.
9501 * remote-sim.c (gdbsim_fetch_register): Likewise.
9502 * score-tdep.c (score7_fetch_inst): Change type of parameter
9503 'memblock' and local 'buf' to gdb_byte.
9504 (score7_malloc_and_get_memblock): Change return type to gdb_byte.
9505 Change type of local 'buf' to gdb_byte. Adjust.
9506 (score7_adjust_memblock_ptr): Change type of parameter 'memblock'
9507 to gdb_byte**.
9508 (score7_analyze_prologue): Change type of 'memblock' and
9509 'memblock_ptr' locals to gdb_byte*.
9510 * sh64-tdep.c (sh64_extract_return_value)
9511 (sh64_store_return_value): Change type of local 'buf' to gdb_byte.
9512 * solib-darwin.c (darwin_current_sos, darwin_read_exec_load_addr):
9513 * solib-pa64.c (pa64_solib_create_inferior_hook)
9514 (pa64_open_symbol_file_object): Remove local 'buf'.
9515 * solib-som.c (som_solib_create_inferior_hook, link_map_start)
9516 (som_open_symbol_file_object): Likewise.
9517 * solib-spu.c (spu_current_sos): Likewise.
9518 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
9519 * spu-multiarch.c (parse_spufs_run, spu_fetch_registers)
9520 (spu_store_registers): Likewise.
9521 * target.c (debug_print_register): Likewise.
9522 * tic6x-tdep.c (tic6x_get_longjmp_target): Likewise.
9523 * xstormy16-tdep.c (xstormy16_store_return_value)
9524 (xstormy16_push_dummy_call, xstormy16_resolve_jmp_table_entry)
9525 (xstormy16_find_jmp_table_entry): Likewise.
9526
75cc61ca 95272013-03-01 Jiong Wang <jiwang@tilera.com>
61d8bd0e
JW
9528
9529 * tilegx-tdep.c (tilegx_get_longjmp_target): New function.
9530 (tilegx_gdbarch_init): Install it.
9531
ddb08e9c
TT
95322013-02-28 Tom Tromey <tromey@redhat.com>
9533
9534 * python/py-arch.c (archpy_disassemble): Use PyInt_Check and
9535 PyLong_Check.
9536
62d7fb51
DE
95372013-02-28 Doug Evans <dje@google.com>
9538
9539 * python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
9540 * python/python.c (gdbpy_find_pc_line): Ditto.
9541
c4a9e8b4
TT
95422013-02-28 Tom Tromey <tromey@redhat.com>
9543
9544 * contrib/excheck.py: New file.
9545 * contrib/exsummary.py: New file.
9546 * contrib/gcc-with-excheck: New file.
9547
7f6a5dde
TT
95482013-02-28 Tom Tromey <tromey@redhat.com>
9549
9550 * python/python.c (gdbpy_print_stack): Call begin_line and
9551 fprintf_filtered inside TRY_CATCH.
9552
9e974e55
TT
95532013-02-28 Tom Tromey <tromey@redhat.com>
9554
9555 * python/python.c (gdbpy_find_pc_line): Call find_pc_line
9556 inside TRY_CATCH.
9557
dd5fa3e7
TT
95582013-02-28 Tom Tromey <tromey@redhat.com>
9559
9560 * py-finishbreakpoint.c (bpfinishpy_init): Reorganize to call
9561 frame_object_to_frame_info inside TRY_CATCH.
9562
86a3263f
TT
95632013-02-28 Tom Tromey <tromey@redhat.com>
9564
9565 * py-block.c (gdbpy_block_for_pc): Call block_for_pc inside
9566 TRY_CATCH.
9567
81b52a3a
TT
95682013-02-28 Tom Tromey <tromey@redhat.com>
9569
9570 * objfiles.h (ALL_PSPACE_OBJFILES): Remove trailing backlash.
9571
d50a0ce2
CV
95722013-02-27 Corinna Vinschen <vinschen@redhat.com>
9573
9574 * windows-nat.c: Throughout, fix format strings and casts of
9575 printf-like functions to avoid type related warnings on all
9576 platforms.
9577 (handle_output_debug_string): Fetch context information address
9578 from debug string using string_to_core_addr.
9579
e1f58301
JW
95802013-02-27 Jiong Wang <jiwang@tilera.com>
9581
9582 * regformats/reg-tilegx.dat (name): Change abi name to "tilegx".
9583 * regformats/reg-tilegx32.dat: New.
9584
4fcd89fc
JW
95852013-02-27 Jiong Wang <jiwang@tilera.com>
9586
9587 * configure.tgt (tilegx-*-linux*): Enable gdbserver.
9588
748d24e6
JW
95892013-02-27 Jiong Wang <jiwang@tilera.com>
9590
9591 * configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
9592
6c8e944d
YQ
95932013-02-27 Yao Qi <yao@codesourcery.com>
9594 Pedro Alves <palves@redhat.com>
9595
9596 * tracepoint.c (tfile_trace_find): For tfind
5f8e0b8f
MF
9597 pc/tp/range/outside, look for the next trace frame instead of
9598 always starting from frame 0.
6c8e944d 9599
acd7db30
AG
96002013-02-26 Anthony Green <green@moxielogic.com>
9601
9602 * configure.tgt: Add support for moxie-*-rtems* target.
9603
025e6dce
PA
96042013-02-25 Pedro Alves <palves@redhat.com>
9605
9606 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
9607 warning text.
9608
ca9c94ef
MR
96092013-02-24 Maciej W. Rozycki <macro@codesourcery.com>
9610
9611 * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
9612 if $fp is used as the virtual frame pointer.
9613
24c274a1
AM
96142013-02-23 Alan Modra <amodra@gmail.com>
9615
9616 * elfread.c (elf_symtab_read): Do not use udata.p here to find
9617 symbol size.
9618 * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
9619 * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
9620 * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
9621 * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
9622
bfada189
JK
96232013-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
9624
9625 Code cleanup.
9626 * elfread.c (build_id_bfd_get): Make the return type const.
9627 (build_id_verify): Make the check parameter const.
9628 (build_id_to_debug_filename): Make the build_id parameter and variable
9629 data const.
9630 (find_separate_debug_file_by_buildid): Make the variable build_id const.
9631
c0355132
AM
96322013-02-21 Alan Modra <amodra@gmail.com>
9633
9634 * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
9635
9f44fbc0
SCR
96362013-02-20 Siva Chandra Reddy <sivachandra@google.com>
9637
9638 Add a new method 'disassemble' to gdb.Architecture class.
9639 * python/py-arch.c (archpy_disassmble): Implementation of the
9640 new method gdb.Architecture.disassemble.
9641 (arch_object_methods): Add entry for the new method.
9642
b74ea3eb
JW
96432013-02-20 Jiong Wang <jiwang@tilera.com>
9644
9645 * MAINTAINERS (Write After Approval): Add myself to the list.
9646
61a672f1
PA
96472013-02-19 Pedro Alves <palves@redhat.com>
9648
9649 Garbage collect 'struct monitor_ops'::load_routine.
9650
9651 * monitor.h (struct monitor_ops) <load_routine>: Remove field.
9652 * monitor.c (monitor_load): No longer call
9653 current_monitor->load_routine.
9654 * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
9655 * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
9656 * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
9657
40e397df
PA
96582013-02-19 Pedro Alves <palves@redhat.com>
9659
9660 PR gdb/15161
9661
9662 Harmonize with generic_load.
9663
9664 * monitor.c: Include "readline/readline.h".
9665 (monitor_load): Rename parameter 'file' to 'args'. Use build_argv
9666 instead of sscanf. Use CORE_ADDR/strtoulst instead of unsigned
9667 long/strtol for the 'load_offset' local. Error out if no argument
9668 is given or if too many arguments are given. Tilde expand the
9669 passed in file name.
9670
f698ca8e
KT
96712013-02-19 Kai Tietz <ktietz@redhat.com>
9672
9673 PR gdb/15161
9674 * symfile.c (load_section_data): Change type of load_offset
9675 to CORE_ADDR.
9676 (generic_load): User strtoulst instead of strtoul for conversion
9677 of load_offset.
9678
3361b059
WL
96792013-02-19 Jiong Wang <jiwang@tilera.com>
9680
9681 * tilegx-tdep.c (tilegx_analyze_prologue): add check for
9682 for return address, "lr" register, saved on stack.
9683 * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
9684 after we invoke tilegx_analyze_prologue.
9685
3e9d5130
WL
96862013-02-19 Jiong Wang <jiwang@tilera.com>
9687
bb1bcd86
WL
9688 * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
9689
3361b059 96902013-02-19 Jiong Wang <jiwang@tilera.com>
bb1bcd86 9691
b74ea3eb 9692 * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
3e9d5130 9693
4aaf2503
WL
96942013-02-19 Jiong Wang <jiwang@tilera.com>
9695
b74ea3eb 9696 * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
4aaf2503
WL
9697 (tilegx_write_pc): New function.
9698 (tilegx_cannot_reference_register): Return zero if REGNO
9699 is TILEGX_FAULTNUM_REGNUM.
9700 (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
9701 (tilegx_register_name): Add handling of "faultnum" register.
9702 * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
9703 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
9704 handling of TILEGX_FAULTNUM_REGNUM.
9705 * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
9706
bc23a956
WL
97072013-02-19 Jiong Wang <jiwang@tilera.com>
9708
9709 * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
b74ea3eb 9710 should be aligned to 64bit.
bc23a956 9711
42f45f1a
KT
97122013-02-19 Kai Tietz <ktietz@redhat.com>
9713
9714 * windows-nat.c (windows_xfer_memory): Fix debug-output
9715 for LLP64.
9716
6ce4c112
LL
97172013-02-19 Lei Liu <lei.liu2@windriver.com>
9718
9719 * mips-linux-nat.c (mips64_linux_regsets_store_registers):
9720 Don't check DSP register number if HAVE_DSP is not set.
9721
30e8ee25
AM
97222013-02-19 Alan Modra <amodra@gmail.com>
9723
9724 * elfread.c (struct build_id): Delete. Use struct elf_build_id
9725 throughout file instead.
9726 (build_id_bfd_get): Update to use new elf_tdata build_id field.
9727 Don't xmalloc return value.
9728 (build_id_verify): Similarly. Don't xfree.
9729 (build_id_to_debug_filename): Update.
9730 (find_separate_debug_file_by_buildid): Update, don't xfree.
9731
4c9ad8c2
TT
97322013-02-18 Tom Tromey <tromey@redhat.com>
9733
9734 PR gdb/15102:
9735 * dwarf2read.c (read_subrange_type): Use result of
9736 'check_typedef'.
9737
983dc440
YQ
97382013-02-16 Yuanhui Zhang <asmwarrior@gmail.com>
9739
9740 * frame.c: Remove one extra white space after #include
9741 directive.
9742
7fb2b84a
JK
97432013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9744
9745 * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
9746
edceb2a9
JK
97472013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9748
9749 * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
9750 and dir commands into an if block.
9751
e81b7af8
TT
97522013-02-15 Sanimir Agovic <sanimir.agovic@intel.com>
9753
9754 * python/py-breakpoint (struct pybp_code): Use int instead of
9755 enum type_code.
9756
f5911ea1
HAQ
97572013-02-15 Pedro Alves <pedro@codesourcery.com>
9758 Hafiz Abid Qadeer <abidh@codesourcery.com>
9759
9760 * NEWS: Mention new field "trace-file".
9761 * tracepoint.c (trace_status_mi): Output "trace-file" field.
9762 (tfile_open): Record the trace file's filename in the trace
9763 status.
9764 (tfile_files_info): Mention the name of the trace file.
9765 Check the "filename" field explicitely.
9766 (trace_status_command): Explicitely check "filename" field.
9767 (trace_find_command): Ditto.
9768 (trace_find_pc_command): Ditto.
9769 (trace_find_tracepoint_command): Ditto.
9770 (trace_find_line_command): Ditto.
9771 (trace_find_range_command): Ditto.
9772 (trace_find_outside_command): Ditto.
9773 * tracepoint.h (struct trace_status) <from_file>: Rename it
9774 to "filename" and make it hold the trace file's filename
9775 instead of a boolean.
9776 * remote.c (remote_get_trace_status): Initialize "filename"
9777 field with NULL instead of 0.
9778
796cb314
YQ
97792013-02-15 Yao Qi <yao@codesourcery.com>
9780
9781 * remote.c: Fix a typo.
9782
42e79b1d
PM
97832013-02-14 Pierre Muller <muller@sourceware.org>
9784
9785 * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
9786
baea0dae
PA
97872013-02-14 Pedro Alves <palves@redhat.com>
9788
9789 * utils.c (savestring): Don't #undef it. Move function to
9790 common/common-utils.c.
9791 * common/common-utils.c: Include gdb_string.h.
9792 (savestring): Move here from utils.c.
9793 * common/common-utils.h (savestring): Declare.
9794
57c3b6ed
PA
97952013-02-14 Pedro Alves <palves@redhat.com>
9796
9797 * utils.c (savestring): Rename parameter 'size' to 'len'.
9798
d6c44983
YZ
97992013-02-14 Pedro Alves <palves@redhat.com>
9800 Yufeng Zhang <yufeng.zhang@arm.com>
9801
9802 * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
9803 (aarch64_inferior_data, struct aarch64_inferior_data):
9804 Delete.
9805 (struct aarch64_process_info): New.
9806 (aarch64_process_list): New global.
9807 (aarch64_find_process_pid, aarch64_add_process)
9808 (aarch64_process_info_get): New functions.
9809 (aarch64_inferior_data_get): Delete.
9810 (aarch64_process_info_get): New function.
9811 (aarch64_forget_process): New function.
9812 (aarch64_get_debug_reg_state): New parameter 'pid'. Reimplement.
9813 (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
9814 aarch64_get_debug_reg_state.
9815 (aarch64_notify_debug_reg_change): Use iterate_over_lwps
9816 instead of linux_nat_iterate_watchpoint_lwps.
9817 (aarch64_linux_new_fork): New function.
9818 (aarch64_linux_child_post_startup_inferior): Use
9819 aarch64_forget_process instead of aarch64_init_debug_reg_state.
9820 (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
9821 (aarch64_linux_remove_hw_breakpoint)
9822 (aarch64_handle_aligned_watchpoint)
9823 (aarch64_handle_unaligned_watchpoint)
9824 (aarch64_linux_insert_watchpoint)
9825 (aarch64_linux_remove_watchpoint)
9826 (aarch64_linux_stopped_data_address): Adjust to pass the current
9827 process id to aarch64_debug_reg_state.
9828 (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
9829 linux_nat_new_fork hook, and aarch64_forget_process as
9830 linux_nat_forget_process hook; remove the call to
9831 register_inferior_data_with_cleanup.
9832
4819b3f8
PA
98332013-02-14 Pedro Alves <palves@redhat.com>
9834
9835 * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
9836 EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
9837 lval_memory.
9838
1773c82c
HAQ
98392013-02-14 Pedro Alves <pedro@codesourcery.com>
9840 Hafiz Abid Qadeer <abidh@codesourcery.com>
9841
9842 * tracepoint.h (validate_trace_state_variable_name): Declare.
9843 * tracepoint.c (validate_trace_state_variable_name): New.
9844 (trace_variable_command): Parse the trace state variable's name
9845 without using parse_expression. Do several validations.
9846 * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
9847 trace state variable's name with parse_expression. Validate it.
9848
53778a97
YQ
98492013-02-14 Yao Qi <yao@codesourcery.com>
9850
9851 * infcmd.c (breakpoint_proceeded): Remove it.
9852
7b3ae3a6
YQ
98532013-02-14 Yao Qi <yao@codesourcery.com>
9854
9855 * tracepoint.c (end_actions_pseudocommand): Make it static.
9856 (while_stepping_pseudocommand): Likewise.
9857 * tracepoint.h (end_actions_pseudocommand): Remove the
9858 declaration.
9859 (while_stepping_pseudocommand): Likewise.
9860
64580925
YQ
98612013-02-14 Yao Qi <yao@codesourcery.com>
9862
9863 * cli/cli-decode.c (help_cmd): Remove the declaration of
9864 "cmdlist".
9865 (help_all): Likewise.
9866
26cb8b7c
PA
98672013-02-13 Pedro Alves <palves@redhat.com>
9868
9869 * amd64-linux-nat.c (update_debug_registers_callback):
9870 Update comment.
9871 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
9872 iterate_over_lwps.
9873 (amd64_linux_prepare_to_resume): Pass the lwp's pid to
9874 i386_debug_reg_state.
9875 (amd64_linux_new_fork): New function.
9876 (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
9877 linux_nat_new_fork hook, and i386_forget_process as
9878 linux_nat_forget_process hook.
9879 * i386-linux-nat.c (update_debug_registers_callback):
9880 Update comment.
a8256ea1 9881 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
26cb8b7c
PA
9882 iterate_over_lwps.
9883 (i386_linux_prepare_to_resume): Pass the lwp's pid to
9884 i386_debug_reg_state.
9885 (i386_linux_new_fork): New function.
9886 (_initialize_i386_linux_nat): Install i386_linux_new_fork as
9887 linux_nat_new_fork hook, and i386_forget_process as
9888 linux_nat_forget_process hook.
9889 * i386-nat.c (i386_init_dregs): Delete.
9890 (i386_inferior_data, struct i386_inferior_data):
9891 Delete.
9892 (struct i386_process_info): New.
9893 (i386_process_list): New global.
9894 (i386_find_process_pid, i386_add_process, i386_process_info_get):
9895 New functions.
9896 (i386_inferior_data_get): Delete.
9897 (i386_process_info_get): New function.
9898 (i386_debug_reg_state): New parameter 'pid'. Reimplement.
9899 (i386_forget_process): New function.
9900 (i386_cleanup_dregs): Rewrite.
9901 (i386_update_inferior_debug_regs, i386_insert_watchpoint)
9902 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
9903 (i386_stopped_data_address, i386_insert_hw_breakpoint)
9904 (i386_remove_hw_breakpoint): Adjust to pass the current process id
9905 to i386_debug_reg_state.
9906 (i386_use_watchpoints): Don't register inferior data.
9907 * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
9908 adjust comment.
9909 (i386_forget_process): Declare.
9910 * linux-fork.c (delete_fork): Call linux_nat_forget_process.
9911 * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
9912 New static globals.
9913 (linux_child_follow_fork): Don't call linux_nat_new_thread here.
9914 (add_initial_lwp): New, factored out from ...
9915 (add_lwp): ... this. Don't check the number of lwps before
9916 calling linux_nat_new_thread.
9917 (linux_nat_iterate_watchpoint_lwps): Delete.
9918 (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
9919 (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
9920 forks and vforks.
9921 (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
9922 initial lwp.
9923 (linux_nat_kill, linux_nat_mourn_inferior): Call
9924 linux_nat_forget_process.
9925 (linux_nat_set_new_fork, linux_nat_set_forget_process)
9926 (linux_nat_forget_process): New functions.
9927 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
9928 type.
9929 (linux_nat_iterate_watchpoint_lwps): Delete declaration.
9930 (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
9931 types.
9932 (linux_nat_set_new_fork, linux_nat_set_forget_process)
9933 (linux_nat_forget_process): New declarations.
9934
9935 * amd64fbsd-nat.c (super_mourn_inferior): New global.
9936 (amd64fbsd_mourn_inferior): New function.
9937 (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
9938 * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
9939
5befea72
MS
99402013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
9941
55015247
YQ
9942 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
9943 Adding _().
5befea72 9944
1d3ffd6b
MS
99452013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
9946
9947 * aarch64-linux-nat.c (debug_reg_change_callback)
9948 (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
9949 %s and phex().
9950
6eb04473
MS
99512013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
9952
9953 * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
9954 with LONGEST.
9955
a016fc87
HAQ
99562013-02-13 Pedro Alves <palves@redhat.com>
9957 Hafiz Abid Qadeer <abidh@codesourcery.com>
9958
9959 * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
9960
e234dfaf
TT
99612013-02-12 Tom Tromey <tromey@redhat.com>
9962
9963 PR symtab/11464:
9964 * c-exp.y (lex_one_token): Initialize other fields of yylval on
9965 NAME return.
9966 (classify_inner_name): Remove 'first_name' argument, add
9967 'context'. Remove unused variable.
9968 (yylex): Explicitly maintain the context type. Exit loop earlier
9969 if NAME result is seen.
9970
0b1afbb3
PA
99712013-02-12 Pedro Alves <palves@redhat.com>
9972
9973 * amd64-darwin-tdep.c: Add (C) after Copyright.
9974 * cli/cli-cmds.h: Ditto.
9975 * cli/cli-decode.c: Ditto.
9976 * cli/cli-decode.h: Ditto.
9977 * cli/cli-dump.c: Ditto.
9978 * cli/cli-dump.h: Ditto.
9979 * cli/cli-interp.c: Ditto.
9980 * cli/cli-logging.c: Ditto.
9981 * cli/cli-script.c: Ditto.
9982 * cli/cli-script.h: Ditto.
9983 * cli/cli-setshow.c: Ditto.
9984 * cli/cli-setshow.h: Ditto.
9985 * cli/cli-utils.c: Ditto.
9986 * cli/cli-utils.h: Ditto.
9987 * config/alpha/nm-osf3.h: Ditto.
9988 * config/djgpp/djconfig.sh: Ditto.
9989 * config/i386/nm-fbsd.h: Ditto.
9990 * config/i386/nm-i386gnu.h: Ditto.
9991 * config/nm-linux.h: Ditto.
9992 * config/nm-nto.h: Ditto.
9993 * config/rs6000/nm-rs6000.h: Ditto.
9994 * config/sparc/nm-sol2.h: Ditto.
9995 * darwin-nat-info.c: Ditto.
9996 * dfp.c: Ditto.
9997 * dfp.h: Ditto.
9998 * gdb-demangle.h: Ditto.
9999 * i386-darwin-nat.c: Ditto.
10000 * i386-darwin-tdep.c: Ditto.
10001 * linux-fork.h: Ditto.
10002 * m32c-tdep.c: Ditto.
10003 * microblaze-linux-tdep.c: Ditto.
10004 * microblaze-rom.c: Ditto.
10005 * microblaze-tdep.c: Ditto.
10006 * microblaze-tdep.h: Ditto.
10007 * mips-linux-tdep.h: Ditto.
10008 * ppc-ravenscar-thread.c: Ditto.
10009 * ppc-ravenscar-thread.h: Ditto.
10010 * prologue-value.c: Ditto.
10011 * prologue-value.h: Ditto.
10012 * ravenscar-thread.c: Ditto.
10013 * ravenscar-thread.h: Ditto.
10014 * sparc-ravenscar-thread.c: Ditto.
10015 * sparc-ravenscar-thread.h: Ditto.
10016 * tilegx-linux-tdep.c: Ditto.
10017 * unwind_stop_reasons.def: Ditto.
10018 * windows-nat.h: Ditto.
10019 * xtensa-linux-tdep.c: Ditto.
10020 * xtensa-xtregs.c: Ditto.
10021 * regformats/regdat.sh: Ditto.
10022 * regformats/regdef.h: Ditto.
10023
6c01dd94
PA
100242013-02-12 Pedro Alves <palves@redhat.com>
10025
10026 * break-catch-sig.c: Update copyright years.
10027
b65a2bd9
SCR
100282013-02-11 Siva Chandra Reddy <sivachandra@google.com>
10029
10030 Add support for a destructor for ui_out data and use it to
10031 provide a ui_out destructor.
10032 * ui-out.h: Declare the new ui_out destructor.
10033 (ui_out_impl): Add a field for data destructor in ui_out_impl.
10034 * ui-out.c (default_data_destroy): Add a default data destructor
10035 which does nothing.
10036 (default_ui_out_impl): Set the new data_destroy field to
10037 default_data_destroy
10038 (uo_data_destroy): Local function which invokes the data
10039 destructor if present.
10040 (clear_table): Local function which clears the table data of a
10041 ui_out object.
10042 (ui_out_destroy): Public function which frees a ui_out object.
10043 (ui_out_table_end): Use the new clear_table function.
10044 * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
10045 NULL.
10046 * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
10047 to NULL.
10048
c2792f5a
DE
100492013-02-11 Doug Evans <dje@google.com>
10050
10051 * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
10052 (printf_decfloat): New function. Broken out from ui_printf.
10053 Remove unnecessary code to shift the entire format string down.
10054 (printf_pointer): New function.
10055 (ui_printf): Code to print C strings, wide C strings, decfloats,
10056 and pointers moved to separate functions.
10057
d9e98382
SDJ
100582013-02-11 Sergio Durigan Junior <sergiodj@redhat.com>
10059
10060 * valops.c (value_assign): Handling bitfield offset in
10061 `lval_internalvar_component' case.
10062
4ff3ce77
DE
100632013-02-08 Doug Evans <dje@google.com>
10064
10065 * common/format.c (parse_format_string): Fix whitespace.
10066
901900c4
MGD
100672013-02-08 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
10068
10069 * stack.c (return_command): Work around uninitialized variable
10070 warning.
10071
b5dbc8d4
YZ
100722013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
10073
10074 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
10075 number of the registers from 36 to 34.
10076
51d66578
MS
100772013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
10078
10079 * NEWS: Mention new AArch64 native and target support.
10080
176b1c95
MS
100812013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
10082
10083 * MAINTAINERS (Write After Approval): Add myself.
10084
9d19df75
MS
100852013-02-08 Jim MacArthur <jim.macarthur@arm.com>
10086 Marcus Shawcroft <marcus.shawcroft@arm.com>
10087 Nigel Stephens <nigel.stephens@arm.com>
10088 Yufeng Zhang <yufeng.zhang@arm.com>
10089
10090 * aarch64-linux-nat.c: New file.
10091 * config/aarch64/linux.mh: New file.
10092 * configure.host: Add AArch64.
10093 * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
10094
7e1e0340
DE
100952013-02-07 Doug Evans <dje@google.com>
10096
10097 * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
10098 disassemble command.
10099
45e25a36
MS
101002013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
10101
10102 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
10103 set_gdbarch_fetch_tls_load_module_address.
10104
bbfdfe1c
DM
101052013-02-06 David S. Miller <davem@davemloft.net>
10106
10107 * sparc-tdep.c (sparc32_return_value): Handle writing return value when
10108 using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
10109 * value.c (struct_return_convention): New function.
10110 (using_struct_return): Implement in terms of struct_return_convention.
10111 * value.h (struct_return_convention): Declare.
10112 * stack.c (return_command): Allow successful overriding of the return
10113 value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
10114
bc9abe4a
TT
101152013-02-06 Tom Tromey <tromey@redhat.com>
10116
10117 * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
10118 outside of TRY_CATCH.
10119
134a2066
YQ
101202013-02-06 Yao Qi <yao@codesourcery.com>
10121
10122 * mi/mi-interp.c: Include "tracepoint.h".
10123 (mi_tsv_modified): Declare.
10124 (mi_tsv_created, mi_tsv_deleted): Update declaration.
10125 (mi_interpreter_init): Call observer_attach_tsv_modified.
10126 (mi_tsv_modified): New.
10127 (mi_tsv_created, mi_tsv_deleted): Update.
10128 * tracepoint.c (trace_variable_command): Call
10129 observer_notify_tsv_modified if the initial value of tsv is
10130 changed.
10131 (delete_trace_state_variable): Call
10132 observer_notify_tsv_deleted earlier.
10133 (trace_variable_command): Caller update.
10134 (create_tsv_from_upload): Likewise.
10135 * observer.sh: Declare "struct trace_state_variable".
10136
10137 * NEWS: Mention the new MI notification "=tsv-modified".
10138
59be2b6a
DE
101392013-02-05 Doug Evans <dje@google.com>
10140
10141 * completer.c (location_completer): Fix typo in comment.
10142
d30113d4
JK
101432013-02-05 Jan Kratochvil <jan.kratochvil@redhat.com>
10144
10145 * breakpoint.c (add_location_to_breakpoint): Insert the location with
10146 ADDRESS sorted.
10147
14ac654f
MS
101482013-02-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
10149
10150 * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
10151 Refactor if statement to avoid trailing || operator.
10152
543bf33d
AT
101532013-02-05 Andreas Tobler <andreast@fgznet.ch>
10154
10155 * NEWS: Add PowerPC FreeBSD as a new native configuration.
10156
dc18f110
AT
101572013-02-04 Andreas Tobler <andreast@fgznet.ch>
10158
10159 * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
10160 * configure.host: Add powerpc*-*-freebsd* target.
10161 * configure.tgt: Add target info for powerpc*-*-freebsd*.
10162 * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
10163 * config/powerpc/fbsd.mh: New file.
10164
b3ac9c77
SDJ
101652013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
10166 Denys Vlasenko <dvlasenk@redhat.com>
10167 Pedro Alves <palves@redhat.com>
10168
10169 * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
10170 (struct elf_internal_linux_prpsinfo): Forward declare.
10171 * gdbarch.h, gdbarch.c: Regenerate.
10172 * linux-tdep.c: Include `cli/cli-utils.h'.
10173 (linux_fill_prpsinfo): New function.
10174 (linux_make_corefile_notes): Use linux_fill_prpsinfo. If there's
10175 an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
10176 elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
10177 depending on gdbarch pointer bitness.
10178 * ppc-linux-tdep.c: Include elf-bfd.h.
10179 (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
10180 on 32-bit.
10181
176eb98c
MS
101822013-02-04 Jim MacArthur <jim.macarthur@arm.com>
10183 Marcus Shawcroft <marcus.shawcroft@arm.com>
10184 Nigel Stephens <nigel.stephens@arm.com>
10185 Yufeng Zhang <yufeng.zhang@arm.com>
10186
10187 * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
10188
cf0dbd6f
MS
101892013-02-04 Jim MacArthur <jim.macarthur@arm.com>
10190 Marcus Shawcroft <marcus.shawcroft@arm.com>
10191 Nigel Stephens <nigel.stephens@arm.com>
10192 Yufeng Zhang <yufeng.zhang@arm.com>
10193
10194 * aarch64-newlib-tdep.c: New file.
10195 * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
10196 aarch64*-*-elf.
10197 * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
10198 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
10199 (ALLDEPFILES): Add aarch64-newlib-tdep.c.
10200 * osabi.c (gdb_osabi_names): Add "Newlib".
10201
1ae3db19
MS
102022013-02-04 Jim MacArthur <jim.macarthur@arm.com>
10203 Marcus Shawcroft <marcus.shawcroft@arm.com>
10204 Nigel Stephens <nigel.stephens@arm.com>
10205 Yufeng Zhang <yufeng.zhang@arm.com>
10206
10207 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
10208 (ALLDEPFILES): Add aarch64-linux-tdep.c.
10209 * aarch64-linux-tdep.c: New file.
10210 * aarch64-linux-tdep.h: New file.
10211 * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
10212 * configure.tgt: Add aarch64-none-linux-gnu.
10213
07b287a0
MS
102142013-02-04 Jim MacArthur <jim.macarthur@arm.com>
10215 Marcus Shawcroft <marcus.shawcroft@arm.com>
10216 Nigel Stephens <nigel.stephens@arm.com>
10217 Yufeng Zhang <yufeng.zhang@arm.com>
10218
10219 * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
10220 (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
10221 (ALLDEPFILES): Add aarch64-tdep.c.
10222 * aarch64-tdep.c: New file.
10223 * aarch64-tdep.h: New file.
10224 * configure.tgt: Add AArch64.
10225 * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
10226 (aarch64-expedite): New definition.
10227 * features/aarch64-core.xml: New file.
10228 * features/aarch64-fpu.xml: New file.
10229 * features/aarch64-without-fpu.c: New file (generated).
10230 * features/aarch64-without-fpu.xml: New file.
10231 * features/aarch64.c: New file (generated).
10232 * features/aarch64.xml: New file.
10233 * regformats/aarch64-without-fpu.dat: New file (generated).
10234 * regformats/aarch64.dat: New file (generated).
10235
0f1b18ab
JK
102362013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10237
10238 * contrib/expect-read1.c: New file.
10239 * contrib/expect-read1.sh: New file.
10240
233d95b5
JK
102412013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10242
10243 * dwarf2read.c (file_file_name): New function with code from
10244 file_full_name.
10245 (file_full_name): Move most of the code to file_file_name.
10246 (macro_start_file): Rename variable full_name to file_name and use
10247 file_file_name for it. Add comp_dir parameter to new_macro_table.
10248 * macrocmd.c (show_pp_source_pos): New variable fullname. Replace any
10249 macro_source_file->filename access by macro_source_fullname call.
10250 * macroscope.c (_initialize_macroscope): Update the new_macro_table
10251 caller.
10252 * macrotab.c (struct macro_table): New field comp_dir.
10253 (macro_include): New variables link_fullname and source_fullname.
10254 Replace any macro_source_file->filename access by macro_source_fullname
10255 call.
10256 (macro_lookup_inclusion): Remove the partial filenames checking code.
10257 (check_for_redefinition): New variables source_fullname and
10258 found_key_fullname. Replace any macro_source_file->filename access by
10259 macro_source_fullname call.
10260 (macro_undef): New variables source_fullname and key_fullname. Replace
10261 any macro_source_file->filename access by macro_source_fullname call.
10262 (macro_lookup_definition): New variables retval and source_fullname.
10263 Replace any macro_source_file->filename access by macro_source_fullname
10264 call.
10265 (foreach_macro): New variable key_fullname. Replace any
10266 macro_source_file->filename access by macro_source_fullname call.
10267 (foreach_macro_in_scope): New variable datum_fullname. Replace any
10268 macro_source_file->filename access by macro_source_fullname call.
10269 (new_macro_table): Add parameter comp_dir. Initialize T with it.
10270 (macro_source_fullname): New function.
10271 * macrotab.h (struct macro_source_file): Extent the filename field
10272 comment.
10273 (new_macro_table): New parameter comp_dir, add a comment for it.
10274 (macro_source_fullname): new declaration.
10275
da235a7c
JK
102762013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10277
10278 * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
10279 this_real_name to outer block. Use it also for
10280 compare_filenames_for_search.
10281 (dw2_expand_symtabs_matching): New variable this_real_name. Use it
10282 with dw2_get_real_path for file_matcher, considering also
10283 BASENAMES_MAY_DIFFER.
10284 (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
10285
fbd9ab74
JK
102862013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10287
10288 * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
10289 to the file_matcher parameter. Pass 0 to it.
10290 (dwarf2_create_include_psymtab): Copy also DIRNAME.
10291 * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
10292 NULL psymtab_to_fullname result.
10293 (psymtab_to_fullname): Remove variable r. Never return NULL, assemble
10294 an expected filename instead.
10295 (expand_symtabs_matching_via_partial): Add basenames parameter to the
10296 file_matcher parameter. Call also psymtab_to_fullname, after newly
10297 considering BASENAMES_MAY_DIFFER.
10298 * source.c (rewrite_source_path): Remove static.
10299 * source.h (rewrite_source_path): New declaration.
10300 * symfile.h (struct quick_symbol_functions): Add basenames parameter to
10301 the expand_symtabs_matching field. Comment it.
10302 * symtab.c (file_matches): New function comment. Add parameter
10303 basenames, implement it.
10304 (search_symbols_file_matches): Add basenames parameter. Update the
10305 file_matches caller.
10306 (search_symbols): Match FILES also against symtab_to_fullname.
10307 Optimize it for BASENAMES_MAY_DIFFER.
10308
56d397a3
JK
103092013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10310
10311 * source.c (print_source_lines_base): Print for TUI also "fullname".
10312 * tui/tui-data.c (init_content_element): Change tui_locator_element
10313 field to full_name.
10314 * tui/tui-data.h (struct tui_locator_element): Likewise.
10315 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
10316 tui_update_locator_filename calls to tui_update_locator_fullname.
10317 Replace symtab->filename refererence by symtab_to_fullname call.
10318 * tui/tui-out.c (tui_field_string): Check for "fullname" now.
10319 * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
10320 field to full_name. Replace symtab->filename refererence by
10321 symtab_to_fullname call.
10322 (tui_show_symtab_source): Rename parameter to fullname. Change
10323 tui_locator_element field to full_name.
10324 * tui/tui-stack.c: Include source.h.
10325 (tui_set_locator_filename): Rename the declaration to ...
10326 (tui_set_locator_fullname): ... here. Rename its parameter to
10327 fullname, updates its comment.
10328 (tui_set_locator_info): Rename its parameter to fullname.
10329 (tui_set_locator_filename): Rename the definition to ...
10330 (tui_set_locator_fullname): ... here. Rename its parameter to
10331 fullname, updates its comment. Change tui_locator_element field to
10332 full_name.
10333 (tui_set_locator_info): Rename its parameter to fullname.
10334 (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
10335 (tui_update_locator_filename): Rename to ...
10336 (tui_update_locator_fullname): ... here. Rename callee to
10337 tui_set_locator_fullname.
10338 (tui_show_frame_info): Replace symtab->filename refererence by
10339 symtab_to_fullname call.
10340 * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
10341 (tui_update_locator_fullname): ... here.
10342 * tui/tui-winsource.c (tui_display_main): Rename the callee to
10343 tui_update_locator_fullname. Replace symtab->filename refererence by
10344 symtab_to_fullname call.
10345 * tui/tui.c (tui_show_source): Rename its parameter to fullname.
10346 Rename the callee to tui_update_locator_fullname.
10347 * tui/tui.h (tui_show_source): Rename its parameter to fullname.
10348
05cba821
JK
103492013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10350
10351 * ada-lang.c (user_select_syms): Replace symtab->filename refererences
10352 by symtab_to_filename_for_display calls.
10353 * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
10354 (clear_command): New variable sal_fullname, initialize it. Replace
10355 compare_filenames_for_search by filename_cmp with sal_fullname.
10356 (say_where, update_static_tracepoint): Replace symtab->filename
10357 refererences by symtab_to_filename_for_display calls.
10358 * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
10359 Likewise.
10360 * dwarf2read.c: Include source.h.
10361 (fixup_go_packaging): Replace symtab->filename refererences by
10362 symtab_to_filename_for_display calls.
10363 * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
10364 Replace symtab->filename refererences by symtab_to_filename_for_display
10365 calls.
10366 (create_sals_line_offset, convert_linespec_to_sals): New variable
10367 fullname, initialize it, replace symtab->filename reference by the
10368 variable.
10369 * linux-fork.c: Include source.h.
10370 (info_checkpoints_command): Replace symtab->filename refererences by
10371 symtab_to_filename_for_display calls.
10372 * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
10373 by symtab_to_filename_for_display calls.
10374 * mdebugread.c: Include source.h.
10375 (psymtab_to_symtab_1): Replace symtab->filename refererences by
10376 symtab_to_filename_for_display calls.
10377 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
10378 (mi_cmd_file_list_exec_source_files): Likewise.
10379 * printcmd.c: Include source.h.
10380 (build_address_symbolic): Replace symtab->filename refererences by
10381 symtab_to_filename_for_display calls.
10382 * psymtab.c (partial_map_symtabs_matching_filename)
10383 (read_psymtabs_with_fullname): Call compare_filenames_for_search also
10384 with psymtab_to_fullname.
10385 * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
10386 by symtab_to_filename_for_display calls.
10387 (stpy_get_filename): New variable filename, initialize it, use instead
10388 of symtab->filename refererences.
10389 (salpy_str): Make variable filename const char *. Replace
10390 symtab->filename refererences by symtab_to_filename_for_display calls.
10391 * skip.c: Include source.h and filenames.h.
10392 (skip_file_command): Remove const from the symtab variable. Replace
10393 symtab->filename refererences by symtab_to_fullname call.
10394 (function_name_is_marked_for_skip): New variables searched_for_fullname
10395 and fullname. Use them to search also with symtab's fullname.
10396 * source.c (find_source_lines): Replace symtab->filename refererences
10397 by symtab_to_filename_for_display calls.
10398 (print_source_lines_base): New variable filename, use it instead of
10399 symtab->filename. Replace symtab->filename refererences by
10400 symtab_to_filename_for_display calls.
10401 (line_info, forward_search_command): Replace symtab->filename
10402 refererences by symtab_to_filename_for_display calls.
10403 (reverse_search_command): Replace symtab->filename refererences by
10404 symtab_to_filename_for_display calls. New variable filename for it.
10405 * stack.c (frame_info): Likewise.
10406 * symmisc.c: Include source.h.
10407 (dump_objfile, dump_symtab_1, maintenance_print_symbols)
10408 (maintenance_info_symtabs): Replace symtab->filename refererences by
10409 symtab_to_filename_for_display calls.
10410 * symtab.c (iterate_over_some_symtabs): Call
10411 compare_filenames_for_search also with symtab_to_fullname.
10412 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
10413 symtab->filename refererences by symtab_to_filename_for_display calls.
10414 (find_line_symtab): Replace symtab->filename refererences by
10415 symtab_to_filename_for_display calls.
10416 (file_matches): Replace filename_cmp by compare_filenames_for_search.
10417 (print_symbol_info): Make the last parameter const char *. New
10418 variable s_filename. Use it in the function.
10419 (symtab_symbol_info): Make the last_filename variable const char *.
10420 Replace symtab->filename refererences by symtab_to_filename_for_display
10421 calls.
10422 (rbreak_command): New variable fullname. Use it. Replace
10423 symtab->filename refererence by symtab_to_filename_for_display call.
10424 * tracepoint.c (set_traceframe_context, trace_find_line_command)
10425 (print_one_static_tracepoint_marker): Replace symtab->filename
10426 refererences by symtab_to_filename_for_display calls.
10427 * tui/tui-source.c (tui_set_source_content): New variables filename and
10428 s_filename. Replace symtab->filename refererences by this variable.
10429 Replace other symtab->filename refererences by
10430 symtab_to_filename_for_display calls.
10431
1b56eb55
JK
104322013-02-03 Eldar Gaynetdinov <hal9000ed2k@gmail.com>
10433 Jan Kratochvil <jan.kratochvil@redhat.com>
10434
10435 Add a new variable that controls a way in which filenames are
10436 displayed.
10437 * NEWS (set filename-display): New entry.
10438 * source.c (filename_display_basename, filename_display_relative)
10439 (filename_display_absolute, filename_display_kind_names)
10440 (filename_display_string, show_filename_display_string)
10441 (symtab_to_filename_for_display): New.
10442 (_initialize_source): Added initialization of 'filename-display'
10443 variable.
10444 * source.h (symtab_to_filename_for_display): Added declaration.
10445 * stack.c (print_frame): Added new variable and calling of a new
10446 function and condition with this variable. Changed third argument of
10447 calling of a function.
10448
aa079c93
JK
104492013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10450
10451 * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
10452 Rename field reference filename to fullname.
10453 * tui/tui-data.h (struct tui_source_info): Rename field filename to
10454 fullname. New comment for it.
10455 * tui/tui-source.c (tui_set_source_content): Rename field reference
10456 filename to fullname. Initialize field by symtab_to_fullname now.
10457 * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
10458 reference filename to fullname. Use symtab_to_fullname during
10459 comparison.
10460
652a8996
JK
104612013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10462
10463 Code cleanup.
10464 * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
10465 (dw2_expand_symtabs_with_fullname): ... here. Rename parameter
10466 filename to fullname. Rename variable this_name to this_fullname.
10467 Lowercase FILENAME_CMP call.
10468 (dw2_find_symbol_file): New comment for the returned string.
10469 (dwarf2_gdb_index_functions): Rename the function to
10470 dw2_expand_symtabs_with_fullname.
10471 * psymtab.c (read_psymtabs_with_filename): Rename to ...
10472 (read_psymtabs_with_fullname): ... here. Rename parameter filename to
10473 fullname.
10474 (psym_functions): Rename the function to read_psymtabs_with_fullname.
10475 * symfile.h (struct quick_symbol_functions): Rename field
10476 expand_symtabs_with_filename to expand_symtabs_with_fullname and its
10477 parameter filename to fullname. Document returned string meaning for
10478 find_symbol_file.
10479 * symtab.c (find_line_symtab): Rename the called function to
10480 expand_symtabs_with_fullname.
10481
af529f8f
JK
104822013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10483
10484 Code cleanup.
10485 * breakpoint.c (clear_command): Remove variable is_abs, unify the
10486 call of filename_cmp with compare_filenames_for_search.
10487 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
10488 is_abs, unify the call of FILENAME_CMP with
10489 compare_filenames_for_search. New gdb_asserts for real_path and name.
10490 Unify the call of compare_filenames_for_search with FILENAME_CMP.
10491 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
10492 * symfile.h (struct quick_symbol_functions): Extend the comment for
10493 map_symtabs_matching_filename.
10494 * symtab.c (compare_filenames_for_search): Remove the function comment
10495 relative path requirement. Handle absolute filenames, with a comment.
10496 (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
10497 FILENAME_CMP with compare_filenames_for_search. New gdb_asserts for
10498 real_path and name. Unify the call of compare_filenames_for_search
10499 with FILENAME_CMP.
10500 (iterate_over_symtabs): New gdb_assert on REAL_PATH.
10501
2f202fde
JK
105022013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10503
10504 Code cleanup.
10505 * breakpoint.c (print_breakpoint_location): Replace bp_location field
10506 source_file references by symtab field references. Remove variables
10507 sal and fullname.
10508 (momentary_breakpoint_from_master, add_location_to_breakpoint):
10509 (clear_command, say_where): Replace bp_location field source_file
10510 references by symtab field references.
10511 (bp_location_dtor): Remove the source_file reference.
10512 (update_static_tracepoint): Replace bp_location field source_file
10513 references by symtab field references.
10514 (breakpoint_free_objfile): New function.
10515 * breakpoint.h (struct bp_location): Extend the comment for line_number.
10516 Replace the field source_file by field symtab, extend its comment.
10517 (breakpoint_free_objfile): New declaration.
10518 * objfiles.c (free_objfile): Call breakpoint_free_objfile.
10519 * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
10520 field source_file references by symtab field references.
10521
f5b95b50
JK
105222013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10523
10524 Replace xfullpath calls by gdb_realpath calls.
10525 * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
10526 function comment.
10527 * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
10528 Remove it from the iterate_over_some_symtabs call.
10529 (dw2_map_symtabs_matching_filename): Remove parameter full_path.
10530 Remove it from the dw2_map_expand_apply calls, remove a block handling
10531 it.
10532 * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
10533 Remove it from the iterate_over_some_symtabs call.
10534 (partial_map_symtabs_matching_filename): Remove parameter full_path.
10535 Remove it from the partial_map_expand_apply calls, remove a block
10536 handling it. Drop gdb_realpath call and cleanups from the real_path
10537 handling.
10538 * source.c (openp): Drop the comment part about xfullpath. Replace
10539 xfullpath calls by gdb_realpath calls.
10540 (find_and_open_source): Replace xfullpath call by gdb_realpath call.
10541 * symfile.h (struct quick_symbol_functions): Remove parameter full_path
10542 from method map_symtabs_matching_filename and its comment.
10543 * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
10544 gdb_realpath call.
10545 * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
10546 remove it also from the function comment, remove a block handling it.
10547 Drop gdb_realpath call and cleanups from the real_path handling.
10548 (iterate_over_symtabs): Drop variable full_path and its use.
10549 * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
10550 * utils.c (xfullpath): Remove.
10551 * utils.h (xfullpath): Remove.
10552
d78489bf
AT
105532013-02-01 Andreas Tobler <andreast@fgznet.ch>
10554
10555 * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
10556 (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
10557 (ALLDEPFILES): Add ppc64-tdep.c.
10558 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
10559 ppc64-tdep.o to gdb_target_obs.
10560 * ppc64-tdep.h: New file.
10561 * ppc64-tdep.c: New file.
10562 (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
10563 ppc-linux-tdep.c to here.
10564 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
10565 (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
10566 (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
10567 (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
10568 from ppc-linux-tdep.c to here.
10569 (ppc64_convert_from_func_ptr_addr): Rename from
10570 ppc64_linux_convert_from_func_ptr_addr to
10571 ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
10572 here.
10573 * rs6000-tdep.c:
10574 (read_insn): Move from ppc-linux-tdep.c to here.
10575 (insns_match_pattern, insn_d_field, insn_ds_field): Move
10576 from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
10577 * ppc-linux-tdep.c: Include ppc64-tdep.h.
10578 Removed above functions.
10579 (ppc_linux_init_abi): Adjust.
10580
8db60374
AR
105812013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
10582
10583 * ada-valprint.c (ada_print_floating): Remove unused 'len'.
10584
f2e5f4ce
AR
105852013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
10586
10587 * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
10588
c1f7d745
PA
105892013-02-01 Pedro Alves <palves@redhat.com>
10590
10591 * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
10592 * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
10593
8a92335b
JK
105942013-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10595
10596 * elfread.c (elf_symfile_read): Limit separate debug info additions to
10597 files with no separate debug info.
10598 * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
10599 * symfile.c (read_symbols): Call find_separate_debug_file_in_section
10600 only for files with no separate debug info.
10601
8eacb197
TT
106022013-01-31 Tom Tromey <tromey@redhat.com>
10603
10604 * jit.c (jit_program_space_data): Rename from jit_inferior_data;
10605 change type.
10606 (struct jit_program_space_data): Rename from jit_inferior_data.
10607 Update comments.
10608 (get_jit_program_space_data): Rename from get_jit_inferior_data.
10609 Change return type. Attach data to program space.
10610 (jit_program_space_data_cleanup): Rename from
10611 jit_inferior_data_cleanup; change argument type.
10612 (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
10613 change type.
10614 (jit_register_code): Update.
10615 (jit_update_inferior_cache): Remove.
10616 (jit_breakpoint_deleted): Get jit data from the location's program
10617 space.
10618 (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
10619 'ps_data', change type.
10620 (jit_inferior_init, jit_breakpoint_re_set_internal)
10621 (jit_event_handler): Update.
10622 (free_objfile_data): Get data from objfile's program space.
10623 (_initialize_jit): Update.
10624
f25c0135
TT
106252013-01-31 Tom Tromey <tromey@redhat.com>
10626
10627 PR gdb/13987:
10628 * jit.c (struct jit_inferior_data) <cached_code_address,
10629 jit_breakpoint>: New fields.
10630 (jit_breakpoint_re_set_internal): Fix logging. Only create
10631 breakpoint if cached address has changed.
10632 (jit_update_inferior_cache, jit_breakpoint_deleted): New
10633 functions.
10634 (_initialize_jit): Register breakpoint deleted observer.
10635
974a734b
AR
106362013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10637
10638 * infrun.c (handle_syscall_event): Remove unused gdbarch.
10639 (save_infcall_suspend_state): Ifdef out unused inf.
10640 (restore_infcall_suspend_state): Ifdef out unused inf.
10641 * jit.c (jit_register_code): Remove unused i, b, inf_data.
10642 (jit_frame_sniffer): Remove unused inf_data.
10643
df54f8eb
AR
106442013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10645
10646 * c-exp.y (classify_inner_name): Remove unused type.
10647 * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
10648 in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
10649 need_escape.
10650 (c_get_string): Remove unused kind.
10651 * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
10652
5799c0b9
AR
106532013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10654
10655 * charset.c (intermediate_encoding): Remove unused i.
10656 * completer.c (signal_completer): Remove unused i.
10657 * continuations.c (discard_my_continuations_1): Remove unused
10658 continuation_ptr.
10659 * corelow.c (core_close): Remove unuseD name.
10660 (get_core_siginfo): Remove unused pid.
10661 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
10662 i, cps.
10663 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
10664 (loclist_describe_location): Remove unused first.
10665 * event-top.c (command_line_handler): Remove unused got_eof.
10666 * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
10667 (resize_section_table): Remove unused old_value.
10668 * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
10669 * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
10670 * i386-tdep.c (i386_process_record): Remove unused rex.
10671 * infcmd.c (get_return_value): Remove unused uiout.
10672 * jv-lang.c (type_from_class): Remove unused is_array.
10673 * jv-valprint.c (java_val_print): Remove unused i.
10674 * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
10675 * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
10676 * m2-typeprint.c (m2_print_type): Remove unused code.
10677 * macroexp.c (get_character_constant): Remove unused body_start.
10678 (macro_stringify): Remove unused result.
10679 * objc-lang.c (find_methods): Remove unused gdbarch.
10680 * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
10681 * regcache.c (regcache_cooked_read): Remove unused gdbarch.
10682 * stack.c (print_frame_args): Remove unused summary.
10683 * thread.c (thread_apply_command): Remove unused p.
10684 * valarith.c (value_x_unop): Remove unused mangle_ptr.
10685 * valops.c (search_struct_method): Remove unused skip.
10686 * valprint.c (generic_val_print): Remove unused byte_order.
10687 * varobj.c (varobj_update): Remove unused changed.
10688 * cli/cli-cmds.c (complete_command): Remove unused next_item.
10689 (alias_command): Remove unused c.
10690 * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
10691 * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
10692 format.
10693 (mi_cmd_data_write_memory): Remove unused word_format.
10694 (mi_cmd_data_write_memory_bytes): Remove unused r.
10695 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
10696 p_start, p_end.
10697 * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
10698 * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
10699 line_width.
10700
c656bca5
AR
107012013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10702
10703 * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
10704 * symtab.c (iterate_over_symtabs): Remove unused s.
10705 (find_pc_sect_symtab): Remove unused pspAce.
10706 (find_pc_sect_line): Remove unused alt_symtab.
10707 (find_pcs_for_symtab_line): Remove unused ix, previous_function.
10708 (completion_list_add_name): Remove unused newsize.
10709
7078baeb
TT
107102013-01-31 Tom Tromey <tromey@redhat.com>
10711
10712 PR c++/14998:
10713 * dwarf2read.c (read_tag_ptr_to_member_type): Handle
10714 TYPE_CODE_FUNC.
10715
c2e8b827
AR
107162013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10717
10718 * target.c (target_read_string): Remove unused origlen.
10719
0e43993a
AR
107202013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10721
10722 * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
10723 * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
10724 * ax-general.c (ax_print): Remove unused is_float.
10725 * blockframe.c (block_innermost_frame): Remove unused start, end.
10726 * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
10727
765a97ab
AR
107282013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10729
10730 * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
10731 (svr4_read_so_list): Remove unused lmo.
10732 * solib-target.c (solib_target_relocate_section_addresses): Remove
10733 unused flags.
10734
a99dad3d
TT
107352013-01-30 Tom Tromey <tromey@redhat.com>
10736
10737 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
10738
3bff1ecd
TT
107392013-01-30 Tom Tromey <tromey@redhat.com>
10740
10741 * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
10742 * utils.c (gnu_debuglink_crc32): Remove.
10743 * utils.h (gnu_debuglink_crc32): Don't declare.
10744
7d455152
TT
107452013-01-30 Tom Tromey <tromey@redhat.com>
10746
10747 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
10748 (read_structure_type, read_enumeration_type): Remove cast.
10749
abee88f2
TT
107502013-01-30 Tom Tromey <tromey@redhat.com>
10751
10752 * dwarf2read.c (read_namespace_type): Remove cast.
10753 (read_typedef): Likewise.
10754
8d9878a4
TT
107552013-01-29 Tom Tromey <tromey@redhat.com>
10756
10757 * dwarf2read.c (free_dwo_file): Remove assert.
10758
a543d2a9
TT
107592013-01-29 Tom Tromey <tromey@redhat.com>
10760
10761 * value.c (deprecated_set_value_modifiable): Remove.
10762 * value.h (deprecated_set_value_modifiable): Remove.
10763
bed911e5
DE
107642013-01-28 Doug Evans <dje@google.com>
10765
10766 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
10767 to addresses from dwo files.
10768
28c64fc2
SCR
107692013-01-25 Siva Chandra Reddy <sivachandra@google.com>
10770
10771 * valops.c (find_overload_match): Remove unused argument 'lax'.
10772 * value.h: Remove unused argument 'lax' from the declaration of
10773 find_overload_match.
10774 * eval.c (value_subexp_standard): Do not pass a 'lax' argument
10775 to find_overload_match.
10776 * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
10777 argument to find_overload_match.
10778
4d4ec4e5
TT
107792013-01-25 Tom Tromey <tromey@redhat.com>
10780
10781 * dwarf2read.c (processing_has_namespace_info): Remove.
10782 (struct dwarf2_cu) <processing_has_namespace_info>: New field.
10783 (process_die, read_func_scope, dwarf2_start_symtab)
10784 (new_symbol_full): Update.
10785
195a3f6c
TT
107862013-01-25 Tom Tromey <tromey@redhat.com>
10787
10788 * cp-namespace.c (cp_set_block_scope): Remove.
10789 * cp-support.h (cp_set_block_scope): Remove.
10790 * dbxread.c: Include block.h.
10791 (cp_set_block_scope): New function.
10792 (process_one_symbol): Update.
10793 * dwarf2read.c (read_func_scope): Use block_set_scope.
10794
8ba0730a
PA
107952013-01-25 Pedro Alves <palves@redhat.com>
10796
10797 * remote.c (add_current_inferior_and_thread): Tweak comment.
10798
12aaed36
TT
107992013-01-25 Tom Tromey <tromey@redhat.com>
10800
10801 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
10802 (cp_add_using_directive): Add 'copy_names' argument.
10803 * cp-support.h (cp_add_using_directive): Update.
10804 (struct using_direct) <import_src, import_dest, alias,
10805 declaration>: Now const.
10806 * dwarf2read.c (read_import_statement): Use obconcat.
10807 Don't copy names passed to cp_add_using_directive.
10808
7fc75ca7
TT
108092013-01-25 Tom Tromey <tromey@redhat.com>
10810
10811 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
10812
3405876a
PA
108132013-01-25 Pedro Alves <palves@redhat.com>
10814
10815 * remote.c (stop_reply_extract_thread): New.
10816 (add_current_inferior_and_thread): New parameter 'wait_status'.
10817 Handle it.
10818 (remote_start_remote): Pass wait status to
10819 add_current_inferior_and_thread.
10820 (extended_remote_run): Update comment.
10821 (extended_remote_create_inferior_1): Pass wait status to
10822 add_current_inferior_and_thread.
10823
8954db33
AB
108242013-01-25 Andrew Burgess <aburgess@broadcom.com>
10825 Ulrich Weigand <uweigand@de.ibm.com>
10826
10827 * valarith.c (value_vector_widen): New function for replicating a
10828 scalar into a vector.
10829 (value_binop): Use value_vector_widen to widen scalar to vector
10830 rather than casting, this better matches gcc C behaviour.
10831 * valops.c (value_casst): Update logic for casting between vector
10832 types, and for casting from scalar to vector, try to match gcc C
10833 behaviour.
10834 * value.h (value_vector_widen): Declare.
10835 * opencl-lang.c (opencl_value_cast): New opencl specific casting
10836 function, handle special case for casting scalar to vector.
10837 (opencl_relop): Use opencl_value_cast.
10838 (evaluate_subexp_opencl): Use opencl_value_cast instead of
10839 value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
10840 in order to use opencl_value_cast.
10841
843b20dc
YQ
108422013-01-25 Yao Qi <yao@codesourcery.com>
10843
10844 * event-loop.c: Include "queue.h".
10845 (gdb_event_p): New typedef.
10846 (DECLARE_QUEUE_P): Use.
10847 (DEFINE_QUEUE_P): Use.
10848 (async_queue_event): Remove.
10849 (gdb_event_xfree): New.
10850 (initialize_event_loop): New.
10851 (process_event): Use QUEUE macros.
10852 (event_queue): Remove.
10853 (gdb_wait_for_event): Caller update.
10854 (check_async_event_handlers): Likewise.
10855 (poll_timers): Likewise.
10856 * event-loop.h (initialize_event_loop): Declare.
10857 * event-loop.c (gdb_event_xfree): New.
10858 * top.c (gdb_init): Call initialize_event_loop.
10859
20ad8856
YQ
108602013-01-25 Yao Qi <yao@codesourcery.com>
10861
10862 * event-loop.c (async_queue_event): Remove one parameter
10863 'position'. Remove code handling 'position' == TAIL.
10864 (gdb_wait_for_event): Caller update.
10865 (check_async_event_handlers): Caller update.
10866 (poll_timers): Caller update.
10867 * event-loop.h (enum queue_position): Remove.
10868
3bbbe775
MK
108692013-01-25 Maxim Kuvyrkov <maxim@kugelworks.com>
10870
10871 * MAINTAINERS: Update my email.
10872
a87d9ac4
YQ
108732013-01-25 Yao Qi <yao@codesourcery.com>
10874
10875 * main.c (print_gdb_help): Remove "--epoch" from the help
10876 message.
10877
2077afdd
TD
108782013-01-24 Ulrich Weigand  <uweigand@de.ibm.com>
10879
10880 * symtab.c (skip_prologue_using_sal): Consider a file
10881 change the same as an increased line number
10882
63da4037
TD
108832013-01-24 Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
10884
30e8ee25 10885 * MAINTAINERS (Write After Approval): Add myself to the list.
63da4037 10886
45e6c716
TT
108872013-01-24 Tom Tromey <tromey@redhat.com>
10888
10889 * ada-lang.h (ada_decode_symbol): Make return type const.
10890 * ada-lang.c (ada_decode_symbol): Likewise.
10891
b1ae631a
DE
108922013-01-23 Doug Evans <dje@google.com>
10893
10894 * linespec.c (find_linespec_symbols): Make static.
10895
55a78401
SDJ
108962013-01-23 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
10897
10898 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
10899 type on float conversion for complex type.
10900
bea883fd
SCR
109012013-01-23 Siva Chandra Reddy <sivachandra@google.com>
10902
10903 Add a new class gdb.Architecture which exposes GDB's
10904 internal representation of architecture via GDB Python API.
10905 * Makefile.in: Add entries corresponding to the new file
10906 python/py-arch.c.
10907 * NEWS (Python Scripting): Add entries for the new class
10908 gdb.Architecture and the new method gdb.Frame.architecture.
10909 * python/py-arch.c: Implement gdb.Architecture class.
10910 * python/py-frame.c (frapy_arch): Implement the method
10911 gdb.Frame.architecture().
10912 (frame_object_methods): Add 'architecture' to the method table.
10913 * python/python-internal.h: Add declarations of new utility
10914 functions.
10915 * python/python.c (_initialize_python): Initialize
10916 gdb.Architecture class.
10917
796a7ff8
DE
109182013-01-23 Doug Evans <dje@google.com>
10919
10920 Work around binutils/15021.
10921 * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
10922 type_unit_group out of union s. All uses updated.
10923 (read_index_from_section): Watch for index version 8.
10924 (follow_die_sig): If using .gdb_index version <= 7, record the TU as
10925 an imported symtab.
10926 (write_psymtabs_to_index): Increment version number to 8.
10927
0928e93d
PA
109282013-01-22 Pedro Alves <palves@redhat.com>
10929
10930 * annotate.c (breakpoint_changed): Skip if breakpoint is not
10931 user-visible.
10932
9c97429f
PA
109332013-01-22 Pedro Alves <palves@redhat.com>
10934
10935 * annotate.c (annotate_breakpoints_changed): Rename to ...
10936 (annotate_breakpoints_invalid): ... this. Make static.
10937 (breakpoint_changed): Adjust.
10938 (_initialize_annotate): Always install the observers. Install a
10939 "breakpoint_created" observer.
10940 * annotate.h (annotate_breakpoints_changed): Delete declaration.
10941 * breakpoint.c (set_breakpoint_condition)
10942 (breakpoint_set_commands, do_map_commands_command)
10943 (init_raw_breakpoint, clear_command, set_ignore_count)
10944 (enable_breakpoint_disp): No longer call
10945 annotate_breakpoints_changed.
10946
bd00c694
PA
109472013-01-22 Pedro Alves <palves@redhat.com>
10948
10949 * annotate.c: Include "inferior.h".
10950 (frames_invalid_emitted)
10951 (breakpoints_invalid_emitted): New globals.
10952 (async_background_execution_p): New function.
10953 (annotate_breakpoints_changed, annotate_frames_invalid): Skip
10954 emitting the annotation if it has already been emitted.
10955 (annotate_display_prompt): New function.
10956 * annotate.h (annotate_display_prompt): New declaration.
10957 * event-top.c: Include annotate.h.
10958 (display_gdb_prompt): Call annotate_display_prompt.
10959
187d10dd
PA
109602013-01-22 Pedro Alves <palves@redhat.com>
10961
10962 * annotate.c (ignore_count_changed): Delete.
10963 (annotate_breakpoints_changed): Don't clear ignore_count_changed.
10964 (annotate_ignore_count_change): Delete.
10965 (annotate_stopped): Don't emit a delayed breakpoints-changed
10966 annotation.
10967 * annotate.h (annotate_ignore_count_change): Delete.
10968 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
10969 annotate_ignore_count_change.
10970
d84cf7eb
TT
109712013-01-22 Tom Tromey <tromey@redhat.com>
10972
10973 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
10974 require_rvalue for a register location.
10975
8f1d5693
MK
109762013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
10977
10978 * breakpoint.c (print_one_breakpoint_location): Add MI
10979 field 'thread-groups' when printing a breakpoint.
10980 (output_thread_groups): New function.
10981
aa6199c6
SCR
109822013-01-21 Siva Chandra Reddy <sivachandra@google.com>
10983
10984 * python/lib/gdb/commands/explore.py
10985 (CompoundExplorer.explore_expr): Correct the name of a method
10986 being invoked.
10987 (ExploreTypeCommand.invoke): Add a missing 'return'.
10988
d2afef13
TT
109892013-01-21 Tom Tromey <tromey@redhat.com>
10990
10991 * gdb_obstack.h (obconcat): Move declaration here, from...
10992 * symfile.h (obconcat): ... here.
10993 * gdb_obstack.c: New file.
10994 (obconcat): Move from...
10995 * symfile.c (obconcat): ... here.
10996 * Makefile.in (SFILES): Add gdb_obstack.c.
10997 (COMMON_OBS): Add gdb_obstack.o.
10998
10f0c4bb
TT
109992013-01-21 Tom Tromey <tromey@redhat.com>
11000
11001 * symfile.h (obsavestring): Don't declare.
11002 * symfile.c (obsavestring): Remove.
11003 * ada-exp.y: Use obstack_copy0, not obsavestring.
11004 * ada-lang.c: Use obstack_copy0, not obsavestring.
11005 * coffread.c: Use obstack_copy0, not obsavestring.
11006 * cp-namespace.c: Use obstack_copy0, not obsavestring.
11007 * dbxread.c: Use obstack_copy0, not obsavestring.
11008 * dwarf2read.c: Use obstack_copy0, not obsavestring.
11009 * jit.c: Use obstack_copy0, not obsavestring.
11010 * mdebugread.c: Use obstack_copy0, not obsavestring.
11011 * psymtab.c: Use obstack_copy0, not obsavestring.
11012 * stabsread.c: Use obstack_copy0, not obsavestring.
11013 * xcoffread.c: Use obstack_copy0, not obsavestring.
11014
86f62fd7
TT
110152013-01-21 Tom Tromey <tromey@redhat.com>
11016
11017 * dwarf2read.c (fixup_go_packaging): Save package name
11018 on objfile obstack.
11019 * gdbtypes.c (init_type): Don't copy name.
11020
15d034d0
TT
110212013-01-21 Tom Tromey <tromey@redhat.com>
11022
11023 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
11024 const.
11025 (struct attribute) <u.str>: Now const.
11026 (struct fnfieldlist) <name>: Now const.
11027 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
11028 (partial_die_parent_scope): Make return type const.
11029 (partial_die_full_name, add_partial_symbol): Update.
11030 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
11031 'name' const.
11032 (find_file_and_directory): Make 'name' and 'comp_dir' const.
11033 (read_file_scope, read_func_scope, dwarf2_add_field)
11034 (dwarf2_add_member_fn, read_structure_type)
11035 (process_enumeration_scope, read_array_type, read_module_type)
11036 (read_base_type, read_subrange_type): Update.
11037 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
11038 (new_symbol_full, guess_full_die_structure_name): Update.
11039 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
11040 (dwarf2_name): Return const type.
11041 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
11042 const.
11043
748e18ae
TT
110442013-01-21 Tom Tromey <tromey@redhat.com>
11045
11046 * gdbtypes.c (init_type): Make 'name' const.
11047 * gdbtypes.h (init_type): Update.
11048
46212e0b
TT
110492013-01-21 Tom Tromey <tromey@redhat.com>
11050
11051 * buildsym.c (patch_subfile_names): Use set_last_source_file.
11052 (start_symtab): Make 'name' and 'dirname' const. Use
11053 set_last_source_file.
11054 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
11055 (last_source_file): Define. Now static.
11056 (set_last_source_file, get_last_source_file): New functions.
11057 * buildsym.h (last_source_file): Don't declare.
11058 (start_symtab): Update.
11059 (set_last_source_file, get_last_source_file): Declare.
11060 * coffread.c (complete_symtab): Use set_last_source_file.
11061 (coff_end_symtab): Likewise.
11062 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
11063 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
11064 set_last_source_file.
11065 (process_one_symbol): Use get_last_source_file.
11066 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
11067 (psymtab_to_symtab_1): Use get_last_source_file.
11068 * xcoffread.c (process_linenos): Use get_last_source_file.
11069 (complete_symtab): Use set_last_source_file.
11070 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
11071 (scan_xcoff_symtab): Use set_last_source_file.
11072
9d2ceabe
TT
110732013-01-21 Tom Tromey <tromey@redhat.com>
11074
11075 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
11076 (symbol_set_names): Remove casts. Handle field const-ness.
11077
cfc594ee
TT
110782013-01-21 Tom Tromey <tromey@redhat.com>
11079
11080 * dwarf2read.c (new_symbol_full): Remove cast.
11081 * symtab.c (symbol_set_demangled_name): Make 'name' const.
11082 * symtab.h (symbol_set_demangled_name): Update.
11083
5484b13a
TT
110842013-01-21 Tom Tromey <tromey@redhat.com>
11085
11086 * main.c (captured_main): Call bfd_init.
11087
1605ef26
TT
110882013-01-21 Tom Tromey <tromey@redhat.com>
11089
11090 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
11091 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
11092 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
11093 * NEWS: Update.
11094
3b74cdc3
JK
110952013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
11096
11097 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
11098
5a352474
JK
110992013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
11100
11101 Fix gdb.fortran/common-block.exp crash in PIE mode.
11102 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
11103 LOC_COMMON_BLOCK.
11104 * f-valprint.c (info_common_command_for_block): Expect
11105 LOC_COMMON_BLOCK in gdb_assert.
11106 * symtab.h (struct general_symbol_info): Update comment for the
11107 common_block member.
11108 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
11109 (enum address_class): New member LOC_COMMON_BLOCK.
11110
c60797fd
DB
111112013-01-18 David Blaikie <dblaikie@gmail.com>
11112
11113 * MAINTAINERS (Write After Approval): Add "David Blaikie".
0cae7dfb 11114
46f35228
TT
111152013-01-18 Tom Tromey <tromey@redhat.com>
11116
11117 PR c++/14999:
11118 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
11119 Call require_rvalue.
11120
257e7a09
YQ
111212013-01-18 Yao Qi <yao@codesourcery.com>
11122
11123 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
11124 (dbx_read_symtab): New declaration.
11125 (dbx_psymtab_to_symtab): Delete.
11126 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
11127 Rename parameter PST to SELF. Exchanged two parameters.
11128 (start_psymtab): Caller update.
11129 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
11130 (dwarf2_read_symtab): New declaration.
11131 (dwarf2_psymtab_to_symtab): Delete.
11132 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
11133 Rename parameter PST to SELF. Exchanged two parameters.
11134 (create_partial_symtab): Caller update.
11135 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
11136 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
11137 Rename parameter PST to SELF. Exchanged two parameters.
11138 (parse_partial_symbols, new_psymtab): Caller update.
11139 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
11140 two parameters.
11141 * psymtab.c (psymtab_to_symtab): Caller update.
11142 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
11143 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
11144 Rename parameter PST to SELF. Exchanged two parameters.
11145 (xcoff_start_psymtab): Caller update.
11146
0de5618e
YQ
111472013-01-18 Yao Qi <yao@codesourcery.com>
11148
11149 * infrun.c (proceed): Rename local variable 'oneproc' to
11150 'force_step'.
11151
5c04624b
DE
111522013-01-17 Doug Evans <dje@google.com>
11153
848e3e78
DE
11154 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
11155 (dw2_build_type_unit_groups): Delete. All uses updated.
11156
5c04624b
DE
11157 * symtab.h (struct symbol_search): Add comment.
11158
d84fca2c
JK
111592013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
11160
11161 * symtab.c (compare_filenames_for_search): New comment for
11162 HAS_DRIVE_SPEC.
11163
6108433d
TT
111642013-01-17 Tom Tromey <tromey@redhat.com>
11165
11166 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
11167
c89ffd86
JK
111682013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
11169
11170 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
11171 initialize it by existing make_cleanup. Call new do_cleanups.
11172
db2b2972
TT
111732013-01-17 Tom Tromey <tromey@redhat.com>
11174
11175 * cp-abi.c (cp_abi_completer): New function.
11176 (_initialize_cp_abi): Set completer for "set cp-abi".
11177
be7d37a2
TT
111782013-01-17 Tom Tromey <tromey@redhat.com>
11179
11180 * mem-break.c: Remove obsolete comment.
11181 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
11182
c9fb1240
SD
111832012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
11184
11185 * jit.c (jit_reader_load_command): Interpret the jit reader name
11186 as an absolute path if it begins with a forward slash.
11187
db334a01
SD
111882012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
11189
11190 PR gdb/14550
11191
11192 * jit.c (finalize_symtab): Ensure that only the global block has a
11193 NULL superblock.
11194
7d928dac
PA
111952013-01-17 Pedro Alves <palves@redhat.com>
11196
11197 * acinclude.m4: Include ../config/plugins.m4,
11198 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
11199 * Makefile.in (aclocal_m4_deps): Update.
11200 * aclocal.m4: Renegerate.
11201
fb8cf7c5
DE
112022013-01-16 Doug Evans <dje@google.com>
11203
11204 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
11205
ab04a2af
TT
112062013-01-16 Pedro Alves <palves@redhat.com>
11207 Tom Tromey <tromey@redhat.com>
11208
11209 PR cli/7221:
11210 * NEWS: Add "catch signal".
11211 * breakpoint.c (base_breakpoint_ops): No longer static.
11212 (bpstat_explains_signal): New function.
11213 (init_catchpoint): No longer static.
11214 (base_breakpoint_explains_signal): New function.
11215 (base_breakpoint_ops): Initialize new field.
11216 * breakpoint.h (enum bpstat_signal_value): New.
11217 (struct breakpoint_ops) <explains_signal>: New field.
11218 (bpstat_explains_signal): Remove macro, declare as function.
11219 (base_breakpoint_ops, init_catchpoint): Declare.
11220 * break-catch-sig.c: New file.
11221 * inferior.h (signal_catch_update): Declare.
11222 * infrun.c (signal_catch): New global.
11223 (handle_syscall_event): Update for change to
11224 bpstat_explains_signal.
11225 (handle_inferior_event): Likewise. Always handle random signals
11226 via bpstats.
11227 (signal_cache_update): Check signal_catch.
11228 (signal_catch_update): New function.
11229 (_initialize_infrun): Initialize signal_catch.
11230 * Makefile.in (SFILES): Add break-catch-sig.c.
11231 (COMMON_OBS): Add break-catch-sig.o.
11232
8ac3646f
TT
112332013-01-16 Tom Tromey <tromey@redhat.com>
11234
11235 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
11236 (print_one_catch_solib, print_one_catch_syscall)
11237 (print_one_catch_exec, print_one_exception_catchpoint): Emit
11238 "catch-type".
11239
5a18e302
YQ
112402013-01-16 Yao Qi <yao@codesourcery.com>
11241
11242 * printcmd.c (current_display_number): Make it static.
11243
3f01d0d0
YQ
112442013-01-16 Yao Qi <yao@codesourcery.com>
11245
11246 * infcmd.c (step_once): Don't check '!single_inst' as it was
11247 checked before.
11248
1ed59174
JK
112492013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11250
11251 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
11252
44478ab3
TT
112532013-01-14 Tom Tromey <tromey@redhat.com>
11254
11255 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
11256 set command.
11257 * command.h (add_setshow_string_noescape_cmd): Update.
11258 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
11259 (complete_set_gnutarget): New function.
11260 (_initialize_core): Set the "set gnutarget" completer.
11261
06d66ee9
TT
112622013-01-14 Tom Tromey <tromey@redhat.com>
11263
11264 PR symtab/14442:
11265 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
11266 (c_type_print_modifier): Likewise.
11267 * dwarf2read.c (read_tag_restrict_type): New function.
11268 (read_type_die_1): Handle DW_TAG_restrict_type.
11269 * gdbtypes.c (make_restrict_type): New function.
11270 (recursive_dump_type): Handle TYPE_RESTRICT.
11271 * gdbtypes.h (enum type_flag_values): Renumber.
11272 (enum type_instance_flag_value): Add
11273 TYPE_INSTANCE_FLAG_RESTRICT.
11274 (TYPE_RESTRICT): New macro.
11275 (make_restrict_type): Declare.
11276
c9bf0622
TT
112772013-01-14 Tom Tromey <tromey@redhat.com>
11278
11279 PR symtab/14931:
11280 * psymtab.c (struct psymtab_state): New.
11281 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
11282 functions.
11283 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
11284 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
11285
44d594fd
PA
112862013-01-14 Richard Sharman <richard_sharman@mitel.com>
11287 Pedro Alves <palves@redhat.com>
11288
11289 PR remote/14786
11290
11291 * remote.c (remote_threads_info): Make a copy of the reply from
11292 qfThreadInfo and use that instead of rs->buf.
11293
442e4d9c
YQ
112942013-01-14 Yao Qi <yao@codesourcery.com>
11295
11296 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
11297 (dbx_psymtab_to_symtab): Likewise.
11298 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
11299 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
11300 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
11301
5b12a61c
JK
113022013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
11303
11304 * parse.c (parse_exp_in_context): New variable inner_chain. Call
11305 make_cleanup_restore_current_language. Call set_language. Move
11306 OLD_CHAIN and INNER_CHAIN cleanups.
11307 * utils.c (do_restore_current_language)
11308 (make_cleanup_restore_current_language): New functions.
11309 * utils.h (make_cleanup_restore_current_language): New declaration.
11310
f0a4b570
JK
113112013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
11312
11313 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
11314 non-existing files.
11315
57b3c00c
JK
11316 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
11317 non-existing files if FILENAME is already absolute.
11318
daefa854
JK
113192013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11320
11321 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
11322 fputs_filtered. Append trailing newline.
11323
ca9c6ee2
YQ
113242013-01-11 Yao Qi <yao@codesourcery.com>
11325 Stan Shebs <stan@codesourcery.com>
11326
11327 * psymtab.c (init_psymbol_list): Clarify the comment.
11328
f28045c2
YQ
113292013-01-11 Yao Qi <yao@codesourcery.com>
11330
11331 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
11332 (update_dprintf_command_list): Assert that 'printf_line' is
11333 non-null. Remove condition check.
11334
da5132d3
JK
113352013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11336
11337 Code cleanup.
11338 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
11339 type const char *.
11340 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
11341 const char *.
11342 * tui/tui-source.h (tui_source_is_displayed): Likewise.
11343
843e694d
AG
113442013-01-09 Anthony Green <green@moxielogic.com>
11345
11346 * cp-abi.c (cplus_print_vtable): Don't return value from void
11347 function.
11348 * ada-lang.c (re_set_catch_assert): Ditto.
11349
da51c347
DE
113502013-01-09 Doug Evans <dje@google.com>
11351
11352 * symfile.h (quick_symbol_functions): Delete member
11353 pre_expand_symtabs_matching. All uses removed.
11354 * dwarf2read.c (dw2_lookup_symbol): Implement.
11355 (dw2_do_expand_symtabs_matching): Delete.
11356 (dw2_pre_expand_symtabs_matching): Delete.
11357 (struct dw2_symtab_iterator): New type.
11358 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
11359 (dw2_expand_symtabs_for_function): Rewrite.
11360 (dwarf2_gdb_index_functions): Update.
11361 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
11362 (psym_functions): Update.
11363
b2259038
TT
113642013-01-09 Tom Tromey <tromey@redhat.com>
11365
11366 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
11367 * configure: Rebuild.
11368 * configure.ac: Add somread.o to the build if BFD has SOM
11369 support.
11370 * somread.c: Include som/aout.h, not syms.h.
11371 (som_symtab_read): Use som_external_symbol_dictionary_record.
11372 Unpack records manually.
11373 (_initialize_somread): Declare.
11374
bdad4180
MF
113752012-01-08 Mike Frysinger <vapier@gentoo.org>
11376
11377 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
11378 Cast return_address to 64bits.
11379
03cdf680
HZ
113802013-01-08 Hui Zhu <hui_zhu@mentor.com>
11381
11382 * printcmd.c: Remove define of function output_command.
11383 * tracepoint.c: Remove extern of function output_command.
11384 * valprint.h: (output_command): New extern.
11385
8a808554
TT
113862013-01-07 Tom Tromey <tromey@redhat.com>
11387
11388 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
11389 Remove.
11390 (objc_language_defn): Use c_printchar, c_printstr,
11391 c_emit_char.
11392
e93a8774
TT
113932013-01-07 Tom Tromey <tromey@redhat.com>
11394
11395 PR cli/7719:
11396 * NEWS: Update.
11397 * ada-valprint.c (printstr, print_field_values): Remove
11398 "inspect_it" code.
11399 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
11400 code.
11401 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
11402 code.
11403 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
11404 * main.c (captured_main): Remove "epoch" argument.
11405 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
11406 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
11407 * p-valprint.c (pascal_object_print_value_fields): Remove
11408 "inspect_it" code.
11409 * printcmd.c (print_command_1): Remove 'inspect' argument.
11410 (print_command, call_command): Update.
11411 (inspect_command): Remove.
11412 (_initialize_printcmd): Make "inspect" an alias for "print".
11413 * top.c (epoch_interface): Remove.
11414 * top.h (epoch_interface): Remove.
11415 * valprint.c (user_print_options): Update.
11416 (print_converted_chars_to_obstack): Remove "inspect_it" code.
11417 * valprint.h (struct value_print_options) <inspect_it>: Remove
11418 field.
11419
114202013-01-04 Tom Tromey <tromey@redhat.com>
11421
11422 * valprint.h (read_string): Add 'extern'.
11423
b967eb24
JB
114242013-01-07 Joel Brobecker <brobecker@adacore.com>
11425
11426 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
11427 used to decide whether to define darwin_read_dyld_info or not.
11428
78a8b30e
PM
114292013-01-03 Pierre Muller <muller@sourceware.org>
11430
11431 * main.c (relocate_gdb_directory): Avoid calling stat function
11432 if DIR is empty.
11433
50da2f25
YQ
114342013-01-03 Yao Qi <yao@codesourcery.com>
11435
11436 * psymtab.c (fixup_psymbol_section): Update declaration.
11437 (fixup_psymbol_section): Remove code returning value.
11438
e7e8980f
YQ
114392013-01-03 Yao Qi <yao@codesourcery.com>
11440
11441 * symtab.h: Remove some out of date comments.
11442 (enum exception_event_kind): Move it ...
11443 * breakpoint.c: ... here.
11444
569283d4
MF
114452013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
11446
9f9d9a96 11447 PR gdb/14405
569283d4
MF
11448 * darwin-nat.c (darwin_read_dyld_info): Only build if
11449 TASK_DYLD_INFO_COUNT is defined.
11450 (darwin_xfer_partial): Call darwin_read_dyld_info only if
11451 TASK_DYLD_INFO_COUNT is defined.
11452
2e36fbea
TT
114532013-01-02 Tom Tromey <tromey@redhat.com>
11454
11455 * symfile.h (struct ecoff_debug_hack): Remove.
11456 * objfiles.c: Don't include mdebugread.h.
11457
4f05add4
TT
114582013-01-02 Tom Tromey <tromey@redhat.com>
11459
11460 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
11461 * configure.ac: Check for Mach-O support in BFD. Update
11462 CONFIG_OBS.
11463 * configure: Rebuild.
11464
def63ff0
TT
114652013-01-02 Tom Tromey <tromey@redhat.com>
11466
11467 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
11468 * configure.ac: Use GDB_AC_CHECK_BFD.
11469 * configure: Rebuild.
11470
60c5dd93
MK
114712013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
11472
11473 * MAINTAINERS: Update my email.
11474
6e58437e
JB
114752013-01-01 Joel Brobecker <brobecker@adacore.com>
11476
11477 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
11478
627fe805
JB
114792013-01-01 Joel Brobecker <brobecker@adacore.com>
11480
11481 * rs6000-nat.c (bss_data_overlap): New function.
11482 (vmap_symtab): Use it to adjust the .bss section's offset.
11483
28e7fd62
JB
114842013-01-01 Joel Brobecker <brobecker@adacore.com>
11485
11486 Update year range in copyright notice of all files.
11487
e93a8774 114882013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
b9786c74
JB
11489
11490 * top.c (print_gdb_version): Update copyright year.
11491
72b20e9c 11492For older changes see ChangeLog-2012.
c906108c
SS
11493\f
11494Local Variables:
11495mode: change-log
11496left-margin: 8
11497fill-column: 74
11498version-control: never
57da7796 11499coding: utf-8
c906108c 11500End:
This page took 2.067523 seconds and 4 git commands to generate.