Constify 'la_name' in struct language_defn
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
27cd387b
YQ
12013-11-07 Yao Qi <yao@codesourcery.com>
2
3 * language.c (language_str): Return const char *.
4 (add_language): Add const to 'language_names'
5 * language.h (struct language_defn) <la_name>: Add const.
6 (language_str: Update declaration.
7
6682d959
AA
82013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
9
10 * s390-linux-nat.c (s390_read_description): Consider the TE field
11 in the HWCAP for determining 'have_regset_tdb'.
12
b9502d3f
WN
132013-11-06 Will Newton <will.newton@linaro.org>
14
15 PR gdb/12866
16 * dwarf2read.c (skip_one_die): Sanity check DW_AT_sibling
17 values. (read_partial_die): Likewise.
18
840da61a
MB
192013-11-06 Muhammad Bilal <mbilal@codesourcery.com>
20
21 PR cli/16122
22 * top.c (command_line_input): Unify interactivity tests to use
23 input_from_terminal_p.
24 * event-top.c (command_line_handler): Likewise.
25
7636ccf9
YQ
262013-11-06 Yao Qi <yao@codesourcery.com>
27
28 * Makefile.in (check-perf): New target.
29
12b27276
WN
302013-11-05 Will Newton <will.newton@linaro.org>
31
32 PR gdb/7670
33 * arm-tdep.c (print_fpu_flags): Use filtered output routines.
34 (arm_print_float_info): Likewise.
35
67c059c2
AB
362013-11-04 Anton Blanchard <anton@samba.org>
37
38 * target.c (memory_xfer_partial): Cap write to 4KB.
39
0569175e
TSD
402013-11-01 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
41
42 * breakpoint.c (create_longjmp_master_breakpoint): Allow libc
43 probe scan even when the arch provides no get_longjmp_target.
44
b18e90f5
PA
452013-10-31 Pedro Alves <palves@redhat.com>
46
47 * infrun.c (handle_syscall_event): Don't set or clear stop_signal.
48 (handle_inferior_event) <TARGET_WAITKIND_FORKED,
49 TARGET_WAITKIND_VFORKED>: Don't set stop_signal to
50 GDB_SIGNAL_TRAP, or clear it. Pass GDB_SIGNAL_0 to
51 bpstat_explains signal, instead of GDB_SIGNAL_TRAP.
52 <bpstat handling>: If the bpstat chain wants the signal to be
53 hidden, then set stop_signal to GDB_SIGNAL_0 instead of
54 GDB_SIGNAL_TRAP.
55
638aa5a1
AB
562013-10-31 Andrew Burgess <aburgess@broadcom.com>
57
58 * breakpoint.c (update_watchpoint): Update error message and add
59 an additional error message.
60
0e5fae36
UW
612013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
62
63 * s390-tdep.h: Rename to...
64 * s390-linux-tdep.h: ...here.
65 * s390-tdep.c: Rename to...
66 * s390-linux-tdep.c: ...here. Adjust #include.
67 * s390-nat.c: Rename to...
68 * s390-linux-nat.c: ...here. Adjust #include.
69 * config/s390/s390.mh: Rename to...
70 * config/s390/linux.mh: ...here. Reflect rename s390-nat.o ->
71 s390-linux-nat.o.
72 * configure.host: Reflect host rename "s390" -> "linux".
73 * configure.tgt: Reflect rename s390-tdep.o -> s390-linux-tdep.o.
74 * Makefile.in (ALL_TARGET_OBS): Likewise.
75 (HFILES_NO_SRCDIR): Reflect rename s390-tdep.h ->
76 s390-linux-tdep.h.
77 (ALLDEPFILES): Reflect rename of .c files.
78
34201ae3
UW
792013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
80
81 * s390-nat.c: Whitespace cleanup.
82 * s390-tdep.c: Likewise.
83 * s390-tdep.h: Remove empty line at end of file.
84
e17aaa33
MR
852013-10-30 Maciej W. Rozycki <macro@codesourcery.com>
86
87 * linux-tdep.c (linux_corefile_thread_callback): Preinitialize
88 siginfo_size.
89
aee17e42
TT
902013-10-29 Tom Tromey <tromey@redhat.com>
91
92 * utils.c (reg): Move undefinition...
93 * gdb_curses.h: ... here. Update comment to mention AIX.
94
9ac69859
NB
952013-10-29 Nicolas Blanc <nicolas.blanc@intel.com>
96
97 * exec.h (add_target_sections_of_objfile): New declaration.
98 * exec.c (add_target_sections_of_objfile): New function.
99 * symfile.c (add_symbol_file_command): Update current target sections.
100 (remove_symbol_file_command): New command.
101 (symfile_free_objfile): New function.
102 (_initialize_symfile): Register observer for free_objfile events.
103 * NEWS: Add description of the remove-symbol-file command.
104 * breakpoint.c (disable_breakpoints_in_freed_objfile): New function.
105 * objfiles.c (free_objfile): Notify free_objfile.
106 (is_addr_in_objfile): New function.
107 * objfiles.h (is_addr_in_objfile): New declaration.
108 * printcmd.c (clear_dangling_display_expressions): Act upon free_objfile
109 events instead of solib_unloaded events.
110 (_initialize_printcmd): Register observer for free_objfile instead
111 of solib_unloaded notifications.
112 * solib.c (remove_user_added_objfile): New function.
113 (_initialize_symfile): Add remove-symbol-file.
114
f69d9aef
AB
1152013-10-29 Andrew Burgess <aburgess@broadcom.com>
116
117 * infcmd.c (default_print_one_register_info): Use val_print to
118 print all values even optimized out or unavailable ones. Don't
119 try to print a raw form of optimized out or unavailable values.
120
487ad57c
YQ
1212013-10-29 Yao Qi <yao@codesourcery.com>
122
123 * auto-load.c (auto_load_pspace_data_cleanup): Get data from
124 parameter 'arg' instead of from program_space_data.
125 * objfiles.c (objfiles_pspace_data_cleanup): Likewise.
126 * solib-darwin.c (darwin_pspace_data_cleanup): Likewise.
127 * solib-dsbt.c (dsbt_pspace_data_cleanup): Likewise.
128 * solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
129 * inflow.c (inflow_inferior_data_cleanup): Get data from
130 parameter 'arg' instead of inferior_data.
131 * registry.h: Add comments.
132
3c4797ba
PA
1332013-10-28 Pedro Alves <palves@redhat.com>
134
135 * breakpoint.c (watchpoints_triggered)
136 <!target_stopped_data_address>: Hardcode return 1.
137
cdaa5b73
PA
1382013-10-28 Pedro Alves <palves@redhat.com>
139
140 * infrun.c (process_event_stop_test): Remove unnecessary scoping
141 level and reindent.
142
94c57d6a
PA
1432013-10-28 Pedro Alves <palves@redhat.com>
144
145 * infrun.c (process_event_stop_test): New function, factored out
146 from handle_inferior_event.
147 (handle_inferior_event): 'process_event_stop_test' is now a
148 function instead of a goto label -- adjust.
149
fcf3daef
PA
1502013-10-28 Pedro Alves <palves@redhat.com>
151
152 * infrun.c (handle_inferior_event): Move process_event_stop_test
153 goto label to the else branch of the ecs->random_signal check,
154 along with FRAME and GDBARCH re-fetching.
155
c447ac0b
PA
1562013-10-28 Pedro Alves <palves@redhat.com>
157
158 * infrun.c (switch_back_to_stepped_thread): New function, factored
159 out from handle_inferior_event.
160 (handle_inferior_event): Adjust to call
161 switch_back_to_stepped_thread. Call it also at the tail of the
162 random signal handling, and return, instead of also handling
163 random signals just before the stepping tests.
164
f05e4c11
PA
1652013-10-28 Pedro Alves <palves@redhat.com>
166
167 * infrun.c (clear_stop_func): Delete.
168 (handle_inferior_event): Don't call clear_stop_func and don't
169 clear 'ecs->random_signal'.
170
ca20d462
YQ
1712013-10-27 Yao Qi <yao@codesourcery.com>
172
173 * varobj.c (struct varobj_root) <lang>: Rename to 'lang_ops'.
174 (varobj_create, varobj_get_path_expr): Update.
175 (varobj_value_has_mutated, varobj_update): Likewise.
176 (create_child_with_value, new_root_variable): Likewise.
177 (number_of_children, name_of_variable): Likewise.
178 (value_of_child, my_value_of_variable): Likewise.
179 (varobj_value_is_changeable_p): Likewise.
180
a53b64ea
YQ
1812013-10-25 Yao Qi <yao@codesourcery.com>
182
183 * language.h (struct lang_varobj_ops): Declare.
184 (struct language_defn) <la_varobj_ops>: New field.
185 * ada-lang.c: Include "varobj.h"
186 (defn ada_language_defn): Initialize field 'la_varobj_ops' with
187 ada_varobj_ops.
188 * c-lang.c: Include "varobj.h"
189 (c_language_defn): Initialize field 'la_varobj_ops' with
190 c_varobj_ops.
191 (cplus_language_defn): Initialize field 'la_varobj_ops' with
192 cplus_varobj_ops.
193 (asm_language_defn): Initialize field 'la_varobj_ops' with
194 default_varobj_ops.
195 (minimal_language_defn): Likewise.
196 * d-lang.c (d_language_defn): Likewise.
197 * f-lang.c (f_language_defn): Likewise.
198 * go-lang.c (go_language_defn): Likewise.
199 * m2-lang.c (m2_language_defn): Likewise.
200 * objc-lang.c (objc_language_defn): Likewise.
201 * opencl-lang.c (opencl_language_defn): Likewise.
202 * p-lang.c (pascal_language_defn): Likewise.
203 * language.c (unknown_language_defn): Likewise.
204 (auto_language_defn): Likewise.
205 (local_language_defn): Likewise.
206 * jv-lang.c (java_language_defn): Initialize field
207 'la_varobj_ops' with java_varobj_ops.
208 * varobj.c (varobj_create): Update.
209 * varobj.h (default_varobj_ops): Define macro.
210
686d4def
PA
2112013-10-25 Pedro Alves <palves@redhat.com>
212
213 * cp-valprint.c (cp_print_value_fields): No longer handle a NULL
214 static field value.
215 (cp_print_static_field): If the value is entirely optimized out,
216 print <optimized out> here.
217 * jv-valprint.c (java_print_value_fields): No longer handle a NULL
218 static field value.
219 * p-valprint.c (pascal_object_print_static_field): If the value is
220 entirely optimized out, print <optimized out> here.
221 * valops.c (do_search_struct_field)
222 (value_struct_elt_for_reference): No longer handle a NULL static
223 field value.
224 * value.c (value_static_field): Return an optimized out value
225 instead of NULL.
226
6c177e28
YQ
2272013-10-25 Yao Qi <yao@codesourcery.com>
228
229 * remote.c (remote_traceframe_info): Return early if
230 traceframe is not selected.
231
98322bfa
YQ
2322013-10-25 Yao Qi <yao@codesourcery.com>
233
234 * tracepoint.c (traceframe_fun): Remove.
235 (traceframe_sal): Remove.
236 (set_traceframe_context): Add local variables.
237
6ba1f115
JB
2382013-10-25 Joel Brobecker <brobecker@adacore.com>
239
240 * varobj.h (struct lang_varobj_ops): Remove spaces between '*'
241 and parameter name.
242
bbe769cc
MR
2432013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
244
245 * linux-tdep.c (linux_corefile_thread_callback): Propagate any
246 failure from register information collection.
247
72ee4495 2482013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
59a70096
MR
249
250 * linux-tdep.c (linux_corefile_thread_data): Remove `num_notes'
251 member.
252 (linux_corefile_thread_callback): Update accordingly.
253 (linux_make_corefile_notes): Likewise.
254
98882a26
PA
2552013-10-24 Pedro Alves <palves@redhat.com>
256
257 * NEWS (New options): Mention set/show startup-with-shell.
258 * config/alpha/nm-osf3.h (START_INFERIOR_TRAPS_EXPECTED): Set to 2
259 instead of 3.
260 * fork-child.c (fork_inferior, startup_inferior): Handle 'set
261 startup-with-shell'.
262 (show_startup_with_shell): New function.
263 (_initialize_fork_child): Register the set/show startup-with-shell
264 commands.
265 * inf-ptrace.c (inf_ptrace_create_inferior): Remove comment.
266 * inf-ttrace.c (inf_ttrace_him): Remove comment.
267 * procfs.c (procfs_init_inferior): Remove comment.
268 * infcmd.c (startup_with_shell): New global.
269 * inferior.h (startup_with_shell): Declare global.
270 (STARTUP_WITH_SHELL): Delete.
271 (START_INFERIOR_TRAPS_EXPECTED): Set to 1 by default instead of 2.
272
c9737c08
PA
2732013-10-23 Pedro Alves <palves@redhat.com>
274
275 * common/gdb_signals.h (gdb_signal_to_symbol_string): Declare.
276 * common/signals.c: Include "gdb_assert.h".
277 (signals): New field 'symbol'.
278 (SET): Use the 'symbol' parameter.
279 (gdb_signal_to_symbol_string): New function.
280 * infrun.c (handle_inferior_event) <random signal>: In debug
281 output, print the random signal enum as string in addition to its
282 number.
283 * target/waitstatus.c (target_waitstatus_to_string): Print the
284 signal's enum value as string instead of the (POSIX) signal name.
285
f60db4f0
GB
2862013-10-23 Gary Benson <gbenson@redhat.com>
287
288 PR 16013
289 * common/linux-osdata.c (command_from_pid): Reduced size of cmd
290 from 32 to 18. Adjusted fscanf format string accordingly.
291 (Avoids leaving cmd unterminated.)
292 (print_sockets): Do not parse tlen, inode, sl, timeout, txq, rxq,
293 trun, retn or extra. (Avoids leaving extra unterminated.) Check
294 that local_address and remote_address will not overflow.
295 (linux_xfer_osdata_modules): Parse lines using strtok to avoid
296 leaving dependencies unterminated. Parse size as "%u" to match
297 definition.
298
6d3e7a94
PA
2992013-10-22 Pedro Alves <palves@redhat.com>
300
301 * infrun.c (handle_inferior_event) <thread hop>: Don't clear or
302 set ecs->random signal.
303
42ec045f
PA
3042013-10-22 Pedro Alves <palves@redhat.com>
305
306 * infrun.c (keep_going): Update comments.
307
3082013-10-22 Pedro Alves <palves@redhat.com>
309
310 * remote.c (remote_parse_stop_reply) <'T'/'S'/'X' replies>: Map
311 invalid signal numbers to GDB_SIGNAL_UNKNOWN.
312
3132013-10-22 Pedro Alves <palves@redhat.com>
314
315 * include/gdb/signals.def (TARGET_EXC_BAD_ACCESS): Rename to
316 GDB_EXC_BAD_ACCESS.
317 (TARGET_EXC_BAD_INSTRUCTION): Rename to GDB_EXC_BAD_INSTRUCTION.
318 (TARGET_EXC_ARITHMETIC): Rename to GDB_EXC_ARITHMETIC.
319 (TARGET_EXC_EMULATION): Rename to GDB_EXC_EMULATION.
320 (TARGET_EXC_SOFTWARE): Rename to GDB_EXC_SOFTWARE.
321 (TARGET_EXC_BREAKPOINT): Rename to GDB_EXC_BREAKPOINT.
322 (GDB_SIGNAL_LAST): Change description string.
323 * common/signals.c (gdb_signal_from_host, do_gdb_signal_to_host):
324 Adjust to signal renaming.
325 * darwin-nat.c (darwin_decode_message): Likewise.
326
c8fde1b1
JM
3272013-10-22 Jose E. Marchesi <jose.marchesi@oracle.com>
328
329 * MAINTAINERS (Write After Approval): Add myself to the list.
330
e8369a73
AB
3312013-10-18 Andrew Burgess <aburgess@broadcom.com>
332
333 * breakpoint.c (update_watchpoint): If hardware watchpoints are
334 forced off, downgrade them to software watchpoints if possible,
335 and error out if not possible.
336 (watch_command_1): Move watchpoint type selection closer to
337 watchpoint creation, and extend the comments.
338
776f04fa
PA
3392013-10-18 Pedro Alves <palves@redhat.com>
340
341 PR gdb/16062
342 * infrun.c (handle_inferior_event): Keep going if we got a random
343 signal we should not stop for, instead of falling through to the
344 step tests.
345
0c6faab5
YQ
3462013-10-18 Yao Qi <yao@codesourcery.com>
347
348 * c-varobj.c (cplus_number_of_children): Fix indentation.
349
50b34a18
TT
3502013-10-17 Tom Tromey <tromey@redhat.com>
351
352 PR gdb/15995:
353 * printcmd.c (printcmd): Call gdb_flush.
354
5c4c8a59
TT
3552013-10-17 Tom Tromey <tromey@redhat.com>
356
357 * elfread.c (struct elfinfo) <stabindexsect>: Remove.
358 (elf_locate_sections): Update.
359
c4124bf1
YQ
3602013-10-17 Yao Qi <yao@codesourcery.com>
361
362 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
363 * ada-varobj.c: Remove the include of ada-varobj.h.
364 (ada_varobj_get_number_of_children): Declare.
365 (ada_varobj_get_name_of_child): Make it static.
366 (ada_varobj_get_path_expr_of_child): Likewise.
367 (ada_varobj_get_value_of_child): Likewise.
368 (ada_varobj_get_type_of_child): Likewise.
369 (ada_varobj_get_value_of_array_variable): Likewise.
370 * ada-varobj.h: Remove.
371
99ad9427
YQ
3722013-10-17 Yao Qi <yao@codesourcery.com>
373
374 * Makefile.in (SFILES): Add c-varobj.c and jv-varobj.c.
375 (COMMON_OBS): Add c-varobj.o and jv-varobj.o.
376 * ada-varobj.c: Include "varobj.h".
377 (ada_number_of_children): New. Moved from varobj.c.
378 (ada_name_of_variable, ada_name_of_child): Likewise.
379 (ada_path_expr_of_child, ada_value_of_child): Likewise.
380 (ada_type_of_child, ada_value_of_variable): Likewise.
381 (ada_value_is_changeable_p, ada_value_has_mutated): Likewise.
382 (ada_varobj_ops): New.
383 * c-varobj.c, jv-varobj.c: New file. Moved from varobj.c.
384 * gdbtypes.c (get_target_type): New. Moved from varobj.c.
385 * gdbtypes.h (get_target_type): Declare.
386 * varobj.c: Remove the inclusion of "ada-varobj.h" and
387 "ada-lang.h".
388 (ANONYMOUS_STRUCT_NAME): Move it to c-varobj.c.
389 (ANONYMOUS_UNION_NAME): Likewise.
390 (get_type, get_value_type, get_target_type): Remove declarations.
391 (value_get_print_value, varobj_value_get_print_value): Likewise.
392 (c_number_of_children, c_name_of_variable): Likewise.
393 (c_name_of_child, c_path_expr_of_child): Likewise.
394 (c_value_of_child, c_type_of_child): Likewise.
395 (c_value_of_variable, cplus_number_of_children): Likewise.
396 (cplus_class_num_children, cplus_name_of_variable): Likewise.
397 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
398 (cplus_value_of_child, cplus_type_of_child): Likewise.
399 (cplus_value_of_variable, java_number_of_children): Likewise.
400 (java_name_of_variable, java_name_of_child): Likewise.
401 (java_path_expr_of_child, java_value_of_child): Likewise.
402 (java_type_of_child, java_value_of_variable): Likewise.
403 (ada_number_of_children, ada_name_of_variable): Likewise.
404 (ada_name_of_child, ada_path_expr_of_child): Likewise.
405 (ada_value_of_child, ada_type_of_child): Likewise.
406 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
407 (ada_value_has_mutated): Likewise.
408 (struct language_specific): Move it to varobj.h.
409 (CPLUS_FAKE_CHILD): Move it to varobj.h.
410 (restrict_range): Rename it varobj_restrict_range. Make it extern.
411 Callers update.
412 (get_path_expr_parent): Rename it to varobj_get_path_expr_parent.
413 Make it extern.
414 (is_anonymous_child): Move it to c-varobj.c and rename to
415 varobj_is_anonymous_child. Caller update.
416 (get_type): Move it to c-varobj.c.
417 (get_value_type): Rename it varobj_get_value_type. Make it
418 extern.
419 (get_target_type): Move it gdbtypes.c.
420 (varobj_formatted_print_options): New function.
421 (value_get_print_value): Rename it to
422 varobj_value_get_print_value and make it extern.
423 (varobj_value_is_changeable_p): Make it extern.
424 (adjust_value_for_child_access): Move it to c-varobj.c.
425 (default_value_is_changeable_p): Rename it to
426 varobj_default_value_is_changeable_p. Make it extern.
427 (c_number_of_children, c_name_of_variable): Move it to c-varobj.c
428 (c_name_of_child, c_path_expr_of_child): Likewise.
429 (c_value_of_child, c_type_of_child): Likewise.
430 (c_value_of_variable, cplus_number_of_children): Likewise.
431 (cplus_class_num_children, cplus_name_of_variable): Likewise.
432 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
433 (cplus_value_of_child, cplus_type_of_child): Likewise.
434 (cplus_value_of_variable): Likewise.
435 (java_number_of_children, java_name_of_variable): Move it to jv-varobj.c.
436 (java_name_of_child, java_path_expr_of_child): Likewise.
437 (java_value_of_child, java_type_of_child): Likewise.
438 (java_value_of_variable): Likewise.
439 (ada_number_of_children, ada_name_of_variable): Move it to ada-varobj.c.
440 (ada_name_of_child, ada_path_expr_of_child): Likewise.
441 (ada_value_of_child, ada_type_of_child): Likewise.
442 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
443 (ada_value_has_mutated): Likewise.
444 * varobj.h (CPLUS_FAKE_CHILD): New macro, moved from varobj.c.
445 (struct lang_varobj_ops): New. Renamed by 'struct language_specific'.
446 (c_varobj_ops, cplus_varobj_ops): Declare.
447 (java_varobj_ops, ada_varobj_ops): Declare.
448 (varobj_default_value_is_changeable_p): Declare.
449 (varobj_value_is_changeable_p): Declare.
450 (varobj_get_value_type, varobj_is_anonymous_child): Declare.
451 (varobj_get_path_expr_parent): Declare.
452 (varobj_value_get_print_value): Declare.
453 (varobj_formatted_print_options): Declare.
454 (varobj_restrict_range): Declare.
455
c8a62302
LM
4562013-10-17 Luis Machado <lgustavo@codesourcery.com>
457
458 * target/waitstatus.h (target_waitkind): Remove spurious
459 character from the comments.
460
eade6471
JB
4612013-10-17 Joel Brobecker <brobecker@adacore.com>
462
463 * gdbarch.sh (get_longjmp_target): Add method documentation.
464 * gdbarch.h: Regenerate.
465
5411b26c
TT
4662013-10-16 Tom Tromey <tromey@redhat.com>
467
468 * dbxread.c (read_dbx_symtab) <bss_ext_symbol>: Remove unused
469 label.
470
87326c87
LM
4712013-10-16 Luis Machado <lgustavo@codesourcery.com>
472
473 * gcore.in: Call GDB using the full path to the gcore script.
474 Error out if the GDB binary is not found.
475
fd0a4d76
SDJ
4762013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
477
478 PR gdb/16014
479 * dwarf2read.c (dw2_get_real_path): Remove unnecessary call to
480 sizeof.
481
d92f7ee3
SDJ
4822013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
483
484 PR gdb/16042
485 * target.c (target_disable_btrace): Fix invalid return value for
486 void function.
487 (target_teardown_btrace): Likewise.
488
bb5ce47a
YQ
4892013-10-14 Yao Qi <yao@codesourcery.com>
490
491 * varobj.c (struct varobj): Move most of the fields to
492 varobj.h.
493 (struct varobj_dynamic): New struct.
494 (varobj_get_display_hint) [HAVE_PYTHON]: Adjust.
495 (varobj_has_more): Likewise.
496 (dynamic_varobj_has_child_method): Likewise.
497 (update_dynamic_varobj_children): Likewise.
498 (varobj_get_num_children): Likewise.
499 (varobj_list_children, varobj_pretty_printed_p): Likewise.
500 (install_new_value_visualizer): Likewise.
501 (install_new_value_visualizer, install_new_value): Likewise.
502 (varobj_update, new_variable, free_variable): Likewise.
503 (my_value_of_variable, value_get_print_value): Likewise.
504 (install_visualizer): Change the type of parameter 'var' to
505 'struct varobjd_dynamic *'. Callers update.
506 * varobj.h (struct varobj): Moved from varobj.c.
507 (struct varobj) <dynamic>: New field.
508
0b76b0ce
SL
5092013-10-13 Sandra Loosemore <sandra@codesourcery.com>
510
511 * nios2-tdep.c (nios2_reg_names): Use "sstatus" rather than "ba"
512 as the preferred name of r30.
513 * nios2-linux-tdep.c (reg_offsets): Likewise.
514 * features/nios2-cpu.xml: Likewise.
515 * features/nios2-linux.c: Regenerated.
516 * features/nios2.c: Regenerated.
517 * regformats/nios2-linux.dat: Regenerated.
518
4856b6bc
JK
5192013-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
520
521 Canonicalize directories for EXEC_FILENAME.
522 * exec.c (exec_file_attach): Use gdb_realpath_keepfile for
523 exec_filename.
524 * utils.c (gdb_realpath_keepfile): New function.
525 * utils.h (gdb_realpath_keepfile): New declaration.
526
9b557b58
DE
5272013-10-11 Doug Evans <dje@google.com>
528
529 * Makefile.in (GDBFLAGS): New variable.
530 (run): New rule.
531
ce13fade
JB
5322013-10-11 Joel Brobecker <brobecker@adacore.com>
533
534 * NEWS: Add entry documenting the new "-catch-assert" and
535 "-catch-exception" GDB/MI commands.
536
349774ef
JB
5372013-10-11 Joel Brobecker <brobecker@adacore.com>
538
539 * breakpoint.h (init_ada_exception_breakpoint): Add parameter
540 "enabled".
541 * breakpoint.c (init_ada_exception_breakpoint): Add parameter
542 "enabled". Set B->ENABLE_STATE accordingly.
543 * ada-lang.h (ada_exception_catchpoint_kind): Move here from
544 ada-lang.c.
545 (create_ada_exception_catchpoint): Add declaration.
546 * ada-lang.c (ada_exception_catchpoint_kind): Move to ada-lang.h.
547 (create_ada_exception_catchpoint): Make non-static. Add new
548 parameter "disabled". Use it in call to
549 init_ada_exception_breakpoint.
550 (catch_ada_exception_command): Add parameter "enabled" in call
551 to create_ada_exception_catchpoint.
552 (catch_assert_command): Likewise.
553
554 * mi/mi-cmds.h (mi_cmd_catch_assert, mi_cmd_catch_exception):
555 Add declarations.
556 * mi/mi-cmds.c (mi_cmds): Add the "catch-assert" and
557 "catch-exception" commands.
558 * mi/mi-cmd-catch.c: Add #include "ada-lang.h".
559 (mi_cmd_catch_assert, mi_cmd_catch_exception): New functions.
560
761269c8
JB
5612013-10-11 Joel Brobecker <brobecker@adacore.com>
562
563 * ada-lang.c (enum ada_exception_catchpoint_kind): Renames
564 "enum exception_catchpoint_kind". Replace the "ex_" prefix
565 of all its enumerates with "ada_". Update the rest of this
566 file throughout.
567
b4a5b78b
JB
5682013-10-11 Joel Brobecker <brobecker@adacore.com>
569
570 * ada-lang.c (ada_decode_exception_location): Delete.
571 (create_ada_exception_catchpoint): Remove arguments "sal",
572 "addr_string" and "ops". Add argument "ex_kind" instead.
573 Adjust implementation accordingly, calling ada_exception_sal
574 to get the entities it no longer gets passed as arguments.
575 Document the function's arguments.
576 (catch_ada_exception_command): Use catch_ada_exception_command_split
577 instead of ada_decode_exception_location, and update call to
578 create_ada_exception_catchpoint.
579 (catch_ada_assert_command_split): Renames
580 ada_decode_assert_location. Remove parameters "addr_string" and
581 "ops", and now returns void. Adjust implementation accordingly.
582 Update the function documentation.
583 (catch_assert_command): Use catch_ada_assert_command_split
584 instead of ada_decode_assert_location. Update call to
585 create_ada_exception_catchpoint.
586
7ad1d32c 5872013-10-11 Joel Brobecker <brobecker@adacore.com>
7c647d61
JB
588
589 * utils.h (perror_warning_with_name): Add declaration.
590 * utils.c (perror_warning_with_name): New function.
591 * cli/cli-cmds.c (source_script_with_search): Add call to
592 perror_warning_with_name if from_tty is nul.
593
7ad1d32c 5942013-10-11 Joel Brobecker <brobecker@adacore.com>
0cf4063e
JB
595
596 * utils.c (perror_string): New function, extracted out of
597 throw_perror_with_name.
598 (throw_perror_with_name): Rework to use perror_string.
599
bcc75809
YQ
6002013-10-11 Yao Qi <yao@codesourcery.com>
601
602 * remote.c (discard_pending_stop_replies_in_queue): Update
603 declaration.
604 (struct stop_reply) <rs>: New field.
605 (remove_stop_reply_of_remote_state): New function.
606 (discard_pending_stop_replies_in_queue): Add parameter 'rs'.
607 Callers update. Pass remove_stop_reply_of_remote_state to
608 QUEUE_iterate.
609 (remote_parse_stop_reply): Initialize field 'rs'.
610
05feb193
WN
6112013-10-10 Will Newton <will.newton@linaro.org>
612
613 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
614 linux_init_abi.
615
0d12017b
JB
6162013-10-10 Joel Brobecker <brobecker@adacore.com>
617
618 * cli/cli-cmds.c (show_baud_rate): Moved to serial.c as
619 serial_baud_show_cmd.
620 (_initialize_cli_cmds): Delete the code creating the
621 "set/show remotebaud" commands.
622 * serial.c (baud_rate): Move here from top.c.
623 (serial_baud_show_cmd): Move here from cli/cli-cmds.c.
624 (_initialize_serial): Create "set/show serial baud" commands.
625 Add "set/show remotebaud" command aliases.
626 * top.c (baud_rate): Moved to serial.c.
627 * NEWS: Document the new "set/show serial baud" commands,
628 replacing "set/show remotebaud".
629
578d3588
PA
6302013-10-09 Pedro Alves <palves@redhat.com>
631
632 * breakpoint.c (insert_bp_location): Use memory_error_message to
633 build the memory error string.
634 * c-lang.c: Include "gdbcore.h".
635 (c_get_string): Use memory_error to throw error.
636 (target_xfer_memory_error): Delete.
637 (memory_error_message): New, factored out from
638 target_xfer_memory_error.
639 (memory_error): Change parameter type to target_xfer_error.
640 Rewrite.
641 (read_memory): Use memory_error instead of
642 target_xfer_memory_error.
643 * gdbcore.h: Include "target.h".
644 (memory_error): Change parameter type to target_xfer_error.
645 (memory_error_message): Declare function.
646 * target.c (target_read_memory, target_read_stack)
647 (target_write_memory, target_write_raw_memory): Return
648 TARGET_XFER_E_IO on error. Adjust comments.
649 (get_target_memory): Pass TARGET_XFER_E_IO to memory_error,
650 instead of EIO.
651 * target.h (target_read, target_insert_breakpoint)
652 (target_remove_breakpoint): Adjust comments.
653 * valprint.c (partial_memory_read): Rename parameter, and adjust
654 comment.
655 (val_print_string): Use memory_error_message to build the memory
656 error string.
657
c74e1ccf
JK
6582013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
659
660 * common/filestuff.c (gdb_fopen_cloexec): Remove initialization of
661 result variable. Rename variable fopen_e_ever_failed to
662 fopen_e_ever_failed_einval. Retry fopen only for errno EINVAL.
663
915215be
PA
6642013-10-09 Pedro Alves <palves@redhat.com>
665
666 * monitor.c (monitor_write_memory, monitor_write_memory_bytes)
667 (monitor_write_memory_longlongs, monitor_write_memory_block):
668 Constify 'myaddr' parameter.
669 (monitor_xfer_memory): Adjust interface as monitor_xfer_partial
670 helper.
671 (monitor_xfer_partial): New function.
672 (init_base_monitor_ops): Don't install a deprecated_xfer_memory
673 hook. Install a to_xfer_partial hook.
674
acd13123
TT
6752013-10-09 Tom Tromey <tromey@redhat.com>
676
677 * dwarf2read.c (dwarf2_get_dwz_file): Update for type change in
678 bfd_get_alt_debug_link_info.
679
40135bb1
JK
6802013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
681
682 New flag OBJF_NOT_FILENAME.
683 * auto-load.c (auto_load_objfile_script): Check also OBJF_NOT_FILENAME.
684 * jit.c (jit_object_close_impl): Use OBJF_NOT_FILENAME for
685 allocate_objfile.
686 (jit_bfd_try_read_symtab): Use OBJF_NOT_FILENAME for
687 symbol_file_add_from_bfd.
688 * jv-lang.c (get_dynamics_objfile): Use OBJF_NOT_FILENAME for
689 allocate_objfile.
690 * objfiles.c (allocate_objfile): Assert OBJF_NOT_FILENAME if NAME is
691 NULL.
692 * objfiles.h (OBJF_NOT_FILENAME): New.
693
dc294be5
TT
6942013-10-08 Tom Tromey <tromey@redhat.com>
695
696 * Makefile.in (SFILES): Add build-id.c.
697 (HFILES_NO_SRCDIR): Add build-id.h.
698 * build-id.c: New file, largely from elfread.c. Modified
699 most functions.
700 * build-id.h: New file.
701 * dwarf2read.c (dwarf2_get_dwz_file): Update for change to
702 bfd_get_alt_debug_link_info. Verify dwz file's build-id.
703 Search for dwz file using build-id.
704 * elfread.c (build_id_bfd_get, build_id_verify)
705 (build_id_to_debug_filename, find_separate_debug_file): Remove.
706
db230ce3
JB
7072013-10-08 Joel Brobecker <brobecker@adacore.com>
708
709 * ada-lang.c (compare_names_with_case): Renamed from
710 compare_names, adding a new parameter "casing" and its handling.
711 New function documentation.
712 (compare_names): New function, implemented using
713 compare_names_with_case.
714
6501c98a
JB
7152013-10-08 Joel Brobecker <brobecker@adacore.com>
716
717 * ada-lang.c (ada_exception_sal): Remove advance declaration.
718
84a1243b
TT
7192013-10-07 Tom Tromey <tromey@redhat.com>
720
721 * objfiles.c (free_objfile_per_bfd_storage): Delete the
722 demangled_names_hash.
723 (free_objfile): Don't delete the demangled_names_hash.
724 * objfiles.h (struct objfile_per_bfd_storage)
725 <demangled_names_hash>: New field.
726 (struct objfile) <demangled_names_hash>: Move to
727 objfile_per_bfd_storage.
728 * symfile.c (reread_symbols): Don't delete the
729 demangled_names_hash.
730 * symtab.c (create_demangled_names_hash): Update.
731 (symbol_set_names): Update.
732
1da77581
TT
7332013-10-07 Tom Tromey <tromey@redhat.com>
734
735 * gdb_bfd.c (struct gdb_bfd_data) <relocation_computed,
736 needs_relocations>: New fields.
737 (gdb_bfd_requires_relocations): New function.
738 * gdb_bfd.h (gdb_bfd_requires_relocations): Declare.
739 * objfiles.c (get_objfile_bfd_data): Disallow sharing if
740 the BFD needs relocations applied.
741
46ecd527
PA
7422013-10-07 Pedro Alves <palves@redhat.com>
743
744 PR breakpoints/11568
745 * breakpoint.c (remove_threaded_breakpoints): Say "no longer in
746 the thread list" instead of "gone".
747
0c557179
SDJ
7482013-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
749
750 * NEWS: Mention new convenience variable $_exitsignal.
751 * corelow.c (core_open): Reset exit convenience variables. Set
752 $_exitsignal to the uncaught signal which generated the corefile.
753 * infrun.c (handle_inferior_event): Reset exit convenience
754 variables. Set $_exitsignal for TARGET_WAITKIND_SIGNALLED.
755 (clear_exit_convenience_vars): New function.
756 * inferior.h (clear_exit_convenience_vars): New prototype.
757
1cc47d81
YQ
7582013-10-06 Yao Qi <yao@codesourcery.com>
759
760 * varobj.h: Add comments to enum varobj_languages.
761
73869dc2
DE
7622013-10-04 Doug Evans <dje@google.com>
763
764 Add support for DWP file format version 2.
765 * NEWS: Mention support for DWP file format version 2.
766 * dwarf2read.c (dwarf2_section_info): Convert asection field to a
767 union of asection, containing_section. New fields virtual_offset
768 and is_virtual. Change type of readin filed from int to char.
769 (dwo_sections, dwo_file): Tweak comments.
770 (dwp_v2_section_ids): New enum.
771 (dwp_sections): New fields abbrev, info, line, loc, macinfo, macro,
772 str_offsets, types.
773 (virtual_v1_dwo_sections): Renamed from virtual_dwo_sections.
774 All uses updated.
775 (virtual_v2_dwo_sections): New struct.
776 (dwp_hash_table): New fields version, nr_columns. Change type of
777 section_pool field to a union.
778 (dwp_file): New field version.
779 (dwarf2_has_info): Check for virtual sections.
780 (get_containing_section): New function.
781 (get_section_bfd_owner, get_section_bfd_section): Call it.
782 (dwarf2_locate_sections): Update.
783 (dwarf2_section_empty_p): Update.
784 (dwarf2_read_section): Handle virtual sections.
785 (locate_dwz_sections): Update.
786 (create_dwp_hash_table): Document and handle V2 format.
787 (locate_v1_virtual_dwo_sections): Renamed from
788 locate_virtual_dwo_sections and update. All callers updated.
789 (create_dwo_unit_in_dwp_v1): Renamed from create_dwo_in_dwp.
790 Delete arg htab. Rename arg section_index to unit_index.
791 All callers updated.
792 (MAX_NR_V1_DWO_SECTIONS): Renamed from MAX_NR_DWO_SECTIONS.
793 All uses updated.
794 (create_dwp_v2_section, create_dwo_unit_in_dwp_v2): New functions.
795 (lookup_dwo_unit_in_dwp): Add V2 support.
796 (dwarf2_locate_dwo_sections): Update.
797 (dwarf2_locate_common_dwp_sections): Renamed from
798 dwarf2_locate_dwp_sections and update. All callers updated.
799 (dwarf2_locate_v2_dwp_sections): New function.
800 (open_and_init_dwp_file): Add V2 support.
801 (read_str_index): New locals str_section, str_offsets_section.
802
9a2c3737
PA
8032013-10-04 Pedro Alves <palves@redhat.com>
804
805 * common/ptid.c (null_ptid, minus_one_ptid, ptid_build)
806 (pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid)
807 (ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p): Replace
808 describing comments with references to ptid.h.
809 * common/ptid.h: Remove intro description of constructors,
810 accessors and predicates.
811 (struct ptid): Reformat.
812 (minus_one_ptid, ptid_build, pid_to_ptid, ptid_get_pid)
813 (ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid): Change
814 describing comments.
815
f5371440
JB
8162013-10-04 Joel Brobecker <brobecker@adacore.com>
817
818 * aix-thread.c (sync_threadlists): Add missing ')' in call
819 to ptid_build.
820
793e1c06
JB
8212013-10-04 Joel Brobecker <brobecker@adacore.com>
822
823 * procfs.c (procfs_init_inferior): Fix typo causing the build
824 to fail.
825
26f0edc1
JB
8262013-10-04 Joel Brobecker <brobecker@adacore.com>
827
828 * aix-thread.c (ptrace32): Remove cast to addr_ptr.
829
5713b9b5
JB
8302013-10-04 Joel Brobecker <brobecker@adacore.com>
831
832 * mi/mi-main.c (run_one_inferior): Add function description.
833 Make ARG a pointer to an integer whose value determines whether
834 we should "run" or "start" the program.
835 (mi_cmd_exec_run): Add handling of the "--start" option.
836 Reject all other command-line options.
837 * NEWS: Add entry for "-exec-run"'s new "--start" option.
838
f48ff2a7
YQ
8392013-10-04 Yao Qi <yao@codesourcery.com>
840
841 * remote-notif.h (REMOTE_NOTIF_ID): New enum.
842 (struct notif_client) <pending_event>: Moved
843 to struct remote_notif_state.
844 <id>: New field.
845 (struct remote_notif_state) <pending_event>: New field.
846 (notif_event_xfree): Declare.
847 * remote-notif.c (handle_notification): Adjust.
848 (notif_event_xfree): New function.
849 (do_notif_event_xfree): Call notif_event_xfree.
850 (remote_notif_state_xfree): Call notif_event_xfree to free
851 each element in field pending_event.
852 * remote.c (discard_pending_stop_replies): Remove declaration.
853 (discard_pending_stop_replies_in_queue): Declare.
854 (remote_close): Call discard_pending_stop_replies_in_queue
855 instead of discard_pending_stop_replies.
856 (remote_start_remote): Adjust.
857 (stop_reply_xfree): Call notif_event_xfree.
858 (notif_client_stop): Adjust initialization.
859 (remote_notif_remove_all): Rename it to ...
860 (remove_stop_reply_for_inferior): ... this. Update comments.
861 Don't check INF is NULL.
862 (discard_pending_stop_replies): Return early if notif_state is
863 NULL. Adjust. Don't check INF is NULL.
864 (remote_notif_get_pending_events): Adjust.
865 (discard_pending_stop_replies_in_queue): New function.
866 (remote_wait_ns): Likewise.
867
5965e028
YQ
8682013-10-04 Yao Qi <yao@codesourcery.com>
869
870 * remote-notif.c (DECLARE_QUEUE_P): Remove.
871 (notif_queue): Remove.
872 (remote_notif_process): Add one parameter 'notif_queue'.
873 Update comments. Callers update.
874 (remote_async_get_pending_events_token): Remove.
875 (remote_notif_register_async_event_handler): Remove.
876 (remote_notif_unregister_async_event_handler): Remove.
877 (handle_notification): Add parameter 'notif_queue'. Update
878 comments. Callers update.
879 (notif_xfree): Remove.
880 (remote_notif_state_allocate): New function.
881 (remote_notif_state_xfree): New function.
882 (_initialize_notif): Remove code to allocate queue.
883 * remote-notif.h (DECLARE_QUEUE_P): Moved from remote-notif.c.
884 (struct remote_notif_state): New.
885 (handle_notification): Update declaration.
886 (remote_notif_process): Likewise.
887 (remote_notif_register_async_event_handler): Remove.
888 (remote_notif_unregister_async_event_handler): Remove.
889 (remote_notif_state_allocate): Declare.
890 (remote_notif_state_xfree): Declare.
891 * remote.c (struct remote_state) <notif_state>: New field.
892 (remote_close): Don't call
893 remote_notif_unregister_async_event_handler. Call
894 remote_notif_state_xfree.
895 (remote_open_1): Don't call
896 remote_notif_register_async_event_handler. Call
897 remote_notif_state_allocate.
898
5e5ac9a5
YQ
8992013-10-04 Yao Qi <yao@codesourcery.com>
900
901 * varobj.c (create_child_with_value): Remove 'const' from the
902 type of parameter 'name'.
903 (varobj_add_child): Likewise.
904 (install_dynamic_child): Remove 'const' from the type of
905 parameter 'name'.
906 (varobj_add_child): Likewise.
907 (create_child_with_value): Likewise. Update comments. Don't
908 duplicate 'name'.
909 (update_dynamic_varobj_children): Duplicate 'name'
910 and pass it to install_dynamic_child.
911
06ab7b19
PM
9122013-10-03 Phil Muldoon <pmuldoon@redhat.com>
913
914 * python/py-value.c (convert_value_from_python): Move PyInt_Check
915 conversion logic to occur after PyLong_Check. Comment on order
916 change significance.
917 * python/py-arch.c (archpy_disassemble): Comment on order of
918 conversion for integers and longs.
919
8ae377e8
PA
9202013-10-03 Pedro Alves <palves@redhat.com>
921
922 * common/linux-ptrace.c (linux_check_ptrace_features): Factor out
923 the PTRACE_O_TRACESYSGOOD and PTRACE_O_TRACEFORK to separate
924 functions. Always test for PTRACE_O_TRACESYSGOOD even if
925 PTRACE_O_TRACEFORK is not supported.
926 (linux_test_for_tracesysgood): New function.
927 (linux_test_for_tracefork): New function, factored out from
928 linux_check_ptrace_features, and also don't kill child_pid here.
929
b1328b1b
TG
9302013-10-03 Tristan Gingold <gingold@adacore.com>
931
932 * i386-darwin-nat.c (i386_darwin_dr_set): Fix argument type.
933 Remove verbose error reporting. Use detected state to
934 thread_set_state call.
935 (i386_darwin_dr_get): Fix return type. Remove verbose error
936 report.
937 Remove trailing spaces.
938
901461f8
PA
9392013-10-02 Pedro Alves <palves@redhat.com>
940
941 * cp-valprint.c (cp_print_value_fields): Adjust calls to
942 val_print_optimized_out.
943 * jv-valprint.c (java_print_value_fields): Likewise.
944 * p-valprint.c (pascal_object_print_value_fields): Likewise.
945 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
946 <DWARF_VALUE_REGISTER>: If the register was not saved, return a
947 new optimized out value.
948 * findvar.c (address_from_register): Likewise.
949 * frame.c (put_frame_register): Tweak error string to say the
950 register was not saved, rather than optimized out.
951 * infcmd.c (default_print_one_register_info): Adjust call to
952 val_print_optimized_out. Use value_of_register instead of
953 get_frame_register_value.
954 * mi/mi-main.c (output_register): Use value_of_register instead of
955 get_frame_register_value.
956 * valprint.c (valprint_check_validity): Likewise.
957 (val_print_optimized_out): New value parameter. If the value is
958 lval_register, print <not saved> instead.
959 (value_check_printable, val_print_scalar_formatted): Adjust calls
960 to val_print_optimized_out.
961 * valprint.h (val_print_optimized_out): New value parameter.
962 * value.c (struct value) <optimized_out>: Extend comment.
963 (error_value_optimized_out): New function.
964 (require_not_optimized_out): Use it. Use a different string for
965 lval_register values.
966 * value.h (error_value_optimized_out): New declaration.
967 * NEWS: Mention <not saved>.
968
042a84d9
JB
9692013-10-02 Joel Brobecker <brobecker@adacore.com>
970
971 * symtab.c (compare_search_syms): Use FILENAME_CMP instead of
972 strcmp to compare two symtab filenames.
973
6b9780fb
JB
9742013-10-02 Joel Brobecker <brobecker@adacore.com>
975
976 * symtab.c (search_symbols_equal): Delete.
977 (sort_search_symbols_remove_dups): Replace call to
978 search_symbols_equal by call to compare_search_syms,
979 adjusting as necessary.
980
751e7549
PM
9812013-10-02 Phil Muldoon <pmuldoon@redhat.com>
982
983 PR python/15579
984
985 * python/python.c: Document gdb.execute command in Python help.
986
1efd7661
PM
9872013-10-02 Phil Muldoon <pmuldoon@redhat.com>
988
989 * python/py-frame.c (frame_info_to_frame_object): Use
990 gdbpy_convert_exception. Clean up Python object on failure.
991
562fc849
PM
9922013-10-02 Phil Muldoon <pmuldoon@redhat.com>
993
994 * python/lib/gdb/command/frame_filters.py
995 (InfoFrameFilter.list_frame_filters): Retrieve exception manually.
996 (ShowFrameFilterPriority.invoke): Ditto.
997
d7561cbb
KS
9982013-10-01 Keith Seitz <keiths@redhat.com>
999
1000 * linespec.c (struct ls_parser): Make 'saved_arg' const.
1001 (parse_linespec): Make 'argptr' const.
1002 Remove temporary cast of 'argptr' to const char **.
1003 (decode_line_full): Pass const pointer to parse_linespec.
1004 (decode_line_1): Likewise.
1005 (decode_objc): Make local variable 'new_argptr' const.
1006 (find_function_symbols): Remove temporary cast to char *
1007 to find_imps.
1008 * objc-lang.c (find_imps): Make argument 'method' const.
1009 Return const.
1010 * objc-lang.h (find_imps): Likewise.
1011
10122013-10-01 Keith Seitz <keiths@redhat.com>
1013
1014 * completer.c (skip_quoted_chars): Make all arguments const.
1015 Return const.
1016 (skip_quoted): Likewise.
1017 * completer.h (skip_quoted_chars): Likewise.
1018 (skip_quoted): Likewise.
1019 * defs.h (skip_quoted): Remove duplicate declaration.
1020 * jv-exp.y: Include completer.h.
1021 (yylex): Remove unneccessary cast to char * fro skip_quoted.
1022 * p-exp.y: Include completer.h.
1023
10242013-10-01 Keith Seitz <keiths@redhat.com>
1025
1026 * c-exp.y (parse_number): Make first argument const.
1027 Make a copy of the input to manipulate.
1028 (c_parse_escape): Make first argument const.
1029 Make local variable 'tokptr' const.
1030 (parse_string_or_char): Make first two arguments const.
1031 (macro_original_text): Make const.
1032 (lex_one_token): Make local variable 'tokstart' const.
1033 Likewise for local variables named 'p'.
1034 Cast away const for struct stoken (temporary).
1035 * c-lang.h (c_parse_escpae): Make first argument const.
1036 * cli/cli-cmds.c (echo_command): Make local variable 'p'
1037 const.
1038 * cli/cli-setshow.c (do_set_command): Likewise for 'p' in
1039 var_string case.
1040 * f-exp.y (parse_number): Make first argument const.
1041 (match_string_literal): Make local variable 'tokstart'
1042 const.
1043 (yylex): Make local variable 'p' const.
1044 Cast away const for struct stoken (temporary).
1045 * go-exp.y (parse_number): Make first argument const.
1046 (parse_string_or_char): Likewise.
1047 Make local variable 'tokstart' const.
1048 (lex_one_token): Likewise for numerous locals called 'p'.
1049 Cast away const for struct stoken (temporary).
1050 * jv-exp.y (parse_number): Make first argument const.
1051 Make local variables 'tokstart' and 'tokptr' const.
1052 Cast away const for call to skip_quoted (temporary).
1053 (yylex): Make local variable 'p' const.
1054 Cast away const for struct stoken (temporary).
1055 * m2-exp.y (parse_number): Make local variable 'p' const.
1056 (yylex): Likewise for 'tokstart'.
1057 Cast away const for struct stoken (temporary).
1058 Make local variable 'p' const.
1059 * macroexp.c (get_character_constant): Pass a const string
1060 to c_parse_escape.
1061 (get_string_literal): Likewise.
1062 (macro_expand_next): Make first argument const.
1063 Cast away const for init_shared_buffer.
1064 * macroexp.h (macro_expand_next): Make first argument const.
1065 * p-exp.y (yylex): Make a local copy of 'lexptr'.
1066 Pass a const string to c_parse_escape.
1067 Make local variables 'p' and 'namestart' const.
1068 * parse.c (lexptr): Make const.
1069 (prev_lexptr): Likewise.
1070 (find_template_name_end): Return const.
1071 Make argument const, too.
1072 (parse_exp_in_context): Make first argument const.
1073 Remove the entire const_hack.
1074 (parse_exp_in_context_1): Make first argument const.
1075 * parser-defs.h (find_template_name_end): Return const.
1076 Make argument const, too.
1077 (lexptr): Make const.
1078 (prev_lexptr): Likewise.
1079 * utils.c (parse_escape): Make second argument const.
1080 * utils.h (parse_escape): Likewise.
1081
10822013-10-01 Keith Seitz <keiths@redhat.com>
1083
1084 * ada-exp.y (write_object_renaming): Update: struct stoken.ptr
1085 is now const.
1086 (block_lookup): Make 'raw_name' and 'name' const.
1087 * ada-lex.l (processString): Update for struct stoken.ptr.
1088 * c-exp.y (qualified_name : TYPENAME COLONCOLON '~' name): Likewise.
1089 (operator_stoken): Likewise.
1090 (lex_one_token): Remove temporary cast to char * for
1091 'yylval.sval.ptr'.
1092 * f-exp.y (yylex): Likewise.
1093 * gdb-types.c (lookup_struct_elt_type): Make argument 'name' const.
1094 * gdbtypes.h (lookup_struct_elt_type): Likewisee.
1095 * go-exp.y (lex_one_token): Remove temporary cast to char * for
1096 'yylval.sval.ptr'.
1097 * jv-exp.y (QualifiedName): Update for struct stoken.ptr.
1098 (yylex): Remove temporary cast to char * for 'yylval.sval.ptr'.
1099 * linespec.c (struct ls_parser): Make 'stream' const.
1100 (find_parameter_list_end): Make argument 'input' and local
1101 variable 'p' const.
1102 (linespec_lexer_lex_string): Make local variables 'start' and
1103 'p' const.
1104 Use skip_spaces_const instead of skip_spaces.
1105 (linespec_lexer_peek_token): Make local variable 'saved_stream'
1106 const.
1107 (parse_linespec): Temporarily cast 'argptr' to const for
1108 'parser->lexer.stream'.
1109 * m2-exp.y (yylex): Remove temporary cast to char * for
1110 'yylval.sval.ptr'.
1111 * objc-lang.c (add_msglist): Make local variable 'p' const.
1112 * p-exp.y (exp : exp '['): Update for struct stoken.ptr.
1113 (exp : STRING): Make 'sp' const.
1114 (parse_number): Make argument 'p' const.
1115 * parser-defs.h (struct stoken): Make 'ptr' const.
1116
193a8eac
DE
11172013-10-01 Doug Evans <dje@google.com>
1118
1119 * cli/cli-decode.c: Remove unnecessary inclusion of tui/tui.h.
1120
2213e2be
YQ
11212013-10-01 Yao Qi <yao@codesourcery.com>
1122
1123 * varobj.c (c_value_of_root): Remove declaration.
1124 (cplus_value_of_root, java_value_of_root): Likewise.
1125 (ada_value_of_root): Likewise.
1126 (struct language_specific) <value_of_root>: Remove.
1127 (languages): Update initialization.
1128 (check_scope): Move earlier.
1129 (c_value_of_root): Move earlier and rename to ...
1130 (value_of_root_1): ... this.
1131 (value_of_root): Caller update.
1132 (cplus_value_of_root, java_value_of_root): Remove.
1133 (ada_value_of_root): Remove.
1134
c573f273
YQ
11352013-10-01 Yao Qi <yao@codesourcery.com>
1136
1137 * varobj.c (varobj_format_string): Remove "unknown".
1138 (languages): Remove the first element.
1139 * varobj.h (enum varobj_languages): Remove vlang_c.
1140
56250258
YQ
11412013-10-01 Yao Qi <yao@codesourcery.com>
1142
1143 * varobj.c (struct language_specific) <language>: Remove.
1144 (languages): Update the initialization.
1145
29f9ebfa
YQ
11462013-10-01 Yao Qi <yao@codesourcery.com>
1147
1148 * arm-wince-tdep.c: Remove inclusion of "solib.h" and
1149 "solib-target.h". Include "windows-tdep.h".
1150 (arm_wince_init_abi): Call windows_init_abi. Remove call to
1151 set_solib_ops and set_gdbarch_has_dos_based_file_system.
1152 * configure.tgt (arm*-wince-pe | arm*-*-mingw32ce*): Append
1153 windows-tdep.o to gdb_target_obs.
1154
64870a42
YQ
11552013-10-01 Yao Qi <yao@codesourcery.com>
1156
1157 * amd64-windows-tdep.c: Remove inclusion of "solib.h" and
1158 "solib-target.h".
1159 (amd64_windows_init_abi): Don't call set_solib_ops and
1160 set_gdbarch_iterate_over_objfiles_in_search_order. Call
1161 windows_init_abi instead.
1162 * i386-cygwin-tdep.c: Remove inclusion of "solib.h" and
1163 "solib-target.h".
1164 (i386_cygwin_init_abi): Don't call set_solib_ops,
1165 set_gdbarch_has_dos_based_file_system and
1166 set_gdbarch_iterate_over_objfiles_in_search_order. Call
1167 windows_init_abi instead.
1168 * windows-tdep.c: Include "solib.h" and "solib-target.h".
1169 (windows_init_abi): New function.
1170 (windows_iterate_over_objfiles_in_search_order): Make it
1171 static.
1172 * windows-tdep.h (windows_init_abi): Declare.
1173 (windows_iterate_over_objfiles_in_search_order): Remove
1174 declaration.
1175
0aebdefa
JB
11762013-10-01 Jerome Guitton <guitton@adacore.com>
1177
1178 Checked in by Joel Brobecker <brobecker@adacore.com>
1179 * system-gdbinit/elinos.py (get_elinos_environment): Return an
1180 incomplete dictionnary instead of None in case of missing
1181 environment variables.
1182 (elinos_init): in case of an incomplete environment, best
1183 effort to load system libraries instead of abort.
1184
1c8e84b0
JB
11852013-10-01 Joel Brobecker <brobecker@adacore.com>
1186
1187 * ada-lang.c (ada_has_this_exception_support): Ignore
1188 mst_solib_trampoline minimal symbols.
1189
61d82a0d
TG
11902013-09-30 Tristan Gingold <gingold@adacore.com>
1191
1192 * i386-darwin-nat.c (darwin_complete_target): Install methods for
1193 hardware watchpoint.
1194 (i386_darwin_dr_set): Support 32 and 64 bit states.
1195 (i386_darwin_dr_get): Likewise.
1196 (i386_darwin_dr_set_control): Make static.
1197 (i386_darwin_dr_set_addr, i386_darwin_dr_get_addr)
1198 (i386_darwin_dr_get_status, i386_darwin_dr_get_control): Likewise.
1199
dfd4cc63
LM
12002013-09-30 Luis Machado <lgustavo@codesourcery.com>
1201
1202 * aarch64-linux-nat.c: Replace PIDGET with ptid_get_pid.
1203 Replace TIDGET with ptid_get_lwp.
1204 Replace GET_LWP with ptid_get_lwp.
1205 * aix-thread.c (BUILD_THREAD, BUILD_LWP): Remove.
1206 Replace BUILD_THREAD with ptid_build.
1207 Replace BUILD_LWP with ptid_build.
1208 Replace PIDGET with ptid_get_pid.
1209 Replace TIDGET with ptid_get_lwp.
1210 * alphabsd-nat.c: Replace PIDGET with ptid_get_pid.
1211 * amd64-linux-nat.c: Replace PIDGET with ptid_get_pid.
1212 Replace TIDGET with ptid_get_lwp.
1213 * amd64bsd-nat.c: Replace PIDGET with ptid_get_pid.
1214 * arm-linux-nat.c: Replace PIDGET with ptid_get_pid.
1215 Replace TIDGET with ptid_get_lwp.
1216 Replace GET_LWP with ptid_get_lwp.
1217 * armnbsd-nat.c: Replace PIDGET with ptid_get_pid.
1218 * auxv.c: Likewise.
1219 * breakpoint.c: Likewise.
1220 * common/ptid.c (ptid_is_pid): Condense check for
1221 null_ptid and minus_one_ptid.
1222 (ptid_lwp_p): New function.
1223 (ptid_tid_p): New function.
1224 * common/ptid.h: Update comments for accessors.
1225 (ptid_lwp_p): New prototype.
1226 (ptid_tid_p): New prototype.
1227 * defs.h (PIDGET, TIDGET, MERGEPID): Do not define.
1228 * gcore.c: Replace PIDGET with ptid_get_pid.
1229 * gdbthread.h: Likewise.
1230 * gnu-nat.c: Likewise.
1231 * hppa-linux-nat.c: Replace PIDGET with ptid_get_pid.
1232 Replace TIDGET with ptid_get_lwp.
1233 * hppabsd-nat.c: Replace PIDGET with ptid_get_pid.
1234 * hppanbsd-nat.c: Likewise.
1235 * i386-linux-nat.c: Replace PIDGET with ptid_get_pid.
1236 Replace TIDGET with ptid_get_lwp.
1237 * i386bsd-nat.c: Replace PIDGET with ptid_get_pid.
1238 * ia64-linux-nat.c: Replace PIDGET with ptid_get_pid.
1239 * infcmd.c: Likewise.
1240 * inferior.h: Likewise.
1241 * inflow.c: Likewise.
1242 * infrun.c: Likewise.
1243 * linux-fork.c: Likewise.
1244 * linux-nat.c: Replace PIDGET with ptid_get_pid.
1245 Replace GET_PID with ptid_get_pid.
1246 Replace is_lwp with ptid_lwp_p.
1247 Replace GET_LWP with ptid_get_lwp.
1248 Replace BUILD_LWP with ptid_build.
1249
5b4e221c
MF
12502013-09-28 Mike Frysinger <vapier@gentoo.org>
1251
1252 * common/linux-btrace.c: Move sys/syscall.h out of the
1253 HAVE_LINUX_PERF_EVENT_H check and wrap it in HAVE_SYS_SYSCALL_H.
1254 Also check for SYS_perf_event_open before attempting to buid.
1255
57d63ce2
DE
12562013-09-27 Doug Evans <dje@google.com>
1257
19ac8c2e
DE
1258 * dwarf2read.c (dwarf2_section_info): Add comment.
1259 (dwp_file): Split loaded_cutus into loaded_cus, loaded_tus.
1260 All uses updated.
1261 (dwarf2_section_empty_p): Rename arg from "info" to "section".
1262 (dwarf2_read_section): Delete unused local "header". Add section
1263 name to error message.
1264 (create_dwo_in_dwp): Tweak comment.
1265 (MAX_NR_DWO_SECTIONS): Combine count of .debug_macro + .debug_macinfo.
1266
a32a8923
DE
1267 * dwarf2read.c (die_reader_specs): Tweak comment.
1268 (get_section_bfd_owner, get_section_bfd_section): New functions.
1269 (get_section_name, get_section_file_name): New functions.
1270 (get_section_id, get_section_flags): New functions.
1271 (*): Use new functions to access section fields.
1272
57d63ce2
DE
1273 * dwarf2read.c (struct dwo_file): Add/tweak comments.
1274 (lookup_dwo_unit_in_dwp): Renamed from lookup_dwo_in_dwp. Remove
1275 arg "htab". All callers updated.
1276 (create_debug_types_hash_table): Remove redundant copy of
1277 abbrev_section.
1278 (create_dwo_in_dwp): Tweak comments.
1279 (read_str_index): Tweak comment. Record dwarf form name in static
1280 local.
1281
3736004f
PA
12822013-09-27 Pedro Alves <palves@redhat.com>
1283
1284 * remote.h (REMOTE_SYSROOT_PREFIX): New define.
1285 (remote_filename_p): Add comment.
1286 * remote.c (remote_filename_p): Adjust to use
1287 REMOTE_SYSROOT_PREFIX.
1288 * solib.c (solib_find): When deciding whether we need to add a
1289 directory separator, check whether the sysroot is "remote:"
1290 instead of checking whether the patch has a drive spec. Add
1291 comments.
1292
5b5596ff
PA
12932013-09-27 Pedro Alves <palves@redhat.com>
1294
1295 * remote.c (struct stop_reply) <solibs_changed, replay_event>:
1296 Delete fields.
1297 (remote_parse_stop_reply): Adjust, setting event->ws.kind
1298 directly.
1299
b5eef7aa
JK
13002013-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1301
1302 Fix set debug frame output.
1303 * frame.c (fprint_frame_type): Add TAILCALL_FRAME entry. Move
1304 SENTINEL_FRAME entry lower to match enum frame_type order.
1305
5b856f36
PM
13062013-09-26 Pierre Muller <muller@sourceware.org>
1307
1308 Replace constant values 8 to 15 by AMD64_R8_REGNUM to
1309 AMD64_R15_REGNUM when a register index is expected.
1310 * amd64-windows-tdep.c (amd64_windows_dummy_call_integer_regs):
1311 Substitute in array.
1312 * amd64-tdep.c (amd64_dwarf_regmap): Ditto.
1313 (amd64_push_arguments): Substitute in integer_regnum array.
1314
ade7ed9e
DE
13152013-09-25 Doug Evans <dje@google.com>
1316
d3e81981
DE
1317 * objfiles.c (allocate_objfile): Move comment to better place.
1318
8fb8eb5c
DE
1319 New option "set debug symfile on".
1320 * NEWS: Mention "set debug symfile".
1321 * Makefile.in (SFILES): Add symfile-debug.c.
1322 (COMMON_OBS): Add symfile-debug.o.
1323 * elfread.c (elf_symfile_read): Use objfile_set_sym_fns to set the
1324 objfile's symbol functions.
1325 * objfiles.h (objfile_set_sym_fns): Declare.
1326 * symfile-debug.c: New file.
1327 * symfile.c (syms_from_objfile_1): Use objfile_set_sym_fns to set the
1328 objfile's symbol functions.
1329 (reread_symbols): Ditto.
1330
c256e171
DE
1331 * symfile.h (struct sym_fns): Delete member "sym_flavour".
1332 All uses updated.
1333 (add_symtab_fns): Update prototype.
1334 * symfile.c (sym_fns_ptr): Delete. Replace with ...
1335 (registered_sym_fns): ... this.
1336 (symtab_fns): Update.
1337 (add_symtab_fns): New arg "flavour". All callers updated.
1338 (find_sym_fns): Rewrite to use new sym_fns registry.
1339
f56ce883
DE
1340 * symfile.h (struct sym_fns): Add "objfile" argument to
1341 sym_read_linetable. All uses updated.
1342
20c681d1
DE
1343 * symtab.c (domain_name, search_domain_name): New functions.
1344 * symtab.h (domain_name, search_domain_name): Declare.
1345
ade7ed9e
DE
1346 * symfile.h (struct quick_symbol_functions): Reorg arg list of
1347 map_matching_symbols so objfile is first. All uses updated.
1348 * dwarf2read.c (dw2_map_matching_symbols): Update signature.
1349 * psymtab.c (map_matching_symbols_psymtab): Update signature.
1350
7d760051
UW
13512013-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
1352
1353 PR shlibs/8882
1354 * solib-svr4.c (svr4_read_so_list): Skip the vDSO when reading
1355 link map entries.
1356
020f7036
DE
13572013-09-24 Doug Evans <dje@google.com>
1358
1359 * objfiles.c (free_objfile): Move comment.
1360
598402f0
JB
13612013-09-24 Joel Brobecker <brobecker@adacore.com>
1362
1363 * ada-exp.y (string_to_operator): Delete.
1364 (dummy_string_to_ada_operator): Delete.
1365
bf4d6c1c
JB
13662013-09-24 Joel Brobecker <brobecker@adacore.com>
1367
1368 Revert:
1369 * i386-tdep.h (enum amd64_reg_class): New, moved here from
1370 amd64-tdep.c.
1371 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
1372 call_dummy_integer_regs, and classify.
1373 * amd64-tdep.h (amd64_classify): Add declaration.
1374 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
1375 (amd64_reg_class): Delete, moved to i386-tdep.h.
1376 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
1377 Replace call to amd64_classify by call to tdep->classify.
1378 (amd64_push_arguments): Get the list of registers to use for
1379 passing integer parameters from the gdbarch tdep structure,
1380 rather than using a hardcoded one. Replace calls to amd64_classify
1381 by calls to tdep->classify.
1382 (amd64_push_dummy_call): Get the register number used for
1383 the "hidden" argument from tdep->call_dummy_integer_regs.
1384 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
1385 and tdep->call_dummy_integer_regs. Set tdep->classify.
1386
849e9755
JB
13872013-09-24 Joel Brobecker <brobecker@adacore.com>
1388
1389 Revert:
1390 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
1391 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
1392 where tdep->memory_args_by_pointer is non-zero.
1393
c1459fd6
JB
13942013-09-24 Joel Brobecker <brobecker@adacore.com>
1395
1396 Revert:
1397 * i386-tdep.h (struct gdbarch_tdep): Add new field
1398 integer_param_regs_saved_in_caller_frame.
1399 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
1400 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
1401
20c2e3e0
JB
14022013-09-24 Joel Brobecker <brobecker@adacore.com>
1403
874440b8 1404 * amd64-windows-tdep.c: #include "value.h"
20c2e3e0
JB
1405 (amd64_windows_classify): Delete.
1406 (amd64_windows_passed_by_integer_register)
1407 (amd64_windows_passed_by_xmm_register)
1408 (amd64_windows_passed_by_pointer)
1409 (amd64_windows_adjust_args_passed_by_pointer)
1410 (amd64_windows_store_arg_in_reg, amd64_windows_push_arguments)
1411 (amd64_windows_push_dummy_call): New functions.
1412 (amd64_windows_init_abi): Remove setting of
1413 tdep->call_dummy_num_integer_regs, tdep->call_dummy_integer_regs,
1414 tdep->classify, tdep->memory_args_by_pointer and
1415 tdep->integer_param_regs_saved_in_caller_frame.
1416 Add call to set_gdbarch_push_dummy_call.
1417
82bf32bc
JK
14182013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1419
1420 * dwarf2read.c (open_and_init_dwp_file): Try open_dwp_file also with
1421 objfile->original_name.
1422
24ba069a
JK
14232013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1424
1425 Pass down original filename for objfile.
1426 * coffread.c (coff_symfile_read): Update symbol_file_add_separate call.
1427 * elfread.c (elf_symfile_read): Likewise.
1428 * jit.c (jit_object_close_impl): Update allocate_objfile call, no
1429 longer set ORIGINAL_NAME.
1430 (jit_bfd_try_read_symtab): Update symbol_file_add_from_bfd call.
1431 * jv-lang.c (get_dynamics_objfile): Update allocate_objfile call.
1432 * machoread.c (macho_add_oso_symfile): Add parameter name. Update
1433 symbol_file_add_from_bfd call.
1434 (macho_symfile_read_all_oso): Update two macho_add_oso_symfile calls.
1435 (macho_check_dsym): Add parameter filenamep. Change function comment.
1436 Set *filenamep.
1437 (macho_symfile_read): New variable dsym_filename. Update
1438 macho_check_dsym call. Use it for symbol_file_add_separate.
1439 * objfiles.c (allocate_objfile): Add parameter name. New comment for
1440 it. Use it for objfile->original_name.
1441 (objfile_name): Return OBFD's filename, if available.
1442 * objfiles.h (allocate_objfile): Add new parameter name.
1443 * solib.c (solib_read_symbols): Update symbol_file_add_from_bfd call.
1444 * symfile-mem.c (symbol_file_add_from_memory): Update
1445 symbol_file_add_from_bfd call.
1446 * symfile.c (read_symbols): Update symbol_file_add_separate call, new
1447 comment for it.
1448 (symbol_file_add_with_addrs): New parameter name, add function comment
1449 for it. Remove variable name. Update allocate_objfile call.
1450 (symbol_file_add_separate): New parameter name, add function comment
1451 for it. Update symbol_file_add_with_addrs call.
1452 (symbol_file_add_from_bfd): New parameter name. Update
1453 symbol_file_add_with_addrs call.
1454 (symbol_file_add): Update symbol_file_add_from_bfd call.
1455 (reread_symbols): New variable original_name. Save
1456 objfile->original_name by it.
1457 * symfile.h (symbol_file_add_from_bfd, symbol_file_add_separate): Add
1458 second parameter.
1459
4262abfb
JK
14602013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1461
1462 Code cleanup: Add objfile_name accessor function.
1463 * ada-lang.c (is_known_support_routine): Use objfile_name.
1464 * auto-load.c (source_gdb_script_for_objfile)
1465 (auto_load_objfile_script): Likewise.
1466 * coffread.c (coff_symtab_read, read_one_sym): Likewise.
1467 * dbxread.c (dbx_symfile_read): Likewise.
1468 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
1469 * dwarf2loc.c (locexpr_describe_location_piece): Likewise.
1470 * dwarf2read.c (dwarf2_get_dwz_file, dwarf2_read_index)
1471 (dw2_symtab_iter_next, dw2_expand_symtabs_matching)
1472 (lookup_dwp_signatured_type, lookup_dwo_unit)
1473 (dwarf2_build_psymtabs_hard, scan_partial_symbols, process_queue)
1474 (fixup_go_packaging, process_imported_unit_die, dwarf2_physname)
1475 (read_import_statement, create_dwo_cu, open_and_init_dwp_file)
1476 (lookup_dwo_cutu, read_call_site_scope, dwarf2_ranges_read)
1477 (dwarf2_record_block_ranges, read_common_block, read_typedef)
1478 (read_subrange_type, load_partial_dies, read_partial_die)
1479 (read_addr_index_1, read_str_index, dwarf_decode_lines_1)
1480 (die_containing_type, build_error_marker_type, lookup_die_type)
1481 (follow_die_ref_or_sig, follow_die_ref, dwarf2_fetch_die_loc_sect_off)
1482 (dwarf2_fetch_constant_bytes, follow_die_sig, get_signatured_type)
1483 (get_DW_AT_signature_type, write_psymtabs_to_index)
1484 (save_gdb_index_command): Likewise.
1485 * elfread.c (find_separate_debug_file_by_buildid, elf_symfile_read):
1486 Likewise.
1487 * expprint.c (dump_subexp_body_standard): Likewise.
1488 * gdbtypes.c (type_name_no_tag_or_error): Likewise.
1489 * jit.c (jit_object_close_impl): Use the objfile field name renamed to
1490 original_name.
1491 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New variable
1492 obj_name, use objfile_name for it, use the variable.
1493 (try_thread_db_load_from_pdir, has_libpthread, thread_db_new_objfile):
1494 Use objfile_name.
1495 * machoread.c (macho_symtab_read, macho_check_dsym)
1496 (macho_symfile_relocate): Likewise.
1497 * maint.c (maintenance_translate_address): Likewise.
1498 * minidebug.c (find_separate_debug_file_in_section): Likewise.
1499 * minsyms.c (install_minimal_symbols): Likewise.
1500 * objfiles.c (allocate_objfile): Use the objfile field name renamed to
1501 original_name.
1502 (filter_overlapping_sections): Use objfile_name.
1503 (objfile_name): New function.
1504 * objfiles.h (struct objfile): Rename field name to original_name.
1505 (objfile_name): New prototype.
1506 * printcmd.c (sym_info, address_info): Use objfile_name.
1507 * probe.c (parse_probes, collect_probes, compare_probes)
1508 (info_probes_for_ops): Likewise.
1509 * progspace.c (clone_program_space): Likewise.
1510 * psymtab.c (require_partial_symbols, dump_psymtab, allocate_psymtab)
1511 (maintenance_info_psymtabs): Likewise.
1512 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
1513 (source_section_scripts): Likewise.
1514 * python/py-objfile.c (objfpy_get_filename): Likewise.
1515 * python/py-progspace.c (pspy_get_filename): Likewise.
1516 * solib-aix.c (solib_aix_get_toc_value): Likewise.
1517 * solib-som.c (match_main, som_solib_section_offsets): Likewise.
1518 * solib.c (solib_read_symbols): Likewise.
1519 * stabsread.c (scan_file_globals): Likewise.
1520 * stap-probe.c (handle_stap_probe): Likewise.
1521 * symfile.c (symbol_file_clear, separate_debug_file_exists)
1522 (find_separate_debug_file_by_debuglink): Likewise.
1523 (reread_symbols): Likewise. Use the objfile field name renamed to
1524 original_name.
1525 (allocate_symtab): Use objfile_name.
1526 * symmisc.c (print_symbol_bcache_statistics, print_objfile_statistics)
1527 (dump_objfile, dump_msymbols, dump_symtab_1)
1528 (maintenance_print_msymbols, maintenance_print_objfiles)
1529 (maintenance_info_symtabs, maintenance_check_symtabs): Likewise.
1530 * target.c (target_translate_tls_address, target_info): Likewise.
1531 * xcoffread.c (xcoff_initial_scan): Make variable name const. Use
1532 objfile_name.
1533
4721dc18
JK
15342013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1535
1536 Code cleanup.
1537 * probe.c (parse_probes): Rename variable objfile_name to
1538 objfile_namestr.
1539
a61d6db8
JK
15402013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1541
1542 Remove solib-sunos.c.
1543 * Makefile.in (ALLDEPFILES): Remove solib-sunos.c.
1544 * config/m68k/obsd.mh (NATDEPFILES): Remove solib-sunos.o.
1545 * objfiles.c (rt_common_objfile): Remove.
1546 (free_objfile): Remove rt_common_objfile comparison.
1547 * objfiles.h (rt_common_objfile): Remove.
1548 * solib-sunos.c: Remove.
1549 * symfile.c (reread_symbols): Remove solib-sunos.c comment.
1550
2659903b
JK
15512013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1552
1553 Remove a.out NetBSD and OpenBSD hosts.
1554 * NEWS (Removed native configurations): New.
1555 * config/arm/nbsdaout.mh: Remove.
1556 * config/i386/nbsdaout.mh: Remove.
1557 * config/i386/obsdaout.mh: Remove.
1558 * config/m68k/nbsdaout.mh: Remove.
1559 * config/sparc/nbsdaout.mh: Remove.
1560 * config/vax/nbsdaout.mh: Remove.
1561 * configure.host (arm*-*-netbsd*, i[34567]86-*-netbsd*)
1562 (i[34567]86-*-openbsd[0-2].*, i[34567]86-*-openbsd3.[0-3])
1563 (m68*-*-netbsd*, sparc-*-netbsd*, vax-*-netbsd*): Add them to obsolete
1564 error.
1565 (arm*-*-netbsd*, i[34567]86-*-netbsd*, i[34567]86-*-openbsd[0-2].*)
1566 (i[34567]86-*-openbsd3.[0-3], m68*-*-netbsd*, sparc-*-netbsdaout*)
1567 (sparc-*-netbsd*, vax-*-netbsd*): Remove.
1568
f60e2d5c
TT
15692013-09-23 Tom Tromey <tromey@redhat.com>
1570
1571 * linespec.c (struct minsym_and_objfile): Remove.
1572 (minsym_and_objfile_d): Remove.
1573 (struct linespec, struct collect_info, linespec_parse_basic)
1574 (convert_linespec_to_sals, linespec_parser_delete, decode_objc)
1575 (compare_msymbols, find_method, find_function_symbols)
1576 (find_linespec_symbols, struct collect_minsyms, compare_msyms)
1577 (add_minsym, search_minsyms_for_name): Update.
1578
d3eaaf66
AB
15792013-09-23 Andrew Burgess <aburgess@broadcom.com>
1580
1581 * regcache.c: Add include of valprint.h.
1582 (dump_endian_bytes): Delete.
1583 (regcache_dump): Use print_hex_chars not dump_endian_bytes.
1584
2cc762b5
AB
15852013-09-23 Andrew Burgess <aburgess@broadcom.com>
1586
1587 * sh64-tdep.c (sh64_do_fp_register): Use print_hex_chars.
1588
96181529
PA
15892013-09-19 Pedro Alves <palves@redhat.com>
1590
1591 * breakpoint.c (remove_threaded_breakpoints): Skip non-user
1592 breakpoints.
1593
9b3f3ee6
TS
15942013-09-19 Pedro Alves <palves@redhat.com>
1595 Thomas Schwinge <thomas@codesourcery.com>
1596 Yue Lu <hacklu.newborn@gmail.com>
1597
1598 * gnu-nat.c (gnu_read_inferior, gnu_write_inferior): Make static.
1599 Take a gdb_byte pointer instead of a char pointer.
1600
1601 * gnu-nat.c (gnu_xfer_memory): Adjust interface as
1602 gnu_xfer_partial helper.
1603 (gnu_xfer_partial): New function.
1604 (gnu_target): Don't install a deprecated_xfer_memory hook.
1605 Install a to_xfer_partial hook.
1606
69150c3d
JK
16072013-09-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1608
1609 Constification.
1610 * main.c (captured_main): Replace catch_command_errors by
1611 catch_command_errors_const. Twice.
1612 * symfile.c (symbol_file_add_main_1): Make args parameter const.
1613 (symbol_file_add): Make name parameter const.
1614 (symbol_file_add_main, symbol_file_add_main_1): Make args parameter const.
1615 (symfile_bfd_open): Make name parameter const, rename it to cname. Add
1616 variable name. Change their usage accordingly.
1617 * symfile.h (symbol_file_add, symfile_bfd_open): Make first parameter
1618 const.
1619 (symbol_file_add_main): Make args parameter const.
1620
086850b2
UW
16212013-09-18 Raunaq Bathija <raunaq12@in.ibm.com>
1622 Ulrich Weigand <uweigand@de.ibm.com>
1623
1624 * xcoffread.c (struct coff_symbol): Use CORE_ADDR as type
1625 of c_value member.
1626 (read_xcoff_symtab): Use CORE_ADDR as type of fcn_start_addr.
1627
ca08a94c 16282013-09-18 Pedro Alves <palves@redhat.com>
d255f61f 1629 Yue Lu <hacklu.newborn@gmail.com>
ca08a94c
PA
1630
1631 * gnu-nat.c (inf_validate_procs, gnu_wait, gnu_resume)
1632 (gnu_create_inferior)
1633 (gnu_attach, gnu_thread_alive, gnu_pid_to_str, cur_thread)
1634 (set_sig_thread_cmd): Use the lwpid field of ptids to
1635 store/extract thread ids instead of the tid field.
1636 * i386gnu-nat.c (gnu_fetch_registers): Adjust.
1637
e4c6a2c4
AB
16382013-09-18 Andrew Burgess <aburgess@broadcom.com>
1639
1640 * infcmd.c (default_print_one_register_info): Add detection of
1641 optimized out values.
1642 (default_print_registers_info): Switch to using
1643 get_frame_register_value.
1644
58c48e72
MM
16452013-09-18 Markus Metzger <markus.t.metzger@intel.com>
1646
1647 * infrun.c (handle_inferior_event): Check if we know the
1648 function start address before setting a resume breakpoint.
1649
c8d37639
PA
16502013-09-18 Pedro Alves <palves@redhat.com>
1651
1652 * gnu-nat.c (set_sig_thread_cmd): Compare the thread's ptid to
1653 minus_one_ptid instead of looking at the ptid's tid field and
1654 comparing that to -1.
1655
71926e28
AB
16562013-09-18 Andrew Burgess <aburgess@broadcom.com>
1657
1658 * main.h (get_gdb_program_name): Remove extra whitespace.
1659
c88a1531
AB
16602013-09-18 Andrew Burgess <aburgess@broadcom.com>
1661
1662 * main.h (get_gdb_program_name): Add declaration.
1663 * main.c (get_gdb_program_name): Add definition.
1664
4390d890
DE
16652013-09-17 Doug Evans <dje@google.com>
1666
1667 * dwarf2read.c: Move definitions of complaint functions to after
1668 forward declarations of local functions.
1669
49fa26b0
PA
16702013-09-17 Muhammad Waqas <mwaqas@codesourcery.com>
1671 Pedro Alves <palves@redhat.com>
1672
1673 PR gdb/11568
1674 * breakpoint.c (remove_threaded_breakpoints): New function.
1675 (_initialize_breakpoint): Attach remove_threaded_breakpoints
1676 as thread_exit observer.
1677
08d72866
PA
16782013-09-17 Pedro Alves <palves@redhat.com>
1679
1680 PR gdb/15911
1681 * ada-tasks.c (task_command_1): Adjust call to print_stack_frame.
1682 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
1683 * corelow.c (core_open):
1684 * frame.h (print_stack_frame, print_frame_info): New
1685 'set_current_sal' parameter.
1686 * infcmd.c (finish_command, kill_command): Adjust call to
1687 print_stack_frame.
1688 * inferior.c (inferior_command): Likewise.
1689 * infrun.c (normal_stop): Likewise.
1690 * linux-fork.c (linux_fork_context): Likewise.
1691 * record-full.c (record_full_goto_entry, record_full_restore):
1692 Likewise.
1693 * remote-mips.c (common_open): Likewise.
1694 * stack.c (print_stack_frame): New 'set_current_sal' parameter.
1695 Use it.
1696 (print_frame_info): New 'set_current_sal' parameter. Set the last
1697 displayed sal depending on the new paremeter instead of looking at
1698 print_what.
1699 (backtrace_command_1, select_and_print_frame, frame_command)
1700 (current_frame_command, up_command, down_command): Adjust call to
1701 print_stack_frame.
1702 * thread.c (print_thread_info, restore_selected_frame)
1703 (do_captured_thread_select): Adjust call to print_stack_frame.
1704 * tracepoint.c (tfind_1): Likewise.
1705 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
1706 (mi_cmd_stack_info_frame): Likewise.
1707 * mi/mi-interp.c (mi_on_normal_stop): Likewise.
1708 * mi/mi-main.c (mi_cmd_exec_return, mi_cmd_trace_find): Likewise.
1709
6bc305f5
SDJ
17102013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1711
1712 * value.c (isvoid_internal_fn): Replace "parameter" with
1713 "argument".
1714
0a7cfe2c
SS
17152013-09-16 Stan Shebs <stan@codesourcery.com>
1716
1717 * README: Update references to writing code for GDB.
1718 * configure.ac (build_warnings): Remove obsolete comment.
1719 * configure: Regenerate.
1720 * gdbarch.sh: Remove references to gdbint.texinfo.
1721 * gdbarch.h: Regenerate.
1722 * gdbtypes.c (objfile_type): Remove comments referencing internals
1723 manual and D10V.
1724
a280dbd1
SDJ
17252013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1726
1727 * NEWS: Mention new convenience function $_isvoid.
1728 * value.c (isvoid_internal_fn): New function.
1729 (_initialize_values): Add new convenience function $_isvoid.
1730
04a83fee
PM
17312013-09-16 Pierre Muller <muller@sourceware.org>
1732
1733 * arm-linux-tdep.c: Add "elf/common.h" header.
1734 Remove AT_HWCAP macro definintion as it is provided in
1735 added include file.
1736 * s390-tdep.c: Remove system header <elf.h>
1737 Add "elf/common.h" header for AT_HWCAP definition.
1738 (s390_core_read_description): Use correct CORE_ADDR
1739 for hwcap local variable used as third parameter
1740 of function target_auxv_search.
1741
88505fac
PM
17422013-09-14 Pierre Muller <muller@sourceware.org>
1743 Tom Tromey <tromey@redhat.com>
1744 Pedro Alves <palves@redhat.com>
1745
1746 * common/filestuff.c (gdb_fopen_cloexec): Do not try to use "e"
1747 mode if operating system doesn't know O_CLOEXEC.
1748
d3846e71
JK
17492013-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1750
1751 Code cleanup.
1752 * symfile.c (reread_symbols): Move variable obfd_filename to a more
1753 inner block.
1754
4ac33720
UW
17552013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
1756
1757 * NEWS: Mention TDB support.
1758 * features/s390-tdb.xml: New file.
1759 * features/s390-te-linux64.xml: New file.
1760 * features/s390x-te-linux64.xml: New file.
1761 * features/Makefile (WHICH): Add new tdescs above.
1762 (s390-te-linux64-expedite): Set.
1763 (s390x-te-linux64-expedite): Set.
1764 * features/s390-te-linux64.c: New file (generated).
1765 * features/s390x-te-linux64.c: New file (generated).
1766 * regformats/s390-te-linux64.dat: New file (generated).
1767 * regformats/s390x-te-linux64.dat: New file (generated).
1768 * s390-tdep.h (HWCAP_S390_HIGH_GPRS): Define.
1769 (HWCAP_S390_TE): Likewise.
1770 (S390_TDB_DWORD0_REGNUM): Likewise.
1771 (S390_TDB_DWORD0_REGNUM): Likewise.
1772 (S390_TDB_ABORT_CODE_REGNUM): Likewise.
1773 (S390_TDB_CONFLICT_TOKEN_REGNUM): Likewise.
1774 (S390_TDB_ATIA_REGNUM): Likewise.
1775 (S390_TDB_R0_REGNUM): Likewise.
1776 (S390_TDB_R1_REGNUM): Likewise.
1777 (S390_TDB_R2_REGNUM): Likewise.
1778 (S390_TDB_R3_REGNUM): Likewise.
1779 (S390_TDB_R4_REGNUM): Likewise.
1780 (S390_TDB_R5_REGNUM): Likewise.
1781 (S390_TDB_R6_REGNUM): Likewise.
1782 (S390_TDB_R7_REGNUM): Likewise.
1783 (S390_TDB_R8_REGNUM): Likewise.
1784 (S390_TDB_R9_REGNUM): Likewise.
1785 (S390_TDB_R10_REGNUM): Likewise.
1786 (S390_TDB_R11_REGNUM): Likewise.
1787 (S390_TDB_R12_REGNUM): Likewise.
1788 (S390_TDB_R13_REGNUM): Likewise.
1789 (S390_TDB_R14_REGNUM): Likewise.
1790 (S390_TDB_R15_REGNUM): Likewise.
1791 (S390_NUM_REGS): Increase.
1792 (S390_IS_TDBREGSET_REGNUM): New macro.
1793 (s390_regmap_tdb): Declare.
1794 (s390_sizeof_tdbregset): Define.
1795 (tdesc_s390_te_linux64): Declare.
1796 (tdesc_s390x_te_linux64): Likewise.
1797 * s390-tdep.c: Add includes for "auxv.h", <elf.h>,
1798 "features/s390-te-linux64.c", and "features/s390x-te-linux64.c".
1799 (s390_regmap_tdb): New regmap.
1800 (s390_supply_tdb_regset): New function.
1801 (s390_tdb_regset): New regset.
1802 (s390_linux64v2_regset_sections): Add TDB regset to list.
1803 (s390x_linux64v2_regset_sections): Likewise.
1804 (s390_regset_from_core_section): Recognize TDB core note section.
1805 (s390_core_read_description): If HWCAP indicates TE support,
1806 select tdesc_s390_te_linux64 or tdesc_s390_s390x_te_linux64.
1807 (s390_gdbarch_init): Handle TDB regset.
1808 (_initialize_s390_tdep): Initialize new tdescs.
1809 * s390-nat.c (HWCAP_S390_HIGH_GPRS): Remove define.
1810 (have_regset_tdb): New variable.
1811 (s390_native_supply): Support register invalidation.
1812 (fetch_regset): Invalidate registers if ptrace yields ENODATA.
1813 (check_regset): Treat ENODATA as "regset exists".
1814 (s390_linux_fetch_inferior_registers): Add TDB.
1815 (s390_read_description): Check for TDB existence and select
1816 appropriate tdesc.
1817 * gdbserver/Makefile.in (clean): Add removal of new makefile
1818 targets.
1819 (s390-te-linux64.c): New makefile target.
1820 (s390x-te-linux64.c): Likewise.
1821 * gdbserver/configure.srv (srv_regobj): Append new objects
1822 s390-te-linux64.o and s390x-te-linux64.o.
1823 (srv_xmlfiles): Append new files s390-te-linux64.xml,
1824 s390x-te-linux64.xml, and s390-tdb.xml.
1825 * gdbserver/linux-s390-low.c (init_registers_s390_te_linux64): New
1826 declaration.
1827 (tdesc_s390_te_linux64): Likewise.
1828 (init_registers_s390x_te_linux64): Likewise.
1829 (tdesc_s390x_te_linux64): Likewise.
1830 (s390_check_regset): Treat ENODATA as "regset exists".
1831 (s390_arch_setup): Add TDB regset support.
1832 (initialize_low_arch): Initialize registers for new tdescs.
1833
2ccd1468
UW
18342013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
1835
1836 * s390-tdep.h (S390_IS_GREGSET_REGNUM): New macro.
1837 (S390_IS_FPREGSET_REGNUM): New macro.
1838 * s390-tdep.c (s390_dwarf_regmap): Make const.
1839 (regnum_is_gpr_full): New function for replacing repeated code.
1840 (s390_pseudo_register_name): Use it.
1841 (s390_pseudo_register_type): Likewise.
1842 (s390_pseudo_register_read): Likewise.
1843 (s390_pseudo_register_write): Likewise.
1844 (s390_unwind_pseudo_register): Likewise.
1845 (s390_regmap_gregset): New format for regmap.
1846 (s390x_regmap_gregset): Likewise.
1847 (s390_regmap_fpregset): Likewise.
1848 (s390_regmap_upper): Likewise.
1849 (s390_regmap_last_break): Likewise.
1850 (s390_regmap_system_call): Likewise.
1851 (s390_supply_regset): Adjust to new regmap format.
1852 (s390_collect_regset): Likewise.
1853 * s390-nat.c (s390_native_supply): Adjust to new regmap format.
1854 (s390_native_collect): Likewise.
1855 (supply_gregset): Likewise.
1856 (fill_gregset): Likewise.
1857 (supply_fpregset): Likewise.
1858 (fill_fpregset): Likewise.
1859 (fetch_regset): Likewise.
1860 (store_regset): Likewise.
1861 (s390_linux_fetch_inferior_registers): Likewise.
1862 (s390_linux_fetch_inferior_registers): Likewise.
1863
1aa4cd77
AP
18642013-09-12 Andrew Pinski <apinski@cavium.com>
1865
1866 * aarch64-linux-nat.c (aarch64_linux_set_debug_regs): Zero out regs.
1867
d91fab15
UW
18682013-09-10 Andreas Arnez <arnez@linux.vnet.ibm.com>
1869
1870 * config/s390/s390.mh (NATDEPFILES): Add linux-waitpid.o.
1871
5a5d8ead
AB
18722013-09-09 Andrew Burgess <aburgess@broadcom.com>
1873
1874 * top.c (quit_confirm): Remove use of deprecated_init_ui_hook.
1875
1385f66c
PA
18762013-09-06 Pedro Alves <palves@redhat.com>
1877
1878 * remote-sim.c (dump_mem, gdbsim_fetch_register)
1879 (gdbsim_store_register, gdbsim_kill, gdbsim_load)
1880 (gdbsim_create_inferior, gdbsim_open, gdbsim_close)
1881 (gdbsim_detach, gdbsim_resume_inferior, gdbsim_wait)
1882 (gdbsim_files_info, gdbsim_mourn_inferior): Send debug output to
1883 gdb_stdlog.
1884
146ec4db
PA
18852013-09-06 Pedro Alves <palves@redhat.com>
1886
1887 * remote-sim.c (dump_mem): Constify buf parameter.
1888 gdbsim_xfer_inferior_memory): Rename to ...
1889 (gdbsim_xfer_memory): ... this. Adjust interface as
1890 target_xfer_partial helper.
1891 (gdbsim_xfer_partial): New function.
1892 (init_gdbsim_ops): Don't install a deprecated_xfer_memory hook.
1893 Install a to_xfer_partial hook. Send output to gdb_stdlog.
1894
fcde0081
PA
18952013-09-06 Pedro Alves <palves@redhat.com>
1896
1897 * remote-sim.c (gdbsim_xfer_inferior_memory): Use
1898 host_address_to_string, and send debug output to gdb_stdlog.
1899
749c8b38
RW
19002013-09-06 Ricard Wanderlof <ricardw@axis.com>
1901
1902 * Makefile.in (ALL_TARGET_OBS): Add cris-linux-tdep.o.
1903 * configure.tgt: Add cris-linux-tdep.o and linux-tdep.o to
1904 gdb_target_obs for cris target.
1905 * cris-tdep.c (struct gdbarch_tdep): Move to cris-tdep.h.
1906 (cris_gdbarch_init): Move calls to
1907 set_gdbarch_fetch_tls_load_module_address and
1908 set_solib_svr4_fetch_link_map_offsets to cris-linux-tdep.c.
1909 Add call to gdbarch_init_osabi.
1910 * cris-linux-tdep.c: New file.
1911 * cris-tdep.h: New file.
1912
43df09d9
AB
19132013-09-06 Andrew Burgess <aburgess@broadcom.com>
1914
1915 * tui/tui-io.c (tui_initialize_io): Remove legacy comment referring
1916 to deprecated_init_ui_hook.
1917
4d09c5b4
AB
19182013-09-06 Andrew Burgess <aburgess@broadcom.com>
1919
1920 * cli/cli-interp.c (_initialize_cli_interp): Add a
1921 command_loop_proc to interp_procs.
1922 * event-top.c (cli_command_loop): Change signature to match
1923 interp_command_loop_ftype.
1924 * event-top.h (cli_command_loop): Same.
1925 * interps.c (interp_new): Require every interpreter to have a
1926 command_loop_proc.
1927 (current_interp_command_loop): Just call the command_loop_proc on
1928 the current interpreter.
1929 * tui/tui-interp.c (_initialize_tui_interp): Add a
1930 command_loop_proc to interp_procs.
1931
8eb3d7b6
RW
19322013-09-06 Ricard Wanderlof <ricardw@axis.com>
1933
1934 * cris-tdep.c (cris_gdbarch_init): Add call to
1935 get_gdbarch_fetch_tls_load_module_address.
1936
18b3c2f5
RW
19372013-09-06 Ricard Wanderlof <ricardw@axis.com>
1938
1939 * cris-tdep.c (cris_elf_greg_t): Rename from elf_greg_t.
1940 (cris_elf_gregset_t): Rename from elf_gregset_t.
1941 (crisv32_elf_gregset_t): Adjust.
1942 (cris_supply_gregset, fetch_core_registers): Adjust.
1943
dc8636ef
RW
19442013-09-06 Ricard Wanderlof <ricardw@axis.com>
1945
1946 * cris-tdep.c (elf_greg_t): Change typedef to unsigned char[4]
1947
257e6d53
AB
19482013-09-05 Andrew Burgess <aburgess@broadcom.com>
1949
1581d8a7 1950 * defs.h (deprecated_command_loop_hook): Remove, including
257e6d53 1951 references in comments.
1581d8a7 1952 * interps.c (current_interp_command_loop): No longer use
257e6d53
AB
1953 deprecated_command_loop_hook.
1954 (clear_interpreter_hooks): Remove deprecated_command_loop_hook
1955 setup.
1581d8a7 1956 * top.c (deprecated_command_loop_hook): Remove.
257e6d53 1957
7c33b57c
PA
19582013-09-05 Pedro Alves <palves@redhat.com>
1959
1960 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): 'dwarf_regnum'
1961 local is now int instead of ULONGEST. Print it with %d
1962 instead of paddress.
1963
9f8edbd5
TG
19642013-09-05 Tristan Gingold <gingold@adacore.com>
1965
1966 * MAINTAINERS: Remove avr maintainership.
1967
d5b495b4
PA
19682013-09-05 Pedro Alves <palves@redhat.com>
1969
1970 * findvar.c (value_of_register): Rework in terms of
1971 value_of_register_lazy.
1972
40b91786
MB
19732013-09-05 Muhammad Bilal <mbilal@codesourcery.com>
1974
1975 * symfile.c (add_symbol_file_command): Remove trailing
1976 whitespaces and blank line after comment.
1977
6eed1678
PA
19782013-09-05 Pedro Alves <palves@redhat.com>
1979
1980 * tui/tui-regs.c (tui_register_format): Don't look at the
1981 register's name here. Return string representing register
1982 value instead of storing it in the data element.
1983 (tui_get_register): Compare register string representations
1984 instead of register value states and contents.
1985
8eb6bda2
PA
19862013-09-05 Pedro Alves <palves@redhat.com>
1987
1988 PR tui/15933
1989 * tui/tui-regs.c (tui_show_registers): Show registers of the
1990 selected frame, not the current frame.
1991
48b1f08c
RW
19922013-09-05 Ricard Wanderlof <ricardw@axis.com>
1993
1994 * MAINTAINERS (Write After Approval): Add myself to the list.
1995
89e63ee4
DE
19962013-09-04 Doug Evans <dje@google.com>
1997
1998 * dwarf2read.c (queue_and_load_all_dwo_tus): New function.
1999 (queue_and_load_dwo_tu): New function.
2000 (lookup_dwo_signatured_type): Set per_cu.tu_read.
2001 (maybe_queue_comp_unit): Rename this_cu argument to dependent_cu.
2002 Make dependent_cu optional.
2003 (dw2_do_instantiate_symtab): If we just loaded a CU from a DWO,
2004 and an older .gdb_index is in use, queue and load all its TUs too.
2005
492c0ab7
JK
20062013-09-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2007
2008 Code cleanup: Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH.
2009 * cli/cli-cmds.c (find_and_open_script): Add OPF_RETURN_REALPATH to
2010 variable search_flags.
2011 * defs.h (OPF_DISABLE_REALPATH): Rename to ...
2012 (OPF_RETURN_REALPATH): ... here.
2013 * dwarf2read.c (try_open_dwop_file): Set OPF_RETURN_REALPATH for flags.
2014 * exec.c (exec_file_attach): Remove OPF_DISABLE_REALPATH from openp
2015 call. Twice.
2016 * nto-tdep.c (nto_find_and_open_solib): Add OPF_RETURN_REALPATH for
2017 openp call.
2018 * solib.c (solib_find): Likewise. Four times.
2019 * source.c (openp): Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH
2020 in the function comment and for the realpath_fptr variable.
2021 (source_full_path_of): Add OPF_RETURN_REALPATH for openp call.
2022 (find_and_open_source): Likewise. Twice.
2023 * symfile.c (symfile_bfd_open): Likewise, also twice.
2024
23a44de8
DE
20252013-09-04 Doug Evans <dje@google.com>
2026
2027 * progspace.c (save_current_space_and_thread): Remove unnecessary
2028 call to save_current_inferior.
2029
47061676
AB
20302013-09-04 Andrew Burgess <aburgess@broadcom.com>
2031
2032 * sh64-tdep.c (sh64_do_register): Return after printing message
2033 about unavailable register contents.
2034
41dc8db8
MB
20352013-09-04 Muhammad Bilal <mbilal@codesourcery.com>
2036 Pedro Alves <palves@redhat.com>
2037
2038 * symfile.c (add_symbol_file_command): Error out on unknown
2039 option. Handle EXPECTING_SEC_ADDR/EXPECTING_SEC_NAME before '-'
2040 options and collapse into single conditional branch.
2041
07107ca6
LM
20422013-09-03 Luis Machado <lgustavo@codesourcery.com>
2043
a7ea61cf 2044 * inf-child.c (inf_child_follow_fork): New parameter
07107ca6
LM
2045 detach_fork.
2046 * inf-ptrace.c (inf_ptrace_follow_fork): Likewise.
2047 * inf-ttrace.c (inf_ttrace_follow_fork): Likewise.
2048 * inferior.h (detach_fork): Remove.
2049 * infrun.c (detach_fork): Adjust comment and make it
2050 static.
2051 (follow_fork): Pass detach_fork parameter to
2052 target_follow_fork.
2053 * linux-nat.c (linux_child_follow_fork): New parameter
2054 detach_fork.
2055 * target.c (target_follow_fork): New parameter detach_fork.
2056 Pass detach_fork as parameter and print its value.
2057 * target.h (struct target_ops) <to_follow_fork>: New int
2058 parameter.
2059 (target_follow_fork): New parameter detach_fork.
2060
3bec2768
JB
20612013-09-03 Joel Brobecker <brobecker@adacore.com>
2062
2063 * solib-ia64-hpux.c (ia64_hpux_relocate_section_addresses):
2064 Replace sec->bfd by sec->the_bfd_section->owner.
2065
c01cbb3d
YQ
20662013-09-03 Yao Qi <yao@codesourcery.com>
2067
2068 * linux-tdep.c (linux_is_uclinux): New function. Code moved
2069 from linux_has_shared_address_space.
2070 (linux_has_shared_address_space): Call linux_is_uclinux.
2071 * linux-tdep.h (linux_is_uclinux): Declare.
2072 * m68klinux-tdep.c (m68k_linux_get_sigtramp_info): Call
2073 linux_is_uclinux.
2074
7b00db47
YQ
20752013-09-03 Yao Qi <yao@codesourcery.com>
2076
2077 * config/djgpp/fnchange.lst: Remove entry of
2078 i386-interix-nat.c and i386-interix-tdep.c.
2079 * configure.ac: Remove '*-*-interix*'.
2080 * configure: Re-generated.
2081 * defs.h (enum gdb_osabi): Remove GDB_OSABI_INTERIX.
2082 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Remove
2083 obsolete comments.
2084 * osabi.c (gdb_osabi_names): Remove "Interix".
2085
0f9741f2
YQ
20862013-09-03 Yao Qi <yao@codesourcery.com>
2087
2088 * arch-utils.c: Fix typo in the comment to gdbarch_update_p.
2089
1e038f67
MM
20902013-09-02 Markus Metzger <markus.t.metzger@intel.com>
2091
2092 * record.h (record_print_flag) <record_print_src_line,
2093 record_print_insn_range>: Rename into ...
2094 (record_print_flag) <record_print_src_line,
2095 record_print_insn_range>: ... this. Update all users.
2096
9e52adf9
PM
20972013-09-02 Pierre Muller <muller@sourceware.org>
2098
2099 * windows-nat.c (windows_xfer_memory): Handle ERROR_PARTIAL_COPY
2100 error code.
2101
a2388568
PM
21022013-09-02 Pierre Muller <muller@sourceware.org>
2103
2104 * windows-nat.c (windows_xfer_memory): Fix compilation failure
2105 by use of plongest function.
2106
9058cc3a
TG
21072013-09-02 Tristan Gingold <gingold@adacore.com>
2108
2109 * NEWS: Add entry mentioning support for native Windows x64
2110 SEH data.
2111
2112 * amd64-windows-tdep.c: #include "objfiles.h", "frame-unwind.h",
2113 "coff/internal.h", "coff/i386.h", "coff/pe.h" and "libcoff.h".
2114 (struct amd64_windows_frame_cache): New struct.
2115 (amd64_windows_w2gdb_regnum): New global.
2116 (pc_in_range, amd64_windows_frame_decode_epilogue)
2117 (amd64_windows_frame_decode_insns, amd64_windows_find_unwind_info)
2118 (amd64_windows_frame_cache, amd64_windows_frame_prev_register)
2119 (amd64_windows_frame_this_id): New functions.
2120 (amd64_windows_frame_unwind): New static global.
2121 (amd64_windows_skip_prologue): New function.
2122 (amd64_windows_init_abi): Call frame_unwind_prepend_unwinder
2123 with amd64_windows_frame_unwind. Call set_gdbarch_skip_prologue
2124 with amd64_windows_skip_prologue.
2125
3161820b 21262013-08-30 Joel Brobecker <brobecker@adacore.com>
2127
2128 GDB 7.6.1 released.
2129
02457c76
PA
21302013-08-30 Pedro Alves <palves@redhat.com>
2131
2132 * mi/mi-main.c (mi_cmd_trace_find): Use LOC_AND_ADDRESS instead of
2133 SRC_AND_LOC.
2134
e0162910
PA
21352013-08-30 Pedro Alves <palves@redhat.com>
2136
2137 * thread.c (restore_selected_frame): Use SRC_AND_LOC, and change
2138 warning text.
2139
6391ce51
PA
21402013-08-30 Pedro Alves <palves@redhat.com>
2141
2142 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
2143 Adjust arguments to print_stack_frame.
2144
d1da0587
PA
21452013-08-30 Pedro Alves <palves@redhat.com>
2146
2147 * ada-tasks.c (task_command_1): Write SRC_AND_LOC instead '1'.
2148
adfd8245
PA
21492013-08-30 Pedro Alves <palves@redhat.com>
2150
2151 * frame.h (show_and_print_stack_frame): Delete declaration.
2152
96d9056e
PM
21532013-08-30 Phil Muldoon <pmuldoon@redhat.com>
2154
2155 PR python/15461
2156
2157 * python/py-arch.c (ARCHPY_REQUIRE_VALID): New macro.
2158 (archpy_name): Check for valid architecture.
2159 (archpy_disassemble): Ditto.
2160
11cb8762
JB
21612013-08-29 Joel Brobecker <brobecker@adacore.com>
2162
2163 * rs6000-nat.c (rs6000_ptrace32): Cast "addr" to "uintptr_t"
2164 instead of "long long" in call to ptrace64.
2165
1af12a7d
AB
21662013-08-29 Andrew Burgess <aburgess@broadcom.com>
2167
2168 * mi/mi-interp.c (mi_command_loop): Change signature to match
2169 interp_command_loop_ftype.
2170 (mi1_command_loop): Remove.
2171 (mi2_command_loop): Remove.
2172 (mi3_command_loop): Remove.
2173 (mi_interpreter_resume): Remove setting of
2174 deprecated_command_loop_hook.
2175 (_initialize_mi_interp): Set mi_command_loop as the command loop
2176 callback.
2177
acc900c2
SA
21782013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
2179
2180 * valops.c (do_search_struct_field): Pass v2 instead of base_type to
2181 value_type.
2182
548b762d
SA
21832013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
2184
2185 * value.c (allocate_value_contents): Make static.
2186 * value.h (allocate_value_contents): Remove prototype.
2187
08039c9e
SA
21882013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
2189
2190 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use value_at_lazy instead
2191 of assembling value via allocate_value_lazy and attribute setter.
2192 * findvar.c (default_read_var_value): Use value_at_lazy instead of
2193 assembling value via allocate_value_lazy and attribute setter.
2194 * valops.c (do_search_struct_field): Use value_at_lazy instead of
2195 assembling value via allocate_value_lazy and attribute setter.
2196
314c7de9
SA
21972013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
2198
2199 * value.c (value_from_contents_and_address): Replace allocate_value and
2200 memcpy with value_from_contents.
2201
8f28f522
PM
22022013-08-29 Phil Muldoon <pmuldoon@redhat.com>
2203
2204 * python/py-framefilter.c (py_print_frame): Remove usage of
2205 PyString_AsString. Use python_string_to_host_string instead.
2206 Refactor function to work with a string as a new allocation
2207 instead of a pointer.
2208 (py_print_frame): Ditto.
2209 * python/lib/gdb/frames.py (return_list): Cain iterators together
2210 instead of adding them as a list.
2211 (_sort_list): Call return_list, and remove duplicate code.
2212 (execute_frame_filters): Convert iterator to a list with list().
2213 * python/lib/gdb/command/frame_filters.py
2214 (SetFrameFilterPriority._set_filter_priority): Convert priority
2215 attribute to an integer.
2216 * python/lib/gdb/FrameIterator.py (FrameIterator.next): Define
2217 wrapper function __next__.
2218 * python/lib/gdb/FrameDecorator.py: If basestring not defined,
2219 define as "str".
2220
8ee002df
PM
22212013-08-29 Phil Muldoon <pmuldoon@redhat.com>
2222
2223 PR python/15752
8ee002df
PM
2224 * python/py-framefilter.c (apply_frame_filter): Check
2225 gdb_python_initialized. Exit if the Python frame-filter code
2226 cannot be initialized.
2227
af4c453a
PM
22282013-08-29 Phil Muldoon <pmuldoon@redhat.com>
2229
2230 PR cli/15842
af4c453a
PM
2231 * top.c (print_gdb_version): Remove erroneous newline after help
2232 text.
2233
bf8793bb
YQ
22342013-08-29 Yao Qi <yao@codesourcery.com>
2235
2236 * varobj.c (install_dynamic_child): Remove trailing space.
2237 Add one blank line after variable declaration.
2238
1f0c4988
JK
22392013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2240
2241 PR gdb/15415
2242 * corefile.c (get_exec_file): Use exec_filename.
2243 * defs.h (OPF_DISABLE_REALPATH): New definition. Add new comment.
2244 * exec.c (exec_close): Free EXEC_FILENAME.
2245 (exec_file_attach): New variable canonical_pathname. Use
2246 OPF_DISABLE_REALPATH. Call gdb_realpath explicitly. Set
2247 EXEC_FILENAME.
2248 * exec.h (exec_filename): New.
2249 * inferior.c (print_inferior, inferior_command): Use
2250 PSPACE_EXEC_FILENAME.
2251 * mi/mi-main.c (print_one_inferior): Likewise.
2252 * progspace.c (clone_program_space, print_program_space): Likewise.
2253 * progspace.h (struct program_space): New field pspace_exec_filename.
2254 * source.c (openp): Describe OPF_DISABLE_REALPATH. New variable
2255 realpath_fptr, initialize it from OPF_DISABLE_REALPATH, use it.
2256
59ee9f94
WN
22572013-08-28 Will Newton <will.newton@linaro.org>
2258
2259 * common/linux-ptrace.c: Include stdint.h unconditionally.
2260
c8a2a419
JK
22612013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2262
2263 Code cleanup.
2264 * nto-tdep.c (nto_find_and_open_solib): Use OPF_TRY_CWD_FIRST.
2265
ffa4ac95
YQ
22662013-08-28 Yao Qi <yao@codesourcery.com>
2267 Pedro Alves <palves@redhat.com>
2268
2269 * event-top.c (gdb_setup_readline): Call stderr_fileopen
2270 instead of stdio_fileopen.
2271 * main.c (captured_main) [__MINGW32__]: Set stderr unbuffered.
2272 .Call stderr_fileopen instead of stdio_fileopen.
2273 * ui-file.c [__MINGW32__] (stderr_file_write): New function.
2274 [__MINGW32__] (stderr_file_fputs): New function.
2275 (stderr_fileopen): New function.
2276 * ui-file.h (stderr_fileopen): Declare.
2277
69d751e3
DE
22782013-08-27 Doug Evans <dje@google.com>
2279
2280 * dwarf2read.c (struct dwarf2_cu): Tweak comment.
2281 (struct dwarf2_per_cu_data): Ditto.
2282 (maybe_queue_comp_unit): Delete forward decl. Add comment.
2283 (process_imported_unit_die): Ditto.
2284 (follow_die_sig_1): Simplify assert.
2285
44f38867
PA
22862013-08-27 Pedro Alves <palves@redhat.com>
2287
2288 * windows-nat.c (windows_xfer_memory): Adjust prototype to follow
2289 xfer_partial's interface. Return TARGET_XFER_E_IO on error.
2290 (windows_xfer_partial): Defer TARGET_OBJECT_MEMORY handling to
2291 windows_xfer_memory directly.
2292 (init_windows_ops): Don't install a deprecated_xfer_memory method.
2293
d28d46b5
PA
22942013-08-27 Pedro Alves <palves@redhat.com>
2295
2296 * darwin-nat.c (darwin_xfer_memory): Delete.
2297 (_initialize_darwin_inferior): Don't install a
2298 deprecated_xfer_memory method.
2299
6211c335
YQ
23002013-08-27 Pedro Alves <pedro@codesourcery.com>
2301 Yao Qi <yao@codesourcery.com>
2302
2303 * mi/mi-cmd-stack.c (list_args_or_locals): Adjust prototype.
2304 (parse_no_frames_option): Remove.
2305 (mi_cmd_stack_list_locals): Handle --skip-unavailable.
2306 (mi_cmd_stack_list_args): Adjust.
2307 (mi_cmd_stack_list_variables): Handle --skip-unavailable.
2308 (list_arg_or_local): Add new parameter 'skip_unavailable'. Return
2309 early if SKIP_UNAVAILABLE is true and ARG->val is unavailable.
2310 Caller update.
2311 (list_args_or_locals): New parameter 'skip_unavailable'.
2312 Handle it.
2313 * valprint.c (scalar_type_p): Rename to ...
2314 (val_print_scalar_type_p): ... this. Make extern.
2315 (val_print, value_check_printable): Adjust.
2316 * valprint.h (val_print_scalar_type_p): Declare.
2317 * value.c (value_entirely_unavailable): New function.
2318 * value.h (value_entirely_unavailable): Declare.
2319
2320 * NEWS: Mention the new option "--skip-unavailable" to MI
2321 commands '-stack-list-locals', '-stack-list-arguments' and
2322 '-stack-list-variables'.
2323
242f1fd7
YQ
23242013-08-27 Yao Qi <yao@codesourcery.com>
2325
2326 * mi/mi-cmd-stack.c (parse_no_frames_option): Remove.
2327 (mi_cmd_stack_list_args): Use mi_getopt_silent to handle
2328 options.
2329 * mi/mi-getopt.c (mi_getopt): Remove.
2330 (mi_getopt_1): Renamed from mi_getopt. Add one parameter
2331 'error_on_unknown'.
2332 (mi_getopt): Call mi_getopt_1.
2333 (mi_getopt_silent): New.
2334 * mi/mi-getopt.h (mi_getopt_silent): Declare.
2335
260b681b
DE
23362013-08-26 Doug Evans <dje@google.com>
2337
779bd270
DE
2338 PR symtab/15885
2339 * dwarf2read.c (dw2_dump): Print some minimal information indicating
2340 .gdb_index is in use.
2341 * symfile.c (reread_symbols): Reset objfile->sf.
2342
52e260a3
DE
2343 * NEWS: Document "mt print objfiles" now takes optional regexp.
2344 * symmisc.c (maintenance_print_objfiles): Argument is now an optional
2345 regexp of objfiles to print.
2346 (_initialize_symmisc): Update doc string for "mt print objfiles".
2347
260b681b
DE
2348 * dwarf2read.c (write_psymtabs_to_index): Move error checks ahead of
2349 missing debug info checks.
2350
a85c52f2
UW
23512013-08-26 Raunaq Bathija <raunaq12@in.ibm.com>
2352 Ulrich Weigand <uweigand@de.ibm.com>
2353
2354 * xcoffread.c (arrange_linetable): Add fix to correctly handle
2355 line tables generated by XLC compiled binaries.
2356
4f00dda3
DE
23572013-08-23 Doug Evans <dje@google.com>
2358
db68bbae
DE
2359 * symmisc.c (dump_symtab): Delete prototype.
2360 (dump_msymbols, dump_objfile): Ditto.
2361 (maintenance_info_symtabs): Mark as dont_repeat.
2362 (_initialize_symmisc): Improve doc string for "mt info symtabs".
2363
4f00dda3
DE
2364 * elfread.c (elf_symfile_read): Move "Done reading minimal symbols"
2365 debugging printf to better location.
2366
23d577b0
PA
23672013-08-23 Pedro Alves <palves@redhat.com>
2368
2369 * target.c (target_read_live_memory): Change type of 'ret' local
2370 to LONGEST.
2371
00d84524
PA
23722013-08-23 Pedro Alves <palves@redhat.com>
2373
2374 * remote.c (remote_write_bytes_aux, remote_write_bytes)
2375 (remote_read_bytes): Change return type to LONGEST, and adjust to
2376 return a target_xfer_error on error.
2377 (remote_xfer_memory): Delete.
2378 (remote_flash_write): Change type of 'ret' local to LONGEST.
2379 (remote_xfer_partial, remote_xfer_partial): Adjust.
2380 (init_remote_ops): Don't install a deprecated_xfer_memory hook.
2381
1ed3ee94
PM
23822013-08-23 Pierre Muller <muller@sourceware.org>
2383
2384 ARI fix: Push # directives to start of line.
2385 * rs6000-nat.c (rs6000_ptrace32, rs6000_ptrace64): Rule applied.
2386
9eaabc75
MW
23872013-08-12 Muhammad Waqas <mwaqas@codesourcery.com>
2388
2389 PR gdb/15501
2390 * breakpoint.c (enable_command, disable_command): Iterate over
2391 all specified breakpoint locations.
2392
101158d9
LM
23932013-08-22 Luis Machado <lgustavo@codesourcery.com>
2394
2395 * common/linux-ptrace.c (linux_fork_to_function): Push #
2396 directives to the start of the line.
2397 (linux_check_ptrace_features): Fix warning message to use
2398 the "_" markup.
2399
96d7229d
LM
24002013-08-22 Luis Machado <lgustavo@codesourcery.com>
2401
2402 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-nat.h and
2403 nat/linux-waitpid.h.
2404 (linux-waitpid.o): New object file rule.
2405 * common/linux-ptrace.c: Include nat/linux-waitpid.h.
2406 (current_ptrace_options): Moved from linux-nat.c.
2407 (linux_ptrace_test_ret_to_nx): Use type casts for ptrace
2408 parameters.
2409 (linux_fork_to_function): New function.
2410 (linux_grandchild_function): Likewise.
2411 (linux_child_function): Likewise.
2412 (linux_check_ptrace_features): New function, heavily
2413 based on linux-nat.c:linux_test_for_tracefork.
2414 (linux_enable_event_reporting): New function.
2415 (ptrace_supports_feature): Likewise.
2416 (linux_supports_tracefork): Likewise.
2417 (linux_supports_traceclone): Likewise.
2418 (linux_supports_tracevforkdone): Likewise.
2419 (linux_supports_tracesysgood): Likewise.
2420 * common/linux-ptrace.h (HAS_NOMMU): Moved from
2421 gdbserver/linux-low.c.
2422 (linux_enable_event_reporting): New declaration.
2423 (linux_supports_tracefork): Likewise.
2424 (linux_supports_traceclone): Likewise.
2425 (linux_supports_tracevforkdone): Likewise.
2426 (linux_supports_tracesysgood): Likewise.
2427 * config.in (PTRACE_TYPE_ARG4): Regenerate.
2428 * config/aarch64/linux.mh (NATDEPFILES): Add linux-waitpid.o.
2429 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
2430 * config/arm/linux.mh (NATDEPFILES): Likewise.
2431 * config/i386/linux.mh (NATDEPFILES): Likewise.
2432 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2433 * config/ia64/linux.mh (NATDEPFILES): Likewise.
2434 * config/m32r/linux.mh (NATDEPFILES): Likewise.
2435 * config/m68k/linux.mh (NATDEPFILES): Likewise.
2436 * config/mips/linux.mh (NATDEPFILES): Likewise.
2437 * config/pa/linux.mh (NATDEPFILES): Likewise..
2438 * config/powerpc/linux.mh (NATDEPFILES): Likewise..
2439 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
2440 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
2441 * config/sparc/linux.mh (NATDEPFILES): Likewise.
2442 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
2443 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
2444 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
2445 * configure.ac (AC_CACHE_CHECK): Add void * to the list of
2446 ptrace's 4th argument's types.
2447 Check the type of PTRACE_TYPE_ARG4.
2448 * configure: Regenerate.
2449 * linux-nat.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
2450 (SYSCALL_SIGTRAP): Moved to nat/linux-nat.h.
2451 (linux_supports_tracefork_flag): Remove.
2452 (linux_supports_tracesysgood_flag): Likewise.
2453 (linux_supports_tracevforkdone_flag): Likewise.
2454 (current_ptrace_options): Moved to
2455 common/linux-ptrace.c.
2456 (linux_tracefork_child): Remove.
2457 (my_waitpid): Remove.
2458 (linux_test_for_tracefork): Renamed to
2459 linux_check_ptrace_features and moved to common/linux-ptrace.c.
2460 (linux_test_for_tracesysgood): Remove.
2461 (linux_supports_tracesysgood): Remove.
2462 (linux_supports_tracefork): Remove.
2463 (linux_supports_tracevforkdone): Remove.
2464 (linux_enable_tracesysgood): Remove.
2465 (linux_enable_event_reporting): Remove.
2466 (linux_init_ptrace): New function.
2467 (linux_child_post_attach): Call linux_init_ptrace.
2468 (linux_child_post_startup_inferior): Call linux_init_ptrace.
2469 (linux_child_follow_fork): Call linux_supports_tracefork
2470 and linux_supports_tracevforkdone.
2471 (linux_child_insert_fork_catchpoint): Call
2472 linux_supports_tracefork.
2473 (linux_child_insert_vfork_catchpoint): Likewise.
2474 (linux_child_set_syscall_catchpoint): Call
2475 linux_supports_tracesysgood.
2476 (lin_lwp_attach_lwp): Call linux_supports_tracefork.
2477 * nat/linux-nat.h: New file.
2478 * nat/linux-waitpid.c: New file.
2479 * nat/linux-waitpid.h: New file.
2480
9f948660
SDJ
24812013-08-22 Samuel Bronson <naesten@gmail.com>
2482
2483 ARM Linux support for `catch syscall'.
2484 * syscalls/arm-linux.py: New file.
2485 * syscalls/arm-linux.xml: Likewise.
2486 * arm-linux-tdep.c (arm_linux_get_syscall_number): New function.
2487 (arm_linux_init_abi): Register the new function and syscall xml file.
2488 * data-directory/Makefile.in: Install the new syscall xml file.
2489 * NEWS: Brag about this.
2490
6be7b56e
PA
24912013-08-22 Pedro Alves <palves@redhat.com>
2492
2493 PR gdb/15871
2494 * corefile.c (target_xfer_memory_error): New function.
2495 (memory_error): Defer EIO to target_memory_error.
2496 (read_memory): Use target_xfer_partial, and handle finer-grained
2497 target xfer errors.
2498 * target.c (target_xfer_error_to_string): New function.
2499 (memory_xfer_partial_1): If memory is known to be
2500 unavailable, return TARGET_XFER_E_UNAVAILABLE instead of -1.
2501 (target_xfer_partial): Make extern.
2502 * target.h (enum target_xfer_error): New enum.
2503 (target_xfer_error_to_string): Declare function.
2504 (target_xfer_partial): Declare function.
2505 (struct target_ops) <xfer_partial>: Adjust describing comment.
2506
bcbec14e
AM
25072013-08-22 Alan Modra <amodra@gmail.com>
2508
2509 * configure.host: Support powerpc64le-linux and powerpcle-linux hosts.
2510 * configure.tgt: Likewise as targets.
2511
fc474241
DE
25122013-08-20 Doug Evans <dje@google.com>
2513
2514 * buildsym.c (subfile_stack): Move here from buildsym.h.
2515 (pending_macros): Ditto.
2516 (get_macro_table): New function.
2517 (buildsym_init): Initialize subfile_stack.
2518 * coffread.c (type_vector,type_vector_length): Moved here from
2519 buildsym.h.
2520 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
2521 (coff_symtab_read): Use it.
2522 * dbxread.c (read_ofile_symtab): Delete init of subfile_stack.
2523 * dwarf2read.c (macro_start_file): Replace uses of pending_macros
2524 with call to get_macro_table.
2525 * stabsread.c (type_vector,type_vector_length): Moved here from
2526 buildsym.h.
2527 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
2528 * buildsym.h (get_macro_table): Declare.
2529
bec71544
TT
25302013-08-20 Tom Tromey <tromey@redhat.com>
2531
2532 * dbxread.c (record_minimal_symbol): Make 'name' argument const.
2533 Update.
2534 (read_dbx_dynamic_symtab): Make 'name' const. Remove casts.
2535
0002ad5f
DE
25362013-08-20 Doug Evans <dje@google.com>
2537
2538 * blockframe.c: Remove #include "psymtab.h".
2539 * cp-support.c: Ditto.
2540 * source.c: Ditto.
2541 * stack.c: Ditto.
2542
df302446
TT
25432013-08-20 Tom Tromey <tromey@redhat.com>
2544
2545 PR python/15816:
2546 * exceptions.h (return_mask): Now an enum.
2547 (RETURN_MASK_QUIT, RETURN_MASK_ERROR, RETURN_MASK_ALL): Now
2548 enum constants.
2549
df6d5441
TT
25502013-08-20 Tom Tromey <tromey@redhat.com>
2551
2552 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
2553 get_objfile_arch.
2554 * elfread.c (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
2555 (elf_gnu_ifunc_resolve_by_got): Use get_objfile_arch.
2556 * jit.c (jit_object_close_impl): Update.
2557 * jv-lang.c (get_dynamics_objfile): Update.
2558 * linespec.c (add_minsym): Use get_dynamics_objfile.
2559 * objfiles.c (get_objfile_bfd_data): Initialize 'gdbarch' field.
2560 (allocate_objfile): Don't initialize 'gdbarch' field.
2561 (get_objfile_arch): Update.
2562 * objfiles.h (struct objfile_per_bfd_storage) <gdbarch>: New field,
2563 moved from...
2564 (struct objfile) <gdbarch>: ... here. Remove.
2565 * stap-probe.c (stap_can_evaluate_probe_arguments): Use
2566 get_objfile_arch.
2567 * symfile.c (init_entry_point_info): Use get_objfile_arch.
2568
f5aee5ee
AM
25692013-08-20 Alan Modra <amodra@gmail.com>
2570
2571 * doublest.c (convert_floatformat_to_doublest): Use fmt->split_half
2572 for IBM long double nan and inf.
2573 (floatformat_is_negative, floatformat_classify,
2574 floatformat_mantissa): Similarly.
2575 (floatformat_ieee_single, floatformat_ieee_double,
2576 floatformat_ieee_quad, floatformat_arm_ext,
2577 floatformat_ia64_spill): Delete unused vars.
2578 (_initialize_doublest): Delete unused function.
2579 * gdbtypes.c (floatformats_ibm_long_double): Use new big- and
2580 little-endian variants of floatformat_ibm_long_double.
2581
33b60d58 25822013-08-19 Luis Machado <lgustavo@codesourcery.com>
f5aee5ee 2583
33b60d58
LM
2584 * Makefile.in (SFILES): Remove common/target-common.c and
2585 add target/waitstatus.c.
2586 (HFILES_NO_SRCDIR): Remove common/target-common.h and add
2587 target/resume.h, target/wait.h and target/waitstatus.h.
2588 (COMMON_OBS): Remove target-common.o and add
2589 waitstatus.o.
2590 (target-common.o): Remove.
2591 (waitstatus.o): New target object file.
2592 * common/target-common.c: Move contents to
2593 target/waitstatus.c and remove.
2594 * common/target-common.h: Move contents to other files and
2595 remove.
2596 (enum resume_kind: Move to target/resume.h.
2597 (TARGET_WNOHANG): Move to target/wait.h.
2598 (enum target_waitkind): Move to target/waitstatus.h.
2599 (struct target_waitstatus): Likewise.
2600 * target.h: Do not include target-common.h and
2601 include target/resume.h, target/wait.h and
2602 target/waitstatus.h.
2603 * target/resume.h: New file.
2604 * target/wait.h: New file.
2605 * target/waitstatus.h: New file.
2606 * target/waitstatus.c: New file.
2607
12696c10
PA
26082013-08-19 Pedro Alves <palves@redhat.com>
2609
2610 * linux-nat.c (linux_test_for_tracefork)
2611 (linux_test_for_tracesysgood, linux_child_follow_fork)
2612 (lin_lwp_attach_lwp, linux_nat_resume): Don't block child signals.
2613 (linux_nat_wait_1): Extend comment.
2614 (linux_async_pipe): Add comment.
2615
ba89f962
KB
26162013-08-15 Kevin Buettner <kevinb@redhat.com>
2617
2618 * rl78-tdep.c (RL78_RAW_PC_REGNUM): New enum.
2619 (RL78_PC_REGNUM): Move to list of pseudo-register enums.
2620 (rl78_register_type, rl78_register_name, rl78_register_reggroup_p):
2621 Update to account for fact that PC is now a pseudo-register.
2622 (rl78_pseudo_register_write, rl78_pseudo_register_read): Add
2623 cases for RL78_PC_REGNUM.
2624
35ab155d
MB
26252013-08-15 Muhammad Bilal <mbilal@codesourcery.com>
2626
2627 PR cli/15841
2628 * top.c (quit_force): Skip writing history file
2629 if input is not from terminal.
2630
0d031856
TT
26312013-08-14 Tom Tromey <tromey@redhat.com>
2632
2633 * remote.c (struct remote_state) <echo_nextthread, nextthread,
2634 resultthreadlist>: New fields.
2635 (OPAQUETHREADBYTES, threadref, MAXTHREADLISTRESULTS): Move earlier.
2636 (remote_get_threadlist, remote_threadlist_iterator): Use
2637 new fields. Remove static variables.
2638
ee154bee
TT
26392013-08-14 Tom Tromey <tromey@redhat.com>
2640
2641 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p,
2642 remote_watch_data_address>: New fields.
2643 (remote_stopped_by_watchpoint_p, remote_watch_data_address): Remove.
2644 (process_stop_reply, remote_wait_as)
2645 (remote_check_watch_resources, remote_stopped_data_address): Update.
2646
88b496c3
TT
26472013-08-14 Tom Tromey <tromey@redhat.com>
2648
2649 * remote.c (struct remote_state) <async_client_callback,
2650 async_client_context>: New fields.
2651 (async_client_callback, async_client_context): Remove.
2652 (remote_async_serial_handler, remote_async): Update.
2653
2f65bcb7
TT
26542013-08-14 Tom Tromey <tromey@redhat.com>
2655
2656 * remote.c (sizeof_pkt): Remove.
2657 (remote_trace_find): Use rs->buf_size, not sizeof_pkt.
2658
b80fafe3
TT
26592013-08-14 Tom Tromey <tromey@redhat.com>
2660
2661 * remote.c (struct remote_state) <use_threadinfo_query,
2662 use_threadextra_query>: New fields.
2663 (remote_threads_info, remote_threads_extra_info)
2664 (remote_open_1): Update.
2665
8e88304f
TT
26662013-08-14 Tom Tromey <tromey@redhat.com>
2667
2668 * remote.c (struct remote_state) <finished_object,
2669 finished_annex, finished_offset>: New fields.
2670 (remote_read_qxfer): Use remote_state fields; remove static
2671 variables.
2672
280ceea3
TT
26732013-08-14 Tom Tromey <tromey@redhat.com>
2674
2675 * remote.c (struct remote_state) <last_sent_step>:
2676 New field.
2677 (last_sent_step): Remove.
2678 (remote_resume, remote_wait_as): Update.
2679
b73be471
TT
26802013-08-14 Tom Tromey <tromey@redhat.com>
2681
2682 * remote.c (struct remote_state) <last_sent_signal>:
2683 New field.
2684 (last_sent_signal): Remove.
2685 (new_remote_state, remote_resume, remote_wait_as): Update.
2686
5e4a05c4
TT
26872013-08-14 Tom Tromey <tromey@redhat.com>
2688
2689 * remote.c (struct remote_state) <last_program_signals_packet>:
2690 New field.
2691 (last_program_signals_packet): Remove.
2692 (remote_program_signals, remote_open_1): Update.
2693
747dc59d
TT
26942013-08-14 Tom Tromey <tromey@redhat.com>
2695
2696 * remote.c (struct remote_state) <last_pass_packet>:
2697 New field.
2698 (last_pass_packet): Remove.
2699 (remote_pass_signals, remote_open_1): Update.
2700
262e1174
TT
27012013-08-14 Tom Tromey <tromey@redhat.com>
2702
2703 * remote.c (struct remote_state) <remote_traceframe_number>:
2704 New field.
2705 (remote_traceframe_number): Remove.
2706 (new_remote_state, remote_open_1, set_remote_traceframe)
2707 (remote_trace_find): Update.
2708
47f8a51d
TT
27092013-08-14 Tom Tromey <tromey@redhat.com>
2710
2711 * remote.c (struct remote_state) <general_thread, continue_thread>:
2712 New fields.
2713 (general_thread, continue_thread): Remove.
2714 (record_currthread, set_thread, set_general_process)
2715 (remote_open_1, extended_remote_attach_1, remote_wait_as)
2716 (extended_remote_mourn_1): Update.
2717
5d93a237
TT
27182013-08-14 Tom Tromey <tromey@redhat.com>
2719
2720 * remote.c (struct remote_state) <remote_desc>: New field.
2721 (remote_desc): Remove.
2722 (remote_threads_info, remote_threads_extra_info, remote_close)
2723 (send_interrupt_sequence, remote_start_remote, remote_open_1)
2724 (readchar, remote_xfer_partial, remote_rcmd, packet_command)
2725 (remote_hostio_send_command, remote_file_put, remote_file_get)
2726 (remote_file_delete, remote_can_async_p, remote_is_async_p)
2727 (remote_async, remote_new_objfile, set_range_stepping): Update.
2728
cf792862
TT
27292013-08-14 Tom Tromey <tromey@redhat.com>
2730
2731 * remote.c (remote_state): Now a pointer.
2732 (get_remote_state_raw): Update.
2733 (new_remote_state): New function.
2734 (_initialize_remote): Use new_remote_state.
2735
dc473cfb
TT
27362013-08-14 Tom Tromey <tromey@redhat.com>
2737
2738 * remote.c (remote_protocol_features): Now const.
2739
85ec6ce7
TT
27402013-08-14 Tom Tromey <tromey@redhat.com>
2741
2742 * remote.c (crc32_table, crc32): Remove.
2743 (remote_verify_memory): Use xcrc32.
2744
73033f12
SDJ
27452013-08-13 Sergio Durigan Junior <sergiodj@redhat.com>
2746
2747 * value.h (create_internalvar_type_lazy): Adjust prototype
2748 declaration.
2749
5c30d39a
AB
27502013-08-13 Andrew Burgess <aburgess@broadcom.com>
2751
2752 * common/format.c (parse_format_string): Don't allow '#' flag for
2753 pointer arguments in format string.
2754
1a66331e
PM
27552013-08-13 Pierre Muller <muller@sourceware.org>
2756
fde605f3 2757 * utils.c (init_page_info): Only call tgetnum function
1a66331e
PM
2758 if rl_get_screen_size did not return useful values.
2759
b4013987
AA
27602013-08-12 Ali Anwar <ali_anwar@codesourcery.com>
2761
2762 PR breakpoints/15117
2763 * linespec.c (linespec_parse_basic): Check for convenience
2764 variable or history value while parsing.
2765
959b6a66
SDJ
27662013-08-12 Sergio Durigan Junior <sergiodj@redhat.com>
2767
2768 Revert implementation of gdbarch_gdb_signal_{to,from}_target for
2769 AVR.
2770 * avr-tdep.c: Remove include of "linux-tdep.h". Remove enum with
2771 different signals between the generic Linux kernel implementation
2772 and AVR's.
2773 (avr_linux_gdb_signal_from_target): Delete.
2774 (avr_linux_gdb_signal_to_target): Delete.
2775 (avr_gdbarch_init): Don't set gdbarch_gdb_signal_{to,from}_target.
2776
24a55014
DE
27772013-08-09 Doug Evans <dje@google.com>
2778
2779 * dwarf2read.c (create_addrmap_from_index): Ignore bad address table
2780 entries.
2781
eb14d406
SDJ
27822013-08-09 Sergio Durigan Junior <sergiodj@redhat.com>
2783
2784 * linux-tdep.c: Define enum with generic signal numbers.
2785 (linux_gdb_signal_from_target): New function.
2786 (linux_gdb_signal_to_target): Likewise.
2787 (linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
2788 methods to the functions above.
2789 * linux-tdep.h (linux_gdb_signal_from_target): New prototype.
2790 (linux_gdb_signal_to_target): Likewise.
2791 * alpha-linux-tdep.c: Define new enum with signals different
2792 from generic Linux kernel.
2793 (alpha_linux_gdb_signal_from_target): New function.
2794 (alpha_linux_gdb_signal_to_target): Likewise.
2795 (alpha_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
2796 with the functions mentioned above.
2797 * avr-tdep.c: Define enum with differences between Linux kernel
2798 and AVR signals.
2799 (avr_linux_gdb_signal_from_target): New function.
2800 (avr_linux_gdb_signal_to_target): Likewise.
2801 (avr_gdbarch_init): Set gdbarch_gdb_signal_{to,from}_target to
2802 the functions mentioned above.
2803 * sparc-linux-tdep.c: Define enum with differences between SPARC
2804 and generic Linux kernel signal numbers.
2805 (sparc32_linux_gdb_signal_from_target): New function.
2806 (sparc32_linux_gdb_signal_to_target): Likewise.
2807 (sparc32_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
2808 to the functions defined above.
2809 * xtensa-linux-tdep.c: Define enum with differences between
2810 Xtensa and Linux kernel generic signals.
2811 (xtensa_linux_gdb_signal_from_target): New function.
2812 (xtensa_linux_gdb_signal_to_target): Likewise.
2813 (xtensa_linux_init_abi): Set gdbarch_gdb_signal_to_target
2814 to the functions defined above.
2815 * mips-linux-tdep.c: Define enum with differences between
2816 signals in MIPS and Linux kernel generic ones.
2817 (mips_gdb_signal_to_target): New function.
2818 (mips_gdb_signal_from_target): Redefine to use new enum, handle
2819 only different signals from the Linux kernel generic.
2820 (mips_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
2821 the functions defined above.
2822 * mips-linux-tdep.h (enum mips_signals): Remove.
2823
156d08c8
PA
28242013-08-09 Pedro Alves <palves@redhat.com>
2825
2826 * avr-tdep.c (XMALLOC): Delete macro.
2827 * cli/cli-dump.c (XMALLOC): Delete macro.
2828
db229724
PA
28292013-08-09 Pedro Alves <palves@redhat.com>
2830
2831 * cli/cli-dump.c: Don't include cli/cli-dump.h.
2832 (scan_expression_with_cleanup, scan_filename_with_cleanup)
2833 (fopen_with_cleanup, add_dump_command): Make static.
2834 * cli/cli-dump.h: Delete file.
2835 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to
2836 cli/cli-dump.h.
2837
3f12a589
PA
28382013-08-09 Pedro Alves <palves@redhat.com>
2839
2840 * tracepoint.c (tfile_start): Show tilde-expanded filename in
2841 error message.
2842
c718be47
PA
28432013-08-09 Pedro Alves <palves@redhat.com>
2844
156d08c8 2845 * breakpoint.c (save_breakpoints): Show tilde-expanded filename in
c718be47
PA
2846 error message.
2847
1e351ed1
PA
28482013-08-09 Pedro Alves <palves@redhat.com>
2849
2850 * gcore.c (create_gcore_bfd): Don't use tilde_expand here.
2851 (gcore_command): Use tilde_expand here, and when showing the
2852 filename to the user, show the expanded version.
2853
1ed8d800
YQ
28542013-08-09 Yao Qi <yao@codesourcery.com>
2855
2856 * stack.c (read_frame_arg): Set 'entryval_error' to NULL if
2857 'entryval' is set.
2858
47ecca85
PA
28592013-08-08 Azat Khuzhin <a3at.mail@gmail.com> (tiny change)
2860
2861 * gcore.c (create_gcore_bfd): Use tilde_expand.
2862
82a0a75f
YQ
28632013-08-08 Yao Qi <yao@codesourcery.com>
2864
2865 * frame.h (read_frame_local): Declare.
2866 * mi/mi-cmd-stack.c (list_args_or_locals): Call
2867 read_frame_local.
2868 * stack.c (read_frame_local): New.
2869
5c4aa40b
YQ
28702013-08-08 Yao Qi <yao@codesourcery.com>
2871
2872 * mi/mi-cmd-stack.c: Update comments to function
2873 list_args_or_locals.
2874
b93601f3
TT
28752013-08-07 Tom Tromey <tromey@redhat.com>
2876
2877 PR symtab/15028:
2878 * dwarf2read.c (struct process_psymtab_comp_unit_data): New.
2879 (process_psymtab_comp_unit_reader): Use it.
2880 (process_psymtab_comp_unit): Update. Add "pretend_language"
2881 argument.
2882 (dwarf2_build_psymtabs_hard): Update.
2883 (scan_partial_symbols): Pass CU's language to
2884 process_psymtab_comp_unit.
2885
fa760f46
TT
28862013-08-07 Tom Tromey <tromey@redhat.com>
2887
2888 * dwarf2read.c (dw2_get_primary_filename_reader): Remove.
2889 (dwarf2_gdb_index_functions): Update.
2890 * psymtab.c (find_symbol_file_from_partial): Remove.
2891 (psym_functions): Update.
2892 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
2893 Remove.
2894
bf6d8a91
TT
28952013-08-07 Tom Tromey <tromey@redhat.com>
2896
2897 * symfile.c (set_initial_language): Look up "main" symbol
2898 and use its language.
2899 * symtab.c (find_main_filename): Remove.
2900 * symtab.h (find_main_filename): Remove.
2901
f9125b6c
TT
29022013-08-07 Tom Tromey <tromey@redhat.com>
2903
2904 * dwarf2read.c (recursively_compute_inclusions): Add
2905 "immediate_parent" argument. Set symtab's "user" field
2906 if not set.
2907 (compute_symtab_includes): Update.
2908
fdbb204b
TT
29092013-08-07 Tom Tromey <tromey@redhat.com>
2910
2911 * linespec.c (convert_linespec_to_sals): Use maybe_add_address
2912 when adding label symbols.
2913
49de1690
UW
29142013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
2915 Ulrich Weigand <uweigand@de.ibm.com>
2916
2917 * configure.tgt (powerpc64-*-aix*): Match powerpc64 running aix.
2918 * configure.host (powerpc64-*-aix*): Likewise.
2919
b08ee99f
UW
29202013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
2921 Ulrich Weigand <uweigand@de.ibm.com>
2922
2923 * gdb_ptrace.h: Use ptrace64 instead of ptrace if HAVE_PTRACE64
2924 is defined.
2925 * rs6000-nat.c: Check for __ld_info64_ if compiling 64 BIT gdb.
2926 (rs6000_ptrace32): Call ptrace64 instead of ptrace if present.
2927 (rs6000_ptrace64): Call ptace64 instead of ptracex if present.
2928 * configure.ac: Check for ptrace64.
2929 * configure, config.in: Regenerate.
2930
fecf803e
UW
29312013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
2932 Ulrich Weigand <uweigand@de.ibm.com>
2933
2934 * aixthread.c: Call ptrace64 instead of ptracex if defined.
2935 Call ptrace64 instead of ptrace if defined.
2936 Add macro addr_ptr to take care of ptrace address argument.
2937 (pdc_read_regs): Likewise.
2938 (pdc_write_regs): Likewise.
2939 (aix_thread_resume): Likewise.
2940 (fetch_regs_kernel_thread): Likewise.
2941 (store_regs_kernel_thread): Likewise.
2942
3bb5e4a8
AB
29432013-08-07 Anton Blanchard <anton@samba.org>
2944
2945 * MAINTAINERS: Add myself to Write After Approval.
2946
12070676
TT
29472013-08-05 Tom Tromey <tromey@redhat.com>
2948
2949 * aix-thread.c (_initialize_aix_thread): Use
2950 complete_target_initialization.
2951 * bsd-uthread.c (_initialize_bsd_uthread): Use
2952 complete_target_initialization.
2953 * dec-thread.c (_initialize_dec_thread): Use
2954 complete_target_initialization.
2955 * ravenscar-thread.c (_initialize_ravenscar): Use
2956 complete_target_initialization.
2957 * sol-thread.c (_initialize_sol_thread): Use
2958 complete_target_initialization.
2959 * spu-multiarch.c (_initialize_spu_multiarch): Use
2960 complete_target_initialization.
2961
7c7b6655
TT
29622013-08-05 Tom Tromey <tromey@redhat.com>
2963
2964 * ada-exp.y (write_var_or_type): Use bound_minimal_symbol.
2965 * ada-lang.c (ada_lookup_simple_minsym): Return
2966 bound_minimal_symbol.
2967 * ada-lang.h (ada_lookup_simple_minsym): Update.
2968 * c-exp.y (variable): Use lookup_bound_minimal_symbol.
2969 * f-exp.y (variable): Use lookup_bound_minimal_symbol.
2970 * go-exp.y (variable): Use lookup_bound_minimal_symbol.
2971 * jv-exp.y (push_expression_name): Use lookup_bound_minimal_symbol.
2972 * m2-exp.y (variable): Use lookup_bound_minimal_symbol.
2973 * minsyms.c (msymbol_objfile): Remove.
2974 (lookup_minimal_symbol_internal): New function, from
2975 lookup_minimal_symbol.
2976 (lookup_minimal_symbol): Rewrite using
2977 lookup_minimal_symbol_internal.
2978 (lookup_bound_minimal_symbol): New function.
2979 * minsyms.h (msymbol_objfile): Remove.
2980 (lookup_bound_minimal_symbol): Declare.
2981 * p-exp.y (variable): Use lookup_bound_minimal_symbol.
2982 * parse.c (write_exp_msymbol): Change parameter to a
2983 bound_minimal_symbol.
2984 (write_dollar_variable): Use lookup_bound_minimal_symbol.
2985 * parser-defs.h (write_exp_msymbol): Update.
2986 * printcmd.c (address_info): Use lookup_bound_minimal_symbol.
2987 * symfile.c (simple_read_overlay_table): Use
2988 lookup_bound_minimal_symbol.
2989 * symtab.c (skip_prologue_sal): Don't use msymbol_objfile.
2990 (search_symbols): Likewise.
2991 (print_msymbol_info): Take a bound_minimal_symbol argument.
2992 (symtab_symbol_info, rbreak_command): Update.
2993 * symtab.h (struct symbol_search) <msymbol>: Change type
2994 to bound_minimal_symbol.
2995 * valops.c (find_function_in_inferior): Use
2996 lookup_bound_minimal_symbol.
2997 * value.c (value_fn_field): Use lookup_bound_minimal_symbol.
2998
934b9bac
JK
29992013-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3000
3001 Code cleanup.
3002 * remote.c (cleanup_sigint_signal_handler): Rename the declaration
3003 to ...
3004 (async_cleanup_sigint_signal_handler): ... this.
3005 (initialize_sigint_signal_handler): Remove declaration.
3006 (handle_remote_sigint): Rename the declaration to ...
3007 (async_handle_remote_sigint): ... this.
3008 (handle_remote_sigint_twice): Rename the declaration to ...
3009 (async_handle_remote_sigint_twice): ... this.
3010 (async_remote_interrupt, async_remote_interrupt_twice)
3011 (remote_interrupt): Remove the declarations.
3012 (remote_interrupt_twice): Rename the declaration ...
3013 (sync_remote_interrupt_twice): ... this.
3014 (sigint_remote_twice_token): Rename the variable to ...
3015 (async_sigint_remote_twice_token): ... this.
3016 (sigint_remote_token): Rename the variable to ...
3017 (async_sigint_remote_token): ... this.
3018 (initialize_sigint_signal_handler): Rename the function to ...
3019 (async_initialize_sigint_signal_handler): ... this. Update the name
3020 inside.
3021 (handle_remote_sigint): Rename the function to ...
3022 (async_handle_remote_sigint): ... this. Update the names inside.
3023 (handle_remote_sigint_twice): Rename the function to ...
3024 (async_handle_remote_sigint_twice): ... this. Update the names inside.
3025 (cleanup_sigint_signal_handler): Rename the function to ...
3026 (async_cleanup_sigint_signal_handler): ... this.
3027 (remote_interrupt): Rename the function to ...
3028 (sync_remote_interrupt): this. Update the names inside.
3029 (remote_interrupt_twice): Rename the function to ...
3030 (sync_remote_interrupt_twice): this. Update the names inside.
3031 (remote_terminal_inferior, remote_terminal_ours, remote_wait_as)
3032 (_initialize_remote): Update the names inside.
3033
3a1115a0
TT
30342013-08-02 Tom Tromey <tromey@redhat.com>
3035
3036 PR symtab/15719:
3037 * breakpoint.c (update_watchpoint, watchpoint_check)
3038 (watch_command_1): Update.
3039 * eval.c (fetch_subexp_value): Add "preserve_errors"
3040 parameter.
3041 * ppc-linux-nat.c (check_condition): Update.
3042 * value.h (fetch_subexp_value): Update.
3043
58b19776
AB
30442013-08-02 Andrew Burgess <aburgess@broadcom.com>
3045
3046 * mi/mi-interp.c (mi_interpreter_resume): Remove call to
3047 add_file_handler.
3048
ec94af83
DE
30492013-08-01 Doug Evans <dje@google.com>
3050
7ee85ab1
DE
3051 PR symtab/15691
3052 * dwarf2read.c (struct dwarf2_per_cu_data): New member tu_read.
3053 (fill_in_sig_entry_from_dwo_entry): Reorganize asserts.
3054 Add assert of sig_entry->dwo_unit == NULL.
3055 (lookup_dwo_signatured_type): Don't assign TU to a DWO if the TU
3056 had already been read.
3057 (read_signatured_type): Set per_cu.tu_read.
3058
b846d303
DE
3059 PR symtab/15695
3060 * valops.c (value_struct_elt): Add missing call to check_typedef.
3061 (value_find_oload_method_list): Ditto.
3062
b52109bc
DE
3063 * symtab.c (do_free_search_symbols_cleanup): Change arg to,
3064 effectively, struct symbol_search **.
3065 (make_cleanup_free_search_symbols): Change arg to struct
3066 symbol_search **. All callers updated.
3067 (compare_search_syms): Compare symtab file name and block as well.
3068 (search_symbols_equal): New function.
3069 (sort_search_symbols_remove_dups): Renamed from sort_search_symbols.
3070 New args new_head, new_tail. Result is now void. Remove dups after
3071 sorting the symbols.
3072 (search_symbols): Sort all found symbols once, after all have been
3073 found, and remove duplicates. Simplify cleanup tracking of result.
3074 * symtab.h (make_cleanup_free_search_symbols): Update prototype.
3075
ec94af83
DE
3076 Further workarounds for binutils/15021.
3077 * dwarf2read.c (recursively_compute_inclusions): Change type of result
3078 parameter to VEC (symtab_ptr) **. New parameter all_type_symtabs.
3079 Watch for duplicate symtabs coming from type units.
3080 (compute_symtab_includes): Update call to
3081 recursively_compute_inclusions. Build vector of included symtabs
3082 instead of per_cus.
3083 * symtab.h (symtab_ptr): New typedef.
3084 (DEF_VEC_P (symtab_ptr)): New VEC type.
3085 * linespec.c (symtab_p): Delete. All uses updated to use symtab_ptr
3086 instead.
3087
b2ae85cf
AB
30882013-08-01 Andrew Burgess <aburgess@broadcom.com>
3089
3090 * cli/cli-script.c (script_from_file): Remove use of
3091 error_pre_print.
3092 * main.c (captured_main): Remove use of error_pre_print and
3093 quit_pre_print.
3094 * utils.c (error_pre_print, quit_pre_print): Remove.
3095 * utils.h (error_pre_print, quit_pre_print): Likewise.
3096
645eab03
YQ
30972013-08-01 Yao Qi <yao@codesourcery.com>
3098
3099 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Parse argv
3100 with mi_getopt.
3101 (mi_cmd_stack_list_variables): Likewise.
3102
16f92dd4
AB
31032013-07-31 Andrew Burgess <aburgess@broadcom.com>
3104
3105 * exceptions.c (deprecated_throw_reason): Remove.
3106 * exceptions.h (deprecated_throw_reason): Remove.
3107
13f78033
AB
31082013-07-31 Andrew Burgess <aburgess@broadcom.com>
3109
3110 * remote-mips.c (mips_error): Replace use of
3111 deprecated_throw_reason with throw_verror. Use the error message
3112 passed to mips_error as the error message for throw_verror.
3113
039e3c22
AB
31142013-07-31 Andrew Burgess <aburgess@broadcom.com>
3115
3116 * monitor.c (monitor_interrupt_query): Replace use of
3117 deprecated_throw_reason with quit.
3118 * nto-procfs.c (interrupt_query): Likewise.
3119 * remote-fileio.c (remote_fileio_sig_exit): Likewise.
3120 * remote-mips.c (mips_kill): Likewise.
3121 * remote.c (interrupt_query): Likewise.
3122
8150913b
AB
31232013-07-31 Andrew Burgess <aburgess@broadcom.com>
3124
3125 * utils.c (internal_verror): Replace use of deprecated_throw_reason
3126 with call to fatal.
3127
de74e63a
YQ
31282013-07-31 Pedro Alves <pedro@codesourcery.com>
3129 Yao Qi <yao@codesourcery.com>
3130
3131 * tracepoint.c (trace_dump_command): Select the current frame.
3132
247f5c4f
DE
31332013-07-30 Doug Evans <dje@google.com>
3134
3135 * dwarf2read.c (process_queue): Add type signature to debug output.
3136
11b4b7cc
AB
31372013-07-30 Andrew Burgess <aburgess@broadcom.com>
3138
3139 * value.c (value_fetch_lazy): Mark optimized out values as such
3140 rather than raising an error.
3141
b0c54aa5
AB
31422013-07-30 Andrew Burgess <aburgess@broadcom.com>
3143
3144 * value.c (value_fetch_lazy): Ensure parent value is not lazy
3145 before checking which bits of the parent, not the child, value are
3146 valid.
3147
97c85fc6
MB
31482013-07-30 Muhammad Bilal <mbilal@codesorcery.com>
3149
3150 PR gdb/15715
3151 * top.c: Include "filenames.h".
3152 (set_history_filename): New function.
3153 (init_main): Install it as set hook of the "set history filename"
3154 command.
3155
ff39bb5e
SA
31562013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
3157
3158 * dwarf2read.c (dwarf2_get_ref_die_offset): Constify struct
3159 attribute parameter.
3160 (dwarf2_const_value_data): Constify struct attribute parameter.
3161 (dwarf2_const_value): Constify struct attribute parameter.
3162 (dwarf2_const_value_attr): Constify struct attribute parameter.
3163 (lookup_die_type): Constify struct attribute parameter.
3164 (dwarf2_get_attr_constant_value): Constify struct attribute parameter.
3165 (follow_die_ref_or_sig): Constify struct attribute parameter.
3166 (follow_die_ref): Constify struct attribute parameter.
3167 (follow_die_sig): Constify struct attribute parameter.
3168 (get_DW_AT_signature_type): Constify struct attribute parameter.
3169 (get_type_unit_group): Constify struct attribute parameter.
3170 (fill_in_loclist_baton): Constify struct attribute parameter.
3171 (dwarf2_symbol_mark_computed): Constify struct attribute parameter.
3172 (type_unit_group): Constify struct attribute parameter.
3173
6e5a29e1
SA
31742013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
3175
3176 * dwarf2read.c (attr_form_is_block): Make argument const.
3177 (attr_form_is_section_offset): Make argument const.
3178 (attr_form_is_constant): Make argument const.
3179 (attr_form_is_ref): Make argument const.
3180
7771576e
SA
31812013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
3182
3183 * dwarf2read.c (attr_is_ref): Rename to attr_form_is_ref.
3184 All uses updated.
3185 (attr_form_is_ref): Moved below attr_form_is_constant.
3186
a94e8645
DE
31872013-07-29 Doug Evans <dje@google.com>
3188
bb5291d0
DE
3189 * main.c (captured_command_loop): Tweak comment.
3190
b5419e49
DE
3191 * target.c (target_async_permitted_1): Fix comment.
3192
b2d23133
DE
3193 * symtab.c (iterate_over_some_symtabs): Add comment.
3194
a94e8645
DE
3195 * symtab.c (iterate_over_some_symtabs): Fix indentation.
3196
7a60ad40
YQ
31972013-07-27 Yao Qi <yao@codesourcery.com>
3198
3199 * NEWS: Mention that GDBserver now supports hardware
3200 watchpoints on the MIPS GNU/Linux target.
3201
aaee2056
YQ
32022013-07-27 Yao Qi <yao@codesourcery.com>
3203
3204 * Makefile.in (HFILES_NO_SRCDIR): Add
3205 common/mips-linux-watch.h.
3206 (mips-linux-watch.o): New rule.
3207 * common/mips-linux-watch.c: New.
3208 * common/mips-linux-watch.h: New.
3209 * config/mips/linux.mh (NATDEPFILES): Add mips-linux-watch.o
3210 * mips-linux-nat.c: Include mips-linux-watch.h.
3211 (W_BIT, R_BIT, I_BIT, W_MASK, R_MASK, I_MASK, IRW_MASK): Move
3212 to common/mips-linux-watch.h.
3213 (MAX_DEBUG_REGISTER): Likewise.
3214 (enum pt_watch_style): Likewise.
3215 (struct mips32_watch_regs): Likewise.
3216 (struct mips64_watch_regs): Likewise.
3217 (struct pt_watch_regs): Likewise.
3218 (struct mips_watchpoint): Likewise.
3219 (mips_linux_watch_get_irw_mask): Move to
3220 common/mips-linux-watch.c.
3221 (get_reg_mask, mips_linux_watch_get_num_valid): Likewise.
3222 (mips_linux_watch_get_watchlo): Likewise.
3223 (mips_linux_watch_set_watchlo): Likewise.
3224 (mips_linux_watch_get_watchhi): Likewise.
3225 (mips_linux_watch_set_watchhi): Likewise.
3226 (mips_linux_read_watch_registers): Likewise.
3227 (mips_linux_watch_type_to_irw): Likewise.
3228 (mips_linux_stopped_data_address, fill_mask): Likewise.
3229 (mips_linux_watch_try_one_watch): Likewise.
3230 (mips_linux_watch_populate_regs): Likewise.
3231
b3436450
YQ
32322013-07-27 Yao Qi <yao@codesourcery.com>
3233
3234 * mips-linux-nat.c (get_irw_mask): Rename to ...
3235 (mips_linux_watch_get_irw_mask): ... this. Rename parameter
3236 'set' to 'n'. Update function comment. All callers changed.
3237 (get_reg_mask): Rename parameter 'set' to 'n'. Update
3238 function comment. All callers changed.
3239 (get_num_valid): Rename to ...
3240 (mips_linux_watch_get_num_valid): ... this. Rename parameter
3241 'set' to 'n'. Update function comment. All callers changed.
3242 (get_watchlo): Rename to ...
3243 (mips_linux_watch_get_watchlo): ... this. Rename parameter
3244 'set' to 'n'. Update function comment. All callers changed.
3245 (set_watchlo): Rename to ...
3246 (mips_linux_watch_set_watchlo): ... this. Rename parameter
3247 'set' to 'n'. Update function comment. All callers changed.
3248 (get_watchhi): Rename to ...
3249 (mips_linux_watch_get_watchhi): ... this. Update function
3250 comment. All callers changed.
3251 (set_watchhi): Rename to ...
3252 (mips_linux_watch_set_watchhi): ... this. Update function
3253 comment. All callers changed.
3254 (mips_linux_read_watch_registers): Update function comment.
3255 Add new parameters 'lwpid', 'watch_readback', and
3256 'watch_readback_valid'. Update.
3257 (type_to_irw): Rename to ...
3258 (mips_linux_watch_type_to_irw): ... this. Update function
3259 comment. All callers changed.
3260 (fill_mask): Update function comment.
3261 (try_one_watch): Rename to ...
3262 (mips_linux_watch_try_one_watch): ... this. Change the type
3263 of parameter 'irw' from 'unsigned' to 'uint32_t'.
3264 (populate_regs_from_watches): Rename to ...
3265 (mips_linux_watch_populate_regs): ... this. Add parameter
3266 'current_watches'. All callers changed.
3267
9be14b81
YQ
32682013-07-27 Yao Qi <yao@codesourcery.com>
3269
3270 * mips-linux-nat.c (MAX_DEBUG_REGISTER): Move it earlier in
3271 the code.
3272 (PTRACE_SET_WATCH_REGS, enum pt_watch_style): Remove.
3273 (struct mips32_watch_regs, struct mips64_watch_regs): Remove.
3274 (struct pt_watch_regs): Likewise.
3275 [!PTRACE_GET_WATCH_REGS] (PTRACE_SET_WATCH_REGS): New macro.
3276 [!PTRACE_GET_WATCH_REGS] (enum pt_watch_style): New.
3277 [!PTRACE_GET_WATCH_REGS] (struct mips32_watch_regs): New.
3278 [!PTRACE_GET_WATCH_REGS] (struct mips64_watch_regs): New.
3279 [!PTRACE_GET_WATCH_REGS] (struct pt_watch_regs): New.
3280
de6f69ad
YQ
32812013-07-27 Yao Qi <yao@codesourcery.com>
3282
3283 * breakpoint.h: Include break-common.h.
3284 (enum target_hw_bp_type): Move to ...
3285 * common/break-common.h: ... here. New.
3286
6f64ef53
PA
32872013-07-26 Cyril Nikolaev <cyril@nichtverstehen.de>
3288
3289 * inflow.c (terminal_init_inferior_with_pgrp): Save inferior
3290 process group regardless of having tty on stdin.
3291
6107e809
DE
32922013-07-25 Doug Evans <dje@google.com>
3293
3294 * linux-fork.h (detach_fork): Delete.
3295
7fdc1521
TT
32962013-07-25 Tom Tromey <tromey@redhat.com>
3297
3298 PR remote/15256, PR remote/15266:
3299 * bfd-target.c (target_bfd_reopen): Initialize to_magic.
3300 * monitor.c (monitor_detach): Use unpush_target.
3301 * remote-m32r-sdi.c (m32r_detach): Use unpush_target.
3302 * remote-mips.c (mips_detach): Use unpush_target. Don't
3303 call mips_close.
3304 * remote-sim.c (gdbsim_detach): Use unpush_target.
3305 * target.c (pop_target): Remove.
3306 (pop_all_targets_above): Don't call target_close.
3307 (target_close): Assert that the target is unpushed.
3308 * target.h (pop_target): Don't declare.
3309 * tracepoint.c (tfile_open): Use unpush_target.
3310
c22a2b88
TT
33112013-07-25 Tom Tromey <tromey@redhat.com>
3312
3313 * linux-thread-db.c (init_thread_db_ops): Call
3314 complete_target_initialization.
3315 (_initialize_thread_db): Don't call add_target.
3316 * target.c (complete_target_initialization): New function.
3317 (add_target_with_completer): Call it.
3318 * target.h (complete_target_initialization): Declare.
3319
cbb6aada
MK
33202013-07-25 Mark Kettenis <kettenis@gnu.org>
3321
3322 * hppa-tdep.h (enum hppa_regnum): Add members for all space registers.
3323 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Add comment.
3324 (HPPANBSD_SIZEOF_GREGS): New define.
3325 (hppaobsd_supply_gregset): Handle additional registers.
3326 * hppabsd-nat.c (hppabsd_gregset_supplies_p): Adjust to indicate
3327 we provide more registers now.
3328 (hppabsd_supply_gregset): Supply additional registers.
3329 (hppabsd_collect_gregset): Collect additional registers.
3330
17767988
MK
33312013-07-25 Mark Kettenis <kettenis@gnu.org>
3332
3333 * hppabsd-tdep.c: Include "dwarf2-frame.h".
3334 (hppabsd_dwarf2_frame_init_reg): New function.
3335 (hppabsd_init_abi): Hook in the DWARF CFI frame unwinder.
3336
fdc8aae8
AB
33372013-07-25 Andrew Burgess <aburgess@broadcom.com>
3338
3339 * mi/mi-main.c (output_register): Make MI 'r' format use standard
3340 'z' format code. Remove error for optimized out values, standard
3341 code will handle these fine.
3342
6fbe845e
AB
33432013-07-25 Andrew Burgess <aburgess@broadcom.com>
3344
3345 * NEWS: Mention new 'z' formatter.
3346 * printcmd.c (print_scalar_formatted): Add new 'z' formatter.
3347 (_initialize_printcmd): Mention 'z' formatter in help text of the
3348 'x' command.
3349
3373342d
MR
33502013-07-24 Maciej W. Rozycki <macro@codesourcery.com>
3351
3352 * mips-tdep.c (micromips_deal_with_atomic_sequence): Correct
3353 formatting.
3354
25f9533e
SDJ
33552013-07-24 Sergio Durigan Junior <sergiodj@redhat.com>
3356
3357 * breakpoint.c (create_longjmp_master_breakpoint): Check if probe
3358 interface can evaluate arguments. Fallback to the old mode if it
3359 cannot.
3360 (create_exception_master_breakpoint): Likewise.
3361 * elfread.c (elf_can_evaluate_probe_arguments): New function.
3362 (struct sym_probe_fns elf_probe_fns): Export function above to the
3363 probe interface.
3364 * probe.c (can_evaluate_probe_arguments): New function.
3365 * probe.h (struct probe_ops) <can_evaluate_probe_arguments>: New
3366 function pointer.
3367 (can_evaluate_probe_arguments): New function prototype.
3368 * solib-svr4.c (svr4_create_solib_event_breakpoints): Check if
3369 probe interface can evaluate arguments. Fallback to the old mode
3370 if it cannot.
3371 * stap-probe.c (stap_get_probe_argument_count): Check if probe
3372 interface can evaluate arguments. Warning the user if it cannot.
3373 (stap_can_evaluate_probe_arguments): New function.
3374 (struct probe_ops stap_probe_ops): Export function above to the
3375 probe interface.
3376 * symfile.h (struct sym_probe_fns) <can_evaluate_probe_arguments>:
3377 New function pointer.
3378
3360c0bf
LM
33792013-07-24 Luis Machado <lgustavo@codesourcery.com>
3380
3381 * Makefile.in (SFILES): Add common/target-common.c.
3382 Add common/target-common.h to headers.
3383 (COMMON_OBS): Add target-common.o.
3384 (target-common.o): New target.
3385 * linux-nat.h (resume_kind): Move to common/target-common.h.
3386 * target.c (target_waitstatus_to_string): Move to
3387 common/target-common.c.
3388 * target.h: Include target-common.h.
3389 (target_waitkind): Move to common/target-common.h.
3390 (target_waitstatus): Likewise.
3391 (TARGET_WNOHANG): Likewise.
3392 * common/target-common.c: New file.
3393 * common/target-common.h: New file.
3394
6656a72d
DE
33952013-07-24 Doug Evans <dje@google.com>
3396
3397 * dwarf2read.c (lookup_dwo_cutu): Change missing DWO complaint to
3398 a warning.
3399
6df81a63
YQ
34002013-07-23 Yao Qi <yao@codesourcery.com>
3401
3402 * i386-tdep.c (i386_in_stack_tramp_p): Remove unused
3403 parameter 'gdbarch'.
3404 (i386_stack_tramp_frame_sniffer): Caller update.
3405 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Remove
3406 parameter 'gdbarch' and 'target'.
3407 (i386_linux_core_read_description): Caller update.
3408 * amd64-linux-tdep.c (amd64_linux_core_read_description):
3409 Likewise.
3410 * i386-linux-tdep.h (i386_linux_core_read_xcr0): Update
3411 declaration.
3412
365156ad
TT
34132013-07-23 Tom Tromey <tromey@redhat.com>
3414
3415 * dwarf2read.c (init_cutu_and_read_dies): Revert patch from
3416 2013-07-22.
3417
046ac79f
JK
34182013-07-22 Doug Evans <dje@google.com>
3419
3420 * exec.h (remove_target_sections): Delete arg abfd.
66cbcda4
JK
3421 * exec.c (exec_close): Update call to remove_target_sections.
3422 (remove_target_sections): Delete arg abfd.
046ac79f
JK
3423 * solib.c (update_solib_list): Ditto.
3424 (reload_shared_libraries_1): Ditto.
3425 (clear_solib): Ditto, and unconditionally call remove_target_sections.
66cbcda4
JK
3426 * target.h (struct target_section): Rename key to owner.
3427 All uses updated.
046ac79f 3428
29b2cc46
TT
34292013-07-22 Tom Tromey <tromey@redhat.com>
3430
3431 * solib-som.c (som_open_symbol_file_object): Call do_cleanups.
3432
d1160018
TT
34332013-07-22 Tom Tromey <tromey@redhat.com>
3434
3435 * dwarf2read.c (init_cutu_and_read_dies): Remove 'free_cu_cleanup'.
3436 Simplify cleanup handling.
3437
2f324bf6
TT
34382013-07-22 Tom Tromey <tromey@redhat.com>
3439
3440 * dwarf2read.c (dwarf_decode_line_header): Call do_cleanups
3441 on all return paths.
3442
e23b9d6e
UW
34432013-07-22 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3444
3445 * ppc-linux-nat.c (PPC_DEBUG_FEATURE_DATA_BP_DAWR): New define.
3446 (ppc_linux_region_ok_for_hw_watchpoint): Add checking to use the new
3447 DAWR interface for longer ranges hardware watchpoint (up to 512 bytes).
3448
1cf55f60
PM
34492013-07-22 Phil Muldoon <pmuldoon@redhat.com>
3450
3451 * top.c (print_gdb_version): Add help, apropos description and
3452 url to online documentation.
3453
fa876972
HZ
34542013-07-19 Hui Zhu <hui@codesourcery.com>
3455
3456 PR gdb/15692
3457 * mi/mi-cmd-break.c (mi_argv_to_format): Handle double quotes.
3458
1527aea8
YQ
34592013-07-19 Yao Qi <yao@codesourcery.com>
3460
3461 * target.c (update_current_target): Change the default action
3462 of 'to_traceframe_info' from tcomplain to return_zero.
3463 * target.h (struct target_ops) <to_traceframe_info>: Add more
3464 comments.
3465 * valops.c (read_value_memory): Call
3466 traceframe_available_memory unconditionally.
3467
886f230e
YQ
34682013-07-18 Yao Qi <yao@codesourcery.com>
3469
3470 * coffread.c (coff_symfile_read): Iterate over minimal symbols,
3471 if the name is prefixed by "__imp_" or "_imp_", look for minimal
3472 symbol without prefix. If found, set its type to
3473 'mst_solib_trampoline'.
3474
16419bae
DE
34752013-07-17 Doug Evans <dje@google.com>
3476
e7045703
DE
3477 * NEWS: Mention "set print raw frame-arguments".
3478 * gdbcmd.h (setprintrawlist, showprintrawlist): Declare.
3479 * stack.c (print_raw_frame_arguments): New static global.
3480 (print_frame_arg): Set opts.raw from print_raw_frame_arguments.
3481 (_initialize_stack): New command "set/show print raw frame-arguments".
3482 * valprint.c (setprintrawlist, showprintrawlist): New globals.
3483 (set_print_raw, show_print_raw): New functions.
3484 (_initialize_valprint): New prefix command "set/show print raw".
3485 * valprint.h (value_print_options): Improve comments.
3486
453e48a5
DE
3487 * cli/cli-cmds.c (init_cmd_lists): Delete unnecessary initialization
3488 of all *list variables.
3489
16419bae
DE
3490 * gdbcmd.h (togglelist): Delete.
3491 * cli/cli-cmds.c (togglelist): Delete.
3492 (init_cmd_lists): Update.
3493 * cli/cli-cmds.h (togglelist): Delete.
3494
626f2d1c
TT
34952013-07-17 Tom Tromey <tromey@redhat.com>
3496
3497 * dwarf2read.c (dwarf2_per_objfile_free): Clear
3498 dwarf2_per_objfile.
3499
57e6060e
DE
35002013-07-16 Doug Evans <dje@google.com>
3501
3502 * nto-tdep.c (nto_relocate_section_addresses): Update,
3503 target_section.bfd deleted.
3504 * ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Ditto.
3505 * s390-tdep.c (s390_load): Ditto.
3506 * solib-aix.c (solib_aix_relocate_section_addresses): Ditto.
3507
5ea5559b
AB
35082013-07-16 Andrew Burgess <aburgess@broadcom.com>
3509
3510 * common/format.c (parse_format_string): Add checks for NULL
3511 character before calling strchr.
3512
2b2848e2
DE
35132013-07-16 Doug Evans <dje@google.com>
3514
2c571006
DE
3515 * solist.h (target_so_ops.find_and_open_solib): Clarify usage of
3516 temp_pathname argument.
3517 * nto-tdep.c (nto_find_and_open_solib): Fix setting of temp_pathname
3518 when opening the file fails.
3519
2b2848e2
DE
3520 * target.h (struct target_section): Delete member bfd.
3521 All users updated to use the_bfd_section->owner instead.
3522 * exec.c (add_to_section_table): Assert bfd is expected value.
3523 Remove initialization of target_section.bfd.
3524 (remove_target_sections): Update.
3525 (section_table_available_memory): Update.
3526 (section_table_xfer_memory_partial): Update.
3527 (print_section_info): Update.
3528 (exec_set_section_address): Update.
3529 * record-full.c (record_full_core_xfer_partial): Update.
3530 * solib-svr4.c (svr4_relocate_section_addresses): Update.
3531 * solib-target.c (solib_target_relocate_section_addresses): Update.
3532 * symfile.c (build_section_addr_info_from_section_table): Update.
3533 * target.c (memory_xfer_live_readonly_partial): Update.
3534 (memory_xfer_partial_1): Update.
3535
926bf92d
UW
35362013-07-15 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3537
3538 * ppc-linux-nat.c: Since the new PowerPC specific ptrace interface is
3539 now available for embedded (BookE) and server (BookS) processors,
3540 correct mentions of 'booke' and adjust comments accordingly in order to
3541 avoid confusion. Rename struct 'booke_debug_info' to 'hwdebug_info'.
3542 (have_ptrace_booke_interface): Rename function and variable
3543 'have_ptrace_booke_interface' to 'have_ptrace_hwdebug_interface'.
3544 Rename struct 'booke_debug_info' to 'hwdebug_info'. Update all uses.
3545 (booke_cmp_hw_point): Rename function 'booke_cmp_hw_point' to
3546 'hwdebug_point_cmp'. Update all uses.
3547 (booke_find_thread_points_by_tid): Rename function
3548 'booke_find_thread_points_by_tid' to
3549 'hwdebug_find_thread_points_by_tid'. Update all uses.
3550 (booke_insert_point): Rename function 'booke_insert_point' to
3551 'hwdebug_insert_point'. Update all uses.
3552 (booke_remove_point): Rename function 'booke_remove_point' to
3553 'hwdebug_remove_point'. Update all uses.
3554
d929bc19
MR
35552013-07-15 Maciej W. Rozycki <macro@codesourcery.com>
3556
3557 * mips-tdep.c (mips_gdbarch_init): Replace hardcoded magic
3558 numbers with enum values.
3559
054e8d9e
AA
35602013-07-15 Ali Anwar <ali_anwar@codesourcery.com>
3561
3562 PR threads/13217
3563 * thread.c (thread_apply_all_command): Check for valid threads
3564 and thread count.
3565 (thread_array_cleanup): New struct.
3566 (set_thread_refcount): New function.
3567
cf006359
AB
35682013-07-11 Andrew Burgess <aburgess@broadcom.com>
3569
3570 * infcmd.c (default_print_one_register_info): Reuse function
3571 print_hex_chars.
3572
94e36acc
TT
35732013-07-10 Tom Tromey <tromey@redhat.com>
3574
3575 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS, ADA_EXP_C): New macros.
3576 (ada-exp.o): New target.
3577
915dd369
SDJ
35782013-07-10 Sergio Durigan Junior <sergiodj@redhat.com>
3579
3580 * mt-tdep.c (mt_registers_info): Call
3581 get_no_prettyformat_print_options instead of
3582 get_raw_print_options (regression by last patch from Doug
3583 Evans).
3584
eca07816
JB
35852013-07-09 Pedro Alves <palves@redhat.com>
3586
3587 Checked in by Joel Brobecker <brobecker@adacore.com>.
3588 * ada-lang.c (coerce_unspec_val_to_type): Use
3589 value_optimized_out_const.
3590 * value.c (value_optimized_out_const): New function.
3591 * value.h (value_optimized_out_const): New declaration.
3592
2a998fc0
DE
35932013-07-09 Doug Evans <dje@google.com>
3594
3595 * defs.h (enum val_prettyformat): Renamed from val_prettyprint.
3596 Enum values rename as well. All uses updated.
3597 * valprint.h (value_print_options): Rename member pretty to
3598 pretty format. Rename member prettyprint_arrays to
3599 prettyformat_arrays. Rename member prettyprint_structs to
3600 prettyformat_structs. All uses updated.
3601 (get_no_prettyformat_print_options): Renamed from
3602 get_raw_print_options.
3603 * valprint.c (get_no_prettyformat_print_options): Renamed from
3604 get_raw_print_options. All callers updated.
3605 (show_prettyformat_structs): Renamed from show_prettyprint_structs.
3606 All callers updated.
3607 (show_prettyformat_arrays): Renamed from show_prettyprint_arrays.
3608 All callers updated.
3609 (_initialize_valprint): Improve help text for "set print pretty" and
3610 "set print arrays".
3611
466c1fca
AB
36122013-07-09 Andrew Burgess <aburgess@broadcom.com>
3613
3614 * value.c (value_bits_valid): Revert previous change, and change
3615 by Pedro on 2013-07-04, due to regressions in
3616 gdb.dwarf2/implptr.exp and gdb.dwarf2/pieces.exp.
3617
ad0f0303
AB
36182013-07-08 Andrew Burgess <aburgess@broadcom.com>
3619 Pedro Alves <palves@redhat.com>
3620
3621 * value.c (value_bits_valid): If the value is not lval_computed
3622 or has no check validity handler then the answer is the
3623 optimized_out flag, otherwise defer to the handler.
3624
b187bec1
EZ
36252013-07-06 Eli Zaretskii <eliz@gnu.org>
3626
48d1d6f5
EZ
3627 * top.c (print_gdb_configuration): Explain in output of
3628 --configuration what does "relocatable" mean.
3629
b187bec1
EZ
3630 * main.c (print_gdb_help): Regroup options in the --help text.
3631 See http://sourceware.org/ml/gdb-patches/2013-04/msg00362.html for
3632 the relevant discussions.
3633
52d361e1
YQ
36342013-07-06 Yao Qi <yao@codesourcery.com>
3635
3636 * breakpoint.h (struct breakpoint_ops) <create_breakpoints_sal>:
3637 Remove parameter 'lsal'.
3638 * breakpoint.c (create_breakpoint): Move local variable 'lsal'
3639 to inner block. Caller update.
3640 (base_breakpoint_create_breakpoints_sal): Update.
3641 (bkpt_create_breakpoints_sal): Likewise.
3642 (tracepoint_create_breakpoints_sal): Likewise.
3643 (strace_marker_create_breakpoints_sal): Get 'lsal' from the
3644 element 0 of vector 'canonical->sals'.
3645
e1ec1b42
LM
36462013-07-05 Luis Machado <lgustavo@codesourcery.com>
3647
3648 * rs6000-tdep.c (rs6000_stab_reg_to_regnum): Return the real
3649 register number instead of the pseudo register one.
3650 (rs6000_dwarf2_reg_to_regnum): Likewise.
3651
7195e6f0
PA
36522013-07-04 Pedro Alves <palves@redhat.com>
3653
3654 * findvar.c (value_of_register): Use allocate_optimized_out_value
3655 if the register has been optimized out, instead of
3656 set_value_optimized_out.
3657 * frame-unwind.c (frame_unwind_got_optimized): Use
3658 allocate_optimized_out_value.
3659
58722cac
PA
36602013-07-04 Pedro Alves <palves@redhat.com>
3661
3662 * value.c (value_bits_valid): If the value is not lval_computed,
3663 or doesn't have a check_validity hook, assume the value is entirely
3664 valid.
3665
691a26f5
AB
36662013-07-04 Andrew Burgess <aburgess@broadcom.com>
3667
3668 * stack.c (read_frame_arg): No longer fetch lazy values.
3669 * value.c (value_optimized_out): If the value is not already
3670 marked optimized out, and is lazy then fetch it.
3671 (value_primitive_field): Move optimized out check to later in the
3672 function, after we have loaded any lazy values.
3673 (value_fetch_lazy): Use optimized out flag directly rather than
3674 calling optimized_out method.
3675
a58e2656
AB
36762013-07-04 Andrew Burgess <aburgess@broadcom.com>
3677
3678 * valops.c: Don't include "user-regs.h".
3679 (value_fetch_lazy): Moved to value.c.
3680 * value.c: Include "user-regs.h".
3681 (value_fetch_lazy): Moved from valops.c.
3682
bd885420
YQ
36832013-07-04 Yao Qi <yao@codesourcery.com>
3684
3685 Revert:
3686 2013-06-27 Yao Qi <yao@codesourcery.com>
3687
3688 * common/create-version.sh: Update comments. Handle the case
3689 that TARGET_ALIAS is empty.
3690
17ef446e
PA
36912013-07-03 Pedro Alves <palves@redhat.com>
3692
3693 * Makefile.in (config.status): Depend on development.sh.
3694 (aclocal_m4_deps): Add libmcheck.m4.
3695 * acinclude.m4: Include libmcheck.m4.
3696 * configure.ac: Source development.sh instead of setting
3697 'development' here. --enable-libmcheck/--disable-libmcheck code
3698 factored out to GDB_AC_LIBMCHECK. Run it.
3699 * development.sh: New file.
3700 * libmcheck.m4: New file.
3701 * configure: Regenerate.
3702
ac6dd50f
TT
37032013-07-02 Tom Tromey <tromey@redhat.com>
3704
3705 * contrib/ari/update-web-ari.sh: Update for version.in change.
3706
bd1df410
TT
37072013-07-02 Tom Tromey <tromey@redhat.com>
3708
3709 * common/ptid.h: Comment fixes.
3710
4db1a1dc
TT
37112013-07-01 Tom Tromey <tromey@redhat.com>
3712
3713 * dwarf2read.c (dwarf2_get_dwz_file): Return NULL if
3714 .gnu_debugaltlink not found. Use bfd_get_alt_debug_link_info.
3715 (dwarf2_read_index, create_all_comp_units): Update.
3716
dd9aa048
TT
37172013-07-01 Tom Tromey <tromey@redhat.com>
3718
3719 * configure.ac (build_warnings): Add -Wold-style-definition.
3720 * configure: Rebuild.
3721 * machoread.c (_initialize_machoread): Use "(void)".
3722 * macrocmd.c (macro_inform_no_debuginfo): Fix formatting;
3723 use "(void)".
3724
44d100c3
TT
37252013-07-01 Tom Tromey <tromey@redhat.com>
3726
3727 * configure.ac (build_warnings): Add -Wold-style-declaration.
3728 * configure: Rebuild.
3729 * dsrec.c (make_srec): Use "static const", not "const static".
3730 * h8300-tdep.c (h8300_breakpoint_from_pc): Use "static const",
3731 not "const static".
3732 * mi/mi-parse.c (mi_no_values, mi_simple_values, mi_all_values):
3733 Use "static const", not "const static".
3734 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Use "static const",
3735 not "const static".
3736 * moxie-tdep.c (moxie_breakpoint_from_pc): Use "static const",
3737 not "const static".
3738 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Use "static const",
3739 not "const static".
3740 * v850-tdep.c (v850_breakpoint_from_pc): Use "static const",
3741 not "const static".
3742 (v850_dbtrap_breakpoint_from_pc): Likewise.
3743 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Use "static const",
3744 not "const static".
3745
2945b807
TT
37462013-07-01 Tom Tromey <tromey@redhat.com>
3747
3748 * configure.ac (build_warnings): Add -Wmissing-parameter-type.
3749 * configure: Rebuild.
3750
d8d2a3ee
PA
37512013-07-01 Pedro Alves <palves@redhat.com>
3752
3753 * defs.h: Include "pathmax.h".
3754 * utils.c: Don't include sys/param.h.
3755 (gdb_realpath): Remove code that checks for MAXPATHLEN.
3756 * solib-ia64-hpux.c (ia64_hpux_handle_load_event): Use PATH_MAX
3757 instead of MAXPATHLEN.
3758 * solib-sunos.c: Don't include sys/param.h.
3759 * xcoffread.c: Don't include sys/param.h.
3760 * bsd-kvm.c: Don't include sys/param.h.
3761 * darwin-nat.c: Don't include sys/param.h.
3762 (darwin_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
3763 * darwin-nat-info.c: Don't include sys/param.h.
3764 * fbsd-nat.c (fbsd_pid_to_exec_file): Use PATH_MAX instead of
3765 MAXPATHLEN.
3766 * i386obsd-nat.c: Don't include sys/param.h.
3767 * inf-child.c: Don't include sys/param.h.
3768 (inf_child_fileio_readlink): Use PATH_MAX instead of MAXPATHLEN.
3769 * linux-fork.c: Don't include sys/param.h.
3770 (fork_save_infrun_state): Use PATH_MAX instead of MAXPATHLEN.
3771 * linux-nat.c: Don't include sys/param.h.
3772 (linux_child_pid_to_exec_file, linux_proc_pending_signals)
3773 (linux_proc_pending_signals): Use PATH_MAX instead of MAXPATHLEN.
3774 * m68klinux-nat.c: Don't include sys/param.h.
3775 * nbsd-nat.c: Don't include sys/param.h.
3776 (nbsd_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
3777 * ppc-linux-nat.c: Don't include sys/param.h.
3778 * rs6000-nat.c: Don't include sys/param.h.
3779 * spu-linux-nat.c. Don't include sys/param.h.
3780 * windows-nat.c: Don't include sys/param.h.
3781 * xtensa-linux-nat.c: Don't include sys/param.h.
3782 * config/i386/nm-fbsd.h: Don't include sys/param.h.
3783
38ec2207
PA
37842013-07-01 Pedro Alves <palves@redhat.com>
3785
3786 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add pathmax.
3787 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/pathmax.m4.
3788 * gnulib/aclocal.m4: Regenerate.
3789 * gnulib/config.in: Regenerate.
3790 * gnulib/configure: Regenerate.
3791 * gnulib/import/pathmax.h: New file.
3792 * gnulib/import/Makefile.am: Regenerate.
3793 * gnulib/import/Makefile.in: Regenerate.
3794 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
3795 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
3796 * gnulib/import/m4/pathmax.m4: New file.
3797
e655c1a2
PA
37982013-07-01 Pedro Alves <palves@redhat.com>
3799
3800 * configure.ac (GDBINIT): Define, depending on host.
3801 * go32-nat.c (init_go32_ops): Don't override gdbinit here.
3802 * top.c (PATH_MAX): Delete fallback definition.
3803 (GDBINIT_FILENAME): Delete.
3804 (gdbinit): Reimplement as const char array set to the GDBINIT
3805 string constant.
3806 * top.h (gdbinit): Make const.
3807 * configure, config.in: Regenerate.
3808
50dd9793
PA
38092013-07-01 Pedro Alves <palves@redhat.com>
3810
3811 * cli/cli-cmds.c (source_script): Make 'file' parameter const.
3812 * cli/cli-cmds.h (source_script): Likewise.
3813 * exceptions.c (catch_command_errors_const): New function.
3814 * exceptions.h (catch_command_errors_const): Declare.
3815 * main.c (get_init_files): Make parameters const, and adjust.
3816 (captured_main): Make 'system_gdbinit', 'home_gdbinit' and
3817 'local_gdbinit' locals const. Adjust to use
3818 catch_command_errors_const.
3819 (print_gdb_help): Make 'system_gdbinit', 'home_gdbinit' and
3820 'local_gdbinit' locals const.
3821
bc7dea8d
PA
38222013-07-01 Pedro Alves <palves@redhat.com>
3823
3824 * defs.h: Don't check HAVE_UNISTD_H before including <unistd.h>.
3825 (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO): Delete.
3826 * tracepoint.c: Don't check HAVE_UNISTD_H before including
3827 <unistd.h>.
3828
8839a007
PA
38292013-07-01 Pedro Alves <palves@redhat.com>
3830
3831 Import the "unistd" gnulib module.
3832 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add "unistd".
3833 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/off_t.m4,
3834 import/m4/ssize_t.m4, import/m4/sys_types_h.m4 and
3835 import/m4/unistd_h.m4.
3836 * gnulib/aclocal.m4: Renenerate.
3837 * gnulib/config.in: Renenerate.
3838 * gnulib/configure: Renenerate.
3839 * gnulib/import/Makefile.am: Renenerate.
3840 * gnulib/import/Makefile.in: Renenerate.
3841 * gnulib/import/m4/gnulib-cache.m4: Renenerate.
3842 * gnulib/import/m4/gnulib-comp.m4: Renenerate.
3843 * gnulib/import/m4/off_t.m4: New file.
3844 * gnulib/import/m4/ssize_t.m4: New file.
3845 * gnulib/import/m4/sys_types_h.m4: New file.
3846 * gnulib/import/m4/unistd_h.m4: New file.
3847 * gnulib/import/sys_types.in.h: New file.
3848 * gnulib/import/unistd.c: New file.
3849 * gnulib/import/unistd.in.h: New file.
3850
8c0da261
PA
38512013-07-01 Pedro Alves <palves@redhat.com>
3852
3853 * utils.c <pathconf/_PC_PATH_MAX use>: Check if _PC_PATH_MAX is
3854 defined instead of checking HAVE_UNISTD_H.
3855
3574124b
PA
38562013-07-01 Pedro Alves <palves@redhat.com>
3857
3858 Reimport gnulib from scratch.
3859 * gnulib/Makefile.in (aclocal_m4_deps): Remove reference to
3860 import/m4/onceonly.m4.
3861 * gnulib/aclocal.m4: Renegerate.
3862 * gnulib/config.in: Renegerate.
3863 * gnulib/configure: Renegerate.
3864 * gnulib/import/Makefile.in: Renegerate.
3865 * gnulib/import/extra/update-copyright: Renegerate.
3866 * gnulib/import/m4/onceonly.m4: Delete.
3867
702dc4fd
PA
38682013-07-01 Pedro Alves <palves@redhat.com>
3869
3870 * tui/tui-regs.c (pagination_enabled): Delete declaration.
3871
47e1ce27
JK
38722013-06-30 Jan Kratochvil <jan.kratochvil@redhat.com>
3873
3874 Code cleanup.
3875 * remote.c (async_remote_interrupt_twice): Make it static.
3876 * remote.h (async_remote_interrupt_twice): Remove the declaration.
3877
e82839d4
SDJ
38782013-06-29 Sergio Durigan Junior <sergiodj@redhat.com>
3879
3880 * ia64-linux-tdep.c: Include <ctype.h>.
3881 (ia64_linux_stap_is_single_operand): New function.
3882 (ia64_linux_init_abi): Initialize SystemTap related attributes.
3883
d6c2da54
TT
38842013-06-28 Tom Tromey <tromey@redhat.com>
3885
3886 * Makefile.in (version.c): Use version.in, not
3887 common/version.in.
3888 * common/create-version.sh: Likewise.
3889 * common/version.in: Move...
3890 * version.in: ...here.
3891
74da6f00
PA
38922013-06-28 Pedro Alves <palves@redhat.com>
3893
3894 * infrun.c (set_observer_mode): Don't declare pagination_enabled
3895 here.
3896 * utils.h (pagination_enabled): Declare.
3897
d32dc48e
PA
38982013-06-28 Pedro Alves <palves@redhat.com>
3899
3900 * infrun.c (non_stop, non_stop_1, set_non_stop, show_non_stop):
3901 Move higher up in file.
3902
0edd9e3b
TT
39032013-06-28 Tom Tromey <tromey@redhat.com>
3904
3905 * tracepoint.c (deprecated_readline_begin_hook)
3906 (deprecated_readline_hook, deprecated_readline_end_hook): Don't
3907 declare.
3908
4eb59108
PA
39092013-06-28 Pedro Alves <palves@redhat.com>
3910
3911 PR tui/14880
3912 * tui/tui-regs.c (tui_get_register): Fetch value contents before
3913 checking if they're available.
3914 * value.c (value_available_contents_eq): Change comment.
3915 * value.h (value_available_contents_eq): Expand comment.
3916
97b17156
TT
39172013-06-27 Tom Tromey <tromey@redhat.com>
3918
3919 * target.c (find_run_target): Remove.
3920 * target.h (find_run_target): Remove.
3921
6a3bfc5c
TT
39222013-06-27 Tom Tromey <tromey@redhat.com>
3923
3924 * corelow.c (core_gdbarch): Now static.
3925
c9ef825d
TT
39262013-06-27 Tom Tromey <tromey@redhat.com>
3927
3928 * target.c (target_struct_index): Remove.
3929
e5823f1c
PA
39302013-06-27 Pedro Alves <palves@redhat.com>
3931
3932 * infrun.c: Remove comment describing the 'stepping over runtime
3933 loader dynamic symbol resolution code' mechanism; moved to
3934 gdbint.texinfo.
3935
97f8dd09
PA
39362013-06-27 Pedro Alves <palves@redhat.com>
3937
3938 * exceptions.c (catch_command_errors): Remove spurious space.
3939 * exceptions.h (catch_command_errors): Second parameter is "arg",
3940 not "command".
3941
02b1871e
YQ
39422013-06-27 Yao Qi <yao@codesourcery.com>
3943
3944 * common/create-version.sh: Update comments. Handle the case
3945 that TARGET_ALIAS is empty.
3946
bb1b1cf1
PA
39472013-06-26 Pedro Alves <palves@redhat.com>
3948
3949 * infrun.c (SOLIB_IN_DYNAMIC_LINKER): Delete macro and describing
3950 comment.
3951
7b624e71
PA
39522013-06-26 Pedro Alves <palves@redhat.com>
3953
3954 * infrun.c: Update comments on stepping over runtime loader
3955 dynamic symbol resolution code.
3956
74e5a346
SDJ
39572013-06-26 Sergio Durigan Junior <sergiodj@redhat.com>
3958
3959 * ax-gdb.h (union exp_element): Forward declare.
3960 * parser-defs.h: Include expression.h.
3961
a2fb2cee
MR
39622013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
3963
3964 * mips-tdep.c (fetch_mips_16): Use unmake_compact_addr.
3965
cdba14e0
DK
39662013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
3967
3968 * tracepoint.c (trace_save): Extend tsave to save starttime, stoptime.
3969
f30aa5af
DK
39702013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
3971
3972 Fix trace-status to output proper start-time and stop-time.
3973 * tracepoint.c (trace_status_command): Fix type of printf arg to
3974 prevent improper type conversion.
3975 (trace_status_mi): Likewise.
3976
1aee363c
MR
39772013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
3978
3979 * mips-tdep.c (mips_next_pc): Fix a typo.
3980
3356937a
MR
39812013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
3982
3983 * mips-tdep.c (micromips_scan_prologue): Fix a typo.
3984
dc673c81
YQ
39852013-06-26 Pedro Alves <pedro@codesourcery.com>
3986 Yao Qi <yao@codesourcery.com>
3987
3988 * mi/mi-cmds.c (mi_cmds): Register -trace-frame-collected.
3989 * mi/mi-cmds.h (mi_cmd_trace_frame_collected): Declare.
3990 * mi/mi-main.c (print_variable_or_computed): New function.
3991 (mi_cmd_trace_frame_collected): New function.
3992 * tracepoint.c (find_trace_state_variable_by_number): New.
3993 (struct traceframe_info): Move to tracepoint.h
3994 (struct collection_list): Likewise.
3995 (do_collect_symbol): Include locals and arguments in the
3996 collected variables list.
3997 (clear_collection_list): Clear wholly collected variables list
3998 and computed variables list.
3999 (append_exp): New function.
4000 (encode_actions_1): Include variables in the wholly
4001 collected variables list. Include memory ranges and
4002 full-fledged expressions in the computed expressions list.
4003 (encode_actions): Move some code to ...
4004 Return the cleanup chain.
4005 (encode_actions_rsp): ... here. New function.
4006 (get_traceframe_location, get_traceframe_info): Remove static.
4007 * tracepoint.h (struct memrange): Moved from tracepoint.c.
4008 (struct collection_list): Moved from tracepoint.c. Add two
4009 new fields 'wholly_collected' and 'computed'.
4010 (find_trace_state_variable_by_number): Declare.
4011 (encode_actions): Adjust declaration.
4012 (encode_actions_rsp): Declare.
4013 (get_traceframe_info, get_traceframe_location): Declare.
4014
4015 * NEWS: Mention new MI command -trace-frame-collected.
4016
28a93511
YQ
40172013-06-26 Pedro Alves <pedro@codesourcery.com>
4018 Yao Qi <yao@codesourcery.com>
4019
4020 * ctf.c (ctf_traceframe_info): Push trace state variables
4021 present in the trace data into the traceframe info object.
4022 * breakpoint.c (DEF_VEC_I): Remove.
4023 * common/filestuff.c (DEF_VEC_I): Likewise.
4024 * dwarf2loc.c (DEF_VEC_I): Likewise.
4025 * mi/mi-main.c (DEF_VEC_I): Likewise.
4026 * common/gdb_vecs.h (DEF_VEC_I): Define vector for int.
4027 * features/traceframe-info.dtd: Add tvar element and its
4028 attributes.
4029 * tracepoint.c (free_traceframe_info): Free vector 'tvars'.
4030 (build_traceframe_info): Push trace state variables present in
4031 the trace data into the traceframe info object.
4032 (traceframe_info_start_tvar): New function.
4033 (tvar_attributes): New.
4034 (traceframe_info_children): Add "tvar" element.
4035 * tracepoint.h (struct traceframe_info) <tvars>: New field.
4036
4037 * NEWS: Mention the change in GDB and GDBserver.
4038
ddacd3c8
YQ
40392013-06-26 Pedro Alves <pedro@codesourcery.com>
4040 Yao Qi <yao@codesourcery.com>
4041
4042 * tracepoint.c (trace_dump_command): Move code to ...
4043 (get_traceframe_location): ... here. New.
4044
05796b35
YQ
40452013-06-26 Pedro Alves <pedro@codesourcery.com>
4046 Yao Qi <yao@codesourcery.com>
4047
4048 * tracepoint.c (trace_dump_command): GDB emits an error
4049 instead of a warning when a traceframe is not selected.
4050
cbfa3b61
YQ
40512013-06-26 Pedro Alves <pedro@codesourcery.com>
4052 Yao Qi <yao@codesourcery.com>
4053
4054 * tracepoint.c (tracepoint_list, stepping_list): Remove.
4055 (clear_collection_list): Free fields 'aexpre_list' and 'list'
4056 in collection_list.
4057 (do_clear_collection_list, init_collection_list): New.
4058 (encode_actions): Add local variables 'tracepoint_list' and
4059 'stepping_list'. Call init_collection_list and make cleanup
4060 which calls do_clear_collection_list. Don't call
4061 clear_collection_list.
4062 (_initialize_tracepoint): Delete references to
4063 'tracepoint_list' and 'stepping_list'.
4064
6e2048d3
TT
40652013-06-25 Tom Tromey <tromey@redhat.com>
4066
4067 * common/create-version.sh (date): Use "$", not "$$" in sed
4068 expression.
4069
42059f0e
KB
40702013-06-25 Kevin Buettner <kevinb@redhat.com>
4071
4072 * NEWS (New targets): Add entry for TI MSP430.
4073
a0743c90
YQ
40742013-06-25 Yao Qi <yao@codesourcery.com>
4075
4076 * remote.c (remote_start_remote): Move code to upload tsv
4077 earlier.
4078
9d6e6e84
HZ
40792013-06-25 Yao Qi <yao@codesourcery.com>
4080 Hui Zhu <hui@codesourcery.com>
4081 Pedro Alves <palves@redhat.com>
4082
4083 PR breakpoints/15075
4084 PR breakpoints/15434
4085 * breakpoint.c (bpstat_stop_status): Call
4086 b->ops->after_condition_true.
4087 (update_dprintf_command_list): Don't append "continue" command
4088 to the command list of dprintf breakpoint.
4089 (base_breakpoint_after_condition_true): New function.
4090 (base_breakpoint_ops): Add base_breakpoint_after_condition_true.
4091 (dprintf_after_condition_true): New function.
4092 (initialize_breakpoint_ops): Set dprintf_after_condition_true.
4093 * breakpoint.h (breakpoint_ops): Add after_condition_true.
4094
586cf749
KB
40952013-06-24 Kevin Buettner <kevinb@redhat.com>
4096
4097 * Makefile.in (ALL_TARGET_OBS): Add msp430-tdep.o.
4098 (ALLDEPFILES): Add msp430-tdep.c.
4099 * configure.tgt (msp430*-*-elf): New target.
4100 * msp430-tdep.c: New file.
4101
1bbce132
MR
41022013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
4103
4104 * mips-tdep.c (mips_elf_make_msymbol_special): Handle MIPS16 and
4105 microMIPS synthetic symbols.
4106
3e5d3a5a
MR
41072013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
4108
4109 * objfiles.h (pc_in_section): New prototype.
4110 (in_plt_section): Remove name argument, replace prototype with
4111 static inline function.
4112 * mips-tdep.h: Include "objfiles.h".
4113 (in_mips_stubs_section): New function.
4114 * hppa-tdep.h (gdbarch_tdep): Remove name argument of
4115 in_solib_call_trampoline member.
4116 (hppa_in_solib_call_trampoline): Remove name argument.
4117 * objfiles.c (pc_in_section): New function.
4118 (in_plt_section): Remove function.
4119 * mips-linux-tdep.c: Include "objfiles.h".
4120 (mips_linux_in_dynsym_stub): Call in_mips_stubs_section. Remove
4121 name argument. Return 1 rather than the low 16-bit halfword of
4122 any instruction examined.
4123 (mips_linux_in_dynsym_resolve_code): Update
4124 mips_linux_in_dynsym_stub call accordingly.
4125 * mips-tdep.c (mips_stub_frame_sniffer): Use in_mips_stubs_section
4126 rather than an equivalent hand-coded sequence.
4127 * hppa-hpux-tdep.c (in_opd_section): Remove function.
4128 (hppa32_hpux_in_solib_call_trampoline): Remove name argument.
4129 (hppa64_hpux_in_solib_call_trampoline): Likewise.
4130 (hppa64_hpux_find_global_pointer): Use pc_in_section rather than
4131 in_opd_section.
4132 * hppa-tdep.c (hppa_stub_unwind_sniffer): Remove name argument
4133 on call to tdep->in_solib_call_trampoline.
4134 (hppa_in_solib_call_trampoline): Remove name argument, update
4135 according to in_plt_section change.
4136 (hppa_skip_trampoline_code): Update according to in_plt_section
4137 change.
4138 * aarch64-tdep.c (aarch64_stub_unwind_sniffer): Likewise.
4139 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code):
4140 Likewise.
4141 * arm-tdep.c (arm_stub_unwind_sniffer): Likewise.
4142 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
4143 * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise.
4144 * nios2-tdep.c (nios2_stub_frame_sniffer): Likewise.
4145 * nto-tdep.c (nto_relocate_section_addresses): Likewise.
4146 * s390-tdep.c (s390_stub_frame_sniffer): Likewise.
4147 * sh-tdep.c (sh_stub_unwind_sniffer): Likewise.
4148 * solib-dsbt.c (dsbt_in_dynsym_resolve_code): Likewise.
4149 * solib-frv.c (frv_in_dynsym_resolve_code): Likewise.
4150 * solib-svr4.c (svr4_in_dynsym_resolve_code): Likewise.
4151 * solib-target.c (solib_target_in_dynsym_resolve_code): Likewise.
4152 * sparc-tdep.c (sparc_analyze_prologue): Likewise.
4153 * tic6x-tdep.c (tic6x_stub_unwind_sniffer): Likewise.
4154
b9b26a16
JB
41552013-06-24 Joel Brobecker <brobecker@adacore.com>
4156
4157 * common/create-version.sh: Fix expansion of $host_alias
4158 and $target_alias in generation of HOST_NAME and TARGET_NAME
4159 (resp.).
4160
01208463
TT
41612013-06-24 Tom Tromey <tromey@redhat.com>
4162
4163 * common/create-version.sh: New file.
4164 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
4165 create-version.sh.
4166 (HFILES_NO_SRCDIR): Use common/version.h.
4167 * version.in: Move to ...
4168 * common/version.in: ... here. Replace date with "DATE".
4169 * version.h: Move to ...
4170 * common/version.h: ... here.
4171
bb6b9a5e
JB
41722013-06-21 Joel Brobecker <brobecker@adacore.com>
4173
4174 * gdb/gnulib/Makefile.in: Update date in copyright header.
4175 * gdb/gnulib/configure.ac: Ditto.
4176 * gdb/gnulib/update-gnulib.sh: Ditto.
4177
c3b18ee7
JB
41782013-06-21 Joel Brobecker <brobecker@adacore.com>
4179
4180 * copyright.py (EXCLUDE_LIST): Replace "gdb/gnulib" by
4181 "gdb/gnulib/import".
4182
85d3b769
WN
41832013-06-21 Will Newton <will.newton@linaro.org>
4184
4185 * doublest.c (ldfrexp): Remove function.
4186 (convert_doublest_to_floatformat): Call frexpl instead of
4187 ldfrexp.
4188
88b48903
WN
41892013-06-21 Will Newton <will.newton@linaro.org>
4190
4191 * gnulib/update-gnulib.sh(IMPORTED_GNULIB_MODULES): Add frexpl.
4192 * gnulib/aclocal.m4: Regenerate.
4193 * gnulib/config.in: Regenerate.
4194 * gnulib/configure: Regenerate.
4195 * gnulib/import/Makefile.am: Update.
4196 * gnulib/import/Makefile.in: Update.
4197 * gnulib/import/m4/gnulib-cache.m4: Update.
4198 * gnulib/import/m4/gnulib-comp.m4: Update.
4199 * gnulib/import/float+.h: Import.
4200 * gnulib/import/float.c: Import.
4201 * gnulib/import/float.in.h: Import.
4202 * gnulib/import/fpucw.h: Import.
4203 * gnulib/import/frexp.c: Import.
4204 * gnulib/import/frexpl.c: Import.
4205 * gnulib/import/isnan.c: Import.
4206 * gnulib/import/isnand-nolibm.h: Import.
4207 * gnulib/import/isnand.c: Import.
4208 * gnulib/import/isnanl-nolibm.h: Import.
4209 * gnulib/import/isnanl.c: Import.
4210 * gnulib/import/itold.c: Import.
4211 * gnulib/import/m4/exponentd.m4: Import.
4212 * gnulib/import/m4/exponentl.m4: Import.
4213 * gnulib/import/m4/float_h.m4: Import.
4214 * gnulib/import/m4/fpieee.m4: Import.
4215 * gnulib/import/m4/frexp.m4: Import.
4216 * gnulib/import/m4/frexpl.m4: Import.
4217 * gnulib/import/m4/isnand.m4: Import.
4218 * gnulib/import/m4/isnanl.m4: Import.
4219 * gnulib/import/m4/math_h.m4: Import.
4220 * gnulib/import/math.c: Import.
4221 * gnulib/import/math.in.h: Import.
4222
4353c9e6
JK
42232013-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4224
4225 * common/linux-btrace.c (cpu_supports_btrace): Remove variable vendor,
4226 replace strcmp with signature_INTEL_ebx, signature_INTEL_ecx and
4227 signature_INTEL_edx comparisons.
4228
e3e06db3
DE
42292013-06-20 Doug Evans <dje@google.com>
4230
6ac97d4c
DE
4231 symtab/15652
4232 * dwarf2read.c (try_open_dwop_file): New arg search_cwd.
4233 All callers updated.
4234 (open_dwp_file): If we can't find the dwp file, search the basename
4235 in debug-file-directory.
4236
93417882
DE
4237 * dwarf2read.c (struct dwp_file): Fix comment.
4238 (open_and_init_dwp_file): Set dwp_file->name to bfd's file name.
4239
e3e06db3
DE
4240 * source.c (openp): Document OPF_TRY_CWD_FIRST+OPF_SEARCH_IN_PATH
4241 better.
4242
0878d0fa
YQ
42432013-06-20 Yao Qi <yao@codesourcery.com>
4244
4245 * breakpoint.c (create_breakpoint): Fix code indentation.
4246
023fa29b
YQ
42472013-06-20 Yao Qi <yao@codesourcery.com>
4248
4249 * breakpoint.c (create_breakpoints_sal_default): Remove
4250 parameter 'lsal'. Update declaration.
4251 (bkpt_create_breakpoints_sal): Caller update.
4252 (tracepoint_create_breakpoints_sal): Likewise.
4253
c898adb7
YQ
42542013-06-20 Pedro Alves <pedro@codesourcery.com>
4255 Yao Qi <yao@codesourcery.com>
4256
4257 * NEWS: Mention the new option '--skip-unavailable' of command
4258 -data-list-register-values.
4259 * mi/mi-main.c (mi_cmd_data_list_register_values): Accept the
4260 --skip-unavailable option. Adjust to use output_register.
4261 (output_register): Add new 'skip_unavailable' parameter.
4262 Handle it.
4263
4d157a3d
MF
42642013-06-19 Mike Frysinger <vapier@gentoo.org>
4265
4266 * Makefile.in (HFILES_NO_SRCDIR): Add common/i386-cpuid.h and
4267 common/i386-gcc-cpuid.h.
4268 * common/i386-cpuid.h: New wrapper header around i386-gcc-cpuid.h.
4269 * common/i386-gcc-cpuid.h: Rename from testsuite/gdb.arch/i386-cpuid.h.
4270 Copy the latest version from upstream gcc.
4271 * common/linux-btrace.c: Include i386-cpuid.h.
4272 (intel_supports_btrace): Delete x86 ifdefs and replace inline asm with
4273 call to i386_cpuid.
4274 (cpu_supports_btrace): Likewise.
4275 * go32-nat.c: Include i386-cpuid.h.
4276 (go32_sysinfo): Add (disabled) calls to i386_cpuid with comments.
4277
1ce4db08
DE
42782013-06-19 Doug Evans <dje@google.com>
4279
4280 * symfile.c (symfile_bfd_open): Delete unnecessary declaration.
4281 (get_section_index): Ditto.
4282
0e4777df
TT
42832013-06-19 Tom Tromey <tromey@redhat.com>
4284
4285 * breakpoint.c (_initialize_breakpoint): Remove trailing \n from
4286 "dprintf" help.
4287
3190f0c6
DE
42882013-06-18 Doug Evans <dje@google.com>
4289
4290 * dwarf2read.c (dw2_symtab_iter_next): Check value of cu_index
4291 before using it.
4292 (dw2_expand_symtabs_matching): Fix symbol kind validity check.
4293 Move test of cu_index closer to use. Print complaint if cu_index
4294 is bad.
4295
8b89a20a
JB
42962013-06-18 Joel Brobecker <brobecker@adacore.com>
4297
4298 * machoread.c (oso_vector): Delete this global.
4299 (macho_register_oso): Add new parameter "oso_vector_ptr".
4300 Use it instead of the "oso_vector" global.
4301 (macho_symtab_read, macho_symfile_read_all_oso): Likewise.
4302 (macho_symfile_read): Use a local oso_vector, to be free'ed
4303 at the end of this function, in place of the old "oso_vector"
4304 global. Update various function calls accordingly. Use one
4305 single cleanup chain for the entire function.
4306
59b0c7c1
JB
43072013-06-18 Joel Brobecker <brobecker@adacore.com>
4308
937c708c 4309 * dwarf2read.c (dwarf2_per_objfile_free): Replace uses of
59b0c7c1
JB
4310 DWARF2_PER_OBJFILE by uses of DATA instead.
4311
427cd150
TT
43122013-06-18 Tom Tromey <tromey@redhat.com>
4313
4314 * break-catch-sig.c (signal_catchpoint_explains_signal): Add 'sig'
4315 argument.
4316 * breakpoint.c (bpstat_explains_signal): Add 'sig' argument.
4317 Special case signals other than GDB_SIGNAL_TRAP.
4318 (explains_signal_watchpoint): New function.
4319 (base_breakpoint_explains_signal): Add 'sig' argument.
4320 (initialize_breakpoint_ops): Set 'explains_signal' method for
4321 watchpoints.
4322 * breakpoint.h (struct breakpoint_ops) <explains_signal>: Add
4323 signal argument.
4324 (bpstat_explains_signal): Likewise.
4325 * infrun.c (handle_syscall_event, handle_inferior_event): Update.
4326
2d57700b
TT
43272013-06-18 Tom Tromey <tromey@redhat.com>
4328
4329 * python/py-inferior.c (gdbpy_selected_inferior): Don't incref.
4330
ac475191
TT
43312013-06-18 Tom Tromey <tromey@redhat.com>
4332
4333 * python/python.c (finish_python_initialization): Decref
4334 'pythondir' on failure path as well.
4335
5bd1ef56
TT
43362013-06-18 Tom Tromey <tromey@redhat.com>
4337
4338 PR symtab/15391:
4339 * dwarf2loc.c (read_pieced_value): Truncate this_size_bits
4340 after taking bits_to_skip into account. Sign extend byte_offset.
4341 * utils.h (gdb_sign_extend): Declare.
4342 * utils.c (gdb_sign_extend): New function.
4343
92fac807
JK
43442013-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4345
4346 * dwarf2read.c (write_psymtabs_to_index): Ignore NULL PSYMTAB.
4347
2d503272
PM
43482013-06-17 Pierre Muller <muller@sourceware.org>
4349
4350 * corelow.c (core_open): Print GDB signal name instead of target
4351 signal number.
4352
6916fd98
MF
43532013-06-17 Mike Frysinger <vapier@gentoo.org>
4354
4355 * .gitignore: Add /gcore.
4356
9c02c129
DE
43572013-06-13 Doug Evans <dje@google.com>
4358
4359 * dwarf2read.c (try_open_dwop_file): Work around behaviour of
4360 OPF_TRY_CWD_FIRST to not search path if the file contains a '/'.
4361
d0548fa2
PM
43622013-06-12 Phil Muldoon <pmuldoon@redhat.com>
4363
4364 * stack.c (backtrace_command_1): Fix indentation.
4365
22128028
JB
43662013-06-11 Joel Brobecker <brobecker@adacore.com>
4367
4368 * window-nat.c (thread_rec): Add missing empty line after
4369 local variable declaration.
4370
2ed3e009
JB
43712013-06-11 Joel Brobecker <brobecker@adacore.com>
4372
4373 * windows-nat.c (thread_rec): Revert format used to print
4374 error code returned by SuspendThread from %d back to %u.
4375
0c3d84be
JB
43762013-06-11 Joel Brobecker <brobecker@adacore.com>
4377
4378 * windows-nat.c (windows_continue): Add "0x" prefix for thread
4379 ID in debug trace.
4380 (get_windows_debug_event): Likewise, for all debug traces.
4381
80e88e1a
JB
43822013-06-11 Joel Brobecker <brobecker@adacore.com>
4383
4384 * window-nat.c (thread_rec): Add thread ID in SuspendThread
4385 warning message.
4386
1edebdbf
YQ
43872013-06-08 Pedro Alves <pedro@codesourcery.com>
4388 Yao Qi <yao@codesourcery.com>
4389
4390 * mi/mi-main.c (get_register): Remove declaration.
4391 (output_register): Declare.
4392 (mi_cmd_data_list_register_values): Remove local variable
4393 'tuple_cleanup'. Move some code into output_register.
4394 (get_register): Renamed to ...
4395 (output_register): ... this. Output the register's
4396 "number" ui_out tuple here.
4397
47d48711
PA
43982013-06-07 Pedro Alves <palves@redhat.com>
4399
4400 * darwin-nat.c: Fix formating in copyright header.
4401 * darwin-nat.h: Likewise.
4402 * gnu-nat.c: Likewise.
4403 * machoread.c: Likewise.
4404
3aee8918
PA
44052013-06-07 Pedro Alves <palves@redhat.com>
4406
5f2b57b5 4407 PR server/14823
3aee8918
PA
4408 * regformats/regdat.sh: Output #include tdesc.h. Make globals
4409 static. Output a global target description pointer.
4410 (init_registers_${name}): Adjust to initialize a
4411 target description structure.
4412
fe8400b4
WN
44132013-06-07 Will Newton <will.newton@linaro.org>
4414
4415 * printcmd.c (build_address_symbolic): Call
4416 gdbarch_addr_bits_remove for text minimal symbols.
4417
20df6206
WN
44182013-06-07 Will Newton <will.newton@linaro.org>
4419
4420 * MAINTAINERS: Add myself to Write After Approval.
4421
aef525cb
YQ
44222013-06-07 Yao Qi <yao@codesourcery.com>
4423
4424 * tracepoint.c (start_tracing): Move code to ...
4425 (trace_reset_local_state): ... here. New.
4426 (disconnect_tracing): Don't call set_current_traceframe,
4427 set_tracepoint_num, and set_traceframe_context. Call
4428 trace_reset_local_state instead.
4429 (tfile_close): Call trace_reset_local_state.
4430 * ctf.c (ctf_close): Likewise.
4431 * remote.c (remote_close): Likewise.
4432 * tracepoint.h (trace_reset_local_state): Declare.
4433
d2415c6c
DE
44342013-06-06 Doug Evans <dje@google.com>
4435
4436 * dwarf2read.c: Whitespace fixes for DWP file format documentation,
4437 and fix header docs.
4438
69fc87c2
DE
44392013-06-05 Doug Evans <dje@google.com>
4440 Keith Seitz <keiths@redhat.com>
4441
4442 PR 15519
4443 * cp-namespace.c (find_symbol_in_baseclass): Call
4444 cp_lookup_symbol_in_namespace instead of cp_lookup_symbol_namespace.
4445 Check result of call to lookup_symbol_static.
4446 Call lookup_static_symbol_aux unconditionally.
4447 Call check_typedef on base types before accessing them.
4448 (cp_lookup_nested_symbol): Fix comment.
4449
a513d1e8
LM
44502013-06-05 Luis Machado <lgustavo@codesourcery.com>
4451
4452 * gnu-v3-abi.c (gnuv3_skip_trampoline): Handle thunk
4453 minimal symbols pointing to function descriptors.
4454
351a6f02
TT
44552013-06-05 Tom Tromey <tromey@redhat.com>
4456
4457 * python/py-utils.c (gdb_pymodule_addobject): Cast away const.
4458
5e1b953b 44592013-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
c7c0b644 4460 Pedro Alves <palves@redhat.com>
5e1b953b
SDJ
4461
4462 * remote.c (remote_wait_as): Restore signal handler before returning
4463 when GDB gets a notification.
4464
f9e14852
GB
44652013-06-04 Gary Benson <gbenson@redhat.com>
4466
8445cbf1 4467 PR 2328
f9e14852
GB
4468 * breakpoint.h (handle_solib_event): Moved function declaration
4469 to solib.h.
4470 * breakpoint.c (handle_solib_event): Moved function to solib.c.
4471 (bpstat_stop_status): Pass new argument to handle_solib_event.
4472 * solib.h (update_solib_breakpoints): New function declaration.
4473 (handle_solib_event): Moved function declaration from
4474 breakpoint.h.
4475 * solib.c (update_solib_breakpoints): New function.
4476 (handle_solib_event): Moved function from breakpoint.c.
4477 Updated to call solib_ops->handle_event if not NULL.
4478 * solist.h (target_so_ops): New fields "update_breakpoints" and
4479 "handle_event".
4480 * infrun.c (set_stop_on_solib_events): New function.
4481 (_initialize_infrun): Use the above for "set
4482 stop-on-solib-events".
4483 (handle_inferior_event): Pass new argument to handle_solib_event.
4484 * solib-svr4.c (probe.h): New include.
4485 (svr4_free_library_list): New forward declaration.
4486 (probe_action): New enum.
4487 (probe_info): New struct.
4488 (probe_info): New static variable.
4489 (NUM_PROBES): New definition.
4490 (svr4_info): New fields "using_xfer", "probes_table" and
4491 "solib_list".
4492 (free_probes_table): New function.
4493 (free_solib_list): New function.
4494 (svr4_pspace_data_cleanup): Free probes table and solib list.
4495 (svr4_copy_library_list): New function.
4496 (svr4_current_sos_via_xfer_libraries): New parameter "annex".
4497 (svr4_read_so_list): New parameter "prev_lm".
4498 (svr4_current_sos_direct): Renamed from "svr4_current_sos".
4499 (svr4_current_sos): New function.
4500 (probe_and_action): New struct.
4501 (hash_probe_and_action): New function.
4502 (equal_probe_and_action): Likewise.
4503 (register_solib_event_probe): Likewise.
4504 (solib_event_probe_at): Likewise.
4505 (solib_event_probe_action): Likewise.
4506 (solist_update_full): Likewise.
4507 (solist_update_incremental): Likewise.
4508 (disable_probes_interface_cleanup): Likewise.
4509 (svr4_handle_solib_event): Likewise.
4510 (svr4_update_solib_event_breakpoint): Likewise.
4511 (svr4_update_solib_event_breakpoints): Likewise.
4512 (svr4_create_solib_event_breakpoints): Likewise.
4513 (enable_break): Free probes table before creating breakpoints.
4514 Use svr4_create_solib_event_breakpoints to create breakpoints.
4515 (svr4_solib_create_inferior_hook): Free the solib list.
4516 (_initialize_svr4_solib): Initialise
4517 svr4_so_ops.handle_solib_event and svr4_so_ops.update_breakpoints.
4518
ced63ec0
GB
45192013-06-04 Gary Benson <gbenson@redhat.com>
4520
4521 * target.h (target_ops): New field
4522 "to_augmented_libraries_svr4_read".
4523 (target_augmented_libraries_svr4_read): New macro.
4524 * target.c (update_current_target): Handle
4525 to_augmented_libraries_svr4_read.
4526 * remote.c (remote_state): New field
4527 "augmented_libraries_svr4_read".
4528 (remote_augmented_libraries_svr4_read_feature): New function.
4529 (remote_protocol_features): Add entry for
4530 "augmented-libraries-svr4-read".
4531 (remote_augmented_libraries_svr4_read): New function.
4532 (init_remote_ops): Initialize
4533 remote_ops.to_augmented_libraries_svr4_read.
4534
7f91dbec
GB
45352013-06-04 Gary Benson <gbenson@redhat.com>
4536
4537 * NEWS: Update.
4538
607ece04
GB
45392013-06-04 Gary Benson <gbenson@redhat.com>
4540
4541 * objfiles.h (inhibit_section_map_updates): New function
4542 declaration.
4543 (resume_section_map_updates): Likewise.
4544 (resume_section_map_updates_cleanup): Likewise.
4545 * objfiles.c (objfile_pspace_info): Removed field
4546 "objfiles_changed_p". New fields "new_objfiles_available",
4547 "section_map_dirty" and "inhibit_updates".
4548 (allocate_objfile): Set new_objfiles_available.
4549 (free_objfile): Set section_map_dirty.
4550 (objfile_relocate1): Likewise.
4551 (in_plt_section): Likewise.
4552 (find_pc_section): Update the conditions under which the
4553 section map will be updated.
4554 (inhibit_section_map_updates): New function.
4555 (resume_section_map_updates): Likewise.
4556 (resume_section_map_updates_cleanup): Likewise.
4557
9ee6a5ac
GB
45582013-06-04 Gary Benson <gbenson@redhat.com>
4559
4560 * probe.h (get_probe_argument_count): New declaration.
4561 (evaluate_probe_argument): Likewise.
4562 * probe.c (get_probe_argument_count): New function.
4563 (evaluate_probe_argument): Likewise.
4564 (probe_safe_evaluate_at_pc): Use the above new functions.
4565
845d4708
AM
45662013-06-04 Alan Modra <amodra@gmail.com>
4567
4568 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
4569 * rs6000-tdep.c (read_insn): Add frame param, don't assume big-endian.
4570 (ppc_insns_match_pattern): Add frame param. Avoid multiple
4571 target mem reads on optional insns.
4572 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Update
4573 ppc_insns_match_pattern calls.
4574 * ppc64-tdep.c (ppc64_standard_linkage2, ppc64_standard_linkage3):
4575 Add match for power7 thread safety insns, and new order of
4576 std 2,40(1) insn. Correct code shown for _dl_runtime_resolve
4577 invocation in comment, and update rest of comment.
4578 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN,
4579 PPC64_STANDARD_LINKAGE3_LEN): Delete.
4580 (ppc64_standard_linkage2_target): Update insn offsets.
4581 (ppc64_skip_trampoline_code): Use a single insn buffer. Match newer
4582 stubs first. Update calls.
4583
404e278f
YQ
45842013-06-04 Yao Qi <yao@codesourcery.com>
4585
4586 * solib.c (solib_find): Don't need dir separator if path has
4587 drive spec.
4588
f6aea118
JB
45892013-06-03 Joel Brobecker <brobecker@adacore.com>
4590
4591 Revert (indirectly causes a SIGSEGV):
4592 * machoread.c (macho_symfile_read): Assign first cleanup to
4593 'back_to'.
4594
87967e27
YQ
45952013-06-03 Yao Qi <yao@codesourcery.com>
4596
4597 * mi/mi-cmd-var.c (mi_no_values, mi_simple_values): Move to
4598 mi-parse.c. Make them static.
4599 (mi_all_values): Likewise.
4600 (mi_parse_values_option): Move to mi-parse.c. Rename it to
4601 mi_parse_print_values. Make it external.
4602 * mi/mi-cmds.h (mi_no_values, mi_simple_values, mi_all_values):
4603 Remove the declarations.
4604 * mi/mi-parse.c (mi_parse_print_values): Moved from mi-cmd-var.c.
4605 * mi/mi-parse.h (mi_parse_print_values): Declare.
4606 * mi/mi-cmd-stack.c: Include mi-parse.h.
4607 (parse_print_values): Remove
4608 (mi_cmd_stack_list_locals): Call mi_parse_print_values instead
4609 of parse_print_values.
4610 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Likewise.
4611
3ca73e0c
YQ
46122013-05-31 Pedro Alves <pedro@codesourcery.com>
4613 Yao Qi <yao@codesourcery.com>
4614
4615 * tracepoint.c (all_tracepoint_actions_and_cleanup): Declare.
4616 (encode_actions): Move code to ...
4617 (all_tracepoint_actions_and_cleanup): ... here. New.
4618 (trace_dump_command): Likewise.
4619
4e993a19
TT
46202013-05-30 Tom Tromey <tromey@redhat.com>
4621
4622 * symmisc.c (maintenance_expand_symtabs): Call do_cleanups.
4623
e3b76b4f
TT
46242013-05-30 Tom Tromey <tromey@redhat.com>
4625
4626 * xml-support.c (gdb_xml_create_parser_and_cleanup): Rename from
4627 gdb_xml_create_parser_and_cleanup_1. Return a cleanup. Remove
4628 'old_chain' argument. Add 'parser_result' argument.
4629 (gdb_xml_create_parser_and_cleanup): Remove old version.
4630 (gdb_xml_parse_quick): Update.
4631 (xml_process_xincludes): Update.
4632 * xml-support.h (gdb_xml_create_parser_and_cleanup): Don't
4633 declare.
4634
db26349c
TT
46352013-05-30 Tom Tromey <tromey@redhat.com>
4636
4637 * probe.c (collect_probes): Check arguments for NULL before
4638 calling compile_rx_or_error.
4639 * utils.c (compile_rx_or_error): Require 'rx' to be non-NULL.
4640 Remove NULL return.
4641
77f9e713
TT
46422013-05-30 Tom Tromey <tromey@redhat.com>
4643
4644 * infrun.c (adjust_pc_after_break): Introduce an outer null
4645 cleanup.
4646
45475de7
TT
46472013-05-30 Tom Tromey <tromey@redhat.com>
4648
4649 * mi/mi-cmd-var.c (varobj_update_one): Add an outer null cleanup.
4650
ac5007fd
TT
46512013-05-30 Tom Tromey <tromey@redhat.com>
4652
4653 * cli/cli-script.c (read_command_lines_1): Use a null cleanup
4654 for 'old_chain'. Do not check 'head' before processing
4655 cleanups.
4656
cd82eddc
TT
46572013-05-30 Tom Tromey <tromey@redhat.com>
4658
4659 * mi/mi-cmd-stack.c (list_arg_or_local): Remove
4660 "cleanup_tuple".
4661
57cee33a
TT
46622013-05-30 Tom Tromey <tromey@redhat.com>
4663
4664 * dbxread.c (dbx_read_symtab): Declare 'back_to' in a more
4665 inner scope. Unconditionally call do_cleanups.
4666
795d915c
TT
46672013-05-30 Tom Tromey <tromey@redhat.com>
4668
4669 * source.c (find_and_open_source): Call do_cleanups.
4670
1fc3cf4a
TT
46712013-05-30 Tom Tromey <tromey@redhat.com>
4672
4673 * linux-thread-db.c (thread_db_load_search): Unconditionally
4674 call do_cleanups.
4675
e35ac9bf
TT
46762013-05-30 Tom Tromey <tromey@redhat.com>
4677
4678 * solib-aix.c (solib_aix_bfd_open): Don't use a null cleanup
4679 for 'cleanup'; instead use a later one.
4680
f3300387
TT
46812013-05-30 Tom Tromey <tromey@redhat.com>
4682
4683 * python/py-breakpoint.c (bppy_get_commands): Use
4684 explicit, unconditional return.
4685 * python/py-frame.c (frapy_read_var): Likewise.
4686 * python/python.c (gdbpy_decode_line): Likewise.
4687
c27e16e3
TT
46882013-05-30 Tom Tromey <tromey@redhat.com>
4689
4690 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Call
4691 do_cleanups on all return paths.
4692
5ae85e44
TT
46932013-05-30 Tom Tromey <tromey@redhat.com>
4694
4695 * top.c (execute_command): Discard 'cleanup_if_error' cleanups.
4696
73b8d9da
TT
46972013-05-30 Tom Tromey <tromey@redhat.com>
4698
4699 * stabsread.c (read_struct_type): Call do_cleanups along
4700 all return paths.
4701
7d266584
MR
47022013-05-30 Maciej W. Rozycki <macro@codesourcery.com>
4703
4704 * mips-linux-tdep.c: Adjust formatting throughout.
4705
0f900f54
TT
47062013-05-30 Tom Tromey <tromey@redhat.com>
4707
4708 * mipsread.c (read_alphacoff_dynamic_symtab): Call do_cleanups
4709 along all return paths.
4710
a991ac28
TT
47112013-05-30 Tom Tromey <tromey@redhat.com>
4712
4713 * symfile.c (find_separate_debug_file): Call do_cleanups
4714 along all return paths.
4715
1abaf042
TT
47162013-05-30 Tom Tromey <tromey@redhat.com>
4717
4718 * symtab.c (search_symbols): Introduce a null cleanup for
4719 'retval_chain'.
4720
edefe1da
TT
47212013-05-30 Tom Tromey <tromey@redhat.com>
4722
4723 * python/py-value.c (valpy_binop): Call do_cleanups before
4724 exiting loop.
4725
54f72dcc
TT
47262013-05-30 Tom Tromey <tromey@redhat.com>
4727
4728 * python/py-prettyprint.c (print_children): Remove extra
4729 do_cleanups call.
4730
af1c6971
TT
47312013-05-30 Tom Tromey <tromey@redhat.com>
4732
4733 * python/py-frame.c (frapy_read_var): Call do_cleanups along
4734 all return paths.
4735
b862ce75
TT
47362013-05-30 Tom Tromey <tromey@redhat.com>
4737
4738 * python/py-breakpoint.c (bppy_get_commands): Call do_cleanups
4739 along all return paths.
4740
e12fefc8
TT
47412013-05-30 Tom Tromey <tromey@redhat.com>
4742
4743 * cli/cli-logging.c (set_logging_redirect): Unconditionally
4744 call do_cleanups.
4745
4867f990
TT
47462013-05-30 Tom Tromey <tromey@redhat.com>
4747
4748 * varobj.c (c_value_of_root): Call do_cleanups along all
4749 return paths.
4750
4fd2d6af
TT
47512013-05-30 Tom Tromey <tromey@redhat.com>
4752
4753 * tracepoint.c (trace_dump_command): Unconditionally call
4754 do_cleanups.
4755
752eb8b4
TT
47562013-05-30 Tom Tromey <tromey@redhat.com>
4757
4758 * breakpoint.c (output_thread_groups, parse_cmd_to_aexpr): Call
4759 do_cleanups earlier.
4760
e42d0aa5
TT
47612013-05-30 Tom Tromey <tromey@redhat.com>
4762
4763 * machoread.c (macho_symfile_read): Assign first cleanup to
4764 'back_to'.
4765
4bbc010a
TT
47662013-05-30 Tom Tromey <tromey@redhat.com>
4767
4768 * m32r-rom.c (m32r_load): Call do_cleanups at all returns.
4769
b9635925
TT
47702013-05-30 Tom Tromey <tromey@redhat.com>
4771
4772 * mi/mi-main.c (list_available_thread_groups): Call do_cleanups.
4773
25f43500
TT
47742013-05-30 Tom Tromey <tromey@redhat.com>
4775
4776 * inf-ptrace.c (inf_ptrace_create_inferior): Unconditionally
4777 call discard_cleanups.
4778 (inf_ptrace_attach): Likewise.
4779
d6a2e54a
TT
47802013-05-30 Tom Tromey <tromey@redhat.com>
4781
4782 * remote-mips.c (mips_exit_debug): Call do_cleanups on all
4783 return paths.
4784 (mips_initialize): Likewise.
4785 (common_open): Call do_cleanups.
4786
48be7c1b
TT
47872013-05-30 Tom Tromey <tromey@redhat.com>
4788
4789 * utils.c (internal_vproblem): Call do_cleanups.
4790
e61727ab
TT
47912013-05-30 Tom Tromey <tromey@redhat.com>
4792
4793 * linespec.c (find_linespec_symbols): Don't reassign to 'cleanup'.
4794
b81b921f
TT
47952013-05-30 Tom Tromey <tromey@redhat.com>
4796
4797 * cli/cli-script.c (setup_user_args): Don't return after error.
4798
fe48dfb1
TT
47992013-05-30 Tom Tromey <tromey@redhat.com>
4800
4801 * somread.c (som_symtab_read): Call do_cleanups.
4802
27833de7
TT
48032013-05-30 Tom Tromey <tromey@redhat.com>
4804
4805 * printcmd.c (print_command_1): Unconditionally call do_cleanups.
4806
5b3fca71
TT
48072013-05-30 Tom Tromey <tromey@redhat.com>
4808
4809 * cli/cli-cmds.c (cd_command, alias_command): Call do_cleanups.
4810 * cli/cli-dump.c (restore_binary_file): Call do_cleanups.
4811 * interps.c (interpreter_exec_cmd): Call do_cleanups.
4812 * source.c (show_substitute_path_command): Call do_cleanups.
4813 (unset_substitute_path_command, set_substitute_path_command):
4814 Likewise.
4815 * symfile.c (load_command): Call do_cleanups.
4816
af83e3f8
TT
48172013-05-30 Tom Tromey <tromey@redhat.com>
4818
4819 * contrib/cleanup_check.py: New file.
4820 * contrib/gcc-with-excheck: Add option parsing.
4821
564eac42
JB
48222013-05-30 Joel Brobecker <brobecker@adacore.com>
4823
4824 * windows-nat.c (windows_delete_thread): Add missing space
4825 in cast expression.
4826
47902076
HAQ
48272013-05-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
4828
4829 * inferior.c (top level): Include tilde.h.
4830 (add_inferior_command): Call tilde_expand on the value of 'exec'
4831 argument.
4832
23da373a
YQ
48332013-05-30 Pedro Alves <pedro@codesourcery.com>
4834 Yao Qi <yao@codesourcery.com>
4835
4836 * tracepoint.c (encode_actions_1): Remove parameter 't'.
4837 Caller update.
4838 (encode_actions): Likewise.
4839 * remote.c (remote_download_tracepoint): Caller update.
4840 * tracepoint.h (encode_actions): Update declaration.
4841
a6e6f791
PA
48422013-05-30 Pedro Alves <palves@redhat.com>
4843
4844 * python/python-internal.h (gdb_Py_DECREF): Cast OP to PyObject
4845 pointer.
4846
36d25514
YQ
48472013-05-30 Yao Qi <yao@codesourcery.com>
4848
4849 * remote.c (remote_check_symbols): Remove unused parameter
4850 'objfile'.
4851 Declaration update.
4852 (remote_start_remote, remote_new_objfile): Caller update.
4853
62a813cc
YQ
48542013-05-30 Yao Qi <yao@codesourcery.com>
4855
4856 * mi/mi-cmds.c (mi_cmds): Define MI command
4857 '-exec-arguments' by macro DEF_MI_CMD_CLI_1 instead of
4858 DEF_MI_CMD_CLI.
4859
28439a30
PA
48602013-05-29 Pedro Alves <palves@redhat.com>
4861
4862 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint)
4863 (remote_insert_watchpoint, remote_remove_watchpoint)
4864 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
4865 (remote_verify_memory, compare_sections_command)
4866 (remote_search_memory): Set the general process/thread on the
4867 remote side.
4868
6ac1c082
PA
48692013-05-29 Pedro Alves <palves@redhat.com>
4870
4871 * aarch64-tdep.c: Don't include "features/aarch64-without-fpu.c".
4872 (_initialize_aarch64_tdep): Don't call
4873 initialize_tdesc_aarch64_without_fpu.
4874 * features/Makefile (WHICH): Remove reference to
4875 aarch64-without-fpu.
4876 * features/aarch64-without-fpu.c: Delete file.
4877 * regformats/aarch64-without-fpu.dat: Delete file.
4878
a73e3634
YQ
48792013-05-28 Yao Qi <yao@codesourcery.com>
4880
4881 * tracepoint.c (stringify_collection_list): Remove parameter
4882 'string'.
4883 (encode_actions): Caller update. Remove local variables.
4884
c0ea94eb
YQ
48852013-05-24 Yao Qi <yao@codesourcery.com>
4886
4887 * tracepoint.c (TFILE_PID): Remove.
4888 (tfile_open): Don't add thread and inferior.
4889 (tfile_close): Don't set 'inferior_ptid'. Don't call
4890 exit_inferior_silent.
4891 (tfile_thread_alive): Remove.
4892 (init_tfile_ops): Don't set field 'to_thread_alive' of
4893 tfile_ops.
4894
20d7f211
DE
48952013-05-23 Doug Evans <dje@google.com>
4896
4897 * contrib/cc-with-tweaks.sh (-p): Handle no dwo files.
4898
8658d16d
PA
48992013-05-23 Pedro Alves <palves@redhat.com>
4900
4901 * common/filestuff.c [USE_WIN32API]: Define HAVE_SOCKETS.
4902 [HAVE_SYS_SOCKET_H]: Define HAVE_SOCKETS.
4903 (socket_mark_cloexec, gdb_socketpair_cloexec, gdb_socket_cloexec):
4904 Only define if HAVE_SOCKETS is defined.
4905 * configure.ac: Check for sys/socket.h.
4906 * config.in, configure: Regenerate.
4907
21aa081e
PA
49082013-05-23 Pedro Alves <palves@redhat.com>
4909
4910 * dwarf2read.c (create_dwp_hash_table, create_dwo_in_dwp)
4911 (open_and_init_dwp_file): Use %s/pulongest instead of %u for
4912 printing uint32_t variables.
4913
c2d6af84
PA
49142013-05-23 Pedro Alves <palves@redhat.com>
4915
4916 * NEWS: Mention GDBserver range stepping support.
4917
c1e36e3e
PA
49182013-05-23 Yao Qi <yao@codesourcery.com>
4919 Pedro Alves <palves@redhat.com>
4920
4921 * gdbthread.h (struct thread_control_state) <may_range_step>: New
4922 field.
4923 * infcmd.c (step_once, until_next_command): Enable range stepping.
4924 * infrun.c (displaced_step_prepare): Disable range stepping.
4925 (resume): Disable range stepping if stepping over a breakpoint or
4926 we have software watchpoints. If range stepping is enabled,
4927 assert the thread is in the stepping range.
4928 (clear_proceed_status_thread): Clear may_range_step.
4929 (handle_inferior_event): Disable range stepping as soon as we know
4930 the thread that hit the event. Re-enable it whenever we're going
4931 to step with a step range.
4932 * remote.c (struct vCont_action_support) <r>: New field.
4933 (use_range_stepping): New global.
4934 (remote_vcont_probe): Handle 'r' action.
4935 (append_resumption): Append an 'r' action if the thread may range
4936 step.
4937 (show_range_stepping): New function.
4938 (set_range_stepping): New function.
4939 (_initialize_remote): Call add_setshow_boolean_cmd to register the
4940 'set range-stepping' and 'show range-stepping' commands.
4941 * NEWS: Mention range stepping, the new vCont;r action, and the
4942 new "set/show range-stepping" commands.
4943
d458bd84
PA
49442013-05-23 Yao Qi <yao@codesourcery.com>
4945 Pedro Alves <palves@redhat.com>
4946
4947 * remote.c (struct vCont_action_support): New struct.
4948 (struct remote_state) <support_vCont_t>: Remove field.
4949 <vCont_actions_support>: New field.
4950 (remote_vcont_probe, remote_stop_ns): Update.
4951
ce4c476a
PA
49522013-05-23 Yao Qi <yao@codesourcery.com>
4953 Pedro Alves <palves@redhat.com>
4954
4955 * gdbthread.h (pc_in_thread_step_range): New declaration.
4956 * thread.c (pc_in_thread_step_range): New function.
4957 * infrun.c (handle_inferior_event): Use it.
4958
ce70887a
JB
49592013-05-23 Joel Brobecker <brobecker@adacore.com>
4960
4961 * mi/mi-cmd-break.c (mi_argv_to_format): Use xsnprintf instead
4962 of sprintf.
4963
55b87a52
KS
49642013-05-22 Keith Seitz <keiths@redhat.com>
4965
4966 * ada-lang.c (is_known_support_routine): Add explicit free of
4967 'func_name' from find_frame_funname.
4968 (ada_unhandled_exception_name_addr_from_raise): Add cleanups
4969 for func_name from find_frame_funname.
4970 * python/py-frame.c (frapy_name): Add explicit free of
4971 'name' from find_frame_funname.
4972 * stack.c (find_frame_funname): Add comment explaining that
4973 funcp must be freed by the caller.
4974 Return copy of symbol names instead of pointers.
4975 (print_frame): Add a cleanup for 'funname' from
4976 find_frame_funname.
4977 * stack.h (find_frame_funname): Remove "const" from
4978 'funname' parameter.
4979
5f2e6b00
TT
49802013-05-22 Tom Tromey <tromey@redhat.com>
4981
4982 PR c++/15401:
4983 * c-valprint.c (c_value_print): Use value_addr for
4984 references. Convert back to reference type with value_ref.
4985
d85c4847
EZ
49862013-05-22 Eli Zaretskii <eliz@gnu.org>
4987
4988 * windows-nat.c (handle_unload_dll): Don't call solib_add for the
4989 unloaded DLL, it will be done by handle_solib_event. See
4990 http://sourceware.org/ml/gdb-patches/2013-05/msg00713.html for the
4991 details.
4992
54eb231c
PM
49932013-05-22 Phil Muldoon <pmuldoon@redhat.com>
4994
4995 * ui-out.c: Create typedef ui_out_level_p and define vector
4996 operations for that type.
4997 (struct ui_out): Use a vector instead of an array.
4998 (current_level): Return level from a vector.
4999 (push_level): Create a level in a vector.
5000 (pop_level): Delete a level in a vector.
5001 (ui_out_new): Create initial level zero level, and store in a
5002 vector.
5003 (ui_out_destroy): Add vector cleanup.
5004
ac90359c
PA
50052013-05-22 Pedro Alves <palves@redhat.com>
5006
5007 * python/python-internal.h (gdb_Py_DECREF): Tag with
5008 "ARI: editCase function".
5009
6dcc1893
PP
50102013-05-21 Paul Pluzhnikov <ppluzhnikov@google.com>
5011
5012 * solib-svr4.c (svr4_free_so): Protect against NULL dereference.
5013
c8c735b9
PA
50142013-05-21 Pedro Alves <palves@redhat.com>
5015
5016 * python/py-prettyprint.c (apply_val_pretty_printer): Check
5017 whether PRINTER is NULL before installing a Py_DECREF cleanup.
5018 * python/py-utils.c (py_decref): Don't check for NULL before
5019 calling Py_DECREF.
5020
1915daeb
PA
50212013-05-21 Pedro Alves <palves@redhat.com>
5022
5023 * python/py-utils.c (py_decref): Remove extra braces.
5024 (gdb_pymodule_addobject): Remove extra braces.
5025 * python-internal.h (gdb_Py_DECREF): New static inline function.
5026 (Py_DECREF): Redefine as calling gdb_Py_DECREF.
5027
bd9673a4
PW
50282013-05-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5029
5030 * breakpoints.c (detach_breakpoints): Do not
5031 detach breakpoints locations with loc_type bp_loc_other.
5032
ff6009d0
JK
50332013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5034
5035 Workaround Python 2.6.
5036 * python/py-utils.c (gdb_pymodule_addobject): Wrap Py_DECREF into
5037 a block.
5038
3641da11
JK
50392013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5040
5041 Code cleanup: constification.
5042 * solib.c (solib_ops): Make return type and ops variable type const.
5043 (set_solib_ops): Make the new_ops parameter and ops variable const.
5044 (solib_find, solib_map_sections, clear_so, free_so, update_solib_list)
5045 (solib_add, solib_keep_data_in_core, clear_solib)
5046 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
5047 (reload_shared_libraries, solib_global_lookup): Make the ops variable
5048 const.
5049 * solib.h (set_solib_ops): Make the new_ops parameter const.
5050
776af39e
JB
50512013-05-21 Joel Brobecker <brobecker@adacore.com>
5052
5053 * data-directory/Makefile.in (SYSTEM_GDBINIT_SRCDIR): New
5054 variable.
5055 (VPATH): Add SYSTEM_GDBINIT_SRCDIR.
5056 (SYSTEM_GDBINIT_DIR, SYSTEM_GDBINIT_INSTALL_DIR)
5057 (SYSTEM_GDBINIT_FILES): New variables.
5058 (all): Add stamp-system-gdbinit.
5059 (stamp-system-gdbinit): New rule.
5060 (clean-system-gdbinit, install-system-gdbinit)
5061 (uninstall-system-gdbinit): New rules. Make them .PHONY.
5062 (install-only): Add dependency on install-system-gdbinit.
5063 (uninstall): Add dependency on uninstall-system-gdbinit.
5064 (clean): Add dependency on clean-system-gdbinit.
5065 * system-gdbinit/elinos.py: New file.
5066 * system-gdbinit/wrs-linux.py: New file.
5067
1509e573
JB
50682013-05-21 Joel Brobecker <brobecker@adacore.com>
5069
5070 * ada-lang.c (old_renaming_is_invisible): Fix cleanup leak.
5071
c5867ab6
HZ
50722013-05-21 Hui Zhu <hui@codesourcery.com>
5073
5074 * breakpoint.c (dprintf_breakpoint_ops): Remove its static.
5075 * breakpoint.h (dprintf_breakpoint_ops): Add extern.
5076 * mi/mi-cmd-break.c (ctype.h): New include.
5077 (gdb_obstack.h): New include.
5078 (mi_argv_to_format, mi_cmd_break_insert_1): New.
5079 (mi_cmd_break_insert): Call mi_cmd_break_insert_1.
5080 (mi_cmd_dprintf_insert): New.
5081 * mi/mi-cmds.c (mi_cmds): Add "dprintf-insert".
5082 * mi/mi-cmds.h (mi_cmd_dprintf_insert): New extern.
5083
7d38e38f
TT
50842013-05-20 Tom Tromey <tromey@redhat.com>
5085
5086 * python/py-prettyprint.c (search_pp_list): Decref 'attr'.
5087
97b77b39
TT
50882013-05-20 Tom Tromey <tromey@redhat.com>
5089
5090 * python/py-value.c (valpy_get_dynamic_type): Simplify
5091 dynamic_type assignment. Use Py_XINCREF.
5092
53e66479
TT
50932013-05-20 Tom Tromey <tromey@redhat.com>
5094
5095 * python/py-type.c (typy_fields): Unconditionally decref 'r'.
5096
dcf87832
TT
50972013-05-20 Tom Tromey <tromey@redhat.com>
5098
5099 * python/py-frame.c (frapy_older, frapy_newer, gdbpy_newest_frame)
5100 (gdbpy_selected_frame): Move object-construction code
5101 out of TRY_CATCH.
5102
aa36459a
TT
51032013-05-20 Tom Tromey <tromey@redhat.com>
5104
5105 * python/py-arch.c (gdbpy_initialize_arch): Use
5106 gdb_pymodule_addobject.
5107 * python/py-block.c (gdbpy_initialize_blocks): Use
5108 gdb_pymodule_addobject.
5109 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Use
5110 gdb_pymodule_addobject.
5111 * python/py-cmd.c (gdbpy_initialize_breakpoints): Use
5112 gdb_pymodule_addobject.
5113 * python/py-event.c (gdbpy_initialize_event_generic): Use
5114 gdb_pymodule_addobject.
5115 * python/py-evtregistry.c (gdbpy_initialize_eventregistry): Use
5116 gdb_pymodule_addobject.
5117 * python/py-evts.c (add_new_registry): Use
5118 gdb_pymodule_addobject.
5119 (gdbpy_initialize_py_events): Likewise.
5120 * python/py-finishbreakpoint.c
5121 (gdbpy_initialize_finishbreakpoints): Use
5122 gdb_pymodule_addobject.
5123 * python/py-frame.c (gdbpy_initialize_frames): Use
5124 gdb_pymodule_addobject.
5125 * python/py-function.c (gdbpy_initialize_functions): Use
5126 gdb_pymodule_addobject.
5127 * python/py-inferior.c (gdbpy_initialize_inferior): Use
5128 gdb_pymodule_addobject.
5129 * python/py-infthread.c (gdbpy_initialize_thread): Use
5130 gdb_pymodule_addobject.
5131 * python/py-objfile.c (gdbpy_initialize_objfile): Use
5132 gdb_pymodule_addobject.
5133 * python/py-param.c (gdbpy_initialize_parameters): Use
5134 gdb_pymodule_addobject.
5135 * python/py-progspace.c (gdbpy_initialize_pspace): Use
5136 gdb_pymodule_addobject.
5137 * python/py-symbol.c (gdbpy_initialize_symbols): Use
5138 gdb_pymodule_addobject.
5139 * python/py-symtab.c (gdbpy_initialize_symtabs): Use
5140 gdb_pymodule_addobject.
5141 * python/py-type.c (gdbpy_initialize_types): Use
5142 gdb_pymodule_addobject.
5143 * python/py-utils.c (gdb_pymodule_addobject): New function.
5144 * python/py-value.c (gdbpy_initialize_values): Use
5145 gdb_pymodule_addobject.
5146 * python/python-internal.h (gdb_pymodule_addobject): Declare.
5147 * python/python.c (_initialize_python): Use
5148 gdb_pymodule_addobject.
5149
3d4a3c3e
TT
51502013-05-20 Tom Tromey <tromey@redhat.com>
5151
5152 * python/py-cmd.c (cmdpy_completer): Use explicit decref.
5153 * python/py-param.c (get_set_value, get_show_value): Use
5154 explicit decrefs.
5155 * python/python.c (start_type_printers, apply_type_printers):
5156 Use explicit decrefs.
5157
72ff8829
TT
51582013-05-20 Tom Tromey <tromey@redhat.com>
5159
5160 * python/py-evts.c (gdbpy_initialize_py_events): Don't
5161 incref the module.
5162
02146ba5
TT
51632013-05-20 Tom Tromey <tromey@redhat.com>
5164
5165 * python/python.c (gdbpy_run_events): Decref the result
5166 of PyObject_CallObject.
5167
33ee792f
TT
51682013-05-20 Tom Tromey <tromey@redhat.com>
5169
5170 * python/py-symtab.c (set_sal): Use
5171 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION. Return -1 on error.
5172 (symtab_and_line_to_sal_object): Update.
5173
fcb49fc8
TT
51742013-05-20 Tom Tromey <tromey@redhat.com>
5175
5176 * python/py-param.c (compute_enum_values): Decref 'item'.
5177
0646da15
TT
51782013-05-20 Tom Tromey <tromey@redhat.com>
5179
5180 * mi/mi-main.c: Include python-internal.h.
5181 (mi_cmd_list_features): Check gdb_python_initialized.
5182 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
5183 (python_inferior_exit, python_new_objfile, add_thread_object)
5184 (delete_thread_object, py_free_inferior): Check
5185 gdb_python_initialized.
5186 * python/py-prettyprint.c (apply_val_pretty_printer): Check
5187 gdb_python_initialized.
5188 * python/py-type.c (save_objfile_types): Check
5189 gdb_python_initialized.
5190 * python/python-internal.h (gdb_python_initialized): Declare.
5191 * python/python.c (ensure_python_env): Throw exception if
5192 Python not initialized.
5193 (before_prompt_hook, source_python_script_for_objfile)
5194 (start_type_printers, apply_type_printers,
5195 free_type_printers): Check gdb_python_initialized.
5196 * varobj.c (varobj_get_display_hint)
5197 (dynamic_varobj_has_child_method, update_dynamic_varobj_children)
5198 (install_new_value_visualizer, varobj_set_visualizer)
5199 (value_get_print_value): Check gdb_python_initialized.
5200
999633ed
TT
52012013-05-20 Tom Tromey <tromey@redhat.com>
5202
5203 * python/py-arch.c (gdbpy_initialize_arch): Return 'int'.
5204 Check errors.
5205 * python/py-auto-load.c (gdbpy_initialize_auto_load): Return 'int'.
5206 * python/py-block.c (gdbpy_initialize_blocks): Return 'int'.
5207 Check errors.
5208 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Return 'int'.
5209 Check errors.
5210 * python/py-cmd.c (gdbpy_initialize_commands): Return 'int'.
5211 Check errors.
5212 * python/py-event.c (gdbpy_initialize_event): Return 'int'.
5213 Check errors.
5214 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Change generated
5215 init function to return 'int'.
5216 * python/py-evtregistry.c (gdbpy_initialize_eventregistry):
5217 Return 'int'. Check errors.
5218 * python/py-evts.c (gdbpy_initialize_py_events): Return 'int'.
5219 Check errors.
5220 * python/py-finishbreakpoint.c (gdbpy_initialize_finishbreakpoints):
5221 Return 'int'. Check errors.
5222 * python/py-frame.c (gdbpy_initialize_frames): Return 'int'.
5223 Check errors.
5224 * python/py-function.c (gdbpy_initialize_functions): Return 'int'.
5225 Check errors.
5226 * python/py-gdb-readline.c (gdbpy_initialize_gdb_readline):
5227 Check errors.
5228 * python/py-inferior.c (gdbpy_initialize_inferior): Return 'int'.
5229 Check errors.
5230 * python/py-infthread.c (gdbpy_initialize_thread): Return 'int'.
5231 Check errors.
5232 * python/py-lazy-string.c (gdbpy_initialize_lazy_string): Return 'int'.
5233 Check errors.
5234 * python/py-objfile.c (gdbpy_initialize_objfile): Return 'int'.
5235 Check errors.
5236 * python/py-param.c (gdbpy_initialize_parameters): Return 'int'.
5237 Check errors.
5238 * python/py-progspace.c (gdbpy_initialize_pspace): Return 'int'.
5239 Check errors.
5240 * python/py-symbol.c (gdbpy_initialize_symbols): Return 'int'.
5241 Check errors.
5242 * python/py-symtab.c (gdbpy_initialize_symtabs): Return 'int'.
5243 Check errors.
5244 * python/py-type.c (gdbpy_initialize_types): Return 'int'.
5245 Check errors.
5246 * python/py-value.c (gdbpy_initialize_values): Return 'int'.
5247 Check errors.
5248 * python/python-internal.h (gdbpy_initialize_auto_load,
5249 gdbpy_initialize_values, gdbpy_initialize_frames,
5250 gdbpy_initialize_symtabs, gdbpy_initialize_commands,
5251 gdbpy_initialize_symbols, gdbpy_initialize_symtabs,
5252 gdbpy_initialize_blocks, gdbpy_initialize_types,
5253 gdbpy_initialize_functions, gdbpy_initialize_pspace,
5254 gdbpy_initialize_objfile, gdbpy_initialize_breakpoints,
5255 gdbpy_initialize_finishbreakpoints,
5256 gdbpy_initialize_lazy_string, gdbpy_initialize_parameters,
5257 gdbpy_initialize_thread, gdbpy_initialize_inferior,
5258 gdbpy_initialize_eventregistry, gdbpy_initialize_event,
5259 gdbpy_initialize_py_events, gdbpy_initialize_stop_event,
5260 gdbpy_initialize_signal_event,
5261 gdbpy_initialize_breakpoint_event,
5262 gdbpy_initialize_continue_event,
5263 gdbpy_initialize_exited_event, gdbpy_initialize_thread_event,
5264 gdbpy_initialize_new_objfile_event, gdbpy_initialize_arch):
5265 Update. Use CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
5266 * python/python.c (gdb_python_initialized): New global.
5267 (gdbpy_initialize_events): Return 'int'. Check errors.
5268 (_initialize_python): Check errors. Set
5269 gdb_python_initialized.
5270
18868860
TT
52712013-05-20 Tom Tromey <tromey@redhat.com>
5272
5273 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope):
5274 Decref the reslut of PyObject_CallMethod.
5275
9f4ff0c2
TT
52762013-05-20 Tom Tromey <tromey@redhat.com>
5277
5278 * python/py-event.c (gdbpy_initialize_event_generic): Return
5279 early if PyType_Ready fails.
5280
0d3a2e8a
TT
52812013-05-20 Tom Tromey <tromey@redhat.com>
5282
5283 * python/py-type.c (make_fielditem): Add gdb_assert_not_reached
5284 as 'default' in the switch.
5285
b86af38a
TT
52862013-05-20 Tom Tromey <tromey@redhat.com>
5287
5288 * python/py-inferior.c (gdbpy_inferiors): Update. Hoist
5289 get_addr_from_python calls out of TRY_CATCH.
5290 (infpy_write_memory, infpy_search_memory): Likewise.
5291 * python/py-utils.c (get_addr_from_python): Return negative
5292 value on error. Use TRY_CATCH.
5293 * python/python-internal.h (get_addr_from_python): Use
5294 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
5295
c127ec58
TT
52962013-05-20 Tom Tromey <tromey@redhat.com>
5297
5298 * python/py-event.c (evpy_emit_event): Decref the
5299 result of PyObject_CallFunctionObjArgs.
5300
ba327838
TT
53012013-05-20 Tom Tromey <tromey@redhat.com>
5302
5303 * python/py-cmd.c (cmdpy_completer): Use iterator protocol.
5304 Correctly decref.
5305
d8191432
TT
53062013-05-20 Tom Tromey <tromey@redhat.com>
5307
5308 * python/py-cmd.c (cmdpy_init): Decref 'ds_obj'.
5309
5d153bd1
TT
53102013-05-20 Tom Tromey <tromey@redhat.com>
5311
5312 * python/py-event.h (gdbpy_initialize_event_generic): Use
5313 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
5314 * python/py-evts.c (add_new_registry): Use
5315 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
5316 * python/python-internal.h
5317 (CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION): New macro.
5318
56cc411c
TT
53192013-05-20 Tom Tromey <tromey@redhat.com>
5320
5321 * python/py-arch.c (archpy_disassemble): Update.
5322 * python/py-type.c (typy_get_composite, typy_lookup_typename)
5323 (typy_lookup_type): Use GDB_PY_HANDLE_EXCEPTION.
5324 * python/py-utils.c (gdbpy_convert_exception): Return 'void'.
5325 * python/python-internal.h (CPYCHECKER_SETS_EXCEPTION): New
5326 macro.
5327 (GDB_PY_HANDLE_EXCEPTION): Update.
5328 (gdbpy_convert_exception): Update. Use CPYCHECKER_SETS_EXCEPTION.
5329
8919e174
TT
53302013-05-20 Tom Tromey <tromey@redhat.com>
5331
5332 * python/python-internal.h (events_object_type): Remove.
5333
9b08f225
TT
53342013-05-20 Tom Tromey <tromey@redhat.com>
5335
f5aee5ee
AM
5336 * python/py-event.h (evpy_emit_event): Use
5337 CPYCHECKER_STEALS_REFERENCE_TO_ARG.
5338 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
5339 New macro.
9b08f225 5340
f04010ff
TT
53412013-05-20 Tom Tromey <tromey@redhat.com>
5342
5343 * py-evtregistry.c (create_event_object): Decref
5344 eventregistry_object if PyList_New fails.
5345
3919fd96
TT
53462013-05-20 Tom Tromey <tromey@redhat.com>
5347
5348 * py-cmd.c (gdbpy_string_to_argv): Check result of
5349 PyList_New.
5350
0430e8cb
TT
53512013-05-20 Tom Tromey <tromey@redhat.com>
5352
5353 * python/python.c (before_prompt_hook): Add cleanup to
5354 decref 'hook'.
5355
764123e4
TT
53562013-05-20 Tom Tromey <tromey@redhat.com>
5357
5358 * python/py-function.c (fnpy_init): Decref result of
5359 PyObject_GetAttrString.
5360
634c58be
TT
53612013-05-20 Tom Tromey <tromey@redhat.com>
5362
5363 * python/py-threadevent.c (get_event_thread): Use
5364 CPYCHECKER_RETURNS_BORROWED_REF.
5365 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
5366 New define.
5367 (pspace_to_pspace_object, objfile_to_objfile_object)
5368 (find_thread_object): Use it.
5369
62eec1a5
TT
53702013-05-20 Tom Tromey <tromey@redhat.com>
5371
5372 * python/py-arch.c (arch_object_type): Use
5373 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5374 * python/py-block.c (block_syms_iterator_object_type):
5375 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5376 * python/py-bpevent.c (breakpoint_event_object_type):
5377 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5378 * python/py-cmd.c (cmdpy_object_type): Use
5379 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5380 * python/py-continueevent.c (continue_event_object_type):
5381 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5382 * python/py-event.h (GDBPY_NEW_EVENT_TYPE):
5383 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5384 * python/py-events.h (thread_event_object_type):
5385 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5386 * python/py-evtregistry.c (eventregistry_object_type): Use
5387 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5388 * python/py-exitedevent.c (exited_event_object_type):
5389 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5390 * python/py-finishbreakpoint.c (finish_breakpoint_object_type):
5391 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5392 * python/py-function.c (fnpy_object_type): Use
5393 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5394 * python/py-inferior.c (inferior_object_type, membuf_object_type):
5395 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5396 * python/py-infthread.c (thread_object_type): Use
5397 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5398 * python/py-lazy-string.c (lazy_string_object_type):
5399 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5400 * python/py-newobjfileevent.c (new_objfile_event_object_type):
5401 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5402 * python/py-objfile.c (objfile_object_type): Use
5403 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5404 * python/py-param.c (parmpy_object_type):
5405 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5406 * python/py-progspace.c (pspace_object_type):
5407 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5408 * python/py-signalevent.c (signal_event_object_type):
5409 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5410 * python/py-symtab.c (symtab_object_type, sal_object_type): Use
5411 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5412 * python/py-type.c (type_object_type, field_object_type)
5413 (type_iterator_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5414 * python/py-internal.h (CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF): New
5415 define.
5416 (value_object_type, block_object_type, symbol_object_type)
5417 (event_object_type, stop_event_object_type, breakpoint_object_type)
5418 (frame_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5419
81ea8796
AT
54202013-05-20 Andreas Tobler <andreas@fgznet.ch>
5421
5422 * Makefile.in (ALL_TARGET_OBS): Add ppcfbsd-tdep.o.
5423 (ALLDEPFILES): Add ppcfbsd-nat.c and ppcfbsd-tdep.c.
5424
a2ce51a0
DE
54252013-05-20 Doug Evans <dje@google.com>
5426
5427 When reading CU, stay in DWO. Be more tolerent of bad debug info.
5428 For Fission.
5429 * dwarf2read.c (struct dwarf2_per_cu_data): New member
5430 reading_dwo_directly.
5431 (struct signatured_type): New member dwo_unit.
5432 (struct die_reader_specs): New member comp_dir.
5433 (create_signatured_type_table_from_index): Use malloc for
5434 all_type_units instead of objfile's obstack.
5435 (create_all_type_units): Ditto.
5436 (fill_in_sig_entry_from_dwo_entry): New function.
5437 (add_type_unit): New function.
5438 (lookup_dwo_signatured_type): New function.
5439 (lookup_dwp_signatured_type): New function.
5440 (lookup_signatured_type): New arg cu. All callers updated.
5441 (init_cu_die_reader): Initialize comp_dir.
5442 (read_cutu_die_from_dwo): New arg stub_comp_dir. All callers updated.
5443 Change assert of matching type signatures to call error on mismatch.
5444 (lookup_dwo_unit): Add assert.
5445 (init_tu_and_read_dwo_dies): New function.
5446 (init_cutu_and_read_dies): Call it.
5447 (build_type_unit_groups): Handle case of no type unit groups created.
5448 (hash_dwo_file, eq_dwo_file): Handle missing comp_dir.
5449 (lookup_dwo_cutu): Tweak complaint.
5450 (dwarf2_free_abbrev_table): Check for NULL abbrev_table.
5451 (dwarf2_per_objfile_free): Free all_type_units.
5452
a25cd31f
JB
54532013-05-20 Joel Brobecker <brobecker@adacore.com>
5454
5455 * windows-nat.c (handle_unload_dll): Add missing empty line.
5456
4d804846
JB
54572013-05-20 Joel Brobecker <brobecker@adacore.com>
5458
5459 * dwarf2read.c (prototyped_function_p): New function.
5460 (read_subroutine_type): Use it.
5461
1c432e72
JB
54622013-05-20 Joel Brobecker <brobecker@adacore.com>
5463
5464 * rs6000-aix-tdep.c: De-indent some example code provided
5465 as a comment.
5466
4feebbdd
EBM
54672013-05-17 Edjunior Machado <emachado@linux.vnet.ibm.com>
5468
5469 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Check if the
5470 region is ok for a hardware watchpoint using the new ptrace interface
5471 on Power servers.
5472
7d0c9981
DE
54732013-05-17 Doug Evans <dje@google.com>
5474
5475 * NEWS: Mention new maintenance commands check-symtabs, and
5476 expand-symtabs, and renamed check-psymtabs.
5477 * psymtab.c (maintenance_check_psymtabs): Renamed from
5478 maintenance_check_symtabs. Only process already-expanded symbol
5479 tables.
5480 (_initialize_psymtab): Update.
5481 * symmisc.c (maintenance_check_symtabs): New function.
5482 (maintenance_expand_name_matcher): New function
5483 (maintenance_expand_file_matcher): New function
5484 (maintenance_expand_symtabs): New function.
5485 (_initialize_symmisc): Add "mt check-symtabs" and "mt expand-symtabs"
5486 commands.
5487
6cbc7c3d
TT
54882013-05-17 Tom Tromey <tromey@redhat.com>
5489
5490 * python/py-inferior.c (infpy_read_memory): Don't call
5491 PyErr_SetString if PyObject_New fails.
5492 * python/py-frame.c (frame_info_to_frame_object): Don't call
5493 PyErr_SetString if PyObject_New fails.
5494
a48b32c0
L
54952013-05-17 Pavel Chupin <pavel.v.chupin@intel.com>
5496
5497 * acinclude.m4: Add check for dlopen in libdl.
5498 * configure.ac: Ditto.
5499 * configure: Regenerate.
5500
3de661e6
PM
55012013-05-17 Phil Muldoon <pmuldoon@redhat.com>
5502
5503 * frame.c (frame_stash): Convert to htab.
5504 (frame_addr_hash): New function.
5505 (frame_addr_hash_eq): New function.
5506 (frame_stash_create): Convert function to create
5507 a hash table.
5508 (frame_stash_add): Convert function to add an entry to a hash
5509 table.
5510 (frame_stash_find): Convert function to search the hash table.
5511 (frame_stash_invalidate): Convert function to empty the hash
5512 table.
5513 (get_frame_id): Only add to stash if a frame_id is created.
5514 (_initialize_frame): Call frame_stash_create.
5515
bb4168a9 55162013-05-16 Yue Lu <hacklu.newborn@gmail.com> (tiny change)
036c3acb
TS
5517
5518 * configure.ac: Ensure MIG is available when building for GNU Hurd
5519 hosts.
5520 * configure: Regenerate.
5521
d1be3247
JB
55222013-05-16 Joel Brobecker <brobecker@adacore.com>
5523
5524 * dwarf2read.c (set_cu_language): Add DW_LANG_UPC handling.
5525
b8fea896
JB
55262013-05-16 Joel Brobecker <brobecker@adacore.com>
5527
5528 * ada-lang.c (ada_make_symbol_completion_list): Make sure
5529 all cleanups are done before returning from this function.
5530
af880d85
JB
55312013-05-15 Joel Brobecker <brobecker@adacore.com>
5532
5533 * utils.h: #include "exceptions.h".
5534 (enum errors): Remove partial declaration.
5535
356a5233
JB
55362013-05-15 Joel Brobecker <brobecker@adacore.com>
5537
5538 * gdbarch.sh (core_xfer_shared_libraries_aix): New method.
5539 * gdbarch.h, gdbarch.c: Regenerate.
5540 * corelow.c (core_xfer_partial): Add TARGET_OBJECT_LIBRARIES_AIX
5541 handling.
5542
5543 * rs6000-aix-tdep.h: New file.
5544 * Makefile.in (HFILES_NO_SRCDIR): Add rs6000-aix-tdep.h.
5545 * rs6000-aix-tdep.c: Include "rs6000-aix-tdep.h" and
5546 "xml-utils.h".
5547 (struct field_info, struct ld_info_desc): New types.
5548 (ld_info32_desc, ld_info64_desc): New static constants.
5549 (struct ld_info): New type.
5550 (rs6000_aix_extract_ld_info): New function.
5551 (rs6000_aix_shared_library_to_xml): Likewise.
5552 (rs6000_aix_ld_info_to_xml): Likewise.
5553 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
5554 (rs6000_aix_init_osabi): Add call to
5555 set_gdbarch_core_xfer_shared_libraries_aix.
5556 * rs6000-nat.c: Add "rs6000-aix-tdep.h" include.
5557 Remove "xml-utils.h" include.
5558 (LdInfo): Delete typedef.
5559 (ARCH64_DECL, LDI_FIELD, LDI_NEXT, LDI_FD, LDI_FILENAME):
5560 Delete macros.
5561 (rs6000_ptrace_ldinfo): Change return type to gdb_byte *.
5562 Adjust code accordingly.
5563 (rs6000_core_ldinfo): Delete, folded into
5564 rs6000_aix_core_xfer_shared_libraries_aix.
5565 (rs6000_xfer_shared_library): Delete.
5566 (rs6000_xfer_shared_libraries): Reimplement.
5567
742ce053
MM
55682013-05-15 Markus Metzger <markus.t.metzger@intel.com>
5569
5570 * record.c (record_goto_cmdlist): New.
5571 (cmd_record_goto): Split into this ...
5572 (cmd_record_goto_begin): ... this
5573 (cmd_record_goto_end): ... and this.
5574 (_initialize_record): Change "record goto" to prefix command.
5575 Add commands for "record goto begin" and "record goto end".
5576 Add an alias for "record goto start" to "record goto begin".
5577
e93ba630
JK
55782013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
5579
5580 * linespec.c (convert_linespec_to_sals): New comment for
5581 SOURCE_FILENAME assignment.
5582
5821aace
JK
55832013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
5584
5585 * cleanups.c (restore_my_cleanups): Replace gdb_assert by
5586 internal_warning.
5587
a1b8c4cc
TT
55882013-05-14 Tom Tromey <tromey@redhat.com>
5589
5590 * eval.c (parse_and_eval_long): Make 'exp' const.
5591 * value.h (parse_and_eval_long): Update.
5592
23b3a2c3
TT
55932013-05-14 Tom Tromey <tromey@redhat.com>
5594
5595 * ui-file.c (gdb_fopen): Make arguments const.
5596 * ui-file.h (gdb_fopen): Make arguments const.
5597
ca623f82
TT
55982013-05-14 Tom Tromey <tromey@redhat.com>
5599
5600 * remote.c (remote_set_trace_notes): Make arguments const.
5601 * target.c (update_current_target): Update cast.
5602 * target.h (to_set_trace_notes): Make arguments const.
5603
503ebb2c
TT
56042013-05-14 Tom Tromey <tromey@redhat.com>
5605
5606 * go32-nat.c (go32_terminal_info): Make 'args' const.
5607 * inferior.h (child_terminal_info): Update.
5608 * inflow.c (child_terminal_info): Make 'args' const.
5609 * target.c (default_terminal_info): Make 'args' const.
5610 (debug_to_terminal_save_ours): Likewise.
5611 * target.h (struct target_ops) <to_terminal_info>: Make argument
5612 const.
5613
85e1311a
TT
56142013-05-13 Tom Tromey <tromey@redhat.com>
5615
5616 * gcore.c (create_gcore_bfd): Make 'filename' const.
5617 * gcore.h (create_gcore_bfd): Make 'filename' const.
5618 * record-full.c (record_full_save): Make 'recfilename' const.
5619 * target.c (target_save_record): Make 'filename' const.
5620 * target.h (struct target_ops) <to_save_record>: Make 'filename'
5621 const.
5622 (target_save_record): Likewise.
5623
d62bfeaf
TT
56242013-05-13 Tom Tromey <tromey@redhat.com>
5625
f5aee5ee 5626 PR gdb/15338:
d62bfeaf
TT
5627 * dwarf2read.c (dwarf2_record_block_ranges): Ensure that the
5628 ranges section has been read.
5629
ac1ca910
TT
56302013-05-13 Tom Tromey <tromey@redhat.com>
5631
5632 PR exp/15364:
5633 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
5634 STRUCTOP_PTR>: Return a not_lval value for
5635 EVAL_AVOID_SIDE_EFFECTS.
5636 * opencl-lang.c (evaluate_subexp_opencl): Return a not_lval value
5637 for EVAL_AVOID_SIDE_EFFECTS.
5638
36d1c68c
JB
56392013-05-13 Joel Brobecker <brobecker@adacore.com>
5640
5641 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Convert
5642 floating point registers to register type before storing
5643 value.
5644 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call):
5645 Likewise.
5646
21ff4686
TT
56472013-05-10 Joel Brobecker <brobecker@adacore.com>
5648 Tom Tromey <tromey@redhat.com>
5649
5650 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
5651 New functions.
5652 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
5653 Declare.
5654 * darwin-nat.c (darwin_pre_ptrace): Use mark_fd_no_cloexec.
5655 (darwin_ptrace_him): Use unmark_fd_no_cloexec.
5656 * inf-ttrace.c (do_cleanup_pfds): Use unmark_fd_no_cloexec.
5657 (inf_ttrace_prepare): Use mark_fd_no_cloexec.
5658
d3685d60
TT
56592013-05-10 Freddie Chopin <freddie_chopin@op.pl>
5660 Tom Tromey <tromey@redhat.com>
5661
5662 PR build/15414:
5663 * configure: Rebuild.
5664 * configure.ac (build_warnings): Do not use -Wformat-nonliteral
5665 with -Wno-format.
5666
eb9fe518
PA
56672013-05-10 Pedro Alves <palves@redhat.com>
5668
5669 * remote.c (_initialize_remote): Fix spelling of
5670 qXfer:traceframe-info:read packet in packet config command.
5671
9779ab84
PA
56722013-05-10 David Taylor <dtaylor@emc.com>
5673
5674 PR remote/15455
5675
5676 * remote.c (remote_trace_set_readonly_regions): Do not overwrite
5677 "QTro" at start of packet.
5678
060cfbef
JB
56792013-05-10 Joel Brobecker <brobecker@adacore.com>
5680
5681 * solib-aix.c (solib_aix_relocate_section_addresses):
5682 For the .bss section action, apply the same offset as
5683 the .data section.
5684
ab1c4e88
JB
56852013-05-10 Joel Brobecker <brobecker@adacore.com>
5686
5687 * solib-aix.c (solib_aix_relocate_section_addresses):
5688 Remove FIXME comment.
5689
c1357578
JB
56902013-05-10 Joel Brobecker <brobecker@adacore.com>
5691
5692 PR tdep/15420:
5693 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
5694 New functions, directly copied from sparc-sol-thread.c.
5695 * sparc-sol-thread.c: Delete.
5696 * configure.ac: Remove code handling sparc-solaris-thread.c.
5697 * configure: Regenerate.
5698
1e611234
PM
56992013-05-10 Phil Muldoon <pmuldoon@redhat.com>
5700
5701 * stack.c (backtrace_command_1): Add "no-filters", and Python frame
5702 filter logic.
5703 (backtrace_command): Add "no-filters" option parsing.
5704 (_initialize_stack): Alter help to reflect "no-filters" option.
5705 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-framefilter.o
5706 (SUBDIR_PYTHON_SRCS): Add py-framefilter.c
5707 (py-frame.o): Add target
5708 * data-directory/Makefile.in (PYTHON_DIR): Add Python frame
5709 filter files.
5710 * python/python.h: Add new frame filter constants, and flag enum.
5711 (apply_frame_filter): Add definition.
5712 * python/python.c (apply_frame_filter): New non-Python
5713 enabled function.
5714 * python/py-utils.c (py_xdecref): New function.
5715 (make_cleanup_py_xdecref): Ditto.
5716 * python/py-objfile.c: Declare frame_filters dictionary.
5717 (objfpy_dealloc): Add frame_filters dealloc.
5718 (objfpy_new): Initialize frame_filters attribute.
5719 (objfile_to_objfile_object): Ditto.
5720 (objfpy_get_frame_filters): New function.
5721 (objfpy_set_frame_filters): New function.
5722 * python/py-progspace.c: Declare frame_filters dictionary.
5723 (pspy_dealloc): Add frame_filters dealloc.
5724 (pspy_new): Initialize frame_filters attribute.
5725 (pspacee_to_pspace_object): Ditto.
5726 (pspy_get_frame_filters): New function.
5727 (pspy_set_frame_filters): New function.
5728 * python/py-framefilter.c: New file.
5729 * python/lib/gdb/command/frame_filters.py: New file.
5730 * python/lib/gdb/frames.py: New file.
5731 * python/lib/gdb/__init__.py: Initialize global frame_filters
5732 dictionary
5733 * python/lib/gdb/FrameDecorator.py: New file.
5734 * python/lib/gdb/FrameIterator.py: New file.
5735 * mi/mi-cmds.c (mi_cmds): Add frame filters command.
5736 * mi/mi-cmds.h: Declare.
5737 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Add
5738 --no-frame-filter logic, and Python frame filter logic.
5739 (stack_enable_frame_filters): New function.
5740 (parse_no_frame_option): Ditto.
5741 (mi_cmd_stack_list_frames): Add --no-frame-filter and Python frame
5742 filter logic.
5743 (mi_cmd_stack_list_locals): Ditto.
5744 (mi_cmd_stack_list_args): Ditto.
5745 (mi_cmd_stack_list_variables): Ditto.
5746 * NEWS: Add frame filter note.
5747
2cb9c859
DE
57482013-05-09 Doug Evans <dje@google.com>
5749
6bf667bb
DE
5750 * symfile.c (syms_from_objfile_1): Delete args offsets, num_offsets.
5751 All callers updated.
5752 (syms_from_objfile): Ditto. Make static.
5753 (symbol_file_add_with_addrs): Renamed from
5754 symbol_file_add_with_addrs_or_offsets. Delete args offsets,
5755 num_offsets. All callers updated.
5756 * symfile.h (syms_from_objfile): Delete.
5757
2cb9c859
DE
5758 * symfile.c (decrement_reading_symtab): Add assert.
5759 (increment_reading_symtab): Ditto.
5760
40aea477
JB
57612013-05-09 Joel Brobecker <brobecker@adacore.com>
5762
5763 * source.c (forward_search_command): Replace call to getc
5764 by call to fgetc.
5765 (reverse_search_command): Likewise.
5766
680d1742
DE
57672013-05-08 Doug Evans <dje@google.com>
5768
5769 * psymtab.c (expand_symtabs_matching_via_partial): Fix file name
5770 matching test.
5771
17e760ae
JB
57722013-05-08 Joel Brobecker <brobecker@adacore.com>
5773
5774 * sol-thread.c (info_cb): Factorize the code a little.
5775
c0f5f490
JB
57762013-05-08 Joel Brobecker <brobecker@adacore.com>
5777
5778 * sol-thread.c (info_cb): Rework the output of the "maintenance
5779 info sol-threads" command a bit.
5780
5d74e061
JB
57812013-05-08 Joel Brobecker <brobecker@adacore.com>
5782
5783 * sol-thread.c (info_cb) [ti.ti_state == TD_THR_SLEEP]:
5784 Replace ti.ti_startfunc by ti.ti_pc.
5785
814a3ff7
JB
57862013-05-08 Joel Brobecker <brobecker@adacore.com>
5787
5788 * solib-aix.c (solib_aix_free_library_list): New function
5789 for the case where HAVE_LIBEXPAT is not defined.
5790
58ce7251
SDJ
57912013-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
5792
5793 PR breakpoints/15413:
5794 * breakpoint.c (condition_completer): Simplify the code to
5795 disconsider multiple locations of breakpoints when completing the
5796 "condition" command.
5797
be8b1ea6
PM
57982013-05-07 Pierre Muller <muller@sourceware.org>
5799
5800 * common/linux-btrace.c: ARI fix: Include "gdb_wait.h"
5801 instead of <sys/wait.h>.
5802
1e52bda6
PM
58032013-05-07 Pierre Muller <muller@sourceware.org>
5804
5805 * nios2-tdep.c (nios2_dwarf_reg_to_regnum): ARI fix: remove
5806 trailing new line from warning message.
5807
27fd0c6b
PM
58082013-05-07 Pierre Muller <muller@sourceware.org>
5809
5810 * contrib/ari/gdb_ari.sh (SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK)
5811 (PC_SOLIB): Change type from ari_deprecate to ari_regression.
5812
e228ac87
JB
58132013-05-07 Joel Brobecker <brobecker@adacore.com>
5814
5815 * rs6000-nat.c (rs6000_core_ldinfo): Remove '\n' at end of
5816 error message (ARI fix).
5817
58182013-05-07 Joel Brobecker <brobecker@adacore.com>
5819
5820 * features/library-list-aix.dtd: Replace library-list by
5821 library-list-aix.
5822 * rs6000-nat.c: Replace library-list by library-list-aix
5823 throughout.
5824 * solib-aix.c: Likewise.
5825
58262013-05-07 Joel Brobecker <brobecker@adacore.com>
5827
5828 * target.h (enum target_object) [TARGET_OBJECT_LIBRARIES_AIX]:
5829 Renames TARGET_OBJECT_AIX_LIBRARIES.
5830 * rs6000-nat.c: Replace TARGET_OBJECT_AIX_LIBRARIES with
5831 TARGET_OBJECT_LIBRARIES_AIX throughout.
5832 * solib-aix.c: Likwise.
5833
26a4dda9
YQ
58342013-05-07 Yao Qi <yao@codesourcery.com>
5835
5836 * solib-dsbt.c (struct dsbt_info) <enable_break2_done>: Remove.
5837 (get_dsbt_info, enable_break, dsbt_clear_solib): Update.
5838
3582629f
YQ
58392013-05-07 Yao Qi <yao@codesourcery.com>
5840
5841 * solib-dsbt.c (enable_break): Declare.
5842 (dsbt_current_sos): Remove call to enable_break2.
5843 (enable_break2): Rename to enable_break. Set solib breakpoint
5844 on '_dl_debug_state'.
5845 (enable_break): Remove.
5846
aacbb8a5
LM
58472013-05-07 Luis Machado <lgustavo@codesourcery.com>
5848
5849 * ppc-linux-nat.c (ppc_linux_new_thread): Clear the new thread's
5850 debug state prior to replicating existing hardware watchpoints or
5851 breakpoints.
5852
0c013353
JK
58532013-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
5854
5855 * gcore.c (gcore_create_callback): Ignore sections with
5856 separate_debug_objfile_backlink != NULL.
5857
a1217d97
SL
58582013-05-06 Sandra Loosemore <sandra@codesourcery.com>
5859 Andrew Jenner <andrew@codesourcery.com>
5860 Chung-Lin Tang <cltang@codesourcery.com>
5861 Julian Brown <julian@codesourcery.com>
5862
5863 Based on the nios2-elf port from Altera Corporation.
5864
5865 * Makefile.in (ALL_TARGET_OBS): Add nios2-tdep.o and
5866 nios2-linux-tdep.o.
5867 (HFILES_NO_SRCDIR): Add nios2-tdep.h.
5868 (ALLDEPFILES): Add nios2-tdep.c and nios2-linux-tdep.c.
5869 * configure.tgt: Add nios2*-*-linux* and nios2*-*-* targets.
5870 * nios2-tdep.h: New.
5871 * nios2-tdep.c: New.
5872 * nios2-linux-tdep.c: New.
5873 * features/Makefile (WHICH): Add nios2-linux.
5874 (nios2-linux-expedite): Set.
5875 * features/nios2-cpu.xml: New.
5876 * features/nios2.xml: New.
5877 * features/nios2-linux.xml: New.
5878 * features/nios2.c: New (autogenerated).
5879 * features/nios2-linux.c: New (autogenerated).
5880 * regformats/nios2-linux.dat: New (autogenerated).
5881 * NEWS (Changes since GDB 7.6): Add new Nios II targets
5882 and commands.
5883
0892cb63
DE
58842013-05-06 Doug Evans <dje@google.com>
5885
3b7bacac
DE
5886 * symfile.c: Whitespace cleanup.
5887
0892cb63
DE
5888 * solist.h (struct target_so_ops): New member clear_so.
5889 * solib-svr4.c (svr4_clear_so): New function.
5890 (_initialize_svr4_solib): Set svr4_so_ops.clear_so.
5891 * solib.c (clear_so): Renamed from free_so_symbols.
5892 All callers updated. Call target clear_so if it exists.
5893
40501e00
TT
58942013-05-06 Tom Tromey <tromey@redhat.com>
5895
5896 * ada-lang.c (ada_value_primitive_packed_val): Don't
5897 call value_incref.
5898 * value.c (set_value_parent): Incref the new parent and decref
5899 the old parent.
5900 (value_copy, value_primitive_field): Use set_value_parent.
5901
b6807d98
TT
59022013-05-06 Tom Tromey <tromey@redhat.com>
5903
5904 * dwarf2loc.c (invalid_synthetic_pointer): Move earlier.
5905 (indirect_pieced_value): Call dwarf2_fetch_constant_bytes
5906 if needed.
5907 * dwarf2loc.h (dwarf2_fetch_constant_bytes): Declare.
5908 * dwarf2read.c (write_constant_as_bytes)
5909 (dwarf2_fetch_constant_bytes): New functions.
5910
3aef2284
TT
59112013-05-06 Tom Tromey <tromey@redhat.com>
5912
5913 * dwarf2read.c (dwarf2_const_value_data): Remove unused
5914 parameters.
5915 (dwarf2_const_value_attr): Update.
5916
66f65e2b
TT
59172013-05-06 Tom Tromey <tromey@redhat.com>
5918
5919 * somread.c (som_symfile_offsets): Add 'const' to addrs.
5920 * machoread.c (macho_symfile_offsets): Add 'const' to addrs.
5921 * xcoffread.c (xcoff_symfile_offsets): Add 'const' to addrs.
5922 Remove declaration.
5923
7919a973
TT
59242013-05-06 Tom Tromey <tromey@redhat.com>
5925
5926 * dwarf2read.c (dwarf2_const_value_attr): Use 'obstack', not
5927 objfile's obstack.
5928
a7bfba49
DE
59292013-05-06 Doug Evans <dje@google.com>
5930
3189cb12
DE
5931 * dbxread.c (process_one_symbol): Constify section_offsets parameter.
5932 * stabsread.h (process_one_symbol): Update declaration.
5933 * dwarf2read.c (dw2_relocate): Constify new_offsets, delta parameters.
5934 * elfread.c (elf_symfile_relocate_probe): Ditto.
5935 * psymtab.c (relocate_psymtabs): Ditto.
5936 * objfiles.c (objfile_relocate1): Constify new_offsets parameter.
5937 (objfile_relocate): Ditto.
5938 * objfiles.h (objfile_relocate): Update declaration.
5939 * symfile.c (relative_addr_info_to_section_offsets): Constify
5940 addrs parameter.
5941 (default_symfile_offsets): Ditto.
5942 (syms_from_objfile_1): Constify offsets parameter.
5943 (syms_from_objfile): Ditto.
5944 (symbol_file_add_with_addrs_or_offsets): Ditto.
5945 (symfile_map_offsets_to_segments): Constify data parameter.
5946 * symfile.h (struct quick_symbol_functions): Constify new_offsets,
5947 delta parameters of member relocate.
5948 (struct sym_probe_fns): Constify new_offsets,
5949 delta parameters of member sym_relocate_probe.
5950 (struct sym_fns): Constify section_addr_info parameter of member
5951 sym_offsets.
5952 (relative_addr_info_to_section_offsets): Update declaration.
5953 (default_symfile_offsets): Ditto.
5954 (syms_from_objfile): Ditto.
5955 (symfile_map_offsets_to_segments): Ditto.
5956
a7bfba49
DE
5957 * symfile.c (syms_from_objfile_1): Use correct section count when
5958 objfile->sf == NULL.
5959
5f8e0b8f
MF
59602013-05-06 Mike Frysinger <vapier@gentoo.org>
5961
5962 * common/linux-btrace.c (intel_supports_btrace): Fix indentation.
5963
ea52d893
DE
59642013-05-06 Doug Evans <dje@google.com>
5965
5966 * psympriv.h (struct partial_symtab): Augment comment for member
5967 section_offsets.
5968
4d1eb6b4
JB
59692013-05-06 Joel Brobecker <brobecker@adacore.com>
5970
5971 Reimplement shared library support on ppc-aix...
5972 * target.h (TARGET_OBJECT_AIX_LIBRARIES): New target_object enum.
5973 * features/library-list-aix.dtd: New file.
5974 * solib-aix.h, solib-aix.c: New file.
5975 * rs6000-aix-tdep.c: #include "solib.h" and "solib-aix.h".
5976 (rs6000_find_toc_address_hook): Delete.
5977 (rs6000_push_dummy_call): Rewrite code setting the TOC value.
5978 (rs6000_aix_init_osabi): Register solib_aix_so_ops.
5979 * rs6000-nat.c: Remove "xcoffsolib.h" include. Include
5980 "xml-utils.h".
5981 (map_vmap, vmap_exec, vmap_ldinfo, add_vmap, objfile_symbol_add)
5982 (vmap_symtab, fixup_breakpoints): Delete.
5983 (rs6000_xfer_shared_libraries): New function.
5984 (rs6000_xfer_partial): Add TARGET_OBJECT_AIX_LIBRARIES handling.
5985 (vmap_secs, bss_data_overlap, vmap_add_symbols): Delete.
5986 (xcoff_relocate_symtab, xcoff_relocate_core): Delete.
5987 (rs6000_ptrace_ldinfo, rs6000_core_ldinfo)
5988 (rs6000_xfer_shared_library): New function.
5989 (find_toc_address): Delete.
5990 (_initialize_rs6000_nat): Do not set rs6000_find_toc_address_hook.
5991 * rs6000-tdep.h (rs6000_find_toc_address_hook): Remove.
5992 * xcoffread.c (record_minimal_symbol): Reloate symbol address
5993 before creating minimal symbol. Adjust function description
5994 accordingly.
5995 (scan_xcoff_symtab): Replace call to
5996 prim_record_minimal_symbol_and_info by call to
5997 record_minimal_symbol.
5998 (xcoff_symfile_offsets): Reimplement mostly as a wrapper
5999 around default_symfile_offsets.
6000 * configure.tgt: Add solib-aix.o to gdb_target_obs for
6001 powerpc-aix targets.
6002 * config/rs6000/nm-rs6000.h: Delete.
6003 * config/powerpc/aix.mh (NAT_FILE): Delete.
6004 (NATDEPFILES): Remove xcoffsolib.o.
6005 * Makefile.in (XMLFILES): Add library-list-aix.dtd.
6006 (ALL_TARGET_OBS): Add solib-aix.o.
6007 (HFILES_NO_SRCDIR): Remove xcoffsolib.h and
6008 config/rs6000/nm-rs6000.h. Add solib-aix.h.
6009 (ALLDEPFILES): Add solib-aix.c. Remove xcoffsolib.c.
6010 * xcoffsolib.h, xcoffsolib.c: Delete.
6011
6012 * solib.c (reload_shared_libraries): Remove reference to
6013 SOLIB_CREATE_INFERIOR_HOOK.
6014 * breakpoint.c (handle_solib_event): Remove reference to SOLIB_ADD.
6015 (disable_breakpoints_in_shlibs): Remove reference to PC_SOLIB.
6016 (momentary_bkpt_re_set): Replace SOLIB_ADD by solib_add in
6017 comment.
6018 * corelow.c (deprecated_core_resize_section_table): Delete.
6019 * exec.c: Remove include of xcoffsolib.h".
6020 (map_vmap, vmap): Delete.
6021 (exec_close_1): Remove references to vmap.
6022 (exec_file_attach): Remove vmap handling code, and reference
6023 to DEPRECATED_IBM6000_TARGET.
6024 (bfdsec_to_vmap): Delete.
6025 (exec_files_info): Remove block of code handling VMAP.
6026 * infcmd.c (post_create_inferior): Remove reference to
6027 SOLIB_CREATE_INFERIOR_HOOK and SOLIB_ADD.
6028 * infrun.c (follow_exec): Remove reference to
6029 SOLIB_CREATE_INFERIOR_HOOK.
6030 * stack.c (print_frame): Remove reference to PC_SOLIB.
6031 * solib-dsbt.c (dsbt_current_sos): Adjust comment.
6032 (dsbt_relocate_main_executable): Likewise.
6033 * solib-frv.c (frv_current_sos): Likewise.
6034
0c4f667c
JB
60352013-05-06 Joel Brobecker <brobecker@adacore.com>
6036
6037 * sol-thread.c (rw_common): Cast BUF to "gdb_byte *" in calls
6038 to target_write_memory and target_read_memory.
6039
726ce67c
JB
60402013-05-06 Joel Brobecker <brobecker@adacore.com>
6041
6042 * darwin-nat.c (darwin_setup_fake_stop_event): New function.
6043 (darwin_attach): Adjust using darwin_setup_fake_stop_event.
6044
c8c9911f
JB
60452013-05-06 Joel Brobecker <brobecker@adacore.com>
6046
6047 * darwin-nat.c: Replace all "%x" instances in format strings
6048 into "0x%x" throughout.
6049
fda184b6
JB
60502013-05-06 Joel Brobecker <brobecker@adacore.com>
6051
6052 * darwin-nat.c (darwin_mourn_inferior): Replace call to
6053 gdb_assert by call to MACH_CHECK_ERROR.
6054 (darwin_attach_pid): Raise an error rather than a failed
6055 assertion when various system calls failed. Report a warning
6056 instead of raising a failed assertion when PREV_NOT is not NULL
6057 after call to mach_port_request_notification.
6058 (darwin_ptrace_me): Raise an error rather than a failed
6059 assertion when read returns nonzero.
6060
d1d69afb
JB
60612013-05-06 Joel Brobecker <brobecker@adacore.com>
6062
6063 * amd64-darwin-tdep.c: Remove #include "gdb_assert.h".
6064
dc90b24d
JK
60652013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
6066
6067 * cleanups.c (restore_my_cleanups): New gdb_assert for SENTINEL_CLEANUP.
6068
faab9922
JK
60692013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
6070
6071 * event-top.c (display_gdb_prompt): Call missing do_cleanups.
6072 * infcmd.c (get_return_value) <!stop_regs>: Do not overwrite CLEANUP.
6073 * symfile.c (symfile_bfd_open): New variable back_to. Do not leave
6074 a stale cleanup. Fix double free of NAME.
6075
e0ea48a0
EZ
60762013-05-04 Eli Zaretskii <eliz@gnu.org>
6077
6078 * windows-nat.c (windows_delete_thread): Accept an additional
6079 argument, the thread's exit code, and announce thread death when
6080 print_thread_events is non-zero and we are deleting a thread that
6081 is not the main thread.
6082 (get_windows_debug_event): Pass thread exit code to
6083 windows_delete_thread.
6084
83b2706a
KB
60852013-05-03 Kevin Buettner <kevinb@redhat.com>
6086
6087 * v850-tdep.c (elf-bfd.h, elf/v850.h): Include.
6088 (R_149_REGNUM, E_NUM_OF_V850E2_REGS, E_SELID_1_R0_REGNUM)
6089 (E_SELID_1_R31_REGNUM, E_SELID_2_R0_REGNUM, E_SELID_2_R31_REGNUM)
6090 (E_SELID_3_R0_REGNUM, E_SELID_3_R31_REGNUM, E_SELID_4_R0_REGNUM)
6091 (E_SELID_4_R31_REGNUM, E_SELID_5_R0_REGNUM, E_SELID_5_R31_REGNUM)
6092 (E_SELID_6_R0_REGNUM, E_SELID_6_R31_REGNUM, E_SELID_7_R0_REGNUM, E_SELID_7_R31_REGNUM)
6093 (E_VR0_REGNUM, E_VR31_REGNUM, E_NUM_OF_V850E3V5_REGS): Define.
6094 (v850_abi, V850_ABI_GCC, V850_ABI_RH850): New enum and constants.
6095 (gdbarch_tdep): New struct.
6096 (v850e2_register_name): Use E_NUM_OF_V850E2_REGS instead of
6097 E_NUM_REGS.
6098 (v850e3v5_register_name): New function.
6099 (v850_register_type): v850e3v5 vector registers are 64-bits wide.
6100 (v850_use_struct_convention): Add `gdbarch' parameter. Add new
6101 code handling the struct return conventions for the RH850 ABI.
6102 Update all callers.
6103 (v850_eight_byte_align_p): New function.
6104 (v850_push_call_dummy): Push structs by value, not by reference
6105 for the RH850 ABI. Add support for eight byte alignment.
6106 (v850_dbtrap_breakpoint_from_pc): New function.
6107 (v850_gdbarch_init): Add ABI detection code. Register
6108 v850e3v5_register_name for the v850e3v5 architecture. Set the
6109 number of registers for v850e3v5. Register
6110 v850_dbtrap_breakpoint_from_pc as appropriate.
6111 (_initialize_gdbarch_init): Registration bfd_arch_v850_rh850.
6112
d445b2f6
DE
61132013-05-03 Doug Evans <dje@google.com>
6114
6115 * objfiles.c (objfile_relocate): Use gdb_bfd_count_sections instead
6116 of bfd_count_sections.
6117 * solib-target.c (solib_target_relocate_section_addresses): Ditto.
6118 * symfile.c (default_symfile_offsets): Ditto.
6119 (syms_from_objfile_1): Ditto. Make dummy addrs list an array of
6120 one entry, not bfd_count_sections entries.
6121
b3ce41ea
KB
61222013-05-03 Kevin Buettner <kevinb@redhat.com>
6123
6124 * rl78-tdep.c (rl78_register_reggroup_p): Include SP in the
6125 `save' and `restore' register groups. Don't include SPL
6126 or SPH in these groups.
6127 (rl78_dwarf_reg_to_regnum): Adjust mapping for
6128 RL78_PC_REGNUM. Add mappings for RL78_PSW_REGNUM,
6129 RL78_ES_REGNUM, and RL78_CS_REGNUM.
6130 (rl78_gdbarch_init): Set `dwarf2_addr_size' to 4. Invoke
6131 dwarf2_append_unwinders().
6132
96f7d3f1
PW
61332013-05-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6134
6135 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Do not
6136 ignore SIGINT and SIGTRAP in case these internal signals are
6137 caught explicitely.
6138
b9dd1947
JB
61392013-05-01 Joel Brobecker <brobecker@adacore.com>
6140
6141 * darwin-nat.c (darwin_read_write_inferior): Change types
6142 of parameters rdaddr and wraddr to "gdb_byte *". Change type
6143 of copy_count to "mach_msg_type_number_t".
6144 (darwin_read_dyld_info): Change type of parameter
6145 rdaddr to "gdb_byte *".
6146
4ca18a63
JB
61472013-05-01 Joel Brobecker <brobecker@adacore.com>
6148
6149 * solib-ia64-hpux.c (ia64_hpux_read_dynamic_info): Change cast
6150 of &info->load_map from "char *" to "gdb_byte *".
6151
2b692d32
JB
61522013-05-01 Joel Brobecker <brobecker@adacore.com>
6153
6154 * ia64-tdep.c (ia64_access_fpreg): Change cast of val
6155 from "char *" to "gdb_byte *".
6156 (ia64_access_rse_fpreg, ia64_access_mem): Likewise.
6157
a98c29a0
DE
61582013-04-30 Doug Evans <dje@google.com>
6159
6a506a2d
DE
6160 * dwarf2read.c (lookup_dwo_unit): Return NULL if DWO not found.
6161 (init_cutu_and_read_dies): Flag a complaint, not error, for bad
6162 DWO stub. If DWO isn't found, just use stub.
6163 (lookup_dwo_cutu): Don't try DWO if there's a DWP file.
6164
a98c29a0
DE
6165 * dwarf2read.c (dw2_find_symbol_file): Initialize filename before
6166 calling init_cutu_and_read_dies.
6167
f92b06da
WT
61682013-03-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
6169
6170 * target-descriptions.c (maint_print_c_tdesc_cmd):
6171 Add case to parse structures as register types and
6172 bitfields.
6173
95eebdcc
WT
61742013-04-30 Walfred Tedeschi <walfred.tedeschi@intel.com>
6175
6176 * MAINTAINERS (Write After Approval): Add myself to the list.
6177
019c1128
JB
61782013-04-30 Joel Brobecker <brobecker@adacore.com>
6179
6180 * sol-thread.c (rw_common): Change type of parameter "buf"
6181 to "gdb_byte *".
6182 (ps_pdwrite, ps_ptwrite): Cast parameter "buf" in call to
6183 rw_common to "gdb_byte *" instead of "char *".
6184
5812197c
JB
61852013-04-30 Joel Brobecker <brobecker@adacore.com>
6186
6187 * sol-thread.c (info_cb) [ti.ti_startfunc != 0]: Change type
6188 of local variable msym to const struct bound_minimal_symbol.
6189 Adjust use accordingly.
6190 [ti.ti_state == TD_THR_SLEEP]: Likewise.
6191
ecccb813
TS
61922013-04-30 Samuel Thibault <samuel.thibault@gnu.org>
6193
6194 * i386gnu-nat.c (CREG_OFFSET): New macro.
6195 (creg_offset): New array.
6196 (CREG_ADDR): Use creg_offset instead of reg_offset.
6197
f1d02dd4 61982013-04-30 Joel Brobecker <brobecker@adacore.com>
54746424
JB
6199
6200 * mep-tdep.c (mep_write_pc): Delete.
6201 (mep_gdbarch_init): Remove call to set_gdbarch_write_pc.
6202 Add call to set_gdbarch_pc_regnum.
6203
f1d02dd4 62042013-04-30 Joel Brobecker <brobecker@adacore.com>
01da98f9
JB
6205
6206 * common/filestuff.c: Replace #include <dirent.h> by
6207 #include "gdb_dirent.h".
6208
f1d02dd4 62092013-04-30 Joel Brobecker <brobecker@adacore.com>
366c6766
JB
6210
6211 * common/filestuff.c: Replace #include <sys/stat.h> by
6212 #include "gdb_stat.h".
6213
b385a60d
PM
62142013-04-29 Pierre Muller <muller@sourceware.org>
6215
6216 * dwarf2read.c (handle_DW_AT_stmt_list): Avoid ARI warning for
6217 editCase function rule.
6218 (get_DW_AT_signature_type): Likewise.
6219
d27b54ad
JB
62202013-04-29 Joel Brobecker <brobecker@adacore.com>
6221
6222 * m32r-tdep.c (m32r_write_pc): Delete.
6223 (m32r_gdbarch_init): Remove call to set_gdbarch_write_pc.
6224 Add call to set_gdbarch_pc_regnum.
6225
47d21dc5
PM
62262013-04-29 Pierre Muller <muller@sourceware.org>
6227
6228 * ./contrib/ari/gdb_ari.sh (editCase rule): Fix spelling error.
6229
9056882e
JB
62302013-04-29 Joel Brobecker <brobecker@adacore.com>
6231
6232 * dwarf2read.c (get_DW_AT_signature_type): Add ARI marker.
6233
7ee4732a
YQ
62342013-04-28 Yao Qi <yao@codesourcery.com>
6235
6236 * solib-dsbt.c (fetch_loadmap): Re-indent.
6237 (displacement_from_map, enable_break2): Likewise.
6238 (dsbt_relocate_section_addresses): Likewise.
6239
2260af53 62402013-04-26 Joel Brobecker <brobecker@adacore.com>
6241
6242 GDB 7.6 released.
6243
ff546935
TT
62442013-04-25 Andreas Kaufmann <Andreas.Kaufmann@synopsys.com>
6245
6246 PR corefiles/14983:
6247 * dwarf2read.c (process_full_comp_unit): Always create a static
6248 block.
6249
40fb6c5e
HZ
62502013-04-25 Hui Zhu <hui@codesourcery.com>
6251
6252 * breakpoint.c (build_target_command_list): Change loc->cond_bytecode
6253 to loc->cmd_bytecode.
6254
74e04d1c
DE
62552013-04-24 Doug Evans <dje@google.com>
6256
6257 * dwarf2read.c (setup_type_unit_groups): Fix comment.
6258
3cf62c1d
KS
62592013-04-22 Keith Seitz <keiths@redhat.com>
6260
6261 * tracepoint.c (trace_save): Call the writer's start method.
6262
bf9e4d0c
MB
62632013-04-24 Muhammad Bilal <mbilal@codesourcery.com>
6264
6265 PR gdb/10462
6266 * cli/cli-decode.c (lookup_command): Show an error if there is no space
6267 before argument.
6268
5d71132c
TT
62692013-04-23 Tom Tromey <tromey@redhat.com>
6270
6271 * common/filestuff.c: Check USE_WIN32API before including
6272 sys/socket.h.
6273 (HAVE_F_GETFD): New define.
6274 (mark_cloexec): Check HAVE_F_GETFD.
6275 (gdb_open_cloexec): Change 'mode' to unsigned long.
6276 (gdb_socketpair_cloexec): Check HAVE_SOCKETPAIR.
6277 (gdb_pipe_cloexec): Check HAVE_PIPE.
6278 * common/filestuff.h (gdb_open_cloexec): Change 'mode' to unsigned
6279 long.
6280
a11cfd87
HZ
62812013-04-23 Hui Zhu <hui@codesourcery.com>
6282
6283 PR gdb/15293
a11cfd87
HZ
6284 * breakpoint.c (bpstat_what): Add BPSTAT_WHAT_SINGLE to bp_dprintf.
6285
2d9442cc
HZ
62862013-04-23 Hui Zhu <hui@codesourcery.com>
6287
6288 PR gdb/15165
2d9442cc
HZ
6289 * breakpoint.c (dprintf_print_recreate): New.
6290 (save_breakpoints): Let it not save dprintf commands.
6291 (initialize_breakpoint_ops): Set dprintf_print_recreate.
6292
614c279d
TT
62932013-04-22 Tom Tromey <tromey@redhat.com>
6294
6295 PR gdb/7912:
6296 * Makefile.in (SFILES): Add filestuff.c
6297 (COMMON_OBS): Add filestuff.o.
6298 (filestuff.o): New target.
6299 * auto-load.c (auto_load_objfile_script_1): Use
6300 gdb_fopen_cloexec.
6301 * auxv.c (procfs_xfer_auxv): Use gdb_open_cloexec.
6302 * cli/cli-cmds.c (shell_escape): Call close_most_fds.
6303 * cli/cli-dump.c (fopen_with_cleanup): Use gdb_fopen_cloexec.
6304 * common/agent.c (gdb_connect_sync_socket): Use
6305 gdb_socket_cloexec.
6306 * common/filestuff.c: New file.
6307 * common/filestuff.h: New file.
6308 * common/linux-osdata.c (linux_common_core_of_thread)
6309 (command_from_pid, commandline_from_pid, print_source_lines)
6310 (linux_xfer_osdata_shm, linux_xfer_osdata_sem)
6311 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Use
6312 gdb_fopen_cloexec.
6313 * common/linux-procfs.c (linux_proc_get_int)
6314 (linux_proc_pid_has_state): Use gdb_fopen_cloexec.
6315 * config.in, configure: Rebuild.
6316 * configure.ac: Don't check for sys/socket.h. Check for
6317 fdwalk, pipe2.
6318 * corelow.c (core_open): Use gdb_open_cloexec.
6319 * dwarf2read.c (write_psymtabs_to_index): Use gdb_fopen_cloexec.
6320 * fork-child.c (fork_inferior): Call close_most_fds.
6321 * gdb_bfd.c (gdb_bfd_open): Use gdb_open_cloexec.
6322 * inf-child.c (inf_child_fileio_readlink): Use gdb_open_cloexec.
6323 * linux-nat.c (linux_nat_thread_name, linux_proc_pending_signals):
6324 Use gdb_fopen_cloexec.
6325 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use
6326 gdb_open_cloexec.
6327 (linux_async_pipe): Use gdb_pipe_cloexec.
6328 * remote-fileio.c (remote_fileio_func_open): Use
6329 gdb_open_cloexec.
6330 * remote.c (remote_file_put, remote_file_get): Use
6331 gdb_fopen_cloexec.
6332 * ser-pipe.c (pipe_open): Use gdb_socketpair_cloexec,
6333 close_most_fds.
6334 * ser-tcp.c (net_open): Use gdb_socket_cloexec.
6335 * ser-unix.c (hardwire_open): Use gdb_open_cloexec.
6336 * solib.c (solib_find): Use gdb_open_cloexec.
6337 * source.c (openp, find_and_open_source): Use gdb_open_cloexec.
6338 * tracepoint.c (tfile_start): Use gdb_fopen_cloexec.
6339 (tfile_open): Use gdb_open_cloexec.
6340 * tui/tui-io.c (tui_initialize_io): Use gdb_pipe_cloexec.
6341 * ui-file.c (gdb_fopen): Use gdb_fopen_cloexec.
6342 * xml-support.c (xml_fetch_content_from_file): Use
6343 gdb_fopen_cloexec.
6344 * main.c (captured_main): Call notice_open_fds.
6345
5fda2332
EBM
63462013-04-22 Edjunior Machado <emachado@linux.vnet.ibm.com>
6347
6348 * remote-sim.c (dump_mem): Change the type of 'buf' parameter from
6349 'char *' to 'gdb_byte *'.
6350 (gdbsim_store_register): Change the type of 'tmp' from 'char' to
6351 'gdb_byte'.
6352
eb6c553b
YQ
63532013-04-22 Yao Qi <yao@codesourcery.com>
6354
6355 * infrun.c: Fix typo in comment.
6356
9991b207
SDJ
63572013-04-22 Andrew Haley <aph@redhat.com>
6358
6359 * arm-tdep.c (BranchDest): Cast result as "unsigned long",
6360 instead of "long".
6361
8b4833e3
YQ
63622013-04-20 Yao Qi <yao@codesourcery.com>
6363
6364 * ctf.c (ctf_fetch_registers): Change the type of 'regs' from
6365 'char *' to 'gdb_byte *'. Cast the return value of
6366 'bt_ctf_get_char_array' to 'gdb_byte *'.
6367
bd3f3b55
PA
63682013-04-19 Pedro Alves <palves@redhat.com>
6369
6370 * configure.ac (build_warnings): Replace -Wno-pointer-sign with
6371 -Wpointer-sign.
6372 * configure: Regenerate.
6373
c49e7f76
PA
63742013-04-19 Pedro Alves <palves@redhat.com>
6375
6376 * ser-tcp.c (net_read_prim): Cast second argument to recv to
6377 'void *'.
6378
12ff8552
PA
63792013-04-19 Pedro Alves <palves@redhat.com>
6380
6381 * monitor.c (monitor_write_memory, monitor_write_memory_bytes):
6382 Change type of 'myaddr' parameter to gdb_byte pointer.
6383 (monitor_write_memory_longlongs): Likewise. Cast 'myaddr' pointer
6384 to 'long long' pointer instead of to 'unsigned long long'.
6385 (monitor_write_memory_block, monitor_read_memory_single)
6386 (monitor_read_memory): Change type of 'myaddr' parameter to
6387 gdb_byte pointer.
6388
9c37696b
PA
63892013-04-19 Pedro Alves <palves@redhat.com>
6390
6391 * record.c (validate_history_size): Make parameter 'setting'
6392 unsigned.
6393
a398505b
PA
63942013-04-19 Pedro Alves <palves@redhat.com>
6395
6396 * ctf.c (ctf_write_uploaded_tsv, ctf_write_uploaded_tp): Add casts
6397 to 'gdb_byte *'.
6398
9f8afa72
PA
63992013-04-19 Pedro Alves <palves@redhat.com>
6400
6401 * cp-valprint.c (cp_print_class_member): Change type of 'fieldno'
6402 local to int.
6403
c714b426
PA
64042013-04-19 Pedro Alves <palves@redhat.com>
6405
6406 * ada-lang.c (print_it_exception): Add cast to gdb_byte *.
6407 * ada-tasks.c (read_fat_string_value): Likewise.
6408
507a579c
PA
64092013-04-19 Pedro Alves <palves@redhat.com>
6410
6411 * dwarf2-frame.c (execute_cfa_program): Make 'bytes_read' local
6412 unsigned. Pass 'tmp' to safe_read_uleb128 instead of the signed
6413 'offset', and adjust.
6414
f9d83a0b
PA
64152013-04-19 Pedro Alves <palves@redhat.com>
6416
6417 * dwarf2read.c (dwarf2_get_dwz_file): Add cast to const char *.
6418 (read_index_from_section): Add cast to 'char *'.
6419
745eb4fd
PA
64202013-04-19 Pedro Alves <palves@redhat.com>
6421
6422 * xcoffread.c (xcoff_initial_scan): Add cast to 'char *'.
6423
db5be46f
PA
64242013-04-19 Pedro Alves <palves@redhat.com>
6425
6426 * coff-pe-read.c (read_pe_exported_syms): Handle strings as char.
6427
0f928d68
PA
64282013-04-19 Pedro Alves <palves@redhat.com>
6429
6430 * record-full.c (record_full_get_bookmark): Change local 'ret'
6431 type to char * and add cast to gdb_byte *.
6432 (record_full_goto_bookmark): Handle 'bookmark' argument as a
6433 string.
6434 * reverse.c (goto_bookmark_command): Add casts to gdb_byte *.
6435
89f6d837
PA
64362013-04-19 Pedro Alves <palves@redhat.com>
6437
6438 * python/py-inferior.c (infpy_write_memory): Add cast to gdb_byte
6439 * python/py-prettyprint.c (print_string_repr): Change type of
6440 'output' local to char *. Add cast to gdb_byte * in
6441 LA_PRINT_STRING call.
6442 (print_children): Change type of 'output' local to char *.
6443 * python/py-value.c (valpy_string): Add cast to const char * in
6444 PyUnicode_Decode call.
6445
ce6ec7d8
PA
64462013-04-19 Pedro Alves <palves@redhat.com>
6447
6448 * remote-mips.c (mips_cksum): Rename 'data' parameter to 'datastr'
6449 and change its type to 'const char *'. Adjust.
6450 (mips_send_packet): Add cast to 'char *', and remove cast to
6451 'unsigned char *'.
6452 (mips_receive_packet): Remove cast to 'unsigned char *'.
6453 (mips_load_srec): Use bfd_byte.
6454 (pmon_makeb64, pmon_zeroset): Make 'chksum' parameter unsigned.
6455 (pmon_checkset): Make 'value' parameter unsigned.
6456
fda0389f
PA
64572013-04-19 Pedro Alves <palves@redhat.com>
6458
6459 * common/agent.c (agent_run_command): Add cast to gdb_byte *.
6460
bc20a4af
PA
64612013-04-19 Pedro Alves <palves@redhat.com>
6462
6463 * remote.c (remote_write_bytes_aux, compare_sections_command)
6464 (remote_read_qxfer)
6465 (remote_search_memory, remote_hostio_pwrite, remote_hostio_pread)
6466 (remote_hostio_readlink, remote_bfd_iovec_pread)
6467 (remote_set_trace_notes): Use gdb_byte when RSP buffer is used as
6468 binary buffer, and char when buffer is used as string.
6469 * tracepoint.c (encode_source_string, tfile_write_uploaded_tp)
6470 (trace_save, tfile_open, traceframe_walk_blocks)
6471 (tfile_fetch_registers): Likewise.
6472
c628b528
PA
64732013-04-19 Pedro Alves <palves@redhat.com>
6474
6475 * ser-base.c (ser_base_write): Change prototype -- take 'void *'
6476 buffer and size_t size. Adjust.
6477 * ser-base.h (ser_base_write): Adjust.
6478 * ser-go32.c (cnts): Change type to size_t.
6479 (dos_write): Change prototype -- take 'void *'
6480 buffer and size_t size. Adjust.
6481 (dos_info): Print elements of 'cnts' as unsigned long.
6482 * serial.c (serial_write): Likewise.
6483 * serial.h (serial_write): Adjust.
6484 (struct serial_ops) <write>: Change prototype -- take 'void *'
6485 buffer and size_t size. Adjust.
6486
51a5cd90
PA
64872013-04-19 Pedro Alves <palves@redhat.com>
6488
6489 * c-lang.c (evaluate_subexp_c): Cast result of obstack_base to
6490 gdb_byte *.
6491 * linux-tdep.c (linux_make_mappings_corefile_notes): Likewise.
6492
a9933661
PA
64932013-04-19 Pedro Alves <palves@redhat.com>
6494
6495 * alpha-tdep.c (alpha_extract_return_value): Use
6496 regcache_cooked_read_unsigned to read 'v0'.
6497
19afdd07
PA
64982013-04-19 Pedro Alves <palves@redhat.com>
6499
6500 * xtensa-tdep.c (execute_l32e, execute_s32e): Change type of
6501 parameters 'at', 'as' and 'offset' to uint32_t.
6502
96b32e50
PA
65032013-04-19 Pedro Alves <palves@redhat.com>
6504
6505 * aarch64-tdep.c (aarch64_analyze_prologue): Change type of local
6506 'is64' to signed 'int'.
6507
eb1bd1fb
PA
65082013-04-19 Pedro Alves <palves@redhat.com>
6509
6510 * s390-tdep.c (is_rs, is_rsy, is_rx, is_rxy): Change type of 'd2'
6511 parameter to int *.
6512
463920bf
PA
65132013-04-19 Pedro Alves <palves@redhat.com>
6514
6515 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Change local
6516 'insnbuf' buffer type to unsigned int[].
6517
70242eb1
PA
65182013-04-19 Pedro Alves <palves@redhat.com>
6519
6520 * mips-tdep.c (mips_read_pc): Change local 'pc' type to LONGEST.
6521
9d1dd0e2
PA
65222013-04-19 Pedro Alves <palves@redhat.com>
6523
6524 * mep-tdep.c (mep_get_insn): Change 'insn' parameter type to
6525 unsigned long *.
6526
44096aee
PA
65272013-04-19 Pedro Alves <palves@redhat.com>
6528
6529 * alpha-tdep.c (heuristic_fence_post): Change type to int.
6530 (alpha_heuristic_proc_start): Adjust to check -1 instead of
6531 UINT_MAX.
6532 * mips-tdep.c (heuristic_fence_post): Change type to int.
6533 (heuristic_proc_start): Adjust to check -1 instead of UINT_MAX.
6534
e4286e57
PA
65352013-04-19 Pedro Alves <palves@redhat.com>
6536
6537 * cris-tdep.c (usr_cmd_cris_version): Make unsigned.
6538 (struct gdbarch_tdep) <cris_version>: Make unsigned.
6539 (cris_spec_reg_applicable, cris_gdbarch_init): Adjust locals.
6540
001f13d8
PA
65412013-04-19 Pedro Alves <palves@redhat.com>
6542
6543 * avr-tdep.c (avr_io_reg_read_command): New local 'bufstr'. Use
6544 it to get a string view of the byte buffer.
6545 * i386-cygwin-tdep.c (core_process_module_section): Change local 'buf'
6546 type to gdb_byte *. Adjust.
6547 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full):
6548 Change local to char *.
6549 * solib-darwin.c (find_program_interpreter): Change return type to
6550 char *. Adjust.
6551 (darwin_solib_get_all_image_info_addr_at_init): Adjust.
6552 * solib-dsbt.c (enable_break2): Change local 'buf' to char *.
6553 * solib-frv.c (enable_break2): Change local 'buf' to char *.
6554 * solib-spu.c (spu_current_sos): Add gdb_byte * cast.
6555 * solib-svr4.c (find_program_interpreter): Change return type to
6556 char *. Adjust.
6557 (enable_break): Change local 'interp_name' to char *.
6558 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
6559 * spu-tdep.c (spu_pseudo_register_read_spu): Add cast to 'char *'.
6560 (spu_pseudo_register_write_spu): Use char for string buffer.
6561 Adjust.
6562 (info_spu_event_command, info_spu_signal_command): Add casts to
6563 'char *'.
6564
948f8e3d
PA
65652013-04-19 Pedro Alves <palves@redhat.com>
6566
6567 * aarch64-tdep.c (aarch64_default_breakpoint): Change type to
6568 gdb_byte[].
6569 (aarch64_breakpoint_from_pc): Change return type to gdb_byte *.
6570 * ada-lang.c (ada_value_assign): Use gdb_byte.
6571 * alphanbsd-tdep.c (sigtramp_retcode): Change type to gdb_byte[].
6572 (alphanbsd_sigtramp_offset): Use gdb_byte.
6573 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint)
6574 (arm_linux_arm_be_breakpoint, eabi_linux_arm_le_breakpoint)
6575 (eabi_linux_arm_be_breakpoint, arm_linux_thumb_be_breakpoint)
6576 (arm_linux_thumb_le_breakpoint, arm_linux_thumb2_be_breakpoint)
6577 (arm_linux_thumb2_le_breakpoint): Change type to gdb_byte[].
6578 * arm-tdep.c (arm_stub_unwind_sniffer)
6579 (arm_displaced_init_closure): Use gdb_byte.
6580 (arm_default_arm_le_breakpoint, arm_default_arm_be_breakpoint)
6581 (arm_default_thumb_le_breakpoint)
6582 (arm_default_thumb_be_breakpoint): Change type to gdb_byte[].
6583 * arm-tdep.h (struct gdbarch_tdep) <arm_breakpoint,
6584 thumb_breakpoint, thumb2_breakpoint>: Change type to gdb_byte *.
6585 * arm-wince-tdep.c (arm_wince_le_breakpoint)
6586 (arm_wince_thumb_le_breakpoint): Change type to gdb_byte[].
6587 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint)
6588 (arm_nbsd_arm_be_breakpoint, arm_nbsd_thumb_le_breakpoint)
6589 (arm_nbsd_thumb_be_breakpoint): Change type to gdb_byte[].
6590 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint)
6591 (arm_obsd_thumb_be_breakpoint): Change type to gdb_byte[].
6592 * cris-tdep.c (push_stack_item, cris_push_dummy_call)
6593 (cris_store_return_value, cris_extract_return_value): Use
6594 gdb_byte.
6595 (constraint): Change type of parameter to char * from signed
6596 char*. Use gdb_byte.
6597 * dwarf2loc.c (read_pieced_value, write_pieced_value): Change type
6598 of local buffer to gdb_byte *.
6599 * dwarf2read.c (read_index_from_section): Use gdb_byte.
6600 (create_dwp_hash_table): Change type of locals to gdb_byte *.
6601 (add_address_entry): Change type of local buffer to gdb_byte[].
6602 * frv-tdep.c (frv_adjust_breakpoint_address, find_func_descr)
6603 (frv_push_dummy_call): Use gdb_byte.
6604 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code)
6605 (hppa_hpux_supply_ss_fpblock, hppa_hpux_supply_ss_wide)
6606 (hppa_hpux_supply_save_state): Use gdb_byte.
6607 * hppa-tdep.c (hppa32_push_dummy_call)
6608 (hppa64_convert_code_addr_to_fptr): Use gdb_byte.
6609 * ia64-tdep.c (extract_bit_field, replace_bit_field)
6610 (slotN_contents, replace_slotN_contents): Change type of parameter
6611 to gdb_byte *.
6612 (fetch_instruction, ia64_pseudo_register_write)
6613 (ia64_register_to_value, ia64_value_to_register)
6614 (ia64_extract_return_value, ia64_store_return_value)
6615 (ia64_push_dummy_call): Use gdb_byte.
6616 * m32c-tdep.c (m32c_return_value): Remove cast.
6617 * m68hc11-tdep.c (m68hc11_pseudo_register_write)
6618 (m68hc11_push_dummy_call, m68hc11_store_return_value): Use
6619 gdb_byte.
6620 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use gdb_byte.
6621 * mn10300-tdep.c (mn10300_store_return_value)
6622 (mn10300_breakpoint_from_pc, mn10300_push_dummy_call): Use
6623 gdb_byte.
6624 * moxie-tdep.c (moxie_process_readu): Use gdb_byte.
6625 (moxie_process_record): Remove casts.
6626 * ppc-ravenscar-thread.c (supply_register_at_address)
6627 (ppc_ravenscar_generic_store_registers): Use gdb_byte.
6628 * ravenscar-thread.c (get_running_thread_id): Use gdb_byte.
6629 * remote-m32r-sdi.c (m32r_fetch_register): Use gdb_byte.
6630 * remote-mips.c (mips_xfer_memory): Use gdb_byte.
6631 * remote.c (compare_sections_command): Use gdb_byte.
6632 * score-tdep.c (score7_free_memblock): Change type of parameter to
6633 gdb_byte *.
6634 * sh-tdep.c (sh_justify_value_in_reg): Change return type to
6635 gdb_byte *. Use gdb_byte.
6636 (sh_push_dummy_call_fpu): Use gdb_byte.
6637 (sh_extract_return_value_nofpu, sh_extract_return_value_fpu)
6638 (sh_store_return_value_nofpu, sh_store_return_value_fpu)
6639 (sh_register_convert_to_virtual, sh_register_convert_to_raw):
6640 Change parameter type to 'gdb_byte *'. Use gdb_byte.
6641 (sh_pseudo_register_read, sh_pseudo_register_write): Use gdb_byte.
6642 * sh64-tdep.c (sh64_push_dummy_call): Use gdb_byte.
6643 (sh64_store_return_value, sh64_register_convert_to_virtual):
6644 Change parameter type to 'gdb_byte *'. Use gdb_byte.
6645 (sh64_pseudo_register_write): Use gdb_byte.
6646 * solib-darwin.c (darwin_current_sos): Add casts to 'gdb_byte *'.
6647 * solib-irix.c (fetch_lm_info): Likewise. Use gdb_byte for byte
6648 buffer.
6649 (irix_current_sos): Use gdb_byte.
6650 * solib-som.c (som_current_sos): Use gdb_byte.
6651 * sparc-ravenscar-thread.c (supply_register_at_address)
6652 (sparc_ravenscar_generic_store_registers): Use gdb_byte.
6653 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
6654 * spu-tdep.c (spu_get_overlay_table): Use gdb_byte.
6655 * tic6x-tdep.c (tic6x_breakpoint_from_pc): Change return type to
6656 'gdb_byte *'.
6657 * tic6x-tdep.h (struct gdbarch_tdep) <breakpoint>: Change type to
6658 'gdb_byte *'.
6659 * tracepoint.c (tfile_fetch_registers): Use gdb_byte.
6660 * xstormy16-tdep.c (xstormy16_extract_return_value)
6661 (xstormy16_store_return_value): Change parameter type to
6662 'gdb_byte *'. Adjust.
6663 (xstormy16_push_dummy_call): Use gdb_byte.
6664 * xtensa-tdep.c (xtensa_scan_prologue, call0_ret)
6665 (call0_analyze_prologue, execute_code): Use gdb_byte.
6666
433730c9
PA
66672013-04-19 Vladimir Kargov <kargov@gmail.com>
6668 Pedro Alves <palves@redhat.com>
6669
6670 * i387-tdep.c (i387_print_float_info): Use gdb_byte for pointer to
6671 value contents.
6672
ac9ec31b
DE
66732013-04-17 Doug Evans <dje@google.com>
6674
6675 * dwarf2read.c (struct signatured_type): New member type.
6676 (struct attribute): Replace member signatured_type with signature.
6677 (DW_SIGNATURE): Replaces DW_SIGNATURE_TYPE.
6678 (read_call_site_scope): Call follow_die_ref instead of
6679 follow_die_ref_or_sig.
6680 (read_structure_type): Rewrite handling of signatured types.
6681 (read_enumeration_type): Ditto.
6682 (read_attribute_value): Update.
6683 (build_error_marker_type): New function.
6684 (lookup_die_type): Add assert. Rewrite handling of signatured types.
6685 Don't call error for bad types, just build an error marker type.
6686 (dump_die_shallow): Update.
6687 (follow_die_sig_1): Renamed from follow_die_sig.
6688 Don't call error for bad types, instead return NULL.
6689 (follow_die_sig): New function.
6690 (get_signatured_type, get_DW_AT_signature_type): New functions.
6691
e546e8bb
YZ
66922013-04-17 Yufeng Zhang <yufeng.zhang@arm.com>
6693
6694 * aarch64-tdep.c (aarch64_write_pc): Removed.
543cdd95
JB
6695 (aarch64_gdbarch_init): Remove set_gdbarch_write_pc of the above
6696 function.
e546e8bb 6697
ab116149
YQ
66982013-04-17 Yao Qi <yao@codesourcery.com>
6699
6700 * top.c (print_gdb_configuration): Print configure-time
6701 parameter on using libbabeltrace or not.
6702
488a42b8
PA
67032013-04-16 Pedro Alves <palves@redhat.com>
6704
6705 * copyright.py (EXCLUDE_LIST): Add gdb/common/glibc_thread_db.h.
6706
f5fb825b
PA
67072013-04-16 Pedro Alves <palves@redhat.com>
6708
85d494ea 6709 * common/glibc_thread_db.h: Update from upstream glibc
f5fb825b
PA
6710 (git 568035b7874a099087b77f7bba3e36a1173787b0).
6711
e1154999
PA
67122013-04-16 Pedro Alves <palves@redhat.com>
6713
6714 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: Factor out to ...
6715 * common/glibc_thread_db.h: ... this new file ...
6716 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: ... and include it.
6717
e3b50a7f
PA
67182013-04-16 Will Newton <will.newton@gmail.com>
6719 Pedro Alves <palves@redhat.com>
6720
6721 PR build/11881
6722
6723 * common/gdb_thread_db.h (LIBTHREAD_DB_SO)
6724 (LIBTHREAD_DB_SEARCH_PATH): Move outside of #ifdef
6725 HAVE_THREAD_DB_H.
6726
1c2e4450
PA
67272013-04-16 Pedro Alves <palves@redhat.com>
6728 Eli Zaretskii <eliz@gnu.org>
6729
6730 * NEWS: Mention "set foo unlimited".
6731
4031ecc5
DE
67322013-04-15 Doug Evans <dje@google.com>
6733
19c3d4c9
DE
6734 * dwarf2read.c (struct dwo_file): Replace member "cus" with "cu".
6735 (struct create_dwo_cu_data): Renamed from create_dwo_info_table_data.
6736 (create_dwo_cu_reader): Renamed from
6737 create_dwo_debug_info_hash_table_reader.
6738 (create_dwo_cu): Renamed from create_dwo_debug_info_hash_table.
6739 Remove support for multiple CUs in a DWO file.
6740 (open_and_init_dwo_file, lookup_dwo_cutu): Update.
6741
4031ecc5
DE
6742 * dwarf2read.c (create_debug_types_hash_table): Use hex_string
6743 instead of phex.
6744 (lookup_dwo_unit, create_dwo_debug_info_hash_table_reader): Ditto.
6745 (create_dwo_in_dwp): Ditto.
6746
b340913d
TT
67472013-04-15 Tom Tromey <tromey@redhat.com>
6748
6749 * NEWS: Move recent entries into "since 7.6" section.
6750
cc16e6c9
TT
67512013-04-15 Tom Tromey <tromey@redhat.com>
6752
6753 PR c++/13588:
6754 * NEWS: Update.
6755 * break-catch-throw.c (struct exception_catchpoint)
6756 <exception_rx, pattern>: New fields.
6757 (fetch_probe_arguments, dtor_exception_catchpoint)
6758 (check_status_exception_catchpoint)
6759 (print_one_detail_exception_catchpoint): New functions.
6760 (handle_gnu_v3_exceptions): Add "except_rx" argument.
6761 Compile regular expression if needed.
6762 (extract_exception_regexp): New function.
6763 (catch_exception_command_1): Use extract_exception_regexp.
6764 (compute_exception): Use fetch_probe_arguments.
6765 (initialize_throw_catchpoint_ops): Set dtor, print_one_detail,
6766 and check_status fields.
6767 * cp-abi.c (cplus_typename_from_type_info): New function.
6768 * cp-abi.h (cplus_typename_from_type_info): Declare.
6769 (struct cp_abi_ops) <get_typename_from_type_info>: New field.
6770 * gdb_regex.h (compile_rx_or_error): Declare.
6771 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info): Update
6772 comment.
6773 (init_gnuv3_ops): Set get_type_from_type_info field.
6774 * probe.c (compile_rx_or_error): Move...
6775 * utils.c (compile_rx_or_error): ... here.
6776
72f1fe8a
TT
67772013-04-15 Tom Tromey <tromey@redhat.com>
6778
6779 PR c++/15176:
6780 * NEWS: Update.
6781 * break-catch-throw.c (compute_exception): New function.
6782 (exception_funcs): New global.
6783 (_initialize_break_catch_throw): Create $_exception.
6784 * cp-abi.c (cplus_type_from_type_info): New function.
6785 * cp-abi.h (cplus_type_from_type_info): Declare.
6786 (struct cp_abi_ops) <get_type_from_type_info>: New field.
6787 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info)
6788 (gnuv3_get_type_from_type_info): New functions.
6789 (init_gnuv3_ops): Set get_type_from_type_info ABI field.
6790
fc4746a2
TT
67912013-04-15 Tom Tromey <tromey@redhat.com>
6792
6793 * break-catch-throw.c (struct exception_names): New.
6794 (exception_functions): Change type.
6795 (re_set_exception_catchpoint): Look for SDT probes.
6796
15a73f56
TT
67972013-04-15 Tom Tromey <tromey@redhat.com>
6798
6799 PR c++/10119:
6800 * break-catch-throw.c (exception_functions): New global.
6801 (gnu_v3_exception_catchpoint_ops): Move earlier.
6802 (struct exception_catchpoint): New.
6803 (classify_exception_breakpoint): Rewrite.
6804 (re_set_exception_catchpoint): New function.
6805 (handle_gnu_v3_exceptions): Return void. Use init_catchpoint.
6806 Allocate a struct exception_catchpoint.
6807 (catch_exception_command_1): Update.
6808 (initialize_throw_catchpoint_ops): Set 're_set' method.
6809
916703c0
TT
68102013-04-15 Tom Tromey <tromey@redhat.com>
6811
6812 * Makefile.in (SFILES): Add break-catch-throw.c
6813 (COMMON_OBS): Add break-catch-throw.o.
6814 * break-catch-throw.c: New file.
6815 * breakpoint.c: Move exception-catching code to new file.
6816 (ep_parse_optional_if_clause): No longer static.
6817 * breakpoint.h (ep_parse_optional_if_clause): Declare.
6818
6e72ca20
TT
68192013-04-15 Tom Tromey <tromey@redhat.com>
6820
6821 PR c++/9065:
6822 * NEWS: Update.
6823 * breakpoint.c (watchpoint_exp_is_const): Add OP_TYPEID.
6824 * c-exp.y (TYPEID): New token.
6825 (exp): Add new TYPEID productions.
6826 (ident_tokens): Add "typeid".
6827 * cp-abi.c (cplus_typeid, cplus_typeid_type): New functions.
6828 * cp-abi.h (cplus_typeid, cplus_typeid_type): Declare.
6829 (struct cp_abi_ops) <get_typeid, get_typeid_type>: New fields.
6830 * eval.c (evaluate_subexp_standard) <OP_TYPEID>: New case.
6831 * expprint.c (dump_subexp_body_standard) <OP_TYPEID>: New
6832 case.
6833 * gnu-v3-abi.c (std_type_info_gdbarch_data): New global.
6834 (build_std_type_info_type, gnuv3_get_typeid_type)
6835 (gnuv3_get_typeid): New functions.
6836 (init_gnuv3_ops): Initialize std_type_info_gdbarch_data. Set
6837 new fields on ABI object.
6838 * parse.c (operator_length_standard) <OP_TYPEID>: New case.
6839 * std-operator.def (OP_TYPEID): New.
6840
715c6909
TT
68412013-04-15 Tom Tromey <tromey@redhat.com>
6842
6843 * elfread.c (elf_symtab_read): Install versioned symbol under
6844 unversioned name as well.
6845
8de20a37
TT
68462013-04-15 Tom Tromey <tromey@redhat.com>
6847
6848 PR c++/11990:
6849 * c-lang.c (cplus_language_defn): Use gdb_demangle.
6850 * c-typeprint.c (c_type_print_base): Use gdb_demangle.
6851 * cp-support.c (mangled_name_to_comp): Use gdb_demangle.
6852 (gdb_demangle): New function.
6853 * cp-support.h (gdb_demangle): Declare.
6854 * dwarf2read.c (dwarf2_physname, fixup_partial_die)
6855 (dwarf2_name): Use gdb_demangle.
6856 * gdbtypes.c (check_stub_method): Use gdb_demangle.
6857 * gnu-v3-abi.c (gnuv3_rtti_type): Strip @plt and version
6858 suffixes from name.
6859 (gnuv3_print_method_ptr): Use gdb_demangle.
6860 * jv-lang.c (java_demangle): Use gdb_demangle.
6861 * jv-typeprint.c (java_type_print_base): Use gdb_demangle.
6862 * language.c (unk_lang_demangle): Use gdb_demangle.
6863 * symtab.c (symbol_find_demangled_name)
6864 (demangle_for_lookup): Use gdb_demangle.
6865
591f19e8
TT
68662013-04-15 Tom Tromey <tromey@redhat.com>
6867
6868 PR c++/12824:
6869 * NEWS: Update.
6870 * breakpoint.c (enum exception_event_kind) <EX_EVENT_RETHROW>:
6871 New constant.
6872 (classify_exception_breakpoint): New function.
6873 (print_it_exception_catchpoint, print_one_exception_catchpoint)
6874 (print_mention_exception_catchpoint)
6875 (print_recreate_exception_catchpoint, handle_gnu_v3_exceptions)
6876 (catch_exception_command_1): Handle "rethrow" catchpoint.
6877 (catch_rethrow_command): New function.
6878 (_initialize_breakpoint): Add "catch rethrow" command.
6879
4d40cad2
PM
68802013-04-15 Pierre Muller <muller@sourceware.org>
6881
6882 * contrib/ari/gdb_ari.sh (write_pc rule): Do not consider
6883 set_gdbarch_write_pc as deprecated anymore.
6884
30bcb456
JB
68852013-04-15 Joel Brobecker <brobecker@adacore.com>
6886
6887 * spu-tdep.c (spu_write_pc): Add empty line after local variable
6888 declarations.
6889
da9160e4
YQ
68902013-04-13 Yao Qi <yao@codesourcery.com>
6891
6892 * ctf.c (_initialize_ctf): Include "completer.h".
6893 Call add_target_with_completer instead of add_target.
6894
39ed5604
JK
68952013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
6896
6897 Fix GDB regression related to PR binutils/14813.
6898 * jit.c (mem_bfd_iovec_close): Return 0 for success.
6899 * minidebug.c (lzma_close): Add return value comment.
6900 * remote.c (remote_bfd_iovec_close): Return 0 for success.
6901 * solib-spu.c (spu_bfd_iovec_close): Likewise.
6902 * spu-linux-nat.c (spu_bfd_iovec_close): Likewise.
6903
69042013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
49369217
JK
6905
6906 * config.in: Regenerate.
6907
d521ce57
TT
69082013-04-12 Tom Tromey <tromey@redhat.com>
6909
6910 * dwarf2-frame.c (struct comp_unit) <dwarf_frame_buffer>: Now
6911 const.
6912 * dwarf2read.c (struct dwarf2_section_info) <buffer>: Now const.
6913 (struct die_reader_specs) <buffer>: Likewise.
6914 (die_reader_func_ftype): Make 'info_ptr' const.
6915 (struct line_header) <include_dirs, statement_program_start,
6916 statement_program_end>: Now const.
6917 (struct file_entry) <name>: Likewise.
6918 (struct partial_die_info) <sibling>: Likewise.
6919 (struct dwarf_block) <data>: Likewise.
6920 (dwarf2_read_section): Remove cast.
6921 (dwarf2_get_section_info): Make 'bufp' const.
6922 (read_index_from_section): Constify.
6923 (dw2_get_file_names_reader): Make 'info_ptr' const.
6924 (dw2_get_primary_filename_reader): Likewise.
6925 (read_comp_unit_head): Make 'info_ptr' and return type const.
6926 (read_and_check_comp_unit_head, read_and_check_type_unit_head):
6927 Likewise.
6928 (read_abbrev_offset): Constify.
6929 (dwarf2_create_include_psymtab): Make 'name' const.
6930 (create_debug_types_hash_table): Update.
6931 (read_cutu_die_from_dwo): Make 'result_info_ptr' const.
6932 (init_cutu_and_read_dies, init_cutu_and_read_dies_no_follow):
6933 Constify.
6934 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader)
6935 (load_partial_comp_unit_reader): Make 'info_ptr' const.
6936 (read_comp_units_from_section): Constify.
6937 (peek_abbrev_code, peek_die_abbrev, skip_children, skip_one_die)
6938 (locate_pdi_sibling, load_full_comp_unit_reader): Make 'info_ptr'
6939 const.
6940 (dwarf2_compute_name, setup_type_unit_groups): Constify.
6941 (create_dwo_debug_info_hash_table): Make 'info_ptr' const.
6942 (create_dwp_hash_table, dwarf2_ranges_read)
6943 (dwarf2_record_block_ranges): Constify.
6944 (read_die_and_children, read_die_and_siblings_1)
6945 (read_die_and_siblings): Make 'info_ptr' and 'new_info_ptr'
6946 const.
6947 (read_full_die_1, read_full_die): Make 'info_ptr' const.
6948 (abbrev_table_read_table): Constify.
6949 (load_partial_dies): Make 'info_ptr' const.
6950 (read_partial_die, read_attribute_value, read_attribute): Make
6951 'info_ptr' and return type const.
6952 (read_address, read_initial_length)
6953 (read_checked_initial_length_and_offset, read_offset)
6954 (read_offset_1, read_n_bytes, read_direct_string): Make 'buf'
6955 const.
6956 (read_direct_string): Make 'buf' and return type const.
6957 (read_indirect_string_at_offset, read_indirect_string_from_dwz)
6958 (read_indirect_string): Make return type const.
6959 (read_unsigned_leb128, read_signed_leb128): Make 'buf' const.
6960 (read_addr_index_from_leb128, dwarf2_read_addr_index_reader): Make
6961 'info_ptr' const.
6962 (read_str_index): Make return type const.
6963 (add_include_dir): Make 'include_dir' const.
6964 (add_file_name): Make 'name' const.
6965 (dwarf_decode_line_header): Constify.
6966 (psymtab_include_file_name): Make return type const.
6967 (dwarf_decode_lines_1, dwarf_decode_lines): Constify.
6968 (dwarf2_start_subfile): Make 'filename' const.
6969 (dwarf2_const_value_attr): Make 'bytes' const.
6970 (read_signatured_type_reader): Make 'info_ptr' const.
6971 (decode_locdesc): Constify.
6972 (skip_form_bytes): Make 'bytes', 'buffer_end', and return type
6973 const.
6974 (skip_unknown_opcode): Make 'opcode_definitions', 'mac_ptr',
6975 'mac_end', and return type const.
6976 (dwarf_parse_macro_header): Make 'mac_ptr' and return type const.
6977 (dwarf_decode_macro_bytes): Make 'mac_ptr', 'mac_end', and return
6978 type const.
6979 (per_cu_header_read_in): Constify.
6980 * symfile.h (dwarf2_get_section_info): Update.
6981
d47a1bc1
TT
69822013-04-12 Tom Tromey <tromey@redhat.com>
6983
6984 * symtab.h (struct general_symbol_info) <value.bytes>: Make const.
6985
6eaaf48b
EZ
69862013-04-12 Eli Zaretskii <eliz@gnu.org>
6987
fc4c25bf 6988 * NEWS: Mention "show configuration", --configuration.
6eaaf48b
EZ
6989 * top.c (print_gdb_configuration): New function, displays the
6990 details about GDB configure-time parameters.
6991 (print_gdb_version): Mention "show configuration".
6eaaf48b
EZ
6992 * cli/cli-cmds.c (show_configuration): New function.
6993 (_initialize_cli_cmds): Add the "show configuration" command.
6eaaf48b
EZ
6994 * main.c (captured_main) <print_configuration>: New static var.
6995 <long_options>: Use it.
6996 If --configuration was given, call print_gdb_configuration.
6997
b292c783
JK
69982013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6999 Pedro Alves <palves@redhat.com>
7000
7001 * Makefile.in (HAVE_NATIVE_GCORE_TARGET): New.
7002 (generated_files): Add gcore.
7003 (install-only, uninstall): Add gcore if HAVE_NATIVE_GCORE_TARGET or
7004 HAVE_NATIVE_GCORE_HOST.
7005 (gcore): New.
7006 * NEWS (Changes since GDB 7.6): Mention newly installed gcore.
7007 * config/alpha/alpha-osf3.mh, config/i386/fbsd.mh,
7008 config/i386/fbsd64.mh, config/i386/i386gnu.mh, config/i386/i386sol2.mh,
7009 config/i386/sol2-64.mh, config/mips/irix5.mh, config/mips/irix6.mh,
7010 config/powerpc/fbsd.mh, config/sparc/fbsd.mh, config/sparc/sol2.mh:
7011 Add HAVE_NATIVE_GCORE_HOST.
7012 * configure: Regenerate.
7013 * configure.ac (HAVE_NATIVE_GCORE_TARGET): New, set it, AC_SUBST it.
7014 New AC_SUBST fir GDB_TRANSFORM_NAME and GCORE_TRANSFORM_NAME. New
7015 AC_CONFIG_FILES for gcore.
7016 * configure.tgt: Add gdb_have_gcore to the initial comment. Set
7017 gdb_have_gcore.
7018 * gdb_gcore.sh: Rename to ...
7019 * gcore.in: ... here. Remove gcore.sh comment. Use GDB_TRANSFORM_NAME
7020 and GCORE_TRANSFORM_NAME substitutions.
7021
c96b3c4f
JK
7022 Fix parsing tabs in ${gdb_target_obs}.
7023 * configure.tgt (gdb_have_gcore): Replace case with for and if.
7024
d6cb50a2
JK
70252013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7026
7027 * remote.c (unpush_and_perror): Add output message final dot.
7028
cf2cb5ec
YQ
70292013-04-11 Yao Qi <yao@codesourcery.com>
7030
7031 * tracepoint.c (tfile_interp_line): Fit parameters line and
7032 utpp in one line.
7033
07293be4
JB
70342013-04-10 Joel Brobecker <brobecker@adacore.com>
7035
7036 * solib.c (solib_map_sections): Remove code overwriting
7037 SO->SO_NAME with the bfd's filename.
7038
f81d1120
PA
70392013-04-10 Pedro Alves <palves@redhat.com>
7040
7041 * cli/cli-decode.c (integer_unlimited_completer): New function.
7042 (add_setshow_integer_cmd, add_setshow_uinteger_cmd)
7043 (add_setshow_zuinteger_unlimited_cmd): Install the "unlimited"
7044 completer.
7045 * cli/cli-setshow.c: Include "cli/cli-utils.h".
7046 (is_unlimited_literal): New function.
7047 (do_set_command): Handle literal "unlimited" arguments.
7048 * frame.c (_initialize_frame) <set backtrace limit>: Document
7049 "unlimited".
7050 * printcmd.c (_initialize_printcmd) <set print
7051 max-symbolic-offset>: Add help text.
7052 * record-full.c (_initialize_record_full) <set record full
7053 insn-number-max>: Likewise.
7054 * record.c (_initialize_record) <set record
7055 instruction-history-size, set record function-call-history-size>:
7056 Add help text.
7057 * ser-tcp.c (_initialize_ser_tcp) <set tcp connect-timeout>: Add
7058 help text.
7059 * tracepoint.c (_initialize_tracepoint) <set trace-buffer-size>:
7060 Likewise.
7061 * source.c (_initialize_source) <set listsize>: Add help text.
7062 * utils.c (initialize_utils) <set height, set width>: Likewise.
7063 <set pagination>: Mention "set height unlimited".
7064 * valprint.c (_initialize_valprint) <set print elements, set print
7065 repeats>: Document "unlimited".
7066
2f9d54cf
PA
70672013-04-10 Pedro Alves <palves@redhat.com>
7068
7069 * cli/cli-cmds.c (quit_command): Call query_if_trace_running
7070 instead of disconnect_tracing.
7071 * infcmd.c (detach_command, disconnect_command): Call
7072 query_if_trace_running. Adjust.
7073 * top.c: Include "tracepoint.h".
7074 (quit_target): Delete. Contents moved ...
7075 (quit_force): ... here. Wrap each stage of teardown in
7076 TRY_CATCH. Call disconnect_tracing before detaching.
7077
393fd4c3
YQ
70782013-04-10 Hui Zhu <hui@codesourcery.com>
7079 Yao Qi <yao@codesourcery.com>
7080
7081 * configure.ac: Check libbabeltrace is installed.
7082 * config.in: Regenerate.
7083 * configure: Regenerate.
7084 * Makefile.in (LIBBABELTRACE): New.
7085 (CLIBS): Add LIBBABELTRACE.
7086 * ctf.c: Include "exec.h".
7087 (CTF_EVENT_ID_STATUS, CTF_EVENT_ID_TSV_DEF): New macros.
7088 (CTF_EVENT_ID_TP_DEF, ctf_save_write_int32): New macros.
7089 (ctf_save_metadata_header): Define new type aliases in
7090 metadata.
7091 (ctf_write_header): Define event type "tsv_def" and "tp_def"
7092 in metadata. Start a new faked packet for trace status.
7093 (ctf_write_status): Write trace status to CTF.
7094 (ctf_write_uploaded_tsv): Write TSV to CTF.
7095 (ctf_write_uploaded_tp): Write tracepoint definition to CTF.
7096 (ctf_write_definition_end): End the faked packet.
7097
7098 (ctx, ctf_iter, trace_dirname): New.
7099 (start_pos): New variable.
7100 (ctf_destroy, ctf_open_dir, ctf_open): New.
7101 (SET_INT32_FIELD, SET_ARRAY_FIELD, SET_STRING_FIELD): New
7102 macros.
7103 (ctf_read_tsv, ctf_read_tp, ctf_close, ctf_files_info): New.
7104 (ctf_fetch_registers, ctf_xfer_partial): New.
7105 (ctf_get_trace_state_variable_value): New.
7106 (ctf_get_tpnum_from_frame_event): New.
7107 (ctf_get_traceframe_address): New.
7108 (ctf_trace_find, ctf_has_stack): New.
7109 (ctf_has_registers, ctf_traceframe_info, init_ctf_ops): New.
7110 (ctf_get_trace_status, ctf_read_status): New.
7111 (_initialize_ctf): New.
7112 * tracepoint.c (get_tracepoint_number): New
7113 (get_uploaded_tsv): Remove 'static'.
5f8e0b8f 7114 (struct traceframe_info, trace_regblock_size): Move it to ...
393fd4c3
YQ
7115 * tracepoint.h: ... here.
7116 (get_tracepoint_number): Declare it.
7117 (get_uploaded_tsv): Declare it.
7118
7119 * NEWS: Mention new configure option.
7120
5c2b4418
HZ
71212013-04-10 Pedro Alves <palves@redhat.com>
7122 Hui Zhu <hui@codesourcery.com>
7123
7124 * breakpoint.c (dprintf_re_set): New.
7125 (initialize_breakpoint_ops): Set dprintf_breakpoint_ops re_set
7126 to dprintf_re_set.
7127
a5c66735
JB
71282013-04-09 Joel Brobecker <brobecker@adacore.com>
7129
7130 * configure.tgt (gdb_target_obs) <powerpc-*-aix* | rs6000-*-*>:
7131 Remove solib-svr4.o from the list.
7132
9e77999c
JB
71332013-04-09 Joel Brobecker <brobecker@adacore.com>
7134
7135 * varobj.c (update_dynamic_varobj_children) [!HAVE_PYTHON]:
7136 Use gdb_assert_not_reached instead of invalid boolean expression.
7137
1927e618
PA
71382013-04-09 Pedro Alves <palves@redhat.com>
7139
7140 * remote.c (unpush_and_perror): New function.
7141 (readchar, remote_serial_write): Use it.
7142
10782d74
MM
71432013-04-09 Markus Metzger <markus.t.metzger@intel.com>
7144
7145 * NEWS: Mention new btrace RSP packets.
7146
4c8429ef
TT
71472013-04-08 Tom Tromey <tromey@redhat.com>
7148
7149 * symmisc.c (dump_msymbols): Cast fprintf_filtered argument to
7150 long.
7151
8625fc1b
TT
71522013-04-08 Tom Tromey <tromey@redhat.com>
7153
7154 * maint.c (print_bfd_section_info): Print the section index.
7155 * symmisc.c (dump_msymbols): Print the section index.
7156
e27d198c
TT
71572013-04-08 Tom Tromey <tromey@redhat.com>
7158
7159 PR symtab/8424:
7160 * blockframe.c (find_pc_partial_function_gnu_ifunc): Check
7161 SYMBOL_SECTION, not SYMBOL_OBJ_SECTION.
7162 * breakpoint.c (resolve_sal_pc): Update.
7163 * elfread.c (elf_gnu_ifunc_record_cache): Update.
7164 * findvar.c (struct minsym_lookup_data) <objfile>: New field.
7165 (minsym_lookup_iterator_cb): Use it.
7166 (default_read_var_value): Update.
7167 * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline):
7168 Update.
7169 * infcmd.c (jump_command): Update.
7170 * linespec.c (minsym_found): Update.
7171 * maint.c (maintenance_translate_address): Update.
7172 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Update.
7173 (prim_record_minimal_symbol_full): Don't set SYMBOL_OBJ_SECTION.
7174 * parse.c (write_exp_msymbol): Update.
7175 * printcmd.c (address_info): Update.
7176 * psymtab.c (find_pc_sect_psymbol): Update.
7177 (fixup_psymbol_section): Check SYMBOL_SECTION, not
7178 SYMBOL_OBJ_SECTION.
7179 (add_psymbol_to_bcache): Correctly initialize SYMBOL_SECTION.
7180 Don't initialize SYMBOL_OBJ_SECTION.
7181 * spu-tdep.c (spu_catch_start): Update.
7182 * stabsread.c (define_symbol): Don't set SYMBOL_SECTION.
7183 * symmisc.c (dump_msymbols, print_symbol): Update.
7184 * symtab.c (fixup_section): Don't set 'obj_section'. Change
7185 how fallback section is computed.
7186 (fixup_symbol_section): Update.
7187 (find_pc_sect_symtab, find_function_start_sal, skip_prologue_sal):
7188 Update.
7189 (allocate_symbol, initialize_symbol, allocate_template_symbol):
7190 Initialize SYMBOL_SECTION.
7191 * symtab.h (struct general_symbol_info) <section>: Update comment.
7192 <obj_section>: Remove.
7193 (SYMBOL_OBJ_SECTION): Add 'objfile' argument. Rewrite.
7194 (SYMBOL_OBJFILE): New macro.
7195
e6dc44a8
TT
71962013-04-08 Tom Tromey <tromey@redhat.com>
7197
7198 * coffread.c (record_minimal_symbol): Update.
7199 * dbxread.c (record_minimal_symbol): Update.
7200 * elfread.c (record_minimal_symbol): Update.
7201 * machoread.c (macho_symtab_add_minsym): Update.
7202 * mdebugread.c (record_minimal_symbol, parse_partial_symbols):
7203 Update.
7204 * minsyms.c (prim_record_minimal_symbol): Update.
7205 (prim_record_minimal_symbol_full): Remove 'bfd_section'
7206 argument.
7207 (prim_record_minimal_symbol_and_info): Likewise.
7208 * minsyms.h (prim_record_minimal_symbol_full)
7209 (prim_record_minimal_symbol_and_info): Update.
7210 * symtab.c (allocate_symbol, initialize_symbol)
7211 (allocate_template_symbol): Initialize SYMBOL_SECTION.
7212 * xcoffread.c (record_minimal_symbol, scan_xcoff_symtab):
7213 Update.
7214
36192a8d
TT
72152013-04-08 Tom Tromey <tromey@redhat.com>
7216
7217 PR symtab/8423:
7218 * solib-som.c (som_solib_section_offsets): Use BFD section
7219 indices. Set offsets for all sections.
7220 * somread.c (som_symtab_read): Compute BFD section for
7221 symbol. Use prim_record_minimal_symbol_and_info.
7222 (som_symfile_read): Fix comment.
7223 (struct find_section_offset_arg): New.
7224 (find_section_offset, set_section_index): New functions.
7225 (som_symfile_offsets): Use set_section_index to compute
7226 section indices.
7227
65cf3563
TT
72282013-04-08 Tom Tromey <tromey@redhat.com>
7229
7230 * coffread.c (cs_to_section): Use gdb_bfd_section_index.
7231 * elfread.c (record_minimal_symbol, elf_symtab_read): Use
7232 gdb_bfd_section_index.
7233 * gdb_bfd.c (gdb_bfd_section_index, gdb_bfd_count_sections):
7234 New functions.
7235 * gdb_bfd.h (gdb_bfd_section_index, gdb_bfd_count_sections):
7236 Declare.
7237 * machoread.c (macho_symtab_add_minsym, macho_symfile_offsets):
7238 Update.
7239 * objfiles.c (add_to_objfile_sections_full): New function.
7240 (add_to_objfile_sections): Use it.
7241 (build_section_table): Rewrite.
7242 (objfile_relocate1): Use gdb_bfd_section_index. Update.
7243 * objfiles.h (obj_section_offset): Use gdb_bfd_section_index.
7244 (struct objfile) <sections>: Update comment.
7245 (ALL_OBJFILE_OSECTIONS): Skip sections where the_bfd_section
7246 is NULL.
7247 (ALL_OBJSECTIONS): Use it.
7248 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
7249 * solib-frv.c (frv_relocate_main_executable): Update.
7250 * solib-target.c (solib_target_relocate_section_addresses):
7251 Use gdb_bfd_section_index.
7252 * symfile.c (build_section_addr_info_from_section_table):
7253 Use gdb_bfd_section_index.
7254 (build_section_addr_info_from_bfd, place_section): Likewise.
7255 * symtab.c (fixup_section): Update.
7256 * xcoffread.c (find_targ_sec): Use gdb_bfd_section_index.
7257
7cbd4a93
TT
72582013-04-08 Tom Tromey <tromey@redhat.com>
7259
7260 * minsyms.h (struct bound_minimal_symbol): New.
7261 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
7262 Remove objfile argument.
7263 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
7264 Return bound_minimal_symbol.
7265 * minsyms.c (lookup_minimal_symbol_by_pc_1)
7266 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
7267 Return bound_minimal_symbol.
7268 (in_gnu_ifunc_stub): Update.
7269 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
7270 Remove 'objfile_p' argument.
7271 (lookup_solib_trampoline_symbol_by_pc): Update.
7272 * ada-tasks.c, amd64-windows-tdep.c, arm-tdep.c,
7273 arm-wince-tdep.c, block.c, blockframe.c, breakpoint.c, btrace.c,
7274 c-valprint.c, dwarf2loc.c, elfread.c, frame.c, frv-tdep.c,
7275 glibc-tdep.c, gnu-v2-abi.c, gnu-v3-abi.c, hppa-hpux-tdep.c,
7276 i386-tdep.c, ia64-tdep.c, infcall.c, infcmd.c, jit.c,
7277 linux-fork.c, m32c-tdep.c, m68hc11-tdep.c, maint.c,
7278 mips-tdep.c, p-valprint.c, parse.c, ppc-linux-tdep.c,
7279 ppc-sysv-tdep.c, printcmd.c, rs6000-tdep.c, sh64-tdep.c,
7280 stack.c, symtab.c, tui/tui-disasm.c: Update.
7281
f85f34ed
TT
72822013-04-08 Tom Tromey <tromey@redhat.com>
7283
7284 * ada-lang.c (ada_decode_symbol): Check and set 'ada_mangled'.
7285 Use symbol's obstack, not an objfile.
7286 * coffread.c (process_coff_symbol): Update.
7287 * dwarf2read.c (fixup_go_packaging, new_symbol_full): Update.
7288 * jv-lang.c (add_class_symbol): Update.
7289 * mdebugread.c (new_symbol): Update.
7290 * minsyms.c (prim_record_minimal_symbol_full)
7291 (terminate_minimal_symbol_table): Update.
7292 * psymtab.c (add_psymbol_to_bcache): Clear entire symbol. Update.
7293 * stabsread.c (define_symbol, read_enum_type): Update.
7294 * symtab.c (symbol_set_demangled_name, symbol_get_demangled_name):
7295 Handle Ada specially.
7296 (symbol_set_language): Add 'obstack' argument.
7297 (symbol_set_names): Update.
7298 (symbol_natural_name, symbol_demangled_name): Always use
7299 ada_decode_symbol.
7300 * symtab.h (struct general_symbol_info)
7301 <language_specific::obstack>: New field.
7302 <ada_mangled>: New field.
7303 (SYMBOL_SET_LANGUAGE): Add 'obstack' argument.
7304 (symbol_set_language): Update.
7305
ccde22c0
TT
73062013-04-08 Tom Tromey <tromey@redhat.com>
7307
7308 * symtab.c (symbol_init_cplus_specific, symbol_set_demangled_name):
7309 Take an obstack, not an objfile.
7310 (symbol_set_names): Update.
7311 * symtab.h (symbol_set_demangled_name): Update.
7312
e623cf5d
TT
73132013-04-08 Tom Tromey <tromey@redhat.com>
7314
7315 * coffread.c (process_coff_symbol, coff_read_enum_type): Call
7316 allocate_symbol.
7317 * dwarf2read.c (fixup_go_packaging): Call allocate_symbol.
7318 (read_func_scope): Call allocate_template_symbol.
7319 (new_symbol_full): Call allocate_symbol.
7320 * jit.c (finalize_symtab): Call allocate_symbol.
7321 * jv-lang.c (add_class_symbol): Call allocate_symbol.
7322 * mdebugread.c (parse_symbol, new_block): Call allocate_symbol.
7323 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
7324 (common_block_end): Call allocate_symbol.
7325 * symtab.c (allocate_symbol, initialize_symbol)
7326 (allocate_template_symbol): New functions.
7327 * symtab.c (allocate_symbol, initialize_symbol)
7328 (allocate_template_symbol): Declare.
7329 * xcoffread.c (process_xcoff_symbol): Call initialize_symbol.
7330
f6de8ec2
PA
73312013-04-08 Pedro Alves <palves@redhat.com>
7332 Keith Seitz <keiths@redhat.com>
7333
7334 * breakpoint.c (create_breakpoint): Rename
7335 "parse_condition_and_thread" parameter to "parse_arg". Update
7336 describing comment. If !PARSE_ARG, then error out if ARG is not
7337 the empty string after extracting the location.
7338 * breakpoint.h (create_breakpoint): Rename
7339 "parse_condition_and_thread" parameter to "parse_arg".
7340
f65ce5fb
AR
73412013-04-08 Aleksandar Ristovski <aristovski@qnx.com
7342
7343 * solib-svr4.c (lm_addr_check): Add const qualifier to 'so' arg.
7344
cc5925ad
YQ
73452013-04-07 Yao Qi <yao@codesourcery.com>
7346
7347 * remote.c (remote_trace_find): Change type of parameters 'addr1'
7348 and 'addr2' to CORE_ADDR.
7349 * target.c (update_current_target): Update.
7350 * target.h (struct target_ops) <to_trace_find>: Change parameter
7351 type to CORE_ADDR.
7352 * tracepoint.c (tfind_1): Change type of parameters 'addr1' and
7353 'addr2' to CORE_ADDR.
7354 (tfile_trace_find): Likewise.
7355 (tfile_get_traceframe_address): Change return type to CORE_ADDR.
7356 Change local variable 'addr' to type CORE_ADDR.
7357 * tracepoint.h (tfind_1): Update declaration.
7358
d9ac0664
EZ
73592013-04-06 Eli Zaretskii <eliz@gnu.org>
7360
7361 * windows-nat.c (windows_get_absolute_argv0): Move from here...
7362 * mingw-hdep.c (windows_get_absolute_argv0): ...to here.
7363 Include main.h.
7364
7365 * windows-nat.h (windows_get_absolute_argv0): Move prototype from
7366 here...
7367 * main.h (windows_get_absolute_argv0): ...to here.
7368
02142a6c
DE
73692013-04-05 Doug Evans <dje@google.com>
7370
7371 * dwarf2read.c (struct dwarf2_per_objfile): Tweak comment.
7372 (read_cutu_die_from_dwo): Add comments.
7373 (read_structure_type): Update comment.
7374 (read_enumeration_type, read_namespace_type): Update comment.
7375 (read_die_type, get_die_type_at_offset, get_die_type): Update comment.
7376
43662968
JK
73772013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7378
7379 Convert man pages to texinfo, new gdbinit.5 texinfo page.
7380 * Makefile.in (gdb.z): Remove.
7381 (install-only): Remove $(man1dir) and gdb.1 installation.
7382 * gdb.1: Remove.
7383
9ead1b84
JK
73842013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7385
7386 Fix compatibility with Linux kernel 3.8.3.
7387 * linux-tdep.c (linux_find_memory_regions_full): Move variable number
7388 to more inner block. Remove parsing of NUMBER from outer block.
7389 Parse NUMBER only if KEYWORD has been identified.
7390
d1794952
JK
73912013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7392
7393 Fix variable name shadowing.
7394 * linux-tdep.c (linux_find_memory_regions_full): Rename outer variable
7395 filename to mapsfilename and update its uses.
7396
9025569e
EZ
73972013-04-05 Eli Zaretskii <eliz@gnu.org>
7398
7399 * Makefile.in (TAGS): Avoid warning from etags when $GDB_NM_FILE is
7400 empty. See http://sourceware.org/ml/gdb-patches/2012-08/msg00504.html
7401 and http://sourceware.org/ml/gdb-patches/2013-04/msg00055.html for
7402 details of the problem.
7403
c9a6ce02
PA
74042013-04-04 Pedro Alves <palves@redhat.com>
7405 Hui Zhu <hui@codesourcery.com>
7406
7407 * breakpoint.c (validate_commands_for_breakpoint): If validating a
7408 tracepoint, reset its STEP_COUNT and call validate_actionline.
7409
5ff888ce
DE
74102013-04-03 Doug Evans <dje@google.com>
7411
bf6af496
DE
7412 * dwarf2read.c (read_die_and_siblings_1): Renamed from
7413 read_die_and_siblings.
7414 (read_die_and_siblings): New function.
7415 (read_cutu_die_from_dwo): Dump die if requested.
7416 (read_die_and_children): Call read_full_die_1 and
7417 read_die_and_siblings_1.
7418 (read_full_die): Dump die if requested.
7419
7420 * dwarf2read.c (read_comp_units_from_section): Add debugging printf.
7421
0ac5b59e
DE
7422 * dwarf2read.c (struct dwo_file): New member comp_dir.
7423 Rename member name to dwo_name. All uses updated.
7424 (hash_dwo_file): Include comp_dir in computation.
7425 (eq_dwo_file): Ditto.
7426 (lookup_dwo_file_slot): New arg comp_dir. All callers updated.
7427 (create_dwo_in_dwp, lookup_dwo_in_dwp, open_and_init_dwo_file): Ditto.
7428
5ff888ce
DE
7429 * psymtab.c (read_psymtabs_with_fullname): Don't call
7430 psymtab_to_fullname if the basenames are different.
7431
ec83d211
JK
74322013-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7433
7434 * NEWS (Changes in GDB 7.6): Update the data-disassemble for "fullname".
7435 New entry about "fullname" presence.
7436
4f4352f7
PA
74372013-04-03 Pedro Alves <palves@redhat.com>
7438
7439 * NEWS: Mention x86_64/Cygwin as new native configuration.
7440
3d1d5ea3
DE
74412013-04-02 Doug Evans <dje@google.com>
7442
7443 * dwarf2read.c (read_structure_type): Fix typo in comment.
7444
be9a8770
PA
74452013-04-02 Pedro Alves <palves@redhat.com>
7446
7447 * NEWS: Mention "set/show debug aarch64", "set/show debug
7448 coff-pe-read" and "set/show debug mach-o".
7449
a46c1e42
PA
74502013-04-02 Pedro Alves <palves@redhat.com>
7451
7452 * NEWS: Mention "set/show remote trace-buffer-size-packet".
7453
3ad18b19
EZ
74542013-04-02 Eli Zaretskii <eliz@gnu.org>
7455
7456 * Makefile.in (HFILES_NO_SRCDIR): Remove call-cmds.h.
7457 gdb_string.h is now in common/.
7458
e9f1758d
PA
74592013-04-02 Pedro Alves <palves@redhat.com>
7460
7461 * NEWS: Move "set debug notification" and "set trace-buffer-size"
7462 under "New options".
7463
049dc89b
JK
74642013-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7465
7466 Revert this patch:
7467 PR gdb/15275
7468 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
7469
c33e31fd
PA
74702013-04-02 Pedro Alves <palves@redhat.com>
7471
7472 PR gdb/15275
7473
7474 * remote.c (send_interrupt_sequence): Use remote_serial_write.
7475 (remote_serial_write): New function.
7476 (putpkt_binary, getpkt_or_notif_sane_1): Use remote_serial_write.
7477
ea5f3910
JW
74782013-04-01 Jiong Wang <jiwang@tilera.com>
7479
7480 * NEWS: Mention TILE-Gx in "New native configurations" and
f5aee5ee 7481 "New targets" sections.
ea5f3910 7482
5c6fa7ab
DE
74832013-04-01 Doug Evans <dje@google.com>
7484
c0f78cd4
DE
7485 * dwarf2read.c (lookup_signatured_type_at_offset): Delete.
7486 (process_enumeration_scope): Simplify.
7487
0186c6a7
DE
7488 * dwarf2read.c (struct dwarf2_per_cu_data): Move member
7489 type_unit_group ...
7490 (struct signatured_type): ... to here.
7491 (sig_type_ptr): New typedef.
7492 (type_unit_group): Delete member 't.first_cu'. Move member 'tus'
7493 out of union 't'. All uses updated.
7494 (dw2_get_file_names_reader): Assert not called for a type unit.
7495 (dw2_get_file_names): Assert not called for a type unit or type
7496 unit group.
7497 (build_type_psymtabs_reader): Assert called for a type unit.
7498 (build_type_psymtab_dependencies): Assert called for a type unit group.
7499
5c6fa7ab
DE
7500 * dwarf2read.c (free_dwo_file): Add comment.
7501 (dwarf2_per_objfile_free): Unref dwp bfd.
7502
b3c0ad67 75032013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
cebca8c1
AR
7504
7505 * coff-pe-read.c (add_pe_exported_sym): Remove unused 'dll_name_len'.
7506 (add_pe_forwarded_sym): Remove unused 'section', 'dll_name_len'.
7507 (read_pe_exported_syms): Remove unused 'exportix'.
7508 (pe_text_section_offset): Remove unused 'opthdr_ofs', 'num_entries',
7509 'export_rva', 'export_size', 'expptr', 'exp_funcbase', 'expdata',
7510 'erva', 'name_rvas', 'ordinals', 'nexp', 'ordbase', 'dll_name'.
7511
e2df1547
AR
75122013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
7513
7514 * breakpoint.c (parse_cond_to_aexpr): Remove unused 'old_chain'.
7515 (print_it_watchpoint): Remove unused 'bl'.
7516 (say_where): Remove unused 'uiout'.
7517 (bpstat_remove_breakpoint_callback): Remove unused 'uiout'.
7518 (bkpt_breakpoint_hit): Remove unused 'b'.
7519 (internal_bkpt_print_it): Remove unused 'uiout'.
7520 * buildsym.c (augment_type_symtab): Remove unused 'i'.
7521
d81e75c0
TD
75222013-03-31 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
7523
7524 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_float): New function.
7525 (ppc64_sysv_abi_push_dummy_call): Handle complex arguments.
7526
5a8b3f62
DE
75272013-03-29 Doug Evans <dje@google.com>
7528
ab5088bf
DE
7529 * dwarf2read.c (open_dwo_file): Renamed from open_dwop_file.
7530 Delete arg is_dwp. All callers updated.
7531 (open_dwp_file): New function.
7532 (open_and_init_dwp_file): Call it.
7533 (get_dwp_file): New function.
7534 (lookup_dwo_cutu): Call it.
7535
a8ad1e57
DE
7536 * dwarf2read.c (open_and_init_dwp_file): Remove incorrect, and
7537 unnecessary, cleanup.
7538
6296d8c1
DE
7539 * dwarf2read.c (lookup_dwo_cutu): Improve complaint text.
7540
b0c7bfa9
DE
7541 * dwarf2read.c (read_cutu_die_from_dwo): New function.
7542 (lookup_dwo_unit): New function.
7543 (init_cutu_and_read_dies): Move DWO handling to new functions.
7544
c88ee1f0
DE
7545 * dwarf2read.c (struct signatured_type): Tweak comment.
7546 (struct dwo_unit): Tweak comment.
7547 (create_debug_types_hash_table): Tweak comment. Reformat long line.
7548 (create_dwo_debug_info_hash_table): Tweak comment.
7549 (dwarf2_per_cu_offset_and_type): Tweak comment.
7550
5a8b3f62
DE
7551 * dwarf2read.c (lookup_signatured_type): Remove complaint about
7552 missing .debug_types section.
7553
9852c492
YQ
75542013-03-29 Yao Qi <yao@codesourcery.com>
7555
7556 * corelow.c: Include "completer.h".
7557 (_initialize_corelow): Call add_target_with_completer with
7558 argument 'filename_completer'.
7559 * tracepoint.c: Likewise.
7560 * exec.c (_initialize_exec): Likewise.
7561 * target.c (add_target): Rename to ...
7562 (add_target_with_completer): ... this. Call set_cmd_completer
7563 if parameter completer is not NULL.
7564 (add_target): New.
7565 * target.h: Include "command.h".
7566 (add_target_with_completer): Declare it.
7567
af312be7
JB
75682013-03-28 Joel Brobecker <brobecker@adacore.com>
7569
7570 * coffread.c (is_import_fixup_symbol): New function.
7571 (record_minimal_symbol): Use is_import_fixup_symbol to
7572 detect import fixup symbols, and discard them.
7573
8a0459fd
DE
75742013-03-28 Doug Evans <dje@google.com>
7575
0349ea22
DE
7576 * dwarf2read.c (create_debug_types_hash_table): Don't allocate the
7577 types hash table until we know we need it.
7578
f652bce2
DE
7579 * dwarf2read.c (create_addrmap_from_index): Complain about bad CU
7580 index numbers.
7581
e4a48d9d
DE
7582 * dwarf2read.c (dw2_get_file_names): Delete arg "objfile".
7583 All callers updated.
7584 (dw2_print_stats): Print #read CUs too.
7585 (dump_die_shallow): Print signatured types better.
7586
8a0459fd
DE
7587 * dwarf2read.c (struct dwarf2_per_cu_data): Rename member
7588 info_or_types_section to section. All uses updated.
7589 (struct dwo_unit): Ditto.
7590
bd3eecc3
PA
75912013-03-28 Pedro Alves <palves@redhat.com>
7592
7593 * NEWS (New options): New section.
7594 (New options): Mention set/show remote trace-status-packet.
7595 * remote.c (PACKET_qTStatus): New enumeration value.
7596 (remote_get_trace_status): Skip sending qTStatus if the packet is
7597 disabled. Use packet_ok.
7598 (_initialize_remote): Register a configuration command for
7599 qTStatus packet.
7600
41245087
DE
76012013-03-28 Doug Evans <dje@google.com>
7602
7edbb660
DE
7603 * symfile.c (find_separate_debug_file): Add comment.
7604 (terminate_after_last_dir_separator): Tweak comment.
7605
0018ea6f
DE
7606 * dwarf2read.c (create_partial_symtab): Add forward decl.
7607 (create_partial_symtab): Move to be closer to other psymtab functions.
7608 (process_psymtab_comp_unit_reader, process_psymtab_comp_unit): Ditto.
7609
ca69b9e6
DE
7610 * dwarf2read.c (dwarf2_physname): Move declaration to better spot.
7611 (compute_symtab_includes): Remove unnecessary forward declaration.
7612 (die_needs_namespace): Add comment marking group of functions for
7613 dwarf2 name computation.
7614
a9375afe
DE
7615 * typeprint.c (_initialize_typeprint): Improve type help text.
7616
41245087
DE
7617 * python/python.c (finish_python_initialization): Provide suggestion
7618 for how to tell gdb to find its python files.
7619
7f7cc265
PA
76202013-03-28 Pedro Alves <palves@redhat.com>
7621
7622 PR gdb/15294
7623
7624 * source.c (_initialize_source): Change back "set listsize" to an
7625 integer command.
7626
ec21308c
JK
76272013-03-27 Gareth McMullin <gareth@blacksphere.co.nz>
7628
7629 PR gdb/15275
7630 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
7631
840a9a1f
PA
76322013-03-27 Pedro Alves <palves@redhat.com>
7633
7634 * top.c (history_size): Rename to ...
7635 (history_size_setshow_var): ... this. Add comment.
7636 (show_commands): Use readline's 'history_length' instead of
7637 computing the history length by calling history_get in a loop.
7638 (set_history_size_command): Error out for sizes over INT_MAX.
7639 Restore previous history size on invalid size.
7640 (init_history): If HISTSIZE is negative, leave the history size as
7641 zero. Add comments.
7642 (init_main): Adjust.
7643
826ecc4d
PA
76442013-03-27 Pedro Alves <palves@redhat.com>
7645
7646 * coff-pe-read.c (_initialize_coff_pe_read): Rename "set debug
7647 coff_pe_read" command to "set debug coff-pe-read".
7648
0ccfeeae
MM
76492013-03-27 Markus Metzger <markus.t.metzger@intel.com>
7650
7651 * record.c (command_size_to_target_size): Fix size comparison.
7652 Change parameter type from pointer to integer to integer.
7653 Update all users.
7654
40653b35
PM
76552013-03-27 Pierre Muller <muller@sourceware.org>
7656
7657 * windows-nat.c (handle_output_debug_string): Avoid typecast
7658 from integer of different size warning.
7659
c62fa0e2
JB
76602013-03-26 Joel Brobecker <brobecker@adacore.com>
7661
7662 * windows-nat.c (handle_output_debug_string): Add empty line
7663 after local block variable definition.
7664
2c619be2
PA
76652013-03-26 Pedro Alves <palves@redhat.com>
7666
7667 * ser-tcp.c (wait_for_connect): Make 'polls' parameter unsigned.
7668 (net_open): Make 'polls' local unsigned.
7669
1b493192
PA
76702013-03-26 Pedro Alves <palves@redhat.com>
7671
7672 * remote.c (_initialize_remote): Make "set remoteaddresssize"
7673 a zuinteger command instead of uinteger.
7674
7ee70bf5
PA
76752013-03-26 Pedro Alves <palves@redhat.com>
7676
7677 * record-full.c (record_full_insn_num): Make it unsigned.
7678 (record_full_check_insn_num, record_full_message)
7679 (record_full_registers_change, record_full_xfer_partial): Remove
7680 record_full_insn_max_num check (it's always != 0).
7681 (record_full_info, record_full_restore): Use %u as format string.
7682 (): Use %u as format string.
7683 (set_record_full_insn_max_num): Remove record_full_insn_max_num
7684 check (it's always != 0).
7685
dfd1f9bb
PA
76862013-03-26 Pedro Alves <palves@redhat.com>
7687
7688 * dcache.c (_initialize_dcache): Make the "set dcache line-size"
7689 and "set dcache size" commands zuinteger instead of uinteger.
7690
addb4faf
PA
76912013-03-26 Pedro Alves <palves@redhat.com>
7692
7693 * cris-tdep.c (_initialize_cris_tdep): Make the "set cris-version"
7694 command zuinteger instead of uinteger.
7695
b75bf488
PA
76962013-03-26 Pedro Alves <palves@redhat.com>
7697
7698 * coff-pe-read.c (_initialize_coff_pe_read): Make the command
7699 zuinteger instead of uinteger.
7700
42c634cb
PA
77012013-03-26 Pedro Alves <palves@redhat.com>
7702
7703 * record.c (record_insn_history_size_setshow_var)
7704 (record_call_history_size_setshow_var): New globals.
7705 (command_size_to_target_size): New function.
7706 (cmd_record_insn_history, cmd_record_call_history): Use
7707 command_size_to_target_size instead of cast.
7708 (validate_history_size, set_record_insn_history_size)
7709 (set_record_call_history_size): New functions.
7710 (_initialize_record): Install set_record_insn_history_size and
7711 set_record_call_history_size as "set" hooks of "set record
7712 instruction-history-size" and "set record
7713 function-call-history-size".
7714
1fb2e2b5
PA
77152013-03-26 Pedro Alves <palves@redhat.com>
7716
7717 * top.c (gdb_rl_operate_and_get_next): Replace max_input_history
7718 use with history_max_entries use. Remove FIXME note.
7719
99c819ee
MM
77202013-03-26 Markus Metzger <markus.t.metzger@intel.com>
7721
7722 * record-btrace.c (record_btrace_close): Call
7723 record_btrace_auto_disable.
7724
9f9e404c
JB
77252013-03-25 Joel Brobecker <brobecker@adacore.com>
7726
7727 * rs6000-nat.c (fixup_breakpoints): Delete declaration.
7728
ebcdfe33
DE
77292013-03-25 Doug Evans <dje@google.com>
7730
7731 * contrib/cc-with-tweaks.sh: Check exit code of dwp.
7732
24955f63
TT
77332013-03-25 Tom Tromey <tromey@redhat.com>
7734
7735 PR symtab/11462:
7736 * c-exp.y (exp): Add new productions for destructors after '.' and
7737 '->'.
7738 (write_destructor_name): New function.
7739
fce632b6
TT
77402013-03-25 Tom Tromey <tromey@redhat.com>
7741
7742 PR c++/9197:
7743 * opencl-lang.c (evaluate_subexp_opencl) <STRUCTOP_STRUCT>: Use
7744 value_struct_elt, not lookup_struct_elt_type.
7745 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
7746 STRUCTOP_PTR>: Use value_struct_elt, not lookup_struct_elt_type.
7747 * expression.h (EVAL_AVOID_SIDE_EFFECTS): Update comment.
7748
a4341769
YQ
77492013-03-25 Yao Qi <yao@codesourcery.com>
7750
7751 * ctf.c [USE_WIN32API]: Undef 'mkdir' and use 'mkdir'
7752 instead of '_mkdir'.
7753
b5981e5a
EZ
77542013-03-23 Eli Zaretskii <eliz@gnu.org>
7755
7756 * windows-nat.c (windows_get_absolute_argv0): New function.
7757 * windows-nat.h: Add its prototype.
7758
7759 * main.c (get_init_files): Use filename_ncmp instead of strncmp.
7760 Use IS_DIR_SEPARATOR instead of looking for a character inside
7761 SLASH_STRING. Include filenames.h.
7762 (captured_main) [__MINGW32__]: Make argv[0] absolute, so that
7763 relocate_gdb_directory works when passed gdb_program_name.
7764 Include windows-nat.h.
7765
598d3636
JK
77662013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7767
7768 * exceptions.h (enum errors): New entry TARGET_CLOSE_ERROR.
7769 * remote.c (trace_error): Remove the special handling of '2'.
7770 (readchar) <SERIAL_EOF>
7771 (readchar) <SERIAL_ERROR>
7772 (getpkt_or_notif_sane_1): Use TARGET_CLOSE_ERROR for them.
7773 (remote_get_trace_status): Call throw_exception if EX is
7774 TARGET_CLOSE_ERROR.
7775 * utils.c (perror_with_name): Rename to ...
7776 (throw_perror_with_name): ... here. New parameter errcode, describe it
7777 in the function comment.
7778 (perror_with_name): New function wrapper.
7779 * utils.h (enum errors): New stub declaration.
7780 (throw_perror_with_name): New declaration.
7781
82b821e9
PA
77822013-03-22 Pedro Alves <palves@redhat.com>
7783 Yao Qi <yao@codesourcery.com>
7784 Mark Kettenis <kettenis@gnu.org>
7785
7786 * cli/cli-setshow.c (do_set_command) <var_uinteger>:
7787 Don't let the user set the value to UINT_MAX directly.
7788 <var_integer>: Don't let the user set the value to INT_MAX
7789 directly.
7790
78a095c3
JK
77912013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7792
7793 * remote.c (remote_unpush_target): New function.
7794 (remote_open_1): Remove two pop_target calls, update one comment, add
7795 comment to target_preopen call. Replace pop_target call by
7796 remote_unpush_target call.
7797 (interrupt_query, readchar, getpkt_or_notif_sane_1): Replace
7798 pop_target calls by remote_unpush_target calls.
7799
3e74e146
PA
78002013-03-22 Pedro Alves <palves@redhat.com>
7801
7802 * linux-nat.c (linux_child_follow_fork): Don't call
7803 linux_enable_event_reporting.
7804 (linux_handle_extended_wait): Don't call
7805 linux_enable_event_reporting.
7806
a2213dca
PA
78072013-03-22 Pedro Alves <palves@redhat.com>
7808
7809 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Define INSN macro,
7810 use it to rewrite the trampoline buffers with type gdb_byte[], and
7811 undefine the macro. Remove char* cast.
7812
bd712aed
DE
78132013-03-21 Doug Evans <dje@google.com>
7814
7815 New commands "mt set per-command {space,time,symtab} {on,off}".
7816 * NEWS: Add entry.
7817 * event-top.c: #include "maint.h".
7818 * main.c: #include "maint.h".
7819 * maint.c: #include <sys/time.h>, <time.h>, block.h, top.h,
7820 timeval-utils.h, maint.h, cli/cli-setshow.h.
7821 (per_command_time, per_command_space): New static globals.
7822 (per_command_symtab): New static global.
7823 (per_command_setlist, per_command_showlist): New static globals.
7824 (struct cmd_stats): Move here from utils.c.
7825 (set_per_command_time): Renamed from set_display_time in utils.c
7826 and moved here. All callers updated.
7827 (set_per_command_space): Renamed from set_display_space in utils.c
7828 and moved here. All callers updated.
7829 (count_symtabs_and_blocks): New function.
7830 (report_command_stats): Moved here from utils.c. Add support for
7831 printing symtab stats. Only print data if enabled before command
7832 executed.
7833 (make_command_stats_cleanup): Ditto.
7834 (sert_per_command_cmd, show_per_command_cmd): New functions.
7835 (_initialize_maint_cmds): Add new commands
7836 mt set per-command {space,time,symtab} {on,off}.
7837 * maint.h: New file.
7838 * top.c: #include "maint.h".
7839 * utils.c (reset_prompt_for_continue_wait_time): New function.
7840 (get_prompt_for_continue_wait_time): New function.
7841 * utils.h (reset_prompt_for_continue_wait_time): Declare
7842 (get_prompt_for_continue_wait_time): Declare.
7843 (make_command_stats_cleanup): Moved to maint.h.
7844 (set_display_time, set_display_space): Moved to maint.h and renamed
7845 to set_per_command_time, set_per_command_space.
7846 * cli/cli-setshow.c (parse_cli_boolean_value): Renamed from
7847 parse_binary_operation and made non-static. Don't call error,
7848 just return an error marker. All callers updated.
7849 * cli/cli-setshow.h (parse_cli_boolean_value): Declare.
7850
d76488d8
TT
78512013-03-21 Tom Tromey <tromey@redhat.com>
7852
7853 * symfile.c (alloc_section_addr_info): Update header. Don't set
7854 'num_sections' field.
7855 (build_section_addr_info_from_section_table): Set 'num_sections'.
7856 (build_section_addr_info_from_bfd): Likewise.
7857 (build_section_addr_info_from_objfile): Remove dead loop
7858 condition.
7859 (free_section_addr_info): Unconditionally call xfree.
7860 (relative_addr_info_to_section_offsets, addrs_section_sort)
7861 (addr_info_make_relative, syms_from_objfile_1): Remove dead loop
7862 condition.
7863 (syms_from_objfile_1): Remove dead 'if' condition. Check
7864 'num_sections'.
7865 (add_symbol_file_command): Set 'num_sections'.
7866 * symfile-mem.c (symbol_file_add_from_memory): Set
7867 'num_sections'.
7868 * somread.c (som_symfile_offsets): Remove dead loop condition.
7869 * machoread.c (macho_symfile_offsets): Remove dead 'if'.
7870 * jit.c (jit_bfd_try_read_symtab): Set 'num_sections'.
7871
a72e5169 78722013-03-21 Tom Tromey <tromey@redhat.com>
92bc6a20
TT
7873
7874 * tracepoint.h (decode_agent_options): Add 'trace_string'
7875 argument.
7876 * tracepoint.c (decode_agent_options): Add 'trace_string'
7877 argument.
7878 (validate_actionline): Update.
7879 (collect_symbol): Add 'trace_string' argument.
7880 (struct add_local_symbols_data) <trace_string>: New field.
7881 (do_collect_symbol): Update.
7882 (add_local_symbols): Add 'trace_string' argument.
7883 (encode_actions_1): Update.
7884 (trace_dump_actions): Update.
7885 * dwarf2loc.c (access_memory): Update.
7886 * ax.h (struct agent_expr) <tracing, trace_string>: New fields.
7887 * ax-general.c (new_agent_expr): Update.
7888 * ax-gdb.h (gen_trace_for_expr, gen_trace_for_var)
7889 (gen_trace_for_return_address): Add argument.
7890 (trace_kludge, trace_string_kludge): Remove.
7891 * ax-gdb.c (trace_kludge, trace_string_kludge): Remove.
7892 (gen_traced_pop, gen_fetch, gen_bitfield_ref, gen_expr): Update.
7893 (gen_trace_for_var): Add 'trace_string' argument.
7894 (gen_trace_for_expr, gen_trace_for_return_address): Likewise.
7895 (gen_printf, agent_eval_command_one): Update.
7896
b2f83c08
TT
78972013-03-21 Tom Tromey <tromey@redhat.com>
7898
7899 PR exp/15109:
7900 * c-exp.y (yylex): Rewrite to push all tokens onto the FIFO.
7901 Handle FILENAME token.
7902
9507860e
TT
79032013-03-21 Tom Tromey <tromey@redhat.com>
7904
7905 * c-exp.y (YYPRINT): Define.
7906 (c_print_token): New function.
7907
e403aa4b
TT
79082013-03-21 Tom Tromey <tromey@redhat.com>
7909
7910 * c-exp.y (%union) <sym, ivar, ivec>: Remove.
7911
af307d6a
YQ
79122013-03-21 Yao Qi <yao@codesourcery.com>
7913
7914 * ctf.c: Include "gdb_stat.h".
7915 [USE_WIN32API]: New macro 'mkdir'.
7916 (ctf_start): Use permission bits macros if they are defined.
7917
fb81d016
KS
79182013-03-20 Keith Seitz <keiths@redhat.com>
7919
7920 * breakpoint.h (struct breakpoint): Add comment to
7921 extra_string indicating that this member is mallod'd.
7922 * breakpoint.c (base_breakpoint_dtor): Free extra_string.
7923
ef0026f0
PA
79242013-03-20 Pedro Alves <palves@redhat.com>
7925
7926 PR gdb/15289
7927
7928 * cli/cli-setshow.c (do_set_command)
7929 <var_uinteger, var_zuinteger>: Use LONGEST for variable holding
7930 the result of parsing the command argument. Throw error if the
7931 value is greater than UINT_MAX. Print the invalid value with
7932 plongest.
7933 <var_integer, var_zinteger>: Use LONGEST for variable holding the
7934 result of parsing the command argument. Throw error if the value
7935 is greater than INT_MAX, not greater or equal. Also throw error
7936 if the value is less than INT_MIN. Print the invalid value with
7937 plongest.
7938 <var_zuinteger_unlimited>: Throw error if the value is greater
7939 than INT_MAX, not greater or equal.
7940 (do_show_command) <var_integer, var_zinteger,
7941 var_zuinteger_unlimited>: Use %d for printing int, not %u.
7942
24d6c2a0
TT
79432013-03-20 Tom Tromey <tromey@redhat.com>
7944
7945 * ax-gdb.c (gen_var_ref): Unconditionally call via computed ops,
7946 if possible.
7947 * dwarf2read.c (read_func_scope): Remove old FIXME.
7948 * eval.c (evaluate_subexp_standard): Check SYMBOL_COMPUTED_OPS,
7949 not LOC_COMPUTED.
7950 * findvar.c (symbol_read_needs_frame, default_read_var_value):
7951 Unconditionally call via computed ops, if possible.
7952 * printcmd.c (address_info): Unconditionally call via computed ops,
7953 if possible.
7954 * stack.c (read_frame_arg): Unconditionally call via computed ops,
7955 if possible.
7956 * symtab.c (register_symbol_computed_impl): Sanity check 'ops'.
7957 * tracepoint.c (scope_info): Unconditionally call via computed ops,
7958 if possible.
7959
f1e6e072
TT
79602013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
7961 Tom Tromey <tromey@redhat.com>
7962
7963 PR symtab/8421:
7964 * coffread.c (coff_register_index): New global.
7965 (process_coff_symbol, coff_read_enum_type): Set
7966 SYMBOL_ACLASS_INDEX.
7967 (_initialize_coffread): Initialize new global.
7968 * dwarf2loc.c (locexpr_find_frame_base_location)
7969 (dwarf2_block_frame_base_locexpr_funcs)
7970 (loclist_find_frame_base_location)
7971 (dwarf2_block_frame_base_loclist_funcs): New.
7972 (dwarf_expr_frame_base_1): Call SYMBOL_BLOCK_OPS, remove internal_error.
7973 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Add location_has_loclist.
7974 * dwarf2loc.h (dwarf2_block_frame_base_locexpr_funcs)
7975 (dwarf2_block_frame_base_loclist_funcs): New.
7976 * dwarf2read.c (dwarf2_locexpr_index, dwarf2_loclist_index)
7977 (dwarf2_locexpr_block_index, dwarf2_loclist_block_index): New
7978 globals.
7979 (read_func_scope): Update.
7980 (fixup_go_packaging, mark_common_block_symbol_computed)
7981 (var_decode_location, new_symbol_full, dwarf2_const_value):
7982 Set SYMBOL_ACLASS_INDEX.
7983 (dwarf2_symbol_mark_computed): Likewise. Add 'is_block' argument.
7984 (_initialize_dwarf2_read): Initialize new globals.
7985 * jit.c (finalize_symtab): Set SYMBOL_ACLASS_INDEX.
7986 * jv-lang.c (add_class_symbol): Set SYMBOL_ACLASS_INDEX.
7987 * mdebugread.c (mdebug_register_index, mdebug_regparm_index): New
7988 globals.
7989 (parse_symbol, psymtab_to_symtab_1): Set SYMBOL_ACLASS_INDEX.
7990 (_initialize_mdebugread): Initialize new globals.
7991 * psympriv.h (struct partial_symbol) <aclass>: Update comment.
7992 * stabsread.c (patch_block_stabs): Set SYMBOL_ACLASS_INDEX.
7993 (stab_register_index, stab_regparm_index): New globals.
7994 (define_symbol, read_enum_type, common_block_end): Set
7995 SYMBOL_ACLASS_INDEX.
7996 (_initialize_stabsread): Initialize new globals.
7997 * symtab.c (next_aclass_value, symbol_impl, symbol_impls): New
7998 globals.
7999 (MAX_SYMBOL_IMPLS): New define.
8000 (register_symbol_computed_impl, register_symbol_block_impl)
8001 (register_symbol_register_impl)
8002 (initialize_ordinary_address_classes): New functions.
8003 (_initialize_symtab): Call initialize_ordinary_address_classes.
8004 * symtab.h (enum address_class) <LOC_FINAL_VALUE>: New constant.
8005 (struct symbol_impl): New.
8006 (SYMBOL_ACLASS_BITS): New define.
8007 (struct symbol) <aclass, ops>: Remove fields.
8008 <aclass_index>: New field.
8009 (symbol_impls): Declare.
8010 (SYMBOL_CLASS, SYMBOL_COMPUTED_OPS, SYMBOL_REGISTER_OPS): Redefine.
8011 (SYMBOL_IMPL, SYMBOL_ACLASS_INDEX): New defines.
8012 (register_symbol_computed_impl, register_symbol_block_impl)
8013 (register_symbol_register_impl): Declare.
8014 (struct symbol_computed_ops): Add location_has_loclist.
8015 (struct symbol_block_ops): New.
8016 (SYMBOL_BLOCK_OPS): New.
8017 * xcoffread.c (process_xcoff_symbol): Set SYMBOL_ACLASS_INDEX.
8018
dbccfd4c
TT
80192013-03-20 Tom Tromey <tromey@redhat.com>
8020
8021 * psymtab.c (find_pc_sect_psymbol, fixup_psymbol_section)
8022 (print_partial_symbols, recursively_search_psymtabs): Use
8023 PSYMBOL_CLASS.
8024
e3f1ad4f
PM
80252013-03-20 Pierre Muller <muller@sourceware.org>
8026
8027 * contrib/ari/gdb_ari.sh (OP eol rule): Also check
8028 addtion, subtraction, multiplication and division binary operator.
8029
460014f5
JK
80302013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
8031
8032 Code cleanup.
8033 * bfd-target.c (target_bfd_xclose): Remove parameter quitting.
8034 * bsd-kvm.c (bsd_kvm_close): Likewise.
8035 * bsd-uthread.c (bsd_uthread_close): Likewise.
8036 * corelow.c (core_close): Likewise.
8037 (core_close_cleanup): Remove parameter quitting from a caller.
8038 * event-top.c (async_disconnect): Likewise.
8039 * exec.c (exec_close_1): Remove parameter quitting.
8040 * go32-nat.c (go32_close): Likewise.
8041 * linux-nat.c (linux_nat_close): Remove parameter quitting. Remove
8042 parameter quitting from a caller.
8043 * mips-linux-nat.c (super_close): Remove parameter quitting from the
8044 variable.
8045 (mips_linux_close): Remove parameter quitting. Remove parameter
8046 quitting from a caller.
8047 * monitor.c (monitor_close): Remove parameter quitting.
8048 * monitor.h (monitor_close): Likewise.
8049 * record-btrace.c (record_btrace_close): Likewise.
8050 * record-full.c (record_full_close): Likewise.
8051 * remote-m32r-sdi.c (m32r_close): Remove parameter quitting and remove
8052 it also from fprintf_unfiltered.
8053 * remote-mips.c (mips_close): Remove parameter quitting.
8054 (mips_detach): Remove parameter quitting from a caller.
8055 * remote-sim.c (gdbsim_close): Remove parameter quitting.
8056 (gdbsim_close): Remove duplicate function comment. Remove parameter
8057 quitting and remove it also from printf_filtered.
8058 * remote.c (remote_close): Remove parameter quitting.
8059 * solib-svr4.c (enable_break): Remove parameter quitting from a caller.
8060 * target.c (update_current_target): Remove parameter int from to_close
8061 de_fault.
8062 (push_target, unpush_target, pop_target): Remove parameter quitting from
8063 a caller.
8064 (pop_all_targets_above, pop_all_targets): Remove parameter quitting.
8065 Remove parameter quitting from a caller.
8066 (target_preopen): Remove parameter quitting from a caller.
8067 (target_close): Remove parameter quitting. Remove parameter quitting
8068 from a caller two times. Remove parameter quitting also from
8069 fprintf_unfiltered.
8070 * target.h (struct target_ops): Remove parameter quitting and as int
8071 from fields to_xclose and to_close.
8072 (extern struct target_ops current_target):
8073 (target_close, pop_all_targets): Remove parameter quitting. Update the
8074 comment.
8075 (pop_all_targets_above): Remove parameter quitting.
8076 * top.c (quit_target): Remove parameter quitting from a caller.
8077 * tracepoint.c (tfile_close): Remove parameter quitting.
8078 * windows-nat.c (windows_close): Remove parameter quitting.
8079
35a7120b
CV
80802013-03-20 Corinna Vinschen <vinschen@redhat.com>
8081
8082 * windows-nat.c (handle_output_debug_string): Replace call
8083 to string_to_core_addr with call to strtoull.
8084
8249a5a9
YQ
80852013-03-20 Yao Qi <yao@codesourcery.com>
8086
8087 * ctf.c (ctf_save_metadata_header): Define macro HOST_ENDIANNESS
8088 and write it to CTF metadata.
8089
2c15ef43
CV
80902013-03-19 Corinna Vinschen <vinschen@redhat.com>
8091
8092 * windows-nat.c (handle_output_debug_string): Change type of n to
8093 SIZE_T to avoid crash on 64 bit systems.
8094
1cdd3232
EZ
80952013-03-17 Eli Zaretskii <eliz@gnu.org>
8096
8097 * python/python-internal.h (HAVE_SNPRINTF)
8098 [_WIN32 && HAVE_DECL_SNPRINTF]: Define, to avoid compiler warnings
8099 about redefinition of snprintf by pyerrors.h.
8100
3cb2ab1a
SE
81012013-03-15 Steve Ellcey <sellcey@mips.com>
8102
8103 * remote-sim.c (sim_command_completer): Make char arguments const.
8104
9ce98649
TT
81052013-03-15 Tom Tromey <tromey@redhat.com>
8106
8107 PR c++/15116:
8108 * gdbtypes.c (types_equal): Handle TYPE_CODE_FUNC.
8109
dccee2de
TT
81102013-03-14 Tom Tromey <tromey@redhat.com>
8111
8112 * gdb_bfd.c (struct gdb_bfd_data) <crc_computed, crc>:
8113 New fields.
8114 (get_file_crc): Move from symfile.c.
8115 (gdb_bfd_crc): New function.
8116 * gdb_bfd.h (gdb_bfd_crc): Declare.
8117 * objfiles.h (struct objfile) <crc32, crc32_p>: Remove.
8118 * symfile.c (get_file_crc): Move to gdb_bfd.c.
8119 (separate_debug_file_exists): Use gdb_bfd_crc.
8120
cc0ea93c
TT
81212013-03-14 Tom Tromey <tromey@redhat.com>
8122
8123 * symfile.c (get_debug_link_info): Remove.
8124 (find_separate_debug_file_by_debuglink): Use
8125 bfd_get_debug_link_info.
8126
08c23b0d
TT
81272013-03-14 Tom Tromey <tromey@redhat.com>
8128
8129 * symtab.c (error_in_psymtab_expansion): New function.
8130 (lookup_symbol_aux_quick)
8131 (basic_lookup_transparent_type_quick): Remove "last resort"
8132 code. Use error_in_psymtab_expansion.
8133
288e77a7
JK
81342013-03-14 Doug Evans <dje@google.com>
8135 Jan Kratochvil <jan.kratochvil@redhat.com>
8136
8137 * dwarf2read.c (dw2_map_symtabs_matching_filename): Put continue after
8138 any successful compare_filenames_for_search or FILENAME_CMP.
8139 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
8140 * symtab.c (iterate_over_some_symtabs): Likewise.
8141
8f1b8b82
JK
81422013-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8143
8144 * source.c (print_source_lines_base): Make a local copy of
8145 symtab_to_fullname.
8146
23eb71e4
JK
81472013-03-14 Hui Zhu <hui_zhu@mentor.com>
8148 Jan Kratochvil <jan.kratochvil@redhat.com>
8149
8150 * source.c (print_source_lines_base): Suppress "file" for TUI.
8151
bb869963
SDJ
81522013-03-14 Keith Seitz <keiths@redhat.com>
8153 Alan Matsuoka <alanm@redhat.com>
8154
8155 PR c++/15203
8156 PR c++/15210
8157 * cp-namespace.c (cp_lookup_nested_symbol): Handle TYPE_CODE_FUNC and
8158 TYPE_CODE_METHOD.
8159 * elfread.c (elf_symtab_read): Handle BSF_GNU_UNIQUE for certain
8160 symbols.
8161
d6682f9e
YQ
81622013-03-14 Yao Qi <yao@codesourcery.com>
8163
8164 * tracepoint.c (tfile_write_status): Write 'stop_desc' of trace
8165 status to tfile if trace is stopped by command 'tstop'.
8166
a22fa6e4
YQ
81672013-03-14 Yao Qi <yao@codesourcery.com>
8168
8169 * tracepoint.c (tfile_write_status): Write trace notes and user
8170 name into tfile if they are not NULL.
8171
d0353e76
YQ
81722013-03-14 Hui Zhu <hui@codesourcery.com>
8173 Yao Qi <yao@codesourcery.com>
8174
8175 * Makefile.in (REMOTE_OBS): Add ctf.o.
8176 (SFILES): Add ctf.c.
8177 (HFILES_NO_SRCDIR): Add ctf.h.
8178 * ctf.c, ctf.h: New files.
8179 * tracepoint.c: Include 'ctf.h'.
8180 (collect_pseudocommand): Remove static.
8181 (trace_save_command): Parse option "-ctf".
8182 Produce different trace file writers per option.
8183 Adjust output message.
8184 (trace_save_tfile, trace_save_ctf): New.
8185 * tracepoint.h (trace_save_tfile, trace_save_ctf): Declare.
8186 * mi/mi-main.c: Include 'ctf.h'.
8187 (mi_cmd_trace_save): Handle option '-ctf'. Call either
8188 trace_save_tfile or trace_save_ctf.
8189 * NEWS: Mention these changes.
8190
3f43bc09
YQ
81912013-03-14 Yao Qi <yao@codesourcery.com>
8192
8193 * tracepoint.c (trace_file_writer_xfree): New.
8194 (struct tfile_writer_data): New.
8195 (tfile_dtor, tfile_can_target_save, tfile_start): New.
8196 (tfile_write_header, tfile_write_regblock_type): New.
8197 (tfile_write_status, tfile_write_uploaded_tsv): New.
8198 (tfile_write_uploaded_tp, tfile_write_definition_end): New.
8199 (tfile_write_raw_data, (tfile_end): New.
8200 (tfile_write_ops): New global variable.
8201 (TRACE_WRITE_R_BLOCK): New macro.
8202 (TRACE_WRITE_M_BLOCK_HEADER): New macro.
8203 (TRACE_WRITE_M_BLOCK_MEMORY): New macro.
8204 (TRACE_WRITE_V_BLOCK): New macro.
8205 (trace_save): Add extra one parameter WRITER. Make it static.
8206 Use WRITER to writer trace.
8207 (tfile_trace_file_writer_new): New.
8208 (trace_save_command): Caller update.
8209 (trace_save_tfile): Write trace data in TFILE format.
8210 * tracepoint.h (struct trace_frame_write_ops): New.
8211 (struct trace_file_write_ops): New.
8212 (struct trace_file_writer): New.
8213 (trace_save): Remove its declaration.
8214 (trace_save_tfile): Declare it.
8215 * mi/mi-main.c (mi_cmd_trace_save): Call trace_save_tfile
8216 instead of trace_save.
8217
58665b40
PA
82182013-03-13 Pedro Alves <palves@redhat.com>
8219
8220 * hppa-hpux-nat.c (hppa_hpux_save_state_offset): Make static.
8221
10217050
PA
82222013-03-13 Pedro Alves <palves@redhat.com>
8223
8224 * dbxread.c (read_ofile_symtab, process_one_symbol): Remove
8225 commented out code.
8226 * demangle.c (current_demangling_style_string): Make it const.
8227 (set_demangling_command): Assert the demangling style is known.
8228 Remove all handling of unknown styles. Set
8229 'current_demangling_style_string' to an element of the
8230 demangling_style_names array.
8231 (set_demangling_style): Delete.
8232 (_initialize_demangler): Set current_demangling_style_string to the
8233 element of the demangling_style_names array that corresponds to
8234 the default demangling style. Remove FIXME note. Don't call
8235 set_demangling_style.
8236 * gdb-demangle.h (set_demangling_style): Remove declaration.
8237
6f937416
PA
82382013-03-13 Pedro Alves <palves@redhat.com>
8239
8240 * ada-lang.c (struct add_partial_datum) <text, text0, word>: Make
8241 fields const.
8242 (ada_make_symbol_completion_list): Make "text0" parameter const.
8243 * ax-gdb.c (agent_eval_command_one): Make "exp" parameter const.
8244 * breakpoint.c (condition_completer): Make "text" and "word"
8245 parameters const. Adjust.
8246 (check_tracepoint_command): Adjust to validate_actionline
8247 prototype change.
8248 (catch_syscall_completer): Make "text" and "word" parameters
8249 const.
8250 * cli/cli-cmds.c (show_user): Make "comname" local const.
8251 (valid_command_p): Make "command" parameter const.
8252 (alias_command): Make "alias_prefix" and "command_prefix" locals
8253 const.
8254 * cli/cli-decode.c (add_cmd): Make "name" parameter const.
8255 (add_alias_cmd): Make "name" and "oldname" parameters const.
8256 Adjust. No longer make copy of OLDNAME.
8257 (add_prefix_cmd, add_abbrev_prefix_cmd, add_set_or_show_cmd)
8258 (add_setshow_cmd_full, add_setshow_enum_cmd)
8259 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
8260 (add_setshow_filename_cmd, add_setshow_string_cmd)
8261 (add_setshow_string_noescape_cmd)
8262 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
8263 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
8264 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd)
8265 (delete_cmd, add_info, add_info_alias, add_com, add_com_alias):
8266 Make "name" parameter const.
8267 (help_cmd): Rename "command" parameter to "arg". New const local
8268 "command".
8269 (find_cmd): Make "command" parameter const.
8270 (lookup_cmd_1): Make "text" parameter pointer to const. Adjust to
8271 deprecated_cmd_warning prototype change.
8272 (undef_cmd_error): Make "cmdtype" parameter const.
8273 (lookup_cmd): Make "line" parameter const.
8274 (deprecated_cmd_warning): Change type of "text" parameter to
8275 pointer to const char, from pointer to pointer to char. Adjust.
8276 (lookup_cmd_composition): Make "text" parameter const.
8277 (complete_on_cmdlist, complete_on_enum): Make "text" and "word"
8278 parameters const.
8279 * cli/cli-decode.h (struct cmd_list_element) <name>: Make field
8280 const.
8281 * cli/cli-script.c (validate_comname): Make "tem" local const.
8282 (define_command): New const local "tem_c". Use it in calls to
8283 lookup_cmd.
8284 (document_command): Make "tem" and "comfull" locals const.
8285 (show_user_1): Make "prefix" and "name" parameters const.
8286 * cli-script.h (show_user_1): Make "prefix" and "name" parameters
8287 const.
8288 * command.h (add_cmd, add_alias_cmd, add_prefix_cmd)
8289 (add_abbrev_prefix_cmd, completer_ftype, lookup_cmd, lookup_cmd_1)
8290 (deprecated_cmd_warning, lookup_cmd_composition, add_com)
8291 (add_com_alias, add_info, add_info_alias, complete_on_cmdlist)
8292 (complete_on_enum, add_setshow_enum_cmd)
8293 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
8294 (add_setshow_filename_cmd, add_setshow_string_cmd)
8295 (add_setshow_string_noescape_cmd)
8296 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
8297 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
8298 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
8299 Change prototypes, constifying strings.
8300 * completer.c (noop_completer, filename_completer): Make "text"
8301 and "prefix" parameters const.
8302 (location_completer, expression_completer)
8303 (complete_line_internal): Make "text" and "prefix" parameters
8304 const and adjust.
8305 (command_completer, signal_completer): Make "text" and "prefix"
8306 parameters const.
8307 * completer.h (noop_completer, filename_completer)
8308 (expression_completer, location_completer, command_completer)
8309 (signal_completer): Change prototypes.
8310 * corefile.c (complete_set_gnutarget): Make "text" and "word"
8311 parameters const.
8312 * cp-abi.c (cp_abi_completer): Likewise.
8313 * expression.h (parse_expression_for_completion): Change
8314 prototype.
8315 * f-lang.c (f_make_symbol_completion_list): Make "text" and "word"
8316 parameters const.
8317 * infcmd.c (_initialize_infcmd): Make "cmd_name" local const.
8318 * infrun.c (handle_completer): Make "text" and "word" parameters
8319 const.
8320 * interps.c (interpreter_completer): Make "text" and "word"
8321 parameters const.
8322 * language.h (struct language_defn)
8323 <la_make_symbol_completion_list>: Make "text" and "word"
8324 parameters const.
8325 * parse.c (parse_exp_1): Move const hack to parse_exp_in_context.
8326 (parse_exp_in_context): Rename to ...
8327 (parse_exp_in_context_1): ... this.
8328 (parse_exp_in_context): Reimplement, with const hack from
8329 parse_exp_1.
8330 (parse_expression_for_completion): Make "string" parameter const.
8331 * printcmd.c (decode_format): Make "string_ptr" parameter pointer
8332 to pointer to const char. Adjust.
8333 (print_command_1): Make "exp" parameter const.
8334 (output_command): Rename to ...
8335 (output_command_const): ... this. Make "exp" parameter const.
8336 (output_command): Reimplement.
8337 (x_command): Adjust.
8338 (display_command): Rename "exp" parameter to "arg". New "exp"
8339 local, const version of "arg".
8340 * python/py-auto-load.c (gdbpy_initialize_auto_load): Make
8341 "cmd_name" local const.
8342 * python/py-cmd.c (cmdpy_destroyer): Cast const away in xfree
8343 call.
8344 (cmdpy_completer): Make "text" and "word" parameters const.
8345 (gdbpy_parse_command_name): Make "prefix_text2" local const.
8346 * python/py-param.c (add_setshow_generic): Make "tmp_name" local
8347 const.
8348 * remote.c (_initialize_remote): Make "cmd_name" local const.
8349 * symtab.c (language_search_unquoted_string): Make "text" and "p"
8350 parameters const. Adjust.
8351 (completion_list_add_fields): Make "sym_text", "text" and "word"
8352 parameters const.
8353 (struct add_name_data) <sym_text, text, word>: Make fields const.
8354 (default_make_symbol_completion_list_break_on): Make "text" and
8355 "word" parameters const. Adjust locals.
8356 (default_make_symbol_completion_list)
8357 (make_symbol_completion_list, make_symbol_completion_type)
8358 (make_symbol_completion_list_fn): Make "text" and "word"
8359 parameters const.
8360 (make_file_symbol_completion_list): Make "text", "word" and
8361 "srcfile" parameters const. Adjust locals.
8362 (add_filename_to_list): Make "text" and "word" parameters const.
8363 (struct add_partial_filename_data) <text, word>: Make fields
8364 const.
8365 (make_source_files_completion_list): Make "text" and "word"
8366 parameters const.
8367 * symtab.h (default_make_symbol_completion_list_break_on)
8368 (default_make_symbol_completion_list, make_symbol_completion_list)
8369 (make_symbol_completion_type enum type_code)
8370 (make_symbol_completion_list_fn make_file_symbol_completion_list)
8371 (make_source_files_completion_list): Change prototype.
8372 * top.c (execute_command): Adjust to pass pointer to pointer to
8373 const char to lookup_cmd, and to deprecated_cmd_warning prototype
8374 change.
8375 (set_verbose): Make "cmdname" local const.
8376 * tracepoint.c (decode_agent_options): Make "exp" parameter const,
8377 and adjust.
8378 (validate_actionline): Make "line" parameter a pointer to const
8379 char, and adjust.
8380 (encode_actions_1): Make "action_exp" local const, and adjust.
8381 (encode_actions): Adjust.
8382 (replace_comma): Delete.
8383 (trace_dump_actions): Make "action_exp" and "next_comma" locals
8384 const, and adjust. Don't frob the action string while splitting
8385 it at commas. Instead, make a copy of each split substring in
8386 turn.
8387 (trace_dump_command): Adjust to validate_actionline prototype
8388 change.
8389 * tracepoint.h (decode_agent_options, decode_agent_options)
8390 (encode_actions, validate_actionline): Change prototypes.
8391 * valprint.h (output_command): Delete declaration.
8392 (output_command_const): Declare.
8393 * value.c (function_destroyer): Cast const away in xfree call.
8394
a0bcdaa7
PA
83952013-03-13 Pedro Alves <palves@redhat.com>
8396
8397 * ada-lang.c (ada_decode_symbol): Cast away constness of GSYMBOL
8398 rather than casting 'const char * const *' to 'const char **'.
8399 * ada-lex.l (processInt): Make "trailer" local const. Remove
8400 'const char **' cast.
8401 * arm-linux-tdep.c (arm_stap_parse_special_token): Add 'char *'
8402 locals, and use those as strtol output pointer, instead than doing
8403 invalid casts to from 'const char **' to 'char **'.
8404 (_initialize_demangle): Remove cast.
8405 * i386-tdep.c (i386_stap_parse_special_token): : Add 'char *'
8406 locals, and use those as strtol output pointer, instead than doing
8407 invalid casts to from 'const char **' to 'char **'.
8408 * solib-dsbt.c (dsbt_get_initial_loadmaps): Remove 'gdb_byte**'
8409 casts.
8410 * stap-probe.c (stap_parse_register_operand)
8411 (stap_parse_single_operand): Likewise.
8412
8ddb1965
YQ
84132013-03-13 Yao Qi <yao@codesourcery.com>
8414
8415 * tracepoint.c (tfile_get_trace_state_variable_value): Look for
8416 the last matched 'V' blcok in trace frame.
8417
2d450646
JB
84182013-03-12 Joel Brobecker <brobecker@adacore.com>
8419
8420 * NEWS: Create a new section for the next release branch.
8421 Rename the section of the current branch, now that it has
8422 been cut.
8423
b4b79973 84242013-03-12 Joel Brobecker <brobecker@adacore.com>
8425
8426 GDB 7.6 branch created (branch timestamp: 2013-03-12 22:15 UTC)
8427 * version.in: Bump version to 7.6.50.20130312-cvs.
8428
ee047554
KS
84292013-03-12 Keith Seitz <keiths@redhat.com>
8430
8431 * mi/mi-cmds.h (mi_execute_command): Make "cmd" const.
8432 * mi/mi-interp.c (mi_interpreter_exec): Make "command" const.
8433 Remove temporary copy of input string.
8434 (mi_execute_command_wrapper): Make "cmd" const.
8435 * mi/mi-main.c (mi_execute_command): Make "string_ptr" const.
8436 * mi/mi-parse.c (mi_parse_argv): Make "args" const.
8437 Use const strings.
8438 (mi_parse): Make "cmd" const.
8439 Use const strings.
8440 * mi/mi-parse.h (mi_parse): Make "cmd" const.
8441
bbc13ae3
KS
84422013-03-12 Keith Seitz <keiths@redhat.com>
8443
8444 * ada-lang.c (ada_read_renaming_var_value): Pass const
8445 pointer to expression string to parse_exp_1.
8446 (create_excep_cond_exprs): Likewise.
8447 * ax-gdb.c (agent_eval_command_one): Likewise.
8448 (maint_agent_printf_command): Likewise.
8449 Constify much of the string handling/parsing.
8450 * breakpoint.c (set_breakpoint_condition): Pass const
8451 pointer to expression string to parse_exp_1.
8452 (update_watchpoint): Likewise.
8453 (parse_cmd_to_aexpr): Constify string handling.
8454 Pass const pointer to parse_exp_1.
8455 (init_breakpoint_sal): Pass const pointer to parse_exp_1.
8456 (find_condition_and_thread): Likewise.
8457 Make TOK const.
8458 (watch_command_1): Make "arg" const.
8459 Constify string handling.
8460 Copy the expression string instead of changing the input
8461 string.
8462 (update_breakpoint_location): Pass const pointer to
8463 parse_exp_1.
8464 * eval.c (parse_and_eval_address): Make "exp" const.
8465 (parse_to_comma_and_eval): Make "expp" const.
8466 (parse_and_eval): Make "exp" const.
8467 * expression.h (parse_expression): Make argument const.
8468 (parse_exp_1): Make first argument const.
8469 * findcmd.c (parse_find_args): Treat "args" as const.
8470 * linespec.c (parse_linespec): Pass const pointer to
8471 linespec_expression_to_pc.
8472 (linespec_expression_to_pc): Make "exp_ptr" const.
8473 * parse.c (parse_exp_1): Make "stringptr" const.
8474 Make a copy of the expression to pass to parse_exp_in_context until
8475 this whole interface can be constified.
8476 (parse_expression): Make "string" const.
8477 * printcmd.c (ui_printf): Treat "arg" as const.
8478 Handle const strings.
8479 * tracepoint.c (validate_actionline): Pass const pointer to
8480 all calls to parse_exp_1.
8481 (encode_actions_1): Likewise.
8482 * value.h (parse_to_comma_and_eval): Make argument const.
8483 (parse_and_eval_address): Likewise.
8484 (parse_and_eval): Likewise.
8485 * varobj.c (varobj_create): Pass const pointer to parse_exp_1.
8486 (varobj_set_value): Likewise.
8487 * cli/cli-cmds.c (disassemble_command): Treat "arg" as const and
8488 constify string handling.
8489 Pass const pointers to parse_and_eval_address and
8490 parse_to_comman_and_eval.
8491 * cli/cli-utils.c (skip_to_space): Rename to ...
8492 (skip_to_space_const): ... this. Handle const strings.
8493 * cli/cli-utils.h (skip_to_space): Turn into macro which invokes
8494 skip_to_space_const.
8495 (skip_to_space_const): Declare.
8496 * common/format.c (parse_format_string): Make "arg" const.
8497 Handle const strings.
8498 * common/format.h (parse_format_string): Make "arg" const.
8499 * gdbserver/ax.c (ax_printf): Make "format" const.
8500 * python/python.c (gdbpy_parse_and_eval): Do not make a copy
8501 of the expression string.
8502
f3cec7e6
HZ
85032013-03-12 Hui Zhu <hui@codesourcery.com>
8504
8505 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Update error message.
8506
9df7235c
HZ
85072013-03-12 Yao Qi <yao@codesourcery.com>
8508 Hui Zhu <hui@codesourcery.com>
8509
8510 * dwarf2loc.c (access_memory): Change nbits to nbytes in gdb_assert.
8511 (dwarf2_compile_expr_to_ax): Call access_memory in DW_OP_deref and
8512 DW_OP_deref_size.
8513
82d049ab
PH
85142013-03-12 Paul Hilfinger <hilfingr@adacore.com>
8515
5f8e0b8f
MF
8516 * ada-lex.l (rules): Only recognize 'thread' as a
8517 delimiter when followed by numerals, as for c-exp.y.
8518 Use new rewind_to_char function to rewind the input for
8519 expression-delimiting tokens.
8520 (rewind_to_char): New function.
82d049ab 8521
8c1fb155
JK
85222013-03-11 Pedro Alves <palves@redhat.com>
8523 Jan Kratochvil <jan.kratochvil@redhat.com>
8524
8525 * configure: Regenerate.
8526 * configure.ac (check dynamic export flag): Link python test with
8527 $PYTHON_LIBS.
8528
cc81e1c6
DE
85292013-03-11 Doug Evans <dje@google.com>
8530 Keith Seitz <keiths@redhat.com>
8531
8532 * linespec.c (find_linespec_symbols): Call find_function_symbols
8533 first, and then call lookup_prefix_sym/find_method.
8534
39086a0e
PA
85352013-03-11 Pedro Alves <palves@redhat.com>
8536
8537 * charset.c (convert_between_encodings): Don't cast between
8538 different pointer to pointer types. Instead, make the 'inp' local
8539 be of the type iconv expects.
8540 (wchar_iterate): Don't cast between different pointer to pointer
8541 types. Instead, use new pointer local of the type iconv expects.
8542 * target.c (target_read_stralloc, target_fileio_read_stralloc):
8543 Add new local of type char pointer, and use it to get a
8544 char/string view of the byte buffer, instead of casting between
8545 pointer to pointer types.
8546
90585175
HAQ
85472013-03-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
8548
8549 * remote.c (remote_set_trace_buffer_size): Move != operator
8550 to the start of next line to fix an ARI warning.
8551
59ea5688
MM
85522013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8553
8554 * NEWS: Add record changes.
8555
946287b7
MM
85562013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8557
8558 * record-btrace.c (btrace_insn_history): Omit the pc prefix in
8559 the instruction history disassembly.
8560 * disasm.c (dump_insns): Omit the pc prefix, if requested.
8561 * disasm.h (DISASSEMBLY_OMIT_PC): New.
8562
afedecd3
MM
85632013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8564
8565 * Makefile.in (SFILES): Add record-btrace.c
8566 (COMMON_OBS): Add record-btrace.o
8567 * record-btrace.c: New.
8568 * objfiles.c: Include btrace.h.
8569 (free_objfile): call btrace_free_objfile.
8570
15984c13
MM
85712013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8572
8573 * target.c (target_call_history, target_call_history_from,
8574 target_call_history_range): New.
8575 * target.h (target_ops) <to_call_history, to_call_history_from,
8576 to_call_history_range>: New fields.
8577 (target_call_history, target_call_history_from,
8578 target_call_history_range): New declaration.
8579 * record.c (get_call_history_modifiers, cmd_record_call_history,
8580 record_call_history_size): New.
8581 (_initialize_record): Add the "record function-call-history" command.
8582 Add "set/show record function-call-history-size" commands.
8583 * record.h (record_print_flag): New.
8584
67c86d06
MM
85852013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8586
8587 * target.h (target_ops) <to_insn_history, to_insn_history_from,
8588 to_insn_history_range>: New fields.
8589 (target_insn_history): New.
8590 (target_insn_history_from): New.
8591 (target_insn_history_range): New.
8592 * target.c (target_insn_history): New.
8593 (target_insn_history_from): New.
8594 (target_insn_history_range): New.
8595 * record.c: Include cli/cli-utils.h, disasm.h, ctype.h.
8596 (record_insn_history_size): New.
8597 (get_insn_number): New.
8598 (get_context_size): New.
8599 (no_chunk): New.
8600 (get_insn_history_modifiers): New.
8601 (cmd_record_insn_history): New.
8602 (_initialize_record): Add "set/show record instruction-history-size"
8603 command. Add "record instruction-history" command.
8604
7c1687a9
MM
86052013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8606
8607 * record.h (record_disconnect): New.
8608 (record_detach): New.
8609 (record_mourn_inferior): New.
8610 (record_kill): New.
8611 * record-full.c (record_disconnect, record_detach,
8612 record_mourn_inferior, record_kill): Move to...
8613 * record.c: ...here.
8614 (DEBUG): New.
8615 (record_stop): New.
8616 (record_unpush): New.
8617 (cmd_record_stop): Call record_stop. Replace unpush_target
8618 call with record_unpush call.
8619 (record_disconnect, record_detach): Assert that the target
8620 is of record stratum. Call record_unpush, record_stop, and
8621 DEBUG.
8622 (record_mourn_inferior, record_kill): Assert that the target
8623 is of record stratum. Call record_unpush and DEBUG.
8624
25ea693b
MM
86252013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8626
8627 * record-full.h, record-full.c (record_memory_query): Rename
8628 to ...
8629 (record_full_memory_query): ...this. Update all users.
8630 (record_arch_list_add_reg): Rename to ...
8631 (record_full_arch_list_add_reg): ...this. Update all users.
8632 (record_arch_list_add_mem): Rename to ...
8633 (record_full_arch_list_add_mem): ...this. Update all users.
8634 (record_arch_list_add_end): Rename to ...
8635 (record_full_arch_list_add_end): ...this. Update all users.
8636 (record_gdb_operation_disable_set): Rename to ...
8637 (record_full_gdb_operation_disable_set): ...this.
8638 Update all users.
8639
88d1aa9d
MM
86402013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8641
8642 * record-full.c (DEFAULT_RECORD_INSN_MAX_NUM): Renamed to ...
8643 (DEFAULT_RECORD_FULL_INSN_MAX_NUM): ... this. Updated all users.
8644 (RECORD_IS_REPLAY): Renamed to ...
8645 (RECORD_FULL_IS_REPLAY): ... this. Updated all users.
8646 (RECORD_FILE_MAGIC): Renamed to ...
8647 (RECORD_FULL_FILE_MAGIC): ... this. Updated all users.
8648 (record_mem_entry): Renamed to ...
8649 (record_full_mem_entry): ... this. Updated all users.
8650 (record_reg_entry): Renamed to ...
8651 (record_full_reg_entry): ... this. Updated all users.
8652 (record_end_entry): Renamed to ...
8653 (record_full_end_entry): ... this. Updated all users.
8654 (record_type) <record_end, record_reg, record_mem>: Renamed
8655 to ...
8656 (record_full_type) <record_full_end, record_full_reg,
8657 record_full_mem>: ... this. Updated all users.
8658 (record_entry): Renamed to ...
8659 (record_full_entry): ... this. Updated all users.
8660 (record_core_buf_entry): Renamed to ...
8661 (record_full_core_buf_entry): ... this. Updated all users.
8662 (record_core_regbuf): Renamed to ...
8663 (record_full_core_regbuf): ... this. Updated all users.
8664 (record_core_start): Renamed to ...
8665 (record_full_core_start): ... this. Updated all users.
8666 (record_core_end): Renamed to ...
8667 (record_full_core_end): ... this. Updated all users.
8668 (record_core_buf_list): Renamed to ...
8669 (record_full_core_buf_list): ... this. Updated all users.
8670 (record_first): Renamed to ...
8671 (record_full_first): ... this. Updated all users.
8672 (record_list): Renamed to ...
8673 (record_full_list): ... this. Updated all users.
8674 (record_arch_list_head): Renamed to ...
8675 (record_full_arch_list_head): ... this. Updated all users.
8676 (record_arch_list_tail): Renamed to ...
8677 (record_full_arch_list_tail): ... this. Updated all users.
8678 (record_stop_at_limit): Renamed to ...
8679 (record_full_stop_at_limit): ... this. Updated all users.
8680 (record_insn_max_num): Renamed to ...
8681 (record_full_insn_max_num): ... this. Updated all users.
8682 (record_insn_num): Renamed to ...
8683 (record_full_insn_num): ... this. Updated all users.
8684 (record_insn_count): Renamed to ...
8685 (record_full_insn_count): ... this. Updated all users.
8686 (record_ops): Renamed to ...
8687 (record_full_ops): ... this. Updated all users.
8688 (record_core_ops): Renamed to ...
8689 (record_full_core_ops): ... this. Updated all users.
8690 (set_record_cmdlist): Renamed to ...
8691 (set_record_full_cmdlist): ... this. Updated all users.
8692 (show_record_cmdlist): Renamed to ...
8693 (show_record_full_cmdlist): ... this. Updated all users.
8694 (record_cmdlist): Renamed to ...
8695 (record_full_cmdlist): ... this. Updated all users.
8696 (record_beneath_to_resume_ops): Renamed to ...
8697 (record_full_beneath_to_resume_ops): ... this. Updated all users.
8698 (record_beneath_to_resume): Renamed to ...
8699 (record_full_beneath_to_resume): ... this. Updated all users.
8700 (record_beneath_to_wait_ops): Renamed to ...
8701 (record_full_beneath_to_wait_ops): ... this. Updated all users.
8702 (record_beneath_to_wait): Renamed to ...
8703 (record_full_beneath_to_wait): ... this. Updated all users.
8704 (record_beneath_to_store_registers_ops): Renamed to ...
8705 (record_full_beneath_to_store_registers_ops): ... this.
8706 Updated all users.
8707 (record_beneath_to_store_registers): Renamed to ...
8708 (record_full_beneath_to_store_registers): ... this.
8709 Updated all users.
8710 (record_beneath_to_xfer_partial_ops): Renamed to ...
8711 (record_full_beneath_to_xfer_partial_ops): ... this.
8712 Updated all users.
8713 (record_beneath_to_xfer_partial): Renamed to ...
8714 (record_full_beneath_to_xfer_partial): ... this.
8715 Updated all users.
8716 (record_beneath_to_insert_breakpoint): Renamed to ...
8717 (record_full_beneath_to_insert_breakpoint): ... this.
8718 Updated all users.
8719 (record_beneath_to_stopped_by_watchpoint): Renamed to ...
8720 (record_full_beneath_to_stopped_by_watchpoint): ... this.
8721 Updated all users.
8722 (record_beneath_to_stopped_data_address): Renamed to ...
8723 (record_full_beneath_to_stopped_data_address): ... this.
8724 Updated all users.
8725 (record_beneath_to_async): Renamed to ...
8726 (record_full_beneath_to_async): ... this. Updated all users.
8727 (record_goto_insn): Renamed to ...
8728 (record_full_goto_insn): ... this. Updated all users.
8729 (record_save): Renamed to ...
8730 (record_full_save): ... this. Updated all users.
8731 (record_reg_alloc): Renamed to ...
8732 (record_full_reg_alloc): ... this. Updated all users.
8733 (record_reg_release): Renamed to ...
8734 (record_full_reg_release): ... this. Updated all users.
8735 (record_mem_alloc): Renamed to ...
8736 (record_full_mem_alloc): ... this. Updated all users.
8737 (record_mem_release): Renamed to ...
8738 (record_full_mem_release): ... this. Updated all users.
8739 (record_end_alloc): Renamed to ...
8740 (record_full_end_alloc): ... this. Updated all users.
8741 (record_end_release): Renamed to ...
8742 (record_full_end_release): ... this. Updated all users.
8743 (record_entry_release): Renamed to ...
8744 (record_full_entry_release): ... this. Updated all users.
8745 (record_list_release): Renamed to ...
8746 (record_full_list_release): ... this. Updated all users.
8747 (record_list_release_following): Renamed to ...
8748 (record_full_list_release_following): ... this.
8749 Updated all users.
8750 (record_list_release_first): Renamed to ...
8751 (record_full_list_release_first): ... this. Updated all users.
8752 (record_arch_list_add): Renamed to ...
8753 (record_full_arch_list_add): ... this. Updated all users.
8754 (record_get_loc): Renamed to ...
8755 (record_full_get_loc): ... this. Updated all users.
8756 (record_check_insn_num): Renamed to ...
8757 (record_full_check_insn_num): ... this. Updated all users.
8758 (record_arch_list_cleanups): Renamed to ...
8759 (record_full_arch_list_cleanups): ... this. Updated all users.
8760 (record_message): Renamed to ...
8761 (record_full_message): ... this. Updated all users.
8762 (record_message_wrapper): Renamed to ...
8763 (record_full_message_wrapper): ... this. Updated all users.
8764 (record_message_wrapper_safe): Renamed to ...
8765 (record_full_message_wrapper_safe): ... this. Updated all users.
8766 (record_gdb_operation_disable): Renamed to ...
8767 (record_full_gdb_operation_disable): ... this. Updated all users.
8768 (record_hw_watchpoint): Renamed to ...
8769 (record_full_hw_watchpoint): ... this. Updated all users.
8770 (record_exec_insn): Renamed to ...
8771 (record_full_exec_insn): ... this. Updated all users.
8772 (record_restore): Renamed to ...
8773 (record_full_restore): ... this. Updated all users.
8774 (record_async_inferior_event_token): Renamed to ...
8775 (record_full_async_inferior_event_token): ... this.
8776 Updated all users.
8777 (record_async_inferior_event_handler): Renamed to ...
8778 (record_full_async_inferior_event_handler): ... this.
8779 Updated all users.
8780 (record_core_open_1): Renamed to ...
8781 (record_full_core_open_1): ... this. Updated all users.
8782 (record_open_1): Renamed to ...
8783 (record_full_open_1): ... this. Updated all users.
8784 (record_open): Renamed to ...
8785 (record_full_open): ... this. Updated all users.
8786 (record_close): Renamed to ...
8787 (record_full_close): ... this. Updated all users.
8788 (record_resume_step): Renamed to ...
8789 (record_full_resume_step): ... this. Updated all users.
8790 (record_resumed): Renamed to ...
8791 (record_full_resumed): ... this. Updated all users.
8792 (record_execution_dir): Renamed to ...
8793 (record_full_execution_dir): ... this. Updated all users.
8794 (record_resume): Renamed to ...
8795 (record_full_resume): ... this. Updated all users.
8796 (record_get_sig): Renamed to ...
8797 (record_full_get_sig): ... this. Updated all users.
8798 (record_sig_handler): Renamed to ...
8799 (record_full_sig_handler): ... this. Updated all users.
8800 (record_wait_cleanups): Renamed to ...
8801 (record_full_wait_cleanups): ... this. Updated all users.
8802 (record_wait_1): Renamed to ...
8803 (record_full_wait_1): ... this. Updated all users.
8804 (record_wait): Renamed to ...
8805 (record_full_wait): ... this. Updated all users.
8806 (record_stopped_by_watchpoint): Renamed to ...
8807 (record_full_stopped_by_watchpoint): ... this. Updated all users.
8808 (record_disconnect): Renamed to ...
8809 (record_full_disconnect): ... this. Updated all users.
8810 (record_detach): Renamed to ...
8811 (record_full_detach): ... this. Updated all users.
8812 (record_mourn_inferior): Renamed to ...
8813 (record_full_mourn_inferior): ... this. Updated all users.
8814 (record_kill): Renamed to ...
8815 (record_full_kill): ... this. Updated all users.
8816 (record_stopped_data_address): Renamed to ...
8817 (record_full_stopped_data_address): ... this. Updated all users.
8818 (record_registers_change): Renamed to ...
8819 (record_full_registers_change): ... this. Updated all users.
8820 (record_store_registers): Renamed to ...
8821 (record_full_store_registers): ... this. Updated all users.
8822 (record_xfer_partial): Renamed to ...
8823 (record_full_xfer_partial): ... this. Updated all users.
8824 (record_breakpoint): Renamed to ...
8825 (record_full_breakpoint): ... this. Updated all users.
8826 (record_breakpoint_p): Renamed to ...
8827 (record_full_breakpoint_p): ... this. Updated all users.
8828 (record_breakpoints): Renamed to ...
8829 (record_full_breakpoints): ... this. Updated all users.
8830 (record_sync_record_breakpoints): Renamed to ...
8831 (record_full_sync_record_breakpoints): ... this.
8832 Updated all users.
8833 (record_init_record_breakpoints): Renamed to ...
8834 (record_full_init_record_breakpoints): ... this.
8835 Updated all users.
8836 (record_insert_breakpoint): Renamed to ...
8837 (record_full_insert_breakpoint): ... this. Updated all users.
8838 (record_remove_breakpoint): Renamed to ...
8839 (record_full_remove_breakpoint): ... this. Updated all users.
8840 (record_can_execute_reverse): Renamed to ...
8841 (record_full_can_execute_reverse): ... this. Updated all users.
8842 (record_get_bookmark): Renamed to ...
8843 (record_full_get_bookmark): ... this. Updated all users.
8844 (record_goto_bookmark): Renamed to ...
8845 (record_full_goto_bookmark): ... this. Updated all users.
8846 (record_async): Renamed to ...
8847 (record_full_async): ... this. Updated all users.
8848 (record_can_async_p): Renamed to ...
8849 (record_full_can_async_p): ... this. Updated all users.
8850 (record_is_async_p): Renamed to ...
8851 (record_full_is_async_p): ... this. Updated all users.
8852 (record_execution_direction): Renamed to ...
8853 (record_full_execution_direction): ... this. Updated all users.
8854 (record_info): Renamed to ...
8855 (record_full_info): ... this. Updated all users.
8856 (record_delete): Renamed to ...
8857 (record_full_delete): ... this. Updated all users.
8858 (record_is_replaying): Renamed to ...
8859 (record_full_is_replaying): ... this. Updated all users.
8860 (record_goto_entry): Renamed to ...
8861 (record_full_goto_entry): ... this. Updated all users.
8862 (record_goto_begin): Renamed to ...
8863 (record_full_goto_begin): ... this. Updated all users.
8864 (record_goto_end): Renamed to ...
8865 (record_full_goto_end): ... this. Updated all users.
8866 (record_goto): Renamed to ...
8867 (record_full_goto): ... this. Updated all users.
8868 (init_record_ops): Renamed to ...
8869 (init_record_full_ops): ... this. Updated all users.
8870 (record_core_resume): Renamed to ...
8871 (record_full_core_resume): ... this. Updated all users.
8872 (record_core_kill): Renamed to ...
8873 (record_full_core_kill): ... this. Updated all users.
8874 (record_core_fetch_registers): Renamed to ...
8875 (record_full_core_fetch_registers): ... this. Updated all users.
8876 (record_core_prepare_to_store): Renamed to ...
8877 (record_full_core_prepare_to_store): ... this. Updated all users.
8878 (record_core_store_registers): Renamed to ...
8879 (record_full_core_store_registers): ... this. Updated all users.
8880 (record_core_xfer_partial): Renamed to ...
8881 (record_full_core_xfer_partial): ... this. Updated all users.
8882 (record_core_insert_breakpoint): Renamed to ...
8883 (record_full_core_insert_breakpoint): ... this. Updated all users.
8884 (record_core_remove_breakpoint): Renamed to ...
8885 (record_full_core_remove_breakpoint): ... this. Updated all users.
8886 (record_core_has_execution): Renamed to ...
8887 (record_full_core_has_execution): ... this. Updated all users.
8888 (init_record_core_ops): Renamed to ...
8889 (init_record_full_core_ops): ... this. Updated all users.
8890 (cmd_record_restore): Renamed to ...
8891 (cmd_record_full_restore): ... this. Updated all users.
8892 (record_save_cleanups): Renamed to ...
8893 (record_full_save_cleanups): ... this. Updated all users.
8894 (cmd_record_start): Renamed to ...
8895 (cmd_record_full_start): ... this. Updated all users.
8896 (set_record_insn_max_num): Renamed to ...
8897 (set_record_full_insn_max_num): ... this. Updated all users.
8898 (set_record_command): Renamed to ...
8899 (set_record_full_command): ... this. Updated all users.
8900 (show_record_command): Renamed to ...
8901 (show_record_full_command): ... this. Updated all users.
8902 (_initialize_record): Renamed to ...
8903 (_initialize_record_full): ... this. Updated all users.
8904
d02ed0bb
MM
89052013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8906
8907 * record.h: Split into this and ...
8908 * record-full.h: ... this.
8909 * record.c: Split into this and ...
8910 * record-full.c: ... this.
8911 * target.h (target_ops): Add new fields to_info_record,
8912 to_save_record, to_delete_record, to_record_is_replaying,
8913 to_goto_record_begin, to_goto_record_end, to_goto_record.
8914 (target_info_record): New.
8915 (target_save_record): New.
8916 (target_supports_delete_record): New.
8917 (target_delete_record): New.
8918 (target_record_is_replaying): New.
8919 (target_goto_record_begin): New.
8920 (target_goto_record_end): New.
8921 (target_goto_record): New.
8922 * target.c (target_info_record): New.
8923 (target_save_record): New.
8924 (target_supports_delete_record): New.
8925 (target_delete_record): New.
8926 (target_record_is_replaying): New.
8927 (target_goto_record_begin): New.
8928 (target_goto_record_end): New.
8929 (target_goto_record): New.
8930 * record.h: Declare struct cmd_list_element.
8931 (record_cmdlist): New declaration.
8932 (set_record_cmdlist): New declaration.
8933 (show_record_cmdlist): New declaration.
8934 (info_record_cmdlist): New declaration.
8935 (cmd_record_goto): New declaration.
8936 * record.c: Remove unnecessary includes.
8937 Include inferior.h.
8938 (cmd_record_goto): Remove declaration.
8939 (record_cmdlist): Now extern. Initialize.
8940 (set_record_cmdlist): Now extern. Initialize.
8941 (show_record_cmdlist): Now extern. Initialize.
8942 (info_record_cmdlist): Now extern. Initialize.
8943 (find_record_target): New.
8944 (require_record_target): New.
8945 (cmd_record_start): Update.
8946 (cmd_record_delete): Remove target-specific code.
8947 Call target_delete_record.
8948 (cmd_record_stop): Unpush any record target.
8949 (set_record_insn_max_num): Move to record-full.c
8950 (set_record_command): Add comment.
8951 (show_record_command): Add comment.
8952 (info_record_command): Update comment.
8953 Remove target-specific code.
8954 Call the record target's to_info_record.
8955 (cmd_record_start): New.
8956 (cmd_record_goto): Now extern.
8957 Remove target-specific code.
8958 Call target_goto_begin, target_goto_end, or target_goto.
8959 (_initialize_record): Move record target ops initialization to
8960 record-full.c.
8961 Change "record" command help text.
8962 Move "record restore", "record set", and "record show" commands to
8963 record-full.c.
8964 * Makefile.in (SFILES): Add record-full.c.
8965 (HFILES_NO_SRCDIR): Add record-full.h.
8966 (COMMON_OBS): Add record-full.o.
8967 * amd64-linux-tdep.c: Include record-full.h instead of record.h.
8968 * arm-tdep.c: Include record-full.h.
8969 * i386-linux-tdep.c: Include record-full.h instead of record.h.
8970 * i386-tdep.c: Include record-full.h.
8971 * infrun.c: Include record-full.h.
8972 * linux-record.c: Include record-full.h.
8973 * moxie-tdep.c: Include record-full.h.
8974 * record-full.c: Include record-full.h.
8975 Change module comment.
8976 (set_record_full_cmdlist): New.
8977 (show_record_full_cmdlist): New.
8978 (record_full_cmdlist): New.
8979 (record_goto_insn): New declaration.
8980 (record_save): New declaration.
8981 (record_check_insn_num): Change query string.
8982 (record_info): New.
8983 (record_delete): New.
8984 (record_is_replaying): New.
8985 (record_goto_entry): New.
8986 (record_goto_begin): New.
8987 (record_goto_end): New.
8988 (record_goto): New.
8989 (init_record_ops): Update.
8990 (init_record_core_ops): Update.
8991 (cmd_record_save): Rename to record_save. Remove target and arg checks.
8992 (cmd_record_start): New.
8993 (set_record_insn_max_num): Moved from record.c
8994 (set_record_full_command): New.
8995 (show_record_full_command): New.
8996 (_initialize_record_full): New.
8997
b48d48eb
MM
89982013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8999
9000 * target.h (add_deprecated_target_alias): New.
9001 * target.c (add_deprecated_target_alias): New.
9002
a950d57c
MM
90032013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9004
9005 * common/linux-btrace.c: Include sys/ptrace, sys/types, sys/wait.h,
9006 and signal.h.
9007 (linux_supports_btrace): Add kernel and
9008 cpuid check.
9009 (kernel_supports_btrace): New function.
9010 (cpu_supports_btrace): New function.
9011 (intel_supports_btrace): New function.
9012
9accd112
MM
90132013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9014
9015 * target.h (enum target_object): Add TARGET_OBJECT_BTRACE.
9016 * remote.c: Include btrace.h.
9017 (struct btrace_target_info): New struct.
9018 (remote_supports_btrace): New function.
9019 (send_Qbtrace): New function.
9020 (remote_enable_btrace): New function.
9021 (remote_disable_btrace): New function.
9022 (remote_teardown_btrace): New function.
9023 (remote_read_btrace): New function.
9024 (init_remote_ops): Add btrace ops.
9025 (enum <unnamed>): Add btrace packets.
9026 (struct protocol_feature remote_protocol_features[]): Add btrace packets.
9027 (_initialize_remote): Add packet configuration for branch tracing.
9028
c12a2917
MM
90292013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9030
9031 * features/btrace.dtd: New file.
9032 * Makefile.in (XMLFILES): Add btrace.dtd.
9033 * btrace.h (parse_xml_btrace): New declaration.
9034 * btrace.c: Include xml-support.h.
9035 (parse_xml_btrace): New function.
9036 (parse_xml_btrace_block): New function.
9037 (block_attributes): New struct.
9038 (btrace_attributes): New struct.
9039 (btrace_children): New struct.
9040 (btrace_elements): New struct.
9041
3e3aea48
MM
90422013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9043
9044 * amd64-linux-nat.c: Include btrace.h and linux-btrace.h.
9045 (amd64_linux_enable_btrace): New.
9046 (amd64_linux_disable_btrace): New.
9047 (amd64_linux_teardown_btrace): New.
9048 (_initialize_amd64_linux_nat): Initialize btrace ops.
9049 * i386-linux.nat.c: Include btrace.h and linux-btrace.h.
9050 (i386_linux_enable_btrace): New.
9051 (i386_linux_disable_btrace): New.
9052 (i386_linux_teardown_btrace): New.
9053 (_initialize_i386_linux_nat): Initialize btrace ops.
9054 * config/i386/linux.mh: Add linux-btrace.o.
9055 * config/i386/linux64.mh: Add linux-btrace.o.
9056
7c97f91e
MM
90572013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9058
9059 * common/linux_btrace.h: New file.
9060 * common/linux_btrace.c: New file.
9061 * Makefile.in (SFILES): Add btrace.c.
9062 (HFILES_NO_SRCDIR): Add common/linux-btrace.h.
9063 (COMMON_OBS): Add btrace.o.
9064 (linux-btrace.o): New rule.
9065
1999790b 90662013-03-11 Markus Metzger <markus.t.metzger@intel.com>
02d27625
MM
9067
9068 * target.h: Include btrace.h.
9069 (struct target_ops) <to_supports_btrace, to_enable_btrace,
9070 to_disable_btrace, to_teardown_btrace, to_read_btrace>: New.
9071 * target.c (target_supports_btrace): New function.
9072 (target_enable_btrace): New function.
9073 (target_disable_btrace): New function.
9074 (target_teardown_btrace): New function.
9075 (target_read_btrace): New function.
9076 * btrace.h: New file.
9077 * btrace.c: New file.
9078 * Makefile.in: Add btrace.c.
9079 * gdbthread.h: Include btrace.h.
9080 (struct thread_info): Add btrace field.
9081 * thread.c: Include btrace.h.
9082 (clear_thread_inferior_resources): Call target_teardown_btrace.
9083 * common/btrace-common.h: New file.
9084
61a31a67
JK
90852013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9086
9087 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Call also kill
9088 for CHILD, ignore PTRACE_KILL errors, move the inner block variable
9089 kill_status to outer block.
9090
05c56a9d
JK
90912013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9092
9093 Fix entry-values if the callee called a noreturn function.
9094 * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
9095 get_frame_address_in_block. Add new comment.
9096
9112db09
JK
90972013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9098
9099 Fix entry-values in C++ across CUs.
9100 * dwarf2loc.c (call_site_to_target_addr) <FIELD_LOC_KIND_PHYSNAME>: Use
9101 lookup_minimal_symbol. Add a comment.
9102 * dwarf2read.c
9103 (read_call_site_scope) <is_ref_attr> <die_is_declaration>: Prefer
9104 DW_AT_linkage_name.
9105
9b67fcec
YQ
91062013-03-08 Yao Qi <yao@codesourcery.com>
9107
9108 * tracepoint.c (_initialize_tracepoint): Indent the code.
9109
6221be90
PA
91102013-03-08 Pedro Alves <palves@redhat.com>
9111
9112 * findcmd.c (put_bits): Change type of parameter to 'gdb_byte *'.
9113 (parse_find_args, find_command): Change type of pattern buffer
9114 locals to 'gdb_byte *'.
9115
be9a119c 91162013-03-08 Stan Shebs <stan@codesourcery.com>
f6f899bf
HAQ
9117 Hafiz Abid Qadeer <abidh@codesourcery.com>
9118
9119 * NEWS: Mention set and show trace-buffer-size commands.
9120 Mention new packet.
9121 * target.h (struct target_ops): New method
9122 to_set_trace_buffer_size.
9123 (target_set_trace_buffer_size): New macro.
9124 * target.c (update_current_target): Set up new method.
9125 * tracepoint.c (trace_buffer_size): New global.
9126 (start_tracing): Send it to the target.
9127 (set_trace_buffer_size): New function.
9128 (_initialize_tracepoint): Add new setshow for trace-buffer-size.
9129 * remote.c (remote_set_trace_buffer_size): New function.
9130 (_initialize_remote): Use it.
9131 (QTBuffer:size) New remote command.
9132 (PACKET_QTBuffer_size): New enum.
9133 (remote_protocol_features): Add an entry for
9134 PACKET_QTBuffer_size.
9135
7da3ab79
TT
91362013-03-08 Tom Tromey <tromey@redhat.com>
9137
9138 * remote-m32r-sdi.c (m32r_load): Call skip_spaces on correct
9139 variable.
9140
0c1f71e7
PA
91412013-03-07 Pedro Alves <palves@redhat.com>
9142
9143 * target.c (target_read_stralloc, target_fileio_read_alloc):
9144 *Cast pointer to 'gdb_byte *' in target call.
9145
c8af03a2
PA
91462013-03-07 Pedro Alves <palves@redhat.com>
9147
9148 * corefile.c (read_memory_string): Cast pointer to gdb_byte* in
9149 call.
9150
529480d0
KS
91512013-03-07 Keith Seitz <keiths@redhat.com>
9152
9153 * breakpoint.c (catch_syscall_split_args): Use skip_spaces.
9154 (trace_pass_command): Likewise.
9155 * cli/cli-cmds.c: Include cli/cli-utils.h.
9156 (source_command): Use skip-spaces.
9157 (disassemble_command): Likewise.
9158 * findcmd.c: Include cli/cli-utils.h.
9159 (parse_find_args): Use skip_spaces.
9160 * go32-nat.c: Include cli/cli-utils.h.
9161 (go32_sldt): Use skip_spaces.
9162 (go32_sgdt): Likewise.
9163 (go32_sidt): Likewise.
9164 (go32_pde): Likewise.
9165 (go32_pte): Likewise.
9166 (go32_pte_for_address): Likewise.
9167 * infcmd.c: Include cli/cli-utils.h.
9168 (registers_info): Use skip_spaces.
9169 * linux-tdep.c (read_mapping): Use skip_spaces_const.
9170 (linux_info_proc): Likewise.
9171 * linux-thread-db.c: Include cli/cli-utils.h.
9172 (info_auto_load_libthread_db): Use skip_spaces_const.
9173 * m32r-rom.c: Include cli/cli-utils.h.
9174 (m32r_upload_command): Use skip_spaces.
9175 * maint.c: Include cli/cli-utils.h.
9176 (maintenance_translate_address): Use skip_spaces.
9177 * mi/mi-parse.c: Include cli/cli-utils.h.
9178 (mi_parse_argv): Use skip_spaces.
9179 (mi_parse): Likewise.
9180 * minsyms.c: Include cli/cli-utils.h.
9181 (msymbol_hash_iw): Use skip_spaces_const.
9182 * objc-lang.c: Include cli/cli-utils.h.
9183 (parse_selector): Use skip_spaces.
9184 (parse_method): Likewise.
9185 * python/python.c: Include cli/cli-utils.h.
9186 (python_interactive_command)[HAVE_PYTHON]: Use skip_spaces.
9187 (python_command)[HAVE_PYTHON]: Likewise.
9188 (python_interactive_command)[!HAVE_PYTHON]: Likewise.
9189 * remote-m32r-sdi.c: Include cli/cli-utils.h.
9190 (m32r_load): Use skip_spaces.
9191 * serial.c: Include cli/cli-utils.h.
9192 (serial_open): Use skip_spaces_const.
9193 * stack.c: Include cli/cli-utils.h.
9194 (parse_frame_specification_1): Use skip_spaces_const.
9195 * symfile.c: Include cli/cli-utils.h.
9196 (set_ext_lang_command): Use skip_spaces.
9197 * symtab.c: Include cli/cli-utils.h.
9198 (rbreak_command): Use skip_spaces.
9199 * thread.c (thread_name_command): Use skip_spaces.
9200 * tracepoint.c (validate_actionline): Use skip_spaces.
9201 (encode_actions_1): Likewise.
9202 (trace_find_range_command): Likewise.
9203 (trace_find_outside_command): Likewise.
9204 (trace_dump_actions): Likewise.
9205
ac91cd70
PA
92062013-03-07 Pedro Alves <palves@redhat.com>
9207
9208 * c-lang.c (parse_one_string): Cast argument to gdb_byte *.
9209 * expprint.c (print_subexp_standard): Likewise.
9210 * utils.c (host_char_to_target): Likewise.
9211 * valprint.c (generic_emit_char, generic_printstr): Likewise.
9212 * varobj.c (value_get_print_value): Change type of local to char*.
9213 Cast it gdb_byte * in call to language printer.
9214
2898e560
PA
92152013-03-07 Pedro Alves <palves@redhat.com>
9216
9217 * charset.c (struct wchar_iterator) <input>: Change type to 'const
9218 gdb_byte *'.
9219 (make_wchar_iterator): Remove cast to char*.
9220 (wchar_iterate): Change type of local.
9221
a09b4448
PA
92222013-03-07 Pedro Alves <palves@redhat.com>
9223
9224 * regcache.c (regcache_xmalloc_1): Call XCALLOC with signed char
9225 for 'regcache->register_status'.
9226
20ced3e4
PA
92272013-03-07 Pedro Alves <palves@redhat.com>
9228
c2d6a675 9229 * breakpoint.c (breakpoint_xfer_memory): Change type of local to
20ced3e4
PA
9230 int.
9231
fe106009
PA
92322013-03-07 Pedro Alves <palves@redhat.com>
9233
9234 * stap-probe.c (handle_stap_probe): Add cast to char*.
9235
8ac2c12b
PA
92362013-03-07 Pedro Alves <palves@redhat.com>
9237
9238 * linux-record.c (record_linux_system_call) <gdb_sys_msgrcv,
9239 RECORD_MSGRCV>: Pass a signed variable to
9240 regcache_raw_read_signed, instead of an unsigned one.
9241
99f0a309
PA
92422013-03-07 Pedro Alves <palves@redhat.com>
9243
9244 * remote-notif.c (notif_debug): Change type to int.
9245 * remote-notif.h (notif_debug): Likewise.
9246
964b8317
PA
92472013-03-07 Pedro Alves <palves@redhat.com>
9248
9249 * ser-tcp.c (tcp_retry_limit): Change type to unsigned int.
9250
f0cc8ad4
PA
92512013-03-07 Pedro Alves <palves@redhat.com>
9252
9253 * remote.c (hex2bin, bin2hex): Move extern declarations to ...
9254 * remote.h (hex2bin, bin2hex): ... here.
9255 * tracepoint.c (hex2bin, bin2hex): Remove extern declarations.
9256
77dec115
EZ
92572013-03-07 Eli Zaretskii <eliz@gnu.org>
9258
9259 * utils.c (initialize_utils): Improve doc strings of "set/show
9260 width", "set/show height", and "set/show pagination".
9261
741d92cf
KS
92622013-03-06 Keith Seitz <keiths@redhat.com>
9263
9264 * ax-gdb.c (gen_printf): Make FORMAT const.
9265 * ax-gdb.h (gen_printf): Likewise.
9266 * ax-general.c (ax_string): Make STR const.
9267 * ax.h (ax_string): Likewise.
9268
7b6c814e
DE
92692013-03-06 Doug Evans <dje@google.com>
9270
9271 * elfread.c (elf_symfile_read): Move debugging printf to more
9272 logical location.
9273
634334ab
PA
92742013-03-06 Pedro Alves <palves@redhat.com>
9275
9276 * python/py-utils.c (target_string_to_unicode): Delete function.
9277 * python/python-internal.h (target_string_to_unicode): Delete
9278 declaration.
9279
e482a1a7
PM
92802013-03-06 Pierre Muller <muller@sourceware.org>
9281
9282 * linespec.c (get_current_search_block): ARI fix, use (void)
9283 for empty parameter list.
9284
4eeaa230
DE
92852013-03-05 Doug Evans <dje@google.com>
9286
9287 * ada-lang.c (ada_lookup_symbol_list_worker): New function, contents
9288 of old ada_lookup_symbol_list. In !full_search case, don't
9289 search superblocks.
9290 (ada_lookup_symbol_list): Delete arg full_search, all callers
9291 updated. Call ada_lookup_symbol_list_worker.
9292 (ada_iterate_over_symbols): Call ada_lookup_symbol_list_worker.
9293 * ada-lang.h (ada_lookup_symbol_list): Update.
9294 * language.h (language_defn): Update comment for
9295 la_iterate_over_symbols.
9296 * linespec.c (iterate_over_file_blocks): New function.
9297 (iterate_over_all_matching_symtabs): Call it.
9298 (lookup_prefix_sym): Ditto.
9299 (get_current_search_block): New function.
9300 (get_search_block): Delete.
9301 (find_label_symbols): Call get_current_search_block.
9302 (add_matching_symbols_to_info): Call iterate_over_file_blocks.
9303 * symtab.c (iterate_over_symbols): Don't search superblocks.
9304
b69b1fb1
YQ
93052013-03-05 Yao Qi <yao@codesourcery.com>
9306
9307 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): Change
9308 parameter VAR's type from "unsigned int" to "int".
9309 * command.h (var_zuinteger_unlimited): Update its comments.
9310 (add_setshow_zuinteger_unlimited_cmd): Update the declaration.
9311
3c095f49
CV
93122013-03-05 Corinna Vinschen <vinschen@redhat.de>
9313
9314 * NEWS: Mention new target x86_64-*-cygwin*.
9315
b5b0b0af
CV
93162013-03-05 Corinna Vinschen <vinschen@redhat.de>
9317
9318 * configure.host: Add x86_64-*-cygwin* as host.
9319 * configure.tgt: Add x86_64-*-cygwin* as target.
9320 * config/i386/cygwin64.mh: New file.
9321
f6f99966
JK
93222013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
9323
9324 * linespec.c (decode_line_2): Fix duplicate request off by two message.
9325
33f448b1
JK
93262013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
9327
9328 * linespec.c (struct linespec_canonical_name): New.
9329 (struct linespec_state): Change canonical_names type to it.
9330 (add_sal_to_sals): Change variable canonical_name to canonical. Change
9331 xrealloc element size. Initialize the different CANONICAL fields.
9332 (canonical_to_fullform): New.
9333 (filter_results): Use it. Add variables canonical, fullform and
9334 cleanup.
9335 (struct decode_line_2_item, decode_line_2_compare_items): New.
9336 (decode_line_2): Remove variables iter and item_names, add variables
9337 items and items_count. Modify the code for these new variables.
9338
feb14725
CV
93392013-03-04 Corinna Vinschen <vinschen@redhat.com>
9340
9341 * coff-pe-read.c (read_pe_exported_syms): Don't return without
9342 calling do_cleanup.
9343
e83b17ba
HZ
93442013-03-04 Luis Machado <lgustavo@codesourcery.com>
9345
9346 * tracepoint.c (build_traceframe_info): Add code for byte order.
9347
a2d13a0d
KB
93482013-03-02 Kevin Buettner <kevinb@redhat.com>
9349
8dddcae8
KB
9350 * v850-tdep.c: (v850e2_register_name): Revise system register
9351 names to match current V850E2M architecture specifications.
9352 Update register number enum comments too.
f5aee5ee 9353
d79e58d8
JW
93542013-03-01 Jiong Wang <jiwang@tilera.com>
9355 Pedro Alves <palves@redhat.com>
9356
9357 * tilegx-tdep.c (tilegx_analyze_prologue): Limit bundle reading
9358 to END_ADDR.
9359 (tilegx_skip_prologue): Limit prologue analysis to section end.
9360
c4be5165
JK
93612013-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9362
9363 * dwarf2loc.c (call_site_find_chain_1): New variable save_callee_pc,
9364 use it.
9365
e362b510
PA
93662013-03-01 Pedro Alves <palves@redhat.com>
9367
9368 Use gdb_byte for bytes from the program being debugged.
9369
9370 * arm-tdep.c (arm_store_return_value, arm_get_longjmp_target):
9371 Change type of local 'buf' to gdb_byte.
9372 * avr-tdep.c (avr_frame_prev_register, avr_push_dummy_call): Likewise.
9373 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
9374 * cris-tdep.c (cris_sigcontext_addr)
9375 (cris_sigtramp_frame_unwind_cache): Likewise.
9376 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp)
9377 (frv_linux_sigcontext_reg_addr, frv_linux_sigtramp_frame_cache):
9378 Likewise.
9379 * frv-tdep.c (frv_pseudo_register_write, frv_analyze_prologue): Likewise.
9380 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer)
9381 (hppa32_hpux_search_dummy_call_sequence)
9382 (hppa_hpux_supply_save_state): Likewise.
9383 * hppa-linux-tdep.c (insns_match_pattern)
9384 (hppa_linux_find_global_pointer): Likewise.
9385 * hppa-tdep.c (hppa_in_function_epilogue_p)
9386 (skip_prologue_hard_way, hppa_frame_cache): Likewise.
9387 * i386-nto-tdep.c (i386nto_sigcontext_addr): Likewise.
9388 * i386fbsd-tdep.c (i386fbsd_supply_uthread)
9389 (i386fbsd_collect_uthread): Likewise.
9390 * ia64-hpux-tdep.c (ia64_hpux_push_dummy_code): Likewise.
9391 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Likewise.
9392 * ia64-tdep.c (examine_prologue, ia64_frame_cache)
9393 (ia64_frame_prev_register, ia64_sigtramp_frame_cache)
9394 (ia64_sigtramp_frame_prev_register, ia64_access_reg)
9395 (ia64_access_rse_reg, ia64_libunwind_frame_this_id)
9396 (ia64_libunwind_frame_prev_register)
9397 (ia64_libunwind_sigtramp_frame_this_id)
9398 (ia64_find_global_pointer_from_dynamic_section)
9399 (find_extant_func_descr, find_func_descr, ia64_dummy_id)
9400 (ia64_unwind_pc): Likewise.
9401 * iq2000-tdep.c (iq2000_store_return_value): Likewise.
9402 * m68hc11-tdep.c (m68hc11_push_dummy_call)
9403 (m68hc11_extract_return_value): Likewise.
9404 * m68klinux-nat.c (fetch_register, store_register): Likewise.
9405 * mep-tdep.c (mep_pseudo_cr32_read, mep_pseudo_cr32_write)
9406 (mep_get_insn, mep_push_dummy_call): Likewise.
9407 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
9408 (mips_linux_in_dynsym_stub): Likewise.
9409 * mn10300-tdep.c (mep_pseudo_cr32_write): Likewise.
9410 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
9411 * regcache.c (dump_endian_bytes): Change type of parameter 'buf'
9412 to gdb_byte.
9413 * remote-mips.c (mips_set_register): Likewise.
9414 * remote-sim.c (gdbsim_fetch_register): Likewise.
9415 * score-tdep.c (score7_fetch_inst): Change type of parameter
9416 'memblock' and local 'buf' to gdb_byte.
9417 (score7_malloc_and_get_memblock): Change return type to gdb_byte.
9418 Change type of local 'buf' to gdb_byte. Adjust.
9419 (score7_adjust_memblock_ptr): Change type of parameter 'memblock'
9420 to gdb_byte**.
9421 (score7_analyze_prologue): Change type of 'memblock' and
9422 'memblock_ptr' locals to gdb_byte*.
9423 * sh64-tdep.c (sh64_extract_return_value)
9424 (sh64_store_return_value): Change type of local 'buf' to gdb_byte.
9425 * solib-darwin.c (darwin_current_sos, darwin_read_exec_load_addr):
9426 * solib-pa64.c (pa64_solib_create_inferior_hook)
9427 (pa64_open_symbol_file_object): Remove local 'buf'.
9428 * solib-som.c (som_solib_create_inferior_hook, link_map_start)
9429 (som_open_symbol_file_object): Likewise.
9430 * solib-spu.c (spu_current_sos): Likewise.
9431 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
9432 * spu-multiarch.c (parse_spufs_run, spu_fetch_registers)
9433 (spu_store_registers): Likewise.
9434 * target.c (debug_print_register): Likewise.
9435 * tic6x-tdep.c (tic6x_get_longjmp_target): Likewise.
9436 * xstormy16-tdep.c (xstormy16_store_return_value)
9437 (xstormy16_push_dummy_call, xstormy16_resolve_jmp_table_entry)
9438 (xstormy16_find_jmp_table_entry): Likewise.
9439
75cc61ca 94402013-03-01 Jiong Wang <jiwang@tilera.com>
61d8bd0e
JW
9441
9442 * tilegx-tdep.c (tilegx_get_longjmp_target): New function.
9443 (tilegx_gdbarch_init): Install it.
9444
ddb08e9c
TT
94452013-02-28 Tom Tromey <tromey@redhat.com>
9446
9447 * python/py-arch.c (archpy_disassemble): Use PyInt_Check and
9448 PyLong_Check.
9449
62d7fb51
DE
94502013-02-28 Doug Evans <dje@google.com>
9451
9452 * python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
9453 * python/python.c (gdbpy_find_pc_line): Ditto.
9454
c4a9e8b4
TT
94552013-02-28 Tom Tromey <tromey@redhat.com>
9456
9457 * contrib/excheck.py: New file.
9458 * contrib/exsummary.py: New file.
9459 * contrib/gcc-with-excheck: New file.
9460
7f6a5dde
TT
94612013-02-28 Tom Tromey <tromey@redhat.com>
9462
9463 * python/python.c (gdbpy_print_stack): Call begin_line and
9464 fprintf_filtered inside TRY_CATCH.
9465
9e974e55
TT
94662013-02-28 Tom Tromey <tromey@redhat.com>
9467
9468 * python/python.c (gdbpy_find_pc_line): Call find_pc_line
9469 inside TRY_CATCH.
9470
dd5fa3e7
TT
94712013-02-28 Tom Tromey <tromey@redhat.com>
9472
9473 * py-finishbreakpoint.c (bpfinishpy_init): Reorganize to call
9474 frame_object_to_frame_info inside TRY_CATCH.
9475
86a3263f
TT
94762013-02-28 Tom Tromey <tromey@redhat.com>
9477
9478 * py-block.c (gdbpy_block_for_pc): Call block_for_pc inside
9479 TRY_CATCH.
9480
81b52a3a
TT
94812013-02-28 Tom Tromey <tromey@redhat.com>
9482
9483 * objfiles.h (ALL_PSPACE_OBJFILES): Remove trailing backlash.
9484
d50a0ce2
CV
94852013-02-27 Corinna Vinschen <vinschen@redhat.com>
9486
9487 * windows-nat.c: Throughout, fix format strings and casts of
9488 printf-like functions to avoid type related warnings on all
9489 platforms.
9490 (handle_output_debug_string): Fetch context information address
9491 from debug string using string_to_core_addr.
9492
e1f58301
JW
94932013-02-27 Jiong Wang <jiwang@tilera.com>
9494
9495 * regformats/reg-tilegx.dat (name): Change abi name to "tilegx".
9496 * regformats/reg-tilegx32.dat: New.
9497
4fcd89fc
JW
94982013-02-27 Jiong Wang <jiwang@tilera.com>
9499
9500 * configure.tgt (tilegx-*-linux*): Enable gdbserver.
9501
748d24e6
JW
95022013-02-27 Jiong Wang <jiwang@tilera.com>
9503
9504 * configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
9505
6c8e944d
YQ
95062013-02-27 Yao Qi <yao@codesourcery.com>
9507 Pedro Alves <palves@redhat.com>
9508
9509 * tracepoint.c (tfile_trace_find): For tfind
5f8e0b8f
MF
9510 pc/tp/range/outside, look for the next trace frame instead of
9511 always starting from frame 0.
6c8e944d 9512
acd7db30
AG
95132013-02-26 Anthony Green <green@moxielogic.com>
9514
9515 * configure.tgt: Add support for moxie-*-rtems* target.
9516
025e6dce
PA
95172013-02-25 Pedro Alves <palves@redhat.com>
9518
9519 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
9520 warning text.
9521
ca9c94ef
MR
95222013-02-24 Maciej W. Rozycki <macro@codesourcery.com>
9523
9524 * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
9525 if $fp is used as the virtual frame pointer.
9526
24c274a1
AM
95272013-02-23 Alan Modra <amodra@gmail.com>
9528
9529 * elfread.c (elf_symtab_read): Do not use udata.p here to find
9530 symbol size.
9531 * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
9532 * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
9533 * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
9534 * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
9535
bfada189
JK
95362013-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
9537
9538 Code cleanup.
9539 * elfread.c (build_id_bfd_get): Make the return type const.
9540 (build_id_verify): Make the check parameter const.
9541 (build_id_to_debug_filename): Make the build_id parameter and variable
9542 data const.
9543 (find_separate_debug_file_by_buildid): Make the variable build_id const.
9544
c0355132
AM
95452013-02-21 Alan Modra <amodra@gmail.com>
9546
9547 * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
9548
9f44fbc0
SCR
95492013-02-20 Siva Chandra Reddy <sivachandra@google.com>
9550
9551 Add a new method 'disassemble' to gdb.Architecture class.
9552 * python/py-arch.c (archpy_disassmble): Implementation of the
9553 new method gdb.Architecture.disassemble.
9554 (arch_object_methods): Add entry for the new method.
9555
b74ea3eb
JW
95562013-02-20 Jiong Wang <jiwang@tilera.com>
9557
9558 * MAINTAINERS (Write After Approval): Add myself to the list.
9559
61a672f1
PA
95602013-02-19 Pedro Alves <palves@redhat.com>
9561
9562 Garbage collect 'struct monitor_ops'::load_routine.
9563
9564 * monitor.h (struct monitor_ops) <load_routine>: Remove field.
9565 * monitor.c (monitor_load): No longer call
9566 current_monitor->load_routine.
9567 * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
9568 * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
9569 * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
9570
40e397df
PA
95712013-02-19 Pedro Alves <palves@redhat.com>
9572
9573 PR gdb/15161
9574
9575 Harmonize with generic_load.
9576
9577 * monitor.c: Include "readline/readline.h".
9578 (monitor_load): Rename parameter 'file' to 'args'. Use build_argv
9579 instead of sscanf. Use CORE_ADDR/strtoulst instead of unsigned
9580 long/strtol for the 'load_offset' local. Error out if no argument
9581 is given or if too many arguments are given. Tilde expand the
9582 passed in file name.
9583
f698ca8e
KT
95842013-02-19 Kai Tietz <ktietz@redhat.com>
9585
9586 PR gdb/15161
9587 * symfile.c (load_section_data): Change type of load_offset
9588 to CORE_ADDR.
9589 (generic_load): User strtoulst instead of strtoul for conversion
9590 of load_offset.
9591
3361b059
WL
95922013-02-19 Jiong Wang <jiwang@tilera.com>
9593
9594 * tilegx-tdep.c (tilegx_analyze_prologue): add check for
9595 for return address, "lr" register, saved on stack.
9596 * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
9597 after we invoke tilegx_analyze_prologue.
9598
3e9d5130
WL
95992013-02-19 Jiong Wang <jiwang@tilera.com>
9600
bb1bcd86
WL
9601 * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
9602
3361b059 96032013-02-19 Jiong Wang <jiwang@tilera.com>
bb1bcd86 9604
b74ea3eb 9605 * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
3e9d5130 9606
4aaf2503
WL
96072013-02-19 Jiong Wang <jiwang@tilera.com>
9608
b74ea3eb 9609 * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
4aaf2503
WL
9610 (tilegx_write_pc): New function.
9611 (tilegx_cannot_reference_register): Return zero if REGNO
9612 is TILEGX_FAULTNUM_REGNUM.
9613 (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
9614 (tilegx_register_name): Add handling of "faultnum" register.
9615 * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
9616 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
9617 handling of TILEGX_FAULTNUM_REGNUM.
9618 * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
9619
bc23a956
WL
96202013-02-19 Jiong Wang <jiwang@tilera.com>
9621
9622 * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
b74ea3eb 9623 should be aligned to 64bit.
bc23a956 9624
42f45f1a
KT
96252013-02-19 Kai Tietz <ktietz@redhat.com>
9626
9627 * windows-nat.c (windows_xfer_memory): Fix debug-output
9628 for LLP64.
9629
6ce4c112
LL
96302013-02-19 Lei Liu <lei.liu2@windriver.com>
9631
9632 * mips-linux-nat.c (mips64_linux_regsets_store_registers):
9633 Don't check DSP register number if HAVE_DSP is not set.
9634
30e8ee25
AM
96352013-02-19 Alan Modra <amodra@gmail.com>
9636
9637 * elfread.c (struct build_id): Delete. Use struct elf_build_id
9638 throughout file instead.
9639 (build_id_bfd_get): Update to use new elf_tdata build_id field.
9640 Don't xmalloc return value.
9641 (build_id_verify): Similarly. Don't xfree.
9642 (build_id_to_debug_filename): Update.
9643 (find_separate_debug_file_by_buildid): Update, don't xfree.
9644
4c9ad8c2
TT
96452013-02-18 Tom Tromey <tromey@redhat.com>
9646
9647 PR gdb/15102:
9648 * dwarf2read.c (read_subrange_type): Use result of
9649 'check_typedef'.
9650
983dc440
YQ
96512013-02-16 Yuanhui Zhang <asmwarrior@gmail.com>
9652
9653 * frame.c: Remove one extra white space after #include
9654 directive.
9655
7fb2b84a
JK
96562013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9657
9658 * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
9659
edceb2a9
JK
96602013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9661
9662 * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
9663 and dir commands into an if block.
9664
e81b7af8
TT
96652013-02-15 Sanimir Agovic <sanimir.agovic@intel.com>
9666
9667 * python/py-breakpoint (struct pybp_code): Use int instead of
9668 enum type_code.
9669
f5911ea1
HAQ
96702013-02-15 Pedro Alves <pedro@codesourcery.com>
9671 Hafiz Abid Qadeer <abidh@codesourcery.com>
9672
9673 * NEWS: Mention new field "trace-file".
9674 * tracepoint.c (trace_status_mi): Output "trace-file" field.
9675 (tfile_open): Record the trace file's filename in the trace
9676 status.
9677 (tfile_files_info): Mention the name of the trace file.
9678 Check the "filename" field explicitely.
9679 (trace_status_command): Explicitely check "filename" field.
9680 (trace_find_command): Ditto.
9681 (trace_find_pc_command): Ditto.
9682 (trace_find_tracepoint_command): Ditto.
9683 (trace_find_line_command): Ditto.
9684 (trace_find_range_command): Ditto.
9685 (trace_find_outside_command): Ditto.
9686 * tracepoint.h (struct trace_status) <from_file>: Rename it
9687 to "filename" and make it hold the trace file's filename
9688 instead of a boolean.
9689 * remote.c (remote_get_trace_status): Initialize "filename"
9690 field with NULL instead of 0.
9691
796cb314
YQ
96922013-02-15 Yao Qi <yao@codesourcery.com>
9693
9694 * remote.c: Fix a typo.
9695
42e79b1d
PM
96962013-02-14 Pierre Muller <muller@sourceware.org>
9697
9698 * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
9699
baea0dae
PA
97002013-02-14 Pedro Alves <palves@redhat.com>
9701
9702 * utils.c (savestring): Don't #undef it. Move function to
9703 common/common-utils.c.
9704 * common/common-utils.c: Include gdb_string.h.
9705 (savestring): Move here from utils.c.
9706 * common/common-utils.h (savestring): Declare.
9707
57c3b6ed
PA
97082013-02-14 Pedro Alves <palves@redhat.com>
9709
9710 * utils.c (savestring): Rename parameter 'size' to 'len'.
9711
d6c44983
YZ
97122013-02-14 Pedro Alves <palves@redhat.com>
9713 Yufeng Zhang <yufeng.zhang@arm.com>
9714
9715 * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
9716 (aarch64_inferior_data, struct aarch64_inferior_data):
9717 Delete.
9718 (struct aarch64_process_info): New.
9719 (aarch64_process_list): New global.
9720 (aarch64_find_process_pid, aarch64_add_process)
9721 (aarch64_process_info_get): New functions.
9722 (aarch64_inferior_data_get): Delete.
9723 (aarch64_process_info_get): New function.
9724 (aarch64_forget_process): New function.
9725 (aarch64_get_debug_reg_state): New parameter 'pid'. Reimplement.
9726 (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
9727 aarch64_get_debug_reg_state.
9728 (aarch64_notify_debug_reg_change): Use iterate_over_lwps
9729 instead of linux_nat_iterate_watchpoint_lwps.
9730 (aarch64_linux_new_fork): New function.
9731 (aarch64_linux_child_post_startup_inferior): Use
9732 aarch64_forget_process instead of aarch64_init_debug_reg_state.
9733 (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
9734 (aarch64_linux_remove_hw_breakpoint)
9735 (aarch64_handle_aligned_watchpoint)
9736 (aarch64_handle_unaligned_watchpoint)
9737 (aarch64_linux_insert_watchpoint)
9738 (aarch64_linux_remove_watchpoint)
9739 (aarch64_linux_stopped_data_address): Adjust to pass the current
9740 process id to aarch64_debug_reg_state.
9741 (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
9742 linux_nat_new_fork hook, and aarch64_forget_process as
9743 linux_nat_forget_process hook; remove the call to
9744 register_inferior_data_with_cleanup.
9745
4819b3f8
PA
97462013-02-14 Pedro Alves <palves@redhat.com>
9747
9748 * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
9749 EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
9750 lval_memory.
9751
1773c82c
HAQ
97522013-02-14 Pedro Alves <pedro@codesourcery.com>
9753 Hafiz Abid Qadeer <abidh@codesourcery.com>
9754
9755 * tracepoint.h (validate_trace_state_variable_name): Declare.
9756 * tracepoint.c (validate_trace_state_variable_name): New.
9757 (trace_variable_command): Parse the trace state variable's name
9758 without using parse_expression. Do several validations.
9759 * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
9760 trace state variable's name with parse_expression. Validate it.
9761
53778a97
YQ
97622013-02-14 Yao Qi <yao@codesourcery.com>
9763
9764 * infcmd.c (breakpoint_proceeded): Remove it.
9765
7b3ae3a6
YQ
97662013-02-14 Yao Qi <yao@codesourcery.com>
9767
9768 * tracepoint.c (end_actions_pseudocommand): Make it static.
9769 (while_stepping_pseudocommand): Likewise.
9770 * tracepoint.h (end_actions_pseudocommand): Remove the
9771 declaration.
9772 (while_stepping_pseudocommand): Likewise.
9773
64580925
YQ
97742013-02-14 Yao Qi <yao@codesourcery.com>
9775
9776 * cli/cli-decode.c (help_cmd): Remove the declaration of
9777 "cmdlist".
9778 (help_all): Likewise.
9779
26cb8b7c
PA
97802013-02-13 Pedro Alves <palves@redhat.com>
9781
9782 * amd64-linux-nat.c (update_debug_registers_callback):
9783 Update comment.
9784 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
9785 iterate_over_lwps.
9786 (amd64_linux_prepare_to_resume): Pass the lwp's pid to
9787 i386_debug_reg_state.
9788 (amd64_linux_new_fork): New function.
9789 (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
9790 linux_nat_new_fork hook, and i386_forget_process as
9791 linux_nat_forget_process hook.
9792 * i386-linux-nat.c (update_debug_registers_callback):
9793 Update comment.
a8256ea1 9794 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
26cb8b7c
PA
9795 iterate_over_lwps.
9796 (i386_linux_prepare_to_resume): Pass the lwp's pid to
9797 i386_debug_reg_state.
9798 (i386_linux_new_fork): New function.
9799 (_initialize_i386_linux_nat): Install i386_linux_new_fork as
9800 linux_nat_new_fork hook, and i386_forget_process as
9801 linux_nat_forget_process hook.
9802 * i386-nat.c (i386_init_dregs): Delete.
9803 (i386_inferior_data, struct i386_inferior_data):
9804 Delete.
9805 (struct i386_process_info): New.
9806 (i386_process_list): New global.
9807 (i386_find_process_pid, i386_add_process, i386_process_info_get):
9808 New functions.
9809 (i386_inferior_data_get): Delete.
9810 (i386_process_info_get): New function.
9811 (i386_debug_reg_state): New parameter 'pid'. Reimplement.
9812 (i386_forget_process): New function.
9813 (i386_cleanup_dregs): Rewrite.
9814 (i386_update_inferior_debug_regs, i386_insert_watchpoint)
9815 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
9816 (i386_stopped_data_address, i386_insert_hw_breakpoint)
9817 (i386_remove_hw_breakpoint): Adjust to pass the current process id
9818 to i386_debug_reg_state.
9819 (i386_use_watchpoints): Don't register inferior data.
9820 * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
9821 adjust comment.
9822 (i386_forget_process): Declare.
9823 * linux-fork.c (delete_fork): Call linux_nat_forget_process.
9824 * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
9825 New static globals.
9826 (linux_child_follow_fork): Don't call linux_nat_new_thread here.
9827 (add_initial_lwp): New, factored out from ...
9828 (add_lwp): ... this. Don't check the number of lwps before
9829 calling linux_nat_new_thread.
9830 (linux_nat_iterate_watchpoint_lwps): Delete.
9831 (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
9832 (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
9833 forks and vforks.
9834 (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
9835 initial lwp.
9836 (linux_nat_kill, linux_nat_mourn_inferior): Call
9837 linux_nat_forget_process.
9838 (linux_nat_set_new_fork, linux_nat_set_forget_process)
9839 (linux_nat_forget_process): New functions.
9840 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
9841 type.
9842 (linux_nat_iterate_watchpoint_lwps): Delete declaration.
9843 (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
9844 types.
9845 (linux_nat_set_new_fork, linux_nat_set_forget_process)
9846 (linux_nat_forget_process): New declarations.
9847
9848 * amd64fbsd-nat.c (super_mourn_inferior): New global.
9849 (amd64fbsd_mourn_inferior): New function.
9850 (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
9851 * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
9852
5befea72
MS
98532013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
9854
55015247
YQ
9855 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
9856 Adding _().
5befea72 9857
1d3ffd6b
MS
98582013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
9859
9860 * aarch64-linux-nat.c (debug_reg_change_callback)
9861 (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
9862 %s and phex().
9863
6eb04473
MS
98642013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
9865
9866 * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
9867 with LONGEST.
9868
a016fc87
HAQ
98692013-02-13 Pedro Alves <palves@redhat.com>
9870 Hafiz Abid Qadeer <abidh@codesourcery.com>
9871
9872 * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
9873
e234dfaf
TT
98742013-02-12 Tom Tromey <tromey@redhat.com>
9875
9876 PR symtab/11464:
9877 * c-exp.y (lex_one_token): Initialize other fields of yylval on
9878 NAME return.
9879 (classify_inner_name): Remove 'first_name' argument, add
9880 'context'. Remove unused variable.
9881 (yylex): Explicitly maintain the context type. Exit loop earlier
9882 if NAME result is seen.
9883
0b1afbb3
PA
98842013-02-12 Pedro Alves <palves@redhat.com>
9885
9886 * amd64-darwin-tdep.c: Add (C) after Copyright.
9887 * cli/cli-cmds.h: Ditto.
9888 * cli/cli-decode.c: Ditto.
9889 * cli/cli-decode.h: Ditto.
9890 * cli/cli-dump.c: Ditto.
9891 * cli/cli-dump.h: Ditto.
9892 * cli/cli-interp.c: Ditto.
9893 * cli/cli-logging.c: Ditto.
9894 * cli/cli-script.c: Ditto.
9895 * cli/cli-script.h: Ditto.
9896 * cli/cli-setshow.c: Ditto.
9897 * cli/cli-setshow.h: Ditto.
9898 * cli/cli-utils.c: Ditto.
9899 * cli/cli-utils.h: Ditto.
9900 * config/alpha/nm-osf3.h: Ditto.
9901 * config/djgpp/djconfig.sh: Ditto.
9902 * config/i386/nm-fbsd.h: Ditto.
9903 * config/i386/nm-i386gnu.h: Ditto.
9904 * config/nm-linux.h: Ditto.
9905 * config/nm-nto.h: Ditto.
9906 * config/rs6000/nm-rs6000.h: Ditto.
9907 * config/sparc/nm-sol2.h: Ditto.
9908 * darwin-nat-info.c: Ditto.
9909 * dfp.c: Ditto.
9910 * dfp.h: Ditto.
9911 * gdb-demangle.h: Ditto.
9912 * i386-darwin-nat.c: Ditto.
9913 * i386-darwin-tdep.c: Ditto.
9914 * linux-fork.h: Ditto.
9915 * m32c-tdep.c: Ditto.
9916 * microblaze-linux-tdep.c: Ditto.
9917 * microblaze-rom.c: Ditto.
9918 * microblaze-tdep.c: Ditto.
9919 * microblaze-tdep.h: Ditto.
9920 * mips-linux-tdep.h: Ditto.
9921 * ppc-ravenscar-thread.c: Ditto.
9922 * ppc-ravenscar-thread.h: Ditto.
9923 * prologue-value.c: Ditto.
9924 * prologue-value.h: Ditto.
9925 * ravenscar-thread.c: Ditto.
9926 * ravenscar-thread.h: Ditto.
9927 * sparc-ravenscar-thread.c: Ditto.
9928 * sparc-ravenscar-thread.h: Ditto.
9929 * tilegx-linux-tdep.c: Ditto.
9930 * unwind_stop_reasons.def: Ditto.
9931 * windows-nat.h: Ditto.
9932 * xtensa-linux-tdep.c: Ditto.
9933 * xtensa-xtregs.c: Ditto.
9934 * regformats/regdat.sh: Ditto.
9935 * regformats/regdef.h: Ditto.
9936
6c01dd94
PA
99372013-02-12 Pedro Alves <palves@redhat.com>
9938
9939 * break-catch-sig.c: Update copyright years.
9940
b65a2bd9
SCR
99412013-02-11 Siva Chandra Reddy <sivachandra@google.com>
9942
9943 Add support for a destructor for ui_out data and use it to
9944 provide a ui_out destructor.
9945 * ui-out.h: Declare the new ui_out destructor.
9946 (ui_out_impl): Add a field for data destructor in ui_out_impl.
9947 * ui-out.c (default_data_destroy): Add a default data destructor
9948 which does nothing.
9949 (default_ui_out_impl): Set the new data_destroy field to
9950 default_data_destroy
9951 (uo_data_destroy): Local function which invokes the data
9952 destructor if present.
9953 (clear_table): Local function which clears the table data of a
9954 ui_out object.
9955 (ui_out_destroy): Public function which frees a ui_out object.
9956 (ui_out_table_end): Use the new clear_table function.
9957 * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
9958 NULL.
9959 * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
9960 to NULL.
9961
c2792f5a
DE
99622013-02-11 Doug Evans <dje@google.com>
9963
9964 * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
9965 (printf_decfloat): New function. Broken out from ui_printf.
9966 Remove unnecessary code to shift the entire format string down.
9967 (printf_pointer): New function.
9968 (ui_printf): Code to print C strings, wide C strings, decfloats,
9969 and pointers moved to separate functions.
9970
d9e98382
SDJ
99712013-02-11 Sergio Durigan Junior <sergiodj@redhat.com>
9972
9973 * valops.c (value_assign): Handling bitfield offset in
9974 `lval_internalvar_component' case.
9975
4ff3ce77
DE
99762013-02-08 Doug Evans <dje@google.com>
9977
9978 * common/format.c (parse_format_string): Fix whitespace.
9979
901900c4
MGD
99802013-02-08 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
9981
9982 * stack.c (return_command): Work around uninitialized variable
9983 warning.
9984
b5dbc8d4
YZ
99852013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
9986
9987 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
9988 number of the registers from 36 to 34.
9989
51d66578
MS
99902013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
9991
9992 * NEWS: Mention new AArch64 native and target support.
9993
176b1c95
MS
99942013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
9995
9996 * MAINTAINERS (Write After Approval): Add myself.
9997
9d19df75
MS
99982013-02-08 Jim MacArthur <jim.macarthur@arm.com>
9999 Marcus Shawcroft <marcus.shawcroft@arm.com>
10000 Nigel Stephens <nigel.stephens@arm.com>
10001 Yufeng Zhang <yufeng.zhang@arm.com>
10002
10003 * aarch64-linux-nat.c: New file.
10004 * config/aarch64/linux.mh: New file.
10005 * configure.host: Add AArch64.
10006 * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
10007
7e1e0340
DE
100082013-02-07 Doug Evans <dje@google.com>
10009
10010 * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
10011 disassemble command.
10012
45e25a36
MS
100132013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
10014
10015 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
10016 set_gdbarch_fetch_tls_load_module_address.
10017
bbfdfe1c
DM
100182013-02-06 David S. Miller <davem@davemloft.net>
10019
10020 * sparc-tdep.c (sparc32_return_value): Handle writing return value when
10021 using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
10022 * value.c (struct_return_convention): New function.
10023 (using_struct_return): Implement in terms of struct_return_convention.
10024 * value.h (struct_return_convention): Declare.
10025 * stack.c (return_command): Allow successful overriding of the return
10026 value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
10027
bc9abe4a
TT
100282013-02-06 Tom Tromey <tromey@redhat.com>
10029
10030 * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
10031 outside of TRY_CATCH.
10032
134a2066
YQ
100332013-02-06 Yao Qi <yao@codesourcery.com>
10034
10035 * mi/mi-interp.c: Include "tracepoint.h".
10036 (mi_tsv_modified): Declare.
10037 (mi_tsv_created, mi_tsv_deleted): Update declaration.
10038 (mi_interpreter_init): Call observer_attach_tsv_modified.
10039 (mi_tsv_modified): New.
10040 (mi_tsv_created, mi_tsv_deleted): Update.
10041 * tracepoint.c (trace_variable_command): Call
10042 observer_notify_tsv_modified if the initial value of tsv is
10043 changed.
10044 (delete_trace_state_variable): Call
10045 observer_notify_tsv_deleted earlier.
10046 (trace_variable_command): Caller update.
10047 (create_tsv_from_upload): Likewise.
10048 * observer.sh: Declare "struct trace_state_variable".
10049
10050 * NEWS: Mention the new MI notification "=tsv-modified".
10051
59be2b6a
DE
100522013-02-05 Doug Evans <dje@google.com>
10053
10054 * completer.c (location_completer): Fix typo in comment.
10055
d30113d4
JK
100562013-02-05 Jan Kratochvil <jan.kratochvil@redhat.com>
10057
10058 * breakpoint.c (add_location_to_breakpoint): Insert the location with
10059 ADDRESS sorted.
10060
14ac654f
MS
100612013-02-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
10062
10063 * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
10064 Refactor if statement to avoid trailing || operator.
10065
543bf33d
AT
100662013-02-05 Andreas Tobler <andreast@fgznet.ch>
10067
10068 * NEWS: Add PowerPC FreeBSD as a new native configuration.
10069
dc18f110
AT
100702013-02-04 Andreas Tobler <andreast@fgznet.ch>
10071
10072 * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
10073 * configure.host: Add powerpc*-*-freebsd* target.
10074 * configure.tgt: Add target info for powerpc*-*-freebsd*.
10075 * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
10076 * config/powerpc/fbsd.mh: New file.
10077
b3ac9c77
SDJ
100782013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
10079 Denys Vlasenko <dvlasenk@redhat.com>
10080 Pedro Alves <palves@redhat.com>
10081
10082 * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
10083 (struct elf_internal_linux_prpsinfo): Forward declare.
10084 * gdbarch.h, gdbarch.c: Regenerate.
10085 * linux-tdep.c: Include `cli/cli-utils.h'.
10086 (linux_fill_prpsinfo): New function.
10087 (linux_make_corefile_notes): Use linux_fill_prpsinfo. If there's
10088 an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
10089 elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
10090 depending on gdbarch pointer bitness.
10091 * ppc-linux-tdep.c: Include elf-bfd.h.
10092 (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
10093 on 32-bit.
10094
176eb98c
MS
100952013-02-04 Jim MacArthur <jim.macarthur@arm.com>
10096 Marcus Shawcroft <marcus.shawcroft@arm.com>
10097 Nigel Stephens <nigel.stephens@arm.com>
10098 Yufeng Zhang <yufeng.zhang@arm.com>
10099
10100 * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
10101
cf0dbd6f
MS
101022013-02-04 Jim MacArthur <jim.macarthur@arm.com>
10103 Marcus Shawcroft <marcus.shawcroft@arm.com>
10104 Nigel Stephens <nigel.stephens@arm.com>
10105 Yufeng Zhang <yufeng.zhang@arm.com>
10106
10107 * aarch64-newlib-tdep.c: New file.
10108 * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
10109 aarch64*-*-elf.
10110 * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
10111 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
10112 (ALLDEPFILES): Add aarch64-newlib-tdep.c.
10113 * osabi.c (gdb_osabi_names): Add "Newlib".
10114
1ae3db19
MS
101152013-02-04 Jim MacArthur <jim.macarthur@arm.com>
10116 Marcus Shawcroft <marcus.shawcroft@arm.com>
10117 Nigel Stephens <nigel.stephens@arm.com>
10118 Yufeng Zhang <yufeng.zhang@arm.com>
10119
10120 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
10121 (ALLDEPFILES): Add aarch64-linux-tdep.c.
10122 * aarch64-linux-tdep.c: New file.
10123 * aarch64-linux-tdep.h: New file.
10124 * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
10125 * configure.tgt: Add aarch64-none-linux-gnu.
10126
07b287a0
MS
101272013-02-04 Jim MacArthur <jim.macarthur@arm.com>
10128 Marcus Shawcroft <marcus.shawcroft@arm.com>
10129 Nigel Stephens <nigel.stephens@arm.com>
10130 Yufeng Zhang <yufeng.zhang@arm.com>
10131
10132 * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
10133 (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
10134 (ALLDEPFILES): Add aarch64-tdep.c.
10135 * aarch64-tdep.c: New file.
10136 * aarch64-tdep.h: New file.
10137 * configure.tgt: Add AArch64.
10138 * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
10139 (aarch64-expedite): New definition.
10140 * features/aarch64-core.xml: New file.
10141 * features/aarch64-fpu.xml: New file.
10142 * features/aarch64-without-fpu.c: New file (generated).
10143 * features/aarch64-without-fpu.xml: New file.
10144 * features/aarch64.c: New file (generated).
10145 * features/aarch64.xml: New file.
10146 * regformats/aarch64-without-fpu.dat: New file (generated).
10147 * regformats/aarch64.dat: New file (generated).
10148
0f1b18ab
JK
101492013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10150
10151 * contrib/expect-read1.c: New file.
10152 * contrib/expect-read1.sh: New file.
10153
233d95b5
JK
101542013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10155
10156 * dwarf2read.c (file_file_name): New function with code from
10157 file_full_name.
10158 (file_full_name): Move most of the code to file_file_name.
10159 (macro_start_file): Rename variable full_name to file_name and use
10160 file_file_name for it. Add comp_dir parameter to new_macro_table.
10161 * macrocmd.c (show_pp_source_pos): New variable fullname. Replace any
10162 macro_source_file->filename access by macro_source_fullname call.
10163 * macroscope.c (_initialize_macroscope): Update the new_macro_table
10164 caller.
10165 * macrotab.c (struct macro_table): New field comp_dir.
10166 (macro_include): New variables link_fullname and source_fullname.
10167 Replace any macro_source_file->filename access by macro_source_fullname
10168 call.
10169 (macro_lookup_inclusion): Remove the partial filenames checking code.
10170 (check_for_redefinition): New variables source_fullname and
10171 found_key_fullname. Replace any macro_source_file->filename access by
10172 macro_source_fullname call.
10173 (macro_undef): New variables source_fullname and key_fullname. Replace
10174 any macro_source_file->filename access by macro_source_fullname call.
10175 (macro_lookup_definition): New variables retval and source_fullname.
10176 Replace any macro_source_file->filename access by macro_source_fullname
10177 call.
10178 (foreach_macro): New variable key_fullname. Replace any
10179 macro_source_file->filename access by macro_source_fullname call.
10180 (foreach_macro_in_scope): New variable datum_fullname. Replace any
10181 macro_source_file->filename access by macro_source_fullname call.
10182 (new_macro_table): Add parameter comp_dir. Initialize T with it.
10183 (macro_source_fullname): New function.
10184 * macrotab.h (struct macro_source_file): Extent the filename field
10185 comment.
10186 (new_macro_table): New parameter comp_dir, add a comment for it.
10187 (macro_source_fullname): new declaration.
10188
da235a7c
JK
101892013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10190
10191 * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
10192 this_real_name to outer block. Use it also for
10193 compare_filenames_for_search.
10194 (dw2_expand_symtabs_matching): New variable this_real_name. Use it
10195 with dw2_get_real_path for file_matcher, considering also
10196 BASENAMES_MAY_DIFFER.
10197 (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
10198
fbd9ab74
JK
101992013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10200
10201 * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
10202 to the file_matcher parameter. Pass 0 to it.
10203 (dwarf2_create_include_psymtab): Copy also DIRNAME.
10204 * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
10205 NULL psymtab_to_fullname result.
10206 (psymtab_to_fullname): Remove variable r. Never return NULL, assemble
10207 an expected filename instead.
10208 (expand_symtabs_matching_via_partial): Add basenames parameter to the
10209 file_matcher parameter. Call also psymtab_to_fullname, after newly
10210 considering BASENAMES_MAY_DIFFER.
10211 * source.c (rewrite_source_path): Remove static.
10212 * source.h (rewrite_source_path): New declaration.
10213 * symfile.h (struct quick_symbol_functions): Add basenames parameter to
10214 the expand_symtabs_matching field. Comment it.
10215 * symtab.c (file_matches): New function comment. Add parameter
10216 basenames, implement it.
10217 (search_symbols_file_matches): Add basenames parameter. Update the
10218 file_matches caller.
10219 (search_symbols): Match FILES also against symtab_to_fullname.
10220 Optimize it for BASENAMES_MAY_DIFFER.
10221
56d397a3
JK
102222013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10223
10224 * source.c (print_source_lines_base): Print for TUI also "fullname".
10225 * tui/tui-data.c (init_content_element): Change tui_locator_element
10226 field to full_name.
10227 * tui/tui-data.h (struct tui_locator_element): Likewise.
10228 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
10229 tui_update_locator_filename calls to tui_update_locator_fullname.
10230 Replace symtab->filename refererence by symtab_to_fullname call.
10231 * tui/tui-out.c (tui_field_string): Check for "fullname" now.
10232 * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
10233 field to full_name. Replace symtab->filename refererence by
10234 symtab_to_fullname call.
10235 (tui_show_symtab_source): Rename parameter to fullname. Change
10236 tui_locator_element field to full_name.
10237 * tui/tui-stack.c: Include source.h.
10238 (tui_set_locator_filename): Rename the declaration to ...
10239 (tui_set_locator_fullname): ... here. Rename its parameter to
10240 fullname, updates its comment.
10241 (tui_set_locator_info): Rename its parameter to fullname.
10242 (tui_set_locator_filename): Rename the definition to ...
10243 (tui_set_locator_fullname): ... here. Rename its parameter to
10244 fullname, updates its comment. Change tui_locator_element field to
10245 full_name.
10246 (tui_set_locator_info): Rename its parameter to fullname.
10247 (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
10248 (tui_update_locator_filename): Rename to ...
10249 (tui_update_locator_fullname): ... here. Rename callee to
10250 tui_set_locator_fullname.
10251 (tui_show_frame_info): Replace symtab->filename refererence by
10252 symtab_to_fullname call.
10253 * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
10254 (tui_update_locator_fullname): ... here.
10255 * tui/tui-winsource.c (tui_display_main): Rename the callee to
10256 tui_update_locator_fullname. Replace symtab->filename refererence by
10257 symtab_to_fullname call.
10258 * tui/tui.c (tui_show_source): Rename its parameter to fullname.
10259 Rename the callee to tui_update_locator_fullname.
10260 * tui/tui.h (tui_show_source): Rename its parameter to fullname.
10261
05cba821
JK
102622013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10263
10264 * ada-lang.c (user_select_syms): Replace symtab->filename refererences
10265 by symtab_to_filename_for_display calls.
10266 * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
10267 (clear_command): New variable sal_fullname, initialize it. Replace
10268 compare_filenames_for_search by filename_cmp with sal_fullname.
10269 (say_where, update_static_tracepoint): Replace symtab->filename
10270 refererences by symtab_to_filename_for_display calls.
10271 * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
10272 Likewise.
10273 * dwarf2read.c: Include source.h.
10274 (fixup_go_packaging): Replace symtab->filename refererences by
10275 symtab_to_filename_for_display calls.
10276 * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
10277 Replace symtab->filename refererences by symtab_to_filename_for_display
10278 calls.
10279 (create_sals_line_offset, convert_linespec_to_sals): New variable
10280 fullname, initialize it, replace symtab->filename reference by the
10281 variable.
10282 * linux-fork.c: Include source.h.
10283 (info_checkpoints_command): Replace symtab->filename refererences by
10284 symtab_to_filename_for_display calls.
10285 * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
10286 by symtab_to_filename_for_display calls.
10287 * mdebugread.c: Include source.h.
10288 (psymtab_to_symtab_1): Replace symtab->filename refererences by
10289 symtab_to_filename_for_display calls.
10290 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
10291 (mi_cmd_file_list_exec_source_files): Likewise.
10292 * printcmd.c: Include source.h.
10293 (build_address_symbolic): Replace symtab->filename refererences by
10294 symtab_to_filename_for_display calls.
10295 * psymtab.c (partial_map_symtabs_matching_filename)
10296 (read_psymtabs_with_fullname): Call compare_filenames_for_search also
10297 with psymtab_to_fullname.
10298 * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
10299 by symtab_to_filename_for_display calls.
10300 (stpy_get_filename): New variable filename, initialize it, use instead
10301 of symtab->filename refererences.
10302 (salpy_str): Make variable filename const char *. Replace
10303 symtab->filename refererences by symtab_to_filename_for_display calls.
10304 * skip.c: Include source.h and filenames.h.
10305 (skip_file_command): Remove const from the symtab variable. Replace
10306 symtab->filename refererences by symtab_to_fullname call.
10307 (function_name_is_marked_for_skip): New variables searched_for_fullname
10308 and fullname. Use them to search also with symtab's fullname.
10309 * source.c (find_source_lines): Replace symtab->filename refererences
10310 by symtab_to_filename_for_display calls.
10311 (print_source_lines_base): New variable filename, use it instead of
10312 symtab->filename. Replace symtab->filename refererences by
10313 symtab_to_filename_for_display calls.
10314 (line_info, forward_search_command): Replace symtab->filename
10315 refererences by symtab_to_filename_for_display calls.
10316 (reverse_search_command): Replace symtab->filename refererences by
10317 symtab_to_filename_for_display calls. New variable filename for it.
10318 * stack.c (frame_info): Likewise.
10319 * symmisc.c: Include source.h.
10320 (dump_objfile, dump_symtab_1, maintenance_print_symbols)
10321 (maintenance_info_symtabs): Replace symtab->filename refererences by
10322 symtab_to_filename_for_display calls.
10323 * symtab.c (iterate_over_some_symtabs): Call
10324 compare_filenames_for_search also with symtab_to_fullname.
10325 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
10326 symtab->filename refererences by symtab_to_filename_for_display calls.
10327 (find_line_symtab): Replace symtab->filename refererences by
10328 symtab_to_filename_for_display calls.
10329 (file_matches): Replace filename_cmp by compare_filenames_for_search.
10330 (print_symbol_info): Make the last parameter const char *. New
10331 variable s_filename. Use it in the function.
10332 (symtab_symbol_info): Make the last_filename variable const char *.
10333 Replace symtab->filename refererences by symtab_to_filename_for_display
10334 calls.
10335 (rbreak_command): New variable fullname. Use it. Replace
10336 symtab->filename refererence by symtab_to_filename_for_display call.
10337 * tracepoint.c (set_traceframe_context, trace_find_line_command)
10338 (print_one_static_tracepoint_marker): Replace symtab->filename
10339 refererences by symtab_to_filename_for_display calls.
10340 * tui/tui-source.c (tui_set_source_content): New variables filename and
10341 s_filename. Replace symtab->filename refererences by this variable.
10342 Replace other symtab->filename refererences by
10343 symtab_to_filename_for_display calls.
10344
1b56eb55
JK
103452013-02-03 Eldar Gaynetdinov <hal9000ed2k@gmail.com>
10346 Jan Kratochvil <jan.kratochvil@redhat.com>
10347
10348 Add a new variable that controls a way in which filenames are
10349 displayed.
10350 * NEWS (set filename-display): New entry.
10351 * source.c (filename_display_basename, filename_display_relative)
10352 (filename_display_absolute, filename_display_kind_names)
10353 (filename_display_string, show_filename_display_string)
10354 (symtab_to_filename_for_display): New.
10355 (_initialize_source): Added initialization of 'filename-display'
10356 variable.
10357 * source.h (symtab_to_filename_for_display): Added declaration.
10358 * stack.c (print_frame): Added new variable and calling of a new
10359 function and condition with this variable. Changed third argument of
10360 calling of a function.
10361
aa079c93
JK
103622013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10363
10364 * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
10365 Rename field reference filename to fullname.
10366 * tui/tui-data.h (struct tui_source_info): Rename field filename to
10367 fullname. New comment for it.
10368 * tui/tui-source.c (tui_set_source_content): Rename field reference
10369 filename to fullname. Initialize field by symtab_to_fullname now.
10370 * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
10371 reference filename to fullname. Use symtab_to_fullname during
10372 comparison.
10373
652a8996
JK
103742013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10375
10376 Code cleanup.
10377 * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
10378 (dw2_expand_symtabs_with_fullname): ... here. Rename parameter
10379 filename to fullname. Rename variable this_name to this_fullname.
10380 Lowercase FILENAME_CMP call.
10381 (dw2_find_symbol_file): New comment for the returned string.
10382 (dwarf2_gdb_index_functions): Rename the function to
10383 dw2_expand_symtabs_with_fullname.
10384 * psymtab.c (read_psymtabs_with_filename): Rename to ...
10385 (read_psymtabs_with_fullname): ... here. Rename parameter filename to
10386 fullname.
10387 (psym_functions): Rename the function to read_psymtabs_with_fullname.
10388 * symfile.h (struct quick_symbol_functions): Rename field
10389 expand_symtabs_with_filename to expand_symtabs_with_fullname and its
10390 parameter filename to fullname. Document returned string meaning for
10391 find_symbol_file.
10392 * symtab.c (find_line_symtab): Rename the called function to
10393 expand_symtabs_with_fullname.
10394
af529f8f
JK
103952013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10396
10397 Code cleanup.
10398 * breakpoint.c (clear_command): Remove variable is_abs, unify the
10399 call of filename_cmp with compare_filenames_for_search.
10400 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
10401 is_abs, unify the call of FILENAME_CMP with
10402 compare_filenames_for_search. New gdb_asserts for real_path and name.
10403 Unify the call of compare_filenames_for_search with FILENAME_CMP.
10404 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
10405 * symfile.h (struct quick_symbol_functions): Extend the comment for
10406 map_symtabs_matching_filename.
10407 * symtab.c (compare_filenames_for_search): Remove the function comment
10408 relative path requirement. Handle absolute filenames, with a comment.
10409 (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
10410 FILENAME_CMP with compare_filenames_for_search. New gdb_asserts for
10411 real_path and name. Unify the call of compare_filenames_for_search
10412 with FILENAME_CMP.
10413 (iterate_over_symtabs): New gdb_assert on REAL_PATH.
10414
2f202fde
JK
104152013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10416
10417 Code cleanup.
10418 * breakpoint.c (print_breakpoint_location): Replace bp_location field
10419 source_file references by symtab field references. Remove variables
10420 sal and fullname.
10421 (momentary_breakpoint_from_master, add_location_to_breakpoint):
10422 (clear_command, say_where): Replace bp_location field source_file
10423 references by symtab field references.
10424 (bp_location_dtor): Remove the source_file reference.
10425 (update_static_tracepoint): Replace bp_location field source_file
10426 references by symtab field references.
10427 (breakpoint_free_objfile): New function.
10428 * breakpoint.h (struct bp_location): Extend the comment for line_number.
10429 Replace the field source_file by field symtab, extend its comment.
10430 (breakpoint_free_objfile): New declaration.
10431 * objfiles.c (free_objfile): Call breakpoint_free_objfile.
10432 * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
10433 field source_file references by symtab field references.
10434
f5b95b50
JK
104352013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10436
10437 Replace xfullpath calls by gdb_realpath calls.
10438 * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
10439 function comment.
10440 * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
10441 Remove it from the iterate_over_some_symtabs call.
10442 (dw2_map_symtabs_matching_filename): Remove parameter full_path.
10443 Remove it from the dw2_map_expand_apply calls, remove a block handling
10444 it.
10445 * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
10446 Remove it from the iterate_over_some_symtabs call.
10447 (partial_map_symtabs_matching_filename): Remove parameter full_path.
10448 Remove it from the partial_map_expand_apply calls, remove a block
10449 handling it. Drop gdb_realpath call and cleanups from the real_path
10450 handling.
10451 * source.c (openp): Drop the comment part about xfullpath. Replace
10452 xfullpath calls by gdb_realpath calls.
10453 (find_and_open_source): Replace xfullpath call by gdb_realpath call.
10454 * symfile.h (struct quick_symbol_functions): Remove parameter full_path
10455 from method map_symtabs_matching_filename and its comment.
10456 * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
10457 gdb_realpath call.
10458 * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
10459 remove it also from the function comment, remove a block handling it.
10460 Drop gdb_realpath call and cleanups from the real_path handling.
10461 (iterate_over_symtabs): Drop variable full_path and its use.
10462 * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
10463 * utils.c (xfullpath): Remove.
10464 * utils.h (xfullpath): Remove.
10465
d78489bf
AT
104662013-02-01 Andreas Tobler <andreast@fgznet.ch>
10467
10468 * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
10469 (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
10470 (ALLDEPFILES): Add ppc64-tdep.c.
10471 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
10472 ppc64-tdep.o to gdb_target_obs.
10473 * ppc64-tdep.h: New file.
10474 * ppc64-tdep.c: New file.
10475 (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
10476 ppc-linux-tdep.c to here.
10477 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
10478 (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
10479 (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
10480 (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
10481 from ppc-linux-tdep.c to here.
10482 (ppc64_convert_from_func_ptr_addr): Rename from
10483 ppc64_linux_convert_from_func_ptr_addr to
10484 ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
10485 here.
10486 * rs6000-tdep.c:
10487 (read_insn): Move from ppc-linux-tdep.c to here.
10488 (insns_match_pattern, insn_d_field, insn_ds_field): Move
10489 from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
10490 * ppc-linux-tdep.c: Include ppc64-tdep.h.
10491 Removed above functions.
10492 (ppc_linux_init_abi): Adjust.
10493
8db60374
AR
104942013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
10495
10496 * ada-valprint.c (ada_print_floating): Remove unused 'len'.
10497
f2e5f4ce
AR
104982013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
10499
10500 * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
10501
c1f7d745
PA
105022013-02-01 Pedro Alves <palves@redhat.com>
10503
10504 * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
10505 * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
10506
8a92335b
JK
105072013-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10508
10509 * elfread.c (elf_symfile_read): Limit separate debug info additions to
10510 files with no separate debug info.
10511 * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
10512 * symfile.c (read_symbols): Call find_separate_debug_file_in_section
10513 only for files with no separate debug info.
10514
8eacb197
TT
105152013-01-31 Tom Tromey <tromey@redhat.com>
10516
10517 * jit.c (jit_program_space_data): Rename from jit_inferior_data;
10518 change type.
10519 (struct jit_program_space_data): Rename from jit_inferior_data.
10520 Update comments.
10521 (get_jit_program_space_data): Rename from get_jit_inferior_data.
10522 Change return type. Attach data to program space.
10523 (jit_program_space_data_cleanup): Rename from
10524 jit_inferior_data_cleanup; change argument type.
10525 (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
10526 change type.
10527 (jit_register_code): Update.
10528 (jit_update_inferior_cache): Remove.
10529 (jit_breakpoint_deleted): Get jit data from the location's program
10530 space.
10531 (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
10532 'ps_data', change type.
10533 (jit_inferior_init, jit_breakpoint_re_set_internal)
10534 (jit_event_handler): Update.
10535 (free_objfile_data): Get data from objfile's program space.
10536 (_initialize_jit): Update.
10537
f25c0135
TT
105382013-01-31 Tom Tromey <tromey@redhat.com>
10539
10540 PR gdb/13987:
10541 * jit.c (struct jit_inferior_data) <cached_code_address,
10542 jit_breakpoint>: New fields.
10543 (jit_breakpoint_re_set_internal): Fix logging. Only create
10544 breakpoint if cached address has changed.
10545 (jit_update_inferior_cache, jit_breakpoint_deleted): New
10546 functions.
10547 (_initialize_jit): Register breakpoint deleted observer.
10548
974a734b
AR
105492013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10550
10551 * infrun.c (handle_syscall_event): Remove unused gdbarch.
10552 (save_infcall_suspend_state): Ifdef out unused inf.
10553 (restore_infcall_suspend_state): Ifdef out unused inf.
10554 * jit.c (jit_register_code): Remove unused i, b, inf_data.
10555 (jit_frame_sniffer): Remove unused inf_data.
10556
df54f8eb
AR
105572013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10558
10559 * c-exp.y (classify_inner_name): Remove unused type.
10560 * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
10561 in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
10562 need_escape.
10563 (c_get_string): Remove unused kind.
10564 * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
10565
5799c0b9
AR
105662013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10567
10568 * charset.c (intermediate_encoding): Remove unused i.
10569 * completer.c (signal_completer): Remove unused i.
10570 * continuations.c (discard_my_continuations_1): Remove unused
10571 continuation_ptr.
10572 * corelow.c (core_close): Remove unuseD name.
10573 (get_core_siginfo): Remove unused pid.
10574 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
10575 i, cps.
10576 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
10577 (loclist_describe_location): Remove unused first.
10578 * event-top.c (command_line_handler): Remove unused got_eof.
10579 * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
10580 (resize_section_table): Remove unused old_value.
10581 * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
10582 * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
10583 * i386-tdep.c (i386_process_record): Remove unused rex.
10584 * infcmd.c (get_return_value): Remove unused uiout.
10585 * jv-lang.c (type_from_class): Remove unused is_array.
10586 * jv-valprint.c (java_val_print): Remove unused i.
10587 * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
10588 * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
10589 * m2-typeprint.c (m2_print_type): Remove unused code.
10590 * macroexp.c (get_character_constant): Remove unused body_start.
10591 (macro_stringify): Remove unused result.
10592 * objc-lang.c (find_methods): Remove unused gdbarch.
10593 * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
10594 * regcache.c (regcache_cooked_read): Remove unused gdbarch.
10595 * stack.c (print_frame_args): Remove unused summary.
10596 * thread.c (thread_apply_command): Remove unused p.
10597 * valarith.c (value_x_unop): Remove unused mangle_ptr.
10598 * valops.c (search_struct_method): Remove unused skip.
10599 * valprint.c (generic_val_print): Remove unused byte_order.
10600 * varobj.c (varobj_update): Remove unused changed.
10601 * cli/cli-cmds.c (complete_command): Remove unused next_item.
10602 (alias_command): Remove unused c.
10603 * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
10604 * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
10605 format.
10606 (mi_cmd_data_write_memory): Remove unused word_format.
10607 (mi_cmd_data_write_memory_bytes): Remove unused r.
10608 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
10609 p_start, p_end.
10610 * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
10611 * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
10612 line_width.
10613
c656bca5
AR
106142013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10615
10616 * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
10617 * symtab.c (iterate_over_symtabs): Remove unused s.
10618 (find_pc_sect_symtab): Remove unused pspAce.
10619 (find_pc_sect_line): Remove unused alt_symtab.
10620 (find_pcs_for_symtab_line): Remove unused ix, previous_function.
10621 (completion_list_add_name): Remove unused newsize.
10622
7078baeb
TT
106232013-01-31 Tom Tromey <tromey@redhat.com>
10624
10625 PR c++/14998:
10626 * dwarf2read.c (read_tag_ptr_to_member_type): Handle
10627 TYPE_CODE_FUNC.
10628
c2e8b827
AR
106292013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10630
10631 * target.c (target_read_string): Remove unused origlen.
10632
0e43993a
AR
106332013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10634
10635 * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
10636 * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
10637 * ax-general.c (ax_print): Remove unused is_float.
10638 * blockframe.c (block_innermost_frame): Remove unused start, end.
10639 * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
10640
765a97ab
AR
106412013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10642
10643 * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
10644 (svr4_read_so_list): Remove unused lmo.
10645 * solib-target.c (solib_target_relocate_section_addresses): Remove
10646 unused flags.
10647
a99dad3d
TT
106482013-01-30 Tom Tromey <tromey@redhat.com>
10649
10650 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
10651
3bff1ecd
TT
106522013-01-30 Tom Tromey <tromey@redhat.com>
10653
10654 * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
10655 * utils.c (gnu_debuglink_crc32): Remove.
10656 * utils.h (gnu_debuglink_crc32): Don't declare.
10657
7d455152
TT
106582013-01-30 Tom Tromey <tromey@redhat.com>
10659
10660 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
10661 (read_structure_type, read_enumeration_type): Remove cast.
10662
abee88f2
TT
106632013-01-30 Tom Tromey <tromey@redhat.com>
10664
10665 * dwarf2read.c (read_namespace_type): Remove cast.
10666 (read_typedef): Likewise.
10667
8d9878a4
TT
106682013-01-29 Tom Tromey <tromey@redhat.com>
10669
10670 * dwarf2read.c (free_dwo_file): Remove assert.
10671
a543d2a9
TT
106722013-01-29 Tom Tromey <tromey@redhat.com>
10673
10674 * value.c (deprecated_set_value_modifiable): Remove.
10675 * value.h (deprecated_set_value_modifiable): Remove.
10676
bed911e5
DE
106772013-01-28 Doug Evans <dje@google.com>
10678
10679 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
10680 to addresses from dwo files.
10681
28c64fc2
SCR
106822013-01-25 Siva Chandra Reddy <sivachandra@google.com>
10683
10684 * valops.c (find_overload_match): Remove unused argument 'lax'.
10685 * value.h: Remove unused argument 'lax' from the declaration of
10686 find_overload_match.
10687 * eval.c (value_subexp_standard): Do not pass a 'lax' argument
10688 to find_overload_match.
10689 * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
10690 argument to find_overload_match.
10691
4d4ec4e5
TT
106922013-01-25 Tom Tromey <tromey@redhat.com>
10693
10694 * dwarf2read.c (processing_has_namespace_info): Remove.
10695 (struct dwarf2_cu) <processing_has_namespace_info>: New field.
10696 (process_die, read_func_scope, dwarf2_start_symtab)
10697 (new_symbol_full): Update.
10698
195a3f6c
TT
106992013-01-25 Tom Tromey <tromey@redhat.com>
10700
10701 * cp-namespace.c (cp_set_block_scope): Remove.
10702 * cp-support.h (cp_set_block_scope): Remove.
10703 * dbxread.c: Include block.h.
10704 (cp_set_block_scope): New function.
10705 (process_one_symbol): Update.
10706 * dwarf2read.c (read_func_scope): Use block_set_scope.
10707
8ba0730a
PA
107082013-01-25 Pedro Alves <palves@redhat.com>
10709
10710 * remote.c (add_current_inferior_and_thread): Tweak comment.
10711
12aaed36
TT
107122013-01-25 Tom Tromey <tromey@redhat.com>
10713
10714 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
10715 (cp_add_using_directive): Add 'copy_names' argument.
10716 * cp-support.h (cp_add_using_directive): Update.
10717 (struct using_direct) <import_src, import_dest, alias,
10718 declaration>: Now const.
10719 * dwarf2read.c (read_import_statement): Use obconcat.
10720 Don't copy names passed to cp_add_using_directive.
10721
7fc75ca7
TT
107222013-01-25 Tom Tromey <tromey@redhat.com>
10723
10724 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
10725
3405876a
PA
107262013-01-25 Pedro Alves <palves@redhat.com>
10727
10728 * remote.c (stop_reply_extract_thread): New.
10729 (add_current_inferior_and_thread): New parameter 'wait_status'.
10730 Handle it.
10731 (remote_start_remote): Pass wait status to
10732 add_current_inferior_and_thread.
10733 (extended_remote_run): Update comment.
10734 (extended_remote_create_inferior_1): Pass wait status to
10735 add_current_inferior_and_thread.
10736
8954db33
AB
107372013-01-25 Andrew Burgess <aburgess@broadcom.com>
10738 Ulrich Weigand <uweigand@de.ibm.com>
10739
10740 * valarith.c (value_vector_widen): New function for replicating a
10741 scalar into a vector.
10742 (value_binop): Use value_vector_widen to widen scalar to vector
10743 rather than casting, this better matches gcc C behaviour.
10744 * valops.c (value_casst): Update logic for casting between vector
10745 types, and for casting from scalar to vector, try to match gcc C
10746 behaviour.
10747 * value.h (value_vector_widen): Declare.
10748 * opencl-lang.c (opencl_value_cast): New opencl specific casting
10749 function, handle special case for casting scalar to vector.
10750 (opencl_relop): Use opencl_value_cast.
10751 (evaluate_subexp_opencl): Use opencl_value_cast instead of
10752 value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
10753 in order to use opencl_value_cast.
10754
843b20dc
YQ
107552013-01-25 Yao Qi <yao@codesourcery.com>
10756
10757 * event-loop.c: Include "queue.h".
10758 (gdb_event_p): New typedef.
10759 (DECLARE_QUEUE_P): Use.
10760 (DEFINE_QUEUE_P): Use.
10761 (async_queue_event): Remove.
10762 (gdb_event_xfree): New.
10763 (initialize_event_loop): New.
10764 (process_event): Use QUEUE macros.
10765 (event_queue): Remove.
10766 (gdb_wait_for_event): Caller update.
10767 (check_async_event_handlers): Likewise.
10768 (poll_timers): Likewise.
10769 * event-loop.h (initialize_event_loop): Declare.
10770 * event-loop.c (gdb_event_xfree): New.
10771 * top.c (gdb_init): Call initialize_event_loop.
10772
20ad8856
YQ
107732013-01-25 Yao Qi <yao@codesourcery.com>
10774
10775 * event-loop.c (async_queue_event): Remove one parameter
10776 'position'. Remove code handling 'position' == TAIL.
10777 (gdb_wait_for_event): Caller update.
10778 (check_async_event_handlers): Caller update.
10779 (poll_timers): Caller update.
10780 * event-loop.h (enum queue_position): Remove.
10781
3bbbe775
MK
107822013-01-25 Maxim Kuvyrkov <maxim@kugelworks.com>
10783
10784 * MAINTAINERS: Update my email.
10785
a87d9ac4
YQ
107862013-01-25 Yao Qi <yao@codesourcery.com>
10787
10788 * main.c (print_gdb_help): Remove "--epoch" from the help
10789 message.
10790
2077afdd
TD
107912013-01-24 Ulrich Weigand  <uweigand@de.ibm.com>
10792
10793 * symtab.c (skip_prologue_using_sal): Consider a file
10794 change the same as an increased line number
10795
63da4037
TD
107962013-01-24 Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
10797
30e8ee25 10798 * MAINTAINERS (Write After Approval): Add myself to the list.
63da4037 10799
45e6c716
TT
108002013-01-24 Tom Tromey <tromey@redhat.com>
10801
10802 * ada-lang.h (ada_decode_symbol): Make return type const.
10803 * ada-lang.c (ada_decode_symbol): Likewise.
10804
b1ae631a
DE
108052013-01-23 Doug Evans <dje@google.com>
10806
10807 * linespec.c (find_linespec_symbols): Make static.
10808
55a78401
SDJ
108092013-01-23 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
10810
10811 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
10812 type on float conversion for complex type.
10813
bea883fd
SCR
108142013-01-23 Siva Chandra Reddy <sivachandra@google.com>
10815
10816 Add a new class gdb.Architecture which exposes GDB's
10817 internal representation of architecture via GDB Python API.
10818 * Makefile.in: Add entries corresponding to the new file
10819 python/py-arch.c.
10820 * NEWS (Python Scripting): Add entries for the new class
10821 gdb.Architecture and the new method gdb.Frame.architecture.
10822 * python/py-arch.c: Implement gdb.Architecture class.
10823 * python/py-frame.c (frapy_arch): Implement the method
10824 gdb.Frame.architecture().
10825 (frame_object_methods): Add 'architecture' to the method table.
10826 * python/python-internal.h: Add declarations of new utility
10827 functions.
10828 * python/python.c (_initialize_python): Initialize
10829 gdb.Architecture class.
10830
796a7ff8
DE
108312013-01-23 Doug Evans <dje@google.com>
10832
10833 Work around binutils/15021.
10834 * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
10835 type_unit_group out of union s. All uses updated.
10836 (read_index_from_section): Watch for index version 8.
10837 (follow_die_sig): If using .gdb_index version <= 7, record the TU as
10838 an imported symtab.
10839 (write_psymtabs_to_index): Increment version number to 8.
10840
0928e93d
PA
108412013-01-22 Pedro Alves <palves@redhat.com>
10842
10843 * annotate.c (breakpoint_changed): Skip if breakpoint is not
10844 user-visible.
10845
9c97429f
PA
108462013-01-22 Pedro Alves <palves@redhat.com>
10847
10848 * annotate.c (annotate_breakpoints_changed): Rename to ...
10849 (annotate_breakpoints_invalid): ... this. Make static.
10850 (breakpoint_changed): Adjust.
10851 (_initialize_annotate): Always install the observers. Install a
10852 "breakpoint_created" observer.
10853 * annotate.h (annotate_breakpoints_changed): Delete declaration.
10854 * breakpoint.c (set_breakpoint_condition)
10855 (breakpoint_set_commands, do_map_commands_command)
10856 (init_raw_breakpoint, clear_command, set_ignore_count)
10857 (enable_breakpoint_disp): No longer call
10858 annotate_breakpoints_changed.
10859
bd00c694
PA
108602013-01-22 Pedro Alves <palves@redhat.com>
10861
10862 * annotate.c: Include "inferior.h".
10863 (frames_invalid_emitted)
10864 (breakpoints_invalid_emitted): New globals.
10865 (async_background_execution_p): New function.
10866 (annotate_breakpoints_changed, annotate_frames_invalid): Skip
10867 emitting the annotation if it has already been emitted.
10868 (annotate_display_prompt): New function.
10869 * annotate.h (annotate_display_prompt): New declaration.
10870 * event-top.c: Include annotate.h.
10871 (display_gdb_prompt): Call annotate_display_prompt.
10872
187d10dd
PA
108732013-01-22 Pedro Alves <palves@redhat.com>
10874
10875 * annotate.c (ignore_count_changed): Delete.
10876 (annotate_breakpoints_changed): Don't clear ignore_count_changed.
10877 (annotate_ignore_count_change): Delete.
10878 (annotate_stopped): Don't emit a delayed breakpoints-changed
10879 annotation.
10880 * annotate.h (annotate_ignore_count_change): Delete.
10881 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
10882 annotate_ignore_count_change.
10883
d84cf7eb
TT
108842013-01-22 Tom Tromey <tromey@redhat.com>
10885
10886 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
10887 require_rvalue for a register location.
10888
8f1d5693
MK
108892013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
10890
10891 * breakpoint.c (print_one_breakpoint_location): Add MI
10892 field 'thread-groups' when printing a breakpoint.
10893 (output_thread_groups): New function.
10894
aa6199c6
SCR
108952013-01-21 Siva Chandra Reddy <sivachandra@google.com>
10896
10897 * python/lib/gdb/commands/explore.py
10898 (CompoundExplorer.explore_expr): Correct the name of a method
10899 being invoked.
10900 (ExploreTypeCommand.invoke): Add a missing 'return'.
10901
d2afef13
TT
109022013-01-21 Tom Tromey <tromey@redhat.com>
10903
10904 * gdb_obstack.h (obconcat): Move declaration here, from...
10905 * symfile.h (obconcat): ... here.
10906 * gdb_obstack.c: New file.
10907 (obconcat): Move from...
10908 * symfile.c (obconcat): ... here.
10909 * Makefile.in (SFILES): Add gdb_obstack.c.
10910 (COMMON_OBS): Add gdb_obstack.o.
10911
10f0c4bb
TT
109122013-01-21 Tom Tromey <tromey@redhat.com>
10913
10914 * symfile.h (obsavestring): Don't declare.
10915 * symfile.c (obsavestring): Remove.
10916 * ada-exp.y: Use obstack_copy0, not obsavestring.
10917 * ada-lang.c: Use obstack_copy0, not obsavestring.
10918 * coffread.c: Use obstack_copy0, not obsavestring.
10919 * cp-namespace.c: Use obstack_copy0, not obsavestring.
10920 * dbxread.c: Use obstack_copy0, not obsavestring.
10921 * dwarf2read.c: Use obstack_copy0, not obsavestring.
10922 * jit.c: Use obstack_copy0, not obsavestring.
10923 * mdebugread.c: Use obstack_copy0, not obsavestring.
10924 * psymtab.c: Use obstack_copy0, not obsavestring.
10925 * stabsread.c: Use obstack_copy0, not obsavestring.
10926 * xcoffread.c: Use obstack_copy0, not obsavestring.
10927
86f62fd7
TT
109282013-01-21 Tom Tromey <tromey@redhat.com>
10929
10930 * dwarf2read.c (fixup_go_packaging): Save package name
10931 on objfile obstack.
10932 * gdbtypes.c (init_type): Don't copy name.
10933
15d034d0
TT
109342013-01-21 Tom Tromey <tromey@redhat.com>
10935
10936 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
10937 const.
10938 (struct attribute) <u.str>: Now const.
10939 (struct fnfieldlist) <name>: Now const.
10940 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
10941 (partial_die_parent_scope): Make return type const.
10942 (partial_die_full_name, add_partial_symbol): Update.
10943 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
10944 'name' const.
10945 (find_file_and_directory): Make 'name' and 'comp_dir' const.
10946 (read_file_scope, read_func_scope, dwarf2_add_field)
10947 (dwarf2_add_member_fn, read_structure_type)
10948 (process_enumeration_scope, read_array_type, read_module_type)
10949 (read_base_type, read_subrange_type): Update.
10950 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
10951 (new_symbol_full, guess_full_die_structure_name): Update.
10952 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
10953 (dwarf2_name): Return const type.
10954 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
10955 const.
10956
748e18ae
TT
109572013-01-21 Tom Tromey <tromey@redhat.com>
10958
10959 * gdbtypes.c (init_type): Make 'name' const.
10960 * gdbtypes.h (init_type): Update.
10961
46212e0b
TT
109622013-01-21 Tom Tromey <tromey@redhat.com>
10963
10964 * buildsym.c (patch_subfile_names): Use set_last_source_file.
10965 (start_symtab): Make 'name' and 'dirname' const. Use
10966 set_last_source_file.
10967 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
10968 (last_source_file): Define. Now static.
10969 (set_last_source_file, get_last_source_file): New functions.
10970 * buildsym.h (last_source_file): Don't declare.
10971 (start_symtab): Update.
10972 (set_last_source_file, get_last_source_file): Declare.
10973 * coffread.c (complete_symtab): Use set_last_source_file.
10974 (coff_end_symtab): Likewise.
10975 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
10976 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
10977 set_last_source_file.
10978 (process_one_symbol): Use get_last_source_file.
10979 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
10980 (psymtab_to_symtab_1): Use get_last_source_file.
10981 * xcoffread.c (process_linenos): Use get_last_source_file.
10982 (complete_symtab): Use set_last_source_file.
10983 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
10984 (scan_xcoff_symtab): Use set_last_source_file.
10985
9d2ceabe
TT
109862013-01-21 Tom Tromey <tromey@redhat.com>
10987
10988 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
10989 (symbol_set_names): Remove casts. Handle field const-ness.
10990
cfc594ee
TT
109912013-01-21 Tom Tromey <tromey@redhat.com>
10992
10993 * dwarf2read.c (new_symbol_full): Remove cast.
10994 * symtab.c (symbol_set_demangled_name): Make 'name' const.
10995 * symtab.h (symbol_set_demangled_name): Update.
10996
5484b13a
TT
109972013-01-21 Tom Tromey <tromey@redhat.com>
10998
10999 * main.c (captured_main): Call bfd_init.
11000
1605ef26
TT
110012013-01-21 Tom Tromey <tromey@redhat.com>
11002
11003 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
11004 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
11005 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
11006 * NEWS: Update.
11007
3b74cdc3
JK
110082013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
11009
11010 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
11011
5a352474
JK
110122013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
11013
11014 Fix gdb.fortran/common-block.exp crash in PIE mode.
11015 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
11016 LOC_COMMON_BLOCK.
11017 * f-valprint.c (info_common_command_for_block): Expect
11018 LOC_COMMON_BLOCK in gdb_assert.
11019 * symtab.h (struct general_symbol_info): Update comment for the
11020 common_block member.
11021 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
11022 (enum address_class): New member LOC_COMMON_BLOCK.
11023
c60797fd
DB
110242013-01-18 David Blaikie <dblaikie@gmail.com>
11025
11026 * MAINTAINERS (Write After Approval): Add "David Blaikie".
0cae7dfb 11027
46f35228
TT
110282013-01-18 Tom Tromey <tromey@redhat.com>
11029
11030 PR c++/14999:
11031 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
11032 Call require_rvalue.
11033
257e7a09
YQ
110342013-01-18 Yao Qi <yao@codesourcery.com>
11035
11036 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
11037 (dbx_read_symtab): New declaration.
11038 (dbx_psymtab_to_symtab): Delete.
11039 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
11040 Rename parameter PST to SELF. Exchanged two parameters.
11041 (start_psymtab): Caller update.
11042 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
11043 (dwarf2_read_symtab): New declaration.
11044 (dwarf2_psymtab_to_symtab): Delete.
11045 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
11046 Rename parameter PST to SELF. Exchanged two parameters.
11047 (create_partial_symtab): Caller update.
11048 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
11049 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
11050 Rename parameter PST to SELF. Exchanged two parameters.
11051 (parse_partial_symbols, new_psymtab): Caller update.
11052 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
11053 two parameters.
11054 * psymtab.c (psymtab_to_symtab): Caller update.
11055 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
11056 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
11057 Rename parameter PST to SELF. Exchanged two parameters.
11058 (xcoff_start_psymtab): Caller update.
11059
0de5618e
YQ
110602013-01-18 Yao Qi <yao@codesourcery.com>
11061
11062 * infrun.c (proceed): Rename local variable 'oneproc' to
11063 'force_step'.
11064
5c04624b
DE
110652013-01-17 Doug Evans <dje@google.com>
11066
848e3e78
DE
11067 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
11068 (dw2_build_type_unit_groups): Delete. All uses updated.
11069
5c04624b
DE
11070 * symtab.h (struct symbol_search): Add comment.
11071
d84fca2c
JK
110722013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
11073
11074 * symtab.c (compare_filenames_for_search): New comment for
11075 HAS_DRIVE_SPEC.
11076
6108433d
TT
110772013-01-17 Tom Tromey <tromey@redhat.com>
11078
11079 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
11080
c89ffd86
JK
110812013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
11082
11083 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
11084 initialize it by existing make_cleanup. Call new do_cleanups.
11085
db2b2972
TT
110862013-01-17 Tom Tromey <tromey@redhat.com>
11087
11088 * cp-abi.c (cp_abi_completer): New function.
11089 (_initialize_cp_abi): Set completer for "set cp-abi".
11090
be7d37a2
TT
110912013-01-17 Tom Tromey <tromey@redhat.com>
11092
11093 * mem-break.c: Remove obsolete comment.
11094 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
11095
c9fb1240
SD
110962012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
11097
11098 * jit.c (jit_reader_load_command): Interpret the jit reader name
11099 as an absolute path if it begins with a forward slash.
11100
db334a01
SD
111012012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
11102
11103 PR gdb/14550
11104
11105 * jit.c (finalize_symtab): Ensure that only the global block has a
11106 NULL superblock.
11107
7d928dac
PA
111082013-01-17 Pedro Alves <palves@redhat.com>
11109
11110 * acinclude.m4: Include ../config/plugins.m4,
11111 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
11112 * Makefile.in (aclocal_m4_deps): Update.
11113 * aclocal.m4: Renegerate.
11114
fb8cf7c5
DE
111152013-01-16 Doug Evans <dje@google.com>
11116
11117 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
11118
ab04a2af
TT
111192013-01-16 Pedro Alves <palves@redhat.com>
11120 Tom Tromey <tromey@redhat.com>
11121
11122 PR cli/7221:
11123 * NEWS: Add "catch signal".
11124 * breakpoint.c (base_breakpoint_ops): No longer static.
11125 (bpstat_explains_signal): New function.
11126 (init_catchpoint): No longer static.
11127 (base_breakpoint_explains_signal): New function.
11128 (base_breakpoint_ops): Initialize new field.
11129 * breakpoint.h (enum bpstat_signal_value): New.
11130 (struct breakpoint_ops) <explains_signal>: New field.
11131 (bpstat_explains_signal): Remove macro, declare as function.
11132 (base_breakpoint_ops, init_catchpoint): Declare.
11133 * break-catch-sig.c: New file.
11134 * inferior.h (signal_catch_update): Declare.
11135 * infrun.c (signal_catch): New global.
11136 (handle_syscall_event): Update for change to
11137 bpstat_explains_signal.
11138 (handle_inferior_event): Likewise. Always handle random signals
11139 via bpstats.
11140 (signal_cache_update): Check signal_catch.
11141 (signal_catch_update): New function.
11142 (_initialize_infrun): Initialize signal_catch.
11143 * Makefile.in (SFILES): Add break-catch-sig.c.
11144 (COMMON_OBS): Add break-catch-sig.o.
11145
8ac3646f
TT
111462013-01-16 Tom Tromey <tromey@redhat.com>
11147
11148 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
11149 (print_one_catch_solib, print_one_catch_syscall)
11150 (print_one_catch_exec, print_one_exception_catchpoint): Emit
11151 "catch-type".
11152
5a18e302
YQ
111532013-01-16 Yao Qi <yao@codesourcery.com>
11154
11155 * printcmd.c (current_display_number): Make it static.
11156
3f01d0d0
YQ
111572013-01-16 Yao Qi <yao@codesourcery.com>
11158
11159 * infcmd.c (step_once): Don't check '!single_inst' as it was
11160 checked before.
11161
1ed59174
JK
111622013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11163
11164 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
11165
44478ab3
TT
111662013-01-14 Tom Tromey <tromey@redhat.com>
11167
11168 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
11169 set command.
11170 * command.h (add_setshow_string_noescape_cmd): Update.
11171 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
11172 (complete_set_gnutarget): New function.
11173 (_initialize_core): Set the "set gnutarget" completer.
11174
06d66ee9
TT
111752013-01-14 Tom Tromey <tromey@redhat.com>
11176
11177 PR symtab/14442:
11178 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
11179 (c_type_print_modifier): Likewise.
11180 * dwarf2read.c (read_tag_restrict_type): New function.
11181 (read_type_die_1): Handle DW_TAG_restrict_type.
11182 * gdbtypes.c (make_restrict_type): New function.
11183 (recursive_dump_type): Handle TYPE_RESTRICT.
11184 * gdbtypes.h (enum type_flag_values): Renumber.
11185 (enum type_instance_flag_value): Add
11186 TYPE_INSTANCE_FLAG_RESTRICT.
11187 (TYPE_RESTRICT): New macro.
11188 (make_restrict_type): Declare.
11189
c9bf0622
TT
111902013-01-14 Tom Tromey <tromey@redhat.com>
11191
11192 PR symtab/14931:
11193 * psymtab.c (struct psymtab_state): New.
11194 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
11195 functions.
11196 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
11197 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
11198
44d594fd
PA
111992013-01-14 Richard Sharman <richard_sharman@mitel.com>
11200 Pedro Alves <palves@redhat.com>
11201
11202 PR remote/14786
11203
11204 * remote.c (remote_threads_info): Make a copy of the reply from
11205 qfThreadInfo and use that instead of rs->buf.
11206
442e4d9c
YQ
112072013-01-14 Yao Qi <yao@codesourcery.com>
11208
11209 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
11210 (dbx_psymtab_to_symtab): Likewise.
11211 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
11212 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
11213 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
11214
5b12a61c
JK
112152013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
11216
11217 * parse.c (parse_exp_in_context): New variable inner_chain. Call
11218 make_cleanup_restore_current_language. Call set_language. Move
11219 OLD_CHAIN and INNER_CHAIN cleanups.
11220 * utils.c (do_restore_current_language)
11221 (make_cleanup_restore_current_language): New functions.
11222 * utils.h (make_cleanup_restore_current_language): New declaration.
11223
f0a4b570
JK
112242013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
11225
11226 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
11227 non-existing files.
11228
57b3c00c
JK
11229 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
11230 non-existing files if FILENAME is already absolute.
11231
daefa854
JK
112322013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11233
11234 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
11235 fputs_filtered. Append trailing newline.
11236
ca9c6ee2
YQ
112372013-01-11 Yao Qi <yao@codesourcery.com>
11238 Stan Shebs <stan@codesourcery.com>
11239
11240 * psymtab.c (init_psymbol_list): Clarify the comment.
11241
f28045c2
YQ
112422013-01-11 Yao Qi <yao@codesourcery.com>
11243
11244 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
11245 (update_dprintf_command_list): Assert that 'printf_line' is
11246 non-null. Remove condition check.
11247
da5132d3
JK
112482013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11249
11250 Code cleanup.
11251 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
11252 type const char *.
11253 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
11254 const char *.
11255 * tui/tui-source.h (tui_source_is_displayed): Likewise.
11256
843e694d
AG
112572013-01-09 Anthony Green <green@moxielogic.com>
11258
11259 * cp-abi.c (cplus_print_vtable): Don't return value from void
11260 function.
11261 * ada-lang.c (re_set_catch_assert): Ditto.
11262
da51c347
DE
112632013-01-09 Doug Evans <dje@google.com>
11264
11265 * symfile.h (quick_symbol_functions): Delete member
11266 pre_expand_symtabs_matching. All uses removed.
11267 * dwarf2read.c (dw2_lookup_symbol): Implement.
11268 (dw2_do_expand_symtabs_matching): Delete.
11269 (dw2_pre_expand_symtabs_matching): Delete.
11270 (struct dw2_symtab_iterator): New type.
11271 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
11272 (dw2_expand_symtabs_for_function): Rewrite.
11273 (dwarf2_gdb_index_functions): Update.
11274 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
11275 (psym_functions): Update.
11276
b2259038
TT
112772013-01-09 Tom Tromey <tromey@redhat.com>
11278
11279 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
11280 * configure: Rebuild.
11281 * configure.ac: Add somread.o to the build if BFD has SOM
11282 support.
11283 * somread.c: Include som/aout.h, not syms.h.
11284 (som_symtab_read): Use som_external_symbol_dictionary_record.
11285 Unpack records manually.
11286 (_initialize_somread): Declare.
11287
bdad4180
MF
112882012-01-08 Mike Frysinger <vapier@gentoo.org>
11289
11290 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
11291 Cast return_address to 64bits.
11292
03cdf680
HZ
112932013-01-08 Hui Zhu <hui_zhu@mentor.com>
11294
11295 * printcmd.c: Remove define of function output_command.
11296 * tracepoint.c: Remove extern of function output_command.
11297 * valprint.h: (output_command): New extern.
11298
8a808554
TT
112992013-01-07 Tom Tromey <tromey@redhat.com>
11300
11301 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
11302 Remove.
11303 (objc_language_defn): Use c_printchar, c_printstr,
11304 c_emit_char.
11305
e93a8774
TT
113062013-01-07 Tom Tromey <tromey@redhat.com>
11307
11308 PR cli/7719:
11309 * NEWS: Update.
11310 * ada-valprint.c (printstr, print_field_values): Remove
11311 "inspect_it" code.
11312 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
11313 code.
11314 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
11315 code.
11316 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
11317 * main.c (captured_main): Remove "epoch" argument.
11318 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
11319 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
11320 * p-valprint.c (pascal_object_print_value_fields): Remove
11321 "inspect_it" code.
11322 * printcmd.c (print_command_1): Remove 'inspect' argument.
11323 (print_command, call_command): Update.
11324 (inspect_command): Remove.
11325 (_initialize_printcmd): Make "inspect" an alias for "print".
11326 * top.c (epoch_interface): Remove.
11327 * top.h (epoch_interface): Remove.
11328 * valprint.c (user_print_options): Update.
11329 (print_converted_chars_to_obstack): Remove "inspect_it" code.
11330 * valprint.h (struct value_print_options) <inspect_it>: Remove
11331 field.
11332
113332013-01-04 Tom Tromey <tromey@redhat.com>
11334
11335 * valprint.h (read_string): Add 'extern'.
11336
b967eb24
JB
113372013-01-07 Joel Brobecker <brobecker@adacore.com>
11338
11339 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
11340 used to decide whether to define darwin_read_dyld_info or not.
11341
78a8b30e
PM
113422013-01-03 Pierre Muller <muller@sourceware.org>
11343
11344 * main.c (relocate_gdb_directory): Avoid calling stat function
11345 if DIR is empty.
11346
50da2f25
YQ
113472013-01-03 Yao Qi <yao@codesourcery.com>
11348
11349 * psymtab.c (fixup_psymbol_section): Update declaration.
11350 (fixup_psymbol_section): Remove code returning value.
11351
e7e8980f
YQ
113522013-01-03 Yao Qi <yao@codesourcery.com>
11353
11354 * symtab.h: Remove some out of date comments.
11355 (enum exception_event_kind): Move it ...
11356 * breakpoint.c: ... here.
11357
569283d4
MF
113582013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
11359
9f9d9a96 11360 PR gdb/14405
569283d4
MF
11361 * darwin-nat.c (darwin_read_dyld_info): Only build if
11362 TASK_DYLD_INFO_COUNT is defined.
11363 (darwin_xfer_partial): Call darwin_read_dyld_info only if
11364 TASK_DYLD_INFO_COUNT is defined.
11365
2e36fbea
TT
113662013-01-02 Tom Tromey <tromey@redhat.com>
11367
11368 * symfile.h (struct ecoff_debug_hack): Remove.
11369 * objfiles.c: Don't include mdebugread.h.
11370
4f05add4
TT
113712013-01-02 Tom Tromey <tromey@redhat.com>
11372
11373 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
11374 * configure.ac: Check for Mach-O support in BFD. Update
11375 CONFIG_OBS.
11376 * configure: Rebuild.
11377
def63ff0
TT
113782013-01-02 Tom Tromey <tromey@redhat.com>
11379
11380 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
11381 * configure.ac: Use GDB_AC_CHECK_BFD.
11382 * configure: Rebuild.
11383
60c5dd93
MK
113842013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
11385
11386 * MAINTAINERS: Update my email.
11387
6e58437e
JB
113882013-01-01 Joel Brobecker <brobecker@adacore.com>
11389
11390 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
11391
627fe805
JB
113922013-01-01 Joel Brobecker <brobecker@adacore.com>
11393
11394 * rs6000-nat.c (bss_data_overlap): New function.
11395 (vmap_symtab): Use it to adjust the .bss section's offset.
11396
28e7fd62
JB
113972013-01-01 Joel Brobecker <brobecker@adacore.com>
11398
11399 Update year range in copyright notice of all files.
11400
e93a8774 114012013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
b9786c74
JB
11402
11403 * top.c (print_gdb_version): Update copyright year.
11404
72b20e9c 11405For older changes see ChangeLog-2012.
c906108c
SS
11406\f
11407Local Variables:
11408mode: change-log
11409left-margin: 8
11410fill-column: 74
11411version-control: never
57da7796 11412coding: utf-8
c906108c 11413End:
This page took 2.573077 seconds and 4 git commands to generate.