2013-11-07 Jose E. Marchesi <jose.marchesi@oracle.com>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2013-11-07 Jose E. Marchesi <jose.marchesi@oracle.com>
2
3 * sparc-tdep.c (sparc_analyze_control_transfer): Assertion
4 removed to allow analyzing unconditional branch instructions
5 with PC-relative offsets of zero.
6
7 2013-11-07 Yao Qi <yao@codesourcery.com>
8
9 * mi/mi-cmd-var.c: Include "language.h".
10 (mi_cmd_var_info_expression): Get language name from
11 language_defn.
12 * varobj.c (varobj_language_string): Remove.
13 (variable_language): Remove declaration.
14 (languages): Remove.
15 (varobj_get_language): Change the type of return value.
16 (variable_language): Remove.
17 * varobj.h (enum varobj_languages): Remove.
18 (varobj_language_string): Remove declaration.
19 (varobj_get_language): Update declaration.
20
21 2013-11-07 Yao Qi <yao@codesourcery.com>
22
23 * language.h (struct language_defn) <la_natural_name>: New
24 field.
25 * ada-lang.c (ada_language_defn): Initialize field
26 'la_natural_name'.
27 * c-lang.c (c_language_defn): Likewise.
28 (cplus_language_defn, asm_language_defn): Likewise.
29 * d-lang.c (d_language_defn): Likewise.
30 * f-lang.c (f_language_defn): Likewise.
31 * go-lang.c (go_language_defn): Likewise.
32 * jv-lang.c (java_language_defn): Likewise.
33 * language.c (unknown_language_defn ): Likewise.
34 (auto_language_defn): Likewise.
35 * m2-lang.c (m2_language_defn): Likewise.
36 * objc-lang.c (objc_language_defn): Likewise.
37 * opencl-lang.c (opencl_language_defn): Likewise.
38 * p-lang.c (pascal_language_defn): Likewise.
39
40 2013-11-07 Yao Qi <yao@codesourcery.com>
41
42 * language.c (language_str): Return const char *.
43 (add_language): Add const to 'language_names'
44 * language.h (struct language_defn) <la_name>: Add const.
45 (language_str: Update declaration.
46
47 2013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
48
49 * s390-linux-nat.c (s390_read_description): Consider the TE field
50 in the HWCAP for determining 'have_regset_tdb'.
51
52 2013-11-06 Will Newton <will.newton@linaro.org>
53
54 PR gdb/12866
55 * dwarf2read.c (skip_one_die): Sanity check DW_AT_sibling
56 values. (read_partial_die): Likewise.
57
58 2013-11-06 Muhammad Bilal <mbilal@codesourcery.com>
59
60 PR cli/16122
61 * top.c (command_line_input): Unify interactivity tests to use
62 input_from_terminal_p.
63 * event-top.c (command_line_handler): Likewise.
64
65 2013-11-06 Yao Qi <yao@codesourcery.com>
66
67 * Makefile.in (check-perf): New target.
68
69 2013-11-05 Will Newton <will.newton@linaro.org>
70
71 PR gdb/7670
72 * arm-tdep.c (print_fpu_flags): Use filtered output routines.
73 (arm_print_float_info): Likewise.
74
75 2013-11-04 Anton Blanchard <anton@samba.org>
76
77 * target.c (memory_xfer_partial): Cap write to 4KB.
78
79 2013-11-01 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
80
81 * breakpoint.c (create_longjmp_master_breakpoint): Allow libc
82 probe scan even when the arch provides no get_longjmp_target.
83
84 2013-10-31 Pedro Alves <palves@redhat.com>
85
86 * infrun.c (handle_syscall_event): Don't set or clear stop_signal.
87 (handle_inferior_event) <TARGET_WAITKIND_FORKED,
88 TARGET_WAITKIND_VFORKED>: Don't set stop_signal to
89 GDB_SIGNAL_TRAP, or clear it. Pass GDB_SIGNAL_0 to
90 bpstat_explains signal, instead of GDB_SIGNAL_TRAP.
91 <bpstat handling>: If the bpstat chain wants the signal to be
92 hidden, then set stop_signal to GDB_SIGNAL_0 instead of
93 GDB_SIGNAL_TRAP.
94
95 2013-10-31 Andrew Burgess <aburgess@broadcom.com>
96
97 * breakpoint.c (update_watchpoint): Update error message and add
98 an additional error message.
99
100 2013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
101
102 * s390-tdep.h: Rename to...
103 * s390-linux-tdep.h: ...here.
104 * s390-tdep.c: Rename to...
105 * s390-linux-tdep.c: ...here. Adjust #include.
106 * s390-nat.c: Rename to...
107 * s390-linux-nat.c: ...here. Adjust #include.
108 * config/s390/s390.mh: Rename to...
109 * config/s390/linux.mh: ...here. Reflect rename s390-nat.o ->
110 s390-linux-nat.o.
111 * configure.host: Reflect host rename "s390" -> "linux".
112 * configure.tgt: Reflect rename s390-tdep.o -> s390-linux-tdep.o.
113 * Makefile.in (ALL_TARGET_OBS): Likewise.
114 (HFILES_NO_SRCDIR): Reflect rename s390-tdep.h ->
115 s390-linux-tdep.h.
116 (ALLDEPFILES): Reflect rename of .c files.
117
118 2013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
119
120 * s390-nat.c: Whitespace cleanup.
121 * s390-tdep.c: Likewise.
122 * s390-tdep.h: Remove empty line at end of file.
123
124 2013-10-30 Maciej W. Rozycki <macro@codesourcery.com>
125
126 * linux-tdep.c (linux_corefile_thread_callback): Preinitialize
127 siginfo_size.
128
129 2013-10-29 Tom Tromey <tromey@redhat.com>
130
131 * utils.c (reg): Move undefinition...
132 * gdb_curses.h: ... here. Update comment to mention AIX.
133
134 2013-10-29 Nicolas Blanc <nicolas.blanc@intel.com>
135
136 * exec.h (add_target_sections_of_objfile): New declaration.
137 * exec.c (add_target_sections_of_objfile): New function.
138 * symfile.c (add_symbol_file_command): Update current target sections.
139 (remove_symbol_file_command): New command.
140 (symfile_free_objfile): New function.
141 (_initialize_symfile): Register observer for free_objfile events.
142 * NEWS: Add description of the remove-symbol-file command.
143 * breakpoint.c (disable_breakpoints_in_freed_objfile): New function.
144 * objfiles.c (free_objfile): Notify free_objfile.
145 (is_addr_in_objfile): New function.
146 * objfiles.h (is_addr_in_objfile): New declaration.
147 * printcmd.c (clear_dangling_display_expressions): Act upon free_objfile
148 events instead of solib_unloaded events.
149 (_initialize_printcmd): Register observer for free_objfile instead
150 of solib_unloaded notifications.
151 * solib.c (remove_user_added_objfile): New function.
152 (_initialize_symfile): Add remove-symbol-file.
153
154 2013-10-29 Andrew Burgess <aburgess@broadcom.com>
155
156 * infcmd.c (default_print_one_register_info): Use val_print to
157 print all values even optimized out or unavailable ones. Don't
158 try to print a raw form of optimized out or unavailable values.
159
160 2013-10-29 Yao Qi <yao@codesourcery.com>
161
162 * auto-load.c (auto_load_pspace_data_cleanup): Get data from
163 parameter 'arg' instead of from program_space_data.
164 * objfiles.c (objfiles_pspace_data_cleanup): Likewise.
165 * solib-darwin.c (darwin_pspace_data_cleanup): Likewise.
166 * solib-dsbt.c (dsbt_pspace_data_cleanup): Likewise.
167 * solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
168 * inflow.c (inflow_inferior_data_cleanup): Get data from
169 parameter 'arg' instead of inferior_data.
170 * registry.h: Add comments.
171
172 2013-10-28 Pedro Alves <palves@redhat.com>
173
174 * breakpoint.c (watchpoints_triggered)
175 <!target_stopped_data_address>: Hardcode return 1.
176
177 2013-10-28 Pedro Alves <palves@redhat.com>
178
179 * infrun.c (process_event_stop_test): Remove unnecessary scoping
180 level and reindent.
181
182 2013-10-28 Pedro Alves <palves@redhat.com>
183
184 * infrun.c (process_event_stop_test): New function, factored out
185 from handle_inferior_event.
186 (handle_inferior_event): 'process_event_stop_test' is now a
187 function instead of a goto label -- adjust.
188
189 2013-10-28 Pedro Alves <palves@redhat.com>
190
191 * infrun.c (handle_inferior_event): Move process_event_stop_test
192 goto label to the else branch of the ecs->random_signal check,
193 along with FRAME and GDBARCH re-fetching.
194
195 2013-10-28 Pedro Alves <palves@redhat.com>
196
197 * infrun.c (switch_back_to_stepped_thread): New function, factored
198 out from handle_inferior_event.
199 (handle_inferior_event): Adjust to call
200 switch_back_to_stepped_thread. Call it also at the tail of the
201 random signal handling, and return, instead of also handling
202 random signals just before the stepping tests.
203
204 2013-10-28 Pedro Alves <palves@redhat.com>
205
206 * infrun.c (clear_stop_func): Delete.
207 (handle_inferior_event): Don't call clear_stop_func and don't
208 clear 'ecs->random_signal'.
209
210 2013-10-27 Yao Qi <yao@codesourcery.com>
211
212 * varobj.c (struct varobj_root) <lang>: Rename to 'lang_ops'.
213 (varobj_create, varobj_get_path_expr): Update.
214 (varobj_value_has_mutated, varobj_update): Likewise.
215 (create_child_with_value, new_root_variable): Likewise.
216 (number_of_children, name_of_variable): Likewise.
217 (value_of_child, my_value_of_variable): Likewise.
218 (varobj_value_is_changeable_p): Likewise.
219
220 2013-10-25 Yao Qi <yao@codesourcery.com>
221
222 * language.h (struct lang_varobj_ops): Declare.
223 (struct language_defn) <la_varobj_ops>: New field.
224 * ada-lang.c: Include "varobj.h"
225 (defn ada_language_defn): Initialize field 'la_varobj_ops' with
226 ada_varobj_ops.
227 * c-lang.c: Include "varobj.h"
228 (c_language_defn): Initialize field 'la_varobj_ops' with
229 c_varobj_ops.
230 (cplus_language_defn): Initialize field 'la_varobj_ops' with
231 cplus_varobj_ops.
232 (asm_language_defn): Initialize field 'la_varobj_ops' with
233 default_varobj_ops.
234 (minimal_language_defn): Likewise.
235 * d-lang.c (d_language_defn): Likewise.
236 * f-lang.c (f_language_defn): Likewise.
237 * go-lang.c (go_language_defn): Likewise.
238 * m2-lang.c (m2_language_defn): Likewise.
239 * objc-lang.c (objc_language_defn): Likewise.
240 * opencl-lang.c (opencl_language_defn): Likewise.
241 * p-lang.c (pascal_language_defn): Likewise.
242 * language.c (unknown_language_defn): Likewise.
243 (auto_language_defn): Likewise.
244 (local_language_defn): Likewise.
245 * jv-lang.c (java_language_defn): Initialize field
246 'la_varobj_ops' with java_varobj_ops.
247 * varobj.c (varobj_create): Update.
248 * varobj.h (default_varobj_ops): Define macro.
249
250 2013-10-25 Pedro Alves <palves@redhat.com>
251
252 * cp-valprint.c (cp_print_value_fields): No longer handle a NULL
253 static field value.
254 (cp_print_static_field): If the value is entirely optimized out,
255 print <optimized out> here.
256 * jv-valprint.c (java_print_value_fields): No longer handle a NULL
257 static field value.
258 * p-valprint.c (pascal_object_print_static_field): If the value is
259 entirely optimized out, print <optimized out> here.
260 * valops.c (do_search_struct_field)
261 (value_struct_elt_for_reference): No longer handle a NULL static
262 field value.
263 * value.c (value_static_field): Return an optimized out value
264 instead of NULL.
265
266 2013-10-25 Yao Qi <yao@codesourcery.com>
267
268 * remote.c (remote_traceframe_info): Return early if
269 traceframe is not selected.
270
271 2013-10-25 Yao Qi <yao@codesourcery.com>
272
273 * tracepoint.c (traceframe_fun): Remove.
274 (traceframe_sal): Remove.
275 (set_traceframe_context): Add local variables.
276
277 2013-10-25 Joel Brobecker <brobecker@adacore.com>
278
279 * varobj.h (struct lang_varobj_ops): Remove spaces between '*'
280 and parameter name.
281
282 2013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
283
284 * linux-tdep.c (linux_corefile_thread_callback): Propagate any
285 failure from register information collection.
286
287 2013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
288
289 * linux-tdep.c (linux_corefile_thread_data): Remove `num_notes'
290 member.
291 (linux_corefile_thread_callback): Update accordingly.
292 (linux_make_corefile_notes): Likewise.
293
294 2013-10-24 Pedro Alves <palves@redhat.com>
295
296 * NEWS (New options): Mention set/show startup-with-shell.
297 * config/alpha/nm-osf3.h (START_INFERIOR_TRAPS_EXPECTED): Set to 2
298 instead of 3.
299 * fork-child.c (fork_inferior, startup_inferior): Handle 'set
300 startup-with-shell'.
301 (show_startup_with_shell): New function.
302 (_initialize_fork_child): Register the set/show startup-with-shell
303 commands.
304 * inf-ptrace.c (inf_ptrace_create_inferior): Remove comment.
305 * inf-ttrace.c (inf_ttrace_him): Remove comment.
306 * procfs.c (procfs_init_inferior): Remove comment.
307 * infcmd.c (startup_with_shell): New global.
308 * inferior.h (startup_with_shell): Declare global.
309 (STARTUP_WITH_SHELL): Delete.
310 (START_INFERIOR_TRAPS_EXPECTED): Set to 1 by default instead of 2.
311
312 2013-10-23 Pedro Alves <palves@redhat.com>
313
314 * common/gdb_signals.h (gdb_signal_to_symbol_string): Declare.
315 * common/signals.c: Include "gdb_assert.h".
316 (signals): New field 'symbol'.
317 (SET): Use the 'symbol' parameter.
318 (gdb_signal_to_symbol_string): New function.
319 * infrun.c (handle_inferior_event) <random signal>: In debug
320 output, print the random signal enum as string in addition to its
321 number.
322 * target/waitstatus.c (target_waitstatus_to_string): Print the
323 signal's enum value as string instead of the (POSIX) signal name.
324
325 2013-10-23 Gary Benson <gbenson@redhat.com>
326
327 PR 16013
328 * common/linux-osdata.c (command_from_pid): Reduced size of cmd
329 from 32 to 18. Adjusted fscanf format string accordingly.
330 (Avoids leaving cmd unterminated.)
331 (print_sockets): Do not parse tlen, inode, sl, timeout, txq, rxq,
332 trun, retn or extra. (Avoids leaving extra unterminated.) Check
333 that local_address and remote_address will not overflow.
334 (linux_xfer_osdata_modules): Parse lines using strtok to avoid
335 leaving dependencies unterminated. Parse size as "%u" to match
336 definition.
337
338 2013-10-22 Pedro Alves <palves@redhat.com>
339
340 * infrun.c (handle_inferior_event) <thread hop>: Don't clear or
341 set ecs->random signal.
342
343 2013-10-22 Pedro Alves <palves@redhat.com>
344
345 * infrun.c (keep_going): Update comments.
346
347 2013-10-22 Pedro Alves <palves@redhat.com>
348
349 * remote.c (remote_parse_stop_reply) <'T'/'S'/'X' replies>: Map
350 invalid signal numbers to GDB_SIGNAL_UNKNOWN.
351
352 2013-10-22 Pedro Alves <palves@redhat.com>
353
354 * include/gdb/signals.def (TARGET_EXC_BAD_ACCESS): Rename to
355 GDB_EXC_BAD_ACCESS.
356 (TARGET_EXC_BAD_INSTRUCTION): Rename to GDB_EXC_BAD_INSTRUCTION.
357 (TARGET_EXC_ARITHMETIC): Rename to GDB_EXC_ARITHMETIC.
358 (TARGET_EXC_EMULATION): Rename to GDB_EXC_EMULATION.
359 (TARGET_EXC_SOFTWARE): Rename to GDB_EXC_SOFTWARE.
360 (TARGET_EXC_BREAKPOINT): Rename to GDB_EXC_BREAKPOINT.
361 (GDB_SIGNAL_LAST): Change description string.
362 * common/signals.c (gdb_signal_from_host, do_gdb_signal_to_host):
363 Adjust to signal renaming.
364 * darwin-nat.c (darwin_decode_message): Likewise.
365
366 2013-10-22 Jose E. Marchesi <jose.marchesi@oracle.com>
367
368 * MAINTAINERS (Write After Approval): Add myself to the list.
369
370 2013-10-18 Andrew Burgess <aburgess@broadcom.com>
371
372 * breakpoint.c (update_watchpoint): If hardware watchpoints are
373 forced off, downgrade them to software watchpoints if possible,
374 and error out if not possible.
375 (watch_command_1): Move watchpoint type selection closer to
376 watchpoint creation, and extend the comments.
377
378 2013-10-18 Pedro Alves <palves@redhat.com>
379
380 PR gdb/16062
381 * infrun.c (handle_inferior_event): Keep going if we got a random
382 signal we should not stop for, instead of falling through to the
383 step tests.
384
385 2013-10-18 Yao Qi <yao@codesourcery.com>
386
387 * c-varobj.c (cplus_number_of_children): Fix indentation.
388
389 2013-10-17 Tom Tromey <tromey@redhat.com>
390
391 PR gdb/15995:
392 * printcmd.c (printcmd): Call gdb_flush.
393
394 2013-10-17 Tom Tromey <tromey@redhat.com>
395
396 * elfread.c (struct elfinfo) <stabindexsect>: Remove.
397 (elf_locate_sections): Update.
398
399 2013-10-17 Yao Qi <yao@codesourcery.com>
400
401 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
402 * ada-varobj.c: Remove the include of ada-varobj.h.
403 (ada_varobj_get_number_of_children): Declare.
404 (ada_varobj_get_name_of_child): Make it static.
405 (ada_varobj_get_path_expr_of_child): Likewise.
406 (ada_varobj_get_value_of_child): Likewise.
407 (ada_varobj_get_type_of_child): Likewise.
408 (ada_varobj_get_value_of_array_variable): Likewise.
409 * ada-varobj.h: Remove.
410
411 2013-10-17 Yao Qi <yao@codesourcery.com>
412
413 * Makefile.in (SFILES): Add c-varobj.c and jv-varobj.c.
414 (COMMON_OBS): Add c-varobj.o and jv-varobj.o.
415 * ada-varobj.c: Include "varobj.h".
416 (ada_number_of_children): New. Moved from varobj.c.
417 (ada_name_of_variable, ada_name_of_child): Likewise.
418 (ada_path_expr_of_child, ada_value_of_child): Likewise.
419 (ada_type_of_child, ada_value_of_variable): Likewise.
420 (ada_value_is_changeable_p, ada_value_has_mutated): Likewise.
421 (ada_varobj_ops): New.
422 * c-varobj.c, jv-varobj.c: New file. Moved from varobj.c.
423 * gdbtypes.c (get_target_type): New. Moved from varobj.c.
424 * gdbtypes.h (get_target_type): Declare.
425 * varobj.c: Remove the inclusion of "ada-varobj.h" and
426 "ada-lang.h".
427 (ANONYMOUS_STRUCT_NAME): Move it to c-varobj.c.
428 (ANONYMOUS_UNION_NAME): Likewise.
429 (get_type, get_value_type, get_target_type): Remove declarations.
430 (value_get_print_value, varobj_value_get_print_value): Likewise.
431 (c_number_of_children, c_name_of_variable): Likewise.
432 (c_name_of_child, c_path_expr_of_child): Likewise.
433 (c_value_of_child, c_type_of_child): Likewise.
434 (c_value_of_variable, cplus_number_of_children): Likewise.
435 (cplus_class_num_children, cplus_name_of_variable): Likewise.
436 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
437 (cplus_value_of_child, cplus_type_of_child): Likewise.
438 (cplus_value_of_variable, java_number_of_children): Likewise.
439 (java_name_of_variable, java_name_of_child): Likewise.
440 (java_path_expr_of_child, java_value_of_child): Likewise.
441 (java_type_of_child, java_value_of_variable): Likewise.
442 (ada_number_of_children, ada_name_of_variable): Likewise.
443 (ada_name_of_child, ada_path_expr_of_child): Likewise.
444 (ada_value_of_child, ada_type_of_child): Likewise.
445 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
446 (ada_value_has_mutated): Likewise.
447 (struct language_specific): Move it to varobj.h.
448 (CPLUS_FAKE_CHILD): Move it to varobj.h.
449 (restrict_range): Rename it varobj_restrict_range. Make it extern.
450 Callers update.
451 (get_path_expr_parent): Rename it to varobj_get_path_expr_parent.
452 Make it extern.
453 (is_anonymous_child): Move it to c-varobj.c and rename to
454 varobj_is_anonymous_child. Caller update.
455 (get_type): Move it to c-varobj.c.
456 (get_value_type): Rename it varobj_get_value_type. Make it
457 extern.
458 (get_target_type): Move it gdbtypes.c.
459 (varobj_formatted_print_options): New function.
460 (value_get_print_value): Rename it to
461 varobj_value_get_print_value and make it extern.
462 (varobj_value_is_changeable_p): Make it extern.
463 (adjust_value_for_child_access): Move it to c-varobj.c.
464 (default_value_is_changeable_p): Rename it to
465 varobj_default_value_is_changeable_p. Make it extern.
466 (c_number_of_children, c_name_of_variable): Move it to c-varobj.c
467 (c_name_of_child, c_path_expr_of_child): Likewise.
468 (c_value_of_child, c_type_of_child): Likewise.
469 (c_value_of_variable, cplus_number_of_children): Likewise.
470 (cplus_class_num_children, cplus_name_of_variable): Likewise.
471 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
472 (cplus_value_of_child, cplus_type_of_child): Likewise.
473 (cplus_value_of_variable): Likewise.
474 (java_number_of_children, java_name_of_variable): Move it to jv-varobj.c.
475 (java_name_of_child, java_path_expr_of_child): Likewise.
476 (java_value_of_child, java_type_of_child): Likewise.
477 (java_value_of_variable): Likewise.
478 (ada_number_of_children, ada_name_of_variable): Move it to ada-varobj.c.
479 (ada_name_of_child, ada_path_expr_of_child): Likewise.
480 (ada_value_of_child, ada_type_of_child): Likewise.
481 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
482 (ada_value_has_mutated): Likewise.
483 * varobj.h (CPLUS_FAKE_CHILD): New macro, moved from varobj.c.
484 (struct lang_varobj_ops): New. Renamed by 'struct language_specific'.
485 (c_varobj_ops, cplus_varobj_ops): Declare.
486 (java_varobj_ops, ada_varobj_ops): Declare.
487 (varobj_default_value_is_changeable_p): Declare.
488 (varobj_value_is_changeable_p): Declare.
489 (varobj_get_value_type, varobj_is_anonymous_child): Declare.
490 (varobj_get_path_expr_parent): Declare.
491 (varobj_value_get_print_value): Declare.
492 (varobj_formatted_print_options): Declare.
493 (varobj_restrict_range): Declare.
494
495 2013-10-17 Luis Machado <lgustavo@codesourcery.com>
496
497 * target/waitstatus.h (target_waitkind): Remove spurious
498 character from the comments.
499
500 2013-10-17 Joel Brobecker <brobecker@adacore.com>
501
502 * gdbarch.sh (get_longjmp_target): Add method documentation.
503 * gdbarch.h: Regenerate.
504
505 2013-10-16 Tom Tromey <tromey@redhat.com>
506
507 * dbxread.c (read_dbx_symtab) <bss_ext_symbol>: Remove unused
508 label.
509
510 2013-10-16 Luis Machado <lgustavo@codesourcery.com>
511
512 * gcore.in: Call GDB using the full path to the gcore script.
513 Error out if the GDB binary is not found.
514
515 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
516
517 PR gdb/16014
518 * dwarf2read.c (dw2_get_real_path): Remove unnecessary call to
519 sizeof.
520
521 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
522
523 PR gdb/16042
524 * target.c (target_disable_btrace): Fix invalid return value for
525 void function.
526 (target_teardown_btrace): Likewise.
527
528 2013-10-14 Yao Qi <yao@codesourcery.com>
529
530 * varobj.c (struct varobj): Move most of the fields to
531 varobj.h.
532 (struct varobj_dynamic): New struct.
533 (varobj_get_display_hint) [HAVE_PYTHON]: Adjust.
534 (varobj_has_more): Likewise.
535 (dynamic_varobj_has_child_method): Likewise.
536 (update_dynamic_varobj_children): Likewise.
537 (varobj_get_num_children): Likewise.
538 (varobj_list_children, varobj_pretty_printed_p): Likewise.
539 (install_new_value_visualizer): Likewise.
540 (install_new_value_visualizer, install_new_value): Likewise.
541 (varobj_update, new_variable, free_variable): Likewise.
542 (my_value_of_variable, value_get_print_value): Likewise.
543 (install_visualizer): Change the type of parameter 'var' to
544 'struct varobjd_dynamic *'. Callers update.
545 * varobj.h (struct varobj): Moved from varobj.c.
546 (struct varobj) <dynamic>: New field.
547
548 2013-10-13 Sandra Loosemore <sandra@codesourcery.com>
549
550 * nios2-tdep.c (nios2_reg_names): Use "sstatus" rather than "ba"
551 as the preferred name of r30.
552 * nios2-linux-tdep.c (reg_offsets): Likewise.
553 * features/nios2-cpu.xml: Likewise.
554 * features/nios2-linux.c: Regenerated.
555 * features/nios2.c: Regenerated.
556 * regformats/nios2-linux.dat: Regenerated.
557
558 2013-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
559
560 Canonicalize directories for EXEC_FILENAME.
561 * exec.c (exec_file_attach): Use gdb_realpath_keepfile for
562 exec_filename.
563 * utils.c (gdb_realpath_keepfile): New function.
564 * utils.h (gdb_realpath_keepfile): New declaration.
565
566 2013-10-11 Doug Evans <dje@google.com>
567
568 * Makefile.in (GDBFLAGS): New variable.
569 (run): New rule.
570
571 2013-10-11 Joel Brobecker <brobecker@adacore.com>
572
573 * NEWS: Add entry documenting the new "-catch-assert" and
574 "-catch-exception" GDB/MI commands.
575
576 2013-10-11 Joel Brobecker <brobecker@adacore.com>
577
578 * breakpoint.h (init_ada_exception_breakpoint): Add parameter
579 "enabled".
580 * breakpoint.c (init_ada_exception_breakpoint): Add parameter
581 "enabled". Set B->ENABLE_STATE accordingly.
582 * ada-lang.h (ada_exception_catchpoint_kind): Move here from
583 ada-lang.c.
584 (create_ada_exception_catchpoint): Add declaration.
585 * ada-lang.c (ada_exception_catchpoint_kind): Move to ada-lang.h.
586 (create_ada_exception_catchpoint): Make non-static. Add new
587 parameter "disabled". Use it in call to
588 init_ada_exception_breakpoint.
589 (catch_ada_exception_command): Add parameter "enabled" in call
590 to create_ada_exception_catchpoint.
591 (catch_assert_command): Likewise.
592
593 * mi/mi-cmds.h (mi_cmd_catch_assert, mi_cmd_catch_exception):
594 Add declarations.
595 * mi/mi-cmds.c (mi_cmds): Add the "catch-assert" and
596 "catch-exception" commands.
597 * mi/mi-cmd-catch.c: Add #include "ada-lang.h".
598 (mi_cmd_catch_assert, mi_cmd_catch_exception): New functions.
599
600 2013-10-11 Joel Brobecker <brobecker@adacore.com>
601
602 * ada-lang.c (enum ada_exception_catchpoint_kind): Renames
603 "enum exception_catchpoint_kind". Replace the "ex_" prefix
604 of all its enumerates with "ada_". Update the rest of this
605 file throughout.
606
607 2013-10-11 Joel Brobecker <brobecker@adacore.com>
608
609 * ada-lang.c (ada_decode_exception_location): Delete.
610 (create_ada_exception_catchpoint): Remove arguments "sal",
611 "addr_string" and "ops". Add argument "ex_kind" instead.
612 Adjust implementation accordingly, calling ada_exception_sal
613 to get the entities it no longer gets passed as arguments.
614 Document the function's arguments.
615 (catch_ada_exception_command): Use catch_ada_exception_command_split
616 instead of ada_decode_exception_location, and update call to
617 create_ada_exception_catchpoint.
618 (catch_ada_assert_command_split): Renames
619 ada_decode_assert_location. Remove parameters "addr_string" and
620 "ops", and now returns void. Adjust implementation accordingly.
621 Update the function documentation.
622 (catch_assert_command): Use catch_ada_assert_command_split
623 instead of ada_decode_assert_location. Update call to
624 create_ada_exception_catchpoint.
625
626 2013-10-11 Joel Brobecker <brobecker@adacore.com>
627
628 * utils.h (perror_warning_with_name): Add declaration.
629 * utils.c (perror_warning_with_name): New function.
630 * cli/cli-cmds.c (source_script_with_search): Add call to
631 perror_warning_with_name if from_tty is nul.
632
633 2013-10-11 Joel Brobecker <brobecker@adacore.com>
634
635 * utils.c (perror_string): New function, extracted out of
636 throw_perror_with_name.
637 (throw_perror_with_name): Rework to use perror_string.
638
639 2013-10-11 Yao Qi <yao@codesourcery.com>
640
641 * remote.c (discard_pending_stop_replies_in_queue): Update
642 declaration.
643 (struct stop_reply) <rs>: New field.
644 (remove_stop_reply_of_remote_state): New function.
645 (discard_pending_stop_replies_in_queue): Add parameter 'rs'.
646 Callers update. Pass remove_stop_reply_of_remote_state to
647 QUEUE_iterate.
648 (remote_parse_stop_reply): Initialize field 'rs'.
649
650 2013-10-10 Will Newton <will.newton@linaro.org>
651
652 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
653 linux_init_abi.
654
655 2013-10-10 Joel Brobecker <brobecker@adacore.com>
656
657 * cli/cli-cmds.c (show_baud_rate): Moved to serial.c as
658 serial_baud_show_cmd.
659 (_initialize_cli_cmds): Delete the code creating the
660 "set/show remotebaud" commands.
661 * serial.c (baud_rate): Move here from top.c.
662 (serial_baud_show_cmd): Move here from cli/cli-cmds.c.
663 (_initialize_serial): Create "set/show serial baud" commands.
664 Add "set/show remotebaud" command aliases.
665 * top.c (baud_rate): Moved to serial.c.
666 * NEWS: Document the new "set/show serial baud" commands,
667 replacing "set/show remotebaud".
668
669 2013-10-09 Pedro Alves <palves@redhat.com>
670
671 * breakpoint.c (insert_bp_location): Use memory_error_message to
672 build the memory error string.
673 * c-lang.c: Include "gdbcore.h".
674 (c_get_string): Use memory_error to throw error.
675 (target_xfer_memory_error): Delete.
676 (memory_error_message): New, factored out from
677 target_xfer_memory_error.
678 (memory_error): Change parameter type to target_xfer_error.
679 Rewrite.
680 (read_memory): Use memory_error instead of
681 target_xfer_memory_error.
682 * gdbcore.h: Include "target.h".
683 (memory_error): Change parameter type to target_xfer_error.
684 (memory_error_message): Declare function.
685 * target.c (target_read_memory, target_read_stack)
686 (target_write_memory, target_write_raw_memory): Return
687 TARGET_XFER_E_IO on error. Adjust comments.
688 (get_target_memory): Pass TARGET_XFER_E_IO to memory_error,
689 instead of EIO.
690 * target.h (target_read, target_insert_breakpoint)
691 (target_remove_breakpoint): Adjust comments.
692 * valprint.c (partial_memory_read): Rename parameter, and adjust
693 comment.
694 (val_print_string): Use memory_error_message to build the memory
695 error string.
696
697 2013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
698
699 * common/filestuff.c (gdb_fopen_cloexec): Remove initialization of
700 result variable. Rename variable fopen_e_ever_failed to
701 fopen_e_ever_failed_einval. Retry fopen only for errno EINVAL.
702
703 2013-10-09 Pedro Alves <palves@redhat.com>
704
705 * monitor.c (monitor_write_memory, monitor_write_memory_bytes)
706 (monitor_write_memory_longlongs, monitor_write_memory_block):
707 Constify 'myaddr' parameter.
708 (monitor_xfer_memory): Adjust interface as monitor_xfer_partial
709 helper.
710 (monitor_xfer_partial): New function.
711 (init_base_monitor_ops): Don't install a deprecated_xfer_memory
712 hook. Install a to_xfer_partial hook.
713
714 2013-10-09 Tom Tromey <tromey@redhat.com>
715
716 * dwarf2read.c (dwarf2_get_dwz_file): Update for type change in
717 bfd_get_alt_debug_link_info.
718
719 2013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
720
721 New flag OBJF_NOT_FILENAME.
722 * auto-load.c (auto_load_objfile_script): Check also OBJF_NOT_FILENAME.
723 * jit.c (jit_object_close_impl): Use OBJF_NOT_FILENAME for
724 allocate_objfile.
725 (jit_bfd_try_read_symtab): Use OBJF_NOT_FILENAME for
726 symbol_file_add_from_bfd.
727 * jv-lang.c (get_dynamics_objfile): Use OBJF_NOT_FILENAME for
728 allocate_objfile.
729 * objfiles.c (allocate_objfile): Assert OBJF_NOT_FILENAME if NAME is
730 NULL.
731 * objfiles.h (OBJF_NOT_FILENAME): New.
732
733 2013-10-08 Tom Tromey <tromey@redhat.com>
734
735 * Makefile.in (SFILES): Add build-id.c.
736 (HFILES_NO_SRCDIR): Add build-id.h.
737 * build-id.c: New file, largely from elfread.c. Modified
738 most functions.
739 * build-id.h: New file.
740 * dwarf2read.c (dwarf2_get_dwz_file): Update for change to
741 bfd_get_alt_debug_link_info. Verify dwz file's build-id.
742 Search for dwz file using build-id.
743 * elfread.c (build_id_bfd_get, build_id_verify)
744 (build_id_to_debug_filename, find_separate_debug_file): Remove.
745
746 2013-10-08 Joel Brobecker <brobecker@adacore.com>
747
748 * ada-lang.c (compare_names_with_case): Renamed from
749 compare_names, adding a new parameter "casing" and its handling.
750 New function documentation.
751 (compare_names): New function, implemented using
752 compare_names_with_case.
753
754 2013-10-08 Joel Brobecker <brobecker@adacore.com>
755
756 * ada-lang.c (ada_exception_sal): Remove advance declaration.
757
758 2013-10-07 Tom Tromey <tromey@redhat.com>
759
760 * objfiles.c (free_objfile_per_bfd_storage): Delete the
761 demangled_names_hash.
762 (free_objfile): Don't delete the demangled_names_hash.
763 * objfiles.h (struct objfile_per_bfd_storage)
764 <demangled_names_hash>: New field.
765 (struct objfile) <demangled_names_hash>: Move to
766 objfile_per_bfd_storage.
767 * symfile.c (reread_symbols): Don't delete the
768 demangled_names_hash.
769 * symtab.c (create_demangled_names_hash): Update.
770 (symbol_set_names): Update.
771
772 2013-10-07 Tom Tromey <tromey@redhat.com>
773
774 * gdb_bfd.c (struct gdb_bfd_data) <relocation_computed,
775 needs_relocations>: New fields.
776 (gdb_bfd_requires_relocations): New function.
777 * gdb_bfd.h (gdb_bfd_requires_relocations): Declare.
778 * objfiles.c (get_objfile_bfd_data): Disallow sharing if
779 the BFD needs relocations applied.
780
781 2013-10-07 Pedro Alves <palves@redhat.com>
782
783 PR breakpoints/11568
784 * breakpoint.c (remove_threaded_breakpoints): Say "no longer in
785 the thread list" instead of "gone".
786
787 2013-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
788
789 * NEWS: Mention new convenience variable $_exitsignal.
790 * corelow.c (core_open): Reset exit convenience variables. Set
791 $_exitsignal to the uncaught signal which generated the corefile.
792 * infrun.c (handle_inferior_event): Reset exit convenience
793 variables. Set $_exitsignal for TARGET_WAITKIND_SIGNALLED.
794 (clear_exit_convenience_vars): New function.
795 * inferior.h (clear_exit_convenience_vars): New prototype.
796
797 2013-10-06 Yao Qi <yao@codesourcery.com>
798
799 * varobj.h: Add comments to enum varobj_languages.
800
801 2013-10-04 Doug Evans <dje@google.com>
802
803 Add support for DWP file format version 2.
804 * NEWS: Mention support for DWP file format version 2.
805 * dwarf2read.c (dwarf2_section_info): Convert asection field to a
806 union of asection, containing_section. New fields virtual_offset
807 and is_virtual. Change type of readin filed from int to char.
808 (dwo_sections, dwo_file): Tweak comments.
809 (dwp_v2_section_ids): New enum.
810 (dwp_sections): New fields abbrev, info, line, loc, macinfo, macro,
811 str_offsets, types.
812 (virtual_v1_dwo_sections): Renamed from virtual_dwo_sections.
813 All uses updated.
814 (virtual_v2_dwo_sections): New struct.
815 (dwp_hash_table): New fields version, nr_columns. Change type of
816 section_pool field to a union.
817 (dwp_file): New field version.
818 (dwarf2_has_info): Check for virtual sections.
819 (get_containing_section): New function.
820 (get_section_bfd_owner, get_section_bfd_section): Call it.
821 (dwarf2_locate_sections): Update.
822 (dwarf2_section_empty_p): Update.
823 (dwarf2_read_section): Handle virtual sections.
824 (locate_dwz_sections): Update.
825 (create_dwp_hash_table): Document and handle V2 format.
826 (locate_v1_virtual_dwo_sections): Renamed from
827 locate_virtual_dwo_sections and update. All callers updated.
828 (create_dwo_unit_in_dwp_v1): Renamed from create_dwo_in_dwp.
829 Delete arg htab. Rename arg section_index to unit_index.
830 All callers updated.
831 (MAX_NR_V1_DWO_SECTIONS): Renamed from MAX_NR_DWO_SECTIONS.
832 All uses updated.
833 (create_dwp_v2_section, create_dwo_unit_in_dwp_v2): New functions.
834 (lookup_dwo_unit_in_dwp): Add V2 support.
835 (dwarf2_locate_dwo_sections): Update.
836 (dwarf2_locate_common_dwp_sections): Renamed from
837 dwarf2_locate_dwp_sections and update. All callers updated.
838 (dwarf2_locate_v2_dwp_sections): New function.
839 (open_and_init_dwp_file): Add V2 support.
840 (read_str_index): New locals str_section, str_offsets_section.
841
842 2013-10-04 Pedro Alves <palves@redhat.com>
843
844 * common/ptid.c (null_ptid, minus_one_ptid, ptid_build)
845 (pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid)
846 (ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p): Replace
847 describing comments with references to ptid.h.
848 * common/ptid.h: Remove intro description of constructors,
849 accessors and predicates.
850 (struct ptid): Reformat.
851 (minus_one_ptid, ptid_build, pid_to_ptid, ptid_get_pid)
852 (ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid): Change
853 describing comments.
854
855 2013-10-04 Joel Brobecker <brobecker@adacore.com>
856
857 * aix-thread.c (sync_threadlists): Add missing ')' in call
858 to ptid_build.
859
860 2013-10-04 Joel Brobecker <brobecker@adacore.com>
861
862 * procfs.c (procfs_init_inferior): Fix typo causing the build
863 to fail.
864
865 2013-10-04 Joel Brobecker <brobecker@adacore.com>
866
867 * aix-thread.c (ptrace32): Remove cast to addr_ptr.
868
869 2013-10-04 Joel Brobecker <brobecker@adacore.com>
870
871 * mi/mi-main.c (run_one_inferior): Add function description.
872 Make ARG a pointer to an integer whose value determines whether
873 we should "run" or "start" the program.
874 (mi_cmd_exec_run): Add handling of the "--start" option.
875 Reject all other command-line options.
876 * NEWS: Add entry for "-exec-run"'s new "--start" option.
877
878 2013-10-04 Yao Qi <yao@codesourcery.com>
879
880 * remote-notif.h (REMOTE_NOTIF_ID): New enum.
881 (struct notif_client) <pending_event>: Moved
882 to struct remote_notif_state.
883 <id>: New field.
884 (struct remote_notif_state) <pending_event>: New field.
885 (notif_event_xfree): Declare.
886 * remote-notif.c (handle_notification): Adjust.
887 (notif_event_xfree): New function.
888 (do_notif_event_xfree): Call notif_event_xfree.
889 (remote_notif_state_xfree): Call notif_event_xfree to free
890 each element in field pending_event.
891 * remote.c (discard_pending_stop_replies): Remove declaration.
892 (discard_pending_stop_replies_in_queue): Declare.
893 (remote_close): Call discard_pending_stop_replies_in_queue
894 instead of discard_pending_stop_replies.
895 (remote_start_remote): Adjust.
896 (stop_reply_xfree): Call notif_event_xfree.
897 (notif_client_stop): Adjust initialization.
898 (remote_notif_remove_all): Rename it to ...
899 (remove_stop_reply_for_inferior): ... this. Update comments.
900 Don't check INF is NULL.
901 (discard_pending_stop_replies): Return early if notif_state is
902 NULL. Adjust. Don't check INF is NULL.
903 (remote_notif_get_pending_events): Adjust.
904 (discard_pending_stop_replies_in_queue): New function.
905 (remote_wait_ns): Likewise.
906
907 2013-10-04 Yao Qi <yao@codesourcery.com>
908
909 * remote-notif.c (DECLARE_QUEUE_P): Remove.
910 (notif_queue): Remove.
911 (remote_notif_process): Add one parameter 'notif_queue'.
912 Update comments. Callers update.
913 (remote_async_get_pending_events_token): Remove.
914 (remote_notif_register_async_event_handler): Remove.
915 (remote_notif_unregister_async_event_handler): Remove.
916 (handle_notification): Add parameter 'notif_queue'. Update
917 comments. Callers update.
918 (notif_xfree): Remove.
919 (remote_notif_state_allocate): New function.
920 (remote_notif_state_xfree): New function.
921 (_initialize_notif): Remove code to allocate queue.
922 * remote-notif.h (DECLARE_QUEUE_P): Moved from remote-notif.c.
923 (struct remote_notif_state): New.
924 (handle_notification): Update declaration.
925 (remote_notif_process): Likewise.
926 (remote_notif_register_async_event_handler): Remove.
927 (remote_notif_unregister_async_event_handler): Remove.
928 (remote_notif_state_allocate): Declare.
929 (remote_notif_state_xfree): Declare.
930 * remote.c (struct remote_state) <notif_state>: New field.
931 (remote_close): Don't call
932 remote_notif_unregister_async_event_handler. Call
933 remote_notif_state_xfree.
934 (remote_open_1): Don't call
935 remote_notif_register_async_event_handler. Call
936 remote_notif_state_allocate.
937
938 2013-10-04 Yao Qi <yao@codesourcery.com>
939
940 * varobj.c (create_child_with_value): Remove 'const' from the
941 type of parameter 'name'.
942 (varobj_add_child): Likewise.
943 (install_dynamic_child): Remove 'const' from the type of
944 parameter 'name'.
945 (varobj_add_child): Likewise.
946 (create_child_with_value): Likewise. Update comments. Don't
947 duplicate 'name'.
948 (update_dynamic_varobj_children): Duplicate 'name'
949 and pass it to install_dynamic_child.
950
951 2013-10-03 Phil Muldoon <pmuldoon@redhat.com>
952
953 * python/py-value.c (convert_value_from_python): Move PyInt_Check
954 conversion logic to occur after PyLong_Check. Comment on order
955 change significance.
956 * python/py-arch.c (archpy_disassemble): Comment on order of
957 conversion for integers and longs.
958
959 2013-10-03 Pedro Alves <palves@redhat.com>
960
961 * common/linux-ptrace.c (linux_check_ptrace_features): Factor out
962 the PTRACE_O_TRACESYSGOOD and PTRACE_O_TRACEFORK to separate
963 functions. Always test for PTRACE_O_TRACESYSGOOD even if
964 PTRACE_O_TRACEFORK is not supported.
965 (linux_test_for_tracesysgood): New function.
966 (linux_test_for_tracefork): New function, factored out from
967 linux_check_ptrace_features, and also don't kill child_pid here.
968
969 2013-10-03 Tristan Gingold <gingold@adacore.com>
970
971 * i386-darwin-nat.c (i386_darwin_dr_set): Fix argument type.
972 Remove verbose error reporting. Use detected state to
973 thread_set_state call.
974 (i386_darwin_dr_get): Fix return type. Remove verbose error
975 report.
976 Remove trailing spaces.
977
978 2013-10-02 Pedro Alves <palves@redhat.com>
979
980 * cp-valprint.c (cp_print_value_fields): Adjust calls to
981 val_print_optimized_out.
982 * jv-valprint.c (java_print_value_fields): Likewise.
983 * p-valprint.c (pascal_object_print_value_fields): Likewise.
984 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
985 <DWARF_VALUE_REGISTER>: If the register was not saved, return a
986 new optimized out value.
987 * findvar.c (address_from_register): Likewise.
988 * frame.c (put_frame_register): Tweak error string to say the
989 register was not saved, rather than optimized out.
990 * infcmd.c (default_print_one_register_info): Adjust call to
991 val_print_optimized_out. Use value_of_register instead of
992 get_frame_register_value.
993 * mi/mi-main.c (output_register): Use value_of_register instead of
994 get_frame_register_value.
995 * valprint.c (valprint_check_validity): Likewise.
996 (val_print_optimized_out): New value parameter. If the value is
997 lval_register, print <not saved> instead.
998 (value_check_printable, val_print_scalar_formatted): Adjust calls
999 to val_print_optimized_out.
1000 * valprint.h (val_print_optimized_out): New value parameter.
1001 * value.c (struct value) <optimized_out>: Extend comment.
1002 (error_value_optimized_out): New function.
1003 (require_not_optimized_out): Use it. Use a different string for
1004 lval_register values.
1005 * value.h (error_value_optimized_out): New declaration.
1006 * NEWS: Mention <not saved>.
1007
1008 2013-10-02 Joel Brobecker <brobecker@adacore.com>
1009
1010 * symtab.c (compare_search_syms): Use FILENAME_CMP instead of
1011 strcmp to compare two symtab filenames.
1012
1013 2013-10-02 Joel Brobecker <brobecker@adacore.com>
1014
1015 * symtab.c (search_symbols_equal): Delete.
1016 (sort_search_symbols_remove_dups): Replace call to
1017 search_symbols_equal by call to compare_search_syms,
1018 adjusting as necessary.
1019
1020 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
1021
1022 PR python/15579
1023
1024 * python/python.c: Document gdb.execute command in Python help.
1025
1026 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
1027
1028 * python/py-frame.c (frame_info_to_frame_object): Use
1029 gdbpy_convert_exception. Clean up Python object on failure.
1030
1031 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
1032
1033 * python/lib/gdb/command/frame_filters.py
1034 (InfoFrameFilter.list_frame_filters): Retrieve exception manually.
1035 (ShowFrameFilterPriority.invoke): Ditto.
1036
1037 2013-10-01 Keith Seitz <keiths@redhat.com>
1038
1039 * linespec.c (struct ls_parser): Make 'saved_arg' const.
1040 (parse_linespec): Make 'argptr' const.
1041 Remove temporary cast of 'argptr' to const char **.
1042 (decode_line_full): Pass const pointer to parse_linespec.
1043 (decode_line_1): Likewise.
1044 (decode_objc): Make local variable 'new_argptr' const.
1045 (find_function_symbols): Remove temporary cast to char *
1046 to find_imps.
1047 * objc-lang.c (find_imps): Make argument 'method' const.
1048 Return const.
1049 * objc-lang.h (find_imps): Likewise.
1050
1051 2013-10-01 Keith Seitz <keiths@redhat.com>
1052
1053 * completer.c (skip_quoted_chars): Make all arguments const.
1054 Return const.
1055 (skip_quoted): Likewise.
1056 * completer.h (skip_quoted_chars): Likewise.
1057 (skip_quoted): Likewise.
1058 * defs.h (skip_quoted): Remove duplicate declaration.
1059 * jv-exp.y: Include completer.h.
1060 (yylex): Remove unneccessary cast to char * fro skip_quoted.
1061 * p-exp.y: Include completer.h.
1062
1063 2013-10-01 Keith Seitz <keiths@redhat.com>
1064
1065 * c-exp.y (parse_number): Make first argument const.
1066 Make a copy of the input to manipulate.
1067 (c_parse_escape): Make first argument const.
1068 Make local variable 'tokptr' const.
1069 (parse_string_or_char): Make first two arguments const.
1070 (macro_original_text): Make const.
1071 (lex_one_token): Make local variable 'tokstart' const.
1072 Likewise for local variables named 'p'.
1073 Cast away const for struct stoken (temporary).
1074 * c-lang.h (c_parse_escpae): Make first argument const.
1075 * cli/cli-cmds.c (echo_command): Make local variable 'p'
1076 const.
1077 * cli/cli-setshow.c (do_set_command): Likewise for 'p' in
1078 var_string case.
1079 * f-exp.y (parse_number): Make first argument const.
1080 (match_string_literal): Make local variable 'tokstart'
1081 const.
1082 (yylex): Make local variable 'p' const.
1083 Cast away const for struct stoken (temporary).
1084 * go-exp.y (parse_number): Make first argument const.
1085 (parse_string_or_char): Likewise.
1086 Make local variable 'tokstart' const.
1087 (lex_one_token): Likewise for numerous locals called 'p'.
1088 Cast away const for struct stoken (temporary).
1089 * jv-exp.y (parse_number): Make first argument const.
1090 Make local variables 'tokstart' and 'tokptr' const.
1091 Cast away const for call to skip_quoted (temporary).
1092 (yylex): Make local variable 'p' const.
1093 Cast away const for struct stoken (temporary).
1094 * m2-exp.y (parse_number): Make local variable 'p' const.
1095 (yylex): Likewise for 'tokstart'.
1096 Cast away const for struct stoken (temporary).
1097 Make local variable 'p' const.
1098 * macroexp.c (get_character_constant): Pass a const string
1099 to c_parse_escape.
1100 (get_string_literal): Likewise.
1101 (macro_expand_next): Make first argument const.
1102 Cast away const for init_shared_buffer.
1103 * macroexp.h (macro_expand_next): Make first argument const.
1104 * p-exp.y (yylex): Make a local copy of 'lexptr'.
1105 Pass a const string to c_parse_escape.
1106 Make local variables 'p' and 'namestart' const.
1107 * parse.c (lexptr): Make const.
1108 (prev_lexptr): Likewise.
1109 (find_template_name_end): Return const.
1110 Make argument const, too.
1111 (parse_exp_in_context): Make first argument const.
1112 Remove the entire const_hack.
1113 (parse_exp_in_context_1): Make first argument const.
1114 * parser-defs.h (find_template_name_end): Return const.
1115 Make argument const, too.
1116 (lexptr): Make const.
1117 (prev_lexptr): Likewise.
1118 * utils.c (parse_escape): Make second argument const.
1119 * utils.h (parse_escape): Likewise.
1120
1121 2013-10-01 Keith Seitz <keiths@redhat.com>
1122
1123 * ada-exp.y (write_object_renaming): Update: struct stoken.ptr
1124 is now const.
1125 (block_lookup): Make 'raw_name' and 'name' const.
1126 * ada-lex.l (processString): Update for struct stoken.ptr.
1127 * c-exp.y (qualified_name : TYPENAME COLONCOLON '~' name): Likewise.
1128 (operator_stoken): Likewise.
1129 (lex_one_token): Remove temporary cast to char * for
1130 'yylval.sval.ptr'.
1131 * f-exp.y (yylex): Likewise.
1132 * gdb-types.c (lookup_struct_elt_type): Make argument 'name' const.
1133 * gdbtypes.h (lookup_struct_elt_type): Likewisee.
1134 * go-exp.y (lex_one_token): Remove temporary cast to char * for
1135 'yylval.sval.ptr'.
1136 * jv-exp.y (QualifiedName): Update for struct stoken.ptr.
1137 (yylex): Remove temporary cast to char * for 'yylval.sval.ptr'.
1138 * linespec.c (struct ls_parser): Make 'stream' const.
1139 (find_parameter_list_end): Make argument 'input' and local
1140 variable 'p' const.
1141 (linespec_lexer_lex_string): Make local variables 'start' and
1142 'p' const.
1143 Use skip_spaces_const instead of skip_spaces.
1144 (linespec_lexer_peek_token): Make local variable 'saved_stream'
1145 const.
1146 (parse_linespec): Temporarily cast 'argptr' to const for
1147 'parser->lexer.stream'.
1148 * m2-exp.y (yylex): Remove temporary cast to char * for
1149 'yylval.sval.ptr'.
1150 * objc-lang.c (add_msglist): Make local variable 'p' const.
1151 * p-exp.y (exp : exp '['): Update for struct stoken.ptr.
1152 (exp : STRING): Make 'sp' const.
1153 (parse_number): Make argument 'p' const.
1154 * parser-defs.h (struct stoken): Make 'ptr' const.
1155
1156 2013-10-01 Doug Evans <dje@google.com>
1157
1158 * cli/cli-decode.c: Remove unnecessary inclusion of tui/tui.h.
1159
1160 2013-10-01 Yao Qi <yao@codesourcery.com>
1161
1162 * varobj.c (c_value_of_root): Remove declaration.
1163 (cplus_value_of_root, java_value_of_root): Likewise.
1164 (ada_value_of_root): Likewise.
1165 (struct language_specific) <value_of_root>: Remove.
1166 (languages): Update initialization.
1167 (check_scope): Move earlier.
1168 (c_value_of_root): Move earlier and rename to ...
1169 (value_of_root_1): ... this.
1170 (value_of_root): Caller update.
1171 (cplus_value_of_root, java_value_of_root): Remove.
1172 (ada_value_of_root): Remove.
1173
1174 2013-10-01 Yao Qi <yao@codesourcery.com>
1175
1176 * varobj.c (varobj_format_string): Remove "unknown".
1177 (languages): Remove the first element.
1178 * varobj.h (enum varobj_languages): Remove vlang_c.
1179
1180 2013-10-01 Yao Qi <yao@codesourcery.com>
1181
1182 * varobj.c (struct language_specific) <language>: Remove.
1183 (languages): Update the initialization.
1184
1185 2013-10-01 Yao Qi <yao@codesourcery.com>
1186
1187 * arm-wince-tdep.c: Remove inclusion of "solib.h" and
1188 "solib-target.h". Include "windows-tdep.h".
1189 (arm_wince_init_abi): Call windows_init_abi. Remove call to
1190 set_solib_ops and set_gdbarch_has_dos_based_file_system.
1191 * configure.tgt (arm*-wince-pe | arm*-*-mingw32ce*): Append
1192 windows-tdep.o to gdb_target_obs.
1193
1194 2013-10-01 Yao Qi <yao@codesourcery.com>
1195
1196 * amd64-windows-tdep.c: Remove inclusion of "solib.h" and
1197 "solib-target.h".
1198 (amd64_windows_init_abi): Don't call set_solib_ops and
1199 set_gdbarch_iterate_over_objfiles_in_search_order. Call
1200 windows_init_abi instead.
1201 * i386-cygwin-tdep.c: Remove inclusion of "solib.h" and
1202 "solib-target.h".
1203 (i386_cygwin_init_abi): Don't call set_solib_ops,
1204 set_gdbarch_has_dos_based_file_system and
1205 set_gdbarch_iterate_over_objfiles_in_search_order. Call
1206 windows_init_abi instead.
1207 * windows-tdep.c: Include "solib.h" and "solib-target.h".
1208 (windows_init_abi): New function.
1209 (windows_iterate_over_objfiles_in_search_order): Make it
1210 static.
1211 * windows-tdep.h (windows_init_abi): Declare.
1212 (windows_iterate_over_objfiles_in_search_order): Remove
1213 declaration.
1214
1215 2013-10-01 Jerome Guitton <guitton@adacore.com>
1216
1217 Checked in by Joel Brobecker <brobecker@adacore.com>
1218 * system-gdbinit/elinos.py (get_elinos_environment): Return an
1219 incomplete dictionnary instead of None in case of missing
1220 environment variables.
1221 (elinos_init): in case of an incomplete environment, best
1222 effort to load system libraries instead of abort.
1223
1224 2013-10-01 Joel Brobecker <brobecker@adacore.com>
1225
1226 * ada-lang.c (ada_has_this_exception_support): Ignore
1227 mst_solib_trampoline minimal symbols.
1228
1229 2013-09-30 Tristan Gingold <gingold@adacore.com>
1230
1231 * i386-darwin-nat.c (darwin_complete_target): Install methods for
1232 hardware watchpoint.
1233 (i386_darwin_dr_set): Support 32 and 64 bit states.
1234 (i386_darwin_dr_get): Likewise.
1235 (i386_darwin_dr_set_control): Make static.
1236 (i386_darwin_dr_set_addr, i386_darwin_dr_get_addr)
1237 (i386_darwin_dr_get_status, i386_darwin_dr_get_control): Likewise.
1238
1239 2013-09-30 Luis Machado <lgustavo@codesourcery.com>
1240
1241 * aarch64-linux-nat.c: Replace PIDGET with ptid_get_pid.
1242 Replace TIDGET with ptid_get_lwp.
1243 Replace GET_LWP with ptid_get_lwp.
1244 * aix-thread.c (BUILD_THREAD, BUILD_LWP): Remove.
1245 Replace BUILD_THREAD with ptid_build.
1246 Replace BUILD_LWP with ptid_build.
1247 Replace PIDGET with ptid_get_pid.
1248 Replace TIDGET with ptid_get_lwp.
1249 * alphabsd-nat.c: Replace PIDGET with ptid_get_pid.
1250 * amd64-linux-nat.c: Replace PIDGET with ptid_get_pid.
1251 Replace TIDGET with ptid_get_lwp.
1252 * amd64bsd-nat.c: Replace PIDGET with ptid_get_pid.
1253 * arm-linux-nat.c: Replace PIDGET with ptid_get_pid.
1254 Replace TIDGET with ptid_get_lwp.
1255 Replace GET_LWP with ptid_get_lwp.
1256 * armnbsd-nat.c: Replace PIDGET with ptid_get_pid.
1257 * auxv.c: Likewise.
1258 * breakpoint.c: Likewise.
1259 * common/ptid.c (ptid_is_pid): Condense check for
1260 null_ptid and minus_one_ptid.
1261 (ptid_lwp_p): New function.
1262 (ptid_tid_p): New function.
1263 * common/ptid.h: Update comments for accessors.
1264 (ptid_lwp_p): New prototype.
1265 (ptid_tid_p): New prototype.
1266 * defs.h (PIDGET, TIDGET, MERGEPID): Do not define.
1267 * gcore.c: Replace PIDGET with ptid_get_pid.
1268 * gdbthread.h: Likewise.
1269 * gnu-nat.c: Likewise.
1270 * hppa-linux-nat.c: Replace PIDGET with ptid_get_pid.
1271 Replace TIDGET with ptid_get_lwp.
1272 * hppabsd-nat.c: Replace PIDGET with ptid_get_pid.
1273 * hppanbsd-nat.c: Likewise.
1274 * i386-linux-nat.c: Replace PIDGET with ptid_get_pid.
1275 Replace TIDGET with ptid_get_lwp.
1276 * i386bsd-nat.c: Replace PIDGET with ptid_get_pid.
1277 * ia64-linux-nat.c: Replace PIDGET with ptid_get_pid.
1278 * infcmd.c: Likewise.
1279 * inferior.h: Likewise.
1280 * inflow.c: Likewise.
1281 * infrun.c: Likewise.
1282 * linux-fork.c: Likewise.
1283 * linux-nat.c: Replace PIDGET with ptid_get_pid.
1284 Replace GET_PID with ptid_get_pid.
1285 Replace is_lwp with ptid_lwp_p.
1286 Replace GET_LWP with ptid_get_lwp.
1287 Replace BUILD_LWP with ptid_build.
1288
1289 2013-09-28 Mike Frysinger <vapier@gentoo.org>
1290
1291 * common/linux-btrace.c: Move sys/syscall.h out of the
1292 HAVE_LINUX_PERF_EVENT_H check and wrap it in HAVE_SYS_SYSCALL_H.
1293 Also check for SYS_perf_event_open before attempting to buid.
1294
1295 2013-09-27 Doug Evans <dje@google.com>
1296
1297 * dwarf2read.c (dwarf2_section_info): Add comment.
1298 (dwp_file): Split loaded_cutus into loaded_cus, loaded_tus.
1299 All uses updated.
1300 (dwarf2_section_empty_p): Rename arg from "info" to "section".
1301 (dwarf2_read_section): Delete unused local "header". Add section
1302 name to error message.
1303 (create_dwo_in_dwp): Tweak comment.
1304 (MAX_NR_DWO_SECTIONS): Combine count of .debug_macro + .debug_macinfo.
1305
1306 * dwarf2read.c (die_reader_specs): Tweak comment.
1307 (get_section_bfd_owner, get_section_bfd_section): New functions.
1308 (get_section_name, get_section_file_name): New functions.
1309 (get_section_id, get_section_flags): New functions.
1310 (*): Use new functions to access section fields.
1311
1312 * dwarf2read.c (struct dwo_file): Add/tweak comments.
1313 (lookup_dwo_unit_in_dwp): Renamed from lookup_dwo_in_dwp. Remove
1314 arg "htab". All callers updated.
1315 (create_debug_types_hash_table): Remove redundant copy of
1316 abbrev_section.
1317 (create_dwo_in_dwp): Tweak comments.
1318 (read_str_index): Tweak comment. Record dwarf form name in static
1319 local.
1320
1321 2013-09-27 Pedro Alves <palves@redhat.com>
1322
1323 * remote.h (REMOTE_SYSROOT_PREFIX): New define.
1324 (remote_filename_p): Add comment.
1325 * remote.c (remote_filename_p): Adjust to use
1326 REMOTE_SYSROOT_PREFIX.
1327 * solib.c (solib_find): When deciding whether we need to add a
1328 directory separator, check whether the sysroot is "remote:"
1329 instead of checking whether the patch has a drive spec. Add
1330 comments.
1331
1332 2013-09-27 Pedro Alves <palves@redhat.com>
1333
1334 * remote.c (struct stop_reply) <solibs_changed, replay_event>:
1335 Delete fields.
1336 (remote_parse_stop_reply): Adjust, setting event->ws.kind
1337 directly.
1338
1339 2013-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1340
1341 Fix set debug frame output.
1342 * frame.c (fprint_frame_type): Add TAILCALL_FRAME entry. Move
1343 SENTINEL_FRAME entry lower to match enum frame_type order.
1344
1345 2013-09-26 Pierre Muller <muller@sourceware.org>
1346
1347 Replace constant values 8 to 15 by AMD64_R8_REGNUM to
1348 AMD64_R15_REGNUM when a register index is expected.
1349 * amd64-windows-tdep.c (amd64_windows_dummy_call_integer_regs):
1350 Substitute in array.
1351 * amd64-tdep.c (amd64_dwarf_regmap): Ditto.
1352 (amd64_push_arguments): Substitute in integer_regnum array.
1353
1354 2013-09-25 Doug Evans <dje@google.com>
1355
1356 * objfiles.c (allocate_objfile): Move comment to better place.
1357
1358 New option "set debug symfile on".
1359 * NEWS: Mention "set debug symfile".
1360 * Makefile.in (SFILES): Add symfile-debug.c.
1361 (COMMON_OBS): Add symfile-debug.o.
1362 * elfread.c (elf_symfile_read): Use objfile_set_sym_fns to set the
1363 objfile's symbol functions.
1364 * objfiles.h (objfile_set_sym_fns): Declare.
1365 * symfile-debug.c: New file.
1366 * symfile.c (syms_from_objfile_1): Use objfile_set_sym_fns to set the
1367 objfile's symbol functions.
1368 (reread_symbols): Ditto.
1369
1370 * symfile.h (struct sym_fns): Delete member "sym_flavour".
1371 All uses updated.
1372 (add_symtab_fns): Update prototype.
1373 * symfile.c (sym_fns_ptr): Delete. Replace with ...
1374 (registered_sym_fns): ... this.
1375 (symtab_fns): Update.
1376 (add_symtab_fns): New arg "flavour". All callers updated.
1377 (find_sym_fns): Rewrite to use new sym_fns registry.
1378
1379 * symfile.h (struct sym_fns): Add "objfile" argument to
1380 sym_read_linetable. All uses updated.
1381
1382 * symtab.c (domain_name, search_domain_name): New functions.
1383 * symtab.h (domain_name, search_domain_name): Declare.
1384
1385 * symfile.h (struct quick_symbol_functions): Reorg arg list of
1386 map_matching_symbols so objfile is first. All uses updated.
1387 * dwarf2read.c (dw2_map_matching_symbols): Update signature.
1388 * psymtab.c (map_matching_symbols_psymtab): Update signature.
1389
1390 2013-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
1391
1392 PR shlibs/8882
1393 * solib-svr4.c (svr4_read_so_list): Skip the vDSO when reading
1394 link map entries.
1395
1396 2013-09-24 Doug Evans <dje@google.com>
1397
1398 * objfiles.c (free_objfile): Move comment.
1399
1400 2013-09-24 Joel Brobecker <brobecker@adacore.com>
1401
1402 * ada-exp.y (string_to_operator): Delete.
1403 (dummy_string_to_ada_operator): Delete.
1404
1405 2013-09-24 Joel Brobecker <brobecker@adacore.com>
1406
1407 Revert:
1408 * i386-tdep.h (enum amd64_reg_class): New, moved here from
1409 amd64-tdep.c.
1410 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
1411 call_dummy_integer_regs, and classify.
1412 * amd64-tdep.h (amd64_classify): Add declaration.
1413 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
1414 (amd64_reg_class): Delete, moved to i386-tdep.h.
1415 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
1416 Replace call to amd64_classify by call to tdep->classify.
1417 (amd64_push_arguments): Get the list of registers to use for
1418 passing integer parameters from the gdbarch tdep structure,
1419 rather than using a hardcoded one. Replace calls to amd64_classify
1420 by calls to tdep->classify.
1421 (amd64_push_dummy_call): Get the register number used for
1422 the "hidden" argument from tdep->call_dummy_integer_regs.
1423 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
1424 and tdep->call_dummy_integer_regs. Set tdep->classify.
1425
1426 2013-09-24 Joel Brobecker <brobecker@adacore.com>
1427
1428 Revert:
1429 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
1430 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
1431 where tdep->memory_args_by_pointer is non-zero.
1432
1433 2013-09-24 Joel Brobecker <brobecker@adacore.com>
1434
1435 Revert:
1436 * i386-tdep.h (struct gdbarch_tdep): Add new field
1437 integer_param_regs_saved_in_caller_frame.
1438 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
1439 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
1440
1441 2013-09-24 Joel Brobecker <brobecker@adacore.com>
1442
1443 * amd64-windows-tdep.c: #include "value.h"
1444 (amd64_windows_classify): Delete.
1445 (amd64_windows_passed_by_integer_register)
1446 (amd64_windows_passed_by_xmm_register)
1447 (amd64_windows_passed_by_pointer)
1448 (amd64_windows_adjust_args_passed_by_pointer)
1449 (amd64_windows_store_arg_in_reg, amd64_windows_push_arguments)
1450 (amd64_windows_push_dummy_call): New functions.
1451 (amd64_windows_init_abi): Remove setting of
1452 tdep->call_dummy_num_integer_regs, tdep->call_dummy_integer_regs,
1453 tdep->classify, tdep->memory_args_by_pointer and
1454 tdep->integer_param_regs_saved_in_caller_frame.
1455 Add call to set_gdbarch_push_dummy_call.
1456
1457 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1458
1459 * dwarf2read.c (open_and_init_dwp_file): Try open_dwp_file also with
1460 objfile->original_name.
1461
1462 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1463
1464 Pass down original filename for objfile.
1465 * coffread.c (coff_symfile_read): Update symbol_file_add_separate call.
1466 * elfread.c (elf_symfile_read): Likewise.
1467 * jit.c (jit_object_close_impl): Update allocate_objfile call, no
1468 longer set ORIGINAL_NAME.
1469 (jit_bfd_try_read_symtab): Update symbol_file_add_from_bfd call.
1470 * jv-lang.c (get_dynamics_objfile): Update allocate_objfile call.
1471 * machoread.c (macho_add_oso_symfile): Add parameter name. Update
1472 symbol_file_add_from_bfd call.
1473 (macho_symfile_read_all_oso): Update two macho_add_oso_symfile calls.
1474 (macho_check_dsym): Add parameter filenamep. Change function comment.
1475 Set *filenamep.
1476 (macho_symfile_read): New variable dsym_filename. Update
1477 macho_check_dsym call. Use it for symbol_file_add_separate.
1478 * objfiles.c (allocate_objfile): Add parameter name. New comment for
1479 it. Use it for objfile->original_name.
1480 (objfile_name): Return OBFD's filename, if available.
1481 * objfiles.h (allocate_objfile): Add new parameter name.
1482 * solib.c (solib_read_symbols): Update symbol_file_add_from_bfd call.
1483 * symfile-mem.c (symbol_file_add_from_memory): Update
1484 symbol_file_add_from_bfd call.
1485 * symfile.c (read_symbols): Update symbol_file_add_separate call, new
1486 comment for it.
1487 (symbol_file_add_with_addrs): New parameter name, add function comment
1488 for it. Remove variable name. Update allocate_objfile call.
1489 (symbol_file_add_separate): New parameter name, add function comment
1490 for it. Update symbol_file_add_with_addrs call.
1491 (symbol_file_add_from_bfd): New parameter name. Update
1492 symbol_file_add_with_addrs call.
1493 (symbol_file_add): Update symbol_file_add_from_bfd call.
1494 (reread_symbols): New variable original_name. Save
1495 objfile->original_name by it.
1496 * symfile.h (symbol_file_add_from_bfd, symbol_file_add_separate): Add
1497 second parameter.
1498
1499 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1500
1501 Code cleanup: Add objfile_name accessor function.
1502 * ada-lang.c (is_known_support_routine): Use objfile_name.
1503 * auto-load.c (source_gdb_script_for_objfile)
1504 (auto_load_objfile_script): Likewise.
1505 * coffread.c (coff_symtab_read, read_one_sym): Likewise.
1506 * dbxread.c (dbx_symfile_read): Likewise.
1507 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
1508 * dwarf2loc.c (locexpr_describe_location_piece): Likewise.
1509 * dwarf2read.c (dwarf2_get_dwz_file, dwarf2_read_index)
1510 (dw2_symtab_iter_next, dw2_expand_symtabs_matching)
1511 (lookup_dwp_signatured_type, lookup_dwo_unit)
1512 (dwarf2_build_psymtabs_hard, scan_partial_symbols, process_queue)
1513 (fixup_go_packaging, process_imported_unit_die, dwarf2_physname)
1514 (read_import_statement, create_dwo_cu, open_and_init_dwp_file)
1515 (lookup_dwo_cutu, read_call_site_scope, dwarf2_ranges_read)
1516 (dwarf2_record_block_ranges, read_common_block, read_typedef)
1517 (read_subrange_type, load_partial_dies, read_partial_die)
1518 (read_addr_index_1, read_str_index, dwarf_decode_lines_1)
1519 (die_containing_type, build_error_marker_type, lookup_die_type)
1520 (follow_die_ref_or_sig, follow_die_ref, dwarf2_fetch_die_loc_sect_off)
1521 (dwarf2_fetch_constant_bytes, follow_die_sig, get_signatured_type)
1522 (get_DW_AT_signature_type, write_psymtabs_to_index)
1523 (save_gdb_index_command): Likewise.
1524 * elfread.c (find_separate_debug_file_by_buildid, elf_symfile_read):
1525 Likewise.
1526 * expprint.c (dump_subexp_body_standard): Likewise.
1527 * gdbtypes.c (type_name_no_tag_or_error): Likewise.
1528 * jit.c (jit_object_close_impl): Use the objfile field name renamed to
1529 original_name.
1530 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New variable
1531 obj_name, use objfile_name for it, use the variable.
1532 (try_thread_db_load_from_pdir, has_libpthread, thread_db_new_objfile):
1533 Use objfile_name.
1534 * machoread.c (macho_symtab_read, macho_check_dsym)
1535 (macho_symfile_relocate): Likewise.
1536 * maint.c (maintenance_translate_address): Likewise.
1537 * minidebug.c (find_separate_debug_file_in_section): Likewise.
1538 * minsyms.c (install_minimal_symbols): Likewise.
1539 * objfiles.c (allocate_objfile): Use the objfile field name renamed to
1540 original_name.
1541 (filter_overlapping_sections): Use objfile_name.
1542 (objfile_name): New function.
1543 * objfiles.h (struct objfile): Rename field name to original_name.
1544 (objfile_name): New prototype.
1545 * printcmd.c (sym_info, address_info): Use objfile_name.
1546 * probe.c (parse_probes, collect_probes, compare_probes)
1547 (info_probes_for_ops): Likewise.
1548 * progspace.c (clone_program_space): Likewise.
1549 * psymtab.c (require_partial_symbols, dump_psymtab, allocate_psymtab)
1550 (maintenance_info_psymtabs): Likewise.
1551 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
1552 (source_section_scripts): Likewise.
1553 * python/py-objfile.c (objfpy_get_filename): Likewise.
1554 * python/py-progspace.c (pspy_get_filename): Likewise.
1555 * solib-aix.c (solib_aix_get_toc_value): Likewise.
1556 * solib-som.c (match_main, som_solib_section_offsets): Likewise.
1557 * solib.c (solib_read_symbols): Likewise.
1558 * stabsread.c (scan_file_globals): Likewise.
1559 * stap-probe.c (handle_stap_probe): Likewise.
1560 * symfile.c (symbol_file_clear, separate_debug_file_exists)
1561 (find_separate_debug_file_by_debuglink): Likewise.
1562 (reread_symbols): Likewise. Use the objfile field name renamed to
1563 original_name.
1564 (allocate_symtab): Use objfile_name.
1565 * symmisc.c (print_symbol_bcache_statistics, print_objfile_statistics)
1566 (dump_objfile, dump_msymbols, dump_symtab_1)
1567 (maintenance_print_msymbols, maintenance_print_objfiles)
1568 (maintenance_info_symtabs, maintenance_check_symtabs): Likewise.
1569 * target.c (target_translate_tls_address, target_info): Likewise.
1570 * xcoffread.c (xcoff_initial_scan): Make variable name const. Use
1571 objfile_name.
1572
1573 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1574
1575 Code cleanup.
1576 * probe.c (parse_probes): Rename variable objfile_name to
1577 objfile_namestr.
1578
1579 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1580
1581 Remove solib-sunos.c.
1582 * Makefile.in (ALLDEPFILES): Remove solib-sunos.c.
1583 * config/m68k/obsd.mh (NATDEPFILES): Remove solib-sunos.o.
1584 * objfiles.c (rt_common_objfile): Remove.
1585 (free_objfile): Remove rt_common_objfile comparison.
1586 * objfiles.h (rt_common_objfile): Remove.
1587 * solib-sunos.c: Remove.
1588 * symfile.c (reread_symbols): Remove solib-sunos.c comment.
1589
1590 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1591
1592 Remove a.out NetBSD and OpenBSD hosts.
1593 * NEWS (Removed native configurations): New.
1594 * config/arm/nbsdaout.mh: Remove.
1595 * config/i386/nbsdaout.mh: Remove.
1596 * config/i386/obsdaout.mh: Remove.
1597 * config/m68k/nbsdaout.mh: Remove.
1598 * config/sparc/nbsdaout.mh: Remove.
1599 * config/vax/nbsdaout.mh: Remove.
1600 * configure.host (arm*-*-netbsd*, i[34567]86-*-netbsd*)
1601 (i[34567]86-*-openbsd[0-2].*, i[34567]86-*-openbsd3.[0-3])
1602 (m68*-*-netbsd*, sparc-*-netbsd*, vax-*-netbsd*): Add them to obsolete
1603 error.
1604 (arm*-*-netbsd*, i[34567]86-*-netbsd*, i[34567]86-*-openbsd[0-2].*)
1605 (i[34567]86-*-openbsd3.[0-3], m68*-*-netbsd*, sparc-*-netbsdaout*)
1606 (sparc-*-netbsd*, vax-*-netbsd*): Remove.
1607
1608 2013-09-23 Tom Tromey <tromey@redhat.com>
1609
1610 * linespec.c (struct minsym_and_objfile): Remove.
1611 (minsym_and_objfile_d): Remove.
1612 (struct linespec, struct collect_info, linespec_parse_basic)
1613 (convert_linespec_to_sals, linespec_parser_delete, decode_objc)
1614 (compare_msymbols, find_method, find_function_symbols)
1615 (find_linespec_symbols, struct collect_minsyms, compare_msyms)
1616 (add_minsym, search_minsyms_for_name): Update.
1617
1618 2013-09-23 Andrew Burgess <aburgess@broadcom.com>
1619
1620 * regcache.c: Add include of valprint.h.
1621 (dump_endian_bytes): Delete.
1622 (regcache_dump): Use print_hex_chars not dump_endian_bytes.
1623
1624 2013-09-23 Andrew Burgess <aburgess@broadcom.com>
1625
1626 * sh64-tdep.c (sh64_do_fp_register): Use print_hex_chars.
1627
1628 2013-09-19 Pedro Alves <palves@redhat.com>
1629
1630 * breakpoint.c (remove_threaded_breakpoints): Skip non-user
1631 breakpoints.
1632
1633 2013-09-19 Pedro Alves <palves@redhat.com>
1634 Thomas Schwinge <thomas@codesourcery.com>
1635 Yue Lu <hacklu.newborn@gmail.com>
1636
1637 * gnu-nat.c (gnu_read_inferior, gnu_write_inferior): Make static.
1638 Take a gdb_byte pointer instead of a char pointer.
1639
1640 * gnu-nat.c (gnu_xfer_memory): Adjust interface as
1641 gnu_xfer_partial helper.
1642 (gnu_xfer_partial): New function.
1643 (gnu_target): Don't install a deprecated_xfer_memory hook.
1644 Install a to_xfer_partial hook.
1645
1646 2013-09-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1647
1648 Constification.
1649 * main.c (captured_main): Replace catch_command_errors by
1650 catch_command_errors_const. Twice.
1651 * symfile.c (symbol_file_add_main_1): Make args parameter const.
1652 (symbol_file_add): Make name parameter const.
1653 (symbol_file_add_main, symbol_file_add_main_1): Make args parameter const.
1654 (symfile_bfd_open): Make name parameter const, rename it to cname. Add
1655 variable name. Change their usage accordingly.
1656 * symfile.h (symbol_file_add, symfile_bfd_open): Make first parameter
1657 const.
1658 (symbol_file_add_main): Make args parameter const.
1659
1660 2013-09-18 Raunaq Bathija <raunaq12@in.ibm.com>
1661 Ulrich Weigand <uweigand@de.ibm.com>
1662
1663 * xcoffread.c (struct coff_symbol): Use CORE_ADDR as type
1664 of c_value member.
1665 (read_xcoff_symtab): Use CORE_ADDR as type of fcn_start_addr.
1666
1667 2013-09-18 Pedro Alves <palves@redhat.com>
1668 Yue Lu <hacklu.newborn@gmail.com>
1669
1670 * gnu-nat.c (inf_validate_procs, gnu_wait, gnu_resume)
1671 (gnu_create_inferior)
1672 (gnu_attach, gnu_thread_alive, gnu_pid_to_str, cur_thread)
1673 (set_sig_thread_cmd): Use the lwpid field of ptids to
1674 store/extract thread ids instead of the tid field.
1675 * i386gnu-nat.c (gnu_fetch_registers): Adjust.
1676
1677 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
1678
1679 * infcmd.c (default_print_one_register_info): Add detection of
1680 optimized out values.
1681 (default_print_registers_info): Switch to using
1682 get_frame_register_value.
1683
1684 2013-09-18 Markus Metzger <markus.t.metzger@intel.com>
1685
1686 * infrun.c (handle_inferior_event): Check if we know the
1687 function start address before setting a resume breakpoint.
1688
1689 2013-09-18 Pedro Alves <palves@redhat.com>
1690
1691 * gnu-nat.c (set_sig_thread_cmd): Compare the thread's ptid to
1692 minus_one_ptid instead of looking at the ptid's tid field and
1693 comparing that to -1.
1694
1695 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
1696
1697 * main.h (get_gdb_program_name): Remove extra whitespace.
1698
1699 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
1700
1701 * main.h (get_gdb_program_name): Add declaration.
1702 * main.c (get_gdb_program_name): Add definition.
1703
1704 2013-09-17 Doug Evans <dje@google.com>
1705
1706 * dwarf2read.c: Move definitions of complaint functions to after
1707 forward declarations of local functions.
1708
1709 2013-09-17 Muhammad Waqas <mwaqas@codesourcery.com>
1710 Pedro Alves <palves@redhat.com>
1711
1712 PR gdb/11568
1713 * breakpoint.c (remove_threaded_breakpoints): New function.
1714 (_initialize_breakpoint): Attach remove_threaded_breakpoints
1715 as thread_exit observer.
1716
1717 2013-09-17 Pedro Alves <palves@redhat.com>
1718
1719 PR gdb/15911
1720 * ada-tasks.c (task_command_1): Adjust call to print_stack_frame.
1721 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
1722 * corelow.c (core_open):
1723 * frame.h (print_stack_frame, print_frame_info): New
1724 'set_current_sal' parameter.
1725 * infcmd.c (finish_command, kill_command): Adjust call to
1726 print_stack_frame.
1727 * inferior.c (inferior_command): Likewise.
1728 * infrun.c (normal_stop): Likewise.
1729 * linux-fork.c (linux_fork_context): Likewise.
1730 * record-full.c (record_full_goto_entry, record_full_restore):
1731 Likewise.
1732 * remote-mips.c (common_open): Likewise.
1733 * stack.c (print_stack_frame): New 'set_current_sal' parameter.
1734 Use it.
1735 (print_frame_info): New 'set_current_sal' parameter. Set the last
1736 displayed sal depending on the new paremeter instead of looking at
1737 print_what.
1738 (backtrace_command_1, select_and_print_frame, frame_command)
1739 (current_frame_command, up_command, down_command): Adjust call to
1740 print_stack_frame.
1741 * thread.c (print_thread_info, restore_selected_frame)
1742 (do_captured_thread_select): Adjust call to print_stack_frame.
1743 * tracepoint.c (tfind_1): Likewise.
1744 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
1745 (mi_cmd_stack_info_frame): Likewise.
1746 * mi/mi-interp.c (mi_on_normal_stop): Likewise.
1747 * mi/mi-main.c (mi_cmd_exec_return, mi_cmd_trace_find): Likewise.
1748
1749 2013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1750
1751 * value.c (isvoid_internal_fn): Replace "parameter" with
1752 "argument".
1753
1754 2013-09-16 Stan Shebs <stan@codesourcery.com>
1755
1756 * README: Update references to writing code for GDB.
1757 * configure.ac (build_warnings): Remove obsolete comment.
1758 * configure: Regenerate.
1759 * gdbarch.sh: Remove references to gdbint.texinfo.
1760 * gdbarch.h: Regenerate.
1761 * gdbtypes.c (objfile_type): Remove comments referencing internals
1762 manual and D10V.
1763
1764 2013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1765
1766 * NEWS: Mention new convenience function $_isvoid.
1767 * value.c (isvoid_internal_fn): New function.
1768 (_initialize_values): Add new convenience function $_isvoid.
1769
1770 2013-09-16 Pierre Muller <muller@sourceware.org>
1771
1772 * arm-linux-tdep.c: Add "elf/common.h" header.
1773 Remove AT_HWCAP macro definintion as it is provided in
1774 added include file.
1775 * s390-tdep.c: Remove system header <elf.h>
1776 Add "elf/common.h" header for AT_HWCAP definition.
1777 (s390_core_read_description): Use correct CORE_ADDR
1778 for hwcap local variable used as third parameter
1779 of function target_auxv_search.
1780
1781 2013-09-14 Pierre Muller <muller@sourceware.org>
1782 Tom Tromey <tromey@redhat.com>
1783 Pedro Alves <palves@redhat.com>
1784
1785 * common/filestuff.c (gdb_fopen_cloexec): Do not try to use "e"
1786 mode if operating system doesn't know O_CLOEXEC.
1787
1788 2013-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1789
1790 Code cleanup.
1791 * symfile.c (reread_symbols): Move variable obfd_filename to a more
1792 inner block.
1793
1794 2013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
1795
1796 * NEWS: Mention TDB support.
1797 * features/s390-tdb.xml: New file.
1798 * features/s390-te-linux64.xml: New file.
1799 * features/s390x-te-linux64.xml: New file.
1800 * features/Makefile (WHICH): Add new tdescs above.
1801 (s390-te-linux64-expedite): Set.
1802 (s390x-te-linux64-expedite): Set.
1803 * features/s390-te-linux64.c: New file (generated).
1804 * features/s390x-te-linux64.c: New file (generated).
1805 * regformats/s390-te-linux64.dat: New file (generated).
1806 * regformats/s390x-te-linux64.dat: New file (generated).
1807 * s390-tdep.h (HWCAP_S390_HIGH_GPRS): Define.
1808 (HWCAP_S390_TE): Likewise.
1809 (S390_TDB_DWORD0_REGNUM): Likewise.
1810 (S390_TDB_DWORD0_REGNUM): Likewise.
1811 (S390_TDB_ABORT_CODE_REGNUM): Likewise.
1812 (S390_TDB_CONFLICT_TOKEN_REGNUM): Likewise.
1813 (S390_TDB_ATIA_REGNUM): Likewise.
1814 (S390_TDB_R0_REGNUM): Likewise.
1815 (S390_TDB_R1_REGNUM): Likewise.
1816 (S390_TDB_R2_REGNUM): Likewise.
1817 (S390_TDB_R3_REGNUM): Likewise.
1818 (S390_TDB_R4_REGNUM): Likewise.
1819 (S390_TDB_R5_REGNUM): Likewise.
1820 (S390_TDB_R6_REGNUM): Likewise.
1821 (S390_TDB_R7_REGNUM): Likewise.
1822 (S390_TDB_R8_REGNUM): Likewise.
1823 (S390_TDB_R9_REGNUM): Likewise.
1824 (S390_TDB_R10_REGNUM): Likewise.
1825 (S390_TDB_R11_REGNUM): Likewise.
1826 (S390_TDB_R12_REGNUM): Likewise.
1827 (S390_TDB_R13_REGNUM): Likewise.
1828 (S390_TDB_R14_REGNUM): Likewise.
1829 (S390_TDB_R15_REGNUM): Likewise.
1830 (S390_NUM_REGS): Increase.
1831 (S390_IS_TDBREGSET_REGNUM): New macro.
1832 (s390_regmap_tdb): Declare.
1833 (s390_sizeof_tdbregset): Define.
1834 (tdesc_s390_te_linux64): Declare.
1835 (tdesc_s390x_te_linux64): Likewise.
1836 * s390-tdep.c: Add includes for "auxv.h", <elf.h>,
1837 "features/s390-te-linux64.c", and "features/s390x-te-linux64.c".
1838 (s390_regmap_tdb): New regmap.
1839 (s390_supply_tdb_regset): New function.
1840 (s390_tdb_regset): New regset.
1841 (s390_linux64v2_regset_sections): Add TDB regset to list.
1842 (s390x_linux64v2_regset_sections): Likewise.
1843 (s390_regset_from_core_section): Recognize TDB core note section.
1844 (s390_core_read_description): If HWCAP indicates TE support,
1845 select tdesc_s390_te_linux64 or tdesc_s390_s390x_te_linux64.
1846 (s390_gdbarch_init): Handle TDB regset.
1847 (_initialize_s390_tdep): Initialize new tdescs.
1848 * s390-nat.c (HWCAP_S390_HIGH_GPRS): Remove define.
1849 (have_regset_tdb): New variable.
1850 (s390_native_supply): Support register invalidation.
1851 (fetch_regset): Invalidate registers if ptrace yields ENODATA.
1852 (check_regset): Treat ENODATA as "regset exists".
1853 (s390_linux_fetch_inferior_registers): Add TDB.
1854 (s390_read_description): Check for TDB existence and select
1855 appropriate tdesc.
1856 * gdbserver/Makefile.in (clean): Add removal of new makefile
1857 targets.
1858 (s390-te-linux64.c): New makefile target.
1859 (s390x-te-linux64.c): Likewise.
1860 * gdbserver/configure.srv (srv_regobj): Append new objects
1861 s390-te-linux64.o and s390x-te-linux64.o.
1862 (srv_xmlfiles): Append new files s390-te-linux64.xml,
1863 s390x-te-linux64.xml, and s390-tdb.xml.
1864 * gdbserver/linux-s390-low.c (init_registers_s390_te_linux64): New
1865 declaration.
1866 (tdesc_s390_te_linux64): Likewise.
1867 (init_registers_s390x_te_linux64): Likewise.
1868 (tdesc_s390x_te_linux64): Likewise.
1869 (s390_check_regset): Treat ENODATA as "regset exists".
1870 (s390_arch_setup): Add TDB regset support.
1871 (initialize_low_arch): Initialize registers for new tdescs.
1872
1873 2013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
1874
1875 * s390-tdep.h (S390_IS_GREGSET_REGNUM): New macro.
1876 (S390_IS_FPREGSET_REGNUM): New macro.
1877 * s390-tdep.c (s390_dwarf_regmap): Make const.
1878 (regnum_is_gpr_full): New function for replacing repeated code.
1879 (s390_pseudo_register_name): Use it.
1880 (s390_pseudo_register_type): Likewise.
1881 (s390_pseudo_register_read): Likewise.
1882 (s390_pseudo_register_write): Likewise.
1883 (s390_unwind_pseudo_register): Likewise.
1884 (s390_regmap_gregset): New format for regmap.
1885 (s390x_regmap_gregset): Likewise.
1886 (s390_regmap_fpregset): Likewise.
1887 (s390_regmap_upper): Likewise.
1888 (s390_regmap_last_break): Likewise.
1889 (s390_regmap_system_call): Likewise.
1890 (s390_supply_regset): Adjust to new regmap format.
1891 (s390_collect_regset): Likewise.
1892 * s390-nat.c (s390_native_supply): Adjust to new regmap format.
1893 (s390_native_collect): Likewise.
1894 (supply_gregset): Likewise.
1895 (fill_gregset): Likewise.
1896 (supply_fpregset): Likewise.
1897 (fill_fpregset): Likewise.
1898 (fetch_regset): Likewise.
1899 (store_regset): Likewise.
1900 (s390_linux_fetch_inferior_registers): Likewise.
1901 (s390_linux_fetch_inferior_registers): Likewise.
1902
1903 2013-09-12 Andrew Pinski <apinski@cavium.com>
1904
1905 * aarch64-linux-nat.c (aarch64_linux_set_debug_regs): Zero out regs.
1906
1907 2013-09-10 Andreas Arnez <arnez@linux.vnet.ibm.com>
1908
1909 * config/s390/s390.mh (NATDEPFILES): Add linux-waitpid.o.
1910
1911 2013-09-09 Andrew Burgess <aburgess@broadcom.com>
1912
1913 * top.c (quit_confirm): Remove use of deprecated_init_ui_hook.
1914
1915 2013-09-06 Pedro Alves <palves@redhat.com>
1916
1917 * remote-sim.c (dump_mem, gdbsim_fetch_register)
1918 (gdbsim_store_register, gdbsim_kill, gdbsim_load)
1919 (gdbsim_create_inferior, gdbsim_open, gdbsim_close)
1920 (gdbsim_detach, gdbsim_resume_inferior, gdbsim_wait)
1921 (gdbsim_files_info, gdbsim_mourn_inferior): Send debug output to
1922 gdb_stdlog.
1923
1924 2013-09-06 Pedro Alves <palves@redhat.com>
1925
1926 * remote-sim.c (dump_mem): Constify buf parameter.
1927 gdbsim_xfer_inferior_memory): Rename to ...
1928 (gdbsim_xfer_memory): ... this. Adjust interface as
1929 target_xfer_partial helper.
1930 (gdbsim_xfer_partial): New function.
1931 (init_gdbsim_ops): Don't install a deprecated_xfer_memory hook.
1932 Install a to_xfer_partial hook. Send output to gdb_stdlog.
1933
1934 2013-09-06 Pedro Alves <palves@redhat.com>
1935
1936 * remote-sim.c (gdbsim_xfer_inferior_memory): Use
1937 host_address_to_string, and send debug output to gdb_stdlog.
1938
1939 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
1940
1941 * Makefile.in (ALL_TARGET_OBS): Add cris-linux-tdep.o.
1942 * configure.tgt: Add cris-linux-tdep.o and linux-tdep.o to
1943 gdb_target_obs for cris target.
1944 * cris-tdep.c (struct gdbarch_tdep): Move to cris-tdep.h.
1945 (cris_gdbarch_init): Move calls to
1946 set_gdbarch_fetch_tls_load_module_address and
1947 set_solib_svr4_fetch_link_map_offsets to cris-linux-tdep.c.
1948 Add call to gdbarch_init_osabi.
1949 * cris-linux-tdep.c: New file.
1950 * cris-tdep.h: New file.
1951
1952 2013-09-06 Andrew Burgess <aburgess@broadcom.com>
1953
1954 * tui/tui-io.c (tui_initialize_io): Remove legacy comment referring
1955 to deprecated_init_ui_hook.
1956
1957 2013-09-06 Andrew Burgess <aburgess@broadcom.com>
1958
1959 * cli/cli-interp.c (_initialize_cli_interp): Add a
1960 command_loop_proc to interp_procs.
1961 * event-top.c (cli_command_loop): Change signature to match
1962 interp_command_loop_ftype.
1963 * event-top.h (cli_command_loop): Same.
1964 * interps.c (interp_new): Require every interpreter to have a
1965 command_loop_proc.
1966 (current_interp_command_loop): Just call the command_loop_proc on
1967 the current interpreter.
1968 * tui/tui-interp.c (_initialize_tui_interp): Add a
1969 command_loop_proc to interp_procs.
1970
1971 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
1972
1973 * cris-tdep.c (cris_gdbarch_init): Add call to
1974 get_gdbarch_fetch_tls_load_module_address.
1975
1976 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
1977
1978 * cris-tdep.c (cris_elf_greg_t): Rename from elf_greg_t.
1979 (cris_elf_gregset_t): Rename from elf_gregset_t.
1980 (crisv32_elf_gregset_t): Adjust.
1981 (cris_supply_gregset, fetch_core_registers): Adjust.
1982
1983 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
1984
1985 * cris-tdep.c (elf_greg_t): Change typedef to unsigned char[4]
1986
1987 2013-09-05 Andrew Burgess <aburgess@broadcom.com>
1988
1989 * defs.h (deprecated_command_loop_hook): Remove, including
1990 references in comments.
1991 * interps.c (current_interp_command_loop): No longer use
1992 deprecated_command_loop_hook.
1993 (clear_interpreter_hooks): Remove deprecated_command_loop_hook
1994 setup.
1995 * top.c (deprecated_command_loop_hook): Remove.
1996
1997 2013-09-05 Pedro Alves <palves@redhat.com>
1998
1999 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): 'dwarf_regnum'
2000 local is now int instead of ULONGEST. Print it with %d
2001 instead of paddress.
2002
2003 2013-09-05 Tristan Gingold <gingold@adacore.com>
2004
2005 * MAINTAINERS: Remove avr maintainership.
2006
2007 2013-09-05 Pedro Alves <palves@redhat.com>
2008
2009 * findvar.c (value_of_register): Rework in terms of
2010 value_of_register_lazy.
2011
2012 2013-09-05 Muhammad Bilal <mbilal@codesourcery.com>
2013
2014 * symfile.c (add_symbol_file_command): Remove trailing
2015 whitespaces and blank line after comment.
2016
2017 2013-09-05 Pedro Alves <palves@redhat.com>
2018
2019 * tui/tui-regs.c (tui_register_format): Don't look at the
2020 register's name here. Return string representing register
2021 value instead of storing it in the data element.
2022 (tui_get_register): Compare register string representations
2023 instead of register value states and contents.
2024
2025 2013-09-05 Pedro Alves <palves@redhat.com>
2026
2027 PR tui/15933
2028 * tui/tui-regs.c (tui_show_registers): Show registers of the
2029 selected frame, not the current frame.
2030
2031 2013-09-05 Ricard Wanderlof <ricardw@axis.com>
2032
2033 * MAINTAINERS (Write After Approval): Add myself to the list.
2034
2035 2013-09-04 Doug Evans <dje@google.com>
2036
2037 * dwarf2read.c (queue_and_load_all_dwo_tus): New function.
2038 (queue_and_load_dwo_tu): New function.
2039 (lookup_dwo_signatured_type): Set per_cu.tu_read.
2040 (maybe_queue_comp_unit): Rename this_cu argument to dependent_cu.
2041 Make dependent_cu optional.
2042 (dw2_do_instantiate_symtab): If we just loaded a CU from a DWO,
2043 and an older .gdb_index is in use, queue and load all its TUs too.
2044
2045 2013-09-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2046
2047 Code cleanup: Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH.
2048 * cli/cli-cmds.c (find_and_open_script): Add OPF_RETURN_REALPATH to
2049 variable search_flags.
2050 * defs.h (OPF_DISABLE_REALPATH): Rename to ...
2051 (OPF_RETURN_REALPATH): ... here.
2052 * dwarf2read.c (try_open_dwop_file): Set OPF_RETURN_REALPATH for flags.
2053 * exec.c (exec_file_attach): Remove OPF_DISABLE_REALPATH from openp
2054 call. Twice.
2055 * nto-tdep.c (nto_find_and_open_solib): Add OPF_RETURN_REALPATH for
2056 openp call.
2057 * solib.c (solib_find): Likewise. Four times.
2058 * source.c (openp): Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH
2059 in the function comment and for the realpath_fptr variable.
2060 (source_full_path_of): Add OPF_RETURN_REALPATH for openp call.
2061 (find_and_open_source): Likewise. Twice.
2062 * symfile.c (symfile_bfd_open): Likewise, also twice.
2063
2064 2013-09-04 Doug Evans <dje@google.com>
2065
2066 * progspace.c (save_current_space_and_thread): Remove unnecessary
2067 call to save_current_inferior.
2068
2069 2013-09-04 Andrew Burgess <aburgess@broadcom.com>
2070
2071 * sh64-tdep.c (sh64_do_register): Return after printing message
2072 about unavailable register contents.
2073
2074 2013-09-04 Muhammad Bilal <mbilal@codesourcery.com>
2075 Pedro Alves <palves@redhat.com>
2076
2077 * symfile.c (add_symbol_file_command): Error out on unknown
2078 option. Handle EXPECTING_SEC_ADDR/EXPECTING_SEC_NAME before '-'
2079 options and collapse into single conditional branch.
2080
2081 2013-09-03 Luis Machado <lgustavo@codesourcery.com>
2082
2083 * inf-child.c (inf_child_follow_fork): New parameter
2084 detach_fork.
2085 * inf-ptrace.c (inf_ptrace_follow_fork): Likewise.
2086 * inf-ttrace.c (inf_ttrace_follow_fork): Likewise.
2087 * inferior.h (detach_fork): Remove.
2088 * infrun.c (detach_fork): Adjust comment and make it
2089 static.
2090 (follow_fork): Pass detach_fork parameter to
2091 target_follow_fork.
2092 * linux-nat.c (linux_child_follow_fork): New parameter
2093 detach_fork.
2094 * target.c (target_follow_fork): New parameter detach_fork.
2095 Pass detach_fork as parameter and print its value.
2096 * target.h (struct target_ops) <to_follow_fork>: New int
2097 parameter.
2098 (target_follow_fork): New parameter detach_fork.
2099
2100 2013-09-03 Joel Brobecker <brobecker@adacore.com>
2101
2102 * solib-ia64-hpux.c (ia64_hpux_relocate_section_addresses):
2103 Replace sec->bfd by sec->the_bfd_section->owner.
2104
2105 2013-09-03 Yao Qi <yao@codesourcery.com>
2106
2107 * linux-tdep.c (linux_is_uclinux): New function. Code moved
2108 from linux_has_shared_address_space.
2109 (linux_has_shared_address_space): Call linux_is_uclinux.
2110 * linux-tdep.h (linux_is_uclinux): Declare.
2111 * m68klinux-tdep.c (m68k_linux_get_sigtramp_info): Call
2112 linux_is_uclinux.
2113
2114 2013-09-03 Yao Qi <yao@codesourcery.com>
2115
2116 * config/djgpp/fnchange.lst: Remove entry of
2117 i386-interix-nat.c and i386-interix-tdep.c.
2118 * configure.ac: Remove '*-*-interix*'.
2119 * configure: Re-generated.
2120 * defs.h (enum gdb_osabi): Remove GDB_OSABI_INTERIX.
2121 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Remove
2122 obsolete comments.
2123 * osabi.c (gdb_osabi_names): Remove "Interix".
2124
2125 2013-09-03 Yao Qi <yao@codesourcery.com>
2126
2127 * arch-utils.c: Fix typo in the comment to gdbarch_update_p.
2128
2129 2013-09-02 Markus Metzger <markus.t.metzger@intel.com>
2130
2131 * record.h (record_print_flag) <record_print_src_line,
2132 record_print_insn_range>: Rename into ...
2133 (record_print_flag) <record_print_src_line,
2134 record_print_insn_range>: ... this. Update all users.
2135
2136 2013-09-02 Pierre Muller <muller@sourceware.org>
2137
2138 * windows-nat.c (windows_xfer_memory): Handle ERROR_PARTIAL_COPY
2139 error code.
2140
2141 2013-09-02 Pierre Muller <muller@sourceware.org>
2142
2143 * windows-nat.c (windows_xfer_memory): Fix compilation failure
2144 by use of plongest function.
2145
2146 2013-09-02 Tristan Gingold <gingold@adacore.com>
2147
2148 * NEWS: Add entry mentioning support for native Windows x64
2149 SEH data.
2150
2151 * amd64-windows-tdep.c: #include "objfiles.h", "frame-unwind.h",
2152 "coff/internal.h", "coff/i386.h", "coff/pe.h" and "libcoff.h".
2153 (struct amd64_windows_frame_cache): New struct.
2154 (amd64_windows_w2gdb_regnum): New global.
2155 (pc_in_range, amd64_windows_frame_decode_epilogue)
2156 (amd64_windows_frame_decode_insns, amd64_windows_find_unwind_info)
2157 (amd64_windows_frame_cache, amd64_windows_frame_prev_register)
2158 (amd64_windows_frame_this_id): New functions.
2159 (amd64_windows_frame_unwind): New static global.
2160 (amd64_windows_skip_prologue): New function.
2161 (amd64_windows_init_abi): Call frame_unwind_prepend_unwinder
2162 with amd64_windows_frame_unwind. Call set_gdbarch_skip_prologue
2163 with amd64_windows_skip_prologue.
2164
2165 2013-08-30 Joel Brobecker <brobecker@adacore.com>
2166
2167 GDB 7.6.1 released.
2168
2169 2013-08-30 Pedro Alves <palves@redhat.com>
2170
2171 * mi/mi-main.c (mi_cmd_trace_find): Use LOC_AND_ADDRESS instead of
2172 SRC_AND_LOC.
2173
2174 2013-08-30 Pedro Alves <palves@redhat.com>
2175
2176 * thread.c (restore_selected_frame): Use SRC_AND_LOC, and change
2177 warning text.
2178
2179 2013-08-30 Pedro Alves <palves@redhat.com>
2180
2181 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
2182 Adjust arguments to print_stack_frame.
2183
2184 2013-08-30 Pedro Alves <palves@redhat.com>
2185
2186 * ada-tasks.c (task_command_1): Write SRC_AND_LOC instead '1'.
2187
2188 2013-08-30 Pedro Alves <palves@redhat.com>
2189
2190 * frame.h (show_and_print_stack_frame): Delete declaration.
2191
2192 2013-08-30 Phil Muldoon <pmuldoon@redhat.com>
2193
2194 PR python/15461
2195
2196 * python/py-arch.c (ARCHPY_REQUIRE_VALID): New macro.
2197 (archpy_name): Check for valid architecture.
2198 (archpy_disassemble): Ditto.
2199
2200 2013-08-29 Joel Brobecker <brobecker@adacore.com>
2201
2202 * rs6000-nat.c (rs6000_ptrace32): Cast "addr" to "uintptr_t"
2203 instead of "long long" in call to ptrace64.
2204
2205 2013-08-29 Andrew Burgess <aburgess@broadcom.com>
2206
2207 * mi/mi-interp.c (mi_command_loop): Change signature to match
2208 interp_command_loop_ftype.
2209 (mi1_command_loop): Remove.
2210 (mi2_command_loop): Remove.
2211 (mi3_command_loop): Remove.
2212 (mi_interpreter_resume): Remove setting of
2213 deprecated_command_loop_hook.
2214 (_initialize_mi_interp): Set mi_command_loop as the command loop
2215 callback.
2216
2217 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
2218
2219 * valops.c (do_search_struct_field): Pass v2 instead of base_type to
2220 value_type.
2221
2222 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
2223
2224 * value.c (allocate_value_contents): Make static.
2225 * value.h (allocate_value_contents): Remove prototype.
2226
2227 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
2228
2229 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use value_at_lazy instead
2230 of assembling value via allocate_value_lazy and attribute setter.
2231 * findvar.c (default_read_var_value): Use value_at_lazy instead of
2232 assembling value via allocate_value_lazy and attribute setter.
2233 * valops.c (do_search_struct_field): Use value_at_lazy instead of
2234 assembling value via allocate_value_lazy and attribute setter.
2235
2236 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
2237
2238 * value.c (value_from_contents_and_address): Replace allocate_value and
2239 memcpy with value_from_contents.
2240
2241 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
2242
2243 * python/py-framefilter.c (py_print_frame): Remove usage of
2244 PyString_AsString. Use python_string_to_host_string instead.
2245 Refactor function to work with a string as a new allocation
2246 instead of a pointer.
2247 (py_print_frame): Ditto.
2248 * python/lib/gdb/frames.py (return_list): Cain iterators together
2249 instead of adding them as a list.
2250 (_sort_list): Call return_list, and remove duplicate code.
2251 (execute_frame_filters): Convert iterator to a list with list().
2252 * python/lib/gdb/command/frame_filters.py
2253 (SetFrameFilterPriority._set_filter_priority): Convert priority
2254 attribute to an integer.
2255 * python/lib/gdb/FrameIterator.py (FrameIterator.next): Define
2256 wrapper function __next__.
2257 * python/lib/gdb/FrameDecorator.py: If basestring not defined,
2258 define as "str".
2259
2260 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
2261
2262 PR python/15752
2263 * python/py-framefilter.c (apply_frame_filter): Check
2264 gdb_python_initialized. Exit if the Python frame-filter code
2265 cannot be initialized.
2266
2267 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
2268
2269 PR cli/15842
2270 * top.c (print_gdb_version): Remove erroneous newline after help
2271 text.
2272
2273 2013-08-29 Yao Qi <yao@codesourcery.com>
2274
2275 * varobj.c (install_dynamic_child): Remove trailing space.
2276 Add one blank line after variable declaration.
2277
2278 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2279
2280 PR gdb/15415
2281 * corefile.c (get_exec_file): Use exec_filename.
2282 * defs.h (OPF_DISABLE_REALPATH): New definition. Add new comment.
2283 * exec.c (exec_close): Free EXEC_FILENAME.
2284 (exec_file_attach): New variable canonical_pathname. Use
2285 OPF_DISABLE_REALPATH. Call gdb_realpath explicitly. Set
2286 EXEC_FILENAME.
2287 * exec.h (exec_filename): New.
2288 * inferior.c (print_inferior, inferior_command): Use
2289 PSPACE_EXEC_FILENAME.
2290 * mi/mi-main.c (print_one_inferior): Likewise.
2291 * progspace.c (clone_program_space, print_program_space): Likewise.
2292 * progspace.h (struct program_space): New field pspace_exec_filename.
2293 * source.c (openp): Describe OPF_DISABLE_REALPATH. New variable
2294 realpath_fptr, initialize it from OPF_DISABLE_REALPATH, use it.
2295
2296 2013-08-28 Will Newton <will.newton@linaro.org>
2297
2298 * common/linux-ptrace.c: Include stdint.h unconditionally.
2299
2300 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2301
2302 Code cleanup.
2303 * nto-tdep.c (nto_find_and_open_solib): Use OPF_TRY_CWD_FIRST.
2304
2305 2013-08-28 Yao Qi <yao@codesourcery.com>
2306 Pedro Alves <palves@redhat.com>
2307
2308 * event-top.c (gdb_setup_readline): Call stderr_fileopen
2309 instead of stdio_fileopen.
2310 * main.c (captured_main) [__MINGW32__]: Set stderr unbuffered.
2311 .Call stderr_fileopen instead of stdio_fileopen.
2312 * ui-file.c [__MINGW32__] (stderr_file_write): New function.
2313 [__MINGW32__] (stderr_file_fputs): New function.
2314 (stderr_fileopen): New function.
2315 * ui-file.h (stderr_fileopen): Declare.
2316
2317 2013-08-27 Doug Evans <dje@google.com>
2318
2319 * dwarf2read.c (struct dwarf2_cu): Tweak comment.
2320 (struct dwarf2_per_cu_data): Ditto.
2321 (maybe_queue_comp_unit): Delete forward decl. Add comment.
2322 (process_imported_unit_die): Ditto.
2323 (follow_die_sig_1): Simplify assert.
2324
2325 2013-08-27 Pedro Alves <palves@redhat.com>
2326
2327 * windows-nat.c (windows_xfer_memory): Adjust prototype to follow
2328 xfer_partial's interface. Return TARGET_XFER_E_IO on error.
2329 (windows_xfer_partial): Defer TARGET_OBJECT_MEMORY handling to
2330 windows_xfer_memory directly.
2331 (init_windows_ops): Don't install a deprecated_xfer_memory method.
2332
2333 2013-08-27 Pedro Alves <palves@redhat.com>
2334
2335 * darwin-nat.c (darwin_xfer_memory): Delete.
2336 (_initialize_darwin_inferior): Don't install a
2337 deprecated_xfer_memory method.
2338
2339 2013-08-27 Pedro Alves <pedro@codesourcery.com>
2340 Yao Qi <yao@codesourcery.com>
2341
2342 * mi/mi-cmd-stack.c (list_args_or_locals): Adjust prototype.
2343 (parse_no_frames_option): Remove.
2344 (mi_cmd_stack_list_locals): Handle --skip-unavailable.
2345 (mi_cmd_stack_list_args): Adjust.
2346 (mi_cmd_stack_list_variables): Handle --skip-unavailable.
2347 (list_arg_or_local): Add new parameter 'skip_unavailable'. Return
2348 early if SKIP_UNAVAILABLE is true and ARG->val is unavailable.
2349 Caller update.
2350 (list_args_or_locals): New parameter 'skip_unavailable'.
2351 Handle it.
2352 * valprint.c (scalar_type_p): Rename to ...
2353 (val_print_scalar_type_p): ... this. Make extern.
2354 (val_print, value_check_printable): Adjust.
2355 * valprint.h (val_print_scalar_type_p): Declare.
2356 * value.c (value_entirely_unavailable): New function.
2357 * value.h (value_entirely_unavailable): Declare.
2358
2359 * NEWS: Mention the new option "--skip-unavailable" to MI
2360 commands '-stack-list-locals', '-stack-list-arguments' and
2361 '-stack-list-variables'.
2362
2363 2013-08-27 Yao Qi <yao@codesourcery.com>
2364
2365 * mi/mi-cmd-stack.c (parse_no_frames_option): Remove.
2366 (mi_cmd_stack_list_args): Use mi_getopt_silent to handle
2367 options.
2368 * mi/mi-getopt.c (mi_getopt): Remove.
2369 (mi_getopt_1): Renamed from mi_getopt. Add one parameter
2370 'error_on_unknown'.
2371 (mi_getopt): Call mi_getopt_1.
2372 (mi_getopt_silent): New.
2373 * mi/mi-getopt.h (mi_getopt_silent): Declare.
2374
2375 2013-08-26 Doug Evans <dje@google.com>
2376
2377 PR symtab/15885
2378 * dwarf2read.c (dw2_dump): Print some minimal information indicating
2379 .gdb_index is in use.
2380 * symfile.c (reread_symbols): Reset objfile->sf.
2381
2382 * NEWS: Document "mt print objfiles" now takes optional regexp.
2383 * symmisc.c (maintenance_print_objfiles): Argument is now an optional
2384 regexp of objfiles to print.
2385 (_initialize_symmisc): Update doc string for "mt print objfiles".
2386
2387 * dwarf2read.c (write_psymtabs_to_index): Move error checks ahead of
2388 missing debug info checks.
2389
2390 2013-08-26 Raunaq Bathija <raunaq12@in.ibm.com>
2391 Ulrich Weigand <uweigand@de.ibm.com>
2392
2393 * xcoffread.c (arrange_linetable): Add fix to correctly handle
2394 line tables generated by XLC compiled binaries.
2395
2396 2013-08-23 Doug Evans <dje@google.com>
2397
2398 * symmisc.c (dump_symtab): Delete prototype.
2399 (dump_msymbols, dump_objfile): Ditto.
2400 (maintenance_info_symtabs): Mark as dont_repeat.
2401 (_initialize_symmisc): Improve doc string for "mt info symtabs".
2402
2403 * elfread.c (elf_symfile_read): Move "Done reading minimal symbols"
2404 debugging printf to better location.
2405
2406 2013-08-23 Pedro Alves <palves@redhat.com>
2407
2408 * target.c (target_read_live_memory): Change type of 'ret' local
2409 to LONGEST.
2410
2411 2013-08-23 Pedro Alves <palves@redhat.com>
2412
2413 * remote.c (remote_write_bytes_aux, remote_write_bytes)
2414 (remote_read_bytes): Change return type to LONGEST, and adjust to
2415 return a target_xfer_error on error.
2416 (remote_xfer_memory): Delete.
2417 (remote_flash_write): Change type of 'ret' local to LONGEST.
2418 (remote_xfer_partial, remote_xfer_partial): Adjust.
2419 (init_remote_ops): Don't install a deprecated_xfer_memory hook.
2420
2421 2013-08-23 Pierre Muller <muller@sourceware.org>
2422
2423 ARI fix: Push # directives to start of line.
2424 * rs6000-nat.c (rs6000_ptrace32, rs6000_ptrace64): Rule applied.
2425
2426 2013-08-12 Muhammad Waqas <mwaqas@codesourcery.com>
2427
2428 PR gdb/15501
2429 * breakpoint.c (enable_command, disable_command): Iterate over
2430 all specified breakpoint locations.
2431
2432 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
2433
2434 * common/linux-ptrace.c (linux_fork_to_function): Push #
2435 directives to the start of the line.
2436 (linux_check_ptrace_features): Fix warning message to use
2437 the "_" markup.
2438
2439 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
2440
2441 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-nat.h and
2442 nat/linux-waitpid.h.
2443 (linux-waitpid.o): New object file rule.
2444 * common/linux-ptrace.c: Include nat/linux-waitpid.h.
2445 (current_ptrace_options): Moved from linux-nat.c.
2446 (linux_ptrace_test_ret_to_nx): Use type casts for ptrace
2447 parameters.
2448 (linux_fork_to_function): New function.
2449 (linux_grandchild_function): Likewise.
2450 (linux_child_function): Likewise.
2451 (linux_check_ptrace_features): New function, heavily
2452 based on linux-nat.c:linux_test_for_tracefork.
2453 (linux_enable_event_reporting): New function.
2454 (ptrace_supports_feature): Likewise.
2455 (linux_supports_tracefork): Likewise.
2456 (linux_supports_traceclone): Likewise.
2457 (linux_supports_tracevforkdone): Likewise.
2458 (linux_supports_tracesysgood): Likewise.
2459 * common/linux-ptrace.h (HAS_NOMMU): Moved from
2460 gdbserver/linux-low.c.
2461 (linux_enable_event_reporting): New declaration.
2462 (linux_supports_tracefork): Likewise.
2463 (linux_supports_traceclone): Likewise.
2464 (linux_supports_tracevforkdone): Likewise.
2465 (linux_supports_tracesysgood): Likewise.
2466 * config.in (PTRACE_TYPE_ARG4): Regenerate.
2467 * config/aarch64/linux.mh (NATDEPFILES): Add linux-waitpid.o.
2468 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
2469 * config/arm/linux.mh (NATDEPFILES): Likewise.
2470 * config/i386/linux.mh (NATDEPFILES): Likewise.
2471 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2472 * config/ia64/linux.mh (NATDEPFILES): Likewise.
2473 * config/m32r/linux.mh (NATDEPFILES): Likewise.
2474 * config/m68k/linux.mh (NATDEPFILES): Likewise.
2475 * config/mips/linux.mh (NATDEPFILES): Likewise.
2476 * config/pa/linux.mh (NATDEPFILES): Likewise..
2477 * config/powerpc/linux.mh (NATDEPFILES): Likewise..
2478 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
2479 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
2480 * config/sparc/linux.mh (NATDEPFILES): Likewise.
2481 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
2482 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
2483 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
2484 * configure.ac (AC_CACHE_CHECK): Add void * to the list of
2485 ptrace's 4th argument's types.
2486 Check the type of PTRACE_TYPE_ARG4.
2487 * configure: Regenerate.
2488 * linux-nat.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
2489 (SYSCALL_SIGTRAP): Moved to nat/linux-nat.h.
2490 (linux_supports_tracefork_flag): Remove.
2491 (linux_supports_tracesysgood_flag): Likewise.
2492 (linux_supports_tracevforkdone_flag): Likewise.
2493 (current_ptrace_options): Moved to
2494 common/linux-ptrace.c.
2495 (linux_tracefork_child): Remove.
2496 (my_waitpid): Remove.
2497 (linux_test_for_tracefork): Renamed to
2498 linux_check_ptrace_features and moved to common/linux-ptrace.c.
2499 (linux_test_for_tracesysgood): Remove.
2500 (linux_supports_tracesysgood): Remove.
2501 (linux_supports_tracefork): Remove.
2502 (linux_supports_tracevforkdone): Remove.
2503 (linux_enable_tracesysgood): Remove.
2504 (linux_enable_event_reporting): Remove.
2505 (linux_init_ptrace): New function.
2506 (linux_child_post_attach): Call linux_init_ptrace.
2507 (linux_child_post_startup_inferior): Call linux_init_ptrace.
2508 (linux_child_follow_fork): Call linux_supports_tracefork
2509 and linux_supports_tracevforkdone.
2510 (linux_child_insert_fork_catchpoint): Call
2511 linux_supports_tracefork.
2512 (linux_child_insert_vfork_catchpoint): Likewise.
2513 (linux_child_set_syscall_catchpoint): Call
2514 linux_supports_tracesysgood.
2515 (lin_lwp_attach_lwp): Call linux_supports_tracefork.
2516 * nat/linux-nat.h: New file.
2517 * nat/linux-waitpid.c: New file.
2518 * nat/linux-waitpid.h: New file.
2519
2520 2013-08-22 Samuel Bronson <naesten@gmail.com>
2521
2522 ARM Linux support for `catch syscall'.
2523 * syscalls/arm-linux.py: New file.
2524 * syscalls/arm-linux.xml: Likewise.
2525 * arm-linux-tdep.c (arm_linux_get_syscall_number): New function.
2526 (arm_linux_init_abi): Register the new function and syscall xml file.
2527 * data-directory/Makefile.in: Install the new syscall xml file.
2528 * NEWS: Brag about this.
2529
2530 2013-08-22 Pedro Alves <palves@redhat.com>
2531
2532 PR gdb/15871
2533 * corefile.c (target_xfer_memory_error): New function.
2534 (memory_error): Defer EIO to target_memory_error.
2535 (read_memory): Use target_xfer_partial, and handle finer-grained
2536 target xfer errors.
2537 * target.c (target_xfer_error_to_string): New function.
2538 (memory_xfer_partial_1): If memory is known to be
2539 unavailable, return TARGET_XFER_E_UNAVAILABLE instead of -1.
2540 (target_xfer_partial): Make extern.
2541 * target.h (enum target_xfer_error): New enum.
2542 (target_xfer_error_to_string): Declare function.
2543 (target_xfer_partial): Declare function.
2544 (struct target_ops) <xfer_partial>: Adjust describing comment.
2545
2546 2013-08-22 Alan Modra <amodra@gmail.com>
2547
2548 * configure.host: Support powerpc64le-linux and powerpcle-linux hosts.
2549 * configure.tgt: Likewise as targets.
2550
2551 2013-08-20 Doug Evans <dje@google.com>
2552
2553 * buildsym.c (subfile_stack): Move here from buildsym.h.
2554 (pending_macros): Ditto.
2555 (get_macro_table): New function.
2556 (buildsym_init): Initialize subfile_stack.
2557 * coffread.c (type_vector,type_vector_length): Moved here from
2558 buildsym.h.
2559 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
2560 (coff_symtab_read): Use it.
2561 * dbxread.c (read_ofile_symtab): Delete init of subfile_stack.
2562 * dwarf2read.c (macro_start_file): Replace uses of pending_macros
2563 with call to get_macro_table.
2564 * stabsread.c (type_vector,type_vector_length): Moved here from
2565 buildsym.h.
2566 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
2567 * buildsym.h (get_macro_table): Declare.
2568
2569 2013-08-20 Tom Tromey <tromey@redhat.com>
2570
2571 * dbxread.c (record_minimal_symbol): Make 'name' argument const.
2572 Update.
2573 (read_dbx_dynamic_symtab): Make 'name' const. Remove casts.
2574
2575 2013-08-20 Doug Evans <dje@google.com>
2576
2577 * blockframe.c: Remove #include "psymtab.h".
2578 * cp-support.c: Ditto.
2579 * source.c: Ditto.
2580 * stack.c: Ditto.
2581
2582 2013-08-20 Tom Tromey <tromey@redhat.com>
2583
2584 PR python/15816:
2585 * exceptions.h (return_mask): Now an enum.
2586 (RETURN_MASK_QUIT, RETURN_MASK_ERROR, RETURN_MASK_ALL): Now
2587 enum constants.
2588
2589 2013-08-20 Tom Tromey <tromey@redhat.com>
2590
2591 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
2592 get_objfile_arch.
2593 * elfread.c (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
2594 (elf_gnu_ifunc_resolve_by_got): Use get_objfile_arch.
2595 * jit.c (jit_object_close_impl): Update.
2596 * jv-lang.c (get_dynamics_objfile): Update.
2597 * linespec.c (add_minsym): Use get_dynamics_objfile.
2598 * objfiles.c (get_objfile_bfd_data): Initialize 'gdbarch' field.
2599 (allocate_objfile): Don't initialize 'gdbarch' field.
2600 (get_objfile_arch): Update.
2601 * objfiles.h (struct objfile_per_bfd_storage) <gdbarch>: New field,
2602 moved from...
2603 (struct objfile) <gdbarch>: ... here. Remove.
2604 * stap-probe.c (stap_can_evaluate_probe_arguments): Use
2605 get_objfile_arch.
2606 * symfile.c (init_entry_point_info): Use get_objfile_arch.
2607
2608 2013-08-20 Alan Modra <amodra@gmail.com>
2609
2610 * doublest.c (convert_floatformat_to_doublest): Use fmt->split_half
2611 for IBM long double nan and inf.
2612 (floatformat_is_negative, floatformat_classify,
2613 floatformat_mantissa): Similarly.
2614 (floatformat_ieee_single, floatformat_ieee_double,
2615 floatformat_ieee_quad, floatformat_arm_ext,
2616 floatformat_ia64_spill): Delete unused vars.
2617 (_initialize_doublest): Delete unused function.
2618 * gdbtypes.c (floatformats_ibm_long_double): Use new big- and
2619 little-endian variants of floatformat_ibm_long_double.
2620
2621 2013-08-19 Luis Machado <lgustavo@codesourcery.com>
2622
2623 * Makefile.in (SFILES): Remove common/target-common.c and
2624 add target/waitstatus.c.
2625 (HFILES_NO_SRCDIR): Remove common/target-common.h and add
2626 target/resume.h, target/wait.h and target/waitstatus.h.
2627 (COMMON_OBS): Remove target-common.o and add
2628 waitstatus.o.
2629 (target-common.o): Remove.
2630 (waitstatus.o): New target object file.
2631 * common/target-common.c: Move contents to
2632 target/waitstatus.c and remove.
2633 * common/target-common.h: Move contents to other files and
2634 remove.
2635 (enum resume_kind: Move to target/resume.h.
2636 (TARGET_WNOHANG): Move to target/wait.h.
2637 (enum target_waitkind): Move to target/waitstatus.h.
2638 (struct target_waitstatus): Likewise.
2639 * target.h: Do not include target-common.h and
2640 include target/resume.h, target/wait.h and
2641 target/waitstatus.h.
2642 * target/resume.h: New file.
2643 * target/wait.h: New file.
2644 * target/waitstatus.h: New file.
2645 * target/waitstatus.c: New file.
2646
2647 2013-08-19 Pedro Alves <palves@redhat.com>
2648
2649 * linux-nat.c (linux_test_for_tracefork)
2650 (linux_test_for_tracesysgood, linux_child_follow_fork)
2651 (lin_lwp_attach_lwp, linux_nat_resume): Don't block child signals.
2652 (linux_nat_wait_1): Extend comment.
2653 (linux_async_pipe): Add comment.
2654
2655 2013-08-15 Kevin Buettner <kevinb@redhat.com>
2656
2657 * rl78-tdep.c (RL78_RAW_PC_REGNUM): New enum.
2658 (RL78_PC_REGNUM): Move to list of pseudo-register enums.
2659 (rl78_register_type, rl78_register_name, rl78_register_reggroup_p):
2660 Update to account for fact that PC is now a pseudo-register.
2661 (rl78_pseudo_register_write, rl78_pseudo_register_read): Add
2662 cases for RL78_PC_REGNUM.
2663
2664 2013-08-15 Muhammad Bilal <mbilal@codesourcery.com>
2665
2666 PR cli/15841
2667 * top.c (quit_force): Skip writing history file
2668 if input is not from terminal.
2669
2670 2013-08-14 Tom Tromey <tromey@redhat.com>
2671
2672 * remote.c (struct remote_state) <echo_nextthread, nextthread,
2673 resultthreadlist>: New fields.
2674 (OPAQUETHREADBYTES, threadref, MAXTHREADLISTRESULTS): Move earlier.
2675 (remote_get_threadlist, remote_threadlist_iterator): Use
2676 new fields. Remove static variables.
2677
2678 2013-08-14 Tom Tromey <tromey@redhat.com>
2679
2680 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p,
2681 remote_watch_data_address>: New fields.
2682 (remote_stopped_by_watchpoint_p, remote_watch_data_address): Remove.
2683 (process_stop_reply, remote_wait_as)
2684 (remote_check_watch_resources, remote_stopped_data_address): Update.
2685
2686 2013-08-14 Tom Tromey <tromey@redhat.com>
2687
2688 * remote.c (struct remote_state) <async_client_callback,
2689 async_client_context>: New fields.
2690 (async_client_callback, async_client_context): Remove.
2691 (remote_async_serial_handler, remote_async): Update.
2692
2693 2013-08-14 Tom Tromey <tromey@redhat.com>
2694
2695 * remote.c (sizeof_pkt): Remove.
2696 (remote_trace_find): Use rs->buf_size, not sizeof_pkt.
2697
2698 2013-08-14 Tom Tromey <tromey@redhat.com>
2699
2700 * remote.c (struct remote_state) <use_threadinfo_query,
2701 use_threadextra_query>: New fields.
2702 (remote_threads_info, remote_threads_extra_info)
2703 (remote_open_1): Update.
2704
2705 2013-08-14 Tom Tromey <tromey@redhat.com>
2706
2707 * remote.c (struct remote_state) <finished_object,
2708 finished_annex, finished_offset>: New fields.
2709 (remote_read_qxfer): Use remote_state fields; remove static
2710 variables.
2711
2712 2013-08-14 Tom Tromey <tromey@redhat.com>
2713
2714 * remote.c (struct remote_state) <last_sent_step>:
2715 New field.
2716 (last_sent_step): Remove.
2717 (remote_resume, remote_wait_as): Update.
2718
2719 2013-08-14 Tom Tromey <tromey@redhat.com>
2720
2721 * remote.c (struct remote_state) <last_sent_signal>:
2722 New field.
2723 (last_sent_signal): Remove.
2724 (new_remote_state, remote_resume, remote_wait_as): Update.
2725
2726 2013-08-14 Tom Tromey <tromey@redhat.com>
2727
2728 * remote.c (struct remote_state) <last_program_signals_packet>:
2729 New field.
2730 (last_program_signals_packet): Remove.
2731 (remote_program_signals, remote_open_1): Update.
2732
2733 2013-08-14 Tom Tromey <tromey@redhat.com>
2734
2735 * remote.c (struct remote_state) <last_pass_packet>:
2736 New field.
2737 (last_pass_packet): Remove.
2738 (remote_pass_signals, remote_open_1): Update.
2739
2740 2013-08-14 Tom Tromey <tromey@redhat.com>
2741
2742 * remote.c (struct remote_state) <remote_traceframe_number>:
2743 New field.
2744 (remote_traceframe_number): Remove.
2745 (new_remote_state, remote_open_1, set_remote_traceframe)
2746 (remote_trace_find): Update.
2747
2748 2013-08-14 Tom Tromey <tromey@redhat.com>
2749
2750 * remote.c (struct remote_state) <general_thread, continue_thread>:
2751 New fields.
2752 (general_thread, continue_thread): Remove.
2753 (record_currthread, set_thread, set_general_process)
2754 (remote_open_1, extended_remote_attach_1, remote_wait_as)
2755 (extended_remote_mourn_1): Update.
2756
2757 2013-08-14 Tom Tromey <tromey@redhat.com>
2758
2759 * remote.c (struct remote_state) <remote_desc>: New field.
2760 (remote_desc): Remove.
2761 (remote_threads_info, remote_threads_extra_info, remote_close)
2762 (send_interrupt_sequence, remote_start_remote, remote_open_1)
2763 (readchar, remote_xfer_partial, remote_rcmd, packet_command)
2764 (remote_hostio_send_command, remote_file_put, remote_file_get)
2765 (remote_file_delete, remote_can_async_p, remote_is_async_p)
2766 (remote_async, remote_new_objfile, set_range_stepping): Update.
2767
2768 2013-08-14 Tom Tromey <tromey@redhat.com>
2769
2770 * remote.c (remote_state): Now a pointer.
2771 (get_remote_state_raw): Update.
2772 (new_remote_state): New function.
2773 (_initialize_remote): Use new_remote_state.
2774
2775 2013-08-14 Tom Tromey <tromey@redhat.com>
2776
2777 * remote.c (remote_protocol_features): Now const.
2778
2779 2013-08-14 Tom Tromey <tromey@redhat.com>
2780
2781 * remote.c (crc32_table, crc32): Remove.
2782 (remote_verify_memory): Use xcrc32.
2783
2784 2013-08-13 Sergio Durigan Junior <sergiodj@redhat.com>
2785
2786 * value.h (create_internalvar_type_lazy): Adjust prototype
2787 declaration.
2788
2789 2013-08-13 Andrew Burgess <aburgess@broadcom.com>
2790
2791 * common/format.c (parse_format_string): Don't allow '#' flag for
2792 pointer arguments in format string.
2793
2794 2013-08-13 Pierre Muller <muller@sourceware.org>
2795
2796 * utils.c (init_page_info): Only call tgetnum function
2797 if rl_get_screen_size did not return useful values.
2798
2799 2013-08-12 Ali Anwar <ali_anwar@codesourcery.com>
2800
2801 PR breakpoints/15117
2802 * linespec.c (linespec_parse_basic): Check for convenience
2803 variable or history value while parsing.
2804
2805 2013-08-12 Sergio Durigan Junior <sergiodj@redhat.com>
2806
2807 Revert implementation of gdbarch_gdb_signal_{to,from}_target for
2808 AVR.
2809 * avr-tdep.c: Remove include of "linux-tdep.h". Remove enum with
2810 different signals between the generic Linux kernel implementation
2811 and AVR's.
2812 (avr_linux_gdb_signal_from_target): Delete.
2813 (avr_linux_gdb_signal_to_target): Delete.
2814 (avr_gdbarch_init): Don't set gdbarch_gdb_signal_{to,from}_target.
2815
2816 2013-08-09 Doug Evans <dje@google.com>
2817
2818 * dwarf2read.c (create_addrmap_from_index): Ignore bad address table
2819 entries.
2820
2821 2013-08-09 Sergio Durigan Junior <sergiodj@redhat.com>
2822
2823 * linux-tdep.c: Define enum with generic signal numbers.
2824 (linux_gdb_signal_from_target): New function.
2825 (linux_gdb_signal_to_target): Likewise.
2826 (linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
2827 methods to the functions above.
2828 * linux-tdep.h (linux_gdb_signal_from_target): New prototype.
2829 (linux_gdb_signal_to_target): Likewise.
2830 * alpha-linux-tdep.c: Define new enum with signals different
2831 from generic Linux kernel.
2832 (alpha_linux_gdb_signal_from_target): New function.
2833 (alpha_linux_gdb_signal_to_target): Likewise.
2834 (alpha_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
2835 with the functions mentioned above.
2836 * avr-tdep.c: Define enum with differences between Linux kernel
2837 and AVR signals.
2838 (avr_linux_gdb_signal_from_target): New function.
2839 (avr_linux_gdb_signal_to_target): Likewise.
2840 (avr_gdbarch_init): Set gdbarch_gdb_signal_{to,from}_target to
2841 the functions mentioned above.
2842 * sparc-linux-tdep.c: Define enum with differences between SPARC
2843 and generic Linux kernel signal numbers.
2844 (sparc32_linux_gdb_signal_from_target): New function.
2845 (sparc32_linux_gdb_signal_to_target): Likewise.
2846 (sparc32_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
2847 to the functions defined above.
2848 * xtensa-linux-tdep.c: Define enum with differences between
2849 Xtensa and Linux kernel generic signals.
2850 (xtensa_linux_gdb_signal_from_target): New function.
2851 (xtensa_linux_gdb_signal_to_target): Likewise.
2852 (xtensa_linux_init_abi): Set gdbarch_gdb_signal_to_target
2853 to the functions defined above.
2854 * mips-linux-tdep.c: Define enum with differences between
2855 signals in MIPS and Linux kernel generic ones.
2856 (mips_gdb_signal_to_target): New function.
2857 (mips_gdb_signal_from_target): Redefine to use new enum, handle
2858 only different signals from the Linux kernel generic.
2859 (mips_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
2860 the functions defined above.
2861 * mips-linux-tdep.h (enum mips_signals): Remove.
2862
2863 2013-08-09 Pedro Alves <palves@redhat.com>
2864
2865 * avr-tdep.c (XMALLOC): Delete macro.
2866 * cli/cli-dump.c (XMALLOC): Delete macro.
2867
2868 2013-08-09 Pedro Alves <palves@redhat.com>
2869
2870 * cli/cli-dump.c: Don't include cli/cli-dump.h.
2871 (scan_expression_with_cleanup, scan_filename_with_cleanup)
2872 (fopen_with_cleanup, add_dump_command): Make static.
2873 * cli/cli-dump.h: Delete file.
2874 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to
2875 cli/cli-dump.h.
2876
2877 2013-08-09 Pedro Alves <palves@redhat.com>
2878
2879 * tracepoint.c (tfile_start): Show tilde-expanded filename in
2880 error message.
2881
2882 2013-08-09 Pedro Alves <palves@redhat.com>
2883
2884 * breakpoint.c (save_breakpoints): Show tilde-expanded filename in
2885 error message.
2886
2887 2013-08-09 Pedro Alves <palves@redhat.com>
2888
2889 * gcore.c (create_gcore_bfd): Don't use tilde_expand here.
2890 (gcore_command): Use tilde_expand here, and when showing the
2891 filename to the user, show the expanded version.
2892
2893 2013-08-09 Yao Qi <yao@codesourcery.com>
2894
2895 * stack.c (read_frame_arg): Set 'entryval_error' to NULL if
2896 'entryval' is set.
2897
2898 2013-08-08 Azat Khuzhin <a3at.mail@gmail.com> (tiny change)
2899
2900 * gcore.c (create_gcore_bfd): Use tilde_expand.
2901
2902 2013-08-08 Yao Qi <yao@codesourcery.com>
2903
2904 * frame.h (read_frame_local): Declare.
2905 * mi/mi-cmd-stack.c (list_args_or_locals): Call
2906 read_frame_local.
2907 * stack.c (read_frame_local): New.
2908
2909 2013-08-08 Yao Qi <yao@codesourcery.com>
2910
2911 * mi/mi-cmd-stack.c: Update comments to function
2912 list_args_or_locals.
2913
2914 2013-08-07 Tom Tromey <tromey@redhat.com>
2915
2916 PR symtab/15028:
2917 * dwarf2read.c (struct process_psymtab_comp_unit_data): New.
2918 (process_psymtab_comp_unit_reader): Use it.
2919 (process_psymtab_comp_unit): Update. Add "pretend_language"
2920 argument.
2921 (dwarf2_build_psymtabs_hard): Update.
2922 (scan_partial_symbols): Pass CU's language to
2923 process_psymtab_comp_unit.
2924
2925 2013-08-07 Tom Tromey <tromey@redhat.com>
2926
2927 * dwarf2read.c (dw2_get_primary_filename_reader): Remove.
2928 (dwarf2_gdb_index_functions): Update.
2929 * psymtab.c (find_symbol_file_from_partial): Remove.
2930 (psym_functions): Update.
2931 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
2932 Remove.
2933
2934 2013-08-07 Tom Tromey <tromey@redhat.com>
2935
2936 * symfile.c (set_initial_language): Look up "main" symbol
2937 and use its language.
2938 * symtab.c (find_main_filename): Remove.
2939 * symtab.h (find_main_filename): Remove.
2940
2941 2013-08-07 Tom Tromey <tromey@redhat.com>
2942
2943 * dwarf2read.c (recursively_compute_inclusions): Add
2944 "immediate_parent" argument. Set symtab's "user" field
2945 if not set.
2946 (compute_symtab_includes): Update.
2947
2948 2013-08-07 Tom Tromey <tromey@redhat.com>
2949
2950 * linespec.c (convert_linespec_to_sals): Use maybe_add_address
2951 when adding label symbols.
2952
2953 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
2954 Ulrich Weigand <uweigand@de.ibm.com>
2955
2956 * configure.tgt (powerpc64-*-aix*): Match powerpc64 running aix.
2957 * configure.host (powerpc64-*-aix*): Likewise.
2958
2959 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
2960 Ulrich Weigand <uweigand@de.ibm.com>
2961
2962 * gdb_ptrace.h: Use ptrace64 instead of ptrace if HAVE_PTRACE64
2963 is defined.
2964 * rs6000-nat.c: Check for __ld_info64_ if compiling 64 BIT gdb.
2965 (rs6000_ptrace32): Call ptrace64 instead of ptrace if present.
2966 (rs6000_ptrace64): Call ptace64 instead of ptracex if present.
2967 * configure.ac: Check for ptrace64.
2968 * configure, config.in: Regenerate.
2969
2970 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
2971 Ulrich Weigand <uweigand@de.ibm.com>
2972
2973 * aixthread.c: Call ptrace64 instead of ptracex if defined.
2974 Call ptrace64 instead of ptrace if defined.
2975 Add macro addr_ptr to take care of ptrace address argument.
2976 (pdc_read_regs): Likewise.
2977 (pdc_write_regs): Likewise.
2978 (aix_thread_resume): Likewise.
2979 (fetch_regs_kernel_thread): Likewise.
2980 (store_regs_kernel_thread): Likewise.
2981
2982 2013-08-07 Anton Blanchard <anton@samba.org>
2983
2984 * MAINTAINERS: Add myself to Write After Approval.
2985
2986 2013-08-05 Tom Tromey <tromey@redhat.com>
2987
2988 * aix-thread.c (_initialize_aix_thread): Use
2989 complete_target_initialization.
2990 * bsd-uthread.c (_initialize_bsd_uthread): Use
2991 complete_target_initialization.
2992 * dec-thread.c (_initialize_dec_thread): Use
2993 complete_target_initialization.
2994 * ravenscar-thread.c (_initialize_ravenscar): Use
2995 complete_target_initialization.
2996 * sol-thread.c (_initialize_sol_thread): Use
2997 complete_target_initialization.
2998 * spu-multiarch.c (_initialize_spu_multiarch): Use
2999 complete_target_initialization.
3000
3001 2013-08-05 Tom Tromey <tromey@redhat.com>
3002
3003 * ada-exp.y (write_var_or_type): Use bound_minimal_symbol.
3004 * ada-lang.c (ada_lookup_simple_minsym): Return
3005 bound_minimal_symbol.
3006 * ada-lang.h (ada_lookup_simple_minsym): Update.
3007 * c-exp.y (variable): Use lookup_bound_minimal_symbol.
3008 * f-exp.y (variable): Use lookup_bound_minimal_symbol.
3009 * go-exp.y (variable): Use lookup_bound_minimal_symbol.
3010 * jv-exp.y (push_expression_name): Use lookup_bound_minimal_symbol.
3011 * m2-exp.y (variable): Use lookup_bound_minimal_symbol.
3012 * minsyms.c (msymbol_objfile): Remove.
3013 (lookup_minimal_symbol_internal): New function, from
3014 lookup_minimal_symbol.
3015 (lookup_minimal_symbol): Rewrite using
3016 lookup_minimal_symbol_internal.
3017 (lookup_bound_minimal_symbol): New function.
3018 * minsyms.h (msymbol_objfile): Remove.
3019 (lookup_bound_minimal_symbol): Declare.
3020 * p-exp.y (variable): Use lookup_bound_minimal_symbol.
3021 * parse.c (write_exp_msymbol): Change parameter to a
3022 bound_minimal_symbol.
3023 (write_dollar_variable): Use lookup_bound_minimal_symbol.
3024 * parser-defs.h (write_exp_msymbol): Update.
3025 * printcmd.c (address_info): Use lookup_bound_minimal_symbol.
3026 * symfile.c (simple_read_overlay_table): Use
3027 lookup_bound_minimal_symbol.
3028 * symtab.c (skip_prologue_sal): Don't use msymbol_objfile.
3029 (search_symbols): Likewise.
3030 (print_msymbol_info): Take a bound_minimal_symbol argument.
3031 (symtab_symbol_info, rbreak_command): Update.
3032 * symtab.h (struct symbol_search) <msymbol>: Change type
3033 to bound_minimal_symbol.
3034 * valops.c (find_function_in_inferior): Use
3035 lookup_bound_minimal_symbol.
3036 * value.c (value_fn_field): Use lookup_bound_minimal_symbol.
3037
3038 2013-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3039
3040 Code cleanup.
3041 * remote.c (cleanup_sigint_signal_handler): Rename the declaration
3042 to ...
3043 (async_cleanup_sigint_signal_handler): ... this.
3044 (initialize_sigint_signal_handler): Remove declaration.
3045 (handle_remote_sigint): Rename the declaration to ...
3046 (async_handle_remote_sigint): ... this.
3047 (handle_remote_sigint_twice): Rename the declaration to ...
3048 (async_handle_remote_sigint_twice): ... this.
3049 (async_remote_interrupt, async_remote_interrupt_twice)
3050 (remote_interrupt): Remove the declarations.
3051 (remote_interrupt_twice): Rename the declaration ...
3052 (sync_remote_interrupt_twice): ... this.
3053 (sigint_remote_twice_token): Rename the variable to ...
3054 (async_sigint_remote_twice_token): ... this.
3055 (sigint_remote_token): Rename the variable to ...
3056 (async_sigint_remote_token): ... this.
3057 (initialize_sigint_signal_handler): Rename the function to ...
3058 (async_initialize_sigint_signal_handler): ... this. Update the name
3059 inside.
3060 (handle_remote_sigint): Rename the function to ...
3061 (async_handle_remote_sigint): ... this. Update the names inside.
3062 (handle_remote_sigint_twice): Rename the function to ...
3063 (async_handle_remote_sigint_twice): ... this. Update the names inside.
3064 (cleanup_sigint_signal_handler): Rename the function to ...
3065 (async_cleanup_sigint_signal_handler): ... this.
3066 (remote_interrupt): Rename the function to ...
3067 (sync_remote_interrupt): this. Update the names inside.
3068 (remote_interrupt_twice): Rename the function to ...
3069 (sync_remote_interrupt_twice): this. Update the names inside.
3070 (remote_terminal_inferior, remote_terminal_ours, remote_wait_as)
3071 (_initialize_remote): Update the names inside.
3072
3073 2013-08-02 Tom Tromey <tromey@redhat.com>
3074
3075 PR symtab/15719:
3076 * breakpoint.c (update_watchpoint, watchpoint_check)
3077 (watch_command_1): Update.
3078 * eval.c (fetch_subexp_value): Add "preserve_errors"
3079 parameter.
3080 * ppc-linux-nat.c (check_condition): Update.
3081 * value.h (fetch_subexp_value): Update.
3082
3083 2013-08-02 Andrew Burgess <aburgess@broadcom.com>
3084
3085 * mi/mi-interp.c (mi_interpreter_resume): Remove call to
3086 add_file_handler.
3087
3088 2013-08-01 Doug Evans <dje@google.com>
3089
3090 PR symtab/15691
3091 * dwarf2read.c (struct dwarf2_per_cu_data): New member tu_read.
3092 (fill_in_sig_entry_from_dwo_entry): Reorganize asserts.
3093 Add assert of sig_entry->dwo_unit == NULL.
3094 (lookup_dwo_signatured_type): Don't assign TU to a DWO if the TU
3095 had already been read.
3096 (read_signatured_type): Set per_cu.tu_read.
3097
3098 PR symtab/15695
3099 * valops.c (value_struct_elt): Add missing call to check_typedef.
3100 (value_find_oload_method_list): Ditto.
3101
3102 * symtab.c (do_free_search_symbols_cleanup): Change arg to,
3103 effectively, struct symbol_search **.
3104 (make_cleanup_free_search_symbols): Change arg to struct
3105 symbol_search **. All callers updated.
3106 (compare_search_syms): Compare symtab file name and block as well.
3107 (search_symbols_equal): New function.
3108 (sort_search_symbols_remove_dups): Renamed from sort_search_symbols.
3109 New args new_head, new_tail. Result is now void. Remove dups after
3110 sorting the symbols.
3111 (search_symbols): Sort all found symbols once, after all have been
3112 found, and remove duplicates. Simplify cleanup tracking of result.
3113 * symtab.h (make_cleanup_free_search_symbols): Update prototype.
3114
3115 Further workarounds for binutils/15021.
3116 * dwarf2read.c (recursively_compute_inclusions): Change type of result
3117 parameter to VEC (symtab_ptr) **. New parameter all_type_symtabs.
3118 Watch for duplicate symtabs coming from type units.
3119 (compute_symtab_includes): Update call to
3120 recursively_compute_inclusions. Build vector of included symtabs
3121 instead of per_cus.
3122 * symtab.h (symtab_ptr): New typedef.
3123 (DEF_VEC_P (symtab_ptr)): New VEC type.
3124 * linespec.c (symtab_p): Delete. All uses updated to use symtab_ptr
3125 instead.
3126
3127 2013-08-01 Andrew Burgess <aburgess@broadcom.com>
3128
3129 * cli/cli-script.c (script_from_file): Remove use of
3130 error_pre_print.
3131 * main.c (captured_main): Remove use of error_pre_print and
3132 quit_pre_print.
3133 * utils.c (error_pre_print, quit_pre_print): Remove.
3134 * utils.h (error_pre_print, quit_pre_print): Likewise.
3135
3136 2013-08-01 Yao Qi <yao@codesourcery.com>
3137
3138 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Parse argv
3139 with mi_getopt.
3140 (mi_cmd_stack_list_variables): Likewise.
3141
3142 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
3143
3144 * exceptions.c (deprecated_throw_reason): Remove.
3145 * exceptions.h (deprecated_throw_reason): Remove.
3146
3147 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
3148
3149 * remote-mips.c (mips_error): Replace use of
3150 deprecated_throw_reason with throw_verror. Use the error message
3151 passed to mips_error as the error message for throw_verror.
3152
3153 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
3154
3155 * monitor.c (monitor_interrupt_query): Replace use of
3156 deprecated_throw_reason with quit.
3157 * nto-procfs.c (interrupt_query): Likewise.
3158 * remote-fileio.c (remote_fileio_sig_exit): Likewise.
3159 * remote-mips.c (mips_kill): Likewise.
3160 * remote.c (interrupt_query): Likewise.
3161
3162 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
3163
3164 * utils.c (internal_verror): Replace use of deprecated_throw_reason
3165 with call to fatal.
3166
3167 2013-07-31 Pedro Alves <pedro@codesourcery.com>
3168 Yao Qi <yao@codesourcery.com>
3169
3170 * tracepoint.c (trace_dump_command): Select the current frame.
3171
3172 2013-07-30 Doug Evans <dje@google.com>
3173
3174 * dwarf2read.c (process_queue): Add type signature to debug output.
3175
3176 2013-07-30 Andrew Burgess <aburgess@broadcom.com>
3177
3178 * value.c (value_fetch_lazy): Mark optimized out values as such
3179 rather than raising an error.
3180
3181 2013-07-30 Andrew Burgess <aburgess@broadcom.com>
3182
3183 * value.c (value_fetch_lazy): Ensure parent value is not lazy
3184 before checking which bits of the parent, not the child, value are
3185 valid.
3186
3187 2013-07-30 Muhammad Bilal <mbilal@codesorcery.com>
3188
3189 PR gdb/15715
3190 * top.c: Include "filenames.h".
3191 (set_history_filename): New function.
3192 (init_main): Install it as set hook of the "set history filename"
3193 command.
3194
3195 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
3196
3197 * dwarf2read.c (dwarf2_get_ref_die_offset): Constify struct
3198 attribute parameter.
3199 (dwarf2_const_value_data): Constify struct attribute parameter.
3200 (dwarf2_const_value): Constify struct attribute parameter.
3201 (dwarf2_const_value_attr): Constify struct attribute parameter.
3202 (lookup_die_type): Constify struct attribute parameter.
3203 (dwarf2_get_attr_constant_value): Constify struct attribute parameter.
3204 (follow_die_ref_or_sig): Constify struct attribute parameter.
3205 (follow_die_ref): Constify struct attribute parameter.
3206 (follow_die_sig): Constify struct attribute parameter.
3207 (get_DW_AT_signature_type): Constify struct attribute parameter.
3208 (get_type_unit_group): Constify struct attribute parameter.
3209 (fill_in_loclist_baton): Constify struct attribute parameter.
3210 (dwarf2_symbol_mark_computed): Constify struct attribute parameter.
3211 (type_unit_group): Constify struct attribute parameter.
3212
3213 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
3214
3215 * dwarf2read.c (attr_form_is_block): Make argument const.
3216 (attr_form_is_section_offset): Make argument const.
3217 (attr_form_is_constant): Make argument const.
3218 (attr_form_is_ref): Make argument const.
3219
3220 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
3221
3222 * dwarf2read.c (attr_is_ref): Rename to attr_form_is_ref.
3223 All uses updated.
3224 (attr_form_is_ref): Moved below attr_form_is_constant.
3225
3226 2013-07-29 Doug Evans <dje@google.com>
3227
3228 * main.c (captured_command_loop): Tweak comment.
3229
3230 * target.c (target_async_permitted_1): Fix comment.
3231
3232 * symtab.c (iterate_over_some_symtabs): Add comment.
3233
3234 * symtab.c (iterate_over_some_symtabs): Fix indentation.
3235
3236 2013-07-27 Yao Qi <yao@codesourcery.com>
3237
3238 * NEWS: Mention that GDBserver now supports hardware
3239 watchpoints on the MIPS GNU/Linux target.
3240
3241 2013-07-27 Yao Qi <yao@codesourcery.com>
3242
3243 * Makefile.in (HFILES_NO_SRCDIR): Add
3244 common/mips-linux-watch.h.
3245 (mips-linux-watch.o): New rule.
3246 * common/mips-linux-watch.c: New.
3247 * common/mips-linux-watch.h: New.
3248 * config/mips/linux.mh (NATDEPFILES): Add mips-linux-watch.o
3249 * mips-linux-nat.c: Include mips-linux-watch.h.
3250 (W_BIT, R_BIT, I_BIT, W_MASK, R_MASK, I_MASK, IRW_MASK): Move
3251 to common/mips-linux-watch.h.
3252 (MAX_DEBUG_REGISTER): Likewise.
3253 (enum pt_watch_style): Likewise.
3254 (struct mips32_watch_regs): Likewise.
3255 (struct mips64_watch_regs): Likewise.
3256 (struct pt_watch_regs): Likewise.
3257 (struct mips_watchpoint): Likewise.
3258 (mips_linux_watch_get_irw_mask): Move to
3259 common/mips-linux-watch.c.
3260 (get_reg_mask, mips_linux_watch_get_num_valid): Likewise.
3261 (mips_linux_watch_get_watchlo): Likewise.
3262 (mips_linux_watch_set_watchlo): Likewise.
3263 (mips_linux_watch_get_watchhi): Likewise.
3264 (mips_linux_watch_set_watchhi): Likewise.
3265 (mips_linux_read_watch_registers): Likewise.
3266 (mips_linux_watch_type_to_irw): Likewise.
3267 (mips_linux_stopped_data_address, fill_mask): Likewise.
3268 (mips_linux_watch_try_one_watch): Likewise.
3269 (mips_linux_watch_populate_regs): Likewise.
3270
3271 2013-07-27 Yao Qi <yao@codesourcery.com>
3272
3273 * mips-linux-nat.c (get_irw_mask): Rename to ...
3274 (mips_linux_watch_get_irw_mask): ... this. Rename parameter
3275 'set' to 'n'. Update function comment. All callers changed.
3276 (get_reg_mask): Rename parameter 'set' to 'n'. Update
3277 function comment. All callers changed.
3278 (get_num_valid): Rename to ...
3279 (mips_linux_watch_get_num_valid): ... this. Rename parameter
3280 'set' to 'n'. Update function comment. All callers changed.
3281 (get_watchlo): Rename to ...
3282 (mips_linux_watch_get_watchlo): ... this. Rename parameter
3283 'set' to 'n'. Update function comment. All callers changed.
3284 (set_watchlo): Rename to ...
3285 (mips_linux_watch_set_watchlo): ... this. Rename parameter
3286 'set' to 'n'. Update function comment. All callers changed.
3287 (get_watchhi): Rename to ...
3288 (mips_linux_watch_get_watchhi): ... this. Update function
3289 comment. All callers changed.
3290 (set_watchhi): Rename to ...
3291 (mips_linux_watch_set_watchhi): ... this. Update function
3292 comment. All callers changed.
3293 (mips_linux_read_watch_registers): Update function comment.
3294 Add new parameters 'lwpid', 'watch_readback', and
3295 'watch_readback_valid'. Update.
3296 (type_to_irw): Rename to ...
3297 (mips_linux_watch_type_to_irw): ... this. Update function
3298 comment. All callers changed.
3299 (fill_mask): Update function comment.
3300 (try_one_watch): Rename to ...
3301 (mips_linux_watch_try_one_watch): ... this. Change the type
3302 of parameter 'irw' from 'unsigned' to 'uint32_t'.
3303 (populate_regs_from_watches): Rename to ...
3304 (mips_linux_watch_populate_regs): ... this. Add parameter
3305 'current_watches'. All callers changed.
3306
3307 2013-07-27 Yao Qi <yao@codesourcery.com>
3308
3309 * mips-linux-nat.c (MAX_DEBUG_REGISTER): Move it earlier in
3310 the code.
3311 (PTRACE_SET_WATCH_REGS, enum pt_watch_style): Remove.
3312 (struct mips32_watch_regs, struct mips64_watch_regs): Remove.
3313 (struct pt_watch_regs): Likewise.
3314 [!PTRACE_GET_WATCH_REGS] (PTRACE_SET_WATCH_REGS): New macro.
3315 [!PTRACE_GET_WATCH_REGS] (enum pt_watch_style): New.
3316 [!PTRACE_GET_WATCH_REGS] (struct mips32_watch_regs): New.
3317 [!PTRACE_GET_WATCH_REGS] (struct mips64_watch_regs): New.
3318 [!PTRACE_GET_WATCH_REGS] (struct pt_watch_regs): New.
3319
3320 2013-07-27 Yao Qi <yao@codesourcery.com>
3321
3322 * breakpoint.h: Include break-common.h.
3323 (enum target_hw_bp_type): Move to ...
3324 * common/break-common.h: ... here. New.
3325
3326 2013-07-26 Cyril Nikolaev <cyril@nichtverstehen.de>
3327
3328 * inflow.c (terminal_init_inferior_with_pgrp): Save inferior
3329 process group regardless of having tty on stdin.
3330
3331 2013-07-25 Doug Evans <dje@google.com>
3332
3333 * linux-fork.h (detach_fork): Delete.
3334
3335 2013-07-25 Tom Tromey <tromey@redhat.com>
3336
3337 PR remote/15256, PR remote/15266:
3338 * bfd-target.c (target_bfd_reopen): Initialize to_magic.
3339 * monitor.c (monitor_detach): Use unpush_target.
3340 * remote-m32r-sdi.c (m32r_detach): Use unpush_target.
3341 * remote-mips.c (mips_detach): Use unpush_target. Don't
3342 call mips_close.
3343 * remote-sim.c (gdbsim_detach): Use unpush_target.
3344 * target.c (pop_target): Remove.
3345 (pop_all_targets_above): Don't call target_close.
3346 (target_close): Assert that the target is unpushed.
3347 * target.h (pop_target): Don't declare.
3348 * tracepoint.c (tfile_open): Use unpush_target.
3349
3350 2013-07-25 Tom Tromey <tromey@redhat.com>
3351
3352 * linux-thread-db.c (init_thread_db_ops): Call
3353 complete_target_initialization.
3354 (_initialize_thread_db): Don't call add_target.
3355 * target.c (complete_target_initialization): New function.
3356 (add_target_with_completer): Call it.
3357 * target.h (complete_target_initialization): Declare.
3358
3359 2013-07-25 Mark Kettenis <kettenis@gnu.org>
3360
3361 * hppa-tdep.h (enum hppa_regnum): Add members for all space registers.
3362 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Add comment.
3363 (HPPANBSD_SIZEOF_GREGS): New define.
3364 (hppaobsd_supply_gregset): Handle additional registers.
3365 * hppabsd-nat.c (hppabsd_gregset_supplies_p): Adjust to indicate
3366 we provide more registers now.
3367 (hppabsd_supply_gregset): Supply additional registers.
3368 (hppabsd_collect_gregset): Collect additional registers.
3369
3370 2013-07-25 Mark Kettenis <kettenis@gnu.org>
3371
3372 * hppabsd-tdep.c: Include "dwarf2-frame.h".
3373 (hppabsd_dwarf2_frame_init_reg): New function.
3374 (hppabsd_init_abi): Hook in the DWARF CFI frame unwinder.
3375
3376 2013-07-25 Andrew Burgess <aburgess@broadcom.com>
3377
3378 * mi/mi-main.c (output_register): Make MI 'r' format use standard
3379 'z' format code. Remove error for optimized out values, standard
3380 code will handle these fine.
3381
3382 2013-07-25 Andrew Burgess <aburgess@broadcom.com>
3383
3384 * NEWS: Mention new 'z' formatter.
3385 * printcmd.c (print_scalar_formatted): Add new 'z' formatter.
3386 (_initialize_printcmd): Mention 'z' formatter in help text of the
3387 'x' command.
3388
3389 2013-07-24 Maciej W. Rozycki <macro@codesourcery.com>
3390
3391 * mips-tdep.c (micromips_deal_with_atomic_sequence): Correct
3392 formatting.
3393
3394 2013-07-24 Sergio Durigan Junior <sergiodj@redhat.com>
3395
3396 * breakpoint.c (create_longjmp_master_breakpoint): Check if probe
3397 interface can evaluate arguments. Fallback to the old mode if it
3398 cannot.
3399 (create_exception_master_breakpoint): Likewise.
3400 * elfread.c (elf_can_evaluate_probe_arguments): New function.
3401 (struct sym_probe_fns elf_probe_fns): Export function above to the
3402 probe interface.
3403 * probe.c (can_evaluate_probe_arguments): New function.
3404 * probe.h (struct probe_ops) <can_evaluate_probe_arguments>: New
3405 function pointer.
3406 (can_evaluate_probe_arguments): New function prototype.
3407 * solib-svr4.c (svr4_create_solib_event_breakpoints): Check if
3408 probe interface can evaluate arguments. Fallback to the old mode
3409 if it cannot.
3410 * stap-probe.c (stap_get_probe_argument_count): Check if probe
3411 interface can evaluate arguments. Warning the user if it cannot.
3412 (stap_can_evaluate_probe_arguments): New function.
3413 (struct probe_ops stap_probe_ops): Export function above to the
3414 probe interface.
3415 * symfile.h (struct sym_probe_fns) <can_evaluate_probe_arguments>:
3416 New function pointer.
3417
3418 2013-07-24 Luis Machado <lgustavo@codesourcery.com>
3419
3420 * Makefile.in (SFILES): Add common/target-common.c.
3421 Add common/target-common.h to headers.
3422 (COMMON_OBS): Add target-common.o.
3423 (target-common.o): New target.
3424 * linux-nat.h (resume_kind): Move to common/target-common.h.
3425 * target.c (target_waitstatus_to_string): Move to
3426 common/target-common.c.
3427 * target.h: Include target-common.h.
3428 (target_waitkind): Move to common/target-common.h.
3429 (target_waitstatus): Likewise.
3430 (TARGET_WNOHANG): Likewise.
3431 * common/target-common.c: New file.
3432 * common/target-common.h: New file.
3433
3434 2013-07-24 Doug Evans <dje@google.com>
3435
3436 * dwarf2read.c (lookup_dwo_cutu): Change missing DWO complaint to
3437 a warning.
3438
3439 2013-07-23 Yao Qi <yao@codesourcery.com>
3440
3441 * i386-tdep.c (i386_in_stack_tramp_p): Remove unused
3442 parameter 'gdbarch'.
3443 (i386_stack_tramp_frame_sniffer): Caller update.
3444 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Remove
3445 parameter 'gdbarch' and 'target'.
3446 (i386_linux_core_read_description): Caller update.
3447 * amd64-linux-tdep.c (amd64_linux_core_read_description):
3448 Likewise.
3449 * i386-linux-tdep.h (i386_linux_core_read_xcr0): Update
3450 declaration.
3451
3452 2013-07-23 Tom Tromey <tromey@redhat.com>
3453
3454 * dwarf2read.c (init_cutu_and_read_dies): Revert patch from
3455 2013-07-22.
3456
3457 2013-07-22 Doug Evans <dje@google.com>
3458
3459 * exec.h (remove_target_sections): Delete arg abfd.
3460 * exec.c (exec_close): Update call to remove_target_sections.
3461 (remove_target_sections): Delete arg abfd.
3462 * solib.c (update_solib_list): Ditto.
3463 (reload_shared_libraries_1): Ditto.
3464 (clear_solib): Ditto, and unconditionally call remove_target_sections.
3465 * target.h (struct target_section): Rename key to owner.
3466 All uses updated.
3467
3468 2013-07-22 Tom Tromey <tromey@redhat.com>
3469
3470 * solib-som.c (som_open_symbol_file_object): Call do_cleanups.
3471
3472 2013-07-22 Tom Tromey <tromey@redhat.com>
3473
3474 * dwarf2read.c (init_cutu_and_read_dies): Remove 'free_cu_cleanup'.
3475 Simplify cleanup handling.
3476
3477 2013-07-22 Tom Tromey <tromey@redhat.com>
3478
3479 * dwarf2read.c (dwarf_decode_line_header): Call do_cleanups
3480 on all return paths.
3481
3482 2013-07-22 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3483
3484 * ppc-linux-nat.c (PPC_DEBUG_FEATURE_DATA_BP_DAWR): New define.
3485 (ppc_linux_region_ok_for_hw_watchpoint): Add checking to use the new
3486 DAWR interface for longer ranges hardware watchpoint (up to 512 bytes).
3487
3488 2013-07-22 Phil Muldoon <pmuldoon@redhat.com>
3489
3490 * top.c (print_gdb_version): Add help, apropos description and
3491 url to online documentation.
3492
3493 2013-07-19 Hui Zhu <hui@codesourcery.com>
3494
3495 PR gdb/15692
3496 * mi/mi-cmd-break.c (mi_argv_to_format): Handle double quotes.
3497
3498 2013-07-19 Yao Qi <yao@codesourcery.com>
3499
3500 * target.c (update_current_target): Change the default action
3501 of 'to_traceframe_info' from tcomplain to return_zero.
3502 * target.h (struct target_ops) <to_traceframe_info>: Add more
3503 comments.
3504 * valops.c (read_value_memory): Call
3505 traceframe_available_memory unconditionally.
3506
3507 2013-07-18 Yao Qi <yao@codesourcery.com>
3508
3509 * coffread.c (coff_symfile_read): Iterate over minimal symbols,
3510 if the name is prefixed by "__imp_" or "_imp_", look for minimal
3511 symbol without prefix. If found, set its type to
3512 'mst_solib_trampoline'.
3513
3514 2013-07-17 Doug Evans <dje@google.com>
3515
3516 * NEWS: Mention "set print raw frame-arguments".
3517 * gdbcmd.h (setprintrawlist, showprintrawlist): Declare.
3518 * stack.c (print_raw_frame_arguments): New static global.
3519 (print_frame_arg): Set opts.raw from print_raw_frame_arguments.
3520 (_initialize_stack): New command "set/show print raw frame-arguments".
3521 * valprint.c (setprintrawlist, showprintrawlist): New globals.
3522 (set_print_raw, show_print_raw): New functions.
3523 (_initialize_valprint): New prefix command "set/show print raw".
3524 * valprint.h (value_print_options): Improve comments.
3525
3526 * cli/cli-cmds.c (init_cmd_lists): Delete unnecessary initialization
3527 of all *list variables.
3528
3529 * gdbcmd.h (togglelist): Delete.
3530 * cli/cli-cmds.c (togglelist): Delete.
3531 (init_cmd_lists): Update.
3532 * cli/cli-cmds.h (togglelist): Delete.
3533
3534 2013-07-17 Tom Tromey <tromey@redhat.com>
3535
3536 * dwarf2read.c (dwarf2_per_objfile_free): Clear
3537 dwarf2_per_objfile.
3538
3539 2013-07-16 Doug Evans <dje@google.com>
3540
3541 * nto-tdep.c (nto_relocate_section_addresses): Update,
3542 target_section.bfd deleted.
3543 * ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Ditto.
3544 * s390-tdep.c (s390_load): Ditto.
3545 * solib-aix.c (solib_aix_relocate_section_addresses): Ditto.
3546
3547 2013-07-16 Andrew Burgess <aburgess@broadcom.com>
3548
3549 * common/format.c (parse_format_string): Add checks for NULL
3550 character before calling strchr.
3551
3552 2013-07-16 Doug Evans <dje@google.com>
3553
3554 * solist.h (target_so_ops.find_and_open_solib): Clarify usage of
3555 temp_pathname argument.
3556 * nto-tdep.c (nto_find_and_open_solib): Fix setting of temp_pathname
3557 when opening the file fails.
3558
3559 * target.h (struct target_section): Delete member bfd.
3560 All users updated to use the_bfd_section->owner instead.
3561 * exec.c (add_to_section_table): Assert bfd is expected value.
3562 Remove initialization of target_section.bfd.
3563 (remove_target_sections): Update.
3564 (section_table_available_memory): Update.
3565 (section_table_xfer_memory_partial): Update.
3566 (print_section_info): Update.
3567 (exec_set_section_address): Update.
3568 * record-full.c (record_full_core_xfer_partial): Update.
3569 * solib-svr4.c (svr4_relocate_section_addresses): Update.
3570 * solib-target.c (solib_target_relocate_section_addresses): Update.
3571 * symfile.c (build_section_addr_info_from_section_table): Update.
3572 * target.c (memory_xfer_live_readonly_partial): Update.
3573 (memory_xfer_partial_1): Update.
3574
3575 2013-07-15 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3576
3577 * ppc-linux-nat.c: Since the new PowerPC specific ptrace interface is
3578 now available for embedded (BookE) and server (BookS) processors,
3579 correct mentions of 'booke' and adjust comments accordingly in order to
3580 avoid confusion. Rename struct 'booke_debug_info' to 'hwdebug_info'.
3581 (have_ptrace_booke_interface): Rename function and variable
3582 'have_ptrace_booke_interface' to 'have_ptrace_hwdebug_interface'.
3583 Rename struct 'booke_debug_info' to 'hwdebug_info'. Update all uses.
3584 (booke_cmp_hw_point): Rename function 'booke_cmp_hw_point' to
3585 'hwdebug_point_cmp'. Update all uses.
3586 (booke_find_thread_points_by_tid): Rename function
3587 'booke_find_thread_points_by_tid' to
3588 'hwdebug_find_thread_points_by_tid'. Update all uses.
3589 (booke_insert_point): Rename function 'booke_insert_point' to
3590 'hwdebug_insert_point'. Update all uses.
3591 (booke_remove_point): Rename function 'booke_remove_point' to
3592 'hwdebug_remove_point'. Update all uses.
3593
3594 2013-07-15 Maciej W. Rozycki <macro@codesourcery.com>
3595
3596 * mips-tdep.c (mips_gdbarch_init): Replace hardcoded magic
3597 numbers with enum values.
3598
3599 2013-07-15 Ali Anwar <ali_anwar@codesourcery.com>
3600
3601 PR threads/13217
3602 * thread.c (thread_apply_all_command): Check for valid threads
3603 and thread count.
3604 (thread_array_cleanup): New struct.
3605 (set_thread_refcount): New function.
3606
3607 2013-07-11 Andrew Burgess <aburgess@broadcom.com>
3608
3609 * infcmd.c (default_print_one_register_info): Reuse function
3610 print_hex_chars.
3611
3612 2013-07-10 Tom Tromey <tromey@redhat.com>
3613
3614 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS, ADA_EXP_C): New macros.
3615 (ada-exp.o): New target.
3616
3617 2013-07-10 Sergio Durigan Junior <sergiodj@redhat.com>
3618
3619 * mt-tdep.c (mt_registers_info): Call
3620 get_no_prettyformat_print_options instead of
3621 get_raw_print_options (regression by last patch from Doug
3622 Evans).
3623
3624 2013-07-09 Pedro Alves <palves@redhat.com>
3625
3626 Checked in by Joel Brobecker <brobecker@adacore.com>.
3627 * ada-lang.c (coerce_unspec_val_to_type): Use
3628 value_optimized_out_const.
3629 * value.c (value_optimized_out_const): New function.
3630 * value.h (value_optimized_out_const): New declaration.
3631
3632 2013-07-09 Doug Evans <dje@google.com>
3633
3634 * defs.h (enum val_prettyformat): Renamed from val_prettyprint.
3635 Enum values rename as well. All uses updated.
3636 * valprint.h (value_print_options): Rename member pretty to
3637 pretty format. Rename member prettyprint_arrays to
3638 prettyformat_arrays. Rename member prettyprint_structs to
3639 prettyformat_structs. All uses updated.
3640 (get_no_prettyformat_print_options): Renamed from
3641 get_raw_print_options.
3642 * valprint.c (get_no_prettyformat_print_options): Renamed from
3643 get_raw_print_options. All callers updated.
3644 (show_prettyformat_structs): Renamed from show_prettyprint_structs.
3645 All callers updated.
3646 (show_prettyformat_arrays): Renamed from show_prettyprint_arrays.
3647 All callers updated.
3648 (_initialize_valprint): Improve help text for "set print pretty" and
3649 "set print arrays".
3650
3651 2013-07-09 Andrew Burgess <aburgess@broadcom.com>
3652
3653 * value.c (value_bits_valid): Revert previous change, and change
3654 by Pedro on 2013-07-04, due to regressions in
3655 gdb.dwarf2/implptr.exp and gdb.dwarf2/pieces.exp.
3656
3657 2013-07-08 Andrew Burgess <aburgess@broadcom.com>
3658 Pedro Alves <palves@redhat.com>
3659
3660 * value.c (value_bits_valid): If the value is not lval_computed
3661 or has no check validity handler then the answer is the
3662 optimized_out flag, otherwise defer to the handler.
3663
3664 2013-07-06 Eli Zaretskii <eliz@gnu.org>
3665
3666 * top.c (print_gdb_configuration): Explain in output of
3667 --configuration what does "relocatable" mean.
3668
3669 * main.c (print_gdb_help): Regroup options in the --help text.
3670 See http://sourceware.org/ml/gdb-patches/2013-04/msg00362.html for
3671 the relevant discussions.
3672
3673 2013-07-06 Yao Qi <yao@codesourcery.com>
3674
3675 * breakpoint.h (struct breakpoint_ops) <create_breakpoints_sal>:
3676 Remove parameter 'lsal'.
3677 * breakpoint.c (create_breakpoint): Move local variable 'lsal'
3678 to inner block. Caller update.
3679 (base_breakpoint_create_breakpoints_sal): Update.
3680 (bkpt_create_breakpoints_sal): Likewise.
3681 (tracepoint_create_breakpoints_sal): Likewise.
3682 (strace_marker_create_breakpoints_sal): Get 'lsal' from the
3683 element 0 of vector 'canonical->sals'.
3684
3685 2013-07-05 Luis Machado <lgustavo@codesourcery.com>
3686
3687 * rs6000-tdep.c (rs6000_stab_reg_to_regnum): Return the real
3688 register number instead of the pseudo register one.
3689 (rs6000_dwarf2_reg_to_regnum): Likewise.
3690
3691 2013-07-04 Pedro Alves <palves@redhat.com>
3692
3693 * findvar.c (value_of_register): Use allocate_optimized_out_value
3694 if the register has been optimized out, instead of
3695 set_value_optimized_out.
3696 * frame-unwind.c (frame_unwind_got_optimized): Use
3697 allocate_optimized_out_value.
3698
3699 2013-07-04 Pedro Alves <palves@redhat.com>
3700
3701 * value.c (value_bits_valid): If the value is not lval_computed,
3702 or doesn't have a check_validity hook, assume the value is entirely
3703 valid.
3704
3705 2013-07-04 Andrew Burgess <aburgess@broadcom.com>
3706
3707 * stack.c (read_frame_arg): No longer fetch lazy values.
3708 * value.c (value_optimized_out): If the value is not already
3709 marked optimized out, and is lazy then fetch it.
3710 (value_primitive_field): Move optimized out check to later in the
3711 function, after we have loaded any lazy values.
3712 (value_fetch_lazy): Use optimized out flag directly rather than
3713 calling optimized_out method.
3714
3715 2013-07-04 Andrew Burgess <aburgess@broadcom.com>
3716
3717 * valops.c: Don't include "user-regs.h".
3718 (value_fetch_lazy): Moved to value.c.
3719 * value.c: Include "user-regs.h".
3720 (value_fetch_lazy): Moved from valops.c.
3721
3722 2013-07-04 Yao Qi <yao@codesourcery.com>
3723
3724 Revert:
3725 2013-06-27 Yao Qi <yao@codesourcery.com>
3726
3727 * common/create-version.sh: Update comments. Handle the case
3728 that TARGET_ALIAS is empty.
3729
3730 2013-07-03 Pedro Alves <palves@redhat.com>
3731
3732 * Makefile.in (config.status): Depend on development.sh.
3733 (aclocal_m4_deps): Add libmcheck.m4.
3734 * acinclude.m4: Include libmcheck.m4.
3735 * configure.ac: Source development.sh instead of setting
3736 'development' here. --enable-libmcheck/--disable-libmcheck code
3737 factored out to GDB_AC_LIBMCHECK. Run it.
3738 * development.sh: New file.
3739 * libmcheck.m4: New file.
3740 * configure: Regenerate.
3741
3742 2013-07-02 Tom Tromey <tromey@redhat.com>
3743
3744 * contrib/ari/update-web-ari.sh: Update for version.in change.
3745
3746 2013-07-02 Tom Tromey <tromey@redhat.com>
3747
3748 * common/ptid.h: Comment fixes.
3749
3750 2013-07-01 Tom Tromey <tromey@redhat.com>
3751
3752 * dwarf2read.c (dwarf2_get_dwz_file): Return NULL if
3753 .gnu_debugaltlink not found. Use bfd_get_alt_debug_link_info.
3754 (dwarf2_read_index, create_all_comp_units): Update.
3755
3756 2013-07-01 Tom Tromey <tromey@redhat.com>
3757
3758 * configure.ac (build_warnings): Add -Wold-style-definition.
3759 * configure: Rebuild.
3760 * machoread.c (_initialize_machoread): Use "(void)".
3761 * macrocmd.c (macro_inform_no_debuginfo): Fix formatting;
3762 use "(void)".
3763
3764 2013-07-01 Tom Tromey <tromey@redhat.com>
3765
3766 * configure.ac (build_warnings): Add -Wold-style-declaration.
3767 * configure: Rebuild.
3768 * dsrec.c (make_srec): Use "static const", not "const static".
3769 * h8300-tdep.c (h8300_breakpoint_from_pc): Use "static const",
3770 not "const static".
3771 * mi/mi-parse.c (mi_no_values, mi_simple_values, mi_all_values):
3772 Use "static const", not "const static".
3773 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Use "static const",
3774 not "const static".
3775 * moxie-tdep.c (moxie_breakpoint_from_pc): Use "static const",
3776 not "const static".
3777 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Use "static const",
3778 not "const static".
3779 * v850-tdep.c (v850_breakpoint_from_pc): Use "static const",
3780 not "const static".
3781 (v850_dbtrap_breakpoint_from_pc): Likewise.
3782 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Use "static const",
3783 not "const static".
3784
3785 2013-07-01 Tom Tromey <tromey@redhat.com>
3786
3787 * configure.ac (build_warnings): Add -Wmissing-parameter-type.
3788 * configure: Rebuild.
3789
3790 2013-07-01 Pedro Alves <palves@redhat.com>
3791
3792 * defs.h: Include "pathmax.h".
3793 * utils.c: Don't include sys/param.h.
3794 (gdb_realpath): Remove code that checks for MAXPATHLEN.
3795 * solib-ia64-hpux.c (ia64_hpux_handle_load_event): Use PATH_MAX
3796 instead of MAXPATHLEN.
3797 * solib-sunos.c: Don't include sys/param.h.
3798 * xcoffread.c: Don't include sys/param.h.
3799 * bsd-kvm.c: Don't include sys/param.h.
3800 * darwin-nat.c: Don't include sys/param.h.
3801 (darwin_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
3802 * darwin-nat-info.c: Don't include sys/param.h.
3803 * fbsd-nat.c (fbsd_pid_to_exec_file): Use PATH_MAX instead of
3804 MAXPATHLEN.
3805 * i386obsd-nat.c: Don't include sys/param.h.
3806 * inf-child.c: Don't include sys/param.h.
3807 (inf_child_fileio_readlink): Use PATH_MAX instead of MAXPATHLEN.
3808 * linux-fork.c: Don't include sys/param.h.
3809 (fork_save_infrun_state): Use PATH_MAX instead of MAXPATHLEN.
3810 * linux-nat.c: Don't include sys/param.h.
3811 (linux_child_pid_to_exec_file, linux_proc_pending_signals)
3812 (linux_proc_pending_signals): Use PATH_MAX instead of MAXPATHLEN.
3813 * m68klinux-nat.c: Don't include sys/param.h.
3814 * nbsd-nat.c: Don't include sys/param.h.
3815 (nbsd_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
3816 * ppc-linux-nat.c: Don't include sys/param.h.
3817 * rs6000-nat.c: Don't include sys/param.h.
3818 * spu-linux-nat.c. Don't include sys/param.h.
3819 * windows-nat.c: Don't include sys/param.h.
3820 * xtensa-linux-nat.c: Don't include sys/param.h.
3821 * config/i386/nm-fbsd.h: Don't include sys/param.h.
3822
3823 2013-07-01 Pedro Alves <palves@redhat.com>
3824
3825 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add pathmax.
3826 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/pathmax.m4.
3827 * gnulib/aclocal.m4: Regenerate.
3828 * gnulib/config.in: Regenerate.
3829 * gnulib/configure: Regenerate.
3830 * gnulib/import/pathmax.h: New file.
3831 * gnulib/import/Makefile.am: Regenerate.
3832 * gnulib/import/Makefile.in: Regenerate.
3833 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
3834 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
3835 * gnulib/import/m4/pathmax.m4: New file.
3836
3837 2013-07-01 Pedro Alves <palves@redhat.com>
3838
3839 * configure.ac (GDBINIT): Define, depending on host.
3840 * go32-nat.c (init_go32_ops): Don't override gdbinit here.
3841 * top.c (PATH_MAX): Delete fallback definition.
3842 (GDBINIT_FILENAME): Delete.
3843 (gdbinit): Reimplement as const char array set to the GDBINIT
3844 string constant.
3845 * top.h (gdbinit): Make const.
3846 * configure, config.in: Regenerate.
3847
3848 2013-07-01 Pedro Alves <palves@redhat.com>
3849
3850 * cli/cli-cmds.c (source_script): Make 'file' parameter const.
3851 * cli/cli-cmds.h (source_script): Likewise.
3852 * exceptions.c (catch_command_errors_const): New function.
3853 * exceptions.h (catch_command_errors_const): Declare.
3854 * main.c (get_init_files): Make parameters const, and adjust.
3855 (captured_main): Make 'system_gdbinit', 'home_gdbinit' and
3856 'local_gdbinit' locals const. Adjust to use
3857 catch_command_errors_const.
3858 (print_gdb_help): Make 'system_gdbinit', 'home_gdbinit' and
3859 'local_gdbinit' locals const.
3860
3861 2013-07-01 Pedro Alves <palves@redhat.com>
3862
3863 * defs.h: Don't check HAVE_UNISTD_H before including <unistd.h>.
3864 (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO): Delete.
3865 * tracepoint.c: Don't check HAVE_UNISTD_H before including
3866 <unistd.h>.
3867
3868 2013-07-01 Pedro Alves <palves@redhat.com>
3869
3870 Import the "unistd" gnulib module.
3871 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add "unistd".
3872 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/off_t.m4,
3873 import/m4/ssize_t.m4, import/m4/sys_types_h.m4 and
3874 import/m4/unistd_h.m4.
3875 * gnulib/aclocal.m4: Renenerate.
3876 * gnulib/config.in: Renenerate.
3877 * gnulib/configure: Renenerate.
3878 * gnulib/import/Makefile.am: Renenerate.
3879 * gnulib/import/Makefile.in: Renenerate.
3880 * gnulib/import/m4/gnulib-cache.m4: Renenerate.
3881 * gnulib/import/m4/gnulib-comp.m4: Renenerate.
3882 * gnulib/import/m4/off_t.m4: New file.
3883 * gnulib/import/m4/ssize_t.m4: New file.
3884 * gnulib/import/m4/sys_types_h.m4: New file.
3885 * gnulib/import/m4/unistd_h.m4: New file.
3886 * gnulib/import/sys_types.in.h: New file.
3887 * gnulib/import/unistd.c: New file.
3888 * gnulib/import/unistd.in.h: New file.
3889
3890 2013-07-01 Pedro Alves <palves@redhat.com>
3891
3892 * utils.c <pathconf/_PC_PATH_MAX use>: Check if _PC_PATH_MAX is
3893 defined instead of checking HAVE_UNISTD_H.
3894
3895 2013-07-01 Pedro Alves <palves@redhat.com>
3896
3897 Reimport gnulib from scratch.
3898 * gnulib/Makefile.in (aclocal_m4_deps): Remove reference to
3899 import/m4/onceonly.m4.
3900 * gnulib/aclocal.m4: Renegerate.
3901 * gnulib/config.in: Renegerate.
3902 * gnulib/configure: Renegerate.
3903 * gnulib/import/Makefile.in: Renegerate.
3904 * gnulib/import/extra/update-copyright: Renegerate.
3905 * gnulib/import/m4/onceonly.m4: Delete.
3906
3907 2013-07-01 Pedro Alves <palves@redhat.com>
3908
3909 * tui/tui-regs.c (pagination_enabled): Delete declaration.
3910
3911 2013-06-30 Jan Kratochvil <jan.kratochvil@redhat.com>
3912
3913 Code cleanup.
3914 * remote.c (async_remote_interrupt_twice): Make it static.
3915 * remote.h (async_remote_interrupt_twice): Remove the declaration.
3916
3917 2013-06-29 Sergio Durigan Junior <sergiodj@redhat.com>
3918
3919 * ia64-linux-tdep.c: Include <ctype.h>.
3920 (ia64_linux_stap_is_single_operand): New function.
3921 (ia64_linux_init_abi): Initialize SystemTap related attributes.
3922
3923 2013-06-28 Tom Tromey <tromey@redhat.com>
3924
3925 * Makefile.in (version.c): Use version.in, not
3926 common/version.in.
3927 * common/create-version.sh: Likewise.
3928 * common/version.in: Move...
3929 * version.in: ...here.
3930
3931 2013-06-28 Pedro Alves <palves@redhat.com>
3932
3933 * infrun.c (set_observer_mode): Don't declare pagination_enabled
3934 here.
3935 * utils.h (pagination_enabled): Declare.
3936
3937 2013-06-28 Pedro Alves <palves@redhat.com>
3938
3939 * infrun.c (non_stop, non_stop_1, set_non_stop, show_non_stop):
3940 Move higher up in file.
3941
3942 2013-06-28 Tom Tromey <tromey@redhat.com>
3943
3944 * tracepoint.c (deprecated_readline_begin_hook)
3945 (deprecated_readline_hook, deprecated_readline_end_hook): Don't
3946 declare.
3947
3948 2013-06-28 Pedro Alves <palves@redhat.com>
3949
3950 PR tui/14880
3951 * tui/tui-regs.c (tui_get_register): Fetch value contents before
3952 checking if they're available.
3953 * value.c (value_available_contents_eq): Change comment.
3954 * value.h (value_available_contents_eq): Expand comment.
3955
3956 2013-06-27 Tom Tromey <tromey@redhat.com>
3957
3958 * target.c (find_run_target): Remove.
3959 * target.h (find_run_target): Remove.
3960
3961 2013-06-27 Tom Tromey <tromey@redhat.com>
3962
3963 * corelow.c (core_gdbarch): Now static.
3964
3965 2013-06-27 Tom Tromey <tromey@redhat.com>
3966
3967 * target.c (target_struct_index): Remove.
3968
3969 2013-06-27 Pedro Alves <palves@redhat.com>
3970
3971 * infrun.c: Remove comment describing the 'stepping over runtime
3972 loader dynamic symbol resolution code' mechanism; moved to
3973 gdbint.texinfo.
3974
3975 2013-06-27 Pedro Alves <palves@redhat.com>
3976
3977 * exceptions.c (catch_command_errors): Remove spurious space.
3978 * exceptions.h (catch_command_errors): Second parameter is "arg",
3979 not "command".
3980
3981 2013-06-27 Yao Qi <yao@codesourcery.com>
3982
3983 * common/create-version.sh: Update comments. Handle the case
3984 that TARGET_ALIAS is empty.
3985
3986 2013-06-26 Pedro Alves <palves@redhat.com>
3987
3988 * infrun.c (SOLIB_IN_DYNAMIC_LINKER): Delete macro and describing
3989 comment.
3990
3991 2013-06-26 Pedro Alves <palves@redhat.com>
3992
3993 * infrun.c: Update comments on stepping over runtime loader
3994 dynamic symbol resolution code.
3995
3996 2013-06-26 Sergio Durigan Junior <sergiodj@redhat.com>
3997
3998 * ax-gdb.h (union exp_element): Forward declare.
3999 * parser-defs.h: Include expression.h.
4000
4001 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
4002
4003 * mips-tdep.c (fetch_mips_16): Use unmake_compact_addr.
4004
4005 2013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
4006
4007 * tracepoint.c (trace_save): Extend tsave to save starttime, stoptime.
4008
4009 2013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
4010
4011 Fix trace-status to output proper start-time and stop-time.
4012 * tracepoint.c (trace_status_command): Fix type of printf arg to
4013 prevent improper type conversion.
4014 (trace_status_mi): Likewise.
4015
4016 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
4017
4018 * mips-tdep.c (mips_next_pc): Fix a typo.
4019
4020 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
4021
4022 * mips-tdep.c (micromips_scan_prologue): Fix a typo.
4023
4024 2013-06-26 Pedro Alves <pedro@codesourcery.com>
4025 Yao Qi <yao@codesourcery.com>
4026
4027 * mi/mi-cmds.c (mi_cmds): Register -trace-frame-collected.
4028 * mi/mi-cmds.h (mi_cmd_trace_frame_collected): Declare.
4029 * mi/mi-main.c (print_variable_or_computed): New function.
4030 (mi_cmd_trace_frame_collected): New function.
4031 * tracepoint.c (find_trace_state_variable_by_number): New.
4032 (struct traceframe_info): Move to tracepoint.h
4033 (struct collection_list): Likewise.
4034 (do_collect_symbol): Include locals and arguments in the
4035 collected variables list.
4036 (clear_collection_list): Clear wholly collected variables list
4037 and computed variables list.
4038 (append_exp): New function.
4039 (encode_actions_1): Include variables in the wholly
4040 collected variables list. Include memory ranges and
4041 full-fledged expressions in the computed expressions list.
4042 (encode_actions): Move some code to ...
4043 Return the cleanup chain.
4044 (encode_actions_rsp): ... here. New function.
4045 (get_traceframe_location, get_traceframe_info): Remove static.
4046 * tracepoint.h (struct memrange): Moved from tracepoint.c.
4047 (struct collection_list): Moved from tracepoint.c. Add two
4048 new fields 'wholly_collected' and 'computed'.
4049 (find_trace_state_variable_by_number): Declare.
4050 (encode_actions): Adjust declaration.
4051 (encode_actions_rsp): Declare.
4052 (get_traceframe_info, get_traceframe_location): Declare.
4053
4054 * NEWS: Mention new MI command -trace-frame-collected.
4055
4056 2013-06-26 Pedro Alves <pedro@codesourcery.com>
4057 Yao Qi <yao@codesourcery.com>
4058
4059 * ctf.c (ctf_traceframe_info): Push trace state variables
4060 present in the trace data into the traceframe info object.
4061 * breakpoint.c (DEF_VEC_I): Remove.
4062 * common/filestuff.c (DEF_VEC_I): Likewise.
4063 * dwarf2loc.c (DEF_VEC_I): Likewise.
4064 * mi/mi-main.c (DEF_VEC_I): Likewise.
4065 * common/gdb_vecs.h (DEF_VEC_I): Define vector for int.
4066 * features/traceframe-info.dtd: Add tvar element and its
4067 attributes.
4068 * tracepoint.c (free_traceframe_info): Free vector 'tvars'.
4069 (build_traceframe_info): Push trace state variables present in
4070 the trace data into the traceframe info object.
4071 (traceframe_info_start_tvar): New function.
4072 (tvar_attributes): New.
4073 (traceframe_info_children): Add "tvar" element.
4074 * tracepoint.h (struct traceframe_info) <tvars>: New field.
4075
4076 * NEWS: Mention the change in GDB and GDBserver.
4077
4078 2013-06-26 Pedro Alves <pedro@codesourcery.com>
4079 Yao Qi <yao@codesourcery.com>
4080
4081 * tracepoint.c (trace_dump_command): Move code to ...
4082 (get_traceframe_location): ... here. New.
4083
4084 2013-06-26 Pedro Alves <pedro@codesourcery.com>
4085 Yao Qi <yao@codesourcery.com>
4086
4087 * tracepoint.c (trace_dump_command): GDB emits an error
4088 instead of a warning when a traceframe is not selected.
4089
4090 2013-06-26 Pedro Alves <pedro@codesourcery.com>
4091 Yao Qi <yao@codesourcery.com>
4092
4093 * tracepoint.c (tracepoint_list, stepping_list): Remove.
4094 (clear_collection_list): Free fields 'aexpre_list' and 'list'
4095 in collection_list.
4096 (do_clear_collection_list, init_collection_list): New.
4097 (encode_actions): Add local variables 'tracepoint_list' and
4098 'stepping_list'. Call init_collection_list and make cleanup
4099 which calls do_clear_collection_list. Don't call
4100 clear_collection_list.
4101 (_initialize_tracepoint): Delete references to
4102 'tracepoint_list' and 'stepping_list'.
4103
4104 2013-06-25 Tom Tromey <tromey@redhat.com>
4105
4106 * common/create-version.sh (date): Use "$", not "$$" in sed
4107 expression.
4108
4109 2013-06-25 Kevin Buettner <kevinb@redhat.com>
4110
4111 * NEWS (New targets): Add entry for TI MSP430.
4112
4113 2013-06-25 Yao Qi <yao@codesourcery.com>
4114
4115 * remote.c (remote_start_remote): Move code to upload tsv
4116 earlier.
4117
4118 2013-06-25 Yao Qi <yao@codesourcery.com>
4119 Hui Zhu <hui@codesourcery.com>
4120 Pedro Alves <palves@redhat.com>
4121
4122 PR breakpoints/15075
4123 PR breakpoints/15434
4124 * breakpoint.c (bpstat_stop_status): Call
4125 b->ops->after_condition_true.
4126 (update_dprintf_command_list): Don't append "continue" command
4127 to the command list of dprintf breakpoint.
4128 (base_breakpoint_after_condition_true): New function.
4129 (base_breakpoint_ops): Add base_breakpoint_after_condition_true.
4130 (dprintf_after_condition_true): New function.
4131 (initialize_breakpoint_ops): Set dprintf_after_condition_true.
4132 * breakpoint.h (breakpoint_ops): Add after_condition_true.
4133
4134 2013-06-24 Kevin Buettner <kevinb@redhat.com>
4135
4136 * Makefile.in (ALL_TARGET_OBS): Add msp430-tdep.o.
4137 (ALLDEPFILES): Add msp430-tdep.c.
4138 * configure.tgt (msp430*-*-elf): New target.
4139 * msp430-tdep.c: New file.
4140
4141 2013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
4142
4143 * mips-tdep.c (mips_elf_make_msymbol_special): Handle MIPS16 and
4144 microMIPS synthetic symbols.
4145
4146 2013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
4147
4148 * objfiles.h (pc_in_section): New prototype.
4149 (in_plt_section): Remove name argument, replace prototype with
4150 static inline function.
4151 * mips-tdep.h: Include "objfiles.h".
4152 (in_mips_stubs_section): New function.
4153 * hppa-tdep.h (gdbarch_tdep): Remove name argument of
4154 in_solib_call_trampoline member.
4155 (hppa_in_solib_call_trampoline): Remove name argument.
4156 * objfiles.c (pc_in_section): New function.
4157 (in_plt_section): Remove function.
4158 * mips-linux-tdep.c: Include "objfiles.h".
4159 (mips_linux_in_dynsym_stub): Call in_mips_stubs_section. Remove
4160 name argument. Return 1 rather than the low 16-bit halfword of
4161 any instruction examined.
4162 (mips_linux_in_dynsym_resolve_code): Update
4163 mips_linux_in_dynsym_stub call accordingly.
4164 * mips-tdep.c (mips_stub_frame_sniffer): Use in_mips_stubs_section
4165 rather than an equivalent hand-coded sequence.
4166 * hppa-hpux-tdep.c (in_opd_section): Remove function.
4167 (hppa32_hpux_in_solib_call_trampoline): Remove name argument.
4168 (hppa64_hpux_in_solib_call_trampoline): Likewise.
4169 (hppa64_hpux_find_global_pointer): Use pc_in_section rather than
4170 in_opd_section.
4171 * hppa-tdep.c (hppa_stub_unwind_sniffer): Remove name argument
4172 on call to tdep->in_solib_call_trampoline.
4173 (hppa_in_solib_call_trampoline): Remove name argument, update
4174 according to in_plt_section change.
4175 (hppa_skip_trampoline_code): Update according to in_plt_section
4176 change.
4177 * aarch64-tdep.c (aarch64_stub_unwind_sniffer): Likewise.
4178 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code):
4179 Likewise.
4180 * arm-tdep.c (arm_stub_unwind_sniffer): Likewise.
4181 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
4182 * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise.
4183 * nios2-tdep.c (nios2_stub_frame_sniffer): Likewise.
4184 * nto-tdep.c (nto_relocate_section_addresses): Likewise.
4185 * s390-tdep.c (s390_stub_frame_sniffer): Likewise.
4186 * sh-tdep.c (sh_stub_unwind_sniffer): Likewise.
4187 * solib-dsbt.c (dsbt_in_dynsym_resolve_code): Likewise.
4188 * solib-frv.c (frv_in_dynsym_resolve_code): Likewise.
4189 * solib-svr4.c (svr4_in_dynsym_resolve_code): Likewise.
4190 * solib-target.c (solib_target_in_dynsym_resolve_code): Likewise.
4191 * sparc-tdep.c (sparc_analyze_prologue): Likewise.
4192 * tic6x-tdep.c (tic6x_stub_unwind_sniffer): Likewise.
4193
4194 2013-06-24 Joel Brobecker <brobecker@adacore.com>
4195
4196 * common/create-version.sh: Fix expansion of $host_alias
4197 and $target_alias in generation of HOST_NAME and TARGET_NAME
4198 (resp.).
4199
4200 2013-06-24 Tom Tromey <tromey@redhat.com>
4201
4202 * common/create-version.sh: New file.
4203 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
4204 create-version.sh.
4205 (HFILES_NO_SRCDIR): Use common/version.h.
4206 * version.in: Move to ...
4207 * common/version.in: ... here. Replace date with "DATE".
4208 * version.h: Move to ...
4209 * common/version.h: ... here.
4210
4211 2013-06-21 Joel Brobecker <brobecker@adacore.com>
4212
4213 * gdb/gnulib/Makefile.in: Update date in copyright header.
4214 * gdb/gnulib/configure.ac: Ditto.
4215 * gdb/gnulib/update-gnulib.sh: Ditto.
4216
4217 2013-06-21 Joel Brobecker <brobecker@adacore.com>
4218
4219 * copyright.py (EXCLUDE_LIST): Replace "gdb/gnulib" by
4220 "gdb/gnulib/import".
4221
4222 2013-06-21 Will Newton <will.newton@linaro.org>
4223
4224 * doublest.c (ldfrexp): Remove function.
4225 (convert_doublest_to_floatformat): Call frexpl instead of
4226 ldfrexp.
4227
4228 2013-06-21 Will Newton <will.newton@linaro.org>
4229
4230 * gnulib/update-gnulib.sh(IMPORTED_GNULIB_MODULES): Add frexpl.
4231 * gnulib/aclocal.m4: Regenerate.
4232 * gnulib/config.in: Regenerate.
4233 * gnulib/configure: Regenerate.
4234 * gnulib/import/Makefile.am: Update.
4235 * gnulib/import/Makefile.in: Update.
4236 * gnulib/import/m4/gnulib-cache.m4: Update.
4237 * gnulib/import/m4/gnulib-comp.m4: Update.
4238 * gnulib/import/float+.h: Import.
4239 * gnulib/import/float.c: Import.
4240 * gnulib/import/float.in.h: Import.
4241 * gnulib/import/fpucw.h: Import.
4242 * gnulib/import/frexp.c: Import.
4243 * gnulib/import/frexpl.c: Import.
4244 * gnulib/import/isnan.c: Import.
4245 * gnulib/import/isnand-nolibm.h: Import.
4246 * gnulib/import/isnand.c: Import.
4247 * gnulib/import/isnanl-nolibm.h: Import.
4248 * gnulib/import/isnanl.c: Import.
4249 * gnulib/import/itold.c: Import.
4250 * gnulib/import/m4/exponentd.m4: Import.
4251 * gnulib/import/m4/exponentl.m4: Import.
4252 * gnulib/import/m4/float_h.m4: Import.
4253 * gnulib/import/m4/fpieee.m4: Import.
4254 * gnulib/import/m4/frexp.m4: Import.
4255 * gnulib/import/m4/frexpl.m4: Import.
4256 * gnulib/import/m4/isnand.m4: Import.
4257 * gnulib/import/m4/isnanl.m4: Import.
4258 * gnulib/import/m4/math_h.m4: Import.
4259 * gnulib/import/math.c: Import.
4260 * gnulib/import/math.in.h: Import.
4261
4262 2013-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4263
4264 * common/linux-btrace.c (cpu_supports_btrace): Remove variable vendor,
4265 replace strcmp with signature_INTEL_ebx, signature_INTEL_ecx and
4266 signature_INTEL_edx comparisons.
4267
4268 2013-06-20 Doug Evans <dje@google.com>
4269
4270 symtab/15652
4271 * dwarf2read.c (try_open_dwop_file): New arg search_cwd.
4272 All callers updated.
4273 (open_dwp_file): If we can't find the dwp file, search the basename
4274 in debug-file-directory.
4275
4276 * dwarf2read.c (struct dwp_file): Fix comment.
4277 (open_and_init_dwp_file): Set dwp_file->name to bfd's file name.
4278
4279 * source.c (openp): Document OPF_TRY_CWD_FIRST+OPF_SEARCH_IN_PATH
4280 better.
4281
4282 2013-06-20 Yao Qi <yao@codesourcery.com>
4283
4284 * breakpoint.c (create_breakpoint): Fix code indentation.
4285
4286 2013-06-20 Yao Qi <yao@codesourcery.com>
4287
4288 * breakpoint.c (create_breakpoints_sal_default): Remove
4289 parameter 'lsal'. Update declaration.
4290 (bkpt_create_breakpoints_sal): Caller update.
4291 (tracepoint_create_breakpoints_sal): Likewise.
4292
4293 2013-06-20 Pedro Alves <pedro@codesourcery.com>
4294 Yao Qi <yao@codesourcery.com>
4295
4296 * NEWS: Mention the new option '--skip-unavailable' of command
4297 -data-list-register-values.
4298 * mi/mi-main.c (mi_cmd_data_list_register_values): Accept the
4299 --skip-unavailable option. Adjust to use output_register.
4300 (output_register): Add new 'skip_unavailable' parameter.
4301 Handle it.
4302
4303 2013-06-19 Mike Frysinger <vapier@gentoo.org>
4304
4305 * Makefile.in (HFILES_NO_SRCDIR): Add common/i386-cpuid.h and
4306 common/i386-gcc-cpuid.h.
4307 * common/i386-cpuid.h: New wrapper header around i386-gcc-cpuid.h.
4308 * common/i386-gcc-cpuid.h: Rename from testsuite/gdb.arch/i386-cpuid.h.
4309 Copy the latest version from upstream gcc.
4310 * common/linux-btrace.c: Include i386-cpuid.h.
4311 (intel_supports_btrace): Delete x86 ifdefs and replace inline asm with
4312 call to i386_cpuid.
4313 (cpu_supports_btrace): Likewise.
4314 * go32-nat.c: Include i386-cpuid.h.
4315 (go32_sysinfo): Add (disabled) calls to i386_cpuid with comments.
4316
4317 2013-06-19 Doug Evans <dje@google.com>
4318
4319 * symfile.c (symfile_bfd_open): Delete unnecessary declaration.
4320 (get_section_index): Ditto.
4321
4322 2013-06-19 Tom Tromey <tromey@redhat.com>
4323
4324 * breakpoint.c (_initialize_breakpoint): Remove trailing \n from
4325 "dprintf" help.
4326
4327 2013-06-18 Doug Evans <dje@google.com>
4328
4329 * dwarf2read.c (dw2_symtab_iter_next): Check value of cu_index
4330 before using it.
4331 (dw2_expand_symtabs_matching): Fix symbol kind validity check.
4332 Move test of cu_index closer to use. Print complaint if cu_index
4333 is bad.
4334
4335 2013-06-18 Joel Brobecker <brobecker@adacore.com>
4336
4337 * machoread.c (oso_vector): Delete this global.
4338 (macho_register_oso): Add new parameter "oso_vector_ptr".
4339 Use it instead of the "oso_vector" global.
4340 (macho_symtab_read, macho_symfile_read_all_oso): Likewise.
4341 (macho_symfile_read): Use a local oso_vector, to be free'ed
4342 at the end of this function, in place of the old "oso_vector"
4343 global. Update various function calls accordingly. Use one
4344 single cleanup chain for the entire function.
4345
4346 2013-06-18 Joel Brobecker <brobecker@adacore.com>
4347
4348 * dwarf2read.c (dwarf2_per_objfile_free): Replace uses of
4349 DWARF2_PER_OBJFILE by uses of DATA instead.
4350
4351 2013-06-18 Tom Tromey <tromey@redhat.com>
4352
4353 * break-catch-sig.c (signal_catchpoint_explains_signal): Add 'sig'
4354 argument.
4355 * breakpoint.c (bpstat_explains_signal): Add 'sig' argument.
4356 Special case signals other than GDB_SIGNAL_TRAP.
4357 (explains_signal_watchpoint): New function.
4358 (base_breakpoint_explains_signal): Add 'sig' argument.
4359 (initialize_breakpoint_ops): Set 'explains_signal' method for
4360 watchpoints.
4361 * breakpoint.h (struct breakpoint_ops) <explains_signal>: Add
4362 signal argument.
4363 (bpstat_explains_signal): Likewise.
4364 * infrun.c (handle_syscall_event, handle_inferior_event): Update.
4365
4366 2013-06-18 Tom Tromey <tromey@redhat.com>
4367
4368 * python/py-inferior.c (gdbpy_selected_inferior): Don't incref.
4369
4370 2013-06-18 Tom Tromey <tromey@redhat.com>
4371
4372 * python/python.c (finish_python_initialization): Decref
4373 'pythondir' on failure path as well.
4374
4375 2013-06-18 Tom Tromey <tromey@redhat.com>
4376
4377 PR symtab/15391:
4378 * dwarf2loc.c (read_pieced_value): Truncate this_size_bits
4379 after taking bits_to_skip into account. Sign extend byte_offset.
4380 * utils.h (gdb_sign_extend): Declare.
4381 * utils.c (gdb_sign_extend): New function.
4382
4383 2013-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4384
4385 * dwarf2read.c (write_psymtabs_to_index): Ignore NULL PSYMTAB.
4386
4387 2013-06-17 Pierre Muller <muller@sourceware.org>
4388
4389 * corelow.c (core_open): Print GDB signal name instead of target
4390 signal number.
4391
4392 2013-06-17 Mike Frysinger <vapier@gentoo.org>
4393
4394 * .gitignore: Add /gcore.
4395
4396 2013-06-13 Doug Evans <dje@google.com>
4397
4398 * dwarf2read.c (try_open_dwop_file): Work around behaviour of
4399 OPF_TRY_CWD_FIRST to not search path if the file contains a '/'.
4400
4401 2013-06-12 Phil Muldoon <pmuldoon@redhat.com>
4402
4403 * stack.c (backtrace_command_1): Fix indentation.
4404
4405 2013-06-11 Joel Brobecker <brobecker@adacore.com>
4406
4407 * window-nat.c (thread_rec): Add missing empty line after
4408 local variable declaration.
4409
4410 2013-06-11 Joel Brobecker <brobecker@adacore.com>
4411
4412 * windows-nat.c (thread_rec): Revert format used to print
4413 error code returned by SuspendThread from %d back to %u.
4414
4415 2013-06-11 Joel Brobecker <brobecker@adacore.com>
4416
4417 * windows-nat.c (windows_continue): Add "0x" prefix for thread
4418 ID in debug trace.
4419 (get_windows_debug_event): Likewise, for all debug traces.
4420
4421 2013-06-11 Joel Brobecker <brobecker@adacore.com>
4422
4423 * window-nat.c (thread_rec): Add thread ID in SuspendThread
4424 warning message.
4425
4426 2013-06-08 Pedro Alves <pedro@codesourcery.com>
4427 Yao Qi <yao@codesourcery.com>
4428
4429 * mi/mi-main.c (get_register): Remove declaration.
4430 (output_register): Declare.
4431 (mi_cmd_data_list_register_values): Remove local variable
4432 'tuple_cleanup'. Move some code into output_register.
4433 (get_register): Renamed to ...
4434 (output_register): ... this. Output the register's
4435 "number" ui_out tuple here.
4436
4437 2013-06-07 Pedro Alves <palves@redhat.com>
4438
4439 * darwin-nat.c: Fix formating in copyright header.
4440 * darwin-nat.h: Likewise.
4441 * gnu-nat.c: Likewise.
4442 * machoread.c: Likewise.
4443
4444 2013-06-07 Pedro Alves <palves@redhat.com>
4445
4446 PR server/14823
4447 * regformats/regdat.sh: Output #include tdesc.h. Make globals
4448 static. Output a global target description pointer.
4449 (init_registers_${name}): Adjust to initialize a
4450 target description structure.
4451
4452 2013-06-07 Will Newton <will.newton@linaro.org>
4453
4454 * printcmd.c (build_address_symbolic): Call
4455 gdbarch_addr_bits_remove for text minimal symbols.
4456
4457 2013-06-07 Will Newton <will.newton@linaro.org>
4458
4459 * MAINTAINERS: Add myself to Write After Approval.
4460
4461 2013-06-07 Yao Qi <yao@codesourcery.com>
4462
4463 * tracepoint.c (start_tracing): Move code to ...
4464 (trace_reset_local_state): ... here. New.
4465 (disconnect_tracing): Don't call set_current_traceframe,
4466 set_tracepoint_num, and set_traceframe_context. Call
4467 trace_reset_local_state instead.
4468 (tfile_close): Call trace_reset_local_state.
4469 * ctf.c (ctf_close): Likewise.
4470 * remote.c (remote_close): Likewise.
4471 * tracepoint.h (trace_reset_local_state): Declare.
4472
4473 2013-06-06 Doug Evans <dje@google.com>
4474
4475 * dwarf2read.c: Whitespace fixes for DWP file format documentation,
4476 and fix header docs.
4477
4478 2013-06-05 Doug Evans <dje@google.com>
4479 Keith Seitz <keiths@redhat.com>
4480
4481 PR 15519
4482 * cp-namespace.c (find_symbol_in_baseclass): Call
4483 cp_lookup_symbol_in_namespace instead of cp_lookup_symbol_namespace.
4484 Check result of call to lookup_symbol_static.
4485 Call lookup_static_symbol_aux unconditionally.
4486 Call check_typedef on base types before accessing them.
4487 (cp_lookup_nested_symbol): Fix comment.
4488
4489 2013-06-05 Luis Machado <lgustavo@codesourcery.com>
4490
4491 * gnu-v3-abi.c (gnuv3_skip_trampoline): Handle thunk
4492 minimal symbols pointing to function descriptors.
4493
4494 2013-06-05 Tom Tromey <tromey@redhat.com>
4495
4496 * python/py-utils.c (gdb_pymodule_addobject): Cast away const.
4497
4498 2013-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
4499 Pedro Alves <palves@redhat.com>
4500
4501 * remote.c (remote_wait_as): Restore signal handler before returning
4502 when GDB gets a notification.
4503
4504 2013-06-04 Gary Benson <gbenson@redhat.com>
4505
4506 PR 2328
4507 * breakpoint.h (handle_solib_event): Moved function declaration
4508 to solib.h.
4509 * breakpoint.c (handle_solib_event): Moved function to solib.c.
4510 (bpstat_stop_status): Pass new argument to handle_solib_event.
4511 * solib.h (update_solib_breakpoints): New function declaration.
4512 (handle_solib_event): Moved function declaration from
4513 breakpoint.h.
4514 * solib.c (update_solib_breakpoints): New function.
4515 (handle_solib_event): Moved function from breakpoint.c.
4516 Updated to call solib_ops->handle_event if not NULL.
4517 * solist.h (target_so_ops): New fields "update_breakpoints" and
4518 "handle_event".
4519 * infrun.c (set_stop_on_solib_events): New function.
4520 (_initialize_infrun): Use the above for "set
4521 stop-on-solib-events".
4522 (handle_inferior_event): Pass new argument to handle_solib_event.
4523 * solib-svr4.c (probe.h): New include.
4524 (svr4_free_library_list): New forward declaration.
4525 (probe_action): New enum.
4526 (probe_info): New struct.
4527 (probe_info): New static variable.
4528 (NUM_PROBES): New definition.
4529 (svr4_info): New fields "using_xfer", "probes_table" and
4530 "solib_list".
4531 (free_probes_table): New function.
4532 (free_solib_list): New function.
4533 (svr4_pspace_data_cleanup): Free probes table and solib list.
4534 (svr4_copy_library_list): New function.
4535 (svr4_current_sos_via_xfer_libraries): New parameter "annex".
4536 (svr4_read_so_list): New parameter "prev_lm".
4537 (svr4_current_sos_direct): Renamed from "svr4_current_sos".
4538 (svr4_current_sos): New function.
4539 (probe_and_action): New struct.
4540 (hash_probe_and_action): New function.
4541 (equal_probe_and_action): Likewise.
4542 (register_solib_event_probe): Likewise.
4543 (solib_event_probe_at): Likewise.
4544 (solib_event_probe_action): Likewise.
4545 (solist_update_full): Likewise.
4546 (solist_update_incremental): Likewise.
4547 (disable_probes_interface_cleanup): Likewise.
4548 (svr4_handle_solib_event): Likewise.
4549 (svr4_update_solib_event_breakpoint): Likewise.
4550 (svr4_update_solib_event_breakpoints): Likewise.
4551 (svr4_create_solib_event_breakpoints): Likewise.
4552 (enable_break): Free probes table before creating breakpoints.
4553 Use svr4_create_solib_event_breakpoints to create breakpoints.
4554 (svr4_solib_create_inferior_hook): Free the solib list.
4555 (_initialize_svr4_solib): Initialise
4556 svr4_so_ops.handle_solib_event and svr4_so_ops.update_breakpoints.
4557
4558 2013-06-04 Gary Benson <gbenson@redhat.com>
4559
4560 * target.h (target_ops): New field
4561 "to_augmented_libraries_svr4_read".
4562 (target_augmented_libraries_svr4_read): New macro.
4563 * target.c (update_current_target): Handle
4564 to_augmented_libraries_svr4_read.
4565 * remote.c (remote_state): New field
4566 "augmented_libraries_svr4_read".
4567 (remote_augmented_libraries_svr4_read_feature): New function.
4568 (remote_protocol_features): Add entry for
4569 "augmented-libraries-svr4-read".
4570 (remote_augmented_libraries_svr4_read): New function.
4571 (init_remote_ops): Initialize
4572 remote_ops.to_augmented_libraries_svr4_read.
4573
4574 2013-06-04 Gary Benson <gbenson@redhat.com>
4575
4576 * NEWS: Update.
4577
4578 2013-06-04 Gary Benson <gbenson@redhat.com>
4579
4580 * objfiles.h (inhibit_section_map_updates): New function
4581 declaration.
4582 (resume_section_map_updates): Likewise.
4583 (resume_section_map_updates_cleanup): Likewise.
4584 * objfiles.c (objfile_pspace_info): Removed field
4585 "objfiles_changed_p". New fields "new_objfiles_available",
4586 "section_map_dirty" and "inhibit_updates".
4587 (allocate_objfile): Set new_objfiles_available.
4588 (free_objfile): Set section_map_dirty.
4589 (objfile_relocate1): Likewise.
4590 (in_plt_section): Likewise.
4591 (find_pc_section): Update the conditions under which the
4592 section map will be updated.
4593 (inhibit_section_map_updates): New function.
4594 (resume_section_map_updates): Likewise.
4595 (resume_section_map_updates_cleanup): Likewise.
4596
4597 2013-06-04 Gary Benson <gbenson@redhat.com>
4598
4599 * probe.h (get_probe_argument_count): New declaration.
4600 (evaluate_probe_argument): Likewise.
4601 * probe.c (get_probe_argument_count): New function.
4602 (evaluate_probe_argument): Likewise.
4603 (probe_safe_evaluate_at_pc): Use the above new functions.
4604
4605 2013-06-04 Alan Modra <amodra@gmail.com>
4606
4607 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
4608 * rs6000-tdep.c (read_insn): Add frame param, don't assume big-endian.
4609 (ppc_insns_match_pattern): Add frame param. Avoid multiple
4610 target mem reads on optional insns.
4611 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Update
4612 ppc_insns_match_pattern calls.
4613 * ppc64-tdep.c (ppc64_standard_linkage2, ppc64_standard_linkage3):
4614 Add match for power7 thread safety insns, and new order of
4615 std 2,40(1) insn. Correct code shown for _dl_runtime_resolve
4616 invocation in comment, and update rest of comment.
4617 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN,
4618 PPC64_STANDARD_LINKAGE3_LEN): Delete.
4619 (ppc64_standard_linkage2_target): Update insn offsets.
4620 (ppc64_skip_trampoline_code): Use a single insn buffer. Match newer
4621 stubs first. Update calls.
4622
4623 2013-06-04 Yao Qi <yao@codesourcery.com>
4624
4625 * solib.c (solib_find): Don't need dir separator if path has
4626 drive spec.
4627
4628 2013-06-03 Joel Brobecker <brobecker@adacore.com>
4629
4630 Revert (indirectly causes a SIGSEGV):
4631 * machoread.c (macho_symfile_read): Assign first cleanup to
4632 'back_to'.
4633
4634 2013-06-03 Yao Qi <yao@codesourcery.com>
4635
4636 * mi/mi-cmd-var.c (mi_no_values, mi_simple_values): Move to
4637 mi-parse.c. Make them static.
4638 (mi_all_values): Likewise.
4639 (mi_parse_values_option): Move to mi-parse.c. Rename it to
4640 mi_parse_print_values. Make it external.
4641 * mi/mi-cmds.h (mi_no_values, mi_simple_values, mi_all_values):
4642 Remove the declarations.
4643 * mi/mi-parse.c (mi_parse_print_values): Moved from mi-cmd-var.c.
4644 * mi/mi-parse.h (mi_parse_print_values): Declare.
4645 * mi/mi-cmd-stack.c: Include mi-parse.h.
4646 (parse_print_values): Remove
4647 (mi_cmd_stack_list_locals): Call mi_parse_print_values instead
4648 of parse_print_values.
4649 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Likewise.
4650
4651 2013-05-31 Pedro Alves <pedro@codesourcery.com>
4652 Yao Qi <yao@codesourcery.com>
4653
4654 * tracepoint.c (all_tracepoint_actions_and_cleanup): Declare.
4655 (encode_actions): Move code to ...
4656 (all_tracepoint_actions_and_cleanup): ... here. New.
4657 (trace_dump_command): Likewise.
4658
4659 2013-05-30 Tom Tromey <tromey@redhat.com>
4660
4661 * symmisc.c (maintenance_expand_symtabs): Call do_cleanups.
4662
4663 2013-05-30 Tom Tromey <tromey@redhat.com>
4664
4665 * xml-support.c (gdb_xml_create_parser_and_cleanup): Rename from
4666 gdb_xml_create_parser_and_cleanup_1. Return a cleanup. Remove
4667 'old_chain' argument. Add 'parser_result' argument.
4668 (gdb_xml_create_parser_and_cleanup): Remove old version.
4669 (gdb_xml_parse_quick): Update.
4670 (xml_process_xincludes): Update.
4671 * xml-support.h (gdb_xml_create_parser_and_cleanup): Don't
4672 declare.
4673
4674 2013-05-30 Tom Tromey <tromey@redhat.com>
4675
4676 * probe.c (collect_probes): Check arguments for NULL before
4677 calling compile_rx_or_error.
4678 * utils.c (compile_rx_or_error): Require 'rx' to be non-NULL.
4679 Remove NULL return.
4680
4681 2013-05-30 Tom Tromey <tromey@redhat.com>
4682
4683 * infrun.c (adjust_pc_after_break): Introduce an outer null
4684 cleanup.
4685
4686 2013-05-30 Tom Tromey <tromey@redhat.com>
4687
4688 * mi/mi-cmd-var.c (varobj_update_one): Add an outer null cleanup.
4689
4690 2013-05-30 Tom Tromey <tromey@redhat.com>
4691
4692 * cli/cli-script.c (read_command_lines_1): Use a null cleanup
4693 for 'old_chain'. Do not check 'head' before processing
4694 cleanups.
4695
4696 2013-05-30 Tom Tromey <tromey@redhat.com>
4697
4698 * mi/mi-cmd-stack.c (list_arg_or_local): Remove
4699 "cleanup_tuple".
4700
4701 2013-05-30 Tom Tromey <tromey@redhat.com>
4702
4703 * dbxread.c (dbx_read_symtab): Declare 'back_to' in a more
4704 inner scope. Unconditionally call do_cleanups.
4705
4706 2013-05-30 Tom Tromey <tromey@redhat.com>
4707
4708 * source.c (find_and_open_source): Call do_cleanups.
4709
4710 2013-05-30 Tom Tromey <tromey@redhat.com>
4711
4712 * linux-thread-db.c (thread_db_load_search): Unconditionally
4713 call do_cleanups.
4714
4715 2013-05-30 Tom Tromey <tromey@redhat.com>
4716
4717 * solib-aix.c (solib_aix_bfd_open): Don't use a null cleanup
4718 for 'cleanup'; instead use a later one.
4719
4720 2013-05-30 Tom Tromey <tromey@redhat.com>
4721
4722 * python/py-breakpoint.c (bppy_get_commands): Use
4723 explicit, unconditional return.
4724 * python/py-frame.c (frapy_read_var): Likewise.
4725 * python/python.c (gdbpy_decode_line): Likewise.
4726
4727 2013-05-30 Tom Tromey <tromey@redhat.com>
4728
4729 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Call
4730 do_cleanups on all return paths.
4731
4732 2013-05-30 Tom Tromey <tromey@redhat.com>
4733
4734 * top.c (execute_command): Discard 'cleanup_if_error' cleanups.
4735
4736 2013-05-30 Tom Tromey <tromey@redhat.com>
4737
4738 * stabsread.c (read_struct_type): Call do_cleanups along
4739 all return paths.
4740
4741 2013-05-30 Maciej W. Rozycki <macro@codesourcery.com>
4742
4743 * mips-linux-tdep.c: Adjust formatting throughout.
4744
4745 2013-05-30 Tom Tromey <tromey@redhat.com>
4746
4747 * mipsread.c (read_alphacoff_dynamic_symtab): Call do_cleanups
4748 along all return paths.
4749
4750 2013-05-30 Tom Tromey <tromey@redhat.com>
4751
4752 * symfile.c (find_separate_debug_file): Call do_cleanups
4753 along all return paths.
4754
4755 2013-05-30 Tom Tromey <tromey@redhat.com>
4756
4757 * symtab.c (search_symbols): Introduce a null cleanup for
4758 'retval_chain'.
4759
4760 2013-05-30 Tom Tromey <tromey@redhat.com>
4761
4762 * python/py-value.c (valpy_binop): Call do_cleanups before
4763 exiting loop.
4764
4765 2013-05-30 Tom Tromey <tromey@redhat.com>
4766
4767 * python/py-prettyprint.c (print_children): Remove extra
4768 do_cleanups call.
4769
4770 2013-05-30 Tom Tromey <tromey@redhat.com>
4771
4772 * python/py-frame.c (frapy_read_var): Call do_cleanups along
4773 all return paths.
4774
4775 2013-05-30 Tom Tromey <tromey@redhat.com>
4776
4777 * python/py-breakpoint.c (bppy_get_commands): Call do_cleanups
4778 along all return paths.
4779
4780 2013-05-30 Tom Tromey <tromey@redhat.com>
4781
4782 * cli/cli-logging.c (set_logging_redirect): Unconditionally
4783 call do_cleanups.
4784
4785 2013-05-30 Tom Tromey <tromey@redhat.com>
4786
4787 * varobj.c (c_value_of_root): Call do_cleanups along all
4788 return paths.
4789
4790 2013-05-30 Tom Tromey <tromey@redhat.com>
4791
4792 * tracepoint.c (trace_dump_command): Unconditionally call
4793 do_cleanups.
4794
4795 2013-05-30 Tom Tromey <tromey@redhat.com>
4796
4797 * breakpoint.c (output_thread_groups, parse_cmd_to_aexpr): Call
4798 do_cleanups earlier.
4799
4800 2013-05-30 Tom Tromey <tromey@redhat.com>
4801
4802 * machoread.c (macho_symfile_read): Assign first cleanup to
4803 'back_to'.
4804
4805 2013-05-30 Tom Tromey <tromey@redhat.com>
4806
4807 * m32r-rom.c (m32r_load): Call do_cleanups at all returns.
4808
4809 2013-05-30 Tom Tromey <tromey@redhat.com>
4810
4811 * mi/mi-main.c (list_available_thread_groups): Call do_cleanups.
4812
4813 2013-05-30 Tom Tromey <tromey@redhat.com>
4814
4815 * inf-ptrace.c (inf_ptrace_create_inferior): Unconditionally
4816 call discard_cleanups.
4817 (inf_ptrace_attach): Likewise.
4818
4819 2013-05-30 Tom Tromey <tromey@redhat.com>
4820
4821 * remote-mips.c (mips_exit_debug): Call do_cleanups on all
4822 return paths.
4823 (mips_initialize): Likewise.
4824 (common_open): Call do_cleanups.
4825
4826 2013-05-30 Tom Tromey <tromey@redhat.com>
4827
4828 * utils.c (internal_vproblem): Call do_cleanups.
4829
4830 2013-05-30 Tom Tromey <tromey@redhat.com>
4831
4832 * linespec.c (find_linespec_symbols): Don't reassign to 'cleanup'.
4833
4834 2013-05-30 Tom Tromey <tromey@redhat.com>
4835
4836 * cli/cli-script.c (setup_user_args): Don't return after error.
4837
4838 2013-05-30 Tom Tromey <tromey@redhat.com>
4839
4840 * somread.c (som_symtab_read): Call do_cleanups.
4841
4842 2013-05-30 Tom Tromey <tromey@redhat.com>
4843
4844 * printcmd.c (print_command_1): Unconditionally call do_cleanups.
4845
4846 2013-05-30 Tom Tromey <tromey@redhat.com>
4847
4848 * cli/cli-cmds.c (cd_command, alias_command): Call do_cleanups.
4849 * cli/cli-dump.c (restore_binary_file): Call do_cleanups.
4850 * interps.c (interpreter_exec_cmd): Call do_cleanups.
4851 * source.c (show_substitute_path_command): Call do_cleanups.
4852 (unset_substitute_path_command, set_substitute_path_command):
4853 Likewise.
4854 * symfile.c (load_command): Call do_cleanups.
4855
4856 2013-05-30 Tom Tromey <tromey@redhat.com>
4857
4858 * contrib/cleanup_check.py: New file.
4859 * contrib/gcc-with-excheck: Add option parsing.
4860
4861 2013-05-30 Joel Brobecker <brobecker@adacore.com>
4862
4863 * windows-nat.c (windows_delete_thread): Add missing space
4864 in cast expression.
4865
4866 2013-05-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
4867
4868 * inferior.c (top level): Include tilde.h.
4869 (add_inferior_command): Call tilde_expand on the value of 'exec'
4870 argument.
4871
4872 2013-05-30 Pedro Alves <pedro@codesourcery.com>
4873 Yao Qi <yao@codesourcery.com>
4874
4875 * tracepoint.c (encode_actions_1): Remove parameter 't'.
4876 Caller update.
4877 (encode_actions): Likewise.
4878 * remote.c (remote_download_tracepoint): Caller update.
4879 * tracepoint.h (encode_actions): Update declaration.
4880
4881 2013-05-30 Pedro Alves <palves@redhat.com>
4882
4883 * python/python-internal.h (gdb_Py_DECREF): Cast OP to PyObject
4884 pointer.
4885
4886 2013-05-30 Yao Qi <yao@codesourcery.com>
4887
4888 * remote.c (remote_check_symbols): Remove unused parameter
4889 'objfile'.
4890 Declaration update.
4891 (remote_start_remote, remote_new_objfile): Caller update.
4892
4893 2013-05-30 Yao Qi <yao@codesourcery.com>
4894
4895 * mi/mi-cmds.c (mi_cmds): Define MI command
4896 '-exec-arguments' by macro DEF_MI_CMD_CLI_1 instead of
4897 DEF_MI_CMD_CLI.
4898
4899 2013-05-29 Pedro Alves <palves@redhat.com>
4900
4901 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint)
4902 (remote_insert_watchpoint, remote_remove_watchpoint)
4903 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
4904 (remote_verify_memory, compare_sections_command)
4905 (remote_search_memory): Set the general process/thread on the
4906 remote side.
4907
4908 2013-05-29 Pedro Alves <palves@redhat.com>
4909
4910 * aarch64-tdep.c: Don't include "features/aarch64-without-fpu.c".
4911 (_initialize_aarch64_tdep): Don't call
4912 initialize_tdesc_aarch64_without_fpu.
4913 * features/Makefile (WHICH): Remove reference to
4914 aarch64-without-fpu.
4915 * features/aarch64-without-fpu.c: Delete file.
4916 * regformats/aarch64-without-fpu.dat: Delete file.
4917
4918 2013-05-28 Yao Qi <yao@codesourcery.com>
4919
4920 * tracepoint.c (stringify_collection_list): Remove parameter
4921 'string'.
4922 (encode_actions): Caller update. Remove local variables.
4923
4924 2013-05-24 Yao Qi <yao@codesourcery.com>
4925
4926 * tracepoint.c (TFILE_PID): Remove.
4927 (tfile_open): Don't add thread and inferior.
4928 (tfile_close): Don't set 'inferior_ptid'. Don't call
4929 exit_inferior_silent.
4930 (tfile_thread_alive): Remove.
4931 (init_tfile_ops): Don't set field 'to_thread_alive' of
4932 tfile_ops.
4933
4934 2013-05-23 Doug Evans <dje@google.com>
4935
4936 * contrib/cc-with-tweaks.sh (-p): Handle no dwo files.
4937
4938 2013-05-23 Pedro Alves <palves@redhat.com>
4939
4940 * common/filestuff.c [USE_WIN32API]: Define HAVE_SOCKETS.
4941 [HAVE_SYS_SOCKET_H]: Define HAVE_SOCKETS.
4942 (socket_mark_cloexec, gdb_socketpair_cloexec, gdb_socket_cloexec):
4943 Only define if HAVE_SOCKETS is defined.
4944 * configure.ac: Check for sys/socket.h.
4945 * config.in, configure: Regenerate.
4946
4947 2013-05-23 Pedro Alves <palves@redhat.com>
4948
4949 * dwarf2read.c (create_dwp_hash_table, create_dwo_in_dwp)
4950 (open_and_init_dwp_file): Use %s/pulongest instead of %u for
4951 printing uint32_t variables.
4952
4953 2013-05-23 Pedro Alves <palves@redhat.com>
4954
4955 * NEWS: Mention GDBserver range stepping support.
4956
4957 2013-05-23 Yao Qi <yao@codesourcery.com>
4958 Pedro Alves <palves@redhat.com>
4959
4960 * gdbthread.h (struct thread_control_state) <may_range_step>: New
4961 field.
4962 * infcmd.c (step_once, until_next_command): Enable range stepping.
4963 * infrun.c (displaced_step_prepare): Disable range stepping.
4964 (resume): Disable range stepping if stepping over a breakpoint or
4965 we have software watchpoints. If range stepping is enabled,
4966 assert the thread is in the stepping range.
4967 (clear_proceed_status_thread): Clear may_range_step.
4968 (handle_inferior_event): Disable range stepping as soon as we know
4969 the thread that hit the event. Re-enable it whenever we're going
4970 to step with a step range.
4971 * remote.c (struct vCont_action_support) <r>: New field.
4972 (use_range_stepping): New global.
4973 (remote_vcont_probe): Handle 'r' action.
4974 (append_resumption): Append an 'r' action if the thread may range
4975 step.
4976 (show_range_stepping): New function.
4977 (set_range_stepping): New function.
4978 (_initialize_remote): Call add_setshow_boolean_cmd to register the
4979 'set range-stepping' and 'show range-stepping' commands.
4980 * NEWS: Mention range stepping, the new vCont;r action, and the
4981 new "set/show range-stepping" commands.
4982
4983 2013-05-23 Yao Qi <yao@codesourcery.com>
4984 Pedro Alves <palves@redhat.com>
4985
4986 * remote.c (struct vCont_action_support): New struct.
4987 (struct remote_state) <support_vCont_t>: Remove field.
4988 <vCont_actions_support>: New field.
4989 (remote_vcont_probe, remote_stop_ns): Update.
4990
4991 2013-05-23 Yao Qi <yao@codesourcery.com>
4992 Pedro Alves <palves@redhat.com>
4993
4994 * gdbthread.h (pc_in_thread_step_range): New declaration.
4995 * thread.c (pc_in_thread_step_range): New function.
4996 * infrun.c (handle_inferior_event): Use it.
4997
4998 2013-05-23 Joel Brobecker <brobecker@adacore.com>
4999
5000 * mi/mi-cmd-break.c (mi_argv_to_format): Use xsnprintf instead
5001 of sprintf.
5002
5003 2013-05-22 Keith Seitz <keiths@redhat.com>
5004
5005 * ada-lang.c (is_known_support_routine): Add explicit free of
5006 'func_name' from find_frame_funname.
5007 (ada_unhandled_exception_name_addr_from_raise): Add cleanups
5008 for func_name from find_frame_funname.
5009 * python/py-frame.c (frapy_name): Add explicit free of
5010 'name' from find_frame_funname.
5011 * stack.c (find_frame_funname): Add comment explaining that
5012 funcp must be freed by the caller.
5013 Return copy of symbol names instead of pointers.
5014 (print_frame): Add a cleanup for 'funname' from
5015 find_frame_funname.
5016 * stack.h (find_frame_funname): Remove "const" from
5017 'funname' parameter.
5018
5019 2013-05-22 Tom Tromey <tromey@redhat.com>
5020
5021 PR c++/15401:
5022 * c-valprint.c (c_value_print): Use value_addr for
5023 references. Convert back to reference type with value_ref.
5024
5025 2013-05-22 Eli Zaretskii <eliz@gnu.org>
5026
5027 * windows-nat.c (handle_unload_dll): Don't call solib_add for the
5028 unloaded DLL, it will be done by handle_solib_event. See
5029 http://sourceware.org/ml/gdb-patches/2013-05/msg00713.html for the
5030 details.
5031
5032 2013-05-22 Phil Muldoon <pmuldoon@redhat.com>
5033
5034 * ui-out.c: Create typedef ui_out_level_p and define vector
5035 operations for that type.
5036 (struct ui_out): Use a vector instead of an array.
5037 (current_level): Return level from a vector.
5038 (push_level): Create a level in a vector.
5039 (pop_level): Delete a level in a vector.
5040 (ui_out_new): Create initial level zero level, and store in a
5041 vector.
5042 (ui_out_destroy): Add vector cleanup.
5043
5044 2013-05-22 Pedro Alves <palves@redhat.com>
5045
5046 * python/python-internal.h (gdb_Py_DECREF): Tag with
5047 "ARI: editCase function".
5048
5049 2013-05-21 Paul Pluzhnikov <ppluzhnikov@google.com>
5050
5051 * solib-svr4.c (svr4_free_so): Protect against NULL dereference.
5052
5053 2013-05-21 Pedro Alves <palves@redhat.com>
5054
5055 * python/py-prettyprint.c (apply_val_pretty_printer): Check
5056 whether PRINTER is NULL before installing a Py_DECREF cleanup.
5057 * python/py-utils.c (py_decref): Don't check for NULL before
5058 calling Py_DECREF.
5059
5060 2013-05-21 Pedro Alves <palves@redhat.com>
5061
5062 * python/py-utils.c (py_decref): Remove extra braces.
5063 (gdb_pymodule_addobject): Remove extra braces.
5064 * python-internal.h (gdb_Py_DECREF): New static inline function.
5065 (Py_DECREF): Redefine as calling gdb_Py_DECREF.
5066
5067 2013-05-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5068
5069 * breakpoints.c (detach_breakpoints): Do not
5070 detach breakpoints locations with loc_type bp_loc_other.
5071
5072 2013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5073
5074 Workaround Python 2.6.
5075 * python/py-utils.c (gdb_pymodule_addobject): Wrap Py_DECREF into
5076 a block.
5077
5078 2013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5079
5080 Code cleanup: constification.
5081 * solib.c (solib_ops): Make return type and ops variable type const.
5082 (set_solib_ops): Make the new_ops parameter and ops variable const.
5083 (solib_find, solib_map_sections, clear_so, free_so, update_solib_list)
5084 (solib_add, solib_keep_data_in_core, clear_solib)
5085 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
5086 (reload_shared_libraries, solib_global_lookup): Make the ops variable
5087 const.
5088 * solib.h (set_solib_ops): Make the new_ops parameter const.
5089
5090 2013-05-21 Joel Brobecker <brobecker@adacore.com>
5091
5092 * data-directory/Makefile.in (SYSTEM_GDBINIT_SRCDIR): New
5093 variable.
5094 (VPATH): Add SYSTEM_GDBINIT_SRCDIR.
5095 (SYSTEM_GDBINIT_DIR, SYSTEM_GDBINIT_INSTALL_DIR)
5096 (SYSTEM_GDBINIT_FILES): New variables.
5097 (all): Add stamp-system-gdbinit.
5098 (stamp-system-gdbinit): New rule.
5099 (clean-system-gdbinit, install-system-gdbinit)
5100 (uninstall-system-gdbinit): New rules. Make them .PHONY.
5101 (install-only): Add dependency on install-system-gdbinit.
5102 (uninstall): Add dependency on uninstall-system-gdbinit.
5103 (clean): Add dependency on clean-system-gdbinit.
5104 * system-gdbinit/elinos.py: New file.
5105 * system-gdbinit/wrs-linux.py: New file.
5106
5107 2013-05-21 Joel Brobecker <brobecker@adacore.com>
5108
5109 * ada-lang.c (old_renaming_is_invisible): Fix cleanup leak.
5110
5111 2013-05-21 Hui Zhu <hui@codesourcery.com>
5112
5113 * breakpoint.c (dprintf_breakpoint_ops): Remove its static.
5114 * breakpoint.h (dprintf_breakpoint_ops): Add extern.
5115 * mi/mi-cmd-break.c (ctype.h): New include.
5116 (gdb_obstack.h): New include.
5117 (mi_argv_to_format, mi_cmd_break_insert_1): New.
5118 (mi_cmd_break_insert): Call mi_cmd_break_insert_1.
5119 (mi_cmd_dprintf_insert): New.
5120 * mi/mi-cmds.c (mi_cmds): Add "dprintf-insert".
5121 * mi/mi-cmds.h (mi_cmd_dprintf_insert): New extern.
5122
5123 2013-05-20 Tom Tromey <tromey@redhat.com>
5124
5125 * python/py-prettyprint.c (search_pp_list): Decref 'attr'.
5126
5127 2013-05-20 Tom Tromey <tromey@redhat.com>
5128
5129 * python/py-value.c (valpy_get_dynamic_type): Simplify
5130 dynamic_type assignment. Use Py_XINCREF.
5131
5132 2013-05-20 Tom Tromey <tromey@redhat.com>
5133
5134 * python/py-type.c (typy_fields): Unconditionally decref 'r'.
5135
5136 2013-05-20 Tom Tromey <tromey@redhat.com>
5137
5138 * python/py-frame.c (frapy_older, frapy_newer, gdbpy_newest_frame)
5139 (gdbpy_selected_frame): Move object-construction code
5140 out of TRY_CATCH.
5141
5142 2013-05-20 Tom Tromey <tromey@redhat.com>
5143
5144 * python/py-arch.c (gdbpy_initialize_arch): Use
5145 gdb_pymodule_addobject.
5146 * python/py-block.c (gdbpy_initialize_blocks): Use
5147 gdb_pymodule_addobject.
5148 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Use
5149 gdb_pymodule_addobject.
5150 * python/py-cmd.c (gdbpy_initialize_breakpoints): Use
5151 gdb_pymodule_addobject.
5152 * python/py-event.c (gdbpy_initialize_event_generic): Use
5153 gdb_pymodule_addobject.
5154 * python/py-evtregistry.c (gdbpy_initialize_eventregistry): Use
5155 gdb_pymodule_addobject.
5156 * python/py-evts.c (add_new_registry): Use
5157 gdb_pymodule_addobject.
5158 (gdbpy_initialize_py_events): Likewise.
5159 * python/py-finishbreakpoint.c
5160 (gdbpy_initialize_finishbreakpoints): Use
5161 gdb_pymodule_addobject.
5162 * python/py-frame.c (gdbpy_initialize_frames): Use
5163 gdb_pymodule_addobject.
5164 * python/py-function.c (gdbpy_initialize_functions): Use
5165 gdb_pymodule_addobject.
5166 * python/py-inferior.c (gdbpy_initialize_inferior): Use
5167 gdb_pymodule_addobject.
5168 * python/py-infthread.c (gdbpy_initialize_thread): Use
5169 gdb_pymodule_addobject.
5170 * python/py-objfile.c (gdbpy_initialize_objfile): Use
5171 gdb_pymodule_addobject.
5172 * python/py-param.c (gdbpy_initialize_parameters): Use
5173 gdb_pymodule_addobject.
5174 * python/py-progspace.c (gdbpy_initialize_pspace): Use
5175 gdb_pymodule_addobject.
5176 * python/py-symbol.c (gdbpy_initialize_symbols): Use
5177 gdb_pymodule_addobject.
5178 * python/py-symtab.c (gdbpy_initialize_symtabs): Use
5179 gdb_pymodule_addobject.
5180 * python/py-type.c (gdbpy_initialize_types): Use
5181 gdb_pymodule_addobject.
5182 * python/py-utils.c (gdb_pymodule_addobject): New function.
5183 * python/py-value.c (gdbpy_initialize_values): Use
5184 gdb_pymodule_addobject.
5185 * python/python-internal.h (gdb_pymodule_addobject): Declare.
5186 * python/python.c (_initialize_python): Use
5187 gdb_pymodule_addobject.
5188
5189 2013-05-20 Tom Tromey <tromey@redhat.com>
5190
5191 * python/py-cmd.c (cmdpy_completer): Use explicit decref.
5192 * python/py-param.c (get_set_value, get_show_value): Use
5193 explicit decrefs.
5194 * python/python.c (start_type_printers, apply_type_printers):
5195 Use explicit decrefs.
5196
5197 2013-05-20 Tom Tromey <tromey@redhat.com>
5198
5199 * python/py-evts.c (gdbpy_initialize_py_events): Don't
5200 incref the module.
5201
5202 2013-05-20 Tom Tromey <tromey@redhat.com>
5203
5204 * python/python.c (gdbpy_run_events): Decref the result
5205 of PyObject_CallObject.
5206
5207 2013-05-20 Tom Tromey <tromey@redhat.com>
5208
5209 * python/py-symtab.c (set_sal): Use
5210 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION. Return -1 on error.
5211 (symtab_and_line_to_sal_object): Update.
5212
5213 2013-05-20 Tom Tromey <tromey@redhat.com>
5214
5215 * python/py-param.c (compute_enum_values): Decref 'item'.
5216
5217 2013-05-20 Tom Tromey <tromey@redhat.com>
5218
5219 * mi/mi-main.c: Include python-internal.h.
5220 (mi_cmd_list_features): Check gdb_python_initialized.
5221 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
5222 (python_inferior_exit, python_new_objfile, add_thread_object)
5223 (delete_thread_object, py_free_inferior): Check
5224 gdb_python_initialized.
5225 * python/py-prettyprint.c (apply_val_pretty_printer): Check
5226 gdb_python_initialized.
5227 * python/py-type.c (save_objfile_types): Check
5228 gdb_python_initialized.
5229 * python/python-internal.h (gdb_python_initialized): Declare.
5230 * python/python.c (ensure_python_env): Throw exception if
5231 Python not initialized.
5232 (before_prompt_hook, source_python_script_for_objfile)
5233 (start_type_printers, apply_type_printers,
5234 free_type_printers): Check gdb_python_initialized.
5235 * varobj.c (varobj_get_display_hint)
5236 (dynamic_varobj_has_child_method, update_dynamic_varobj_children)
5237 (install_new_value_visualizer, varobj_set_visualizer)
5238 (value_get_print_value): Check gdb_python_initialized.
5239
5240 2013-05-20 Tom Tromey <tromey@redhat.com>
5241
5242 * python/py-arch.c (gdbpy_initialize_arch): Return 'int'.
5243 Check errors.
5244 * python/py-auto-load.c (gdbpy_initialize_auto_load): Return 'int'.
5245 * python/py-block.c (gdbpy_initialize_blocks): Return 'int'.
5246 Check errors.
5247 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Return 'int'.
5248 Check errors.
5249 * python/py-cmd.c (gdbpy_initialize_commands): Return 'int'.
5250 Check errors.
5251 * python/py-event.c (gdbpy_initialize_event): Return 'int'.
5252 Check errors.
5253 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Change generated
5254 init function to return 'int'.
5255 * python/py-evtregistry.c (gdbpy_initialize_eventregistry):
5256 Return 'int'. Check errors.
5257 * python/py-evts.c (gdbpy_initialize_py_events): Return 'int'.
5258 Check errors.
5259 * python/py-finishbreakpoint.c (gdbpy_initialize_finishbreakpoints):
5260 Return 'int'. Check errors.
5261 * python/py-frame.c (gdbpy_initialize_frames): Return 'int'.
5262 Check errors.
5263 * python/py-function.c (gdbpy_initialize_functions): Return 'int'.
5264 Check errors.
5265 * python/py-gdb-readline.c (gdbpy_initialize_gdb_readline):
5266 Check errors.
5267 * python/py-inferior.c (gdbpy_initialize_inferior): Return 'int'.
5268 Check errors.
5269 * python/py-infthread.c (gdbpy_initialize_thread): Return 'int'.
5270 Check errors.
5271 * python/py-lazy-string.c (gdbpy_initialize_lazy_string): Return 'int'.
5272 Check errors.
5273 * python/py-objfile.c (gdbpy_initialize_objfile): Return 'int'.
5274 Check errors.
5275 * python/py-param.c (gdbpy_initialize_parameters): Return 'int'.
5276 Check errors.
5277 * python/py-progspace.c (gdbpy_initialize_pspace): Return 'int'.
5278 Check errors.
5279 * python/py-symbol.c (gdbpy_initialize_symbols): Return 'int'.
5280 Check errors.
5281 * python/py-symtab.c (gdbpy_initialize_symtabs): Return 'int'.
5282 Check errors.
5283 * python/py-type.c (gdbpy_initialize_types): Return 'int'.
5284 Check errors.
5285 * python/py-value.c (gdbpy_initialize_values): Return 'int'.
5286 Check errors.
5287 * python/python-internal.h (gdbpy_initialize_auto_load,
5288 gdbpy_initialize_values, gdbpy_initialize_frames,
5289 gdbpy_initialize_symtabs, gdbpy_initialize_commands,
5290 gdbpy_initialize_symbols, gdbpy_initialize_symtabs,
5291 gdbpy_initialize_blocks, gdbpy_initialize_types,
5292 gdbpy_initialize_functions, gdbpy_initialize_pspace,
5293 gdbpy_initialize_objfile, gdbpy_initialize_breakpoints,
5294 gdbpy_initialize_finishbreakpoints,
5295 gdbpy_initialize_lazy_string, gdbpy_initialize_parameters,
5296 gdbpy_initialize_thread, gdbpy_initialize_inferior,
5297 gdbpy_initialize_eventregistry, gdbpy_initialize_event,
5298 gdbpy_initialize_py_events, gdbpy_initialize_stop_event,
5299 gdbpy_initialize_signal_event,
5300 gdbpy_initialize_breakpoint_event,
5301 gdbpy_initialize_continue_event,
5302 gdbpy_initialize_exited_event, gdbpy_initialize_thread_event,
5303 gdbpy_initialize_new_objfile_event, gdbpy_initialize_arch):
5304 Update. Use CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
5305 * python/python.c (gdb_python_initialized): New global.
5306 (gdbpy_initialize_events): Return 'int'. Check errors.
5307 (_initialize_python): Check errors. Set
5308 gdb_python_initialized.
5309
5310 2013-05-20 Tom Tromey <tromey@redhat.com>
5311
5312 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope):
5313 Decref the reslut of PyObject_CallMethod.
5314
5315 2013-05-20 Tom Tromey <tromey@redhat.com>
5316
5317 * python/py-event.c (gdbpy_initialize_event_generic): Return
5318 early if PyType_Ready fails.
5319
5320 2013-05-20 Tom Tromey <tromey@redhat.com>
5321
5322 * python/py-type.c (make_fielditem): Add gdb_assert_not_reached
5323 as 'default' in the switch.
5324
5325 2013-05-20 Tom Tromey <tromey@redhat.com>
5326
5327 * python/py-inferior.c (gdbpy_inferiors): Update. Hoist
5328 get_addr_from_python calls out of TRY_CATCH.
5329 (infpy_write_memory, infpy_search_memory): Likewise.
5330 * python/py-utils.c (get_addr_from_python): Return negative
5331 value on error. Use TRY_CATCH.
5332 * python/python-internal.h (get_addr_from_python): Use
5333 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
5334
5335 2013-05-20 Tom Tromey <tromey@redhat.com>
5336
5337 * python/py-event.c (evpy_emit_event): Decref the
5338 result of PyObject_CallFunctionObjArgs.
5339
5340 2013-05-20 Tom Tromey <tromey@redhat.com>
5341
5342 * python/py-cmd.c (cmdpy_completer): Use iterator protocol.
5343 Correctly decref.
5344
5345 2013-05-20 Tom Tromey <tromey@redhat.com>
5346
5347 * python/py-cmd.c (cmdpy_init): Decref 'ds_obj'.
5348
5349 2013-05-20 Tom Tromey <tromey@redhat.com>
5350
5351 * python/py-event.h (gdbpy_initialize_event_generic): Use
5352 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
5353 * python/py-evts.c (add_new_registry): Use
5354 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
5355 * python/python-internal.h
5356 (CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION): New macro.
5357
5358 2013-05-20 Tom Tromey <tromey@redhat.com>
5359
5360 * python/py-arch.c (archpy_disassemble): Update.
5361 * python/py-type.c (typy_get_composite, typy_lookup_typename)
5362 (typy_lookup_type): Use GDB_PY_HANDLE_EXCEPTION.
5363 * python/py-utils.c (gdbpy_convert_exception): Return 'void'.
5364 * python/python-internal.h (CPYCHECKER_SETS_EXCEPTION): New
5365 macro.
5366 (GDB_PY_HANDLE_EXCEPTION): Update.
5367 (gdbpy_convert_exception): Update. Use CPYCHECKER_SETS_EXCEPTION.
5368
5369 2013-05-20 Tom Tromey <tromey@redhat.com>
5370
5371 * python/python-internal.h (events_object_type): Remove.
5372
5373 2013-05-20 Tom Tromey <tromey@redhat.com>
5374
5375 * python/py-event.h (evpy_emit_event): Use
5376 CPYCHECKER_STEALS_REFERENCE_TO_ARG.
5377 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
5378 New macro.
5379
5380 2013-05-20 Tom Tromey <tromey@redhat.com>
5381
5382 * py-evtregistry.c (create_event_object): Decref
5383 eventregistry_object if PyList_New fails.
5384
5385 2013-05-20 Tom Tromey <tromey@redhat.com>
5386
5387 * py-cmd.c (gdbpy_string_to_argv): Check result of
5388 PyList_New.
5389
5390 2013-05-20 Tom Tromey <tromey@redhat.com>
5391
5392 * python/python.c (before_prompt_hook): Add cleanup to
5393 decref 'hook'.
5394
5395 2013-05-20 Tom Tromey <tromey@redhat.com>
5396
5397 * python/py-function.c (fnpy_init): Decref result of
5398 PyObject_GetAttrString.
5399
5400 2013-05-20 Tom Tromey <tromey@redhat.com>
5401
5402 * python/py-threadevent.c (get_event_thread): Use
5403 CPYCHECKER_RETURNS_BORROWED_REF.
5404 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
5405 New define.
5406 (pspace_to_pspace_object, objfile_to_objfile_object)
5407 (find_thread_object): Use it.
5408
5409 2013-05-20 Tom Tromey <tromey@redhat.com>
5410
5411 * python/py-arch.c (arch_object_type): Use
5412 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5413 * python/py-block.c (block_syms_iterator_object_type):
5414 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5415 * python/py-bpevent.c (breakpoint_event_object_type):
5416 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5417 * python/py-cmd.c (cmdpy_object_type): Use
5418 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5419 * python/py-continueevent.c (continue_event_object_type):
5420 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5421 * python/py-event.h (GDBPY_NEW_EVENT_TYPE):
5422 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5423 * python/py-events.h (thread_event_object_type):
5424 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5425 * python/py-evtregistry.c (eventregistry_object_type): Use
5426 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5427 * python/py-exitedevent.c (exited_event_object_type):
5428 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5429 * python/py-finishbreakpoint.c (finish_breakpoint_object_type):
5430 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5431 * python/py-function.c (fnpy_object_type): Use
5432 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5433 * python/py-inferior.c (inferior_object_type, membuf_object_type):
5434 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5435 * python/py-infthread.c (thread_object_type): Use
5436 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5437 * python/py-lazy-string.c (lazy_string_object_type):
5438 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5439 * python/py-newobjfileevent.c (new_objfile_event_object_type):
5440 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5441 * python/py-objfile.c (objfile_object_type): Use
5442 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5443 * python/py-param.c (parmpy_object_type):
5444 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5445 * python/py-progspace.c (pspace_object_type):
5446 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5447 * python/py-signalevent.c (signal_event_object_type):
5448 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5449 * python/py-symtab.c (symtab_object_type, sal_object_type): Use
5450 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5451 * python/py-type.c (type_object_type, field_object_type)
5452 (type_iterator_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5453 * python/py-internal.h (CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF): New
5454 define.
5455 (value_object_type, block_object_type, symbol_object_type)
5456 (event_object_type, stop_event_object_type, breakpoint_object_type)
5457 (frame_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5458
5459 2013-05-20 Andreas Tobler <andreas@fgznet.ch>
5460
5461 * Makefile.in (ALL_TARGET_OBS): Add ppcfbsd-tdep.o.
5462 (ALLDEPFILES): Add ppcfbsd-nat.c and ppcfbsd-tdep.c.
5463
5464 2013-05-20 Doug Evans <dje@google.com>
5465
5466 When reading CU, stay in DWO. Be more tolerent of bad debug info.
5467 For Fission.
5468 * dwarf2read.c (struct dwarf2_per_cu_data): New member
5469 reading_dwo_directly.
5470 (struct signatured_type): New member dwo_unit.
5471 (struct die_reader_specs): New member comp_dir.
5472 (create_signatured_type_table_from_index): Use malloc for
5473 all_type_units instead of objfile's obstack.
5474 (create_all_type_units): Ditto.
5475 (fill_in_sig_entry_from_dwo_entry): New function.
5476 (add_type_unit): New function.
5477 (lookup_dwo_signatured_type): New function.
5478 (lookup_dwp_signatured_type): New function.
5479 (lookup_signatured_type): New arg cu. All callers updated.
5480 (init_cu_die_reader): Initialize comp_dir.
5481 (read_cutu_die_from_dwo): New arg stub_comp_dir. All callers updated.
5482 Change assert of matching type signatures to call error on mismatch.
5483 (lookup_dwo_unit): Add assert.
5484 (init_tu_and_read_dwo_dies): New function.
5485 (init_cutu_and_read_dies): Call it.
5486 (build_type_unit_groups): Handle case of no type unit groups created.
5487 (hash_dwo_file, eq_dwo_file): Handle missing comp_dir.
5488 (lookup_dwo_cutu): Tweak complaint.
5489 (dwarf2_free_abbrev_table): Check for NULL abbrev_table.
5490 (dwarf2_per_objfile_free): Free all_type_units.
5491
5492 2013-05-20 Joel Brobecker <brobecker@adacore.com>
5493
5494 * windows-nat.c (handle_unload_dll): Add missing empty line.
5495
5496 2013-05-20 Joel Brobecker <brobecker@adacore.com>
5497
5498 * dwarf2read.c (prototyped_function_p): New function.
5499 (read_subroutine_type): Use it.
5500
5501 2013-05-20 Joel Brobecker <brobecker@adacore.com>
5502
5503 * rs6000-aix-tdep.c: De-indent some example code provided
5504 as a comment.
5505
5506 2013-05-17 Edjunior Machado <emachado@linux.vnet.ibm.com>
5507
5508 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Check if the
5509 region is ok for a hardware watchpoint using the new ptrace interface
5510 on Power servers.
5511
5512 2013-05-17 Doug Evans <dje@google.com>
5513
5514 * NEWS: Mention new maintenance commands check-symtabs, and
5515 expand-symtabs, and renamed check-psymtabs.
5516 * psymtab.c (maintenance_check_psymtabs): Renamed from
5517 maintenance_check_symtabs. Only process already-expanded symbol
5518 tables.
5519 (_initialize_psymtab): Update.
5520 * symmisc.c (maintenance_check_symtabs): New function.
5521 (maintenance_expand_name_matcher): New function
5522 (maintenance_expand_file_matcher): New function
5523 (maintenance_expand_symtabs): New function.
5524 (_initialize_symmisc): Add "mt check-symtabs" and "mt expand-symtabs"
5525 commands.
5526
5527 2013-05-17 Tom Tromey <tromey@redhat.com>
5528
5529 * python/py-inferior.c (infpy_read_memory): Don't call
5530 PyErr_SetString if PyObject_New fails.
5531 * python/py-frame.c (frame_info_to_frame_object): Don't call
5532 PyErr_SetString if PyObject_New fails.
5533
5534 2013-05-17 Pavel Chupin <pavel.v.chupin@intel.com>
5535
5536 * acinclude.m4: Add check for dlopen in libdl.
5537 * configure.ac: Ditto.
5538 * configure: Regenerate.
5539
5540 2013-05-17 Phil Muldoon <pmuldoon@redhat.com>
5541
5542 * frame.c (frame_stash): Convert to htab.
5543 (frame_addr_hash): New function.
5544 (frame_addr_hash_eq): New function.
5545 (frame_stash_create): Convert function to create
5546 a hash table.
5547 (frame_stash_add): Convert function to add an entry to a hash
5548 table.
5549 (frame_stash_find): Convert function to search the hash table.
5550 (frame_stash_invalidate): Convert function to empty the hash
5551 table.
5552 (get_frame_id): Only add to stash if a frame_id is created.
5553 (_initialize_frame): Call frame_stash_create.
5554
5555 2013-05-16 Yue Lu <hacklu.newborn@gmail.com> (tiny change)
5556
5557 * configure.ac: Ensure MIG is available when building for GNU Hurd
5558 hosts.
5559 * configure: Regenerate.
5560
5561 2013-05-16 Joel Brobecker <brobecker@adacore.com>
5562
5563 * dwarf2read.c (set_cu_language): Add DW_LANG_UPC handling.
5564
5565 2013-05-16 Joel Brobecker <brobecker@adacore.com>
5566
5567 * ada-lang.c (ada_make_symbol_completion_list): Make sure
5568 all cleanups are done before returning from this function.
5569
5570 2013-05-15 Joel Brobecker <brobecker@adacore.com>
5571
5572 * utils.h: #include "exceptions.h".
5573 (enum errors): Remove partial declaration.
5574
5575 2013-05-15 Joel Brobecker <brobecker@adacore.com>
5576
5577 * gdbarch.sh (core_xfer_shared_libraries_aix): New method.
5578 * gdbarch.h, gdbarch.c: Regenerate.
5579 * corelow.c (core_xfer_partial): Add TARGET_OBJECT_LIBRARIES_AIX
5580 handling.
5581
5582 * rs6000-aix-tdep.h: New file.
5583 * Makefile.in (HFILES_NO_SRCDIR): Add rs6000-aix-tdep.h.
5584 * rs6000-aix-tdep.c: Include "rs6000-aix-tdep.h" and
5585 "xml-utils.h".
5586 (struct field_info, struct ld_info_desc): New types.
5587 (ld_info32_desc, ld_info64_desc): New static constants.
5588 (struct ld_info): New type.
5589 (rs6000_aix_extract_ld_info): New function.
5590 (rs6000_aix_shared_library_to_xml): Likewise.
5591 (rs6000_aix_ld_info_to_xml): Likewise.
5592 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
5593 (rs6000_aix_init_osabi): Add call to
5594 set_gdbarch_core_xfer_shared_libraries_aix.
5595 * rs6000-nat.c: Add "rs6000-aix-tdep.h" include.
5596 Remove "xml-utils.h" include.
5597 (LdInfo): Delete typedef.
5598 (ARCH64_DECL, LDI_FIELD, LDI_NEXT, LDI_FD, LDI_FILENAME):
5599 Delete macros.
5600 (rs6000_ptrace_ldinfo): Change return type to gdb_byte *.
5601 Adjust code accordingly.
5602 (rs6000_core_ldinfo): Delete, folded into
5603 rs6000_aix_core_xfer_shared_libraries_aix.
5604 (rs6000_xfer_shared_library): Delete.
5605 (rs6000_xfer_shared_libraries): Reimplement.
5606
5607 2013-05-15 Markus Metzger <markus.t.metzger@intel.com>
5608
5609 * record.c (record_goto_cmdlist): New.
5610 (cmd_record_goto): Split into this ...
5611 (cmd_record_goto_begin): ... this
5612 (cmd_record_goto_end): ... and this.
5613 (_initialize_record): Change "record goto" to prefix command.
5614 Add commands for "record goto begin" and "record goto end".
5615 Add an alias for "record goto start" to "record goto begin".
5616
5617 2013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
5618
5619 * linespec.c (convert_linespec_to_sals): New comment for
5620 SOURCE_FILENAME assignment.
5621
5622 2013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
5623
5624 * cleanups.c (restore_my_cleanups): Replace gdb_assert by
5625 internal_warning.
5626
5627 2013-05-14 Tom Tromey <tromey@redhat.com>
5628
5629 * eval.c (parse_and_eval_long): Make 'exp' const.
5630 * value.h (parse_and_eval_long): Update.
5631
5632 2013-05-14 Tom Tromey <tromey@redhat.com>
5633
5634 * ui-file.c (gdb_fopen): Make arguments const.
5635 * ui-file.h (gdb_fopen): Make arguments const.
5636
5637 2013-05-14 Tom Tromey <tromey@redhat.com>
5638
5639 * remote.c (remote_set_trace_notes): Make arguments const.
5640 * target.c (update_current_target): Update cast.
5641 * target.h (to_set_trace_notes): Make arguments const.
5642
5643 2013-05-14 Tom Tromey <tromey@redhat.com>
5644
5645 * go32-nat.c (go32_terminal_info): Make 'args' const.
5646 * inferior.h (child_terminal_info): Update.
5647 * inflow.c (child_terminal_info): Make 'args' const.
5648 * target.c (default_terminal_info): Make 'args' const.
5649 (debug_to_terminal_save_ours): Likewise.
5650 * target.h (struct target_ops) <to_terminal_info>: Make argument
5651 const.
5652
5653 2013-05-13 Tom Tromey <tromey@redhat.com>
5654
5655 * gcore.c (create_gcore_bfd): Make 'filename' const.
5656 * gcore.h (create_gcore_bfd): Make 'filename' const.
5657 * record-full.c (record_full_save): Make 'recfilename' const.
5658 * target.c (target_save_record): Make 'filename' const.
5659 * target.h (struct target_ops) <to_save_record>: Make 'filename'
5660 const.
5661 (target_save_record): Likewise.
5662
5663 2013-05-13 Tom Tromey <tromey@redhat.com>
5664
5665 PR gdb/15338:
5666 * dwarf2read.c (dwarf2_record_block_ranges): Ensure that the
5667 ranges section has been read.
5668
5669 2013-05-13 Tom Tromey <tromey@redhat.com>
5670
5671 PR exp/15364:
5672 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
5673 STRUCTOP_PTR>: Return a not_lval value for
5674 EVAL_AVOID_SIDE_EFFECTS.
5675 * opencl-lang.c (evaluate_subexp_opencl): Return a not_lval value
5676 for EVAL_AVOID_SIDE_EFFECTS.
5677
5678 2013-05-13 Joel Brobecker <brobecker@adacore.com>
5679
5680 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Convert
5681 floating point registers to register type before storing
5682 value.
5683 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call):
5684 Likewise.
5685
5686 2013-05-10 Joel Brobecker <brobecker@adacore.com>
5687 Tom Tromey <tromey@redhat.com>
5688
5689 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
5690 New functions.
5691 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
5692 Declare.
5693 * darwin-nat.c (darwin_pre_ptrace): Use mark_fd_no_cloexec.
5694 (darwin_ptrace_him): Use unmark_fd_no_cloexec.
5695 * inf-ttrace.c (do_cleanup_pfds): Use unmark_fd_no_cloexec.
5696 (inf_ttrace_prepare): Use mark_fd_no_cloexec.
5697
5698 2013-05-10 Freddie Chopin <freddie_chopin@op.pl>
5699 Tom Tromey <tromey@redhat.com>
5700
5701 PR build/15414:
5702 * configure: Rebuild.
5703 * configure.ac (build_warnings): Do not use -Wformat-nonliteral
5704 with -Wno-format.
5705
5706 2013-05-10 Pedro Alves <palves@redhat.com>
5707
5708 * remote.c (_initialize_remote): Fix spelling of
5709 qXfer:traceframe-info:read packet in packet config command.
5710
5711 2013-05-10 David Taylor <dtaylor@emc.com>
5712
5713 PR remote/15455
5714
5715 * remote.c (remote_trace_set_readonly_regions): Do not overwrite
5716 "QTro" at start of packet.
5717
5718 2013-05-10 Joel Brobecker <brobecker@adacore.com>
5719
5720 * solib-aix.c (solib_aix_relocate_section_addresses):
5721 For the .bss section action, apply the same offset as
5722 the .data section.
5723
5724 2013-05-10 Joel Brobecker <brobecker@adacore.com>
5725
5726 * solib-aix.c (solib_aix_relocate_section_addresses):
5727 Remove FIXME comment.
5728
5729 2013-05-10 Joel Brobecker <brobecker@adacore.com>
5730
5731 PR tdep/15420:
5732 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
5733 New functions, directly copied from sparc-sol-thread.c.
5734 * sparc-sol-thread.c: Delete.
5735 * configure.ac: Remove code handling sparc-solaris-thread.c.
5736 * configure: Regenerate.
5737
5738 2013-05-10 Phil Muldoon <pmuldoon@redhat.com>
5739
5740 * stack.c (backtrace_command_1): Add "no-filters", and Python frame
5741 filter logic.
5742 (backtrace_command): Add "no-filters" option parsing.
5743 (_initialize_stack): Alter help to reflect "no-filters" option.
5744 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-framefilter.o
5745 (SUBDIR_PYTHON_SRCS): Add py-framefilter.c
5746 (py-frame.o): Add target
5747 * data-directory/Makefile.in (PYTHON_DIR): Add Python frame
5748 filter files.
5749 * python/python.h: Add new frame filter constants, and flag enum.
5750 (apply_frame_filter): Add definition.
5751 * python/python.c (apply_frame_filter): New non-Python
5752 enabled function.
5753 * python/py-utils.c (py_xdecref): New function.
5754 (make_cleanup_py_xdecref): Ditto.
5755 * python/py-objfile.c: Declare frame_filters dictionary.
5756 (objfpy_dealloc): Add frame_filters dealloc.
5757 (objfpy_new): Initialize frame_filters attribute.
5758 (objfile_to_objfile_object): Ditto.
5759 (objfpy_get_frame_filters): New function.
5760 (objfpy_set_frame_filters): New function.
5761 * python/py-progspace.c: Declare frame_filters dictionary.
5762 (pspy_dealloc): Add frame_filters dealloc.
5763 (pspy_new): Initialize frame_filters attribute.
5764 (pspacee_to_pspace_object): Ditto.
5765 (pspy_get_frame_filters): New function.
5766 (pspy_set_frame_filters): New function.
5767 * python/py-framefilter.c: New file.
5768 * python/lib/gdb/command/frame_filters.py: New file.
5769 * python/lib/gdb/frames.py: New file.
5770 * python/lib/gdb/__init__.py: Initialize global frame_filters
5771 dictionary
5772 * python/lib/gdb/FrameDecorator.py: New file.
5773 * python/lib/gdb/FrameIterator.py: New file.
5774 * mi/mi-cmds.c (mi_cmds): Add frame filters command.
5775 * mi/mi-cmds.h: Declare.
5776 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Add
5777 --no-frame-filter logic, and Python frame filter logic.
5778 (stack_enable_frame_filters): New function.
5779 (parse_no_frame_option): Ditto.
5780 (mi_cmd_stack_list_frames): Add --no-frame-filter and Python frame
5781 filter logic.
5782 (mi_cmd_stack_list_locals): Ditto.
5783 (mi_cmd_stack_list_args): Ditto.
5784 (mi_cmd_stack_list_variables): Ditto.
5785 * NEWS: Add frame filter note.
5786
5787 2013-05-09 Doug Evans <dje@google.com>
5788
5789 * symfile.c (syms_from_objfile_1): Delete args offsets, num_offsets.
5790 All callers updated.
5791 (syms_from_objfile): Ditto. Make static.
5792 (symbol_file_add_with_addrs): Renamed from
5793 symbol_file_add_with_addrs_or_offsets. Delete args offsets,
5794 num_offsets. All callers updated.
5795 * symfile.h (syms_from_objfile): Delete.
5796
5797 * symfile.c (decrement_reading_symtab): Add assert.
5798 (increment_reading_symtab): Ditto.
5799
5800 2013-05-09 Joel Brobecker <brobecker@adacore.com>
5801
5802 * source.c (forward_search_command): Replace call to getc
5803 by call to fgetc.
5804 (reverse_search_command): Likewise.
5805
5806 2013-05-08 Doug Evans <dje@google.com>
5807
5808 * psymtab.c (expand_symtabs_matching_via_partial): Fix file name
5809 matching test.
5810
5811 2013-05-08 Joel Brobecker <brobecker@adacore.com>
5812
5813 * sol-thread.c (info_cb): Factorize the code a little.
5814
5815 2013-05-08 Joel Brobecker <brobecker@adacore.com>
5816
5817 * sol-thread.c (info_cb): Rework the output of the "maintenance
5818 info sol-threads" command a bit.
5819
5820 2013-05-08 Joel Brobecker <brobecker@adacore.com>
5821
5822 * sol-thread.c (info_cb) [ti.ti_state == TD_THR_SLEEP]:
5823 Replace ti.ti_startfunc by ti.ti_pc.
5824
5825 2013-05-08 Joel Brobecker <brobecker@adacore.com>
5826
5827 * solib-aix.c (solib_aix_free_library_list): New function
5828 for the case where HAVE_LIBEXPAT is not defined.
5829
5830 2013-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
5831
5832 PR breakpoints/15413:
5833 * breakpoint.c (condition_completer): Simplify the code to
5834 disconsider multiple locations of breakpoints when completing the
5835 "condition" command.
5836
5837 2013-05-07 Pierre Muller <muller@sourceware.org>
5838
5839 * common/linux-btrace.c: ARI fix: Include "gdb_wait.h"
5840 instead of <sys/wait.h>.
5841
5842 2013-05-07 Pierre Muller <muller@sourceware.org>
5843
5844 * nios2-tdep.c (nios2_dwarf_reg_to_regnum): ARI fix: remove
5845 trailing new line from warning message.
5846
5847 2013-05-07 Pierre Muller <muller@sourceware.org>
5848
5849 * contrib/ari/gdb_ari.sh (SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK)
5850 (PC_SOLIB): Change type from ari_deprecate to ari_regression.
5851
5852 2013-05-07 Joel Brobecker <brobecker@adacore.com>
5853
5854 * rs6000-nat.c (rs6000_core_ldinfo): Remove '\n' at end of
5855 error message (ARI fix).
5856
5857 2013-05-07 Joel Brobecker <brobecker@adacore.com>
5858
5859 * features/library-list-aix.dtd: Replace library-list by
5860 library-list-aix.
5861 * rs6000-nat.c: Replace library-list by library-list-aix
5862 throughout.
5863 * solib-aix.c: Likewise.
5864
5865 2013-05-07 Joel Brobecker <brobecker@adacore.com>
5866
5867 * target.h (enum target_object) [TARGET_OBJECT_LIBRARIES_AIX]:
5868 Renames TARGET_OBJECT_AIX_LIBRARIES.
5869 * rs6000-nat.c: Replace TARGET_OBJECT_AIX_LIBRARIES with
5870 TARGET_OBJECT_LIBRARIES_AIX throughout.
5871 * solib-aix.c: Likwise.
5872
5873 2013-05-07 Yao Qi <yao@codesourcery.com>
5874
5875 * solib-dsbt.c (struct dsbt_info) <enable_break2_done>: Remove.
5876 (get_dsbt_info, enable_break, dsbt_clear_solib): Update.
5877
5878 2013-05-07 Yao Qi <yao@codesourcery.com>
5879
5880 * solib-dsbt.c (enable_break): Declare.
5881 (dsbt_current_sos): Remove call to enable_break2.
5882 (enable_break2): Rename to enable_break. Set solib breakpoint
5883 on '_dl_debug_state'.
5884 (enable_break): Remove.
5885
5886 2013-05-07 Luis Machado <lgustavo@codesourcery.com>
5887
5888 * ppc-linux-nat.c (ppc_linux_new_thread): Clear the new thread's
5889 debug state prior to replicating existing hardware watchpoints or
5890 breakpoints.
5891
5892 2013-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
5893
5894 * gcore.c (gcore_create_callback): Ignore sections with
5895 separate_debug_objfile_backlink != NULL.
5896
5897 2013-05-06 Sandra Loosemore <sandra@codesourcery.com>
5898 Andrew Jenner <andrew@codesourcery.com>
5899 Chung-Lin Tang <cltang@codesourcery.com>
5900 Julian Brown <julian@codesourcery.com>
5901
5902 Based on the nios2-elf port from Altera Corporation.
5903
5904 * Makefile.in (ALL_TARGET_OBS): Add nios2-tdep.o and
5905 nios2-linux-tdep.o.
5906 (HFILES_NO_SRCDIR): Add nios2-tdep.h.
5907 (ALLDEPFILES): Add nios2-tdep.c and nios2-linux-tdep.c.
5908 * configure.tgt: Add nios2*-*-linux* and nios2*-*-* targets.
5909 * nios2-tdep.h: New.
5910 * nios2-tdep.c: New.
5911 * nios2-linux-tdep.c: New.
5912 * features/Makefile (WHICH): Add nios2-linux.
5913 (nios2-linux-expedite): Set.
5914 * features/nios2-cpu.xml: New.
5915 * features/nios2.xml: New.
5916 * features/nios2-linux.xml: New.
5917 * features/nios2.c: New (autogenerated).
5918 * features/nios2-linux.c: New (autogenerated).
5919 * regformats/nios2-linux.dat: New (autogenerated).
5920 * NEWS (Changes since GDB 7.6): Add new Nios II targets
5921 and commands.
5922
5923 2013-05-06 Doug Evans <dje@google.com>
5924
5925 * symfile.c: Whitespace cleanup.
5926
5927 * solist.h (struct target_so_ops): New member clear_so.
5928 * solib-svr4.c (svr4_clear_so): New function.
5929 (_initialize_svr4_solib): Set svr4_so_ops.clear_so.
5930 * solib.c (clear_so): Renamed from free_so_symbols.
5931 All callers updated. Call target clear_so if it exists.
5932
5933 2013-05-06 Tom Tromey <tromey@redhat.com>
5934
5935 * ada-lang.c (ada_value_primitive_packed_val): Don't
5936 call value_incref.
5937 * value.c (set_value_parent): Incref the new parent and decref
5938 the old parent.
5939 (value_copy, value_primitive_field): Use set_value_parent.
5940
5941 2013-05-06 Tom Tromey <tromey@redhat.com>
5942
5943 * dwarf2loc.c (invalid_synthetic_pointer): Move earlier.
5944 (indirect_pieced_value): Call dwarf2_fetch_constant_bytes
5945 if needed.
5946 * dwarf2loc.h (dwarf2_fetch_constant_bytes): Declare.
5947 * dwarf2read.c (write_constant_as_bytes)
5948 (dwarf2_fetch_constant_bytes): New functions.
5949
5950 2013-05-06 Tom Tromey <tromey@redhat.com>
5951
5952 * dwarf2read.c (dwarf2_const_value_data): Remove unused
5953 parameters.
5954 (dwarf2_const_value_attr): Update.
5955
5956 2013-05-06 Tom Tromey <tromey@redhat.com>
5957
5958 * somread.c (som_symfile_offsets): Add 'const' to addrs.
5959 * machoread.c (macho_symfile_offsets): Add 'const' to addrs.
5960 * xcoffread.c (xcoff_symfile_offsets): Add 'const' to addrs.
5961 Remove declaration.
5962
5963 2013-05-06 Tom Tromey <tromey@redhat.com>
5964
5965 * dwarf2read.c (dwarf2_const_value_attr): Use 'obstack', not
5966 objfile's obstack.
5967
5968 2013-05-06 Doug Evans <dje@google.com>
5969
5970 * dbxread.c (process_one_symbol): Constify section_offsets parameter.
5971 * stabsread.h (process_one_symbol): Update declaration.
5972 * dwarf2read.c (dw2_relocate): Constify new_offsets, delta parameters.
5973 * elfread.c (elf_symfile_relocate_probe): Ditto.
5974 * psymtab.c (relocate_psymtabs): Ditto.
5975 * objfiles.c (objfile_relocate1): Constify new_offsets parameter.
5976 (objfile_relocate): Ditto.
5977 * objfiles.h (objfile_relocate): Update declaration.
5978 * symfile.c (relative_addr_info_to_section_offsets): Constify
5979 addrs parameter.
5980 (default_symfile_offsets): Ditto.
5981 (syms_from_objfile_1): Constify offsets parameter.
5982 (syms_from_objfile): Ditto.
5983 (symbol_file_add_with_addrs_or_offsets): Ditto.
5984 (symfile_map_offsets_to_segments): Constify data parameter.
5985 * symfile.h (struct quick_symbol_functions): Constify new_offsets,
5986 delta parameters of member relocate.
5987 (struct sym_probe_fns): Constify new_offsets,
5988 delta parameters of member sym_relocate_probe.
5989 (struct sym_fns): Constify section_addr_info parameter of member
5990 sym_offsets.
5991 (relative_addr_info_to_section_offsets): Update declaration.
5992 (default_symfile_offsets): Ditto.
5993 (syms_from_objfile): Ditto.
5994 (symfile_map_offsets_to_segments): Ditto.
5995
5996 * symfile.c (syms_from_objfile_1): Use correct section count when
5997 objfile->sf == NULL.
5998
5999 2013-05-06 Mike Frysinger <vapier@gentoo.org>
6000
6001 * common/linux-btrace.c (intel_supports_btrace): Fix indentation.
6002
6003 2013-05-06 Doug Evans <dje@google.com>
6004
6005 * psympriv.h (struct partial_symtab): Augment comment for member
6006 section_offsets.
6007
6008 2013-05-06 Joel Brobecker <brobecker@adacore.com>
6009
6010 Reimplement shared library support on ppc-aix...
6011 * target.h (TARGET_OBJECT_AIX_LIBRARIES): New target_object enum.
6012 * features/library-list-aix.dtd: New file.
6013 * solib-aix.h, solib-aix.c: New file.
6014 * rs6000-aix-tdep.c: #include "solib.h" and "solib-aix.h".
6015 (rs6000_find_toc_address_hook): Delete.
6016 (rs6000_push_dummy_call): Rewrite code setting the TOC value.
6017 (rs6000_aix_init_osabi): Register solib_aix_so_ops.
6018 * rs6000-nat.c: Remove "xcoffsolib.h" include. Include
6019 "xml-utils.h".
6020 (map_vmap, vmap_exec, vmap_ldinfo, add_vmap, objfile_symbol_add)
6021 (vmap_symtab, fixup_breakpoints): Delete.
6022 (rs6000_xfer_shared_libraries): New function.
6023 (rs6000_xfer_partial): Add TARGET_OBJECT_AIX_LIBRARIES handling.
6024 (vmap_secs, bss_data_overlap, vmap_add_symbols): Delete.
6025 (xcoff_relocate_symtab, xcoff_relocate_core): Delete.
6026 (rs6000_ptrace_ldinfo, rs6000_core_ldinfo)
6027 (rs6000_xfer_shared_library): New function.
6028 (find_toc_address): Delete.
6029 (_initialize_rs6000_nat): Do not set rs6000_find_toc_address_hook.
6030 * rs6000-tdep.h (rs6000_find_toc_address_hook): Remove.
6031 * xcoffread.c (record_minimal_symbol): Reloate symbol address
6032 before creating minimal symbol. Adjust function description
6033 accordingly.
6034 (scan_xcoff_symtab): Replace call to
6035 prim_record_minimal_symbol_and_info by call to
6036 record_minimal_symbol.
6037 (xcoff_symfile_offsets): Reimplement mostly as a wrapper
6038 around default_symfile_offsets.
6039 * configure.tgt: Add solib-aix.o to gdb_target_obs for
6040 powerpc-aix targets.
6041 * config/rs6000/nm-rs6000.h: Delete.
6042 * config/powerpc/aix.mh (NAT_FILE): Delete.
6043 (NATDEPFILES): Remove xcoffsolib.o.
6044 * Makefile.in (XMLFILES): Add library-list-aix.dtd.
6045 (ALL_TARGET_OBS): Add solib-aix.o.
6046 (HFILES_NO_SRCDIR): Remove xcoffsolib.h and
6047 config/rs6000/nm-rs6000.h. Add solib-aix.h.
6048 (ALLDEPFILES): Add solib-aix.c. Remove xcoffsolib.c.
6049 * xcoffsolib.h, xcoffsolib.c: Delete.
6050
6051 * solib.c (reload_shared_libraries): Remove reference to
6052 SOLIB_CREATE_INFERIOR_HOOK.
6053 * breakpoint.c (handle_solib_event): Remove reference to SOLIB_ADD.
6054 (disable_breakpoints_in_shlibs): Remove reference to PC_SOLIB.
6055 (momentary_bkpt_re_set): Replace SOLIB_ADD by solib_add in
6056 comment.
6057 * corelow.c (deprecated_core_resize_section_table): Delete.
6058 * exec.c: Remove include of xcoffsolib.h".
6059 (map_vmap, vmap): Delete.
6060 (exec_close_1): Remove references to vmap.
6061 (exec_file_attach): Remove vmap handling code, and reference
6062 to DEPRECATED_IBM6000_TARGET.
6063 (bfdsec_to_vmap): Delete.
6064 (exec_files_info): Remove block of code handling VMAP.
6065 * infcmd.c (post_create_inferior): Remove reference to
6066 SOLIB_CREATE_INFERIOR_HOOK and SOLIB_ADD.
6067 * infrun.c (follow_exec): Remove reference to
6068 SOLIB_CREATE_INFERIOR_HOOK.
6069 * stack.c (print_frame): Remove reference to PC_SOLIB.
6070 * solib-dsbt.c (dsbt_current_sos): Adjust comment.
6071 (dsbt_relocate_main_executable): Likewise.
6072 * solib-frv.c (frv_current_sos): Likewise.
6073
6074 2013-05-06 Joel Brobecker <brobecker@adacore.com>
6075
6076 * sol-thread.c (rw_common): Cast BUF to "gdb_byte *" in calls
6077 to target_write_memory and target_read_memory.
6078
6079 2013-05-06 Joel Brobecker <brobecker@adacore.com>
6080
6081 * darwin-nat.c (darwin_setup_fake_stop_event): New function.
6082 (darwin_attach): Adjust using darwin_setup_fake_stop_event.
6083
6084 2013-05-06 Joel Brobecker <brobecker@adacore.com>
6085
6086 * darwin-nat.c: Replace all "%x" instances in format strings
6087 into "0x%x" throughout.
6088
6089 2013-05-06 Joel Brobecker <brobecker@adacore.com>
6090
6091 * darwin-nat.c (darwin_mourn_inferior): Replace call to
6092 gdb_assert by call to MACH_CHECK_ERROR.
6093 (darwin_attach_pid): Raise an error rather than a failed
6094 assertion when various system calls failed. Report a warning
6095 instead of raising a failed assertion when PREV_NOT is not NULL
6096 after call to mach_port_request_notification.
6097 (darwin_ptrace_me): Raise an error rather than a failed
6098 assertion when read returns nonzero.
6099
6100 2013-05-06 Joel Brobecker <brobecker@adacore.com>
6101
6102 * amd64-darwin-tdep.c: Remove #include "gdb_assert.h".
6103
6104 2013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
6105
6106 * cleanups.c (restore_my_cleanups): New gdb_assert for SENTINEL_CLEANUP.
6107
6108 2013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
6109
6110 * event-top.c (display_gdb_prompt): Call missing do_cleanups.
6111 * infcmd.c (get_return_value) <!stop_regs>: Do not overwrite CLEANUP.
6112 * symfile.c (symfile_bfd_open): New variable back_to. Do not leave
6113 a stale cleanup. Fix double free of NAME.
6114
6115 2013-05-04 Eli Zaretskii <eliz@gnu.org>
6116
6117 * windows-nat.c (windows_delete_thread): Accept an additional
6118 argument, the thread's exit code, and announce thread death when
6119 print_thread_events is non-zero and we are deleting a thread that
6120 is not the main thread.
6121 (get_windows_debug_event): Pass thread exit code to
6122 windows_delete_thread.
6123
6124 2013-05-03 Kevin Buettner <kevinb@redhat.com>
6125
6126 * v850-tdep.c (elf-bfd.h, elf/v850.h): Include.
6127 (R_149_REGNUM, E_NUM_OF_V850E2_REGS, E_SELID_1_R0_REGNUM)
6128 (E_SELID_1_R31_REGNUM, E_SELID_2_R0_REGNUM, E_SELID_2_R31_REGNUM)
6129 (E_SELID_3_R0_REGNUM, E_SELID_3_R31_REGNUM, E_SELID_4_R0_REGNUM)
6130 (E_SELID_4_R31_REGNUM, E_SELID_5_R0_REGNUM, E_SELID_5_R31_REGNUM)
6131 (E_SELID_6_R0_REGNUM, E_SELID_6_R31_REGNUM, E_SELID_7_R0_REGNUM, E_SELID_7_R31_REGNUM)
6132 (E_VR0_REGNUM, E_VR31_REGNUM, E_NUM_OF_V850E3V5_REGS): Define.
6133 (v850_abi, V850_ABI_GCC, V850_ABI_RH850): New enum and constants.
6134 (gdbarch_tdep): New struct.
6135 (v850e2_register_name): Use E_NUM_OF_V850E2_REGS instead of
6136 E_NUM_REGS.
6137 (v850e3v5_register_name): New function.
6138 (v850_register_type): v850e3v5 vector registers are 64-bits wide.
6139 (v850_use_struct_convention): Add `gdbarch' parameter. Add new
6140 code handling the struct return conventions for the RH850 ABI.
6141 Update all callers.
6142 (v850_eight_byte_align_p): New function.
6143 (v850_push_call_dummy): Push structs by value, not by reference
6144 for the RH850 ABI. Add support for eight byte alignment.
6145 (v850_dbtrap_breakpoint_from_pc): New function.
6146 (v850_gdbarch_init): Add ABI detection code. Register
6147 v850e3v5_register_name for the v850e3v5 architecture. Set the
6148 number of registers for v850e3v5. Register
6149 v850_dbtrap_breakpoint_from_pc as appropriate.
6150 (_initialize_gdbarch_init): Registration bfd_arch_v850_rh850.
6151
6152 2013-05-03 Doug Evans <dje@google.com>
6153
6154 * objfiles.c (objfile_relocate): Use gdb_bfd_count_sections instead
6155 of bfd_count_sections.
6156 * solib-target.c (solib_target_relocate_section_addresses): Ditto.
6157 * symfile.c (default_symfile_offsets): Ditto.
6158 (syms_from_objfile_1): Ditto. Make dummy addrs list an array of
6159 one entry, not bfd_count_sections entries.
6160
6161 2013-05-03 Kevin Buettner <kevinb@redhat.com>
6162
6163 * rl78-tdep.c (rl78_register_reggroup_p): Include SP in the
6164 `save' and `restore' register groups. Don't include SPL
6165 or SPH in these groups.
6166 (rl78_dwarf_reg_to_regnum): Adjust mapping for
6167 RL78_PC_REGNUM. Add mappings for RL78_PSW_REGNUM,
6168 RL78_ES_REGNUM, and RL78_CS_REGNUM.
6169 (rl78_gdbarch_init): Set `dwarf2_addr_size' to 4. Invoke
6170 dwarf2_append_unwinders().
6171
6172 2013-05-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6173
6174 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Do not
6175 ignore SIGINT and SIGTRAP in case these internal signals are
6176 caught explicitely.
6177
6178 2013-05-01 Joel Brobecker <brobecker@adacore.com>
6179
6180 * darwin-nat.c (darwin_read_write_inferior): Change types
6181 of parameters rdaddr and wraddr to "gdb_byte *". Change type
6182 of copy_count to "mach_msg_type_number_t".
6183 (darwin_read_dyld_info): Change type of parameter
6184 rdaddr to "gdb_byte *".
6185
6186 2013-05-01 Joel Brobecker <brobecker@adacore.com>
6187
6188 * solib-ia64-hpux.c (ia64_hpux_read_dynamic_info): Change cast
6189 of &info->load_map from "char *" to "gdb_byte *".
6190
6191 2013-05-01 Joel Brobecker <brobecker@adacore.com>
6192
6193 * ia64-tdep.c (ia64_access_fpreg): Change cast of val
6194 from "char *" to "gdb_byte *".
6195 (ia64_access_rse_fpreg, ia64_access_mem): Likewise.
6196
6197 2013-04-30 Doug Evans <dje@google.com>
6198
6199 * dwarf2read.c (lookup_dwo_unit): Return NULL if DWO not found.
6200 (init_cutu_and_read_dies): Flag a complaint, not error, for bad
6201 DWO stub. If DWO isn't found, just use stub.
6202 (lookup_dwo_cutu): Don't try DWO if there's a DWP file.
6203
6204 * dwarf2read.c (dw2_find_symbol_file): Initialize filename before
6205 calling init_cutu_and_read_dies.
6206
6207 2013-03-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
6208
6209 * target-descriptions.c (maint_print_c_tdesc_cmd):
6210 Add case to parse structures as register types and
6211 bitfields.
6212
6213 2013-04-30 Walfred Tedeschi <walfred.tedeschi@intel.com>
6214
6215 * MAINTAINERS (Write After Approval): Add myself to the list.
6216
6217 2013-04-30 Joel Brobecker <brobecker@adacore.com>
6218
6219 * sol-thread.c (rw_common): Change type of parameter "buf"
6220 to "gdb_byte *".
6221 (ps_pdwrite, ps_ptwrite): Cast parameter "buf" in call to
6222 rw_common to "gdb_byte *" instead of "char *".
6223
6224 2013-04-30 Joel Brobecker <brobecker@adacore.com>
6225
6226 * sol-thread.c (info_cb) [ti.ti_startfunc != 0]: Change type
6227 of local variable msym to const struct bound_minimal_symbol.
6228 Adjust use accordingly.
6229 [ti.ti_state == TD_THR_SLEEP]: Likewise.
6230
6231 2013-04-30 Samuel Thibault <samuel.thibault@gnu.org>
6232
6233 * i386gnu-nat.c (CREG_OFFSET): New macro.
6234 (creg_offset): New array.
6235 (CREG_ADDR): Use creg_offset instead of reg_offset.
6236
6237 2013-04-30 Joel Brobecker <brobecker@adacore.com>
6238
6239 * mep-tdep.c (mep_write_pc): Delete.
6240 (mep_gdbarch_init): Remove call to set_gdbarch_write_pc.
6241 Add call to set_gdbarch_pc_regnum.
6242
6243 2013-04-30 Joel Brobecker <brobecker@adacore.com>
6244
6245 * common/filestuff.c: Replace #include <dirent.h> by
6246 #include "gdb_dirent.h".
6247
6248 2013-04-30 Joel Brobecker <brobecker@adacore.com>
6249
6250 * common/filestuff.c: Replace #include <sys/stat.h> by
6251 #include "gdb_stat.h".
6252
6253 2013-04-29 Pierre Muller <muller@sourceware.org>
6254
6255 * dwarf2read.c (handle_DW_AT_stmt_list): Avoid ARI warning for
6256 editCase function rule.
6257 (get_DW_AT_signature_type): Likewise.
6258
6259 2013-04-29 Joel Brobecker <brobecker@adacore.com>
6260
6261 * m32r-tdep.c (m32r_write_pc): Delete.
6262 (m32r_gdbarch_init): Remove call to set_gdbarch_write_pc.
6263 Add call to set_gdbarch_pc_regnum.
6264
6265 2013-04-29 Pierre Muller <muller@sourceware.org>
6266
6267 * ./contrib/ari/gdb_ari.sh (editCase rule): Fix spelling error.
6268
6269 2013-04-29 Joel Brobecker <brobecker@adacore.com>
6270
6271 * dwarf2read.c (get_DW_AT_signature_type): Add ARI marker.
6272
6273 2013-04-28 Yao Qi <yao@codesourcery.com>
6274
6275 * solib-dsbt.c (fetch_loadmap): Re-indent.
6276 (displacement_from_map, enable_break2): Likewise.
6277 (dsbt_relocate_section_addresses): Likewise.
6278
6279 2013-04-26 Joel Brobecker <brobecker@adacore.com>
6280
6281 GDB 7.6 released.
6282
6283 2013-04-25 Andreas Kaufmann <Andreas.Kaufmann@synopsys.com>
6284
6285 PR corefiles/14983:
6286 * dwarf2read.c (process_full_comp_unit): Always create a static
6287 block.
6288
6289 2013-04-25 Hui Zhu <hui@codesourcery.com>
6290
6291 * breakpoint.c (build_target_command_list): Change loc->cond_bytecode
6292 to loc->cmd_bytecode.
6293
6294 2013-04-24 Doug Evans <dje@google.com>
6295
6296 * dwarf2read.c (setup_type_unit_groups): Fix comment.
6297
6298 2013-04-22 Keith Seitz <keiths@redhat.com>
6299
6300 * tracepoint.c (trace_save): Call the writer's start method.
6301
6302 2013-04-24 Muhammad Bilal <mbilal@codesourcery.com>
6303
6304 PR gdb/10462
6305 * cli/cli-decode.c (lookup_command): Show an error if there is no space
6306 before argument.
6307
6308 2013-04-23 Tom Tromey <tromey@redhat.com>
6309
6310 * common/filestuff.c: Check USE_WIN32API before including
6311 sys/socket.h.
6312 (HAVE_F_GETFD): New define.
6313 (mark_cloexec): Check HAVE_F_GETFD.
6314 (gdb_open_cloexec): Change 'mode' to unsigned long.
6315 (gdb_socketpair_cloexec): Check HAVE_SOCKETPAIR.
6316 (gdb_pipe_cloexec): Check HAVE_PIPE.
6317 * common/filestuff.h (gdb_open_cloexec): Change 'mode' to unsigned
6318 long.
6319
6320 2013-04-23 Hui Zhu <hui@codesourcery.com>
6321
6322 PR gdb/15293
6323 * breakpoint.c (bpstat_what): Add BPSTAT_WHAT_SINGLE to bp_dprintf.
6324
6325 2013-04-23 Hui Zhu <hui@codesourcery.com>
6326
6327 PR gdb/15165
6328 * breakpoint.c (dprintf_print_recreate): New.
6329 (save_breakpoints): Let it not save dprintf commands.
6330 (initialize_breakpoint_ops): Set dprintf_print_recreate.
6331
6332 2013-04-22 Tom Tromey <tromey@redhat.com>
6333
6334 PR gdb/7912:
6335 * Makefile.in (SFILES): Add filestuff.c
6336 (COMMON_OBS): Add filestuff.o.
6337 (filestuff.o): New target.
6338 * auto-load.c (auto_load_objfile_script_1): Use
6339 gdb_fopen_cloexec.
6340 * auxv.c (procfs_xfer_auxv): Use gdb_open_cloexec.
6341 * cli/cli-cmds.c (shell_escape): Call close_most_fds.
6342 * cli/cli-dump.c (fopen_with_cleanup): Use gdb_fopen_cloexec.
6343 * common/agent.c (gdb_connect_sync_socket): Use
6344 gdb_socket_cloexec.
6345 * common/filestuff.c: New file.
6346 * common/filestuff.h: New file.
6347 * common/linux-osdata.c (linux_common_core_of_thread)
6348 (command_from_pid, commandline_from_pid, print_source_lines)
6349 (linux_xfer_osdata_shm, linux_xfer_osdata_sem)
6350 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Use
6351 gdb_fopen_cloexec.
6352 * common/linux-procfs.c (linux_proc_get_int)
6353 (linux_proc_pid_has_state): Use gdb_fopen_cloexec.
6354 * config.in, configure: Rebuild.
6355 * configure.ac: Don't check for sys/socket.h. Check for
6356 fdwalk, pipe2.
6357 * corelow.c (core_open): Use gdb_open_cloexec.
6358 * dwarf2read.c (write_psymtabs_to_index): Use gdb_fopen_cloexec.
6359 * fork-child.c (fork_inferior): Call close_most_fds.
6360 * gdb_bfd.c (gdb_bfd_open): Use gdb_open_cloexec.
6361 * inf-child.c (inf_child_fileio_readlink): Use gdb_open_cloexec.
6362 * linux-nat.c (linux_nat_thread_name, linux_proc_pending_signals):
6363 Use gdb_fopen_cloexec.
6364 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use
6365 gdb_open_cloexec.
6366 (linux_async_pipe): Use gdb_pipe_cloexec.
6367 * remote-fileio.c (remote_fileio_func_open): Use
6368 gdb_open_cloexec.
6369 * remote.c (remote_file_put, remote_file_get): Use
6370 gdb_fopen_cloexec.
6371 * ser-pipe.c (pipe_open): Use gdb_socketpair_cloexec,
6372 close_most_fds.
6373 * ser-tcp.c (net_open): Use gdb_socket_cloexec.
6374 * ser-unix.c (hardwire_open): Use gdb_open_cloexec.
6375 * solib.c (solib_find): Use gdb_open_cloexec.
6376 * source.c (openp, find_and_open_source): Use gdb_open_cloexec.
6377 * tracepoint.c (tfile_start): Use gdb_fopen_cloexec.
6378 (tfile_open): Use gdb_open_cloexec.
6379 * tui/tui-io.c (tui_initialize_io): Use gdb_pipe_cloexec.
6380 * ui-file.c (gdb_fopen): Use gdb_fopen_cloexec.
6381 * xml-support.c (xml_fetch_content_from_file): Use
6382 gdb_fopen_cloexec.
6383 * main.c (captured_main): Call notice_open_fds.
6384
6385 2013-04-22 Edjunior Machado <emachado@linux.vnet.ibm.com>
6386
6387 * remote-sim.c (dump_mem): Change the type of 'buf' parameter from
6388 'char *' to 'gdb_byte *'.
6389 (gdbsim_store_register): Change the type of 'tmp' from 'char' to
6390 'gdb_byte'.
6391
6392 2013-04-22 Yao Qi <yao@codesourcery.com>
6393
6394 * infrun.c: Fix typo in comment.
6395
6396 2013-04-22 Andrew Haley <aph@redhat.com>
6397
6398 * arm-tdep.c (BranchDest): Cast result as "unsigned long",
6399 instead of "long".
6400
6401 2013-04-20 Yao Qi <yao@codesourcery.com>
6402
6403 * ctf.c (ctf_fetch_registers): Change the type of 'regs' from
6404 'char *' to 'gdb_byte *'. Cast the return value of
6405 'bt_ctf_get_char_array' to 'gdb_byte *'.
6406
6407 2013-04-19 Pedro Alves <palves@redhat.com>
6408
6409 * configure.ac (build_warnings): Replace -Wno-pointer-sign with
6410 -Wpointer-sign.
6411 * configure: Regenerate.
6412
6413 2013-04-19 Pedro Alves <palves@redhat.com>
6414
6415 * ser-tcp.c (net_read_prim): Cast second argument to recv to
6416 'void *'.
6417
6418 2013-04-19 Pedro Alves <palves@redhat.com>
6419
6420 * monitor.c (monitor_write_memory, monitor_write_memory_bytes):
6421 Change type of 'myaddr' parameter to gdb_byte pointer.
6422 (monitor_write_memory_longlongs): Likewise. Cast 'myaddr' pointer
6423 to 'long long' pointer instead of to 'unsigned long long'.
6424 (monitor_write_memory_block, monitor_read_memory_single)
6425 (monitor_read_memory): Change type of 'myaddr' parameter to
6426 gdb_byte pointer.
6427
6428 2013-04-19 Pedro Alves <palves@redhat.com>
6429
6430 * record.c (validate_history_size): Make parameter 'setting'
6431 unsigned.
6432
6433 2013-04-19 Pedro Alves <palves@redhat.com>
6434
6435 * ctf.c (ctf_write_uploaded_tsv, ctf_write_uploaded_tp): Add casts
6436 to 'gdb_byte *'.
6437
6438 2013-04-19 Pedro Alves <palves@redhat.com>
6439
6440 * cp-valprint.c (cp_print_class_member): Change type of 'fieldno'
6441 local to int.
6442
6443 2013-04-19 Pedro Alves <palves@redhat.com>
6444
6445 * ada-lang.c (print_it_exception): Add cast to gdb_byte *.
6446 * ada-tasks.c (read_fat_string_value): Likewise.
6447
6448 2013-04-19 Pedro Alves <palves@redhat.com>
6449
6450 * dwarf2-frame.c (execute_cfa_program): Make 'bytes_read' local
6451 unsigned. Pass 'tmp' to safe_read_uleb128 instead of the signed
6452 'offset', and adjust.
6453
6454 2013-04-19 Pedro Alves <palves@redhat.com>
6455
6456 * dwarf2read.c (dwarf2_get_dwz_file): Add cast to const char *.
6457 (read_index_from_section): Add cast to 'char *'.
6458
6459 2013-04-19 Pedro Alves <palves@redhat.com>
6460
6461 * xcoffread.c (xcoff_initial_scan): Add cast to 'char *'.
6462
6463 2013-04-19 Pedro Alves <palves@redhat.com>
6464
6465 * coff-pe-read.c (read_pe_exported_syms): Handle strings as char.
6466
6467 2013-04-19 Pedro Alves <palves@redhat.com>
6468
6469 * record-full.c (record_full_get_bookmark): Change local 'ret'
6470 type to char * and add cast to gdb_byte *.
6471 (record_full_goto_bookmark): Handle 'bookmark' argument as a
6472 string.
6473 * reverse.c (goto_bookmark_command): Add casts to gdb_byte *.
6474
6475 2013-04-19 Pedro Alves <palves@redhat.com>
6476
6477 * python/py-inferior.c (infpy_write_memory): Add cast to gdb_byte
6478 * python/py-prettyprint.c (print_string_repr): Change type of
6479 'output' local to char *. Add cast to gdb_byte * in
6480 LA_PRINT_STRING call.
6481 (print_children): Change type of 'output' local to char *.
6482 * python/py-value.c (valpy_string): Add cast to const char * in
6483 PyUnicode_Decode call.
6484
6485 2013-04-19 Pedro Alves <palves@redhat.com>
6486
6487 * remote-mips.c (mips_cksum): Rename 'data' parameter to 'datastr'
6488 and change its type to 'const char *'. Adjust.
6489 (mips_send_packet): Add cast to 'char *', and remove cast to
6490 'unsigned char *'.
6491 (mips_receive_packet): Remove cast to 'unsigned char *'.
6492 (mips_load_srec): Use bfd_byte.
6493 (pmon_makeb64, pmon_zeroset): Make 'chksum' parameter unsigned.
6494 (pmon_checkset): Make 'value' parameter unsigned.
6495
6496 2013-04-19 Pedro Alves <palves@redhat.com>
6497
6498 * common/agent.c (agent_run_command): Add cast to gdb_byte *.
6499
6500 2013-04-19 Pedro Alves <palves@redhat.com>
6501
6502 * remote.c (remote_write_bytes_aux, compare_sections_command)
6503 (remote_read_qxfer)
6504 (remote_search_memory, remote_hostio_pwrite, remote_hostio_pread)
6505 (remote_hostio_readlink, remote_bfd_iovec_pread)
6506 (remote_set_trace_notes): Use gdb_byte when RSP buffer is used as
6507 binary buffer, and char when buffer is used as string.
6508 * tracepoint.c (encode_source_string, tfile_write_uploaded_tp)
6509 (trace_save, tfile_open, traceframe_walk_blocks)
6510 (tfile_fetch_registers): Likewise.
6511
6512 2013-04-19 Pedro Alves <palves@redhat.com>
6513
6514 * ser-base.c (ser_base_write): Change prototype -- take 'void *'
6515 buffer and size_t size. Adjust.
6516 * ser-base.h (ser_base_write): Adjust.
6517 * ser-go32.c (cnts): Change type to size_t.
6518 (dos_write): Change prototype -- take 'void *'
6519 buffer and size_t size. Adjust.
6520 (dos_info): Print elements of 'cnts' as unsigned long.
6521 * serial.c (serial_write): Likewise.
6522 * serial.h (serial_write): Adjust.
6523 (struct serial_ops) <write>: Change prototype -- take 'void *'
6524 buffer and size_t size. Adjust.
6525
6526 2013-04-19 Pedro Alves <palves@redhat.com>
6527
6528 * c-lang.c (evaluate_subexp_c): Cast result of obstack_base to
6529 gdb_byte *.
6530 * linux-tdep.c (linux_make_mappings_corefile_notes): Likewise.
6531
6532 2013-04-19 Pedro Alves <palves@redhat.com>
6533
6534 * alpha-tdep.c (alpha_extract_return_value): Use
6535 regcache_cooked_read_unsigned to read 'v0'.
6536
6537 2013-04-19 Pedro Alves <palves@redhat.com>
6538
6539 * xtensa-tdep.c (execute_l32e, execute_s32e): Change type of
6540 parameters 'at', 'as' and 'offset' to uint32_t.
6541
6542 2013-04-19 Pedro Alves <palves@redhat.com>
6543
6544 * aarch64-tdep.c (aarch64_analyze_prologue): Change type of local
6545 'is64' to signed 'int'.
6546
6547 2013-04-19 Pedro Alves <palves@redhat.com>
6548
6549 * s390-tdep.c (is_rs, is_rsy, is_rx, is_rxy): Change type of 'd2'
6550 parameter to int *.
6551
6552 2013-04-19 Pedro Alves <palves@redhat.com>
6553
6554 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Change local
6555 'insnbuf' buffer type to unsigned int[].
6556
6557 2013-04-19 Pedro Alves <palves@redhat.com>
6558
6559 * mips-tdep.c (mips_read_pc): Change local 'pc' type to LONGEST.
6560
6561 2013-04-19 Pedro Alves <palves@redhat.com>
6562
6563 * mep-tdep.c (mep_get_insn): Change 'insn' parameter type to
6564 unsigned long *.
6565
6566 2013-04-19 Pedro Alves <palves@redhat.com>
6567
6568 * alpha-tdep.c (heuristic_fence_post): Change type to int.
6569 (alpha_heuristic_proc_start): Adjust to check -1 instead of
6570 UINT_MAX.
6571 * mips-tdep.c (heuristic_fence_post): Change type to int.
6572 (heuristic_proc_start): Adjust to check -1 instead of UINT_MAX.
6573
6574 2013-04-19 Pedro Alves <palves@redhat.com>
6575
6576 * cris-tdep.c (usr_cmd_cris_version): Make unsigned.
6577 (struct gdbarch_tdep) <cris_version>: Make unsigned.
6578 (cris_spec_reg_applicable, cris_gdbarch_init): Adjust locals.
6579
6580 2013-04-19 Pedro Alves <palves@redhat.com>
6581
6582 * avr-tdep.c (avr_io_reg_read_command): New local 'bufstr'. Use
6583 it to get a string view of the byte buffer.
6584 * i386-cygwin-tdep.c (core_process_module_section): Change local 'buf'
6585 type to gdb_byte *. Adjust.
6586 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full):
6587 Change local to char *.
6588 * solib-darwin.c (find_program_interpreter): Change return type to
6589 char *. Adjust.
6590 (darwin_solib_get_all_image_info_addr_at_init): Adjust.
6591 * solib-dsbt.c (enable_break2): Change local 'buf' to char *.
6592 * solib-frv.c (enable_break2): Change local 'buf' to char *.
6593 * solib-spu.c (spu_current_sos): Add gdb_byte * cast.
6594 * solib-svr4.c (find_program_interpreter): Change return type to
6595 char *. Adjust.
6596 (enable_break): Change local 'interp_name' to char *.
6597 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
6598 * spu-tdep.c (spu_pseudo_register_read_spu): Add cast to 'char *'.
6599 (spu_pseudo_register_write_spu): Use char for string buffer.
6600 Adjust.
6601 (info_spu_event_command, info_spu_signal_command): Add casts to
6602 'char *'.
6603
6604 2013-04-19 Pedro Alves <palves@redhat.com>
6605
6606 * aarch64-tdep.c (aarch64_default_breakpoint): Change type to
6607 gdb_byte[].
6608 (aarch64_breakpoint_from_pc): Change return type to gdb_byte *.
6609 * ada-lang.c (ada_value_assign): Use gdb_byte.
6610 * alphanbsd-tdep.c (sigtramp_retcode): Change type to gdb_byte[].
6611 (alphanbsd_sigtramp_offset): Use gdb_byte.
6612 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint)
6613 (arm_linux_arm_be_breakpoint, eabi_linux_arm_le_breakpoint)
6614 (eabi_linux_arm_be_breakpoint, arm_linux_thumb_be_breakpoint)
6615 (arm_linux_thumb_le_breakpoint, arm_linux_thumb2_be_breakpoint)
6616 (arm_linux_thumb2_le_breakpoint): Change type to gdb_byte[].
6617 * arm-tdep.c (arm_stub_unwind_sniffer)
6618 (arm_displaced_init_closure): Use gdb_byte.
6619 (arm_default_arm_le_breakpoint, arm_default_arm_be_breakpoint)
6620 (arm_default_thumb_le_breakpoint)
6621 (arm_default_thumb_be_breakpoint): Change type to gdb_byte[].
6622 * arm-tdep.h (struct gdbarch_tdep) <arm_breakpoint,
6623 thumb_breakpoint, thumb2_breakpoint>: Change type to gdb_byte *.
6624 * arm-wince-tdep.c (arm_wince_le_breakpoint)
6625 (arm_wince_thumb_le_breakpoint): Change type to gdb_byte[].
6626 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint)
6627 (arm_nbsd_arm_be_breakpoint, arm_nbsd_thumb_le_breakpoint)
6628 (arm_nbsd_thumb_be_breakpoint): Change type to gdb_byte[].
6629 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint)
6630 (arm_obsd_thumb_be_breakpoint): Change type to gdb_byte[].
6631 * cris-tdep.c (push_stack_item, cris_push_dummy_call)
6632 (cris_store_return_value, cris_extract_return_value): Use
6633 gdb_byte.
6634 (constraint): Change type of parameter to char * from signed
6635 char*. Use gdb_byte.
6636 * dwarf2loc.c (read_pieced_value, write_pieced_value): Change type
6637 of local buffer to gdb_byte *.
6638 * dwarf2read.c (read_index_from_section): Use gdb_byte.
6639 (create_dwp_hash_table): Change type of locals to gdb_byte *.
6640 (add_address_entry): Change type of local buffer to gdb_byte[].
6641 * frv-tdep.c (frv_adjust_breakpoint_address, find_func_descr)
6642 (frv_push_dummy_call): Use gdb_byte.
6643 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code)
6644 (hppa_hpux_supply_ss_fpblock, hppa_hpux_supply_ss_wide)
6645 (hppa_hpux_supply_save_state): Use gdb_byte.
6646 * hppa-tdep.c (hppa32_push_dummy_call)
6647 (hppa64_convert_code_addr_to_fptr): Use gdb_byte.
6648 * ia64-tdep.c (extract_bit_field, replace_bit_field)
6649 (slotN_contents, replace_slotN_contents): Change type of parameter
6650 to gdb_byte *.
6651 (fetch_instruction, ia64_pseudo_register_write)
6652 (ia64_register_to_value, ia64_value_to_register)
6653 (ia64_extract_return_value, ia64_store_return_value)
6654 (ia64_push_dummy_call): Use gdb_byte.
6655 * m32c-tdep.c (m32c_return_value): Remove cast.
6656 * m68hc11-tdep.c (m68hc11_pseudo_register_write)
6657 (m68hc11_push_dummy_call, m68hc11_store_return_value): Use
6658 gdb_byte.
6659 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use gdb_byte.
6660 * mn10300-tdep.c (mn10300_store_return_value)
6661 (mn10300_breakpoint_from_pc, mn10300_push_dummy_call): Use
6662 gdb_byte.
6663 * moxie-tdep.c (moxie_process_readu): Use gdb_byte.
6664 (moxie_process_record): Remove casts.
6665 * ppc-ravenscar-thread.c (supply_register_at_address)
6666 (ppc_ravenscar_generic_store_registers): Use gdb_byte.
6667 * ravenscar-thread.c (get_running_thread_id): Use gdb_byte.
6668 * remote-m32r-sdi.c (m32r_fetch_register): Use gdb_byte.
6669 * remote-mips.c (mips_xfer_memory): Use gdb_byte.
6670 * remote.c (compare_sections_command): Use gdb_byte.
6671 * score-tdep.c (score7_free_memblock): Change type of parameter to
6672 gdb_byte *.
6673 * sh-tdep.c (sh_justify_value_in_reg): Change return type to
6674 gdb_byte *. Use gdb_byte.
6675 (sh_push_dummy_call_fpu): Use gdb_byte.
6676 (sh_extract_return_value_nofpu, sh_extract_return_value_fpu)
6677 (sh_store_return_value_nofpu, sh_store_return_value_fpu)
6678 (sh_register_convert_to_virtual, sh_register_convert_to_raw):
6679 Change parameter type to 'gdb_byte *'. Use gdb_byte.
6680 (sh_pseudo_register_read, sh_pseudo_register_write): Use gdb_byte.
6681 * sh64-tdep.c (sh64_push_dummy_call): Use gdb_byte.
6682 (sh64_store_return_value, sh64_register_convert_to_virtual):
6683 Change parameter type to 'gdb_byte *'. Use gdb_byte.
6684 (sh64_pseudo_register_write): Use gdb_byte.
6685 * solib-darwin.c (darwin_current_sos): Add casts to 'gdb_byte *'.
6686 * solib-irix.c (fetch_lm_info): Likewise. Use gdb_byte for byte
6687 buffer.
6688 (irix_current_sos): Use gdb_byte.
6689 * solib-som.c (som_current_sos): Use gdb_byte.
6690 * sparc-ravenscar-thread.c (supply_register_at_address)
6691 (sparc_ravenscar_generic_store_registers): Use gdb_byte.
6692 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
6693 * spu-tdep.c (spu_get_overlay_table): Use gdb_byte.
6694 * tic6x-tdep.c (tic6x_breakpoint_from_pc): Change return type to
6695 'gdb_byte *'.
6696 * tic6x-tdep.h (struct gdbarch_tdep) <breakpoint>: Change type to
6697 'gdb_byte *'.
6698 * tracepoint.c (tfile_fetch_registers): Use gdb_byte.
6699 * xstormy16-tdep.c (xstormy16_extract_return_value)
6700 (xstormy16_store_return_value): Change parameter type to
6701 'gdb_byte *'. Adjust.
6702 (xstormy16_push_dummy_call): Use gdb_byte.
6703 * xtensa-tdep.c (xtensa_scan_prologue, call0_ret)
6704 (call0_analyze_prologue, execute_code): Use gdb_byte.
6705
6706 2013-04-19 Vladimir Kargov <kargov@gmail.com>
6707 Pedro Alves <palves@redhat.com>
6708
6709 * i387-tdep.c (i387_print_float_info): Use gdb_byte for pointer to
6710 value contents.
6711
6712 2013-04-17 Doug Evans <dje@google.com>
6713
6714 * dwarf2read.c (struct signatured_type): New member type.
6715 (struct attribute): Replace member signatured_type with signature.
6716 (DW_SIGNATURE): Replaces DW_SIGNATURE_TYPE.
6717 (read_call_site_scope): Call follow_die_ref instead of
6718 follow_die_ref_or_sig.
6719 (read_structure_type): Rewrite handling of signatured types.
6720 (read_enumeration_type): Ditto.
6721 (read_attribute_value): Update.
6722 (build_error_marker_type): New function.
6723 (lookup_die_type): Add assert. Rewrite handling of signatured types.
6724 Don't call error for bad types, just build an error marker type.
6725 (dump_die_shallow): Update.
6726 (follow_die_sig_1): Renamed from follow_die_sig.
6727 Don't call error for bad types, instead return NULL.
6728 (follow_die_sig): New function.
6729 (get_signatured_type, get_DW_AT_signature_type): New functions.
6730
6731 2013-04-17 Yufeng Zhang <yufeng.zhang@arm.com>
6732
6733 * aarch64-tdep.c (aarch64_write_pc): Removed.
6734 (aarch64_gdbarch_init): Remove set_gdbarch_write_pc of the above
6735 function.
6736
6737 2013-04-17 Yao Qi <yao@codesourcery.com>
6738
6739 * top.c (print_gdb_configuration): Print configure-time
6740 parameter on using libbabeltrace or not.
6741
6742 2013-04-16 Pedro Alves <palves@redhat.com>
6743
6744 * copyright.py (EXCLUDE_LIST): Add gdb/common/glibc_thread_db.h.
6745
6746 2013-04-16 Pedro Alves <palves@redhat.com>
6747
6748 * common/glibc_thread_db.h: Update from upstream glibc
6749 (git 568035b7874a099087b77f7bba3e36a1173787b0).
6750
6751 2013-04-16 Pedro Alves <palves@redhat.com>
6752
6753 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: Factor out to ...
6754 * common/glibc_thread_db.h: ... this new file ...
6755 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: ... and include it.
6756
6757 2013-04-16 Will Newton <will.newton@gmail.com>
6758 Pedro Alves <palves@redhat.com>
6759
6760 PR build/11881
6761
6762 * common/gdb_thread_db.h (LIBTHREAD_DB_SO)
6763 (LIBTHREAD_DB_SEARCH_PATH): Move outside of #ifdef
6764 HAVE_THREAD_DB_H.
6765
6766 2013-04-16 Pedro Alves <palves@redhat.com>
6767 Eli Zaretskii <eliz@gnu.org>
6768
6769 * NEWS: Mention "set foo unlimited".
6770
6771 2013-04-15 Doug Evans <dje@google.com>
6772
6773 * dwarf2read.c (struct dwo_file): Replace member "cus" with "cu".
6774 (struct create_dwo_cu_data): Renamed from create_dwo_info_table_data.
6775 (create_dwo_cu_reader): Renamed from
6776 create_dwo_debug_info_hash_table_reader.
6777 (create_dwo_cu): Renamed from create_dwo_debug_info_hash_table.
6778 Remove support for multiple CUs in a DWO file.
6779 (open_and_init_dwo_file, lookup_dwo_cutu): Update.
6780
6781 * dwarf2read.c (create_debug_types_hash_table): Use hex_string
6782 instead of phex.
6783 (lookup_dwo_unit, create_dwo_debug_info_hash_table_reader): Ditto.
6784 (create_dwo_in_dwp): Ditto.
6785
6786 2013-04-15 Tom Tromey <tromey@redhat.com>
6787
6788 * NEWS: Move recent entries into "since 7.6" section.
6789
6790 2013-04-15 Tom Tromey <tromey@redhat.com>
6791
6792 PR c++/13588:
6793 * NEWS: Update.
6794 * break-catch-throw.c (struct exception_catchpoint)
6795 <exception_rx, pattern>: New fields.
6796 (fetch_probe_arguments, dtor_exception_catchpoint)
6797 (check_status_exception_catchpoint)
6798 (print_one_detail_exception_catchpoint): New functions.
6799 (handle_gnu_v3_exceptions): Add "except_rx" argument.
6800 Compile regular expression if needed.
6801 (extract_exception_regexp): New function.
6802 (catch_exception_command_1): Use extract_exception_regexp.
6803 (compute_exception): Use fetch_probe_arguments.
6804 (initialize_throw_catchpoint_ops): Set dtor, print_one_detail,
6805 and check_status fields.
6806 * cp-abi.c (cplus_typename_from_type_info): New function.
6807 * cp-abi.h (cplus_typename_from_type_info): Declare.
6808 (struct cp_abi_ops) <get_typename_from_type_info>: New field.
6809 * gdb_regex.h (compile_rx_or_error): Declare.
6810 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info): Update
6811 comment.
6812 (init_gnuv3_ops): Set get_type_from_type_info field.
6813 * probe.c (compile_rx_or_error): Move...
6814 * utils.c (compile_rx_or_error): ... here.
6815
6816 2013-04-15 Tom Tromey <tromey@redhat.com>
6817
6818 PR c++/15176:
6819 * NEWS: Update.
6820 * break-catch-throw.c (compute_exception): New function.
6821 (exception_funcs): New global.
6822 (_initialize_break_catch_throw): Create $_exception.
6823 * cp-abi.c (cplus_type_from_type_info): New function.
6824 * cp-abi.h (cplus_type_from_type_info): Declare.
6825 (struct cp_abi_ops) <get_type_from_type_info>: New field.
6826 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info)
6827 (gnuv3_get_type_from_type_info): New functions.
6828 (init_gnuv3_ops): Set get_type_from_type_info ABI field.
6829
6830 2013-04-15 Tom Tromey <tromey@redhat.com>
6831
6832 * break-catch-throw.c (struct exception_names): New.
6833 (exception_functions): Change type.
6834 (re_set_exception_catchpoint): Look for SDT probes.
6835
6836 2013-04-15 Tom Tromey <tromey@redhat.com>
6837
6838 PR c++/10119:
6839 * break-catch-throw.c (exception_functions): New global.
6840 (gnu_v3_exception_catchpoint_ops): Move earlier.
6841 (struct exception_catchpoint): New.
6842 (classify_exception_breakpoint): Rewrite.
6843 (re_set_exception_catchpoint): New function.
6844 (handle_gnu_v3_exceptions): Return void. Use init_catchpoint.
6845 Allocate a struct exception_catchpoint.
6846 (catch_exception_command_1): Update.
6847 (initialize_throw_catchpoint_ops): Set 're_set' method.
6848
6849 2013-04-15 Tom Tromey <tromey@redhat.com>
6850
6851 * Makefile.in (SFILES): Add break-catch-throw.c
6852 (COMMON_OBS): Add break-catch-throw.o.
6853 * break-catch-throw.c: New file.
6854 * breakpoint.c: Move exception-catching code to new file.
6855 (ep_parse_optional_if_clause): No longer static.
6856 * breakpoint.h (ep_parse_optional_if_clause): Declare.
6857
6858 2013-04-15 Tom Tromey <tromey@redhat.com>
6859
6860 PR c++/9065:
6861 * NEWS: Update.
6862 * breakpoint.c (watchpoint_exp_is_const): Add OP_TYPEID.
6863 * c-exp.y (TYPEID): New token.
6864 (exp): Add new TYPEID productions.
6865 (ident_tokens): Add "typeid".
6866 * cp-abi.c (cplus_typeid, cplus_typeid_type): New functions.
6867 * cp-abi.h (cplus_typeid, cplus_typeid_type): Declare.
6868 (struct cp_abi_ops) <get_typeid, get_typeid_type>: New fields.
6869 * eval.c (evaluate_subexp_standard) <OP_TYPEID>: New case.
6870 * expprint.c (dump_subexp_body_standard) <OP_TYPEID>: New
6871 case.
6872 * gnu-v3-abi.c (std_type_info_gdbarch_data): New global.
6873 (build_std_type_info_type, gnuv3_get_typeid_type)
6874 (gnuv3_get_typeid): New functions.
6875 (init_gnuv3_ops): Initialize std_type_info_gdbarch_data. Set
6876 new fields on ABI object.
6877 * parse.c (operator_length_standard) <OP_TYPEID>: New case.
6878 * std-operator.def (OP_TYPEID): New.
6879
6880 2013-04-15 Tom Tromey <tromey@redhat.com>
6881
6882 * elfread.c (elf_symtab_read): Install versioned symbol under
6883 unversioned name as well.
6884
6885 2013-04-15 Tom Tromey <tromey@redhat.com>
6886
6887 PR c++/11990:
6888 * c-lang.c (cplus_language_defn): Use gdb_demangle.
6889 * c-typeprint.c (c_type_print_base): Use gdb_demangle.
6890 * cp-support.c (mangled_name_to_comp): Use gdb_demangle.
6891 (gdb_demangle): New function.
6892 * cp-support.h (gdb_demangle): Declare.
6893 * dwarf2read.c (dwarf2_physname, fixup_partial_die)
6894 (dwarf2_name): Use gdb_demangle.
6895 * gdbtypes.c (check_stub_method): Use gdb_demangle.
6896 * gnu-v3-abi.c (gnuv3_rtti_type): Strip @plt and version
6897 suffixes from name.
6898 (gnuv3_print_method_ptr): Use gdb_demangle.
6899 * jv-lang.c (java_demangle): Use gdb_demangle.
6900 * jv-typeprint.c (java_type_print_base): Use gdb_demangle.
6901 * language.c (unk_lang_demangle): Use gdb_demangle.
6902 * symtab.c (symbol_find_demangled_name)
6903 (demangle_for_lookup): Use gdb_demangle.
6904
6905 2013-04-15 Tom Tromey <tromey@redhat.com>
6906
6907 PR c++/12824:
6908 * NEWS: Update.
6909 * breakpoint.c (enum exception_event_kind) <EX_EVENT_RETHROW>:
6910 New constant.
6911 (classify_exception_breakpoint): New function.
6912 (print_it_exception_catchpoint, print_one_exception_catchpoint)
6913 (print_mention_exception_catchpoint)
6914 (print_recreate_exception_catchpoint, handle_gnu_v3_exceptions)
6915 (catch_exception_command_1): Handle "rethrow" catchpoint.
6916 (catch_rethrow_command): New function.
6917 (_initialize_breakpoint): Add "catch rethrow" command.
6918
6919 2013-04-15 Pierre Muller <muller@sourceware.org>
6920
6921 * contrib/ari/gdb_ari.sh (write_pc rule): Do not consider
6922 set_gdbarch_write_pc as deprecated anymore.
6923
6924 2013-04-15 Joel Brobecker <brobecker@adacore.com>
6925
6926 * spu-tdep.c (spu_write_pc): Add empty line after local variable
6927 declarations.
6928
6929 2013-04-13 Yao Qi <yao@codesourcery.com>
6930
6931 * ctf.c (_initialize_ctf): Include "completer.h".
6932 Call add_target_with_completer instead of add_target.
6933
6934 2013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
6935
6936 Fix GDB regression related to PR binutils/14813.
6937 * jit.c (mem_bfd_iovec_close): Return 0 for success.
6938 * minidebug.c (lzma_close): Add return value comment.
6939 * remote.c (remote_bfd_iovec_close): Return 0 for success.
6940 * solib-spu.c (spu_bfd_iovec_close): Likewise.
6941 * spu-linux-nat.c (spu_bfd_iovec_close): Likewise.
6942
6943 2013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
6944
6945 * config.in: Regenerate.
6946
6947 2013-04-12 Tom Tromey <tromey@redhat.com>
6948
6949 * dwarf2-frame.c (struct comp_unit) <dwarf_frame_buffer>: Now
6950 const.
6951 * dwarf2read.c (struct dwarf2_section_info) <buffer>: Now const.
6952 (struct die_reader_specs) <buffer>: Likewise.
6953 (die_reader_func_ftype): Make 'info_ptr' const.
6954 (struct line_header) <include_dirs, statement_program_start,
6955 statement_program_end>: Now const.
6956 (struct file_entry) <name>: Likewise.
6957 (struct partial_die_info) <sibling>: Likewise.
6958 (struct dwarf_block) <data>: Likewise.
6959 (dwarf2_read_section): Remove cast.
6960 (dwarf2_get_section_info): Make 'bufp' const.
6961 (read_index_from_section): Constify.
6962 (dw2_get_file_names_reader): Make 'info_ptr' const.
6963 (dw2_get_primary_filename_reader): Likewise.
6964 (read_comp_unit_head): Make 'info_ptr' and return type const.
6965 (read_and_check_comp_unit_head, read_and_check_type_unit_head):
6966 Likewise.
6967 (read_abbrev_offset): Constify.
6968 (dwarf2_create_include_psymtab): Make 'name' const.
6969 (create_debug_types_hash_table): Update.
6970 (read_cutu_die_from_dwo): Make 'result_info_ptr' const.
6971 (init_cutu_and_read_dies, init_cutu_and_read_dies_no_follow):
6972 Constify.
6973 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader)
6974 (load_partial_comp_unit_reader): Make 'info_ptr' const.
6975 (read_comp_units_from_section): Constify.
6976 (peek_abbrev_code, peek_die_abbrev, skip_children, skip_one_die)
6977 (locate_pdi_sibling, load_full_comp_unit_reader): Make 'info_ptr'
6978 const.
6979 (dwarf2_compute_name, setup_type_unit_groups): Constify.
6980 (create_dwo_debug_info_hash_table): Make 'info_ptr' const.
6981 (create_dwp_hash_table, dwarf2_ranges_read)
6982 (dwarf2_record_block_ranges): Constify.
6983 (read_die_and_children, read_die_and_siblings_1)
6984 (read_die_and_siblings): Make 'info_ptr' and 'new_info_ptr'
6985 const.
6986 (read_full_die_1, read_full_die): Make 'info_ptr' const.
6987 (abbrev_table_read_table): Constify.
6988 (load_partial_dies): Make 'info_ptr' const.
6989 (read_partial_die, read_attribute_value, read_attribute): Make
6990 'info_ptr' and return type const.
6991 (read_address, read_initial_length)
6992 (read_checked_initial_length_and_offset, read_offset)
6993 (read_offset_1, read_n_bytes, read_direct_string): Make 'buf'
6994 const.
6995 (read_direct_string): Make 'buf' and return type const.
6996 (read_indirect_string_at_offset, read_indirect_string_from_dwz)
6997 (read_indirect_string): Make return type const.
6998 (read_unsigned_leb128, read_signed_leb128): Make 'buf' const.
6999 (read_addr_index_from_leb128, dwarf2_read_addr_index_reader): Make
7000 'info_ptr' const.
7001 (read_str_index): Make return type const.
7002 (add_include_dir): Make 'include_dir' const.
7003 (add_file_name): Make 'name' const.
7004 (dwarf_decode_line_header): Constify.
7005 (psymtab_include_file_name): Make return type const.
7006 (dwarf_decode_lines_1, dwarf_decode_lines): Constify.
7007 (dwarf2_start_subfile): Make 'filename' const.
7008 (dwarf2_const_value_attr): Make 'bytes' const.
7009 (read_signatured_type_reader): Make 'info_ptr' const.
7010 (decode_locdesc): Constify.
7011 (skip_form_bytes): Make 'bytes', 'buffer_end', and return type
7012 const.
7013 (skip_unknown_opcode): Make 'opcode_definitions', 'mac_ptr',
7014 'mac_end', and return type const.
7015 (dwarf_parse_macro_header): Make 'mac_ptr' and return type const.
7016 (dwarf_decode_macro_bytes): Make 'mac_ptr', 'mac_end', and return
7017 type const.
7018 (per_cu_header_read_in): Constify.
7019 * symfile.h (dwarf2_get_section_info): Update.
7020
7021 2013-04-12 Tom Tromey <tromey@redhat.com>
7022
7023 * symtab.h (struct general_symbol_info) <value.bytes>: Make const.
7024
7025 2013-04-12 Eli Zaretskii <eliz@gnu.org>
7026
7027 * NEWS: Mention "show configuration", --configuration.
7028 * top.c (print_gdb_configuration): New function, displays the
7029 details about GDB configure-time parameters.
7030 (print_gdb_version): Mention "show configuration".
7031 * cli/cli-cmds.c (show_configuration): New function.
7032 (_initialize_cli_cmds): Add the "show configuration" command.
7033 * main.c (captured_main) <print_configuration>: New static var.
7034 <long_options>: Use it.
7035 If --configuration was given, call print_gdb_configuration.
7036
7037 2013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7038 Pedro Alves <palves@redhat.com>
7039
7040 * Makefile.in (HAVE_NATIVE_GCORE_TARGET): New.
7041 (generated_files): Add gcore.
7042 (install-only, uninstall): Add gcore if HAVE_NATIVE_GCORE_TARGET or
7043 HAVE_NATIVE_GCORE_HOST.
7044 (gcore): New.
7045 * NEWS (Changes since GDB 7.6): Mention newly installed gcore.
7046 * config/alpha/alpha-osf3.mh, config/i386/fbsd.mh,
7047 config/i386/fbsd64.mh, config/i386/i386gnu.mh, config/i386/i386sol2.mh,
7048 config/i386/sol2-64.mh, config/mips/irix5.mh, config/mips/irix6.mh,
7049 config/powerpc/fbsd.mh, config/sparc/fbsd.mh, config/sparc/sol2.mh:
7050 Add HAVE_NATIVE_GCORE_HOST.
7051 * configure: Regenerate.
7052 * configure.ac (HAVE_NATIVE_GCORE_TARGET): New, set it, AC_SUBST it.
7053 New AC_SUBST fir GDB_TRANSFORM_NAME and GCORE_TRANSFORM_NAME. New
7054 AC_CONFIG_FILES for gcore.
7055 * configure.tgt: Add gdb_have_gcore to the initial comment. Set
7056 gdb_have_gcore.
7057 * gdb_gcore.sh: Rename to ...
7058 * gcore.in: ... here. Remove gcore.sh comment. Use GDB_TRANSFORM_NAME
7059 and GCORE_TRANSFORM_NAME substitutions.
7060
7061 Fix parsing tabs in ${gdb_target_obs}.
7062 * configure.tgt (gdb_have_gcore): Replace case with for and if.
7063
7064 2013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7065
7066 * remote.c (unpush_and_perror): Add output message final dot.
7067
7068 2013-04-11 Yao Qi <yao@codesourcery.com>
7069
7070 * tracepoint.c (tfile_interp_line): Fit parameters line and
7071 utpp in one line.
7072
7073 2013-04-10 Joel Brobecker <brobecker@adacore.com>
7074
7075 * solib.c (solib_map_sections): Remove code overwriting
7076 SO->SO_NAME with the bfd's filename.
7077
7078 2013-04-10 Pedro Alves <palves@redhat.com>
7079
7080 * cli/cli-decode.c (integer_unlimited_completer): New function.
7081 (add_setshow_integer_cmd, add_setshow_uinteger_cmd)
7082 (add_setshow_zuinteger_unlimited_cmd): Install the "unlimited"
7083 completer.
7084 * cli/cli-setshow.c: Include "cli/cli-utils.h".
7085 (is_unlimited_literal): New function.
7086 (do_set_command): Handle literal "unlimited" arguments.
7087 * frame.c (_initialize_frame) <set backtrace limit>: Document
7088 "unlimited".
7089 * printcmd.c (_initialize_printcmd) <set print
7090 max-symbolic-offset>: Add help text.
7091 * record-full.c (_initialize_record_full) <set record full
7092 insn-number-max>: Likewise.
7093 * record.c (_initialize_record) <set record
7094 instruction-history-size, set record function-call-history-size>:
7095 Add help text.
7096 * ser-tcp.c (_initialize_ser_tcp) <set tcp connect-timeout>: Add
7097 help text.
7098 * tracepoint.c (_initialize_tracepoint) <set trace-buffer-size>:
7099 Likewise.
7100 * source.c (_initialize_source) <set listsize>: Add help text.
7101 * utils.c (initialize_utils) <set height, set width>: Likewise.
7102 <set pagination>: Mention "set height unlimited".
7103 * valprint.c (_initialize_valprint) <set print elements, set print
7104 repeats>: Document "unlimited".
7105
7106 2013-04-10 Pedro Alves <palves@redhat.com>
7107
7108 * cli/cli-cmds.c (quit_command): Call query_if_trace_running
7109 instead of disconnect_tracing.
7110 * infcmd.c (detach_command, disconnect_command): Call
7111 query_if_trace_running. Adjust.
7112 * top.c: Include "tracepoint.h".
7113 (quit_target): Delete. Contents moved ...
7114 (quit_force): ... here. Wrap each stage of teardown in
7115 TRY_CATCH. Call disconnect_tracing before detaching.
7116
7117 2013-04-10 Hui Zhu <hui@codesourcery.com>
7118 Yao Qi <yao@codesourcery.com>
7119
7120 * configure.ac: Check libbabeltrace is installed.
7121 * config.in: Regenerate.
7122 * configure: Regenerate.
7123 * Makefile.in (LIBBABELTRACE): New.
7124 (CLIBS): Add LIBBABELTRACE.
7125 * ctf.c: Include "exec.h".
7126 (CTF_EVENT_ID_STATUS, CTF_EVENT_ID_TSV_DEF): New macros.
7127 (CTF_EVENT_ID_TP_DEF, ctf_save_write_int32): New macros.
7128 (ctf_save_metadata_header): Define new type aliases in
7129 metadata.
7130 (ctf_write_header): Define event type "tsv_def" and "tp_def"
7131 in metadata. Start a new faked packet for trace status.
7132 (ctf_write_status): Write trace status to CTF.
7133 (ctf_write_uploaded_tsv): Write TSV to CTF.
7134 (ctf_write_uploaded_tp): Write tracepoint definition to CTF.
7135 (ctf_write_definition_end): End the faked packet.
7136
7137 (ctx, ctf_iter, trace_dirname): New.
7138 (start_pos): New variable.
7139 (ctf_destroy, ctf_open_dir, ctf_open): New.
7140 (SET_INT32_FIELD, SET_ARRAY_FIELD, SET_STRING_FIELD): New
7141 macros.
7142 (ctf_read_tsv, ctf_read_tp, ctf_close, ctf_files_info): New.
7143 (ctf_fetch_registers, ctf_xfer_partial): New.
7144 (ctf_get_trace_state_variable_value): New.
7145 (ctf_get_tpnum_from_frame_event): New.
7146 (ctf_get_traceframe_address): New.
7147 (ctf_trace_find, ctf_has_stack): New.
7148 (ctf_has_registers, ctf_traceframe_info, init_ctf_ops): New.
7149 (ctf_get_trace_status, ctf_read_status): New.
7150 (_initialize_ctf): New.
7151 * tracepoint.c (get_tracepoint_number): New
7152 (get_uploaded_tsv): Remove 'static'.
7153 (struct traceframe_info, trace_regblock_size): Move it to ...
7154 * tracepoint.h: ... here.
7155 (get_tracepoint_number): Declare it.
7156 (get_uploaded_tsv): Declare it.
7157
7158 * NEWS: Mention new configure option.
7159
7160 2013-04-10 Pedro Alves <palves@redhat.com>
7161 Hui Zhu <hui@codesourcery.com>
7162
7163 * breakpoint.c (dprintf_re_set): New.
7164 (initialize_breakpoint_ops): Set dprintf_breakpoint_ops re_set
7165 to dprintf_re_set.
7166
7167 2013-04-09 Joel Brobecker <brobecker@adacore.com>
7168
7169 * configure.tgt (gdb_target_obs) <powerpc-*-aix* | rs6000-*-*>:
7170 Remove solib-svr4.o from the list.
7171
7172 2013-04-09 Joel Brobecker <brobecker@adacore.com>
7173
7174 * varobj.c (update_dynamic_varobj_children) [!HAVE_PYTHON]:
7175 Use gdb_assert_not_reached instead of invalid boolean expression.
7176
7177 2013-04-09 Pedro Alves <palves@redhat.com>
7178
7179 * remote.c (unpush_and_perror): New function.
7180 (readchar, remote_serial_write): Use it.
7181
7182 2013-04-09 Markus Metzger <markus.t.metzger@intel.com>
7183
7184 * NEWS: Mention new btrace RSP packets.
7185
7186 2013-04-08 Tom Tromey <tromey@redhat.com>
7187
7188 * symmisc.c (dump_msymbols): Cast fprintf_filtered argument to
7189 long.
7190
7191 2013-04-08 Tom Tromey <tromey@redhat.com>
7192
7193 * maint.c (print_bfd_section_info): Print the section index.
7194 * symmisc.c (dump_msymbols): Print the section index.
7195
7196 2013-04-08 Tom Tromey <tromey@redhat.com>
7197
7198 PR symtab/8424:
7199 * blockframe.c (find_pc_partial_function_gnu_ifunc): Check
7200 SYMBOL_SECTION, not SYMBOL_OBJ_SECTION.
7201 * breakpoint.c (resolve_sal_pc): Update.
7202 * elfread.c (elf_gnu_ifunc_record_cache): Update.
7203 * findvar.c (struct minsym_lookup_data) <objfile>: New field.
7204 (minsym_lookup_iterator_cb): Use it.
7205 (default_read_var_value): Update.
7206 * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline):
7207 Update.
7208 * infcmd.c (jump_command): Update.
7209 * linespec.c (minsym_found): Update.
7210 * maint.c (maintenance_translate_address): Update.
7211 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Update.
7212 (prim_record_minimal_symbol_full): Don't set SYMBOL_OBJ_SECTION.
7213 * parse.c (write_exp_msymbol): Update.
7214 * printcmd.c (address_info): Update.
7215 * psymtab.c (find_pc_sect_psymbol): Update.
7216 (fixup_psymbol_section): Check SYMBOL_SECTION, not
7217 SYMBOL_OBJ_SECTION.
7218 (add_psymbol_to_bcache): Correctly initialize SYMBOL_SECTION.
7219 Don't initialize SYMBOL_OBJ_SECTION.
7220 * spu-tdep.c (spu_catch_start): Update.
7221 * stabsread.c (define_symbol): Don't set SYMBOL_SECTION.
7222 * symmisc.c (dump_msymbols, print_symbol): Update.
7223 * symtab.c (fixup_section): Don't set 'obj_section'. Change
7224 how fallback section is computed.
7225 (fixup_symbol_section): Update.
7226 (find_pc_sect_symtab, find_function_start_sal, skip_prologue_sal):
7227 Update.
7228 (allocate_symbol, initialize_symbol, allocate_template_symbol):
7229 Initialize SYMBOL_SECTION.
7230 * symtab.h (struct general_symbol_info) <section>: Update comment.
7231 <obj_section>: Remove.
7232 (SYMBOL_OBJ_SECTION): Add 'objfile' argument. Rewrite.
7233 (SYMBOL_OBJFILE): New macro.
7234
7235 2013-04-08 Tom Tromey <tromey@redhat.com>
7236
7237 * coffread.c (record_minimal_symbol): Update.
7238 * dbxread.c (record_minimal_symbol): Update.
7239 * elfread.c (record_minimal_symbol): Update.
7240 * machoread.c (macho_symtab_add_minsym): Update.
7241 * mdebugread.c (record_minimal_symbol, parse_partial_symbols):
7242 Update.
7243 * minsyms.c (prim_record_minimal_symbol): Update.
7244 (prim_record_minimal_symbol_full): Remove 'bfd_section'
7245 argument.
7246 (prim_record_minimal_symbol_and_info): Likewise.
7247 * minsyms.h (prim_record_minimal_symbol_full)
7248 (prim_record_minimal_symbol_and_info): Update.
7249 * symtab.c (allocate_symbol, initialize_symbol)
7250 (allocate_template_symbol): Initialize SYMBOL_SECTION.
7251 * xcoffread.c (record_minimal_symbol, scan_xcoff_symtab):
7252 Update.
7253
7254 2013-04-08 Tom Tromey <tromey@redhat.com>
7255
7256 PR symtab/8423:
7257 * solib-som.c (som_solib_section_offsets): Use BFD section
7258 indices. Set offsets for all sections.
7259 * somread.c (som_symtab_read): Compute BFD section for
7260 symbol. Use prim_record_minimal_symbol_and_info.
7261 (som_symfile_read): Fix comment.
7262 (struct find_section_offset_arg): New.
7263 (find_section_offset, set_section_index): New functions.
7264 (som_symfile_offsets): Use set_section_index to compute
7265 section indices.
7266
7267 2013-04-08 Tom Tromey <tromey@redhat.com>
7268
7269 * coffread.c (cs_to_section): Use gdb_bfd_section_index.
7270 * elfread.c (record_minimal_symbol, elf_symtab_read): Use
7271 gdb_bfd_section_index.
7272 * gdb_bfd.c (gdb_bfd_section_index, gdb_bfd_count_sections):
7273 New functions.
7274 * gdb_bfd.h (gdb_bfd_section_index, gdb_bfd_count_sections):
7275 Declare.
7276 * machoread.c (macho_symtab_add_minsym, macho_symfile_offsets):
7277 Update.
7278 * objfiles.c (add_to_objfile_sections_full): New function.
7279 (add_to_objfile_sections): Use it.
7280 (build_section_table): Rewrite.
7281 (objfile_relocate1): Use gdb_bfd_section_index. Update.
7282 * objfiles.h (obj_section_offset): Use gdb_bfd_section_index.
7283 (struct objfile) <sections>: Update comment.
7284 (ALL_OBJFILE_OSECTIONS): Skip sections where the_bfd_section
7285 is NULL.
7286 (ALL_OBJSECTIONS): Use it.
7287 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
7288 * solib-frv.c (frv_relocate_main_executable): Update.
7289 * solib-target.c (solib_target_relocate_section_addresses):
7290 Use gdb_bfd_section_index.
7291 * symfile.c (build_section_addr_info_from_section_table):
7292 Use gdb_bfd_section_index.
7293 (build_section_addr_info_from_bfd, place_section): Likewise.
7294 * symtab.c (fixup_section): Update.
7295 * xcoffread.c (find_targ_sec): Use gdb_bfd_section_index.
7296
7297 2013-04-08 Tom Tromey <tromey@redhat.com>
7298
7299 * minsyms.h (struct bound_minimal_symbol): New.
7300 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
7301 Remove objfile argument.
7302 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
7303 Return bound_minimal_symbol.
7304 * minsyms.c (lookup_minimal_symbol_by_pc_1)
7305 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
7306 Return bound_minimal_symbol.
7307 (in_gnu_ifunc_stub): Update.
7308 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
7309 Remove 'objfile_p' argument.
7310 (lookup_solib_trampoline_symbol_by_pc): Update.
7311 * ada-tasks.c, amd64-windows-tdep.c, arm-tdep.c,
7312 arm-wince-tdep.c, block.c, blockframe.c, breakpoint.c, btrace.c,
7313 c-valprint.c, dwarf2loc.c, elfread.c, frame.c, frv-tdep.c,
7314 glibc-tdep.c, gnu-v2-abi.c, gnu-v3-abi.c, hppa-hpux-tdep.c,
7315 i386-tdep.c, ia64-tdep.c, infcall.c, infcmd.c, jit.c,
7316 linux-fork.c, m32c-tdep.c, m68hc11-tdep.c, maint.c,
7317 mips-tdep.c, p-valprint.c, parse.c, ppc-linux-tdep.c,
7318 ppc-sysv-tdep.c, printcmd.c, rs6000-tdep.c, sh64-tdep.c,
7319 stack.c, symtab.c, tui/tui-disasm.c: Update.
7320
7321 2013-04-08 Tom Tromey <tromey@redhat.com>
7322
7323 * ada-lang.c (ada_decode_symbol): Check and set 'ada_mangled'.
7324 Use symbol's obstack, not an objfile.
7325 * coffread.c (process_coff_symbol): Update.
7326 * dwarf2read.c (fixup_go_packaging, new_symbol_full): Update.
7327 * jv-lang.c (add_class_symbol): Update.
7328 * mdebugread.c (new_symbol): Update.
7329 * minsyms.c (prim_record_minimal_symbol_full)
7330 (terminate_minimal_symbol_table): Update.
7331 * psymtab.c (add_psymbol_to_bcache): Clear entire symbol. Update.
7332 * stabsread.c (define_symbol, read_enum_type): Update.
7333 * symtab.c (symbol_set_demangled_name, symbol_get_demangled_name):
7334 Handle Ada specially.
7335 (symbol_set_language): Add 'obstack' argument.
7336 (symbol_set_names): Update.
7337 (symbol_natural_name, symbol_demangled_name): Always use
7338 ada_decode_symbol.
7339 * symtab.h (struct general_symbol_info)
7340 <language_specific::obstack>: New field.
7341 <ada_mangled>: New field.
7342 (SYMBOL_SET_LANGUAGE): Add 'obstack' argument.
7343 (symbol_set_language): Update.
7344
7345 2013-04-08 Tom Tromey <tromey@redhat.com>
7346
7347 * symtab.c (symbol_init_cplus_specific, symbol_set_demangled_name):
7348 Take an obstack, not an objfile.
7349 (symbol_set_names): Update.
7350 * symtab.h (symbol_set_demangled_name): Update.
7351
7352 2013-04-08 Tom Tromey <tromey@redhat.com>
7353
7354 * coffread.c (process_coff_symbol, coff_read_enum_type): Call
7355 allocate_symbol.
7356 * dwarf2read.c (fixup_go_packaging): Call allocate_symbol.
7357 (read_func_scope): Call allocate_template_symbol.
7358 (new_symbol_full): Call allocate_symbol.
7359 * jit.c (finalize_symtab): Call allocate_symbol.
7360 * jv-lang.c (add_class_symbol): Call allocate_symbol.
7361 * mdebugread.c (parse_symbol, new_block): Call allocate_symbol.
7362 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
7363 (common_block_end): Call allocate_symbol.
7364 * symtab.c (allocate_symbol, initialize_symbol)
7365 (allocate_template_symbol): New functions.
7366 * symtab.c (allocate_symbol, initialize_symbol)
7367 (allocate_template_symbol): Declare.
7368 * xcoffread.c (process_xcoff_symbol): Call initialize_symbol.
7369
7370 2013-04-08 Pedro Alves <palves@redhat.com>
7371 Keith Seitz <keiths@redhat.com>
7372
7373 * breakpoint.c (create_breakpoint): Rename
7374 "parse_condition_and_thread" parameter to "parse_arg". Update
7375 describing comment. If !PARSE_ARG, then error out if ARG is not
7376 the empty string after extracting the location.
7377 * breakpoint.h (create_breakpoint): Rename
7378 "parse_condition_and_thread" parameter to "parse_arg".
7379
7380 2013-04-08 Aleksandar Ristovski <aristovski@qnx.com
7381
7382 * solib-svr4.c (lm_addr_check): Add const qualifier to 'so' arg.
7383
7384 2013-04-07 Yao Qi <yao@codesourcery.com>
7385
7386 * remote.c (remote_trace_find): Change type of parameters 'addr1'
7387 and 'addr2' to CORE_ADDR.
7388 * target.c (update_current_target): Update.
7389 * target.h (struct target_ops) <to_trace_find>: Change parameter
7390 type to CORE_ADDR.
7391 * tracepoint.c (tfind_1): Change type of parameters 'addr1' and
7392 'addr2' to CORE_ADDR.
7393 (tfile_trace_find): Likewise.
7394 (tfile_get_traceframe_address): Change return type to CORE_ADDR.
7395 Change local variable 'addr' to type CORE_ADDR.
7396 * tracepoint.h (tfind_1): Update declaration.
7397
7398 2013-04-06 Eli Zaretskii <eliz@gnu.org>
7399
7400 * windows-nat.c (windows_get_absolute_argv0): Move from here...
7401 * mingw-hdep.c (windows_get_absolute_argv0): ...to here.
7402 Include main.h.
7403
7404 * windows-nat.h (windows_get_absolute_argv0): Move prototype from
7405 here...
7406 * main.h (windows_get_absolute_argv0): ...to here.
7407
7408 2013-04-05 Doug Evans <dje@google.com>
7409
7410 * dwarf2read.c (struct dwarf2_per_objfile): Tweak comment.
7411 (read_cutu_die_from_dwo): Add comments.
7412 (read_structure_type): Update comment.
7413 (read_enumeration_type, read_namespace_type): Update comment.
7414 (read_die_type, get_die_type_at_offset, get_die_type): Update comment.
7415
7416 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7417
7418 Convert man pages to texinfo, new gdbinit.5 texinfo page.
7419 * Makefile.in (gdb.z): Remove.
7420 (install-only): Remove $(man1dir) and gdb.1 installation.
7421 * gdb.1: Remove.
7422
7423 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7424
7425 Fix compatibility with Linux kernel 3.8.3.
7426 * linux-tdep.c (linux_find_memory_regions_full): Move variable number
7427 to more inner block. Remove parsing of NUMBER from outer block.
7428 Parse NUMBER only if KEYWORD has been identified.
7429
7430 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7431
7432 Fix variable name shadowing.
7433 * linux-tdep.c (linux_find_memory_regions_full): Rename outer variable
7434 filename to mapsfilename and update its uses.
7435
7436 2013-04-05 Eli Zaretskii <eliz@gnu.org>
7437
7438 * Makefile.in (TAGS): Avoid warning from etags when $GDB_NM_FILE is
7439 empty. See http://sourceware.org/ml/gdb-patches/2012-08/msg00504.html
7440 and http://sourceware.org/ml/gdb-patches/2013-04/msg00055.html for
7441 details of the problem.
7442
7443 2013-04-04 Pedro Alves <palves@redhat.com>
7444 Hui Zhu <hui@codesourcery.com>
7445
7446 * breakpoint.c (validate_commands_for_breakpoint): If validating a
7447 tracepoint, reset its STEP_COUNT and call validate_actionline.
7448
7449 2013-04-03 Doug Evans <dje@google.com>
7450
7451 * dwarf2read.c (read_die_and_siblings_1): Renamed from
7452 read_die_and_siblings.
7453 (read_die_and_siblings): New function.
7454 (read_cutu_die_from_dwo): Dump die if requested.
7455 (read_die_and_children): Call read_full_die_1 and
7456 read_die_and_siblings_1.
7457 (read_full_die): Dump die if requested.
7458
7459 * dwarf2read.c (read_comp_units_from_section): Add debugging printf.
7460
7461 * dwarf2read.c (struct dwo_file): New member comp_dir.
7462 Rename member name to dwo_name. All uses updated.
7463 (hash_dwo_file): Include comp_dir in computation.
7464 (eq_dwo_file): Ditto.
7465 (lookup_dwo_file_slot): New arg comp_dir. All callers updated.
7466 (create_dwo_in_dwp, lookup_dwo_in_dwp, open_and_init_dwo_file): Ditto.
7467
7468 * psymtab.c (read_psymtabs_with_fullname): Don't call
7469 psymtab_to_fullname if the basenames are different.
7470
7471 2013-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7472
7473 * NEWS (Changes in GDB 7.6): Update the data-disassemble for "fullname".
7474 New entry about "fullname" presence.
7475
7476 2013-04-03 Pedro Alves <palves@redhat.com>
7477
7478 * NEWS: Mention x86_64/Cygwin as new native configuration.
7479
7480 2013-04-02 Doug Evans <dje@google.com>
7481
7482 * dwarf2read.c (read_structure_type): Fix typo in comment.
7483
7484 2013-04-02 Pedro Alves <palves@redhat.com>
7485
7486 * NEWS: Mention "set/show debug aarch64", "set/show debug
7487 coff-pe-read" and "set/show debug mach-o".
7488
7489 2013-04-02 Pedro Alves <palves@redhat.com>
7490
7491 * NEWS: Mention "set/show remote trace-buffer-size-packet".
7492
7493 2013-04-02 Eli Zaretskii <eliz@gnu.org>
7494
7495 * Makefile.in (HFILES_NO_SRCDIR): Remove call-cmds.h.
7496 gdb_string.h is now in common/.
7497
7498 2013-04-02 Pedro Alves <palves@redhat.com>
7499
7500 * NEWS: Move "set debug notification" and "set trace-buffer-size"
7501 under "New options".
7502
7503 2013-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7504
7505 Revert this patch:
7506 PR gdb/15275
7507 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
7508
7509 2013-04-02 Pedro Alves <palves@redhat.com>
7510
7511 PR gdb/15275
7512
7513 * remote.c (send_interrupt_sequence): Use remote_serial_write.
7514 (remote_serial_write): New function.
7515 (putpkt_binary, getpkt_or_notif_sane_1): Use remote_serial_write.
7516
7517 2013-04-01 Jiong Wang <jiwang@tilera.com>
7518
7519 * NEWS: Mention TILE-Gx in "New native configurations" and
7520 "New targets" sections.
7521
7522 2013-04-01 Doug Evans <dje@google.com>
7523
7524 * dwarf2read.c (lookup_signatured_type_at_offset): Delete.
7525 (process_enumeration_scope): Simplify.
7526
7527 * dwarf2read.c (struct dwarf2_per_cu_data): Move member
7528 type_unit_group ...
7529 (struct signatured_type): ... to here.
7530 (sig_type_ptr): New typedef.
7531 (type_unit_group): Delete member 't.first_cu'. Move member 'tus'
7532 out of union 't'. All uses updated.
7533 (dw2_get_file_names_reader): Assert not called for a type unit.
7534 (dw2_get_file_names): Assert not called for a type unit or type
7535 unit group.
7536 (build_type_psymtabs_reader): Assert called for a type unit.
7537 (build_type_psymtab_dependencies): Assert called for a type unit group.
7538
7539 * dwarf2read.c (free_dwo_file): Add comment.
7540 (dwarf2_per_objfile_free): Unref dwp bfd.
7541
7542 2013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
7543
7544 * coff-pe-read.c (add_pe_exported_sym): Remove unused 'dll_name_len'.
7545 (add_pe_forwarded_sym): Remove unused 'section', 'dll_name_len'.
7546 (read_pe_exported_syms): Remove unused 'exportix'.
7547 (pe_text_section_offset): Remove unused 'opthdr_ofs', 'num_entries',
7548 'export_rva', 'export_size', 'expptr', 'exp_funcbase', 'expdata',
7549 'erva', 'name_rvas', 'ordinals', 'nexp', 'ordbase', 'dll_name'.
7550
7551 2013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
7552
7553 * breakpoint.c (parse_cond_to_aexpr): Remove unused 'old_chain'.
7554 (print_it_watchpoint): Remove unused 'bl'.
7555 (say_where): Remove unused 'uiout'.
7556 (bpstat_remove_breakpoint_callback): Remove unused 'uiout'.
7557 (bkpt_breakpoint_hit): Remove unused 'b'.
7558 (internal_bkpt_print_it): Remove unused 'uiout'.
7559 * buildsym.c (augment_type_symtab): Remove unused 'i'.
7560
7561 2013-03-31 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
7562
7563 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_float): New function.
7564 (ppc64_sysv_abi_push_dummy_call): Handle complex arguments.
7565
7566 2013-03-29 Doug Evans <dje@google.com>
7567
7568 * dwarf2read.c (open_dwo_file): Renamed from open_dwop_file.
7569 Delete arg is_dwp. All callers updated.
7570 (open_dwp_file): New function.
7571 (open_and_init_dwp_file): Call it.
7572 (get_dwp_file): New function.
7573 (lookup_dwo_cutu): Call it.
7574
7575 * dwarf2read.c (open_and_init_dwp_file): Remove incorrect, and
7576 unnecessary, cleanup.
7577
7578 * dwarf2read.c (lookup_dwo_cutu): Improve complaint text.
7579
7580 * dwarf2read.c (read_cutu_die_from_dwo): New function.
7581 (lookup_dwo_unit): New function.
7582 (init_cutu_and_read_dies): Move DWO handling to new functions.
7583
7584 * dwarf2read.c (struct signatured_type): Tweak comment.
7585 (struct dwo_unit): Tweak comment.
7586 (create_debug_types_hash_table): Tweak comment. Reformat long line.
7587 (create_dwo_debug_info_hash_table): Tweak comment.
7588 (dwarf2_per_cu_offset_and_type): Tweak comment.
7589
7590 * dwarf2read.c (lookup_signatured_type): Remove complaint about
7591 missing .debug_types section.
7592
7593 2013-03-29 Yao Qi <yao@codesourcery.com>
7594
7595 * corelow.c: Include "completer.h".
7596 (_initialize_corelow): Call add_target_with_completer with
7597 argument 'filename_completer'.
7598 * tracepoint.c: Likewise.
7599 * exec.c (_initialize_exec): Likewise.
7600 * target.c (add_target): Rename to ...
7601 (add_target_with_completer): ... this. Call set_cmd_completer
7602 if parameter completer is not NULL.
7603 (add_target): New.
7604 * target.h: Include "command.h".
7605 (add_target_with_completer): Declare it.
7606
7607 2013-03-28 Joel Brobecker <brobecker@adacore.com>
7608
7609 * coffread.c (is_import_fixup_symbol): New function.
7610 (record_minimal_symbol): Use is_import_fixup_symbol to
7611 detect import fixup symbols, and discard them.
7612
7613 2013-03-28 Doug Evans <dje@google.com>
7614
7615 * dwarf2read.c (create_debug_types_hash_table): Don't allocate the
7616 types hash table until we know we need it.
7617
7618 * dwarf2read.c (create_addrmap_from_index): Complain about bad CU
7619 index numbers.
7620
7621 * dwarf2read.c (dw2_get_file_names): Delete arg "objfile".
7622 All callers updated.
7623 (dw2_print_stats): Print #read CUs too.
7624 (dump_die_shallow): Print signatured types better.
7625
7626 * dwarf2read.c (struct dwarf2_per_cu_data): Rename member
7627 info_or_types_section to section. All uses updated.
7628 (struct dwo_unit): Ditto.
7629
7630 2013-03-28 Pedro Alves <palves@redhat.com>
7631
7632 * NEWS (New options): New section.
7633 (New options): Mention set/show remote trace-status-packet.
7634 * remote.c (PACKET_qTStatus): New enumeration value.
7635 (remote_get_trace_status): Skip sending qTStatus if the packet is
7636 disabled. Use packet_ok.
7637 (_initialize_remote): Register a configuration command for
7638 qTStatus packet.
7639
7640 2013-03-28 Doug Evans <dje@google.com>
7641
7642 * symfile.c (find_separate_debug_file): Add comment.
7643 (terminate_after_last_dir_separator): Tweak comment.
7644
7645 * dwarf2read.c (create_partial_symtab): Add forward decl.
7646 (create_partial_symtab): Move to be closer to other psymtab functions.
7647 (process_psymtab_comp_unit_reader, process_psymtab_comp_unit): Ditto.
7648
7649 * dwarf2read.c (dwarf2_physname): Move declaration to better spot.
7650 (compute_symtab_includes): Remove unnecessary forward declaration.
7651 (die_needs_namespace): Add comment marking group of functions for
7652 dwarf2 name computation.
7653
7654 * typeprint.c (_initialize_typeprint): Improve type help text.
7655
7656 * python/python.c (finish_python_initialization): Provide suggestion
7657 for how to tell gdb to find its python files.
7658
7659 2013-03-28 Pedro Alves <palves@redhat.com>
7660
7661 PR gdb/15294
7662
7663 * source.c (_initialize_source): Change back "set listsize" to an
7664 integer command.
7665
7666 2013-03-27 Gareth McMullin <gareth@blacksphere.co.nz>
7667
7668 PR gdb/15275
7669 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
7670
7671 2013-03-27 Pedro Alves <palves@redhat.com>
7672
7673 * top.c (history_size): Rename to ...
7674 (history_size_setshow_var): ... this. Add comment.
7675 (show_commands): Use readline's 'history_length' instead of
7676 computing the history length by calling history_get in a loop.
7677 (set_history_size_command): Error out for sizes over INT_MAX.
7678 Restore previous history size on invalid size.
7679 (init_history): If HISTSIZE is negative, leave the history size as
7680 zero. Add comments.
7681 (init_main): Adjust.
7682
7683 2013-03-27 Pedro Alves <palves@redhat.com>
7684
7685 * coff-pe-read.c (_initialize_coff_pe_read): Rename "set debug
7686 coff_pe_read" command to "set debug coff-pe-read".
7687
7688 2013-03-27 Markus Metzger <markus.t.metzger@intel.com>
7689
7690 * record.c (command_size_to_target_size): Fix size comparison.
7691 Change parameter type from pointer to integer to integer.
7692 Update all users.
7693
7694 2013-03-27 Pierre Muller <muller@sourceware.org>
7695
7696 * windows-nat.c (handle_output_debug_string): Avoid typecast
7697 from integer of different size warning.
7698
7699 2013-03-26 Joel Brobecker <brobecker@adacore.com>
7700
7701 * windows-nat.c (handle_output_debug_string): Add empty line
7702 after local block variable definition.
7703
7704 2013-03-26 Pedro Alves <palves@redhat.com>
7705
7706 * ser-tcp.c (wait_for_connect): Make 'polls' parameter unsigned.
7707 (net_open): Make 'polls' local unsigned.
7708
7709 2013-03-26 Pedro Alves <palves@redhat.com>
7710
7711 * remote.c (_initialize_remote): Make "set remoteaddresssize"
7712 a zuinteger command instead of uinteger.
7713
7714 2013-03-26 Pedro Alves <palves@redhat.com>
7715
7716 * record-full.c (record_full_insn_num): Make it unsigned.
7717 (record_full_check_insn_num, record_full_message)
7718 (record_full_registers_change, record_full_xfer_partial): Remove
7719 record_full_insn_max_num check (it's always != 0).
7720 (record_full_info, record_full_restore): Use %u as format string.
7721 (): Use %u as format string.
7722 (set_record_full_insn_max_num): Remove record_full_insn_max_num
7723 check (it's always != 0).
7724
7725 2013-03-26 Pedro Alves <palves@redhat.com>
7726
7727 * dcache.c (_initialize_dcache): Make the "set dcache line-size"
7728 and "set dcache size" commands zuinteger instead of uinteger.
7729
7730 2013-03-26 Pedro Alves <palves@redhat.com>
7731
7732 * cris-tdep.c (_initialize_cris_tdep): Make the "set cris-version"
7733 command zuinteger instead of uinteger.
7734
7735 2013-03-26 Pedro Alves <palves@redhat.com>
7736
7737 * coff-pe-read.c (_initialize_coff_pe_read): Make the command
7738 zuinteger instead of uinteger.
7739
7740 2013-03-26 Pedro Alves <palves@redhat.com>
7741
7742 * record.c (record_insn_history_size_setshow_var)
7743 (record_call_history_size_setshow_var): New globals.
7744 (command_size_to_target_size): New function.
7745 (cmd_record_insn_history, cmd_record_call_history): Use
7746 command_size_to_target_size instead of cast.
7747 (validate_history_size, set_record_insn_history_size)
7748 (set_record_call_history_size): New functions.
7749 (_initialize_record): Install set_record_insn_history_size and
7750 set_record_call_history_size as "set" hooks of "set record
7751 instruction-history-size" and "set record
7752 function-call-history-size".
7753
7754 2013-03-26 Pedro Alves <palves@redhat.com>
7755
7756 * top.c (gdb_rl_operate_and_get_next): Replace max_input_history
7757 use with history_max_entries use. Remove FIXME note.
7758
7759 2013-03-26 Markus Metzger <markus.t.metzger@intel.com>
7760
7761 * record-btrace.c (record_btrace_close): Call
7762 record_btrace_auto_disable.
7763
7764 2013-03-25 Joel Brobecker <brobecker@adacore.com>
7765
7766 * rs6000-nat.c (fixup_breakpoints): Delete declaration.
7767
7768 2013-03-25 Doug Evans <dje@google.com>
7769
7770 * contrib/cc-with-tweaks.sh: Check exit code of dwp.
7771
7772 2013-03-25 Tom Tromey <tromey@redhat.com>
7773
7774 PR symtab/11462:
7775 * c-exp.y (exp): Add new productions for destructors after '.' and
7776 '->'.
7777 (write_destructor_name): New function.
7778
7779 2013-03-25 Tom Tromey <tromey@redhat.com>
7780
7781 PR c++/9197:
7782 * opencl-lang.c (evaluate_subexp_opencl) <STRUCTOP_STRUCT>: Use
7783 value_struct_elt, not lookup_struct_elt_type.
7784 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
7785 STRUCTOP_PTR>: Use value_struct_elt, not lookup_struct_elt_type.
7786 * expression.h (EVAL_AVOID_SIDE_EFFECTS): Update comment.
7787
7788 2013-03-25 Yao Qi <yao@codesourcery.com>
7789
7790 * ctf.c [USE_WIN32API]: Undef 'mkdir' and use 'mkdir'
7791 instead of '_mkdir'.
7792
7793 2013-03-23 Eli Zaretskii <eliz@gnu.org>
7794
7795 * windows-nat.c (windows_get_absolute_argv0): New function.
7796 * windows-nat.h: Add its prototype.
7797
7798 * main.c (get_init_files): Use filename_ncmp instead of strncmp.
7799 Use IS_DIR_SEPARATOR instead of looking for a character inside
7800 SLASH_STRING. Include filenames.h.
7801 (captured_main) [__MINGW32__]: Make argv[0] absolute, so that
7802 relocate_gdb_directory works when passed gdb_program_name.
7803 Include windows-nat.h.
7804
7805 2013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7806
7807 * exceptions.h (enum errors): New entry TARGET_CLOSE_ERROR.
7808 * remote.c (trace_error): Remove the special handling of '2'.
7809 (readchar) <SERIAL_EOF>
7810 (readchar) <SERIAL_ERROR>
7811 (getpkt_or_notif_sane_1): Use TARGET_CLOSE_ERROR for them.
7812 (remote_get_trace_status): Call throw_exception if EX is
7813 TARGET_CLOSE_ERROR.
7814 * utils.c (perror_with_name): Rename to ...
7815 (throw_perror_with_name): ... here. New parameter errcode, describe it
7816 in the function comment.
7817 (perror_with_name): New function wrapper.
7818 * utils.h (enum errors): New stub declaration.
7819 (throw_perror_with_name): New declaration.
7820
7821 2013-03-22 Pedro Alves <palves@redhat.com>
7822 Yao Qi <yao@codesourcery.com>
7823 Mark Kettenis <kettenis@gnu.org>
7824
7825 * cli/cli-setshow.c (do_set_command) <var_uinteger>:
7826 Don't let the user set the value to UINT_MAX directly.
7827 <var_integer>: Don't let the user set the value to INT_MAX
7828 directly.
7829
7830 2013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7831
7832 * remote.c (remote_unpush_target): New function.
7833 (remote_open_1): Remove two pop_target calls, update one comment, add
7834 comment to target_preopen call. Replace pop_target call by
7835 remote_unpush_target call.
7836 (interrupt_query, readchar, getpkt_or_notif_sane_1): Replace
7837 pop_target calls by remote_unpush_target calls.
7838
7839 2013-03-22 Pedro Alves <palves@redhat.com>
7840
7841 * linux-nat.c (linux_child_follow_fork): Don't call
7842 linux_enable_event_reporting.
7843 (linux_handle_extended_wait): Don't call
7844 linux_enable_event_reporting.
7845
7846 2013-03-22 Pedro Alves <palves@redhat.com>
7847
7848 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Define INSN macro,
7849 use it to rewrite the trampoline buffers with type gdb_byte[], and
7850 undefine the macro. Remove char* cast.
7851
7852 2013-03-21 Doug Evans <dje@google.com>
7853
7854 New commands "mt set per-command {space,time,symtab} {on,off}".
7855 * NEWS: Add entry.
7856 * event-top.c: #include "maint.h".
7857 * main.c: #include "maint.h".
7858 * maint.c: #include <sys/time.h>, <time.h>, block.h, top.h,
7859 timeval-utils.h, maint.h, cli/cli-setshow.h.
7860 (per_command_time, per_command_space): New static globals.
7861 (per_command_symtab): New static global.
7862 (per_command_setlist, per_command_showlist): New static globals.
7863 (struct cmd_stats): Move here from utils.c.
7864 (set_per_command_time): Renamed from set_display_time in utils.c
7865 and moved here. All callers updated.
7866 (set_per_command_space): Renamed from set_display_space in utils.c
7867 and moved here. All callers updated.
7868 (count_symtabs_and_blocks): New function.
7869 (report_command_stats): Moved here from utils.c. Add support for
7870 printing symtab stats. Only print data if enabled before command
7871 executed.
7872 (make_command_stats_cleanup): Ditto.
7873 (sert_per_command_cmd, show_per_command_cmd): New functions.
7874 (_initialize_maint_cmds): Add new commands
7875 mt set per-command {space,time,symtab} {on,off}.
7876 * maint.h: New file.
7877 * top.c: #include "maint.h".
7878 * utils.c (reset_prompt_for_continue_wait_time): New function.
7879 (get_prompt_for_continue_wait_time): New function.
7880 * utils.h (reset_prompt_for_continue_wait_time): Declare
7881 (get_prompt_for_continue_wait_time): Declare.
7882 (make_command_stats_cleanup): Moved to maint.h.
7883 (set_display_time, set_display_space): Moved to maint.h and renamed
7884 to set_per_command_time, set_per_command_space.
7885 * cli/cli-setshow.c (parse_cli_boolean_value): Renamed from
7886 parse_binary_operation and made non-static. Don't call error,
7887 just return an error marker. All callers updated.
7888 * cli/cli-setshow.h (parse_cli_boolean_value): Declare.
7889
7890 2013-03-21 Tom Tromey <tromey@redhat.com>
7891
7892 * symfile.c (alloc_section_addr_info): Update header. Don't set
7893 'num_sections' field.
7894 (build_section_addr_info_from_section_table): Set 'num_sections'.
7895 (build_section_addr_info_from_bfd): Likewise.
7896 (build_section_addr_info_from_objfile): Remove dead loop
7897 condition.
7898 (free_section_addr_info): Unconditionally call xfree.
7899 (relative_addr_info_to_section_offsets, addrs_section_sort)
7900 (addr_info_make_relative, syms_from_objfile_1): Remove dead loop
7901 condition.
7902 (syms_from_objfile_1): Remove dead 'if' condition. Check
7903 'num_sections'.
7904 (add_symbol_file_command): Set 'num_sections'.
7905 * symfile-mem.c (symbol_file_add_from_memory): Set
7906 'num_sections'.
7907 * somread.c (som_symfile_offsets): Remove dead loop condition.
7908 * machoread.c (macho_symfile_offsets): Remove dead 'if'.
7909 * jit.c (jit_bfd_try_read_symtab): Set 'num_sections'.
7910
7911 2013-03-21 Tom Tromey <tromey@redhat.com>
7912
7913 * tracepoint.h (decode_agent_options): Add 'trace_string'
7914 argument.
7915 * tracepoint.c (decode_agent_options): Add 'trace_string'
7916 argument.
7917 (validate_actionline): Update.
7918 (collect_symbol): Add 'trace_string' argument.
7919 (struct add_local_symbols_data) <trace_string>: New field.
7920 (do_collect_symbol): Update.
7921 (add_local_symbols): Add 'trace_string' argument.
7922 (encode_actions_1): Update.
7923 (trace_dump_actions): Update.
7924 * dwarf2loc.c (access_memory): Update.
7925 * ax.h (struct agent_expr) <tracing, trace_string>: New fields.
7926 * ax-general.c (new_agent_expr): Update.
7927 * ax-gdb.h (gen_trace_for_expr, gen_trace_for_var)
7928 (gen_trace_for_return_address): Add argument.
7929 (trace_kludge, trace_string_kludge): Remove.
7930 * ax-gdb.c (trace_kludge, trace_string_kludge): Remove.
7931 (gen_traced_pop, gen_fetch, gen_bitfield_ref, gen_expr): Update.
7932 (gen_trace_for_var): Add 'trace_string' argument.
7933 (gen_trace_for_expr, gen_trace_for_return_address): Likewise.
7934 (gen_printf, agent_eval_command_one): Update.
7935
7936 2013-03-21 Tom Tromey <tromey@redhat.com>
7937
7938 PR exp/15109:
7939 * c-exp.y (yylex): Rewrite to push all tokens onto the FIFO.
7940 Handle FILENAME token.
7941
7942 2013-03-21 Tom Tromey <tromey@redhat.com>
7943
7944 * c-exp.y (YYPRINT): Define.
7945 (c_print_token): New function.
7946
7947 2013-03-21 Tom Tromey <tromey@redhat.com>
7948
7949 * c-exp.y (%union) <sym, ivar, ivec>: Remove.
7950
7951 2013-03-21 Yao Qi <yao@codesourcery.com>
7952
7953 * ctf.c: Include "gdb_stat.h".
7954 [USE_WIN32API]: New macro 'mkdir'.
7955 (ctf_start): Use permission bits macros if they are defined.
7956
7957 2013-03-20 Keith Seitz <keiths@redhat.com>
7958
7959 * breakpoint.h (struct breakpoint): Add comment to
7960 extra_string indicating that this member is mallod'd.
7961 * breakpoint.c (base_breakpoint_dtor): Free extra_string.
7962
7963 2013-03-20 Pedro Alves <palves@redhat.com>
7964
7965 PR gdb/15289
7966
7967 * cli/cli-setshow.c (do_set_command)
7968 <var_uinteger, var_zuinteger>: Use LONGEST for variable holding
7969 the result of parsing the command argument. Throw error if the
7970 value is greater than UINT_MAX. Print the invalid value with
7971 plongest.
7972 <var_integer, var_zinteger>: Use LONGEST for variable holding the
7973 result of parsing the command argument. Throw error if the value
7974 is greater than INT_MAX, not greater or equal. Also throw error
7975 if the value is less than INT_MIN. Print the invalid value with
7976 plongest.
7977 <var_zuinteger_unlimited>: Throw error if the value is greater
7978 than INT_MAX, not greater or equal.
7979 (do_show_command) <var_integer, var_zinteger,
7980 var_zuinteger_unlimited>: Use %d for printing int, not %u.
7981
7982 2013-03-20 Tom Tromey <tromey@redhat.com>
7983
7984 * ax-gdb.c (gen_var_ref): Unconditionally call via computed ops,
7985 if possible.
7986 * dwarf2read.c (read_func_scope): Remove old FIXME.
7987 * eval.c (evaluate_subexp_standard): Check SYMBOL_COMPUTED_OPS,
7988 not LOC_COMPUTED.
7989 * findvar.c (symbol_read_needs_frame, default_read_var_value):
7990 Unconditionally call via computed ops, if possible.
7991 * printcmd.c (address_info): Unconditionally call via computed ops,
7992 if possible.
7993 * stack.c (read_frame_arg): Unconditionally call via computed ops,
7994 if possible.
7995 * symtab.c (register_symbol_computed_impl): Sanity check 'ops'.
7996 * tracepoint.c (scope_info): Unconditionally call via computed ops,
7997 if possible.
7998
7999 2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
8000 Tom Tromey <tromey@redhat.com>
8001
8002 PR symtab/8421:
8003 * coffread.c (coff_register_index): New global.
8004 (process_coff_symbol, coff_read_enum_type): Set
8005 SYMBOL_ACLASS_INDEX.
8006 (_initialize_coffread): Initialize new global.
8007 * dwarf2loc.c (locexpr_find_frame_base_location)
8008 (dwarf2_block_frame_base_locexpr_funcs)
8009 (loclist_find_frame_base_location)
8010 (dwarf2_block_frame_base_loclist_funcs): New.
8011 (dwarf_expr_frame_base_1): Call SYMBOL_BLOCK_OPS, remove internal_error.
8012 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Add location_has_loclist.
8013 * dwarf2loc.h (dwarf2_block_frame_base_locexpr_funcs)
8014 (dwarf2_block_frame_base_loclist_funcs): New.
8015 * dwarf2read.c (dwarf2_locexpr_index, dwarf2_loclist_index)
8016 (dwarf2_locexpr_block_index, dwarf2_loclist_block_index): New
8017 globals.
8018 (read_func_scope): Update.
8019 (fixup_go_packaging, mark_common_block_symbol_computed)
8020 (var_decode_location, new_symbol_full, dwarf2_const_value):
8021 Set SYMBOL_ACLASS_INDEX.
8022 (dwarf2_symbol_mark_computed): Likewise. Add 'is_block' argument.
8023 (_initialize_dwarf2_read): Initialize new globals.
8024 * jit.c (finalize_symtab): Set SYMBOL_ACLASS_INDEX.
8025 * jv-lang.c (add_class_symbol): Set SYMBOL_ACLASS_INDEX.
8026 * mdebugread.c (mdebug_register_index, mdebug_regparm_index): New
8027 globals.
8028 (parse_symbol, psymtab_to_symtab_1): Set SYMBOL_ACLASS_INDEX.
8029 (_initialize_mdebugread): Initialize new globals.
8030 * psympriv.h (struct partial_symbol) <aclass>: Update comment.
8031 * stabsread.c (patch_block_stabs): Set SYMBOL_ACLASS_INDEX.
8032 (stab_register_index, stab_regparm_index): New globals.
8033 (define_symbol, read_enum_type, common_block_end): Set
8034 SYMBOL_ACLASS_INDEX.
8035 (_initialize_stabsread): Initialize new globals.
8036 * symtab.c (next_aclass_value, symbol_impl, symbol_impls): New
8037 globals.
8038 (MAX_SYMBOL_IMPLS): New define.
8039 (register_symbol_computed_impl, register_symbol_block_impl)
8040 (register_symbol_register_impl)
8041 (initialize_ordinary_address_classes): New functions.
8042 (_initialize_symtab): Call initialize_ordinary_address_classes.
8043 * symtab.h (enum address_class) <LOC_FINAL_VALUE>: New constant.
8044 (struct symbol_impl): New.
8045 (SYMBOL_ACLASS_BITS): New define.
8046 (struct symbol) <aclass, ops>: Remove fields.
8047 <aclass_index>: New field.
8048 (symbol_impls): Declare.
8049 (SYMBOL_CLASS, SYMBOL_COMPUTED_OPS, SYMBOL_REGISTER_OPS): Redefine.
8050 (SYMBOL_IMPL, SYMBOL_ACLASS_INDEX): New defines.
8051 (register_symbol_computed_impl, register_symbol_block_impl)
8052 (register_symbol_register_impl): Declare.
8053 (struct symbol_computed_ops): Add location_has_loclist.
8054 (struct symbol_block_ops): New.
8055 (SYMBOL_BLOCK_OPS): New.
8056 * xcoffread.c (process_xcoff_symbol): Set SYMBOL_ACLASS_INDEX.
8057
8058 2013-03-20 Tom Tromey <tromey@redhat.com>
8059
8060 * psymtab.c (find_pc_sect_psymbol, fixup_psymbol_section)
8061 (print_partial_symbols, recursively_search_psymtabs): Use
8062 PSYMBOL_CLASS.
8063
8064 2013-03-20 Pierre Muller <muller@sourceware.org>
8065
8066 * contrib/ari/gdb_ari.sh (OP eol rule): Also check
8067 addtion, subtraction, multiplication and division binary operator.
8068
8069 2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
8070
8071 Code cleanup.
8072 * bfd-target.c (target_bfd_xclose): Remove parameter quitting.
8073 * bsd-kvm.c (bsd_kvm_close): Likewise.
8074 * bsd-uthread.c (bsd_uthread_close): Likewise.
8075 * corelow.c (core_close): Likewise.
8076 (core_close_cleanup): Remove parameter quitting from a caller.
8077 * event-top.c (async_disconnect): Likewise.
8078 * exec.c (exec_close_1): Remove parameter quitting.
8079 * go32-nat.c (go32_close): Likewise.
8080 * linux-nat.c (linux_nat_close): Remove parameter quitting. Remove
8081 parameter quitting from a caller.
8082 * mips-linux-nat.c (super_close): Remove parameter quitting from the
8083 variable.
8084 (mips_linux_close): Remove parameter quitting. Remove parameter
8085 quitting from a caller.
8086 * monitor.c (monitor_close): Remove parameter quitting.
8087 * monitor.h (monitor_close): Likewise.
8088 * record-btrace.c (record_btrace_close): Likewise.
8089 * record-full.c (record_full_close): Likewise.
8090 * remote-m32r-sdi.c (m32r_close): Remove parameter quitting and remove
8091 it also from fprintf_unfiltered.
8092 * remote-mips.c (mips_close): Remove parameter quitting.
8093 (mips_detach): Remove parameter quitting from a caller.
8094 * remote-sim.c (gdbsim_close): Remove parameter quitting.
8095 (gdbsim_close): Remove duplicate function comment. Remove parameter
8096 quitting and remove it also from printf_filtered.
8097 * remote.c (remote_close): Remove parameter quitting.
8098 * solib-svr4.c (enable_break): Remove parameter quitting from a caller.
8099 * target.c (update_current_target): Remove parameter int from to_close
8100 de_fault.
8101 (push_target, unpush_target, pop_target): Remove parameter quitting from
8102 a caller.
8103 (pop_all_targets_above, pop_all_targets): Remove parameter quitting.
8104 Remove parameter quitting from a caller.
8105 (target_preopen): Remove parameter quitting from a caller.
8106 (target_close): Remove parameter quitting. Remove parameter quitting
8107 from a caller two times. Remove parameter quitting also from
8108 fprintf_unfiltered.
8109 * target.h (struct target_ops): Remove parameter quitting and as int
8110 from fields to_xclose and to_close.
8111 (extern struct target_ops current_target):
8112 (target_close, pop_all_targets): Remove parameter quitting. Update the
8113 comment.
8114 (pop_all_targets_above): Remove parameter quitting.
8115 * top.c (quit_target): Remove parameter quitting from a caller.
8116 * tracepoint.c (tfile_close): Remove parameter quitting.
8117 * windows-nat.c (windows_close): Remove parameter quitting.
8118
8119 2013-03-20 Corinna Vinschen <vinschen@redhat.com>
8120
8121 * windows-nat.c (handle_output_debug_string): Replace call
8122 to string_to_core_addr with call to strtoull.
8123
8124 2013-03-20 Yao Qi <yao@codesourcery.com>
8125
8126 * ctf.c (ctf_save_metadata_header): Define macro HOST_ENDIANNESS
8127 and write it to CTF metadata.
8128
8129 2013-03-19 Corinna Vinschen <vinschen@redhat.com>
8130
8131 * windows-nat.c (handle_output_debug_string): Change type of n to
8132 SIZE_T to avoid crash on 64 bit systems.
8133
8134 2013-03-17 Eli Zaretskii <eliz@gnu.org>
8135
8136 * python/python-internal.h (HAVE_SNPRINTF)
8137 [_WIN32 && HAVE_DECL_SNPRINTF]: Define, to avoid compiler warnings
8138 about redefinition of snprintf by pyerrors.h.
8139
8140 2013-03-15 Steve Ellcey <sellcey@mips.com>
8141
8142 * remote-sim.c (sim_command_completer): Make char arguments const.
8143
8144 2013-03-15 Tom Tromey <tromey@redhat.com>
8145
8146 PR c++/15116:
8147 * gdbtypes.c (types_equal): Handle TYPE_CODE_FUNC.
8148
8149 2013-03-14 Tom Tromey <tromey@redhat.com>
8150
8151 * gdb_bfd.c (struct gdb_bfd_data) <crc_computed, crc>:
8152 New fields.
8153 (get_file_crc): Move from symfile.c.
8154 (gdb_bfd_crc): New function.
8155 * gdb_bfd.h (gdb_bfd_crc): Declare.
8156 * objfiles.h (struct objfile) <crc32, crc32_p>: Remove.
8157 * symfile.c (get_file_crc): Move to gdb_bfd.c.
8158 (separate_debug_file_exists): Use gdb_bfd_crc.
8159
8160 2013-03-14 Tom Tromey <tromey@redhat.com>
8161
8162 * symfile.c (get_debug_link_info): Remove.
8163 (find_separate_debug_file_by_debuglink): Use
8164 bfd_get_debug_link_info.
8165
8166 2013-03-14 Tom Tromey <tromey@redhat.com>
8167
8168 * symtab.c (error_in_psymtab_expansion): New function.
8169 (lookup_symbol_aux_quick)
8170 (basic_lookup_transparent_type_quick): Remove "last resort"
8171 code. Use error_in_psymtab_expansion.
8172
8173 2013-03-14 Doug Evans <dje@google.com>
8174 Jan Kratochvil <jan.kratochvil@redhat.com>
8175
8176 * dwarf2read.c (dw2_map_symtabs_matching_filename): Put continue after
8177 any successful compare_filenames_for_search or FILENAME_CMP.
8178 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
8179 * symtab.c (iterate_over_some_symtabs): Likewise.
8180
8181 2013-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8182
8183 * source.c (print_source_lines_base): Make a local copy of
8184 symtab_to_fullname.
8185
8186 2013-03-14 Hui Zhu <hui_zhu@mentor.com>
8187 Jan Kratochvil <jan.kratochvil@redhat.com>
8188
8189 * source.c (print_source_lines_base): Suppress "file" for TUI.
8190
8191 2013-03-14 Keith Seitz <keiths@redhat.com>
8192 Alan Matsuoka <alanm@redhat.com>
8193
8194 PR c++/15203
8195 PR c++/15210
8196 * cp-namespace.c (cp_lookup_nested_symbol): Handle TYPE_CODE_FUNC and
8197 TYPE_CODE_METHOD.
8198 * elfread.c (elf_symtab_read): Handle BSF_GNU_UNIQUE for certain
8199 symbols.
8200
8201 2013-03-14 Yao Qi <yao@codesourcery.com>
8202
8203 * tracepoint.c (tfile_write_status): Write 'stop_desc' of trace
8204 status to tfile if trace is stopped by command 'tstop'.
8205
8206 2013-03-14 Yao Qi <yao@codesourcery.com>
8207
8208 * tracepoint.c (tfile_write_status): Write trace notes and user
8209 name into tfile if they are not NULL.
8210
8211 2013-03-14 Hui Zhu <hui@codesourcery.com>
8212 Yao Qi <yao@codesourcery.com>
8213
8214 * Makefile.in (REMOTE_OBS): Add ctf.o.
8215 (SFILES): Add ctf.c.
8216 (HFILES_NO_SRCDIR): Add ctf.h.
8217 * ctf.c, ctf.h: New files.
8218 * tracepoint.c: Include 'ctf.h'.
8219 (collect_pseudocommand): Remove static.
8220 (trace_save_command): Parse option "-ctf".
8221 Produce different trace file writers per option.
8222 Adjust output message.
8223 (trace_save_tfile, trace_save_ctf): New.
8224 * tracepoint.h (trace_save_tfile, trace_save_ctf): Declare.
8225 * mi/mi-main.c: Include 'ctf.h'.
8226 (mi_cmd_trace_save): Handle option '-ctf'. Call either
8227 trace_save_tfile or trace_save_ctf.
8228 * NEWS: Mention these changes.
8229
8230 2013-03-14 Yao Qi <yao@codesourcery.com>
8231
8232 * tracepoint.c (trace_file_writer_xfree): New.
8233 (struct tfile_writer_data): New.
8234 (tfile_dtor, tfile_can_target_save, tfile_start): New.
8235 (tfile_write_header, tfile_write_regblock_type): New.
8236 (tfile_write_status, tfile_write_uploaded_tsv): New.
8237 (tfile_write_uploaded_tp, tfile_write_definition_end): New.
8238 (tfile_write_raw_data, (tfile_end): New.
8239 (tfile_write_ops): New global variable.
8240 (TRACE_WRITE_R_BLOCK): New macro.
8241 (TRACE_WRITE_M_BLOCK_HEADER): New macro.
8242 (TRACE_WRITE_M_BLOCK_MEMORY): New macro.
8243 (TRACE_WRITE_V_BLOCK): New macro.
8244 (trace_save): Add extra one parameter WRITER. Make it static.
8245 Use WRITER to writer trace.
8246 (tfile_trace_file_writer_new): New.
8247 (trace_save_command): Caller update.
8248 (trace_save_tfile): Write trace data in TFILE format.
8249 * tracepoint.h (struct trace_frame_write_ops): New.
8250 (struct trace_file_write_ops): New.
8251 (struct trace_file_writer): New.
8252 (trace_save): Remove its declaration.
8253 (trace_save_tfile): Declare it.
8254 * mi/mi-main.c (mi_cmd_trace_save): Call trace_save_tfile
8255 instead of trace_save.
8256
8257 2013-03-13 Pedro Alves <palves@redhat.com>
8258
8259 * hppa-hpux-nat.c (hppa_hpux_save_state_offset): Make static.
8260
8261 2013-03-13 Pedro Alves <palves@redhat.com>
8262
8263 * dbxread.c (read_ofile_symtab, process_one_symbol): Remove
8264 commented out code.
8265 * demangle.c (current_demangling_style_string): Make it const.
8266 (set_demangling_command): Assert the demangling style is known.
8267 Remove all handling of unknown styles. Set
8268 'current_demangling_style_string' to an element of the
8269 demangling_style_names array.
8270 (set_demangling_style): Delete.
8271 (_initialize_demangler): Set current_demangling_style_string to the
8272 element of the demangling_style_names array that corresponds to
8273 the default demangling style. Remove FIXME note. Don't call
8274 set_demangling_style.
8275 * gdb-demangle.h (set_demangling_style): Remove declaration.
8276
8277 2013-03-13 Pedro Alves <palves@redhat.com>
8278
8279 * ada-lang.c (struct add_partial_datum) <text, text0, word>: Make
8280 fields const.
8281 (ada_make_symbol_completion_list): Make "text0" parameter const.
8282 * ax-gdb.c (agent_eval_command_one): Make "exp" parameter const.
8283 * breakpoint.c (condition_completer): Make "text" and "word"
8284 parameters const. Adjust.
8285 (check_tracepoint_command): Adjust to validate_actionline
8286 prototype change.
8287 (catch_syscall_completer): Make "text" and "word" parameters
8288 const.
8289 * cli/cli-cmds.c (show_user): Make "comname" local const.
8290 (valid_command_p): Make "command" parameter const.
8291 (alias_command): Make "alias_prefix" and "command_prefix" locals
8292 const.
8293 * cli/cli-decode.c (add_cmd): Make "name" parameter const.
8294 (add_alias_cmd): Make "name" and "oldname" parameters const.
8295 Adjust. No longer make copy of OLDNAME.
8296 (add_prefix_cmd, add_abbrev_prefix_cmd, add_set_or_show_cmd)
8297 (add_setshow_cmd_full, add_setshow_enum_cmd)
8298 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
8299 (add_setshow_filename_cmd, add_setshow_string_cmd)
8300 (add_setshow_string_noescape_cmd)
8301 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
8302 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
8303 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd)
8304 (delete_cmd, add_info, add_info_alias, add_com, add_com_alias):
8305 Make "name" parameter const.
8306 (help_cmd): Rename "command" parameter to "arg". New const local
8307 "command".
8308 (find_cmd): Make "command" parameter const.
8309 (lookup_cmd_1): Make "text" parameter pointer to const. Adjust to
8310 deprecated_cmd_warning prototype change.
8311 (undef_cmd_error): Make "cmdtype" parameter const.
8312 (lookup_cmd): Make "line" parameter const.
8313 (deprecated_cmd_warning): Change type of "text" parameter to
8314 pointer to const char, from pointer to pointer to char. Adjust.
8315 (lookup_cmd_composition): Make "text" parameter const.
8316 (complete_on_cmdlist, complete_on_enum): Make "text" and "word"
8317 parameters const.
8318 * cli/cli-decode.h (struct cmd_list_element) <name>: Make field
8319 const.
8320 * cli/cli-script.c (validate_comname): Make "tem" local const.
8321 (define_command): New const local "tem_c". Use it in calls to
8322 lookup_cmd.
8323 (document_command): Make "tem" and "comfull" locals const.
8324 (show_user_1): Make "prefix" and "name" parameters const.
8325 * cli-script.h (show_user_1): Make "prefix" and "name" parameters
8326 const.
8327 * command.h (add_cmd, add_alias_cmd, add_prefix_cmd)
8328 (add_abbrev_prefix_cmd, completer_ftype, lookup_cmd, lookup_cmd_1)
8329 (deprecated_cmd_warning, lookup_cmd_composition, add_com)
8330 (add_com_alias, add_info, add_info_alias, complete_on_cmdlist)
8331 (complete_on_enum, add_setshow_enum_cmd)
8332 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
8333 (add_setshow_filename_cmd, add_setshow_string_cmd)
8334 (add_setshow_string_noescape_cmd)
8335 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
8336 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
8337 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
8338 Change prototypes, constifying strings.
8339 * completer.c (noop_completer, filename_completer): Make "text"
8340 and "prefix" parameters const.
8341 (location_completer, expression_completer)
8342 (complete_line_internal): Make "text" and "prefix" parameters
8343 const and adjust.
8344 (command_completer, signal_completer): Make "text" and "prefix"
8345 parameters const.
8346 * completer.h (noop_completer, filename_completer)
8347 (expression_completer, location_completer, command_completer)
8348 (signal_completer): Change prototypes.
8349 * corefile.c (complete_set_gnutarget): Make "text" and "word"
8350 parameters const.
8351 * cp-abi.c (cp_abi_completer): Likewise.
8352 * expression.h (parse_expression_for_completion): Change
8353 prototype.
8354 * f-lang.c (f_make_symbol_completion_list): Make "text" and "word"
8355 parameters const.
8356 * infcmd.c (_initialize_infcmd): Make "cmd_name" local const.
8357 * infrun.c (handle_completer): Make "text" and "word" parameters
8358 const.
8359 * interps.c (interpreter_completer): Make "text" and "word"
8360 parameters const.
8361 * language.h (struct language_defn)
8362 <la_make_symbol_completion_list>: Make "text" and "word"
8363 parameters const.
8364 * parse.c (parse_exp_1): Move const hack to parse_exp_in_context.
8365 (parse_exp_in_context): Rename to ...
8366 (parse_exp_in_context_1): ... this.
8367 (parse_exp_in_context): Reimplement, with const hack from
8368 parse_exp_1.
8369 (parse_expression_for_completion): Make "string" parameter const.
8370 * printcmd.c (decode_format): Make "string_ptr" parameter pointer
8371 to pointer to const char. Adjust.
8372 (print_command_1): Make "exp" parameter const.
8373 (output_command): Rename to ...
8374 (output_command_const): ... this. Make "exp" parameter const.
8375 (output_command): Reimplement.
8376 (x_command): Adjust.
8377 (display_command): Rename "exp" parameter to "arg". New "exp"
8378 local, const version of "arg".
8379 * python/py-auto-load.c (gdbpy_initialize_auto_load): Make
8380 "cmd_name" local const.
8381 * python/py-cmd.c (cmdpy_destroyer): Cast const away in xfree
8382 call.
8383 (cmdpy_completer): Make "text" and "word" parameters const.
8384 (gdbpy_parse_command_name): Make "prefix_text2" local const.
8385 * python/py-param.c (add_setshow_generic): Make "tmp_name" local
8386 const.
8387 * remote.c (_initialize_remote): Make "cmd_name" local const.
8388 * symtab.c (language_search_unquoted_string): Make "text" and "p"
8389 parameters const. Adjust.
8390 (completion_list_add_fields): Make "sym_text", "text" and "word"
8391 parameters const.
8392 (struct add_name_data) <sym_text, text, word>: Make fields const.
8393 (default_make_symbol_completion_list_break_on): Make "text" and
8394 "word" parameters const. Adjust locals.
8395 (default_make_symbol_completion_list)
8396 (make_symbol_completion_list, make_symbol_completion_type)
8397 (make_symbol_completion_list_fn): Make "text" and "word"
8398 parameters const.
8399 (make_file_symbol_completion_list): Make "text", "word" and
8400 "srcfile" parameters const. Adjust locals.
8401 (add_filename_to_list): Make "text" and "word" parameters const.
8402 (struct add_partial_filename_data) <text, word>: Make fields
8403 const.
8404 (make_source_files_completion_list): Make "text" and "word"
8405 parameters const.
8406 * symtab.h (default_make_symbol_completion_list_break_on)
8407 (default_make_symbol_completion_list, make_symbol_completion_list)
8408 (make_symbol_completion_type enum type_code)
8409 (make_symbol_completion_list_fn make_file_symbol_completion_list)
8410 (make_source_files_completion_list): Change prototype.
8411 * top.c (execute_command): Adjust to pass pointer to pointer to
8412 const char to lookup_cmd, and to deprecated_cmd_warning prototype
8413 change.
8414 (set_verbose): Make "cmdname" local const.
8415 * tracepoint.c (decode_agent_options): Make "exp" parameter const,
8416 and adjust.
8417 (validate_actionline): Make "line" parameter a pointer to const
8418 char, and adjust.
8419 (encode_actions_1): Make "action_exp" local const, and adjust.
8420 (encode_actions): Adjust.
8421 (replace_comma): Delete.
8422 (trace_dump_actions): Make "action_exp" and "next_comma" locals
8423 const, and adjust. Don't frob the action string while splitting
8424 it at commas. Instead, make a copy of each split substring in
8425 turn.
8426 (trace_dump_command): Adjust to validate_actionline prototype
8427 change.
8428 * tracepoint.h (decode_agent_options, decode_agent_options)
8429 (encode_actions, validate_actionline): Change prototypes.
8430 * valprint.h (output_command): Delete declaration.
8431 (output_command_const): Declare.
8432 * value.c (function_destroyer): Cast const away in xfree call.
8433
8434 2013-03-13 Pedro Alves <palves@redhat.com>
8435
8436 * ada-lang.c (ada_decode_symbol): Cast away constness of GSYMBOL
8437 rather than casting 'const char * const *' to 'const char **'.
8438 * ada-lex.l (processInt): Make "trailer" local const. Remove
8439 'const char **' cast.
8440 * arm-linux-tdep.c (arm_stap_parse_special_token): Add 'char *'
8441 locals, and use those as strtol output pointer, instead than doing
8442 invalid casts to from 'const char **' to 'char **'.
8443 (_initialize_demangle): Remove cast.
8444 * i386-tdep.c (i386_stap_parse_special_token): : Add 'char *'
8445 locals, and use those as strtol output pointer, instead than doing
8446 invalid casts to from 'const char **' to 'char **'.
8447 * solib-dsbt.c (dsbt_get_initial_loadmaps): Remove 'gdb_byte**'
8448 casts.
8449 * stap-probe.c (stap_parse_register_operand)
8450 (stap_parse_single_operand): Likewise.
8451
8452 2013-03-13 Yao Qi <yao@codesourcery.com>
8453
8454 * tracepoint.c (tfile_get_trace_state_variable_value): Look for
8455 the last matched 'V' blcok in trace frame.
8456
8457 2013-03-12 Joel Brobecker <brobecker@adacore.com>
8458
8459 * NEWS: Create a new section for the next release branch.
8460 Rename the section of the current branch, now that it has
8461 been cut.
8462
8463 2013-03-12 Joel Brobecker <brobecker@adacore.com>
8464
8465 GDB 7.6 branch created (branch timestamp: 2013-03-12 22:15 UTC)
8466 * version.in: Bump version to 7.6.50.20130312-cvs.
8467
8468 2013-03-12 Keith Seitz <keiths@redhat.com>
8469
8470 * mi/mi-cmds.h (mi_execute_command): Make "cmd" const.
8471 * mi/mi-interp.c (mi_interpreter_exec): Make "command" const.
8472 Remove temporary copy of input string.
8473 (mi_execute_command_wrapper): Make "cmd" const.
8474 * mi/mi-main.c (mi_execute_command): Make "string_ptr" const.
8475 * mi/mi-parse.c (mi_parse_argv): Make "args" const.
8476 Use const strings.
8477 (mi_parse): Make "cmd" const.
8478 Use const strings.
8479 * mi/mi-parse.h (mi_parse): Make "cmd" const.
8480
8481 2013-03-12 Keith Seitz <keiths@redhat.com>
8482
8483 * ada-lang.c (ada_read_renaming_var_value): Pass const
8484 pointer to expression string to parse_exp_1.
8485 (create_excep_cond_exprs): Likewise.
8486 * ax-gdb.c (agent_eval_command_one): Likewise.
8487 (maint_agent_printf_command): Likewise.
8488 Constify much of the string handling/parsing.
8489 * breakpoint.c (set_breakpoint_condition): Pass const
8490 pointer to expression string to parse_exp_1.
8491 (update_watchpoint): Likewise.
8492 (parse_cmd_to_aexpr): Constify string handling.
8493 Pass const pointer to parse_exp_1.
8494 (init_breakpoint_sal): Pass const pointer to parse_exp_1.
8495 (find_condition_and_thread): Likewise.
8496 Make TOK const.
8497 (watch_command_1): Make "arg" const.
8498 Constify string handling.
8499 Copy the expression string instead of changing the input
8500 string.
8501 (update_breakpoint_location): Pass const pointer to
8502 parse_exp_1.
8503 * eval.c (parse_and_eval_address): Make "exp" const.
8504 (parse_to_comma_and_eval): Make "expp" const.
8505 (parse_and_eval): Make "exp" const.
8506 * expression.h (parse_expression): Make argument const.
8507 (parse_exp_1): Make first argument const.
8508 * findcmd.c (parse_find_args): Treat "args" as const.
8509 * linespec.c (parse_linespec): Pass const pointer to
8510 linespec_expression_to_pc.
8511 (linespec_expression_to_pc): Make "exp_ptr" const.
8512 * parse.c (parse_exp_1): Make "stringptr" const.
8513 Make a copy of the expression to pass to parse_exp_in_context until
8514 this whole interface can be constified.
8515 (parse_expression): Make "string" const.
8516 * printcmd.c (ui_printf): Treat "arg" as const.
8517 Handle const strings.
8518 * tracepoint.c (validate_actionline): Pass const pointer to
8519 all calls to parse_exp_1.
8520 (encode_actions_1): Likewise.
8521 * value.h (parse_to_comma_and_eval): Make argument const.
8522 (parse_and_eval_address): Likewise.
8523 (parse_and_eval): Likewise.
8524 * varobj.c (varobj_create): Pass const pointer to parse_exp_1.
8525 (varobj_set_value): Likewise.
8526 * cli/cli-cmds.c (disassemble_command): Treat "arg" as const and
8527 constify string handling.
8528 Pass const pointers to parse_and_eval_address and
8529 parse_to_comman_and_eval.
8530 * cli/cli-utils.c (skip_to_space): Rename to ...
8531 (skip_to_space_const): ... this. Handle const strings.
8532 * cli/cli-utils.h (skip_to_space): Turn into macro which invokes
8533 skip_to_space_const.
8534 (skip_to_space_const): Declare.
8535 * common/format.c (parse_format_string): Make "arg" const.
8536 Handle const strings.
8537 * common/format.h (parse_format_string): Make "arg" const.
8538 * gdbserver/ax.c (ax_printf): Make "format" const.
8539 * python/python.c (gdbpy_parse_and_eval): Do not make a copy
8540 of the expression string.
8541
8542 2013-03-12 Hui Zhu <hui@codesourcery.com>
8543
8544 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Update error message.
8545
8546 2013-03-12 Yao Qi <yao@codesourcery.com>
8547 Hui Zhu <hui@codesourcery.com>
8548
8549 * dwarf2loc.c (access_memory): Change nbits to nbytes in gdb_assert.
8550 (dwarf2_compile_expr_to_ax): Call access_memory in DW_OP_deref and
8551 DW_OP_deref_size.
8552
8553 2013-03-12 Paul Hilfinger <hilfingr@adacore.com>
8554
8555 * ada-lex.l (rules): Only recognize 'thread' as a
8556 delimiter when followed by numerals, as for c-exp.y.
8557 Use new rewind_to_char function to rewind the input for
8558 expression-delimiting tokens.
8559 (rewind_to_char): New function.
8560
8561 2013-03-11 Pedro Alves <palves@redhat.com>
8562 Jan Kratochvil <jan.kratochvil@redhat.com>
8563
8564 * configure: Regenerate.
8565 * configure.ac (check dynamic export flag): Link python test with
8566 $PYTHON_LIBS.
8567
8568 2013-03-11 Doug Evans <dje@google.com>
8569 Keith Seitz <keiths@redhat.com>
8570
8571 * linespec.c (find_linespec_symbols): Call find_function_symbols
8572 first, and then call lookup_prefix_sym/find_method.
8573
8574 2013-03-11 Pedro Alves <palves@redhat.com>
8575
8576 * charset.c (convert_between_encodings): Don't cast between
8577 different pointer to pointer types. Instead, make the 'inp' local
8578 be of the type iconv expects.
8579 (wchar_iterate): Don't cast between different pointer to pointer
8580 types. Instead, use new pointer local of the type iconv expects.
8581 * target.c (target_read_stralloc, target_fileio_read_stralloc):
8582 Add new local of type char pointer, and use it to get a
8583 char/string view of the byte buffer, instead of casting between
8584 pointer to pointer types.
8585
8586 2013-03-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
8587
8588 * remote.c (remote_set_trace_buffer_size): Move != operator
8589 to the start of next line to fix an ARI warning.
8590
8591 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8592
8593 * NEWS: Add record changes.
8594
8595 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8596
8597 * record-btrace.c (btrace_insn_history): Omit the pc prefix in
8598 the instruction history disassembly.
8599 * disasm.c (dump_insns): Omit the pc prefix, if requested.
8600 * disasm.h (DISASSEMBLY_OMIT_PC): New.
8601
8602 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8603
8604 * Makefile.in (SFILES): Add record-btrace.c
8605 (COMMON_OBS): Add record-btrace.o
8606 * record-btrace.c: New.
8607 * objfiles.c: Include btrace.h.
8608 (free_objfile): call btrace_free_objfile.
8609
8610 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8611
8612 * target.c (target_call_history, target_call_history_from,
8613 target_call_history_range): New.
8614 * target.h (target_ops) <to_call_history, to_call_history_from,
8615 to_call_history_range>: New fields.
8616 (target_call_history, target_call_history_from,
8617 target_call_history_range): New declaration.
8618 * record.c (get_call_history_modifiers, cmd_record_call_history,
8619 record_call_history_size): New.
8620 (_initialize_record): Add the "record function-call-history" command.
8621 Add "set/show record function-call-history-size" commands.
8622 * record.h (record_print_flag): New.
8623
8624 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8625
8626 * target.h (target_ops) <to_insn_history, to_insn_history_from,
8627 to_insn_history_range>: New fields.
8628 (target_insn_history): New.
8629 (target_insn_history_from): New.
8630 (target_insn_history_range): New.
8631 * target.c (target_insn_history): New.
8632 (target_insn_history_from): New.
8633 (target_insn_history_range): New.
8634 * record.c: Include cli/cli-utils.h, disasm.h, ctype.h.
8635 (record_insn_history_size): New.
8636 (get_insn_number): New.
8637 (get_context_size): New.
8638 (no_chunk): New.
8639 (get_insn_history_modifiers): New.
8640 (cmd_record_insn_history): New.
8641 (_initialize_record): Add "set/show record instruction-history-size"
8642 command. Add "record instruction-history" command.
8643
8644 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8645
8646 * record.h (record_disconnect): New.
8647 (record_detach): New.
8648 (record_mourn_inferior): New.
8649 (record_kill): New.
8650 * record-full.c (record_disconnect, record_detach,
8651 record_mourn_inferior, record_kill): Move to...
8652 * record.c: ...here.
8653 (DEBUG): New.
8654 (record_stop): New.
8655 (record_unpush): New.
8656 (cmd_record_stop): Call record_stop. Replace unpush_target
8657 call with record_unpush call.
8658 (record_disconnect, record_detach): Assert that the target
8659 is of record stratum. Call record_unpush, record_stop, and
8660 DEBUG.
8661 (record_mourn_inferior, record_kill): Assert that the target
8662 is of record stratum. Call record_unpush and DEBUG.
8663
8664 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8665
8666 * record-full.h, record-full.c (record_memory_query): Rename
8667 to ...
8668 (record_full_memory_query): ...this. Update all users.
8669 (record_arch_list_add_reg): Rename to ...
8670 (record_full_arch_list_add_reg): ...this. Update all users.
8671 (record_arch_list_add_mem): Rename to ...
8672 (record_full_arch_list_add_mem): ...this. Update all users.
8673 (record_arch_list_add_end): Rename to ...
8674 (record_full_arch_list_add_end): ...this. Update all users.
8675 (record_gdb_operation_disable_set): Rename to ...
8676 (record_full_gdb_operation_disable_set): ...this.
8677 Update all users.
8678
8679 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8680
8681 * record-full.c (DEFAULT_RECORD_INSN_MAX_NUM): Renamed to ...
8682 (DEFAULT_RECORD_FULL_INSN_MAX_NUM): ... this. Updated all users.
8683 (RECORD_IS_REPLAY): Renamed to ...
8684 (RECORD_FULL_IS_REPLAY): ... this. Updated all users.
8685 (RECORD_FILE_MAGIC): Renamed to ...
8686 (RECORD_FULL_FILE_MAGIC): ... this. Updated all users.
8687 (record_mem_entry): Renamed to ...
8688 (record_full_mem_entry): ... this. Updated all users.
8689 (record_reg_entry): Renamed to ...
8690 (record_full_reg_entry): ... this. Updated all users.
8691 (record_end_entry): Renamed to ...
8692 (record_full_end_entry): ... this. Updated all users.
8693 (record_type) <record_end, record_reg, record_mem>: Renamed
8694 to ...
8695 (record_full_type) <record_full_end, record_full_reg,
8696 record_full_mem>: ... this. Updated all users.
8697 (record_entry): Renamed to ...
8698 (record_full_entry): ... this. Updated all users.
8699 (record_core_buf_entry): Renamed to ...
8700 (record_full_core_buf_entry): ... this. Updated all users.
8701 (record_core_regbuf): Renamed to ...
8702 (record_full_core_regbuf): ... this. Updated all users.
8703 (record_core_start): Renamed to ...
8704 (record_full_core_start): ... this. Updated all users.
8705 (record_core_end): Renamed to ...
8706 (record_full_core_end): ... this. Updated all users.
8707 (record_core_buf_list): Renamed to ...
8708 (record_full_core_buf_list): ... this. Updated all users.
8709 (record_first): Renamed to ...
8710 (record_full_first): ... this. Updated all users.
8711 (record_list): Renamed to ...
8712 (record_full_list): ... this. Updated all users.
8713 (record_arch_list_head): Renamed to ...
8714 (record_full_arch_list_head): ... this. Updated all users.
8715 (record_arch_list_tail): Renamed to ...
8716 (record_full_arch_list_tail): ... this. Updated all users.
8717 (record_stop_at_limit): Renamed to ...
8718 (record_full_stop_at_limit): ... this. Updated all users.
8719 (record_insn_max_num): Renamed to ...
8720 (record_full_insn_max_num): ... this. Updated all users.
8721 (record_insn_num): Renamed to ...
8722 (record_full_insn_num): ... this. Updated all users.
8723 (record_insn_count): Renamed to ...
8724 (record_full_insn_count): ... this. Updated all users.
8725 (record_ops): Renamed to ...
8726 (record_full_ops): ... this. Updated all users.
8727 (record_core_ops): Renamed to ...
8728 (record_full_core_ops): ... this. Updated all users.
8729 (set_record_cmdlist): Renamed to ...
8730 (set_record_full_cmdlist): ... this. Updated all users.
8731 (show_record_cmdlist): Renamed to ...
8732 (show_record_full_cmdlist): ... this. Updated all users.
8733 (record_cmdlist): Renamed to ...
8734 (record_full_cmdlist): ... this. Updated all users.
8735 (record_beneath_to_resume_ops): Renamed to ...
8736 (record_full_beneath_to_resume_ops): ... this. Updated all users.
8737 (record_beneath_to_resume): Renamed to ...
8738 (record_full_beneath_to_resume): ... this. Updated all users.
8739 (record_beneath_to_wait_ops): Renamed to ...
8740 (record_full_beneath_to_wait_ops): ... this. Updated all users.
8741 (record_beneath_to_wait): Renamed to ...
8742 (record_full_beneath_to_wait): ... this. Updated all users.
8743 (record_beneath_to_store_registers_ops): Renamed to ...
8744 (record_full_beneath_to_store_registers_ops): ... this.
8745 Updated all users.
8746 (record_beneath_to_store_registers): Renamed to ...
8747 (record_full_beneath_to_store_registers): ... this.
8748 Updated all users.
8749 (record_beneath_to_xfer_partial_ops): Renamed to ...
8750 (record_full_beneath_to_xfer_partial_ops): ... this.
8751 Updated all users.
8752 (record_beneath_to_xfer_partial): Renamed to ...
8753 (record_full_beneath_to_xfer_partial): ... this.
8754 Updated all users.
8755 (record_beneath_to_insert_breakpoint): Renamed to ...
8756 (record_full_beneath_to_insert_breakpoint): ... this.
8757 Updated all users.
8758 (record_beneath_to_stopped_by_watchpoint): Renamed to ...
8759 (record_full_beneath_to_stopped_by_watchpoint): ... this.
8760 Updated all users.
8761 (record_beneath_to_stopped_data_address): Renamed to ...
8762 (record_full_beneath_to_stopped_data_address): ... this.
8763 Updated all users.
8764 (record_beneath_to_async): Renamed to ...
8765 (record_full_beneath_to_async): ... this. Updated all users.
8766 (record_goto_insn): Renamed to ...
8767 (record_full_goto_insn): ... this. Updated all users.
8768 (record_save): Renamed to ...
8769 (record_full_save): ... this. Updated all users.
8770 (record_reg_alloc): Renamed to ...
8771 (record_full_reg_alloc): ... this. Updated all users.
8772 (record_reg_release): Renamed to ...
8773 (record_full_reg_release): ... this. Updated all users.
8774 (record_mem_alloc): Renamed to ...
8775 (record_full_mem_alloc): ... this. Updated all users.
8776 (record_mem_release): Renamed to ...
8777 (record_full_mem_release): ... this. Updated all users.
8778 (record_end_alloc): Renamed to ...
8779 (record_full_end_alloc): ... this. Updated all users.
8780 (record_end_release): Renamed to ...
8781 (record_full_end_release): ... this. Updated all users.
8782 (record_entry_release): Renamed to ...
8783 (record_full_entry_release): ... this. Updated all users.
8784 (record_list_release): Renamed to ...
8785 (record_full_list_release): ... this. Updated all users.
8786 (record_list_release_following): Renamed to ...
8787 (record_full_list_release_following): ... this.
8788 Updated all users.
8789 (record_list_release_first): Renamed to ...
8790 (record_full_list_release_first): ... this. Updated all users.
8791 (record_arch_list_add): Renamed to ...
8792 (record_full_arch_list_add): ... this. Updated all users.
8793 (record_get_loc): Renamed to ...
8794 (record_full_get_loc): ... this. Updated all users.
8795 (record_check_insn_num): Renamed to ...
8796 (record_full_check_insn_num): ... this. Updated all users.
8797 (record_arch_list_cleanups): Renamed to ...
8798 (record_full_arch_list_cleanups): ... this. Updated all users.
8799 (record_message): Renamed to ...
8800 (record_full_message): ... this. Updated all users.
8801 (record_message_wrapper): Renamed to ...
8802 (record_full_message_wrapper): ... this. Updated all users.
8803 (record_message_wrapper_safe): Renamed to ...
8804 (record_full_message_wrapper_safe): ... this. Updated all users.
8805 (record_gdb_operation_disable): Renamed to ...
8806 (record_full_gdb_operation_disable): ... this. Updated all users.
8807 (record_hw_watchpoint): Renamed to ...
8808 (record_full_hw_watchpoint): ... this. Updated all users.
8809 (record_exec_insn): Renamed to ...
8810 (record_full_exec_insn): ... this. Updated all users.
8811 (record_restore): Renamed to ...
8812 (record_full_restore): ... this. Updated all users.
8813 (record_async_inferior_event_token): Renamed to ...
8814 (record_full_async_inferior_event_token): ... this.
8815 Updated all users.
8816 (record_async_inferior_event_handler): Renamed to ...
8817 (record_full_async_inferior_event_handler): ... this.
8818 Updated all users.
8819 (record_core_open_1): Renamed to ...
8820 (record_full_core_open_1): ... this. Updated all users.
8821 (record_open_1): Renamed to ...
8822 (record_full_open_1): ... this. Updated all users.
8823 (record_open): Renamed to ...
8824 (record_full_open): ... this. Updated all users.
8825 (record_close): Renamed to ...
8826 (record_full_close): ... this. Updated all users.
8827 (record_resume_step): Renamed to ...
8828 (record_full_resume_step): ... this. Updated all users.
8829 (record_resumed): Renamed to ...
8830 (record_full_resumed): ... this. Updated all users.
8831 (record_execution_dir): Renamed to ...
8832 (record_full_execution_dir): ... this. Updated all users.
8833 (record_resume): Renamed to ...
8834 (record_full_resume): ... this. Updated all users.
8835 (record_get_sig): Renamed to ...
8836 (record_full_get_sig): ... this. Updated all users.
8837 (record_sig_handler): Renamed to ...
8838 (record_full_sig_handler): ... this. Updated all users.
8839 (record_wait_cleanups): Renamed to ...
8840 (record_full_wait_cleanups): ... this. Updated all users.
8841 (record_wait_1): Renamed to ...
8842 (record_full_wait_1): ... this. Updated all users.
8843 (record_wait): Renamed to ...
8844 (record_full_wait): ... this. Updated all users.
8845 (record_stopped_by_watchpoint): Renamed to ...
8846 (record_full_stopped_by_watchpoint): ... this. Updated all users.
8847 (record_disconnect): Renamed to ...
8848 (record_full_disconnect): ... this. Updated all users.
8849 (record_detach): Renamed to ...
8850 (record_full_detach): ... this. Updated all users.
8851 (record_mourn_inferior): Renamed to ...
8852 (record_full_mourn_inferior): ... this. Updated all users.
8853 (record_kill): Renamed to ...
8854 (record_full_kill): ... this. Updated all users.
8855 (record_stopped_data_address): Renamed to ...
8856 (record_full_stopped_data_address): ... this. Updated all users.
8857 (record_registers_change): Renamed to ...
8858 (record_full_registers_change): ... this. Updated all users.
8859 (record_store_registers): Renamed to ...
8860 (record_full_store_registers): ... this. Updated all users.
8861 (record_xfer_partial): Renamed to ...
8862 (record_full_xfer_partial): ... this. Updated all users.
8863 (record_breakpoint): Renamed to ...
8864 (record_full_breakpoint): ... this. Updated all users.
8865 (record_breakpoint_p): Renamed to ...
8866 (record_full_breakpoint_p): ... this. Updated all users.
8867 (record_breakpoints): Renamed to ...
8868 (record_full_breakpoints): ... this. Updated all users.
8869 (record_sync_record_breakpoints): Renamed to ...
8870 (record_full_sync_record_breakpoints): ... this.
8871 Updated all users.
8872 (record_init_record_breakpoints): Renamed to ...
8873 (record_full_init_record_breakpoints): ... this.
8874 Updated all users.
8875 (record_insert_breakpoint): Renamed to ...
8876 (record_full_insert_breakpoint): ... this. Updated all users.
8877 (record_remove_breakpoint): Renamed to ...
8878 (record_full_remove_breakpoint): ... this. Updated all users.
8879 (record_can_execute_reverse): Renamed to ...
8880 (record_full_can_execute_reverse): ... this. Updated all users.
8881 (record_get_bookmark): Renamed to ...
8882 (record_full_get_bookmark): ... this. Updated all users.
8883 (record_goto_bookmark): Renamed to ...
8884 (record_full_goto_bookmark): ... this. Updated all users.
8885 (record_async): Renamed to ...
8886 (record_full_async): ... this. Updated all users.
8887 (record_can_async_p): Renamed to ...
8888 (record_full_can_async_p): ... this. Updated all users.
8889 (record_is_async_p): Renamed to ...
8890 (record_full_is_async_p): ... this. Updated all users.
8891 (record_execution_direction): Renamed to ...
8892 (record_full_execution_direction): ... this. Updated all users.
8893 (record_info): Renamed to ...
8894 (record_full_info): ... this. Updated all users.
8895 (record_delete): Renamed to ...
8896 (record_full_delete): ... this. Updated all users.
8897 (record_is_replaying): Renamed to ...
8898 (record_full_is_replaying): ... this. Updated all users.
8899 (record_goto_entry): Renamed to ...
8900 (record_full_goto_entry): ... this. Updated all users.
8901 (record_goto_begin): Renamed to ...
8902 (record_full_goto_begin): ... this. Updated all users.
8903 (record_goto_end): Renamed to ...
8904 (record_full_goto_end): ... this. Updated all users.
8905 (record_goto): Renamed to ...
8906 (record_full_goto): ... this. Updated all users.
8907 (init_record_ops): Renamed to ...
8908 (init_record_full_ops): ... this. Updated all users.
8909 (record_core_resume): Renamed to ...
8910 (record_full_core_resume): ... this. Updated all users.
8911 (record_core_kill): Renamed to ...
8912 (record_full_core_kill): ... this. Updated all users.
8913 (record_core_fetch_registers): Renamed to ...
8914 (record_full_core_fetch_registers): ... this. Updated all users.
8915 (record_core_prepare_to_store): Renamed to ...
8916 (record_full_core_prepare_to_store): ... this. Updated all users.
8917 (record_core_store_registers): Renamed to ...
8918 (record_full_core_store_registers): ... this. Updated all users.
8919 (record_core_xfer_partial): Renamed to ...
8920 (record_full_core_xfer_partial): ... this. Updated all users.
8921 (record_core_insert_breakpoint): Renamed to ...
8922 (record_full_core_insert_breakpoint): ... this. Updated all users.
8923 (record_core_remove_breakpoint): Renamed to ...
8924 (record_full_core_remove_breakpoint): ... this. Updated all users.
8925 (record_core_has_execution): Renamed to ...
8926 (record_full_core_has_execution): ... this. Updated all users.
8927 (init_record_core_ops): Renamed to ...
8928 (init_record_full_core_ops): ... this. Updated all users.
8929 (cmd_record_restore): Renamed to ...
8930 (cmd_record_full_restore): ... this. Updated all users.
8931 (record_save_cleanups): Renamed to ...
8932 (record_full_save_cleanups): ... this. Updated all users.
8933 (cmd_record_start): Renamed to ...
8934 (cmd_record_full_start): ... this. Updated all users.
8935 (set_record_insn_max_num): Renamed to ...
8936 (set_record_full_insn_max_num): ... this. Updated all users.
8937 (set_record_command): Renamed to ...
8938 (set_record_full_command): ... this. Updated all users.
8939 (show_record_command): Renamed to ...
8940 (show_record_full_command): ... this. Updated all users.
8941 (_initialize_record): Renamed to ...
8942 (_initialize_record_full): ... this. Updated all users.
8943
8944 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8945
8946 * record.h: Split into this and ...
8947 * record-full.h: ... this.
8948 * record.c: Split into this and ...
8949 * record-full.c: ... this.
8950 * target.h (target_ops): Add new fields to_info_record,
8951 to_save_record, to_delete_record, to_record_is_replaying,
8952 to_goto_record_begin, to_goto_record_end, to_goto_record.
8953 (target_info_record): New.
8954 (target_save_record): New.
8955 (target_supports_delete_record): New.
8956 (target_delete_record): New.
8957 (target_record_is_replaying): New.
8958 (target_goto_record_begin): New.
8959 (target_goto_record_end): New.
8960 (target_goto_record): New.
8961 * target.c (target_info_record): New.
8962 (target_save_record): New.
8963 (target_supports_delete_record): New.
8964 (target_delete_record): New.
8965 (target_record_is_replaying): New.
8966 (target_goto_record_begin): New.
8967 (target_goto_record_end): New.
8968 (target_goto_record): New.
8969 * record.h: Declare struct cmd_list_element.
8970 (record_cmdlist): New declaration.
8971 (set_record_cmdlist): New declaration.
8972 (show_record_cmdlist): New declaration.
8973 (info_record_cmdlist): New declaration.
8974 (cmd_record_goto): New declaration.
8975 * record.c: Remove unnecessary includes.
8976 Include inferior.h.
8977 (cmd_record_goto): Remove declaration.
8978 (record_cmdlist): Now extern. Initialize.
8979 (set_record_cmdlist): Now extern. Initialize.
8980 (show_record_cmdlist): Now extern. Initialize.
8981 (info_record_cmdlist): Now extern. Initialize.
8982 (find_record_target): New.
8983 (require_record_target): New.
8984 (cmd_record_start): Update.
8985 (cmd_record_delete): Remove target-specific code.
8986 Call target_delete_record.
8987 (cmd_record_stop): Unpush any record target.
8988 (set_record_insn_max_num): Move to record-full.c
8989 (set_record_command): Add comment.
8990 (show_record_command): Add comment.
8991 (info_record_command): Update comment.
8992 Remove target-specific code.
8993 Call the record target's to_info_record.
8994 (cmd_record_start): New.
8995 (cmd_record_goto): Now extern.
8996 Remove target-specific code.
8997 Call target_goto_begin, target_goto_end, or target_goto.
8998 (_initialize_record): Move record target ops initialization to
8999 record-full.c.
9000 Change "record" command help text.
9001 Move "record restore", "record set", and "record show" commands to
9002 record-full.c.
9003 * Makefile.in (SFILES): Add record-full.c.
9004 (HFILES_NO_SRCDIR): Add record-full.h.
9005 (COMMON_OBS): Add record-full.o.
9006 * amd64-linux-tdep.c: Include record-full.h instead of record.h.
9007 * arm-tdep.c: Include record-full.h.
9008 * i386-linux-tdep.c: Include record-full.h instead of record.h.
9009 * i386-tdep.c: Include record-full.h.
9010 * infrun.c: Include record-full.h.
9011 * linux-record.c: Include record-full.h.
9012 * moxie-tdep.c: Include record-full.h.
9013 * record-full.c: Include record-full.h.
9014 Change module comment.
9015 (set_record_full_cmdlist): New.
9016 (show_record_full_cmdlist): New.
9017 (record_full_cmdlist): New.
9018 (record_goto_insn): New declaration.
9019 (record_save): New declaration.
9020 (record_check_insn_num): Change query string.
9021 (record_info): New.
9022 (record_delete): New.
9023 (record_is_replaying): New.
9024 (record_goto_entry): New.
9025 (record_goto_begin): New.
9026 (record_goto_end): New.
9027 (record_goto): New.
9028 (init_record_ops): Update.
9029 (init_record_core_ops): Update.
9030 (cmd_record_save): Rename to record_save. Remove target and arg checks.
9031 (cmd_record_start): New.
9032 (set_record_insn_max_num): Moved from record.c
9033 (set_record_full_command): New.
9034 (show_record_full_command): New.
9035 (_initialize_record_full): New.
9036
9037 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9038
9039 * target.h (add_deprecated_target_alias): New.
9040 * target.c (add_deprecated_target_alias): New.
9041
9042 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9043
9044 * common/linux-btrace.c: Include sys/ptrace, sys/types, sys/wait.h,
9045 and signal.h.
9046 (linux_supports_btrace): Add kernel and
9047 cpuid check.
9048 (kernel_supports_btrace): New function.
9049 (cpu_supports_btrace): New function.
9050 (intel_supports_btrace): New function.
9051
9052 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9053
9054 * target.h (enum target_object): Add TARGET_OBJECT_BTRACE.
9055 * remote.c: Include btrace.h.
9056 (struct btrace_target_info): New struct.
9057 (remote_supports_btrace): New function.
9058 (send_Qbtrace): New function.
9059 (remote_enable_btrace): New function.
9060 (remote_disable_btrace): New function.
9061 (remote_teardown_btrace): New function.
9062 (remote_read_btrace): New function.
9063 (init_remote_ops): Add btrace ops.
9064 (enum <unnamed>): Add btrace packets.
9065 (struct protocol_feature remote_protocol_features[]): Add btrace packets.
9066 (_initialize_remote): Add packet configuration for branch tracing.
9067
9068 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9069
9070 * features/btrace.dtd: New file.
9071 * Makefile.in (XMLFILES): Add btrace.dtd.
9072 * btrace.h (parse_xml_btrace): New declaration.
9073 * btrace.c: Include xml-support.h.
9074 (parse_xml_btrace): New function.
9075 (parse_xml_btrace_block): New function.
9076 (block_attributes): New struct.
9077 (btrace_attributes): New struct.
9078 (btrace_children): New struct.
9079 (btrace_elements): New struct.
9080
9081 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9082
9083 * amd64-linux-nat.c: Include btrace.h and linux-btrace.h.
9084 (amd64_linux_enable_btrace): New.
9085 (amd64_linux_disable_btrace): New.
9086 (amd64_linux_teardown_btrace): New.
9087 (_initialize_amd64_linux_nat): Initialize btrace ops.
9088 * i386-linux.nat.c: Include btrace.h and linux-btrace.h.
9089 (i386_linux_enable_btrace): New.
9090 (i386_linux_disable_btrace): New.
9091 (i386_linux_teardown_btrace): New.
9092 (_initialize_i386_linux_nat): Initialize btrace ops.
9093 * config/i386/linux.mh: Add linux-btrace.o.
9094 * config/i386/linux64.mh: Add linux-btrace.o.
9095
9096 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9097
9098 * common/linux_btrace.h: New file.
9099 * common/linux_btrace.c: New file.
9100 * Makefile.in (SFILES): Add btrace.c.
9101 (HFILES_NO_SRCDIR): Add common/linux-btrace.h.
9102 (COMMON_OBS): Add btrace.o.
9103 (linux-btrace.o): New rule.
9104
9105 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9106
9107 * target.h: Include btrace.h.
9108 (struct target_ops) <to_supports_btrace, to_enable_btrace,
9109 to_disable_btrace, to_teardown_btrace, to_read_btrace>: New.
9110 * target.c (target_supports_btrace): New function.
9111 (target_enable_btrace): New function.
9112 (target_disable_btrace): New function.
9113 (target_teardown_btrace): New function.
9114 (target_read_btrace): New function.
9115 * btrace.h: New file.
9116 * btrace.c: New file.
9117 * Makefile.in: Add btrace.c.
9118 * gdbthread.h: Include btrace.h.
9119 (struct thread_info): Add btrace field.
9120 * thread.c: Include btrace.h.
9121 (clear_thread_inferior_resources): Call target_teardown_btrace.
9122 * common/btrace-common.h: New file.
9123
9124 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9125
9126 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Call also kill
9127 for CHILD, ignore PTRACE_KILL errors, move the inner block variable
9128 kill_status to outer block.
9129
9130 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9131
9132 Fix entry-values if the callee called a noreturn function.
9133 * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
9134 get_frame_address_in_block. Add new comment.
9135
9136 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9137
9138 Fix entry-values in C++ across CUs.
9139 * dwarf2loc.c (call_site_to_target_addr) <FIELD_LOC_KIND_PHYSNAME>: Use
9140 lookup_minimal_symbol. Add a comment.
9141 * dwarf2read.c
9142 (read_call_site_scope) <is_ref_attr> <die_is_declaration>: Prefer
9143 DW_AT_linkage_name.
9144
9145 2013-03-08 Yao Qi <yao@codesourcery.com>
9146
9147 * tracepoint.c (_initialize_tracepoint): Indent the code.
9148
9149 2013-03-08 Pedro Alves <palves@redhat.com>
9150
9151 * findcmd.c (put_bits): Change type of parameter to 'gdb_byte *'.
9152 (parse_find_args, find_command): Change type of pattern buffer
9153 locals to 'gdb_byte *'.
9154
9155 2013-03-08 Stan Shebs <stan@codesourcery.com>
9156 Hafiz Abid Qadeer <abidh@codesourcery.com>
9157
9158 * NEWS: Mention set and show trace-buffer-size commands.
9159 Mention new packet.
9160 * target.h (struct target_ops): New method
9161 to_set_trace_buffer_size.
9162 (target_set_trace_buffer_size): New macro.
9163 * target.c (update_current_target): Set up new method.
9164 * tracepoint.c (trace_buffer_size): New global.
9165 (start_tracing): Send it to the target.
9166 (set_trace_buffer_size): New function.
9167 (_initialize_tracepoint): Add new setshow for trace-buffer-size.
9168 * remote.c (remote_set_trace_buffer_size): New function.
9169 (_initialize_remote): Use it.
9170 (QTBuffer:size) New remote command.
9171 (PACKET_QTBuffer_size): New enum.
9172 (remote_protocol_features): Add an entry for
9173 PACKET_QTBuffer_size.
9174
9175 2013-03-08 Tom Tromey <tromey@redhat.com>
9176
9177 * remote-m32r-sdi.c (m32r_load): Call skip_spaces on correct
9178 variable.
9179
9180 2013-03-07 Pedro Alves <palves@redhat.com>
9181
9182 * target.c (target_read_stralloc, target_fileio_read_alloc):
9183 *Cast pointer to 'gdb_byte *' in target call.
9184
9185 2013-03-07 Pedro Alves <palves@redhat.com>
9186
9187 * corefile.c (read_memory_string): Cast pointer to gdb_byte* in
9188 call.
9189
9190 2013-03-07 Keith Seitz <keiths@redhat.com>
9191
9192 * breakpoint.c (catch_syscall_split_args): Use skip_spaces.
9193 (trace_pass_command): Likewise.
9194 * cli/cli-cmds.c: Include cli/cli-utils.h.
9195 (source_command): Use skip-spaces.
9196 (disassemble_command): Likewise.
9197 * findcmd.c: Include cli/cli-utils.h.
9198 (parse_find_args): Use skip_spaces.
9199 * go32-nat.c: Include cli/cli-utils.h.
9200 (go32_sldt): Use skip_spaces.
9201 (go32_sgdt): Likewise.
9202 (go32_sidt): Likewise.
9203 (go32_pde): Likewise.
9204 (go32_pte): Likewise.
9205 (go32_pte_for_address): Likewise.
9206 * infcmd.c: Include cli/cli-utils.h.
9207 (registers_info): Use skip_spaces.
9208 * linux-tdep.c (read_mapping): Use skip_spaces_const.
9209 (linux_info_proc): Likewise.
9210 * linux-thread-db.c: Include cli/cli-utils.h.
9211 (info_auto_load_libthread_db): Use skip_spaces_const.
9212 * m32r-rom.c: Include cli/cli-utils.h.
9213 (m32r_upload_command): Use skip_spaces.
9214 * maint.c: Include cli/cli-utils.h.
9215 (maintenance_translate_address): Use skip_spaces.
9216 * mi/mi-parse.c: Include cli/cli-utils.h.
9217 (mi_parse_argv): Use skip_spaces.
9218 (mi_parse): Likewise.
9219 * minsyms.c: Include cli/cli-utils.h.
9220 (msymbol_hash_iw): Use skip_spaces_const.
9221 * objc-lang.c: Include cli/cli-utils.h.
9222 (parse_selector): Use skip_spaces.
9223 (parse_method): Likewise.
9224 * python/python.c: Include cli/cli-utils.h.
9225 (python_interactive_command)[HAVE_PYTHON]: Use skip_spaces.
9226 (python_command)[HAVE_PYTHON]: Likewise.
9227 (python_interactive_command)[!HAVE_PYTHON]: Likewise.
9228 * remote-m32r-sdi.c: Include cli/cli-utils.h.
9229 (m32r_load): Use skip_spaces.
9230 * serial.c: Include cli/cli-utils.h.
9231 (serial_open): Use skip_spaces_const.
9232 * stack.c: Include cli/cli-utils.h.
9233 (parse_frame_specification_1): Use skip_spaces_const.
9234 * symfile.c: Include cli/cli-utils.h.
9235 (set_ext_lang_command): Use skip_spaces.
9236 * symtab.c: Include cli/cli-utils.h.
9237 (rbreak_command): Use skip_spaces.
9238 * thread.c (thread_name_command): Use skip_spaces.
9239 * tracepoint.c (validate_actionline): Use skip_spaces.
9240 (encode_actions_1): Likewise.
9241 (trace_find_range_command): Likewise.
9242 (trace_find_outside_command): Likewise.
9243 (trace_dump_actions): Likewise.
9244
9245 2013-03-07 Pedro Alves <palves@redhat.com>
9246
9247 * c-lang.c (parse_one_string): Cast argument to gdb_byte *.
9248 * expprint.c (print_subexp_standard): Likewise.
9249 * utils.c (host_char_to_target): Likewise.
9250 * valprint.c (generic_emit_char, generic_printstr): Likewise.
9251 * varobj.c (value_get_print_value): Change type of local to char*.
9252 Cast it gdb_byte * in call to language printer.
9253
9254 2013-03-07 Pedro Alves <palves@redhat.com>
9255
9256 * charset.c (struct wchar_iterator) <input>: Change type to 'const
9257 gdb_byte *'.
9258 (make_wchar_iterator): Remove cast to char*.
9259 (wchar_iterate): Change type of local.
9260
9261 2013-03-07 Pedro Alves <palves@redhat.com>
9262
9263 * regcache.c (regcache_xmalloc_1): Call XCALLOC with signed char
9264 for 'regcache->register_status'.
9265
9266 2013-03-07 Pedro Alves <palves@redhat.com>
9267
9268 * breakpoint.c (breakpoint_xfer_memory): Change type of local to
9269 int.
9270
9271 2013-03-07 Pedro Alves <palves@redhat.com>
9272
9273 * stap-probe.c (handle_stap_probe): Add cast to char*.
9274
9275 2013-03-07 Pedro Alves <palves@redhat.com>
9276
9277 * linux-record.c (record_linux_system_call) <gdb_sys_msgrcv,
9278 RECORD_MSGRCV>: Pass a signed variable to
9279 regcache_raw_read_signed, instead of an unsigned one.
9280
9281 2013-03-07 Pedro Alves <palves@redhat.com>
9282
9283 * remote-notif.c (notif_debug): Change type to int.
9284 * remote-notif.h (notif_debug): Likewise.
9285
9286 2013-03-07 Pedro Alves <palves@redhat.com>
9287
9288 * ser-tcp.c (tcp_retry_limit): Change type to unsigned int.
9289
9290 2013-03-07 Pedro Alves <palves@redhat.com>
9291
9292 * remote.c (hex2bin, bin2hex): Move extern declarations to ...
9293 * remote.h (hex2bin, bin2hex): ... here.
9294 * tracepoint.c (hex2bin, bin2hex): Remove extern declarations.
9295
9296 2013-03-07 Eli Zaretskii <eliz@gnu.org>
9297
9298 * utils.c (initialize_utils): Improve doc strings of "set/show
9299 width", "set/show height", and "set/show pagination".
9300
9301 2013-03-06 Keith Seitz <keiths@redhat.com>
9302
9303 * ax-gdb.c (gen_printf): Make FORMAT const.
9304 * ax-gdb.h (gen_printf): Likewise.
9305 * ax-general.c (ax_string): Make STR const.
9306 * ax.h (ax_string): Likewise.
9307
9308 2013-03-06 Doug Evans <dje@google.com>
9309
9310 * elfread.c (elf_symfile_read): Move debugging printf to more
9311 logical location.
9312
9313 2013-03-06 Pedro Alves <palves@redhat.com>
9314
9315 * python/py-utils.c (target_string_to_unicode): Delete function.
9316 * python/python-internal.h (target_string_to_unicode): Delete
9317 declaration.
9318
9319 2013-03-06 Pierre Muller <muller@sourceware.org>
9320
9321 * linespec.c (get_current_search_block): ARI fix, use (void)
9322 for empty parameter list.
9323
9324 2013-03-05 Doug Evans <dje@google.com>
9325
9326 * ada-lang.c (ada_lookup_symbol_list_worker): New function, contents
9327 of old ada_lookup_symbol_list. In !full_search case, don't
9328 search superblocks.
9329 (ada_lookup_symbol_list): Delete arg full_search, all callers
9330 updated. Call ada_lookup_symbol_list_worker.
9331 (ada_iterate_over_symbols): Call ada_lookup_symbol_list_worker.
9332 * ada-lang.h (ada_lookup_symbol_list): Update.
9333 * language.h (language_defn): Update comment for
9334 la_iterate_over_symbols.
9335 * linespec.c (iterate_over_file_blocks): New function.
9336 (iterate_over_all_matching_symtabs): Call it.
9337 (lookup_prefix_sym): Ditto.
9338 (get_current_search_block): New function.
9339 (get_search_block): Delete.
9340 (find_label_symbols): Call get_current_search_block.
9341 (add_matching_symbols_to_info): Call iterate_over_file_blocks.
9342 * symtab.c (iterate_over_symbols): Don't search superblocks.
9343
9344 2013-03-05 Yao Qi <yao@codesourcery.com>
9345
9346 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): Change
9347 parameter VAR's type from "unsigned int" to "int".
9348 * command.h (var_zuinteger_unlimited): Update its comments.
9349 (add_setshow_zuinteger_unlimited_cmd): Update the declaration.
9350
9351 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
9352
9353 * NEWS: Mention new target x86_64-*-cygwin*.
9354
9355 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
9356
9357 * configure.host: Add x86_64-*-cygwin* as host.
9358 * configure.tgt: Add x86_64-*-cygwin* as target.
9359 * config/i386/cygwin64.mh: New file.
9360
9361 2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
9362
9363 * linespec.c (decode_line_2): Fix duplicate request off by two message.
9364
9365 2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
9366
9367 * linespec.c (struct linespec_canonical_name): New.
9368 (struct linespec_state): Change canonical_names type to it.
9369 (add_sal_to_sals): Change variable canonical_name to canonical. Change
9370 xrealloc element size. Initialize the different CANONICAL fields.
9371 (canonical_to_fullform): New.
9372 (filter_results): Use it. Add variables canonical, fullform and
9373 cleanup.
9374 (struct decode_line_2_item, decode_line_2_compare_items): New.
9375 (decode_line_2): Remove variables iter and item_names, add variables
9376 items and items_count. Modify the code for these new variables.
9377
9378 2013-03-04 Corinna Vinschen <vinschen@redhat.com>
9379
9380 * coff-pe-read.c (read_pe_exported_syms): Don't return without
9381 calling do_cleanup.
9382
9383 2013-03-04 Luis Machado <lgustavo@codesourcery.com>
9384
9385 * tracepoint.c (build_traceframe_info): Add code for byte order.
9386
9387 2013-03-02 Kevin Buettner <kevinb@redhat.com>
9388
9389 * v850-tdep.c: (v850e2_register_name): Revise system register
9390 names to match current V850E2M architecture specifications.
9391 Update register number enum comments too.
9392
9393 2013-03-01 Jiong Wang <jiwang@tilera.com>
9394 Pedro Alves <palves@redhat.com>
9395
9396 * tilegx-tdep.c (tilegx_analyze_prologue): Limit bundle reading
9397 to END_ADDR.
9398 (tilegx_skip_prologue): Limit prologue analysis to section end.
9399
9400 2013-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9401
9402 * dwarf2loc.c (call_site_find_chain_1): New variable save_callee_pc,
9403 use it.
9404
9405 2013-03-01 Pedro Alves <palves@redhat.com>
9406
9407 Use gdb_byte for bytes from the program being debugged.
9408
9409 * arm-tdep.c (arm_store_return_value, arm_get_longjmp_target):
9410 Change type of local 'buf' to gdb_byte.
9411 * avr-tdep.c (avr_frame_prev_register, avr_push_dummy_call): Likewise.
9412 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
9413 * cris-tdep.c (cris_sigcontext_addr)
9414 (cris_sigtramp_frame_unwind_cache): Likewise.
9415 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp)
9416 (frv_linux_sigcontext_reg_addr, frv_linux_sigtramp_frame_cache):
9417 Likewise.
9418 * frv-tdep.c (frv_pseudo_register_write, frv_analyze_prologue): Likewise.
9419 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer)
9420 (hppa32_hpux_search_dummy_call_sequence)
9421 (hppa_hpux_supply_save_state): Likewise.
9422 * hppa-linux-tdep.c (insns_match_pattern)
9423 (hppa_linux_find_global_pointer): Likewise.
9424 * hppa-tdep.c (hppa_in_function_epilogue_p)
9425 (skip_prologue_hard_way, hppa_frame_cache): Likewise.
9426 * i386-nto-tdep.c (i386nto_sigcontext_addr): Likewise.
9427 * i386fbsd-tdep.c (i386fbsd_supply_uthread)
9428 (i386fbsd_collect_uthread): Likewise.
9429 * ia64-hpux-tdep.c (ia64_hpux_push_dummy_code): Likewise.
9430 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Likewise.
9431 * ia64-tdep.c (examine_prologue, ia64_frame_cache)
9432 (ia64_frame_prev_register, ia64_sigtramp_frame_cache)
9433 (ia64_sigtramp_frame_prev_register, ia64_access_reg)
9434 (ia64_access_rse_reg, ia64_libunwind_frame_this_id)
9435 (ia64_libunwind_frame_prev_register)
9436 (ia64_libunwind_sigtramp_frame_this_id)
9437 (ia64_find_global_pointer_from_dynamic_section)
9438 (find_extant_func_descr, find_func_descr, ia64_dummy_id)
9439 (ia64_unwind_pc): Likewise.
9440 * iq2000-tdep.c (iq2000_store_return_value): Likewise.
9441 * m68hc11-tdep.c (m68hc11_push_dummy_call)
9442 (m68hc11_extract_return_value): Likewise.
9443 * m68klinux-nat.c (fetch_register, store_register): Likewise.
9444 * mep-tdep.c (mep_pseudo_cr32_read, mep_pseudo_cr32_write)
9445 (mep_get_insn, mep_push_dummy_call): Likewise.
9446 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
9447 (mips_linux_in_dynsym_stub): Likewise.
9448 * mn10300-tdep.c (mep_pseudo_cr32_write): Likewise.
9449 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
9450 * regcache.c (dump_endian_bytes): Change type of parameter 'buf'
9451 to gdb_byte.
9452 * remote-mips.c (mips_set_register): Likewise.
9453 * remote-sim.c (gdbsim_fetch_register): Likewise.
9454 * score-tdep.c (score7_fetch_inst): Change type of parameter
9455 'memblock' and local 'buf' to gdb_byte.
9456 (score7_malloc_and_get_memblock): Change return type to gdb_byte.
9457 Change type of local 'buf' to gdb_byte. Adjust.
9458 (score7_adjust_memblock_ptr): Change type of parameter 'memblock'
9459 to gdb_byte**.
9460 (score7_analyze_prologue): Change type of 'memblock' and
9461 'memblock_ptr' locals to gdb_byte*.
9462 * sh64-tdep.c (sh64_extract_return_value)
9463 (sh64_store_return_value): Change type of local 'buf' to gdb_byte.
9464 * solib-darwin.c (darwin_current_sos, darwin_read_exec_load_addr):
9465 * solib-pa64.c (pa64_solib_create_inferior_hook)
9466 (pa64_open_symbol_file_object): Remove local 'buf'.
9467 * solib-som.c (som_solib_create_inferior_hook, link_map_start)
9468 (som_open_symbol_file_object): Likewise.
9469 * solib-spu.c (spu_current_sos): Likewise.
9470 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
9471 * spu-multiarch.c (parse_spufs_run, spu_fetch_registers)
9472 (spu_store_registers): Likewise.
9473 * target.c (debug_print_register): Likewise.
9474 * tic6x-tdep.c (tic6x_get_longjmp_target): Likewise.
9475 * xstormy16-tdep.c (xstormy16_store_return_value)
9476 (xstormy16_push_dummy_call, xstormy16_resolve_jmp_table_entry)
9477 (xstormy16_find_jmp_table_entry): Likewise.
9478
9479 2013-03-01 Jiong Wang <jiwang@tilera.com>
9480
9481 * tilegx-tdep.c (tilegx_get_longjmp_target): New function.
9482 (tilegx_gdbarch_init): Install it.
9483
9484 2013-02-28 Tom Tromey <tromey@redhat.com>
9485
9486 * python/py-arch.c (archpy_disassemble): Use PyInt_Check and
9487 PyLong_Check.
9488
9489 2013-02-28 Doug Evans <dje@google.com>
9490
9491 * python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
9492 * python/python.c (gdbpy_find_pc_line): Ditto.
9493
9494 2013-02-28 Tom Tromey <tromey@redhat.com>
9495
9496 * contrib/excheck.py: New file.
9497 * contrib/exsummary.py: New file.
9498 * contrib/gcc-with-excheck: New file.
9499
9500 2013-02-28 Tom Tromey <tromey@redhat.com>
9501
9502 * python/python.c (gdbpy_print_stack): Call begin_line and
9503 fprintf_filtered inside TRY_CATCH.
9504
9505 2013-02-28 Tom Tromey <tromey@redhat.com>
9506
9507 * python/python.c (gdbpy_find_pc_line): Call find_pc_line
9508 inside TRY_CATCH.
9509
9510 2013-02-28 Tom Tromey <tromey@redhat.com>
9511
9512 * py-finishbreakpoint.c (bpfinishpy_init): Reorganize to call
9513 frame_object_to_frame_info inside TRY_CATCH.
9514
9515 2013-02-28 Tom Tromey <tromey@redhat.com>
9516
9517 * py-block.c (gdbpy_block_for_pc): Call block_for_pc inside
9518 TRY_CATCH.
9519
9520 2013-02-28 Tom Tromey <tromey@redhat.com>
9521
9522 * objfiles.h (ALL_PSPACE_OBJFILES): Remove trailing backlash.
9523
9524 2013-02-27 Corinna Vinschen <vinschen@redhat.com>
9525
9526 * windows-nat.c: Throughout, fix format strings and casts of
9527 printf-like functions to avoid type related warnings on all
9528 platforms.
9529 (handle_output_debug_string): Fetch context information address
9530 from debug string using string_to_core_addr.
9531
9532 2013-02-27 Jiong Wang <jiwang@tilera.com>
9533
9534 * regformats/reg-tilegx.dat (name): Change abi name to "tilegx".
9535 * regformats/reg-tilegx32.dat: New.
9536
9537 2013-02-27 Jiong Wang <jiwang@tilera.com>
9538
9539 * configure.tgt (tilegx-*-linux*): Enable gdbserver.
9540
9541 2013-02-27 Jiong Wang <jiwang@tilera.com>
9542
9543 * configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
9544
9545 2013-02-27 Yao Qi <yao@codesourcery.com>
9546 Pedro Alves <palves@redhat.com>
9547
9548 * tracepoint.c (tfile_trace_find): For tfind
9549 pc/tp/range/outside, look for the next trace frame instead of
9550 always starting from frame 0.
9551
9552 2013-02-26 Anthony Green <green@moxielogic.com>
9553
9554 * configure.tgt: Add support for moxie-*-rtems* target.
9555
9556 2013-02-25 Pedro Alves <palves@redhat.com>
9557
9558 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
9559 warning text.
9560
9561 2013-02-24 Maciej W. Rozycki <macro@codesourcery.com>
9562
9563 * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
9564 if $fp is used as the virtual frame pointer.
9565
9566 2013-02-23 Alan Modra <amodra@gmail.com>
9567
9568 * elfread.c (elf_symtab_read): Do not use udata.p here to find
9569 symbol size.
9570 * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
9571 * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
9572 * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
9573 * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
9574
9575 2013-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
9576
9577 Code cleanup.
9578 * elfread.c (build_id_bfd_get): Make the return type const.
9579 (build_id_verify): Make the check parameter const.
9580 (build_id_to_debug_filename): Make the build_id parameter and variable
9581 data const.
9582 (find_separate_debug_file_by_buildid): Make the variable build_id const.
9583
9584 2013-02-21 Alan Modra <amodra@gmail.com>
9585
9586 * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
9587
9588 2013-02-20 Siva Chandra Reddy <sivachandra@google.com>
9589
9590 Add a new method 'disassemble' to gdb.Architecture class.
9591 * python/py-arch.c (archpy_disassmble): Implementation of the
9592 new method gdb.Architecture.disassemble.
9593 (arch_object_methods): Add entry for the new method.
9594
9595 2013-02-20 Jiong Wang <jiwang@tilera.com>
9596
9597 * MAINTAINERS (Write After Approval): Add myself to the list.
9598
9599 2013-02-19 Pedro Alves <palves@redhat.com>
9600
9601 Garbage collect 'struct monitor_ops'::load_routine.
9602
9603 * monitor.h (struct monitor_ops) <load_routine>: Remove field.
9604 * monitor.c (monitor_load): No longer call
9605 current_monitor->load_routine.
9606 * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
9607 * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
9608 * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
9609
9610 2013-02-19 Pedro Alves <palves@redhat.com>
9611
9612 PR gdb/15161
9613
9614 Harmonize with generic_load.
9615
9616 * monitor.c: Include "readline/readline.h".
9617 (monitor_load): Rename parameter 'file' to 'args'. Use build_argv
9618 instead of sscanf. Use CORE_ADDR/strtoulst instead of unsigned
9619 long/strtol for the 'load_offset' local. Error out if no argument
9620 is given or if too many arguments are given. Tilde expand the
9621 passed in file name.
9622
9623 2013-02-19 Kai Tietz <ktietz@redhat.com>
9624
9625 PR gdb/15161
9626 * symfile.c (load_section_data): Change type of load_offset
9627 to CORE_ADDR.
9628 (generic_load): User strtoulst instead of strtoul for conversion
9629 of load_offset.
9630
9631 2013-02-19 Jiong Wang <jiwang@tilera.com>
9632
9633 * tilegx-tdep.c (tilegx_analyze_prologue): add check for
9634 for return address, "lr" register, saved on stack.
9635 * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
9636 after we invoke tilegx_analyze_prologue.
9637
9638 2013-02-19 Jiong Wang <jiwang@tilera.com>
9639
9640 * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
9641
9642 2013-02-19 Jiong Wang <jiwang@tilera.com>
9643
9644 * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
9645
9646 2013-02-19 Jiong Wang <jiwang@tilera.com>
9647
9648 * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
9649 (tilegx_write_pc): New function.
9650 (tilegx_cannot_reference_register): Return zero if REGNO
9651 is TILEGX_FAULTNUM_REGNUM.
9652 (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
9653 (tilegx_register_name): Add handling of "faultnum" register.
9654 * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
9655 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
9656 handling of TILEGX_FAULTNUM_REGNUM.
9657 * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
9658
9659 2013-02-19 Jiong Wang <jiwang@tilera.com>
9660
9661 * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
9662 should be aligned to 64bit.
9663
9664 2013-02-19 Kai Tietz <ktietz@redhat.com>
9665
9666 * windows-nat.c (windows_xfer_memory): Fix debug-output
9667 for LLP64.
9668
9669 2013-02-19 Lei Liu <lei.liu2@windriver.com>
9670
9671 * mips-linux-nat.c (mips64_linux_regsets_store_registers):
9672 Don't check DSP register number if HAVE_DSP is not set.
9673
9674 2013-02-19 Alan Modra <amodra@gmail.com>
9675
9676 * elfread.c (struct build_id): Delete. Use struct elf_build_id
9677 throughout file instead.
9678 (build_id_bfd_get): Update to use new elf_tdata build_id field.
9679 Don't xmalloc return value.
9680 (build_id_verify): Similarly. Don't xfree.
9681 (build_id_to_debug_filename): Update.
9682 (find_separate_debug_file_by_buildid): Update, don't xfree.
9683
9684 2013-02-18 Tom Tromey <tromey@redhat.com>
9685
9686 PR gdb/15102:
9687 * dwarf2read.c (read_subrange_type): Use result of
9688 'check_typedef'.
9689
9690 2013-02-16 Yuanhui Zhang <asmwarrior@gmail.com>
9691
9692 * frame.c: Remove one extra white space after #include
9693 directive.
9694
9695 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9696
9697 * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
9698
9699 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9700
9701 * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
9702 and dir commands into an if block.
9703
9704 2013-02-15 Sanimir Agovic <sanimir.agovic@intel.com>
9705
9706 * python/py-breakpoint (struct pybp_code): Use int instead of
9707 enum type_code.
9708
9709 2013-02-15 Pedro Alves <pedro@codesourcery.com>
9710 Hafiz Abid Qadeer <abidh@codesourcery.com>
9711
9712 * NEWS: Mention new field "trace-file".
9713 * tracepoint.c (trace_status_mi): Output "trace-file" field.
9714 (tfile_open): Record the trace file's filename in the trace
9715 status.
9716 (tfile_files_info): Mention the name of the trace file.
9717 Check the "filename" field explicitely.
9718 (trace_status_command): Explicitely check "filename" field.
9719 (trace_find_command): Ditto.
9720 (trace_find_pc_command): Ditto.
9721 (trace_find_tracepoint_command): Ditto.
9722 (trace_find_line_command): Ditto.
9723 (trace_find_range_command): Ditto.
9724 (trace_find_outside_command): Ditto.
9725 * tracepoint.h (struct trace_status) <from_file>: Rename it
9726 to "filename" and make it hold the trace file's filename
9727 instead of a boolean.
9728 * remote.c (remote_get_trace_status): Initialize "filename"
9729 field with NULL instead of 0.
9730
9731 2013-02-15 Yao Qi <yao@codesourcery.com>
9732
9733 * remote.c: Fix a typo.
9734
9735 2013-02-14 Pierre Muller <muller@sourceware.org>
9736
9737 * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
9738
9739 2013-02-14 Pedro Alves <palves@redhat.com>
9740
9741 * utils.c (savestring): Don't #undef it. Move function to
9742 common/common-utils.c.
9743 * common/common-utils.c: Include gdb_string.h.
9744 (savestring): Move here from utils.c.
9745 * common/common-utils.h (savestring): Declare.
9746
9747 2013-02-14 Pedro Alves <palves@redhat.com>
9748
9749 * utils.c (savestring): Rename parameter 'size' to 'len'.
9750
9751 2013-02-14 Pedro Alves <palves@redhat.com>
9752 Yufeng Zhang <yufeng.zhang@arm.com>
9753
9754 * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
9755 (aarch64_inferior_data, struct aarch64_inferior_data):
9756 Delete.
9757 (struct aarch64_process_info): New.
9758 (aarch64_process_list): New global.
9759 (aarch64_find_process_pid, aarch64_add_process)
9760 (aarch64_process_info_get): New functions.
9761 (aarch64_inferior_data_get): Delete.
9762 (aarch64_process_info_get): New function.
9763 (aarch64_forget_process): New function.
9764 (aarch64_get_debug_reg_state): New parameter 'pid'. Reimplement.
9765 (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
9766 aarch64_get_debug_reg_state.
9767 (aarch64_notify_debug_reg_change): Use iterate_over_lwps
9768 instead of linux_nat_iterate_watchpoint_lwps.
9769 (aarch64_linux_new_fork): New function.
9770 (aarch64_linux_child_post_startup_inferior): Use
9771 aarch64_forget_process instead of aarch64_init_debug_reg_state.
9772 (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
9773 (aarch64_linux_remove_hw_breakpoint)
9774 (aarch64_handle_aligned_watchpoint)
9775 (aarch64_handle_unaligned_watchpoint)
9776 (aarch64_linux_insert_watchpoint)
9777 (aarch64_linux_remove_watchpoint)
9778 (aarch64_linux_stopped_data_address): Adjust to pass the current
9779 process id to aarch64_debug_reg_state.
9780 (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
9781 linux_nat_new_fork hook, and aarch64_forget_process as
9782 linux_nat_forget_process hook; remove the call to
9783 register_inferior_data_with_cleanup.
9784
9785 2013-02-14 Pedro Alves <palves@redhat.com>
9786
9787 * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
9788 EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
9789 lval_memory.
9790
9791 2013-02-14 Pedro Alves <pedro@codesourcery.com>
9792 Hafiz Abid Qadeer <abidh@codesourcery.com>
9793
9794 * tracepoint.h (validate_trace_state_variable_name): Declare.
9795 * tracepoint.c (validate_trace_state_variable_name): New.
9796 (trace_variable_command): Parse the trace state variable's name
9797 without using parse_expression. Do several validations.
9798 * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
9799 trace state variable's name with parse_expression. Validate it.
9800
9801 2013-02-14 Yao Qi <yao@codesourcery.com>
9802
9803 * infcmd.c (breakpoint_proceeded): Remove it.
9804
9805 2013-02-14 Yao Qi <yao@codesourcery.com>
9806
9807 * tracepoint.c (end_actions_pseudocommand): Make it static.
9808 (while_stepping_pseudocommand): Likewise.
9809 * tracepoint.h (end_actions_pseudocommand): Remove the
9810 declaration.
9811 (while_stepping_pseudocommand): Likewise.
9812
9813 2013-02-14 Yao Qi <yao@codesourcery.com>
9814
9815 * cli/cli-decode.c (help_cmd): Remove the declaration of
9816 "cmdlist".
9817 (help_all): Likewise.
9818
9819 2013-02-13 Pedro Alves <palves@redhat.com>
9820
9821 * amd64-linux-nat.c (update_debug_registers_callback):
9822 Update comment.
9823 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
9824 iterate_over_lwps.
9825 (amd64_linux_prepare_to_resume): Pass the lwp's pid to
9826 i386_debug_reg_state.
9827 (amd64_linux_new_fork): New function.
9828 (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
9829 linux_nat_new_fork hook, and i386_forget_process as
9830 linux_nat_forget_process hook.
9831 * i386-linux-nat.c (update_debug_registers_callback):
9832 Update comment.
9833 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
9834 iterate_over_lwps.
9835 (i386_linux_prepare_to_resume): Pass the lwp's pid to
9836 i386_debug_reg_state.
9837 (i386_linux_new_fork): New function.
9838 (_initialize_i386_linux_nat): Install i386_linux_new_fork as
9839 linux_nat_new_fork hook, and i386_forget_process as
9840 linux_nat_forget_process hook.
9841 * i386-nat.c (i386_init_dregs): Delete.
9842 (i386_inferior_data, struct i386_inferior_data):
9843 Delete.
9844 (struct i386_process_info): New.
9845 (i386_process_list): New global.
9846 (i386_find_process_pid, i386_add_process, i386_process_info_get):
9847 New functions.
9848 (i386_inferior_data_get): Delete.
9849 (i386_process_info_get): New function.
9850 (i386_debug_reg_state): New parameter 'pid'. Reimplement.
9851 (i386_forget_process): New function.
9852 (i386_cleanup_dregs): Rewrite.
9853 (i386_update_inferior_debug_regs, i386_insert_watchpoint)
9854 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
9855 (i386_stopped_data_address, i386_insert_hw_breakpoint)
9856 (i386_remove_hw_breakpoint): Adjust to pass the current process id
9857 to i386_debug_reg_state.
9858 (i386_use_watchpoints): Don't register inferior data.
9859 * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
9860 adjust comment.
9861 (i386_forget_process): Declare.
9862 * linux-fork.c (delete_fork): Call linux_nat_forget_process.
9863 * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
9864 New static globals.
9865 (linux_child_follow_fork): Don't call linux_nat_new_thread here.
9866 (add_initial_lwp): New, factored out from ...
9867 (add_lwp): ... this. Don't check the number of lwps before
9868 calling linux_nat_new_thread.
9869 (linux_nat_iterate_watchpoint_lwps): Delete.
9870 (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
9871 (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
9872 forks and vforks.
9873 (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
9874 initial lwp.
9875 (linux_nat_kill, linux_nat_mourn_inferior): Call
9876 linux_nat_forget_process.
9877 (linux_nat_set_new_fork, linux_nat_set_forget_process)
9878 (linux_nat_forget_process): New functions.
9879 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
9880 type.
9881 (linux_nat_iterate_watchpoint_lwps): Delete declaration.
9882 (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
9883 types.
9884 (linux_nat_set_new_fork, linux_nat_set_forget_process)
9885 (linux_nat_forget_process): New declarations.
9886
9887 * amd64fbsd-nat.c (super_mourn_inferior): New global.
9888 (amd64fbsd_mourn_inferior): New function.
9889 (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
9890 * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
9891
9892 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
9893
9894 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
9895 Adding _().
9896
9897 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
9898
9899 * aarch64-linux-nat.c (debug_reg_change_callback)
9900 (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
9901 %s and phex().
9902
9903 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
9904
9905 * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
9906 with LONGEST.
9907
9908 2013-02-13 Pedro Alves <palves@redhat.com>
9909 Hafiz Abid Qadeer <abidh@codesourcery.com>
9910
9911 * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
9912
9913 2013-02-12 Tom Tromey <tromey@redhat.com>
9914
9915 PR symtab/11464:
9916 * c-exp.y (lex_one_token): Initialize other fields of yylval on
9917 NAME return.
9918 (classify_inner_name): Remove 'first_name' argument, add
9919 'context'. Remove unused variable.
9920 (yylex): Explicitly maintain the context type. Exit loop earlier
9921 if NAME result is seen.
9922
9923 2013-02-12 Pedro Alves <palves@redhat.com>
9924
9925 * amd64-darwin-tdep.c: Add (C) after Copyright.
9926 * cli/cli-cmds.h: Ditto.
9927 * cli/cli-decode.c: Ditto.
9928 * cli/cli-decode.h: Ditto.
9929 * cli/cli-dump.c: Ditto.
9930 * cli/cli-dump.h: Ditto.
9931 * cli/cli-interp.c: Ditto.
9932 * cli/cli-logging.c: Ditto.
9933 * cli/cli-script.c: Ditto.
9934 * cli/cli-script.h: Ditto.
9935 * cli/cli-setshow.c: Ditto.
9936 * cli/cli-setshow.h: Ditto.
9937 * cli/cli-utils.c: Ditto.
9938 * cli/cli-utils.h: Ditto.
9939 * config/alpha/nm-osf3.h: Ditto.
9940 * config/djgpp/djconfig.sh: Ditto.
9941 * config/i386/nm-fbsd.h: Ditto.
9942 * config/i386/nm-i386gnu.h: Ditto.
9943 * config/nm-linux.h: Ditto.
9944 * config/nm-nto.h: Ditto.
9945 * config/rs6000/nm-rs6000.h: Ditto.
9946 * config/sparc/nm-sol2.h: Ditto.
9947 * darwin-nat-info.c: Ditto.
9948 * dfp.c: Ditto.
9949 * dfp.h: Ditto.
9950 * gdb-demangle.h: Ditto.
9951 * i386-darwin-nat.c: Ditto.
9952 * i386-darwin-tdep.c: Ditto.
9953 * linux-fork.h: Ditto.
9954 * m32c-tdep.c: Ditto.
9955 * microblaze-linux-tdep.c: Ditto.
9956 * microblaze-rom.c: Ditto.
9957 * microblaze-tdep.c: Ditto.
9958 * microblaze-tdep.h: Ditto.
9959 * mips-linux-tdep.h: Ditto.
9960 * ppc-ravenscar-thread.c: Ditto.
9961 * ppc-ravenscar-thread.h: Ditto.
9962 * prologue-value.c: Ditto.
9963 * prologue-value.h: Ditto.
9964 * ravenscar-thread.c: Ditto.
9965 * ravenscar-thread.h: Ditto.
9966 * sparc-ravenscar-thread.c: Ditto.
9967 * sparc-ravenscar-thread.h: Ditto.
9968 * tilegx-linux-tdep.c: Ditto.
9969 * unwind_stop_reasons.def: Ditto.
9970 * windows-nat.h: Ditto.
9971 * xtensa-linux-tdep.c: Ditto.
9972 * xtensa-xtregs.c: Ditto.
9973 * regformats/regdat.sh: Ditto.
9974 * regformats/regdef.h: Ditto.
9975
9976 2013-02-12 Pedro Alves <palves@redhat.com>
9977
9978 * break-catch-sig.c: Update copyright years.
9979
9980 2013-02-11 Siva Chandra Reddy <sivachandra@google.com>
9981
9982 Add support for a destructor for ui_out data and use it to
9983 provide a ui_out destructor.
9984 * ui-out.h: Declare the new ui_out destructor.
9985 (ui_out_impl): Add a field for data destructor in ui_out_impl.
9986 * ui-out.c (default_data_destroy): Add a default data destructor
9987 which does nothing.
9988 (default_ui_out_impl): Set the new data_destroy field to
9989 default_data_destroy
9990 (uo_data_destroy): Local function which invokes the data
9991 destructor if present.
9992 (clear_table): Local function which clears the table data of a
9993 ui_out object.
9994 (ui_out_destroy): Public function which frees a ui_out object.
9995 (ui_out_table_end): Use the new clear_table function.
9996 * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
9997 NULL.
9998 * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
9999 to NULL.
10000
10001 2013-02-11 Doug Evans <dje@google.com>
10002
10003 * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
10004 (printf_decfloat): New function. Broken out from ui_printf.
10005 Remove unnecessary code to shift the entire format string down.
10006 (printf_pointer): New function.
10007 (ui_printf): Code to print C strings, wide C strings, decfloats,
10008 and pointers moved to separate functions.
10009
10010 2013-02-11 Sergio Durigan Junior <sergiodj@redhat.com>
10011
10012 * valops.c (value_assign): Handling bitfield offset in
10013 `lval_internalvar_component' case.
10014
10015 2013-02-08 Doug Evans <dje@google.com>
10016
10017 * common/format.c (parse_format_string): Fix whitespace.
10018
10019 2013-02-08 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
10020
10021 * stack.c (return_command): Work around uninitialized variable
10022 warning.
10023
10024 2013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
10025
10026 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
10027 number of the registers from 36 to 34.
10028
10029 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
10030
10031 * NEWS: Mention new AArch64 native and target support.
10032
10033 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
10034
10035 * MAINTAINERS (Write After Approval): Add myself.
10036
10037 2013-02-08 Jim MacArthur <jim.macarthur@arm.com>
10038 Marcus Shawcroft <marcus.shawcroft@arm.com>
10039 Nigel Stephens <nigel.stephens@arm.com>
10040 Yufeng Zhang <yufeng.zhang@arm.com>
10041
10042 * aarch64-linux-nat.c: New file.
10043 * config/aarch64/linux.mh: New file.
10044 * configure.host: Add AArch64.
10045 * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
10046
10047 2013-02-07 Doug Evans <dje@google.com>
10048
10049 * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
10050 disassemble command.
10051
10052 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
10053
10054 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
10055 set_gdbarch_fetch_tls_load_module_address.
10056
10057 2013-02-06 David S. Miller <davem@davemloft.net>
10058
10059 * sparc-tdep.c (sparc32_return_value): Handle writing return value when
10060 using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
10061 * value.c (struct_return_convention): New function.
10062 (using_struct_return): Implement in terms of struct_return_convention.
10063 * value.h (struct_return_convention): Declare.
10064 * stack.c (return_command): Allow successful overriding of the return
10065 value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
10066
10067 2013-02-06 Tom Tromey <tromey@redhat.com>
10068
10069 * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
10070 outside of TRY_CATCH.
10071
10072 2013-02-06 Yao Qi <yao@codesourcery.com>
10073
10074 * mi/mi-interp.c: Include "tracepoint.h".
10075 (mi_tsv_modified): Declare.
10076 (mi_tsv_created, mi_tsv_deleted): Update declaration.
10077 (mi_interpreter_init): Call observer_attach_tsv_modified.
10078 (mi_tsv_modified): New.
10079 (mi_tsv_created, mi_tsv_deleted): Update.
10080 * tracepoint.c (trace_variable_command): Call
10081 observer_notify_tsv_modified if the initial value of tsv is
10082 changed.
10083 (delete_trace_state_variable): Call
10084 observer_notify_tsv_deleted earlier.
10085 (trace_variable_command): Caller update.
10086 (create_tsv_from_upload): Likewise.
10087 * observer.sh: Declare "struct trace_state_variable".
10088
10089 * NEWS: Mention the new MI notification "=tsv-modified".
10090
10091 2013-02-05 Doug Evans <dje@google.com>
10092
10093 * completer.c (location_completer): Fix typo in comment.
10094
10095 2013-02-05 Jan Kratochvil <jan.kratochvil@redhat.com>
10096
10097 * breakpoint.c (add_location_to_breakpoint): Insert the location with
10098 ADDRESS sorted.
10099
10100 2013-02-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
10101
10102 * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
10103 Refactor if statement to avoid trailing || operator.
10104
10105 2013-02-05 Andreas Tobler <andreast@fgznet.ch>
10106
10107 * NEWS: Add PowerPC FreeBSD as a new native configuration.
10108
10109 2013-02-04 Andreas Tobler <andreast@fgznet.ch>
10110
10111 * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
10112 * configure.host: Add powerpc*-*-freebsd* target.
10113 * configure.tgt: Add target info for powerpc*-*-freebsd*.
10114 * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
10115 * config/powerpc/fbsd.mh: New file.
10116
10117 2013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
10118 Denys Vlasenko <dvlasenk@redhat.com>
10119 Pedro Alves <palves@redhat.com>
10120
10121 * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
10122 (struct elf_internal_linux_prpsinfo): Forward declare.
10123 * gdbarch.h, gdbarch.c: Regenerate.
10124 * linux-tdep.c: Include `cli/cli-utils.h'.
10125 (linux_fill_prpsinfo): New function.
10126 (linux_make_corefile_notes): Use linux_fill_prpsinfo. If there's
10127 an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
10128 elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
10129 depending on gdbarch pointer bitness.
10130 * ppc-linux-tdep.c: Include elf-bfd.h.
10131 (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
10132 on 32-bit.
10133
10134 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
10135 Marcus Shawcroft <marcus.shawcroft@arm.com>
10136 Nigel Stephens <nigel.stephens@arm.com>
10137 Yufeng Zhang <yufeng.zhang@arm.com>
10138
10139 * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
10140
10141 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
10142 Marcus Shawcroft <marcus.shawcroft@arm.com>
10143 Nigel Stephens <nigel.stephens@arm.com>
10144 Yufeng Zhang <yufeng.zhang@arm.com>
10145
10146 * aarch64-newlib-tdep.c: New file.
10147 * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
10148 aarch64*-*-elf.
10149 * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
10150 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
10151 (ALLDEPFILES): Add aarch64-newlib-tdep.c.
10152 * osabi.c (gdb_osabi_names): Add "Newlib".
10153
10154 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
10155 Marcus Shawcroft <marcus.shawcroft@arm.com>
10156 Nigel Stephens <nigel.stephens@arm.com>
10157 Yufeng Zhang <yufeng.zhang@arm.com>
10158
10159 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
10160 (ALLDEPFILES): Add aarch64-linux-tdep.c.
10161 * aarch64-linux-tdep.c: New file.
10162 * aarch64-linux-tdep.h: New file.
10163 * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
10164 * configure.tgt: Add aarch64-none-linux-gnu.
10165
10166 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
10167 Marcus Shawcroft <marcus.shawcroft@arm.com>
10168 Nigel Stephens <nigel.stephens@arm.com>
10169 Yufeng Zhang <yufeng.zhang@arm.com>
10170
10171 * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
10172 (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
10173 (ALLDEPFILES): Add aarch64-tdep.c.
10174 * aarch64-tdep.c: New file.
10175 * aarch64-tdep.h: New file.
10176 * configure.tgt: Add AArch64.
10177 * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
10178 (aarch64-expedite): New definition.
10179 * features/aarch64-core.xml: New file.
10180 * features/aarch64-fpu.xml: New file.
10181 * features/aarch64-without-fpu.c: New file (generated).
10182 * features/aarch64-without-fpu.xml: New file.
10183 * features/aarch64.c: New file (generated).
10184 * features/aarch64.xml: New file.
10185 * regformats/aarch64-without-fpu.dat: New file (generated).
10186 * regformats/aarch64.dat: New file (generated).
10187
10188 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10189
10190 * contrib/expect-read1.c: New file.
10191 * contrib/expect-read1.sh: New file.
10192
10193 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10194
10195 * dwarf2read.c (file_file_name): New function with code from
10196 file_full_name.
10197 (file_full_name): Move most of the code to file_file_name.
10198 (macro_start_file): Rename variable full_name to file_name and use
10199 file_file_name for it. Add comp_dir parameter to new_macro_table.
10200 * macrocmd.c (show_pp_source_pos): New variable fullname. Replace any
10201 macro_source_file->filename access by macro_source_fullname call.
10202 * macroscope.c (_initialize_macroscope): Update the new_macro_table
10203 caller.
10204 * macrotab.c (struct macro_table): New field comp_dir.
10205 (macro_include): New variables link_fullname and source_fullname.
10206 Replace any macro_source_file->filename access by macro_source_fullname
10207 call.
10208 (macro_lookup_inclusion): Remove the partial filenames checking code.
10209 (check_for_redefinition): New variables source_fullname and
10210 found_key_fullname. Replace any macro_source_file->filename access by
10211 macro_source_fullname call.
10212 (macro_undef): New variables source_fullname and key_fullname. Replace
10213 any macro_source_file->filename access by macro_source_fullname call.
10214 (macro_lookup_definition): New variables retval and source_fullname.
10215 Replace any macro_source_file->filename access by macro_source_fullname
10216 call.
10217 (foreach_macro): New variable key_fullname. Replace any
10218 macro_source_file->filename access by macro_source_fullname call.
10219 (foreach_macro_in_scope): New variable datum_fullname. Replace any
10220 macro_source_file->filename access by macro_source_fullname call.
10221 (new_macro_table): Add parameter comp_dir. Initialize T with it.
10222 (macro_source_fullname): New function.
10223 * macrotab.h (struct macro_source_file): Extent the filename field
10224 comment.
10225 (new_macro_table): New parameter comp_dir, add a comment for it.
10226 (macro_source_fullname): new declaration.
10227
10228 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10229
10230 * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
10231 this_real_name to outer block. Use it also for
10232 compare_filenames_for_search.
10233 (dw2_expand_symtabs_matching): New variable this_real_name. Use it
10234 with dw2_get_real_path for file_matcher, considering also
10235 BASENAMES_MAY_DIFFER.
10236 (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
10237
10238 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10239
10240 * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
10241 to the file_matcher parameter. Pass 0 to it.
10242 (dwarf2_create_include_psymtab): Copy also DIRNAME.
10243 * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
10244 NULL psymtab_to_fullname result.
10245 (psymtab_to_fullname): Remove variable r. Never return NULL, assemble
10246 an expected filename instead.
10247 (expand_symtabs_matching_via_partial): Add basenames parameter to the
10248 file_matcher parameter. Call also psymtab_to_fullname, after newly
10249 considering BASENAMES_MAY_DIFFER.
10250 * source.c (rewrite_source_path): Remove static.
10251 * source.h (rewrite_source_path): New declaration.
10252 * symfile.h (struct quick_symbol_functions): Add basenames parameter to
10253 the expand_symtabs_matching field. Comment it.
10254 * symtab.c (file_matches): New function comment. Add parameter
10255 basenames, implement it.
10256 (search_symbols_file_matches): Add basenames parameter. Update the
10257 file_matches caller.
10258 (search_symbols): Match FILES also against symtab_to_fullname.
10259 Optimize it for BASENAMES_MAY_DIFFER.
10260
10261 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10262
10263 * source.c (print_source_lines_base): Print for TUI also "fullname".
10264 * tui/tui-data.c (init_content_element): Change tui_locator_element
10265 field to full_name.
10266 * tui/tui-data.h (struct tui_locator_element): Likewise.
10267 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
10268 tui_update_locator_filename calls to tui_update_locator_fullname.
10269 Replace symtab->filename refererence by symtab_to_fullname call.
10270 * tui/tui-out.c (tui_field_string): Check for "fullname" now.
10271 * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
10272 field to full_name. Replace symtab->filename refererence by
10273 symtab_to_fullname call.
10274 (tui_show_symtab_source): Rename parameter to fullname. Change
10275 tui_locator_element field to full_name.
10276 * tui/tui-stack.c: Include source.h.
10277 (tui_set_locator_filename): Rename the declaration to ...
10278 (tui_set_locator_fullname): ... here. Rename its parameter to
10279 fullname, updates its comment.
10280 (tui_set_locator_info): Rename its parameter to fullname.
10281 (tui_set_locator_filename): Rename the definition to ...
10282 (tui_set_locator_fullname): ... here. Rename its parameter to
10283 fullname, updates its comment. Change tui_locator_element field to
10284 full_name.
10285 (tui_set_locator_info): Rename its parameter to fullname.
10286 (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
10287 (tui_update_locator_filename): Rename to ...
10288 (tui_update_locator_fullname): ... here. Rename callee to
10289 tui_set_locator_fullname.
10290 (tui_show_frame_info): Replace symtab->filename refererence by
10291 symtab_to_fullname call.
10292 * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
10293 (tui_update_locator_fullname): ... here.
10294 * tui/tui-winsource.c (tui_display_main): Rename the callee to
10295 tui_update_locator_fullname. Replace symtab->filename refererence by
10296 symtab_to_fullname call.
10297 * tui/tui.c (tui_show_source): Rename its parameter to fullname.
10298 Rename the callee to tui_update_locator_fullname.
10299 * tui/tui.h (tui_show_source): Rename its parameter to fullname.
10300
10301 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10302
10303 * ada-lang.c (user_select_syms): Replace symtab->filename refererences
10304 by symtab_to_filename_for_display calls.
10305 * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
10306 (clear_command): New variable sal_fullname, initialize it. Replace
10307 compare_filenames_for_search by filename_cmp with sal_fullname.
10308 (say_where, update_static_tracepoint): Replace symtab->filename
10309 refererences by symtab_to_filename_for_display calls.
10310 * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
10311 Likewise.
10312 * dwarf2read.c: Include source.h.
10313 (fixup_go_packaging): Replace symtab->filename refererences by
10314 symtab_to_filename_for_display calls.
10315 * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
10316 Replace symtab->filename refererences by symtab_to_filename_for_display
10317 calls.
10318 (create_sals_line_offset, convert_linespec_to_sals): New variable
10319 fullname, initialize it, replace symtab->filename reference by the
10320 variable.
10321 * linux-fork.c: Include source.h.
10322 (info_checkpoints_command): Replace symtab->filename refererences by
10323 symtab_to_filename_for_display calls.
10324 * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
10325 by symtab_to_filename_for_display calls.
10326 * mdebugread.c: Include source.h.
10327 (psymtab_to_symtab_1): Replace symtab->filename refererences by
10328 symtab_to_filename_for_display calls.
10329 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
10330 (mi_cmd_file_list_exec_source_files): Likewise.
10331 * printcmd.c: Include source.h.
10332 (build_address_symbolic): Replace symtab->filename refererences by
10333 symtab_to_filename_for_display calls.
10334 * psymtab.c (partial_map_symtabs_matching_filename)
10335 (read_psymtabs_with_fullname): Call compare_filenames_for_search also
10336 with psymtab_to_fullname.
10337 * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
10338 by symtab_to_filename_for_display calls.
10339 (stpy_get_filename): New variable filename, initialize it, use instead
10340 of symtab->filename refererences.
10341 (salpy_str): Make variable filename const char *. Replace
10342 symtab->filename refererences by symtab_to_filename_for_display calls.
10343 * skip.c: Include source.h and filenames.h.
10344 (skip_file_command): Remove const from the symtab variable. Replace
10345 symtab->filename refererences by symtab_to_fullname call.
10346 (function_name_is_marked_for_skip): New variables searched_for_fullname
10347 and fullname. Use them to search also with symtab's fullname.
10348 * source.c (find_source_lines): Replace symtab->filename refererences
10349 by symtab_to_filename_for_display calls.
10350 (print_source_lines_base): New variable filename, use it instead of
10351 symtab->filename. Replace symtab->filename refererences by
10352 symtab_to_filename_for_display calls.
10353 (line_info, forward_search_command): Replace symtab->filename
10354 refererences by symtab_to_filename_for_display calls.
10355 (reverse_search_command): Replace symtab->filename refererences by
10356 symtab_to_filename_for_display calls. New variable filename for it.
10357 * stack.c (frame_info): Likewise.
10358 * symmisc.c: Include source.h.
10359 (dump_objfile, dump_symtab_1, maintenance_print_symbols)
10360 (maintenance_info_symtabs): Replace symtab->filename refererences by
10361 symtab_to_filename_for_display calls.
10362 * symtab.c (iterate_over_some_symtabs): Call
10363 compare_filenames_for_search also with symtab_to_fullname.
10364 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
10365 symtab->filename refererences by symtab_to_filename_for_display calls.
10366 (find_line_symtab): Replace symtab->filename refererences by
10367 symtab_to_filename_for_display calls.
10368 (file_matches): Replace filename_cmp by compare_filenames_for_search.
10369 (print_symbol_info): Make the last parameter const char *. New
10370 variable s_filename. Use it in the function.
10371 (symtab_symbol_info): Make the last_filename variable const char *.
10372 Replace symtab->filename refererences by symtab_to_filename_for_display
10373 calls.
10374 (rbreak_command): New variable fullname. Use it. Replace
10375 symtab->filename refererence by symtab_to_filename_for_display call.
10376 * tracepoint.c (set_traceframe_context, trace_find_line_command)
10377 (print_one_static_tracepoint_marker): Replace symtab->filename
10378 refererences by symtab_to_filename_for_display calls.
10379 * tui/tui-source.c (tui_set_source_content): New variables filename and
10380 s_filename. Replace symtab->filename refererences by this variable.
10381 Replace other symtab->filename refererences by
10382 symtab_to_filename_for_display calls.
10383
10384 2013-02-03 Eldar Gaynetdinov <hal9000ed2k@gmail.com>
10385 Jan Kratochvil <jan.kratochvil@redhat.com>
10386
10387 Add a new variable that controls a way in which filenames are
10388 displayed.
10389 * NEWS (set filename-display): New entry.
10390 * source.c (filename_display_basename, filename_display_relative)
10391 (filename_display_absolute, filename_display_kind_names)
10392 (filename_display_string, show_filename_display_string)
10393 (symtab_to_filename_for_display): New.
10394 (_initialize_source): Added initialization of 'filename-display'
10395 variable.
10396 * source.h (symtab_to_filename_for_display): Added declaration.
10397 * stack.c (print_frame): Added new variable and calling of a new
10398 function and condition with this variable. Changed third argument of
10399 calling of a function.
10400
10401 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10402
10403 * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
10404 Rename field reference filename to fullname.
10405 * tui/tui-data.h (struct tui_source_info): Rename field filename to
10406 fullname. New comment for it.
10407 * tui/tui-source.c (tui_set_source_content): Rename field reference
10408 filename to fullname. Initialize field by symtab_to_fullname now.
10409 * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
10410 reference filename to fullname. Use symtab_to_fullname during
10411 comparison.
10412
10413 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10414
10415 Code cleanup.
10416 * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
10417 (dw2_expand_symtabs_with_fullname): ... here. Rename parameter
10418 filename to fullname. Rename variable this_name to this_fullname.
10419 Lowercase FILENAME_CMP call.
10420 (dw2_find_symbol_file): New comment for the returned string.
10421 (dwarf2_gdb_index_functions): Rename the function to
10422 dw2_expand_symtabs_with_fullname.
10423 * psymtab.c (read_psymtabs_with_filename): Rename to ...
10424 (read_psymtabs_with_fullname): ... here. Rename parameter filename to
10425 fullname.
10426 (psym_functions): Rename the function to read_psymtabs_with_fullname.
10427 * symfile.h (struct quick_symbol_functions): Rename field
10428 expand_symtabs_with_filename to expand_symtabs_with_fullname and its
10429 parameter filename to fullname. Document returned string meaning for
10430 find_symbol_file.
10431 * symtab.c (find_line_symtab): Rename the called function to
10432 expand_symtabs_with_fullname.
10433
10434 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10435
10436 Code cleanup.
10437 * breakpoint.c (clear_command): Remove variable is_abs, unify the
10438 call of filename_cmp with compare_filenames_for_search.
10439 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
10440 is_abs, unify the call of FILENAME_CMP with
10441 compare_filenames_for_search. New gdb_asserts for real_path and name.
10442 Unify the call of compare_filenames_for_search with FILENAME_CMP.
10443 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
10444 * symfile.h (struct quick_symbol_functions): Extend the comment for
10445 map_symtabs_matching_filename.
10446 * symtab.c (compare_filenames_for_search): Remove the function comment
10447 relative path requirement. Handle absolute filenames, with a comment.
10448 (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
10449 FILENAME_CMP with compare_filenames_for_search. New gdb_asserts for
10450 real_path and name. Unify the call of compare_filenames_for_search
10451 with FILENAME_CMP.
10452 (iterate_over_symtabs): New gdb_assert on REAL_PATH.
10453
10454 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10455
10456 Code cleanup.
10457 * breakpoint.c (print_breakpoint_location): Replace bp_location field
10458 source_file references by symtab field references. Remove variables
10459 sal and fullname.
10460 (momentary_breakpoint_from_master, add_location_to_breakpoint):
10461 (clear_command, say_where): Replace bp_location field source_file
10462 references by symtab field references.
10463 (bp_location_dtor): Remove the source_file reference.
10464 (update_static_tracepoint): Replace bp_location field source_file
10465 references by symtab field references.
10466 (breakpoint_free_objfile): New function.
10467 * breakpoint.h (struct bp_location): Extend the comment for line_number.
10468 Replace the field source_file by field symtab, extend its comment.
10469 (breakpoint_free_objfile): New declaration.
10470 * objfiles.c (free_objfile): Call breakpoint_free_objfile.
10471 * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
10472 field source_file references by symtab field references.
10473
10474 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10475
10476 Replace xfullpath calls by gdb_realpath calls.
10477 * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
10478 function comment.
10479 * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
10480 Remove it from the iterate_over_some_symtabs call.
10481 (dw2_map_symtabs_matching_filename): Remove parameter full_path.
10482 Remove it from the dw2_map_expand_apply calls, remove a block handling
10483 it.
10484 * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
10485 Remove it from the iterate_over_some_symtabs call.
10486 (partial_map_symtabs_matching_filename): Remove parameter full_path.
10487 Remove it from the partial_map_expand_apply calls, remove a block
10488 handling it. Drop gdb_realpath call and cleanups from the real_path
10489 handling.
10490 * source.c (openp): Drop the comment part about xfullpath. Replace
10491 xfullpath calls by gdb_realpath calls.
10492 (find_and_open_source): Replace xfullpath call by gdb_realpath call.
10493 * symfile.h (struct quick_symbol_functions): Remove parameter full_path
10494 from method map_symtabs_matching_filename and its comment.
10495 * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
10496 gdb_realpath call.
10497 * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
10498 remove it also from the function comment, remove a block handling it.
10499 Drop gdb_realpath call and cleanups from the real_path handling.
10500 (iterate_over_symtabs): Drop variable full_path and its use.
10501 * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
10502 * utils.c (xfullpath): Remove.
10503 * utils.h (xfullpath): Remove.
10504
10505 2013-02-01 Andreas Tobler <andreast@fgznet.ch>
10506
10507 * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
10508 (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
10509 (ALLDEPFILES): Add ppc64-tdep.c.
10510 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
10511 ppc64-tdep.o to gdb_target_obs.
10512 * ppc64-tdep.h: New file.
10513 * ppc64-tdep.c: New file.
10514 (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
10515 ppc-linux-tdep.c to here.
10516 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
10517 (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
10518 (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
10519 (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
10520 from ppc-linux-tdep.c to here.
10521 (ppc64_convert_from_func_ptr_addr): Rename from
10522 ppc64_linux_convert_from_func_ptr_addr to
10523 ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
10524 here.
10525 * rs6000-tdep.c:
10526 (read_insn): Move from ppc-linux-tdep.c to here.
10527 (insns_match_pattern, insn_d_field, insn_ds_field): Move
10528 from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
10529 * ppc-linux-tdep.c: Include ppc64-tdep.h.
10530 Removed above functions.
10531 (ppc_linux_init_abi): Adjust.
10532
10533 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
10534
10535 * ada-valprint.c (ada_print_floating): Remove unused 'len'.
10536
10537 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
10538
10539 * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
10540
10541 2013-02-01 Pedro Alves <palves@redhat.com>
10542
10543 * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
10544 * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
10545
10546 2013-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10547
10548 * elfread.c (elf_symfile_read): Limit separate debug info additions to
10549 files with no separate debug info.
10550 * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
10551 * symfile.c (read_symbols): Call find_separate_debug_file_in_section
10552 only for files with no separate debug info.
10553
10554 2013-01-31 Tom Tromey <tromey@redhat.com>
10555
10556 * jit.c (jit_program_space_data): Rename from jit_inferior_data;
10557 change type.
10558 (struct jit_program_space_data): Rename from jit_inferior_data.
10559 Update comments.
10560 (get_jit_program_space_data): Rename from get_jit_inferior_data.
10561 Change return type. Attach data to program space.
10562 (jit_program_space_data_cleanup): Rename from
10563 jit_inferior_data_cleanup; change argument type.
10564 (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
10565 change type.
10566 (jit_register_code): Update.
10567 (jit_update_inferior_cache): Remove.
10568 (jit_breakpoint_deleted): Get jit data from the location's program
10569 space.
10570 (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
10571 'ps_data', change type.
10572 (jit_inferior_init, jit_breakpoint_re_set_internal)
10573 (jit_event_handler): Update.
10574 (free_objfile_data): Get data from objfile's program space.
10575 (_initialize_jit): Update.
10576
10577 2013-01-31 Tom Tromey <tromey@redhat.com>
10578
10579 PR gdb/13987:
10580 * jit.c (struct jit_inferior_data) <cached_code_address,
10581 jit_breakpoint>: New fields.
10582 (jit_breakpoint_re_set_internal): Fix logging. Only create
10583 breakpoint if cached address has changed.
10584 (jit_update_inferior_cache, jit_breakpoint_deleted): New
10585 functions.
10586 (_initialize_jit): Register breakpoint deleted observer.
10587
10588 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10589
10590 * infrun.c (handle_syscall_event): Remove unused gdbarch.
10591 (save_infcall_suspend_state): Ifdef out unused inf.
10592 (restore_infcall_suspend_state): Ifdef out unused inf.
10593 * jit.c (jit_register_code): Remove unused i, b, inf_data.
10594 (jit_frame_sniffer): Remove unused inf_data.
10595
10596 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10597
10598 * c-exp.y (classify_inner_name): Remove unused type.
10599 * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
10600 in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
10601 need_escape.
10602 (c_get_string): Remove unused kind.
10603 * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
10604
10605 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10606
10607 * charset.c (intermediate_encoding): Remove unused i.
10608 * completer.c (signal_completer): Remove unused i.
10609 * continuations.c (discard_my_continuations_1): Remove unused
10610 continuation_ptr.
10611 * corelow.c (core_close): Remove unuseD name.
10612 (get_core_siginfo): Remove unused pid.
10613 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
10614 i, cps.
10615 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
10616 (loclist_describe_location): Remove unused first.
10617 * event-top.c (command_line_handler): Remove unused got_eof.
10618 * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
10619 (resize_section_table): Remove unused old_value.
10620 * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
10621 * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
10622 * i386-tdep.c (i386_process_record): Remove unused rex.
10623 * infcmd.c (get_return_value): Remove unused uiout.
10624 * jv-lang.c (type_from_class): Remove unused is_array.
10625 * jv-valprint.c (java_val_print): Remove unused i.
10626 * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
10627 * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
10628 * m2-typeprint.c (m2_print_type): Remove unused code.
10629 * macroexp.c (get_character_constant): Remove unused body_start.
10630 (macro_stringify): Remove unused result.
10631 * objc-lang.c (find_methods): Remove unused gdbarch.
10632 * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
10633 * regcache.c (regcache_cooked_read): Remove unused gdbarch.
10634 * stack.c (print_frame_args): Remove unused summary.
10635 * thread.c (thread_apply_command): Remove unused p.
10636 * valarith.c (value_x_unop): Remove unused mangle_ptr.
10637 * valops.c (search_struct_method): Remove unused skip.
10638 * valprint.c (generic_val_print): Remove unused byte_order.
10639 * varobj.c (varobj_update): Remove unused changed.
10640 * cli/cli-cmds.c (complete_command): Remove unused next_item.
10641 (alias_command): Remove unused c.
10642 * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
10643 * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
10644 format.
10645 (mi_cmd_data_write_memory): Remove unused word_format.
10646 (mi_cmd_data_write_memory_bytes): Remove unused r.
10647 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
10648 p_start, p_end.
10649 * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
10650 * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
10651 line_width.
10652
10653 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10654
10655 * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
10656 * symtab.c (iterate_over_symtabs): Remove unused s.
10657 (find_pc_sect_symtab): Remove unused pspAce.
10658 (find_pc_sect_line): Remove unused alt_symtab.
10659 (find_pcs_for_symtab_line): Remove unused ix, previous_function.
10660 (completion_list_add_name): Remove unused newsize.
10661
10662 2013-01-31 Tom Tromey <tromey@redhat.com>
10663
10664 PR c++/14998:
10665 * dwarf2read.c (read_tag_ptr_to_member_type): Handle
10666 TYPE_CODE_FUNC.
10667
10668 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10669
10670 * target.c (target_read_string): Remove unused origlen.
10671
10672 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10673
10674 * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
10675 * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
10676 * ax-general.c (ax_print): Remove unused is_float.
10677 * blockframe.c (block_innermost_frame): Remove unused start, end.
10678 * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
10679
10680 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10681
10682 * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
10683 (svr4_read_so_list): Remove unused lmo.
10684 * solib-target.c (solib_target_relocate_section_addresses): Remove
10685 unused flags.
10686
10687 2013-01-30 Tom Tromey <tromey@redhat.com>
10688
10689 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
10690
10691 2013-01-30 Tom Tromey <tromey@redhat.com>
10692
10693 * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
10694 * utils.c (gnu_debuglink_crc32): Remove.
10695 * utils.h (gnu_debuglink_crc32): Don't declare.
10696
10697 2013-01-30 Tom Tromey <tromey@redhat.com>
10698
10699 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
10700 (read_structure_type, read_enumeration_type): Remove cast.
10701
10702 2013-01-30 Tom Tromey <tromey@redhat.com>
10703
10704 * dwarf2read.c (read_namespace_type): Remove cast.
10705 (read_typedef): Likewise.
10706
10707 2013-01-29 Tom Tromey <tromey@redhat.com>
10708
10709 * dwarf2read.c (free_dwo_file): Remove assert.
10710
10711 2013-01-29 Tom Tromey <tromey@redhat.com>
10712
10713 * value.c (deprecated_set_value_modifiable): Remove.
10714 * value.h (deprecated_set_value_modifiable): Remove.
10715
10716 2013-01-28 Doug Evans <dje@google.com>
10717
10718 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
10719 to addresses from dwo files.
10720
10721 2013-01-25 Siva Chandra Reddy <sivachandra@google.com>
10722
10723 * valops.c (find_overload_match): Remove unused argument 'lax'.
10724 * value.h: Remove unused argument 'lax' from the declaration of
10725 find_overload_match.
10726 * eval.c (value_subexp_standard): Do not pass a 'lax' argument
10727 to find_overload_match.
10728 * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
10729 argument to find_overload_match.
10730
10731 2013-01-25 Tom Tromey <tromey@redhat.com>
10732
10733 * dwarf2read.c (processing_has_namespace_info): Remove.
10734 (struct dwarf2_cu) <processing_has_namespace_info>: New field.
10735 (process_die, read_func_scope, dwarf2_start_symtab)
10736 (new_symbol_full): Update.
10737
10738 2013-01-25 Tom Tromey <tromey@redhat.com>
10739
10740 * cp-namespace.c (cp_set_block_scope): Remove.
10741 * cp-support.h (cp_set_block_scope): Remove.
10742 * dbxread.c: Include block.h.
10743 (cp_set_block_scope): New function.
10744 (process_one_symbol): Update.
10745 * dwarf2read.c (read_func_scope): Use block_set_scope.
10746
10747 2013-01-25 Pedro Alves <palves@redhat.com>
10748
10749 * remote.c (add_current_inferior_and_thread): Tweak comment.
10750
10751 2013-01-25 Tom Tromey <tromey@redhat.com>
10752
10753 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
10754 (cp_add_using_directive): Add 'copy_names' argument.
10755 * cp-support.h (cp_add_using_directive): Update.
10756 (struct using_direct) <import_src, import_dest, alias,
10757 declaration>: Now const.
10758 * dwarf2read.c (read_import_statement): Use obconcat.
10759 Don't copy names passed to cp_add_using_directive.
10760
10761 2013-01-25 Tom Tromey <tromey@redhat.com>
10762
10763 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
10764
10765 2013-01-25 Pedro Alves <palves@redhat.com>
10766
10767 * remote.c (stop_reply_extract_thread): New.
10768 (add_current_inferior_and_thread): New parameter 'wait_status'.
10769 Handle it.
10770 (remote_start_remote): Pass wait status to
10771 add_current_inferior_and_thread.
10772 (extended_remote_run): Update comment.
10773 (extended_remote_create_inferior_1): Pass wait status to
10774 add_current_inferior_and_thread.
10775
10776 2013-01-25 Andrew Burgess <aburgess@broadcom.com>
10777 Ulrich Weigand <uweigand@de.ibm.com>
10778
10779 * valarith.c (value_vector_widen): New function for replicating a
10780 scalar into a vector.
10781 (value_binop): Use value_vector_widen to widen scalar to vector
10782 rather than casting, this better matches gcc C behaviour.
10783 * valops.c (value_casst): Update logic for casting between vector
10784 types, and for casting from scalar to vector, try to match gcc C
10785 behaviour.
10786 * value.h (value_vector_widen): Declare.
10787 * opencl-lang.c (opencl_value_cast): New opencl specific casting
10788 function, handle special case for casting scalar to vector.
10789 (opencl_relop): Use opencl_value_cast.
10790 (evaluate_subexp_opencl): Use opencl_value_cast instead of
10791 value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
10792 in order to use opencl_value_cast.
10793
10794 2013-01-25 Yao Qi <yao@codesourcery.com>
10795
10796 * event-loop.c: Include "queue.h".
10797 (gdb_event_p): New typedef.
10798 (DECLARE_QUEUE_P): Use.
10799 (DEFINE_QUEUE_P): Use.
10800 (async_queue_event): Remove.
10801 (gdb_event_xfree): New.
10802 (initialize_event_loop): New.
10803 (process_event): Use QUEUE macros.
10804 (event_queue): Remove.
10805 (gdb_wait_for_event): Caller update.
10806 (check_async_event_handlers): Likewise.
10807 (poll_timers): Likewise.
10808 * event-loop.h (initialize_event_loop): Declare.
10809 * event-loop.c (gdb_event_xfree): New.
10810 * top.c (gdb_init): Call initialize_event_loop.
10811
10812 2013-01-25 Yao Qi <yao@codesourcery.com>
10813
10814 * event-loop.c (async_queue_event): Remove one parameter
10815 'position'. Remove code handling 'position' == TAIL.
10816 (gdb_wait_for_event): Caller update.
10817 (check_async_event_handlers): Caller update.
10818 (poll_timers): Caller update.
10819 * event-loop.h (enum queue_position): Remove.
10820
10821 2013-01-25 Maxim Kuvyrkov <maxim@kugelworks.com>
10822
10823 * MAINTAINERS: Update my email.
10824
10825 2013-01-25 Yao Qi <yao@codesourcery.com>
10826
10827 * main.c (print_gdb_help): Remove "--epoch" from the help
10828 message.
10829
10830 2013-01-24 Ulrich Weigand  <uweigand@de.ibm.com>
10831
10832 * symtab.c (skip_prologue_using_sal): Consider a file
10833 change the same as an increased line number
10834
10835 2013-01-24 Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
10836
10837 * MAINTAINERS (Write After Approval): Add myself to the list.
10838
10839 2013-01-24 Tom Tromey <tromey@redhat.com>
10840
10841 * ada-lang.h (ada_decode_symbol): Make return type const.
10842 * ada-lang.c (ada_decode_symbol): Likewise.
10843
10844 2013-01-23 Doug Evans <dje@google.com>
10845
10846 * linespec.c (find_linespec_symbols): Make static.
10847
10848 2013-01-23 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
10849
10850 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
10851 type on float conversion for complex type.
10852
10853 2013-01-23 Siva Chandra Reddy <sivachandra@google.com>
10854
10855 Add a new class gdb.Architecture which exposes GDB's
10856 internal representation of architecture via GDB Python API.
10857 * Makefile.in: Add entries corresponding to the new file
10858 python/py-arch.c.
10859 * NEWS (Python Scripting): Add entries for the new class
10860 gdb.Architecture and the new method gdb.Frame.architecture.
10861 * python/py-arch.c: Implement gdb.Architecture class.
10862 * python/py-frame.c (frapy_arch): Implement the method
10863 gdb.Frame.architecture().
10864 (frame_object_methods): Add 'architecture' to the method table.
10865 * python/python-internal.h: Add declarations of new utility
10866 functions.
10867 * python/python.c (_initialize_python): Initialize
10868 gdb.Architecture class.
10869
10870 2013-01-23 Doug Evans <dje@google.com>
10871
10872 Work around binutils/15021.
10873 * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
10874 type_unit_group out of union s. All uses updated.
10875 (read_index_from_section): Watch for index version 8.
10876 (follow_die_sig): If using .gdb_index version <= 7, record the TU as
10877 an imported symtab.
10878 (write_psymtabs_to_index): Increment version number to 8.
10879
10880 2013-01-22 Pedro Alves <palves@redhat.com>
10881
10882 * annotate.c (breakpoint_changed): Skip if breakpoint is not
10883 user-visible.
10884
10885 2013-01-22 Pedro Alves <palves@redhat.com>
10886
10887 * annotate.c (annotate_breakpoints_changed): Rename to ...
10888 (annotate_breakpoints_invalid): ... this. Make static.
10889 (breakpoint_changed): Adjust.
10890 (_initialize_annotate): Always install the observers. Install a
10891 "breakpoint_created" observer.
10892 * annotate.h (annotate_breakpoints_changed): Delete declaration.
10893 * breakpoint.c (set_breakpoint_condition)
10894 (breakpoint_set_commands, do_map_commands_command)
10895 (init_raw_breakpoint, clear_command, set_ignore_count)
10896 (enable_breakpoint_disp): No longer call
10897 annotate_breakpoints_changed.
10898
10899 2013-01-22 Pedro Alves <palves@redhat.com>
10900
10901 * annotate.c: Include "inferior.h".
10902 (frames_invalid_emitted)
10903 (breakpoints_invalid_emitted): New globals.
10904 (async_background_execution_p): New function.
10905 (annotate_breakpoints_changed, annotate_frames_invalid): Skip
10906 emitting the annotation if it has already been emitted.
10907 (annotate_display_prompt): New function.
10908 * annotate.h (annotate_display_prompt): New declaration.
10909 * event-top.c: Include annotate.h.
10910 (display_gdb_prompt): Call annotate_display_prompt.
10911
10912 2013-01-22 Pedro Alves <palves@redhat.com>
10913
10914 * annotate.c (ignore_count_changed): Delete.
10915 (annotate_breakpoints_changed): Don't clear ignore_count_changed.
10916 (annotate_ignore_count_change): Delete.
10917 (annotate_stopped): Don't emit a delayed breakpoints-changed
10918 annotation.
10919 * annotate.h (annotate_ignore_count_change): Delete.
10920 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
10921 annotate_ignore_count_change.
10922
10923 2013-01-22 Tom Tromey <tromey@redhat.com>
10924
10925 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
10926 require_rvalue for a register location.
10927
10928 2013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
10929
10930 * breakpoint.c (print_one_breakpoint_location): Add MI
10931 field 'thread-groups' when printing a breakpoint.
10932 (output_thread_groups): New function.
10933
10934 2013-01-21 Siva Chandra Reddy <sivachandra@google.com>
10935
10936 * python/lib/gdb/commands/explore.py
10937 (CompoundExplorer.explore_expr): Correct the name of a method
10938 being invoked.
10939 (ExploreTypeCommand.invoke): Add a missing 'return'.
10940
10941 2013-01-21 Tom Tromey <tromey@redhat.com>
10942
10943 * gdb_obstack.h (obconcat): Move declaration here, from...
10944 * symfile.h (obconcat): ... here.
10945 * gdb_obstack.c: New file.
10946 (obconcat): Move from...
10947 * symfile.c (obconcat): ... here.
10948 * Makefile.in (SFILES): Add gdb_obstack.c.
10949 (COMMON_OBS): Add gdb_obstack.o.
10950
10951 2013-01-21 Tom Tromey <tromey@redhat.com>
10952
10953 * symfile.h (obsavestring): Don't declare.
10954 * symfile.c (obsavestring): Remove.
10955 * ada-exp.y: Use obstack_copy0, not obsavestring.
10956 * ada-lang.c: Use obstack_copy0, not obsavestring.
10957 * coffread.c: Use obstack_copy0, not obsavestring.
10958 * cp-namespace.c: Use obstack_copy0, not obsavestring.
10959 * dbxread.c: Use obstack_copy0, not obsavestring.
10960 * dwarf2read.c: Use obstack_copy0, not obsavestring.
10961 * jit.c: Use obstack_copy0, not obsavestring.
10962 * mdebugread.c: Use obstack_copy0, not obsavestring.
10963 * psymtab.c: Use obstack_copy0, not obsavestring.
10964 * stabsread.c: Use obstack_copy0, not obsavestring.
10965 * xcoffread.c: Use obstack_copy0, not obsavestring.
10966
10967 2013-01-21 Tom Tromey <tromey@redhat.com>
10968
10969 * dwarf2read.c (fixup_go_packaging): Save package name
10970 on objfile obstack.
10971 * gdbtypes.c (init_type): Don't copy name.
10972
10973 2013-01-21 Tom Tromey <tromey@redhat.com>
10974
10975 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
10976 const.
10977 (struct attribute) <u.str>: Now const.
10978 (struct fnfieldlist) <name>: Now const.
10979 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
10980 (partial_die_parent_scope): Make return type const.
10981 (partial_die_full_name, add_partial_symbol): Update.
10982 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
10983 'name' const.
10984 (find_file_and_directory): Make 'name' and 'comp_dir' const.
10985 (read_file_scope, read_func_scope, dwarf2_add_field)
10986 (dwarf2_add_member_fn, read_structure_type)
10987 (process_enumeration_scope, read_array_type, read_module_type)
10988 (read_base_type, read_subrange_type): Update.
10989 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
10990 (new_symbol_full, guess_full_die_structure_name): Update.
10991 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
10992 (dwarf2_name): Return const type.
10993 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
10994 const.
10995
10996 2013-01-21 Tom Tromey <tromey@redhat.com>
10997
10998 * gdbtypes.c (init_type): Make 'name' const.
10999 * gdbtypes.h (init_type): Update.
11000
11001 2013-01-21 Tom Tromey <tromey@redhat.com>
11002
11003 * buildsym.c (patch_subfile_names): Use set_last_source_file.
11004 (start_symtab): Make 'name' and 'dirname' const. Use
11005 set_last_source_file.
11006 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
11007 (last_source_file): Define. Now static.
11008 (set_last_source_file, get_last_source_file): New functions.
11009 * buildsym.h (last_source_file): Don't declare.
11010 (start_symtab): Update.
11011 (set_last_source_file, get_last_source_file): Declare.
11012 * coffread.c (complete_symtab): Use set_last_source_file.
11013 (coff_end_symtab): Likewise.
11014 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
11015 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
11016 set_last_source_file.
11017 (process_one_symbol): Use get_last_source_file.
11018 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
11019 (psymtab_to_symtab_1): Use get_last_source_file.
11020 * xcoffread.c (process_linenos): Use get_last_source_file.
11021 (complete_symtab): Use set_last_source_file.
11022 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
11023 (scan_xcoff_symtab): Use set_last_source_file.
11024
11025 2013-01-21 Tom Tromey <tromey@redhat.com>
11026
11027 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
11028 (symbol_set_names): Remove casts. Handle field const-ness.
11029
11030 2013-01-21 Tom Tromey <tromey@redhat.com>
11031
11032 * dwarf2read.c (new_symbol_full): Remove cast.
11033 * symtab.c (symbol_set_demangled_name): Make 'name' const.
11034 * symtab.h (symbol_set_demangled_name): Update.
11035
11036 2013-01-21 Tom Tromey <tromey@redhat.com>
11037
11038 * main.c (captured_main): Call bfd_init.
11039
11040 2013-01-21 Tom Tromey <tromey@redhat.com>
11041
11042 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
11043 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
11044 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
11045 * NEWS: Update.
11046
11047 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
11048
11049 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
11050
11051 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
11052
11053 Fix gdb.fortran/common-block.exp crash in PIE mode.
11054 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
11055 LOC_COMMON_BLOCK.
11056 * f-valprint.c (info_common_command_for_block): Expect
11057 LOC_COMMON_BLOCK in gdb_assert.
11058 * symtab.h (struct general_symbol_info): Update comment for the
11059 common_block member.
11060 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
11061 (enum address_class): New member LOC_COMMON_BLOCK.
11062
11063 2013-01-18 David Blaikie <dblaikie@gmail.com>
11064
11065 * MAINTAINERS (Write After Approval): Add "David Blaikie".
11066
11067 2013-01-18 Tom Tromey <tromey@redhat.com>
11068
11069 PR c++/14999:
11070 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
11071 Call require_rvalue.
11072
11073 2013-01-18 Yao Qi <yao@codesourcery.com>
11074
11075 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
11076 (dbx_read_symtab): New declaration.
11077 (dbx_psymtab_to_symtab): Delete.
11078 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
11079 Rename parameter PST to SELF. Exchanged two parameters.
11080 (start_psymtab): Caller update.
11081 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
11082 (dwarf2_read_symtab): New declaration.
11083 (dwarf2_psymtab_to_symtab): Delete.
11084 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
11085 Rename parameter PST to SELF. Exchanged two parameters.
11086 (create_partial_symtab): Caller update.
11087 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
11088 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
11089 Rename parameter PST to SELF. Exchanged two parameters.
11090 (parse_partial_symbols, new_psymtab): Caller update.
11091 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
11092 two parameters.
11093 * psymtab.c (psymtab_to_symtab): Caller update.
11094 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
11095 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
11096 Rename parameter PST to SELF. Exchanged two parameters.
11097 (xcoff_start_psymtab): Caller update.
11098
11099 2013-01-18 Yao Qi <yao@codesourcery.com>
11100
11101 * infrun.c (proceed): Rename local variable 'oneproc' to
11102 'force_step'.
11103
11104 2013-01-17 Doug Evans <dje@google.com>
11105
11106 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
11107 (dw2_build_type_unit_groups): Delete. All uses updated.
11108
11109 * symtab.h (struct symbol_search): Add comment.
11110
11111 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
11112
11113 * symtab.c (compare_filenames_for_search): New comment for
11114 HAS_DRIVE_SPEC.
11115
11116 2013-01-17 Tom Tromey <tromey@redhat.com>
11117
11118 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
11119
11120 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
11121
11122 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
11123 initialize it by existing make_cleanup. Call new do_cleanups.
11124
11125 2013-01-17 Tom Tromey <tromey@redhat.com>
11126
11127 * cp-abi.c (cp_abi_completer): New function.
11128 (_initialize_cp_abi): Set completer for "set cp-abi".
11129
11130 2013-01-17 Tom Tromey <tromey@redhat.com>
11131
11132 * mem-break.c: Remove obsolete comment.
11133 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
11134
11135 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
11136
11137 * jit.c (jit_reader_load_command): Interpret the jit reader name
11138 as an absolute path if it begins with a forward slash.
11139
11140 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
11141
11142 PR gdb/14550
11143
11144 * jit.c (finalize_symtab): Ensure that only the global block has a
11145 NULL superblock.
11146
11147 2013-01-17 Pedro Alves <palves@redhat.com>
11148
11149 * acinclude.m4: Include ../config/plugins.m4,
11150 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
11151 * Makefile.in (aclocal_m4_deps): Update.
11152 * aclocal.m4: Renegerate.
11153
11154 2013-01-16 Doug Evans <dje@google.com>
11155
11156 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
11157
11158 2013-01-16 Pedro Alves <palves@redhat.com>
11159 Tom Tromey <tromey@redhat.com>
11160
11161 PR cli/7221:
11162 * NEWS: Add "catch signal".
11163 * breakpoint.c (base_breakpoint_ops): No longer static.
11164 (bpstat_explains_signal): New function.
11165 (init_catchpoint): No longer static.
11166 (base_breakpoint_explains_signal): New function.
11167 (base_breakpoint_ops): Initialize new field.
11168 * breakpoint.h (enum bpstat_signal_value): New.
11169 (struct breakpoint_ops) <explains_signal>: New field.
11170 (bpstat_explains_signal): Remove macro, declare as function.
11171 (base_breakpoint_ops, init_catchpoint): Declare.
11172 * break-catch-sig.c: New file.
11173 * inferior.h (signal_catch_update): Declare.
11174 * infrun.c (signal_catch): New global.
11175 (handle_syscall_event): Update for change to
11176 bpstat_explains_signal.
11177 (handle_inferior_event): Likewise. Always handle random signals
11178 via bpstats.
11179 (signal_cache_update): Check signal_catch.
11180 (signal_catch_update): New function.
11181 (_initialize_infrun): Initialize signal_catch.
11182 * Makefile.in (SFILES): Add break-catch-sig.c.
11183 (COMMON_OBS): Add break-catch-sig.o.
11184
11185 2013-01-16 Tom Tromey <tromey@redhat.com>
11186
11187 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
11188 (print_one_catch_solib, print_one_catch_syscall)
11189 (print_one_catch_exec, print_one_exception_catchpoint): Emit
11190 "catch-type".
11191
11192 2013-01-16 Yao Qi <yao@codesourcery.com>
11193
11194 * printcmd.c (current_display_number): Make it static.
11195
11196 2013-01-16 Yao Qi <yao@codesourcery.com>
11197
11198 * infcmd.c (step_once): Don't check '!single_inst' as it was
11199 checked before.
11200
11201 2013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11202
11203 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
11204
11205 2013-01-14 Tom Tromey <tromey@redhat.com>
11206
11207 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
11208 set command.
11209 * command.h (add_setshow_string_noescape_cmd): Update.
11210 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
11211 (complete_set_gnutarget): New function.
11212 (_initialize_core): Set the "set gnutarget" completer.
11213
11214 2013-01-14 Tom Tromey <tromey@redhat.com>
11215
11216 PR symtab/14442:
11217 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
11218 (c_type_print_modifier): Likewise.
11219 * dwarf2read.c (read_tag_restrict_type): New function.
11220 (read_type_die_1): Handle DW_TAG_restrict_type.
11221 * gdbtypes.c (make_restrict_type): New function.
11222 (recursive_dump_type): Handle TYPE_RESTRICT.
11223 * gdbtypes.h (enum type_flag_values): Renumber.
11224 (enum type_instance_flag_value): Add
11225 TYPE_INSTANCE_FLAG_RESTRICT.
11226 (TYPE_RESTRICT): New macro.
11227 (make_restrict_type): Declare.
11228
11229 2013-01-14 Tom Tromey <tromey@redhat.com>
11230
11231 PR symtab/14931:
11232 * psymtab.c (struct psymtab_state): New.
11233 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
11234 functions.
11235 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
11236 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
11237
11238 2013-01-14 Richard Sharman <richard_sharman@mitel.com>
11239 Pedro Alves <palves@redhat.com>
11240
11241 PR remote/14786
11242
11243 * remote.c (remote_threads_info): Make a copy of the reply from
11244 qfThreadInfo and use that instead of rs->buf.
11245
11246 2013-01-14 Yao Qi <yao@codesourcery.com>
11247
11248 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
11249 (dbx_psymtab_to_symtab): Likewise.
11250 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
11251 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
11252 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
11253
11254 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
11255
11256 * parse.c (parse_exp_in_context): New variable inner_chain. Call
11257 make_cleanup_restore_current_language. Call set_language. Move
11258 OLD_CHAIN and INNER_CHAIN cleanups.
11259 * utils.c (do_restore_current_language)
11260 (make_cleanup_restore_current_language): New functions.
11261 * utils.h (make_cleanup_restore_current_language): New declaration.
11262
11263 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
11264
11265 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
11266 non-existing files.
11267
11268 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
11269 non-existing files if FILENAME is already absolute.
11270
11271 2013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11272
11273 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
11274 fputs_filtered. Append trailing newline.
11275
11276 2013-01-11 Yao Qi <yao@codesourcery.com>
11277 Stan Shebs <stan@codesourcery.com>
11278
11279 * psymtab.c (init_psymbol_list): Clarify the comment.
11280
11281 2013-01-11 Yao Qi <yao@codesourcery.com>
11282
11283 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
11284 (update_dprintf_command_list): Assert that 'printf_line' is
11285 non-null. Remove condition check.
11286
11287 2013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11288
11289 Code cleanup.
11290 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
11291 type const char *.
11292 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
11293 const char *.
11294 * tui/tui-source.h (tui_source_is_displayed): Likewise.
11295
11296 2013-01-09 Anthony Green <green@moxielogic.com>
11297
11298 * cp-abi.c (cplus_print_vtable): Don't return value from void
11299 function.
11300 * ada-lang.c (re_set_catch_assert): Ditto.
11301
11302 2013-01-09 Doug Evans <dje@google.com>
11303
11304 * symfile.h (quick_symbol_functions): Delete member
11305 pre_expand_symtabs_matching. All uses removed.
11306 * dwarf2read.c (dw2_lookup_symbol): Implement.
11307 (dw2_do_expand_symtabs_matching): Delete.
11308 (dw2_pre_expand_symtabs_matching): Delete.
11309 (struct dw2_symtab_iterator): New type.
11310 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
11311 (dw2_expand_symtabs_for_function): Rewrite.
11312 (dwarf2_gdb_index_functions): Update.
11313 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
11314 (psym_functions): Update.
11315
11316 2013-01-09 Tom Tromey <tromey@redhat.com>
11317
11318 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
11319 * configure: Rebuild.
11320 * configure.ac: Add somread.o to the build if BFD has SOM
11321 support.
11322 * somread.c: Include som/aout.h, not syms.h.
11323 (som_symtab_read): Use som_external_symbol_dictionary_record.
11324 Unpack records manually.
11325 (_initialize_somread): Declare.
11326
11327 2012-01-08 Mike Frysinger <vapier@gentoo.org>
11328
11329 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
11330 Cast return_address to 64bits.
11331
11332 2013-01-08 Hui Zhu <hui_zhu@mentor.com>
11333
11334 * printcmd.c: Remove define of function output_command.
11335 * tracepoint.c: Remove extern of function output_command.
11336 * valprint.h: (output_command): New extern.
11337
11338 2013-01-07 Tom Tromey <tromey@redhat.com>
11339
11340 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
11341 Remove.
11342 (objc_language_defn): Use c_printchar, c_printstr,
11343 c_emit_char.
11344
11345 2013-01-07 Tom Tromey <tromey@redhat.com>
11346
11347 PR cli/7719:
11348 * NEWS: Update.
11349 * ada-valprint.c (printstr, print_field_values): Remove
11350 "inspect_it" code.
11351 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
11352 code.
11353 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
11354 code.
11355 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
11356 * main.c (captured_main): Remove "epoch" argument.
11357 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
11358 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
11359 * p-valprint.c (pascal_object_print_value_fields): Remove
11360 "inspect_it" code.
11361 * printcmd.c (print_command_1): Remove 'inspect' argument.
11362 (print_command, call_command): Update.
11363 (inspect_command): Remove.
11364 (_initialize_printcmd): Make "inspect" an alias for "print".
11365 * top.c (epoch_interface): Remove.
11366 * top.h (epoch_interface): Remove.
11367 * valprint.c (user_print_options): Update.
11368 (print_converted_chars_to_obstack): Remove "inspect_it" code.
11369 * valprint.h (struct value_print_options) <inspect_it>: Remove
11370 field.
11371
11372 2013-01-04 Tom Tromey <tromey@redhat.com>
11373
11374 * valprint.h (read_string): Add 'extern'.
11375
11376 2013-01-07 Joel Brobecker <brobecker@adacore.com>
11377
11378 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
11379 used to decide whether to define darwin_read_dyld_info or not.
11380
11381 2013-01-03 Pierre Muller <muller@sourceware.org>
11382
11383 * main.c (relocate_gdb_directory): Avoid calling stat function
11384 if DIR is empty.
11385
11386 2013-01-03 Yao Qi <yao@codesourcery.com>
11387
11388 * psymtab.c (fixup_psymbol_section): Update declaration.
11389 (fixup_psymbol_section): Remove code returning value.
11390
11391 2013-01-03 Yao Qi <yao@codesourcery.com>
11392
11393 * symtab.h: Remove some out of date comments.
11394 (enum exception_event_kind): Move it ...
11395 * breakpoint.c: ... here.
11396
11397 2013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
11398
11399 PR gdb/14405
11400 * darwin-nat.c (darwin_read_dyld_info): Only build if
11401 TASK_DYLD_INFO_COUNT is defined.
11402 (darwin_xfer_partial): Call darwin_read_dyld_info only if
11403 TASK_DYLD_INFO_COUNT is defined.
11404
11405 2013-01-02 Tom Tromey <tromey@redhat.com>
11406
11407 * symfile.h (struct ecoff_debug_hack): Remove.
11408 * objfiles.c: Don't include mdebugread.h.
11409
11410 2013-01-02 Tom Tromey <tromey@redhat.com>
11411
11412 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
11413 * configure.ac: Check for Mach-O support in BFD. Update
11414 CONFIG_OBS.
11415 * configure: Rebuild.
11416
11417 2013-01-02 Tom Tromey <tromey@redhat.com>
11418
11419 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
11420 * configure.ac: Use GDB_AC_CHECK_BFD.
11421 * configure: Rebuild.
11422
11423 2013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
11424
11425 * MAINTAINERS: Update my email.
11426
11427 2013-01-01 Joel Brobecker <brobecker@adacore.com>
11428
11429 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
11430
11431 2013-01-01 Joel Brobecker <brobecker@adacore.com>
11432
11433 * rs6000-nat.c (bss_data_overlap): New function.
11434 (vmap_symtab): Use it to adjust the .bss section's offset.
11435
11436 2013-01-01 Joel Brobecker <brobecker@adacore.com>
11437
11438 Update year range in copyright notice of all files.
11439
11440 2013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
11441
11442 * top.c (print_gdb_version): Update copyright year.
11443
11444 For older changes see ChangeLog-2012.
11445 \f
11446 Local Variables:
11447 mode: change-log
11448 left-margin: 8
11449 fill-column: 74
11450 version-control: never
11451 coding: utf-8
11452 End:
This page took 0.24685 seconds and 5 git commands to generate.