1 2013-10-18 Yao Qi <yao@codesourcery.com>
3 * c-varobj.c (cplus_number_of_children): Fix indentation.
5 2013-10-17 Tom Tromey <tromey@redhat.com>
8 * printcmd.c (printcmd): Call gdb_flush.
10 2013-10-17 Tom Tromey <tromey@redhat.com>
12 * elfread.c (struct elfinfo) <stabindexsect>: Remove.
13 (elf_locate_sections): Update.
15 2013-10-17 Yao Qi <yao@codesourcery.com>
17 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
18 * ada-varobj.c: Remove the include of ada-varobj.h.
19 (ada_varobj_get_number_of_children): Declare.
20 (ada_varobj_get_name_of_child): Make it static.
21 (ada_varobj_get_path_expr_of_child): Likewise.
22 (ada_varobj_get_value_of_child): Likewise.
23 (ada_varobj_get_type_of_child): Likewise.
24 (ada_varobj_get_value_of_array_variable): Likewise.
25 * ada-varobj.h: Remove.
27 2013-10-17 Yao Qi <yao@codesourcery.com>
29 * Makefile.in (SFILES): Add c-varobj.c and jv-varobj.c.
30 (COMMON_OBS): Add c-varobj.o and jv-varobj.o.
31 * ada-varobj.c: Include "varobj.h".
32 (ada_number_of_children): New. Moved from varobj.c.
33 (ada_name_of_variable, ada_name_of_child): Likewise.
34 (ada_path_expr_of_child, ada_value_of_child): Likewise.
35 (ada_type_of_child, ada_value_of_variable): Likewise.
36 (ada_value_is_changeable_p, ada_value_has_mutated): Likewise.
37 (ada_varobj_ops): New.
38 * c-varobj.c, jv-varobj.c: New file. Moved from varobj.c.
39 * gdbtypes.c (get_target_type): New. Moved from varobj.c.
40 * gdbtypes.h (get_target_type): Declare.
41 * varobj.c: Remove the inclusion of "ada-varobj.h" and
43 (ANONYMOUS_STRUCT_NAME): Move it to c-varobj.c.
44 (ANONYMOUS_UNION_NAME): Likewise.
45 (get_type, get_value_type, get_target_type): Remove declarations.
46 (value_get_print_value, varobj_value_get_print_value): Likewise.
47 (c_number_of_children, c_name_of_variable): Likewise.
48 (c_name_of_child, c_path_expr_of_child): Likewise.
49 (c_value_of_child, c_type_of_child): Likewise.
50 (c_value_of_variable, cplus_number_of_children): Likewise.
51 (cplus_class_num_children, cplus_name_of_variable): Likewise.
52 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
53 (cplus_value_of_child, cplus_type_of_child): Likewise.
54 (cplus_value_of_variable, java_number_of_children): Likewise.
55 (java_name_of_variable, java_name_of_child): Likewise.
56 (java_path_expr_of_child, java_value_of_child): Likewise.
57 (java_type_of_child, java_value_of_variable): Likewise.
58 (ada_number_of_children, ada_name_of_variable): Likewise.
59 (ada_name_of_child, ada_path_expr_of_child): Likewise.
60 (ada_value_of_child, ada_type_of_child): Likewise.
61 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
62 (ada_value_has_mutated): Likewise.
63 (struct language_specific): Move it to varobj.h.
64 (CPLUS_FAKE_CHILD): Move it to varobj.h.
65 (restrict_range): Rename it varobj_restrict_range. Make it extern.
67 (get_path_expr_parent): Rename it to varobj_get_path_expr_parent.
69 (is_anonymous_child): Move it to c-varobj.c and rename to
70 varobj_is_anonymous_child. Caller update.
71 (get_type): Move it to c-varobj.c.
72 (get_value_type): Rename it varobj_get_value_type. Make it
74 (get_target_type): Move it gdbtypes.c.
75 (varobj_formatted_print_options): New function.
76 (value_get_print_value): Rename it to
77 varobj_value_get_print_value and make it extern.
78 (varobj_value_is_changeable_p): Make it extern.
79 (adjust_value_for_child_access): Move it to c-varobj.c.
80 (default_value_is_changeable_p): Rename it to
81 varobj_default_value_is_changeable_p. Make it extern.
82 (c_number_of_children, c_name_of_variable): Move it to c-varobj.c
83 (c_name_of_child, c_path_expr_of_child): Likewise.
84 (c_value_of_child, c_type_of_child): Likewise.
85 (c_value_of_variable, cplus_number_of_children): Likewise.
86 (cplus_class_num_children, cplus_name_of_variable): Likewise.
87 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
88 (cplus_value_of_child, cplus_type_of_child): Likewise.
89 (cplus_value_of_variable): Likewise.
90 (java_number_of_children, java_name_of_variable): Move it to jv-varobj.c.
91 (java_name_of_child, java_path_expr_of_child): Likewise.
92 (java_value_of_child, java_type_of_child): Likewise.
93 (java_value_of_variable): Likewise.
94 (ada_number_of_children, ada_name_of_variable): Move it to ada-varobj.c.
95 (ada_name_of_child, ada_path_expr_of_child): Likewise.
96 (ada_value_of_child, ada_type_of_child): Likewise.
97 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
98 (ada_value_has_mutated): Likewise.
99 * varobj.h (CPLUS_FAKE_CHILD): New macro, moved from varobj.c.
100 (struct lang_varobj_ops): New. Renamed by 'struct language_specific'.
101 (c_varobj_ops, cplus_varobj_ops): Declare.
102 (java_varobj_ops, ada_varobj_ops): Declare.
103 (varobj_default_value_is_changeable_p): Declare.
104 (varobj_value_is_changeable_p): Declare.
105 (varobj_get_value_type, varobj_is_anonymous_child): Declare.
106 (varobj_get_path_expr_parent): Declare.
107 (varobj_value_get_print_value): Declare.
108 (varobj_formatted_print_options): Declare.
109 (varobj_restrict_range): Declare.
111 2013-10-17 Luis Machado <lgustavo@codesourcery.com>
113 * target/waitstatus.h (target_waitkind): Remove spurious
114 character from the comments.
116 2013-10-17 Joel Brobecker <brobecker@adacore.com>
118 * gdbarch.sh (get_longjmp_target): Add method documentation.
119 * gdbarch.h: Regenerate.
121 2013-10-16 Tom Tromey <tromey@redhat.com>
123 * dbxread.c (read_dbx_symtab) <bss_ext_symbol>: Remove unused
126 2013-10-16 Luis Machado <lgustavo@codesourcery.com>
128 * gcore.in: Call GDB using the full path to the gcore script.
129 Error out if the GDB binary is not found.
131 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
134 * dwarf2read.c (dw2_get_real_path): Remove unnecessary call to
137 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
140 * target.c (target_disable_btrace): Fix invalid return value for
142 (target_teardown_btrace): Likewise.
144 2013-10-14 Yao Qi <yao@codesourcery.com>
146 * varobj.c (struct varobj): Move most of the fields to
148 (struct varobj_dynamic): New struct.
149 (varobj_get_display_hint) [HAVE_PYTHON]: Adjust.
150 (varobj_has_more): Likewise.
151 (dynamic_varobj_has_child_method): Likewise.
152 (update_dynamic_varobj_children): Likewise.
153 (varobj_get_num_children): Likewise.
154 (varobj_list_children, varobj_pretty_printed_p): Likewise.
155 (install_new_value_visualizer): Likewise.
156 (install_new_value_visualizer, install_new_value): Likewise.
157 (varobj_update, new_variable, free_variable): Likewise.
158 (my_value_of_variable, value_get_print_value): Likewise.
159 (install_visualizer): Change the type of parameter 'var' to
160 'struct varobjd_dynamic *'. Callers update.
161 * varobj.h (struct varobj): Moved from varobj.c.
162 (struct varobj) <dynamic>: New field.
164 2013-10-13 Sandra Loosemore <sandra@codesourcery.com>
166 * nios2-tdep.c (nios2_reg_names): Use "sstatus" rather than "ba"
167 as the preferred name of r30.
168 * nios2-linux-tdep.c (reg_offsets): Likewise.
169 * features/nios2-cpu.xml: Likewise.
170 * features/nios2-linux.c: Regenerated.
171 * features/nios2.c: Regenerated.
172 * regformats/nios2-linux.dat: Regenerated.
174 2013-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
176 Canonicalize directories for EXEC_FILENAME.
177 * exec.c (exec_file_attach): Use gdb_realpath_keepfile for
179 * utils.c (gdb_realpath_keepfile): New function.
180 * utils.h (gdb_realpath_keepfile): New declaration.
182 2013-10-11 Doug Evans <dje@google.com>
184 * Makefile.in (GDBFLAGS): New variable.
187 2013-10-11 Joel Brobecker <brobecker@adacore.com>
189 * NEWS: Add entry documenting the new "-catch-assert" and
190 "-catch-exception" GDB/MI commands.
192 2013-10-11 Joel Brobecker <brobecker@adacore.com>
194 * breakpoint.h (init_ada_exception_breakpoint): Add parameter
196 * breakpoint.c (init_ada_exception_breakpoint): Add parameter
197 "enabled". Set B->ENABLE_STATE accordingly.
198 * ada-lang.h (ada_exception_catchpoint_kind): Move here from
200 (create_ada_exception_catchpoint): Add declaration.
201 * ada-lang.c (ada_exception_catchpoint_kind): Move to ada-lang.h.
202 (create_ada_exception_catchpoint): Make non-static. Add new
203 parameter "disabled". Use it in call to
204 init_ada_exception_breakpoint.
205 (catch_ada_exception_command): Add parameter "enabled" in call
206 to create_ada_exception_catchpoint.
207 (catch_assert_command): Likewise.
209 * mi/mi-cmds.h (mi_cmd_catch_assert, mi_cmd_catch_exception):
211 * mi/mi-cmds.c (mi_cmds): Add the "catch-assert" and
212 "catch-exception" commands.
213 * mi/mi-cmd-catch.c: Add #include "ada-lang.h".
214 (mi_cmd_catch_assert, mi_cmd_catch_exception): New functions.
216 2013-10-11 Joel Brobecker <brobecker@adacore.com>
218 * ada-lang.c (enum ada_exception_catchpoint_kind): Renames
219 "enum exception_catchpoint_kind". Replace the "ex_" prefix
220 of all its enumerates with "ada_". Update the rest of this
223 2013-10-11 Joel Brobecker <brobecker@adacore.com>
225 * ada-lang.c (ada_decode_exception_location): Delete.
226 (create_ada_exception_catchpoint): Remove arguments "sal",
227 "addr_string" and "ops". Add argument "ex_kind" instead.
228 Adjust implementation accordingly, calling ada_exception_sal
229 to get the entities it no longer gets passed as arguments.
230 Document the function's arguments.
231 (catch_ada_exception_command): Use catch_ada_exception_command_split
232 instead of ada_decode_exception_location, and update call to
233 create_ada_exception_catchpoint.
234 (catch_ada_assert_command_split): Renames
235 ada_decode_assert_location. Remove parameters "addr_string" and
236 "ops", and now returns void. Adjust implementation accordingly.
237 Update the function documentation.
238 (catch_assert_command): Use catch_ada_assert_command_split
239 instead of ada_decode_assert_location. Update call to
240 create_ada_exception_catchpoint.
242 2013-10-11 Joel Brobecker <brobecker@adacore.com>
244 * utils.h (perror_warning_with_name): Add declaration.
245 * utils.c (perror_warning_with_name): New function.
246 * cli/cli-cmds.c (source_script_with_search): Add call to
247 perror_warning_with_name if from_tty is nul.
249 2013-10-11 Joel Brobecker <brobecker@adacore.com>
251 * utils.c (perror_string): New function, extracted out of
252 throw_perror_with_name.
253 (throw_perror_with_name): Rework to use perror_string.
255 2013-10-11 Yao Qi <yao@codesourcery.com>
257 * remote.c (discard_pending_stop_replies_in_queue): Update
259 (struct stop_reply) <rs>: New field.
260 (remove_stop_reply_of_remote_state): New function.
261 (discard_pending_stop_replies_in_queue): Add parameter 'rs'.
262 Callers update. Pass remove_stop_reply_of_remote_state to
264 (remote_parse_stop_reply): Initialize field 'rs'.
266 2013-10-10 Will Newton <will.newton@linaro.org>
268 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
271 2013-10-10 Joel Brobecker <brobecker@adacore.com>
273 * cli/cli-cmds.c (show_baud_rate): Moved to serial.c as
274 serial_baud_show_cmd.
275 (_initialize_cli_cmds): Delete the code creating the
276 "set/show remotebaud" commands.
277 * serial.c (baud_rate): Move here from top.c.
278 (serial_baud_show_cmd): Move here from cli/cli-cmds.c.
279 (_initialize_serial): Create "set/show serial baud" commands.
280 Add "set/show remotebaud" command aliases.
281 * top.c (baud_rate): Moved to serial.c.
282 * NEWS: Document the new "set/show serial baud" commands,
283 replacing "set/show remotebaud".
285 2013-10-09 Pedro Alves <palves@redhat.com>
287 * breakpoint.c (insert_bp_location): Use memory_error_message to
288 build the memory error string.
289 * c-lang.c: Include "gdbcore.h".
290 (c_get_string): Use memory_error to throw error.
291 (target_xfer_memory_error): Delete.
292 (memory_error_message): New, factored out from
293 target_xfer_memory_error.
294 (memory_error): Change parameter type to target_xfer_error.
296 (read_memory): Use memory_error instead of
297 target_xfer_memory_error.
298 * gdbcore.h: Include "target.h".
299 (memory_error): Change parameter type to target_xfer_error.
300 (memory_error_message): Declare function.
301 * target.c (target_read_memory, target_read_stack)
302 (target_write_memory, target_write_raw_memory): Return
303 TARGET_XFER_E_IO on error. Adjust comments.
304 (get_target_memory): Pass TARGET_XFER_E_IO to memory_error,
306 * target.h (target_read, target_insert_breakpoint)
307 (target_remove_breakpoint): Adjust comments.
308 * valprint.c (partial_memory_read): Rename parameter, and adjust
310 (val_print_string): Use memory_error_message to build the memory
313 2013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
315 * common/filestuff.c (gdb_fopen_cloexec): Remove initialization of
316 result variable. Rename variable fopen_e_ever_failed to
317 fopen_e_ever_failed_einval. Retry fopen only for errno EINVAL.
319 2013-10-09 Pedro Alves <palves@redhat.com>
321 * monitor.c (monitor_write_memory, monitor_write_memory_bytes)
322 (monitor_write_memory_longlongs, monitor_write_memory_block):
323 Constify 'myaddr' parameter.
324 (monitor_xfer_memory): Adjust interface as monitor_xfer_partial
326 (monitor_xfer_partial): New function.
327 (init_base_monitor_ops): Don't install a deprecated_xfer_memory
328 hook. Install a to_xfer_partial hook.
330 2013-10-09 Tom Tromey <tromey@redhat.com>
332 * dwarf2read.c (dwarf2_get_dwz_file): Update for type change in
333 bfd_get_alt_debug_link_info.
335 2013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
337 New flag OBJF_NOT_FILENAME.
338 * auto-load.c (auto_load_objfile_script): Check also OBJF_NOT_FILENAME.
339 * jit.c (jit_object_close_impl): Use OBJF_NOT_FILENAME for
341 (jit_bfd_try_read_symtab): Use OBJF_NOT_FILENAME for
342 symbol_file_add_from_bfd.
343 * jv-lang.c (get_dynamics_objfile): Use OBJF_NOT_FILENAME for
345 * objfiles.c (allocate_objfile): Assert OBJF_NOT_FILENAME if NAME is
347 * objfiles.h (OBJF_NOT_FILENAME): New.
349 2013-10-08 Tom Tromey <tromey@redhat.com>
351 * Makefile.in (SFILES): Add build-id.c.
352 (HFILES_NO_SRCDIR): Add build-id.h.
353 * build-id.c: New file, largely from elfread.c. Modified
355 * build-id.h: New file.
356 * dwarf2read.c (dwarf2_get_dwz_file): Update for change to
357 bfd_get_alt_debug_link_info. Verify dwz file's build-id.
358 Search for dwz file using build-id.
359 * elfread.c (build_id_bfd_get, build_id_verify)
360 (build_id_to_debug_filename, find_separate_debug_file): Remove.
362 2013-10-08 Joel Brobecker <brobecker@adacore.com>
364 * ada-lang.c (compare_names_with_case): Renamed from
365 compare_names, adding a new parameter "casing" and its handling.
366 New function documentation.
367 (compare_names): New function, implemented using
368 compare_names_with_case.
370 2013-10-08 Joel Brobecker <brobecker@adacore.com>
372 * ada-lang.c (ada_exception_sal): Remove advance declaration.
374 2013-10-07 Tom Tromey <tromey@redhat.com>
376 * objfiles.c (free_objfile_per_bfd_storage): Delete the
377 demangled_names_hash.
378 (free_objfile): Don't delete the demangled_names_hash.
379 * objfiles.h (struct objfile_per_bfd_storage)
380 <demangled_names_hash>: New field.
381 (struct objfile) <demangled_names_hash>: Move to
382 objfile_per_bfd_storage.
383 * symfile.c (reread_symbols): Don't delete the
384 demangled_names_hash.
385 * symtab.c (create_demangled_names_hash): Update.
386 (symbol_set_names): Update.
388 2013-10-07 Tom Tromey <tromey@redhat.com>
390 * gdb_bfd.c (struct gdb_bfd_data) <relocation_computed,
391 needs_relocations>: New fields.
392 (gdb_bfd_requires_relocations): New function.
393 * gdb_bfd.h (gdb_bfd_requires_relocations): Declare.
394 * objfiles.c (get_objfile_bfd_data): Disallow sharing if
395 the BFD needs relocations applied.
397 2013-10-07 Pedro Alves <palves@redhat.com>
400 * breakpoint.c (remove_threaded_breakpoints): Say "no longer in
401 the thread list" instead of "gone".
403 2013-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
405 * NEWS: Mention new convenience variable $_exitsignal.
406 * corelow.c (core_open): Reset exit convenience variables. Set
407 $_exitsignal to the uncaught signal which generated the corefile.
408 * infrun.c (handle_inferior_event): Reset exit convenience
409 variables. Set $_exitsignal for TARGET_WAITKIND_SIGNALLED.
410 (clear_exit_convenience_vars): New function.
411 * inferior.h (clear_exit_convenience_vars): New prototype.
413 2013-10-06 Yao Qi <yao@codesourcery.com>
415 * varobj.h: Add comments to enum varobj_languages.
417 2013-10-04 Doug Evans <dje@google.com>
419 Add support for DWP file format version 2.
420 * NEWS: Mention support for DWP file format version 2.
421 * dwarf2read.c (dwarf2_section_info): Convert asection field to a
422 union of asection, containing_section. New fields virtual_offset
423 and is_virtual. Change type of readin filed from int to char.
424 (dwo_sections, dwo_file): Tweak comments.
425 (dwp_v2_section_ids): New enum.
426 (dwp_sections): New fields abbrev, info, line, loc, macinfo, macro,
428 (virtual_v1_dwo_sections): Renamed from virtual_dwo_sections.
430 (virtual_v2_dwo_sections): New struct.
431 (dwp_hash_table): New fields version, nr_columns. Change type of
432 section_pool field to a union.
433 (dwp_file): New field version.
434 (dwarf2_has_info): Check for virtual sections.
435 (get_containing_section): New function.
436 (get_section_bfd_owner, get_section_bfd_section): Call it.
437 (dwarf2_locate_sections): Update.
438 (dwarf2_section_empty_p): Update.
439 (dwarf2_read_section): Handle virtual sections.
440 (locate_dwz_sections): Update.
441 (create_dwp_hash_table): Document and handle V2 format.
442 (locate_v1_virtual_dwo_sections): Renamed from
443 locate_virtual_dwo_sections and update. All callers updated.
444 (create_dwo_unit_in_dwp_v1): Renamed from create_dwo_in_dwp.
445 Delete arg htab. Rename arg section_index to unit_index.
447 (MAX_NR_V1_DWO_SECTIONS): Renamed from MAX_NR_DWO_SECTIONS.
449 (create_dwp_v2_section, create_dwo_unit_in_dwp_v2): New functions.
450 (lookup_dwo_unit_in_dwp): Add V2 support.
451 (dwarf2_locate_dwo_sections): Update.
452 (dwarf2_locate_common_dwp_sections): Renamed from
453 dwarf2_locate_dwp_sections and update. All callers updated.
454 (dwarf2_locate_v2_dwp_sections): New function.
455 (open_and_init_dwp_file): Add V2 support.
456 (read_str_index): New locals str_section, str_offsets_section.
458 2013-10-04 Pedro Alves <palves@redhat.com>
460 * common/ptid.c (null_ptid, minus_one_ptid, ptid_build)
461 (pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid)
462 (ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p): Replace
463 describing comments with references to ptid.h.
464 * common/ptid.h: Remove intro description of constructors,
465 accessors and predicates.
466 (struct ptid): Reformat.
467 (minus_one_ptid, ptid_build, pid_to_ptid, ptid_get_pid)
468 (ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid): Change
471 2013-10-04 Joel Brobecker <brobecker@adacore.com>
473 * aix-thread.c (sync_threadlists): Add missing ')' in call
476 2013-10-04 Joel Brobecker <brobecker@adacore.com>
478 * procfs.c (procfs_init_inferior): Fix typo causing the build
481 2013-10-04 Joel Brobecker <brobecker@adacore.com>
483 * aix-thread.c (ptrace32): Remove cast to addr_ptr.
485 2013-10-04 Joel Brobecker <brobecker@adacore.com>
487 * mi/mi-main.c (run_one_inferior): Add function description.
488 Make ARG a pointer to an integer whose value determines whether
489 we should "run" or "start" the program.
490 (mi_cmd_exec_run): Add handling of the "--start" option.
491 Reject all other command-line options.
492 * NEWS: Add entry for "-exec-run"'s new "--start" option.
494 2013-10-04 Yao Qi <yao@codesourcery.com>
496 * remote-notif.h (REMOTE_NOTIF_ID): New enum.
497 (struct notif_client) <pending_event>: Moved
498 to struct remote_notif_state.
500 (struct remote_notif_state) <pending_event>: New field.
501 (notif_event_xfree): Declare.
502 * remote-notif.c (handle_notification): Adjust.
503 (notif_event_xfree): New function.
504 (do_notif_event_xfree): Call notif_event_xfree.
505 (remote_notif_state_xfree): Call notif_event_xfree to free
506 each element in field pending_event.
507 * remote.c (discard_pending_stop_replies): Remove declaration.
508 (discard_pending_stop_replies_in_queue): Declare.
509 (remote_close): Call discard_pending_stop_replies_in_queue
510 instead of discard_pending_stop_replies.
511 (remote_start_remote): Adjust.
512 (stop_reply_xfree): Call notif_event_xfree.
513 (notif_client_stop): Adjust initialization.
514 (remote_notif_remove_all): Rename it to ...
515 (remove_stop_reply_for_inferior): ... this. Update comments.
516 Don't check INF is NULL.
517 (discard_pending_stop_replies): Return early if notif_state is
518 NULL. Adjust. Don't check INF is NULL.
519 (remote_notif_get_pending_events): Adjust.
520 (discard_pending_stop_replies_in_queue): New function.
521 (remote_wait_ns): Likewise.
523 2013-10-04 Yao Qi <yao@codesourcery.com>
525 * remote-notif.c (DECLARE_QUEUE_P): Remove.
526 (notif_queue): Remove.
527 (remote_notif_process): Add one parameter 'notif_queue'.
528 Update comments. Callers update.
529 (remote_async_get_pending_events_token): Remove.
530 (remote_notif_register_async_event_handler): Remove.
531 (remote_notif_unregister_async_event_handler): Remove.
532 (handle_notification): Add parameter 'notif_queue'. Update
533 comments. Callers update.
534 (notif_xfree): Remove.
535 (remote_notif_state_allocate): New function.
536 (remote_notif_state_xfree): New function.
537 (_initialize_notif): Remove code to allocate queue.
538 * remote-notif.h (DECLARE_QUEUE_P): Moved from remote-notif.c.
539 (struct remote_notif_state): New.
540 (handle_notification): Update declaration.
541 (remote_notif_process): Likewise.
542 (remote_notif_register_async_event_handler): Remove.
543 (remote_notif_unregister_async_event_handler): Remove.
544 (remote_notif_state_allocate): Declare.
545 (remote_notif_state_xfree): Declare.
546 * remote.c (struct remote_state) <notif_state>: New field.
547 (remote_close): Don't call
548 remote_notif_unregister_async_event_handler. Call
549 remote_notif_state_xfree.
550 (remote_open_1): Don't call
551 remote_notif_register_async_event_handler. Call
552 remote_notif_state_allocate.
554 2013-10-04 Yao Qi <yao@codesourcery.com>
556 * varobj.c (create_child_with_value): Remove 'const' from the
557 type of parameter 'name'.
558 (varobj_add_child): Likewise.
559 (install_dynamic_child): Remove 'const' from the type of
561 (varobj_add_child): Likewise.
562 (create_child_with_value): Likewise. Update comments. Don't
564 (update_dynamic_varobj_children): Duplicate 'name'
565 and pass it to install_dynamic_child.
567 2013-10-03 Phil Muldoon <pmuldoon@redhat.com>
569 * python/py-value.c (convert_value_from_python): Move PyInt_Check
570 conversion logic to occur after PyLong_Check. Comment on order
572 * python/py-arch.c (archpy_disassemble): Comment on order of
573 conversion for integers and longs.
575 2013-10-03 Pedro Alves <palves@redhat.com>
577 * common/linux-ptrace.c (linux_check_ptrace_features): Factor out
578 the PTRACE_O_TRACESYSGOOD and PTRACE_O_TRACEFORK to separate
579 functions. Always test for PTRACE_O_TRACESYSGOOD even if
580 PTRACE_O_TRACEFORK is not supported.
581 (linux_test_for_tracesysgood): New function.
582 (linux_test_for_tracefork): New function, factored out from
583 linux_check_ptrace_features, and also don't kill child_pid here.
585 2013-10-03 Tristan Gingold <gingold@adacore.com>
587 * i386-darwin-nat.c (i386_darwin_dr_set): Fix argument type.
588 Remove verbose error reporting. Use detected state to
589 thread_set_state call.
590 (i386_darwin_dr_get): Fix return type. Remove verbose error
592 Remove trailing spaces.
594 2013-10-02 Pedro Alves <palves@redhat.com>
596 * cp-valprint.c (cp_print_value_fields): Adjust calls to
597 val_print_optimized_out.
598 * jv-valprint.c (java_print_value_fields): Likewise.
599 * p-valprint.c (pascal_object_print_value_fields): Likewise.
600 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
601 <DWARF_VALUE_REGISTER>: If the register was not saved, return a
602 new optimized out value.
603 * findvar.c (address_from_register): Likewise.
604 * frame.c (put_frame_register): Tweak error string to say the
605 register was not saved, rather than optimized out.
606 * infcmd.c (default_print_one_register_info): Adjust call to
607 val_print_optimized_out. Use value_of_register instead of
608 get_frame_register_value.
609 * mi/mi-main.c (output_register): Use value_of_register instead of
610 get_frame_register_value.
611 * valprint.c (valprint_check_validity): Likewise.
612 (val_print_optimized_out): New value parameter. If the value is
613 lval_register, print <not saved> instead.
614 (value_check_printable, val_print_scalar_formatted): Adjust calls
615 to val_print_optimized_out.
616 * valprint.h (val_print_optimized_out): New value parameter.
617 * value.c (struct value) <optimized_out>: Extend comment.
618 (error_value_optimized_out): New function.
619 (require_not_optimized_out): Use it. Use a different string for
620 lval_register values.
621 * value.h (error_value_optimized_out): New declaration.
622 * NEWS: Mention <not saved>.
624 2013-10-02 Joel Brobecker <brobecker@adacore.com>
626 * symtab.c (compare_search_syms): Use FILENAME_CMP instead of
627 strcmp to compare two symtab filenames.
629 2013-10-02 Joel Brobecker <brobecker@adacore.com>
631 * symtab.c (search_symbols_equal): Delete.
632 (sort_search_symbols_remove_dups): Replace call to
633 search_symbols_equal by call to compare_search_syms,
634 adjusting as necessary.
636 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
640 * python/python.c: Document gdb.execute command in Python help.
642 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
644 * python/py-frame.c (frame_info_to_frame_object): Use
645 gdbpy_convert_exception. Clean up Python object on failure.
647 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
649 * python/lib/gdb/command/frame_filters.py
650 (InfoFrameFilter.list_frame_filters): Retrieve exception manually.
651 (ShowFrameFilterPriority.invoke): Ditto.
653 2013-10-01 Keith Seitz <keiths@redhat.com>
655 * linespec.c (struct ls_parser): Make 'saved_arg' const.
656 (parse_linespec): Make 'argptr' const.
657 Remove temporary cast of 'argptr' to const char **.
658 (decode_line_full): Pass const pointer to parse_linespec.
659 (decode_line_1): Likewise.
660 (decode_objc): Make local variable 'new_argptr' const.
661 (find_function_symbols): Remove temporary cast to char *
663 * objc-lang.c (find_imps): Make argument 'method' const.
665 * objc-lang.h (find_imps): Likewise.
667 2013-10-01 Keith Seitz <keiths@redhat.com>
669 * completer.c (skip_quoted_chars): Make all arguments const.
671 (skip_quoted): Likewise.
672 * completer.h (skip_quoted_chars): Likewise.
673 (skip_quoted): Likewise.
674 * defs.h (skip_quoted): Remove duplicate declaration.
675 * jv-exp.y: Include completer.h.
676 (yylex): Remove unneccessary cast to char * fro skip_quoted.
677 * p-exp.y: Include completer.h.
679 2013-10-01 Keith Seitz <keiths@redhat.com>
681 * c-exp.y (parse_number): Make first argument const.
682 Make a copy of the input to manipulate.
683 (c_parse_escape): Make first argument const.
684 Make local variable 'tokptr' const.
685 (parse_string_or_char): Make first two arguments const.
686 (macro_original_text): Make const.
687 (lex_one_token): Make local variable 'tokstart' const.
688 Likewise for local variables named 'p'.
689 Cast away const for struct stoken (temporary).
690 * c-lang.h (c_parse_escpae): Make first argument const.
691 * cli/cli-cmds.c (echo_command): Make local variable 'p'
693 * cli/cli-setshow.c (do_set_command): Likewise for 'p' in
695 * f-exp.y (parse_number): Make first argument const.
696 (match_string_literal): Make local variable 'tokstart'
698 (yylex): Make local variable 'p' const.
699 Cast away const for struct stoken (temporary).
700 * go-exp.y (parse_number): Make first argument const.
701 (parse_string_or_char): Likewise.
702 Make local variable 'tokstart' const.
703 (lex_one_token): Likewise for numerous locals called 'p'.
704 Cast away const for struct stoken (temporary).
705 * jv-exp.y (parse_number): Make first argument const.
706 Make local variables 'tokstart' and 'tokptr' const.
707 Cast away const for call to skip_quoted (temporary).
708 (yylex): Make local variable 'p' const.
709 Cast away const for struct stoken (temporary).
710 * m2-exp.y (parse_number): Make local variable 'p' const.
711 (yylex): Likewise for 'tokstart'.
712 Cast away const for struct stoken (temporary).
713 Make local variable 'p' const.
714 * macroexp.c (get_character_constant): Pass a const string
716 (get_string_literal): Likewise.
717 (macro_expand_next): Make first argument const.
718 Cast away const for init_shared_buffer.
719 * macroexp.h (macro_expand_next): Make first argument const.
720 * p-exp.y (yylex): Make a local copy of 'lexptr'.
721 Pass a const string to c_parse_escape.
722 Make local variables 'p' and 'namestart' const.
723 * parse.c (lexptr): Make const.
724 (prev_lexptr): Likewise.
725 (find_template_name_end): Return const.
726 Make argument const, too.
727 (parse_exp_in_context): Make first argument const.
728 Remove the entire const_hack.
729 (parse_exp_in_context_1): Make first argument const.
730 * parser-defs.h (find_template_name_end): Return const.
731 Make argument const, too.
732 (lexptr): Make const.
733 (prev_lexptr): Likewise.
734 * utils.c (parse_escape): Make second argument const.
735 * utils.h (parse_escape): Likewise.
737 2013-10-01 Keith Seitz <keiths@redhat.com>
739 * ada-exp.y (write_object_renaming): Update: struct stoken.ptr
741 (block_lookup): Make 'raw_name' and 'name' const.
742 * ada-lex.l (processString): Update for struct stoken.ptr.
743 * c-exp.y (qualified_name : TYPENAME COLONCOLON '~' name): Likewise.
744 (operator_stoken): Likewise.
745 (lex_one_token): Remove temporary cast to char * for
747 * f-exp.y (yylex): Likewise.
748 * gdb-types.c (lookup_struct_elt_type): Make argument 'name' const.
749 * gdbtypes.h (lookup_struct_elt_type): Likewisee.
750 * go-exp.y (lex_one_token): Remove temporary cast to char * for
752 * jv-exp.y (QualifiedName): Update for struct stoken.ptr.
753 (yylex): Remove temporary cast to char * for 'yylval.sval.ptr'.
754 * linespec.c (struct ls_parser): Make 'stream' const.
755 (find_parameter_list_end): Make argument 'input' and local
757 (linespec_lexer_lex_string): Make local variables 'start' and
759 Use skip_spaces_const instead of skip_spaces.
760 (linespec_lexer_peek_token): Make local variable 'saved_stream'
762 (parse_linespec): Temporarily cast 'argptr' to const for
763 'parser->lexer.stream'.
764 * m2-exp.y (yylex): Remove temporary cast to char * for
766 * objc-lang.c (add_msglist): Make local variable 'p' const.
767 * p-exp.y (exp : exp '['): Update for struct stoken.ptr.
768 (exp : STRING): Make 'sp' const.
769 (parse_number): Make argument 'p' const.
770 * parser-defs.h (struct stoken): Make 'ptr' const.
772 2013-10-01 Doug Evans <dje@google.com>
774 * cli/cli-decode.c: Remove unnecessary inclusion of tui/tui.h.
776 2013-10-01 Yao Qi <yao@codesourcery.com>
778 * varobj.c (c_value_of_root): Remove declaration.
779 (cplus_value_of_root, java_value_of_root): Likewise.
780 (ada_value_of_root): Likewise.
781 (struct language_specific) <value_of_root>: Remove.
782 (languages): Update initialization.
783 (check_scope): Move earlier.
784 (c_value_of_root): Move earlier and rename to ...
785 (value_of_root_1): ... this.
786 (value_of_root): Caller update.
787 (cplus_value_of_root, java_value_of_root): Remove.
788 (ada_value_of_root): Remove.
790 2013-10-01 Yao Qi <yao@codesourcery.com>
792 * varobj.c (varobj_format_string): Remove "unknown".
793 (languages): Remove the first element.
794 * varobj.h (enum varobj_languages): Remove vlang_c.
796 2013-10-01 Yao Qi <yao@codesourcery.com>
798 * varobj.c (struct language_specific) <language>: Remove.
799 (languages): Update the initialization.
801 2013-10-01 Yao Qi <yao@codesourcery.com>
803 * arm-wince-tdep.c: Remove inclusion of "solib.h" and
804 "solib-target.h". Include "windows-tdep.h".
805 (arm_wince_init_abi): Call windows_init_abi. Remove call to
806 set_solib_ops and set_gdbarch_has_dos_based_file_system.
807 * configure.tgt (arm*-wince-pe | arm*-*-mingw32ce*): Append
808 windows-tdep.o to gdb_target_obs.
810 2013-10-01 Yao Qi <yao@codesourcery.com>
812 * amd64-windows-tdep.c: Remove inclusion of "solib.h" and
814 (amd64_windows_init_abi): Don't call set_solib_ops and
815 set_gdbarch_iterate_over_objfiles_in_search_order. Call
816 windows_init_abi instead.
817 * i386-cygwin-tdep.c: Remove inclusion of "solib.h" and
819 (i386_cygwin_init_abi): Don't call set_solib_ops,
820 set_gdbarch_has_dos_based_file_system and
821 set_gdbarch_iterate_over_objfiles_in_search_order. Call
822 windows_init_abi instead.
823 * windows-tdep.c: Include "solib.h" and "solib-target.h".
824 (windows_init_abi): New function.
825 (windows_iterate_over_objfiles_in_search_order): Make it
827 * windows-tdep.h (windows_init_abi): Declare.
828 (windows_iterate_over_objfiles_in_search_order): Remove
831 2013-10-01 Jerome Guitton <guitton@adacore.com>
833 Checked in by Joel Brobecker <brobecker@adacore.com>
834 * system-gdbinit/elinos.py (get_elinos_environment): Return an
835 incomplete dictionnary instead of None in case of missing
836 environment variables.
837 (elinos_init): in case of an incomplete environment, best
838 effort to load system libraries instead of abort.
840 2013-10-01 Joel Brobecker <brobecker@adacore.com>
842 * ada-lang.c (ada_has_this_exception_support): Ignore
843 mst_solib_trampoline minimal symbols.
845 2013-09-30 Tristan Gingold <gingold@adacore.com>
847 * i386-darwin-nat.c (darwin_complete_target): Install methods for
849 (i386_darwin_dr_set): Support 32 and 64 bit states.
850 (i386_darwin_dr_get): Likewise.
851 (i386_darwin_dr_set_control): Make static.
852 (i386_darwin_dr_set_addr, i386_darwin_dr_get_addr)
853 (i386_darwin_dr_get_status, i386_darwin_dr_get_control): Likewise.
855 2013-09-30 Luis Machado <lgustavo@codesourcery.com>
857 * aarch64-linux-nat.c: Replace PIDGET with ptid_get_pid.
858 Replace TIDGET with ptid_get_lwp.
859 Replace GET_LWP with ptid_get_lwp.
860 * aix-thread.c (BUILD_THREAD, BUILD_LWP): Remove.
861 Replace BUILD_THREAD with ptid_build.
862 Replace BUILD_LWP with ptid_build.
863 Replace PIDGET with ptid_get_pid.
864 Replace TIDGET with ptid_get_lwp.
865 * alphabsd-nat.c: Replace PIDGET with ptid_get_pid.
866 * amd64-linux-nat.c: Replace PIDGET with ptid_get_pid.
867 Replace TIDGET with ptid_get_lwp.
868 * amd64bsd-nat.c: Replace PIDGET with ptid_get_pid.
869 * arm-linux-nat.c: Replace PIDGET with ptid_get_pid.
870 Replace TIDGET with ptid_get_lwp.
871 Replace GET_LWP with ptid_get_lwp.
872 * armnbsd-nat.c: Replace PIDGET with ptid_get_pid.
874 * breakpoint.c: Likewise.
875 * common/ptid.c (ptid_is_pid): Condense check for
876 null_ptid and minus_one_ptid.
877 (ptid_lwp_p): New function.
878 (ptid_tid_p): New function.
879 * common/ptid.h: Update comments for accessors.
880 (ptid_lwp_p): New prototype.
881 (ptid_tid_p): New prototype.
882 * defs.h (PIDGET, TIDGET, MERGEPID): Do not define.
883 * gcore.c: Replace PIDGET with ptid_get_pid.
884 * gdbthread.h: Likewise.
885 * gnu-nat.c: Likewise.
886 * hppa-linux-nat.c: Replace PIDGET with ptid_get_pid.
887 Replace TIDGET with ptid_get_lwp.
888 * hppabsd-nat.c: Replace PIDGET with ptid_get_pid.
889 * hppanbsd-nat.c: Likewise.
890 * i386-linux-nat.c: Replace PIDGET with ptid_get_pid.
891 Replace TIDGET with ptid_get_lwp.
892 * i386bsd-nat.c: Replace PIDGET with ptid_get_pid.
893 * ia64-linux-nat.c: Replace PIDGET with ptid_get_pid.
894 * infcmd.c: Likewise.
895 * inferior.h: Likewise.
896 * inflow.c: Likewise.
897 * infrun.c: Likewise.
898 * linux-fork.c: Likewise.
899 * linux-nat.c: Replace PIDGET with ptid_get_pid.
900 Replace GET_PID with ptid_get_pid.
901 Replace is_lwp with ptid_lwp_p.
902 Replace GET_LWP with ptid_get_lwp.
903 Replace BUILD_LWP with ptid_build.
905 2013-09-28 Mike Frysinger <vapier@gentoo.org>
907 * common/linux-btrace.c: Move sys/syscall.h out of the
908 HAVE_LINUX_PERF_EVENT_H check and wrap it in HAVE_SYS_SYSCALL_H.
909 Also check for SYS_perf_event_open before attempting to buid.
911 2013-09-27 Doug Evans <dje@google.com>
913 * dwarf2read.c (dwarf2_section_info): Add comment.
914 (dwp_file): Split loaded_cutus into loaded_cus, loaded_tus.
916 (dwarf2_section_empty_p): Rename arg from "info" to "section".
917 (dwarf2_read_section): Delete unused local "header". Add section
918 name to error message.
919 (create_dwo_in_dwp): Tweak comment.
920 (MAX_NR_DWO_SECTIONS): Combine count of .debug_macro + .debug_macinfo.
922 * dwarf2read.c (die_reader_specs): Tweak comment.
923 (get_section_bfd_owner, get_section_bfd_section): New functions.
924 (get_section_name, get_section_file_name): New functions.
925 (get_section_id, get_section_flags): New functions.
926 (*): Use new functions to access section fields.
928 * dwarf2read.c (struct dwo_file): Add/tweak comments.
929 (lookup_dwo_unit_in_dwp): Renamed from lookup_dwo_in_dwp. Remove
930 arg "htab". All callers updated.
931 (create_debug_types_hash_table): Remove redundant copy of
933 (create_dwo_in_dwp): Tweak comments.
934 (read_str_index): Tweak comment. Record dwarf form name in static
937 2013-09-27 Pedro Alves <palves@redhat.com>
939 * remote.h (REMOTE_SYSROOT_PREFIX): New define.
940 (remote_filename_p): Add comment.
941 * remote.c (remote_filename_p): Adjust to use
942 REMOTE_SYSROOT_PREFIX.
943 * solib.c (solib_find): When deciding whether we need to add a
944 directory separator, check whether the sysroot is "remote:"
945 instead of checking whether the patch has a drive spec. Add
948 2013-09-27 Pedro Alves <palves@redhat.com>
950 * remote.c (struct stop_reply) <solibs_changed, replay_event>:
952 (remote_parse_stop_reply): Adjust, setting event->ws.kind
955 2013-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
957 Fix set debug frame output.
958 * frame.c (fprint_frame_type): Add TAILCALL_FRAME entry. Move
959 SENTINEL_FRAME entry lower to match enum frame_type order.
961 2013-09-26 Pierre Muller <muller@sourceware.org>
963 Replace constant values 8 to 15 by AMD64_R8_REGNUM to
964 AMD64_R15_REGNUM when a register index is expected.
965 * amd64-windows-tdep.c (amd64_windows_dummy_call_integer_regs):
967 * amd64-tdep.c (amd64_dwarf_regmap): Ditto.
968 (amd64_push_arguments): Substitute in integer_regnum array.
970 2013-09-25 Doug Evans <dje@google.com>
972 * objfiles.c (allocate_objfile): Move comment to better place.
974 New option "set debug symfile on".
975 * NEWS: Mention "set debug symfile".
976 * Makefile.in (SFILES): Add symfile-debug.c.
977 (COMMON_OBS): Add symfile-debug.o.
978 * elfread.c (elf_symfile_read): Use objfile_set_sym_fns to set the
979 objfile's symbol functions.
980 * objfiles.h (objfile_set_sym_fns): Declare.
981 * symfile-debug.c: New file.
982 * symfile.c (syms_from_objfile_1): Use objfile_set_sym_fns to set the
983 objfile's symbol functions.
984 (reread_symbols): Ditto.
986 * symfile.h (struct sym_fns): Delete member "sym_flavour".
988 (add_symtab_fns): Update prototype.
989 * symfile.c (sym_fns_ptr): Delete. Replace with ...
990 (registered_sym_fns): ... this.
991 (symtab_fns): Update.
992 (add_symtab_fns): New arg "flavour". All callers updated.
993 (find_sym_fns): Rewrite to use new sym_fns registry.
995 * symfile.h (struct sym_fns): Add "objfile" argument to
996 sym_read_linetable. All uses updated.
998 * symtab.c (domain_name, search_domain_name): New functions.
999 * symtab.h (domain_name, search_domain_name): Declare.
1001 * symfile.h (struct quick_symbol_functions): Reorg arg list of
1002 map_matching_symbols so objfile is first. All uses updated.
1003 * dwarf2read.c (dw2_map_matching_symbols): Update signature.
1004 * psymtab.c (map_matching_symbols_psymtab): Update signature.
1006 2013-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
1009 * solib-svr4.c (svr4_read_so_list): Skip the vDSO when reading
1012 2013-09-24 Doug Evans <dje@google.com>
1014 * objfiles.c (free_objfile): Move comment.
1016 2013-09-24 Joel Brobecker <brobecker@adacore.com>
1018 * ada-exp.y (string_to_operator): Delete.
1019 (dummy_string_to_ada_operator): Delete.
1021 2013-09-24 Joel Brobecker <brobecker@adacore.com>
1024 * i386-tdep.h (enum amd64_reg_class): New, moved here from
1026 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
1027 call_dummy_integer_regs, and classify.
1028 * amd64-tdep.h (amd64_classify): Add declaration.
1029 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
1030 (amd64_reg_class): Delete, moved to i386-tdep.h.
1031 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
1032 Replace call to amd64_classify by call to tdep->classify.
1033 (amd64_push_arguments): Get the list of registers to use for
1034 passing integer parameters from the gdbarch tdep structure,
1035 rather than using a hardcoded one. Replace calls to amd64_classify
1036 by calls to tdep->classify.
1037 (amd64_push_dummy_call): Get the register number used for
1038 the "hidden" argument from tdep->call_dummy_integer_regs.
1039 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
1040 and tdep->call_dummy_integer_regs. Set tdep->classify.
1042 2013-09-24 Joel Brobecker <brobecker@adacore.com>
1045 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
1046 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
1047 where tdep->memory_args_by_pointer is non-zero.
1049 2013-09-24 Joel Brobecker <brobecker@adacore.com>
1052 * i386-tdep.h (struct gdbarch_tdep): Add new field
1053 integer_param_regs_saved_in_caller_frame.
1054 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
1055 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
1057 2013-09-24 Joel Brobecker <brobecker@adacore.com>
1059 * amd64-windows-tdep.c: #include "value.h"
1060 (amd64_windows_classify): Delete.
1061 (amd64_windows_passed_by_integer_register)
1062 (amd64_windows_passed_by_xmm_register)
1063 (amd64_windows_passed_by_pointer)
1064 (amd64_windows_adjust_args_passed_by_pointer)
1065 (amd64_windows_store_arg_in_reg, amd64_windows_push_arguments)
1066 (amd64_windows_push_dummy_call): New functions.
1067 (amd64_windows_init_abi): Remove setting of
1068 tdep->call_dummy_num_integer_regs, tdep->call_dummy_integer_regs,
1069 tdep->classify, tdep->memory_args_by_pointer and
1070 tdep->integer_param_regs_saved_in_caller_frame.
1071 Add call to set_gdbarch_push_dummy_call.
1073 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1075 * dwarf2read.c (open_and_init_dwp_file): Try open_dwp_file also with
1076 objfile->original_name.
1078 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1080 Pass down original filename for objfile.
1081 * coffread.c (coff_symfile_read): Update symbol_file_add_separate call.
1082 * elfread.c (elf_symfile_read): Likewise.
1083 * jit.c (jit_object_close_impl): Update allocate_objfile call, no
1084 longer set ORIGINAL_NAME.
1085 (jit_bfd_try_read_symtab): Update symbol_file_add_from_bfd call.
1086 * jv-lang.c (get_dynamics_objfile): Update allocate_objfile call.
1087 * machoread.c (macho_add_oso_symfile): Add parameter name. Update
1088 symbol_file_add_from_bfd call.
1089 (macho_symfile_read_all_oso): Update two macho_add_oso_symfile calls.
1090 (macho_check_dsym): Add parameter filenamep. Change function comment.
1092 (macho_symfile_read): New variable dsym_filename. Update
1093 macho_check_dsym call. Use it for symbol_file_add_separate.
1094 * objfiles.c (allocate_objfile): Add parameter name. New comment for
1095 it. Use it for objfile->original_name.
1096 (objfile_name): Return OBFD's filename, if available.
1097 * objfiles.h (allocate_objfile): Add new parameter name.
1098 * solib.c (solib_read_symbols): Update symbol_file_add_from_bfd call.
1099 * symfile-mem.c (symbol_file_add_from_memory): Update
1100 symbol_file_add_from_bfd call.
1101 * symfile.c (read_symbols): Update symbol_file_add_separate call, new
1103 (symbol_file_add_with_addrs): New parameter name, add function comment
1104 for it. Remove variable name. Update allocate_objfile call.
1105 (symbol_file_add_separate): New parameter name, add function comment
1106 for it. Update symbol_file_add_with_addrs call.
1107 (symbol_file_add_from_bfd): New parameter name. Update
1108 symbol_file_add_with_addrs call.
1109 (symbol_file_add): Update symbol_file_add_from_bfd call.
1110 (reread_symbols): New variable original_name. Save
1111 objfile->original_name by it.
1112 * symfile.h (symbol_file_add_from_bfd, symbol_file_add_separate): Add
1115 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1117 Code cleanup: Add objfile_name accessor function.
1118 * ada-lang.c (is_known_support_routine): Use objfile_name.
1119 * auto-load.c (source_gdb_script_for_objfile)
1120 (auto_load_objfile_script): Likewise.
1121 * coffread.c (coff_symtab_read, read_one_sym): Likewise.
1122 * dbxread.c (dbx_symfile_read): Likewise.
1123 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
1124 * dwarf2loc.c (locexpr_describe_location_piece): Likewise.
1125 * dwarf2read.c (dwarf2_get_dwz_file, dwarf2_read_index)
1126 (dw2_symtab_iter_next, dw2_expand_symtabs_matching)
1127 (lookup_dwp_signatured_type, lookup_dwo_unit)
1128 (dwarf2_build_psymtabs_hard, scan_partial_symbols, process_queue)
1129 (fixup_go_packaging, process_imported_unit_die, dwarf2_physname)
1130 (read_import_statement, create_dwo_cu, open_and_init_dwp_file)
1131 (lookup_dwo_cutu, read_call_site_scope, dwarf2_ranges_read)
1132 (dwarf2_record_block_ranges, read_common_block, read_typedef)
1133 (read_subrange_type, load_partial_dies, read_partial_die)
1134 (read_addr_index_1, read_str_index, dwarf_decode_lines_1)
1135 (die_containing_type, build_error_marker_type, lookup_die_type)
1136 (follow_die_ref_or_sig, follow_die_ref, dwarf2_fetch_die_loc_sect_off)
1137 (dwarf2_fetch_constant_bytes, follow_die_sig, get_signatured_type)
1138 (get_DW_AT_signature_type, write_psymtabs_to_index)
1139 (save_gdb_index_command): Likewise.
1140 * elfread.c (find_separate_debug_file_by_buildid, elf_symfile_read):
1142 * expprint.c (dump_subexp_body_standard): Likewise.
1143 * gdbtypes.c (type_name_no_tag_or_error): Likewise.
1144 * jit.c (jit_object_close_impl): Use the objfile field name renamed to
1146 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New variable
1147 obj_name, use objfile_name for it, use the variable.
1148 (try_thread_db_load_from_pdir, has_libpthread, thread_db_new_objfile):
1150 * machoread.c (macho_symtab_read, macho_check_dsym)
1151 (macho_symfile_relocate): Likewise.
1152 * maint.c (maintenance_translate_address): Likewise.
1153 * minidebug.c (find_separate_debug_file_in_section): Likewise.
1154 * minsyms.c (install_minimal_symbols): Likewise.
1155 * objfiles.c (allocate_objfile): Use the objfile field name renamed to
1157 (filter_overlapping_sections): Use objfile_name.
1158 (objfile_name): New function.
1159 * objfiles.h (struct objfile): Rename field name to original_name.
1160 (objfile_name): New prototype.
1161 * printcmd.c (sym_info, address_info): Use objfile_name.
1162 * probe.c (parse_probes, collect_probes, compare_probes)
1163 (info_probes_for_ops): Likewise.
1164 * progspace.c (clone_program_space): Likewise.
1165 * psymtab.c (require_partial_symbols, dump_psymtab, allocate_psymtab)
1166 (maintenance_info_psymtabs): Likewise.
1167 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
1168 (source_section_scripts): Likewise.
1169 * python/py-objfile.c (objfpy_get_filename): Likewise.
1170 * python/py-progspace.c (pspy_get_filename): Likewise.
1171 * solib-aix.c (solib_aix_get_toc_value): Likewise.
1172 * solib-som.c (match_main, som_solib_section_offsets): Likewise.
1173 * solib.c (solib_read_symbols): Likewise.
1174 * stabsread.c (scan_file_globals): Likewise.
1175 * stap-probe.c (handle_stap_probe): Likewise.
1176 * symfile.c (symbol_file_clear, separate_debug_file_exists)
1177 (find_separate_debug_file_by_debuglink): Likewise.
1178 (reread_symbols): Likewise. Use the objfile field name renamed to
1180 (allocate_symtab): Use objfile_name.
1181 * symmisc.c (print_symbol_bcache_statistics, print_objfile_statistics)
1182 (dump_objfile, dump_msymbols, dump_symtab_1)
1183 (maintenance_print_msymbols, maintenance_print_objfiles)
1184 (maintenance_info_symtabs, maintenance_check_symtabs): Likewise.
1185 * target.c (target_translate_tls_address, target_info): Likewise.
1186 * xcoffread.c (xcoff_initial_scan): Make variable name const. Use
1189 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1192 * probe.c (parse_probes): Rename variable objfile_name to
1195 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1197 Remove solib-sunos.c.
1198 * Makefile.in (ALLDEPFILES): Remove solib-sunos.c.
1199 * config/m68k/obsd.mh (NATDEPFILES): Remove solib-sunos.o.
1200 * objfiles.c (rt_common_objfile): Remove.
1201 (free_objfile): Remove rt_common_objfile comparison.
1202 * objfiles.h (rt_common_objfile): Remove.
1203 * solib-sunos.c: Remove.
1204 * symfile.c (reread_symbols): Remove solib-sunos.c comment.
1206 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1208 Remove a.out NetBSD and OpenBSD hosts.
1209 * NEWS (Removed native configurations): New.
1210 * config/arm/nbsdaout.mh: Remove.
1211 * config/i386/nbsdaout.mh: Remove.
1212 * config/i386/obsdaout.mh: Remove.
1213 * config/m68k/nbsdaout.mh: Remove.
1214 * config/sparc/nbsdaout.mh: Remove.
1215 * config/vax/nbsdaout.mh: Remove.
1216 * configure.host (arm*-*-netbsd*, i[34567]86-*-netbsd*)
1217 (i[34567]86-*-openbsd[0-2].*, i[34567]86-*-openbsd3.[0-3])
1218 (m68*-*-netbsd*, sparc-*-netbsd*, vax-*-netbsd*): Add them to obsolete
1220 (arm*-*-netbsd*, i[34567]86-*-netbsd*, i[34567]86-*-openbsd[0-2].*)
1221 (i[34567]86-*-openbsd3.[0-3], m68*-*-netbsd*, sparc-*-netbsdaout*)
1222 (sparc-*-netbsd*, vax-*-netbsd*): Remove.
1224 2013-09-23 Tom Tromey <tromey@redhat.com>
1226 * linespec.c (struct minsym_and_objfile): Remove.
1227 (minsym_and_objfile_d): Remove.
1228 (struct linespec, struct collect_info, linespec_parse_basic)
1229 (convert_linespec_to_sals, linespec_parser_delete, decode_objc)
1230 (compare_msymbols, find_method, find_function_symbols)
1231 (find_linespec_symbols, struct collect_minsyms, compare_msyms)
1232 (add_minsym, search_minsyms_for_name): Update.
1234 2013-09-23 Andrew Burgess <aburgess@broadcom.com>
1236 * regcache.c: Add include of valprint.h.
1237 (dump_endian_bytes): Delete.
1238 (regcache_dump): Use print_hex_chars not dump_endian_bytes.
1240 2013-09-23 Andrew Burgess <aburgess@broadcom.com>
1242 * sh64-tdep.c (sh64_do_fp_register): Use print_hex_chars.
1244 2013-09-19 Pedro Alves <palves@redhat.com>
1246 * breakpoint.c (remove_threaded_breakpoints): Skip non-user
1249 2013-09-19 Pedro Alves <palves@redhat.com>
1250 Thomas Schwinge <thomas@codesourcery.com>
1251 Yue Lu <hacklu.newborn@gmail.com>
1253 * gnu-nat.c (gnu_read_inferior, gnu_write_inferior): Make static.
1254 Take a gdb_byte pointer instead of a char pointer.
1256 * gnu-nat.c (gnu_xfer_memory): Adjust interface as
1257 gnu_xfer_partial helper.
1258 (gnu_xfer_partial): New function.
1259 (gnu_target): Don't install a deprecated_xfer_memory hook.
1260 Install a to_xfer_partial hook.
1262 2013-09-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1265 * main.c (captured_main): Replace catch_command_errors by
1266 catch_command_errors_const. Twice.
1267 * symfile.c (symbol_file_add_main_1): Make args parameter const.
1268 (symbol_file_add): Make name parameter const.
1269 (symbol_file_add_main, symbol_file_add_main_1): Make args parameter const.
1270 (symfile_bfd_open): Make name parameter const, rename it to cname. Add
1271 variable name. Change their usage accordingly.
1272 * symfile.h (symbol_file_add, symfile_bfd_open): Make first parameter
1274 (symbol_file_add_main): Make args parameter const.
1276 2013-09-18 Raunaq Bathija <raunaq12@in.ibm.com>
1277 Ulrich Weigand <uweigand@de.ibm.com>
1279 * xcoffread.c (struct coff_symbol): Use CORE_ADDR as type
1281 (read_xcoff_symtab): Use CORE_ADDR as type of fcn_start_addr.
1283 2013-09-18 Pedro Alves <palves@redhat.com>
1284 Yue Lu <hacklu.newborn@gmail.com>
1286 * gnu-nat.c (inf_validate_procs, gnu_wait, gnu_resume)
1287 (gnu_create_inferior)
1288 (gnu_attach, gnu_thread_alive, gnu_pid_to_str, cur_thread)
1289 (set_sig_thread_cmd): Use the lwpid field of ptids to
1290 store/extract thread ids instead of the tid field.
1291 * i386gnu-nat.c (gnu_fetch_registers): Adjust.
1293 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
1295 * infcmd.c (default_print_one_register_info): Add detection of
1296 optimized out values.
1297 (default_print_registers_info): Switch to using
1298 get_frame_register_value.
1300 2013-09-18 Markus Metzger <markus.t.metzger@intel.com>
1302 * infrun.c (handle_inferior_event): Check if we know the
1303 function start address before setting a resume breakpoint.
1305 2013-09-18 Pedro Alves <palves@redhat.com>
1307 * gnu-nat.c (set_sig_thread_cmd): Compare the thread's ptid to
1308 minus_one_ptid instead of looking at the ptid's tid field and
1309 comparing that to -1.
1311 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
1313 * main.h (get_gdb_program_name): Remove extra whitespace.
1315 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
1317 * main.h (get_gdb_program_name): Add declaration.
1318 * main.c (get_gdb_program_name): Add definition.
1320 2013-09-17 Doug Evans <dje@google.com>
1322 * dwarf2read.c: Move definitions of complaint functions to after
1323 forward declarations of local functions.
1325 2013-09-17 Muhammad Waqas <mwaqas@codesourcery.com>
1326 Pedro Alves <palves@redhat.com>
1329 * breakpoint.c (remove_threaded_breakpoints): New function.
1330 (_initialize_breakpoint): Attach remove_threaded_breakpoints
1331 as thread_exit observer.
1333 2013-09-17 Pedro Alves <palves@redhat.com>
1336 * ada-tasks.c (task_command_1): Adjust call to print_stack_frame.
1337 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
1338 * corelow.c (core_open):
1339 * frame.h (print_stack_frame, print_frame_info): New
1340 'set_current_sal' parameter.
1341 * infcmd.c (finish_command, kill_command): Adjust call to
1343 * inferior.c (inferior_command): Likewise.
1344 * infrun.c (normal_stop): Likewise.
1345 * linux-fork.c (linux_fork_context): Likewise.
1346 * record-full.c (record_full_goto_entry, record_full_restore):
1348 * remote-mips.c (common_open): Likewise.
1349 * stack.c (print_stack_frame): New 'set_current_sal' parameter.
1351 (print_frame_info): New 'set_current_sal' parameter. Set the last
1352 displayed sal depending on the new paremeter instead of looking at
1354 (backtrace_command_1, select_and_print_frame, frame_command)
1355 (current_frame_command, up_command, down_command): Adjust call to
1357 * thread.c (print_thread_info, restore_selected_frame)
1358 (do_captured_thread_select): Adjust call to print_stack_frame.
1359 * tracepoint.c (tfind_1): Likewise.
1360 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
1361 (mi_cmd_stack_info_frame): Likewise.
1362 * mi/mi-interp.c (mi_on_normal_stop): Likewise.
1363 * mi/mi-main.c (mi_cmd_exec_return, mi_cmd_trace_find): Likewise.
1365 2013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1367 * value.c (isvoid_internal_fn): Replace "parameter" with
1370 2013-09-16 Stan Shebs <stan@codesourcery.com>
1372 * README: Update references to writing code for GDB.
1373 * configure.ac (build_warnings): Remove obsolete comment.
1374 * configure: Regenerate.
1375 * gdbarch.sh: Remove references to gdbint.texinfo.
1376 * gdbarch.h: Regenerate.
1377 * gdbtypes.c (objfile_type): Remove comments referencing internals
1380 2013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1382 * NEWS: Mention new convenience function $_isvoid.
1383 * value.c (isvoid_internal_fn): New function.
1384 (_initialize_values): Add new convenience function $_isvoid.
1386 2013-09-16 Pierre Muller <muller@sourceware.org>
1388 * arm-linux-tdep.c: Add "elf/common.h" header.
1389 Remove AT_HWCAP macro definintion as it is provided in
1391 * s390-tdep.c: Remove system header <elf.h>
1392 Add "elf/common.h" header for AT_HWCAP definition.
1393 (s390_core_read_description): Use correct CORE_ADDR
1394 for hwcap local variable used as third parameter
1395 of function target_auxv_search.
1397 2013-09-14 Pierre Muller <muller@sourceware.org>
1398 Tom Tromey <tromey@redhat.com>
1399 Pedro Alves <palves@redhat.com>
1401 * common/filestuff.c (gdb_fopen_cloexec): Do not try to use "e"
1402 mode if operating system doesn't know O_CLOEXEC.
1404 2013-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1407 * symfile.c (reread_symbols): Move variable obfd_filename to a more
1410 2013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
1412 * NEWS: Mention TDB support.
1413 * features/s390-tdb.xml: New file.
1414 * features/s390-te-linux64.xml: New file.
1415 * features/s390x-te-linux64.xml: New file.
1416 * features/Makefile (WHICH): Add new tdescs above.
1417 (s390-te-linux64-expedite): Set.
1418 (s390x-te-linux64-expedite): Set.
1419 * features/s390-te-linux64.c: New file (generated).
1420 * features/s390x-te-linux64.c: New file (generated).
1421 * regformats/s390-te-linux64.dat: New file (generated).
1422 * regformats/s390x-te-linux64.dat: New file (generated).
1423 * s390-tdep.h (HWCAP_S390_HIGH_GPRS): Define.
1424 (HWCAP_S390_TE): Likewise.
1425 (S390_TDB_DWORD0_REGNUM): Likewise.
1426 (S390_TDB_DWORD0_REGNUM): Likewise.
1427 (S390_TDB_ABORT_CODE_REGNUM): Likewise.
1428 (S390_TDB_CONFLICT_TOKEN_REGNUM): Likewise.
1429 (S390_TDB_ATIA_REGNUM): Likewise.
1430 (S390_TDB_R0_REGNUM): Likewise.
1431 (S390_TDB_R1_REGNUM): Likewise.
1432 (S390_TDB_R2_REGNUM): Likewise.
1433 (S390_TDB_R3_REGNUM): Likewise.
1434 (S390_TDB_R4_REGNUM): Likewise.
1435 (S390_TDB_R5_REGNUM): Likewise.
1436 (S390_TDB_R6_REGNUM): Likewise.
1437 (S390_TDB_R7_REGNUM): Likewise.
1438 (S390_TDB_R8_REGNUM): Likewise.
1439 (S390_TDB_R9_REGNUM): Likewise.
1440 (S390_TDB_R10_REGNUM): Likewise.
1441 (S390_TDB_R11_REGNUM): Likewise.
1442 (S390_TDB_R12_REGNUM): Likewise.
1443 (S390_TDB_R13_REGNUM): Likewise.
1444 (S390_TDB_R14_REGNUM): Likewise.
1445 (S390_TDB_R15_REGNUM): Likewise.
1446 (S390_NUM_REGS): Increase.
1447 (S390_IS_TDBREGSET_REGNUM): New macro.
1448 (s390_regmap_tdb): Declare.
1449 (s390_sizeof_tdbregset): Define.
1450 (tdesc_s390_te_linux64): Declare.
1451 (tdesc_s390x_te_linux64): Likewise.
1452 * s390-tdep.c: Add includes for "auxv.h", <elf.h>,
1453 "features/s390-te-linux64.c", and "features/s390x-te-linux64.c".
1454 (s390_regmap_tdb): New regmap.
1455 (s390_supply_tdb_regset): New function.
1456 (s390_tdb_regset): New regset.
1457 (s390_linux64v2_regset_sections): Add TDB regset to list.
1458 (s390x_linux64v2_regset_sections): Likewise.
1459 (s390_regset_from_core_section): Recognize TDB core note section.
1460 (s390_core_read_description): If HWCAP indicates TE support,
1461 select tdesc_s390_te_linux64 or tdesc_s390_s390x_te_linux64.
1462 (s390_gdbarch_init): Handle TDB regset.
1463 (_initialize_s390_tdep): Initialize new tdescs.
1464 * s390-nat.c (HWCAP_S390_HIGH_GPRS): Remove define.
1465 (have_regset_tdb): New variable.
1466 (s390_native_supply): Support register invalidation.
1467 (fetch_regset): Invalidate registers if ptrace yields ENODATA.
1468 (check_regset): Treat ENODATA as "regset exists".
1469 (s390_linux_fetch_inferior_registers): Add TDB.
1470 (s390_read_description): Check for TDB existence and select
1472 * gdbserver/Makefile.in (clean): Add removal of new makefile
1474 (s390-te-linux64.c): New makefile target.
1475 (s390x-te-linux64.c): Likewise.
1476 * gdbserver/configure.srv (srv_regobj): Append new objects
1477 s390-te-linux64.o and s390x-te-linux64.o.
1478 (srv_xmlfiles): Append new files s390-te-linux64.xml,
1479 s390x-te-linux64.xml, and s390-tdb.xml.
1480 * gdbserver/linux-s390-low.c (init_registers_s390_te_linux64): New
1482 (tdesc_s390_te_linux64): Likewise.
1483 (init_registers_s390x_te_linux64): Likewise.
1484 (tdesc_s390x_te_linux64): Likewise.
1485 (s390_check_regset): Treat ENODATA as "regset exists".
1486 (s390_arch_setup): Add TDB regset support.
1487 (initialize_low_arch): Initialize registers for new tdescs.
1489 2013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
1491 * s390-tdep.h (S390_IS_GREGSET_REGNUM): New macro.
1492 (S390_IS_FPREGSET_REGNUM): New macro.
1493 * s390-tdep.c (s390_dwarf_regmap): Make const.
1494 (regnum_is_gpr_full): New function for replacing repeated code.
1495 (s390_pseudo_register_name): Use it.
1496 (s390_pseudo_register_type): Likewise.
1497 (s390_pseudo_register_read): Likewise.
1498 (s390_pseudo_register_write): Likewise.
1499 (s390_unwind_pseudo_register): Likewise.
1500 (s390_regmap_gregset): New format for regmap.
1501 (s390x_regmap_gregset): Likewise.
1502 (s390_regmap_fpregset): Likewise.
1503 (s390_regmap_upper): Likewise.
1504 (s390_regmap_last_break): Likewise.
1505 (s390_regmap_system_call): Likewise.
1506 (s390_supply_regset): Adjust to new regmap format.
1507 (s390_collect_regset): Likewise.
1508 * s390-nat.c (s390_native_supply): Adjust to new regmap format.
1509 (s390_native_collect): Likewise.
1510 (supply_gregset): Likewise.
1511 (fill_gregset): Likewise.
1512 (supply_fpregset): Likewise.
1513 (fill_fpregset): Likewise.
1514 (fetch_regset): Likewise.
1515 (store_regset): Likewise.
1516 (s390_linux_fetch_inferior_registers): Likewise.
1517 (s390_linux_fetch_inferior_registers): Likewise.
1519 2013-09-12 Andrew Pinski <apinski@cavium.com>
1521 * aarch64-linux-nat.c (aarch64_linux_set_debug_regs): Zero out regs.
1523 2013-09-10 Andreas Arnez <arnez@linux.vnet.ibm.com>
1525 * config/s390/s390.mh (NATDEPFILES): Add linux-waitpid.o.
1527 2013-09-09 Andrew Burgess <aburgess@broadcom.com>
1529 * top.c (quit_confirm): Remove use of deprecated_init_ui_hook.
1531 2013-09-06 Pedro Alves <palves@redhat.com>
1533 * remote-sim.c (dump_mem, gdbsim_fetch_register)
1534 (gdbsim_store_register, gdbsim_kill, gdbsim_load)
1535 (gdbsim_create_inferior, gdbsim_open, gdbsim_close)
1536 (gdbsim_detach, gdbsim_resume_inferior, gdbsim_wait)
1537 (gdbsim_files_info, gdbsim_mourn_inferior): Send debug output to
1540 2013-09-06 Pedro Alves <palves@redhat.com>
1542 * remote-sim.c (dump_mem): Constify buf parameter.
1543 gdbsim_xfer_inferior_memory): Rename to ...
1544 (gdbsim_xfer_memory): ... this. Adjust interface as
1545 target_xfer_partial helper.
1546 (gdbsim_xfer_partial): New function.
1547 (init_gdbsim_ops): Don't install a deprecated_xfer_memory hook.
1548 Install a to_xfer_partial hook. Send output to gdb_stdlog.
1550 2013-09-06 Pedro Alves <palves@redhat.com>
1552 * remote-sim.c (gdbsim_xfer_inferior_memory): Use
1553 host_address_to_string, and send debug output to gdb_stdlog.
1555 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
1557 * Makefile.in (ALL_TARGET_OBS): Add cris-linux-tdep.o.
1558 * configure.tgt: Add cris-linux-tdep.o and linux-tdep.o to
1559 gdb_target_obs for cris target.
1560 * cris-tdep.c (struct gdbarch_tdep): Move to cris-tdep.h.
1561 (cris_gdbarch_init): Move calls to
1562 set_gdbarch_fetch_tls_load_module_address and
1563 set_solib_svr4_fetch_link_map_offsets to cris-linux-tdep.c.
1564 Add call to gdbarch_init_osabi.
1565 * cris-linux-tdep.c: New file.
1566 * cris-tdep.h: New file.
1568 2013-09-06 Andrew Burgess <aburgess@broadcom.com>
1570 * tui/tui-io.c (tui_initialize_io): Remove legacy comment referring
1571 to deprecated_init_ui_hook.
1573 2013-09-06 Andrew Burgess <aburgess@broadcom.com>
1575 * cli/cli-interp.c (_initialize_cli_interp): Add a
1576 command_loop_proc to interp_procs.
1577 * event-top.c (cli_command_loop): Change signature to match
1578 interp_command_loop_ftype.
1579 * event-top.h (cli_command_loop): Same.
1580 * interps.c (interp_new): Require every interpreter to have a
1582 (current_interp_command_loop): Just call the command_loop_proc on
1583 the current interpreter.
1584 * tui/tui-interp.c (_initialize_tui_interp): Add a
1585 command_loop_proc to interp_procs.
1587 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
1589 * cris-tdep.c (cris_gdbarch_init): Add call to
1590 get_gdbarch_fetch_tls_load_module_address.
1592 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
1594 * cris-tdep.c (cris_elf_greg_t): Rename from elf_greg_t.
1595 (cris_elf_gregset_t): Rename from elf_gregset_t.
1596 (crisv32_elf_gregset_t): Adjust.
1597 (cris_supply_gregset, fetch_core_registers): Adjust.
1599 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
1601 * cris-tdep.c (elf_greg_t): Change typedef to unsigned char[4]
1603 2013-09-05 Andrew Burgess <aburgess@broadcom.com>
1605 * defs.h (deprecated_command_loop_hook): Remove, including
1606 references in comments.
1607 * interps.c (current_interp_command_loop): No longer use
1608 deprecated_command_loop_hook.
1609 (clear_interpreter_hooks): Remove deprecated_command_loop_hook
1611 * top.c (deprecated_command_loop_hook): Remove.
1613 2013-09-05 Pedro Alves <palves@redhat.com>
1615 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): 'dwarf_regnum'
1616 local is now int instead of ULONGEST. Print it with %d
1617 instead of paddress.
1619 2013-09-05 Tristan Gingold <gingold@adacore.com>
1621 * MAINTAINERS: Remove avr maintainership.
1623 2013-09-05 Pedro Alves <palves@redhat.com>
1625 * findvar.c (value_of_register): Rework in terms of
1626 value_of_register_lazy.
1628 2013-09-05 Muhammad Bilal <mbilal@codesourcery.com>
1630 * symfile.c (add_symbol_file_command): Remove trailing
1631 whitespaces and blank line after comment.
1633 2013-09-05 Pedro Alves <palves@redhat.com>
1635 * tui/tui-regs.c (tui_register_format): Don't look at the
1636 register's name here. Return string representing register
1637 value instead of storing it in the data element.
1638 (tui_get_register): Compare register string representations
1639 instead of register value states and contents.
1641 2013-09-05 Pedro Alves <palves@redhat.com>
1644 * tui/tui-regs.c (tui_show_registers): Show registers of the
1645 selected frame, not the current frame.
1647 2013-09-05 Ricard Wanderlof <ricardw@axis.com>
1649 * MAINTAINERS (Write After Approval): Add myself to the list.
1651 2013-09-04 Doug Evans <dje@google.com>
1653 * dwarf2read.c (queue_and_load_all_dwo_tus): New function.
1654 (queue_and_load_dwo_tu): New function.
1655 (lookup_dwo_signatured_type): Set per_cu.tu_read.
1656 (maybe_queue_comp_unit): Rename this_cu argument to dependent_cu.
1657 Make dependent_cu optional.
1658 (dw2_do_instantiate_symtab): If we just loaded a CU from a DWO,
1659 and an older .gdb_index is in use, queue and load all its TUs too.
1661 2013-09-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1663 Code cleanup: Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH.
1664 * cli/cli-cmds.c (find_and_open_script): Add OPF_RETURN_REALPATH to
1665 variable search_flags.
1666 * defs.h (OPF_DISABLE_REALPATH): Rename to ...
1667 (OPF_RETURN_REALPATH): ... here.
1668 * dwarf2read.c (try_open_dwop_file): Set OPF_RETURN_REALPATH for flags.
1669 * exec.c (exec_file_attach): Remove OPF_DISABLE_REALPATH from openp
1671 * nto-tdep.c (nto_find_and_open_solib): Add OPF_RETURN_REALPATH for
1673 * solib.c (solib_find): Likewise. Four times.
1674 * source.c (openp): Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH
1675 in the function comment and for the realpath_fptr variable.
1676 (source_full_path_of): Add OPF_RETURN_REALPATH for openp call.
1677 (find_and_open_source): Likewise. Twice.
1678 * symfile.c (symfile_bfd_open): Likewise, also twice.
1680 2013-09-04 Doug Evans <dje@google.com>
1682 * progspace.c (save_current_space_and_thread): Remove unnecessary
1683 call to save_current_inferior.
1685 2013-09-04 Andrew Burgess <aburgess@broadcom.com>
1687 * sh64-tdep.c (sh64_do_register): Return after printing message
1688 about unavailable register contents.
1690 2013-09-04 Muhammad Bilal <mbilal@codesourcery.com>
1691 Pedro Alves <palves@redhat.com>
1693 * symfile.c (add_symbol_file_command): Error out on unknown
1694 option. Handle EXPECTING_SEC_ADDR/EXPECTING_SEC_NAME before '-'
1695 options and collapse into single conditional branch.
1697 2013-09-03 Luis Machado <lgustavo@codesourcery.com>
1699 * inf-child.c (inf_child_follow_fork): New parameter
1701 * inf-ptrace.c (inf_ptrace_follow_fork): Likewise.
1702 * inf-ttrace.c (inf_ttrace_follow_fork): Likewise.
1703 * inferior.h (detach_fork): Remove.
1704 * infrun.c (detach_fork): Adjust comment and make it
1706 (follow_fork): Pass detach_fork parameter to
1708 * linux-nat.c (linux_child_follow_fork): New parameter
1710 * target.c (target_follow_fork): New parameter detach_fork.
1711 Pass detach_fork as parameter and print its value.
1712 * target.h (struct target_ops) <to_follow_fork>: New int
1714 (target_follow_fork): New parameter detach_fork.
1716 2013-09-03 Joel Brobecker <brobecker@adacore.com>
1718 * solib-ia64-hpux.c (ia64_hpux_relocate_section_addresses):
1719 Replace sec->bfd by sec->the_bfd_section->owner.
1721 2013-09-03 Yao Qi <yao@codesourcery.com>
1723 * linux-tdep.c (linux_is_uclinux): New function. Code moved
1724 from linux_has_shared_address_space.
1725 (linux_has_shared_address_space): Call linux_is_uclinux.
1726 * linux-tdep.h (linux_is_uclinux): Declare.
1727 * m68klinux-tdep.c (m68k_linux_get_sigtramp_info): Call
1730 2013-09-03 Yao Qi <yao@codesourcery.com>
1732 * config/djgpp/fnchange.lst: Remove entry of
1733 i386-interix-nat.c and i386-interix-tdep.c.
1734 * configure.ac: Remove '*-*-interix*'.
1735 * configure: Re-generated.
1736 * defs.h (enum gdb_osabi): Remove GDB_OSABI_INTERIX.
1737 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Remove
1739 * osabi.c (gdb_osabi_names): Remove "Interix".
1741 2013-09-03 Yao Qi <yao@codesourcery.com>
1743 * arch-utils.c: Fix typo in the comment to gdbarch_update_p.
1745 2013-09-02 Markus Metzger <markus.t.metzger@intel.com>
1747 * record.h (record_print_flag) <record_print_src_line,
1748 record_print_insn_range>: Rename into ...
1749 (record_print_flag) <record_print_src_line,
1750 record_print_insn_range>: ... this. Update all users.
1752 2013-09-02 Pierre Muller <muller@sourceware.org>
1754 * windows-nat.c (windows_xfer_memory): Handle ERROR_PARTIAL_COPY
1757 2013-09-02 Pierre Muller <muller@sourceware.org>
1759 * windows-nat.c (windows_xfer_memory): Fix compilation failure
1760 by use of plongest function.
1762 2013-09-02 Tristan Gingold <gingold@adacore.com>
1764 * NEWS: Add entry mentioning support for native Windows x64
1767 * amd64-windows-tdep.c: #include "objfiles.h", "frame-unwind.h",
1768 "coff/internal.h", "coff/i386.h", "coff/pe.h" and "libcoff.h".
1769 (struct amd64_windows_frame_cache): New struct.
1770 (amd64_windows_w2gdb_regnum): New global.
1771 (pc_in_range, amd64_windows_frame_decode_epilogue)
1772 (amd64_windows_frame_decode_insns, amd64_windows_find_unwind_info)
1773 (amd64_windows_frame_cache, amd64_windows_frame_prev_register)
1774 (amd64_windows_frame_this_id): New functions.
1775 (amd64_windows_frame_unwind): New static global.
1776 (amd64_windows_skip_prologue): New function.
1777 (amd64_windows_init_abi): Call frame_unwind_prepend_unwinder
1778 with amd64_windows_frame_unwind. Call set_gdbarch_skip_prologue
1779 with amd64_windows_skip_prologue.
1781 2013-08-30 Joel Brobecker <brobecker@adacore.com>
1785 2013-08-30 Pedro Alves <palves@redhat.com>
1787 * mi/mi-main.c (mi_cmd_trace_find): Use LOC_AND_ADDRESS instead of
1790 2013-08-30 Pedro Alves <palves@redhat.com>
1792 * thread.c (restore_selected_frame): Use SRC_AND_LOC, and change
1795 2013-08-30 Pedro Alves <palves@redhat.com>
1797 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
1798 Adjust arguments to print_stack_frame.
1800 2013-08-30 Pedro Alves <palves@redhat.com>
1802 * ada-tasks.c (task_command_1): Write SRC_AND_LOC instead '1'.
1804 2013-08-30 Pedro Alves <palves@redhat.com>
1806 * frame.h (show_and_print_stack_frame): Delete declaration.
1808 2013-08-30 Phil Muldoon <pmuldoon@redhat.com>
1812 * python/py-arch.c (ARCHPY_REQUIRE_VALID): New macro.
1813 (archpy_name): Check for valid architecture.
1814 (archpy_disassemble): Ditto.
1816 2013-08-29 Joel Brobecker <brobecker@adacore.com>
1818 * rs6000-nat.c (rs6000_ptrace32): Cast "addr" to "uintptr_t"
1819 instead of "long long" in call to ptrace64.
1821 2013-08-29 Andrew Burgess <aburgess@broadcom.com>
1823 * mi/mi-interp.c (mi_command_loop): Change signature to match
1824 interp_command_loop_ftype.
1825 (mi1_command_loop): Remove.
1826 (mi2_command_loop): Remove.
1827 (mi3_command_loop): Remove.
1828 (mi_interpreter_resume): Remove setting of
1829 deprecated_command_loop_hook.
1830 (_initialize_mi_interp): Set mi_command_loop as the command loop
1833 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
1835 * valops.c (do_search_struct_field): Pass v2 instead of base_type to
1838 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
1840 * value.c (allocate_value_contents): Make static.
1841 * value.h (allocate_value_contents): Remove prototype.
1843 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
1845 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use value_at_lazy instead
1846 of assembling value via allocate_value_lazy and attribute setter.
1847 * findvar.c (default_read_var_value): Use value_at_lazy instead of
1848 assembling value via allocate_value_lazy and attribute setter.
1849 * valops.c (do_search_struct_field): Use value_at_lazy instead of
1850 assembling value via allocate_value_lazy and attribute setter.
1852 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
1854 * value.c (value_from_contents_and_address): Replace allocate_value and
1855 memcpy with value_from_contents.
1857 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
1859 * python/py-framefilter.c (py_print_frame): Remove usage of
1860 PyString_AsString. Use python_string_to_host_string instead.
1861 Refactor function to work with a string as a new allocation
1862 instead of a pointer.
1863 (py_print_frame): Ditto.
1864 * python/lib/gdb/frames.py (return_list): Cain iterators together
1865 instead of adding them as a list.
1866 (_sort_list): Call return_list, and remove duplicate code.
1867 (execute_frame_filters): Convert iterator to a list with list().
1868 * python/lib/gdb/command/frame_filters.py
1869 (SetFrameFilterPriority._set_filter_priority): Convert priority
1870 attribute to an integer.
1871 * python/lib/gdb/FrameIterator.py (FrameIterator.next): Define
1872 wrapper function __next__.
1873 * python/lib/gdb/FrameDecorator.py: If basestring not defined,
1876 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
1879 * python/py-framefilter.c (apply_frame_filter): Check
1880 gdb_python_initialized. Exit if the Python frame-filter code
1881 cannot be initialized.
1883 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
1886 * top.c (print_gdb_version): Remove erroneous newline after help
1889 2013-08-29 Yao Qi <yao@codesourcery.com>
1891 * varobj.c (install_dynamic_child): Remove trailing space.
1892 Add one blank line after variable declaration.
1894 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1897 * corefile.c (get_exec_file): Use exec_filename.
1898 * defs.h (OPF_DISABLE_REALPATH): New definition. Add new comment.
1899 * exec.c (exec_close): Free EXEC_FILENAME.
1900 (exec_file_attach): New variable canonical_pathname. Use
1901 OPF_DISABLE_REALPATH. Call gdb_realpath explicitly. Set
1903 * exec.h (exec_filename): New.
1904 * inferior.c (print_inferior, inferior_command): Use
1905 PSPACE_EXEC_FILENAME.
1906 * mi/mi-main.c (print_one_inferior): Likewise.
1907 * progspace.c (clone_program_space, print_program_space): Likewise.
1908 * progspace.h (struct program_space): New field pspace_exec_filename.
1909 * source.c (openp): Describe OPF_DISABLE_REALPATH. New variable
1910 realpath_fptr, initialize it from OPF_DISABLE_REALPATH, use it.
1912 2013-08-28 Will Newton <will.newton@linaro.org>
1914 * common/linux-ptrace.c: Include stdint.h unconditionally.
1916 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1919 * nto-tdep.c (nto_find_and_open_solib): Use OPF_TRY_CWD_FIRST.
1921 2013-08-28 Yao Qi <yao@codesourcery.com>
1922 Pedro Alves <palves@redhat.com>
1924 * event-top.c (gdb_setup_readline): Call stderr_fileopen
1925 instead of stdio_fileopen.
1926 * main.c (captured_main) [__MINGW32__]: Set stderr unbuffered.
1927 .Call stderr_fileopen instead of stdio_fileopen.
1928 * ui-file.c [__MINGW32__] (stderr_file_write): New function.
1929 [__MINGW32__] (stderr_file_fputs): New function.
1930 (stderr_fileopen): New function.
1931 * ui-file.h (stderr_fileopen): Declare.
1933 2013-08-27 Doug Evans <dje@google.com>
1935 * dwarf2read.c (struct dwarf2_cu): Tweak comment.
1936 (struct dwarf2_per_cu_data): Ditto.
1937 (maybe_queue_comp_unit): Delete forward decl. Add comment.
1938 (process_imported_unit_die): Ditto.
1939 (follow_die_sig_1): Simplify assert.
1941 2013-08-27 Pedro Alves <palves@redhat.com>
1943 * windows-nat.c (windows_xfer_memory): Adjust prototype to follow
1944 xfer_partial's interface. Return TARGET_XFER_E_IO on error.
1945 (windows_xfer_partial): Defer TARGET_OBJECT_MEMORY handling to
1946 windows_xfer_memory directly.
1947 (init_windows_ops): Don't install a deprecated_xfer_memory method.
1949 2013-08-27 Pedro Alves <palves@redhat.com>
1951 * darwin-nat.c (darwin_xfer_memory): Delete.
1952 (_initialize_darwin_inferior): Don't install a
1953 deprecated_xfer_memory method.
1955 2013-08-27 Pedro Alves <pedro@codesourcery.com>
1956 Yao Qi <yao@codesourcery.com>
1958 * mi/mi-cmd-stack.c (list_args_or_locals): Adjust prototype.
1959 (parse_no_frames_option): Remove.
1960 (mi_cmd_stack_list_locals): Handle --skip-unavailable.
1961 (mi_cmd_stack_list_args): Adjust.
1962 (mi_cmd_stack_list_variables): Handle --skip-unavailable.
1963 (list_arg_or_local): Add new parameter 'skip_unavailable'. Return
1964 early if SKIP_UNAVAILABLE is true and ARG->val is unavailable.
1966 (list_args_or_locals): New parameter 'skip_unavailable'.
1968 * valprint.c (scalar_type_p): Rename to ...
1969 (val_print_scalar_type_p): ... this. Make extern.
1970 (val_print, value_check_printable): Adjust.
1971 * valprint.h (val_print_scalar_type_p): Declare.
1972 * value.c (value_entirely_unavailable): New function.
1973 * value.h (value_entirely_unavailable): Declare.
1975 * NEWS: Mention the new option "--skip-unavailable" to MI
1976 commands '-stack-list-locals', '-stack-list-arguments' and
1977 '-stack-list-variables'.
1979 2013-08-27 Yao Qi <yao@codesourcery.com>
1981 * mi/mi-cmd-stack.c (parse_no_frames_option): Remove.
1982 (mi_cmd_stack_list_args): Use mi_getopt_silent to handle
1984 * mi/mi-getopt.c (mi_getopt): Remove.
1985 (mi_getopt_1): Renamed from mi_getopt. Add one parameter
1987 (mi_getopt): Call mi_getopt_1.
1988 (mi_getopt_silent): New.
1989 * mi/mi-getopt.h (mi_getopt_silent): Declare.
1991 2013-08-26 Doug Evans <dje@google.com>
1994 * dwarf2read.c (dw2_dump): Print some minimal information indicating
1995 .gdb_index is in use.
1996 * symfile.c (reread_symbols): Reset objfile->sf.
1998 * NEWS: Document "mt print objfiles" now takes optional regexp.
1999 * symmisc.c (maintenance_print_objfiles): Argument is now an optional
2000 regexp of objfiles to print.
2001 (_initialize_symmisc): Update doc string for "mt print objfiles".
2003 * dwarf2read.c (write_psymtabs_to_index): Move error checks ahead of
2004 missing debug info checks.
2006 2013-08-26 Raunaq Bathija <raunaq12@in.ibm.com>
2007 Ulrich Weigand <uweigand@de.ibm.com>
2009 * xcoffread.c (arrange_linetable): Add fix to correctly handle
2010 line tables generated by XLC compiled binaries.
2012 2013-08-23 Doug Evans <dje@google.com>
2014 * symmisc.c (dump_symtab): Delete prototype.
2015 (dump_msymbols, dump_objfile): Ditto.
2016 (maintenance_info_symtabs): Mark as dont_repeat.
2017 (_initialize_symmisc): Improve doc string for "mt info symtabs".
2019 * elfread.c (elf_symfile_read): Move "Done reading minimal symbols"
2020 debugging printf to better location.
2022 2013-08-23 Pedro Alves <palves@redhat.com>
2024 * target.c (target_read_live_memory): Change type of 'ret' local
2027 2013-08-23 Pedro Alves <palves@redhat.com>
2029 * remote.c (remote_write_bytes_aux, remote_write_bytes)
2030 (remote_read_bytes): Change return type to LONGEST, and adjust to
2031 return a target_xfer_error on error.
2032 (remote_xfer_memory): Delete.
2033 (remote_flash_write): Change type of 'ret' local to LONGEST.
2034 (remote_xfer_partial, remote_xfer_partial): Adjust.
2035 (init_remote_ops): Don't install a deprecated_xfer_memory hook.
2037 2013-08-23 Pierre Muller <muller@sourceware.org>
2039 ARI fix: Push # directives to start of line.
2040 * rs6000-nat.c (rs6000_ptrace32, rs6000_ptrace64): Rule applied.
2042 2013-08-12 Muhammad Waqas <mwaqas@codesourcery.com>
2045 * breakpoint.c (enable_command, disable_command): Iterate over
2046 all specified breakpoint locations.
2048 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
2050 * common/linux-ptrace.c (linux_fork_to_function): Push #
2051 directives to the start of the line.
2052 (linux_check_ptrace_features): Fix warning message to use
2055 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
2057 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-nat.h and
2058 nat/linux-waitpid.h.
2059 (linux-waitpid.o): New object file rule.
2060 * common/linux-ptrace.c: Include nat/linux-waitpid.h.
2061 (current_ptrace_options): Moved from linux-nat.c.
2062 (linux_ptrace_test_ret_to_nx): Use type casts for ptrace
2064 (linux_fork_to_function): New function.
2065 (linux_grandchild_function): Likewise.
2066 (linux_child_function): Likewise.
2067 (linux_check_ptrace_features): New function, heavily
2068 based on linux-nat.c:linux_test_for_tracefork.
2069 (linux_enable_event_reporting): New function.
2070 (ptrace_supports_feature): Likewise.
2071 (linux_supports_tracefork): Likewise.
2072 (linux_supports_traceclone): Likewise.
2073 (linux_supports_tracevforkdone): Likewise.
2074 (linux_supports_tracesysgood): Likewise.
2075 * common/linux-ptrace.h (HAS_NOMMU): Moved from
2076 gdbserver/linux-low.c.
2077 (linux_enable_event_reporting): New declaration.
2078 (linux_supports_tracefork): Likewise.
2079 (linux_supports_traceclone): Likewise.
2080 (linux_supports_tracevforkdone): Likewise.
2081 (linux_supports_tracesysgood): Likewise.
2082 * config.in (PTRACE_TYPE_ARG4): Regenerate.
2083 * config/aarch64/linux.mh (NATDEPFILES): Add linux-waitpid.o.
2084 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
2085 * config/arm/linux.mh (NATDEPFILES): Likewise.
2086 * config/i386/linux.mh (NATDEPFILES): Likewise.
2087 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2088 * config/ia64/linux.mh (NATDEPFILES): Likewise.
2089 * config/m32r/linux.mh (NATDEPFILES): Likewise.
2090 * config/m68k/linux.mh (NATDEPFILES): Likewise.
2091 * config/mips/linux.mh (NATDEPFILES): Likewise.
2092 * config/pa/linux.mh (NATDEPFILES): Likewise..
2093 * config/powerpc/linux.mh (NATDEPFILES): Likewise..
2094 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
2095 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
2096 * config/sparc/linux.mh (NATDEPFILES): Likewise.
2097 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
2098 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
2099 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
2100 * configure.ac (AC_CACHE_CHECK): Add void * to the list of
2101 ptrace's 4th argument's types.
2102 Check the type of PTRACE_TYPE_ARG4.
2103 * configure: Regenerate.
2104 * linux-nat.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
2105 (SYSCALL_SIGTRAP): Moved to nat/linux-nat.h.
2106 (linux_supports_tracefork_flag): Remove.
2107 (linux_supports_tracesysgood_flag): Likewise.
2108 (linux_supports_tracevforkdone_flag): Likewise.
2109 (current_ptrace_options): Moved to
2110 common/linux-ptrace.c.
2111 (linux_tracefork_child): Remove.
2112 (my_waitpid): Remove.
2113 (linux_test_for_tracefork): Renamed to
2114 linux_check_ptrace_features and moved to common/linux-ptrace.c.
2115 (linux_test_for_tracesysgood): Remove.
2116 (linux_supports_tracesysgood): Remove.
2117 (linux_supports_tracefork): Remove.
2118 (linux_supports_tracevforkdone): Remove.
2119 (linux_enable_tracesysgood): Remove.
2120 (linux_enable_event_reporting): Remove.
2121 (linux_init_ptrace): New function.
2122 (linux_child_post_attach): Call linux_init_ptrace.
2123 (linux_child_post_startup_inferior): Call linux_init_ptrace.
2124 (linux_child_follow_fork): Call linux_supports_tracefork
2125 and linux_supports_tracevforkdone.
2126 (linux_child_insert_fork_catchpoint): Call
2127 linux_supports_tracefork.
2128 (linux_child_insert_vfork_catchpoint): Likewise.
2129 (linux_child_set_syscall_catchpoint): Call
2130 linux_supports_tracesysgood.
2131 (lin_lwp_attach_lwp): Call linux_supports_tracefork.
2132 * nat/linux-nat.h: New file.
2133 * nat/linux-waitpid.c: New file.
2134 * nat/linux-waitpid.h: New file.
2136 2013-08-22 Samuel Bronson <naesten@gmail.com>
2138 ARM Linux support for `catch syscall'.
2139 * syscalls/arm-linux.py: New file.
2140 * syscalls/arm-linux.xml: Likewise.
2141 * arm-linux-tdep.c (arm_linux_get_syscall_number): New function.
2142 (arm_linux_init_abi): Register the new function and syscall xml file.
2143 * data-directory/Makefile.in: Install the new syscall xml file.
2144 * NEWS: Brag about this.
2146 2013-08-22 Pedro Alves <palves@redhat.com>
2149 * corefile.c (target_xfer_memory_error): New function.
2150 (memory_error): Defer EIO to target_memory_error.
2151 (read_memory): Use target_xfer_partial, and handle finer-grained
2153 * target.c (target_xfer_error_to_string): New function.
2154 (memory_xfer_partial_1): If memory is known to be
2155 unavailable, return TARGET_XFER_E_UNAVAILABLE instead of -1.
2156 (target_xfer_partial): Make extern.
2157 * target.h (enum target_xfer_error): New enum.
2158 (target_xfer_error_to_string): Declare function.
2159 (target_xfer_partial): Declare function.
2160 (struct target_ops) <xfer_partial>: Adjust describing comment.
2162 2013-08-22 Alan Modra <amodra@gmail.com>
2164 * configure.host: Support powerpc64le-linux and powerpcle-linux hosts.
2165 * configure.tgt: Likewise as targets.
2167 2013-08-20 Doug Evans <dje@google.com>
2169 * buildsym.c (subfile_stack): Move here from buildsym.h.
2170 (pending_macros): Ditto.
2171 (get_macro_table): New function.
2172 (buildsym_init): Initialize subfile_stack.
2173 * coffread.c (type_vector,type_vector_length): Moved here from
2175 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
2176 (coff_symtab_read): Use it.
2177 * dbxread.c (read_ofile_symtab): Delete init of subfile_stack.
2178 * dwarf2read.c (macro_start_file): Replace uses of pending_macros
2179 with call to get_macro_table.
2180 * stabsread.c (type_vector,type_vector_length): Moved here from
2182 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
2183 * buildsym.h (get_macro_table): Declare.
2185 2013-08-20 Tom Tromey <tromey@redhat.com>
2187 * dbxread.c (record_minimal_symbol): Make 'name' argument const.
2189 (read_dbx_dynamic_symtab): Make 'name' const. Remove casts.
2191 2013-08-20 Doug Evans <dje@google.com>
2193 * blockframe.c: Remove #include "psymtab.h".
2194 * cp-support.c: Ditto.
2198 2013-08-20 Tom Tromey <tromey@redhat.com>
2201 * exceptions.h (return_mask): Now an enum.
2202 (RETURN_MASK_QUIT, RETURN_MASK_ERROR, RETURN_MASK_ALL): Now
2205 2013-08-20 Tom Tromey <tromey@redhat.com>
2207 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
2209 * elfread.c (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
2210 (elf_gnu_ifunc_resolve_by_got): Use get_objfile_arch.
2211 * jit.c (jit_object_close_impl): Update.
2212 * jv-lang.c (get_dynamics_objfile): Update.
2213 * linespec.c (add_minsym): Use get_dynamics_objfile.
2214 * objfiles.c (get_objfile_bfd_data): Initialize 'gdbarch' field.
2215 (allocate_objfile): Don't initialize 'gdbarch' field.
2216 (get_objfile_arch): Update.
2217 * objfiles.h (struct objfile_per_bfd_storage) <gdbarch>: New field,
2219 (struct objfile) <gdbarch>: ... here. Remove.
2220 * stap-probe.c (stap_can_evaluate_probe_arguments): Use
2222 * symfile.c (init_entry_point_info): Use get_objfile_arch.
2224 2013-08-20 Alan Modra <amodra@gmail.com>
2226 * doublest.c (convert_floatformat_to_doublest): Use fmt->split_half
2227 for IBM long double nan and inf.
2228 (floatformat_is_negative, floatformat_classify,
2229 floatformat_mantissa): Similarly.
2230 (floatformat_ieee_single, floatformat_ieee_double,
2231 floatformat_ieee_quad, floatformat_arm_ext,
2232 floatformat_ia64_spill): Delete unused vars.
2233 (_initialize_doublest): Delete unused function.
2234 * gdbtypes.c (floatformats_ibm_long_double): Use new big- and
2235 little-endian variants of floatformat_ibm_long_double.
2237 2013-08-19 Luis Machado <lgustavo@codesourcery.com>
2239 * Makefile.in (SFILES): Remove common/target-common.c and
2240 add target/waitstatus.c.
2241 (HFILES_NO_SRCDIR): Remove common/target-common.h and add
2242 target/resume.h, target/wait.h and target/waitstatus.h.
2243 (COMMON_OBS): Remove target-common.o and add
2245 (target-common.o): Remove.
2246 (waitstatus.o): New target object file.
2247 * common/target-common.c: Move contents to
2248 target/waitstatus.c and remove.
2249 * common/target-common.h: Move contents to other files and
2251 (enum resume_kind: Move to target/resume.h.
2252 (TARGET_WNOHANG): Move to target/wait.h.
2253 (enum target_waitkind): Move to target/waitstatus.h.
2254 (struct target_waitstatus): Likewise.
2255 * target.h: Do not include target-common.h and
2256 include target/resume.h, target/wait.h and
2257 target/waitstatus.h.
2258 * target/resume.h: New file.
2259 * target/wait.h: New file.
2260 * target/waitstatus.h: New file.
2261 * target/waitstatus.c: New file.
2263 2013-08-19 Pedro Alves <palves@redhat.com>
2265 * linux-nat.c (linux_test_for_tracefork)
2266 (linux_test_for_tracesysgood, linux_child_follow_fork)
2267 (lin_lwp_attach_lwp, linux_nat_resume): Don't block child signals.
2268 (linux_nat_wait_1): Extend comment.
2269 (linux_async_pipe): Add comment.
2271 2013-08-15 Kevin Buettner <kevinb@redhat.com>
2273 * rl78-tdep.c (RL78_RAW_PC_REGNUM): New enum.
2274 (RL78_PC_REGNUM): Move to list of pseudo-register enums.
2275 (rl78_register_type, rl78_register_name, rl78_register_reggroup_p):
2276 Update to account for fact that PC is now a pseudo-register.
2277 (rl78_pseudo_register_write, rl78_pseudo_register_read): Add
2278 cases for RL78_PC_REGNUM.
2280 2013-08-15 Muhammad Bilal <mbilal@codesourcery.com>
2283 * top.c (quit_force): Skip writing history file
2284 if input is not from terminal.
2286 2013-08-14 Tom Tromey <tromey@redhat.com>
2288 * remote.c (struct remote_state) <echo_nextthread, nextthread,
2289 resultthreadlist>: New fields.
2290 (OPAQUETHREADBYTES, threadref, MAXTHREADLISTRESULTS): Move earlier.
2291 (remote_get_threadlist, remote_threadlist_iterator): Use
2292 new fields. Remove static variables.
2294 2013-08-14 Tom Tromey <tromey@redhat.com>
2296 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p,
2297 remote_watch_data_address>: New fields.
2298 (remote_stopped_by_watchpoint_p, remote_watch_data_address): Remove.
2299 (process_stop_reply, remote_wait_as)
2300 (remote_check_watch_resources, remote_stopped_data_address): Update.
2302 2013-08-14 Tom Tromey <tromey@redhat.com>
2304 * remote.c (struct remote_state) <async_client_callback,
2305 async_client_context>: New fields.
2306 (async_client_callback, async_client_context): Remove.
2307 (remote_async_serial_handler, remote_async): Update.
2309 2013-08-14 Tom Tromey <tromey@redhat.com>
2311 * remote.c (sizeof_pkt): Remove.
2312 (remote_trace_find): Use rs->buf_size, not sizeof_pkt.
2314 2013-08-14 Tom Tromey <tromey@redhat.com>
2316 * remote.c (struct remote_state) <use_threadinfo_query,
2317 use_threadextra_query>: New fields.
2318 (remote_threads_info, remote_threads_extra_info)
2319 (remote_open_1): Update.
2321 2013-08-14 Tom Tromey <tromey@redhat.com>
2323 * remote.c (struct remote_state) <finished_object,
2324 finished_annex, finished_offset>: New fields.
2325 (remote_read_qxfer): Use remote_state fields; remove static
2328 2013-08-14 Tom Tromey <tromey@redhat.com>
2330 * remote.c (struct remote_state) <last_sent_step>:
2332 (last_sent_step): Remove.
2333 (remote_resume, remote_wait_as): Update.
2335 2013-08-14 Tom Tromey <tromey@redhat.com>
2337 * remote.c (struct remote_state) <last_sent_signal>:
2339 (last_sent_signal): Remove.
2340 (new_remote_state, remote_resume, remote_wait_as): Update.
2342 2013-08-14 Tom Tromey <tromey@redhat.com>
2344 * remote.c (struct remote_state) <last_program_signals_packet>:
2346 (last_program_signals_packet): Remove.
2347 (remote_program_signals, remote_open_1): Update.
2349 2013-08-14 Tom Tromey <tromey@redhat.com>
2351 * remote.c (struct remote_state) <last_pass_packet>:
2353 (last_pass_packet): Remove.
2354 (remote_pass_signals, remote_open_1): Update.
2356 2013-08-14 Tom Tromey <tromey@redhat.com>
2358 * remote.c (struct remote_state) <remote_traceframe_number>:
2360 (remote_traceframe_number): Remove.
2361 (new_remote_state, remote_open_1, set_remote_traceframe)
2362 (remote_trace_find): Update.
2364 2013-08-14 Tom Tromey <tromey@redhat.com>
2366 * remote.c (struct remote_state) <general_thread, continue_thread>:
2368 (general_thread, continue_thread): Remove.
2369 (record_currthread, set_thread, set_general_process)
2370 (remote_open_1, extended_remote_attach_1, remote_wait_as)
2371 (extended_remote_mourn_1): Update.
2373 2013-08-14 Tom Tromey <tromey@redhat.com>
2375 * remote.c (struct remote_state) <remote_desc>: New field.
2376 (remote_desc): Remove.
2377 (remote_threads_info, remote_threads_extra_info, remote_close)
2378 (send_interrupt_sequence, remote_start_remote, remote_open_1)
2379 (readchar, remote_xfer_partial, remote_rcmd, packet_command)
2380 (remote_hostio_send_command, remote_file_put, remote_file_get)
2381 (remote_file_delete, remote_can_async_p, remote_is_async_p)
2382 (remote_async, remote_new_objfile, set_range_stepping): Update.
2384 2013-08-14 Tom Tromey <tromey@redhat.com>
2386 * remote.c (remote_state): Now a pointer.
2387 (get_remote_state_raw): Update.
2388 (new_remote_state): New function.
2389 (_initialize_remote): Use new_remote_state.
2391 2013-08-14 Tom Tromey <tromey@redhat.com>
2393 * remote.c (remote_protocol_features): Now const.
2395 2013-08-14 Tom Tromey <tromey@redhat.com>
2397 * remote.c (crc32_table, crc32): Remove.
2398 (remote_verify_memory): Use xcrc32.
2400 2013-08-13 Sergio Durigan Junior <sergiodj@redhat.com>
2402 * value.h (create_internalvar_type_lazy): Adjust prototype
2405 2013-08-13 Andrew Burgess <aburgess@broadcom.com>
2407 * common/format.c (parse_format_string): Don't allow '#' flag for
2408 pointer arguments in format string.
2410 2013-08-13 Pierre Muller <muller@sourceware.org>
2412 * utils.c (init_page_info): Only call tgetnum function
2413 if rl_get_screen_size did not return useful values.
2415 2013-08-12 Ali Anwar <ali_anwar@codesourcery.com>
2417 PR breakpoints/15117
2418 * linespec.c (linespec_parse_basic): Check for convenience
2419 variable or history value while parsing.
2421 2013-08-12 Sergio Durigan Junior <sergiodj@redhat.com>
2423 Revert implementation of gdbarch_gdb_signal_{to,from}_target for
2425 * avr-tdep.c: Remove include of "linux-tdep.h". Remove enum with
2426 different signals between the generic Linux kernel implementation
2428 (avr_linux_gdb_signal_from_target): Delete.
2429 (avr_linux_gdb_signal_to_target): Delete.
2430 (avr_gdbarch_init): Don't set gdbarch_gdb_signal_{to,from}_target.
2432 2013-08-09 Doug Evans <dje@google.com>
2434 * dwarf2read.c (create_addrmap_from_index): Ignore bad address table
2437 2013-08-09 Sergio Durigan Junior <sergiodj@redhat.com>
2439 * linux-tdep.c: Define enum with generic signal numbers.
2440 (linux_gdb_signal_from_target): New function.
2441 (linux_gdb_signal_to_target): Likewise.
2442 (linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
2443 methods to the functions above.
2444 * linux-tdep.h (linux_gdb_signal_from_target): New prototype.
2445 (linux_gdb_signal_to_target): Likewise.
2446 * alpha-linux-tdep.c: Define new enum with signals different
2447 from generic Linux kernel.
2448 (alpha_linux_gdb_signal_from_target): New function.
2449 (alpha_linux_gdb_signal_to_target): Likewise.
2450 (alpha_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
2451 with the functions mentioned above.
2452 * avr-tdep.c: Define enum with differences between Linux kernel
2454 (avr_linux_gdb_signal_from_target): New function.
2455 (avr_linux_gdb_signal_to_target): Likewise.
2456 (avr_gdbarch_init): Set gdbarch_gdb_signal_{to,from}_target to
2457 the functions mentioned above.
2458 * sparc-linux-tdep.c: Define enum with differences between SPARC
2459 and generic Linux kernel signal numbers.
2460 (sparc32_linux_gdb_signal_from_target): New function.
2461 (sparc32_linux_gdb_signal_to_target): Likewise.
2462 (sparc32_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
2463 to the functions defined above.
2464 * xtensa-linux-tdep.c: Define enum with differences between
2465 Xtensa and Linux kernel generic signals.
2466 (xtensa_linux_gdb_signal_from_target): New function.
2467 (xtensa_linux_gdb_signal_to_target): Likewise.
2468 (xtensa_linux_init_abi): Set gdbarch_gdb_signal_to_target
2469 to the functions defined above.
2470 * mips-linux-tdep.c: Define enum with differences between
2471 signals in MIPS and Linux kernel generic ones.
2472 (mips_gdb_signal_to_target): New function.
2473 (mips_gdb_signal_from_target): Redefine to use new enum, handle
2474 only different signals from the Linux kernel generic.
2475 (mips_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
2476 the functions defined above.
2477 * mips-linux-tdep.h (enum mips_signals): Remove.
2479 2013-08-09 Pedro Alves <palves@redhat.com>
2481 * avr-tdep.c (XMALLOC): Delete macro.
2482 * cli/cli-dump.c (XMALLOC): Delete macro.
2484 2013-08-09 Pedro Alves <palves@redhat.com>
2486 * cli/cli-dump.c: Don't include cli/cli-dump.h.
2487 (scan_expression_with_cleanup, scan_filename_with_cleanup)
2488 (fopen_with_cleanup, add_dump_command): Make static.
2489 * cli/cli-dump.h: Delete file.
2490 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to
2493 2013-08-09 Pedro Alves <palves@redhat.com>
2495 * tracepoint.c (tfile_start): Show tilde-expanded filename in
2498 2013-08-09 Pedro Alves <palves@redhat.com>
2500 * breakpoint.c (save_breakpoints): Show tilde-expanded filename in
2503 2013-08-09 Pedro Alves <palves@redhat.com>
2505 * gcore.c (create_gcore_bfd): Don't use tilde_expand here.
2506 (gcore_command): Use tilde_expand here, and when showing the
2507 filename to the user, show the expanded version.
2509 2013-08-09 Yao Qi <yao@codesourcery.com>
2511 * stack.c (read_frame_arg): Set 'entryval_error' to NULL if
2514 2013-08-08 Azat Khuzhin <a3at.mail@gmail.com> (tiny change)
2516 * gcore.c (create_gcore_bfd): Use tilde_expand.
2518 2013-08-08 Yao Qi <yao@codesourcery.com>
2520 * frame.h (read_frame_local): Declare.
2521 * mi/mi-cmd-stack.c (list_args_or_locals): Call
2523 * stack.c (read_frame_local): New.
2525 2013-08-08 Yao Qi <yao@codesourcery.com>
2527 * mi/mi-cmd-stack.c: Update comments to function
2528 list_args_or_locals.
2530 2013-08-07 Tom Tromey <tromey@redhat.com>
2533 * dwarf2read.c (struct process_psymtab_comp_unit_data): New.
2534 (process_psymtab_comp_unit_reader): Use it.
2535 (process_psymtab_comp_unit): Update. Add "pretend_language"
2537 (dwarf2_build_psymtabs_hard): Update.
2538 (scan_partial_symbols): Pass CU's language to
2539 process_psymtab_comp_unit.
2541 2013-08-07 Tom Tromey <tromey@redhat.com>
2543 * dwarf2read.c (dw2_get_primary_filename_reader): Remove.
2544 (dwarf2_gdb_index_functions): Update.
2545 * psymtab.c (find_symbol_file_from_partial): Remove.
2546 (psym_functions): Update.
2547 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
2550 2013-08-07 Tom Tromey <tromey@redhat.com>
2552 * symfile.c (set_initial_language): Look up "main" symbol
2553 and use its language.
2554 * symtab.c (find_main_filename): Remove.
2555 * symtab.h (find_main_filename): Remove.
2557 2013-08-07 Tom Tromey <tromey@redhat.com>
2559 * dwarf2read.c (recursively_compute_inclusions): Add
2560 "immediate_parent" argument. Set symtab's "user" field
2562 (compute_symtab_includes): Update.
2564 2013-08-07 Tom Tromey <tromey@redhat.com>
2566 * linespec.c (convert_linespec_to_sals): Use maybe_add_address
2567 when adding label symbols.
2569 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
2570 Ulrich Weigand <uweigand@de.ibm.com>
2572 * configure.tgt (powerpc64-*-aix*): Match powerpc64 running aix.
2573 * configure.host (powerpc64-*-aix*): Likewise.
2575 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
2576 Ulrich Weigand <uweigand@de.ibm.com>
2578 * gdb_ptrace.h: Use ptrace64 instead of ptrace if HAVE_PTRACE64
2580 * rs6000-nat.c: Check for __ld_info64_ if compiling 64 BIT gdb.
2581 (rs6000_ptrace32): Call ptrace64 instead of ptrace if present.
2582 (rs6000_ptrace64): Call ptace64 instead of ptracex if present.
2583 * configure.ac: Check for ptrace64.
2584 * configure, config.in: Regenerate.
2586 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
2587 Ulrich Weigand <uweigand@de.ibm.com>
2589 * aixthread.c: Call ptrace64 instead of ptracex if defined.
2590 Call ptrace64 instead of ptrace if defined.
2591 Add macro addr_ptr to take care of ptrace address argument.
2592 (pdc_read_regs): Likewise.
2593 (pdc_write_regs): Likewise.
2594 (aix_thread_resume): Likewise.
2595 (fetch_regs_kernel_thread): Likewise.
2596 (store_regs_kernel_thread): Likewise.
2598 2013-08-07 Anton Blanchard <anton@samba.org>
2600 * MAINTAINERS: Add myself to Write After Approval.
2602 2013-08-05 Tom Tromey <tromey@redhat.com>
2604 * aix-thread.c (_initialize_aix_thread): Use
2605 complete_target_initialization.
2606 * bsd-uthread.c (_initialize_bsd_uthread): Use
2607 complete_target_initialization.
2608 * dec-thread.c (_initialize_dec_thread): Use
2609 complete_target_initialization.
2610 * ravenscar-thread.c (_initialize_ravenscar): Use
2611 complete_target_initialization.
2612 * sol-thread.c (_initialize_sol_thread): Use
2613 complete_target_initialization.
2614 * spu-multiarch.c (_initialize_spu_multiarch): Use
2615 complete_target_initialization.
2617 2013-08-05 Tom Tromey <tromey@redhat.com>
2619 * ada-exp.y (write_var_or_type): Use bound_minimal_symbol.
2620 * ada-lang.c (ada_lookup_simple_minsym): Return
2621 bound_minimal_symbol.
2622 * ada-lang.h (ada_lookup_simple_minsym): Update.
2623 * c-exp.y (variable): Use lookup_bound_minimal_symbol.
2624 * f-exp.y (variable): Use lookup_bound_minimal_symbol.
2625 * go-exp.y (variable): Use lookup_bound_minimal_symbol.
2626 * jv-exp.y (push_expression_name): Use lookup_bound_minimal_symbol.
2627 * m2-exp.y (variable): Use lookup_bound_minimal_symbol.
2628 * minsyms.c (msymbol_objfile): Remove.
2629 (lookup_minimal_symbol_internal): New function, from
2630 lookup_minimal_symbol.
2631 (lookup_minimal_symbol): Rewrite using
2632 lookup_minimal_symbol_internal.
2633 (lookup_bound_minimal_symbol): New function.
2634 * minsyms.h (msymbol_objfile): Remove.
2635 (lookup_bound_minimal_symbol): Declare.
2636 * p-exp.y (variable): Use lookup_bound_minimal_symbol.
2637 * parse.c (write_exp_msymbol): Change parameter to a
2638 bound_minimal_symbol.
2639 (write_dollar_variable): Use lookup_bound_minimal_symbol.
2640 * parser-defs.h (write_exp_msymbol): Update.
2641 * printcmd.c (address_info): Use lookup_bound_minimal_symbol.
2642 * symfile.c (simple_read_overlay_table): Use
2643 lookup_bound_minimal_symbol.
2644 * symtab.c (skip_prologue_sal): Don't use msymbol_objfile.
2645 (search_symbols): Likewise.
2646 (print_msymbol_info): Take a bound_minimal_symbol argument.
2647 (symtab_symbol_info, rbreak_command): Update.
2648 * symtab.h (struct symbol_search) <msymbol>: Change type
2649 to bound_minimal_symbol.
2650 * valops.c (find_function_in_inferior): Use
2651 lookup_bound_minimal_symbol.
2652 * value.c (value_fn_field): Use lookup_bound_minimal_symbol.
2654 2013-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2657 * remote.c (cleanup_sigint_signal_handler): Rename the declaration
2659 (async_cleanup_sigint_signal_handler): ... this.
2660 (initialize_sigint_signal_handler): Remove declaration.
2661 (handle_remote_sigint): Rename the declaration to ...
2662 (async_handle_remote_sigint): ... this.
2663 (handle_remote_sigint_twice): Rename the declaration to ...
2664 (async_handle_remote_sigint_twice): ... this.
2665 (async_remote_interrupt, async_remote_interrupt_twice)
2666 (remote_interrupt): Remove the declarations.
2667 (remote_interrupt_twice): Rename the declaration ...
2668 (sync_remote_interrupt_twice): ... this.
2669 (sigint_remote_twice_token): Rename the variable to ...
2670 (async_sigint_remote_twice_token): ... this.
2671 (sigint_remote_token): Rename the variable to ...
2672 (async_sigint_remote_token): ... this.
2673 (initialize_sigint_signal_handler): Rename the function to ...
2674 (async_initialize_sigint_signal_handler): ... this. Update the name
2676 (handle_remote_sigint): Rename the function to ...
2677 (async_handle_remote_sigint): ... this. Update the names inside.
2678 (handle_remote_sigint_twice): Rename the function to ...
2679 (async_handle_remote_sigint_twice): ... this. Update the names inside.
2680 (cleanup_sigint_signal_handler): Rename the function to ...
2681 (async_cleanup_sigint_signal_handler): ... this.
2682 (remote_interrupt): Rename the function to ...
2683 (sync_remote_interrupt): this. Update the names inside.
2684 (remote_interrupt_twice): Rename the function to ...
2685 (sync_remote_interrupt_twice): this. Update the names inside.
2686 (remote_terminal_inferior, remote_terminal_ours, remote_wait_as)
2687 (_initialize_remote): Update the names inside.
2689 2013-08-02 Tom Tromey <tromey@redhat.com>
2692 * breakpoint.c (update_watchpoint, watchpoint_check)
2693 (watch_command_1): Update.
2694 * eval.c (fetch_subexp_value): Add "preserve_errors"
2696 * ppc-linux-nat.c (check_condition): Update.
2697 * value.h (fetch_subexp_value): Update.
2699 2013-08-02 Andrew Burgess <aburgess@broadcom.com>
2701 * mi/mi-interp.c (mi_interpreter_resume): Remove call to
2704 2013-08-01 Doug Evans <dje@google.com>
2707 * dwarf2read.c (struct dwarf2_per_cu_data): New member tu_read.
2708 (fill_in_sig_entry_from_dwo_entry): Reorganize asserts.
2709 Add assert of sig_entry->dwo_unit == NULL.
2710 (lookup_dwo_signatured_type): Don't assign TU to a DWO if the TU
2711 had already been read.
2712 (read_signatured_type): Set per_cu.tu_read.
2715 * valops.c (value_struct_elt): Add missing call to check_typedef.
2716 (value_find_oload_method_list): Ditto.
2718 * symtab.c (do_free_search_symbols_cleanup): Change arg to,
2719 effectively, struct symbol_search **.
2720 (make_cleanup_free_search_symbols): Change arg to struct
2721 symbol_search **. All callers updated.
2722 (compare_search_syms): Compare symtab file name and block as well.
2723 (search_symbols_equal): New function.
2724 (sort_search_symbols_remove_dups): Renamed from sort_search_symbols.
2725 New args new_head, new_tail. Result is now void. Remove dups after
2726 sorting the symbols.
2727 (search_symbols): Sort all found symbols once, after all have been
2728 found, and remove duplicates. Simplify cleanup tracking of result.
2729 * symtab.h (make_cleanup_free_search_symbols): Update prototype.
2731 Further workarounds for binutils/15021.
2732 * dwarf2read.c (recursively_compute_inclusions): Change type of result
2733 parameter to VEC (symtab_ptr) **. New parameter all_type_symtabs.
2734 Watch for duplicate symtabs coming from type units.
2735 (compute_symtab_includes): Update call to
2736 recursively_compute_inclusions. Build vector of included symtabs
2738 * symtab.h (symtab_ptr): New typedef.
2739 (DEF_VEC_P (symtab_ptr)): New VEC type.
2740 * linespec.c (symtab_p): Delete. All uses updated to use symtab_ptr
2743 2013-08-01 Andrew Burgess <aburgess@broadcom.com>
2745 * cli/cli-script.c (script_from_file): Remove use of
2747 * main.c (captured_main): Remove use of error_pre_print and
2749 * utils.c (error_pre_print, quit_pre_print): Remove.
2750 * utils.h (error_pre_print, quit_pre_print): Likewise.
2752 2013-08-01 Yao Qi <yao@codesourcery.com>
2754 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Parse argv
2756 (mi_cmd_stack_list_variables): Likewise.
2758 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
2760 * exceptions.c (deprecated_throw_reason): Remove.
2761 * exceptions.h (deprecated_throw_reason): Remove.
2763 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
2765 * remote-mips.c (mips_error): Replace use of
2766 deprecated_throw_reason with throw_verror. Use the error message
2767 passed to mips_error as the error message for throw_verror.
2769 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
2771 * monitor.c (monitor_interrupt_query): Replace use of
2772 deprecated_throw_reason with quit.
2773 * nto-procfs.c (interrupt_query): Likewise.
2774 * remote-fileio.c (remote_fileio_sig_exit): Likewise.
2775 * remote-mips.c (mips_kill): Likewise.
2776 * remote.c (interrupt_query): Likewise.
2778 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
2780 * utils.c (internal_verror): Replace use of deprecated_throw_reason
2783 2013-07-31 Pedro Alves <pedro@codesourcery.com>
2784 Yao Qi <yao@codesourcery.com>
2786 * tracepoint.c (trace_dump_command): Select the current frame.
2788 2013-07-30 Doug Evans <dje@google.com>
2790 * dwarf2read.c (process_queue): Add type signature to debug output.
2792 2013-07-30 Andrew Burgess <aburgess@broadcom.com>
2794 * value.c (value_fetch_lazy): Mark optimized out values as such
2795 rather than raising an error.
2797 2013-07-30 Andrew Burgess <aburgess@broadcom.com>
2799 * value.c (value_fetch_lazy): Ensure parent value is not lazy
2800 before checking which bits of the parent, not the child, value are
2803 2013-07-30 Muhammad Bilal <mbilal@codesorcery.com>
2806 * top.c: Include "filenames.h".
2807 (set_history_filename): New function.
2808 (init_main): Install it as set hook of the "set history filename"
2811 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
2813 * dwarf2read.c (dwarf2_get_ref_die_offset): Constify struct
2814 attribute parameter.
2815 (dwarf2_const_value_data): Constify struct attribute parameter.
2816 (dwarf2_const_value): Constify struct attribute parameter.
2817 (dwarf2_const_value_attr): Constify struct attribute parameter.
2818 (lookup_die_type): Constify struct attribute parameter.
2819 (dwarf2_get_attr_constant_value): Constify struct attribute parameter.
2820 (follow_die_ref_or_sig): Constify struct attribute parameter.
2821 (follow_die_ref): Constify struct attribute parameter.
2822 (follow_die_sig): Constify struct attribute parameter.
2823 (get_DW_AT_signature_type): Constify struct attribute parameter.
2824 (get_type_unit_group): Constify struct attribute parameter.
2825 (fill_in_loclist_baton): Constify struct attribute parameter.
2826 (dwarf2_symbol_mark_computed): Constify struct attribute parameter.
2827 (type_unit_group): Constify struct attribute parameter.
2829 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
2831 * dwarf2read.c (attr_form_is_block): Make argument const.
2832 (attr_form_is_section_offset): Make argument const.
2833 (attr_form_is_constant): Make argument const.
2834 (attr_form_is_ref): Make argument const.
2836 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
2838 * dwarf2read.c (attr_is_ref): Rename to attr_form_is_ref.
2840 (attr_form_is_ref): Moved below attr_form_is_constant.
2842 2013-07-29 Doug Evans <dje@google.com>
2844 * main.c (captured_command_loop): Tweak comment.
2846 * target.c (target_async_permitted_1): Fix comment.
2848 * symtab.c (iterate_over_some_symtabs): Add comment.
2850 * symtab.c (iterate_over_some_symtabs): Fix indentation.
2852 2013-07-27 Yao Qi <yao@codesourcery.com>
2854 * NEWS: Mention that GDBserver now supports hardware
2855 watchpoints on the MIPS GNU/Linux target.
2857 2013-07-27 Yao Qi <yao@codesourcery.com>
2859 * Makefile.in (HFILES_NO_SRCDIR): Add
2860 common/mips-linux-watch.h.
2861 (mips-linux-watch.o): New rule.
2862 * common/mips-linux-watch.c: New.
2863 * common/mips-linux-watch.h: New.
2864 * config/mips/linux.mh (NATDEPFILES): Add mips-linux-watch.o
2865 * mips-linux-nat.c: Include mips-linux-watch.h.
2866 (W_BIT, R_BIT, I_BIT, W_MASK, R_MASK, I_MASK, IRW_MASK): Move
2867 to common/mips-linux-watch.h.
2868 (MAX_DEBUG_REGISTER): Likewise.
2869 (enum pt_watch_style): Likewise.
2870 (struct mips32_watch_regs): Likewise.
2871 (struct mips64_watch_regs): Likewise.
2872 (struct pt_watch_regs): Likewise.
2873 (struct mips_watchpoint): Likewise.
2874 (mips_linux_watch_get_irw_mask): Move to
2875 common/mips-linux-watch.c.
2876 (get_reg_mask, mips_linux_watch_get_num_valid): Likewise.
2877 (mips_linux_watch_get_watchlo): Likewise.
2878 (mips_linux_watch_set_watchlo): Likewise.
2879 (mips_linux_watch_get_watchhi): Likewise.
2880 (mips_linux_watch_set_watchhi): Likewise.
2881 (mips_linux_read_watch_registers): Likewise.
2882 (mips_linux_watch_type_to_irw): Likewise.
2883 (mips_linux_stopped_data_address, fill_mask): Likewise.
2884 (mips_linux_watch_try_one_watch): Likewise.
2885 (mips_linux_watch_populate_regs): Likewise.
2887 2013-07-27 Yao Qi <yao@codesourcery.com>
2889 * mips-linux-nat.c (get_irw_mask): Rename to ...
2890 (mips_linux_watch_get_irw_mask): ... this. Rename parameter
2891 'set' to 'n'. Update function comment. All callers changed.
2892 (get_reg_mask): Rename parameter 'set' to 'n'. Update
2893 function comment. All callers changed.
2894 (get_num_valid): Rename to ...
2895 (mips_linux_watch_get_num_valid): ... this. Rename parameter
2896 'set' to 'n'. Update function comment. All callers changed.
2897 (get_watchlo): Rename to ...
2898 (mips_linux_watch_get_watchlo): ... this. Rename parameter
2899 'set' to 'n'. Update function comment. All callers changed.
2900 (set_watchlo): Rename to ...
2901 (mips_linux_watch_set_watchlo): ... this. Rename parameter
2902 'set' to 'n'. Update function comment. All callers changed.
2903 (get_watchhi): Rename to ...
2904 (mips_linux_watch_get_watchhi): ... this. Update function
2905 comment. All callers changed.
2906 (set_watchhi): Rename to ...
2907 (mips_linux_watch_set_watchhi): ... this. Update function
2908 comment. All callers changed.
2909 (mips_linux_read_watch_registers): Update function comment.
2910 Add new parameters 'lwpid', 'watch_readback', and
2911 'watch_readback_valid'. Update.
2912 (type_to_irw): Rename to ...
2913 (mips_linux_watch_type_to_irw): ... this. Update function
2914 comment. All callers changed.
2915 (fill_mask): Update function comment.
2916 (try_one_watch): Rename to ...
2917 (mips_linux_watch_try_one_watch): ... this. Change the type
2918 of parameter 'irw' from 'unsigned' to 'uint32_t'.
2919 (populate_regs_from_watches): Rename to ...
2920 (mips_linux_watch_populate_regs): ... this. Add parameter
2921 'current_watches'. All callers changed.
2923 2013-07-27 Yao Qi <yao@codesourcery.com>
2925 * mips-linux-nat.c (MAX_DEBUG_REGISTER): Move it earlier in
2927 (PTRACE_SET_WATCH_REGS, enum pt_watch_style): Remove.
2928 (struct mips32_watch_regs, struct mips64_watch_regs): Remove.
2929 (struct pt_watch_regs): Likewise.
2930 [!PTRACE_GET_WATCH_REGS] (PTRACE_SET_WATCH_REGS): New macro.
2931 [!PTRACE_GET_WATCH_REGS] (enum pt_watch_style): New.
2932 [!PTRACE_GET_WATCH_REGS] (struct mips32_watch_regs): New.
2933 [!PTRACE_GET_WATCH_REGS] (struct mips64_watch_regs): New.
2934 [!PTRACE_GET_WATCH_REGS] (struct pt_watch_regs): New.
2936 2013-07-27 Yao Qi <yao@codesourcery.com>
2938 * breakpoint.h: Include break-common.h.
2939 (enum target_hw_bp_type): Move to ...
2940 * common/break-common.h: ... here. New.
2942 2013-07-26 Cyril Nikolaev <cyril@nichtverstehen.de>
2944 * inflow.c (terminal_init_inferior_with_pgrp): Save inferior
2945 process group regardless of having tty on stdin.
2947 2013-07-25 Doug Evans <dje@google.com>
2949 * linux-fork.h (detach_fork): Delete.
2951 2013-07-25 Tom Tromey <tromey@redhat.com>
2953 PR remote/15256, PR remote/15266:
2954 * bfd-target.c (target_bfd_reopen): Initialize to_magic.
2955 * monitor.c (monitor_detach): Use unpush_target.
2956 * remote-m32r-sdi.c (m32r_detach): Use unpush_target.
2957 * remote-mips.c (mips_detach): Use unpush_target. Don't
2959 * remote-sim.c (gdbsim_detach): Use unpush_target.
2960 * target.c (pop_target): Remove.
2961 (pop_all_targets_above): Don't call target_close.
2962 (target_close): Assert that the target is unpushed.
2963 * target.h (pop_target): Don't declare.
2964 * tracepoint.c (tfile_open): Use unpush_target.
2966 2013-07-25 Tom Tromey <tromey@redhat.com>
2968 * linux-thread-db.c (init_thread_db_ops): Call
2969 complete_target_initialization.
2970 (_initialize_thread_db): Don't call add_target.
2971 * target.c (complete_target_initialization): New function.
2972 (add_target_with_completer): Call it.
2973 * target.h (complete_target_initialization): Declare.
2975 2013-07-25 Mark Kettenis <kettenis@gnu.org>
2977 * hppa-tdep.h (enum hppa_regnum): Add members for all space registers.
2978 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Add comment.
2979 (HPPANBSD_SIZEOF_GREGS): New define.
2980 (hppaobsd_supply_gregset): Handle additional registers.
2981 * hppabsd-nat.c (hppabsd_gregset_supplies_p): Adjust to indicate
2982 we provide more registers now.
2983 (hppabsd_supply_gregset): Supply additional registers.
2984 (hppabsd_collect_gregset): Collect additional registers.
2986 2013-07-25 Mark Kettenis <kettenis@gnu.org>
2988 * hppabsd-tdep.c: Include "dwarf2-frame.h".
2989 (hppabsd_dwarf2_frame_init_reg): New function.
2990 (hppabsd_init_abi): Hook in the DWARF CFI frame unwinder.
2992 2013-07-25 Andrew Burgess <aburgess@broadcom.com>
2994 * mi/mi-main.c (output_register): Make MI 'r' format use standard
2995 'z' format code. Remove error for optimized out values, standard
2996 code will handle these fine.
2998 2013-07-25 Andrew Burgess <aburgess@broadcom.com>
3000 * NEWS: Mention new 'z' formatter.
3001 * printcmd.c (print_scalar_formatted): Add new 'z' formatter.
3002 (_initialize_printcmd): Mention 'z' formatter in help text of the
3005 2013-07-24 Maciej W. Rozycki <macro@codesourcery.com>
3007 * mips-tdep.c (micromips_deal_with_atomic_sequence): Correct
3010 2013-07-24 Sergio Durigan Junior <sergiodj@redhat.com>
3012 * breakpoint.c (create_longjmp_master_breakpoint): Check if probe
3013 interface can evaluate arguments. Fallback to the old mode if it
3015 (create_exception_master_breakpoint): Likewise.
3016 * elfread.c (elf_can_evaluate_probe_arguments): New function.
3017 (struct sym_probe_fns elf_probe_fns): Export function above to the
3019 * probe.c (can_evaluate_probe_arguments): New function.
3020 * probe.h (struct probe_ops) <can_evaluate_probe_arguments>: New
3022 (can_evaluate_probe_arguments): New function prototype.
3023 * solib-svr4.c (svr4_create_solib_event_breakpoints): Check if
3024 probe interface can evaluate arguments. Fallback to the old mode
3026 * stap-probe.c (stap_get_probe_argument_count): Check if probe
3027 interface can evaluate arguments. Warning the user if it cannot.
3028 (stap_can_evaluate_probe_arguments): New function.
3029 (struct probe_ops stap_probe_ops): Export function above to the
3031 * symfile.h (struct sym_probe_fns) <can_evaluate_probe_arguments>:
3032 New function pointer.
3034 2013-07-24 Luis Machado <lgustavo@codesourcery.com>
3036 * Makefile.in (SFILES): Add common/target-common.c.
3037 Add common/target-common.h to headers.
3038 (COMMON_OBS): Add target-common.o.
3039 (target-common.o): New target.
3040 * linux-nat.h (resume_kind): Move to common/target-common.h.
3041 * target.c (target_waitstatus_to_string): Move to
3042 common/target-common.c.
3043 * target.h: Include target-common.h.
3044 (target_waitkind): Move to common/target-common.h.
3045 (target_waitstatus): Likewise.
3046 (TARGET_WNOHANG): Likewise.
3047 * common/target-common.c: New file.
3048 * common/target-common.h: New file.
3050 2013-07-24 Doug Evans <dje@google.com>
3052 * dwarf2read.c (lookup_dwo_cutu): Change missing DWO complaint to
3055 2013-07-23 Yao Qi <yao@codesourcery.com>
3057 * i386-tdep.c (i386_in_stack_tramp_p): Remove unused
3058 parameter 'gdbarch'.
3059 (i386_stack_tramp_frame_sniffer): Caller update.
3060 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Remove
3061 parameter 'gdbarch' and 'target'.
3062 (i386_linux_core_read_description): Caller update.
3063 * amd64-linux-tdep.c (amd64_linux_core_read_description):
3065 * i386-linux-tdep.h (i386_linux_core_read_xcr0): Update
3068 2013-07-23 Tom Tromey <tromey@redhat.com>
3070 * dwarf2read.c (init_cutu_and_read_dies): Revert patch from
3073 2013-07-22 Doug Evans <dje@google.com>
3075 * exec.h (remove_target_sections): Delete arg abfd.
3076 * exec.c (exec_close): Update call to remove_target_sections.
3077 (remove_target_sections): Delete arg abfd.
3078 * solib.c (update_solib_list): Ditto.
3079 (reload_shared_libraries_1): Ditto.
3080 (clear_solib): Ditto, and unconditionally call remove_target_sections.
3081 * target.h (struct target_section): Rename key to owner.
3084 2013-07-22 Tom Tromey <tromey@redhat.com>
3086 * solib-som.c (som_open_symbol_file_object): Call do_cleanups.
3088 2013-07-22 Tom Tromey <tromey@redhat.com>
3090 * dwarf2read.c (init_cutu_and_read_dies): Remove 'free_cu_cleanup'.
3091 Simplify cleanup handling.
3093 2013-07-22 Tom Tromey <tromey@redhat.com>
3095 * dwarf2read.c (dwarf_decode_line_header): Call do_cleanups
3096 on all return paths.
3098 2013-07-22 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3100 * ppc-linux-nat.c (PPC_DEBUG_FEATURE_DATA_BP_DAWR): New define.
3101 (ppc_linux_region_ok_for_hw_watchpoint): Add checking to use the new
3102 DAWR interface for longer ranges hardware watchpoint (up to 512 bytes).
3104 2013-07-22 Phil Muldoon <pmuldoon@redhat.com>
3106 * top.c (print_gdb_version): Add help, apropos description and
3107 url to online documentation.
3109 2013-07-19 Hui Zhu <hui@codesourcery.com>
3112 * mi/mi-cmd-break.c (mi_argv_to_format): Handle double quotes.
3114 2013-07-19 Yao Qi <yao@codesourcery.com>
3116 * target.c (update_current_target): Change the default action
3117 of 'to_traceframe_info' from tcomplain to return_zero.
3118 * target.h (struct target_ops) <to_traceframe_info>: Add more
3120 * valops.c (read_value_memory): Call
3121 traceframe_available_memory unconditionally.
3123 2013-07-18 Yao Qi <yao@codesourcery.com>
3125 * coffread.c (coff_symfile_read): Iterate over minimal symbols,
3126 if the name is prefixed by "__imp_" or "_imp_", look for minimal
3127 symbol without prefix. If found, set its type to
3128 'mst_solib_trampoline'.
3130 2013-07-17 Doug Evans <dje@google.com>
3132 * NEWS: Mention "set print raw frame-arguments".
3133 * gdbcmd.h (setprintrawlist, showprintrawlist): Declare.
3134 * stack.c (print_raw_frame_arguments): New static global.
3135 (print_frame_arg): Set opts.raw from print_raw_frame_arguments.
3136 (_initialize_stack): New command "set/show print raw frame-arguments".
3137 * valprint.c (setprintrawlist, showprintrawlist): New globals.
3138 (set_print_raw, show_print_raw): New functions.
3139 (_initialize_valprint): New prefix command "set/show print raw".
3140 * valprint.h (value_print_options): Improve comments.
3142 * cli/cli-cmds.c (init_cmd_lists): Delete unnecessary initialization
3143 of all *list variables.
3145 * gdbcmd.h (togglelist): Delete.
3146 * cli/cli-cmds.c (togglelist): Delete.
3147 (init_cmd_lists): Update.
3148 * cli/cli-cmds.h (togglelist): Delete.
3150 2013-07-17 Tom Tromey <tromey@redhat.com>
3152 * dwarf2read.c (dwarf2_per_objfile_free): Clear
3155 2013-07-16 Doug Evans <dje@google.com>
3157 * nto-tdep.c (nto_relocate_section_addresses): Update,
3158 target_section.bfd deleted.
3159 * ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Ditto.
3160 * s390-tdep.c (s390_load): Ditto.
3161 * solib-aix.c (solib_aix_relocate_section_addresses): Ditto.
3163 2013-07-16 Andrew Burgess <aburgess@broadcom.com>
3165 * common/format.c (parse_format_string): Add checks for NULL
3166 character before calling strchr.
3168 2013-07-16 Doug Evans <dje@google.com>
3170 * solist.h (target_so_ops.find_and_open_solib): Clarify usage of
3171 temp_pathname argument.
3172 * nto-tdep.c (nto_find_and_open_solib): Fix setting of temp_pathname
3173 when opening the file fails.
3175 * target.h (struct target_section): Delete member bfd.
3176 All users updated to use the_bfd_section->owner instead.
3177 * exec.c (add_to_section_table): Assert bfd is expected value.
3178 Remove initialization of target_section.bfd.
3179 (remove_target_sections): Update.
3180 (section_table_available_memory): Update.
3181 (section_table_xfer_memory_partial): Update.
3182 (print_section_info): Update.
3183 (exec_set_section_address): Update.
3184 * record-full.c (record_full_core_xfer_partial): Update.
3185 * solib-svr4.c (svr4_relocate_section_addresses): Update.
3186 * solib-target.c (solib_target_relocate_section_addresses): Update.
3187 * symfile.c (build_section_addr_info_from_section_table): Update.
3188 * target.c (memory_xfer_live_readonly_partial): Update.
3189 (memory_xfer_partial_1): Update.
3191 2013-07-15 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3193 * ppc-linux-nat.c: Since the new PowerPC specific ptrace interface is
3194 now available for embedded (BookE) and server (BookS) processors,
3195 correct mentions of 'booke' and adjust comments accordingly in order to
3196 avoid confusion. Rename struct 'booke_debug_info' to 'hwdebug_info'.
3197 (have_ptrace_booke_interface): Rename function and variable
3198 'have_ptrace_booke_interface' to 'have_ptrace_hwdebug_interface'.
3199 Rename struct 'booke_debug_info' to 'hwdebug_info'. Update all uses.
3200 (booke_cmp_hw_point): Rename function 'booke_cmp_hw_point' to
3201 'hwdebug_point_cmp'. Update all uses.
3202 (booke_find_thread_points_by_tid): Rename function
3203 'booke_find_thread_points_by_tid' to
3204 'hwdebug_find_thread_points_by_tid'. Update all uses.
3205 (booke_insert_point): Rename function 'booke_insert_point' to
3206 'hwdebug_insert_point'. Update all uses.
3207 (booke_remove_point): Rename function 'booke_remove_point' to
3208 'hwdebug_remove_point'. Update all uses.
3210 2013-07-15 Maciej W. Rozycki <macro@codesourcery.com>
3212 * mips-tdep.c (mips_gdbarch_init): Replace hardcoded magic
3213 numbers with enum values.
3215 2013-07-15 Ali Anwar <ali_anwar@codesourcery.com>
3218 * thread.c (thread_apply_all_command): Check for valid threads
3220 (thread_array_cleanup): New struct.
3221 (set_thread_refcount): New function.
3223 2013-07-11 Andrew Burgess <aburgess@broadcom.com>
3225 * infcmd.c (default_print_one_register_info): Reuse function
3228 2013-07-10 Tom Tromey <tromey@redhat.com>
3230 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS, ADA_EXP_C): New macros.
3231 (ada-exp.o): New target.
3233 2013-07-10 Sergio Durigan Junior <sergiodj@redhat.com>
3235 * mt-tdep.c (mt_registers_info): Call
3236 get_no_prettyformat_print_options instead of
3237 get_raw_print_options (regression by last patch from Doug
3240 2013-07-09 Pedro Alves <palves@redhat.com>
3242 Checked in by Joel Brobecker <brobecker@adacore.com>.
3243 * ada-lang.c (coerce_unspec_val_to_type): Use
3244 value_optimized_out_const.
3245 * value.c (value_optimized_out_const): New function.
3246 * value.h (value_optimized_out_const): New declaration.
3248 2013-07-09 Doug Evans <dje@google.com>
3250 * defs.h (enum val_prettyformat): Renamed from val_prettyprint.
3251 Enum values rename as well. All uses updated.
3252 * valprint.h (value_print_options): Rename member pretty to
3253 pretty format. Rename member prettyprint_arrays to
3254 prettyformat_arrays. Rename member prettyprint_structs to
3255 prettyformat_structs. All uses updated.
3256 (get_no_prettyformat_print_options): Renamed from
3257 get_raw_print_options.
3258 * valprint.c (get_no_prettyformat_print_options): Renamed from
3259 get_raw_print_options. All callers updated.
3260 (show_prettyformat_structs): Renamed from show_prettyprint_structs.
3261 All callers updated.
3262 (show_prettyformat_arrays): Renamed from show_prettyprint_arrays.
3263 All callers updated.
3264 (_initialize_valprint): Improve help text for "set print pretty" and
3267 2013-07-09 Andrew Burgess <aburgess@broadcom.com>
3269 * value.c (value_bits_valid): Revert previous change, and change
3270 by Pedro on 2013-07-04, due to regressions in
3271 gdb.dwarf2/implptr.exp and gdb.dwarf2/pieces.exp.
3273 2013-07-08 Andrew Burgess <aburgess@broadcom.com>
3274 Pedro Alves <palves@redhat.com>
3276 * value.c (value_bits_valid): If the value is not lval_computed
3277 or has no check validity handler then the answer is the
3278 optimized_out flag, otherwise defer to the handler.
3280 2013-07-06 Eli Zaretskii <eliz@gnu.org>
3282 * top.c (print_gdb_configuration): Explain in output of
3283 --configuration what does "relocatable" mean.
3285 * main.c (print_gdb_help): Regroup options in the --help text.
3286 See http://sourceware.org/ml/gdb-patches/2013-04/msg00362.html for
3287 the relevant discussions.
3289 2013-07-06 Yao Qi <yao@codesourcery.com>
3291 * breakpoint.h (struct breakpoint_ops) <create_breakpoints_sal>:
3292 Remove parameter 'lsal'.
3293 * breakpoint.c (create_breakpoint): Move local variable 'lsal'
3294 to inner block. Caller update.
3295 (base_breakpoint_create_breakpoints_sal): Update.
3296 (bkpt_create_breakpoints_sal): Likewise.
3297 (tracepoint_create_breakpoints_sal): Likewise.
3298 (strace_marker_create_breakpoints_sal): Get 'lsal' from the
3299 element 0 of vector 'canonical->sals'.
3301 2013-07-05 Luis Machado <lgustavo@codesourcery.com>
3303 * rs6000-tdep.c (rs6000_stab_reg_to_regnum): Return the real
3304 register number instead of the pseudo register one.
3305 (rs6000_dwarf2_reg_to_regnum): Likewise.
3307 2013-07-04 Pedro Alves <palves@redhat.com>
3309 * findvar.c (value_of_register): Use allocate_optimized_out_value
3310 if the register has been optimized out, instead of
3311 set_value_optimized_out.
3312 * frame-unwind.c (frame_unwind_got_optimized): Use
3313 allocate_optimized_out_value.
3315 2013-07-04 Pedro Alves <palves@redhat.com>
3317 * value.c (value_bits_valid): If the value is not lval_computed,
3318 or doesn't have a check_validity hook, assume the value is entirely
3321 2013-07-04 Andrew Burgess <aburgess@broadcom.com>
3323 * stack.c (read_frame_arg): No longer fetch lazy values.
3324 * value.c (value_optimized_out): If the value is not already
3325 marked optimized out, and is lazy then fetch it.
3326 (value_primitive_field): Move optimized out check to later in the
3327 function, after we have loaded any lazy values.
3328 (value_fetch_lazy): Use optimized out flag directly rather than
3329 calling optimized_out method.
3331 2013-07-04 Andrew Burgess <aburgess@broadcom.com>
3333 * valops.c: Don't include "user-regs.h".
3334 (value_fetch_lazy): Moved to value.c.
3335 * value.c: Include "user-regs.h".
3336 (value_fetch_lazy): Moved from valops.c.
3338 2013-07-04 Yao Qi <yao@codesourcery.com>
3341 2013-06-27 Yao Qi <yao@codesourcery.com>
3343 * common/create-version.sh: Update comments. Handle the case
3344 that TARGET_ALIAS is empty.
3346 2013-07-03 Pedro Alves <palves@redhat.com>
3348 * Makefile.in (config.status): Depend on development.sh.
3349 (aclocal_m4_deps): Add libmcheck.m4.
3350 * acinclude.m4: Include libmcheck.m4.
3351 * configure.ac: Source development.sh instead of setting
3352 'development' here. --enable-libmcheck/--disable-libmcheck code
3353 factored out to GDB_AC_LIBMCHECK. Run it.
3354 * development.sh: New file.
3355 * libmcheck.m4: New file.
3356 * configure: Regenerate.
3358 2013-07-02 Tom Tromey <tromey@redhat.com>
3360 * contrib/ari/update-web-ari.sh: Update for version.in change.
3362 2013-07-02 Tom Tromey <tromey@redhat.com>
3364 * common/ptid.h: Comment fixes.
3366 2013-07-01 Tom Tromey <tromey@redhat.com>
3368 * dwarf2read.c (dwarf2_get_dwz_file): Return NULL if
3369 .gnu_debugaltlink not found. Use bfd_get_alt_debug_link_info.
3370 (dwarf2_read_index, create_all_comp_units): Update.
3372 2013-07-01 Tom Tromey <tromey@redhat.com>
3374 * configure.ac (build_warnings): Add -Wold-style-definition.
3375 * configure: Rebuild.
3376 * machoread.c (_initialize_machoread): Use "(void)".
3377 * macrocmd.c (macro_inform_no_debuginfo): Fix formatting;
3380 2013-07-01 Tom Tromey <tromey@redhat.com>
3382 * configure.ac (build_warnings): Add -Wold-style-declaration.
3383 * configure: Rebuild.
3384 * dsrec.c (make_srec): Use "static const", not "const static".
3385 * h8300-tdep.c (h8300_breakpoint_from_pc): Use "static const",
3387 * mi/mi-parse.c (mi_no_values, mi_simple_values, mi_all_values):
3388 Use "static const", not "const static".
3389 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Use "static const",
3391 * moxie-tdep.c (moxie_breakpoint_from_pc): Use "static const",
3393 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Use "static const",
3395 * v850-tdep.c (v850_breakpoint_from_pc): Use "static const",
3397 (v850_dbtrap_breakpoint_from_pc): Likewise.
3398 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Use "static const",
3401 2013-07-01 Tom Tromey <tromey@redhat.com>
3403 * configure.ac (build_warnings): Add -Wmissing-parameter-type.
3404 * configure: Rebuild.
3406 2013-07-01 Pedro Alves <palves@redhat.com>
3408 * defs.h: Include "pathmax.h".
3409 * utils.c: Don't include sys/param.h.
3410 (gdb_realpath): Remove code that checks for MAXPATHLEN.
3411 * solib-ia64-hpux.c (ia64_hpux_handle_load_event): Use PATH_MAX
3412 instead of MAXPATHLEN.
3413 * solib-sunos.c: Don't include sys/param.h.
3414 * xcoffread.c: Don't include sys/param.h.
3415 * bsd-kvm.c: Don't include sys/param.h.
3416 * darwin-nat.c: Don't include sys/param.h.
3417 (darwin_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
3418 * darwin-nat-info.c: Don't include sys/param.h.
3419 * fbsd-nat.c (fbsd_pid_to_exec_file): Use PATH_MAX instead of
3421 * i386obsd-nat.c: Don't include sys/param.h.
3422 * inf-child.c: Don't include sys/param.h.
3423 (inf_child_fileio_readlink): Use PATH_MAX instead of MAXPATHLEN.
3424 * linux-fork.c: Don't include sys/param.h.
3425 (fork_save_infrun_state): Use PATH_MAX instead of MAXPATHLEN.
3426 * linux-nat.c: Don't include sys/param.h.
3427 (linux_child_pid_to_exec_file, linux_proc_pending_signals)
3428 (linux_proc_pending_signals): Use PATH_MAX instead of MAXPATHLEN.
3429 * m68klinux-nat.c: Don't include sys/param.h.
3430 * nbsd-nat.c: Don't include sys/param.h.
3431 (nbsd_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
3432 * ppc-linux-nat.c: Don't include sys/param.h.
3433 * rs6000-nat.c: Don't include sys/param.h.
3434 * spu-linux-nat.c. Don't include sys/param.h.
3435 * windows-nat.c: Don't include sys/param.h.
3436 * xtensa-linux-nat.c: Don't include sys/param.h.
3437 * config/i386/nm-fbsd.h: Don't include sys/param.h.
3439 2013-07-01 Pedro Alves <palves@redhat.com>
3441 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add pathmax.
3442 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/pathmax.m4.
3443 * gnulib/aclocal.m4: Regenerate.
3444 * gnulib/config.in: Regenerate.
3445 * gnulib/configure: Regenerate.
3446 * gnulib/import/pathmax.h: New file.
3447 * gnulib/import/Makefile.am: Regenerate.
3448 * gnulib/import/Makefile.in: Regenerate.
3449 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
3450 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
3451 * gnulib/import/m4/pathmax.m4: New file.
3453 2013-07-01 Pedro Alves <palves@redhat.com>
3455 * configure.ac (GDBINIT): Define, depending on host.
3456 * go32-nat.c (init_go32_ops): Don't override gdbinit here.
3457 * top.c (PATH_MAX): Delete fallback definition.
3458 (GDBINIT_FILENAME): Delete.
3459 (gdbinit): Reimplement as const char array set to the GDBINIT
3461 * top.h (gdbinit): Make const.
3462 * configure, config.in: Regenerate.
3464 2013-07-01 Pedro Alves <palves@redhat.com>
3466 * cli/cli-cmds.c (source_script): Make 'file' parameter const.
3467 * cli/cli-cmds.h (source_script): Likewise.
3468 * exceptions.c (catch_command_errors_const): New function.
3469 * exceptions.h (catch_command_errors_const): Declare.
3470 * main.c (get_init_files): Make parameters const, and adjust.
3471 (captured_main): Make 'system_gdbinit', 'home_gdbinit' and
3472 'local_gdbinit' locals const. Adjust to use
3473 catch_command_errors_const.
3474 (print_gdb_help): Make 'system_gdbinit', 'home_gdbinit' and
3475 'local_gdbinit' locals const.
3477 2013-07-01 Pedro Alves <palves@redhat.com>
3479 * defs.h: Don't check HAVE_UNISTD_H before including <unistd.h>.
3480 (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO): Delete.
3481 * tracepoint.c: Don't check HAVE_UNISTD_H before including
3484 2013-07-01 Pedro Alves <palves@redhat.com>
3486 Import the "unistd" gnulib module.
3487 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add "unistd".
3488 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/off_t.m4,
3489 import/m4/ssize_t.m4, import/m4/sys_types_h.m4 and
3490 import/m4/unistd_h.m4.
3491 * gnulib/aclocal.m4: Renenerate.
3492 * gnulib/config.in: Renenerate.
3493 * gnulib/configure: Renenerate.
3494 * gnulib/import/Makefile.am: Renenerate.
3495 * gnulib/import/Makefile.in: Renenerate.
3496 * gnulib/import/m4/gnulib-cache.m4: Renenerate.
3497 * gnulib/import/m4/gnulib-comp.m4: Renenerate.
3498 * gnulib/import/m4/off_t.m4: New file.
3499 * gnulib/import/m4/ssize_t.m4: New file.
3500 * gnulib/import/m4/sys_types_h.m4: New file.
3501 * gnulib/import/m4/unistd_h.m4: New file.
3502 * gnulib/import/sys_types.in.h: New file.
3503 * gnulib/import/unistd.c: New file.
3504 * gnulib/import/unistd.in.h: New file.
3506 2013-07-01 Pedro Alves <palves@redhat.com>
3508 * utils.c <pathconf/_PC_PATH_MAX use>: Check if _PC_PATH_MAX is
3509 defined instead of checking HAVE_UNISTD_H.
3511 2013-07-01 Pedro Alves <palves@redhat.com>
3513 Reimport gnulib from scratch.
3514 * gnulib/Makefile.in (aclocal_m4_deps): Remove reference to
3515 import/m4/onceonly.m4.
3516 * gnulib/aclocal.m4: Renegerate.
3517 * gnulib/config.in: Renegerate.
3518 * gnulib/configure: Renegerate.
3519 * gnulib/import/Makefile.in: Renegerate.
3520 * gnulib/import/extra/update-copyright: Renegerate.
3521 * gnulib/import/m4/onceonly.m4: Delete.
3523 2013-07-01 Pedro Alves <palves@redhat.com>
3525 * tui/tui-regs.c (pagination_enabled): Delete declaration.
3527 2013-06-30 Jan Kratochvil <jan.kratochvil@redhat.com>
3530 * remote.c (async_remote_interrupt_twice): Make it static.
3531 * remote.h (async_remote_interrupt_twice): Remove the declaration.
3533 2013-06-29 Sergio Durigan Junior <sergiodj@redhat.com>
3535 * ia64-linux-tdep.c: Include <ctype.h>.
3536 (ia64_linux_stap_is_single_operand): New function.
3537 (ia64_linux_init_abi): Initialize SystemTap related attributes.
3539 2013-06-28 Tom Tromey <tromey@redhat.com>
3541 * Makefile.in (version.c): Use version.in, not
3543 * common/create-version.sh: Likewise.
3544 * common/version.in: Move...
3545 * version.in: ...here.
3547 2013-06-28 Pedro Alves <palves@redhat.com>
3549 * infrun.c (set_observer_mode): Don't declare pagination_enabled
3551 * utils.h (pagination_enabled): Declare.
3553 2013-06-28 Pedro Alves <palves@redhat.com>
3555 * infrun.c (non_stop, non_stop_1, set_non_stop, show_non_stop):
3556 Move higher up in file.
3558 2013-06-28 Tom Tromey <tromey@redhat.com>
3560 * tracepoint.c (deprecated_readline_begin_hook)
3561 (deprecated_readline_hook, deprecated_readline_end_hook): Don't
3564 2013-06-28 Pedro Alves <palves@redhat.com>
3567 * tui/tui-regs.c (tui_get_register): Fetch value contents before
3568 checking if they're available.
3569 * value.c (value_available_contents_eq): Change comment.
3570 * value.h (value_available_contents_eq): Expand comment.
3572 2013-06-27 Tom Tromey <tromey@redhat.com>
3574 * target.c (find_run_target): Remove.
3575 * target.h (find_run_target): Remove.
3577 2013-06-27 Tom Tromey <tromey@redhat.com>
3579 * corelow.c (core_gdbarch): Now static.
3581 2013-06-27 Tom Tromey <tromey@redhat.com>
3583 * target.c (target_struct_index): Remove.
3585 2013-06-27 Pedro Alves <palves@redhat.com>
3587 * infrun.c: Remove comment describing the 'stepping over runtime
3588 loader dynamic symbol resolution code' mechanism; moved to
3591 2013-06-27 Pedro Alves <palves@redhat.com>
3593 * exceptions.c (catch_command_errors): Remove spurious space.
3594 * exceptions.h (catch_command_errors): Second parameter is "arg",
3597 2013-06-27 Yao Qi <yao@codesourcery.com>
3599 * common/create-version.sh: Update comments. Handle the case
3600 that TARGET_ALIAS is empty.
3602 2013-06-26 Pedro Alves <palves@redhat.com>
3604 * infrun.c (SOLIB_IN_DYNAMIC_LINKER): Delete macro and describing
3607 2013-06-26 Pedro Alves <palves@redhat.com>
3609 * infrun.c: Update comments on stepping over runtime loader
3610 dynamic symbol resolution code.
3612 2013-06-26 Sergio Durigan Junior <sergiodj@redhat.com>
3614 * ax-gdb.h (union exp_element): Forward declare.
3615 * parser-defs.h: Include expression.h.
3617 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
3619 * mips-tdep.c (fetch_mips_16): Use unmake_compact_addr.
3621 2013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
3623 * tracepoint.c (trace_save): Extend tsave to save starttime, stoptime.
3625 2013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
3627 Fix trace-status to output proper start-time and stop-time.
3628 * tracepoint.c (trace_status_command): Fix type of printf arg to
3629 prevent improper type conversion.
3630 (trace_status_mi): Likewise.
3632 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
3634 * mips-tdep.c (mips_next_pc): Fix a typo.
3636 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
3638 * mips-tdep.c (micromips_scan_prologue): Fix a typo.
3640 2013-06-26 Pedro Alves <pedro@codesourcery.com>
3641 Yao Qi <yao@codesourcery.com>
3643 * mi/mi-cmds.c (mi_cmds): Register -trace-frame-collected.
3644 * mi/mi-cmds.h (mi_cmd_trace_frame_collected): Declare.
3645 * mi/mi-main.c (print_variable_or_computed): New function.
3646 (mi_cmd_trace_frame_collected): New function.
3647 * tracepoint.c (find_trace_state_variable_by_number): New.
3648 (struct traceframe_info): Move to tracepoint.h
3649 (struct collection_list): Likewise.
3650 (do_collect_symbol): Include locals and arguments in the
3651 collected variables list.
3652 (clear_collection_list): Clear wholly collected variables list
3653 and computed variables list.
3654 (append_exp): New function.
3655 (encode_actions_1): Include variables in the wholly
3656 collected variables list. Include memory ranges and
3657 full-fledged expressions in the computed expressions list.
3658 (encode_actions): Move some code to ...
3659 Return the cleanup chain.
3660 (encode_actions_rsp): ... here. New function.
3661 (get_traceframe_location, get_traceframe_info): Remove static.
3662 * tracepoint.h (struct memrange): Moved from tracepoint.c.
3663 (struct collection_list): Moved from tracepoint.c. Add two
3664 new fields 'wholly_collected' and 'computed'.
3665 (find_trace_state_variable_by_number): Declare.
3666 (encode_actions): Adjust declaration.
3667 (encode_actions_rsp): Declare.
3668 (get_traceframe_info, get_traceframe_location): Declare.
3670 * NEWS: Mention new MI command -trace-frame-collected.
3672 2013-06-26 Pedro Alves <pedro@codesourcery.com>
3673 Yao Qi <yao@codesourcery.com>
3675 * ctf.c (ctf_traceframe_info): Push trace state variables
3676 present in the trace data into the traceframe info object.
3677 * breakpoint.c (DEF_VEC_I): Remove.
3678 * common/filestuff.c (DEF_VEC_I): Likewise.
3679 * dwarf2loc.c (DEF_VEC_I): Likewise.
3680 * mi/mi-main.c (DEF_VEC_I): Likewise.
3681 * common/gdb_vecs.h (DEF_VEC_I): Define vector for int.
3682 * features/traceframe-info.dtd: Add tvar element and its
3684 * tracepoint.c (free_traceframe_info): Free vector 'tvars'.
3685 (build_traceframe_info): Push trace state variables present in
3686 the trace data into the traceframe info object.
3687 (traceframe_info_start_tvar): New function.
3688 (tvar_attributes): New.
3689 (traceframe_info_children): Add "tvar" element.
3690 * tracepoint.h (struct traceframe_info) <tvars>: New field.
3692 * NEWS: Mention the change in GDB and GDBserver.
3694 2013-06-26 Pedro Alves <pedro@codesourcery.com>
3695 Yao Qi <yao@codesourcery.com>
3697 * tracepoint.c (trace_dump_command): Move code to ...
3698 (get_traceframe_location): ... here. New.
3700 2013-06-26 Pedro Alves <pedro@codesourcery.com>
3701 Yao Qi <yao@codesourcery.com>
3703 * tracepoint.c (trace_dump_command): GDB emits an error
3704 instead of a warning when a traceframe is not selected.
3706 2013-06-26 Pedro Alves <pedro@codesourcery.com>
3707 Yao Qi <yao@codesourcery.com>
3709 * tracepoint.c (tracepoint_list, stepping_list): Remove.
3710 (clear_collection_list): Free fields 'aexpre_list' and 'list'
3712 (do_clear_collection_list, init_collection_list): New.
3713 (encode_actions): Add local variables 'tracepoint_list' and
3714 'stepping_list'. Call init_collection_list and make cleanup
3715 which calls do_clear_collection_list. Don't call
3716 clear_collection_list.
3717 (_initialize_tracepoint): Delete references to
3718 'tracepoint_list' and 'stepping_list'.
3720 2013-06-25 Tom Tromey <tromey@redhat.com>
3722 * common/create-version.sh (date): Use "$", not "$$" in sed
3725 2013-06-25 Kevin Buettner <kevinb@redhat.com>
3727 * NEWS (New targets): Add entry for TI MSP430.
3729 2013-06-25 Yao Qi <yao@codesourcery.com>
3731 * remote.c (remote_start_remote): Move code to upload tsv
3734 2013-06-25 Yao Qi <yao@codesourcery.com>
3735 Hui Zhu <hui@codesourcery.com>
3736 Pedro Alves <palves@redhat.com>
3738 PR breakpoints/15075
3739 PR breakpoints/15434
3740 * breakpoint.c (bpstat_stop_status): Call
3741 b->ops->after_condition_true.
3742 (update_dprintf_command_list): Don't append "continue" command
3743 to the command list of dprintf breakpoint.
3744 (base_breakpoint_after_condition_true): New function.
3745 (base_breakpoint_ops): Add base_breakpoint_after_condition_true.
3746 (dprintf_after_condition_true): New function.
3747 (initialize_breakpoint_ops): Set dprintf_after_condition_true.
3748 * breakpoint.h (breakpoint_ops): Add after_condition_true.
3750 2013-06-24 Kevin Buettner <kevinb@redhat.com>
3752 * Makefile.in (ALL_TARGET_OBS): Add msp430-tdep.o.
3753 (ALLDEPFILES): Add msp430-tdep.c.
3754 * configure.tgt (msp430*-*-elf): New target.
3755 * msp430-tdep.c: New file.
3757 2013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
3759 * mips-tdep.c (mips_elf_make_msymbol_special): Handle MIPS16 and
3760 microMIPS synthetic symbols.
3762 2013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
3764 * objfiles.h (pc_in_section): New prototype.
3765 (in_plt_section): Remove name argument, replace prototype with
3766 static inline function.
3767 * mips-tdep.h: Include "objfiles.h".
3768 (in_mips_stubs_section): New function.
3769 * hppa-tdep.h (gdbarch_tdep): Remove name argument of
3770 in_solib_call_trampoline member.
3771 (hppa_in_solib_call_trampoline): Remove name argument.
3772 * objfiles.c (pc_in_section): New function.
3773 (in_plt_section): Remove function.
3774 * mips-linux-tdep.c: Include "objfiles.h".
3775 (mips_linux_in_dynsym_stub): Call in_mips_stubs_section. Remove
3776 name argument. Return 1 rather than the low 16-bit halfword of
3777 any instruction examined.
3778 (mips_linux_in_dynsym_resolve_code): Update
3779 mips_linux_in_dynsym_stub call accordingly.
3780 * mips-tdep.c (mips_stub_frame_sniffer): Use in_mips_stubs_section
3781 rather than an equivalent hand-coded sequence.
3782 * hppa-hpux-tdep.c (in_opd_section): Remove function.
3783 (hppa32_hpux_in_solib_call_trampoline): Remove name argument.
3784 (hppa64_hpux_in_solib_call_trampoline): Likewise.
3785 (hppa64_hpux_find_global_pointer): Use pc_in_section rather than
3787 * hppa-tdep.c (hppa_stub_unwind_sniffer): Remove name argument
3788 on call to tdep->in_solib_call_trampoline.
3789 (hppa_in_solib_call_trampoline): Remove name argument, update
3790 according to in_plt_section change.
3791 (hppa_skip_trampoline_code): Update according to in_plt_section
3793 * aarch64-tdep.c (aarch64_stub_unwind_sniffer): Likewise.
3794 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code):
3796 * arm-tdep.c (arm_stub_unwind_sniffer): Likewise.
3797 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
3798 * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise.
3799 * nios2-tdep.c (nios2_stub_frame_sniffer): Likewise.
3800 * nto-tdep.c (nto_relocate_section_addresses): Likewise.
3801 * s390-tdep.c (s390_stub_frame_sniffer): Likewise.
3802 * sh-tdep.c (sh_stub_unwind_sniffer): Likewise.
3803 * solib-dsbt.c (dsbt_in_dynsym_resolve_code): Likewise.
3804 * solib-frv.c (frv_in_dynsym_resolve_code): Likewise.
3805 * solib-svr4.c (svr4_in_dynsym_resolve_code): Likewise.
3806 * solib-target.c (solib_target_in_dynsym_resolve_code): Likewise.
3807 * sparc-tdep.c (sparc_analyze_prologue): Likewise.
3808 * tic6x-tdep.c (tic6x_stub_unwind_sniffer): Likewise.
3810 2013-06-24 Joel Brobecker <brobecker@adacore.com>
3812 * common/create-version.sh: Fix expansion of $host_alias
3813 and $target_alias in generation of HOST_NAME and TARGET_NAME
3816 2013-06-24 Tom Tromey <tromey@redhat.com>
3818 * common/create-version.sh: New file.
3819 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
3821 (HFILES_NO_SRCDIR): Use common/version.h.
3822 * version.in: Move to ...
3823 * common/version.in: ... here. Replace date with "DATE".
3824 * version.h: Move to ...
3825 * common/version.h: ... here.
3827 2013-06-21 Joel Brobecker <brobecker@adacore.com>
3829 * gdb/gnulib/Makefile.in: Update date in copyright header.
3830 * gdb/gnulib/configure.ac: Ditto.
3831 * gdb/gnulib/update-gnulib.sh: Ditto.
3833 2013-06-21 Joel Brobecker <brobecker@adacore.com>
3835 * copyright.py (EXCLUDE_LIST): Replace "gdb/gnulib" by
3836 "gdb/gnulib/import".
3838 2013-06-21 Will Newton <will.newton@linaro.org>
3840 * doublest.c (ldfrexp): Remove function.
3841 (convert_doublest_to_floatformat): Call frexpl instead of
3844 2013-06-21 Will Newton <will.newton@linaro.org>
3846 * gnulib/update-gnulib.sh(IMPORTED_GNULIB_MODULES): Add frexpl.
3847 * gnulib/aclocal.m4: Regenerate.
3848 * gnulib/config.in: Regenerate.
3849 * gnulib/configure: Regenerate.
3850 * gnulib/import/Makefile.am: Update.
3851 * gnulib/import/Makefile.in: Update.
3852 * gnulib/import/m4/gnulib-cache.m4: Update.
3853 * gnulib/import/m4/gnulib-comp.m4: Update.
3854 * gnulib/import/float+.h: Import.
3855 * gnulib/import/float.c: Import.
3856 * gnulib/import/float.in.h: Import.
3857 * gnulib/import/fpucw.h: Import.
3858 * gnulib/import/frexp.c: Import.
3859 * gnulib/import/frexpl.c: Import.
3860 * gnulib/import/isnan.c: Import.
3861 * gnulib/import/isnand-nolibm.h: Import.
3862 * gnulib/import/isnand.c: Import.
3863 * gnulib/import/isnanl-nolibm.h: Import.
3864 * gnulib/import/isnanl.c: Import.
3865 * gnulib/import/itold.c: Import.
3866 * gnulib/import/m4/exponentd.m4: Import.
3867 * gnulib/import/m4/exponentl.m4: Import.
3868 * gnulib/import/m4/float_h.m4: Import.
3869 * gnulib/import/m4/fpieee.m4: Import.
3870 * gnulib/import/m4/frexp.m4: Import.
3871 * gnulib/import/m4/frexpl.m4: Import.
3872 * gnulib/import/m4/isnand.m4: Import.
3873 * gnulib/import/m4/isnanl.m4: Import.
3874 * gnulib/import/m4/math_h.m4: Import.
3875 * gnulib/import/math.c: Import.
3876 * gnulib/import/math.in.h: Import.
3878 2013-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3880 * common/linux-btrace.c (cpu_supports_btrace): Remove variable vendor,
3881 replace strcmp with signature_INTEL_ebx, signature_INTEL_ecx and
3882 signature_INTEL_edx comparisons.
3884 2013-06-20 Doug Evans <dje@google.com>
3887 * dwarf2read.c (try_open_dwop_file): New arg search_cwd.
3888 All callers updated.
3889 (open_dwp_file): If we can't find the dwp file, search the basename
3890 in debug-file-directory.
3892 * dwarf2read.c (struct dwp_file): Fix comment.
3893 (open_and_init_dwp_file): Set dwp_file->name to bfd's file name.
3895 * source.c (openp): Document OPF_TRY_CWD_FIRST+OPF_SEARCH_IN_PATH
3898 2013-06-20 Yao Qi <yao@codesourcery.com>
3900 * breakpoint.c (create_breakpoint): Fix code indentation.
3902 2013-06-20 Yao Qi <yao@codesourcery.com>
3904 * breakpoint.c (create_breakpoints_sal_default): Remove
3905 parameter 'lsal'. Update declaration.
3906 (bkpt_create_breakpoints_sal): Caller update.
3907 (tracepoint_create_breakpoints_sal): Likewise.
3909 2013-06-20 Pedro Alves <pedro@codesourcery.com>
3910 Yao Qi <yao@codesourcery.com>
3912 * NEWS: Mention the new option '--skip-unavailable' of command
3913 -data-list-register-values.
3914 * mi/mi-main.c (mi_cmd_data_list_register_values): Accept the
3915 --skip-unavailable option. Adjust to use output_register.
3916 (output_register): Add new 'skip_unavailable' parameter.
3919 2013-06-19 Mike Frysinger <vapier@gentoo.org>
3921 * Makefile.in (HFILES_NO_SRCDIR): Add common/i386-cpuid.h and
3922 common/i386-gcc-cpuid.h.
3923 * common/i386-cpuid.h: New wrapper header around i386-gcc-cpuid.h.
3924 * common/i386-gcc-cpuid.h: Rename from testsuite/gdb.arch/i386-cpuid.h.
3925 Copy the latest version from upstream gcc.
3926 * common/linux-btrace.c: Include i386-cpuid.h.
3927 (intel_supports_btrace): Delete x86 ifdefs and replace inline asm with
3929 (cpu_supports_btrace): Likewise.
3930 * go32-nat.c: Include i386-cpuid.h.
3931 (go32_sysinfo): Add (disabled) calls to i386_cpuid with comments.
3933 2013-06-19 Doug Evans <dje@google.com>
3935 * symfile.c (symfile_bfd_open): Delete unnecessary declaration.
3936 (get_section_index): Ditto.
3938 2013-06-19 Tom Tromey <tromey@redhat.com>
3940 * breakpoint.c (_initialize_breakpoint): Remove trailing \n from
3943 2013-06-18 Doug Evans <dje@google.com>
3945 * dwarf2read.c (dw2_symtab_iter_next): Check value of cu_index
3947 (dw2_expand_symtabs_matching): Fix symbol kind validity check.
3948 Move test of cu_index closer to use. Print complaint if cu_index
3951 2013-06-18 Joel Brobecker <brobecker@adacore.com>
3953 * machoread.c (oso_vector): Delete this global.
3954 (macho_register_oso): Add new parameter "oso_vector_ptr".
3955 Use it instead of the "oso_vector" global.
3956 (macho_symtab_read, macho_symfile_read_all_oso): Likewise.
3957 (macho_symfile_read): Use a local oso_vector, to be free'ed
3958 at the end of this function, in place of the old "oso_vector"
3959 global. Update various function calls accordingly. Use one
3960 single cleanup chain for the entire function.
3962 2013-06-18 Joel Brobecker <brobecker@adacore.com>
3964 * dwarf2read.c (dwarf2_per_objfile_free): Replace uses of
3965 DWARF2_PER_OBJFILE by uses of DATA instead.
3967 2013-06-18 Tom Tromey <tromey@redhat.com>
3969 * break-catch-sig.c (signal_catchpoint_explains_signal): Add 'sig'
3971 * breakpoint.c (bpstat_explains_signal): Add 'sig' argument.
3972 Special case signals other than GDB_SIGNAL_TRAP.
3973 (explains_signal_watchpoint): New function.
3974 (base_breakpoint_explains_signal): Add 'sig' argument.
3975 (initialize_breakpoint_ops): Set 'explains_signal' method for
3977 * breakpoint.h (struct breakpoint_ops) <explains_signal>: Add
3979 (bpstat_explains_signal): Likewise.
3980 * infrun.c (handle_syscall_event, handle_inferior_event): Update.
3982 2013-06-18 Tom Tromey <tromey@redhat.com>
3984 * python/py-inferior.c (gdbpy_selected_inferior): Don't incref.
3986 2013-06-18 Tom Tromey <tromey@redhat.com>
3988 * python/python.c (finish_python_initialization): Decref
3989 'pythondir' on failure path as well.
3991 2013-06-18 Tom Tromey <tromey@redhat.com>
3994 * dwarf2loc.c (read_pieced_value): Truncate this_size_bits
3995 after taking bits_to_skip into account. Sign extend byte_offset.
3996 * utils.h (gdb_sign_extend): Declare.
3997 * utils.c (gdb_sign_extend): New function.
3999 2013-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4001 * dwarf2read.c (write_psymtabs_to_index): Ignore NULL PSYMTAB.
4003 2013-06-17 Pierre Muller <muller@sourceware.org>
4005 * corelow.c (core_open): Print GDB signal name instead of target
4008 2013-06-17 Mike Frysinger <vapier@gentoo.org>
4010 * .gitignore: Add /gcore.
4012 2013-06-13 Doug Evans <dje@google.com>
4014 * dwarf2read.c (try_open_dwop_file): Work around behaviour of
4015 OPF_TRY_CWD_FIRST to not search path if the file contains a '/'.
4017 2013-06-12 Phil Muldoon <pmuldoon@redhat.com>
4019 * stack.c (backtrace_command_1): Fix indentation.
4021 2013-06-11 Joel Brobecker <brobecker@adacore.com>
4023 * window-nat.c (thread_rec): Add missing empty line after
4024 local variable declaration.
4026 2013-06-11 Joel Brobecker <brobecker@adacore.com>
4028 * windows-nat.c (thread_rec): Revert format used to print
4029 error code returned by SuspendThread from %d back to %u.
4031 2013-06-11 Joel Brobecker <brobecker@adacore.com>
4033 * windows-nat.c (windows_continue): Add "0x" prefix for thread
4035 (get_windows_debug_event): Likewise, for all debug traces.
4037 2013-06-11 Joel Brobecker <brobecker@adacore.com>
4039 * window-nat.c (thread_rec): Add thread ID in SuspendThread
4042 2013-06-08 Pedro Alves <pedro@codesourcery.com>
4043 Yao Qi <yao@codesourcery.com>
4045 * mi/mi-main.c (get_register): Remove declaration.
4046 (output_register): Declare.
4047 (mi_cmd_data_list_register_values): Remove local variable
4048 'tuple_cleanup'. Move some code into output_register.
4049 (get_register): Renamed to ...
4050 (output_register): ... this. Output the register's
4051 "number" ui_out tuple here.
4053 2013-06-07 Pedro Alves <palves@redhat.com>
4055 * darwin-nat.c: Fix formating in copyright header.
4056 * darwin-nat.h: Likewise.
4057 * gnu-nat.c: Likewise.
4058 * machoread.c: Likewise.
4060 2013-06-07 Pedro Alves <palves@redhat.com>
4063 * regformats/regdat.sh: Output #include tdesc.h. Make globals
4064 static. Output a global target description pointer.
4065 (init_registers_${name}): Adjust to initialize a
4066 target description structure.
4068 2013-06-07 Will Newton <will.newton@linaro.org>
4070 * printcmd.c (build_address_symbolic): Call
4071 gdbarch_addr_bits_remove for text minimal symbols.
4073 2013-06-07 Will Newton <will.newton@linaro.org>
4075 * MAINTAINERS: Add myself to Write After Approval.
4077 2013-06-07 Yao Qi <yao@codesourcery.com>
4079 * tracepoint.c (start_tracing): Move code to ...
4080 (trace_reset_local_state): ... here. New.
4081 (disconnect_tracing): Don't call set_current_traceframe,
4082 set_tracepoint_num, and set_traceframe_context. Call
4083 trace_reset_local_state instead.
4084 (tfile_close): Call trace_reset_local_state.
4085 * ctf.c (ctf_close): Likewise.
4086 * remote.c (remote_close): Likewise.
4087 * tracepoint.h (trace_reset_local_state): Declare.
4089 2013-06-06 Doug Evans <dje@google.com>
4091 * dwarf2read.c: Whitespace fixes for DWP file format documentation,
4092 and fix header docs.
4094 2013-06-05 Doug Evans <dje@google.com>
4095 Keith Seitz <keiths@redhat.com>
4098 * cp-namespace.c (find_symbol_in_baseclass): Call
4099 cp_lookup_symbol_in_namespace instead of cp_lookup_symbol_namespace.
4100 Check result of call to lookup_symbol_static.
4101 Call lookup_static_symbol_aux unconditionally.
4102 Call check_typedef on base types before accessing them.
4103 (cp_lookup_nested_symbol): Fix comment.
4105 2013-06-05 Luis Machado <lgustavo@codesourcery.com>
4107 * gnu-v3-abi.c (gnuv3_skip_trampoline): Handle thunk
4108 minimal symbols pointing to function descriptors.
4110 2013-06-05 Tom Tromey <tromey@redhat.com>
4112 * python/py-utils.c (gdb_pymodule_addobject): Cast away const.
4114 2013-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
4115 Pedro Alves <palves@redhat.com>
4117 * remote.c (remote_wait_as): Restore signal handler before returning
4118 when GDB gets a notification.
4120 2013-06-04 Gary Benson <gbenson@redhat.com>
4123 * breakpoint.h (handle_solib_event): Moved function declaration
4125 * breakpoint.c (handle_solib_event): Moved function to solib.c.
4126 (bpstat_stop_status): Pass new argument to handle_solib_event.
4127 * solib.h (update_solib_breakpoints): New function declaration.
4128 (handle_solib_event): Moved function declaration from
4130 * solib.c (update_solib_breakpoints): New function.
4131 (handle_solib_event): Moved function from breakpoint.c.
4132 Updated to call solib_ops->handle_event if not NULL.
4133 * solist.h (target_so_ops): New fields "update_breakpoints" and
4135 * infrun.c (set_stop_on_solib_events): New function.
4136 (_initialize_infrun): Use the above for "set
4137 stop-on-solib-events".
4138 (handle_inferior_event): Pass new argument to handle_solib_event.
4139 * solib-svr4.c (probe.h): New include.
4140 (svr4_free_library_list): New forward declaration.
4141 (probe_action): New enum.
4142 (probe_info): New struct.
4143 (probe_info): New static variable.
4144 (NUM_PROBES): New definition.
4145 (svr4_info): New fields "using_xfer", "probes_table" and
4147 (free_probes_table): New function.
4148 (free_solib_list): New function.
4149 (svr4_pspace_data_cleanup): Free probes table and solib list.
4150 (svr4_copy_library_list): New function.
4151 (svr4_current_sos_via_xfer_libraries): New parameter "annex".
4152 (svr4_read_so_list): New parameter "prev_lm".
4153 (svr4_current_sos_direct): Renamed from "svr4_current_sos".
4154 (svr4_current_sos): New function.
4155 (probe_and_action): New struct.
4156 (hash_probe_and_action): New function.
4157 (equal_probe_and_action): Likewise.
4158 (register_solib_event_probe): Likewise.
4159 (solib_event_probe_at): Likewise.
4160 (solib_event_probe_action): Likewise.
4161 (solist_update_full): Likewise.
4162 (solist_update_incremental): Likewise.
4163 (disable_probes_interface_cleanup): Likewise.
4164 (svr4_handle_solib_event): Likewise.
4165 (svr4_update_solib_event_breakpoint): Likewise.
4166 (svr4_update_solib_event_breakpoints): Likewise.
4167 (svr4_create_solib_event_breakpoints): Likewise.
4168 (enable_break): Free probes table before creating breakpoints.
4169 Use svr4_create_solib_event_breakpoints to create breakpoints.
4170 (svr4_solib_create_inferior_hook): Free the solib list.
4171 (_initialize_svr4_solib): Initialise
4172 svr4_so_ops.handle_solib_event and svr4_so_ops.update_breakpoints.
4174 2013-06-04 Gary Benson <gbenson@redhat.com>
4176 * target.h (target_ops): New field
4177 "to_augmented_libraries_svr4_read".
4178 (target_augmented_libraries_svr4_read): New macro.
4179 * target.c (update_current_target): Handle
4180 to_augmented_libraries_svr4_read.
4181 * remote.c (remote_state): New field
4182 "augmented_libraries_svr4_read".
4183 (remote_augmented_libraries_svr4_read_feature): New function.
4184 (remote_protocol_features): Add entry for
4185 "augmented-libraries-svr4-read".
4186 (remote_augmented_libraries_svr4_read): New function.
4187 (init_remote_ops): Initialize
4188 remote_ops.to_augmented_libraries_svr4_read.
4190 2013-06-04 Gary Benson <gbenson@redhat.com>
4194 2013-06-04 Gary Benson <gbenson@redhat.com>
4196 * objfiles.h (inhibit_section_map_updates): New function
4198 (resume_section_map_updates): Likewise.
4199 (resume_section_map_updates_cleanup): Likewise.
4200 * objfiles.c (objfile_pspace_info): Removed field
4201 "objfiles_changed_p". New fields "new_objfiles_available",
4202 "section_map_dirty" and "inhibit_updates".
4203 (allocate_objfile): Set new_objfiles_available.
4204 (free_objfile): Set section_map_dirty.
4205 (objfile_relocate1): Likewise.
4206 (in_plt_section): Likewise.
4207 (find_pc_section): Update the conditions under which the
4208 section map will be updated.
4209 (inhibit_section_map_updates): New function.
4210 (resume_section_map_updates): Likewise.
4211 (resume_section_map_updates_cleanup): Likewise.
4213 2013-06-04 Gary Benson <gbenson@redhat.com>
4215 * probe.h (get_probe_argument_count): New declaration.
4216 (evaluate_probe_argument): Likewise.
4217 * probe.c (get_probe_argument_count): New function.
4218 (evaluate_probe_argument): Likewise.
4219 (probe_safe_evaluate_at_pc): Use the above new functions.
4221 2013-06-04 Alan Modra <amodra@gmail.com>
4223 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
4224 * rs6000-tdep.c (read_insn): Add frame param, don't assume big-endian.
4225 (ppc_insns_match_pattern): Add frame param. Avoid multiple
4226 target mem reads on optional insns.
4227 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Update
4228 ppc_insns_match_pattern calls.
4229 * ppc64-tdep.c (ppc64_standard_linkage2, ppc64_standard_linkage3):
4230 Add match for power7 thread safety insns, and new order of
4231 std 2,40(1) insn. Correct code shown for _dl_runtime_resolve
4232 invocation in comment, and update rest of comment.
4233 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN,
4234 PPC64_STANDARD_LINKAGE3_LEN): Delete.
4235 (ppc64_standard_linkage2_target): Update insn offsets.
4236 (ppc64_skip_trampoline_code): Use a single insn buffer. Match newer
4237 stubs first. Update calls.
4239 2013-06-04 Yao Qi <yao@codesourcery.com>
4241 * solib.c (solib_find): Don't need dir separator if path has
4244 2013-06-03 Joel Brobecker <brobecker@adacore.com>
4246 Revert (indirectly causes a SIGSEGV):
4247 * machoread.c (macho_symfile_read): Assign first cleanup to
4250 2013-06-03 Yao Qi <yao@codesourcery.com>
4252 * mi/mi-cmd-var.c (mi_no_values, mi_simple_values): Move to
4253 mi-parse.c. Make them static.
4254 (mi_all_values): Likewise.
4255 (mi_parse_values_option): Move to mi-parse.c. Rename it to
4256 mi_parse_print_values. Make it external.
4257 * mi/mi-cmds.h (mi_no_values, mi_simple_values, mi_all_values):
4258 Remove the declarations.
4259 * mi/mi-parse.c (mi_parse_print_values): Moved from mi-cmd-var.c.
4260 * mi/mi-parse.h (mi_parse_print_values): Declare.
4261 * mi/mi-cmd-stack.c: Include mi-parse.h.
4262 (parse_print_values): Remove
4263 (mi_cmd_stack_list_locals): Call mi_parse_print_values instead
4264 of parse_print_values.
4265 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Likewise.
4267 2013-05-31 Pedro Alves <pedro@codesourcery.com>
4268 Yao Qi <yao@codesourcery.com>
4270 * tracepoint.c (all_tracepoint_actions_and_cleanup): Declare.
4271 (encode_actions): Move code to ...
4272 (all_tracepoint_actions_and_cleanup): ... here. New.
4273 (trace_dump_command): Likewise.
4275 2013-05-30 Tom Tromey <tromey@redhat.com>
4277 * symmisc.c (maintenance_expand_symtabs): Call do_cleanups.
4279 2013-05-30 Tom Tromey <tromey@redhat.com>
4281 * xml-support.c (gdb_xml_create_parser_and_cleanup): Rename from
4282 gdb_xml_create_parser_and_cleanup_1. Return a cleanup. Remove
4283 'old_chain' argument. Add 'parser_result' argument.
4284 (gdb_xml_create_parser_and_cleanup): Remove old version.
4285 (gdb_xml_parse_quick): Update.
4286 (xml_process_xincludes): Update.
4287 * xml-support.h (gdb_xml_create_parser_and_cleanup): Don't
4290 2013-05-30 Tom Tromey <tromey@redhat.com>
4292 * probe.c (collect_probes): Check arguments for NULL before
4293 calling compile_rx_or_error.
4294 * utils.c (compile_rx_or_error): Require 'rx' to be non-NULL.
4297 2013-05-30 Tom Tromey <tromey@redhat.com>
4299 * infrun.c (adjust_pc_after_break): Introduce an outer null
4302 2013-05-30 Tom Tromey <tromey@redhat.com>
4304 * mi/mi-cmd-var.c (varobj_update_one): Add an outer null cleanup.
4306 2013-05-30 Tom Tromey <tromey@redhat.com>
4308 * cli/cli-script.c (read_command_lines_1): Use a null cleanup
4309 for 'old_chain'. Do not check 'head' before processing
4312 2013-05-30 Tom Tromey <tromey@redhat.com>
4314 * mi/mi-cmd-stack.c (list_arg_or_local): Remove
4317 2013-05-30 Tom Tromey <tromey@redhat.com>
4319 * dbxread.c (dbx_read_symtab): Declare 'back_to' in a more
4320 inner scope. Unconditionally call do_cleanups.
4322 2013-05-30 Tom Tromey <tromey@redhat.com>
4324 * source.c (find_and_open_source): Call do_cleanups.
4326 2013-05-30 Tom Tromey <tromey@redhat.com>
4328 * linux-thread-db.c (thread_db_load_search): Unconditionally
4331 2013-05-30 Tom Tromey <tromey@redhat.com>
4333 * solib-aix.c (solib_aix_bfd_open): Don't use a null cleanup
4334 for 'cleanup'; instead use a later one.
4336 2013-05-30 Tom Tromey <tromey@redhat.com>
4338 * python/py-breakpoint.c (bppy_get_commands): Use
4339 explicit, unconditional return.
4340 * python/py-frame.c (frapy_read_var): Likewise.
4341 * python/python.c (gdbpy_decode_line): Likewise.
4343 2013-05-30 Tom Tromey <tromey@redhat.com>
4345 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Call
4346 do_cleanups on all return paths.
4348 2013-05-30 Tom Tromey <tromey@redhat.com>
4350 * top.c (execute_command): Discard 'cleanup_if_error' cleanups.
4352 2013-05-30 Tom Tromey <tromey@redhat.com>
4354 * stabsread.c (read_struct_type): Call do_cleanups along
4357 2013-05-30 Maciej W. Rozycki <macro@codesourcery.com>
4359 * mips-linux-tdep.c: Adjust formatting throughout.
4361 2013-05-30 Tom Tromey <tromey@redhat.com>
4363 * mipsread.c (read_alphacoff_dynamic_symtab): Call do_cleanups
4364 along all return paths.
4366 2013-05-30 Tom Tromey <tromey@redhat.com>
4368 * symfile.c (find_separate_debug_file): Call do_cleanups
4369 along all return paths.
4371 2013-05-30 Tom Tromey <tromey@redhat.com>
4373 * symtab.c (search_symbols): Introduce a null cleanup for
4376 2013-05-30 Tom Tromey <tromey@redhat.com>
4378 * python/py-value.c (valpy_binop): Call do_cleanups before
4381 2013-05-30 Tom Tromey <tromey@redhat.com>
4383 * python/py-prettyprint.c (print_children): Remove extra
4386 2013-05-30 Tom Tromey <tromey@redhat.com>
4388 * python/py-frame.c (frapy_read_var): Call do_cleanups along
4391 2013-05-30 Tom Tromey <tromey@redhat.com>
4393 * python/py-breakpoint.c (bppy_get_commands): Call do_cleanups
4394 along all return paths.
4396 2013-05-30 Tom Tromey <tromey@redhat.com>
4398 * cli/cli-logging.c (set_logging_redirect): Unconditionally
4401 2013-05-30 Tom Tromey <tromey@redhat.com>
4403 * varobj.c (c_value_of_root): Call do_cleanups along all
4406 2013-05-30 Tom Tromey <tromey@redhat.com>
4408 * tracepoint.c (trace_dump_command): Unconditionally call
4411 2013-05-30 Tom Tromey <tromey@redhat.com>
4413 * breakpoint.c (output_thread_groups, parse_cmd_to_aexpr): Call
4414 do_cleanups earlier.
4416 2013-05-30 Tom Tromey <tromey@redhat.com>
4418 * machoread.c (macho_symfile_read): Assign first cleanup to
4421 2013-05-30 Tom Tromey <tromey@redhat.com>
4423 * m32r-rom.c (m32r_load): Call do_cleanups at all returns.
4425 2013-05-30 Tom Tromey <tromey@redhat.com>
4427 * mi/mi-main.c (list_available_thread_groups): Call do_cleanups.
4429 2013-05-30 Tom Tromey <tromey@redhat.com>
4431 * inf-ptrace.c (inf_ptrace_create_inferior): Unconditionally
4432 call discard_cleanups.
4433 (inf_ptrace_attach): Likewise.
4435 2013-05-30 Tom Tromey <tromey@redhat.com>
4437 * remote-mips.c (mips_exit_debug): Call do_cleanups on all
4439 (mips_initialize): Likewise.
4440 (common_open): Call do_cleanups.
4442 2013-05-30 Tom Tromey <tromey@redhat.com>
4444 * utils.c (internal_vproblem): Call do_cleanups.
4446 2013-05-30 Tom Tromey <tromey@redhat.com>
4448 * linespec.c (find_linespec_symbols): Don't reassign to 'cleanup'.
4450 2013-05-30 Tom Tromey <tromey@redhat.com>
4452 * cli/cli-script.c (setup_user_args): Don't return after error.
4454 2013-05-30 Tom Tromey <tromey@redhat.com>
4456 * somread.c (som_symtab_read): Call do_cleanups.
4458 2013-05-30 Tom Tromey <tromey@redhat.com>
4460 * printcmd.c (print_command_1): Unconditionally call do_cleanups.
4462 2013-05-30 Tom Tromey <tromey@redhat.com>
4464 * cli/cli-cmds.c (cd_command, alias_command): Call do_cleanups.
4465 * cli/cli-dump.c (restore_binary_file): Call do_cleanups.
4466 * interps.c (interpreter_exec_cmd): Call do_cleanups.
4467 * source.c (show_substitute_path_command): Call do_cleanups.
4468 (unset_substitute_path_command, set_substitute_path_command):
4470 * symfile.c (load_command): Call do_cleanups.
4472 2013-05-30 Tom Tromey <tromey@redhat.com>
4474 * contrib/cleanup_check.py: New file.
4475 * contrib/gcc-with-excheck: Add option parsing.
4477 2013-05-30 Joel Brobecker <brobecker@adacore.com>
4479 * windows-nat.c (windows_delete_thread): Add missing space
4482 2013-05-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
4484 * inferior.c (top level): Include tilde.h.
4485 (add_inferior_command): Call tilde_expand on the value of 'exec'
4488 2013-05-30 Pedro Alves <pedro@codesourcery.com>
4489 Yao Qi <yao@codesourcery.com>
4491 * tracepoint.c (encode_actions_1): Remove parameter 't'.
4493 (encode_actions): Likewise.
4494 * remote.c (remote_download_tracepoint): Caller update.
4495 * tracepoint.h (encode_actions): Update declaration.
4497 2013-05-30 Pedro Alves <palves@redhat.com>
4499 * python/python-internal.h (gdb_Py_DECREF): Cast OP to PyObject
4502 2013-05-30 Yao Qi <yao@codesourcery.com>
4504 * remote.c (remote_check_symbols): Remove unused parameter
4507 (remote_start_remote, remote_new_objfile): Caller update.
4509 2013-05-30 Yao Qi <yao@codesourcery.com>
4511 * mi/mi-cmds.c (mi_cmds): Define MI command
4512 '-exec-arguments' by macro DEF_MI_CMD_CLI_1 instead of
4515 2013-05-29 Pedro Alves <palves@redhat.com>
4517 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint)
4518 (remote_insert_watchpoint, remote_remove_watchpoint)
4519 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
4520 (remote_verify_memory, compare_sections_command)
4521 (remote_search_memory): Set the general process/thread on the
4524 2013-05-29 Pedro Alves <palves@redhat.com>
4526 * aarch64-tdep.c: Don't include "features/aarch64-without-fpu.c".
4527 (_initialize_aarch64_tdep): Don't call
4528 initialize_tdesc_aarch64_without_fpu.
4529 * features/Makefile (WHICH): Remove reference to
4530 aarch64-without-fpu.
4531 * features/aarch64-without-fpu.c: Delete file.
4532 * regformats/aarch64-without-fpu.dat: Delete file.
4534 2013-05-28 Yao Qi <yao@codesourcery.com>
4536 * tracepoint.c (stringify_collection_list): Remove parameter
4538 (encode_actions): Caller update. Remove local variables.
4540 2013-05-24 Yao Qi <yao@codesourcery.com>
4542 * tracepoint.c (TFILE_PID): Remove.
4543 (tfile_open): Don't add thread and inferior.
4544 (tfile_close): Don't set 'inferior_ptid'. Don't call
4545 exit_inferior_silent.
4546 (tfile_thread_alive): Remove.
4547 (init_tfile_ops): Don't set field 'to_thread_alive' of
4550 2013-05-23 Doug Evans <dje@google.com>
4552 * contrib/cc-with-tweaks.sh (-p): Handle no dwo files.
4554 2013-05-23 Pedro Alves <palves@redhat.com>
4556 * common/filestuff.c [USE_WIN32API]: Define HAVE_SOCKETS.
4557 [HAVE_SYS_SOCKET_H]: Define HAVE_SOCKETS.
4558 (socket_mark_cloexec, gdb_socketpair_cloexec, gdb_socket_cloexec):
4559 Only define if HAVE_SOCKETS is defined.
4560 * configure.ac: Check for sys/socket.h.
4561 * config.in, configure: Regenerate.
4563 2013-05-23 Pedro Alves <palves@redhat.com>
4565 * dwarf2read.c (create_dwp_hash_table, create_dwo_in_dwp)
4566 (open_and_init_dwp_file): Use %s/pulongest instead of %u for
4567 printing uint32_t variables.
4569 2013-05-23 Pedro Alves <palves@redhat.com>
4571 * NEWS: Mention GDBserver range stepping support.
4573 2013-05-23 Yao Qi <yao@codesourcery.com>
4574 Pedro Alves <palves@redhat.com>
4576 * gdbthread.h (struct thread_control_state) <may_range_step>: New
4578 * infcmd.c (step_once, until_next_command): Enable range stepping.
4579 * infrun.c (displaced_step_prepare): Disable range stepping.
4580 (resume): Disable range stepping if stepping over a breakpoint or
4581 we have software watchpoints. If range stepping is enabled,
4582 assert the thread is in the stepping range.
4583 (clear_proceed_status_thread): Clear may_range_step.
4584 (handle_inferior_event): Disable range stepping as soon as we know
4585 the thread that hit the event. Re-enable it whenever we're going
4586 to step with a step range.
4587 * remote.c (struct vCont_action_support) <r>: New field.
4588 (use_range_stepping): New global.
4589 (remote_vcont_probe): Handle 'r' action.
4590 (append_resumption): Append an 'r' action if the thread may range
4592 (show_range_stepping): New function.
4593 (set_range_stepping): New function.
4594 (_initialize_remote): Call add_setshow_boolean_cmd to register the
4595 'set range-stepping' and 'show range-stepping' commands.
4596 * NEWS: Mention range stepping, the new vCont;r action, and the
4597 new "set/show range-stepping" commands.
4599 2013-05-23 Yao Qi <yao@codesourcery.com>
4600 Pedro Alves <palves@redhat.com>
4602 * remote.c (struct vCont_action_support): New struct.
4603 (struct remote_state) <support_vCont_t>: Remove field.
4604 <vCont_actions_support>: New field.
4605 (remote_vcont_probe, remote_stop_ns): Update.
4607 2013-05-23 Yao Qi <yao@codesourcery.com>
4608 Pedro Alves <palves@redhat.com>
4610 * gdbthread.h (pc_in_thread_step_range): New declaration.
4611 * thread.c (pc_in_thread_step_range): New function.
4612 * infrun.c (handle_inferior_event): Use it.
4614 2013-05-23 Joel Brobecker <brobecker@adacore.com>
4616 * mi/mi-cmd-break.c (mi_argv_to_format): Use xsnprintf instead
4619 2013-05-22 Keith Seitz <keiths@redhat.com>
4621 * ada-lang.c (is_known_support_routine): Add explicit free of
4622 'func_name' from find_frame_funname.
4623 (ada_unhandled_exception_name_addr_from_raise): Add cleanups
4624 for func_name from find_frame_funname.
4625 * python/py-frame.c (frapy_name): Add explicit free of
4626 'name' from find_frame_funname.
4627 * stack.c (find_frame_funname): Add comment explaining that
4628 funcp must be freed by the caller.
4629 Return copy of symbol names instead of pointers.
4630 (print_frame): Add a cleanup for 'funname' from
4632 * stack.h (find_frame_funname): Remove "const" from
4633 'funname' parameter.
4635 2013-05-22 Tom Tromey <tromey@redhat.com>
4638 * c-valprint.c (c_value_print): Use value_addr for
4639 references. Convert back to reference type with value_ref.
4641 2013-05-22 Eli Zaretskii <eliz@gnu.org>
4643 * windows-nat.c (handle_unload_dll): Don't call solib_add for the
4644 unloaded DLL, it will be done by handle_solib_event. See
4645 http://sourceware.org/ml/gdb-patches/2013-05/msg00713.html for the
4648 2013-05-22 Phil Muldoon <pmuldoon@redhat.com>
4650 * ui-out.c: Create typedef ui_out_level_p and define vector
4651 operations for that type.
4652 (struct ui_out): Use a vector instead of an array.
4653 (current_level): Return level from a vector.
4654 (push_level): Create a level in a vector.
4655 (pop_level): Delete a level in a vector.
4656 (ui_out_new): Create initial level zero level, and store in a
4658 (ui_out_destroy): Add vector cleanup.
4660 2013-05-22 Pedro Alves <palves@redhat.com>
4662 * python/python-internal.h (gdb_Py_DECREF): Tag with
4663 "ARI: editCase function".
4665 2013-05-21 Paul Pluzhnikov <ppluzhnikov@google.com>
4667 * solib-svr4.c (svr4_free_so): Protect against NULL dereference.
4669 2013-05-21 Pedro Alves <palves@redhat.com>
4671 * python/py-prettyprint.c (apply_val_pretty_printer): Check
4672 whether PRINTER is NULL before installing a Py_DECREF cleanup.
4673 * python/py-utils.c (py_decref): Don't check for NULL before
4676 2013-05-21 Pedro Alves <palves@redhat.com>
4678 * python/py-utils.c (py_decref): Remove extra braces.
4679 (gdb_pymodule_addobject): Remove extra braces.
4680 * python-internal.h (gdb_Py_DECREF): New static inline function.
4681 (Py_DECREF): Redefine as calling gdb_Py_DECREF.
4683 2013-05-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4685 * breakpoints.c (detach_breakpoints): Do not
4686 detach breakpoints locations with loc_type bp_loc_other.
4688 2013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4690 Workaround Python 2.6.
4691 * python/py-utils.c (gdb_pymodule_addobject): Wrap Py_DECREF into
4694 2013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4696 Code cleanup: constification.
4697 * solib.c (solib_ops): Make return type and ops variable type const.
4698 (set_solib_ops): Make the new_ops parameter and ops variable const.
4699 (solib_find, solib_map_sections, clear_so, free_so, update_solib_list)
4700 (solib_add, solib_keep_data_in_core, clear_solib)
4701 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
4702 (reload_shared_libraries, solib_global_lookup): Make the ops variable
4704 * solib.h (set_solib_ops): Make the new_ops parameter const.
4706 2013-05-21 Joel Brobecker <brobecker@adacore.com>
4708 * data-directory/Makefile.in (SYSTEM_GDBINIT_SRCDIR): New
4710 (VPATH): Add SYSTEM_GDBINIT_SRCDIR.
4711 (SYSTEM_GDBINIT_DIR, SYSTEM_GDBINIT_INSTALL_DIR)
4712 (SYSTEM_GDBINIT_FILES): New variables.
4713 (all): Add stamp-system-gdbinit.
4714 (stamp-system-gdbinit): New rule.
4715 (clean-system-gdbinit, install-system-gdbinit)
4716 (uninstall-system-gdbinit): New rules. Make them .PHONY.
4717 (install-only): Add dependency on install-system-gdbinit.
4718 (uninstall): Add dependency on uninstall-system-gdbinit.
4719 (clean): Add dependency on clean-system-gdbinit.
4720 * system-gdbinit/elinos.py: New file.
4721 * system-gdbinit/wrs-linux.py: New file.
4723 2013-05-21 Joel Brobecker <brobecker@adacore.com>
4725 * ada-lang.c (old_renaming_is_invisible): Fix cleanup leak.
4727 2013-05-21 Hui Zhu <hui@codesourcery.com>
4729 * breakpoint.c (dprintf_breakpoint_ops): Remove its static.
4730 * breakpoint.h (dprintf_breakpoint_ops): Add extern.
4731 * mi/mi-cmd-break.c (ctype.h): New include.
4732 (gdb_obstack.h): New include.
4733 (mi_argv_to_format, mi_cmd_break_insert_1): New.
4734 (mi_cmd_break_insert): Call mi_cmd_break_insert_1.
4735 (mi_cmd_dprintf_insert): New.
4736 * mi/mi-cmds.c (mi_cmds): Add "dprintf-insert".
4737 * mi/mi-cmds.h (mi_cmd_dprintf_insert): New extern.
4739 2013-05-20 Tom Tromey <tromey@redhat.com>
4741 * python/py-prettyprint.c (search_pp_list): Decref 'attr'.
4743 2013-05-20 Tom Tromey <tromey@redhat.com>
4745 * python/py-value.c (valpy_get_dynamic_type): Simplify
4746 dynamic_type assignment. Use Py_XINCREF.
4748 2013-05-20 Tom Tromey <tromey@redhat.com>
4750 * python/py-type.c (typy_fields): Unconditionally decref 'r'.
4752 2013-05-20 Tom Tromey <tromey@redhat.com>
4754 * python/py-frame.c (frapy_older, frapy_newer, gdbpy_newest_frame)
4755 (gdbpy_selected_frame): Move object-construction code
4758 2013-05-20 Tom Tromey <tromey@redhat.com>
4760 * python/py-arch.c (gdbpy_initialize_arch): Use
4761 gdb_pymodule_addobject.
4762 * python/py-block.c (gdbpy_initialize_blocks): Use
4763 gdb_pymodule_addobject.
4764 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Use
4765 gdb_pymodule_addobject.
4766 * python/py-cmd.c (gdbpy_initialize_breakpoints): Use
4767 gdb_pymodule_addobject.
4768 * python/py-event.c (gdbpy_initialize_event_generic): Use
4769 gdb_pymodule_addobject.
4770 * python/py-evtregistry.c (gdbpy_initialize_eventregistry): Use
4771 gdb_pymodule_addobject.
4772 * python/py-evts.c (add_new_registry): Use
4773 gdb_pymodule_addobject.
4774 (gdbpy_initialize_py_events): Likewise.
4775 * python/py-finishbreakpoint.c
4776 (gdbpy_initialize_finishbreakpoints): Use
4777 gdb_pymodule_addobject.
4778 * python/py-frame.c (gdbpy_initialize_frames): Use
4779 gdb_pymodule_addobject.
4780 * python/py-function.c (gdbpy_initialize_functions): Use
4781 gdb_pymodule_addobject.
4782 * python/py-inferior.c (gdbpy_initialize_inferior): Use
4783 gdb_pymodule_addobject.
4784 * python/py-infthread.c (gdbpy_initialize_thread): Use
4785 gdb_pymodule_addobject.
4786 * python/py-objfile.c (gdbpy_initialize_objfile): Use
4787 gdb_pymodule_addobject.
4788 * python/py-param.c (gdbpy_initialize_parameters): Use
4789 gdb_pymodule_addobject.
4790 * python/py-progspace.c (gdbpy_initialize_pspace): Use
4791 gdb_pymodule_addobject.
4792 * python/py-symbol.c (gdbpy_initialize_symbols): Use
4793 gdb_pymodule_addobject.
4794 * python/py-symtab.c (gdbpy_initialize_symtabs): Use
4795 gdb_pymodule_addobject.
4796 * python/py-type.c (gdbpy_initialize_types): Use
4797 gdb_pymodule_addobject.
4798 * python/py-utils.c (gdb_pymodule_addobject): New function.
4799 * python/py-value.c (gdbpy_initialize_values): Use
4800 gdb_pymodule_addobject.
4801 * python/python-internal.h (gdb_pymodule_addobject): Declare.
4802 * python/python.c (_initialize_python): Use
4803 gdb_pymodule_addobject.
4805 2013-05-20 Tom Tromey <tromey@redhat.com>
4807 * python/py-cmd.c (cmdpy_completer): Use explicit decref.
4808 * python/py-param.c (get_set_value, get_show_value): Use
4810 * python/python.c (start_type_printers, apply_type_printers):
4811 Use explicit decrefs.
4813 2013-05-20 Tom Tromey <tromey@redhat.com>
4815 * python/py-evts.c (gdbpy_initialize_py_events): Don't
4818 2013-05-20 Tom Tromey <tromey@redhat.com>
4820 * python/python.c (gdbpy_run_events): Decref the result
4821 of PyObject_CallObject.
4823 2013-05-20 Tom Tromey <tromey@redhat.com>
4825 * python/py-symtab.c (set_sal): Use
4826 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION. Return -1 on error.
4827 (symtab_and_line_to_sal_object): Update.
4829 2013-05-20 Tom Tromey <tromey@redhat.com>
4831 * python/py-param.c (compute_enum_values): Decref 'item'.
4833 2013-05-20 Tom Tromey <tromey@redhat.com>
4835 * mi/mi-main.c: Include python-internal.h.
4836 (mi_cmd_list_features): Check gdb_python_initialized.
4837 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
4838 (python_inferior_exit, python_new_objfile, add_thread_object)
4839 (delete_thread_object, py_free_inferior): Check
4840 gdb_python_initialized.
4841 * python/py-prettyprint.c (apply_val_pretty_printer): Check
4842 gdb_python_initialized.
4843 * python/py-type.c (save_objfile_types): Check
4844 gdb_python_initialized.
4845 * python/python-internal.h (gdb_python_initialized): Declare.
4846 * python/python.c (ensure_python_env): Throw exception if
4847 Python not initialized.
4848 (before_prompt_hook, source_python_script_for_objfile)
4849 (start_type_printers, apply_type_printers,
4850 free_type_printers): Check gdb_python_initialized.
4851 * varobj.c (varobj_get_display_hint)
4852 (dynamic_varobj_has_child_method, update_dynamic_varobj_children)
4853 (install_new_value_visualizer, varobj_set_visualizer)
4854 (value_get_print_value): Check gdb_python_initialized.
4856 2013-05-20 Tom Tromey <tromey@redhat.com>
4858 * python/py-arch.c (gdbpy_initialize_arch): Return 'int'.
4860 * python/py-auto-load.c (gdbpy_initialize_auto_load): Return 'int'.
4861 * python/py-block.c (gdbpy_initialize_blocks): Return 'int'.
4863 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Return 'int'.
4865 * python/py-cmd.c (gdbpy_initialize_commands): Return 'int'.
4867 * python/py-event.c (gdbpy_initialize_event): Return 'int'.
4869 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Change generated
4870 init function to return 'int'.
4871 * python/py-evtregistry.c (gdbpy_initialize_eventregistry):
4872 Return 'int'. Check errors.
4873 * python/py-evts.c (gdbpy_initialize_py_events): Return 'int'.
4875 * python/py-finishbreakpoint.c (gdbpy_initialize_finishbreakpoints):
4876 Return 'int'. Check errors.
4877 * python/py-frame.c (gdbpy_initialize_frames): Return 'int'.
4879 * python/py-function.c (gdbpy_initialize_functions): Return 'int'.
4881 * python/py-gdb-readline.c (gdbpy_initialize_gdb_readline):
4883 * python/py-inferior.c (gdbpy_initialize_inferior): Return 'int'.
4885 * python/py-infthread.c (gdbpy_initialize_thread): Return 'int'.
4887 * python/py-lazy-string.c (gdbpy_initialize_lazy_string): Return 'int'.
4889 * python/py-objfile.c (gdbpy_initialize_objfile): Return 'int'.
4891 * python/py-param.c (gdbpy_initialize_parameters): Return 'int'.
4893 * python/py-progspace.c (gdbpy_initialize_pspace): Return 'int'.
4895 * python/py-symbol.c (gdbpy_initialize_symbols): Return 'int'.
4897 * python/py-symtab.c (gdbpy_initialize_symtabs): Return 'int'.
4899 * python/py-type.c (gdbpy_initialize_types): Return 'int'.
4901 * python/py-value.c (gdbpy_initialize_values): Return 'int'.
4903 * python/python-internal.h (gdbpy_initialize_auto_load,
4904 gdbpy_initialize_values, gdbpy_initialize_frames,
4905 gdbpy_initialize_symtabs, gdbpy_initialize_commands,
4906 gdbpy_initialize_symbols, gdbpy_initialize_symtabs,
4907 gdbpy_initialize_blocks, gdbpy_initialize_types,
4908 gdbpy_initialize_functions, gdbpy_initialize_pspace,
4909 gdbpy_initialize_objfile, gdbpy_initialize_breakpoints,
4910 gdbpy_initialize_finishbreakpoints,
4911 gdbpy_initialize_lazy_string, gdbpy_initialize_parameters,
4912 gdbpy_initialize_thread, gdbpy_initialize_inferior,
4913 gdbpy_initialize_eventregistry, gdbpy_initialize_event,
4914 gdbpy_initialize_py_events, gdbpy_initialize_stop_event,
4915 gdbpy_initialize_signal_event,
4916 gdbpy_initialize_breakpoint_event,
4917 gdbpy_initialize_continue_event,
4918 gdbpy_initialize_exited_event, gdbpy_initialize_thread_event,
4919 gdbpy_initialize_new_objfile_event, gdbpy_initialize_arch):
4920 Update. Use CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
4921 * python/python.c (gdb_python_initialized): New global.
4922 (gdbpy_initialize_events): Return 'int'. Check errors.
4923 (_initialize_python): Check errors. Set
4924 gdb_python_initialized.
4926 2013-05-20 Tom Tromey <tromey@redhat.com>
4928 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope):
4929 Decref the reslut of PyObject_CallMethod.
4931 2013-05-20 Tom Tromey <tromey@redhat.com>
4933 * python/py-event.c (gdbpy_initialize_event_generic): Return
4934 early if PyType_Ready fails.
4936 2013-05-20 Tom Tromey <tromey@redhat.com>
4938 * python/py-type.c (make_fielditem): Add gdb_assert_not_reached
4939 as 'default' in the switch.
4941 2013-05-20 Tom Tromey <tromey@redhat.com>
4943 * python/py-inferior.c (gdbpy_inferiors): Update. Hoist
4944 get_addr_from_python calls out of TRY_CATCH.
4945 (infpy_write_memory, infpy_search_memory): Likewise.
4946 * python/py-utils.c (get_addr_from_python): Return negative
4947 value on error. Use TRY_CATCH.
4948 * python/python-internal.h (get_addr_from_python): Use
4949 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
4951 2013-05-20 Tom Tromey <tromey@redhat.com>
4953 * python/py-event.c (evpy_emit_event): Decref the
4954 result of PyObject_CallFunctionObjArgs.
4956 2013-05-20 Tom Tromey <tromey@redhat.com>
4958 * python/py-cmd.c (cmdpy_completer): Use iterator protocol.
4961 2013-05-20 Tom Tromey <tromey@redhat.com>
4963 * python/py-cmd.c (cmdpy_init): Decref 'ds_obj'.
4965 2013-05-20 Tom Tromey <tromey@redhat.com>
4967 * python/py-event.h (gdbpy_initialize_event_generic): Use
4968 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
4969 * python/py-evts.c (add_new_registry): Use
4970 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
4971 * python/python-internal.h
4972 (CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION): New macro.
4974 2013-05-20 Tom Tromey <tromey@redhat.com>
4976 * python/py-arch.c (archpy_disassemble): Update.
4977 * python/py-type.c (typy_get_composite, typy_lookup_typename)
4978 (typy_lookup_type): Use GDB_PY_HANDLE_EXCEPTION.
4979 * python/py-utils.c (gdbpy_convert_exception): Return 'void'.
4980 * python/python-internal.h (CPYCHECKER_SETS_EXCEPTION): New
4982 (GDB_PY_HANDLE_EXCEPTION): Update.
4983 (gdbpy_convert_exception): Update. Use CPYCHECKER_SETS_EXCEPTION.
4985 2013-05-20 Tom Tromey <tromey@redhat.com>
4987 * python/python-internal.h (events_object_type): Remove.
4989 2013-05-20 Tom Tromey <tromey@redhat.com>
4991 * python/py-event.h (evpy_emit_event): Use
4992 CPYCHECKER_STEALS_REFERENCE_TO_ARG.
4993 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
4996 2013-05-20 Tom Tromey <tromey@redhat.com>
4998 * py-evtregistry.c (create_event_object): Decref
4999 eventregistry_object if PyList_New fails.
5001 2013-05-20 Tom Tromey <tromey@redhat.com>
5003 * py-cmd.c (gdbpy_string_to_argv): Check result of
5006 2013-05-20 Tom Tromey <tromey@redhat.com>
5008 * python/python.c (before_prompt_hook): Add cleanup to
5011 2013-05-20 Tom Tromey <tromey@redhat.com>
5013 * python/py-function.c (fnpy_init): Decref result of
5014 PyObject_GetAttrString.
5016 2013-05-20 Tom Tromey <tromey@redhat.com>
5018 * python/py-threadevent.c (get_event_thread): Use
5019 CPYCHECKER_RETURNS_BORROWED_REF.
5020 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
5022 (pspace_to_pspace_object, objfile_to_objfile_object)
5023 (find_thread_object): Use it.
5025 2013-05-20 Tom Tromey <tromey@redhat.com>
5027 * python/py-arch.c (arch_object_type): Use
5028 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5029 * python/py-block.c (block_syms_iterator_object_type):
5030 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5031 * python/py-bpevent.c (breakpoint_event_object_type):
5032 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5033 * python/py-cmd.c (cmdpy_object_type): Use
5034 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5035 * python/py-continueevent.c (continue_event_object_type):
5036 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5037 * python/py-event.h (GDBPY_NEW_EVENT_TYPE):
5038 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5039 * python/py-events.h (thread_event_object_type):
5040 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5041 * python/py-evtregistry.c (eventregistry_object_type): Use
5042 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5043 * python/py-exitedevent.c (exited_event_object_type):
5044 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5045 * python/py-finishbreakpoint.c (finish_breakpoint_object_type):
5046 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5047 * python/py-function.c (fnpy_object_type): Use
5048 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5049 * python/py-inferior.c (inferior_object_type, membuf_object_type):
5050 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5051 * python/py-infthread.c (thread_object_type): Use
5052 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5053 * python/py-lazy-string.c (lazy_string_object_type):
5054 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5055 * python/py-newobjfileevent.c (new_objfile_event_object_type):
5056 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5057 * python/py-objfile.c (objfile_object_type): Use
5058 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5059 * python/py-param.c (parmpy_object_type):
5060 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5061 * python/py-progspace.c (pspace_object_type):
5062 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5063 * python/py-signalevent.c (signal_event_object_type):
5064 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5065 * python/py-symtab.c (symtab_object_type, sal_object_type): Use
5066 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5067 * python/py-type.c (type_object_type, field_object_type)
5068 (type_iterator_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5069 * python/py-internal.h (CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF): New
5071 (value_object_type, block_object_type, symbol_object_type)
5072 (event_object_type, stop_event_object_type, breakpoint_object_type)
5073 (frame_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5075 2013-05-20 Andreas Tobler <andreas@fgznet.ch>
5077 * Makefile.in (ALL_TARGET_OBS): Add ppcfbsd-tdep.o.
5078 (ALLDEPFILES): Add ppcfbsd-nat.c and ppcfbsd-tdep.c.
5080 2013-05-20 Doug Evans <dje@google.com>
5082 When reading CU, stay in DWO. Be more tolerent of bad debug info.
5084 * dwarf2read.c (struct dwarf2_per_cu_data): New member
5085 reading_dwo_directly.
5086 (struct signatured_type): New member dwo_unit.
5087 (struct die_reader_specs): New member comp_dir.
5088 (create_signatured_type_table_from_index): Use malloc for
5089 all_type_units instead of objfile's obstack.
5090 (create_all_type_units): Ditto.
5091 (fill_in_sig_entry_from_dwo_entry): New function.
5092 (add_type_unit): New function.
5093 (lookup_dwo_signatured_type): New function.
5094 (lookup_dwp_signatured_type): New function.
5095 (lookup_signatured_type): New arg cu. All callers updated.
5096 (init_cu_die_reader): Initialize comp_dir.
5097 (read_cutu_die_from_dwo): New arg stub_comp_dir. All callers updated.
5098 Change assert of matching type signatures to call error on mismatch.
5099 (lookup_dwo_unit): Add assert.
5100 (init_tu_and_read_dwo_dies): New function.
5101 (init_cutu_and_read_dies): Call it.
5102 (build_type_unit_groups): Handle case of no type unit groups created.
5103 (hash_dwo_file, eq_dwo_file): Handle missing comp_dir.
5104 (lookup_dwo_cutu): Tweak complaint.
5105 (dwarf2_free_abbrev_table): Check for NULL abbrev_table.
5106 (dwarf2_per_objfile_free): Free all_type_units.
5108 2013-05-20 Joel Brobecker <brobecker@adacore.com>
5110 * windows-nat.c (handle_unload_dll): Add missing empty line.
5112 2013-05-20 Joel Brobecker <brobecker@adacore.com>
5114 * dwarf2read.c (prototyped_function_p): New function.
5115 (read_subroutine_type): Use it.
5117 2013-05-20 Joel Brobecker <brobecker@adacore.com>
5119 * rs6000-aix-tdep.c: De-indent some example code provided
5122 2013-05-17 Edjunior Machado <emachado@linux.vnet.ibm.com>
5124 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Check if the
5125 region is ok for a hardware watchpoint using the new ptrace interface
5128 2013-05-17 Doug Evans <dje@google.com>
5130 * NEWS: Mention new maintenance commands check-symtabs, and
5131 expand-symtabs, and renamed check-psymtabs.
5132 * psymtab.c (maintenance_check_psymtabs): Renamed from
5133 maintenance_check_symtabs. Only process already-expanded symbol
5135 (_initialize_psymtab): Update.
5136 * symmisc.c (maintenance_check_symtabs): New function.
5137 (maintenance_expand_name_matcher): New function
5138 (maintenance_expand_file_matcher): New function
5139 (maintenance_expand_symtabs): New function.
5140 (_initialize_symmisc): Add "mt check-symtabs" and "mt expand-symtabs"
5143 2013-05-17 Tom Tromey <tromey@redhat.com>
5145 * python/py-inferior.c (infpy_read_memory): Don't call
5146 PyErr_SetString if PyObject_New fails.
5147 * python/py-frame.c (frame_info_to_frame_object): Don't call
5148 PyErr_SetString if PyObject_New fails.
5150 2013-05-17 Pavel Chupin <pavel.v.chupin@intel.com>
5152 * acinclude.m4: Add check for dlopen in libdl.
5153 * configure.ac: Ditto.
5154 * configure: Regenerate.
5156 2013-05-17 Phil Muldoon <pmuldoon@redhat.com>
5158 * frame.c (frame_stash): Convert to htab.
5159 (frame_addr_hash): New function.
5160 (frame_addr_hash_eq): New function.
5161 (frame_stash_create): Convert function to create
5163 (frame_stash_add): Convert function to add an entry to a hash
5165 (frame_stash_find): Convert function to search the hash table.
5166 (frame_stash_invalidate): Convert function to empty the hash
5168 (get_frame_id): Only add to stash if a frame_id is created.
5169 (_initialize_frame): Call frame_stash_create.
5171 2013-05-16 Yue Lu <hacklu.newborn@gmail.com> (tiny change)
5173 * configure.ac: Ensure MIG is available when building for GNU Hurd
5175 * configure: Regenerate.
5177 2013-05-16 Joel Brobecker <brobecker@adacore.com>
5179 * dwarf2read.c (set_cu_language): Add DW_LANG_UPC handling.
5181 2013-05-16 Joel Brobecker <brobecker@adacore.com>
5183 * ada-lang.c (ada_make_symbol_completion_list): Make sure
5184 all cleanups are done before returning from this function.
5186 2013-05-15 Joel Brobecker <brobecker@adacore.com>
5188 * utils.h: #include "exceptions.h".
5189 (enum errors): Remove partial declaration.
5191 2013-05-15 Joel Brobecker <brobecker@adacore.com>
5193 * gdbarch.sh (core_xfer_shared_libraries_aix): New method.
5194 * gdbarch.h, gdbarch.c: Regenerate.
5195 * corelow.c (core_xfer_partial): Add TARGET_OBJECT_LIBRARIES_AIX
5198 * rs6000-aix-tdep.h: New file.
5199 * Makefile.in (HFILES_NO_SRCDIR): Add rs6000-aix-tdep.h.
5200 * rs6000-aix-tdep.c: Include "rs6000-aix-tdep.h" and
5202 (struct field_info, struct ld_info_desc): New types.
5203 (ld_info32_desc, ld_info64_desc): New static constants.
5204 (struct ld_info): New type.
5205 (rs6000_aix_extract_ld_info): New function.
5206 (rs6000_aix_shared_library_to_xml): Likewise.
5207 (rs6000_aix_ld_info_to_xml): Likewise.
5208 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
5209 (rs6000_aix_init_osabi): Add call to
5210 set_gdbarch_core_xfer_shared_libraries_aix.
5211 * rs6000-nat.c: Add "rs6000-aix-tdep.h" include.
5212 Remove "xml-utils.h" include.
5213 (LdInfo): Delete typedef.
5214 (ARCH64_DECL, LDI_FIELD, LDI_NEXT, LDI_FD, LDI_FILENAME):
5216 (rs6000_ptrace_ldinfo): Change return type to gdb_byte *.
5217 Adjust code accordingly.
5218 (rs6000_core_ldinfo): Delete, folded into
5219 rs6000_aix_core_xfer_shared_libraries_aix.
5220 (rs6000_xfer_shared_library): Delete.
5221 (rs6000_xfer_shared_libraries): Reimplement.
5223 2013-05-15 Markus Metzger <markus.t.metzger@intel.com>
5225 * record.c (record_goto_cmdlist): New.
5226 (cmd_record_goto): Split into this ...
5227 (cmd_record_goto_begin): ... this
5228 (cmd_record_goto_end): ... and this.
5229 (_initialize_record): Change "record goto" to prefix command.
5230 Add commands for "record goto begin" and "record goto end".
5231 Add an alias for "record goto start" to "record goto begin".
5233 2013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
5235 * linespec.c (convert_linespec_to_sals): New comment for
5236 SOURCE_FILENAME assignment.
5238 2013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
5240 * cleanups.c (restore_my_cleanups): Replace gdb_assert by
5243 2013-05-14 Tom Tromey <tromey@redhat.com>
5245 * eval.c (parse_and_eval_long): Make 'exp' const.
5246 * value.h (parse_and_eval_long): Update.
5248 2013-05-14 Tom Tromey <tromey@redhat.com>
5250 * ui-file.c (gdb_fopen): Make arguments const.
5251 * ui-file.h (gdb_fopen): Make arguments const.
5253 2013-05-14 Tom Tromey <tromey@redhat.com>
5255 * remote.c (remote_set_trace_notes): Make arguments const.
5256 * target.c (update_current_target): Update cast.
5257 * target.h (to_set_trace_notes): Make arguments const.
5259 2013-05-14 Tom Tromey <tromey@redhat.com>
5261 * go32-nat.c (go32_terminal_info): Make 'args' const.
5262 * inferior.h (child_terminal_info): Update.
5263 * inflow.c (child_terminal_info): Make 'args' const.
5264 * target.c (default_terminal_info): Make 'args' const.
5265 (debug_to_terminal_save_ours): Likewise.
5266 * target.h (struct target_ops) <to_terminal_info>: Make argument
5269 2013-05-13 Tom Tromey <tromey@redhat.com>
5271 * gcore.c (create_gcore_bfd): Make 'filename' const.
5272 * gcore.h (create_gcore_bfd): Make 'filename' const.
5273 * record-full.c (record_full_save): Make 'recfilename' const.
5274 * target.c (target_save_record): Make 'filename' const.
5275 * target.h (struct target_ops) <to_save_record>: Make 'filename'
5277 (target_save_record): Likewise.
5279 2013-05-13 Tom Tromey <tromey@redhat.com>
5282 * dwarf2read.c (dwarf2_record_block_ranges): Ensure that the
5283 ranges section has been read.
5285 2013-05-13 Tom Tromey <tromey@redhat.com>
5288 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
5289 STRUCTOP_PTR>: Return a not_lval value for
5290 EVAL_AVOID_SIDE_EFFECTS.
5291 * opencl-lang.c (evaluate_subexp_opencl): Return a not_lval value
5292 for EVAL_AVOID_SIDE_EFFECTS.
5294 2013-05-13 Joel Brobecker <brobecker@adacore.com>
5296 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Convert
5297 floating point registers to register type before storing
5299 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call):
5302 2013-05-10 Joel Brobecker <brobecker@adacore.com>
5303 Tom Tromey <tromey@redhat.com>
5305 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
5307 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
5309 * darwin-nat.c (darwin_pre_ptrace): Use mark_fd_no_cloexec.
5310 (darwin_ptrace_him): Use unmark_fd_no_cloexec.
5311 * inf-ttrace.c (do_cleanup_pfds): Use unmark_fd_no_cloexec.
5312 (inf_ttrace_prepare): Use mark_fd_no_cloexec.
5314 2013-05-10 Freddie Chopin <freddie_chopin@op.pl>
5315 Tom Tromey <tromey@redhat.com>
5318 * configure: Rebuild.
5319 * configure.ac (build_warnings): Do not use -Wformat-nonliteral
5322 2013-05-10 Pedro Alves <palves@redhat.com>
5324 * remote.c (_initialize_remote): Fix spelling of
5325 qXfer:traceframe-info:read packet in packet config command.
5327 2013-05-10 David Taylor <dtaylor@emc.com>
5331 * remote.c (remote_trace_set_readonly_regions): Do not overwrite
5332 "QTro" at start of packet.
5334 2013-05-10 Joel Brobecker <brobecker@adacore.com>
5336 * solib-aix.c (solib_aix_relocate_section_addresses):
5337 For the .bss section action, apply the same offset as
5340 2013-05-10 Joel Brobecker <brobecker@adacore.com>
5342 * solib-aix.c (solib_aix_relocate_section_addresses):
5343 Remove FIXME comment.
5345 2013-05-10 Joel Brobecker <brobecker@adacore.com>
5348 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
5349 New functions, directly copied from sparc-sol-thread.c.
5350 * sparc-sol-thread.c: Delete.
5351 * configure.ac: Remove code handling sparc-solaris-thread.c.
5352 * configure: Regenerate.
5354 2013-05-10 Phil Muldoon <pmuldoon@redhat.com>
5356 * stack.c (backtrace_command_1): Add "no-filters", and Python frame
5358 (backtrace_command): Add "no-filters" option parsing.
5359 (_initialize_stack): Alter help to reflect "no-filters" option.
5360 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-framefilter.o
5361 (SUBDIR_PYTHON_SRCS): Add py-framefilter.c
5362 (py-frame.o): Add target
5363 * data-directory/Makefile.in (PYTHON_DIR): Add Python frame
5365 * python/python.h: Add new frame filter constants, and flag enum.
5366 (apply_frame_filter): Add definition.
5367 * python/python.c (apply_frame_filter): New non-Python
5369 * python/py-utils.c (py_xdecref): New function.
5370 (make_cleanup_py_xdecref): Ditto.
5371 * python/py-objfile.c: Declare frame_filters dictionary.
5372 (objfpy_dealloc): Add frame_filters dealloc.
5373 (objfpy_new): Initialize frame_filters attribute.
5374 (objfile_to_objfile_object): Ditto.
5375 (objfpy_get_frame_filters): New function.
5376 (objfpy_set_frame_filters): New function.
5377 * python/py-progspace.c: Declare frame_filters dictionary.
5378 (pspy_dealloc): Add frame_filters dealloc.
5379 (pspy_new): Initialize frame_filters attribute.
5380 (pspacee_to_pspace_object): Ditto.
5381 (pspy_get_frame_filters): New function.
5382 (pspy_set_frame_filters): New function.
5383 * python/py-framefilter.c: New file.
5384 * python/lib/gdb/command/frame_filters.py: New file.
5385 * python/lib/gdb/frames.py: New file.
5386 * python/lib/gdb/__init__.py: Initialize global frame_filters
5388 * python/lib/gdb/FrameDecorator.py: New file.
5389 * python/lib/gdb/FrameIterator.py: New file.
5390 * mi/mi-cmds.c (mi_cmds): Add frame filters command.
5391 * mi/mi-cmds.h: Declare.
5392 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Add
5393 --no-frame-filter logic, and Python frame filter logic.
5394 (stack_enable_frame_filters): New function.
5395 (parse_no_frame_option): Ditto.
5396 (mi_cmd_stack_list_frames): Add --no-frame-filter and Python frame
5398 (mi_cmd_stack_list_locals): Ditto.
5399 (mi_cmd_stack_list_args): Ditto.
5400 (mi_cmd_stack_list_variables): Ditto.
5401 * NEWS: Add frame filter note.
5403 2013-05-09 Doug Evans <dje@google.com>
5405 * symfile.c (syms_from_objfile_1): Delete args offsets, num_offsets.
5406 All callers updated.
5407 (syms_from_objfile): Ditto. Make static.
5408 (symbol_file_add_with_addrs): Renamed from
5409 symbol_file_add_with_addrs_or_offsets. Delete args offsets,
5410 num_offsets. All callers updated.
5411 * symfile.h (syms_from_objfile): Delete.
5413 * symfile.c (decrement_reading_symtab): Add assert.
5414 (increment_reading_symtab): Ditto.
5416 2013-05-09 Joel Brobecker <brobecker@adacore.com>
5418 * source.c (forward_search_command): Replace call to getc
5420 (reverse_search_command): Likewise.
5422 2013-05-08 Doug Evans <dje@google.com>
5424 * psymtab.c (expand_symtabs_matching_via_partial): Fix file name
5427 2013-05-08 Joel Brobecker <brobecker@adacore.com>
5429 * sol-thread.c (info_cb): Factorize the code a little.
5431 2013-05-08 Joel Brobecker <brobecker@adacore.com>
5433 * sol-thread.c (info_cb): Rework the output of the "maintenance
5434 info sol-threads" command a bit.
5436 2013-05-08 Joel Brobecker <brobecker@adacore.com>
5438 * sol-thread.c (info_cb) [ti.ti_state == TD_THR_SLEEP]:
5439 Replace ti.ti_startfunc by ti.ti_pc.
5441 2013-05-08 Joel Brobecker <brobecker@adacore.com>
5443 * solib-aix.c (solib_aix_free_library_list): New function
5444 for the case where HAVE_LIBEXPAT is not defined.
5446 2013-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
5448 PR breakpoints/15413:
5449 * breakpoint.c (condition_completer): Simplify the code to
5450 disconsider multiple locations of breakpoints when completing the
5451 "condition" command.
5453 2013-05-07 Pierre Muller <muller@sourceware.org>
5455 * common/linux-btrace.c: ARI fix: Include "gdb_wait.h"
5456 instead of <sys/wait.h>.
5458 2013-05-07 Pierre Muller <muller@sourceware.org>
5460 * nios2-tdep.c (nios2_dwarf_reg_to_regnum): ARI fix: remove
5461 trailing new line from warning message.
5463 2013-05-07 Pierre Muller <muller@sourceware.org>
5465 * contrib/ari/gdb_ari.sh (SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK)
5466 (PC_SOLIB): Change type from ari_deprecate to ari_regression.
5468 2013-05-07 Joel Brobecker <brobecker@adacore.com>
5470 * rs6000-nat.c (rs6000_core_ldinfo): Remove '\n' at end of
5471 error message (ARI fix).
5473 2013-05-07 Joel Brobecker <brobecker@adacore.com>
5475 * features/library-list-aix.dtd: Replace library-list by
5477 * rs6000-nat.c: Replace library-list by library-list-aix
5479 * solib-aix.c: Likewise.
5481 2013-05-07 Joel Brobecker <brobecker@adacore.com>
5483 * target.h (enum target_object) [TARGET_OBJECT_LIBRARIES_AIX]:
5484 Renames TARGET_OBJECT_AIX_LIBRARIES.
5485 * rs6000-nat.c: Replace TARGET_OBJECT_AIX_LIBRARIES with
5486 TARGET_OBJECT_LIBRARIES_AIX throughout.
5487 * solib-aix.c: Likwise.
5489 2013-05-07 Yao Qi <yao@codesourcery.com>
5491 * solib-dsbt.c (struct dsbt_info) <enable_break2_done>: Remove.
5492 (get_dsbt_info, enable_break, dsbt_clear_solib): Update.
5494 2013-05-07 Yao Qi <yao@codesourcery.com>
5496 * solib-dsbt.c (enable_break): Declare.
5497 (dsbt_current_sos): Remove call to enable_break2.
5498 (enable_break2): Rename to enable_break. Set solib breakpoint
5499 on '_dl_debug_state'.
5500 (enable_break): Remove.
5502 2013-05-07 Luis Machado <lgustavo@codesourcery.com>
5504 * ppc-linux-nat.c (ppc_linux_new_thread): Clear the new thread's
5505 debug state prior to replicating existing hardware watchpoints or
5508 2013-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
5510 * gcore.c (gcore_create_callback): Ignore sections with
5511 separate_debug_objfile_backlink != NULL.
5513 2013-05-06 Sandra Loosemore <sandra@codesourcery.com>
5514 Andrew Jenner <andrew@codesourcery.com>
5515 Chung-Lin Tang <cltang@codesourcery.com>
5516 Julian Brown <julian@codesourcery.com>
5518 Based on the nios2-elf port from Altera Corporation.
5520 * Makefile.in (ALL_TARGET_OBS): Add nios2-tdep.o and
5522 (HFILES_NO_SRCDIR): Add nios2-tdep.h.
5523 (ALLDEPFILES): Add nios2-tdep.c and nios2-linux-tdep.c.
5524 * configure.tgt: Add nios2*-*-linux* and nios2*-*-* targets.
5525 * nios2-tdep.h: New.
5526 * nios2-tdep.c: New.
5527 * nios2-linux-tdep.c: New.
5528 * features/Makefile (WHICH): Add nios2-linux.
5529 (nios2-linux-expedite): Set.
5530 * features/nios2-cpu.xml: New.
5531 * features/nios2.xml: New.
5532 * features/nios2-linux.xml: New.
5533 * features/nios2.c: New (autogenerated).
5534 * features/nios2-linux.c: New (autogenerated).
5535 * regformats/nios2-linux.dat: New (autogenerated).
5536 * NEWS (Changes since GDB 7.6): Add new Nios II targets
5539 2013-05-06 Doug Evans <dje@google.com>
5541 * symfile.c: Whitespace cleanup.
5543 * solist.h (struct target_so_ops): New member clear_so.
5544 * solib-svr4.c (svr4_clear_so): New function.
5545 (_initialize_svr4_solib): Set svr4_so_ops.clear_so.
5546 * solib.c (clear_so): Renamed from free_so_symbols.
5547 All callers updated. Call target clear_so if it exists.
5549 2013-05-06 Tom Tromey <tromey@redhat.com>
5551 * ada-lang.c (ada_value_primitive_packed_val): Don't
5553 * value.c (set_value_parent): Incref the new parent and decref
5555 (value_copy, value_primitive_field): Use set_value_parent.
5557 2013-05-06 Tom Tromey <tromey@redhat.com>
5559 * dwarf2loc.c (invalid_synthetic_pointer): Move earlier.
5560 (indirect_pieced_value): Call dwarf2_fetch_constant_bytes
5562 * dwarf2loc.h (dwarf2_fetch_constant_bytes): Declare.
5563 * dwarf2read.c (write_constant_as_bytes)
5564 (dwarf2_fetch_constant_bytes): New functions.
5566 2013-05-06 Tom Tromey <tromey@redhat.com>
5568 * dwarf2read.c (dwarf2_const_value_data): Remove unused
5570 (dwarf2_const_value_attr): Update.
5572 2013-05-06 Tom Tromey <tromey@redhat.com>
5574 * somread.c (som_symfile_offsets): Add 'const' to addrs.
5575 * machoread.c (macho_symfile_offsets): Add 'const' to addrs.
5576 * xcoffread.c (xcoff_symfile_offsets): Add 'const' to addrs.
5579 2013-05-06 Tom Tromey <tromey@redhat.com>
5581 * dwarf2read.c (dwarf2_const_value_attr): Use 'obstack', not
5584 2013-05-06 Doug Evans <dje@google.com>
5586 * dbxread.c (process_one_symbol): Constify section_offsets parameter.
5587 * stabsread.h (process_one_symbol): Update declaration.
5588 * dwarf2read.c (dw2_relocate): Constify new_offsets, delta parameters.
5589 * elfread.c (elf_symfile_relocate_probe): Ditto.
5590 * psymtab.c (relocate_psymtabs): Ditto.
5591 * objfiles.c (objfile_relocate1): Constify new_offsets parameter.
5592 (objfile_relocate): Ditto.
5593 * objfiles.h (objfile_relocate): Update declaration.
5594 * symfile.c (relative_addr_info_to_section_offsets): Constify
5596 (default_symfile_offsets): Ditto.
5597 (syms_from_objfile_1): Constify offsets parameter.
5598 (syms_from_objfile): Ditto.
5599 (symbol_file_add_with_addrs_or_offsets): Ditto.
5600 (symfile_map_offsets_to_segments): Constify data parameter.
5601 * symfile.h (struct quick_symbol_functions): Constify new_offsets,
5602 delta parameters of member relocate.
5603 (struct sym_probe_fns): Constify new_offsets,
5604 delta parameters of member sym_relocate_probe.
5605 (struct sym_fns): Constify section_addr_info parameter of member
5607 (relative_addr_info_to_section_offsets): Update declaration.
5608 (default_symfile_offsets): Ditto.
5609 (syms_from_objfile): Ditto.
5610 (symfile_map_offsets_to_segments): Ditto.
5612 * symfile.c (syms_from_objfile_1): Use correct section count when
5613 objfile->sf == NULL.
5615 2013-05-06 Mike Frysinger <vapier@gentoo.org>
5617 * common/linux-btrace.c (intel_supports_btrace): Fix indentation.
5619 2013-05-06 Doug Evans <dje@google.com>
5621 * psympriv.h (struct partial_symtab): Augment comment for member
5624 2013-05-06 Joel Brobecker <brobecker@adacore.com>
5626 Reimplement shared library support on ppc-aix...
5627 * target.h (TARGET_OBJECT_AIX_LIBRARIES): New target_object enum.
5628 * features/library-list-aix.dtd: New file.
5629 * solib-aix.h, solib-aix.c: New file.
5630 * rs6000-aix-tdep.c: #include "solib.h" and "solib-aix.h".
5631 (rs6000_find_toc_address_hook): Delete.
5632 (rs6000_push_dummy_call): Rewrite code setting the TOC value.
5633 (rs6000_aix_init_osabi): Register solib_aix_so_ops.
5634 * rs6000-nat.c: Remove "xcoffsolib.h" include. Include
5636 (map_vmap, vmap_exec, vmap_ldinfo, add_vmap, objfile_symbol_add)
5637 (vmap_symtab, fixup_breakpoints): Delete.
5638 (rs6000_xfer_shared_libraries): New function.
5639 (rs6000_xfer_partial): Add TARGET_OBJECT_AIX_LIBRARIES handling.
5640 (vmap_secs, bss_data_overlap, vmap_add_symbols): Delete.
5641 (xcoff_relocate_symtab, xcoff_relocate_core): Delete.
5642 (rs6000_ptrace_ldinfo, rs6000_core_ldinfo)
5643 (rs6000_xfer_shared_library): New function.
5644 (find_toc_address): Delete.
5645 (_initialize_rs6000_nat): Do not set rs6000_find_toc_address_hook.
5646 * rs6000-tdep.h (rs6000_find_toc_address_hook): Remove.
5647 * xcoffread.c (record_minimal_symbol): Reloate symbol address
5648 before creating minimal symbol. Adjust function description
5650 (scan_xcoff_symtab): Replace call to
5651 prim_record_minimal_symbol_and_info by call to
5652 record_minimal_symbol.
5653 (xcoff_symfile_offsets): Reimplement mostly as a wrapper
5654 around default_symfile_offsets.
5655 * configure.tgt: Add solib-aix.o to gdb_target_obs for
5656 powerpc-aix targets.
5657 * config/rs6000/nm-rs6000.h: Delete.
5658 * config/powerpc/aix.mh (NAT_FILE): Delete.
5659 (NATDEPFILES): Remove xcoffsolib.o.
5660 * Makefile.in (XMLFILES): Add library-list-aix.dtd.
5661 (ALL_TARGET_OBS): Add solib-aix.o.
5662 (HFILES_NO_SRCDIR): Remove xcoffsolib.h and
5663 config/rs6000/nm-rs6000.h. Add solib-aix.h.
5664 (ALLDEPFILES): Add solib-aix.c. Remove xcoffsolib.c.
5665 * xcoffsolib.h, xcoffsolib.c: Delete.
5667 * solib.c (reload_shared_libraries): Remove reference to
5668 SOLIB_CREATE_INFERIOR_HOOK.
5669 * breakpoint.c (handle_solib_event): Remove reference to SOLIB_ADD.
5670 (disable_breakpoints_in_shlibs): Remove reference to PC_SOLIB.
5671 (momentary_bkpt_re_set): Replace SOLIB_ADD by solib_add in
5673 * corelow.c (deprecated_core_resize_section_table): Delete.
5674 * exec.c: Remove include of xcoffsolib.h".
5675 (map_vmap, vmap): Delete.
5676 (exec_close_1): Remove references to vmap.
5677 (exec_file_attach): Remove vmap handling code, and reference
5678 to DEPRECATED_IBM6000_TARGET.
5679 (bfdsec_to_vmap): Delete.
5680 (exec_files_info): Remove block of code handling VMAP.
5681 * infcmd.c (post_create_inferior): Remove reference to
5682 SOLIB_CREATE_INFERIOR_HOOK and SOLIB_ADD.
5683 * infrun.c (follow_exec): Remove reference to
5684 SOLIB_CREATE_INFERIOR_HOOK.
5685 * stack.c (print_frame): Remove reference to PC_SOLIB.
5686 * solib-dsbt.c (dsbt_current_sos): Adjust comment.
5687 (dsbt_relocate_main_executable): Likewise.
5688 * solib-frv.c (frv_current_sos): Likewise.
5690 2013-05-06 Joel Brobecker <brobecker@adacore.com>
5692 * sol-thread.c (rw_common): Cast BUF to "gdb_byte *" in calls
5693 to target_write_memory and target_read_memory.
5695 2013-05-06 Joel Brobecker <brobecker@adacore.com>
5697 * darwin-nat.c (darwin_setup_fake_stop_event): New function.
5698 (darwin_attach): Adjust using darwin_setup_fake_stop_event.
5700 2013-05-06 Joel Brobecker <brobecker@adacore.com>
5702 * darwin-nat.c: Replace all "%x" instances in format strings
5703 into "0x%x" throughout.
5705 2013-05-06 Joel Brobecker <brobecker@adacore.com>
5707 * darwin-nat.c (darwin_mourn_inferior): Replace call to
5708 gdb_assert by call to MACH_CHECK_ERROR.
5709 (darwin_attach_pid): Raise an error rather than a failed
5710 assertion when various system calls failed. Report a warning
5711 instead of raising a failed assertion when PREV_NOT is not NULL
5712 after call to mach_port_request_notification.
5713 (darwin_ptrace_me): Raise an error rather than a failed
5714 assertion when read returns nonzero.
5716 2013-05-06 Joel Brobecker <brobecker@adacore.com>
5718 * amd64-darwin-tdep.c: Remove #include "gdb_assert.h".
5720 2013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
5722 * cleanups.c (restore_my_cleanups): New gdb_assert for SENTINEL_CLEANUP.
5724 2013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
5726 * event-top.c (display_gdb_prompt): Call missing do_cleanups.
5727 * infcmd.c (get_return_value) <!stop_regs>: Do not overwrite CLEANUP.
5728 * symfile.c (symfile_bfd_open): New variable back_to. Do not leave
5729 a stale cleanup. Fix double free of NAME.
5731 2013-05-04 Eli Zaretskii <eliz@gnu.org>
5733 * windows-nat.c (windows_delete_thread): Accept an additional
5734 argument, the thread's exit code, and announce thread death when
5735 print_thread_events is non-zero and we are deleting a thread that
5736 is not the main thread.
5737 (get_windows_debug_event): Pass thread exit code to
5738 windows_delete_thread.
5740 2013-05-03 Kevin Buettner <kevinb@redhat.com>
5742 * v850-tdep.c (elf-bfd.h, elf/v850.h): Include.
5743 (R_149_REGNUM, E_NUM_OF_V850E2_REGS, E_SELID_1_R0_REGNUM)
5744 (E_SELID_1_R31_REGNUM, E_SELID_2_R0_REGNUM, E_SELID_2_R31_REGNUM)
5745 (E_SELID_3_R0_REGNUM, E_SELID_3_R31_REGNUM, E_SELID_4_R0_REGNUM)
5746 (E_SELID_4_R31_REGNUM, E_SELID_5_R0_REGNUM, E_SELID_5_R31_REGNUM)
5747 (E_SELID_6_R0_REGNUM, E_SELID_6_R31_REGNUM, E_SELID_7_R0_REGNUM, E_SELID_7_R31_REGNUM)
5748 (E_VR0_REGNUM, E_VR31_REGNUM, E_NUM_OF_V850E3V5_REGS): Define.
5749 (v850_abi, V850_ABI_GCC, V850_ABI_RH850): New enum and constants.
5750 (gdbarch_tdep): New struct.
5751 (v850e2_register_name): Use E_NUM_OF_V850E2_REGS instead of
5753 (v850e3v5_register_name): New function.
5754 (v850_register_type): v850e3v5 vector registers are 64-bits wide.
5755 (v850_use_struct_convention): Add `gdbarch' parameter. Add new
5756 code handling the struct return conventions for the RH850 ABI.
5758 (v850_eight_byte_align_p): New function.
5759 (v850_push_call_dummy): Push structs by value, not by reference
5760 for the RH850 ABI. Add support for eight byte alignment.
5761 (v850_dbtrap_breakpoint_from_pc): New function.
5762 (v850_gdbarch_init): Add ABI detection code. Register
5763 v850e3v5_register_name for the v850e3v5 architecture. Set the
5764 number of registers for v850e3v5. Register
5765 v850_dbtrap_breakpoint_from_pc as appropriate.
5766 (_initialize_gdbarch_init): Registration bfd_arch_v850_rh850.
5768 2013-05-03 Doug Evans <dje@google.com>
5770 * objfiles.c (objfile_relocate): Use gdb_bfd_count_sections instead
5771 of bfd_count_sections.
5772 * solib-target.c (solib_target_relocate_section_addresses): Ditto.
5773 * symfile.c (default_symfile_offsets): Ditto.
5774 (syms_from_objfile_1): Ditto. Make dummy addrs list an array of
5775 one entry, not bfd_count_sections entries.
5777 2013-05-03 Kevin Buettner <kevinb@redhat.com>
5779 * rl78-tdep.c (rl78_register_reggroup_p): Include SP in the
5780 `save' and `restore' register groups. Don't include SPL
5781 or SPH in these groups.
5782 (rl78_dwarf_reg_to_regnum): Adjust mapping for
5783 RL78_PC_REGNUM. Add mappings for RL78_PSW_REGNUM,
5784 RL78_ES_REGNUM, and RL78_CS_REGNUM.
5785 (rl78_gdbarch_init): Set `dwarf2_addr_size' to 4. Invoke
5786 dwarf2_append_unwinders().
5788 2013-05-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5790 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Do not
5791 ignore SIGINT and SIGTRAP in case these internal signals are
5794 2013-05-01 Joel Brobecker <brobecker@adacore.com>
5796 * darwin-nat.c (darwin_read_write_inferior): Change types
5797 of parameters rdaddr and wraddr to "gdb_byte *". Change type
5798 of copy_count to "mach_msg_type_number_t".
5799 (darwin_read_dyld_info): Change type of parameter
5800 rdaddr to "gdb_byte *".
5802 2013-05-01 Joel Brobecker <brobecker@adacore.com>
5804 * solib-ia64-hpux.c (ia64_hpux_read_dynamic_info): Change cast
5805 of &info->load_map from "char *" to "gdb_byte *".
5807 2013-05-01 Joel Brobecker <brobecker@adacore.com>
5809 * ia64-tdep.c (ia64_access_fpreg): Change cast of val
5810 from "char *" to "gdb_byte *".
5811 (ia64_access_rse_fpreg, ia64_access_mem): Likewise.
5813 2013-04-30 Doug Evans <dje@google.com>
5815 * dwarf2read.c (lookup_dwo_unit): Return NULL if DWO not found.
5816 (init_cutu_and_read_dies): Flag a complaint, not error, for bad
5817 DWO stub. If DWO isn't found, just use stub.
5818 (lookup_dwo_cutu): Don't try DWO if there's a DWP file.
5820 * dwarf2read.c (dw2_find_symbol_file): Initialize filename before
5821 calling init_cutu_and_read_dies.
5823 2013-03-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
5825 * target-descriptions.c (maint_print_c_tdesc_cmd):
5826 Add case to parse structures as register types and
5829 2013-04-30 Walfred Tedeschi <walfred.tedeschi@intel.com>
5831 * MAINTAINERS (Write After Approval): Add myself to the list.
5833 2013-04-30 Joel Brobecker <brobecker@adacore.com>
5835 * sol-thread.c (rw_common): Change type of parameter "buf"
5837 (ps_pdwrite, ps_ptwrite): Cast parameter "buf" in call to
5838 rw_common to "gdb_byte *" instead of "char *".
5840 2013-04-30 Joel Brobecker <brobecker@adacore.com>
5842 * sol-thread.c (info_cb) [ti.ti_startfunc != 0]: Change type
5843 of local variable msym to const struct bound_minimal_symbol.
5844 Adjust use accordingly.
5845 [ti.ti_state == TD_THR_SLEEP]: Likewise.
5847 2013-04-30 Samuel Thibault <samuel.thibault@gnu.org>
5849 * i386gnu-nat.c (CREG_OFFSET): New macro.
5850 (creg_offset): New array.
5851 (CREG_ADDR): Use creg_offset instead of reg_offset.
5853 2013-04-30 Joel Brobecker <brobecker@adacore.com>
5855 * mep-tdep.c (mep_write_pc): Delete.
5856 (mep_gdbarch_init): Remove call to set_gdbarch_write_pc.
5857 Add call to set_gdbarch_pc_regnum.
5859 2013-04-30 Joel Brobecker <brobecker@adacore.com>
5861 * common/filestuff.c: Replace #include <dirent.h> by
5862 #include "gdb_dirent.h".
5864 2013-04-30 Joel Brobecker <brobecker@adacore.com>
5866 * common/filestuff.c: Replace #include <sys/stat.h> by
5867 #include "gdb_stat.h".
5869 2013-04-29 Pierre Muller <muller@sourceware.org>
5871 * dwarf2read.c (handle_DW_AT_stmt_list): Avoid ARI warning for
5872 editCase function rule.
5873 (get_DW_AT_signature_type): Likewise.
5875 2013-04-29 Joel Brobecker <brobecker@adacore.com>
5877 * m32r-tdep.c (m32r_write_pc): Delete.
5878 (m32r_gdbarch_init): Remove call to set_gdbarch_write_pc.
5879 Add call to set_gdbarch_pc_regnum.
5881 2013-04-29 Pierre Muller <muller@sourceware.org>
5883 * ./contrib/ari/gdb_ari.sh (editCase rule): Fix spelling error.
5885 2013-04-29 Joel Brobecker <brobecker@adacore.com>
5887 * dwarf2read.c (get_DW_AT_signature_type): Add ARI marker.
5889 2013-04-28 Yao Qi <yao@codesourcery.com>
5891 * solib-dsbt.c (fetch_loadmap): Re-indent.
5892 (displacement_from_map, enable_break2): Likewise.
5893 (dsbt_relocate_section_addresses): Likewise.
5895 2013-04-26 Joel Brobecker <brobecker@adacore.com>
5899 2013-04-25 Andreas Kaufmann <Andreas.Kaufmann@synopsys.com>
5902 * dwarf2read.c (process_full_comp_unit): Always create a static
5905 2013-04-25 Hui Zhu <hui@codesourcery.com>
5907 * breakpoint.c (build_target_command_list): Change loc->cond_bytecode
5908 to loc->cmd_bytecode.
5910 2013-04-24 Doug Evans <dje@google.com>
5912 * dwarf2read.c (setup_type_unit_groups): Fix comment.
5914 2013-04-22 Keith Seitz <keiths@redhat.com>
5916 * tracepoint.c (trace_save): Call the writer's start method.
5918 2013-04-24 Muhammad Bilal <mbilal@codesourcery.com>
5921 * cli/cli-decode.c (lookup_command): Show an error if there is no space
5924 2013-04-23 Tom Tromey <tromey@redhat.com>
5926 * common/filestuff.c: Check USE_WIN32API before including
5928 (HAVE_F_GETFD): New define.
5929 (mark_cloexec): Check HAVE_F_GETFD.
5930 (gdb_open_cloexec): Change 'mode' to unsigned long.
5931 (gdb_socketpair_cloexec): Check HAVE_SOCKETPAIR.
5932 (gdb_pipe_cloexec): Check HAVE_PIPE.
5933 * common/filestuff.h (gdb_open_cloexec): Change 'mode' to unsigned
5936 2013-04-23 Hui Zhu <hui@codesourcery.com>
5939 * breakpoint.c (bpstat_what): Add BPSTAT_WHAT_SINGLE to bp_dprintf.
5941 2013-04-23 Hui Zhu <hui@codesourcery.com>
5944 * breakpoint.c (dprintf_print_recreate): New.
5945 (save_breakpoints): Let it not save dprintf commands.
5946 (initialize_breakpoint_ops): Set dprintf_print_recreate.
5948 2013-04-22 Tom Tromey <tromey@redhat.com>
5951 * Makefile.in (SFILES): Add filestuff.c
5952 (COMMON_OBS): Add filestuff.o.
5953 (filestuff.o): New target.
5954 * auto-load.c (auto_load_objfile_script_1): Use
5956 * auxv.c (procfs_xfer_auxv): Use gdb_open_cloexec.
5957 * cli/cli-cmds.c (shell_escape): Call close_most_fds.
5958 * cli/cli-dump.c (fopen_with_cleanup): Use gdb_fopen_cloexec.
5959 * common/agent.c (gdb_connect_sync_socket): Use
5961 * common/filestuff.c: New file.
5962 * common/filestuff.h: New file.
5963 * common/linux-osdata.c (linux_common_core_of_thread)
5964 (command_from_pid, commandline_from_pid, print_source_lines)
5965 (linux_xfer_osdata_shm, linux_xfer_osdata_sem)
5966 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Use
5968 * common/linux-procfs.c (linux_proc_get_int)
5969 (linux_proc_pid_has_state): Use gdb_fopen_cloexec.
5970 * config.in, configure: Rebuild.
5971 * configure.ac: Don't check for sys/socket.h. Check for
5973 * corelow.c (core_open): Use gdb_open_cloexec.
5974 * dwarf2read.c (write_psymtabs_to_index): Use gdb_fopen_cloexec.
5975 * fork-child.c (fork_inferior): Call close_most_fds.
5976 * gdb_bfd.c (gdb_bfd_open): Use gdb_open_cloexec.
5977 * inf-child.c (inf_child_fileio_readlink): Use gdb_open_cloexec.
5978 * linux-nat.c (linux_nat_thread_name, linux_proc_pending_signals):
5979 Use gdb_fopen_cloexec.
5980 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use
5982 (linux_async_pipe): Use gdb_pipe_cloexec.
5983 * remote-fileio.c (remote_fileio_func_open): Use
5985 * remote.c (remote_file_put, remote_file_get): Use
5987 * ser-pipe.c (pipe_open): Use gdb_socketpair_cloexec,
5989 * ser-tcp.c (net_open): Use gdb_socket_cloexec.
5990 * ser-unix.c (hardwire_open): Use gdb_open_cloexec.
5991 * solib.c (solib_find): Use gdb_open_cloexec.
5992 * source.c (openp, find_and_open_source): Use gdb_open_cloexec.
5993 * tracepoint.c (tfile_start): Use gdb_fopen_cloexec.
5994 (tfile_open): Use gdb_open_cloexec.
5995 * tui/tui-io.c (tui_initialize_io): Use gdb_pipe_cloexec.
5996 * ui-file.c (gdb_fopen): Use gdb_fopen_cloexec.
5997 * xml-support.c (xml_fetch_content_from_file): Use
5999 * main.c (captured_main): Call notice_open_fds.
6001 2013-04-22 Edjunior Machado <emachado@linux.vnet.ibm.com>
6003 * remote-sim.c (dump_mem): Change the type of 'buf' parameter from
6004 'char *' to 'gdb_byte *'.
6005 (gdbsim_store_register): Change the type of 'tmp' from 'char' to
6008 2013-04-22 Yao Qi <yao@codesourcery.com>
6010 * infrun.c: Fix typo in comment.
6012 2013-04-22 Andrew Haley <aph@redhat.com>
6014 * arm-tdep.c (BranchDest): Cast result as "unsigned long",
6017 2013-04-20 Yao Qi <yao@codesourcery.com>
6019 * ctf.c (ctf_fetch_registers): Change the type of 'regs' from
6020 'char *' to 'gdb_byte *'. Cast the return value of
6021 'bt_ctf_get_char_array' to 'gdb_byte *'.
6023 2013-04-19 Pedro Alves <palves@redhat.com>
6025 * configure.ac (build_warnings): Replace -Wno-pointer-sign with
6027 * configure: Regenerate.
6029 2013-04-19 Pedro Alves <palves@redhat.com>
6031 * ser-tcp.c (net_read_prim): Cast second argument to recv to
6034 2013-04-19 Pedro Alves <palves@redhat.com>
6036 * monitor.c (monitor_write_memory, monitor_write_memory_bytes):
6037 Change type of 'myaddr' parameter to gdb_byte pointer.
6038 (monitor_write_memory_longlongs): Likewise. Cast 'myaddr' pointer
6039 to 'long long' pointer instead of to 'unsigned long long'.
6040 (monitor_write_memory_block, monitor_read_memory_single)
6041 (monitor_read_memory): Change type of 'myaddr' parameter to
6044 2013-04-19 Pedro Alves <palves@redhat.com>
6046 * record.c (validate_history_size): Make parameter 'setting'
6049 2013-04-19 Pedro Alves <palves@redhat.com>
6051 * ctf.c (ctf_write_uploaded_tsv, ctf_write_uploaded_tp): Add casts
6054 2013-04-19 Pedro Alves <palves@redhat.com>
6056 * cp-valprint.c (cp_print_class_member): Change type of 'fieldno'
6059 2013-04-19 Pedro Alves <palves@redhat.com>
6061 * ada-lang.c (print_it_exception): Add cast to gdb_byte *.
6062 * ada-tasks.c (read_fat_string_value): Likewise.
6064 2013-04-19 Pedro Alves <palves@redhat.com>
6066 * dwarf2-frame.c (execute_cfa_program): Make 'bytes_read' local
6067 unsigned. Pass 'tmp' to safe_read_uleb128 instead of the signed
6068 'offset', and adjust.
6070 2013-04-19 Pedro Alves <palves@redhat.com>
6072 * dwarf2read.c (dwarf2_get_dwz_file): Add cast to const char *.
6073 (read_index_from_section): Add cast to 'char *'.
6075 2013-04-19 Pedro Alves <palves@redhat.com>
6077 * xcoffread.c (xcoff_initial_scan): Add cast to 'char *'.
6079 2013-04-19 Pedro Alves <palves@redhat.com>
6081 * coff-pe-read.c (read_pe_exported_syms): Handle strings as char.
6083 2013-04-19 Pedro Alves <palves@redhat.com>
6085 * record-full.c (record_full_get_bookmark): Change local 'ret'
6086 type to char * and add cast to gdb_byte *.
6087 (record_full_goto_bookmark): Handle 'bookmark' argument as a
6089 * reverse.c (goto_bookmark_command): Add casts to gdb_byte *.
6091 2013-04-19 Pedro Alves <palves@redhat.com>
6093 * python/py-inferior.c (infpy_write_memory): Add cast to gdb_byte
6094 * python/py-prettyprint.c (print_string_repr): Change type of
6095 'output' local to char *. Add cast to gdb_byte * in
6096 LA_PRINT_STRING call.
6097 (print_children): Change type of 'output' local to char *.
6098 * python/py-value.c (valpy_string): Add cast to const char * in
6099 PyUnicode_Decode call.
6101 2013-04-19 Pedro Alves <palves@redhat.com>
6103 * remote-mips.c (mips_cksum): Rename 'data' parameter to 'datastr'
6104 and change its type to 'const char *'. Adjust.
6105 (mips_send_packet): Add cast to 'char *', and remove cast to
6107 (mips_receive_packet): Remove cast to 'unsigned char *'.
6108 (mips_load_srec): Use bfd_byte.
6109 (pmon_makeb64, pmon_zeroset): Make 'chksum' parameter unsigned.
6110 (pmon_checkset): Make 'value' parameter unsigned.
6112 2013-04-19 Pedro Alves <palves@redhat.com>
6114 * common/agent.c (agent_run_command): Add cast to gdb_byte *.
6116 2013-04-19 Pedro Alves <palves@redhat.com>
6118 * remote.c (remote_write_bytes_aux, compare_sections_command)
6120 (remote_search_memory, remote_hostio_pwrite, remote_hostio_pread)
6121 (remote_hostio_readlink, remote_bfd_iovec_pread)
6122 (remote_set_trace_notes): Use gdb_byte when RSP buffer is used as
6123 binary buffer, and char when buffer is used as string.
6124 * tracepoint.c (encode_source_string, tfile_write_uploaded_tp)
6125 (trace_save, tfile_open, traceframe_walk_blocks)
6126 (tfile_fetch_registers): Likewise.
6128 2013-04-19 Pedro Alves <palves@redhat.com>
6130 * ser-base.c (ser_base_write): Change prototype -- take 'void *'
6131 buffer and size_t size. Adjust.
6132 * ser-base.h (ser_base_write): Adjust.
6133 * ser-go32.c (cnts): Change type to size_t.
6134 (dos_write): Change prototype -- take 'void *'
6135 buffer and size_t size. Adjust.
6136 (dos_info): Print elements of 'cnts' as unsigned long.
6137 * serial.c (serial_write): Likewise.
6138 * serial.h (serial_write): Adjust.
6139 (struct serial_ops) <write>: Change prototype -- take 'void *'
6140 buffer and size_t size. Adjust.
6142 2013-04-19 Pedro Alves <palves@redhat.com>
6144 * c-lang.c (evaluate_subexp_c): Cast result of obstack_base to
6146 * linux-tdep.c (linux_make_mappings_corefile_notes): Likewise.
6148 2013-04-19 Pedro Alves <palves@redhat.com>
6150 * alpha-tdep.c (alpha_extract_return_value): Use
6151 regcache_cooked_read_unsigned to read 'v0'.
6153 2013-04-19 Pedro Alves <palves@redhat.com>
6155 * xtensa-tdep.c (execute_l32e, execute_s32e): Change type of
6156 parameters 'at', 'as' and 'offset' to uint32_t.
6158 2013-04-19 Pedro Alves <palves@redhat.com>
6160 * aarch64-tdep.c (aarch64_analyze_prologue): Change type of local
6161 'is64' to signed 'int'.
6163 2013-04-19 Pedro Alves <palves@redhat.com>
6165 * s390-tdep.c (is_rs, is_rsy, is_rx, is_rxy): Change type of 'd2'
6168 2013-04-19 Pedro Alves <palves@redhat.com>
6170 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Change local
6171 'insnbuf' buffer type to unsigned int[].
6173 2013-04-19 Pedro Alves <palves@redhat.com>
6175 * mips-tdep.c (mips_read_pc): Change local 'pc' type to LONGEST.
6177 2013-04-19 Pedro Alves <palves@redhat.com>
6179 * mep-tdep.c (mep_get_insn): Change 'insn' parameter type to
6182 2013-04-19 Pedro Alves <palves@redhat.com>
6184 * alpha-tdep.c (heuristic_fence_post): Change type to int.
6185 (alpha_heuristic_proc_start): Adjust to check -1 instead of
6187 * mips-tdep.c (heuristic_fence_post): Change type to int.
6188 (heuristic_proc_start): Adjust to check -1 instead of UINT_MAX.
6190 2013-04-19 Pedro Alves <palves@redhat.com>
6192 * cris-tdep.c (usr_cmd_cris_version): Make unsigned.
6193 (struct gdbarch_tdep) <cris_version>: Make unsigned.
6194 (cris_spec_reg_applicable, cris_gdbarch_init): Adjust locals.
6196 2013-04-19 Pedro Alves <palves@redhat.com>
6198 * avr-tdep.c (avr_io_reg_read_command): New local 'bufstr'. Use
6199 it to get a string view of the byte buffer.
6200 * i386-cygwin-tdep.c (core_process_module_section): Change local 'buf'
6201 type to gdb_byte *. Adjust.
6202 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full):
6203 Change local to char *.
6204 * solib-darwin.c (find_program_interpreter): Change return type to
6206 (darwin_solib_get_all_image_info_addr_at_init): Adjust.
6207 * solib-dsbt.c (enable_break2): Change local 'buf' to char *.
6208 * solib-frv.c (enable_break2): Change local 'buf' to char *.
6209 * solib-spu.c (spu_current_sos): Add gdb_byte * cast.
6210 * solib-svr4.c (find_program_interpreter): Change return type to
6212 (enable_break): Change local 'interp_name' to char *.
6213 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
6214 * spu-tdep.c (spu_pseudo_register_read_spu): Add cast to 'char *'.
6215 (spu_pseudo_register_write_spu): Use char for string buffer.
6217 (info_spu_event_command, info_spu_signal_command): Add casts to
6220 2013-04-19 Pedro Alves <palves@redhat.com>
6222 * aarch64-tdep.c (aarch64_default_breakpoint): Change type to
6224 (aarch64_breakpoint_from_pc): Change return type to gdb_byte *.
6225 * ada-lang.c (ada_value_assign): Use gdb_byte.
6226 * alphanbsd-tdep.c (sigtramp_retcode): Change type to gdb_byte[].
6227 (alphanbsd_sigtramp_offset): Use gdb_byte.
6228 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint)
6229 (arm_linux_arm_be_breakpoint, eabi_linux_arm_le_breakpoint)
6230 (eabi_linux_arm_be_breakpoint, arm_linux_thumb_be_breakpoint)
6231 (arm_linux_thumb_le_breakpoint, arm_linux_thumb2_be_breakpoint)
6232 (arm_linux_thumb2_le_breakpoint): Change type to gdb_byte[].
6233 * arm-tdep.c (arm_stub_unwind_sniffer)
6234 (arm_displaced_init_closure): Use gdb_byte.
6235 (arm_default_arm_le_breakpoint, arm_default_arm_be_breakpoint)
6236 (arm_default_thumb_le_breakpoint)
6237 (arm_default_thumb_be_breakpoint): Change type to gdb_byte[].
6238 * arm-tdep.h (struct gdbarch_tdep) <arm_breakpoint,
6239 thumb_breakpoint, thumb2_breakpoint>: Change type to gdb_byte *.
6240 * arm-wince-tdep.c (arm_wince_le_breakpoint)
6241 (arm_wince_thumb_le_breakpoint): Change type to gdb_byte[].
6242 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint)
6243 (arm_nbsd_arm_be_breakpoint, arm_nbsd_thumb_le_breakpoint)
6244 (arm_nbsd_thumb_be_breakpoint): Change type to gdb_byte[].
6245 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint)
6246 (arm_obsd_thumb_be_breakpoint): Change type to gdb_byte[].
6247 * cris-tdep.c (push_stack_item, cris_push_dummy_call)
6248 (cris_store_return_value, cris_extract_return_value): Use
6250 (constraint): Change type of parameter to char * from signed
6251 char*. Use gdb_byte.
6252 * dwarf2loc.c (read_pieced_value, write_pieced_value): Change type
6253 of local buffer to gdb_byte *.
6254 * dwarf2read.c (read_index_from_section): Use gdb_byte.
6255 (create_dwp_hash_table): Change type of locals to gdb_byte *.
6256 (add_address_entry): Change type of local buffer to gdb_byte[].
6257 * frv-tdep.c (frv_adjust_breakpoint_address, find_func_descr)
6258 (frv_push_dummy_call): Use gdb_byte.
6259 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code)
6260 (hppa_hpux_supply_ss_fpblock, hppa_hpux_supply_ss_wide)
6261 (hppa_hpux_supply_save_state): Use gdb_byte.
6262 * hppa-tdep.c (hppa32_push_dummy_call)
6263 (hppa64_convert_code_addr_to_fptr): Use gdb_byte.
6264 * ia64-tdep.c (extract_bit_field, replace_bit_field)
6265 (slotN_contents, replace_slotN_contents): Change type of parameter
6267 (fetch_instruction, ia64_pseudo_register_write)
6268 (ia64_register_to_value, ia64_value_to_register)
6269 (ia64_extract_return_value, ia64_store_return_value)
6270 (ia64_push_dummy_call): Use gdb_byte.
6271 * m32c-tdep.c (m32c_return_value): Remove cast.
6272 * m68hc11-tdep.c (m68hc11_pseudo_register_write)
6273 (m68hc11_push_dummy_call, m68hc11_store_return_value): Use
6275 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use gdb_byte.
6276 * mn10300-tdep.c (mn10300_store_return_value)
6277 (mn10300_breakpoint_from_pc, mn10300_push_dummy_call): Use
6279 * moxie-tdep.c (moxie_process_readu): Use gdb_byte.
6280 (moxie_process_record): Remove casts.
6281 * ppc-ravenscar-thread.c (supply_register_at_address)
6282 (ppc_ravenscar_generic_store_registers): Use gdb_byte.
6283 * ravenscar-thread.c (get_running_thread_id): Use gdb_byte.
6284 * remote-m32r-sdi.c (m32r_fetch_register): Use gdb_byte.
6285 * remote-mips.c (mips_xfer_memory): Use gdb_byte.
6286 * remote.c (compare_sections_command): Use gdb_byte.
6287 * score-tdep.c (score7_free_memblock): Change type of parameter to
6289 * sh-tdep.c (sh_justify_value_in_reg): Change return type to
6290 gdb_byte *. Use gdb_byte.
6291 (sh_push_dummy_call_fpu): Use gdb_byte.
6292 (sh_extract_return_value_nofpu, sh_extract_return_value_fpu)
6293 (sh_store_return_value_nofpu, sh_store_return_value_fpu)
6294 (sh_register_convert_to_virtual, sh_register_convert_to_raw):
6295 Change parameter type to 'gdb_byte *'. Use gdb_byte.
6296 (sh_pseudo_register_read, sh_pseudo_register_write): Use gdb_byte.
6297 * sh64-tdep.c (sh64_push_dummy_call): Use gdb_byte.
6298 (sh64_store_return_value, sh64_register_convert_to_virtual):
6299 Change parameter type to 'gdb_byte *'. Use gdb_byte.
6300 (sh64_pseudo_register_write): Use gdb_byte.
6301 * solib-darwin.c (darwin_current_sos): Add casts to 'gdb_byte *'.
6302 * solib-irix.c (fetch_lm_info): Likewise. Use gdb_byte for byte
6304 (irix_current_sos): Use gdb_byte.
6305 * solib-som.c (som_current_sos): Use gdb_byte.
6306 * sparc-ravenscar-thread.c (supply_register_at_address)
6307 (sparc_ravenscar_generic_store_registers): Use gdb_byte.
6308 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
6309 * spu-tdep.c (spu_get_overlay_table): Use gdb_byte.
6310 * tic6x-tdep.c (tic6x_breakpoint_from_pc): Change return type to
6312 * tic6x-tdep.h (struct gdbarch_tdep) <breakpoint>: Change type to
6314 * tracepoint.c (tfile_fetch_registers): Use gdb_byte.
6315 * xstormy16-tdep.c (xstormy16_extract_return_value)
6316 (xstormy16_store_return_value): Change parameter type to
6317 'gdb_byte *'. Adjust.
6318 (xstormy16_push_dummy_call): Use gdb_byte.
6319 * xtensa-tdep.c (xtensa_scan_prologue, call0_ret)
6320 (call0_analyze_prologue, execute_code): Use gdb_byte.
6322 2013-04-19 Vladimir Kargov <kargov@gmail.com>
6323 Pedro Alves <palves@redhat.com>
6325 * i387-tdep.c (i387_print_float_info): Use gdb_byte for pointer to
6328 2013-04-17 Doug Evans <dje@google.com>
6330 * dwarf2read.c (struct signatured_type): New member type.
6331 (struct attribute): Replace member signatured_type with signature.
6332 (DW_SIGNATURE): Replaces DW_SIGNATURE_TYPE.
6333 (read_call_site_scope): Call follow_die_ref instead of
6334 follow_die_ref_or_sig.
6335 (read_structure_type): Rewrite handling of signatured types.
6336 (read_enumeration_type): Ditto.
6337 (read_attribute_value): Update.
6338 (build_error_marker_type): New function.
6339 (lookup_die_type): Add assert. Rewrite handling of signatured types.
6340 Don't call error for bad types, just build an error marker type.
6341 (dump_die_shallow): Update.
6342 (follow_die_sig_1): Renamed from follow_die_sig.
6343 Don't call error for bad types, instead return NULL.
6344 (follow_die_sig): New function.
6345 (get_signatured_type, get_DW_AT_signature_type): New functions.
6347 2013-04-17 Yufeng Zhang <yufeng.zhang@arm.com>
6349 * aarch64-tdep.c (aarch64_write_pc): Removed.
6350 (aarch64_gdbarch_init): Remove set_gdbarch_write_pc of the above
6353 2013-04-17 Yao Qi <yao@codesourcery.com>
6355 * top.c (print_gdb_configuration): Print configure-time
6356 parameter on using libbabeltrace or not.
6358 2013-04-16 Pedro Alves <palves@redhat.com>
6360 * copyright.py (EXCLUDE_LIST): Add gdb/common/glibc_thread_db.h.
6362 2013-04-16 Pedro Alves <palves@redhat.com>
6364 * common/glibc_thread_db.h: Update from upstream glibc
6365 (git 568035b7874a099087b77f7bba3e36a1173787b0).
6367 2013-04-16 Pedro Alves <palves@redhat.com>
6369 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: Factor out to ...
6370 * common/glibc_thread_db.h: ... this new file ...
6371 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: ... and include it.
6373 2013-04-16 Will Newton <will.newton@gmail.com>
6374 Pedro Alves <palves@redhat.com>
6378 * common/gdb_thread_db.h (LIBTHREAD_DB_SO)
6379 (LIBTHREAD_DB_SEARCH_PATH): Move outside of #ifdef
6382 2013-04-16 Pedro Alves <palves@redhat.com>
6383 Eli Zaretskii <eliz@gnu.org>
6385 * NEWS: Mention "set foo unlimited".
6387 2013-04-15 Doug Evans <dje@google.com>
6389 * dwarf2read.c (struct dwo_file): Replace member "cus" with "cu".
6390 (struct create_dwo_cu_data): Renamed from create_dwo_info_table_data.
6391 (create_dwo_cu_reader): Renamed from
6392 create_dwo_debug_info_hash_table_reader.
6393 (create_dwo_cu): Renamed from create_dwo_debug_info_hash_table.
6394 Remove support for multiple CUs in a DWO file.
6395 (open_and_init_dwo_file, lookup_dwo_cutu): Update.
6397 * dwarf2read.c (create_debug_types_hash_table): Use hex_string
6399 (lookup_dwo_unit, create_dwo_debug_info_hash_table_reader): Ditto.
6400 (create_dwo_in_dwp): Ditto.
6402 2013-04-15 Tom Tromey <tromey@redhat.com>
6404 * NEWS: Move recent entries into "since 7.6" section.
6406 2013-04-15 Tom Tromey <tromey@redhat.com>
6410 * break-catch-throw.c (struct exception_catchpoint)
6411 <exception_rx, pattern>: New fields.
6412 (fetch_probe_arguments, dtor_exception_catchpoint)
6413 (check_status_exception_catchpoint)
6414 (print_one_detail_exception_catchpoint): New functions.
6415 (handle_gnu_v3_exceptions): Add "except_rx" argument.
6416 Compile regular expression if needed.
6417 (extract_exception_regexp): New function.
6418 (catch_exception_command_1): Use extract_exception_regexp.
6419 (compute_exception): Use fetch_probe_arguments.
6420 (initialize_throw_catchpoint_ops): Set dtor, print_one_detail,
6421 and check_status fields.
6422 * cp-abi.c (cplus_typename_from_type_info): New function.
6423 * cp-abi.h (cplus_typename_from_type_info): Declare.
6424 (struct cp_abi_ops) <get_typename_from_type_info>: New field.
6425 * gdb_regex.h (compile_rx_or_error): Declare.
6426 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info): Update
6428 (init_gnuv3_ops): Set get_type_from_type_info field.
6429 * probe.c (compile_rx_or_error): Move...
6430 * utils.c (compile_rx_or_error): ... here.
6432 2013-04-15 Tom Tromey <tromey@redhat.com>
6436 * break-catch-throw.c (compute_exception): New function.
6437 (exception_funcs): New global.
6438 (_initialize_break_catch_throw): Create $_exception.
6439 * cp-abi.c (cplus_type_from_type_info): New function.
6440 * cp-abi.h (cplus_type_from_type_info): Declare.
6441 (struct cp_abi_ops) <get_type_from_type_info>: New field.
6442 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info)
6443 (gnuv3_get_type_from_type_info): New functions.
6444 (init_gnuv3_ops): Set get_type_from_type_info ABI field.
6446 2013-04-15 Tom Tromey <tromey@redhat.com>
6448 * break-catch-throw.c (struct exception_names): New.
6449 (exception_functions): Change type.
6450 (re_set_exception_catchpoint): Look for SDT probes.
6452 2013-04-15 Tom Tromey <tromey@redhat.com>
6455 * break-catch-throw.c (exception_functions): New global.
6456 (gnu_v3_exception_catchpoint_ops): Move earlier.
6457 (struct exception_catchpoint): New.
6458 (classify_exception_breakpoint): Rewrite.
6459 (re_set_exception_catchpoint): New function.
6460 (handle_gnu_v3_exceptions): Return void. Use init_catchpoint.
6461 Allocate a struct exception_catchpoint.
6462 (catch_exception_command_1): Update.
6463 (initialize_throw_catchpoint_ops): Set 're_set' method.
6465 2013-04-15 Tom Tromey <tromey@redhat.com>
6467 * Makefile.in (SFILES): Add break-catch-throw.c
6468 (COMMON_OBS): Add break-catch-throw.o.
6469 * break-catch-throw.c: New file.
6470 * breakpoint.c: Move exception-catching code to new file.
6471 (ep_parse_optional_if_clause): No longer static.
6472 * breakpoint.h (ep_parse_optional_if_clause): Declare.
6474 2013-04-15 Tom Tromey <tromey@redhat.com>
6478 * breakpoint.c (watchpoint_exp_is_const): Add OP_TYPEID.
6479 * c-exp.y (TYPEID): New token.
6480 (exp): Add new TYPEID productions.
6481 (ident_tokens): Add "typeid".
6482 * cp-abi.c (cplus_typeid, cplus_typeid_type): New functions.
6483 * cp-abi.h (cplus_typeid, cplus_typeid_type): Declare.
6484 (struct cp_abi_ops) <get_typeid, get_typeid_type>: New fields.
6485 * eval.c (evaluate_subexp_standard) <OP_TYPEID>: New case.
6486 * expprint.c (dump_subexp_body_standard) <OP_TYPEID>: New
6488 * gnu-v3-abi.c (std_type_info_gdbarch_data): New global.
6489 (build_std_type_info_type, gnuv3_get_typeid_type)
6490 (gnuv3_get_typeid): New functions.
6491 (init_gnuv3_ops): Initialize std_type_info_gdbarch_data. Set
6492 new fields on ABI object.
6493 * parse.c (operator_length_standard) <OP_TYPEID>: New case.
6494 * std-operator.def (OP_TYPEID): New.
6496 2013-04-15 Tom Tromey <tromey@redhat.com>
6498 * elfread.c (elf_symtab_read): Install versioned symbol under
6499 unversioned name as well.
6501 2013-04-15 Tom Tromey <tromey@redhat.com>
6504 * c-lang.c (cplus_language_defn): Use gdb_demangle.
6505 * c-typeprint.c (c_type_print_base): Use gdb_demangle.
6506 * cp-support.c (mangled_name_to_comp): Use gdb_demangle.
6507 (gdb_demangle): New function.
6508 * cp-support.h (gdb_demangle): Declare.
6509 * dwarf2read.c (dwarf2_physname, fixup_partial_die)
6510 (dwarf2_name): Use gdb_demangle.
6511 * gdbtypes.c (check_stub_method): Use gdb_demangle.
6512 * gnu-v3-abi.c (gnuv3_rtti_type): Strip @plt and version
6514 (gnuv3_print_method_ptr): Use gdb_demangle.
6515 * jv-lang.c (java_demangle): Use gdb_demangle.
6516 * jv-typeprint.c (java_type_print_base): Use gdb_demangle.
6517 * language.c (unk_lang_demangle): Use gdb_demangle.
6518 * symtab.c (symbol_find_demangled_name)
6519 (demangle_for_lookup): Use gdb_demangle.
6521 2013-04-15 Tom Tromey <tromey@redhat.com>
6525 * breakpoint.c (enum exception_event_kind) <EX_EVENT_RETHROW>:
6527 (classify_exception_breakpoint): New function.
6528 (print_it_exception_catchpoint, print_one_exception_catchpoint)
6529 (print_mention_exception_catchpoint)
6530 (print_recreate_exception_catchpoint, handle_gnu_v3_exceptions)
6531 (catch_exception_command_1): Handle "rethrow" catchpoint.
6532 (catch_rethrow_command): New function.
6533 (_initialize_breakpoint): Add "catch rethrow" command.
6535 2013-04-15 Pierre Muller <muller@sourceware.org>
6537 * contrib/ari/gdb_ari.sh (write_pc rule): Do not consider
6538 set_gdbarch_write_pc as deprecated anymore.
6540 2013-04-15 Joel Brobecker <brobecker@adacore.com>
6542 * spu-tdep.c (spu_write_pc): Add empty line after local variable
6545 2013-04-13 Yao Qi <yao@codesourcery.com>
6547 * ctf.c (_initialize_ctf): Include "completer.h".
6548 Call add_target_with_completer instead of add_target.
6550 2013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
6552 Fix GDB regression related to PR binutils/14813.
6553 * jit.c (mem_bfd_iovec_close): Return 0 for success.
6554 * minidebug.c (lzma_close): Add return value comment.
6555 * remote.c (remote_bfd_iovec_close): Return 0 for success.
6556 * solib-spu.c (spu_bfd_iovec_close): Likewise.
6557 * spu-linux-nat.c (spu_bfd_iovec_close): Likewise.
6559 2013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
6561 * config.in: Regenerate.
6563 2013-04-12 Tom Tromey <tromey@redhat.com>
6565 * dwarf2-frame.c (struct comp_unit) <dwarf_frame_buffer>: Now
6567 * dwarf2read.c (struct dwarf2_section_info) <buffer>: Now const.
6568 (struct die_reader_specs) <buffer>: Likewise.
6569 (die_reader_func_ftype): Make 'info_ptr' const.
6570 (struct line_header) <include_dirs, statement_program_start,
6571 statement_program_end>: Now const.
6572 (struct file_entry) <name>: Likewise.
6573 (struct partial_die_info) <sibling>: Likewise.
6574 (struct dwarf_block) <data>: Likewise.
6575 (dwarf2_read_section): Remove cast.
6576 (dwarf2_get_section_info): Make 'bufp' const.
6577 (read_index_from_section): Constify.
6578 (dw2_get_file_names_reader): Make 'info_ptr' const.
6579 (dw2_get_primary_filename_reader): Likewise.
6580 (read_comp_unit_head): Make 'info_ptr' and return type const.
6581 (read_and_check_comp_unit_head, read_and_check_type_unit_head):
6583 (read_abbrev_offset): Constify.
6584 (dwarf2_create_include_psymtab): Make 'name' const.
6585 (create_debug_types_hash_table): Update.
6586 (read_cutu_die_from_dwo): Make 'result_info_ptr' const.
6587 (init_cutu_and_read_dies, init_cutu_and_read_dies_no_follow):
6589 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader)
6590 (load_partial_comp_unit_reader): Make 'info_ptr' const.
6591 (read_comp_units_from_section): Constify.
6592 (peek_abbrev_code, peek_die_abbrev, skip_children, skip_one_die)
6593 (locate_pdi_sibling, load_full_comp_unit_reader): Make 'info_ptr'
6595 (dwarf2_compute_name, setup_type_unit_groups): Constify.
6596 (create_dwo_debug_info_hash_table): Make 'info_ptr' const.
6597 (create_dwp_hash_table, dwarf2_ranges_read)
6598 (dwarf2_record_block_ranges): Constify.
6599 (read_die_and_children, read_die_and_siblings_1)
6600 (read_die_and_siblings): Make 'info_ptr' and 'new_info_ptr'
6602 (read_full_die_1, read_full_die): Make 'info_ptr' const.
6603 (abbrev_table_read_table): Constify.
6604 (load_partial_dies): Make 'info_ptr' const.
6605 (read_partial_die, read_attribute_value, read_attribute): Make
6606 'info_ptr' and return type const.
6607 (read_address, read_initial_length)
6608 (read_checked_initial_length_and_offset, read_offset)
6609 (read_offset_1, read_n_bytes, read_direct_string): Make 'buf'
6611 (read_direct_string): Make 'buf' and return type const.
6612 (read_indirect_string_at_offset, read_indirect_string_from_dwz)
6613 (read_indirect_string): Make return type const.
6614 (read_unsigned_leb128, read_signed_leb128): Make 'buf' const.
6615 (read_addr_index_from_leb128, dwarf2_read_addr_index_reader): Make
6617 (read_str_index): Make return type const.
6618 (add_include_dir): Make 'include_dir' const.
6619 (add_file_name): Make 'name' const.
6620 (dwarf_decode_line_header): Constify.
6621 (psymtab_include_file_name): Make return type const.
6622 (dwarf_decode_lines_1, dwarf_decode_lines): Constify.
6623 (dwarf2_start_subfile): Make 'filename' const.
6624 (dwarf2_const_value_attr): Make 'bytes' const.
6625 (read_signatured_type_reader): Make 'info_ptr' const.
6626 (decode_locdesc): Constify.
6627 (skip_form_bytes): Make 'bytes', 'buffer_end', and return type
6629 (skip_unknown_opcode): Make 'opcode_definitions', 'mac_ptr',
6630 'mac_end', and return type const.
6631 (dwarf_parse_macro_header): Make 'mac_ptr' and return type const.
6632 (dwarf_decode_macro_bytes): Make 'mac_ptr', 'mac_end', and return
6634 (per_cu_header_read_in): Constify.
6635 * symfile.h (dwarf2_get_section_info): Update.
6637 2013-04-12 Tom Tromey <tromey@redhat.com>
6639 * symtab.h (struct general_symbol_info) <value.bytes>: Make const.
6641 2013-04-12 Eli Zaretskii <eliz@gnu.org>
6643 * NEWS: Mention "show configuration", --configuration.
6644 * top.c (print_gdb_configuration): New function, displays the
6645 details about GDB configure-time parameters.
6646 (print_gdb_version): Mention "show configuration".
6647 * cli/cli-cmds.c (show_configuration): New function.
6648 (_initialize_cli_cmds): Add the "show configuration" command.
6649 * main.c (captured_main) <print_configuration>: New static var.
6650 <long_options>: Use it.
6651 If --configuration was given, call print_gdb_configuration.
6653 2013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6654 Pedro Alves <palves@redhat.com>
6656 * Makefile.in (HAVE_NATIVE_GCORE_TARGET): New.
6657 (generated_files): Add gcore.
6658 (install-only, uninstall): Add gcore if HAVE_NATIVE_GCORE_TARGET or
6659 HAVE_NATIVE_GCORE_HOST.
6661 * NEWS (Changes since GDB 7.6): Mention newly installed gcore.
6662 * config/alpha/alpha-osf3.mh, config/i386/fbsd.mh,
6663 config/i386/fbsd64.mh, config/i386/i386gnu.mh, config/i386/i386sol2.mh,
6664 config/i386/sol2-64.mh, config/mips/irix5.mh, config/mips/irix6.mh,
6665 config/powerpc/fbsd.mh, config/sparc/fbsd.mh, config/sparc/sol2.mh:
6666 Add HAVE_NATIVE_GCORE_HOST.
6667 * configure: Regenerate.
6668 * configure.ac (HAVE_NATIVE_GCORE_TARGET): New, set it, AC_SUBST it.
6669 New AC_SUBST fir GDB_TRANSFORM_NAME and GCORE_TRANSFORM_NAME. New
6670 AC_CONFIG_FILES for gcore.
6671 * configure.tgt: Add gdb_have_gcore to the initial comment. Set
6673 * gdb_gcore.sh: Rename to ...
6674 * gcore.in: ... here. Remove gcore.sh comment. Use GDB_TRANSFORM_NAME
6675 and GCORE_TRANSFORM_NAME substitutions.
6677 Fix parsing tabs in ${gdb_target_obs}.
6678 * configure.tgt (gdb_have_gcore): Replace case with for and if.
6680 2013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6682 * remote.c (unpush_and_perror): Add output message final dot.
6684 2013-04-11 Yao Qi <yao@codesourcery.com>
6686 * tracepoint.c (tfile_interp_line): Fit parameters line and
6689 2013-04-10 Joel Brobecker <brobecker@adacore.com>
6691 * solib.c (solib_map_sections): Remove code overwriting
6692 SO->SO_NAME with the bfd's filename.
6694 2013-04-10 Pedro Alves <palves@redhat.com>
6696 * cli/cli-decode.c (integer_unlimited_completer): New function.
6697 (add_setshow_integer_cmd, add_setshow_uinteger_cmd)
6698 (add_setshow_zuinteger_unlimited_cmd): Install the "unlimited"
6700 * cli/cli-setshow.c: Include "cli/cli-utils.h".
6701 (is_unlimited_literal): New function.
6702 (do_set_command): Handle literal "unlimited" arguments.
6703 * frame.c (_initialize_frame) <set backtrace limit>: Document
6705 * printcmd.c (_initialize_printcmd) <set print
6706 max-symbolic-offset>: Add help text.
6707 * record-full.c (_initialize_record_full) <set record full
6708 insn-number-max>: Likewise.
6709 * record.c (_initialize_record) <set record
6710 instruction-history-size, set record function-call-history-size>:
6712 * ser-tcp.c (_initialize_ser_tcp) <set tcp connect-timeout>: Add
6714 * tracepoint.c (_initialize_tracepoint) <set trace-buffer-size>:
6716 * source.c (_initialize_source) <set listsize>: Add help text.
6717 * utils.c (initialize_utils) <set height, set width>: Likewise.
6718 <set pagination>: Mention "set height unlimited".
6719 * valprint.c (_initialize_valprint) <set print elements, set print
6720 repeats>: Document "unlimited".
6722 2013-04-10 Pedro Alves <palves@redhat.com>
6724 * cli/cli-cmds.c (quit_command): Call query_if_trace_running
6725 instead of disconnect_tracing.
6726 * infcmd.c (detach_command, disconnect_command): Call
6727 query_if_trace_running. Adjust.
6728 * top.c: Include "tracepoint.h".
6729 (quit_target): Delete. Contents moved ...
6730 (quit_force): ... here. Wrap each stage of teardown in
6731 TRY_CATCH. Call disconnect_tracing before detaching.
6733 2013-04-10 Hui Zhu <hui@codesourcery.com>
6734 Yao Qi <yao@codesourcery.com>
6736 * configure.ac: Check libbabeltrace is installed.
6737 * config.in: Regenerate.
6738 * configure: Regenerate.
6739 * Makefile.in (LIBBABELTRACE): New.
6740 (CLIBS): Add LIBBABELTRACE.
6741 * ctf.c: Include "exec.h".
6742 (CTF_EVENT_ID_STATUS, CTF_EVENT_ID_TSV_DEF): New macros.
6743 (CTF_EVENT_ID_TP_DEF, ctf_save_write_int32): New macros.
6744 (ctf_save_metadata_header): Define new type aliases in
6746 (ctf_write_header): Define event type "tsv_def" and "tp_def"
6747 in metadata. Start a new faked packet for trace status.
6748 (ctf_write_status): Write trace status to CTF.
6749 (ctf_write_uploaded_tsv): Write TSV to CTF.
6750 (ctf_write_uploaded_tp): Write tracepoint definition to CTF.
6751 (ctf_write_definition_end): End the faked packet.
6753 (ctx, ctf_iter, trace_dirname): New.
6754 (start_pos): New variable.
6755 (ctf_destroy, ctf_open_dir, ctf_open): New.
6756 (SET_INT32_FIELD, SET_ARRAY_FIELD, SET_STRING_FIELD): New
6758 (ctf_read_tsv, ctf_read_tp, ctf_close, ctf_files_info): New.
6759 (ctf_fetch_registers, ctf_xfer_partial): New.
6760 (ctf_get_trace_state_variable_value): New.
6761 (ctf_get_tpnum_from_frame_event): New.
6762 (ctf_get_traceframe_address): New.
6763 (ctf_trace_find, ctf_has_stack): New.
6764 (ctf_has_registers, ctf_traceframe_info, init_ctf_ops): New.
6765 (ctf_get_trace_status, ctf_read_status): New.
6766 (_initialize_ctf): New.
6767 * tracepoint.c (get_tracepoint_number): New
6768 (get_uploaded_tsv): Remove 'static'.
6769 (struct traceframe_info, trace_regblock_size): Move it to ...
6770 * tracepoint.h: ... here.
6771 (get_tracepoint_number): Declare it.
6772 (get_uploaded_tsv): Declare it.
6774 * NEWS: Mention new configure option.
6776 2013-04-10 Pedro Alves <palves@redhat.com>
6777 Hui Zhu <hui@codesourcery.com>
6779 * breakpoint.c (dprintf_re_set): New.
6780 (initialize_breakpoint_ops): Set dprintf_breakpoint_ops re_set
6783 2013-04-09 Joel Brobecker <brobecker@adacore.com>
6785 * configure.tgt (gdb_target_obs) <powerpc-*-aix* | rs6000-*-*>:
6786 Remove solib-svr4.o from the list.
6788 2013-04-09 Joel Brobecker <brobecker@adacore.com>
6790 * varobj.c (update_dynamic_varobj_children) [!HAVE_PYTHON]:
6791 Use gdb_assert_not_reached instead of invalid boolean expression.
6793 2013-04-09 Pedro Alves <palves@redhat.com>
6795 * remote.c (unpush_and_perror): New function.
6796 (readchar, remote_serial_write): Use it.
6798 2013-04-09 Markus Metzger <markus.t.metzger@intel.com>
6800 * NEWS: Mention new btrace RSP packets.
6802 2013-04-08 Tom Tromey <tromey@redhat.com>
6804 * symmisc.c (dump_msymbols): Cast fprintf_filtered argument to
6807 2013-04-08 Tom Tromey <tromey@redhat.com>
6809 * maint.c (print_bfd_section_info): Print the section index.
6810 * symmisc.c (dump_msymbols): Print the section index.
6812 2013-04-08 Tom Tromey <tromey@redhat.com>
6815 * blockframe.c (find_pc_partial_function_gnu_ifunc): Check
6816 SYMBOL_SECTION, not SYMBOL_OBJ_SECTION.
6817 * breakpoint.c (resolve_sal_pc): Update.
6818 * elfread.c (elf_gnu_ifunc_record_cache): Update.
6819 * findvar.c (struct minsym_lookup_data) <objfile>: New field.
6820 (minsym_lookup_iterator_cb): Use it.
6821 (default_read_var_value): Update.
6822 * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline):
6824 * infcmd.c (jump_command): Update.
6825 * linespec.c (minsym_found): Update.
6826 * maint.c (maintenance_translate_address): Update.
6827 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Update.
6828 (prim_record_minimal_symbol_full): Don't set SYMBOL_OBJ_SECTION.
6829 * parse.c (write_exp_msymbol): Update.
6830 * printcmd.c (address_info): Update.
6831 * psymtab.c (find_pc_sect_psymbol): Update.
6832 (fixup_psymbol_section): Check SYMBOL_SECTION, not
6834 (add_psymbol_to_bcache): Correctly initialize SYMBOL_SECTION.
6835 Don't initialize SYMBOL_OBJ_SECTION.
6836 * spu-tdep.c (spu_catch_start): Update.
6837 * stabsread.c (define_symbol): Don't set SYMBOL_SECTION.
6838 * symmisc.c (dump_msymbols, print_symbol): Update.
6839 * symtab.c (fixup_section): Don't set 'obj_section'. Change
6840 how fallback section is computed.
6841 (fixup_symbol_section): Update.
6842 (find_pc_sect_symtab, find_function_start_sal, skip_prologue_sal):
6844 (allocate_symbol, initialize_symbol, allocate_template_symbol):
6845 Initialize SYMBOL_SECTION.
6846 * symtab.h (struct general_symbol_info) <section>: Update comment.
6847 <obj_section>: Remove.
6848 (SYMBOL_OBJ_SECTION): Add 'objfile' argument. Rewrite.
6849 (SYMBOL_OBJFILE): New macro.
6851 2013-04-08 Tom Tromey <tromey@redhat.com>
6853 * coffread.c (record_minimal_symbol): Update.
6854 * dbxread.c (record_minimal_symbol): Update.
6855 * elfread.c (record_minimal_symbol): Update.
6856 * machoread.c (macho_symtab_add_minsym): Update.
6857 * mdebugread.c (record_minimal_symbol, parse_partial_symbols):
6859 * minsyms.c (prim_record_minimal_symbol): Update.
6860 (prim_record_minimal_symbol_full): Remove 'bfd_section'
6862 (prim_record_minimal_symbol_and_info): Likewise.
6863 * minsyms.h (prim_record_minimal_symbol_full)
6864 (prim_record_minimal_symbol_and_info): Update.
6865 * symtab.c (allocate_symbol, initialize_symbol)
6866 (allocate_template_symbol): Initialize SYMBOL_SECTION.
6867 * xcoffread.c (record_minimal_symbol, scan_xcoff_symtab):
6870 2013-04-08 Tom Tromey <tromey@redhat.com>
6873 * solib-som.c (som_solib_section_offsets): Use BFD section
6874 indices. Set offsets for all sections.
6875 * somread.c (som_symtab_read): Compute BFD section for
6876 symbol. Use prim_record_minimal_symbol_and_info.
6877 (som_symfile_read): Fix comment.
6878 (struct find_section_offset_arg): New.
6879 (find_section_offset, set_section_index): New functions.
6880 (som_symfile_offsets): Use set_section_index to compute
6883 2013-04-08 Tom Tromey <tromey@redhat.com>
6885 * coffread.c (cs_to_section): Use gdb_bfd_section_index.
6886 * elfread.c (record_minimal_symbol, elf_symtab_read): Use
6887 gdb_bfd_section_index.
6888 * gdb_bfd.c (gdb_bfd_section_index, gdb_bfd_count_sections):
6890 * gdb_bfd.h (gdb_bfd_section_index, gdb_bfd_count_sections):
6892 * machoread.c (macho_symtab_add_minsym, macho_symfile_offsets):
6894 * objfiles.c (add_to_objfile_sections_full): New function.
6895 (add_to_objfile_sections): Use it.
6896 (build_section_table): Rewrite.
6897 (objfile_relocate1): Use gdb_bfd_section_index. Update.
6898 * objfiles.h (obj_section_offset): Use gdb_bfd_section_index.
6899 (struct objfile) <sections>: Update comment.
6900 (ALL_OBJFILE_OSECTIONS): Skip sections where the_bfd_section
6902 (ALL_OBJSECTIONS): Use it.
6903 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
6904 * solib-frv.c (frv_relocate_main_executable): Update.
6905 * solib-target.c (solib_target_relocate_section_addresses):
6906 Use gdb_bfd_section_index.
6907 * symfile.c (build_section_addr_info_from_section_table):
6908 Use gdb_bfd_section_index.
6909 (build_section_addr_info_from_bfd, place_section): Likewise.
6910 * symtab.c (fixup_section): Update.
6911 * xcoffread.c (find_targ_sec): Use gdb_bfd_section_index.
6913 2013-04-08 Tom Tromey <tromey@redhat.com>
6915 * minsyms.h (struct bound_minimal_symbol): New.
6916 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
6917 Remove objfile argument.
6918 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
6919 Return bound_minimal_symbol.
6920 * minsyms.c (lookup_minimal_symbol_by_pc_1)
6921 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
6922 Return bound_minimal_symbol.
6923 (in_gnu_ifunc_stub): Update.
6924 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
6925 Remove 'objfile_p' argument.
6926 (lookup_solib_trampoline_symbol_by_pc): Update.
6927 * ada-tasks.c, amd64-windows-tdep.c, arm-tdep.c,
6928 arm-wince-tdep.c, block.c, blockframe.c, breakpoint.c, btrace.c,
6929 c-valprint.c, dwarf2loc.c, elfread.c, frame.c, frv-tdep.c,
6930 glibc-tdep.c, gnu-v2-abi.c, gnu-v3-abi.c, hppa-hpux-tdep.c,
6931 i386-tdep.c, ia64-tdep.c, infcall.c, infcmd.c, jit.c,
6932 linux-fork.c, m32c-tdep.c, m68hc11-tdep.c, maint.c,
6933 mips-tdep.c, p-valprint.c, parse.c, ppc-linux-tdep.c,
6934 ppc-sysv-tdep.c, printcmd.c, rs6000-tdep.c, sh64-tdep.c,
6935 stack.c, symtab.c, tui/tui-disasm.c: Update.
6937 2013-04-08 Tom Tromey <tromey@redhat.com>
6939 * ada-lang.c (ada_decode_symbol): Check and set 'ada_mangled'.
6940 Use symbol's obstack, not an objfile.
6941 * coffread.c (process_coff_symbol): Update.
6942 * dwarf2read.c (fixup_go_packaging, new_symbol_full): Update.
6943 * jv-lang.c (add_class_symbol): Update.
6944 * mdebugread.c (new_symbol): Update.
6945 * minsyms.c (prim_record_minimal_symbol_full)
6946 (terminate_minimal_symbol_table): Update.
6947 * psymtab.c (add_psymbol_to_bcache): Clear entire symbol. Update.
6948 * stabsread.c (define_symbol, read_enum_type): Update.
6949 * symtab.c (symbol_set_demangled_name, symbol_get_demangled_name):
6950 Handle Ada specially.
6951 (symbol_set_language): Add 'obstack' argument.
6952 (symbol_set_names): Update.
6953 (symbol_natural_name, symbol_demangled_name): Always use
6955 * symtab.h (struct general_symbol_info)
6956 <language_specific::obstack>: New field.
6957 <ada_mangled>: New field.
6958 (SYMBOL_SET_LANGUAGE): Add 'obstack' argument.
6959 (symbol_set_language): Update.
6961 2013-04-08 Tom Tromey <tromey@redhat.com>
6963 * symtab.c (symbol_init_cplus_specific, symbol_set_demangled_name):
6964 Take an obstack, not an objfile.
6965 (symbol_set_names): Update.
6966 * symtab.h (symbol_set_demangled_name): Update.
6968 2013-04-08 Tom Tromey <tromey@redhat.com>
6970 * coffread.c (process_coff_symbol, coff_read_enum_type): Call
6972 * dwarf2read.c (fixup_go_packaging): Call allocate_symbol.
6973 (read_func_scope): Call allocate_template_symbol.
6974 (new_symbol_full): Call allocate_symbol.
6975 * jit.c (finalize_symtab): Call allocate_symbol.
6976 * jv-lang.c (add_class_symbol): Call allocate_symbol.
6977 * mdebugread.c (parse_symbol, new_block): Call allocate_symbol.
6978 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
6979 (common_block_end): Call allocate_symbol.
6980 * symtab.c (allocate_symbol, initialize_symbol)
6981 (allocate_template_symbol): New functions.
6982 * symtab.c (allocate_symbol, initialize_symbol)
6983 (allocate_template_symbol): Declare.
6984 * xcoffread.c (process_xcoff_symbol): Call initialize_symbol.
6986 2013-04-08 Pedro Alves <palves@redhat.com>
6987 Keith Seitz <keiths@redhat.com>
6989 * breakpoint.c (create_breakpoint): Rename
6990 "parse_condition_and_thread" parameter to "parse_arg". Update
6991 describing comment. If !PARSE_ARG, then error out if ARG is not
6992 the empty string after extracting the location.
6993 * breakpoint.h (create_breakpoint): Rename
6994 "parse_condition_and_thread" parameter to "parse_arg".
6996 2013-04-08 Aleksandar Ristovski <aristovski@qnx.com
6998 * solib-svr4.c (lm_addr_check): Add const qualifier to 'so' arg.
7000 2013-04-07 Yao Qi <yao@codesourcery.com>
7002 * remote.c (remote_trace_find): Change type of parameters 'addr1'
7003 and 'addr2' to CORE_ADDR.
7004 * target.c (update_current_target): Update.
7005 * target.h (struct target_ops) <to_trace_find>: Change parameter
7007 * tracepoint.c (tfind_1): Change type of parameters 'addr1' and
7008 'addr2' to CORE_ADDR.
7009 (tfile_trace_find): Likewise.
7010 (tfile_get_traceframe_address): Change return type to CORE_ADDR.
7011 Change local variable 'addr' to type CORE_ADDR.
7012 * tracepoint.h (tfind_1): Update declaration.
7014 2013-04-06 Eli Zaretskii <eliz@gnu.org>
7016 * windows-nat.c (windows_get_absolute_argv0): Move from here...
7017 * mingw-hdep.c (windows_get_absolute_argv0): ...to here.
7020 * windows-nat.h (windows_get_absolute_argv0): Move prototype from
7022 * main.h (windows_get_absolute_argv0): ...to here.
7024 2013-04-05 Doug Evans <dje@google.com>
7026 * dwarf2read.c (struct dwarf2_per_objfile): Tweak comment.
7027 (read_cutu_die_from_dwo): Add comments.
7028 (read_structure_type): Update comment.
7029 (read_enumeration_type, read_namespace_type): Update comment.
7030 (read_die_type, get_die_type_at_offset, get_die_type): Update comment.
7032 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7034 Convert man pages to texinfo, new gdbinit.5 texinfo page.
7035 * Makefile.in (gdb.z): Remove.
7036 (install-only): Remove $(man1dir) and gdb.1 installation.
7039 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7041 Fix compatibility with Linux kernel 3.8.3.
7042 * linux-tdep.c (linux_find_memory_regions_full): Move variable number
7043 to more inner block. Remove parsing of NUMBER from outer block.
7044 Parse NUMBER only if KEYWORD has been identified.
7046 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7048 Fix variable name shadowing.
7049 * linux-tdep.c (linux_find_memory_regions_full): Rename outer variable
7050 filename to mapsfilename and update its uses.
7052 2013-04-05 Eli Zaretskii <eliz@gnu.org>
7054 * Makefile.in (TAGS): Avoid warning from etags when $GDB_NM_FILE is
7055 empty. See http://sourceware.org/ml/gdb-patches/2012-08/msg00504.html
7056 and http://sourceware.org/ml/gdb-patches/2013-04/msg00055.html for
7057 details of the problem.
7059 2013-04-04 Pedro Alves <palves@redhat.com>
7060 Hui Zhu <hui@codesourcery.com>
7062 * breakpoint.c (validate_commands_for_breakpoint): If validating a
7063 tracepoint, reset its STEP_COUNT and call validate_actionline.
7065 2013-04-03 Doug Evans <dje@google.com>
7067 * dwarf2read.c (read_die_and_siblings_1): Renamed from
7068 read_die_and_siblings.
7069 (read_die_and_siblings): New function.
7070 (read_cutu_die_from_dwo): Dump die if requested.
7071 (read_die_and_children): Call read_full_die_1 and
7072 read_die_and_siblings_1.
7073 (read_full_die): Dump die if requested.
7075 * dwarf2read.c (read_comp_units_from_section): Add debugging printf.
7077 * dwarf2read.c (struct dwo_file): New member comp_dir.
7078 Rename member name to dwo_name. All uses updated.
7079 (hash_dwo_file): Include comp_dir in computation.
7080 (eq_dwo_file): Ditto.
7081 (lookup_dwo_file_slot): New arg comp_dir. All callers updated.
7082 (create_dwo_in_dwp, lookup_dwo_in_dwp, open_and_init_dwo_file): Ditto.
7084 * psymtab.c (read_psymtabs_with_fullname): Don't call
7085 psymtab_to_fullname if the basenames are different.
7087 2013-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7089 * NEWS (Changes in GDB 7.6): Update the data-disassemble for "fullname".
7090 New entry about "fullname" presence.
7092 2013-04-03 Pedro Alves <palves@redhat.com>
7094 * NEWS: Mention x86_64/Cygwin as new native configuration.
7096 2013-04-02 Doug Evans <dje@google.com>
7098 * dwarf2read.c (read_structure_type): Fix typo in comment.
7100 2013-04-02 Pedro Alves <palves@redhat.com>
7102 * NEWS: Mention "set/show debug aarch64", "set/show debug
7103 coff-pe-read" and "set/show debug mach-o".
7105 2013-04-02 Pedro Alves <palves@redhat.com>
7107 * NEWS: Mention "set/show remote trace-buffer-size-packet".
7109 2013-04-02 Eli Zaretskii <eliz@gnu.org>
7111 * Makefile.in (HFILES_NO_SRCDIR): Remove call-cmds.h.
7112 gdb_string.h is now in common/.
7114 2013-04-02 Pedro Alves <palves@redhat.com>
7116 * NEWS: Move "set debug notification" and "set trace-buffer-size"
7117 under "New options".
7119 2013-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7123 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
7125 2013-04-02 Pedro Alves <palves@redhat.com>
7129 * remote.c (send_interrupt_sequence): Use remote_serial_write.
7130 (remote_serial_write): New function.
7131 (putpkt_binary, getpkt_or_notif_sane_1): Use remote_serial_write.
7133 2013-04-01 Jiong Wang <jiwang@tilera.com>
7135 * NEWS: Mention TILE-Gx in "New native configurations" and
7136 "New targets" sections.
7138 2013-04-01 Doug Evans <dje@google.com>
7140 * dwarf2read.c (lookup_signatured_type_at_offset): Delete.
7141 (process_enumeration_scope): Simplify.
7143 * dwarf2read.c (struct dwarf2_per_cu_data): Move member
7145 (struct signatured_type): ... to here.
7146 (sig_type_ptr): New typedef.
7147 (type_unit_group): Delete member 't.first_cu'. Move member 'tus'
7148 out of union 't'. All uses updated.
7149 (dw2_get_file_names_reader): Assert not called for a type unit.
7150 (dw2_get_file_names): Assert not called for a type unit or type
7152 (build_type_psymtabs_reader): Assert called for a type unit.
7153 (build_type_psymtab_dependencies): Assert called for a type unit group.
7155 * dwarf2read.c (free_dwo_file): Add comment.
7156 (dwarf2_per_objfile_free): Unref dwp bfd.
7158 2013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
7160 * coff-pe-read.c (add_pe_exported_sym): Remove unused 'dll_name_len'.
7161 (add_pe_forwarded_sym): Remove unused 'section', 'dll_name_len'.
7162 (read_pe_exported_syms): Remove unused 'exportix'.
7163 (pe_text_section_offset): Remove unused 'opthdr_ofs', 'num_entries',
7164 'export_rva', 'export_size', 'expptr', 'exp_funcbase', 'expdata',
7165 'erva', 'name_rvas', 'ordinals', 'nexp', 'ordbase', 'dll_name'.
7167 2013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
7169 * breakpoint.c (parse_cond_to_aexpr): Remove unused 'old_chain'.
7170 (print_it_watchpoint): Remove unused 'bl'.
7171 (say_where): Remove unused 'uiout'.
7172 (bpstat_remove_breakpoint_callback): Remove unused 'uiout'.
7173 (bkpt_breakpoint_hit): Remove unused 'b'.
7174 (internal_bkpt_print_it): Remove unused 'uiout'.
7175 * buildsym.c (augment_type_symtab): Remove unused 'i'.
7177 2013-03-31 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
7179 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_float): New function.
7180 (ppc64_sysv_abi_push_dummy_call): Handle complex arguments.
7182 2013-03-29 Doug Evans <dje@google.com>
7184 * dwarf2read.c (open_dwo_file): Renamed from open_dwop_file.
7185 Delete arg is_dwp. All callers updated.
7186 (open_dwp_file): New function.
7187 (open_and_init_dwp_file): Call it.
7188 (get_dwp_file): New function.
7189 (lookup_dwo_cutu): Call it.
7191 * dwarf2read.c (open_and_init_dwp_file): Remove incorrect, and
7192 unnecessary, cleanup.
7194 * dwarf2read.c (lookup_dwo_cutu): Improve complaint text.
7196 * dwarf2read.c (read_cutu_die_from_dwo): New function.
7197 (lookup_dwo_unit): New function.
7198 (init_cutu_and_read_dies): Move DWO handling to new functions.
7200 * dwarf2read.c (struct signatured_type): Tweak comment.
7201 (struct dwo_unit): Tweak comment.
7202 (create_debug_types_hash_table): Tweak comment. Reformat long line.
7203 (create_dwo_debug_info_hash_table): Tweak comment.
7204 (dwarf2_per_cu_offset_and_type): Tweak comment.
7206 * dwarf2read.c (lookup_signatured_type): Remove complaint about
7207 missing .debug_types section.
7209 2013-03-29 Yao Qi <yao@codesourcery.com>
7211 * corelow.c: Include "completer.h".
7212 (_initialize_corelow): Call add_target_with_completer with
7213 argument 'filename_completer'.
7214 * tracepoint.c: Likewise.
7215 * exec.c (_initialize_exec): Likewise.
7216 * target.c (add_target): Rename to ...
7217 (add_target_with_completer): ... this. Call set_cmd_completer
7218 if parameter completer is not NULL.
7220 * target.h: Include "command.h".
7221 (add_target_with_completer): Declare it.
7223 2013-03-28 Joel Brobecker <brobecker@adacore.com>
7225 * coffread.c (is_import_fixup_symbol): New function.
7226 (record_minimal_symbol): Use is_import_fixup_symbol to
7227 detect import fixup symbols, and discard them.
7229 2013-03-28 Doug Evans <dje@google.com>
7231 * dwarf2read.c (create_debug_types_hash_table): Don't allocate the
7232 types hash table until we know we need it.
7234 * dwarf2read.c (create_addrmap_from_index): Complain about bad CU
7237 * dwarf2read.c (dw2_get_file_names): Delete arg "objfile".
7238 All callers updated.
7239 (dw2_print_stats): Print #read CUs too.
7240 (dump_die_shallow): Print signatured types better.
7242 * dwarf2read.c (struct dwarf2_per_cu_data): Rename member
7243 info_or_types_section to section. All uses updated.
7244 (struct dwo_unit): Ditto.
7246 2013-03-28 Pedro Alves <palves@redhat.com>
7248 * NEWS (New options): New section.
7249 (New options): Mention set/show remote trace-status-packet.
7250 * remote.c (PACKET_qTStatus): New enumeration value.
7251 (remote_get_trace_status): Skip sending qTStatus if the packet is
7252 disabled. Use packet_ok.
7253 (_initialize_remote): Register a configuration command for
7256 2013-03-28 Doug Evans <dje@google.com>
7258 * symfile.c (find_separate_debug_file): Add comment.
7259 (terminate_after_last_dir_separator): Tweak comment.
7261 * dwarf2read.c (create_partial_symtab): Add forward decl.
7262 (create_partial_symtab): Move to be closer to other psymtab functions.
7263 (process_psymtab_comp_unit_reader, process_psymtab_comp_unit): Ditto.
7265 * dwarf2read.c (dwarf2_physname): Move declaration to better spot.
7266 (compute_symtab_includes): Remove unnecessary forward declaration.
7267 (die_needs_namespace): Add comment marking group of functions for
7268 dwarf2 name computation.
7270 * typeprint.c (_initialize_typeprint): Improve type help text.
7272 * python/python.c (finish_python_initialization): Provide suggestion
7273 for how to tell gdb to find its python files.
7275 2013-03-28 Pedro Alves <palves@redhat.com>
7279 * source.c (_initialize_source): Change back "set listsize" to an
7282 2013-03-27 Gareth McMullin <gareth@blacksphere.co.nz>
7285 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
7287 2013-03-27 Pedro Alves <palves@redhat.com>
7289 * top.c (history_size): Rename to ...
7290 (history_size_setshow_var): ... this. Add comment.
7291 (show_commands): Use readline's 'history_length' instead of
7292 computing the history length by calling history_get in a loop.
7293 (set_history_size_command): Error out for sizes over INT_MAX.
7294 Restore previous history size on invalid size.
7295 (init_history): If HISTSIZE is negative, leave the history size as
7297 (init_main): Adjust.
7299 2013-03-27 Pedro Alves <palves@redhat.com>
7301 * coff-pe-read.c (_initialize_coff_pe_read): Rename "set debug
7302 coff_pe_read" command to "set debug coff-pe-read".
7304 2013-03-27 Markus Metzger <markus.t.metzger@intel.com>
7306 * record.c (command_size_to_target_size): Fix size comparison.
7307 Change parameter type from pointer to integer to integer.
7310 2013-03-27 Pierre Muller <muller@sourceware.org>
7312 * windows-nat.c (handle_output_debug_string): Avoid typecast
7313 from integer of different size warning.
7315 2013-03-26 Joel Brobecker <brobecker@adacore.com>
7317 * windows-nat.c (handle_output_debug_string): Add empty line
7318 after local block variable definition.
7320 2013-03-26 Pedro Alves <palves@redhat.com>
7322 * ser-tcp.c (wait_for_connect): Make 'polls' parameter unsigned.
7323 (net_open): Make 'polls' local unsigned.
7325 2013-03-26 Pedro Alves <palves@redhat.com>
7327 * remote.c (_initialize_remote): Make "set remoteaddresssize"
7328 a zuinteger command instead of uinteger.
7330 2013-03-26 Pedro Alves <palves@redhat.com>
7332 * record-full.c (record_full_insn_num): Make it unsigned.
7333 (record_full_check_insn_num, record_full_message)
7334 (record_full_registers_change, record_full_xfer_partial): Remove
7335 record_full_insn_max_num check (it's always != 0).
7336 (record_full_info, record_full_restore): Use %u as format string.
7337 (): Use %u as format string.
7338 (set_record_full_insn_max_num): Remove record_full_insn_max_num
7339 check (it's always != 0).
7341 2013-03-26 Pedro Alves <palves@redhat.com>
7343 * dcache.c (_initialize_dcache): Make the "set dcache line-size"
7344 and "set dcache size" commands zuinteger instead of uinteger.
7346 2013-03-26 Pedro Alves <palves@redhat.com>
7348 * cris-tdep.c (_initialize_cris_tdep): Make the "set cris-version"
7349 command zuinteger instead of uinteger.
7351 2013-03-26 Pedro Alves <palves@redhat.com>
7353 * coff-pe-read.c (_initialize_coff_pe_read): Make the command
7354 zuinteger instead of uinteger.
7356 2013-03-26 Pedro Alves <palves@redhat.com>
7358 * record.c (record_insn_history_size_setshow_var)
7359 (record_call_history_size_setshow_var): New globals.
7360 (command_size_to_target_size): New function.
7361 (cmd_record_insn_history, cmd_record_call_history): Use
7362 command_size_to_target_size instead of cast.
7363 (validate_history_size, set_record_insn_history_size)
7364 (set_record_call_history_size): New functions.
7365 (_initialize_record): Install set_record_insn_history_size and
7366 set_record_call_history_size as "set" hooks of "set record
7367 instruction-history-size" and "set record
7368 function-call-history-size".
7370 2013-03-26 Pedro Alves <palves@redhat.com>
7372 * top.c (gdb_rl_operate_and_get_next): Replace max_input_history
7373 use with history_max_entries use. Remove FIXME note.
7375 2013-03-26 Markus Metzger <markus.t.metzger@intel.com>
7377 * record-btrace.c (record_btrace_close): Call
7378 record_btrace_auto_disable.
7380 2013-03-25 Joel Brobecker <brobecker@adacore.com>
7382 * rs6000-nat.c (fixup_breakpoints): Delete declaration.
7384 2013-03-25 Doug Evans <dje@google.com>
7386 * contrib/cc-with-tweaks.sh: Check exit code of dwp.
7388 2013-03-25 Tom Tromey <tromey@redhat.com>
7391 * c-exp.y (exp): Add new productions for destructors after '.' and
7393 (write_destructor_name): New function.
7395 2013-03-25 Tom Tromey <tromey@redhat.com>
7398 * opencl-lang.c (evaluate_subexp_opencl) <STRUCTOP_STRUCT>: Use
7399 value_struct_elt, not lookup_struct_elt_type.
7400 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
7401 STRUCTOP_PTR>: Use value_struct_elt, not lookup_struct_elt_type.
7402 * expression.h (EVAL_AVOID_SIDE_EFFECTS): Update comment.
7404 2013-03-25 Yao Qi <yao@codesourcery.com>
7406 * ctf.c [USE_WIN32API]: Undef 'mkdir' and use 'mkdir'
7407 instead of '_mkdir'.
7409 2013-03-23 Eli Zaretskii <eliz@gnu.org>
7411 * windows-nat.c (windows_get_absolute_argv0): New function.
7412 * windows-nat.h: Add its prototype.
7414 * main.c (get_init_files): Use filename_ncmp instead of strncmp.
7415 Use IS_DIR_SEPARATOR instead of looking for a character inside
7416 SLASH_STRING. Include filenames.h.
7417 (captured_main) [__MINGW32__]: Make argv[0] absolute, so that
7418 relocate_gdb_directory works when passed gdb_program_name.
7419 Include windows-nat.h.
7421 2013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7423 * exceptions.h (enum errors): New entry TARGET_CLOSE_ERROR.
7424 * remote.c (trace_error): Remove the special handling of '2'.
7425 (readchar) <SERIAL_EOF>
7426 (readchar) <SERIAL_ERROR>
7427 (getpkt_or_notif_sane_1): Use TARGET_CLOSE_ERROR for them.
7428 (remote_get_trace_status): Call throw_exception if EX is
7430 * utils.c (perror_with_name): Rename to ...
7431 (throw_perror_with_name): ... here. New parameter errcode, describe it
7432 in the function comment.
7433 (perror_with_name): New function wrapper.
7434 * utils.h (enum errors): New stub declaration.
7435 (throw_perror_with_name): New declaration.
7437 2013-03-22 Pedro Alves <palves@redhat.com>
7438 Yao Qi <yao@codesourcery.com>
7439 Mark Kettenis <kettenis@gnu.org>
7441 * cli/cli-setshow.c (do_set_command) <var_uinteger>:
7442 Don't let the user set the value to UINT_MAX directly.
7443 <var_integer>: Don't let the user set the value to INT_MAX
7446 2013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7448 * remote.c (remote_unpush_target): New function.
7449 (remote_open_1): Remove two pop_target calls, update one comment, add
7450 comment to target_preopen call. Replace pop_target call by
7451 remote_unpush_target call.
7452 (interrupt_query, readchar, getpkt_or_notif_sane_1): Replace
7453 pop_target calls by remote_unpush_target calls.
7455 2013-03-22 Pedro Alves <palves@redhat.com>
7457 * linux-nat.c (linux_child_follow_fork): Don't call
7458 linux_enable_event_reporting.
7459 (linux_handle_extended_wait): Don't call
7460 linux_enable_event_reporting.
7462 2013-03-22 Pedro Alves <palves@redhat.com>
7464 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Define INSN macro,
7465 use it to rewrite the trampoline buffers with type gdb_byte[], and
7466 undefine the macro. Remove char* cast.
7468 2013-03-21 Doug Evans <dje@google.com>
7470 New commands "mt set per-command {space,time,symtab} {on,off}".
7472 * event-top.c: #include "maint.h".
7473 * main.c: #include "maint.h".
7474 * maint.c: #include <sys/time.h>, <time.h>, block.h, top.h,
7475 timeval-utils.h, maint.h, cli/cli-setshow.h.
7476 (per_command_time, per_command_space): New static globals.
7477 (per_command_symtab): New static global.
7478 (per_command_setlist, per_command_showlist): New static globals.
7479 (struct cmd_stats): Move here from utils.c.
7480 (set_per_command_time): Renamed from set_display_time in utils.c
7481 and moved here. All callers updated.
7482 (set_per_command_space): Renamed from set_display_space in utils.c
7483 and moved here. All callers updated.
7484 (count_symtabs_and_blocks): New function.
7485 (report_command_stats): Moved here from utils.c. Add support for
7486 printing symtab stats. Only print data if enabled before command
7488 (make_command_stats_cleanup): Ditto.
7489 (sert_per_command_cmd, show_per_command_cmd): New functions.
7490 (_initialize_maint_cmds): Add new commands
7491 mt set per-command {space,time,symtab} {on,off}.
7492 * maint.h: New file.
7493 * top.c: #include "maint.h".
7494 * utils.c (reset_prompt_for_continue_wait_time): New function.
7495 (get_prompt_for_continue_wait_time): New function.
7496 * utils.h (reset_prompt_for_continue_wait_time): Declare
7497 (get_prompt_for_continue_wait_time): Declare.
7498 (make_command_stats_cleanup): Moved to maint.h.
7499 (set_display_time, set_display_space): Moved to maint.h and renamed
7500 to set_per_command_time, set_per_command_space.
7501 * cli/cli-setshow.c (parse_cli_boolean_value): Renamed from
7502 parse_binary_operation and made non-static. Don't call error,
7503 just return an error marker. All callers updated.
7504 * cli/cli-setshow.h (parse_cli_boolean_value): Declare.
7506 2013-03-21 Tom Tromey <tromey@redhat.com>
7508 * symfile.c (alloc_section_addr_info): Update header. Don't set
7509 'num_sections' field.
7510 (build_section_addr_info_from_section_table): Set 'num_sections'.
7511 (build_section_addr_info_from_bfd): Likewise.
7512 (build_section_addr_info_from_objfile): Remove dead loop
7514 (free_section_addr_info): Unconditionally call xfree.
7515 (relative_addr_info_to_section_offsets, addrs_section_sort)
7516 (addr_info_make_relative, syms_from_objfile_1): Remove dead loop
7518 (syms_from_objfile_1): Remove dead 'if' condition. Check
7520 (add_symbol_file_command): Set 'num_sections'.
7521 * symfile-mem.c (symbol_file_add_from_memory): Set
7523 * somread.c (som_symfile_offsets): Remove dead loop condition.
7524 * machoread.c (macho_symfile_offsets): Remove dead 'if'.
7525 * jit.c (jit_bfd_try_read_symtab): Set 'num_sections'.
7527 2013-03-21 Tom Tromey <tromey@redhat.com>
7529 * tracepoint.h (decode_agent_options): Add 'trace_string'
7531 * tracepoint.c (decode_agent_options): Add 'trace_string'
7533 (validate_actionline): Update.
7534 (collect_symbol): Add 'trace_string' argument.
7535 (struct add_local_symbols_data) <trace_string>: New field.
7536 (do_collect_symbol): Update.
7537 (add_local_symbols): Add 'trace_string' argument.
7538 (encode_actions_1): Update.
7539 (trace_dump_actions): Update.
7540 * dwarf2loc.c (access_memory): Update.
7541 * ax.h (struct agent_expr) <tracing, trace_string>: New fields.
7542 * ax-general.c (new_agent_expr): Update.
7543 * ax-gdb.h (gen_trace_for_expr, gen_trace_for_var)
7544 (gen_trace_for_return_address): Add argument.
7545 (trace_kludge, trace_string_kludge): Remove.
7546 * ax-gdb.c (trace_kludge, trace_string_kludge): Remove.
7547 (gen_traced_pop, gen_fetch, gen_bitfield_ref, gen_expr): Update.
7548 (gen_trace_for_var): Add 'trace_string' argument.
7549 (gen_trace_for_expr, gen_trace_for_return_address): Likewise.
7550 (gen_printf, agent_eval_command_one): Update.
7552 2013-03-21 Tom Tromey <tromey@redhat.com>
7555 * c-exp.y (yylex): Rewrite to push all tokens onto the FIFO.
7556 Handle FILENAME token.
7558 2013-03-21 Tom Tromey <tromey@redhat.com>
7560 * c-exp.y (YYPRINT): Define.
7561 (c_print_token): New function.
7563 2013-03-21 Tom Tromey <tromey@redhat.com>
7565 * c-exp.y (%union) <sym, ivar, ivec>: Remove.
7567 2013-03-21 Yao Qi <yao@codesourcery.com>
7569 * ctf.c: Include "gdb_stat.h".
7570 [USE_WIN32API]: New macro 'mkdir'.
7571 (ctf_start): Use permission bits macros if they are defined.
7573 2013-03-20 Keith Seitz <keiths@redhat.com>
7575 * breakpoint.h (struct breakpoint): Add comment to
7576 extra_string indicating that this member is mallod'd.
7577 * breakpoint.c (base_breakpoint_dtor): Free extra_string.
7579 2013-03-20 Pedro Alves <palves@redhat.com>
7583 * cli/cli-setshow.c (do_set_command)
7584 <var_uinteger, var_zuinteger>: Use LONGEST for variable holding
7585 the result of parsing the command argument. Throw error if the
7586 value is greater than UINT_MAX. Print the invalid value with
7588 <var_integer, var_zinteger>: Use LONGEST for variable holding the
7589 result of parsing the command argument. Throw error if the value
7590 is greater than INT_MAX, not greater or equal. Also throw error
7591 if the value is less than INT_MIN. Print the invalid value with
7593 <var_zuinteger_unlimited>: Throw error if the value is greater
7594 than INT_MAX, not greater or equal.
7595 (do_show_command) <var_integer, var_zinteger,
7596 var_zuinteger_unlimited>: Use %d for printing int, not %u.
7598 2013-03-20 Tom Tromey <tromey@redhat.com>
7600 * ax-gdb.c (gen_var_ref): Unconditionally call via computed ops,
7602 * dwarf2read.c (read_func_scope): Remove old FIXME.
7603 * eval.c (evaluate_subexp_standard): Check SYMBOL_COMPUTED_OPS,
7605 * findvar.c (symbol_read_needs_frame, default_read_var_value):
7606 Unconditionally call via computed ops, if possible.
7607 * printcmd.c (address_info): Unconditionally call via computed ops,
7609 * stack.c (read_frame_arg): Unconditionally call via computed ops,
7611 * symtab.c (register_symbol_computed_impl): Sanity check 'ops'.
7612 * tracepoint.c (scope_info): Unconditionally call via computed ops,
7615 2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
7616 Tom Tromey <tromey@redhat.com>
7619 * coffread.c (coff_register_index): New global.
7620 (process_coff_symbol, coff_read_enum_type): Set
7621 SYMBOL_ACLASS_INDEX.
7622 (_initialize_coffread): Initialize new global.
7623 * dwarf2loc.c (locexpr_find_frame_base_location)
7624 (dwarf2_block_frame_base_locexpr_funcs)
7625 (loclist_find_frame_base_location)
7626 (dwarf2_block_frame_base_loclist_funcs): New.
7627 (dwarf_expr_frame_base_1): Call SYMBOL_BLOCK_OPS, remove internal_error.
7628 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Add location_has_loclist.
7629 * dwarf2loc.h (dwarf2_block_frame_base_locexpr_funcs)
7630 (dwarf2_block_frame_base_loclist_funcs): New.
7631 * dwarf2read.c (dwarf2_locexpr_index, dwarf2_loclist_index)
7632 (dwarf2_locexpr_block_index, dwarf2_loclist_block_index): New
7634 (read_func_scope): Update.
7635 (fixup_go_packaging, mark_common_block_symbol_computed)
7636 (var_decode_location, new_symbol_full, dwarf2_const_value):
7637 Set SYMBOL_ACLASS_INDEX.
7638 (dwarf2_symbol_mark_computed): Likewise. Add 'is_block' argument.
7639 (_initialize_dwarf2_read): Initialize new globals.
7640 * jit.c (finalize_symtab): Set SYMBOL_ACLASS_INDEX.
7641 * jv-lang.c (add_class_symbol): Set SYMBOL_ACLASS_INDEX.
7642 * mdebugread.c (mdebug_register_index, mdebug_regparm_index): New
7644 (parse_symbol, psymtab_to_symtab_1): Set SYMBOL_ACLASS_INDEX.
7645 (_initialize_mdebugread): Initialize new globals.
7646 * psympriv.h (struct partial_symbol) <aclass>: Update comment.
7647 * stabsread.c (patch_block_stabs): Set SYMBOL_ACLASS_INDEX.
7648 (stab_register_index, stab_regparm_index): New globals.
7649 (define_symbol, read_enum_type, common_block_end): Set
7650 SYMBOL_ACLASS_INDEX.
7651 (_initialize_stabsread): Initialize new globals.
7652 * symtab.c (next_aclass_value, symbol_impl, symbol_impls): New
7654 (MAX_SYMBOL_IMPLS): New define.
7655 (register_symbol_computed_impl, register_symbol_block_impl)
7656 (register_symbol_register_impl)
7657 (initialize_ordinary_address_classes): New functions.
7658 (_initialize_symtab): Call initialize_ordinary_address_classes.
7659 * symtab.h (enum address_class) <LOC_FINAL_VALUE>: New constant.
7660 (struct symbol_impl): New.
7661 (SYMBOL_ACLASS_BITS): New define.
7662 (struct symbol) <aclass, ops>: Remove fields.
7663 <aclass_index>: New field.
7664 (symbol_impls): Declare.
7665 (SYMBOL_CLASS, SYMBOL_COMPUTED_OPS, SYMBOL_REGISTER_OPS): Redefine.
7666 (SYMBOL_IMPL, SYMBOL_ACLASS_INDEX): New defines.
7667 (register_symbol_computed_impl, register_symbol_block_impl)
7668 (register_symbol_register_impl): Declare.
7669 (struct symbol_computed_ops): Add location_has_loclist.
7670 (struct symbol_block_ops): New.
7671 (SYMBOL_BLOCK_OPS): New.
7672 * xcoffread.c (process_xcoff_symbol): Set SYMBOL_ACLASS_INDEX.
7674 2013-03-20 Tom Tromey <tromey@redhat.com>
7676 * psymtab.c (find_pc_sect_psymbol, fixup_psymbol_section)
7677 (print_partial_symbols, recursively_search_psymtabs): Use
7680 2013-03-20 Pierre Muller <muller@sourceware.org>
7682 * contrib/ari/gdb_ari.sh (OP eol rule): Also check
7683 addtion, subtraction, multiplication and division binary operator.
7685 2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
7688 * bfd-target.c (target_bfd_xclose): Remove parameter quitting.
7689 * bsd-kvm.c (bsd_kvm_close): Likewise.
7690 * bsd-uthread.c (bsd_uthread_close): Likewise.
7691 * corelow.c (core_close): Likewise.
7692 (core_close_cleanup): Remove parameter quitting from a caller.
7693 * event-top.c (async_disconnect): Likewise.
7694 * exec.c (exec_close_1): Remove parameter quitting.
7695 * go32-nat.c (go32_close): Likewise.
7696 * linux-nat.c (linux_nat_close): Remove parameter quitting. Remove
7697 parameter quitting from a caller.
7698 * mips-linux-nat.c (super_close): Remove parameter quitting from the
7700 (mips_linux_close): Remove parameter quitting. Remove parameter
7701 quitting from a caller.
7702 * monitor.c (monitor_close): Remove parameter quitting.
7703 * monitor.h (monitor_close): Likewise.
7704 * record-btrace.c (record_btrace_close): Likewise.
7705 * record-full.c (record_full_close): Likewise.
7706 * remote-m32r-sdi.c (m32r_close): Remove parameter quitting and remove
7707 it also from fprintf_unfiltered.
7708 * remote-mips.c (mips_close): Remove parameter quitting.
7709 (mips_detach): Remove parameter quitting from a caller.
7710 * remote-sim.c (gdbsim_close): Remove parameter quitting.
7711 (gdbsim_close): Remove duplicate function comment. Remove parameter
7712 quitting and remove it also from printf_filtered.
7713 * remote.c (remote_close): Remove parameter quitting.
7714 * solib-svr4.c (enable_break): Remove parameter quitting from a caller.
7715 * target.c (update_current_target): Remove parameter int from to_close
7717 (push_target, unpush_target, pop_target): Remove parameter quitting from
7719 (pop_all_targets_above, pop_all_targets): Remove parameter quitting.
7720 Remove parameter quitting from a caller.
7721 (target_preopen): Remove parameter quitting from a caller.
7722 (target_close): Remove parameter quitting. Remove parameter quitting
7723 from a caller two times. Remove parameter quitting also from
7725 * target.h (struct target_ops): Remove parameter quitting and as int
7726 from fields to_xclose and to_close.
7727 (extern struct target_ops current_target):
7728 (target_close, pop_all_targets): Remove parameter quitting. Update the
7730 (pop_all_targets_above): Remove parameter quitting.
7731 * top.c (quit_target): Remove parameter quitting from a caller.
7732 * tracepoint.c (tfile_close): Remove parameter quitting.
7733 * windows-nat.c (windows_close): Remove parameter quitting.
7735 2013-03-20 Corinna Vinschen <vinschen@redhat.com>
7737 * windows-nat.c (handle_output_debug_string): Replace call
7738 to string_to_core_addr with call to strtoull.
7740 2013-03-20 Yao Qi <yao@codesourcery.com>
7742 * ctf.c (ctf_save_metadata_header): Define macro HOST_ENDIANNESS
7743 and write it to CTF metadata.
7745 2013-03-19 Corinna Vinschen <vinschen@redhat.com>
7747 * windows-nat.c (handle_output_debug_string): Change type of n to
7748 SIZE_T to avoid crash on 64 bit systems.
7750 2013-03-17 Eli Zaretskii <eliz@gnu.org>
7752 * python/python-internal.h (HAVE_SNPRINTF)
7753 [_WIN32 && HAVE_DECL_SNPRINTF]: Define, to avoid compiler warnings
7754 about redefinition of snprintf by pyerrors.h.
7756 2013-03-15 Steve Ellcey <sellcey@mips.com>
7758 * remote-sim.c (sim_command_completer): Make char arguments const.
7760 2013-03-15 Tom Tromey <tromey@redhat.com>
7763 * gdbtypes.c (types_equal): Handle TYPE_CODE_FUNC.
7765 2013-03-14 Tom Tromey <tromey@redhat.com>
7767 * gdb_bfd.c (struct gdb_bfd_data) <crc_computed, crc>:
7769 (get_file_crc): Move from symfile.c.
7770 (gdb_bfd_crc): New function.
7771 * gdb_bfd.h (gdb_bfd_crc): Declare.
7772 * objfiles.h (struct objfile) <crc32, crc32_p>: Remove.
7773 * symfile.c (get_file_crc): Move to gdb_bfd.c.
7774 (separate_debug_file_exists): Use gdb_bfd_crc.
7776 2013-03-14 Tom Tromey <tromey@redhat.com>
7778 * symfile.c (get_debug_link_info): Remove.
7779 (find_separate_debug_file_by_debuglink): Use
7780 bfd_get_debug_link_info.
7782 2013-03-14 Tom Tromey <tromey@redhat.com>
7784 * symtab.c (error_in_psymtab_expansion): New function.
7785 (lookup_symbol_aux_quick)
7786 (basic_lookup_transparent_type_quick): Remove "last resort"
7787 code. Use error_in_psymtab_expansion.
7789 2013-03-14 Doug Evans <dje@google.com>
7790 Jan Kratochvil <jan.kratochvil@redhat.com>
7792 * dwarf2read.c (dw2_map_symtabs_matching_filename): Put continue after
7793 any successful compare_filenames_for_search or FILENAME_CMP.
7794 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
7795 * symtab.c (iterate_over_some_symtabs): Likewise.
7797 2013-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7799 * source.c (print_source_lines_base): Make a local copy of
7802 2013-03-14 Hui Zhu <hui_zhu@mentor.com>
7803 Jan Kratochvil <jan.kratochvil@redhat.com>
7805 * source.c (print_source_lines_base): Suppress "file" for TUI.
7807 2013-03-14 Keith Seitz <keiths@redhat.com>
7808 Alan Matsuoka <alanm@redhat.com>
7812 * cp-namespace.c (cp_lookup_nested_symbol): Handle TYPE_CODE_FUNC and
7814 * elfread.c (elf_symtab_read): Handle BSF_GNU_UNIQUE for certain
7817 2013-03-14 Yao Qi <yao@codesourcery.com>
7819 * tracepoint.c (tfile_write_status): Write 'stop_desc' of trace
7820 status to tfile if trace is stopped by command 'tstop'.
7822 2013-03-14 Yao Qi <yao@codesourcery.com>
7824 * tracepoint.c (tfile_write_status): Write trace notes and user
7825 name into tfile if they are not NULL.
7827 2013-03-14 Hui Zhu <hui@codesourcery.com>
7828 Yao Qi <yao@codesourcery.com>
7830 * Makefile.in (REMOTE_OBS): Add ctf.o.
7831 (SFILES): Add ctf.c.
7832 (HFILES_NO_SRCDIR): Add ctf.h.
7833 * ctf.c, ctf.h: New files.
7834 * tracepoint.c: Include 'ctf.h'.
7835 (collect_pseudocommand): Remove static.
7836 (trace_save_command): Parse option "-ctf".
7837 Produce different trace file writers per option.
7838 Adjust output message.
7839 (trace_save_tfile, trace_save_ctf): New.
7840 * tracepoint.h (trace_save_tfile, trace_save_ctf): Declare.
7841 * mi/mi-main.c: Include 'ctf.h'.
7842 (mi_cmd_trace_save): Handle option '-ctf'. Call either
7843 trace_save_tfile or trace_save_ctf.
7844 * NEWS: Mention these changes.
7846 2013-03-14 Yao Qi <yao@codesourcery.com>
7848 * tracepoint.c (trace_file_writer_xfree): New.
7849 (struct tfile_writer_data): New.
7850 (tfile_dtor, tfile_can_target_save, tfile_start): New.
7851 (tfile_write_header, tfile_write_regblock_type): New.
7852 (tfile_write_status, tfile_write_uploaded_tsv): New.
7853 (tfile_write_uploaded_tp, tfile_write_definition_end): New.
7854 (tfile_write_raw_data, (tfile_end): New.
7855 (tfile_write_ops): New global variable.
7856 (TRACE_WRITE_R_BLOCK): New macro.
7857 (TRACE_WRITE_M_BLOCK_HEADER): New macro.
7858 (TRACE_WRITE_M_BLOCK_MEMORY): New macro.
7859 (TRACE_WRITE_V_BLOCK): New macro.
7860 (trace_save): Add extra one parameter WRITER. Make it static.
7861 Use WRITER to writer trace.
7862 (tfile_trace_file_writer_new): New.
7863 (trace_save_command): Caller update.
7864 (trace_save_tfile): Write trace data in TFILE format.
7865 * tracepoint.h (struct trace_frame_write_ops): New.
7866 (struct trace_file_write_ops): New.
7867 (struct trace_file_writer): New.
7868 (trace_save): Remove its declaration.
7869 (trace_save_tfile): Declare it.
7870 * mi/mi-main.c (mi_cmd_trace_save): Call trace_save_tfile
7871 instead of trace_save.
7873 2013-03-13 Pedro Alves <palves@redhat.com>
7875 * hppa-hpux-nat.c (hppa_hpux_save_state_offset): Make static.
7877 2013-03-13 Pedro Alves <palves@redhat.com>
7879 * dbxread.c (read_ofile_symtab, process_one_symbol): Remove
7881 * demangle.c (current_demangling_style_string): Make it const.
7882 (set_demangling_command): Assert the demangling style is known.
7883 Remove all handling of unknown styles. Set
7884 'current_demangling_style_string' to an element of the
7885 demangling_style_names array.
7886 (set_demangling_style): Delete.
7887 (_initialize_demangler): Set current_demangling_style_string to the
7888 element of the demangling_style_names array that corresponds to
7889 the default demangling style. Remove FIXME note. Don't call
7890 set_demangling_style.
7891 * gdb-demangle.h (set_demangling_style): Remove declaration.
7893 2013-03-13 Pedro Alves <palves@redhat.com>
7895 * ada-lang.c (struct add_partial_datum) <text, text0, word>: Make
7897 (ada_make_symbol_completion_list): Make "text0" parameter const.
7898 * ax-gdb.c (agent_eval_command_one): Make "exp" parameter const.
7899 * breakpoint.c (condition_completer): Make "text" and "word"
7900 parameters const. Adjust.
7901 (check_tracepoint_command): Adjust to validate_actionline
7903 (catch_syscall_completer): Make "text" and "word" parameters
7905 * cli/cli-cmds.c (show_user): Make "comname" local const.
7906 (valid_command_p): Make "command" parameter const.
7907 (alias_command): Make "alias_prefix" and "command_prefix" locals
7909 * cli/cli-decode.c (add_cmd): Make "name" parameter const.
7910 (add_alias_cmd): Make "name" and "oldname" parameters const.
7911 Adjust. No longer make copy of OLDNAME.
7912 (add_prefix_cmd, add_abbrev_prefix_cmd, add_set_or_show_cmd)
7913 (add_setshow_cmd_full, add_setshow_enum_cmd)
7914 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
7915 (add_setshow_filename_cmd, add_setshow_string_cmd)
7916 (add_setshow_string_noescape_cmd)
7917 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
7918 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
7919 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd)
7920 (delete_cmd, add_info, add_info_alias, add_com, add_com_alias):
7921 Make "name" parameter const.
7922 (help_cmd): Rename "command" parameter to "arg". New const local
7924 (find_cmd): Make "command" parameter const.
7925 (lookup_cmd_1): Make "text" parameter pointer to const. Adjust to
7926 deprecated_cmd_warning prototype change.
7927 (undef_cmd_error): Make "cmdtype" parameter const.
7928 (lookup_cmd): Make "line" parameter const.
7929 (deprecated_cmd_warning): Change type of "text" parameter to
7930 pointer to const char, from pointer to pointer to char. Adjust.
7931 (lookup_cmd_composition): Make "text" parameter const.
7932 (complete_on_cmdlist, complete_on_enum): Make "text" and "word"
7934 * cli/cli-decode.h (struct cmd_list_element) <name>: Make field
7936 * cli/cli-script.c (validate_comname): Make "tem" local const.
7937 (define_command): New const local "tem_c". Use it in calls to
7939 (document_command): Make "tem" and "comfull" locals const.
7940 (show_user_1): Make "prefix" and "name" parameters const.
7941 * cli-script.h (show_user_1): Make "prefix" and "name" parameters
7943 * command.h (add_cmd, add_alias_cmd, add_prefix_cmd)
7944 (add_abbrev_prefix_cmd, completer_ftype, lookup_cmd, lookup_cmd_1)
7945 (deprecated_cmd_warning, lookup_cmd_composition, add_com)
7946 (add_com_alias, add_info, add_info_alias, complete_on_cmdlist)
7947 (complete_on_enum, add_setshow_enum_cmd)
7948 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
7949 (add_setshow_filename_cmd, add_setshow_string_cmd)
7950 (add_setshow_string_noescape_cmd)
7951 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
7952 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
7953 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
7954 Change prototypes, constifying strings.
7955 * completer.c (noop_completer, filename_completer): Make "text"
7956 and "prefix" parameters const.
7957 (location_completer, expression_completer)
7958 (complete_line_internal): Make "text" and "prefix" parameters
7960 (command_completer, signal_completer): Make "text" and "prefix"
7962 * completer.h (noop_completer, filename_completer)
7963 (expression_completer, location_completer, command_completer)
7964 (signal_completer): Change prototypes.
7965 * corefile.c (complete_set_gnutarget): Make "text" and "word"
7967 * cp-abi.c (cp_abi_completer): Likewise.
7968 * expression.h (parse_expression_for_completion): Change
7970 * f-lang.c (f_make_symbol_completion_list): Make "text" and "word"
7972 * infcmd.c (_initialize_infcmd): Make "cmd_name" local const.
7973 * infrun.c (handle_completer): Make "text" and "word" parameters
7975 * interps.c (interpreter_completer): Make "text" and "word"
7977 * language.h (struct language_defn)
7978 <la_make_symbol_completion_list>: Make "text" and "word"
7980 * parse.c (parse_exp_1): Move const hack to parse_exp_in_context.
7981 (parse_exp_in_context): Rename to ...
7982 (parse_exp_in_context_1): ... this.
7983 (parse_exp_in_context): Reimplement, with const hack from
7985 (parse_expression_for_completion): Make "string" parameter const.
7986 * printcmd.c (decode_format): Make "string_ptr" parameter pointer
7987 to pointer to const char. Adjust.
7988 (print_command_1): Make "exp" parameter const.
7989 (output_command): Rename to ...
7990 (output_command_const): ... this. Make "exp" parameter const.
7991 (output_command): Reimplement.
7992 (x_command): Adjust.
7993 (display_command): Rename "exp" parameter to "arg". New "exp"
7994 local, const version of "arg".
7995 * python/py-auto-load.c (gdbpy_initialize_auto_load): Make
7996 "cmd_name" local const.
7997 * python/py-cmd.c (cmdpy_destroyer): Cast const away in xfree
7999 (cmdpy_completer): Make "text" and "word" parameters const.
8000 (gdbpy_parse_command_name): Make "prefix_text2" local const.
8001 * python/py-param.c (add_setshow_generic): Make "tmp_name" local
8003 * remote.c (_initialize_remote): Make "cmd_name" local const.
8004 * symtab.c (language_search_unquoted_string): Make "text" and "p"
8005 parameters const. Adjust.
8006 (completion_list_add_fields): Make "sym_text", "text" and "word"
8008 (struct add_name_data) <sym_text, text, word>: Make fields const.
8009 (default_make_symbol_completion_list_break_on): Make "text" and
8010 "word" parameters const. Adjust locals.
8011 (default_make_symbol_completion_list)
8012 (make_symbol_completion_list, make_symbol_completion_type)
8013 (make_symbol_completion_list_fn): Make "text" and "word"
8015 (make_file_symbol_completion_list): Make "text", "word" and
8016 "srcfile" parameters const. Adjust locals.
8017 (add_filename_to_list): Make "text" and "word" parameters const.
8018 (struct add_partial_filename_data) <text, word>: Make fields
8020 (make_source_files_completion_list): Make "text" and "word"
8022 * symtab.h (default_make_symbol_completion_list_break_on)
8023 (default_make_symbol_completion_list, make_symbol_completion_list)
8024 (make_symbol_completion_type enum type_code)
8025 (make_symbol_completion_list_fn make_file_symbol_completion_list)
8026 (make_source_files_completion_list): Change prototype.
8027 * top.c (execute_command): Adjust to pass pointer to pointer to
8028 const char to lookup_cmd, and to deprecated_cmd_warning prototype
8030 (set_verbose): Make "cmdname" local const.
8031 * tracepoint.c (decode_agent_options): Make "exp" parameter const,
8033 (validate_actionline): Make "line" parameter a pointer to const
8035 (encode_actions_1): Make "action_exp" local const, and adjust.
8036 (encode_actions): Adjust.
8037 (replace_comma): Delete.
8038 (trace_dump_actions): Make "action_exp" and "next_comma" locals
8039 const, and adjust. Don't frob the action string while splitting
8040 it at commas. Instead, make a copy of each split substring in
8042 (trace_dump_command): Adjust to validate_actionline prototype
8044 * tracepoint.h (decode_agent_options, decode_agent_options)
8045 (encode_actions, validate_actionline): Change prototypes.
8046 * valprint.h (output_command): Delete declaration.
8047 (output_command_const): Declare.
8048 * value.c (function_destroyer): Cast const away in xfree call.
8050 2013-03-13 Pedro Alves <palves@redhat.com>
8052 * ada-lang.c (ada_decode_symbol): Cast away constness of GSYMBOL
8053 rather than casting 'const char * const *' to 'const char **'.
8054 * ada-lex.l (processInt): Make "trailer" local const. Remove
8055 'const char **' cast.
8056 * arm-linux-tdep.c (arm_stap_parse_special_token): Add 'char *'
8057 locals, and use those as strtol output pointer, instead than doing
8058 invalid casts to from 'const char **' to 'char **'.
8059 (_initialize_demangle): Remove cast.
8060 * i386-tdep.c (i386_stap_parse_special_token): : Add 'char *'
8061 locals, and use those as strtol output pointer, instead than doing
8062 invalid casts to from 'const char **' to 'char **'.
8063 * solib-dsbt.c (dsbt_get_initial_loadmaps): Remove 'gdb_byte**'
8065 * stap-probe.c (stap_parse_register_operand)
8066 (stap_parse_single_operand): Likewise.
8068 2013-03-13 Yao Qi <yao@codesourcery.com>
8070 * tracepoint.c (tfile_get_trace_state_variable_value): Look for
8071 the last matched 'V' blcok in trace frame.
8073 2013-03-12 Joel Brobecker <brobecker@adacore.com>
8075 * NEWS: Create a new section for the next release branch.
8076 Rename the section of the current branch, now that it has
8079 2013-03-12 Joel Brobecker <brobecker@adacore.com>
8081 GDB 7.6 branch created (branch timestamp: 2013-03-12 22:15 UTC)
8082 * version.in: Bump version to 7.6.50.20130312-cvs.
8084 2013-03-12 Keith Seitz <keiths@redhat.com>
8086 * mi/mi-cmds.h (mi_execute_command): Make "cmd" const.
8087 * mi/mi-interp.c (mi_interpreter_exec): Make "command" const.
8088 Remove temporary copy of input string.
8089 (mi_execute_command_wrapper): Make "cmd" const.
8090 * mi/mi-main.c (mi_execute_command): Make "string_ptr" const.
8091 * mi/mi-parse.c (mi_parse_argv): Make "args" const.
8093 (mi_parse): Make "cmd" const.
8095 * mi/mi-parse.h (mi_parse): Make "cmd" const.
8097 2013-03-12 Keith Seitz <keiths@redhat.com>
8099 * ada-lang.c (ada_read_renaming_var_value): Pass const
8100 pointer to expression string to parse_exp_1.
8101 (create_excep_cond_exprs): Likewise.
8102 * ax-gdb.c (agent_eval_command_one): Likewise.
8103 (maint_agent_printf_command): Likewise.
8104 Constify much of the string handling/parsing.
8105 * breakpoint.c (set_breakpoint_condition): Pass const
8106 pointer to expression string to parse_exp_1.
8107 (update_watchpoint): Likewise.
8108 (parse_cmd_to_aexpr): Constify string handling.
8109 Pass const pointer to parse_exp_1.
8110 (init_breakpoint_sal): Pass const pointer to parse_exp_1.
8111 (find_condition_and_thread): Likewise.
8113 (watch_command_1): Make "arg" const.
8114 Constify string handling.
8115 Copy the expression string instead of changing the input
8117 (update_breakpoint_location): Pass const pointer to
8119 * eval.c (parse_and_eval_address): Make "exp" const.
8120 (parse_to_comma_and_eval): Make "expp" const.
8121 (parse_and_eval): Make "exp" const.
8122 * expression.h (parse_expression): Make argument const.
8123 (parse_exp_1): Make first argument const.
8124 * findcmd.c (parse_find_args): Treat "args" as const.
8125 * linespec.c (parse_linespec): Pass const pointer to
8126 linespec_expression_to_pc.
8127 (linespec_expression_to_pc): Make "exp_ptr" const.
8128 * parse.c (parse_exp_1): Make "stringptr" const.
8129 Make a copy of the expression to pass to parse_exp_in_context until
8130 this whole interface can be constified.
8131 (parse_expression): Make "string" const.
8132 * printcmd.c (ui_printf): Treat "arg" as const.
8133 Handle const strings.
8134 * tracepoint.c (validate_actionline): Pass const pointer to
8135 all calls to parse_exp_1.
8136 (encode_actions_1): Likewise.
8137 * value.h (parse_to_comma_and_eval): Make argument const.
8138 (parse_and_eval_address): Likewise.
8139 (parse_and_eval): Likewise.
8140 * varobj.c (varobj_create): Pass const pointer to parse_exp_1.
8141 (varobj_set_value): Likewise.
8142 * cli/cli-cmds.c (disassemble_command): Treat "arg" as const and
8143 constify string handling.
8144 Pass const pointers to parse_and_eval_address and
8145 parse_to_comman_and_eval.
8146 * cli/cli-utils.c (skip_to_space): Rename to ...
8147 (skip_to_space_const): ... this. Handle const strings.
8148 * cli/cli-utils.h (skip_to_space): Turn into macro which invokes
8149 skip_to_space_const.
8150 (skip_to_space_const): Declare.
8151 * common/format.c (parse_format_string): Make "arg" const.
8152 Handle const strings.
8153 * common/format.h (parse_format_string): Make "arg" const.
8154 * gdbserver/ax.c (ax_printf): Make "format" const.
8155 * python/python.c (gdbpy_parse_and_eval): Do not make a copy
8156 of the expression string.
8158 2013-03-12 Hui Zhu <hui@codesourcery.com>
8160 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Update error message.
8162 2013-03-12 Yao Qi <yao@codesourcery.com>
8163 Hui Zhu <hui@codesourcery.com>
8165 * dwarf2loc.c (access_memory): Change nbits to nbytes in gdb_assert.
8166 (dwarf2_compile_expr_to_ax): Call access_memory in DW_OP_deref and
8169 2013-03-12 Paul Hilfinger <hilfingr@adacore.com>
8171 * ada-lex.l (rules): Only recognize 'thread' as a
8172 delimiter when followed by numerals, as for c-exp.y.
8173 Use new rewind_to_char function to rewind the input for
8174 expression-delimiting tokens.
8175 (rewind_to_char): New function.
8177 2013-03-11 Pedro Alves <palves@redhat.com>
8178 Jan Kratochvil <jan.kratochvil@redhat.com>
8180 * configure: Regenerate.
8181 * configure.ac (check dynamic export flag): Link python test with
8184 2013-03-11 Doug Evans <dje@google.com>
8185 Keith Seitz <keiths@redhat.com>
8187 * linespec.c (find_linespec_symbols): Call find_function_symbols
8188 first, and then call lookup_prefix_sym/find_method.
8190 2013-03-11 Pedro Alves <palves@redhat.com>
8192 * charset.c (convert_between_encodings): Don't cast between
8193 different pointer to pointer types. Instead, make the 'inp' local
8194 be of the type iconv expects.
8195 (wchar_iterate): Don't cast between different pointer to pointer
8196 types. Instead, use new pointer local of the type iconv expects.
8197 * target.c (target_read_stralloc, target_fileio_read_stralloc):
8198 Add new local of type char pointer, and use it to get a
8199 char/string view of the byte buffer, instead of casting between
8200 pointer to pointer types.
8202 2013-03-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
8204 * remote.c (remote_set_trace_buffer_size): Move != operator
8205 to the start of next line to fix an ARI warning.
8207 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8209 * NEWS: Add record changes.
8211 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8213 * record-btrace.c (btrace_insn_history): Omit the pc prefix in
8214 the instruction history disassembly.
8215 * disasm.c (dump_insns): Omit the pc prefix, if requested.
8216 * disasm.h (DISASSEMBLY_OMIT_PC): New.
8218 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8220 * Makefile.in (SFILES): Add record-btrace.c
8221 (COMMON_OBS): Add record-btrace.o
8222 * record-btrace.c: New.
8223 * objfiles.c: Include btrace.h.
8224 (free_objfile): call btrace_free_objfile.
8226 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8228 * target.c (target_call_history, target_call_history_from,
8229 target_call_history_range): New.
8230 * target.h (target_ops) <to_call_history, to_call_history_from,
8231 to_call_history_range>: New fields.
8232 (target_call_history, target_call_history_from,
8233 target_call_history_range): New declaration.
8234 * record.c (get_call_history_modifiers, cmd_record_call_history,
8235 record_call_history_size): New.
8236 (_initialize_record): Add the "record function-call-history" command.
8237 Add "set/show record function-call-history-size" commands.
8238 * record.h (record_print_flag): New.
8240 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8242 * target.h (target_ops) <to_insn_history, to_insn_history_from,
8243 to_insn_history_range>: New fields.
8244 (target_insn_history): New.
8245 (target_insn_history_from): New.
8246 (target_insn_history_range): New.
8247 * target.c (target_insn_history): New.
8248 (target_insn_history_from): New.
8249 (target_insn_history_range): New.
8250 * record.c: Include cli/cli-utils.h, disasm.h, ctype.h.
8251 (record_insn_history_size): New.
8252 (get_insn_number): New.
8253 (get_context_size): New.
8255 (get_insn_history_modifiers): New.
8256 (cmd_record_insn_history): New.
8257 (_initialize_record): Add "set/show record instruction-history-size"
8258 command. Add "record instruction-history" command.
8260 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8262 * record.h (record_disconnect): New.
8263 (record_detach): New.
8264 (record_mourn_inferior): New.
8266 * record-full.c (record_disconnect, record_detach,
8267 record_mourn_inferior, record_kill): Move to...
8268 * record.c: ...here.
8271 (record_unpush): New.
8272 (cmd_record_stop): Call record_stop. Replace unpush_target
8273 call with record_unpush call.
8274 (record_disconnect, record_detach): Assert that the target
8275 is of record stratum. Call record_unpush, record_stop, and
8277 (record_mourn_inferior, record_kill): Assert that the target
8278 is of record stratum. Call record_unpush and DEBUG.
8280 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8282 * record-full.h, record-full.c (record_memory_query): Rename
8284 (record_full_memory_query): ...this. Update all users.
8285 (record_arch_list_add_reg): Rename to ...
8286 (record_full_arch_list_add_reg): ...this. Update all users.
8287 (record_arch_list_add_mem): Rename to ...
8288 (record_full_arch_list_add_mem): ...this. Update all users.
8289 (record_arch_list_add_end): Rename to ...
8290 (record_full_arch_list_add_end): ...this. Update all users.
8291 (record_gdb_operation_disable_set): Rename to ...
8292 (record_full_gdb_operation_disable_set): ...this.
8295 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8297 * record-full.c (DEFAULT_RECORD_INSN_MAX_NUM): Renamed to ...
8298 (DEFAULT_RECORD_FULL_INSN_MAX_NUM): ... this. Updated all users.
8299 (RECORD_IS_REPLAY): Renamed to ...
8300 (RECORD_FULL_IS_REPLAY): ... this. Updated all users.
8301 (RECORD_FILE_MAGIC): Renamed to ...
8302 (RECORD_FULL_FILE_MAGIC): ... this. Updated all users.
8303 (record_mem_entry): Renamed to ...
8304 (record_full_mem_entry): ... this. Updated all users.
8305 (record_reg_entry): Renamed to ...
8306 (record_full_reg_entry): ... this. Updated all users.
8307 (record_end_entry): Renamed to ...
8308 (record_full_end_entry): ... this. Updated all users.
8309 (record_type) <record_end, record_reg, record_mem>: Renamed
8311 (record_full_type) <record_full_end, record_full_reg,
8312 record_full_mem>: ... this. Updated all users.
8313 (record_entry): Renamed to ...
8314 (record_full_entry): ... this. Updated all users.
8315 (record_core_buf_entry): Renamed to ...
8316 (record_full_core_buf_entry): ... this. Updated all users.
8317 (record_core_regbuf): Renamed to ...
8318 (record_full_core_regbuf): ... this. Updated all users.
8319 (record_core_start): Renamed to ...
8320 (record_full_core_start): ... this. Updated all users.
8321 (record_core_end): Renamed to ...
8322 (record_full_core_end): ... this. Updated all users.
8323 (record_core_buf_list): Renamed to ...
8324 (record_full_core_buf_list): ... this. Updated all users.
8325 (record_first): Renamed to ...
8326 (record_full_first): ... this. Updated all users.
8327 (record_list): Renamed to ...
8328 (record_full_list): ... this. Updated all users.
8329 (record_arch_list_head): Renamed to ...
8330 (record_full_arch_list_head): ... this. Updated all users.
8331 (record_arch_list_tail): Renamed to ...
8332 (record_full_arch_list_tail): ... this. Updated all users.
8333 (record_stop_at_limit): Renamed to ...
8334 (record_full_stop_at_limit): ... this. Updated all users.
8335 (record_insn_max_num): Renamed to ...
8336 (record_full_insn_max_num): ... this. Updated all users.
8337 (record_insn_num): Renamed to ...
8338 (record_full_insn_num): ... this. Updated all users.
8339 (record_insn_count): Renamed to ...
8340 (record_full_insn_count): ... this. Updated all users.
8341 (record_ops): Renamed to ...
8342 (record_full_ops): ... this. Updated all users.
8343 (record_core_ops): Renamed to ...
8344 (record_full_core_ops): ... this. Updated all users.
8345 (set_record_cmdlist): Renamed to ...
8346 (set_record_full_cmdlist): ... this. Updated all users.
8347 (show_record_cmdlist): Renamed to ...
8348 (show_record_full_cmdlist): ... this. Updated all users.
8349 (record_cmdlist): Renamed to ...
8350 (record_full_cmdlist): ... this. Updated all users.
8351 (record_beneath_to_resume_ops): Renamed to ...
8352 (record_full_beneath_to_resume_ops): ... this. Updated all users.
8353 (record_beneath_to_resume): Renamed to ...
8354 (record_full_beneath_to_resume): ... this. Updated all users.
8355 (record_beneath_to_wait_ops): Renamed to ...
8356 (record_full_beneath_to_wait_ops): ... this. Updated all users.
8357 (record_beneath_to_wait): Renamed to ...
8358 (record_full_beneath_to_wait): ... this. Updated all users.
8359 (record_beneath_to_store_registers_ops): Renamed to ...
8360 (record_full_beneath_to_store_registers_ops): ... this.
8362 (record_beneath_to_store_registers): Renamed to ...
8363 (record_full_beneath_to_store_registers): ... this.
8365 (record_beneath_to_xfer_partial_ops): Renamed to ...
8366 (record_full_beneath_to_xfer_partial_ops): ... this.
8368 (record_beneath_to_xfer_partial): Renamed to ...
8369 (record_full_beneath_to_xfer_partial): ... this.
8371 (record_beneath_to_insert_breakpoint): Renamed to ...
8372 (record_full_beneath_to_insert_breakpoint): ... this.
8374 (record_beneath_to_stopped_by_watchpoint): Renamed to ...
8375 (record_full_beneath_to_stopped_by_watchpoint): ... this.
8377 (record_beneath_to_stopped_data_address): Renamed to ...
8378 (record_full_beneath_to_stopped_data_address): ... this.
8380 (record_beneath_to_async): Renamed to ...
8381 (record_full_beneath_to_async): ... this. Updated all users.
8382 (record_goto_insn): Renamed to ...
8383 (record_full_goto_insn): ... this. Updated all users.
8384 (record_save): Renamed to ...
8385 (record_full_save): ... this. Updated all users.
8386 (record_reg_alloc): Renamed to ...
8387 (record_full_reg_alloc): ... this. Updated all users.
8388 (record_reg_release): Renamed to ...
8389 (record_full_reg_release): ... this. Updated all users.
8390 (record_mem_alloc): Renamed to ...
8391 (record_full_mem_alloc): ... this. Updated all users.
8392 (record_mem_release): Renamed to ...
8393 (record_full_mem_release): ... this. Updated all users.
8394 (record_end_alloc): Renamed to ...
8395 (record_full_end_alloc): ... this. Updated all users.
8396 (record_end_release): Renamed to ...
8397 (record_full_end_release): ... this. Updated all users.
8398 (record_entry_release): Renamed to ...
8399 (record_full_entry_release): ... this. Updated all users.
8400 (record_list_release): Renamed to ...
8401 (record_full_list_release): ... this. Updated all users.
8402 (record_list_release_following): Renamed to ...
8403 (record_full_list_release_following): ... this.
8405 (record_list_release_first): Renamed to ...
8406 (record_full_list_release_first): ... this. Updated all users.
8407 (record_arch_list_add): Renamed to ...
8408 (record_full_arch_list_add): ... this. Updated all users.
8409 (record_get_loc): Renamed to ...
8410 (record_full_get_loc): ... this. Updated all users.
8411 (record_check_insn_num): Renamed to ...
8412 (record_full_check_insn_num): ... this. Updated all users.
8413 (record_arch_list_cleanups): Renamed to ...
8414 (record_full_arch_list_cleanups): ... this. Updated all users.
8415 (record_message): Renamed to ...
8416 (record_full_message): ... this. Updated all users.
8417 (record_message_wrapper): Renamed to ...
8418 (record_full_message_wrapper): ... this. Updated all users.
8419 (record_message_wrapper_safe): Renamed to ...
8420 (record_full_message_wrapper_safe): ... this. Updated all users.
8421 (record_gdb_operation_disable): Renamed to ...
8422 (record_full_gdb_operation_disable): ... this. Updated all users.
8423 (record_hw_watchpoint): Renamed to ...
8424 (record_full_hw_watchpoint): ... this. Updated all users.
8425 (record_exec_insn): Renamed to ...
8426 (record_full_exec_insn): ... this. Updated all users.
8427 (record_restore): Renamed to ...
8428 (record_full_restore): ... this. Updated all users.
8429 (record_async_inferior_event_token): Renamed to ...
8430 (record_full_async_inferior_event_token): ... this.
8432 (record_async_inferior_event_handler): Renamed to ...
8433 (record_full_async_inferior_event_handler): ... this.
8435 (record_core_open_1): Renamed to ...
8436 (record_full_core_open_1): ... this. Updated all users.
8437 (record_open_1): Renamed to ...
8438 (record_full_open_1): ... this. Updated all users.
8439 (record_open): Renamed to ...
8440 (record_full_open): ... this. Updated all users.
8441 (record_close): Renamed to ...
8442 (record_full_close): ... this. Updated all users.
8443 (record_resume_step): Renamed to ...
8444 (record_full_resume_step): ... this. Updated all users.
8445 (record_resumed): Renamed to ...
8446 (record_full_resumed): ... this. Updated all users.
8447 (record_execution_dir): Renamed to ...
8448 (record_full_execution_dir): ... this. Updated all users.
8449 (record_resume): Renamed to ...
8450 (record_full_resume): ... this. Updated all users.
8451 (record_get_sig): Renamed to ...
8452 (record_full_get_sig): ... this. Updated all users.
8453 (record_sig_handler): Renamed to ...
8454 (record_full_sig_handler): ... this. Updated all users.
8455 (record_wait_cleanups): Renamed to ...
8456 (record_full_wait_cleanups): ... this. Updated all users.
8457 (record_wait_1): Renamed to ...
8458 (record_full_wait_1): ... this. Updated all users.
8459 (record_wait): Renamed to ...
8460 (record_full_wait): ... this. Updated all users.
8461 (record_stopped_by_watchpoint): Renamed to ...
8462 (record_full_stopped_by_watchpoint): ... this. Updated all users.
8463 (record_disconnect): Renamed to ...
8464 (record_full_disconnect): ... this. Updated all users.
8465 (record_detach): Renamed to ...
8466 (record_full_detach): ... this. Updated all users.
8467 (record_mourn_inferior): Renamed to ...
8468 (record_full_mourn_inferior): ... this. Updated all users.
8469 (record_kill): Renamed to ...
8470 (record_full_kill): ... this. Updated all users.
8471 (record_stopped_data_address): Renamed to ...
8472 (record_full_stopped_data_address): ... this. Updated all users.
8473 (record_registers_change): Renamed to ...
8474 (record_full_registers_change): ... this. Updated all users.
8475 (record_store_registers): Renamed to ...
8476 (record_full_store_registers): ... this. Updated all users.
8477 (record_xfer_partial): Renamed to ...
8478 (record_full_xfer_partial): ... this. Updated all users.
8479 (record_breakpoint): Renamed to ...
8480 (record_full_breakpoint): ... this. Updated all users.
8481 (record_breakpoint_p): Renamed to ...
8482 (record_full_breakpoint_p): ... this. Updated all users.
8483 (record_breakpoints): Renamed to ...
8484 (record_full_breakpoints): ... this. Updated all users.
8485 (record_sync_record_breakpoints): Renamed to ...
8486 (record_full_sync_record_breakpoints): ... this.
8488 (record_init_record_breakpoints): Renamed to ...
8489 (record_full_init_record_breakpoints): ... this.
8491 (record_insert_breakpoint): Renamed to ...
8492 (record_full_insert_breakpoint): ... this. Updated all users.
8493 (record_remove_breakpoint): Renamed to ...
8494 (record_full_remove_breakpoint): ... this. Updated all users.
8495 (record_can_execute_reverse): Renamed to ...
8496 (record_full_can_execute_reverse): ... this. Updated all users.
8497 (record_get_bookmark): Renamed to ...
8498 (record_full_get_bookmark): ... this. Updated all users.
8499 (record_goto_bookmark): Renamed to ...
8500 (record_full_goto_bookmark): ... this. Updated all users.
8501 (record_async): Renamed to ...
8502 (record_full_async): ... this. Updated all users.
8503 (record_can_async_p): Renamed to ...
8504 (record_full_can_async_p): ... this. Updated all users.
8505 (record_is_async_p): Renamed to ...
8506 (record_full_is_async_p): ... this. Updated all users.
8507 (record_execution_direction): Renamed to ...
8508 (record_full_execution_direction): ... this. Updated all users.
8509 (record_info): Renamed to ...
8510 (record_full_info): ... this. Updated all users.
8511 (record_delete): Renamed to ...
8512 (record_full_delete): ... this. Updated all users.
8513 (record_is_replaying): Renamed to ...
8514 (record_full_is_replaying): ... this. Updated all users.
8515 (record_goto_entry): Renamed to ...
8516 (record_full_goto_entry): ... this. Updated all users.
8517 (record_goto_begin): Renamed to ...
8518 (record_full_goto_begin): ... this. Updated all users.
8519 (record_goto_end): Renamed to ...
8520 (record_full_goto_end): ... this. Updated all users.
8521 (record_goto): Renamed to ...
8522 (record_full_goto): ... this. Updated all users.
8523 (init_record_ops): Renamed to ...
8524 (init_record_full_ops): ... this. Updated all users.
8525 (record_core_resume): Renamed to ...
8526 (record_full_core_resume): ... this. Updated all users.
8527 (record_core_kill): Renamed to ...
8528 (record_full_core_kill): ... this. Updated all users.
8529 (record_core_fetch_registers): Renamed to ...
8530 (record_full_core_fetch_registers): ... this. Updated all users.
8531 (record_core_prepare_to_store): Renamed to ...
8532 (record_full_core_prepare_to_store): ... this. Updated all users.
8533 (record_core_store_registers): Renamed to ...
8534 (record_full_core_store_registers): ... this. Updated all users.
8535 (record_core_xfer_partial): Renamed to ...
8536 (record_full_core_xfer_partial): ... this. Updated all users.
8537 (record_core_insert_breakpoint): Renamed to ...
8538 (record_full_core_insert_breakpoint): ... this. Updated all users.
8539 (record_core_remove_breakpoint): Renamed to ...
8540 (record_full_core_remove_breakpoint): ... this. Updated all users.
8541 (record_core_has_execution): Renamed to ...
8542 (record_full_core_has_execution): ... this. Updated all users.
8543 (init_record_core_ops): Renamed to ...
8544 (init_record_full_core_ops): ... this. Updated all users.
8545 (cmd_record_restore): Renamed to ...
8546 (cmd_record_full_restore): ... this. Updated all users.
8547 (record_save_cleanups): Renamed to ...
8548 (record_full_save_cleanups): ... this. Updated all users.
8549 (cmd_record_start): Renamed to ...
8550 (cmd_record_full_start): ... this. Updated all users.
8551 (set_record_insn_max_num): Renamed to ...
8552 (set_record_full_insn_max_num): ... this. Updated all users.
8553 (set_record_command): Renamed to ...
8554 (set_record_full_command): ... this. Updated all users.
8555 (show_record_command): Renamed to ...
8556 (show_record_full_command): ... this. Updated all users.
8557 (_initialize_record): Renamed to ...
8558 (_initialize_record_full): ... this. Updated all users.
8560 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8562 * record.h: Split into this and ...
8563 * record-full.h: ... this.
8564 * record.c: Split into this and ...
8565 * record-full.c: ... this.
8566 * target.h (target_ops): Add new fields to_info_record,
8567 to_save_record, to_delete_record, to_record_is_replaying,
8568 to_goto_record_begin, to_goto_record_end, to_goto_record.
8569 (target_info_record): New.
8570 (target_save_record): New.
8571 (target_supports_delete_record): New.
8572 (target_delete_record): New.
8573 (target_record_is_replaying): New.
8574 (target_goto_record_begin): New.
8575 (target_goto_record_end): New.
8576 (target_goto_record): New.
8577 * target.c (target_info_record): New.
8578 (target_save_record): New.
8579 (target_supports_delete_record): New.
8580 (target_delete_record): New.
8581 (target_record_is_replaying): New.
8582 (target_goto_record_begin): New.
8583 (target_goto_record_end): New.
8584 (target_goto_record): New.
8585 * record.h: Declare struct cmd_list_element.
8586 (record_cmdlist): New declaration.
8587 (set_record_cmdlist): New declaration.
8588 (show_record_cmdlist): New declaration.
8589 (info_record_cmdlist): New declaration.
8590 (cmd_record_goto): New declaration.
8591 * record.c: Remove unnecessary includes.
8593 (cmd_record_goto): Remove declaration.
8594 (record_cmdlist): Now extern. Initialize.
8595 (set_record_cmdlist): Now extern. Initialize.
8596 (show_record_cmdlist): Now extern. Initialize.
8597 (info_record_cmdlist): Now extern. Initialize.
8598 (find_record_target): New.
8599 (require_record_target): New.
8600 (cmd_record_start): Update.
8601 (cmd_record_delete): Remove target-specific code.
8602 Call target_delete_record.
8603 (cmd_record_stop): Unpush any record target.
8604 (set_record_insn_max_num): Move to record-full.c
8605 (set_record_command): Add comment.
8606 (show_record_command): Add comment.
8607 (info_record_command): Update comment.
8608 Remove target-specific code.
8609 Call the record target's to_info_record.
8610 (cmd_record_start): New.
8611 (cmd_record_goto): Now extern.
8612 Remove target-specific code.
8613 Call target_goto_begin, target_goto_end, or target_goto.
8614 (_initialize_record): Move record target ops initialization to
8616 Change "record" command help text.
8617 Move "record restore", "record set", and "record show" commands to
8619 * Makefile.in (SFILES): Add record-full.c.
8620 (HFILES_NO_SRCDIR): Add record-full.h.
8621 (COMMON_OBS): Add record-full.o.
8622 * amd64-linux-tdep.c: Include record-full.h instead of record.h.
8623 * arm-tdep.c: Include record-full.h.
8624 * i386-linux-tdep.c: Include record-full.h instead of record.h.
8625 * i386-tdep.c: Include record-full.h.
8626 * infrun.c: Include record-full.h.
8627 * linux-record.c: Include record-full.h.
8628 * moxie-tdep.c: Include record-full.h.
8629 * record-full.c: Include record-full.h.
8630 Change module comment.
8631 (set_record_full_cmdlist): New.
8632 (show_record_full_cmdlist): New.
8633 (record_full_cmdlist): New.
8634 (record_goto_insn): New declaration.
8635 (record_save): New declaration.
8636 (record_check_insn_num): Change query string.
8638 (record_delete): New.
8639 (record_is_replaying): New.
8640 (record_goto_entry): New.
8641 (record_goto_begin): New.
8642 (record_goto_end): New.
8644 (init_record_ops): Update.
8645 (init_record_core_ops): Update.
8646 (cmd_record_save): Rename to record_save. Remove target and arg checks.
8647 (cmd_record_start): New.
8648 (set_record_insn_max_num): Moved from record.c
8649 (set_record_full_command): New.
8650 (show_record_full_command): New.
8651 (_initialize_record_full): New.
8653 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8655 * target.h (add_deprecated_target_alias): New.
8656 * target.c (add_deprecated_target_alias): New.
8658 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8660 * common/linux-btrace.c: Include sys/ptrace, sys/types, sys/wait.h,
8662 (linux_supports_btrace): Add kernel and
8664 (kernel_supports_btrace): New function.
8665 (cpu_supports_btrace): New function.
8666 (intel_supports_btrace): New function.
8668 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8670 * target.h (enum target_object): Add TARGET_OBJECT_BTRACE.
8671 * remote.c: Include btrace.h.
8672 (struct btrace_target_info): New struct.
8673 (remote_supports_btrace): New function.
8674 (send_Qbtrace): New function.
8675 (remote_enable_btrace): New function.
8676 (remote_disable_btrace): New function.
8677 (remote_teardown_btrace): New function.
8678 (remote_read_btrace): New function.
8679 (init_remote_ops): Add btrace ops.
8680 (enum <unnamed>): Add btrace packets.
8681 (struct protocol_feature remote_protocol_features[]): Add btrace packets.
8682 (_initialize_remote): Add packet configuration for branch tracing.
8684 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8686 * features/btrace.dtd: New file.
8687 * Makefile.in (XMLFILES): Add btrace.dtd.
8688 * btrace.h (parse_xml_btrace): New declaration.
8689 * btrace.c: Include xml-support.h.
8690 (parse_xml_btrace): New function.
8691 (parse_xml_btrace_block): New function.
8692 (block_attributes): New struct.
8693 (btrace_attributes): New struct.
8694 (btrace_children): New struct.
8695 (btrace_elements): New struct.
8697 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8699 * amd64-linux-nat.c: Include btrace.h and linux-btrace.h.
8700 (amd64_linux_enable_btrace): New.
8701 (amd64_linux_disable_btrace): New.
8702 (amd64_linux_teardown_btrace): New.
8703 (_initialize_amd64_linux_nat): Initialize btrace ops.
8704 * i386-linux.nat.c: Include btrace.h and linux-btrace.h.
8705 (i386_linux_enable_btrace): New.
8706 (i386_linux_disable_btrace): New.
8707 (i386_linux_teardown_btrace): New.
8708 (_initialize_i386_linux_nat): Initialize btrace ops.
8709 * config/i386/linux.mh: Add linux-btrace.o.
8710 * config/i386/linux64.mh: Add linux-btrace.o.
8712 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8714 * common/linux_btrace.h: New file.
8715 * common/linux_btrace.c: New file.
8716 * Makefile.in (SFILES): Add btrace.c.
8717 (HFILES_NO_SRCDIR): Add common/linux-btrace.h.
8718 (COMMON_OBS): Add btrace.o.
8719 (linux-btrace.o): New rule.
8721 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8723 * target.h: Include btrace.h.
8724 (struct target_ops) <to_supports_btrace, to_enable_btrace,
8725 to_disable_btrace, to_teardown_btrace, to_read_btrace>: New.
8726 * target.c (target_supports_btrace): New function.
8727 (target_enable_btrace): New function.
8728 (target_disable_btrace): New function.
8729 (target_teardown_btrace): New function.
8730 (target_read_btrace): New function.
8731 * btrace.h: New file.
8732 * btrace.c: New file.
8733 * Makefile.in: Add btrace.c.
8734 * gdbthread.h: Include btrace.h.
8735 (struct thread_info): Add btrace field.
8736 * thread.c: Include btrace.h.
8737 (clear_thread_inferior_resources): Call target_teardown_btrace.
8738 * common/btrace-common.h: New file.
8740 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8742 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Call also kill
8743 for CHILD, ignore PTRACE_KILL errors, move the inner block variable
8744 kill_status to outer block.
8746 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8748 Fix entry-values if the callee called a noreturn function.
8749 * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
8750 get_frame_address_in_block. Add new comment.
8752 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8754 Fix entry-values in C++ across CUs.
8755 * dwarf2loc.c (call_site_to_target_addr) <FIELD_LOC_KIND_PHYSNAME>: Use
8756 lookup_minimal_symbol. Add a comment.
8758 (read_call_site_scope) <is_ref_attr> <die_is_declaration>: Prefer
8761 2013-03-08 Yao Qi <yao@codesourcery.com>
8763 * tracepoint.c (_initialize_tracepoint): Indent the code.
8765 2013-03-08 Pedro Alves <palves@redhat.com>
8767 * findcmd.c (put_bits): Change type of parameter to 'gdb_byte *'.
8768 (parse_find_args, find_command): Change type of pattern buffer
8769 locals to 'gdb_byte *'.
8771 2013-03-08 Stan Shebs <stan@codesourcery.com>
8772 Hafiz Abid Qadeer <abidh@codesourcery.com>
8774 * NEWS: Mention set and show trace-buffer-size commands.
8776 * target.h (struct target_ops): New method
8777 to_set_trace_buffer_size.
8778 (target_set_trace_buffer_size): New macro.
8779 * target.c (update_current_target): Set up new method.
8780 * tracepoint.c (trace_buffer_size): New global.
8781 (start_tracing): Send it to the target.
8782 (set_trace_buffer_size): New function.
8783 (_initialize_tracepoint): Add new setshow for trace-buffer-size.
8784 * remote.c (remote_set_trace_buffer_size): New function.
8785 (_initialize_remote): Use it.
8786 (QTBuffer:size) New remote command.
8787 (PACKET_QTBuffer_size): New enum.
8788 (remote_protocol_features): Add an entry for
8789 PACKET_QTBuffer_size.
8791 2013-03-08 Tom Tromey <tromey@redhat.com>
8793 * remote-m32r-sdi.c (m32r_load): Call skip_spaces on correct
8796 2013-03-07 Pedro Alves <palves@redhat.com>
8798 * target.c (target_read_stralloc, target_fileio_read_alloc):
8799 *Cast pointer to 'gdb_byte *' in target call.
8801 2013-03-07 Pedro Alves <palves@redhat.com>
8803 * corefile.c (read_memory_string): Cast pointer to gdb_byte* in
8806 2013-03-07 Keith Seitz <keiths@redhat.com>
8808 * breakpoint.c (catch_syscall_split_args): Use skip_spaces.
8809 (trace_pass_command): Likewise.
8810 * cli/cli-cmds.c: Include cli/cli-utils.h.
8811 (source_command): Use skip-spaces.
8812 (disassemble_command): Likewise.
8813 * findcmd.c: Include cli/cli-utils.h.
8814 (parse_find_args): Use skip_spaces.
8815 * go32-nat.c: Include cli/cli-utils.h.
8816 (go32_sldt): Use skip_spaces.
8817 (go32_sgdt): Likewise.
8818 (go32_sidt): Likewise.
8819 (go32_pde): Likewise.
8820 (go32_pte): Likewise.
8821 (go32_pte_for_address): Likewise.
8822 * infcmd.c: Include cli/cli-utils.h.
8823 (registers_info): Use skip_spaces.
8824 * linux-tdep.c (read_mapping): Use skip_spaces_const.
8825 (linux_info_proc): Likewise.
8826 * linux-thread-db.c: Include cli/cli-utils.h.
8827 (info_auto_load_libthread_db): Use skip_spaces_const.
8828 * m32r-rom.c: Include cli/cli-utils.h.
8829 (m32r_upload_command): Use skip_spaces.
8830 * maint.c: Include cli/cli-utils.h.
8831 (maintenance_translate_address): Use skip_spaces.
8832 * mi/mi-parse.c: Include cli/cli-utils.h.
8833 (mi_parse_argv): Use skip_spaces.
8834 (mi_parse): Likewise.
8835 * minsyms.c: Include cli/cli-utils.h.
8836 (msymbol_hash_iw): Use skip_spaces_const.
8837 * objc-lang.c: Include cli/cli-utils.h.
8838 (parse_selector): Use skip_spaces.
8839 (parse_method): Likewise.
8840 * python/python.c: Include cli/cli-utils.h.
8841 (python_interactive_command)[HAVE_PYTHON]: Use skip_spaces.
8842 (python_command)[HAVE_PYTHON]: Likewise.
8843 (python_interactive_command)[!HAVE_PYTHON]: Likewise.
8844 * remote-m32r-sdi.c: Include cli/cli-utils.h.
8845 (m32r_load): Use skip_spaces.
8846 * serial.c: Include cli/cli-utils.h.
8847 (serial_open): Use skip_spaces_const.
8848 * stack.c: Include cli/cli-utils.h.
8849 (parse_frame_specification_1): Use skip_spaces_const.
8850 * symfile.c: Include cli/cli-utils.h.
8851 (set_ext_lang_command): Use skip_spaces.
8852 * symtab.c: Include cli/cli-utils.h.
8853 (rbreak_command): Use skip_spaces.
8854 * thread.c (thread_name_command): Use skip_spaces.
8855 * tracepoint.c (validate_actionline): Use skip_spaces.
8856 (encode_actions_1): Likewise.
8857 (trace_find_range_command): Likewise.
8858 (trace_find_outside_command): Likewise.
8859 (trace_dump_actions): Likewise.
8861 2013-03-07 Pedro Alves <palves@redhat.com>
8863 * c-lang.c (parse_one_string): Cast argument to gdb_byte *.
8864 * expprint.c (print_subexp_standard): Likewise.
8865 * utils.c (host_char_to_target): Likewise.
8866 * valprint.c (generic_emit_char, generic_printstr): Likewise.
8867 * varobj.c (value_get_print_value): Change type of local to char*.
8868 Cast it gdb_byte * in call to language printer.
8870 2013-03-07 Pedro Alves <palves@redhat.com>
8872 * charset.c (struct wchar_iterator) <input>: Change type to 'const
8874 (make_wchar_iterator): Remove cast to char*.
8875 (wchar_iterate): Change type of local.
8877 2013-03-07 Pedro Alves <palves@redhat.com>
8879 * regcache.c (regcache_xmalloc_1): Call XCALLOC with signed char
8880 for 'regcache->register_status'.
8882 2013-03-07 Pedro Alves <palves@redhat.com>
8884 * breakpoint.c (breakpoint_xfer_memory): Change type of local to
8887 2013-03-07 Pedro Alves <palves@redhat.com>
8889 * stap-probe.c (handle_stap_probe): Add cast to char*.
8891 2013-03-07 Pedro Alves <palves@redhat.com>
8893 * linux-record.c (record_linux_system_call) <gdb_sys_msgrcv,
8894 RECORD_MSGRCV>: Pass a signed variable to
8895 regcache_raw_read_signed, instead of an unsigned one.
8897 2013-03-07 Pedro Alves <palves@redhat.com>
8899 * remote-notif.c (notif_debug): Change type to int.
8900 * remote-notif.h (notif_debug): Likewise.
8902 2013-03-07 Pedro Alves <palves@redhat.com>
8904 * ser-tcp.c (tcp_retry_limit): Change type to unsigned int.
8906 2013-03-07 Pedro Alves <palves@redhat.com>
8908 * remote.c (hex2bin, bin2hex): Move extern declarations to ...
8909 * remote.h (hex2bin, bin2hex): ... here.
8910 * tracepoint.c (hex2bin, bin2hex): Remove extern declarations.
8912 2013-03-07 Eli Zaretskii <eliz@gnu.org>
8914 * utils.c (initialize_utils): Improve doc strings of "set/show
8915 width", "set/show height", and "set/show pagination".
8917 2013-03-06 Keith Seitz <keiths@redhat.com>
8919 * ax-gdb.c (gen_printf): Make FORMAT const.
8920 * ax-gdb.h (gen_printf): Likewise.
8921 * ax-general.c (ax_string): Make STR const.
8922 * ax.h (ax_string): Likewise.
8924 2013-03-06 Doug Evans <dje@google.com>
8926 * elfread.c (elf_symfile_read): Move debugging printf to more
8929 2013-03-06 Pedro Alves <palves@redhat.com>
8931 * python/py-utils.c (target_string_to_unicode): Delete function.
8932 * python/python-internal.h (target_string_to_unicode): Delete
8935 2013-03-06 Pierre Muller <muller@sourceware.org>
8937 * linespec.c (get_current_search_block): ARI fix, use (void)
8938 for empty parameter list.
8940 2013-03-05 Doug Evans <dje@google.com>
8942 * ada-lang.c (ada_lookup_symbol_list_worker): New function, contents
8943 of old ada_lookup_symbol_list. In !full_search case, don't
8945 (ada_lookup_symbol_list): Delete arg full_search, all callers
8946 updated. Call ada_lookup_symbol_list_worker.
8947 (ada_iterate_over_symbols): Call ada_lookup_symbol_list_worker.
8948 * ada-lang.h (ada_lookup_symbol_list): Update.
8949 * language.h (language_defn): Update comment for
8950 la_iterate_over_symbols.
8951 * linespec.c (iterate_over_file_blocks): New function.
8952 (iterate_over_all_matching_symtabs): Call it.
8953 (lookup_prefix_sym): Ditto.
8954 (get_current_search_block): New function.
8955 (get_search_block): Delete.
8956 (find_label_symbols): Call get_current_search_block.
8957 (add_matching_symbols_to_info): Call iterate_over_file_blocks.
8958 * symtab.c (iterate_over_symbols): Don't search superblocks.
8960 2013-03-05 Yao Qi <yao@codesourcery.com>
8962 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): Change
8963 parameter VAR's type from "unsigned int" to "int".
8964 * command.h (var_zuinteger_unlimited): Update its comments.
8965 (add_setshow_zuinteger_unlimited_cmd): Update the declaration.
8967 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
8969 * NEWS: Mention new target x86_64-*-cygwin*.
8971 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
8973 * configure.host: Add x86_64-*-cygwin* as host.
8974 * configure.tgt: Add x86_64-*-cygwin* as target.
8975 * config/i386/cygwin64.mh: New file.
8977 2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
8979 * linespec.c (decode_line_2): Fix duplicate request off by two message.
8981 2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
8983 * linespec.c (struct linespec_canonical_name): New.
8984 (struct linespec_state): Change canonical_names type to it.
8985 (add_sal_to_sals): Change variable canonical_name to canonical. Change
8986 xrealloc element size. Initialize the different CANONICAL fields.
8987 (canonical_to_fullform): New.
8988 (filter_results): Use it. Add variables canonical, fullform and
8990 (struct decode_line_2_item, decode_line_2_compare_items): New.
8991 (decode_line_2): Remove variables iter and item_names, add variables
8992 items and items_count. Modify the code for these new variables.
8994 2013-03-04 Corinna Vinschen <vinschen@redhat.com>
8996 * coff-pe-read.c (read_pe_exported_syms): Don't return without
8999 2013-03-04 Luis Machado <lgustavo@codesourcery.com>
9001 * tracepoint.c (build_traceframe_info): Add code for byte order.
9003 2013-03-02 Kevin Buettner <kevinb@redhat.com>
9005 * v850-tdep.c: (v850e2_register_name): Revise system register
9006 names to match current V850E2M architecture specifications.
9007 Update register number enum comments too.
9009 2013-03-01 Jiong Wang <jiwang@tilera.com>
9010 Pedro Alves <palves@redhat.com>
9012 * tilegx-tdep.c (tilegx_analyze_prologue): Limit bundle reading
9014 (tilegx_skip_prologue): Limit prologue analysis to section end.
9016 2013-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9018 * dwarf2loc.c (call_site_find_chain_1): New variable save_callee_pc,
9021 2013-03-01 Pedro Alves <palves@redhat.com>
9023 Use gdb_byte for bytes from the program being debugged.
9025 * arm-tdep.c (arm_store_return_value, arm_get_longjmp_target):
9026 Change type of local 'buf' to gdb_byte.
9027 * avr-tdep.c (avr_frame_prev_register, avr_push_dummy_call): Likewise.
9028 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
9029 * cris-tdep.c (cris_sigcontext_addr)
9030 (cris_sigtramp_frame_unwind_cache): Likewise.
9031 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp)
9032 (frv_linux_sigcontext_reg_addr, frv_linux_sigtramp_frame_cache):
9034 * frv-tdep.c (frv_pseudo_register_write, frv_analyze_prologue): Likewise.
9035 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer)
9036 (hppa32_hpux_search_dummy_call_sequence)
9037 (hppa_hpux_supply_save_state): Likewise.
9038 * hppa-linux-tdep.c (insns_match_pattern)
9039 (hppa_linux_find_global_pointer): Likewise.
9040 * hppa-tdep.c (hppa_in_function_epilogue_p)
9041 (skip_prologue_hard_way, hppa_frame_cache): Likewise.
9042 * i386-nto-tdep.c (i386nto_sigcontext_addr): Likewise.
9043 * i386fbsd-tdep.c (i386fbsd_supply_uthread)
9044 (i386fbsd_collect_uthread): Likewise.
9045 * ia64-hpux-tdep.c (ia64_hpux_push_dummy_code): Likewise.
9046 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Likewise.
9047 * ia64-tdep.c (examine_prologue, ia64_frame_cache)
9048 (ia64_frame_prev_register, ia64_sigtramp_frame_cache)
9049 (ia64_sigtramp_frame_prev_register, ia64_access_reg)
9050 (ia64_access_rse_reg, ia64_libunwind_frame_this_id)
9051 (ia64_libunwind_frame_prev_register)
9052 (ia64_libunwind_sigtramp_frame_this_id)
9053 (ia64_find_global_pointer_from_dynamic_section)
9054 (find_extant_func_descr, find_func_descr, ia64_dummy_id)
9055 (ia64_unwind_pc): Likewise.
9056 * iq2000-tdep.c (iq2000_store_return_value): Likewise.
9057 * m68hc11-tdep.c (m68hc11_push_dummy_call)
9058 (m68hc11_extract_return_value): Likewise.
9059 * m68klinux-nat.c (fetch_register, store_register): Likewise.
9060 * mep-tdep.c (mep_pseudo_cr32_read, mep_pseudo_cr32_write)
9061 (mep_get_insn, mep_push_dummy_call): Likewise.
9062 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
9063 (mips_linux_in_dynsym_stub): Likewise.
9064 * mn10300-tdep.c (mep_pseudo_cr32_write): Likewise.
9065 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
9066 * regcache.c (dump_endian_bytes): Change type of parameter 'buf'
9068 * remote-mips.c (mips_set_register): Likewise.
9069 * remote-sim.c (gdbsim_fetch_register): Likewise.
9070 * score-tdep.c (score7_fetch_inst): Change type of parameter
9071 'memblock' and local 'buf' to gdb_byte.
9072 (score7_malloc_and_get_memblock): Change return type to gdb_byte.
9073 Change type of local 'buf' to gdb_byte. Adjust.
9074 (score7_adjust_memblock_ptr): Change type of parameter 'memblock'
9076 (score7_analyze_prologue): Change type of 'memblock' and
9077 'memblock_ptr' locals to gdb_byte*.
9078 * sh64-tdep.c (sh64_extract_return_value)
9079 (sh64_store_return_value): Change type of local 'buf' to gdb_byte.
9080 * solib-darwin.c (darwin_current_sos, darwin_read_exec_load_addr):
9081 * solib-pa64.c (pa64_solib_create_inferior_hook)
9082 (pa64_open_symbol_file_object): Remove local 'buf'.
9083 * solib-som.c (som_solib_create_inferior_hook, link_map_start)
9084 (som_open_symbol_file_object): Likewise.
9085 * solib-spu.c (spu_current_sos): Likewise.
9086 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
9087 * spu-multiarch.c (parse_spufs_run, spu_fetch_registers)
9088 (spu_store_registers): Likewise.
9089 * target.c (debug_print_register): Likewise.
9090 * tic6x-tdep.c (tic6x_get_longjmp_target): Likewise.
9091 * xstormy16-tdep.c (xstormy16_store_return_value)
9092 (xstormy16_push_dummy_call, xstormy16_resolve_jmp_table_entry)
9093 (xstormy16_find_jmp_table_entry): Likewise.
9095 2013-03-01 Jiong Wang <jiwang@tilera.com>
9097 * tilegx-tdep.c (tilegx_get_longjmp_target): New function.
9098 (tilegx_gdbarch_init): Install it.
9100 2013-02-28 Tom Tromey <tromey@redhat.com>
9102 * python/py-arch.c (archpy_disassemble): Use PyInt_Check and
9105 2013-02-28 Doug Evans <dje@google.com>
9107 * python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
9108 * python/python.c (gdbpy_find_pc_line): Ditto.
9110 2013-02-28 Tom Tromey <tromey@redhat.com>
9112 * contrib/excheck.py: New file.
9113 * contrib/exsummary.py: New file.
9114 * contrib/gcc-with-excheck: New file.
9116 2013-02-28 Tom Tromey <tromey@redhat.com>
9118 * python/python.c (gdbpy_print_stack): Call begin_line and
9119 fprintf_filtered inside TRY_CATCH.
9121 2013-02-28 Tom Tromey <tromey@redhat.com>
9123 * python/python.c (gdbpy_find_pc_line): Call find_pc_line
9126 2013-02-28 Tom Tromey <tromey@redhat.com>
9128 * py-finishbreakpoint.c (bpfinishpy_init): Reorganize to call
9129 frame_object_to_frame_info inside TRY_CATCH.
9131 2013-02-28 Tom Tromey <tromey@redhat.com>
9133 * py-block.c (gdbpy_block_for_pc): Call block_for_pc inside
9136 2013-02-28 Tom Tromey <tromey@redhat.com>
9138 * objfiles.h (ALL_PSPACE_OBJFILES): Remove trailing backlash.
9140 2013-02-27 Corinna Vinschen <vinschen@redhat.com>
9142 * windows-nat.c: Throughout, fix format strings and casts of
9143 printf-like functions to avoid type related warnings on all
9145 (handle_output_debug_string): Fetch context information address
9146 from debug string using string_to_core_addr.
9148 2013-02-27 Jiong Wang <jiwang@tilera.com>
9150 * regformats/reg-tilegx.dat (name): Change abi name to "tilegx".
9151 * regformats/reg-tilegx32.dat: New.
9153 2013-02-27 Jiong Wang <jiwang@tilera.com>
9155 * configure.tgt (tilegx-*-linux*): Enable gdbserver.
9157 2013-02-27 Jiong Wang <jiwang@tilera.com>
9159 * configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
9161 2013-02-27 Yao Qi <yao@codesourcery.com>
9162 Pedro Alves <palves@redhat.com>
9164 * tracepoint.c (tfile_trace_find): For tfind
9165 pc/tp/range/outside, look for the next trace frame instead of
9166 always starting from frame 0.
9168 2013-02-26 Anthony Green <green@moxielogic.com>
9170 * configure.tgt: Add support for moxie-*-rtems* target.
9172 2013-02-25 Pedro Alves <palves@redhat.com>
9174 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
9177 2013-02-24 Maciej W. Rozycki <macro@codesourcery.com>
9179 * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
9180 if $fp is used as the virtual frame pointer.
9182 2013-02-23 Alan Modra <amodra@gmail.com>
9184 * elfread.c (elf_symtab_read): Do not use udata.p here to find
9186 * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
9187 * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
9188 * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
9189 * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
9191 2013-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
9194 * elfread.c (build_id_bfd_get): Make the return type const.
9195 (build_id_verify): Make the check parameter const.
9196 (build_id_to_debug_filename): Make the build_id parameter and variable
9198 (find_separate_debug_file_by_buildid): Make the variable build_id const.
9200 2013-02-21 Alan Modra <amodra@gmail.com>
9202 * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
9204 2013-02-20 Siva Chandra Reddy <sivachandra@google.com>
9206 Add a new method 'disassemble' to gdb.Architecture class.
9207 * python/py-arch.c (archpy_disassmble): Implementation of the
9208 new method gdb.Architecture.disassemble.
9209 (arch_object_methods): Add entry for the new method.
9211 2013-02-20 Jiong Wang <jiwang@tilera.com>
9213 * MAINTAINERS (Write After Approval): Add myself to the list.
9215 2013-02-19 Pedro Alves <palves@redhat.com>
9217 Garbage collect 'struct monitor_ops'::load_routine.
9219 * monitor.h (struct monitor_ops) <load_routine>: Remove field.
9220 * monitor.c (monitor_load): No longer call
9221 current_monitor->load_routine.
9222 * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
9223 * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
9224 * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
9226 2013-02-19 Pedro Alves <palves@redhat.com>
9230 Harmonize with generic_load.
9232 * monitor.c: Include "readline/readline.h".
9233 (monitor_load): Rename parameter 'file' to 'args'. Use build_argv
9234 instead of sscanf. Use CORE_ADDR/strtoulst instead of unsigned
9235 long/strtol for the 'load_offset' local. Error out if no argument
9236 is given or if too many arguments are given. Tilde expand the
9237 passed in file name.
9239 2013-02-19 Kai Tietz <ktietz@redhat.com>
9242 * symfile.c (load_section_data): Change type of load_offset
9244 (generic_load): User strtoulst instead of strtoul for conversion
9247 2013-02-19 Jiong Wang <jiwang@tilera.com>
9249 * tilegx-tdep.c (tilegx_analyze_prologue): add check for
9250 for return address, "lr" register, saved on stack.
9251 * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
9252 after we invoke tilegx_analyze_prologue.
9254 2013-02-19 Jiong Wang <jiwang@tilera.com>
9256 * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
9258 2013-02-19 Jiong Wang <jiwang@tilera.com>
9260 * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
9262 2013-02-19 Jiong Wang <jiwang@tilera.com>
9264 * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
9265 (tilegx_write_pc): New function.
9266 (tilegx_cannot_reference_register): Return zero if REGNO
9267 is TILEGX_FAULTNUM_REGNUM.
9268 (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
9269 (tilegx_register_name): Add handling of "faultnum" register.
9270 * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
9271 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
9272 handling of TILEGX_FAULTNUM_REGNUM.
9273 * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
9275 2013-02-19 Jiong Wang <jiwang@tilera.com>
9277 * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
9278 should be aligned to 64bit.
9280 2013-02-19 Kai Tietz <ktietz@redhat.com>
9282 * windows-nat.c (windows_xfer_memory): Fix debug-output
9285 2013-02-19 Lei Liu <lei.liu2@windriver.com>
9287 * mips-linux-nat.c (mips64_linux_regsets_store_registers):
9288 Don't check DSP register number if HAVE_DSP is not set.
9290 2013-02-19 Alan Modra <amodra@gmail.com>
9292 * elfread.c (struct build_id): Delete. Use struct elf_build_id
9293 throughout file instead.
9294 (build_id_bfd_get): Update to use new elf_tdata build_id field.
9295 Don't xmalloc return value.
9296 (build_id_verify): Similarly. Don't xfree.
9297 (build_id_to_debug_filename): Update.
9298 (find_separate_debug_file_by_buildid): Update, don't xfree.
9300 2013-02-18 Tom Tromey <tromey@redhat.com>
9303 * dwarf2read.c (read_subrange_type): Use result of
9306 2013-02-16 Yuanhui Zhang <asmwarrior@gmail.com>
9308 * frame.c: Remove one extra white space after #include
9311 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9313 * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
9315 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9317 * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
9318 and dir commands into an if block.
9320 2013-02-15 Sanimir Agovic <sanimir.agovic@intel.com>
9322 * python/py-breakpoint (struct pybp_code): Use int instead of
9325 2013-02-15 Pedro Alves <pedro@codesourcery.com>
9326 Hafiz Abid Qadeer <abidh@codesourcery.com>
9328 * NEWS: Mention new field "trace-file".
9329 * tracepoint.c (trace_status_mi): Output "trace-file" field.
9330 (tfile_open): Record the trace file's filename in the trace
9332 (tfile_files_info): Mention the name of the trace file.
9333 Check the "filename" field explicitely.
9334 (trace_status_command): Explicitely check "filename" field.
9335 (trace_find_command): Ditto.
9336 (trace_find_pc_command): Ditto.
9337 (trace_find_tracepoint_command): Ditto.
9338 (trace_find_line_command): Ditto.
9339 (trace_find_range_command): Ditto.
9340 (trace_find_outside_command): Ditto.
9341 * tracepoint.h (struct trace_status) <from_file>: Rename it
9342 to "filename" and make it hold the trace file's filename
9343 instead of a boolean.
9344 * remote.c (remote_get_trace_status): Initialize "filename"
9345 field with NULL instead of 0.
9347 2013-02-15 Yao Qi <yao@codesourcery.com>
9349 * remote.c: Fix a typo.
9351 2013-02-14 Pierre Muller <muller@sourceware.org>
9353 * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
9355 2013-02-14 Pedro Alves <palves@redhat.com>
9357 * utils.c (savestring): Don't #undef it. Move function to
9358 common/common-utils.c.
9359 * common/common-utils.c: Include gdb_string.h.
9360 (savestring): Move here from utils.c.
9361 * common/common-utils.h (savestring): Declare.
9363 2013-02-14 Pedro Alves <palves@redhat.com>
9365 * utils.c (savestring): Rename parameter 'size' to 'len'.
9367 2013-02-14 Pedro Alves <palves@redhat.com>
9368 Yufeng Zhang <yufeng.zhang@arm.com>
9370 * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
9371 (aarch64_inferior_data, struct aarch64_inferior_data):
9373 (struct aarch64_process_info): New.
9374 (aarch64_process_list): New global.
9375 (aarch64_find_process_pid, aarch64_add_process)
9376 (aarch64_process_info_get): New functions.
9377 (aarch64_inferior_data_get): Delete.
9378 (aarch64_process_info_get): New function.
9379 (aarch64_forget_process): New function.
9380 (aarch64_get_debug_reg_state): New parameter 'pid'. Reimplement.
9381 (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
9382 aarch64_get_debug_reg_state.
9383 (aarch64_notify_debug_reg_change): Use iterate_over_lwps
9384 instead of linux_nat_iterate_watchpoint_lwps.
9385 (aarch64_linux_new_fork): New function.
9386 (aarch64_linux_child_post_startup_inferior): Use
9387 aarch64_forget_process instead of aarch64_init_debug_reg_state.
9388 (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
9389 (aarch64_linux_remove_hw_breakpoint)
9390 (aarch64_handle_aligned_watchpoint)
9391 (aarch64_handle_unaligned_watchpoint)
9392 (aarch64_linux_insert_watchpoint)
9393 (aarch64_linux_remove_watchpoint)
9394 (aarch64_linux_stopped_data_address): Adjust to pass the current
9395 process id to aarch64_debug_reg_state.
9396 (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
9397 linux_nat_new_fork hook, and aarch64_forget_process as
9398 linux_nat_forget_process hook; remove the call to
9399 register_inferior_data_with_cleanup.
9401 2013-02-14 Pedro Alves <palves@redhat.com>
9403 * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
9404 EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
9407 2013-02-14 Pedro Alves <pedro@codesourcery.com>
9408 Hafiz Abid Qadeer <abidh@codesourcery.com>
9410 * tracepoint.h (validate_trace_state_variable_name): Declare.
9411 * tracepoint.c (validate_trace_state_variable_name): New.
9412 (trace_variable_command): Parse the trace state variable's name
9413 without using parse_expression. Do several validations.
9414 * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
9415 trace state variable's name with parse_expression. Validate it.
9417 2013-02-14 Yao Qi <yao@codesourcery.com>
9419 * infcmd.c (breakpoint_proceeded): Remove it.
9421 2013-02-14 Yao Qi <yao@codesourcery.com>
9423 * tracepoint.c (end_actions_pseudocommand): Make it static.
9424 (while_stepping_pseudocommand): Likewise.
9425 * tracepoint.h (end_actions_pseudocommand): Remove the
9427 (while_stepping_pseudocommand): Likewise.
9429 2013-02-14 Yao Qi <yao@codesourcery.com>
9431 * cli/cli-decode.c (help_cmd): Remove the declaration of
9433 (help_all): Likewise.
9435 2013-02-13 Pedro Alves <palves@redhat.com>
9437 * amd64-linux-nat.c (update_debug_registers_callback):
9439 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
9441 (amd64_linux_prepare_to_resume): Pass the lwp's pid to
9442 i386_debug_reg_state.
9443 (amd64_linux_new_fork): New function.
9444 (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
9445 linux_nat_new_fork hook, and i386_forget_process as
9446 linux_nat_forget_process hook.
9447 * i386-linux-nat.c (update_debug_registers_callback):
9449 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
9451 (i386_linux_prepare_to_resume): Pass the lwp's pid to
9452 i386_debug_reg_state.
9453 (i386_linux_new_fork): New function.
9454 (_initialize_i386_linux_nat): Install i386_linux_new_fork as
9455 linux_nat_new_fork hook, and i386_forget_process as
9456 linux_nat_forget_process hook.
9457 * i386-nat.c (i386_init_dregs): Delete.
9458 (i386_inferior_data, struct i386_inferior_data):
9460 (struct i386_process_info): New.
9461 (i386_process_list): New global.
9462 (i386_find_process_pid, i386_add_process, i386_process_info_get):
9464 (i386_inferior_data_get): Delete.
9465 (i386_process_info_get): New function.
9466 (i386_debug_reg_state): New parameter 'pid'. Reimplement.
9467 (i386_forget_process): New function.
9468 (i386_cleanup_dregs): Rewrite.
9469 (i386_update_inferior_debug_regs, i386_insert_watchpoint)
9470 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
9471 (i386_stopped_data_address, i386_insert_hw_breakpoint)
9472 (i386_remove_hw_breakpoint): Adjust to pass the current process id
9473 to i386_debug_reg_state.
9474 (i386_use_watchpoints): Don't register inferior data.
9475 * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
9477 (i386_forget_process): Declare.
9478 * linux-fork.c (delete_fork): Call linux_nat_forget_process.
9479 * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
9481 (linux_child_follow_fork): Don't call linux_nat_new_thread here.
9482 (add_initial_lwp): New, factored out from ...
9483 (add_lwp): ... this. Don't check the number of lwps before
9484 calling linux_nat_new_thread.
9485 (linux_nat_iterate_watchpoint_lwps): Delete.
9486 (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
9487 (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
9489 (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
9491 (linux_nat_kill, linux_nat_mourn_inferior): Call
9492 linux_nat_forget_process.
9493 (linux_nat_set_new_fork, linux_nat_set_forget_process)
9494 (linux_nat_forget_process): New functions.
9495 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
9497 (linux_nat_iterate_watchpoint_lwps): Delete declaration.
9498 (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
9500 (linux_nat_set_new_fork, linux_nat_set_forget_process)
9501 (linux_nat_forget_process): New declarations.
9503 * amd64fbsd-nat.c (super_mourn_inferior): New global.
9504 (amd64fbsd_mourn_inferior): New function.
9505 (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
9506 * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
9508 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
9510 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
9513 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
9515 * aarch64-linux-nat.c (debug_reg_change_callback)
9516 (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
9519 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
9521 * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
9524 2013-02-13 Pedro Alves <palves@redhat.com>
9525 Hafiz Abid Qadeer <abidh@codesourcery.com>
9527 * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
9529 2013-02-12 Tom Tromey <tromey@redhat.com>
9532 * c-exp.y (lex_one_token): Initialize other fields of yylval on
9534 (classify_inner_name): Remove 'first_name' argument, add
9535 'context'. Remove unused variable.
9536 (yylex): Explicitly maintain the context type. Exit loop earlier
9537 if NAME result is seen.
9539 2013-02-12 Pedro Alves <palves@redhat.com>
9541 * amd64-darwin-tdep.c: Add (C) after Copyright.
9542 * cli/cli-cmds.h: Ditto.
9543 * cli/cli-decode.c: Ditto.
9544 * cli/cli-decode.h: Ditto.
9545 * cli/cli-dump.c: Ditto.
9546 * cli/cli-dump.h: Ditto.
9547 * cli/cli-interp.c: Ditto.
9548 * cli/cli-logging.c: Ditto.
9549 * cli/cli-script.c: Ditto.
9550 * cli/cli-script.h: Ditto.
9551 * cli/cli-setshow.c: Ditto.
9552 * cli/cli-setshow.h: Ditto.
9553 * cli/cli-utils.c: Ditto.
9554 * cli/cli-utils.h: Ditto.
9555 * config/alpha/nm-osf3.h: Ditto.
9556 * config/djgpp/djconfig.sh: Ditto.
9557 * config/i386/nm-fbsd.h: Ditto.
9558 * config/i386/nm-i386gnu.h: Ditto.
9559 * config/nm-linux.h: Ditto.
9560 * config/nm-nto.h: Ditto.
9561 * config/rs6000/nm-rs6000.h: Ditto.
9562 * config/sparc/nm-sol2.h: Ditto.
9563 * darwin-nat-info.c: Ditto.
9566 * gdb-demangle.h: Ditto.
9567 * i386-darwin-nat.c: Ditto.
9568 * i386-darwin-tdep.c: Ditto.
9569 * linux-fork.h: Ditto.
9570 * m32c-tdep.c: Ditto.
9571 * microblaze-linux-tdep.c: Ditto.
9572 * microblaze-rom.c: Ditto.
9573 * microblaze-tdep.c: Ditto.
9574 * microblaze-tdep.h: Ditto.
9575 * mips-linux-tdep.h: Ditto.
9576 * ppc-ravenscar-thread.c: Ditto.
9577 * ppc-ravenscar-thread.h: Ditto.
9578 * prologue-value.c: Ditto.
9579 * prologue-value.h: Ditto.
9580 * ravenscar-thread.c: Ditto.
9581 * ravenscar-thread.h: Ditto.
9582 * sparc-ravenscar-thread.c: Ditto.
9583 * sparc-ravenscar-thread.h: Ditto.
9584 * tilegx-linux-tdep.c: Ditto.
9585 * unwind_stop_reasons.def: Ditto.
9586 * windows-nat.h: Ditto.
9587 * xtensa-linux-tdep.c: Ditto.
9588 * xtensa-xtregs.c: Ditto.
9589 * regformats/regdat.sh: Ditto.
9590 * regformats/regdef.h: Ditto.
9592 2013-02-12 Pedro Alves <palves@redhat.com>
9594 * break-catch-sig.c: Update copyright years.
9596 2013-02-11 Siva Chandra Reddy <sivachandra@google.com>
9598 Add support for a destructor for ui_out data and use it to
9599 provide a ui_out destructor.
9600 * ui-out.h: Declare the new ui_out destructor.
9601 (ui_out_impl): Add a field for data destructor in ui_out_impl.
9602 * ui-out.c (default_data_destroy): Add a default data destructor
9604 (default_ui_out_impl): Set the new data_destroy field to
9605 default_data_destroy
9606 (uo_data_destroy): Local function which invokes the data
9607 destructor if present.
9608 (clear_table): Local function which clears the table data of a
9610 (ui_out_destroy): Public function which frees a ui_out object.
9611 (ui_out_table_end): Use the new clear_table function.
9612 * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
9614 * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
9617 2013-02-11 Doug Evans <dje@google.com>
9619 * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
9620 (printf_decfloat): New function. Broken out from ui_printf.
9621 Remove unnecessary code to shift the entire format string down.
9622 (printf_pointer): New function.
9623 (ui_printf): Code to print C strings, wide C strings, decfloats,
9624 and pointers moved to separate functions.
9626 2013-02-11 Sergio Durigan Junior <sergiodj@redhat.com>
9628 * valops.c (value_assign): Handling bitfield offset in
9629 `lval_internalvar_component' case.
9631 2013-02-08 Doug Evans <dje@google.com>
9633 * common/format.c (parse_format_string): Fix whitespace.
9635 2013-02-08 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
9637 * stack.c (return_command): Work around uninitialized variable
9640 2013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
9642 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
9643 number of the registers from 36 to 34.
9645 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
9647 * NEWS: Mention new AArch64 native and target support.
9649 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
9651 * MAINTAINERS (Write After Approval): Add myself.
9653 2013-02-08 Jim MacArthur <jim.macarthur@arm.com>
9654 Marcus Shawcroft <marcus.shawcroft@arm.com>
9655 Nigel Stephens <nigel.stephens@arm.com>
9656 Yufeng Zhang <yufeng.zhang@arm.com>
9658 * aarch64-linux-nat.c: New file.
9659 * config/aarch64/linux.mh: New file.
9660 * configure.host: Add AArch64.
9661 * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
9663 2013-02-07 Doug Evans <dje@google.com>
9665 * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
9666 disassemble command.
9668 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
9670 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
9671 set_gdbarch_fetch_tls_load_module_address.
9673 2013-02-06 David S. Miller <davem@davemloft.net>
9675 * sparc-tdep.c (sparc32_return_value): Handle writing return value when
9676 using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
9677 * value.c (struct_return_convention): New function.
9678 (using_struct_return): Implement in terms of struct_return_convention.
9679 * value.h (struct_return_convention): Declare.
9680 * stack.c (return_command): Allow successful overriding of the return
9681 value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
9683 2013-02-06 Tom Tromey <tromey@redhat.com>
9685 * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
9686 outside of TRY_CATCH.
9688 2013-02-06 Yao Qi <yao@codesourcery.com>
9690 * mi/mi-interp.c: Include "tracepoint.h".
9691 (mi_tsv_modified): Declare.
9692 (mi_tsv_created, mi_tsv_deleted): Update declaration.
9693 (mi_interpreter_init): Call observer_attach_tsv_modified.
9694 (mi_tsv_modified): New.
9695 (mi_tsv_created, mi_tsv_deleted): Update.
9696 * tracepoint.c (trace_variable_command): Call
9697 observer_notify_tsv_modified if the initial value of tsv is
9699 (delete_trace_state_variable): Call
9700 observer_notify_tsv_deleted earlier.
9701 (trace_variable_command): Caller update.
9702 (create_tsv_from_upload): Likewise.
9703 * observer.sh: Declare "struct trace_state_variable".
9705 * NEWS: Mention the new MI notification "=tsv-modified".
9707 2013-02-05 Doug Evans <dje@google.com>
9709 * completer.c (location_completer): Fix typo in comment.
9711 2013-02-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9713 * breakpoint.c (add_location_to_breakpoint): Insert the location with
9716 2013-02-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
9718 * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
9719 Refactor if statement to avoid trailing || operator.
9721 2013-02-05 Andreas Tobler <andreast@fgznet.ch>
9723 * NEWS: Add PowerPC FreeBSD as a new native configuration.
9725 2013-02-04 Andreas Tobler <andreast@fgznet.ch>
9727 * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
9728 * configure.host: Add powerpc*-*-freebsd* target.
9729 * configure.tgt: Add target info for powerpc*-*-freebsd*.
9730 * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
9731 * config/powerpc/fbsd.mh: New file.
9733 2013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
9734 Denys Vlasenko <dvlasenk@redhat.com>
9735 Pedro Alves <palves@redhat.com>
9737 * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
9738 (struct elf_internal_linux_prpsinfo): Forward declare.
9739 * gdbarch.h, gdbarch.c: Regenerate.
9740 * linux-tdep.c: Include `cli/cli-utils.h'.
9741 (linux_fill_prpsinfo): New function.
9742 (linux_make_corefile_notes): Use linux_fill_prpsinfo. If there's
9743 an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
9744 elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
9745 depending on gdbarch pointer bitness.
9746 * ppc-linux-tdep.c: Include elf-bfd.h.
9747 (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
9750 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
9751 Marcus Shawcroft <marcus.shawcroft@arm.com>
9752 Nigel Stephens <nigel.stephens@arm.com>
9753 Yufeng Zhang <yufeng.zhang@arm.com>
9755 * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
9757 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
9758 Marcus Shawcroft <marcus.shawcroft@arm.com>
9759 Nigel Stephens <nigel.stephens@arm.com>
9760 Yufeng Zhang <yufeng.zhang@arm.com>
9762 * aarch64-newlib-tdep.c: New file.
9763 * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
9765 * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
9766 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
9767 (ALLDEPFILES): Add aarch64-newlib-tdep.c.
9768 * osabi.c (gdb_osabi_names): Add "Newlib".
9770 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
9771 Marcus Shawcroft <marcus.shawcroft@arm.com>
9772 Nigel Stephens <nigel.stephens@arm.com>
9773 Yufeng Zhang <yufeng.zhang@arm.com>
9775 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
9776 (ALLDEPFILES): Add aarch64-linux-tdep.c.
9777 * aarch64-linux-tdep.c: New file.
9778 * aarch64-linux-tdep.h: New file.
9779 * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
9780 * configure.tgt: Add aarch64-none-linux-gnu.
9782 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
9783 Marcus Shawcroft <marcus.shawcroft@arm.com>
9784 Nigel Stephens <nigel.stephens@arm.com>
9785 Yufeng Zhang <yufeng.zhang@arm.com>
9787 * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
9788 (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
9789 (ALLDEPFILES): Add aarch64-tdep.c.
9790 * aarch64-tdep.c: New file.
9791 * aarch64-tdep.h: New file.
9792 * configure.tgt: Add AArch64.
9793 * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
9794 (aarch64-expedite): New definition.
9795 * features/aarch64-core.xml: New file.
9796 * features/aarch64-fpu.xml: New file.
9797 * features/aarch64-without-fpu.c: New file (generated).
9798 * features/aarch64-without-fpu.xml: New file.
9799 * features/aarch64.c: New file (generated).
9800 * features/aarch64.xml: New file.
9801 * regformats/aarch64-without-fpu.dat: New file (generated).
9802 * regformats/aarch64.dat: New file (generated).
9804 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9806 * contrib/expect-read1.c: New file.
9807 * contrib/expect-read1.sh: New file.
9809 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9811 * dwarf2read.c (file_file_name): New function with code from
9813 (file_full_name): Move most of the code to file_file_name.
9814 (macro_start_file): Rename variable full_name to file_name and use
9815 file_file_name for it. Add comp_dir parameter to new_macro_table.
9816 * macrocmd.c (show_pp_source_pos): New variable fullname. Replace any
9817 macro_source_file->filename access by macro_source_fullname call.
9818 * macroscope.c (_initialize_macroscope): Update the new_macro_table
9820 * macrotab.c (struct macro_table): New field comp_dir.
9821 (macro_include): New variables link_fullname and source_fullname.
9822 Replace any macro_source_file->filename access by macro_source_fullname
9824 (macro_lookup_inclusion): Remove the partial filenames checking code.
9825 (check_for_redefinition): New variables source_fullname and
9826 found_key_fullname. Replace any macro_source_file->filename access by
9827 macro_source_fullname call.
9828 (macro_undef): New variables source_fullname and key_fullname. Replace
9829 any macro_source_file->filename access by macro_source_fullname call.
9830 (macro_lookup_definition): New variables retval and source_fullname.
9831 Replace any macro_source_file->filename access by macro_source_fullname
9833 (foreach_macro): New variable key_fullname. Replace any
9834 macro_source_file->filename access by macro_source_fullname call.
9835 (foreach_macro_in_scope): New variable datum_fullname. Replace any
9836 macro_source_file->filename access by macro_source_fullname call.
9837 (new_macro_table): Add parameter comp_dir. Initialize T with it.
9838 (macro_source_fullname): New function.
9839 * macrotab.h (struct macro_source_file): Extent the filename field
9841 (new_macro_table): New parameter comp_dir, add a comment for it.
9842 (macro_source_fullname): new declaration.
9844 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9846 * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
9847 this_real_name to outer block. Use it also for
9848 compare_filenames_for_search.
9849 (dw2_expand_symtabs_matching): New variable this_real_name. Use it
9850 with dw2_get_real_path for file_matcher, considering also
9851 BASENAMES_MAY_DIFFER.
9852 (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
9854 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9856 * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
9857 to the file_matcher parameter. Pass 0 to it.
9858 (dwarf2_create_include_psymtab): Copy also DIRNAME.
9859 * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
9860 NULL psymtab_to_fullname result.
9861 (psymtab_to_fullname): Remove variable r. Never return NULL, assemble
9862 an expected filename instead.
9863 (expand_symtabs_matching_via_partial): Add basenames parameter to the
9864 file_matcher parameter. Call also psymtab_to_fullname, after newly
9865 considering BASENAMES_MAY_DIFFER.
9866 * source.c (rewrite_source_path): Remove static.
9867 * source.h (rewrite_source_path): New declaration.
9868 * symfile.h (struct quick_symbol_functions): Add basenames parameter to
9869 the expand_symtabs_matching field. Comment it.
9870 * symtab.c (file_matches): New function comment. Add parameter
9871 basenames, implement it.
9872 (search_symbols_file_matches): Add basenames parameter. Update the
9873 file_matches caller.
9874 (search_symbols): Match FILES also against symtab_to_fullname.
9875 Optimize it for BASENAMES_MAY_DIFFER.
9877 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9879 * source.c (print_source_lines_base): Print for TUI also "fullname".
9880 * tui/tui-data.c (init_content_element): Change tui_locator_element
9882 * tui/tui-data.h (struct tui_locator_element): Likewise.
9883 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
9884 tui_update_locator_filename calls to tui_update_locator_fullname.
9885 Replace symtab->filename refererence by symtab_to_fullname call.
9886 * tui/tui-out.c (tui_field_string): Check for "fullname" now.
9887 * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
9888 field to full_name. Replace symtab->filename refererence by
9889 symtab_to_fullname call.
9890 (tui_show_symtab_source): Rename parameter to fullname. Change
9891 tui_locator_element field to full_name.
9892 * tui/tui-stack.c: Include source.h.
9893 (tui_set_locator_filename): Rename the declaration to ...
9894 (tui_set_locator_fullname): ... here. Rename its parameter to
9895 fullname, updates its comment.
9896 (tui_set_locator_info): Rename its parameter to fullname.
9897 (tui_set_locator_filename): Rename the definition to ...
9898 (tui_set_locator_fullname): ... here. Rename its parameter to
9899 fullname, updates its comment. Change tui_locator_element field to
9901 (tui_set_locator_info): Rename its parameter to fullname.
9902 (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
9903 (tui_update_locator_filename): Rename to ...
9904 (tui_update_locator_fullname): ... here. Rename callee to
9905 tui_set_locator_fullname.
9906 (tui_show_frame_info): Replace symtab->filename refererence by
9907 symtab_to_fullname call.
9908 * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
9909 (tui_update_locator_fullname): ... here.
9910 * tui/tui-winsource.c (tui_display_main): Rename the callee to
9911 tui_update_locator_fullname. Replace symtab->filename refererence by
9912 symtab_to_fullname call.
9913 * tui/tui.c (tui_show_source): Rename its parameter to fullname.
9914 Rename the callee to tui_update_locator_fullname.
9915 * tui/tui.h (tui_show_source): Rename its parameter to fullname.
9917 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9919 * ada-lang.c (user_select_syms): Replace symtab->filename refererences
9920 by symtab_to_filename_for_display calls.
9921 * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
9922 (clear_command): New variable sal_fullname, initialize it. Replace
9923 compare_filenames_for_search by filename_cmp with sal_fullname.
9924 (say_where, update_static_tracepoint): Replace symtab->filename
9925 refererences by symtab_to_filename_for_display calls.
9926 * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
9928 * dwarf2read.c: Include source.h.
9929 (fixup_go_packaging): Replace symtab->filename refererences by
9930 symtab_to_filename_for_display calls.
9931 * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
9932 Replace symtab->filename refererences by symtab_to_filename_for_display
9934 (create_sals_line_offset, convert_linespec_to_sals): New variable
9935 fullname, initialize it, replace symtab->filename reference by the
9937 * linux-fork.c: Include source.h.
9938 (info_checkpoints_command): Replace symtab->filename refererences by
9939 symtab_to_filename_for_display calls.
9940 * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
9941 by symtab_to_filename_for_display calls.
9942 * mdebugread.c: Include source.h.
9943 (psymtab_to_symtab_1): Replace symtab->filename refererences by
9944 symtab_to_filename_for_display calls.
9945 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
9946 (mi_cmd_file_list_exec_source_files): Likewise.
9947 * printcmd.c: Include source.h.
9948 (build_address_symbolic): Replace symtab->filename refererences by
9949 symtab_to_filename_for_display calls.
9950 * psymtab.c (partial_map_symtabs_matching_filename)
9951 (read_psymtabs_with_fullname): Call compare_filenames_for_search also
9952 with psymtab_to_fullname.
9953 * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
9954 by symtab_to_filename_for_display calls.
9955 (stpy_get_filename): New variable filename, initialize it, use instead
9956 of symtab->filename refererences.
9957 (salpy_str): Make variable filename const char *. Replace
9958 symtab->filename refererences by symtab_to_filename_for_display calls.
9959 * skip.c: Include source.h and filenames.h.
9960 (skip_file_command): Remove const from the symtab variable. Replace
9961 symtab->filename refererences by symtab_to_fullname call.
9962 (function_name_is_marked_for_skip): New variables searched_for_fullname
9963 and fullname. Use them to search also with symtab's fullname.
9964 * source.c (find_source_lines): Replace symtab->filename refererences
9965 by symtab_to_filename_for_display calls.
9966 (print_source_lines_base): New variable filename, use it instead of
9967 symtab->filename. Replace symtab->filename refererences by
9968 symtab_to_filename_for_display calls.
9969 (line_info, forward_search_command): Replace symtab->filename
9970 refererences by symtab_to_filename_for_display calls.
9971 (reverse_search_command): Replace symtab->filename refererences by
9972 symtab_to_filename_for_display calls. New variable filename for it.
9973 * stack.c (frame_info): Likewise.
9974 * symmisc.c: Include source.h.
9975 (dump_objfile, dump_symtab_1, maintenance_print_symbols)
9976 (maintenance_info_symtabs): Replace symtab->filename refererences by
9977 symtab_to_filename_for_display calls.
9978 * symtab.c (iterate_over_some_symtabs): Call
9979 compare_filenames_for_search also with symtab_to_fullname.
9980 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
9981 symtab->filename refererences by symtab_to_filename_for_display calls.
9982 (find_line_symtab): Replace symtab->filename refererences by
9983 symtab_to_filename_for_display calls.
9984 (file_matches): Replace filename_cmp by compare_filenames_for_search.
9985 (print_symbol_info): Make the last parameter const char *. New
9986 variable s_filename. Use it in the function.
9987 (symtab_symbol_info): Make the last_filename variable const char *.
9988 Replace symtab->filename refererences by symtab_to_filename_for_display
9990 (rbreak_command): New variable fullname. Use it. Replace
9991 symtab->filename refererence by symtab_to_filename_for_display call.
9992 * tracepoint.c (set_traceframe_context, trace_find_line_command)
9993 (print_one_static_tracepoint_marker): Replace symtab->filename
9994 refererences by symtab_to_filename_for_display calls.
9995 * tui/tui-source.c (tui_set_source_content): New variables filename and
9996 s_filename. Replace symtab->filename refererences by this variable.
9997 Replace other symtab->filename refererences by
9998 symtab_to_filename_for_display calls.
10000 2013-02-03 Eldar Gaynetdinov <hal9000ed2k@gmail.com>
10001 Jan Kratochvil <jan.kratochvil@redhat.com>
10003 Add a new variable that controls a way in which filenames are
10005 * NEWS (set filename-display): New entry.
10006 * source.c (filename_display_basename, filename_display_relative)
10007 (filename_display_absolute, filename_display_kind_names)
10008 (filename_display_string, show_filename_display_string)
10009 (symtab_to_filename_for_display): New.
10010 (_initialize_source): Added initialization of 'filename-display'
10012 * source.h (symtab_to_filename_for_display): Added declaration.
10013 * stack.c (print_frame): Added new variable and calling of a new
10014 function and condition with this variable. Changed third argument of
10015 calling of a function.
10017 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10019 * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
10020 Rename field reference filename to fullname.
10021 * tui/tui-data.h (struct tui_source_info): Rename field filename to
10022 fullname. New comment for it.
10023 * tui/tui-source.c (tui_set_source_content): Rename field reference
10024 filename to fullname. Initialize field by symtab_to_fullname now.
10025 * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
10026 reference filename to fullname. Use symtab_to_fullname during
10029 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10032 * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
10033 (dw2_expand_symtabs_with_fullname): ... here. Rename parameter
10034 filename to fullname. Rename variable this_name to this_fullname.
10035 Lowercase FILENAME_CMP call.
10036 (dw2_find_symbol_file): New comment for the returned string.
10037 (dwarf2_gdb_index_functions): Rename the function to
10038 dw2_expand_symtabs_with_fullname.
10039 * psymtab.c (read_psymtabs_with_filename): Rename to ...
10040 (read_psymtabs_with_fullname): ... here. Rename parameter filename to
10042 (psym_functions): Rename the function to read_psymtabs_with_fullname.
10043 * symfile.h (struct quick_symbol_functions): Rename field
10044 expand_symtabs_with_filename to expand_symtabs_with_fullname and its
10045 parameter filename to fullname. Document returned string meaning for
10047 * symtab.c (find_line_symtab): Rename the called function to
10048 expand_symtabs_with_fullname.
10050 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10053 * breakpoint.c (clear_command): Remove variable is_abs, unify the
10054 call of filename_cmp with compare_filenames_for_search.
10055 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
10056 is_abs, unify the call of FILENAME_CMP with
10057 compare_filenames_for_search. New gdb_asserts for real_path and name.
10058 Unify the call of compare_filenames_for_search with FILENAME_CMP.
10059 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
10060 * symfile.h (struct quick_symbol_functions): Extend the comment for
10061 map_symtabs_matching_filename.
10062 * symtab.c (compare_filenames_for_search): Remove the function comment
10063 relative path requirement. Handle absolute filenames, with a comment.
10064 (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
10065 FILENAME_CMP with compare_filenames_for_search. New gdb_asserts for
10066 real_path and name. Unify the call of compare_filenames_for_search
10068 (iterate_over_symtabs): New gdb_assert on REAL_PATH.
10070 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10073 * breakpoint.c (print_breakpoint_location): Replace bp_location field
10074 source_file references by symtab field references. Remove variables
10076 (momentary_breakpoint_from_master, add_location_to_breakpoint):
10077 (clear_command, say_where): Replace bp_location field source_file
10078 references by symtab field references.
10079 (bp_location_dtor): Remove the source_file reference.
10080 (update_static_tracepoint): Replace bp_location field source_file
10081 references by symtab field references.
10082 (breakpoint_free_objfile): New function.
10083 * breakpoint.h (struct bp_location): Extend the comment for line_number.
10084 Replace the field source_file by field symtab, extend its comment.
10085 (breakpoint_free_objfile): New declaration.
10086 * objfiles.c (free_objfile): Call breakpoint_free_objfile.
10087 * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
10088 field source_file references by symtab field references.
10090 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10092 Replace xfullpath calls by gdb_realpath calls.
10093 * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
10095 * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
10096 Remove it from the iterate_over_some_symtabs call.
10097 (dw2_map_symtabs_matching_filename): Remove parameter full_path.
10098 Remove it from the dw2_map_expand_apply calls, remove a block handling
10100 * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
10101 Remove it from the iterate_over_some_symtabs call.
10102 (partial_map_symtabs_matching_filename): Remove parameter full_path.
10103 Remove it from the partial_map_expand_apply calls, remove a block
10104 handling it. Drop gdb_realpath call and cleanups from the real_path
10106 * source.c (openp): Drop the comment part about xfullpath. Replace
10107 xfullpath calls by gdb_realpath calls.
10108 (find_and_open_source): Replace xfullpath call by gdb_realpath call.
10109 * symfile.h (struct quick_symbol_functions): Remove parameter full_path
10110 from method map_symtabs_matching_filename and its comment.
10111 * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
10113 * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
10114 remove it also from the function comment, remove a block handling it.
10115 Drop gdb_realpath call and cleanups from the real_path handling.
10116 (iterate_over_symtabs): Drop variable full_path and its use.
10117 * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
10118 * utils.c (xfullpath): Remove.
10119 * utils.h (xfullpath): Remove.
10121 2013-02-01 Andreas Tobler <andreast@fgznet.ch>
10123 * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
10124 (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
10125 (ALLDEPFILES): Add ppc64-tdep.c.
10126 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
10127 ppc64-tdep.o to gdb_target_obs.
10128 * ppc64-tdep.h: New file.
10129 * ppc64-tdep.c: New file.
10130 (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
10131 ppc-linux-tdep.c to here.
10132 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
10133 (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
10134 (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
10135 (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
10136 from ppc-linux-tdep.c to here.
10137 (ppc64_convert_from_func_ptr_addr): Rename from
10138 ppc64_linux_convert_from_func_ptr_addr to
10139 ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
10142 (read_insn): Move from ppc-linux-tdep.c to here.
10143 (insns_match_pattern, insn_d_field, insn_ds_field): Move
10144 from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
10145 * ppc-linux-tdep.c: Include ppc64-tdep.h.
10146 Removed above functions.
10147 (ppc_linux_init_abi): Adjust.
10149 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
10151 * ada-valprint.c (ada_print_floating): Remove unused 'len'.
10153 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
10155 * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
10157 2013-02-01 Pedro Alves <palves@redhat.com>
10159 * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
10160 * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
10162 2013-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10164 * elfread.c (elf_symfile_read): Limit separate debug info additions to
10165 files with no separate debug info.
10166 * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
10167 * symfile.c (read_symbols): Call find_separate_debug_file_in_section
10168 only for files with no separate debug info.
10170 2013-01-31 Tom Tromey <tromey@redhat.com>
10172 * jit.c (jit_program_space_data): Rename from jit_inferior_data;
10174 (struct jit_program_space_data): Rename from jit_inferior_data.
10176 (get_jit_program_space_data): Rename from get_jit_inferior_data.
10177 Change return type. Attach data to program space.
10178 (jit_program_space_data_cleanup): Rename from
10179 jit_inferior_data_cleanup; change argument type.
10180 (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
10182 (jit_register_code): Update.
10183 (jit_update_inferior_cache): Remove.
10184 (jit_breakpoint_deleted): Get jit data from the location's program
10186 (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
10187 'ps_data', change type.
10188 (jit_inferior_init, jit_breakpoint_re_set_internal)
10189 (jit_event_handler): Update.
10190 (free_objfile_data): Get data from objfile's program space.
10191 (_initialize_jit): Update.
10193 2013-01-31 Tom Tromey <tromey@redhat.com>
10196 * jit.c (struct jit_inferior_data) <cached_code_address,
10197 jit_breakpoint>: New fields.
10198 (jit_breakpoint_re_set_internal): Fix logging. Only create
10199 breakpoint if cached address has changed.
10200 (jit_update_inferior_cache, jit_breakpoint_deleted): New
10202 (_initialize_jit): Register breakpoint deleted observer.
10204 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10206 * infrun.c (handle_syscall_event): Remove unused gdbarch.
10207 (save_infcall_suspend_state): Ifdef out unused inf.
10208 (restore_infcall_suspend_state): Ifdef out unused inf.
10209 * jit.c (jit_register_code): Remove unused i, b, inf_data.
10210 (jit_frame_sniffer): Remove unused inf_data.
10212 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10214 * c-exp.y (classify_inner_name): Remove unused type.
10215 * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
10216 in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
10218 (c_get_string): Remove unused kind.
10219 * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
10221 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10223 * charset.c (intermediate_encoding): Remove unused i.
10224 * completer.c (signal_completer): Remove unused i.
10225 * continuations.c (discard_my_continuations_1): Remove unused
10227 * corelow.c (core_close): Remove unuseD name.
10228 (get_core_siginfo): Remove unused pid.
10229 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
10231 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
10232 (loclist_describe_location): Remove unused first.
10233 * event-top.c (command_line_handler): Remove unused got_eof.
10234 * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
10235 (resize_section_table): Remove unused old_value.
10236 * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
10237 * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
10238 * i386-tdep.c (i386_process_record): Remove unused rex.
10239 * infcmd.c (get_return_value): Remove unused uiout.
10240 * jv-lang.c (type_from_class): Remove unused is_array.
10241 * jv-valprint.c (java_val_print): Remove unused i.
10242 * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
10243 * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
10244 * m2-typeprint.c (m2_print_type): Remove unused code.
10245 * macroexp.c (get_character_constant): Remove unused body_start.
10246 (macro_stringify): Remove unused result.
10247 * objc-lang.c (find_methods): Remove unused gdbarch.
10248 * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
10249 * regcache.c (regcache_cooked_read): Remove unused gdbarch.
10250 * stack.c (print_frame_args): Remove unused summary.
10251 * thread.c (thread_apply_command): Remove unused p.
10252 * valarith.c (value_x_unop): Remove unused mangle_ptr.
10253 * valops.c (search_struct_method): Remove unused skip.
10254 * valprint.c (generic_val_print): Remove unused byte_order.
10255 * varobj.c (varobj_update): Remove unused changed.
10256 * cli/cli-cmds.c (complete_command): Remove unused next_item.
10257 (alias_command): Remove unused c.
10258 * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
10259 * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
10261 (mi_cmd_data_write_memory): Remove unused word_format.
10262 (mi_cmd_data_write_memory_bytes): Remove unused r.
10263 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
10265 * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
10266 * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
10269 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10271 * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
10272 * symtab.c (iterate_over_symtabs): Remove unused s.
10273 (find_pc_sect_symtab): Remove unused pspAce.
10274 (find_pc_sect_line): Remove unused alt_symtab.
10275 (find_pcs_for_symtab_line): Remove unused ix, previous_function.
10276 (completion_list_add_name): Remove unused newsize.
10278 2013-01-31 Tom Tromey <tromey@redhat.com>
10281 * dwarf2read.c (read_tag_ptr_to_member_type): Handle
10284 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10286 * target.c (target_read_string): Remove unused origlen.
10288 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10290 * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
10291 * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
10292 * ax-general.c (ax_print): Remove unused is_float.
10293 * blockframe.c (block_innermost_frame): Remove unused start, end.
10294 * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
10296 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10298 * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
10299 (svr4_read_so_list): Remove unused lmo.
10300 * solib-target.c (solib_target_relocate_section_addresses): Remove
10303 2013-01-30 Tom Tromey <tromey@redhat.com>
10305 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
10307 2013-01-30 Tom Tromey <tromey@redhat.com>
10309 * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
10310 * utils.c (gnu_debuglink_crc32): Remove.
10311 * utils.h (gnu_debuglink_crc32): Don't declare.
10313 2013-01-30 Tom Tromey <tromey@redhat.com>
10315 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
10316 (read_structure_type, read_enumeration_type): Remove cast.
10318 2013-01-30 Tom Tromey <tromey@redhat.com>
10320 * dwarf2read.c (read_namespace_type): Remove cast.
10321 (read_typedef): Likewise.
10323 2013-01-29 Tom Tromey <tromey@redhat.com>
10325 * dwarf2read.c (free_dwo_file): Remove assert.
10327 2013-01-29 Tom Tromey <tromey@redhat.com>
10329 * value.c (deprecated_set_value_modifiable): Remove.
10330 * value.h (deprecated_set_value_modifiable): Remove.
10332 2013-01-28 Doug Evans <dje@google.com>
10334 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
10335 to addresses from dwo files.
10337 2013-01-25 Siva Chandra Reddy <sivachandra@google.com>
10339 * valops.c (find_overload_match): Remove unused argument 'lax'.
10340 * value.h: Remove unused argument 'lax' from the declaration of
10341 find_overload_match.
10342 * eval.c (value_subexp_standard): Do not pass a 'lax' argument
10343 to find_overload_match.
10344 * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
10345 argument to find_overload_match.
10347 2013-01-25 Tom Tromey <tromey@redhat.com>
10349 * dwarf2read.c (processing_has_namespace_info): Remove.
10350 (struct dwarf2_cu) <processing_has_namespace_info>: New field.
10351 (process_die, read_func_scope, dwarf2_start_symtab)
10352 (new_symbol_full): Update.
10354 2013-01-25 Tom Tromey <tromey@redhat.com>
10356 * cp-namespace.c (cp_set_block_scope): Remove.
10357 * cp-support.h (cp_set_block_scope): Remove.
10358 * dbxread.c: Include block.h.
10359 (cp_set_block_scope): New function.
10360 (process_one_symbol): Update.
10361 * dwarf2read.c (read_func_scope): Use block_set_scope.
10363 2013-01-25 Pedro Alves <palves@redhat.com>
10365 * remote.c (add_current_inferior_and_thread): Tweak comment.
10367 2013-01-25 Tom Tromey <tromey@redhat.com>
10369 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
10370 (cp_add_using_directive): Add 'copy_names' argument.
10371 * cp-support.h (cp_add_using_directive): Update.
10372 (struct using_direct) <import_src, import_dest, alias,
10373 declaration>: Now const.
10374 * dwarf2read.c (read_import_statement): Use obconcat.
10375 Don't copy names passed to cp_add_using_directive.
10377 2013-01-25 Tom Tromey <tromey@redhat.com>
10379 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
10381 2013-01-25 Pedro Alves <palves@redhat.com>
10383 * remote.c (stop_reply_extract_thread): New.
10384 (add_current_inferior_and_thread): New parameter 'wait_status'.
10386 (remote_start_remote): Pass wait status to
10387 add_current_inferior_and_thread.
10388 (extended_remote_run): Update comment.
10389 (extended_remote_create_inferior_1): Pass wait status to
10390 add_current_inferior_and_thread.
10392 2013-01-25 Andrew Burgess <aburgess@broadcom.com>
10393 Ulrich Weigand <uweigand@de.ibm.com>
10395 * valarith.c (value_vector_widen): New function for replicating a
10396 scalar into a vector.
10397 (value_binop): Use value_vector_widen to widen scalar to vector
10398 rather than casting, this better matches gcc C behaviour.
10399 * valops.c (value_casst): Update logic for casting between vector
10400 types, and for casting from scalar to vector, try to match gcc C
10402 * value.h (value_vector_widen): Declare.
10403 * opencl-lang.c (opencl_value_cast): New opencl specific casting
10404 function, handle special case for casting scalar to vector.
10405 (opencl_relop): Use opencl_value_cast.
10406 (evaluate_subexp_opencl): Use opencl_value_cast instead of
10407 value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
10408 in order to use opencl_value_cast.
10410 2013-01-25 Yao Qi <yao@codesourcery.com>
10412 * event-loop.c: Include "queue.h".
10413 (gdb_event_p): New typedef.
10414 (DECLARE_QUEUE_P): Use.
10415 (DEFINE_QUEUE_P): Use.
10416 (async_queue_event): Remove.
10417 (gdb_event_xfree): New.
10418 (initialize_event_loop): New.
10419 (process_event): Use QUEUE macros.
10420 (event_queue): Remove.
10421 (gdb_wait_for_event): Caller update.
10422 (check_async_event_handlers): Likewise.
10423 (poll_timers): Likewise.
10424 * event-loop.h (initialize_event_loop): Declare.
10425 * event-loop.c (gdb_event_xfree): New.
10426 * top.c (gdb_init): Call initialize_event_loop.
10428 2013-01-25 Yao Qi <yao@codesourcery.com>
10430 * event-loop.c (async_queue_event): Remove one parameter
10431 'position'. Remove code handling 'position' == TAIL.
10432 (gdb_wait_for_event): Caller update.
10433 (check_async_event_handlers): Caller update.
10434 (poll_timers): Caller update.
10435 * event-loop.h (enum queue_position): Remove.
10437 2013-01-25 Maxim Kuvyrkov <maxim@kugelworks.com>
10439 * MAINTAINERS: Update my email.
10441 2013-01-25 Yao Qi <yao@codesourcery.com>
10443 * main.c (print_gdb_help): Remove "--epoch" from the help
10446 2013-01-24 Ulrich Weigand <uweigand@de.ibm.com>
10448 * symtab.c (skip_prologue_using_sal): Consider a file
10449 change the same as an increased line number
10451 2013-01-24 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
10453 * MAINTAINERS (Write After Approval): Add myself to the list.
10455 2013-01-24 Tom Tromey <tromey@redhat.com>
10457 * ada-lang.h (ada_decode_symbol): Make return type const.
10458 * ada-lang.c (ada_decode_symbol): Likewise.
10460 2013-01-23 Doug Evans <dje@google.com>
10462 * linespec.c (find_linespec_symbols): Make static.
10464 2013-01-23 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
10466 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
10467 type on float conversion for complex type.
10469 2013-01-23 Siva Chandra Reddy <sivachandra@google.com>
10471 Add a new class gdb.Architecture which exposes GDB's
10472 internal representation of architecture via GDB Python API.
10473 * Makefile.in: Add entries corresponding to the new file
10475 * NEWS (Python Scripting): Add entries for the new class
10476 gdb.Architecture and the new method gdb.Frame.architecture.
10477 * python/py-arch.c: Implement gdb.Architecture class.
10478 * python/py-frame.c (frapy_arch): Implement the method
10479 gdb.Frame.architecture().
10480 (frame_object_methods): Add 'architecture' to the method table.
10481 * python/python-internal.h: Add declarations of new utility
10483 * python/python.c (_initialize_python): Initialize
10484 gdb.Architecture class.
10486 2013-01-23 Doug Evans <dje@google.com>
10488 Work around binutils/15021.
10489 * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
10490 type_unit_group out of union s. All uses updated.
10491 (read_index_from_section): Watch for index version 8.
10492 (follow_die_sig): If using .gdb_index version <= 7, record the TU as
10493 an imported symtab.
10494 (write_psymtabs_to_index): Increment version number to 8.
10496 2013-01-22 Pedro Alves <palves@redhat.com>
10498 * annotate.c (breakpoint_changed): Skip if breakpoint is not
10501 2013-01-22 Pedro Alves <palves@redhat.com>
10503 * annotate.c (annotate_breakpoints_changed): Rename to ...
10504 (annotate_breakpoints_invalid): ... this. Make static.
10505 (breakpoint_changed): Adjust.
10506 (_initialize_annotate): Always install the observers. Install a
10507 "breakpoint_created" observer.
10508 * annotate.h (annotate_breakpoints_changed): Delete declaration.
10509 * breakpoint.c (set_breakpoint_condition)
10510 (breakpoint_set_commands, do_map_commands_command)
10511 (init_raw_breakpoint, clear_command, set_ignore_count)
10512 (enable_breakpoint_disp): No longer call
10513 annotate_breakpoints_changed.
10515 2013-01-22 Pedro Alves <palves@redhat.com>
10517 * annotate.c: Include "inferior.h".
10518 (frames_invalid_emitted)
10519 (breakpoints_invalid_emitted): New globals.
10520 (async_background_execution_p): New function.
10521 (annotate_breakpoints_changed, annotate_frames_invalid): Skip
10522 emitting the annotation if it has already been emitted.
10523 (annotate_display_prompt): New function.
10524 * annotate.h (annotate_display_prompt): New declaration.
10525 * event-top.c: Include annotate.h.
10526 (display_gdb_prompt): Call annotate_display_prompt.
10528 2013-01-22 Pedro Alves <palves@redhat.com>
10530 * annotate.c (ignore_count_changed): Delete.
10531 (annotate_breakpoints_changed): Don't clear ignore_count_changed.
10532 (annotate_ignore_count_change): Delete.
10533 (annotate_stopped): Don't emit a delayed breakpoints-changed
10535 * annotate.h (annotate_ignore_count_change): Delete.
10536 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
10537 annotate_ignore_count_change.
10539 2013-01-22 Tom Tromey <tromey@redhat.com>
10541 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
10542 require_rvalue for a register location.
10544 2013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
10546 * breakpoint.c (print_one_breakpoint_location): Add MI
10547 field 'thread-groups' when printing a breakpoint.
10548 (output_thread_groups): New function.
10550 2013-01-21 Siva Chandra Reddy <sivachandra@google.com>
10552 * python/lib/gdb/commands/explore.py
10553 (CompoundExplorer.explore_expr): Correct the name of a method
10555 (ExploreTypeCommand.invoke): Add a missing 'return'.
10557 2013-01-21 Tom Tromey <tromey@redhat.com>
10559 * gdb_obstack.h (obconcat): Move declaration here, from...
10560 * symfile.h (obconcat): ... here.
10561 * gdb_obstack.c: New file.
10562 (obconcat): Move from...
10563 * symfile.c (obconcat): ... here.
10564 * Makefile.in (SFILES): Add gdb_obstack.c.
10565 (COMMON_OBS): Add gdb_obstack.o.
10567 2013-01-21 Tom Tromey <tromey@redhat.com>
10569 * symfile.h (obsavestring): Don't declare.
10570 * symfile.c (obsavestring): Remove.
10571 * ada-exp.y: Use obstack_copy0, not obsavestring.
10572 * ada-lang.c: Use obstack_copy0, not obsavestring.
10573 * coffread.c: Use obstack_copy0, not obsavestring.
10574 * cp-namespace.c: Use obstack_copy0, not obsavestring.
10575 * dbxread.c: Use obstack_copy0, not obsavestring.
10576 * dwarf2read.c: Use obstack_copy0, not obsavestring.
10577 * jit.c: Use obstack_copy0, not obsavestring.
10578 * mdebugread.c: Use obstack_copy0, not obsavestring.
10579 * psymtab.c: Use obstack_copy0, not obsavestring.
10580 * stabsread.c: Use obstack_copy0, not obsavestring.
10581 * xcoffread.c: Use obstack_copy0, not obsavestring.
10583 2013-01-21 Tom Tromey <tromey@redhat.com>
10585 * dwarf2read.c (fixup_go_packaging): Save package name
10586 on objfile obstack.
10587 * gdbtypes.c (init_type): Don't copy name.
10589 2013-01-21 Tom Tromey <tromey@redhat.com>
10591 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
10593 (struct attribute) <u.str>: Now const.
10594 (struct fnfieldlist) <name>: Now const.
10595 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
10596 (partial_die_parent_scope): Make return type const.
10597 (partial_die_full_name, add_partial_symbol): Update.
10598 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
10600 (find_file_and_directory): Make 'name' and 'comp_dir' const.
10601 (read_file_scope, read_func_scope, dwarf2_add_field)
10602 (dwarf2_add_member_fn, read_structure_type)
10603 (process_enumeration_scope, read_array_type, read_module_type)
10604 (read_base_type, read_subrange_type): Update.
10605 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
10606 (new_symbol_full, guess_full_die_structure_name): Update.
10607 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
10608 (dwarf2_name): Return const type.
10609 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
10612 2013-01-21 Tom Tromey <tromey@redhat.com>
10614 * gdbtypes.c (init_type): Make 'name' const.
10615 * gdbtypes.h (init_type): Update.
10617 2013-01-21 Tom Tromey <tromey@redhat.com>
10619 * buildsym.c (patch_subfile_names): Use set_last_source_file.
10620 (start_symtab): Make 'name' and 'dirname' const. Use
10621 set_last_source_file.
10622 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
10623 (last_source_file): Define. Now static.
10624 (set_last_source_file, get_last_source_file): New functions.
10625 * buildsym.h (last_source_file): Don't declare.
10626 (start_symtab): Update.
10627 (set_last_source_file, get_last_source_file): Declare.
10628 * coffread.c (complete_symtab): Use set_last_source_file.
10629 (coff_end_symtab): Likewise.
10630 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
10631 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
10632 set_last_source_file.
10633 (process_one_symbol): Use get_last_source_file.
10634 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
10635 (psymtab_to_symtab_1): Use get_last_source_file.
10636 * xcoffread.c (process_linenos): Use get_last_source_file.
10637 (complete_symtab): Use set_last_source_file.
10638 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
10639 (scan_xcoff_symtab): Use set_last_source_file.
10641 2013-01-21 Tom Tromey <tromey@redhat.com>
10643 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
10644 (symbol_set_names): Remove casts. Handle field const-ness.
10646 2013-01-21 Tom Tromey <tromey@redhat.com>
10648 * dwarf2read.c (new_symbol_full): Remove cast.
10649 * symtab.c (symbol_set_demangled_name): Make 'name' const.
10650 * symtab.h (symbol_set_demangled_name): Update.
10652 2013-01-21 Tom Tromey <tromey@redhat.com>
10654 * main.c (captured_main): Call bfd_init.
10656 2013-01-21 Tom Tromey <tromey@redhat.com>
10658 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
10659 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
10660 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
10663 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10665 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
10667 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10669 Fix gdb.fortran/common-block.exp crash in PIE mode.
10670 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
10672 * f-valprint.c (info_common_command_for_block): Expect
10673 LOC_COMMON_BLOCK in gdb_assert.
10674 * symtab.h (struct general_symbol_info): Update comment for the
10675 common_block member.
10676 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
10677 (enum address_class): New member LOC_COMMON_BLOCK.
10679 2013-01-18 David Blaikie <dblaikie@gmail.com>
10681 * MAINTAINERS (Write After Approval): Add "David Blaikie".
10683 2013-01-18 Tom Tromey <tromey@redhat.com>
10686 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
10687 Call require_rvalue.
10689 2013-01-18 Yao Qi <yao@codesourcery.com>
10691 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
10692 (dbx_read_symtab): New declaration.
10693 (dbx_psymtab_to_symtab): Delete.
10694 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
10695 Rename parameter PST to SELF. Exchanged two parameters.
10696 (start_psymtab): Caller update.
10697 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
10698 (dwarf2_read_symtab): New declaration.
10699 (dwarf2_psymtab_to_symtab): Delete.
10700 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
10701 Rename parameter PST to SELF. Exchanged two parameters.
10702 (create_partial_symtab): Caller update.
10703 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
10704 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
10705 Rename parameter PST to SELF. Exchanged two parameters.
10706 (parse_partial_symbols, new_psymtab): Caller update.
10707 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
10709 * psymtab.c (psymtab_to_symtab): Caller update.
10710 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
10711 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
10712 Rename parameter PST to SELF. Exchanged two parameters.
10713 (xcoff_start_psymtab): Caller update.
10715 2013-01-18 Yao Qi <yao@codesourcery.com>
10717 * infrun.c (proceed): Rename local variable 'oneproc' to
10720 2013-01-17 Doug Evans <dje@google.com>
10722 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
10723 (dw2_build_type_unit_groups): Delete. All uses updated.
10725 * symtab.h (struct symbol_search): Add comment.
10727 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
10729 * symtab.c (compare_filenames_for_search): New comment for
10732 2013-01-17 Tom Tromey <tromey@redhat.com>
10734 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
10736 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
10738 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
10739 initialize it by existing make_cleanup. Call new do_cleanups.
10741 2013-01-17 Tom Tromey <tromey@redhat.com>
10743 * cp-abi.c (cp_abi_completer): New function.
10744 (_initialize_cp_abi): Set completer for "set cp-abi".
10746 2013-01-17 Tom Tromey <tromey@redhat.com>
10748 * mem-break.c: Remove obsolete comment.
10749 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
10751 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
10753 * jit.c (jit_reader_load_command): Interpret the jit reader name
10754 as an absolute path if it begins with a forward slash.
10756 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
10760 * jit.c (finalize_symtab): Ensure that only the global block has a
10763 2013-01-17 Pedro Alves <palves@redhat.com>
10765 * acinclude.m4: Include ../config/plugins.m4,
10766 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
10767 * Makefile.in (aclocal_m4_deps): Update.
10768 * aclocal.m4: Renegerate.
10770 2013-01-16 Doug Evans <dje@google.com>
10772 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
10774 2013-01-16 Pedro Alves <palves@redhat.com>
10775 Tom Tromey <tromey@redhat.com>
10778 * NEWS: Add "catch signal".
10779 * breakpoint.c (base_breakpoint_ops): No longer static.
10780 (bpstat_explains_signal): New function.
10781 (init_catchpoint): No longer static.
10782 (base_breakpoint_explains_signal): New function.
10783 (base_breakpoint_ops): Initialize new field.
10784 * breakpoint.h (enum bpstat_signal_value): New.
10785 (struct breakpoint_ops) <explains_signal>: New field.
10786 (bpstat_explains_signal): Remove macro, declare as function.
10787 (base_breakpoint_ops, init_catchpoint): Declare.
10788 * break-catch-sig.c: New file.
10789 * inferior.h (signal_catch_update): Declare.
10790 * infrun.c (signal_catch): New global.
10791 (handle_syscall_event): Update for change to
10792 bpstat_explains_signal.
10793 (handle_inferior_event): Likewise. Always handle random signals
10795 (signal_cache_update): Check signal_catch.
10796 (signal_catch_update): New function.
10797 (_initialize_infrun): Initialize signal_catch.
10798 * Makefile.in (SFILES): Add break-catch-sig.c.
10799 (COMMON_OBS): Add break-catch-sig.o.
10801 2013-01-16 Tom Tromey <tromey@redhat.com>
10803 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
10804 (print_one_catch_solib, print_one_catch_syscall)
10805 (print_one_catch_exec, print_one_exception_catchpoint): Emit
10808 2013-01-16 Yao Qi <yao@codesourcery.com>
10810 * printcmd.c (current_display_number): Make it static.
10812 2013-01-16 Yao Qi <yao@codesourcery.com>
10814 * infcmd.c (step_once): Don't check '!single_inst' as it was
10817 2013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10819 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
10821 2013-01-14 Tom Tromey <tromey@redhat.com>
10823 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
10825 * command.h (add_setshow_string_noescape_cmd): Update.
10826 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
10827 (complete_set_gnutarget): New function.
10828 (_initialize_core): Set the "set gnutarget" completer.
10830 2013-01-14 Tom Tromey <tromey@redhat.com>
10833 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
10834 (c_type_print_modifier): Likewise.
10835 * dwarf2read.c (read_tag_restrict_type): New function.
10836 (read_type_die_1): Handle DW_TAG_restrict_type.
10837 * gdbtypes.c (make_restrict_type): New function.
10838 (recursive_dump_type): Handle TYPE_RESTRICT.
10839 * gdbtypes.h (enum type_flag_values): Renumber.
10840 (enum type_instance_flag_value): Add
10841 TYPE_INSTANCE_FLAG_RESTRICT.
10842 (TYPE_RESTRICT): New macro.
10843 (make_restrict_type): Declare.
10845 2013-01-14 Tom Tromey <tromey@redhat.com>
10848 * psymtab.c (struct psymtab_state): New.
10849 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
10851 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
10852 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
10854 2013-01-14 Richard Sharman <richard_sharman@mitel.com>
10855 Pedro Alves <palves@redhat.com>
10859 * remote.c (remote_threads_info): Make a copy of the reply from
10860 qfThreadInfo and use that instead of rs->buf.
10862 2013-01-14 Yao Qi <yao@codesourcery.com>
10864 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
10865 (dbx_psymtab_to_symtab): Likewise.
10866 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
10867 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
10868 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
10870 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10872 * parse.c (parse_exp_in_context): New variable inner_chain. Call
10873 make_cleanup_restore_current_language. Call set_language. Move
10874 OLD_CHAIN and INNER_CHAIN cleanups.
10875 * utils.c (do_restore_current_language)
10876 (make_cleanup_restore_current_language): New functions.
10877 * utils.h (make_cleanup_restore_current_language): New declaration.
10879 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10881 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
10882 non-existing files.
10884 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
10885 non-existing files if FILENAME is already absolute.
10887 2013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10889 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
10890 fputs_filtered. Append trailing newline.
10892 2013-01-11 Yao Qi <yao@codesourcery.com>
10893 Stan Shebs <stan@codesourcery.com>
10895 * psymtab.c (init_psymbol_list): Clarify the comment.
10897 2013-01-11 Yao Qi <yao@codesourcery.com>
10899 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
10900 (update_dprintf_command_list): Assert that 'printf_line' is
10901 non-null. Remove condition check.
10903 2013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10906 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
10908 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
10910 * tui/tui-source.h (tui_source_is_displayed): Likewise.
10912 2013-01-09 Anthony Green <green@moxielogic.com>
10914 * cp-abi.c (cplus_print_vtable): Don't return value from void
10916 * ada-lang.c (re_set_catch_assert): Ditto.
10918 2013-01-09 Doug Evans <dje@google.com>
10920 * symfile.h (quick_symbol_functions): Delete member
10921 pre_expand_symtabs_matching. All uses removed.
10922 * dwarf2read.c (dw2_lookup_symbol): Implement.
10923 (dw2_do_expand_symtabs_matching): Delete.
10924 (dw2_pre_expand_symtabs_matching): Delete.
10925 (struct dw2_symtab_iterator): New type.
10926 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
10927 (dw2_expand_symtabs_for_function): Rewrite.
10928 (dwarf2_gdb_index_functions): Update.
10929 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
10930 (psym_functions): Update.
10932 2013-01-09 Tom Tromey <tromey@redhat.com>
10934 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
10935 * configure: Rebuild.
10936 * configure.ac: Add somread.o to the build if BFD has SOM
10938 * somread.c: Include som/aout.h, not syms.h.
10939 (som_symtab_read): Use som_external_symbol_dictionary_record.
10940 Unpack records manually.
10941 (_initialize_somread): Declare.
10943 2012-01-08 Mike Frysinger <vapier@gentoo.org>
10945 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
10946 Cast return_address to 64bits.
10948 2013-01-08 Hui Zhu <hui_zhu@mentor.com>
10950 * printcmd.c: Remove define of function output_command.
10951 * tracepoint.c: Remove extern of function output_command.
10952 * valprint.h: (output_command): New extern.
10954 2013-01-07 Tom Tromey <tromey@redhat.com>
10956 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
10958 (objc_language_defn): Use c_printchar, c_printstr,
10961 2013-01-07 Tom Tromey <tromey@redhat.com>
10965 * ada-valprint.c (printstr, print_field_values): Remove
10967 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
10969 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
10971 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
10972 * main.c (captured_main): Remove "epoch" argument.
10973 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
10974 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
10975 * p-valprint.c (pascal_object_print_value_fields): Remove
10977 * printcmd.c (print_command_1): Remove 'inspect' argument.
10978 (print_command, call_command): Update.
10979 (inspect_command): Remove.
10980 (_initialize_printcmd): Make "inspect" an alias for "print".
10981 * top.c (epoch_interface): Remove.
10982 * top.h (epoch_interface): Remove.
10983 * valprint.c (user_print_options): Update.
10984 (print_converted_chars_to_obstack): Remove "inspect_it" code.
10985 * valprint.h (struct value_print_options) <inspect_it>: Remove
10988 2013-01-04 Tom Tromey <tromey@redhat.com>
10990 * valprint.h (read_string): Add 'extern'.
10992 2013-01-07 Joel Brobecker <brobecker@adacore.com>
10994 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
10995 used to decide whether to define darwin_read_dyld_info or not.
10997 2013-01-03 Pierre Muller <muller@sourceware.org>
10999 * main.c (relocate_gdb_directory): Avoid calling stat function
11002 2013-01-03 Yao Qi <yao@codesourcery.com>
11004 * psymtab.c (fixup_psymbol_section): Update declaration.
11005 (fixup_psymbol_section): Remove code returning value.
11007 2013-01-03 Yao Qi <yao@codesourcery.com>
11009 * symtab.h: Remove some out of date comments.
11010 (enum exception_event_kind): Move it ...
11011 * breakpoint.c: ... here.
11013 2013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
11016 * darwin-nat.c (darwin_read_dyld_info): Only build if
11017 TASK_DYLD_INFO_COUNT is defined.
11018 (darwin_xfer_partial): Call darwin_read_dyld_info only if
11019 TASK_DYLD_INFO_COUNT is defined.
11021 2013-01-02 Tom Tromey <tromey@redhat.com>
11023 * symfile.h (struct ecoff_debug_hack): Remove.
11024 * objfiles.c: Don't include mdebugread.h.
11026 2013-01-02 Tom Tromey <tromey@redhat.com>
11028 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
11029 * configure.ac: Check for Mach-O support in BFD. Update
11031 * configure: Rebuild.
11033 2013-01-02 Tom Tromey <tromey@redhat.com>
11035 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
11036 * configure.ac: Use GDB_AC_CHECK_BFD.
11037 * configure: Rebuild.
11039 2013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
11041 * MAINTAINERS: Update my email.
11043 2013-01-01 Joel Brobecker <brobecker@adacore.com>
11045 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
11047 2013-01-01 Joel Brobecker <brobecker@adacore.com>
11049 * rs6000-nat.c (bss_data_overlap): New function.
11050 (vmap_symtab): Use it to adjust the .bss section's offset.
11052 2013-01-01 Joel Brobecker <brobecker@adacore.com>
11054 Update year range in copyright notice of all files.
11056 2013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
11058 * top.c (print_gdb_version): Update copyright year.
11060 For older changes see ChangeLog-2012.
11066 version-control: never