S/390: Rename source files to *-linux-*
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
0e5fae36
UW
12013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2
3 * s390-tdep.h: Rename to...
4 * s390-linux-tdep.h: ...here.
5 * s390-tdep.c: Rename to...
6 * s390-linux-tdep.c: ...here. Adjust #include.
7 * s390-nat.c: Rename to...
8 * s390-linux-nat.c: ...here. Adjust #include.
9 * config/s390/s390.mh: Rename to...
10 * config/s390/linux.mh: ...here. Reflect rename s390-nat.o ->
11 s390-linux-nat.o.
12 * configure.host: Reflect host rename "s390" -> "linux".
13 * configure.tgt: Reflect rename s390-tdep.o -> s390-linux-tdep.o.
14 * Makefile.in (ALL_TARGET_OBS): Likewise.
15 (HFILES_NO_SRCDIR): Reflect rename s390-tdep.h ->
16 s390-linux-tdep.h.
17 (ALLDEPFILES): Reflect rename of .c files.
18
34201ae3
UW
192013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
20
21 * s390-nat.c: Whitespace cleanup.
22 * s390-tdep.c: Likewise.
23 * s390-tdep.h: Remove empty line at end of file.
24
e17aaa33
MR
252013-10-30 Maciej W. Rozycki <macro@codesourcery.com>
26
27 * linux-tdep.c (linux_corefile_thread_callback): Preinitialize
28 siginfo_size.
29
aee17e42
TT
302013-10-29 Tom Tromey <tromey@redhat.com>
31
32 * utils.c (reg): Move undefinition...
33 * gdb_curses.h: ... here. Update comment to mention AIX.
34
9ac69859
NB
352013-10-29 Nicolas Blanc <nicolas.blanc@intel.com>
36
37 * exec.h (add_target_sections_of_objfile): New declaration.
38 * exec.c (add_target_sections_of_objfile): New function.
39 * symfile.c (add_symbol_file_command): Update current target sections.
40 (remove_symbol_file_command): New command.
41 (symfile_free_objfile): New function.
42 (_initialize_symfile): Register observer for free_objfile events.
43 * NEWS: Add description of the remove-symbol-file command.
44 * breakpoint.c (disable_breakpoints_in_freed_objfile): New function.
45 * objfiles.c (free_objfile): Notify free_objfile.
46 (is_addr_in_objfile): New function.
47 * objfiles.h (is_addr_in_objfile): New declaration.
48 * printcmd.c (clear_dangling_display_expressions): Act upon free_objfile
49 events instead of solib_unloaded events.
50 (_initialize_printcmd): Register observer for free_objfile instead
51 of solib_unloaded notifications.
52 * solib.c (remove_user_added_objfile): New function.
53 (_initialize_symfile): Add remove-symbol-file.
54
f69d9aef
AB
552013-10-29 Andrew Burgess <aburgess@broadcom.com>
56
57 * infcmd.c (default_print_one_register_info): Use val_print to
58 print all values even optimized out or unavailable ones. Don't
59 try to print a raw form of optimized out or unavailable values.
60
487ad57c
YQ
612013-10-29 Yao Qi <yao@codesourcery.com>
62
63 * auto-load.c (auto_load_pspace_data_cleanup): Get data from
64 parameter 'arg' instead of from program_space_data.
65 * objfiles.c (objfiles_pspace_data_cleanup): Likewise.
66 * solib-darwin.c (darwin_pspace_data_cleanup): Likewise.
67 * solib-dsbt.c (dsbt_pspace_data_cleanup): Likewise.
68 * solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
69 * inflow.c (inflow_inferior_data_cleanup): Get data from
70 parameter 'arg' instead of inferior_data.
71 * registry.h: Add comments.
72
3c4797ba
PA
732013-10-28 Pedro Alves <palves@redhat.com>
74
75 * breakpoint.c (watchpoints_triggered)
76 <!target_stopped_data_address>: Hardcode return 1.
77
cdaa5b73
PA
782013-10-28 Pedro Alves <palves@redhat.com>
79
80 * infrun.c (process_event_stop_test): Remove unnecessary scoping
81 level and reindent.
82
94c57d6a
PA
832013-10-28 Pedro Alves <palves@redhat.com>
84
85 * infrun.c (process_event_stop_test): New function, factored out
86 from handle_inferior_event.
87 (handle_inferior_event): 'process_event_stop_test' is now a
88 function instead of a goto label -- adjust.
89
fcf3daef
PA
902013-10-28 Pedro Alves <palves@redhat.com>
91
92 * infrun.c (handle_inferior_event): Move process_event_stop_test
93 goto label to the else branch of the ecs->random_signal check,
94 along with FRAME and GDBARCH re-fetching.
95
c447ac0b
PA
962013-10-28 Pedro Alves <palves@redhat.com>
97
98 * infrun.c (switch_back_to_stepped_thread): New function, factored
99 out from handle_inferior_event.
100 (handle_inferior_event): Adjust to call
101 switch_back_to_stepped_thread. Call it also at the tail of the
102 random signal handling, and return, instead of also handling
103 random signals just before the stepping tests.
104
f05e4c11
PA
1052013-10-28 Pedro Alves <palves@redhat.com>
106
107 * infrun.c (clear_stop_func): Delete.
108 (handle_inferior_event): Don't call clear_stop_func and don't
109 clear 'ecs->random_signal'.
110
ca20d462
YQ
1112013-10-27 Yao Qi <yao@codesourcery.com>
112
113 * varobj.c (struct varobj_root) <lang>: Rename to 'lang_ops'.
114 (varobj_create, varobj_get_path_expr): Update.
115 (varobj_value_has_mutated, varobj_update): Likewise.
116 (create_child_with_value, new_root_variable): Likewise.
117 (number_of_children, name_of_variable): Likewise.
118 (value_of_child, my_value_of_variable): Likewise.
119 (varobj_value_is_changeable_p): Likewise.
120
a53b64ea
YQ
1212013-10-25 Yao Qi <yao@codesourcery.com>
122
123 * language.h (struct lang_varobj_ops): Declare.
124 (struct language_defn) <la_varobj_ops>: New field.
125 * ada-lang.c: Include "varobj.h"
126 (defn ada_language_defn): Initialize field 'la_varobj_ops' with
127 ada_varobj_ops.
128 * c-lang.c: Include "varobj.h"
129 (c_language_defn): Initialize field 'la_varobj_ops' with
130 c_varobj_ops.
131 (cplus_language_defn): Initialize field 'la_varobj_ops' with
132 cplus_varobj_ops.
133 (asm_language_defn): Initialize field 'la_varobj_ops' with
134 default_varobj_ops.
135 (minimal_language_defn): Likewise.
136 * d-lang.c (d_language_defn): Likewise.
137 * f-lang.c (f_language_defn): Likewise.
138 * go-lang.c (go_language_defn): Likewise.
139 * m2-lang.c (m2_language_defn): Likewise.
140 * objc-lang.c (objc_language_defn): Likewise.
141 * opencl-lang.c (opencl_language_defn): Likewise.
142 * p-lang.c (pascal_language_defn): Likewise.
143 * language.c (unknown_language_defn): Likewise.
144 (auto_language_defn): Likewise.
145 (local_language_defn): Likewise.
146 * jv-lang.c (java_language_defn): Initialize field
147 'la_varobj_ops' with java_varobj_ops.
148 * varobj.c (varobj_create): Update.
149 * varobj.h (default_varobj_ops): Define macro.
150
686d4def
PA
1512013-10-25 Pedro Alves <palves@redhat.com>
152
153 * cp-valprint.c (cp_print_value_fields): No longer handle a NULL
154 static field value.
155 (cp_print_static_field): If the value is entirely optimized out,
156 print <optimized out> here.
157 * jv-valprint.c (java_print_value_fields): No longer handle a NULL
158 static field value.
159 * p-valprint.c (pascal_object_print_static_field): If the value is
160 entirely optimized out, print <optimized out> here.
161 * valops.c (do_search_struct_field)
162 (value_struct_elt_for_reference): No longer handle a NULL static
163 field value.
164 * value.c (value_static_field): Return an optimized out value
165 instead of NULL.
166
6c177e28
YQ
1672013-10-25 Yao Qi <yao@codesourcery.com>
168
169 * remote.c (remote_traceframe_info): Return early if
170 traceframe is not selected.
171
98322bfa
YQ
1722013-10-25 Yao Qi <yao@codesourcery.com>
173
174 * tracepoint.c (traceframe_fun): Remove.
175 (traceframe_sal): Remove.
176 (set_traceframe_context): Add local variables.
177
6ba1f115
JB
1782013-10-25 Joel Brobecker <brobecker@adacore.com>
179
180 * varobj.h (struct lang_varobj_ops): Remove spaces between '*'
181 and parameter name.
182
bbe769cc
MR
1832013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
184
185 * linux-tdep.c (linux_corefile_thread_callback): Propagate any
186 failure from register information collection.
187
72ee4495 1882013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
59a70096
MR
189
190 * linux-tdep.c (linux_corefile_thread_data): Remove `num_notes'
191 member.
192 (linux_corefile_thread_callback): Update accordingly.
193 (linux_make_corefile_notes): Likewise.
194
98882a26
PA
1952013-10-24 Pedro Alves <palves@redhat.com>
196
197 * NEWS (New options): Mention set/show startup-with-shell.
198 * config/alpha/nm-osf3.h (START_INFERIOR_TRAPS_EXPECTED): Set to 2
199 instead of 3.
200 * fork-child.c (fork_inferior, startup_inferior): Handle 'set
201 startup-with-shell'.
202 (show_startup_with_shell): New function.
203 (_initialize_fork_child): Register the set/show startup-with-shell
204 commands.
205 * inf-ptrace.c (inf_ptrace_create_inferior): Remove comment.
206 * inf-ttrace.c (inf_ttrace_him): Remove comment.
207 * procfs.c (procfs_init_inferior): Remove comment.
208 * infcmd.c (startup_with_shell): New global.
209 * inferior.h (startup_with_shell): Declare global.
210 (STARTUP_WITH_SHELL): Delete.
211 (START_INFERIOR_TRAPS_EXPECTED): Set to 1 by default instead of 2.
212
c9737c08
PA
2132013-10-23 Pedro Alves <palves@redhat.com>
214
215 * common/gdb_signals.h (gdb_signal_to_symbol_string): Declare.
216 * common/signals.c: Include "gdb_assert.h".
217 (signals): New field 'symbol'.
218 (SET): Use the 'symbol' parameter.
219 (gdb_signal_to_symbol_string): New function.
220 * infrun.c (handle_inferior_event) <random signal>: In debug
221 output, print the random signal enum as string in addition to its
222 number.
223 * target/waitstatus.c (target_waitstatus_to_string): Print the
224 signal's enum value as string instead of the (POSIX) signal name.
225
f60db4f0
GB
2262013-10-23 Gary Benson <gbenson@redhat.com>
227
228 PR 16013
229 * common/linux-osdata.c (command_from_pid): Reduced size of cmd
230 from 32 to 18. Adjusted fscanf format string accordingly.
231 (Avoids leaving cmd unterminated.)
232 (print_sockets): Do not parse tlen, inode, sl, timeout, txq, rxq,
233 trun, retn or extra. (Avoids leaving extra unterminated.) Check
234 that local_address and remote_address will not overflow.
235 (linux_xfer_osdata_modules): Parse lines using strtok to avoid
236 leaving dependencies unterminated. Parse size as "%u" to match
237 definition.
238
6d3e7a94
PA
2392013-10-22 Pedro Alves <palves@redhat.com>
240
241 * infrun.c (handle_inferior_event) <thread hop>: Don't clear or
242 set ecs->random signal.
243
42ec045f
PA
2442013-10-22 Pedro Alves <palves@redhat.com>
245
246 * infrun.c (keep_going): Update comments.
247
2482013-10-22 Pedro Alves <palves@redhat.com>
249
250 * remote.c (remote_parse_stop_reply) <'T'/'S'/'X' replies>: Map
251 invalid signal numbers to GDB_SIGNAL_UNKNOWN.
252
2532013-10-22 Pedro Alves <palves@redhat.com>
254
255 * include/gdb/signals.def (TARGET_EXC_BAD_ACCESS): Rename to
256 GDB_EXC_BAD_ACCESS.
257 (TARGET_EXC_BAD_INSTRUCTION): Rename to GDB_EXC_BAD_INSTRUCTION.
258 (TARGET_EXC_ARITHMETIC): Rename to GDB_EXC_ARITHMETIC.
259 (TARGET_EXC_EMULATION): Rename to GDB_EXC_EMULATION.
260 (TARGET_EXC_SOFTWARE): Rename to GDB_EXC_SOFTWARE.
261 (TARGET_EXC_BREAKPOINT): Rename to GDB_EXC_BREAKPOINT.
262 (GDB_SIGNAL_LAST): Change description string.
263 * common/signals.c (gdb_signal_from_host, do_gdb_signal_to_host):
264 Adjust to signal renaming.
265 * darwin-nat.c (darwin_decode_message): Likewise.
266
c8fde1b1
JM
2672013-10-22 Jose E. Marchesi <jose.marchesi@oracle.com>
268
269 * MAINTAINERS (Write After Approval): Add myself to the list.
270
e8369a73
AB
2712013-10-18 Andrew Burgess <aburgess@broadcom.com>
272
273 * breakpoint.c (update_watchpoint): If hardware watchpoints are
274 forced off, downgrade them to software watchpoints if possible,
275 and error out if not possible.
276 (watch_command_1): Move watchpoint type selection closer to
277 watchpoint creation, and extend the comments.
278
776f04fa
PA
2792013-10-18 Pedro Alves <palves@redhat.com>
280
281 PR gdb/16062
282 * infrun.c (handle_inferior_event): Keep going if we got a random
283 signal we should not stop for, instead of falling through to the
284 step tests.
285
0c6faab5
YQ
2862013-10-18 Yao Qi <yao@codesourcery.com>
287
288 * c-varobj.c (cplus_number_of_children): Fix indentation.
289
50b34a18
TT
2902013-10-17 Tom Tromey <tromey@redhat.com>
291
292 PR gdb/15995:
293 * printcmd.c (printcmd): Call gdb_flush.
294
5c4c8a59
TT
2952013-10-17 Tom Tromey <tromey@redhat.com>
296
297 * elfread.c (struct elfinfo) <stabindexsect>: Remove.
298 (elf_locate_sections): Update.
299
c4124bf1
YQ
3002013-10-17 Yao Qi <yao@codesourcery.com>
301
302 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
303 * ada-varobj.c: Remove the include of ada-varobj.h.
304 (ada_varobj_get_number_of_children): Declare.
305 (ada_varobj_get_name_of_child): Make it static.
306 (ada_varobj_get_path_expr_of_child): Likewise.
307 (ada_varobj_get_value_of_child): Likewise.
308 (ada_varobj_get_type_of_child): Likewise.
309 (ada_varobj_get_value_of_array_variable): Likewise.
310 * ada-varobj.h: Remove.
311
99ad9427
YQ
3122013-10-17 Yao Qi <yao@codesourcery.com>
313
314 * Makefile.in (SFILES): Add c-varobj.c and jv-varobj.c.
315 (COMMON_OBS): Add c-varobj.o and jv-varobj.o.
316 * ada-varobj.c: Include "varobj.h".
317 (ada_number_of_children): New. Moved from varobj.c.
318 (ada_name_of_variable, ada_name_of_child): Likewise.
319 (ada_path_expr_of_child, ada_value_of_child): Likewise.
320 (ada_type_of_child, ada_value_of_variable): Likewise.
321 (ada_value_is_changeable_p, ada_value_has_mutated): Likewise.
322 (ada_varobj_ops): New.
323 * c-varobj.c, jv-varobj.c: New file. Moved from varobj.c.
324 * gdbtypes.c (get_target_type): New. Moved from varobj.c.
325 * gdbtypes.h (get_target_type): Declare.
326 * varobj.c: Remove the inclusion of "ada-varobj.h" and
327 "ada-lang.h".
328 (ANONYMOUS_STRUCT_NAME): Move it to c-varobj.c.
329 (ANONYMOUS_UNION_NAME): Likewise.
330 (get_type, get_value_type, get_target_type): Remove declarations.
331 (value_get_print_value, varobj_value_get_print_value): Likewise.
332 (c_number_of_children, c_name_of_variable): Likewise.
333 (c_name_of_child, c_path_expr_of_child): Likewise.
334 (c_value_of_child, c_type_of_child): Likewise.
335 (c_value_of_variable, cplus_number_of_children): Likewise.
336 (cplus_class_num_children, cplus_name_of_variable): Likewise.
337 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
338 (cplus_value_of_child, cplus_type_of_child): Likewise.
339 (cplus_value_of_variable, java_number_of_children): Likewise.
340 (java_name_of_variable, java_name_of_child): Likewise.
341 (java_path_expr_of_child, java_value_of_child): Likewise.
342 (java_type_of_child, java_value_of_variable): Likewise.
343 (ada_number_of_children, ada_name_of_variable): Likewise.
344 (ada_name_of_child, ada_path_expr_of_child): Likewise.
345 (ada_value_of_child, ada_type_of_child): Likewise.
346 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
347 (ada_value_has_mutated): Likewise.
348 (struct language_specific): Move it to varobj.h.
349 (CPLUS_FAKE_CHILD): Move it to varobj.h.
350 (restrict_range): Rename it varobj_restrict_range. Make it extern.
351 Callers update.
352 (get_path_expr_parent): Rename it to varobj_get_path_expr_parent.
353 Make it extern.
354 (is_anonymous_child): Move it to c-varobj.c and rename to
355 varobj_is_anonymous_child. Caller update.
356 (get_type): Move it to c-varobj.c.
357 (get_value_type): Rename it varobj_get_value_type. Make it
358 extern.
359 (get_target_type): Move it gdbtypes.c.
360 (varobj_formatted_print_options): New function.
361 (value_get_print_value): Rename it to
362 varobj_value_get_print_value and make it extern.
363 (varobj_value_is_changeable_p): Make it extern.
364 (adjust_value_for_child_access): Move it to c-varobj.c.
365 (default_value_is_changeable_p): Rename it to
366 varobj_default_value_is_changeable_p. Make it extern.
367 (c_number_of_children, c_name_of_variable): Move it to c-varobj.c
368 (c_name_of_child, c_path_expr_of_child): Likewise.
369 (c_value_of_child, c_type_of_child): Likewise.
370 (c_value_of_variable, cplus_number_of_children): Likewise.
371 (cplus_class_num_children, cplus_name_of_variable): Likewise.
372 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
373 (cplus_value_of_child, cplus_type_of_child): Likewise.
374 (cplus_value_of_variable): Likewise.
375 (java_number_of_children, java_name_of_variable): Move it to jv-varobj.c.
376 (java_name_of_child, java_path_expr_of_child): Likewise.
377 (java_value_of_child, java_type_of_child): Likewise.
378 (java_value_of_variable): Likewise.
379 (ada_number_of_children, ada_name_of_variable): Move it to ada-varobj.c.
380 (ada_name_of_child, ada_path_expr_of_child): Likewise.
381 (ada_value_of_child, ada_type_of_child): Likewise.
382 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
383 (ada_value_has_mutated): Likewise.
384 * varobj.h (CPLUS_FAKE_CHILD): New macro, moved from varobj.c.
385 (struct lang_varobj_ops): New. Renamed by 'struct language_specific'.
386 (c_varobj_ops, cplus_varobj_ops): Declare.
387 (java_varobj_ops, ada_varobj_ops): Declare.
388 (varobj_default_value_is_changeable_p): Declare.
389 (varobj_value_is_changeable_p): Declare.
390 (varobj_get_value_type, varobj_is_anonymous_child): Declare.
391 (varobj_get_path_expr_parent): Declare.
392 (varobj_value_get_print_value): Declare.
393 (varobj_formatted_print_options): Declare.
394 (varobj_restrict_range): Declare.
395
c8a62302
LM
3962013-10-17 Luis Machado <lgustavo@codesourcery.com>
397
398 * target/waitstatus.h (target_waitkind): Remove spurious
399 character from the comments.
400
eade6471
JB
4012013-10-17 Joel Brobecker <brobecker@adacore.com>
402
403 * gdbarch.sh (get_longjmp_target): Add method documentation.
404 * gdbarch.h: Regenerate.
405
5411b26c
TT
4062013-10-16 Tom Tromey <tromey@redhat.com>
407
408 * dbxread.c (read_dbx_symtab) <bss_ext_symbol>: Remove unused
409 label.
410
87326c87
LM
4112013-10-16 Luis Machado <lgustavo@codesourcery.com>
412
413 * gcore.in: Call GDB using the full path to the gcore script.
414 Error out if the GDB binary is not found.
415
fd0a4d76
SDJ
4162013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
417
418 PR gdb/16014
419 * dwarf2read.c (dw2_get_real_path): Remove unnecessary call to
420 sizeof.
421
d92f7ee3
SDJ
4222013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
423
424 PR gdb/16042
425 * target.c (target_disable_btrace): Fix invalid return value for
426 void function.
427 (target_teardown_btrace): Likewise.
428
bb5ce47a
YQ
4292013-10-14 Yao Qi <yao@codesourcery.com>
430
431 * varobj.c (struct varobj): Move most of the fields to
432 varobj.h.
433 (struct varobj_dynamic): New struct.
434 (varobj_get_display_hint) [HAVE_PYTHON]: Adjust.
435 (varobj_has_more): Likewise.
436 (dynamic_varobj_has_child_method): Likewise.
437 (update_dynamic_varobj_children): Likewise.
438 (varobj_get_num_children): Likewise.
439 (varobj_list_children, varobj_pretty_printed_p): Likewise.
440 (install_new_value_visualizer): Likewise.
441 (install_new_value_visualizer, install_new_value): Likewise.
442 (varobj_update, new_variable, free_variable): Likewise.
443 (my_value_of_variable, value_get_print_value): Likewise.
444 (install_visualizer): Change the type of parameter 'var' to
445 'struct varobjd_dynamic *'. Callers update.
446 * varobj.h (struct varobj): Moved from varobj.c.
447 (struct varobj) <dynamic>: New field.
448
0b76b0ce
SL
4492013-10-13 Sandra Loosemore <sandra@codesourcery.com>
450
451 * nios2-tdep.c (nios2_reg_names): Use "sstatus" rather than "ba"
452 as the preferred name of r30.
453 * nios2-linux-tdep.c (reg_offsets): Likewise.
454 * features/nios2-cpu.xml: Likewise.
455 * features/nios2-linux.c: Regenerated.
456 * features/nios2.c: Regenerated.
457 * regformats/nios2-linux.dat: Regenerated.
458
4856b6bc
JK
4592013-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
460
461 Canonicalize directories for EXEC_FILENAME.
462 * exec.c (exec_file_attach): Use gdb_realpath_keepfile for
463 exec_filename.
464 * utils.c (gdb_realpath_keepfile): New function.
465 * utils.h (gdb_realpath_keepfile): New declaration.
466
9b557b58
DE
4672013-10-11 Doug Evans <dje@google.com>
468
469 * Makefile.in (GDBFLAGS): New variable.
470 (run): New rule.
471
ce13fade
JB
4722013-10-11 Joel Brobecker <brobecker@adacore.com>
473
474 * NEWS: Add entry documenting the new "-catch-assert" and
475 "-catch-exception" GDB/MI commands.
476
349774ef
JB
4772013-10-11 Joel Brobecker <brobecker@adacore.com>
478
479 * breakpoint.h (init_ada_exception_breakpoint): Add parameter
480 "enabled".
481 * breakpoint.c (init_ada_exception_breakpoint): Add parameter
482 "enabled". Set B->ENABLE_STATE accordingly.
483 * ada-lang.h (ada_exception_catchpoint_kind): Move here from
484 ada-lang.c.
485 (create_ada_exception_catchpoint): Add declaration.
486 * ada-lang.c (ada_exception_catchpoint_kind): Move to ada-lang.h.
487 (create_ada_exception_catchpoint): Make non-static. Add new
488 parameter "disabled". Use it in call to
489 init_ada_exception_breakpoint.
490 (catch_ada_exception_command): Add parameter "enabled" in call
491 to create_ada_exception_catchpoint.
492 (catch_assert_command): Likewise.
493
494 * mi/mi-cmds.h (mi_cmd_catch_assert, mi_cmd_catch_exception):
495 Add declarations.
496 * mi/mi-cmds.c (mi_cmds): Add the "catch-assert" and
497 "catch-exception" commands.
498 * mi/mi-cmd-catch.c: Add #include "ada-lang.h".
499 (mi_cmd_catch_assert, mi_cmd_catch_exception): New functions.
500
761269c8
JB
5012013-10-11 Joel Brobecker <brobecker@adacore.com>
502
503 * ada-lang.c (enum ada_exception_catchpoint_kind): Renames
504 "enum exception_catchpoint_kind". Replace the "ex_" prefix
505 of all its enumerates with "ada_". Update the rest of this
506 file throughout.
507
b4a5b78b
JB
5082013-10-11 Joel Brobecker <brobecker@adacore.com>
509
510 * ada-lang.c (ada_decode_exception_location): Delete.
511 (create_ada_exception_catchpoint): Remove arguments "sal",
512 "addr_string" and "ops". Add argument "ex_kind" instead.
513 Adjust implementation accordingly, calling ada_exception_sal
514 to get the entities it no longer gets passed as arguments.
515 Document the function's arguments.
516 (catch_ada_exception_command): Use catch_ada_exception_command_split
517 instead of ada_decode_exception_location, and update call to
518 create_ada_exception_catchpoint.
519 (catch_ada_assert_command_split): Renames
520 ada_decode_assert_location. Remove parameters "addr_string" and
521 "ops", and now returns void. Adjust implementation accordingly.
522 Update the function documentation.
523 (catch_assert_command): Use catch_ada_assert_command_split
524 instead of ada_decode_assert_location. Update call to
525 create_ada_exception_catchpoint.
526
7ad1d32c 5272013-10-11 Joel Brobecker <brobecker@adacore.com>
7c647d61
JB
528
529 * utils.h (perror_warning_with_name): Add declaration.
530 * utils.c (perror_warning_with_name): New function.
531 * cli/cli-cmds.c (source_script_with_search): Add call to
532 perror_warning_with_name if from_tty is nul.
533
7ad1d32c 5342013-10-11 Joel Brobecker <brobecker@adacore.com>
0cf4063e
JB
535
536 * utils.c (perror_string): New function, extracted out of
537 throw_perror_with_name.
538 (throw_perror_with_name): Rework to use perror_string.
539
bcc75809
YQ
5402013-10-11 Yao Qi <yao@codesourcery.com>
541
542 * remote.c (discard_pending_stop_replies_in_queue): Update
543 declaration.
544 (struct stop_reply) <rs>: New field.
545 (remove_stop_reply_of_remote_state): New function.
546 (discard_pending_stop_replies_in_queue): Add parameter 'rs'.
547 Callers update. Pass remove_stop_reply_of_remote_state to
548 QUEUE_iterate.
549 (remote_parse_stop_reply): Initialize field 'rs'.
550
05feb193
WN
5512013-10-10 Will Newton <will.newton@linaro.org>
552
553 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
554 linux_init_abi.
555
0d12017b
JB
5562013-10-10 Joel Brobecker <brobecker@adacore.com>
557
558 * cli/cli-cmds.c (show_baud_rate): Moved to serial.c as
559 serial_baud_show_cmd.
560 (_initialize_cli_cmds): Delete the code creating the
561 "set/show remotebaud" commands.
562 * serial.c (baud_rate): Move here from top.c.
563 (serial_baud_show_cmd): Move here from cli/cli-cmds.c.
564 (_initialize_serial): Create "set/show serial baud" commands.
565 Add "set/show remotebaud" command aliases.
566 * top.c (baud_rate): Moved to serial.c.
567 * NEWS: Document the new "set/show serial baud" commands,
568 replacing "set/show remotebaud".
569
578d3588
PA
5702013-10-09 Pedro Alves <palves@redhat.com>
571
572 * breakpoint.c (insert_bp_location): Use memory_error_message to
573 build the memory error string.
574 * c-lang.c: Include "gdbcore.h".
575 (c_get_string): Use memory_error to throw error.
576 (target_xfer_memory_error): Delete.
577 (memory_error_message): New, factored out from
578 target_xfer_memory_error.
579 (memory_error): Change parameter type to target_xfer_error.
580 Rewrite.
581 (read_memory): Use memory_error instead of
582 target_xfer_memory_error.
583 * gdbcore.h: Include "target.h".
584 (memory_error): Change parameter type to target_xfer_error.
585 (memory_error_message): Declare function.
586 * target.c (target_read_memory, target_read_stack)
587 (target_write_memory, target_write_raw_memory): Return
588 TARGET_XFER_E_IO on error. Adjust comments.
589 (get_target_memory): Pass TARGET_XFER_E_IO to memory_error,
590 instead of EIO.
591 * target.h (target_read, target_insert_breakpoint)
592 (target_remove_breakpoint): Adjust comments.
593 * valprint.c (partial_memory_read): Rename parameter, and adjust
594 comment.
595 (val_print_string): Use memory_error_message to build the memory
596 error string.
597
c74e1ccf
JK
5982013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
599
600 * common/filestuff.c (gdb_fopen_cloexec): Remove initialization of
601 result variable. Rename variable fopen_e_ever_failed to
602 fopen_e_ever_failed_einval. Retry fopen only for errno EINVAL.
603
915215be
PA
6042013-10-09 Pedro Alves <palves@redhat.com>
605
606 * monitor.c (monitor_write_memory, monitor_write_memory_bytes)
607 (monitor_write_memory_longlongs, monitor_write_memory_block):
608 Constify 'myaddr' parameter.
609 (monitor_xfer_memory): Adjust interface as monitor_xfer_partial
610 helper.
611 (monitor_xfer_partial): New function.
612 (init_base_monitor_ops): Don't install a deprecated_xfer_memory
613 hook. Install a to_xfer_partial hook.
614
acd13123
TT
6152013-10-09 Tom Tromey <tromey@redhat.com>
616
617 * dwarf2read.c (dwarf2_get_dwz_file): Update for type change in
618 bfd_get_alt_debug_link_info.
619
40135bb1
JK
6202013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
621
622 New flag OBJF_NOT_FILENAME.
623 * auto-load.c (auto_load_objfile_script): Check also OBJF_NOT_FILENAME.
624 * jit.c (jit_object_close_impl): Use OBJF_NOT_FILENAME for
625 allocate_objfile.
626 (jit_bfd_try_read_symtab): Use OBJF_NOT_FILENAME for
627 symbol_file_add_from_bfd.
628 * jv-lang.c (get_dynamics_objfile): Use OBJF_NOT_FILENAME for
629 allocate_objfile.
630 * objfiles.c (allocate_objfile): Assert OBJF_NOT_FILENAME if NAME is
631 NULL.
632 * objfiles.h (OBJF_NOT_FILENAME): New.
633
dc294be5
TT
6342013-10-08 Tom Tromey <tromey@redhat.com>
635
636 * Makefile.in (SFILES): Add build-id.c.
637 (HFILES_NO_SRCDIR): Add build-id.h.
638 * build-id.c: New file, largely from elfread.c. Modified
639 most functions.
640 * build-id.h: New file.
641 * dwarf2read.c (dwarf2_get_dwz_file): Update for change to
642 bfd_get_alt_debug_link_info. Verify dwz file's build-id.
643 Search for dwz file using build-id.
644 * elfread.c (build_id_bfd_get, build_id_verify)
645 (build_id_to_debug_filename, find_separate_debug_file): Remove.
646
db230ce3
JB
6472013-10-08 Joel Brobecker <brobecker@adacore.com>
648
649 * ada-lang.c (compare_names_with_case): Renamed from
650 compare_names, adding a new parameter "casing" and its handling.
651 New function documentation.
652 (compare_names): New function, implemented using
653 compare_names_with_case.
654
6501c98a
JB
6552013-10-08 Joel Brobecker <brobecker@adacore.com>
656
657 * ada-lang.c (ada_exception_sal): Remove advance declaration.
658
84a1243b
TT
6592013-10-07 Tom Tromey <tromey@redhat.com>
660
661 * objfiles.c (free_objfile_per_bfd_storage): Delete the
662 demangled_names_hash.
663 (free_objfile): Don't delete the demangled_names_hash.
664 * objfiles.h (struct objfile_per_bfd_storage)
665 <demangled_names_hash>: New field.
666 (struct objfile) <demangled_names_hash>: Move to
667 objfile_per_bfd_storage.
668 * symfile.c (reread_symbols): Don't delete the
669 demangled_names_hash.
670 * symtab.c (create_demangled_names_hash): Update.
671 (symbol_set_names): Update.
672
1da77581
TT
6732013-10-07 Tom Tromey <tromey@redhat.com>
674
675 * gdb_bfd.c (struct gdb_bfd_data) <relocation_computed,
676 needs_relocations>: New fields.
677 (gdb_bfd_requires_relocations): New function.
678 * gdb_bfd.h (gdb_bfd_requires_relocations): Declare.
679 * objfiles.c (get_objfile_bfd_data): Disallow sharing if
680 the BFD needs relocations applied.
681
46ecd527
PA
6822013-10-07 Pedro Alves <palves@redhat.com>
683
684 PR breakpoints/11568
685 * breakpoint.c (remove_threaded_breakpoints): Say "no longer in
686 the thread list" instead of "gone".
687
0c557179
SDJ
6882013-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
689
690 * NEWS: Mention new convenience variable $_exitsignal.
691 * corelow.c (core_open): Reset exit convenience variables. Set
692 $_exitsignal to the uncaught signal which generated the corefile.
693 * infrun.c (handle_inferior_event): Reset exit convenience
694 variables. Set $_exitsignal for TARGET_WAITKIND_SIGNALLED.
695 (clear_exit_convenience_vars): New function.
696 * inferior.h (clear_exit_convenience_vars): New prototype.
697
1cc47d81
YQ
6982013-10-06 Yao Qi <yao@codesourcery.com>
699
700 * varobj.h: Add comments to enum varobj_languages.
701
73869dc2
DE
7022013-10-04 Doug Evans <dje@google.com>
703
704 Add support for DWP file format version 2.
705 * NEWS: Mention support for DWP file format version 2.
706 * dwarf2read.c (dwarf2_section_info): Convert asection field to a
707 union of asection, containing_section. New fields virtual_offset
708 and is_virtual. Change type of readin filed from int to char.
709 (dwo_sections, dwo_file): Tweak comments.
710 (dwp_v2_section_ids): New enum.
711 (dwp_sections): New fields abbrev, info, line, loc, macinfo, macro,
712 str_offsets, types.
713 (virtual_v1_dwo_sections): Renamed from virtual_dwo_sections.
714 All uses updated.
715 (virtual_v2_dwo_sections): New struct.
716 (dwp_hash_table): New fields version, nr_columns. Change type of
717 section_pool field to a union.
718 (dwp_file): New field version.
719 (dwarf2_has_info): Check for virtual sections.
720 (get_containing_section): New function.
721 (get_section_bfd_owner, get_section_bfd_section): Call it.
722 (dwarf2_locate_sections): Update.
723 (dwarf2_section_empty_p): Update.
724 (dwarf2_read_section): Handle virtual sections.
725 (locate_dwz_sections): Update.
726 (create_dwp_hash_table): Document and handle V2 format.
727 (locate_v1_virtual_dwo_sections): Renamed from
728 locate_virtual_dwo_sections and update. All callers updated.
729 (create_dwo_unit_in_dwp_v1): Renamed from create_dwo_in_dwp.
730 Delete arg htab. Rename arg section_index to unit_index.
731 All callers updated.
732 (MAX_NR_V1_DWO_SECTIONS): Renamed from MAX_NR_DWO_SECTIONS.
733 All uses updated.
734 (create_dwp_v2_section, create_dwo_unit_in_dwp_v2): New functions.
735 (lookup_dwo_unit_in_dwp): Add V2 support.
736 (dwarf2_locate_dwo_sections): Update.
737 (dwarf2_locate_common_dwp_sections): Renamed from
738 dwarf2_locate_dwp_sections and update. All callers updated.
739 (dwarf2_locate_v2_dwp_sections): New function.
740 (open_and_init_dwp_file): Add V2 support.
741 (read_str_index): New locals str_section, str_offsets_section.
742
9a2c3737
PA
7432013-10-04 Pedro Alves <palves@redhat.com>
744
745 * common/ptid.c (null_ptid, minus_one_ptid, ptid_build)
746 (pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid)
747 (ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p): Replace
748 describing comments with references to ptid.h.
749 * common/ptid.h: Remove intro description of constructors,
750 accessors and predicates.
751 (struct ptid): Reformat.
752 (minus_one_ptid, ptid_build, pid_to_ptid, ptid_get_pid)
753 (ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid): Change
754 describing comments.
755
f5371440
JB
7562013-10-04 Joel Brobecker <brobecker@adacore.com>
757
758 * aix-thread.c (sync_threadlists): Add missing ')' in call
759 to ptid_build.
760
793e1c06
JB
7612013-10-04 Joel Brobecker <brobecker@adacore.com>
762
763 * procfs.c (procfs_init_inferior): Fix typo causing the build
764 to fail.
765
26f0edc1
JB
7662013-10-04 Joel Brobecker <brobecker@adacore.com>
767
768 * aix-thread.c (ptrace32): Remove cast to addr_ptr.
769
5713b9b5
JB
7702013-10-04 Joel Brobecker <brobecker@adacore.com>
771
772 * mi/mi-main.c (run_one_inferior): Add function description.
773 Make ARG a pointer to an integer whose value determines whether
774 we should "run" or "start" the program.
775 (mi_cmd_exec_run): Add handling of the "--start" option.
776 Reject all other command-line options.
777 * NEWS: Add entry for "-exec-run"'s new "--start" option.
778
f48ff2a7
YQ
7792013-10-04 Yao Qi <yao@codesourcery.com>
780
781 * remote-notif.h (REMOTE_NOTIF_ID): New enum.
782 (struct notif_client) <pending_event>: Moved
783 to struct remote_notif_state.
784 <id>: New field.
785 (struct remote_notif_state) <pending_event>: New field.
786 (notif_event_xfree): Declare.
787 * remote-notif.c (handle_notification): Adjust.
788 (notif_event_xfree): New function.
789 (do_notif_event_xfree): Call notif_event_xfree.
790 (remote_notif_state_xfree): Call notif_event_xfree to free
791 each element in field pending_event.
792 * remote.c (discard_pending_stop_replies): Remove declaration.
793 (discard_pending_stop_replies_in_queue): Declare.
794 (remote_close): Call discard_pending_stop_replies_in_queue
795 instead of discard_pending_stop_replies.
796 (remote_start_remote): Adjust.
797 (stop_reply_xfree): Call notif_event_xfree.
798 (notif_client_stop): Adjust initialization.
799 (remote_notif_remove_all): Rename it to ...
800 (remove_stop_reply_for_inferior): ... this. Update comments.
801 Don't check INF is NULL.
802 (discard_pending_stop_replies): Return early if notif_state is
803 NULL. Adjust. Don't check INF is NULL.
804 (remote_notif_get_pending_events): Adjust.
805 (discard_pending_stop_replies_in_queue): New function.
806 (remote_wait_ns): Likewise.
807
5965e028
YQ
8082013-10-04 Yao Qi <yao@codesourcery.com>
809
810 * remote-notif.c (DECLARE_QUEUE_P): Remove.
811 (notif_queue): Remove.
812 (remote_notif_process): Add one parameter 'notif_queue'.
813 Update comments. Callers update.
814 (remote_async_get_pending_events_token): Remove.
815 (remote_notif_register_async_event_handler): Remove.
816 (remote_notif_unregister_async_event_handler): Remove.
817 (handle_notification): Add parameter 'notif_queue'. Update
818 comments. Callers update.
819 (notif_xfree): Remove.
820 (remote_notif_state_allocate): New function.
821 (remote_notif_state_xfree): New function.
822 (_initialize_notif): Remove code to allocate queue.
823 * remote-notif.h (DECLARE_QUEUE_P): Moved from remote-notif.c.
824 (struct remote_notif_state): New.
825 (handle_notification): Update declaration.
826 (remote_notif_process): Likewise.
827 (remote_notif_register_async_event_handler): Remove.
828 (remote_notif_unregister_async_event_handler): Remove.
829 (remote_notif_state_allocate): Declare.
830 (remote_notif_state_xfree): Declare.
831 * remote.c (struct remote_state) <notif_state>: New field.
832 (remote_close): Don't call
833 remote_notif_unregister_async_event_handler. Call
834 remote_notif_state_xfree.
835 (remote_open_1): Don't call
836 remote_notif_register_async_event_handler. Call
837 remote_notif_state_allocate.
838
5e5ac9a5
YQ
8392013-10-04 Yao Qi <yao@codesourcery.com>
840
841 * varobj.c (create_child_with_value): Remove 'const' from the
842 type of parameter 'name'.
843 (varobj_add_child): Likewise.
844 (install_dynamic_child): Remove 'const' from the type of
845 parameter 'name'.
846 (varobj_add_child): Likewise.
847 (create_child_with_value): Likewise. Update comments. Don't
848 duplicate 'name'.
849 (update_dynamic_varobj_children): Duplicate 'name'
850 and pass it to install_dynamic_child.
851
06ab7b19
PM
8522013-10-03 Phil Muldoon <pmuldoon@redhat.com>
853
854 * python/py-value.c (convert_value_from_python): Move PyInt_Check
855 conversion logic to occur after PyLong_Check. Comment on order
856 change significance.
857 * python/py-arch.c (archpy_disassemble): Comment on order of
858 conversion for integers and longs.
859
8ae377e8
PA
8602013-10-03 Pedro Alves <palves@redhat.com>
861
862 * common/linux-ptrace.c (linux_check_ptrace_features): Factor out
863 the PTRACE_O_TRACESYSGOOD and PTRACE_O_TRACEFORK to separate
864 functions. Always test for PTRACE_O_TRACESYSGOOD even if
865 PTRACE_O_TRACEFORK is not supported.
866 (linux_test_for_tracesysgood): New function.
867 (linux_test_for_tracefork): New function, factored out from
868 linux_check_ptrace_features, and also don't kill child_pid here.
869
b1328b1b
TG
8702013-10-03 Tristan Gingold <gingold@adacore.com>
871
872 * i386-darwin-nat.c (i386_darwin_dr_set): Fix argument type.
873 Remove verbose error reporting. Use detected state to
874 thread_set_state call.
875 (i386_darwin_dr_get): Fix return type. Remove verbose error
876 report.
877 Remove trailing spaces.
878
901461f8
PA
8792013-10-02 Pedro Alves <palves@redhat.com>
880
881 * cp-valprint.c (cp_print_value_fields): Adjust calls to
882 val_print_optimized_out.
883 * jv-valprint.c (java_print_value_fields): Likewise.
884 * p-valprint.c (pascal_object_print_value_fields): Likewise.
885 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
886 <DWARF_VALUE_REGISTER>: If the register was not saved, return a
887 new optimized out value.
888 * findvar.c (address_from_register): Likewise.
889 * frame.c (put_frame_register): Tweak error string to say the
890 register was not saved, rather than optimized out.
891 * infcmd.c (default_print_one_register_info): Adjust call to
892 val_print_optimized_out. Use value_of_register instead of
893 get_frame_register_value.
894 * mi/mi-main.c (output_register): Use value_of_register instead of
895 get_frame_register_value.
896 * valprint.c (valprint_check_validity): Likewise.
897 (val_print_optimized_out): New value parameter. If the value is
898 lval_register, print <not saved> instead.
899 (value_check_printable, val_print_scalar_formatted): Adjust calls
900 to val_print_optimized_out.
901 * valprint.h (val_print_optimized_out): New value parameter.
902 * value.c (struct value) <optimized_out>: Extend comment.
903 (error_value_optimized_out): New function.
904 (require_not_optimized_out): Use it. Use a different string for
905 lval_register values.
906 * value.h (error_value_optimized_out): New declaration.
907 * NEWS: Mention <not saved>.
908
042a84d9
JB
9092013-10-02 Joel Brobecker <brobecker@adacore.com>
910
911 * symtab.c (compare_search_syms): Use FILENAME_CMP instead of
912 strcmp to compare two symtab filenames.
913
6b9780fb
JB
9142013-10-02 Joel Brobecker <brobecker@adacore.com>
915
916 * symtab.c (search_symbols_equal): Delete.
917 (sort_search_symbols_remove_dups): Replace call to
918 search_symbols_equal by call to compare_search_syms,
919 adjusting as necessary.
920
751e7549
PM
9212013-10-02 Phil Muldoon <pmuldoon@redhat.com>
922
923 PR python/15579
924
925 * python/python.c: Document gdb.execute command in Python help.
926
1efd7661
PM
9272013-10-02 Phil Muldoon <pmuldoon@redhat.com>
928
929 * python/py-frame.c (frame_info_to_frame_object): Use
930 gdbpy_convert_exception. Clean up Python object on failure.
931
562fc849
PM
9322013-10-02 Phil Muldoon <pmuldoon@redhat.com>
933
934 * python/lib/gdb/command/frame_filters.py
935 (InfoFrameFilter.list_frame_filters): Retrieve exception manually.
936 (ShowFrameFilterPriority.invoke): Ditto.
937
d7561cbb
KS
9382013-10-01 Keith Seitz <keiths@redhat.com>
939
940 * linespec.c (struct ls_parser): Make 'saved_arg' const.
941 (parse_linespec): Make 'argptr' const.
942 Remove temporary cast of 'argptr' to const char **.
943 (decode_line_full): Pass const pointer to parse_linespec.
944 (decode_line_1): Likewise.
945 (decode_objc): Make local variable 'new_argptr' const.
946 (find_function_symbols): Remove temporary cast to char *
947 to find_imps.
948 * objc-lang.c (find_imps): Make argument 'method' const.
949 Return const.
950 * objc-lang.h (find_imps): Likewise.
951
9522013-10-01 Keith Seitz <keiths@redhat.com>
953
954 * completer.c (skip_quoted_chars): Make all arguments const.
955 Return const.
956 (skip_quoted): Likewise.
957 * completer.h (skip_quoted_chars): Likewise.
958 (skip_quoted): Likewise.
959 * defs.h (skip_quoted): Remove duplicate declaration.
960 * jv-exp.y: Include completer.h.
961 (yylex): Remove unneccessary cast to char * fro skip_quoted.
962 * p-exp.y: Include completer.h.
963
9642013-10-01 Keith Seitz <keiths@redhat.com>
965
966 * c-exp.y (parse_number): Make first argument const.
967 Make a copy of the input to manipulate.
968 (c_parse_escape): Make first argument const.
969 Make local variable 'tokptr' const.
970 (parse_string_or_char): Make first two arguments const.
971 (macro_original_text): Make const.
972 (lex_one_token): Make local variable 'tokstart' const.
973 Likewise for local variables named 'p'.
974 Cast away const for struct stoken (temporary).
975 * c-lang.h (c_parse_escpae): Make first argument const.
976 * cli/cli-cmds.c (echo_command): Make local variable 'p'
977 const.
978 * cli/cli-setshow.c (do_set_command): Likewise for 'p' in
979 var_string case.
980 * f-exp.y (parse_number): Make first argument const.
981 (match_string_literal): Make local variable 'tokstart'
982 const.
983 (yylex): Make local variable 'p' const.
984 Cast away const for struct stoken (temporary).
985 * go-exp.y (parse_number): Make first argument const.
986 (parse_string_or_char): Likewise.
987 Make local variable 'tokstart' const.
988 (lex_one_token): Likewise for numerous locals called 'p'.
989 Cast away const for struct stoken (temporary).
990 * jv-exp.y (parse_number): Make first argument const.
991 Make local variables 'tokstart' and 'tokptr' const.
992 Cast away const for call to skip_quoted (temporary).
993 (yylex): Make local variable 'p' const.
994 Cast away const for struct stoken (temporary).
995 * m2-exp.y (parse_number): Make local variable 'p' const.
996 (yylex): Likewise for 'tokstart'.
997 Cast away const for struct stoken (temporary).
998 Make local variable 'p' const.
999 * macroexp.c (get_character_constant): Pass a const string
1000 to c_parse_escape.
1001 (get_string_literal): Likewise.
1002 (macro_expand_next): Make first argument const.
1003 Cast away const for init_shared_buffer.
1004 * macroexp.h (macro_expand_next): Make first argument const.
1005 * p-exp.y (yylex): Make a local copy of 'lexptr'.
1006 Pass a const string to c_parse_escape.
1007 Make local variables 'p' and 'namestart' const.
1008 * parse.c (lexptr): Make const.
1009 (prev_lexptr): Likewise.
1010 (find_template_name_end): Return const.
1011 Make argument const, too.
1012 (parse_exp_in_context): Make first argument const.
1013 Remove the entire const_hack.
1014 (parse_exp_in_context_1): Make first argument const.
1015 * parser-defs.h (find_template_name_end): Return const.
1016 Make argument const, too.
1017 (lexptr): Make const.
1018 (prev_lexptr): Likewise.
1019 * utils.c (parse_escape): Make second argument const.
1020 * utils.h (parse_escape): Likewise.
1021
10222013-10-01 Keith Seitz <keiths@redhat.com>
1023
1024 * ada-exp.y (write_object_renaming): Update: struct stoken.ptr
1025 is now const.
1026 (block_lookup): Make 'raw_name' and 'name' const.
1027 * ada-lex.l (processString): Update for struct stoken.ptr.
1028 * c-exp.y (qualified_name : TYPENAME COLONCOLON '~' name): Likewise.
1029 (operator_stoken): Likewise.
1030 (lex_one_token): Remove temporary cast to char * for
1031 'yylval.sval.ptr'.
1032 * f-exp.y (yylex): Likewise.
1033 * gdb-types.c (lookup_struct_elt_type): Make argument 'name' const.
1034 * gdbtypes.h (lookup_struct_elt_type): Likewisee.
1035 * go-exp.y (lex_one_token): Remove temporary cast to char * for
1036 'yylval.sval.ptr'.
1037 * jv-exp.y (QualifiedName): Update for struct stoken.ptr.
1038 (yylex): Remove temporary cast to char * for 'yylval.sval.ptr'.
1039 * linespec.c (struct ls_parser): Make 'stream' const.
1040 (find_parameter_list_end): Make argument 'input' and local
1041 variable 'p' const.
1042 (linespec_lexer_lex_string): Make local variables 'start' and
1043 'p' const.
1044 Use skip_spaces_const instead of skip_spaces.
1045 (linespec_lexer_peek_token): Make local variable 'saved_stream'
1046 const.
1047 (parse_linespec): Temporarily cast 'argptr' to const for
1048 'parser->lexer.stream'.
1049 * m2-exp.y (yylex): Remove temporary cast to char * for
1050 'yylval.sval.ptr'.
1051 * objc-lang.c (add_msglist): Make local variable 'p' const.
1052 * p-exp.y (exp : exp '['): Update for struct stoken.ptr.
1053 (exp : STRING): Make 'sp' const.
1054 (parse_number): Make argument 'p' const.
1055 * parser-defs.h (struct stoken): Make 'ptr' const.
1056
193a8eac
DE
10572013-10-01 Doug Evans <dje@google.com>
1058
1059 * cli/cli-decode.c: Remove unnecessary inclusion of tui/tui.h.
1060
2213e2be
YQ
10612013-10-01 Yao Qi <yao@codesourcery.com>
1062
1063 * varobj.c (c_value_of_root): Remove declaration.
1064 (cplus_value_of_root, java_value_of_root): Likewise.
1065 (ada_value_of_root): Likewise.
1066 (struct language_specific) <value_of_root>: Remove.
1067 (languages): Update initialization.
1068 (check_scope): Move earlier.
1069 (c_value_of_root): Move earlier and rename to ...
1070 (value_of_root_1): ... this.
1071 (value_of_root): Caller update.
1072 (cplus_value_of_root, java_value_of_root): Remove.
1073 (ada_value_of_root): Remove.
1074
c573f273
YQ
10752013-10-01 Yao Qi <yao@codesourcery.com>
1076
1077 * varobj.c (varobj_format_string): Remove "unknown".
1078 (languages): Remove the first element.
1079 * varobj.h (enum varobj_languages): Remove vlang_c.
1080
56250258
YQ
10812013-10-01 Yao Qi <yao@codesourcery.com>
1082
1083 * varobj.c (struct language_specific) <language>: Remove.
1084 (languages): Update the initialization.
1085
29f9ebfa
YQ
10862013-10-01 Yao Qi <yao@codesourcery.com>
1087
1088 * arm-wince-tdep.c: Remove inclusion of "solib.h" and
1089 "solib-target.h". Include "windows-tdep.h".
1090 (arm_wince_init_abi): Call windows_init_abi. Remove call to
1091 set_solib_ops and set_gdbarch_has_dos_based_file_system.
1092 * configure.tgt (arm*-wince-pe | arm*-*-mingw32ce*): Append
1093 windows-tdep.o to gdb_target_obs.
1094
64870a42
YQ
10952013-10-01 Yao Qi <yao@codesourcery.com>
1096
1097 * amd64-windows-tdep.c: Remove inclusion of "solib.h" and
1098 "solib-target.h".
1099 (amd64_windows_init_abi): Don't call set_solib_ops and
1100 set_gdbarch_iterate_over_objfiles_in_search_order. Call
1101 windows_init_abi instead.
1102 * i386-cygwin-tdep.c: Remove inclusion of "solib.h" and
1103 "solib-target.h".
1104 (i386_cygwin_init_abi): Don't call set_solib_ops,
1105 set_gdbarch_has_dos_based_file_system and
1106 set_gdbarch_iterate_over_objfiles_in_search_order. Call
1107 windows_init_abi instead.
1108 * windows-tdep.c: Include "solib.h" and "solib-target.h".
1109 (windows_init_abi): New function.
1110 (windows_iterate_over_objfiles_in_search_order): Make it
1111 static.
1112 * windows-tdep.h (windows_init_abi): Declare.
1113 (windows_iterate_over_objfiles_in_search_order): Remove
1114 declaration.
1115
0aebdefa
JB
11162013-10-01 Jerome Guitton <guitton@adacore.com>
1117
1118 Checked in by Joel Brobecker <brobecker@adacore.com>
1119 * system-gdbinit/elinos.py (get_elinos_environment): Return an
1120 incomplete dictionnary instead of None in case of missing
1121 environment variables.
1122 (elinos_init): in case of an incomplete environment, best
1123 effort to load system libraries instead of abort.
1124
1c8e84b0
JB
11252013-10-01 Joel Brobecker <brobecker@adacore.com>
1126
1127 * ada-lang.c (ada_has_this_exception_support): Ignore
1128 mst_solib_trampoline minimal symbols.
1129
61d82a0d
TG
11302013-09-30 Tristan Gingold <gingold@adacore.com>
1131
1132 * i386-darwin-nat.c (darwin_complete_target): Install methods for
1133 hardware watchpoint.
1134 (i386_darwin_dr_set): Support 32 and 64 bit states.
1135 (i386_darwin_dr_get): Likewise.
1136 (i386_darwin_dr_set_control): Make static.
1137 (i386_darwin_dr_set_addr, i386_darwin_dr_get_addr)
1138 (i386_darwin_dr_get_status, i386_darwin_dr_get_control): Likewise.
1139
dfd4cc63
LM
11402013-09-30 Luis Machado <lgustavo@codesourcery.com>
1141
1142 * aarch64-linux-nat.c: Replace PIDGET with ptid_get_pid.
1143 Replace TIDGET with ptid_get_lwp.
1144 Replace GET_LWP with ptid_get_lwp.
1145 * aix-thread.c (BUILD_THREAD, BUILD_LWP): Remove.
1146 Replace BUILD_THREAD with ptid_build.
1147 Replace BUILD_LWP with ptid_build.
1148 Replace PIDGET with ptid_get_pid.
1149 Replace TIDGET with ptid_get_lwp.
1150 * alphabsd-nat.c: Replace PIDGET with ptid_get_pid.
1151 * amd64-linux-nat.c: Replace PIDGET with ptid_get_pid.
1152 Replace TIDGET with ptid_get_lwp.
1153 * amd64bsd-nat.c: Replace PIDGET with ptid_get_pid.
1154 * arm-linux-nat.c: Replace PIDGET with ptid_get_pid.
1155 Replace TIDGET with ptid_get_lwp.
1156 Replace GET_LWP with ptid_get_lwp.
1157 * armnbsd-nat.c: Replace PIDGET with ptid_get_pid.
1158 * auxv.c: Likewise.
1159 * breakpoint.c: Likewise.
1160 * common/ptid.c (ptid_is_pid): Condense check for
1161 null_ptid and minus_one_ptid.
1162 (ptid_lwp_p): New function.
1163 (ptid_tid_p): New function.
1164 * common/ptid.h: Update comments for accessors.
1165 (ptid_lwp_p): New prototype.
1166 (ptid_tid_p): New prototype.
1167 * defs.h (PIDGET, TIDGET, MERGEPID): Do not define.
1168 * gcore.c: Replace PIDGET with ptid_get_pid.
1169 * gdbthread.h: Likewise.
1170 * gnu-nat.c: Likewise.
1171 * hppa-linux-nat.c: Replace PIDGET with ptid_get_pid.
1172 Replace TIDGET with ptid_get_lwp.
1173 * hppabsd-nat.c: Replace PIDGET with ptid_get_pid.
1174 * hppanbsd-nat.c: Likewise.
1175 * i386-linux-nat.c: Replace PIDGET with ptid_get_pid.
1176 Replace TIDGET with ptid_get_lwp.
1177 * i386bsd-nat.c: Replace PIDGET with ptid_get_pid.
1178 * ia64-linux-nat.c: Replace PIDGET with ptid_get_pid.
1179 * infcmd.c: Likewise.
1180 * inferior.h: Likewise.
1181 * inflow.c: Likewise.
1182 * infrun.c: Likewise.
1183 * linux-fork.c: Likewise.
1184 * linux-nat.c: Replace PIDGET with ptid_get_pid.
1185 Replace GET_PID with ptid_get_pid.
1186 Replace is_lwp with ptid_lwp_p.
1187 Replace GET_LWP with ptid_get_lwp.
1188 Replace BUILD_LWP with ptid_build.
1189
5b4e221c
MF
11902013-09-28 Mike Frysinger <vapier@gentoo.org>
1191
1192 * common/linux-btrace.c: Move sys/syscall.h out of the
1193 HAVE_LINUX_PERF_EVENT_H check and wrap it in HAVE_SYS_SYSCALL_H.
1194 Also check for SYS_perf_event_open before attempting to buid.
1195
57d63ce2
DE
11962013-09-27 Doug Evans <dje@google.com>
1197
19ac8c2e
DE
1198 * dwarf2read.c (dwarf2_section_info): Add comment.
1199 (dwp_file): Split loaded_cutus into loaded_cus, loaded_tus.
1200 All uses updated.
1201 (dwarf2_section_empty_p): Rename arg from "info" to "section".
1202 (dwarf2_read_section): Delete unused local "header". Add section
1203 name to error message.
1204 (create_dwo_in_dwp): Tweak comment.
1205 (MAX_NR_DWO_SECTIONS): Combine count of .debug_macro + .debug_macinfo.
1206
a32a8923
DE
1207 * dwarf2read.c (die_reader_specs): Tweak comment.
1208 (get_section_bfd_owner, get_section_bfd_section): New functions.
1209 (get_section_name, get_section_file_name): New functions.
1210 (get_section_id, get_section_flags): New functions.
1211 (*): Use new functions to access section fields.
1212
57d63ce2
DE
1213 * dwarf2read.c (struct dwo_file): Add/tweak comments.
1214 (lookup_dwo_unit_in_dwp): Renamed from lookup_dwo_in_dwp. Remove
1215 arg "htab". All callers updated.
1216 (create_debug_types_hash_table): Remove redundant copy of
1217 abbrev_section.
1218 (create_dwo_in_dwp): Tweak comments.
1219 (read_str_index): Tweak comment. Record dwarf form name in static
1220 local.
1221
3736004f
PA
12222013-09-27 Pedro Alves <palves@redhat.com>
1223
1224 * remote.h (REMOTE_SYSROOT_PREFIX): New define.
1225 (remote_filename_p): Add comment.
1226 * remote.c (remote_filename_p): Adjust to use
1227 REMOTE_SYSROOT_PREFIX.
1228 * solib.c (solib_find): When deciding whether we need to add a
1229 directory separator, check whether the sysroot is "remote:"
1230 instead of checking whether the patch has a drive spec. Add
1231 comments.
1232
5b5596ff
PA
12332013-09-27 Pedro Alves <palves@redhat.com>
1234
1235 * remote.c (struct stop_reply) <solibs_changed, replay_event>:
1236 Delete fields.
1237 (remote_parse_stop_reply): Adjust, setting event->ws.kind
1238 directly.
1239
b5eef7aa
JK
12402013-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1241
1242 Fix set debug frame output.
1243 * frame.c (fprint_frame_type): Add TAILCALL_FRAME entry. Move
1244 SENTINEL_FRAME entry lower to match enum frame_type order.
1245
5b856f36
PM
12462013-09-26 Pierre Muller <muller@sourceware.org>
1247
1248 Replace constant values 8 to 15 by AMD64_R8_REGNUM to
1249 AMD64_R15_REGNUM when a register index is expected.
1250 * amd64-windows-tdep.c (amd64_windows_dummy_call_integer_regs):
1251 Substitute in array.
1252 * amd64-tdep.c (amd64_dwarf_regmap): Ditto.
1253 (amd64_push_arguments): Substitute in integer_regnum array.
1254
ade7ed9e
DE
12552013-09-25 Doug Evans <dje@google.com>
1256
d3e81981
DE
1257 * objfiles.c (allocate_objfile): Move comment to better place.
1258
8fb8eb5c
DE
1259 New option "set debug symfile on".
1260 * NEWS: Mention "set debug symfile".
1261 * Makefile.in (SFILES): Add symfile-debug.c.
1262 (COMMON_OBS): Add symfile-debug.o.
1263 * elfread.c (elf_symfile_read): Use objfile_set_sym_fns to set the
1264 objfile's symbol functions.
1265 * objfiles.h (objfile_set_sym_fns): Declare.
1266 * symfile-debug.c: New file.
1267 * symfile.c (syms_from_objfile_1): Use objfile_set_sym_fns to set the
1268 objfile's symbol functions.
1269 (reread_symbols): Ditto.
1270
c256e171
DE
1271 * symfile.h (struct sym_fns): Delete member "sym_flavour".
1272 All uses updated.
1273 (add_symtab_fns): Update prototype.
1274 * symfile.c (sym_fns_ptr): Delete. Replace with ...
1275 (registered_sym_fns): ... this.
1276 (symtab_fns): Update.
1277 (add_symtab_fns): New arg "flavour". All callers updated.
1278 (find_sym_fns): Rewrite to use new sym_fns registry.
1279
f56ce883
DE
1280 * symfile.h (struct sym_fns): Add "objfile" argument to
1281 sym_read_linetable. All uses updated.
1282
20c681d1
DE
1283 * symtab.c (domain_name, search_domain_name): New functions.
1284 * symtab.h (domain_name, search_domain_name): Declare.
1285
ade7ed9e
DE
1286 * symfile.h (struct quick_symbol_functions): Reorg arg list of
1287 map_matching_symbols so objfile is first. All uses updated.
1288 * dwarf2read.c (dw2_map_matching_symbols): Update signature.
1289 * psymtab.c (map_matching_symbols_psymtab): Update signature.
1290
7d760051
UW
12912013-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
1292
1293 PR shlibs/8882
1294 * solib-svr4.c (svr4_read_so_list): Skip the vDSO when reading
1295 link map entries.
1296
020f7036
DE
12972013-09-24 Doug Evans <dje@google.com>
1298
1299 * objfiles.c (free_objfile): Move comment.
1300
598402f0
JB
13012013-09-24 Joel Brobecker <brobecker@adacore.com>
1302
1303 * ada-exp.y (string_to_operator): Delete.
1304 (dummy_string_to_ada_operator): Delete.
1305
bf4d6c1c
JB
13062013-09-24 Joel Brobecker <brobecker@adacore.com>
1307
1308 Revert:
1309 * i386-tdep.h (enum amd64_reg_class): New, moved here from
1310 amd64-tdep.c.
1311 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
1312 call_dummy_integer_regs, and classify.
1313 * amd64-tdep.h (amd64_classify): Add declaration.
1314 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
1315 (amd64_reg_class): Delete, moved to i386-tdep.h.
1316 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
1317 Replace call to amd64_classify by call to tdep->classify.
1318 (amd64_push_arguments): Get the list of registers to use for
1319 passing integer parameters from the gdbarch tdep structure,
1320 rather than using a hardcoded one. Replace calls to amd64_classify
1321 by calls to tdep->classify.
1322 (amd64_push_dummy_call): Get the register number used for
1323 the "hidden" argument from tdep->call_dummy_integer_regs.
1324 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
1325 and tdep->call_dummy_integer_regs. Set tdep->classify.
1326
849e9755
JB
13272013-09-24 Joel Brobecker <brobecker@adacore.com>
1328
1329 Revert:
1330 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
1331 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
1332 where tdep->memory_args_by_pointer is non-zero.
1333
c1459fd6
JB
13342013-09-24 Joel Brobecker <brobecker@adacore.com>
1335
1336 Revert:
1337 * i386-tdep.h (struct gdbarch_tdep): Add new field
1338 integer_param_regs_saved_in_caller_frame.
1339 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
1340 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
1341
20c2e3e0
JB
13422013-09-24 Joel Brobecker <brobecker@adacore.com>
1343
874440b8 1344 * amd64-windows-tdep.c: #include "value.h"
20c2e3e0
JB
1345 (amd64_windows_classify): Delete.
1346 (amd64_windows_passed_by_integer_register)
1347 (amd64_windows_passed_by_xmm_register)
1348 (amd64_windows_passed_by_pointer)
1349 (amd64_windows_adjust_args_passed_by_pointer)
1350 (amd64_windows_store_arg_in_reg, amd64_windows_push_arguments)
1351 (amd64_windows_push_dummy_call): New functions.
1352 (amd64_windows_init_abi): Remove setting of
1353 tdep->call_dummy_num_integer_regs, tdep->call_dummy_integer_regs,
1354 tdep->classify, tdep->memory_args_by_pointer and
1355 tdep->integer_param_regs_saved_in_caller_frame.
1356 Add call to set_gdbarch_push_dummy_call.
1357
82bf32bc
JK
13582013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1359
1360 * dwarf2read.c (open_and_init_dwp_file): Try open_dwp_file also with
1361 objfile->original_name.
1362
24ba069a
JK
13632013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1364
1365 Pass down original filename for objfile.
1366 * coffread.c (coff_symfile_read): Update symbol_file_add_separate call.
1367 * elfread.c (elf_symfile_read): Likewise.
1368 * jit.c (jit_object_close_impl): Update allocate_objfile call, no
1369 longer set ORIGINAL_NAME.
1370 (jit_bfd_try_read_symtab): Update symbol_file_add_from_bfd call.
1371 * jv-lang.c (get_dynamics_objfile): Update allocate_objfile call.
1372 * machoread.c (macho_add_oso_symfile): Add parameter name. Update
1373 symbol_file_add_from_bfd call.
1374 (macho_symfile_read_all_oso): Update two macho_add_oso_symfile calls.
1375 (macho_check_dsym): Add parameter filenamep. Change function comment.
1376 Set *filenamep.
1377 (macho_symfile_read): New variable dsym_filename. Update
1378 macho_check_dsym call. Use it for symbol_file_add_separate.
1379 * objfiles.c (allocate_objfile): Add parameter name. New comment for
1380 it. Use it for objfile->original_name.
1381 (objfile_name): Return OBFD's filename, if available.
1382 * objfiles.h (allocate_objfile): Add new parameter name.
1383 * solib.c (solib_read_symbols): Update symbol_file_add_from_bfd call.
1384 * symfile-mem.c (symbol_file_add_from_memory): Update
1385 symbol_file_add_from_bfd call.
1386 * symfile.c (read_symbols): Update symbol_file_add_separate call, new
1387 comment for it.
1388 (symbol_file_add_with_addrs): New parameter name, add function comment
1389 for it. Remove variable name. Update allocate_objfile call.
1390 (symbol_file_add_separate): New parameter name, add function comment
1391 for it. Update symbol_file_add_with_addrs call.
1392 (symbol_file_add_from_bfd): New parameter name. Update
1393 symbol_file_add_with_addrs call.
1394 (symbol_file_add): Update symbol_file_add_from_bfd call.
1395 (reread_symbols): New variable original_name. Save
1396 objfile->original_name by it.
1397 * symfile.h (symbol_file_add_from_bfd, symbol_file_add_separate): Add
1398 second parameter.
1399
4262abfb
JK
14002013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1401
1402 Code cleanup: Add objfile_name accessor function.
1403 * ada-lang.c (is_known_support_routine): Use objfile_name.
1404 * auto-load.c (source_gdb_script_for_objfile)
1405 (auto_load_objfile_script): Likewise.
1406 * coffread.c (coff_symtab_read, read_one_sym): Likewise.
1407 * dbxread.c (dbx_symfile_read): Likewise.
1408 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
1409 * dwarf2loc.c (locexpr_describe_location_piece): Likewise.
1410 * dwarf2read.c (dwarf2_get_dwz_file, dwarf2_read_index)
1411 (dw2_symtab_iter_next, dw2_expand_symtabs_matching)
1412 (lookup_dwp_signatured_type, lookup_dwo_unit)
1413 (dwarf2_build_psymtabs_hard, scan_partial_symbols, process_queue)
1414 (fixup_go_packaging, process_imported_unit_die, dwarf2_physname)
1415 (read_import_statement, create_dwo_cu, open_and_init_dwp_file)
1416 (lookup_dwo_cutu, read_call_site_scope, dwarf2_ranges_read)
1417 (dwarf2_record_block_ranges, read_common_block, read_typedef)
1418 (read_subrange_type, load_partial_dies, read_partial_die)
1419 (read_addr_index_1, read_str_index, dwarf_decode_lines_1)
1420 (die_containing_type, build_error_marker_type, lookup_die_type)
1421 (follow_die_ref_or_sig, follow_die_ref, dwarf2_fetch_die_loc_sect_off)
1422 (dwarf2_fetch_constant_bytes, follow_die_sig, get_signatured_type)
1423 (get_DW_AT_signature_type, write_psymtabs_to_index)
1424 (save_gdb_index_command): Likewise.
1425 * elfread.c (find_separate_debug_file_by_buildid, elf_symfile_read):
1426 Likewise.
1427 * expprint.c (dump_subexp_body_standard): Likewise.
1428 * gdbtypes.c (type_name_no_tag_or_error): Likewise.
1429 * jit.c (jit_object_close_impl): Use the objfile field name renamed to
1430 original_name.
1431 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New variable
1432 obj_name, use objfile_name for it, use the variable.
1433 (try_thread_db_load_from_pdir, has_libpthread, thread_db_new_objfile):
1434 Use objfile_name.
1435 * machoread.c (macho_symtab_read, macho_check_dsym)
1436 (macho_symfile_relocate): Likewise.
1437 * maint.c (maintenance_translate_address): Likewise.
1438 * minidebug.c (find_separate_debug_file_in_section): Likewise.
1439 * minsyms.c (install_minimal_symbols): Likewise.
1440 * objfiles.c (allocate_objfile): Use the objfile field name renamed to
1441 original_name.
1442 (filter_overlapping_sections): Use objfile_name.
1443 (objfile_name): New function.
1444 * objfiles.h (struct objfile): Rename field name to original_name.
1445 (objfile_name): New prototype.
1446 * printcmd.c (sym_info, address_info): Use objfile_name.
1447 * probe.c (parse_probes, collect_probes, compare_probes)
1448 (info_probes_for_ops): Likewise.
1449 * progspace.c (clone_program_space): Likewise.
1450 * psymtab.c (require_partial_symbols, dump_psymtab, allocate_psymtab)
1451 (maintenance_info_psymtabs): Likewise.
1452 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
1453 (source_section_scripts): Likewise.
1454 * python/py-objfile.c (objfpy_get_filename): Likewise.
1455 * python/py-progspace.c (pspy_get_filename): Likewise.
1456 * solib-aix.c (solib_aix_get_toc_value): Likewise.
1457 * solib-som.c (match_main, som_solib_section_offsets): Likewise.
1458 * solib.c (solib_read_symbols): Likewise.
1459 * stabsread.c (scan_file_globals): Likewise.
1460 * stap-probe.c (handle_stap_probe): Likewise.
1461 * symfile.c (symbol_file_clear, separate_debug_file_exists)
1462 (find_separate_debug_file_by_debuglink): Likewise.
1463 (reread_symbols): Likewise. Use the objfile field name renamed to
1464 original_name.
1465 (allocate_symtab): Use objfile_name.
1466 * symmisc.c (print_symbol_bcache_statistics, print_objfile_statistics)
1467 (dump_objfile, dump_msymbols, dump_symtab_1)
1468 (maintenance_print_msymbols, maintenance_print_objfiles)
1469 (maintenance_info_symtabs, maintenance_check_symtabs): Likewise.
1470 * target.c (target_translate_tls_address, target_info): Likewise.
1471 * xcoffread.c (xcoff_initial_scan): Make variable name const. Use
1472 objfile_name.
1473
4721dc18
JK
14742013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1475
1476 Code cleanup.
1477 * probe.c (parse_probes): Rename variable objfile_name to
1478 objfile_namestr.
1479
a61d6db8
JK
14802013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1481
1482 Remove solib-sunos.c.
1483 * Makefile.in (ALLDEPFILES): Remove solib-sunos.c.
1484 * config/m68k/obsd.mh (NATDEPFILES): Remove solib-sunos.o.
1485 * objfiles.c (rt_common_objfile): Remove.
1486 (free_objfile): Remove rt_common_objfile comparison.
1487 * objfiles.h (rt_common_objfile): Remove.
1488 * solib-sunos.c: Remove.
1489 * symfile.c (reread_symbols): Remove solib-sunos.c comment.
1490
2659903b
JK
14912013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1492
1493 Remove a.out NetBSD and OpenBSD hosts.
1494 * NEWS (Removed native configurations): New.
1495 * config/arm/nbsdaout.mh: Remove.
1496 * config/i386/nbsdaout.mh: Remove.
1497 * config/i386/obsdaout.mh: Remove.
1498 * config/m68k/nbsdaout.mh: Remove.
1499 * config/sparc/nbsdaout.mh: Remove.
1500 * config/vax/nbsdaout.mh: Remove.
1501 * configure.host (arm*-*-netbsd*, i[34567]86-*-netbsd*)
1502 (i[34567]86-*-openbsd[0-2].*, i[34567]86-*-openbsd3.[0-3])
1503 (m68*-*-netbsd*, sparc-*-netbsd*, vax-*-netbsd*): Add them to obsolete
1504 error.
1505 (arm*-*-netbsd*, i[34567]86-*-netbsd*, i[34567]86-*-openbsd[0-2].*)
1506 (i[34567]86-*-openbsd3.[0-3], m68*-*-netbsd*, sparc-*-netbsdaout*)
1507 (sparc-*-netbsd*, vax-*-netbsd*): Remove.
1508
f60e2d5c
TT
15092013-09-23 Tom Tromey <tromey@redhat.com>
1510
1511 * linespec.c (struct minsym_and_objfile): Remove.
1512 (minsym_and_objfile_d): Remove.
1513 (struct linespec, struct collect_info, linespec_parse_basic)
1514 (convert_linespec_to_sals, linespec_parser_delete, decode_objc)
1515 (compare_msymbols, find_method, find_function_symbols)
1516 (find_linespec_symbols, struct collect_minsyms, compare_msyms)
1517 (add_minsym, search_minsyms_for_name): Update.
1518
d3eaaf66
AB
15192013-09-23 Andrew Burgess <aburgess@broadcom.com>
1520
1521 * regcache.c: Add include of valprint.h.
1522 (dump_endian_bytes): Delete.
1523 (regcache_dump): Use print_hex_chars not dump_endian_bytes.
1524
2cc762b5
AB
15252013-09-23 Andrew Burgess <aburgess@broadcom.com>
1526
1527 * sh64-tdep.c (sh64_do_fp_register): Use print_hex_chars.
1528
96181529
PA
15292013-09-19 Pedro Alves <palves@redhat.com>
1530
1531 * breakpoint.c (remove_threaded_breakpoints): Skip non-user
1532 breakpoints.
1533
9b3f3ee6
TS
15342013-09-19 Pedro Alves <palves@redhat.com>
1535 Thomas Schwinge <thomas@codesourcery.com>
1536 Yue Lu <hacklu.newborn@gmail.com>
1537
1538 * gnu-nat.c (gnu_read_inferior, gnu_write_inferior): Make static.
1539 Take a gdb_byte pointer instead of a char pointer.
1540
1541 * gnu-nat.c (gnu_xfer_memory): Adjust interface as
1542 gnu_xfer_partial helper.
1543 (gnu_xfer_partial): New function.
1544 (gnu_target): Don't install a deprecated_xfer_memory hook.
1545 Install a to_xfer_partial hook.
1546
69150c3d
JK
15472013-09-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1548
1549 Constification.
1550 * main.c (captured_main): Replace catch_command_errors by
1551 catch_command_errors_const. Twice.
1552 * symfile.c (symbol_file_add_main_1): Make args parameter const.
1553 (symbol_file_add): Make name parameter const.
1554 (symbol_file_add_main, symbol_file_add_main_1): Make args parameter const.
1555 (symfile_bfd_open): Make name parameter const, rename it to cname. Add
1556 variable name. Change their usage accordingly.
1557 * symfile.h (symbol_file_add, symfile_bfd_open): Make first parameter
1558 const.
1559 (symbol_file_add_main): Make args parameter const.
1560
086850b2
UW
15612013-09-18 Raunaq Bathija <raunaq12@in.ibm.com>
1562 Ulrich Weigand <uweigand@de.ibm.com>
1563
1564 * xcoffread.c (struct coff_symbol): Use CORE_ADDR as type
1565 of c_value member.
1566 (read_xcoff_symtab): Use CORE_ADDR as type of fcn_start_addr.
1567
ca08a94c 15682013-09-18 Pedro Alves <palves@redhat.com>
d255f61f 1569 Yue Lu <hacklu.newborn@gmail.com>
ca08a94c
PA
1570
1571 * gnu-nat.c (inf_validate_procs, gnu_wait, gnu_resume)
1572 (gnu_create_inferior)
1573 (gnu_attach, gnu_thread_alive, gnu_pid_to_str, cur_thread)
1574 (set_sig_thread_cmd): Use the lwpid field of ptids to
1575 store/extract thread ids instead of the tid field.
1576 * i386gnu-nat.c (gnu_fetch_registers): Adjust.
1577
e4c6a2c4
AB
15782013-09-18 Andrew Burgess <aburgess@broadcom.com>
1579
1580 * infcmd.c (default_print_one_register_info): Add detection of
1581 optimized out values.
1582 (default_print_registers_info): Switch to using
1583 get_frame_register_value.
1584
58c48e72
MM
15852013-09-18 Markus Metzger <markus.t.metzger@intel.com>
1586
1587 * infrun.c (handle_inferior_event): Check if we know the
1588 function start address before setting a resume breakpoint.
1589
c8d37639
PA
15902013-09-18 Pedro Alves <palves@redhat.com>
1591
1592 * gnu-nat.c (set_sig_thread_cmd): Compare the thread's ptid to
1593 minus_one_ptid instead of looking at the ptid's tid field and
1594 comparing that to -1.
1595
71926e28
AB
15962013-09-18 Andrew Burgess <aburgess@broadcom.com>
1597
1598 * main.h (get_gdb_program_name): Remove extra whitespace.
1599
c88a1531
AB
16002013-09-18 Andrew Burgess <aburgess@broadcom.com>
1601
1602 * main.h (get_gdb_program_name): Add declaration.
1603 * main.c (get_gdb_program_name): Add definition.
1604
4390d890
DE
16052013-09-17 Doug Evans <dje@google.com>
1606
1607 * dwarf2read.c: Move definitions of complaint functions to after
1608 forward declarations of local functions.
1609
49fa26b0
PA
16102013-09-17 Muhammad Waqas <mwaqas@codesourcery.com>
1611 Pedro Alves <palves@redhat.com>
1612
1613 PR gdb/11568
1614 * breakpoint.c (remove_threaded_breakpoints): New function.
1615 (_initialize_breakpoint): Attach remove_threaded_breakpoints
1616 as thread_exit observer.
1617
08d72866
PA
16182013-09-17 Pedro Alves <palves@redhat.com>
1619
1620 PR gdb/15911
1621 * ada-tasks.c (task_command_1): Adjust call to print_stack_frame.
1622 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
1623 * corelow.c (core_open):
1624 * frame.h (print_stack_frame, print_frame_info): New
1625 'set_current_sal' parameter.
1626 * infcmd.c (finish_command, kill_command): Adjust call to
1627 print_stack_frame.
1628 * inferior.c (inferior_command): Likewise.
1629 * infrun.c (normal_stop): Likewise.
1630 * linux-fork.c (linux_fork_context): Likewise.
1631 * record-full.c (record_full_goto_entry, record_full_restore):
1632 Likewise.
1633 * remote-mips.c (common_open): Likewise.
1634 * stack.c (print_stack_frame): New 'set_current_sal' parameter.
1635 Use it.
1636 (print_frame_info): New 'set_current_sal' parameter. Set the last
1637 displayed sal depending on the new paremeter instead of looking at
1638 print_what.
1639 (backtrace_command_1, select_and_print_frame, frame_command)
1640 (current_frame_command, up_command, down_command): Adjust call to
1641 print_stack_frame.
1642 * thread.c (print_thread_info, restore_selected_frame)
1643 (do_captured_thread_select): Adjust call to print_stack_frame.
1644 * tracepoint.c (tfind_1): Likewise.
1645 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
1646 (mi_cmd_stack_info_frame): Likewise.
1647 * mi/mi-interp.c (mi_on_normal_stop): Likewise.
1648 * mi/mi-main.c (mi_cmd_exec_return, mi_cmd_trace_find): Likewise.
1649
6bc305f5
SDJ
16502013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1651
1652 * value.c (isvoid_internal_fn): Replace "parameter" with
1653 "argument".
1654
0a7cfe2c
SS
16552013-09-16 Stan Shebs <stan@codesourcery.com>
1656
1657 * README: Update references to writing code for GDB.
1658 * configure.ac (build_warnings): Remove obsolete comment.
1659 * configure: Regenerate.
1660 * gdbarch.sh: Remove references to gdbint.texinfo.
1661 * gdbarch.h: Regenerate.
1662 * gdbtypes.c (objfile_type): Remove comments referencing internals
1663 manual and D10V.
1664
a280dbd1
SDJ
16652013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1666
1667 * NEWS: Mention new convenience function $_isvoid.
1668 * value.c (isvoid_internal_fn): New function.
1669 (_initialize_values): Add new convenience function $_isvoid.
1670
04a83fee
PM
16712013-09-16 Pierre Muller <muller@sourceware.org>
1672
1673 * arm-linux-tdep.c: Add "elf/common.h" header.
1674 Remove AT_HWCAP macro definintion as it is provided in
1675 added include file.
1676 * s390-tdep.c: Remove system header <elf.h>
1677 Add "elf/common.h" header for AT_HWCAP definition.
1678 (s390_core_read_description): Use correct CORE_ADDR
1679 for hwcap local variable used as third parameter
1680 of function target_auxv_search.
1681
88505fac
PM
16822013-09-14 Pierre Muller <muller@sourceware.org>
1683 Tom Tromey <tromey@redhat.com>
1684 Pedro Alves <palves@redhat.com>
1685
1686 * common/filestuff.c (gdb_fopen_cloexec): Do not try to use "e"
1687 mode if operating system doesn't know O_CLOEXEC.
1688
d3846e71
JK
16892013-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1690
1691 Code cleanup.
1692 * symfile.c (reread_symbols): Move variable obfd_filename to a more
1693 inner block.
1694
4ac33720
UW
16952013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
1696
1697 * NEWS: Mention TDB support.
1698 * features/s390-tdb.xml: New file.
1699 * features/s390-te-linux64.xml: New file.
1700 * features/s390x-te-linux64.xml: New file.
1701 * features/Makefile (WHICH): Add new tdescs above.
1702 (s390-te-linux64-expedite): Set.
1703 (s390x-te-linux64-expedite): Set.
1704 * features/s390-te-linux64.c: New file (generated).
1705 * features/s390x-te-linux64.c: New file (generated).
1706 * regformats/s390-te-linux64.dat: New file (generated).
1707 * regformats/s390x-te-linux64.dat: New file (generated).
1708 * s390-tdep.h (HWCAP_S390_HIGH_GPRS): Define.
1709 (HWCAP_S390_TE): Likewise.
1710 (S390_TDB_DWORD0_REGNUM): Likewise.
1711 (S390_TDB_DWORD0_REGNUM): Likewise.
1712 (S390_TDB_ABORT_CODE_REGNUM): Likewise.
1713 (S390_TDB_CONFLICT_TOKEN_REGNUM): Likewise.
1714 (S390_TDB_ATIA_REGNUM): Likewise.
1715 (S390_TDB_R0_REGNUM): Likewise.
1716 (S390_TDB_R1_REGNUM): Likewise.
1717 (S390_TDB_R2_REGNUM): Likewise.
1718 (S390_TDB_R3_REGNUM): Likewise.
1719 (S390_TDB_R4_REGNUM): Likewise.
1720 (S390_TDB_R5_REGNUM): Likewise.
1721 (S390_TDB_R6_REGNUM): Likewise.
1722 (S390_TDB_R7_REGNUM): Likewise.
1723 (S390_TDB_R8_REGNUM): Likewise.
1724 (S390_TDB_R9_REGNUM): Likewise.
1725 (S390_TDB_R10_REGNUM): Likewise.
1726 (S390_TDB_R11_REGNUM): Likewise.
1727 (S390_TDB_R12_REGNUM): Likewise.
1728 (S390_TDB_R13_REGNUM): Likewise.
1729 (S390_TDB_R14_REGNUM): Likewise.
1730 (S390_TDB_R15_REGNUM): Likewise.
1731 (S390_NUM_REGS): Increase.
1732 (S390_IS_TDBREGSET_REGNUM): New macro.
1733 (s390_regmap_tdb): Declare.
1734 (s390_sizeof_tdbregset): Define.
1735 (tdesc_s390_te_linux64): Declare.
1736 (tdesc_s390x_te_linux64): Likewise.
1737 * s390-tdep.c: Add includes for "auxv.h", <elf.h>,
1738 "features/s390-te-linux64.c", and "features/s390x-te-linux64.c".
1739 (s390_regmap_tdb): New regmap.
1740 (s390_supply_tdb_regset): New function.
1741 (s390_tdb_regset): New regset.
1742 (s390_linux64v2_regset_sections): Add TDB regset to list.
1743 (s390x_linux64v2_regset_sections): Likewise.
1744 (s390_regset_from_core_section): Recognize TDB core note section.
1745 (s390_core_read_description): If HWCAP indicates TE support,
1746 select tdesc_s390_te_linux64 or tdesc_s390_s390x_te_linux64.
1747 (s390_gdbarch_init): Handle TDB regset.
1748 (_initialize_s390_tdep): Initialize new tdescs.
1749 * s390-nat.c (HWCAP_S390_HIGH_GPRS): Remove define.
1750 (have_regset_tdb): New variable.
1751 (s390_native_supply): Support register invalidation.
1752 (fetch_regset): Invalidate registers if ptrace yields ENODATA.
1753 (check_regset): Treat ENODATA as "regset exists".
1754 (s390_linux_fetch_inferior_registers): Add TDB.
1755 (s390_read_description): Check for TDB existence and select
1756 appropriate tdesc.
1757 * gdbserver/Makefile.in (clean): Add removal of new makefile
1758 targets.
1759 (s390-te-linux64.c): New makefile target.
1760 (s390x-te-linux64.c): Likewise.
1761 * gdbserver/configure.srv (srv_regobj): Append new objects
1762 s390-te-linux64.o and s390x-te-linux64.o.
1763 (srv_xmlfiles): Append new files s390-te-linux64.xml,
1764 s390x-te-linux64.xml, and s390-tdb.xml.
1765 * gdbserver/linux-s390-low.c (init_registers_s390_te_linux64): New
1766 declaration.
1767 (tdesc_s390_te_linux64): Likewise.
1768 (init_registers_s390x_te_linux64): Likewise.
1769 (tdesc_s390x_te_linux64): Likewise.
1770 (s390_check_regset): Treat ENODATA as "regset exists".
1771 (s390_arch_setup): Add TDB regset support.
1772 (initialize_low_arch): Initialize registers for new tdescs.
1773
2ccd1468
UW
17742013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
1775
1776 * s390-tdep.h (S390_IS_GREGSET_REGNUM): New macro.
1777 (S390_IS_FPREGSET_REGNUM): New macro.
1778 * s390-tdep.c (s390_dwarf_regmap): Make const.
1779 (regnum_is_gpr_full): New function for replacing repeated code.
1780 (s390_pseudo_register_name): Use it.
1781 (s390_pseudo_register_type): Likewise.
1782 (s390_pseudo_register_read): Likewise.
1783 (s390_pseudo_register_write): Likewise.
1784 (s390_unwind_pseudo_register): Likewise.
1785 (s390_regmap_gregset): New format for regmap.
1786 (s390x_regmap_gregset): Likewise.
1787 (s390_regmap_fpregset): Likewise.
1788 (s390_regmap_upper): Likewise.
1789 (s390_regmap_last_break): Likewise.
1790 (s390_regmap_system_call): Likewise.
1791 (s390_supply_regset): Adjust to new regmap format.
1792 (s390_collect_regset): Likewise.
1793 * s390-nat.c (s390_native_supply): Adjust to new regmap format.
1794 (s390_native_collect): Likewise.
1795 (supply_gregset): Likewise.
1796 (fill_gregset): Likewise.
1797 (supply_fpregset): Likewise.
1798 (fill_fpregset): Likewise.
1799 (fetch_regset): Likewise.
1800 (store_regset): Likewise.
1801 (s390_linux_fetch_inferior_registers): Likewise.
1802 (s390_linux_fetch_inferior_registers): Likewise.
1803
1aa4cd77
AP
18042013-09-12 Andrew Pinski <apinski@cavium.com>
1805
1806 * aarch64-linux-nat.c (aarch64_linux_set_debug_regs): Zero out regs.
1807
d91fab15
UW
18082013-09-10 Andreas Arnez <arnez@linux.vnet.ibm.com>
1809
1810 * config/s390/s390.mh (NATDEPFILES): Add linux-waitpid.o.
1811
5a5d8ead
AB
18122013-09-09 Andrew Burgess <aburgess@broadcom.com>
1813
1814 * top.c (quit_confirm): Remove use of deprecated_init_ui_hook.
1815
1385f66c
PA
18162013-09-06 Pedro Alves <palves@redhat.com>
1817
1818 * remote-sim.c (dump_mem, gdbsim_fetch_register)
1819 (gdbsim_store_register, gdbsim_kill, gdbsim_load)
1820 (gdbsim_create_inferior, gdbsim_open, gdbsim_close)
1821 (gdbsim_detach, gdbsim_resume_inferior, gdbsim_wait)
1822 (gdbsim_files_info, gdbsim_mourn_inferior): Send debug output to
1823 gdb_stdlog.
1824
146ec4db
PA
18252013-09-06 Pedro Alves <palves@redhat.com>
1826
1827 * remote-sim.c (dump_mem): Constify buf parameter.
1828 gdbsim_xfer_inferior_memory): Rename to ...
1829 (gdbsim_xfer_memory): ... this. Adjust interface as
1830 target_xfer_partial helper.
1831 (gdbsim_xfer_partial): New function.
1832 (init_gdbsim_ops): Don't install a deprecated_xfer_memory hook.
1833 Install a to_xfer_partial hook. Send output to gdb_stdlog.
1834
fcde0081
PA
18352013-09-06 Pedro Alves <palves@redhat.com>
1836
1837 * remote-sim.c (gdbsim_xfer_inferior_memory): Use
1838 host_address_to_string, and send debug output to gdb_stdlog.
1839
749c8b38
RW
18402013-09-06 Ricard Wanderlof <ricardw@axis.com>
1841
1842 * Makefile.in (ALL_TARGET_OBS): Add cris-linux-tdep.o.
1843 * configure.tgt: Add cris-linux-tdep.o and linux-tdep.o to
1844 gdb_target_obs for cris target.
1845 * cris-tdep.c (struct gdbarch_tdep): Move to cris-tdep.h.
1846 (cris_gdbarch_init): Move calls to
1847 set_gdbarch_fetch_tls_load_module_address and
1848 set_solib_svr4_fetch_link_map_offsets to cris-linux-tdep.c.
1849 Add call to gdbarch_init_osabi.
1850 * cris-linux-tdep.c: New file.
1851 * cris-tdep.h: New file.
1852
43df09d9
AB
18532013-09-06 Andrew Burgess <aburgess@broadcom.com>
1854
1855 * tui/tui-io.c (tui_initialize_io): Remove legacy comment referring
1856 to deprecated_init_ui_hook.
1857
4d09c5b4
AB
18582013-09-06 Andrew Burgess <aburgess@broadcom.com>
1859
1860 * cli/cli-interp.c (_initialize_cli_interp): Add a
1861 command_loop_proc to interp_procs.
1862 * event-top.c (cli_command_loop): Change signature to match
1863 interp_command_loop_ftype.
1864 * event-top.h (cli_command_loop): Same.
1865 * interps.c (interp_new): Require every interpreter to have a
1866 command_loop_proc.
1867 (current_interp_command_loop): Just call the command_loop_proc on
1868 the current interpreter.
1869 * tui/tui-interp.c (_initialize_tui_interp): Add a
1870 command_loop_proc to interp_procs.
1871
8eb3d7b6
RW
18722013-09-06 Ricard Wanderlof <ricardw@axis.com>
1873
1874 * cris-tdep.c (cris_gdbarch_init): Add call to
1875 get_gdbarch_fetch_tls_load_module_address.
1876
18b3c2f5
RW
18772013-09-06 Ricard Wanderlof <ricardw@axis.com>
1878
1879 * cris-tdep.c (cris_elf_greg_t): Rename from elf_greg_t.
1880 (cris_elf_gregset_t): Rename from elf_gregset_t.
1881 (crisv32_elf_gregset_t): Adjust.
1882 (cris_supply_gregset, fetch_core_registers): Adjust.
1883
dc8636ef
RW
18842013-09-06 Ricard Wanderlof <ricardw@axis.com>
1885
1886 * cris-tdep.c (elf_greg_t): Change typedef to unsigned char[4]
1887
257e6d53
AB
18882013-09-05 Andrew Burgess <aburgess@broadcom.com>
1889
1581d8a7 1890 * defs.h (deprecated_command_loop_hook): Remove, including
257e6d53 1891 references in comments.
1581d8a7 1892 * interps.c (current_interp_command_loop): No longer use
257e6d53
AB
1893 deprecated_command_loop_hook.
1894 (clear_interpreter_hooks): Remove deprecated_command_loop_hook
1895 setup.
1581d8a7 1896 * top.c (deprecated_command_loop_hook): Remove.
257e6d53 1897
7c33b57c
PA
18982013-09-05 Pedro Alves <palves@redhat.com>
1899
1900 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): 'dwarf_regnum'
1901 local is now int instead of ULONGEST. Print it with %d
1902 instead of paddress.
1903
9f8edbd5
TG
19042013-09-05 Tristan Gingold <gingold@adacore.com>
1905
1906 * MAINTAINERS: Remove avr maintainership.
1907
d5b495b4
PA
19082013-09-05 Pedro Alves <palves@redhat.com>
1909
1910 * findvar.c (value_of_register): Rework in terms of
1911 value_of_register_lazy.
1912
40b91786
MB
19132013-09-05 Muhammad Bilal <mbilal@codesourcery.com>
1914
1915 * symfile.c (add_symbol_file_command): Remove trailing
1916 whitespaces and blank line after comment.
1917
6eed1678
PA
19182013-09-05 Pedro Alves <palves@redhat.com>
1919
1920 * tui/tui-regs.c (tui_register_format): Don't look at the
1921 register's name here. Return string representing register
1922 value instead of storing it in the data element.
1923 (tui_get_register): Compare register string representations
1924 instead of register value states and contents.
1925
8eb6bda2
PA
19262013-09-05 Pedro Alves <palves@redhat.com>
1927
1928 PR tui/15933
1929 * tui/tui-regs.c (tui_show_registers): Show registers of the
1930 selected frame, not the current frame.
1931
48b1f08c
RW
19322013-09-05 Ricard Wanderlof <ricardw@axis.com>
1933
1934 * MAINTAINERS (Write After Approval): Add myself to the list.
1935
89e63ee4
DE
19362013-09-04 Doug Evans <dje@google.com>
1937
1938 * dwarf2read.c (queue_and_load_all_dwo_tus): New function.
1939 (queue_and_load_dwo_tu): New function.
1940 (lookup_dwo_signatured_type): Set per_cu.tu_read.
1941 (maybe_queue_comp_unit): Rename this_cu argument to dependent_cu.
1942 Make dependent_cu optional.
1943 (dw2_do_instantiate_symtab): If we just loaded a CU from a DWO,
1944 and an older .gdb_index is in use, queue and load all its TUs too.
1945
492c0ab7
JK
19462013-09-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1947
1948 Code cleanup: Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH.
1949 * cli/cli-cmds.c (find_and_open_script): Add OPF_RETURN_REALPATH to
1950 variable search_flags.
1951 * defs.h (OPF_DISABLE_REALPATH): Rename to ...
1952 (OPF_RETURN_REALPATH): ... here.
1953 * dwarf2read.c (try_open_dwop_file): Set OPF_RETURN_REALPATH for flags.
1954 * exec.c (exec_file_attach): Remove OPF_DISABLE_REALPATH from openp
1955 call. Twice.
1956 * nto-tdep.c (nto_find_and_open_solib): Add OPF_RETURN_REALPATH for
1957 openp call.
1958 * solib.c (solib_find): Likewise. Four times.
1959 * source.c (openp): Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH
1960 in the function comment and for the realpath_fptr variable.
1961 (source_full_path_of): Add OPF_RETURN_REALPATH for openp call.
1962 (find_and_open_source): Likewise. Twice.
1963 * symfile.c (symfile_bfd_open): Likewise, also twice.
1964
23a44de8
DE
19652013-09-04 Doug Evans <dje@google.com>
1966
1967 * progspace.c (save_current_space_and_thread): Remove unnecessary
1968 call to save_current_inferior.
1969
47061676
AB
19702013-09-04 Andrew Burgess <aburgess@broadcom.com>
1971
1972 * sh64-tdep.c (sh64_do_register): Return after printing message
1973 about unavailable register contents.
1974
41dc8db8
MB
19752013-09-04 Muhammad Bilal <mbilal@codesourcery.com>
1976 Pedro Alves <palves@redhat.com>
1977
1978 * symfile.c (add_symbol_file_command): Error out on unknown
1979 option. Handle EXPECTING_SEC_ADDR/EXPECTING_SEC_NAME before '-'
1980 options and collapse into single conditional branch.
1981
07107ca6
LM
19822013-09-03 Luis Machado <lgustavo@codesourcery.com>
1983
a7ea61cf 1984 * inf-child.c (inf_child_follow_fork): New parameter
07107ca6
LM
1985 detach_fork.
1986 * inf-ptrace.c (inf_ptrace_follow_fork): Likewise.
1987 * inf-ttrace.c (inf_ttrace_follow_fork): Likewise.
1988 * inferior.h (detach_fork): Remove.
1989 * infrun.c (detach_fork): Adjust comment and make it
1990 static.
1991 (follow_fork): Pass detach_fork parameter to
1992 target_follow_fork.
1993 * linux-nat.c (linux_child_follow_fork): New parameter
1994 detach_fork.
1995 * target.c (target_follow_fork): New parameter detach_fork.
1996 Pass detach_fork as parameter and print its value.
1997 * target.h (struct target_ops) <to_follow_fork>: New int
1998 parameter.
1999 (target_follow_fork): New parameter detach_fork.
2000
3bec2768
JB
20012013-09-03 Joel Brobecker <brobecker@adacore.com>
2002
2003 * solib-ia64-hpux.c (ia64_hpux_relocate_section_addresses):
2004 Replace sec->bfd by sec->the_bfd_section->owner.
2005
c01cbb3d
YQ
20062013-09-03 Yao Qi <yao@codesourcery.com>
2007
2008 * linux-tdep.c (linux_is_uclinux): New function. Code moved
2009 from linux_has_shared_address_space.
2010 (linux_has_shared_address_space): Call linux_is_uclinux.
2011 * linux-tdep.h (linux_is_uclinux): Declare.
2012 * m68klinux-tdep.c (m68k_linux_get_sigtramp_info): Call
2013 linux_is_uclinux.
2014
7b00db47
YQ
20152013-09-03 Yao Qi <yao@codesourcery.com>
2016
2017 * config/djgpp/fnchange.lst: Remove entry of
2018 i386-interix-nat.c and i386-interix-tdep.c.
2019 * configure.ac: Remove '*-*-interix*'.
2020 * configure: Re-generated.
2021 * defs.h (enum gdb_osabi): Remove GDB_OSABI_INTERIX.
2022 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Remove
2023 obsolete comments.
2024 * osabi.c (gdb_osabi_names): Remove "Interix".
2025
0f9741f2
YQ
20262013-09-03 Yao Qi <yao@codesourcery.com>
2027
2028 * arch-utils.c: Fix typo in the comment to gdbarch_update_p.
2029
1e038f67
MM
20302013-09-02 Markus Metzger <markus.t.metzger@intel.com>
2031
2032 * record.h (record_print_flag) <record_print_src_line,
2033 record_print_insn_range>: Rename into ...
2034 (record_print_flag) <record_print_src_line,
2035 record_print_insn_range>: ... this. Update all users.
2036
9e52adf9
PM
20372013-09-02 Pierre Muller <muller@sourceware.org>
2038
2039 * windows-nat.c (windows_xfer_memory): Handle ERROR_PARTIAL_COPY
2040 error code.
2041
a2388568
PM
20422013-09-02 Pierre Muller <muller@sourceware.org>
2043
2044 * windows-nat.c (windows_xfer_memory): Fix compilation failure
2045 by use of plongest function.
2046
9058cc3a
TG
20472013-09-02 Tristan Gingold <gingold@adacore.com>
2048
2049 * NEWS: Add entry mentioning support for native Windows x64
2050 SEH data.
2051
2052 * amd64-windows-tdep.c: #include "objfiles.h", "frame-unwind.h",
2053 "coff/internal.h", "coff/i386.h", "coff/pe.h" and "libcoff.h".
2054 (struct amd64_windows_frame_cache): New struct.
2055 (amd64_windows_w2gdb_regnum): New global.
2056 (pc_in_range, amd64_windows_frame_decode_epilogue)
2057 (amd64_windows_frame_decode_insns, amd64_windows_find_unwind_info)
2058 (amd64_windows_frame_cache, amd64_windows_frame_prev_register)
2059 (amd64_windows_frame_this_id): New functions.
2060 (amd64_windows_frame_unwind): New static global.
2061 (amd64_windows_skip_prologue): New function.
2062 (amd64_windows_init_abi): Call frame_unwind_prepend_unwinder
2063 with amd64_windows_frame_unwind. Call set_gdbarch_skip_prologue
2064 with amd64_windows_skip_prologue.
2065
3161820b 20662013-08-30 Joel Brobecker <brobecker@adacore.com>
2067
2068 GDB 7.6.1 released.
2069
02457c76
PA
20702013-08-30 Pedro Alves <palves@redhat.com>
2071
2072 * mi/mi-main.c (mi_cmd_trace_find): Use LOC_AND_ADDRESS instead of
2073 SRC_AND_LOC.
2074
e0162910
PA
20752013-08-30 Pedro Alves <palves@redhat.com>
2076
2077 * thread.c (restore_selected_frame): Use SRC_AND_LOC, and change
2078 warning text.
2079
6391ce51
PA
20802013-08-30 Pedro Alves <palves@redhat.com>
2081
2082 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
2083 Adjust arguments to print_stack_frame.
2084
d1da0587
PA
20852013-08-30 Pedro Alves <palves@redhat.com>
2086
2087 * ada-tasks.c (task_command_1): Write SRC_AND_LOC instead '1'.
2088
adfd8245
PA
20892013-08-30 Pedro Alves <palves@redhat.com>
2090
2091 * frame.h (show_and_print_stack_frame): Delete declaration.
2092
96d9056e
PM
20932013-08-30 Phil Muldoon <pmuldoon@redhat.com>
2094
2095 PR python/15461
2096
2097 * python/py-arch.c (ARCHPY_REQUIRE_VALID): New macro.
2098 (archpy_name): Check for valid architecture.
2099 (archpy_disassemble): Ditto.
2100
11cb8762
JB
21012013-08-29 Joel Brobecker <brobecker@adacore.com>
2102
2103 * rs6000-nat.c (rs6000_ptrace32): Cast "addr" to "uintptr_t"
2104 instead of "long long" in call to ptrace64.
2105
1af12a7d
AB
21062013-08-29 Andrew Burgess <aburgess@broadcom.com>
2107
2108 * mi/mi-interp.c (mi_command_loop): Change signature to match
2109 interp_command_loop_ftype.
2110 (mi1_command_loop): Remove.
2111 (mi2_command_loop): Remove.
2112 (mi3_command_loop): Remove.
2113 (mi_interpreter_resume): Remove setting of
2114 deprecated_command_loop_hook.
2115 (_initialize_mi_interp): Set mi_command_loop as the command loop
2116 callback.
2117
acc900c2
SA
21182013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
2119
2120 * valops.c (do_search_struct_field): Pass v2 instead of base_type to
2121 value_type.
2122
548b762d
SA
21232013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
2124
2125 * value.c (allocate_value_contents): Make static.
2126 * value.h (allocate_value_contents): Remove prototype.
2127
08039c9e
SA
21282013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
2129
2130 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use value_at_lazy instead
2131 of assembling value via allocate_value_lazy and attribute setter.
2132 * findvar.c (default_read_var_value): Use value_at_lazy instead of
2133 assembling value via allocate_value_lazy and attribute setter.
2134 * valops.c (do_search_struct_field): Use value_at_lazy instead of
2135 assembling value via allocate_value_lazy and attribute setter.
2136
314c7de9
SA
21372013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
2138
2139 * value.c (value_from_contents_and_address): Replace allocate_value and
2140 memcpy with value_from_contents.
2141
8f28f522
PM
21422013-08-29 Phil Muldoon <pmuldoon@redhat.com>
2143
2144 * python/py-framefilter.c (py_print_frame): Remove usage of
2145 PyString_AsString. Use python_string_to_host_string instead.
2146 Refactor function to work with a string as a new allocation
2147 instead of a pointer.
2148 (py_print_frame): Ditto.
2149 * python/lib/gdb/frames.py (return_list): Cain iterators together
2150 instead of adding them as a list.
2151 (_sort_list): Call return_list, and remove duplicate code.
2152 (execute_frame_filters): Convert iterator to a list with list().
2153 * python/lib/gdb/command/frame_filters.py
2154 (SetFrameFilterPriority._set_filter_priority): Convert priority
2155 attribute to an integer.
2156 * python/lib/gdb/FrameIterator.py (FrameIterator.next): Define
2157 wrapper function __next__.
2158 * python/lib/gdb/FrameDecorator.py: If basestring not defined,
2159 define as "str".
2160
8ee002df
PM
21612013-08-29 Phil Muldoon <pmuldoon@redhat.com>
2162
2163 PR python/15752
8ee002df
PM
2164 * python/py-framefilter.c (apply_frame_filter): Check
2165 gdb_python_initialized. Exit if the Python frame-filter code
2166 cannot be initialized.
2167
af4c453a
PM
21682013-08-29 Phil Muldoon <pmuldoon@redhat.com>
2169
2170 PR cli/15842
af4c453a
PM
2171 * top.c (print_gdb_version): Remove erroneous newline after help
2172 text.
2173
bf8793bb
YQ
21742013-08-29 Yao Qi <yao@codesourcery.com>
2175
2176 * varobj.c (install_dynamic_child): Remove trailing space.
2177 Add one blank line after variable declaration.
2178
1f0c4988
JK
21792013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2180
2181 PR gdb/15415
2182 * corefile.c (get_exec_file): Use exec_filename.
2183 * defs.h (OPF_DISABLE_REALPATH): New definition. Add new comment.
2184 * exec.c (exec_close): Free EXEC_FILENAME.
2185 (exec_file_attach): New variable canonical_pathname. Use
2186 OPF_DISABLE_REALPATH. Call gdb_realpath explicitly. Set
2187 EXEC_FILENAME.
2188 * exec.h (exec_filename): New.
2189 * inferior.c (print_inferior, inferior_command): Use
2190 PSPACE_EXEC_FILENAME.
2191 * mi/mi-main.c (print_one_inferior): Likewise.
2192 * progspace.c (clone_program_space, print_program_space): Likewise.
2193 * progspace.h (struct program_space): New field pspace_exec_filename.
2194 * source.c (openp): Describe OPF_DISABLE_REALPATH. New variable
2195 realpath_fptr, initialize it from OPF_DISABLE_REALPATH, use it.
2196
59ee9f94
WN
21972013-08-28 Will Newton <will.newton@linaro.org>
2198
2199 * common/linux-ptrace.c: Include stdint.h unconditionally.
2200
c8a2a419
JK
22012013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2202
2203 Code cleanup.
2204 * nto-tdep.c (nto_find_and_open_solib): Use OPF_TRY_CWD_FIRST.
2205
ffa4ac95
YQ
22062013-08-28 Yao Qi <yao@codesourcery.com>
2207 Pedro Alves <palves@redhat.com>
2208
2209 * event-top.c (gdb_setup_readline): Call stderr_fileopen
2210 instead of stdio_fileopen.
2211 * main.c (captured_main) [__MINGW32__]: Set stderr unbuffered.
2212 .Call stderr_fileopen instead of stdio_fileopen.
2213 * ui-file.c [__MINGW32__] (stderr_file_write): New function.
2214 [__MINGW32__] (stderr_file_fputs): New function.
2215 (stderr_fileopen): New function.
2216 * ui-file.h (stderr_fileopen): Declare.
2217
69d751e3
DE
22182013-08-27 Doug Evans <dje@google.com>
2219
2220 * dwarf2read.c (struct dwarf2_cu): Tweak comment.
2221 (struct dwarf2_per_cu_data): Ditto.
2222 (maybe_queue_comp_unit): Delete forward decl. Add comment.
2223 (process_imported_unit_die): Ditto.
2224 (follow_die_sig_1): Simplify assert.
2225
44f38867
PA
22262013-08-27 Pedro Alves <palves@redhat.com>
2227
2228 * windows-nat.c (windows_xfer_memory): Adjust prototype to follow
2229 xfer_partial's interface. Return TARGET_XFER_E_IO on error.
2230 (windows_xfer_partial): Defer TARGET_OBJECT_MEMORY handling to
2231 windows_xfer_memory directly.
2232 (init_windows_ops): Don't install a deprecated_xfer_memory method.
2233
d28d46b5
PA
22342013-08-27 Pedro Alves <palves@redhat.com>
2235
2236 * darwin-nat.c (darwin_xfer_memory): Delete.
2237 (_initialize_darwin_inferior): Don't install a
2238 deprecated_xfer_memory method.
2239
6211c335
YQ
22402013-08-27 Pedro Alves <pedro@codesourcery.com>
2241 Yao Qi <yao@codesourcery.com>
2242
2243 * mi/mi-cmd-stack.c (list_args_or_locals): Adjust prototype.
2244 (parse_no_frames_option): Remove.
2245 (mi_cmd_stack_list_locals): Handle --skip-unavailable.
2246 (mi_cmd_stack_list_args): Adjust.
2247 (mi_cmd_stack_list_variables): Handle --skip-unavailable.
2248 (list_arg_or_local): Add new parameter 'skip_unavailable'. Return
2249 early if SKIP_UNAVAILABLE is true and ARG->val is unavailable.
2250 Caller update.
2251 (list_args_or_locals): New parameter 'skip_unavailable'.
2252 Handle it.
2253 * valprint.c (scalar_type_p): Rename to ...
2254 (val_print_scalar_type_p): ... this. Make extern.
2255 (val_print, value_check_printable): Adjust.
2256 * valprint.h (val_print_scalar_type_p): Declare.
2257 * value.c (value_entirely_unavailable): New function.
2258 * value.h (value_entirely_unavailable): Declare.
2259
2260 * NEWS: Mention the new option "--skip-unavailable" to MI
2261 commands '-stack-list-locals', '-stack-list-arguments' and
2262 '-stack-list-variables'.
2263
242f1fd7
YQ
22642013-08-27 Yao Qi <yao@codesourcery.com>
2265
2266 * mi/mi-cmd-stack.c (parse_no_frames_option): Remove.
2267 (mi_cmd_stack_list_args): Use mi_getopt_silent to handle
2268 options.
2269 * mi/mi-getopt.c (mi_getopt): Remove.
2270 (mi_getopt_1): Renamed from mi_getopt. Add one parameter
2271 'error_on_unknown'.
2272 (mi_getopt): Call mi_getopt_1.
2273 (mi_getopt_silent): New.
2274 * mi/mi-getopt.h (mi_getopt_silent): Declare.
2275
260b681b
DE
22762013-08-26 Doug Evans <dje@google.com>
2277
779bd270
DE
2278 PR symtab/15885
2279 * dwarf2read.c (dw2_dump): Print some minimal information indicating
2280 .gdb_index is in use.
2281 * symfile.c (reread_symbols): Reset objfile->sf.
2282
52e260a3
DE
2283 * NEWS: Document "mt print objfiles" now takes optional regexp.
2284 * symmisc.c (maintenance_print_objfiles): Argument is now an optional
2285 regexp of objfiles to print.
2286 (_initialize_symmisc): Update doc string for "mt print objfiles".
2287
260b681b
DE
2288 * dwarf2read.c (write_psymtabs_to_index): Move error checks ahead of
2289 missing debug info checks.
2290
a85c52f2
UW
22912013-08-26 Raunaq Bathija <raunaq12@in.ibm.com>
2292 Ulrich Weigand <uweigand@de.ibm.com>
2293
2294 * xcoffread.c (arrange_linetable): Add fix to correctly handle
2295 line tables generated by XLC compiled binaries.
2296
4f00dda3
DE
22972013-08-23 Doug Evans <dje@google.com>
2298
db68bbae
DE
2299 * symmisc.c (dump_symtab): Delete prototype.
2300 (dump_msymbols, dump_objfile): Ditto.
2301 (maintenance_info_symtabs): Mark as dont_repeat.
2302 (_initialize_symmisc): Improve doc string for "mt info symtabs".
2303
4f00dda3
DE
2304 * elfread.c (elf_symfile_read): Move "Done reading minimal symbols"
2305 debugging printf to better location.
2306
23d577b0
PA
23072013-08-23 Pedro Alves <palves@redhat.com>
2308
2309 * target.c (target_read_live_memory): Change type of 'ret' local
2310 to LONGEST.
2311
00d84524
PA
23122013-08-23 Pedro Alves <palves@redhat.com>
2313
2314 * remote.c (remote_write_bytes_aux, remote_write_bytes)
2315 (remote_read_bytes): Change return type to LONGEST, and adjust to
2316 return a target_xfer_error on error.
2317 (remote_xfer_memory): Delete.
2318 (remote_flash_write): Change type of 'ret' local to LONGEST.
2319 (remote_xfer_partial, remote_xfer_partial): Adjust.
2320 (init_remote_ops): Don't install a deprecated_xfer_memory hook.
2321
1ed3ee94
PM
23222013-08-23 Pierre Muller <muller@sourceware.org>
2323
2324 ARI fix: Push # directives to start of line.
2325 * rs6000-nat.c (rs6000_ptrace32, rs6000_ptrace64): Rule applied.
2326
9eaabc75
MW
23272013-08-12 Muhammad Waqas <mwaqas@codesourcery.com>
2328
2329 PR gdb/15501
2330 * breakpoint.c (enable_command, disable_command): Iterate over
2331 all specified breakpoint locations.
2332
101158d9
LM
23332013-08-22 Luis Machado <lgustavo@codesourcery.com>
2334
2335 * common/linux-ptrace.c (linux_fork_to_function): Push #
2336 directives to the start of the line.
2337 (linux_check_ptrace_features): Fix warning message to use
2338 the "_" markup.
2339
96d7229d
LM
23402013-08-22 Luis Machado <lgustavo@codesourcery.com>
2341
2342 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-nat.h and
2343 nat/linux-waitpid.h.
2344 (linux-waitpid.o): New object file rule.
2345 * common/linux-ptrace.c: Include nat/linux-waitpid.h.
2346 (current_ptrace_options): Moved from linux-nat.c.
2347 (linux_ptrace_test_ret_to_nx): Use type casts for ptrace
2348 parameters.
2349 (linux_fork_to_function): New function.
2350 (linux_grandchild_function): Likewise.
2351 (linux_child_function): Likewise.
2352 (linux_check_ptrace_features): New function, heavily
2353 based on linux-nat.c:linux_test_for_tracefork.
2354 (linux_enable_event_reporting): New function.
2355 (ptrace_supports_feature): Likewise.
2356 (linux_supports_tracefork): Likewise.
2357 (linux_supports_traceclone): Likewise.
2358 (linux_supports_tracevforkdone): Likewise.
2359 (linux_supports_tracesysgood): Likewise.
2360 * common/linux-ptrace.h (HAS_NOMMU): Moved from
2361 gdbserver/linux-low.c.
2362 (linux_enable_event_reporting): New declaration.
2363 (linux_supports_tracefork): Likewise.
2364 (linux_supports_traceclone): Likewise.
2365 (linux_supports_tracevforkdone): Likewise.
2366 (linux_supports_tracesysgood): Likewise.
2367 * config.in (PTRACE_TYPE_ARG4): Regenerate.
2368 * config/aarch64/linux.mh (NATDEPFILES): Add linux-waitpid.o.
2369 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
2370 * config/arm/linux.mh (NATDEPFILES): Likewise.
2371 * config/i386/linux.mh (NATDEPFILES): Likewise.
2372 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2373 * config/ia64/linux.mh (NATDEPFILES): Likewise.
2374 * config/m32r/linux.mh (NATDEPFILES): Likewise.
2375 * config/m68k/linux.mh (NATDEPFILES): Likewise.
2376 * config/mips/linux.mh (NATDEPFILES): Likewise.
2377 * config/pa/linux.mh (NATDEPFILES): Likewise..
2378 * config/powerpc/linux.mh (NATDEPFILES): Likewise..
2379 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
2380 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
2381 * config/sparc/linux.mh (NATDEPFILES): Likewise.
2382 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
2383 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
2384 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
2385 * configure.ac (AC_CACHE_CHECK): Add void * to the list of
2386 ptrace's 4th argument's types.
2387 Check the type of PTRACE_TYPE_ARG4.
2388 * configure: Regenerate.
2389 * linux-nat.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
2390 (SYSCALL_SIGTRAP): Moved to nat/linux-nat.h.
2391 (linux_supports_tracefork_flag): Remove.
2392 (linux_supports_tracesysgood_flag): Likewise.
2393 (linux_supports_tracevforkdone_flag): Likewise.
2394 (current_ptrace_options): Moved to
2395 common/linux-ptrace.c.
2396 (linux_tracefork_child): Remove.
2397 (my_waitpid): Remove.
2398 (linux_test_for_tracefork): Renamed to
2399 linux_check_ptrace_features and moved to common/linux-ptrace.c.
2400 (linux_test_for_tracesysgood): Remove.
2401 (linux_supports_tracesysgood): Remove.
2402 (linux_supports_tracefork): Remove.
2403 (linux_supports_tracevforkdone): Remove.
2404 (linux_enable_tracesysgood): Remove.
2405 (linux_enable_event_reporting): Remove.
2406 (linux_init_ptrace): New function.
2407 (linux_child_post_attach): Call linux_init_ptrace.
2408 (linux_child_post_startup_inferior): Call linux_init_ptrace.
2409 (linux_child_follow_fork): Call linux_supports_tracefork
2410 and linux_supports_tracevforkdone.
2411 (linux_child_insert_fork_catchpoint): Call
2412 linux_supports_tracefork.
2413 (linux_child_insert_vfork_catchpoint): Likewise.
2414 (linux_child_set_syscall_catchpoint): Call
2415 linux_supports_tracesysgood.
2416 (lin_lwp_attach_lwp): Call linux_supports_tracefork.
2417 * nat/linux-nat.h: New file.
2418 * nat/linux-waitpid.c: New file.
2419 * nat/linux-waitpid.h: New file.
2420
9f948660
SDJ
24212013-08-22 Samuel Bronson <naesten@gmail.com>
2422
2423 ARM Linux support for `catch syscall'.
2424 * syscalls/arm-linux.py: New file.
2425 * syscalls/arm-linux.xml: Likewise.
2426 * arm-linux-tdep.c (arm_linux_get_syscall_number): New function.
2427 (arm_linux_init_abi): Register the new function and syscall xml file.
2428 * data-directory/Makefile.in: Install the new syscall xml file.
2429 * NEWS: Brag about this.
2430
6be7b56e
PA
24312013-08-22 Pedro Alves <palves@redhat.com>
2432
2433 PR gdb/15871
2434 * corefile.c (target_xfer_memory_error): New function.
2435 (memory_error): Defer EIO to target_memory_error.
2436 (read_memory): Use target_xfer_partial, and handle finer-grained
2437 target xfer errors.
2438 * target.c (target_xfer_error_to_string): New function.
2439 (memory_xfer_partial_1): If memory is known to be
2440 unavailable, return TARGET_XFER_E_UNAVAILABLE instead of -1.
2441 (target_xfer_partial): Make extern.
2442 * target.h (enum target_xfer_error): New enum.
2443 (target_xfer_error_to_string): Declare function.
2444 (target_xfer_partial): Declare function.
2445 (struct target_ops) <xfer_partial>: Adjust describing comment.
2446
bcbec14e
AM
24472013-08-22 Alan Modra <amodra@gmail.com>
2448
2449 * configure.host: Support powerpc64le-linux and powerpcle-linux hosts.
2450 * configure.tgt: Likewise as targets.
2451
fc474241
DE
24522013-08-20 Doug Evans <dje@google.com>
2453
2454 * buildsym.c (subfile_stack): Move here from buildsym.h.
2455 (pending_macros): Ditto.
2456 (get_macro_table): New function.
2457 (buildsym_init): Initialize subfile_stack.
2458 * coffread.c (type_vector,type_vector_length): Moved here from
2459 buildsym.h.
2460 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
2461 (coff_symtab_read): Use it.
2462 * dbxread.c (read_ofile_symtab): Delete init of subfile_stack.
2463 * dwarf2read.c (macro_start_file): Replace uses of pending_macros
2464 with call to get_macro_table.
2465 * stabsread.c (type_vector,type_vector_length): Moved here from
2466 buildsym.h.
2467 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
2468 * buildsym.h (get_macro_table): Declare.
2469
bec71544
TT
24702013-08-20 Tom Tromey <tromey@redhat.com>
2471
2472 * dbxread.c (record_minimal_symbol): Make 'name' argument const.
2473 Update.
2474 (read_dbx_dynamic_symtab): Make 'name' const. Remove casts.
2475
0002ad5f
DE
24762013-08-20 Doug Evans <dje@google.com>
2477
2478 * blockframe.c: Remove #include "psymtab.h".
2479 * cp-support.c: Ditto.
2480 * source.c: Ditto.
2481 * stack.c: Ditto.
2482
df302446
TT
24832013-08-20 Tom Tromey <tromey@redhat.com>
2484
2485 PR python/15816:
2486 * exceptions.h (return_mask): Now an enum.
2487 (RETURN_MASK_QUIT, RETURN_MASK_ERROR, RETURN_MASK_ALL): Now
2488 enum constants.
2489
df6d5441
TT
24902013-08-20 Tom Tromey <tromey@redhat.com>
2491
2492 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
2493 get_objfile_arch.
2494 * elfread.c (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
2495 (elf_gnu_ifunc_resolve_by_got): Use get_objfile_arch.
2496 * jit.c (jit_object_close_impl): Update.
2497 * jv-lang.c (get_dynamics_objfile): Update.
2498 * linespec.c (add_minsym): Use get_dynamics_objfile.
2499 * objfiles.c (get_objfile_bfd_data): Initialize 'gdbarch' field.
2500 (allocate_objfile): Don't initialize 'gdbarch' field.
2501 (get_objfile_arch): Update.
2502 * objfiles.h (struct objfile_per_bfd_storage) <gdbarch>: New field,
2503 moved from...
2504 (struct objfile) <gdbarch>: ... here. Remove.
2505 * stap-probe.c (stap_can_evaluate_probe_arguments): Use
2506 get_objfile_arch.
2507 * symfile.c (init_entry_point_info): Use get_objfile_arch.
2508
f5aee5ee
AM
25092013-08-20 Alan Modra <amodra@gmail.com>
2510
2511 * doublest.c (convert_floatformat_to_doublest): Use fmt->split_half
2512 for IBM long double nan and inf.
2513 (floatformat_is_negative, floatformat_classify,
2514 floatformat_mantissa): Similarly.
2515 (floatformat_ieee_single, floatformat_ieee_double,
2516 floatformat_ieee_quad, floatformat_arm_ext,
2517 floatformat_ia64_spill): Delete unused vars.
2518 (_initialize_doublest): Delete unused function.
2519 * gdbtypes.c (floatformats_ibm_long_double): Use new big- and
2520 little-endian variants of floatformat_ibm_long_double.
2521
33b60d58 25222013-08-19 Luis Machado <lgustavo@codesourcery.com>
f5aee5ee 2523
33b60d58
LM
2524 * Makefile.in (SFILES): Remove common/target-common.c and
2525 add target/waitstatus.c.
2526 (HFILES_NO_SRCDIR): Remove common/target-common.h and add
2527 target/resume.h, target/wait.h and target/waitstatus.h.
2528 (COMMON_OBS): Remove target-common.o and add
2529 waitstatus.o.
2530 (target-common.o): Remove.
2531 (waitstatus.o): New target object file.
2532 * common/target-common.c: Move contents to
2533 target/waitstatus.c and remove.
2534 * common/target-common.h: Move contents to other files and
2535 remove.
2536 (enum resume_kind: Move to target/resume.h.
2537 (TARGET_WNOHANG): Move to target/wait.h.
2538 (enum target_waitkind): Move to target/waitstatus.h.
2539 (struct target_waitstatus): Likewise.
2540 * target.h: Do not include target-common.h and
2541 include target/resume.h, target/wait.h and
2542 target/waitstatus.h.
2543 * target/resume.h: New file.
2544 * target/wait.h: New file.
2545 * target/waitstatus.h: New file.
2546 * target/waitstatus.c: New file.
2547
12696c10
PA
25482013-08-19 Pedro Alves <palves@redhat.com>
2549
2550 * linux-nat.c (linux_test_for_tracefork)
2551 (linux_test_for_tracesysgood, linux_child_follow_fork)
2552 (lin_lwp_attach_lwp, linux_nat_resume): Don't block child signals.
2553 (linux_nat_wait_1): Extend comment.
2554 (linux_async_pipe): Add comment.
2555
ba89f962
KB
25562013-08-15 Kevin Buettner <kevinb@redhat.com>
2557
2558 * rl78-tdep.c (RL78_RAW_PC_REGNUM): New enum.
2559 (RL78_PC_REGNUM): Move to list of pseudo-register enums.
2560 (rl78_register_type, rl78_register_name, rl78_register_reggroup_p):
2561 Update to account for fact that PC is now a pseudo-register.
2562 (rl78_pseudo_register_write, rl78_pseudo_register_read): Add
2563 cases for RL78_PC_REGNUM.
2564
35ab155d
MB
25652013-08-15 Muhammad Bilal <mbilal@codesourcery.com>
2566
2567 PR cli/15841
2568 * top.c (quit_force): Skip writing history file
2569 if input is not from terminal.
2570
0d031856
TT
25712013-08-14 Tom Tromey <tromey@redhat.com>
2572
2573 * remote.c (struct remote_state) <echo_nextthread, nextthread,
2574 resultthreadlist>: New fields.
2575 (OPAQUETHREADBYTES, threadref, MAXTHREADLISTRESULTS): Move earlier.
2576 (remote_get_threadlist, remote_threadlist_iterator): Use
2577 new fields. Remove static variables.
2578
ee154bee
TT
25792013-08-14 Tom Tromey <tromey@redhat.com>
2580
2581 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p,
2582 remote_watch_data_address>: New fields.
2583 (remote_stopped_by_watchpoint_p, remote_watch_data_address): Remove.
2584 (process_stop_reply, remote_wait_as)
2585 (remote_check_watch_resources, remote_stopped_data_address): Update.
2586
88b496c3
TT
25872013-08-14 Tom Tromey <tromey@redhat.com>
2588
2589 * remote.c (struct remote_state) <async_client_callback,
2590 async_client_context>: New fields.
2591 (async_client_callback, async_client_context): Remove.
2592 (remote_async_serial_handler, remote_async): Update.
2593
2f65bcb7
TT
25942013-08-14 Tom Tromey <tromey@redhat.com>
2595
2596 * remote.c (sizeof_pkt): Remove.
2597 (remote_trace_find): Use rs->buf_size, not sizeof_pkt.
2598
b80fafe3
TT
25992013-08-14 Tom Tromey <tromey@redhat.com>
2600
2601 * remote.c (struct remote_state) <use_threadinfo_query,
2602 use_threadextra_query>: New fields.
2603 (remote_threads_info, remote_threads_extra_info)
2604 (remote_open_1): Update.
2605
8e88304f
TT
26062013-08-14 Tom Tromey <tromey@redhat.com>
2607
2608 * remote.c (struct remote_state) <finished_object,
2609 finished_annex, finished_offset>: New fields.
2610 (remote_read_qxfer): Use remote_state fields; remove static
2611 variables.
2612
280ceea3
TT
26132013-08-14 Tom Tromey <tromey@redhat.com>
2614
2615 * remote.c (struct remote_state) <last_sent_step>:
2616 New field.
2617 (last_sent_step): Remove.
2618 (remote_resume, remote_wait_as): Update.
2619
b73be471
TT
26202013-08-14 Tom Tromey <tromey@redhat.com>
2621
2622 * remote.c (struct remote_state) <last_sent_signal>:
2623 New field.
2624 (last_sent_signal): Remove.
2625 (new_remote_state, remote_resume, remote_wait_as): Update.
2626
5e4a05c4
TT
26272013-08-14 Tom Tromey <tromey@redhat.com>
2628
2629 * remote.c (struct remote_state) <last_program_signals_packet>:
2630 New field.
2631 (last_program_signals_packet): Remove.
2632 (remote_program_signals, remote_open_1): Update.
2633
747dc59d
TT
26342013-08-14 Tom Tromey <tromey@redhat.com>
2635
2636 * remote.c (struct remote_state) <last_pass_packet>:
2637 New field.
2638 (last_pass_packet): Remove.
2639 (remote_pass_signals, remote_open_1): Update.
2640
262e1174
TT
26412013-08-14 Tom Tromey <tromey@redhat.com>
2642
2643 * remote.c (struct remote_state) <remote_traceframe_number>:
2644 New field.
2645 (remote_traceframe_number): Remove.
2646 (new_remote_state, remote_open_1, set_remote_traceframe)
2647 (remote_trace_find): Update.
2648
47f8a51d
TT
26492013-08-14 Tom Tromey <tromey@redhat.com>
2650
2651 * remote.c (struct remote_state) <general_thread, continue_thread>:
2652 New fields.
2653 (general_thread, continue_thread): Remove.
2654 (record_currthread, set_thread, set_general_process)
2655 (remote_open_1, extended_remote_attach_1, remote_wait_as)
2656 (extended_remote_mourn_1): Update.
2657
5d93a237
TT
26582013-08-14 Tom Tromey <tromey@redhat.com>
2659
2660 * remote.c (struct remote_state) <remote_desc>: New field.
2661 (remote_desc): Remove.
2662 (remote_threads_info, remote_threads_extra_info, remote_close)
2663 (send_interrupt_sequence, remote_start_remote, remote_open_1)
2664 (readchar, remote_xfer_partial, remote_rcmd, packet_command)
2665 (remote_hostio_send_command, remote_file_put, remote_file_get)
2666 (remote_file_delete, remote_can_async_p, remote_is_async_p)
2667 (remote_async, remote_new_objfile, set_range_stepping): Update.
2668
cf792862
TT
26692013-08-14 Tom Tromey <tromey@redhat.com>
2670
2671 * remote.c (remote_state): Now a pointer.
2672 (get_remote_state_raw): Update.
2673 (new_remote_state): New function.
2674 (_initialize_remote): Use new_remote_state.
2675
dc473cfb
TT
26762013-08-14 Tom Tromey <tromey@redhat.com>
2677
2678 * remote.c (remote_protocol_features): Now const.
2679
85ec6ce7
TT
26802013-08-14 Tom Tromey <tromey@redhat.com>
2681
2682 * remote.c (crc32_table, crc32): Remove.
2683 (remote_verify_memory): Use xcrc32.
2684
73033f12
SDJ
26852013-08-13 Sergio Durigan Junior <sergiodj@redhat.com>
2686
2687 * value.h (create_internalvar_type_lazy): Adjust prototype
2688 declaration.
2689
5c30d39a
AB
26902013-08-13 Andrew Burgess <aburgess@broadcom.com>
2691
2692 * common/format.c (parse_format_string): Don't allow '#' flag for
2693 pointer arguments in format string.
2694
1a66331e
PM
26952013-08-13 Pierre Muller <muller@sourceware.org>
2696
fde605f3 2697 * utils.c (init_page_info): Only call tgetnum function
1a66331e
PM
2698 if rl_get_screen_size did not return useful values.
2699
b4013987
AA
27002013-08-12 Ali Anwar <ali_anwar@codesourcery.com>
2701
2702 PR breakpoints/15117
2703 * linespec.c (linespec_parse_basic): Check for convenience
2704 variable or history value while parsing.
2705
959b6a66
SDJ
27062013-08-12 Sergio Durigan Junior <sergiodj@redhat.com>
2707
2708 Revert implementation of gdbarch_gdb_signal_{to,from}_target for
2709 AVR.
2710 * avr-tdep.c: Remove include of "linux-tdep.h". Remove enum with
2711 different signals between the generic Linux kernel implementation
2712 and AVR's.
2713 (avr_linux_gdb_signal_from_target): Delete.
2714 (avr_linux_gdb_signal_to_target): Delete.
2715 (avr_gdbarch_init): Don't set gdbarch_gdb_signal_{to,from}_target.
2716
24a55014
DE
27172013-08-09 Doug Evans <dje@google.com>
2718
2719 * dwarf2read.c (create_addrmap_from_index): Ignore bad address table
2720 entries.
2721
eb14d406
SDJ
27222013-08-09 Sergio Durigan Junior <sergiodj@redhat.com>
2723
2724 * linux-tdep.c: Define enum with generic signal numbers.
2725 (linux_gdb_signal_from_target): New function.
2726 (linux_gdb_signal_to_target): Likewise.
2727 (linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
2728 methods to the functions above.
2729 * linux-tdep.h (linux_gdb_signal_from_target): New prototype.
2730 (linux_gdb_signal_to_target): Likewise.
2731 * alpha-linux-tdep.c: Define new enum with signals different
2732 from generic Linux kernel.
2733 (alpha_linux_gdb_signal_from_target): New function.
2734 (alpha_linux_gdb_signal_to_target): Likewise.
2735 (alpha_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
2736 with the functions mentioned above.
2737 * avr-tdep.c: Define enum with differences between Linux kernel
2738 and AVR signals.
2739 (avr_linux_gdb_signal_from_target): New function.
2740 (avr_linux_gdb_signal_to_target): Likewise.
2741 (avr_gdbarch_init): Set gdbarch_gdb_signal_{to,from}_target to
2742 the functions mentioned above.
2743 * sparc-linux-tdep.c: Define enum with differences between SPARC
2744 and generic Linux kernel signal numbers.
2745 (sparc32_linux_gdb_signal_from_target): New function.
2746 (sparc32_linux_gdb_signal_to_target): Likewise.
2747 (sparc32_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
2748 to the functions defined above.
2749 * xtensa-linux-tdep.c: Define enum with differences between
2750 Xtensa and Linux kernel generic signals.
2751 (xtensa_linux_gdb_signal_from_target): New function.
2752 (xtensa_linux_gdb_signal_to_target): Likewise.
2753 (xtensa_linux_init_abi): Set gdbarch_gdb_signal_to_target
2754 to the functions defined above.
2755 * mips-linux-tdep.c: Define enum with differences between
2756 signals in MIPS and Linux kernel generic ones.
2757 (mips_gdb_signal_to_target): New function.
2758 (mips_gdb_signal_from_target): Redefine to use new enum, handle
2759 only different signals from the Linux kernel generic.
2760 (mips_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
2761 the functions defined above.
2762 * mips-linux-tdep.h (enum mips_signals): Remove.
2763
156d08c8
PA
27642013-08-09 Pedro Alves <palves@redhat.com>
2765
2766 * avr-tdep.c (XMALLOC): Delete macro.
2767 * cli/cli-dump.c (XMALLOC): Delete macro.
2768
db229724
PA
27692013-08-09 Pedro Alves <palves@redhat.com>
2770
2771 * cli/cli-dump.c: Don't include cli/cli-dump.h.
2772 (scan_expression_with_cleanup, scan_filename_with_cleanup)
2773 (fopen_with_cleanup, add_dump_command): Make static.
2774 * cli/cli-dump.h: Delete file.
2775 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to
2776 cli/cli-dump.h.
2777
3f12a589
PA
27782013-08-09 Pedro Alves <palves@redhat.com>
2779
2780 * tracepoint.c (tfile_start): Show tilde-expanded filename in
2781 error message.
2782
c718be47
PA
27832013-08-09 Pedro Alves <palves@redhat.com>
2784
156d08c8 2785 * breakpoint.c (save_breakpoints): Show tilde-expanded filename in
c718be47
PA
2786 error message.
2787
1e351ed1
PA
27882013-08-09 Pedro Alves <palves@redhat.com>
2789
2790 * gcore.c (create_gcore_bfd): Don't use tilde_expand here.
2791 (gcore_command): Use tilde_expand here, and when showing the
2792 filename to the user, show the expanded version.
2793
1ed8d800
YQ
27942013-08-09 Yao Qi <yao@codesourcery.com>
2795
2796 * stack.c (read_frame_arg): Set 'entryval_error' to NULL if
2797 'entryval' is set.
2798
47ecca85
PA
27992013-08-08 Azat Khuzhin <a3at.mail@gmail.com> (tiny change)
2800
2801 * gcore.c (create_gcore_bfd): Use tilde_expand.
2802
82a0a75f
YQ
28032013-08-08 Yao Qi <yao@codesourcery.com>
2804
2805 * frame.h (read_frame_local): Declare.
2806 * mi/mi-cmd-stack.c (list_args_or_locals): Call
2807 read_frame_local.
2808 * stack.c (read_frame_local): New.
2809
5c4aa40b
YQ
28102013-08-08 Yao Qi <yao@codesourcery.com>
2811
2812 * mi/mi-cmd-stack.c: Update comments to function
2813 list_args_or_locals.
2814
b93601f3
TT
28152013-08-07 Tom Tromey <tromey@redhat.com>
2816
2817 PR symtab/15028:
2818 * dwarf2read.c (struct process_psymtab_comp_unit_data): New.
2819 (process_psymtab_comp_unit_reader): Use it.
2820 (process_psymtab_comp_unit): Update. Add "pretend_language"
2821 argument.
2822 (dwarf2_build_psymtabs_hard): Update.
2823 (scan_partial_symbols): Pass CU's language to
2824 process_psymtab_comp_unit.
2825
fa760f46
TT
28262013-08-07 Tom Tromey <tromey@redhat.com>
2827
2828 * dwarf2read.c (dw2_get_primary_filename_reader): Remove.
2829 (dwarf2_gdb_index_functions): Update.
2830 * psymtab.c (find_symbol_file_from_partial): Remove.
2831 (psym_functions): Update.
2832 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
2833 Remove.
2834
bf6d8a91
TT
28352013-08-07 Tom Tromey <tromey@redhat.com>
2836
2837 * symfile.c (set_initial_language): Look up "main" symbol
2838 and use its language.
2839 * symtab.c (find_main_filename): Remove.
2840 * symtab.h (find_main_filename): Remove.
2841
f9125b6c
TT
28422013-08-07 Tom Tromey <tromey@redhat.com>
2843
2844 * dwarf2read.c (recursively_compute_inclusions): Add
2845 "immediate_parent" argument. Set symtab's "user" field
2846 if not set.
2847 (compute_symtab_includes): Update.
2848
fdbb204b
TT
28492013-08-07 Tom Tromey <tromey@redhat.com>
2850
2851 * linespec.c (convert_linespec_to_sals): Use maybe_add_address
2852 when adding label symbols.
2853
49de1690
UW
28542013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
2855 Ulrich Weigand <uweigand@de.ibm.com>
2856
2857 * configure.tgt (powerpc64-*-aix*): Match powerpc64 running aix.
2858 * configure.host (powerpc64-*-aix*): Likewise.
2859
b08ee99f
UW
28602013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
2861 Ulrich Weigand <uweigand@de.ibm.com>
2862
2863 * gdb_ptrace.h: Use ptrace64 instead of ptrace if HAVE_PTRACE64
2864 is defined.
2865 * rs6000-nat.c: Check for __ld_info64_ if compiling 64 BIT gdb.
2866 (rs6000_ptrace32): Call ptrace64 instead of ptrace if present.
2867 (rs6000_ptrace64): Call ptace64 instead of ptracex if present.
2868 * configure.ac: Check for ptrace64.
2869 * configure, config.in: Regenerate.
2870
fecf803e
UW
28712013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
2872 Ulrich Weigand <uweigand@de.ibm.com>
2873
2874 * aixthread.c: Call ptrace64 instead of ptracex if defined.
2875 Call ptrace64 instead of ptrace if defined.
2876 Add macro addr_ptr to take care of ptrace address argument.
2877 (pdc_read_regs): Likewise.
2878 (pdc_write_regs): Likewise.
2879 (aix_thread_resume): Likewise.
2880 (fetch_regs_kernel_thread): Likewise.
2881 (store_regs_kernel_thread): Likewise.
2882
3bb5e4a8
AB
28832013-08-07 Anton Blanchard <anton@samba.org>
2884
2885 * MAINTAINERS: Add myself to Write After Approval.
2886
12070676
TT
28872013-08-05 Tom Tromey <tromey@redhat.com>
2888
2889 * aix-thread.c (_initialize_aix_thread): Use
2890 complete_target_initialization.
2891 * bsd-uthread.c (_initialize_bsd_uthread): Use
2892 complete_target_initialization.
2893 * dec-thread.c (_initialize_dec_thread): Use
2894 complete_target_initialization.
2895 * ravenscar-thread.c (_initialize_ravenscar): Use
2896 complete_target_initialization.
2897 * sol-thread.c (_initialize_sol_thread): Use
2898 complete_target_initialization.
2899 * spu-multiarch.c (_initialize_spu_multiarch): Use
2900 complete_target_initialization.
2901
7c7b6655
TT
29022013-08-05 Tom Tromey <tromey@redhat.com>
2903
2904 * ada-exp.y (write_var_or_type): Use bound_minimal_symbol.
2905 * ada-lang.c (ada_lookup_simple_minsym): Return
2906 bound_minimal_symbol.
2907 * ada-lang.h (ada_lookup_simple_minsym): Update.
2908 * c-exp.y (variable): Use lookup_bound_minimal_symbol.
2909 * f-exp.y (variable): Use lookup_bound_minimal_symbol.
2910 * go-exp.y (variable): Use lookup_bound_minimal_symbol.
2911 * jv-exp.y (push_expression_name): Use lookup_bound_minimal_symbol.
2912 * m2-exp.y (variable): Use lookup_bound_minimal_symbol.
2913 * minsyms.c (msymbol_objfile): Remove.
2914 (lookup_minimal_symbol_internal): New function, from
2915 lookup_minimal_symbol.
2916 (lookup_minimal_symbol): Rewrite using
2917 lookup_minimal_symbol_internal.
2918 (lookup_bound_minimal_symbol): New function.
2919 * minsyms.h (msymbol_objfile): Remove.
2920 (lookup_bound_minimal_symbol): Declare.
2921 * p-exp.y (variable): Use lookup_bound_minimal_symbol.
2922 * parse.c (write_exp_msymbol): Change parameter to a
2923 bound_minimal_symbol.
2924 (write_dollar_variable): Use lookup_bound_minimal_symbol.
2925 * parser-defs.h (write_exp_msymbol): Update.
2926 * printcmd.c (address_info): Use lookup_bound_minimal_symbol.
2927 * symfile.c (simple_read_overlay_table): Use
2928 lookup_bound_minimal_symbol.
2929 * symtab.c (skip_prologue_sal): Don't use msymbol_objfile.
2930 (search_symbols): Likewise.
2931 (print_msymbol_info): Take a bound_minimal_symbol argument.
2932 (symtab_symbol_info, rbreak_command): Update.
2933 * symtab.h (struct symbol_search) <msymbol>: Change type
2934 to bound_minimal_symbol.
2935 * valops.c (find_function_in_inferior): Use
2936 lookup_bound_minimal_symbol.
2937 * value.c (value_fn_field): Use lookup_bound_minimal_symbol.
2938
934b9bac
JK
29392013-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2940
2941 Code cleanup.
2942 * remote.c (cleanup_sigint_signal_handler): Rename the declaration
2943 to ...
2944 (async_cleanup_sigint_signal_handler): ... this.
2945 (initialize_sigint_signal_handler): Remove declaration.
2946 (handle_remote_sigint): Rename the declaration to ...
2947 (async_handle_remote_sigint): ... this.
2948 (handle_remote_sigint_twice): Rename the declaration to ...
2949 (async_handle_remote_sigint_twice): ... this.
2950 (async_remote_interrupt, async_remote_interrupt_twice)
2951 (remote_interrupt): Remove the declarations.
2952 (remote_interrupt_twice): Rename the declaration ...
2953 (sync_remote_interrupt_twice): ... this.
2954 (sigint_remote_twice_token): Rename the variable to ...
2955 (async_sigint_remote_twice_token): ... this.
2956 (sigint_remote_token): Rename the variable to ...
2957 (async_sigint_remote_token): ... this.
2958 (initialize_sigint_signal_handler): Rename the function to ...
2959 (async_initialize_sigint_signal_handler): ... this. Update the name
2960 inside.
2961 (handle_remote_sigint): Rename the function to ...
2962 (async_handle_remote_sigint): ... this. Update the names inside.
2963 (handle_remote_sigint_twice): Rename the function to ...
2964 (async_handle_remote_sigint_twice): ... this. Update the names inside.
2965 (cleanup_sigint_signal_handler): Rename the function to ...
2966 (async_cleanup_sigint_signal_handler): ... this.
2967 (remote_interrupt): Rename the function to ...
2968 (sync_remote_interrupt): this. Update the names inside.
2969 (remote_interrupt_twice): Rename the function to ...
2970 (sync_remote_interrupt_twice): this. Update the names inside.
2971 (remote_terminal_inferior, remote_terminal_ours, remote_wait_as)
2972 (_initialize_remote): Update the names inside.
2973
3a1115a0
TT
29742013-08-02 Tom Tromey <tromey@redhat.com>
2975
2976 PR symtab/15719:
2977 * breakpoint.c (update_watchpoint, watchpoint_check)
2978 (watch_command_1): Update.
2979 * eval.c (fetch_subexp_value): Add "preserve_errors"
2980 parameter.
2981 * ppc-linux-nat.c (check_condition): Update.
2982 * value.h (fetch_subexp_value): Update.
2983
58b19776
AB
29842013-08-02 Andrew Burgess <aburgess@broadcom.com>
2985
2986 * mi/mi-interp.c (mi_interpreter_resume): Remove call to
2987 add_file_handler.
2988
ec94af83
DE
29892013-08-01 Doug Evans <dje@google.com>
2990
7ee85ab1
DE
2991 PR symtab/15691
2992 * dwarf2read.c (struct dwarf2_per_cu_data): New member tu_read.
2993 (fill_in_sig_entry_from_dwo_entry): Reorganize asserts.
2994 Add assert of sig_entry->dwo_unit == NULL.
2995 (lookup_dwo_signatured_type): Don't assign TU to a DWO if the TU
2996 had already been read.
2997 (read_signatured_type): Set per_cu.tu_read.
2998
b846d303
DE
2999 PR symtab/15695
3000 * valops.c (value_struct_elt): Add missing call to check_typedef.
3001 (value_find_oload_method_list): Ditto.
3002
b52109bc
DE
3003 * symtab.c (do_free_search_symbols_cleanup): Change arg to,
3004 effectively, struct symbol_search **.
3005 (make_cleanup_free_search_symbols): Change arg to struct
3006 symbol_search **. All callers updated.
3007 (compare_search_syms): Compare symtab file name and block as well.
3008 (search_symbols_equal): New function.
3009 (sort_search_symbols_remove_dups): Renamed from sort_search_symbols.
3010 New args new_head, new_tail. Result is now void. Remove dups after
3011 sorting the symbols.
3012 (search_symbols): Sort all found symbols once, after all have been
3013 found, and remove duplicates. Simplify cleanup tracking of result.
3014 * symtab.h (make_cleanup_free_search_symbols): Update prototype.
3015
ec94af83
DE
3016 Further workarounds for binutils/15021.
3017 * dwarf2read.c (recursively_compute_inclusions): Change type of result
3018 parameter to VEC (symtab_ptr) **. New parameter all_type_symtabs.
3019 Watch for duplicate symtabs coming from type units.
3020 (compute_symtab_includes): Update call to
3021 recursively_compute_inclusions. Build vector of included symtabs
3022 instead of per_cus.
3023 * symtab.h (symtab_ptr): New typedef.
3024 (DEF_VEC_P (symtab_ptr)): New VEC type.
3025 * linespec.c (symtab_p): Delete. All uses updated to use symtab_ptr
3026 instead.
3027
b2ae85cf
AB
30282013-08-01 Andrew Burgess <aburgess@broadcom.com>
3029
3030 * cli/cli-script.c (script_from_file): Remove use of
3031 error_pre_print.
3032 * main.c (captured_main): Remove use of error_pre_print and
3033 quit_pre_print.
3034 * utils.c (error_pre_print, quit_pre_print): Remove.
3035 * utils.h (error_pre_print, quit_pre_print): Likewise.
3036
645eab03
YQ
30372013-08-01 Yao Qi <yao@codesourcery.com>
3038
3039 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Parse argv
3040 with mi_getopt.
3041 (mi_cmd_stack_list_variables): Likewise.
3042
16f92dd4
AB
30432013-07-31 Andrew Burgess <aburgess@broadcom.com>
3044
3045 * exceptions.c (deprecated_throw_reason): Remove.
3046 * exceptions.h (deprecated_throw_reason): Remove.
3047
13f78033
AB
30482013-07-31 Andrew Burgess <aburgess@broadcom.com>
3049
3050 * remote-mips.c (mips_error): Replace use of
3051 deprecated_throw_reason with throw_verror. Use the error message
3052 passed to mips_error as the error message for throw_verror.
3053
039e3c22
AB
30542013-07-31 Andrew Burgess <aburgess@broadcom.com>
3055
3056 * monitor.c (monitor_interrupt_query): Replace use of
3057 deprecated_throw_reason with quit.
3058 * nto-procfs.c (interrupt_query): Likewise.
3059 * remote-fileio.c (remote_fileio_sig_exit): Likewise.
3060 * remote-mips.c (mips_kill): Likewise.
3061 * remote.c (interrupt_query): Likewise.
3062
8150913b
AB
30632013-07-31 Andrew Burgess <aburgess@broadcom.com>
3064
3065 * utils.c (internal_verror): Replace use of deprecated_throw_reason
3066 with call to fatal.
3067
de74e63a
YQ
30682013-07-31 Pedro Alves <pedro@codesourcery.com>
3069 Yao Qi <yao@codesourcery.com>
3070
3071 * tracepoint.c (trace_dump_command): Select the current frame.
3072
247f5c4f
DE
30732013-07-30 Doug Evans <dje@google.com>
3074
3075 * dwarf2read.c (process_queue): Add type signature to debug output.
3076
11b4b7cc
AB
30772013-07-30 Andrew Burgess <aburgess@broadcom.com>
3078
3079 * value.c (value_fetch_lazy): Mark optimized out values as such
3080 rather than raising an error.
3081
b0c54aa5
AB
30822013-07-30 Andrew Burgess <aburgess@broadcom.com>
3083
3084 * value.c (value_fetch_lazy): Ensure parent value is not lazy
3085 before checking which bits of the parent, not the child, value are
3086 valid.
3087
97c85fc6
MB
30882013-07-30 Muhammad Bilal <mbilal@codesorcery.com>
3089
3090 PR gdb/15715
3091 * top.c: Include "filenames.h".
3092 (set_history_filename): New function.
3093 (init_main): Install it as set hook of the "set history filename"
3094 command.
3095
ff39bb5e
SA
30962013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
3097
3098 * dwarf2read.c (dwarf2_get_ref_die_offset): Constify struct
3099 attribute parameter.
3100 (dwarf2_const_value_data): Constify struct attribute parameter.
3101 (dwarf2_const_value): Constify struct attribute parameter.
3102 (dwarf2_const_value_attr): Constify struct attribute parameter.
3103 (lookup_die_type): Constify struct attribute parameter.
3104 (dwarf2_get_attr_constant_value): Constify struct attribute parameter.
3105 (follow_die_ref_or_sig): Constify struct attribute parameter.
3106 (follow_die_ref): Constify struct attribute parameter.
3107 (follow_die_sig): Constify struct attribute parameter.
3108 (get_DW_AT_signature_type): Constify struct attribute parameter.
3109 (get_type_unit_group): Constify struct attribute parameter.
3110 (fill_in_loclist_baton): Constify struct attribute parameter.
3111 (dwarf2_symbol_mark_computed): Constify struct attribute parameter.
3112 (type_unit_group): Constify struct attribute parameter.
3113
6e5a29e1
SA
31142013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
3115
3116 * dwarf2read.c (attr_form_is_block): Make argument const.
3117 (attr_form_is_section_offset): Make argument const.
3118 (attr_form_is_constant): Make argument const.
3119 (attr_form_is_ref): Make argument const.
3120
7771576e
SA
31212013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
3122
3123 * dwarf2read.c (attr_is_ref): Rename to attr_form_is_ref.
3124 All uses updated.
3125 (attr_form_is_ref): Moved below attr_form_is_constant.
3126
a94e8645
DE
31272013-07-29 Doug Evans <dje@google.com>
3128
bb5291d0
DE
3129 * main.c (captured_command_loop): Tweak comment.
3130
b5419e49
DE
3131 * target.c (target_async_permitted_1): Fix comment.
3132
b2d23133
DE
3133 * symtab.c (iterate_over_some_symtabs): Add comment.
3134
a94e8645
DE
3135 * symtab.c (iterate_over_some_symtabs): Fix indentation.
3136
7a60ad40
YQ
31372013-07-27 Yao Qi <yao@codesourcery.com>
3138
3139 * NEWS: Mention that GDBserver now supports hardware
3140 watchpoints on the MIPS GNU/Linux target.
3141
aaee2056
YQ
31422013-07-27 Yao Qi <yao@codesourcery.com>
3143
3144 * Makefile.in (HFILES_NO_SRCDIR): Add
3145 common/mips-linux-watch.h.
3146 (mips-linux-watch.o): New rule.
3147 * common/mips-linux-watch.c: New.
3148 * common/mips-linux-watch.h: New.
3149 * config/mips/linux.mh (NATDEPFILES): Add mips-linux-watch.o
3150 * mips-linux-nat.c: Include mips-linux-watch.h.
3151 (W_BIT, R_BIT, I_BIT, W_MASK, R_MASK, I_MASK, IRW_MASK): Move
3152 to common/mips-linux-watch.h.
3153 (MAX_DEBUG_REGISTER): Likewise.
3154 (enum pt_watch_style): Likewise.
3155 (struct mips32_watch_regs): Likewise.
3156 (struct mips64_watch_regs): Likewise.
3157 (struct pt_watch_regs): Likewise.
3158 (struct mips_watchpoint): Likewise.
3159 (mips_linux_watch_get_irw_mask): Move to
3160 common/mips-linux-watch.c.
3161 (get_reg_mask, mips_linux_watch_get_num_valid): Likewise.
3162 (mips_linux_watch_get_watchlo): Likewise.
3163 (mips_linux_watch_set_watchlo): Likewise.
3164 (mips_linux_watch_get_watchhi): Likewise.
3165 (mips_linux_watch_set_watchhi): Likewise.
3166 (mips_linux_read_watch_registers): Likewise.
3167 (mips_linux_watch_type_to_irw): Likewise.
3168 (mips_linux_stopped_data_address, fill_mask): Likewise.
3169 (mips_linux_watch_try_one_watch): Likewise.
3170 (mips_linux_watch_populate_regs): Likewise.
3171
b3436450
YQ
31722013-07-27 Yao Qi <yao@codesourcery.com>
3173
3174 * mips-linux-nat.c (get_irw_mask): Rename to ...
3175 (mips_linux_watch_get_irw_mask): ... this. Rename parameter
3176 'set' to 'n'. Update function comment. All callers changed.
3177 (get_reg_mask): Rename parameter 'set' to 'n'. Update
3178 function comment. All callers changed.
3179 (get_num_valid): Rename to ...
3180 (mips_linux_watch_get_num_valid): ... this. Rename parameter
3181 'set' to 'n'. Update function comment. All callers changed.
3182 (get_watchlo): Rename to ...
3183 (mips_linux_watch_get_watchlo): ... this. Rename parameter
3184 'set' to 'n'. Update function comment. All callers changed.
3185 (set_watchlo): Rename to ...
3186 (mips_linux_watch_set_watchlo): ... this. Rename parameter
3187 'set' to 'n'. Update function comment. All callers changed.
3188 (get_watchhi): Rename to ...
3189 (mips_linux_watch_get_watchhi): ... this. Update function
3190 comment. All callers changed.
3191 (set_watchhi): Rename to ...
3192 (mips_linux_watch_set_watchhi): ... this. Update function
3193 comment. All callers changed.
3194 (mips_linux_read_watch_registers): Update function comment.
3195 Add new parameters 'lwpid', 'watch_readback', and
3196 'watch_readback_valid'. Update.
3197 (type_to_irw): Rename to ...
3198 (mips_linux_watch_type_to_irw): ... this. Update function
3199 comment. All callers changed.
3200 (fill_mask): Update function comment.
3201 (try_one_watch): Rename to ...
3202 (mips_linux_watch_try_one_watch): ... this. Change the type
3203 of parameter 'irw' from 'unsigned' to 'uint32_t'.
3204 (populate_regs_from_watches): Rename to ...
3205 (mips_linux_watch_populate_regs): ... this. Add parameter
3206 'current_watches'. All callers changed.
3207
9be14b81
YQ
32082013-07-27 Yao Qi <yao@codesourcery.com>
3209
3210 * mips-linux-nat.c (MAX_DEBUG_REGISTER): Move it earlier in
3211 the code.
3212 (PTRACE_SET_WATCH_REGS, enum pt_watch_style): Remove.
3213 (struct mips32_watch_regs, struct mips64_watch_regs): Remove.
3214 (struct pt_watch_regs): Likewise.
3215 [!PTRACE_GET_WATCH_REGS] (PTRACE_SET_WATCH_REGS): New macro.
3216 [!PTRACE_GET_WATCH_REGS] (enum pt_watch_style): New.
3217 [!PTRACE_GET_WATCH_REGS] (struct mips32_watch_regs): New.
3218 [!PTRACE_GET_WATCH_REGS] (struct mips64_watch_regs): New.
3219 [!PTRACE_GET_WATCH_REGS] (struct pt_watch_regs): New.
3220
de6f69ad
YQ
32212013-07-27 Yao Qi <yao@codesourcery.com>
3222
3223 * breakpoint.h: Include break-common.h.
3224 (enum target_hw_bp_type): Move to ...
3225 * common/break-common.h: ... here. New.
3226
6f64ef53
PA
32272013-07-26 Cyril Nikolaev <cyril@nichtverstehen.de>
3228
3229 * inflow.c (terminal_init_inferior_with_pgrp): Save inferior
3230 process group regardless of having tty on stdin.
3231
6107e809
DE
32322013-07-25 Doug Evans <dje@google.com>
3233
3234 * linux-fork.h (detach_fork): Delete.
3235
7fdc1521
TT
32362013-07-25 Tom Tromey <tromey@redhat.com>
3237
3238 PR remote/15256, PR remote/15266:
3239 * bfd-target.c (target_bfd_reopen): Initialize to_magic.
3240 * monitor.c (monitor_detach): Use unpush_target.
3241 * remote-m32r-sdi.c (m32r_detach): Use unpush_target.
3242 * remote-mips.c (mips_detach): Use unpush_target. Don't
3243 call mips_close.
3244 * remote-sim.c (gdbsim_detach): Use unpush_target.
3245 * target.c (pop_target): Remove.
3246 (pop_all_targets_above): Don't call target_close.
3247 (target_close): Assert that the target is unpushed.
3248 * target.h (pop_target): Don't declare.
3249 * tracepoint.c (tfile_open): Use unpush_target.
3250
c22a2b88
TT
32512013-07-25 Tom Tromey <tromey@redhat.com>
3252
3253 * linux-thread-db.c (init_thread_db_ops): Call
3254 complete_target_initialization.
3255 (_initialize_thread_db): Don't call add_target.
3256 * target.c (complete_target_initialization): New function.
3257 (add_target_with_completer): Call it.
3258 * target.h (complete_target_initialization): Declare.
3259
cbb6aada
MK
32602013-07-25 Mark Kettenis <kettenis@gnu.org>
3261
3262 * hppa-tdep.h (enum hppa_regnum): Add members for all space registers.
3263 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Add comment.
3264 (HPPANBSD_SIZEOF_GREGS): New define.
3265 (hppaobsd_supply_gregset): Handle additional registers.
3266 * hppabsd-nat.c (hppabsd_gregset_supplies_p): Adjust to indicate
3267 we provide more registers now.
3268 (hppabsd_supply_gregset): Supply additional registers.
3269 (hppabsd_collect_gregset): Collect additional registers.
3270
17767988
MK
32712013-07-25 Mark Kettenis <kettenis@gnu.org>
3272
3273 * hppabsd-tdep.c: Include "dwarf2-frame.h".
3274 (hppabsd_dwarf2_frame_init_reg): New function.
3275 (hppabsd_init_abi): Hook in the DWARF CFI frame unwinder.
3276
fdc8aae8
AB
32772013-07-25 Andrew Burgess <aburgess@broadcom.com>
3278
3279 * mi/mi-main.c (output_register): Make MI 'r' format use standard
3280 'z' format code. Remove error for optimized out values, standard
3281 code will handle these fine.
3282
6fbe845e
AB
32832013-07-25 Andrew Burgess <aburgess@broadcom.com>
3284
3285 * NEWS: Mention new 'z' formatter.
3286 * printcmd.c (print_scalar_formatted): Add new 'z' formatter.
3287 (_initialize_printcmd): Mention 'z' formatter in help text of the
3288 'x' command.
3289
3373342d
MR
32902013-07-24 Maciej W. Rozycki <macro@codesourcery.com>
3291
3292 * mips-tdep.c (micromips_deal_with_atomic_sequence): Correct
3293 formatting.
3294
25f9533e
SDJ
32952013-07-24 Sergio Durigan Junior <sergiodj@redhat.com>
3296
3297 * breakpoint.c (create_longjmp_master_breakpoint): Check if probe
3298 interface can evaluate arguments. Fallback to the old mode if it
3299 cannot.
3300 (create_exception_master_breakpoint): Likewise.
3301 * elfread.c (elf_can_evaluate_probe_arguments): New function.
3302 (struct sym_probe_fns elf_probe_fns): Export function above to the
3303 probe interface.
3304 * probe.c (can_evaluate_probe_arguments): New function.
3305 * probe.h (struct probe_ops) <can_evaluate_probe_arguments>: New
3306 function pointer.
3307 (can_evaluate_probe_arguments): New function prototype.
3308 * solib-svr4.c (svr4_create_solib_event_breakpoints): Check if
3309 probe interface can evaluate arguments. Fallback to the old mode
3310 if it cannot.
3311 * stap-probe.c (stap_get_probe_argument_count): Check if probe
3312 interface can evaluate arguments. Warning the user if it cannot.
3313 (stap_can_evaluate_probe_arguments): New function.
3314 (struct probe_ops stap_probe_ops): Export function above to the
3315 probe interface.
3316 * symfile.h (struct sym_probe_fns) <can_evaluate_probe_arguments>:
3317 New function pointer.
3318
3360c0bf
LM
33192013-07-24 Luis Machado <lgustavo@codesourcery.com>
3320
3321 * Makefile.in (SFILES): Add common/target-common.c.
3322 Add common/target-common.h to headers.
3323 (COMMON_OBS): Add target-common.o.
3324 (target-common.o): New target.
3325 * linux-nat.h (resume_kind): Move to common/target-common.h.
3326 * target.c (target_waitstatus_to_string): Move to
3327 common/target-common.c.
3328 * target.h: Include target-common.h.
3329 (target_waitkind): Move to common/target-common.h.
3330 (target_waitstatus): Likewise.
3331 (TARGET_WNOHANG): Likewise.
3332 * common/target-common.c: New file.
3333 * common/target-common.h: New file.
3334
6656a72d
DE
33352013-07-24 Doug Evans <dje@google.com>
3336
3337 * dwarf2read.c (lookup_dwo_cutu): Change missing DWO complaint to
3338 a warning.
3339
6df81a63
YQ
33402013-07-23 Yao Qi <yao@codesourcery.com>
3341
3342 * i386-tdep.c (i386_in_stack_tramp_p): Remove unused
3343 parameter 'gdbarch'.
3344 (i386_stack_tramp_frame_sniffer): Caller update.
3345 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Remove
3346 parameter 'gdbarch' and 'target'.
3347 (i386_linux_core_read_description): Caller update.
3348 * amd64-linux-tdep.c (amd64_linux_core_read_description):
3349 Likewise.
3350 * i386-linux-tdep.h (i386_linux_core_read_xcr0): Update
3351 declaration.
3352
365156ad
TT
33532013-07-23 Tom Tromey <tromey@redhat.com>
3354
3355 * dwarf2read.c (init_cutu_and_read_dies): Revert patch from
3356 2013-07-22.
3357
046ac79f
JK
33582013-07-22 Doug Evans <dje@google.com>
3359
3360 * exec.h (remove_target_sections): Delete arg abfd.
66cbcda4
JK
3361 * exec.c (exec_close): Update call to remove_target_sections.
3362 (remove_target_sections): Delete arg abfd.
046ac79f
JK
3363 * solib.c (update_solib_list): Ditto.
3364 (reload_shared_libraries_1): Ditto.
3365 (clear_solib): Ditto, and unconditionally call remove_target_sections.
66cbcda4
JK
3366 * target.h (struct target_section): Rename key to owner.
3367 All uses updated.
046ac79f 3368
29b2cc46
TT
33692013-07-22 Tom Tromey <tromey@redhat.com>
3370
3371 * solib-som.c (som_open_symbol_file_object): Call do_cleanups.
3372
d1160018
TT
33732013-07-22 Tom Tromey <tromey@redhat.com>
3374
3375 * dwarf2read.c (init_cutu_and_read_dies): Remove 'free_cu_cleanup'.
3376 Simplify cleanup handling.
3377
2f324bf6
TT
33782013-07-22 Tom Tromey <tromey@redhat.com>
3379
3380 * dwarf2read.c (dwarf_decode_line_header): Call do_cleanups
3381 on all return paths.
3382
e23b9d6e
UW
33832013-07-22 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3384
3385 * ppc-linux-nat.c (PPC_DEBUG_FEATURE_DATA_BP_DAWR): New define.
3386 (ppc_linux_region_ok_for_hw_watchpoint): Add checking to use the new
3387 DAWR interface for longer ranges hardware watchpoint (up to 512 bytes).
3388
1cf55f60
PM
33892013-07-22 Phil Muldoon <pmuldoon@redhat.com>
3390
3391 * top.c (print_gdb_version): Add help, apropos description and
3392 url to online documentation.
3393
fa876972
HZ
33942013-07-19 Hui Zhu <hui@codesourcery.com>
3395
3396 PR gdb/15692
3397 * mi/mi-cmd-break.c (mi_argv_to_format): Handle double quotes.
3398
1527aea8
YQ
33992013-07-19 Yao Qi <yao@codesourcery.com>
3400
3401 * target.c (update_current_target): Change the default action
3402 of 'to_traceframe_info' from tcomplain to return_zero.
3403 * target.h (struct target_ops) <to_traceframe_info>: Add more
3404 comments.
3405 * valops.c (read_value_memory): Call
3406 traceframe_available_memory unconditionally.
3407
886f230e
YQ
34082013-07-18 Yao Qi <yao@codesourcery.com>
3409
3410 * coffread.c (coff_symfile_read): Iterate over minimal symbols,
3411 if the name is prefixed by "__imp_" or "_imp_", look for minimal
3412 symbol without prefix. If found, set its type to
3413 'mst_solib_trampoline'.
3414
16419bae
DE
34152013-07-17 Doug Evans <dje@google.com>
3416
e7045703
DE
3417 * NEWS: Mention "set print raw frame-arguments".
3418 * gdbcmd.h (setprintrawlist, showprintrawlist): Declare.
3419 * stack.c (print_raw_frame_arguments): New static global.
3420 (print_frame_arg): Set opts.raw from print_raw_frame_arguments.
3421 (_initialize_stack): New command "set/show print raw frame-arguments".
3422 * valprint.c (setprintrawlist, showprintrawlist): New globals.
3423 (set_print_raw, show_print_raw): New functions.
3424 (_initialize_valprint): New prefix command "set/show print raw".
3425 * valprint.h (value_print_options): Improve comments.
3426
453e48a5
DE
3427 * cli/cli-cmds.c (init_cmd_lists): Delete unnecessary initialization
3428 of all *list variables.
3429
16419bae
DE
3430 * gdbcmd.h (togglelist): Delete.
3431 * cli/cli-cmds.c (togglelist): Delete.
3432 (init_cmd_lists): Update.
3433 * cli/cli-cmds.h (togglelist): Delete.
3434
626f2d1c
TT
34352013-07-17 Tom Tromey <tromey@redhat.com>
3436
3437 * dwarf2read.c (dwarf2_per_objfile_free): Clear
3438 dwarf2_per_objfile.
3439
57e6060e
DE
34402013-07-16 Doug Evans <dje@google.com>
3441
3442 * nto-tdep.c (nto_relocate_section_addresses): Update,
3443 target_section.bfd deleted.
3444 * ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Ditto.
3445 * s390-tdep.c (s390_load): Ditto.
3446 * solib-aix.c (solib_aix_relocate_section_addresses): Ditto.
3447
5ea5559b
AB
34482013-07-16 Andrew Burgess <aburgess@broadcom.com>
3449
3450 * common/format.c (parse_format_string): Add checks for NULL
3451 character before calling strchr.
3452
2b2848e2
DE
34532013-07-16 Doug Evans <dje@google.com>
3454
2c571006
DE
3455 * solist.h (target_so_ops.find_and_open_solib): Clarify usage of
3456 temp_pathname argument.
3457 * nto-tdep.c (nto_find_and_open_solib): Fix setting of temp_pathname
3458 when opening the file fails.
3459
2b2848e2
DE
3460 * target.h (struct target_section): Delete member bfd.
3461 All users updated to use the_bfd_section->owner instead.
3462 * exec.c (add_to_section_table): Assert bfd is expected value.
3463 Remove initialization of target_section.bfd.
3464 (remove_target_sections): Update.
3465 (section_table_available_memory): Update.
3466 (section_table_xfer_memory_partial): Update.
3467 (print_section_info): Update.
3468 (exec_set_section_address): Update.
3469 * record-full.c (record_full_core_xfer_partial): Update.
3470 * solib-svr4.c (svr4_relocate_section_addresses): Update.
3471 * solib-target.c (solib_target_relocate_section_addresses): Update.
3472 * symfile.c (build_section_addr_info_from_section_table): Update.
3473 * target.c (memory_xfer_live_readonly_partial): Update.
3474 (memory_xfer_partial_1): Update.
3475
926bf92d
UW
34762013-07-15 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3477
3478 * ppc-linux-nat.c: Since the new PowerPC specific ptrace interface is
3479 now available for embedded (BookE) and server (BookS) processors,
3480 correct mentions of 'booke' and adjust comments accordingly in order to
3481 avoid confusion. Rename struct 'booke_debug_info' to 'hwdebug_info'.
3482 (have_ptrace_booke_interface): Rename function and variable
3483 'have_ptrace_booke_interface' to 'have_ptrace_hwdebug_interface'.
3484 Rename struct 'booke_debug_info' to 'hwdebug_info'. Update all uses.
3485 (booke_cmp_hw_point): Rename function 'booke_cmp_hw_point' to
3486 'hwdebug_point_cmp'. Update all uses.
3487 (booke_find_thread_points_by_tid): Rename function
3488 'booke_find_thread_points_by_tid' to
3489 'hwdebug_find_thread_points_by_tid'. Update all uses.
3490 (booke_insert_point): Rename function 'booke_insert_point' to
3491 'hwdebug_insert_point'. Update all uses.
3492 (booke_remove_point): Rename function 'booke_remove_point' to
3493 'hwdebug_remove_point'. Update all uses.
3494
d929bc19
MR
34952013-07-15 Maciej W. Rozycki <macro@codesourcery.com>
3496
3497 * mips-tdep.c (mips_gdbarch_init): Replace hardcoded magic
3498 numbers with enum values.
3499
054e8d9e
AA
35002013-07-15 Ali Anwar <ali_anwar@codesourcery.com>
3501
3502 PR threads/13217
3503 * thread.c (thread_apply_all_command): Check for valid threads
3504 and thread count.
3505 (thread_array_cleanup): New struct.
3506 (set_thread_refcount): New function.
3507
cf006359
AB
35082013-07-11 Andrew Burgess <aburgess@broadcom.com>
3509
3510 * infcmd.c (default_print_one_register_info): Reuse function
3511 print_hex_chars.
3512
94e36acc
TT
35132013-07-10 Tom Tromey <tromey@redhat.com>
3514
3515 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS, ADA_EXP_C): New macros.
3516 (ada-exp.o): New target.
3517
915dd369
SDJ
35182013-07-10 Sergio Durigan Junior <sergiodj@redhat.com>
3519
3520 * mt-tdep.c (mt_registers_info): Call
3521 get_no_prettyformat_print_options instead of
3522 get_raw_print_options (regression by last patch from Doug
3523 Evans).
3524
eca07816
JB
35252013-07-09 Pedro Alves <palves@redhat.com>
3526
3527 Checked in by Joel Brobecker <brobecker@adacore.com>.
3528 * ada-lang.c (coerce_unspec_val_to_type): Use
3529 value_optimized_out_const.
3530 * value.c (value_optimized_out_const): New function.
3531 * value.h (value_optimized_out_const): New declaration.
3532
2a998fc0
DE
35332013-07-09 Doug Evans <dje@google.com>
3534
3535 * defs.h (enum val_prettyformat): Renamed from val_prettyprint.
3536 Enum values rename as well. All uses updated.
3537 * valprint.h (value_print_options): Rename member pretty to
3538 pretty format. Rename member prettyprint_arrays to
3539 prettyformat_arrays. Rename member prettyprint_structs to
3540 prettyformat_structs. All uses updated.
3541 (get_no_prettyformat_print_options): Renamed from
3542 get_raw_print_options.
3543 * valprint.c (get_no_prettyformat_print_options): Renamed from
3544 get_raw_print_options. All callers updated.
3545 (show_prettyformat_structs): Renamed from show_prettyprint_structs.
3546 All callers updated.
3547 (show_prettyformat_arrays): Renamed from show_prettyprint_arrays.
3548 All callers updated.
3549 (_initialize_valprint): Improve help text for "set print pretty" and
3550 "set print arrays".
3551
466c1fca
AB
35522013-07-09 Andrew Burgess <aburgess@broadcom.com>
3553
3554 * value.c (value_bits_valid): Revert previous change, and change
3555 by Pedro on 2013-07-04, due to regressions in
3556 gdb.dwarf2/implptr.exp and gdb.dwarf2/pieces.exp.
3557
ad0f0303
AB
35582013-07-08 Andrew Burgess <aburgess@broadcom.com>
3559 Pedro Alves <palves@redhat.com>
3560
3561 * value.c (value_bits_valid): If the value is not lval_computed
3562 or has no check validity handler then the answer is the
3563 optimized_out flag, otherwise defer to the handler.
3564
b187bec1
EZ
35652013-07-06 Eli Zaretskii <eliz@gnu.org>
3566
48d1d6f5
EZ
3567 * top.c (print_gdb_configuration): Explain in output of
3568 --configuration what does "relocatable" mean.
3569
b187bec1
EZ
3570 * main.c (print_gdb_help): Regroup options in the --help text.
3571 See http://sourceware.org/ml/gdb-patches/2013-04/msg00362.html for
3572 the relevant discussions.
3573
52d361e1
YQ
35742013-07-06 Yao Qi <yao@codesourcery.com>
3575
3576 * breakpoint.h (struct breakpoint_ops) <create_breakpoints_sal>:
3577 Remove parameter 'lsal'.
3578 * breakpoint.c (create_breakpoint): Move local variable 'lsal'
3579 to inner block. Caller update.
3580 (base_breakpoint_create_breakpoints_sal): Update.
3581 (bkpt_create_breakpoints_sal): Likewise.
3582 (tracepoint_create_breakpoints_sal): Likewise.
3583 (strace_marker_create_breakpoints_sal): Get 'lsal' from the
3584 element 0 of vector 'canonical->sals'.
3585
e1ec1b42
LM
35862013-07-05 Luis Machado <lgustavo@codesourcery.com>
3587
3588 * rs6000-tdep.c (rs6000_stab_reg_to_regnum): Return the real
3589 register number instead of the pseudo register one.
3590 (rs6000_dwarf2_reg_to_regnum): Likewise.
3591
7195e6f0
PA
35922013-07-04 Pedro Alves <palves@redhat.com>
3593
3594 * findvar.c (value_of_register): Use allocate_optimized_out_value
3595 if the register has been optimized out, instead of
3596 set_value_optimized_out.
3597 * frame-unwind.c (frame_unwind_got_optimized): Use
3598 allocate_optimized_out_value.
3599
58722cac
PA
36002013-07-04 Pedro Alves <palves@redhat.com>
3601
3602 * value.c (value_bits_valid): If the value is not lval_computed,
3603 or doesn't have a check_validity hook, assume the value is entirely
3604 valid.
3605
691a26f5
AB
36062013-07-04 Andrew Burgess <aburgess@broadcom.com>
3607
3608 * stack.c (read_frame_arg): No longer fetch lazy values.
3609 * value.c (value_optimized_out): If the value is not already
3610 marked optimized out, and is lazy then fetch it.
3611 (value_primitive_field): Move optimized out check to later in the
3612 function, after we have loaded any lazy values.
3613 (value_fetch_lazy): Use optimized out flag directly rather than
3614 calling optimized_out method.
3615
a58e2656
AB
36162013-07-04 Andrew Burgess <aburgess@broadcom.com>
3617
3618 * valops.c: Don't include "user-regs.h".
3619 (value_fetch_lazy): Moved to value.c.
3620 * value.c: Include "user-regs.h".
3621 (value_fetch_lazy): Moved from valops.c.
3622
bd885420
YQ
36232013-07-04 Yao Qi <yao@codesourcery.com>
3624
3625 Revert:
3626 2013-06-27 Yao Qi <yao@codesourcery.com>
3627
3628 * common/create-version.sh: Update comments. Handle the case
3629 that TARGET_ALIAS is empty.
3630
17ef446e
PA
36312013-07-03 Pedro Alves <palves@redhat.com>
3632
3633 * Makefile.in (config.status): Depend on development.sh.
3634 (aclocal_m4_deps): Add libmcheck.m4.
3635 * acinclude.m4: Include libmcheck.m4.
3636 * configure.ac: Source development.sh instead of setting
3637 'development' here. --enable-libmcheck/--disable-libmcheck code
3638 factored out to GDB_AC_LIBMCHECK. Run it.
3639 * development.sh: New file.
3640 * libmcheck.m4: New file.
3641 * configure: Regenerate.
3642
ac6dd50f
TT
36432013-07-02 Tom Tromey <tromey@redhat.com>
3644
3645 * contrib/ari/update-web-ari.sh: Update for version.in change.
3646
bd1df410
TT
36472013-07-02 Tom Tromey <tromey@redhat.com>
3648
3649 * common/ptid.h: Comment fixes.
3650
4db1a1dc
TT
36512013-07-01 Tom Tromey <tromey@redhat.com>
3652
3653 * dwarf2read.c (dwarf2_get_dwz_file): Return NULL if
3654 .gnu_debugaltlink not found. Use bfd_get_alt_debug_link_info.
3655 (dwarf2_read_index, create_all_comp_units): Update.
3656
dd9aa048
TT
36572013-07-01 Tom Tromey <tromey@redhat.com>
3658
3659 * configure.ac (build_warnings): Add -Wold-style-definition.
3660 * configure: Rebuild.
3661 * machoread.c (_initialize_machoread): Use "(void)".
3662 * macrocmd.c (macro_inform_no_debuginfo): Fix formatting;
3663 use "(void)".
3664
44d100c3
TT
36652013-07-01 Tom Tromey <tromey@redhat.com>
3666
3667 * configure.ac (build_warnings): Add -Wold-style-declaration.
3668 * configure: Rebuild.
3669 * dsrec.c (make_srec): Use "static const", not "const static".
3670 * h8300-tdep.c (h8300_breakpoint_from_pc): Use "static const",
3671 not "const static".
3672 * mi/mi-parse.c (mi_no_values, mi_simple_values, mi_all_values):
3673 Use "static const", not "const static".
3674 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Use "static const",
3675 not "const static".
3676 * moxie-tdep.c (moxie_breakpoint_from_pc): Use "static const",
3677 not "const static".
3678 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Use "static const",
3679 not "const static".
3680 * v850-tdep.c (v850_breakpoint_from_pc): Use "static const",
3681 not "const static".
3682 (v850_dbtrap_breakpoint_from_pc): Likewise.
3683 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Use "static const",
3684 not "const static".
3685
2945b807
TT
36862013-07-01 Tom Tromey <tromey@redhat.com>
3687
3688 * configure.ac (build_warnings): Add -Wmissing-parameter-type.
3689 * configure: Rebuild.
3690
d8d2a3ee
PA
36912013-07-01 Pedro Alves <palves@redhat.com>
3692
3693 * defs.h: Include "pathmax.h".
3694 * utils.c: Don't include sys/param.h.
3695 (gdb_realpath): Remove code that checks for MAXPATHLEN.
3696 * solib-ia64-hpux.c (ia64_hpux_handle_load_event): Use PATH_MAX
3697 instead of MAXPATHLEN.
3698 * solib-sunos.c: Don't include sys/param.h.
3699 * xcoffread.c: Don't include sys/param.h.
3700 * bsd-kvm.c: Don't include sys/param.h.
3701 * darwin-nat.c: Don't include sys/param.h.
3702 (darwin_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
3703 * darwin-nat-info.c: Don't include sys/param.h.
3704 * fbsd-nat.c (fbsd_pid_to_exec_file): Use PATH_MAX instead of
3705 MAXPATHLEN.
3706 * i386obsd-nat.c: Don't include sys/param.h.
3707 * inf-child.c: Don't include sys/param.h.
3708 (inf_child_fileio_readlink): Use PATH_MAX instead of MAXPATHLEN.
3709 * linux-fork.c: Don't include sys/param.h.
3710 (fork_save_infrun_state): Use PATH_MAX instead of MAXPATHLEN.
3711 * linux-nat.c: Don't include sys/param.h.
3712 (linux_child_pid_to_exec_file, linux_proc_pending_signals)
3713 (linux_proc_pending_signals): Use PATH_MAX instead of MAXPATHLEN.
3714 * m68klinux-nat.c: Don't include sys/param.h.
3715 * nbsd-nat.c: Don't include sys/param.h.
3716 (nbsd_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
3717 * ppc-linux-nat.c: Don't include sys/param.h.
3718 * rs6000-nat.c: Don't include sys/param.h.
3719 * spu-linux-nat.c. Don't include sys/param.h.
3720 * windows-nat.c: Don't include sys/param.h.
3721 * xtensa-linux-nat.c: Don't include sys/param.h.
3722 * config/i386/nm-fbsd.h: Don't include sys/param.h.
3723
38ec2207
PA
37242013-07-01 Pedro Alves <palves@redhat.com>
3725
3726 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add pathmax.
3727 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/pathmax.m4.
3728 * gnulib/aclocal.m4: Regenerate.
3729 * gnulib/config.in: Regenerate.
3730 * gnulib/configure: Regenerate.
3731 * gnulib/import/pathmax.h: New file.
3732 * gnulib/import/Makefile.am: Regenerate.
3733 * gnulib/import/Makefile.in: Regenerate.
3734 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
3735 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
3736 * gnulib/import/m4/pathmax.m4: New file.
3737
e655c1a2
PA
37382013-07-01 Pedro Alves <palves@redhat.com>
3739
3740 * configure.ac (GDBINIT): Define, depending on host.
3741 * go32-nat.c (init_go32_ops): Don't override gdbinit here.
3742 * top.c (PATH_MAX): Delete fallback definition.
3743 (GDBINIT_FILENAME): Delete.
3744 (gdbinit): Reimplement as const char array set to the GDBINIT
3745 string constant.
3746 * top.h (gdbinit): Make const.
3747 * configure, config.in: Regenerate.
3748
50dd9793
PA
37492013-07-01 Pedro Alves <palves@redhat.com>
3750
3751 * cli/cli-cmds.c (source_script): Make 'file' parameter const.
3752 * cli/cli-cmds.h (source_script): Likewise.
3753 * exceptions.c (catch_command_errors_const): New function.
3754 * exceptions.h (catch_command_errors_const): Declare.
3755 * main.c (get_init_files): Make parameters const, and adjust.
3756 (captured_main): Make 'system_gdbinit', 'home_gdbinit' and
3757 'local_gdbinit' locals const. Adjust to use
3758 catch_command_errors_const.
3759 (print_gdb_help): Make 'system_gdbinit', 'home_gdbinit' and
3760 'local_gdbinit' locals const.
3761
bc7dea8d
PA
37622013-07-01 Pedro Alves <palves@redhat.com>
3763
3764 * defs.h: Don't check HAVE_UNISTD_H before including <unistd.h>.
3765 (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO): Delete.
3766 * tracepoint.c: Don't check HAVE_UNISTD_H before including
3767 <unistd.h>.
3768
8839a007
PA
37692013-07-01 Pedro Alves <palves@redhat.com>
3770
3771 Import the "unistd" gnulib module.
3772 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add "unistd".
3773 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/off_t.m4,
3774 import/m4/ssize_t.m4, import/m4/sys_types_h.m4 and
3775 import/m4/unistd_h.m4.
3776 * gnulib/aclocal.m4: Renenerate.
3777 * gnulib/config.in: Renenerate.
3778 * gnulib/configure: Renenerate.
3779 * gnulib/import/Makefile.am: Renenerate.
3780 * gnulib/import/Makefile.in: Renenerate.
3781 * gnulib/import/m4/gnulib-cache.m4: Renenerate.
3782 * gnulib/import/m4/gnulib-comp.m4: Renenerate.
3783 * gnulib/import/m4/off_t.m4: New file.
3784 * gnulib/import/m4/ssize_t.m4: New file.
3785 * gnulib/import/m4/sys_types_h.m4: New file.
3786 * gnulib/import/m4/unistd_h.m4: New file.
3787 * gnulib/import/sys_types.in.h: New file.
3788 * gnulib/import/unistd.c: New file.
3789 * gnulib/import/unistd.in.h: New file.
3790
8c0da261
PA
37912013-07-01 Pedro Alves <palves@redhat.com>
3792
3793 * utils.c <pathconf/_PC_PATH_MAX use>: Check if _PC_PATH_MAX is
3794 defined instead of checking HAVE_UNISTD_H.
3795
3574124b
PA
37962013-07-01 Pedro Alves <palves@redhat.com>
3797
3798 Reimport gnulib from scratch.
3799 * gnulib/Makefile.in (aclocal_m4_deps): Remove reference to
3800 import/m4/onceonly.m4.
3801 * gnulib/aclocal.m4: Renegerate.
3802 * gnulib/config.in: Renegerate.
3803 * gnulib/configure: Renegerate.
3804 * gnulib/import/Makefile.in: Renegerate.
3805 * gnulib/import/extra/update-copyright: Renegerate.
3806 * gnulib/import/m4/onceonly.m4: Delete.
3807
702dc4fd
PA
38082013-07-01 Pedro Alves <palves@redhat.com>
3809
3810 * tui/tui-regs.c (pagination_enabled): Delete declaration.
3811
47e1ce27
JK
38122013-06-30 Jan Kratochvil <jan.kratochvil@redhat.com>
3813
3814 Code cleanup.
3815 * remote.c (async_remote_interrupt_twice): Make it static.
3816 * remote.h (async_remote_interrupt_twice): Remove the declaration.
3817
e82839d4
SDJ
38182013-06-29 Sergio Durigan Junior <sergiodj@redhat.com>
3819
3820 * ia64-linux-tdep.c: Include <ctype.h>.
3821 (ia64_linux_stap_is_single_operand): New function.
3822 (ia64_linux_init_abi): Initialize SystemTap related attributes.
3823
d6c2da54
TT
38242013-06-28 Tom Tromey <tromey@redhat.com>
3825
3826 * Makefile.in (version.c): Use version.in, not
3827 common/version.in.
3828 * common/create-version.sh: Likewise.
3829 * common/version.in: Move...
3830 * version.in: ...here.
3831
74da6f00
PA
38322013-06-28 Pedro Alves <palves@redhat.com>
3833
3834 * infrun.c (set_observer_mode): Don't declare pagination_enabled
3835 here.
3836 * utils.h (pagination_enabled): Declare.
3837
d32dc48e
PA
38382013-06-28 Pedro Alves <palves@redhat.com>
3839
3840 * infrun.c (non_stop, non_stop_1, set_non_stop, show_non_stop):
3841 Move higher up in file.
3842
0edd9e3b
TT
38432013-06-28 Tom Tromey <tromey@redhat.com>
3844
3845 * tracepoint.c (deprecated_readline_begin_hook)
3846 (deprecated_readline_hook, deprecated_readline_end_hook): Don't
3847 declare.
3848
4eb59108
PA
38492013-06-28 Pedro Alves <palves@redhat.com>
3850
3851 PR tui/14880
3852 * tui/tui-regs.c (tui_get_register): Fetch value contents before
3853 checking if they're available.
3854 * value.c (value_available_contents_eq): Change comment.
3855 * value.h (value_available_contents_eq): Expand comment.
3856
97b17156
TT
38572013-06-27 Tom Tromey <tromey@redhat.com>
3858
3859 * target.c (find_run_target): Remove.
3860 * target.h (find_run_target): Remove.
3861
6a3bfc5c
TT
38622013-06-27 Tom Tromey <tromey@redhat.com>
3863
3864 * corelow.c (core_gdbarch): Now static.
3865
c9ef825d
TT
38662013-06-27 Tom Tromey <tromey@redhat.com>
3867
3868 * target.c (target_struct_index): Remove.
3869
e5823f1c
PA
38702013-06-27 Pedro Alves <palves@redhat.com>
3871
3872 * infrun.c: Remove comment describing the 'stepping over runtime
3873 loader dynamic symbol resolution code' mechanism; moved to
3874 gdbint.texinfo.
3875
97f8dd09
PA
38762013-06-27 Pedro Alves <palves@redhat.com>
3877
3878 * exceptions.c (catch_command_errors): Remove spurious space.
3879 * exceptions.h (catch_command_errors): Second parameter is "arg",
3880 not "command".
3881
02b1871e
YQ
38822013-06-27 Yao Qi <yao@codesourcery.com>
3883
3884 * common/create-version.sh: Update comments. Handle the case
3885 that TARGET_ALIAS is empty.
3886
bb1b1cf1
PA
38872013-06-26 Pedro Alves <palves@redhat.com>
3888
3889 * infrun.c (SOLIB_IN_DYNAMIC_LINKER): Delete macro and describing
3890 comment.
3891
7b624e71
PA
38922013-06-26 Pedro Alves <palves@redhat.com>
3893
3894 * infrun.c: Update comments on stepping over runtime loader
3895 dynamic symbol resolution code.
3896
74e5a346
SDJ
38972013-06-26 Sergio Durigan Junior <sergiodj@redhat.com>
3898
3899 * ax-gdb.h (union exp_element): Forward declare.
3900 * parser-defs.h: Include expression.h.
3901
a2fb2cee
MR
39022013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
3903
3904 * mips-tdep.c (fetch_mips_16): Use unmake_compact_addr.
3905
cdba14e0
DK
39062013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
3907
3908 * tracepoint.c (trace_save): Extend tsave to save starttime, stoptime.
3909
f30aa5af
DK
39102013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
3911
3912 Fix trace-status to output proper start-time and stop-time.
3913 * tracepoint.c (trace_status_command): Fix type of printf arg to
3914 prevent improper type conversion.
3915 (trace_status_mi): Likewise.
3916
1aee363c
MR
39172013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
3918
3919 * mips-tdep.c (mips_next_pc): Fix a typo.
3920
3356937a
MR
39212013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
3922
3923 * mips-tdep.c (micromips_scan_prologue): Fix a typo.
3924
dc673c81
YQ
39252013-06-26 Pedro Alves <pedro@codesourcery.com>
3926 Yao Qi <yao@codesourcery.com>
3927
3928 * mi/mi-cmds.c (mi_cmds): Register -trace-frame-collected.
3929 * mi/mi-cmds.h (mi_cmd_trace_frame_collected): Declare.
3930 * mi/mi-main.c (print_variable_or_computed): New function.
3931 (mi_cmd_trace_frame_collected): New function.
3932 * tracepoint.c (find_trace_state_variable_by_number): New.
3933 (struct traceframe_info): Move to tracepoint.h
3934 (struct collection_list): Likewise.
3935 (do_collect_symbol): Include locals and arguments in the
3936 collected variables list.
3937 (clear_collection_list): Clear wholly collected variables list
3938 and computed variables list.
3939 (append_exp): New function.
3940 (encode_actions_1): Include variables in the wholly
3941 collected variables list. Include memory ranges and
3942 full-fledged expressions in the computed expressions list.
3943 (encode_actions): Move some code to ...
3944 Return the cleanup chain.
3945 (encode_actions_rsp): ... here. New function.
3946 (get_traceframe_location, get_traceframe_info): Remove static.
3947 * tracepoint.h (struct memrange): Moved from tracepoint.c.
3948 (struct collection_list): Moved from tracepoint.c. Add two
3949 new fields 'wholly_collected' and 'computed'.
3950 (find_trace_state_variable_by_number): Declare.
3951 (encode_actions): Adjust declaration.
3952 (encode_actions_rsp): Declare.
3953 (get_traceframe_info, get_traceframe_location): Declare.
3954
3955 * NEWS: Mention new MI command -trace-frame-collected.
3956
28a93511
YQ
39572013-06-26 Pedro Alves <pedro@codesourcery.com>
3958 Yao Qi <yao@codesourcery.com>
3959
3960 * ctf.c (ctf_traceframe_info): Push trace state variables
3961 present in the trace data into the traceframe info object.
3962 * breakpoint.c (DEF_VEC_I): Remove.
3963 * common/filestuff.c (DEF_VEC_I): Likewise.
3964 * dwarf2loc.c (DEF_VEC_I): Likewise.
3965 * mi/mi-main.c (DEF_VEC_I): Likewise.
3966 * common/gdb_vecs.h (DEF_VEC_I): Define vector for int.
3967 * features/traceframe-info.dtd: Add tvar element and its
3968 attributes.
3969 * tracepoint.c (free_traceframe_info): Free vector 'tvars'.
3970 (build_traceframe_info): Push trace state variables present in
3971 the trace data into the traceframe info object.
3972 (traceframe_info_start_tvar): New function.
3973 (tvar_attributes): New.
3974 (traceframe_info_children): Add "tvar" element.
3975 * tracepoint.h (struct traceframe_info) <tvars>: New field.
3976
3977 * NEWS: Mention the change in GDB and GDBserver.
3978
ddacd3c8
YQ
39792013-06-26 Pedro Alves <pedro@codesourcery.com>
3980 Yao Qi <yao@codesourcery.com>
3981
3982 * tracepoint.c (trace_dump_command): Move code to ...
3983 (get_traceframe_location): ... here. New.
3984
05796b35
YQ
39852013-06-26 Pedro Alves <pedro@codesourcery.com>
3986 Yao Qi <yao@codesourcery.com>
3987
3988 * tracepoint.c (trace_dump_command): GDB emits an error
3989 instead of a warning when a traceframe is not selected.
3990
cbfa3b61
YQ
39912013-06-26 Pedro Alves <pedro@codesourcery.com>
3992 Yao Qi <yao@codesourcery.com>
3993
3994 * tracepoint.c (tracepoint_list, stepping_list): Remove.
3995 (clear_collection_list): Free fields 'aexpre_list' and 'list'
3996 in collection_list.
3997 (do_clear_collection_list, init_collection_list): New.
3998 (encode_actions): Add local variables 'tracepoint_list' and
3999 'stepping_list'. Call init_collection_list and make cleanup
4000 which calls do_clear_collection_list. Don't call
4001 clear_collection_list.
4002 (_initialize_tracepoint): Delete references to
4003 'tracepoint_list' and 'stepping_list'.
4004
6e2048d3
TT
40052013-06-25 Tom Tromey <tromey@redhat.com>
4006
4007 * common/create-version.sh (date): Use "$", not "$$" in sed
4008 expression.
4009
42059f0e
KB
40102013-06-25 Kevin Buettner <kevinb@redhat.com>
4011
4012 * NEWS (New targets): Add entry for TI MSP430.
4013
a0743c90
YQ
40142013-06-25 Yao Qi <yao@codesourcery.com>
4015
4016 * remote.c (remote_start_remote): Move code to upload tsv
4017 earlier.
4018
9d6e6e84
HZ
40192013-06-25 Yao Qi <yao@codesourcery.com>
4020 Hui Zhu <hui@codesourcery.com>
4021 Pedro Alves <palves@redhat.com>
4022
4023 PR breakpoints/15075
4024 PR breakpoints/15434
4025 * breakpoint.c (bpstat_stop_status): Call
4026 b->ops->after_condition_true.
4027 (update_dprintf_command_list): Don't append "continue" command
4028 to the command list of dprintf breakpoint.
4029 (base_breakpoint_after_condition_true): New function.
4030 (base_breakpoint_ops): Add base_breakpoint_after_condition_true.
4031 (dprintf_after_condition_true): New function.
4032 (initialize_breakpoint_ops): Set dprintf_after_condition_true.
4033 * breakpoint.h (breakpoint_ops): Add after_condition_true.
4034
586cf749
KB
40352013-06-24 Kevin Buettner <kevinb@redhat.com>
4036
4037 * Makefile.in (ALL_TARGET_OBS): Add msp430-tdep.o.
4038 (ALLDEPFILES): Add msp430-tdep.c.
4039 * configure.tgt (msp430*-*-elf): New target.
4040 * msp430-tdep.c: New file.
4041
1bbce132
MR
40422013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
4043
4044 * mips-tdep.c (mips_elf_make_msymbol_special): Handle MIPS16 and
4045 microMIPS synthetic symbols.
4046
3e5d3a5a
MR
40472013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
4048
4049 * objfiles.h (pc_in_section): New prototype.
4050 (in_plt_section): Remove name argument, replace prototype with
4051 static inline function.
4052 * mips-tdep.h: Include "objfiles.h".
4053 (in_mips_stubs_section): New function.
4054 * hppa-tdep.h (gdbarch_tdep): Remove name argument of
4055 in_solib_call_trampoline member.
4056 (hppa_in_solib_call_trampoline): Remove name argument.
4057 * objfiles.c (pc_in_section): New function.
4058 (in_plt_section): Remove function.
4059 * mips-linux-tdep.c: Include "objfiles.h".
4060 (mips_linux_in_dynsym_stub): Call in_mips_stubs_section. Remove
4061 name argument. Return 1 rather than the low 16-bit halfword of
4062 any instruction examined.
4063 (mips_linux_in_dynsym_resolve_code): Update
4064 mips_linux_in_dynsym_stub call accordingly.
4065 * mips-tdep.c (mips_stub_frame_sniffer): Use in_mips_stubs_section
4066 rather than an equivalent hand-coded sequence.
4067 * hppa-hpux-tdep.c (in_opd_section): Remove function.
4068 (hppa32_hpux_in_solib_call_trampoline): Remove name argument.
4069 (hppa64_hpux_in_solib_call_trampoline): Likewise.
4070 (hppa64_hpux_find_global_pointer): Use pc_in_section rather than
4071 in_opd_section.
4072 * hppa-tdep.c (hppa_stub_unwind_sniffer): Remove name argument
4073 on call to tdep->in_solib_call_trampoline.
4074 (hppa_in_solib_call_trampoline): Remove name argument, update
4075 according to in_plt_section change.
4076 (hppa_skip_trampoline_code): Update according to in_plt_section
4077 change.
4078 * aarch64-tdep.c (aarch64_stub_unwind_sniffer): Likewise.
4079 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code):
4080 Likewise.
4081 * arm-tdep.c (arm_stub_unwind_sniffer): Likewise.
4082 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
4083 * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise.
4084 * nios2-tdep.c (nios2_stub_frame_sniffer): Likewise.
4085 * nto-tdep.c (nto_relocate_section_addresses): Likewise.
4086 * s390-tdep.c (s390_stub_frame_sniffer): Likewise.
4087 * sh-tdep.c (sh_stub_unwind_sniffer): Likewise.
4088 * solib-dsbt.c (dsbt_in_dynsym_resolve_code): Likewise.
4089 * solib-frv.c (frv_in_dynsym_resolve_code): Likewise.
4090 * solib-svr4.c (svr4_in_dynsym_resolve_code): Likewise.
4091 * solib-target.c (solib_target_in_dynsym_resolve_code): Likewise.
4092 * sparc-tdep.c (sparc_analyze_prologue): Likewise.
4093 * tic6x-tdep.c (tic6x_stub_unwind_sniffer): Likewise.
4094
b9b26a16
JB
40952013-06-24 Joel Brobecker <brobecker@adacore.com>
4096
4097 * common/create-version.sh: Fix expansion of $host_alias
4098 and $target_alias in generation of HOST_NAME and TARGET_NAME
4099 (resp.).
4100
01208463
TT
41012013-06-24 Tom Tromey <tromey@redhat.com>
4102
4103 * common/create-version.sh: New file.
4104 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
4105 create-version.sh.
4106 (HFILES_NO_SRCDIR): Use common/version.h.
4107 * version.in: Move to ...
4108 * common/version.in: ... here. Replace date with "DATE".
4109 * version.h: Move to ...
4110 * common/version.h: ... here.
4111
bb6b9a5e
JB
41122013-06-21 Joel Brobecker <brobecker@adacore.com>
4113
4114 * gdb/gnulib/Makefile.in: Update date in copyright header.
4115 * gdb/gnulib/configure.ac: Ditto.
4116 * gdb/gnulib/update-gnulib.sh: Ditto.
4117
c3b18ee7
JB
41182013-06-21 Joel Brobecker <brobecker@adacore.com>
4119
4120 * copyright.py (EXCLUDE_LIST): Replace "gdb/gnulib" by
4121 "gdb/gnulib/import".
4122
85d3b769
WN
41232013-06-21 Will Newton <will.newton@linaro.org>
4124
4125 * doublest.c (ldfrexp): Remove function.
4126 (convert_doublest_to_floatformat): Call frexpl instead of
4127 ldfrexp.
4128
88b48903
WN
41292013-06-21 Will Newton <will.newton@linaro.org>
4130
4131 * gnulib/update-gnulib.sh(IMPORTED_GNULIB_MODULES): Add frexpl.
4132 * gnulib/aclocal.m4: Regenerate.
4133 * gnulib/config.in: Regenerate.
4134 * gnulib/configure: Regenerate.
4135 * gnulib/import/Makefile.am: Update.
4136 * gnulib/import/Makefile.in: Update.
4137 * gnulib/import/m4/gnulib-cache.m4: Update.
4138 * gnulib/import/m4/gnulib-comp.m4: Update.
4139 * gnulib/import/float+.h: Import.
4140 * gnulib/import/float.c: Import.
4141 * gnulib/import/float.in.h: Import.
4142 * gnulib/import/fpucw.h: Import.
4143 * gnulib/import/frexp.c: Import.
4144 * gnulib/import/frexpl.c: Import.
4145 * gnulib/import/isnan.c: Import.
4146 * gnulib/import/isnand-nolibm.h: Import.
4147 * gnulib/import/isnand.c: Import.
4148 * gnulib/import/isnanl-nolibm.h: Import.
4149 * gnulib/import/isnanl.c: Import.
4150 * gnulib/import/itold.c: Import.
4151 * gnulib/import/m4/exponentd.m4: Import.
4152 * gnulib/import/m4/exponentl.m4: Import.
4153 * gnulib/import/m4/float_h.m4: Import.
4154 * gnulib/import/m4/fpieee.m4: Import.
4155 * gnulib/import/m4/frexp.m4: Import.
4156 * gnulib/import/m4/frexpl.m4: Import.
4157 * gnulib/import/m4/isnand.m4: Import.
4158 * gnulib/import/m4/isnanl.m4: Import.
4159 * gnulib/import/m4/math_h.m4: Import.
4160 * gnulib/import/math.c: Import.
4161 * gnulib/import/math.in.h: Import.
4162
4353c9e6
JK
41632013-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4164
4165 * common/linux-btrace.c (cpu_supports_btrace): Remove variable vendor,
4166 replace strcmp with signature_INTEL_ebx, signature_INTEL_ecx and
4167 signature_INTEL_edx comparisons.
4168
e3e06db3
DE
41692013-06-20 Doug Evans <dje@google.com>
4170
6ac97d4c
DE
4171 symtab/15652
4172 * dwarf2read.c (try_open_dwop_file): New arg search_cwd.
4173 All callers updated.
4174 (open_dwp_file): If we can't find the dwp file, search the basename
4175 in debug-file-directory.
4176
93417882
DE
4177 * dwarf2read.c (struct dwp_file): Fix comment.
4178 (open_and_init_dwp_file): Set dwp_file->name to bfd's file name.
4179
e3e06db3
DE
4180 * source.c (openp): Document OPF_TRY_CWD_FIRST+OPF_SEARCH_IN_PATH
4181 better.
4182
0878d0fa
YQ
41832013-06-20 Yao Qi <yao@codesourcery.com>
4184
4185 * breakpoint.c (create_breakpoint): Fix code indentation.
4186
023fa29b
YQ
41872013-06-20 Yao Qi <yao@codesourcery.com>
4188
4189 * breakpoint.c (create_breakpoints_sal_default): Remove
4190 parameter 'lsal'. Update declaration.
4191 (bkpt_create_breakpoints_sal): Caller update.
4192 (tracepoint_create_breakpoints_sal): Likewise.
4193
c898adb7
YQ
41942013-06-20 Pedro Alves <pedro@codesourcery.com>
4195 Yao Qi <yao@codesourcery.com>
4196
4197 * NEWS: Mention the new option '--skip-unavailable' of command
4198 -data-list-register-values.
4199 * mi/mi-main.c (mi_cmd_data_list_register_values): Accept the
4200 --skip-unavailable option. Adjust to use output_register.
4201 (output_register): Add new 'skip_unavailable' parameter.
4202 Handle it.
4203
4d157a3d
MF
42042013-06-19 Mike Frysinger <vapier@gentoo.org>
4205
4206 * Makefile.in (HFILES_NO_SRCDIR): Add common/i386-cpuid.h and
4207 common/i386-gcc-cpuid.h.
4208 * common/i386-cpuid.h: New wrapper header around i386-gcc-cpuid.h.
4209 * common/i386-gcc-cpuid.h: Rename from testsuite/gdb.arch/i386-cpuid.h.
4210 Copy the latest version from upstream gcc.
4211 * common/linux-btrace.c: Include i386-cpuid.h.
4212 (intel_supports_btrace): Delete x86 ifdefs and replace inline asm with
4213 call to i386_cpuid.
4214 (cpu_supports_btrace): Likewise.
4215 * go32-nat.c: Include i386-cpuid.h.
4216 (go32_sysinfo): Add (disabled) calls to i386_cpuid with comments.
4217
1ce4db08
DE
42182013-06-19 Doug Evans <dje@google.com>
4219
4220 * symfile.c (symfile_bfd_open): Delete unnecessary declaration.
4221 (get_section_index): Ditto.
4222
0e4777df
TT
42232013-06-19 Tom Tromey <tromey@redhat.com>
4224
4225 * breakpoint.c (_initialize_breakpoint): Remove trailing \n from
4226 "dprintf" help.
4227
3190f0c6
DE
42282013-06-18 Doug Evans <dje@google.com>
4229
4230 * dwarf2read.c (dw2_symtab_iter_next): Check value of cu_index
4231 before using it.
4232 (dw2_expand_symtabs_matching): Fix symbol kind validity check.
4233 Move test of cu_index closer to use. Print complaint if cu_index
4234 is bad.
4235
8b89a20a
JB
42362013-06-18 Joel Brobecker <brobecker@adacore.com>
4237
4238 * machoread.c (oso_vector): Delete this global.
4239 (macho_register_oso): Add new parameter "oso_vector_ptr".
4240 Use it instead of the "oso_vector" global.
4241 (macho_symtab_read, macho_symfile_read_all_oso): Likewise.
4242 (macho_symfile_read): Use a local oso_vector, to be free'ed
4243 at the end of this function, in place of the old "oso_vector"
4244 global. Update various function calls accordingly. Use one
4245 single cleanup chain for the entire function.
4246
59b0c7c1
JB
42472013-06-18 Joel Brobecker <brobecker@adacore.com>
4248
937c708c 4249 * dwarf2read.c (dwarf2_per_objfile_free): Replace uses of
59b0c7c1
JB
4250 DWARF2_PER_OBJFILE by uses of DATA instead.
4251
427cd150
TT
42522013-06-18 Tom Tromey <tromey@redhat.com>
4253
4254 * break-catch-sig.c (signal_catchpoint_explains_signal): Add 'sig'
4255 argument.
4256 * breakpoint.c (bpstat_explains_signal): Add 'sig' argument.
4257 Special case signals other than GDB_SIGNAL_TRAP.
4258 (explains_signal_watchpoint): New function.
4259 (base_breakpoint_explains_signal): Add 'sig' argument.
4260 (initialize_breakpoint_ops): Set 'explains_signal' method for
4261 watchpoints.
4262 * breakpoint.h (struct breakpoint_ops) <explains_signal>: Add
4263 signal argument.
4264 (bpstat_explains_signal): Likewise.
4265 * infrun.c (handle_syscall_event, handle_inferior_event): Update.
4266
2d57700b
TT
42672013-06-18 Tom Tromey <tromey@redhat.com>
4268
4269 * python/py-inferior.c (gdbpy_selected_inferior): Don't incref.
4270
ac475191
TT
42712013-06-18 Tom Tromey <tromey@redhat.com>
4272
4273 * python/python.c (finish_python_initialization): Decref
4274 'pythondir' on failure path as well.
4275
5bd1ef56
TT
42762013-06-18 Tom Tromey <tromey@redhat.com>
4277
4278 PR symtab/15391:
4279 * dwarf2loc.c (read_pieced_value): Truncate this_size_bits
4280 after taking bits_to_skip into account. Sign extend byte_offset.
4281 * utils.h (gdb_sign_extend): Declare.
4282 * utils.c (gdb_sign_extend): New function.
4283
92fac807
JK
42842013-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4285
4286 * dwarf2read.c (write_psymtabs_to_index): Ignore NULL PSYMTAB.
4287
2d503272
PM
42882013-06-17 Pierre Muller <muller@sourceware.org>
4289
4290 * corelow.c (core_open): Print GDB signal name instead of target
4291 signal number.
4292
6916fd98
MF
42932013-06-17 Mike Frysinger <vapier@gentoo.org>
4294
4295 * .gitignore: Add /gcore.
4296
9c02c129
DE
42972013-06-13 Doug Evans <dje@google.com>
4298
4299 * dwarf2read.c (try_open_dwop_file): Work around behaviour of
4300 OPF_TRY_CWD_FIRST to not search path if the file contains a '/'.
4301
d0548fa2
PM
43022013-06-12 Phil Muldoon <pmuldoon@redhat.com>
4303
4304 * stack.c (backtrace_command_1): Fix indentation.
4305
22128028
JB
43062013-06-11 Joel Brobecker <brobecker@adacore.com>
4307
4308 * window-nat.c (thread_rec): Add missing empty line after
4309 local variable declaration.
4310
2ed3e009
JB
43112013-06-11 Joel Brobecker <brobecker@adacore.com>
4312
4313 * windows-nat.c (thread_rec): Revert format used to print
4314 error code returned by SuspendThread from %d back to %u.
4315
0c3d84be
JB
43162013-06-11 Joel Brobecker <brobecker@adacore.com>
4317
4318 * windows-nat.c (windows_continue): Add "0x" prefix for thread
4319 ID in debug trace.
4320 (get_windows_debug_event): Likewise, for all debug traces.
4321
80e88e1a
JB
43222013-06-11 Joel Brobecker <brobecker@adacore.com>
4323
4324 * window-nat.c (thread_rec): Add thread ID in SuspendThread
4325 warning message.
4326
1edebdbf
YQ
43272013-06-08 Pedro Alves <pedro@codesourcery.com>
4328 Yao Qi <yao@codesourcery.com>
4329
4330 * mi/mi-main.c (get_register): Remove declaration.
4331 (output_register): Declare.
4332 (mi_cmd_data_list_register_values): Remove local variable
4333 'tuple_cleanup'. Move some code into output_register.
4334 (get_register): Renamed to ...
4335 (output_register): ... this. Output the register's
4336 "number" ui_out tuple here.
4337
47d48711
PA
43382013-06-07 Pedro Alves <palves@redhat.com>
4339
4340 * darwin-nat.c: Fix formating in copyright header.
4341 * darwin-nat.h: Likewise.
4342 * gnu-nat.c: Likewise.
4343 * machoread.c: Likewise.
4344
3aee8918
PA
43452013-06-07 Pedro Alves <palves@redhat.com>
4346
5f2b57b5 4347 PR server/14823
3aee8918
PA
4348 * regformats/regdat.sh: Output #include tdesc.h. Make globals
4349 static. Output a global target description pointer.
4350 (init_registers_${name}): Adjust to initialize a
4351 target description structure.
4352
fe8400b4
WN
43532013-06-07 Will Newton <will.newton@linaro.org>
4354
4355 * printcmd.c (build_address_symbolic): Call
4356 gdbarch_addr_bits_remove for text minimal symbols.
4357
20df6206
WN
43582013-06-07 Will Newton <will.newton@linaro.org>
4359
4360 * MAINTAINERS: Add myself to Write After Approval.
4361
aef525cb
YQ
43622013-06-07 Yao Qi <yao@codesourcery.com>
4363
4364 * tracepoint.c (start_tracing): Move code to ...
4365 (trace_reset_local_state): ... here. New.
4366 (disconnect_tracing): Don't call set_current_traceframe,
4367 set_tracepoint_num, and set_traceframe_context. Call
4368 trace_reset_local_state instead.
4369 (tfile_close): Call trace_reset_local_state.
4370 * ctf.c (ctf_close): Likewise.
4371 * remote.c (remote_close): Likewise.
4372 * tracepoint.h (trace_reset_local_state): Declare.
4373
d2415c6c
DE
43742013-06-06 Doug Evans <dje@google.com>
4375
4376 * dwarf2read.c: Whitespace fixes for DWP file format documentation,
4377 and fix header docs.
4378
69fc87c2
DE
43792013-06-05 Doug Evans <dje@google.com>
4380 Keith Seitz <keiths@redhat.com>
4381
4382 PR 15519
4383 * cp-namespace.c (find_symbol_in_baseclass): Call
4384 cp_lookup_symbol_in_namespace instead of cp_lookup_symbol_namespace.
4385 Check result of call to lookup_symbol_static.
4386 Call lookup_static_symbol_aux unconditionally.
4387 Call check_typedef on base types before accessing them.
4388 (cp_lookup_nested_symbol): Fix comment.
4389
a513d1e8
LM
43902013-06-05 Luis Machado <lgustavo@codesourcery.com>
4391
4392 * gnu-v3-abi.c (gnuv3_skip_trampoline): Handle thunk
4393 minimal symbols pointing to function descriptors.
4394
351a6f02
TT
43952013-06-05 Tom Tromey <tromey@redhat.com>
4396
4397 * python/py-utils.c (gdb_pymodule_addobject): Cast away const.
4398
5e1b953b 43992013-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
c7c0b644 4400 Pedro Alves <palves@redhat.com>
5e1b953b
SDJ
4401
4402 * remote.c (remote_wait_as): Restore signal handler before returning
4403 when GDB gets a notification.
4404
f9e14852
GB
44052013-06-04 Gary Benson <gbenson@redhat.com>
4406
8445cbf1 4407 PR 2328
f9e14852
GB
4408 * breakpoint.h (handle_solib_event): Moved function declaration
4409 to solib.h.
4410 * breakpoint.c (handle_solib_event): Moved function to solib.c.
4411 (bpstat_stop_status): Pass new argument to handle_solib_event.
4412 * solib.h (update_solib_breakpoints): New function declaration.
4413 (handle_solib_event): Moved function declaration from
4414 breakpoint.h.
4415 * solib.c (update_solib_breakpoints): New function.
4416 (handle_solib_event): Moved function from breakpoint.c.
4417 Updated to call solib_ops->handle_event if not NULL.
4418 * solist.h (target_so_ops): New fields "update_breakpoints" and
4419 "handle_event".
4420 * infrun.c (set_stop_on_solib_events): New function.
4421 (_initialize_infrun): Use the above for "set
4422 stop-on-solib-events".
4423 (handle_inferior_event): Pass new argument to handle_solib_event.
4424 * solib-svr4.c (probe.h): New include.
4425 (svr4_free_library_list): New forward declaration.
4426 (probe_action): New enum.
4427 (probe_info): New struct.
4428 (probe_info): New static variable.
4429 (NUM_PROBES): New definition.
4430 (svr4_info): New fields "using_xfer", "probes_table" and
4431 "solib_list".
4432 (free_probes_table): New function.
4433 (free_solib_list): New function.
4434 (svr4_pspace_data_cleanup): Free probes table and solib list.
4435 (svr4_copy_library_list): New function.
4436 (svr4_current_sos_via_xfer_libraries): New parameter "annex".
4437 (svr4_read_so_list): New parameter "prev_lm".
4438 (svr4_current_sos_direct): Renamed from "svr4_current_sos".
4439 (svr4_current_sos): New function.
4440 (probe_and_action): New struct.
4441 (hash_probe_and_action): New function.
4442 (equal_probe_and_action): Likewise.
4443 (register_solib_event_probe): Likewise.
4444 (solib_event_probe_at): Likewise.
4445 (solib_event_probe_action): Likewise.
4446 (solist_update_full): Likewise.
4447 (solist_update_incremental): Likewise.
4448 (disable_probes_interface_cleanup): Likewise.
4449 (svr4_handle_solib_event): Likewise.
4450 (svr4_update_solib_event_breakpoint): Likewise.
4451 (svr4_update_solib_event_breakpoints): Likewise.
4452 (svr4_create_solib_event_breakpoints): Likewise.
4453 (enable_break): Free probes table before creating breakpoints.
4454 Use svr4_create_solib_event_breakpoints to create breakpoints.
4455 (svr4_solib_create_inferior_hook): Free the solib list.
4456 (_initialize_svr4_solib): Initialise
4457 svr4_so_ops.handle_solib_event and svr4_so_ops.update_breakpoints.
4458
ced63ec0
GB
44592013-06-04 Gary Benson <gbenson@redhat.com>
4460
4461 * target.h (target_ops): New field
4462 "to_augmented_libraries_svr4_read".
4463 (target_augmented_libraries_svr4_read): New macro.
4464 * target.c (update_current_target): Handle
4465 to_augmented_libraries_svr4_read.
4466 * remote.c (remote_state): New field
4467 "augmented_libraries_svr4_read".
4468 (remote_augmented_libraries_svr4_read_feature): New function.
4469 (remote_protocol_features): Add entry for
4470 "augmented-libraries-svr4-read".
4471 (remote_augmented_libraries_svr4_read): New function.
4472 (init_remote_ops): Initialize
4473 remote_ops.to_augmented_libraries_svr4_read.
4474
7f91dbec
GB
44752013-06-04 Gary Benson <gbenson@redhat.com>
4476
4477 * NEWS: Update.
4478
607ece04
GB
44792013-06-04 Gary Benson <gbenson@redhat.com>
4480
4481 * objfiles.h (inhibit_section_map_updates): New function
4482 declaration.
4483 (resume_section_map_updates): Likewise.
4484 (resume_section_map_updates_cleanup): Likewise.
4485 * objfiles.c (objfile_pspace_info): Removed field
4486 "objfiles_changed_p". New fields "new_objfiles_available",
4487 "section_map_dirty" and "inhibit_updates".
4488 (allocate_objfile): Set new_objfiles_available.
4489 (free_objfile): Set section_map_dirty.
4490 (objfile_relocate1): Likewise.
4491 (in_plt_section): Likewise.
4492 (find_pc_section): Update the conditions under which the
4493 section map will be updated.
4494 (inhibit_section_map_updates): New function.
4495 (resume_section_map_updates): Likewise.
4496 (resume_section_map_updates_cleanup): Likewise.
4497
9ee6a5ac
GB
44982013-06-04 Gary Benson <gbenson@redhat.com>
4499
4500 * probe.h (get_probe_argument_count): New declaration.
4501 (evaluate_probe_argument): Likewise.
4502 * probe.c (get_probe_argument_count): New function.
4503 (evaluate_probe_argument): Likewise.
4504 (probe_safe_evaluate_at_pc): Use the above new functions.
4505
845d4708
AM
45062013-06-04 Alan Modra <amodra@gmail.com>
4507
4508 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
4509 * rs6000-tdep.c (read_insn): Add frame param, don't assume big-endian.
4510 (ppc_insns_match_pattern): Add frame param. Avoid multiple
4511 target mem reads on optional insns.
4512 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Update
4513 ppc_insns_match_pattern calls.
4514 * ppc64-tdep.c (ppc64_standard_linkage2, ppc64_standard_linkage3):
4515 Add match for power7 thread safety insns, and new order of
4516 std 2,40(1) insn. Correct code shown for _dl_runtime_resolve
4517 invocation in comment, and update rest of comment.
4518 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN,
4519 PPC64_STANDARD_LINKAGE3_LEN): Delete.
4520 (ppc64_standard_linkage2_target): Update insn offsets.
4521 (ppc64_skip_trampoline_code): Use a single insn buffer. Match newer
4522 stubs first. Update calls.
4523
404e278f
YQ
45242013-06-04 Yao Qi <yao@codesourcery.com>
4525
4526 * solib.c (solib_find): Don't need dir separator if path has
4527 drive spec.
4528
f6aea118
JB
45292013-06-03 Joel Brobecker <brobecker@adacore.com>
4530
4531 Revert (indirectly causes a SIGSEGV):
4532 * machoread.c (macho_symfile_read): Assign first cleanup to
4533 'back_to'.
4534
87967e27
YQ
45352013-06-03 Yao Qi <yao@codesourcery.com>
4536
4537 * mi/mi-cmd-var.c (mi_no_values, mi_simple_values): Move to
4538 mi-parse.c. Make them static.
4539 (mi_all_values): Likewise.
4540 (mi_parse_values_option): Move to mi-parse.c. Rename it to
4541 mi_parse_print_values. Make it external.
4542 * mi/mi-cmds.h (mi_no_values, mi_simple_values, mi_all_values):
4543 Remove the declarations.
4544 * mi/mi-parse.c (mi_parse_print_values): Moved from mi-cmd-var.c.
4545 * mi/mi-parse.h (mi_parse_print_values): Declare.
4546 * mi/mi-cmd-stack.c: Include mi-parse.h.
4547 (parse_print_values): Remove
4548 (mi_cmd_stack_list_locals): Call mi_parse_print_values instead
4549 of parse_print_values.
4550 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Likewise.
4551
3ca73e0c
YQ
45522013-05-31 Pedro Alves <pedro@codesourcery.com>
4553 Yao Qi <yao@codesourcery.com>
4554
4555 * tracepoint.c (all_tracepoint_actions_and_cleanup): Declare.
4556 (encode_actions): Move code to ...
4557 (all_tracepoint_actions_and_cleanup): ... here. New.
4558 (trace_dump_command): Likewise.
4559
4e993a19
TT
45602013-05-30 Tom Tromey <tromey@redhat.com>
4561
4562 * symmisc.c (maintenance_expand_symtabs): Call do_cleanups.
4563
e3b76b4f
TT
45642013-05-30 Tom Tromey <tromey@redhat.com>
4565
4566 * xml-support.c (gdb_xml_create_parser_and_cleanup): Rename from
4567 gdb_xml_create_parser_and_cleanup_1. Return a cleanup. Remove
4568 'old_chain' argument. Add 'parser_result' argument.
4569 (gdb_xml_create_parser_and_cleanup): Remove old version.
4570 (gdb_xml_parse_quick): Update.
4571 (xml_process_xincludes): Update.
4572 * xml-support.h (gdb_xml_create_parser_and_cleanup): Don't
4573 declare.
4574
db26349c
TT
45752013-05-30 Tom Tromey <tromey@redhat.com>
4576
4577 * probe.c (collect_probes): Check arguments for NULL before
4578 calling compile_rx_or_error.
4579 * utils.c (compile_rx_or_error): Require 'rx' to be non-NULL.
4580 Remove NULL return.
4581
77f9e713
TT
45822013-05-30 Tom Tromey <tromey@redhat.com>
4583
4584 * infrun.c (adjust_pc_after_break): Introduce an outer null
4585 cleanup.
4586
45475de7
TT
45872013-05-30 Tom Tromey <tromey@redhat.com>
4588
4589 * mi/mi-cmd-var.c (varobj_update_one): Add an outer null cleanup.
4590
ac5007fd
TT
45912013-05-30 Tom Tromey <tromey@redhat.com>
4592
4593 * cli/cli-script.c (read_command_lines_1): Use a null cleanup
4594 for 'old_chain'. Do not check 'head' before processing
4595 cleanups.
4596
cd82eddc
TT
45972013-05-30 Tom Tromey <tromey@redhat.com>
4598
4599 * mi/mi-cmd-stack.c (list_arg_or_local): Remove
4600 "cleanup_tuple".
4601
57cee33a
TT
46022013-05-30 Tom Tromey <tromey@redhat.com>
4603
4604 * dbxread.c (dbx_read_symtab): Declare 'back_to' in a more
4605 inner scope. Unconditionally call do_cleanups.
4606
795d915c
TT
46072013-05-30 Tom Tromey <tromey@redhat.com>
4608
4609 * source.c (find_and_open_source): Call do_cleanups.
4610
1fc3cf4a
TT
46112013-05-30 Tom Tromey <tromey@redhat.com>
4612
4613 * linux-thread-db.c (thread_db_load_search): Unconditionally
4614 call do_cleanups.
4615
e35ac9bf
TT
46162013-05-30 Tom Tromey <tromey@redhat.com>
4617
4618 * solib-aix.c (solib_aix_bfd_open): Don't use a null cleanup
4619 for 'cleanup'; instead use a later one.
4620
f3300387
TT
46212013-05-30 Tom Tromey <tromey@redhat.com>
4622
4623 * python/py-breakpoint.c (bppy_get_commands): Use
4624 explicit, unconditional return.
4625 * python/py-frame.c (frapy_read_var): Likewise.
4626 * python/python.c (gdbpy_decode_line): Likewise.
4627
c27e16e3
TT
46282013-05-30 Tom Tromey <tromey@redhat.com>
4629
4630 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Call
4631 do_cleanups on all return paths.
4632
5ae85e44
TT
46332013-05-30 Tom Tromey <tromey@redhat.com>
4634
4635 * top.c (execute_command): Discard 'cleanup_if_error' cleanups.
4636
73b8d9da
TT
46372013-05-30 Tom Tromey <tromey@redhat.com>
4638
4639 * stabsread.c (read_struct_type): Call do_cleanups along
4640 all return paths.
4641
7d266584
MR
46422013-05-30 Maciej W. Rozycki <macro@codesourcery.com>
4643
4644 * mips-linux-tdep.c: Adjust formatting throughout.
4645
0f900f54
TT
46462013-05-30 Tom Tromey <tromey@redhat.com>
4647
4648 * mipsread.c (read_alphacoff_dynamic_symtab): Call do_cleanups
4649 along all return paths.
4650
a991ac28
TT
46512013-05-30 Tom Tromey <tromey@redhat.com>
4652
4653 * symfile.c (find_separate_debug_file): Call do_cleanups
4654 along all return paths.
4655
1abaf042
TT
46562013-05-30 Tom Tromey <tromey@redhat.com>
4657
4658 * symtab.c (search_symbols): Introduce a null cleanup for
4659 'retval_chain'.
4660
edefe1da
TT
46612013-05-30 Tom Tromey <tromey@redhat.com>
4662
4663 * python/py-value.c (valpy_binop): Call do_cleanups before
4664 exiting loop.
4665
54f72dcc
TT
46662013-05-30 Tom Tromey <tromey@redhat.com>
4667
4668 * python/py-prettyprint.c (print_children): Remove extra
4669 do_cleanups call.
4670
af1c6971
TT
46712013-05-30 Tom Tromey <tromey@redhat.com>
4672
4673 * python/py-frame.c (frapy_read_var): Call do_cleanups along
4674 all return paths.
4675
b862ce75
TT
46762013-05-30 Tom Tromey <tromey@redhat.com>
4677
4678 * python/py-breakpoint.c (bppy_get_commands): Call do_cleanups
4679 along all return paths.
4680
e12fefc8
TT
46812013-05-30 Tom Tromey <tromey@redhat.com>
4682
4683 * cli/cli-logging.c (set_logging_redirect): Unconditionally
4684 call do_cleanups.
4685
4867f990
TT
46862013-05-30 Tom Tromey <tromey@redhat.com>
4687
4688 * varobj.c (c_value_of_root): Call do_cleanups along all
4689 return paths.
4690
4fd2d6af
TT
46912013-05-30 Tom Tromey <tromey@redhat.com>
4692
4693 * tracepoint.c (trace_dump_command): Unconditionally call
4694 do_cleanups.
4695
752eb8b4
TT
46962013-05-30 Tom Tromey <tromey@redhat.com>
4697
4698 * breakpoint.c (output_thread_groups, parse_cmd_to_aexpr): Call
4699 do_cleanups earlier.
4700
e42d0aa5
TT
47012013-05-30 Tom Tromey <tromey@redhat.com>
4702
4703 * machoread.c (macho_symfile_read): Assign first cleanup to
4704 'back_to'.
4705
4bbc010a
TT
47062013-05-30 Tom Tromey <tromey@redhat.com>
4707
4708 * m32r-rom.c (m32r_load): Call do_cleanups at all returns.
4709
b9635925
TT
47102013-05-30 Tom Tromey <tromey@redhat.com>
4711
4712 * mi/mi-main.c (list_available_thread_groups): Call do_cleanups.
4713
25f43500
TT
47142013-05-30 Tom Tromey <tromey@redhat.com>
4715
4716 * inf-ptrace.c (inf_ptrace_create_inferior): Unconditionally
4717 call discard_cleanups.
4718 (inf_ptrace_attach): Likewise.
4719
d6a2e54a
TT
47202013-05-30 Tom Tromey <tromey@redhat.com>
4721
4722 * remote-mips.c (mips_exit_debug): Call do_cleanups on all
4723 return paths.
4724 (mips_initialize): Likewise.
4725 (common_open): Call do_cleanups.
4726
48be7c1b
TT
47272013-05-30 Tom Tromey <tromey@redhat.com>
4728
4729 * utils.c (internal_vproblem): Call do_cleanups.
4730
e61727ab
TT
47312013-05-30 Tom Tromey <tromey@redhat.com>
4732
4733 * linespec.c (find_linespec_symbols): Don't reassign to 'cleanup'.
4734
b81b921f
TT
47352013-05-30 Tom Tromey <tromey@redhat.com>
4736
4737 * cli/cli-script.c (setup_user_args): Don't return after error.
4738
fe48dfb1
TT
47392013-05-30 Tom Tromey <tromey@redhat.com>
4740
4741 * somread.c (som_symtab_read): Call do_cleanups.
4742
27833de7
TT
47432013-05-30 Tom Tromey <tromey@redhat.com>
4744
4745 * printcmd.c (print_command_1): Unconditionally call do_cleanups.
4746
5b3fca71
TT
47472013-05-30 Tom Tromey <tromey@redhat.com>
4748
4749 * cli/cli-cmds.c (cd_command, alias_command): Call do_cleanups.
4750 * cli/cli-dump.c (restore_binary_file): Call do_cleanups.
4751 * interps.c (interpreter_exec_cmd): Call do_cleanups.
4752 * source.c (show_substitute_path_command): Call do_cleanups.
4753 (unset_substitute_path_command, set_substitute_path_command):
4754 Likewise.
4755 * symfile.c (load_command): Call do_cleanups.
4756
af83e3f8
TT
47572013-05-30 Tom Tromey <tromey@redhat.com>
4758
4759 * contrib/cleanup_check.py: New file.
4760 * contrib/gcc-with-excheck: Add option parsing.
4761
564eac42
JB
47622013-05-30 Joel Brobecker <brobecker@adacore.com>
4763
4764 * windows-nat.c (windows_delete_thread): Add missing space
4765 in cast expression.
4766
47902076
HAQ
47672013-05-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
4768
4769 * inferior.c (top level): Include tilde.h.
4770 (add_inferior_command): Call tilde_expand on the value of 'exec'
4771 argument.
4772
23da373a
YQ
47732013-05-30 Pedro Alves <pedro@codesourcery.com>
4774 Yao Qi <yao@codesourcery.com>
4775
4776 * tracepoint.c (encode_actions_1): Remove parameter 't'.
4777 Caller update.
4778 (encode_actions): Likewise.
4779 * remote.c (remote_download_tracepoint): Caller update.
4780 * tracepoint.h (encode_actions): Update declaration.
4781
a6e6f791
PA
47822013-05-30 Pedro Alves <palves@redhat.com>
4783
4784 * python/python-internal.h (gdb_Py_DECREF): Cast OP to PyObject
4785 pointer.
4786
36d25514
YQ
47872013-05-30 Yao Qi <yao@codesourcery.com>
4788
4789 * remote.c (remote_check_symbols): Remove unused parameter
4790 'objfile'.
4791 Declaration update.
4792 (remote_start_remote, remote_new_objfile): Caller update.
4793
62a813cc
YQ
47942013-05-30 Yao Qi <yao@codesourcery.com>
4795
4796 * mi/mi-cmds.c (mi_cmds): Define MI command
4797 '-exec-arguments' by macro DEF_MI_CMD_CLI_1 instead of
4798 DEF_MI_CMD_CLI.
4799
28439a30
PA
48002013-05-29 Pedro Alves <palves@redhat.com>
4801
4802 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint)
4803 (remote_insert_watchpoint, remote_remove_watchpoint)
4804 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
4805 (remote_verify_memory, compare_sections_command)
4806 (remote_search_memory): Set the general process/thread on the
4807 remote side.
4808
6ac1c082
PA
48092013-05-29 Pedro Alves <palves@redhat.com>
4810
4811 * aarch64-tdep.c: Don't include "features/aarch64-without-fpu.c".
4812 (_initialize_aarch64_tdep): Don't call
4813 initialize_tdesc_aarch64_without_fpu.
4814 * features/Makefile (WHICH): Remove reference to
4815 aarch64-without-fpu.
4816 * features/aarch64-without-fpu.c: Delete file.
4817 * regformats/aarch64-without-fpu.dat: Delete file.
4818
a73e3634
YQ
48192013-05-28 Yao Qi <yao@codesourcery.com>
4820
4821 * tracepoint.c (stringify_collection_list): Remove parameter
4822 'string'.
4823 (encode_actions): Caller update. Remove local variables.
4824
c0ea94eb
YQ
48252013-05-24 Yao Qi <yao@codesourcery.com>
4826
4827 * tracepoint.c (TFILE_PID): Remove.
4828 (tfile_open): Don't add thread and inferior.
4829 (tfile_close): Don't set 'inferior_ptid'. Don't call
4830 exit_inferior_silent.
4831 (tfile_thread_alive): Remove.
4832 (init_tfile_ops): Don't set field 'to_thread_alive' of
4833 tfile_ops.
4834
20d7f211
DE
48352013-05-23 Doug Evans <dje@google.com>
4836
4837 * contrib/cc-with-tweaks.sh (-p): Handle no dwo files.
4838
8658d16d
PA
48392013-05-23 Pedro Alves <palves@redhat.com>
4840
4841 * common/filestuff.c [USE_WIN32API]: Define HAVE_SOCKETS.
4842 [HAVE_SYS_SOCKET_H]: Define HAVE_SOCKETS.
4843 (socket_mark_cloexec, gdb_socketpair_cloexec, gdb_socket_cloexec):
4844 Only define if HAVE_SOCKETS is defined.
4845 * configure.ac: Check for sys/socket.h.
4846 * config.in, configure: Regenerate.
4847
21aa081e
PA
48482013-05-23 Pedro Alves <palves@redhat.com>
4849
4850 * dwarf2read.c (create_dwp_hash_table, create_dwo_in_dwp)
4851 (open_and_init_dwp_file): Use %s/pulongest instead of %u for
4852 printing uint32_t variables.
4853
c2d6af84
PA
48542013-05-23 Pedro Alves <palves@redhat.com>
4855
4856 * NEWS: Mention GDBserver range stepping support.
4857
c1e36e3e
PA
48582013-05-23 Yao Qi <yao@codesourcery.com>
4859 Pedro Alves <palves@redhat.com>
4860
4861 * gdbthread.h (struct thread_control_state) <may_range_step>: New
4862 field.
4863 * infcmd.c (step_once, until_next_command): Enable range stepping.
4864 * infrun.c (displaced_step_prepare): Disable range stepping.
4865 (resume): Disable range stepping if stepping over a breakpoint or
4866 we have software watchpoints. If range stepping is enabled,
4867 assert the thread is in the stepping range.
4868 (clear_proceed_status_thread): Clear may_range_step.
4869 (handle_inferior_event): Disable range stepping as soon as we know
4870 the thread that hit the event. Re-enable it whenever we're going
4871 to step with a step range.
4872 * remote.c (struct vCont_action_support) <r>: New field.
4873 (use_range_stepping): New global.
4874 (remote_vcont_probe): Handle 'r' action.
4875 (append_resumption): Append an 'r' action if the thread may range
4876 step.
4877 (show_range_stepping): New function.
4878 (set_range_stepping): New function.
4879 (_initialize_remote): Call add_setshow_boolean_cmd to register the
4880 'set range-stepping' and 'show range-stepping' commands.
4881 * NEWS: Mention range stepping, the new vCont;r action, and the
4882 new "set/show range-stepping" commands.
4883
d458bd84
PA
48842013-05-23 Yao Qi <yao@codesourcery.com>
4885 Pedro Alves <palves@redhat.com>
4886
4887 * remote.c (struct vCont_action_support): New struct.
4888 (struct remote_state) <support_vCont_t>: Remove field.
4889 <vCont_actions_support>: New field.
4890 (remote_vcont_probe, remote_stop_ns): Update.
4891
ce4c476a
PA
48922013-05-23 Yao Qi <yao@codesourcery.com>
4893 Pedro Alves <palves@redhat.com>
4894
4895 * gdbthread.h (pc_in_thread_step_range): New declaration.
4896 * thread.c (pc_in_thread_step_range): New function.
4897 * infrun.c (handle_inferior_event): Use it.
4898
ce70887a
JB
48992013-05-23 Joel Brobecker <brobecker@adacore.com>
4900
4901 * mi/mi-cmd-break.c (mi_argv_to_format): Use xsnprintf instead
4902 of sprintf.
4903
55b87a52
KS
49042013-05-22 Keith Seitz <keiths@redhat.com>
4905
4906 * ada-lang.c (is_known_support_routine): Add explicit free of
4907 'func_name' from find_frame_funname.
4908 (ada_unhandled_exception_name_addr_from_raise): Add cleanups
4909 for func_name from find_frame_funname.
4910 * python/py-frame.c (frapy_name): Add explicit free of
4911 'name' from find_frame_funname.
4912 * stack.c (find_frame_funname): Add comment explaining that
4913 funcp must be freed by the caller.
4914 Return copy of symbol names instead of pointers.
4915 (print_frame): Add a cleanup for 'funname' from
4916 find_frame_funname.
4917 * stack.h (find_frame_funname): Remove "const" from
4918 'funname' parameter.
4919
5f2e6b00
TT
49202013-05-22 Tom Tromey <tromey@redhat.com>
4921
4922 PR c++/15401:
4923 * c-valprint.c (c_value_print): Use value_addr for
4924 references. Convert back to reference type with value_ref.
4925
d85c4847
EZ
49262013-05-22 Eli Zaretskii <eliz@gnu.org>
4927
4928 * windows-nat.c (handle_unload_dll): Don't call solib_add for the
4929 unloaded DLL, it will be done by handle_solib_event. See
4930 http://sourceware.org/ml/gdb-patches/2013-05/msg00713.html for the
4931 details.
4932
54eb231c
PM
49332013-05-22 Phil Muldoon <pmuldoon@redhat.com>
4934
4935 * ui-out.c: Create typedef ui_out_level_p and define vector
4936 operations for that type.
4937 (struct ui_out): Use a vector instead of an array.
4938 (current_level): Return level from a vector.
4939 (push_level): Create a level in a vector.
4940 (pop_level): Delete a level in a vector.
4941 (ui_out_new): Create initial level zero level, and store in a
4942 vector.
4943 (ui_out_destroy): Add vector cleanup.
4944
ac90359c
PA
49452013-05-22 Pedro Alves <palves@redhat.com>
4946
4947 * python/python-internal.h (gdb_Py_DECREF): Tag with
4948 "ARI: editCase function".
4949
6dcc1893
PP
49502013-05-21 Paul Pluzhnikov <ppluzhnikov@google.com>
4951
4952 * solib-svr4.c (svr4_free_so): Protect against NULL dereference.
4953
c8c735b9
PA
49542013-05-21 Pedro Alves <palves@redhat.com>
4955
4956 * python/py-prettyprint.c (apply_val_pretty_printer): Check
4957 whether PRINTER is NULL before installing a Py_DECREF cleanup.
4958 * python/py-utils.c (py_decref): Don't check for NULL before
4959 calling Py_DECREF.
4960
1915daeb
PA
49612013-05-21 Pedro Alves <palves@redhat.com>
4962
4963 * python/py-utils.c (py_decref): Remove extra braces.
4964 (gdb_pymodule_addobject): Remove extra braces.
4965 * python-internal.h (gdb_Py_DECREF): New static inline function.
4966 (Py_DECREF): Redefine as calling gdb_Py_DECREF.
4967
bd9673a4
PW
49682013-05-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4969
4970 * breakpoints.c (detach_breakpoints): Do not
4971 detach breakpoints locations with loc_type bp_loc_other.
4972
ff6009d0
JK
49732013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4974
4975 Workaround Python 2.6.
4976 * python/py-utils.c (gdb_pymodule_addobject): Wrap Py_DECREF into
4977 a block.
4978
3641da11
JK
49792013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4980
4981 Code cleanup: constification.
4982 * solib.c (solib_ops): Make return type and ops variable type const.
4983 (set_solib_ops): Make the new_ops parameter and ops variable const.
4984 (solib_find, solib_map_sections, clear_so, free_so, update_solib_list)
4985 (solib_add, solib_keep_data_in_core, clear_solib)
4986 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
4987 (reload_shared_libraries, solib_global_lookup): Make the ops variable
4988 const.
4989 * solib.h (set_solib_ops): Make the new_ops parameter const.
4990
776af39e
JB
49912013-05-21 Joel Brobecker <brobecker@adacore.com>
4992
4993 * data-directory/Makefile.in (SYSTEM_GDBINIT_SRCDIR): New
4994 variable.
4995 (VPATH): Add SYSTEM_GDBINIT_SRCDIR.
4996 (SYSTEM_GDBINIT_DIR, SYSTEM_GDBINIT_INSTALL_DIR)
4997 (SYSTEM_GDBINIT_FILES): New variables.
4998 (all): Add stamp-system-gdbinit.
4999 (stamp-system-gdbinit): New rule.
5000 (clean-system-gdbinit, install-system-gdbinit)
5001 (uninstall-system-gdbinit): New rules. Make them .PHONY.
5002 (install-only): Add dependency on install-system-gdbinit.
5003 (uninstall): Add dependency on uninstall-system-gdbinit.
5004 (clean): Add dependency on clean-system-gdbinit.
5005 * system-gdbinit/elinos.py: New file.
5006 * system-gdbinit/wrs-linux.py: New file.
5007
1509e573
JB
50082013-05-21 Joel Brobecker <brobecker@adacore.com>
5009
5010 * ada-lang.c (old_renaming_is_invisible): Fix cleanup leak.
5011
c5867ab6
HZ
50122013-05-21 Hui Zhu <hui@codesourcery.com>
5013
5014 * breakpoint.c (dprintf_breakpoint_ops): Remove its static.
5015 * breakpoint.h (dprintf_breakpoint_ops): Add extern.
5016 * mi/mi-cmd-break.c (ctype.h): New include.
5017 (gdb_obstack.h): New include.
5018 (mi_argv_to_format, mi_cmd_break_insert_1): New.
5019 (mi_cmd_break_insert): Call mi_cmd_break_insert_1.
5020 (mi_cmd_dprintf_insert): New.
5021 * mi/mi-cmds.c (mi_cmds): Add "dprintf-insert".
5022 * mi/mi-cmds.h (mi_cmd_dprintf_insert): New extern.
5023
7d38e38f
TT
50242013-05-20 Tom Tromey <tromey@redhat.com>
5025
5026 * python/py-prettyprint.c (search_pp_list): Decref 'attr'.
5027
97b77b39
TT
50282013-05-20 Tom Tromey <tromey@redhat.com>
5029
5030 * python/py-value.c (valpy_get_dynamic_type): Simplify
5031 dynamic_type assignment. Use Py_XINCREF.
5032
53e66479
TT
50332013-05-20 Tom Tromey <tromey@redhat.com>
5034
5035 * python/py-type.c (typy_fields): Unconditionally decref 'r'.
5036
dcf87832
TT
50372013-05-20 Tom Tromey <tromey@redhat.com>
5038
5039 * python/py-frame.c (frapy_older, frapy_newer, gdbpy_newest_frame)
5040 (gdbpy_selected_frame): Move object-construction code
5041 out of TRY_CATCH.
5042
aa36459a
TT
50432013-05-20 Tom Tromey <tromey@redhat.com>
5044
5045 * python/py-arch.c (gdbpy_initialize_arch): Use
5046 gdb_pymodule_addobject.
5047 * python/py-block.c (gdbpy_initialize_blocks): Use
5048 gdb_pymodule_addobject.
5049 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Use
5050 gdb_pymodule_addobject.
5051 * python/py-cmd.c (gdbpy_initialize_breakpoints): Use
5052 gdb_pymodule_addobject.
5053 * python/py-event.c (gdbpy_initialize_event_generic): Use
5054 gdb_pymodule_addobject.
5055 * python/py-evtregistry.c (gdbpy_initialize_eventregistry): Use
5056 gdb_pymodule_addobject.
5057 * python/py-evts.c (add_new_registry): Use
5058 gdb_pymodule_addobject.
5059 (gdbpy_initialize_py_events): Likewise.
5060 * python/py-finishbreakpoint.c
5061 (gdbpy_initialize_finishbreakpoints): Use
5062 gdb_pymodule_addobject.
5063 * python/py-frame.c (gdbpy_initialize_frames): Use
5064 gdb_pymodule_addobject.
5065 * python/py-function.c (gdbpy_initialize_functions): Use
5066 gdb_pymodule_addobject.
5067 * python/py-inferior.c (gdbpy_initialize_inferior): Use
5068 gdb_pymodule_addobject.
5069 * python/py-infthread.c (gdbpy_initialize_thread): Use
5070 gdb_pymodule_addobject.
5071 * python/py-objfile.c (gdbpy_initialize_objfile): Use
5072 gdb_pymodule_addobject.
5073 * python/py-param.c (gdbpy_initialize_parameters): Use
5074 gdb_pymodule_addobject.
5075 * python/py-progspace.c (gdbpy_initialize_pspace): Use
5076 gdb_pymodule_addobject.
5077 * python/py-symbol.c (gdbpy_initialize_symbols): Use
5078 gdb_pymodule_addobject.
5079 * python/py-symtab.c (gdbpy_initialize_symtabs): Use
5080 gdb_pymodule_addobject.
5081 * python/py-type.c (gdbpy_initialize_types): Use
5082 gdb_pymodule_addobject.
5083 * python/py-utils.c (gdb_pymodule_addobject): New function.
5084 * python/py-value.c (gdbpy_initialize_values): Use
5085 gdb_pymodule_addobject.
5086 * python/python-internal.h (gdb_pymodule_addobject): Declare.
5087 * python/python.c (_initialize_python): Use
5088 gdb_pymodule_addobject.
5089
3d4a3c3e
TT
50902013-05-20 Tom Tromey <tromey@redhat.com>
5091
5092 * python/py-cmd.c (cmdpy_completer): Use explicit decref.
5093 * python/py-param.c (get_set_value, get_show_value): Use
5094 explicit decrefs.
5095 * python/python.c (start_type_printers, apply_type_printers):
5096 Use explicit decrefs.
5097
72ff8829
TT
50982013-05-20 Tom Tromey <tromey@redhat.com>
5099
5100 * python/py-evts.c (gdbpy_initialize_py_events): Don't
5101 incref the module.
5102
02146ba5
TT
51032013-05-20 Tom Tromey <tromey@redhat.com>
5104
5105 * python/python.c (gdbpy_run_events): Decref the result
5106 of PyObject_CallObject.
5107
33ee792f
TT
51082013-05-20 Tom Tromey <tromey@redhat.com>
5109
5110 * python/py-symtab.c (set_sal): Use
5111 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION. Return -1 on error.
5112 (symtab_and_line_to_sal_object): Update.
5113
fcb49fc8
TT
51142013-05-20 Tom Tromey <tromey@redhat.com>
5115
5116 * python/py-param.c (compute_enum_values): Decref 'item'.
5117
0646da15
TT
51182013-05-20 Tom Tromey <tromey@redhat.com>
5119
5120 * mi/mi-main.c: Include python-internal.h.
5121 (mi_cmd_list_features): Check gdb_python_initialized.
5122 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
5123 (python_inferior_exit, python_new_objfile, add_thread_object)
5124 (delete_thread_object, py_free_inferior): Check
5125 gdb_python_initialized.
5126 * python/py-prettyprint.c (apply_val_pretty_printer): Check
5127 gdb_python_initialized.
5128 * python/py-type.c (save_objfile_types): Check
5129 gdb_python_initialized.
5130 * python/python-internal.h (gdb_python_initialized): Declare.
5131 * python/python.c (ensure_python_env): Throw exception if
5132 Python not initialized.
5133 (before_prompt_hook, source_python_script_for_objfile)
5134 (start_type_printers, apply_type_printers,
5135 free_type_printers): Check gdb_python_initialized.
5136 * varobj.c (varobj_get_display_hint)
5137 (dynamic_varobj_has_child_method, update_dynamic_varobj_children)
5138 (install_new_value_visualizer, varobj_set_visualizer)
5139 (value_get_print_value): Check gdb_python_initialized.
5140
999633ed
TT
51412013-05-20 Tom Tromey <tromey@redhat.com>
5142
5143 * python/py-arch.c (gdbpy_initialize_arch): Return 'int'.
5144 Check errors.
5145 * python/py-auto-load.c (gdbpy_initialize_auto_load): Return 'int'.
5146 * python/py-block.c (gdbpy_initialize_blocks): Return 'int'.
5147 Check errors.
5148 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Return 'int'.
5149 Check errors.
5150 * python/py-cmd.c (gdbpy_initialize_commands): Return 'int'.
5151 Check errors.
5152 * python/py-event.c (gdbpy_initialize_event): Return 'int'.
5153 Check errors.
5154 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Change generated
5155 init function to return 'int'.
5156 * python/py-evtregistry.c (gdbpy_initialize_eventregistry):
5157 Return 'int'. Check errors.
5158 * python/py-evts.c (gdbpy_initialize_py_events): Return 'int'.
5159 Check errors.
5160 * python/py-finishbreakpoint.c (gdbpy_initialize_finishbreakpoints):
5161 Return 'int'. Check errors.
5162 * python/py-frame.c (gdbpy_initialize_frames): Return 'int'.
5163 Check errors.
5164 * python/py-function.c (gdbpy_initialize_functions): Return 'int'.
5165 Check errors.
5166 * python/py-gdb-readline.c (gdbpy_initialize_gdb_readline):
5167 Check errors.
5168 * python/py-inferior.c (gdbpy_initialize_inferior): Return 'int'.
5169 Check errors.
5170 * python/py-infthread.c (gdbpy_initialize_thread): Return 'int'.
5171 Check errors.
5172 * python/py-lazy-string.c (gdbpy_initialize_lazy_string): Return 'int'.
5173 Check errors.
5174 * python/py-objfile.c (gdbpy_initialize_objfile): Return 'int'.
5175 Check errors.
5176 * python/py-param.c (gdbpy_initialize_parameters): Return 'int'.
5177 Check errors.
5178 * python/py-progspace.c (gdbpy_initialize_pspace): Return 'int'.
5179 Check errors.
5180 * python/py-symbol.c (gdbpy_initialize_symbols): Return 'int'.
5181 Check errors.
5182 * python/py-symtab.c (gdbpy_initialize_symtabs): Return 'int'.
5183 Check errors.
5184 * python/py-type.c (gdbpy_initialize_types): Return 'int'.
5185 Check errors.
5186 * python/py-value.c (gdbpy_initialize_values): Return 'int'.
5187 Check errors.
5188 * python/python-internal.h (gdbpy_initialize_auto_load,
5189 gdbpy_initialize_values, gdbpy_initialize_frames,
5190 gdbpy_initialize_symtabs, gdbpy_initialize_commands,
5191 gdbpy_initialize_symbols, gdbpy_initialize_symtabs,
5192 gdbpy_initialize_blocks, gdbpy_initialize_types,
5193 gdbpy_initialize_functions, gdbpy_initialize_pspace,
5194 gdbpy_initialize_objfile, gdbpy_initialize_breakpoints,
5195 gdbpy_initialize_finishbreakpoints,
5196 gdbpy_initialize_lazy_string, gdbpy_initialize_parameters,
5197 gdbpy_initialize_thread, gdbpy_initialize_inferior,
5198 gdbpy_initialize_eventregistry, gdbpy_initialize_event,
5199 gdbpy_initialize_py_events, gdbpy_initialize_stop_event,
5200 gdbpy_initialize_signal_event,
5201 gdbpy_initialize_breakpoint_event,
5202 gdbpy_initialize_continue_event,
5203 gdbpy_initialize_exited_event, gdbpy_initialize_thread_event,
5204 gdbpy_initialize_new_objfile_event, gdbpy_initialize_arch):
5205 Update. Use CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
5206 * python/python.c (gdb_python_initialized): New global.
5207 (gdbpy_initialize_events): Return 'int'. Check errors.
5208 (_initialize_python): Check errors. Set
5209 gdb_python_initialized.
5210
18868860
TT
52112013-05-20 Tom Tromey <tromey@redhat.com>
5212
5213 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope):
5214 Decref the reslut of PyObject_CallMethod.
5215
9f4ff0c2
TT
52162013-05-20 Tom Tromey <tromey@redhat.com>
5217
5218 * python/py-event.c (gdbpy_initialize_event_generic): Return
5219 early if PyType_Ready fails.
5220
0d3a2e8a
TT
52212013-05-20 Tom Tromey <tromey@redhat.com>
5222
5223 * python/py-type.c (make_fielditem): Add gdb_assert_not_reached
5224 as 'default' in the switch.
5225
b86af38a
TT
52262013-05-20 Tom Tromey <tromey@redhat.com>
5227
5228 * python/py-inferior.c (gdbpy_inferiors): Update. Hoist
5229 get_addr_from_python calls out of TRY_CATCH.
5230 (infpy_write_memory, infpy_search_memory): Likewise.
5231 * python/py-utils.c (get_addr_from_python): Return negative
5232 value on error. Use TRY_CATCH.
5233 * python/python-internal.h (get_addr_from_python): Use
5234 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
5235
c127ec58
TT
52362013-05-20 Tom Tromey <tromey@redhat.com>
5237
5238 * python/py-event.c (evpy_emit_event): Decref the
5239 result of PyObject_CallFunctionObjArgs.
5240
ba327838
TT
52412013-05-20 Tom Tromey <tromey@redhat.com>
5242
5243 * python/py-cmd.c (cmdpy_completer): Use iterator protocol.
5244 Correctly decref.
5245
d8191432
TT
52462013-05-20 Tom Tromey <tromey@redhat.com>
5247
5248 * python/py-cmd.c (cmdpy_init): Decref 'ds_obj'.
5249
5d153bd1
TT
52502013-05-20 Tom Tromey <tromey@redhat.com>
5251
5252 * python/py-event.h (gdbpy_initialize_event_generic): Use
5253 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
5254 * python/py-evts.c (add_new_registry): Use
5255 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
5256 * python/python-internal.h
5257 (CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION): New macro.
5258
56cc411c
TT
52592013-05-20 Tom Tromey <tromey@redhat.com>
5260
5261 * python/py-arch.c (archpy_disassemble): Update.
5262 * python/py-type.c (typy_get_composite, typy_lookup_typename)
5263 (typy_lookup_type): Use GDB_PY_HANDLE_EXCEPTION.
5264 * python/py-utils.c (gdbpy_convert_exception): Return 'void'.
5265 * python/python-internal.h (CPYCHECKER_SETS_EXCEPTION): New
5266 macro.
5267 (GDB_PY_HANDLE_EXCEPTION): Update.
5268 (gdbpy_convert_exception): Update. Use CPYCHECKER_SETS_EXCEPTION.
5269
8919e174
TT
52702013-05-20 Tom Tromey <tromey@redhat.com>
5271
5272 * python/python-internal.h (events_object_type): Remove.
5273
9b08f225
TT
52742013-05-20 Tom Tromey <tromey@redhat.com>
5275
f5aee5ee
AM
5276 * python/py-event.h (evpy_emit_event): Use
5277 CPYCHECKER_STEALS_REFERENCE_TO_ARG.
5278 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
5279 New macro.
9b08f225 5280
f04010ff
TT
52812013-05-20 Tom Tromey <tromey@redhat.com>
5282
5283 * py-evtregistry.c (create_event_object): Decref
5284 eventregistry_object if PyList_New fails.
5285
3919fd96
TT
52862013-05-20 Tom Tromey <tromey@redhat.com>
5287
5288 * py-cmd.c (gdbpy_string_to_argv): Check result of
5289 PyList_New.
5290
0430e8cb
TT
52912013-05-20 Tom Tromey <tromey@redhat.com>
5292
5293 * python/python.c (before_prompt_hook): Add cleanup to
5294 decref 'hook'.
5295
764123e4
TT
52962013-05-20 Tom Tromey <tromey@redhat.com>
5297
5298 * python/py-function.c (fnpy_init): Decref result of
5299 PyObject_GetAttrString.
5300
634c58be
TT
53012013-05-20 Tom Tromey <tromey@redhat.com>
5302
5303 * python/py-threadevent.c (get_event_thread): Use
5304 CPYCHECKER_RETURNS_BORROWED_REF.
5305 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
5306 New define.
5307 (pspace_to_pspace_object, objfile_to_objfile_object)
5308 (find_thread_object): Use it.
5309
62eec1a5
TT
53102013-05-20 Tom Tromey <tromey@redhat.com>
5311
5312 * python/py-arch.c (arch_object_type): Use
5313 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5314 * python/py-block.c (block_syms_iterator_object_type):
5315 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5316 * python/py-bpevent.c (breakpoint_event_object_type):
5317 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5318 * python/py-cmd.c (cmdpy_object_type): Use
5319 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5320 * python/py-continueevent.c (continue_event_object_type):
5321 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5322 * python/py-event.h (GDBPY_NEW_EVENT_TYPE):
5323 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5324 * python/py-events.h (thread_event_object_type):
5325 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5326 * python/py-evtregistry.c (eventregistry_object_type): Use
5327 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5328 * python/py-exitedevent.c (exited_event_object_type):
5329 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5330 * python/py-finishbreakpoint.c (finish_breakpoint_object_type):
5331 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5332 * python/py-function.c (fnpy_object_type): Use
5333 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5334 * python/py-inferior.c (inferior_object_type, membuf_object_type):
5335 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5336 * python/py-infthread.c (thread_object_type): Use
5337 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5338 * python/py-lazy-string.c (lazy_string_object_type):
5339 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5340 * python/py-newobjfileevent.c (new_objfile_event_object_type):
5341 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5342 * python/py-objfile.c (objfile_object_type): Use
5343 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5344 * python/py-param.c (parmpy_object_type):
5345 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5346 * python/py-progspace.c (pspace_object_type):
5347 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5348 * python/py-signalevent.c (signal_event_object_type):
5349 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5350 * python/py-symtab.c (symtab_object_type, sal_object_type): Use
5351 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5352 * python/py-type.c (type_object_type, field_object_type)
5353 (type_iterator_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5354 * python/py-internal.h (CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF): New
5355 define.
5356 (value_object_type, block_object_type, symbol_object_type)
5357 (event_object_type, stop_event_object_type, breakpoint_object_type)
5358 (frame_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5359
81ea8796
AT
53602013-05-20 Andreas Tobler <andreas@fgznet.ch>
5361
5362 * Makefile.in (ALL_TARGET_OBS): Add ppcfbsd-tdep.o.
5363 (ALLDEPFILES): Add ppcfbsd-nat.c and ppcfbsd-tdep.c.
5364
a2ce51a0
DE
53652013-05-20 Doug Evans <dje@google.com>
5366
5367 When reading CU, stay in DWO. Be more tolerent of bad debug info.
5368 For Fission.
5369 * dwarf2read.c (struct dwarf2_per_cu_data): New member
5370 reading_dwo_directly.
5371 (struct signatured_type): New member dwo_unit.
5372 (struct die_reader_specs): New member comp_dir.
5373 (create_signatured_type_table_from_index): Use malloc for
5374 all_type_units instead of objfile's obstack.
5375 (create_all_type_units): Ditto.
5376 (fill_in_sig_entry_from_dwo_entry): New function.
5377 (add_type_unit): New function.
5378 (lookup_dwo_signatured_type): New function.
5379 (lookup_dwp_signatured_type): New function.
5380 (lookup_signatured_type): New arg cu. All callers updated.
5381 (init_cu_die_reader): Initialize comp_dir.
5382 (read_cutu_die_from_dwo): New arg stub_comp_dir. All callers updated.
5383 Change assert of matching type signatures to call error on mismatch.
5384 (lookup_dwo_unit): Add assert.
5385 (init_tu_and_read_dwo_dies): New function.
5386 (init_cutu_and_read_dies): Call it.
5387 (build_type_unit_groups): Handle case of no type unit groups created.
5388 (hash_dwo_file, eq_dwo_file): Handle missing comp_dir.
5389 (lookup_dwo_cutu): Tweak complaint.
5390 (dwarf2_free_abbrev_table): Check for NULL abbrev_table.
5391 (dwarf2_per_objfile_free): Free all_type_units.
5392
a25cd31f
JB
53932013-05-20 Joel Brobecker <brobecker@adacore.com>
5394
5395 * windows-nat.c (handle_unload_dll): Add missing empty line.
5396
4d804846
JB
53972013-05-20 Joel Brobecker <brobecker@adacore.com>
5398
5399 * dwarf2read.c (prototyped_function_p): New function.
5400 (read_subroutine_type): Use it.
5401
1c432e72
JB
54022013-05-20 Joel Brobecker <brobecker@adacore.com>
5403
5404 * rs6000-aix-tdep.c: De-indent some example code provided
5405 as a comment.
5406
4feebbdd
EBM
54072013-05-17 Edjunior Machado <emachado@linux.vnet.ibm.com>
5408
5409 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Check if the
5410 region is ok for a hardware watchpoint using the new ptrace interface
5411 on Power servers.
5412
7d0c9981
DE
54132013-05-17 Doug Evans <dje@google.com>
5414
5415 * NEWS: Mention new maintenance commands check-symtabs, and
5416 expand-symtabs, and renamed check-psymtabs.
5417 * psymtab.c (maintenance_check_psymtabs): Renamed from
5418 maintenance_check_symtabs. Only process already-expanded symbol
5419 tables.
5420 (_initialize_psymtab): Update.
5421 * symmisc.c (maintenance_check_symtabs): New function.
5422 (maintenance_expand_name_matcher): New function
5423 (maintenance_expand_file_matcher): New function
5424 (maintenance_expand_symtabs): New function.
5425 (_initialize_symmisc): Add "mt check-symtabs" and "mt expand-symtabs"
5426 commands.
5427
6cbc7c3d
TT
54282013-05-17 Tom Tromey <tromey@redhat.com>
5429
5430 * python/py-inferior.c (infpy_read_memory): Don't call
5431 PyErr_SetString if PyObject_New fails.
5432 * python/py-frame.c (frame_info_to_frame_object): Don't call
5433 PyErr_SetString if PyObject_New fails.
5434
a48b32c0
L
54352013-05-17 Pavel Chupin <pavel.v.chupin@intel.com>
5436
5437 * acinclude.m4: Add check for dlopen in libdl.
5438 * configure.ac: Ditto.
5439 * configure: Regenerate.
5440
3de661e6
PM
54412013-05-17 Phil Muldoon <pmuldoon@redhat.com>
5442
5443 * frame.c (frame_stash): Convert to htab.
5444 (frame_addr_hash): New function.
5445 (frame_addr_hash_eq): New function.
5446 (frame_stash_create): Convert function to create
5447 a hash table.
5448 (frame_stash_add): Convert function to add an entry to a hash
5449 table.
5450 (frame_stash_find): Convert function to search the hash table.
5451 (frame_stash_invalidate): Convert function to empty the hash
5452 table.
5453 (get_frame_id): Only add to stash if a frame_id is created.
5454 (_initialize_frame): Call frame_stash_create.
5455
bb4168a9 54562013-05-16 Yue Lu <hacklu.newborn@gmail.com> (tiny change)
036c3acb
TS
5457
5458 * configure.ac: Ensure MIG is available when building for GNU Hurd
5459 hosts.
5460 * configure: Regenerate.
5461
d1be3247
JB
54622013-05-16 Joel Brobecker <brobecker@adacore.com>
5463
5464 * dwarf2read.c (set_cu_language): Add DW_LANG_UPC handling.
5465
b8fea896
JB
54662013-05-16 Joel Brobecker <brobecker@adacore.com>
5467
5468 * ada-lang.c (ada_make_symbol_completion_list): Make sure
5469 all cleanups are done before returning from this function.
5470
af880d85
JB
54712013-05-15 Joel Brobecker <brobecker@adacore.com>
5472
5473 * utils.h: #include "exceptions.h".
5474 (enum errors): Remove partial declaration.
5475
356a5233
JB
54762013-05-15 Joel Brobecker <brobecker@adacore.com>
5477
5478 * gdbarch.sh (core_xfer_shared_libraries_aix): New method.
5479 * gdbarch.h, gdbarch.c: Regenerate.
5480 * corelow.c (core_xfer_partial): Add TARGET_OBJECT_LIBRARIES_AIX
5481 handling.
5482
5483 * rs6000-aix-tdep.h: New file.
5484 * Makefile.in (HFILES_NO_SRCDIR): Add rs6000-aix-tdep.h.
5485 * rs6000-aix-tdep.c: Include "rs6000-aix-tdep.h" and
5486 "xml-utils.h".
5487 (struct field_info, struct ld_info_desc): New types.
5488 (ld_info32_desc, ld_info64_desc): New static constants.
5489 (struct ld_info): New type.
5490 (rs6000_aix_extract_ld_info): New function.
5491 (rs6000_aix_shared_library_to_xml): Likewise.
5492 (rs6000_aix_ld_info_to_xml): Likewise.
5493 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
5494 (rs6000_aix_init_osabi): Add call to
5495 set_gdbarch_core_xfer_shared_libraries_aix.
5496 * rs6000-nat.c: Add "rs6000-aix-tdep.h" include.
5497 Remove "xml-utils.h" include.
5498 (LdInfo): Delete typedef.
5499 (ARCH64_DECL, LDI_FIELD, LDI_NEXT, LDI_FD, LDI_FILENAME):
5500 Delete macros.
5501 (rs6000_ptrace_ldinfo): Change return type to gdb_byte *.
5502 Adjust code accordingly.
5503 (rs6000_core_ldinfo): Delete, folded into
5504 rs6000_aix_core_xfer_shared_libraries_aix.
5505 (rs6000_xfer_shared_library): Delete.
5506 (rs6000_xfer_shared_libraries): Reimplement.
5507
742ce053
MM
55082013-05-15 Markus Metzger <markus.t.metzger@intel.com>
5509
5510 * record.c (record_goto_cmdlist): New.
5511 (cmd_record_goto): Split into this ...
5512 (cmd_record_goto_begin): ... this
5513 (cmd_record_goto_end): ... and this.
5514 (_initialize_record): Change "record goto" to prefix command.
5515 Add commands for "record goto begin" and "record goto end".
5516 Add an alias for "record goto start" to "record goto begin".
5517
e93ba630
JK
55182013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
5519
5520 * linespec.c (convert_linespec_to_sals): New comment for
5521 SOURCE_FILENAME assignment.
5522
5821aace
JK
55232013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
5524
5525 * cleanups.c (restore_my_cleanups): Replace gdb_assert by
5526 internal_warning.
5527
a1b8c4cc
TT
55282013-05-14 Tom Tromey <tromey@redhat.com>
5529
5530 * eval.c (parse_and_eval_long): Make 'exp' const.
5531 * value.h (parse_and_eval_long): Update.
5532
23b3a2c3
TT
55332013-05-14 Tom Tromey <tromey@redhat.com>
5534
5535 * ui-file.c (gdb_fopen): Make arguments const.
5536 * ui-file.h (gdb_fopen): Make arguments const.
5537
ca623f82
TT
55382013-05-14 Tom Tromey <tromey@redhat.com>
5539
5540 * remote.c (remote_set_trace_notes): Make arguments const.
5541 * target.c (update_current_target): Update cast.
5542 * target.h (to_set_trace_notes): Make arguments const.
5543
503ebb2c
TT
55442013-05-14 Tom Tromey <tromey@redhat.com>
5545
5546 * go32-nat.c (go32_terminal_info): Make 'args' const.
5547 * inferior.h (child_terminal_info): Update.
5548 * inflow.c (child_terminal_info): Make 'args' const.
5549 * target.c (default_terminal_info): Make 'args' const.
5550 (debug_to_terminal_save_ours): Likewise.
5551 * target.h (struct target_ops) <to_terminal_info>: Make argument
5552 const.
5553
85e1311a
TT
55542013-05-13 Tom Tromey <tromey@redhat.com>
5555
5556 * gcore.c (create_gcore_bfd): Make 'filename' const.
5557 * gcore.h (create_gcore_bfd): Make 'filename' const.
5558 * record-full.c (record_full_save): Make 'recfilename' const.
5559 * target.c (target_save_record): Make 'filename' const.
5560 * target.h (struct target_ops) <to_save_record>: Make 'filename'
5561 const.
5562 (target_save_record): Likewise.
5563
d62bfeaf
TT
55642013-05-13 Tom Tromey <tromey@redhat.com>
5565
f5aee5ee 5566 PR gdb/15338:
d62bfeaf
TT
5567 * dwarf2read.c (dwarf2_record_block_ranges): Ensure that the
5568 ranges section has been read.
5569
ac1ca910
TT
55702013-05-13 Tom Tromey <tromey@redhat.com>
5571
5572 PR exp/15364:
5573 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
5574 STRUCTOP_PTR>: Return a not_lval value for
5575 EVAL_AVOID_SIDE_EFFECTS.
5576 * opencl-lang.c (evaluate_subexp_opencl): Return a not_lval value
5577 for EVAL_AVOID_SIDE_EFFECTS.
5578
36d1c68c
JB
55792013-05-13 Joel Brobecker <brobecker@adacore.com>
5580
5581 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Convert
5582 floating point registers to register type before storing
5583 value.
5584 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call):
5585 Likewise.
5586
21ff4686
TT
55872013-05-10 Joel Brobecker <brobecker@adacore.com>
5588 Tom Tromey <tromey@redhat.com>
5589
5590 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
5591 New functions.
5592 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
5593 Declare.
5594 * darwin-nat.c (darwin_pre_ptrace): Use mark_fd_no_cloexec.
5595 (darwin_ptrace_him): Use unmark_fd_no_cloexec.
5596 * inf-ttrace.c (do_cleanup_pfds): Use unmark_fd_no_cloexec.
5597 (inf_ttrace_prepare): Use mark_fd_no_cloexec.
5598
d3685d60
TT
55992013-05-10 Freddie Chopin <freddie_chopin@op.pl>
5600 Tom Tromey <tromey@redhat.com>
5601
5602 PR build/15414:
5603 * configure: Rebuild.
5604 * configure.ac (build_warnings): Do not use -Wformat-nonliteral
5605 with -Wno-format.
5606
eb9fe518
PA
56072013-05-10 Pedro Alves <palves@redhat.com>
5608
5609 * remote.c (_initialize_remote): Fix spelling of
5610 qXfer:traceframe-info:read packet in packet config command.
5611
9779ab84
PA
56122013-05-10 David Taylor <dtaylor@emc.com>
5613
5614 PR remote/15455
5615
5616 * remote.c (remote_trace_set_readonly_regions): Do not overwrite
5617 "QTro" at start of packet.
5618
060cfbef
JB
56192013-05-10 Joel Brobecker <brobecker@adacore.com>
5620
5621 * solib-aix.c (solib_aix_relocate_section_addresses):
5622 For the .bss section action, apply the same offset as
5623 the .data section.
5624
ab1c4e88
JB
56252013-05-10 Joel Brobecker <brobecker@adacore.com>
5626
5627 * solib-aix.c (solib_aix_relocate_section_addresses):
5628 Remove FIXME comment.
5629
c1357578
JB
56302013-05-10 Joel Brobecker <brobecker@adacore.com>
5631
5632 PR tdep/15420:
5633 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
5634 New functions, directly copied from sparc-sol-thread.c.
5635 * sparc-sol-thread.c: Delete.
5636 * configure.ac: Remove code handling sparc-solaris-thread.c.
5637 * configure: Regenerate.
5638
1e611234
PM
56392013-05-10 Phil Muldoon <pmuldoon@redhat.com>
5640
5641 * stack.c (backtrace_command_1): Add "no-filters", and Python frame
5642 filter logic.
5643 (backtrace_command): Add "no-filters" option parsing.
5644 (_initialize_stack): Alter help to reflect "no-filters" option.
5645 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-framefilter.o
5646 (SUBDIR_PYTHON_SRCS): Add py-framefilter.c
5647 (py-frame.o): Add target
5648 * data-directory/Makefile.in (PYTHON_DIR): Add Python frame
5649 filter files.
5650 * python/python.h: Add new frame filter constants, and flag enum.
5651 (apply_frame_filter): Add definition.
5652 * python/python.c (apply_frame_filter): New non-Python
5653 enabled function.
5654 * python/py-utils.c (py_xdecref): New function.
5655 (make_cleanup_py_xdecref): Ditto.
5656 * python/py-objfile.c: Declare frame_filters dictionary.
5657 (objfpy_dealloc): Add frame_filters dealloc.
5658 (objfpy_new): Initialize frame_filters attribute.
5659 (objfile_to_objfile_object): Ditto.
5660 (objfpy_get_frame_filters): New function.
5661 (objfpy_set_frame_filters): New function.
5662 * python/py-progspace.c: Declare frame_filters dictionary.
5663 (pspy_dealloc): Add frame_filters dealloc.
5664 (pspy_new): Initialize frame_filters attribute.
5665 (pspacee_to_pspace_object): Ditto.
5666 (pspy_get_frame_filters): New function.
5667 (pspy_set_frame_filters): New function.
5668 * python/py-framefilter.c: New file.
5669 * python/lib/gdb/command/frame_filters.py: New file.
5670 * python/lib/gdb/frames.py: New file.
5671 * python/lib/gdb/__init__.py: Initialize global frame_filters
5672 dictionary
5673 * python/lib/gdb/FrameDecorator.py: New file.
5674 * python/lib/gdb/FrameIterator.py: New file.
5675 * mi/mi-cmds.c (mi_cmds): Add frame filters command.
5676 * mi/mi-cmds.h: Declare.
5677 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Add
5678 --no-frame-filter logic, and Python frame filter logic.
5679 (stack_enable_frame_filters): New function.
5680 (parse_no_frame_option): Ditto.
5681 (mi_cmd_stack_list_frames): Add --no-frame-filter and Python frame
5682 filter logic.
5683 (mi_cmd_stack_list_locals): Ditto.
5684 (mi_cmd_stack_list_args): Ditto.
5685 (mi_cmd_stack_list_variables): Ditto.
5686 * NEWS: Add frame filter note.
5687
2cb9c859
DE
56882013-05-09 Doug Evans <dje@google.com>
5689
6bf667bb
DE
5690 * symfile.c (syms_from_objfile_1): Delete args offsets, num_offsets.
5691 All callers updated.
5692 (syms_from_objfile): Ditto. Make static.
5693 (symbol_file_add_with_addrs): Renamed from
5694 symbol_file_add_with_addrs_or_offsets. Delete args offsets,
5695 num_offsets. All callers updated.
5696 * symfile.h (syms_from_objfile): Delete.
5697
2cb9c859
DE
5698 * symfile.c (decrement_reading_symtab): Add assert.
5699 (increment_reading_symtab): Ditto.
5700
40aea477
JB
57012013-05-09 Joel Brobecker <brobecker@adacore.com>
5702
5703 * source.c (forward_search_command): Replace call to getc
5704 by call to fgetc.
5705 (reverse_search_command): Likewise.
5706
680d1742
DE
57072013-05-08 Doug Evans <dje@google.com>
5708
5709 * psymtab.c (expand_symtabs_matching_via_partial): Fix file name
5710 matching test.
5711
17e760ae
JB
57122013-05-08 Joel Brobecker <brobecker@adacore.com>
5713
5714 * sol-thread.c (info_cb): Factorize the code a little.
5715
c0f5f490
JB
57162013-05-08 Joel Brobecker <brobecker@adacore.com>
5717
5718 * sol-thread.c (info_cb): Rework the output of the "maintenance
5719 info sol-threads" command a bit.
5720
5d74e061
JB
57212013-05-08 Joel Brobecker <brobecker@adacore.com>
5722
5723 * sol-thread.c (info_cb) [ti.ti_state == TD_THR_SLEEP]:
5724 Replace ti.ti_startfunc by ti.ti_pc.
5725
814a3ff7
JB
57262013-05-08 Joel Brobecker <brobecker@adacore.com>
5727
5728 * solib-aix.c (solib_aix_free_library_list): New function
5729 for the case where HAVE_LIBEXPAT is not defined.
5730
58ce7251
SDJ
57312013-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
5732
5733 PR breakpoints/15413:
5734 * breakpoint.c (condition_completer): Simplify the code to
5735 disconsider multiple locations of breakpoints when completing the
5736 "condition" command.
5737
be8b1ea6
PM
57382013-05-07 Pierre Muller <muller@sourceware.org>
5739
5740 * common/linux-btrace.c: ARI fix: Include "gdb_wait.h"
5741 instead of <sys/wait.h>.
5742
1e52bda6
PM
57432013-05-07 Pierre Muller <muller@sourceware.org>
5744
5745 * nios2-tdep.c (nios2_dwarf_reg_to_regnum): ARI fix: remove
5746 trailing new line from warning message.
5747
27fd0c6b
PM
57482013-05-07 Pierre Muller <muller@sourceware.org>
5749
5750 * contrib/ari/gdb_ari.sh (SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK)
5751 (PC_SOLIB): Change type from ari_deprecate to ari_regression.
5752
e228ac87
JB
57532013-05-07 Joel Brobecker <brobecker@adacore.com>
5754
5755 * rs6000-nat.c (rs6000_core_ldinfo): Remove '\n' at end of
5756 error message (ARI fix).
5757
57582013-05-07 Joel Brobecker <brobecker@adacore.com>
5759
5760 * features/library-list-aix.dtd: Replace library-list by
5761 library-list-aix.
5762 * rs6000-nat.c: Replace library-list by library-list-aix
5763 throughout.
5764 * solib-aix.c: Likewise.
5765
57662013-05-07 Joel Brobecker <brobecker@adacore.com>
5767
5768 * target.h (enum target_object) [TARGET_OBJECT_LIBRARIES_AIX]:
5769 Renames TARGET_OBJECT_AIX_LIBRARIES.
5770 * rs6000-nat.c: Replace TARGET_OBJECT_AIX_LIBRARIES with
5771 TARGET_OBJECT_LIBRARIES_AIX throughout.
5772 * solib-aix.c: Likwise.
5773
26a4dda9
YQ
57742013-05-07 Yao Qi <yao@codesourcery.com>
5775
5776 * solib-dsbt.c (struct dsbt_info) <enable_break2_done>: Remove.
5777 (get_dsbt_info, enable_break, dsbt_clear_solib): Update.
5778
3582629f
YQ
57792013-05-07 Yao Qi <yao@codesourcery.com>
5780
5781 * solib-dsbt.c (enable_break): Declare.
5782 (dsbt_current_sos): Remove call to enable_break2.
5783 (enable_break2): Rename to enable_break. Set solib breakpoint
5784 on '_dl_debug_state'.
5785 (enable_break): Remove.
5786
aacbb8a5
LM
57872013-05-07 Luis Machado <lgustavo@codesourcery.com>
5788
5789 * ppc-linux-nat.c (ppc_linux_new_thread): Clear the new thread's
5790 debug state prior to replicating existing hardware watchpoints or
5791 breakpoints.
5792
0c013353
JK
57932013-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
5794
5795 * gcore.c (gcore_create_callback): Ignore sections with
5796 separate_debug_objfile_backlink != NULL.
5797
a1217d97
SL
57982013-05-06 Sandra Loosemore <sandra@codesourcery.com>
5799 Andrew Jenner <andrew@codesourcery.com>
5800 Chung-Lin Tang <cltang@codesourcery.com>
5801 Julian Brown <julian@codesourcery.com>
5802
5803 Based on the nios2-elf port from Altera Corporation.
5804
5805 * Makefile.in (ALL_TARGET_OBS): Add nios2-tdep.o and
5806 nios2-linux-tdep.o.
5807 (HFILES_NO_SRCDIR): Add nios2-tdep.h.
5808 (ALLDEPFILES): Add nios2-tdep.c and nios2-linux-tdep.c.
5809 * configure.tgt: Add nios2*-*-linux* and nios2*-*-* targets.
5810 * nios2-tdep.h: New.
5811 * nios2-tdep.c: New.
5812 * nios2-linux-tdep.c: New.
5813 * features/Makefile (WHICH): Add nios2-linux.
5814 (nios2-linux-expedite): Set.
5815 * features/nios2-cpu.xml: New.
5816 * features/nios2.xml: New.
5817 * features/nios2-linux.xml: New.
5818 * features/nios2.c: New (autogenerated).
5819 * features/nios2-linux.c: New (autogenerated).
5820 * regformats/nios2-linux.dat: New (autogenerated).
5821 * NEWS (Changes since GDB 7.6): Add new Nios II targets
5822 and commands.
5823
0892cb63
DE
58242013-05-06 Doug Evans <dje@google.com>
5825
3b7bacac
DE
5826 * symfile.c: Whitespace cleanup.
5827
0892cb63
DE
5828 * solist.h (struct target_so_ops): New member clear_so.
5829 * solib-svr4.c (svr4_clear_so): New function.
5830 (_initialize_svr4_solib): Set svr4_so_ops.clear_so.
5831 * solib.c (clear_so): Renamed from free_so_symbols.
5832 All callers updated. Call target clear_so if it exists.
5833
40501e00
TT
58342013-05-06 Tom Tromey <tromey@redhat.com>
5835
5836 * ada-lang.c (ada_value_primitive_packed_val): Don't
5837 call value_incref.
5838 * value.c (set_value_parent): Incref the new parent and decref
5839 the old parent.
5840 (value_copy, value_primitive_field): Use set_value_parent.
5841
b6807d98
TT
58422013-05-06 Tom Tromey <tromey@redhat.com>
5843
5844 * dwarf2loc.c (invalid_synthetic_pointer): Move earlier.
5845 (indirect_pieced_value): Call dwarf2_fetch_constant_bytes
5846 if needed.
5847 * dwarf2loc.h (dwarf2_fetch_constant_bytes): Declare.
5848 * dwarf2read.c (write_constant_as_bytes)
5849 (dwarf2_fetch_constant_bytes): New functions.
5850
3aef2284
TT
58512013-05-06 Tom Tromey <tromey@redhat.com>
5852
5853 * dwarf2read.c (dwarf2_const_value_data): Remove unused
5854 parameters.
5855 (dwarf2_const_value_attr): Update.
5856
66f65e2b
TT
58572013-05-06 Tom Tromey <tromey@redhat.com>
5858
5859 * somread.c (som_symfile_offsets): Add 'const' to addrs.
5860 * machoread.c (macho_symfile_offsets): Add 'const' to addrs.
5861 * xcoffread.c (xcoff_symfile_offsets): Add 'const' to addrs.
5862 Remove declaration.
5863
7919a973
TT
58642013-05-06 Tom Tromey <tromey@redhat.com>
5865
5866 * dwarf2read.c (dwarf2_const_value_attr): Use 'obstack', not
5867 objfile's obstack.
5868
a7bfba49
DE
58692013-05-06 Doug Evans <dje@google.com>
5870
3189cb12
DE
5871 * dbxread.c (process_one_symbol): Constify section_offsets parameter.
5872 * stabsread.h (process_one_symbol): Update declaration.
5873 * dwarf2read.c (dw2_relocate): Constify new_offsets, delta parameters.
5874 * elfread.c (elf_symfile_relocate_probe): Ditto.
5875 * psymtab.c (relocate_psymtabs): Ditto.
5876 * objfiles.c (objfile_relocate1): Constify new_offsets parameter.
5877 (objfile_relocate): Ditto.
5878 * objfiles.h (objfile_relocate): Update declaration.
5879 * symfile.c (relative_addr_info_to_section_offsets): Constify
5880 addrs parameter.
5881 (default_symfile_offsets): Ditto.
5882 (syms_from_objfile_1): Constify offsets parameter.
5883 (syms_from_objfile): Ditto.
5884 (symbol_file_add_with_addrs_or_offsets): Ditto.
5885 (symfile_map_offsets_to_segments): Constify data parameter.
5886 * symfile.h (struct quick_symbol_functions): Constify new_offsets,
5887 delta parameters of member relocate.
5888 (struct sym_probe_fns): Constify new_offsets,
5889 delta parameters of member sym_relocate_probe.
5890 (struct sym_fns): Constify section_addr_info parameter of member
5891 sym_offsets.
5892 (relative_addr_info_to_section_offsets): Update declaration.
5893 (default_symfile_offsets): Ditto.
5894 (syms_from_objfile): Ditto.
5895 (symfile_map_offsets_to_segments): Ditto.
5896
a7bfba49
DE
5897 * symfile.c (syms_from_objfile_1): Use correct section count when
5898 objfile->sf == NULL.
5899
5f8e0b8f
MF
59002013-05-06 Mike Frysinger <vapier@gentoo.org>
5901
5902 * common/linux-btrace.c (intel_supports_btrace): Fix indentation.
5903
ea52d893
DE
59042013-05-06 Doug Evans <dje@google.com>
5905
5906 * psympriv.h (struct partial_symtab): Augment comment for member
5907 section_offsets.
5908
4d1eb6b4
JB
59092013-05-06 Joel Brobecker <brobecker@adacore.com>
5910
5911 Reimplement shared library support on ppc-aix...
5912 * target.h (TARGET_OBJECT_AIX_LIBRARIES): New target_object enum.
5913 * features/library-list-aix.dtd: New file.
5914 * solib-aix.h, solib-aix.c: New file.
5915 * rs6000-aix-tdep.c: #include "solib.h" and "solib-aix.h".
5916 (rs6000_find_toc_address_hook): Delete.
5917 (rs6000_push_dummy_call): Rewrite code setting the TOC value.
5918 (rs6000_aix_init_osabi): Register solib_aix_so_ops.
5919 * rs6000-nat.c: Remove "xcoffsolib.h" include. Include
5920 "xml-utils.h".
5921 (map_vmap, vmap_exec, vmap_ldinfo, add_vmap, objfile_symbol_add)
5922 (vmap_symtab, fixup_breakpoints): Delete.
5923 (rs6000_xfer_shared_libraries): New function.
5924 (rs6000_xfer_partial): Add TARGET_OBJECT_AIX_LIBRARIES handling.
5925 (vmap_secs, bss_data_overlap, vmap_add_symbols): Delete.
5926 (xcoff_relocate_symtab, xcoff_relocate_core): Delete.
5927 (rs6000_ptrace_ldinfo, rs6000_core_ldinfo)
5928 (rs6000_xfer_shared_library): New function.
5929 (find_toc_address): Delete.
5930 (_initialize_rs6000_nat): Do not set rs6000_find_toc_address_hook.
5931 * rs6000-tdep.h (rs6000_find_toc_address_hook): Remove.
5932 * xcoffread.c (record_minimal_symbol): Reloate symbol address
5933 before creating minimal symbol. Adjust function description
5934 accordingly.
5935 (scan_xcoff_symtab): Replace call to
5936 prim_record_minimal_symbol_and_info by call to
5937 record_minimal_symbol.
5938 (xcoff_symfile_offsets): Reimplement mostly as a wrapper
5939 around default_symfile_offsets.
5940 * configure.tgt: Add solib-aix.o to gdb_target_obs for
5941 powerpc-aix targets.
5942 * config/rs6000/nm-rs6000.h: Delete.
5943 * config/powerpc/aix.mh (NAT_FILE): Delete.
5944 (NATDEPFILES): Remove xcoffsolib.o.
5945 * Makefile.in (XMLFILES): Add library-list-aix.dtd.
5946 (ALL_TARGET_OBS): Add solib-aix.o.
5947 (HFILES_NO_SRCDIR): Remove xcoffsolib.h and
5948 config/rs6000/nm-rs6000.h. Add solib-aix.h.
5949 (ALLDEPFILES): Add solib-aix.c. Remove xcoffsolib.c.
5950 * xcoffsolib.h, xcoffsolib.c: Delete.
5951
5952 * solib.c (reload_shared_libraries): Remove reference to
5953 SOLIB_CREATE_INFERIOR_HOOK.
5954 * breakpoint.c (handle_solib_event): Remove reference to SOLIB_ADD.
5955 (disable_breakpoints_in_shlibs): Remove reference to PC_SOLIB.
5956 (momentary_bkpt_re_set): Replace SOLIB_ADD by solib_add in
5957 comment.
5958 * corelow.c (deprecated_core_resize_section_table): Delete.
5959 * exec.c: Remove include of xcoffsolib.h".
5960 (map_vmap, vmap): Delete.
5961 (exec_close_1): Remove references to vmap.
5962 (exec_file_attach): Remove vmap handling code, and reference
5963 to DEPRECATED_IBM6000_TARGET.
5964 (bfdsec_to_vmap): Delete.
5965 (exec_files_info): Remove block of code handling VMAP.
5966 * infcmd.c (post_create_inferior): Remove reference to
5967 SOLIB_CREATE_INFERIOR_HOOK and SOLIB_ADD.
5968 * infrun.c (follow_exec): Remove reference to
5969 SOLIB_CREATE_INFERIOR_HOOK.
5970 * stack.c (print_frame): Remove reference to PC_SOLIB.
5971 * solib-dsbt.c (dsbt_current_sos): Adjust comment.
5972 (dsbt_relocate_main_executable): Likewise.
5973 * solib-frv.c (frv_current_sos): Likewise.
5974
0c4f667c
JB
59752013-05-06 Joel Brobecker <brobecker@adacore.com>
5976
5977 * sol-thread.c (rw_common): Cast BUF to "gdb_byte *" in calls
5978 to target_write_memory and target_read_memory.
5979
726ce67c
JB
59802013-05-06 Joel Brobecker <brobecker@adacore.com>
5981
5982 * darwin-nat.c (darwin_setup_fake_stop_event): New function.
5983 (darwin_attach): Adjust using darwin_setup_fake_stop_event.
5984
c8c9911f
JB
59852013-05-06 Joel Brobecker <brobecker@adacore.com>
5986
5987 * darwin-nat.c: Replace all "%x" instances in format strings
5988 into "0x%x" throughout.
5989
fda184b6
JB
59902013-05-06 Joel Brobecker <brobecker@adacore.com>
5991
5992 * darwin-nat.c (darwin_mourn_inferior): Replace call to
5993 gdb_assert by call to MACH_CHECK_ERROR.
5994 (darwin_attach_pid): Raise an error rather than a failed
5995 assertion when various system calls failed. Report a warning
5996 instead of raising a failed assertion when PREV_NOT is not NULL
5997 after call to mach_port_request_notification.
5998 (darwin_ptrace_me): Raise an error rather than a failed
5999 assertion when read returns nonzero.
6000
d1d69afb
JB
60012013-05-06 Joel Brobecker <brobecker@adacore.com>
6002
6003 * amd64-darwin-tdep.c: Remove #include "gdb_assert.h".
6004
dc90b24d
JK
60052013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
6006
6007 * cleanups.c (restore_my_cleanups): New gdb_assert for SENTINEL_CLEANUP.
6008
faab9922
JK
60092013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
6010
6011 * event-top.c (display_gdb_prompt): Call missing do_cleanups.
6012 * infcmd.c (get_return_value) <!stop_regs>: Do not overwrite CLEANUP.
6013 * symfile.c (symfile_bfd_open): New variable back_to. Do not leave
6014 a stale cleanup. Fix double free of NAME.
6015
e0ea48a0
EZ
60162013-05-04 Eli Zaretskii <eliz@gnu.org>
6017
6018 * windows-nat.c (windows_delete_thread): Accept an additional
6019 argument, the thread's exit code, and announce thread death when
6020 print_thread_events is non-zero and we are deleting a thread that
6021 is not the main thread.
6022 (get_windows_debug_event): Pass thread exit code to
6023 windows_delete_thread.
6024
83b2706a
KB
60252013-05-03 Kevin Buettner <kevinb@redhat.com>
6026
6027 * v850-tdep.c (elf-bfd.h, elf/v850.h): Include.
6028 (R_149_REGNUM, E_NUM_OF_V850E2_REGS, E_SELID_1_R0_REGNUM)
6029 (E_SELID_1_R31_REGNUM, E_SELID_2_R0_REGNUM, E_SELID_2_R31_REGNUM)
6030 (E_SELID_3_R0_REGNUM, E_SELID_3_R31_REGNUM, E_SELID_4_R0_REGNUM)
6031 (E_SELID_4_R31_REGNUM, E_SELID_5_R0_REGNUM, E_SELID_5_R31_REGNUM)
6032 (E_SELID_6_R0_REGNUM, E_SELID_6_R31_REGNUM, E_SELID_7_R0_REGNUM, E_SELID_7_R31_REGNUM)
6033 (E_VR0_REGNUM, E_VR31_REGNUM, E_NUM_OF_V850E3V5_REGS): Define.
6034 (v850_abi, V850_ABI_GCC, V850_ABI_RH850): New enum and constants.
6035 (gdbarch_tdep): New struct.
6036 (v850e2_register_name): Use E_NUM_OF_V850E2_REGS instead of
6037 E_NUM_REGS.
6038 (v850e3v5_register_name): New function.
6039 (v850_register_type): v850e3v5 vector registers are 64-bits wide.
6040 (v850_use_struct_convention): Add `gdbarch' parameter. Add new
6041 code handling the struct return conventions for the RH850 ABI.
6042 Update all callers.
6043 (v850_eight_byte_align_p): New function.
6044 (v850_push_call_dummy): Push structs by value, not by reference
6045 for the RH850 ABI. Add support for eight byte alignment.
6046 (v850_dbtrap_breakpoint_from_pc): New function.
6047 (v850_gdbarch_init): Add ABI detection code. Register
6048 v850e3v5_register_name for the v850e3v5 architecture. Set the
6049 number of registers for v850e3v5. Register
6050 v850_dbtrap_breakpoint_from_pc as appropriate.
6051 (_initialize_gdbarch_init): Registration bfd_arch_v850_rh850.
6052
d445b2f6
DE
60532013-05-03 Doug Evans <dje@google.com>
6054
6055 * objfiles.c (objfile_relocate): Use gdb_bfd_count_sections instead
6056 of bfd_count_sections.
6057 * solib-target.c (solib_target_relocate_section_addresses): Ditto.
6058 * symfile.c (default_symfile_offsets): Ditto.
6059 (syms_from_objfile_1): Ditto. Make dummy addrs list an array of
6060 one entry, not bfd_count_sections entries.
6061
b3ce41ea
KB
60622013-05-03 Kevin Buettner <kevinb@redhat.com>
6063
6064 * rl78-tdep.c (rl78_register_reggroup_p): Include SP in the
6065 `save' and `restore' register groups. Don't include SPL
6066 or SPH in these groups.
6067 (rl78_dwarf_reg_to_regnum): Adjust mapping for
6068 RL78_PC_REGNUM. Add mappings for RL78_PSW_REGNUM,
6069 RL78_ES_REGNUM, and RL78_CS_REGNUM.
6070 (rl78_gdbarch_init): Set `dwarf2_addr_size' to 4. Invoke
6071 dwarf2_append_unwinders().
6072
96f7d3f1
PW
60732013-05-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6074
6075 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Do not
6076 ignore SIGINT and SIGTRAP in case these internal signals are
6077 caught explicitely.
6078
b9dd1947
JB
60792013-05-01 Joel Brobecker <brobecker@adacore.com>
6080
6081 * darwin-nat.c (darwin_read_write_inferior): Change types
6082 of parameters rdaddr and wraddr to "gdb_byte *". Change type
6083 of copy_count to "mach_msg_type_number_t".
6084 (darwin_read_dyld_info): Change type of parameter
6085 rdaddr to "gdb_byte *".
6086
4ca18a63
JB
60872013-05-01 Joel Brobecker <brobecker@adacore.com>
6088
6089 * solib-ia64-hpux.c (ia64_hpux_read_dynamic_info): Change cast
6090 of &info->load_map from "char *" to "gdb_byte *".
6091
2b692d32
JB
60922013-05-01 Joel Brobecker <brobecker@adacore.com>
6093
6094 * ia64-tdep.c (ia64_access_fpreg): Change cast of val
6095 from "char *" to "gdb_byte *".
6096 (ia64_access_rse_fpreg, ia64_access_mem): Likewise.
6097
a98c29a0
DE
60982013-04-30 Doug Evans <dje@google.com>
6099
6a506a2d
DE
6100 * dwarf2read.c (lookup_dwo_unit): Return NULL if DWO not found.
6101 (init_cutu_and_read_dies): Flag a complaint, not error, for bad
6102 DWO stub. If DWO isn't found, just use stub.
6103 (lookup_dwo_cutu): Don't try DWO if there's a DWP file.
6104
a98c29a0
DE
6105 * dwarf2read.c (dw2_find_symbol_file): Initialize filename before
6106 calling init_cutu_and_read_dies.
6107
f92b06da
WT
61082013-03-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
6109
6110 * target-descriptions.c (maint_print_c_tdesc_cmd):
6111 Add case to parse structures as register types and
6112 bitfields.
6113
95eebdcc
WT
61142013-04-30 Walfred Tedeschi <walfred.tedeschi@intel.com>
6115
6116 * MAINTAINERS (Write After Approval): Add myself to the list.
6117
019c1128
JB
61182013-04-30 Joel Brobecker <brobecker@adacore.com>
6119
6120 * sol-thread.c (rw_common): Change type of parameter "buf"
6121 to "gdb_byte *".
6122 (ps_pdwrite, ps_ptwrite): Cast parameter "buf" in call to
6123 rw_common to "gdb_byte *" instead of "char *".
6124
5812197c
JB
61252013-04-30 Joel Brobecker <brobecker@adacore.com>
6126
6127 * sol-thread.c (info_cb) [ti.ti_startfunc != 0]: Change type
6128 of local variable msym to const struct bound_minimal_symbol.
6129 Adjust use accordingly.
6130 [ti.ti_state == TD_THR_SLEEP]: Likewise.
6131
ecccb813
TS
61322013-04-30 Samuel Thibault <samuel.thibault@gnu.org>
6133
6134 * i386gnu-nat.c (CREG_OFFSET): New macro.
6135 (creg_offset): New array.
6136 (CREG_ADDR): Use creg_offset instead of reg_offset.
6137
f1d02dd4 61382013-04-30 Joel Brobecker <brobecker@adacore.com>
54746424
JB
6139
6140 * mep-tdep.c (mep_write_pc): Delete.
6141 (mep_gdbarch_init): Remove call to set_gdbarch_write_pc.
6142 Add call to set_gdbarch_pc_regnum.
6143
f1d02dd4 61442013-04-30 Joel Brobecker <brobecker@adacore.com>
01da98f9
JB
6145
6146 * common/filestuff.c: Replace #include <dirent.h> by
6147 #include "gdb_dirent.h".
6148
f1d02dd4 61492013-04-30 Joel Brobecker <brobecker@adacore.com>
366c6766
JB
6150
6151 * common/filestuff.c: Replace #include <sys/stat.h> by
6152 #include "gdb_stat.h".
6153
b385a60d
PM
61542013-04-29 Pierre Muller <muller@sourceware.org>
6155
6156 * dwarf2read.c (handle_DW_AT_stmt_list): Avoid ARI warning for
6157 editCase function rule.
6158 (get_DW_AT_signature_type): Likewise.
6159
d27b54ad
JB
61602013-04-29 Joel Brobecker <brobecker@adacore.com>
6161
6162 * m32r-tdep.c (m32r_write_pc): Delete.
6163 (m32r_gdbarch_init): Remove call to set_gdbarch_write_pc.
6164 Add call to set_gdbarch_pc_regnum.
6165
47d21dc5
PM
61662013-04-29 Pierre Muller <muller@sourceware.org>
6167
6168 * ./contrib/ari/gdb_ari.sh (editCase rule): Fix spelling error.
6169
9056882e
JB
61702013-04-29 Joel Brobecker <brobecker@adacore.com>
6171
6172 * dwarf2read.c (get_DW_AT_signature_type): Add ARI marker.
6173
7ee4732a
YQ
61742013-04-28 Yao Qi <yao@codesourcery.com>
6175
6176 * solib-dsbt.c (fetch_loadmap): Re-indent.
6177 (displacement_from_map, enable_break2): Likewise.
6178 (dsbt_relocate_section_addresses): Likewise.
6179
2260af53 61802013-04-26 Joel Brobecker <brobecker@adacore.com>
6181
6182 GDB 7.6 released.
6183
ff546935
TT
61842013-04-25 Andreas Kaufmann <Andreas.Kaufmann@synopsys.com>
6185
6186 PR corefiles/14983:
6187 * dwarf2read.c (process_full_comp_unit): Always create a static
6188 block.
6189
40fb6c5e
HZ
61902013-04-25 Hui Zhu <hui@codesourcery.com>
6191
6192 * breakpoint.c (build_target_command_list): Change loc->cond_bytecode
6193 to loc->cmd_bytecode.
6194
74e04d1c
DE
61952013-04-24 Doug Evans <dje@google.com>
6196
6197 * dwarf2read.c (setup_type_unit_groups): Fix comment.
6198
3cf62c1d
KS
61992013-04-22 Keith Seitz <keiths@redhat.com>
6200
6201 * tracepoint.c (trace_save): Call the writer's start method.
6202
bf9e4d0c
MB
62032013-04-24 Muhammad Bilal <mbilal@codesourcery.com>
6204
6205 PR gdb/10462
6206 * cli/cli-decode.c (lookup_command): Show an error if there is no space
6207 before argument.
6208
5d71132c
TT
62092013-04-23 Tom Tromey <tromey@redhat.com>
6210
6211 * common/filestuff.c: Check USE_WIN32API before including
6212 sys/socket.h.
6213 (HAVE_F_GETFD): New define.
6214 (mark_cloexec): Check HAVE_F_GETFD.
6215 (gdb_open_cloexec): Change 'mode' to unsigned long.
6216 (gdb_socketpair_cloexec): Check HAVE_SOCKETPAIR.
6217 (gdb_pipe_cloexec): Check HAVE_PIPE.
6218 * common/filestuff.h (gdb_open_cloexec): Change 'mode' to unsigned
6219 long.
6220
a11cfd87
HZ
62212013-04-23 Hui Zhu <hui@codesourcery.com>
6222
6223 PR gdb/15293
a11cfd87
HZ
6224 * breakpoint.c (bpstat_what): Add BPSTAT_WHAT_SINGLE to bp_dprintf.
6225
2d9442cc
HZ
62262013-04-23 Hui Zhu <hui@codesourcery.com>
6227
6228 PR gdb/15165
2d9442cc
HZ
6229 * breakpoint.c (dprintf_print_recreate): New.
6230 (save_breakpoints): Let it not save dprintf commands.
6231 (initialize_breakpoint_ops): Set dprintf_print_recreate.
6232
614c279d
TT
62332013-04-22 Tom Tromey <tromey@redhat.com>
6234
6235 PR gdb/7912:
6236 * Makefile.in (SFILES): Add filestuff.c
6237 (COMMON_OBS): Add filestuff.o.
6238 (filestuff.o): New target.
6239 * auto-load.c (auto_load_objfile_script_1): Use
6240 gdb_fopen_cloexec.
6241 * auxv.c (procfs_xfer_auxv): Use gdb_open_cloexec.
6242 * cli/cli-cmds.c (shell_escape): Call close_most_fds.
6243 * cli/cli-dump.c (fopen_with_cleanup): Use gdb_fopen_cloexec.
6244 * common/agent.c (gdb_connect_sync_socket): Use
6245 gdb_socket_cloexec.
6246 * common/filestuff.c: New file.
6247 * common/filestuff.h: New file.
6248 * common/linux-osdata.c (linux_common_core_of_thread)
6249 (command_from_pid, commandline_from_pid, print_source_lines)
6250 (linux_xfer_osdata_shm, linux_xfer_osdata_sem)
6251 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Use
6252 gdb_fopen_cloexec.
6253 * common/linux-procfs.c (linux_proc_get_int)
6254 (linux_proc_pid_has_state): Use gdb_fopen_cloexec.
6255 * config.in, configure: Rebuild.
6256 * configure.ac: Don't check for sys/socket.h. Check for
6257 fdwalk, pipe2.
6258 * corelow.c (core_open): Use gdb_open_cloexec.
6259 * dwarf2read.c (write_psymtabs_to_index): Use gdb_fopen_cloexec.
6260 * fork-child.c (fork_inferior): Call close_most_fds.
6261 * gdb_bfd.c (gdb_bfd_open): Use gdb_open_cloexec.
6262 * inf-child.c (inf_child_fileio_readlink): Use gdb_open_cloexec.
6263 * linux-nat.c (linux_nat_thread_name, linux_proc_pending_signals):
6264 Use gdb_fopen_cloexec.
6265 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use
6266 gdb_open_cloexec.
6267 (linux_async_pipe): Use gdb_pipe_cloexec.
6268 * remote-fileio.c (remote_fileio_func_open): Use
6269 gdb_open_cloexec.
6270 * remote.c (remote_file_put, remote_file_get): Use
6271 gdb_fopen_cloexec.
6272 * ser-pipe.c (pipe_open): Use gdb_socketpair_cloexec,
6273 close_most_fds.
6274 * ser-tcp.c (net_open): Use gdb_socket_cloexec.
6275 * ser-unix.c (hardwire_open): Use gdb_open_cloexec.
6276 * solib.c (solib_find): Use gdb_open_cloexec.
6277 * source.c (openp, find_and_open_source): Use gdb_open_cloexec.
6278 * tracepoint.c (tfile_start): Use gdb_fopen_cloexec.
6279 (tfile_open): Use gdb_open_cloexec.
6280 * tui/tui-io.c (tui_initialize_io): Use gdb_pipe_cloexec.
6281 * ui-file.c (gdb_fopen): Use gdb_fopen_cloexec.
6282 * xml-support.c (xml_fetch_content_from_file): Use
6283 gdb_fopen_cloexec.
6284 * main.c (captured_main): Call notice_open_fds.
6285
5fda2332
EBM
62862013-04-22 Edjunior Machado <emachado@linux.vnet.ibm.com>
6287
6288 * remote-sim.c (dump_mem): Change the type of 'buf' parameter from
6289 'char *' to 'gdb_byte *'.
6290 (gdbsim_store_register): Change the type of 'tmp' from 'char' to
6291 'gdb_byte'.
6292
eb6c553b
YQ
62932013-04-22 Yao Qi <yao@codesourcery.com>
6294
6295 * infrun.c: Fix typo in comment.
6296
9991b207
SDJ
62972013-04-22 Andrew Haley <aph@redhat.com>
6298
6299 * arm-tdep.c (BranchDest): Cast result as "unsigned long",
6300 instead of "long".
6301
8b4833e3
YQ
63022013-04-20 Yao Qi <yao@codesourcery.com>
6303
6304 * ctf.c (ctf_fetch_registers): Change the type of 'regs' from
6305 'char *' to 'gdb_byte *'. Cast the return value of
6306 'bt_ctf_get_char_array' to 'gdb_byte *'.
6307
bd3f3b55
PA
63082013-04-19 Pedro Alves <palves@redhat.com>
6309
6310 * configure.ac (build_warnings): Replace -Wno-pointer-sign with
6311 -Wpointer-sign.
6312 * configure: Regenerate.
6313
c49e7f76
PA
63142013-04-19 Pedro Alves <palves@redhat.com>
6315
6316 * ser-tcp.c (net_read_prim): Cast second argument to recv to
6317 'void *'.
6318
12ff8552
PA
63192013-04-19 Pedro Alves <palves@redhat.com>
6320
6321 * monitor.c (monitor_write_memory, monitor_write_memory_bytes):
6322 Change type of 'myaddr' parameter to gdb_byte pointer.
6323 (monitor_write_memory_longlongs): Likewise. Cast 'myaddr' pointer
6324 to 'long long' pointer instead of to 'unsigned long long'.
6325 (monitor_write_memory_block, monitor_read_memory_single)
6326 (monitor_read_memory): Change type of 'myaddr' parameter to
6327 gdb_byte pointer.
6328
9c37696b
PA
63292013-04-19 Pedro Alves <palves@redhat.com>
6330
6331 * record.c (validate_history_size): Make parameter 'setting'
6332 unsigned.
6333
a398505b
PA
63342013-04-19 Pedro Alves <palves@redhat.com>
6335
6336 * ctf.c (ctf_write_uploaded_tsv, ctf_write_uploaded_tp): Add casts
6337 to 'gdb_byte *'.
6338
9f8afa72
PA
63392013-04-19 Pedro Alves <palves@redhat.com>
6340
6341 * cp-valprint.c (cp_print_class_member): Change type of 'fieldno'
6342 local to int.
6343
c714b426
PA
63442013-04-19 Pedro Alves <palves@redhat.com>
6345
6346 * ada-lang.c (print_it_exception): Add cast to gdb_byte *.
6347 * ada-tasks.c (read_fat_string_value): Likewise.
6348
507a579c
PA
63492013-04-19 Pedro Alves <palves@redhat.com>
6350
6351 * dwarf2-frame.c (execute_cfa_program): Make 'bytes_read' local
6352 unsigned. Pass 'tmp' to safe_read_uleb128 instead of the signed
6353 'offset', and adjust.
6354
f9d83a0b
PA
63552013-04-19 Pedro Alves <palves@redhat.com>
6356
6357 * dwarf2read.c (dwarf2_get_dwz_file): Add cast to const char *.
6358 (read_index_from_section): Add cast to 'char *'.
6359
745eb4fd
PA
63602013-04-19 Pedro Alves <palves@redhat.com>
6361
6362 * xcoffread.c (xcoff_initial_scan): Add cast to 'char *'.
6363
db5be46f
PA
63642013-04-19 Pedro Alves <palves@redhat.com>
6365
6366 * coff-pe-read.c (read_pe_exported_syms): Handle strings as char.
6367
0f928d68
PA
63682013-04-19 Pedro Alves <palves@redhat.com>
6369
6370 * record-full.c (record_full_get_bookmark): Change local 'ret'
6371 type to char * and add cast to gdb_byte *.
6372 (record_full_goto_bookmark): Handle 'bookmark' argument as a
6373 string.
6374 * reverse.c (goto_bookmark_command): Add casts to gdb_byte *.
6375
89f6d837
PA
63762013-04-19 Pedro Alves <palves@redhat.com>
6377
6378 * python/py-inferior.c (infpy_write_memory): Add cast to gdb_byte
6379 * python/py-prettyprint.c (print_string_repr): Change type of
6380 'output' local to char *. Add cast to gdb_byte * in
6381 LA_PRINT_STRING call.
6382 (print_children): Change type of 'output' local to char *.
6383 * python/py-value.c (valpy_string): Add cast to const char * in
6384 PyUnicode_Decode call.
6385
ce6ec7d8
PA
63862013-04-19 Pedro Alves <palves@redhat.com>
6387
6388 * remote-mips.c (mips_cksum): Rename 'data' parameter to 'datastr'
6389 and change its type to 'const char *'. Adjust.
6390 (mips_send_packet): Add cast to 'char *', and remove cast to
6391 'unsigned char *'.
6392 (mips_receive_packet): Remove cast to 'unsigned char *'.
6393 (mips_load_srec): Use bfd_byte.
6394 (pmon_makeb64, pmon_zeroset): Make 'chksum' parameter unsigned.
6395 (pmon_checkset): Make 'value' parameter unsigned.
6396
fda0389f
PA
63972013-04-19 Pedro Alves <palves@redhat.com>
6398
6399 * common/agent.c (agent_run_command): Add cast to gdb_byte *.
6400
bc20a4af
PA
64012013-04-19 Pedro Alves <palves@redhat.com>
6402
6403 * remote.c (remote_write_bytes_aux, compare_sections_command)
6404 (remote_read_qxfer)
6405 (remote_search_memory, remote_hostio_pwrite, remote_hostio_pread)
6406 (remote_hostio_readlink, remote_bfd_iovec_pread)
6407 (remote_set_trace_notes): Use gdb_byte when RSP buffer is used as
6408 binary buffer, and char when buffer is used as string.
6409 * tracepoint.c (encode_source_string, tfile_write_uploaded_tp)
6410 (trace_save, tfile_open, traceframe_walk_blocks)
6411 (tfile_fetch_registers): Likewise.
6412
c628b528
PA
64132013-04-19 Pedro Alves <palves@redhat.com>
6414
6415 * ser-base.c (ser_base_write): Change prototype -- take 'void *'
6416 buffer and size_t size. Adjust.
6417 * ser-base.h (ser_base_write): Adjust.
6418 * ser-go32.c (cnts): Change type to size_t.
6419 (dos_write): Change prototype -- take 'void *'
6420 buffer and size_t size. Adjust.
6421 (dos_info): Print elements of 'cnts' as unsigned long.
6422 * serial.c (serial_write): Likewise.
6423 * serial.h (serial_write): Adjust.
6424 (struct serial_ops) <write>: Change prototype -- take 'void *'
6425 buffer and size_t size. Adjust.
6426
51a5cd90
PA
64272013-04-19 Pedro Alves <palves@redhat.com>
6428
6429 * c-lang.c (evaluate_subexp_c): Cast result of obstack_base to
6430 gdb_byte *.
6431 * linux-tdep.c (linux_make_mappings_corefile_notes): Likewise.
6432
a9933661
PA
64332013-04-19 Pedro Alves <palves@redhat.com>
6434
6435 * alpha-tdep.c (alpha_extract_return_value): Use
6436 regcache_cooked_read_unsigned to read 'v0'.
6437
19afdd07
PA
64382013-04-19 Pedro Alves <palves@redhat.com>
6439
6440 * xtensa-tdep.c (execute_l32e, execute_s32e): Change type of
6441 parameters 'at', 'as' and 'offset' to uint32_t.
6442
96b32e50
PA
64432013-04-19 Pedro Alves <palves@redhat.com>
6444
6445 * aarch64-tdep.c (aarch64_analyze_prologue): Change type of local
6446 'is64' to signed 'int'.
6447
eb1bd1fb
PA
64482013-04-19 Pedro Alves <palves@redhat.com>
6449
6450 * s390-tdep.c (is_rs, is_rsy, is_rx, is_rxy): Change type of 'd2'
6451 parameter to int *.
6452
463920bf
PA
64532013-04-19 Pedro Alves <palves@redhat.com>
6454
6455 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Change local
6456 'insnbuf' buffer type to unsigned int[].
6457
70242eb1
PA
64582013-04-19 Pedro Alves <palves@redhat.com>
6459
6460 * mips-tdep.c (mips_read_pc): Change local 'pc' type to LONGEST.
6461
9d1dd0e2
PA
64622013-04-19 Pedro Alves <palves@redhat.com>
6463
6464 * mep-tdep.c (mep_get_insn): Change 'insn' parameter type to
6465 unsigned long *.
6466
44096aee
PA
64672013-04-19 Pedro Alves <palves@redhat.com>
6468
6469 * alpha-tdep.c (heuristic_fence_post): Change type to int.
6470 (alpha_heuristic_proc_start): Adjust to check -1 instead of
6471 UINT_MAX.
6472 * mips-tdep.c (heuristic_fence_post): Change type to int.
6473 (heuristic_proc_start): Adjust to check -1 instead of UINT_MAX.
6474
e4286e57
PA
64752013-04-19 Pedro Alves <palves@redhat.com>
6476
6477 * cris-tdep.c (usr_cmd_cris_version): Make unsigned.
6478 (struct gdbarch_tdep) <cris_version>: Make unsigned.
6479 (cris_spec_reg_applicable, cris_gdbarch_init): Adjust locals.
6480
001f13d8
PA
64812013-04-19 Pedro Alves <palves@redhat.com>
6482
6483 * avr-tdep.c (avr_io_reg_read_command): New local 'bufstr'. Use
6484 it to get a string view of the byte buffer.
6485 * i386-cygwin-tdep.c (core_process_module_section): Change local 'buf'
6486 type to gdb_byte *. Adjust.
6487 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full):
6488 Change local to char *.
6489 * solib-darwin.c (find_program_interpreter): Change return type to
6490 char *. Adjust.
6491 (darwin_solib_get_all_image_info_addr_at_init): Adjust.
6492 * solib-dsbt.c (enable_break2): Change local 'buf' to char *.
6493 * solib-frv.c (enable_break2): Change local 'buf' to char *.
6494 * solib-spu.c (spu_current_sos): Add gdb_byte * cast.
6495 * solib-svr4.c (find_program_interpreter): Change return type to
6496 char *. Adjust.
6497 (enable_break): Change local 'interp_name' to char *.
6498 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
6499 * spu-tdep.c (spu_pseudo_register_read_spu): Add cast to 'char *'.
6500 (spu_pseudo_register_write_spu): Use char for string buffer.
6501 Adjust.
6502 (info_spu_event_command, info_spu_signal_command): Add casts to
6503 'char *'.
6504
948f8e3d
PA
65052013-04-19 Pedro Alves <palves@redhat.com>
6506
6507 * aarch64-tdep.c (aarch64_default_breakpoint): Change type to
6508 gdb_byte[].
6509 (aarch64_breakpoint_from_pc): Change return type to gdb_byte *.
6510 * ada-lang.c (ada_value_assign): Use gdb_byte.
6511 * alphanbsd-tdep.c (sigtramp_retcode): Change type to gdb_byte[].
6512 (alphanbsd_sigtramp_offset): Use gdb_byte.
6513 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint)
6514 (arm_linux_arm_be_breakpoint, eabi_linux_arm_le_breakpoint)
6515 (eabi_linux_arm_be_breakpoint, arm_linux_thumb_be_breakpoint)
6516 (arm_linux_thumb_le_breakpoint, arm_linux_thumb2_be_breakpoint)
6517 (arm_linux_thumb2_le_breakpoint): Change type to gdb_byte[].
6518 * arm-tdep.c (arm_stub_unwind_sniffer)
6519 (arm_displaced_init_closure): Use gdb_byte.
6520 (arm_default_arm_le_breakpoint, arm_default_arm_be_breakpoint)
6521 (arm_default_thumb_le_breakpoint)
6522 (arm_default_thumb_be_breakpoint): Change type to gdb_byte[].
6523 * arm-tdep.h (struct gdbarch_tdep) <arm_breakpoint,
6524 thumb_breakpoint, thumb2_breakpoint>: Change type to gdb_byte *.
6525 * arm-wince-tdep.c (arm_wince_le_breakpoint)
6526 (arm_wince_thumb_le_breakpoint): Change type to gdb_byte[].
6527 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint)
6528 (arm_nbsd_arm_be_breakpoint, arm_nbsd_thumb_le_breakpoint)
6529 (arm_nbsd_thumb_be_breakpoint): Change type to gdb_byte[].
6530 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint)
6531 (arm_obsd_thumb_be_breakpoint): Change type to gdb_byte[].
6532 * cris-tdep.c (push_stack_item, cris_push_dummy_call)
6533 (cris_store_return_value, cris_extract_return_value): Use
6534 gdb_byte.
6535 (constraint): Change type of parameter to char * from signed
6536 char*. Use gdb_byte.
6537 * dwarf2loc.c (read_pieced_value, write_pieced_value): Change type
6538 of local buffer to gdb_byte *.
6539 * dwarf2read.c (read_index_from_section): Use gdb_byte.
6540 (create_dwp_hash_table): Change type of locals to gdb_byte *.
6541 (add_address_entry): Change type of local buffer to gdb_byte[].
6542 * frv-tdep.c (frv_adjust_breakpoint_address, find_func_descr)
6543 (frv_push_dummy_call): Use gdb_byte.
6544 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code)
6545 (hppa_hpux_supply_ss_fpblock, hppa_hpux_supply_ss_wide)
6546 (hppa_hpux_supply_save_state): Use gdb_byte.
6547 * hppa-tdep.c (hppa32_push_dummy_call)
6548 (hppa64_convert_code_addr_to_fptr): Use gdb_byte.
6549 * ia64-tdep.c (extract_bit_field, replace_bit_field)
6550 (slotN_contents, replace_slotN_contents): Change type of parameter
6551 to gdb_byte *.
6552 (fetch_instruction, ia64_pseudo_register_write)
6553 (ia64_register_to_value, ia64_value_to_register)
6554 (ia64_extract_return_value, ia64_store_return_value)
6555 (ia64_push_dummy_call): Use gdb_byte.
6556 * m32c-tdep.c (m32c_return_value): Remove cast.
6557 * m68hc11-tdep.c (m68hc11_pseudo_register_write)
6558 (m68hc11_push_dummy_call, m68hc11_store_return_value): Use
6559 gdb_byte.
6560 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use gdb_byte.
6561 * mn10300-tdep.c (mn10300_store_return_value)
6562 (mn10300_breakpoint_from_pc, mn10300_push_dummy_call): Use
6563 gdb_byte.
6564 * moxie-tdep.c (moxie_process_readu): Use gdb_byte.
6565 (moxie_process_record): Remove casts.
6566 * ppc-ravenscar-thread.c (supply_register_at_address)
6567 (ppc_ravenscar_generic_store_registers): Use gdb_byte.
6568 * ravenscar-thread.c (get_running_thread_id): Use gdb_byte.
6569 * remote-m32r-sdi.c (m32r_fetch_register): Use gdb_byte.
6570 * remote-mips.c (mips_xfer_memory): Use gdb_byte.
6571 * remote.c (compare_sections_command): Use gdb_byte.
6572 * score-tdep.c (score7_free_memblock): Change type of parameter to
6573 gdb_byte *.
6574 * sh-tdep.c (sh_justify_value_in_reg): Change return type to
6575 gdb_byte *. Use gdb_byte.
6576 (sh_push_dummy_call_fpu): Use gdb_byte.
6577 (sh_extract_return_value_nofpu, sh_extract_return_value_fpu)
6578 (sh_store_return_value_nofpu, sh_store_return_value_fpu)
6579 (sh_register_convert_to_virtual, sh_register_convert_to_raw):
6580 Change parameter type to 'gdb_byte *'. Use gdb_byte.
6581 (sh_pseudo_register_read, sh_pseudo_register_write): Use gdb_byte.
6582 * sh64-tdep.c (sh64_push_dummy_call): Use gdb_byte.
6583 (sh64_store_return_value, sh64_register_convert_to_virtual):
6584 Change parameter type to 'gdb_byte *'. Use gdb_byte.
6585 (sh64_pseudo_register_write): Use gdb_byte.
6586 * solib-darwin.c (darwin_current_sos): Add casts to 'gdb_byte *'.
6587 * solib-irix.c (fetch_lm_info): Likewise. Use gdb_byte for byte
6588 buffer.
6589 (irix_current_sos): Use gdb_byte.
6590 * solib-som.c (som_current_sos): Use gdb_byte.
6591 * sparc-ravenscar-thread.c (supply_register_at_address)
6592 (sparc_ravenscar_generic_store_registers): Use gdb_byte.
6593 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
6594 * spu-tdep.c (spu_get_overlay_table): Use gdb_byte.
6595 * tic6x-tdep.c (tic6x_breakpoint_from_pc): Change return type to
6596 'gdb_byte *'.
6597 * tic6x-tdep.h (struct gdbarch_tdep) <breakpoint>: Change type to
6598 'gdb_byte *'.
6599 * tracepoint.c (tfile_fetch_registers): Use gdb_byte.
6600 * xstormy16-tdep.c (xstormy16_extract_return_value)
6601 (xstormy16_store_return_value): Change parameter type to
6602 'gdb_byte *'. Adjust.
6603 (xstormy16_push_dummy_call): Use gdb_byte.
6604 * xtensa-tdep.c (xtensa_scan_prologue, call0_ret)
6605 (call0_analyze_prologue, execute_code): Use gdb_byte.
6606
433730c9
PA
66072013-04-19 Vladimir Kargov <kargov@gmail.com>
6608 Pedro Alves <palves@redhat.com>
6609
6610 * i387-tdep.c (i387_print_float_info): Use gdb_byte for pointer to
6611 value contents.
6612
ac9ec31b
DE
66132013-04-17 Doug Evans <dje@google.com>
6614
6615 * dwarf2read.c (struct signatured_type): New member type.
6616 (struct attribute): Replace member signatured_type with signature.
6617 (DW_SIGNATURE): Replaces DW_SIGNATURE_TYPE.
6618 (read_call_site_scope): Call follow_die_ref instead of
6619 follow_die_ref_or_sig.
6620 (read_structure_type): Rewrite handling of signatured types.
6621 (read_enumeration_type): Ditto.
6622 (read_attribute_value): Update.
6623 (build_error_marker_type): New function.
6624 (lookup_die_type): Add assert. Rewrite handling of signatured types.
6625 Don't call error for bad types, just build an error marker type.
6626 (dump_die_shallow): Update.
6627 (follow_die_sig_1): Renamed from follow_die_sig.
6628 Don't call error for bad types, instead return NULL.
6629 (follow_die_sig): New function.
6630 (get_signatured_type, get_DW_AT_signature_type): New functions.
6631
e546e8bb
YZ
66322013-04-17 Yufeng Zhang <yufeng.zhang@arm.com>
6633
6634 * aarch64-tdep.c (aarch64_write_pc): Removed.
543cdd95
JB
6635 (aarch64_gdbarch_init): Remove set_gdbarch_write_pc of the above
6636 function.
e546e8bb 6637
ab116149
YQ
66382013-04-17 Yao Qi <yao@codesourcery.com>
6639
6640 * top.c (print_gdb_configuration): Print configure-time
6641 parameter on using libbabeltrace or not.
6642
488a42b8
PA
66432013-04-16 Pedro Alves <palves@redhat.com>
6644
6645 * copyright.py (EXCLUDE_LIST): Add gdb/common/glibc_thread_db.h.
6646
f5fb825b
PA
66472013-04-16 Pedro Alves <palves@redhat.com>
6648
85d494ea 6649 * common/glibc_thread_db.h: Update from upstream glibc
f5fb825b
PA
6650 (git 568035b7874a099087b77f7bba3e36a1173787b0).
6651
e1154999
PA
66522013-04-16 Pedro Alves <palves@redhat.com>
6653
6654 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: Factor out to ...
6655 * common/glibc_thread_db.h: ... this new file ...
6656 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: ... and include it.
6657
e3b50a7f
PA
66582013-04-16 Will Newton <will.newton@gmail.com>
6659 Pedro Alves <palves@redhat.com>
6660
6661 PR build/11881
6662
6663 * common/gdb_thread_db.h (LIBTHREAD_DB_SO)
6664 (LIBTHREAD_DB_SEARCH_PATH): Move outside of #ifdef
6665 HAVE_THREAD_DB_H.
6666
1c2e4450
PA
66672013-04-16 Pedro Alves <palves@redhat.com>
6668 Eli Zaretskii <eliz@gnu.org>
6669
6670 * NEWS: Mention "set foo unlimited".
6671
4031ecc5
DE
66722013-04-15 Doug Evans <dje@google.com>
6673
19c3d4c9
DE
6674 * dwarf2read.c (struct dwo_file): Replace member "cus" with "cu".
6675 (struct create_dwo_cu_data): Renamed from create_dwo_info_table_data.
6676 (create_dwo_cu_reader): Renamed from
6677 create_dwo_debug_info_hash_table_reader.
6678 (create_dwo_cu): Renamed from create_dwo_debug_info_hash_table.
6679 Remove support for multiple CUs in a DWO file.
6680 (open_and_init_dwo_file, lookup_dwo_cutu): Update.
6681
4031ecc5
DE
6682 * dwarf2read.c (create_debug_types_hash_table): Use hex_string
6683 instead of phex.
6684 (lookup_dwo_unit, create_dwo_debug_info_hash_table_reader): Ditto.
6685 (create_dwo_in_dwp): Ditto.
6686
b340913d
TT
66872013-04-15 Tom Tromey <tromey@redhat.com>
6688
6689 * NEWS: Move recent entries into "since 7.6" section.
6690
cc16e6c9
TT
66912013-04-15 Tom Tromey <tromey@redhat.com>
6692
6693 PR c++/13588:
6694 * NEWS: Update.
6695 * break-catch-throw.c (struct exception_catchpoint)
6696 <exception_rx, pattern>: New fields.
6697 (fetch_probe_arguments, dtor_exception_catchpoint)
6698 (check_status_exception_catchpoint)
6699 (print_one_detail_exception_catchpoint): New functions.
6700 (handle_gnu_v3_exceptions): Add "except_rx" argument.
6701 Compile regular expression if needed.
6702 (extract_exception_regexp): New function.
6703 (catch_exception_command_1): Use extract_exception_regexp.
6704 (compute_exception): Use fetch_probe_arguments.
6705 (initialize_throw_catchpoint_ops): Set dtor, print_one_detail,
6706 and check_status fields.
6707 * cp-abi.c (cplus_typename_from_type_info): New function.
6708 * cp-abi.h (cplus_typename_from_type_info): Declare.
6709 (struct cp_abi_ops) <get_typename_from_type_info>: New field.
6710 * gdb_regex.h (compile_rx_or_error): Declare.
6711 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info): Update
6712 comment.
6713 (init_gnuv3_ops): Set get_type_from_type_info field.
6714 * probe.c (compile_rx_or_error): Move...
6715 * utils.c (compile_rx_or_error): ... here.
6716
72f1fe8a
TT
67172013-04-15 Tom Tromey <tromey@redhat.com>
6718
6719 PR c++/15176:
6720 * NEWS: Update.
6721 * break-catch-throw.c (compute_exception): New function.
6722 (exception_funcs): New global.
6723 (_initialize_break_catch_throw): Create $_exception.
6724 * cp-abi.c (cplus_type_from_type_info): New function.
6725 * cp-abi.h (cplus_type_from_type_info): Declare.
6726 (struct cp_abi_ops) <get_type_from_type_info>: New field.
6727 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info)
6728 (gnuv3_get_type_from_type_info): New functions.
6729 (init_gnuv3_ops): Set get_type_from_type_info ABI field.
6730
fc4746a2
TT
67312013-04-15 Tom Tromey <tromey@redhat.com>
6732
6733 * break-catch-throw.c (struct exception_names): New.
6734 (exception_functions): Change type.
6735 (re_set_exception_catchpoint): Look for SDT probes.
6736
15a73f56
TT
67372013-04-15 Tom Tromey <tromey@redhat.com>
6738
6739 PR c++/10119:
6740 * break-catch-throw.c (exception_functions): New global.
6741 (gnu_v3_exception_catchpoint_ops): Move earlier.
6742 (struct exception_catchpoint): New.
6743 (classify_exception_breakpoint): Rewrite.
6744 (re_set_exception_catchpoint): New function.
6745 (handle_gnu_v3_exceptions): Return void. Use init_catchpoint.
6746 Allocate a struct exception_catchpoint.
6747 (catch_exception_command_1): Update.
6748 (initialize_throw_catchpoint_ops): Set 're_set' method.
6749
916703c0
TT
67502013-04-15 Tom Tromey <tromey@redhat.com>
6751
6752 * Makefile.in (SFILES): Add break-catch-throw.c
6753 (COMMON_OBS): Add break-catch-throw.o.
6754 * break-catch-throw.c: New file.
6755 * breakpoint.c: Move exception-catching code to new file.
6756 (ep_parse_optional_if_clause): No longer static.
6757 * breakpoint.h (ep_parse_optional_if_clause): Declare.
6758
6e72ca20
TT
67592013-04-15 Tom Tromey <tromey@redhat.com>
6760
6761 PR c++/9065:
6762 * NEWS: Update.
6763 * breakpoint.c (watchpoint_exp_is_const): Add OP_TYPEID.
6764 * c-exp.y (TYPEID): New token.
6765 (exp): Add new TYPEID productions.
6766 (ident_tokens): Add "typeid".
6767 * cp-abi.c (cplus_typeid, cplus_typeid_type): New functions.
6768 * cp-abi.h (cplus_typeid, cplus_typeid_type): Declare.
6769 (struct cp_abi_ops) <get_typeid, get_typeid_type>: New fields.
6770 * eval.c (evaluate_subexp_standard) <OP_TYPEID>: New case.
6771 * expprint.c (dump_subexp_body_standard) <OP_TYPEID>: New
6772 case.
6773 * gnu-v3-abi.c (std_type_info_gdbarch_data): New global.
6774 (build_std_type_info_type, gnuv3_get_typeid_type)
6775 (gnuv3_get_typeid): New functions.
6776 (init_gnuv3_ops): Initialize std_type_info_gdbarch_data. Set
6777 new fields on ABI object.
6778 * parse.c (operator_length_standard) <OP_TYPEID>: New case.
6779 * std-operator.def (OP_TYPEID): New.
6780
715c6909
TT
67812013-04-15 Tom Tromey <tromey@redhat.com>
6782
6783 * elfread.c (elf_symtab_read): Install versioned symbol under
6784 unversioned name as well.
6785
8de20a37
TT
67862013-04-15 Tom Tromey <tromey@redhat.com>
6787
6788 PR c++/11990:
6789 * c-lang.c (cplus_language_defn): Use gdb_demangle.
6790 * c-typeprint.c (c_type_print_base): Use gdb_demangle.
6791 * cp-support.c (mangled_name_to_comp): Use gdb_demangle.
6792 (gdb_demangle): New function.
6793 * cp-support.h (gdb_demangle): Declare.
6794 * dwarf2read.c (dwarf2_physname, fixup_partial_die)
6795 (dwarf2_name): Use gdb_demangle.
6796 * gdbtypes.c (check_stub_method): Use gdb_demangle.
6797 * gnu-v3-abi.c (gnuv3_rtti_type): Strip @plt and version
6798 suffixes from name.
6799 (gnuv3_print_method_ptr): Use gdb_demangle.
6800 * jv-lang.c (java_demangle): Use gdb_demangle.
6801 * jv-typeprint.c (java_type_print_base): Use gdb_demangle.
6802 * language.c (unk_lang_demangle): Use gdb_demangle.
6803 * symtab.c (symbol_find_demangled_name)
6804 (demangle_for_lookup): Use gdb_demangle.
6805
591f19e8
TT
68062013-04-15 Tom Tromey <tromey@redhat.com>
6807
6808 PR c++/12824:
6809 * NEWS: Update.
6810 * breakpoint.c (enum exception_event_kind) <EX_EVENT_RETHROW>:
6811 New constant.
6812 (classify_exception_breakpoint): New function.
6813 (print_it_exception_catchpoint, print_one_exception_catchpoint)
6814 (print_mention_exception_catchpoint)
6815 (print_recreate_exception_catchpoint, handle_gnu_v3_exceptions)
6816 (catch_exception_command_1): Handle "rethrow" catchpoint.
6817 (catch_rethrow_command): New function.
6818 (_initialize_breakpoint): Add "catch rethrow" command.
6819
4d40cad2
PM
68202013-04-15 Pierre Muller <muller@sourceware.org>
6821
6822 * contrib/ari/gdb_ari.sh (write_pc rule): Do not consider
6823 set_gdbarch_write_pc as deprecated anymore.
6824
30bcb456
JB
68252013-04-15 Joel Brobecker <brobecker@adacore.com>
6826
6827 * spu-tdep.c (spu_write_pc): Add empty line after local variable
6828 declarations.
6829
da9160e4
YQ
68302013-04-13 Yao Qi <yao@codesourcery.com>
6831
6832 * ctf.c (_initialize_ctf): Include "completer.h".
6833 Call add_target_with_completer instead of add_target.
6834
39ed5604
JK
68352013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
6836
6837 Fix GDB regression related to PR binutils/14813.
6838 * jit.c (mem_bfd_iovec_close): Return 0 for success.
6839 * minidebug.c (lzma_close): Add return value comment.
6840 * remote.c (remote_bfd_iovec_close): Return 0 for success.
6841 * solib-spu.c (spu_bfd_iovec_close): Likewise.
6842 * spu-linux-nat.c (spu_bfd_iovec_close): Likewise.
6843
68442013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
49369217
JK
6845
6846 * config.in: Regenerate.
6847
d521ce57
TT
68482013-04-12 Tom Tromey <tromey@redhat.com>
6849
6850 * dwarf2-frame.c (struct comp_unit) <dwarf_frame_buffer>: Now
6851 const.
6852 * dwarf2read.c (struct dwarf2_section_info) <buffer>: Now const.
6853 (struct die_reader_specs) <buffer>: Likewise.
6854 (die_reader_func_ftype): Make 'info_ptr' const.
6855 (struct line_header) <include_dirs, statement_program_start,
6856 statement_program_end>: Now const.
6857 (struct file_entry) <name>: Likewise.
6858 (struct partial_die_info) <sibling>: Likewise.
6859 (struct dwarf_block) <data>: Likewise.
6860 (dwarf2_read_section): Remove cast.
6861 (dwarf2_get_section_info): Make 'bufp' const.
6862 (read_index_from_section): Constify.
6863 (dw2_get_file_names_reader): Make 'info_ptr' const.
6864 (dw2_get_primary_filename_reader): Likewise.
6865 (read_comp_unit_head): Make 'info_ptr' and return type const.
6866 (read_and_check_comp_unit_head, read_and_check_type_unit_head):
6867 Likewise.
6868 (read_abbrev_offset): Constify.
6869 (dwarf2_create_include_psymtab): Make 'name' const.
6870 (create_debug_types_hash_table): Update.
6871 (read_cutu_die_from_dwo): Make 'result_info_ptr' const.
6872 (init_cutu_and_read_dies, init_cutu_and_read_dies_no_follow):
6873 Constify.
6874 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader)
6875 (load_partial_comp_unit_reader): Make 'info_ptr' const.
6876 (read_comp_units_from_section): Constify.
6877 (peek_abbrev_code, peek_die_abbrev, skip_children, skip_one_die)
6878 (locate_pdi_sibling, load_full_comp_unit_reader): Make 'info_ptr'
6879 const.
6880 (dwarf2_compute_name, setup_type_unit_groups): Constify.
6881 (create_dwo_debug_info_hash_table): Make 'info_ptr' const.
6882 (create_dwp_hash_table, dwarf2_ranges_read)
6883 (dwarf2_record_block_ranges): Constify.
6884 (read_die_and_children, read_die_and_siblings_1)
6885 (read_die_and_siblings): Make 'info_ptr' and 'new_info_ptr'
6886 const.
6887 (read_full_die_1, read_full_die): Make 'info_ptr' const.
6888 (abbrev_table_read_table): Constify.
6889 (load_partial_dies): Make 'info_ptr' const.
6890 (read_partial_die, read_attribute_value, read_attribute): Make
6891 'info_ptr' and return type const.
6892 (read_address, read_initial_length)
6893 (read_checked_initial_length_and_offset, read_offset)
6894 (read_offset_1, read_n_bytes, read_direct_string): Make 'buf'
6895 const.
6896 (read_direct_string): Make 'buf' and return type const.
6897 (read_indirect_string_at_offset, read_indirect_string_from_dwz)
6898 (read_indirect_string): Make return type const.
6899 (read_unsigned_leb128, read_signed_leb128): Make 'buf' const.
6900 (read_addr_index_from_leb128, dwarf2_read_addr_index_reader): Make
6901 'info_ptr' const.
6902 (read_str_index): Make return type const.
6903 (add_include_dir): Make 'include_dir' const.
6904 (add_file_name): Make 'name' const.
6905 (dwarf_decode_line_header): Constify.
6906 (psymtab_include_file_name): Make return type const.
6907 (dwarf_decode_lines_1, dwarf_decode_lines): Constify.
6908 (dwarf2_start_subfile): Make 'filename' const.
6909 (dwarf2_const_value_attr): Make 'bytes' const.
6910 (read_signatured_type_reader): Make 'info_ptr' const.
6911 (decode_locdesc): Constify.
6912 (skip_form_bytes): Make 'bytes', 'buffer_end', and return type
6913 const.
6914 (skip_unknown_opcode): Make 'opcode_definitions', 'mac_ptr',
6915 'mac_end', and return type const.
6916 (dwarf_parse_macro_header): Make 'mac_ptr' and return type const.
6917 (dwarf_decode_macro_bytes): Make 'mac_ptr', 'mac_end', and return
6918 type const.
6919 (per_cu_header_read_in): Constify.
6920 * symfile.h (dwarf2_get_section_info): Update.
6921
d47a1bc1
TT
69222013-04-12 Tom Tromey <tromey@redhat.com>
6923
6924 * symtab.h (struct general_symbol_info) <value.bytes>: Make const.
6925
6eaaf48b
EZ
69262013-04-12 Eli Zaretskii <eliz@gnu.org>
6927
fc4c25bf 6928 * NEWS: Mention "show configuration", --configuration.
6eaaf48b
EZ
6929 * top.c (print_gdb_configuration): New function, displays the
6930 details about GDB configure-time parameters.
6931 (print_gdb_version): Mention "show configuration".
6eaaf48b
EZ
6932 * cli/cli-cmds.c (show_configuration): New function.
6933 (_initialize_cli_cmds): Add the "show configuration" command.
6eaaf48b
EZ
6934 * main.c (captured_main) <print_configuration>: New static var.
6935 <long_options>: Use it.
6936 If --configuration was given, call print_gdb_configuration.
6937
b292c783
JK
69382013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6939 Pedro Alves <palves@redhat.com>
6940
6941 * Makefile.in (HAVE_NATIVE_GCORE_TARGET): New.
6942 (generated_files): Add gcore.
6943 (install-only, uninstall): Add gcore if HAVE_NATIVE_GCORE_TARGET or
6944 HAVE_NATIVE_GCORE_HOST.
6945 (gcore): New.
6946 * NEWS (Changes since GDB 7.6): Mention newly installed gcore.
6947 * config/alpha/alpha-osf3.mh, config/i386/fbsd.mh,
6948 config/i386/fbsd64.mh, config/i386/i386gnu.mh, config/i386/i386sol2.mh,
6949 config/i386/sol2-64.mh, config/mips/irix5.mh, config/mips/irix6.mh,
6950 config/powerpc/fbsd.mh, config/sparc/fbsd.mh, config/sparc/sol2.mh:
6951 Add HAVE_NATIVE_GCORE_HOST.
6952 * configure: Regenerate.
6953 * configure.ac (HAVE_NATIVE_GCORE_TARGET): New, set it, AC_SUBST it.
6954 New AC_SUBST fir GDB_TRANSFORM_NAME and GCORE_TRANSFORM_NAME. New
6955 AC_CONFIG_FILES for gcore.
6956 * configure.tgt: Add gdb_have_gcore to the initial comment. Set
6957 gdb_have_gcore.
6958 * gdb_gcore.sh: Rename to ...
6959 * gcore.in: ... here. Remove gcore.sh comment. Use GDB_TRANSFORM_NAME
6960 and GCORE_TRANSFORM_NAME substitutions.
6961
c96b3c4f
JK
6962 Fix parsing tabs in ${gdb_target_obs}.
6963 * configure.tgt (gdb_have_gcore): Replace case with for and if.
6964
d6cb50a2
JK
69652013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6966
6967 * remote.c (unpush_and_perror): Add output message final dot.
6968
cf2cb5ec
YQ
69692013-04-11 Yao Qi <yao@codesourcery.com>
6970
6971 * tracepoint.c (tfile_interp_line): Fit parameters line and
6972 utpp in one line.
6973
07293be4
JB
69742013-04-10 Joel Brobecker <brobecker@adacore.com>
6975
6976 * solib.c (solib_map_sections): Remove code overwriting
6977 SO->SO_NAME with the bfd's filename.
6978
f81d1120
PA
69792013-04-10 Pedro Alves <palves@redhat.com>
6980
6981 * cli/cli-decode.c (integer_unlimited_completer): New function.
6982 (add_setshow_integer_cmd, add_setshow_uinteger_cmd)
6983 (add_setshow_zuinteger_unlimited_cmd): Install the "unlimited"
6984 completer.
6985 * cli/cli-setshow.c: Include "cli/cli-utils.h".
6986 (is_unlimited_literal): New function.
6987 (do_set_command): Handle literal "unlimited" arguments.
6988 * frame.c (_initialize_frame) <set backtrace limit>: Document
6989 "unlimited".
6990 * printcmd.c (_initialize_printcmd) <set print
6991 max-symbolic-offset>: Add help text.
6992 * record-full.c (_initialize_record_full) <set record full
6993 insn-number-max>: Likewise.
6994 * record.c (_initialize_record) <set record
6995 instruction-history-size, set record function-call-history-size>:
6996 Add help text.
6997 * ser-tcp.c (_initialize_ser_tcp) <set tcp connect-timeout>: Add
6998 help text.
6999 * tracepoint.c (_initialize_tracepoint) <set trace-buffer-size>:
7000 Likewise.
7001 * source.c (_initialize_source) <set listsize>: Add help text.
7002 * utils.c (initialize_utils) <set height, set width>: Likewise.
7003 <set pagination>: Mention "set height unlimited".
7004 * valprint.c (_initialize_valprint) <set print elements, set print
7005 repeats>: Document "unlimited".
7006
2f9d54cf
PA
70072013-04-10 Pedro Alves <palves@redhat.com>
7008
7009 * cli/cli-cmds.c (quit_command): Call query_if_trace_running
7010 instead of disconnect_tracing.
7011 * infcmd.c (detach_command, disconnect_command): Call
7012 query_if_trace_running. Adjust.
7013 * top.c: Include "tracepoint.h".
7014 (quit_target): Delete. Contents moved ...
7015 (quit_force): ... here. Wrap each stage of teardown in
7016 TRY_CATCH. Call disconnect_tracing before detaching.
7017
393fd4c3
YQ
70182013-04-10 Hui Zhu <hui@codesourcery.com>
7019 Yao Qi <yao@codesourcery.com>
7020
7021 * configure.ac: Check libbabeltrace is installed.
7022 * config.in: Regenerate.
7023 * configure: Regenerate.
7024 * Makefile.in (LIBBABELTRACE): New.
7025 (CLIBS): Add LIBBABELTRACE.
7026 * ctf.c: Include "exec.h".
7027 (CTF_EVENT_ID_STATUS, CTF_EVENT_ID_TSV_DEF): New macros.
7028 (CTF_EVENT_ID_TP_DEF, ctf_save_write_int32): New macros.
7029 (ctf_save_metadata_header): Define new type aliases in
7030 metadata.
7031 (ctf_write_header): Define event type "tsv_def" and "tp_def"
7032 in metadata. Start a new faked packet for trace status.
7033 (ctf_write_status): Write trace status to CTF.
7034 (ctf_write_uploaded_tsv): Write TSV to CTF.
7035 (ctf_write_uploaded_tp): Write tracepoint definition to CTF.
7036 (ctf_write_definition_end): End the faked packet.
7037
7038 (ctx, ctf_iter, trace_dirname): New.
7039 (start_pos): New variable.
7040 (ctf_destroy, ctf_open_dir, ctf_open): New.
7041 (SET_INT32_FIELD, SET_ARRAY_FIELD, SET_STRING_FIELD): New
7042 macros.
7043 (ctf_read_tsv, ctf_read_tp, ctf_close, ctf_files_info): New.
7044 (ctf_fetch_registers, ctf_xfer_partial): New.
7045 (ctf_get_trace_state_variable_value): New.
7046 (ctf_get_tpnum_from_frame_event): New.
7047 (ctf_get_traceframe_address): New.
7048 (ctf_trace_find, ctf_has_stack): New.
7049 (ctf_has_registers, ctf_traceframe_info, init_ctf_ops): New.
7050 (ctf_get_trace_status, ctf_read_status): New.
7051 (_initialize_ctf): New.
7052 * tracepoint.c (get_tracepoint_number): New
7053 (get_uploaded_tsv): Remove 'static'.
5f8e0b8f 7054 (struct traceframe_info, trace_regblock_size): Move it to ...
393fd4c3
YQ
7055 * tracepoint.h: ... here.
7056 (get_tracepoint_number): Declare it.
7057 (get_uploaded_tsv): Declare it.
7058
7059 * NEWS: Mention new configure option.
7060
5c2b4418
HZ
70612013-04-10 Pedro Alves <palves@redhat.com>
7062 Hui Zhu <hui@codesourcery.com>
7063
7064 * breakpoint.c (dprintf_re_set): New.
7065 (initialize_breakpoint_ops): Set dprintf_breakpoint_ops re_set
7066 to dprintf_re_set.
7067
a5c66735
JB
70682013-04-09 Joel Brobecker <brobecker@adacore.com>
7069
7070 * configure.tgt (gdb_target_obs) <powerpc-*-aix* | rs6000-*-*>:
7071 Remove solib-svr4.o from the list.
7072
9e77999c
JB
70732013-04-09 Joel Brobecker <brobecker@adacore.com>
7074
7075 * varobj.c (update_dynamic_varobj_children) [!HAVE_PYTHON]:
7076 Use gdb_assert_not_reached instead of invalid boolean expression.
7077
1927e618
PA
70782013-04-09 Pedro Alves <palves@redhat.com>
7079
7080 * remote.c (unpush_and_perror): New function.
7081 (readchar, remote_serial_write): Use it.
7082
10782d74
MM
70832013-04-09 Markus Metzger <markus.t.metzger@intel.com>
7084
7085 * NEWS: Mention new btrace RSP packets.
7086
4c8429ef
TT
70872013-04-08 Tom Tromey <tromey@redhat.com>
7088
7089 * symmisc.c (dump_msymbols): Cast fprintf_filtered argument to
7090 long.
7091
8625fc1b
TT
70922013-04-08 Tom Tromey <tromey@redhat.com>
7093
7094 * maint.c (print_bfd_section_info): Print the section index.
7095 * symmisc.c (dump_msymbols): Print the section index.
7096
e27d198c
TT
70972013-04-08 Tom Tromey <tromey@redhat.com>
7098
7099 PR symtab/8424:
7100 * blockframe.c (find_pc_partial_function_gnu_ifunc): Check
7101 SYMBOL_SECTION, not SYMBOL_OBJ_SECTION.
7102 * breakpoint.c (resolve_sal_pc): Update.
7103 * elfread.c (elf_gnu_ifunc_record_cache): Update.
7104 * findvar.c (struct minsym_lookup_data) <objfile>: New field.
7105 (minsym_lookup_iterator_cb): Use it.
7106 (default_read_var_value): Update.
7107 * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline):
7108 Update.
7109 * infcmd.c (jump_command): Update.
7110 * linespec.c (minsym_found): Update.
7111 * maint.c (maintenance_translate_address): Update.
7112 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Update.
7113 (prim_record_minimal_symbol_full): Don't set SYMBOL_OBJ_SECTION.
7114 * parse.c (write_exp_msymbol): Update.
7115 * printcmd.c (address_info): Update.
7116 * psymtab.c (find_pc_sect_psymbol): Update.
7117 (fixup_psymbol_section): Check SYMBOL_SECTION, not
7118 SYMBOL_OBJ_SECTION.
7119 (add_psymbol_to_bcache): Correctly initialize SYMBOL_SECTION.
7120 Don't initialize SYMBOL_OBJ_SECTION.
7121 * spu-tdep.c (spu_catch_start): Update.
7122 * stabsread.c (define_symbol): Don't set SYMBOL_SECTION.
7123 * symmisc.c (dump_msymbols, print_symbol): Update.
7124 * symtab.c (fixup_section): Don't set 'obj_section'. Change
7125 how fallback section is computed.
7126 (fixup_symbol_section): Update.
7127 (find_pc_sect_symtab, find_function_start_sal, skip_prologue_sal):
7128 Update.
7129 (allocate_symbol, initialize_symbol, allocate_template_symbol):
7130 Initialize SYMBOL_SECTION.
7131 * symtab.h (struct general_symbol_info) <section>: Update comment.
7132 <obj_section>: Remove.
7133 (SYMBOL_OBJ_SECTION): Add 'objfile' argument. Rewrite.
7134 (SYMBOL_OBJFILE): New macro.
7135
e6dc44a8
TT
71362013-04-08 Tom Tromey <tromey@redhat.com>
7137
7138 * coffread.c (record_minimal_symbol): Update.
7139 * dbxread.c (record_minimal_symbol): Update.
7140 * elfread.c (record_minimal_symbol): Update.
7141 * machoread.c (macho_symtab_add_minsym): Update.
7142 * mdebugread.c (record_minimal_symbol, parse_partial_symbols):
7143 Update.
7144 * minsyms.c (prim_record_minimal_symbol): Update.
7145 (prim_record_minimal_symbol_full): Remove 'bfd_section'
7146 argument.
7147 (prim_record_minimal_symbol_and_info): Likewise.
7148 * minsyms.h (prim_record_minimal_symbol_full)
7149 (prim_record_minimal_symbol_and_info): Update.
7150 * symtab.c (allocate_symbol, initialize_symbol)
7151 (allocate_template_symbol): Initialize SYMBOL_SECTION.
7152 * xcoffread.c (record_minimal_symbol, scan_xcoff_symtab):
7153 Update.
7154
36192a8d
TT
71552013-04-08 Tom Tromey <tromey@redhat.com>
7156
7157 PR symtab/8423:
7158 * solib-som.c (som_solib_section_offsets): Use BFD section
7159 indices. Set offsets for all sections.
7160 * somread.c (som_symtab_read): Compute BFD section for
7161 symbol. Use prim_record_minimal_symbol_and_info.
7162 (som_symfile_read): Fix comment.
7163 (struct find_section_offset_arg): New.
7164 (find_section_offset, set_section_index): New functions.
7165 (som_symfile_offsets): Use set_section_index to compute
7166 section indices.
7167
65cf3563
TT
71682013-04-08 Tom Tromey <tromey@redhat.com>
7169
7170 * coffread.c (cs_to_section): Use gdb_bfd_section_index.
7171 * elfread.c (record_minimal_symbol, elf_symtab_read): Use
7172 gdb_bfd_section_index.
7173 * gdb_bfd.c (gdb_bfd_section_index, gdb_bfd_count_sections):
7174 New functions.
7175 * gdb_bfd.h (gdb_bfd_section_index, gdb_bfd_count_sections):
7176 Declare.
7177 * machoread.c (macho_symtab_add_minsym, macho_symfile_offsets):
7178 Update.
7179 * objfiles.c (add_to_objfile_sections_full): New function.
7180 (add_to_objfile_sections): Use it.
7181 (build_section_table): Rewrite.
7182 (objfile_relocate1): Use gdb_bfd_section_index. Update.
7183 * objfiles.h (obj_section_offset): Use gdb_bfd_section_index.
7184 (struct objfile) <sections>: Update comment.
7185 (ALL_OBJFILE_OSECTIONS): Skip sections where the_bfd_section
7186 is NULL.
7187 (ALL_OBJSECTIONS): Use it.
7188 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
7189 * solib-frv.c (frv_relocate_main_executable): Update.
7190 * solib-target.c (solib_target_relocate_section_addresses):
7191 Use gdb_bfd_section_index.
7192 * symfile.c (build_section_addr_info_from_section_table):
7193 Use gdb_bfd_section_index.
7194 (build_section_addr_info_from_bfd, place_section): Likewise.
7195 * symtab.c (fixup_section): Update.
7196 * xcoffread.c (find_targ_sec): Use gdb_bfd_section_index.
7197
7cbd4a93
TT
71982013-04-08 Tom Tromey <tromey@redhat.com>
7199
7200 * minsyms.h (struct bound_minimal_symbol): New.
7201 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
7202 Remove objfile argument.
7203 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
7204 Return bound_minimal_symbol.
7205 * minsyms.c (lookup_minimal_symbol_by_pc_1)
7206 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
7207 Return bound_minimal_symbol.
7208 (in_gnu_ifunc_stub): Update.
7209 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
7210 Remove 'objfile_p' argument.
7211 (lookup_solib_trampoline_symbol_by_pc): Update.
7212 * ada-tasks.c, amd64-windows-tdep.c, arm-tdep.c,
7213 arm-wince-tdep.c, block.c, blockframe.c, breakpoint.c, btrace.c,
7214 c-valprint.c, dwarf2loc.c, elfread.c, frame.c, frv-tdep.c,
7215 glibc-tdep.c, gnu-v2-abi.c, gnu-v3-abi.c, hppa-hpux-tdep.c,
7216 i386-tdep.c, ia64-tdep.c, infcall.c, infcmd.c, jit.c,
7217 linux-fork.c, m32c-tdep.c, m68hc11-tdep.c, maint.c,
7218 mips-tdep.c, p-valprint.c, parse.c, ppc-linux-tdep.c,
7219 ppc-sysv-tdep.c, printcmd.c, rs6000-tdep.c, sh64-tdep.c,
7220 stack.c, symtab.c, tui/tui-disasm.c: Update.
7221
f85f34ed
TT
72222013-04-08 Tom Tromey <tromey@redhat.com>
7223
7224 * ada-lang.c (ada_decode_symbol): Check and set 'ada_mangled'.
7225 Use symbol's obstack, not an objfile.
7226 * coffread.c (process_coff_symbol): Update.
7227 * dwarf2read.c (fixup_go_packaging, new_symbol_full): Update.
7228 * jv-lang.c (add_class_symbol): Update.
7229 * mdebugread.c (new_symbol): Update.
7230 * minsyms.c (prim_record_minimal_symbol_full)
7231 (terminate_minimal_symbol_table): Update.
7232 * psymtab.c (add_psymbol_to_bcache): Clear entire symbol. Update.
7233 * stabsread.c (define_symbol, read_enum_type): Update.
7234 * symtab.c (symbol_set_demangled_name, symbol_get_demangled_name):
7235 Handle Ada specially.
7236 (symbol_set_language): Add 'obstack' argument.
7237 (symbol_set_names): Update.
7238 (symbol_natural_name, symbol_demangled_name): Always use
7239 ada_decode_symbol.
7240 * symtab.h (struct general_symbol_info)
7241 <language_specific::obstack>: New field.
7242 <ada_mangled>: New field.
7243 (SYMBOL_SET_LANGUAGE): Add 'obstack' argument.
7244 (symbol_set_language): Update.
7245
ccde22c0
TT
72462013-04-08 Tom Tromey <tromey@redhat.com>
7247
7248 * symtab.c (symbol_init_cplus_specific, symbol_set_demangled_name):
7249 Take an obstack, not an objfile.
7250 (symbol_set_names): Update.
7251 * symtab.h (symbol_set_demangled_name): Update.
7252
e623cf5d
TT
72532013-04-08 Tom Tromey <tromey@redhat.com>
7254
7255 * coffread.c (process_coff_symbol, coff_read_enum_type): Call
7256 allocate_symbol.
7257 * dwarf2read.c (fixup_go_packaging): Call allocate_symbol.
7258 (read_func_scope): Call allocate_template_symbol.
7259 (new_symbol_full): Call allocate_symbol.
7260 * jit.c (finalize_symtab): Call allocate_symbol.
7261 * jv-lang.c (add_class_symbol): Call allocate_symbol.
7262 * mdebugread.c (parse_symbol, new_block): Call allocate_symbol.
7263 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
7264 (common_block_end): Call allocate_symbol.
7265 * symtab.c (allocate_symbol, initialize_symbol)
7266 (allocate_template_symbol): New functions.
7267 * symtab.c (allocate_symbol, initialize_symbol)
7268 (allocate_template_symbol): Declare.
7269 * xcoffread.c (process_xcoff_symbol): Call initialize_symbol.
7270
f6de8ec2
PA
72712013-04-08 Pedro Alves <palves@redhat.com>
7272 Keith Seitz <keiths@redhat.com>
7273
7274 * breakpoint.c (create_breakpoint): Rename
7275 "parse_condition_and_thread" parameter to "parse_arg". Update
7276 describing comment. If !PARSE_ARG, then error out if ARG is not
7277 the empty string after extracting the location.
7278 * breakpoint.h (create_breakpoint): Rename
7279 "parse_condition_and_thread" parameter to "parse_arg".
7280
f65ce5fb
AR
72812013-04-08 Aleksandar Ristovski <aristovski@qnx.com
7282
7283 * solib-svr4.c (lm_addr_check): Add const qualifier to 'so' arg.
7284
cc5925ad
YQ
72852013-04-07 Yao Qi <yao@codesourcery.com>
7286
7287 * remote.c (remote_trace_find): Change type of parameters 'addr1'
7288 and 'addr2' to CORE_ADDR.
7289 * target.c (update_current_target): Update.
7290 * target.h (struct target_ops) <to_trace_find>: Change parameter
7291 type to CORE_ADDR.
7292 * tracepoint.c (tfind_1): Change type of parameters 'addr1' and
7293 'addr2' to CORE_ADDR.
7294 (tfile_trace_find): Likewise.
7295 (tfile_get_traceframe_address): Change return type to CORE_ADDR.
7296 Change local variable 'addr' to type CORE_ADDR.
7297 * tracepoint.h (tfind_1): Update declaration.
7298
d9ac0664
EZ
72992013-04-06 Eli Zaretskii <eliz@gnu.org>
7300
7301 * windows-nat.c (windows_get_absolute_argv0): Move from here...
7302 * mingw-hdep.c (windows_get_absolute_argv0): ...to here.
7303 Include main.h.
7304
7305 * windows-nat.h (windows_get_absolute_argv0): Move prototype from
7306 here...
7307 * main.h (windows_get_absolute_argv0): ...to here.
7308
02142a6c
DE
73092013-04-05 Doug Evans <dje@google.com>
7310
7311 * dwarf2read.c (struct dwarf2_per_objfile): Tweak comment.
7312 (read_cutu_die_from_dwo): Add comments.
7313 (read_structure_type): Update comment.
7314 (read_enumeration_type, read_namespace_type): Update comment.
7315 (read_die_type, get_die_type_at_offset, get_die_type): Update comment.
7316
43662968
JK
73172013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7318
7319 Convert man pages to texinfo, new gdbinit.5 texinfo page.
7320 * Makefile.in (gdb.z): Remove.
7321 (install-only): Remove $(man1dir) and gdb.1 installation.
7322 * gdb.1: Remove.
7323
9ead1b84
JK
73242013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7325
7326 Fix compatibility with Linux kernel 3.8.3.
7327 * linux-tdep.c (linux_find_memory_regions_full): Move variable number
7328 to more inner block. Remove parsing of NUMBER from outer block.
7329 Parse NUMBER only if KEYWORD has been identified.
7330
d1794952
JK
73312013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7332
7333 Fix variable name shadowing.
7334 * linux-tdep.c (linux_find_memory_regions_full): Rename outer variable
7335 filename to mapsfilename and update its uses.
7336
9025569e
EZ
73372013-04-05 Eli Zaretskii <eliz@gnu.org>
7338
7339 * Makefile.in (TAGS): Avoid warning from etags when $GDB_NM_FILE is
7340 empty. See http://sourceware.org/ml/gdb-patches/2012-08/msg00504.html
7341 and http://sourceware.org/ml/gdb-patches/2013-04/msg00055.html for
7342 details of the problem.
7343
c9a6ce02
PA
73442013-04-04 Pedro Alves <palves@redhat.com>
7345 Hui Zhu <hui@codesourcery.com>
7346
7347 * breakpoint.c (validate_commands_for_breakpoint): If validating a
7348 tracepoint, reset its STEP_COUNT and call validate_actionline.
7349
5ff888ce
DE
73502013-04-03 Doug Evans <dje@google.com>
7351
bf6af496
DE
7352 * dwarf2read.c (read_die_and_siblings_1): Renamed from
7353 read_die_and_siblings.
7354 (read_die_and_siblings): New function.
7355 (read_cutu_die_from_dwo): Dump die if requested.
7356 (read_die_and_children): Call read_full_die_1 and
7357 read_die_and_siblings_1.
7358 (read_full_die): Dump die if requested.
7359
7360 * dwarf2read.c (read_comp_units_from_section): Add debugging printf.
7361
0ac5b59e
DE
7362 * dwarf2read.c (struct dwo_file): New member comp_dir.
7363 Rename member name to dwo_name. All uses updated.
7364 (hash_dwo_file): Include comp_dir in computation.
7365 (eq_dwo_file): Ditto.
7366 (lookup_dwo_file_slot): New arg comp_dir. All callers updated.
7367 (create_dwo_in_dwp, lookup_dwo_in_dwp, open_and_init_dwo_file): Ditto.
7368
5ff888ce
DE
7369 * psymtab.c (read_psymtabs_with_fullname): Don't call
7370 psymtab_to_fullname if the basenames are different.
7371
ec83d211
JK
73722013-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7373
7374 * NEWS (Changes in GDB 7.6): Update the data-disassemble for "fullname".
7375 New entry about "fullname" presence.
7376
4f4352f7
PA
73772013-04-03 Pedro Alves <palves@redhat.com>
7378
7379 * NEWS: Mention x86_64/Cygwin as new native configuration.
7380
3d1d5ea3
DE
73812013-04-02 Doug Evans <dje@google.com>
7382
7383 * dwarf2read.c (read_structure_type): Fix typo in comment.
7384
be9a8770
PA
73852013-04-02 Pedro Alves <palves@redhat.com>
7386
7387 * NEWS: Mention "set/show debug aarch64", "set/show debug
7388 coff-pe-read" and "set/show debug mach-o".
7389
a46c1e42
PA
73902013-04-02 Pedro Alves <palves@redhat.com>
7391
7392 * NEWS: Mention "set/show remote trace-buffer-size-packet".
7393
3ad18b19
EZ
73942013-04-02 Eli Zaretskii <eliz@gnu.org>
7395
7396 * Makefile.in (HFILES_NO_SRCDIR): Remove call-cmds.h.
7397 gdb_string.h is now in common/.
7398
e9f1758d
PA
73992013-04-02 Pedro Alves <palves@redhat.com>
7400
7401 * NEWS: Move "set debug notification" and "set trace-buffer-size"
7402 under "New options".
7403
049dc89b
JK
74042013-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7405
7406 Revert this patch:
7407 PR gdb/15275
7408 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
7409
c33e31fd
PA
74102013-04-02 Pedro Alves <palves@redhat.com>
7411
7412 PR gdb/15275
7413
7414 * remote.c (send_interrupt_sequence): Use remote_serial_write.
7415 (remote_serial_write): New function.
7416 (putpkt_binary, getpkt_or_notif_sane_1): Use remote_serial_write.
7417
ea5f3910
JW
74182013-04-01 Jiong Wang <jiwang@tilera.com>
7419
7420 * NEWS: Mention TILE-Gx in "New native configurations" and
f5aee5ee 7421 "New targets" sections.
ea5f3910 7422
5c6fa7ab
DE
74232013-04-01 Doug Evans <dje@google.com>
7424
c0f78cd4
DE
7425 * dwarf2read.c (lookup_signatured_type_at_offset): Delete.
7426 (process_enumeration_scope): Simplify.
7427
0186c6a7
DE
7428 * dwarf2read.c (struct dwarf2_per_cu_data): Move member
7429 type_unit_group ...
7430 (struct signatured_type): ... to here.
7431 (sig_type_ptr): New typedef.
7432 (type_unit_group): Delete member 't.first_cu'. Move member 'tus'
7433 out of union 't'. All uses updated.
7434 (dw2_get_file_names_reader): Assert not called for a type unit.
7435 (dw2_get_file_names): Assert not called for a type unit or type
7436 unit group.
7437 (build_type_psymtabs_reader): Assert called for a type unit.
7438 (build_type_psymtab_dependencies): Assert called for a type unit group.
7439
5c6fa7ab
DE
7440 * dwarf2read.c (free_dwo_file): Add comment.
7441 (dwarf2_per_objfile_free): Unref dwp bfd.
7442
b3c0ad67 74432013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
cebca8c1
AR
7444
7445 * coff-pe-read.c (add_pe_exported_sym): Remove unused 'dll_name_len'.
7446 (add_pe_forwarded_sym): Remove unused 'section', 'dll_name_len'.
7447 (read_pe_exported_syms): Remove unused 'exportix'.
7448 (pe_text_section_offset): Remove unused 'opthdr_ofs', 'num_entries',
7449 'export_rva', 'export_size', 'expptr', 'exp_funcbase', 'expdata',
7450 'erva', 'name_rvas', 'ordinals', 'nexp', 'ordbase', 'dll_name'.
7451
e2df1547
AR
74522013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
7453
7454 * breakpoint.c (parse_cond_to_aexpr): Remove unused 'old_chain'.
7455 (print_it_watchpoint): Remove unused 'bl'.
7456 (say_where): Remove unused 'uiout'.
7457 (bpstat_remove_breakpoint_callback): Remove unused 'uiout'.
7458 (bkpt_breakpoint_hit): Remove unused 'b'.
7459 (internal_bkpt_print_it): Remove unused 'uiout'.
7460 * buildsym.c (augment_type_symtab): Remove unused 'i'.
7461
d81e75c0
TD
74622013-03-31 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
7463
7464 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_float): New function.
7465 (ppc64_sysv_abi_push_dummy_call): Handle complex arguments.
7466
5a8b3f62
DE
74672013-03-29 Doug Evans <dje@google.com>
7468
ab5088bf
DE
7469 * dwarf2read.c (open_dwo_file): Renamed from open_dwop_file.
7470 Delete arg is_dwp. All callers updated.
7471 (open_dwp_file): New function.
7472 (open_and_init_dwp_file): Call it.
7473 (get_dwp_file): New function.
7474 (lookup_dwo_cutu): Call it.
7475
a8ad1e57
DE
7476 * dwarf2read.c (open_and_init_dwp_file): Remove incorrect, and
7477 unnecessary, cleanup.
7478
6296d8c1
DE
7479 * dwarf2read.c (lookup_dwo_cutu): Improve complaint text.
7480
b0c7bfa9
DE
7481 * dwarf2read.c (read_cutu_die_from_dwo): New function.
7482 (lookup_dwo_unit): New function.
7483 (init_cutu_and_read_dies): Move DWO handling to new functions.
7484
c88ee1f0
DE
7485 * dwarf2read.c (struct signatured_type): Tweak comment.
7486 (struct dwo_unit): Tweak comment.
7487 (create_debug_types_hash_table): Tweak comment. Reformat long line.
7488 (create_dwo_debug_info_hash_table): Tweak comment.
7489 (dwarf2_per_cu_offset_and_type): Tweak comment.
7490
5a8b3f62
DE
7491 * dwarf2read.c (lookup_signatured_type): Remove complaint about
7492 missing .debug_types section.
7493
9852c492
YQ
74942013-03-29 Yao Qi <yao@codesourcery.com>
7495
7496 * corelow.c: Include "completer.h".
7497 (_initialize_corelow): Call add_target_with_completer with
7498 argument 'filename_completer'.
7499 * tracepoint.c: Likewise.
7500 * exec.c (_initialize_exec): Likewise.
7501 * target.c (add_target): Rename to ...
7502 (add_target_with_completer): ... this. Call set_cmd_completer
7503 if parameter completer is not NULL.
7504 (add_target): New.
7505 * target.h: Include "command.h".
7506 (add_target_with_completer): Declare it.
7507
af312be7
JB
75082013-03-28 Joel Brobecker <brobecker@adacore.com>
7509
7510 * coffread.c (is_import_fixup_symbol): New function.
7511 (record_minimal_symbol): Use is_import_fixup_symbol to
7512 detect import fixup symbols, and discard them.
7513
8a0459fd
DE
75142013-03-28 Doug Evans <dje@google.com>
7515
0349ea22
DE
7516 * dwarf2read.c (create_debug_types_hash_table): Don't allocate the
7517 types hash table until we know we need it.
7518
f652bce2
DE
7519 * dwarf2read.c (create_addrmap_from_index): Complain about bad CU
7520 index numbers.
7521
e4a48d9d
DE
7522 * dwarf2read.c (dw2_get_file_names): Delete arg "objfile".
7523 All callers updated.
7524 (dw2_print_stats): Print #read CUs too.
7525 (dump_die_shallow): Print signatured types better.
7526
8a0459fd
DE
7527 * dwarf2read.c (struct dwarf2_per_cu_data): Rename member
7528 info_or_types_section to section. All uses updated.
7529 (struct dwo_unit): Ditto.
7530
bd3eecc3
PA
75312013-03-28 Pedro Alves <palves@redhat.com>
7532
7533 * NEWS (New options): New section.
7534 (New options): Mention set/show remote trace-status-packet.
7535 * remote.c (PACKET_qTStatus): New enumeration value.
7536 (remote_get_trace_status): Skip sending qTStatus if the packet is
7537 disabled. Use packet_ok.
7538 (_initialize_remote): Register a configuration command for
7539 qTStatus packet.
7540
41245087
DE
75412013-03-28 Doug Evans <dje@google.com>
7542
7edbb660
DE
7543 * symfile.c (find_separate_debug_file): Add comment.
7544 (terminate_after_last_dir_separator): Tweak comment.
7545
0018ea6f
DE
7546 * dwarf2read.c (create_partial_symtab): Add forward decl.
7547 (create_partial_symtab): Move to be closer to other psymtab functions.
7548 (process_psymtab_comp_unit_reader, process_psymtab_comp_unit): Ditto.
7549
ca69b9e6
DE
7550 * dwarf2read.c (dwarf2_physname): Move declaration to better spot.
7551 (compute_symtab_includes): Remove unnecessary forward declaration.
7552 (die_needs_namespace): Add comment marking group of functions for
7553 dwarf2 name computation.
7554
a9375afe
DE
7555 * typeprint.c (_initialize_typeprint): Improve type help text.
7556
41245087
DE
7557 * python/python.c (finish_python_initialization): Provide suggestion
7558 for how to tell gdb to find its python files.
7559
7f7cc265
PA
75602013-03-28 Pedro Alves <palves@redhat.com>
7561
7562 PR gdb/15294
7563
7564 * source.c (_initialize_source): Change back "set listsize" to an
7565 integer command.
7566
ec21308c
JK
75672013-03-27 Gareth McMullin <gareth@blacksphere.co.nz>
7568
7569 PR gdb/15275
7570 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
7571
840a9a1f
PA
75722013-03-27 Pedro Alves <palves@redhat.com>
7573
7574 * top.c (history_size): Rename to ...
7575 (history_size_setshow_var): ... this. Add comment.
7576 (show_commands): Use readline's 'history_length' instead of
7577 computing the history length by calling history_get in a loop.
7578 (set_history_size_command): Error out for sizes over INT_MAX.
7579 Restore previous history size on invalid size.
7580 (init_history): If HISTSIZE is negative, leave the history size as
7581 zero. Add comments.
7582 (init_main): Adjust.
7583
826ecc4d
PA
75842013-03-27 Pedro Alves <palves@redhat.com>
7585
7586 * coff-pe-read.c (_initialize_coff_pe_read): Rename "set debug
7587 coff_pe_read" command to "set debug coff-pe-read".
7588
0ccfeeae
MM
75892013-03-27 Markus Metzger <markus.t.metzger@intel.com>
7590
7591 * record.c (command_size_to_target_size): Fix size comparison.
7592 Change parameter type from pointer to integer to integer.
7593 Update all users.
7594
40653b35
PM
75952013-03-27 Pierre Muller <muller@sourceware.org>
7596
7597 * windows-nat.c (handle_output_debug_string): Avoid typecast
7598 from integer of different size warning.
7599
c62fa0e2
JB
76002013-03-26 Joel Brobecker <brobecker@adacore.com>
7601
7602 * windows-nat.c (handle_output_debug_string): Add empty line
7603 after local block variable definition.
7604
2c619be2
PA
76052013-03-26 Pedro Alves <palves@redhat.com>
7606
7607 * ser-tcp.c (wait_for_connect): Make 'polls' parameter unsigned.
7608 (net_open): Make 'polls' local unsigned.
7609
1b493192
PA
76102013-03-26 Pedro Alves <palves@redhat.com>
7611
7612 * remote.c (_initialize_remote): Make "set remoteaddresssize"
7613 a zuinteger command instead of uinteger.
7614
7ee70bf5
PA
76152013-03-26 Pedro Alves <palves@redhat.com>
7616
7617 * record-full.c (record_full_insn_num): Make it unsigned.
7618 (record_full_check_insn_num, record_full_message)
7619 (record_full_registers_change, record_full_xfer_partial): Remove
7620 record_full_insn_max_num check (it's always != 0).
7621 (record_full_info, record_full_restore): Use %u as format string.
7622 (): Use %u as format string.
7623 (set_record_full_insn_max_num): Remove record_full_insn_max_num
7624 check (it's always != 0).
7625
dfd1f9bb
PA
76262013-03-26 Pedro Alves <palves@redhat.com>
7627
7628 * dcache.c (_initialize_dcache): Make the "set dcache line-size"
7629 and "set dcache size" commands zuinteger instead of uinteger.
7630
addb4faf
PA
76312013-03-26 Pedro Alves <palves@redhat.com>
7632
7633 * cris-tdep.c (_initialize_cris_tdep): Make the "set cris-version"
7634 command zuinteger instead of uinteger.
7635
b75bf488
PA
76362013-03-26 Pedro Alves <palves@redhat.com>
7637
7638 * coff-pe-read.c (_initialize_coff_pe_read): Make the command
7639 zuinteger instead of uinteger.
7640
42c634cb
PA
76412013-03-26 Pedro Alves <palves@redhat.com>
7642
7643 * record.c (record_insn_history_size_setshow_var)
7644 (record_call_history_size_setshow_var): New globals.
7645 (command_size_to_target_size): New function.
7646 (cmd_record_insn_history, cmd_record_call_history): Use
7647 command_size_to_target_size instead of cast.
7648 (validate_history_size, set_record_insn_history_size)
7649 (set_record_call_history_size): New functions.
7650 (_initialize_record): Install set_record_insn_history_size and
7651 set_record_call_history_size as "set" hooks of "set record
7652 instruction-history-size" and "set record
7653 function-call-history-size".
7654
1fb2e2b5
PA
76552013-03-26 Pedro Alves <palves@redhat.com>
7656
7657 * top.c (gdb_rl_operate_and_get_next): Replace max_input_history
7658 use with history_max_entries use. Remove FIXME note.
7659
99c819ee
MM
76602013-03-26 Markus Metzger <markus.t.metzger@intel.com>
7661
7662 * record-btrace.c (record_btrace_close): Call
7663 record_btrace_auto_disable.
7664
9f9e404c
JB
76652013-03-25 Joel Brobecker <brobecker@adacore.com>
7666
7667 * rs6000-nat.c (fixup_breakpoints): Delete declaration.
7668
ebcdfe33
DE
76692013-03-25 Doug Evans <dje@google.com>
7670
7671 * contrib/cc-with-tweaks.sh: Check exit code of dwp.
7672
24955f63
TT
76732013-03-25 Tom Tromey <tromey@redhat.com>
7674
7675 PR symtab/11462:
7676 * c-exp.y (exp): Add new productions for destructors after '.' and
7677 '->'.
7678 (write_destructor_name): New function.
7679
fce632b6
TT
76802013-03-25 Tom Tromey <tromey@redhat.com>
7681
7682 PR c++/9197:
7683 * opencl-lang.c (evaluate_subexp_opencl) <STRUCTOP_STRUCT>: Use
7684 value_struct_elt, not lookup_struct_elt_type.
7685 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
7686 STRUCTOP_PTR>: Use value_struct_elt, not lookup_struct_elt_type.
7687 * expression.h (EVAL_AVOID_SIDE_EFFECTS): Update comment.
7688
a4341769
YQ
76892013-03-25 Yao Qi <yao@codesourcery.com>
7690
7691 * ctf.c [USE_WIN32API]: Undef 'mkdir' and use 'mkdir'
7692 instead of '_mkdir'.
7693
b5981e5a
EZ
76942013-03-23 Eli Zaretskii <eliz@gnu.org>
7695
7696 * windows-nat.c (windows_get_absolute_argv0): New function.
7697 * windows-nat.h: Add its prototype.
7698
7699 * main.c (get_init_files): Use filename_ncmp instead of strncmp.
7700 Use IS_DIR_SEPARATOR instead of looking for a character inside
7701 SLASH_STRING. Include filenames.h.
7702 (captured_main) [__MINGW32__]: Make argv[0] absolute, so that
7703 relocate_gdb_directory works when passed gdb_program_name.
7704 Include windows-nat.h.
7705
598d3636
JK
77062013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7707
7708 * exceptions.h (enum errors): New entry TARGET_CLOSE_ERROR.
7709 * remote.c (trace_error): Remove the special handling of '2'.
7710 (readchar) <SERIAL_EOF>
7711 (readchar) <SERIAL_ERROR>
7712 (getpkt_or_notif_sane_1): Use TARGET_CLOSE_ERROR for them.
7713 (remote_get_trace_status): Call throw_exception if EX is
7714 TARGET_CLOSE_ERROR.
7715 * utils.c (perror_with_name): Rename to ...
7716 (throw_perror_with_name): ... here. New parameter errcode, describe it
7717 in the function comment.
7718 (perror_with_name): New function wrapper.
7719 * utils.h (enum errors): New stub declaration.
7720 (throw_perror_with_name): New declaration.
7721
82b821e9
PA
77222013-03-22 Pedro Alves <palves@redhat.com>
7723 Yao Qi <yao@codesourcery.com>
7724 Mark Kettenis <kettenis@gnu.org>
7725
7726 * cli/cli-setshow.c (do_set_command) <var_uinteger>:
7727 Don't let the user set the value to UINT_MAX directly.
7728 <var_integer>: Don't let the user set the value to INT_MAX
7729 directly.
7730
78a095c3
JK
77312013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7732
7733 * remote.c (remote_unpush_target): New function.
7734 (remote_open_1): Remove two pop_target calls, update one comment, add
7735 comment to target_preopen call. Replace pop_target call by
7736 remote_unpush_target call.
7737 (interrupt_query, readchar, getpkt_or_notif_sane_1): Replace
7738 pop_target calls by remote_unpush_target calls.
7739
3e74e146
PA
77402013-03-22 Pedro Alves <palves@redhat.com>
7741
7742 * linux-nat.c (linux_child_follow_fork): Don't call
7743 linux_enable_event_reporting.
7744 (linux_handle_extended_wait): Don't call
7745 linux_enable_event_reporting.
7746
a2213dca
PA
77472013-03-22 Pedro Alves <palves@redhat.com>
7748
7749 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Define INSN macro,
7750 use it to rewrite the trampoline buffers with type gdb_byte[], and
7751 undefine the macro. Remove char* cast.
7752
bd712aed
DE
77532013-03-21 Doug Evans <dje@google.com>
7754
7755 New commands "mt set per-command {space,time,symtab} {on,off}".
7756 * NEWS: Add entry.
7757 * event-top.c: #include "maint.h".
7758 * main.c: #include "maint.h".
7759 * maint.c: #include <sys/time.h>, <time.h>, block.h, top.h,
7760 timeval-utils.h, maint.h, cli/cli-setshow.h.
7761 (per_command_time, per_command_space): New static globals.
7762 (per_command_symtab): New static global.
7763 (per_command_setlist, per_command_showlist): New static globals.
7764 (struct cmd_stats): Move here from utils.c.
7765 (set_per_command_time): Renamed from set_display_time in utils.c
7766 and moved here. All callers updated.
7767 (set_per_command_space): Renamed from set_display_space in utils.c
7768 and moved here. All callers updated.
7769 (count_symtabs_and_blocks): New function.
7770 (report_command_stats): Moved here from utils.c. Add support for
7771 printing symtab stats. Only print data if enabled before command
7772 executed.
7773 (make_command_stats_cleanup): Ditto.
7774 (sert_per_command_cmd, show_per_command_cmd): New functions.
7775 (_initialize_maint_cmds): Add new commands
7776 mt set per-command {space,time,symtab} {on,off}.
7777 * maint.h: New file.
7778 * top.c: #include "maint.h".
7779 * utils.c (reset_prompt_for_continue_wait_time): New function.
7780 (get_prompt_for_continue_wait_time): New function.
7781 * utils.h (reset_prompt_for_continue_wait_time): Declare
7782 (get_prompt_for_continue_wait_time): Declare.
7783 (make_command_stats_cleanup): Moved to maint.h.
7784 (set_display_time, set_display_space): Moved to maint.h and renamed
7785 to set_per_command_time, set_per_command_space.
7786 * cli/cli-setshow.c (parse_cli_boolean_value): Renamed from
7787 parse_binary_operation and made non-static. Don't call error,
7788 just return an error marker. All callers updated.
7789 * cli/cli-setshow.h (parse_cli_boolean_value): Declare.
7790
d76488d8
TT
77912013-03-21 Tom Tromey <tromey@redhat.com>
7792
7793 * symfile.c (alloc_section_addr_info): Update header. Don't set
7794 'num_sections' field.
7795 (build_section_addr_info_from_section_table): Set 'num_sections'.
7796 (build_section_addr_info_from_bfd): Likewise.
7797 (build_section_addr_info_from_objfile): Remove dead loop
7798 condition.
7799 (free_section_addr_info): Unconditionally call xfree.
7800 (relative_addr_info_to_section_offsets, addrs_section_sort)
7801 (addr_info_make_relative, syms_from_objfile_1): Remove dead loop
7802 condition.
7803 (syms_from_objfile_1): Remove dead 'if' condition. Check
7804 'num_sections'.
7805 (add_symbol_file_command): Set 'num_sections'.
7806 * symfile-mem.c (symbol_file_add_from_memory): Set
7807 'num_sections'.
7808 * somread.c (som_symfile_offsets): Remove dead loop condition.
7809 * machoread.c (macho_symfile_offsets): Remove dead 'if'.
7810 * jit.c (jit_bfd_try_read_symtab): Set 'num_sections'.
7811
a72e5169 78122013-03-21 Tom Tromey <tromey@redhat.com>
92bc6a20
TT
7813
7814 * tracepoint.h (decode_agent_options): Add 'trace_string'
7815 argument.
7816 * tracepoint.c (decode_agent_options): Add 'trace_string'
7817 argument.
7818 (validate_actionline): Update.
7819 (collect_symbol): Add 'trace_string' argument.
7820 (struct add_local_symbols_data) <trace_string>: New field.
7821 (do_collect_symbol): Update.
7822 (add_local_symbols): Add 'trace_string' argument.
7823 (encode_actions_1): Update.
7824 (trace_dump_actions): Update.
7825 * dwarf2loc.c (access_memory): Update.
7826 * ax.h (struct agent_expr) <tracing, trace_string>: New fields.
7827 * ax-general.c (new_agent_expr): Update.
7828 * ax-gdb.h (gen_trace_for_expr, gen_trace_for_var)
7829 (gen_trace_for_return_address): Add argument.
7830 (trace_kludge, trace_string_kludge): Remove.
7831 * ax-gdb.c (trace_kludge, trace_string_kludge): Remove.
7832 (gen_traced_pop, gen_fetch, gen_bitfield_ref, gen_expr): Update.
7833 (gen_trace_for_var): Add 'trace_string' argument.
7834 (gen_trace_for_expr, gen_trace_for_return_address): Likewise.
7835 (gen_printf, agent_eval_command_one): Update.
7836
b2f83c08
TT
78372013-03-21 Tom Tromey <tromey@redhat.com>
7838
7839 PR exp/15109:
7840 * c-exp.y (yylex): Rewrite to push all tokens onto the FIFO.
7841 Handle FILENAME token.
7842
9507860e
TT
78432013-03-21 Tom Tromey <tromey@redhat.com>
7844
7845 * c-exp.y (YYPRINT): Define.
7846 (c_print_token): New function.
7847
e403aa4b
TT
78482013-03-21 Tom Tromey <tromey@redhat.com>
7849
7850 * c-exp.y (%union) <sym, ivar, ivec>: Remove.
7851
af307d6a
YQ
78522013-03-21 Yao Qi <yao@codesourcery.com>
7853
7854 * ctf.c: Include "gdb_stat.h".
7855 [USE_WIN32API]: New macro 'mkdir'.
7856 (ctf_start): Use permission bits macros if they are defined.
7857
fb81d016
KS
78582013-03-20 Keith Seitz <keiths@redhat.com>
7859
7860 * breakpoint.h (struct breakpoint): Add comment to
7861 extra_string indicating that this member is mallod'd.
7862 * breakpoint.c (base_breakpoint_dtor): Free extra_string.
7863
ef0026f0
PA
78642013-03-20 Pedro Alves <palves@redhat.com>
7865
7866 PR gdb/15289
7867
7868 * cli/cli-setshow.c (do_set_command)
7869 <var_uinteger, var_zuinteger>: Use LONGEST for variable holding
7870 the result of parsing the command argument. Throw error if the
7871 value is greater than UINT_MAX. Print the invalid value with
7872 plongest.
7873 <var_integer, var_zinteger>: Use LONGEST for variable holding the
7874 result of parsing the command argument. Throw error if the value
7875 is greater than INT_MAX, not greater or equal. Also throw error
7876 if the value is less than INT_MIN. Print the invalid value with
7877 plongest.
7878 <var_zuinteger_unlimited>: Throw error if the value is greater
7879 than INT_MAX, not greater or equal.
7880 (do_show_command) <var_integer, var_zinteger,
7881 var_zuinteger_unlimited>: Use %d for printing int, not %u.
7882
24d6c2a0
TT
78832013-03-20 Tom Tromey <tromey@redhat.com>
7884
7885 * ax-gdb.c (gen_var_ref): Unconditionally call via computed ops,
7886 if possible.
7887 * dwarf2read.c (read_func_scope): Remove old FIXME.
7888 * eval.c (evaluate_subexp_standard): Check SYMBOL_COMPUTED_OPS,
7889 not LOC_COMPUTED.
7890 * findvar.c (symbol_read_needs_frame, default_read_var_value):
7891 Unconditionally call via computed ops, if possible.
7892 * printcmd.c (address_info): Unconditionally call via computed ops,
7893 if possible.
7894 * stack.c (read_frame_arg): Unconditionally call via computed ops,
7895 if possible.
7896 * symtab.c (register_symbol_computed_impl): Sanity check 'ops'.
7897 * tracepoint.c (scope_info): Unconditionally call via computed ops,
7898 if possible.
7899
f1e6e072
TT
79002013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
7901 Tom Tromey <tromey@redhat.com>
7902
7903 PR symtab/8421:
7904 * coffread.c (coff_register_index): New global.
7905 (process_coff_symbol, coff_read_enum_type): Set
7906 SYMBOL_ACLASS_INDEX.
7907 (_initialize_coffread): Initialize new global.
7908 * dwarf2loc.c (locexpr_find_frame_base_location)
7909 (dwarf2_block_frame_base_locexpr_funcs)
7910 (loclist_find_frame_base_location)
7911 (dwarf2_block_frame_base_loclist_funcs): New.
7912 (dwarf_expr_frame_base_1): Call SYMBOL_BLOCK_OPS, remove internal_error.
7913 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Add location_has_loclist.
7914 * dwarf2loc.h (dwarf2_block_frame_base_locexpr_funcs)
7915 (dwarf2_block_frame_base_loclist_funcs): New.
7916 * dwarf2read.c (dwarf2_locexpr_index, dwarf2_loclist_index)
7917 (dwarf2_locexpr_block_index, dwarf2_loclist_block_index): New
7918 globals.
7919 (read_func_scope): Update.
7920 (fixup_go_packaging, mark_common_block_symbol_computed)
7921 (var_decode_location, new_symbol_full, dwarf2_const_value):
7922 Set SYMBOL_ACLASS_INDEX.
7923 (dwarf2_symbol_mark_computed): Likewise. Add 'is_block' argument.
7924 (_initialize_dwarf2_read): Initialize new globals.
7925 * jit.c (finalize_symtab): Set SYMBOL_ACLASS_INDEX.
7926 * jv-lang.c (add_class_symbol): Set SYMBOL_ACLASS_INDEX.
7927 * mdebugread.c (mdebug_register_index, mdebug_regparm_index): New
7928 globals.
7929 (parse_symbol, psymtab_to_symtab_1): Set SYMBOL_ACLASS_INDEX.
7930 (_initialize_mdebugread): Initialize new globals.
7931 * psympriv.h (struct partial_symbol) <aclass>: Update comment.
7932 * stabsread.c (patch_block_stabs): Set SYMBOL_ACLASS_INDEX.
7933 (stab_register_index, stab_regparm_index): New globals.
7934 (define_symbol, read_enum_type, common_block_end): Set
7935 SYMBOL_ACLASS_INDEX.
7936 (_initialize_stabsread): Initialize new globals.
7937 * symtab.c (next_aclass_value, symbol_impl, symbol_impls): New
7938 globals.
7939 (MAX_SYMBOL_IMPLS): New define.
7940 (register_symbol_computed_impl, register_symbol_block_impl)
7941 (register_symbol_register_impl)
7942 (initialize_ordinary_address_classes): New functions.
7943 (_initialize_symtab): Call initialize_ordinary_address_classes.
7944 * symtab.h (enum address_class) <LOC_FINAL_VALUE>: New constant.
7945 (struct symbol_impl): New.
7946 (SYMBOL_ACLASS_BITS): New define.
7947 (struct symbol) <aclass, ops>: Remove fields.
7948 <aclass_index>: New field.
7949 (symbol_impls): Declare.
7950 (SYMBOL_CLASS, SYMBOL_COMPUTED_OPS, SYMBOL_REGISTER_OPS): Redefine.
7951 (SYMBOL_IMPL, SYMBOL_ACLASS_INDEX): New defines.
7952 (register_symbol_computed_impl, register_symbol_block_impl)
7953 (register_symbol_register_impl): Declare.
7954 (struct symbol_computed_ops): Add location_has_loclist.
7955 (struct symbol_block_ops): New.
7956 (SYMBOL_BLOCK_OPS): New.
7957 * xcoffread.c (process_xcoff_symbol): Set SYMBOL_ACLASS_INDEX.
7958
dbccfd4c
TT
79592013-03-20 Tom Tromey <tromey@redhat.com>
7960
7961 * psymtab.c (find_pc_sect_psymbol, fixup_psymbol_section)
7962 (print_partial_symbols, recursively_search_psymtabs): Use
7963 PSYMBOL_CLASS.
7964
e3f1ad4f
PM
79652013-03-20 Pierre Muller <muller@sourceware.org>
7966
7967 * contrib/ari/gdb_ari.sh (OP eol rule): Also check
7968 addtion, subtraction, multiplication and division binary operator.
7969
460014f5
JK
79702013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
7971
7972 Code cleanup.
7973 * bfd-target.c (target_bfd_xclose): Remove parameter quitting.
7974 * bsd-kvm.c (bsd_kvm_close): Likewise.
7975 * bsd-uthread.c (bsd_uthread_close): Likewise.
7976 * corelow.c (core_close): Likewise.
7977 (core_close_cleanup): Remove parameter quitting from a caller.
7978 * event-top.c (async_disconnect): Likewise.
7979 * exec.c (exec_close_1): Remove parameter quitting.
7980 * go32-nat.c (go32_close): Likewise.
7981 * linux-nat.c (linux_nat_close): Remove parameter quitting. Remove
7982 parameter quitting from a caller.
7983 * mips-linux-nat.c (super_close): Remove parameter quitting from the
7984 variable.
7985 (mips_linux_close): Remove parameter quitting. Remove parameter
7986 quitting from a caller.
7987 * monitor.c (monitor_close): Remove parameter quitting.
7988 * monitor.h (monitor_close): Likewise.
7989 * record-btrace.c (record_btrace_close): Likewise.
7990 * record-full.c (record_full_close): Likewise.
7991 * remote-m32r-sdi.c (m32r_close): Remove parameter quitting and remove
7992 it also from fprintf_unfiltered.
7993 * remote-mips.c (mips_close): Remove parameter quitting.
7994 (mips_detach): Remove parameter quitting from a caller.
7995 * remote-sim.c (gdbsim_close): Remove parameter quitting.
7996 (gdbsim_close): Remove duplicate function comment. Remove parameter
7997 quitting and remove it also from printf_filtered.
7998 * remote.c (remote_close): Remove parameter quitting.
7999 * solib-svr4.c (enable_break): Remove parameter quitting from a caller.
8000 * target.c (update_current_target): Remove parameter int from to_close
8001 de_fault.
8002 (push_target, unpush_target, pop_target): Remove parameter quitting from
8003 a caller.
8004 (pop_all_targets_above, pop_all_targets): Remove parameter quitting.
8005 Remove parameter quitting from a caller.
8006 (target_preopen): Remove parameter quitting from a caller.
8007 (target_close): Remove parameter quitting. Remove parameter quitting
8008 from a caller two times. Remove parameter quitting also from
8009 fprintf_unfiltered.
8010 * target.h (struct target_ops): Remove parameter quitting and as int
8011 from fields to_xclose and to_close.
8012 (extern struct target_ops current_target):
8013 (target_close, pop_all_targets): Remove parameter quitting. Update the
8014 comment.
8015 (pop_all_targets_above): Remove parameter quitting.
8016 * top.c (quit_target): Remove parameter quitting from a caller.
8017 * tracepoint.c (tfile_close): Remove parameter quitting.
8018 * windows-nat.c (windows_close): Remove parameter quitting.
8019
35a7120b
CV
80202013-03-20 Corinna Vinschen <vinschen@redhat.com>
8021
8022 * windows-nat.c (handle_output_debug_string): Replace call
8023 to string_to_core_addr with call to strtoull.
8024
8249a5a9
YQ
80252013-03-20 Yao Qi <yao@codesourcery.com>
8026
8027 * ctf.c (ctf_save_metadata_header): Define macro HOST_ENDIANNESS
8028 and write it to CTF metadata.
8029
2c15ef43
CV
80302013-03-19 Corinna Vinschen <vinschen@redhat.com>
8031
8032 * windows-nat.c (handle_output_debug_string): Change type of n to
8033 SIZE_T to avoid crash on 64 bit systems.
8034
1cdd3232
EZ
80352013-03-17 Eli Zaretskii <eliz@gnu.org>
8036
8037 * python/python-internal.h (HAVE_SNPRINTF)
8038 [_WIN32 && HAVE_DECL_SNPRINTF]: Define, to avoid compiler warnings
8039 about redefinition of snprintf by pyerrors.h.
8040
3cb2ab1a
SE
80412013-03-15 Steve Ellcey <sellcey@mips.com>
8042
8043 * remote-sim.c (sim_command_completer): Make char arguments const.
8044
9ce98649
TT
80452013-03-15 Tom Tromey <tromey@redhat.com>
8046
8047 PR c++/15116:
8048 * gdbtypes.c (types_equal): Handle TYPE_CODE_FUNC.
8049
dccee2de
TT
80502013-03-14 Tom Tromey <tromey@redhat.com>
8051
8052 * gdb_bfd.c (struct gdb_bfd_data) <crc_computed, crc>:
8053 New fields.
8054 (get_file_crc): Move from symfile.c.
8055 (gdb_bfd_crc): New function.
8056 * gdb_bfd.h (gdb_bfd_crc): Declare.
8057 * objfiles.h (struct objfile) <crc32, crc32_p>: Remove.
8058 * symfile.c (get_file_crc): Move to gdb_bfd.c.
8059 (separate_debug_file_exists): Use gdb_bfd_crc.
8060
cc0ea93c
TT
80612013-03-14 Tom Tromey <tromey@redhat.com>
8062
8063 * symfile.c (get_debug_link_info): Remove.
8064 (find_separate_debug_file_by_debuglink): Use
8065 bfd_get_debug_link_info.
8066
08c23b0d
TT
80672013-03-14 Tom Tromey <tromey@redhat.com>
8068
8069 * symtab.c (error_in_psymtab_expansion): New function.
8070 (lookup_symbol_aux_quick)
8071 (basic_lookup_transparent_type_quick): Remove "last resort"
8072 code. Use error_in_psymtab_expansion.
8073
288e77a7
JK
80742013-03-14 Doug Evans <dje@google.com>
8075 Jan Kratochvil <jan.kratochvil@redhat.com>
8076
8077 * dwarf2read.c (dw2_map_symtabs_matching_filename): Put continue after
8078 any successful compare_filenames_for_search or FILENAME_CMP.
8079 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
8080 * symtab.c (iterate_over_some_symtabs): Likewise.
8081
8f1b8b82
JK
80822013-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8083
8084 * source.c (print_source_lines_base): Make a local copy of
8085 symtab_to_fullname.
8086
23eb71e4
JK
80872013-03-14 Hui Zhu <hui_zhu@mentor.com>
8088 Jan Kratochvil <jan.kratochvil@redhat.com>
8089
8090 * source.c (print_source_lines_base): Suppress "file" for TUI.
8091
bb869963
SDJ
80922013-03-14 Keith Seitz <keiths@redhat.com>
8093 Alan Matsuoka <alanm@redhat.com>
8094
8095 PR c++/15203
8096 PR c++/15210
8097 * cp-namespace.c (cp_lookup_nested_symbol): Handle TYPE_CODE_FUNC and
8098 TYPE_CODE_METHOD.
8099 * elfread.c (elf_symtab_read): Handle BSF_GNU_UNIQUE for certain
8100 symbols.
8101
d6682f9e
YQ
81022013-03-14 Yao Qi <yao@codesourcery.com>
8103
8104 * tracepoint.c (tfile_write_status): Write 'stop_desc' of trace
8105 status to tfile if trace is stopped by command 'tstop'.
8106
a22fa6e4
YQ
81072013-03-14 Yao Qi <yao@codesourcery.com>
8108
8109 * tracepoint.c (tfile_write_status): Write trace notes and user
8110 name into tfile if they are not NULL.
8111
d0353e76
YQ
81122013-03-14 Hui Zhu <hui@codesourcery.com>
8113 Yao Qi <yao@codesourcery.com>
8114
8115 * Makefile.in (REMOTE_OBS): Add ctf.o.
8116 (SFILES): Add ctf.c.
8117 (HFILES_NO_SRCDIR): Add ctf.h.
8118 * ctf.c, ctf.h: New files.
8119 * tracepoint.c: Include 'ctf.h'.
8120 (collect_pseudocommand): Remove static.
8121 (trace_save_command): Parse option "-ctf".
8122 Produce different trace file writers per option.
8123 Adjust output message.
8124 (trace_save_tfile, trace_save_ctf): New.
8125 * tracepoint.h (trace_save_tfile, trace_save_ctf): Declare.
8126 * mi/mi-main.c: Include 'ctf.h'.
8127 (mi_cmd_trace_save): Handle option '-ctf'. Call either
8128 trace_save_tfile or trace_save_ctf.
8129 * NEWS: Mention these changes.
8130
3f43bc09
YQ
81312013-03-14 Yao Qi <yao@codesourcery.com>
8132
8133 * tracepoint.c (trace_file_writer_xfree): New.
8134 (struct tfile_writer_data): New.
8135 (tfile_dtor, tfile_can_target_save, tfile_start): New.
8136 (tfile_write_header, tfile_write_regblock_type): New.
8137 (tfile_write_status, tfile_write_uploaded_tsv): New.
8138 (tfile_write_uploaded_tp, tfile_write_definition_end): New.
8139 (tfile_write_raw_data, (tfile_end): New.
8140 (tfile_write_ops): New global variable.
8141 (TRACE_WRITE_R_BLOCK): New macro.
8142 (TRACE_WRITE_M_BLOCK_HEADER): New macro.
8143 (TRACE_WRITE_M_BLOCK_MEMORY): New macro.
8144 (TRACE_WRITE_V_BLOCK): New macro.
8145 (trace_save): Add extra one parameter WRITER. Make it static.
8146 Use WRITER to writer trace.
8147 (tfile_trace_file_writer_new): New.
8148 (trace_save_command): Caller update.
8149 (trace_save_tfile): Write trace data in TFILE format.
8150 * tracepoint.h (struct trace_frame_write_ops): New.
8151 (struct trace_file_write_ops): New.
8152 (struct trace_file_writer): New.
8153 (trace_save): Remove its declaration.
8154 (trace_save_tfile): Declare it.
8155 * mi/mi-main.c (mi_cmd_trace_save): Call trace_save_tfile
8156 instead of trace_save.
8157
58665b40
PA
81582013-03-13 Pedro Alves <palves@redhat.com>
8159
8160 * hppa-hpux-nat.c (hppa_hpux_save_state_offset): Make static.
8161
10217050
PA
81622013-03-13 Pedro Alves <palves@redhat.com>
8163
8164 * dbxread.c (read_ofile_symtab, process_one_symbol): Remove
8165 commented out code.
8166 * demangle.c (current_demangling_style_string): Make it const.
8167 (set_demangling_command): Assert the demangling style is known.
8168 Remove all handling of unknown styles. Set
8169 'current_demangling_style_string' to an element of the
8170 demangling_style_names array.
8171 (set_demangling_style): Delete.
8172 (_initialize_demangler): Set current_demangling_style_string to the
8173 element of the demangling_style_names array that corresponds to
8174 the default demangling style. Remove FIXME note. Don't call
8175 set_demangling_style.
8176 * gdb-demangle.h (set_demangling_style): Remove declaration.
8177
6f937416
PA
81782013-03-13 Pedro Alves <palves@redhat.com>
8179
8180 * ada-lang.c (struct add_partial_datum) <text, text0, word>: Make
8181 fields const.
8182 (ada_make_symbol_completion_list): Make "text0" parameter const.
8183 * ax-gdb.c (agent_eval_command_one): Make "exp" parameter const.
8184 * breakpoint.c (condition_completer): Make "text" and "word"
8185 parameters const. Adjust.
8186 (check_tracepoint_command): Adjust to validate_actionline
8187 prototype change.
8188 (catch_syscall_completer): Make "text" and "word" parameters
8189 const.
8190 * cli/cli-cmds.c (show_user): Make "comname" local const.
8191 (valid_command_p): Make "command" parameter const.
8192 (alias_command): Make "alias_prefix" and "command_prefix" locals
8193 const.
8194 * cli/cli-decode.c (add_cmd): Make "name" parameter const.
8195 (add_alias_cmd): Make "name" and "oldname" parameters const.
8196 Adjust. No longer make copy of OLDNAME.
8197 (add_prefix_cmd, add_abbrev_prefix_cmd, add_set_or_show_cmd)
8198 (add_setshow_cmd_full, add_setshow_enum_cmd)
8199 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
8200 (add_setshow_filename_cmd, add_setshow_string_cmd)
8201 (add_setshow_string_noescape_cmd)
8202 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
8203 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
8204 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd)
8205 (delete_cmd, add_info, add_info_alias, add_com, add_com_alias):
8206 Make "name" parameter const.
8207 (help_cmd): Rename "command" parameter to "arg". New const local
8208 "command".
8209 (find_cmd): Make "command" parameter const.
8210 (lookup_cmd_1): Make "text" parameter pointer to const. Adjust to
8211 deprecated_cmd_warning prototype change.
8212 (undef_cmd_error): Make "cmdtype" parameter const.
8213 (lookup_cmd): Make "line" parameter const.
8214 (deprecated_cmd_warning): Change type of "text" parameter to
8215 pointer to const char, from pointer to pointer to char. Adjust.
8216 (lookup_cmd_composition): Make "text" parameter const.
8217 (complete_on_cmdlist, complete_on_enum): Make "text" and "word"
8218 parameters const.
8219 * cli/cli-decode.h (struct cmd_list_element) <name>: Make field
8220 const.
8221 * cli/cli-script.c (validate_comname): Make "tem" local const.
8222 (define_command): New const local "tem_c". Use it in calls to
8223 lookup_cmd.
8224 (document_command): Make "tem" and "comfull" locals const.
8225 (show_user_1): Make "prefix" and "name" parameters const.
8226 * cli-script.h (show_user_1): Make "prefix" and "name" parameters
8227 const.
8228 * command.h (add_cmd, add_alias_cmd, add_prefix_cmd)
8229 (add_abbrev_prefix_cmd, completer_ftype, lookup_cmd, lookup_cmd_1)
8230 (deprecated_cmd_warning, lookup_cmd_composition, add_com)
8231 (add_com_alias, add_info, add_info_alias, complete_on_cmdlist)
8232 (complete_on_enum, add_setshow_enum_cmd)
8233 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
8234 (add_setshow_filename_cmd, add_setshow_string_cmd)
8235 (add_setshow_string_noescape_cmd)
8236 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
8237 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
8238 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
8239 Change prototypes, constifying strings.
8240 * completer.c (noop_completer, filename_completer): Make "text"
8241 and "prefix" parameters const.
8242 (location_completer, expression_completer)
8243 (complete_line_internal): Make "text" and "prefix" parameters
8244 const and adjust.
8245 (command_completer, signal_completer): Make "text" and "prefix"
8246 parameters const.
8247 * completer.h (noop_completer, filename_completer)
8248 (expression_completer, location_completer, command_completer)
8249 (signal_completer): Change prototypes.
8250 * corefile.c (complete_set_gnutarget): Make "text" and "word"
8251 parameters const.
8252 * cp-abi.c (cp_abi_completer): Likewise.
8253 * expression.h (parse_expression_for_completion): Change
8254 prototype.
8255 * f-lang.c (f_make_symbol_completion_list): Make "text" and "word"
8256 parameters const.
8257 * infcmd.c (_initialize_infcmd): Make "cmd_name" local const.
8258 * infrun.c (handle_completer): Make "text" and "word" parameters
8259 const.
8260 * interps.c (interpreter_completer): Make "text" and "word"
8261 parameters const.
8262 * language.h (struct language_defn)
8263 <la_make_symbol_completion_list>: Make "text" and "word"
8264 parameters const.
8265 * parse.c (parse_exp_1): Move const hack to parse_exp_in_context.
8266 (parse_exp_in_context): Rename to ...
8267 (parse_exp_in_context_1): ... this.
8268 (parse_exp_in_context): Reimplement, with const hack from
8269 parse_exp_1.
8270 (parse_expression_for_completion): Make "string" parameter const.
8271 * printcmd.c (decode_format): Make "string_ptr" parameter pointer
8272 to pointer to const char. Adjust.
8273 (print_command_1): Make "exp" parameter const.
8274 (output_command): Rename to ...
8275 (output_command_const): ... this. Make "exp" parameter const.
8276 (output_command): Reimplement.
8277 (x_command): Adjust.
8278 (display_command): Rename "exp" parameter to "arg". New "exp"
8279 local, const version of "arg".
8280 * python/py-auto-load.c (gdbpy_initialize_auto_load): Make
8281 "cmd_name" local const.
8282 * python/py-cmd.c (cmdpy_destroyer): Cast const away in xfree
8283 call.
8284 (cmdpy_completer): Make "text" and "word" parameters const.
8285 (gdbpy_parse_command_name): Make "prefix_text2" local const.
8286 * python/py-param.c (add_setshow_generic): Make "tmp_name" local
8287 const.
8288 * remote.c (_initialize_remote): Make "cmd_name" local const.
8289 * symtab.c (language_search_unquoted_string): Make "text" and "p"
8290 parameters const. Adjust.
8291 (completion_list_add_fields): Make "sym_text", "text" and "word"
8292 parameters const.
8293 (struct add_name_data) <sym_text, text, word>: Make fields const.
8294 (default_make_symbol_completion_list_break_on): Make "text" and
8295 "word" parameters const. Adjust locals.
8296 (default_make_symbol_completion_list)
8297 (make_symbol_completion_list, make_symbol_completion_type)
8298 (make_symbol_completion_list_fn): Make "text" and "word"
8299 parameters const.
8300 (make_file_symbol_completion_list): Make "text", "word" and
8301 "srcfile" parameters const. Adjust locals.
8302 (add_filename_to_list): Make "text" and "word" parameters const.
8303 (struct add_partial_filename_data) <text, word>: Make fields
8304 const.
8305 (make_source_files_completion_list): Make "text" and "word"
8306 parameters const.
8307 * symtab.h (default_make_symbol_completion_list_break_on)
8308 (default_make_symbol_completion_list, make_symbol_completion_list)
8309 (make_symbol_completion_type enum type_code)
8310 (make_symbol_completion_list_fn make_file_symbol_completion_list)
8311 (make_source_files_completion_list): Change prototype.
8312 * top.c (execute_command): Adjust to pass pointer to pointer to
8313 const char to lookup_cmd, and to deprecated_cmd_warning prototype
8314 change.
8315 (set_verbose): Make "cmdname" local const.
8316 * tracepoint.c (decode_agent_options): Make "exp" parameter const,
8317 and adjust.
8318 (validate_actionline): Make "line" parameter a pointer to const
8319 char, and adjust.
8320 (encode_actions_1): Make "action_exp" local const, and adjust.
8321 (encode_actions): Adjust.
8322 (replace_comma): Delete.
8323 (trace_dump_actions): Make "action_exp" and "next_comma" locals
8324 const, and adjust. Don't frob the action string while splitting
8325 it at commas. Instead, make a copy of each split substring in
8326 turn.
8327 (trace_dump_command): Adjust to validate_actionline prototype
8328 change.
8329 * tracepoint.h (decode_agent_options, decode_agent_options)
8330 (encode_actions, validate_actionline): Change prototypes.
8331 * valprint.h (output_command): Delete declaration.
8332 (output_command_const): Declare.
8333 * value.c (function_destroyer): Cast const away in xfree call.
8334
a0bcdaa7
PA
83352013-03-13 Pedro Alves <palves@redhat.com>
8336
8337 * ada-lang.c (ada_decode_symbol): Cast away constness of GSYMBOL
8338 rather than casting 'const char * const *' to 'const char **'.
8339 * ada-lex.l (processInt): Make "trailer" local const. Remove
8340 'const char **' cast.
8341 * arm-linux-tdep.c (arm_stap_parse_special_token): Add 'char *'
8342 locals, and use those as strtol output pointer, instead than doing
8343 invalid casts to from 'const char **' to 'char **'.
8344 (_initialize_demangle): Remove cast.
8345 * i386-tdep.c (i386_stap_parse_special_token): : Add 'char *'
8346 locals, and use those as strtol output pointer, instead than doing
8347 invalid casts to from 'const char **' to 'char **'.
8348 * solib-dsbt.c (dsbt_get_initial_loadmaps): Remove 'gdb_byte**'
8349 casts.
8350 * stap-probe.c (stap_parse_register_operand)
8351 (stap_parse_single_operand): Likewise.
8352
8ddb1965
YQ
83532013-03-13 Yao Qi <yao@codesourcery.com>
8354
8355 * tracepoint.c (tfile_get_trace_state_variable_value): Look for
8356 the last matched 'V' blcok in trace frame.
8357
2d450646
JB
83582013-03-12 Joel Brobecker <brobecker@adacore.com>
8359
8360 * NEWS: Create a new section for the next release branch.
8361 Rename the section of the current branch, now that it has
8362 been cut.
8363
b4b79973 83642013-03-12 Joel Brobecker <brobecker@adacore.com>
8365
8366 GDB 7.6 branch created (branch timestamp: 2013-03-12 22:15 UTC)
8367 * version.in: Bump version to 7.6.50.20130312-cvs.
8368
ee047554
KS
83692013-03-12 Keith Seitz <keiths@redhat.com>
8370
8371 * mi/mi-cmds.h (mi_execute_command): Make "cmd" const.
8372 * mi/mi-interp.c (mi_interpreter_exec): Make "command" const.
8373 Remove temporary copy of input string.
8374 (mi_execute_command_wrapper): Make "cmd" const.
8375 * mi/mi-main.c (mi_execute_command): Make "string_ptr" const.
8376 * mi/mi-parse.c (mi_parse_argv): Make "args" const.
8377 Use const strings.
8378 (mi_parse): Make "cmd" const.
8379 Use const strings.
8380 * mi/mi-parse.h (mi_parse): Make "cmd" const.
8381
bbc13ae3
KS
83822013-03-12 Keith Seitz <keiths@redhat.com>
8383
8384 * ada-lang.c (ada_read_renaming_var_value): Pass const
8385 pointer to expression string to parse_exp_1.
8386 (create_excep_cond_exprs): Likewise.
8387 * ax-gdb.c (agent_eval_command_one): Likewise.
8388 (maint_agent_printf_command): Likewise.
8389 Constify much of the string handling/parsing.
8390 * breakpoint.c (set_breakpoint_condition): Pass const
8391 pointer to expression string to parse_exp_1.
8392 (update_watchpoint): Likewise.
8393 (parse_cmd_to_aexpr): Constify string handling.
8394 Pass const pointer to parse_exp_1.
8395 (init_breakpoint_sal): Pass const pointer to parse_exp_1.
8396 (find_condition_and_thread): Likewise.
8397 Make TOK const.
8398 (watch_command_1): Make "arg" const.
8399 Constify string handling.
8400 Copy the expression string instead of changing the input
8401 string.
8402 (update_breakpoint_location): Pass const pointer to
8403 parse_exp_1.
8404 * eval.c (parse_and_eval_address): Make "exp" const.
8405 (parse_to_comma_and_eval): Make "expp" const.
8406 (parse_and_eval): Make "exp" const.
8407 * expression.h (parse_expression): Make argument const.
8408 (parse_exp_1): Make first argument const.
8409 * findcmd.c (parse_find_args): Treat "args" as const.
8410 * linespec.c (parse_linespec): Pass const pointer to
8411 linespec_expression_to_pc.
8412 (linespec_expression_to_pc): Make "exp_ptr" const.
8413 * parse.c (parse_exp_1): Make "stringptr" const.
8414 Make a copy of the expression to pass to parse_exp_in_context until
8415 this whole interface can be constified.
8416 (parse_expression): Make "string" const.
8417 * printcmd.c (ui_printf): Treat "arg" as const.
8418 Handle const strings.
8419 * tracepoint.c (validate_actionline): Pass const pointer to
8420 all calls to parse_exp_1.
8421 (encode_actions_1): Likewise.
8422 * value.h (parse_to_comma_and_eval): Make argument const.
8423 (parse_and_eval_address): Likewise.
8424 (parse_and_eval): Likewise.
8425 * varobj.c (varobj_create): Pass const pointer to parse_exp_1.
8426 (varobj_set_value): Likewise.
8427 * cli/cli-cmds.c (disassemble_command): Treat "arg" as const and
8428 constify string handling.
8429 Pass const pointers to parse_and_eval_address and
8430 parse_to_comman_and_eval.
8431 * cli/cli-utils.c (skip_to_space): Rename to ...
8432 (skip_to_space_const): ... this. Handle const strings.
8433 * cli/cli-utils.h (skip_to_space): Turn into macro which invokes
8434 skip_to_space_const.
8435 (skip_to_space_const): Declare.
8436 * common/format.c (parse_format_string): Make "arg" const.
8437 Handle const strings.
8438 * common/format.h (parse_format_string): Make "arg" const.
8439 * gdbserver/ax.c (ax_printf): Make "format" const.
8440 * python/python.c (gdbpy_parse_and_eval): Do not make a copy
8441 of the expression string.
8442
f3cec7e6
HZ
84432013-03-12 Hui Zhu <hui@codesourcery.com>
8444
8445 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Update error message.
8446
9df7235c
HZ
84472013-03-12 Yao Qi <yao@codesourcery.com>
8448 Hui Zhu <hui@codesourcery.com>
8449
8450 * dwarf2loc.c (access_memory): Change nbits to nbytes in gdb_assert.
8451 (dwarf2_compile_expr_to_ax): Call access_memory in DW_OP_deref and
8452 DW_OP_deref_size.
8453
82d049ab
PH
84542013-03-12 Paul Hilfinger <hilfingr@adacore.com>
8455
5f8e0b8f
MF
8456 * ada-lex.l (rules): Only recognize 'thread' as a
8457 delimiter when followed by numerals, as for c-exp.y.
8458 Use new rewind_to_char function to rewind the input for
8459 expression-delimiting tokens.
8460 (rewind_to_char): New function.
82d049ab 8461
8c1fb155
JK
84622013-03-11 Pedro Alves <palves@redhat.com>
8463 Jan Kratochvil <jan.kratochvil@redhat.com>
8464
8465 * configure: Regenerate.
8466 * configure.ac (check dynamic export flag): Link python test with
8467 $PYTHON_LIBS.
8468
cc81e1c6
DE
84692013-03-11 Doug Evans <dje@google.com>
8470 Keith Seitz <keiths@redhat.com>
8471
8472 * linespec.c (find_linespec_symbols): Call find_function_symbols
8473 first, and then call lookup_prefix_sym/find_method.
8474
39086a0e
PA
84752013-03-11 Pedro Alves <palves@redhat.com>
8476
8477 * charset.c (convert_between_encodings): Don't cast between
8478 different pointer to pointer types. Instead, make the 'inp' local
8479 be of the type iconv expects.
8480 (wchar_iterate): Don't cast between different pointer to pointer
8481 types. Instead, use new pointer local of the type iconv expects.
8482 * target.c (target_read_stralloc, target_fileio_read_stralloc):
8483 Add new local of type char pointer, and use it to get a
8484 char/string view of the byte buffer, instead of casting between
8485 pointer to pointer types.
8486
90585175
HAQ
84872013-03-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
8488
8489 * remote.c (remote_set_trace_buffer_size): Move != operator
8490 to the start of next line to fix an ARI warning.
8491
59ea5688
MM
84922013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8493
8494 * NEWS: Add record changes.
8495
946287b7
MM
84962013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8497
8498 * record-btrace.c (btrace_insn_history): Omit the pc prefix in
8499 the instruction history disassembly.
8500 * disasm.c (dump_insns): Omit the pc prefix, if requested.
8501 * disasm.h (DISASSEMBLY_OMIT_PC): New.
8502
afedecd3
MM
85032013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8504
8505 * Makefile.in (SFILES): Add record-btrace.c
8506 (COMMON_OBS): Add record-btrace.o
8507 * record-btrace.c: New.
8508 * objfiles.c: Include btrace.h.
8509 (free_objfile): call btrace_free_objfile.
8510
15984c13
MM
85112013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8512
8513 * target.c (target_call_history, target_call_history_from,
8514 target_call_history_range): New.
8515 * target.h (target_ops) <to_call_history, to_call_history_from,
8516 to_call_history_range>: New fields.
8517 (target_call_history, target_call_history_from,
8518 target_call_history_range): New declaration.
8519 * record.c (get_call_history_modifiers, cmd_record_call_history,
8520 record_call_history_size): New.
8521 (_initialize_record): Add the "record function-call-history" command.
8522 Add "set/show record function-call-history-size" commands.
8523 * record.h (record_print_flag): New.
8524
67c86d06
MM
85252013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8526
8527 * target.h (target_ops) <to_insn_history, to_insn_history_from,
8528 to_insn_history_range>: New fields.
8529 (target_insn_history): New.
8530 (target_insn_history_from): New.
8531 (target_insn_history_range): New.
8532 * target.c (target_insn_history): New.
8533 (target_insn_history_from): New.
8534 (target_insn_history_range): New.
8535 * record.c: Include cli/cli-utils.h, disasm.h, ctype.h.
8536 (record_insn_history_size): New.
8537 (get_insn_number): New.
8538 (get_context_size): New.
8539 (no_chunk): New.
8540 (get_insn_history_modifiers): New.
8541 (cmd_record_insn_history): New.
8542 (_initialize_record): Add "set/show record instruction-history-size"
8543 command. Add "record instruction-history" command.
8544
7c1687a9
MM
85452013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8546
8547 * record.h (record_disconnect): New.
8548 (record_detach): New.
8549 (record_mourn_inferior): New.
8550 (record_kill): New.
8551 * record-full.c (record_disconnect, record_detach,
8552 record_mourn_inferior, record_kill): Move to...
8553 * record.c: ...here.
8554 (DEBUG): New.
8555 (record_stop): New.
8556 (record_unpush): New.
8557 (cmd_record_stop): Call record_stop. Replace unpush_target
8558 call with record_unpush call.
8559 (record_disconnect, record_detach): Assert that the target
8560 is of record stratum. Call record_unpush, record_stop, and
8561 DEBUG.
8562 (record_mourn_inferior, record_kill): Assert that the target
8563 is of record stratum. Call record_unpush and DEBUG.
8564
25ea693b
MM
85652013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8566
8567 * record-full.h, record-full.c (record_memory_query): Rename
8568 to ...
8569 (record_full_memory_query): ...this. Update all users.
8570 (record_arch_list_add_reg): Rename to ...
8571 (record_full_arch_list_add_reg): ...this. Update all users.
8572 (record_arch_list_add_mem): Rename to ...
8573 (record_full_arch_list_add_mem): ...this. Update all users.
8574 (record_arch_list_add_end): Rename to ...
8575 (record_full_arch_list_add_end): ...this. Update all users.
8576 (record_gdb_operation_disable_set): Rename to ...
8577 (record_full_gdb_operation_disable_set): ...this.
8578 Update all users.
8579
88d1aa9d
MM
85802013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8581
8582 * record-full.c (DEFAULT_RECORD_INSN_MAX_NUM): Renamed to ...
8583 (DEFAULT_RECORD_FULL_INSN_MAX_NUM): ... this. Updated all users.
8584 (RECORD_IS_REPLAY): Renamed to ...
8585 (RECORD_FULL_IS_REPLAY): ... this. Updated all users.
8586 (RECORD_FILE_MAGIC): Renamed to ...
8587 (RECORD_FULL_FILE_MAGIC): ... this. Updated all users.
8588 (record_mem_entry): Renamed to ...
8589 (record_full_mem_entry): ... this. Updated all users.
8590 (record_reg_entry): Renamed to ...
8591 (record_full_reg_entry): ... this. Updated all users.
8592 (record_end_entry): Renamed to ...
8593 (record_full_end_entry): ... this. Updated all users.
8594 (record_type) <record_end, record_reg, record_mem>: Renamed
8595 to ...
8596 (record_full_type) <record_full_end, record_full_reg,
8597 record_full_mem>: ... this. Updated all users.
8598 (record_entry): Renamed to ...
8599 (record_full_entry): ... this. Updated all users.
8600 (record_core_buf_entry): Renamed to ...
8601 (record_full_core_buf_entry): ... this. Updated all users.
8602 (record_core_regbuf): Renamed to ...
8603 (record_full_core_regbuf): ... this. Updated all users.
8604 (record_core_start): Renamed to ...
8605 (record_full_core_start): ... this. Updated all users.
8606 (record_core_end): Renamed to ...
8607 (record_full_core_end): ... this. Updated all users.
8608 (record_core_buf_list): Renamed to ...
8609 (record_full_core_buf_list): ... this. Updated all users.
8610 (record_first): Renamed to ...
8611 (record_full_first): ... this. Updated all users.
8612 (record_list): Renamed to ...
8613 (record_full_list): ... this. Updated all users.
8614 (record_arch_list_head): Renamed to ...
8615 (record_full_arch_list_head): ... this. Updated all users.
8616 (record_arch_list_tail): Renamed to ...
8617 (record_full_arch_list_tail): ... this. Updated all users.
8618 (record_stop_at_limit): Renamed to ...
8619 (record_full_stop_at_limit): ... this. Updated all users.
8620 (record_insn_max_num): Renamed to ...
8621 (record_full_insn_max_num): ... this. Updated all users.
8622 (record_insn_num): Renamed to ...
8623 (record_full_insn_num): ... this. Updated all users.
8624 (record_insn_count): Renamed to ...
8625 (record_full_insn_count): ... this. Updated all users.
8626 (record_ops): Renamed to ...
8627 (record_full_ops): ... this. Updated all users.
8628 (record_core_ops): Renamed to ...
8629 (record_full_core_ops): ... this. Updated all users.
8630 (set_record_cmdlist): Renamed to ...
8631 (set_record_full_cmdlist): ... this. Updated all users.
8632 (show_record_cmdlist): Renamed to ...
8633 (show_record_full_cmdlist): ... this. Updated all users.
8634 (record_cmdlist): Renamed to ...
8635 (record_full_cmdlist): ... this. Updated all users.
8636 (record_beneath_to_resume_ops): Renamed to ...
8637 (record_full_beneath_to_resume_ops): ... this. Updated all users.
8638 (record_beneath_to_resume): Renamed to ...
8639 (record_full_beneath_to_resume): ... this. Updated all users.
8640 (record_beneath_to_wait_ops): Renamed to ...
8641 (record_full_beneath_to_wait_ops): ... this. Updated all users.
8642 (record_beneath_to_wait): Renamed to ...
8643 (record_full_beneath_to_wait): ... this. Updated all users.
8644 (record_beneath_to_store_registers_ops): Renamed to ...
8645 (record_full_beneath_to_store_registers_ops): ... this.
8646 Updated all users.
8647 (record_beneath_to_store_registers): Renamed to ...
8648 (record_full_beneath_to_store_registers): ... this.
8649 Updated all users.
8650 (record_beneath_to_xfer_partial_ops): Renamed to ...
8651 (record_full_beneath_to_xfer_partial_ops): ... this.
8652 Updated all users.
8653 (record_beneath_to_xfer_partial): Renamed to ...
8654 (record_full_beneath_to_xfer_partial): ... this.
8655 Updated all users.
8656 (record_beneath_to_insert_breakpoint): Renamed to ...
8657 (record_full_beneath_to_insert_breakpoint): ... this.
8658 Updated all users.
8659 (record_beneath_to_stopped_by_watchpoint): Renamed to ...
8660 (record_full_beneath_to_stopped_by_watchpoint): ... this.
8661 Updated all users.
8662 (record_beneath_to_stopped_data_address): Renamed to ...
8663 (record_full_beneath_to_stopped_data_address): ... this.
8664 Updated all users.
8665 (record_beneath_to_async): Renamed to ...
8666 (record_full_beneath_to_async): ... this. Updated all users.
8667 (record_goto_insn): Renamed to ...
8668 (record_full_goto_insn): ... this. Updated all users.
8669 (record_save): Renamed to ...
8670 (record_full_save): ... this. Updated all users.
8671 (record_reg_alloc): Renamed to ...
8672 (record_full_reg_alloc): ... this. Updated all users.
8673 (record_reg_release): Renamed to ...
8674 (record_full_reg_release): ... this. Updated all users.
8675 (record_mem_alloc): Renamed to ...
8676 (record_full_mem_alloc): ... this. Updated all users.
8677 (record_mem_release): Renamed to ...
8678 (record_full_mem_release): ... this. Updated all users.
8679 (record_end_alloc): Renamed to ...
8680 (record_full_end_alloc): ... this. Updated all users.
8681 (record_end_release): Renamed to ...
8682 (record_full_end_release): ... this. Updated all users.
8683 (record_entry_release): Renamed to ...
8684 (record_full_entry_release): ... this. Updated all users.
8685 (record_list_release): Renamed to ...
8686 (record_full_list_release): ... this. Updated all users.
8687 (record_list_release_following): Renamed to ...
8688 (record_full_list_release_following): ... this.
8689 Updated all users.
8690 (record_list_release_first): Renamed to ...
8691 (record_full_list_release_first): ... this. Updated all users.
8692 (record_arch_list_add): Renamed to ...
8693 (record_full_arch_list_add): ... this. Updated all users.
8694 (record_get_loc): Renamed to ...
8695 (record_full_get_loc): ... this. Updated all users.
8696 (record_check_insn_num): Renamed to ...
8697 (record_full_check_insn_num): ... this. Updated all users.
8698 (record_arch_list_cleanups): Renamed to ...
8699 (record_full_arch_list_cleanups): ... this. Updated all users.
8700 (record_message): Renamed to ...
8701 (record_full_message): ... this. Updated all users.
8702 (record_message_wrapper): Renamed to ...
8703 (record_full_message_wrapper): ... this. Updated all users.
8704 (record_message_wrapper_safe): Renamed to ...
8705 (record_full_message_wrapper_safe): ... this. Updated all users.
8706 (record_gdb_operation_disable): Renamed to ...
8707 (record_full_gdb_operation_disable): ... this. Updated all users.
8708 (record_hw_watchpoint): Renamed to ...
8709 (record_full_hw_watchpoint): ... this. Updated all users.
8710 (record_exec_insn): Renamed to ...
8711 (record_full_exec_insn): ... this. Updated all users.
8712 (record_restore): Renamed to ...
8713 (record_full_restore): ... this. Updated all users.
8714 (record_async_inferior_event_token): Renamed to ...
8715 (record_full_async_inferior_event_token): ... this.
8716 Updated all users.
8717 (record_async_inferior_event_handler): Renamed to ...
8718 (record_full_async_inferior_event_handler): ... this.
8719 Updated all users.
8720 (record_core_open_1): Renamed to ...
8721 (record_full_core_open_1): ... this. Updated all users.
8722 (record_open_1): Renamed to ...
8723 (record_full_open_1): ... this. Updated all users.
8724 (record_open): Renamed to ...
8725 (record_full_open): ... this. Updated all users.
8726 (record_close): Renamed to ...
8727 (record_full_close): ... this. Updated all users.
8728 (record_resume_step): Renamed to ...
8729 (record_full_resume_step): ... this. Updated all users.
8730 (record_resumed): Renamed to ...
8731 (record_full_resumed): ... this. Updated all users.
8732 (record_execution_dir): Renamed to ...
8733 (record_full_execution_dir): ... this. Updated all users.
8734 (record_resume): Renamed to ...
8735 (record_full_resume): ... this. Updated all users.
8736 (record_get_sig): Renamed to ...
8737 (record_full_get_sig): ... this. Updated all users.
8738 (record_sig_handler): Renamed to ...
8739 (record_full_sig_handler): ... this. Updated all users.
8740 (record_wait_cleanups): Renamed to ...
8741 (record_full_wait_cleanups): ... this. Updated all users.
8742 (record_wait_1): Renamed to ...
8743 (record_full_wait_1): ... this. Updated all users.
8744 (record_wait): Renamed to ...
8745 (record_full_wait): ... this. Updated all users.
8746 (record_stopped_by_watchpoint): Renamed to ...
8747 (record_full_stopped_by_watchpoint): ... this. Updated all users.
8748 (record_disconnect): Renamed to ...
8749 (record_full_disconnect): ... this. Updated all users.
8750 (record_detach): Renamed to ...
8751 (record_full_detach): ... this. Updated all users.
8752 (record_mourn_inferior): Renamed to ...
8753 (record_full_mourn_inferior): ... this. Updated all users.
8754 (record_kill): Renamed to ...
8755 (record_full_kill): ... this. Updated all users.
8756 (record_stopped_data_address): Renamed to ...
8757 (record_full_stopped_data_address): ... this. Updated all users.
8758 (record_registers_change): Renamed to ...
8759 (record_full_registers_change): ... this. Updated all users.
8760 (record_store_registers): Renamed to ...
8761 (record_full_store_registers): ... this. Updated all users.
8762 (record_xfer_partial): Renamed to ...
8763 (record_full_xfer_partial): ... this. Updated all users.
8764 (record_breakpoint): Renamed to ...
8765 (record_full_breakpoint): ... this. Updated all users.
8766 (record_breakpoint_p): Renamed to ...
8767 (record_full_breakpoint_p): ... this. Updated all users.
8768 (record_breakpoints): Renamed to ...
8769 (record_full_breakpoints): ... this. Updated all users.
8770 (record_sync_record_breakpoints): Renamed to ...
8771 (record_full_sync_record_breakpoints): ... this.
8772 Updated all users.
8773 (record_init_record_breakpoints): Renamed to ...
8774 (record_full_init_record_breakpoints): ... this.
8775 Updated all users.
8776 (record_insert_breakpoint): Renamed to ...
8777 (record_full_insert_breakpoint): ... this. Updated all users.
8778 (record_remove_breakpoint): Renamed to ...
8779 (record_full_remove_breakpoint): ... this. Updated all users.
8780 (record_can_execute_reverse): Renamed to ...
8781 (record_full_can_execute_reverse): ... this. Updated all users.
8782 (record_get_bookmark): Renamed to ...
8783 (record_full_get_bookmark): ... this. Updated all users.
8784 (record_goto_bookmark): Renamed to ...
8785 (record_full_goto_bookmark): ... this. Updated all users.
8786 (record_async): Renamed to ...
8787 (record_full_async): ... this. Updated all users.
8788 (record_can_async_p): Renamed to ...
8789 (record_full_can_async_p): ... this. Updated all users.
8790 (record_is_async_p): Renamed to ...
8791 (record_full_is_async_p): ... this. Updated all users.
8792 (record_execution_direction): Renamed to ...
8793 (record_full_execution_direction): ... this. Updated all users.
8794 (record_info): Renamed to ...
8795 (record_full_info): ... this. Updated all users.
8796 (record_delete): Renamed to ...
8797 (record_full_delete): ... this. Updated all users.
8798 (record_is_replaying): Renamed to ...
8799 (record_full_is_replaying): ... this. Updated all users.
8800 (record_goto_entry): Renamed to ...
8801 (record_full_goto_entry): ... this. Updated all users.
8802 (record_goto_begin): Renamed to ...
8803 (record_full_goto_begin): ... this. Updated all users.
8804 (record_goto_end): Renamed to ...
8805 (record_full_goto_end): ... this. Updated all users.
8806 (record_goto): Renamed to ...
8807 (record_full_goto): ... this. Updated all users.
8808 (init_record_ops): Renamed to ...
8809 (init_record_full_ops): ... this. Updated all users.
8810 (record_core_resume): Renamed to ...
8811 (record_full_core_resume): ... this. Updated all users.
8812 (record_core_kill): Renamed to ...
8813 (record_full_core_kill): ... this. Updated all users.
8814 (record_core_fetch_registers): Renamed to ...
8815 (record_full_core_fetch_registers): ... this. Updated all users.
8816 (record_core_prepare_to_store): Renamed to ...
8817 (record_full_core_prepare_to_store): ... this. Updated all users.
8818 (record_core_store_registers): Renamed to ...
8819 (record_full_core_store_registers): ... this. Updated all users.
8820 (record_core_xfer_partial): Renamed to ...
8821 (record_full_core_xfer_partial): ... this. Updated all users.
8822 (record_core_insert_breakpoint): Renamed to ...
8823 (record_full_core_insert_breakpoint): ... this. Updated all users.
8824 (record_core_remove_breakpoint): Renamed to ...
8825 (record_full_core_remove_breakpoint): ... this. Updated all users.
8826 (record_core_has_execution): Renamed to ...
8827 (record_full_core_has_execution): ... this. Updated all users.
8828 (init_record_core_ops): Renamed to ...
8829 (init_record_full_core_ops): ... this. Updated all users.
8830 (cmd_record_restore): Renamed to ...
8831 (cmd_record_full_restore): ... this. Updated all users.
8832 (record_save_cleanups): Renamed to ...
8833 (record_full_save_cleanups): ... this. Updated all users.
8834 (cmd_record_start): Renamed to ...
8835 (cmd_record_full_start): ... this. Updated all users.
8836 (set_record_insn_max_num): Renamed to ...
8837 (set_record_full_insn_max_num): ... this. Updated all users.
8838 (set_record_command): Renamed to ...
8839 (set_record_full_command): ... this. Updated all users.
8840 (show_record_command): Renamed to ...
8841 (show_record_full_command): ... this. Updated all users.
8842 (_initialize_record): Renamed to ...
8843 (_initialize_record_full): ... this. Updated all users.
8844
d02ed0bb
MM
88452013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8846
8847 * record.h: Split into this and ...
8848 * record-full.h: ... this.
8849 * record.c: Split into this and ...
8850 * record-full.c: ... this.
8851 * target.h (target_ops): Add new fields to_info_record,
8852 to_save_record, to_delete_record, to_record_is_replaying,
8853 to_goto_record_begin, to_goto_record_end, to_goto_record.
8854 (target_info_record): New.
8855 (target_save_record): New.
8856 (target_supports_delete_record): New.
8857 (target_delete_record): New.
8858 (target_record_is_replaying): New.
8859 (target_goto_record_begin): New.
8860 (target_goto_record_end): New.
8861 (target_goto_record): New.
8862 * target.c (target_info_record): New.
8863 (target_save_record): New.
8864 (target_supports_delete_record): New.
8865 (target_delete_record): New.
8866 (target_record_is_replaying): New.
8867 (target_goto_record_begin): New.
8868 (target_goto_record_end): New.
8869 (target_goto_record): New.
8870 * record.h: Declare struct cmd_list_element.
8871 (record_cmdlist): New declaration.
8872 (set_record_cmdlist): New declaration.
8873 (show_record_cmdlist): New declaration.
8874 (info_record_cmdlist): New declaration.
8875 (cmd_record_goto): New declaration.
8876 * record.c: Remove unnecessary includes.
8877 Include inferior.h.
8878 (cmd_record_goto): Remove declaration.
8879 (record_cmdlist): Now extern. Initialize.
8880 (set_record_cmdlist): Now extern. Initialize.
8881 (show_record_cmdlist): Now extern. Initialize.
8882 (info_record_cmdlist): Now extern. Initialize.
8883 (find_record_target): New.
8884 (require_record_target): New.
8885 (cmd_record_start): Update.
8886 (cmd_record_delete): Remove target-specific code.
8887 Call target_delete_record.
8888 (cmd_record_stop): Unpush any record target.
8889 (set_record_insn_max_num): Move to record-full.c
8890 (set_record_command): Add comment.
8891 (show_record_command): Add comment.
8892 (info_record_command): Update comment.
8893 Remove target-specific code.
8894 Call the record target's to_info_record.
8895 (cmd_record_start): New.
8896 (cmd_record_goto): Now extern.
8897 Remove target-specific code.
8898 Call target_goto_begin, target_goto_end, or target_goto.
8899 (_initialize_record): Move record target ops initialization to
8900 record-full.c.
8901 Change "record" command help text.
8902 Move "record restore", "record set", and "record show" commands to
8903 record-full.c.
8904 * Makefile.in (SFILES): Add record-full.c.
8905 (HFILES_NO_SRCDIR): Add record-full.h.
8906 (COMMON_OBS): Add record-full.o.
8907 * amd64-linux-tdep.c: Include record-full.h instead of record.h.
8908 * arm-tdep.c: Include record-full.h.
8909 * i386-linux-tdep.c: Include record-full.h instead of record.h.
8910 * i386-tdep.c: Include record-full.h.
8911 * infrun.c: Include record-full.h.
8912 * linux-record.c: Include record-full.h.
8913 * moxie-tdep.c: Include record-full.h.
8914 * record-full.c: Include record-full.h.
8915 Change module comment.
8916 (set_record_full_cmdlist): New.
8917 (show_record_full_cmdlist): New.
8918 (record_full_cmdlist): New.
8919 (record_goto_insn): New declaration.
8920 (record_save): New declaration.
8921 (record_check_insn_num): Change query string.
8922 (record_info): New.
8923 (record_delete): New.
8924 (record_is_replaying): New.
8925 (record_goto_entry): New.
8926 (record_goto_begin): New.
8927 (record_goto_end): New.
8928 (record_goto): New.
8929 (init_record_ops): Update.
8930 (init_record_core_ops): Update.
8931 (cmd_record_save): Rename to record_save. Remove target and arg checks.
8932 (cmd_record_start): New.
8933 (set_record_insn_max_num): Moved from record.c
8934 (set_record_full_command): New.
8935 (show_record_full_command): New.
8936 (_initialize_record_full): New.
8937
b48d48eb
MM
89382013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8939
8940 * target.h (add_deprecated_target_alias): New.
8941 * target.c (add_deprecated_target_alias): New.
8942
a950d57c
MM
89432013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8944
8945 * common/linux-btrace.c: Include sys/ptrace, sys/types, sys/wait.h,
8946 and signal.h.
8947 (linux_supports_btrace): Add kernel and
8948 cpuid check.
8949 (kernel_supports_btrace): New function.
8950 (cpu_supports_btrace): New function.
8951 (intel_supports_btrace): New function.
8952
9accd112
MM
89532013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8954
8955 * target.h (enum target_object): Add TARGET_OBJECT_BTRACE.
8956 * remote.c: Include btrace.h.
8957 (struct btrace_target_info): New struct.
8958 (remote_supports_btrace): New function.
8959 (send_Qbtrace): New function.
8960 (remote_enable_btrace): New function.
8961 (remote_disable_btrace): New function.
8962 (remote_teardown_btrace): New function.
8963 (remote_read_btrace): New function.
8964 (init_remote_ops): Add btrace ops.
8965 (enum <unnamed>): Add btrace packets.
8966 (struct protocol_feature remote_protocol_features[]): Add btrace packets.
8967 (_initialize_remote): Add packet configuration for branch tracing.
8968
c12a2917
MM
89692013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8970
8971 * features/btrace.dtd: New file.
8972 * Makefile.in (XMLFILES): Add btrace.dtd.
8973 * btrace.h (parse_xml_btrace): New declaration.
8974 * btrace.c: Include xml-support.h.
8975 (parse_xml_btrace): New function.
8976 (parse_xml_btrace_block): New function.
8977 (block_attributes): New struct.
8978 (btrace_attributes): New struct.
8979 (btrace_children): New struct.
8980 (btrace_elements): New struct.
8981
3e3aea48
MM
89822013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8983
8984 * amd64-linux-nat.c: Include btrace.h and linux-btrace.h.
8985 (amd64_linux_enable_btrace): New.
8986 (amd64_linux_disable_btrace): New.
8987 (amd64_linux_teardown_btrace): New.
8988 (_initialize_amd64_linux_nat): Initialize btrace ops.
8989 * i386-linux.nat.c: Include btrace.h and linux-btrace.h.
8990 (i386_linux_enable_btrace): New.
8991 (i386_linux_disable_btrace): New.
8992 (i386_linux_teardown_btrace): New.
8993 (_initialize_i386_linux_nat): Initialize btrace ops.
8994 * config/i386/linux.mh: Add linux-btrace.o.
8995 * config/i386/linux64.mh: Add linux-btrace.o.
8996
7c97f91e
MM
89972013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8998
8999 * common/linux_btrace.h: New file.
9000 * common/linux_btrace.c: New file.
9001 * Makefile.in (SFILES): Add btrace.c.
9002 (HFILES_NO_SRCDIR): Add common/linux-btrace.h.
9003 (COMMON_OBS): Add btrace.o.
9004 (linux-btrace.o): New rule.
9005
1999790b 90062013-03-11 Markus Metzger <markus.t.metzger@intel.com>
02d27625
MM
9007
9008 * target.h: Include btrace.h.
9009 (struct target_ops) <to_supports_btrace, to_enable_btrace,
9010 to_disable_btrace, to_teardown_btrace, to_read_btrace>: New.
9011 * target.c (target_supports_btrace): New function.
9012 (target_enable_btrace): New function.
9013 (target_disable_btrace): New function.
9014 (target_teardown_btrace): New function.
9015 (target_read_btrace): New function.
9016 * btrace.h: New file.
9017 * btrace.c: New file.
9018 * Makefile.in: Add btrace.c.
9019 * gdbthread.h: Include btrace.h.
9020 (struct thread_info): Add btrace field.
9021 * thread.c: Include btrace.h.
9022 (clear_thread_inferior_resources): Call target_teardown_btrace.
9023 * common/btrace-common.h: New file.
9024
61a31a67
JK
90252013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9026
9027 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Call also kill
9028 for CHILD, ignore PTRACE_KILL errors, move the inner block variable
9029 kill_status to outer block.
9030
05c56a9d
JK
90312013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9032
9033 Fix entry-values if the callee called a noreturn function.
9034 * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
9035 get_frame_address_in_block. Add new comment.
9036
9112db09
JK
90372013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9038
9039 Fix entry-values in C++ across CUs.
9040 * dwarf2loc.c (call_site_to_target_addr) <FIELD_LOC_KIND_PHYSNAME>: Use
9041 lookup_minimal_symbol. Add a comment.
9042 * dwarf2read.c
9043 (read_call_site_scope) <is_ref_attr> <die_is_declaration>: Prefer
9044 DW_AT_linkage_name.
9045
9b67fcec
YQ
90462013-03-08 Yao Qi <yao@codesourcery.com>
9047
9048 * tracepoint.c (_initialize_tracepoint): Indent the code.
9049
6221be90
PA
90502013-03-08 Pedro Alves <palves@redhat.com>
9051
9052 * findcmd.c (put_bits): Change type of parameter to 'gdb_byte *'.
9053 (parse_find_args, find_command): Change type of pattern buffer
9054 locals to 'gdb_byte *'.
9055
be9a119c 90562013-03-08 Stan Shebs <stan@codesourcery.com>
f6f899bf
HAQ
9057 Hafiz Abid Qadeer <abidh@codesourcery.com>
9058
9059 * NEWS: Mention set and show trace-buffer-size commands.
9060 Mention new packet.
9061 * target.h (struct target_ops): New method
9062 to_set_trace_buffer_size.
9063 (target_set_trace_buffer_size): New macro.
9064 * target.c (update_current_target): Set up new method.
9065 * tracepoint.c (trace_buffer_size): New global.
9066 (start_tracing): Send it to the target.
9067 (set_trace_buffer_size): New function.
9068 (_initialize_tracepoint): Add new setshow for trace-buffer-size.
9069 * remote.c (remote_set_trace_buffer_size): New function.
9070 (_initialize_remote): Use it.
9071 (QTBuffer:size) New remote command.
9072 (PACKET_QTBuffer_size): New enum.
9073 (remote_protocol_features): Add an entry for
9074 PACKET_QTBuffer_size.
9075
7da3ab79
TT
90762013-03-08 Tom Tromey <tromey@redhat.com>
9077
9078 * remote-m32r-sdi.c (m32r_load): Call skip_spaces on correct
9079 variable.
9080
0c1f71e7
PA
90812013-03-07 Pedro Alves <palves@redhat.com>
9082
9083 * target.c (target_read_stralloc, target_fileio_read_alloc):
9084 *Cast pointer to 'gdb_byte *' in target call.
9085
c8af03a2
PA
90862013-03-07 Pedro Alves <palves@redhat.com>
9087
9088 * corefile.c (read_memory_string): Cast pointer to gdb_byte* in
9089 call.
9090
529480d0
KS
90912013-03-07 Keith Seitz <keiths@redhat.com>
9092
9093 * breakpoint.c (catch_syscall_split_args): Use skip_spaces.
9094 (trace_pass_command): Likewise.
9095 * cli/cli-cmds.c: Include cli/cli-utils.h.
9096 (source_command): Use skip-spaces.
9097 (disassemble_command): Likewise.
9098 * findcmd.c: Include cli/cli-utils.h.
9099 (parse_find_args): Use skip_spaces.
9100 * go32-nat.c: Include cli/cli-utils.h.
9101 (go32_sldt): Use skip_spaces.
9102 (go32_sgdt): Likewise.
9103 (go32_sidt): Likewise.
9104 (go32_pde): Likewise.
9105 (go32_pte): Likewise.
9106 (go32_pte_for_address): Likewise.
9107 * infcmd.c: Include cli/cli-utils.h.
9108 (registers_info): Use skip_spaces.
9109 * linux-tdep.c (read_mapping): Use skip_spaces_const.
9110 (linux_info_proc): Likewise.
9111 * linux-thread-db.c: Include cli/cli-utils.h.
9112 (info_auto_load_libthread_db): Use skip_spaces_const.
9113 * m32r-rom.c: Include cli/cli-utils.h.
9114 (m32r_upload_command): Use skip_spaces.
9115 * maint.c: Include cli/cli-utils.h.
9116 (maintenance_translate_address): Use skip_spaces.
9117 * mi/mi-parse.c: Include cli/cli-utils.h.
9118 (mi_parse_argv): Use skip_spaces.
9119 (mi_parse): Likewise.
9120 * minsyms.c: Include cli/cli-utils.h.
9121 (msymbol_hash_iw): Use skip_spaces_const.
9122 * objc-lang.c: Include cli/cli-utils.h.
9123 (parse_selector): Use skip_spaces.
9124 (parse_method): Likewise.
9125 * python/python.c: Include cli/cli-utils.h.
9126 (python_interactive_command)[HAVE_PYTHON]: Use skip_spaces.
9127 (python_command)[HAVE_PYTHON]: Likewise.
9128 (python_interactive_command)[!HAVE_PYTHON]: Likewise.
9129 * remote-m32r-sdi.c: Include cli/cli-utils.h.
9130 (m32r_load): Use skip_spaces.
9131 * serial.c: Include cli/cli-utils.h.
9132 (serial_open): Use skip_spaces_const.
9133 * stack.c: Include cli/cli-utils.h.
9134 (parse_frame_specification_1): Use skip_spaces_const.
9135 * symfile.c: Include cli/cli-utils.h.
9136 (set_ext_lang_command): Use skip_spaces.
9137 * symtab.c: Include cli/cli-utils.h.
9138 (rbreak_command): Use skip_spaces.
9139 * thread.c (thread_name_command): Use skip_spaces.
9140 * tracepoint.c (validate_actionline): Use skip_spaces.
9141 (encode_actions_1): Likewise.
9142 (trace_find_range_command): Likewise.
9143 (trace_find_outside_command): Likewise.
9144 (trace_dump_actions): Likewise.
9145
ac91cd70
PA
91462013-03-07 Pedro Alves <palves@redhat.com>
9147
9148 * c-lang.c (parse_one_string): Cast argument to gdb_byte *.
9149 * expprint.c (print_subexp_standard): Likewise.
9150 * utils.c (host_char_to_target): Likewise.
9151 * valprint.c (generic_emit_char, generic_printstr): Likewise.
9152 * varobj.c (value_get_print_value): Change type of local to char*.
9153 Cast it gdb_byte * in call to language printer.
9154
2898e560
PA
91552013-03-07 Pedro Alves <palves@redhat.com>
9156
9157 * charset.c (struct wchar_iterator) <input>: Change type to 'const
9158 gdb_byte *'.
9159 (make_wchar_iterator): Remove cast to char*.
9160 (wchar_iterate): Change type of local.
9161
a09b4448
PA
91622013-03-07 Pedro Alves <palves@redhat.com>
9163
9164 * regcache.c (regcache_xmalloc_1): Call XCALLOC with signed char
9165 for 'regcache->register_status'.
9166
20ced3e4
PA
91672013-03-07 Pedro Alves <palves@redhat.com>
9168
c2d6a675 9169 * breakpoint.c (breakpoint_xfer_memory): Change type of local to
20ced3e4
PA
9170 int.
9171
fe106009
PA
91722013-03-07 Pedro Alves <palves@redhat.com>
9173
9174 * stap-probe.c (handle_stap_probe): Add cast to char*.
9175
8ac2c12b
PA
91762013-03-07 Pedro Alves <palves@redhat.com>
9177
9178 * linux-record.c (record_linux_system_call) <gdb_sys_msgrcv,
9179 RECORD_MSGRCV>: Pass a signed variable to
9180 regcache_raw_read_signed, instead of an unsigned one.
9181
99f0a309
PA
91822013-03-07 Pedro Alves <palves@redhat.com>
9183
9184 * remote-notif.c (notif_debug): Change type to int.
9185 * remote-notif.h (notif_debug): Likewise.
9186
964b8317
PA
91872013-03-07 Pedro Alves <palves@redhat.com>
9188
9189 * ser-tcp.c (tcp_retry_limit): Change type to unsigned int.
9190
f0cc8ad4
PA
91912013-03-07 Pedro Alves <palves@redhat.com>
9192
9193 * remote.c (hex2bin, bin2hex): Move extern declarations to ...
9194 * remote.h (hex2bin, bin2hex): ... here.
9195 * tracepoint.c (hex2bin, bin2hex): Remove extern declarations.
9196
77dec115
EZ
91972013-03-07 Eli Zaretskii <eliz@gnu.org>
9198
9199 * utils.c (initialize_utils): Improve doc strings of "set/show
9200 width", "set/show height", and "set/show pagination".
9201
741d92cf
KS
92022013-03-06 Keith Seitz <keiths@redhat.com>
9203
9204 * ax-gdb.c (gen_printf): Make FORMAT const.
9205 * ax-gdb.h (gen_printf): Likewise.
9206 * ax-general.c (ax_string): Make STR const.
9207 * ax.h (ax_string): Likewise.
9208
7b6c814e
DE
92092013-03-06 Doug Evans <dje@google.com>
9210
9211 * elfread.c (elf_symfile_read): Move debugging printf to more
9212 logical location.
9213
634334ab
PA
92142013-03-06 Pedro Alves <palves@redhat.com>
9215
9216 * python/py-utils.c (target_string_to_unicode): Delete function.
9217 * python/python-internal.h (target_string_to_unicode): Delete
9218 declaration.
9219
e482a1a7
PM
92202013-03-06 Pierre Muller <muller@sourceware.org>
9221
9222 * linespec.c (get_current_search_block): ARI fix, use (void)
9223 for empty parameter list.
9224
4eeaa230
DE
92252013-03-05 Doug Evans <dje@google.com>
9226
9227 * ada-lang.c (ada_lookup_symbol_list_worker): New function, contents
9228 of old ada_lookup_symbol_list. In !full_search case, don't
9229 search superblocks.
9230 (ada_lookup_symbol_list): Delete arg full_search, all callers
9231 updated. Call ada_lookup_symbol_list_worker.
9232 (ada_iterate_over_symbols): Call ada_lookup_symbol_list_worker.
9233 * ada-lang.h (ada_lookup_symbol_list): Update.
9234 * language.h (language_defn): Update comment for
9235 la_iterate_over_symbols.
9236 * linespec.c (iterate_over_file_blocks): New function.
9237 (iterate_over_all_matching_symtabs): Call it.
9238 (lookup_prefix_sym): Ditto.
9239 (get_current_search_block): New function.
9240 (get_search_block): Delete.
9241 (find_label_symbols): Call get_current_search_block.
9242 (add_matching_symbols_to_info): Call iterate_over_file_blocks.
9243 * symtab.c (iterate_over_symbols): Don't search superblocks.
9244
b69b1fb1
YQ
92452013-03-05 Yao Qi <yao@codesourcery.com>
9246
9247 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): Change
9248 parameter VAR's type from "unsigned int" to "int".
9249 * command.h (var_zuinteger_unlimited): Update its comments.
9250 (add_setshow_zuinteger_unlimited_cmd): Update the declaration.
9251
3c095f49
CV
92522013-03-05 Corinna Vinschen <vinschen@redhat.de>
9253
9254 * NEWS: Mention new target x86_64-*-cygwin*.
9255
b5b0b0af
CV
92562013-03-05 Corinna Vinschen <vinschen@redhat.de>
9257
9258 * configure.host: Add x86_64-*-cygwin* as host.
9259 * configure.tgt: Add x86_64-*-cygwin* as target.
9260 * config/i386/cygwin64.mh: New file.
9261
f6f99966
JK
92622013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
9263
9264 * linespec.c (decode_line_2): Fix duplicate request off by two message.
9265
33f448b1
JK
92662013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
9267
9268 * linespec.c (struct linespec_canonical_name): New.
9269 (struct linespec_state): Change canonical_names type to it.
9270 (add_sal_to_sals): Change variable canonical_name to canonical. Change
9271 xrealloc element size. Initialize the different CANONICAL fields.
9272 (canonical_to_fullform): New.
9273 (filter_results): Use it. Add variables canonical, fullform and
9274 cleanup.
9275 (struct decode_line_2_item, decode_line_2_compare_items): New.
9276 (decode_line_2): Remove variables iter and item_names, add variables
9277 items and items_count. Modify the code for these new variables.
9278
feb14725
CV
92792013-03-04 Corinna Vinschen <vinschen@redhat.com>
9280
9281 * coff-pe-read.c (read_pe_exported_syms): Don't return without
9282 calling do_cleanup.
9283
e83b17ba
HZ
92842013-03-04 Luis Machado <lgustavo@codesourcery.com>
9285
9286 * tracepoint.c (build_traceframe_info): Add code for byte order.
9287
a2d13a0d
KB
92882013-03-02 Kevin Buettner <kevinb@redhat.com>
9289
8dddcae8
KB
9290 * v850-tdep.c: (v850e2_register_name): Revise system register
9291 names to match current V850E2M architecture specifications.
9292 Update register number enum comments too.
f5aee5ee 9293
d79e58d8
JW
92942013-03-01 Jiong Wang <jiwang@tilera.com>
9295 Pedro Alves <palves@redhat.com>
9296
9297 * tilegx-tdep.c (tilegx_analyze_prologue): Limit bundle reading
9298 to END_ADDR.
9299 (tilegx_skip_prologue): Limit prologue analysis to section end.
9300
c4be5165
JK
93012013-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9302
9303 * dwarf2loc.c (call_site_find_chain_1): New variable save_callee_pc,
9304 use it.
9305
e362b510
PA
93062013-03-01 Pedro Alves <palves@redhat.com>
9307
9308 Use gdb_byte for bytes from the program being debugged.
9309
9310 * arm-tdep.c (arm_store_return_value, arm_get_longjmp_target):
9311 Change type of local 'buf' to gdb_byte.
9312 * avr-tdep.c (avr_frame_prev_register, avr_push_dummy_call): Likewise.
9313 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
9314 * cris-tdep.c (cris_sigcontext_addr)
9315 (cris_sigtramp_frame_unwind_cache): Likewise.
9316 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp)
9317 (frv_linux_sigcontext_reg_addr, frv_linux_sigtramp_frame_cache):
9318 Likewise.
9319 * frv-tdep.c (frv_pseudo_register_write, frv_analyze_prologue): Likewise.
9320 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer)
9321 (hppa32_hpux_search_dummy_call_sequence)
9322 (hppa_hpux_supply_save_state): Likewise.
9323 * hppa-linux-tdep.c (insns_match_pattern)
9324 (hppa_linux_find_global_pointer): Likewise.
9325 * hppa-tdep.c (hppa_in_function_epilogue_p)
9326 (skip_prologue_hard_way, hppa_frame_cache): Likewise.
9327 * i386-nto-tdep.c (i386nto_sigcontext_addr): Likewise.
9328 * i386fbsd-tdep.c (i386fbsd_supply_uthread)
9329 (i386fbsd_collect_uthread): Likewise.
9330 * ia64-hpux-tdep.c (ia64_hpux_push_dummy_code): Likewise.
9331 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Likewise.
9332 * ia64-tdep.c (examine_prologue, ia64_frame_cache)
9333 (ia64_frame_prev_register, ia64_sigtramp_frame_cache)
9334 (ia64_sigtramp_frame_prev_register, ia64_access_reg)
9335 (ia64_access_rse_reg, ia64_libunwind_frame_this_id)
9336 (ia64_libunwind_frame_prev_register)
9337 (ia64_libunwind_sigtramp_frame_this_id)
9338 (ia64_find_global_pointer_from_dynamic_section)
9339 (find_extant_func_descr, find_func_descr, ia64_dummy_id)
9340 (ia64_unwind_pc): Likewise.
9341 * iq2000-tdep.c (iq2000_store_return_value): Likewise.
9342 * m68hc11-tdep.c (m68hc11_push_dummy_call)
9343 (m68hc11_extract_return_value): Likewise.
9344 * m68klinux-nat.c (fetch_register, store_register): Likewise.
9345 * mep-tdep.c (mep_pseudo_cr32_read, mep_pseudo_cr32_write)
9346 (mep_get_insn, mep_push_dummy_call): Likewise.
9347 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
9348 (mips_linux_in_dynsym_stub): Likewise.
9349 * mn10300-tdep.c (mep_pseudo_cr32_write): Likewise.
9350 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
9351 * regcache.c (dump_endian_bytes): Change type of parameter 'buf'
9352 to gdb_byte.
9353 * remote-mips.c (mips_set_register): Likewise.
9354 * remote-sim.c (gdbsim_fetch_register): Likewise.
9355 * score-tdep.c (score7_fetch_inst): Change type of parameter
9356 'memblock' and local 'buf' to gdb_byte.
9357 (score7_malloc_and_get_memblock): Change return type to gdb_byte.
9358 Change type of local 'buf' to gdb_byte. Adjust.
9359 (score7_adjust_memblock_ptr): Change type of parameter 'memblock'
9360 to gdb_byte**.
9361 (score7_analyze_prologue): Change type of 'memblock' and
9362 'memblock_ptr' locals to gdb_byte*.
9363 * sh64-tdep.c (sh64_extract_return_value)
9364 (sh64_store_return_value): Change type of local 'buf' to gdb_byte.
9365 * solib-darwin.c (darwin_current_sos, darwin_read_exec_load_addr):
9366 * solib-pa64.c (pa64_solib_create_inferior_hook)
9367 (pa64_open_symbol_file_object): Remove local 'buf'.
9368 * solib-som.c (som_solib_create_inferior_hook, link_map_start)
9369 (som_open_symbol_file_object): Likewise.
9370 * solib-spu.c (spu_current_sos): Likewise.
9371 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
9372 * spu-multiarch.c (parse_spufs_run, spu_fetch_registers)
9373 (spu_store_registers): Likewise.
9374 * target.c (debug_print_register): Likewise.
9375 * tic6x-tdep.c (tic6x_get_longjmp_target): Likewise.
9376 * xstormy16-tdep.c (xstormy16_store_return_value)
9377 (xstormy16_push_dummy_call, xstormy16_resolve_jmp_table_entry)
9378 (xstormy16_find_jmp_table_entry): Likewise.
9379
75cc61ca 93802013-03-01 Jiong Wang <jiwang@tilera.com>
61d8bd0e
JW
9381
9382 * tilegx-tdep.c (tilegx_get_longjmp_target): New function.
9383 (tilegx_gdbarch_init): Install it.
9384
ddb08e9c
TT
93852013-02-28 Tom Tromey <tromey@redhat.com>
9386
9387 * python/py-arch.c (archpy_disassemble): Use PyInt_Check and
9388 PyLong_Check.
9389
62d7fb51
DE
93902013-02-28 Doug Evans <dje@google.com>
9391
9392 * python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
9393 * python/python.c (gdbpy_find_pc_line): Ditto.
9394
c4a9e8b4
TT
93952013-02-28 Tom Tromey <tromey@redhat.com>
9396
9397 * contrib/excheck.py: New file.
9398 * contrib/exsummary.py: New file.
9399 * contrib/gcc-with-excheck: New file.
9400
7f6a5dde
TT
94012013-02-28 Tom Tromey <tromey@redhat.com>
9402
9403 * python/python.c (gdbpy_print_stack): Call begin_line and
9404 fprintf_filtered inside TRY_CATCH.
9405
9e974e55
TT
94062013-02-28 Tom Tromey <tromey@redhat.com>
9407
9408 * python/python.c (gdbpy_find_pc_line): Call find_pc_line
9409 inside TRY_CATCH.
9410
dd5fa3e7
TT
94112013-02-28 Tom Tromey <tromey@redhat.com>
9412
9413 * py-finishbreakpoint.c (bpfinishpy_init): Reorganize to call
9414 frame_object_to_frame_info inside TRY_CATCH.
9415
86a3263f
TT
94162013-02-28 Tom Tromey <tromey@redhat.com>
9417
9418 * py-block.c (gdbpy_block_for_pc): Call block_for_pc inside
9419 TRY_CATCH.
9420
81b52a3a
TT
94212013-02-28 Tom Tromey <tromey@redhat.com>
9422
9423 * objfiles.h (ALL_PSPACE_OBJFILES): Remove trailing backlash.
9424
d50a0ce2
CV
94252013-02-27 Corinna Vinschen <vinschen@redhat.com>
9426
9427 * windows-nat.c: Throughout, fix format strings and casts of
9428 printf-like functions to avoid type related warnings on all
9429 platforms.
9430 (handle_output_debug_string): Fetch context information address
9431 from debug string using string_to_core_addr.
9432
e1f58301
JW
94332013-02-27 Jiong Wang <jiwang@tilera.com>
9434
9435 * regformats/reg-tilegx.dat (name): Change abi name to "tilegx".
9436 * regformats/reg-tilegx32.dat: New.
9437
4fcd89fc
JW
94382013-02-27 Jiong Wang <jiwang@tilera.com>
9439
9440 * configure.tgt (tilegx-*-linux*): Enable gdbserver.
9441
748d24e6
JW
94422013-02-27 Jiong Wang <jiwang@tilera.com>
9443
9444 * configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
9445
6c8e944d
YQ
94462013-02-27 Yao Qi <yao@codesourcery.com>
9447 Pedro Alves <palves@redhat.com>
9448
9449 * tracepoint.c (tfile_trace_find): For tfind
5f8e0b8f
MF
9450 pc/tp/range/outside, look for the next trace frame instead of
9451 always starting from frame 0.
6c8e944d 9452
acd7db30
AG
94532013-02-26 Anthony Green <green@moxielogic.com>
9454
9455 * configure.tgt: Add support for moxie-*-rtems* target.
9456
025e6dce
PA
94572013-02-25 Pedro Alves <palves@redhat.com>
9458
9459 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
9460 warning text.
9461
ca9c94ef
MR
94622013-02-24 Maciej W. Rozycki <macro@codesourcery.com>
9463
9464 * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
9465 if $fp is used as the virtual frame pointer.
9466
24c274a1
AM
94672013-02-23 Alan Modra <amodra@gmail.com>
9468
9469 * elfread.c (elf_symtab_read): Do not use udata.p here to find
9470 symbol size.
9471 * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
9472 * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
9473 * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
9474 * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
9475
bfada189
JK
94762013-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
9477
9478 Code cleanup.
9479 * elfread.c (build_id_bfd_get): Make the return type const.
9480 (build_id_verify): Make the check parameter const.
9481 (build_id_to_debug_filename): Make the build_id parameter and variable
9482 data const.
9483 (find_separate_debug_file_by_buildid): Make the variable build_id const.
9484
c0355132
AM
94852013-02-21 Alan Modra <amodra@gmail.com>
9486
9487 * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
9488
9f44fbc0
SCR
94892013-02-20 Siva Chandra Reddy <sivachandra@google.com>
9490
9491 Add a new method 'disassemble' to gdb.Architecture class.
9492 * python/py-arch.c (archpy_disassmble): Implementation of the
9493 new method gdb.Architecture.disassemble.
9494 (arch_object_methods): Add entry for the new method.
9495
b74ea3eb
JW
94962013-02-20 Jiong Wang <jiwang@tilera.com>
9497
9498 * MAINTAINERS (Write After Approval): Add myself to the list.
9499
61a672f1
PA
95002013-02-19 Pedro Alves <palves@redhat.com>
9501
9502 Garbage collect 'struct monitor_ops'::load_routine.
9503
9504 * monitor.h (struct monitor_ops) <load_routine>: Remove field.
9505 * monitor.c (monitor_load): No longer call
9506 current_monitor->load_routine.
9507 * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
9508 * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
9509 * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
9510
40e397df
PA
95112013-02-19 Pedro Alves <palves@redhat.com>
9512
9513 PR gdb/15161
9514
9515 Harmonize with generic_load.
9516
9517 * monitor.c: Include "readline/readline.h".
9518 (monitor_load): Rename parameter 'file' to 'args'. Use build_argv
9519 instead of sscanf. Use CORE_ADDR/strtoulst instead of unsigned
9520 long/strtol for the 'load_offset' local. Error out if no argument
9521 is given or if too many arguments are given. Tilde expand the
9522 passed in file name.
9523
f698ca8e
KT
95242013-02-19 Kai Tietz <ktietz@redhat.com>
9525
9526 PR gdb/15161
9527 * symfile.c (load_section_data): Change type of load_offset
9528 to CORE_ADDR.
9529 (generic_load): User strtoulst instead of strtoul for conversion
9530 of load_offset.
9531
3361b059
WL
95322013-02-19 Jiong Wang <jiwang@tilera.com>
9533
9534 * tilegx-tdep.c (tilegx_analyze_prologue): add check for
9535 for return address, "lr" register, saved on stack.
9536 * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
9537 after we invoke tilegx_analyze_prologue.
9538
3e9d5130
WL
95392013-02-19 Jiong Wang <jiwang@tilera.com>
9540
bb1bcd86
WL
9541 * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
9542
3361b059 95432013-02-19 Jiong Wang <jiwang@tilera.com>
bb1bcd86 9544
b74ea3eb 9545 * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
3e9d5130 9546
4aaf2503
WL
95472013-02-19 Jiong Wang <jiwang@tilera.com>
9548
b74ea3eb 9549 * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
4aaf2503
WL
9550 (tilegx_write_pc): New function.
9551 (tilegx_cannot_reference_register): Return zero if REGNO
9552 is TILEGX_FAULTNUM_REGNUM.
9553 (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
9554 (tilegx_register_name): Add handling of "faultnum" register.
9555 * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
9556 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
9557 handling of TILEGX_FAULTNUM_REGNUM.
9558 * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
9559
bc23a956
WL
95602013-02-19 Jiong Wang <jiwang@tilera.com>
9561
9562 * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
b74ea3eb 9563 should be aligned to 64bit.
bc23a956 9564
42f45f1a
KT
95652013-02-19 Kai Tietz <ktietz@redhat.com>
9566
9567 * windows-nat.c (windows_xfer_memory): Fix debug-output
9568 for LLP64.
9569
6ce4c112
LL
95702013-02-19 Lei Liu <lei.liu2@windriver.com>
9571
9572 * mips-linux-nat.c (mips64_linux_regsets_store_registers):
9573 Don't check DSP register number if HAVE_DSP is not set.
9574
30e8ee25
AM
95752013-02-19 Alan Modra <amodra@gmail.com>
9576
9577 * elfread.c (struct build_id): Delete. Use struct elf_build_id
9578 throughout file instead.
9579 (build_id_bfd_get): Update to use new elf_tdata build_id field.
9580 Don't xmalloc return value.
9581 (build_id_verify): Similarly. Don't xfree.
9582 (build_id_to_debug_filename): Update.
9583 (find_separate_debug_file_by_buildid): Update, don't xfree.
9584
4c9ad8c2
TT
95852013-02-18 Tom Tromey <tromey@redhat.com>
9586
9587 PR gdb/15102:
9588 * dwarf2read.c (read_subrange_type): Use result of
9589 'check_typedef'.
9590
983dc440
YQ
95912013-02-16 Yuanhui Zhang <asmwarrior@gmail.com>
9592
9593 * frame.c: Remove one extra white space after #include
9594 directive.
9595
7fb2b84a
JK
95962013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9597
9598 * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
9599
edceb2a9
JK
96002013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9601
9602 * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
9603 and dir commands into an if block.
9604
e81b7af8
TT
96052013-02-15 Sanimir Agovic <sanimir.agovic@intel.com>
9606
9607 * python/py-breakpoint (struct pybp_code): Use int instead of
9608 enum type_code.
9609
f5911ea1
HAQ
96102013-02-15 Pedro Alves <pedro@codesourcery.com>
9611 Hafiz Abid Qadeer <abidh@codesourcery.com>
9612
9613 * NEWS: Mention new field "trace-file".
9614 * tracepoint.c (trace_status_mi): Output "trace-file" field.
9615 (tfile_open): Record the trace file's filename in the trace
9616 status.
9617 (tfile_files_info): Mention the name of the trace file.
9618 Check the "filename" field explicitely.
9619 (trace_status_command): Explicitely check "filename" field.
9620 (trace_find_command): Ditto.
9621 (trace_find_pc_command): Ditto.
9622 (trace_find_tracepoint_command): Ditto.
9623 (trace_find_line_command): Ditto.
9624 (trace_find_range_command): Ditto.
9625 (trace_find_outside_command): Ditto.
9626 * tracepoint.h (struct trace_status) <from_file>: Rename it
9627 to "filename" and make it hold the trace file's filename
9628 instead of a boolean.
9629 * remote.c (remote_get_trace_status): Initialize "filename"
9630 field with NULL instead of 0.
9631
796cb314
YQ
96322013-02-15 Yao Qi <yao@codesourcery.com>
9633
9634 * remote.c: Fix a typo.
9635
42e79b1d
PM
96362013-02-14 Pierre Muller <muller@sourceware.org>
9637
9638 * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
9639
baea0dae
PA
96402013-02-14 Pedro Alves <palves@redhat.com>
9641
9642 * utils.c (savestring): Don't #undef it. Move function to
9643 common/common-utils.c.
9644 * common/common-utils.c: Include gdb_string.h.
9645 (savestring): Move here from utils.c.
9646 * common/common-utils.h (savestring): Declare.
9647
57c3b6ed
PA
96482013-02-14 Pedro Alves <palves@redhat.com>
9649
9650 * utils.c (savestring): Rename parameter 'size' to 'len'.
9651
d6c44983
YZ
96522013-02-14 Pedro Alves <palves@redhat.com>
9653 Yufeng Zhang <yufeng.zhang@arm.com>
9654
9655 * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
9656 (aarch64_inferior_data, struct aarch64_inferior_data):
9657 Delete.
9658 (struct aarch64_process_info): New.
9659 (aarch64_process_list): New global.
9660 (aarch64_find_process_pid, aarch64_add_process)
9661 (aarch64_process_info_get): New functions.
9662 (aarch64_inferior_data_get): Delete.
9663 (aarch64_process_info_get): New function.
9664 (aarch64_forget_process): New function.
9665 (aarch64_get_debug_reg_state): New parameter 'pid'. Reimplement.
9666 (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
9667 aarch64_get_debug_reg_state.
9668 (aarch64_notify_debug_reg_change): Use iterate_over_lwps
9669 instead of linux_nat_iterate_watchpoint_lwps.
9670 (aarch64_linux_new_fork): New function.
9671 (aarch64_linux_child_post_startup_inferior): Use
9672 aarch64_forget_process instead of aarch64_init_debug_reg_state.
9673 (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
9674 (aarch64_linux_remove_hw_breakpoint)
9675 (aarch64_handle_aligned_watchpoint)
9676 (aarch64_handle_unaligned_watchpoint)
9677 (aarch64_linux_insert_watchpoint)
9678 (aarch64_linux_remove_watchpoint)
9679 (aarch64_linux_stopped_data_address): Adjust to pass the current
9680 process id to aarch64_debug_reg_state.
9681 (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
9682 linux_nat_new_fork hook, and aarch64_forget_process as
9683 linux_nat_forget_process hook; remove the call to
9684 register_inferior_data_with_cleanup.
9685
4819b3f8
PA
96862013-02-14 Pedro Alves <palves@redhat.com>
9687
9688 * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
9689 EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
9690 lval_memory.
9691
1773c82c
HAQ
96922013-02-14 Pedro Alves <pedro@codesourcery.com>
9693 Hafiz Abid Qadeer <abidh@codesourcery.com>
9694
9695 * tracepoint.h (validate_trace_state_variable_name): Declare.
9696 * tracepoint.c (validate_trace_state_variable_name): New.
9697 (trace_variable_command): Parse the trace state variable's name
9698 without using parse_expression. Do several validations.
9699 * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
9700 trace state variable's name with parse_expression. Validate it.
9701
53778a97
YQ
97022013-02-14 Yao Qi <yao@codesourcery.com>
9703
9704 * infcmd.c (breakpoint_proceeded): Remove it.
9705
7b3ae3a6
YQ
97062013-02-14 Yao Qi <yao@codesourcery.com>
9707
9708 * tracepoint.c (end_actions_pseudocommand): Make it static.
9709 (while_stepping_pseudocommand): Likewise.
9710 * tracepoint.h (end_actions_pseudocommand): Remove the
9711 declaration.
9712 (while_stepping_pseudocommand): Likewise.
9713
64580925
YQ
97142013-02-14 Yao Qi <yao@codesourcery.com>
9715
9716 * cli/cli-decode.c (help_cmd): Remove the declaration of
9717 "cmdlist".
9718 (help_all): Likewise.
9719
26cb8b7c
PA
97202013-02-13 Pedro Alves <palves@redhat.com>
9721
9722 * amd64-linux-nat.c (update_debug_registers_callback):
9723 Update comment.
9724 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
9725 iterate_over_lwps.
9726 (amd64_linux_prepare_to_resume): Pass the lwp's pid to
9727 i386_debug_reg_state.
9728 (amd64_linux_new_fork): New function.
9729 (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
9730 linux_nat_new_fork hook, and i386_forget_process as
9731 linux_nat_forget_process hook.
9732 * i386-linux-nat.c (update_debug_registers_callback):
9733 Update comment.
a8256ea1 9734 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
26cb8b7c
PA
9735 iterate_over_lwps.
9736 (i386_linux_prepare_to_resume): Pass the lwp's pid to
9737 i386_debug_reg_state.
9738 (i386_linux_new_fork): New function.
9739 (_initialize_i386_linux_nat): Install i386_linux_new_fork as
9740 linux_nat_new_fork hook, and i386_forget_process as
9741 linux_nat_forget_process hook.
9742 * i386-nat.c (i386_init_dregs): Delete.
9743 (i386_inferior_data, struct i386_inferior_data):
9744 Delete.
9745 (struct i386_process_info): New.
9746 (i386_process_list): New global.
9747 (i386_find_process_pid, i386_add_process, i386_process_info_get):
9748 New functions.
9749 (i386_inferior_data_get): Delete.
9750 (i386_process_info_get): New function.
9751 (i386_debug_reg_state): New parameter 'pid'. Reimplement.
9752 (i386_forget_process): New function.
9753 (i386_cleanup_dregs): Rewrite.
9754 (i386_update_inferior_debug_regs, i386_insert_watchpoint)
9755 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
9756 (i386_stopped_data_address, i386_insert_hw_breakpoint)
9757 (i386_remove_hw_breakpoint): Adjust to pass the current process id
9758 to i386_debug_reg_state.
9759 (i386_use_watchpoints): Don't register inferior data.
9760 * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
9761 adjust comment.
9762 (i386_forget_process): Declare.
9763 * linux-fork.c (delete_fork): Call linux_nat_forget_process.
9764 * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
9765 New static globals.
9766 (linux_child_follow_fork): Don't call linux_nat_new_thread here.
9767 (add_initial_lwp): New, factored out from ...
9768 (add_lwp): ... this. Don't check the number of lwps before
9769 calling linux_nat_new_thread.
9770 (linux_nat_iterate_watchpoint_lwps): Delete.
9771 (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
9772 (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
9773 forks and vforks.
9774 (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
9775 initial lwp.
9776 (linux_nat_kill, linux_nat_mourn_inferior): Call
9777 linux_nat_forget_process.
9778 (linux_nat_set_new_fork, linux_nat_set_forget_process)
9779 (linux_nat_forget_process): New functions.
9780 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
9781 type.
9782 (linux_nat_iterate_watchpoint_lwps): Delete declaration.
9783 (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
9784 types.
9785 (linux_nat_set_new_fork, linux_nat_set_forget_process)
9786 (linux_nat_forget_process): New declarations.
9787
9788 * amd64fbsd-nat.c (super_mourn_inferior): New global.
9789 (amd64fbsd_mourn_inferior): New function.
9790 (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
9791 * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
9792
5befea72
MS
97932013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
9794
55015247
YQ
9795 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
9796 Adding _().
5befea72 9797
1d3ffd6b
MS
97982013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
9799
9800 * aarch64-linux-nat.c (debug_reg_change_callback)
9801 (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
9802 %s and phex().
9803
6eb04473
MS
98042013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
9805
9806 * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
9807 with LONGEST.
9808
a016fc87
HAQ
98092013-02-13 Pedro Alves <palves@redhat.com>
9810 Hafiz Abid Qadeer <abidh@codesourcery.com>
9811
9812 * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
9813
e234dfaf
TT
98142013-02-12 Tom Tromey <tromey@redhat.com>
9815
9816 PR symtab/11464:
9817 * c-exp.y (lex_one_token): Initialize other fields of yylval on
9818 NAME return.
9819 (classify_inner_name): Remove 'first_name' argument, add
9820 'context'. Remove unused variable.
9821 (yylex): Explicitly maintain the context type. Exit loop earlier
9822 if NAME result is seen.
9823
0b1afbb3
PA
98242013-02-12 Pedro Alves <palves@redhat.com>
9825
9826 * amd64-darwin-tdep.c: Add (C) after Copyright.
9827 * cli/cli-cmds.h: Ditto.
9828 * cli/cli-decode.c: Ditto.
9829 * cli/cli-decode.h: Ditto.
9830 * cli/cli-dump.c: Ditto.
9831 * cli/cli-dump.h: Ditto.
9832 * cli/cli-interp.c: Ditto.
9833 * cli/cli-logging.c: Ditto.
9834 * cli/cli-script.c: Ditto.
9835 * cli/cli-script.h: Ditto.
9836 * cli/cli-setshow.c: Ditto.
9837 * cli/cli-setshow.h: Ditto.
9838 * cli/cli-utils.c: Ditto.
9839 * cli/cli-utils.h: Ditto.
9840 * config/alpha/nm-osf3.h: Ditto.
9841 * config/djgpp/djconfig.sh: Ditto.
9842 * config/i386/nm-fbsd.h: Ditto.
9843 * config/i386/nm-i386gnu.h: Ditto.
9844 * config/nm-linux.h: Ditto.
9845 * config/nm-nto.h: Ditto.
9846 * config/rs6000/nm-rs6000.h: Ditto.
9847 * config/sparc/nm-sol2.h: Ditto.
9848 * darwin-nat-info.c: Ditto.
9849 * dfp.c: Ditto.
9850 * dfp.h: Ditto.
9851 * gdb-demangle.h: Ditto.
9852 * i386-darwin-nat.c: Ditto.
9853 * i386-darwin-tdep.c: Ditto.
9854 * linux-fork.h: Ditto.
9855 * m32c-tdep.c: Ditto.
9856 * microblaze-linux-tdep.c: Ditto.
9857 * microblaze-rom.c: Ditto.
9858 * microblaze-tdep.c: Ditto.
9859 * microblaze-tdep.h: Ditto.
9860 * mips-linux-tdep.h: Ditto.
9861 * ppc-ravenscar-thread.c: Ditto.
9862 * ppc-ravenscar-thread.h: Ditto.
9863 * prologue-value.c: Ditto.
9864 * prologue-value.h: Ditto.
9865 * ravenscar-thread.c: Ditto.
9866 * ravenscar-thread.h: Ditto.
9867 * sparc-ravenscar-thread.c: Ditto.
9868 * sparc-ravenscar-thread.h: Ditto.
9869 * tilegx-linux-tdep.c: Ditto.
9870 * unwind_stop_reasons.def: Ditto.
9871 * windows-nat.h: Ditto.
9872 * xtensa-linux-tdep.c: Ditto.
9873 * xtensa-xtregs.c: Ditto.
9874 * regformats/regdat.sh: Ditto.
9875 * regformats/regdef.h: Ditto.
9876
6c01dd94
PA
98772013-02-12 Pedro Alves <palves@redhat.com>
9878
9879 * break-catch-sig.c: Update copyright years.
9880
b65a2bd9
SCR
98812013-02-11 Siva Chandra Reddy <sivachandra@google.com>
9882
9883 Add support for a destructor for ui_out data and use it to
9884 provide a ui_out destructor.
9885 * ui-out.h: Declare the new ui_out destructor.
9886 (ui_out_impl): Add a field for data destructor in ui_out_impl.
9887 * ui-out.c (default_data_destroy): Add a default data destructor
9888 which does nothing.
9889 (default_ui_out_impl): Set the new data_destroy field to
9890 default_data_destroy
9891 (uo_data_destroy): Local function which invokes the data
9892 destructor if present.
9893 (clear_table): Local function which clears the table data of a
9894 ui_out object.
9895 (ui_out_destroy): Public function which frees a ui_out object.
9896 (ui_out_table_end): Use the new clear_table function.
9897 * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
9898 NULL.
9899 * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
9900 to NULL.
9901
c2792f5a
DE
99022013-02-11 Doug Evans <dje@google.com>
9903
9904 * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
9905 (printf_decfloat): New function. Broken out from ui_printf.
9906 Remove unnecessary code to shift the entire format string down.
9907 (printf_pointer): New function.
9908 (ui_printf): Code to print C strings, wide C strings, decfloats,
9909 and pointers moved to separate functions.
9910
d9e98382
SDJ
99112013-02-11 Sergio Durigan Junior <sergiodj@redhat.com>
9912
9913 * valops.c (value_assign): Handling bitfield offset in
9914 `lval_internalvar_component' case.
9915
4ff3ce77
DE
99162013-02-08 Doug Evans <dje@google.com>
9917
9918 * common/format.c (parse_format_string): Fix whitespace.
9919
901900c4
MGD
99202013-02-08 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
9921
9922 * stack.c (return_command): Work around uninitialized variable
9923 warning.
9924
b5dbc8d4
YZ
99252013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
9926
9927 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
9928 number of the registers from 36 to 34.
9929
51d66578
MS
99302013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
9931
9932 * NEWS: Mention new AArch64 native and target support.
9933
176b1c95
MS
99342013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
9935
9936 * MAINTAINERS (Write After Approval): Add myself.
9937
9d19df75
MS
99382013-02-08 Jim MacArthur <jim.macarthur@arm.com>
9939 Marcus Shawcroft <marcus.shawcroft@arm.com>
9940 Nigel Stephens <nigel.stephens@arm.com>
9941 Yufeng Zhang <yufeng.zhang@arm.com>
9942
9943 * aarch64-linux-nat.c: New file.
9944 * config/aarch64/linux.mh: New file.
9945 * configure.host: Add AArch64.
9946 * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
9947
7e1e0340
DE
99482013-02-07 Doug Evans <dje@google.com>
9949
9950 * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
9951 disassemble command.
9952
45e25a36
MS
99532013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
9954
9955 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
9956 set_gdbarch_fetch_tls_load_module_address.
9957
bbfdfe1c
DM
99582013-02-06 David S. Miller <davem@davemloft.net>
9959
9960 * sparc-tdep.c (sparc32_return_value): Handle writing return value when
9961 using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
9962 * value.c (struct_return_convention): New function.
9963 (using_struct_return): Implement in terms of struct_return_convention.
9964 * value.h (struct_return_convention): Declare.
9965 * stack.c (return_command): Allow successful overriding of the return
9966 value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
9967
bc9abe4a
TT
99682013-02-06 Tom Tromey <tromey@redhat.com>
9969
9970 * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
9971 outside of TRY_CATCH.
9972
134a2066
YQ
99732013-02-06 Yao Qi <yao@codesourcery.com>
9974
9975 * mi/mi-interp.c: Include "tracepoint.h".
9976 (mi_tsv_modified): Declare.
9977 (mi_tsv_created, mi_tsv_deleted): Update declaration.
9978 (mi_interpreter_init): Call observer_attach_tsv_modified.
9979 (mi_tsv_modified): New.
9980 (mi_tsv_created, mi_tsv_deleted): Update.
9981 * tracepoint.c (trace_variable_command): Call
9982 observer_notify_tsv_modified if the initial value of tsv is
9983 changed.
9984 (delete_trace_state_variable): Call
9985 observer_notify_tsv_deleted earlier.
9986 (trace_variable_command): Caller update.
9987 (create_tsv_from_upload): Likewise.
9988 * observer.sh: Declare "struct trace_state_variable".
9989
9990 * NEWS: Mention the new MI notification "=tsv-modified".
9991
59be2b6a
DE
99922013-02-05 Doug Evans <dje@google.com>
9993
9994 * completer.c (location_completer): Fix typo in comment.
9995
d30113d4
JK
99962013-02-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9997
9998 * breakpoint.c (add_location_to_breakpoint): Insert the location with
9999 ADDRESS sorted.
10000
14ac654f
MS
100012013-02-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
10002
10003 * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
10004 Refactor if statement to avoid trailing || operator.
10005
543bf33d
AT
100062013-02-05 Andreas Tobler <andreast@fgznet.ch>
10007
10008 * NEWS: Add PowerPC FreeBSD as a new native configuration.
10009
dc18f110
AT
100102013-02-04 Andreas Tobler <andreast@fgznet.ch>
10011
10012 * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
10013 * configure.host: Add powerpc*-*-freebsd* target.
10014 * configure.tgt: Add target info for powerpc*-*-freebsd*.
10015 * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
10016 * config/powerpc/fbsd.mh: New file.
10017
b3ac9c77
SDJ
100182013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
10019 Denys Vlasenko <dvlasenk@redhat.com>
10020 Pedro Alves <palves@redhat.com>
10021
10022 * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
10023 (struct elf_internal_linux_prpsinfo): Forward declare.
10024 * gdbarch.h, gdbarch.c: Regenerate.
10025 * linux-tdep.c: Include `cli/cli-utils.h'.
10026 (linux_fill_prpsinfo): New function.
10027 (linux_make_corefile_notes): Use linux_fill_prpsinfo. If there's
10028 an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
10029 elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
10030 depending on gdbarch pointer bitness.
10031 * ppc-linux-tdep.c: Include elf-bfd.h.
10032 (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
10033 on 32-bit.
10034
176eb98c
MS
100352013-02-04 Jim MacArthur <jim.macarthur@arm.com>
10036 Marcus Shawcroft <marcus.shawcroft@arm.com>
10037 Nigel Stephens <nigel.stephens@arm.com>
10038 Yufeng Zhang <yufeng.zhang@arm.com>
10039
10040 * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
10041
cf0dbd6f
MS
100422013-02-04 Jim MacArthur <jim.macarthur@arm.com>
10043 Marcus Shawcroft <marcus.shawcroft@arm.com>
10044 Nigel Stephens <nigel.stephens@arm.com>
10045 Yufeng Zhang <yufeng.zhang@arm.com>
10046
10047 * aarch64-newlib-tdep.c: New file.
10048 * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
10049 aarch64*-*-elf.
10050 * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
10051 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
10052 (ALLDEPFILES): Add aarch64-newlib-tdep.c.
10053 * osabi.c (gdb_osabi_names): Add "Newlib".
10054
1ae3db19
MS
100552013-02-04 Jim MacArthur <jim.macarthur@arm.com>
10056 Marcus Shawcroft <marcus.shawcroft@arm.com>
10057 Nigel Stephens <nigel.stephens@arm.com>
10058 Yufeng Zhang <yufeng.zhang@arm.com>
10059
10060 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
10061 (ALLDEPFILES): Add aarch64-linux-tdep.c.
10062 * aarch64-linux-tdep.c: New file.
10063 * aarch64-linux-tdep.h: New file.
10064 * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
10065 * configure.tgt: Add aarch64-none-linux-gnu.
10066
07b287a0
MS
100672013-02-04 Jim MacArthur <jim.macarthur@arm.com>
10068 Marcus Shawcroft <marcus.shawcroft@arm.com>
10069 Nigel Stephens <nigel.stephens@arm.com>
10070 Yufeng Zhang <yufeng.zhang@arm.com>
10071
10072 * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
10073 (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
10074 (ALLDEPFILES): Add aarch64-tdep.c.
10075 * aarch64-tdep.c: New file.
10076 * aarch64-tdep.h: New file.
10077 * configure.tgt: Add AArch64.
10078 * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
10079 (aarch64-expedite): New definition.
10080 * features/aarch64-core.xml: New file.
10081 * features/aarch64-fpu.xml: New file.
10082 * features/aarch64-without-fpu.c: New file (generated).
10083 * features/aarch64-without-fpu.xml: New file.
10084 * features/aarch64.c: New file (generated).
10085 * features/aarch64.xml: New file.
10086 * regformats/aarch64-without-fpu.dat: New file (generated).
10087 * regformats/aarch64.dat: New file (generated).
10088
0f1b18ab
JK
100892013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10090
10091 * contrib/expect-read1.c: New file.
10092 * contrib/expect-read1.sh: New file.
10093
233d95b5
JK
100942013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10095
10096 * dwarf2read.c (file_file_name): New function with code from
10097 file_full_name.
10098 (file_full_name): Move most of the code to file_file_name.
10099 (macro_start_file): Rename variable full_name to file_name and use
10100 file_file_name for it. Add comp_dir parameter to new_macro_table.
10101 * macrocmd.c (show_pp_source_pos): New variable fullname. Replace any
10102 macro_source_file->filename access by macro_source_fullname call.
10103 * macroscope.c (_initialize_macroscope): Update the new_macro_table
10104 caller.
10105 * macrotab.c (struct macro_table): New field comp_dir.
10106 (macro_include): New variables link_fullname and source_fullname.
10107 Replace any macro_source_file->filename access by macro_source_fullname
10108 call.
10109 (macro_lookup_inclusion): Remove the partial filenames checking code.
10110 (check_for_redefinition): New variables source_fullname and
10111 found_key_fullname. Replace any macro_source_file->filename access by
10112 macro_source_fullname call.
10113 (macro_undef): New variables source_fullname and key_fullname. Replace
10114 any macro_source_file->filename access by macro_source_fullname call.
10115 (macro_lookup_definition): New variables retval and source_fullname.
10116 Replace any macro_source_file->filename access by macro_source_fullname
10117 call.
10118 (foreach_macro): New variable key_fullname. Replace any
10119 macro_source_file->filename access by macro_source_fullname call.
10120 (foreach_macro_in_scope): New variable datum_fullname. Replace any
10121 macro_source_file->filename access by macro_source_fullname call.
10122 (new_macro_table): Add parameter comp_dir. Initialize T with it.
10123 (macro_source_fullname): New function.
10124 * macrotab.h (struct macro_source_file): Extent the filename field
10125 comment.
10126 (new_macro_table): New parameter comp_dir, add a comment for it.
10127 (macro_source_fullname): new declaration.
10128
da235a7c
JK
101292013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10130
10131 * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
10132 this_real_name to outer block. Use it also for
10133 compare_filenames_for_search.
10134 (dw2_expand_symtabs_matching): New variable this_real_name. Use it
10135 with dw2_get_real_path for file_matcher, considering also
10136 BASENAMES_MAY_DIFFER.
10137 (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
10138
fbd9ab74
JK
101392013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10140
10141 * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
10142 to the file_matcher parameter. Pass 0 to it.
10143 (dwarf2_create_include_psymtab): Copy also DIRNAME.
10144 * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
10145 NULL psymtab_to_fullname result.
10146 (psymtab_to_fullname): Remove variable r. Never return NULL, assemble
10147 an expected filename instead.
10148 (expand_symtabs_matching_via_partial): Add basenames parameter to the
10149 file_matcher parameter. Call also psymtab_to_fullname, after newly
10150 considering BASENAMES_MAY_DIFFER.
10151 * source.c (rewrite_source_path): Remove static.
10152 * source.h (rewrite_source_path): New declaration.
10153 * symfile.h (struct quick_symbol_functions): Add basenames parameter to
10154 the expand_symtabs_matching field. Comment it.
10155 * symtab.c (file_matches): New function comment. Add parameter
10156 basenames, implement it.
10157 (search_symbols_file_matches): Add basenames parameter. Update the
10158 file_matches caller.
10159 (search_symbols): Match FILES also against symtab_to_fullname.
10160 Optimize it for BASENAMES_MAY_DIFFER.
10161
56d397a3
JK
101622013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10163
10164 * source.c (print_source_lines_base): Print for TUI also "fullname".
10165 * tui/tui-data.c (init_content_element): Change tui_locator_element
10166 field to full_name.
10167 * tui/tui-data.h (struct tui_locator_element): Likewise.
10168 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
10169 tui_update_locator_filename calls to tui_update_locator_fullname.
10170 Replace symtab->filename refererence by symtab_to_fullname call.
10171 * tui/tui-out.c (tui_field_string): Check for "fullname" now.
10172 * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
10173 field to full_name. Replace symtab->filename refererence by
10174 symtab_to_fullname call.
10175 (tui_show_symtab_source): Rename parameter to fullname. Change
10176 tui_locator_element field to full_name.
10177 * tui/tui-stack.c: Include source.h.
10178 (tui_set_locator_filename): Rename the declaration to ...
10179 (tui_set_locator_fullname): ... here. Rename its parameter to
10180 fullname, updates its comment.
10181 (tui_set_locator_info): Rename its parameter to fullname.
10182 (tui_set_locator_filename): Rename the definition to ...
10183 (tui_set_locator_fullname): ... here. Rename its parameter to
10184 fullname, updates its comment. Change tui_locator_element field to
10185 full_name.
10186 (tui_set_locator_info): Rename its parameter to fullname.
10187 (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
10188 (tui_update_locator_filename): Rename to ...
10189 (tui_update_locator_fullname): ... here. Rename callee to
10190 tui_set_locator_fullname.
10191 (tui_show_frame_info): Replace symtab->filename refererence by
10192 symtab_to_fullname call.
10193 * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
10194 (tui_update_locator_fullname): ... here.
10195 * tui/tui-winsource.c (tui_display_main): Rename the callee to
10196 tui_update_locator_fullname. Replace symtab->filename refererence by
10197 symtab_to_fullname call.
10198 * tui/tui.c (tui_show_source): Rename its parameter to fullname.
10199 Rename the callee to tui_update_locator_fullname.
10200 * tui/tui.h (tui_show_source): Rename its parameter to fullname.
10201
05cba821
JK
102022013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10203
10204 * ada-lang.c (user_select_syms): Replace symtab->filename refererences
10205 by symtab_to_filename_for_display calls.
10206 * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
10207 (clear_command): New variable sal_fullname, initialize it. Replace
10208 compare_filenames_for_search by filename_cmp with sal_fullname.
10209 (say_where, update_static_tracepoint): Replace symtab->filename
10210 refererences by symtab_to_filename_for_display calls.
10211 * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
10212 Likewise.
10213 * dwarf2read.c: Include source.h.
10214 (fixup_go_packaging): Replace symtab->filename refererences by
10215 symtab_to_filename_for_display calls.
10216 * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
10217 Replace symtab->filename refererences by symtab_to_filename_for_display
10218 calls.
10219 (create_sals_line_offset, convert_linespec_to_sals): New variable
10220 fullname, initialize it, replace symtab->filename reference by the
10221 variable.
10222 * linux-fork.c: Include source.h.
10223 (info_checkpoints_command): Replace symtab->filename refererences by
10224 symtab_to_filename_for_display calls.
10225 * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
10226 by symtab_to_filename_for_display calls.
10227 * mdebugread.c: Include source.h.
10228 (psymtab_to_symtab_1): Replace symtab->filename refererences by
10229 symtab_to_filename_for_display calls.
10230 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
10231 (mi_cmd_file_list_exec_source_files): Likewise.
10232 * printcmd.c: Include source.h.
10233 (build_address_symbolic): Replace symtab->filename refererences by
10234 symtab_to_filename_for_display calls.
10235 * psymtab.c (partial_map_symtabs_matching_filename)
10236 (read_psymtabs_with_fullname): Call compare_filenames_for_search also
10237 with psymtab_to_fullname.
10238 * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
10239 by symtab_to_filename_for_display calls.
10240 (stpy_get_filename): New variable filename, initialize it, use instead
10241 of symtab->filename refererences.
10242 (salpy_str): Make variable filename const char *. Replace
10243 symtab->filename refererences by symtab_to_filename_for_display calls.
10244 * skip.c: Include source.h and filenames.h.
10245 (skip_file_command): Remove const from the symtab variable. Replace
10246 symtab->filename refererences by symtab_to_fullname call.
10247 (function_name_is_marked_for_skip): New variables searched_for_fullname
10248 and fullname. Use them to search also with symtab's fullname.
10249 * source.c (find_source_lines): Replace symtab->filename refererences
10250 by symtab_to_filename_for_display calls.
10251 (print_source_lines_base): New variable filename, use it instead of
10252 symtab->filename. Replace symtab->filename refererences by
10253 symtab_to_filename_for_display calls.
10254 (line_info, forward_search_command): Replace symtab->filename
10255 refererences by symtab_to_filename_for_display calls.
10256 (reverse_search_command): Replace symtab->filename refererences by
10257 symtab_to_filename_for_display calls. New variable filename for it.
10258 * stack.c (frame_info): Likewise.
10259 * symmisc.c: Include source.h.
10260 (dump_objfile, dump_symtab_1, maintenance_print_symbols)
10261 (maintenance_info_symtabs): Replace symtab->filename refererences by
10262 symtab_to_filename_for_display calls.
10263 * symtab.c (iterate_over_some_symtabs): Call
10264 compare_filenames_for_search also with symtab_to_fullname.
10265 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
10266 symtab->filename refererences by symtab_to_filename_for_display calls.
10267 (find_line_symtab): Replace symtab->filename refererences by
10268 symtab_to_filename_for_display calls.
10269 (file_matches): Replace filename_cmp by compare_filenames_for_search.
10270 (print_symbol_info): Make the last parameter const char *. New
10271 variable s_filename. Use it in the function.
10272 (symtab_symbol_info): Make the last_filename variable const char *.
10273 Replace symtab->filename refererences by symtab_to_filename_for_display
10274 calls.
10275 (rbreak_command): New variable fullname. Use it. Replace
10276 symtab->filename refererence by symtab_to_filename_for_display call.
10277 * tracepoint.c (set_traceframe_context, trace_find_line_command)
10278 (print_one_static_tracepoint_marker): Replace symtab->filename
10279 refererences by symtab_to_filename_for_display calls.
10280 * tui/tui-source.c (tui_set_source_content): New variables filename and
10281 s_filename. Replace symtab->filename refererences by this variable.
10282 Replace other symtab->filename refererences by
10283 symtab_to_filename_for_display calls.
10284
1b56eb55
JK
102852013-02-03 Eldar Gaynetdinov <hal9000ed2k@gmail.com>
10286 Jan Kratochvil <jan.kratochvil@redhat.com>
10287
10288 Add a new variable that controls a way in which filenames are
10289 displayed.
10290 * NEWS (set filename-display): New entry.
10291 * source.c (filename_display_basename, filename_display_relative)
10292 (filename_display_absolute, filename_display_kind_names)
10293 (filename_display_string, show_filename_display_string)
10294 (symtab_to_filename_for_display): New.
10295 (_initialize_source): Added initialization of 'filename-display'
10296 variable.
10297 * source.h (symtab_to_filename_for_display): Added declaration.
10298 * stack.c (print_frame): Added new variable and calling of a new
10299 function and condition with this variable. Changed third argument of
10300 calling of a function.
10301
aa079c93
JK
103022013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10303
10304 * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
10305 Rename field reference filename to fullname.
10306 * tui/tui-data.h (struct tui_source_info): Rename field filename to
10307 fullname. New comment for it.
10308 * tui/tui-source.c (tui_set_source_content): Rename field reference
10309 filename to fullname. Initialize field by symtab_to_fullname now.
10310 * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
10311 reference filename to fullname. Use symtab_to_fullname during
10312 comparison.
10313
652a8996
JK
103142013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10315
10316 Code cleanup.
10317 * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
10318 (dw2_expand_symtabs_with_fullname): ... here. Rename parameter
10319 filename to fullname. Rename variable this_name to this_fullname.
10320 Lowercase FILENAME_CMP call.
10321 (dw2_find_symbol_file): New comment for the returned string.
10322 (dwarf2_gdb_index_functions): Rename the function to
10323 dw2_expand_symtabs_with_fullname.
10324 * psymtab.c (read_psymtabs_with_filename): Rename to ...
10325 (read_psymtabs_with_fullname): ... here. Rename parameter filename to
10326 fullname.
10327 (psym_functions): Rename the function to read_psymtabs_with_fullname.
10328 * symfile.h (struct quick_symbol_functions): Rename field
10329 expand_symtabs_with_filename to expand_symtabs_with_fullname and its
10330 parameter filename to fullname. Document returned string meaning for
10331 find_symbol_file.
10332 * symtab.c (find_line_symtab): Rename the called function to
10333 expand_symtabs_with_fullname.
10334
af529f8f
JK
103352013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10336
10337 Code cleanup.
10338 * breakpoint.c (clear_command): Remove variable is_abs, unify the
10339 call of filename_cmp with compare_filenames_for_search.
10340 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
10341 is_abs, unify the call of FILENAME_CMP with
10342 compare_filenames_for_search. New gdb_asserts for real_path and name.
10343 Unify the call of compare_filenames_for_search with FILENAME_CMP.
10344 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
10345 * symfile.h (struct quick_symbol_functions): Extend the comment for
10346 map_symtabs_matching_filename.
10347 * symtab.c (compare_filenames_for_search): Remove the function comment
10348 relative path requirement. Handle absolute filenames, with a comment.
10349 (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
10350 FILENAME_CMP with compare_filenames_for_search. New gdb_asserts for
10351 real_path and name. Unify the call of compare_filenames_for_search
10352 with FILENAME_CMP.
10353 (iterate_over_symtabs): New gdb_assert on REAL_PATH.
10354
2f202fde
JK
103552013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10356
10357 Code cleanup.
10358 * breakpoint.c (print_breakpoint_location): Replace bp_location field
10359 source_file references by symtab field references. Remove variables
10360 sal and fullname.
10361 (momentary_breakpoint_from_master, add_location_to_breakpoint):
10362 (clear_command, say_where): Replace bp_location field source_file
10363 references by symtab field references.
10364 (bp_location_dtor): Remove the source_file reference.
10365 (update_static_tracepoint): Replace bp_location field source_file
10366 references by symtab field references.
10367 (breakpoint_free_objfile): New function.
10368 * breakpoint.h (struct bp_location): Extend the comment for line_number.
10369 Replace the field source_file by field symtab, extend its comment.
10370 (breakpoint_free_objfile): New declaration.
10371 * objfiles.c (free_objfile): Call breakpoint_free_objfile.
10372 * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
10373 field source_file references by symtab field references.
10374
f5b95b50
JK
103752013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10376
10377 Replace xfullpath calls by gdb_realpath calls.
10378 * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
10379 function comment.
10380 * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
10381 Remove it from the iterate_over_some_symtabs call.
10382 (dw2_map_symtabs_matching_filename): Remove parameter full_path.
10383 Remove it from the dw2_map_expand_apply calls, remove a block handling
10384 it.
10385 * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
10386 Remove it from the iterate_over_some_symtabs call.
10387 (partial_map_symtabs_matching_filename): Remove parameter full_path.
10388 Remove it from the partial_map_expand_apply calls, remove a block
10389 handling it. Drop gdb_realpath call and cleanups from the real_path
10390 handling.
10391 * source.c (openp): Drop the comment part about xfullpath. Replace
10392 xfullpath calls by gdb_realpath calls.
10393 (find_and_open_source): Replace xfullpath call by gdb_realpath call.
10394 * symfile.h (struct quick_symbol_functions): Remove parameter full_path
10395 from method map_symtabs_matching_filename and its comment.
10396 * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
10397 gdb_realpath call.
10398 * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
10399 remove it also from the function comment, remove a block handling it.
10400 Drop gdb_realpath call and cleanups from the real_path handling.
10401 (iterate_over_symtabs): Drop variable full_path and its use.
10402 * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
10403 * utils.c (xfullpath): Remove.
10404 * utils.h (xfullpath): Remove.
10405
d78489bf
AT
104062013-02-01 Andreas Tobler <andreast@fgznet.ch>
10407
10408 * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
10409 (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
10410 (ALLDEPFILES): Add ppc64-tdep.c.
10411 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
10412 ppc64-tdep.o to gdb_target_obs.
10413 * ppc64-tdep.h: New file.
10414 * ppc64-tdep.c: New file.
10415 (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
10416 ppc-linux-tdep.c to here.
10417 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
10418 (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
10419 (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
10420 (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
10421 from ppc-linux-tdep.c to here.
10422 (ppc64_convert_from_func_ptr_addr): Rename from
10423 ppc64_linux_convert_from_func_ptr_addr to
10424 ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
10425 here.
10426 * rs6000-tdep.c:
10427 (read_insn): Move from ppc-linux-tdep.c to here.
10428 (insns_match_pattern, insn_d_field, insn_ds_field): Move
10429 from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
10430 * ppc-linux-tdep.c: Include ppc64-tdep.h.
10431 Removed above functions.
10432 (ppc_linux_init_abi): Adjust.
10433
8db60374
AR
104342013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
10435
10436 * ada-valprint.c (ada_print_floating): Remove unused 'len'.
10437
f2e5f4ce
AR
104382013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
10439
10440 * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
10441
c1f7d745
PA
104422013-02-01 Pedro Alves <palves@redhat.com>
10443
10444 * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
10445 * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
10446
8a92335b
JK
104472013-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10448
10449 * elfread.c (elf_symfile_read): Limit separate debug info additions to
10450 files with no separate debug info.
10451 * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
10452 * symfile.c (read_symbols): Call find_separate_debug_file_in_section
10453 only for files with no separate debug info.
10454
8eacb197
TT
104552013-01-31 Tom Tromey <tromey@redhat.com>
10456
10457 * jit.c (jit_program_space_data): Rename from jit_inferior_data;
10458 change type.
10459 (struct jit_program_space_data): Rename from jit_inferior_data.
10460 Update comments.
10461 (get_jit_program_space_data): Rename from get_jit_inferior_data.
10462 Change return type. Attach data to program space.
10463 (jit_program_space_data_cleanup): Rename from
10464 jit_inferior_data_cleanup; change argument type.
10465 (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
10466 change type.
10467 (jit_register_code): Update.
10468 (jit_update_inferior_cache): Remove.
10469 (jit_breakpoint_deleted): Get jit data from the location's program
10470 space.
10471 (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
10472 'ps_data', change type.
10473 (jit_inferior_init, jit_breakpoint_re_set_internal)
10474 (jit_event_handler): Update.
10475 (free_objfile_data): Get data from objfile's program space.
10476 (_initialize_jit): Update.
10477
f25c0135
TT
104782013-01-31 Tom Tromey <tromey@redhat.com>
10479
10480 PR gdb/13987:
10481 * jit.c (struct jit_inferior_data) <cached_code_address,
10482 jit_breakpoint>: New fields.
10483 (jit_breakpoint_re_set_internal): Fix logging. Only create
10484 breakpoint if cached address has changed.
10485 (jit_update_inferior_cache, jit_breakpoint_deleted): New
10486 functions.
10487 (_initialize_jit): Register breakpoint deleted observer.
10488
974a734b
AR
104892013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10490
10491 * infrun.c (handle_syscall_event): Remove unused gdbarch.
10492 (save_infcall_suspend_state): Ifdef out unused inf.
10493 (restore_infcall_suspend_state): Ifdef out unused inf.
10494 * jit.c (jit_register_code): Remove unused i, b, inf_data.
10495 (jit_frame_sniffer): Remove unused inf_data.
10496
df54f8eb
AR
104972013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10498
10499 * c-exp.y (classify_inner_name): Remove unused type.
10500 * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
10501 in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
10502 need_escape.
10503 (c_get_string): Remove unused kind.
10504 * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
10505
5799c0b9
AR
105062013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10507
10508 * charset.c (intermediate_encoding): Remove unused i.
10509 * completer.c (signal_completer): Remove unused i.
10510 * continuations.c (discard_my_continuations_1): Remove unused
10511 continuation_ptr.
10512 * corelow.c (core_close): Remove unuseD name.
10513 (get_core_siginfo): Remove unused pid.
10514 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
10515 i, cps.
10516 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
10517 (loclist_describe_location): Remove unused first.
10518 * event-top.c (command_line_handler): Remove unused got_eof.
10519 * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
10520 (resize_section_table): Remove unused old_value.
10521 * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
10522 * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
10523 * i386-tdep.c (i386_process_record): Remove unused rex.
10524 * infcmd.c (get_return_value): Remove unused uiout.
10525 * jv-lang.c (type_from_class): Remove unused is_array.
10526 * jv-valprint.c (java_val_print): Remove unused i.
10527 * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
10528 * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
10529 * m2-typeprint.c (m2_print_type): Remove unused code.
10530 * macroexp.c (get_character_constant): Remove unused body_start.
10531 (macro_stringify): Remove unused result.
10532 * objc-lang.c (find_methods): Remove unused gdbarch.
10533 * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
10534 * regcache.c (regcache_cooked_read): Remove unused gdbarch.
10535 * stack.c (print_frame_args): Remove unused summary.
10536 * thread.c (thread_apply_command): Remove unused p.
10537 * valarith.c (value_x_unop): Remove unused mangle_ptr.
10538 * valops.c (search_struct_method): Remove unused skip.
10539 * valprint.c (generic_val_print): Remove unused byte_order.
10540 * varobj.c (varobj_update): Remove unused changed.
10541 * cli/cli-cmds.c (complete_command): Remove unused next_item.
10542 (alias_command): Remove unused c.
10543 * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
10544 * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
10545 format.
10546 (mi_cmd_data_write_memory): Remove unused word_format.
10547 (mi_cmd_data_write_memory_bytes): Remove unused r.
10548 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
10549 p_start, p_end.
10550 * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
10551 * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
10552 line_width.
10553
c656bca5
AR
105542013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10555
10556 * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
10557 * symtab.c (iterate_over_symtabs): Remove unused s.
10558 (find_pc_sect_symtab): Remove unused pspAce.
10559 (find_pc_sect_line): Remove unused alt_symtab.
10560 (find_pcs_for_symtab_line): Remove unused ix, previous_function.
10561 (completion_list_add_name): Remove unused newsize.
10562
7078baeb
TT
105632013-01-31 Tom Tromey <tromey@redhat.com>
10564
10565 PR c++/14998:
10566 * dwarf2read.c (read_tag_ptr_to_member_type): Handle
10567 TYPE_CODE_FUNC.
10568
c2e8b827
AR
105692013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10570
10571 * target.c (target_read_string): Remove unused origlen.
10572
0e43993a
AR
105732013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10574
10575 * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
10576 * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
10577 * ax-general.c (ax_print): Remove unused is_float.
10578 * blockframe.c (block_innermost_frame): Remove unused start, end.
10579 * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
10580
765a97ab
AR
105812013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10582
10583 * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
10584 (svr4_read_so_list): Remove unused lmo.
10585 * solib-target.c (solib_target_relocate_section_addresses): Remove
10586 unused flags.
10587
a99dad3d
TT
105882013-01-30 Tom Tromey <tromey@redhat.com>
10589
10590 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
10591
3bff1ecd
TT
105922013-01-30 Tom Tromey <tromey@redhat.com>
10593
10594 * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
10595 * utils.c (gnu_debuglink_crc32): Remove.
10596 * utils.h (gnu_debuglink_crc32): Don't declare.
10597
7d455152
TT
105982013-01-30 Tom Tromey <tromey@redhat.com>
10599
10600 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
10601 (read_structure_type, read_enumeration_type): Remove cast.
10602
abee88f2
TT
106032013-01-30 Tom Tromey <tromey@redhat.com>
10604
10605 * dwarf2read.c (read_namespace_type): Remove cast.
10606 (read_typedef): Likewise.
10607
8d9878a4
TT
106082013-01-29 Tom Tromey <tromey@redhat.com>
10609
10610 * dwarf2read.c (free_dwo_file): Remove assert.
10611
a543d2a9
TT
106122013-01-29 Tom Tromey <tromey@redhat.com>
10613
10614 * value.c (deprecated_set_value_modifiable): Remove.
10615 * value.h (deprecated_set_value_modifiable): Remove.
10616
bed911e5
DE
106172013-01-28 Doug Evans <dje@google.com>
10618
10619 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
10620 to addresses from dwo files.
10621
28c64fc2
SCR
106222013-01-25 Siva Chandra Reddy <sivachandra@google.com>
10623
10624 * valops.c (find_overload_match): Remove unused argument 'lax'.
10625 * value.h: Remove unused argument 'lax' from the declaration of
10626 find_overload_match.
10627 * eval.c (value_subexp_standard): Do not pass a 'lax' argument
10628 to find_overload_match.
10629 * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
10630 argument to find_overload_match.
10631
4d4ec4e5
TT
106322013-01-25 Tom Tromey <tromey@redhat.com>
10633
10634 * dwarf2read.c (processing_has_namespace_info): Remove.
10635 (struct dwarf2_cu) <processing_has_namespace_info>: New field.
10636 (process_die, read_func_scope, dwarf2_start_symtab)
10637 (new_symbol_full): Update.
10638
195a3f6c
TT
106392013-01-25 Tom Tromey <tromey@redhat.com>
10640
10641 * cp-namespace.c (cp_set_block_scope): Remove.
10642 * cp-support.h (cp_set_block_scope): Remove.
10643 * dbxread.c: Include block.h.
10644 (cp_set_block_scope): New function.
10645 (process_one_symbol): Update.
10646 * dwarf2read.c (read_func_scope): Use block_set_scope.
10647
8ba0730a
PA
106482013-01-25 Pedro Alves <palves@redhat.com>
10649
10650 * remote.c (add_current_inferior_and_thread): Tweak comment.
10651
12aaed36
TT
106522013-01-25 Tom Tromey <tromey@redhat.com>
10653
10654 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
10655 (cp_add_using_directive): Add 'copy_names' argument.
10656 * cp-support.h (cp_add_using_directive): Update.
10657 (struct using_direct) <import_src, import_dest, alias,
10658 declaration>: Now const.
10659 * dwarf2read.c (read_import_statement): Use obconcat.
10660 Don't copy names passed to cp_add_using_directive.
10661
7fc75ca7
TT
106622013-01-25 Tom Tromey <tromey@redhat.com>
10663
10664 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
10665
3405876a
PA
106662013-01-25 Pedro Alves <palves@redhat.com>
10667
10668 * remote.c (stop_reply_extract_thread): New.
10669 (add_current_inferior_and_thread): New parameter 'wait_status'.
10670 Handle it.
10671 (remote_start_remote): Pass wait status to
10672 add_current_inferior_and_thread.
10673 (extended_remote_run): Update comment.
10674 (extended_remote_create_inferior_1): Pass wait status to
10675 add_current_inferior_and_thread.
10676
8954db33
AB
106772013-01-25 Andrew Burgess <aburgess@broadcom.com>
10678 Ulrich Weigand <uweigand@de.ibm.com>
10679
10680 * valarith.c (value_vector_widen): New function for replicating a
10681 scalar into a vector.
10682 (value_binop): Use value_vector_widen to widen scalar to vector
10683 rather than casting, this better matches gcc C behaviour.
10684 * valops.c (value_casst): Update logic for casting between vector
10685 types, and for casting from scalar to vector, try to match gcc C
10686 behaviour.
10687 * value.h (value_vector_widen): Declare.
10688 * opencl-lang.c (opencl_value_cast): New opencl specific casting
10689 function, handle special case for casting scalar to vector.
10690 (opencl_relop): Use opencl_value_cast.
10691 (evaluate_subexp_opencl): Use opencl_value_cast instead of
10692 value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
10693 in order to use opencl_value_cast.
10694
843b20dc
YQ
106952013-01-25 Yao Qi <yao@codesourcery.com>
10696
10697 * event-loop.c: Include "queue.h".
10698 (gdb_event_p): New typedef.
10699 (DECLARE_QUEUE_P): Use.
10700 (DEFINE_QUEUE_P): Use.
10701 (async_queue_event): Remove.
10702 (gdb_event_xfree): New.
10703 (initialize_event_loop): New.
10704 (process_event): Use QUEUE macros.
10705 (event_queue): Remove.
10706 (gdb_wait_for_event): Caller update.
10707 (check_async_event_handlers): Likewise.
10708 (poll_timers): Likewise.
10709 * event-loop.h (initialize_event_loop): Declare.
10710 * event-loop.c (gdb_event_xfree): New.
10711 * top.c (gdb_init): Call initialize_event_loop.
10712
20ad8856
YQ
107132013-01-25 Yao Qi <yao@codesourcery.com>
10714
10715 * event-loop.c (async_queue_event): Remove one parameter
10716 'position'. Remove code handling 'position' == TAIL.
10717 (gdb_wait_for_event): Caller update.
10718 (check_async_event_handlers): Caller update.
10719 (poll_timers): Caller update.
10720 * event-loop.h (enum queue_position): Remove.
10721
3bbbe775
MK
107222013-01-25 Maxim Kuvyrkov <maxim@kugelworks.com>
10723
10724 * MAINTAINERS: Update my email.
10725
a87d9ac4
YQ
107262013-01-25 Yao Qi <yao@codesourcery.com>
10727
10728 * main.c (print_gdb_help): Remove "--epoch" from the help
10729 message.
10730
2077afdd
TD
107312013-01-24 Ulrich Weigand  <uweigand@de.ibm.com>
10732
10733 * symtab.c (skip_prologue_using_sal): Consider a file
10734 change the same as an increased line number
10735
63da4037
TD
107362013-01-24 Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
10737
30e8ee25 10738 * MAINTAINERS (Write After Approval): Add myself to the list.
63da4037 10739
45e6c716
TT
107402013-01-24 Tom Tromey <tromey@redhat.com>
10741
10742 * ada-lang.h (ada_decode_symbol): Make return type const.
10743 * ada-lang.c (ada_decode_symbol): Likewise.
10744
b1ae631a
DE
107452013-01-23 Doug Evans <dje@google.com>
10746
10747 * linespec.c (find_linespec_symbols): Make static.
10748
55a78401
SDJ
107492013-01-23 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
10750
10751 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
10752 type on float conversion for complex type.
10753
bea883fd
SCR
107542013-01-23 Siva Chandra Reddy <sivachandra@google.com>
10755
10756 Add a new class gdb.Architecture which exposes GDB's
10757 internal representation of architecture via GDB Python API.
10758 * Makefile.in: Add entries corresponding to the new file
10759 python/py-arch.c.
10760 * NEWS (Python Scripting): Add entries for the new class
10761 gdb.Architecture and the new method gdb.Frame.architecture.
10762 * python/py-arch.c: Implement gdb.Architecture class.
10763 * python/py-frame.c (frapy_arch): Implement the method
10764 gdb.Frame.architecture().
10765 (frame_object_methods): Add 'architecture' to the method table.
10766 * python/python-internal.h: Add declarations of new utility
10767 functions.
10768 * python/python.c (_initialize_python): Initialize
10769 gdb.Architecture class.
10770
796a7ff8
DE
107712013-01-23 Doug Evans <dje@google.com>
10772
10773 Work around binutils/15021.
10774 * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
10775 type_unit_group out of union s. All uses updated.
10776 (read_index_from_section): Watch for index version 8.
10777 (follow_die_sig): If using .gdb_index version <= 7, record the TU as
10778 an imported symtab.
10779 (write_psymtabs_to_index): Increment version number to 8.
10780
0928e93d
PA
107812013-01-22 Pedro Alves <palves@redhat.com>
10782
10783 * annotate.c (breakpoint_changed): Skip if breakpoint is not
10784 user-visible.
10785
9c97429f
PA
107862013-01-22 Pedro Alves <palves@redhat.com>
10787
10788 * annotate.c (annotate_breakpoints_changed): Rename to ...
10789 (annotate_breakpoints_invalid): ... this. Make static.
10790 (breakpoint_changed): Adjust.
10791 (_initialize_annotate): Always install the observers. Install a
10792 "breakpoint_created" observer.
10793 * annotate.h (annotate_breakpoints_changed): Delete declaration.
10794 * breakpoint.c (set_breakpoint_condition)
10795 (breakpoint_set_commands, do_map_commands_command)
10796 (init_raw_breakpoint, clear_command, set_ignore_count)
10797 (enable_breakpoint_disp): No longer call
10798 annotate_breakpoints_changed.
10799
bd00c694
PA
108002013-01-22 Pedro Alves <palves@redhat.com>
10801
10802 * annotate.c: Include "inferior.h".
10803 (frames_invalid_emitted)
10804 (breakpoints_invalid_emitted): New globals.
10805 (async_background_execution_p): New function.
10806 (annotate_breakpoints_changed, annotate_frames_invalid): Skip
10807 emitting the annotation if it has already been emitted.
10808 (annotate_display_prompt): New function.
10809 * annotate.h (annotate_display_prompt): New declaration.
10810 * event-top.c: Include annotate.h.
10811 (display_gdb_prompt): Call annotate_display_prompt.
10812
187d10dd
PA
108132013-01-22 Pedro Alves <palves@redhat.com>
10814
10815 * annotate.c (ignore_count_changed): Delete.
10816 (annotate_breakpoints_changed): Don't clear ignore_count_changed.
10817 (annotate_ignore_count_change): Delete.
10818 (annotate_stopped): Don't emit a delayed breakpoints-changed
10819 annotation.
10820 * annotate.h (annotate_ignore_count_change): Delete.
10821 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
10822 annotate_ignore_count_change.
10823
d84cf7eb
TT
108242013-01-22 Tom Tromey <tromey@redhat.com>
10825
10826 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
10827 require_rvalue for a register location.
10828
8f1d5693
MK
108292013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
10830
10831 * breakpoint.c (print_one_breakpoint_location): Add MI
10832 field 'thread-groups' when printing a breakpoint.
10833 (output_thread_groups): New function.
10834
aa6199c6
SCR
108352013-01-21 Siva Chandra Reddy <sivachandra@google.com>
10836
10837 * python/lib/gdb/commands/explore.py
10838 (CompoundExplorer.explore_expr): Correct the name of a method
10839 being invoked.
10840 (ExploreTypeCommand.invoke): Add a missing 'return'.
10841
d2afef13
TT
108422013-01-21 Tom Tromey <tromey@redhat.com>
10843
10844 * gdb_obstack.h (obconcat): Move declaration here, from...
10845 * symfile.h (obconcat): ... here.
10846 * gdb_obstack.c: New file.
10847 (obconcat): Move from...
10848 * symfile.c (obconcat): ... here.
10849 * Makefile.in (SFILES): Add gdb_obstack.c.
10850 (COMMON_OBS): Add gdb_obstack.o.
10851
10f0c4bb
TT
108522013-01-21 Tom Tromey <tromey@redhat.com>
10853
10854 * symfile.h (obsavestring): Don't declare.
10855 * symfile.c (obsavestring): Remove.
10856 * ada-exp.y: Use obstack_copy0, not obsavestring.
10857 * ada-lang.c: Use obstack_copy0, not obsavestring.
10858 * coffread.c: Use obstack_copy0, not obsavestring.
10859 * cp-namespace.c: Use obstack_copy0, not obsavestring.
10860 * dbxread.c: Use obstack_copy0, not obsavestring.
10861 * dwarf2read.c: Use obstack_copy0, not obsavestring.
10862 * jit.c: Use obstack_copy0, not obsavestring.
10863 * mdebugread.c: Use obstack_copy0, not obsavestring.
10864 * psymtab.c: Use obstack_copy0, not obsavestring.
10865 * stabsread.c: Use obstack_copy0, not obsavestring.
10866 * xcoffread.c: Use obstack_copy0, not obsavestring.
10867
86f62fd7
TT
108682013-01-21 Tom Tromey <tromey@redhat.com>
10869
10870 * dwarf2read.c (fixup_go_packaging): Save package name
10871 on objfile obstack.
10872 * gdbtypes.c (init_type): Don't copy name.
10873
15d034d0
TT
108742013-01-21 Tom Tromey <tromey@redhat.com>
10875
10876 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
10877 const.
10878 (struct attribute) <u.str>: Now const.
10879 (struct fnfieldlist) <name>: Now const.
10880 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
10881 (partial_die_parent_scope): Make return type const.
10882 (partial_die_full_name, add_partial_symbol): Update.
10883 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
10884 'name' const.
10885 (find_file_and_directory): Make 'name' and 'comp_dir' const.
10886 (read_file_scope, read_func_scope, dwarf2_add_field)
10887 (dwarf2_add_member_fn, read_structure_type)
10888 (process_enumeration_scope, read_array_type, read_module_type)
10889 (read_base_type, read_subrange_type): Update.
10890 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
10891 (new_symbol_full, guess_full_die_structure_name): Update.
10892 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
10893 (dwarf2_name): Return const type.
10894 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
10895 const.
10896
748e18ae
TT
108972013-01-21 Tom Tromey <tromey@redhat.com>
10898
10899 * gdbtypes.c (init_type): Make 'name' const.
10900 * gdbtypes.h (init_type): Update.
10901
46212e0b
TT
109022013-01-21 Tom Tromey <tromey@redhat.com>
10903
10904 * buildsym.c (patch_subfile_names): Use set_last_source_file.
10905 (start_symtab): Make 'name' and 'dirname' const. Use
10906 set_last_source_file.
10907 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
10908 (last_source_file): Define. Now static.
10909 (set_last_source_file, get_last_source_file): New functions.
10910 * buildsym.h (last_source_file): Don't declare.
10911 (start_symtab): Update.
10912 (set_last_source_file, get_last_source_file): Declare.
10913 * coffread.c (complete_symtab): Use set_last_source_file.
10914 (coff_end_symtab): Likewise.
10915 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
10916 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
10917 set_last_source_file.
10918 (process_one_symbol): Use get_last_source_file.
10919 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
10920 (psymtab_to_symtab_1): Use get_last_source_file.
10921 * xcoffread.c (process_linenos): Use get_last_source_file.
10922 (complete_symtab): Use set_last_source_file.
10923 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
10924 (scan_xcoff_symtab): Use set_last_source_file.
10925
9d2ceabe
TT
109262013-01-21 Tom Tromey <tromey@redhat.com>
10927
10928 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
10929 (symbol_set_names): Remove casts. Handle field const-ness.
10930
cfc594ee
TT
109312013-01-21 Tom Tromey <tromey@redhat.com>
10932
10933 * dwarf2read.c (new_symbol_full): Remove cast.
10934 * symtab.c (symbol_set_demangled_name): Make 'name' const.
10935 * symtab.h (symbol_set_demangled_name): Update.
10936
5484b13a
TT
109372013-01-21 Tom Tromey <tromey@redhat.com>
10938
10939 * main.c (captured_main): Call bfd_init.
10940
1605ef26
TT
109412013-01-21 Tom Tromey <tromey@redhat.com>
10942
10943 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
10944 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
10945 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
10946 * NEWS: Update.
10947
3b74cdc3
JK
109482013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10949
10950 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
10951
5a352474
JK
109522013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10953
10954 Fix gdb.fortran/common-block.exp crash in PIE mode.
10955 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
10956 LOC_COMMON_BLOCK.
10957 * f-valprint.c (info_common_command_for_block): Expect
10958 LOC_COMMON_BLOCK in gdb_assert.
10959 * symtab.h (struct general_symbol_info): Update comment for the
10960 common_block member.
10961 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
10962 (enum address_class): New member LOC_COMMON_BLOCK.
10963
c60797fd
DB
109642013-01-18 David Blaikie <dblaikie@gmail.com>
10965
10966 * MAINTAINERS (Write After Approval): Add "David Blaikie".
0cae7dfb 10967
46f35228
TT
109682013-01-18 Tom Tromey <tromey@redhat.com>
10969
10970 PR c++/14999:
10971 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
10972 Call require_rvalue.
10973
257e7a09
YQ
109742013-01-18 Yao Qi <yao@codesourcery.com>
10975
10976 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
10977 (dbx_read_symtab): New declaration.
10978 (dbx_psymtab_to_symtab): Delete.
10979 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
10980 Rename parameter PST to SELF. Exchanged two parameters.
10981 (start_psymtab): Caller update.
10982 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
10983 (dwarf2_read_symtab): New declaration.
10984 (dwarf2_psymtab_to_symtab): Delete.
10985 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
10986 Rename parameter PST to SELF. Exchanged two parameters.
10987 (create_partial_symtab): Caller update.
10988 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
10989 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
10990 Rename parameter PST to SELF. Exchanged two parameters.
10991 (parse_partial_symbols, new_psymtab): Caller update.
10992 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
10993 two parameters.
10994 * psymtab.c (psymtab_to_symtab): Caller update.
10995 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
10996 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
10997 Rename parameter PST to SELF. Exchanged two parameters.
10998 (xcoff_start_psymtab): Caller update.
10999
0de5618e
YQ
110002013-01-18 Yao Qi <yao@codesourcery.com>
11001
11002 * infrun.c (proceed): Rename local variable 'oneproc' to
11003 'force_step'.
11004
5c04624b
DE
110052013-01-17 Doug Evans <dje@google.com>
11006
848e3e78
DE
11007 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
11008 (dw2_build_type_unit_groups): Delete. All uses updated.
11009
5c04624b
DE
11010 * symtab.h (struct symbol_search): Add comment.
11011
d84fca2c
JK
110122013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
11013
11014 * symtab.c (compare_filenames_for_search): New comment for
11015 HAS_DRIVE_SPEC.
11016
6108433d
TT
110172013-01-17 Tom Tromey <tromey@redhat.com>
11018
11019 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
11020
c89ffd86
JK
110212013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
11022
11023 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
11024 initialize it by existing make_cleanup. Call new do_cleanups.
11025
db2b2972
TT
110262013-01-17 Tom Tromey <tromey@redhat.com>
11027
11028 * cp-abi.c (cp_abi_completer): New function.
11029 (_initialize_cp_abi): Set completer for "set cp-abi".
11030
be7d37a2
TT
110312013-01-17 Tom Tromey <tromey@redhat.com>
11032
11033 * mem-break.c: Remove obsolete comment.
11034 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
11035
c9fb1240
SD
110362012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
11037
11038 * jit.c (jit_reader_load_command): Interpret the jit reader name
11039 as an absolute path if it begins with a forward slash.
11040
db334a01
SD
110412012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
11042
11043 PR gdb/14550
11044
11045 * jit.c (finalize_symtab): Ensure that only the global block has a
11046 NULL superblock.
11047
7d928dac
PA
110482013-01-17 Pedro Alves <palves@redhat.com>
11049
11050 * acinclude.m4: Include ../config/plugins.m4,
11051 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
11052 * Makefile.in (aclocal_m4_deps): Update.
11053 * aclocal.m4: Renegerate.
11054
fb8cf7c5
DE
110552013-01-16 Doug Evans <dje@google.com>
11056
11057 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
11058
ab04a2af
TT
110592013-01-16 Pedro Alves <palves@redhat.com>
11060 Tom Tromey <tromey@redhat.com>
11061
11062 PR cli/7221:
11063 * NEWS: Add "catch signal".
11064 * breakpoint.c (base_breakpoint_ops): No longer static.
11065 (bpstat_explains_signal): New function.
11066 (init_catchpoint): No longer static.
11067 (base_breakpoint_explains_signal): New function.
11068 (base_breakpoint_ops): Initialize new field.
11069 * breakpoint.h (enum bpstat_signal_value): New.
11070 (struct breakpoint_ops) <explains_signal>: New field.
11071 (bpstat_explains_signal): Remove macro, declare as function.
11072 (base_breakpoint_ops, init_catchpoint): Declare.
11073 * break-catch-sig.c: New file.
11074 * inferior.h (signal_catch_update): Declare.
11075 * infrun.c (signal_catch): New global.
11076 (handle_syscall_event): Update for change to
11077 bpstat_explains_signal.
11078 (handle_inferior_event): Likewise. Always handle random signals
11079 via bpstats.
11080 (signal_cache_update): Check signal_catch.
11081 (signal_catch_update): New function.
11082 (_initialize_infrun): Initialize signal_catch.
11083 * Makefile.in (SFILES): Add break-catch-sig.c.
11084 (COMMON_OBS): Add break-catch-sig.o.
11085
8ac3646f
TT
110862013-01-16 Tom Tromey <tromey@redhat.com>
11087
11088 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
11089 (print_one_catch_solib, print_one_catch_syscall)
11090 (print_one_catch_exec, print_one_exception_catchpoint): Emit
11091 "catch-type".
11092
5a18e302
YQ
110932013-01-16 Yao Qi <yao@codesourcery.com>
11094
11095 * printcmd.c (current_display_number): Make it static.
11096
3f01d0d0
YQ
110972013-01-16 Yao Qi <yao@codesourcery.com>
11098
11099 * infcmd.c (step_once): Don't check '!single_inst' as it was
11100 checked before.
11101
1ed59174
JK
111022013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11103
11104 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
11105
44478ab3
TT
111062013-01-14 Tom Tromey <tromey@redhat.com>
11107
11108 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
11109 set command.
11110 * command.h (add_setshow_string_noescape_cmd): Update.
11111 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
11112 (complete_set_gnutarget): New function.
11113 (_initialize_core): Set the "set gnutarget" completer.
11114
06d66ee9
TT
111152013-01-14 Tom Tromey <tromey@redhat.com>
11116
11117 PR symtab/14442:
11118 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
11119 (c_type_print_modifier): Likewise.
11120 * dwarf2read.c (read_tag_restrict_type): New function.
11121 (read_type_die_1): Handle DW_TAG_restrict_type.
11122 * gdbtypes.c (make_restrict_type): New function.
11123 (recursive_dump_type): Handle TYPE_RESTRICT.
11124 * gdbtypes.h (enum type_flag_values): Renumber.
11125 (enum type_instance_flag_value): Add
11126 TYPE_INSTANCE_FLAG_RESTRICT.
11127 (TYPE_RESTRICT): New macro.
11128 (make_restrict_type): Declare.
11129
c9bf0622
TT
111302013-01-14 Tom Tromey <tromey@redhat.com>
11131
11132 PR symtab/14931:
11133 * psymtab.c (struct psymtab_state): New.
11134 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
11135 functions.
11136 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
11137 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
11138
44d594fd
PA
111392013-01-14 Richard Sharman <richard_sharman@mitel.com>
11140 Pedro Alves <palves@redhat.com>
11141
11142 PR remote/14786
11143
11144 * remote.c (remote_threads_info): Make a copy of the reply from
11145 qfThreadInfo and use that instead of rs->buf.
11146
442e4d9c
YQ
111472013-01-14 Yao Qi <yao@codesourcery.com>
11148
11149 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
11150 (dbx_psymtab_to_symtab): Likewise.
11151 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
11152 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
11153 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
11154
5b12a61c
JK
111552013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
11156
11157 * parse.c (parse_exp_in_context): New variable inner_chain. Call
11158 make_cleanup_restore_current_language. Call set_language. Move
11159 OLD_CHAIN and INNER_CHAIN cleanups.
11160 * utils.c (do_restore_current_language)
11161 (make_cleanup_restore_current_language): New functions.
11162 * utils.h (make_cleanup_restore_current_language): New declaration.
11163
f0a4b570
JK
111642013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
11165
11166 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
11167 non-existing files.
11168
57b3c00c
JK
11169 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
11170 non-existing files if FILENAME is already absolute.
11171
daefa854
JK
111722013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11173
11174 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
11175 fputs_filtered. Append trailing newline.
11176
ca9c6ee2
YQ
111772013-01-11 Yao Qi <yao@codesourcery.com>
11178 Stan Shebs <stan@codesourcery.com>
11179
11180 * psymtab.c (init_psymbol_list): Clarify the comment.
11181
f28045c2
YQ
111822013-01-11 Yao Qi <yao@codesourcery.com>
11183
11184 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
11185 (update_dprintf_command_list): Assert that 'printf_line' is
11186 non-null. Remove condition check.
11187
da5132d3
JK
111882013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11189
11190 Code cleanup.
11191 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
11192 type const char *.
11193 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
11194 const char *.
11195 * tui/tui-source.h (tui_source_is_displayed): Likewise.
11196
843e694d
AG
111972013-01-09 Anthony Green <green@moxielogic.com>
11198
11199 * cp-abi.c (cplus_print_vtable): Don't return value from void
11200 function.
11201 * ada-lang.c (re_set_catch_assert): Ditto.
11202
da51c347
DE
112032013-01-09 Doug Evans <dje@google.com>
11204
11205 * symfile.h (quick_symbol_functions): Delete member
11206 pre_expand_symtabs_matching. All uses removed.
11207 * dwarf2read.c (dw2_lookup_symbol): Implement.
11208 (dw2_do_expand_symtabs_matching): Delete.
11209 (dw2_pre_expand_symtabs_matching): Delete.
11210 (struct dw2_symtab_iterator): New type.
11211 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
11212 (dw2_expand_symtabs_for_function): Rewrite.
11213 (dwarf2_gdb_index_functions): Update.
11214 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
11215 (psym_functions): Update.
11216
b2259038
TT
112172013-01-09 Tom Tromey <tromey@redhat.com>
11218
11219 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
11220 * configure: Rebuild.
11221 * configure.ac: Add somread.o to the build if BFD has SOM
11222 support.
11223 * somread.c: Include som/aout.h, not syms.h.
11224 (som_symtab_read): Use som_external_symbol_dictionary_record.
11225 Unpack records manually.
11226 (_initialize_somread): Declare.
11227
bdad4180
MF
112282012-01-08 Mike Frysinger <vapier@gentoo.org>
11229
11230 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
11231 Cast return_address to 64bits.
11232
03cdf680
HZ
112332013-01-08 Hui Zhu <hui_zhu@mentor.com>
11234
11235 * printcmd.c: Remove define of function output_command.
11236 * tracepoint.c: Remove extern of function output_command.
11237 * valprint.h: (output_command): New extern.
11238
8a808554
TT
112392013-01-07 Tom Tromey <tromey@redhat.com>
11240
11241 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
11242 Remove.
11243 (objc_language_defn): Use c_printchar, c_printstr,
11244 c_emit_char.
11245
e93a8774
TT
112462013-01-07 Tom Tromey <tromey@redhat.com>
11247
11248 PR cli/7719:
11249 * NEWS: Update.
11250 * ada-valprint.c (printstr, print_field_values): Remove
11251 "inspect_it" code.
11252 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
11253 code.
11254 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
11255 code.
11256 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
11257 * main.c (captured_main): Remove "epoch" argument.
11258 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
11259 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
11260 * p-valprint.c (pascal_object_print_value_fields): Remove
11261 "inspect_it" code.
11262 * printcmd.c (print_command_1): Remove 'inspect' argument.
11263 (print_command, call_command): Update.
11264 (inspect_command): Remove.
11265 (_initialize_printcmd): Make "inspect" an alias for "print".
11266 * top.c (epoch_interface): Remove.
11267 * top.h (epoch_interface): Remove.
11268 * valprint.c (user_print_options): Update.
11269 (print_converted_chars_to_obstack): Remove "inspect_it" code.
11270 * valprint.h (struct value_print_options) <inspect_it>: Remove
11271 field.
11272
112732013-01-04 Tom Tromey <tromey@redhat.com>
11274
11275 * valprint.h (read_string): Add 'extern'.
11276
b967eb24
JB
112772013-01-07 Joel Brobecker <brobecker@adacore.com>
11278
11279 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
11280 used to decide whether to define darwin_read_dyld_info or not.
11281
78a8b30e
PM
112822013-01-03 Pierre Muller <muller@sourceware.org>
11283
11284 * main.c (relocate_gdb_directory): Avoid calling stat function
11285 if DIR is empty.
11286
50da2f25
YQ
112872013-01-03 Yao Qi <yao@codesourcery.com>
11288
11289 * psymtab.c (fixup_psymbol_section): Update declaration.
11290 (fixup_psymbol_section): Remove code returning value.
11291
e7e8980f
YQ
112922013-01-03 Yao Qi <yao@codesourcery.com>
11293
11294 * symtab.h: Remove some out of date comments.
11295 (enum exception_event_kind): Move it ...
11296 * breakpoint.c: ... here.
11297
569283d4
MF
112982013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
11299
9f9d9a96 11300 PR gdb/14405
569283d4
MF
11301 * darwin-nat.c (darwin_read_dyld_info): Only build if
11302 TASK_DYLD_INFO_COUNT is defined.
11303 (darwin_xfer_partial): Call darwin_read_dyld_info only if
11304 TASK_DYLD_INFO_COUNT is defined.
11305
2e36fbea
TT
113062013-01-02 Tom Tromey <tromey@redhat.com>
11307
11308 * symfile.h (struct ecoff_debug_hack): Remove.
11309 * objfiles.c: Don't include mdebugread.h.
11310
4f05add4
TT
113112013-01-02 Tom Tromey <tromey@redhat.com>
11312
11313 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
11314 * configure.ac: Check for Mach-O support in BFD. Update
11315 CONFIG_OBS.
11316 * configure: Rebuild.
11317
def63ff0
TT
113182013-01-02 Tom Tromey <tromey@redhat.com>
11319
11320 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
11321 * configure.ac: Use GDB_AC_CHECK_BFD.
11322 * configure: Rebuild.
11323
60c5dd93
MK
113242013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
11325
11326 * MAINTAINERS: Update my email.
11327
6e58437e
JB
113282013-01-01 Joel Brobecker <brobecker@adacore.com>
11329
11330 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
11331
627fe805
JB
113322013-01-01 Joel Brobecker <brobecker@adacore.com>
11333
11334 * rs6000-nat.c (bss_data_overlap): New function.
11335 (vmap_symtab): Use it to adjust the .bss section's offset.
11336
28e7fd62
JB
113372013-01-01 Joel Brobecker <brobecker@adacore.com>
11338
11339 Update year range in copyright notice of all files.
11340
e93a8774 113412013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
b9786c74
JB
11342
11343 * top.c (print_gdb_version): Update copyright year.
11344
72b20e9c 11345For older changes see ChangeLog-2012.
c906108c
SS
11346\f
11347Local Variables:
11348mode: change-log
11349left-margin: 8
11350fill-column: 74
11351version-control: never
57da7796 11352coding: utf-8
c906108c 11353End:
This page took 2.70003 seconds and 4 git commands to generate.