1 2013-10-18 Andrew Burgess <aburgess@broadcom.com>
3 * breakpoint.c (update_watchpoint): If hardware watchpoints are
4 forced off, downgrade them to software watchpoints if possible,
5 and error out if not possible.
6 (watch_command_1): Move watchpoint type selection closer to
7 watchpoint creation, and extend the comments.
9 2013-10-18 Pedro Alves <palves@redhat.com>
12 * infrun.c (handle_inferior_event): Keep going if we got a random
13 signal we should not stop for, instead of falling through to the
16 2013-10-18 Yao Qi <yao@codesourcery.com>
18 * c-varobj.c (cplus_number_of_children): Fix indentation.
20 2013-10-17 Tom Tromey <tromey@redhat.com>
23 * printcmd.c (printcmd): Call gdb_flush.
25 2013-10-17 Tom Tromey <tromey@redhat.com>
27 * elfread.c (struct elfinfo) <stabindexsect>: Remove.
28 (elf_locate_sections): Update.
30 2013-10-17 Yao Qi <yao@codesourcery.com>
32 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
33 * ada-varobj.c: Remove the include of ada-varobj.h.
34 (ada_varobj_get_number_of_children): Declare.
35 (ada_varobj_get_name_of_child): Make it static.
36 (ada_varobj_get_path_expr_of_child): Likewise.
37 (ada_varobj_get_value_of_child): Likewise.
38 (ada_varobj_get_type_of_child): Likewise.
39 (ada_varobj_get_value_of_array_variable): Likewise.
40 * ada-varobj.h: Remove.
42 2013-10-17 Yao Qi <yao@codesourcery.com>
44 * Makefile.in (SFILES): Add c-varobj.c and jv-varobj.c.
45 (COMMON_OBS): Add c-varobj.o and jv-varobj.o.
46 * ada-varobj.c: Include "varobj.h".
47 (ada_number_of_children): New. Moved from varobj.c.
48 (ada_name_of_variable, ada_name_of_child): Likewise.
49 (ada_path_expr_of_child, ada_value_of_child): Likewise.
50 (ada_type_of_child, ada_value_of_variable): Likewise.
51 (ada_value_is_changeable_p, ada_value_has_mutated): Likewise.
52 (ada_varobj_ops): New.
53 * c-varobj.c, jv-varobj.c: New file. Moved from varobj.c.
54 * gdbtypes.c (get_target_type): New. Moved from varobj.c.
55 * gdbtypes.h (get_target_type): Declare.
56 * varobj.c: Remove the inclusion of "ada-varobj.h" and
58 (ANONYMOUS_STRUCT_NAME): Move it to c-varobj.c.
59 (ANONYMOUS_UNION_NAME): Likewise.
60 (get_type, get_value_type, get_target_type): Remove declarations.
61 (value_get_print_value, varobj_value_get_print_value): Likewise.
62 (c_number_of_children, c_name_of_variable): Likewise.
63 (c_name_of_child, c_path_expr_of_child): Likewise.
64 (c_value_of_child, c_type_of_child): Likewise.
65 (c_value_of_variable, cplus_number_of_children): Likewise.
66 (cplus_class_num_children, cplus_name_of_variable): Likewise.
67 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
68 (cplus_value_of_child, cplus_type_of_child): Likewise.
69 (cplus_value_of_variable, java_number_of_children): Likewise.
70 (java_name_of_variable, java_name_of_child): Likewise.
71 (java_path_expr_of_child, java_value_of_child): Likewise.
72 (java_type_of_child, java_value_of_variable): Likewise.
73 (ada_number_of_children, ada_name_of_variable): Likewise.
74 (ada_name_of_child, ada_path_expr_of_child): Likewise.
75 (ada_value_of_child, ada_type_of_child): Likewise.
76 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
77 (ada_value_has_mutated): Likewise.
78 (struct language_specific): Move it to varobj.h.
79 (CPLUS_FAKE_CHILD): Move it to varobj.h.
80 (restrict_range): Rename it varobj_restrict_range. Make it extern.
82 (get_path_expr_parent): Rename it to varobj_get_path_expr_parent.
84 (is_anonymous_child): Move it to c-varobj.c and rename to
85 varobj_is_anonymous_child. Caller update.
86 (get_type): Move it to c-varobj.c.
87 (get_value_type): Rename it varobj_get_value_type. Make it
89 (get_target_type): Move it gdbtypes.c.
90 (varobj_formatted_print_options): New function.
91 (value_get_print_value): Rename it to
92 varobj_value_get_print_value and make it extern.
93 (varobj_value_is_changeable_p): Make it extern.
94 (adjust_value_for_child_access): Move it to c-varobj.c.
95 (default_value_is_changeable_p): Rename it to
96 varobj_default_value_is_changeable_p. Make it extern.
97 (c_number_of_children, c_name_of_variable): Move it to c-varobj.c
98 (c_name_of_child, c_path_expr_of_child): Likewise.
99 (c_value_of_child, c_type_of_child): Likewise.
100 (c_value_of_variable, cplus_number_of_children): Likewise.
101 (cplus_class_num_children, cplus_name_of_variable): Likewise.
102 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
103 (cplus_value_of_child, cplus_type_of_child): Likewise.
104 (cplus_value_of_variable): Likewise.
105 (java_number_of_children, java_name_of_variable): Move it to jv-varobj.c.
106 (java_name_of_child, java_path_expr_of_child): Likewise.
107 (java_value_of_child, java_type_of_child): Likewise.
108 (java_value_of_variable): Likewise.
109 (ada_number_of_children, ada_name_of_variable): Move it to ada-varobj.c.
110 (ada_name_of_child, ada_path_expr_of_child): Likewise.
111 (ada_value_of_child, ada_type_of_child): Likewise.
112 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
113 (ada_value_has_mutated): Likewise.
114 * varobj.h (CPLUS_FAKE_CHILD): New macro, moved from varobj.c.
115 (struct lang_varobj_ops): New. Renamed by 'struct language_specific'.
116 (c_varobj_ops, cplus_varobj_ops): Declare.
117 (java_varobj_ops, ada_varobj_ops): Declare.
118 (varobj_default_value_is_changeable_p): Declare.
119 (varobj_value_is_changeable_p): Declare.
120 (varobj_get_value_type, varobj_is_anonymous_child): Declare.
121 (varobj_get_path_expr_parent): Declare.
122 (varobj_value_get_print_value): Declare.
123 (varobj_formatted_print_options): Declare.
124 (varobj_restrict_range): Declare.
126 2013-10-17 Luis Machado <lgustavo@codesourcery.com>
128 * target/waitstatus.h (target_waitkind): Remove spurious
129 character from the comments.
131 2013-10-17 Joel Brobecker <brobecker@adacore.com>
133 * gdbarch.sh (get_longjmp_target): Add method documentation.
134 * gdbarch.h: Regenerate.
136 2013-10-16 Tom Tromey <tromey@redhat.com>
138 * dbxread.c (read_dbx_symtab) <bss_ext_symbol>: Remove unused
141 2013-10-16 Luis Machado <lgustavo@codesourcery.com>
143 * gcore.in: Call GDB using the full path to the gcore script.
144 Error out if the GDB binary is not found.
146 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
149 * dwarf2read.c (dw2_get_real_path): Remove unnecessary call to
152 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
155 * target.c (target_disable_btrace): Fix invalid return value for
157 (target_teardown_btrace): Likewise.
159 2013-10-14 Yao Qi <yao@codesourcery.com>
161 * varobj.c (struct varobj): Move most of the fields to
163 (struct varobj_dynamic): New struct.
164 (varobj_get_display_hint) [HAVE_PYTHON]: Adjust.
165 (varobj_has_more): Likewise.
166 (dynamic_varobj_has_child_method): Likewise.
167 (update_dynamic_varobj_children): Likewise.
168 (varobj_get_num_children): Likewise.
169 (varobj_list_children, varobj_pretty_printed_p): Likewise.
170 (install_new_value_visualizer): Likewise.
171 (install_new_value_visualizer, install_new_value): Likewise.
172 (varobj_update, new_variable, free_variable): Likewise.
173 (my_value_of_variable, value_get_print_value): Likewise.
174 (install_visualizer): Change the type of parameter 'var' to
175 'struct varobjd_dynamic *'. Callers update.
176 * varobj.h (struct varobj): Moved from varobj.c.
177 (struct varobj) <dynamic>: New field.
179 2013-10-13 Sandra Loosemore <sandra@codesourcery.com>
181 * nios2-tdep.c (nios2_reg_names): Use "sstatus" rather than "ba"
182 as the preferred name of r30.
183 * nios2-linux-tdep.c (reg_offsets): Likewise.
184 * features/nios2-cpu.xml: Likewise.
185 * features/nios2-linux.c: Regenerated.
186 * features/nios2.c: Regenerated.
187 * regformats/nios2-linux.dat: Regenerated.
189 2013-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
191 Canonicalize directories for EXEC_FILENAME.
192 * exec.c (exec_file_attach): Use gdb_realpath_keepfile for
194 * utils.c (gdb_realpath_keepfile): New function.
195 * utils.h (gdb_realpath_keepfile): New declaration.
197 2013-10-11 Doug Evans <dje@google.com>
199 * Makefile.in (GDBFLAGS): New variable.
202 2013-10-11 Joel Brobecker <brobecker@adacore.com>
204 * NEWS: Add entry documenting the new "-catch-assert" and
205 "-catch-exception" GDB/MI commands.
207 2013-10-11 Joel Brobecker <brobecker@adacore.com>
209 * breakpoint.h (init_ada_exception_breakpoint): Add parameter
211 * breakpoint.c (init_ada_exception_breakpoint): Add parameter
212 "enabled". Set B->ENABLE_STATE accordingly.
213 * ada-lang.h (ada_exception_catchpoint_kind): Move here from
215 (create_ada_exception_catchpoint): Add declaration.
216 * ada-lang.c (ada_exception_catchpoint_kind): Move to ada-lang.h.
217 (create_ada_exception_catchpoint): Make non-static. Add new
218 parameter "disabled". Use it in call to
219 init_ada_exception_breakpoint.
220 (catch_ada_exception_command): Add parameter "enabled" in call
221 to create_ada_exception_catchpoint.
222 (catch_assert_command): Likewise.
224 * mi/mi-cmds.h (mi_cmd_catch_assert, mi_cmd_catch_exception):
226 * mi/mi-cmds.c (mi_cmds): Add the "catch-assert" and
227 "catch-exception" commands.
228 * mi/mi-cmd-catch.c: Add #include "ada-lang.h".
229 (mi_cmd_catch_assert, mi_cmd_catch_exception): New functions.
231 2013-10-11 Joel Brobecker <brobecker@adacore.com>
233 * ada-lang.c (enum ada_exception_catchpoint_kind): Renames
234 "enum exception_catchpoint_kind". Replace the "ex_" prefix
235 of all its enumerates with "ada_". Update the rest of this
238 2013-10-11 Joel Brobecker <brobecker@adacore.com>
240 * ada-lang.c (ada_decode_exception_location): Delete.
241 (create_ada_exception_catchpoint): Remove arguments "sal",
242 "addr_string" and "ops". Add argument "ex_kind" instead.
243 Adjust implementation accordingly, calling ada_exception_sal
244 to get the entities it no longer gets passed as arguments.
245 Document the function's arguments.
246 (catch_ada_exception_command): Use catch_ada_exception_command_split
247 instead of ada_decode_exception_location, and update call to
248 create_ada_exception_catchpoint.
249 (catch_ada_assert_command_split): Renames
250 ada_decode_assert_location. Remove parameters "addr_string" and
251 "ops", and now returns void. Adjust implementation accordingly.
252 Update the function documentation.
253 (catch_assert_command): Use catch_ada_assert_command_split
254 instead of ada_decode_assert_location. Update call to
255 create_ada_exception_catchpoint.
257 2013-10-11 Joel Brobecker <brobecker@adacore.com>
259 * utils.h (perror_warning_with_name): Add declaration.
260 * utils.c (perror_warning_with_name): New function.
261 * cli/cli-cmds.c (source_script_with_search): Add call to
262 perror_warning_with_name if from_tty is nul.
264 2013-10-11 Joel Brobecker <brobecker@adacore.com>
266 * utils.c (perror_string): New function, extracted out of
267 throw_perror_with_name.
268 (throw_perror_with_name): Rework to use perror_string.
270 2013-10-11 Yao Qi <yao@codesourcery.com>
272 * remote.c (discard_pending_stop_replies_in_queue): Update
274 (struct stop_reply) <rs>: New field.
275 (remove_stop_reply_of_remote_state): New function.
276 (discard_pending_stop_replies_in_queue): Add parameter 'rs'.
277 Callers update. Pass remove_stop_reply_of_remote_state to
279 (remote_parse_stop_reply): Initialize field 'rs'.
281 2013-10-10 Will Newton <will.newton@linaro.org>
283 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
286 2013-10-10 Joel Brobecker <brobecker@adacore.com>
288 * cli/cli-cmds.c (show_baud_rate): Moved to serial.c as
289 serial_baud_show_cmd.
290 (_initialize_cli_cmds): Delete the code creating the
291 "set/show remotebaud" commands.
292 * serial.c (baud_rate): Move here from top.c.
293 (serial_baud_show_cmd): Move here from cli/cli-cmds.c.
294 (_initialize_serial): Create "set/show serial baud" commands.
295 Add "set/show remotebaud" command aliases.
296 * top.c (baud_rate): Moved to serial.c.
297 * NEWS: Document the new "set/show serial baud" commands,
298 replacing "set/show remotebaud".
300 2013-10-09 Pedro Alves <palves@redhat.com>
302 * breakpoint.c (insert_bp_location): Use memory_error_message to
303 build the memory error string.
304 * c-lang.c: Include "gdbcore.h".
305 (c_get_string): Use memory_error to throw error.
306 (target_xfer_memory_error): Delete.
307 (memory_error_message): New, factored out from
308 target_xfer_memory_error.
309 (memory_error): Change parameter type to target_xfer_error.
311 (read_memory): Use memory_error instead of
312 target_xfer_memory_error.
313 * gdbcore.h: Include "target.h".
314 (memory_error): Change parameter type to target_xfer_error.
315 (memory_error_message): Declare function.
316 * target.c (target_read_memory, target_read_stack)
317 (target_write_memory, target_write_raw_memory): Return
318 TARGET_XFER_E_IO on error. Adjust comments.
319 (get_target_memory): Pass TARGET_XFER_E_IO to memory_error,
321 * target.h (target_read, target_insert_breakpoint)
322 (target_remove_breakpoint): Adjust comments.
323 * valprint.c (partial_memory_read): Rename parameter, and adjust
325 (val_print_string): Use memory_error_message to build the memory
328 2013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
330 * common/filestuff.c (gdb_fopen_cloexec): Remove initialization of
331 result variable. Rename variable fopen_e_ever_failed to
332 fopen_e_ever_failed_einval. Retry fopen only for errno EINVAL.
334 2013-10-09 Pedro Alves <palves@redhat.com>
336 * monitor.c (monitor_write_memory, monitor_write_memory_bytes)
337 (monitor_write_memory_longlongs, monitor_write_memory_block):
338 Constify 'myaddr' parameter.
339 (monitor_xfer_memory): Adjust interface as monitor_xfer_partial
341 (monitor_xfer_partial): New function.
342 (init_base_monitor_ops): Don't install a deprecated_xfer_memory
343 hook. Install a to_xfer_partial hook.
345 2013-10-09 Tom Tromey <tromey@redhat.com>
347 * dwarf2read.c (dwarf2_get_dwz_file): Update for type change in
348 bfd_get_alt_debug_link_info.
350 2013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
352 New flag OBJF_NOT_FILENAME.
353 * auto-load.c (auto_load_objfile_script): Check also OBJF_NOT_FILENAME.
354 * jit.c (jit_object_close_impl): Use OBJF_NOT_FILENAME for
356 (jit_bfd_try_read_symtab): Use OBJF_NOT_FILENAME for
357 symbol_file_add_from_bfd.
358 * jv-lang.c (get_dynamics_objfile): Use OBJF_NOT_FILENAME for
360 * objfiles.c (allocate_objfile): Assert OBJF_NOT_FILENAME if NAME is
362 * objfiles.h (OBJF_NOT_FILENAME): New.
364 2013-10-08 Tom Tromey <tromey@redhat.com>
366 * Makefile.in (SFILES): Add build-id.c.
367 (HFILES_NO_SRCDIR): Add build-id.h.
368 * build-id.c: New file, largely from elfread.c. Modified
370 * build-id.h: New file.
371 * dwarf2read.c (dwarf2_get_dwz_file): Update for change to
372 bfd_get_alt_debug_link_info. Verify dwz file's build-id.
373 Search for dwz file using build-id.
374 * elfread.c (build_id_bfd_get, build_id_verify)
375 (build_id_to_debug_filename, find_separate_debug_file): Remove.
377 2013-10-08 Joel Brobecker <brobecker@adacore.com>
379 * ada-lang.c (compare_names_with_case): Renamed from
380 compare_names, adding a new parameter "casing" and its handling.
381 New function documentation.
382 (compare_names): New function, implemented using
383 compare_names_with_case.
385 2013-10-08 Joel Brobecker <brobecker@adacore.com>
387 * ada-lang.c (ada_exception_sal): Remove advance declaration.
389 2013-10-07 Tom Tromey <tromey@redhat.com>
391 * objfiles.c (free_objfile_per_bfd_storage): Delete the
392 demangled_names_hash.
393 (free_objfile): Don't delete the demangled_names_hash.
394 * objfiles.h (struct objfile_per_bfd_storage)
395 <demangled_names_hash>: New field.
396 (struct objfile) <demangled_names_hash>: Move to
397 objfile_per_bfd_storage.
398 * symfile.c (reread_symbols): Don't delete the
399 demangled_names_hash.
400 * symtab.c (create_demangled_names_hash): Update.
401 (symbol_set_names): Update.
403 2013-10-07 Tom Tromey <tromey@redhat.com>
405 * gdb_bfd.c (struct gdb_bfd_data) <relocation_computed,
406 needs_relocations>: New fields.
407 (gdb_bfd_requires_relocations): New function.
408 * gdb_bfd.h (gdb_bfd_requires_relocations): Declare.
409 * objfiles.c (get_objfile_bfd_data): Disallow sharing if
410 the BFD needs relocations applied.
412 2013-10-07 Pedro Alves <palves@redhat.com>
415 * breakpoint.c (remove_threaded_breakpoints): Say "no longer in
416 the thread list" instead of "gone".
418 2013-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
420 * NEWS: Mention new convenience variable $_exitsignal.
421 * corelow.c (core_open): Reset exit convenience variables. Set
422 $_exitsignal to the uncaught signal which generated the corefile.
423 * infrun.c (handle_inferior_event): Reset exit convenience
424 variables. Set $_exitsignal for TARGET_WAITKIND_SIGNALLED.
425 (clear_exit_convenience_vars): New function.
426 * inferior.h (clear_exit_convenience_vars): New prototype.
428 2013-10-06 Yao Qi <yao@codesourcery.com>
430 * varobj.h: Add comments to enum varobj_languages.
432 2013-10-04 Doug Evans <dje@google.com>
434 Add support for DWP file format version 2.
435 * NEWS: Mention support for DWP file format version 2.
436 * dwarf2read.c (dwarf2_section_info): Convert asection field to a
437 union of asection, containing_section. New fields virtual_offset
438 and is_virtual. Change type of readin filed from int to char.
439 (dwo_sections, dwo_file): Tweak comments.
440 (dwp_v2_section_ids): New enum.
441 (dwp_sections): New fields abbrev, info, line, loc, macinfo, macro,
443 (virtual_v1_dwo_sections): Renamed from virtual_dwo_sections.
445 (virtual_v2_dwo_sections): New struct.
446 (dwp_hash_table): New fields version, nr_columns. Change type of
447 section_pool field to a union.
448 (dwp_file): New field version.
449 (dwarf2_has_info): Check for virtual sections.
450 (get_containing_section): New function.
451 (get_section_bfd_owner, get_section_bfd_section): Call it.
452 (dwarf2_locate_sections): Update.
453 (dwarf2_section_empty_p): Update.
454 (dwarf2_read_section): Handle virtual sections.
455 (locate_dwz_sections): Update.
456 (create_dwp_hash_table): Document and handle V2 format.
457 (locate_v1_virtual_dwo_sections): Renamed from
458 locate_virtual_dwo_sections and update. All callers updated.
459 (create_dwo_unit_in_dwp_v1): Renamed from create_dwo_in_dwp.
460 Delete arg htab. Rename arg section_index to unit_index.
462 (MAX_NR_V1_DWO_SECTIONS): Renamed from MAX_NR_DWO_SECTIONS.
464 (create_dwp_v2_section, create_dwo_unit_in_dwp_v2): New functions.
465 (lookup_dwo_unit_in_dwp): Add V2 support.
466 (dwarf2_locate_dwo_sections): Update.
467 (dwarf2_locate_common_dwp_sections): Renamed from
468 dwarf2_locate_dwp_sections and update. All callers updated.
469 (dwarf2_locate_v2_dwp_sections): New function.
470 (open_and_init_dwp_file): Add V2 support.
471 (read_str_index): New locals str_section, str_offsets_section.
473 2013-10-04 Pedro Alves <palves@redhat.com>
475 * common/ptid.c (null_ptid, minus_one_ptid, ptid_build)
476 (pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid)
477 (ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p): Replace
478 describing comments with references to ptid.h.
479 * common/ptid.h: Remove intro description of constructors,
480 accessors and predicates.
481 (struct ptid): Reformat.
482 (minus_one_ptid, ptid_build, pid_to_ptid, ptid_get_pid)
483 (ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid): Change
486 2013-10-04 Joel Brobecker <brobecker@adacore.com>
488 * aix-thread.c (sync_threadlists): Add missing ')' in call
491 2013-10-04 Joel Brobecker <brobecker@adacore.com>
493 * procfs.c (procfs_init_inferior): Fix typo causing the build
496 2013-10-04 Joel Brobecker <brobecker@adacore.com>
498 * aix-thread.c (ptrace32): Remove cast to addr_ptr.
500 2013-10-04 Joel Brobecker <brobecker@adacore.com>
502 * mi/mi-main.c (run_one_inferior): Add function description.
503 Make ARG a pointer to an integer whose value determines whether
504 we should "run" or "start" the program.
505 (mi_cmd_exec_run): Add handling of the "--start" option.
506 Reject all other command-line options.
507 * NEWS: Add entry for "-exec-run"'s new "--start" option.
509 2013-10-04 Yao Qi <yao@codesourcery.com>
511 * remote-notif.h (REMOTE_NOTIF_ID): New enum.
512 (struct notif_client) <pending_event>: Moved
513 to struct remote_notif_state.
515 (struct remote_notif_state) <pending_event>: New field.
516 (notif_event_xfree): Declare.
517 * remote-notif.c (handle_notification): Adjust.
518 (notif_event_xfree): New function.
519 (do_notif_event_xfree): Call notif_event_xfree.
520 (remote_notif_state_xfree): Call notif_event_xfree to free
521 each element in field pending_event.
522 * remote.c (discard_pending_stop_replies): Remove declaration.
523 (discard_pending_stop_replies_in_queue): Declare.
524 (remote_close): Call discard_pending_stop_replies_in_queue
525 instead of discard_pending_stop_replies.
526 (remote_start_remote): Adjust.
527 (stop_reply_xfree): Call notif_event_xfree.
528 (notif_client_stop): Adjust initialization.
529 (remote_notif_remove_all): Rename it to ...
530 (remove_stop_reply_for_inferior): ... this. Update comments.
531 Don't check INF is NULL.
532 (discard_pending_stop_replies): Return early if notif_state is
533 NULL. Adjust. Don't check INF is NULL.
534 (remote_notif_get_pending_events): Adjust.
535 (discard_pending_stop_replies_in_queue): New function.
536 (remote_wait_ns): Likewise.
538 2013-10-04 Yao Qi <yao@codesourcery.com>
540 * remote-notif.c (DECLARE_QUEUE_P): Remove.
541 (notif_queue): Remove.
542 (remote_notif_process): Add one parameter 'notif_queue'.
543 Update comments. Callers update.
544 (remote_async_get_pending_events_token): Remove.
545 (remote_notif_register_async_event_handler): Remove.
546 (remote_notif_unregister_async_event_handler): Remove.
547 (handle_notification): Add parameter 'notif_queue'. Update
548 comments. Callers update.
549 (notif_xfree): Remove.
550 (remote_notif_state_allocate): New function.
551 (remote_notif_state_xfree): New function.
552 (_initialize_notif): Remove code to allocate queue.
553 * remote-notif.h (DECLARE_QUEUE_P): Moved from remote-notif.c.
554 (struct remote_notif_state): New.
555 (handle_notification): Update declaration.
556 (remote_notif_process): Likewise.
557 (remote_notif_register_async_event_handler): Remove.
558 (remote_notif_unregister_async_event_handler): Remove.
559 (remote_notif_state_allocate): Declare.
560 (remote_notif_state_xfree): Declare.
561 * remote.c (struct remote_state) <notif_state>: New field.
562 (remote_close): Don't call
563 remote_notif_unregister_async_event_handler. Call
564 remote_notif_state_xfree.
565 (remote_open_1): Don't call
566 remote_notif_register_async_event_handler. Call
567 remote_notif_state_allocate.
569 2013-10-04 Yao Qi <yao@codesourcery.com>
571 * varobj.c (create_child_with_value): Remove 'const' from the
572 type of parameter 'name'.
573 (varobj_add_child): Likewise.
574 (install_dynamic_child): Remove 'const' from the type of
576 (varobj_add_child): Likewise.
577 (create_child_with_value): Likewise. Update comments. Don't
579 (update_dynamic_varobj_children): Duplicate 'name'
580 and pass it to install_dynamic_child.
582 2013-10-03 Phil Muldoon <pmuldoon@redhat.com>
584 * python/py-value.c (convert_value_from_python): Move PyInt_Check
585 conversion logic to occur after PyLong_Check. Comment on order
587 * python/py-arch.c (archpy_disassemble): Comment on order of
588 conversion for integers and longs.
590 2013-10-03 Pedro Alves <palves@redhat.com>
592 * common/linux-ptrace.c (linux_check_ptrace_features): Factor out
593 the PTRACE_O_TRACESYSGOOD and PTRACE_O_TRACEFORK to separate
594 functions. Always test for PTRACE_O_TRACESYSGOOD even if
595 PTRACE_O_TRACEFORK is not supported.
596 (linux_test_for_tracesysgood): New function.
597 (linux_test_for_tracefork): New function, factored out from
598 linux_check_ptrace_features, and also don't kill child_pid here.
600 2013-10-03 Tristan Gingold <gingold@adacore.com>
602 * i386-darwin-nat.c (i386_darwin_dr_set): Fix argument type.
603 Remove verbose error reporting. Use detected state to
604 thread_set_state call.
605 (i386_darwin_dr_get): Fix return type. Remove verbose error
607 Remove trailing spaces.
609 2013-10-02 Pedro Alves <palves@redhat.com>
611 * cp-valprint.c (cp_print_value_fields): Adjust calls to
612 val_print_optimized_out.
613 * jv-valprint.c (java_print_value_fields): Likewise.
614 * p-valprint.c (pascal_object_print_value_fields): Likewise.
615 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
616 <DWARF_VALUE_REGISTER>: If the register was not saved, return a
617 new optimized out value.
618 * findvar.c (address_from_register): Likewise.
619 * frame.c (put_frame_register): Tweak error string to say the
620 register was not saved, rather than optimized out.
621 * infcmd.c (default_print_one_register_info): Adjust call to
622 val_print_optimized_out. Use value_of_register instead of
623 get_frame_register_value.
624 * mi/mi-main.c (output_register): Use value_of_register instead of
625 get_frame_register_value.
626 * valprint.c (valprint_check_validity): Likewise.
627 (val_print_optimized_out): New value parameter. If the value is
628 lval_register, print <not saved> instead.
629 (value_check_printable, val_print_scalar_formatted): Adjust calls
630 to val_print_optimized_out.
631 * valprint.h (val_print_optimized_out): New value parameter.
632 * value.c (struct value) <optimized_out>: Extend comment.
633 (error_value_optimized_out): New function.
634 (require_not_optimized_out): Use it. Use a different string for
635 lval_register values.
636 * value.h (error_value_optimized_out): New declaration.
637 * NEWS: Mention <not saved>.
639 2013-10-02 Joel Brobecker <brobecker@adacore.com>
641 * symtab.c (compare_search_syms): Use FILENAME_CMP instead of
642 strcmp to compare two symtab filenames.
644 2013-10-02 Joel Brobecker <brobecker@adacore.com>
646 * symtab.c (search_symbols_equal): Delete.
647 (sort_search_symbols_remove_dups): Replace call to
648 search_symbols_equal by call to compare_search_syms,
649 adjusting as necessary.
651 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
655 * python/python.c: Document gdb.execute command in Python help.
657 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
659 * python/py-frame.c (frame_info_to_frame_object): Use
660 gdbpy_convert_exception. Clean up Python object on failure.
662 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
664 * python/lib/gdb/command/frame_filters.py
665 (InfoFrameFilter.list_frame_filters): Retrieve exception manually.
666 (ShowFrameFilterPriority.invoke): Ditto.
668 2013-10-01 Keith Seitz <keiths@redhat.com>
670 * linespec.c (struct ls_parser): Make 'saved_arg' const.
671 (parse_linespec): Make 'argptr' const.
672 Remove temporary cast of 'argptr' to const char **.
673 (decode_line_full): Pass const pointer to parse_linespec.
674 (decode_line_1): Likewise.
675 (decode_objc): Make local variable 'new_argptr' const.
676 (find_function_symbols): Remove temporary cast to char *
678 * objc-lang.c (find_imps): Make argument 'method' const.
680 * objc-lang.h (find_imps): Likewise.
682 2013-10-01 Keith Seitz <keiths@redhat.com>
684 * completer.c (skip_quoted_chars): Make all arguments const.
686 (skip_quoted): Likewise.
687 * completer.h (skip_quoted_chars): Likewise.
688 (skip_quoted): Likewise.
689 * defs.h (skip_quoted): Remove duplicate declaration.
690 * jv-exp.y: Include completer.h.
691 (yylex): Remove unneccessary cast to char * fro skip_quoted.
692 * p-exp.y: Include completer.h.
694 2013-10-01 Keith Seitz <keiths@redhat.com>
696 * c-exp.y (parse_number): Make first argument const.
697 Make a copy of the input to manipulate.
698 (c_parse_escape): Make first argument const.
699 Make local variable 'tokptr' const.
700 (parse_string_or_char): Make first two arguments const.
701 (macro_original_text): Make const.
702 (lex_one_token): Make local variable 'tokstart' const.
703 Likewise for local variables named 'p'.
704 Cast away const for struct stoken (temporary).
705 * c-lang.h (c_parse_escpae): Make first argument const.
706 * cli/cli-cmds.c (echo_command): Make local variable 'p'
708 * cli/cli-setshow.c (do_set_command): Likewise for 'p' in
710 * f-exp.y (parse_number): Make first argument const.
711 (match_string_literal): Make local variable 'tokstart'
713 (yylex): Make local variable 'p' const.
714 Cast away const for struct stoken (temporary).
715 * go-exp.y (parse_number): Make first argument const.
716 (parse_string_or_char): Likewise.
717 Make local variable 'tokstart' const.
718 (lex_one_token): Likewise for numerous locals called 'p'.
719 Cast away const for struct stoken (temporary).
720 * jv-exp.y (parse_number): Make first argument const.
721 Make local variables 'tokstart' and 'tokptr' const.
722 Cast away const for call to skip_quoted (temporary).
723 (yylex): Make local variable 'p' const.
724 Cast away const for struct stoken (temporary).
725 * m2-exp.y (parse_number): Make local variable 'p' const.
726 (yylex): Likewise for 'tokstart'.
727 Cast away const for struct stoken (temporary).
728 Make local variable 'p' const.
729 * macroexp.c (get_character_constant): Pass a const string
731 (get_string_literal): Likewise.
732 (macro_expand_next): Make first argument const.
733 Cast away const for init_shared_buffer.
734 * macroexp.h (macro_expand_next): Make first argument const.
735 * p-exp.y (yylex): Make a local copy of 'lexptr'.
736 Pass a const string to c_parse_escape.
737 Make local variables 'p' and 'namestart' const.
738 * parse.c (lexptr): Make const.
739 (prev_lexptr): Likewise.
740 (find_template_name_end): Return const.
741 Make argument const, too.
742 (parse_exp_in_context): Make first argument const.
743 Remove the entire const_hack.
744 (parse_exp_in_context_1): Make first argument const.
745 * parser-defs.h (find_template_name_end): Return const.
746 Make argument const, too.
747 (lexptr): Make const.
748 (prev_lexptr): Likewise.
749 * utils.c (parse_escape): Make second argument const.
750 * utils.h (parse_escape): Likewise.
752 2013-10-01 Keith Seitz <keiths@redhat.com>
754 * ada-exp.y (write_object_renaming): Update: struct stoken.ptr
756 (block_lookup): Make 'raw_name' and 'name' const.
757 * ada-lex.l (processString): Update for struct stoken.ptr.
758 * c-exp.y (qualified_name : TYPENAME COLONCOLON '~' name): Likewise.
759 (operator_stoken): Likewise.
760 (lex_one_token): Remove temporary cast to char * for
762 * f-exp.y (yylex): Likewise.
763 * gdb-types.c (lookup_struct_elt_type): Make argument 'name' const.
764 * gdbtypes.h (lookup_struct_elt_type): Likewisee.
765 * go-exp.y (lex_one_token): Remove temporary cast to char * for
767 * jv-exp.y (QualifiedName): Update for struct stoken.ptr.
768 (yylex): Remove temporary cast to char * for 'yylval.sval.ptr'.
769 * linespec.c (struct ls_parser): Make 'stream' const.
770 (find_parameter_list_end): Make argument 'input' and local
772 (linespec_lexer_lex_string): Make local variables 'start' and
774 Use skip_spaces_const instead of skip_spaces.
775 (linespec_lexer_peek_token): Make local variable 'saved_stream'
777 (parse_linespec): Temporarily cast 'argptr' to const for
778 'parser->lexer.stream'.
779 * m2-exp.y (yylex): Remove temporary cast to char * for
781 * objc-lang.c (add_msglist): Make local variable 'p' const.
782 * p-exp.y (exp : exp '['): Update for struct stoken.ptr.
783 (exp : STRING): Make 'sp' const.
784 (parse_number): Make argument 'p' const.
785 * parser-defs.h (struct stoken): Make 'ptr' const.
787 2013-10-01 Doug Evans <dje@google.com>
789 * cli/cli-decode.c: Remove unnecessary inclusion of tui/tui.h.
791 2013-10-01 Yao Qi <yao@codesourcery.com>
793 * varobj.c (c_value_of_root): Remove declaration.
794 (cplus_value_of_root, java_value_of_root): Likewise.
795 (ada_value_of_root): Likewise.
796 (struct language_specific) <value_of_root>: Remove.
797 (languages): Update initialization.
798 (check_scope): Move earlier.
799 (c_value_of_root): Move earlier and rename to ...
800 (value_of_root_1): ... this.
801 (value_of_root): Caller update.
802 (cplus_value_of_root, java_value_of_root): Remove.
803 (ada_value_of_root): Remove.
805 2013-10-01 Yao Qi <yao@codesourcery.com>
807 * varobj.c (varobj_format_string): Remove "unknown".
808 (languages): Remove the first element.
809 * varobj.h (enum varobj_languages): Remove vlang_c.
811 2013-10-01 Yao Qi <yao@codesourcery.com>
813 * varobj.c (struct language_specific) <language>: Remove.
814 (languages): Update the initialization.
816 2013-10-01 Yao Qi <yao@codesourcery.com>
818 * arm-wince-tdep.c: Remove inclusion of "solib.h" and
819 "solib-target.h". Include "windows-tdep.h".
820 (arm_wince_init_abi): Call windows_init_abi. Remove call to
821 set_solib_ops and set_gdbarch_has_dos_based_file_system.
822 * configure.tgt (arm*-wince-pe | arm*-*-mingw32ce*): Append
823 windows-tdep.o to gdb_target_obs.
825 2013-10-01 Yao Qi <yao@codesourcery.com>
827 * amd64-windows-tdep.c: Remove inclusion of "solib.h" and
829 (amd64_windows_init_abi): Don't call set_solib_ops and
830 set_gdbarch_iterate_over_objfiles_in_search_order. Call
831 windows_init_abi instead.
832 * i386-cygwin-tdep.c: Remove inclusion of "solib.h" and
834 (i386_cygwin_init_abi): Don't call set_solib_ops,
835 set_gdbarch_has_dos_based_file_system and
836 set_gdbarch_iterate_over_objfiles_in_search_order. Call
837 windows_init_abi instead.
838 * windows-tdep.c: Include "solib.h" and "solib-target.h".
839 (windows_init_abi): New function.
840 (windows_iterate_over_objfiles_in_search_order): Make it
842 * windows-tdep.h (windows_init_abi): Declare.
843 (windows_iterate_over_objfiles_in_search_order): Remove
846 2013-10-01 Jerome Guitton <guitton@adacore.com>
848 Checked in by Joel Brobecker <brobecker@adacore.com>
849 * system-gdbinit/elinos.py (get_elinos_environment): Return an
850 incomplete dictionnary instead of None in case of missing
851 environment variables.
852 (elinos_init): in case of an incomplete environment, best
853 effort to load system libraries instead of abort.
855 2013-10-01 Joel Brobecker <brobecker@adacore.com>
857 * ada-lang.c (ada_has_this_exception_support): Ignore
858 mst_solib_trampoline minimal symbols.
860 2013-09-30 Tristan Gingold <gingold@adacore.com>
862 * i386-darwin-nat.c (darwin_complete_target): Install methods for
864 (i386_darwin_dr_set): Support 32 and 64 bit states.
865 (i386_darwin_dr_get): Likewise.
866 (i386_darwin_dr_set_control): Make static.
867 (i386_darwin_dr_set_addr, i386_darwin_dr_get_addr)
868 (i386_darwin_dr_get_status, i386_darwin_dr_get_control): Likewise.
870 2013-09-30 Luis Machado <lgustavo@codesourcery.com>
872 * aarch64-linux-nat.c: Replace PIDGET with ptid_get_pid.
873 Replace TIDGET with ptid_get_lwp.
874 Replace GET_LWP with ptid_get_lwp.
875 * aix-thread.c (BUILD_THREAD, BUILD_LWP): Remove.
876 Replace BUILD_THREAD with ptid_build.
877 Replace BUILD_LWP with ptid_build.
878 Replace PIDGET with ptid_get_pid.
879 Replace TIDGET with ptid_get_lwp.
880 * alphabsd-nat.c: Replace PIDGET with ptid_get_pid.
881 * amd64-linux-nat.c: Replace PIDGET with ptid_get_pid.
882 Replace TIDGET with ptid_get_lwp.
883 * amd64bsd-nat.c: Replace PIDGET with ptid_get_pid.
884 * arm-linux-nat.c: Replace PIDGET with ptid_get_pid.
885 Replace TIDGET with ptid_get_lwp.
886 Replace GET_LWP with ptid_get_lwp.
887 * armnbsd-nat.c: Replace PIDGET with ptid_get_pid.
889 * breakpoint.c: Likewise.
890 * common/ptid.c (ptid_is_pid): Condense check for
891 null_ptid and minus_one_ptid.
892 (ptid_lwp_p): New function.
893 (ptid_tid_p): New function.
894 * common/ptid.h: Update comments for accessors.
895 (ptid_lwp_p): New prototype.
896 (ptid_tid_p): New prototype.
897 * defs.h (PIDGET, TIDGET, MERGEPID): Do not define.
898 * gcore.c: Replace PIDGET with ptid_get_pid.
899 * gdbthread.h: Likewise.
900 * gnu-nat.c: Likewise.
901 * hppa-linux-nat.c: Replace PIDGET with ptid_get_pid.
902 Replace TIDGET with ptid_get_lwp.
903 * hppabsd-nat.c: Replace PIDGET with ptid_get_pid.
904 * hppanbsd-nat.c: Likewise.
905 * i386-linux-nat.c: Replace PIDGET with ptid_get_pid.
906 Replace TIDGET with ptid_get_lwp.
907 * i386bsd-nat.c: Replace PIDGET with ptid_get_pid.
908 * ia64-linux-nat.c: Replace PIDGET with ptid_get_pid.
909 * infcmd.c: Likewise.
910 * inferior.h: Likewise.
911 * inflow.c: Likewise.
912 * infrun.c: Likewise.
913 * linux-fork.c: Likewise.
914 * linux-nat.c: Replace PIDGET with ptid_get_pid.
915 Replace GET_PID with ptid_get_pid.
916 Replace is_lwp with ptid_lwp_p.
917 Replace GET_LWP with ptid_get_lwp.
918 Replace BUILD_LWP with ptid_build.
920 2013-09-28 Mike Frysinger <vapier@gentoo.org>
922 * common/linux-btrace.c: Move sys/syscall.h out of the
923 HAVE_LINUX_PERF_EVENT_H check and wrap it in HAVE_SYS_SYSCALL_H.
924 Also check for SYS_perf_event_open before attempting to buid.
926 2013-09-27 Doug Evans <dje@google.com>
928 * dwarf2read.c (dwarf2_section_info): Add comment.
929 (dwp_file): Split loaded_cutus into loaded_cus, loaded_tus.
931 (dwarf2_section_empty_p): Rename arg from "info" to "section".
932 (dwarf2_read_section): Delete unused local "header". Add section
933 name to error message.
934 (create_dwo_in_dwp): Tweak comment.
935 (MAX_NR_DWO_SECTIONS): Combine count of .debug_macro + .debug_macinfo.
937 * dwarf2read.c (die_reader_specs): Tweak comment.
938 (get_section_bfd_owner, get_section_bfd_section): New functions.
939 (get_section_name, get_section_file_name): New functions.
940 (get_section_id, get_section_flags): New functions.
941 (*): Use new functions to access section fields.
943 * dwarf2read.c (struct dwo_file): Add/tweak comments.
944 (lookup_dwo_unit_in_dwp): Renamed from lookup_dwo_in_dwp. Remove
945 arg "htab". All callers updated.
946 (create_debug_types_hash_table): Remove redundant copy of
948 (create_dwo_in_dwp): Tweak comments.
949 (read_str_index): Tweak comment. Record dwarf form name in static
952 2013-09-27 Pedro Alves <palves@redhat.com>
954 * remote.h (REMOTE_SYSROOT_PREFIX): New define.
955 (remote_filename_p): Add comment.
956 * remote.c (remote_filename_p): Adjust to use
957 REMOTE_SYSROOT_PREFIX.
958 * solib.c (solib_find): When deciding whether we need to add a
959 directory separator, check whether the sysroot is "remote:"
960 instead of checking whether the patch has a drive spec. Add
963 2013-09-27 Pedro Alves <palves@redhat.com>
965 * remote.c (struct stop_reply) <solibs_changed, replay_event>:
967 (remote_parse_stop_reply): Adjust, setting event->ws.kind
970 2013-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
972 Fix set debug frame output.
973 * frame.c (fprint_frame_type): Add TAILCALL_FRAME entry. Move
974 SENTINEL_FRAME entry lower to match enum frame_type order.
976 2013-09-26 Pierre Muller <muller@sourceware.org>
978 Replace constant values 8 to 15 by AMD64_R8_REGNUM to
979 AMD64_R15_REGNUM when a register index is expected.
980 * amd64-windows-tdep.c (amd64_windows_dummy_call_integer_regs):
982 * amd64-tdep.c (amd64_dwarf_regmap): Ditto.
983 (amd64_push_arguments): Substitute in integer_regnum array.
985 2013-09-25 Doug Evans <dje@google.com>
987 * objfiles.c (allocate_objfile): Move comment to better place.
989 New option "set debug symfile on".
990 * NEWS: Mention "set debug symfile".
991 * Makefile.in (SFILES): Add symfile-debug.c.
992 (COMMON_OBS): Add symfile-debug.o.
993 * elfread.c (elf_symfile_read): Use objfile_set_sym_fns to set the
994 objfile's symbol functions.
995 * objfiles.h (objfile_set_sym_fns): Declare.
996 * symfile-debug.c: New file.
997 * symfile.c (syms_from_objfile_1): Use objfile_set_sym_fns to set the
998 objfile's symbol functions.
999 (reread_symbols): Ditto.
1001 * symfile.h (struct sym_fns): Delete member "sym_flavour".
1003 (add_symtab_fns): Update prototype.
1004 * symfile.c (sym_fns_ptr): Delete. Replace with ...
1005 (registered_sym_fns): ... this.
1006 (symtab_fns): Update.
1007 (add_symtab_fns): New arg "flavour". All callers updated.
1008 (find_sym_fns): Rewrite to use new sym_fns registry.
1010 * symfile.h (struct sym_fns): Add "objfile" argument to
1011 sym_read_linetable. All uses updated.
1013 * symtab.c (domain_name, search_domain_name): New functions.
1014 * symtab.h (domain_name, search_domain_name): Declare.
1016 * symfile.h (struct quick_symbol_functions): Reorg arg list of
1017 map_matching_symbols so objfile is first. All uses updated.
1018 * dwarf2read.c (dw2_map_matching_symbols): Update signature.
1019 * psymtab.c (map_matching_symbols_psymtab): Update signature.
1021 2013-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
1024 * solib-svr4.c (svr4_read_so_list): Skip the vDSO when reading
1027 2013-09-24 Doug Evans <dje@google.com>
1029 * objfiles.c (free_objfile): Move comment.
1031 2013-09-24 Joel Brobecker <brobecker@adacore.com>
1033 * ada-exp.y (string_to_operator): Delete.
1034 (dummy_string_to_ada_operator): Delete.
1036 2013-09-24 Joel Brobecker <brobecker@adacore.com>
1039 * i386-tdep.h (enum amd64_reg_class): New, moved here from
1041 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
1042 call_dummy_integer_regs, and classify.
1043 * amd64-tdep.h (amd64_classify): Add declaration.
1044 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
1045 (amd64_reg_class): Delete, moved to i386-tdep.h.
1046 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
1047 Replace call to amd64_classify by call to tdep->classify.
1048 (amd64_push_arguments): Get the list of registers to use for
1049 passing integer parameters from the gdbarch tdep structure,
1050 rather than using a hardcoded one. Replace calls to amd64_classify
1051 by calls to tdep->classify.
1052 (amd64_push_dummy_call): Get the register number used for
1053 the "hidden" argument from tdep->call_dummy_integer_regs.
1054 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
1055 and tdep->call_dummy_integer_regs. Set tdep->classify.
1057 2013-09-24 Joel Brobecker <brobecker@adacore.com>
1060 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
1061 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
1062 where tdep->memory_args_by_pointer is non-zero.
1064 2013-09-24 Joel Brobecker <brobecker@adacore.com>
1067 * i386-tdep.h (struct gdbarch_tdep): Add new field
1068 integer_param_regs_saved_in_caller_frame.
1069 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
1070 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
1072 2013-09-24 Joel Brobecker <brobecker@adacore.com>
1074 * amd64-windows-tdep.c: #include "value.h"
1075 (amd64_windows_classify): Delete.
1076 (amd64_windows_passed_by_integer_register)
1077 (amd64_windows_passed_by_xmm_register)
1078 (amd64_windows_passed_by_pointer)
1079 (amd64_windows_adjust_args_passed_by_pointer)
1080 (amd64_windows_store_arg_in_reg, amd64_windows_push_arguments)
1081 (amd64_windows_push_dummy_call): New functions.
1082 (amd64_windows_init_abi): Remove setting of
1083 tdep->call_dummy_num_integer_regs, tdep->call_dummy_integer_regs,
1084 tdep->classify, tdep->memory_args_by_pointer and
1085 tdep->integer_param_regs_saved_in_caller_frame.
1086 Add call to set_gdbarch_push_dummy_call.
1088 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1090 * dwarf2read.c (open_and_init_dwp_file): Try open_dwp_file also with
1091 objfile->original_name.
1093 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1095 Pass down original filename for objfile.
1096 * coffread.c (coff_symfile_read): Update symbol_file_add_separate call.
1097 * elfread.c (elf_symfile_read): Likewise.
1098 * jit.c (jit_object_close_impl): Update allocate_objfile call, no
1099 longer set ORIGINAL_NAME.
1100 (jit_bfd_try_read_symtab): Update symbol_file_add_from_bfd call.
1101 * jv-lang.c (get_dynamics_objfile): Update allocate_objfile call.
1102 * machoread.c (macho_add_oso_symfile): Add parameter name. Update
1103 symbol_file_add_from_bfd call.
1104 (macho_symfile_read_all_oso): Update two macho_add_oso_symfile calls.
1105 (macho_check_dsym): Add parameter filenamep. Change function comment.
1107 (macho_symfile_read): New variable dsym_filename. Update
1108 macho_check_dsym call. Use it for symbol_file_add_separate.
1109 * objfiles.c (allocate_objfile): Add parameter name. New comment for
1110 it. Use it for objfile->original_name.
1111 (objfile_name): Return OBFD's filename, if available.
1112 * objfiles.h (allocate_objfile): Add new parameter name.
1113 * solib.c (solib_read_symbols): Update symbol_file_add_from_bfd call.
1114 * symfile-mem.c (symbol_file_add_from_memory): Update
1115 symbol_file_add_from_bfd call.
1116 * symfile.c (read_symbols): Update symbol_file_add_separate call, new
1118 (symbol_file_add_with_addrs): New parameter name, add function comment
1119 for it. Remove variable name. Update allocate_objfile call.
1120 (symbol_file_add_separate): New parameter name, add function comment
1121 for it. Update symbol_file_add_with_addrs call.
1122 (symbol_file_add_from_bfd): New parameter name. Update
1123 symbol_file_add_with_addrs call.
1124 (symbol_file_add): Update symbol_file_add_from_bfd call.
1125 (reread_symbols): New variable original_name. Save
1126 objfile->original_name by it.
1127 * symfile.h (symbol_file_add_from_bfd, symbol_file_add_separate): Add
1130 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1132 Code cleanup: Add objfile_name accessor function.
1133 * ada-lang.c (is_known_support_routine): Use objfile_name.
1134 * auto-load.c (source_gdb_script_for_objfile)
1135 (auto_load_objfile_script): Likewise.
1136 * coffread.c (coff_symtab_read, read_one_sym): Likewise.
1137 * dbxread.c (dbx_symfile_read): Likewise.
1138 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
1139 * dwarf2loc.c (locexpr_describe_location_piece): Likewise.
1140 * dwarf2read.c (dwarf2_get_dwz_file, dwarf2_read_index)
1141 (dw2_symtab_iter_next, dw2_expand_symtabs_matching)
1142 (lookup_dwp_signatured_type, lookup_dwo_unit)
1143 (dwarf2_build_psymtabs_hard, scan_partial_symbols, process_queue)
1144 (fixup_go_packaging, process_imported_unit_die, dwarf2_physname)
1145 (read_import_statement, create_dwo_cu, open_and_init_dwp_file)
1146 (lookup_dwo_cutu, read_call_site_scope, dwarf2_ranges_read)
1147 (dwarf2_record_block_ranges, read_common_block, read_typedef)
1148 (read_subrange_type, load_partial_dies, read_partial_die)
1149 (read_addr_index_1, read_str_index, dwarf_decode_lines_1)
1150 (die_containing_type, build_error_marker_type, lookup_die_type)
1151 (follow_die_ref_or_sig, follow_die_ref, dwarf2_fetch_die_loc_sect_off)
1152 (dwarf2_fetch_constant_bytes, follow_die_sig, get_signatured_type)
1153 (get_DW_AT_signature_type, write_psymtabs_to_index)
1154 (save_gdb_index_command): Likewise.
1155 * elfread.c (find_separate_debug_file_by_buildid, elf_symfile_read):
1157 * expprint.c (dump_subexp_body_standard): Likewise.
1158 * gdbtypes.c (type_name_no_tag_or_error): Likewise.
1159 * jit.c (jit_object_close_impl): Use the objfile field name renamed to
1161 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New variable
1162 obj_name, use objfile_name for it, use the variable.
1163 (try_thread_db_load_from_pdir, has_libpthread, thread_db_new_objfile):
1165 * machoread.c (macho_symtab_read, macho_check_dsym)
1166 (macho_symfile_relocate): Likewise.
1167 * maint.c (maintenance_translate_address): Likewise.
1168 * minidebug.c (find_separate_debug_file_in_section): Likewise.
1169 * minsyms.c (install_minimal_symbols): Likewise.
1170 * objfiles.c (allocate_objfile): Use the objfile field name renamed to
1172 (filter_overlapping_sections): Use objfile_name.
1173 (objfile_name): New function.
1174 * objfiles.h (struct objfile): Rename field name to original_name.
1175 (objfile_name): New prototype.
1176 * printcmd.c (sym_info, address_info): Use objfile_name.
1177 * probe.c (parse_probes, collect_probes, compare_probes)
1178 (info_probes_for_ops): Likewise.
1179 * progspace.c (clone_program_space): Likewise.
1180 * psymtab.c (require_partial_symbols, dump_psymtab, allocate_psymtab)
1181 (maintenance_info_psymtabs): Likewise.
1182 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
1183 (source_section_scripts): Likewise.
1184 * python/py-objfile.c (objfpy_get_filename): Likewise.
1185 * python/py-progspace.c (pspy_get_filename): Likewise.
1186 * solib-aix.c (solib_aix_get_toc_value): Likewise.
1187 * solib-som.c (match_main, som_solib_section_offsets): Likewise.
1188 * solib.c (solib_read_symbols): Likewise.
1189 * stabsread.c (scan_file_globals): Likewise.
1190 * stap-probe.c (handle_stap_probe): Likewise.
1191 * symfile.c (symbol_file_clear, separate_debug_file_exists)
1192 (find_separate_debug_file_by_debuglink): Likewise.
1193 (reread_symbols): Likewise. Use the objfile field name renamed to
1195 (allocate_symtab): Use objfile_name.
1196 * symmisc.c (print_symbol_bcache_statistics, print_objfile_statistics)
1197 (dump_objfile, dump_msymbols, dump_symtab_1)
1198 (maintenance_print_msymbols, maintenance_print_objfiles)
1199 (maintenance_info_symtabs, maintenance_check_symtabs): Likewise.
1200 * target.c (target_translate_tls_address, target_info): Likewise.
1201 * xcoffread.c (xcoff_initial_scan): Make variable name const. Use
1204 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1207 * probe.c (parse_probes): Rename variable objfile_name to
1210 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1212 Remove solib-sunos.c.
1213 * Makefile.in (ALLDEPFILES): Remove solib-sunos.c.
1214 * config/m68k/obsd.mh (NATDEPFILES): Remove solib-sunos.o.
1215 * objfiles.c (rt_common_objfile): Remove.
1216 (free_objfile): Remove rt_common_objfile comparison.
1217 * objfiles.h (rt_common_objfile): Remove.
1218 * solib-sunos.c: Remove.
1219 * symfile.c (reread_symbols): Remove solib-sunos.c comment.
1221 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1223 Remove a.out NetBSD and OpenBSD hosts.
1224 * NEWS (Removed native configurations): New.
1225 * config/arm/nbsdaout.mh: Remove.
1226 * config/i386/nbsdaout.mh: Remove.
1227 * config/i386/obsdaout.mh: Remove.
1228 * config/m68k/nbsdaout.mh: Remove.
1229 * config/sparc/nbsdaout.mh: Remove.
1230 * config/vax/nbsdaout.mh: Remove.
1231 * configure.host (arm*-*-netbsd*, i[34567]86-*-netbsd*)
1232 (i[34567]86-*-openbsd[0-2].*, i[34567]86-*-openbsd3.[0-3])
1233 (m68*-*-netbsd*, sparc-*-netbsd*, vax-*-netbsd*): Add them to obsolete
1235 (arm*-*-netbsd*, i[34567]86-*-netbsd*, i[34567]86-*-openbsd[0-2].*)
1236 (i[34567]86-*-openbsd3.[0-3], m68*-*-netbsd*, sparc-*-netbsdaout*)
1237 (sparc-*-netbsd*, vax-*-netbsd*): Remove.
1239 2013-09-23 Tom Tromey <tromey@redhat.com>
1241 * linespec.c (struct minsym_and_objfile): Remove.
1242 (minsym_and_objfile_d): Remove.
1243 (struct linespec, struct collect_info, linespec_parse_basic)
1244 (convert_linespec_to_sals, linespec_parser_delete, decode_objc)
1245 (compare_msymbols, find_method, find_function_symbols)
1246 (find_linespec_symbols, struct collect_minsyms, compare_msyms)
1247 (add_minsym, search_minsyms_for_name): Update.
1249 2013-09-23 Andrew Burgess <aburgess@broadcom.com>
1251 * regcache.c: Add include of valprint.h.
1252 (dump_endian_bytes): Delete.
1253 (regcache_dump): Use print_hex_chars not dump_endian_bytes.
1255 2013-09-23 Andrew Burgess <aburgess@broadcom.com>
1257 * sh64-tdep.c (sh64_do_fp_register): Use print_hex_chars.
1259 2013-09-19 Pedro Alves <palves@redhat.com>
1261 * breakpoint.c (remove_threaded_breakpoints): Skip non-user
1264 2013-09-19 Pedro Alves <palves@redhat.com>
1265 Thomas Schwinge <thomas@codesourcery.com>
1266 Yue Lu <hacklu.newborn@gmail.com>
1268 * gnu-nat.c (gnu_read_inferior, gnu_write_inferior): Make static.
1269 Take a gdb_byte pointer instead of a char pointer.
1271 * gnu-nat.c (gnu_xfer_memory): Adjust interface as
1272 gnu_xfer_partial helper.
1273 (gnu_xfer_partial): New function.
1274 (gnu_target): Don't install a deprecated_xfer_memory hook.
1275 Install a to_xfer_partial hook.
1277 2013-09-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1280 * main.c (captured_main): Replace catch_command_errors by
1281 catch_command_errors_const. Twice.
1282 * symfile.c (symbol_file_add_main_1): Make args parameter const.
1283 (symbol_file_add): Make name parameter const.
1284 (symbol_file_add_main, symbol_file_add_main_1): Make args parameter const.
1285 (symfile_bfd_open): Make name parameter const, rename it to cname. Add
1286 variable name. Change their usage accordingly.
1287 * symfile.h (symbol_file_add, symfile_bfd_open): Make first parameter
1289 (symbol_file_add_main): Make args parameter const.
1291 2013-09-18 Raunaq Bathija <raunaq12@in.ibm.com>
1292 Ulrich Weigand <uweigand@de.ibm.com>
1294 * xcoffread.c (struct coff_symbol): Use CORE_ADDR as type
1296 (read_xcoff_symtab): Use CORE_ADDR as type of fcn_start_addr.
1298 2013-09-18 Pedro Alves <palves@redhat.com>
1299 Yue Lu <hacklu.newborn@gmail.com>
1301 * gnu-nat.c (inf_validate_procs, gnu_wait, gnu_resume)
1302 (gnu_create_inferior)
1303 (gnu_attach, gnu_thread_alive, gnu_pid_to_str, cur_thread)
1304 (set_sig_thread_cmd): Use the lwpid field of ptids to
1305 store/extract thread ids instead of the tid field.
1306 * i386gnu-nat.c (gnu_fetch_registers): Adjust.
1308 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
1310 * infcmd.c (default_print_one_register_info): Add detection of
1311 optimized out values.
1312 (default_print_registers_info): Switch to using
1313 get_frame_register_value.
1315 2013-09-18 Markus Metzger <markus.t.metzger@intel.com>
1317 * infrun.c (handle_inferior_event): Check if we know the
1318 function start address before setting a resume breakpoint.
1320 2013-09-18 Pedro Alves <palves@redhat.com>
1322 * gnu-nat.c (set_sig_thread_cmd): Compare the thread's ptid to
1323 minus_one_ptid instead of looking at the ptid's tid field and
1324 comparing that to -1.
1326 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
1328 * main.h (get_gdb_program_name): Remove extra whitespace.
1330 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
1332 * main.h (get_gdb_program_name): Add declaration.
1333 * main.c (get_gdb_program_name): Add definition.
1335 2013-09-17 Doug Evans <dje@google.com>
1337 * dwarf2read.c: Move definitions of complaint functions to after
1338 forward declarations of local functions.
1340 2013-09-17 Muhammad Waqas <mwaqas@codesourcery.com>
1341 Pedro Alves <palves@redhat.com>
1344 * breakpoint.c (remove_threaded_breakpoints): New function.
1345 (_initialize_breakpoint): Attach remove_threaded_breakpoints
1346 as thread_exit observer.
1348 2013-09-17 Pedro Alves <palves@redhat.com>
1351 * ada-tasks.c (task_command_1): Adjust call to print_stack_frame.
1352 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
1353 * corelow.c (core_open):
1354 * frame.h (print_stack_frame, print_frame_info): New
1355 'set_current_sal' parameter.
1356 * infcmd.c (finish_command, kill_command): Adjust call to
1358 * inferior.c (inferior_command): Likewise.
1359 * infrun.c (normal_stop): Likewise.
1360 * linux-fork.c (linux_fork_context): Likewise.
1361 * record-full.c (record_full_goto_entry, record_full_restore):
1363 * remote-mips.c (common_open): Likewise.
1364 * stack.c (print_stack_frame): New 'set_current_sal' parameter.
1366 (print_frame_info): New 'set_current_sal' parameter. Set the last
1367 displayed sal depending on the new paremeter instead of looking at
1369 (backtrace_command_1, select_and_print_frame, frame_command)
1370 (current_frame_command, up_command, down_command): Adjust call to
1372 * thread.c (print_thread_info, restore_selected_frame)
1373 (do_captured_thread_select): Adjust call to print_stack_frame.
1374 * tracepoint.c (tfind_1): Likewise.
1375 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
1376 (mi_cmd_stack_info_frame): Likewise.
1377 * mi/mi-interp.c (mi_on_normal_stop): Likewise.
1378 * mi/mi-main.c (mi_cmd_exec_return, mi_cmd_trace_find): Likewise.
1380 2013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1382 * value.c (isvoid_internal_fn): Replace "parameter" with
1385 2013-09-16 Stan Shebs <stan@codesourcery.com>
1387 * README: Update references to writing code for GDB.
1388 * configure.ac (build_warnings): Remove obsolete comment.
1389 * configure: Regenerate.
1390 * gdbarch.sh: Remove references to gdbint.texinfo.
1391 * gdbarch.h: Regenerate.
1392 * gdbtypes.c (objfile_type): Remove comments referencing internals
1395 2013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1397 * NEWS: Mention new convenience function $_isvoid.
1398 * value.c (isvoid_internal_fn): New function.
1399 (_initialize_values): Add new convenience function $_isvoid.
1401 2013-09-16 Pierre Muller <muller@sourceware.org>
1403 * arm-linux-tdep.c: Add "elf/common.h" header.
1404 Remove AT_HWCAP macro definintion as it is provided in
1406 * s390-tdep.c: Remove system header <elf.h>
1407 Add "elf/common.h" header for AT_HWCAP definition.
1408 (s390_core_read_description): Use correct CORE_ADDR
1409 for hwcap local variable used as third parameter
1410 of function target_auxv_search.
1412 2013-09-14 Pierre Muller <muller@sourceware.org>
1413 Tom Tromey <tromey@redhat.com>
1414 Pedro Alves <palves@redhat.com>
1416 * common/filestuff.c (gdb_fopen_cloexec): Do not try to use "e"
1417 mode if operating system doesn't know O_CLOEXEC.
1419 2013-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1422 * symfile.c (reread_symbols): Move variable obfd_filename to a more
1425 2013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
1427 * NEWS: Mention TDB support.
1428 * features/s390-tdb.xml: New file.
1429 * features/s390-te-linux64.xml: New file.
1430 * features/s390x-te-linux64.xml: New file.
1431 * features/Makefile (WHICH): Add new tdescs above.
1432 (s390-te-linux64-expedite): Set.
1433 (s390x-te-linux64-expedite): Set.
1434 * features/s390-te-linux64.c: New file (generated).
1435 * features/s390x-te-linux64.c: New file (generated).
1436 * regformats/s390-te-linux64.dat: New file (generated).
1437 * regformats/s390x-te-linux64.dat: New file (generated).
1438 * s390-tdep.h (HWCAP_S390_HIGH_GPRS): Define.
1439 (HWCAP_S390_TE): Likewise.
1440 (S390_TDB_DWORD0_REGNUM): Likewise.
1441 (S390_TDB_DWORD0_REGNUM): Likewise.
1442 (S390_TDB_ABORT_CODE_REGNUM): Likewise.
1443 (S390_TDB_CONFLICT_TOKEN_REGNUM): Likewise.
1444 (S390_TDB_ATIA_REGNUM): Likewise.
1445 (S390_TDB_R0_REGNUM): Likewise.
1446 (S390_TDB_R1_REGNUM): Likewise.
1447 (S390_TDB_R2_REGNUM): Likewise.
1448 (S390_TDB_R3_REGNUM): Likewise.
1449 (S390_TDB_R4_REGNUM): Likewise.
1450 (S390_TDB_R5_REGNUM): Likewise.
1451 (S390_TDB_R6_REGNUM): Likewise.
1452 (S390_TDB_R7_REGNUM): Likewise.
1453 (S390_TDB_R8_REGNUM): Likewise.
1454 (S390_TDB_R9_REGNUM): Likewise.
1455 (S390_TDB_R10_REGNUM): Likewise.
1456 (S390_TDB_R11_REGNUM): Likewise.
1457 (S390_TDB_R12_REGNUM): Likewise.
1458 (S390_TDB_R13_REGNUM): Likewise.
1459 (S390_TDB_R14_REGNUM): Likewise.
1460 (S390_TDB_R15_REGNUM): Likewise.
1461 (S390_NUM_REGS): Increase.
1462 (S390_IS_TDBREGSET_REGNUM): New macro.
1463 (s390_regmap_tdb): Declare.
1464 (s390_sizeof_tdbregset): Define.
1465 (tdesc_s390_te_linux64): Declare.
1466 (tdesc_s390x_te_linux64): Likewise.
1467 * s390-tdep.c: Add includes for "auxv.h", <elf.h>,
1468 "features/s390-te-linux64.c", and "features/s390x-te-linux64.c".
1469 (s390_regmap_tdb): New regmap.
1470 (s390_supply_tdb_regset): New function.
1471 (s390_tdb_regset): New regset.
1472 (s390_linux64v2_regset_sections): Add TDB regset to list.
1473 (s390x_linux64v2_regset_sections): Likewise.
1474 (s390_regset_from_core_section): Recognize TDB core note section.
1475 (s390_core_read_description): If HWCAP indicates TE support,
1476 select tdesc_s390_te_linux64 or tdesc_s390_s390x_te_linux64.
1477 (s390_gdbarch_init): Handle TDB regset.
1478 (_initialize_s390_tdep): Initialize new tdescs.
1479 * s390-nat.c (HWCAP_S390_HIGH_GPRS): Remove define.
1480 (have_regset_tdb): New variable.
1481 (s390_native_supply): Support register invalidation.
1482 (fetch_regset): Invalidate registers if ptrace yields ENODATA.
1483 (check_regset): Treat ENODATA as "regset exists".
1484 (s390_linux_fetch_inferior_registers): Add TDB.
1485 (s390_read_description): Check for TDB existence and select
1487 * gdbserver/Makefile.in (clean): Add removal of new makefile
1489 (s390-te-linux64.c): New makefile target.
1490 (s390x-te-linux64.c): Likewise.
1491 * gdbserver/configure.srv (srv_regobj): Append new objects
1492 s390-te-linux64.o and s390x-te-linux64.o.
1493 (srv_xmlfiles): Append new files s390-te-linux64.xml,
1494 s390x-te-linux64.xml, and s390-tdb.xml.
1495 * gdbserver/linux-s390-low.c (init_registers_s390_te_linux64): New
1497 (tdesc_s390_te_linux64): Likewise.
1498 (init_registers_s390x_te_linux64): Likewise.
1499 (tdesc_s390x_te_linux64): Likewise.
1500 (s390_check_regset): Treat ENODATA as "regset exists".
1501 (s390_arch_setup): Add TDB regset support.
1502 (initialize_low_arch): Initialize registers for new tdescs.
1504 2013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
1506 * s390-tdep.h (S390_IS_GREGSET_REGNUM): New macro.
1507 (S390_IS_FPREGSET_REGNUM): New macro.
1508 * s390-tdep.c (s390_dwarf_regmap): Make const.
1509 (regnum_is_gpr_full): New function for replacing repeated code.
1510 (s390_pseudo_register_name): Use it.
1511 (s390_pseudo_register_type): Likewise.
1512 (s390_pseudo_register_read): Likewise.
1513 (s390_pseudo_register_write): Likewise.
1514 (s390_unwind_pseudo_register): Likewise.
1515 (s390_regmap_gregset): New format for regmap.
1516 (s390x_regmap_gregset): Likewise.
1517 (s390_regmap_fpregset): Likewise.
1518 (s390_regmap_upper): Likewise.
1519 (s390_regmap_last_break): Likewise.
1520 (s390_regmap_system_call): Likewise.
1521 (s390_supply_regset): Adjust to new regmap format.
1522 (s390_collect_regset): Likewise.
1523 * s390-nat.c (s390_native_supply): Adjust to new regmap format.
1524 (s390_native_collect): Likewise.
1525 (supply_gregset): Likewise.
1526 (fill_gregset): Likewise.
1527 (supply_fpregset): Likewise.
1528 (fill_fpregset): Likewise.
1529 (fetch_regset): Likewise.
1530 (store_regset): Likewise.
1531 (s390_linux_fetch_inferior_registers): Likewise.
1532 (s390_linux_fetch_inferior_registers): Likewise.
1534 2013-09-12 Andrew Pinski <apinski@cavium.com>
1536 * aarch64-linux-nat.c (aarch64_linux_set_debug_regs): Zero out regs.
1538 2013-09-10 Andreas Arnez <arnez@linux.vnet.ibm.com>
1540 * config/s390/s390.mh (NATDEPFILES): Add linux-waitpid.o.
1542 2013-09-09 Andrew Burgess <aburgess@broadcom.com>
1544 * top.c (quit_confirm): Remove use of deprecated_init_ui_hook.
1546 2013-09-06 Pedro Alves <palves@redhat.com>
1548 * remote-sim.c (dump_mem, gdbsim_fetch_register)
1549 (gdbsim_store_register, gdbsim_kill, gdbsim_load)
1550 (gdbsim_create_inferior, gdbsim_open, gdbsim_close)
1551 (gdbsim_detach, gdbsim_resume_inferior, gdbsim_wait)
1552 (gdbsim_files_info, gdbsim_mourn_inferior): Send debug output to
1555 2013-09-06 Pedro Alves <palves@redhat.com>
1557 * remote-sim.c (dump_mem): Constify buf parameter.
1558 gdbsim_xfer_inferior_memory): Rename to ...
1559 (gdbsim_xfer_memory): ... this. Adjust interface as
1560 target_xfer_partial helper.
1561 (gdbsim_xfer_partial): New function.
1562 (init_gdbsim_ops): Don't install a deprecated_xfer_memory hook.
1563 Install a to_xfer_partial hook. Send output to gdb_stdlog.
1565 2013-09-06 Pedro Alves <palves@redhat.com>
1567 * remote-sim.c (gdbsim_xfer_inferior_memory): Use
1568 host_address_to_string, and send debug output to gdb_stdlog.
1570 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
1572 * Makefile.in (ALL_TARGET_OBS): Add cris-linux-tdep.o.
1573 * configure.tgt: Add cris-linux-tdep.o and linux-tdep.o to
1574 gdb_target_obs for cris target.
1575 * cris-tdep.c (struct gdbarch_tdep): Move to cris-tdep.h.
1576 (cris_gdbarch_init): Move calls to
1577 set_gdbarch_fetch_tls_load_module_address and
1578 set_solib_svr4_fetch_link_map_offsets to cris-linux-tdep.c.
1579 Add call to gdbarch_init_osabi.
1580 * cris-linux-tdep.c: New file.
1581 * cris-tdep.h: New file.
1583 2013-09-06 Andrew Burgess <aburgess@broadcom.com>
1585 * tui/tui-io.c (tui_initialize_io): Remove legacy comment referring
1586 to deprecated_init_ui_hook.
1588 2013-09-06 Andrew Burgess <aburgess@broadcom.com>
1590 * cli/cli-interp.c (_initialize_cli_interp): Add a
1591 command_loop_proc to interp_procs.
1592 * event-top.c (cli_command_loop): Change signature to match
1593 interp_command_loop_ftype.
1594 * event-top.h (cli_command_loop): Same.
1595 * interps.c (interp_new): Require every interpreter to have a
1597 (current_interp_command_loop): Just call the command_loop_proc on
1598 the current interpreter.
1599 * tui/tui-interp.c (_initialize_tui_interp): Add a
1600 command_loop_proc to interp_procs.
1602 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
1604 * cris-tdep.c (cris_gdbarch_init): Add call to
1605 get_gdbarch_fetch_tls_load_module_address.
1607 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
1609 * cris-tdep.c (cris_elf_greg_t): Rename from elf_greg_t.
1610 (cris_elf_gregset_t): Rename from elf_gregset_t.
1611 (crisv32_elf_gregset_t): Adjust.
1612 (cris_supply_gregset, fetch_core_registers): Adjust.
1614 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
1616 * cris-tdep.c (elf_greg_t): Change typedef to unsigned char[4]
1618 2013-09-05 Andrew Burgess <aburgess@broadcom.com>
1620 * defs.h (deprecated_command_loop_hook): Remove, including
1621 references in comments.
1622 * interps.c (current_interp_command_loop): No longer use
1623 deprecated_command_loop_hook.
1624 (clear_interpreter_hooks): Remove deprecated_command_loop_hook
1626 * top.c (deprecated_command_loop_hook): Remove.
1628 2013-09-05 Pedro Alves <palves@redhat.com>
1630 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): 'dwarf_regnum'
1631 local is now int instead of ULONGEST. Print it with %d
1632 instead of paddress.
1634 2013-09-05 Tristan Gingold <gingold@adacore.com>
1636 * MAINTAINERS: Remove avr maintainership.
1638 2013-09-05 Pedro Alves <palves@redhat.com>
1640 * findvar.c (value_of_register): Rework in terms of
1641 value_of_register_lazy.
1643 2013-09-05 Muhammad Bilal <mbilal@codesourcery.com>
1645 * symfile.c (add_symbol_file_command): Remove trailing
1646 whitespaces and blank line after comment.
1648 2013-09-05 Pedro Alves <palves@redhat.com>
1650 * tui/tui-regs.c (tui_register_format): Don't look at the
1651 register's name here. Return string representing register
1652 value instead of storing it in the data element.
1653 (tui_get_register): Compare register string representations
1654 instead of register value states and contents.
1656 2013-09-05 Pedro Alves <palves@redhat.com>
1659 * tui/tui-regs.c (tui_show_registers): Show registers of the
1660 selected frame, not the current frame.
1662 2013-09-05 Ricard Wanderlof <ricardw@axis.com>
1664 * MAINTAINERS (Write After Approval): Add myself to the list.
1666 2013-09-04 Doug Evans <dje@google.com>
1668 * dwarf2read.c (queue_and_load_all_dwo_tus): New function.
1669 (queue_and_load_dwo_tu): New function.
1670 (lookup_dwo_signatured_type): Set per_cu.tu_read.
1671 (maybe_queue_comp_unit): Rename this_cu argument to dependent_cu.
1672 Make dependent_cu optional.
1673 (dw2_do_instantiate_symtab): If we just loaded a CU from a DWO,
1674 and an older .gdb_index is in use, queue and load all its TUs too.
1676 2013-09-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1678 Code cleanup: Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH.
1679 * cli/cli-cmds.c (find_and_open_script): Add OPF_RETURN_REALPATH to
1680 variable search_flags.
1681 * defs.h (OPF_DISABLE_REALPATH): Rename to ...
1682 (OPF_RETURN_REALPATH): ... here.
1683 * dwarf2read.c (try_open_dwop_file): Set OPF_RETURN_REALPATH for flags.
1684 * exec.c (exec_file_attach): Remove OPF_DISABLE_REALPATH from openp
1686 * nto-tdep.c (nto_find_and_open_solib): Add OPF_RETURN_REALPATH for
1688 * solib.c (solib_find): Likewise. Four times.
1689 * source.c (openp): Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH
1690 in the function comment and for the realpath_fptr variable.
1691 (source_full_path_of): Add OPF_RETURN_REALPATH for openp call.
1692 (find_and_open_source): Likewise. Twice.
1693 * symfile.c (symfile_bfd_open): Likewise, also twice.
1695 2013-09-04 Doug Evans <dje@google.com>
1697 * progspace.c (save_current_space_and_thread): Remove unnecessary
1698 call to save_current_inferior.
1700 2013-09-04 Andrew Burgess <aburgess@broadcom.com>
1702 * sh64-tdep.c (sh64_do_register): Return after printing message
1703 about unavailable register contents.
1705 2013-09-04 Muhammad Bilal <mbilal@codesourcery.com>
1706 Pedro Alves <palves@redhat.com>
1708 * symfile.c (add_symbol_file_command): Error out on unknown
1709 option. Handle EXPECTING_SEC_ADDR/EXPECTING_SEC_NAME before '-'
1710 options and collapse into single conditional branch.
1712 2013-09-03 Luis Machado <lgustavo@codesourcery.com>
1714 * inf-child.c (inf_child_follow_fork): New parameter
1716 * inf-ptrace.c (inf_ptrace_follow_fork): Likewise.
1717 * inf-ttrace.c (inf_ttrace_follow_fork): Likewise.
1718 * inferior.h (detach_fork): Remove.
1719 * infrun.c (detach_fork): Adjust comment and make it
1721 (follow_fork): Pass detach_fork parameter to
1723 * linux-nat.c (linux_child_follow_fork): New parameter
1725 * target.c (target_follow_fork): New parameter detach_fork.
1726 Pass detach_fork as parameter and print its value.
1727 * target.h (struct target_ops) <to_follow_fork>: New int
1729 (target_follow_fork): New parameter detach_fork.
1731 2013-09-03 Joel Brobecker <brobecker@adacore.com>
1733 * solib-ia64-hpux.c (ia64_hpux_relocate_section_addresses):
1734 Replace sec->bfd by sec->the_bfd_section->owner.
1736 2013-09-03 Yao Qi <yao@codesourcery.com>
1738 * linux-tdep.c (linux_is_uclinux): New function. Code moved
1739 from linux_has_shared_address_space.
1740 (linux_has_shared_address_space): Call linux_is_uclinux.
1741 * linux-tdep.h (linux_is_uclinux): Declare.
1742 * m68klinux-tdep.c (m68k_linux_get_sigtramp_info): Call
1745 2013-09-03 Yao Qi <yao@codesourcery.com>
1747 * config/djgpp/fnchange.lst: Remove entry of
1748 i386-interix-nat.c and i386-interix-tdep.c.
1749 * configure.ac: Remove '*-*-interix*'.
1750 * configure: Re-generated.
1751 * defs.h (enum gdb_osabi): Remove GDB_OSABI_INTERIX.
1752 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Remove
1754 * osabi.c (gdb_osabi_names): Remove "Interix".
1756 2013-09-03 Yao Qi <yao@codesourcery.com>
1758 * arch-utils.c: Fix typo in the comment to gdbarch_update_p.
1760 2013-09-02 Markus Metzger <markus.t.metzger@intel.com>
1762 * record.h (record_print_flag) <record_print_src_line,
1763 record_print_insn_range>: Rename into ...
1764 (record_print_flag) <record_print_src_line,
1765 record_print_insn_range>: ... this. Update all users.
1767 2013-09-02 Pierre Muller <muller@sourceware.org>
1769 * windows-nat.c (windows_xfer_memory): Handle ERROR_PARTIAL_COPY
1772 2013-09-02 Pierre Muller <muller@sourceware.org>
1774 * windows-nat.c (windows_xfer_memory): Fix compilation failure
1775 by use of plongest function.
1777 2013-09-02 Tristan Gingold <gingold@adacore.com>
1779 * NEWS: Add entry mentioning support for native Windows x64
1782 * amd64-windows-tdep.c: #include "objfiles.h", "frame-unwind.h",
1783 "coff/internal.h", "coff/i386.h", "coff/pe.h" and "libcoff.h".
1784 (struct amd64_windows_frame_cache): New struct.
1785 (amd64_windows_w2gdb_regnum): New global.
1786 (pc_in_range, amd64_windows_frame_decode_epilogue)
1787 (amd64_windows_frame_decode_insns, amd64_windows_find_unwind_info)
1788 (amd64_windows_frame_cache, amd64_windows_frame_prev_register)
1789 (amd64_windows_frame_this_id): New functions.
1790 (amd64_windows_frame_unwind): New static global.
1791 (amd64_windows_skip_prologue): New function.
1792 (amd64_windows_init_abi): Call frame_unwind_prepend_unwinder
1793 with amd64_windows_frame_unwind. Call set_gdbarch_skip_prologue
1794 with amd64_windows_skip_prologue.
1796 2013-08-30 Joel Brobecker <brobecker@adacore.com>
1800 2013-08-30 Pedro Alves <palves@redhat.com>
1802 * mi/mi-main.c (mi_cmd_trace_find): Use LOC_AND_ADDRESS instead of
1805 2013-08-30 Pedro Alves <palves@redhat.com>
1807 * thread.c (restore_selected_frame): Use SRC_AND_LOC, and change
1810 2013-08-30 Pedro Alves <palves@redhat.com>
1812 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
1813 Adjust arguments to print_stack_frame.
1815 2013-08-30 Pedro Alves <palves@redhat.com>
1817 * ada-tasks.c (task_command_1): Write SRC_AND_LOC instead '1'.
1819 2013-08-30 Pedro Alves <palves@redhat.com>
1821 * frame.h (show_and_print_stack_frame): Delete declaration.
1823 2013-08-30 Phil Muldoon <pmuldoon@redhat.com>
1827 * python/py-arch.c (ARCHPY_REQUIRE_VALID): New macro.
1828 (archpy_name): Check for valid architecture.
1829 (archpy_disassemble): Ditto.
1831 2013-08-29 Joel Brobecker <brobecker@adacore.com>
1833 * rs6000-nat.c (rs6000_ptrace32): Cast "addr" to "uintptr_t"
1834 instead of "long long" in call to ptrace64.
1836 2013-08-29 Andrew Burgess <aburgess@broadcom.com>
1838 * mi/mi-interp.c (mi_command_loop): Change signature to match
1839 interp_command_loop_ftype.
1840 (mi1_command_loop): Remove.
1841 (mi2_command_loop): Remove.
1842 (mi3_command_loop): Remove.
1843 (mi_interpreter_resume): Remove setting of
1844 deprecated_command_loop_hook.
1845 (_initialize_mi_interp): Set mi_command_loop as the command loop
1848 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
1850 * valops.c (do_search_struct_field): Pass v2 instead of base_type to
1853 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
1855 * value.c (allocate_value_contents): Make static.
1856 * value.h (allocate_value_contents): Remove prototype.
1858 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
1860 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use value_at_lazy instead
1861 of assembling value via allocate_value_lazy and attribute setter.
1862 * findvar.c (default_read_var_value): Use value_at_lazy instead of
1863 assembling value via allocate_value_lazy and attribute setter.
1864 * valops.c (do_search_struct_field): Use value_at_lazy instead of
1865 assembling value via allocate_value_lazy and attribute setter.
1867 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
1869 * value.c (value_from_contents_and_address): Replace allocate_value and
1870 memcpy with value_from_contents.
1872 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
1874 * python/py-framefilter.c (py_print_frame): Remove usage of
1875 PyString_AsString. Use python_string_to_host_string instead.
1876 Refactor function to work with a string as a new allocation
1877 instead of a pointer.
1878 (py_print_frame): Ditto.
1879 * python/lib/gdb/frames.py (return_list): Cain iterators together
1880 instead of adding them as a list.
1881 (_sort_list): Call return_list, and remove duplicate code.
1882 (execute_frame_filters): Convert iterator to a list with list().
1883 * python/lib/gdb/command/frame_filters.py
1884 (SetFrameFilterPriority._set_filter_priority): Convert priority
1885 attribute to an integer.
1886 * python/lib/gdb/FrameIterator.py (FrameIterator.next): Define
1887 wrapper function __next__.
1888 * python/lib/gdb/FrameDecorator.py: If basestring not defined,
1891 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
1894 * python/py-framefilter.c (apply_frame_filter): Check
1895 gdb_python_initialized. Exit if the Python frame-filter code
1896 cannot be initialized.
1898 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
1901 * top.c (print_gdb_version): Remove erroneous newline after help
1904 2013-08-29 Yao Qi <yao@codesourcery.com>
1906 * varobj.c (install_dynamic_child): Remove trailing space.
1907 Add one blank line after variable declaration.
1909 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1912 * corefile.c (get_exec_file): Use exec_filename.
1913 * defs.h (OPF_DISABLE_REALPATH): New definition. Add new comment.
1914 * exec.c (exec_close): Free EXEC_FILENAME.
1915 (exec_file_attach): New variable canonical_pathname. Use
1916 OPF_DISABLE_REALPATH. Call gdb_realpath explicitly. Set
1918 * exec.h (exec_filename): New.
1919 * inferior.c (print_inferior, inferior_command): Use
1920 PSPACE_EXEC_FILENAME.
1921 * mi/mi-main.c (print_one_inferior): Likewise.
1922 * progspace.c (clone_program_space, print_program_space): Likewise.
1923 * progspace.h (struct program_space): New field pspace_exec_filename.
1924 * source.c (openp): Describe OPF_DISABLE_REALPATH. New variable
1925 realpath_fptr, initialize it from OPF_DISABLE_REALPATH, use it.
1927 2013-08-28 Will Newton <will.newton@linaro.org>
1929 * common/linux-ptrace.c: Include stdint.h unconditionally.
1931 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1934 * nto-tdep.c (nto_find_and_open_solib): Use OPF_TRY_CWD_FIRST.
1936 2013-08-28 Yao Qi <yao@codesourcery.com>
1937 Pedro Alves <palves@redhat.com>
1939 * event-top.c (gdb_setup_readline): Call stderr_fileopen
1940 instead of stdio_fileopen.
1941 * main.c (captured_main) [__MINGW32__]: Set stderr unbuffered.
1942 .Call stderr_fileopen instead of stdio_fileopen.
1943 * ui-file.c [__MINGW32__] (stderr_file_write): New function.
1944 [__MINGW32__] (stderr_file_fputs): New function.
1945 (stderr_fileopen): New function.
1946 * ui-file.h (stderr_fileopen): Declare.
1948 2013-08-27 Doug Evans <dje@google.com>
1950 * dwarf2read.c (struct dwarf2_cu): Tweak comment.
1951 (struct dwarf2_per_cu_data): Ditto.
1952 (maybe_queue_comp_unit): Delete forward decl. Add comment.
1953 (process_imported_unit_die): Ditto.
1954 (follow_die_sig_1): Simplify assert.
1956 2013-08-27 Pedro Alves <palves@redhat.com>
1958 * windows-nat.c (windows_xfer_memory): Adjust prototype to follow
1959 xfer_partial's interface. Return TARGET_XFER_E_IO on error.
1960 (windows_xfer_partial): Defer TARGET_OBJECT_MEMORY handling to
1961 windows_xfer_memory directly.
1962 (init_windows_ops): Don't install a deprecated_xfer_memory method.
1964 2013-08-27 Pedro Alves <palves@redhat.com>
1966 * darwin-nat.c (darwin_xfer_memory): Delete.
1967 (_initialize_darwin_inferior): Don't install a
1968 deprecated_xfer_memory method.
1970 2013-08-27 Pedro Alves <pedro@codesourcery.com>
1971 Yao Qi <yao@codesourcery.com>
1973 * mi/mi-cmd-stack.c (list_args_or_locals): Adjust prototype.
1974 (parse_no_frames_option): Remove.
1975 (mi_cmd_stack_list_locals): Handle --skip-unavailable.
1976 (mi_cmd_stack_list_args): Adjust.
1977 (mi_cmd_stack_list_variables): Handle --skip-unavailable.
1978 (list_arg_or_local): Add new parameter 'skip_unavailable'. Return
1979 early if SKIP_UNAVAILABLE is true and ARG->val is unavailable.
1981 (list_args_or_locals): New parameter 'skip_unavailable'.
1983 * valprint.c (scalar_type_p): Rename to ...
1984 (val_print_scalar_type_p): ... this. Make extern.
1985 (val_print, value_check_printable): Adjust.
1986 * valprint.h (val_print_scalar_type_p): Declare.
1987 * value.c (value_entirely_unavailable): New function.
1988 * value.h (value_entirely_unavailable): Declare.
1990 * NEWS: Mention the new option "--skip-unavailable" to MI
1991 commands '-stack-list-locals', '-stack-list-arguments' and
1992 '-stack-list-variables'.
1994 2013-08-27 Yao Qi <yao@codesourcery.com>
1996 * mi/mi-cmd-stack.c (parse_no_frames_option): Remove.
1997 (mi_cmd_stack_list_args): Use mi_getopt_silent to handle
1999 * mi/mi-getopt.c (mi_getopt): Remove.
2000 (mi_getopt_1): Renamed from mi_getopt. Add one parameter
2002 (mi_getopt): Call mi_getopt_1.
2003 (mi_getopt_silent): New.
2004 * mi/mi-getopt.h (mi_getopt_silent): Declare.
2006 2013-08-26 Doug Evans <dje@google.com>
2009 * dwarf2read.c (dw2_dump): Print some minimal information indicating
2010 .gdb_index is in use.
2011 * symfile.c (reread_symbols): Reset objfile->sf.
2013 * NEWS: Document "mt print objfiles" now takes optional regexp.
2014 * symmisc.c (maintenance_print_objfiles): Argument is now an optional
2015 regexp of objfiles to print.
2016 (_initialize_symmisc): Update doc string for "mt print objfiles".
2018 * dwarf2read.c (write_psymtabs_to_index): Move error checks ahead of
2019 missing debug info checks.
2021 2013-08-26 Raunaq Bathija <raunaq12@in.ibm.com>
2022 Ulrich Weigand <uweigand@de.ibm.com>
2024 * xcoffread.c (arrange_linetable): Add fix to correctly handle
2025 line tables generated by XLC compiled binaries.
2027 2013-08-23 Doug Evans <dje@google.com>
2029 * symmisc.c (dump_symtab): Delete prototype.
2030 (dump_msymbols, dump_objfile): Ditto.
2031 (maintenance_info_symtabs): Mark as dont_repeat.
2032 (_initialize_symmisc): Improve doc string for "mt info symtabs".
2034 * elfread.c (elf_symfile_read): Move "Done reading minimal symbols"
2035 debugging printf to better location.
2037 2013-08-23 Pedro Alves <palves@redhat.com>
2039 * target.c (target_read_live_memory): Change type of 'ret' local
2042 2013-08-23 Pedro Alves <palves@redhat.com>
2044 * remote.c (remote_write_bytes_aux, remote_write_bytes)
2045 (remote_read_bytes): Change return type to LONGEST, and adjust to
2046 return a target_xfer_error on error.
2047 (remote_xfer_memory): Delete.
2048 (remote_flash_write): Change type of 'ret' local to LONGEST.
2049 (remote_xfer_partial, remote_xfer_partial): Adjust.
2050 (init_remote_ops): Don't install a deprecated_xfer_memory hook.
2052 2013-08-23 Pierre Muller <muller@sourceware.org>
2054 ARI fix: Push # directives to start of line.
2055 * rs6000-nat.c (rs6000_ptrace32, rs6000_ptrace64): Rule applied.
2057 2013-08-12 Muhammad Waqas <mwaqas@codesourcery.com>
2060 * breakpoint.c (enable_command, disable_command): Iterate over
2061 all specified breakpoint locations.
2063 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
2065 * common/linux-ptrace.c (linux_fork_to_function): Push #
2066 directives to the start of the line.
2067 (linux_check_ptrace_features): Fix warning message to use
2070 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
2072 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-nat.h and
2073 nat/linux-waitpid.h.
2074 (linux-waitpid.o): New object file rule.
2075 * common/linux-ptrace.c: Include nat/linux-waitpid.h.
2076 (current_ptrace_options): Moved from linux-nat.c.
2077 (linux_ptrace_test_ret_to_nx): Use type casts for ptrace
2079 (linux_fork_to_function): New function.
2080 (linux_grandchild_function): Likewise.
2081 (linux_child_function): Likewise.
2082 (linux_check_ptrace_features): New function, heavily
2083 based on linux-nat.c:linux_test_for_tracefork.
2084 (linux_enable_event_reporting): New function.
2085 (ptrace_supports_feature): Likewise.
2086 (linux_supports_tracefork): Likewise.
2087 (linux_supports_traceclone): Likewise.
2088 (linux_supports_tracevforkdone): Likewise.
2089 (linux_supports_tracesysgood): Likewise.
2090 * common/linux-ptrace.h (HAS_NOMMU): Moved from
2091 gdbserver/linux-low.c.
2092 (linux_enable_event_reporting): New declaration.
2093 (linux_supports_tracefork): Likewise.
2094 (linux_supports_traceclone): Likewise.
2095 (linux_supports_tracevforkdone): Likewise.
2096 (linux_supports_tracesysgood): Likewise.
2097 * config.in (PTRACE_TYPE_ARG4): Regenerate.
2098 * config/aarch64/linux.mh (NATDEPFILES): Add linux-waitpid.o.
2099 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
2100 * config/arm/linux.mh (NATDEPFILES): Likewise.
2101 * config/i386/linux.mh (NATDEPFILES): Likewise.
2102 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2103 * config/ia64/linux.mh (NATDEPFILES): Likewise.
2104 * config/m32r/linux.mh (NATDEPFILES): Likewise.
2105 * config/m68k/linux.mh (NATDEPFILES): Likewise.
2106 * config/mips/linux.mh (NATDEPFILES): Likewise.
2107 * config/pa/linux.mh (NATDEPFILES): Likewise..
2108 * config/powerpc/linux.mh (NATDEPFILES): Likewise..
2109 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
2110 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
2111 * config/sparc/linux.mh (NATDEPFILES): Likewise.
2112 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
2113 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
2114 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
2115 * configure.ac (AC_CACHE_CHECK): Add void * to the list of
2116 ptrace's 4th argument's types.
2117 Check the type of PTRACE_TYPE_ARG4.
2118 * configure: Regenerate.
2119 * linux-nat.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
2120 (SYSCALL_SIGTRAP): Moved to nat/linux-nat.h.
2121 (linux_supports_tracefork_flag): Remove.
2122 (linux_supports_tracesysgood_flag): Likewise.
2123 (linux_supports_tracevforkdone_flag): Likewise.
2124 (current_ptrace_options): Moved to
2125 common/linux-ptrace.c.
2126 (linux_tracefork_child): Remove.
2127 (my_waitpid): Remove.
2128 (linux_test_for_tracefork): Renamed to
2129 linux_check_ptrace_features and moved to common/linux-ptrace.c.
2130 (linux_test_for_tracesysgood): Remove.
2131 (linux_supports_tracesysgood): Remove.
2132 (linux_supports_tracefork): Remove.
2133 (linux_supports_tracevforkdone): Remove.
2134 (linux_enable_tracesysgood): Remove.
2135 (linux_enable_event_reporting): Remove.
2136 (linux_init_ptrace): New function.
2137 (linux_child_post_attach): Call linux_init_ptrace.
2138 (linux_child_post_startup_inferior): Call linux_init_ptrace.
2139 (linux_child_follow_fork): Call linux_supports_tracefork
2140 and linux_supports_tracevforkdone.
2141 (linux_child_insert_fork_catchpoint): Call
2142 linux_supports_tracefork.
2143 (linux_child_insert_vfork_catchpoint): Likewise.
2144 (linux_child_set_syscall_catchpoint): Call
2145 linux_supports_tracesysgood.
2146 (lin_lwp_attach_lwp): Call linux_supports_tracefork.
2147 * nat/linux-nat.h: New file.
2148 * nat/linux-waitpid.c: New file.
2149 * nat/linux-waitpid.h: New file.
2151 2013-08-22 Samuel Bronson <naesten@gmail.com>
2153 ARM Linux support for `catch syscall'.
2154 * syscalls/arm-linux.py: New file.
2155 * syscalls/arm-linux.xml: Likewise.
2156 * arm-linux-tdep.c (arm_linux_get_syscall_number): New function.
2157 (arm_linux_init_abi): Register the new function and syscall xml file.
2158 * data-directory/Makefile.in: Install the new syscall xml file.
2159 * NEWS: Brag about this.
2161 2013-08-22 Pedro Alves <palves@redhat.com>
2164 * corefile.c (target_xfer_memory_error): New function.
2165 (memory_error): Defer EIO to target_memory_error.
2166 (read_memory): Use target_xfer_partial, and handle finer-grained
2168 * target.c (target_xfer_error_to_string): New function.
2169 (memory_xfer_partial_1): If memory is known to be
2170 unavailable, return TARGET_XFER_E_UNAVAILABLE instead of -1.
2171 (target_xfer_partial): Make extern.
2172 * target.h (enum target_xfer_error): New enum.
2173 (target_xfer_error_to_string): Declare function.
2174 (target_xfer_partial): Declare function.
2175 (struct target_ops) <xfer_partial>: Adjust describing comment.
2177 2013-08-22 Alan Modra <amodra@gmail.com>
2179 * configure.host: Support powerpc64le-linux and powerpcle-linux hosts.
2180 * configure.tgt: Likewise as targets.
2182 2013-08-20 Doug Evans <dje@google.com>
2184 * buildsym.c (subfile_stack): Move here from buildsym.h.
2185 (pending_macros): Ditto.
2186 (get_macro_table): New function.
2187 (buildsym_init): Initialize subfile_stack.
2188 * coffread.c (type_vector,type_vector_length): Moved here from
2190 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
2191 (coff_symtab_read): Use it.
2192 * dbxread.c (read_ofile_symtab): Delete init of subfile_stack.
2193 * dwarf2read.c (macro_start_file): Replace uses of pending_macros
2194 with call to get_macro_table.
2195 * stabsread.c (type_vector,type_vector_length): Moved here from
2197 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
2198 * buildsym.h (get_macro_table): Declare.
2200 2013-08-20 Tom Tromey <tromey@redhat.com>
2202 * dbxread.c (record_minimal_symbol): Make 'name' argument const.
2204 (read_dbx_dynamic_symtab): Make 'name' const. Remove casts.
2206 2013-08-20 Doug Evans <dje@google.com>
2208 * blockframe.c: Remove #include "psymtab.h".
2209 * cp-support.c: Ditto.
2213 2013-08-20 Tom Tromey <tromey@redhat.com>
2216 * exceptions.h (return_mask): Now an enum.
2217 (RETURN_MASK_QUIT, RETURN_MASK_ERROR, RETURN_MASK_ALL): Now
2220 2013-08-20 Tom Tromey <tromey@redhat.com>
2222 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
2224 * elfread.c (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
2225 (elf_gnu_ifunc_resolve_by_got): Use get_objfile_arch.
2226 * jit.c (jit_object_close_impl): Update.
2227 * jv-lang.c (get_dynamics_objfile): Update.
2228 * linespec.c (add_minsym): Use get_dynamics_objfile.
2229 * objfiles.c (get_objfile_bfd_data): Initialize 'gdbarch' field.
2230 (allocate_objfile): Don't initialize 'gdbarch' field.
2231 (get_objfile_arch): Update.
2232 * objfiles.h (struct objfile_per_bfd_storage) <gdbarch>: New field,
2234 (struct objfile) <gdbarch>: ... here. Remove.
2235 * stap-probe.c (stap_can_evaluate_probe_arguments): Use
2237 * symfile.c (init_entry_point_info): Use get_objfile_arch.
2239 2013-08-20 Alan Modra <amodra@gmail.com>
2241 * doublest.c (convert_floatformat_to_doublest): Use fmt->split_half
2242 for IBM long double nan and inf.
2243 (floatformat_is_negative, floatformat_classify,
2244 floatformat_mantissa): Similarly.
2245 (floatformat_ieee_single, floatformat_ieee_double,
2246 floatformat_ieee_quad, floatformat_arm_ext,
2247 floatformat_ia64_spill): Delete unused vars.
2248 (_initialize_doublest): Delete unused function.
2249 * gdbtypes.c (floatformats_ibm_long_double): Use new big- and
2250 little-endian variants of floatformat_ibm_long_double.
2252 2013-08-19 Luis Machado <lgustavo@codesourcery.com>
2254 * Makefile.in (SFILES): Remove common/target-common.c and
2255 add target/waitstatus.c.
2256 (HFILES_NO_SRCDIR): Remove common/target-common.h and add
2257 target/resume.h, target/wait.h and target/waitstatus.h.
2258 (COMMON_OBS): Remove target-common.o and add
2260 (target-common.o): Remove.
2261 (waitstatus.o): New target object file.
2262 * common/target-common.c: Move contents to
2263 target/waitstatus.c and remove.
2264 * common/target-common.h: Move contents to other files and
2266 (enum resume_kind: Move to target/resume.h.
2267 (TARGET_WNOHANG): Move to target/wait.h.
2268 (enum target_waitkind): Move to target/waitstatus.h.
2269 (struct target_waitstatus): Likewise.
2270 * target.h: Do not include target-common.h and
2271 include target/resume.h, target/wait.h and
2272 target/waitstatus.h.
2273 * target/resume.h: New file.
2274 * target/wait.h: New file.
2275 * target/waitstatus.h: New file.
2276 * target/waitstatus.c: New file.
2278 2013-08-19 Pedro Alves <palves@redhat.com>
2280 * linux-nat.c (linux_test_for_tracefork)
2281 (linux_test_for_tracesysgood, linux_child_follow_fork)
2282 (lin_lwp_attach_lwp, linux_nat_resume): Don't block child signals.
2283 (linux_nat_wait_1): Extend comment.
2284 (linux_async_pipe): Add comment.
2286 2013-08-15 Kevin Buettner <kevinb@redhat.com>
2288 * rl78-tdep.c (RL78_RAW_PC_REGNUM): New enum.
2289 (RL78_PC_REGNUM): Move to list of pseudo-register enums.
2290 (rl78_register_type, rl78_register_name, rl78_register_reggroup_p):
2291 Update to account for fact that PC is now a pseudo-register.
2292 (rl78_pseudo_register_write, rl78_pseudo_register_read): Add
2293 cases for RL78_PC_REGNUM.
2295 2013-08-15 Muhammad Bilal <mbilal@codesourcery.com>
2298 * top.c (quit_force): Skip writing history file
2299 if input is not from terminal.
2301 2013-08-14 Tom Tromey <tromey@redhat.com>
2303 * remote.c (struct remote_state) <echo_nextthread, nextthread,
2304 resultthreadlist>: New fields.
2305 (OPAQUETHREADBYTES, threadref, MAXTHREADLISTRESULTS): Move earlier.
2306 (remote_get_threadlist, remote_threadlist_iterator): Use
2307 new fields. Remove static variables.
2309 2013-08-14 Tom Tromey <tromey@redhat.com>
2311 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p,
2312 remote_watch_data_address>: New fields.
2313 (remote_stopped_by_watchpoint_p, remote_watch_data_address): Remove.
2314 (process_stop_reply, remote_wait_as)
2315 (remote_check_watch_resources, remote_stopped_data_address): Update.
2317 2013-08-14 Tom Tromey <tromey@redhat.com>
2319 * remote.c (struct remote_state) <async_client_callback,
2320 async_client_context>: New fields.
2321 (async_client_callback, async_client_context): Remove.
2322 (remote_async_serial_handler, remote_async): Update.
2324 2013-08-14 Tom Tromey <tromey@redhat.com>
2326 * remote.c (sizeof_pkt): Remove.
2327 (remote_trace_find): Use rs->buf_size, not sizeof_pkt.
2329 2013-08-14 Tom Tromey <tromey@redhat.com>
2331 * remote.c (struct remote_state) <use_threadinfo_query,
2332 use_threadextra_query>: New fields.
2333 (remote_threads_info, remote_threads_extra_info)
2334 (remote_open_1): Update.
2336 2013-08-14 Tom Tromey <tromey@redhat.com>
2338 * remote.c (struct remote_state) <finished_object,
2339 finished_annex, finished_offset>: New fields.
2340 (remote_read_qxfer): Use remote_state fields; remove static
2343 2013-08-14 Tom Tromey <tromey@redhat.com>
2345 * remote.c (struct remote_state) <last_sent_step>:
2347 (last_sent_step): Remove.
2348 (remote_resume, remote_wait_as): Update.
2350 2013-08-14 Tom Tromey <tromey@redhat.com>
2352 * remote.c (struct remote_state) <last_sent_signal>:
2354 (last_sent_signal): Remove.
2355 (new_remote_state, remote_resume, remote_wait_as): Update.
2357 2013-08-14 Tom Tromey <tromey@redhat.com>
2359 * remote.c (struct remote_state) <last_program_signals_packet>:
2361 (last_program_signals_packet): Remove.
2362 (remote_program_signals, remote_open_1): Update.
2364 2013-08-14 Tom Tromey <tromey@redhat.com>
2366 * remote.c (struct remote_state) <last_pass_packet>:
2368 (last_pass_packet): Remove.
2369 (remote_pass_signals, remote_open_1): Update.
2371 2013-08-14 Tom Tromey <tromey@redhat.com>
2373 * remote.c (struct remote_state) <remote_traceframe_number>:
2375 (remote_traceframe_number): Remove.
2376 (new_remote_state, remote_open_1, set_remote_traceframe)
2377 (remote_trace_find): Update.
2379 2013-08-14 Tom Tromey <tromey@redhat.com>
2381 * remote.c (struct remote_state) <general_thread, continue_thread>:
2383 (general_thread, continue_thread): Remove.
2384 (record_currthread, set_thread, set_general_process)
2385 (remote_open_1, extended_remote_attach_1, remote_wait_as)
2386 (extended_remote_mourn_1): Update.
2388 2013-08-14 Tom Tromey <tromey@redhat.com>
2390 * remote.c (struct remote_state) <remote_desc>: New field.
2391 (remote_desc): Remove.
2392 (remote_threads_info, remote_threads_extra_info, remote_close)
2393 (send_interrupt_sequence, remote_start_remote, remote_open_1)
2394 (readchar, remote_xfer_partial, remote_rcmd, packet_command)
2395 (remote_hostio_send_command, remote_file_put, remote_file_get)
2396 (remote_file_delete, remote_can_async_p, remote_is_async_p)
2397 (remote_async, remote_new_objfile, set_range_stepping): Update.
2399 2013-08-14 Tom Tromey <tromey@redhat.com>
2401 * remote.c (remote_state): Now a pointer.
2402 (get_remote_state_raw): Update.
2403 (new_remote_state): New function.
2404 (_initialize_remote): Use new_remote_state.
2406 2013-08-14 Tom Tromey <tromey@redhat.com>
2408 * remote.c (remote_protocol_features): Now const.
2410 2013-08-14 Tom Tromey <tromey@redhat.com>
2412 * remote.c (crc32_table, crc32): Remove.
2413 (remote_verify_memory): Use xcrc32.
2415 2013-08-13 Sergio Durigan Junior <sergiodj@redhat.com>
2417 * value.h (create_internalvar_type_lazy): Adjust prototype
2420 2013-08-13 Andrew Burgess <aburgess@broadcom.com>
2422 * common/format.c (parse_format_string): Don't allow '#' flag for
2423 pointer arguments in format string.
2425 2013-08-13 Pierre Muller <muller@sourceware.org>
2427 * utils.c (init_page_info): Only call tgetnum function
2428 if rl_get_screen_size did not return useful values.
2430 2013-08-12 Ali Anwar <ali_anwar@codesourcery.com>
2432 PR breakpoints/15117
2433 * linespec.c (linespec_parse_basic): Check for convenience
2434 variable or history value while parsing.
2436 2013-08-12 Sergio Durigan Junior <sergiodj@redhat.com>
2438 Revert implementation of gdbarch_gdb_signal_{to,from}_target for
2440 * avr-tdep.c: Remove include of "linux-tdep.h". Remove enum with
2441 different signals between the generic Linux kernel implementation
2443 (avr_linux_gdb_signal_from_target): Delete.
2444 (avr_linux_gdb_signal_to_target): Delete.
2445 (avr_gdbarch_init): Don't set gdbarch_gdb_signal_{to,from}_target.
2447 2013-08-09 Doug Evans <dje@google.com>
2449 * dwarf2read.c (create_addrmap_from_index): Ignore bad address table
2452 2013-08-09 Sergio Durigan Junior <sergiodj@redhat.com>
2454 * linux-tdep.c: Define enum with generic signal numbers.
2455 (linux_gdb_signal_from_target): New function.
2456 (linux_gdb_signal_to_target): Likewise.
2457 (linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
2458 methods to the functions above.
2459 * linux-tdep.h (linux_gdb_signal_from_target): New prototype.
2460 (linux_gdb_signal_to_target): Likewise.
2461 * alpha-linux-tdep.c: Define new enum with signals different
2462 from generic Linux kernel.
2463 (alpha_linux_gdb_signal_from_target): New function.
2464 (alpha_linux_gdb_signal_to_target): Likewise.
2465 (alpha_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
2466 with the functions mentioned above.
2467 * avr-tdep.c: Define enum with differences between Linux kernel
2469 (avr_linux_gdb_signal_from_target): New function.
2470 (avr_linux_gdb_signal_to_target): Likewise.
2471 (avr_gdbarch_init): Set gdbarch_gdb_signal_{to,from}_target to
2472 the functions mentioned above.
2473 * sparc-linux-tdep.c: Define enum with differences between SPARC
2474 and generic Linux kernel signal numbers.
2475 (sparc32_linux_gdb_signal_from_target): New function.
2476 (sparc32_linux_gdb_signal_to_target): Likewise.
2477 (sparc32_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
2478 to the functions defined above.
2479 * xtensa-linux-tdep.c: Define enum with differences between
2480 Xtensa and Linux kernel generic signals.
2481 (xtensa_linux_gdb_signal_from_target): New function.
2482 (xtensa_linux_gdb_signal_to_target): Likewise.
2483 (xtensa_linux_init_abi): Set gdbarch_gdb_signal_to_target
2484 to the functions defined above.
2485 * mips-linux-tdep.c: Define enum with differences between
2486 signals in MIPS and Linux kernel generic ones.
2487 (mips_gdb_signal_to_target): New function.
2488 (mips_gdb_signal_from_target): Redefine to use new enum, handle
2489 only different signals from the Linux kernel generic.
2490 (mips_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
2491 the functions defined above.
2492 * mips-linux-tdep.h (enum mips_signals): Remove.
2494 2013-08-09 Pedro Alves <palves@redhat.com>
2496 * avr-tdep.c (XMALLOC): Delete macro.
2497 * cli/cli-dump.c (XMALLOC): Delete macro.
2499 2013-08-09 Pedro Alves <palves@redhat.com>
2501 * cli/cli-dump.c: Don't include cli/cli-dump.h.
2502 (scan_expression_with_cleanup, scan_filename_with_cleanup)
2503 (fopen_with_cleanup, add_dump_command): Make static.
2504 * cli/cli-dump.h: Delete file.
2505 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to
2508 2013-08-09 Pedro Alves <palves@redhat.com>
2510 * tracepoint.c (tfile_start): Show tilde-expanded filename in
2513 2013-08-09 Pedro Alves <palves@redhat.com>
2515 * breakpoint.c (save_breakpoints): Show tilde-expanded filename in
2518 2013-08-09 Pedro Alves <palves@redhat.com>
2520 * gcore.c (create_gcore_bfd): Don't use tilde_expand here.
2521 (gcore_command): Use tilde_expand here, and when showing the
2522 filename to the user, show the expanded version.
2524 2013-08-09 Yao Qi <yao@codesourcery.com>
2526 * stack.c (read_frame_arg): Set 'entryval_error' to NULL if
2529 2013-08-08 Azat Khuzhin <a3at.mail@gmail.com> (tiny change)
2531 * gcore.c (create_gcore_bfd): Use tilde_expand.
2533 2013-08-08 Yao Qi <yao@codesourcery.com>
2535 * frame.h (read_frame_local): Declare.
2536 * mi/mi-cmd-stack.c (list_args_or_locals): Call
2538 * stack.c (read_frame_local): New.
2540 2013-08-08 Yao Qi <yao@codesourcery.com>
2542 * mi/mi-cmd-stack.c: Update comments to function
2543 list_args_or_locals.
2545 2013-08-07 Tom Tromey <tromey@redhat.com>
2548 * dwarf2read.c (struct process_psymtab_comp_unit_data): New.
2549 (process_psymtab_comp_unit_reader): Use it.
2550 (process_psymtab_comp_unit): Update. Add "pretend_language"
2552 (dwarf2_build_psymtabs_hard): Update.
2553 (scan_partial_symbols): Pass CU's language to
2554 process_psymtab_comp_unit.
2556 2013-08-07 Tom Tromey <tromey@redhat.com>
2558 * dwarf2read.c (dw2_get_primary_filename_reader): Remove.
2559 (dwarf2_gdb_index_functions): Update.
2560 * psymtab.c (find_symbol_file_from_partial): Remove.
2561 (psym_functions): Update.
2562 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
2565 2013-08-07 Tom Tromey <tromey@redhat.com>
2567 * symfile.c (set_initial_language): Look up "main" symbol
2568 and use its language.
2569 * symtab.c (find_main_filename): Remove.
2570 * symtab.h (find_main_filename): Remove.
2572 2013-08-07 Tom Tromey <tromey@redhat.com>
2574 * dwarf2read.c (recursively_compute_inclusions): Add
2575 "immediate_parent" argument. Set symtab's "user" field
2577 (compute_symtab_includes): Update.
2579 2013-08-07 Tom Tromey <tromey@redhat.com>
2581 * linespec.c (convert_linespec_to_sals): Use maybe_add_address
2582 when adding label symbols.
2584 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
2585 Ulrich Weigand <uweigand@de.ibm.com>
2587 * configure.tgt (powerpc64-*-aix*): Match powerpc64 running aix.
2588 * configure.host (powerpc64-*-aix*): Likewise.
2590 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
2591 Ulrich Weigand <uweigand@de.ibm.com>
2593 * gdb_ptrace.h: Use ptrace64 instead of ptrace if HAVE_PTRACE64
2595 * rs6000-nat.c: Check for __ld_info64_ if compiling 64 BIT gdb.
2596 (rs6000_ptrace32): Call ptrace64 instead of ptrace if present.
2597 (rs6000_ptrace64): Call ptace64 instead of ptracex if present.
2598 * configure.ac: Check for ptrace64.
2599 * configure, config.in: Regenerate.
2601 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
2602 Ulrich Weigand <uweigand@de.ibm.com>
2604 * aixthread.c: Call ptrace64 instead of ptracex if defined.
2605 Call ptrace64 instead of ptrace if defined.
2606 Add macro addr_ptr to take care of ptrace address argument.
2607 (pdc_read_regs): Likewise.
2608 (pdc_write_regs): Likewise.
2609 (aix_thread_resume): Likewise.
2610 (fetch_regs_kernel_thread): Likewise.
2611 (store_regs_kernel_thread): Likewise.
2613 2013-08-07 Anton Blanchard <anton@samba.org>
2615 * MAINTAINERS: Add myself to Write After Approval.
2617 2013-08-05 Tom Tromey <tromey@redhat.com>
2619 * aix-thread.c (_initialize_aix_thread): Use
2620 complete_target_initialization.
2621 * bsd-uthread.c (_initialize_bsd_uthread): Use
2622 complete_target_initialization.
2623 * dec-thread.c (_initialize_dec_thread): Use
2624 complete_target_initialization.
2625 * ravenscar-thread.c (_initialize_ravenscar): Use
2626 complete_target_initialization.
2627 * sol-thread.c (_initialize_sol_thread): Use
2628 complete_target_initialization.
2629 * spu-multiarch.c (_initialize_spu_multiarch): Use
2630 complete_target_initialization.
2632 2013-08-05 Tom Tromey <tromey@redhat.com>
2634 * ada-exp.y (write_var_or_type): Use bound_minimal_symbol.
2635 * ada-lang.c (ada_lookup_simple_minsym): Return
2636 bound_minimal_symbol.
2637 * ada-lang.h (ada_lookup_simple_minsym): Update.
2638 * c-exp.y (variable): Use lookup_bound_minimal_symbol.
2639 * f-exp.y (variable): Use lookup_bound_minimal_symbol.
2640 * go-exp.y (variable): Use lookup_bound_minimal_symbol.
2641 * jv-exp.y (push_expression_name): Use lookup_bound_minimal_symbol.
2642 * m2-exp.y (variable): Use lookup_bound_minimal_symbol.
2643 * minsyms.c (msymbol_objfile): Remove.
2644 (lookup_minimal_symbol_internal): New function, from
2645 lookup_minimal_symbol.
2646 (lookup_minimal_symbol): Rewrite using
2647 lookup_minimal_symbol_internal.
2648 (lookup_bound_minimal_symbol): New function.
2649 * minsyms.h (msymbol_objfile): Remove.
2650 (lookup_bound_minimal_symbol): Declare.
2651 * p-exp.y (variable): Use lookup_bound_minimal_symbol.
2652 * parse.c (write_exp_msymbol): Change parameter to a
2653 bound_minimal_symbol.
2654 (write_dollar_variable): Use lookup_bound_minimal_symbol.
2655 * parser-defs.h (write_exp_msymbol): Update.
2656 * printcmd.c (address_info): Use lookup_bound_minimal_symbol.
2657 * symfile.c (simple_read_overlay_table): Use
2658 lookup_bound_minimal_symbol.
2659 * symtab.c (skip_prologue_sal): Don't use msymbol_objfile.
2660 (search_symbols): Likewise.
2661 (print_msymbol_info): Take a bound_minimal_symbol argument.
2662 (symtab_symbol_info, rbreak_command): Update.
2663 * symtab.h (struct symbol_search) <msymbol>: Change type
2664 to bound_minimal_symbol.
2665 * valops.c (find_function_in_inferior): Use
2666 lookup_bound_minimal_symbol.
2667 * value.c (value_fn_field): Use lookup_bound_minimal_symbol.
2669 2013-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2672 * remote.c (cleanup_sigint_signal_handler): Rename the declaration
2674 (async_cleanup_sigint_signal_handler): ... this.
2675 (initialize_sigint_signal_handler): Remove declaration.
2676 (handle_remote_sigint): Rename the declaration to ...
2677 (async_handle_remote_sigint): ... this.
2678 (handle_remote_sigint_twice): Rename the declaration to ...
2679 (async_handle_remote_sigint_twice): ... this.
2680 (async_remote_interrupt, async_remote_interrupt_twice)
2681 (remote_interrupt): Remove the declarations.
2682 (remote_interrupt_twice): Rename the declaration ...
2683 (sync_remote_interrupt_twice): ... this.
2684 (sigint_remote_twice_token): Rename the variable to ...
2685 (async_sigint_remote_twice_token): ... this.
2686 (sigint_remote_token): Rename the variable to ...
2687 (async_sigint_remote_token): ... this.
2688 (initialize_sigint_signal_handler): Rename the function to ...
2689 (async_initialize_sigint_signal_handler): ... this. Update the name
2691 (handle_remote_sigint): Rename the function to ...
2692 (async_handle_remote_sigint): ... this. Update the names inside.
2693 (handle_remote_sigint_twice): Rename the function to ...
2694 (async_handle_remote_sigint_twice): ... this. Update the names inside.
2695 (cleanup_sigint_signal_handler): Rename the function to ...
2696 (async_cleanup_sigint_signal_handler): ... this.
2697 (remote_interrupt): Rename the function to ...
2698 (sync_remote_interrupt): this. Update the names inside.
2699 (remote_interrupt_twice): Rename the function to ...
2700 (sync_remote_interrupt_twice): this. Update the names inside.
2701 (remote_terminal_inferior, remote_terminal_ours, remote_wait_as)
2702 (_initialize_remote): Update the names inside.
2704 2013-08-02 Tom Tromey <tromey@redhat.com>
2707 * breakpoint.c (update_watchpoint, watchpoint_check)
2708 (watch_command_1): Update.
2709 * eval.c (fetch_subexp_value): Add "preserve_errors"
2711 * ppc-linux-nat.c (check_condition): Update.
2712 * value.h (fetch_subexp_value): Update.
2714 2013-08-02 Andrew Burgess <aburgess@broadcom.com>
2716 * mi/mi-interp.c (mi_interpreter_resume): Remove call to
2719 2013-08-01 Doug Evans <dje@google.com>
2722 * dwarf2read.c (struct dwarf2_per_cu_data): New member tu_read.
2723 (fill_in_sig_entry_from_dwo_entry): Reorganize asserts.
2724 Add assert of sig_entry->dwo_unit == NULL.
2725 (lookup_dwo_signatured_type): Don't assign TU to a DWO if the TU
2726 had already been read.
2727 (read_signatured_type): Set per_cu.tu_read.
2730 * valops.c (value_struct_elt): Add missing call to check_typedef.
2731 (value_find_oload_method_list): Ditto.
2733 * symtab.c (do_free_search_symbols_cleanup): Change arg to,
2734 effectively, struct symbol_search **.
2735 (make_cleanup_free_search_symbols): Change arg to struct
2736 symbol_search **. All callers updated.
2737 (compare_search_syms): Compare symtab file name and block as well.
2738 (search_symbols_equal): New function.
2739 (sort_search_symbols_remove_dups): Renamed from sort_search_symbols.
2740 New args new_head, new_tail. Result is now void. Remove dups after
2741 sorting the symbols.
2742 (search_symbols): Sort all found symbols once, after all have been
2743 found, and remove duplicates. Simplify cleanup tracking of result.
2744 * symtab.h (make_cleanup_free_search_symbols): Update prototype.
2746 Further workarounds for binutils/15021.
2747 * dwarf2read.c (recursively_compute_inclusions): Change type of result
2748 parameter to VEC (symtab_ptr) **. New parameter all_type_symtabs.
2749 Watch for duplicate symtabs coming from type units.
2750 (compute_symtab_includes): Update call to
2751 recursively_compute_inclusions. Build vector of included symtabs
2753 * symtab.h (symtab_ptr): New typedef.
2754 (DEF_VEC_P (symtab_ptr)): New VEC type.
2755 * linespec.c (symtab_p): Delete. All uses updated to use symtab_ptr
2758 2013-08-01 Andrew Burgess <aburgess@broadcom.com>
2760 * cli/cli-script.c (script_from_file): Remove use of
2762 * main.c (captured_main): Remove use of error_pre_print and
2764 * utils.c (error_pre_print, quit_pre_print): Remove.
2765 * utils.h (error_pre_print, quit_pre_print): Likewise.
2767 2013-08-01 Yao Qi <yao@codesourcery.com>
2769 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Parse argv
2771 (mi_cmd_stack_list_variables): Likewise.
2773 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
2775 * exceptions.c (deprecated_throw_reason): Remove.
2776 * exceptions.h (deprecated_throw_reason): Remove.
2778 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
2780 * remote-mips.c (mips_error): Replace use of
2781 deprecated_throw_reason with throw_verror. Use the error message
2782 passed to mips_error as the error message for throw_verror.
2784 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
2786 * monitor.c (monitor_interrupt_query): Replace use of
2787 deprecated_throw_reason with quit.
2788 * nto-procfs.c (interrupt_query): Likewise.
2789 * remote-fileio.c (remote_fileio_sig_exit): Likewise.
2790 * remote-mips.c (mips_kill): Likewise.
2791 * remote.c (interrupt_query): Likewise.
2793 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
2795 * utils.c (internal_verror): Replace use of deprecated_throw_reason
2798 2013-07-31 Pedro Alves <pedro@codesourcery.com>
2799 Yao Qi <yao@codesourcery.com>
2801 * tracepoint.c (trace_dump_command): Select the current frame.
2803 2013-07-30 Doug Evans <dje@google.com>
2805 * dwarf2read.c (process_queue): Add type signature to debug output.
2807 2013-07-30 Andrew Burgess <aburgess@broadcom.com>
2809 * value.c (value_fetch_lazy): Mark optimized out values as such
2810 rather than raising an error.
2812 2013-07-30 Andrew Burgess <aburgess@broadcom.com>
2814 * value.c (value_fetch_lazy): Ensure parent value is not lazy
2815 before checking which bits of the parent, not the child, value are
2818 2013-07-30 Muhammad Bilal <mbilal@codesorcery.com>
2821 * top.c: Include "filenames.h".
2822 (set_history_filename): New function.
2823 (init_main): Install it as set hook of the "set history filename"
2826 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
2828 * dwarf2read.c (dwarf2_get_ref_die_offset): Constify struct
2829 attribute parameter.
2830 (dwarf2_const_value_data): Constify struct attribute parameter.
2831 (dwarf2_const_value): Constify struct attribute parameter.
2832 (dwarf2_const_value_attr): Constify struct attribute parameter.
2833 (lookup_die_type): Constify struct attribute parameter.
2834 (dwarf2_get_attr_constant_value): Constify struct attribute parameter.
2835 (follow_die_ref_or_sig): Constify struct attribute parameter.
2836 (follow_die_ref): Constify struct attribute parameter.
2837 (follow_die_sig): Constify struct attribute parameter.
2838 (get_DW_AT_signature_type): Constify struct attribute parameter.
2839 (get_type_unit_group): Constify struct attribute parameter.
2840 (fill_in_loclist_baton): Constify struct attribute parameter.
2841 (dwarf2_symbol_mark_computed): Constify struct attribute parameter.
2842 (type_unit_group): Constify struct attribute parameter.
2844 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
2846 * dwarf2read.c (attr_form_is_block): Make argument const.
2847 (attr_form_is_section_offset): Make argument const.
2848 (attr_form_is_constant): Make argument const.
2849 (attr_form_is_ref): Make argument const.
2851 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
2853 * dwarf2read.c (attr_is_ref): Rename to attr_form_is_ref.
2855 (attr_form_is_ref): Moved below attr_form_is_constant.
2857 2013-07-29 Doug Evans <dje@google.com>
2859 * main.c (captured_command_loop): Tweak comment.
2861 * target.c (target_async_permitted_1): Fix comment.
2863 * symtab.c (iterate_over_some_symtabs): Add comment.
2865 * symtab.c (iterate_over_some_symtabs): Fix indentation.
2867 2013-07-27 Yao Qi <yao@codesourcery.com>
2869 * NEWS: Mention that GDBserver now supports hardware
2870 watchpoints on the MIPS GNU/Linux target.
2872 2013-07-27 Yao Qi <yao@codesourcery.com>
2874 * Makefile.in (HFILES_NO_SRCDIR): Add
2875 common/mips-linux-watch.h.
2876 (mips-linux-watch.o): New rule.
2877 * common/mips-linux-watch.c: New.
2878 * common/mips-linux-watch.h: New.
2879 * config/mips/linux.mh (NATDEPFILES): Add mips-linux-watch.o
2880 * mips-linux-nat.c: Include mips-linux-watch.h.
2881 (W_BIT, R_BIT, I_BIT, W_MASK, R_MASK, I_MASK, IRW_MASK): Move
2882 to common/mips-linux-watch.h.
2883 (MAX_DEBUG_REGISTER): Likewise.
2884 (enum pt_watch_style): Likewise.
2885 (struct mips32_watch_regs): Likewise.
2886 (struct mips64_watch_regs): Likewise.
2887 (struct pt_watch_regs): Likewise.
2888 (struct mips_watchpoint): Likewise.
2889 (mips_linux_watch_get_irw_mask): Move to
2890 common/mips-linux-watch.c.
2891 (get_reg_mask, mips_linux_watch_get_num_valid): Likewise.
2892 (mips_linux_watch_get_watchlo): Likewise.
2893 (mips_linux_watch_set_watchlo): Likewise.
2894 (mips_linux_watch_get_watchhi): Likewise.
2895 (mips_linux_watch_set_watchhi): Likewise.
2896 (mips_linux_read_watch_registers): Likewise.
2897 (mips_linux_watch_type_to_irw): Likewise.
2898 (mips_linux_stopped_data_address, fill_mask): Likewise.
2899 (mips_linux_watch_try_one_watch): Likewise.
2900 (mips_linux_watch_populate_regs): Likewise.
2902 2013-07-27 Yao Qi <yao@codesourcery.com>
2904 * mips-linux-nat.c (get_irw_mask): Rename to ...
2905 (mips_linux_watch_get_irw_mask): ... this. Rename parameter
2906 'set' to 'n'. Update function comment. All callers changed.
2907 (get_reg_mask): Rename parameter 'set' to 'n'. Update
2908 function comment. All callers changed.
2909 (get_num_valid): Rename to ...
2910 (mips_linux_watch_get_num_valid): ... this. Rename parameter
2911 'set' to 'n'. Update function comment. All callers changed.
2912 (get_watchlo): Rename to ...
2913 (mips_linux_watch_get_watchlo): ... this. Rename parameter
2914 'set' to 'n'. Update function comment. All callers changed.
2915 (set_watchlo): Rename to ...
2916 (mips_linux_watch_set_watchlo): ... this. Rename parameter
2917 'set' to 'n'. Update function comment. All callers changed.
2918 (get_watchhi): Rename to ...
2919 (mips_linux_watch_get_watchhi): ... this. Update function
2920 comment. All callers changed.
2921 (set_watchhi): Rename to ...
2922 (mips_linux_watch_set_watchhi): ... this. Update function
2923 comment. All callers changed.
2924 (mips_linux_read_watch_registers): Update function comment.
2925 Add new parameters 'lwpid', 'watch_readback', and
2926 'watch_readback_valid'. Update.
2927 (type_to_irw): Rename to ...
2928 (mips_linux_watch_type_to_irw): ... this. Update function
2929 comment. All callers changed.
2930 (fill_mask): Update function comment.
2931 (try_one_watch): Rename to ...
2932 (mips_linux_watch_try_one_watch): ... this. Change the type
2933 of parameter 'irw' from 'unsigned' to 'uint32_t'.
2934 (populate_regs_from_watches): Rename to ...
2935 (mips_linux_watch_populate_regs): ... this. Add parameter
2936 'current_watches'. All callers changed.
2938 2013-07-27 Yao Qi <yao@codesourcery.com>
2940 * mips-linux-nat.c (MAX_DEBUG_REGISTER): Move it earlier in
2942 (PTRACE_SET_WATCH_REGS, enum pt_watch_style): Remove.
2943 (struct mips32_watch_regs, struct mips64_watch_regs): Remove.
2944 (struct pt_watch_regs): Likewise.
2945 [!PTRACE_GET_WATCH_REGS] (PTRACE_SET_WATCH_REGS): New macro.
2946 [!PTRACE_GET_WATCH_REGS] (enum pt_watch_style): New.
2947 [!PTRACE_GET_WATCH_REGS] (struct mips32_watch_regs): New.
2948 [!PTRACE_GET_WATCH_REGS] (struct mips64_watch_regs): New.
2949 [!PTRACE_GET_WATCH_REGS] (struct pt_watch_regs): New.
2951 2013-07-27 Yao Qi <yao@codesourcery.com>
2953 * breakpoint.h: Include break-common.h.
2954 (enum target_hw_bp_type): Move to ...
2955 * common/break-common.h: ... here. New.
2957 2013-07-26 Cyril Nikolaev <cyril@nichtverstehen.de>
2959 * inflow.c (terminal_init_inferior_with_pgrp): Save inferior
2960 process group regardless of having tty on stdin.
2962 2013-07-25 Doug Evans <dje@google.com>
2964 * linux-fork.h (detach_fork): Delete.
2966 2013-07-25 Tom Tromey <tromey@redhat.com>
2968 PR remote/15256, PR remote/15266:
2969 * bfd-target.c (target_bfd_reopen): Initialize to_magic.
2970 * monitor.c (monitor_detach): Use unpush_target.
2971 * remote-m32r-sdi.c (m32r_detach): Use unpush_target.
2972 * remote-mips.c (mips_detach): Use unpush_target. Don't
2974 * remote-sim.c (gdbsim_detach): Use unpush_target.
2975 * target.c (pop_target): Remove.
2976 (pop_all_targets_above): Don't call target_close.
2977 (target_close): Assert that the target is unpushed.
2978 * target.h (pop_target): Don't declare.
2979 * tracepoint.c (tfile_open): Use unpush_target.
2981 2013-07-25 Tom Tromey <tromey@redhat.com>
2983 * linux-thread-db.c (init_thread_db_ops): Call
2984 complete_target_initialization.
2985 (_initialize_thread_db): Don't call add_target.
2986 * target.c (complete_target_initialization): New function.
2987 (add_target_with_completer): Call it.
2988 * target.h (complete_target_initialization): Declare.
2990 2013-07-25 Mark Kettenis <kettenis@gnu.org>
2992 * hppa-tdep.h (enum hppa_regnum): Add members for all space registers.
2993 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Add comment.
2994 (HPPANBSD_SIZEOF_GREGS): New define.
2995 (hppaobsd_supply_gregset): Handle additional registers.
2996 * hppabsd-nat.c (hppabsd_gregset_supplies_p): Adjust to indicate
2997 we provide more registers now.
2998 (hppabsd_supply_gregset): Supply additional registers.
2999 (hppabsd_collect_gregset): Collect additional registers.
3001 2013-07-25 Mark Kettenis <kettenis@gnu.org>
3003 * hppabsd-tdep.c: Include "dwarf2-frame.h".
3004 (hppabsd_dwarf2_frame_init_reg): New function.
3005 (hppabsd_init_abi): Hook in the DWARF CFI frame unwinder.
3007 2013-07-25 Andrew Burgess <aburgess@broadcom.com>
3009 * mi/mi-main.c (output_register): Make MI 'r' format use standard
3010 'z' format code. Remove error for optimized out values, standard
3011 code will handle these fine.
3013 2013-07-25 Andrew Burgess <aburgess@broadcom.com>
3015 * NEWS: Mention new 'z' formatter.
3016 * printcmd.c (print_scalar_formatted): Add new 'z' formatter.
3017 (_initialize_printcmd): Mention 'z' formatter in help text of the
3020 2013-07-24 Maciej W. Rozycki <macro@codesourcery.com>
3022 * mips-tdep.c (micromips_deal_with_atomic_sequence): Correct
3025 2013-07-24 Sergio Durigan Junior <sergiodj@redhat.com>
3027 * breakpoint.c (create_longjmp_master_breakpoint): Check if probe
3028 interface can evaluate arguments. Fallback to the old mode if it
3030 (create_exception_master_breakpoint): Likewise.
3031 * elfread.c (elf_can_evaluate_probe_arguments): New function.
3032 (struct sym_probe_fns elf_probe_fns): Export function above to the
3034 * probe.c (can_evaluate_probe_arguments): New function.
3035 * probe.h (struct probe_ops) <can_evaluate_probe_arguments>: New
3037 (can_evaluate_probe_arguments): New function prototype.
3038 * solib-svr4.c (svr4_create_solib_event_breakpoints): Check if
3039 probe interface can evaluate arguments. Fallback to the old mode
3041 * stap-probe.c (stap_get_probe_argument_count): Check if probe
3042 interface can evaluate arguments. Warning the user if it cannot.
3043 (stap_can_evaluate_probe_arguments): New function.
3044 (struct probe_ops stap_probe_ops): Export function above to the
3046 * symfile.h (struct sym_probe_fns) <can_evaluate_probe_arguments>:
3047 New function pointer.
3049 2013-07-24 Luis Machado <lgustavo@codesourcery.com>
3051 * Makefile.in (SFILES): Add common/target-common.c.
3052 Add common/target-common.h to headers.
3053 (COMMON_OBS): Add target-common.o.
3054 (target-common.o): New target.
3055 * linux-nat.h (resume_kind): Move to common/target-common.h.
3056 * target.c (target_waitstatus_to_string): Move to
3057 common/target-common.c.
3058 * target.h: Include target-common.h.
3059 (target_waitkind): Move to common/target-common.h.
3060 (target_waitstatus): Likewise.
3061 (TARGET_WNOHANG): Likewise.
3062 * common/target-common.c: New file.
3063 * common/target-common.h: New file.
3065 2013-07-24 Doug Evans <dje@google.com>
3067 * dwarf2read.c (lookup_dwo_cutu): Change missing DWO complaint to
3070 2013-07-23 Yao Qi <yao@codesourcery.com>
3072 * i386-tdep.c (i386_in_stack_tramp_p): Remove unused
3073 parameter 'gdbarch'.
3074 (i386_stack_tramp_frame_sniffer): Caller update.
3075 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Remove
3076 parameter 'gdbarch' and 'target'.
3077 (i386_linux_core_read_description): Caller update.
3078 * amd64-linux-tdep.c (amd64_linux_core_read_description):
3080 * i386-linux-tdep.h (i386_linux_core_read_xcr0): Update
3083 2013-07-23 Tom Tromey <tromey@redhat.com>
3085 * dwarf2read.c (init_cutu_and_read_dies): Revert patch from
3088 2013-07-22 Doug Evans <dje@google.com>
3090 * exec.h (remove_target_sections): Delete arg abfd.
3091 * exec.c (exec_close): Update call to remove_target_sections.
3092 (remove_target_sections): Delete arg abfd.
3093 * solib.c (update_solib_list): Ditto.
3094 (reload_shared_libraries_1): Ditto.
3095 (clear_solib): Ditto, and unconditionally call remove_target_sections.
3096 * target.h (struct target_section): Rename key to owner.
3099 2013-07-22 Tom Tromey <tromey@redhat.com>
3101 * solib-som.c (som_open_symbol_file_object): Call do_cleanups.
3103 2013-07-22 Tom Tromey <tromey@redhat.com>
3105 * dwarf2read.c (init_cutu_and_read_dies): Remove 'free_cu_cleanup'.
3106 Simplify cleanup handling.
3108 2013-07-22 Tom Tromey <tromey@redhat.com>
3110 * dwarf2read.c (dwarf_decode_line_header): Call do_cleanups
3111 on all return paths.
3113 2013-07-22 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3115 * ppc-linux-nat.c (PPC_DEBUG_FEATURE_DATA_BP_DAWR): New define.
3116 (ppc_linux_region_ok_for_hw_watchpoint): Add checking to use the new
3117 DAWR interface for longer ranges hardware watchpoint (up to 512 bytes).
3119 2013-07-22 Phil Muldoon <pmuldoon@redhat.com>
3121 * top.c (print_gdb_version): Add help, apropos description and
3122 url to online documentation.
3124 2013-07-19 Hui Zhu <hui@codesourcery.com>
3127 * mi/mi-cmd-break.c (mi_argv_to_format): Handle double quotes.
3129 2013-07-19 Yao Qi <yao@codesourcery.com>
3131 * target.c (update_current_target): Change the default action
3132 of 'to_traceframe_info' from tcomplain to return_zero.
3133 * target.h (struct target_ops) <to_traceframe_info>: Add more
3135 * valops.c (read_value_memory): Call
3136 traceframe_available_memory unconditionally.
3138 2013-07-18 Yao Qi <yao@codesourcery.com>
3140 * coffread.c (coff_symfile_read): Iterate over minimal symbols,
3141 if the name is prefixed by "__imp_" or "_imp_", look for minimal
3142 symbol without prefix. If found, set its type to
3143 'mst_solib_trampoline'.
3145 2013-07-17 Doug Evans <dje@google.com>
3147 * NEWS: Mention "set print raw frame-arguments".
3148 * gdbcmd.h (setprintrawlist, showprintrawlist): Declare.
3149 * stack.c (print_raw_frame_arguments): New static global.
3150 (print_frame_arg): Set opts.raw from print_raw_frame_arguments.
3151 (_initialize_stack): New command "set/show print raw frame-arguments".
3152 * valprint.c (setprintrawlist, showprintrawlist): New globals.
3153 (set_print_raw, show_print_raw): New functions.
3154 (_initialize_valprint): New prefix command "set/show print raw".
3155 * valprint.h (value_print_options): Improve comments.
3157 * cli/cli-cmds.c (init_cmd_lists): Delete unnecessary initialization
3158 of all *list variables.
3160 * gdbcmd.h (togglelist): Delete.
3161 * cli/cli-cmds.c (togglelist): Delete.
3162 (init_cmd_lists): Update.
3163 * cli/cli-cmds.h (togglelist): Delete.
3165 2013-07-17 Tom Tromey <tromey@redhat.com>
3167 * dwarf2read.c (dwarf2_per_objfile_free): Clear
3170 2013-07-16 Doug Evans <dje@google.com>
3172 * nto-tdep.c (nto_relocate_section_addresses): Update,
3173 target_section.bfd deleted.
3174 * ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Ditto.
3175 * s390-tdep.c (s390_load): Ditto.
3176 * solib-aix.c (solib_aix_relocate_section_addresses): Ditto.
3178 2013-07-16 Andrew Burgess <aburgess@broadcom.com>
3180 * common/format.c (parse_format_string): Add checks for NULL
3181 character before calling strchr.
3183 2013-07-16 Doug Evans <dje@google.com>
3185 * solist.h (target_so_ops.find_and_open_solib): Clarify usage of
3186 temp_pathname argument.
3187 * nto-tdep.c (nto_find_and_open_solib): Fix setting of temp_pathname
3188 when opening the file fails.
3190 * target.h (struct target_section): Delete member bfd.
3191 All users updated to use the_bfd_section->owner instead.
3192 * exec.c (add_to_section_table): Assert bfd is expected value.
3193 Remove initialization of target_section.bfd.
3194 (remove_target_sections): Update.
3195 (section_table_available_memory): Update.
3196 (section_table_xfer_memory_partial): Update.
3197 (print_section_info): Update.
3198 (exec_set_section_address): Update.
3199 * record-full.c (record_full_core_xfer_partial): Update.
3200 * solib-svr4.c (svr4_relocate_section_addresses): Update.
3201 * solib-target.c (solib_target_relocate_section_addresses): Update.
3202 * symfile.c (build_section_addr_info_from_section_table): Update.
3203 * target.c (memory_xfer_live_readonly_partial): Update.
3204 (memory_xfer_partial_1): Update.
3206 2013-07-15 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3208 * ppc-linux-nat.c: Since the new PowerPC specific ptrace interface is
3209 now available for embedded (BookE) and server (BookS) processors,
3210 correct mentions of 'booke' and adjust comments accordingly in order to
3211 avoid confusion. Rename struct 'booke_debug_info' to 'hwdebug_info'.
3212 (have_ptrace_booke_interface): Rename function and variable
3213 'have_ptrace_booke_interface' to 'have_ptrace_hwdebug_interface'.
3214 Rename struct 'booke_debug_info' to 'hwdebug_info'. Update all uses.
3215 (booke_cmp_hw_point): Rename function 'booke_cmp_hw_point' to
3216 'hwdebug_point_cmp'. Update all uses.
3217 (booke_find_thread_points_by_tid): Rename function
3218 'booke_find_thread_points_by_tid' to
3219 'hwdebug_find_thread_points_by_tid'. Update all uses.
3220 (booke_insert_point): Rename function 'booke_insert_point' to
3221 'hwdebug_insert_point'. Update all uses.
3222 (booke_remove_point): Rename function 'booke_remove_point' to
3223 'hwdebug_remove_point'. Update all uses.
3225 2013-07-15 Maciej W. Rozycki <macro@codesourcery.com>
3227 * mips-tdep.c (mips_gdbarch_init): Replace hardcoded magic
3228 numbers with enum values.
3230 2013-07-15 Ali Anwar <ali_anwar@codesourcery.com>
3233 * thread.c (thread_apply_all_command): Check for valid threads
3235 (thread_array_cleanup): New struct.
3236 (set_thread_refcount): New function.
3238 2013-07-11 Andrew Burgess <aburgess@broadcom.com>
3240 * infcmd.c (default_print_one_register_info): Reuse function
3243 2013-07-10 Tom Tromey <tromey@redhat.com>
3245 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS, ADA_EXP_C): New macros.
3246 (ada-exp.o): New target.
3248 2013-07-10 Sergio Durigan Junior <sergiodj@redhat.com>
3250 * mt-tdep.c (mt_registers_info): Call
3251 get_no_prettyformat_print_options instead of
3252 get_raw_print_options (regression by last patch from Doug
3255 2013-07-09 Pedro Alves <palves@redhat.com>
3257 Checked in by Joel Brobecker <brobecker@adacore.com>.
3258 * ada-lang.c (coerce_unspec_val_to_type): Use
3259 value_optimized_out_const.
3260 * value.c (value_optimized_out_const): New function.
3261 * value.h (value_optimized_out_const): New declaration.
3263 2013-07-09 Doug Evans <dje@google.com>
3265 * defs.h (enum val_prettyformat): Renamed from val_prettyprint.
3266 Enum values rename as well. All uses updated.
3267 * valprint.h (value_print_options): Rename member pretty to
3268 pretty format. Rename member prettyprint_arrays to
3269 prettyformat_arrays. Rename member prettyprint_structs to
3270 prettyformat_structs. All uses updated.
3271 (get_no_prettyformat_print_options): Renamed from
3272 get_raw_print_options.
3273 * valprint.c (get_no_prettyformat_print_options): Renamed from
3274 get_raw_print_options. All callers updated.
3275 (show_prettyformat_structs): Renamed from show_prettyprint_structs.
3276 All callers updated.
3277 (show_prettyformat_arrays): Renamed from show_prettyprint_arrays.
3278 All callers updated.
3279 (_initialize_valprint): Improve help text for "set print pretty" and
3282 2013-07-09 Andrew Burgess <aburgess@broadcom.com>
3284 * value.c (value_bits_valid): Revert previous change, and change
3285 by Pedro on 2013-07-04, due to regressions in
3286 gdb.dwarf2/implptr.exp and gdb.dwarf2/pieces.exp.
3288 2013-07-08 Andrew Burgess <aburgess@broadcom.com>
3289 Pedro Alves <palves@redhat.com>
3291 * value.c (value_bits_valid): If the value is not lval_computed
3292 or has no check validity handler then the answer is the
3293 optimized_out flag, otherwise defer to the handler.
3295 2013-07-06 Eli Zaretskii <eliz@gnu.org>
3297 * top.c (print_gdb_configuration): Explain in output of
3298 --configuration what does "relocatable" mean.
3300 * main.c (print_gdb_help): Regroup options in the --help text.
3301 See http://sourceware.org/ml/gdb-patches/2013-04/msg00362.html for
3302 the relevant discussions.
3304 2013-07-06 Yao Qi <yao@codesourcery.com>
3306 * breakpoint.h (struct breakpoint_ops) <create_breakpoints_sal>:
3307 Remove parameter 'lsal'.
3308 * breakpoint.c (create_breakpoint): Move local variable 'lsal'
3309 to inner block. Caller update.
3310 (base_breakpoint_create_breakpoints_sal): Update.
3311 (bkpt_create_breakpoints_sal): Likewise.
3312 (tracepoint_create_breakpoints_sal): Likewise.
3313 (strace_marker_create_breakpoints_sal): Get 'lsal' from the
3314 element 0 of vector 'canonical->sals'.
3316 2013-07-05 Luis Machado <lgustavo@codesourcery.com>
3318 * rs6000-tdep.c (rs6000_stab_reg_to_regnum): Return the real
3319 register number instead of the pseudo register one.
3320 (rs6000_dwarf2_reg_to_regnum): Likewise.
3322 2013-07-04 Pedro Alves <palves@redhat.com>
3324 * findvar.c (value_of_register): Use allocate_optimized_out_value
3325 if the register has been optimized out, instead of
3326 set_value_optimized_out.
3327 * frame-unwind.c (frame_unwind_got_optimized): Use
3328 allocate_optimized_out_value.
3330 2013-07-04 Pedro Alves <palves@redhat.com>
3332 * value.c (value_bits_valid): If the value is not lval_computed,
3333 or doesn't have a check_validity hook, assume the value is entirely
3336 2013-07-04 Andrew Burgess <aburgess@broadcom.com>
3338 * stack.c (read_frame_arg): No longer fetch lazy values.
3339 * value.c (value_optimized_out): If the value is not already
3340 marked optimized out, and is lazy then fetch it.
3341 (value_primitive_field): Move optimized out check to later in the
3342 function, after we have loaded any lazy values.
3343 (value_fetch_lazy): Use optimized out flag directly rather than
3344 calling optimized_out method.
3346 2013-07-04 Andrew Burgess <aburgess@broadcom.com>
3348 * valops.c: Don't include "user-regs.h".
3349 (value_fetch_lazy): Moved to value.c.
3350 * value.c: Include "user-regs.h".
3351 (value_fetch_lazy): Moved from valops.c.
3353 2013-07-04 Yao Qi <yao@codesourcery.com>
3356 2013-06-27 Yao Qi <yao@codesourcery.com>
3358 * common/create-version.sh: Update comments. Handle the case
3359 that TARGET_ALIAS is empty.
3361 2013-07-03 Pedro Alves <palves@redhat.com>
3363 * Makefile.in (config.status): Depend on development.sh.
3364 (aclocal_m4_deps): Add libmcheck.m4.
3365 * acinclude.m4: Include libmcheck.m4.
3366 * configure.ac: Source development.sh instead of setting
3367 'development' here. --enable-libmcheck/--disable-libmcheck code
3368 factored out to GDB_AC_LIBMCHECK. Run it.
3369 * development.sh: New file.
3370 * libmcheck.m4: New file.
3371 * configure: Regenerate.
3373 2013-07-02 Tom Tromey <tromey@redhat.com>
3375 * contrib/ari/update-web-ari.sh: Update for version.in change.
3377 2013-07-02 Tom Tromey <tromey@redhat.com>
3379 * common/ptid.h: Comment fixes.
3381 2013-07-01 Tom Tromey <tromey@redhat.com>
3383 * dwarf2read.c (dwarf2_get_dwz_file): Return NULL if
3384 .gnu_debugaltlink not found. Use bfd_get_alt_debug_link_info.
3385 (dwarf2_read_index, create_all_comp_units): Update.
3387 2013-07-01 Tom Tromey <tromey@redhat.com>
3389 * configure.ac (build_warnings): Add -Wold-style-definition.
3390 * configure: Rebuild.
3391 * machoread.c (_initialize_machoread): Use "(void)".
3392 * macrocmd.c (macro_inform_no_debuginfo): Fix formatting;
3395 2013-07-01 Tom Tromey <tromey@redhat.com>
3397 * configure.ac (build_warnings): Add -Wold-style-declaration.
3398 * configure: Rebuild.
3399 * dsrec.c (make_srec): Use "static const", not "const static".
3400 * h8300-tdep.c (h8300_breakpoint_from_pc): Use "static const",
3402 * mi/mi-parse.c (mi_no_values, mi_simple_values, mi_all_values):
3403 Use "static const", not "const static".
3404 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Use "static const",
3406 * moxie-tdep.c (moxie_breakpoint_from_pc): Use "static const",
3408 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Use "static const",
3410 * v850-tdep.c (v850_breakpoint_from_pc): Use "static const",
3412 (v850_dbtrap_breakpoint_from_pc): Likewise.
3413 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Use "static const",
3416 2013-07-01 Tom Tromey <tromey@redhat.com>
3418 * configure.ac (build_warnings): Add -Wmissing-parameter-type.
3419 * configure: Rebuild.
3421 2013-07-01 Pedro Alves <palves@redhat.com>
3423 * defs.h: Include "pathmax.h".
3424 * utils.c: Don't include sys/param.h.
3425 (gdb_realpath): Remove code that checks for MAXPATHLEN.
3426 * solib-ia64-hpux.c (ia64_hpux_handle_load_event): Use PATH_MAX
3427 instead of MAXPATHLEN.
3428 * solib-sunos.c: Don't include sys/param.h.
3429 * xcoffread.c: Don't include sys/param.h.
3430 * bsd-kvm.c: Don't include sys/param.h.
3431 * darwin-nat.c: Don't include sys/param.h.
3432 (darwin_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
3433 * darwin-nat-info.c: Don't include sys/param.h.
3434 * fbsd-nat.c (fbsd_pid_to_exec_file): Use PATH_MAX instead of
3436 * i386obsd-nat.c: Don't include sys/param.h.
3437 * inf-child.c: Don't include sys/param.h.
3438 (inf_child_fileio_readlink): Use PATH_MAX instead of MAXPATHLEN.
3439 * linux-fork.c: Don't include sys/param.h.
3440 (fork_save_infrun_state): Use PATH_MAX instead of MAXPATHLEN.
3441 * linux-nat.c: Don't include sys/param.h.
3442 (linux_child_pid_to_exec_file, linux_proc_pending_signals)
3443 (linux_proc_pending_signals): Use PATH_MAX instead of MAXPATHLEN.
3444 * m68klinux-nat.c: Don't include sys/param.h.
3445 * nbsd-nat.c: Don't include sys/param.h.
3446 (nbsd_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
3447 * ppc-linux-nat.c: Don't include sys/param.h.
3448 * rs6000-nat.c: Don't include sys/param.h.
3449 * spu-linux-nat.c. Don't include sys/param.h.
3450 * windows-nat.c: Don't include sys/param.h.
3451 * xtensa-linux-nat.c: Don't include sys/param.h.
3452 * config/i386/nm-fbsd.h: Don't include sys/param.h.
3454 2013-07-01 Pedro Alves <palves@redhat.com>
3456 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add pathmax.
3457 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/pathmax.m4.
3458 * gnulib/aclocal.m4: Regenerate.
3459 * gnulib/config.in: Regenerate.
3460 * gnulib/configure: Regenerate.
3461 * gnulib/import/pathmax.h: New file.
3462 * gnulib/import/Makefile.am: Regenerate.
3463 * gnulib/import/Makefile.in: Regenerate.
3464 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
3465 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
3466 * gnulib/import/m4/pathmax.m4: New file.
3468 2013-07-01 Pedro Alves <palves@redhat.com>
3470 * configure.ac (GDBINIT): Define, depending on host.
3471 * go32-nat.c (init_go32_ops): Don't override gdbinit here.
3472 * top.c (PATH_MAX): Delete fallback definition.
3473 (GDBINIT_FILENAME): Delete.
3474 (gdbinit): Reimplement as const char array set to the GDBINIT
3476 * top.h (gdbinit): Make const.
3477 * configure, config.in: Regenerate.
3479 2013-07-01 Pedro Alves <palves@redhat.com>
3481 * cli/cli-cmds.c (source_script): Make 'file' parameter const.
3482 * cli/cli-cmds.h (source_script): Likewise.
3483 * exceptions.c (catch_command_errors_const): New function.
3484 * exceptions.h (catch_command_errors_const): Declare.
3485 * main.c (get_init_files): Make parameters const, and adjust.
3486 (captured_main): Make 'system_gdbinit', 'home_gdbinit' and
3487 'local_gdbinit' locals const. Adjust to use
3488 catch_command_errors_const.
3489 (print_gdb_help): Make 'system_gdbinit', 'home_gdbinit' and
3490 'local_gdbinit' locals const.
3492 2013-07-01 Pedro Alves <palves@redhat.com>
3494 * defs.h: Don't check HAVE_UNISTD_H before including <unistd.h>.
3495 (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO): Delete.
3496 * tracepoint.c: Don't check HAVE_UNISTD_H before including
3499 2013-07-01 Pedro Alves <palves@redhat.com>
3501 Import the "unistd" gnulib module.
3502 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add "unistd".
3503 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/off_t.m4,
3504 import/m4/ssize_t.m4, import/m4/sys_types_h.m4 and
3505 import/m4/unistd_h.m4.
3506 * gnulib/aclocal.m4: Renenerate.
3507 * gnulib/config.in: Renenerate.
3508 * gnulib/configure: Renenerate.
3509 * gnulib/import/Makefile.am: Renenerate.
3510 * gnulib/import/Makefile.in: Renenerate.
3511 * gnulib/import/m4/gnulib-cache.m4: Renenerate.
3512 * gnulib/import/m4/gnulib-comp.m4: Renenerate.
3513 * gnulib/import/m4/off_t.m4: New file.
3514 * gnulib/import/m4/ssize_t.m4: New file.
3515 * gnulib/import/m4/sys_types_h.m4: New file.
3516 * gnulib/import/m4/unistd_h.m4: New file.
3517 * gnulib/import/sys_types.in.h: New file.
3518 * gnulib/import/unistd.c: New file.
3519 * gnulib/import/unistd.in.h: New file.
3521 2013-07-01 Pedro Alves <palves@redhat.com>
3523 * utils.c <pathconf/_PC_PATH_MAX use>: Check if _PC_PATH_MAX is
3524 defined instead of checking HAVE_UNISTD_H.
3526 2013-07-01 Pedro Alves <palves@redhat.com>
3528 Reimport gnulib from scratch.
3529 * gnulib/Makefile.in (aclocal_m4_deps): Remove reference to
3530 import/m4/onceonly.m4.
3531 * gnulib/aclocal.m4: Renegerate.
3532 * gnulib/config.in: Renegerate.
3533 * gnulib/configure: Renegerate.
3534 * gnulib/import/Makefile.in: Renegerate.
3535 * gnulib/import/extra/update-copyright: Renegerate.
3536 * gnulib/import/m4/onceonly.m4: Delete.
3538 2013-07-01 Pedro Alves <palves@redhat.com>
3540 * tui/tui-regs.c (pagination_enabled): Delete declaration.
3542 2013-06-30 Jan Kratochvil <jan.kratochvil@redhat.com>
3545 * remote.c (async_remote_interrupt_twice): Make it static.
3546 * remote.h (async_remote_interrupt_twice): Remove the declaration.
3548 2013-06-29 Sergio Durigan Junior <sergiodj@redhat.com>
3550 * ia64-linux-tdep.c: Include <ctype.h>.
3551 (ia64_linux_stap_is_single_operand): New function.
3552 (ia64_linux_init_abi): Initialize SystemTap related attributes.
3554 2013-06-28 Tom Tromey <tromey@redhat.com>
3556 * Makefile.in (version.c): Use version.in, not
3558 * common/create-version.sh: Likewise.
3559 * common/version.in: Move...
3560 * version.in: ...here.
3562 2013-06-28 Pedro Alves <palves@redhat.com>
3564 * infrun.c (set_observer_mode): Don't declare pagination_enabled
3566 * utils.h (pagination_enabled): Declare.
3568 2013-06-28 Pedro Alves <palves@redhat.com>
3570 * infrun.c (non_stop, non_stop_1, set_non_stop, show_non_stop):
3571 Move higher up in file.
3573 2013-06-28 Tom Tromey <tromey@redhat.com>
3575 * tracepoint.c (deprecated_readline_begin_hook)
3576 (deprecated_readline_hook, deprecated_readline_end_hook): Don't
3579 2013-06-28 Pedro Alves <palves@redhat.com>
3582 * tui/tui-regs.c (tui_get_register): Fetch value contents before
3583 checking if they're available.
3584 * value.c (value_available_contents_eq): Change comment.
3585 * value.h (value_available_contents_eq): Expand comment.
3587 2013-06-27 Tom Tromey <tromey@redhat.com>
3589 * target.c (find_run_target): Remove.
3590 * target.h (find_run_target): Remove.
3592 2013-06-27 Tom Tromey <tromey@redhat.com>
3594 * corelow.c (core_gdbarch): Now static.
3596 2013-06-27 Tom Tromey <tromey@redhat.com>
3598 * target.c (target_struct_index): Remove.
3600 2013-06-27 Pedro Alves <palves@redhat.com>
3602 * infrun.c: Remove comment describing the 'stepping over runtime
3603 loader dynamic symbol resolution code' mechanism; moved to
3606 2013-06-27 Pedro Alves <palves@redhat.com>
3608 * exceptions.c (catch_command_errors): Remove spurious space.
3609 * exceptions.h (catch_command_errors): Second parameter is "arg",
3612 2013-06-27 Yao Qi <yao@codesourcery.com>
3614 * common/create-version.sh: Update comments. Handle the case
3615 that TARGET_ALIAS is empty.
3617 2013-06-26 Pedro Alves <palves@redhat.com>
3619 * infrun.c (SOLIB_IN_DYNAMIC_LINKER): Delete macro and describing
3622 2013-06-26 Pedro Alves <palves@redhat.com>
3624 * infrun.c: Update comments on stepping over runtime loader
3625 dynamic symbol resolution code.
3627 2013-06-26 Sergio Durigan Junior <sergiodj@redhat.com>
3629 * ax-gdb.h (union exp_element): Forward declare.
3630 * parser-defs.h: Include expression.h.
3632 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
3634 * mips-tdep.c (fetch_mips_16): Use unmake_compact_addr.
3636 2013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
3638 * tracepoint.c (trace_save): Extend tsave to save starttime, stoptime.
3640 2013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
3642 Fix trace-status to output proper start-time and stop-time.
3643 * tracepoint.c (trace_status_command): Fix type of printf arg to
3644 prevent improper type conversion.
3645 (trace_status_mi): Likewise.
3647 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
3649 * mips-tdep.c (mips_next_pc): Fix a typo.
3651 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
3653 * mips-tdep.c (micromips_scan_prologue): Fix a typo.
3655 2013-06-26 Pedro Alves <pedro@codesourcery.com>
3656 Yao Qi <yao@codesourcery.com>
3658 * mi/mi-cmds.c (mi_cmds): Register -trace-frame-collected.
3659 * mi/mi-cmds.h (mi_cmd_trace_frame_collected): Declare.
3660 * mi/mi-main.c (print_variable_or_computed): New function.
3661 (mi_cmd_trace_frame_collected): New function.
3662 * tracepoint.c (find_trace_state_variable_by_number): New.
3663 (struct traceframe_info): Move to tracepoint.h
3664 (struct collection_list): Likewise.
3665 (do_collect_symbol): Include locals and arguments in the
3666 collected variables list.
3667 (clear_collection_list): Clear wholly collected variables list
3668 and computed variables list.
3669 (append_exp): New function.
3670 (encode_actions_1): Include variables in the wholly
3671 collected variables list. Include memory ranges and
3672 full-fledged expressions in the computed expressions list.
3673 (encode_actions): Move some code to ...
3674 Return the cleanup chain.
3675 (encode_actions_rsp): ... here. New function.
3676 (get_traceframe_location, get_traceframe_info): Remove static.
3677 * tracepoint.h (struct memrange): Moved from tracepoint.c.
3678 (struct collection_list): Moved from tracepoint.c. Add two
3679 new fields 'wholly_collected' and 'computed'.
3680 (find_trace_state_variable_by_number): Declare.
3681 (encode_actions): Adjust declaration.
3682 (encode_actions_rsp): Declare.
3683 (get_traceframe_info, get_traceframe_location): Declare.
3685 * NEWS: Mention new MI command -trace-frame-collected.
3687 2013-06-26 Pedro Alves <pedro@codesourcery.com>
3688 Yao Qi <yao@codesourcery.com>
3690 * ctf.c (ctf_traceframe_info): Push trace state variables
3691 present in the trace data into the traceframe info object.
3692 * breakpoint.c (DEF_VEC_I): Remove.
3693 * common/filestuff.c (DEF_VEC_I): Likewise.
3694 * dwarf2loc.c (DEF_VEC_I): Likewise.
3695 * mi/mi-main.c (DEF_VEC_I): Likewise.
3696 * common/gdb_vecs.h (DEF_VEC_I): Define vector for int.
3697 * features/traceframe-info.dtd: Add tvar element and its
3699 * tracepoint.c (free_traceframe_info): Free vector 'tvars'.
3700 (build_traceframe_info): Push trace state variables present in
3701 the trace data into the traceframe info object.
3702 (traceframe_info_start_tvar): New function.
3703 (tvar_attributes): New.
3704 (traceframe_info_children): Add "tvar" element.
3705 * tracepoint.h (struct traceframe_info) <tvars>: New field.
3707 * NEWS: Mention the change in GDB and GDBserver.
3709 2013-06-26 Pedro Alves <pedro@codesourcery.com>
3710 Yao Qi <yao@codesourcery.com>
3712 * tracepoint.c (trace_dump_command): Move code to ...
3713 (get_traceframe_location): ... here. New.
3715 2013-06-26 Pedro Alves <pedro@codesourcery.com>
3716 Yao Qi <yao@codesourcery.com>
3718 * tracepoint.c (trace_dump_command): GDB emits an error
3719 instead of a warning when a traceframe is not selected.
3721 2013-06-26 Pedro Alves <pedro@codesourcery.com>
3722 Yao Qi <yao@codesourcery.com>
3724 * tracepoint.c (tracepoint_list, stepping_list): Remove.
3725 (clear_collection_list): Free fields 'aexpre_list' and 'list'
3727 (do_clear_collection_list, init_collection_list): New.
3728 (encode_actions): Add local variables 'tracepoint_list' and
3729 'stepping_list'. Call init_collection_list and make cleanup
3730 which calls do_clear_collection_list. Don't call
3731 clear_collection_list.
3732 (_initialize_tracepoint): Delete references to
3733 'tracepoint_list' and 'stepping_list'.
3735 2013-06-25 Tom Tromey <tromey@redhat.com>
3737 * common/create-version.sh (date): Use "$", not "$$" in sed
3740 2013-06-25 Kevin Buettner <kevinb@redhat.com>
3742 * NEWS (New targets): Add entry for TI MSP430.
3744 2013-06-25 Yao Qi <yao@codesourcery.com>
3746 * remote.c (remote_start_remote): Move code to upload tsv
3749 2013-06-25 Yao Qi <yao@codesourcery.com>
3750 Hui Zhu <hui@codesourcery.com>
3751 Pedro Alves <palves@redhat.com>
3753 PR breakpoints/15075
3754 PR breakpoints/15434
3755 * breakpoint.c (bpstat_stop_status): Call
3756 b->ops->after_condition_true.
3757 (update_dprintf_command_list): Don't append "continue" command
3758 to the command list of dprintf breakpoint.
3759 (base_breakpoint_after_condition_true): New function.
3760 (base_breakpoint_ops): Add base_breakpoint_after_condition_true.
3761 (dprintf_after_condition_true): New function.
3762 (initialize_breakpoint_ops): Set dprintf_after_condition_true.
3763 * breakpoint.h (breakpoint_ops): Add after_condition_true.
3765 2013-06-24 Kevin Buettner <kevinb@redhat.com>
3767 * Makefile.in (ALL_TARGET_OBS): Add msp430-tdep.o.
3768 (ALLDEPFILES): Add msp430-tdep.c.
3769 * configure.tgt (msp430*-*-elf): New target.
3770 * msp430-tdep.c: New file.
3772 2013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
3774 * mips-tdep.c (mips_elf_make_msymbol_special): Handle MIPS16 and
3775 microMIPS synthetic symbols.
3777 2013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
3779 * objfiles.h (pc_in_section): New prototype.
3780 (in_plt_section): Remove name argument, replace prototype with
3781 static inline function.
3782 * mips-tdep.h: Include "objfiles.h".
3783 (in_mips_stubs_section): New function.
3784 * hppa-tdep.h (gdbarch_tdep): Remove name argument of
3785 in_solib_call_trampoline member.
3786 (hppa_in_solib_call_trampoline): Remove name argument.
3787 * objfiles.c (pc_in_section): New function.
3788 (in_plt_section): Remove function.
3789 * mips-linux-tdep.c: Include "objfiles.h".
3790 (mips_linux_in_dynsym_stub): Call in_mips_stubs_section. Remove
3791 name argument. Return 1 rather than the low 16-bit halfword of
3792 any instruction examined.
3793 (mips_linux_in_dynsym_resolve_code): Update
3794 mips_linux_in_dynsym_stub call accordingly.
3795 * mips-tdep.c (mips_stub_frame_sniffer): Use in_mips_stubs_section
3796 rather than an equivalent hand-coded sequence.
3797 * hppa-hpux-tdep.c (in_opd_section): Remove function.
3798 (hppa32_hpux_in_solib_call_trampoline): Remove name argument.
3799 (hppa64_hpux_in_solib_call_trampoline): Likewise.
3800 (hppa64_hpux_find_global_pointer): Use pc_in_section rather than
3802 * hppa-tdep.c (hppa_stub_unwind_sniffer): Remove name argument
3803 on call to tdep->in_solib_call_trampoline.
3804 (hppa_in_solib_call_trampoline): Remove name argument, update
3805 according to in_plt_section change.
3806 (hppa_skip_trampoline_code): Update according to in_plt_section
3808 * aarch64-tdep.c (aarch64_stub_unwind_sniffer): Likewise.
3809 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code):
3811 * arm-tdep.c (arm_stub_unwind_sniffer): Likewise.
3812 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
3813 * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise.
3814 * nios2-tdep.c (nios2_stub_frame_sniffer): Likewise.
3815 * nto-tdep.c (nto_relocate_section_addresses): Likewise.
3816 * s390-tdep.c (s390_stub_frame_sniffer): Likewise.
3817 * sh-tdep.c (sh_stub_unwind_sniffer): Likewise.
3818 * solib-dsbt.c (dsbt_in_dynsym_resolve_code): Likewise.
3819 * solib-frv.c (frv_in_dynsym_resolve_code): Likewise.
3820 * solib-svr4.c (svr4_in_dynsym_resolve_code): Likewise.
3821 * solib-target.c (solib_target_in_dynsym_resolve_code): Likewise.
3822 * sparc-tdep.c (sparc_analyze_prologue): Likewise.
3823 * tic6x-tdep.c (tic6x_stub_unwind_sniffer): Likewise.
3825 2013-06-24 Joel Brobecker <brobecker@adacore.com>
3827 * common/create-version.sh: Fix expansion of $host_alias
3828 and $target_alias in generation of HOST_NAME and TARGET_NAME
3831 2013-06-24 Tom Tromey <tromey@redhat.com>
3833 * common/create-version.sh: New file.
3834 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
3836 (HFILES_NO_SRCDIR): Use common/version.h.
3837 * version.in: Move to ...
3838 * common/version.in: ... here. Replace date with "DATE".
3839 * version.h: Move to ...
3840 * common/version.h: ... here.
3842 2013-06-21 Joel Brobecker <brobecker@adacore.com>
3844 * gdb/gnulib/Makefile.in: Update date in copyright header.
3845 * gdb/gnulib/configure.ac: Ditto.
3846 * gdb/gnulib/update-gnulib.sh: Ditto.
3848 2013-06-21 Joel Brobecker <brobecker@adacore.com>
3850 * copyright.py (EXCLUDE_LIST): Replace "gdb/gnulib" by
3851 "gdb/gnulib/import".
3853 2013-06-21 Will Newton <will.newton@linaro.org>
3855 * doublest.c (ldfrexp): Remove function.
3856 (convert_doublest_to_floatformat): Call frexpl instead of
3859 2013-06-21 Will Newton <will.newton@linaro.org>
3861 * gnulib/update-gnulib.sh(IMPORTED_GNULIB_MODULES): Add frexpl.
3862 * gnulib/aclocal.m4: Regenerate.
3863 * gnulib/config.in: Regenerate.
3864 * gnulib/configure: Regenerate.
3865 * gnulib/import/Makefile.am: Update.
3866 * gnulib/import/Makefile.in: Update.
3867 * gnulib/import/m4/gnulib-cache.m4: Update.
3868 * gnulib/import/m4/gnulib-comp.m4: Update.
3869 * gnulib/import/float+.h: Import.
3870 * gnulib/import/float.c: Import.
3871 * gnulib/import/float.in.h: Import.
3872 * gnulib/import/fpucw.h: Import.
3873 * gnulib/import/frexp.c: Import.
3874 * gnulib/import/frexpl.c: Import.
3875 * gnulib/import/isnan.c: Import.
3876 * gnulib/import/isnand-nolibm.h: Import.
3877 * gnulib/import/isnand.c: Import.
3878 * gnulib/import/isnanl-nolibm.h: Import.
3879 * gnulib/import/isnanl.c: Import.
3880 * gnulib/import/itold.c: Import.
3881 * gnulib/import/m4/exponentd.m4: Import.
3882 * gnulib/import/m4/exponentl.m4: Import.
3883 * gnulib/import/m4/float_h.m4: Import.
3884 * gnulib/import/m4/fpieee.m4: Import.
3885 * gnulib/import/m4/frexp.m4: Import.
3886 * gnulib/import/m4/frexpl.m4: Import.
3887 * gnulib/import/m4/isnand.m4: Import.
3888 * gnulib/import/m4/isnanl.m4: Import.
3889 * gnulib/import/m4/math_h.m4: Import.
3890 * gnulib/import/math.c: Import.
3891 * gnulib/import/math.in.h: Import.
3893 2013-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3895 * common/linux-btrace.c (cpu_supports_btrace): Remove variable vendor,
3896 replace strcmp with signature_INTEL_ebx, signature_INTEL_ecx and
3897 signature_INTEL_edx comparisons.
3899 2013-06-20 Doug Evans <dje@google.com>
3902 * dwarf2read.c (try_open_dwop_file): New arg search_cwd.
3903 All callers updated.
3904 (open_dwp_file): If we can't find the dwp file, search the basename
3905 in debug-file-directory.
3907 * dwarf2read.c (struct dwp_file): Fix comment.
3908 (open_and_init_dwp_file): Set dwp_file->name to bfd's file name.
3910 * source.c (openp): Document OPF_TRY_CWD_FIRST+OPF_SEARCH_IN_PATH
3913 2013-06-20 Yao Qi <yao@codesourcery.com>
3915 * breakpoint.c (create_breakpoint): Fix code indentation.
3917 2013-06-20 Yao Qi <yao@codesourcery.com>
3919 * breakpoint.c (create_breakpoints_sal_default): Remove
3920 parameter 'lsal'. Update declaration.
3921 (bkpt_create_breakpoints_sal): Caller update.
3922 (tracepoint_create_breakpoints_sal): Likewise.
3924 2013-06-20 Pedro Alves <pedro@codesourcery.com>
3925 Yao Qi <yao@codesourcery.com>
3927 * NEWS: Mention the new option '--skip-unavailable' of command
3928 -data-list-register-values.
3929 * mi/mi-main.c (mi_cmd_data_list_register_values): Accept the
3930 --skip-unavailable option. Adjust to use output_register.
3931 (output_register): Add new 'skip_unavailable' parameter.
3934 2013-06-19 Mike Frysinger <vapier@gentoo.org>
3936 * Makefile.in (HFILES_NO_SRCDIR): Add common/i386-cpuid.h and
3937 common/i386-gcc-cpuid.h.
3938 * common/i386-cpuid.h: New wrapper header around i386-gcc-cpuid.h.
3939 * common/i386-gcc-cpuid.h: Rename from testsuite/gdb.arch/i386-cpuid.h.
3940 Copy the latest version from upstream gcc.
3941 * common/linux-btrace.c: Include i386-cpuid.h.
3942 (intel_supports_btrace): Delete x86 ifdefs and replace inline asm with
3944 (cpu_supports_btrace): Likewise.
3945 * go32-nat.c: Include i386-cpuid.h.
3946 (go32_sysinfo): Add (disabled) calls to i386_cpuid with comments.
3948 2013-06-19 Doug Evans <dje@google.com>
3950 * symfile.c (symfile_bfd_open): Delete unnecessary declaration.
3951 (get_section_index): Ditto.
3953 2013-06-19 Tom Tromey <tromey@redhat.com>
3955 * breakpoint.c (_initialize_breakpoint): Remove trailing \n from
3958 2013-06-18 Doug Evans <dje@google.com>
3960 * dwarf2read.c (dw2_symtab_iter_next): Check value of cu_index
3962 (dw2_expand_symtabs_matching): Fix symbol kind validity check.
3963 Move test of cu_index closer to use. Print complaint if cu_index
3966 2013-06-18 Joel Brobecker <brobecker@adacore.com>
3968 * machoread.c (oso_vector): Delete this global.
3969 (macho_register_oso): Add new parameter "oso_vector_ptr".
3970 Use it instead of the "oso_vector" global.
3971 (macho_symtab_read, macho_symfile_read_all_oso): Likewise.
3972 (macho_symfile_read): Use a local oso_vector, to be free'ed
3973 at the end of this function, in place of the old "oso_vector"
3974 global. Update various function calls accordingly. Use one
3975 single cleanup chain for the entire function.
3977 2013-06-18 Joel Brobecker <brobecker@adacore.com>
3979 * dwarf2read.c (dwarf2_per_objfile_free): Replace uses of
3980 DWARF2_PER_OBJFILE by uses of DATA instead.
3982 2013-06-18 Tom Tromey <tromey@redhat.com>
3984 * break-catch-sig.c (signal_catchpoint_explains_signal): Add 'sig'
3986 * breakpoint.c (bpstat_explains_signal): Add 'sig' argument.
3987 Special case signals other than GDB_SIGNAL_TRAP.
3988 (explains_signal_watchpoint): New function.
3989 (base_breakpoint_explains_signal): Add 'sig' argument.
3990 (initialize_breakpoint_ops): Set 'explains_signal' method for
3992 * breakpoint.h (struct breakpoint_ops) <explains_signal>: Add
3994 (bpstat_explains_signal): Likewise.
3995 * infrun.c (handle_syscall_event, handle_inferior_event): Update.
3997 2013-06-18 Tom Tromey <tromey@redhat.com>
3999 * python/py-inferior.c (gdbpy_selected_inferior): Don't incref.
4001 2013-06-18 Tom Tromey <tromey@redhat.com>
4003 * python/python.c (finish_python_initialization): Decref
4004 'pythondir' on failure path as well.
4006 2013-06-18 Tom Tromey <tromey@redhat.com>
4009 * dwarf2loc.c (read_pieced_value): Truncate this_size_bits
4010 after taking bits_to_skip into account. Sign extend byte_offset.
4011 * utils.h (gdb_sign_extend): Declare.
4012 * utils.c (gdb_sign_extend): New function.
4014 2013-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4016 * dwarf2read.c (write_psymtabs_to_index): Ignore NULL PSYMTAB.
4018 2013-06-17 Pierre Muller <muller@sourceware.org>
4020 * corelow.c (core_open): Print GDB signal name instead of target
4023 2013-06-17 Mike Frysinger <vapier@gentoo.org>
4025 * .gitignore: Add /gcore.
4027 2013-06-13 Doug Evans <dje@google.com>
4029 * dwarf2read.c (try_open_dwop_file): Work around behaviour of
4030 OPF_TRY_CWD_FIRST to not search path if the file contains a '/'.
4032 2013-06-12 Phil Muldoon <pmuldoon@redhat.com>
4034 * stack.c (backtrace_command_1): Fix indentation.
4036 2013-06-11 Joel Brobecker <brobecker@adacore.com>
4038 * window-nat.c (thread_rec): Add missing empty line after
4039 local variable declaration.
4041 2013-06-11 Joel Brobecker <brobecker@adacore.com>
4043 * windows-nat.c (thread_rec): Revert format used to print
4044 error code returned by SuspendThread from %d back to %u.
4046 2013-06-11 Joel Brobecker <brobecker@adacore.com>
4048 * windows-nat.c (windows_continue): Add "0x" prefix for thread
4050 (get_windows_debug_event): Likewise, for all debug traces.
4052 2013-06-11 Joel Brobecker <brobecker@adacore.com>
4054 * window-nat.c (thread_rec): Add thread ID in SuspendThread
4057 2013-06-08 Pedro Alves <pedro@codesourcery.com>
4058 Yao Qi <yao@codesourcery.com>
4060 * mi/mi-main.c (get_register): Remove declaration.
4061 (output_register): Declare.
4062 (mi_cmd_data_list_register_values): Remove local variable
4063 'tuple_cleanup'. Move some code into output_register.
4064 (get_register): Renamed to ...
4065 (output_register): ... this. Output the register's
4066 "number" ui_out tuple here.
4068 2013-06-07 Pedro Alves <palves@redhat.com>
4070 * darwin-nat.c: Fix formating in copyright header.
4071 * darwin-nat.h: Likewise.
4072 * gnu-nat.c: Likewise.
4073 * machoread.c: Likewise.
4075 2013-06-07 Pedro Alves <palves@redhat.com>
4078 * regformats/regdat.sh: Output #include tdesc.h. Make globals
4079 static. Output a global target description pointer.
4080 (init_registers_${name}): Adjust to initialize a
4081 target description structure.
4083 2013-06-07 Will Newton <will.newton@linaro.org>
4085 * printcmd.c (build_address_symbolic): Call
4086 gdbarch_addr_bits_remove for text minimal symbols.
4088 2013-06-07 Will Newton <will.newton@linaro.org>
4090 * MAINTAINERS: Add myself to Write After Approval.
4092 2013-06-07 Yao Qi <yao@codesourcery.com>
4094 * tracepoint.c (start_tracing): Move code to ...
4095 (trace_reset_local_state): ... here. New.
4096 (disconnect_tracing): Don't call set_current_traceframe,
4097 set_tracepoint_num, and set_traceframe_context. Call
4098 trace_reset_local_state instead.
4099 (tfile_close): Call trace_reset_local_state.
4100 * ctf.c (ctf_close): Likewise.
4101 * remote.c (remote_close): Likewise.
4102 * tracepoint.h (trace_reset_local_state): Declare.
4104 2013-06-06 Doug Evans <dje@google.com>
4106 * dwarf2read.c: Whitespace fixes for DWP file format documentation,
4107 and fix header docs.
4109 2013-06-05 Doug Evans <dje@google.com>
4110 Keith Seitz <keiths@redhat.com>
4113 * cp-namespace.c (find_symbol_in_baseclass): Call
4114 cp_lookup_symbol_in_namespace instead of cp_lookup_symbol_namespace.
4115 Check result of call to lookup_symbol_static.
4116 Call lookup_static_symbol_aux unconditionally.
4117 Call check_typedef on base types before accessing them.
4118 (cp_lookup_nested_symbol): Fix comment.
4120 2013-06-05 Luis Machado <lgustavo@codesourcery.com>
4122 * gnu-v3-abi.c (gnuv3_skip_trampoline): Handle thunk
4123 minimal symbols pointing to function descriptors.
4125 2013-06-05 Tom Tromey <tromey@redhat.com>
4127 * python/py-utils.c (gdb_pymodule_addobject): Cast away const.
4129 2013-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
4130 Pedro Alves <palves@redhat.com>
4132 * remote.c (remote_wait_as): Restore signal handler before returning
4133 when GDB gets a notification.
4135 2013-06-04 Gary Benson <gbenson@redhat.com>
4138 * breakpoint.h (handle_solib_event): Moved function declaration
4140 * breakpoint.c (handle_solib_event): Moved function to solib.c.
4141 (bpstat_stop_status): Pass new argument to handle_solib_event.
4142 * solib.h (update_solib_breakpoints): New function declaration.
4143 (handle_solib_event): Moved function declaration from
4145 * solib.c (update_solib_breakpoints): New function.
4146 (handle_solib_event): Moved function from breakpoint.c.
4147 Updated to call solib_ops->handle_event if not NULL.
4148 * solist.h (target_so_ops): New fields "update_breakpoints" and
4150 * infrun.c (set_stop_on_solib_events): New function.
4151 (_initialize_infrun): Use the above for "set
4152 stop-on-solib-events".
4153 (handle_inferior_event): Pass new argument to handle_solib_event.
4154 * solib-svr4.c (probe.h): New include.
4155 (svr4_free_library_list): New forward declaration.
4156 (probe_action): New enum.
4157 (probe_info): New struct.
4158 (probe_info): New static variable.
4159 (NUM_PROBES): New definition.
4160 (svr4_info): New fields "using_xfer", "probes_table" and
4162 (free_probes_table): New function.
4163 (free_solib_list): New function.
4164 (svr4_pspace_data_cleanup): Free probes table and solib list.
4165 (svr4_copy_library_list): New function.
4166 (svr4_current_sos_via_xfer_libraries): New parameter "annex".
4167 (svr4_read_so_list): New parameter "prev_lm".
4168 (svr4_current_sos_direct): Renamed from "svr4_current_sos".
4169 (svr4_current_sos): New function.
4170 (probe_and_action): New struct.
4171 (hash_probe_and_action): New function.
4172 (equal_probe_and_action): Likewise.
4173 (register_solib_event_probe): Likewise.
4174 (solib_event_probe_at): Likewise.
4175 (solib_event_probe_action): Likewise.
4176 (solist_update_full): Likewise.
4177 (solist_update_incremental): Likewise.
4178 (disable_probes_interface_cleanup): Likewise.
4179 (svr4_handle_solib_event): Likewise.
4180 (svr4_update_solib_event_breakpoint): Likewise.
4181 (svr4_update_solib_event_breakpoints): Likewise.
4182 (svr4_create_solib_event_breakpoints): Likewise.
4183 (enable_break): Free probes table before creating breakpoints.
4184 Use svr4_create_solib_event_breakpoints to create breakpoints.
4185 (svr4_solib_create_inferior_hook): Free the solib list.
4186 (_initialize_svr4_solib): Initialise
4187 svr4_so_ops.handle_solib_event and svr4_so_ops.update_breakpoints.
4189 2013-06-04 Gary Benson <gbenson@redhat.com>
4191 * target.h (target_ops): New field
4192 "to_augmented_libraries_svr4_read".
4193 (target_augmented_libraries_svr4_read): New macro.
4194 * target.c (update_current_target): Handle
4195 to_augmented_libraries_svr4_read.
4196 * remote.c (remote_state): New field
4197 "augmented_libraries_svr4_read".
4198 (remote_augmented_libraries_svr4_read_feature): New function.
4199 (remote_protocol_features): Add entry for
4200 "augmented-libraries-svr4-read".
4201 (remote_augmented_libraries_svr4_read): New function.
4202 (init_remote_ops): Initialize
4203 remote_ops.to_augmented_libraries_svr4_read.
4205 2013-06-04 Gary Benson <gbenson@redhat.com>
4209 2013-06-04 Gary Benson <gbenson@redhat.com>
4211 * objfiles.h (inhibit_section_map_updates): New function
4213 (resume_section_map_updates): Likewise.
4214 (resume_section_map_updates_cleanup): Likewise.
4215 * objfiles.c (objfile_pspace_info): Removed field
4216 "objfiles_changed_p". New fields "new_objfiles_available",
4217 "section_map_dirty" and "inhibit_updates".
4218 (allocate_objfile): Set new_objfiles_available.
4219 (free_objfile): Set section_map_dirty.
4220 (objfile_relocate1): Likewise.
4221 (in_plt_section): Likewise.
4222 (find_pc_section): Update the conditions under which the
4223 section map will be updated.
4224 (inhibit_section_map_updates): New function.
4225 (resume_section_map_updates): Likewise.
4226 (resume_section_map_updates_cleanup): Likewise.
4228 2013-06-04 Gary Benson <gbenson@redhat.com>
4230 * probe.h (get_probe_argument_count): New declaration.
4231 (evaluate_probe_argument): Likewise.
4232 * probe.c (get_probe_argument_count): New function.
4233 (evaluate_probe_argument): Likewise.
4234 (probe_safe_evaluate_at_pc): Use the above new functions.
4236 2013-06-04 Alan Modra <amodra@gmail.com>
4238 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
4239 * rs6000-tdep.c (read_insn): Add frame param, don't assume big-endian.
4240 (ppc_insns_match_pattern): Add frame param. Avoid multiple
4241 target mem reads on optional insns.
4242 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Update
4243 ppc_insns_match_pattern calls.
4244 * ppc64-tdep.c (ppc64_standard_linkage2, ppc64_standard_linkage3):
4245 Add match for power7 thread safety insns, and new order of
4246 std 2,40(1) insn. Correct code shown for _dl_runtime_resolve
4247 invocation in comment, and update rest of comment.
4248 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN,
4249 PPC64_STANDARD_LINKAGE3_LEN): Delete.
4250 (ppc64_standard_linkage2_target): Update insn offsets.
4251 (ppc64_skip_trampoline_code): Use a single insn buffer. Match newer
4252 stubs first. Update calls.
4254 2013-06-04 Yao Qi <yao@codesourcery.com>
4256 * solib.c (solib_find): Don't need dir separator if path has
4259 2013-06-03 Joel Brobecker <brobecker@adacore.com>
4261 Revert (indirectly causes a SIGSEGV):
4262 * machoread.c (macho_symfile_read): Assign first cleanup to
4265 2013-06-03 Yao Qi <yao@codesourcery.com>
4267 * mi/mi-cmd-var.c (mi_no_values, mi_simple_values): Move to
4268 mi-parse.c. Make them static.
4269 (mi_all_values): Likewise.
4270 (mi_parse_values_option): Move to mi-parse.c. Rename it to
4271 mi_parse_print_values. Make it external.
4272 * mi/mi-cmds.h (mi_no_values, mi_simple_values, mi_all_values):
4273 Remove the declarations.
4274 * mi/mi-parse.c (mi_parse_print_values): Moved from mi-cmd-var.c.
4275 * mi/mi-parse.h (mi_parse_print_values): Declare.
4276 * mi/mi-cmd-stack.c: Include mi-parse.h.
4277 (parse_print_values): Remove
4278 (mi_cmd_stack_list_locals): Call mi_parse_print_values instead
4279 of parse_print_values.
4280 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Likewise.
4282 2013-05-31 Pedro Alves <pedro@codesourcery.com>
4283 Yao Qi <yao@codesourcery.com>
4285 * tracepoint.c (all_tracepoint_actions_and_cleanup): Declare.
4286 (encode_actions): Move code to ...
4287 (all_tracepoint_actions_and_cleanup): ... here. New.
4288 (trace_dump_command): Likewise.
4290 2013-05-30 Tom Tromey <tromey@redhat.com>
4292 * symmisc.c (maintenance_expand_symtabs): Call do_cleanups.
4294 2013-05-30 Tom Tromey <tromey@redhat.com>
4296 * xml-support.c (gdb_xml_create_parser_and_cleanup): Rename from
4297 gdb_xml_create_parser_and_cleanup_1. Return a cleanup. Remove
4298 'old_chain' argument. Add 'parser_result' argument.
4299 (gdb_xml_create_parser_and_cleanup): Remove old version.
4300 (gdb_xml_parse_quick): Update.
4301 (xml_process_xincludes): Update.
4302 * xml-support.h (gdb_xml_create_parser_and_cleanup): Don't
4305 2013-05-30 Tom Tromey <tromey@redhat.com>
4307 * probe.c (collect_probes): Check arguments for NULL before
4308 calling compile_rx_or_error.
4309 * utils.c (compile_rx_or_error): Require 'rx' to be non-NULL.
4312 2013-05-30 Tom Tromey <tromey@redhat.com>
4314 * infrun.c (adjust_pc_after_break): Introduce an outer null
4317 2013-05-30 Tom Tromey <tromey@redhat.com>
4319 * mi/mi-cmd-var.c (varobj_update_one): Add an outer null cleanup.
4321 2013-05-30 Tom Tromey <tromey@redhat.com>
4323 * cli/cli-script.c (read_command_lines_1): Use a null cleanup
4324 for 'old_chain'. Do not check 'head' before processing
4327 2013-05-30 Tom Tromey <tromey@redhat.com>
4329 * mi/mi-cmd-stack.c (list_arg_or_local): Remove
4332 2013-05-30 Tom Tromey <tromey@redhat.com>
4334 * dbxread.c (dbx_read_symtab): Declare 'back_to' in a more
4335 inner scope. Unconditionally call do_cleanups.
4337 2013-05-30 Tom Tromey <tromey@redhat.com>
4339 * source.c (find_and_open_source): Call do_cleanups.
4341 2013-05-30 Tom Tromey <tromey@redhat.com>
4343 * linux-thread-db.c (thread_db_load_search): Unconditionally
4346 2013-05-30 Tom Tromey <tromey@redhat.com>
4348 * solib-aix.c (solib_aix_bfd_open): Don't use a null cleanup
4349 for 'cleanup'; instead use a later one.
4351 2013-05-30 Tom Tromey <tromey@redhat.com>
4353 * python/py-breakpoint.c (bppy_get_commands): Use
4354 explicit, unconditional return.
4355 * python/py-frame.c (frapy_read_var): Likewise.
4356 * python/python.c (gdbpy_decode_line): Likewise.
4358 2013-05-30 Tom Tromey <tromey@redhat.com>
4360 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Call
4361 do_cleanups on all return paths.
4363 2013-05-30 Tom Tromey <tromey@redhat.com>
4365 * top.c (execute_command): Discard 'cleanup_if_error' cleanups.
4367 2013-05-30 Tom Tromey <tromey@redhat.com>
4369 * stabsread.c (read_struct_type): Call do_cleanups along
4372 2013-05-30 Maciej W. Rozycki <macro@codesourcery.com>
4374 * mips-linux-tdep.c: Adjust formatting throughout.
4376 2013-05-30 Tom Tromey <tromey@redhat.com>
4378 * mipsread.c (read_alphacoff_dynamic_symtab): Call do_cleanups
4379 along all return paths.
4381 2013-05-30 Tom Tromey <tromey@redhat.com>
4383 * symfile.c (find_separate_debug_file): Call do_cleanups
4384 along all return paths.
4386 2013-05-30 Tom Tromey <tromey@redhat.com>
4388 * symtab.c (search_symbols): Introduce a null cleanup for
4391 2013-05-30 Tom Tromey <tromey@redhat.com>
4393 * python/py-value.c (valpy_binop): Call do_cleanups before
4396 2013-05-30 Tom Tromey <tromey@redhat.com>
4398 * python/py-prettyprint.c (print_children): Remove extra
4401 2013-05-30 Tom Tromey <tromey@redhat.com>
4403 * python/py-frame.c (frapy_read_var): Call do_cleanups along
4406 2013-05-30 Tom Tromey <tromey@redhat.com>
4408 * python/py-breakpoint.c (bppy_get_commands): Call do_cleanups
4409 along all return paths.
4411 2013-05-30 Tom Tromey <tromey@redhat.com>
4413 * cli/cli-logging.c (set_logging_redirect): Unconditionally
4416 2013-05-30 Tom Tromey <tromey@redhat.com>
4418 * varobj.c (c_value_of_root): Call do_cleanups along all
4421 2013-05-30 Tom Tromey <tromey@redhat.com>
4423 * tracepoint.c (trace_dump_command): Unconditionally call
4426 2013-05-30 Tom Tromey <tromey@redhat.com>
4428 * breakpoint.c (output_thread_groups, parse_cmd_to_aexpr): Call
4429 do_cleanups earlier.
4431 2013-05-30 Tom Tromey <tromey@redhat.com>
4433 * machoread.c (macho_symfile_read): Assign first cleanup to
4436 2013-05-30 Tom Tromey <tromey@redhat.com>
4438 * m32r-rom.c (m32r_load): Call do_cleanups at all returns.
4440 2013-05-30 Tom Tromey <tromey@redhat.com>
4442 * mi/mi-main.c (list_available_thread_groups): Call do_cleanups.
4444 2013-05-30 Tom Tromey <tromey@redhat.com>
4446 * inf-ptrace.c (inf_ptrace_create_inferior): Unconditionally
4447 call discard_cleanups.
4448 (inf_ptrace_attach): Likewise.
4450 2013-05-30 Tom Tromey <tromey@redhat.com>
4452 * remote-mips.c (mips_exit_debug): Call do_cleanups on all
4454 (mips_initialize): Likewise.
4455 (common_open): Call do_cleanups.
4457 2013-05-30 Tom Tromey <tromey@redhat.com>
4459 * utils.c (internal_vproblem): Call do_cleanups.
4461 2013-05-30 Tom Tromey <tromey@redhat.com>
4463 * linespec.c (find_linespec_symbols): Don't reassign to 'cleanup'.
4465 2013-05-30 Tom Tromey <tromey@redhat.com>
4467 * cli/cli-script.c (setup_user_args): Don't return after error.
4469 2013-05-30 Tom Tromey <tromey@redhat.com>
4471 * somread.c (som_symtab_read): Call do_cleanups.
4473 2013-05-30 Tom Tromey <tromey@redhat.com>
4475 * printcmd.c (print_command_1): Unconditionally call do_cleanups.
4477 2013-05-30 Tom Tromey <tromey@redhat.com>
4479 * cli/cli-cmds.c (cd_command, alias_command): Call do_cleanups.
4480 * cli/cli-dump.c (restore_binary_file): Call do_cleanups.
4481 * interps.c (interpreter_exec_cmd): Call do_cleanups.
4482 * source.c (show_substitute_path_command): Call do_cleanups.
4483 (unset_substitute_path_command, set_substitute_path_command):
4485 * symfile.c (load_command): Call do_cleanups.
4487 2013-05-30 Tom Tromey <tromey@redhat.com>
4489 * contrib/cleanup_check.py: New file.
4490 * contrib/gcc-with-excheck: Add option parsing.
4492 2013-05-30 Joel Brobecker <brobecker@adacore.com>
4494 * windows-nat.c (windows_delete_thread): Add missing space
4497 2013-05-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
4499 * inferior.c (top level): Include tilde.h.
4500 (add_inferior_command): Call tilde_expand on the value of 'exec'
4503 2013-05-30 Pedro Alves <pedro@codesourcery.com>
4504 Yao Qi <yao@codesourcery.com>
4506 * tracepoint.c (encode_actions_1): Remove parameter 't'.
4508 (encode_actions): Likewise.
4509 * remote.c (remote_download_tracepoint): Caller update.
4510 * tracepoint.h (encode_actions): Update declaration.
4512 2013-05-30 Pedro Alves <palves@redhat.com>
4514 * python/python-internal.h (gdb_Py_DECREF): Cast OP to PyObject
4517 2013-05-30 Yao Qi <yao@codesourcery.com>
4519 * remote.c (remote_check_symbols): Remove unused parameter
4522 (remote_start_remote, remote_new_objfile): Caller update.
4524 2013-05-30 Yao Qi <yao@codesourcery.com>
4526 * mi/mi-cmds.c (mi_cmds): Define MI command
4527 '-exec-arguments' by macro DEF_MI_CMD_CLI_1 instead of
4530 2013-05-29 Pedro Alves <palves@redhat.com>
4532 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint)
4533 (remote_insert_watchpoint, remote_remove_watchpoint)
4534 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
4535 (remote_verify_memory, compare_sections_command)
4536 (remote_search_memory): Set the general process/thread on the
4539 2013-05-29 Pedro Alves <palves@redhat.com>
4541 * aarch64-tdep.c: Don't include "features/aarch64-without-fpu.c".
4542 (_initialize_aarch64_tdep): Don't call
4543 initialize_tdesc_aarch64_without_fpu.
4544 * features/Makefile (WHICH): Remove reference to
4545 aarch64-without-fpu.
4546 * features/aarch64-without-fpu.c: Delete file.
4547 * regformats/aarch64-without-fpu.dat: Delete file.
4549 2013-05-28 Yao Qi <yao@codesourcery.com>
4551 * tracepoint.c (stringify_collection_list): Remove parameter
4553 (encode_actions): Caller update. Remove local variables.
4555 2013-05-24 Yao Qi <yao@codesourcery.com>
4557 * tracepoint.c (TFILE_PID): Remove.
4558 (tfile_open): Don't add thread and inferior.
4559 (tfile_close): Don't set 'inferior_ptid'. Don't call
4560 exit_inferior_silent.
4561 (tfile_thread_alive): Remove.
4562 (init_tfile_ops): Don't set field 'to_thread_alive' of
4565 2013-05-23 Doug Evans <dje@google.com>
4567 * contrib/cc-with-tweaks.sh (-p): Handle no dwo files.
4569 2013-05-23 Pedro Alves <palves@redhat.com>
4571 * common/filestuff.c [USE_WIN32API]: Define HAVE_SOCKETS.
4572 [HAVE_SYS_SOCKET_H]: Define HAVE_SOCKETS.
4573 (socket_mark_cloexec, gdb_socketpair_cloexec, gdb_socket_cloexec):
4574 Only define if HAVE_SOCKETS is defined.
4575 * configure.ac: Check for sys/socket.h.
4576 * config.in, configure: Regenerate.
4578 2013-05-23 Pedro Alves <palves@redhat.com>
4580 * dwarf2read.c (create_dwp_hash_table, create_dwo_in_dwp)
4581 (open_and_init_dwp_file): Use %s/pulongest instead of %u for
4582 printing uint32_t variables.
4584 2013-05-23 Pedro Alves <palves@redhat.com>
4586 * NEWS: Mention GDBserver range stepping support.
4588 2013-05-23 Yao Qi <yao@codesourcery.com>
4589 Pedro Alves <palves@redhat.com>
4591 * gdbthread.h (struct thread_control_state) <may_range_step>: New
4593 * infcmd.c (step_once, until_next_command): Enable range stepping.
4594 * infrun.c (displaced_step_prepare): Disable range stepping.
4595 (resume): Disable range stepping if stepping over a breakpoint or
4596 we have software watchpoints. If range stepping is enabled,
4597 assert the thread is in the stepping range.
4598 (clear_proceed_status_thread): Clear may_range_step.
4599 (handle_inferior_event): Disable range stepping as soon as we know
4600 the thread that hit the event. Re-enable it whenever we're going
4601 to step with a step range.
4602 * remote.c (struct vCont_action_support) <r>: New field.
4603 (use_range_stepping): New global.
4604 (remote_vcont_probe): Handle 'r' action.
4605 (append_resumption): Append an 'r' action if the thread may range
4607 (show_range_stepping): New function.
4608 (set_range_stepping): New function.
4609 (_initialize_remote): Call add_setshow_boolean_cmd to register the
4610 'set range-stepping' and 'show range-stepping' commands.
4611 * NEWS: Mention range stepping, the new vCont;r action, and the
4612 new "set/show range-stepping" commands.
4614 2013-05-23 Yao Qi <yao@codesourcery.com>
4615 Pedro Alves <palves@redhat.com>
4617 * remote.c (struct vCont_action_support): New struct.
4618 (struct remote_state) <support_vCont_t>: Remove field.
4619 <vCont_actions_support>: New field.
4620 (remote_vcont_probe, remote_stop_ns): Update.
4622 2013-05-23 Yao Qi <yao@codesourcery.com>
4623 Pedro Alves <palves@redhat.com>
4625 * gdbthread.h (pc_in_thread_step_range): New declaration.
4626 * thread.c (pc_in_thread_step_range): New function.
4627 * infrun.c (handle_inferior_event): Use it.
4629 2013-05-23 Joel Brobecker <brobecker@adacore.com>
4631 * mi/mi-cmd-break.c (mi_argv_to_format): Use xsnprintf instead
4634 2013-05-22 Keith Seitz <keiths@redhat.com>
4636 * ada-lang.c (is_known_support_routine): Add explicit free of
4637 'func_name' from find_frame_funname.
4638 (ada_unhandled_exception_name_addr_from_raise): Add cleanups
4639 for func_name from find_frame_funname.
4640 * python/py-frame.c (frapy_name): Add explicit free of
4641 'name' from find_frame_funname.
4642 * stack.c (find_frame_funname): Add comment explaining that
4643 funcp must be freed by the caller.
4644 Return copy of symbol names instead of pointers.
4645 (print_frame): Add a cleanup for 'funname' from
4647 * stack.h (find_frame_funname): Remove "const" from
4648 'funname' parameter.
4650 2013-05-22 Tom Tromey <tromey@redhat.com>
4653 * c-valprint.c (c_value_print): Use value_addr for
4654 references. Convert back to reference type with value_ref.
4656 2013-05-22 Eli Zaretskii <eliz@gnu.org>
4658 * windows-nat.c (handle_unload_dll): Don't call solib_add for the
4659 unloaded DLL, it will be done by handle_solib_event. See
4660 http://sourceware.org/ml/gdb-patches/2013-05/msg00713.html for the
4663 2013-05-22 Phil Muldoon <pmuldoon@redhat.com>
4665 * ui-out.c: Create typedef ui_out_level_p and define vector
4666 operations for that type.
4667 (struct ui_out): Use a vector instead of an array.
4668 (current_level): Return level from a vector.
4669 (push_level): Create a level in a vector.
4670 (pop_level): Delete a level in a vector.
4671 (ui_out_new): Create initial level zero level, and store in a
4673 (ui_out_destroy): Add vector cleanup.
4675 2013-05-22 Pedro Alves <palves@redhat.com>
4677 * python/python-internal.h (gdb_Py_DECREF): Tag with
4678 "ARI: editCase function".
4680 2013-05-21 Paul Pluzhnikov <ppluzhnikov@google.com>
4682 * solib-svr4.c (svr4_free_so): Protect against NULL dereference.
4684 2013-05-21 Pedro Alves <palves@redhat.com>
4686 * python/py-prettyprint.c (apply_val_pretty_printer): Check
4687 whether PRINTER is NULL before installing a Py_DECREF cleanup.
4688 * python/py-utils.c (py_decref): Don't check for NULL before
4691 2013-05-21 Pedro Alves <palves@redhat.com>
4693 * python/py-utils.c (py_decref): Remove extra braces.
4694 (gdb_pymodule_addobject): Remove extra braces.
4695 * python-internal.h (gdb_Py_DECREF): New static inline function.
4696 (Py_DECREF): Redefine as calling gdb_Py_DECREF.
4698 2013-05-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4700 * breakpoints.c (detach_breakpoints): Do not
4701 detach breakpoints locations with loc_type bp_loc_other.
4703 2013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4705 Workaround Python 2.6.
4706 * python/py-utils.c (gdb_pymodule_addobject): Wrap Py_DECREF into
4709 2013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4711 Code cleanup: constification.
4712 * solib.c (solib_ops): Make return type and ops variable type const.
4713 (set_solib_ops): Make the new_ops parameter and ops variable const.
4714 (solib_find, solib_map_sections, clear_so, free_so, update_solib_list)
4715 (solib_add, solib_keep_data_in_core, clear_solib)
4716 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
4717 (reload_shared_libraries, solib_global_lookup): Make the ops variable
4719 * solib.h (set_solib_ops): Make the new_ops parameter const.
4721 2013-05-21 Joel Brobecker <brobecker@adacore.com>
4723 * data-directory/Makefile.in (SYSTEM_GDBINIT_SRCDIR): New
4725 (VPATH): Add SYSTEM_GDBINIT_SRCDIR.
4726 (SYSTEM_GDBINIT_DIR, SYSTEM_GDBINIT_INSTALL_DIR)
4727 (SYSTEM_GDBINIT_FILES): New variables.
4728 (all): Add stamp-system-gdbinit.
4729 (stamp-system-gdbinit): New rule.
4730 (clean-system-gdbinit, install-system-gdbinit)
4731 (uninstall-system-gdbinit): New rules. Make them .PHONY.
4732 (install-only): Add dependency on install-system-gdbinit.
4733 (uninstall): Add dependency on uninstall-system-gdbinit.
4734 (clean): Add dependency on clean-system-gdbinit.
4735 * system-gdbinit/elinos.py: New file.
4736 * system-gdbinit/wrs-linux.py: New file.
4738 2013-05-21 Joel Brobecker <brobecker@adacore.com>
4740 * ada-lang.c (old_renaming_is_invisible): Fix cleanup leak.
4742 2013-05-21 Hui Zhu <hui@codesourcery.com>
4744 * breakpoint.c (dprintf_breakpoint_ops): Remove its static.
4745 * breakpoint.h (dprintf_breakpoint_ops): Add extern.
4746 * mi/mi-cmd-break.c (ctype.h): New include.
4747 (gdb_obstack.h): New include.
4748 (mi_argv_to_format, mi_cmd_break_insert_1): New.
4749 (mi_cmd_break_insert): Call mi_cmd_break_insert_1.
4750 (mi_cmd_dprintf_insert): New.
4751 * mi/mi-cmds.c (mi_cmds): Add "dprintf-insert".
4752 * mi/mi-cmds.h (mi_cmd_dprintf_insert): New extern.
4754 2013-05-20 Tom Tromey <tromey@redhat.com>
4756 * python/py-prettyprint.c (search_pp_list): Decref 'attr'.
4758 2013-05-20 Tom Tromey <tromey@redhat.com>
4760 * python/py-value.c (valpy_get_dynamic_type): Simplify
4761 dynamic_type assignment. Use Py_XINCREF.
4763 2013-05-20 Tom Tromey <tromey@redhat.com>
4765 * python/py-type.c (typy_fields): Unconditionally decref 'r'.
4767 2013-05-20 Tom Tromey <tromey@redhat.com>
4769 * python/py-frame.c (frapy_older, frapy_newer, gdbpy_newest_frame)
4770 (gdbpy_selected_frame): Move object-construction code
4773 2013-05-20 Tom Tromey <tromey@redhat.com>
4775 * python/py-arch.c (gdbpy_initialize_arch): Use
4776 gdb_pymodule_addobject.
4777 * python/py-block.c (gdbpy_initialize_blocks): Use
4778 gdb_pymodule_addobject.
4779 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Use
4780 gdb_pymodule_addobject.
4781 * python/py-cmd.c (gdbpy_initialize_breakpoints): Use
4782 gdb_pymodule_addobject.
4783 * python/py-event.c (gdbpy_initialize_event_generic): Use
4784 gdb_pymodule_addobject.
4785 * python/py-evtregistry.c (gdbpy_initialize_eventregistry): Use
4786 gdb_pymodule_addobject.
4787 * python/py-evts.c (add_new_registry): Use
4788 gdb_pymodule_addobject.
4789 (gdbpy_initialize_py_events): Likewise.
4790 * python/py-finishbreakpoint.c
4791 (gdbpy_initialize_finishbreakpoints): Use
4792 gdb_pymodule_addobject.
4793 * python/py-frame.c (gdbpy_initialize_frames): Use
4794 gdb_pymodule_addobject.
4795 * python/py-function.c (gdbpy_initialize_functions): Use
4796 gdb_pymodule_addobject.
4797 * python/py-inferior.c (gdbpy_initialize_inferior): Use
4798 gdb_pymodule_addobject.
4799 * python/py-infthread.c (gdbpy_initialize_thread): Use
4800 gdb_pymodule_addobject.
4801 * python/py-objfile.c (gdbpy_initialize_objfile): Use
4802 gdb_pymodule_addobject.
4803 * python/py-param.c (gdbpy_initialize_parameters): Use
4804 gdb_pymodule_addobject.
4805 * python/py-progspace.c (gdbpy_initialize_pspace): Use
4806 gdb_pymodule_addobject.
4807 * python/py-symbol.c (gdbpy_initialize_symbols): Use
4808 gdb_pymodule_addobject.
4809 * python/py-symtab.c (gdbpy_initialize_symtabs): Use
4810 gdb_pymodule_addobject.
4811 * python/py-type.c (gdbpy_initialize_types): Use
4812 gdb_pymodule_addobject.
4813 * python/py-utils.c (gdb_pymodule_addobject): New function.
4814 * python/py-value.c (gdbpy_initialize_values): Use
4815 gdb_pymodule_addobject.
4816 * python/python-internal.h (gdb_pymodule_addobject): Declare.
4817 * python/python.c (_initialize_python): Use
4818 gdb_pymodule_addobject.
4820 2013-05-20 Tom Tromey <tromey@redhat.com>
4822 * python/py-cmd.c (cmdpy_completer): Use explicit decref.
4823 * python/py-param.c (get_set_value, get_show_value): Use
4825 * python/python.c (start_type_printers, apply_type_printers):
4826 Use explicit decrefs.
4828 2013-05-20 Tom Tromey <tromey@redhat.com>
4830 * python/py-evts.c (gdbpy_initialize_py_events): Don't
4833 2013-05-20 Tom Tromey <tromey@redhat.com>
4835 * python/python.c (gdbpy_run_events): Decref the result
4836 of PyObject_CallObject.
4838 2013-05-20 Tom Tromey <tromey@redhat.com>
4840 * python/py-symtab.c (set_sal): Use
4841 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION. Return -1 on error.
4842 (symtab_and_line_to_sal_object): Update.
4844 2013-05-20 Tom Tromey <tromey@redhat.com>
4846 * python/py-param.c (compute_enum_values): Decref 'item'.
4848 2013-05-20 Tom Tromey <tromey@redhat.com>
4850 * mi/mi-main.c: Include python-internal.h.
4851 (mi_cmd_list_features): Check gdb_python_initialized.
4852 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
4853 (python_inferior_exit, python_new_objfile, add_thread_object)
4854 (delete_thread_object, py_free_inferior): Check
4855 gdb_python_initialized.
4856 * python/py-prettyprint.c (apply_val_pretty_printer): Check
4857 gdb_python_initialized.
4858 * python/py-type.c (save_objfile_types): Check
4859 gdb_python_initialized.
4860 * python/python-internal.h (gdb_python_initialized): Declare.
4861 * python/python.c (ensure_python_env): Throw exception if
4862 Python not initialized.
4863 (before_prompt_hook, source_python_script_for_objfile)
4864 (start_type_printers, apply_type_printers,
4865 free_type_printers): Check gdb_python_initialized.
4866 * varobj.c (varobj_get_display_hint)
4867 (dynamic_varobj_has_child_method, update_dynamic_varobj_children)
4868 (install_new_value_visualizer, varobj_set_visualizer)
4869 (value_get_print_value): Check gdb_python_initialized.
4871 2013-05-20 Tom Tromey <tromey@redhat.com>
4873 * python/py-arch.c (gdbpy_initialize_arch): Return 'int'.
4875 * python/py-auto-load.c (gdbpy_initialize_auto_load): Return 'int'.
4876 * python/py-block.c (gdbpy_initialize_blocks): Return 'int'.
4878 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Return 'int'.
4880 * python/py-cmd.c (gdbpy_initialize_commands): Return 'int'.
4882 * python/py-event.c (gdbpy_initialize_event): Return 'int'.
4884 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Change generated
4885 init function to return 'int'.
4886 * python/py-evtregistry.c (gdbpy_initialize_eventregistry):
4887 Return 'int'. Check errors.
4888 * python/py-evts.c (gdbpy_initialize_py_events): Return 'int'.
4890 * python/py-finishbreakpoint.c (gdbpy_initialize_finishbreakpoints):
4891 Return 'int'. Check errors.
4892 * python/py-frame.c (gdbpy_initialize_frames): Return 'int'.
4894 * python/py-function.c (gdbpy_initialize_functions): Return 'int'.
4896 * python/py-gdb-readline.c (gdbpy_initialize_gdb_readline):
4898 * python/py-inferior.c (gdbpy_initialize_inferior): Return 'int'.
4900 * python/py-infthread.c (gdbpy_initialize_thread): Return 'int'.
4902 * python/py-lazy-string.c (gdbpy_initialize_lazy_string): Return 'int'.
4904 * python/py-objfile.c (gdbpy_initialize_objfile): Return 'int'.
4906 * python/py-param.c (gdbpy_initialize_parameters): Return 'int'.
4908 * python/py-progspace.c (gdbpy_initialize_pspace): Return 'int'.
4910 * python/py-symbol.c (gdbpy_initialize_symbols): Return 'int'.
4912 * python/py-symtab.c (gdbpy_initialize_symtabs): Return 'int'.
4914 * python/py-type.c (gdbpy_initialize_types): Return 'int'.
4916 * python/py-value.c (gdbpy_initialize_values): Return 'int'.
4918 * python/python-internal.h (gdbpy_initialize_auto_load,
4919 gdbpy_initialize_values, gdbpy_initialize_frames,
4920 gdbpy_initialize_symtabs, gdbpy_initialize_commands,
4921 gdbpy_initialize_symbols, gdbpy_initialize_symtabs,
4922 gdbpy_initialize_blocks, gdbpy_initialize_types,
4923 gdbpy_initialize_functions, gdbpy_initialize_pspace,
4924 gdbpy_initialize_objfile, gdbpy_initialize_breakpoints,
4925 gdbpy_initialize_finishbreakpoints,
4926 gdbpy_initialize_lazy_string, gdbpy_initialize_parameters,
4927 gdbpy_initialize_thread, gdbpy_initialize_inferior,
4928 gdbpy_initialize_eventregistry, gdbpy_initialize_event,
4929 gdbpy_initialize_py_events, gdbpy_initialize_stop_event,
4930 gdbpy_initialize_signal_event,
4931 gdbpy_initialize_breakpoint_event,
4932 gdbpy_initialize_continue_event,
4933 gdbpy_initialize_exited_event, gdbpy_initialize_thread_event,
4934 gdbpy_initialize_new_objfile_event, gdbpy_initialize_arch):
4935 Update. Use CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
4936 * python/python.c (gdb_python_initialized): New global.
4937 (gdbpy_initialize_events): Return 'int'. Check errors.
4938 (_initialize_python): Check errors. Set
4939 gdb_python_initialized.
4941 2013-05-20 Tom Tromey <tromey@redhat.com>
4943 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope):
4944 Decref the reslut of PyObject_CallMethod.
4946 2013-05-20 Tom Tromey <tromey@redhat.com>
4948 * python/py-event.c (gdbpy_initialize_event_generic): Return
4949 early if PyType_Ready fails.
4951 2013-05-20 Tom Tromey <tromey@redhat.com>
4953 * python/py-type.c (make_fielditem): Add gdb_assert_not_reached
4954 as 'default' in the switch.
4956 2013-05-20 Tom Tromey <tromey@redhat.com>
4958 * python/py-inferior.c (gdbpy_inferiors): Update. Hoist
4959 get_addr_from_python calls out of TRY_CATCH.
4960 (infpy_write_memory, infpy_search_memory): Likewise.
4961 * python/py-utils.c (get_addr_from_python): Return negative
4962 value on error. Use TRY_CATCH.
4963 * python/python-internal.h (get_addr_from_python): Use
4964 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
4966 2013-05-20 Tom Tromey <tromey@redhat.com>
4968 * python/py-event.c (evpy_emit_event): Decref the
4969 result of PyObject_CallFunctionObjArgs.
4971 2013-05-20 Tom Tromey <tromey@redhat.com>
4973 * python/py-cmd.c (cmdpy_completer): Use iterator protocol.
4976 2013-05-20 Tom Tromey <tromey@redhat.com>
4978 * python/py-cmd.c (cmdpy_init): Decref 'ds_obj'.
4980 2013-05-20 Tom Tromey <tromey@redhat.com>
4982 * python/py-event.h (gdbpy_initialize_event_generic): Use
4983 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
4984 * python/py-evts.c (add_new_registry): Use
4985 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
4986 * python/python-internal.h
4987 (CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION): New macro.
4989 2013-05-20 Tom Tromey <tromey@redhat.com>
4991 * python/py-arch.c (archpy_disassemble): Update.
4992 * python/py-type.c (typy_get_composite, typy_lookup_typename)
4993 (typy_lookup_type): Use GDB_PY_HANDLE_EXCEPTION.
4994 * python/py-utils.c (gdbpy_convert_exception): Return 'void'.
4995 * python/python-internal.h (CPYCHECKER_SETS_EXCEPTION): New
4997 (GDB_PY_HANDLE_EXCEPTION): Update.
4998 (gdbpy_convert_exception): Update. Use CPYCHECKER_SETS_EXCEPTION.
5000 2013-05-20 Tom Tromey <tromey@redhat.com>
5002 * python/python-internal.h (events_object_type): Remove.
5004 2013-05-20 Tom Tromey <tromey@redhat.com>
5006 * python/py-event.h (evpy_emit_event): Use
5007 CPYCHECKER_STEALS_REFERENCE_TO_ARG.
5008 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
5011 2013-05-20 Tom Tromey <tromey@redhat.com>
5013 * py-evtregistry.c (create_event_object): Decref
5014 eventregistry_object if PyList_New fails.
5016 2013-05-20 Tom Tromey <tromey@redhat.com>
5018 * py-cmd.c (gdbpy_string_to_argv): Check result of
5021 2013-05-20 Tom Tromey <tromey@redhat.com>
5023 * python/python.c (before_prompt_hook): Add cleanup to
5026 2013-05-20 Tom Tromey <tromey@redhat.com>
5028 * python/py-function.c (fnpy_init): Decref result of
5029 PyObject_GetAttrString.
5031 2013-05-20 Tom Tromey <tromey@redhat.com>
5033 * python/py-threadevent.c (get_event_thread): Use
5034 CPYCHECKER_RETURNS_BORROWED_REF.
5035 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
5037 (pspace_to_pspace_object, objfile_to_objfile_object)
5038 (find_thread_object): Use it.
5040 2013-05-20 Tom Tromey <tromey@redhat.com>
5042 * python/py-arch.c (arch_object_type): Use
5043 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5044 * python/py-block.c (block_syms_iterator_object_type):
5045 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5046 * python/py-bpevent.c (breakpoint_event_object_type):
5047 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5048 * python/py-cmd.c (cmdpy_object_type): Use
5049 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5050 * python/py-continueevent.c (continue_event_object_type):
5051 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5052 * python/py-event.h (GDBPY_NEW_EVENT_TYPE):
5053 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5054 * python/py-events.h (thread_event_object_type):
5055 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5056 * python/py-evtregistry.c (eventregistry_object_type): Use
5057 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5058 * python/py-exitedevent.c (exited_event_object_type):
5059 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5060 * python/py-finishbreakpoint.c (finish_breakpoint_object_type):
5061 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5062 * python/py-function.c (fnpy_object_type): Use
5063 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5064 * python/py-inferior.c (inferior_object_type, membuf_object_type):
5065 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5066 * python/py-infthread.c (thread_object_type): Use
5067 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5068 * python/py-lazy-string.c (lazy_string_object_type):
5069 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5070 * python/py-newobjfileevent.c (new_objfile_event_object_type):
5071 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5072 * python/py-objfile.c (objfile_object_type): Use
5073 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5074 * python/py-param.c (parmpy_object_type):
5075 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5076 * python/py-progspace.c (pspace_object_type):
5077 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5078 * python/py-signalevent.c (signal_event_object_type):
5079 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5080 * python/py-symtab.c (symtab_object_type, sal_object_type): Use
5081 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5082 * python/py-type.c (type_object_type, field_object_type)
5083 (type_iterator_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5084 * python/py-internal.h (CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF): New
5086 (value_object_type, block_object_type, symbol_object_type)
5087 (event_object_type, stop_event_object_type, breakpoint_object_type)
5088 (frame_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5090 2013-05-20 Andreas Tobler <andreas@fgznet.ch>
5092 * Makefile.in (ALL_TARGET_OBS): Add ppcfbsd-tdep.o.
5093 (ALLDEPFILES): Add ppcfbsd-nat.c and ppcfbsd-tdep.c.
5095 2013-05-20 Doug Evans <dje@google.com>
5097 When reading CU, stay in DWO. Be more tolerent of bad debug info.
5099 * dwarf2read.c (struct dwarf2_per_cu_data): New member
5100 reading_dwo_directly.
5101 (struct signatured_type): New member dwo_unit.
5102 (struct die_reader_specs): New member comp_dir.
5103 (create_signatured_type_table_from_index): Use malloc for
5104 all_type_units instead of objfile's obstack.
5105 (create_all_type_units): Ditto.
5106 (fill_in_sig_entry_from_dwo_entry): New function.
5107 (add_type_unit): New function.
5108 (lookup_dwo_signatured_type): New function.
5109 (lookup_dwp_signatured_type): New function.
5110 (lookup_signatured_type): New arg cu. All callers updated.
5111 (init_cu_die_reader): Initialize comp_dir.
5112 (read_cutu_die_from_dwo): New arg stub_comp_dir. All callers updated.
5113 Change assert of matching type signatures to call error on mismatch.
5114 (lookup_dwo_unit): Add assert.
5115 (init_tu_and_read_dwo_dies): New function.
5116 (init_cutu_and_read_dies): Call it.
5117 (build_type_unit_groups): Handle case of no type unit groups created.
5118 (hash_dwo_file, eq_dwo_file): Handle missing comp_dir.
5119 (lookup_dwo_cutu): Tweak complaint.
5120 (dwarf2_free_abbrev_table): Check for NULL abbrev_table.
5121 (dwarf2_per_objfile_free): Free all_type_units.
5123 2013-05-20 Joel Brobecker <brobecker@adacore.com>
5125 * windows-nat.c (handle_unload_dll): Add missing empty line.
5127 2013-05-20 Joel Brobecker <brobecker@adacore.com>
5129 * dwarf2read.c (prototyped_function_p): New function.
5130 (read_subroutine_type): Use it.
5132 2013-05-20 Joel Brobecker <brobecker@adacore.com>
5134 * rs6000-aix-tdep.c: De-indent some example code provided
5137 2013-05-17 Edjunior Machado <emachado@linux.vnet.ibm.com>
5139 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Check if the
5140 region is ok for a hardware watchpoint using the new ptrace interface
5143 2013-05-17 Doug Evans <dje@google.com>
5145 * NEWS: Mention new maintenance commands check-symtabs, and
5146 expand-symtabs, and renamed check-psymtabs.
5147 * psymtab.c (maintenance_check_psymtabs): Renamed from
5148 maintenance_check_symtabs. Only process already-expanded symbol
5150 (_initialize_psymtab): Update.
5151 * symmisc.c (maintenance_check_symtabs): New function.
5152 (maintenance_expand_name_matcher): New function
5153 (maintenance_expand_file_matcher): New function
5154 (maintenance_expand_symtabs): New function.
5155 (_initialize_symmisc): Add "mt check-symtabs" and "mt expand-symtabs"
5158 2013-05-17 Tom Tromey <tromey@redhat.com>
5160 * python/py-inferior.c (infpy_read_memory): Don't call
5161 PyErr_SetString if PyObject_New fails.
5162 * python/py-frame.c (frame_info_to_frame_object): Don't call
5163 PyErr_SetString if PyObject_New fails.
5165 2013-05-17 Pavel Chupin <pavel.v.chupin@intel.com>
5167 * acinclude.m4: Add check for dlopen in libdl.
5168 * configure.ac: Ditto.
5169 * configure: Regenerate.
5171 2013-05-17 Phil Muldoon <pmuldoon@redhat.com>
5173 * frame.c (frame_stash): Convert to htab.
5174 (frame_addr_hash): New function.
5175 (frame_addr_hash_eq): New function.
5176 (frame_stash_create): Convert function to create
5178 (frame_stash_add): Convert function to add an entry to a hash
5180 (frame_stash_find): Convert function to search the hash table.
5181 (frame_stash_invalidate): Convert function to empty the hash
5183 (get_frame_id): Only add to stash if a frame_id is created.
5184 (_initialize_frame): Call frame_stash_create.
5186 2013-05-16 Yue Lu <hacklu.newborn@gmail.com> (tiny change)
5188 * configure.ac: Ensure MIG is available when building for GNU Hurd
5190 * configure: Regenerate.
5192 2013-05-16 Joel Brobecker <brobecker@adacore.com>
5194 * dwarf2read.c (set_cu_language): Add DW_LANG_UPC handling.
5196 2013-05-16 Joel Brobecker <brobecker@adacore.com>
5198 * ada-lang.c (ada_make_symbol_completion_list): Make sure
5199 all cleanups are done before returning from this function.
5201 2013-05-15 Joel Brobecker <brobecker@adacore.com>
5203 * utils.h: #include "exceptions.h".
5204 (enum errors): Remove partial declaration.
5206 2013-05-15 Joel Brobecker <brobecker@adacore.com>
5208 * gdbarch.sh (core_xfer_shared_libraries_aix): New method.
5209 * gdbarch.h, gdbarch.c: Regenerate.
5210 * corelow.c (core_xfer_partial): Add TARGET_OBJECT_LIBRARIES_AIX
5213 * rs6000-aix-tdep.h: New file.
5214 * Makefile.in (HFILES_NO_SRCDIR): Add rs6000-aix-tdep.h.
5215 * rs6000-aix-tdep.c: Include "rs6000-aix-tdep.h" and
5217 (struct field_info, struct ld_info_desc): New types.
5218 (ld_info32_desc, ld_info64_desc): New static constants.
5219 (struct ld_info): New type.
5220 (rs6000_aix_extract_ld_info): New function.
5221 (rs6000_aix_shared_library_to_xml): Likewise.
5222 (rs6000_aix_ld_info_to_xml): Likewise.
5223 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
5224 (rs6000_aix_init_osabi): Add call to
5225 set_gdbarch_core_xfer_shared_libraries_aix.
5226 * rs6000-nat.c: Add "rs6000-aix-tdep.h" include.
5227 Remove "xml-utils.h" include.
5228 (LdInfo): Delete typedef.
5229 (ARCH64_DECL, LDI_FIELD, LDI_NEXT, LDI_FD, LDI_FILENAME):
5231 (rs6000_ptrace_ldinfo): Change return type to gdb_byte *.
5232 Adjust code accordingly.
5233 (rs6000_core_ldinfo): Delete, folded into
5234 rs6000_aix_core_xfer_shared_libraries_aix.
5235 (rs6000_xfer_shared_library): Delete.
5236 (rs6000_xfer_shared_libraries): Reimplement.
5238 2013-05-15 Markus Metzger <markus.t.metzger@intel.com>
5240 * record.c (record_goto_cmdlist): New.
5241 (cmd_record_goto): Split into this ...
5242 (cmd_record_goto_begin): ... this
5243 (cmd_record_goto_end): ... and this.
5244 (_initialize_record): Change "record goto" to prefix command.
5245 Add commands for "record goto begin" and "record goto end".
5246 Add an alias for "record goto start" to "record goto begin".
5248 2013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
5250 * linespec.c (convert_linespec_to_sals): New comment for
5251 SOURCE_FILENAME assignment.
5253 2013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
5255 * cleanups.c (restore_my_cleanups): Replace gdb_assert by
5258 2013-05-14 Tom Tromey <tromey@redhat.com>
5260 * eval.c (parse_and_eval_long): Make 'exp' const.
5261 * value.h (parse_and_eval_long): Update.
5263 2013-05-14 Tom Tromey <tromey@redhat.com>
5265 * ui-file.c (gdb_fopen): Make arguments const.
5266 * ui-file.h (gdb_fopen): Make arguments const.
5268 2013-05-14 Tom Tromey <tromey@redhat.com>
5270 * remote.c (remote_set_trace_notes): Make arguments const.
5271 * target.c (update_current_target): Update cast.
5272 * target.h (to_set_trace_notes): Make arguments const.
5274 2013-05-14 Tom Tromey <tromey@redhat.com>
5276 * go32-nat.c (go32_terminal_info): Make 'args' const.
5277 * inferior.h (child_terminal_info): Update.
5278 * inflow.c (child_terminal_info): Make 'args' const.
5279 * target.c (default_terminal_info): Make 'args' const.
5280 (debug_to_terminal_save_ours): Likewise.
5281 * target.h (struct target_ops) <to_terminal_info>: Make argument
5284 2013-05-13 Tom Tromey <tromey@redhat.com>
5286 * gcore.c (create_gcore_bfd): Make 'filename' const.
5287 * gcore.h (create_gcore_bfd): Make 'filename' const.
5288 * record-full.c (record_full_save): Make 'recfilename' const.
5289 * target.c (target_save_record): Make 'filename' const.
5290 * target.h (struct target_ops) <to_save_record>: Make 'filename'
5292 (target_save_record): Likewise.
5294 2013-05-13 Tom Tromey <tromey@redhat.com>
5297 * dwarf2read.c (dwarf2_record_block_ranges): Ensure that the
5298 ranges section has been read.
5300 2013-05-13 Tom Tromey <tromey@redhat.com>
5303 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
5304 STRUCTOP_PTR>: Return a not_lval value for
5305 EVAL_AVOID_SIDE_EFFECTS.
5306 * opencl-lang.c (evaluate_subexp_opencl): Return a not_lval value
5307 for EVAL_AVOID_SIDE_EFFECTS.
5309 2013-05-13 Joel Brobecker <brobecker@adacore.com>
5311 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Convert
5312 floating point registers to register type before storing
5314 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call):
5317 2013-05-10 Joel Brobecker <brobecker@adacore.com>
5318 Tom Tromey <tromey@redhat.com>
5320 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
5322 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
5324 * darwin-nat.c (darwin_pre_ptrace): Use mark_fd_no_cloexec.
5325 (darwin_ptrace_him): Use unmark_fd_no_cloexec.
5326 * inf-ttrace.c (do_cleanup_pfds): Use unmark_fd_no_cloexec.
5327 (inf_ttrace_prepare): Use mark_fd_no_cloexec.
5329 2013-05-10 Freddie Chopin <freddie_chopin@op.pl>
5330 Tom Tromey <tromey@redhat.com>
5333 * configure: Rebuild.
5334 * configure.ac (build_warnings): Do not use -Wformat-nonliteral
5337 2013-05-10 Pedro Alves <palves@redhat.com>
5339 * remote.c (_initialize_remote): Fix spelling of
5340 qXfer:traceframe-info:read packet in packet config command.
5342 2013-05-10 David Taylor <dtaylor@emc.com>
5346 * remote.c (remote_trace_set_readonly_regions): Do not overwrite
5347 "QTro" at start of packet.
5349 2013-05-10 Joel Brobecker <brobecker@adacore.com>
5351 * solib-aix.c (solib_aix_relocate_section_addresses):
5352 For the .bss section action, apply the same offset as
5355 2013-05-10 Joel Brobecker <brobecker@adacore.com>
5357 * solib-aix.c (solib_aix_relocate_section_addresses):
5358 Remove FIXME comment.
5360 2013-05-10 Joel Brobecker <brobecker@adacore.com>
5363 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
5364 New functions, directly copied from sparc-sol-thread.c.
5365 * sparc-sol-thread.c: Delete.
5366 * configure.ac: Remove code handling sparc-solaris-thread.c.
5367 * configure: Regenerate.
5369 2013-05-10 Phil Muldoon <pmuldoon@redhat.com>
5371 * stack.c (backtrace_command_1): Add "no-filters", and Python frame
5373 (backtrace_command): Add "no-filters" option parsing.
5374 (_initialize_stack): Alter help to reflect "no-filters" option.
5375 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-framefilter.o
5376 (SUBDIR_PYTHON_SRCS): Add py-framefilter.c
5377 (py-frame.o): Add target
5378 * data-directory/Makefile.in (PYTHON_DIR): Add Python frame
5380 * python/python.h: Add new frame filter constants, and flag enum.
5381 (apply_frame_filter): Add definition.
5382 * python/python.c (apply_frame_filter): New non-Python
5384 * python/py-utils.c (py_xdecref): New function.
5385 (make_cleanup_py_xdecref): Ditto.
5386 * python/py-objfile.c: Declare frame_filters dictionary.
5387 (objfpy_dealloc): Add frame_filters dealloc.
5388 (objfpy_new): Initialize frame_filters attribute.
5389 (objfile_to_objfile_object): Ditto.
5390 (objfpy_get_frame_filters): New function.
5391 (objfpy_set_frame_filters): New function.
5392 * python/py-progspace.c: Declare frame_filters dictionary.
5393 (pspy_dealloc): Add frame_filters dealloc.
5394 (pspy_new): Initialize frame_filters attribute.
5395 (pspacee_to_pspace_object): Ditto.
5396 (pspy_get_frame_filters): New function.
5397 (pspy_set_frame_filters): New function.
5398 * python/py-framefilter.c: New file.
5399 * python/lib/gdb/command/frame_filters.py: New file.
5400 * python/lib/gdb/frames.py: New file.
5401 * python/lib/gdb/__init__.py: Initialize global frame_filters
5403 * python/lib/gdb/FrameDecorator.py: New file.
5404 * python/lib/gdb/FrameIterator.py: New file.
5405 * mi/mi-cmds.c (mi_cmds): Add frame filters command.
5406 * mi/mi-cmds.h: Declare.
5407 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Add
5408 --no-frame-filter logic, and Python frame filter logic.
5409 (stack_enable_frame_filters): New function.
5410 (parse_no_frame_option): Ditto.
5411 (mi_cmd_stack_list_frames): Add --no-frame-filter and Python frame
5413 (mi_cmd_stack_list_locals): Ditto.
5414 (mi_cmd_stack_list_args): Ditto.
5415 (mi_cmd_stack_list_variables): Ditto.
5416 * NEWS: Add frame filter note.
5418 2013-05-09 Doug Evans <dje@google.com>
5420 * symfile.c (syms_from_objfile_1): Delete args offsets, num_offsets.
5421 All callers updated.
5422 (syms_from_objfile): Ditto. Make static.
5423 (symbol_file_add_with_addrs): Renamed from
5424 symbol_file_add_with_addrs_or_offsets. Delete args offsets,
5425 num_offsets. All callers updated.
5426 * symfile.h (syms_from_objfile): Delete.
5428 * symfile.c (decrement_reading_symtab): Add assert.
5429 (increment_reading_symtab): Ditto.
5431 2013-05-09 Joel Brobecker <brobecker@adacore.com>
5433 * source.c (forward_search_command): Replace call to getc
5435 (reverse_search_command): Likewise.
5437 2013-05-08 Doug Evans <dje@google.com>
5439 * psymtab.c (expand_symtabs_matching_via_partial): Fix file name
5442 2013-05-08 Joel Brobecker <brobecker@adacore.com>
5444 * sol-thread.c (info_cb): Factorize the code a little.
5446 2013-05-08 Joel Brobecker <brobecker@adacore.com>
5448 * sol-thread.c (info_cb): Rework the output of the "maintenance
5449 info sol-threads" command a bit.
5451 2013-05-08 Joel Brobecker <brobecker@adacore.com>
5453 * sol-thread.c (info_cb) [ti.ti_state == TD_THR_SLEEP]:
5454 Replace ti.ti_startfunc by ti.ti_pc.
5456 2013-05-08 Joel Brobecker <brobecker@adacore.com>
5458 * solib-aix.c (solib_aix_free_library_list): New function
5459 for the case where HAVE_LIBEXPAT is not defined.
5461 2013-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
5463 PR breakpoints/15413:
5464 * breakpoint.c (condition_completer): Simplify the code to
5465 disconsider multiple locations of breakpoints when completing the
5466 "condition" command.
5468 2013-05-07 Pierre Muller <muller@sourceware.org>
5470 * common/linux-btrace.c: ARI fix: Include "gdb_wait.h"
5471 instead of <sys/wait.h>.
5473 2013-05-07 Pierre Muller <muller@sourceware.org>
5475 * nios2-tdep.c (nios2_dwarf_reg_to_regnum): ARI fix: remove
5476 trailing new line from warning message.
5478 2013-05-07 Pierre Muller <muller@sourceware.org>
5480 * contrib/ari/gdb_ari.sh (SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK)
5481 (PC_SOLIB): Change type from ari_deprecate to ari_regression.
5483 2013-05-07 Joel Brobecker <brobecker@adacore.com>
5485 * rs6000-nat.c (rs6000_core_ldinfo): Remove '\n' at end of
5486 error message (ARI fix).
5488 2013-05-07 Joel Brobecker <brobecker@adacore.com>
5490 * features/library-list-aix.dtd: Replace library-list by
5492 * rs6000-nat.c: Replace library-list by library-list-aix
5494 * solib-aix.c: Likewise.
5496 2013-05-07 Joel Brobecker <brobecker@adacore.com>
5498 * target.h (enum target_object) [TARGET_OBJECT_LIBRARIES_AIX]:
5499 Renames TARGET_OBJECT_AIX_LIBRARIES.
5500 * rs6000-nat.c: Replace TARGET_OBJECT_AIX_LIBRARIES with
5501 TARGET_OBJECT_LIBRARIES_AIX throughout.
5502 * solib-aix.c: Likwise.
5504 2013-05-07 Yao Qi <yao@codesourcery.com>
5506 * solib-dsbt.c (struct dsbt_info) <enable_break2_done>: Remove.
5507 (get_dsbt_info, enable_break, dsbt_clear_solib): Update.
5509 2013-05-07 Yao Qi <yao@codesourcery.com>
5511 * solib-dsbt.c (enable_break): Declare.
5512 (dsbt_current_sos): Remove call to enable_break2.
5513 (enable_break2): Rename to enable_break. Set solib breakpoint
5514 on '_dl_debug_state'.
5515 (enable_break): Remove.
5517 2013-05-07 Luis Machado <lgustavo@codesourcery.com>
5519 * ppc-linux-nat.c (ppc_linux_new_thread): Clear the new thread's
5520 debug state prior to replicating existing hardware watchpoints or
5523 2013-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
5525 * gcore.c (gcore_create_callback): Ignore sections with
5526 separate_debug_objfile_backlink != NULL.
5528 2013-05-06 Sandra Loosemore <sandra@codesourcery.com>
5529 Andrew Jenner <andrew@codesourcery.com>
5530 Chung-Lin Tang <cltang@codesourcery.com>
5531 Julian Brown <julian@codesourcery.com>
5533 Based on the nios2-elf port from Altera Corporation.
5535 * Makefile.in (ALL_TARGET_OBS): Add nios2-tdep.o and
5537 (HFILES_NO_SRCDIR): Add nios2-tdep.h.
5538 (ALLDEPFILES): Add nios2-tdep.c and nios2-linux-tdep.c.
5539 * configure.tgt: Add nios2*-*-linux* and nios2*-*-* targets.
5540 * nios2-tdep.h: New.
5541 * nios2-tdep.c: New.
5542 * nios2-linux-tdep.c: New.
5543 * features/Makefile (WHICH): Add nios2-linux.
5544 (nios2-linux-expedite): Set.
5545 * features/nios2-cpu.xml: New.
5546 * features/nios2.xml: New.
5547 * features/nios2-linux.xml: New.
5548 * features/nios2.c: New (autogenerated).
5549 * features/nios2-linux.c: New (autogenerated).
5550 * regformats/nios2-linux.dat: New (autogenerated).
5551 * NEWS (Changes since GDB 7.6): Add new Nios II targets
5554 2013-05-06 Doug Evans <dje@google.com>
5556 * symfile.c: Whitespace cleanup.
5558 * solist.h (struct target_so_ops): New member clear_so.
5559 * solib-svr4.c (svr4_clear_so): New function.
5560 (_initialize_svr4_solib): Set svr4_so_ops.clear_so.
5561 * solib.c (clear_so): Renamed from free_so_symbols.
5562 All callers updated. Call target clear_so if it exists.
5564 2013-05-06 Tom Tromey <tromey@redhat.com>
5566 * ada-lang.c (ada_value_primitive_packed_val): Don't
5568 * value.c (set_value_parent): Incref the new parent and decref
5570 (value_copy, value_primitive_field): Use set_value_parent.
5572 2013-05-06 Tom Tromey <tromey@redhat.com>
5574 * dwarf2loc.c (invalid_synthetic_pointer): Move earlier.
5575 (indirect_pieced_value): Call dwarf2_fetch_constant_bytes
5577 * dwarf2loc.h (dwarf2_fetch_constant_bytes): Declare.
5578 * dwarf2read.c (write_constant_as_bytes)
5579 (dwarf2_fetch_constant_bytes): New functions.
5581 2013-05-06 Tom Tromey <tromey@redhat.com>
5583 * dwarf2read.c (dwarf2_const_value_data): Remove unused
5585 (dwarf2_const_value_attr): Update.
5587 2013-05-06 Tom Tromey <tromey@redhat.com>
5589 * somread.c (som_symfile_offsets): Add 'const' to addrs.
5590 * machoread.c (macho_symfile_offsets): Add 'const' to addrs.
5591 * xcoffread.c (xcoff_symfile_offsets): Add 'const' to addrs.
5594 2013-05-06 Tom Tromey <tromey@redhat.com>
5596 * dwarf2read.c (dwarf2_const_value_attr): Use 'obstack', not
5599 2013-05-06 Doug Evans <dje@google.com>
5601 * dbxread.c (process_one_symbol): Constify section_offsets parameter.
5602 * stabsread.h (process_one_symbol): Update declaration.
5603 * dwarf2read.c (dw2_relocate): Constify new_offsets, delta parameters.
5604 * elfread.c (elf_symfile_relocate_probe): Ditto.
5605 * psymtab.c (relocate_psymtabs): Ditto.
5606 * objfiles.c (objfile_relocate1): Constify new_offsets parameter.
5607 (objfile_relocate): Ditto.
5608 * objfiles.h (objfile_relocate): Update declaration.
5609 * symfile.c (relative_addr_info_to_section_offsets): Constify
5611 (default_symfile_offsets): Ditto.
5612 (syms_from_objfile_1): Constify offsets parameter.
5613 (syms_from_objfile): Ditto.
5614 (symbol_file_add_with_addrs_or_offsets): Ditto.
5615 (symfile_map_offsets_to_segments): Constify data parameter.
5616 * symfile.h (struct quick_symbol_functions): Constify new_offsets,
5617 delta parameters of member relocate.
5618 (struct sym_probe_fns): Constify new_offsets,
5619 delta parameters of member sym_relocate_probe.
5620 (struct sym_fns): Constify section_addr_info parameter of member
5622 (relative_addr_info_to_section_offsets): Update declaration.
5623 (default_symfile_offsets): Ditto.
5624 (syms_from_objfile): Ditto.
5625 (symfile_map_offsets_to_segments): Ditto.
5627 * symfile.c (syms_from_objfile_1): Use correct section count when
5628 objfile->sf == NULL.
5630 2013-05-06 Mike Frysinger <vapier@gentoo.org>
5632 * common/linux-btrace.c (intel_supports_btrace): Fix indentation.
5634 2013-05-06 Doug Evans <dje@google.com>
5636 * psympriv.h (struct partial_symtab): Augment comment for member
5639 2013-05-06 Joel Brobecker <brobecker@adacore.com>
5641 Reimplement shared library support on ppc-aix...
5642 * target.h (TARGET_OBJECT_AIX_LIBRARIES): New target_object enum.
5643 * features/library-list-aix.dtd: New file.
5644 * solib-aix.h, solib-aix.c: New file.
5645 * rs6000-aix-tdep.c: #include "solib.h" and "solib-aix.h".
5646 (rs6000_find_toc_address_hook): Delete.
5647 (rs6000_push_dummy_call): Rewrite code setting the TOC value.
5648 (rs6000_aix_init_osabi): Register solib_aix_so_ops.
5649 * rs6000-nat.c: Remove "xcoffsolib.h" include. Include
5651 (map_vmap, vmap_exec, vmap_ldinfo, add_vmap, objfile_symbol_add)
5652 (vmap_symtab, fixup_breakpoints): Delete.
5653 (rs6000_xfer_shared_libraries): New function.
5654 (rs6000_xfer_partial): Add TARGET_OBJECT_AIX_LIBRARIES handling.
5655 (vmap_secs, bss_data_overlap, vmap_add_symbols): Delete.
5656 (xcoff_relocate_symtab, xcoff_relocate_core): Delete.
5657 (rs6000_ptrace_ldinfo, rs6000_core_ldinfo)
5658 (rs6000_xfer_shared_library): New function.
5659 (find_toc_address): Delete.
5660 (_initialize_rs6000_nat): Do not set rs6000_find_toc_address_hook.
5661 * rs6000-tdep.h (rs6000_find_toc_address_hook): Remove.
5662 * xcoffread.c (record_minimal_symbol): Reloate symbol address
5663 before creating minimal symbol. Adjust function description
5665 (scan_xcoff_symtab): Replace call to
5666 prim_record_minimal_symbol_and_info by call to
5667 record_minimal_symbol.
5668 (xcoff_symfile_offsets): Reimplement mostly as a wrapper
5669 around default_symfile_offsets.
5670 * configure.tgt: Add solib-aix.o to gdb_target_obs for
5671 powerpc-aix targets.
5672 * config/rs6000/nm-rs6000.h: Delete.
5673 * config/powerpc/aix.mh (NAT_FILE): Delete.
5674 (NATDEPFILES): Remove xcoffsolib.o.
5675 * Makefile.in (XMLFILES): Add library-list-aix.dtd.
5676 (ALL_TARGET_OBS): Add solib-aix.o.
5677 (HFILES_NO_SRCDIR): Remove xcoffsolib.h and
5678 config/rs6000/nm-rs6000.h. Add solib-aix.h.
5679 (ALLDEPFILES): Add solib-aix.c. Remove xcoffsolib.c.
5680 * xcoffsolib.h, xcoffsolib.c: Delete.
5682 * solib.c (reload_shared_libraries): Remove reference to
5683 SOLIB_CREATE_INFERIOR_HOOK.
5684 * breakpoint.c (handle_solib_event): Remove reference to SOLIB_ADD.
5685 (disable_breakpoints_in_shlibs): Remove reference to PC_SOLIB.
5686 (momentary_bkpt_re_set): Replace SOLIB_ADD by solib_add in
5688 * corelow.c (deprecated_core_resize_section_table): Delete.
5689 * exec.c: Remove include of xcoffsolib.h".
5690 (map_vmap, vmap): Delete.
5691 (exec_close_1): Remove references to vmap.
5692 (exec_file_attach): Remove vmap handling code, and reference
5693 to DEPRECATED_IBM6000_TARGET.
5694 (bfdsec_to_vmap): Delete.
5695 (exec_files_info): Remove block of code handling VMAP.
5696 * infcmd.c (post_create_inferior): Remove reference to
5697 SOLIB_CREATE_INFERIOR_HOOK and SOLIB_ADD.
5698 * infrun.c (follow_exec): Remove reference to
5699 SOLIB_CREATE_INFERIOR_HOOK.
5700 * stack.c (print_frame): Remove reference to PC_SOLIB.
5701 * solib-dsbt.c (dsbt_current_sos): Adjust comment.
5702 (dsbt_relocate_main_executable): Likewise.
5703 * solib-frv.c (frv_current_sos): Likewise.
5705 2013-05-06 Joel Brobecker <brobecker@adacore.com>
5707 * sol-thread.c (rw_common): Cast BUF to "gdb_byte *" in calls
5708 to target_write_memory and target_read_memory.
5710 2013-05-06 Joel Brobecker <brobecker@adacore.com>
5712 * darwin-nat.c (darwin_setup_fake_stop_event): New function.
5713 (darwin_attach): Adjust using darwin_setup_fake_stop_event.
5715 2013-05-06 Joel Brobecker <brobecker@adacore.com>
5717 * darwin-nat.c: Replace all "%x" instances in format strings
5718 into "0x%x" throughout.
5720 2013-05-06 Joel Brobecker <brobecker@adacore.com>
5722 * darwin-nat.c (darwin_mourn_inferior): Replace call to
5723 gdb_assert by call to MACH_CHECK_ERROR.
5724 (darwin_attach_pid): Raise an error rather than a failed
5725 assertion when various system calls failed. Report a warning
5726 instead of raising a failed assertion when PREV_NOT is not NULL
5727 after call to mach_port_request_notification.
5728 (darwin_ptrace_me): Raise an error rather than a failed
5729 assertion when read returns nonzero.
5731 2013-05-06 Joel Brobecker <brobecker@adacore.com>
5733 * amd64-darwin-tdep.c: Remove #include "gdb_assert.h".
5735 2013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
5737 * cleanups.c (restore_my_cleanups): New gdb_assert for SENTINEL_CLEANUP.
5739 2013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
5741 * event-top.c (display_gdb_prompt): Call missing do_cleanups.
5742 * infcmd.c (get_return_value) <!stop_regs>: Do not overwrite CLEANUP.
5743 * symfile.c (symfile_bfd_open): New variable back_to. Do not leave
5744 a stale cleanup. Fix double free of NAME.
5746 2013-05-04 Eli Zaretskii <eliz@gnu.org>
5748 * windows-nat.c (windows_delete_thread): Accept an additional
5749 argument, the thread's exit code, and announce thread death when
5750 print_thread_events is non-zero and we are deleting a thread that
5751 is not the main thread.
5752 (get_windows_debug_event): Pass thread exit code to
5753 windows_delete_thread.
5755 2013-05-03 Kevin Buettner <kevinb@redhat.com>
5757 * v850-tdep.c (elf-bfd.h, elf/v850.h): Include.
5758 (R_149_REGNUM, E_NUM_OF_V850E2_REGS, E_SELID_1_R0_REGNUM)
5759 (E_SELID_1_R31_REGNUM, E_SELID_2_R0_REGNUM, E_SELID_2_R31_REGNUM)
5760 (E_SELID_3_R0_REGNUM, E_SELID_3_R31_REGNUM, E_SELID_4_R0_REGNUM)
5761 (E_SELID_4_R31_REGNUM, E_SELID_5_R0_REGNUM, E_SELID_5_R31_REGNUM)
5762 (E_SELID_6_R0_REGNUM, E_SELID_6_R31_REGNUM, E_SELID_7_R0_REGNUM, E_SELID_7_R31_REGNUM)
5763 (E_VR0_REGNUM, E_VR31_REGNUM, E_NUM_OF_V850E3V5_REGS): Define.
5764 (v850_abi, V850_ABI_GCC, V850_ABI_RH850): New enum and constants.
5765 (gdbarch_tdep): New struct.
5766 (v850e2_register_name): Use E_NUM_OF_V850E2_REGS instead of
5768 (v850e3v5_register_name): New function.
5769 (v850_register_type): v850e3v5 vector registers are 64-bits wide.
5770 (v850_use_struct_convention): Add `gdbarch' parameter. Add new
5771 code handling the struct return conventions for the RH850 ABI.
5773 (v850_eight_byte_align_p): New function.
5774 (v850_push_call_dummy): Push structs by value, not by reference
5775 for the RH850 ABI. Add support for eight byte alignment.
5776 (v850_dbtrap_breakpoint_from_pc): New function.
5777 (v850_gdbarch_init): Add ABI detection code. Register
5778 v850e3v5_register_name for the v850e3v5 architecture. Set the
5779 number of registers for v850e3v5. Register
5780 v850_dbtrap_breakpoint_from_pc as appropriate.
5781 (_initialize_gdbarch_init): Registration bfd_arch_v850_rh850.
5783 2013-05-03 Doug Evans <dje@google.com>
5785 * objfiles.c (objfile_relocate): Use gdb_bfd_count_sections instead
5786 of bfd_count_sections.
5787 * solib-target.c (solib_target_relocate_section_addresses): Ditto.
5788 * symfile.c (default_symfile_offsets): Ditto.
5789 (syms_from_objfile_1): Ditto. Make dummy addrs list an array of
5790 one entry, not bfd_count_sections entries.
5792 2013-05-03 Kevin Buettner <kevinb@redhat.com>
5794 * rl78-tdep.c (rl78_register_reggroup_p): Include SP in the
5795 `save' and `restore' register groups. Don't include SPL
5796 or SPH in these groups.
5797 (rl78_dwarf_reg_to_regnum): Adjust mapping for
5798 RL78_PC_REGNUM. Add mappings for RL78_PSW_REGNUM,
5799 RL78_ES_REGNUM, and RL78_CS_REGNUM.
5800 (rl78_gdbarch_init): Set `dwarf2_addr_size' to 4. Invoke
5801 dwarf2_append_unwinders().
5803 2013-05-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5805 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Do not
5806 ignore SIGINT and SIGTRAP in case these internal signals are
5809 2013-05-01 Joel Brobecker <brobecker@adacore.com>
5811 * darwin-nat.c (darwin_read_write_inferior): Change types
5812 of parameters rdaddr and wraddr to "gdb_byte *". Change type
5813 of copy_count to "mach_msg_type_number_t".
5814 (darwin_read_dyld_info): Change type of parameter
5815 rdaddr to "gdb_byte *".
5817 2013-05-01 Joel Brobecker <brobecker@adacore.com>
5819 * solib-ia64-hpux.c (ia64_hpux_read_dynamic_info): Change cast
5820 of &info->load_map from "char *" to "gdb_byte *".
5822 2013-05-01 Joel Brobecker <brobecker@adacore.com>
5824 * ia64-tdep.c (ia64_access_fpreg): Change cast of val
5825 from "char *" to "gdb_byte *".
5826 (ia64_access_rse_fpreg, ia64_access_mem): Likewise.
5828 2013-04-30 Doug Evans <dje@google.com>
5830 * dwarf2read.c (lookup_dwo_unit): Return NULL if DWO not found.
5831 (init_cutu_and_read_dies): Flag a complaint, not error, for bad
5832 DWO stub. If DWO isn't found, just use stub.
5833 (lookup_dwo_cutu): Don't try DWO if there's a DWP file.
5835 * dwarf2read.c (dw2_find_symbol_file): Initialize filename before
5836 calling init_cutu_and_read_dies.
5838 2013-03-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
5840 * target-descriptions.c (maint_print_c_tdesc_cmd):
5841 Add case to parse structures as register types and
5844 2013-04-30 Walfred Tedeschi <walfred.tedeschi@intel.com>
5846 * MAINTAINERS (Write After Approval): Add myself to the list.
5848 2013-04-30 Joel Brobecker <brobecker@adacore.com>
5850 * sol-thread.c (rw_common): Change type of parameter "buf"
5852 (ps_pdwrite, ps_ptwrite): Cast parameter "buf" in call to
5853 rw_common to "gdb_byte *" instead of "char *".
5855 2013-04-30 Joel Brobecker <brobecker@adacore.com>
5857 * sol-thread.c (info_cb) [ti.ti_startfunc != 0]: Change type
5858 of local variable msym to const struct bound_minimal_symbol.
5859 Adjust use accordingly.
5860 [ti.ti_state == TD_THR_SLEEP]: Likewise.
5862 2013-04-30 Samuel Thibault <samuel.thibault@gnu.org>
5864 * i386gnu-nat.c (CREG_OFFSET): New macro.
5865 (creg_offset): New array.
5866 (CREG_ADDR): Use creg_offset instead of reg_offset.
5868 2013-04-30 Joel Brobecker <brobecker@adacore.com>
5870 * mep-tdep.c (mep_write_pc): Delete.
5871 (mep_gdbarch_init): Remove call to set_gdbarch_write_pc.
5872 Add call to set_gdbarch_pc_regnum.
5874 2013-04-30 Joel Brobecker <brobecker@adacore.com>
5876 * common/filestuff.c: Replace #include <dirent.h> by
5877 #include "gdb_dirent.h".
5879 2013-04-30 Joel Brobecker <brobecker@adacore.com>
5881 * common/filestuff.c: Replace #include <sys/stat.h> by
5882 #include "gdb_stat.h".
5884 2013-04-29 Pierre Muller <muller@sourceware.org>
5886 * dwarf2read.c (handle_DW_AT_stmt_list): Avoid ARI warning for
5887 editCase function rule.
5888 (get_DW_AT_signature_type): Likewise.
5890 2013-04-29 Joel Brobecker <brobecker@adacore.com>
5892 * m32r-tdep.c (m32r_write_pc): Delete.
5893 (m32r_gdbarch_init): Remove call to set_gdbarch_write_pc.
5894 Add call to set_gdbarch_pc_regnum.
5896 2013-04-29 Pierre Muller <muller@sourceware.org>
5898 * ./contrib/ari/gdb_ari.sh (editCase rule): Fix spelling error.
5900 2013-04-29 Joel Brobecker <brobecker@adacore.com>
5902 * dwarf2read.c (get_DW_AT_signature_type): Add ARI marker.
5904 2013-04-28 Yao Qi <yao@codesourcery.com>
5906 * solib-dsbt.c (fetch_loadmap): Re-indent.
5907 (displacement_from_map, enable_break2): Likewise.
5908 (dsbt_relocate_section_addresses): Likewise.
5910 2013-04-26 Joel Brobecker <brobecker@adacore.com>
5914 2013-04-25 Andreas Kaufmann <Andreas.Kaufmann@synopsys.com>
5917 * dwarf2read.c (process_full_comp_unit): Always create a static
5920 2013-04-25 Hui Zhu <hui@codesourcery.com>
5922 * breakpoint.c (build_target_command_list): Change loc->cond_bytecode
5923 to loc->cmd_bytecode.
5925 2013-04-24 Doug Evans <dje@google.com>
5927 * dwarf2read.c (setup_type_unit_groups): Fix comment.
5929 2013-04-22 Keith Seitz <keiths@redhat.com>
5931 * tracepoint.c (trace_save): Call the writer's start method.
5933 2013-04-24 Muhammad Bilal <mbilal@codesourcery.com>
5936 * cli/cli-decode.c (lookup_command): Show an error if there is no space
5939 2013-04-23 Tom Tromey <tromey@redhat.com>
5941 * common/filestuff.c: Check USE_WIN32API before including
5943 (HAVE_F_GETFD): New define.
5944 (mark_cloexec): Check HAVE_F_GETFD.
5945 (gdb_open_cloexec): Change 'mode' to unsigned long.
5946 (gdb_socketpair_cloexec): Check HAVE_SOCKETPAIR.
5947 (gdb_pipe_cloexec): Check HAVE_PIPE.
5948 * common/filestuff.h (gdb_open_cloexec): Change 'mode' to unsigned
5951 2013-04-23 Hui Zhu <hui@codesourcery.com>
5954 * breakpoint.c (bpstat_what): Add BPSTAT_WHAT_SINGLE to bp_dprintf.
5956 2013-04-23 Hui Zhu <hui@codesourcery.com>
5959 * breakpoint.c (dprintf_print_recreate): New.
5960 (save_breakpoints): Let it not save dprintf commands.
5961 (initialize_breakpoint_ops): Set dprintf_print_recreate.
5963 2013-04-22 Tom Tromey <tromey@redhat.com>
5966 * Makefile.in (SFILES): Add filestuff.c
5967 (COMMON_OBS): Add filestuff.o.
5968 (filestuff.o): New target.
5969 * auto-load.c (auto_load_objfile_script_1): Use
5971 * auxv.c (procfs_xfer_auxv): Use gdb_open_cloexec.
5972 * cli/cli-cmds.c (shell_escape): Call close_most_fds.
5973 * cli/cli-dump.c (fopen_with_cleanup): Use gdb_fopen_cloexec.
5974 * common/agent.c (gdb_connect_sync_socket): Use
5976 * common/filestuff.c: New file.
5977 * common/filestuff.h: New file.
5978 * common/linux-osdata.c (linux_common_core_of_thread)
5979 (command_from_pid, commandline_from_pid, print_source_lines)
5980 (linux_xfer_osdata_shm, linux_xfer_osdata_sem)
5981 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Use
5983 * common/linux-procfs.c (linux_proc_get_int)
5984 (linux_proc_pid_has_state): Use gdb_fopen_cloexec.
5985 * config.in, configure: Rebuild.
5986 * configure.ac: Don't check for sys/socket.h. Check for
5988 * corelow.c (core_open): Use gdb_open_cloexec.
5989 * dwarf2read.c (write_psymtabs_to_index): Use gdb_fopen_cloexec.
5990 * fork-child.c (fork_inferior): Call close_most_fds.
5991 * gdb_bfd.c (gdb_bfd_open): Use gdb_open_cloexec.
5992 * inf-child.c (inf_child_fileio_readlink): Use gdb_open_cloexec.
5993 * linux-nat.c (linux_nat_thread_name, linux_proc_pending_signals):
5994 Use gdb_fopen_cloexec.
5995 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use
5997 (linux_async_pipe): Use gdb_pipe_cloexec.
5998 * remote-fileio.c (remote_fileio_func_open): Use
6000 * remote.c (remote_file_put, remote_file_get): Use
6002 * ser-pipe.c (pipe_open): Use gdb_socketpair_cloexec,
6004 * ser-tcp.c (net_open): Use gdb_socket_cloexec.
6005 * ser-unix.c (hardwire_open): Use gdb_open_cloexec.
6006 * solib.c (solib_find): Use gdb_open_cloexec.
6007 * source.c (openp, find_and_open_source): Use gdb_open_cloexec.
6008 * tracepoint.c (tfile_start): Use gdb_fopen_cloexec.
6009 (tfile_open): Use gdb_open_cloexec.
6010 * tui/tui-io.c (tui_initialize_io): Use gdb_pipe_cloexec.
6011 * ui-file.c (gdb_fopen): Use gdb_fopen_cloexec.
6012 * xml-support.c (xml_fetch_content_from_file): Use
6014 * main.c (captured_main): Call notice_open_fds.
6016 2013-04-22 Edjunior Machado <emachado@linux.vnet.ibm.com>
6018 * remote-sim.c (dump_mem): Change the type of 'buf' parameter from
6019 'char *' to 'gdb_byte *'.
6020 (gdbsim_store_register): Change the type of 'tmp' from 'char' to
6023 2013-04-22 Yao Qi <yao@codesourcery.com>
6025 * infrun.c: Fix typo in comment.
6027 2013-04-22 Andrew Haley <aph@redhat.com>
6029 * arm-tdep.c (BranchDest): Cast result as "unsigned long",
6032 2013-04-20 Yao Qi <yao@codesourcery.com>
6034 * ctf.c (ctf_fetch_registers): Change the type of 'regs' from
6035 'char *' to 'gdb_byte *'. Cast the return value of
6036 'bt_ctf_get_char_array' to 'gdb_byte *'.
6038 2013-04-19 Pedro Alves <palves@redhat.com>
6040 * configure.ac (build_warnings): Replace -Wno-pointer-sign with
6042 * configure: Regenerate.
6044 2013-04-19 Pedro Alves <palves@redhat.com>
6046 * ser-tcp.c (net_read_prim): Cast second argument to recv to
6049 2013-04-19 Pedro Alves <palves@redhat.com>
6051 * monitor.c (monitor_write_memory, monitor_write_memory_bytes):
6052 Change type of 'myaddr' parameter to gdb_byte pointer.
6053 (monitor_write_memory_longlongs): Likewise. Cast 'myaddr' pointer
6054 to 'long long' pointer instead of to 'unsigned long long'.
6055 (monitor_write_memory_block, monitor_read_memory_single)
6056 (monitor_read_memory): Change type of 'myaddr' parameter to
6059 2013-04-19 Pedro Alves <palves@redhat.com>
6061 * record.c (validate_history_size): Make parameter 'setting'
6064 2013-04-19 Pedro Alves <palves@redhat.com>
6066 * ctf.c (ctf_write_uploaded_tsv, ctf_write_uploaded_tp): Add casts
6069 2013-04-19 Pedro Alves <palves@redhat.com>
6071 * cp-valprint.c (cp_print_class_member): Change type of 'fieldno'
6074 2013-04-19 Pedro Alves <palves@redhat.com>
6076 * ada-lang.c (print_it_exception): Add cast to gdb_byte *.
6077 * ada-tasks.c (read_fat_string_value): Likewise.
6079 2013-04-19 Pedro Alves <palves@redhat.com>
6081 * dwarf2-frame.c (execute_cfa_program): Make 'bytes_read' local
6082 unsigned. Pass 'tmp' to safe_read_uleb128 instead of the signed
6083 'offset', and adjust.
6085 2013-04-19 Pedro Alves <palves@redhat.com>
6087 * dwarf2read.c (dwarf2_get_dwz_file): Add cast to const char *.
6088 (read_index_from_section): Add cast to 'char *'.
6090 2013-04-19 Pedro Alves <palves@redhat.com>
6092 * xcoffread.c (xcoff_initial_scan): Add cast to 'char *'.
6094 2013-04-19 Pedro Alves <palves@redhat.com>
6096 * coff-pe-read.c (read_pe_exported_syms): Handle strings as char.
6098 2013-04-19 Pedro Alves <palves@redhat.com>
6100 * record-full.c (record_full_get_bookmark): Change local 'ret'
6101 type to char * and add cast to gdb_byte *.
6102 (record_full_goto_bookmark): Handle 'bookmark' argument as a
6104 * reverse.c (goto_bookmark_command): Add casts to gdb_byte *.
6106 2013-04-19 Pedro Alves <palves@redhat.com>
6108 * python/py-inferior.c (infpy_write_memory): Add cast to gdb_byte
6109 * python/py-prettyprint.c (print_string_repr): Change type of
6110 'output' local to char *. Add cast to gdb_byte * in
6111 LA_PRINT_STRING call.
6112 (print_children): Change type of 'output' local to char *.
6113 * python/py-value.c (valpy_string): Add cast to const char * in
6114 PyUnicode_Decode call.
6116 2013-04-19 Pedro Alves <palves@redhat.com>
6118 * remote-mips.c (mips_cksum): Rename 'data' parameter to 'datastr'
6119 and change its type to 'const char *'. Adjust.
6120 (mips_send_packet): Add cast to 'char *', and remove cast to
6122 (mips_receive_packet): Remove cast to 'unsigned char *'.
6123 (mips_load_srec): Use bfd_byte.
6124 (pmon_makeb64, pmon_zeroset): Make 'chksum' parameter unsigned.
6125 (pmon_checkset): Make 'value' parameter unsigned.
6127 2013-04-19 Pedro Alves <palves@redhat.com>
6129 * common/agent.c (agent_run_command): Add cast to gdb_byte *.
6131 2013-04-19 Pedro Alves <palves@redhat.com>
6133 * remote.c (remote_write_bytes_aux, compare_sections_command)
6135 (remote_search_memory, remote_hostio_pwrite, remote_hostio_pread)
6136 (remote_hostio_readlink, remote_bfd_iovec_pread)
6137 (remote_set_trace_notes): Use gdb_byte when RSP buffer is used as
6138 binary buffer, and char when buffer is used as string.
6139 * tracepoint.c (encode_source_string, tfile_write_uploaded_tp)
6140 (trace_save, tfile_open, traceframe_walk_blocks)
6141 (tfile_fetch_registers): Likewise.
6143 2013-04-19 Pedro Alves <palves@redhat.com>
6145 * ser-base.c (ser_base_write): Change prototype -- take 'void *'
6146 buffer and size_t size. Adjust.
6147 * ser-base.h (ser_base_write): Adjust.
6148 * ser-go32.c (cnts): Change type to size_t.
6149 (dos_write): Change prototype -- take 'void *'
6150 buffer and size_t size. Adjust.
6151 (dos_info): Print elements of 'cnts' as unsigned long.
6152 * serial.c (serial_write): Likewise.
6153 * serial.h (serial_write): Adjust.
6154 (struct serial_ops) <write>: Change prototype -- take 'void *'
6155 buffer and size_t size. Adjust.
6157 2013-04-19 Pedro Alves <palves@redhat.com>
6159 * c-lang.c (evaluate_subexp_c): Cast result of obstack_base to
6161 * linux-tdep.c (linux_make_mappings_corefile_notes): Likewise.
6163 2013-04-19 Pedro Alves <palves@redhat.com>
6165 * alpha-tdep.c (alpha_extract_return_value): Use
6166 regcache_cooked_read_unsigned to read 'v0'.
6168 2013-04-19 Pedro Alves <palves@redhat.com>
6170 * xtensa-tdep.c (execute_l32e, execute_s32e): Change type of
6171 parameters 'at', 'as' and 'offset' to uint32_t.
6173 2013-04-19 Pedro Alves <palves@redhat.com>
6175 * aarch64-tdep.c (aarch64_analyze_prologue): Change type of local
6176 'is64' to signed 'int'.
6178 2013-04-19 Pedro Alves <palves@redhat.com>
6180 * s390-tdep.c (is_rs, is_rsy, is_rx, is_rxy): Change type of 'd2'
6183 2013-04-19 Pedro Alves <palves@redhat.com>
6185 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Change local
6186 'insnbuf' buffer type to unsigned int[].
6188 2013-04-19 Pedro Alves <palves@redhat.com>
6190 * mips-tdep.c (mips_read_pc): Change local 'pc' type to LONGEST.
6192 2013-04-19 Pedro Alves <palves@redhat.com>
6194 * mep-tdep.c (mep_get_insn): Change 'insn' parameter type to
6197 2013-04-19 Pedro Alves <palves@redhat.com>
6199 * alpha-tdep.c (heuristic_fence_post): Change type to int.
6200 (alpha_heuristic_proc_start): Adjust to check -1 instead of
6202 * mips-tdep.c (heuristic_fence_post): Change type to int.
6203 (heuristic_proc_start): Adjust to check -1 instead of UINT_MAX.
6205 2013-04-19 Pedro Alves <palves@redhat.com>
6207 * cris-tdep.c (usr_cmd_cris_version): Make unsigned.
6208 (struct gdbarch_tdep) <cris_version>: Make unsigned.
6209 (cris_spec_reg_applicable, cris_gdbarch_init): Adjust locals.
6211 2013-04-19 Pedro Alves <palves@redhat.com>
6213 * avr-tdep.c (avr_io_reg_read_command): New local 'bufstr'. Use
6214 it to get a string view of the byte buffer.
6215 * i386-cygwin-tdep.c (core_process_module_section): Change local 'buf'
6216 type to gdb_byte *. Adjust.
6217 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full):
6218 Change local to char *.
6219 * solib-darwin.c (find_program_interpreter): Change return type to
6221 (darwin_solib_get_all_image_info_addr_at_init): Adjust.
6222 * solib-dsbt.c (enable_break2): Change local 'buf' to char *.
6223 * solib-frv.c (enable_break2): Change local 'buf' to char *.
6224 * solib-spu.c (spu_current_sos): Add gdb_byte * cast.
6225 * solib-svr4.c (find_program_interpreter): Change return type to
6227 (enable_break): Change local 'interp_name' to char *.
6228 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
6229 * spu-tdep.c (spu_pseudo_register_read_spu): Add cast to 'char *'.
6230 (spu_pseudo_register_write_spu): Use char for string buffer.
6232 (info_spu_event_command, info_spu_signal_command): Add casts to
6235 2013-04-19 Pedro Alves <palves@redhat.com>
6237 * aarch64-tdep.c (aarch64_default_breakpoint): Change type to
6239 (aarch64_breakpoint_from_pc): Change return type to gdb_byte *.
6240 * ada-lang.c (ada_value_assign): Use gdb_byte.
6241 * alphanbsd-tdep.c (sigtramp_retcode): Change type to gdb_byte[].
6242 (alphanbsd_sigtramp_offset): Use gdb_byte.
6243 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint)
6244 (arm_linux_arm_be_breakpoint, eabi_linux_arm_le_breakpoint)
6245 (eabi_linux_arm_be_breakpoint, arm_linux_thumb_be_breakpoint)
6246 (arm_linux_thumb_le_breakpoint, arm_linux_thumb2_be_breakpoint)
6247 (arm_linux_thumb2_le_breakpoint): Change type to gdb_byte[].
6248 * arm-tdep.c (arm_stub_unwind_sniffer)
6249 (arm_displaced_init_closure): Use gdb_byte.
6250 (arm_default_arm_le_breakpoint, arm_default_arm_be_breakpoint)
6251 (arm_default_thumb_le_breakpoint)
6252 (arm_default_thumb_be_breakpoint): Change type to gdb_byte[].
6253 * arm-tdep.h (struct gdbarch_tdep) <arm_breakpoint,
6254 thumb_breakpoint, thumb2_breakpoint>: Change type to gdb_byte *.
6255 * arm-wince-tdep.c (arm_wince_le_breakpoint)
6256 (arm_wince_thumb_le_breakpoint): Change type to gdb_byte[].
6257 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint)
6258 (arm_nbsd_arm_be_breakpoint, arm_nbsd_thumb_le_breakpoint)
6259 (arm_nbsd_thumb_be_breakpoint): Change type to gdb_byte[].
6260 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint)
6261 (arm_obsd_thumb_be_breakpoint): Change type to gdb_byte[].
6262 * cris-tdep.c (push_stack_item, cris_push_dummy_call)
6263 (cris_store_return_value, cris_extract_return_value): Use
6265 (constraint): Change type of parameter to char * from signed
6266 char*. Use gdb_byte.
6267 * dwarf2loc.c (read_pieced_value, write_pieced_value): Change type
6268 of local buffer to gdb_byte *.
6269 * dwarf2read.c (read_index_from_section): Use gdb_byte.
6270 (create_dwp_hash_table): Change type of locals to gdb_byte *.
6271 (add_address_entry): Change type of local buffer to gdb_byte[].
6272 * frv-tdep.c (frv_adjust_breakpoint_address, find_func_descr)
6273 (frv_push_dummy_call): Use gdb_byte.
6274 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code)
6275 (hppa_hpux_supply_ss_fpblock, hppa_hpux_supply_ss_wide)
6276 (hppa_hpux_supply_save_state): Use gdb_byte.
6277 * hppa-tdep.c (hppa32_push_dummy_call)
6278 (hppa64_convert_code_addr_to_fptr): Use gdb_byte.
6279 * ia64-tdep.c (extract_bit_field, replace_bit_field)
6280 (slotN_contents, replace_slotN_contents): Change type of parameter
6282 (fetch_instruction, ia64_pseudo_register_write)
6283 (ia64_register_to_value, ia64_value_to_register)
6284 (ia64_extract_return_value, ia64_store_return_value)
6285 (ia64_push_dummy_call): Use gdb_byte.
6286 * m32c-tdep.c (m32c_return_value): Remove cast.
6287 * m68hc11-tdep.c (m68hc11_pseudo_register_write)
6288 (m68hc11_push_dummy_call, m68hc11_store_return_value): Use
6290 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use gdb_byte.
6291 * mn10300-tdep.c (mn10300_store_return_value)
6292 (mn10300_breakpoint_from_pc, mn10300_push_dummy_call): Use
6294 * moxie-tdep.c (moxie_process_readu): Use gdb_byte.
6295 (moxie_process_record): Remove casts.
6296 * ppc-ravenscar-thread.c (supply_register_at_address)
6297 (ppc_ravenscar_generic_store_registers): Use gdb_byte.
6298 * ravenscar-thread.c (get_running_thread_id): Use gdb_byte.
6299 * remote-m32r-sdi.c (m32r_fetch_register): Use gdb_byte.
6300 * remote-mips.c (mips_xfer_memory): Use gdb_byte.
6301 * remote.c (compare_sections_command): Use gdb_byte.
6302 * score-tdep.c (score7_free_memblock): Change type of parameter to
6304 * sh-tdep.c (sh_justify_value_in_reg): Change return type to
6305 gdb_byte *. Use gdb_byte.
6306 (sh_push_dummy_call_fpu): Use gdb_byte.
6307 (sh_extract_return_value_nofpu, sh_extract_return_value_fpu)
6308 (sh_store_return_value_nofpu, sh_store_return_value_fpu)
6309 (sh_register_convert_to_virtual, sh_register_convert_to_raw):
6310 Change parameter type to 'gdb_byte *'. Use gdb_byte.
6311 (sh_pseudo_register_read, sh_pseudo_register_write): Use gdb_byte.
6312 * sh64-tdep.c (sh64_push_dummy_call): Use gdb_byte.
6313 (sh64_store_return_value, sh64_register_convert_to_virtual):
6314 Change parameter type to 'gdb_byte *'. Use gdb_byte.
6315 (sh64_pseudo_register_write): Use gdb_byte.
6316 * solib-darwin.c (darwin_current_sos): Add casts to 'gdb_byte *'.
6317 * solib-irix.c (fetch_lm_info): Likewise. Use gdb_byte for byte
6319 (irix_current_sos): Use gdb_byte.
6320 * solib-som.c (som_current_sos): Use gdb_byte.
6321 * sparc-ravenscar-thread.c (supply_register_at_address)
6322 (sparc_ravenscar_generic_store_registers): Use gdb_byte.
6323 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
6324 * spu-tdep.c (spu_get_overlay_table): Use gdb_byte.
6325 * tic6x-tdep.c (tic6x_breakpoint_from_pc): Change return type to
6327 * tic6x-tdep.h (struct gdbarch_tdep) <breakpoint>: Change type to
6329 * tracepoint.c (tfile_fetch_registers): Use gdb_byte.
6330 * xstormy16-tdep.c (xstormy16_extract_return_value)
6331 (xstormy16_store_return_value): Change parameter type to
6332 'gdb_byte *'. Adjust.
6333 (xstormy16_push_dummy_call): Use gdb_byte.
6334 * xtensa-tdep.c (xtensa_scan_prologue, call0_ret)
6335 (call0_analyze_prologue, execute_code): Use gdb_byte.
6337 2013-04-19 Vladimir Kargov <kargov@gmail.com>
6338 Pedro Alves <palves@redhat.com>
6340 * i387-tdep.c (i387_print_float_info): Use gdb_byte for pointer to
6343 2013-04-17 Doug Evans <dje@google.com>
6345 * dwarf2read.c (struct signatured_type): New member type.
6346 (struct attribute): Replace member signatured_type with signature.
6347 (DW_SIGNATURE): Replaces DW_SIGNATURE_TYPE.
6348 (read_call_site_scope): Call follow_die_ref instead of
6349 follow_die_ref_or_sig.
6350 (read_structure_type): Rewrite handling of signatured types.
6351 (read_enumeration_type): Ditto.
6352 (read_attribute_value): Update.
6353 (build_error_marker_type): New function.
6354 (lookup_die_type): Add assert. Rewrite handling of signatured types.
6355 Don't call error for bad types, just build an error marker type.
6356 (dump_die_shallow): Update.
6357 (follow_die_sig_1): Renamed from follow_die_sig.
6358 Don't call error for bad types, instead return NULL.
6359 (follow_die_sig): New function.
6360 (get_signatured_type, get_DW_AT_signature_type): New functions.
6362 2013-04-17 Yufeng Zhang <yufeng.zhang@arm.com>
6364 * aarch64-tdep.c (aarch64_write_pc): Removed.
6365 (aarch64_gdbarch_init): Remove set_gdbarch_write_pc of the above
6368 2013-04-17 Yao Qi <yao@codesourcery.com>
6370 * top.c (print_gdb_configuration): Print configure-time
6371 parameter on using libbabeltrace or not.
6373 2013-04-16 Pedro Alves <palves@redhat.com>
6375 * copyright.py (EXCLUDE_LIST): Add gdb/common/glibc_thread_db.h.
6377 2013-04-16 Pedro Alves <palves@redhat.com>
6379 * common/glibc_thread_db.h: Update from upstream glibc
6380 (git 568035b7874a099087b77f7bba3e36a1173787b0).
6382 2013-04-16 Pedro Alves <palves@redhat.com>
6384 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: Factor out to ...
6385 * common/glibc_thread_db.h: ... this new file ...
6386 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: ... and include it.
6388 2013-04-16 Will Newton <will.newton@gmail.com>
6389 Pedro Alves <palves@redhat.com>
6393 * common/gdb_thread_db.h (LIBTHREAD_DB_SO)
6394 (LIBTHREAD_DB_SEARCH_PATH): Move outside of #ifdef
6397 2013-04-16 Pedro Alves <palves@redhat.com>
6398 Eli Zaretskii <eliz@gnu.org>
6400 * NEWS: Mention "set foo unlimited".
6402 2013-04-15 Doug Evans <dje@google.com>
6404 * dwarf2read.c (struct dwo_file): Replace member "cus" with "cu".
6405 (struct create_dwo_cu_data): Renamed from create_dwo_info_table_data.
6406 (create_dwo_cu_reader): Renamed from
6407 create_dwo_debug_info_hash_table_reader.
6408 (create_dwo_cu): Renamed from create_dwo_debug_info_hash_table.
6409 Remove support for multiple CUs in a DWO file.
6410 (open_and_init_dwo_file, lookup_dwo_cutu): Update.
6412 * dwarf2read.c (create_debug_types_hash_table): Use hex_string
6414 (lookup_dwo_unit, create_dwo_debug_info_hash_table_reader): Ditto.
6415 (create_dwo_in_dwp): Ditto.
6417 2013-04-15 Tom Tromey <tromey@redhat.com>
6419 * NEWS: Move recent entries into "since 7.6" section.
6421 2013-04-15 Tom Tromey <tromey@redhat.com>
6425 * break-catch-throw.c (struct exception_catchpoint)
6426 <exception_rx, pattern>: New fields.
6427 (fetch_probe_arguments, dtor_exception_catchpoint)
6428 (check_status_exception_catchpoint)
6429 (print_one_detail_exception_catchpoint): New functions.
6430 (handle_gnu_v3_exceptions): Add "except_rx" argument.
6431 Compile regular expression if needed.
6432 (extract_exception_regexp): New function.
6433 (catch_exception_command_1): Use extract_exception_regexp.
6434 (compute_exception): Use fetch_probe_arguments.
6435 (initialize_throw_catchpoint_ops): Set dtor, print_one_detail,
6436 and check_status fields.
6437 * cp-abi.c (cplus_typename_from_type_info): New function.
6438 * cp-abi.h (cplus_typename_from_type_info): Declare.
6439 (struct cp_abi_ops) <get_typename_from_type_info>: New field.
6440 * gdb_regex.h (compile_rx_or_error): Declare.
6441 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info): Update
6443 (init_gnuv3_ops): Set get_type_from_type_info field.
6444 * probe.c (compile_rx_or_error): Move...
6445 * utils.c (compile_rx_or_error): ... here.
6447 2013-04-15 Tom Tromey <tromey@redhat.com>
6451 * break-catch-throw.c (compute_exception): New function.
6452 (exception_funcs): New global.
6453 (_initialize_break_catch_throw): Create $_exception.
6454 * cp-abi.c (cplus_type_from_type_info): New function.
6455 * cp-abi.h (cplus_type_from_type_info): Declare.
6456 (struct cp_abi_ops) <get_type_from_type_info>: New field.
6457 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info)
6458 (gnuv3_get_type_from_type_info): New functions.
6459 (init_gnuv3_ops): Set get_type_from_type_info ABI field.
6461 2013-04-15 Tom Tromey <tromey@redhat.com>
6463 * break-catch-throw.c (struct exception_names): New.
6464 (exception_functions): Change type.
6465 (re_set_exception_catchpoint): Look for SDT probes.
6467 2013-04-15 Tom Tromey <tromey@redhat.com>
6470 * break-catch-throw.c (exception_functions): New global.
6471 (gnu_v3_exception_catchpoint_ops): Move earlier.
6472 (struct exception_catchpoint): New.
6473 (classify_exception_breakpoint): Rewrite.
6474 (re_set_exception_catchpoint): New function.
6475 (handle_gnu_v3_exceptions): Return void. Use init_catchpoint.
6476 Allocate a struct exception_catchpoint.
6477 (catch_exception_command_1): Update.
6478 (initialize_throw_catchpoint_ops): Set 're_set' method.
6480 2013-04-15 Tom Tromey <tromey@redhat.com>
6482 * Makefile.in (SFILES): Add break-catch-throw.c
6483 (COMMON_OBS): Add break-catch-throw.o.
6484 * break-catch-throw.c: New file.
6485 * breakpoint.c: Move exception-catching code to new file.
6486 (ep_parse_optional_if_clause): No longer static.
6487 * breakpoint.h (ep_parse_optional_if_clause): Declare.
6489 2013-04-15 Tom Tromey <tromey@redhat.com>
6493 * breakpoint.c (watchpoint_exp_is_const): Add OP_TYPEID.
6494 * c-exp.y (TYPEID): New token.
6495 (exp): Add new TYPEID productions.
6496 (ident_tokens): Add "typeid".
6497 * cp-abi.c (cplus_typeid, cplus_typeid_type): New functions.
6498 * cp-abi.h (cplus_typeid, cplus_typeid_type): Declare.
6499 (struct cp_abi_ops) <get_typeid, get_typeid_type>: New fields.
6500 * eval.c (evaluate_subexp_standard) <OP_TYPEID>: New case.
6501 * expprint.c (dump_subexp_body_standard) <OP_TYPEID>: New
6503 * gnu-v3-abi.c (std_type_info_gdbarch_data): New global.
6504 (build_std_type_info_type, gnuv3_get_typeid_type)
6505 (gnuv3_get_typeid): New functions.
6506 (init_gnuv3_ops): Initialize std_type_info_gdbarch_data. Set
6507 new fields on ABI object.
6508 * parse.c (operator_length_standard) <OP_TYPEID>: New case.
6509 * std-operator.def (OP_TYPEID): New.
6511 2013-04-15 Tom Tromey <tromey@redhat.com>
6513 * elfread.c (elf_symtab_read): Install versioned symbol under
6514 unversioned name as well.
6516 2013-04-15 Tom Tromey <tromey@redhat.com>
6519 * c-lang.c (cplus_language_defn): Use gdb_demangle.
6520 * c-typeprint.c (c_type_print_base): Use gdb_demangle.
6521 * cp-support.c (mangled_name_to_comp): Use gdb_demangle.
6522 (gdb_demangle): New function.
6523 * cp-support.h (gdb_demangle): Declare.
6524 * dwarf2read.c (dwarf2_physname, fixup_partial_die)
6525 (dwarf2_name): Use gdb_demangle.
6526 * gdbtypes.c (check_stub_method): Use gdb_demangle.
6527 * gnu-v3-abi.c (gnuv3_rtti_type): Strip @plt and version
6529 (gnuv3_print_method_ptr): Use gdb_demangle.
6530 * jv-lang.c (java_demangle): Use gdb_demangle.
6531 * jv-typeprint.c (java_type_print_base): Use gdb_demangle.
6532 * language.c (unk_lang_demangle): Use gdb_demangle.
6533 * symtab.c (symbol_find_demangled_name)
6534 (demangle_for_lookup): Use gdb_demangle.
6536 2013-04-15 Tom Tromey <tromey@redhat.com>
6540 * breakpoint.c (enum exception_event_kind) <EX_EVENT_RETHROW>:
6542 (classify_exception_breakpoint): New function.
6543 (print_it_exception_catchpoint, print_one_exception_catchpoint)
6544 (print_mention_exception_catchpoint)
6545 (print_recreate_exception_catchpoint, handle_gnu_v3_exceptions)
6546 (catch_exception_command_1): Handle "rethrow" catchpoint.
6547 (catch_rethrow_command): New function.
6548 (_initialize_breakpoint): Add "catch rethrow" command.
6550 2013-04-15 Pierre Muller <muller@sourceware.org>
6552 * contrib/ari/gdb_ari.sh (write_pc rule): Do not consider
6553 set_gdbarch_write_pc as deprecated anymore.
6555 2013-04-15 Joel Brobecker <brobecker@adacore.com>
6557 * spu-tdep.c (spu_write_pc): Add empty line after local variable
6560 2013-04-13 Yao Qi <yao@codesourcery.com>
6562 * ctf.c (_initialize_ctf): Include "completer.h".
6563 Call add_target_with_completer instead of add_target.
6565 2013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
6567 Fix GDB regression related to PR binutils/14813.
6568 * jit.c (mem_bfd_iovec_close): Return 0 for success.
6569 * minidebug.c (lzma_close): Add return value comment.
6570 * remote.c (remote_bfd_iovec_close): Return 0 for success.
6571 * solib-spu.c (spu_bfd_iovec_close): Likewise.
6572 * spu-linux-nat.c (spu_bfd_iovec_close): Likewise.
6574 2013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
6576 * config.in: Regenerate.
6578 2013-04-12 Tom Tromey <tromey@redhat.com>
6580 * dwarf2-frame.c (struct comp_unit) <dwarf_frame_buffer>: Now
6582 * dwarf2read.c (struct dwarf2_section_info) <buffer>: Now const.
6583 (struct die_reader_specs) <buffer>: Likewise.
6584 (die_reader_func_ftype): Make 'info_ptr' const.
6585 (struct line_header) <include_dirs, statement_program_start,
6586 statement_program_end>: Now const.
6587 (struct file_entry) <name>: Likewise.
6588 (struct partial_die_info) <sibling>: Likewise.
6589 (struct dwarf_block) <data>: Likewise.
6590 (dwarf2_read_section): Remove cast.
6591 (dwarf2_get_section_info): Make 'bufp' const.
6592 (read_index_from_section): Constify.
6593 (dw2_get_file_names_reader): Make 'info_ptr' const.
6594 (dw2_get_primary_filename_reader): Likewise.
6595 (read_comp_unit_head): Make 'info_ptr' and return type const.
6596 (read_and_check_comp_unit_head, read_and_check_type_unit_head):
6598 (read_abbrev_offset): Constify.
6599 (dwarf2_create_include_psymtab): Make 'name' const.
6600 (create_debug_types_hash_table): Update.
6601 (read_cutu_die_from_dwo): Make 'result_info_ptr' const.
6602 (init_cutu_and_read_dies, init_cutu_and_read_dies_no_follow):
6604 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader)
6605 (load_partial_comp_unit_reader): Make 'info_ptr' const.
6606 (read_comp_units_from_section): Constify.
6607 (peek_abbrev_code, peek_die_abbrev, skip_children, skip_one_die)
6608 (locate_pdi_sibling, load_full_comp_unit_reader): Make 'info_ptr'
6610 (dwarf2_compute_name, setup_type_unit_groups): Constify.
6611 (create_dwo_debug_info_hash_table): Make 'info_ptr' const.
6612 (create_dwp_hash_table, dwarf2_ranges_read)
6613 (dwarf2_record_block_ranges): Constify.
6614 (read_die_and_children, read_die_and_siblings_1)
6615 (read_die_and_siblings): Make 'info_ptr' and 'new_info_ptr'
6617 (read_full_die_1, read_full_die): Make 'info_ptr' const.
6618 (abbrev_table_read_table): Constify.
6619 (load_partial_dies): Make 'info_ptr' const.
6620 (read_partial_die, read_attribute_value, read_attribute): Make
6621 'info_ptr' and return type const.
6622 (read_address, read_initial_length)
6623 (read_checked_initial_length_and_offset, read_offset)
6624 (read_offset_1, read_n_bytes, read_direct_string): Make 'buf'
6626 (read_direct_string): Make 'buf' and return type const.
6627 (read_indirect_string_at_offset, read_indirect_string_from_dwz)
6628 (read_indirect_string): Make return type const.
6629 (read_unsigned_leb128, read_signed_leb128): Make 'buf' const.
6630 (read_addr_index_from_leb128, dwarf2_read_addr_index_reader): Make
6632 (read_str_index): Make return type const.
6633 (add_include_dir): Make 'include_dir' const.
6634 (add_file_name): Make 'name' const.
6635 (dwarf_decode_line_header): Constify.
6636 (psymtab_include_file_name): Make return type const.
6637 (dwarf_decode_lines_1, dwarf_decode_lines): Constify.
6638 (dwarf2_start_subfile): Make 'filename' const.
6639 (dwarf2_const_value_attr): Make 'bytes' const.
6640 (read_signatured_type_reader): Make 'info_ptr' const.
6641 (decode_locdesc): Constify.
6642 (skip_form_bytes): Make 'bytes', 'buffer_end', and return type
6644 (skip_unknown_opcode): Make 'opcode_definitions', 'mac_ptr',
6645 'mac_end', and return type const.
6646 (dwarf_parse_macro_header): Make 'mac_ptr' and return type const.
6647 (dwarf_decode_macro_bytes): Make 'mac_ptr', 'mac_end', and return
6649 (per_cu_header_read_in): Constify.
6650 * symfile.h (dwarf2_get_section_info): Update.
6652 2013-04-12 Tom Tromey <tromey@redhat.com>
6654 * symtab.h (struct general_symbol_info) <value.bytes>: Make const.
6656 2013-04-12 Eli Zaretskii <eliz@gnu.org>
6658 * NEWS: Mention "show configuration", --configuration.
6659 * top.c (print_gdb_configuration): New function, displays the
6660 details about GDB configure-time parameters.
6661 (print_gdb_version): Mention "show configuration".
6662 * cli/cli-cmds.c (show_configuration): New function.
6663 (_initialize_cli_cmds): Add the "show configuration" command.
6664 * main.c (captured_main) <print_configuration>: New static var.
6665 <long_options>: Use it.
6666 If --configuration was given, call print_gdb_configuration.
6668 2013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6669 Pedro Alves <palves@redhat.com>
6671 * Makefile.in (HAVE_NATIVE_GCORE_TARGET): New.
6672 (generated_files): Add gcore.
6673 (install-only, uninstall): Add gcore if HAVE_NATIVE_GCORE_TARGET or
6674 HAVE_NATIVE_GCORE_HOST.
6676 * NEWS (Changes since GDB 7.6): Mention newly installed gcore.
6677 * config/alpha/alpha-osf3.mh, config/i386/fbsd.mh,
6678 config/i386/fbsd64.mh, config/i386/i386gnu.mh, config/i386/i386sol2.mh,
6679 config/i386/sol2-64.mh, config/mips/irix5.mh, config/mips/irix6.mh,
6680 config/powerpc/fbsd.mh, config/sparc/fbsd.mh, config/sparc/sol2.mh:
6681 Add HAVE_NATIVE_GCORE_HOST.
6682 * configure: Regenerate.
6683 * configure.ac (HAVE_NATIVE_GCORE_TARGET): New, set it, AC_SUBST it.
6684 New AC_SUBST fir GDB_TRANSFORM_NAME and GCORE_TRANSFORM_NAME. New
6685 AC_CONFIG_FILES for gcore.
6686 * configure.tgt: Add gdb_have_gcore to the initial comment. Set
6688 * gdb_gcore.sh: Rename to ...
6689 * gcore.in: ... here. Remove gcore.sh comment. Use GDB_TRANSFORM_NAME
6690 and GCORE_TRANSFORM_NAME substitutions.
6692 Fix parsing tabs in ${gdb_target_obs}.
6693 * configure.tgt (gdb_have_gcore): Replace case with for and if.
6695 2013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6697 * remote.c (unpush_and_perror): Add output message final dot.
6699 2013-04-11 Yao Qi <yao@codesourcery.com>
6701 * tracepoint.c (tfile_interp_line): Fit parameters line and
6704 2013-04-10 Joel Brobecker <brobecker@adacore.com>
6706 * solib.c (solib_map_sections): Remove code overwriting
6707 SO->SO_NAME with the bfd's filename.
6709 2013-04-10 Pedro Alves <palves@redhat.com>
6711 * cli/cli-decode.c (integer_unlimited_completer): New function.
6712 (add_setshow_integer_cmd, add_setshow_uinteger_cmd)
6713 (add_setshow_zuinteger_unlimited_cmd): Install the "unlimited"
6715 * cli/cli-setshow.c: Include "cli/cli-utils.h".
6716 (is_unlimited_literal): New function.
6717 (do_set_command): Handle literal "unlimited" arguments.
6718 * frame.c (_initialize_frame) <set backtrace limit>: Document
6720 * printcmd.c (_initialize_printcmd) <set print
6721 max-symbolic-offset>: Add help text.
6722 * record-full.c (_initialize_record_full) <set record full
6723 insn-number-max>: Likewise.
6724 * record.c (_initialize_record) <set record
6725 instruction-history-size, set record function-call-history-size>:
6727 * ser-tcp.c (_initialize_ser_tcp) <set tcp connect-timeout>: Add
6729 * tracepoint.c (_initialize_tracepoint) <set trace-buffer-size>:
6731 * source.c (_initialize_source) <set listsize>: Add help text.
6732 * utils.c (initialize_utils) <set height, set width>: Likewise.
6733 <set pagination>: Mention "set height unlimited".
6734 * valprint.c (_initialize_valprint) <set print elements, set print
6735 repeats>: Document "unlimited".
6737 2013-04-10 Pedro Alves <palves@redhat.com>
6739 * cli/cli-cmds.c (quit_command): Call query_if_trace_running
6740 instead of disconnect_tracing.
6741 * infcmd.c (detach_command, disconnect_command): Call
6742 query_if_trace_running. Adjust.
6743 * top.c: Include "tracepoint.h".
6744 (quit_target): Delete. Contents moved ...
6745 (quit_force): ... here. Wrap each stage of teardown in
6746 TRY_CATCH. Call disconnect_tracing before detaching.
6748 2013-04-10 Hui Zhu <hui@codesourcery.com>
6749 Yao Qi <yao@codesourcery.com>
6751 * configure.ac: Check libbabeltrace is installed.
6752 * config.in: Regenerate.
6753 * configure: Regenerate.
6754 * Makefile.in (LIBBABELTRACE): New.
6755 (CLIBS): Add LIBBABELTRACE.
6756 * ctf.c: Include "exec.h".
6757 (CTF_EVENT_ID_STATUS, CTF_EVENT_ID_TSV_DEF): New macros.
6758 (CTF_EVENT_ID_TP_DEF, ctf_save_write_int32): New macros.
6759 (ctf_save_metadata_header): Define new type aliases in
6761 (ctf_write_header): Define event type "tsv_def" and "tp_def"
6762 in metadata. Start a new faked packet for trace status.
6763 (ctf_write_status): Write trace status to CTF.
6764 (ctf_write_uploaded_tsv): Write TSV to CTF.
6765 (ctf_write_uploaded_tp): Write tracepoint definition to CTF.
6766 (ctf_write_definition_end): End the faked packet.
6768 (ctx, ctf_iter, trace_dirname): New.
6769 (start_pos): New variable.
6770 (ctf_destroy, ctf_open_dir, ctf_open): New.
6771 (SET_INT32_FIELD, SET_ARRAY_FIELD, SET_STRING_FIELD): New
6773 (ctf_read_tsv, ctf_read_tp, ctf_close, ctf_files_info): New.
6774 (ctf_fetch_registers, ctf_xfer_partial): New.
6775 (ctf_get_trace_state_variable_value): New.
6776 (ctf_get_tpnum_from_frame_event): New.
6777 (ctf_get_traceframe_address): New.
6778 (ctf_trace_find, ctf_has_stack): New.
6779 (ctf_has_registers, ctf_traceframe_info, init_ctf_ops): New.
6780 (ctf_get_trace_status, ctf_read_status): New.
6781 (_initialize_ctf): New.
6782 * tracepoint.c (get_tracepoint_number): New
6783 (get_uploaded_tsv): Remove 'static'.
6784 (struct traceframe_info, trace_regblock_size): Move it to ...
6785 * tracepoint.h: ... here.
6786 (get_tracepoint_number): Declare it.
6787 (get_uploaded_tsv): Declare it.
6789 * NEWS: Mention new configure option.
6791 2013-04-10 Pedro Alves <palves@redhat.com>
6792 Hui Zhu <hui@codesourcery.com>
6794 * breakpoint.c (dprintf_re_set): New.
6795 (initialize_breakpoint_ops): Set dprintf_breakpoint_ops re_set
6798 2013-04-09 Joel Brobecker <brobecker@adacore.com>
6800 * configure.tgt (gdb_target_obs) <powerpc-*-aix* | rs6000-*-*>:
6801 Remove solib-svr4.o from the list.
6803 2013-04-09 Joel Brobecker <brobecker@adacore.com>
6805 * varobj.c (update_dynamic_varobj_children) [!HAVE_PYTHON]:
6806 Use gdb_assert_not_reached instead of invalid boolean expression.
6808 2013-04-09 Pedro Alves <palves@redhat.com>
6810 * remote.c (unpush_and_perror): New function.
6811 (readchar, remote_serial_write): Use it.
6813 2013-04-09 Markus Metzger <markus.t.metzger@intel.com>
6815 * NEWS: Mention new btrace RSP packets.
6817 2013-04-08 Tom Tromey <tromey@redhat.com>
6819 * symmisc.c (dump_msymbols): Cast fprintf_filtered argument to
6822 2013-04-08 Tom Tromey <tromey@redhat.com>
6824 * maint.c (print_bfd_section_info): Print the section index.
6825 * symmisc.c (dump_msymbols): Print the section index.
6827 2013-04-08 Tom Tromey <tromey@redhat.com>
6830 * blockframe.c (find_pc_partial_function_gnu_ifunc): Check
6831 SYMBOL_SECTION, not SYMBOL_OBJ_SECTION.
6832 * breakpoint.c (resolve_sal_pc): Update.
6833 * elfread.c (elf_gnu_ifunc_record_cache): Update.
6834 * findvar.c (struct minsym_lookup_data) <objfile>: New field.
6835 (minsym_lookup_iterator_cb): Use it.
6836 (default_read_var_value): Update.
6837 * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline):
6839 * infcmd.c (jump_command): Update.
6840 * linespec.c (minsym_found): Update.
6841 * maint.c (maintenance_translate_address): Update.
6842 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Update.
6843 (prim_record_minimal_symbol_full): Don't set SYMBOL_OBJ_SECTION.
6844 * parse.c (write_exp_msymbol): Update.
6845 * printcmd.c (address_info): Update.
6846 * psymtab.c (find_pc_sect_psymbol): Update.
6847 (fixup_psymbol_section): Check SYMBOL_SECTION, not
6849 (add_psymbol_to_bcache): Correctly initialize SYMBOL_SECTION.
6850 Don't initialize SYMBOL_OBJ_SECTION.
6851 * spu-tdep.c (spu_catch_start): Update.
6852 * stabsread.c (define_symbol): Don't set SYMBOL_SECTION.
6853 * symmisc.c (dump_msymbols, print_symbol): Update.
6854 * symtab.c (fixup_section): Don't set 'obj_section'. Change
6855 how fallback section is computed.
6856 (fixup_symbol_section): Update.
6857 (find_pc_sect_symtab, find_function_start_sal, skip_prologue_sal):
6859 (allocate_symbol, initialize_symbol, allocate_template_symbol):
6860 Initialize SYMBOL_SECTION.
6861 * symtab.h (struct general_symbol_info) <section>: Update comment.
6862 <obj_section>: Remove.
6863 (SYMBOL_OBJ_SECTION): Add 'objfile' argument. Rewrite.
6864 (SYMBOL_OBJFILE): New macro.
6866 2013-04-08 Tom Tromey <tromey@redhat.com>
6868 * coffread.c (record_minimal_symbol): Update.
6869 * dbxread.c (record_minimal_symbol): Update.
6870 * elfread.c (record_minimal_symbol): Update.
6871 * machoread.c (macho_symtab_add_minsym): Update.
6872 * mdebugread.c (record_minimal_symbol, parse_partial_symbols):
6874 * minsyms.c (prim_record_minimal_symbol): Update.
6875 (prim_record_minimal_symbol_full): Remove 'bfd_section'
6877 (prim_record_minimal_symbol_and_info): Likewise.
6878 * minsyms.h (prim_record_minimal_symbol_full)
6879 (prim_record_minimal_symbol_and_info): Update.
6880 * symtab.c (allocate_symbol, initialize_symbol)
6881 (allocate_template_symbol): Initialize SYMBOL_SECTION.
6882 * xcoffread.c (record_minimal_symbol, scan_xcoff_symtab):
6885 2013-04-08 Tom Tromey <tromey@redhat.com>
6888 * solib-som.c (som_solib_section_offsets): Use BFD section
6889 indices. Set offsets for all sections.
6890 * somread.c (som_symtab_read): Compute BFD section for
6891 symbol. Use prim_record_minimal_symbol_and_info.
6892 (som_symfile_read): Fix comment.
6893 (struct find_section_offset_arg): New.
6894 (find_section_offset, set_section_index): New functions.
6895 (som_symfile_offsets): Use set_section_index to compute
6898 2013-04-08 Tom Tromey <tromey@redhat.com>
6900 * coffread.c (cs_to_section): Use gdb_bfd_section_index.
6901 * elfread.c (record_minimal_symbol, elf_symtab_read): Use
6902 gdb_bfd_section_index.
6903 * gdb_bfd.c (gdb_bfd_section_index, gdb_bfd_count_sections):
6905 * gdb_bfd.h (gdb_bfd_section_index, gdb_bfd_count_sections):
6907 * machoread.c (macho_symtab_add_minsym, macho_symfile_offsets):
6909 * objfiles.c (add_to_objfile_sections_full): New function.
6910 (add_to_objfile_sections): Use it.
6911 (build_section_table): Rewrite.
6912 (objfile_relocate1): Use gdb_bfd_section_index. Update.
6913 * objfiles.h (obj_section_offset): Use gdb_bfd_section_index.
6914 (struct objfile) <sections>: Update comment.
6915 (ALL_OBJFILE_OSECTIONS): Skip sections where the_bfd_section
6917 (ALL_OBJSECTIONS): Use it.
6918 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
6919 * solib-frv.c (frv_relocate_main_executable): Update.
6920 * solib-target.c (solib_target_relocate_section_addresses):
6921 Use gdb_bfd_section_index.
6922 * symfile.c (build_section_addr_info_from_section_table):
6923 Use gdb_bfd_section_index.
6924 (build_section_addr_info_from_bfd, place_section): Likewise.
6925 * symtab.c (fixup_section): Update.
6926 * xcoffread.c (find_targ_sec): Use gdb_bfd_section_index.
6928 2013-04-08 Tom Tromey <tromey@redhat.com>
6930 * minsyms.h (struct bound_minimal_symbol): New.
6931 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
6932 Remove objfile argument.
6933 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
6934 Return bound_minimal_symbol.
6935 * minsyms.c (lookup_minimal_symbol_by_pc_1)
6936 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
6937 Return bound_minimal_symbol.
6938 (in_gnu_ifunc_stub): Update.
6939 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
6940 Remove 'objfile_p' argument.
6941 (lookup_solib_trampoline_symbol_by_pc): Update.
6942 * ada-tasks.c, amd64-windows-tdep.c, arm-tdep.c,
6943 arm-wince-tdep.c, block.c, blockframe.c, breakpoint.c, btrace.c,
6944 c-valprint.c, dwarf2loc.c, elfread.c, frame.c, frv-tdep.c,
6945 glibc-tdep.c, gnu-v2-abi.c, gnu-v3-abi.c, hppa-hpux-tdep.c,
6946 i386-tdep.c, ia64-tdep.c, infcall.c, infcmd.c, jit.c,
6947 linux-fork.c, m32c-tdep.c, m68hc11-tdep.c, maint.c,
6948 mips-tdep.c, p-valprint.c, parse.c, ppc-linux-tdep.c,
6949 ppc-sysv-tdep.c, printcmd.c, rs6000-tdep.c, sh64-tdep.c,
6950 stack.c, symtab.c, tui/tui-disasm.c: Update.
6952 2013-04-08 Tom Tromey <tromey@redhat.com>
6954 * ada-lang.c (ada_decode_symbol): Check and set 'ada_mangled'.
6955 Use symbol's obstack, not an objfile.
6956 * coffread.c (process_coff_symbol): Update.
6957 * dwarf2read.c (fixup_go_packaging, new_symbol_full): Update.
6958 * jv-lang.c (add_class_symbol): Update.
6959 * mdebugread.c (new_symbol): Update.
6960 * minsyms.c (prim_record_minimal_symbol_full)
6961 (terminate_minimal_symbol_table): Update.
6962 * psymtab.c (add_psymbol_to_bcache): Clear entire symbol. Update.
6963 * stabsread.c (define_symbol, read_enum_type): Update.
6964 * symtab.c (symbol_set_demangled_name, symbol_get_demangled_name):
6965 Handle Ada specially.
6966 (symbol_set_language): Add 'obstack' argument.
6967 (symbol_set_names): Update.
6968 (symbol_natural_name, symbol_demangled_name): Always use
6970 * symtab.h (struct general_symbol_info)
6971 <language_specific::obstack>: New field.
6972 <ada_mangled>: New field.
6973 (SYMBOL_SET_LANGUAGE): Add 'obstack' argument.
6974 (symbol_set_language): Update.
6976 2013-04-08 Tom Tromey <tromey@redhat.com>
6978 * symtab.c (symbol_init_cplus_specific, symbol_set_demangled_name):
6979 Take an obstack, not an objfile.
6980 (symbol_set_names): Update.
6981 * symtab.h (symbol_set_demangled_name): Update.
6983 2013-04-08 Tom Tromey <tromey@redhat.com>
6985 * coffread.c (process_coff_symbol, coff_read_enum_type): Call
6987 * dwarf2read.c (fixup_go_packaging): Call allocate_symbol.
6988 (read_func_scope): Call allocate_template_symbol.
6989 (new_symbol_full): Call allocate_symbol.
6990 * jit.c (finalize_symtab): Call allocate_symbol.
6991 * jv-lang.c (add_class_symbol): Call allocate_symbol.
6992 * mdebugread.c (parse_symbol, new_block): Call allocate_symbol.
6993 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
6994 (common_block_end): Call allocate_symbol.
6995 * symtab.c (allocate_symbol, initialize_symbol)
6996 (allocate_template_symbol): New functions.
6997 * symtab.c (allocate_symbol, initialize_symbol)
6998 (allocate_template_symbol): Declare.
6999 * xcoffread.c (process_xcoff_symbol): Call initialize_symbol.
7001 2013-04-08 Pedro Alves <palves@redhat.com>
7002 Keith Seitz <keiths@redhat.com>
7004 * breakpoint.c (create_breakpoint): Rename
7005 "parse_condition_and_thread" parameter to "parse_arg". Update
7006 describing comment. If !PARSE_ARG, then error out if ARG is not
7007 the empty string after extracting the location.
7008 * breakpoint.h (create_breakpoint): Rename
7009 "parse_condition_and_thread" parameter to "parse_arg".
7011 2013-04-08 Aleksandar Ristovski <aristovski@qnx.com
7013 * solib-svr4.c (lm_addr_check): Add const qualifier to 'so' arg.
7015 2013-04-07 Yao Qi <yao@codesourcery.com>
7017 * remote.c (remote_trace_find): Change type of parameters 'addr1'
7018 and 'addr2' to CORE_ADDR.
7019 * target.c (update_current_target): Update.
7020 * target.h (struct target_ops) <to_trace_find>: Change parameter
7022 * tracepoint.c (tfind_1): Change type of parameters 'addr1' and
7023 'addr2' to CORE_ADDR.
7024 (tfile_trace_find): Likewise.
7025 (tfile_get_traceframe_address): Change return type to CORE_ADDR.
7026 Change local variable 'addr' to type CORE_ADDR.
7027 * tracepoint.h (tfind_1): Update declaration.
7029 2013-04-06 Eli Zaretskii <eliz@gnu.org>
7031 * windows-nat.c (windows_get_absolute_argv0): Move from here...
7032 * mingw-hdep.c (windows_get_absolute_argv0): ...to here.
7035 * windows-nat.h (windows_get_absolute_argv0): Move prototype from
7037 * main.h (windows_get_absolute_argv0): ...to here.
7039 2013-04-05 Doug Evans <dje@google.com>
7041 * dwarf2read.c (struct dwarf2_per_objfile): Tweak comment.
7042 (read_cutu_die_from_dwo): Add comments.
7043 (read_structure_type): Update comment.
7044 (read_enumeration_type, read_namespace_type): Update comment.
7045 (read_die_type, get_die_type_at_offset, get_die_type): Update comment.
7047 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7049 Convert man pages to texinfo, new gdbinit.5 texinfo page.
7050 * Makefile.in (gdb.z): Remove.
7051 (install-only): Remove $(man1dir) and gdb.1 installation.
7054 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7056 Fix compatibility with Linux kernel 3.8.3.
7057 * linux-tdep.c (linux_find_memory_regions_full): Move variable number
7058 to more inner block. Remove parsing of NUMBER from outer block.
7059 Parse NUMBER only if KEYWORD has been identified.
7061 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7063 Fix variable name shadowing.
7064 * linux-tdep.c (linux_find_memory_regions_full): Rename outer variable
7065 filename to mapsfilename and update its uses.
7067 2013-04-05 Eli Zaretskii <eliz@gnu.org>
7069 * Makefile.in (TAGS): Avoid warning from etags when $GDB_NM_FILE is
7070 empty. See http://sourceware.org/ml/gdb-patches/2012-08/msg00504.html
7071 and http://sourceware.org/ml/gdb-patches/2013-04/msg00055.html for
7072 details of the problem.
7074 2013-04-04 Pedro Alves <palves@redhat.com>
7075 Hui Zhu <hui@codesourcery.com>
7077 * breakpoint.c (validate_commands_for_breakpoint): If validating a
7078 tracepoint, reset its STEP_COUNT and call validate_actionline.
7080 2013-04-03 Doug Evans <dje@google.com>
7082 * dwarf2read.c (read_die_and_siblings_1): Renamed from
7083 read_die_and_siblings.
7084 (read_die_and_siblings): New function.
7085 (read_cutu_die_from_dwo): Dump die if requested.
7086 (read_die_and_children): Call read_full_die_1 and
7087 read_die_and_siblings_1.
7088 (read_full_die): Dump die if requested.
7090 * dwarf2read.c (read_comp_units_from_section): Add debugging printf.
7092 * dwarf2read.c (struct dwo_file): New member comp_dir.
7093 Rename member name to dwo_name. All uses updated.
7094 (hash_dwo_file): Include comp_dir in computation.
7095 (eq_dwo_file): Ditto.
7096 (lookup_dwo_file_slot): New arg comp_dir. All callers updated.
7097 (create_dwo_in_dwp, lookup_dwo_in_dwp, open_and_init_dwo_file): Ditto.
7099 * psymtab.c (read_psymtabs_with_fullname): Don't call
7100 psymtab_to_fullname if the basenames are different.
7102 2013-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7104 * NEWS (Changes in GDB 7.6): Update the data-disassemble for "fullname".
7105 New entry about "fullname" presence.
7107 2013-04-03 Pedro Alves <palves@redhat.com>
7109 * NEWS: Mention x86_64/Cygwin as new native configuration.
7111 2013-04-02 Doug Evans <dje@google.com>
7113 * dwarf2read.c (read_structure_type): Fix typo in comment.
7115 2013-04-02 Pedro Alves <palves@redhat.com>
7117 * NEWS: Mention "set/show debug aarch64", "set/show debug
7118 coff-pe-read" and "set/show debug mach-o".
7120 2013-04-02 Pedro Alves <palves@redhat.com>
7122 * NEWS: Mention "set/show remote trace-buffer-size-packet".
7124 2013-04-02 Eli Zaretskii <eliz@gnu.org>
7126 * Makefile.in (HFILES_NO_SRCDIR): Remove call-cmds.h.
7127 gdb_string.h is now in common/.
7129 2013-04-02 Pedro Alves <palves@redhat.com>
7131 * NEWS: Move "set debug notification" and "set trace-buffer-size"
7132 under "New options".
7134 2013-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7138 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
7140 2013-04-02 Pedro Alves <palves@redhat.com>
7144 * remote.c (send_interrupt_sequence): Use remote_serial_write.
7145 (remote_serial_write): New function.
7146 (putpkt_binary, getpkt_or_notif_sane_1): Use remote_serial_write.
7148 2013-04-01 Jiong Wang <jiwang@tilera.com>
7150 * NEWS: Mention TILE-Gx in "New native configurations" and
7151 "New targets" sections.
7153 2013-04-01 Doug Evans <dje@google.com>
7155 * dwarf2read.c (lookup_signatured_type_at_offset): Delete.
7156 (process_enumeration_scope): Simplify.
7158 * dwarf2read.c (struct dwarf2_per_cu_data): Move member
7160 (struct signatured_type): ... to here.
7161 (sig_type_ptr): New typedef.
7162 (type_unit_group): Delete member 't.first_cu'. Move member 'tus'
7163 out of union 't'. All uses updated.
7164 (dw2_get_file_names_reader): Assert not called for a type unit.
7165 (dw2_get_file_names): Assert not called for a type unit or type
7167 (build_type_psymtabs_reader): Assert called for a type unit.
7168 (build_type_psymtab_dependencies): Assert called for a type unit group.
7170 * dwarf2read.c (free_dwo_file): Add comment.
7171 (dwarf2_per_objfile_free): Unref dwp bfd.
7173 2013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
7175 * coff-pe-read.c (add_pe_exported_sym): Remove unused 'dll_name_len'.
7176 (add_pe_forwarded_sym): Remove unused 'section', 'dll_name_len'.
7177 (read_pe_exported_syms): Remove unused 'exportix'.
7178 (pe_text_section_offset): Remove unused 'opthdr_ofs', 'num_entries',
7179 'export_rva', 'export_size', 'expptr', 'exp_funcbase', 'expdata',
7180 'erva', 'name_rvas', 'ordinals', 'nexp', 'ordbase', 'dll_name'.
7182 2013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
7184 * breakpoint.c (parse_cond_to_aexpr): Remove unused 'old_chain'.
7185 (print_it_watchpoint): Remove unused 'bl'.
7186 (say_where): Remove unused 'uiout'.
7187 (bpstat_remove_breakpoint_callback): Remove unused 'uiout'.
7188 (bkpt_breakpoint_hit): Remove unused 'b'.
7189 (internal_bkpt_print_it): Remove unused 'uiout'.
7190 * buildsym.c (augment_type_symtab): Remove unused 'i'.
7192 2013-03-31 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
7194 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_float): New function.
7195 (ppc64_sysv_abi_push_dummy_call): Handle complex arguments.
7197 2013-03-29 Doug Evans <dje@google.com>
7199 * dwarf2read.c (open_dwo_file): Renamed from open_dwop_file.
7200 Delete arg is_dwp. All callers updated.
7201 (open_dwp_file): New function.
7202 (open_and_init_dwp_file): Call it.
7203 (get_dwp_file): New function.
7204 (lookup_dwo_cutu): Call it.
7206 * dwarf2read.c (open_and_init_dwp_file): Remove incorrect, and
7207 unnecessary, cleanup.
7209 * dwarf2read.c (lookup_dwo_cutu): Improve complaint text.
7211 * dwarf2read.c (read_cutu_die_from_dwo): New function.
7212 (lookup_dwo_unit): New function.
7213 (init_cutu_and_read_dies): Move DWO handling to new functions.
7215 * dwarf2read.c (struct signatured_type): Tweak comment.
7216 (struct dwo_unit): Tweak comment.
7217 (create_debug_types_hash_table): Tweak comment. Reformat long line.
7218 (create_dwo_debug_info_hash_table): Tweak comment.
7219 (dwarf2_per_cu_offset_and_type): Tweak comment.
7221 * dwarf2read.c (lookup_signatured_type): Remove complaint about
7222 missing .debug_types section.
7224 2013-03-29 Yao Qi <yao@codesourcery.com>
7226 * corelow.c: Include "completer.h".
7227 (_initialize_corelow): Call add_target_with_completer with
7228 argument 'filename_completer'.
7229 * tracepoint.c: Likewise.
7230 * exec.c (_initialize_exec): Likewise.
7231 * target.c (add_target): Rename to ...
7232 (add_target_with_completer): ... this. Call set_cmd_completer
7233 if parameter completer is not NULL.
7235 * target.h: Include "command.h".
7236 (add_target_with_completer): Declare it.
7238 2013-03-28 Joel Brobecker <brobecker@adacore.com>
7240 * coffread.c (is_import_fixup_symbol): New function.
7241 (record_minimal_symbol): Use is_import_fixup_symbol to
7242 detect import fixup symbols, and discard them.
7244 2013-03-28 Doug Evans <dje@google.com>
7246 * dwarf2read.c (create_debug_types_hash_table): Don't allocate the
7247 types hash table until we know we need it.
7249 * dwarf2read.c (create_addrmap_from_index): Complain about bad CU
7252 * dwarf2read.c (dw2_get_file_names): Delete arg "objfile".
7253 All callers updated.
7254 (dw2_print_stats): Print #read CUs too.
7255 (dump_die_shallow): Print signatured types better.
7257 * dwarf2read.c (struct dwarf2_per_cu_data): Rename member
7258 info_or_types_section to section. All uses updated.
7259 (struct dwo_unit): Ditto.
7261 2013-03-28 Pedro Alves <palves@redhat.com>
7263 * NEWS (New options): New section.
7264 (New options): Mention set/show remote trace-status-packet.
7265 * remote.c (PACKET_qTStatus): New enumeration value.
7266 (remote_get_trace_status): Skip sending qTStatus if the packet is
7267 disabled. Use packet_ok.
7268 (_initialize_remote): Register a configuration command for
7271 2013-03-28 Doug Evans <dje@google.com>
7273 * symfile.c (find_separate_debug_file): Add comment.
7274 (terminate_after_last_dir_separator): Tweak comment.
7276 * dwarf2read.c (create_partial_symtab): Add forward decl.
7277 (create_partial_symtab): Move to be closer to other psymtab functions.
7278 (process_psymtab_comp_unit_reader, process_psymtab_comp_unit): Ditto.
7280 * dwarf2read.c (dwarf2_physname): Move declaration to better spot.
7281 (compute_symtab_includes): Remove unnecessary forward declaration.
7282 (die_needs_namespace): Add comment marking group of functions for
7283 dwarf2 name computation.
7285 * typeprint.c (_initialize_typeprint): Improve type help text.
7287 * python/python.c (finish_python_initialization): Provide suggestion
7288 for how to tell gdb to find its python files.
7290 2013-03-28 Pedro Alves <palves@redhat.com>
7294 * source.c (_initialize_source): Change back "set listsize" to an
7297 2013-03-27 Gareth McMullin <gareth@blacksphere.co.nz>
7300 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
7302 2013-03-27 Pedro Alves <palves@redhat.com>
7304 * top.c (history_size): Rename to ...
7305 (history_size_setshow_var): ... this. Add comment.
7306 (show_commands): Use readline's 'history_length' instead of
7307 computing the history length by calling history_get in a loop.
7308 (set_history_size_command): Error out for sizes over INT_MAX.
7309 Restore previous history size on invalid size.
7310 (init_history): If HISTSIZE is negative, leave the history size as
7312 (init_main): Adjust.
7314 2013-03-27 Pedro Alves <palves@redhat.com>
7316 * coff-pe-read.c (_initialize_coff_pe_read): Rename "set debug
7317 coff_pe_read" command to "set debug coff-pe-read".
7319 2013-03-27 Markus Metzger <markus.t.metzger@intel.com>
7321 * record.c (command_size_to_target_size): Fix size comparison.
7322 Change parameter type from pointer to integer to integer.
7325 2013-03-27 Pierre Muller <muller@sourceware.org>
7327 * windows-nat.c (handle_output_debug_string): Avoid typecast
7328 from integer of different size warning.
7330 2013-03-26 Joel Brobecker <brobecker@adacore.com>
7332 * windows-nat.c (handle_output_debug_string): Add empty line
7333 after local block variable definition.
7335 2013-03-26 Pedro Alves <palves@redhat.com>
7337 * ser-tcp.c (wait_for_connect): Make 'polls' parameter unsigned.
7338 (net_open): Make 'polls' local unsigned.
7340 2013-03-26 Pedro Alves <palves@redhat.com>
7342 * remote.c (_initialize_remote): Make "set remoteaddresssize"
7343 a zuinteger command instead of uinteger.
7345 2013-03-26 Pedro Alves <palves@redhat.com>
7347 * record-full.c (record_full_insn_num): Make it unsigned.
7348 (record_full_check_insn_num, record_full_message)
7349 (record_full_registers_change, record_full_xfer_partial): Remove
7350 record_full_insn_max_num check (it's always != 0).
7351 (record_full_info, record_full_restore): Use %u as format string.
7352 (): Use %u as format string.
7353 (set_record_full_insn_max_num): Remove record_full_insn_max_num
7354 check (it's always != 0).
7356 2013-03-26 Pedro Alves <palves@redhat.com>
7358 * dcache.c (_initialize_dcache): Make the "set dcache line-size"
7359 and "set dcache size" commands zuinteger instead of uinteger.
7361 2013-03-26 Pedro Alves <palves@redhat.com>
7363 * cris-tdep.c (_initialize_cris_tdep): Make the "set cris-version"
7364 command zuinteger instead of uinteger.
7366 2013-03-26 Pedro Alves <palves@redhat.com>
7368 * coff-pe-read.c (_initialize_coff_pe_read): Make the command
7369 zuinteger instead of uinteger.
7371 2013-03-26 Pedro Alves <palves@redhat.com>
7373 * record.c (record_insn_history_size_setshow_var)
7374 (record_call_history_size_setshow_var): New globals.
7375 (command_size_to_target_size): New function.
7376 (cmd_record_insn_history, cmd_record_call_history): Use
7377 command_size_to_target_size instead of cast.
7378 (validate_history_size, set_record_insn_history_size)
7379 (set_record_call_history_size): New functions.
7380 (_initialize_record): Install set_record_insn_history_size and
7381 set_record_call_history_size as "set" hooks of "set record
7382 instruction-history-size" and "set record
7383 function-call-history-size".
7385 2013-03-26 Pedro Alves <palves@redhat.com>
7387 * top.c (gdb_rl_operate_and_get_next): Replace max_input_history
7388 use with history_max_entries use. Remove FIXME note.
7390 2013-03-26 Markus Metzger <markus.t.metzger@intel.com>
7392 * record-btrace.c (record_btrace_close): Call
7393 record_btrace_auto_disable.
7395 2013-03-25 Joel Brobecker <brobecker@adacore.com>
7397 * rs6000-nat.c (fixup_breakpoints): Delete declaration.
7399 2013-03-25 Doug Evans <dje@google.com>
7401 * contrib/cc-with-tweaks.sh: Check exit code of dwp.
7403 2013-03-25 Tom Tromey <tromey@redhat.com>
7406 * c-exp.y (exp): Add new productions for destructors after '.' and
7408 (write_destructor_name): New function.
7410 2013-03-25 Tom Tromey <tromey@redhat.com>
7413 * opencl-lang.c (evaluate_subexp_opencl) <STRUCTOP_STRUCT>: Use
7414 value_struct_elt, not lookup_struct_elt_type.
7415 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
7416 STRUCTOP_PTR>: Use value_struct_elt, not lookup_struct_elt_type.
7417 * expression.h (EVAL_AVOID_SIDE_EFFECTS): Update comment.
7419 2013-03-25 Yao Qi <yao@codesourcery.com>
7421 * ctf.c [USE_WIN32API]: Undef 'mkdir' and use 'mkdir'
7422 instead of '_mkdir'.
7424 2013-03-23 Eli Zaretskii <eliz@gnu.org>
7426 * windows-nat.c (windows_get_absolute_argv0): New function.
7427 * windows-nat.h: Add its prototype.
7429 * main.c (get_init_files): Use filename_ncmp instead of strncmp.
7430 Use IS_DIR_SEPARATOR instead of looking for a character inside
7431 SLASH_STRING. Include filenames.h.
7432 (captured_main) [__MINGW32__]: Make argv[0] absolute, so that
7433 relocate_gdb_directory works when passed gdb_program_name.
7434 Include windows-nat.h.
7436 2013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7438 * exceptions.h (enum errors): New entry TARGET_CLOSE_ERROR.
7439 * remote.c (trace_error): Remove the special handling of '2'.
7440 (readchar) <SERIAL_EOF>
7441 (readchar) <SERIAL_ERROR>
7442 (getpkt_or_notif_sane_1): Use TARGET_CLOSE_ERROR for them.
7443 (remote_get_trace_status): Call throw_exception if EX is
7445 * utils.c (perror_with_name): Rename to ...
7446 (throw_perror_with_name): ... here. New parameter errcode, describe it
7447 in the function comment.
7448 (perror_with_name): New function wrapper.
7449 * utils.h (enum errors): New stub declaration.
7450 (throw_perror_with_name): New declaration.
7452 2013-03-22 Pedro Alves <palves@redhat.com>
7453 Yao Qi <yao@codesourcery.com>
7454 Mark Kettenis <kettenis@gnu.org>
7456 * cli/cli-setshow.c (do_set_command) <var_uinteger>:
7457 Don't let the user set the value to UINT_MAX directly.
7458 <var_integer>: Don't let the user set the value to INT_MAX
7461 2013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7463 * remote.c (remote_unpush_target): New function.
7464 (remote_open_1): Remove two pop_target calls, update one comment, add
7465 comment to target_preopen call. Replace pop_target call by
7466 remote_unpush_target call.
7467 (interrupt_query, readchar, getpkt_or_notif_sane_1): Replace
7468 pop_target calls by remote_unpush_target calls.
7470 2013-03-22 Pedro Alves <palves@redhat.com>
7472 * linux-nat.c (linux_child_follow_fork): Don't call
7473 linux_enable_event_reporting.
7474 (linux_handle_extended_wait): Don't call
7475 linux_enable_event_reporting.
7477 2013-03-22 Pedro Alves <palves@redhat.com>
7479 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Define INSN macro,
7480 use it to rewrite the trampoline buffers with type gdb_byte[], and
7481 undefine the macro. Remove char* cast.
7483 2013-03-21 Doug Evans <dje@google.com>
7485 New commands "mt set per-command {space,time,symtab} {on,off}".
7487 * event-top.c: #include "maint.h".
7488 * main.c: #include "maint.h".
7489 * maint.c: #include <sys/time.h>, <time.h>, block.h, top.h,
7490 timeval-utils.h, maint.h, cli/cli-setshow.h.
7491 (per_command_time, per_command_space): New static globals.
7492 (per_command_symtab): New static global.
7493 (per_command_setlist, per_command_showlist): New static globals.
7494 (struct cmd_stats): Move here from utils.c.
7495 (set_per_command_time): Renamed from set_display_time in utils.c
7496 and moved here. All callers updated.
7497 (set_per_command_space): Renamed from set_display_space in utils.c
7498 and moved here. All callers updated.
7499 (count_symtabs_and_blocks): New function.
7500 (report_command_stats): Moved here from utils.c. Add support for
7501 printing symtab stats. Only print data if enabled before command
7503 (make_command_stats_cleanup): Ditto.
7504 (sert_per_command_cmd, show_per_command_cmd): New functions.
7505 (_initialize_maint_cmds): Add new commands
7506 mt set per-command {space,time,symtab} {on,off}.
7507 * maint.h: New file.
7508 * top.c: #include "maint.h".
7509 * utils.c (reset_prompt_for_continue_wait_time): New function.
7510 (get_prompt_for_continue_wait_time): New function.
7511 * utils.h (reset_prompt_for_continue_wait_time): Declare
7512 (get_prompt_for_continue_wait_time): Declare.
7513 (make_command_stats_cleanup): Moved to maint.h.
7514 (set_display_time, set_display_space): Moved to maint.h and renamed
7515 to set_per_command_time, set_per_command_space.
7516 * cli/cli-setshow.c (parse_cli_boolean_value): Renamed from
7517 parse_binary_operation and made non-static. Don't call error,
7518 just return an error marker. All callers updated.
7519 * cli/cli-setshow.h (parse_cli_boolean_value): Declare.
7521 2013-03-21 Tom Tromey <tromey@redhat.com>
7523 * symfile.c (alloc_section_addr_info): Update header. Don't set
7524 'num_sections' field.
7525 (build_section_addr_info_from_section_table): Set 'num_sections'.
7526 (build_section_addr_info_from_bfd): Likewise.
7527 (build_section_addr_info_from_objfile): Remove dead loop
7529 (free_section_addr_info): Unconditionally call xfree.
7530 (relative_addr_info_to_section_offsets, addrs_section_sort)
7531 (addr_info_make_relative, syms_from_objfile_1): Remove dead loop
7533 (syms_from_objfile_1): Remove dead 'if' condition. Check
7535 (add_symbol_file_command): Set 'num_sections'.
7536 * symfile-mem.c (symbol_file_add_from_memory): Set
7538 * somread.c (som_symfile_offsets): Remove dead loop condition.
7539 * machoread.c (macho_symfile_offsets): Remove dead 'if'.
7540 * jit.c (jit_bfd_try_read_symtab): Set 'num_sections'.
7542 2013-03-21 Tom Tromey <tromey@redhat.com>
7544 * tracepoint.h (decode_agent_options): Add 'trace_string'
7546 * tracepoint.c (decode_agent_options): Add 'trace_string'
7548 (validate_actionline): Update.
7549 (collect_symbol): Add 'trace_string' argument.
7550 (struct add_local_symbols_data) <trace_string>: New field.
7551 (do_collect_symbol): Update.
7552 (add_local_symbols): Add 'trace_string' argument.
7553 (encode_actions_1): Update.
7554 (trace_dump_actions): Update.
7555 * dwarf2loc.c (access_memory): Update.
7556 * ax.h (struct agent_expr) <tracing, trace_string>: New fields.
7557 * ax-general.c (new_agent_expr): Update.
7558 * ax-gdb.h (gen_trace_for_expr, gen_trace_for_var)
7559 (gen_trace_for_return_address): Add argument.
7560 (trace_kludge, trace_string_kludge): Remove.
7561 * ax-gdb.c (trace_kludge, trace_string_kludge): Remove.
7562 (gen_traced_pop, gen_fetch, gen_bitfield_ref, gen_expr): Update.
7563 (gen_trace_for_var): Add 'trace_string' argument.
7564 (gen_trace_for_expr, gen_trace_for_return_address): Likewise.
7565 (gen_printf, agent_eval_command_one): Update.
7567 2013-03-21 Tom Tromey <tromey@redhat.com>
7570 * c-exp.y (yylex): Rewrite to push all tokens onto the FIFO.
7571 Handle FILENAME token.
7573 2013-03-21 Tom Tromey <tromey@redhat.com>
7575 * c-exp.y (YYPRINT): Define.
7576 (c_print_token): New function.
7578 2013-03-21 Tom Tromey <tromey@redhat.com>
7580 * c-exp.y (%union) <sym, ivar, ivec>: Remove.
7582 2013-03-21 Yao Qi <yao@codesourcery.com>
7584 * ctf.c: Include "gdb_stat.h".
7585 [USE_WIN32API]: New macro 'mkdir'.
7586 (ctf_start): Use permission bits macros if they are defined.
7588 2013-03-20 Keith Seitz <keiths@redhat.com>
7590 * breakpoint.h (struct breakpoint): Add comment to
7591 extra_string indicating that this member is mallod'd.
7592 * breakpoint.c (base_breakpoint_dtor): Free extra_string.
7594 2013-03-20 Pedro Alves <palves@redhat.com>
7598 * cli/cli-setshow.c (do_set_command)
7599 <var_uinteger, var_zuinteger>: Use LONGEST for variable holding
7600 the result of parsing the command argument. Throw error if the
7601 value is greater than UINT_MAX. Print the invalid value with
7603 <var_integer, var_zinteger>: Use LONGEST for variable holding the
7604 result of parsing the command argument. Throw error if the value
7605 is greater than INT_MAX, not greater or equal. Also throw error
7606 if the value is less than INT_MIN. Print the invalid value with
7608 <var_zuinteger_unlimited>: Throw error if the value is greater
7609 than INT_MAX, not greater or equal.
7610 (do_show_command) <var_integer, var_zinteger,
7611 var_zuinteger_unlimited>: Use %d for printing int, not %u.
7613 2013-03-20 Tom Tromey <tromey@redhat.com>
7615 * ax-gdb.c (gen_var_ref): Unconditionally call via computed ops,
7617 * dwarf2read.c (read_func_scope): Remove old FIXME.
7618 * eval.c (evaluate_subexp_standard): Check SYMBOL_COMPUTED_OPS,
7620 * findvar.c (symbol_read_needs_frame, default_read_var_value):
7621 Unconditionally call via computed ops, if possible.
7622 * printcmd.c (address_info): Unconditionally call via computed ops,
7624 * stack.c (read_frame_arg): Unconditionally call via computed ops,
7626 * symtab.c (register_symbol_computed_impl): Sanity check 'ops'.
7627 * tracepoint.c (scope_info): Unconditionally call via computed ops,
7630 2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
7631 Tom Tromey <tromey@redhat.com>
7634 * coffread.c (coff_register_index): New global.
7635 (process_coff_symbol, coff_read_enum_type): Set
7636 SYMBOL_ACLASS_INDEX.
7637 (_initialize_coffread): Initialize new global.
7638 * dwarf2loc.c (locexpr_find_frame_base_location)
7639 (dwarf2_block_frame_base_locexpr_funcs)
7640 (loclist_find_frame_base_location)
7641 (dwarf2_block_frame_base_loclist_funcs): New.
7642 (dwarf_expr_frame_base_1): Call SYMBOL_BLOCK_OPS, remove internal_error.
7643 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Add location_has_loclist.
7644 * dwarf2loc.h (dwarf2_block_frame_base_locexpr_funcs)
7645 (dwarf2_block_frame_base_loclist_funcs): New.
7646 * dwarf2read.c (dwarf2_locexpr_index, dwarf2_loclist_index)
7647 (dwarf2_locexpr_block_index, dwarf2_loclist_block_index): New
7649 (read_func_scope): Update.
7650 (fixup_go_packaging, mark_common_block_symbol_computed)
7651 (var_decode_location, new_symbol_full, dwarf2_const_value):
7652 Set SYMBOL_ACLASS_INDEX.
7653 (dwarf2_symbol_mark_computed): Likewise. Add 'is_block' argument.
7654 (_initialize_dwarf2_read): Initialize new globals.
7655 * jit.c (finalize_symtab): Set SYMBOL_ACLASS_INDEX.
7656 * jv-lang.c (add_class_symbol): Set SYMBOL_ACLASS_INDEX.
7657 * mdebugread.c (mdebug_register_index, mdebug_regparm_index): New
7659 (parse_symbol, psymtab_to_symtab_1): Set SYMBOL_ACLASS_INDEX.
7660 (_initialize_mdebugread): Initialize new globals.
7661 * psympriv.h (struct partial_symbol) <aclass>: Update comment.
7662 * stabsread.c (patch_block_stabs): Set SYMBOL_ACLASS_INDEX.
7663 (stab_register_index, stab_regparm_index): New globals.
7664 (define_symbol, read_enum_type, common_block_end): Set
7665 SYMBOL_ACLASS_INDEX.
7666 (_initialize_stabsread): Initialize new globals.
7667 * symtab.c (next_aclass_value, symbol_impl, symbol_impls): New
7669 (MAX_SYMBOL_IMPLS): New define.
7670 (register_symbol_computed_impl, register_symbol_block_impl)
7671 (register_symbol_register_impl)
7672 (initialize_ordinary_address_classes): New functions.
7673 (_initialize_symtab): Call initialize_ordinary_address_classes.
7674 * symtab.h (enum address_class) <LOC_FINAL_VALUE>: New constant.
7675 (struct symbol_impl): New.
7676 (SYMBOL_ACLASS_BITS): New define.
7677 (struct symbol) <aclass, ops>: Remove fields.
7678 <aclass_index>: New field.
7679 (symbol_impls): Declare.
7680 (SYMBOL_CLASS, SYMBOL_COMPUTED_OPS, SYMBOL_REGISTER_OPS): Redefine.
7681 (SYMBOL_IMPL, SYMBOL_ACLASS_INDEX): New defines.
7682 (register_symbol_computed_impl, register_symbol_block_impl)
7683 (register_symbol_register_impl): Declare.
7684 (struct symbol_computed_ops): Add location_has_loclist.
7685 (struct symbol_block_ops): New.
7686 (SYMBOL_BLOCK_OPS): New.
7687 * xcoffread.c (process_xcoff_symbol): Set SYMBOL_ACLASS_INDEX.
7689 2013-03-20 Tom Tromey <tromey@redhat.com>
7691 * psymtab.c (find_pc_sect_psymbol, fixup_psymbol_section)
7692 (print_partial_symbols, recursively_search_psymtabs): Use
7695 2013-03-20 Pierre Muller <muller@sourceware.org>
7697 * contrib/ari/gdb_ari.sh (OP eol rule): Also check
7698 addtion, subtraction, multiplication and division binary operator.
7700 2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
7703 * bfd-target.c (target_bfd_xclose): Remove parameter quitting.
7704 * bsd-kvm.c (bsd_kvm_close): Likewise.
7705 * bsd-uthread.c (bsd_uthread_close): Likewise.
7706 * corelow.c (core_close): Likewise.
7707 (core_close_cleanup): Remove parameter quitting from a caller.
7708 * event-top.c (async_disconnect): Likewise.
7709 * exec.c (exec_close_1): Remove parameter quitting.
7710 * go32-nat.c (go32_close): Likewise.
7711 * linux-nat.c (linux_nat_close): Remove parameter quitting. Remove
7712 parameter quitting from a caller.
7713 * mips-linux-nat.c (super_close): Remove parameter quitting from the
7715 (mips_linux_close): Remove parameter quitting. Remove parameter
7716 quitting from a caller.
7717 * monitor.c (monitor_close): Remove parameter quitting.
7718 * monitor.h (monitor_close): Likewise.
7719 * record-btrace.c (record_btrace_close): Likewise.
7720 * record-full.c (record_full_close): Likewise.
7721 * remote-m32r-sdi.c (m32r_close): Remove parameter quitting and remove
7722 it also from fprintf_unfiltered.
7723 * remote-mips.c (mips_close): Remove parameter quitting.
7724 (mips_detach): Remove parameter quitting from a caller.
7725 * remote-sim.c (gdbsim_close): Remove parameter quitting.
7726 (gdbsim_close): Remove duplicate function comment. Remove parameter
7727 quitting and remove it also from printf_filtered.
7728 * remote.c (remote_close): Remove parameter quitting.
7729 * solib-svr4.c (enable_break): Remove parameter quitting from a caller.
7730 * target.c (update_current_target): Remove parameter int from to_close
7732 (push_target, unpush_target, pop_target): Remove parameter quitting from
7734 (pop_all_targets_above, pop_all_targets): Remove parameter quitting.
7735 Remove parameter quitting from a caller.
7736 (target_preopen): Remove parameter quitting from a caller.
7737 (target_close): Remove parameter quitting. Remove parameter quitting
7738 from a caller two times. Remove parameter quitting also from
7740 * target.h (struct target_ops): Remove parameter quitting and as int
7741 from fields to_xclose and to_close.
7742 (extern struct target_ops current_target):
7743 (target_close, pop_all_targets): Remove parameter quitting. Update the
7745 (pop_all_targets_above): Remove parameter quitting.
7746 * top.c (quit_target): Remove parameter quitting from a caller.
7747 * tracepoint.c (tfile_close): Remove parameter quitting.
7748 * windows-nat.c (windows_close): Remove parameter quitting.
7750 2013-03-20 Corinna Vinschen <vinschen@redhat.com>
7752 * windows-nat.c (handle_output_debug_string): Replace call
7753 to string_to_core_addr with call to strtoull.
7755 2013-03-20 Yao Qi <yao@codesourcery.com>
7757 * ctf.c (ctf_save_metadata_header): Define macro HOST_ENDIANNESS
7758 and write it to CTF metadata.
7760 2013-03-19 Corinna Vinschen <vinschen@redhat.com>
7762 * windows-nat.c (handle_output_debug_string): Change type of n to
7763 SIZE_T to avoid crash on 64 bit systems.
7765 2013-03-17 Eli Zaretskii <eliz@gnu.org>
7767 * python/python-internal.h (HAVE_SNPRINTF)
7768 [_WIN32 && HAVE_DECL_SNPRINTF]: Define, to avoid compiler warnings
7769 about redefinition of snprintf by pyerrors.h.
7771 2013-03-15 Steve Ellcey <sellcey@mips.com>
7773 * remote-sim.c (sim_command_completer): Make char arguments const.
7775 2013-03-15 Tom Tromey <tromey@redhat.com>
7778 * gdbtypes.c (types_equal): Handle TYPE_CODE_FUNC.
7780 2013-03-14 Tom Tromey <tromey@redhat.com>
7782 * gdb_bfd.c (struct gdb_bfd_data) <crc_computed, crc>:
7784 (get_file_crc): Move from symfile.c.
7785 (gdb_bfd_crc): New function.
7786 * gdb_bfd.h (gdb_bfd_crc): Declare.
7787 * objfiles.h (struct objfile) <crc32, crc32_p>: Remove.
7788 * symfile.c (get_file_crc): Move to gdb_bfd.c.
7789 (separate_debug_file_exists): Use gdb_bfd_crc.
7791 2013-03-14 Tom Tromey <tromey@redhat.com>
7793 * symfile.c (get_debug_link_info): Remove.
7794 (find_separate_debug_file_by_debuglink): Use
7795 bfd_get_debug_link_info.
7797 2013-03-14 Tom Tromey <tromey@redhat.com>
7799 * symtab.c (error_in_psymtab_expansion): New function.
7800 (lookup_symbol_aux_quick)
7801 (basic_lookup_transparent_type_quick): Remove "last resort"
7802 code. Use error_in_psymtab_expansion.
7804 2013-03-14 Doug Evans <dje@google.com>
7805 Jan Kratochvil <jan.kratochvil@redhat.com>
7807 * dwarf2read.c (dw2_map_symtabs_matching_filename): Put continue after
7808 any successful compare_filenames_for_search or FILENAME_CMP.
7809 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
7810 * symtab.c (iterate_over_some_symtabs): Likewise.
7812 2013-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7814 * source.c (print_source_lines_base): Make a local copy of
7817 2013-03-14 Hui Zhu <hui_zhu@mentor.com>
7818 Jan Kratochvil <jan.kratochvil@redhat.com>
7820 * source.c (print_source_lines_base): Suppress "file" for TUI.
7822 2013-03-14 Keith Seitz <keiths@redhat.com>
7823 Alan Matsuoka <alanm@redhat.com>
7827 * cp-namespace.c (cp_lookup_nested_symbol): Handle TYPE_CODE_FUNC and
7829 * elfread.c (elf_symtab_read): Handle BSF_GNU_UNIQUE for certain
7832 2013-03-14 Yao Qi <yao@codesourcery.com>
7834 * tracepoint.c (tfile_write_status): Write 'stop_desc' of trace
7835 status to tfile if trace is stopped by command 'tstop'.
7837 2013-03-14 Yao Qi <yao@codesourcery.com>
7839 * tracepoint.c (tfile_write_status): Write trace notes and user
7840 name into tfile if they are not NULL.
7842 2013-03-14 Hui Zhu <hui@codesourcery.com>
7843 Yao Qi <yao@codesourcery.com>
7845 * Makefile.in (REMOTE_OBS): Add ctf.o.
7846 (SFILES): Add ctf.c.
7847 (HFILES_NO_SRCDIR): Add ctf.h.
7848 * ctf.c, ctf.h: New files.
7849 * tracepoint.c: Include 'ctf.h'.
7850 (collect_pseudocommand): Remove static.
7851 (trace_save_command): Parse option "-ctf".
7852 Produce different trace file writers per option.
7853 Adjust output message.
7854 (trace_save_tfile, trace_save_ctf): New.
7855 * tracepoint.h (trace_save_tfile, trace_save_ctf): Declare.
7856 * mi/mi-main.c: Include 'ctf.h'.
7857 (mi_cmd_trace_save): Handle option '-ctf'. Call either
7858 trace_save_tfile or trace_save_ctf.
7859 * NEWS: Mention these changes.
7861 2013-03-14 Yao Qi <yao@codesourcery.com>
7863 * tracepoint.c (trace_file_writer_xfree): New.
7864 (struct tfile_writer_data): New.
7865 (tfile_dtor, tfile_can_target_save, tfile_start): New.
7866 (tfile_write_header, tfile_write_regblock_type): New.
7867 (tfile_write_status, tfile_write_uploaded_tsv): New.
7868 (tfile_write_uploaded_tp, tfile_write_definition_end): New.
7869 (tfile_write_raw_data, (tfile_end): New.
7870 (tfile_write_ops): New global variable.
7871 (TRACE_WRITE_R_BLOCK): New macro.
7872 (TRACE_WRITE_M_BLOCK_HEADER): New macro.
7873 (TRACE_WRITE_M_BLOCK_MEMORY): New macro.
7874 (TRACE_WRITE_V_BLOCK): New macro.
7875 (trace_save): Add extra one parameter WRITER. Make it static.
7876 Use WRITER to writer trace.
7877 (tfile_trace_file_writer_new): New.
7878 (trace_save_command): Caller update.
7879 (trace_save_tfile): Write trace data in TFILE format.
7880 * tracepoint.h (struct trace_frame_write_ops): New.
7881 (struct trace_file_write_ops): New.
7882 (struct trace_file_writer): New.
7883 (trace_save): Remove its declaration.
7884 (trace_save_tfile): Declare it.
7885 * mi/mi-main.c (mi_cmd_trace_save): Call trace_save_tfile
7886 instead of trace_save.
7888 2013-03-13 Pedro Alves <palves@redhat.com>
7890 * hppa-hpux-nat.c (hppa_hpux_save_state_offset): Make static.
7892 2013-03-13 Pedro Alves <palves@redhat.com>
7894 * dbxread.c (read_ofile_symtab, process_one_symbol): Remove
7896 * demangle.c (current_demangling_style_string): Make it const.
7897 (set_demangling_command): Assert the demangling style is known.
7898 Remove all handling of unknown styles. Set
7899 'current_demangling_style_string' to an element of the
7900 demangling_style_names array.
7901 (set_demangling_style): Delete.
7902 (_initialize_demangler): Set current_demangling_style_string to the
7903 element of the demangling_style_names array that corresponds to
7904 the default demangling style. Remove FIXME note. Don't call
7905 set_demangling_style.
7906 * gdb-demangle.h (set_demangling_style): Remove declaration.
7908 2013-03-13 Pedro Alves <palves@redhat.com>
7910 * ada-lang.c (struct add_partial_datum) <text, text0, word>: Make
7912 (ada_make_symbol_completion_list): Make "text0" parameter const.
7913 * ax-gdb.c (agent_eval_command_one): Make "exp" parameter const.
7914 * breakpoint.c (condition_completer): Make "text" and "word"
7915 parameters const. Adjust.
7916 (check_tracepoint_command): Adjust to validate_actionline
7918 (catch_syscall_completer): Make "text" and "word" parameters
7920 * cli/cli-cmds.c (show_user): Make "comname" local const.
7921 (valid_command_p): Make "command" parameter const.
7922 (alias_command): Make "alias_prefix" and "command_prefix" locals
7924 * cli/cli-decode.c (add_cmd): Make "name" parameter const.
7925 (add_alias_cmd): Make "name" and "oldname" parameters const.
7926 Adjust. No longer make copy of OLDNAME.
7927 (add_prefix_cmd, add_abbrev_prefix_cmd, add_set_or_show_cmd)
7928 (add_setshow_cmd_full, add_setshow_enum_cmd)
7929 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
7930 (add_setshow_filename_cmd, add_setshow_string_cmd)
7931 (add_setshow_string_noescape_cmd)
7932 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
7933 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
7934 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd)
7935 (delete_cmd, add_info, add_info_alias, add_com, add_com_alias):
7936 Make "name" parameter const.
7937 (help_cmd): Rename "command" parameter to "arg". New const local
7939 (find_cmd): Make "command" parameter const.
7940 (lookup_cmd_1): Make "text" parameter pointer to const. Adjust to
7941 deprecated_cmd_warning prototype change.
7942 (undef_cmd_error): Make "cmdtype" parameter const.
7943 (lookup_cmd): Make "line" parameter const.
7944 (deprecated_cmd_warning): Change type of "text" parameter to
7945 pointer to const char, from pointer to pointer to char. Adjust.
7946 (lookup_cmd_composition): Make "text" parameter const.
7947 (complete_on_cmdlist, complete_on_enum): Make "text" and "word"
7949 * cli/cli-decode.h (struct cmd_list_element) <name>: Make field
7951 * cli/cli-script.c (validate_comname): Make "tem" local const.
7952 (define_command): New const local "tem_c". Use it in calls to
7954 (document_command): Make "tem" and "comfull" locals const.
7955 (show_user_1): Make "prefix" and "name" parameters const.
7956 * cli-script.h (show_user_1): Make "prefix" and "name" parameters
7958 * command.h (add_cmd, add_alias_cmd, add_prefix_cmd)
7959 (add_abbrev_prefix_cmd, completer_ftype, lookup_cmd, lookup_cmd_1)
7960 (deprecated_cmd_warning, lookup_cmd_composition, add_com)
7961 (add_com_alias, add_info, add_info_alias, complete_on_cmdlist)
7962 (complete_on_enum, add_setshow_enum_cmd)
7963 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
7964 (add_setshow_filename_cmd, add_setshow_string_cmd)
7965 (add_setshow_string_noescape_cmd)
7966 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
7967 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
7968 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
7969 Change prototypes, constifying strings.
7970 * completer.c (noop_completer, filename_completer): Make "text"
7971 and "prefix" parameters const.
7972 (location_completer, expression_completer)
7973 (complete_line_internal): Make "text" and "prefix" parameters
7975 (command_completer, signal_completer): Make "text" and "prefix"
7977 * completer.h (noop_completer, filename_completer)
7978 (expression_completer, location_completer, command_completer)
7979 (signal_completer): Change prototypes.
7980 * corefile.c (complete_set_gnutarget): Make "text" and "word"
7982 * cp-abi.c (cp_abi_completer): Likewise.
7983 * expression.h (parse_expression_for_completion): Change
7985 * f-lang.c (f_make_symbol_completion_list): Make "text" and "word"
7987 * infcmd.c (_initialize_infcmd): Make "cmd_name" local const.
7988 * infrun.c (handle_completer): Make "text" and "word" parameters
7990 * interps.c (interpreter_completer): Make "text" and "word"
7992 * language.h (struct language_defn)
7993 <la_make_symbol_completion_list>: Make "text" and "word"
7995 * parse.c (parse_exp_1): Move const hack to parse_exp_in_context.
7996 (parse_exp_in_context): Rename to ...
7997 (parse_exp_in_context_1): ... this.
7998 (parse_exp_in_context): Reimplement, with const hack from
8000 (parse_expression_for_completion): Make "string" parameter const.
8001 * printcmd.c (decode_format): Make "string_ptr" parameter pointer
8002 to pointer to const char. Adjust.
8003 (print_command_1): Make "exp" parameter const.
8004 (output_command): Rename to ...
8005 (output_command_const): ... this. Make "exp" parameter const.
8006 (output_command): Reimplement.
8007 (x_command): Adjust.
8008 (display_command): Rename "exp" parameter to "arg". New "exp"
8009 local, const version of "arg".
8010 * python/py-auto-load.c (gdbpy_initialize_auto_load): Make
8011 "cmd_name" local const.
8012 * python/py-cmd.c (cmdpy_destroyer): Cast const away in xfree
8014 (cmdpy_completer): Make "text" and "word" parameters const.
8015 (gdbpy_parse_command_name): Make "prefix_text2" local const.
8016 * python/py-param.c (add_setshow_generic): Make "tmp_name" local
8018 * remote.c (_initialize_remote): Make "cmd_name" local const.
8019 * symtab.c (language_search_unquoted_string): Make "text" and "p"
8020 parameters const. Adjust.
8021 (completion_list_add_fields): Make "sym_text", "text" and "word"
8023 (struct add_name_data) <sym_text, text, word>: Make fields const.
8024 (default_make_symbol_completion_list_break_on): Make "text" and
8025 "word" parameters const. Adjust locals.
8026 (default_make_symbol_completion_list)
8027 (make_symbol_completion_list, make_symbol_completion_type)
8028 (make_symbol_completion_list_fn): Make "text" and "word"
8030 (make_file_symbol_completion_list): Make "text", "word" and
8031 "srcfile" parameters const. Adjust locals.
8032 (add_filename_to_list): Make "text" and "word" parameters const.
8033 (struct add_partial_filename_data) <text, word>: Make fields
8035 (make_source_files_completion_list): Make "text" and "word"
8037 * symtab.h (default_make_symbol_completion_list_break_on)
8038 (default_make_symbol_completion_list, make_symbol_completion_list)
8039 (make_symbol_completion_type enum type_code)
8040 (make_symbol_completion_list_fn make_file_symbol_completion_list)
8041 (make_source_files_completion_list): Change prototype.
8042 * top.c (execute_command): Adjust to pass pointer to pointer to
8043 const char to lookup_cmd, and to deprecated_cmd_warning prototype
8045 (set_verbose): Make "cmdname" local const.
8046 * tracepoint.c (decode_agent_options): Make "exp" parameter const,
8048 (validate_actionline): Make "line" parameter a pointer to const
8050 (encode_actions_1): Make "action_exp" local const, and adjust.
8051 (encode_actions): Adjust.
8052 (replace_comma): Delete.
8053 (trace_dump_actions): Make "action_exp" and "next_comma" locals
8054 const, and adjust. Don't frob the action string while splitting
8055 it at commas. Instead, make a copy of each split substring in
8057 (trace_dump_command): Adjust to validate_actionline prototype
8059 * tracepoint.h (decode_agent_options, decode_agent_options)
8060 (encode_actions, validate_actionline): Change prototypes.
8061 * valprint.h (output_command): Delete declaration.
8062 (output_command_const): Declare.
8063 * value.c (function_destroyer): Cast const away in xfree call.
8065 2013-03-13 Pedro Alves <palves@redhat.com>
8067 * ada-lang.c (ada_decode_symbol): Cast away constness of GSYMBOL
8068 rather than casting 'const char * const *' to 'const char **'.
8069 * ada-lex.l (processInt): Make "trailer" local const. Remove
8070 'const char **' cast.
8071 * arm-linux-tdep.c (arm_stap_parse_special_token): Add 'char *'
8072 locals, and use those as strtol output pointer, instead than doing
8073 invalid casts to from 'const char **' to 'char **'.
8074 (_initialize_demangle): Remove cast.
8075 * i386-tdep.c (i386_stap_parse_special_token): : Add 'char *'
8076 locals, and use those as strtol output pointer, instead than doing
8077 invalid casts to from 'const char **' to 'char **'.
8078 * solib-dsbt.c (dsbt_get_initial_loadmaps): Remove 'gdb_byte**'
8080 * stap-probe.c (stap_parse_register_operand)
8081 (stap_parse_single_operand): Likewise.
8083 2013-03-13 Yao Qi <yao@codesourcery.com>
8085 * tracepoint.c (tfile_get_trace_state_variable_value): Look for
8086 the last matched 'V' blcok in trace frame.
8088 2013-03-12 Joel Brobecker <brobecker@adacore.com>
8090 * NEWS: Create a new section for the next release branch.
8091 Rename the section of the current branch, now that it has
8094 2013-03-12 Joel Brobecker <brobecker@adacore.com>
8096 GDB 7.6 branch created (branch timestamp: 2013-03-12 22:15 UTC)
8097 * version.in: Bump version to 7.6.50.20130312-cvs.
8099 2013-03-12 Keith Seitz <keiths@redhat.com>
8101 * mi/mi-cmds.h (mi_execute_command): Make "cmd" const.
8102 * mi/mi-interp.c (mi_interpreter_exec): Make "command" const.
8103 Remove temporary copy of input string.
8104 (mi_execute_command_wrapper): Make "cmd" const.
8105 * mi/mi-main.c (mi_execute_command): Make "string_ptr" const.
8106 * mi/mi-parse.c (mi_parse_argv): Make "args" const.
8108 (mi_parse): Make "cmd" const.
8110 * mi/mi-parse.h (mi_parse): Make "cmd" const.
8112 2013-03-12 Keith Seitz <keiths@redhat.com>
8114 * ada-lang.c (ada_read_renaming_var_value): Pass const
8115 pointer to expression string to parse_exp_1.
8116 (create_excep_cond_exprs): Likewise.
8117 * ax-gdb.c (agent_eval_command_one): Likewise.
8118 (maint_agent_printf_command): Likewise.
8119 Constify much of the string handling/parsing.
8120 * breakpoint.c (set_breakpoint_condition): Pass const
8121 pointer to expression string to parse_exp_1.
8122 (update_watchpoint): Likewise.
8123 (parse_cmd_to_aexpr): Constify string handling.
8124 Pass const pointer to parse_exp_1.
8125 (init_breakpoint_sal): Pass const pointer to parse_exp_1.
8126 (find_condition_and_thread): Likewise.
8128 (watch_command_1): Make "arg" const.
8129 Constify string handling.
8130 Copy the expression string instead of changing the input
8132 (update_breakpoint_location): Pass const pointer to
8134 * eval.c (parse_and_eval_address): Make "exp" const.
8135 (parse_to_comma_and_eval): Make "expp" const.
8136 (parse_and_eval): Make "exp" const.
8137 * expression.h (parse_expression): Make argument const.
8138 (parse_exp_1): Make first argument const.
8139 * findcmd.c (parse_find_args): Treat "args" as const.
8140 * linespec.c (parse_linespec): Pass const pointer to
8141 linespec_expression_to_pc.
8142 (linespec_expression_to_pc): Make "exp_ptr" const.
8143 * parse.c (parse_exp_1): Make "stringptr" const.
8144 Make a copy of the expression to pass to parse_exp_in_context until
8145 this whole interface can be constified.
8146 (parse_expression): Make "string" const.
8147 * printcmd.c (ui_printf): Treat "arg" as const.
8148 Handle const strings.
8149 * tracepoint.c (validate_actionline): Pass const pointer to
8150 all calls to parse_exp_1.
8151 (encode_actions_1): Likewise.
8152 * value.h (parse_to_comma_and_eval): Make argument const.
8153 (parse_and_eval_address): Likewise.
8154 (parse_and_eval): Likewise.
8155 * varobj.c (varobj_create): Pass const pointer to parse_exp_1.
8156 (varobj_set_value): Likewise.
8157 * cli/cli-cmds.c (disassemble_command): Treat "arg" as const and
8158 constify string handling.
8159 Pass const pointers to parse_and_eval_address and
8160 parse_to_comman_and_eval.
8161 * cli/cli-utils.c (skip_to_space): Rename to ...
8162 (skip_to_space_const): ... this. Handle const strings.
8163 * cli/cli-utils.h (skip_to_space): Turn into macro which invokes
8164 skip_to_space_const.
8165 (skip_to_space_const): Declare.
8166 * common/format.c (parse_format_string): Make "arg" const.
8167 Handle const strings.
8168 * common/format.h (parse_format_string): Make "arg" const.
8169 * gdbserver/ax.c (ax_printf): Make "format" const.
8170 * python/python.c (gdbpy_parse_and_eval): Do not make a copy
8171 of the expression string.
8173 2013-03-12 Hui Zhu <hui@codesourcery.com>
8175 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Update error message.
8177 2013-03-12 Yao Qi <yao@codesourcery.com>
8178 Hui Zhu <hui@codesourcery.com>
8180 * dwarf2loc.c (access_memory): Change nbits to nbytes in gdb_assert.
8181 (dwarf2_compile_expr_to_ax): Call access_memory in DW_OP_deref and
8184 2013-03-12 Paul Hilfinger <hilfingr@adacore.com>
8186 * ada-lex.l (rules): Only recognize 'thread' as a
8187 delimiter when followed by numerals, as for c-exp.y.
8188 Use new rewind_to_char function to rewind the input for
8189 expression-delimiting tokens.
8190 (rewind_to_char): New function.
8192 2013-03-11 Pedro Alves <palves@redhat.com>
8193 Jan Kratochvil <jan.kratochvil@redhat.com>
8195 * configure: Regenerate.
8196 * configure.ac (check dynamic export flag): Link python test with
8199 2013-03-11 Doug Evans <dje@google.com>
8200 Keith Seitz <keiths@redhat.com>
8202 * linespec.c (find_linespec_symbols): Call find_function_symbols
8203 first, and then call lookup_prefix_sym/find_method.
8205 2013-03-11 Pedro Alves <palves@redhat.com>
8207 * charset.c (convert_between_encodings): Don't cast between
8208 different pointer to pointer types. Instead, make the 'inp' local
8209 be of the type iconv expects.
8210 (wchar_iterate): Don't cast between different pointer to pointer
8211 types. Instead, use new pointer local of the type iconv expects.
8212 * target.c (target_read_stralloc, target_fileio_read_stralloc):
8213 Add new local of type char pointer, and use it to get a
8214 char/string view of the byte buffer, instead of casting between
8215 pointer to pointer types.
8217 2013-03-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
8219 * remote.c (remote_set_trace_buffer_size): Move != operator
8220 to the start of next line to fix an ARI warning.
8222 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8224 * NEWS: Add record changes.
8226 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8228 * record-btrace.c (btrace_insn_history): Omit the pc prefix in
8229 the instruction history disassembly.
8230 * disasm.c (dump_insns): Omit the pc prefix, if requested.
8231 * disasm.h (DISASSEMBLY_OMIT_PC): New.
8233 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8235 * Makefile.in (SFILES): Add record-btrace.c
8236 (COMMON_OBS): Add record-btrace.o
8237 * record-btrace.c: New.
8238 * objfiles.c: Include btrace.h.
8239 (free_objfile): call btrace_free_objfile.
8241 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8243 * target.c (target_call_history, target_call_history_from,
8244 target_call_history_range): New.
8245 * target.h (target_ops) <to_call_history, to_call_history_from,
8246 to_call_history_range>: New fields.
8247 (target_call_history, target_call_history_from,
8248 target_call_history_range): New declaration.
8249 * record.c (get_call_history_modifiers, cmd_record_call_history,
8250 record_call_history_size): New.
8251 (_initialize_record): Add the "record function-call-history" command.
8252 Add "set/show record function-call-history-size" commands.
8253 * record.h (record_print_flag): New.
8255 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8257 * target.h (target_ops) <to_insn_history, to_insn_history_from,
8258 to_insn_history_range>: New fields.
8259 (target_insn_history): New.
8260 (target_insn_history_from): New.
8261 (target_insn_history_range): New.
8262 * target.c (target_insn_history): New.
8263 (target_insn_history_from): New.
8264 (target_insn_history_range): New.
8265 * record.c: Include cli/cli-utils.h, disasm.h, ctype.h.
8266 (record_insn_history_size): New.
8267 (get_insn_number): New.
8268 (get_context_size): New.
8270 (get_insn_history_modifiers): New.
8271 (cmd_record_insn_history): New.
8272 (_initialize_record): Add "set/show record instruction-history-size"
8273 command. Add "record instruction-history" command.
8275 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8277 * record.h (record_disconnect): New.
8278 (record_detach): New.
8279 (record_mourn_inferior): New.
8281 * record-full.c (record_disconnect, record_detach,
8282 record_mourn_inferior, record_kill): Move to...
8283 * record.c: ...here.
8286 (record_unpush): New.
8287 (cmd_record_stop): Call record_stop. Replace unpush_target
8288 call with record_unpush call.
8289 (record_disconnect, record_detach): Assert that the target
8290 is of record stratum. Call record_unpush, record_stop, and
8292 (record_mourn_inferior, record_kill): Assert that the target
8293 is of record stratum. Call record_unpush and DEBUG.
8295 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8297 * record-full.h, record-full.c (record_memory_query): Rename
8299 (record_full_memory_query): ...this. Update all users.
8300 (record_arch_list_add_reg): Rename to ...
8301 (record_full_arch_list_add_reg): ...this. Update all users.
8302 (record_arch_list_add_mem): Rename to ...
8303 (record_full_arch_list_add_mem): ...this. Update all users.
8304 (record_arch_list_add_end): Rename to ...
8305 (record_full_arch_list_add_end): ...this. Update all users.
8306 (record_gdb_operation_disable_set): Rename to ...
8307 (record_full_gdb_operation_disable_set): ...this.
8310 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8312 * record-full.c (DEFAULT_RECORD_INSN_MAX_NUM): Renamed to ...
8313 (DEFAULT_RECORD_FULL_INSN_MAX_NUM): ... this. Updated all users.
8314 (RECORD_IS_REPLAY): Renamed to ...
8315 (RECORD_FULL_IS_REPLAY): ... this. Updated all users.
8316 (RECORD_FILE_MAGIC): Renamed to ...
8317 (RECORD_FULL_FILE_MAGIC): ... this. Updated all users.
8318 (record_mem_entry): Renamed to ...
8319 (record_full_mem_entry): ... this. Updated all users.
8320 (record_reg_entry): Renamed to ...
8321 (record_full_reg_entry): ... this. Updated all users.
8322 (record_end_entry): Renamed to ...
8323 (record_full_end_entry): ... this. Updated all users.
8324 (record_type) <record_end, record_reg, record_mem>: Renamed
8326 (record_full_type) <record_full_end, record_full_reg,
8327 record_full_mem>: ... this. Updated all users.
8328 (record_entry): Renamed to ...
8329 (record_full_entry): ... this. Updated all users.
8330 (record_core_buf_entry): Renamed to ...
8331 (record_full_core_buf_entry): ... this. Updated all users.
8332 (record_core_regbuf): Renamed to ...
8333 (record_full_core_regbuf): ... this. Updated all users.
8334 (record_core_start): Renamed to ...
8335 (record_full_core_start): ... this. Updated all users.
8336 (record_core_end): Renamed to ...
8337 (record_full_core_end): ... this. Updated all users.
8338 (record_core_buf_list): Renamed to ...
8339 (record_full_core_buf_list): ... this. Updated all users.
8340 (record_first): Renamed to ...
8341 (record_full_first): ... this. Updated all users.
8342 (record_list): Renamed to ...
8343 (record_full_list): ... this. Updated all users.
8344 (record_arch_list_head): Renamed to ...
8345 (record_full_arch_list_head): ... this. Updated all users.
8346 (record_arch_list_tail): Renamed to ...
8347 (record_full_arch_list_tail): ... this. Updated all users.
8348 (record_stop_at_limit): Renamed to ...
8349 (record_full_stop_at_limit): ... this. Updated all users.
8350 (record_insn_max_num): Renamed to ...
8351 (record_full_insn_max_num): ... this. Updated all users.
8352 (record_insn_num): Renamed to ...
8353 (record_full_insn_num): ... this. Updated all users.
8354 (record_insn_count): Renamed to ...
8355 (record_full_insn_count): ... this. Updated all users.
8356 (record_ops): Renamed to ...
8357 (record_full_ops): ... this. Updated all users.
8358 (record_core_ops): Renamed to ...
8359 (record_full_core_ops): ... this. Updated all users.
8360 (set_record_cmdlist): Renamed to ...
8361 (set_record_full_cmdlist): ... this. Updated all users.
8362 (show_record_cmdlist): Renamed to ...
8363 (show_record_full_cmdlist): ... this. Updated all users.
8364 (record_cmdlist): Renamed to ...
8365 (record_full_cmdlist): ... this. Updated all users.
8366 (record_beneath_to_resume_ops): Renamed to ...
8367 (record_full_beneath_to_resume_ops): ... this. Updated all users.
8368 (record_beneath_to_resume): Renamed to ...
8369 (record_full_beneath_to_resume): ... this. Updated all users.
8370 (record_beneath_to_wait_ops): Renamed to ...
8371 (record_full_beneath_to_wait_ops): ... this. Updated all users.
8372 (record_beneath_to_wait): Renamed to ...
8373 (record_full_beneath_to_wait): ... this. Updated all users.
8374 (record_beneath_to_store_registers_ops): Renamed to ...
8375 (record_full_beneath_to_store_registers_ops): ... this.
8377 (record_beneath_to_store_registers): Renamed to ...
8378 (record_full_beneath_to_store_registers): ... this.
8380 (record_beneath_to_xfer_partial_ops): Renamed to ...
8381 (record_full_beneath_to_xfer_partial_ops): ... this.
8383 (record_beneath_to_xfer_partial): Renamed to ...
8384 (record_full_beneath_to_xfer_partial): ... this.
8386 (record_beneath_to_insert_breakpoint): Renamed to ...
8387 (record_full_beneath_to_insert_breakpoint): ... this.
8389 (record_beneath_to_stopped_by_watchpoint): Renamed to ...
8390 (record_full_beneath_to_stopped_by_watchpoint): ... this.
8392 (record_beneath_to_stopped_data_address): Renamed to ...
8393 (record_full_beneath_to_stopped_data_address): ... this.
8395 (record_beneath_to_async): Renamed to ...
8396 (record_full_beneath_to_async): ... this. Updated all users.
8397 (record_goto_insn): Renamed to ...
8398 (record_full_goto_insn): ... this. Updated all users.
8399 (record_save): Renamed to ...
8400 (record_full_save): ... this. Updated all users.
8401 (record_reg_alloc): Renamed to ...
8402 (record_full_reg_alloc): ... this. Updated all users.
8403 (record_reg_release): Renamed to ...
8404 (record_full_reg_release): ... this. Updated all users.
8405 (record_mem_alloc): Renamed to ...
8406 (record_full_mem_alloc): ... this. Updated all users.
8407 (record_mem_release): Renamed to ...
8408 (record_full_mem_release): ... this. Updated all users.
8409 (record_end_alloc): Renamed to ...
8410 (record_full_end_alloc): ... this. Updated all users.
8411 (record_end_release): Renamed to ...
8412 (record_full_end_release): ... this. Updated all users.
8413 (record_entry_release): Renamed to ...
8414 (record_full_entry_release): ... this. Updated all users.
8415 (record_list_release): Renamed to ...
8416 (record_full_list_release): ... this. Updated all users.
8417 (record_list_release_following): Renamed to ...
8418 (record_full_list_release_following): ... this.
8420 (record_list_release_first): Renamed to ...
8421 (record_full_list_release_first): ... this. Updated all users.
8422 (record_arch_list_add): Renamed to ...
8423 (record_full_arch_list_add): ... this. Updated all users.
8424 (record_get_loc): Renamed to ...
8425 (record_full_get_loc): ... this. Updated all users.
8426 (record_check_insn_num): Renamed to ...
8427 (record_full_check_insn_num): ... this. Updated all users.
8428 (record_arch_list_cleanups): Renamed to ...
8429 (record_full_arch_list_cleanups): ... this. Updated all users.
8430 (record_message): Renamed to ...
8431 (record_full_message): ... this. Updated all users.
8432 (record_message_wrapper): Renamed to ...
8433 (record_full_message_wrapper): ... this. Updated all users.
8434 (record_message_wrapper_safe): Renamed to ...
8435 (record_full_message_wrapper_safe): ... this. Updated all users.
8436 (record_gdb_operation_disable): Renamed to ...
8437 (record_full_gdb_operation_disable): ... this. Updated all users.
8438 (record_hw_watchpoint): Renamed to ...
8439 (record_full_hw_watchpoint): ... this. Updated all users.
8440 (record_exec_insn): Renamed to ...
8441 (record_full_exec_insn): ... this. Updated all users.
8442 (record_restore): Renamed to ...
8443 (record_full_restore): ... this. Updated all users.
8444 (record_async_inferior_event_token): Renamed to ...
8445 (record_full_async_inferior_event_token): ... this.
8447 (record_async_inferior_event_handler): Renamed to ...
8448 (record_full_async_inferior_event_handler): ... this.
8450 (record_core_open_1): Renamed to ...
8451 (record_full_core_open_1): ... this. Updated all users.
8452 (record_open_1): Renamed to ...
8453 (record_full_open_1): ... this. Updated all users.
8454 (record_open): Renamed to ...
8455 (record_full_open): ... this. Updated all users.
8456 (record_close): Renamed to ...
8457 (record_full_close): ... this. Updated all users.
8458 (record_resume_step): Renamed to ...
8459 (record_full_resume_step): ... this. Updated all users.
8460 (record_resumed): Renamed to ...
8461 (record_full_resumed): ... this. Updated all users.
8462 (record_execution_dir): Renamed to ...
8463 (record_full_execution_dir): ... this. Updated all users.
8464 (record_resume): Renamed to ...
8465 (record_full_resume): ... this. Updated all users.
8466 (record_get_sig): Renamed to ...
8467 (record_full_get_sig): ... this. Updated all users.
8468 (record_sig_handler): Renamed to ...
8469 (record_full_sig_handler): ... this. Updated all users.
8470 (record_wait_cleanups): Renamed to ...
8471 (record_full_wait_cleanups): ... this. Updated all users.
8472 (record_wait_1): Renamed to ...
8473 (record_full_wait_1): ... this. Updated all users.
8474 (record_wait): Renamed to ...
8475 (record_full_wait): ... this. Updated all users.
8476 (record_stopped_by_watchpoint): Renamed to ...
8477 (record_full_stopped_by_watchpoint): ... this. Updated all users.
8478 (record_disconnect): Renamed to ...
8479 (record_full_disconnect): ... this. Updated all users.
8480 (record_detach): Renamed to ...
8481 (record_full_detach): ... this. Updated all users.
8482 (record_mourn_inferior): Renamed to ...
8483 (record_full_mourn_inferior): ... this. Updated all users.
8484 (record_kill): Renamed to ...
8485 (record_full_kill): ... this. Updated all users.
8486 (record_stopped_data_address): Renamed to ...
8487 (record_full_stopped_data_address): ... this. Updated all users.
8488 (record_registers_change): Renamed to ...
8489 (record_full_registers_change): ... this. Updated all users.
8490 (record_store_registers): Renamed to ...
8491 (record_full_store_registers): ... this. Updated all users.
8492 (record_xfer_partial): Renamed to ...
8493 (record_full_xfer_partial): ... this. Updated all users.
8494 (record_breakpoint): Renamed to ...
8495 (record_full_breakpoint): ... this. Updated all users.
8496 (record_breakpoint_p): Renamed to ...
8497 (record_full_breakpoint_p): ... this. Updated all users.
8498 (record_breakpoints): Renamed to ...
8499 (record_full_breakpoints): ... this. Updated all users.
8500 (record_sync_record_breakpoints): Renamed to ...
8501 (record_full_sync_record_breakpoints): ... this.
8503 (record_init_record_breakpoints): Renamed to ...
8504 (record_full_init_record_breakpoints): ... this.
8506 (record_insert_breakpoint): Renamed to ...
8507 (record_full_insert_breakpoint): ... this. Updated all users.
8508 (record_remove_breakpoint): Renamed to ...
8509 (record_full_remove_breakpoint): ... this. Updated all users.
8510 (record_can_execute_reverse): Renamed to ...
8511 (record_full_can_execute_reverse): ... this. Updated all users.
8512 (record_get_bookmark): Renamed to ...
8513 (record_full_get_bookmark): ... this. Updated all users.
8514 (record_goto_bookmark): Renamed to ...
8515 (record_full_goto_bookmark): ... this. Updated all users.
8516 (record_async): Renamed to ...
8517 (record_full_async): ... this. Updated all users.
8518 (record_can_async_p): Renamed to ...
8519 (record_full_can_async_p): ... this. Updated all users.
8520 (record_is_async_p): Renamed to ...
8521 (record_full_is_async_p): ... this. Updated all users.
8522 (record_execution_direction): Renamed to ...
8523 (record_full_execution_direction): ... this. Updated all users.
8524 (record_info): Renamed to ...
8525 (record_full_info): ... this. Updated all users.
8526 (record_delete): Renamed to ...
8527 (record_full_delete): ... this. Updated all users.
8528 (record_is_replaying): Renamed to ...
8529 (record_full_is_replaying): ... this. Updated all users.
8530 (record_goto_entry): Renamed to ...
8531 (record_full_goto_entry): ... this. Updated all users.
8532 (record_goto_begin): Renamed to ...
8533 (record_full_goto_begin): ... this. Updated all users.
8534 (record_goto_end): Renamed to ...
8535 (record_full_goto_end): ... this. Updated all users.
8536 (record_goto): Renamed to ...
8537 (record_full_goto): ... this. Updated all users.
8538 (init_record_ops): Renamed to ...
8539 (init_record_full_ops): ... this. Updated all users.
8540 (record_core_resume): Renamed to ...
8541 (record_full_core_resume): ... this. Updated all users.
8542 (record_core_kill): Renamed to ...
8543 (record_full_core_kill): ... this. Updated all users.
8544 (record_core_fetch_registers): Renamed to ...
8545 (record_full_core_fetch_registers): ... this. Updated all users.
8546 (record_core_prepare_to_store): Renamed to ...
8547 (record_full_core_prepare_to_store): ... this. Updated all users.
8548 (record_core_store_registers): Renamed to ...
8549 (record_full_core_store_registers): ... this. Updated all users.
8550 (record_core_xfer_partial): Renamed to ...
8551 (record_full_core_xfer_partial): ... this. Updated all users.
8552 (record_core_insert_breakpoint): Renamed to ...
8553 (record_full_core_insert_breakpoint): ... this. Updated all users.
8554 (record_core_remove_breakpoint): Renamed to ...
8555 (record_full_core_remove_breakpoint): ... this. Updated all users.
8556 (record_core_has_execution): Renamed to ...
8557 (record_full_core_has_execution): ... this. Updated all users.
8558 (init_record_core_ops): Renamed to ...
8559 (init_record_full_core_ops): ... this. Updated all users.
8560 (cmd_record_restore): Renamed to ...
8561 (cmd_record_full_restore): ... this. Updated all users.
8562 (record_save_cleanups): Renamed to ...
8563 (record_full_save_cleanups): ... this. Updated all users.
8564 (cmd_record_start): Renamed to ...
8565 (cmd_record_full_start): ... this. Updated all users.
8566 (set_record_insn_max_num): Renamed to ...
8567 (set_record_full_insn_max_num): ... this. Updated all users.
8568 (set_record_command): Renamed to ...
8569 (set_record_full_command): ... this. Updated all users.
8570 (show_record_command): Renamed to ...
8571 (show_record_full_command): ... this. Updated all users.
8572 (_initialize_record): Renamed to ...
8573 (_initialize_record_full): ... this. Updated all users.
8575 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8577 * record.h: Split into this and ...
8578 * record-full.h: ... this.
8579 * record.c: Split into this and ...
8580 * record-full.c: ... this.
8581 * target.h (target_ops): Add new fields to_info_record,
8582 to_save_record, to_delete_record, to_record_is_replaying,
8583 to_goto_record_begin, to_goto_record_end, to_goto_record.
8584 (target_info_record): New.
8585 (target_save_record): New.
8586 (target_supports_delete_record): New.
8587 (target_delete_record): New.
8588 (target_record_is_replaying): New.
8589 (target_goto_record_begin): New.
8590 (target_goto_record_end): New.
8591 (target_goto_record): New.
8592 * target.c (target_info_record): New.
8593 (target_save_record): New.
8594 (target_supports_delete_record): New.
8595 (target_delete_record): New.
8596 (target_record_is_replaying): New.
8597 (target_goto_record_begin): New.
8598 (target_goto_record_end): New.
8599 (target_goto_record): New.
8600 * record.h: Declare struct cmd_list_element.
8601 (record_cmdlist): New declaration.
8602 (set_record_cmdlist): New declaration.
8603 (show_record_cmdlist): New declaration.
8604 (info_record_cmdlist): New declaration.
8605 (cmd_record_goto): New declaration.
8606 * record.c: Remove unnecessary includes.
8608 (cmd_record_goto): Remove declaration.
8609 (record_cmdlist): Now extern. Initialize.
8610 (set_record_cmdlist): Now extern. Initialize.
8611 (show_record_cmdlist): Now extern. Initialize.
8612 (info_record_cmdlist): Now extern. Initialize.
8613 (find_record_target): New.
8614 (require_record_target): New.
8615 (cmd_record_start): Update.
8616 (cmd_record_delete): Remove target-specific code.
8617 Call target_delete_record.
8618 (cmd_record_stop): Unpush any record target.
8619 (set_record_insn_max_num): Move to record-full.c
8620 (set_record_command): Add comment.
8621 (show_record_command): Add comment.
8622 (info_record_command): Update comment.
8623 Remove target-specific code.
8624 Call the record target's to_info_record.
8625 (cmd_record_start): New.
8626 (cmd_record_goto): Now extern.
8627 Remove target-specific code.
8628 Call target_goto_begin, target_goto_end, or target_goto.
8629 (_initialize_record): Move record target ops initialization to
8631 Change "record" command help text.
8632 Move "record restore", "record set", and "record show" commands to
8634 * Makefile.in (SFILES): Add record-full.c.
8635 (HFILES_NO_SRCDIR): Add record-full.h.
8636 (COMMON_OBS): Add record-full.o.
8637 * amd64-linux-tdep.c: Include record-full.h instead of record.h.
8638 * arm-tdep.c: Include record-full.h.
8639 * i386-linux-tdep.c: Include record-full.h instead of record.h.
8640 * i386-tdep.c: Include record-full.h.
8641 * infrun.c: Include record-full.h.
8642 * linux-record.c: Include record-full.h.
8643 * moxie-tdep.c: Include record-full.h.
8644 * record-full.c: Include record-full.h.
8645 Change module comment.
8646 (set_record_full_cmdlist): New.
8647 (show_record_full_cmdlist): New.
8648 (record_full_cmdlist): New.
8649 (record_goto_insn): New declaration.
8650 (record_save): New declaration.
8651 (record_check_insn_num): Change query string.
8653 (record_delete): New.
8654 (record_is_replaying): New.
8655 (record_goto_entry): New.
8656 (record_goto_begin): New.
8657 (record_goto_end): New.
8659 (init_record_ops): Update.
8660 (init_record_core_ops): Update.
8661 (cmd_record_save): Rename to record_save. Remove target and arg checks.
8662 (cmd_record_start): New.
8663 (set_record_insn_max_num): Moved from record.c
8664 (set_record_full_command): New.
8665 (show_record_full_command): New.
8666 (_initialize_record_full): New.
8668 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8670 * target.h (add_deprecated_target_alias): New.
8671 * target.c (add_deprecated_target_alias): New.
8673 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8675 * common/linux-btrace.c: Include sys/ptrace, sys/types, sys/wait.h,
8677 (linux_supports_btrace): Add kernel and
8679 (kernel_supports_btrace): New function.
8680 (cpu_supports_btrace): New function.
8681 (intel_supports_btrace): New function.
8683 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8685 * target.h (enum target_object): Add TARGET_OBJECT_BTRACE.
8686 * remote.c: Include btrace.h.
8687 (struct btrace_target_info): New struct.
8688 (remote_supports_btrace): New function.
8689 (send_Qbtrace): New function.
8690 (remote_enable_btrace): New function.
8691 (remote_disable_btrace): New function.
8692 (remote_teardown_btrace): New function.
8693 (remote_read_btrace): New function.
8694 (init_remote_ops): Add btrace ops.
8695 (enum <unnamed>): Add btrace packets.
8696 (struct protocol_feature remote_protocol_features[]): Add btrace packets.
8697 (_initialize_remote): Add packet configuration for branch tracing.
8699 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8701 * features/btrace.dtd: New file.
8702 * Makefile.in (XMLFILES): Add btrace.dtd.
8703 * btrace.h (parse_xml_btrace): New declaration.
8704 * btrace.c: Include xml-support.h.
8705 (parse_xml_btrace): New function.
8706 (parse_xml_btrace_block): New function.
8707 (block_attributes): New struct.
8708 (btrace_attributes): New struct.
8709 (btrace_children): New struct.
8710 (btrace_elements): New struct.
8712 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8714 * amd64-linux-nat.c: Include btrace.h and linux-btrace.h.
8715 (amd64_linux_enable_btrace): New.
8716 (amd64_linux_disable_btrace): New.
8717 (amd64_linux_teardown_btrace): New.
8718 (_initialize_amd64_linux_nat): Initialize btrace ops.
8719 * i386-linux.nat.c: Include btrace.h and linux-btrace.h.
8720 (i386_linux_enable_btrace): New.
8721 (i386_linux_disable_btrace): New.
8722 (i386_linux_teardown_btrace): New.
8723 (_initialize_i386_linux_nat): Initialize btrace ops.
8724 * config/i386/linux.mh: Add linux-btrace.o.
8725 * config/i386/linux64.mh: Add linux-btrace.o.
8727 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8729 * common/linux_btrace.h: New file.
8730 * common/linux_btrace.c: New file.
8731 * Makefile.in (SFILES): Add btrace.c.
8732 (HFILES_NO_SRCDIR): Add common/linux-btrace.h.
8733 (COMMON_OBS): Add btrace.o.
8734 (linux-btrace.o): New rule.
8736 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8738 * target.h: Include btrace.h.
8739 (struct target_ops) <to_supports_btrace, to_enable_btrace,
8740 to_disable_btrace, to_teardown_btrace, to_read_btrace>: New.
8741 * target.c (target_supports_btrace): New function.
8742 (target_enable_btrace): New function.
8743 (target_disable_btrace): New function.
8744 (target_teardown_btrace): New function.
8745 (target_read_btrace): New function.
8746 * btrace.h: New file.
8747 * btrace.c: New file.
8748 * Makefile.in: Add btrace.c.
8749 * gdbthread.h: Include btrace.h.
8750 (struct thread_info): Add btrace field.
8751 * thread.c: Include btrace.h.
8752 (clear_thread_inferior_resources): Call target_teardown_btrace.
8753 * common/btrace-common.h: New file.
8755 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8757 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Call also kill
8758 for CHILD, ignore PTRACE_KILL errors, move the inner block variable
8759 kill_status to outer block.
8761 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8763 Fix entry-values if the callee called a noreturn function.
8764 * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
8765 get_frame_address_in_block. Add new comment.
8767 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8769 Fix entry-values in C++ across CUs.
8770 * dwarf2loc.c (call_site_to_target_addr) <FIELD_LOC_KIND_PHYSNAME>: Use
8771 lookup_minimal_symbol. Add a comment.
8773 (read_call_site_scope) <is_ref_attr> <die_is_declaration>: Prefer
8776 2013-03-08 Yao Qi <yao@codesourcery.com>
8778 * tracepoint.c (_initialize_tracepoint): Indent the code.
8780 2013-03-08 Pedro Alves <palves@redhat.com>
8782 * findcmd.c (put_bits): Change type of parameter to 'gdb_byte *'.
8783 (parse_find_args, find_command): Change type of pattern buffer
8784 locals to 'gdb_byte *'.
8786 2013-03-08 Stan Shebs <stan@codesourcery.com>
8787 Hafiz Abid Qadeer <abidh@codesourcery.com>
8789 * NEWS: Mention set and show trace-buffer-size commands.
8791 * target.h (struct target_ops): New method
8792 to_set_trace_buffer_size.
8793 (target_set_trace_buffer_size): New macro.
8794 * target.c (update_current_target): Set up new method.
8795 * tracepoint.c (trace_buffer_size): New global.
8796 (start_tracing): Send it to the target.
8797 (set_trace_buffer_size): New function.
8798 (_initialize_tracepoint): Add new setshow for trace-buffer-size.
8799 * remote.c (remote_set_trace_buffer_size): New function.
8800 (_initialize_remote): Use it.
8801 (QTBuffer:size) New remote command.
8802 (PACKET_QTBuffer_size): New enum.
8803 (remote_protocol_features): Add an entry for
8804 PACKET_QTBuffer_size.
8806 2013-03-08 Tom Tromey <tromey@redhat.com>
8808 * remote-m32r-sdi.c (m32r_load): Call skip_spaces on correct
8811 2013-03-07 Pedro Alves <palves@redhat.com>
8813 * target.c (target_read_stralloc, target_fileio_read_alloc):
8814 *Cast pointer to 'gdb_byte *' in target call.
8816 2013-03-07 Pedro Alves <palves@redhat.com>
8818 * corefile.c (read_memory_string): Cast pointer to gdb_byte* in
8821 2013-03-07 Keith Seitz <keiths@redhat.com>
8823 * breakpoint.c (catch_syscall_split_args): Use skip_spaces.
8824 (trace_pass_command): Likewise.
8825 * cli/cli-cmds.c: Include cli/cli-utils.h.
8826 (source_command): Use skip-spaces.
8827 (disassemble_command): Likewise.
8828 * findcmd.c: Include cli/cli-utils.h.
8829 (parse_find_args): Use skip_spaces.
8830 * go32-nat.c: Include cli/cli-utils.h.
8831 (go32_sldt): Use skip_spaces.
8832 (go32_sgdt): Likewise.
8833 (go32_sidt): Likewise.
8834 (go32_pde): Likewise.
8835 (go32_pte): Likewise.
8836 (go32_pte_for_address): Likewise.
8837 * infcmd.c: Include cli/cli-utils.h.
8838 (registers_info): Use skip_spaces.
8839 * linux-tdep.c (read_mapping): Use skip_spaces_const.
8840 (linux_info_proc): Likewise.
8841 * linux-thread-db.c: Include cli/cli-utils.h.
8842 (info_auto_load_libthread_db): Use skip_spaces_const.
8843 * m32r-rom.c: Include cli/cli-utils.h.
8844 (m32r_upload_command): Use skip_spaces.
8845 * maint.c: Include cli/cli-utils.h.
8846 (maintenance_translate_address): Use skip_spaces.
8847 * mi/mi-parse.c: Include cli/cli-utils.h.
8848 (mi_parse_argv): Use skip_spaces.
8849 (mi_parse): Likewise.
8850 * minsyms.c: Include cli/cli-utils.h.
8851 (msymbol_hash_iw): Use skip_spaces_const.
8852 * objc-lang.c: Include cli/cli-utils.h.
8853 (parse_selector): Use skip_spaces.
8854 (parse_method): Likewise.
8855 * python/python.c: Include cli/cli-utils.h.
8856 (python_interactive_command)[HAVE_PYTHON]: Use skip_spaces.
8857 (python_command)[HAVE_PYTHON]: Likewise.
8858 (python_interactive_command)[!HAVE_PYTHON]: Likewise.
8859 * remote-m32r-sdi.c: Include cli/cli-utils.h.
8860 (m32r_load): Use skip_spaces.
8861 * serial.c: Include cli/cli-utils.h.
8862 (serial_open): Use skip_spaces_const.
8863 * stack.c: Include cli/cli-utils.h.
8864 (parse_frame_specification_1): Use skip_spaces_const.
8865 * symfile.c: Include cli/cli-utils.h.
8866 (set_ext_lang_command): Use skip_spaces.
8867 * symtab.c: Include cli/cli-utils.h.
8868 (rbreak_command): Use skip_spaces.
8869 * thread.c (thread_name_command): Use skip_spaces.
8870 * tracepoint.c (validate_actionline): Use skip_spaces.
8871 (encode_actions_1): Likewise.
8872 (trace_find_range_command): Likewise.
8873 (trace_find_outside_command): Likewise.
8874 (trace_dump_actions): Likewise.
8876 2013-03-07 Pedro Alves <palves@redhat.com>
8878 * c-lang.c (parse_one_string): Cast argument to gdb_byte *.
8879 * expprint.c (print_subexp_standard): Likewise.
8880 * utils.c (host_char_to_target): Likewise.
8881 * valprint.c (generic_emit_char, generic_printstr): Likewise.
8882 * varobj.c (value_get_print_value): Change type of local to char*.
8883 Cast it gdb_byte * in call to language printer.
8885 2013-03-07 Pedro Alves <palves@redhat.com>
8887 * charset.c (struct wchar_iterator) <input>: Change type to 'const
8889 (make_wchar_iterator): Remove cast to char*.
8890 (wchar_iterate): Change type of local.
8892 2013-03-07 Pedro Alves <palves@redhat.com>
8894 * regcache.c (regcache_xmalloc_1): Call XCALLOC with signed char
8895 for 'regcache->register_status'.
8897 2013-03-07 Pedro Alves <palves@redhat.com>
8899 * breakpoint.c (breakpoint_xfer_memory): Change type of local to
8902 2013-03-07 Pedro Alves <palves@redhat.com>
8904 * stap-probe.c (handle_stap_probe): Add cast to char*.
8906 2013-03-07 Pedro Alves <palves@redhat.com>
8908 * linux-record.c (record_linux_system_call) <gdb_sys_msgrcv,
8909 RECORD_MSGRCV>: Pass a signed variable to
8910 regcache_raw_read_signed, instead of an unsigned one.
8912 2013-03-07 Pedro Alves <palves@redhat.com>
8914 * remote-notif.c (notif_debug): Change type to int.
8915 * remote-notif.h (notif_debug): Likewise.
8917 2013-03-07 Pedro Alves <palves@redhat.com>
8919 * ser-tcp.c (tcp_retry_limit): Change type to unsigned int.
8921 2013-03-07 Pedro Alves <palves@redhat.com>
8923 * remote.c (hex2bin, bin2hex): Move extern declarations to ...
8924 * remote.h (hex2bin, bin2hex): ... here.
8925 * tracepoint.c (hex2bin, bin2hex): Remove extern declarations.
8927 2013-03-07 Eli Zaretskii <eliz@gnu.org>
8929 * utils.c (initialize_utils): Improve doc strings of "set/show
8930 width", "set/show height", and "set/show pagination".
8932 2013-03-06 Keith Seitz <keiths@redhat.com>
8934 * ax-gdb.c (gen_printf): Make FORMAT const.
8935 * ax-gdb.h (gen_printf): Likewise.
8936 * ax-general.c (ax_string): Make STR const.
8937 * ax.h (ax_string): Likewise.
8939 2013-03-06 Doug Evans <dje@google.com>
8941 * elfread.c (elf_symfile_read): Move debugging printf to more
8944 2013-03-06 Pedro Alves <palves@redhat.com>
8946 * python/py-utils.c (target_string_to_unicode): Delete function.
8947 * python/python-internal.h (target_string_to_unicode): Delete
8950 2013-03-06 Pierre Muller <muller@sourceware.org>
8952 * linespec.c (get_current_search_block): ARI fix, use (void)
8953 for empty parameter list.
8955 2013-03-05 Doug Evans <dje@google.com>
8957 * ada-lang.c (ada_lookup_symbol_list_worker): New function, contents
8958 of old ada_lookup_symbol_list. In !full_search case, don't
8960 (ada_lookup_symbol_list): Delete arg full_search, all callers
8961 updated. Call ada_lookup_symbol_list_worker.
8962 (ada_iterate_over_symbols): Call ada_lookup_symbol_list_worker.
8963 * ada-lang.h (ada_lookup_symbol_list): Update.
8964 * language.h (language_defn): Update comment for
8965 la_iterate_over_symbols.
8966 * linespec.c (iterate_over_file_blocks): New function.
8967 (iterate_over_all_matching_symtabs): Call it.
8968 (lookup_prefix_sym): Ditto.
8969 (get_current_search_block): New function.
8970 (get_search_block): Delete.
8971 (find_label_symbols): Call get_current_search_block.
8972 (add_matching_symbols_to_info): Call iterate_over_file_blocks.
8973 * symtab.c (iterate_over_symbols): Don't search superblocks.
8975 2013-03-05 Yao Qi <yao@codesourcery.com>
8977 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): Change
8978 parameter VAR's type from "unsigned int" to "int".
8979 * command.h (var_zuinteger_unlimited): Update its comments.
8980 (add_setshow_zuinteger_unlimited_cmd): Update the declaration.
8982 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
8984 * NEWS: Mention new target x86_64-*-cygwin*.
8986 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
8988 * configure.host: Add x86_64-*-cygwin* as host.
8989 * configure.tgt: Add x86_64-*-cygwin* as target.
8990 * config/i386/cygwin64.mh: New file.
8992 2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
8994 * linespec.c (decode_line_2): Fix duplicate request off by two message.
8996 2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
8998 * linespec.c (struct linespec_canonical_name): New.
8999 (struct linespec_state): Change canonical_names type to it.
9000 (add_sal_to_sals): Change variable canonical_name to canonical. Change
9001 xrealloc element size. Initialize the different CANONICAL fields.
9002 (canonical_to_fullform): New.
9003 (filter_results): Use it. Add variables canonical, fullform and
9005 (struct decode_line_2_item, decode_line_2_compare_items): New.
9006 (decode_line_2): Remove variables iter and item_names, add variables
9007 items and items_count. Modify the code for these new variables.
9009 2013-03-04 Corinna Vinschen <vinschen@redhat.com>
9011 * coff-pe-read.c (read_pe_exported_syms): Don't return without
9014 2013-03-04 Luis Machado <lgustavo@codesourcery.com>
9016 * tracepoint.c (build_traceframe_info): Add code for byte order.
9018 2013-03-02 Kevin Buettner <kevinb@redhat.com>
9020 * v850-tdep.c: (v850e2_register_name): Revise system register
9021 names to match current V850E2M architecture specifications.
9022 Update register number enum comments too.
9024 2013-03-01 Jiong Wang <jiwang@tilera.com>
9025 Pedro Alves <palves@redhat.com>
9027 * tilegx-tdep.c (tilegx_analyze_prologue): Limit bundle reading
9029 (tilegx_skip_prologue): Limit prologue analysis to section end.
9031 2013-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9033 * dwarf2loc.c (call_site_find_chain_1): New variable save_callee_pc,
9036 2013-03-01 Pedro Alves <palves@redhat.com>
9038 Use gdb_byte for bytes from the program being debugged.
9040 * arm-tdep.c (arm_store_return_value, arm_get_longjmp_target):
9041 Change type of local 'buf' to gdb_byte.
9042 * avr-tdep.c (avr_frame_prev_register, avr_push_dummy_call): Likewise.
9043 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
9044 * cris-tdep.c (cris_sigcontext_addr)
9045 (cris_sigtramp_frame_unwind_cache): Likewise.
9046 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp)
9047 (frv_linux_sigcontext_reg_addr, frv_linux_sigtramp_frame_cache):
9049 * frv-tdep.c (frv_pseudo_register_write, frv_analyze_prologue): Likewise.
9050 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer)
9051 (hppa32_hpux_search_dummy_call_sequence)
9052 (hppa_hpux_supply_save_state): Likewise.
9053 * hppa-linux-tdep.c (insns_match_pattern)
9054 (hppa_linux_find_global_pointer): Likewise.
9055 * hppa-tdep.c (hppa_in_function_epilogue_p)
9056 (skip_prologue_hard_way, hppa_frame_cache): Likewise.
9057 * i386-nto-tdep.c (i386nto_sigcontext_addr): Likewise.
9058 * i386fbsd-tdep.c (i386fbsd_supply_uthread)
9059 (i386fbsd_collect_uthread): Likewise.
9060 * ia64-hpux-tdep.c (ia64_hpux_push_dummy_code): Likewise.
9061 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Likewise.
9062 * ia64-tdep.c (examine_prologue, ia64_frame_cache)
9063 (ia64_frame_prev_register, ia64_sigtramp_frame_cache)
9064 (ia64_sigtramp_frame_prev_register, ia64_access_reg)
9065 (ia64_access_rse_reg, ia64_libunwind_frame_this_id)
9066 (ia64_libunwind_frame_prev_register)
9067 (ia64_libunwind_sigtramp_frame_this_id)
9068 (ia64_find_global_pointer_from_dynamic_section)
9069 (find_extant_func_descr, find_func_descr, ia64_dummy_id)
9070 (ia64_unwind_pc): Likewise.
9071 * iq2000-tdep.c (iq2000_store_return_value): Likewise.
9072 * m68hc11-tdep.c (m68hc11_push_dummy_call)
9073 (m68hc11_extract_return_value): Likewise.
9074 * m68klinux-nat.c (fetch_register, store_register): Likewise.
9075 * mep-tdep.c (mep_pseudo_cr32_read, mep_pseudo_cr32_write)
9076 (mep_get_insn, mep_push_dummy_call): Likewise.
9077 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
9078 (mips_linux_in_dynsym_stub): Likewise.
9079 * mn10300-tdep.c (mep_pseudo_cr32_write): Likewise.
9080 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
9081 * regcache.c (dump_endian_bytes): Change type of parameter 'buf'
9083 * remote-mips.c (mips_set_register): Likewise.
9084 * remote-sim.c (gdbsim_fetch_register): Likewise.
9085 * score-tdep.c (score7_fetch_inst): Change type of parameter
9086 'memblock' and local 'buf' to gdb_byte.
9087 (score7_malloc_and_get_memblock): Change return type to gdb_byte.
9088 Change type of local 'buf' to gdb_byte. Adjust.
9089 (score7_adjust_memblock_ptr): Change type of parameter 'memblock'
9091 (score7_analyze_prologue): Change type of 'memblock' and
9092 'memblock_ptr' locals to gdb_byte*.
9093 * sh64-tdep.c (sh64_extract_return_value)
9094 (sh64_store_return_value): Change type of local 'buf' to gdb_byte.
9095 * solib-darwin.c (darwin_current_sos, darwin_read_exec_load_addr):
9096 * solib-pa64.c (pa64_solib_create_inferior_hook)
9097 (pa64_open_symbol_file_object): Remove local 'buf'.
9098 * solib-som.c (som_solib_create_inferior_hook, link_map_start)
9099 (som_open_symbol_file_object): Likewise.
9100 * solib-spu.c (spu_current_sos): Likewise.
9101 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
9102 * spu-multiarch.c (parse_spufs_run, spu_fetch_registers)
9103 (spu_store_registers): Likewise.
9104 * target.c (debug_print_register): Likewise.
9105 * tic6x-tdep.c (tic6x_get_longjmp_target): Likewise.
9106 * xstormy16-tdep.c (xstormy16_store_return_value)
9107 (xstormy16_push_dummy_call, xstormy16_resolve_jmp_table_entry)
9108 (xstormy16_find_jmp_table_entry): Likewise.
9110 2013-03-01 Jiong Wang <jiwang@tilera.com>
9112 * tilegx-tdep.c (tilegx_get_longjmp_target): New function.
9113 (tilegx_gdbarch_init): Install it.
9115 2013-02-28 Tom Tromey <tromey@redhat.com>
9117 * python/py-arch.c (archpy_disassemble): Use PyInt_Check and
9120 2013-02-28 Doug Evans <dje@google.com>
9122 * python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
9123 * python/python.c (gdbpy_find_pc_line): Ditto.
9125 2013-02-28 Tom Tromey <tromey@redhat.com>
9127 * contrib/excheck.py: New file.
9128 * contrib/exsummary.py: New file.
9129 * contrib/gcc-with-excheck: New file.
9131 2013-02-28 Tom Tromey <tromey@redhat.com>
9133 * python/python.c (gdbpy_print_stack): Call begin_line and
9134 fprintf_filtered inside TRY_CATCH.
9136 2013-02-28 Tom Tromey <tromey@redhat.com>
9138 * python/python.c (gdbpy_find_pc_line): Call find_pc_line
9141 2013-02-28 Tom Tromey <tromey@redhat.com>
9143 * py-finishbreakpoint.c (bpfinishpy_init): Reorganize to call
9144 frame_object_to_frame_info inside TRY_CATCH.
9146 2013-02-28 Tom Tromey <tromey@redhat.com>
9148 * py-block.c (gdbpy_block_for_pc): Call block_for_pc inside
9151 2013-02-28 Tom Tromey <tromey@redhat.com>
9153 * objfiles.h (ALL_PSPACE_OBJFILES): Remove trailing backlash.
9155 2013-02-27 Corinna Vinschen <vinschen@redhat.com>
9157 * windows-nat.c: Throughout, fix format strings and casts of
9158 printf-like functions to avoid type related warnings on all
9160 (handle_output_debug_string): Fetch context information address
9161 from debug string using string_to_core_addr.
9163 2013-02-27 Jiong Wang <jiwang@tilera.com>
9165 * regformats/reg-tilegx.dat (name): Change abi name to "tilegx".
9166 * regformats/reg-tilegx32.dat: New.
9168 2013-02-27 Jiong Wang <jiwang@tilera.com>
9170 * configure.tgt (tilegx-*-linux*): Enable gdbserver.
9172 2013-02-27 Jiong Wang <jiwang@tilera.com>
9174 * configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
9176 2013-02-27 Yao Qi <yao@codesourcery.com>
9177 Pedro Alves <palves@redhat.com>
9179 * tracepoint.c (tfile_trace_find): For tfind
9180 pc/tp/range/outside, look for the next trace frame instead of
9181 always starting from frame 0.
9183 2013-02-26 Anthony Green <green@moxielogic.com>
9185 * configure.tgt: Add support for moxie-*-rtems* target.
9187 2013-02-25 Pedro Alves <palves@redhat.com>
9189 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
9192 2013-02-24 Maciej W. Rozycki <macro@codesourcery.com>
9194 * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
9195 if $fp is used as the virtual frame pointer.
9197 2013-02-23 Alan Modra <amodra@gmail.com>
9199 * elfread.c (elf_symtab_read): Do not use udata.p here to find
9201 * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
9202 * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
9203 * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
9204 * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
9206 2013-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
9209 * elfread.c (build_id_bfd_get): Make the return type const.
9210 (build_id_verify): Make the check parameter const.
9211 (build_id_to_debug_filename): Make the build_id parameter and variable
9213 (find_separate_debug_file_by_buildid): Make the variable build_id const.
9215 2013-02-21 Alan Modra <amodra@gmail.com>
9217 * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
9219 2013-02-20 Siva Chandra Reddy <sivachandra@google.com>
9221 Add a new method 'disassemble' to gdb.Architecture class.
9222 * python/py-arch.c (archpy_disassmble): Implementation of the
9223 new method gdb.Architecture.disassemble.
9224 (arch_object_methods): Add entry for the new method.
9226 2013-02-20 Jiong Wang <jiwang@tilera.com>
9228 * MAINTAINERS (Write After Approval): Add myself to the list.
9230 2013-02-19 Pedro Alves <palves@redhat.com>
9232 Garbage collect 'struct monitor_ops'::load_routine.
9234 * monitor.h (struct monitor_ops) <load_routine>: Remove field.
9235 * monitor.c (monitor_load): No longer call
9236 current_monitor->load_routine.
9237 * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
9238 * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
9239 * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
9241 2013-02-19 Pedro Alves <palves@redhat.com>
9245 Harmonize with generic_load.
9247 * monitor.c: Include "readline/readline.h".
9248 (monitor_load): Rename parameter 'file' to 'args'. Use build_argv
9249 instead of sscanf. Use CORE_ADDR/strtoulst instead of unsigned
9250 long/strtol for the 'load_offset' local. Error out if no argument
9251 is given or if too many arguments are given. Tilde expand the
9252 passed in file name.
9254 2013-02-19 Kai Tietz <ktietz@redhat.com>
9257 * symfile.c (load_section_data): Change type of load_offset
9259 (generic_load): User strtoulst instead of strtoul for conversion
9262 2013-02-19 Jiong Wang <jiwang@tilera.com>
9264 * tilegx-tdep.c (tilegx_analyze_prologue): add check for
9265 for return address, "lr" register, saved on stack.
9266 * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
9267 after we invoke tilegx_analyze_prologue.
9269 2013-02-19 Jiong Wang <jiwang@tilera.com>
9271 * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
9273 2013-02-19 Jiong Wang <jiwang@tilera.com>
9275 * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
9277 2013-02-19 Jiong Wang <jiwang@tilera.com>
9279 * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
9280 (tilegx_write_pc): New function.
9281 (tilegx_cannot_reference_register): Return zero if REGNO
9282 is TILEGX_FAULTNUM_REGNUM.
9283 (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
9284 (tilegx_register_name): Add handling of "faultnum" register.
9285 * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
9286 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
9287 handling of TILEGX_FAULTNUM_REGNUM.
9288 * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
9290 2013-02-19 Jiong Wang <jiwang@tilera.com>
9292 * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
9293 should be aligned to 64bit.
9295 2013-02-19 Kai Tietz <ktietz@redhat.com>
9297 * windows-nat.c (windows_xfer_memory): Fix debug-output
9300 2013-02-19 Lei Liu <lei.liu2@windriver.com>
9302 * mips-linux-nat.c (mips64_linux_regsets_store_registers):
9303 Don't check DSP register number if HAVE_DSP is not set.
9305 2013-02-19 Alan Modra <amodra@gmail.com>
9307 * elfread.c (struct build_id): Delete. Use struct elf_build_id
9308 throughout file instead.
9309 (build_id_bfd_get): Update to use new elf_tdata build_id field.
9310 Don't xmalloc return value.
9311 (build_id_verify): Similarly. Don't xfree.
9312 (build_id_to_debug_filename): Update.
9313 (find_separate_debug_file_by_buildid): Update, don't xfree.
9315 2013-02-18 Tom Tromey <tromey@redhat.com>
9318 * dwarf2read.c (read_subrange_type): Use result of
9321 2013-02-16 Yuanhui Zhang <asmwarrior@gmail.com>
9323 * frame.c: Remove one extra white space after #include
9326 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9328 * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
9330 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9332 * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
9333 and dir commands into an if block.
9335 2013-02-15 Sanimir Agovic <sanimir.agovic@intel.com>
9337 * python/py-breakpoint (struct pybp_code): Use int instead of
9340 2013-02-15 Pedro Alves <pedro@codesourcery.com>
9341 Hafiz Abid Qadeer <abidh@codesourcery.com>
9343 * NEWS: Mention new field "trace-file".
9344 * tracepoint.c (trace_status_mi): Output "trace-file" field.
9345 (tfile_open): Record the trace file's filename in the trace
9347 (tfile_files_info): Mention the name of the trace file.
9348 Check the "filename" field explicitely.
9349 (trace_status_command): Explicitely check "filename" field.
9350 (trace_find_command): Ditto.
9351 (trace_find_pc_command): Ditto.
9352 (trace_find_tracepoint_command): Ditto.
9353 (trace_find_line_command): Ditto.
9354 (trace_find_range_command): Ditto.
9355 (trace_find_outside_command): Ditto.
9356 * tracepoint.h (struct trace_status) <from_file>: Rename it
9357 to "filename" and make it hold the trace file's filename
9358 instead of a boolean.
9359 * remote.c (remote_get_trace_status): Initialize "filename"
9360 field with NULL instead of 0.
9362 2013-02-15 Yao Qi <yao@codesourcery.com>
9364 * remote.c: Fix a typo.
9366 2013-02-14 Pierre Muller <muller@sourceware.org>
9368 * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
9370 2013-02-14 Pedro Alves <palves@redhat.com>
9372 * utils.c (savestring): Don't #undef it. Move function to
9373 common/common-utils.c.
9374 * common/common-utils.c: Include gdb_string.h.
9375 (savestring): Move here from utils.c.
9376 * common/common-utils.h (savestring): Declare.
9378 2013-02-14 Pedro Alves <palves@redhat.com>
9380 * utils.c (savestring): Rename parameter 'size' to 'len'.
9382 2013-02-14 Pedro Alves <palves@redhat.com>
9383 Yufeng Zhang <yufeng.zhang@arm.com>
9385 * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
9386 (aarch64_inferior_data, struct aarch64_inferior_data):
9388 (struct aarch64_process_info): New.
9389 (aarch64_process_list): New global.
9390 (aarch64_find_process_pid, aarch64_add_process)
9391 (aarch64_process_info_get): New functions.
9392 (aarch64_inferior_data_get): Delete.
9393 (aarch64_process_info_get): New function.
9394 (aarch64_forget_process): New function.
9395 (aarch64_get_debug_reg_state): New parameter 'pid'. Reimplement.
9396 (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
9397 aarch64_get_debug_reg_state.
9398 (aarch64_notify_debug_reg_change): Use iterate_over_lwps
9399 instead of linux_nat_iterate_watchpoint_lwps.
9400 (aarch64_linux_new_fork): New function.
9401 (aarch64_linux_child_post_startup_inferior): Use
9402 aarch64_forget_process instead of aarch64_init_debug_reg_state.
9403 (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
9404 (aarch64_linux_remove_hw_breakpoint)
9405 (aarch64_handle_aligned_watchpoint)
9406 (aarch64_handle_unaligned_watchpoint)
9407 (aarch64_linux_insert_watchpoint)
9408 (aarch64_linux_remove_watchpoint)
9409 (aarch64_linux_stopped_data_address): Adjust to pass the current
9410 process id to aarch64_debug_reg_state.
9411 (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
9412 linux_nat_new_fork hook, and aarch64_forget_process as
9413 linux_nat_forget_process hook; remove the call to
9414 register_inferior_data_with_cleanup.
9416 2013-02-14 Pedro Alves <palves@redhat.com>
9418 * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
9419 EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
9422 2013-02-14 Pedro Alves <pedro@codesourcery.com>
9423 Hafiz Abid Qadeer <abidh@codesourcery.com>
9425 * tracepoint.h (validate_trace_state_variable_name): Declare.
9426 * tracepoint.c (validate_trace_state_variable_name): New.
9427 (trace_variable_command): Parse the trace state variable's name
9428 without using parse_expression. Do several validations.
9429 * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
9430 trace state variable's name with parse_expression. Validate it.
9432 2013-02-14 Yao Qi <yao@codesourcery.com>
9434 * infcmd.c (breakpoint_proceeded): Remove it.
9436 2013-02-14 Yao Qi <yao@codesourcery.com>
9438 * tracepoint.c (end_actions_pseudocommand): Make it static.
9439 (while_stepping_pseudocommand): Likewise.
9440 * tracepoint.h (end_actions_pseudocommand): Remove the
9442 (while_stepping_pseudocommand): Likewise.
9444 2013-02-14 Yao Qi <yao@codesourcery.com>
9446 * cli/cli-decode.c (help_cmd): Remove the declaration of
9448 (help_all): Likewise.
9450 2013-02-13 Pedro Alves <palves@redhat.com>
9452 * amd64-linux-nat.c (update_debug_registers_callback):
9454 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
9456 (amd64_linux_prepare_to_resume): Pass the lwp's pid to
9457 i386_debug_reg_state.
9458 (amd64_linux_new_fork): New function.
9459 (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
9460 linux_nat_new_fork hook, and i386_forget_process as
9461 linux_nat_forget_process hook.
9462 * i386-linux-nat.c (update_debug_registers_callback):
9464 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
9466 (i386_linux_prepare_to_resume): Pass the lwp's pid to
9467 i386_debug_reg_state.
9468 (i386_linux_new_fork): New function.
9469 (_initialize_i386_linux_nat): Install i386_linux_new_fork as
9470 linux_nat_new_fork hook, and i386_forget_process as
9471 linux_nat_forget_process hook.
9472 * i386-nat.c (i386_init_dregs): Delete.
9473 (i386_inferior_data, struct i386_inferior_data):
9475 (struct i386_process_info): New.
9476 (i386_process_list): New global.
9477 (i386_find_process_pid, i386_add_process, i386_process_info_get):
9479 (i386_inferior_data_get): Delete.
9480 (i386_process_info_get): New function.
9481 (i386_debug_reg_state): New parameter 'pid'. Reimplement.
9482 (i386_forget_process): New function.
9483 (i386_cleanup_dregs): Rewrite.
9484 (i386_update_inferior_debug_regs, i386_insert_watchpoint)
9485 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
9486 (i386_stopped_data_address, i386_insert_hw_breakpoint)
9487 (i386_remove_hw_breakpoint): Adjust to pass the current process id
9488 to i386_debug_reg_state.
9489 (i386_use_watchpoints): Don't register inferior data.
9490 * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
9492 (i386_forget_process): Declare.
9493 * linux-fork.c (delete_fork): Call linux_nat_forget_process.
9494 * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
9496 (linux_child_follow_fork): Don't call linux_nat_new_thread here.
9497 (add_initial_lwp): New, factored out from ...
9498 (add_lwp): ... this. Don't check the number of lwps before
9499 calling linux_nat_new_thread.
9500 (linux_nat_iterate_watchpoint_lwps): Delete.
9501 (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
9502 (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
9504 (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
9506 (linux_nat_kill, linux_nat_mourn_inferior): Call
9507 linux_nat_forget_process.
9508 (linux_nat_set_new_fork, linux_nat_set_forget_process)
9509 (linux_nat_forget_process): New functions.
9510 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
9512 (linux_nat_iterate_watchpoint_lwps): Delete declaration.
9513 (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
9515 (linux_nat_set_new_fork, linux_nat_set_forget_process)
9516 (linux_nat_forget_process): New declarations.
9518 * amd64fbsd-nat.c (super_mourn_inferior): New global.
9519 (amd64fbsd_mourn_inferior): New function.
9520 (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
9521 * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
9523 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
9525 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
9528 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
9530 * aarch64-linux-nat.c (debug_reg_change_callback)
9531 (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
9534 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
9536 * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
9539 2013-02-13 Pedro Alves <palves@redhat.com>
9540 Hafiz Abid Qadeer <abidh@codesourcery.com>
9542 * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
9544 2013-02-12 Tom Tromey <tromey@redhat.com>
9547 * c-exp.y (lex_one_token): Initialize other fields of yylval on
9549 (classify_inner_name): Remove 'first_name' argument, add
9550 'context'. Remove unused variable.
9551 (yylex): Explicitly maintain the context type. Exit loop earlier
9552 if NAME result is seen.
9554 2013-02-12 Pedro Alves <palves@redhat.com>
9556 * amd64-darwin-tdep.c: Add (C) after Copyright.
9557 * cli/cli-cmds.h: Ditto.
9558 * cli/cli-decode.c: Ditto.
9559 * cli/cli-decode.h: Ditto.
9560 * cli/cli-dump.c: Ditto.
9561 * cli/cli-dump.h: Ditto.
9562 * cli/cli-interp.c: Ditto.
9563 * cli/cli-logging.c: Ditto.
9564 * cli/cli-script.c: Ditto.
9565 * cli/cli-script.h: Ditto.
9566 * cli/cli-setshow.c: Ditto.
9567 * cli/cli-setshow.h: Ditto.
9568 * cli/cli-utils.c: Ditto.
9569 * cli/cli-utils.h: Ditto.
9570 * config/alpha/nm-osf3.h: Ditto.
9571 * config/djgpp/djconfig.sh: Ditto.
9572 * config/i386/nm-fbsd.h: Ditto.
9573 * config/i386/nm-i386gnu.h: Ditto.
9574 * config/nm-linux.h: Ditto.
9575 * config/nm-nto.h: Ditto.
9576 * config/rs6000/nm-rs6000.h: Ditto.
9577 * config/sparc/nm-sol2.h: Ditto.
9578 * darwin-nat-info.c: Ditto.
9581 * gdb-demangle.h: Ditto.
9582 * i386-darwin-nat.c: Ditto.
9583 * i386-darwin-tdep.c: Ditto.
9584 * linux-fork.h: Ditto.
9585 * m32c-tdep.c: Ditto.
9586 * microblaze-linux-tdep.c: Ditto.
9587 * microblaze-rom.c: Ditto.
9588 * microblaze-tdep.c: Ditto.
9589 * microblaze-tdep.h: Ditto.
9590 * mips-linux-tdep.h: Ditto.
9591 * ppc-ravenscar-thread.c: Ditto.
9592 * ppc-ravenscar-thread.h: Ditto.
9593 * prologue-value.c: Ditto.
9594 * prologue-value.h: Ditto.
9595 * ravenscar-thread.c: Ditto.
9596 * ravenscar-thread.h: Ditto.
9597 * sparc-ravenscar-thread.c: Ditto.
9598 * sparc-ravenscar-thread.h: Ditto.
9599 * tilegx-linux-tdep.c: Ditto.
9600 * unwind_stop_reasons.def: Ditto.
9601 * windows-nat.h: Ditto.
9602 * xtensa-linux-tdep.c: Ditto.
9603 * xtensa-xtregs.c: Ditto.
9604 * regformats/regdat.sh: Ditto.
9605 * regformats/regdef.h: Ditto.
9607 2013-02-12 Pedro Alves <palves@redhat.com>
9609 * break-catch-sig.c: Update copyright years.
9611 2013-02-11 Siva Chandra Reddy <sivachandra@google.com>
9613 Add support for a destructor for ui_out data and use it to
9614 provide a ui_out destructor.
9615 * ui-out.h: Declare the new ui_out destructor.
9616 (ui_out_impl): Add a field for data destructor in ui_out_impl.
9617 * ui-out.c (default_data_destroy): Add a default data destructor
9619 (default_ui_out_impl): Set the new data_destroy field to
9620 default_data_destroy
9621 (uo_data_destroy): Local function which invokes the data
9622 destructor if present.
9623 (clear_table): Local function which clears the table data of a
9625 (ui_out_destroy): Public function which frees a ui_out object.
9626 (ui_out_table_end): Use the new clear_table function.
9627 * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
9629 * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
9632 2013-02-11 Doug Evans <dje@google.com>
9634 * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
9635 (printf_decfloat): New function. Broken out from ui_printf.
9636 Remove unnecessary code to shift the entire format string down.
9637 (printf_pointer): New function.
9638 (ui_printf): Code to print C strings, wide C strings, decfloats,
9639 and pointers moved to separate functions.
9641 2013-02-11 Sergio Durigan Junior <sergiodj@redhat.com>
9643 * valops.c (value_assign): Handling bitfield offset in
9644 `lval_internalvar_component' case.
9646 2013-02-08 Doug Evans <dje@google.com>
9648 * common/format.c (parse_format_string): Fix whitespace.
9650 2013-02-08 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
9652 * stack.c (return_command): Work around uninitialized variable
9655 2013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
9657 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
9658 number of the registers from 36 to 34.
9660 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
9662 * NEWS: Mention new AArch64 native and target support.
9664 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
9666 * MAINTAINERS (Write After Approval): Add myself.
9668 2013-02-08 Jim MacArthur <jim.macarthur@arm.com>
9669 Marcus Shawcroft <marcus.shawcroft@arm.com>
9670 Nigel Stephens <nigel.stephens@arm.com>
9671 Yufeng Zhang <yufeng.zhang@arm.com>
9673 * aarch64-linux-nat.c: New file.
9674 * config/aarch64/linux.mh: New file.
9675 * configure.host: Add AArch64.
9676 * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
9678 2013-02-07 Doug Evans <dje@google.com>
9680 * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
9681 disassemble command.
9683 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
9685 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
9686 set_gdbarch_fetch_tls_load_module_address.
9688 2013-02-06 David S. Miller <davem@davemloft.net>
9690 * sparc-tdep.c (sparc32_return_value): Handle writing return value when
9691 using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
9692 * value.c (struct_return_convention): New function.
9693 (using_struct_return): Implement in terms of struct_return_convention.
9694 * value.h (struct_return_convention): Declare.
9695 * stack.c (return_command): Allow successful overriding of the return
9696 value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
9698 2013-02-06 Tom Tromey <tromey@redhat.com>
9700 * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
9701 outside of TRY_CATCH.
9703 2013-02-06 Yao Qi <yao@codesourcery.com>
9705 * mi/mi-interp.c: Include "tracepoint.h".
9706 (mi_tsv_modified): Declare.
9707 (mi_tsv_created, mi_tsv_deleted): Update declaration.
9708 (mi_interpreter_init): Call observer_attach_tsv_modified.
9709 (mi_tsv_modified): New.
9710 (mi_tsv_created, mi_tsv_deleted): Update.
9711 * tracepoint.c (trace_variable_command): Call
9712 observer_notify_tsv_modified if the initial value of tsv is
9714 (delete_trace_state_variable): Call
9715 observer_notify_tsv_deleted earlier.
9716 (trace_variable_command): Caller update.
9717 (create_tsv_from_upload): Likewise.
9718 * observer.sh: Declare "struct trace_state_variable".
9720 * NEWS: Mention the new MI notification "=tsv-modified".
9722 2013-02-05 Doug Evans <dje@google.com>
9724 * completer.c (location_completer): Fix typo in comment.
9726 2013-02-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9728 * breakpoint.c (add_location_to_breakpoint): Insert the location with
9731 2013-02-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
9733 * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
9734 Refactor if statement to avoid trailing || operator.
9736 2013-02-05 Andreas Tobler <andreast@fgznet.ch>
9738 * NEWS: Add PowerPC FreeBSD as a new native configuration.
9740 2013-02-04 Andreas Tobler <andreast@fgznet.ch>
9742 * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
9743 * configure.host: Add powerpc*-*-freebsd* target.
9744 * configure.tgt: Add target info for powerpc*-*-freebsd*.
9745 * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
9746 * config/powerpc/fbsd.mh: New file.
9748 2013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
9749 Denys Vlasenko <dvlasenk@redhat.com>
9750 Pedro Alves <palves@redhat.com>
9752 * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
9753 (struct elf_internal_linux_prpsinfo): Forward declare.
9754 * gdbarch.h, gdbarch.c: Regenerate.
9755 * linux-tdep.c: Include `cli/cli-utils.h'.
9756 (linux_fill_prpsinfo): New function.
9757 (linux_make_corefile_notes): Use linux_fill_prpsinfo. If there's
9758 an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
9759 elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
9760 depending on gdbarch pointer bitness.
9761 * ppc-linux-tdep.c: Include elf-bfd.h.
9762 (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
9765 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
9766 Marcus Shawcroft <marcus.shawcroft@arm.com>
9767 Nigel Stephens <nigel.stephens@arm.com>
9768 Yufeng Zhang <yufeng.zhang@arm.com>
9770 * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
9772 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
9773 Marcus Shawcroft <marcus.shawcroft@arm.com>
9774 Nigel Stephens <nigel.stephens@arm.com>
9775 Yufeng Zhang <yufeng.zhang@arm.com>
9777 * aarch64-newlib-tdep.c: New file.
9778 * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
9780 * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
9781 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
9782 (ALLDEPFILES): Add aarch64-newlib-tdep.c.
9783 * osabi.c (gdb_osabi_names): Add "Newlib".
9785 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
9786 Marcus Shawcroft <marcus.shawcroft@arm.com>
9787 Nigel Stephens <nigel.stephens@arm.com>
9788 Yufeng Zhang <yufeng.zhang@arm.com>
9790 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
9791 (ALLDEPFILES): Add aarch64-linux-tdep.c.
9792 * aarch64-linux-tdep.c: New file.
9793 * aarch64-linux-tdep.h: New file.
9794 * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
9795 * configure.tgt: Add aarch64-none-linux-gnu.
9797 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
9798 Marcus Shawcroft <marcus.shawcroft@arm.com>
9799 Nigel Stephens <nigel.stephens@arm.com>
9800 Yufeng Zhang <yufeng.zhang@arm.com>
9802 * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
9803 (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
9804 (ALLDEPFILES): Add aarch64-tdep.c.
9805 * aarch64-tdep.c: New file.
9806 * aarch64-tdep.h: New file.
9807 * configure.tgt: Add AArch64.
9808 * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
9809 (aarch64-expedite): New definition.
9810 * features/aarch64-core.xml: New file.
9811 * features/aarch64-fpu.xml: New file.
9812 * features/aarch64-without-fpu.c: New file (generated).
9813 * features/aarch64-without-fpu.xml: New file.
9814 * features/aarch64.c: New file (generated).
9815 * features/aarch64.xml: New file.
9816 * regformats/aarch64-without-fpu.dat: New file (generated).
9817 * regformats/aarch64.dat: New file (generated).
9819 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9821 * contrib/expect-read1.c: New file.
9822 * contrib/expect-read1.sh: New file.
9824 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9826 * dwarf2read.c (file_file_name): New function with code from
9828 (file_full_name): Move most of the code to file_file_name.
9829 (macro_start_file): Rename variable full_name to file_name and use
9830 file_file_name for it. Add comp_dir parameter to new_macro_table.
9831 * macrocmd.c (show_pp_source_pos): New variable fullname. Replace any
9832 macro_source_file->filename access by macro_source_fullname call.
9833 * macroscope.c (_initialize_macroscope): Update the new_macro_table
9835 * macrotab.c (struct macro_table): New field comp_dir.
9836 (macro_include): New variables link_fullname and source_fullname.
9837 Replace any macro_source_file->filename access by macro_source_fullname
9839 (macro_lookup_inclusion): Remove the partial filenames checking code.
9840 (check_for_redefinition): New variables source_fullname and
9841 found_key_fullname. Replace any macro_source_file->filename access by
9842 macro_source_fullname call.
9843 (macro_undef): New variables source_fullname and key_fullname. Replace
9844 any macro_source_file->filename access by macro_source_fullname call.
9845 (macro_lookup_definition): New variables retval and source_fullname.
9846 Replace any macro_source_file->filename access by macro_source_fullname
9848 (foreach_macro): New variable key_fullname. Replace any
9849 macro_source_file->filename access by macro_source_fullname call.
9850 (foreach_macro_in_scope): New variable datum_fullname. Replace any
9851 macro_source_file->filename access by macro_source_fullname call.
9852 (new_macro_table): Add parameter comp_dir. Initialize T with it.
9853 (macro_source_fullname): New function.
9854 * macrotab.h (struct macro_source_file): Extent the filename field
9856 (new_macro_table): New parameter comp_dir, add a comment for it.
9857 (macro_source_fullname): new declaration.
9859 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9861 * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
9862 this_real_name to outer block. Use it also for
9863 compare_filenames_for_search.
9864 (dw2_expand_symtabs_matching): New variable this_real_name. Use it
9865 with dw2_get_real_path for file_matcher, considering also
9866 BASENAMES_MAY_DIFFER.
9867 (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
9869 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9871 * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
9872 to the file_matcher parameter. Pass 0 to it.
9873 (dwarf2_create_include_psymtab): Copy also DIRNAME.
9874 * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
9875 NULL psymtab_to_fullname result.
9876 (psymtab_to_fullname): Remove variable r. Never return NULL, assemble
9877 an expected filename instead.
9878 (expand_symtabs_matching_via_partial): Add basenames parameter to the
9879 file_matcher parameter. Call also psymtab_to_fullname, after newly
9880 considering BASENAMES_MAY_DIFFER.
9881 * source.c (rewrite_source_path): Remove static.
9882 * source.h (rewrite_source_path): New declaration.
9883 * symfile.h (struct quick_symbol_functions): Add basenames parameter to
9884 the expand_symtabs_matching field. Comment it.
9885 * symtab.c (file_matches): New function comment. Add parameter
9886 basenames, implement it.
9887 (search_symbols_file_matches): Add basenames parameter. Update the
9888 file_matches caller.
9889 (search_symbols): Match FILES also against symtab_to_fullname.
9890 Optimize it for BASENAMES_MAY_DIFFER.
9892 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9894 * source.c (print_source_lines_base): Print for TUI also "fullname".
9895 * tui/tui-data.c (init_content_element): Change tui_locator_element
9897 * tui/tui-data.h (struct tui_locator_element): Likewise.
9898 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
9899 tui_update_locator_filename calls to tui_update_locator_fullname.
9900 Replace symtab->filename refererence by symtab_to_fullname call.
9901 * tui/tui-out.c (tui_field_string): Check for "fullname" now.
9902 * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
9903 field to full_name. Replace symtab->filename refererence by
9904 symtab_to_fullname call.
9905 (tui_show_symtab_source): Rename parameter to fullname. Change
9906 tui_locator_element field to full_name.
9907 * tui/tui-stack.c: Include source.h.
9908 (tui_set_locator_filename): Rename the declaration to ...
9909 (tui_set_locator_fullname): ... here. Rename its parameter to
9910 fullname, updates its comment.
9911 (tui_set_locator_info): Rename its parameter to fullname.
9912 (tui_set_locator_filename): Rename the definition to ...
9913 (tui_set_locator_fullname): ... here. Rename its parameter to
9914 fullname, updates its comment. Change tui_locator_element field to
9916 (tui_set_locator_info): Rename its parameter to fullname.
9917 (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
9918 (tui_update_locator_filename): Rename to ...
9919 (tui_update_locator_fullname): ... here. Rename callee to
9920 tui_set_locator_fullname.
9921 (tui_show_frame_info): Replace symtab->filename refererence by
9922 symtab_to_fullname call.
9923 * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
9924 (tui_update_locator_fullname): ... here.
9925 * tui/tui-winsource.c (tui_display_main): Rename the callee to
9926 tui_update_locator_fullname. Replace symtab->filename refererence by
9927 symtab_to_fullname call.
9928 * tui/tui.c (tui_show_source): Rename its parameter to fullname.
9929 Rename the callee to tui_update_locator_fullname.
9930 * tui/tui.h (tui_show_source): Rename its parameter to fullname.
9932 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9934 * ada-lang.c (user_select_syms): Replace symtab->filename refererences
9935 by symtab_to_filename_for_display calls.
9936 * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
9937 (clear_command): New variable sal_fullname, initialize it. Replace
9938 compare_filenames_for_search by filename_cmp with sal_fullname.
9939 (say_where, update_static_tracepoint): Replace symtab->filename
9940 refererences by symtab_to_filename_for_display calls.
9941 * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
9943 * dwarf2read.c: Include source.h.
9944 (fixup_go_packaging): Replace symtab->filename refererences by
9945 symtab_to_filename_for_display calls.
9946 * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
9947 Replace symtab->filename refererences by symtab_to_filename_for_display
9949 (create_sals_line_offset, convert_linespec_to_sals): New variable
9950 fullname, initialize it, replace symtab->filename reference by the
9952 * linux-fork.c: Include source.h.
9953 (info_checkpoints_command): Replace symtab->filename refererences by
9954 symtab_to_filename_for_display calls.
9955 * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
9956 by symtab_to_filename_for_display calls.
9957 * mdebugread.c: Include source.h.
9958 (psymtab_to_symtab_1): Replace symtab->filename refererences by
9959 symtab_to_filename_for_display calls.
9960 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
9961 (mi_cmd_file_list_exec_source_files): Likewise.
9962 * printcmd.c: Include source.h.
9963 (build_address_symbolic): Replace symtab->filename refererences by
9964 symtab_to_filename_for_display calls.
9965 * psymtab.c (partial_map_symtabs_matching_filename)
9966 (read_psymtabs_with_fullname): Call compare_filenames_for_search also
9967 with psymtab_to_fullname.
9968 * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
9969 by symtab_to_filename_for_display calls.
9970 (stpy_get_filename): New variable filename, initialize it, use instead
9971 of symtab->filename refererences.
9972 (salpy_str): Make variable filename const char *. Replace
9973 symtab->filename refererences by symtab_to_filename_for_display calls.
9974 * skip.c: Include source.h and filenames.h.
9975 (skip_file_command): Remove const from the symtab variable. Replace
9976 symtab->filename refererences by symtab_to_fullname call.
9977 (function_name_is_marked_for_skip): New variables searched_for_fullname
9978 and fullname. Use them to search also with symtab's fullname.
9979 * source.c (find_source_lines): Replace symtab->filename refererences
9980 by symtab_to_filename_for_display calls.
9981 (print_source_lines_base): New variable filename, use it instead of
9982 symtab->filename. Replace symtab->filename refererences by
9983 symtab_to_filename_for_display calls.
9984 (line_info, forward_search_command): Replace symtab->filename
9985 refererences by symtab_to_filename_for_display calls.
9986 (reverse_search_command): Replace symtab->filename refererences by
9987 symtab_to_filename_for_display calls. New variable filename for it.
9988 * stack.c (frame_info): Likewise.
9989 * symmisc.c: Include source.h.
9990 (dump_objfile, dump_symtab_1, maintenance_print_symbols)
9991 (maintenance_info_symtabs): Replace symtab->filename refererences by
9992 symtab_to_filename_for_display calls.
9993 * symtab.c (iterate_over_some_symtabs): Call
9994 compare_filenames_for_search also with symtab_to_fullname.
9995 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
9996 symtab->filename refererences by symtab_to_filename_for_display calls.
9997 (find_line_symtab): Replace symtab->filename refererences by
9998 symtab_to_filename_for_display calls.
9999 (file_matches): Replace filename_cmp by compare_filenames_for_search.
10000 (print_symbol_info): Make the last parameter const char *. New
10001 variable s_filename. Use it in the function.
10002 (symtab_symbol_info): Make the last_filename variable const char *.
10003 Replace symtab->filename refererences by symtab_to_filename_for_display
10005 (rbreak_command): New variable fullname. Use it. Replace
10006 symtab->filename refererence by symtab_to_filename_for_display call.
10007 * tracepoint.c (set_traceframe_context, trace_find_line_command)
10008 (print_one_static_tracepoint_marker): Replace symtab->filename
10009 refererences by symtab_to_filename_for_display calls.
10010 * tui/tui-source.c (tui_set_source_content): New variables filename and
10011 s_filename. Replace symtab->filename refererences by this variable.
10012 Replace other symtab->filename refererences by
10013 symtab_to_filename_for_display calls.
10015 2013-02-03 Eldar Gaynetdinov <hal9000ed2k@gmail.com>
10016 Jan Kratochvil <jan.kratochvil@redhat.com>
10018 Add a new variable that controls a way in which filenames are
10020 * NEWS (set filename-display): New entry.
10021 * source.c (filename_display_basename, filename_display_relative)
10022 (filename_display_absolute, filename_display_kind_names)
10023 (filename_display_string, show_filename_display_string)
10024 (symtab_to_filename_for_display): New.
10025 (_initialize_source): Added initialization of 'filename-display'
10027 * source.h (symtab_to_filename_for_display): Added declaration.
10028 * stack.c (print_frame): Added new variable and calling of a new
10029 function and condition with this variable. Changed third argument of
10030 calling of a function.
10032 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10034 * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
10035 Rename field reference filename to fullname.
10036 * tui/tui-data.h (struct tui_source_info): Rename field filename to
10037 fullname. New comment for it.
10038 * tui/tui-source.c (tui_set_source_content): Rename field reference
10039 filename to fullname. Initialize field by symtab_to_fullname now.
10040 * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
10041 reference filename to fullname. Use symtab_to_fullname during
10044 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10047 * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
10048 (dw2_expand_symtabs_with_fullname): ... here. Rename parameter
10049 filename to fullname. Rename variable this_name to this_fullname.
10050 Lowercase FILENAME_CMP call.
10051 (dw2_find_symbol_file): New comment for the returned string.
10052 (dwarf2_gdb_index_functions): Rename the function to
10053 dw2_expand_symtabs_with_fullname.
10054 * psymtab.c (read_psymtabs_with_filename): Rename to ...
10055 (read_psymtabs_with_fullname): ... here. Rename parameter filename to
10057 (psym_functions): Rename the function to read_psymtabs_with_fullname.
10058 * symfile.h (struct quick_symbol_functions): Rename field
10059 expand_symtabs_with_filename to expand_symtabs_with_fullname and its
10060 parameter filename to fullname. Document returned string meaning for
10062 * symtab.c (find_line_symtab): Rename the called function to
10063 expand_symtabs_with_fullname.
10065 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10068 * breakpoint.c (clear_command): Remove variable is_abs, unify the
10069 call of filename_cmp with compare_filenames_for_search.
10070 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
10071 is_abs, unify the call of FILENAME_CMP with
10072 compare_filenames_for_search. New gdb_asserts for real_path and name.
10073 Unify the call of compare_filenames_for_search with FILENAME_CMP.
10074 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
10075 * symfile.h (struct quick_symbol_functions): Extend the comment for
10076 map_symtabs_matching_filename.
10077 * symtab.c (compare_filenames_for_search): Remove the function comment
10078 relative path requirement. Handle absolute filenames, with a comment.
10079 (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
10080 FILENAME_CMP with compare_filenames_for_search. New gdb_asserts for
10081 real_path and name. Unify the call of compare_filenames_for_search
10083 (iterate_over_symtabs): New gdb_assert on REAL_PATH.
10085 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10088 * breakpoint.c (print_breakpoint_location): Replace bp_location field
10089 source_file references by symtab field references. Remove variables
10091 (momentary_breakpoint_from_master, add_location_to_breakpoint):
10092 (clear_command, say_where): Replace bp_location field source_file
10093 references by symtab field references.
10094 (bp_location_dtor): Remove the source_file reference.
10095 (update_static_tracepoint): Replace bp_location field source_file
10096 references by symtab field references.
10097 (breakpoint_free_objfile): New function.
10098 * breakpoint.h (struct bp_location): Extend the comment for line_number.
10099 Replace the field source_file by field symtab, extend its comment.
10100 (breakpoint_free_objfile): New declaration.
10101 * objfiles.c (free_objfile): Call breakpoint_free_objfile.
10102 * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
10103 field source_file references by symtab field references.
10105 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10107 Replace xfullpath calls by gdb_realpath calls.
10108 * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
10110 * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
10111 Remove it from the iterate_over_some_symtabs call.
10112 (dw2_map_symtabs_matching_filename): Remove parameter full_path.
10113 Remove it from the dw2_map_expand_apply calls, remove a block handling
10115 * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
10116 Remove it from the iterate_over_some_symtabs call.
10117 (partial_map_symtabs_matching_filename): Remove parameter full_path.
10118 Remove it from the partial_map_expand_apply calls, remove a block
10119 handling it. Drop gdb_realpath call and cleanups from the real_path
10121 * source.c (openp): Drop the comment part about xfullpath. Replace
10122 xfullpath calls by gdb_realpath calls.
10123 (find_and_open_source): Replace xfullpath call by gdb_realpath call.
10124 * symfile.h (struct quick_symbol_functions): Remove parameter full_path
10125 from method map_symtabs_matching_filename and its comment.
10126 * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
10128 * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
10129 remove it also from the function comment, remove a block handling it.
10130 Drop gdb_realpath call and cleanups from the real_path handling.
10131 (iterate_over_symtabs): Drop variable full_path and its use.
10132 * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
10133 * utils.c (xfullpath): Remove.
10134 * utils.h (xfullpath): Remove.
10136 2013-02-01 Andreas Tobler <andreast@fgznet.ch>
10138 * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
10139 (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
10140 (ALLDEPFILES): Add ppc64-tdep.c.
10141 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
10142 ppc64-tdep.o to gdb_target_obs.
10143 * ppc64-tdep.h: New file.
10144 * ppc64-tdep.c: New file.
10145 (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
10146 ppc-linux-tdep.c to here.
10147 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
10148 (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
10149 (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
10150 (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
10151 from ppc-linux-tdep.c to here.
10152 (ppc64_convert_from_func_ptr_addr): Rename from
10153 ppc64_linux_convert_from_func_ptr_addr to
10154 ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
10157 (read_insn): Move from ppc-linux-tdep.c to here.
10158 (insns_match_pattern, insn_d_field, insn_ds_field): Move
10159 from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
10160 * ppc-linux-tdep.c: Include ppc64-tdep.h.
10161 Removed above functions.
10162 (ppc_linux_init_abi): Adjust.
10164 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
10166 * ada-valprint.c (ada_print_floating): Remove unused 'len'.
10168 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
10170 * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
10172 2013-02-01 Pedro Alves <palves@redhat.com>
10174 * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
10175 * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
10177 2013-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10179 * elfread.c (elf_symfile_read): Limit separate debug info additions to
10180 files with no separate debug info.
10181 * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
10182 * symfile.c (read_symbols): Call find_separate_debug_file_in_section
10183 only for files with no separate debug info.
10185 2013-01-31 Tom Tromey <tromey@redhat.com>
10187 * jit.c (jit_program_space_data): Rename from jit_inferior_data;
10189 (struct jit_program_space_data): Rename from jit_inferior_data.
10191 (get_jit_program_space_data): Rename from get_jit_inferior_data.
10192 Change return type. Attach data to program space.
10193 (jit_program_space_data_cleanup): Rename from
10194 jit_inferior_data_cleanup; change argument type.
10195 (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
10197 (jit_register_code): Update.
10198 (jit_update_inferior_cache): Remove.
10199 (jit_breakpoint_deleted): Get jit data from the location's program
10201 (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
10202 'ps_data', change type.
10203 (jit_inferior_init, jit_breakpoint_re_set_internal)
10204 (jit_event_handler): Update.
10205 (free_objfile_data): Get data from objfile's program space.
10206 (_initialize_jit): Update.
10208 2013-01-31 Tom Tromey <tromey@redhat.com>
10211 * jit.c (struct jit_inferior_data) <cached_code_address,
10212 jit_breakpoint>: New fields.
10213 (jit_breakpoint_re_set_internal): Fix logging. Only create
10214 breakpoint if cached address has changed.
10215 (jit_update_inferior_cache, jit_breakpoint_deleted): New
10217 (_initialize_jit): Register breakpoint deleted observer.
10219 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10221 * infrun.c (handle_syscall_event): Remove unused gdbarch.
10222 (save_infcall_suspend_state): Ifdef out unused inf.
10223 (restore_infcall_suspend_state): Ifdef out unused inf.
10224 * jit.c (jit_register_code): Remove unused i, b, inf_data.
10225 (jit_frame_sniffer): Remove unused inf_data.
10227 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10229 * c-exp.y (classify_inner_name): Remove unused type.
10230 * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
10231 in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
10233 (c_get_string): Remove unused kind.
10234 * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
10236 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10238 * charset.c (intermediate_encoding): Remove unused i.
10239 * completer.c (signal_completer): Remove unused i.
10240 * continuations.c (discard_my_continuations_1): Remove unused
10242 * corelow.c (core_close): Remove unuseD name.
10243 (get_core_siginfo): Remove unused pid.
10244 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
10246 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
10247 (loclist_describe_location): Remove unused first.
10248 * event-top.c (command_line_handler): Remove unused got_eof.
10249 * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
10250 (resize_section_table): Remove unused old_value.
10251 * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
10252 * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
10253 * i386-tdep.c (i386_process_record): Remove unused rex.
10254 * infcmd.c (get_return_value): Remove unused uiout.
10255 * jv-lang.c (type_from_class): Remove unused is_array.
10256 * jv-valprint.c (java_val_print): Remove unused i.
10257 * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
10258 * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
10259 * m2-typeprint.c (m2_print_type): Remove unused code.
10260 * macroexp.c (get_character_constant): Remove unused body_start.
10261 (macro_stringify): Remove unused result.
10262 * objc-lang.c (find_methods): Remove unused gdbarch.
10263 * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
10264 * regcache.c (regcache_cooked_read): Remove unused gdbarch.
10265 * stack.c (print_frame_args): Remove unused summary.
10266 * thread.c (thread_apply_command): Remove unused p.
10267 * valarith.c (value_x_unop): Remove unused mangle_ptr.
10268 * valops.c (search_struct_method): Remove unused skip.
10269 * valprint.c (generic_val_print): Remove unused byte_order.
10270 * varobj.c (varobj_update): Remove unused changed.
10271 * cli/cli-cmds.c (complete_command): Remove unused next_item.
10272 (alias_command): Remove unused c.
10273 * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
10274 * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
10276 (mi_cmd_data_write_memory): Remove unused word_format.
10277 (mi_cmd_data_write_memory_bytes): Remove unused r.
10278 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
10280 * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
10281 * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
10284 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10286 * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
10287 * symtab.c (iterate_over_symtabs): Remove unused s.
10288 (find_pc_sect_symtab): Remove unused pspAce.
10289 (find_pc_sect_line): Remove unused alt_symtab.
10290 (find_pcs_for_symtab_line): Remove unused ix, previous_function.
10291 (completion_list_add_name): Remove unused newsize.
10293 2013-01-31 Tom Tromey <tromey@redhat.com>
10296 * dwarf2read.c (read_tag_ptr_to_member_type): Handle
10299 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10301 * target.c (target_read_string): Remove unused origlen.
10303 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10305 * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
10306 * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
10307 * ax-general.c (ax_print): Remove unused is_float.
10308 * blockframe.c (block_innermost_frame): Remove unused start, end.
10309 * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
10311 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10313 * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
10314 (svr4_read_so_list): Remove unused lmo.
10315 * solib-target.c (solib_target_relocate_section_addresses): Remove
10318 2013-01-30 Tom Tromey <tromey@redhat.com>
10320 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
10322 2013-01-30 Tom Tromey <tromey@redhat.com>
10324 * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
10325 * utils.c (gnu_debuglink_crc32): Remove.
10326 * utils.h (gnu_debuglink_crc32): Don't declare.
10328 2013-01-30 Tom Tromey <tromey@redhat.com>
10330 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
10331 (read_structure_type, read_enumeration_type): Remove cast.
10333 2013-01-30 Tom Tromey <tromey@redhat.com>
10335 * dwarf2read.c (read_namespace_type): Remove cast.
10336 (read_typedef): Likewise.
10338 2013-01-29 Tom Tromey <tromey@redhat.com>
10340 * dwarf2read.c (free_dwo_file): Remove assert.
10342 2013-01-29 Tom Tromey <tromey@redhat.com>
10344 * value.c (deprecated_set_value_modifiable): Remove.
10345 * value.h (deprecated_set_value_modifiable): Remove.
10347 2013-01-28 Doug Evans <dje@google.com>
10349 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
10350 to addresses from dwo files.
10352 2013-01-25 Siva Chandra Reddy <sivachandra@google.com>
10354 * valops.c (find_overload_match): Remove unused argument 'lax'.
10355 * value.h: Remove unused argument 'lax' from the declaration of
10356 find_overload_match.
10357 * eval.c (value_subexp_standard): Do not pass a 'lax' argument
10358 to find_overload_match.
10359 * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
10360 argument to find_overload_match.
10362 2013-01-25 Tom Tromey <tromey@redhat.com>
10364 * dwarf2read.c (processing_has_namespace_info): Remove.
10365 (struct dwarf2_cu) <processing_has_namespace_info>: New field.
10366 (process_die, read_func_scope, dwarf2_start_symtab)
10367 (new_symbol_full): Update.
10369 2013-01-25 Tom Tromey <tromey@redhat.com>
10371 * cp-namespace.c (cp_set_block_scope): Remove.
10372 * cp-support.h (cp_set_block_scope): Remove.
10373 * dbxread.c: Include block.h.
10374 (cp_set_block_scope): New function.
10375 (process_one_symbol): Update.
10376 * dwarf2read.c (read_func_scope): Use block_set_scope.
10378 2013-01-25 Pedro Alves <palves@redhat.com>
10380 * remote.c (add_current_inferior_and_thread): Tweak comment.
10382 2013-01-25 Tom Tromey <tromey@redhat.com>
10384 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
10385 (cp_add_using_directive): Add 'copy_names' argument.
10386 * cp-support.h (cp_add_using_directive): Update.
10387 (struct using_direct) <import_src, import_dest, alias,
10388 declaration>: Now const.
10389 * dwarf2read.c (read_import_statement): Use obconcat.
10390 Don't copy names passed to cp_add_using_directive.
10392 2013-01-25 Tom Tromey <tromey@redhat.com>
10394 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
10396 2013-01-25 Pedro Alves <palves@redhat.com>
10398 * remote.c (stop_reply_extract_thread): New.
10399 (add_current_inferior_and_thread): New parameter 'wait_status'.
10401 (remote_start_remote): Pass wait status to
10402 add_current_inferior_and_thread.
10403 (extended_remote_run): Update comment.
10404 (extended_remote_create_inferior_1): Pass wait status to
10405 add_current_inferior_and_thread.
10407 2013-01-25 Andrew Burgess <aburgess@broadcom.com>
10408 Ulrich Weigand <uweigand@de.ibm.com>
10410 * valarith.c (value_vector_widen): New function for replicating a
10411 scalar into a vector.
10412 (value_binop): Use value_vector_widen to widen scalar to vector
10413 rather than casting, this better matches gcc C behaviour.
10414 * valops.c (value_casst): Update logic for casting between vector
10415 types, and for casting from scalar to vector, try to match gcc C
10417 * value.h (value_vector_widen): Declare.
10418 * opencl-lang.c (opencl_value_cast): New opencl specific casting
10419 function, handle special case for casting scalar to vector.
10420 (opencl_relop): Use opencl_value_cast.
10421 (evaluate_subexp_opencl): Use opencl_value_cast instead of
10422 value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
10423 in order to use opencl_value_cast.
10425 2013-01-25 Yao Qi <yao@codesourcery.com>
10427 * event-loop.c: Include "queue.h".
10428 (gdb_event_p): New typedef.
10429 (DECLARE_QUEUE_P): Use.
10430 (DEFINE_QUEUE_P): Use.
10431 (async_queue_event): Remove.
10432 (gdb_event_xfree): New.
10433 (initialize_event_loop): New.
10434 (process_event): Use QUEUE macros.
10435 (event_queue): Remove.
10436 (gdb_wait_for_event): Caller update.
10437 (check_async_event_handlers): Likewise.
10438 (poll_timers): Likewise.
10439 * event-loop.h (initialize_event_loop): Declare.
10440 * event-loop.c (gdb_event_xfree): New.
10441 * top.c (gdb_init): Call initialize_event_loop.
10443 2013-01-25 Yao Qi <yao@codesourcery.com>
10445 * event-loop.c (async_queue_event): Remove one parameter
10446 'position'. Remove code handling 'position' == TAIL.
10447 (gdb_wait_for_event): Caller update.
10448 (check_async_event_handlers): Caller update.
10449 (poll_timers): Caller update.
10450 * event-loop.h (enum queue_position): Remove.
10452 2013-01-25 Maxim Kuvyrkov <maxim@kugelworks.com>
10454 * MAINTAINERS: Update my email.
10456 2013-01-25 Yao Qi <yao@codesourcery.com>
10458 * main.c (print_gdb_help): Remove "--epoch" from the help
10461 2013-01-24 Ulrich Weigand <uweigand@de.ibm.com>
10463 * symtab.c (skip_prologue_using_sal): Consider a file
10464 change the same as an increased line number
10466 2013-01-24 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
10468 * MAINTAINERS (Write After Approval): Add myself to the list.
10470 2013-01-24 Tom Tromey <tromey@redhat.com>
10472 * ada-lang.h (ada_decode_symbol): Make return type const.
10473 * ada-lang.c (ada_decode_symbol): Likewise.
10475 2013-01-23 Doug Evans <dje@google.com>
10477 * linespec.c (find_linespec_symbols): Make static.
10479 2013-01-23 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
10481 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
10482 type on float conversion for complex type.
10484 2013-01-23 Siva Chandra Reddy <sivachandra@google.com>
10486 Add a new class gdb.Architecture which exposes GDB's
10487 internal representation of architecture via GDB Python API.
10488 * Makefile.in: Add entries corresponding to the new file
10490 * NEWS (Python Scripting): Add entries for the new class
10491 gdb.Architecture and the new method gdb.Frame.architecture.
10492 * python/py-arch.c: Implement gdb.Architecture class.
10493 * python/py-frame.c (frapy_arch): Implement the method
10494 gdb.Frame.architecture().
10495 (frame_object_methods): Add 'architecture' to the method table.
10496 * python/python-internal.h: Add declarations of new utility
10498 * python/python.c (_initialize_python): Initialize
10499 gdb.Architecture class.
10501 2013-01-23 Doug Evans <dje@google.com>
10503 Work around binutils/15021.
10504 * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
10505 type_unit_group out of union s. All uses updated.
10506 (read_index_from_section): Watch for index version 8.
10507 (follow_die_sig): If using .gdb_index version <= 7, record the TU as
10508 an imported symtab.
10509 (write_psymtabs_to_index): Increment version number to 8.
10511 2013-01-22 Pedro Alves <palves@redhat.com>
10513 * annotate.c (breakpoint_changed): Skip if breakpoint is not
10516 2013-01-22 Pedro Alves <palves@redhat.com>
10518 * annotate.c (annotate_breakpoints_changed): Rename to ...
10519 (annotate_breakpoints_invalid): ... this. Make static.
10520 (breakpoint_changed): Adjust.
10521 (_initialize_annotate): Always install the observers. Install a
10522 "breakpoint_created" observer.
10523 * annotate.h (annotate_breakpoints_changed): Delete declaration.
10524 * breakpoint.c (set_breakpoint_condition)
10525 (breakpoint_set_commands, do_map_commands_command)
10526 (init_raw_breakpoint, clear_command, set_ignore_count)
10527 (enable_breakpoint_disp): No longer call
10528 annotate_breakpoints_changed.
10530 2013-01-22 Pedro Alves <palves@redhat.com>
10532 * annotate.c: Include "inferior.h".
10533 (frames_invalid_emitted)
10534 (breakpoints_invalid_emitted): New globals.
10535 (async_background_execution_p): New function.
10536 (annotate_breakpoints_changed, annotate_frames_invalid): Skip
10537 emitting the annotation if it has already been emitted.
10538 (annotate_display_prompt): New function.
10539 * annotate.h (annotate_display_prompt): New declaration.
10540 * event-top.c: Include annotate.h.
10541 (display_gdb_prompt): Call annotate_display_prompt.
10543 2013-01-22 Pedro Alves <palves@redhat.com>
10545 * annotate.c (ignore_count_changed): Delete.
10546 (annotate_breakpoints_changed): Don't clear ignore_count_changed.
10547 (annotate_ignore_count_change): Delete.
10548 (annotate_stopped): Don't emit a delayed breakpoints-changed
10550 * annotate.h (annotate_ignore_count_change): Delete.
10551 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
10552 annotate_ignore_count_change.
10554 2013-01-22 Tom Tromey <tromey@redhat.com>
10556 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
10557 require_rvalue for a register location.
10559 2013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
10561 * breakpoint.c (print_one_breakpoint_location): Add MI
10562 field 'thread-groups' when printing a breakpoint.
10563 (output_thread_groups): New function.
10565 2013-01-21 Siva Chandra Reddy <sivachandra@google.com>
10567 * python/lib/gdb/commands/explore.py
10568 (CompoundExplorer.explore_expr): Correct the name of a method
10570 (ExploreTypeCommand.invoke): Add a missing 'return'.
10572 2013-01-21 Tom Tromey <tromey@redhat.com>
10574 * gdb_obstack.h (obconcat): Move declaration here, from...
10575 * symfile.h (obconcat): ... here.
10576 * gdb_obstack.c: New file.
10577 (obconcat): Move from...
10578 * symfile.c (obconcat): ... here.
10579 * Makefile.in (SFILES): Add gdb_obstack.c.
10580 (COMMON_OBS): Add gdb_obstack.o.
10582 2013-01-21 Tom Tromey <tromey@redhat.com>
10584 * symfile.h (obsavestring): Don't declare.
10585 * symfile.c (obsavestring): Remove.
10586 * ada-exp.y: Use obstack_copy0, not obsavestring.
10587 * ada-lang.c: Use obstack_copy0, not obsavestring.
10588 * coffread.c: Use obstack_copy0, not obsavestring.
10589 * cp-namespace.c: Use obstack_copy0, not obsavestring.
10590 * dbxread.c: Use obstack_copy0, not obsavestring.
10591 * dwarf2read.c: Use obstack_copy0, not obsavestring.
10592 * jit.c: Use obstack_copy0, not obsavestring.
10593 * mdebugread.c: Use obstack_copy0, not obsavestring.
10594 * psymtab.c: Use obstack_copy0, not obsavestring.
10595 * stabsread.c: Use obstack_copy0, not obsavestring.
10596 * xcoffread.c: Use obstack_copy0, not obsavestring.
10598 2013-01-21 Tom Tromey <tromey@redhat.com>
10600 * dwarf2read.c (fixup_go_packaging): Save package name
10601 on objfile obstack.
10602 * gdbtypes.c (init_type): Don't copy name.
10604 2013-01-21 Tom Tromey <tromey@redhat.com>
10606 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
10608 (struct attribute) <u.str>: Now const.
10609 (struct fnfieldlist) <name>: Now const.
10610 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
10611 (partial_die_parent_scope): Make return type const.
10612 (partial_die_full_name, add_partial_symbol): Update.
10613 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
10615 (find_file_and_directory): Make 'name' and 'comp_dir' const.
10616 (read_file_scope, read_func_scope, dwarf2_add_field)
10617 (dwarf2_add_member_fn, read_structure_type)
10618 (process_enumeration_scope, read_array_type, read_module_type)
10619 (read_base_type, read_subrange_type): Update.
10620 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
10621 (new_symbol_full, guess_full_die_structure_name): Update.
10622 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
10623 (dwarf2_name): Return const type.
10624 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
10627 2013-01-21 Tom Tromey <tromey@redhat.com>
10629 * gdbtypes.c (init_type): Make 'name' const.
10630 * gdbtypes.h (init_type): Update.
10632 2013-01-21 Tom Tromey <tromey@redhat.com>
10634 * buildsym.c (patch_subfile_names): Use set_last_source_file.
10635 (start_symtab): Make 'name' and 'dirname' const. Use
10636 set_last_source_file.
10637 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
10638 (last_source_file): Define. Now static.
10639 (set_last_source_file, get_last_source_file): New functions.
10640 * buildsym.h (last_source_file): Don't declare.
10641 (start_symtab): Update.
10642 (set_last_source_file, get_last_source_file): Declare.
10643 * coffread.c (complete_symtab): Use set_last_source_file.
10644 (coff_end_symtab): Likewise.
10645 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
10646 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
10647 set_last_source_file.
10648 (process_one_symbol): Use get_last_source_file.
10649 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
10650 (psymtab_to_symtab_1): Use get_last_source_file.
10651 * xcoffread.c (process_linenos): Use get_last_source_file.
10652 (complete_symtab): Use set_last_source_file.
10653 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
10654 (scan_xcoff_symtab): Use set_last_source_file.
10656 2013-01-21 Tom Tromey <tromey@redhat.com>
10658 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
10659 (symbol_set_names): Remove casts. Handle field const-ness.
10661 2013-01-21 Tom Tromey <tromey@redhat.com>
10663 * dwarf2read.c (new_symbol_full): Remove cast.
10664 * symtab.c (symbol_set_demangled_name): Make 'name' const.
10665 * symtab.h (symbol_set_demangled_name): Update.
10667 2013-01-21 Tom Tromey <tromey@redhat.com>
10669 * main.c (captured_main): Call bfd_init.
10671 2013-01-21 Tom Tromey <tromey@redhat.com>
10673 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
10674 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
10675 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
10678 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10680 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
10682 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10684 Fix gdb.fortran/common-block.exp crash in PIE mode.
10685 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
10687 * f-valprint.c (info_common_command_for_block): Expect
10688 LOC_COMMON_BLOCK in gdb_assert.
10689 * symtab.h (struct general_symbol_info): Update comment for the
10690 common_block member.
10691 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
10692 (enum address_class): New member LOC_COMMON_BLOCK.
10694 2013-01-18 David Blaikie <dblaikie@gmail.com>
10696 * MAINTAINERS (Write After Approval): Add "David Blaikie".
10698 2013-01-18 Tom Tromey <tromey@redhat.com>
10701 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
10702 Call require_rvalue.
10704 2013-01-18 Yao Qi <yao@codesourcery.com>
10706 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
10707 (dbx_read_symtab): New declaration.
10708 (dbx_psymtab_to_symtab): Delete.
10709 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
10710 Rename parameter PST to SELF. Exchanged two parameters.
10711 (start_psymtab): Caller update.
10712 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
10713 (dwarf2_read_symtab): New declaration.
10714 (dwarf2_psymtab_to_symtab): Delete.
10715 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
10716 Rename parameter PST to SELF. Exchanged two parameters.
10717 (create_partial_symtab): Caller update.
10718 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
10719 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
10720 Rename parameter PST to SELF. Exchanged two parameters.
10721 (parse_partial_symbols, new_psymtab): Caller update.
10722 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
10724 * psymtab.c (psymtab_to_symtab): Caller update.
10725 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
10726 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
10727 Rename parameter PST to SELF. Exchanged two parameters.
10728 (xcoff_start_psymtab): Caller update.
10730 2013-01-18 Yao Qi <yao@codesourcery.com>
10732 * infrun.c (proceed): Rename local variable 'oneproc' to
10735 2013-01-17 Doug Evans <dje@google.com>
10737 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
10738 (dw2_build_type_unit_groups): Delete. All uses updated.
10740 * symtab.h (struct symbol_search): Add comment.
10742 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
10744 * symtab.c (compare_filenames_for_search): New comment for
10747 2013-01-17 Tom Tromey <tromey@redhat.com>
10749 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
10751 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
10753 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
10754 initialize it by existing make_cleanup. Call new do_cleanups.
10756 2013-01-17 Tom Tromey <tromey@redhat.com>
10758 * cp-abi.c (cp_abi_completer): New function.
10759 (_initialize_cp_abi): Set completer for "set cp-abi".
10761 2013-01-17 Tom Tromey <tromey@redhat.com>
10763 * mem-break.c: Remove obsolete comment.
10764 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
10766 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
10768 * jit.c (jit_reader_load_command): Interpret the jit reader name
10769 as an absolute path if it begins with a forward slash.
10771 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
10775 * jit.c (finalize_symtab): Ensure that only the global block has a
10778 2013-01-17 Pedro Alves <palves@redhat.com>
10780 * acinclude.m4: Include ../config/plugins.m4,
10781 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
10782 * Makefile.in (aclocal_m4_deps): Update.
10783 * aclocal.m4: Renegerate.
10785 2013-01-16 Doug Evans <dje@google.com>
10787 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
10789 2013-01-16 Pedro Alves <palves@redhat.com>
10790 Tom Tromey <tromey@redhat.com>
10793 * NEWS: Add "catch signal".
10794 * breakpoint.c (base_breakpoint_ops): No longer static.
10795 (bpstat_explains_signal): New function.
10796 (init_catchpoint): No longer static.
10797 (base_breakpoint_explains_signal): New function.
10798 (base_breakpoint_ops): Initialize new field.
10799 * breakpoint.h (enum bpstat_signal_value): New.
10800 (struct breakpoint_ops) <explains_signal>: New field.
10801 (bpstat_explains_signal): Remove macro, declare as function.
10802 (base_breakpoint_ops, init_catchpoint): Declare.
10803 * break-catch-sig.c: New file.
10804 * inferior.h (signal_catch_update): Declare.
10805 * infrun.c (signal_catch): New global.
10806 (handle_syscall_event): Update for change to
10807 bpstat_explains_signal.
10808 (handle_inferior_event): Likewise. Always handle random signals
10810 (signal_cache_update): Check signal_catch.
10811 (signal_catch_update): New function.
10812 (_initialize_infrun): Initialize signal_catch.
10813 * Makefile.in (SFILES): Add break-catch-sig.c.
10814 (COMMON_OBS): Add break-catch-sig.o.
10816 2013-01-16 Tom Tromey <tromey@redhat.com>
10818 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
10819 (print_one_catch_solib, print_one_catch_syscall)
10820 (print_one_catch_exec, print_one_exception_catchpoint): Emit
10823 2013-01-16 Yao Qi <yao@codesourcery.com>
10825 * printcmd.c (current_display_number): Make it static.
10827 2013-01-16 Yao Qi <yao@codesourcery.com>
10829 * infcmd.c (step_once): Don't check '!single_inst' as it was
10832 2013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10834 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
10836 2013-01-14 Tom Tromey <tromey@redhat.com>
10838 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
10840 * command.h (add_setshow_string_noescape_cmd): Update.
10841 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
10842 (complete_set_gnutarget): New function.
10843 (_initialize_core): Set the "set gnutarget" completer.
10845 2013-01-14 Tom Tromey <tromey@redhat.com>
10848 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
10849 (c_type_print_modifier): Likewise.
10850 * dwarf2read.c (read_tag_restrict_type): New function.
10851 (read_type_die_1): Handle DW_TAG_restrict_type.
10852 * gdbtypes.c (make_restrict_type): New function.
10853 (recursive_dump_type): Handle TYPE_RESTRICT.
10854 * gdbtypes.h (enum type_flag_values): Renumber.
10855 (enum type_instance_flag_value): Add
10856 TYPE_INSTANCE_FLAG_RESTRICT.
10857 (TYPE_RESTRICT): New macro.
10858 (make_restrict_type): Declare.
10860 2013-01-14 Tom Tromey <tromey@redhat.com>
10863 * psymtab.c (struct psymtab_state): New.
10864 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
10866 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
10867 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
10869 2013-01-14 Richard Sharman <richard_sharman@mitel.com>
10870 Pedro Alves <palves@redhat.com>
10874 * remote.c (remote_threads_info): Make a copy of the reply from
10875 qfThreadInfo and use that instead of rs->buf.
10877 2013-01-14 Yao Qi <yao@codesourcery.com>
10879 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
10880 (dbx_psymtab_to_symtab): Likewise.
10881 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
10882 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
10883 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
10885 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10887 * parse.c (parse_exp_in_context): New variable inner_chain. Call
10888 make_cleanup_restore_current_language. Call set_language. Move
10889 OLD_CHAIN and INNER_CHAIN cleanups.
10890 * utils.c (do_restore_current_language)
10891 (make_cleanup_restore_current_language): New functions.
10892 * utils.h (make_cleanup_restore_current_language): New declaration.
10894 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10896 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
10897 non-existing files.
10899 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
10900 non-existing files if FILENAME is already absolute.
10902 2013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10904 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
10905 fputs_filtered. Append trailing newline.
10907 2013-01-11 Yao Qi <yao@codesourcery.com>
10908 Stan Shebs <stan@codesourcery.com>
10910 * psymtab.c (init_psymbol_list): Clarify the comment.
10912 2013-01-11 Yao Qi <yao@codesourcery.com>
10914 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
10915 (update_dprintf_command_list): Assert that 'printf_line' is
10916 non-null. Remove condition check.
10918 2013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10921 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
10923 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
10925 * tui/tui-source.h (tui_source_is_displayed): Likewise.
10927 2013-01-09 Anthony Green <green@moxielogic.com>
10929 * cp-abi.c (cplus_print_vtable): Don't return value from void
10931 * ada-lang.c (re_set_catch_assert): Ditto.
10933 2013-01-09 Doug Evans <dje@google.com>
10935 * symfile.h (quick_symbol_functions): Delete member
10936 pre_expand_symtabs_matching. All uses removed.
10937 * dwarf2read.c (dw2_lookup_symbol): Implement.
10938 (dw2_do_expand_symtabs_matching): Delete.
10939 (dw2_pre_expand_symtabs_matching): Delete.
10940 (struct dw2_symtab_iterator): New type.
10941 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
10942 (dw2_expand_symtabs_for_function): Rewrite.
10943 (dwarf2_gdb_index_functions): Update.
10944 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
10945 (psym_functions): Update.
10947 2013-01-09 Tom Tromey <tromey@redhat.com>
10949 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
10950 * configure: Rebuild.
10951 * configure.ac: Add somread.o to the build if BFD has SOM
10953 * somread.c: Include som/aout.h, not syms.h.
10954 (som_symtab_read): Use som_external_symbol_dictionary_record.
10955 Unpack records manually.
10956 (_initialize_somread): Declare.
10958 2012-01-08 Mike Frysinger <vapier@gentoo.org>
10960 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
10961 Cast return_address to 64bits.
10963 2013-01-08 Hui Zhu <hui_zhu@mentor.com>
10965 * printcmd.c: Remove define of function output_command.
10966 * tracepoint.c: Remove extern of function output_command.
10967 * valprint.h: (output_command): New extern.
10969 2013-01-07 Tom Tromey <tromey@redhat.com>
10971 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
10973 (objc_language_defn): Use c_printchar, c_printstr,
10976 2013-01-07 Tom Tromey <tromey@redhat.com>
10980 * ada-valprint.c (printstr, print_field_values): Remove
10982 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
10984 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
10986 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
10987 * main.c (captured_main): Remove "epoch" argument.
10988 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
10989 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
10990 * p-valprint.c (pascal_object_print_value_fields): Remove
10992 * printcmd.c (print_command_1): Remove 'inspect' argument.
10993 (print_command, call_command): Update.
10994 (inspect_command): Remove.
10995 (_initialize_printcmd): Make "inspect" an alias for "print".
10996 * top.c (epoch_interface): Remove.
10997 * top.h (epoch_interface): Remove.
10998 * valprint.c (user_print_options): Update.
10999 (print_converted_chars_to_obstack): Remove "inspect_it" code.
11000 * valprint.h (struct value_print_options) <inspect_it>: Remove
11003 2013-01-04 Tom Tromey <tromey@redhat.com>
11005 * valprint.h (read_string): Add 'extern'.
11007 2013-01-07 Joel Brobecker <brobecker@adacore.com>
11009 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
11010 used to decide whether to define darwin_read_dyld_info or not.
11012 2013-01-03 Pierre Muller <muller@sourceware.org>
11014 * main.c (relocate_gdb_directory): Avoid calling stat function
11017 2013-01-03 Yao Qi <yao@codesourcery.com>
11019 * psymtab.c (fixup_psymbol_section): Update declaration.
11020 (fixup_psymbol_section): Remove code returning value.
11022 2013-01-03 Yao Qi <yao@codesourcery.com>
11024 * symtab.h: Remove some out of date comments.
11025 (enum exception_event_kind): Move it ...
11026 * breakpoint.c: ... here.
11028 2013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
11031 * darwin-nat.c (darwin_read_dyld_info): Only build if
11032 TASK_DYLD_INFO_COUNT is defined.
11033 (darwin_xfer_partial): Call darwin_read_dyld_info only if
11034 TASK_DYLD_INFO_COUNT is defined.
11036 2013-01-02 Tom Tromey <tromey@redhat.com>
11038 * symfile.h (struct ecoff_debug_hack): Remove.
11039 * objfiles.c: Don't include mdebugread.h.
11041 2013-01-02 Tom Tromey <tromey@redhat.com>
11043 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
11044 * configure.ac: Check for Mach-O support in BFD. Update
11046 * configure: Rebuild.
11048 2013-01-02 Tom Tromey <tromey@redhat.com>
11050 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
11051 * configure.ac: Use GDB_AC_CHECK_BFD.
11052 * configure: Rebuild.
11054 2013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
11056 * MAINTAINERS: Update my email.
11058 2013-01-01 Joel Brobecker <brobecker@adacore.com>
11060 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
11062 2013-01-01 Joel Brobecker <brobecker@adacore.com>
11064 * rs6000-nat.c (bss_data_overlap): New function.
11065 (vmap_symtab): Use it to adjust the .bss section's offset.
11067 2013-01-01 Joel Brobecker <brobecker@adacore.com>
11069 Update year range in copyright notice of all files.
11071 2013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
11073 * top.c (print_gdb_version): Update copyright year.
11075 For older changes see ChangeLog-2012.
11081 version-control: never