1 2013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
3 * linux-tdep.c (linux_corefile_thread_callback): Propagate any
4 failure from register information collection.
6 2013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
8 * linux-tdep.c (linux_corefile_thread_data): Remove `num_notes'
10 (linux_corefile_thread_callback): Update accordingly.
11 (linux_make_corefile_notes): Likewise.
13 2013-10-24 Pedro Alves <palves@redhat.com>
15 * NEWS (New options): Mention set/show startup-with-shell.
16 * config/alpha/nm-osf3.h (START_INFERIOR_TRAPS_EXPECTED): Set to 2
18 * fork-child.c (fork_inferior, startup_inferior): Handle 'set
20 (show_startup_with_shell): New function.
21 (_initialize_fork_child): Register the set/show startup-with-shell
23 * inf-ptrace.c (inf_ptrace_create_inferior): Remove comment.
24 * inf-ttrace.c (inf_ttrace_him): Remove comment.
25 * procfs.c (procfs_init_inferior): Remove comment.
26 * infcmd.c (startup_with_shell): New global.
27 * inferior.h (startup_with_shell): Declare global.
28 (STARTUP_WITH_SHELL): Delete.
29 (START_INFERIOR_TRAPS_EXPECTED): Set to 1 by default instead of 2.
31 2013-10-23 Pedro Alves <palves@redhat.com>
33 * common/gdb_signals.h (gdb_signal_to_symbol_string): Declare.
34 * common/signals.c: Include "gdb_assert.h".
35 (signals): New field 'symbol'.
36 (SET): Use the 'symbol' parameter.
37 (gdb_signal_to_symbol_string): New function.
38 * infrun.c (handle_inferior_event) <random signal>: In debug
39 output, print the random signal enum as string in addition to its
41 * target/waitstatus.c (target_waitstatus_to_string): Print the
42 signal's enum value as string instead of the (POSIX) signal name.
44 2013-10-23 Gary Benson <gbenson@redhat.com>
47 * common/linux-osdata.c (command_from_pid): Reduced size of cmd
48 from 32 to 18. Adjusted fscanf format string accordingly.
49 (Avoids leaving cmd unterminated.)
50 (print_sockets): Do not parse tlen, inode, sl, timeout, txq, rxq,
51 trun, retn or extra. (Avoids leaving extra unterminated.) Check
52 that local_address and remote_address will not overflow.
53 (linux_xfer_osdata_modules): Parse lines using strtok to avoid
54 leaving dependencies unterminated. Parse size as "%u" to match
57 2013-10-22 Pedro Alves <palves@redhat.com>
59 * infrun.c (handle_inferior_event) <thread hop>: Don't clear or
60 set ecs->random signal.
62 2013-10-22 Pedro Alves <palves@redhat.com>
64 * infrun.c (keep_going): Update comments.
66 2013-10-22 Pedro Alves <palves@redhat.com>
68 * remote.c (remote_parse_stop_reply) <'T'/'S'/'X' replies>: Map
69 invalid signal numbers to GDB_SIGNAL_UNKNOWN.
71 2013-10-22 Pedro Alves <palves@redhat.com>
73 * include/gdb/signals.def (TARGET_EXC_BAD_ACCESS): Rename to
75 (TARGET_EXC_BAD_INSTRUCTION): Rename to GDB_EXC_BAD_INSTRUCTION.
76 (TARGET_EXC_ARITHMETIC): Rename to GDB_EXC_ARITHMETIC.
77 (TARGET_EXC_EMULATION): Rename to GDB_EXC_EMULATION.
78 (TARGET_EXC_SOFTWARE): Rename to GDB_EXC_SOFTWARE.
79 (TARGET_EXC_BREAKPOINT): Rename to GDB_EXC_BREAKPOINT.
80 (GDB_SIGNAL_LAST): Change description string.
81 * common/signals.c (gdb_signal_from_host, do_gdb_signal_to_host):
82 Adjust to signal renaming.
83 * darwin-nat.c (darwin_decode_message): Likewise.
85 2013-10-22 Jose E. Marchesi <jose.marchesi@oracle.com>
87 * MAINTAINERS (Write After Approval): Add myself to the list.
89 2013-10-18 Andrew Burgess <aburgess@broadcom.com>
91 * breakpoint.c (update_watchpoint): If hardware watchpoints are
92 forced off, downgrade them to software watchpoints if possible,
93 and error out if not possible.
94 (watch_command_1): Move watchpoint type selection closer to
95 watchpoint creation, and extend the comments.
97 2013-10-18 Pedro Alves <palves@redhat.com>
100 * infrun.c (handle_inferior_event): Keep going if we got a random
101 signal we should not stop for, instead of falling through to the
104 2013-10-18 Yao Qi <yao@codesourcery.com>
106 * c-varobj.c (cplus_number_of_children): Fix indentation.
108 2013-10-17 Tom Tromey <tromey@redhat.com>
111 * printcmd.c (printcmd): Call gdb_flush.
113 2013-10-17 Tom Tromey <tromey@redhat.com>
115 * elfread.c (struct elfinfo) <stabindexsect>: Remove.
116 (elf_locate_sections): Update.
118 2013-10-17 Yao Qi <yao@codesourcery.com>
120 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
121 * ada-varobj.c: Remove the include of ada-varobj.h.
122 (ada_varobj_get_number_of_children): Declare.
123 (ada_varobj_get_name_of_child): Make it static.
124 (ada_varobj_get_path_expr_of_child): Likewise.
125 (ada_varobj_get_value_of_child): Likewise.
126 (ada_varobj_get_type_of_child): Likewise.
127 (ada_varobj_get_value_of_array_variable): Likewise.
128 * ada-varobj.h: Remove.
130 2013-10-17 Yao Qi <yao@codesourcery.com>
132 * Makefile.in (SFILES): Add c-varobj.c and jv-varobj.c.
133 (COMMON_OBS): Add c-varobj.o and jv-varobj.o.
134 * ada-varobj.c: Include "varobj.h".
135 (ada_number_of_children): New. Moved from varobj.c.
136 (ada_name_of_variable, ada_name_of_child): Likewise.
137 (ada_path_expr_of_child, ada_value_of_child): Likewise.
138 (ada_type_of_child, ada_value_of_variable): Likewise.
139 (ada_value_is_changeable_p, ada_value_has_mutated): Likewise.
140 (ada_varobj_ops): New.
141 * c-varobj.c, jv-varobj.c: New file. Moved from varobj.c.
142 * gdbtypes.c (get_target_type): New. Moved from varobj.c.
143 * gdbtypes.h (get_target_type): Declare.
144 * varobj.c: Remove the inclusion of "ada-varobj.h" and
146 (ANONYMOUS_STRUCT_NAME): Move it to c-varobj.c.
147 (ANONYMOUS_UNION_NAME): Likewise.
148 (get_type, get_value_type, get_target_type): Remove declarations.
149 (value_get_print_value, varobj_value_get_print_value): Likewise.
150 (c_number_of_children, c_name_of_variable): Likewise.
151 (c_name_of_child, c_path_expr_of_child): Likewise.
152 (c_value_of_child, c_type_of_child): Likewise.
153 (c_value_of_variable, cplus_number_of_children): Likewise.
154 (cplus_class_num_children, cplus_name_of_variable): Likewise.
155 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
156 (cplus_value_of_child, cplus_type_of_child): Likewise.
157 (cplus_value_of_variable, java_number_of_children): Likewise.
158 (java_name_of_variable, java_name_of_child): Likewise.
159 (java_path_expr_of_child, java_value_of_child): Likewise.
160 (java_type_of_child, java_value_of_variable): Likewise.
161 (ada_number_of_children, ada_name_of_variable): Likewise.
162 (ada_name_of_child, ada_path_expr_of_child): Likewise.
163 (ada_value_of_child, ada_type_of_child): Likewise.
164 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
165 (ada_value_has_mutated): Likewise.
166 (struct language_specific): Move it to varobj.h.
167 (CPLUS_FAKE_CHILD): Move it to varobj.h.
168 (restrict_range): Rename it varobj_restrict_range. Make it extern.
170 (get_path_expr_parent): Rename it to varobj_get_path_expr_parent.
172 (is_anonymous_child): Move it to c-varobj.c and rename to
173 varobj_is_anonymous_child. Caller update.
174 (get_type): Move it to c-varobj.c.
175 (get_value_type): Rename it varobj_get_value_type. Make it
177 (get_target_type): Move it gdbtypes.c.
178 (varobj_formatted_print_options): New function.
179 (value_get_print_value): Rename it to
180 varobj_value_get_print_value and make it extern.
181 (varobj_value_is_changeable_p): Make it extern.
182 (adjust_value_for_child_access): Move it to c-varobj.c.
183 (default_value_is_changeable_p): Rename it to
184 varobj_default_value_is_changeable_p. Make it extern.
185 (c_number_of_children, c_name_of_variable): Move it to c-varobj.c
186 (c_name_of_child, c_path_expr_of_child): Likewise.
187 (c_value_of_child, c_type_of_child): Likewise.
188 (c_value_of_variable, cplus_number_of_children): Likewise.
189 (cplus_class_num_children, cplus_name_of_variable): Likewise.
190 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
191 (cplus_value_of_child, cplus_type_of_child): Likewise.
192 (cplus_value_of_variable): Likewise.
193 (java_number_of_children, java_name_of_variable): Move it to jv-varobj.c.
194 (java_name_of_child, java_path_expr_of_child): Likewise.
195 (java_value_of_child, java_type_of_child): Likewise.
196 (java_value_of_variable): Likewise.
197 (ada_number_of_children, ada_name_of_variable): Move it to ada-varobj.c.
198 (ada_name_of_child, ada_path_expr_of_child): Likewise.
199 (ada_value_of_child, ada_type_of_child): Likewise.
200 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
201 (ada_value_has_mutated): Likewise.
202 * varobj.h (CPLUS_FAKE_CHILD): New macro, moved from varobj.c.
203 (struct lang_varobj_ops): New. Renamed by 'struct language_specific'.
204 (c_varobj_ops, cplus_varobj_ops): Declare.
205 (java_varobj_ops, ada_varobj_ops): Declare.
206 (varobj_default_value_is_changeable_p): Declare.
207 (varobj_value_is_changeable_p): Declare.
208 (varobj_get_value_type, varobj_is_anonymous_child): Declare.
209 (varobj_get_path_expr_parent): Declare.
210 (varobj_value_get_print_value): Declare.
211 (varobj_formatted_print_options): Declare.
212 (varobj_restrict_range): Declare.
214 2013-10-17 Luis Machado <lgustavo@codesourcery.com>
216 * target/waitstatus.h (target_waitkind): Remove spurious
217 character from the comments.
219 2013-10-17 Joel Brobecker <brobecker@adacore.com>
221 * gdbarch.sh (get_longjmp_target): Add method documentation.
222 * gdbarch.h: Regenerate.
224 2013-10-16 Tom Tromey <tromey@redhat.com>
226 * dbxread.c (read_dbx_symtab) <bss_ext_symbol>: Remove unused
229 2013-10-16 Luis Machado <lgustavo@codesourcery.com>
231 * gcore.in: Call GDB using the full path to the gcore script.
232 Error out if the GDB binary is not found.
234 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
237 * dwarf2read.c (dw2_get_real_path): Remove unnecessary call to
240 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
243 * target.c (target_disable_btrace): Fix invalid return value for
245 (target_teardown_btrace): Likewise.
247 2013-10-14 Yao Qi <yao@codesourcery.com>
249 * varobj.c (struct varobj): Move most of the fields to
251 (struct varobj_dynamic): New struct.
252 (varobj_get_display_hint) [HAVE_PYTHON]: Adjust.
253 (varobj_has_more): Likewise.
254 (dynamic_varobj_has_child_method): Likewise.
255 (update_dynamic_varobj_children): Likewise.
256 (varobj_get_num_children): Likewise.
257 (varobj_list_children, varobj_pretty_printed_p): Likewise.
258 (install_new_value_visualizer): Likewise.
259 (install_new_value_visualizer, install_new_value): Likewise.
260 (varobj_update, new_variable, free_variable): Likewise.
261 (my_value_of_variable, value_get_print_value): Likewise.
262 (install_visualizer): Change the type of parameter 'var' to
263 'struct varobjd_dynamic *'. Callers update.
264 * varobj.h (struct varobj): Moved from varobj.c.
265 (struct varobj) <dynamic>: New field.
267 2013-10-13 Sandra Loosemore <sandra@codesourcery.com>
269 * nios2-tdep.c (nios2_reg_names): Use "sstatus" rather than "ba"
270 as the preferred name of r30.
271 * nios2-linux-tdep.c (reg_offsets): Likewise.
272 * features/nios2-cpu.xml: Likewise.
273 * features/nios2-linux.c: Regenerated.
274 * features/nios2.c: Regenerated.
275 * regformats/nios2-linux.dat: Regenerated.
277 2013-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
279 Canonicalize directories for EXEC_FILENAME.
280 * exec.c (exec_file_attach): Use gdb_realpath_keepfile for
282 * utils.c (gdb_realpath_keepfile): New function.
283 * utils.h (gdb_realpath_keepfile): New declaration.
285 2013-10-11 Doug Evans <dje@google.com>
287 * Makefile.in (GDBFLAGS): New variable.
290 2013-10-11 Joel Brobecker <brobecker@adacore.com>
292 * NEWS: Add entry documenting the new "-catch-assert" and
293 "-catch-exception" GDB/MI commands.
295 2013-10-11 Joel Brobecker <brobecker@adacore.com>
297 * breakpoint.h (init_ada_exception_breakpoint): Add parameter
299 * breakpoint.c (init_ada_exception_breakpoint): Add parameter
300 "enabled". Set B->ENABLE_STATE accordingly.
301 * ada-lang.h (ada_exception_catchpoint_kind): Move here from
303 (create_ada_exception_catchpoint): Add declaration.
304 * ada-lang.c (ada_exception_catchpoint_kind): Move to ada-lang.h.
305 (create_ada_exception_catchpoint): Make non-static. Add new
306 parameter "disabled". Use it in call to
307 init_ada_exception_breakpoint.
308 (catch_ada_exception_command): Add parameter "enabled" in call
309 to create_ada_exception_catchpoint.
310 (catch_assert_command): Likewise.
312 * mi/mi-cmds.h (mi_cmd_catch_assert, mi_cmd_catch_exception):
314 * mi/mi-cmds.c (mi_cmds): Add the "catch-assert" and
315 "catch-exception" commands.
316 * mi/mi-cmd-catch.c: Add #include "ada-lang.h".
317 (mi_cmd_catch_assert, mi_cmd_catch_exception): New functions.
319 2013-10-11 Joel Brobecker <brobecker@adacore.com>
321 * ada-lang.c (enum ada_exception_catchpoint_kind): Renames
322 "enum exception_catchpoint_kind". Replace the "ex_" prefix
323 of all its enumerates with "ada_". Update the rest of this
326 2013-10-11 Joel Brobecker <brobecker@adacore.com>
328 * ada-lang.c (ada_decode_exception_location): Delete.
329 (create_ada_exception_catchpoint): Remove arguments "sal",
330 "addr_string" and "ops". Add argument "ex_kind" instead.
331 Adjust implementation accordingly, calling ada_exception_sal
332 to get the entities it no longer gets passed as arguments.
333 Document the function's arguments.
334 (catch_ada_exception_command): Use catch_ada_exception_command_split
335 instead of ada_decode_exception_location, and update call to
336 create_ada_exception_catchpoint.
337 (catch_ada_assert_command_split): Renames
338 ada_decode_assert_location. Remove parameters "addr_string" and
339 "ops", and now returns void. Adjust implementation accordingly.
340 Update the function documentation.
341 (catch_assert_command): Use catch_ada_assert_command_split
342 instead of ada_decode_assert_location. Update call to
343 create_ada_exception_catchpoint.
345 2013-10-11 Joel Brobecker <brobecker@adacore.com>
347 * utils.h (perror_warning_with_name): Add declaration.
348 * utils.c (perror_warning_with_name): New function.
349 * cli/cli-cmds.c (source_script_with_search): Add call to
350 perror_warning_with_name if from_tty is nul.
352 2013-10-11 Joel Brobecker <brobecker@adacore.com>
354 * utils.c (perror_string): New function, extracted out of
355 throw_perror_with_name.
356 (throw_perror_with_name): Rework to use perror_string.
358 2013-10-11 Yao Qi <yao@codesourcery.com>
360 * remote.c (discard_pending_stop_replies_in_queue): Update
362 (struct stop_reply) <rs>: New field.
363 (remove_stop_reply_of_remote_state): New function.
364 (discard_pending_stop_replies_in_queue): Add parameter 'rs'.
365 Callers update. Pass remove_stop_reply_of_remote_state to
367 (remote_parse_stop_reply): Initialize field 'rs'.
369 2013-10-10 Will Newton <will.newton@linaro.org>
371 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
374 2013-10-10 Joel Brobecker <brobecker@adacore.com>
376 * cli/cli-cmds.c (show_baud_rate): Moved to serial.c as
377 serial_baud_show_cmd.
378 (_initialize_cli_cmds): Delete the code creating the
379 "set/show remotebaud" commands.
380 * serial.c (baud_rate): Move here from top.c.
381 (serial_baud_show_cmd): Move here from cli/cli-cmds.c.
382 (_initialize_serial): Create "set/show serial baud" commands.
383 Add "set/show remotebaud" command aliases.
384 * top.c (baud_rate): Moved to serial.c.
385 * NEWS: Document the new "set/show serial baud" commands,
386 replacing "set/show remotebaud".
388 2013-10-09 Pedro Alves <palves@redhat.com>
390 * breakpoint.c (insert_bp_location): Use memory_error_message to
391 build the memory error string.
392 * c-lang.c: Include "gdbcore.h".
393 (c_get_string): Use memory_error to throw error.
394 (target_xfer_memory_error): Delete.
395 (memory_error_message): New, factored out from
396 target_xfer_memory_error.
397 (memory_error): Change parameter type to target_xfer_error.
399 (read_memory): Use memory_error instead of
400 target_xfer_memory_error.
401 * gdbcore.h: Include "target.h".
402 (memory_error): Change parameter type to target_xfer_error.
403 (memory_error_message): Declare function.
404 * target.c (target_read_memory, target_read_stack)
405 (target_write_memory, target_write_raw_memory): Return
406 TARGET_XFER_E_IO on error. Adjust comments.
407 (get_target_memory): Pass TARGET_XFER_E_IO to memory_error,
409 * target.h (target_read, target_insert_breakpoint)
410 (target_remove_breakpoint): Adjust comments.
411 * valprint.c (partial_memory_read): Rename parameter, and adjust
413 (val_print_string): Use memory_error_message to build the memory
416 2013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
418 * common/filestuff.c (gdb_fopen_cloexec): Remove initialization of
419 result variable. Rename variable fopen_e_ever_failed to
420 fopen_e_ever_failed_einval. Retry fopen only for errno EINVAL.
422 2013-10-09 Pedro Alves <palves@redhat.com>
424 * monitor.c (monitor_write_memory, monitor_write_memory_bytes)
425 (monitor_write_memory_longlongs, monitor_write_memory_block):
426 Constify 'myaddr' parameter.
427 (monitor_xfer_memory): Adjust interface as monitor_xfer_partial
429 (monitor_xfer_partial): New function.
430 (init_base_monitor_ops): Don't install a deprecated_xfer_memory
431 hook. Install a to_xfer_partial hook.
433 2013-10-09 Tom Tromey <tromey@redhat.com>
435 * dwarf2read.c (dwarf2_get_dwz_file): Update for type change in
436 bfd_get_alt_debug_link_info.
438 2013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
440 New flag OBJF_NOT_FILENAME.
441 * auto-load.c (auto_load_objfile_script): Check also OBJF_NOT_FILENAME.
442 * jit.c (jit_object_close_impl): Use OBJF_NOT_FILENAME for
444 (jit_bfd_try_read_symtab): Use OBJF_NOT_FILENAME for
445 symbol_file_add_from_bfd.
446 * jv-lang.c (get_dynamics_objfile): Use OBJF_NOT_FILENAME for
448 * objfiles.c (allocate_objfile): Assert OBJF_NOT_FILENAME if NAME is
450 * objfiles.h (OBJF_NOT_FILENAME): New.
452 2013-10-08 Tom Tromey <tromey@redhat.com>
454 * Makefile.in (SFILES): Add build-id.c.
455 (HFILES_NO_SRCDIR): Add build-id.h.
456 * build-id.c: New file, largely from elfread.c. Modified
458 * build-id.h: New file.
459 * dwarf2read.c (dwarf2_get_dwz_file): Update for change to
460 bfd_get_alt_debug_link_info. Verify dwz file's build-id.
461 Search for dwz file using build-id.
462 * elfread.c (build_id_bfd_get, build_id_verify)
463 (build_id_to_debug_filename, find_separate_debug_file): Remove.
465 2013-10-08 Joel Brobecker <brobecker@adacore.com>
467 * ada-lang.c (compare_names_with_case): Renamed from
468 compare_names, adding a new parameter "casing" and its handling.
469 New function documentation.
470 (compare_names): New function, implemented using
471 compare_names_with_case.
473 2013-10-08 Joel Brobecker <brobecker@adacore.com>
475 * ada-lang.c (ada_exception_sal): Remove advance declaration.
477 2013-10-07 Tom Tromey <tromey@redhat.com>
479 * objfiles.c (free_objfile_per_bfd_storage): Delete the
480 demangled_names_hash.
481 (free_objfile): Don't delete the demangled_names_hash.
482 * objfiles.h (struct objfile_per_bfd_storage)
483 <demangled_names_hash>: New field.
484 (struct objfile) <demangled_names_hash>: Move to
485 objfile_per_bfd_storage.
486 * symfile.c (reread_symbols): Don't delete the
487 demangled_names_hash.
488 * symtab.c (create_demangled_names_hash): Update.
489 (symbol_set_names): Update.
491 2013-10-07 Tom Tromey <tromey@redhat.com>
493 * gdb_bfd.c (struct gdb_bfd_data) <relocation_computed,
494 needs_relocations>: New fields.
495 (gdb_bfd_requires_relocations): New function.
496 * gdb_bfd.h (gdb_bfd_requires_relocations): Declare.
497 * objfiles.c (get_objfile_bfd_data): Disallow sharing if
498 the BFD needs relocations applied.
500 2013-10-07 Pedro Alves <palves@redhat.com>
503 * breakpoint.c (remove_threaded_breakpoints): Say "no longer in
504 the thread list" instead of "gone".
506 2013-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
508 * NEWS: Mention new convenience variable $_exitsignal.
509 * corelow.c (core_open): Reset exit convenience variables. Set
510 $_exitsignal to the uncaught signal which generated the corefile.
511 * infrun.c (handle_inferior_event): Reset exit convenience
512 variables. Set $_exitsignal for TARGET_WAITKIND_SIGNALLED.
513 (clear_exit_convenience_vars): New function.
514 * inferior.h (clear_exit_convenience_vars): New prototype.
516 2013-10-06 Yao Qi <yao@codesourcery.com>
518 * varobj.h: Add comments to enum varobj_languages.
520 2013-10-04 Doug Evans <dje@google.com>
522 Add support for DWP file format version 2.
523 * NEWS: Mention support for DWP file format version 2.
524 * dwarf2read.c (dwarf2_section_info): Convert asection field to a
525 union of asection, containing_section. New fields virtual_offset
526 and is_virtual. Change type of readin filed from int to char.
527 (dwo_sections, dwo_file): Tweak comments.
528 (dwp_v2_section_ids): New enum.
529 (dwp_sections): New fields abbrev, info, line, loc, macinfo, macro,
531 (virtual_v1_dwo_sections): Renamed from virtual_dwo_sections.
533 (virtual_v2_dwo_sections): New struct.
534 (dwp_hash_table): New fields version, nr_columns. Change type of
535 section_pool field to a union.
536 (dwp_file): New field version.
537 (dwarf2_has_info): Check for virtual sections.
538 (get_containing_section): New function.
539 (get_section_bfd_owner, get_section_bfd_section): Call it.
540 (dwarf2_locate_sections): Update.
541 (dwarf2_section_empty_p): Update.
542 (dwarf2_read_section): Handle virtual sections.
543 (locate_dwz_sections): Update.
544 (create_dwp_hash_table): Document and handle V2 format.
545 (locate_v1_virtual_dwo_sections): Renamed from
546 locate_virtual_dwo_sections and update. All callers updated.
547 (create_dwo_unit_in_dwp_v1): Renamed from create_dwo_in_dwp.
548 Delete arg htab. Rename arg section_index to unit_index.
550 (MAX_NR_V1_DWO_SECTIONS): Renamed from MAX_NR_DWO_SECTIONS.
552 (create_dwp_v2_section, create_dwo_unit_in_dwp_v2): New functions.
553 (lookup_dwo_unit_in_dwp): Add V2 support.
554 (dwarf2_locate_dwo_sections): Update.
555 (dwarf2_locate_common_dwp_sections): Renamed from
556 dwarf2_locate_dwp_sections and update. All callers updated.
557 (dwarf2_locate_v2_dwp_sections): New function.
558 (open_and_init_dwp_file): Add V2 support.
559 (read_str_index): New locals str_section, str_offsets_section.
561 2013-10-04 Pedro Alves <palves@redhat.com>
563 * common/ptid.c (null_ptid, minus_one_ptid, ptid_build)
564 (pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid)
565 (ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p): Replace
566 describing comments with references to ptid.h.
567 * common/ptid.h: Remove intro description of constructors,
568 accessors and predicates.
569 (struct ptid): Reformat.
570 (minus_one_ptid, ptid_build, pid_to_ptid, ptid_get_pid)
571 (ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid): Change
574 2013-10-04 Joel Brobecker <brobecker@adacore.com>
576 * aix-thread.c (sync_threadlists): Add missing ')' in call
579 2013-10-04 Joel Brobecker <brobecker@adacore.com>
581 * procfs.c (procfs_init_inferior): Fix typo causing the build
584 2013-10-04 Joel Brobecker <brobecker@adacore.com>
586 * aix-thread.c (ptrace32): Remove cast to addr_ptr.
588 2013-10-04 Joel Brobecker <brobecker@adacore.com>
590 * mi/mi-main.c (run_one_inferior): Add function description.
591 Make ARG a pointer to an integer whose value determines whether
592 we should "run" or "start" the program.
593 (mi_cmd_exec_run): Add handling of the "--start" option.
594 Reject all other command-line options.
595 * NEWS: Add entry for "-exec-run"'s new "--start" option.
597 2013-10-04 Yao Qi <yao@codesourcery.com>
599 * remote-notif.h (REMOTE_NOTIF_ID): New enum.
600 (struct notif_client) <pending_event>: Moved
601 to struct remote_notif_state.
603 (struct remote_notif_state) <pending_event>: New field.
604 (notif_event_xfree): Declare.
605 * remote-notif.c (handle_notification): Adjust.
606 (notif_event_xfree): New function.
607 (do_notif_event_xfree): Call notif_event_xfree.
608 (remote_notif_state_xfree): Call notif_event_xfree to free
609 each element in field pending_event.
610 * remote.c (discard_pending_stop_replies): Remove declaration.
611 (discard_pending_stop_replies_in_queue): Declare.
612 (remote_close): Call discard_pending_stop_replies_in_queue
613 instead of discard_pending_stop_replies.
614 (remote_start_remote): Adjust.
615 (stop_reply_xfree): Call notif_event_xfree.
616 (notif_client_stop): Adjust initialization.
617 (remote_notif_remove_all): Rename it to ...
618 (remove_stop_reply_for_inferior): ... this. Update comments.
619 Don't check INF is NULL.
620 (discard_pending_stop_replies): Return early if notif_state is
621 NULL. Adjust. Don't check INF is NULL.
622 (remote_notif_get_pending_events): Adjust.
623 (discard_pending_stop_replies_in_queue): New function.
624 (remote_wait_ns): Likewise.
626 2013-10-04 Yao Qi <yao@codesourcery.com>
628 * remote-notif.c (DECLARE_QUEUE_P): Remove.
629 (notif_queue): Remove.
630 (remote_notif_process): Add one parameter 'notif_queue'.
631 Update comments. Callers update.
632 (remote_async_get_pending_events_token): Remove.
633 (remote_notif_register_async_event_handler): Remove.
634 (remote_notif_unregister_async_event_handler): Remove.
635 (handle_notification): Add parameter 'notif_queue'. Update
636 comments. Callers update.
637 (notif_xfree): Remove.
638 (remote_notif_state_allocate): New function.
639 (remote_notif_state_xfree): New function.
640 (_initialize_notif): Remove code to allocate queue.
641 * remote-notif.h (DECLARE_QUEUE_P): Moved from remote-notif.c.
642 (struct remote_notif_state): New.
643 (handle_notification): Update declaration.
644 (remote_notif_process): Likewise.
645 (remote_notif_register_async_event_handler): Remove.
646 (remote_notif_unregister_async_event_handler): Remove.
647 (remote_notif_state_allocate): Declare.
648 (remote_notif_state_xfree): Declare.
649 * remote.c (struct remote_state) <notif_state>: New field.
650 (remote_close): Don't call
651 remote_notif_unregister_async_event_handler. Call
652 remote_notif_state_xfree.
653 (remote_open_1): Don't call
654 remote_notif_register_async_event_handler. Call
655 remote_notif_state_allocate.
657 2013-10-04 Yao Qi <yao@codesourcery.com>
659 * varobj.c (create_child_with_value): Remove 'const' from the
660 type of parameter 'name'.
661 (varobj_add_child): Likewise.
662 (install_dynamic_child): Remove 'const' from the type of
664 (varobj_add_child): Likewise.
665 (create_child_with_value): Likewise. Update comments. Don't
667 (update_dynamic_varobj_children): Duplicate 'name'
668 and pass it to install_dynamic_child.
670 2013-10-03 Phil Muldoon <pmuldoon@redhat.com>
672 * python/py-value.c (convert_value_from_python): Move PyInt_Check
673 conversion logic to occur after PyLong_Check. Comment on order
675 * python/py-arch.c (archpy_disassemble): Comment on order of
676 conversion for integers and longs.
678 2013-10-03 Pedro Alves <palves@redhat.com>
680 * common/linux-ptrace.c (linux_check_ptrace_features): Factor out
681 the PTRACE_O_TRACESYSGOOD and PTRACE_O_TRACEFORK to separate
682 functions. Always test for PTRACE_O_TRACESYSGOOD even if
683 PTRACE_O_TRACEFORK is not supported.
684 (linux_test_for_tracesysgood): New function.
685 (linux_test_for_tracefork): New function, factored out from
686 linux_check_ptrace_features, and also don't kill child_pid here.
688 2013-10-03 Tristan Gingold <gingold@adacore.com>
690 * i386-darwin-nat.c (i386_darwin_dr_set): Fix argument type.
691 Remove verbose error reporting. Use detected state to
692 thread_set_state call.
693 (i386_darwin_dr_get): Fix return type. Remove verbose error
695 Remove trailing spaces.
697 2013-10-02 Pedro Alves <palves@redhat.com>
699 * cp-valprint.c (cp_print_value_fields): Adjust calls to
700 val_print_optimized_out.
701 * jv-valprint.c (java_print_value_fields): Likewise.
702 * p-valprint.c (pascal_object_print_value_fields): Likewise.
703 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
704 <DWARF_VALUE_REGISTER>: If the register was not saved, return a
705 new optimized out value.
706 * findvar.c (address_from_register): Likewise.
707 * frame.c (put_frame_register): Tweak error string to say the
708 register was not saved, rather than optimized out.
709 * infcmd.c (default_print_one_register_info): Adjust call to
710 val_print_optimized_out. Use value_of_register instead of
711 get_frame_register_value.
712 * mi/mi-main.c (output_register): Use value_of_register instead of
713 get_frame_register_value.
714 * valprint.c (valprint_check_validity): Likewise.
715 (val_print_optimized_out): New value parameter. If the value is
716 lval_register, print <not saved> instead.
717 (value_check_printable, val_print_scalar_formatted): Adjust calls
718 to val_print_optimized_out.
719 * valprint.h (val_print_optimized_out): New value parameter.
720 * value.c (struct value) <optimized_out>: Extend comment.
721 (error_value_optimized_out): New function.
722 (require_not_optimized_out): Use it. Use a different string for
723 lval_register values.
724 * value.h (error_value_optimized_out): New declaration.
725 * NEWS: Mention <not saved>.
727 2013-10-02 Joel Brobecker <brobecker@adacore.com>
729 * symtab.c (compare_search_syms): Use FILENAME_CMP instead of
730 strcmp to compare two symtab filenames.
732 2013-10-02 Joel Brobecker <brobecker@adacore.com>
734 * symtab.c (search_symbols_equal): Delete.
735 (sort_search_symbols_remove_dups): Replace call to
736 search_symbols_equal by call to compare_search_syms,
737 adjusting as necessary.
739 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
743 * python/python.c: Document gdb.execute command in Python help.
745 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
747 * python/py-frame.c (frame_info_to_frame_object): Use
748 gdbpy_convert_exception. Clean up Python object on failure.
750 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
752 * python/lib/gdb/command/frame_filters.py
753 (InfoFrameFilter.list_frame_filters): Retrieve exception manually.
754 (ShowFrameFilterPriority.invoke): Ditto.
756 2013-10-01 Keith Seitz <keiths@redhat.com>
758 * linespec.c (struct ls_parser): Make 'saved_arg' const.
759 (parse_linespec): Make 'argptr' const.
760 Remove temporary cast of 'argptr' to const char **.
761 (decode_line_full): Pass const pointer to parse_linespec.
762 (decode_line_1): Likewise.
763 (decode_objc): Make local variable 'new_argptr' const.
764 (find_function_symbols): Remove temporary cast to char *
766 * objc-lang.c (find_imps): Make argument 'method' const.
768 * objc-lang.h (find_imps): Likewise.
770 2013-10-01 Keith Seitz <keiths@redhat.com>
772 * completer.c (skip_quoted_chars): Make all arguments const.
774 (skip_quoted): Likewise.
775 * completer.h (skip_quoted_chars): Likewise.
776 (skip_quoted): Likewise.
777 * defs.h (skip_quoted): Remove duplicate declaration.
778 * jv-exp.y: Include completer.h.
779 (yylex): Remove unneccessary cast to char * fro skip_quoted.
780 * p-exp.y: Include completer.h.
782 2013-10-01 Keith Seitz <keiths@redhat.com>
784 * c-exp.y (parse_number): Make first argument const.
785 Make a copy of the input to manipulate.
786 (c_parse_escape): Make first argument const.
787 Make local variable 'tokptr' const.
788 (parse_string_or_char): Make first two arguments const.
789 (macro_original_text): Make const.
790 (lex_one_token): Make local variable 'tokstart' const.
791 Likewise for local variables named 'p'.
792 Cast away const for struct stoken (temporary).
793 * c-lang.h (c_parse_escpae): Make first argument const.
794 * cli/cli-cmds.c (echo_command): Make local variable 'p'
796 * cli/cli-setshow.c (do_set_command): Likewise for 'p' in
798 * f-exp.y (parse_number): Make first argument const.
799 (match_string_literal): Make local variable 'tokstart'
801 (yylex): Make local variable 'p' const.
802 Cast away const for struct stoken (temporary).
803 * go-exp.y (parse_number): Make first argument const.
804 (parse_string_or_char): Likewise.
805 Make local variable 'tokstart' const.
806 (lex_one_token): Likewise for numerous locals called 'p'.
807 Cast away const for struct stoken (temporary).
808 * jv-exp.y (parse_number): Make first argument const.
809 Make local variables 'tokstart' and 'tokptr' const.
810 Cast away const for call to skip_quoted (temporary).
811 (yylex): Make local variable 'p' const.
812 Cast away const for struct stoken (temporary).
813 * m2-exp.y (parse_number): Make local variable 'p' const.
814 (yylex): Likewise for 'tokstart'.
815 Cast away const for struct stoken (temporary).
816 Make local variable 'p' const.
817 * macroexp.c (get_character_constant): Pass a const string
819 (get_string_literal): Likewise.
820 (macro_expand_next): Make first argument const.
821 Cast away const for init_shared_buffer.
822 * macroexp.h (macro_expand_next): Make first argument const.
823 * p-exp.y (yylex): Make a local copy of 'lexptr'.
824 Pass a const string to c_parse_escape.
825 Make local variables 'p' and 'namestart' const.
826 * parse.c (lexptr): Make const.
827 (prev_lexptr): Likewise.
828 (find_template_name_end): Return const.
829 Make argument const, too.
830 (parse_exp_in_context): Make first argument const.
831 Remove the entire const_hack.
832 (parse_exp_in_context_1): Make first argument const.
833 * parser-defs.h (find_template_name_end): Return const.
834 Make argument const, too.
835 (lexptr): Make const.
836 (prev_lexptr): Likewise.
837 * utils.c (parse_escape): Make second argument const.
838 * utils.h (parse_escape): Likewise.
840 2013-10-01 Keith Seitz <keiths@redhat.com>
842 * ada-exp.y (write_object_renaming): Update: struct stoken.ptr
844 (block_lookup): Make 'raw_name' and 'name' const.
845 * ada-lex.l (processString): Update for struct stoken.ptr.
846 * c-exp.y (qualified_name : TYPENAME COLONCOLON '~' name): Likewise.
847 (operator_stoken): Likewise.
848 (lex_one_token): Remove temporary cast to char * for
850 * f-exp.y (yylex): Likewise.
851 * gdb-types.c (lookup_struct_elt_type): Make argument 'name' const.
852 * gdbtypes.h (lookup_struct_elt_type): Likewisee.
853 * go-exp.y (lex_one_token): Remove temporary cast to char * for
855 * jv-exp.y (QualifiedName): Update for struct stoken.ptr.
856 (yylex): Remove temporary cast to char * for 'yylval.sval.ptr'.
857 * linespec.c (struct ls_parser): Make 'stream' const.
858 (find_parameter_list_end): Make argument 'input' and local
860 (linespec_lexer_lex_string): Make local variables 'start' and
862 Use skip_spaces_const instead of skip_spaces.
863 (linespec_lexer_peek_token): Make local variable 'saved_stream'
865 (parse_linespec): Temporarily cast 'argptr' to const for
866 'parser->lexer.stream'.
867 * m2-exp.y (yylex): Remove temporary cast to char * for
869 * objc-lang.c (add_msglist): Make local variable 'p' const.
870 * p-exp.y (exp : exp '['): Update for struct stoken.ptr.
871 (exp : STRING): Make 'sp' const.
872 (parse_number): Make argument 'p' const.
873 * parser-defs.h (struct stoken): Make 'ptr' const.
875 2013-10-01 Doug Evans <dje@google.com>
877 * cli/cli-decode.c: Remove unnecessary inclusion of tui/tui.h.
879 2013-10-01 Yao Qi <yao@codesourcery.com>
881 * varobj.c (c_value_of_root): Remove declaration.
882 (cplus_value_of_root, java_value_of_root): Likewise.
883 (ada_value_of_root): Likewise.
884 (struct language_specific) <value_of_root>: Remove.
885 (languages): Update initialization.
886 (check_scope): Move earlier.
887 (c_value_of_root): Move earlier and rename to ...
888 (value_of_root_1): ... this.
889 (value_of_root): Caller update.
890 (cplus_value_of_root, java_value_of_root): Remove.
891 (ada_value_of_root): Remove.
893 2013-10-01 Yao Qi <yao@codesourcery.com>
895 * varobj.c (varobj_format_string): Remove "unknown".
896 (languages): Remove the first element.
897 * varobj.h (enum varobj_languages): Remove vlang_c.
899 2013-10-01 Yao Qi <yao@codesourcery.com>
901 * varobj.c (struct language_specific) <language>: Remove.
902 (languages): Update the initialization.
904 2013-10-01 Yao Qi <yao@codesourcery.com>
906 * arm-wince-tdep.c: Remove inclusion of "solib.h" and
907 "solib-target.h". Include "windows-tdep.h".
908 (arm_wince_init_abi): Call windows_init_abi. Remove call to
909 set_solib_ops and set_gdbarch_has_dos_based_file_system.
910 * configure.tgt (arm*-wince-pe | arm*-*-mingw32ce*): Append
911 windows-tdep.o to gdb_target_obs.
913 2013-10-01 Yao Qi <yao@codesourcery.com>
915 * amd64-windows-tdep.c: Remove inclusion of "solib.h" and
917 (amd64_windows_init_abi): Don't call set_solib_ops and
918 set_gdbarch_iterate_over_objfiles_in_search_order. Call
919 windows_init_abi instead.
920 * i386-cygwin-tdep.c: Remove inclusion of "solib.h" and
922 (i386_cygwin_init_abi): Don't call set_solib_ops,
923 set_gdbarch_has_dos_based_file_system and
924 set_gdbarch_iterate_over_objfiles_in_search_order. Call
925 windows_init_abi instead.
926 * windows-tdep.c: Include "solib.h" and "solib-target.h".
927 (windows_init_abi): New function.
928 (windows_iterate_over_objfiles_in_search_order): Make it
930 * windows-tdep.h (windows_init_abi): Declare.
931 (windows_iterate_over_objfiles_in_search_order): Remove
934 2013-10-01 Jerome Guitton <guitton@adacore.com>
936 Checked in by Joel Brobecker <brobecker@adacore.com>
937 * system-gdbinit/elinos.py (get_elinos_environment): Return an
938 incomplete dictionnary instead of None in case of missing
939 environment variables.
940 (elinos_init): in case of an incomplete environment, best
941 effort to load system libraries instead of abort.
943 2013-10-01 Joel Brobecker <brobecker@adacore.com>
945 * ada-lang.c (ada_has_this_exception_support): Ignore
946 mst_solib_trampoline minimal symbols.
948 2013-09-30 Tristan Gingold <gingold@adacore.com>
950 * i386-darwin-nat.c (darwin_complete_target): Install methods for
952 (i386_darwin_dr_set): Support 32 and 64 bit states.
953 (i386_darwin_dr_get): Likewise.
954 (i386_darwin_dr_set_control): Make static.
955 (i386_darwin_dr_set_addr, i386_darwin_dr_get_addr)
956 (i386_darwin_dr_get_status, i386_darwin_dr_get_control): Likewise.
958 2013-09-30 Luis Machado <lgustavo@codesourcery.com>
960 * aarch64-linux-nat.c: Replace PIDGET with ptid_get_pid.
961 Replace TIDGET with ptid_get_lwp.
962 Replace GET_LWP with ptid_get_lwp.
963 * aix-thread.c (BUILD_THREAD, BUILD_LWP): Remove.
964 Replace BUILD_THREAD with ptid_build.
965 Replace BUILD_LWP with ptid_build.
966 Replace PIDGET with ptid_get_pid.
967 Replace TIDGET with ptid_get_lwp.
968 * alphabsd-nat.c: Replace PIDGET with ptid_get_pid.
969 * amd64-linux-nat.c: Replace PIDGET with ptid_get_pid.
970 Replace TIDGET with ptid_get_lwp.
971 * amd64bsd-nat.c: Replace PIDGET with ptid_get_pid.
972 * arm-linux-nat.c: Replace PIDGET with ptid_get_pid.
973 Replace TIDGET with ptid_get_lwp.
974 Replace GET_LWP with ptid_get_lwp.
975 * armnbsd-nat.c: Replace PIDGET with ptid_get_pid.
977 * breakpoint.c: Likewise.
978 * common/ptid.c (ptid_is_pid): Condense check for
979 null_ptid and minus_one_ptid.
980 (ptid_lwp_p): New function.
981 (ptid_tid_p): New function.
982 * common/ptid.h: Update comments for accessors.
983 (ptid_lwp_p): New prototype.
984 (ptid_tid_p): New prototype.
985 * defs.h (PIDGET, TIDGET, MERGEPID): Do not define.
986 * gcore.c: Replace PIDGET with ptid_get_pid.
987 * gdbthread.h: Likewise.
988 * gnu-nat.c: Likewise.
989 * hppa-linux-nat.c: Replace PIDGET with ptid_get_pid.
990 Replace TIDGET with ptid_get_lwp.
991 * hppabsd-nat.c: Replace PIDGET with ptid_get_pid.
992 * hppanbsd-nat.c: Likewise.
993 * i386-linux-nat.c: Replace PIDGET with ptid_get_pid.
994 Replace TIDGET with ptid_get_lwp.
995 * i386bsd-nat.c: Replace PIDGET with ptid_get_pid.
996 * ia64-linux-nat.c: Replace PIDGET with ptid_get_pid.
997 * infcmd.c: Likewise.
998 * inferior.h: Likewise.
999 * inflow.c: Likewise.
1000 * infrun.c: Likewise.
1001 * linux-fork.c: Likewise.
1002 * linux-nat.c: Replace PIDGET with ptid_get_pid.
1003 Replace GET_PID with ptid_get_pid.
1004 Replace is_lwp with ptid_lwp_p.
1005 Replace GET_LWP with ptid_get_lwp.
1006 Replace BUILD_LWP with ptid_build.
1008 2013-09-28 Mike Frysinger <vapier@gentoo.org>
1010 * common/linux-btrace.c: Move sys/syscall.h out of the
1011 HAVE_LINUX_PERF_EVENT_H check and wrap it in HAVE_SYS_SYSCALL_H.
1012 Also check for SYS_perf_event_open before attempting to buid.
1014 2013-09-27 Doug Evans <dje@google.com>
1016 * dwarf2read.c (dwarf2_section_info): Add comment.
1017 (dwp_file): Split loaded_cutus into loaded_cus, loaded_tus.
1019 (dwarf2_section_empty_p): Rename arg from "info" to "section".
1020 (dwarf2_read_section): Delete unused local "header". Add section
1021 name to error message.
1022 (create_dwo_in_dwp): Tweak comment.
1023 (MAX_NR_DWO_SECTIONS): Combine count of .debug_macro + .debug_macinfo.
1025 * dwarf2read.c (die_reader_specs): Tweak comment.
1026 (get_section_bfd_owner, get_section_bfd_section): New functions.
1027 (get_section_name, get_section_file_name): New functions.
1028 (get_section_id, get_section_flags): New functions.
1029 (*): Use new functions to access section fields.
1031 * dwarf2read.c (struct dwo_file): Add/tweak comments.
1032 (lookup_dwo_unit_in_dwp): Renamed from lookup_dwo_in_dwp. Remove
1033 arg "htab". All callers updated.
1034 (create_debug_types_hash_table): Remove redundant copy of
1036 (create_dwo_in_dwp): Tweak comments.
1037 (read_str_index): Tweak comment. Record dwarf form name in static
1040 2013-09-27 Pedro Alves <palves@redhat.com>
1042 * remote.h (REMOTE_SYSROOT_PREFIX): New define.
1043 (remote_filename_p): Add comment.
1044 * remote.c (remote_filename_p): Adjust to use
1045 REMOTE_SYSROOT_PREFIX.
1046 * solib.c (solib_find): When deciding whether we need to add a
1047 directory separator, check whether the sysroot is "remote:"
1048 instead of checking whether the patch has a drive spec. Add
1051 2013-09-27 Pedro Alves <palves@redhat.com>
1053 * remote.c (struct stop_reply) <solibs_changed, replay_event>:
1055 (remote_parse_stop_reply): Adjust, setting event->ws.kind
1058 2013-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1060 Fix set debug frame output.
1061 * frame.c (fprint_frame_type): Add TAILCALL_FRAME entry. Move
1062 SENTINEL_FRAME entry lower to match enum frame_type order.
1064 2013-09-26 Pierre Muller <muller@sourceware.org>
1066 Replace constant values 8 to 15 by AMD64_R8_REGNUM to
1067 AMD64_R15_REGNUM when a register index is expected.
1068 * amd64-windows-tdep.c (amd64_windows_dummy_call_integer_regs):
1069 Substitute in array.
1070 * amd64-tdep.c (amd64_dwarf_regmap): Ditto.
1071 (amd64_push_arguments): Substitute in integer_regnum array.
1073 2013-09-25 Doug Evans <dje@google.com>
1075 * objfiles.c (allocate_objfile): Move comment to better place.
1077 New option "set debug symfile on".
1078 * NEWS: Mention "set debug symfile".
1079 * Makefile.in (SFILES): Add symfile-debug.c.
1080 (COMMON_OBS): Add symfile-debug.o.
1081 * elfread.c (elf_symfile_read): Use objfile_set_sym_fns to set the
1082 objfile's symbol functions.
1083 * objfiles.h (objfile_set_sym_fns): Declare.
1084 * symfile-debug.c: New file.
1085 * symfile.c (syms_from_objfile_1): Use objfile_set_sym_fns to set the
1086 objfile's symbol functions.
1087 (reread_symbols): Ditto.
1089 * symfile.h (struct sym_fns): Delete member "sym_flavour".
1091 (add_symtab_fns): Update prototype.
1092 * symfile.c (sym_fns_ptr): Delete. Replace with ...
1093 (registered_sym_fns): ... this.
1094 (symtab_fns): Update.
1095 (add_symtab_fns): New arg "flavour". All callers updated.
1096 (find_sym_fns): Rewrite to use new sym_fns registry.
1098 * symfile.h (struct sym_fns): Add "objfile" argument to
1099 sym_read_linetable. All uses updated.
1101 * symtab.c (domain_name, search_domain_name): New functions.
1102 * symtab.h (domain_name, search_domain_name): Declare.
1104 * symfile.h (struct quick_symbol_functions): Reorg arg list of
1105 map_matching_symbols so objfile is first. All uses updated.
1106 * dwarf2read.c (dw2_map_matching_symbols): Update signature.
1107 * psymtab.c (map_matching_symbols_psymtab): Update signature.
1109 2013-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
1112 * solib-svr4.c (svr4_read_so_list): Skip the vDSO when reading
1115 2013-09-24 Doug Evans <dje@google.com>
1117 * objfiles.c (free_objfile): Move comment.
1119 2013-09-24 Joel Brobecker <brobecker@adacore.com>
1121 * ada-exp.y (string_to_operator): Delete.
1122 (dummy_string_to_ada_operator): Delete.
1124 2013-09-24 Joel Brobecker <brobecker@adacore.com>
1127 * i386-tdep.h (enum amd64_reg_class): New, moved here from
1129 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
1130 call_dummy_integer_regs, and classify.
1131 * amd64-tdep.h (amd64_classify): Add declaration.
1132 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
1133 (amd64_reg_class): Delete, moved to i386-tdep.h.
1134 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
1135 Replace call to amd64_classify by call to tdep->classify.
1136 (amd64_push_arguments): Get the list of registers to use for
1137 passing integer parameters from the gdbarch tdep structure,
1138 rather than using a hardcoded one. Replace calls to amd64_classify
1139 by calls to tdep->classify.
1140 (amd64_push_dummy_call): Get the register number used for
1141 the "hidden" argument from tdep->call_dummy_integer_regs.
1142 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
1143 and tdep->call_dummy_integer_regs. Set tdep->classify.
1145 2013-09-24 Joel Brobecker <brobecker@adacore.com>
1148 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
1149 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
1150 where tdep->memory_args_by_pointer is non-zero.
1152 2013-09-24 Joel Brobecker <brobecker@adacore.com>
1155 * i386-tdep.h (struct gdbarch_tdep): Add new field
1156 integer_param_regs_saved_in_caller_frame.
1157 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
1158 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
1160 2013-09-24 Joel Brobecker <brobecker@adacore.com>
1162 * amd64-windows-tdep.c: #include "value.h"
1163 (amd64_windows_classify): Delete.
1164 (amd64_windows_passed_by_integer_register)
1165 (amd64_windows_passed_by_xmm_register)
1166 (amd64_windows_passed_by_pointer)
1167 (amd64_windows_adjust_args_passed_by_pointer)
1168 (amd64_windows_store_arg_in_reg, amd64_windows_push_arguments)
1169 (amd64_windows_push_dummy_call): New functions.
1170 (amd64_windows_init_abi): Remove setting of
1171 tdep->call_dummy_num_integer_regs, tdep->call_dummy_integer_regs,
1172 tdep->classify, tdep->memory_args_by_pointer and
1173 tdep->integer_param_regs_saved_in_caller_frame.
1174 Add call to set_gdbarch_push_dummy_call.
1176 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1178 * dwarf2read.c (open_and_init_dwp_file): Try open_dwp_file also with
1179 objfile->original_name.
1181 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1183 Pass down original filename for objfile.
1184 * coffread.c (coff_symfile_read): Update symbol_file_add_separate call.
1185 * elfread.c (elf_symfile_read): Likewise.
1186 * jit.c (jit_object_close_impl): Update allocate_objfile call, no
1187 longer set ORIGINAL_NAME.
1188 (jit_bfd_try_read_symtab): Update symbol_file_add_from_bfd call.
1189 * jv-lang.c (get_dynamics_objfile): Update allocate_objfile call.
1190 * machoread.c (macho_add_oso_symfile): Add parameter name. Update
1191 symbol_file_add_from_bfd call.
1192 (macho_symfile_read_all_oso): Update two macho_add_oso_symfile calls.
1193 (macho_check_dsym): Add parameter filenamep. Change function comment.
1195 (macho_symfile_read): New variable dsym_filename. Update
1196 macho_check_dsym call. Use it for symbol_file_add_separate.
1197 * objfiles.c (allocate_objfile): Add parameter name. New comment for
1198 it. Use it for objfile->original_name.
1199 (objfile_name): Return OBFD's filename, if available.
1200 * objfiles.h (allocate_objfile): Add new parameter name.
1201 * solib.c (solib_read_symbols): Update symbol_file_add_from_bfd call.
1202 * symfile-mem.c (symbol_file_add_from_memory): Update
1203 symbol_file_add_from_bfd call.
1204 * symfile.c (read_symbols): Update symbol_file_add_separate call, new
1206 (symbol_file_add_with_addrs): New parameter name, add function comment
1207 for it. Remove variable name. Update allocate_objfile call.
1208 (symbol_file_add_separate): New parameter name, add function comment
1209 for it. Update symbol_file_add_with_addrs call.
1210 (symbol_file_add_from_bfd): New parameter name. Update
1211 symbol_file_add_with_addrs call.
1212 (symbol_file_add): Update symbol_file_add_from_bfd call.
1213 (reread_symbols): New variable original_name. Save
1214 objfile->original_name by it.
1215 * symfile.h (symbol_file_add_from_bfd, symbol_file_add_separate): Add
1218 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1220 Code cleanup: Add objfile_name accessor function.
1221 * ada-lang.c (is_known_support_routine): Use objfile_name.
1222 * auto-load.c (source_gdb_script_for_objfile)
1223 (auto_load_objfile_script): Likewise.
1224 * coffread.c (coff_symtab_read, read_one_sym): Likewise.
1225 * dbxread.c (dbx_symfile_read): Likewise.
1226 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
1227 * dwarf2loc.c (locexpr_describe_location_piece): Likewise.
1228 * dwarf2read.c (dwarf2_get_dwz_file, dwarf2_read_index)
1229 (dw2_symtab_iter_next, dw2_expand_symtabs_matching)
1230 (lookup_dwp_signatured_type, lookup_dwo_unit)
1231 (dwarf2_build_psymtabs_hard, scan_partial_symbols, process_queue)
1232 (fixup_go_packaging, process_imported_unit_die, dwarf2_physname)
1233 (read_import_statement, create_dwo_cu, open_and_init_dwp_file)
1234 (lookup_dwo_cutu, read_call_site_scope, dwarf2_ranges_read)
1235 (dwarf2_record_block_ranges, read_common_block, read_typedef)
1236 (read_subrange_type, load_partial_dies, read_partial_die)
1237 (read_addr_index_1, read_str_index, dwarf_decode_lines_1)
1238 (die_containing_type, build_error_marker_type, lookup_die_type)
1239 (follow_die_ref_or_sig, follow_die_ref, dwarf2_fetch_die_loc_sect_off)
1240 (dwarf2_fetch_constant_bytes, follow_die_sig, get_signatured_type)
1241 (get_DW_AT_signature_type, write_psymtabs_to_index)
1242 (save_gdb_index_command): Likewise.
1243 * elfread.c (find_separate_debug_file_by_buildid, elf_symfile_read):
1245 * expprint.c (dump_subexp_body_standard): Likewise.
1246 * gdbtypes.c (type_name_no_tag_or_error): Likewise.
1247 * jit.c (jit_object_close_impl): Use the objfile field name renamed to
1249 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New variable
1250 obj_name, use objfile_name for it, use the variable.
1251 (try_thread_db_load_from_pdir, has_libpthread, thread_db_new_objfile):
1253 * machoread.c (macho_symtab_read, macho_check_dsym)
1254 (macho_symfile_relocate): Likewise.
1255 * maint.c (maintenance_translate_address): Likewise.
1256 * minidebug.c (find_separate_debug_file_in_section): Likewise.
1257 * minsyms.c (install_minimal_symbols): Likewise.
1258 * objfiles.c (allocate_objfile): Use the objfile field name renamed to
1260 (filter_overlapping_sections): Use objfile_name.
1261 (objfile_name): New function.
1262 * objfiles.h (struct objfile): Rename field name to original_name.
1263 (objfile_name): New prototype.
1264 * printcmd.c (sym_info, address_info): Use objfile_name.
1265 * probe.c (parse_probes, collect_probes, compare_probes)
1266 (info_probes_for_ops): Likewise.
1267 * progspace.c (clone_program_space): Likewise.
1268 * psymtab.c (require_partial_symbols, dump_psymtab, allocate_psymtab)
1269 (maintenance_info_psymtabs): Likewise.
1270 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
1271 (source_section_scripts): Likewise.
1272 * python/py-objfile.c (objfpy_get_filename): Likewise.
1273 * python/py-progspace.c (pspy_get_filename): Likewise.
1274 * solib-aix.c (solib_aix_get_toc_value): Likewise.
1275 * solib-som.c (match_main, som_solib_section_offsets): Likewise.
1276 * solib.c (solib_read_symbols): Likewise.
1277 * stabsread.c (scan_file_globals): Likewise.
1278 * stap-probe.c (handle_stap_probe): Likewise.
1279 * symfile.c (symbol_file_clear, separate_debug_file_exists)
1280 (find_separate_debug_file_by_debuglink): Likewise.
1281 (reread_symbols): Likewise. Use the objfile field name renamed to
1283 (allocate_symtab): Use objfile_name.
1284 * symmisc.c (print_symbol_bcache_statistics, print_objfile_statistics)
1285 (dump_objfile, dump_msymbols, dump_symtab_1)
1286 (maintenance_print_msymbols, maintenance_print_objfiles)
1287 (maintenance_info_symtabs, maintenance_check_symtabs): Likewise.
1288 * target.c (target_translate_tls_address, target_info): Likewise.
1289 * xcoffread.c (xcoff_initial_scan): Make variable name const. Use
1292 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1295 * probe.c (parse_probes): Rename variable objfile_name to
1298 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1300 Remove solib-sunos.c.
1301 * Makefile.in (ALLDEPFILES): Remove solib-sunos.c.
1302 * config/m68k/obsd.mh (NATDEPFILES): Remove solib-sunos.o.
1303 * objfiles.c (rt_common_objfile): Remove.
1304 (free_objfile): Remove rt_common_objfile comparison.
1305 * objfiles.h (rt_common_objfile): Remove.
1306 * solib-sunos.c: Remove.
1307 * symfile.c (reread_symbols): Remove solib-sunos.c comment.
1309 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1311 Remove a.out NetBSD and OpenBSD hosts.
1312 * NEWS (Removed native configurations): New.
1313 * config/arm/nbsdaout.mh: Remove.
1314 * config/i386/nbsdaout.mh: Remove.
1315 * config/i386/obsdaout.mh: Remove.
1316 * config/m68k/nbsdaout.mh: Remove.
1317 * config/sparc/nbsdaout.mh: Remove.
1318 * config/vax/nbsdaout.mh: Remove.
1319 * configure.host (arm*-*-netbsd*, i[34567]86-*-netbsd*)
1320 (i[34567]86-*-openbsd[0-2].*, i[34567]86-*-openbsd3.[0-3])
1321 (m68*-*-netbsd*, sparc-*-netbsd*, vax-*-netbsd*): Add them to obsolete
1323 (arm*-*-netbsd*, i[34567]86-*-netbsd*, i[34567]86-*-openbsd[0-2].*)
1324 (i[34567]86-*-openbsd3.[0-3], m68*-*-netbsd*, sparc-*-netbsdaout*)
1325 (sparc-*-netbsd*, vax-*-netbsd*): Remove.
1327 2013-09-23 Tom Tromey <tromey@redhat.com>
1329 * linespec.c (struct minsym_and_objfile): Remove.
1330 (minsym_and_objfile_d): Remove.
1331 (struct linespec, struct collect_info, linespec_parse_basic)
1332 (convert_linespec_to_sals, linespec_parser_delete, decode_objc)
1333 (compare_msymbols, find_method, find_function_symbols)
1334 (find_linespec_symbols, struct collect_minsyms, compare_msyms)
1335 (add_minsym, search_minsyms_for_name): Update.
1337 2013-09-23 Andrew Burgess <aburgess@broadcom.com>
1339 * regcache.c: Add include of valprint.h.
1340 (dump_endian_bytes): Delete.
1341 (regcache_dump): Use print_hex_chars not dump_endian_bytes.
1343 2013-09-23 Andrew Burgess <aburgess@broadcom.com>
1345 * sh64-tdep.c (sh64_do_fp_register): Use print_hex_chars.
1347 2013-09-19 Pedro Alves <palves@redhat.com>
1349 * breakpoint.c (remove_threaded_breakpoints): Skip non-user
1352 2013-09-19 Pedro Alves <palves@redhat.com>
1353 Thomas Schwinge <thomas@codesourcery.com>
1354 Yue Lu <hacklu.newborn@gmail.com>
1356 * gnu-nat.c (gnu_read_inferior, gnu_write_inferior): Make static.
1357 Take a gdb_byte pointer instead of a char pointer.
1359 * gnu-nat.c (gnu_xfer_memory): Adjust interface as
1360 gnu_xfer_partial helper.
1361 (gnu_xfer_partial): New function.
1362 (gnu_target): Don't install a deprecated_xfer_memory hook.
1363 Install a to_xfer_partial hook.
1365 2013-09-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1368 * main.c (captured_main): Replace catch_command_errors by
1369 catch_command_errors_const. Twice.
1370 * symfile.c (symbol_file_add_main_1): Make args parameter const.
1371 (symbol_file_add): Make name parameter const.
1372 (symbol_file_add_main, symbol_file_add_main_1): Make args parameter const.
1373 (symfile_bfd_open): Make name parameter const, rename it to cname. Add
1374 variable name. Change their usage accordingly.
1375 * symfile.h (symbol_file_add, symfile_bfd_open): Make first parameter
1377 (symbol_file_add_main): Make args parameter const.
1379 2013-09-18 Raunaq Bathija <raunaq12@in.ibm.com>
1380 Ulrich Weigand <uweigand@de.ibm.com>
1382 * xcoffread.c (struct coff_symbol): Use CORE_ADDR as type
1384 (read_xcoff_symtab): Use CORE_ADDR as type of fcn_start_addr.
1386 2013-09-18 Pedro Alves <palves@redhat.com>
1387 Yue Lu <hacklu.newborn@gmail.com>
1389 * gnu-nat.c (inf_validate_procs, gnu_wait, gnu_resume)
1390 (gnu_create_inferior)
1391 (gnu_attach, gnu_thread_alive, gnu_pid_to_str, cur_thread)
1392 (set_sig_thread_cmd): Use the lwpid field of ptids to
1393 store/extract thread ids instead of the tid field.
1394 * i386gnu-nat.c (gnu_fetch_registers): Adjust.
1396 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
1398 * infcmd.c (default_print_one_register_info): Add detection of
1399 optimized out values.
1400 (default_print_registers_info): Switch to using
1401 get_frame_register_value.
1403 2013-09-18 Markus Metzger <markus.t.metzger@intel.com>
1405 * infrun.c (handle_inferior_event): Check if we know the
1406 function start address before setting a resume breakpoint.
1408 2013-09-18 Pedro Alves <palves@redhat.com>
1410 * gnu-nat.c (set_sig_thread_cmd): Compare the thread's ptid to
1411 minus_one_ptid instead of looking at the ptid's tid field and
1412 comparing that to -1.
1414 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
1416 * main.h (get_gdb_program_name): Remove extra whitespace.
1418 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
1420 * main.h (get_gdb_program_name): Add declaration.
1421 * main.c (get_gdb_program_name): Add definition.
1423 2013-09-17 Doug Evans <dje@google.com>
1425 * dwarf2read.c: Move definitions of complaint functions to after
1426 forward declarations of local functions.
1428 2013-09-17 Muhammad Waqas <mwaqas@codesourcery.com>
1429 Pedro Alves <palves@redhat.com>
1432 * breakpoint.c (remove_threaded_breakpoints): New function.
1433 (_initialize_breakpoint): Attach remove_threaded_breakpoints
1434 as thread_exit observer.
1436 2013-09-17 Pedro Alves <palves@redhat.com>
1439 * ada-tasks.c (task_command_1): Adjust call to print_stack_frame.
1440 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
1441 * corelow.c (core_open):
1442 * frame.h (print_stack_frame, print_frame_info): New
1443 'set_current_sal' parameter.
1444 * infcmd.c (finish_command, kill_command): Adjust call to
1446 * inferior.c (inferior_command): Likewise.
1447 * infrun.c (normal_stop): Likewise.
1448 * linux-fork.c (linux_fork_context): Likewise.
1449 * record-full.c (record_full_goto_entry, record_full_restore):
1451 * remote-mips.c (common_open): Likewise.
1452 * stack.c (print_stack_frame): New 'set_current_sal' parameter.
1454 (print_frame_info): New 'set_current_sal' parameter. Set the last
1455 displayed sal depending on the new paremeter instead of looking at
1457 (backtrace_command_1, select_and_print_frame, frame_command)
1458 (current_frame_command, up_command, down_command): Adjust call to
1460 * thread.c (print_thread_info, restore_selected_frame)
1461 (do_captured_thread_select): Adjust call to print_stack_frame.
1462 * tracepoint.c (tfind_1): Likewise.
1463 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
1464 (mi_cmd_stack_info_frame): Likewise.
1465 * mi/mi-interp.c (mi_on_normal_stop): Likewise.
1466 * mi/mi-main.c (mi_cmd_exec_return, mi_cmd_trace_find): Likewise.
1468 2013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1470 * value.c (isvoid_internal_fn): Replace "parameter" with
1473 2013-09-16 Stan Shebs <stan@codesourcery.com>
1475 * README: Update references to writing code for GDB.
1476 * configure.ac (build_warnings): Remove obsolete comment.
1477 * configure: Regenerate.
1478 * gdbarch.sh: Remove references to gdbint.texinfo.
1479 * gdbarch.h: Regenerate.
1480 * gdbtypes.c (objfile_type): Remove comments referencing internals
1483 2013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1485 * NEWS: Mention new convenience function $_isvoid.
1486 * value.c (isvoid_internal_fn): New function.
1487 (_initialize_values): Add new convenience function $_isvoid.
1489 2013-09-16 Pierre Muller <muller@sourceware.org>
1491 * arm-linux-tdep.c: Add "elf/common.h" header.
1492 Remove AT_HWCAP macro definintion as it is provided in
1494 * s390-tdep.c: Remove system header <elf.h>
1495 Add "elf/common.h" header for AT_HWCAP definition.
1496 (s390_core_read_description): Use correct CORE_ADDR
1497 for hwcap local variable used as third parameter
1498 of function target_auxv_search.
1500 2013-09-14 Pierre Muller <muller@sourceware.org>
1501 Tom Tromey <tromey@redhat.com>
1502 Pedro Alves <palves@redhat.com>
1504 * common/filestuff.c (gdb_fopen_cloexec): Do not try to use "e"
1505 mode if operating system doesn't know O_CLOEXEC.
1507 2013-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1510 * symfile.c (reread_symbols): Move variable obfd_filename to a more
1513 2013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
1515 * NEWS: Mention TDB support.
1516 * features/s390-tdb.xml: New file.
1517 * features/s390-te-linux64.xml: New file.
1518 * features/s390x-te-linux64.xml: New file.
1519 * features/Makefile (WHICH): Add new tdescs above.
1520 (s390-te-linux64-expedite): Set.
1521 (s390x-te-linux64-expedite): Set.
1522 * features/s390-te-linux64.c: New file (generated).
1523 * features/s390x-te-linux64.c: New file (generated).
1524 * regformats/s390-te-linux64.dat: New file (generated).
1525 * regformats/s390x-te-linux64.dat: New file (generated).
1526 * s390-tdep.h (HWCAP_S390_HIGH_GPRS): Define.
1527 (HWCAP_S390_TE): Likewise.
1528 (S390_TDB_DWORD0_REGNUM): Likewise.
1529 (S390_TDB_DWORD0_REGNUM): Likewise.
1530 (S390_TDB_ABORT_CODE_REGNUM): Likewise.
1531 (S390_TDB_CONFLICT_TOKEN_REGNUM): Likewise.
1532 (S390_TDB_ATIA_REGNUM): Likewise.
1533 (S390_TDB_R0_REGNUM): Likewise.
1534 (S390_TDB_R1_REGNUM): Likewise.
1535 (S390_TDB_R2_REGNUM): Likewise.
1536 (S390_TDB_R3_REGNUM): Likewise.
1537 (S390_TDB_R4_REGNUM): Likewise.
1538 (S390_TDB_R5_REGNUM): Likewise.
1539 (S390_TDB_R6_REGNUM): Likewise.
1540 (S390_TDB_R7_REGNUM): Likewise.
1541 (S390_TDB_R8_REGNUM): Likewise.
1542 (S390_TDB_R9_REGNUM): Likewise.
1543 (S390_TDB_R10_REGNUM): Likewise.
1544 (S390_TDB_R11_REGNUM): Likewise.
1545 (S390_TDB_R12_REGNUM): Likewise.
1546 (S390_TDB_R13_REGNUM): Likewise.
1547 (S390_TDB_R14_REGNUM): Likewise.
1548 (S390_TDB_R15_REGNUM): Likewise.
1549 (S390_NUM_REGS): Increase.
1550 (S390_IS_TDBREGSET_REGNUM): New macro.
1551 (s390_regmap_tdb): Declare.
1552 (s390_sizeof_tdbregset): Define.
1553 (tdesc_s390_te_linux64): Declare.
1554 (tdesc_s390x_te_linux64): Likewise.
1555 * s390-tdep.c: Add includes for "auxv.h", <elf.h>,
1556 "features/s390-te-linux64.c", and "features/s390x-te-linux64.c".
1557 (s390_regmap_tdb): New regmap.
1558 (s390_supply_tdb_regset): New function.
1559 (s390_tdb_regset): New regset.
1560 (s390_linux64v2_regset_sections): Add TDB regset to list.
1561 (s390x_linux64v2_regset_sections): Likewise.
1562 (s390_regset_from_core_section): Recognize TDB core note section.
1563 (s390_core_read_description): If HWCAP indicates TE support,
1564 select tdesc_s390_te_linux64 or tdesc_s390_s390x_te_linux64.
1565 (s390_gdbarch_init): Handle TDB regset.
1566 (_initialize_s390_tdep): Initialize new tdescs.
1567 * s390-nat.c (HWCAP_S390_HIGH_GPRS): Remove define.
1568 (have_regset_tdb): New variable.
1569 (s390_native_supply): Support register invalidation.
1570 (fetch_regset): Invalidate registers if ptrace yields ENODATA.
1571 (check_regset): Treat ENODATA as "regset exists".
1572 (s390_linux_fetch_inferior_registers): Add TDB.
1573 (s390_read_description): Check for TDB existence and select
1575 * gdbserver/Makefile.in (clean): Add removal of new makefile
1577 (s390-te-linux64.c): New makefile target.
1578 (s390x-te-linux64.c): Likewise.
1579 * gdbserver/configure.srv (srv_regobj): Append new objects
1580 s390-te-linux64.o and s390x-te-linux64.o.
1581 (srv_xmlfiles): Append new files s390-te-linux64.xml,
1582 s390x-te-linux64.xml, and s390-tdb.xml.
1583 * gdbserver/linux-s390-low.c (init_registers_s390_te_linux64): New
1585 (tdesc_s390_te_linux64): Likewise.
1586 (init_registers_s390x_te_linux64): Likewise.
1587 (tdesc_s390x_te_linux64): Likewise.
1588 (s390_check_regset): Treat ENODATA as "regset exists".
1589 (s390_arch_setup): Add TDB regset support.
1590 (initialize_low_arch): Initialize registers for new tdescs.
1592 2013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
1594 * s390-tdep.h (S390_IS_GREGSET_REGNUM): New macro.
1595 (S390_IS_FPREGSET_REGNUM): New macro.
1596 * s390-tdep.c (s390_dwarf_regmap): Make const.
1597 (regnum_is_gpr_full): New function for replacing repeated code.
1598 (s390_pseudo_register_name): Use it.
1599 (s390_pseudo_register_type): Likewise.
1600 (s390_pseudo_register_read): Likewise.
1601 (s390_pseudo_register_write): Likewise.
1602 (s390_unwind_pseudo_register): Likewise.
1603 (s390_regmap_gregset): New format for regmap.
1604 (s390x_regmap_gregset): Likewise.
1605 (s390_regmap_fpregset): Likewise.
1606 (s390_regmap_upper): Likewise.
1607 (s390_regmap_last_break): Likewise.
1608 (s390_regmap_system_call): Likewise.
1609 (s390_supply_regset): Adjust to new regmap format.
1610 (s390_collect_regset): Likewise.
1611 * s390-nat.c (s390_native_supply): Adjust to new regmap format.
1612 (s390_native_collect): Likewise.
1613 (supply_gregset): Likewise.
1614 (fill_gregset): Likewise.
1615 (supply_fpregset): Likewise.
1616 (fill_fpregset): Likewise.
1617 (fetch_regset): Likewise.
1618 (store_regset): Likewise.
1619 (s390_linux_fetch_inferior_registers): Likewise.
1620 (s390_linux_fetch_inferior_registers): Likewise.
1622 2013-09-12 Andrew Pinski <apinski@cavium.com>
1624 * aarch64-linux-nat.c (aarch64_linux_set_debug_regs): Zero out regs.
1626 2013-09-10 Andreas Arnez <arnez@linux.vnet.ibm.com>
1628 * config/s390/s390.mh (NATDEPFILES): Add linux-waitpid.o.
1630 2013-09-09 Andrew Burgess <aburgess@broadcom.com>
1632 * top.c (quit_confirm): Remove use of deprecated_init_ui_hook.
1634 2013-09-06 Pedro Alves <palves@redhat.com>
1636 * remote-sim.c (dump_mem, gdbsim_fetch_register)
1637 (gdbsim_store_register, gdbsim_kill, gdbsim_load)
1638 (gdbsim_create_inferior, gdbsim_open, gdbsim_close)
1639 (gdbsim_detach, gdbsim_resume_inferior, gdbsim_wait)
1640 (gdbsim_files_info, gdbsim_mourn_inferior): Send debug output to
1643 2013-09-06 Pedro Alves <palves@redhat.com>
1645 * remote-sim.c (dump_mem): Constify buf parameter.
1646 gdbsim_xfer_inferior_memory): Rename to ...
1647 (gdbsim_xfer_memory): ... this. Adjust interface as
1648 target_xfer_partial helper.
1649 (gdbsim_xfer_partial): New function.
1650 (init_gdbsim_ops): Don't install a deprecated_xfer_memory hook.
1651 Install a to_xfer_partial hook. Send output to gdb_stdlog.
1653 2013-09-06 Pedro Alves <palves@redhat.com>
1655 * remote-sim.c (gdbsim_xfer_inferior_memory): Use
1656 host_address_to_string, and send debug output to gdb_stdlog.
1658 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
1660 * Makefile.in (ALL_TARGET_OBS): Add cris-linux-tdep.o.
1661 * configure.tgt: Add cris-linux-tdep.o and linux-tdep.o to
1662 gdb_target_obs for cris target.
1663 * cris-tdep.c (struct gdbarch_tdep): Move to cris-tdep.h.
1664 (cris_gdbarch_init): Move calls to
1665 set_gdbarch_fetch_tls_load_module_address and
1666 set_solib_svr4_fetch_link_map_offsets to cris-linux-tdep.c.
1667 Add call to gdbarch_init_osabi.
1668 * cris-linux-tdep.c: New file.
1669 * cris-tdep.h: New file.
1671 2013-09-06 Andrew Burgess <aburgess@broadcom.com>
1673 * tui/tui-io.c (tui_initialize_io): Remove legacy comment referring
1674 to deprecated_init_ui_hook.
1676 2013-09-06 Andrew Burgess <aburgess@broadcom.com>
1678 * cli/cli-interp.c (_initialize_cli_interp): Add a
1679 command_loop_proc to interp_procs.
1680 * event-top.c (cli_command_loop): Change signature to match
1681 interp_command_loop_ftype.
1682 * event-top.h (cli_command_loop): Same.
1683 * interps.c (interp_new): Require every interpreter to have a
1685 (current_interp_command_loop): Just call the command_loop_proc on
1686 the current interpreter.
1687 * tui/tui-interp.c (_initialize_tui_interp): Add a
1688 command_loop_proc to interp_procs.
1690 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
1692 * cris-tdep.c (cris_gdbarch_init): Add call to
1693 get_gdbarch_fetch_tls_load_module_address.
1695 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
1697 * cris-tdep.c (cris_elf_greg_t): Rename from elf_greg_t.
1698 (cris_elf_gregset_t): Rename from elf_gregset_t.
1699 (crisv32_elf_gregset_t): Adjust.
1700 (cris_supply_gregset, fetch_core_registers): Adjust.
1702 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
1704 * cris-tdep.c (elf_greg_t): Change typedef to unsigned char[4]
1706 2013-09-05 Andrew Burgess <aburgess@broadcom.com>
1708 * defs.h (deprecated_command_loop_hook): Remove, including
1709 references in comments.
1710 * interps.c (current_interp_command_loop): No longer use
1711 deprecated_command_loop_hook.
1712 (clear_interpreter_hooks): Remove deprecated_command_loop_hook
1714 * top.c (deprecated_command_loop_hook): Remove.
1716 2013-09-05 Pedro Alves <palves@redhat.com>
1718 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): 'dwarf_regnum'
1719 local is now int instead of ULONGEST. Print it with %d
1720 instead of paddress.
1722 2013-09-05 Tristan Gingold <gingold@adacore.com>
1724 * MAINTAINERS: Remove avr maintainership.
1726 2013-09-05 Pedro Alves <palves@redhat.com>
1728 * findvar.c (value_of_register): Rework in terms of
1729 value_of_register_lazy.
1731 2013-09-05 Muhammad Bilal <mbilal@codesourcery.com>
1733 * symfile.c (add_symbol_file_command): Remove trailing
1734 whitespaces and blank line after comment.
1736 2013-09-05 Pedro Alves <palves@redhat.com>
1738 * tui/tui-regs.c (tui_register_format): Don't look at the
1739 register's name here. Return string representing register
1740 value instead of storing it in the data element.
1741 (tui_get_register): Compare register string representations
1742 instead of register value states and contents.
1744 2013-09-05 Pedro Alves <palves@redhat.com>
1747 * tui/tui-regs.c (tui_show_registers): Show registers of the
1748 selected frame, not the current frame.
1750 2013-09-05 Ricard Wanderlof <ricardw@axis.com>
1752 * MAINTAINERS (Write After Approval): Add myself to the list.
1754 2013-09-04 Doug Evans <dje@google.com>
1756 * dwarf2read.c (queue_and_load_all_dwo_tus): New function.
1757 (queue_and_load_dwo_tu): New function.
1758 (lookup_dwo_signatured_type): Set per_cu.tu_read.
1759 (maybe_queue_comp_unit): Rename this_cu argument to dependent_cu.
1760 Make dependent_cu optional.
1761 (dw2_do_instantiate_symtab): If we just loaded a CU from a DWO,
1762 and an older .gdb_index is in use, queue and load all its TUs too.
1764 2013-09-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1766 Code cleanup: Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH.
1767 * cli/cli-cmds.c (find_and_open_script): Add OPF_RETURN_REALPATH to
1768 variable search_flags.
1769 * defs.h (OPF_DISABLE_REALPATH): Rename to ...
1770 (OPF_RETURN_REALPATH): ... here.
1771 * dwarf2read.c (try_open_dwop_file): Set OPF_RETURN_REALPATH for flags.
1772 * exec.c (exec_file_attach): Remove OPF_DISABLE_REALPATH from openp
1774 * nto-tdep.c (nto_find_and_open_solib): Add OPF_RETURN_REALPATH for
1776 * solib.c (solib_find): Likewise. Four times.
1777 * source.c (openp): Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH
1778 in the function comment and for the realpath_fptr variable.
1779 (source_full_path_of): Add OPF_RETURN_REALPATH for openp call.
1780 (find_and_open_source): Likewise. Twice.
1781 * symfile.c (symfile_bfd_open): Likewise, also twice.
1783 2013-09-04 Doug Evans <dje@google.com>
1785 * progspace.c (save_current_space_and_thread): Remove unnecessary
1786 call to save_current_inferior.
1788 2013-09-04 Andrew Burgess <aburgess@broadcom.com>
1790 * sh64-tdep.c (sh64_do_register): Return after printing message
1791 about unavailable register contents.
1793 2013-09-04 Muhammad Bilal <mbilal@codesourcery.com>
1794 Pedro Alves <palves@redhat.com>
1796 * symfile.c (add_symbol_file_command): Error out on unknown
1797 option. Handle EXPECTING_SEC_ADDR/EXPECTING_SEC_NAME before '-'
1798 options and collapse into single conditional branch.
1800 2013-09-03 Luis Machado <lgustavo@codesourcery.com>
1802 * inf-child.c (inf_child_follow_fork): New parameter
1804 * inf-ptrace.c (inf_ptrace_follow_fork): Likewise.
1805 * inf-ttrace.c (inf_ttrace_follow_fork): Likewise.
1806 * inferior.h (detach_fork): Remove.
1807 * infrun.c (detach_fork): Adjust comment and make it
1809 (follow_fork): Pass detach_fork parameter to
1811 * linux-nat.c (linux_child_follow_fork): New parameter
1813 * target.c (target_follow_fork): New parameter detach_fork.
1814 Pass detach_fork as parameter and print its value.
1815 * target.h (struct target_ops) <to_follow_fork>: New int
1817 (target_follow_fork): New parameter detach_fork.
1819 2013-09-03 Joel Brobecker <brobecker@adacore.com>
1821 * solib-ia64-hpux.c (ia64_hpux_relocate_section_addresses):
1822 Replace sec->bfd by sec->the_bfd_section->owner.
1824 2013-09-03 Yao Qi <yao@codesourcery.com>
1826 * linux-tdep.c (linux_is_uclinux): New function. Code moved
1827 from linux_has_shared_address_space.
1828 (linux_has_shared_address_space): Call linux_is_uclinux.
1829 * linux-tdep.h (linux_is_uclinux): Declare.
1830 * m68klinux-tdep.c (m68k_linux_get_sigtramp_info): Call
1833 2013-09-03 Yao Qi <yao@codesourcery.com>
1835 * config/djgpp/fnchange.lst: Remove entry of
1836 i386-interix-nat.c and i386-interix-tdep.c.
1837 * configure.ac: Remove '*-*-interix*'.
1838 * configure: Re-generated.
1839 * defs.h (enum gdb_osabi): Remove GDB_OSABI_INTERIX.
1840 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Remove
1842 * osabi.c (gdb_osabi_names): Remove "Interix".
1844 2013-09-03 Yao Qi <yao@codesourcery.com>
1846 * arch-utils.c: Fix typo in the comment to gdbarch_update_p.
1848 2013-09-02 Markus Metzger <markus.t.metzger@intel.com>
1850 * record.h (record_print_flag) <record_print_src_line,
1851 record_print_insn_range>: Rename into ...
1852 (record_print_flag) <record_print_src_line,
1853 record_print_insn_range>: ... this. Update all users.
1855 2013-09-02 Pierre Muller <muller@sourceware.org>
1857 * windows-nat.c (windows_xfer_memory): Handle ERROR_PARTIAL_COPY
1860 2013-09-02 Pierre Muller <muller@sourceware.org>
1862 * windows-nat.c (windows_xfer_memory): Fix compilation failure
1863 by use of plongest function.
1865 2013-09-02 Tristan Gingold <gingold@adacore.com>
1867 * NEWS: Add entry mentioning support for native Windows x64
1870 * amd64-windows-tdep.c: #include "objfiles.h", "frame-unwind.h",
1871 "coff/internal.h", "coff/i386.h", "coff/pe.h" and "libcoff.h".
1872 (struct amd64_windows_frame_cache): New struct.
1873 (amd64_windows_w2gdb_regnum): New global.
1874 (pc_in_range, amd64_windows_frame_decode_epilogue)
1875 (amd64_windows_frame_decode_insns, amd64_windows_find_unwind_info)
1876 (amd64_windows_frame_cache, amd64_windows_frame_prev_register)
1877 (amd64_windows_frame_this_id): New functions.
1878 (amd64_windows_frame_unwind): New static global.
1879 (amd64_windows_skip_prologue): New function.
1880 (amd64_windows_init_abi): Call frame_unwind_prepend_unwinder
1881 with amd64_windows_frame_unwind. Call set_gdbarch_skip_prologue
1882 with amd64_windows_skip_prologue.
1884 2013-08-30 Joel Brobecker <brobecker@adacore.com>
1888 2013-08-30 Pedro Alves <palves@redhat.com>
1890 * mi/mi-main.c (mi_cmd_trace_find): Use LOC_AND_ADDRESS instead of
1893 2013-08-30 Pedro Alves <palves@redhat.com>
1895 * thread.c (restore_selected_frame): Use SRC_AND_LOC, and change
1898 2013-08-30 Pedro Alves <palves@redhat.com>
1900 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
1901 Adjust arguments to print_stack_frame.
1903 2013-08-30 Pedro Alves <palves@redhat.com>
1905 * ada-tasks.c (task_command_1): Write SRC_AND_LOC instead '1'.
1907 2013-08-30 Pedro Alves <palves@redhat.com>
1909 * frame.h (show_and_print_stack_frame): Delete declaration.
1911 2013-08-30 Phil Muldoon <pmuldoon@redhat.com>
1915 * python/py-arch.c (ARCHPY_REQUIRE_VALID): New macro.
1916 (archpy_name): Check for valid architecture.
1917 (archpy_disassemble): Ditto.
1919 2013-08-29 Joel Brobecker <brobecker@adacore.com>
1921 * rs6000-nat.c (rs6000_ptrace32): Cast "addr" to "uintptr_t"
1922 instead of "long long" in call to ptrace64.
1924 2013-08-29 Andrew Burgess <aburgess@broadcom.com>
1926 * mi/mi-interp.c (mi_command_loop): Change signature to match
1927 interp_command_loop_ftype.
1928 (mi1_command_loop): Remove.
1929 (mi2_command_loop): Remove.
1930 (mi3_command_loop): Remove.
1931 (mi_interpreter_resume): Remove setting of
1932 deprecated_command_loop_hook.
1933 (_initialize_mi_interp): Set mi_command_loop as the command loop
1936 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
1938 * valops.c (do_search_struct_field): Pass v2 instead of base_type to
1941 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
1943 * value.c (allocate_value_contents): Make static.
1944 * value.h (allocate_value_contents): Remove prototype.
1946 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
1948 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use value_at_lazy instead
1949 of assembling value via allocate_value_lazy and attribute setter.
1950 * findvar.c (default_read_var_value): Use value_at_lazy instead of
1951 assembling value via allocate_value_lazy and attribute setter.
1952 * valops.c (do_search_struct_field): Use value_at_lazy instead of
1953 assembling value via allocate_value_lazy and attribute setter.
1955 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
1957 * value.c (value_from_contents_and_address): Replace allocate_value and
1958 memcpy with value_from_contents.
1960 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
1962 * python/py-framefilter.c (py_print_frame): Remove usage of
1963 PyString_AsString. Use python_string_to_host_string instead.
1964 Refactor function to work with a string as a new allocation
1965 instead of a pointer.
1966 (py_print_frame): Ditto.
1967 * python/lib/gdb/frames.py (return_list): Cain iterators together
1968 instead of adding them as a list.
1969 (_sort_list): Call return_list, and remove duplicate code.
1970 (execute_frame_filters): Convert iterator to a list with list().
1971 * python/lib/gdb/command/frame_filters.py
1972 (SetFrameFilterPriority._set_filter_priority): Convert priority
1973 attribute to an integer.
1974 * python/lib/gdb/FrameIterator.py (FrameIterator.next): Define
1975 wrapper function __next__.
1976 * python/lib/gdb/FrameDecorator.py: If basestring not defined,
1979 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
1982 * python/py-framefilter.c (apply_frame_filter): Check
1983 gdb_python_initialized. Exit if the Python frame-filter code
1984 cannot be initialized.
1986 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
1989 * top.c (print_gdb_version): Remove erroneous newline after help
1992 2013-08-29 Yao Qi <yao@codesourcery.com>
1994 * varobj.c (install_dynamic_child): Remove trailing space.
1995 Add one blank line after variable declaration.
1997 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2000 * corefile.c (get_exec_file): Use exec_filename.
2001 * defs.h (OPF_DISABLE_REALPATH): New definition. Add new comment.
2002 * exec.c (exec_close): Free EXEC_FILENAME.
2003 (exec_file_attach): New variable canonical_pathname. Use
2004 OPF_DISABLE_REALPATH. Call gdb_realpath explicitly. Set
2006 * exec.h (exec_filename): New.
2007 * inferior.c (print_inferior, inferior_command): Use
2008 PSPACE_EXEC_FILENAME.
2009 * mi/mi-main.c (print_one_inferior): Likewise.
2010 * progspace.c (clone_program_space, print_program_space): Likewise.
2011 * progspace.h (struct program_space): New field pspace_exec_filename.
2012 * source.c (openp): Describe OPF_DISABLE_REALPATH. New variable
2013 realpath_fptr, initialize it from OPF_DISABLE_REALPATH, use it.
2015 2013-08-28 Will Newton <will.newton@linaro.org>
2017 * common/linux-ptrace.c: Include stdint.h unconditionally.
2019 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2022 * nto-tdep.c (nto_find_and_open_solib): Use OPF_TRY_CWD_FIRST.
2024 2013-08-28 Yao Qi <yao@codesourcery.com>
2025 Pedro Alves <palves@redhat.com>
2027 * event-top.c (gdb_setup_readline): Call stderr_fileopen
2028 instead of stdio_fileopen.
2029 * main.c (captured_main) [__MINGW32__]: Set stderr unbuffered.
2030 .Call stderr_fileopen instead of stdio_fileopen.
2031 * ui-file.c [__MINGW32__] (stderr_file_write): New function.
2032 [__MINGW32__] (stderr_file_fputs): New function.
2033 (stderr_fileopen): New function.
2034 * ui-file.h (stderr_fileopen): Declare.
2036 2013-08-27 Doug Evans <dje@google.com>
2038 * dwarf2read.c (struct dwarf2_cu): Tweak comment.
2039 (struct dwarf2_per_cu_data): Ditto.
2040 (maybe_queue_comp_unit): Delete forward decl. Add comment.
2041 (process_imported_unit_die): Ditto.
2042 (follow_die_sig_1): Simplify assert.
2044 2013-08-27 Pedro Alves <palves@redhat.com>
2046 * windows-nat.c (windows_xfer_memory): Adjust prototype to follow
2047 xfer_partial's interface. Return TARGET_XFER_E_IO on error.
2048 (windows_xfer_partial): Defer TARGET_OBJECT_MEMORY handling to
2049 windows_xfer_memory directly.
2050 (init_windows_ops): Don't install a deprecated_xfer_memory method.
2052 2013-08-27 Pedro Alves <palves@redhat.com>
2054 * darwin-nat.c (darwin_xfer_memory): Delete.
2055 (_initialize_darwin_inferior): Don't install a
2056 deprecated_xfer_memory method.
2058 2013-08-27 Pedro Alves <pedro@codesourcery.com>
2059 Yao Qi <yao@codesourcery.com>
2061 * mi/mi-cmd-stack.c (list_args_or_locals): Adjust prototype.
2062 (parse_no_frames_option): Remove.
2063 (mi_cmd_stack_list_locals): Handle --skip-unavailable.
2064 (mi_cmd_stack_list_args): Adjust.
2065 (mi_cmd_stack_list_variables): Handle --skip-unavailable.
2066 (list_arg_or_local): Add new parameter 'skip_unavailable'. Return
2067 early if SKIP_UNAVAILABLE is true and ARG->val is unavailable.
2069 (list_args_or_locals): New parameter 'skip_unavailable'.
2071 * valprint.c (scalar_type_p): Rename to ...
2072 (val_print_scalar_type_p): ... this. Make extern.
2073 (val_print, value_check_printable): Adjust.
2074 * valprint.h (val_print_scalar_type_p): Declare.
2075 * value.c (value_entirely_unavailable): New function.
2076 * value.h (value_entirely_unavailable): Declare.
2078 * NEWS: Mention the new option "--skip-unavailable" to MI
2079 commands '-stack-list-locals', '-stack-list-arguments' and
2080 '-stack-list-variables'.
2082 2013-08-27 Yao Qi <yao@codesourcery.com>
2084 * mi/mi-cmd-stack.c (parse_no_frames_option): Remove.
2085 (mi_cmd_stack_list_args): Use mi_getopt_silent to handle
2087 * mi/mi-getopt.c (mi_getopt): Remove.
2088 (mi_getopt_1): Renamed from mi_getopt. Add one parameter
2090 (mi_getopt): Call mi_getopt_1.
2091 (mi_getopt_silent): New.
2092 * mi/mi-getopt.h (mi_getopt_silent): Declare.
2094 2013-08-26 Doug Evans <dje@google.com>
2097 * dwarf2read.c (dw2_dump): Print some minimal information indicating
2098 .gdb_index is in use.
2099 * symfile.c (reread_symbols): Reset objfile->sf.
2101 * NEWS: Document "mt print objfiles" now takes optional regexp.
2102 * symmisc.c (maintenance_print_objfiles): Argument is now an optional
2103 regexp of objfiles to print.
2104 (_initialize_symmisc): Update doc string for "mt print objfiles".
2106 * dwarf2read.c (write_psymtabs_to_index): Move error checks ahead of
2107 missing debug info checks.
2109 2013-08-26 Raunaq Bathija <raunaq12@in.ibm.com>
2110 Ulrich Weigand <uweigand@de.ibm.com>
2112 * xcoffread.c (arrange_linetable): Add fix to correctly handle
2113 line tables generated by XLC compiled binaries.
2115 2013-08-23 Doug Evans <dje@google.com>
2117 * symmisc.c (dump_symtab): Delete prototype.
2118 (dump_msymbols, dump_objfile): Ditto.
2119 (maintenance_info_symtabs): Mark as dont_repeat.
2120 (_initialize_symmisc): Improve doc string for "mt info symtabs".
2122 * elfread.c (elf_symfile_read): Move "Done reading minimal symbols"
2123 debugging printf to better location.
2125 2013-08-23 Pedro Alves <palves@redhat.com>
2127 * target.c (target_read_live_memory): Change type of 'ret' local
2130 2013-08-23 Pedro Alves <palves@redhat.com>
2132 * remote.c (remote_write_bytes_aux, remote_write_bytes)
2133 (remote_read_bytes): Change return type to LONGEST, and adjust to
2134 return a target_xfer_error on error.
2135 (remote_xfer_memory): Delete.
2136 (remote_flash_write): Change type of 'ret' local to LONGEST.
2137 (remote_xfer_partial, remote_xfer_partial): Adjust.
2138 (init_remote_ops): Don't install a deprecated_xfer_memory hook.
2140 2013-08-23 Pierre Muller <muller@sourceware.org>
2142 ARI fix: Push # directives to start of line.
2143 * rs6000-nat.c (rs6000_ptrace32, rs6000_ptrace64): Rule applied.
2145 2013-08-12 Muhammad Waqas <mwaqas@codesourcery.com>
2148 * breakpoint.c (enable_command, disable_command): Iterate over
2149 all specified breakpoint locations.
2151 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
2153 * common/linux-ptrace.c (linux_fork_to_function): Push #
2154 directives to the start of the line.
2155 (linux_check_ptrace_features): Fix warning message to use
2158 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
2160 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-nat.h and
2161 nat/linux-waitpid.h.
2162 (linux-waitpid.o): New object file rule.
2163 * common/linux-ptrace.c: Include nat/linux-waitpid.h.
2164 (current_ptrace_options): Moved from linux-nat.c.
2165 (linux_ptrace_test_ret_to_nx): Use type casts for ptrace
2167 (linux_fork_to_function): New function.
2168 (linux_grandchild_function): Likewise.
2169 (linux_child_function): Likewise.
2170 (linux_check_ptrace_features): New function, heavily
2171 based on linux-nat.c:linux_test_for_tracefork.
2172 (linux_enable_event_reporting): New function.
2173 (ptrace_supports_feature): Likewise.
2174 (linux_supports_tracefork): Likewise.
2175 (linux_supports_traceclone): Likewise.
2176 (linux_supports_tracevforkdone): Likewise.
2177 (linux_supports_tracesysgood): Likewise.
2178 * common/linux-ptrace.h (HAS_NOMMU): Moved from
2179 gdbserver/linux-low.c.
2180 (linux_enable_event_reporting): New declaration.
2181 (linux_supports_tracefork): Likewise.
2182 (linux_supports_traceclone): Likewise.
2183 (linux_supports_tracevforkdone): Likewise.
2184 (linux_supports_tracesysgood): Likewise.
2185 * config.in (PTRACE_TYPE_ARG4): Regenerate.
2186 * config/aarch64/linux.mh (NATDEPFILES): Add linux-waitpid.o.
2187 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
2188 * config/arm/linux.mh (NATDEPFILES): Likewise.
2189 * config/i386/linux.mh (NATDEPFILES): Likewise.
2190 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2191 * config/ia64/linux.mh (NATDEPFILES): Likewise.
2192 * config/m32r/linux.mh (NATDEPFILES): Likewise.
2193 * config/m68k/linux.mh (NATDEPFILES): Likewise.
2194 * config/mips/linux.mh (NATDEPFILES): Likewise.
2195 * config/pa/linux.mh (NATDEPFILES): Likewise..
2196 * config/powerpc/linux.mh (NATDEPFILES): Likewise..
2197 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
2198 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
2199 * config/sparc/linux.mh (NATDEPFILES): Likewise.
2200 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
2201 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
2202 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
2203 * configure.ac (AC_CACHE_CHECK): Add void * to the list of
2204 ptrace's 4th argument's types.
2205 Check the type of PTRACE_TYPE_ARG4.
2206 * configure: Regenerate.
2207 * linux-nat.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
2208 (SYSCALL_SIGTRAP): Moved to nat/linux-nat.h.
2209 (linux_supports_tracefork_flag): Remove.
2210 (linux_supports_tracesysgood_flag): Likewise.
2211 (linux_supports_tracevforkdone_flag): Likewise.
2212 (current_ptrace_options): Moved to
2213 common/linux-ptrace.c.
2214 (linux_tracefork_child): Remove.
2215 (my_waitpid): Remove.
2216 (linux_test_for_tracefork): Renamed to
2217 linux_check_ptrace_features and moved to common/linux-ptrace.c.
2218 (linux_test_for_tracesysgood): Remove.
2219 (linux_supports_tracesysgood): Remove.
2220 (linux_supports_tracefork): Remove.
2221 (linux_supports_tracevforkdone): Remove.
2222 (linux_enable_tracesysgood): Remove.
2223 (linux_enable_event_reporting): Remove.
2224 (linux_init_ptrace): New function.
2225 (linux_child_post_attach): Call linux_init_ptrace.
2226 (linux_child_post_startup_inferior): Call linux_init_ptrace.
2227 (linux_child_follow_fork): Call linux_supports_tracefork
2228 and linux_supports_tracevforkdone.
2229 (linux_child_insert_fork_catchpoint): Call
2230 linux_supports_tracefork.
2231 (linux_child_insert_vfork_catchpoint): Likewise.
2232 (linux_child_set_syscall_catchpoint): Call
2233 linux_supports_tracesysgood.
2234 (lin_lwp_attach_lwp): Call linux_supports_tracefork.
2235 * nat/linux-nat.h: New file.
2236 * nat/linux-waitpid.c: New file.
2237 * nat/linux-waitpid.h: New file.
2239 2013-08-22 Samuel Bronson <naesten@gmail.com>
2241 ARM Linux support for `catch syscall'.
2242 * syscalls/arm-linux.py: New file.
2243 * syscalls/arm-linux.xml: Likewise.
2244 * arm-linux-tdep.c (arm_linux_get_syscall_number): New function.
2245 (arm_linux_init_abi): Register the new function and syscall xml file.
2246 * data-directory/Makefile.in: Install the new syscall xml file.
2247 * NEWS: Brag about this.
2249 2013-08-22 Pedro Alves <palves@redhat.com>
2252 * corefile.c (target_xfer_memory_error): New function.
2253 (memory_error): Defer EIO to target_memory_error.
2254 (read_memory): Use target_xfer_partial, and handle finer-grained
2256 * target.c (target_xfer_error_to_string): New function.
2257 (memory_xfer_partial_1): If memory is known to be
2258 unavailable, return TARGET_XFER_E_UNAVAILABLE instead of -1.
2259 (target_xfer_partial): Make extern.
2260 * target.h (enum target_xfer_error): New enum.
2261 (target_xfer_error_to_string): Declare function.
2262 (target_xfer_partial): Declare function.
2263 (struct target_ops) <xfer_partial>: Adjust describing comment.
2265 2013-08-22 Alan Modra <amodra@gmail.com>
2267 * configure.host: Support powerpc64le-linux and powerpcle-linux hosts.
2268 * configure.tgt: Likewise as targets.
2270 2013-08-20 Doug Evans <dje@google.com>
2272 * buildsym.c (subfile_stack): Move here from buildsym.h.
2273 (pending_macros): Ditto.
2274 (get_macro_table): New function.
2275 (buildsym_init): Initialize subfile_stack.
2276 * coffread.c (type_vector,type_vector_length): Moved here from
2278 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
2279 (coff_symtab_read): Use it.
2280 * dbxread.c (read_ofile_symtab): Delete init of subfile_stack.
2281 * dwarf2read.c (macro_start_file): Replace uses of pending_macros
2282 with call to get_macro_table.
2283 * stabsread.c (type_vector,type_vector_length): Moved here from
2285 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
2286 * buildsym.h (get_macro_table): Declare.
2288 2013-08-20 Tom Tromey <tromey@redhat.com>
2290 * dbxread.c (record_minimal_symbol): Make 'name' argument const.
2292 (read_dbx_dynamic_symtab): Make 'name' const. Remove casts.
2294 2013-08-20 Doug Evans <dje@google.com>
2296 * blockframe.c: Remove #include "psymtab.h".
2297 * cp-support.c: Ditto.
2301 2013-08-20 Tom Tromey <tromey@redhat.com>
2304 * exceptions.h (return_mask): Now an enum.
2305 (RETURN_MASK_QUIT, RETURN_MASK_ERROR, RETURN_MASK_ALL): Now
2308 2013-08-20 Tom Tromey <tromey@redhat.com>
2310 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
2312 * elfread.c (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
2313 (elf_gnu_ifunc_resolve_by_got): Use get_objfile_arch.
2314 * jit.c (jit_object_close_impl): Update.
2315 * jv-lang.c (get_dynamics_objfile): Update.
2316 * linespec.c (add_minsym): Use get_dynamics_objfile.
2317 * objfiles.c (get_objfile_bfd_data): Initialize 'gdbarch' field.
2318 (allocate_objfile): Don't initialize 'gdbarch' field.
2319 (get_objfile_arch): Update.
2320 * objfiles.h (struct objfile_per_bfd_storage) <gdbarch>: New field,
2322 (struct objfile) <gdbarch>: ... here. Remove.
2323 * stap-probe.c (stap_can_evaluate_probe_arguments): Use
2325 * symfile.c (init_entry_point_info): Use get_objfile_arch.
2327 2013-08-20 Alan Modra <amodra@gmail.com>
2329 * doublest.c (convert_floatformat_to_doublest): Use fmt->split_half
2330 for IBM long double nan and inf.
2331 (floatformat_is_negative, floatformat_classify,
2332 floatformat_mantissa): Similarly.
2333 (floatformat_ieee_single, floatformat_ieee_double,
2334 floatformat_ieee_quad, floatformat_arm_ext,
2335 floatformat_ia64_spill): Delete unused vars.
2336 (_initialize_doublest): Delete unused function.
2337 * gdbtypes.c (floatformats_ibm_long_double): Use new big- and
2338 little-endian variants of floatformat_ibm_long_double.
2340 2013-08-19 Luis Machado <lgustavo@codesourcery.com>
2342 * Makefile.in (SFILES): Remove common/target-common.c and
2343 add target/waitstatus.c.
2344 (HFILES_NO_SRCDIR): Remove common/target-common.h and add
2345 target/resume.h, target/wait.h and target/waitstatus.h.
2346 (COMMON_OBS): Remove target-common.o and add
2348 (target-common.o): Remove.
2349 (waitstatus.o): New target object file.
2350 * common/target-common.c: Move contents to
2351 target/waitstatus.c and remove.
2352 * common/target-common.h: Move contents to other files and
2354 (enum resume_kind: Move to target/resume.h.
2355 (TARGET_WNOHANG): Move to target/wait.h.
2356 (enum target_waitkind): Move to target/waitstatus.h.
2357 (struct target_waitstatus): Likewise.
2358 * target.h: Do not include target-common.h and
2359 include target/resume.h, target/wait.h and
2360 target/waitstatus.h.
2361 * target/resume.h: New file.
2362 * target/wait.h: New file.
2363 * target/waitstatus.h: New file.
2364 * target/waitstatus.c: New file.
2366 2013-08-19 Pedro Alves <palves@redhat.com>
2368 * linux-nat.c (linux_test_for_tracefork)
2369 (linux_test_for_tracesysgood, linux_child_follow_fork)
2370 (lin_lwp_attach_lwp, linux_nat_resume): Don't block child signals.
2371 (linux_nat_wait_1): Extend comment.
2372 (linux_async_pipe): Add comment.
2374 2013-08-15 Kevin Buettner <kevinb@redhat.com>
2376 * rl78-tdep.c (RL78_RAW_PC_REGNUM): New enum.
2377 (RL78_PC_REGNUM): Move to list of pseudo-register enums.
2378 (rl78_register_type, rl78_register_name, rl78_register_reggroup_p):
2379 Update to account for fact that PC is now a pseudo-register.
2380 (rl78_pseudo_register_write, rl78_pseudo_register_read): Add
2381 cases for RL78_PC_REGNUM.
2383 2013-08-15 Muhammad Bilal <mbilal@codesourcery.com>
2386 * top.c (quit_force): Skip writing history file
2387 if input is not from terminal.
2389 2013-08-14 Tom Tromey <tromey@redhat.com>
2391 * remote.c (struct remote_state) <echo_nextthread, nextthread,
2392 resultthreadlist>: New fields.
2393 (OPAQUETHREADBYTES, threadref, MAXTHREADLISTRESULTS): Move earlier.
2394 (remote_get_threadlist, remote_threadlist_iterator): Use
2395 new fields. Remove static variables.
2397 2013-08-14 Tom Tromey <tromey@redhat.com>
2399 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p,
2400 remote_watch_data_address>: New fields.
2401 (remote_stopped_by_watchpoint_p, remote_watch_data_address): Remove.
2402 (process_stop_reply, remote_wait_as)
2403 (remote_check_watch_resources, remote_stopped_data_address): Update.
2405 2013-08-14 Tom Tromey <tromey@redhat.com>
2407 * remote.c (struct remote_state) <async_client_callback,
2408 async_client_context>: New fields.
2409 (async_client_callback, async_client_context): Remove.
2410 (remote_async_serial_handler, remote_async): Update.
2412 2013-08-14 Tom Tromey <tromey@redhat.com>
2414 * remote.c (sizeof_pkt): Remove.
2415 (remote_trace_find): Use rs->buf_size, not sizeof_pkt.
2417 2013-08-14 Tom Tromey <tromey@redhat.com>
2419 * remote.c (struct remote_state) <use_threadinfo_query,
2420 use_threadextra_query>: New fields.
2421 (remote_threads_info, remote_threads_extra_info)
2422 (remote_open_1): Update.
2424 2013-08-14 Tom Tromey <tromey@redhat.com>
2426 * remote.c (struct remote_state) <finished_object,
2427 finished_annex, finished_offset>: New fields.
2428 (remote_read_qxfer): Use remote_state fields; remove static
2431 2013-08-14 Tom Tromey <tromey@redhat.com>
2433 * remote.c (struct remote_state) <last_sent_step>:
2435 (last_sent_step): Remove.
2436 (remote_resume, remote_wait_as): Update.
2438 2013-08-14 Tom Tromey <tromey@redhat.com>
2440 * remote.c (struct remote_state) <last_sent_signal>:
2442 (last_sent_signal): Remove.
2443 (new_remote_state, remote_resume, remote_wait_as): Update.
2445 2013-08-14 Tom Tromey <tromey@redhat.com>
2447 * remote.c (struct remote_state) <last_program_signals_packet>:
2449 (last_program_signals_packet): Remove.
2450 (remote_program_signals, remote_open_1): Update.
2452 2013-08-14 Tom Tromey <tromey@redhat.com>
2454 * remote.c (struct remote_state) <last_pass_packet>:
2456 (last_pass_packet): Remove.
2457 (remote_pass_signals, remote_open_1): Update.
2459 2013-08-14 Tom Tromey <tromey@redhat.com>
2461 * remote.c (struct remote_state) <remote_traceframe_number>:
2463 (remote_traceframe_number): Remove.
2464 (new_remote_state, remote_open_1, set_remote_traceframe)
2465 (remote_trace_find): Update.
2467 2013-08-14 Tom Tromey <tromey@redhat.com>
2469 * remote.c (struct remote_state) <general_thread, continue_thread>:
2471 (general_thread, continue_thread): Remove.
2472 (record_currthread, set_thread, set_general_process)
2473 (remote_open_1, extended_remote_attach_1, remote_wait_as)
2474 (extended_remote_mourn_1): Update.
2476 2013-08-14 Tom Tromey <tromey@redhat.com>
2478 * remote.c (struct remote_state) <remote_desc>: New field.
2479 (remote_desc): Remove.
2480 (remote_threads_info, remote_threads_extra_info, remote_close)
2481 (send_interrupt_sequence, remote_start_remote, remote_open_1)
2482 (readchar, remote_xfer_partial, remote_rcmd, packet_command)
2483 (remote_hostio_send_command, remote_file_put, remote_file_get)
2484 (remote_file_delete, remote_can_async_p, remote_is_async_p)
2485 (remote_async, remote_new_objfile, set_range_stepping): Update.
2487 2013-08-14 Tom Tromey <tromey@redhat.com>
2489 * remote.c (remote_state): Now a pointer.
2490 (get_remote_state_raw): Update.
2491 (new_remote_state): New function.
2492 (_initialize_remote): Use new_remote_state.
2494 2013-08-14 Tom Tromey <tromey@redhat.com>
2496 * remote.c (remote_protocol_features): Now const.
2498 2013-08-14 Tom Tromey <tromey@redhat.com>
2500 * remote.c (crc32_table, crc32): Remove.
2501 (remote_verify_memory): Use xcrc32.
2503 2013-08-13 Sergio Durigan Junior <sergiodj@redhat.com>
2505 * value.h (create_internalvar_type_lazy): Adjust prototype
2508 2013-08-13 Andrew Burgess <aburgess@broadcom.com>
2510 * common/format.c (parse_format_string): Don't allow '#' flag for
2511 pointer arguments in format string.
2513 2013-08-13 Pierre Muller <muller@sourceware.org>
2515 * utils.c (init_page_info): Only call tgetnum function
2516 if rl_get_screen_size did not return useful values.
2518 2013-08-12 Ali Anwar <ali_anwar@codesourcery.com>
2520 PR breakpoints/15117
2521 * linespec.c (linespec_parse_basic): Check for convenience
2522 variable or history value while parsing.
2524 2013-08-12 Sergio Durigan Junior <sergiodj@redhat.com>
2526 Revert implementation of gdbarch_gdb_signal_{to,from}_target for
2528 * avr-tdep.c: Remove include of "linux-tdep.h". Remove enum with
2529 different signals between the generic Linux kernel implementation
2531 (avr_linux_gdb_signal_from_target): Delete.
2532 (avr_linux_gdb_signal_to_target): Delete.
2533 (avr_gdbarch_init): Don't set gdbarch_gdb_signal_{to,from}_target.
2535 2013-08-09 Doug Evans <dje@google.com>
2537 * dwarf2read.c (create_addrmap_from_index): Ignore bad address table
2540 2013-08-09 Sergio Durigan Junior <sergiodj@redhat.com>
2542 * linux-tdep.c: Define enum with generic signal numbers.
2543 (linux_gdb_signal_from_target): New function.
2544 (linux_gdb_signal_to_target): Likewise.
2545 (linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
2546 methods to the functions above.
2547 * linux-tdep.h (linux_gdb_signal_from_target): New prototype.
2548 (linux_gdb_signal_to_target): Likewise.
2549 * alpha-linux-tdep.c: Define new enum with signals different
2550 from generic Linux kernel.
2551 (alpha_linux_gdb_signal_from_target): New function.
2552 (alpha_linux_gdb_signal_to_target): Likewise.
2553 (alpha_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
2554 with the functions mentioned above.
2555 * avr-tdep.c: Define enum with differences between Linux kernel
2557 (avr_linux_gdb_signal_from_target): New function.
2558 (avr_linux_gdb_signal_to_target): Likewise.
2559 (avr_gdbarch_init): Set gdbarch_gdb_signal_{to,from}_target to
2560 the functions mentioned above.
2561 * sparc-linux-tdep.c: Define enum with differences between SPARC
2562 and generic Linux kernel signal numbers.
2563 (sparc32_linux_gdb_signal_from_target): New function.
2564 (sparc32_linux_gdb_signal_to_target): Likewise.
2565 (sparc32_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
2566 to the functions defined above.
2567 * xtensa-linux-tdep.c: Define enum with differences between
2568 Xtensa and Linux kernel generic signals.
2569 (xtensa_linux_gdb_signal_from_target): New function.
2570 (xtensa_linux_gdb_signal_to_target): Likewise.
2571 (xtensa_linux_init_abi): Set gdbarch_gdb_signal_to_target
2572 to the functions defined above.
2573 * mips-linux-tdep.c: Define enum with differences between
2574 signals in MIPS and Linux kernel generic ones.
2575 (mips_gdb_signal_to_target): New function.
2576 (mips_gdb_signal_from_target): Redefine to use new enum, handle
2577 only different signals from the Linux kernel generic.
2578 (mips_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
2579 the functions defined above.
2580 * mips-linux-tdep.h (enum mips_signals): Remove.
2582 2013-08-09 Pedro Alves <palves@redhat.com>
2584 * avr-tdep.c (XMALLOC): Delete macro.
2585 * cli/cli-dump.c (XMALLOC): Delete macro.
2587 2013-08-09 Pedro Alves <palves@redhat.com>
2589 * cli/cli-dump.c: Don't include cli/cli-dump.h.
2590 (scan_expression_with_cleanup, scan_filename_with_cleanup)
2591 (fopen_with_cleanup, add_dump_command): Make static.
2592 * cli/cli-dump.h: Delete file.
2593 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to
2596 2013-08-09 Pedro Alves <palves@redhat.com>
2598 * tracepoint.c (tfile_start): Show tilde-expanded filename in
2601 2013-08-09 Pedro Alves <palves@redhat.com>
2603 * breakpoint.c (save_breakpoints): Show tilde-expanded filename in
2606 2013-08-09 Pedro Alves <palves@redhat.com>
2608 * gcore.c (create_gcore_bfd): Don't use tilde_expand here.
2609 (gcore_command): Use tilde_expand here, and when showing the
2610 filename to the user, show the expanded version.
2612 2013-08-09 Yao Qi <yao@codesourcery.com>
2614 * stack.c (read_frame_arg): Set 'entryval_error' to NULL if
2617 2013-08-08 Azat Khuzhin <a3at.mail@gmail.com> (tiny change)
2619 * gcore.c (create_gcore_bfd): Use tilde_expand.
2621 2013-08-08 Yao Qi <yao@codesourcery.com>
2623 * frame.h (read_frame_local): Declare.
2624 * mi/mi-cmd-stack.c (list_args_or_locals): Call
2626 * stack.c (read_frame_local): New.
2628 2013-08-08 Yao Qi <yao@codesourcery.com>
2630 * mi/mi-cmd-stack.c: Update comments to function
2631 list_args_or_locals.
2633 2013-08-07 Tom Tromey <tromey@redhat.com>
2636 * dwarf2read.c (struct process_psymtab_comp_unit_data): New.
2637 (process_psymtab_comp_unit_reader): Use it.
2638 (process_psymtab_comp_unit): Update. Add "pretend_language"
2640 (dwarf2_build_psymtabs_hard): Update.
2641 (scan_partial_symbols): Pass CU's language to
2642 process_psymtab_comp_unit.
2644 2013-08-07 Tom Tromey <tromey@redhat.com>
2646 * dwarf2read.c (dw2_get_primary_filename_reader): Remove.
2647 (dwarf2_gdb_index_functions): Update.
2648 * psymtab.c (find_symbol_file_from_partial): Remove.
2649 (psym_functions): Update.
2650 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
2653 2013-08-07 Tom Tromey <tromey@redhat.com>
2655 * symfile.c (set_initial_language): Look up "main" symbol
2656 and use its language.
2657 * symtab.c (find_main_filename): Remove.
2658 * symtab.h (find_main_filename): Remove.
2660 2013-08-07 Tom Tromey <tromey@redhat.com>
2662 * dwarf2read.c (recursively_compute_inclusions): Add
2663 "immediate_parent" argument. Set symtab's "user" field
2665 (compute_symtab_includes): Update.
2667 2013-08-07 Tom Tromey <tromey@redhat.com>
2669 * linespec.c (convert_linespec_to_sals): Use maybe_add_address
2670 when adding label symbols.
2672 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
2673 Ulrich Weigand <uweigand@de.ibm.com>
2675 * configure.tgt (powerpc64-*-aix*): Match powerpc64 running aix.
2676 * configure.host (powerpc64-*-aix*): Likewise.
2678 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
2679 Ulrich Weigand <uweigand@de.ibm.com>
2681 * gdb_ptrace.h: Use ptrace64 instead of ptrace if HAVE_PTRACE64
2683 * rs6000-nat.c: Check for __ld_info64_ if compiling 64 BIT gdb.
2684 (rs6000_ptrace32): Call ptrace64 instead of ptrace if present.
2685 (rs6000_ptrace64): Call ptace64 instead of ptracex if present.
2686 * configure.ac: Check for ptrace64.
2687 * configure, config.in: Regenerate.
2689 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
2690 Ulrich Weigand <uweigand@de.ibm.com>
2692 * aixthread.c: Call ptrace64 instead of ptracex if defined.
2693 Call ptrace64 instead of ptrace if defined.
2694 Add macro addr_ptr to take care of ptrace address argument.
2695 (pdc_read_regs): Likewise.
2696 (pdc_write_regs): Likewise.
2697 (aix_thread_resume): Likewise.
2698 (fetch_regs_kernel_thread): Likewise.
2699 (store_regs_kernel_thread): Likewise.
2701 2013-08-07 Anton Blanchard <anton@samba.org>
2703 * MAINTAINERS: Add myself to Write After Approval.
2705 2013-08-05 Tom Tromey <tromey@redhat.com>
2707 * aix-thread.c (_initialize_aix_thread): Use
2708 complete_target_initialization.
2709 * bsd-uthread.c (_initialize_bsd_uthread): Use
2710 complete_target_initialization.
2711 * dec-thread.c (_initialize_dec_thread): Use
2712 complete_target_initialization.
2713 * ravenscar-thread.c (_initialize_ravenscar): Use
2714 complete_target_initialization.
2715 * sol-thread.c (_initialize_sol_thread): Use
2716 complete_target_initialization.
2717 * spu-multiarch.c (_initialize_spu_multiarch): Use
2718 complete_target_initialization.
2720 2013-08-05 Tom Tromey <tromey@redhat.com>
2722 * ada-exp.y (write_var_or_type): Use bound_minimal_symbol.
2723 * ada-lang.c (ada_lookup_simple_minsym): Return
2724 bound_minimal_symbol.
2725 * ada-lang.h (ada_lookup_simple_minsym): Update.
2726 * c-exp.y (variable): Use lookup_bound_minimal_symbol.
2727 * f-exp.y (variable): Use lookup_bound_minimal_symbol.
2728 * go-exp.y (variable): Use lookup_bound_minimal_symbol.
2729 * jv-exp.y (push_expression_name): Use lookup_bound_minimal_symbol.
2730 * m2-exp.y (variable): Use lookup_bound_minimal_symbol.
2731 * minsyms.c (msymbol_objfile): Remove.
2732 (lookup_minimal_symbol_internal): New function, from
2733 lookup_minimal_symbol.
2734 (lookup_minimal_symbol): Rewrite using
2735 lookup_minimal_symbol_internal.
2736 (lookup_bound_minimal_symbol): New function.
2737 * minsyms.h (msymbol_objfile): Remove.
2738 (lookup_bound_minimal_symbol): Declare.
2739 * p-exp.y (variable): Use lookup_bound_minimal_symbol.
2740 * parse.c (write_exp_msymbol): Change parameter to a
2741 bound_minimal_symbol.
2742 (write_dollar_variable): Use lookup_bound_minimal_symbol.
2743 * parser-defs.h (write_exp_msymbol): Update.
2744 * printcmd.c (address_info): Use lookup_bound_minimal_symbol.
2745 * symfile.c (simple_read_overlay_table): Use
2746 lookup_bound_minimal_symbol.
2747 * symtab.c (skip_prologue_sal): Don't use msymbol_objfile.
2748 (search_symbols): Likewise.
2749 (print_msymbol_info): Take a bound_minimal_symbol argument.
2750 (symtab_symbol_info, rbreak_command): Update.
2751 * symtab.h (struct symbol_search) <msymbol>: Change type
2752 to bound_minimal_symbol.
2753 * valops.c (find_function_in_inferior): Use
2754 lookup_bound_minimal_symbol.
2755 * value.c (value_fn_field): Use lookup_bound_minimal_symbol.
2757 2013-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2760 * remote.c (cleanup_sigint_signal_handler): Rename the declaration
2762 (async_cleanup_sigint_signal_handler): ... this.
2763 (initialize_sigint_signal_handler): Remove declaration.
2764 (handle_remote_sigint): Rename the declaration to ...
2765 (async_handle_remote_sigint): ... this.
2766 (handle_remote_sigint_twice): Rename the declaration to ...
2767 (async_handle_remote_sigint_twice): ... this.
2768 (async_remote_interrupt, async_remote_interrupt_twice)
2769 (remote_interrupt): Remove the declarations.
2770 (remote_interrupt_twice): Rename the declaration ...
2771 (sync_remote_interrupt_twice): ... this.
2772 (sigint_remote_twice_token): Rename the variable to ...
2773 (async_sigint_remote_twice_token): ... this.
2774 (sigint_remote_token): Rename the variable to ...
2775 (async_sigint_remote_token): ... this.
2776 (initialize_sigint_signal_handler): Rename the function to ...
2777 (async_initialize_sigint_signal_handler): ... this. Update the name
2779 (handle_remote_sigint): Rename the function to ...
2780 (async_handle_remote_sigint): ... this. Update the names inside.
2781 (handle_remote_sigint_twice): Rename the function to ...
2782 (async_handle_remote_sigint_twice): ... this. Update the names inside.
2783 (cleanup_sigint_signal_handler): Rename the function to ...
2784 (async_cleanup_sigint_signal_handler): ... this.
2785 (remote_interrupt): Rename the function to ...
2786 (sync_remote_interrupt): this. Update the names inside.
2787 (remote_interrupt_twice): Rename the function to ...
2788 (sync_remote_interrupt_twice): this. Update the names inside.
2789 (remote_terminal_inferior, remote_terminal_ours, remote_wait_as)
2790 (_initialize_remote): Update the names inside.
2792 2013-08-02 Tom Tromey <tromey@redhat.com>
2795 * breakpoint.c (update_watchpoint, watchpoint_check)
2796 (watch_command_1): Update.
2797 * eval.c (fetch_subexp_value): Add "preserve_errors"
2799 * ppc-linux-nat.c (check_condition): Update.
2800 * value.h (fetch_subexp_value): Update.
2802 2013-08-02 Andrew Burgess <aburgess@broadcom.com>
2804 * mi/mi-interp.c (mi_interpreter_resume): Remove call to
2807 2013-08-01 Doug Evans <dje@google.com>
2810 * dwarf2read.c (struct dwarf2_per_cu_data): New member tu_read.
2811 (fill_in_sig_entry_from_dwo_entry): Reorganize asserts.
2812 Add assert of sig_entry->dwo_unit == NULL.
2813 (lookup_dwo_signatured_type): Don't assign TU to a DWO if the TU
2814 had already been read.
2815 (read_signatured_type): Set per_cu.tu_read.
2818 * valops.c (value_struct_elt): Add missing call to check_typedef.
2819 (value_find_oload_method_list): Ditto.
2821 * symtab.c (do_free_search_symbols_cleanup): Change arg to,
2822 effectively, struct symbol_search **.
2823 (make_cleanup_free_search_symbols): Change arg to struct
2824 symbol_search **. All callers updated.
2825 (compare_search_syms): Compare symtab file name and block as well.
2826 (search_symbols_equal): New function.
2827 (sort_search_symbols_remove_dups): Renamed from sort_search_symbols.
2828 New args new_head, new_tail. Result is now void. Remove dups after
2829 sorting the symbols.
2830 (search_symbols): Sort all found symbols once, after all have been
2831 found, and remove duplicates. Simplify cleanup tracking of result.
2832 * symtab.h (make_cleanup_free_search_symbols): Update prototype.
2834 Further workarounds for binutils/15021.
2835 * dwarf2read.c (recursively_compute_inclusions): Change type of result
2836 parameter to VEC (symtab_ptr) **. New parameter all_type_symtabs.
2837 Watch for duplicate symtabs coming from type units.
2838 (compute_symtab_includes): Update call to
2839 recursively_compute_inclusions. Build vector of included symtabs
2841 * symtab.h (symtab_ptr): New typedef.
2842 (DEF_VEC_P (symtab_ptr)): New VEC type.
2843 * linespec.c (symtab_p): Delete. All uses updated to use symtab_ptr
2846 2013-08-01 Andrew Burgess <aburgess@broadcom.com>
2848 * cli/cli-script.c (script_from_file): Remove use of
2850 * main.c (captured_main): Remove use of error_pre_print and
2852 * utils.c (error_pre_print, quit_pre_print): Remove.
2853 * utils.h (error_pre_print, quit_pre_print): Likewise.
2855 2013-08-01 Yao Qi <yao@codesourcery.com>
2857 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Parse argv
2859 (mi_cmd_stack_list_variables): Likewise.
2861 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
2863 * exceptions.c (deprecated_throw_reason): Remove.
2864 * exceptions.h (deprecated_throw_reason): Remove.
2866 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
2868 * remote-mips.c (mips_error): Replace use of
2869 deprecated_throw_reason with throw_verror. Use the error message
2870 passed to mips_error as the error message for throw_verror.
2872 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
2874 * monitor.c (monitor_interrupt_query): Replace use of
2875 deprecated_throw_reason with quit.
2876 * nto-procfs.c (interrupt_query): Likewise.
2877 * remote-fileio.c (remote_fileio_sig_exit): Likewise.
2878 * remote-mips.c (mips_kill): Likewise.
2879 * remote.c (interrupt_query): Likewise.
2881 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
2883 * utils.c (internal_verror): Replace use of deprecated_throw_reason
2886 2013-07-31 Pedro Alves <pedro@codesourcery.com>
2887 Yao Qi <yao@codesourcery.com>
2889 * tracepoint.c (trace_dump_command): Select the current frame.
2891 2013-07-30 Doug Evans <dje@google.com>
2893 * dwarf2read.c (process_queue): Add type signature to debug output.
2895 2013-07-30 Andrew Burgess <aburgess@broadcom.com>
2897 * value.c (value_fetch_lazy): Mark optimized out values as such
2898 rather than raising an error.
2900 2013-07-30 Andrew Burgess <aburgess@broadcom.com>
2902 * value.c (value_fetch_lazy): Ensure parent value is not lazy
2903 before checking which bits of the parent, not the child, value are
2906 2013-07-30 Muhammad Bilal <mbilal@codesorcery.com>
2909 * top.c: Include "filenames.h".
2910 (set_history_filename): New function.
2911 (init_main): Install it as set hook of the "set history filename"
2914 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
2916 * dwarf2read.c (dwarf2_get_ref_die_offset): Constify struct
2917 attribute parameter.
2918 (dwarf2_const_value_data): Constify struct attribute parameter.
2919 (dwarf2_const_value): Constify struct attribute parameter.
2920 (dwarf2_const_value_attr): Constify struct attribute parameter.
2921 (lookup_die_type): Constify struct attribute parameter.
2922 (dwarf2_get_attr_constant_value): Constify struct attribute parameter.
2923 (follow_die_ref_or_sig): Constify struct attribute parameter.
2924 (follow_die_ref): Constify struct attribute parameter.
2925 (follow_die_sig): Constify struct attribute parameter.
2926 (get_DW_AT_signature_type): Constify struct attribute parameter.
2927 (get_type_unit_group): Constify struct attribute parameter.
2928 (fill_in_loclist_baton): Constify struct attribute parameter.
2929 (dwarf2_symbol_mark_computed): Constify struct attribute parameter.
2930 (type_unit_group): Constify struct attribute parameter.
2932 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
2934 * dwarf2read.c (attr_form_is_block): Make argument const.
2935 (attr_form_is_section_offset): Make argument const.
2936 (attr_form_is_constant): Make argument const.
2937 (attr_form_is_ref): Make argument const.
2939 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
2941 * dwarf2read.c (attr_is_ref): Rename to attr_form_is_ref.
2943 (attr_form_is_ref): Moved below attr_form_is_constant.
2945 2013-07-29 Doug Evans <dje@google.com>
2947 * main.c (captured_command_loop): Tweak comment.
2949 * target.c (target_async_permitted_1): Fix comment.
2951 * symtab.c (iterate_over_some_symtabs): Add comment.
2953 * symtab.c (iterate_over_some_symtabs): Fix indentation.
2955 2013-07-27 Yao Qi <yao@codesourcery.com>
2957 * NEWS: Mention that GDBserver now supports hardware
2958 watchpoints on the MIPS GNU/Linux target.
2960 2013-07-27 Yao Qi <yao@codesourcery.com>
2962 * Makefile.in (HFILES_NO_SRCDIR): Add
2963 common/mips-linux-watch.h.
2964 (mips-linux-watch.o): New rule.
2965 * common/mips-linux-watch.c: New.
2966 * common/mips-linux-watch.h: New.
2967 * config/mips/linux.mh (NATDEPFILES): Add mips-linux-watch.o
2968 * mips-linux-nat.c: Include mips-linux-watch.h.
2969 (W_BIT, R_BIT, I_BIT, W_MASK, R_MASK, I_MASK, IRW_MASK): Move
2970 to common/mips-linux-watch.h.
2971 (MAX_DEBUG_REGISTER): Likewise.
2972 (enum pt_watch_style): Likewise.
2973 (struct mips32_watch_regs): Likewise.
2974 (struct mips64_watch_regs): Likewise.
2975 (struct pt_watch_regs): Likewise.
2976 (struct mips_watchpoint): Likewise.
2977 (mips_linux_watch_get_irw_mask): Move to
2978 common/mips-linux-watch.c.
2979 (get_reg_mask, mips_linux_watch_get_num_valid): Likewise.
2980 (mips_linux_watch_get_watchlo): Likewise.
2981 (mips_linux_watch_set_watchlo): Likewise.
2982 (mips_linux_watch_get_watchhi): Likewise.
2983 (mips_linux_watch_set_watchhi): Likewise.
2984 (mips_linux_read_watch_registers): Likewise.
2985 (mips_linux_watch_type_to_irw): Likewise.
2986 (mips_linux_stopped_data_address, fill_mask): Likewise.
2987 (mips_linux_watch_try_one_watch): Likewise.
2988 (mips_linux_watch_populate_regs): Likewise.
2990 2013-07-27 Yao Qi <yao@codesourcery.com>
2992 * mips-linux-nat.c (get_irw_mask): Rename to ...
2993 (mips_linux_watch_get_irw_mask): ... this. Rename parameter
2994 'set' to 'n'. Update function comment. All callers changed.
2995 (get_reg_mask): Rename parameter 'set' to 'n'. Update
2996 function comment. All callers changed.
2997 (get_num_valid): Rename to ...
2998 (mips_linux_watch_get_num_valid): ... this. Rename parameter
2999 'set' to 'n'. Update function comment. All callers changed.
3000 (get_watchlo): Rename to ...
3001 (mips_linux_watch_get_watchlo): ... this. Rename parameter
3002 'set' to 'n'. Update function comment. All callers changed.
3003 (set_watchlo): Rename to ...
3004 (mips_linux_watch_set_watchlo): ... this. Rename parameter
3005 'set' to 'n'. Update function comment. All callers changed.
3006 (get_watchhi): Rename to ...
3007 (mips_linux_watch_get_watchhi): ... this. Update function
3008 comment. All callers changed.
3009 (set_watchhi): Rename to ...
3010 (mips_linux_watch_set_watchhi): ... this. Update function
3011 comment. All callers changed.
3012 (mips_linux_read_watch_registers): Update function comment.
3013 Add new parameters 'lwpid', 'watch_readback', and
3014 'watch_readback_valid'. Update.
3015 (type_to_irw): Rename to ...
3016 (mips_linux_watch_type_to_irw): ... this. Update function
3017 comment. All callers changed.
3018 (fill_mask): Update function comment.
3019 (try_one_watch): Rename to ...
3020 (mips_linux_watch_try_one_watch): ... this. Change the type
3021 of parameter 'irw' from 'unsigned' to 'uint32_t'.
3022 (populate_regs_from_watches): Rename to ...
3023 (mips_linux_watch_populate_regs): ... this. Add parameter
3024 'current_watches'. All callers changed.
3026 2013-07-27 Yao Qi <yao@codesourcery.com>
3028 * mips-linux-nat.c (MAX_DEBUG_REGISTER): Move it earlier in
3030 (PTRACE_SET_WATCH_REGS, enum pt_watch_style): Remove.
3031 (struct mips32_watch_regs, struct mips64_watch_regs): Remove.
3032 (struct pt_watch_regs): Likewise.
3033 [!PTRACE_GET_WATCH_REGS] (PTRACE_SET_WATCH_REGS): New macro.
3034 [!PTRACE_GET_WATCH_REGS] (enum pt_watch_style): New.
3035 [!PTRACE_GET_WATCH_REGS] (struct mips32_watch_regs): New.
3036 [!PTRACE_GET_WATCH_REGS] (struct mips64_watch_regs): New.
3037 [!PTRACE_GET_WATCH_REGS] (struct pt_watch_regs): New.
3039 2013-07-27 Yao Qi <yao@codesourcery.com>
3041 * breakpoint.h: Include break-common.h.
3042 (enum target_hw_bp_type): Move to ...
3043 * common/break-common.h: ... here. New.
3045 2013-07-26 Cyril Nikolaev <cyril@nichtverstehen.de>
3047 * inflow.c (terminal_init_inferior_with_pgrp): Save inferior
3048 process group regardless of having tty on stdin.
3050 2013-07-25 Doug Evans <dje@google.com>
3052 * linux-fork.h (detach_fork): Delete.
3054 2013-07-25 Tom Tromey <tromey@redhat.com>
3056 PR remote/15256, PR remote/15266:
3057 * bfd-target.c (target_bfd_reopen): Initialize to_magic.
3058 * monitor.c (monitor_detach): Use unpush_target.
3059 * remote-m32r-sdi.c (m32r_detach): Use unpush_target.
3060 * remote-mips.c (mips_detach): Use unpush_target. Don't
3062 * remote-sim.c (gdbsim_detach): Use unpush_target.
3063 * target.c (pop_target): Remove.
3064 (pop_all_targets_above): Don't call target_close.
3065 (target_close): Assert that the target is unpushed.
3066 * target.h (pop_target): Don't declare.
3067 * tracepoint.c (tfile_open): Use unpush_target.
3069 2013-07-25 Tom Tromey <tromey@redhat.com>
3071 * linux-thread-db.c (init_thread_db_ops): Call
3072 complete_target_initialization.
3073 (_initialize_thread_db): Don't call add_target.
3074 * target.c (complete_target_initialization): New function.
3075 (add_target_with_completer): Call it.
3076 * target.h (complete_target_initialization): Declare.
3078 2013-07-25 Mark Kettenis <kettenis@gnu.org>
3080 * hppa-tdep.h (enum hppa_regnum): Add members for all space registers.
3081 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Add comment.
3082 (HPPANBSD_SIZEOF_GREGS): New define.
3083 (hppaobsd_supply_gregset): Handle additional registers.
3084 * hppabsd-nat.c (hppabsd_gregset_supplies_p): Adjust to indicate
3085 we provide more registers now.
3086 (hppabsd_supply_gregset): Supply additional registers.
3087 (hppabsd_collect_gregset): Collect additional registers.
3089 2013-07-25 Mark Kettenis <kettenis@gnu.org>
3091 * hppabsd-tdep.c: Include "dwarf2-frame.h".
3092 (hppabsd_dwarf2_frame_init_reg): New function.
3093 (hppabsd_init_abi): Hook in the DWARF CFI frame unwinder.
3095 2013-07-25 Andrew Burgess <aburgess@broadcom.com>
3097 * mi/mi-main.c (output_register): Make MI 'r' format use standard
3098 'z' format code. Remove error for optimized out values, standard
3099 code will handle these fine.
3101 2013-07-25 Andrew Burgess <aburgess@broadcom.com>
3103 * NEWS: Mention new 'z' formatter.
3104 * printcmd.c (print_scalar_formatted): Add new 'z' formatter.
3105 (_initialize_printcmd): Mention 'z' formatter in help text of the
3108 2013-07-24 Maciej W. Rozycki <macro@codesourcery.com>
3110 * mips-tdep.c (micromips_deal_with_atomic_sequence): Correct
3113 2013-07-24 Sergio Durigan Junior <sergiodj@redhat.com>
3115 * breakpoint.c (create_longjmp_master_breakpoint): Check if probe
3116 interface can evaluate arguments. Fallback to the old mode if it
3118 (create_exception_master_breakpoint): Likewise.
3119 * elfread.c (elf_can_evaluate_probe_arguments): New function.
3120 (struct sym_probe_fns elf_probe_fns): Export function above to the
3122 * probe.c (can_evaluate_probe_arguments): New function.
3123 * probe.h (struct probe_ops) <can_evaluate_probe_arguments>: New
3125 (can_evaluate_probe_arguments): New function prototype.
3126 * solib-svr4.c (svr4_create_solib_event_breakpoints): Check if
3127 probe interface can evaluate arguments. Fallback to the old mode
3129 * stap-probe.c (stap_get_probe_argument_count): Check if probe
3130 interface can evaluate arguments. Warning the user if it cannot.
3131 (stap_can_evaluate_probe_arguments): New function.
3132 (struct probe_ops stap_probe_ops): Export function above to the
3134 * symfile.h (struct sym_probe_fns) <can_evaluate_probe_arguments>:
3135 New function pointer.
3137 2013-07-24 Luis Machado <lgustavo@codesourcery.com>
3139 * Makefile.in (SFILES): Add common/target-common.c.
3140 Add common/target-common.h to headers.
3141 (COMMON_OBS): Add target-common.o.
3142 (target-common.o): New target.
3143 * linux-nat.h (resume_kind): Move to common/target-common.h.
3144 * target.c (target_waitstatus_to_string): Move to
3145 common/target-common.c.
3146 * target.h: Include target-common.h.
3147 (target_waitkind): Move to common/target-common.h.
3148 (target_waitstatus): Likewise.
3149 (TARGET_WNOHANG): Likewise.
3150 * common/target-common.c: New file.
3151 * common/target-common.h: New file.
3153 2013-07-24 Doug Evans <dje@google.com>
3155 * dwarf2read.c (lookup_dwo_cutu): Change missing DWO complaint to
3158 2013-07-23 Yao Qi <yao@codesourcery.com>
3160 * i386-tdep.c (i386_in_stack_tramp_p): Remove unused
3161 parameter 'gdbarch'.
3162 (i386_stack_tramp_frame_sniffer): Caller update.
3163 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Remove
3164 parameter 'gdbarch' and 'target'.
3165 (i386_linux_core_read_description): Caller update.
3166 * amd64-linux-tdep.c (amd64_linux_core_read_description):
3168 * i386-linux-tdep.h (i386_linux_core_read_xcr0): Update
3171 2013-07-23 Tom Tromey <tromey@redhat.com>
3173 * dwarf2read.c (init_cutu_and_read_dies): Revert patch from
3176 2013-07-22 Doug Evans <dje@google.com>
3178 * exec.h (remove_target_sections): Delete arg abfd.
3179 * exec.c (exec_close): Update call to remove_target_sections.
3180 (remove_target_sections): Delete arg abfd.
3181 * solib.c (update_solib_list): Ditto.
3182 (reload_shared_libraries_1): Ditto.
3183 (clear_solib): Ditto, and unconditionally call remove_target_sections.
3184 * target.h (struct target_section): Rename key to owner.
3187 2013-07-22 Tom Tromey <tromey@redhat.com>
3189 * solib-som.c (som_open_symbol_file_object): Call do_cleanups.
3191 2013-07-22 Tom Tromey <tromey@redhat.com>
3193 * dwarf2read.c (init_cutu_and_read_dies): Remove 'free_cu_cleanup'.
3194 Simplify cleanup handling.
3196 2013-07-22 Tom Tromey <tromey@redhat.com>
3198 * dwarf2read.c (dwarf_decode_line_header): Call do_cleanups
3199 on all return paths.
3201 2013-07-22 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3203 * ppc-linux-nat.c (PPC_DEBUG_FEATURE_DATA_BP_DAWR): New define.
3204 (ppc_linux_region_ok_for_hw_watchpoint): Add checking to use the new
3205 DAWR interface for longer ranges hardware watchpoint (up to 512 bytes).
3207 2013-07-22 Phil Muldoon <pmuldoon@redhat.com>
3209 * top.c (print_gdb_version): Add help, apropos description and
3210 url to online documentation.
3212 2013-07-19 Hui Zhu <hui@codesourcery.com>
3215 * mi/mi-cmd-break.c (mi_argv_to_format): Handle double quotes.
3217 2013-07-19 Yao Qi <yao@codesourcery.com>
3219 * target.c (update_current_target): Change the default action
3220 of 'to_traceframe_info' from tcomplain to return_zero.
3221 * target.h (struct target_ops) <to_traceframe_info>: Add more
3223 * valops.c (read_value_memory): Call
3224 traceframe_available_memory unconditionally.
3226 2013-07-18 Yao Qi <yao@codesourcery.com>
3228 * coffread.c (coff_symfile_read): Iterate over minimal symbols,
3229 if the name is prefixed by "__imp_" or "_imp_", look for minimal
3230 symbol without prefix. If found, set its type to
3231 'mst_solib_trampoline'.
3233 2013-07-17 Doug Evans <dje@google.com>
3235 * NEWS: Mention "set print raw frame-arguments".
3236 * gdbcmd.h (setprintrawlist, showprintrawlist): Declare.
3237 * stack.c (print_raw_frame_arguments): New static global.
3238 (print_frame_arg): Set opts.raw from print_raw_frame_arguments.
3239 (_initialize_stack): New command "set/show print raw frame-arguments".
3240 * valprint.c (setprintrawlist, showprintrawlist): New globals.
3241 (set_print_raw, show_print_raw): New functions.
3242 (_initialize_valprint): New prefix command "set/show print raw".
3243 * valprint.h (value_print_options): Improve comments.
3245 * cli/cli-cmds.c (init_cmd_lists): Delete unnecessary initialization
3246 of all *list variables.
3248 * gdbcmd.h (togglelist): Delete.
3249 * cli/cli-cmds.c (togglelist): Delete.
3250 (init_cmd_lists): Update.
3251 * cli/cli-cmds.h (togglelist): Delete.
3253 2013-07-17 Tom Tromey <tromey@redhat.com>
3255 * dwarf2read.c (dwarf2_per_objfile_free): Clear
3258 2013-07-16 Doug Evans <dje@google.com>
3260 * nto-tdep.c (nto_relocate_section_addresses): Update,
3261 target_section.bfd deleted.
3262 * ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Ditto.
3263 * s390-tdep.c (s390_load): Ditto.
3264 * solib-aix.c (solib_aix_relocate_section_addresses): Ditto.
3266 2013-07-16 Andrew Burgess <aburgess@broadcom.com>
3268 * common/format.c (parse_format_string): Add checks for NULL
3269 character before calling strchr.
3271 2013-07-16 Doug Evans <dje@google.com>
3273 * solist.h (target_so_ops.find_and_open_solib): Clarify usage of
3274 temp_pathname argument.
3275 * nto-tdep.c (nto_find_and_open_solib): Fix setting of temp_pathname
3276 when opening the file fails.
3278 * target.h (struct target_section): Delete member bfd.
3279 All users updated to use the_bfd_section->owner instead.
3280 * exec.c (add_to_section_table): Assert bfd is expected value.
3281 Remove initialization of target_section.bfd.
3282 (remove_target_sections): Update.
3283 (section_table_available_memory): Update.
3284 (section_table_xfer_memory_partial): Update.
3285 (print_section_info): Update.
3286 (exec_set_section_address): Update.
3287 * record-full.c (record_full_core_xfer_partial): Update.
3288 * solib-svr4.c (svr4_relocate_section_addresses): Update.
3289 * solib-target.c (solib_target_relocate_section_addresses): Update.
3290 * symfile.c (build_section_addr_info_from_section_table): Update.
3291 * target.c (memory_xfer_live_readonly_partial): Update.
3292 (memory_xfer_partial_1): Update.
3294 2013-07-15 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3296 * ppc-linux-nat.c: Since the new PowerPC specific ptrace interface is
3297 now available for embedded (BookE) and server (BookS) processors,
3298 correct mentions of 'booke' and adjust comments accordingly in order to
3299 avoid confusion. Rename struct 'booke_debug_info' to 'hwdebug_info'.
3300 (have_ptrace_booke_interface): Rename function and variable
3301 'have_ptrace_booke_interface' to 'have_ptrace_hwdebug_interface'.
3302 Rename struct 'booke_debug_info' to 'hwdebug_info'. Update all uses.
3303 (booke_cmp_hw_point): Rename function 'booke_cmp_hw_point' to
3304 'hwdebug_point_cmp'. Update all uses.
3305 (booke_find_thread_points_by_tid): Rename function
3306 'booke_find_thread_points_by_tid' to
3307 'hwdebug_find_thread_points_by_tid'. Update all uses.
3308 (booke_insert_point): Rename function 'booke_insert_point' to
3309 'hwdebug_insert_point'. Update all uses.
3310 (booke_remove_point): Rename function 'booke_remove_point' to
3311 'hwdebug_remove_point'. Update all uses.
3313 2013-07-15 Maciej W. Rozycki <macro@codesourcery.com>
3315 * mips-tdep.c (mips_gdbarch_init): Replace hardcoded magic
3316 numbers with enum values.
3318 2013-07-15 Ali Anwar <ali_anwar@codesourcery.com>
3321 * thread.c (thread_apply_all_command): Check for valid threads
3323 (thread_array_cleanup): New struct.
3324 (set_thread_refcount): New function.
3326 2013-07-11 Andrew Burgess <aburgess@broadcom.com>
3328 * infcmd.c (default_print_one_register_info): Reuse function
3331 2013-07-10 Tom Tromey <tromey@redhat.com>
3333 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS, ADA_EXP_C): New macros.
3334 (ada-exp.o): New target.
3336 2013-07-10 Sergio Durigan Junior <sergiodj@redhat.com>
3338 * mt-tdep.c (mt_registers_info): Call
3339 get_no_prettyformat_print_options instead of
3340 get_raw_print_options (regression by last patch from Doug
3343 2013-07-09 Pedro Alves <palves@redhat.com>
3345 Checked in by Joel Brobecker <brobecker@adacore.com>.
3346 * ada-lang.c (coerce_unspec_val_to_type): Use
3347 value_optimized_out_const.
3348 * value.c (value_optimized_out_const): New function.
3349 * value.h (value_optimized_out_const): New declaration.
3351 2013-07-09 Doug Evans <dje@google.com>
3353 * defs.h (enum val_prettyformat): Renamed from val_prettyprint.
3354 Enum values rename as well. All uses updated.
3355 * valprint.h (value_print_options): Rename member pretty to
3356 pretty format. Rename member prettyprint_arrays to
3357 prettyformat_arrays. Rename member prettyprint_structs to
3358 prettyformat_structs. All uses updated.
3359 (get_no_prettyformat_print_options): Renamed from
3360 get_raw_print_options.
3361 * valprint.c (get_no_prettyformat_print_options): Renamed from
3362 get_raw_print_options. All callers updated.
3363 (show_prettyformat_structs): Renamed from show_prettyprint_structs.
3364 All callers updated.
3365 (show_prettyformat_arrays): Renamed from show_prettyprint_arrays.
3366 All callers updated.
3367 (_initialize_valprint): Improve help text for "set print pretty" and
3370 2013-07-09 Andrew Burgess <aburgess@broadcom.com>
3372 * value.c (value_bits_valid): Revert previous change, and change
3373 by Pedro on 2013-07-04, due to regressions in
3374 gdb.dwarf2/implptr.exp and gdb.dwarf2/pieces.exp.
3376 2013-07-08 Andrew Burgess <aburgess@broadcom.com>
3377 Pedro Alves <palves@redhat.com>
3379 * value.c (value_bits_valid): If the value is not lval_computed
3380 or has no check validity handler then the answer is the
3381 optimized_out flag, otherwise defer to the handler.
3383 2013-07-06 Eli Zaretskii <eliz@gnu.org>
3385 * top.c (print_gdb_configuration): Explain in output of
3386 --configuration what does "relocatable" mean.
3388 * main.c (print_gdb_help): Regroup options in the --help text.
3389 See http://sourceware.org/ml/gdb-patches/2013-04/msg00362.html for
3390 the relevant discussions.
3392 2013-07-06 Yao Qi <yao@codesourcery.com>
3394 * breakpoint.h (struct breakpoint_ops) <create_breakpoints_sal>:
3395 Remove parameter 'lsal'.
3396 * breakpoint.c (create_breakpoint): Move local variable 'lsal'
3397 to inner block. Caller update.
3398 (base_breakpoint_create_breakpoints_sal): Update.
3399 (bkpt_create_breakpoints_sal): Likewise.
3400 (tracepoint_create_breakpoints_sal): Likewise.
3401 (strace_marker_create_breakpoints_sal): Get 'lsal' from the
3402 element 0 of vector 'canonical->sals'.
3404 2013-07-05 Luis Machado <lgustavo@codesourcery.com>
3406 * rs6000-tdep.c (rs6000_stab_reg_to_regnum): Return the real
3407 register number instead of the pseudo register one.
3408 (rs6000_dwarf2_reg_to_regnum): Likewise.
3410 2013-07-04 Pedro Alves <palves@redhat.com>
3412 * findvar.c (value_of_register): Use allocate_optimized_out_value
3413 if the register has been optimized out, instead of
3414 set_value_optimized_out.
3415 * frame-unwind.c (frame_unwind_got_optimized): Use
3416 allocate_optimized_out_value.
3418 2013-07-04 Pedro Alves <palves@redhat.com>
3420 * value.c (value_bits_valid): If the value is not lval_computed,
3421 or doesn't have a check_validity hook, assume the value is entirely
3424 2013-07-04 Andrew Burgess <aburgess@broadcom.com>
3426 * stack.c (read_frame_arg): No longer fetch lazy values.
3427 * value.c (value_optimized_out): If the value is not already
3428 marked optimized out, and is lazy then fetch it.
3429 (value_primitive_field): Move optimized out check to later in the
3430 function, after we have loaded any lazy values.
3431 (value_fetch_lazy): Use optimized out flag directly rather than
3432 calling optimized_out method.
3434 2013-07-04 Andrew Burgess <aburgess@broadcom.com>
3436 * valops.c: Don't include "user-regs.h".
3437 (value_fetch_lazy): Moved to value.c.
3438 * value.c: Include "user-regs.h".
3439 (value_fetch_lazy): Moved from valops.c.
3441 2013-07-04 Yao Qi <yao@codesourcery.com>
3444 2013-06-27 Yao Qi <yao@codesourcery.com>
3446 * common/create-version.sh: Update comments. Handle the case
3447 that TARGET_ALIAS is empty.
3449 2013-07-03 Pedro Alves <palves@redhat.com>
3451 * Makefile.in (config.status): Depend on development.sh.
3452 (aclocal_m4_deps): Add libmcheck.m4.
3453 * acinclude.m4: Include libmcheck.m4.
3454 * configure.ac: Source development.sh instead of setting
3455 'development' here. --enable-libmcheck/--disable-libmcheck code
3456 factored out to GDB_AC_LIBMCHECK. Run it.
3457 * development.sh: New file.
3458 * libmcheck.m4: New file.
3459 * configure: Regenerate.
3461 2013-07-02 Tom Tromey <tromey@redhat.com>
3463 * contrib/ari/update-web-ari.sh: Update for version.in change.
3465 2013-07-02 Tom Tromey <tromey@redhat.com>
3467 * common/ptid.h: Comment fixes.
3469 2013-07-01 Tom Tromey <tromey@redhat.com>
3471 * dwarf2read.c (dwarf2_get_dwz_file): Return NULL if
3472 .gnu_debugaltlink not found. Use bfd_get_alt_debug_link_info.
3473 (dwarf2_read_index, create_all_comp_units): Update.
3475 2013-07-01 Tom Tromey <tromey@redhat.com>
3477 * configure.ac (build_warnings): Add -Wold-style-definition.
3478 * configure: Rebuild.
3479 * machoread.c (_initialize_machoread): Use "(void)".
3480 * macrocmd.c (macro_inform_no_debuginfo): Fix formatting;
3483 2013-07-01 Tom Tromey <tromey@redhat.com>
3485 * configure.ac (build_warnings): Add -Wold-style-declaration.
3486 * configure: Rebuild.
3487 * dsrec.c (make_srec): Use "static const", not "const static".
3488 * h8300-tdep.c (h8300_breakpoint_from_pc): Use "static const",
3490 * mi/mi-parse.c (mi_no_values, mi_simple_values, mi_all_values):
3491 Use "static const", not "const static".
3492 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Use "static const",
3494 * moxie-tdep.c (moxie_breakpoint_from_pc): Use "static const",
3496 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Use "static const",
3498 * v850-tdep.c (v850_breakpoint_from_pc): Use "static const",
3500 (v850_dbtrap_breakpoint_from_pc): Likewise.
3501 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Use "static const",
3504 2013-07-01 Tom Tromey <tromey@redhat.com>
3506 * configure.ac (build_warnings): Add -Wmissing-parameter-type.
3507 * configure: Rebuild.
3509 2013-07-01 Pedro Alves <palves@redhat.com>
3511 * defs.h: Include "pathmax.h".
3512 * utils.c: Don't include sys/param.h.
3513 (gdb_realpath): Remove code that checks for MAXPATHLEN.
3514 * solib-ia64-hpux.c (ia64_hpux_handle_load_event): Use PATH_MAX
3515 instead of MAXPATHLEN.
3516 * solib-sunos.c: Don't include sys/param.h.
3517 * xcoffread.c: Don't include sys/param.h.
3518 * bsd-kvm.c: Don't include sys/param.h.
3519 * darwin-nat.c: Don't include sys/param.h.
3520 (darwin_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
3521 * darwin-nat-info.c: Don't include sys/param.h.
3522 * fbsd-nat.c (fbsd_pid_to_exec_file): Use PATH_MAX instead of
3524 * i386obsd-nat.c: Don't include sys/param.h.
3525 * inf-child.c: Don't include sys/param.h.
3526 (inf_child_fileio_readlink): Use PATH_MAX instead of MAXPATHLEN.
3527 * linux-fork.c: Don't include sys/param.h.
3528 (fork_save_infrun_state): Use PATH_MAX instead of MAXPATHLEN.
3529 * linux-nat.c: Don't include sys/param.h.
3530 (linux_child_pid_to_exec_file, linux_proc_pending_signals)
3531 (linux_proc_pending_signals): Use PATH_MAX instead of MAXPATHLEN.
3532 * m68klinux-nat.c: Don't include sys/param.h.
3533 * nbsd-nat.c: Don't include sys/param.h.
3534 (nbsd_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
3535 * ppc-linux-nat.c: Don't include sys/param.h.
3536 * rs6000-nat.c: Don't include sys/param.h.
3537 * spu-linux-nat.c. Don't include sys/param.h.
3538 * windows-nat.c: Don't include sys/param.h.
3539 * xtensa-linux-nat.c: Don't include sys/param.h.
3540 * config/i386/nm-fbsd.h: Don't include sys/param.h.
3542 2013-07-01 Pedro Alves <palves@redhat.com>
3544 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add pathmax.
3545 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/pathmax.m4.
3546 * gnulib/aclocal.m4: Regenerate.
3547 * gnulib/config.in: Regenerate.
3548 * gnulib/configure: Regenerate.
3549 * gnulib/import/pathmax.h: New file.
3550 * gnulib/import/Makefile.am: Regenerate.
3551 * gnulib/import/Makefile.in: Regenerate.
3552 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
3553 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
3554 * gnulib/import/m4/pathmax.m4: New file.
3556 2013-07-01 Pedro Alves <palves@redhat.com>
3558 * configure.ac (GDBINIT): Define, depending on host.
3559 * go32-nat.c (init_go32_ops): Don't override gdbinit here.
3560 * top.c (PATH_MAX): Delete fallback definition.
3561 (GDBINIT_FILENAME): Delete.
3562 (gdbinit): Reimplement as const char array set to the GDBINIT
3564 * top.h (gdbinit): Make const.
3565 * configure, config.in: Regenerate.
3567 2013-07-01 Pedro Alves <palves@redhat.com>
3569 * cli/cli-cmds.c (source_script): Make 'file' parameter const.
3570 * cli/cli-cmds.h (source_script): Likewise.
3571 * exceptions.c (catch_command_errors_const): New function.
3572 * exceptions.h (catch_command_errors_const): Declare.
3573 * main.c (get_init_files): Make parameters const, and adjust.
3574 (captured_main): Make 'system_gdbinit', 'home_gdbinit' and
3575 'local_gdbinit' locals const. Adjust to use
3576 catch_command_errors_const.
3577 (print_gdb_help): Make 'system_gdbinit', 'home_gdbinit' and
3578 'local_gdbinit' locals const.
3580 2013-07-01 Pedro Alves <palves@redhat.com>
3582 * defs.h: Don't check HAVE_UNISTD_H before including <unistd.h>.
3583 (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO): Delete.
3584 * tracepoint.c: Don't check HAVE_UNISTD_H before including
3587 2013-07-01 Pedro Alves <palves@redhat.com>
3589 Import the "unistd" gnulib module.
3590 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add "unistd".
3591 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/off_t.m4,
3592 import/m4/ssize_t.m4, import/m4/sys_types_h.m4 and
3593 import/m4/unistd_h.m4.
3594 * gnulib/aclocal.m4: Renenerate.
3595 * gnulib/config.in: Renenerate.
3596 * gnulib/configure: Renenerate.
3597 * gnulib/import/Makefile.am: Renenerate.
3598 * gnulib/import/Makefile.in: Renenerate.
3599 * gnulib/import/m4/gnulib-cache.m4: Renenerate.
3600 * gnulib/import/m4/gnulib-comp.m4: Renenerate.
3601 * gnulib/import/m4/off_t.m4: New file.
3602 * gnulib/import/m4/ssize_t.m4: New file.
3603 * gnulib/import/m4/sys_types_h.m4: New file.
3604 * gnulib/import/m4/unistd_h.m4: New file.
3605 * gnulib/import/sys_types.in.h: New file.
3606 * gnulib/import/unistd.c: New file.
3607 * gnulib/import/unistd.in.h: New file.
3609 2013-07-01 Pedro Alves <palves@redhat.com>
3611 * utils.c <pathconf/_PC_PATH_MAX use>: Check if _PC_PATH_MAX is
3612 defined instead of checking HAVE_UNISTD_H.
3614 2013-07-01 Pedro Alves <palves@redhat.com>
3616 Reimport gnulib from scratch.
3617 * gnulib/Makefile.in (aclocal_m4_deps): Remove reference to
3618 import/m4/onceonly.m4.
3619 * gnulib/aclocal.m4: Renegerate.
3620 * gnulib/config.in: Renegerate.
3621 * gnulib/configure: Renegerate.
3622 * gnulib/import/Makefile.in: Renegerate.
3623 * gnulib/import/extra/update-copyright: Renegerate.
3624 * gnulib/import/m4/onceonly.m4: Delete.
3626 2013-07-01 Pedro Alves <palves@redhat.com>
3628 * tui/tui-regs.c (pagination_enabled): Delete declaration.
3630 2013-06-30 Jan Kratochvil <jan.kratochvil@redhat.com>
3633 * remote.c (async_remote_interrupt_twice): Make it static.
3634 * remote.h (async_remote_interrupt_twice): Remove the declaration.
3636 2013-06-29 Sergio Durigan Junior <sergiodj@redhat.com>
3638 * ia64-linux-tdep.c: Include <ctype.h>.
3639 (ia64_linux_stap_is_single_operand): New function.
3640 (ia64_linux_init_abi): Initialize SystemTap related attributes.
3642 2013-06-28 Tom Tromey <tromey@redhat.com>
3644 * Makefile.in (version.c): Use version.in, not
3646 * common/create-version.sh: Likewise.
3647 * common/version.in: Move...
3648 * version.in: ...here.
3650 2013-06-28 Pedro Alves <palves@redhat.com>
3652 * infrun.c (set_observer_mode): Don't declare pagination_enabled
3654 * utils.h (pagination_enabled): Declare.
3656 2013-06-28 Pedro Alves <palves@redhat.com>
3658 * infrun.c (non_stop, non_stop_1, set_non_stop, show_non_stop):
3659 Move higher up in file.
3661 2013-06-28 Tom Tromey <tromey@redhat.com>
3663 * tracepoint.c (deprecated_readline_begin_hook)
3664 (deprecated_readline_hook, deprecated_readline_end_hook): Don't
3667 2013-06-28 Pedro Alves <palves@redhat.com>
3670 * tui/tui-regs.c (tui_get_register): Fetch value contents before
3671 checking if they're available.
3672 * value.c (value_available_contents_eq): Change comment.
3673 * value.h (value_available_contents_eq): Expand comment.
3675 2013-06-27 Tom Tromey <tromey@redhat.com>
3677 * target.c (find_run_target): Remove.
3678 * target.h (find_run_target): Remove.
3680 2013-06-27 Tom Tromey <tromey@redhat.com>
3682 * corelow.c (core_gdbarch): Now static.
3684 2013-06-27 Tom Tromey <tromey@redhat.com>
3686 * target.c (target_struct_index): Remove.
3688 2013-06-27 Pedro Alves <palves@redhat.com>
3690 * infrun.c: Remove comment describing the 'stepping over runtime
3691 loader dynamic symbol resolution code' mechanism; moved to
3694 2013-06-27 Pedro Alves <palves@redhat.com>
3696 * exceptions.c (catch_command_errors): Remove spurious space.
3697 * exceptions.h (catch_command_errors): Second parameter is "arg",
3700 2013-06-27 Yao Qi <yao@codesourcery.com>
3702 * common/create-version.sh: Update comments. Handle the case
3703 that TARGET_ALIAS is empty.
3705 2013-06-26 Pedro Alves <palves@redhat.com>
3707 * infrun.c (SOLIB_IN_DYNAMIC_LINKER): Delete macro and describing
3710 2013-06-26 Pedro Alves <palves@redhat.com>
3712 * infrun.c: Update comments on stepping over runtime loader
3713 dynamic symbol resolution code.
3715 2013-06-26 Sergio Durigan Junior <sergiodj@redhat.com>
3717 * ax-gdb.h (union exp_element): Forward declare.
3718 * parser-defs.h: Include expression.h.
3720 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
3722 * mips-tdep.c (fetch_mips_16): Use unmake_compact_addr.
3724 2013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
3726 * tracepoint.c (trace_save): Extend tsave to save starttime, stoptime.
3728 2013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
3730 Fix trace-status to output proper start-time and stop-time.
3731 * tracepoint.c (trace_status_command): Fix type of printf arg to
3732 prevent improper type conversion.
3733 (trace_status_mi): Likewise.
3735 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
3737 * mips-tdep.c (mips_next_pc): Fix a typo.
3739 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
3741 * mips-tdep.c (micromips_scan_prologue): Fix a typo.
3743 2013-06-26 Pedro Alves <pedro@codesourcery.com>
3744 Yao Qi <yao@codesourcery.com>
3746 * mi/mi-cmds.c (mi_cmds): Register -trace-frame-collected.
3747 * mi/mi-cmds.h (mi_cmd_trace_frame_collected): Declare.
3748 * mi/mi-main.c (print_variable_or_computed): New function.
3749 (mi_cmd_trace_frame_collected): New function.
3750 * tracepoint.c (find_trace_state_variable_by_number): New.
3751 (struct traceframe_info): Move to tracepoint.h
3752 (struct collection_list): Likewise.
3753 (do_collect_symbol): Include locals and arguments in the
3754 collected variables list.
3755 (clear_collection_list): Clear wholly collected variables list
3756 and computed variables list.
3757 (append_exp): New function.
3758 (encode_actions_1): Include variables in the wholly
3759 collected variables list. Include memory ranges and
3760 full-fledged expressions in the computed expressions list.
3761 (encode_actions): Move some code to ...
3762 Return the cleanup chain.
3763 (encode_actions_rsp): ... here. New function.
3764 (get_traceframe_location, get_traceframe_info): Remove static.
3765 * tracepoint.h (struct memrange): Moved from tracepoint.c.
3766 (struct collection_list): Moved from tracepoint.c. Add two
3767 new fields 'wholly_collected' and 'computed'.
3768 (find_trace_state_variable_by_number): Declare.
3769 (encode_actions): Adjust declaration.
3770 (encode_actions_rsp): Declare.
3771 (get_traceframe_info, get_traceframe_location): Declare.
3773 * NEWS: Mention new MI command -trace-frame-collected.
3775 2013-06-26 Pedro Alves <pedro@codesourcery.com>
3776 Yao Qi <yao@codesourcery.com>
3778 * ctf.c (ctf_traceframe_info): Push trace state variables
3779 present in the trace data into the traceframe info object.
3780 * breakpoint.c (DEF_VEC_I): Remove.
3781 * common/filestuff.c (DEF_VEC_I): Likewise.
3782 * dwarf2loc.c (DEF_VEC_I): Likewise.
3783 * mi/mi-main.c (DEF_VEC_I): Likewise.
3784 * common/gdb_vecs.h (DEF_VEC_I): Define vector for int.
3785 * features/traceframe-info.dtd: Add tvar element and its
3787 * tracepoint.c (free_traceframe_info): Free vector 'tvars'.
3788 (build_traceframe_info): Push trace state variables present in
3789 the trace data into the traceframe info object.
3790 (traceframe_info_start_tvar): New function.
3791 (tvar_attributes): New.
3792 (traceframe_info_children): Add "tvar" element.
3793 * tracepoint.h (struct traceframe_info) <tvars>: New field.
3795 * NEWS: Mention the change in GDB and GDBserver.
3797 2013-06-26 Pedro Alves <pedro@codesourcery.com>
3798 Yao Qi <yao@codesourcery.com>
3800 * tracepoint.c (trace_dump_command): Move code to ...
3801 (get_traceframe_location): ... here. New.
3803 2013-06-26 Pedro Alves <pedro@codesourcery.com>
3804 Yao Qi <yao@codesourcery.com>
3806 * tracepoint.c (trace_dump_command): GDB emits an error
3807 instead of a warning when a traceframe is not selected.
3809 2013-06-26 Pedro Alves <pedro@codesourcery.com>
3810 Yao Qi <yao@codesourcery.com>
3812 * tracepoint.c (tracepoint_list, stepping_list): Remove.
3813 (clear_collection_list): Free fields 'aexpre_list' and 'list'
3815 (do_clear_collection_list, init_collection_list): New.
3816 (encode_actions): Add local variables 'tracepoint_list' and
3817 'stepping_list'. Call init_collection_list and make cleanup
3818 which calls do_clear_collection_list. Don't call
3819 clear_collection_list.
3820 (_initialize_tracepoint): Delete references to
3821 'tracepoint_list' and 'stepping_list'.
3823 2013-06-25 Tom Tromey <tromey@redhat.com>
3825 * common/create-version.sh (date): Use "$", not "$$" in sed
3828 2013-06-25 Kevin Buettner <kevinb@redhat.com>
3830 * NEWS (New targets): Add entry for TI MSP430.
3832 2013-06-25 Yao Qi <yao@codesourcery.com>
3834 * remote.c (remote_start_remote): Move code to upload tsv
3837 2013-06-25 Yao Qi <yao@codesourcery.com>
3838 Hui Zhu <hui@codesourcery.com>
3839 Pedro Alves <palves@redhat.com>
3841 PR breakpoints/15075
3842 PR breakpoints/15434
3843 * breakpoint.c (bpstat_stop_status): Call
3844 b->ops->after_condition_true.
3845 (update_dprintf_command_list): Don't append "continue" command
3846 to the command list of dprintf breakpoint.
3847 (base_breakpoint_after_condition_true): New function.
3848 (base_breakpoint_ops): Add base_breakpoint_after_condition_true.
3849 (dprintf_after_condition_true): New function.
3850 (initialize_breakpoint_ops): Set dprintf_after_condition_true.
3851 * breakpoint.h (breakpoint_ops): Add after_condition_true.
3853 2013-06-24 Kevin Buettner <kevinb@redhat.com>
3855 * Makefile.in (ALL_TARGET_OBS): Add msp430-tdep.o.
3856 (ALLDEPFILES): Add msp430-tdep.c.
3857 * configure.tgt (msp430*-*-elf): New target.
3858 * msp430-tdep.c: New file.
3860 2013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
3862 * mips-tdep.c (mips_elf_make_msymbol_special): Handle MIPS16 and
3863 microMIPS synthetic symbols.
3865 2013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
3867 * objfiles.h (pc_in_section): New prototype.
3868 (in_plt_section): Remove name argument, replace prototype with
3869 static inline function.
3870 * mips-tdep.h: Include "objfiles.h".
3871 (in_mips_stubs_section): New function.
3872 * hppa-tdep.h (gdbarch_tdep): Remove name argument of
3873 in_solib_call_trampoline member.
3874 (hppa_in_solib_call_trampoline): Remove name argument.
3875 * objfiles.c (pc_in_section): New function.
3876 (in_plt_section): Remove function.
3877 * mips-linux-tdep.c: Include "objfiles.h".
3878 (mips_linux_in_dynsym_stub): Call in_mips_stubs_section. Remove
3879 name argument. Return 1 rather than the low 16-bit halfword of
3880 any instruction examined.
3881 (mips_linux_in_dynsym_resolve_code): Update
3882 mips_linux_in_dynsym_stub call accordingly.
3883 * mips-tdep.c (mips_stub_frame_sniffer): Use in_mips_stubs_section
3884 rather than an equivalent hand-coded sequence.
3885 * hppa-hpux-tdep.c (in_opd_section): Remove function.
3886 (hppa32_hpux_in_solib_call_trampoline): Remove name argument.
3887 (hppa64_hpux_in_solib_call_trampoline): Likewise.
3888 (hppa64_hpux_find_global_pointer): Use pc_in_section rather than
3890 * hppa-tdep.c (hppa_stub_unwind_sniffer): Remove name argument
3891 on call to tdep->in_solib_call_trampoline.
3892 (hppa_in_solib_call_trampoline): Remove name argument, update
3893 according to in_plt_section change.
3894 (hppa_skip_trampoline_code): Update according to in_plt_section
3896 * aarch64-tdep.c (aarch64_stub_unwind_sniffer): Likewise.
3897 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code):
3899 * arm-tdep.c (arm_stub_unwind_sniffer): Likewise.
3900 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
3901 * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise.
3902 * nios2-tdep.c (nios2_stub_frame_sniffer): Likewise.
3903 * nto-tdep.c (nto_relocate_section_addresses): Likewise.
3904 * s390-tdep.c (s390_stub_frame_sniffer): Likewise.
3905 * sh-tdep.c (sh_stub_unwind_sniffer): Likewise.
3906 * solib-dsbt.c (dsbt_in_dynsym_resolve_code): Likewise.
3907 * solib-frv.c (frv_in_dynsym_resolve_code): Likewise.
3908 * solib-svr4.c (svr4_in_dynsym_resolve_code): Likewise.
3909 * solib-target.c (solib_target_in_dynsym_resolve_code): Likewise.
3910 * sparc-tdep.c (sparc_analyze_prologue): Likewise.
3911 * tic6x-tdep.c (tic6x_stub_unwind_sniffer): Likewise.
3913 2013-06-24 Joel Brobecker <brobecker@adacore.com>
3915 * common/create-version.sh: Fix expansion of $host_alias
3916 and $target_alias in generation of HOST_NAME and TARGET_NAME
3919 2013-06-24 Tom Tromey <tromey@redhat.com>
3921 * common/create-version.sh: New file.
3922 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
3924 (HFILES_NO_SRCDIR): Use common/version.h.
3925 * version.in: Move to ...
3926 * common/version.in: ... here. Replace date with "DATE".
3927 * version.h: Move to ...
3928 * common/version.h: ... here.
3930 2013-06-21 Joel Brobecker <brobecker@adacore.com>
3932 * gdb/gnulib/Makefile.in: Update date in copyright header.
3933 * gdb/gnulib/configure.ac: Ditto.
3934 * gdb/gnulib/update-gnulib.sh: Ditto.
3936 2013-06-21 Joel Brobecker <brobecker@adacore.com>
3938 * copyright.py (EXCLUDE_LIST): Replace "gdb/gnulib" by
3939 "gdb/gnulib/import".
3941 2013-06-21 Will Newton <will.newton@linaro.org>
3943 * doublest.c (ldfrexp): Remove function.
3944 (convert_doublest_to_floatformat): Call frexpl instead of
3947 2013-06-21 Will Newton <will.newton@linaro.org>
3949 * gnulib/update-gnulib.sh(IMPORTED_GNULIB_MODULES): Add frexpl.
3950 * gnulib/aclocal.m4: Regenerate.
3951 * gnulib/config.in: Regenerate.
3952 * gnulib/configure: Regenerate.
3953 * gnulib/import/Makefile.am: Update.
3954 * gnulib/import/Makefile.in: Update.
3955 * gnulib/import/m4/gnulib-cache.m4: Update.
3956 * gnulib/import/m4/gnulib-comp.m4: Update.
3957 * gnulib/import/float+.h: Import.
3958 * gnulib/import/float.c: Import.
3959 * gnulib/import/float.in.h: Import.
3960 * gnulib/import/fpucw.h: Import.
3961 * gnulib/import/frexp.c: Import.
3962 * gnulib/import/frexpl.c: Import.
3963 * gnulib/import/isnan.c: Import.
3964 * gnulib/import/isnand-nolibm.h: Import.
3965 * gnulib/import/isnand.c: Import.
3966 * gnulib/import/isnanl-nolibm.h: Import.
3967 * gnulib/import/isnanl.c: Import.
3968 * gnulib/import/itold.c: Import.
3969 * gnulib/import/m4/exponentd.m4: Import.
3970 * gnulib/import/m4/exponentl.m4: Import.
3971 * gnulib/import/m4/float_h.m4: Import.
3972 * gnulib/import/m4/fpieee.m4: Import.
3973 * gnulib/import/m4/frexp.m4: Import.
3974 * gnulib/import/m4/frexpl.m4: Import.
3975 * gnulib/import/m4/isnand.m4: Import.
3976 * gnulib/import/m4/isnanl.m4: Import.
3977 * gnulib/import/m4/math_h.m4: Import.
3978 * gnulib/import/math.c: Import.
3979 * gnulib/import/math.in.h: Import.
3981 2013-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3983 * common/linux-btrace.c (cpu_supports_btrace): Remove variable vendor,
3984 replace strcmp with signature_INTEL_ebx, signature_INTEL_ecx and
3985 signature_INTEL_edx comparisons.
3987 2013-06-20 Doug Evans <dje@google.com>
3990 * dwarf2read.c (try_open_dwop_file): New arg search_cwd.
3991 All callers updated.
3992 (open_dwp_file): If we can't find the dwp file, search the basename
3993 in debug-file-directory.
3995 * dwarf2read.c (struct dwp_file): Fix comment.
3996 (open_and_init_dwp_file): Set dwp_file->name to bfd's file name.
3998 * source.c (openp): Document OPF_TRY_CWD_FIRST+OPF_SEARCH_IN_PATH
4001 2013-06-20 Yao Qi <yao@codesourcery.com>
4003 * breakpoint.c (create_breakpoint): Fix code indentation.
4005 2013-06-20 Yao Qi <yao@codesourcery.com>
4007 * breakpoint.c (create_breakpoints_sal_default): Remove
4008 parameter 'lsal'. Update declaration.
4009 (bkpt_create_breakpoints_sal): Caller update.
4010 (tracepoint_create_breakpoints_sal): Likewise.
4012 2013-06-20 Pedro Alves <pedro@codesourcery.com>
4013 Yao Qi <yao@codesourcery.com>
4015 * NEWS: Mention the new option '--skip-unavailable' of command
4016 -data-list-register-values.
4017 * mi/mi-main.c (mi_cmd_data_list_register_values): Accept the
4018 --skip-unavailable option. Adjust to use output_register.
4019 (output_register): Add new 'skip_unavailable' parameter.
4022 2013-06-19 Mike Frysinger <vapier@gentoo.org>
4024 * Makefile.in (HFILES_NO_SRCDIR): Add common/i386-cpuid.h and
4025 common/i386-gcc-cpuid.h.
4026 * common/i386-cpuid.h: New wrapper header around i386-gcc-cpuid.h.
4027 * common/i386-gcc-cpuid.h: Rename from testsuite/gdb.arch/i386-cpuid.h.
4028 Copy the latest version from upstream gcc.
4029 * common/linux-btrace.c: Include i386-cpuid.h.
4030 (intel_supports_btrace): Delete x86 ifdefs and replace inline asm with
4032 (cpu_supports_btrace): Likewise.
4033 * go32-nat.c: Include i386-cpuid.h.
4034 (go32_sysinfo): Add (disabled) calls to i386_cpuid with comments.
4036 2013-06-19 Doug Evans <dje@google.com>
4038 * symfile.c (symfile_bfd_open): Delete unnecessary declaration.
4039 (get_section_index): Ditto.
4041 2013-06-19 Tom Tromey <tromey@redhat.com>
4043 * breakpoint.c (_initialize_breakpoint): Remove trailing \n from
4046 2013-06-18 Doug Evans <dje@google.com>
4048 * dwarf2read.c (dw2_symtab_iter_next): Check value of cu_index
4050 (dw2_expand_symtabs_matching): Fix symbol kind validity check.
4051 Move test of cu_index closer to use. Print complaint if cu_index
4054 2013-06-18 Joel Brobecker <brobecker@adacore.com>
4056 * machoread.c (oso_vector): Delete this global.
4057 (macho_register_oso): Add new parameter "oso_vector_ptr".
4058 Use it instead of the "oso_vector" global.
4059 (macho_symtab_read, macho_symfile_read_all_oso): Likewise.
4060 (macho_symfile_read): Use a local oso_vector, to be free'ed
4061 at the end of this function, in place of the old "oso_vector"
4062 global. Update various function calls accordingly. Use one
4063 single cleanup chain for the entire function.
4065 2013-06-18 Joel Brobecker <brobecker@adacore.com>
4067 * dwarf2read.c (dwarf2_per_objfile_free): Replace uses of
4068 DWARF2_PER_OBJFILE by uses of DATA instead.
4070 2013-06-18 Tom Tromey <tromey@redhat.com>
4072 * break-catch-sig.c (signal_catchpoint_explains_signal): Add 'sig'
4074 * breakpoint.c (bpstat_explains_signal): Add 'sig' argument.
4075 Special case signals other than GDB_SIGNAL_TRAP.
4076 (explains_signal_watchpoint): New function.
4077 (base_breakpoint_explains_signal): Add 'sig' argument.
4078 (initialize_breakpoint_ops): Set 'explains_signal' method for
4080 * breakpoint.h (struct breakpoint_ops) <explains_signal>: Add
4082 (bpstat_explains_signal): Likewise.
4083 * infrun.c (handle_syscall_event, handle_inferior_event): Update.
4085 2013-06-18 Tom Tromey <tromey@redhat.com>
4087 * python/py-inferior.c (gdbpy_selected_inferior): Don't incref.
4089 2013-06-18 Tom Tromey <tromey@redhat.com>
4091 * python/python.c (finish_python_initialization): Decref
4092 'pythondir' on failure path as well.
4094 2013-06-18 Tom Tromey <tromey@redhat.com>
4097 * dwarf2loc.c (read_pieced_value): Truncate this_size_bits
4098 after taking bits_to_skip into account. Sign extend byte_offset.
4099 * utils.h (gdb_sign_extend): Declare.
4100 * utils.c (gdb_sign_extend): New function.
4102 2013-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4104 * dwarf2read.c (write_psymtabs_to_index): Ignore NULL PSYMTAB.
4106 2013-06-17 Pierre Muller <muller@sourceware.org>
4108 * corelow.c (core_open): Print GDB signal name instead of target
4111 2013-06-17 Mike Frysinger <vapier@gentoo.org>
4113 * .gitignore: Add /gcore.
4115 2013-06-13 Doug Evans <dje@google.com>
4117 * dwarf2read.c (try_open_dwop_file): Work around behaviour of
4118 OPF_TRY_CWD_FIRST to not search path if the file contains a '/'.
4120 2013-06-12 Phil Muldoon <pmuldoon@redhat.com>
4122 * stack.c (backtrace_command_1): Fix indentation.
4124 2013-06-11 Joel Brobecker <brobecker@adacore.com>
4126 * window-nat.c (thread_rec): Add missing empty line after
4127 local variable declaration.
4129 2013-06-11 Joel Brobecker <brobecker@adacore.com>
4131 * windows-nat.c (thread_rec): Revert format used to print
4132 error code returned by SuspendThread from %d back to %u.
4134 2013-06-11 Joel Brobecker <brobecker@adacore.com>
4136 * windows-nat.c (windows_continue): Add "0x" prefix for thread
4138 (get_windows_debug_event): Likewise, for all debug traces.
4140 2013-06-11 Joel Brobecker <brobecker@adacore.com>
4142 * window-nat.c (thread_rec): Add thread ID in SuspendThread
4145 2013-06-08 Pedro Alves <pedro@codesourcery.com>
4146 Yao Qi <yao@codesourcery.com>
4148 * mi/mi-main.c (get_register): Remove declaration.
4149 (output_register): Declare.
4150 (mi_cmd_data_list_register_values): Remove local variable
4151 'tuple_cleanup'. Move some code into output_register.
4152 (get_register): Renamed to ...
4153 (output_register): ... this. Output the register's
4154 "number" ui_out tuple here.
4156 2013-06-07 Pedro Alves <palves@redhat.com>
4158 * darwin-nat.c: Fix formating in copyright header.
4159 * darwin-nat.h: Likewise.
4160 * gnu-nat.c: Likewise.
4161 * machoread.c: Likewise.
4163 2013-06-07 Pedro Alves <palves@redhat.com>
4166 * regformats/regdat.sh: Output #include tdesc.h. Make globals
4167 static. Output a global target description pointer.
4168 (init_registers_${name}): Adjust to initialize a
4169 target description structure.
4171 2013-06-07 Will Newton <will.newton@linaro.org>
4173 * printcmd.c (build_address_symbolic): Call
4174 gdbarch_addr_bits_remove for text minimal symbols.
4176 2013-06-07 Will Newton <will.newton@linaro.org>
4178 * MAINTAINERS: Add myself to Write After Approval.
4180 2013-06-07 Yao Qi <yao@codesourcery.com>
4182 * tracepoint.c (start_tracing): Move code to ...
4183 (trace_reset_local_state): ... here. New.
4184 (disconnect_tracing): Don't call set_current_traceframe,
4185 set_tracepoint_num, and set_traceframe_context. Call
4186 trace_reset_local_state instead.
4187 (tfile_close): Call trace_reset_local_state.
4188 * ctf.c (ctf_close): Likewise.
4189 * remote.c (remote_close): Likewise.
4190 * tracepoint.h (trace_reset_local_state): Declare.
4192 2013-06-06 Doug Evans <dje@google.com>
4194 * dwarf2read.c: Whitespace fixes for DWP file format documentation,
4195 and fix header docs.
4197 2013-06-05 Doug Evans <dje@google.com>
4198 Keith Seitz <keiths@redhat.com>
4201 * cp-namespace.c (find_symbol_in_baseclass): Call
4202 cp_lookup_symbol_in_namespace instead of cp_lookup_symbol_namespace.
4203 Check result of call to lookup_symbol_static.
4204 Call lookup_static_symbol_aux unconditionally.
4205 Call check_typedef on base types before accessing them.
4206 (cp_lookup_nested_symbol): Fix comment.
4208 2013-06-05 Luis Machado <lgustavo@codesourcery.com>
4210 * gnu-v3-abi.c (gnuv3_skip_trampoline): Handle thunk
4211 minimal symbols pointing to function descriptors.
4213 2013-06-05 Tom Tromey <tromey@redhat.com>
4215 * python/py-utils.c (gdb_pymodule_addobject): Cast away const.
4217 2013-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
4218 Pedro Alves <palves@redhat.com>
4220 * remote.c (remote_wait_as): Restore signal handler before returning
4221 when GDB gets a notification.
4223 2013-06-04 Gary Benson <gbenson@redhat.com>
4226 * breakpoint.h (handle_solib_event): Moved function declaration
4228 * breakpoint.c (handle_solib_event): Moved function to solib.c.
4229 (bpstat_stop_status): Pass new argument to handle_solib_event.
4230 * solib.h (update_solib_breakpoints): New function declaration.
4231 (handle_solib_event): Moved function declaration from
4233 * solib.c (update_solib_breakpoints): New function.
4234 (handle_solib_event): Moved function from breakpoint.c.
4235 Updated to call solib_ops->handle_event if not NULL.
4236 * solist.h (target_so_ops): New fields "update_breakpoints" and
4238 * infrun.c (set_stop_on_solib_events): New function.
4239 (_initialize_infrun): Use the above for "set
4240 stop-on-solib-events".
4241 (handle_inferior_event): Pass new argument to handle_solib_event.
4242 * solib-svr4.c (probe.h): New include.
4243 (svr4_free_library_list): New forward declaration.
4244 (probe_action): New enum.
4245 (probe_info): New struct.
4246 (probe_info): New static variable.
4247 (NUM_PROBES): New definition.
4248 (svr4_info): New fields "using_xfer", "probes_table" and
4250 (free_probes_table): New function.
4251 (free_solib_list): New function.
4252 (svr4_pspace_data_cleanup): Free probes table and solib list.
4253 (svr4_copy_library_list): New function.
4254 (svr4_current_sos_via_xfer_libraries): New parameter "annex".
4255 (svr4_read_so_list): New parameter "prev_lm".
4256 (svr4_current_sos_direct): Renamed from "svr4_current_sos".
4257 (svr4_current_sos): New function.
4258 (probe_and_action): New struct.
4259 (hash_probe_and_action): New function.
4260 (equal_probe_and_action): Likewise.
4261 (register_solib_event_probe): Likewise.
4262 (solib_event_probe_at): Likewise.
4263 (solib_event_probe_action): Likewise.
4264 (solist_update_full): Likewise.
4265 (solist_update_incremental): Likewise.
4266 (disable_probes_interface_cleanup): Likewise.
4267 (svr4_handle_solib_event): Likewise.
4268 (svr4_update_solib_event_breakpoint): Likewise.
4269 (svr4_update_solib_event_breakpoints): Likewise.
4270 (svr4_create_solib_event_breakpoints): Likewise.
4271 (enable_break): Free probes table before creating breakpoints.
4272 Use svr4_create_solib_event_breakpoints to create breakpoints.
4273 (svr4_solib_create_inferior_hook): Free the solib list.
4274 (_initialize_svr4_solib): Initialise
4275 svr4_so_ops.handle_solib_event and svr4_so_ops.update_breakpoints.
4277 2013-06-04 Gary Benson <gbenson@redhat.com>
4279 * target.h (target_ops): New field
4280 "to_augmented_libraries_svr4_read".
4281 (target_augmented_libraries_svr4_read): New macro.
4282 * target.c (update_current_target): Handle
4283 to_augmented_libraries_svr4_read.
4284 * remote.c (remote_state): New field
4285 "augmented_libraries_svr4_read".
4286 (remote_augmented_libraries_svr4_read_feature): New function.
4287 (remote_protocol_features): Add entry for
4288 "augmented-libraries-svr4-read".
4289 (remote_augmented_libraries_svr4_read): New function.
4290 (init_remote_ops): Initialize
4291 remote_ops.to_augmented_libraries_svr4_read.
4293 2013-06-04 Gary Benson <gbenson@redhat.com>
4297 2013-06-04 Gary Benson <gbenson@redhat.com>
4299 * objfiles.h (inhibit_section_map_updates): New function
4301 (resume_section_map_updates): Likewise.
4302 (resume_section_map_updates_cleanup): Likewise.
4303 * objfiles.c (objfile_pspace_info): Removed field
4304 "objfiles_changed_p". New fields "new_objfiles_available",
4305 "section_map_dirty" and "inhibit_updates".
4306 (allocate_objfile): Set new_objfiles_available.
4307 (free_objfile): Set section_map_dirty.
4308 (objfile_relocate1): Likewise.
4309 (in_plt_section): Likewise.
4310 (find_pc_section): Update the conditions under which the
4311 section map will be updated.
4312 (inhibit_section_map_updates): New function.
4313 (resume_section_map_updates): Likewise.
4314 (resume_section_map_updates_cleanup): Likewise.
4316 2013-06-04 Gary Benson <gbenson@redhat.com>
4318 * probe.h (get_probe_argument_count): New declaration.
4319 (evaluate_probe_argument): Likewise.
4320 * probe.c (get_probe_argument_count): New function.
4321 (evaluate_probe_argument): Likewise.
4322 (probe_safe_evaluate_at_pc): Use the above new functions.
4324 2013-06-04 Alan Modra <amodra@gmail.com>
4326 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
4327 * rs6000-tdep.c (read_insn): Add frame param, don't assume big-endian.
4328 (ppc_insns_match_pattern): Add frame param. Avoid multiple
4329 target mem reads on optional insns.
4330 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Update
4331 ppc_insns_match_pattern calls.
4332 * ppc64-tdep.c (ppc64_standard_linkage2, ppc64_standard_linkage3):
4333 Add match for power7 thread safety insns, and new order of
4334 std 2,40(1) insn. Correct code shown for _dl_runtime_resolve
4335 invocation in comment, and update rest of comment.
4336 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN,
4337 PPC64_STANDARD_LINKAGE3_LEN): Delete.
4338 (ppc64_standard_linkage2_target): Update insn offsets.
4339 (ppc64_skip_trampoline_code): Use a single insn buffer. Match newer
4340 stubs first. Update calls.
4342 2013-06-04 Yao Qi <yao@codesourcery.com>
4344 * solib.c (solib_find): Don't need dir separator if path has
4347 2013-06-03 Joel Brobecker <brobecker@adacore.com>
4349 Revert (indirectly causes a SIGSEGV):
4350 * machoread.c (macho_symfile_read): Assign first cleanup to
4353 2013-06-03 Yao Qi <yao@codesourcery.com>
4355 * mi/mi-cmd-var.c (mi_no_values, mi_simple_values): Move to
4356 mi-parse.c. Make them static.
4357 (mi_all_values): Likewise.
4358 (mi_parse_values_option): Move to mi-parse.c. Rename it to
4359 mi_parse_print_values. Make it external.
4360 * mi/mi-cmds.h (mi_no_values, mi_simple_values, mi_all_values):
4361 Remove the declarations.
4362 * mi/mi-parse.c (mi_parse_print_values): Moved from mi-cmd-var.c.
4363 * mi/mi-parse.h (mi_parse_print_values): Declare.
4364 * mi/mi-cmd-stack.c: Include mi-parse.h.
4365 (parse_print_values): Remove
4366 (mi_cmd_stack_list_locals): Call mi_parse_print_values instead
4367 of parse_print_values.
4368 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Likewise.
4370 2013-05-31 Pedro Alves <pedro@codesourcery.com>
4371 Yao Qi <yao@codesourcery.com>
4373 * tracepoint.c (all_tracepoint_actions_and_cleanup): Declare.
4374 (encode_actions): Move code to ...
4375 (all_tracepoint_actions_and_cleanup): ... here. New.
4376 (trace_dump_command): Likewise.
4378 2013-05-30 Tom Tromey <tromey@redhat.com>
4380 * symmisc.c (maintenance_expand_symtabs): Call do_cleanups.
4382 2013-05-30 Tom Tromey <tromey@redhat.com>
4384 * xml-support.c (gdb_xml_create_parser_and_cleanup): Rename from
4385 gdb_xml_create_parser_and_cleanup_1. Return a cleanup. Remove
4386 'old_chain' argument. Add 'parser_result' argument.
4387 (gdb_xml_create_parser_and_cleanup): Remove old version.
4388 (gdb_xml_parse_quick): Update.
4389 (xml_process_xincludes): Update.
4390 * xml-support.h (gdb_xml_create_parser_and_cleanup): Don't
4393 2013-05-30 Tom Tromey <tromey@redhat.com>
4395 * probe.c (collect_probes): Check arguments for NULL before
4396 calling compile_rx_or_error.
4397 * utils.c (compile_rx_or_error): Require 'rx' to be non-NULL.
4400 2013-05-30 Tom Tromey <tromey@redhat.com>
4402 * infrun.c (adjust_pc_after_break): Introduce an outer null
4405 2013-05-30 Tom Tromey <tromey@redhat.com>
4407 * mi/mi-cmd-var.c (varobj_update_one): Add an outer null cleanup.
4409 2013-05-30 Tom Tromey <tromey@redhat.com>
4411 * cli/cli-script.c (read_command_lines_1): Use a null cleanup
4412 for 'old_chain'. Do not check 'head' before processing
4415 2013-05-30 Tom Tromey <tromey@redhat.com>
4417 * mi/mi-cmd-stack.c (list_arg_or_local): Remove
4420 2013-05-30 Tom Tromey <tromey@redhat.com>
4422 * dbxread.c (dbx_read_symtab): Declare 'back_to' in a more
4423 inner scope. Unconditionally call do_cleanups.
4425 2013-05-30 Tom Tromey <tromey@redhat.com>
4427 * source.c (find_and_open_source): Call do_cleanups.
4429 2013-05-30 Tom Tromey <tromey@redhat.com>
4431 * linux-thread-db.c (thread_db_load_search): Unconditionally
4434 2013-05-30 Tom Tromey <tromey@redhat.com>
4436 * solib-aix.c (solib_aix_bfd_open): Don't use a null cleanup
4437 for 'cleanup'; instead use a later one.
4439 2013-05-30 Tom Tromey <tromey@redhat.com>
4441 * python/py-breakpoint.c (bppy_get_commands): Use
4442 explicit, unconditional return.
4443 * python/py-frame.c (frapy_read_var): Likewise.
4444 * python/python.c (gdbpy_decode_line): Likewise.
4446 2013-05-30 Tom Tromey <tromey@redhat.com>
4448 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Call
4449 do_cleanups on all return paths.
4451 2013-05-30 Tom Tromey <tromey@redhat.com>
4453 * top.c (execute_command): Discard 'cleanup_if_error' cleanups.
4455 2013-05-30 Tom Tromey <tromey@redhat.com>
4457 * stabsread.c (read_struct_type): Call do_cleanups along
4460 2013-05-30 Maciej W. Rozycki <macro@codesourcery.com>
4462 * mips-linux-tdep.c: Adjust formatting throughout.
4464 2013-05-30 Tom Tromey <tromey@redhat.com>
4466 * mipsread.c (read_alphacoff_dynamic_symtab): Call do_cleanups
4467 along all return paths.
4469 2013-05-30 Tom Tromey <tromey@redhat.com>
4471 * symfile.c (find_separate_debug_file): Call do_cleanups
4472 along all return paths.
4474 2013-05-30 Tom Tromey <tromey@redhat.com>
4476 * symtab.c (search_symbols): Introduce a null cleanup for
4479 2013-05-30 Tom Tromey <tromey@redhat.com>
4481 * python/py-value.c (valpy_binop): Call do_cleanups before
4484 2013-05-30 Tom Tromey <tromey@redhat.com>
4486 * python/py-prettyprint.c (print_children): Remove extra
4489 2013-05-30 Tom Tromey <tromey@redhat.com>
4491 * python/py-frame.c (frapy_read_var): Call do_cleanups along
4494 2013-05-30 Tom Tromey <tromey@redhat.com>
4496 * python/py-breakpoint.c (bppy_get_commands): Call do_cleanups
4497 along all return paths.
4499 2013-05-30 Tom Tromey <tromey@redhat.com>
4501 * cli/cli-logging.c (set_logging_redirect): Unconditionally
4504 2013-05-30 Tom Tromey <tromey@redhat.com>
4506 * varobj.c (c_value_of_root): Call do_cleanups along all
4509 2013-05-30 Tom Tromey <tromey@redhat.com>
4511 * tracepoint.c (trace_dump_command): Unconditionally call
4514 2013-05-30 Tom Tromey <tromey@redhat.com>
4516 * breakpoint.c (output_thread_groups, parse_cmd_to_aexpr): Call
4517 do_cleanups earlier.
4519 2013-05-30 Tom Tromey <tromey@redhat.com>
4521 * machoread.c (macho_symfile_read): Assign first cleanup to
4524 2013-05-30 Tom Tromey <tromey@redhat.com>
4526 * m32r-rom.c (m32r_load): Call do_cleanups at all returns.
4528 2013-05-30 Tom Tromey <tromey@redhat.com>
4530 * mi/mi-main.c (list_available_thread_groups): Call do_cleanups.
4532 2013-05-30 Tom Tromey <tromey@redhat.com>
4534 * inf-ptrace.c (inf_ptrace_create_inferior): Unconditionally
4535 call discard_cleanups.
4536 (inf_ptrace_attach): Likewise.
4538 2013-05-30 Tom Tromey <tromey@redhat.com>
4540 * remote-mips.c (mips_exit_debug): Call do_cleanups on all
4542 (mips_initialize): Likewise.
4543 (common_open): Call do_cleanups.
4545 2013-05-30 Tom Tromey <tromey@redhat.com>
4547 * utils.c (internal_vproblem): Call do_cleanups.
4549 2013-05-30 Tom Tromey <tromey@redhat.com>
4551 * linespec.c (find_linespec_symbols): Don't reassign to 'cleanup'.
4553 2013-05-30 Tom Tromey <tromey@redhat.com>
4555 * cli/cli-script.c (setup_user_args): Don't return after error.
4557 2013-05-30 Tom Tromey <tromey@redhat.com>
4559 * somread.c (som_symtab_read): Call do_cleanups.
4561 2013-05-30 Tom Tromey <tromey@redhat.com>
4563 * printcmd.c (print_command_1): Unconditionally call do_cleanups.
4565 2013-05-30 Tom Tromey <tromey@redhat.com>
4567 * cli/cli-cmds.c (cd_command, alias_command): Call do_cleanups.
4568 * cli/cli-dump.c (restore_binary_file): Call do_cleanups.
4569 * interps.c (interpreter_exec_cmd): Call do_cleanups.
4570 * source.c (show_substitute_path_command): Call do_cleanups.
4571 (unset_substitute_path_command, set_substitute_path_command):
4573 * symfile.c (load_command): Call do_cleanups.
4575 2013-05-30 Tom Tromey <tromey@redhat.com>
4577 * contrib/cleanup_check.py: New file.
4578 * contrib/gcc-with-excheck: Add option parsing.
4580 2013-05-30 Joel Brobecker <brobecker@adacore.com>
4582 * windows-nat.c (windows_delete_thread): Add missing space
4585 2013-05-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
4587 * inferior.c (top level): Include tilde.h.
4588 (add_inferior_command): Call tilde_expand on the value of 'exec'
4591 2013-05-30 Pedro Alves <pedro@codesourcery.com>
4592 Yao Qi <yao@codesourcery.com>
4594 * tracepoint.c (encode_actions_1): Remove parameter 't'.
4596 (encode_actions): Likewise.
4597 * remote.c (remote_download_tracepoint): Caller update.
4598 * tracepoint.h (encode_actions): Update declaration.
4600 2013-05-30 Pedro Alves <palves@redhat.com>
4602 * python/python-internal.h (gdb_Py_DECREF): Cast OP to PyObject
4605 2013-05-30 Yao Qi <yao@codesourcery.com>
4607 * remote.c (remote_check_symbols): Remove unused parameter
4610 (remote_start_remote, remote_new_objfile): Caller update.
4612 2013-05-30 Yao Qi <yao@codesourcery.com>
4614 * mi/mi-cmds.c (mi_cmds): Define MI command
4615 '-exec-arguments' by macro DEF_MI_CMD_CLI_1 instead of
4618 2013-05-29 Pedro Alves <palves@redhat.com>
4620 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint)
4621 (remote_insert_watchpoint, remote_remove_watchpoint)
4622 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
4623 (remote_verify_memory, compare_sections_command)
4624 (remote_search_memory): Set the general process/thread on the
4627 2013-05-29 Pedro Alves <palves@redhat.com>
4629 * aarch64-tdep.c: Don't include "features/aarch64-without-fpu.c".
4630 (_initialize_aarch64_tdep): Don't call
4631 initialize_tdesc_aarch64_without_fpu.
4632 * features/Makefile (WHICH): Remove reference to
4633 aarch64-without-fpu.
4634 * features/aarch64-without-fpu.c: Delete file.
4635 * regformats/aarch64-without-fpu.dat: Delete file.
4637 2013-05-28 Yao Qi <yao@codesourcery.com>
4639 * tracepoint.c (stringify_collection_list): Remove parameter
4641 (encode_actions): Caller update. Remove local variables.
4643 2013-05-24 Yao Qi <yao@codesourcery.com>
4645 * tracepoint.c (TFILE_PID): Remove.
4646 (tfile_open): Don't add thread and inferior.
4647 (tfile_close): Don't set 'inferior_ptid'. Don't call
4648 exit_inferior_silent.
4649 (tfile_thread_alive): Remove.
4650 (init_tfile_ops): Don't set field 'to_thread_alive' of
4653 2013-05-23 Doug Evans <dje@google.com>
4655 * contrib/cc-with-tweaks.sh (-p): Handle no dwo files.
4657 2013-05-23 Pedro Alves <palves@redhat.com>
4659 * common/filestuff.c [USE_WIN32API]: Define HAVE_SOCKETS.
4660 [HAVE_SYS_SOCKET_H]: Define HAVE_SOCKETS.
4661 (socket_mark_cloexec, gdb_socketpair_cloexec, gdb_socket_cloexec):
4662 Only define if HAVE_SOCKETS is defined.
4663 * configure.ac: Check for sys/socket.h.
4664 * config.in, configure: Regenerate.
4666 2013-05-23 Pedro Alves <palves@redhat.com>
4668 * dwarf2read.c (create_dwp_hash_table, create_dwo_in_dwp)
4669 (open_and_init_dwp_file): Use %s/pulongest instead of %u for
4670 printing uint32_t variables.
4672 2013-05-23 Pedro Alves <palves@redhat.com>
4674 * NEWS: Mention GDBserver range stepping support.
4676 2013-05-23 Yao Qi <yao@codesourcery.com>
4677 Pedro Alves <palves@redhat.com>
4679 * gdbthread.h (struct thread_control_state) <may_range_step>: New
4681 * infcmd.c (step_once, until_next_command): Enable range stepping.
4682 * infrun.c (displaced_step_prepare): Disable range stepping.
4683 (resume): Disable range stepping if stepping over a breakpoint or
4684 we have software watchpoints. If range stepping is enabled,
4685 assert the thread is in the stepping range.
4686 (clear_proceed_status_thread): Clear may_range_step.
4687 (handle_inferior_event): Disable range stepping as soon as we know
4688 the thread that hit the event. Re-enable it whenever we're going
4689 to step with a step range.
4690 * remote.c (struct vCont_action_support) <r>: New field.
4691 (use_range_stepping): New global.
4692 (remote_vcont_probe): Handle 'r' action.
4693 (append_resumption): Append an 'r' action if the thread may range
4695 (show_range_stepping): New function.
4696 (set_range_stepping): New function.
4697 (_initialize_remote): Call add_setshow_boolean_cmd to register the
4698 'set range-stepping' and 'show range-stepping' commands.
4699 * NEWS: Mention range stepping, the new vCont;r action, and the
4700 new "set/show range-stepping" commands.
4702 2013-05-23 Yao Qi <yao@codesourcery.com>
4703 Pedro Alves <palves@redhat.com>
4705 * remote.c (struct vCont_action_support): New struct.
4706 (struct remote_state) <support_vCont_t>: Remove field.
4707 <vCont_actions_support>: New field.
4708 (remote_vcont_probe, remote_stop_ns): Update.
4710 2013-05-23 Yao Qi <yao@codesourcery.com>
4711 Pedro Alves <palves@redhat.com>
4713 * gdbthread.h (pc_in_thread_step_range): New declaration.
4714 * thread.c (pc_in_thread_step_range): New function.
4715 * infrun.c (handle_inferior_event): Use it.
4717 2013-05-23 Joel Brobecker <brobecker@adacore.com>
4719 * mi/mi-cmd-break.c (mi_argv_to_format): Use xsnprintf instead
4722 2013-05-22 Keith Seitz <keiths@redhat.com>
4724 * ada-lang.c (is_known_support_routine): Add explicit free of
4725 'func_name' from find_frame_funname.
4726 (ada_unhandled_exception_name_addr_from_raise): Add cleanups
4727 for func_name from find_frame_funname.
4728 * python/py-frame.c (frapy_name): Add explicit free of
4729 'name' from find_frame_funname.
4730 * stack.c (find_frame_funname): Add comment explaining that
4731 funcp must be freed by the caller.
4732 Return copy of symbol names instead of pointers.
4733 (print_frame): Add a cleanup for 'funname' from
4735 * stack.h (find_frame_funname): Remove "const" from
4736 'funname' parameter.
4738 2013-05-22 Tom Tromey <tromey@redhat.com>
4741 * c-valprint.c (c_value_print): Use value_addr for
4742 references. Convert back to reference type with value_ref.
4744 2013-05-22 Eli Zaretskii <eliz@gnu.org>
4746 * windows-nat.c (handle_unload_dll): Don't call solib_add for the
4747 unloaded DLL, it will be done by handle_solib_event. See
4748 http://sourceware.org/ml/gdb-patches/2013-05/msg00713.html for the
4751 2013-05-22 Phil Muldoon <pmuldoon@redhat.com>
4753 * ui-out.c: Create typedef ui_out_level_p and define vector
4754 operations for that type.
4755 (struct ui_out): Use a vector instead of an array.
4756 (current_level): Return level from a vector.
4757 (push_level): Create a level in a vector.
4758 (pop_level): Delete a level in a vector.
4759 (ui_out_new): Create initial level zero level, and store in a
4761 (ui_out_destroy): Add vector cleanup.
4763 2013-05-22 Pedro Alves <palves@redhat.com>
4765 * python/python-internal.h (gdb_Py_DECREF): Tag with
4766 "ARI: editCase function".
4768 2013-05-21 Paul Pluzhnikov <ppluzhnikov@google.com>
4770 * solib-svr4.c (svr4_free_so): Protect against NULL dereference.
4772 2013-05-21 Pedro Alves <palves@redhat.com>
4774 * python/py-prettyprint.c (apply_val_pretty_printer): Check
4775 whether PRINTER is NULL before installing a Py_DECREF cleanup.
4776 * python/py-utils.c (py_decref): Don't check for NULL before
4779 2013-05-21 Pedro Alves <palves@redhat.com>
4781 * python/py-utils.c (py_decref): Remove extra braces.
4782 (gdb_pymodule_addobject): Remove extra braces.
4783 * python-internal.h (gdb_Py_DECREF): New static inline function.
4784 (Py_DECREF): Redefine as calling gdb_Py_DECREF.
4786 2013-05-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4788 * breakpoints.c (detach_breakpoints): Do not
4789 detach breakpoints locations with loc_type bp_loc_other.
4791 2013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4793 Workaround Python 2.6.
4794 * python/py-utils.c (gdb_pymodule_addobject): Wrap Py_DECREF into
4797 2013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4799 Code cleanup: constification.
4800 * solib.c (solib_ops): Make return type and ops variable type const.
4801 (set_solib_ops): Make the new_ops parameter and ops variable const.
4802 (solib_find, solib_map_sections, clear_so, free_so, update_solib_list)
4803 (solib_add, solib_keep_data_in_core, clear_solib)
4804 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
4805 (reload_shared_libraries, solib_global_lookup): Make the ops variable
4807 * solib.h (set_solib_ops): Make the new_ops parameter const.
4809 2013-05-21 Joel Brobecker <brobecker@adacore.com>
4811 * data-directory/Makefile.in (SYSTEM_GDBINIT_SRCDIR): New
4813 (VPATH): Add SYSTEM_GDBINIT_SRCDIR.
4814 (SYSTEM_GDBINIT_DIR, SYSTEM_GDBINIT_INSTALL_DIR)
4815 (SYSTEM_GDBINIT_FILES): New variables.
4816 (all): Add stamp-system-gdbinit.
4817 (stamp-system-gdbinit): New rule.
4818 (clean-system-gdbinit, install-system-gdbinit)
4819 (uninstall-system-gdbinit): New rules. Make them .PHONY.
4820 (install-only): Add dependency on install-system-gdbinit.
4821 (uninstall): Add dependency on uninstall-system-gdbinit.
4822 (clean): Add dependency on clean-system-gdbinit.
4823 * system-gdbinit/elinos.py: New file.
4824 * system-gdbinit/wrs-linux.py: New file.
4826 2013-05-21 Joel Brobecker <brobecker@adacore.com>
4828 * ada-lang.c (old_renaming_is_invisible): Fix cleanup leak.
4830 2013-05-21 Hui Zhu <hui@codesourcery.com>
4832 * breakpoint.c (dprintf_breakpoint_ops): Remove its static.
4833 * breakpoint.h (dprintf_breakpoint_ops): Add extern.
4834 * mi/mi-cmd-break.c (ctype.h): New include.
4835 (gdb_obstack.h): New include.
4836 (mi_argv_to_format, mi_cmd_break_insert_1): New.
4837 (mi_cmd_break_insert): Call mi_cmd_break_insert_1.
4838 (mi_cmd_dprintf_insert): New.
4839 * mi/mi-cmds.c (mi_cmds): Add "dprintf-insert".
4840 * mi/mi-cmds.h (mi_cmd_dprintf_insert): New extern.
4842 2013-05-20 Tom Tromey <tromey@redhat.com>
4844 * python/py-prettyprint.c (search_pp_list): Decref 'attr'.
4846 2013-05-20 Tom Tromey <tromey@redhat.com>
4848 * python/py-value.c (valpy_get_dynamic_type): Simplify
4849 dynamic_type assignment. Use Py_XINCREF.
4851 2013-05-20 Tom Tromey <tromey@redhat.com>
4853 * python/py-type.c (typy_fields): Unconditionally decref 'r'.
4855 2013-05-20 Tom Tromey <tromey@redhat.com>
4857 * python/py-frame.c (frapy_older, frapy_newer, gdbpy_newest_frame)
4858 (gdbpy_selected_frame): Move object-construction code
4861 2013-05-20 Tom Tromey <tromey@redhat.com>
4863 * python/py-arch.c (gdbpy_initialize_arch): Use
4864 gdb_pymodule_addobject.
4865 * python/py-block.c (gdbpy_initialize_blocks): Use
4866 gdb_pymodule_addobject.
4867 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Use
4868 gdb_pymodule_addobject.
4869 * python/py-cmd.c (gdbpy_initialize_breakpoints): Use
4870 gdb_pymodule_addobject.
4871 * python/py-event.c (gdbpy_initialize_event_generic): Use
4872 gdb_pymodule_addobject.
4873 * python/py-evtregistry.c (gdbpy_initialize_eventregistry): Use
4874 gdb_pymodule_addobject.
4875 * python/py-evts.c (add_new_registry): Use
4876 gdb_pymodule_addobject.
4877 (gdbpy_initialize_py_events): Likewise.
4878 * python/py-finishbreakpoint.c
4879 (gdbpy_initialize_finishbreakpoints): Use
4880 gdb_pymodule_addobject.
4881 * python/py-frame.c (gdbpy_initialize_frames): Use
4882 gdb_pymodule_addobject.
4883 * python/py-function.c (gdbpy_initialize_functions): Use
4884 gdb_pymodule_addobject.
4885 * python/py-inferior.c (gdbpy_initialize_inferior): Use
4886 gdb_pymodule_addobject.
4887 * python/py-infthread.c (gdbpy_initialize_thread): Use
4888 gdb_pymodule_addobject.
4889 * python/py-objfile.c (gdbpy_initialize_objfile): Use
4890 gdb_pymodule_addobject.
4891 * python/py-param.c (gdbpy_initialize_parameters): Use
4892 gdb_pymodule_addobject.
4893 * python/py-progspace.c (gdbpy_initialize_pspace): Use
4894 gdb_pymodule_addobject.
4895 * python/py-symbol.c (gdbpy_initialize_symbols): Use
4896 gdb_pymodule_addobject.
4897 * python/py-symtab.c (gdbpy_initialize_symtabs): Use
4898 gdb_pymodule_addobject.
4899 * python/py-type.c (gdbpy_initialize_types): Use
4900 gdb_pymodule_addobject.
4901 * python/py-utils.c (gdb_pymodule_addobject): New function.
4902 * python/py-value.c (gdbpy_initialize_values): Use
4903 gdb_pymodule_addobject.
4904 * python/python-internal.h (gdb_pymodule_addobject): Declare.
4905 * python/python.c (_initialize_python): Use
4906 gdb_pymodule_addobject.
4908 2013-05-20 Tom Tromey <tromey@redhat.com>
4910 * python/py-cmd.c (cmdpy_completer): Use explicit decref.
4911 * python/py-param.c (get_set_value, get_show_value): Use
4913 * python/python.c (start_type_printers, apply_type_printers):
4914 Use explicit decrefs.
4916 2013-05-20 Tom Tromey <tromey@redhat.com>
4918 * python/py-evts.c (gdbpy_initialize_py_events): Don't
4921 2013-05-20 Tom Tromey <tromey@redhat.com>
4923 * python/python.c (gdbpy_run_events): Decref the result
4924 of PyObject_CallObject.
4926 2013-05-20 Tom Tromey <tromey@redhat.com>
4928 * python/py-symtab.c (set_sal): Use
4929 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION. Return -1 on error.
4930 (symtab_and_line_to_sal_object): Update.
4932 2013-05-20 Tom Tromey <tromey@redhat.com>
4934 * python/py-param.c (compute_enum_values): Decref 'item'.
4936 2013-05-20 Tom Tromey <tromey@redhat.com>
4938 * mi/mi-main.c: Include python-internal.h.
4939 (mi_cmd_list_features): Check gdb_python_initialized.
4940 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
4941 (python_inferior_exit, python_new_objfile, add_thread_object)
4942 (delete_thread_object, py_free_inferior): Check
4943 gdb_python_initialized.
4944 * python/py-prettyprint.c (apply_val_pretty_printer): Check
4945 gdb_python_initialized.
4946 * python/py-type.c (save_objfile_types): Check
4947 gdb_python_initialized.
4948 * python/python-internal.h (gdb_python_initialized): Declare.
4949 * python/python.c (ensure_python_env): Throw exception if
4950 Python not initialized.
4951 (before_prompt_hook, source_python_script_for_objfile)
4952 (start_type_printers, apply_type_printers,
4953 free_type_printers): Check gdb_python_initialized.
4954 * varobj.c (varobj_get_display_hint)
4955 (dynamic_varobj_has_child_method, update_dynamic_varobj_children)
4956 (install_new_value_visualizer, varobj_set_visualizer)
4957 (value_get_print_value): Check gdb_python_initialized.
4959 2013-05-20 Tom Tromey <tromey@redhat.com>
4961 * python/py-arch.c (gdbpy_initialize_arch): Return 'int'.
4963 * python/py-auto-load.c (gdbpy_initialize_auto_load): Return 'int'.
4964 * python/py-block.c (gdbpy_initialize_blocks): Return 'int'.
4966 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Return 'int'.
4968 * python/py-cmd.c (gdbpy_initialize_commands): Return 'int'.
4970 * python/py-event.c (gdbpy_initialize_event): Return 'int'.
4972 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Change generated
4973 init function to return 'int'.
4974 * python/py-evtregistry.c (gdbpy_initialize_eventregistry):
4975 Return 'int'. Check errors.
4976 * python/py-evts.c (gdbpy_initialize_py_events): Return 'int'.
4978 * python/py-finishbreakpoint.c (gdbpy_initialize_finishbreakpoints):
4979 Return 'int'. Check errors.
4980 * python/py-frame.c (gdbpy_initialize_frames): Return 'int'.
4982 * python/py-function.c (gdbpy_initialize_functions): Return 'int'.
4984 * python/py-gdb-readline.c (gdbpy_initialize_gdb_readline):
4986 * python/py-inferior.c (gdbpy_initialize_inferior): Return 'int'.
4988 * python/py-infthread.c (gdbpy_initialize_thread): Return 'int'.
4990 * python/py-lazy-string.c (gdbpy_initialize_lazy_string): Return 'int'.
4992 * python/py-objfile.c (gdbpy_initialize_objfile): Return 'int'.
4994 * python/py-param.c (gdbpy_initialize_parameters): Return 'int'.
4996 * python/py-progspace.c (gdbpy_initialize_pspace): Return 'int'.
4998 * python/py-symbol.c (gdbpy_initialize_symbols): Return 'int'.
5000 * python/py-symtab.c (gdbpy_initialize_symtabs): Return 'int'.
5002 * python/py-type.c (gdbpy_initialize_types): Return 'int'.
5004 * python/py-value.c (gdbpy_initialize_values): Return 'int'.
5006 * python/python-internal.h (gdbpy_initialize_auto_load,
5007 gdbpy_initialize_values, gdbpy_initialize_frames,
5008 gdbpy_initialize_symtabs, gdbpy_initialize_commands,
5009 gdbpy_initialize_symbols, gdbpy_initialize_symtabs,
5010 gdbpy_initialize_blocks, gdbpy_initialize_types,
5011 gdbpy_initialize_functions, gdbpy_initialize_pspace,
5012 gdbpy_initialize_objfile, gdbpy_initialize_breakpoints,
5013 gdbpy_initialize_finishbreakpoints,
5014 gdbpy_initialize_lazy_string, gdbpy_initialize_parameters,
5015 gdbpy_initialize_thread, gdbpy_initialize_inferior,
5016 gdbpy_initialize_eventregistry, gdbpy_initialize_event,
5017 gdbpy_initialize_py_events, gdbpy_initialize_stop_event,
5018 gdbpy_initialize_signal_event,
5019 gdbpy_initialize_breakpoint_event,
5020 gdbpy_initialize_continue_event,
5021 gdbpy_initialize_exited_event, gdbpy_initialize_thread_event,
5022 gdbpy_initialize_new_objfile_event, gdbpy_initialize_arch):
5023 Update. Use CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
5024 * python/python.c (gdb_python_initialized): New global.
5025 (gdbpy_initialize_events): Return 'int'. Check errors.
5026 (_initialize_python): Check errors. Set
5027 gdb_python_initialized.
5029 2013-05-20 Tom Tromey <tromey@redhat.com>
5031 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope):
5032 Decref the reslut of PyObject_CallMethod.
5034 2013-05-20 Tom Tromey <tromey@redhat.com>
5036 * python/py-event.c (gdbpy_initialize_event_generic): Return
5037 early if PyType_Ready fails.
5039 2013-05-20 Tom Tromey <tromey@redhat.com>
5041 * python/py-type.c (make_fielditem): Add gdb_assert_not_reached
5042 as 'default' in the switch.
5044 2013-05-20 Tom Tromey <tromey@redhat.com>
5046 * python/py-inferior.c (gdbpy_inferiors): Update. Hoist
5047 get_addr_from_python calls out of TRY_CATCH.
5048 (infpy_write_memory, infpy_search_memory): Likewise.
5049 * python/py-utils.c (get_addr_from_python): Return negative
5050 value on error. Use TRY_CATCH.
5051 * python/python-internal.h (get_addr_from_python): Use
5052 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
5054 2013-05-20 Tom Tromey <tromey@redhat.com>
5056 * python/py-event.c (evpy_emit_event): Decref the
5057 result of PyObject_CallFunctionObjArgs.
5059 2013-05-20 Tom Tromey <tromey@redhat.com>
5061 * python/py-cmd.c (cmdpy_completer): Use iterator protocol.
5064 2013-05-20 Tom Tromey <tromey@redhat.com>
5066 * python/py-cmd.c (cmdpy_init): Decref 'ds_obj'.
5068 2013-05-20 Tom Tromey <tromey@redhat.com>
5070 * python/py-event.h (gdbpy_initialize_event_generic): Use
5071 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
5072 * python/py-evts.c (add_new_registry): Use
5073 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
5074 * python/python-internal.h
5075 (CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION): New macro.
5077 2013-05-20 Tom Tromey <tromey@redhat.com>
5079 * python/py-arch.c (archpy_disassemble): Update.
5080 * python/py-type.c (typy_get_composite, typy_lookup_typename)
5081 (typy_lookup_type): Use GDB_PY_HANDLE_EXCEPTION.
5082 * python/py-utils.c (gdbpy_convert_exception): Return 'void'.
5083 * python/python-internal.h (CPYCHECKER_SETS_EXCEPTION): New
5085 (GDB_PY_HANDLE_EXCEPTION): Update.
5086 (gdbpy_convert_exception): Update. Use CPYCHECKER_SETS_EXCEPTION.
5088 2013-05-20 Tom Tromey <tromey@redhat.com>
5090 * python/python-internal.h (events_object_type): Remove.
5092 2013-05-20 Tom Tromey <tromey@redhat.com>
5094 * python/py-event.h (evpy_emit_event): Use
5095 CPYCHECKER_STEALS_REFERENCE_TO_ARG.
5096 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
5099 2013-05-20 Tom Tromey <tromey@redhat.com>
5101 * py-evtregistry.c (create_event_object): Decref
5102 eventregistry_object if PyList_New fails.
5104 2013-05-20 Tom Tromey <tromey@redhat.com>
5106 * py-cmd.c (gdbpy_string_to_argv): Check result of
5109 2013-05-20 Tom Tromey <tromey@redhat.com>
5111 * python/python.c (before_prompt_hook): Add cleanup to
5114 2013-05-20 Tom Tromey <tromey@redhat.com>
5116 * python/py-function.c (fnpy_init): Decref result of
5117 PyObject_GetAttrString.
5119 2013-05-20 Tom Tromey <tromey@redhat.com>
5121 * python/py-threadevent.c (get_event_thread): Use
5122 CPYCHECKER_RETURNS_BORROWED_REF.
5123 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
5125 (pspace_to_pspace_object, objfile_to_objfile_object)
5126 (find_thread_object): Use it.
5128 2013-05-20 Tom Tromey <tromey@redhat.com>
5130 * python/py-arch.c (arch_object_type): Use
5131 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5132 * python/py-block.c (block_syms_iterator_object_type):
5133 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5134 * python/py-bpevent.c (breakpoint_event_object_type):
5135 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5136 * python/py-cmd.c (cmdpy_object_type): Use
5137 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5138 * python/py-continueevent.c (continue_event_object_type):
5139 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5140 * python/py-event.h (GDBPY_NEW_EVENT_TYPE):
5141 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5142 * python/py-events.h (thread_event_object_type):
5143 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5144 * python/py-evtregistry.c (eventregistry_object_type): Use
5145 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5146 * python/py-exitedevent.c (exited_event_object_type):
5147 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5148 * python/py-finishbreakpoint.c (finish_breakpoint_object_type):
5149 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5150 * python/py-function.c (fnpy_object_type): Use
5151 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5152 * python/py-inferior.c (inferior_object_type, membuf_object_type):
5153 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5154 * python/py-infthread.c (thread_object_type): Use
5155 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5156 * python/py-lazy-string.c (lazy_string_object_type):
5157 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5158 * python/py-newobjfileevent.c (new_objfile_event_object_type):
5159 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5160 * python/py-objfile.c (objfile_object_type): Use
5161 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5162 * python/py-param.c (parmpy_object_type):
5163 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5164 * python/py-progspace.c (pspace_object_type):
5165 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5166 * python/py-signalevent.c (signal_event_object_type):
5167 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5168 * python/py-symtab.c (symtab_object_type, sal_object_type): Use
5169 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5170 * python/py-type.c (type_object_type, field_object_type)
5171 (type_iterator_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5172 * python/py-internal.h (CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF): New
5174 (value_object_type, block_object_type, symbol_object_type)
5175 (event_object_type, stop_event_object_type, breakpoint_object_type)
5176 (frame_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5178 2013-05-20 Andreas Tobler <andreas@fgznet.ch>
5180 * Makefile.in (ALL_TARGET_OBS): Add ppcfbsd-tdep.o.
5181 (ALLDEPFILES): Add ppcfbsd-nat.c and ppcfbsd-tdep.c.
5183 2013-05-20 Doug Evans <dje@google.com>
5185 When reading CU, stay in DWO. Be more tolerent of bad debug info.
5187 * dwarf2read.c (struct dwarf2_per_cu_data): New member
5188 reading_dwo_directly.
5189 (struct signatured_type): New member dwo_unit.
5190 (struct die_reader_specs): New member comp_dir.
5191 (create_signatured_type_table_from_index): Use malloc for
5192 all_type_units instead of objfile's obstack.
5193 (create_all_type_units): Ditto.
5194 (fill_in_sig_entry_from_dwo_entry): New function.
5195 (add_type_unit): New function.
5196 (lookup_dwo_signatured_type): New function.
5197 (lookup_dwp_signatured_type): New function.
5198 (lookup_signatured_type): New arg cu. All callers updated.
5199 (init_cu_die_reader): Initialize comp_dir.
5200 (read_cutu_die_from_dwo): New arg stub_comp_dir. All callers updated.
5201 Change assert of matching type signatures to call error on mismatch.
5202 (lookup_dwo_unit): Add assert.
5203 (init_tu_and_read_dwo_dies): New function.
5204 (init_cutu_and_read_dies): Call it.
5205 (build_type_unit_groups): Handle case of no type unit groups created.
5206 (hash_dwo_file, eq_dwo_file): Handle missing comp_dir.
5207 (lookup_dwo_cutu): Tweak complaint.
5208 (dwarf2_free_abbrev_table): Check for NULL abbrev_table.
5209 (dwarf2_per_objfile_free): Free all_type_units.
5211 2013-05-20 Joel Brobecker <brobecker@adacore.com>
5213 * windows-nat.c (handle_unload_dll): Add missing empty line.
5215 2013-05-20 Joel Brobecker <brobecker@adacore.com>
5217 * dwarf2read.c (prototyped_function_p): New function.
5218 (read_subroutine_type): Use it.
5220 2013-05-20 Joel Brobecker <brobecker@adacore.com>
5222 * rs6000-aix-tdep.c: De-indent some example code provided
5225 2013-05-17 Edjunior Machado <emachado@linux.vnet.ibm.com>
5227 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Check if the
5228 region is ok for a hardware watchpoint using the new ptrace interface
5231 2013-05-17 Doug Evans <dje@google.com>
5233 * NEWS: Mention new maintenance commands check-symtabs, and
5234 expand-symtabs, and renamed check-psymtabs.
5235 * psymtab.c (maintenance_check_psymtabs): Renamed from
5236 maintenance_check_symtabs. Only process already-expanded symbol
5238 (_initialize_psymtab): Update.
5239 * symmisc.c (maintenance_check_symtabs): New function.
5240 (maintenance_expand_name_matcher): New function
5241 (maintenance_expand_file_matcher): New function
5242 (maintenance_expand_symtabs): New function.
5243 (_initialize_symmisc): Add "mt check-symtabs" and "mt expand-symtabs"
5246 2013-05-17 Tom Tromey <tromey@redhat.com>
5248 * python/py-inferior.c (infpy_read_memory): Don't call
5249 PyErr_SetString if PyObject_New fails.
5250 * python/py-frame.c (frame_info_to_frame_object): Don't call
5251 PyErr_SetString if PyObject_New fails.
5253 2013-05-17 Pavel Chupin <pavel.v.chupin@intel.com>
5255 * acinclude.m4: Add check for dlopen in libdl.
5256 * configure.ac: Ditto.
5257 * configure: Regenerate.
5259 2013-05-17 Phil Muldoon <pmuldoon@redhat.com>
5261 * frame.c (frame_stash): Convert to htab.
5262 (frame_addr_hash): New function.
5263 (frame_addr_hash_eq): New function.
5264 (frame_stash_create): Convert function to create
5266 (frame_stash_add): Convert function to add an entry to a hash
5268 (frame_stash_find): Convert function to search the hash table.
5269 (frame_stash_invalidate): Convert function to empty the hash
5271 (get_frame_id): Only add to stash if a frame_id is created.
5272 (_initialize_frame): Call frame_stash_create.
5274 2013-05-16 Yue Lu <hacklu.newborn@gmail.com> (tiny change)
5276 * configure.ac: Ensure MIG is available when building for GNU Hurd
5278 * configure: Regenerate.
5280 2013-05-16 Joel Brobecker <brobecker@adacore.com>
5282 * dwarf2read.c (set_cu_language): Add DW_LANG_UPC handling.
5284 2013-05-16 Joel Brobecker <brobecker@adacore.com>
5286 * ada-lang.c (ada_make_symbol_completion_list): Make sure
5287 all cleanups are done before returning from this function.
5289 2013-05-15 Joel Brobecker <brobecker@adacore.com>
5291 * utils.h: #include "exceptions.h".
5292 (enum errors): Remove partial declaration.
5294 2013-05-15 Joel Brobecker <brobecker@adacore.com>
5296 * gdbarch.sh (core_xfer_shared_libraries_aix): New method.
5297 * gdbarch.h, gdbarch.c: Regenerate.
5298 * corelow.c (core_xfer_partial): Add TARGET_OBJECT_LIBRARIES_AIX
5301 * rs6000-aix-tdep.h: New file.
5302 * Makefile.in (HFILES_NO_SRCDIR): Add rs6000-aix-tdep.h.
5303 * rs6000-aix-tdep.c: Include "rs6000-aix-tdep.h" and
5305 (struct field_info, struct ld_info_desc): New types.
5306 (ld_info32_desc, ld_info64_desc): New static constants.
5307 (struct ld_info): New type.
5308 (rs6000_aix_extract_ld_info): New function.
5309 (rs6000_aix_shared_library_to_xml): Likewise.
5310 (rs6000_aix_ld_info_to_xml): Likewise.
5311 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
5312 (rs6000_aix_init_osabi): Add call to
5313 set_gdbarch_core_xfer_shared_libraries_aix.
5314 * rs6000-nat.c: Add "rs6000-aix-tdep.h" include.
5315 Remove "xml-utils.h" include.
5316 (LdInfo): Delete typedef.
5317 (ARCH64_DECL, LDI_FIELD, LDI_NEXT, LDI_FD, LDI_FILENAME):
5319 (rs6000_ptrace_ldinfo): Change return type to gdb_byte *.
5320 Adjust code accordingly.
5321 (rs6000_core_ldinfo): Delete, folded into
5322 rs6000_aix_core_xfer_shared_libraries_aix.
5323 (rs6000_xfer_shared_library): Delete.
5324 (rs6000_xfer_shared_libraries): Reimplement.
5326 2013-05-15 Markus Metzger <markus.t.metzger@intel.com>
5328 * record.c (record_goto_cmdlist): New.
5329 (cmd_record_goto): Split into this ...
5330 (cmd_record_goto_begin): ... this
5331 (cmd_record_goto_end): ... and this.
5332 (_initialize_record): Change "record goto" to prefix command.
5333 Add commands for "record goto begin" and "record goto end".
5334 Add an alias for "record goto start" to "record goto begin".
5336 2013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
5338 * linespec.c (convert_linespec_to_sals): New comment for
5339 SOURCE_FILENAME assignment.
5341 2013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
5343 * cleanups.c (restore_my_cleanups): Replace gdb_assert by
5346 2013-05-14 Tom Tromey <tromey@redhat.com>
5348 * eval.c (parse_and_eval_long): Make 'exp' const.
5349 * value.h (parse_and_eval_long): Update.
5351 2013-05-14 Tom Tromey <tromey@redhat.com>
5353 * ui-file.c (gdb_fopen): Make arguments const.
5354 * ui-file.h (gdb_fopen): Make arguments const.
5356 2013-05-14 Tom Tromey <tromey@redhat.com>
5358 * remote.c (remote_set_trace_notes): Make arguments const.
5359 * target.c (update_current_target): Update cast.
5360 * target.h (to_set_trace_notes): Make arguments const.
5362 2013-05-14 Tom Tromey <tromey@redhat.com>
5364 * go32-nat.c (go32_terminal_info): Make 'args' const.
5365 * inferior.h (child_terminal_info): Update.
5366 * inflow.c (child_terminal_info): Make 'args' const.
5367 * target.c (default_terminal_info): Make 'args' const.
5368 (debug_to_terminal_save_ours): Likewise.
5369 * target.h (struct target_ops) <to_terminal_info>: Make argument
5372 2013-05-13 Tom Tromey <tromey@redhat.com>
5374 * gcore.c (create_gcore_bfd): Make 'filename' const.
5375 * gcore.h (create_gcore_bfd): Make 'filename' const.
5376 * record-full.c (record_full_save): Make 'recfilename' const.
5377 * target.c (target_save_record): Make 'filename' const.
5378 * target.h (struct target_ops) <to_save_record>: Make 'filename'
5380 (target_save_record): Likewise.
5382 2013-05-13 Tom Tromey <tromey@redhat.com>
5385 * dwarf2read.c (dwarf2_record_block_ranges): Ensure that the
5386 ranges section has been read.
5388 2013-05-13 Tom Tromey <tromey@redhat.com>
5391 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
5392 STRUCTOP_PTR>: Return a not_lval value for
5393 EVAL_AVOID_SIDE_EFFECTS.
5394 * opencl-lang.c (evaluate_subexp_opencl): Return a not_lval value
5395 for EVAL_AVOID_SIDE_EFFECTS.
5397 2013-05-13 Joel Brobecker <brobecker@adacore.com>
5399 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Convert
5400 floating point registers to register type before storing
5402 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call):
5405 2013-05-10 Joel Brobecker <brobecker@adacore.com>
5406 Tom Tromey <tromey@redhat.com>
5408 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
5410 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
5412 * darwin-nat.c (darwin_pre_ptrace): Use mark_fd_no_cloexec.
5413 (darwin_ptrace_him): Use unmark_fd_no_cloexec.
5414 * inf-ttrace.c (do_cleanup_pfds): Use unmark_fd_no_cloexec.
5415 (inf_ttrace_prepare): Use mark_fd_no_cloexec.
5417 2013-05-10 Freddie Chopin <freddie_chopin@op.pl>
5418 Tom Tromey <tromey@redhat.com>
5421 * configure: Rebuild.
5422 * configure.ac (build_warnings): Do not use -Wformat-nonliteral
5425 2013-05-10 Pedro Alves <palves@redhat.com>
5427 * remote.c (_initialize_remote): Fix spelling of
5428 qXfer:traceframe-info:read packet in packet config command.
5430 2013-05-10 David Taylor <dtaylor@emc.com>
5434 * remote.c (remote_trace_set_readonly_regions): Do not overwrite
5435 "QTro" at start of packet.
5437 2013-05-10 Joel Brobecker <brobecker@adacore.com>
5439 * solib-aix.c (solib_aix_relocate_section_addresses):
5440 For the .bss section action, apply the same offset as
5443 2013-05-10 Joel Brobecker <brobecker@adacore.com>
5445 * solib-aix.c (solib_aix_relocate_section_addresses):
5446 Remove FIXME comment.
5448 2013-05-10 Joel Brobecker <brobecker@adacore.com>
5451 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
5452 New functions, directly copied from sparc-sol-thread.c.
5453 * sparc-sol-thread.c: Delete.
5454 * configure.ac: Remove code handling sparc-solaris-thread.c.
5455 * configure: Regenerate.
5457 2013-05-10 Phil Muldoon <pmuldoon@redhat.com>
5459 * stack.c (backtrace_command_1): Add "no-filters", and Python frame
5461 (backtrace_command): Add "no-filters" option parsing.
5462 (_initialize_stack): Alter help to reflect "no-filters" option.
5463 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-framefilter.o
5464 (SUBDIR_PYTHON_SRCS): Add py-framefilter.c
5465 (py-frame.o): Add target
5466 * data-directory/Makefile.in (PYTHON_DIR): Add Python frame
5468 * python/python.h: Add new frame filter constants, and flag enum.
5469 (apply_frame_filter): Add definition.
5470 * python/python.c (apply_frame_filter): New non-Python
5472 * python/py-utils.c (py_xdecref): New function.
5473 (make_cleanup_py_xdecref): Ditto.
5474 * python/py-objfile.c: Declare frame_filters dictionary.
5475 (objfpy_dealloc): Add frame_filters dealloc.
5476 (objfpy_new): Initialize frame_filters attribute.
5477 (objfile_to_objfile_object): Ditto.
5478 (objfpy_get_frame_filters): New function.
5479 (objfpy_set_frame_filters): New function.
5480 * python/py-progspace.c: Declare frame_filters dictionary.
5481 (pspy_dealloc): Add frame_filters dealloc.
5482 (pspy_new): Initialize frame_filters attribute.
5483 (pspacee_to_pspace_object): Ditto.
5484 (pspy_get_frame_filters): New function.
5485 (pspy_set_frame_filters): New function.
5486 * python/py-framefilter.c: New file.
5487 * python/lib/gdb/command/frame_filters.py: New file.
5488 * python/lib/gdb/frames.py: New file.
5489 * python/lib/gdb/__init__.py: Initialize global frame_filters
5491 * python/lib/gdb/FrameDecorator.py: New file.
5492 * python/lib/gdb/FrameIterator.py: New file.
5493 * mi/mi-cmds.c (mi_cmds): Add frame filters command.
5494 * mi/mi-cmds.h: Declare.
5495 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Add
5496 --no-frame-filter logic, and Python frame filter logic.
5497 (stack_enable_frame_filters): New function.
5498 (parse_no_frame_option): Ditto.
5499 (mi_cmd_stack_list_frames): Add --no-frame-filter and Python frame
5501 (mi_cmd_stack_list_locals): Ditto.
5502 (mi_cmd_stack_list_args): Ditto.
5503 (mi_cmd_stack_list_variables): Ditto.
5504 * NEWS: Add frame filter note.
5506 2013-05-09 Doug Evans <dje@google.com>
5508 * symfile.c (syms_from_objfile_1): Delete args offsets, num_offsets.
5509 All callers updated.
5510 (syms_from_objfile): Ditto. Make static.
5511 (symbol_file_add_with_addrs): Renamed from
5512 symbol_file_add_with_addrs_or_offsets. Delete args offsets,
5513 num_offsets. All callers updated.
5514 * symfile.h (syms_from_objfile): Delete.
5516 * symfile.c (decrement_reading_symtab): Add assert.
5517 (increment_reading_symtab): Ditto.
5519 2013-05-09 Joel Brobecker <brobecker@adacore.com>
5521 * source.c (forward_search_command): Replace call to getc
5523 (reverse_search_command): Likewise.
5525 2013-05-08 Doug Evans <dje@google.com>
5527 * psymtab.c (expand_symtabs_matching_via_partial): Fix file name
5530 2013-05-08 Joel Brobecker <brobecker@adacore.com>
5532 * sol-thread.c (info_cb): Factorize the code a little.
5534 2013-05-08 Joel Brobecker <brobecker@adacore.com>
5536 * sol-thread.c (info_cb): Rework the output of the "maintenance
5537 info sol-threads" command a bit.
5539 2013-05-08 Joel Brobecker <brobecker@adacore.com>
5541 * sol-thread.c (info_cb) [ti.ti_state == TD_THR_SLEEP]:
5542 Replace ti.ti_startfunc by ti.ti_pc.
5544 2013-05-08 Joel Brobecker <brobecker@adacore.com>
5546 * solib-aix.c (solib_aix_free_library_list): New function
5547 for the case where HAVE_LIBEXPAT is not defined.
5549 2013-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
5551 PR breakpoints/15413:
5552 * breakpoint.c (condition_completer): Simplify the code to
5553 disconsider multiple locations of breakpoints when completing the
5554 "condition" command.
5556 2013-05-07 Pierre Muller <muller@sourceware.org>
5558 * common/linux-btrace.c: ARI fix: Include "gdb_wait.h"
5559 instead of <sys/wait.h>.
5561 2013-05-07 Pierre Muller <muller@sourceware.org>
5563 * nios2-tdep.c (nios2_dwarf_reg_to_regnum): ARI fix: remove
5564 trailing new line from warning message.
5566 2013-05-07 Pierre Muller <muller@sourceware.org>
5568 * contrib/ari/gdb_ari.sh (SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK)
5569 (PC_SOLIB): Change type from ari_deprecate to ari_regression.
5571 2013-05-07 Joel Brobecker <brobecker@adacore.com>
5573 * rs6000-nat.c (rs6000_core_ldinfo): Remove '\n' at end of
5574 error message (ARI fix).
5576 2013-05-07 Joel Brobecker <brobecker@adacore.com>
5578 * features/library-list-aix.dtd: Replace library-list by
5580 * rs6000-nat.c: Replace library-list by library-list-aix
5582 * solib-aix.c: Likewise.
5584 2013-05-07 Joel Brobecker <brobecker@adacore.com>
5586 * target.h (enum target_object) [TARGET_OBJECT_LIBRARIES_AIX]:
5587 Renames TARGET_OBJECT_AIX_LIBRARIES.
5588 * rs6000-nat.c: Replace TARGET_OBJECT_AIX_LIBRARIES with
5589 TARGET_OBJECT_LIBRARIES_AIX throughout.
5590 * solib-aix.c: Likwise.
5592 2013-05-07 Yao Qi <yao@codesourcery.com>
5594 * solib-dsbt.c (struct dsbt_info) <enable_break2_done>: Remove.
5595 (get_dsbt_info, enable_break, dsbt_clear_solib): Update.
5597 2013-05-07 Yao Qi <yao@codesourcery.com>
5599 * solib-dsbt.c (enable_break): Declare.
5600 (dsbt_current_sos): Remove call to enable_break2.
5601 (enable_break2): Rename to enable_break. Set solib breakpoint
5602 on '_dl_debug_state'.
5603 (enable_break): Remove.
5605 2013-05-07 Luis Machado <lgustavo@codesourcery.com>
5607 * ppc-linux-nat.c (ppc_linux_new_thread): Clear the new thread's
5608 debug state prior to replicating existing hardware watchpoints or
5611 2013-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
5613 * gcore.c (gcore_create_callback): Ignore sections with
5614 separate_debug_objfile_backlink != NULL.
5616 2013-05-06 Sandra Loosemore <sandra@codesourcery.com>
5617 Andrew Jenner <andrew@codesourcery.com>
5618 Chung-Lin Tang <cltang@codesourcery.com>
5619 Julian Brown <julian@codesourcery.com>
5621 Based on the nios2-elf port from Altera Corporation.
5623 * Makefile.in (ALL_TARGET_OBS): Add nios2-tdep.o and
5625 (HFILES_NO_SRCDIR): Add nios2-tdep.h.
5626 (ALLDEPFILES): Add nios2-tdep.c and nios2-linux-tdep.c.
5627 * configure.tgt: Add nios2*-*-linux* and nios2*-*-* targets.
5628 * nios2-tdep.h: New.
5629 * nios2-tdep.c: New.
5630 * nios2-linux-tdep.c: New.
5631 * features/Makefile (WHICH): Add nios2-linux.
5632 (nios2-linux-expedite): Set.
5633 * features/nios2-cpu.xml: New.
5634 * features/nios2.xml: New.
5635 * features/nios2-linux.xml: New.
5636 * features/nios2.c: New (autogenerated).
5637 * features/nios2-linux.c: New (autogenerated).
5638 * regformats/nios2-linux.dat: New (autogenerated).
5639 * NEWS (Changes since GDB 7.6): Add new Nios II targets
5642 2013-05-06 Doug Evans <dje@google.com>
5644 * symfile.c: Whitespace cleanup.
5646 * solist.h (struct target_so_ops): New member clear_so.
5647 * solib-svr4.c (svr4_clear_so): New function.
5648 (_initialize_svr4_solib): Set svr4_so_ops.clear_so.
5649 * solib.c (clear_so): Renamed from free_so_symbols.
5650 All callers updated. Call target clear_so if it exists.
5652 2013-05-06 Tom Tromey <tromey@redhat.com>
5654 * ada-lang.c (ada_value_primitive_packed_val): Don't
5656 * value.c (set_value_parent): Incref the new parent and decref
5658 (value_copy, value_primitive_field): Use set_value_parent.
5660 2013-05-06 Tom Tromey <tromey@redhat.com>
5662 * dwarf2loc.c (invalid_synthetic_pointer): Move earlier.
5663 (indirect_pieced_value): Call dwarf2_fetch_constant_bytes
5665 * dwarf2loc.h (dwarf2_fetch_constant_bytes): Declare.
5666 * dwarf2read.c (write_constant_as_bytes)
5667 (dwarf2_fetch_constant_bytes): New functions.
5669 2013-05-06 Tom Tromey <tromey@redhat.com>
5671 * dwarf2read.c (dwarf2_const_value_data): Remove unused
5673 (dwarf2_const_value_attr): Update.
5675 2013-05-06 Tom Tromey <tromey@redhat.com>
5677 * somread.c (som_symfile_offsets): Add 'const' to addrs.
5678 * machoread.c (macho_symfile_offsets): Add 'const' to addrs.
5679 * xcoffread.c (xcoff_symfile_offsets): Add 'const' to addrs.
5682 2013-05-06 Tom Tromey <tromey@redhat.com>
5684 * dwarf2read.c (dwarf2_const_value_attr): Use 'obstack', not
5687 2013-05-06 Doug Evans <dje@google.com>
5689 * dbxread.c (process_one_symbol): Constify section_offsets parameter.
5690 * stabsread.h (process_one_symbol): Update declaration.
5691 * dwarf2read.c (dw2_relocate): Constify new_offsets, delta parameters.
5692 * elfread.c (elf_symfile_relocate_probe): Ditto.
5693 * psymtab.c (relocate_psymtabs): Ditto.
5694 * objfiles.c (objfile_relocate1): Constify new_offsets parameter.
5695 (objfile_relocate): Ditto.
5696 * objfiles.h (objfile_relocate): Update declaration.
5697 * symfile.c (relative_addr_info_to_section_offsets): Constify
5699 (default_symfile_offsets): Ditto.
5700 (syms_from_objfile_1): Constify offsets parameter.
5701 (syms_from_objfile): Ditto.
5702 (symbol_file_add_with_addrs_or_offsets): Ditto.
5703 (symfile_map_offsets_to_segments): Constify data parameter.
5704 * symfile.h (struct quick_symbol_functions): Constify new_offsets,
5705 delta parameters of member relocate.
5706 (struct sym_probe_fns): Constify new_offsets,
5707 delta parameters of member sym_relocate_probe.
5708 (struct sym_fns): Constify section_addr_info parameter of member
5710 (relative_addr_info_to_section_offsets): Update declaration.
5711 (default_symfile_offsets): Ditto.
5712 (syms_from_objfile): Ditto.
5713 (symfile_map_offsets_to_segments): Ditto.
5715 * symfile.c (syms_from_objfile_1): Use correct section count when
5716 objfile->sf == NULL.
5718 2013-05-06 Mike Frysinger <vapier@gentoo.org>
5720 * common/linux-btrace.c (intel_supports_btrace): Fix indentation.
5722 2013-05-06 Doug Evans <dje@google.com>
5724 * psympriv.h (struct partial_symtab): Augment comment for member
5727 2013-05-06 Joel Brobecker <brobecker@adacore.com>
5729 Reimplement shared library support on ppc-aix...
5730 * target.h (TARGET_OBJECT_AIX_LIBRARIES): New target_object enum.
5731 * features/library-list-aix.dtd: New file.
5732 * solib-aix.h, solib-aix.c: New file.
5733 * rs6000-aix-tdep.c: #include "solib.h" and "solib-aix.h".
5734 (rs6000_find_toc_address_hook): Delete.
5735 (rs6000_push_dummy_call): Rewrite code setting the TOC value.
5736 (rs6000_aix_init_osabi): Register solib_aix_so_ops.
5737 * rs6000-nat.c: Remove "xcoffsolib.h" include. Include
5739 (map_vmap, vmap_exec, vmap_ldinfo, add_vmap, objfile_symbol_add)
5740 (vmap_symtab, fixup_breakpoints): Delete.
5741 (rs6000_xfer_shared_libraries): New function.
5742 (rs6000_xfer_partial): Add TARGET_OBJECT_AIX_LIBRARIES handling.
5743 (vmap_secs, bss_data_overlap, vmap_add_symbols): Delete.
5744 (xcoff_relocate_symtab, xcoff_relocate_core): Delete.
5745 (rs6000_ptrace_ldinfo, rs6000_core_ldinfo)
5746 (rs6000_xfer_shared_library): New function.
5747 (find_toc_address): Delete.
5748 (_initialize_rs6000_nat): Do not set rs6000_find_toc_address_hook.
5749 * rs6000-tdep.h (rs6000_find_toc_address_hook): Remove.
5750 * xcoffread.c (record_minimal_symbol): Reloate symbol address
5751 before creating minimal symbol. Adjust function description
5753 (scan_xcoff_symtab): Replace call to
5754 prim_record_minimal_symbol_and_info by call to
5755 record_minimal_symbol.
5756 (xcoff_symfile_offsets): Reimplement mostly as a wrapper
5757 around default_symfile_offsets.
5758 * configure.tgt: Add solib-aix.o to gdb_target_obs for
5759 powerpc-aix targets.
5760 * config/rs6000/nm-rs6000.h: Delete.
5761 * config/powerpc/aix.mh (NAT_FILE): Delete.
5762 (NATDEPFILES): Remove xcoffsolib.o.
5763 * Makefile.in (XMLFILES): Add library-list-aix.dtd.
5764 (ALL_TARGET_OBS): Add solib-aix.o.
5765 (HFILES_NO_SRCDIR): Remove xcoffsolib.h and
5766 config/rs6000/nm-rs6000.h. Add solib-aix.h.
5767 (ALLDEPFILES): Add solib-aix.c. Remove xcoffsolib.c.
5768 * xcoffsolib.h, xcoffsolib.c: Delete.
5770 * solib.c (reload_shared_libraries): Remove reference to
5771 SOLIB_CREATE_INFERIOR_HOOK.
5772 * breakpoint.c (handle_solib_event): Remove reference to SOLIB_ADD.
5773 (disable_breakpoints_in_shlibs): Remove reference to PC_SOLIB.
5774 (momentary_bkpt_re_set): Replace SOLIB_ADD by solib_add in
5776 * corelow.c (deprecated_core_resize_section_table): Delete.
5777 * exec.c: Remove include of xcoffsolib.h".
5778 (map_vmap, vmap): Delete.
5779 (exec_close_1): Remove references to vmap.
5780 (exec_file_attach): Remove vmap handling code, and reference
5781 to DEPRECATED_IBM6000_TARGET.
5782 (bfdsec_to_vmap): Delete.
5783 (exec_files_info): Remove block of code handling VMAP.
5784 * infcmd.c (post_create_inferior): Remove reference to
5785 SOLIB_CREATE_INFERIOR_HOOK and SOLIB_ADD.
5786 * infrun.c (follow_exec): Remove reference to
5787 SOLIB_CREATE_INFERIOR_HOOK.
5788 * stack.c (print_frame): Remove reference to PC_SOLIB.
5789 * solib-dsbt.c (dsbt_current_sos): Adjust comment.
5790 (dsbt_relocate_main_executable): Likewise.
5791 * solib-frv.c (frv_current_sos): Likewise.
5793 2013-05-06 Joel Brobecker <brobecker@adacore.com>
5795 * sol-thread.c (rw_common): Cast BUF to "gdb_byte *" in calls
5796 to target_write_memory and target_read_memory.
5798 2013-05-06 Joel Brobecker <brobecker@adacore.com>
5800 * darwin-nat.c (darwin_setup_fake_stop_event): New function.
5801 (darwin_attach): Adjust using darwin_setup_fake_stop_event.
5803 2013-05-06 Joel Brobecker <brobecker@adacore.com>
5805 * darwin-nat.c: Replace all "%x" instances in format strings
5806 into "0x%x" throughout.
5808 2013-05-06 Joel Brobecker <brobecker@adacore.com>
5810 * darwin-nat.c (darwin_mourn_inferior): Replace call to
5811 gdb_assert by call to MACH_CHECK_ERROR.
5812 (darwin_attach_pid): Raise an error rather than a failed
5813 assertion when various system calls failed. Report a warning
5814 instead of raising a failed assertion when PREV_NOT is not NULL
5815 after call to mach_port_request_notification.
5816 (darwin_ptrace_me): Raise an error rather than a failed
5817 assertion when read returns nonzero.
5819 2013-05-06 Joel Brobecker <brobecker@adacore.com>
5821 * amd64-darwin-tdep.c: Remove #include "gdb_assert.h".
5823 2013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
5825 * cleanups.c (restore_my_cleanups): New gdb_assert for SENTINEL_CLEANUP.
5827 2013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
5829 * event-top.c (display_gdb_prompt): Call missing do_cleanups.
5830 * infcmd.c (get_return_value) <!stop_regs>: Do not overwrite CLEANUP.
5831 * symfile.c (symfile_bfd_open): New variable back_to. Do not leave
5832 a stale cleanup. Fix double free of NAME.
5834 2013-05-04 Eli Zaretskii <eliz@gnu.org>
5836 * windows-nat.c (windows_delete_thread): Accept an additional
5837 argument, the thread's exit code, and announce thread death when
5838 print_thread_events is non-zero and we are deleting a thread that
5839 is not the main thread.
5840 (get_windows_debug_event): Pass thread exit code to
5841 windows_delete_thread.
5843 2013-05-03 Kevin Buettner <kevinb@redhat.com>
5845 * v850-tdep.c (elf-bfd.h, elf/v850.h): Include.
5846 (R_149_REGNUM, E_NUM_OF_V850E2_REGS, E_SELID_1_R0_REGNUM)
5847 (E_SELID_1_R31_REGNUM, E_SELID_2_R0_REGNUM, E_SELID_2_R31_REGNUM)
5848 (E_SELID_3_R0_REGNUM, E_SELID_3_R31_REGNUM, E_SELID_4_R0_REGNUM)
5849 (E_SELID_4_R31_REGNUM, E_SELID_5_R0_REGNUM, E_SELID_5_R31_REGNUM)
5850 (E_SELID_6_R0_REGNUM, E_SELID_6_R31_REGNUM, E_SELID_7_R0_REGNUM, E_SELID_7_R31_REGNUM)
5851 (E_VR0_REGNUM, E_VR31_REGNUM, E_NUM_OF_V850E3V5_REGS): Define.
5852 (v850_abi, V850_ABI_GCC, V850_ABI_RH850): New enum and constants.
5853 (gdbarch_tdep): New struct.
5854 (v850e2_register_name): Use E_NUM_OF_V850E2_REGS instead of
5856 (v850e3v5_register_name): New function.
5857 (v850_register_type): v850e3v5 vector registers are 64-bits wide.
5858 (v850_use_struct_convention): Add `gdbarch' parameter. Add new
5859 code handling the struct return conventions for the RH850 ABI.
5861 (v850_eight_byte_align_p): New function.
5862 (v850_push_call_dummy): Push structs by value, not by reference
5863 for the RH850 ABI. Add support for eight byte alignment.
5864 (v850_dbtrap_breakpoint_from_pc): New function.
5865 (v850_gdbarch_init): Add ABI detection code. Register
5866 v850e3v5_register_name for the v850e3v5 architecture. Set the
5867 number of registers for v850e3v5. Register
5868 v850_dbtrap_breakpoint_from_pc as appropriate.
5869 (_initialize_gdbarch_init): Registration bfd_arch_v850_rh850.
5871 2013-05-03 Doug Evans <dje@google.com>
5873 * objfiles.c (objfile_relocate): Use gdb_bfd_count_sections instead
5874 of bfd_count_sections.
5875 * solib-target.c (solib_target_relocate_section_addresses): Ditto.
5876 * symfile.c (default_symfile_offsets): Ditto.
5877 (syms_from_objfile_1): Ditto. Make dummy addrs list an array of
5878 one entry, not bfd_count_sections entries.
5880 2013-05-03 Kevin Buettner <kevinb@redhat.com>
5882 * rl78-tdep.c (rl78_register_reggroup_p): Include SP in the
5883 `save' and `restore' register groups. Don't include SPL
5884 or SPH in these groups.
5885 (rl78_dwarf_reg_to_regnum): Adjust mapping for
5886 RL78_PC_REGNUM. Add mappings for RL78_PSW_REGNUM,
5887 RL78_ES_REGNUM, and RL78_CS_REGNUM.
5888 (rl78_gdbarch_init): Set `dwarf2_addr_size' to 4. Invoke
5889 dwarf2_append_unwinders().
5891 2013-05-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5893 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Do not
5894 ignore SIGINT and SIGTRAP in case these internal signals are
5897 2013-05-01 Joel Brobecker <brobecker@adacore.com>
5899 * darwin-nat.c (darwin_read_write_inferior): Change types
5900 of parameters rdaddr and wraddr to "gdb_byte *". Change type
5901 of copy_count to "mach_msg_type_number_t".
5902 (darwin_read_dyld_info): Change type of parameter
5903 rdaddr to "gdb_byte *".
5905 2013-05-01 Joel Brobecker <brobecker@adacore.com>
5907 * solib-ia64-hpux.c (ia64_hpux_read_dynamic_info): Change cast
5908 of &info->load_map from "char *" to "gdb_byte *".
5910 2013-05-01 Joel Brobecker <brobecker@adacore.com>
5912 * ia64-tdep.c (ia64_access_fpreg): Change cast of val
5913 from "char *" to "gdb_byte *".
5914 (ia64_access_rse_fpreg, ia64_access_mem): Likewise.
5916 2013-04-30 Doug Evans <dje@google.com>
5918 * dwarf2read.c (lookup_dwo_unit): Return NULL if DWO not found.
5919 (init_cutu_and_read_dies): Flag a complaint, not error, for bad
5920 DWO stub. If DWO isn't found, just use stub.
5921 (lookup_dwo_cutu): Don't try DWO if there's a DWP file.
5923 * dwarf2read.c (dw2_find_symbol_file): Initialize filename before
5924 calling init_cutu_and_read_dies.
5926 2013-03-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
5928 * target-descriptions.c (maint_print_c_tdesc_cmd):
5929 Add case to parse structures as register types and
5932 2013-04-30 Walfred Tedeschi <walfred.tedeschi@intel.com>
5934 * MAINTAINERS (Write After Approval): Add myself to the list.
5936 2013-04-30 Joel Brobecker <brobecker@adacore.com>
5938 * sol-thread.c (rw_common): Change type of parameter "buf"
5940 (ps_pdwrite, ps_ptwrite): Cast parameter "buf" in call to
5941 rw_common to "gdb_byte *" instead of "char *".
5943 2013-04-30 Joel Brobecker <brobecker@adacore.com>
5945 * sol-thread.c (info_cb) [ti.ti_startfunc != 0]: Change type
5946 of local variable msym to const struct bound_minimal_symbol.
5947 Adjust use accordingly.
5948 [ti.ti_state == TD_THR_SLEEP]: Likewise.
5950 2013-04-30 Samuel Thibault <samuel.thibault@gnu.org>
5952 * i386gnu-nat.c (CREG_OFFSET): New macro.
5953 (creg_offset): New array.
5954 (CREG_ADDR): Use creg_offset instead of reg_offset.
5956 2013-04-30 Joel Brobecker <brobecker@adacore.com>
5958 * mep-tdep.c (mep_write_pc): Delete.
5959 (mep_gdbarch_init): Remove call to set_gdbarch_write_pc.
5960 Add call to set_gdbarch_pc_regnum.
5962 2013-04-30 Joel Brobecker <brobecker@adacore.com>
5964 * common/filestuff.c: Replace #include <dirent.h> by
5965 #include "gdb_dirent.h".
5967 2013-04-30 Joel Brobecker <brobecker@adacore.com>
5969 * common/filestuff.c: Replace #include <sys/stat.h> by
5970 #include "gdb_stat.h".
5972 2013-04-29 Pierre Muller <muller@sourceware.org>
5974 * dwarf2read.c (handle_DW_AT_stmt_list): Avoid ARI warning for
5975 editCase function rule.
5976 (get_DW_AT_signature_type): Likewise.
5978 2013-04-29 Joel Brobecker <brobecker@adacore.com>
5980 * m32r-tdep.c (m32r_write_pc): Delete.
5981 (m32r_gdbarch_init): Remove call to set_gdbarch_write_pc.
5982 Add call to set_gdbarch_pc_regnum.
5984 2013-04-29 Pierre Muller <muller@sourceware.org>
5986 * ./contrib/ari/gdb_ari.sh (editCase rule): Fix spelling error.
5988 2013-04-29 Joel Brobecker <brobecker@adacore.com>
5990 * dwarf2read.c (get_DW_AT_signature_type): Add ARI marker.
5992 2013-04-28 Yao Qi <yao@codesourcery.com>
5994 * solib-dsbt.c (fetch_loadmap): Re-indent.
5995 (displacement_from_map, enable_break2): Likewise.
5996 (dsbt_relocate_section_addresses): Likewise.
5998 2013-04-26 Joel Brobecker <brobecker@adacore.com>
6002 2013-04-25 Andreas Kaufmann <Andreas.Kaufmann@synopsys.com>
6005 * dwarf2read.c (process_full_comp_unit): Always create a static
6008 2013-04-25 Hui Zhu <hui@codesourcery.com>
6010 * breakpoint.c (build_target_command_list): Change loc->cond_bytecode
6011 to loc->cmd_bytecode.
6013 2013-04-24 Doug Evans <dje@google.com>
6015 * dwarf2read.c (setup_type_unit_groups): Fix comment.
6017 2013-04-22 Keith Seitz <keiths@redhat.com>
6019 * tracepoint.c (trace_save): Call the writer's start method.
6021 2013-04-24 Muhammad Bilal <mbilal@codesourcery.com>
6024 * cli/cli-decode.c (lookup_command): Show an error if there is no space
6027 2013-04-23 Tom Tromey <tromey@redhat.com>
6029 * common/filestuff.c: Check USE_WIN32API before including
6031 (HAVE_F_GETFD): New define.
6032 (mark_cloexec): Check HAVE_F_GETFD.
6033 (gdb_open_cloexec): Change 'mode' to unsigned long.
6034 (gdb_socketpair_cloexec): Check HAVE_SOCKETPAIR.
6035 (gdb_pipe_cloexec): Check HAVE_PIPE.
6036 * common/filestuff.h (gdb_open_cloexec): Change 'mode' to unsigned
6039 2013-04-23 Hui Zhu <hui@codesourcery.com>
6042 * breakpoint.c (bpstat_what): Add BPSTAT_WHAT_SINGLE to bp_dprintf.
6044 2013-04-23 Hui Zhu <hui@codesourcery.com>
6047 * breakpoint.c (dprintf_print_recreate): New.
6048 (save_breakpoints): Let it not save dprintf commands.
6049 (initialize_breakpoint_ops): Set dprintf_print_recreate.
6051 2013-04-22 Tom Tromey <tromey@redhat.com>
6054 * Makefile.in (SFILES): Add filestuff.c
6055 (COMMON_OBS): Add filestuff.o.
6056 (filestuff.o): New target.
6057 * auto-load.c (auto_load_objfile_script_1): Use
6059 * auxv.c (procfs_xfer_auxv): Use gdb_open_cloexec.
6060 * cli/cli-cmds.c (shell_escape): Call close_most_fds.
6061 * cli/cli-dump.c (fopen_with_cleanup): Use gdb_fopen_cloexec.
6062 * common/agent.c (gdb_connect_sync_socket): Use
6064 * common/filestuff.c: New file.
6065 * common/filestuff.h: New file.
6066 * common/linux-osdata.c (linux_common_core_of_thread)
6067 (command_from_pid, commandline_from_pid, print_source_lines)
6068 (linux_xfer_osdata_shm, linux_xfer_osdata_sem)
6069 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Use
6071 * common/linux-procfs.c (linux_proc_get_int)
6072 (linux_proc_pid_has_state): Use gdb_fopen_cloexec.
6073 * config.in, configure: Rebuild.
6074 * configure.ac: Don't check for sys/socket.h. Check for
6076 * corelow.c (core_open): Use gdb_open_cloexec.
6077 * dwarf2read.c (write_psymtabs_to_index): Use gdb_fopen_cloexec.
6078 * fork-child.c (fork_inferior): Call close_most_fds.
6079 * gdb_bfd.c (gdb_bfd_open): Use gdb_open_cloexec.
6080 * inf-child.c (inf_child_fileio_readlink): Use gdb_open_cloexec.
6081 * linux-nat.c (linux_nat_thread_name, linux_proc_pending_signals):
6082 Use gdb_fopen_cloexec.
6083 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use
6085 (linux_async_pipe): Use gdb_pipe_cloexec.
6086 * remote-fileio.c (remote_fileio_func_open): Use
6088 * remote.c (remote_file_put, remote_file_get): Use
6090 * ser-pipe.c (pipe_open): Use gdb_socketpair_cloexec,
6092 * ser-tcp.c (net_open): Use gdb_socket_cloexec.
6093 * ser-unix.c (hardwire_open): Use gdb_open_cloexec.
6094 * solib.c (solib_find): Use gdb_open_cloexec.
6095 * source.c (openp, find_and_open_source): Use gdb_open_cloexec.
6096 * tracepoint.c (tfile_start): Use gdb_fopen_cloexec.
6097 (tfile_open): Use gdb_open_cloexec.
6098 * tui/tui-io.c (tui_initialize_io): Use gdb_pipe_cloexec.
6099 * ui-file.c (gdb_fopen): Use gdb_fopen_cloexec.
6100 * xml-support.c (xml_fetch_content_from_file): Use
6102 * main.c (captured_main): Call notice_open_fds.
6104 2013-04-22 Edjunior Machado <emachado@linux.vnet.ibm.com>
6106 * remote-sim.c (dump_mem): Change the type of 'buf' parameter from
6107 'char *' to 'gdb_byte *'.
6108 (gdbsim_store_register): Change the type of 'tmp' from 'char' to
6111 2013-04-22 Yao Qi <yao@codesourcery.com>
6113 * infrun.c: Fix typo in comment.
6115 2013-04-22 Andrew Haley <aph@redhat.com>
6117 * arm-tdep.c (BranchDest): Cast result as "unsigned long",
6120 2013-04-20 Yao Qi <yao@codesourcery.com>
6122 * ctf.c (ctf_fetch_registers): Change the type of 'regs' from
6123 'char *' to 'gdb_byte *'. Cast the return value of
6124 'bt_ctf_get_char_array' to 'gdb_byte *'.
6126 2013-04-19 Pedro Alves <palves@redhat.com>
6128 * configure.ac (build_warnings): Replace -Wno-pointer-sign with
6130 * configure: Regenerate.
6132 2013-04-19 Pedro Alves <palves@redhat.com>
6134 * ser-tcp.c (net_read_prim): Cast second argument to recv to
6137 2013-04-19 Pedro Alves <palves@redhat.com>
6139 * monitor.c (monitor_write_memory, monitor_write_memory_bytes):
6140 Change type of 'myaddr' parameter to gdb_byte pointer.
6141 (monitor_write_memory_longlongs): Likewise. Cast 'myaddr' pointer
6142 to 'long long' pointer instead of to 'unsigned long long'.
6143 (monitor_write_memory_block, monitor_read_memory_single)
6144 (monitor_read_memory): Change type of 'myaddr' parameter to
6147 2013-04-19 Pedro Alves <palves@redhat.com>
6149 * record.c (validate_history_size): Make parameter 'setting'
6152 2013-04-19 Pedro Alves <palves@redhat.com>
6154 * ctf.c (ctf_write_uploaded_tsv, ctf_write_uploaded_tp): Add casts
6157 2013-04-19 Pedro Alves <palves@redhat.com>
6159 * cp-valprint.c (cp_print_class_member): Change type of 'fieldno'
6162 2013-04-19 Pedro Alves <palves@redhat.com>
6164 * ada-lang.c (print_it_exception): Add cast to gdb_byte *.
6165 * ada-tasks.c (read_fat_string_value): Likewise.
6167 2013-04-19 Pedro Alves <palves@redhat.com>
6169 * dwarf2-frame.c (execute_cfa_program): Make 'bytes_read' local
6170 unsigned. Pass 'tmp' to safe_read_uleb128 instead of the signed
6171 'offset', and adjust.
6173 2013-04-19 Pedro Alves <palves@redhat.com>
6175 * dwarf2read.c (dwarf2_get_dwz_file): Add cast to const char *.
6176 (read_index_from_section): Add cast to 'char *'.
6178 2013-04-19 Pedro Alves <palves@redhat.com>
6180 * xcoffread.c (xcoff_initial_scan): Add cast to 'char *'.
6182 2013-04-19 Pedro Alves <palves@redhat.com>
6184 * coff-pe-read.c (read_pe_exported_syms): Handle strings as char.
6186 2013-04-19 Pedro Alves <palves@redhat.com>
6188 * record-full.c (record_full_get_bookmark): Change local 'ret'
6189 type to char * and add cast to gdb_byte *.
6190 (record_full_goto_bookmark): Handle 'bookmark' argument as a
6192 * reverse.c (goto_bookmark_command): Add casts to gdb_byte *.
6194 2013-04-19 Pedro Alves <palves@redhat.com>
6196 * python/py-inferior.c (infpy_write_memory): Add cast to gdb_byte
6197 * python/py-prettyprint.c (print_string_repr): Change type of
6198 'output' local to char *. Add cast to gdb_byte * in
6199 LA_PRINT_STRING call.
6200 (print_children): Change type of 'output' local to char *.
6201 * python/py-value.c (valpy_string): Add cast to const char * in
6202 PyUnicode_Decode call.
6204 2013-04-19 Pedro Alves <palves@redhat.com>
6206 * remote-mips.c (mips_cksum): Rename 'data' parameter to 'datastr'
6207 and change its type to 'const char *'. Adjust.
6208 (mips_send_packet): Add cast to 'char *', and remove cast to
6210 (mips_receive_packet): Remove cast to 'unsigned char *'.
6211 (mips_load_srec): Use bfd_byte.
6212 (pmon_makeb64, pmon_zeroset): Make 'chksum' parameter unsigned.
6213 (pmon_checkset): Make 'value' parameter unsigned.
6215 2013-04-19 Pedro Alves <palves@redhat.com>
6217 * common/agent.c (agent_run_command): Add cast to gdb_byte *.
6219 2013-04-19 Pedro Alves <palves@redhat.com>
6221 * remote.c (remote_write_bytes_aux, compare_sections_command)
6223 (remote_search_memory, remote_hostio_pwrite, remote_hostio_pread)
6224 (remote_hostio_readlink, remote_bfd_iovec_pread)
6225 (remote_set_trace_notes): Use gdb_byte when RSP buffer is used as
6226 binary buffer, and char when buffer is used as string.
6227 * tracepoint.c (encode_source_string, tfile_write_uploaded_tp)
6228 (trace_save, tfile_open, traceframe_walk_blocks)
6229 (tfile_fetch_registers): Likewise.
6231 2013-04-19 Pedro Alves <palves@redhat.com>
6233 * ser-base.c (ser_base_write): Change prototype -- take 'void *'
6234 buffer and size_t size. Adjust.
6235 * ser-base.h (ser_base_write): Adjust.
6236 * ser-go32.c (cnts): Change type to size_t.
6237 (dos_write): Change prototype -- take 'void *'
6238 buffer and size_t size. Adjust.
6239 (dos_info): Print elements of 'cnts' as unsigned long.
6240 * serial.c (serial_write): Likewise.
6241 * serial.h (serial_write): Adjust.
6242 (struct serial_ops) <write>: Change prototype -- take 'void *'
6243 buffer and size_t size. Adjust.
6245 2013-04-19 Pedro Alves <palves@redhat.com>
6247 * c-lang.c (evaluate_subexp_c): Cast result of obstack_base to
6249 * linux-tdep.c (linux_make_mappings_corefile_notes): Likewise.
6251 2013-04-19 Pedro Alves <palves@redhat.com>
6253 * alpha-tdep.c (alpha_extract_return_value): Use
6254 regcache_cooked_read_unsigned to read 'v0'.
6256 2013-04-19 Pedro Alves <palves@redhat.com>
6258 * xtensa-tdep.c (execute_l32e, execute_s32e): Change type of
6259 parameters 'at', 'as' and 'offset' to uint32_t.
6261 2013-04-19 Pedro Alves <palves@redhat.com>
6263 * aarch64-tdep.c (aarch64_analyze_prologue): Change type of local
6264 'is64' to signed 'int'.
6266 2013-04-19 Pedro Alves <palves@redhat.com>
6268 * s390-tdep.c (is_rs, is_rsy, is_rx, is_rxy): Change type of 'd2'
6271 2013-04-19 Pedro Alves <palves@redhat.com>
6273 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Change local
6274 'insnbuf' buffer type to unsigned int[].
6276 2013-04-19 Pedro Alves <palves@redhat.com>
6278 * mips-tdep.c (mips_read_pc): Change local 'pc' type to LONGEST.
6280 2013-04-19 Pedro Alves <palves@redhat.com>
6282 * mep-tdep.c (mep_get_insn): Change 'insn' parameter type to
6285 2013-04-19 Pedro Alves <palves@redhat.com>
6287 * alpha-tdep.c (heuristic_fence_post): Change type to int.
6288 (alpha_heuristic_proc_start): Adjust to check -1 instead of
6290 * mips-tdep.c (heuristic_fence_post): Change type to int.
6291 (heuristic_proc_start): Adjust to check -1 instead of UINT_MAX.
6293 2013-04-19 Pedro Alves <palves@redhat.com>
6295 * cris-tdep.c (usr_cmd_cris_version): Make unsigned.
6296 (struct gdbarch_tdep) <cris_version>: Make unsigned.
6297 (cris_spec_reg_applicable, cris_gdbarch_init): Adjust locals.
6299 2013-04-19 Pedro Alves <palves@redhat.com>
6301 * avr-tdep.c (avr_io_reg_read_command): New local 'bufstr'. Use
6302 it to get a string view of the byte buffer.
6303 * i386-cygwin-tdep.c (core_process_module_section): Change local 'buf'
6304 type to gdb_byte *. Adjust.
6305 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full):
6306 Change local to char *.
6307 * solib-darwin.c (find_program_interpreter): Change return type to
6309 (darwin_solib_get_all_image_info_addr_at_init): Adjust.
6310 * solib-dsbt.c (enable_break2): Change local 'buf' to char *.
6311 * solib-frv.c (enable_break2): Change local 'buf' to char *.
6312 * solib-spu.c (spu_current_sos): Add gdb_byte * cast.
6313 * solib-svr4.c (find_program_interpreter): Change return type to
6315 (enable_break): Change local 'interp_name' to char *.
6316 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
6317 * spu-tdep.c (spu_pseudo_register_read_spu): Add cast to 'char *'.
6318 (spu_pseudo_register_write_spu): Use char for string buffer.
6320 (info_spu_event_command, info_spu_signal_command): Add casts to
6323 2013-04-19 Pedro Alves <palves@redhat.com>
6325 * aarch64-tdep.c (aarch64_default_breakpoint): Change type to
6327 (aarch64_breakpoint_from_pc): Change return type to gdb_byte *.
6328 * ada-lang.c (ada_value_assign): Use gdb_byte.
6329 * alphanbsd-tdep.c (sigtramp_retcode): Change type to gdb_byte[].
6330 (alphanbsd_sigtramp_offset): Use gdb_byte.
6331 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint)
6332 (arm_linux_arm_be_breakpoint, eabi_linux_arm_le_breakpoint)
6333 (eabi_linux_arm_be_breakpoint, arm_linux_thumb_be_breakpoint)
6334 (arm_linux_thumb_le_breakpoint, arm_linux_thumb2_be_breakpoint)
6335 (arm_linux_thumb2_le_breakpoint): Change type to gdb_byte[].
6336 * arm-tdep.c (arm_stub_unwind_sniffer)
6337 (arm_displaced_init_closure): Use gdb_byte.
6338 (arm_default_arm_le_breakpoint, arm_default_arm_be_breakpoint)
6339 (arm_default_thumb_le_breakpoint)
6340 (arm_default_thumb_be_breakpoint): Change type to gdb_byte[].
6341 * arm-tdep.h (struct gdbarch_tdep) <arm_breakpoint,
6342 thumb_breakpoint, thumb2_breakpoint>: Change type to gdb_byte *.
6343 * arm-wince-tdep.c (arm_wince_le_breakpoint)
6344 (arm_wince_thumb_le_breakpoint): Change type to gdb_byte[].
6345 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint)
6346 (arm_nbsd_arm_be_breakpoint, arm_nbsd_thumb_le_breakpoint)
6347 (arm_nbsd_thumb_be_breakpoint): Change type to gdb_byte[].
6348 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint)
6349 (arm_obsd_thumb_be_breakpoint): Change type to gdb_byte[].
6350 * cris-tdep.c (push_stack_item, cris_push_dummy_call)
6351 (cris_store_return_value, cris_extract_return_value): Use
6353 (constraint): Change type of parameter to char * from signed
6354 char*. Use gdb_byte.
6355 * dwarf2loc.c (read_pieced_value, write_pieced_value): Change type
6356 of local buffer to gdb_byte *.
6357 * dwarf2read.c (read_index_from_section): Use gdb_byte.
6358 (create_dwp_hash_table): Change type of locals to gdb_byte *.
6359 (add_address_entry): Change type of local buffer to gdb_byte[].
6360 * frv-tdep.c (frv_adjust_breakpoint_address, find_func_descr)
6361 (frv_push_dummy_call): Use gdb_byte.
6362 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code)
6363 (hppa_hpux_supply_ss_fpblock, hppa_hpux_supply_ss_wide)
6364 (hppa_hpux_supply_save_state): Use gdb_byte.
6365 * hppa-tdep.c (hppa32_push_dummy_call)
6366 (hppa64_convert_code_addr_to_fptr): Use gdb_byte.
6367 * ia64-tdep.c (extract_bit_field, replace_bit_field)
6368 (slotN_contents, replace_slotN_contents): Change type of parameter
6370 (fetch_instruction, ia64_pseudo_register_write)
6371 (ia64_register_to_value, ia64_value_to_register)
6372 (ia64_extract_return_value, ia64_store_return_value)
6373 (ia64_push_dummy_call): Use gdb_byte.
6374 * m32c-tdep.c (m32c_return_value): Remove cast.
6375 * m68hc11-tdep.c (m68hc11_pseudo_register_write)
6376 (m68hc11_push_dummy_call, m68hc11_store_return_value): Use
6378 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use gdb_byte.
6379 * mn10300-tdep.c (mn10300_store_return_value)
6380 (mn10300_breakpoint_from_pc, mn10300_push_dummy_call): Use
6382 * moxie-tdep.c (moxie_process_readu): Use gdb_byte.
6383 (moxie_process_record): Remove casts.
6384 * ppc-ravenscar-thread.c (supply_register_at_address)
6385 (ppc_ravenscar_generic_store_registers): Use gdb_byte.
6386 * ravenscar-thread.c (get_running_thread_id): Use gdb_byte.
6387 * remote-m32r-sdi.c (m32r_fetch_register): Use gdb_byte.
6388 * remote-mips.c (mips_xfer_memory): Use gdb_byte.
6389 * remote.c (compare_sections_command): Use gdb_byte.
6390 * score-tdep.c (score7_free_memblock): Change type of parameter to
6392 * sh-tdep.c (sh_justify_value_in_reg): Change return type to
6393 gdb_byte *. Use gdb_byte.
6394 (sh_push_dummy_call_fpu): Use gdb_byte.
6395 (sh_extract_return_value_nofpu, sh_extract_return_value_fpu)
6396 (sh_store_return_value_nofpu, sh_store_return_value_fpu)
6397 (sh_register_convert_to_virtual, sh_register_convert_to_raw):
6398 Change parameter type to 'gdb_byte *'. Use gdb_byte.
6399 (sh_pseudo_register_read, sh_pseudo_register_write): Use gdb_byte.
6400 * sh64-tdep.c (sh64_push_dummy_call): Use gdb_byte.
6401 (sh64_store_return_value, sh64_register_convert_to_virtual):
6402 Change parameter type to 'gdb_byte *'. Use gdb_byte.
6403 (sh64_pseudo_register_write): Use gdb_byte.
6404 * solib-darwin.c (darwin_current_sos): Add casts to 'gdb_byte *'.
6405 * solib-irix.c (fetch_lm_info): Likewise. Use gdb_byte for byte
6407 (irix_current_sos): Use gdb_byte.
6408 * solib-som.c (som_current_sos): Use gdb_byte.
6409 * sparc-ravenscar-thread.c (supply_register_at_address)
6410 (sparc_ravenscar_generic_store_registers): Use gdb_byte.
6411 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
6412 * spu-tdep.c (spu_get_overlay_table): Use gdb_byte.
6413 * tic6x-tdep.c (tic6x_breakpoint_from_pc): Change return type to
6415 * tic6x-tdep.h (struct gdbarch_tdep) <breakpoint>: Change type to
6417 * tracepoint.c (tfile_fetch_registers): Use gdb_byte.
6418 * xstormy16-tdep.c (xstormy16_extract_return_value)
6419 (xstormy16_store_return_value): Change parameter type to
6420 'gdb_byte *'. Adjust.
6421 (xstormy16_push_dummy_call): Use gdb_byte.
6422 * xtensa-tdep.c (xtensa_scan_prologue, call0_ret)
6423 (call0_analyze_prologue, execute_code): Use gdb_byte.
6425 2013-04-19 Vladimir Kargov <kargov@gmail.com>
6426 Pedro Alves <palves@redhat.com>
6428 * i387-tdep.c (i387_print_float_info): Use gdb_byte for pointer to
6431 2013-04-17 Doug Evans <dje@google.com>
6433 * dwarf2read.c (struct signatured_type): New member type.
6434 (struct attribute): Replace member signatured_type with signature.
6435 (DW_SIGNATURE): Replaces DW_SIGNATURE_TYPE.
6436 (read_call_site_scope): Call follow_die_ref instead of
6437 follow_die_ref_or_sig.
6438 (read_structure_type): Rewrite handling of signatured types.
6439 (read_enumeration_type): Ditto.
6440 (read_attribute_value): Update.
6441 (build_error_marker_type): New function.
6442 (lookup_die_type): Add assert. Rewrite handling of signatured types.
6443 Don't call error for bad types, just build an error marker type.
6444 (dump_die_shallow): Update.
6445 (follow_die_sig_1): Renamed from follow_die_sig.
6446 Don't call error for bad types, instead return NULL.
6447 (follow_die_sig): New function.
6448 (get_signatured_type, get_DW_AT_signature_type): New functions.
6450 2013-04-17 Yufeng Zhang <yufeng.zhang@arm.com>
6452 * aarch64-tdep.c (aarch64_write_pc): Removed.
6453 (aarch64_gdbarch_init): Remove set_gdbarch_write_pc of the above
6456 2013-04-17 Yao Qi <yao@codesourcery.com>
6458 * top.c (print_gdb_configuration): Print configure-time
6459 parameter on using libbabeltrace or not.
6461 2013-04-16 Pedro Alves <palves@redhat.com>
6463 * copyright.py (EXCLUDE_LIST): Add gdb/common/glibc_thread_db.h.
6465 2013-04-16 Pedro Alves <palves@redhat.com>
6467 * common/glibc_thread_db.h: Update from upstream glibc
6468 (git 568035b7874a099087b77f7bba3e36a1173787b0).
6470 2013-04-16 Pedro Alves <palves@redhat.com>
6472 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: Factor out to ...
6473 * common/glibc_thread_db.h: ... this new file ...
6474 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: ... and include it.
6476 2013-04-16 Will Newton <will.newton@gmail.com>
6477 Pedro Alves <palves@redhat.com>
6481 * common/gdb_thread_db.h (LIBTHREAD_DB_SO)
6482 (LIBTHREAD_DB_SEARCH_PATH): Move outside of #ifdef
6485 2013-04-16 Pedro Alves <palves@redhat.com>
6486 Eli Zaretskii <eliz@gnu.org>
6488 * NEWS: Mention "set foo unlimited".
6490 2013-04-15 Doug Evans <dje@google.com>
6492 * dwarf2read.c (struct dwo_file): Replace member "cus" with "cu".
6493 (struct create_dwo_cu_data): Renamed from create_dwo_info_table_data.
6494 (create_dwo_cu_reader): Renamed from
6495 create_dwo_debug_info_hash_table_reader.
6496 (create_dwo_cu): Renamed from create_dwo_debug_info_hash_table.
6497 Remove support for multiple CUs in a DWO file.
6498 (open_and_init_dwo_file, lookup_dwo_cutu): Update.
6500 * dwarf2read.c (create_debug_types_hash_table): Use hex_string
6502 (lookup_dwo_unit, create_dwo_debug_info_hash_table_reader): Ditto.
6503 (create_dwo_in_dwp): Ditto.
6505 2013-04-15 Tom Tromey <tromey@redhat.com>
6507 * NEWS: Move recent entries into "since 7.6" section.
6509 2013-04-15 Tom Tromey <tromey@redhat.com>
6513 * break-catch-throw.c (struct exception_catchpoint)
6514 <exception_rx, pattern>: New fields.
6515 (fetch_probe_arguments, dtor_exception_catchpoint)
6516 (check_status_exception_catchpoint)
6517 (print_one_detail_exception_catchpoint): New functions.
6518 (handle_gnu_v3_exceptions): Add "except_rx" argument.
6519 Compile regular expression if needed.
6520 (extract_exception_regexp): New function.
6521 (catch_exception_command_1): Use extract_exception_regexp.
6522 (compute_exception): Use fetch_probe_arguments.
6523 (initialize_throw_catchpoint_ops): Set dtor, print_one_detail,
6524 and check_status fields.
6525 * cp-abi.c (cplus_typename_from_type_info): New function.
6526 * cp-abi.h (cplus_typename_from_type_info): Declare.
6527 (struct cp_abi_ops) <get_typename_from_type_info>: New field.
6528 * gdb_regex.h (compile_rx_or_error): Declare.
6529 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info): Update
6531 (init_gnuv3_ops): Set get_type_from_type_info field.
6532 * probe.c (compile_rx_or_error): Move...
6533 * utils.c (compile_rx_or_error): ... here.
6535 2013-04-15 Tom Tromey <tromey@redhat.com>
6539 * break-catch-throw.c (compute_exception): New function.
6540 (exception_funcs): New global.
6541 (_initialize_break_catch_throw): Create $_exception.
6542 * cp-abi.c (cplus_type_from_type_info): New function.
6543 * cp-abi.h (cplus_type_from_type_info): Declare.
6544 (struct cp_abi_ops) <get_type_from_type_info>: New field.
6545 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info)
6546 (gnuv3_get_type_from_type_info): New functions.
6547 (init_gnuv3_ops): Set get_type_from_type_info ABI field.
6549 2013-04-15 Tom Tromey <tromey@redhat.com>
6551 * break-catch-throw.c (struct exception_names): New.
6552 (exception_functions): Change type.
6553 (re_set_exception_catchpoint): Look for SDT probes.
6555 2013-04-15 Tom Tromey <tromey@redhat.com>
6558 * break-catch-throw.c (exception_functions): New global.
6559 (gnu_v3_exception_catchpoint_ops): Move earlier.
6560 (struct exception_catchpoint): New.
6561 (classify_exception_breakpoint): Rewrite.
6562 (re_set_exception_catchpoint): New function.
6563 (handle_gnu_v3_exceptions): Return void. Use init_catchpoint.
6564 Allocate a struct exception_catchpoint.
6565 (catch_exception_command_1): Update.
6566 (initialize_throw_catchpoint_ops): Set 're_set' method.
6568 2013-04-15 Tom Tromey <tromey@redhat.com>
6570 * Makefile.in (SFILES): Add break-catch-throw.c
6571 (COMMON_OBS): Add break-catch-throw.o.
6572 * break-catch-throw.c: New file.
6573 * breakpoint.c: Move exception-catching code to new file.
6574 (ep_parse_optional_if_clause): No longer static.
6575 * breakpoint.h (ep_parse_optional_if_clause): Declare.
6577 2013-04-15 Tom Tromey <tromey@redhat.com>
6581 * breakpoint.c (watchpoint_exp_is_const): Add OP_TYPEID.
6582 * c-exp.y (TYPEID): New token.
6583 (exp): Add new TYPEID productions.
6584 (ident_tokens): Add "typeid".
6585 * cp-abi.c (cplus_typeid, cplus_typeid_type): New functions.
6586 * cp-abi.h (cplus_typeid, cplus_typeid_type): Declare.
6587 (struct cp_abi_ops) <get_typeid, get_typeid_type>: New fields.
6588 * eval.c (evaluate_subexp_standard) <OP_TYPEID>: New case.
6589 * expprint.c (dump_subexp_body_standard) <OP_TYPEID>: New
6591 * gnu-v3-abi.c (std_type_info_gdbarch_data): New global.
6592 (build_std_type_info_type, gnuv3_get_typeid_type)
6593 (gnuv3_get_typeid): New functions.
6594 (init_gnuv3_ops): Initialize std_type_info_gdbarch_data. Set
6595 new fields on ABI object.
6596 * parse.c (operator_length_standard) <OP_TYPEID>: New case.
6597 * std-operator.def (OP_TYPEID): New.
6599 2013-04-15 Tom Tromey <tromey@redhat.com>
6601 * elfread.c (elf_symtab_read): Install versioned symbol under
6602 unversioned name as well.
6604 2013-04-15 Tom Tromey <tromey@redhat.com>
6607 * c-lang.c (cplus_language_defn): Use gdb_demangle.
6608 * c-typeprint.c (c_type_print_base): Use gdb_demangle.
6609 * cp-support.c (mangled_name_to_comp): Use gdb_demangle.
6610 (gdb_demangle): New function.
6611 * cp-support.h (gdb_demangle): Declare.
6612 * dwarf2read.c (dwarf2_physname, fixup_partial_die)
6613 (dwarf2_name): Use gdb_demangle.
6614 * gdbtypes.c (check_stub_method): Use gdb_demangle.
6615 * gnu-v3-abi.c (gnuv3_rtti_type): Strip @plt and version
6617 (gnuv3_print_method_ptr): Use gdb_demangle.
6618 * jv-lang.c (java_demangle): Use gdb_demangle.
6619 * jv-typeprint.c (java_type_print_base): Use gdb_demangle.
6620 * language.c (unk_lang_demangle): Use gdb_demangle.
6621 * symtab.c (symbol_find_demangled_name)
6622 (demangle_for_lookup): Use gdb_demangle.
6624 2013-04-15 Tom Tromey <tromey@redhat.com>
6628 * breakpoint.c (enum exception_event_kind) <EX_EVENT_RETHROW>:
6630 (classify_exception_breakpoint): New function.
6631 (print_it_exception_catchpoint, print_one_exception_catchpoint)
6632 (print_mention_exception_catchpoint)
6633 (print_recreate_exception_catchpoint, handle_gnu_v3_exceptions)
6634 (catch_exception_command_1): Handle "rethrow" catchpoint.
6635 (catch_rethrow_command): New function.
6636 (_initialize_breakpoint): Add "catch rethrow" command.
6638 2013-04-15 Pierre Muller <muller@sourceware.org>
6640 * contrib/ari/gdb_ari.sh (write_pc rule): Do not consider
6641 set_gdbarch_write_pc as deprecated anymore.
6643 2013-04-15 Joel Brobecker <brobecker@adacore.com>
6645 * spu-tdep.c (spu_write_pc): Add empty line after local variable
6648 2013-04-13 Yao Qi <yao@codesourcery.com>
6650 * ctf.c (_initialize_ctf): Include "completer.h".
6651 Call add_target_with_completer instead of add_target.
6653 2013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
6655 Fix GDB regression related to PR binutils/14813.
6656 * jit.c (mem_bfd_iovec_close): Return 0 for success.
6657 * minidebug.c (lzma_close): Add return value comment.
6658 * remote.c (remote_bfd_iovec_close): Return 0 for success.
6659 * solib-spu.c (spu_bfd_iovec_close): Likewise.
6660 * spu-linux-nat.c (spu_bfd_iovec_close): Likewise.
6662 2013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
6664 * config.in: Regenerate.
6666 2013-04-12 Tom Tromey <tromey@redhat.com>
6668 * dwarf2-frame.c (struct comp_unit) <dwarf_frame_buffer>: Now
6670 * dwarf2read.c (struct dwarf2_section_info) <buffer>: Now const.
6671 (struct die_reader_specs) <buffer>: Likewise.
6672 (die_reader_func_ftype): Make 'info_ptr' const.
6673 (struct line_header) <include_dirs, statement_program_start,
6674 statement_program_end>: Now const.
6675 (struct file_entry) <name>: Likewise.
6676 (struct partial_die_info) <sibling>: Likewise.
6677 (struct dwarf_block) <data>: Likewise.
6678 (dwarf2_read_section): Remove cast.
6679 (dwarf2_get_section_info): Make 'bufp' const.
6680 (read_index_from_section): Constify.
6681 (dw2_get_file_names_reader): Make 'info_ptr' const.
6682 (dw2_get_primary_filename_reader): Likewise.
6683 (read_comp_unit_head): Make 'info_ptr' and return type const.
6684 (read_and_check_comp_unit_head, read_and_check_type_unit_head):
6686 (read_abbrev_offset): Constify.
6687 (dwarf2_create_include_psymtab): Make 'name' const.
6688 (create_debug_types_hash_table): Update.
6689 (read_cutu_die_from_dwo): Make 'result_info_ptr' const.
6690 (init_cutu_and_read_dies, init_cutu_and_read_dies_no_follow):
6692 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader)
6693 (load_partial_comp_unit_reader): Make 'info_ptr' const.
6694 (read_comp_units_from_section): Constify.
6695 (peek_abbrev_code, peek_die_abbrev, skip_children, skip_one_die)
6696 (locate_pdi_sibling, load_full_comp_unit_reader): Make 'info_ptr'
6698 (dwarf2_compute_name, setup_type_unit_groups): Constify.
6699 (create_dwo_debug_info_hash_table): Make 'info_ptr' const.
6700 (create_dwp_hash_table, dwarf2_ranges_read)
6701 (dwarf2_record_block_ranges): Constify.
6702 (read_die_and_children, read_die_and_siblings_1)
6703 (read_die_and_siblings): Make 'info_ptr' and 'new_info_ptr'
6705 (read_full_die_1, read_full_die): Make 'info_ptr' const.
6706 (abbrev_table_read_table): Constify.
6707 (load_partial_dies): Make 'info_ptr' const.
6708 (read_partial_die, read_attribute_value, read_attribute): Make
6709 'info_ptr' and return type const.
6710 (read_address, read_initial_length)
6711 (read_checked_initial_length_and_offset, read_offset)
6712 (read_offset_1, read_n_bytes, read_direct_string): Make 'buf'
6714 (read_direct_string): Make 'buf' and return type const.
6715 (read_indirect_string_at_offset, read_indirect_string_from_dwz)
6716 (read_indirect_string): Make return type const.
6717 (read_unsigned_leb128, read_signed_leb128): Make 'buf' const.
6718 (read_addr_index_from_leb128, dwarf2_read_addr_index_reader): Make
6720 (read_str_index): Make return type const.
6721 (add_include_dir): Make 'include_dir' const.
6722 (add_file_name): Make 'name' const.
6723 (dwarf_decode_line_header): Constify.
6724 (psymtab_include_file_name): Make return type const.
6725 (dwarf_decode_lines_1, dwarf_decode_lines): Constify.
6726 (dwarf2_start_subfile): Make 'filename' const.
6727 (dwarf2_const_value_attr): Make 'bytes' const.
6728 (read_signatured_type_reader): Make 'info_ptr' const.
6729 (decode_locdesc): Constify.
6730 (skip_form_bytes): Make 'bytes', 'buffer_end', and return type
6732 (skip_unknown_opcode): Make 'opcode_definitions', 'mac_ptr',
6733 'mac_end', and return type const.
6734 (dwarf_parse_macro_header): Make 'mac_ptr' and return type const.
6735 (dwarf_decode_macro_bytes): Make 'mac_ptr', 'mac_end', and return
6737 (per_cu_header_read_in): Constify.
6738 * symfile.h (dwarf2_get_section_info): Update.
6740 2013-04-12 Tom Tromey <tromey@redhat.com>
6742 * symtab.h (struct general_symbol_info) <value.bytes>: Make const.
6744 2013-04-12 Eli Zaretskii <eliz@gnu.org>
6746 * NEWS: Mention "show configuration", --configuration.
6747 * top.c (print_gdb_configuration): New function, displays the
6748 details about GDB configure-time parameters.
6749 (print_gdb_version): Mention "show configuration".
6750 * cli/cli-cmds.c (show_configuration): New function.
6751 (_initialize_cli_cmds): Add the "show configuration" command.
6752 * main.c (captured_main) <print_configuration>: New static var.
6753 <long_options>: Use it.
6754 If --configuration was given, call print_gdb_configuration.
6756 2013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6757 Pedro Alves <palves@redhat.com>
6759 * Makefile.in (HAVE_NATIVE_GCORE_TARGET): New.
6760 (generated_files): Add gcore.
6761 (install-only, uninstall): Add gcore if HAVE_NATIVE_GCORE_TARGET or
6762 HAVE_NATIVE_GCORE_HOST.
6764 * NEWS (Changes since GDB 7.6): Mention newly installed gcore.
6765 * config/alpha/alpha-osf3.mh, config/i386/fbsd.mh,
6766 config/i386/fbsd64.mh, config/i386/i386gnu.mh, config/i386/i386sol2.mh,
6767 config/i386/sol2-64.mh, config/mips/irix5.mh, config/mips/irix6.mh,
6768 config/powerpc/fbsd.mh, config/sparc/fbsd.mh, config/sparc/sol2.mh:
6769 Add HAVE_NATIVE_GCORE_HOST.
6770 * configure: Regenerate.
6771 * configure.ac (HAVE_NATIVE_GCORE_TARGET): New, set it, AC_SUBST it.
6772 New AC_SUBST fir GDB_TRANSFORM_NAME and GCORE_TRANSFORM_NAME. New
6773 AC_CONFIG_FILES for gcore.
6774 * configure.tgt: Add gdb_have_gcore to the initial comment. Set
6776 * gdb_gcore.sh: Rename to ...
6777 * gcore.in: ... here. Remove gcore.sh comment. Use GDB_TRANSFORM_NAME
6778 and GCORE_TRANSFORM_NAME substitutions.
6780 Fix parsing tabs in ${gdb_target_obs}.
6781 * configure.tgt (gdb_have_gcore): Replace case with for and if.
6783 2013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6785 * remote.c (unpush_and_perror): Add output message final dot.
6787 2013-04-11 Yao Qi <yao@codesourcery.com>
6789 * tracepoint.c (tfile_interp_line): Fit parameters line and
6792 2013-04-10 Joel Brobecker <brobecker@adacore.com>
6794 * solib.c (solib_map_sections): Remove code overwriting
6795 SO->SO_NAME with the bfd's filename.
6797 2013-04-10 Pedro Alves <palves@redhat.com>
6799 * cli/cli-decode.c (integer_unlimited_completer): New function.
6800 (add_setshow_integer_cmd, add_setshow_uinteger_cmd)
6801 (add_setshow_zuinteger_unlimited_cmd): Install the "unlimited"
6803 * cli/cli-setshow.c: Include "cli/cli-utils.h".
6804 (is_unlimited_literal): New function.
6805 (do_set_command): Handle literal "unlimited" arguments.
6806 * frame.c (_initialize_frame) <set backtrace limit>: Document
6808 * printcmd.c (_initialize_printcmd) <set print
6809 max-symbolic-offset>: Add help text.
6810 * record-full.c (_initialize_record_full) <set record full
6811 insn-number-max>: Likewise.
6812 * record.c (_initialize_record) <set record
6813 instruction-history-size, set record function-call-history-size>:
6815 * ser-tcp.c (_initialize_ser_tcp) <set tcp connect-timeout>: Add
6817 * tracepoint.c (_initialize_tracepoint) <set trace-buffer-size>:
6819 * source.c (_initialize_source) <set listsize>: Add help text.
6820 * utils.c (initialize_utils) <set height, set width>: Likewise.
6821 <set pagination>: Mention "set height unlimited".
6822 * valprint.c (_initialize_valprint) <set print elements, set print
6823 repeats>: Document "unlimited".
6825 2013-04-10 Pedro Alves <palves@redhat.com>
6827 * cli/cli-cmds.c (quit_command): Call query_if_trace_running
6828 instead of disconnect_tracing.
6829 * infcmd.c (detach_command, disconnect_command): Call
6830 query_if_trace_running. Adjust.
6831 * top.c: Include "tracepoint.h".
6832 (quit_target): Delete. Contents moved ...
6833 (quit_force): ... here. Wrap each stage of teardown in
6834 TRY_CATCH. Call disconnect_tracing before detaching.
6836 2013-04-10 Hui Zhu <hui@codesourcery.com>
6837 Yao Qi <yao@codesourcery.com>
6839 * configure.ac: Check libbabeltrace is installed.
6840 * config.in: Regenerate.
6841 * configure: Regenerate.
6842 * Makefile.in (LIBBABELTRACE): New.
6843 (CLIBS): Add LIBBABELTRACE.
6844 * ctf.c: Include "exec.h".
6845 (CTF_EVENT_ID_STATUS, CTF_EVENT_ID_TSV_DEF): New macros.
6846 (CTF_EVENT_ID_TP_DEF, ctf_save_write_int32): New macros.
6847 (ctf_save_metadata_header): Define new type aliases in
6849 (ctf_write_header): Define event type "tsv_def" and "tp_def"
6850 in metadata. Start a new faked packet for trace status.
6851 (ctf_write_status): Write trace status to CTF.
6852 (ctf_write_uploaded_tsv): Write TSV to CTF.
6853 (ctf_write_uploaded_tp): Write tracepoint definition to CTF.
6854 (ctf_write_definition_end): End the faked packet.
6856 (ctx, ctf_iter, trace_dirname): New.
6857 (start_pos): New variable.
6858 (ctf_destroy, ctf_open_dir, ctf_open): New.
6859 (SET_INT32_FIELD, SET_ARRAY_FIELD, SET_STRING_FIELD): New
6861 (ctf_read_tsv, ctf_read_tp, ctf_close, ctf_files_info): New.
6862 (ctf_fetch_registers, ctf_xfer_partial): New.
6863 (ctf_get_trace_state_variable_value): New.
6864 (ctf_get_tpnum_from_frame_event): New.
6865 (ctf_get_traceframe_address): New.
6866 (ctf_trace_find, ctf_has_stack): New.
6867 (ctf_has_registers, ctf_traceframe_info, init_ctf_ops): New.
6868 (ctf_get_trace_status, ctf_read_status): New.
6869 (_initialize_ctf): New.
6870 * tracepoint.c (get_tracepoint_number): New
6871 (get_uploaded_tsv): Remove 'static'.
6872 (struct traceframe_info, trace_regblock_size): Move it to ...
6873 * tracepoint.h: ... here.
6874 (get_tracepoint_number): Declare it.
6875 (get_uploaded_tsv): Declare it.
6877 * NEWS: Mention new configure option.
6879 2013-04-10 Pedro Alves <palves@redhat.com>
6880 Hui Zhu <hui@codesourcery.com>
6882 * breakpoint.c (dprintf_re_set): New.
6883 (initialize_breakpoint_ops): Set dprintf_breakpoint_ops re_set
6886 2013-04-09 Joel Brobecker <brobecker@adacore.com>
6888 * configure.tgt (gdb_target_obs) <powerpc-*-aix* | rs6000-*-*>:
6889 Remove solib-svr4.o from the list.
6891 2013-04-09 Joel Brobecker <brobecker@adacore.com>
6893 * varobj.c (update_dynamic_varobj_children) [!HAVE_PYTHON]:
6894 Use gdb_assert_not_reached instead of invalid boolean expression.
6896 2013-04-09 Pedro Alves <palves@redhat.com>
6898 * remote.c (unpush_and_perror): New function.
6899 (readchar, remote_serial_write): Use it.
6901 2013-04-09 Markus Metzger <markus.t.metzger@intel.com>
6903 * NEWS: Mention new btrace RSP packets.
6905 2013-04-08 Tom Tromey <tromey@redhat.com>
6907 * symmisc.c (dump_msymbols): Cast fprintf_filtered argument to
6910 2013-04-08 Tom Tromey <tromey@redhat.com>
6912 * maint.c (print_bfd_section_info): Print the section index.
6913 * symmisc.c (dump_msymbols): Print the section index.
6915 2013-04-08 Tom Tromey <tromey@redhat.com>
6918 * blockframe.c (find_pc_partial_function_gnu_ifunc): Check
6919 SYMBOL_SECTION, not SYMBOL_OBJ_SECTION.
6920 * breakpoint.c (resolve_sal_pc): Update.
6921 * elfread.c (elf_gnu_ifunc_record_cache): Update.
6922 * findvar.c (struct minsym_lookup_data) <objfile>: New field.
6923 (minsym_lookup_iterator_cb): Use it.
6924 (default_read_var_value): Update.
6925 * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline):
6927 * infcmd.c (jump_command): Update.
6928 * linespec.c (minsym_found): Update.
6929 * maint.c (maintenance_translate_address): Update.
6930 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Update.
6931 (prim_record_minimal_symbol_full): Don't set SYMBOL_OBJ_SECTION.
6932 * parse.c (write_exp_msymbol): Update.
6933 * printcmd.c (address_info): Update.
6934 * psymtab.c (find_pc_sect_psymbol): Update.
6935 (fixup_psymbol_section): Check SYMBOL_SECTION, not
6937 (add_psymbol_to_bcache): Correctly initialize SYMBOL_SECTION.
6938 Don't initialize SYMBOL_OBJ_SECTION.
6939 * spu-tdep.c (spu_catch_start): Update.
6940 * stabsread.c (define_symbol): Don't set SYMBOL_SECTION.
6941 * symmisc.c (dump_msymbols, print_symbol): Update.
6942 * symtab.c (fixup_section): Don't set 'obj_section'. Change
6943 how fallback section is computed.
6944 (fixup_symbol_section): Update.
6945 (find_pc_sect_symtab, find_function_start_sal, skip_prologue_sal):
6947 (allocate_symbol, initialize_symbol, allocate_template_symbol):
6948 Initialize SYMBOL_SECTION.
6949 * symtab.h (struct general_symbol_info) <section>: Update comment.
6950 <obj_section>: Remove.
6951 (SYMBOL_OBJ_SECTION): Add 'objfile' argument. Rewrite.
6952 (SYMBOL_OBJFILE): New macro.
6954 2013-04-08 Tom Tromey <tromey@redhat.com>
6956 * coffread.c (record_minimal_symbol): Update.
6957 * dbxread.c (record_minimal_symbol): Update.
6958 * elfread.c (record_minimal_symbol): Update.
6959 * machoread.c (macho_symtab_add_minsym): Update.
6960 * mdebugread.c (record_minimal_symbol, parse_partial_symbols):
6962 * minsyms.c (prim_record_minimal_symbol): Update.
6963 (prim_record_minimal_symbol_full): Remove 'bfd_section'
6965 (prim_record_minimal_symbol_and_info): Likewise.
6966 * minsyms.h (prim_record_minimal_symbol_full)
6967 (prim_record_minimal_symbol_and_info): Update.
6968 * symtab.c (allocate_symbol, initialize_symbol)
6969 (allocate_template_symbol): Initialize SYMBOL_SECTION.
6970 * xcoffread.c (record_minimal_symbol, scan_xcoff_symtab):
6973 2013-04-08 Tom Tromey <tromey@redhat.com>
6976 * solib-som.c (som_solib_section_offsets): Use BFD section
6977 indices. Set offsets for all sections.
6978 * somread.c (som_symtab_read): Compute BFD section for
6979 symbol. Use prim_record_minimal_symbol_and_info.
6980 (som_symfile_read): Fix comment.
6981 (struct find_section_offset_arg): New.
6982 (find_section_offset, set_section_index): New functions.
6983 (som_symfile_offsets): Use set_section_index to compute
6986 2013-04-08 Tom Tromey <tromey@redhat.com>
6988 * coffread.c (cs_to_section): Use gdb_bfd_section_index.
6989 * elfread.c (record_minimal_symbol, elf_symtab_read): Use
6990 gdb_bfd_section_index.
6991 * gdb_bfd.c (gdb_bfd_section_index, gdb_bfd_count_sections):
6993 * gdb_bfd.h (gdb_bfd_section_index, gdb_bfd_count_sections):
6995 * machoread.c (macho_symtab_add_minsym, macho_symfile_offsets):
6997 * objfiles.c (add_to_objfile_sections_full): New function.
6998 (add_to_objfile_sections): Use it.
6999 (build_section_table): Rewrite.
7000 (objfile_relocate1): Use gdb_bfd_section_index. Update.
7001 * objfiles.h (obj_section_offset): Use gdb_bfd_section_index.
7002 (struct objfile) <sections>: Update comment.
7003 (ALL_OBJFILE_OSECTIONS): Skip sections where the_bfd_section
7005 (ALL_OBJSECTIONS): Use it.
7006 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
7007 * solib-frv.c (frv_relocate_main_executable): Update.
7008 * solib-target.c (solib_target_relocate_section_addresses):
7009 Use gdb_bfd_section_index.
7010 * symfile.c (build_section_addr_info_from_section_table):
7011 Use gdb_bfd_section_index.
7012 (build_section_addr_info_from_bfd, place_section): Likewise.
7013 * symtab.c (fixup_section): Update.
7014 * xcoffread.c (find_targ_sec): Use gdb_bfd_section_index.
7016 2013-04-08 Tom Tromey <tromey@redhat.com>
7018 * minsyms.h (struct bound_minimal_symbol): New.
7019 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
7020 Remove objfile argument.
7021 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
7022 Return bound_minimal_symbol.
7023 * minsyms.c (lookup_minimal_symbol_by_pc_1)
7024 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
7025 Return bound_minimal_symbol.
7026 (in_gnu_ifunc_stub): Update.
7027 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
7028 Remove 'objfile_p' argument.
7029 (lookup_solib_trampoline_symbol_by_pc): Update.
7030 * ada-tasks.c, amd64-windows-tdep.c, arm-tdep.c,
7031 arm-wince-tdep.c, block.c, blockframe.c, breakpoint.c, btrace.c,
7032 c-valprint.c, dwarf2loc.c, elfread.c, frame.c, frv-tdep.c,
7033 glibc-tdep.c, gnu-v2-abi.c, gnu-v3-abi.c, hppa-hpux-tdep.c,
7034 i386-tdep.c, ia64-tdep.c, infcall.c, infcmd.c, jit.c,
7035 linux-fork.c, m32c-tdep.c, m68hc11-tdep.c, maint.c,
7036 mips-tdep.c, p-valprint.c, parse.c, ppc-linux-tdep.c,
7037 ppc-sysv-tdep.c, printcmd.c, rs6000-tdep.c, sh64-tdep.c,
7038 stack.c, symtab.c, tui/tui-disasm.c: Update.
7040 2013-04-08 Tom Tromey <tromey@redhat.com>
7042 * ada-lang.c (ada_decode_symbol): Check and set 'ada_mangled'.
7043 Use symbol's obstack, not an objfile.
7044 * coffread.c (process_coff_symbol): Update.
7045 * dwarf2read.c (fixup_go_packaging, new_symbol_full): Update.
7046 * jv-lang.c (add_class_symbol): Update.
7047 * mdebugread.c (new_symbol): Update.
7048 * minsyms.c (prim_record_minimal_symbol_full)
7049 (terminate_minimal_symbol_table): Update.
7050 * psymtab.c (add_psymbol_to_bcache): Clear entire symbol. Update.
7051 * stabsread.c (define_symbol, read_enum_type): Update.
7052 * symtab.c (symbol_set_demangled_name, symbol_get_demangled_name):
7053 Handle Ada specially.
7054 (symbol_set_language): Add 'obstack' argument.
7055 (symbol_set_names): Update.
7056 (symbol_natural_name, symbol_demangled_name): Always use
7058 * symtab.h (struct general_symbol_info)
7059 <language_specific::obstack>: New field.
7060 <ada_mangled>: New field.
7061 (SYMBOL_SET_LANGUAGE): Add 'obstack' argument.
7062 (symbol_set_language): Update.
7064 2013-04-08 Tom Tromey <tromey@redhat.com>
7066 * symtab.c (symbol_init_cplus_specific, symbol_set_demangled_name):
7067 Take an obstack, not an objfile.
7068 (symbol_set_names): Update.
7069 * symtab.h (symbol_set_demangled_name): Update.
7071 2013-04-08 Tom Tromey <tromey@redhat.com>
7073 * coffread.c (process_coff_symbol, coff_read_enum_type): Call
7075 * dwarf2read.c (fixup_go_packaging): Call allocate_symbol.
7076 (read_func_scope): Call allocate_template_symbol.
7077 (new_symbol_full): Call allocate_symbol.
7078 * jit.c (finalize_symtab): Call allocate_symbol.
7079 * jv-lang.c (add_class_symbol): Call allocate_symbol.
7080 * mdebugread.c (parse_symbol, new_block): Call allocate_symbol.
7081 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
7082 (common_block_end): Call allocate_symbol.
7083 * symtab.c (allocate_symbol, initialize_symbol)
7084 (allocate_template_symbol): New functions.
7085 * symtab.c (allocate_symbol, initialize_symbol)
7086 (allocate_template_symbol): Declare.
7087 * xcoffread.c (process_xcoff_symbol): Call initialize_symbol.
7089 2013-04-08 Pedro Alves <palves@redhat.com>
7090 Keith Seitz <keiths@redhat.com>
7092 * breakpoint.c (create_breakpoint): Rename
7093 "parse_condition_and_thread" parameter to "parse_arg". Update
7094 describing comment. If !PARSE_ARG, then error out if ARG is not
7095 the empty string after extracting the location.
7096 * breakpoint.h (create_breakpoint): Rename
7097 "parse_condition_and_thread" parameter to "parse_arg".
7099 2013-04-08 Aleksandar Ristovski <aristovski@qnx.com
7101 * solib-svr4.c (lm_addr_check): Add const qualifier to 'so' arg.
7103 2013-04-07 Yao Qi <yao@codesourcery.com>
7105 * remote.c (remote_trace_find): Change type of parameters 'addr1'
7106 and 'addr2' to CORE_ADDR.
7107 * target.c (update_current_target): Update.
7108 * target.h (struct target_ops) <to_trace_find>: Change parameter
7110 * tracepoint.c (tfind_1): Change type of parameters 'addr1' and
7111 'addr2' to CORE_ADDR.
7112 (tfile_trace_find): Likewise.
7113 (tfile_get_traceframe_address): Change return type to CORE_ADDR.
7114 Change local variable 'addr' to type CORE_ADDR.
7115 * tracepoint.h (tfind_1): Update declaration.
7117 2013-04-06 Eli Zaretskii <eliz@gnu.org>
7119 * windows-nat.c (windows_get_absolute_argv0): Move from here...
7120 * mingw-hdep.c (windows_get_absolute_argv0): ...to here.
7123 * windows-nat.h (windows_get_absolute_argv0): Move prototype from
7125 * main.h (windows_get_absolute_argv0): ...to here.
7127 2013-04-05 Doug Evans <dje@google.com>
7129 * dwarf2read.c (struct dwarf2_per_objfile): Tweak comment.
7130 (read_cutu_die_from_dwo): Add comments.
7131 (read_structure_type): Update comment.
7132 (read_enumeration_type, read_namespace_type): Update comment.
7133 (read_die_type, get_die_type_at_offset, get_die_type): Update comment.
7135 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7137 Convert man pages to texinfo, new gdbinit.5 texinfo page.
7138 * Makefile.in (gdb.z): Remove.
7139 (install-only): Remove $(man1dir) and gdb.1 installation.
7142 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7144 Fix compatibility with Linux kernel 3.8.3.
7145 * linux-tdep.c (linux_find_memory_regions_full): Move variable number
7146 to more inner block. Remove parsing of NUMBER from outer block.
7147 Parse NUMBER only if KEYWORD has been identified.
7149 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7151 Fix variable name shadowing.
7152 * linux-tdep.c (linux_find_memory_regions_full): Rename outer variable
7153 filename to mapsfilename and update its uses.
7155 2013-04-05 Eli Zaretskii <eliz@gnu.org>
7157 * Makefile.in (TAGS): Avoid warning from etags when $GDB_NM_FILE is
7158 empty. See http://sourceware.org/ml/gdb-patches/2012-08/msg00504.html
7159 and http://sourceware.org/ml/gdb-patches/2013-04/msg00055.html for
7160 details of the problem.
7162 2013-04-04 Pedro Alves <palves@redhat.com>
7163 Hui Zhu <hui@codesourcery.com>
7165 * breakpoint.c (validate_commands_for_breakpoint): If validating a
7166 tracepoint, reset its STEP_COUNT and call validate_actionline.
7168 2013-04-03 Doug Evans <dje@google.com>
7170 * dwarf2read.c (read_die_and_siblings_1): Renamed from
7171 read_die_and_siblings.
7172 (read_die_and_siblings): New function.
7173 (read_cutu_die_from_dwo): Dump die if requested.
7174 (read_die_and_children): Call read_full_die_1 and
7175 read_die_and_siblings_1.
7176 (read_full_die): Dump die if requested.
7178 * dwarf2read.c (read_comp_units_from_section): Add debugging printf.
7180 * dwarf2read.c (struct dwo_file): New member comp_dir.
7181 Rename member name to dwo_name. All uses updated.
7182 (hash_dwo_file): Include comp_dir in computation.
7183 (eq_dwo_file): Ditto.
7184 (lookup_dwo_file_slot): New arg comp_dir. All callers updated.
7185 (create_dwo_in_dwp, lookup_dwo_in_dwp, open_and_init_dwo_file): Ditto.
7187 * psymtab.c (read_psymtabs_with_fullname): Don't call
7188 psymtab_to_fullname if the basenames are different.
7190 2013-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7192 * NEWS (Changes in GDB 7.6): Update the data-disassemble for "fullname".
7193 New entry about "fullname" presence.
7195 2013-04-03 Pedro Alves <palves@redhat.com>
7197 * NEWS: Mention x86_64/Cygwin as new native configuration.
7199 2013-04-02 Doug Evans <dje@google.com>
7201 * dwarf2read.c (read_structure_type): Fix typo in comment.
7203 2013-04-02 Pedro Alves <palves@redhat.com>
7205 * NEWS: Mention "set/show debug aarch64", "set/show debug
7206 coff-pe-read" and "set/show debug mach-o".
7208 2013-04-02 Pedro Alves <palves@redhat.com>
7210 * NEWS: Mention "set/show remote trace-buffer-size-packet".
7212 2013-04-02 Eli Zaretskii <eliz@gnu.org>
7214 * Makefile.in (HFILES_NO_SRCDIR): Remove call-cmds.h.
7215 gdb_string.h is now in common/.
7217 2013-04-02 Pedro Alves <palves@redhat.com>
7219 * NEWS: Move "set debug notification" and "set trace-buffer-size"
7220 under "New options".
7222 2013-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7226 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
7228 2013-04-02 Pedro Alves <palves@redhat.com>
7232 * remote.c (send_interrupt_sequence): Use remote_serial_write.
7233 (remote_serial_write): New function.
7234 (putpkt_binary, getpkt_or_notif_sane_1): Use remote_serial_write.
7236 2013-04-01 Jiong Wang <jiwang@tilera.com>
7238 * NEWS: Mention TILE-Gx in "New native configurations" and
7239 "New targets" sections.
7241 2013-04-01 Doug Evans <dje@google.com>
7243 * dwarf2read.c (lookup_signatured_type_at_offset): Delete.
7244 (process_enumeration_scope): Simplify.
7246 * dwarf2read.c (struct dwarf2_per_cu_data): Move member
7248 (struct signatured_type): ... to here.
7249 (sig_type_ptr): New typedef.
7250 (type_unit_group): Delete member 't.first_cu'. Move member 'tus'
7251 out of union 't'. All uses updated.
7252 (dw2_get_file_names_reader): Assert not called for a type unit.
7253 (dw2_get_file_names): Assert not called for a type unit or type
7255 (build_type_psymtabs_reader): Assert called for a type unit.
7256 (build_type_psymtab_dependencies): Assert called for a type unit group.
7258 * dwarf2read.c (free_dwo_file): Add comment.
7259 (dwarf2_per_objfile_free): Unref dwp bfd.
7261 2013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
7263 * coff-pe-read.c (add_pe_exported_sym): Remove unused 'dll_name_len'.
7264 (add_pe_forwarded_sym): Remove unused 'section', 'dll_name_len'.
7265 (read_pe_exported_syms): Remove unused 'exportix'.
7266 (pe_text_section_offset): Remove unused 'opthdr_ofs', 'num_entries',
7267 'export_rva', 'export_size', 'expptr', 'exp_funcbase', 'expdata',
7268 'erva', 'name_rvas', 'ordinals', 'nexp', 'ordbase', 'dll_name'.
7270 2013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
7272 * breakpoint.c (parse_cond_to_aexpr): Remove unused 'old_chain'.
7273 (print_it_watchpoint): Remove unused 'bl'.
7274 (say_where): Remove unused 'uiout'.
7275 (bpstat_remove_breakpoint_callback): Remove unused 'uiout'.
7276 (bkpt_breakpoint_hit): Remove unused 'b'.
7277 (internal_bkpt_print_it): Remove unused 'uiout'.
7278 * buildsym.c (augment_type_symtab): Remove unused 'i'.
7280 2013-03-31 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
7282 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_float): New function.
7283 (ppc64_sysv_abi_push_dummy_call): Handle complex arguments.
7285 2013-03-29 Doug Evans <dje@google.com>
7287 * dwarf2read.c (open_dwo_file): Renamed from open_dwop_file.
7288 Delete arg is_dwp. All callers updated.
7289 (open_dwp_file): New function.
7290 (open_and_init_dwp_file): Call it.
7291 (get_dwp_file): New function.
7292 (lookup_dwo_cutu): Call it.
7294 * dwarf2read.c (open_and_init_dwp_file): Remove incorrect, and
7295 unnecessary, cleanup.
7297 * dwarf2read.c (lookup_dwo_cutu): Improve complaint text.
7299 * dwarf2read.c (read_cutu_die_from_dwo): New function.
7300 (lookup_dwo_unit): New function.
7301 (init_cutu_and_read_dies): Move DWO handling to new functions.
7303 * dwarf2read.c (struct signatured_type): Tweak comment.
7304 (struct dwo_unit): Tweak comment.
7305 (create_debug_types_hash_table): Tweak comment. Reformat long line.
7306 (create_dwo_debug_info_hash_table): Tweak comment.
7307 (dwarf2_per_cu_offset_and_type): Tweak comment.
7309 * dwarf2read.c (lookup_signatured_type): Remove complaint about
7310 missing .debug_types section.
7312 2013-03-29 Yao Qi <yao@codesourcery.com>
7314 * corelow.c: Include "completer.h".
7315 (_initialize_corelow): Call add_target_with_completer with
7316 argument 'filename_completer'.
7317 * tracepoint.c: Likewise.
7318 * exec.c (_initialize_exec): Likewise.
7319 * target.c (add_target): Rename to ...
7320 (add_target_with_completer): ... this. Call set_cmd_completer
7321 if parameter completer is not NULL.
7323 * target.h: Include "command.h".
7324 (add_target_with_completer): Declare it.
7326 2013-03-28 Joel Brobecker <brobecker@adacore.com>
7328 * coffread.c (is_import_fixup_symbol): New function.
7329 (record_minimal_symbol): Use is_import_fixup_symbol to
7330 detect import fixup symbols, and discard them.
7332 2013-03-28 Doug Evans <dje@google.com>
7334 * dwarf2read.c (create_debug_types_hash_table): Don't allocate the
7335 types hash table until we know we need it.
7337 * dwarf2read.c (create_addrmap_from_index): Complain about bad CU
7340 * dwarf2read.c (dw2_get_file_names): Delete arg "objfile".
7341 All callers updated.
7342 (dw2_print_stats): Print #read CUs too.
7343 (dump_die_shallow): Print signatured types better.
7345 * dwarf2read.c (struct dwarf2_per_cu_data): Rename member
7346 info_or_types_section to section. All uses updated.
7347 (struct dwo_unit): Ditto.
7349 2013-03-28 Pedro Alves <palves@redhat.com>
7351 * NEWS (New options): New section.
7352 (New options): Mention set/show remote trace-status-packet.
7353 * remote.c (PACKET_qTStatus): New enumeration value.
7354 (remote_get_trace_status): Skip sending qTStatus if the packet is
7355 disabled. Use packet_ok.
7356 (_initialize_remote): Register a configuration command for
7359 2013-03-28 Doug Evans <dje@google.com>
7361 * symfile.c (find_separate_debug_file): Add comment.
7362 (terminate_after_last_dir_separator): Tweak comment.
7364 * dwarf2read.c (create_partial_symtab): Add forward decl.
7365 (create_partial_symtab): Move to be closer to other psymtab functions.
7366 (process_psymtab_comp_unit_reader, process_psymtab_comp_unit): Ditto.
7368 * dwarf2read.c (dwarf2_physname): Move declaration to better spot.
7369 (compute_symtab_includes): Remove unnecessary forward declaration.
7370 (die_needs_namespace): Add comment marking group of functions for
7371 dwarf2 name computation.
7373 * typeprint.c (_initialize_typeprint): Improve type help text.
7375 * python/python.c (finish_python_initialization): Provide suggestion
7376 for how to tell gdb to find its python files.
7378 2013-03-28 Pedro Alves <palves@redhat.com>
7382 * source.c (_initialize_source): Change back "set listsize" to an
7385 2013-03-27 Gareth McMullin <gareth@blacksphere.co.nz>
7388 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
7390 2013-03-27 Pedro Alves <palves@redhat.com>
7392 * top.c (history_size): Rename to ...
7393 (history_size_setshow_var): ... this. Add comment.
7394 (show_commands): Use readline's 'history_length' instead of
7395 computing the history length by calling history_get in a loop.
7396 (set_history_size_command): Error out for sizes over INT_MAX.
7397 Restore previous history size on invalid size.
7398 (init_history): If HISTSIZE is negative, leave the history size as
7400 (init_main): Adjust.
7402 2013-03-27 Pedro Alves <palves@redhat.com>
7404 * coff-pe-read.c (_initialize_coff_pe_read): Rename "set debug
7405 coff_pe_read" command to "set debug coff-pe-read".
7407 2013-03-27 Markus Metzger <markus.t.metzger@intel.com>
7409 * record.c (command_size_to_target_size): Fix size comparison.
7410 Change parameter type from pointer to integer to integer.
7413 2013-03-27 Pierre Muller <muller@sourceware.org>
7415 * windows-nat.c (handle_output_debug_string): Avoid typecast
7416 from integer of different size warning.
7418 2013-03-26 Joel Brobecker <brobecker@adacore.com>
7420 * windows-nat.c (handle_output_debug_string): Add empty line
7421 after local block variable definition.
7423 2013-03-26 Pedro Alves <palves@redhat.com>
7425 * ser-tcp.c (wait_for_connect): Make 'polls' parameter unsigned.
7426 (net_open): Make 'polls' local unsigned.
7428 2013-03-26 Pedro Alves <palves@redhat.com>
7430 * remote.c (_initialize_remote): Make "set remoteaddresssize"
7431 a zuinteger command instead of uinteger.
7433 2013-03-26 Pedro Alves <palves@redhat.com>
7435 * record-full.c (record_full_insn_num): Make it unsigned.
7436 (record_full_check_insn_num, record_full_message)
7437 (record_full_registers_change, record_full_xfer_partial): Remove
7438 record_full_insn_max_num check (it's always != 0).
7439 (record_full_info, record_full_restore): Use %u as format string.
7440 (): Use %u as format string.
7441 (set_record_full_insn_max_num): Remove record_full_insn_max_num
7442 check (it's always != 0).
7444 2013-03-26 Pedro Alves <palves@redhat.com>
7446 * dcache.c (_initialize_dcache): Make the "set dcache line-size"
7447 and "set dcache size" commands zuinteger instead of uinteger.
7449 2013-03-26 Pedro Alves <palves@redhat.com>
7451 * cris-tdep.c (_initialize_cris_tdep): Make the "set cris-version"
7452 command zuinteger instead of uinteger.
7454 2013-03-26 Pedro Alves <palves@redhat.com>
7456 * coff-pe-read.c (_initialize_coff_pe_read): Make the command
7457 zuinteger instead of uinteger.
7459 2013-03-26 Pedro Alves <palves@redhat.com>
7461 * record.c (record_insn_history_size_setshow_var)
7462 (record_call_history_size_setshow_var): New globals.
7463 (command_size_to_target_size): New function.
7464 (cmd_record_insn_history, cmd_record_call_history): Use
7465 command_size_to_target_size instead of cast.
7466 (validate_history_size, set_record_insn_history_size)
7467 (set_record_call_history_size): New functions.
7468 (_initialize_record): Install set_record_insn_history_size and
7469 set_record_call_history_size as "set" hooks of "set record
7470 instruction-history-size" and "set record
7471 function-call-history-size".
7473 2013-03-26 Pedro Alves <palves@redhat.com>
7475 * top.c (gdb_rl_operate_and_get_next): Replace max_input_history
7476 use with history_max_entries use. Remove FIXME note.
7478 2013-03-26 Markus Metzger <markus.t.metzger@intel.com>
7480 * record-btrace.c (record_btrace_close): Call
7481 record_btrace_auto_disable.
7483 2013-03-25 Joel Brobecker <brobecker@adacore.com>
7485 * rs6000-nat.c (fixup_breakpoints): Delete declaration.
7487 2013-03-25 Doug Evans <dje@google.com>
7489 * contrib/cc-with-tweaks.sh: Check exit code of dwp.
7491 2013-03-25 Tom Tromey <tromey@redhat.com>
7494 * c-exp.y (exp): Add new productions for destructors after '.' and
7496 (write_destructor_name): New function.
7498 2013-03-25 Tom Tromey <tromey@redhat.com>
7501 * opencl-lang.c (evaluate_subexp_opencl) <STRUCTOP_STRUCT>: Use
7502 value_struct_elt, not lookup_struct_elt_type.
7503 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
7504 STRUCTOP_PTR>: Use value_struct_elt, not lookup_struct_elt_type.
7505 * expression.h (EVAL_AVOID_SIDE_EFFECTS): Update comment.
7507 2013-03-25 Yao Qi <yao@codesourcery.com>
7509 * ctf.c [USE_WIN32API]: Undef 'mkdir' and use 'mkdir'
7510 instead of '_mkdir'.
7512 2013-03-23 Eli Zaretskii <eliz@gnu.org>
7514 * windows-nat.c (windows_get_absolute_argv0): New function.
7515 * windows-nat.h: Add its prototype.
7517 * main.c (get_init_files): Use filename_ncmp instead of strncmp.
7518 Use IS_DIR_SEPARATOR instead of looking for a character inside
7519 SLASH_STRING. Include filenames.h.
7520 (captured_main) [__MINGW32__]: Make argv[0] absolute, so that
7521 relocate_gdb_directory works when passed gdb_program_name.
7522 Include windows-nat.h.
7524 2013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7526 * exceptions.h (enum errors): New entry TARGET_CLOSE_ERROR.
7527 * remote.c (trace_error): Remove the special handling of '2'.
7528 (readchar) <SERIAL_EOF>
7529 (readchar) <SERIAL_ERROR>
7530 (getpkt_or_notif_sane_1): Use TARGET_CLOSE_ERROR for them.
7531 (remote_get_trace_status): Call throw_exception if EX is
7533 * utils.c (perror_with_name): Rename to ...
7534 (throw_perror_with_name): ... here. New parameter errcode, describe it
7535 in the function comment.
7536 (perror_with_name): New function wrapper.
7537 * utils.h (enum errors): New stub declaration.
7538 (throw_perror_with_name): New declaration.
7540 2013-03-22 Pedro Alves <palves@redhat.com>
7541 Yao Qi <yao@codesourcery.com>
7542 Mark Kettenis <kettenis@gnu.org>
7544 * cli/cli-setshow.c (do_set_command) <var_uinteger>:
7545 Don't let the user set the value to UINT_MAX directly.
7546 <var_integer>: Don't let the user set the value to INT_MAX
7549 2013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7551 * remote.c (remote_unpush_target): New function.
7552 (remote_open_1): Remove two pop_target calls, update one comment, add
7553 comment to target_preopen call. Replace pop_target call by
7554 remote_unpush_target call.
7555 (interrupt_query, readchar, getpkt_or_notif_sane_1): Replace
7556 pop_target calls by remote_unpush_target calls.
7558 2013-03-22 Pedro Alves <palves@redhat.com>
7560 * linux-nat.c (linux_child_follow_fork): Don't call
7561 linux_enable_event_reporting.
7562 (linux_handle_extended_wait): Don't call
7563 linux_enable_event_reporting.
7565 2013-03-22 Pedro Alves <palves@redhat.com>
7567 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Define INSN macro,
7568 use it to rewrite the trampoline buffers with type gdb_byte[], and
7569 undefine the macro. Remove char* cast.
7571 2013-03-21 Doug Evans <dje@google.com>
7573 New commands "mt set per-command {space,time,symtab} {on,off}".
7575 * event-top.c: #include "maint.h".
7576 * main.c: #include "maint.h".
7577 * maint.c: #include <sys/time.h>, <time.h>, block.h, top.h,
7578 timeval-utils.h, maint.h, cli/cli-setshow.h.
7579 (per_command_time, per_command_space): New static globals.
7580 (per_command_symtab): New static global.
7581 (per_command_setlist, per_command_showlist): New static globals.
7582 (struct cmd_stats): Move here from utils.c.
7583 (set_per_command_time): Renamed from set_display_time in utils.c
7584 and moved here. All callers updated.
7585 (set_per_command_space): Renamed from set_display_space in utils.c
7586 and moved here. All callers updated.
7587 (count_symtabs_and_blocks): New function.
7588 (report_command_stats): Moved here from utils.c. Add support for
7589 printing symtab stats. Only print data if enabled before command
7591 (make_command_stats_cleanup): Ditto.
7592 (sert_per_command_cmd, show_per_command_cmd): New functions.
7593 (_initialize_maint_cmds): Add new commands
7594 mt set per-command {space,time,symtab} {on,off}.
7595 * maint.h: New file.
7596 * top.c: #include "maint.h".
7597 * utils.c (reset_prompt_for_continue_wait_time): New function.
7598 (get_prompt_for_continue_wait_time): New function.
7599 * utils.h (reset_prompt_for_continue_wait_time): Declare
7600 (get_prompt_for_continue_wait_time): Declare.
7601 (make_command_stats_cleanup): Moved to maint.h.
7602 (set_display_time, set_display_space): Moved to maint.h and renamed
7603 to set_per_command_time, set_per_command_space.
7604 * cli/cli-setshow.c (parse_cli_boolean_value): Renamed from
7605 parse_binary_operation and made non-static. Don't call error,
7606 just return an error marker. All callers updated.
7607 * cli/cli-setshow.h (parse_cli_boolean_value): Declare.
7609 2013-03-21 Tom Tromey <tromey@redhat.com>
7611 * symfile.c (alloc_section_addr_info): Update header. Don't set
7612 'num_sections' field.
7613 (build_section_addr_info_from_section_table): Set 'num_sections'.
7614 (build_section_addr_info_from_bfd): Likewise.
7615 (build_section_addr_info_from_objfile): Remove dead loop
7617 (free_section_addr_info): Unconditionally call xfree.
7618 (relative_addr_info_to_section_offsets, addrs_section_sort)
7619 (addr_info_make_relative, syms_from_objfile_1): Remove dead loop
7621 (syms_from_objfile_1): Remove dead 'if' condition. Check
7623 (add_symbol_file_command): Set 'num_sections'.
7624 * symfile-mem.c (symbol_file_add_from_memory): Set
7626 * somread.c (som_symfile_offsets): Remove dead loop condition.
7627 * machoread.c (macho_symfile_offsets): Remove dead 'if'.
7628 * jit.c (jit_bfd_try_read_symtab): Set 'num_sections'.
7630 2013-03-21 Tom Tromey <tromey@redhat.com>
7632 * tracepoint.h (decode_agent_options): Add 'trace_string'
7634 * tracepoint.c (decode_agent_options): Add 'trace_string'
7636 (validate_actionline): Update.
7637 (collect_symbol): Add 'trace_string' argument.
7638 (struct add_local_symbols_data) <trace_string>: New field.
7639 (do_collect_symbol): Update.
7640 (add_local_symbols): Add 'trace_string' argument.
7641 (encode_actions_1): Update.
7642 (trace_dump_actions): Update.
7643 * dwarf2loc.c (access_memory): Update.
7644 * ax.h (struct agent_expr) <tracing, trace_string>: New fields.
7645 * ax-general.c (new_agent_expr): Update.
7646 * ax-gdb.h (gen_trace_for_expr, gen_trace_for_var)
7647 (gen_trace_for_return_address): Add argument.
7648 (trace_kludge, trace_string_kludge): Remove.
7649 * ax-gdb.c (trace_kludge, trace_string_kludge): Remove.
7650 (gen_traced_pop, gen_fetch, gen_bitfield_ref, gen_expr): Update.
7651 (gen_trace_for_var): Add 'trace_string' argument.
7652 (gen_trace_for_expr, gen_trace_for_return_address): Likewise.
7653 (gen_printf, agent_eval_command_one): Update.
7655 2013-03-21 Tom Tromey <tromey@redhat.com>
7658 * c-exp.y (yylex): Rewrite to push all tokens onto the FIFO.
7659 Handle FILENAME token.
7661 2013-03-21 Tom Tromey <tromey@redhat.com>
7663 * c-exp.y (YYPRINT): Define.
7664 (c_print_token): New function.
7666 2013-03-21 Tom Tromey <tromey@redhat.com>
7668 * c-exp.y (%union) <sym, ivar, ivec>: Remove.
7670 2013-03-21 Yao Qi <yao@codesourcery.com>
7672 * ctf.c: Include "gdb_stat.h".
7673 [USE_WIN32API]: New macro 'mkdir'.
7674 (ctf_start): Use permission bits macros if they are defined.
7676 2013-03-20 Keith Seitz <keiths@redhat.com>
7678 * breakpoint.h (struct breakpoint): Add comment to
7679 extra_string indicating that this member is mallod'd.
7680 * breakpoint.c (base_breakpoint_dtor): Free extra_string.
7682 2013-03-20 Pedro Alves <palves@redhat.com>
7686 * cli/cli-setshow.c (do_set_command)
7687 <var_uinteger, var_zuinteger>: Use LONGEST for variable holding
7688 the result of parsing the command argument. Throw error if the
7689 value is greater than UINT_MAX. Print the invalid value with
7691 <var_integer, var_zinteger>: Use LONGEST for variable holding the
7692 result of parsing the command argument. Throw error if the value
7693 is greater than INT_MAX, not greater or equal. Also throw error
7694 if the value is less than INT_MIN. Print the invalid value with
7696 <var_zuinteger_unlimited>: Throw error if the value is greater
7697 than INT_MAX, not greater or equal.
7698 (do_show_command) <var_integer, var_zinteger,
7699 var_zuinteger_unlimited>: Use %d for printing int, not %u.
7701 2013-03-20 Tom Tromey <tromey@redhat.com>
7703 * ax-gdb.c (gen_var_ref): Unconditionally call via computed ops,
7705 * dwarf2read.c (read_func_scope): Remove old FIXME.
7706 * eval.c (evaluate_subexp_standard): Check SYMBOL_COMPUTED_OPS,
7708 * findvar.c (symbol_read_needs_frame, default_read_var_value):
7709 Unconditionally call via computed ops, if possible.
7710 * printcmd.c (address_info): Unconditionally call via computed ops,
7712 * stack.c (read_frame_arg): Unconditionally call via computed ops,
7714 * symtab.c (register_symbol_computed_impl): Sanity check 'ops'.
7715 * tracepoint.c (scope_info): Unconditionally call via computed ops,
7718 2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
7719 Tom Tromey <tromey@redhat.com>
7722 * coffread.c (coff_register_index): New global.
7723 (process_coff_symbol, coff_read_enum_type): Set
7724 SYMBOL_ACLASS_INDEX.
7725 (_initialize_coffread): Initialize new global.
7726 * dwarf2loc.c (locexpr_find_frame_base_location)
7727 (dwarf2_block_frame_base_locexpr_funcs)
7728 (loclist_find_frame_base_location)
7729 (dwarf2_block_frame_base_loclist_funcs): New.
7730 (dwarf_expr_frame_base_1): Call SYMBOL_BLOCK_OPS, remove internal_error.
7731 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Add location_has_loclist.
7732 * dwarf2loc.h (dwarf2_block_frame_base_locexpr_funcs)
7733 (dwarf2_block_frame_base_loclist_funcs): New.
7734 * dwarf2read.c (dwarf2_locexpr_index, dwarf2_loclist_index)
7735 (dwarf2_locexpr_block_index, dwarf2_loclist_block_index): New
7737 (read_func_scope): Update.
7738 (fixup_go_packaging, mark_common_block_symbol_computed)
7739 (var_decode_location, new_symbol_full, dwarf2_const_value):
7740 Set SYMBOL_ACLASS_INDEX.
7741 (dwarf2_symbol_mark_computed): Likewise. Add 'is_block' argument.
7742 (_initialize_dwarf2_read): Initialize new globals.
7743 * jit.c (finalize_symtab): Set SYMBOL_ACLASS_INDEX.
7744 * jv-lang.c (add_class_symbol): Set SYMBOL_ACLASS_INDEX.
7745 * mdebugread.c (mdebug_register_index, mdebug_regparm_index): New
7747 (parse_symbol, psymtab_to_symtab_1): Set SYMBOL_ACLASS_INDEX.
7748 (_initialize_mdebugread): Initialize new globals.
7749 * psympriv.h (struct partial_symbol) <aclass>: Update comment.
7750 * stabsread.c (patch_block_stabs): Set SYMBOL_ACLASS_INDEX.
7751 (stab_register_index, stab_regparm_index): New globals.
7752 (define_symbol, read_enum_type, common_block_end): Set
7753 SYMBOL_ACLASS_INDEX.
7754 (_initialize_stabsread): Initialize new globals.
7755 * symtab.c (next_aclass_value, symbol_impl, symbol_impls): New
7757 (MAX_SYMBOL_IMPLS): New define.
7758 (register_symbol_computed_impl, register_symbol_block_impl)
7759 (register_symbol_register_impl)
7760 (initialize_ordinary_address_classes): New functions.
7761 (_initialize_symtab): Call initialize_ordinary_address_classes.
7762 * symtab.h (enum address_class) <LOC_FINAL_VALUE>: New constant.
7763 (struct symbol_impl): New.
7764 (SYMBOL_ACLASS_BITS): New define.
7765 (struct symbol) <aclass, ops>: Remove fields.
7766 <aclass_index>: New field.
7767 (symbol_impls): Declare.
7768 (SYMBOL_CLASS, SYMBOL_COMPUTED_OPS, SYMBOL_REGISTER_OPS): Redefine.
7769 (SYMBOL_IMPL, SYMBOL_ACLASS_INDEX): New defines.
7770 (register_symbol_computed_impl, register_symbol_block_impl)
7771 (register_symbol_register_impl): Declare.
7772 (struct symbol_computed_ops): Add location_has_loclist.
7773 (struct symbol_block_ops): New.
7774 (SYMBOL_BLOCK_OPS): New.
7775 * xcoffread.c (process_xcoff_symbol): Set SYMBOL_ACLASS_INDEX.
7777 2013-03-20 Tom Tromey <tromey@redhat.com>
7779 * psymtab.c (find_pc_sect_psymbol, fixup_psymbol_section)
7780 (print_partial_symbols, recursively_search_psymtabs): Use
7783 2013-03-20 Pierre Muller <muller@sourceware.org>
7785 * contrib/ari/gdb_ari.sh (OP eol rule): Also check
7786 addtion, subtraction, multiplication and division binary operator.
7788 2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
7791 * bfd-target.c (target_bfd_xclose): Remove parameter quitting.
7792 * bsd-kvm.c (bsd_kvm_close): Likewise.
7793 * bsd-uthread.c (bsd_uthread_close): Likewise.
7794 * corelow.c (core_close): Likewise.
7795 (core_close_cleanup): Remove parameter quitting from a caller.
7796 * event-top.c (async_disconnect): Likewise.
7797 * exec.c (exec_close_1): Remove parameter quitting.
7798 * go32-nat.c (go32_close): Likewise.
7799 * linux-nat.c (linux_nat_close): Remove parameter quitting. Remove
7800 parameter quitting from a caller.
7801 * mips-linux-nat.c (super_close): Remove parameter quitting from the
7803 (mips_linux_close): Remove parameter quitting. Remove parameter
7804 quitting from a caller.
7805 * monitor.c (monitor_close): Remove parameter quitting.
7806 * monitor.h (monitor_close): Likewise.
7807 * record-btrace.c (record_btrace_close): Likewise.
7808 * record-full.c (record_full_close): Likewise.
7809 * remote-m32r-sdi.c (m32r_close): Remove parameter quitting and remove
7810 it also from fprintf_unfiltered.
7811 * remote-mips.c (mips_close): Remove parameter quitting.
7812 (mips_detach): Remove parameter quitting from a caller.
7813 * remote-sim.c (gdbsim_close): Remove parameter quitting.
7814 (gdbsim_close): Remove duplicate function comment. Remove parameter
7815 quitting and remove it also from printf_filtered.
7816 * remote.c (remote_close): Remove parameter quitting.
7817 * solib-svr4.c (enable_break): Remove parameter quitting from a caller.
7818 * target.c (update_current_target): Remove parameter int from to_close
7820 (push_target, unpush_target, pop_target): Remove parameter quitting from
7822 (pop_all_targets_above, pop_all_targets): Remove parameter quitting.
7823 Remove parameter quitting from a caller.
7824 (target_preopen): Remove parameter quitting from a caller.
7825 (target_close): Remove parameter quitting. Remove parameter quitting
7826 from a caller two times. Remove parameter quitting also from
7828 * target.h (struct target_ops): Remove parameter quitting and as int
7829 from fields to_xclose and to_close.
7830 (extern struct target_ops current_target):
7831 (target_close, pop_all_targets): Remove parameter quitting. Update the
7833 (pop_all_targets_above): Remove parameter quitting.
7834 * top.c (quit_target): Remove parameter quitting from a caller.
7835 * tracepoint.c (tfile_close): Remove parameter quitting.
7836 * windows-nat.c (windows_close): Remove parameter quitting.
7838 2013-03-20 Corinna Vinschen <vinschen@redhat.com>
7840 * windows-nat.c (handle_output_debug_string): Replace call
7841 to string_to_core_addr with call to strtoull.
7843 2013-03-20 Yao Qi <yao@codesourcery.com>
7845 * ctf.c (ctf_save_metadata_header): Define macro HOST_ENDIANNESS
7846 and write it to CTF metadata.
7848 2013-03-19 Corinna Vinschen <vinschen@redhat.com>
7850 * windows-nat.c (handle_output_debug_string): Change type of n to
7851 SIZE_T to avoid crash on 64 bit systems.
7853 2013-03-17 Eli Zaretskii <eliz@gnu.org>
7855 * python/python-internal.h (HAVE_SNPRINTF)
7856 [_WIN32 && HAVE_DECL_SNPRINTF]: Define, to avoid compiler warnings
7857 about redefinition of snprintf by pyerrors.h.
7859 2013-03-15 Steve Ellcey <sellcey@mips.com>
7861 * remote-sim.c (sim_command_completer): Make char arguments const.
7863 2013-03-15 Tom Tromey <tromey@redhat.com>
7866 * gdbtypes.c (types_equal): Handle TYPE_CODE_FUNC.
7868 2013-03-14 Tom Tromey <tromey@redhat.com>
7870 * gdb_bfd.c (struct gdb_bfd_data) <crc_computed, crc>:
7872 (get_file_crc): Move from symfile.c.
7873 (gdb_bfd_crc): New function.
7874 * gdb_bfd.h (gdb_bfd_crc): Declare.
7875 * objfiles.h (struct objfile) <crc32, crc32_p>: Remove.
7876 * symfile.c (get_file_crc): Move to gdb_bfd.c.
7877 (separate_debug_file_exists): Use gdb_bfd_crc.
7879 2013-03-14 Tom Tromey <tromey@redhat.com>
7881 * symfile.c (get_debug_link_info): Remove.
7882 (find_separate_debug_file_by_debuglink): Use
7883 bfd_get_debug_link_info.
7885 2013-03-14 Tom Tromey <tromey@redhat.com>
7887 * symtab.c (error_in_psymtab_expansion): New function.
7888 (lookup_symbol_aux_quick)
7889 (basic_lookup_transparent_type_quick): Remove "last resort"
7890 code. Use error_in_psymtab_expansion.
7892 2013-03-14 Doug Evans <dje@google.com>
7893 Jan Kratochvil <jan.kratochvil@redhat.com>
7895 * dwarf2read.c (dw2_map_symtabs_matching_filename): Put continue after
7896 any successful compare_filenames_for_search or FILENAME_CMP.
7897 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
7898 * symtab.c (iterate_over_some_symtabs): Likewise.
7900 2013-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7902 * source.c (print_source_lines_base): Make a local copy of
7905 2013-03-14 Hui Zhu <hui_zhu@mentor.com>
7906 Jan Kratochvil <jan.kratochvil@redhat.com>
7908 * source.c (print_source_lines_base): Suppress "file" for TUI.
7910 2013-03-14 Keith Seitz <keiths@redhat.com>
7911 Alan Matsuoka <alanm@redhat.com>
7915 * cp-namespace.c (cp_lookup_nested_symbol): Handle TYPE_CODE_FUNC and
7917 * elfread.c (elf_symtab_read): Handle BSF_GNU_UNIQUE for certain
7920 2013-03-14 Yao Qi <yao@codesourcery.com>
7922 * tracepoint.c (tfile_write_status): Write 'stop_desc' of trace
7923 status to tfile if trace is stopped by command 'tstop'.
7925 2013-03-14 Yao Qi <yao@codesourcery.com>
7927 * tracepoint.c (tfile_write_status): Write trace notes and user
7928 name into tfile if they are not NULL.
7930 2013-03-14 Hui Zhu <hui@codesourcery.com>
7931 Yao Qi <yao@codesourcery.com>
7933 * Makefile.in (REMOTE_OBS): Add ctf.o.
7934 (SFILES): Add ctf.c.
7935 (HFILES_NO_SRCDIR): Add ctf.h.
7936 * ctf.c, ctf.h: New files.
7937 * tracepoint.c: Include 'ctf.h'.
7938 (collect_pseudocommand): Remove static.
7939 (trace_save_command): Parse option "-ctf".
7940 Produce different trace file writers per option.
7941 Adjust output message.
7942 (trace_save_tfile, trace_save_ctf): New.
7943 * tracepoint.h (trace_save_tfile, trace_save_ctf): Declare.
7944 * mi/mi-main.c: Include 'ctf.h'.
7945 (mi_cmd_trace_save): Handle option '-ctf'. Call either
7946 trace_save_tfile or trace_save_ctf.
7947 * NEWS: Mention these changes.
7949 2013-03-14 Yao Qi <yao@codesourcery.com>
7951 * tracepoint.c (trace_file_writer_xfree): New.
7952 (struct tfile_writer_data): New.
7953 (tfile_dtor, tfile_can_target_save, tfile_start): New.
7954 (tfile_write_header, tfile_write_regblock_type): New.
7955 (tfile_write_status, tfile_write_uploaded_tsv): New.
7956 (tfile_write_uploaded_tp, tfile_write_definition_end): New.
7957 (tfile_write_raw_data, (tfile_end): New.
7958 (tfile_write_ops): New global variable.
7959 (TRACE_WRITE_R_BLOCK): New macro.
7960 (TRACE_WRITE_M_BLOCK_HEADER): New macro.
7961 (TRACE_WRITE_M_BLOCK_MEMORY): New macro.
7962 (TRACE_WRITE_V_BLOCK): New macro.
7963 (trace_save): Add extra one parameter WRITER. Make it static.
7964 Use WRITER to writer trace.
7965 (tfile_trace_file_writer_new): New.
7966 (trace_save_command): Caller update.
7967 (trace_save_tfile): Write trace data in TFILE format.
7968 * tracepoint.h (struct trace_frame_write_ops): New.
7969 (struct trace_file_write_ops): New.
7970 (struct trace_file_writer): New.
7971 (trace_save): Remove its declaration.
7972 (trace_save_tfile): Declare it.
7973 * mi/mi-main.c (mi_cmd_trace_save): Call trace_save_tfile
7974 instead of trace_save.
7976 2013-03-13 Pedro Alves <palves@redhat.com>
7978 * hppa-hpux-nat.c (hppa_hpux_save_state_offset): Make static.
7980 2013-03-13 Pedro Alves <palves@redhat.com>
7982 * dbxread.c (read_ofile_symtab, process_one_symbol): Remove
7984 * demangle.c (current_demangling_style_string): Make it const.
7985 (set_demangling_command): Assert the demangling style is known.
7986 Remove all handling of unknown styles. Set
7987 'current_demangling_style_string' to an element of the
7988 demangling_style_names array.
7989 (set_demangling_style): Delete.
7990 (_initialize_demangler): Set current_demangling_style_string to the
7991 element of the demangling_style_names array that corresponds to
7992 the default demangling style. Remove FIXME note. Don't call
7993 set_demangling_style.
7994 * gdb-demangle.h (set_demangling_style): Remove declaration.
7996 2013-03-13 Pedro Alves <palves@redhat.com>
7998 * ada-lang.c (struct add_partial_datum) <text, text0, word>: Make
8000 (ada_make_symbol_completion_list): Make "text0" parameter const.
8001 * ax-gdb.c (agent_eval_command_one): Make "exp" parameter const.
8002 * breakpoint.c (condition_completer): Make "text" and "word"
8003 parameters const. Adjust.
8004 (check_tracepoint_command): Adjust to validate_actionline
8006 (catch_syscall_completer): Make "text" and "word" parameters
8008 * cli/cli-cmds.c (show_user): Make "comname" local const.
8009 (valid_command_p): Make "command" parameter const.
8010 (alias_command): Make "alias_prefix" and "command_prefix" locals
8012 * cli/cli-decode.c (add_cmd): Make "name" parameter const.
8013 (add_alias_cmd): Make "name" and "oldname" parameters const.
8014 Adjust. No longer make copy of OLDNAME.
8015 (add_prefix_cmd, add_abbrev_prefix_cmd, add_set_or_show_cmd)
8016 (add_setshow_cmd_full, add_setshow_enum_cmd)
8017 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
8018 (add_setshow_filename_cmd, add_setshow_string_cmd)
8019 (add_setshow_string_noescape_cmd)
8020 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
8021 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
8022 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd)
8023 (delete_cmd, add_info, add_info_alias, add_com, add_com_alias):
8024 Make "name" parameter const.
8025 (help_cmd): Rename "command" parameter to "arg". New const local
8027 (find_cmd): Make "command" parameter const.
8028 (lookup_cmd_1): Make "text" parameter pointer to const. Adjust to
8029 deprecated_cmd_warning prototype change.
8030 (undef_cmd_error): Make "cmdtype" parameter const.
8031 (lookup_cmd): Make "line" parameter const.
8032 (deprecated_cmd_warning): Change type of "text" parameter to
8033 pointer to const char, from pointer to pointer to char. Adjust.
8034 (lookup_cmd_composition): Make "text" parameter const.
8035 (complete_on_cmdlist, complete_on_enum): Make "text" and "word"
8037 * cli/cli-decode.h (struct cmd_list_element) <name>: Make field
8039 * cli/cli-script.c (validate_comname): Make "tem" local const.
8040 (define_command): New const local "tem_c". Use it in calls to
8042 (document_command): Make "tem" and "comfull" locals const.
8043 (show_user_1): Make "prefix" and "name" parameters const.
8044 * cli-script.h (show_user_1): Make "prefix" and "name" parameters
8046 * command.h (add_cmd, add_alias_cmd, add_prefix_cmd)
8047 (add_abbrev_prefix_cmd, completer_ftype, lookup_cmd, lookup_cmd_1)
8048 (deprecated_cmd_warning, lookup_cmd_composition, add_com)
8049 (add_com_alias, add_info, add_info_alias, complete_on_cmdlist)
8050 (complete_on_enum, add_setshow_enum_cmd)
8051 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
8052 (add_setshow_filename_cmd, add_setshow_string_cmd)
8053 (add_setshow_string_noescape_cmd)
8054 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
8055 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
8056 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
8057 Change prototypes, constifying strings.
8058 * completer.c (noop_completer, filename_completer): Make "text"
8059 and "prefix" parameters const.
8060 (location_completer, expression_completer)
8061 (complete_line_internal): Make "text" and "prefix" parameters
8063 (command_completer, signal_completer): Make "text" and "prefix"
8065 * completer.h (noop_completer, filename_completer)
8066 (expression_completer, location_completer, command_completer)
8067 (signal_completer): Change prototypes.
8068 * corefile.c (complete_set_gnutarget): Make "text" and "word"
8070 * cp-abi.c (cp_abi_completer): Likewise.
8071 * expression.h (parse_expression_for_completion): Change
8073 * f-lang.c (f_make_symbol_completion_list): Make "text" and "word"
8075 * infcmd.c (_initialize_infcmd): Make "cmd_name" local const.
8076 * infrun.c (handle_completer): Make "text" and "word" parameters
8078 * interps.c (interpreter_completer): Make "text" and "word"
8080 * language.h (struct language_defn)
8081 <la_make_symbol_completion_list>: Make "text" and "word"
8083 * parse.c (parse_exp_1): Move const hack to parse_exp_in_context.
8084 (parse_exp_in_context): Rename to ...
8085 (parse_exp_in_context_1): ... this.
8086 (parse_exp_in_context): Reimplement, with const hack from
8088 (parse_expression_for_completion): Make "string" parameter const.
8089 * printcmd.c (decode_format): Make "string_ptr" parameter pointer
8090 to pointer to const char. Adjust.
8091 (print_command_1): Make "exp" parameter const.
8092 (output_command): Rename to ...
8093 (output_command_const): ... this. Make "exp" parameter const.
8094 (output_command): Reimplement.
8095 (x_command): Adjust.
8096 (display_command): Rename "exp" parameter to "arg". New "exp"
8097 local, const version of "arg".
8098 * python/py-auto-load.c (gdbpy_initialize_auto_load): Make
8099 "cmd_name" local const.
8100 * python/py-cmd.c (cmdpy_destroyer): Cast const away in xfree
8102 (cmdpy_completer): Make "text" and "word" parameters const.
8103 (gdbpy_parse_command_name): Make "prefix_text2" local const.
8104 * python/py-param.c (add_setshow_generic): Make "tmp_name" local
8106 * remote.c (_initialize_remote): Make "cmd_name" local const.
8107 * symtab.c (language_search_unquoted_string): Make "text" and "p"
8108 parameters const. Adjust.
8109 (completion_list_add_fields): Make "sym_text", "text" and "word"
8111 (struct add_name_data) <sym_text, text, word>: Make fields const.
8112 (default_make_symbol_completion_list_break_on): Make "text" and
8113 "word" parameters const. Adjust locals.
8114 (default_make_symbol_completion_list)
8115 (make_symbol_completion_list, make_symbol_completion_type)
8116 (make_symbol_completion_list_fn): Make "text" and "word"
8118 (make_file_symbol_completion_list): Make "text", "word" and
8119 "srcfile" parameters const. Adjust locals.
8120 (add_filename_to_list): Make "text" and "word" parameters const.
8121 (struct add_partial_filename_data) <text, word>: Make fields
8123 (make_source_files_completion_list): Make "text" and "word"
8125 * symtab.h (default_make_symbol_completion_list_break_on)
8126 (default_make_symbol_completion_list, make_symbol_completion_list)
8127 (make_symbol_completion_type enum type_code)
8128 (make_symbol_completion_list_fn make_file_symbol_completion_list)
8129 (make_source_files_completion_list): Change prototype.
8130 * top.c (execute_command): Adjust to pass pointer to pointer to
8131 const char to lookup_cmd, and to deprecated_cmd_warning prototype
8133 (set_verbose): Make "cmdname" local const.
8134 * tracepoint.c (decode_agent_options): Make "exp" parameter const,
8136 (validate_actionline): Make "line" parameter a pointer to const
8138 (encode_actions_1): Make "action_exp" local const, and adjust.
8139 (encode_actions): Adjust.
8140 (replace_comma): Delete.
8141 (trace_dump_actions): Make "action_exp" and "next_comma" locals
8142 const, and adjust. Don't frob the action string while splitting
8143 it at commas. Instead, make a copy of each split substring in
8145 (trace_dump_command): Adjust to validate_actionline prototype
8147 * tracepoint.h (decode_agent_options, decode_agent_options)
8148 (encode_actions, validate_actionline): Change prototypes.
8149 * valprint.h (output_command): Delete declaration.
8150 (output_command_const): Declare.
8151 * value.c (function_destroyer): Cast const away in xfree call.
8153 2013-03-13 Pedro Alves <palves@redhat.com>
8155 * ada-lang.c (ada_decode_symbol): Cast away constness of GSYMBOL
8156 rather than casting 'const char * const *' to 'const char **'.
8157 * ada-lex.l (processInt): Make "trailer" local const. Remove
8158 'const char **' cast.
8159 * arm-linux-tdep.c (arm_stap_parse_special_token): Add 'char *'
8160 locals, and use those as strtol output pointer, instead than doing
8161 invalid casts to from 'const char **' to 'char **'.
8162 (_initialize_demangle): Remove cast.
8163 * i386-tdep.c (i386_stap_parse_special_token): : Add 'char *'
8164 locals, and use those as strtol output pointer, instead than doing
8165 invalid casts to from 'const char **' to 'char **'.
8166 * solib-dsbt.c (dsbt_get_initial_loadmaps): Remove 'gdb_byte**'
8168 * stap-probe.c (stap_parse_register_operand)
8169 (stap_parse_single_operand): Likewise.
8171 2013-03-13 Yao Qi <yao@codesourcery.com>
8173 * tracepoint.c (tfile_get_trace_state_variable_value): Look for
8174 the last matched 'V' blcok in trace frame.
8176 2013-03-12 Joel Brobecker <brobecker@adacore.com>
8178 * NEWS: Create a new section for the next release branch.
8179 Rename the section of the current branch, now that it has
8182 2013-03-12 Joel Brobecker <brobecker@adacore.com>
8184 GDB 7.6 branch created (branch timestamp: 2013-03-12 22:15 UTC)
8185 * version.in: Bump version to 7.6.50.20130312-cvs.
8187 2013-03-12 Keith Seitz <keiths@redhat.com>
8189 * mi/mi-cmds.h (mi_execute_command): Make "cmd" const.
8190 * mi/mi-interp.c (mi_interpreter_exec): Make "command" const.
8191 Remove temporary copy of input string.
8192 (mi_execute_command_wrapper): Make "cmd" const.
8193 * mi/mi-main.c (mi_execute_command): Make "string_ptr" const.
8194 * mi/mi-parse.c (mi_parse_argv): Make "args" const.
8196 (mi_parse): Make "cmd" const.
8198 * mi/mi-parse.h (mi_parse): Make "cmd" const.
8200 2013-03-12 Keith Seitz <keiths@redhat.com>
8202 * ada-lang.c (ada_read_renaming_var_value): Pass const
8203 pointer to expression string to parse_exp_1.
8204 (create_excep_cond_exprs): Likewise.
8205 * ax-gdb.c (agent_eval_command_one): Likewise.
8206 (maint_agent_printf_command): Likewise.
8207 Constify much of the string handling/parsing.
8208 * breakpoint.c (set_breakpoint_condition): Pass const
8209 pointer to expression string to parse_exp_1.
8210 (update_watchpoint): Likewise.
8211 (parse_cmd_to_aexpr): Constify string handling.
8212 Pass const pointer to parse_exp_1.
8213 (init_breakpoint_sal): Pass const pointer to parse_exp_1.
8214 (find_condition_and_thread): Likewise.
8216 (watch_command_1): Make "arg" const.
8217 Constify string handling.
8218 Copy the expression string instead of changing the input
8220 (update_breakpoint_location): Pass const pointer to
8222 * eval.c (parse_and_eval_address): Make "exp" const.
8223 (parse_to_comma_and_eval): Make "expp" const.
8224 (parse_and_eval): Make "exp" const.
8225 * expression.h (parse_expression): Make argument const.
8226 (parse_exp_1): Make first argument const.
8227 * findcmd.c (parse_find_args): Treat "args" as const.
8228 * linespec.c (parse_linespec): Pass const pointer to
8229 linespec_expression_to_pc.
8230 (linespec_expression_to_pc): Make "exp_ptr" const.
8231 * parse.c (parse_exp_1): Make "stringptr" const.
8232 Make a copy of the expression to pass to parse_exp_in_context until
8233 this whole interface can be constified.
8234 (parse_expression): Make "string" const.
8235 * printcmd.c (ui_printf): Treat "arg" as const.
8236 Handle const strings.
8237 * tracepoint.c (validate_actionline): Pass const pointer to
8238 all calls to parse_exp_1.
8239 (encode_actions_1): Likewise.
8240 * value.h (parse_to_comma_and_eval): Make argument const.
8241 (parse_and_eval_address): Likewise.
8242 (parse_and_eval): Likewise.
8243 * varobj.c (varobj_create): Pass const pointer to parse_exp_1.
8244 (varobj_set_value): Likewise.
8245 * cli/cli-cmds.c (disassemble_command): Treat "arg" as const and
8246 constify string handling.
8247 Pass const pointers to parse_and_eval_address and
8248 parse_to_comman_and_eval.
8249 * cli/cli-utils.c (skip_to_space): Rename to ...
8250 (skip_to_space_const): ... this. Handle const strings.
8251 * cli/cli-utils.h (skip_to_space): Turn into macro which invokes
8252 skip_to_space_const.
8253 (skip_to_space_const): Declare.
8254 * common/format.c (parse_format_string): Make "arg" const.
8255 Handle const strings.
8256 * common/format.h (parse_format_string): Make "arg" const.
8257 * gdbserver/ax.c (ax_printf): Make "format" const.
8258 * python/python.c (gdbpy_parse_and_eval): Do not make a copy
8259 of the expression string.
8261 2013-03-12 Hui Zhu <hui@codesourcery.com>
8263 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Update error message.
8265 2013-03-12 Yao Qi <yao@codesourcery.com>
8266 Hui Zhu <hui@codesourcery.com>
8268 * dwarf2loc.c (access_memory): Change nbits to nbytes in gdb_assert.
8269 (dwarf2_compile_expr_to_ax): Call access_memory in DW_OP_deref and
8272 2013-03-12 Paul Hilfinger <hilfingr@adacore.com>
8274 * ada-lex.l (rules): Only recognize 'thread' as a
8275 delimiter when followed by numerals, as for c-exp.y.
8276 Use new rewind_to_char function to rewind the input for
8277 expression-delimiting tokens.
8278 (rewind_to_char): New function.
8280 2013-03-11 Pedro Alves <palves@redhat.com>
8281 Jan Kratochvil <jan.kratochvil@redhat.com>
8283 * configure: Regenerate.
8284 * configure.ac (check dynamic export flag): Link python test with
8287 2013-03-11 Doug Evans <dje@google.com>
8288 Keith Seitz <keiths@redhat.com>
8290 * linespec.c (find_linespec_symbols): Call find_function_symbols
8291 first, and then call lookup_prefix_sym/find_method.
8293 2013-03-11 Pedro Alves <palves@redhat.com>
8295 * charset.c (convert_between_encodings): Don't cast between
8296 different pointer to pointer types. Instead, make the 'inp' local
8297 be of the type iconv expects.
8298 (wchar_iterate): Don't cast between different pointer to pointer
8299 types. Instead, use new pointer local of the type iconv expects.
8300 * target.c (target_read_stralloc, target_fileio_read_stralloc):
8301 Add new local of type char pointer, and use it to get a
8302 char/string view of the byte buffer, instead of casting between
8303 pointer to pointer types.
8305 2013-03-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
8307 * remote.c (remote_set_trace_buffer_size): Move != operator
8308 to the start of next line to fix an ARI warning.
8310 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8312 * NEWS: Add record changes.
8314 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8316 * record-btrace.c (btrace_insn_history): Omit the pc prefix in
8317 the instruction history disassembly.
8318 * disasm.c (dump_insns): Omit the pc prefix, if requested.
8319 * disasm.h (DISASSEMBLY_OMIT_PC): New.
8321 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8323 * Makefile.in (SFILES): Add record-btrace.c
8324 (COMMON_OBS): Add record-btrace.o
8325 * record-btrace.c: New.
8326 * objfiles.c: Include btrace.h.
8327 (free_objfile): call btrace_free_objfile.
8329 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8331 * target.c (target_call_history, target_call_history_from,
8332 target_call_history_range): New.
8333 * target.h (target_ops) <to_call_history, to_call_history_from,
8334 to_call_history_range>: New fields.
8335 (target_call_history, target_call_history_from,
8336 target_call_history_range): New declaration.
8337 * record.c (get_call_history_modifiers, cmd_record_call_history,
8338 record_call_history_size): New.
8339 (_initialize_record): Add the "record function-call-history" command.
8340 Add "set/show record function-call-history-size" commands.
8341 * record.h (record_print_flag): New.
8343 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8345 * target.h (target_ops) <to_insn_history, to_insn_history_from,
8346 to_insn_history_range>: New fields.
8347 (target_insn_history): New.
8348 (target_insn_history_from): New.
8349 (target_insn_history_range): New.
8350 * target.c (target_insn_history): New.
8351 (target_insn_history_from): New.
8352 (target_insn_history_range): New.
8353 * record.c: Include cli/cli-utils.h, disasm.h, ctype.h.
8354 (record_insn_history_size): New.
8355 (get_insn_number): New.
8356 (get_context_size): New.
8358 (get_insn_history_modifiers): New.
8359 (cmd_record_insn_history): New.
8360 (_initialize_record): Add "set/show record instruction-history-size"
8361 command. Add "record instruction-history" command.
8363 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8365 * record.h (record_disconnect): New.
8366 (record_detach): New.
8367 (record_mourn_inferior): New.
8369 * record-full.c (record_disconnect, record_detach,
8370 record_mourn_inferior, record_kill): Move to...
8371 * record.c: ...here.
8374 (record_unpush): New.
8375 (cmd_record_stop): Call record_stop. Replace unpush_target
8376 call with record_unpush call.
8377 (record_disconnect, record_detach): Assert that the target
8378 is of record stratum. Call record_unpush, record_stop, and
8380 (record_mourn_inferior, record_kill): Assert that the target
8381 is of record stratum. Call record_unpush and DEBUG.
8383 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8385 * record-full.h, record-full.c (record_memory_query): Rename
8387 (record_full_memory_query): ...this. Update all users.
8388 (record_arch_list_add_reg): Rename to ...
8389 (record_full_arch_list_add_reg): ...this. Update all users.
8390 (record_arch_list_add_mem): Rename to ...
8391 (record_full_arch_list_add_mem): ...this. Update all users.
8392 (record_arch_list_add_end): Rename to ...
8393 (record_full_arch_list_add_end): ...this. Update all users.
8394 (record_gdb_operation_disable_set): Rename to ...
8395 (record_full_gdb_operation_disable_set): ...this.
8398 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8400 * record-full.c (DEFAULT_RECORD_INSN_MAX_NUM): Renamed to ...
8401 (DEFAULT_RECORD_FULL_INSN_MAX_NUM): ... this. Updated all users.
8402 (RECORD_IS_REPLAY): Renamed to ...
8403 (RECORD_FULL_IS_REPLAY): ... this. Updated all users.
8404 (RECORD_FILE_MAGIC): Renamed to ...
8405 (RECORD_FULL_FILE_MAGIC): ... this. Updated all users.
8406 (record_mem_entry): Renamed to ...
8407 (record_full_mem_entry): ... this. Updated all users.
8408 (record_reg_entry): Renamed to ...
8409 (record_full_reg_entry): ... this. Updated all users.
8410 (record_end_entry): Renamed to ...
8411 (record_full_end_entry): ... this. Updated all users.
8412 (record_type) <record_end, record_reg, record_mem>: Renamed
8414 (record_full_type) <record_full_end, record_full_reg,
8415 record_full_mem>: ... this. Updated all users.
8416 (record_entry): Renamed to ...
8417 (record_full_entry): ... this. Updated all users.
8418 (record_core_buf_entry): Renamed to ...
8419 (record_full_core_buf_entry): ... this. Updated all users.
8420 (record_core_regbuf): Renamed to ...
8421 (record_full_core_regbuf): ... this. Updated all users.
8422 (record_core_start): Renamed to ...
8423 (record_full_core_start): ... this. Updated all users.
8424 (record_core_end): Renamed to ...
8425 (record_full_core_end): ... this. Updated all users.
8426 (record_core_buf_list): Renamed to ...
8427 (record_full_core_buf_list): ... this. Updated all users.
8428 (record_first): Renamed to ...
8429 (record_full_first): ... this. Updated all users.
8430 (record_list): Renamed to ...
8431 (record_full_list): ... this. Updated all users.
8432 (record_arch_list_head): Renamed to ...
8433 (record_full_arch_list_head): ... this. Updated all users.
8434 (record_arch_list_tail): Renamed to ...
8435 (record_full_arch_list_tail): ... this. Updated all users.
8436 (record_stop_at_limit): Renamed to ...
8437 (record_full_stop_at_limit): ... this. Updated all users.
8438 (record_insn_max_num): Renamed to ...
8439 (record_full_insn_max_num): ... this. Updated all users.
8440 (record_insn_num): Renamed to ...
8441 (record_full_insn_num): ... this. Updated all users.
8442 (record_insn_count): Renamed to ...
8443 (record_full_insn_count): ... this. Updated all users.
8444 (record_ops): Renamed to ...
8445 (record_full_ops): ... this. Updated all users.
8446 (record_core_ops): Renamed to ...
8447 (record_full_core_ops): ... this. Updated all users.
8448 (set_record_cmdlist): Renamed to ...
8449 (set_record_full_cmdlist): ... this. Updated all users.
8450 (show_record_cmdlist): Renamed to ...
8451 (show_record_full_cmdlist): ... this. Updated all users.
8452 (record_cmdlist): Renamed to ...
8453 (record_full_cmdlist): ... this. Updated all users.
8454 (record_beneath_to_resume_ops): Renamed to ...
8455 (record_full_beneath_to_resume_ops): ... this. Updated all users.
8456 (record_beneath_to_resume): Renamed to ...
8457 (record_full_beneath_to_resume): ... this. Updated all users.
8458 (record_beneath_to_wait_ops): Renamed to ...
8459 (record_full_beneath_to_wait_ops): ... this. Updated all users.
8460 (record_beneath_to_wait): Renamed to ...
8461 (record_full_beneath_to_wait): ... this. Updated all users.
8462 (record_beneath_to_store_registers_ops): Renamed to ...
8463 (record_full_beneath_to_store_registers_ops): ... this.
8465 (record_beneath_to_store_registers): Renamed to ...
8466 (record_full_beneath_to_store_registers): ... this.
8468 (record_beneath_to_xfer_partial_ops): Renamed to ...
8469 (record_full_beneath_to_xfer_partial_ops): ... this.
8471 (record_beneath_to_xfer_partial): Renamed to ...
8472 (record_full_beneath_to_xfer_partial): ... this.
8474 (record_beneath_to_insert_breakpoint): Renamed to ...
8475 (record_full_beneath_to_insert_breakpoint): ... this.
8477 (record_beneath_to_stopped_by_watchpoint): Renamed to ...
8478 (record_full_beneath_to_stopped_by_watchpoint): ... this.
8480 (record_beneath_to_stopped_data_address): Renamed to ...
8481 (record_full_beneath_to_stopped_data_address): ... this.
8483 (record_beneath_to_async): Renamed to ...
8484 (record_full_beneath_to_async): ... this. Updated all users.
8485 (record_goto_insn): Renamed to ...
8486 (record_full_goto_insn): ... this. Updated all users.
8487 (record_save): Renamed to ...
8488 (record_full_save): ... this. Updated all users.
8489 (record_reg_alloc): Renamed to ...
8490 (record_full_reg_alloc): ... this. Updated all users.
8491 (record_reg_release): Renamed to ...
8492 (record_full_reg_release): ... this. Updated all users.
8493 (record_mem_alloc): Renamed to ...
8494 (record_full_mem_alloc): ... this. Updated all users.
8495 (record_mem_release): Renamed to ...
8496 (record_full_mem_release): ... this. Updated all users.
8497 (record_end_alloc): Renamed to ...
8498 (record_full_end_alloc): ... this. Updated all users.
8499 (record_end_release): Renamed to ...
8500 (record_full_end_release): ... this. Updated all users.
8501 (record_entry_release): Renamed to ...
8502 (record_full_entry_release): ... this. Updated all users.
8503 (record_list_release): Renamed to ...
8504 (record_full_list_release): ... this. Updated all users.
8505 (record_list_release_following): Renamed to ...
8506 (record_full_list_release_following): ... this.
8508 (record_list_release_first): Renamed to ...
8509 (record_full_list_release_first): ... this. Updated all users.
8510 (record_arch_list_add): Renamed to ...
8511 (record_full_arch_list_add): ... this. Updated all users.
8512 (record_get_loc): Renamed to ...
8513 (record_full_get_loc): ... this. Updated all users.
8514 (record_check_insn_num): Renamed to ...
8515 (record_full_check_insn_num): ... this. Updated all users.
8516 (record_arch_list_cleanups): Renamed to ...
8517 (record_full_arch_list_cleanups): ... this. Updated all users.
8518 (record_message): Renamed to ...
8519 (record_full_message): ... this. Updated all users.
8520 (record_message_wrapper): Renamed to ...
8521 (record_full_message_wrapper): ... this. Updated all users.
8522 (record_message_wrapper_safe): Renamed to ...
8523 (record_full_message_wrapper_safe): ... this. Updated all users.
8524 (record_gdb_operation_disable): Renamed to ...
8525 (record_full_gdb_operation_disable): ... this. Updated all users.
8526 (record_hw_watchpoint): Renamed to ...
8527 (record_full_hw_watchpoint): ... this. Updated all users.
8528 (record_exec_insn): Renamed to ...
8529 (record_full_exec_insn): ... this. Updated all users.
8530 (record_restore): Renamed to ...
8531 (record_full_restore): ... this. Updated all users.
8532 (record_async_inferior_event_token): Renamed to ...
8533 (record_full_async_inferior_event_token): ... this.
8535 (record_async_inferior_event_handler): Renamed to ...
8536 (record_full_async_inferior_event_handler): ... this.
8538 (record_core_open_1): Renamed to ...
8539 (record_full_core_open_1): ... this. Updated all users.
8540 (record_open_1): Renamed to ...
8541 (record_full_open_1): ... this. Updated all users.
8542 (record_open): Renamed to ...
8543 (record_full_open): ... this. Updated all users.
8544 (record_close): Renamed to ...
8545 (record_full_close): ... this. Updated all users.
8546 (record_resume_step): Renamed to ...
8547 (record_full_resume_step): ... this. Updated all users.
8548 (record_resumed): Renamed to ...
8549 (record_full_resumed): ... this. Updated all users.
8550 (record_execution_dir): Renamed to ...
8551 (record_full_execution_dir): ... this. Updated all users.
8552 (record_resume): Renamed to ...
8553 (record_full_resume): ... this. Updated all users.
8554 (record_get_sig): Renamed to ...
8555 (record_full_get_sig): ... this. Updated all users.
8556 (record_sig_handler): Renamed to ...
8557 (record_full_sig_handler): ... this. Updated all users.
8558 (record_wait_cleanups): Renamed to ...
8559 (record_full_wait_cleanups): ... this. Updated all users.
8560 (record_wait_1): Renamed to ...
8561 (record_full_wait_1): ... this. Updated all users.
8562 (record_wait): Renamed to ...
8563 (record_full_wait): ... this. Updated all users.
8564 (record_stopped_by_watchpoint): Renamed to ...
8565 (record_full_stopped_by_watchpoint): ... this. Updated all users.
8566 (record_disconnect): Renamed to ...
8567 (record_full_disconnect): ... this. Updated all users.
8568 (record_detach): Renamed to ...
8569 (record_full_detach): ... this. Updated all users.
8570 (record_mourn_inferior): Renamed to ...
8571 (record_full_mourn_inferior): ... this. Updated all users.
8572 (record_kill): Renamed to ...
8573 (record_full_kill): ... this. Updated all users.
8574 (record_stopped_data_address): Renamed to ...
8575 (record_full_stopped_data_address): ... this. Updated all users.
8576 (record_registers_change): Renamed to ...
8577 (record_full_registers_change): ... this. Updated all users.
8578 (record_store_registers): Renamed to ...
8579 (record_full_store_registers): ... this. Updated all users.
8580 (record_xfer_partial): Renamed to ...
8581 (record_full_xfer_partial): ... this. Updated all users.
8582 (record_breakpoint): Renamed to ...
8583 (record_full_breakpoint): ... this. Updated all users.
8584 (record_breakpoint_p): Renamed to ...
8585 (record_full_breakpoint_p): ... this. Updated all users.
8586 (record_breakpoints): Renamed to ...
8587 (record_full_breakpoints): ... this. Updated all users.
8588 (record_sync_record_breakpoints): Renamed to ...
8589 (record_full_sync_record_breakpoints): ... this.
8591 (record_init_record_breakpoints): Renamed to ...
8592 (record_full_init_record_breakpoints): ... this.
8594 (record_insert_breakpoint): Renamed to ...
8595 (record_full_insert_breakpoint): ... this. Updated all users.
8596 (record_remove_breakpoint): Renamed to ...
8597 (record_full_remove_breakpoint): ... this. Updated all users.
8598 (record_can_execute_reverse): Renamed to ...
8599 (record_full_can_execute_reverse): ... this. Updated all users.
8600 (record_get_bookmark): Renamed to ...
8601 (record_full_get_bookmark): ... this. Updated all users.
8602 (record_goto_bookmark): Renamed to ...
8603 (record_full_goto_bookmark): ... this. Updated all users.
8604 (record_async): Renamed to ...
8605 (record_full_async): ... this. Updated all users.
8606 (record_can_async_p): Renamed to ...
8607 (record_full_can_async_p): ... this. Updated all users.
8608 (record_is_async_p): Renamed to ...
8609 (record_full_is_async_p): ... this. Updated all users.
8610 (record_execution_direction): Renamed to ...
8611 (record_full_execution_direction): ... this. Updated all users.
8612 (record_info): Renamed to ...
8613 (record_full_info): ... this. Updated all users.
8614 (record_delete): Renamed to ...
8615 (record_full_delete): ... this. Updated all users.
8616 (record_is_replaying): Renamed to ...
8617 (record_full_is_replaying): ... this. Updated all users.
8618 (record_goto_entry): Renamed to ...
8619 (record_full_goto_entry): ... this. Updated all users.
8620 (record_goto_begin): Renamed to ...
8621 (record_full_goto_begin): ... this. Updated all users.
8622 (record_goto_end): Renamed to ...
8623 (record_full_goto_end): ... this. Updated all users.
8624 (record_goto): Renamed to ...
8625 (record_full_goto): ... this. Updated all users.
8626 (init_record_ops): Renamed to ...
8627 (init_record_full_ops): ... this. Updated all users.
8628 (record_core_resume): Renamed to ...
8629 (record_full_core_resume): ... this. Updated all users.
8630 (record_core_kill): Renamed to ...
8631 (record_full_core_kill): ... this. Updated all users.
8632 (record_core_fetch_registers): Renamed to ...
8633 (record_full_core_fetch_registers): ... this. Updated all users.
8634 (record_core_prepare_to_store): Renamed to ...
8635 (record_full_core_prepare_to_store): ... this. Updated all users.
8636 (record_core_store_registers): Renamed to ...
8637 (record_full_core_store_registers): ... this. Updated all users.
8638 (record_core_xfer_partial): Renamed to ...
8639 (record_full_core_xfer_partial): ... this. Updated all users.
8640 (record_core_insert_breakpoint): Renamed to ...
8641 (record_full_core_insert_breakpoint): ... this. Updated all users.
8642 (record_core_remove_breakpoint): Renamed to ...
8643 (record_full_core_remove_breakpoint): ... this. Updated all users.
8644 (record_core_has_execution): Renamed to ...
8645 (record_full_core_has_execution): ... this. Updated all users.
8646 (init_record_core_ops): Renamed to ...
8647 (init_record_full_core_ops): ... this. Updated all users.
8648 (cmd_record_restore): Renamed to ...
8649 (cmd_record_full_restore): ... this. Updated all users.
8650 (record_save_cleanups): Renamed to ...
8651 (record_full_save_cleanups): ... this. Updated all users.
8652 (cmd_record_start): Renamed to ...
8653 (cmd_record_full_start): ... this. Updated all users.
8654 (set_record_insn_max_num): Renamed to ...
8655 (set_record_full_insn_max_num): ... this. Updated all users.
8656 (set_record_command): Renamed to ...
8657 (set_record_full_command): ... this. Updated all users.
8658 (show_record_command): Renamed to ...
8659 (show_record_full_command): ... this. Updated all users.
8660 (_initialize_record): Renamed to ...
8661 (_initialize_record_full): ... this. Updated all users.
8663 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8665 * record.h: Split into this and ...
8666 * record-full.h: ... this.
8667 * record.c: Split into this and ...
8668 * record-full.c: ... this.
8669 * target.h (target_ops): Add new fields to_info_record,
8670 to_save_record, to_delete_record, to_record_is_replaying,
8671 to_goto_record_begin, to_goto_record_end, to_goto_record.
8672 (target_info_record): New.
8673 (target_save_record): New.
8674 (target_supports_delete_record): New.
8675 (target_delete_record): New.
8676 (target_record_is_replaying): New.
8677 (target_goto_record_begin): New.
8678 (target_goto_record_end): New.
8679 (target_goto_record): New.
8680 * target.c (target_info_record): New.
8681 (target_save_record): New.
8682 (target_supports_delete_record): New.
8683 (target_delete_record): New.
8684 (target_record_is_replaying): New.
8685 (target_goto_record_begin): New.
8686 (target_goto_record_end): New.
8687 (target_goto_record): New.
8688 * record.h: Declare struct cmd_list_element.
8689 (record_cmdlist): New declaration.
8690 (set_record_cmdlist): New declaration.
8691 (show_record_cmdlist): New declaration.
8692 (info_record_cmdlist): New declaration.
8693 (cmd_record_goto): New declaration.
8694 * record.c: Remove unnecessary includes.
8696 (cmd_record_goto): Remove declaration.
8697 (record_cmdlist): Now extern. Initialize.
8698 (set_record_cmdlist): Now extern. Initialize.
8699 (show_record_cmdlist): Now extern. Initialize.
8700 (info_record_cmdlist): Now extern. Initialize.
8701 (find_record_target): New.
8702 (require_record_target): New.
8703 (cmd_record_start): Update.
8704 (cmd_record_delete): Remove target-specific code.
8705 Call target_delete_record.
8706 (cmd_record_stop): Unpush any record target.
8707 (set_record_insn_max_num): Move to record-full.c
8708 (set_record_command): Add comment.
8709 (show_record_command): Add comment.
8710 (info_record_command): Update comment.
8711 Remove target-specific code.
8712 Call the record target's to_info_record.
8713 (cmd_record_start): New.
8714 (cmd_record_goto): Now extern.
8715 Remove target-specific code.
8716 Call target_goto_begin, target_goto_end, or target_goto.
8717 (_initialize_record): Move record target ops initialization to
8719 Change "record" command help text.
8720 Move "record restore", "record set", and "record show" commands to
8722 * Makefile.in (SFILES): Add record-full.c.
8723 (HFILES_NO_SRCDIR): Add record-full.h.
8724 (COMMON_OBS): Add record-full.o.
8725 * amd64-linux-tdep.c: Include record-full.h instead of record.h.
8726 * arm-tdep.c: Include record-full.h.
8727 * i386-linux-tdep.c: Include record-full.h instead of record.h.
8728 * i386-tdep.c: Include record-full.h.
8729 * infrun.c: Include record-full.h.
8730 * linux-record.c: Include record-full.h.
8731 * moxie-tdep.c: Include record-full.h.
8732 * record-full.c: Include record-full.h.
8733 Change module comment.
8734 (set_record_full_cmdlist): New.
8735 (show_record_full_cmdlist): New.
8736 (record_full_cmdlist): New.
8737 (record_goto_insn): New declaration.
8738 (record_save): New declaration.
8739 (record_check_insn_num): Change query string.
8741 (record_delete): New.
8742 (record_is_replaying): New.
8743 (record_goto_entry): New.
8744 (record_goto_begin): New.
8745 (record_goto_end): New.
8747 (init_record_ops): Update.
8748 (init_record_core_ops): Update.
8749 (cmd_record_save): Rename to record_save. Remove target and arg checks.
8750 (cmd_record_start): New.
8751 (set_record_insn_max_num): Moved from record.c
8752 (set_record_full_command): New.
8753 (show_record_full_command): New.
8754 (_initialize_record_full): New.
8756 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8758 * target.h (add_deprecated_target_alias): New.
8759 * target.c (add_deprecated_target_alias): New.
8761 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8763 * common/linux-btrace.c: Include sys/ptrace, sys/types, sys/wait.h,
8765 (linux_supports_btrace): Add kernel and
8767 (kernel_supports_btrace): New function.
8768 (cpu_supports_btrace): New function.
8769 (intel_supports_btrace): New function.
8771 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8773 * target.h (enum target_object): Add TARGET_OBJECT_BTRACE.
8774 * remote.c: Include btrace.h.
8775 (struct btrace_target_info): New struct.
8776 (remote_supports_btrace): New function.
8777 (send_Qbtrace): New function.
8778 (remote_enable_btrace): New function.
8779 (remote_disable_btrace): New function.
8780 (remote_teardown_btrace): New function.
8781 (remote_read_btrace): New function.
8782 (init_remote_ops): Add btrace ops.
8783 (enum <unnamed>): Add btrace packets.
8784 (struct protocol_feature remote_protocol_features[]): Add btrace packets.
8785 (_initialize_remote): Add packet configuration for branch tracing.
8787 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8789 * features/btrace.dtd: New file.
8790 * Makefile.in (XMLFILES): Add btrace.dtd.
8791 * btrace.h (parse_xml_btrace): New declaration.
8792 * btrace.c: Include xml-support.h.
8793 (parse_xml_btrace): New function.
8794 (parse_xml_btrace_block): New function.
8795 (block_attributes): New struct.
8796 (btrace_attributes): New struct.
8797 (btrace_children): New struct.
8798 (btrace_elements): New struct.
8800 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8802 * amd64-linux-nat.c: Include btrace.h and linux-btrace.h.
8803 (amd64_linux_enable_btrace): New.
8804 (amd64_linux_disable_btrace): New.
8805 (amd64_linux_teardown_btrace): New.
8806 (_initialize_amd64_linux_nat): Initialize btrace ops.
8807 * i386-linux.nat.c: Include btrace.h and linux-btrace.h.
8808 (i386_linux_enable_btrace): New.
8809 (i386_linux_disable_btrace): New.
8810 (i386_linux_teardown_btrace): New.
8811 (_initialize_i386_linux_nat): Initialize btrace ops.
8812 * config/i386/linux.mh: Add linux-btrace.o.
8813 * config/i386/linux64.mh: Add linux-btrace.o.
8815 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8817 * common/linux_btrace.h: New file.
8818 * common/linux_btrace.c: New file.
8819 * Makefile.in (SFILES): Add btrace.c.
8820 (HFILES_NO_SRCDIR): Add common/linux-btrace.h.
8821 (COMMON_OBS): Add btrace.o.
8822 (linux-btrace.o): New rule.
8824 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
8826 * target.h: Include btrace.h.
8827 (struct target_ops) <to_supports_btrace, to_enable_btrace,
8828 to_disable_btrace, to_teardown_btrace, to_read_btrace>: New.
8829 * target.c (target_supports_btrace): New function.
8830 (target_enable_btrace): New function.
8831 (target_disable_btrace): New function.
8832 (target_teardown_btrace): New function.
8833 (target_read_btrace): New function.
8834 * btrace.h: New file.
8835 * btrace.c: New file.
8836 * Makefile.in: Add btrace.c.
8837 * gdbthread.h: Include btrace.h.
8838 (struct thread_info): Add btrace field.
8839 * thread.c: Include btrace.h.
8840 (clear_thread_inferior_resources): Call target_teardown_btrace.
8841 * common/btrace-common.h: New file.
8843 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8845 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Call also kill
8846 for CHILD, ignore PTRACE_KILL errors, move the inner block variable
8847 kill_status to outer block.
8849 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8851 Fix entry-values if the callee called a noreturn function.
8852 * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
8853 get_frame_address_in_block. Add new comment.
8855 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8857 Fix entry-values in C++ across CUs.
8858 * dwarf2loc.c (call_site_to_target_addr) <FIELD_LOC_KIND_PHYSNAME>: Use
8859 lookup_minimal_symbol. Add a comment.
8861 (read_call_site_scope) <is_ref_attr> <die_is_declaration>: Prefer
8864 2013-03-08 Yao Qi <yao@codesourcery.com>
8866 * tracepoint.c (_initialize_tracepoint): Indent the code.
8868 2013-03-08 Pedro Alves <palves@redhat.com>
8870 * findcmd.c (put_bits): Change type of parameter to 'gdb_byte *'.
8871 (parse_find_args, find_command): Change type of pattern buffer
8872 locals to 'gdb_byte *'.
8874 2013-03-08 Stan Shebs <stan@codesourcery.com>
8875 Hafiz Abid Qadeer <abidh@codesourcery.com>
8877 * NEWS: Mention set and show trace-buffer-size commands.
8879 * target.h (struct target_ops): New method
8880 to_set_trace_buffer_size.
8881 (target_set_trace_buffer_size): New macro.
8882 * target.c (update_current_target): Set up new method.
8883 * tracepoint.c (trace_buffer_size): New global.
8884 (start_tracing): Send it to the target.
8885 (set_trace_buffer_size): New function.
8886 (_initialize_tracepoint): Add new setshow for trace-buffer-size.
8887 * remote.c (remote_set_trace_buffer_size): New function.
8888 (_initialize_remote): Use it.
8889 (QTBuffer:size) New remote command.
8890 (PACKET_QTBuffer_size): New enum.
8891 (remote_protocol_features): Add an entry for
8892 PACKET_QTBuffer_size.
8894 2013-03-08 Tom Tromey <tromey@redhat.com>
8896 * remote-m32r-sdi.c (m32r_load): Call skip_spaces on correct
8899 2013-03-07 Pedro Alves <palves@redhat.com>
8901 * target.c (target_read_stralloc, target_fileio_read_alloc):
8902 *Cast pointer to 'gdb_byte *' in target call.
8904 2013-03-07 Pedro Alves <palves@redhat.com>
8906 * corefile.c (read_memory_string): Cast pointer to gdb_byte* in
8909 2013-03-07 Keith Seitz <keiths@redhat.com>
8911 * breakpoint.c (catch_syscall_split_args): Use skip_spaces.
8912 (trace_pass_command): Likewise.
8913 * cli/cli-cmds.c: Include cli/cli-utils.h.
8914 (source_command): Use skip-spaces.
8915 (disassemble_command): Likewise.
8916 * findcmd.c: Include cli/cli-utils.h.
8917 (parse_find_args): Use skip_spaces.
8918 * go32-nat.c: Include cli/cli-utils.h.
8919 (go32_sldt): Use skip_spaces.
8920 (go32_sgdt): Likewise.
8921 (go32_sidt): Likewise.
8922 (go32_pde): Likewise.
8923 (go32_pte): Likewise.
8924 (go32_pte_for_address): Likewise.
8925 * infcmd.c: Include cli/cli-utils.h.
8926 (registers_info): Use skip_spaces.
8927 * linux-tdep.c (read_mapping): Use skip_spaces_const.
8928 (linux_info_proc): Likewise.
8929 * linux-thread-db.c: Include cli/cli-utils.h.
8930 (info_auto_load_libthread_db): Use skip_spaces_const.
8931 * m32r-rom.c: Include cli/cli-utils.h.
8932 (m32r_upload_command): Use skip_spaces.
8933 * maint.c: Include cli/cli-utils.h.
8934 (maintenance_translate_address): Use skip_spaces.
8935 * mi/mi-parse.c: Include cli/cli-utils.h.
8936 (mi_parse_argv): Use skip_spaces.
8937 (mi_parse): Likewise.
8938 * minsyms.c: Include cli/cli-utils.h.
8939 (msymbol_hash_iw): Use skip_spaces_const.
8940 * objc-lang.c: Include cli/cli-utils.h.
8941 (parse_selector): Use skip_spaces.
8942 (parse_method): Likewise.
8943 * python/python.c: Include cli/cli-utils.h.
8944 (python_interactive_command)[HAVE_PYTHON]: Use skip_spaces.
8945 (python_command)[HAVE_PYTHON]: Likewise.
8946 (python_interactive_command)[!HAVE_PYTHON]: Likewise.
8947 * remote-m32r-sdi.c: Include cli/cli-utils.h.
8948 (m32r_load): Use skip_spaces.
8949 * serial.c: Include cli/cli-utils.h.
8950 (serial_open): Use skip_spaces_const.
8951 * stack.c: Include cli/cli-utils.h.
8952 (parse_frame_specification_1): Use skip_spaces_const.
8953 * symfile.c: Include cli/cli-utils.h.
8954 (set_ext_lang_command): Use skip_spaces.
8955 * symtab.c: Include cli/cli-utils.h.
8956 (rbreak_command): Use skip_spaces.
8957 * thread.c (thread_name_command): Use skip_spaces.
8958 * tracepoint.c (validate_actionline): Use skip_spaces.
8959 (encode_actions_1): Likewise.
8960 (trace_find_range_command): Likewise.
8961 (trace_find_outside_command): Likewise.
8962 (trace_dump_actions): Likewise.
8964 2013-03-07 Pedro Alves <palves@redhat.com>
8966 * c-lang.c (parse_one_string): Cast argument to gdb_byte *.
8967 * expprint.c (print_subexp_standard): Likewise.
8968 * utils.c (host_char_to_target): Likewise.
8969 * valprint.c (generic_emit_char, generic_printstr): Likewise.
8970 * varobj.c (value_get_print_value): Change type of local to char*.
8971 Cast it gdb_byte * in call to language printer.
8973 2013-03-07 Pedro Alves <palves@redhat.com>
8975 * charset.c (struct wchar_iterator) <input>: Change type to 'const
8977 (make_wchar_iterator): Remove cast to char*.
8978 (wchar_iterate): Change type of local.
8980 2013-03-07 Pedro Alves <palves@redhat.com>
8982 * regcache.c (regcache_xmalloc_1): Call XCALLOC with signed char
8983 for 'regcache->register_status'.
8985 2013-03-07 Pedro Alves <palves@redhat.com>
8987 * breakpoint.c (breakpoint_xfer_memory): Change type of local to
8990 2013-03-07 Pedro Alves <palves@redhat.com>
8992 * stap-probe.c (handle_stap_probe): Add cast to char*.
8994 2013-03-07 Pedro Alves <palves@redhat.com>
8996 * linux-record.c (record_linux_system_call) <gdb_sys_msgrcv,
8997 RECORD_MSGRCV>: Pass a signed variable to
8998 regcache_raw_read_signed, instead of an unsigned one.
9000 2013-03-07 Pedro Alves <palves@redhat.com>
9002 * remote-notif.c (notif_debug): Change type to int.
9003 * remote-notif.h (notif_debug): Likewise.
9005 2013-03-07 Pedro Alves <palves@redhat.com>
9007 * ser-tcp.c (tcp_retry_limit): Change type to unsigned int.
9009 2013-03-07 Pedro Alves <palves@redhat.com>
9011 * remote.c (hex2bin, bin2hex): Move extern declarations to ...
9012 * remote.h (hex2bin, bin2hex): ... here.
9013 * tracepoint.c (hex2bin, bin2hex): Remove extern declarations.
9015 2013-03-07 Eli Zaretskii <eliz@gnu.org>
9017 * utils.c (initialize_utils): Improve doc strings of "set/show
9018 width", "set/show height", and "set/show pagination".
9020 2013-03-06 Keith Seitz <keiths@redhat.com>
9022 * ax-gdb.c (gen_printf): Make FORMAT const.
9023 * ax-gdb.h (gen_printf): Likewise.
9024 * ax-general.c (ax_string): Make STR const.
9025 * ax.h (ax_string): Likewise.
9027 2013-03-06 Doug Evans <dje@google.com>
9029 * elfread.c (elf_symfile_read): Move debugging printf to more
9032 2013-03-06 Pedro Alves <palves@redhat.com>
9034 * python/py-utils.c (target_string_to_unicode): Delete function.
9035 * python/python-internal.h (target_string_to_unicode): Delete
9038 2013-03-06 Pierre Muller <muller@sourceware.org>
9040 * linespec.c (get_current_search_block): ARI fix, use (void)
9041 for empty parameter list.
9043 2013-03-05 Doug Evans <dje@google.com>
9045 * ada-lang.c (ada_lookup_symbol_list_worker): New function, contents
9046 of old ada_lookup_symbol_list. In !full_search case, don't
9048 (ada_lookup_symbol_list): Delete arg full_search, all callers
9049 updated. Call ada_lookup_symbol_list_worker.
9050 (ada_iterate_over_symbols): Call ada_lookup_symbol_list_worker.
9051 * ada-lang.h (ada_lookup_symbol_list): Update.
9052 * language.h (language_defn): Update comment for
9053 la_iterate_over_symbols.
9054 * linespec.c (iterate_over_file_blocks): New function.
9055 (iterate_over_all_matching_symtabs): Call it.
9056 (lookup_prefix_sym): Ditto.
9057 (get_current_search_block): New function.
9058 (get_search_block): Delete.
9059 (find_label_symbols): Call get_current_search_block.
9060 (add_matching_symbols_to_info): Call iterate_over_file_blocks.
9061 * symtab.c (iterate_over_symbols): Don't search superblocks.
9063 2013-03-05 Yao Qi <yao@codesourcery.com>
9065 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): Change
9066 parameter VAR's type from "unsigned int" to "int".
9067 * command.h (var_zuinteger_unlimited): Update its comments.
9068 (add_setshow_zuinteger_unlimited_cmd): Update the declaration.
9070 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
9072 * NEWS: Mention new target x86_64-*-cygwin*.
9074 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
9076 * configure.host: Add x86_64-*-cygwin* as host.
9077 * configure.tgt: Add x86_64-*-cygwin* as target.
9078 * config/i386/cygwin64.mh: New file.
9080 2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
9082 * linespec.c (decode_line_2): Fix duplicate request off by two message.
9084 2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
9086 * linespec.c (struct linespec_canonical_name): New.
9087 (struct linespec_state): Change canonical_names type to it.
9088 (add_sal_to_sals): Change variable canonical_name to canonical. Change
9089 xrealloc element size. Initialize the different CANONICAL fields.
9090 (canonical_to_fullform): New.
9091 (filter_results): Use it. Add variables canonical, fullform and
9093 (struct decode_line_2_item, decode_line_2_compare_items): New.
9094 (decode_line_2): Remove variables iter and item_names, add variables
9095 items and items_count. Modify the code for these new variables.
9097 2013-03-04 Corinna Vinschen <vinschen@redhat.com>
9099 * coff-pe-read.c (read_pe_exported_syms): Don't return without
9102 2013-03-04 Luis Machado <lgustavo@codesourcery.com>
9104 * tracepoint.c (build_traceframe_info): Add code for byte order.
9106 2013-03-02 Kevin Buettner <kevinb@redhat.com>
9108 * v850-tdep.c: (v850e2_register_name): Revise system register
9109 names to match current V850E2M architecture specifications.
9110 Update register number enum comments too.
9112 2013-03-01 Jiong Wang <jiwang@tilera.com>
9113 Pedro Alves <palves@redhat.com>
9115 * tilegx-tdep.c (tilegx_analyze_prologue): Limit bundle reading
9117 (tilegx_skip_prologue): Limit prologue analysis to section end.
9119 2013-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9121 * dwarf2loc.c (call_site_find_chain_1): New variable save_callee_pc,
9124 2013-03-01 Pedro Alves <palves@redhat.com>
9126 Use gdb_byte for bytes from the program being debugged.
9128 * arm-tdep.c (arm_store_return_value, arm_get_longjmp_target):
9129 Change type of local 'buf' to gdb_byte.
9130 * avr-tdep.c (avr_frame_prev_register, avr_push_dummy_call): Likewise.
9131 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
9132 * cris-tdep.c (cris_sigcontext_addr)
9133 (cris_sigtramp_frame_unwind_cache): Likewise.
9134 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp)
9135 (frv_linux_sigcontext_reg_addr, frv_linux_sigtramp_frame_cache):
9137 * frv-tdep.c (frv_pseudo_register_write, frv_analyze_prologue): Likewise.
9138 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer)
9139 (hppa32_hpux_search_dummy_call_sequence)
9140 (hppa_hpux_supply_save_state): Likewise.
9141 * hppa-linux-tdep.c (insns_match_pattern)
9142 (hppa_linux_find_global_pointer): Likewise.
9143 * hppa-tdep.c (hppa_in_function_epilogue_p)
9144 (skip_prologue_hard_way, hppa_frame_cache): Likewise.
9145 * i386-nto-tdep.c (i386nto_sigcontext_addr): Likewise.
9146 * i386fbsd-tdep.c (i386fbsd_supply_uthread)
9147 (i386fbsd_collect_uthread): Likewise.
9148 * ia64-hpux-tdep.c (ia64_hpux_push_dummy_code): Likewise.
9149 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Likewise.
9150 * ia64-tdep.c (examine_prologue, ia64_frame_cache)
9151 (ia64_frame_prev_register, ia64_sigtramp_frame_cache)
9152 (ia64_sigtramp_frame_prev_register, ia64_access_reg)
9153 (ia64_access_rse_reg, ia64_libunwind_frame_this_id)
9154 (ia64_libunwind_frame_prev_register)
9155 (ia64_libunwind_sigtramp_frame_this_id)
9156 (ia64_find_global_pointer_from_dynamic_section)
9157 (find_extant_func_descr, find_func_descr, ia64_dummy_id)
9158 (ia64_unwind_pc): Likewise.
9159 * iq2000-tdep.c (iq2000_store_return_value): Likewise.
9160 * m68hc11-tdep.c (m68hc11_push_dummy_call)
9161 (m68hc11_extract_return_value): Likewise.
9162 * m68klinux-nat.c (fetch_register, store_register): Likewise.
9163 * mep-tdep.c (mep_pseudo_cr32_read, mep_pseudo_cr32_write)
9164 (mep_get_insn, mep_push_dummy_call): Likewise.
9165 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
9166 (mips_linux_in_dynsym_stub): Likewise.
9167 * mn10300-tdep.c (mep_pseudo_cr32_write): Likewise.
9168 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
9169 * regcache.c (dump_endian_bytes): Change type of parameter 'buf'
9171 * remote-mips.c (mips_set_register): Likewise.
9172 * remote-sim.c (gdbsim_fetch_register): Likewise.
9173 * score-tdep.c (score7_fetch_inst): Change type of parameter
9174 'memblock' and local 'buf' to gdb_byte.
9175 (score7_malloc_and_get_memblock): Change return type to gdb_byte.
9176 Change type of local 'buf' to gdb_byte. Adjust.
9177 (score7_adjust_memblock_ptr): Change type of parameter 'memblock'
9179 (score7_analyze_prologue): Change type of 'memblock' and
9180 'memblock_ptr' locals to gdb_byte*.
9181 * sh64-tdep.c (sh64_extract_return_value)
9182 (sh64_store_return_value): Change type of local 'buf' to gdb_byte.
9183 * solib-darwin.c (darwin_current_sos, darwin_read_exec_load_addr):
9184 * solib-pa64.c (pa64_solib_create_inferior_hook)
9185 (pa64_open_symbol_file_object): Remove local 'buf'.
9186 * solib-som.c (som_solib_create_inferior_hook, link_map_start)
9187 (som_open_symbol_file_object): Likewise.
9188 * solib-spu.c (spu_current_sos): Likewise.
9189 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
9190 * spu-multiarch.c (parse_spufs_run, spu_fetch_registers)
9191 (spu_store_registers): Likewise.
9192 * target.c (debug_print_register): Likewise.
9193 * tic6x-tdep.c (tic6x_get_longjmp_target): Likewise.
9194 * xstormy16-tdep.c (xstormy16_store_return_value)
9195 (xstormy16_push_dummy_call, xstormy16_resolve_jmp_table_entry)
9196 (xstormy16_find_jmp_table_entry): Likewise.
9198 2013-03-01 Jiong Wang <jiwang@tilera.com>
9200 * tilegx-tdep.c (tilegx_get_longjmp_target): New function.
9201 (tilegx_gdbarch_init): Install it.
9203 2013-02-28 Tom Tromey <tromey@redhat.com>
9205 * python/py-arch.c (archpy_disassemble): Use PyInt_Check and
9208 2013-02-28 Doug Evans <dje@google.com>
9210 * python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
9211 * python/python.c (gdbpy_find_pc_line): Ditto.
9213 2013-02-28 Tom Tromey <tromey@redhat.com>
9215 * contrib/excheck.py: New file.
9216 * contrib/exsummary.py: New file.
9217 * contrib/gcc-with-excheck: New file.
9219 2013-02-28 Tom Tromey <tromey@redhat.com>
9221 * python/python.c (gdbpy_print_stack): Call begin_line and
9222 fprintf_filtered inside TRY_CATCH.
9224 2013-02-28 Tom Tromey <tromey@redhat.com>
9226 * python/python.c (gdbpy_find_pc_line): Call find_pc_line
9229 2013-02-28 Tom Tromey <tromey@redhat.com>
9231 * py-finishbreakpoint.c (bpfinishpy_init): Reorganize to call
9232 frame_object_to_frame_info inside TRY_CATCH.
9234 2013-02-28 Tom Tromey <tromey@redhat.com>
9236 * py-block.c (gdbpy_block_for_pc): Call block_for_pc inside
9239 2013-02-28 Tom Tromey <tromey@redhat.com>
9241 * objfiles.h (ALL_PSPACE_OBJFILES): Remove trailing backlash.
9243 2013-02-27 Corinna Vinschen <vinschen@redhat.com>
9245 * windows-nat.c: Throughout, fix format strings and casts of
9246 printf-like functions to avoid type related warnings on all
9248 (handle_output_debug_string): Fetch context information address
9249 from debug string using string_to_core_addr.
9251 2013-02-27 Jiong Wang <jiwang@tilera.com>
9253 * regformats/reg-tilegx.dat (name): Change abi name to "tilegx".
9254 * regformats/reg-tilegx32.dat: New.
9256 2013-02-27 Jiong Wang <jiwang@tilera.com>
9258 * configure.tgt (tilegx-*-linux*): Enable gdbserver.
9260 2013-02-27 Jiong Wang <jiwang@tilera.com>
9262 * configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
9264 2013-02-27 Yao Qi <yao@codesourcery.com>
9265 Pedro Alves <palves@redhat.com>
9267 * tracepoint.c (tfile_trace_find): For tfind
9268 pc/tp/range/outside, look for the next trace frame instead of
9269 always starting from frame 0.
9271 2013-02-26 Anthony Green <green@moxielogic.com>
9273 * configure.tgt: Add support for moxie-*-rtems* target.
9275 2013-02-25 Pedro Alves <palves@redhat.com>
9277 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
9280 2013-02-24 Maciej W. Rozycki <macro@codesourcery.com>
9282 * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
9283 if $fp is used as the virtual frame pointer.
9285 2013-02-23 Alan Modra <amodra@gmail.com>
9287 * elfread.c (elf_symtab_read): Do not use udata.p here to find
9289 * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
9290 * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
9291 * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
9292 * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
9294 2013-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
9297 * elfread.c (build_id_bfd_get): Make the return type const.
9298 (build_id_verify): Make the check parameter const.
9299 (build_id_to_debug_filename): Make the build_id parameter and variable
9301 (find_separate_debug_file_by_buildid): Make the variable build_id const.
9303 2013-02-21 Alan Modra <amodra@gmail.com>
9305 * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
9307 2013-02-20 Siva Chandra Reddy <sivachandra@google.com>
9309 Add a new method 'disassemble' to gdb.Architecture class.
9310 * python/py-arch.c (archpy_disassmble): Implementation of the
9311 new method gdb.Architecture.disassemble.
9312 (arch_object_methods): Add entry for the new method.
9314 2013-02-20 Jiong Wang <jiwang@tilera.com>
9316 * MAINTAINERS (Write After Approval): Add myself to the list.
9318 2013-02-19 Pedro Alves <palves@redhat.com>
9320 Garbage collect 'struct monitor_ops'::load_routine.
9322 * monitor.h (struct monitor_ops) <load_routine>: Remove field.
9323 * monitor.c (monitor_load): No longer call
9324 current_monitor->load_routine.
9325 * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
9326 * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
9327 * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
9329 2013-02-19 Pedro Alves <palves@redhat.com>
9333 Harmonize with generic_load.
9335 * monitor.c: Include "readline/readline.h".
9336 (monitor_load): Rename parameter 'file' to 'args'. Use build_argv
9337 instead of sscanf. Use CORE_ADDR/strtoulst instead of unsigned
9338 long/strtol for the 'load_offset' local. Error out if no argument
9339 is given or if too many arguments are given. Tilde expand the
9340 passed in file name.
9342 2013-02-19 Kai Tietz <ktietz@redhat.com>
9345 * symfile.c (load_section_data): Change type of load_offset
9347 (generic_load): User strtoulst instead of strtoul for conversion
9350 2013-02-19 Jiong Wang <jiwang@tilera.com>
9352 * tilegx-tdep.c (tilegx_analyze_prologue): add check for
9353 for return address, "lr" register, saved on stack.
9354 * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
9355 after we invoke tilegx_analyze_prologue.
9357 2013-02-19 Jiong Wang <jiwang@tilera.com>
9359 * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
9361 2013-02-19 Jiong Wang <jiwang@tilera.com>
9363 * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
9365 2013-02-19 Jiong Wang <jiwang@tilera.com>
9367 * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
9368 (tilegx_write_pc): New function.
9369 (tilegx_cannot_reference_register): Return zero if REGNO
9370 is TILEGX_FAULTNUM_REGNUM.
9371 (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
9372 (tilegx_register_name): Add handling of "faultnum" register.
9373 * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
9374 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
9375 handling of TILEGX_FAULTNUM_REGNUM.
9376 * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
9378 2013-02-19 Jiong Wang <jiwang@tilera.com>
9380 * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
9381 should be aligned to 64bit.
9383 2013-02-19 Kai Tietz <ktietz@redhat.com>
9385 * windows-nat.c (windows_xfer_memory): Fix debug-output
9388 2013-02-19 Lei Liu <lei.liu2@windriver.com>
9390 * mips-linux-nat.c (mips64_linux_regsets_store_registers):
9391 Don't check DSP register number if HAVE_DSP is not set.
9393 2013-02-19 Alan Modra <amodra@gmail.com>
9395 * elfread.c (struct build_id): Delete. Use struct elf_build_id
9396 throughout file instead.
9397 (build_id_bfd_get): Update to use new elf_tdata build_id field.
9398 Don't xmalloc return value.
9399 (build_id_verify): Similarly. Don't xfree.
9400 (build_id_to_debug_filename): Update.
9401 (find_separate_debug_file_by_buildid): Update, don't xfree.
9403 2013-02-18 Tom Tromey <tromey@redhat.com>
9406 * dwarf2read.c (read_subrange_type): Use result of
9409 2013-02-16 Yuanhui Zhang <asmwarrior@gmail.com>
9411 * frame.c: Remove one extra white space after #include
9414 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9416 * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
9418 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9420 * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
9421 and dir commands into an if block.
9423 2013-02-15 Sanimir Agovic <sanimir.agovic@intel.com>
9425 * python/py-breakpoint (struct pybp_code): Use int instead of
9428 2013-02-15 Pedro Alves <pedro@codesourcery.com>
9429 Hafiz Abid Qadeer <abidh@codesourcery.com>
9431 * NEWS: Mention new field "trace-file".
9432 * tracepoint.c (trace_status_mi): Output "trace-file" field.
9433 (tfile_open): Record the trace file's filename in the trace
9435 (tfile_files_info): Mention the name of the trace file.
9436 Check the "filename" field explicitely.
9437 (trace_status_command): Explicitely check "filename" field.
9438 (trace_find_command): Ditto.
9439 (trace_find_pc_command): Ditto.
9440 (trace_find_tracepoint_command): Ditto.
9441 (trace_find_line_command): Ditto.
9442 (trace_find_range_command): Ditto.
9443 (trace_find_outside_command): Ditto.
9444 * tracepoint.h (struct trace_status) <from_file>: Rename it
9445 to "filename" and make it hold the trace file's filename
9446 instead of a boolean.
9447 * remote.c (remote_get_trace_status): Initialize "filename"
9448 field with NULL instead of 0.
9450 2013-02-15 Yao Qi <yao@codesourcery.com>
9452 * remote.c: Fix a typo.
9454 2013-02-14 Pierre Muller <muller@sourceware.org>
9456 * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
9458 2013-02-14 Pedro Alves <palves@redhat.com>
9460 * utils.c (savestring): Don't #undef it. Move function to
9461 common/common-utils.c.
9462 * common/common-utils.c: Include gdb_string.h.
9463 (savestring): Move here from utils.c.
9464 * common/common-utils.h (savestring): Declare.
9466 2013-02-14 Pedro Alves <palves@redhat.com>
9468 * utils.c (savestring): Rename parameter 'size' to 'len'.
9470 2013-02-14 Pedro Alves <palves@redhat.com>
9471 Yufeng Zhang <yufeng.zhang@arm.com>
9473 * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
9474 (aarch64_inferior_data, struct aarch64_inferior_data):
9476 (struct aarch64_process_info): New.
9477 (aarch64_process_list): New global.
9478 (aarch64_find_process_pid, aarch64_add_process)
9479 (aarch64_process_info_get): New functions.
9480 (aarch64_inferior_data_get): Delete.
9481 (aarch64_process_info_get): New function.
9482 (aarch64_forget_process): New function.
9483 (aarch64_get_debug_reg_state): New parameter 'pid'. Reimplement.
9484 (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
9485 aarch64_get_debug_reg_state.
9486 (aarch64_notify_debug_reg_change): Use iterate_over_lwps
9487 instead of linux_nat_iterate_watchpoint_lwps.
9488 (aarch64_linux_new_fork): New function.
9489 (aarch64_linux_child_post_startup_inferior): Use
9490 aarch64_forget_process instead of aarch64_init_debug_reg_state.
9491 (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
9492 (aarch64_linux_remove_hw_breakpoint)
9493 (aarch64_handle_aligned_watchpoint)
9494 (aarch64_handle_unaligned_watchpoint)
9495 (aarch64_linux_insert_watchpoint)
9496 (aarch64_linux_remove_watchpoint)
9497 (aarch64_linux_stopped_data_address): Adjust to pass the current
9498 process id to aarch64_debug_reg_state.
9499 (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
9500 linux_nat_new_fork hook, and aarch64_forget_process as
9501 linux_nat_forget_process hook; remove the call to
9502 register_inferior_data_with_cleanup.
9504 2013-02-14 Pedro Alves <palves@redhat.com>
9506 * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
9507 EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
9510 2013-02-14 Pedro Alves <pedro@codesourcery.com>
9511 Hafiz Abid Qadeer <abidh@codesourcery.com>
9513 * tracepoint.h (validate_trace_state_variable_name): Declare.
9514 * tracepoint.c (validate_trace_state_variable_name): New.
9515 (trace_variable_command): Parse the trace state variable's name
9516 without using parse_expression. Do several validations.
9517 * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
9518 trace state variable's name with parse_expression. Validate it.
9520 2013-02-14 Yao Qi <yao@codesourcery.com>
9522 * infcmd.c (breakpoint_proceeded): Remove it.
9524 2013-02-14 Yao Qi <yao@codesourcery.com>
9526 * tracepoint.c (end_actions_pseudocommand): Make it static.
9527 (while_stepping_pseudocommand): Likewise.
9528 * tracepoint.h (end_actions_pseudocommand): Remove the
9530 (while_stepping_pseudocommand): Likewise.
9532 2013-02-14 Yao Qi <yao@codesourcery.com>
9534 * cli/cli-decode.c (help_cmd): Remove the declaration of
9536 (help_all): Likewise.
9538 2013-02-13 Pedro Alves <palves@redhat.com>
9540 * amd64-linux-nat.c (update_debug_registers_callback):
9542 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
9544 (amd64_linux_prepare_to_resume): Pass the lwp's pid to
9545 i386_debug_reg_state.
9546 (amd64_linux_new_fork): New function.
9547 (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
9548 linux_nat_new_fork hook, and i386_forget_process as
9549 linux_nat_forget_process hook.
9550 * i386-linux-nat.c (update_debug_registers_callback):
9552 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
9554 (i386_linux_prepare_to_resume): Pass the lwp's pid to
9555 i386_debug_reg_state.
9556 (i386_linux_new_fork): New function.
9557 (_initialize_i386_linux_nat): Install i386_linux_new_fork as
9558 linux_nat_new_fork hook, and i386_forget_process as
9559 linux_nat_forget_process hook.
9560 * i386-nat.c (i386_init_dregs): Delete.
9561 (i386_inferior_data, struct i386_inferior_data):
9563 (struct i386_process_info): New.
9564 (i386_process_list): New global.
9565 (i386_find_process_pid, i386_add_process, i386_process_info_get):
9567 (i386_inferior_data_get): Delete.
9568 (i386_process_info_get): New function.
9569 (i386_debug_reg_state): New parameter 'pid'. Reimplement.
9570 (i386_forget_process): New function.
9571 (i386_cleanup_dregs): Rewrite.
9572 (i386_update_inferior_debug_regs, i386_insert_watchpoint)
9573 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
9574 (i386_stopped_data_address, i386_insert_hw_breakpoint)
9575 (i386_remove_hw_breakpoint): Adjust to pass the current process id
9576 to i386_debug_reg_state.
9577 (i386_use_watchpoints): Don't register inferior data.
9578 * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
9580 (i386_forget_process): Declare.
9581 * linux-fork.c (delete_fork): Call linux_nat_forget_process.
9582 * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
9584 (linux_child_follow_fork): Don't call linux_nat_new_thread here.
9585 (add_initial_lwp): New, factored out from ...
9586 (add_lwp): ... this. Don't check the number of lwps before
9587 calling linux_nat_new_thread.
9588 (linux_nat_iterate_watchpoint_lwps): Delete.
9589 (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
9590 (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
9592 (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
9594 (linux_nat_kill, linux_nat_mourn_inferior): Call
9595 linux_nat_forget_process.
9596 (linux_nat_set_new_fork, linux_nat_set_forget_process)
9597 (linux_nat_forget_process): New functions.
9598 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
9600 (linux_nat_iterate_watchpoint_lwps): Delete declaration.
9601 (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
9603 (linux_nat_set_new_fork, linux_nat_set_forget_process)
9604 (linux_nat_forget_process): New declarations.
9606 * amd64fbsd-nat.c (super_mourn_inferior): New global.
9607 (amd64fbsd_mourn_inferior): New function.
9608 (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
9609 * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
9611 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
9613 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
9616 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
9618 * aarch64-linux-nat.c (debug_reg_change_callback)
9619 (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
9622 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
9624 * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
9627 2013-02-13 Pedro Alves <palves@redhat.com>
9628 Hafiz Abid Qadeer <abidh@codesourcery.com>
9630 * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
9632 2013-02-12 Tom Tromey <tromey@redhat.com>
9635 * c-exp.y (lex_one_token): Initialize other fields of yylval on
9637 (classify_inner_name): Remove 'first_name' argument, add
9638 'context'. Remove unused variable.
9639 (yylex): Explicitly maintain the context type. Exit loop earlier
9640 if NAME result is seen.
9642 2013-02-12 Pedro Alves <palves@redhat.com>
9644 * amd64-darwin-tdep.c: Add (C) after Copyright.
9645 * cli/cli-cmds.h: Ditto.
9646 * cli/cli-decode.c: Ditto.
9647 * cli/cli-decode.h: Ditto.
9648 * cli/cli-dump.c: Ditto.
9649 * cli/cli-dump.h: Ditto.
9650 * cli/cli-interp.c: Ditto.
9651 * cli/cli-logging.c: Ditto.
9652 * cli/cli-script.c: Ditto.
9653 * cli/cli-script.h: Ditto.
9654 * cli/cli-setshow.c: Ditto.
9655 * cli/cli-setshow.h: Ditto.
9656 * cli/cli-utils.c: Ditto.
9657 * cli/cli-utils.h: Ditto.
9658 * config/alpha/nm-osf3.h: Ditto.
9659 * config/djgpp/djconfig.sh: Ditto.
9660 * config/i386/nm-fbsd.h: Ditto.
9661 * config/i386/nm-i386gnu.h: Ditto.
9662 * config/nm-linux.h: Ditto.
9663 * config/nm-nto.h: Ditto.
9664 * config/rs6000/nm-rs6000.h: Ditto.
9665 * config/sparc/nm-sol2.h: Ditto.
9666 * darwin-nat-info.c: Ditto.
9669 * gdb-demangle.h: Ditto.
9670 * i386-darwin-nat.c: Ditto.
9671 * i386-darwin-tdep.c: Ditto.
9672 * linux-fork.h: Ditto.
9673 * m32c-tdep.c: Ditto.
9674 * microblaze-linux-tdep.c: Ditto.
9675 * microblaze-rom.c: Ditto.
9676 * microblaze-tdep.c: Ditto.
9677 * microblaze-tdep.h: Ditto.
9678 * mips-linux-tdep.h: Ditto.
9679 * ppc-ravenscar-thread.c: Ditto.
9680 * ppc-ravenscar-thread.h: Ditto.
9681 * prologue-value.c: Ditto.
9682 * prologue-value.h: Ditto.
9683 * ravenscar-thread.c: Ditto.
9684 * ravenscar-thread.h: Ditto.
9685 * sparc-ravenscar-thread.c: Ditto.
9686 * sparc-ravenscar-thread.h: Ditto.
9687 * tilegx-linux-tdep.c: Ditto.
9688 * unwind_stop_reasons.def: Ditto.
9689 * windows-nat.h: Ditto.
9690 * xtensa-linux-tdep.c: Ditto.
9691 * xtensa-xtregs.c: Ditto.
9692 * regformats/regdat.sh: Ditto.
9693 * regformats/regdef.h: Ditto.
9695 2013-02-12 Pedro Alves <palves@redhat.com>
9697 * break-catch-sig.c: Update copyright years.
9699 2013-02-11 Siva Chandra Reddy <sivachandra@google.com>
9701 Add support for a destructor for ui_out data and use it to
9702 provide a ui_out destructor.
9703 * ui-out.h: Declare the new ui_out destructor.
9704 (ui_out_impl): Add a field for data destructor in ui_out_impl.
9705 * ui-out.c (default_data_destroy): Add a default data destructor
9707 (default_ui_out_impl): Set the new data_destroy field to
9708 default_data_destroy
9709 (uo_data_destroy): Local function which invokes the data
9710 destructor if present.
9711 (clear_table): Local function which clears the table data of a
9713 (ui_out_destroy): Public function which frees a ui_out object.
9714 (ui_out_table_end): Use the new clear_table function.
9715 * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
9717 * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
9720 2013-02-11 Doug Evans <dje@google.com>
9722 * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
9723 (printf_decfloat): New function. Broken out from ui_printf.
9724 Remove unnecessary code to shift the entire format string down.
9725 (printf_pointer): New function.
9726 (ui_printf): Code to print C strings, wide C strings, decfloats,
9727 and pointers moved to separate functions.
9729 2013-02-11 Sergio Durigan Junior <sergiodj@redhat.com>
9731 * valops.c (value_assign): Handling bitfield offset in
9732 `lval_internalvar_component' case.
9734 2013-02-08 Doug Evans <dje@google.com>
9736 * common/format.c (parse_format_string): Fix whitespace.
9738 2013-02-08 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
9740 * stack.c (return_command): Work around uninitialized variable
9743 2013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
9745 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
9746 number of the registers from 36 to 34.
9748 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
9750 * NEWS: Mention new AArch64 native and target support.
9752 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
9754 * MAINTAINERS (Write After Approval): Add myself.
9756 2013-02-08 Jim MacArthur <jim.macarthur@arm.com>
9757 Marcus Shawcroft <marcus.shawcroft@arm.com>
9758 Nigel Stephens <nigel.stephens@arm.com>
9759 Yufeng Zhang <yufeng.zhang@arm.com>
9761 * aarch64-linux-nat.c: New file.
9762 * config/aarch64/linux.mh: New file.
9763 * configure.host: Add AArch64.
9764 * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
9766 2013-02-07 Doug Evans <dje@google.com>
9768 * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
9769 disassemble command.
9771 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
9773 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
9774 set_gdbarch_fetch_tls_load_module_address.
9776 2013-02-06 David S. Miller <davem@davemloft.net>
9778 * sparc-tdep.c (sparc32_return_value): Handle writing return value when
9779 using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
9780 * value.c (struct_return_convention): New function.
9781 (using_struct_return): Implement in terms of struct_return_convention.
9782 * value.h (struct_return_convention): Declare.
9783 * stack.c (return_command): Allow successful overriding of the return
9784 value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
9786 2013-02-06 Tom Tromey <tromey@redhat.com>
9788 * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
9789 outside of TRY_CATCH.
9791 2013-02-06 Yao Qi <yao@codesourcery.com>
9793 * mi/mi-interp.c: Include "tracepoint.h".
9794 (mi_tsv_modified): Declare.
9795 (mi_tsv_created, mi_tsv_deleted): Update declaration.
9796 (mi_interpreter_init): Call observer_attach_tsv_modified.
9797 (mi_tsv_modified): New.
9798 (mi_tsv_created, mi_tsv_deleted): Update.
9799 * tracepoint.c (trace_variable_command): Call
9800 observer_notify_tsv_modified if the initial value of tsv is
9802 (delete_trace_state_variable): Call
9803 observer_notify_tsv_deleted earlier.
9804 (trace_variable_command): Caller update.
9805 (create_tsv_from_upload): Likewise.
9806 * observer.sh: Declare "struct trace_state_variable".
9808 * NEWS: Mention the new MI notification "=tsv-modified".
9810 2013-02-05 Doug Evans <dje@google.com>
9812 * completer.c (location_completer): Fix typo in comment.
9814 2013-02-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9816 * breakpoint.c (add_location_to_breakpoint): Insert the location with
9819 2013-02-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
9821 * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
9822 Refactor if statement to avoid trailing || operator.
9824 2013-02-05 Andreas Tobler <andreast@fgznet.ch>
9826 * NEWS: Add PowerPC FreeBSD as a new native configuration.
9828 2013-02-04 Andreas Tobler <andreast@fgznet.ch>
9830 * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
9831 * configure.host: Add powerpc*-*-freebsd* target.
9832 * configure.tgt: Add target info for powerpc*-*-freebsd*.
9833 * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
9834 * config/powerpc/fbsd.mh: New file.
9836 2013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
9837 Denys Vlasenko <dvlasenk@redhat.com>
9838 Pedro Alves <palves@redhat.com>
9840 * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
9841 (struct elf_internal_linux_prpsinfo): Forward declare.
9842 * gdbarch.h, gdbarch.c: Regenerate.
9843 * linux-tdep.c: Include `cli/cli-utils.h'.
9844 (linux_fill_prpsinfo): New function.
9845 (linux_make_corefile_notes): Use linux_fill_prpsinfo. If there's
9846 an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
9847 elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
9848 depending on gdbarch pointer bitness.
9849 * ppc-linux-tdep.c: Include elf-bfd.h.
9850 (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
9853 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
9854 Marcus Shawcroft <marcus.shawcroft@arm.com>
9855 Nigel Stephens <nigel.stephens@arm.com>
9856 Yufeng Zhang <yufeng.zhang@arm.com>
9858 * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
9860 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
9861 Marcus Shawcroft <marcus.shawcroft@arm.com>
9862 Nigel Stephens <nigel.stephens@arm.com>
9863 Yufeng Zhang <yufeng.zhang@arm.com>
9865 * aarch64-newlib-tdep.c: New file.
9866 * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
9868 * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
9869 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
9870 (ALLDEPFILES): Add aarch64-newlib-tdep.c.
9871 * osabi.c (gdb_osabi_names): Add "Newlib".
9873 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
9874 Marcus Shawcroft <marcus.shawcroft@arm.com>
9875 Nigel Stephens <nigel.stephens@arm.com>
9876 Yufeng Zhang <yufeng.zhang@arm.com>
9878 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
9879 (ALLDEPFILES): Add aarch64-linux-tdep.c.
9880 * aarch64-linux-tdep.c: New file.
9881 * aarch64-linux-tdep.h: New file.
9882 * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
9883 * configure.tgt: Add aarch64-none-linux-gnu.
9885 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
9886 Marcus Shawcroft <marcus.shawcroft@arm.com>
9887 Nigel Stephens <nigel.stephens@arm.com>
9888 Yufeng Zhang <yufeng.zhang@arm.com>
9890 * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
9891 (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
9892 (ALLDEPFILES): Add aarch64-tdep.c.
9893 * aarch64-tdep.c: New file.
9894 * aarch64-tdep.h: New file.
9895 * configure.tgt: Add AArch64.
9896 * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
9897 (aarch64-expedite): New definition.
9898 * features/aarch64-core.xml: New file.
9899 * features/aarch64-fpu.xml: New file.
9900 * features/aarch64-without-fpu.c: New file (generated).
9901 * features/aarch64-without-fpu.xml: New file.
9902 * features/aarch64.c: New file (generated).
9903 * features/aarch64.xml: New file.
9904 * regformats/aarch64-without-fpu.dat: New file (generated).
9905 * regformats/aarch64.dat: New file (generated).
9907 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9909 * contrib/expect-read1.c: New file.
9910 * contrib/expect-read1.sh: New file.
9912 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9914 * dwarf2read.c (file_file_name): New function with code from
9916 (file_full_name): Move most of the code to file_file_name.
9917 (macro_start_file): Rename variable full_name to file_name and use
9918 file_file_name for it. Add comp_dir parameter to new_macro_table.
9919 * macrocmd.c (show_pp_source_pos): New variable fullname. Replace any
9920 macro_source_file->filename access by macro_source_fullname call.
9921 * macroscope.c (_initialize_macroscope): Update the new_macro_table
9923 * macrotab.c (struct macro_table): New field comp_dir.
9924 (macro_include): New variables link_fullname and source_fullname.
9925 Replace any macro_source_file->filename access by macro_source_fullname
9927 (macro_lookup_inclusion): Remove the partial filenames checking code.
9928 (check_for_redefinition): New variables source_fullname and
9929 found_key_fullname. Replace any macro_source_file->filename access by
9930 macro_source_fullname call.
9931 (macro_undef): New variables source_fullname and key_fullname. Replace
9932 any macro_source_file->filename access by macro_source_fullname call.
9933 (macro_lookup_definition): New variables retval and source_fullname.
9934 Replace any macro_source_file->filename access by macro_source_fullname
9936 (foreach_macro): New variable key_fullname. Replace any
9937 macro_source_file->filename access by macro_source_fullname call.
9938 (foreach_macro_in_scope): New variable datum_fullname. Replace any
9939 macro_source_file->filename access by macro_source_fullname call.
9940 (new_macro_table): Add parameter comp_dir. Initialize T with it.
9941 (macro_source_fullname): New function.
9942 * macrotab.h (struct macro_source_file): Extent the filename field
9944 (new_macro_table): New parameter comp_dir, add a comment for it.
9945 (macro_source_fullname): new declaration.
9947 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9949 * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
9950 this_real_name to outer block. Use it also for
9951 compare_filenames_for_search.
9952 (dw2_expand_symtabs_matching): New variable this_real_name. Use it
9953 with dw2_get_real_path for file_matcher, considering also
9954 BASENAMES_MAY_DIFFER.
9955 (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
9957 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9959 * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
9960 to the file_matcher parameter. Pass 0 to it.
9961 (dwarf2_create_include_psymtab): Copy also DIRNAME.
9962 * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
9963 NULL psymtab_to_fullname result.
9964 (psymtab_to_fullname): Remove variable r. Never return NULL, assemble
9965 an expected filename instead.
9966 (expand_symtabs_matching_via_partial): Add basenames parameter to the
9967 file_matcher parameter. Call also psymtab_to_fullname, after newly
9968 considering BASENAMES_MAY_DIFFER.
9969 * source.c (rewrite_source_path): Remove static.
9970 * source.h (rewrite_source_path): New declaration.
9971 * symfile.h (struct quick_symbol_functions): Add basenames parameter to
9972 the expand_symtabs_matching field. Comment it.
9973 * symtab.c (file_matches): New function comment. Add parameter
9974 basenames, implement it.
9975 (search_symbols_file_matches): Add basenames parameter. Update the
9976 file_matches caller.
9977 (search_symbols): Match FILES also against symtab_to_fullname.
9978 Optimize it for BASENAMES_MAY_DIFFER.
9980 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9982 * source.c (print_source_lines_base): Print for TUI also "fullname".
9983 * tui/tui-data.c (init_content_element): Change tui_locator_element
9985 * tui/tui-data.h (struct tui_locator_element): Likewise.
9986 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
9987 tui_update_locator_filename calls to tui_update_locator_fullname.
9988 Replace symtab->filename refererence by symtab_to_fullname call.
9989 * tui/tui-out.c (tui_field_string): Check for "fullname" now.
9990 * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
9991 field to full_name. Replace symtab->filename refererence by
9992 symtab_to_fullname call.
9993 (tui_show_symtab_source): Rename parameter to fullname. Change
9994 tui_locator_element field to full_name.
9995 * tui/tui-stack.c: Include source.h.
9996 (tui_set_locator_filename): Rename the declaration to ...
9997 (tui_set_locator_fullname): ... here. Rename its parameter to
9998 fullname, updates its comment.
9999 (tui_set_locator_info): Rename its parameter to fullname.
10000 (tui_set_locator_filename): Rename the definition to ...
10001 (tui_set_locator_fullname): ... here. Rename its parameter to
10002 fullname, updates its comment. Change tui_locator_element field to
10004 (tui_set_locator_info): Rename its parameter to fullname.
10005 (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
10006 (tui_update_locator_filename): Rename to ...
10007 (tui_update_locator_fullname): ... here. Rename callee to
10008 tui_set_locator_fullname.
10009 (tui_show_frame_info): Replace symtab->filename refererence by
10010 symtab_to_fullname call.
10011 * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
10012 (tui_update_locator_fullname): ... here.
10013 * tui/tui-winsource.c (tui_display_main): Rename the callee to
10014 tui_update_locator_fullname. Replace symtab->filename refererence by
10015 symtab_to_fullname call.
10016 * tui/tui.c (tui_show_source): Rename its parameter to fullname.
10017 Rename the callee to tui_update_locator_fullname.
10018 * tui/tui.h (tui_show_source): Rename its parameter to fullname.
10020 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10022 * ada-lang.c (user_select_syms): Replace symtab->filename refererences
10023 by symtab_to_filename_for_display calls.
10024 * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
10025 (clear_command): New variable sal_fullname, initialize it. Replace
10026 compare_filenames_for_search by filename_cmp with sal_fullname.
10027 (say_where, update_static_tracepoint): Replace symtab->filename
10028 refererences by symtab_to_filename_for_display calls.
10029 * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
10031 * dwarf2read.c: Include source.h.
10032 (fixup_go_packaging): Replace symtab->filename refererences by
10033 symtab_to_filename_for_display calls.
10034 * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
10035 Replace symtab->filename refererences by symtab_to_filename_for_display
10037 (create_sals_line_offset, convert_linespec_to_sals): New variable
10038 fullname, initialize it, replace symtab->filename reference by the
10040 * linux-fork.c: Include source.h.
10041 (info_checkpoints_command): Replace symtab->filename refererences by
10042 symtab_to_filename_for_display calls.
10043 * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
10044 by symtab_to_filename_for_display calls.
10045 * mdebugread.c: Include source.h.
10046 (psymtab_to_symtab_1): Replace symtab->filename refererences by
10047 symtab_to_filename_for_display calls.
10048 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
10049 (mi_cmd_file_list_exec_source_files): Likewise.
10050 * printcmd.c: Include source.h.
10051 (build_address_symbolic): Replace symtab->filename refererences by
10052 symtab_to_filename_for_display calls.
10053 * psymtab.c (partial_map_symtabs_matching_filename)
10054 (read_psymtabs_with_fullname): Call compare_filenames_for_search also
10055 with psymtab_to_fullname.
10056 * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
10057 by symtab_to_filename_for_display calls.
10058 (stpy_get_filename): New variable filename, initialize it, use instead
10059 of symtab->filename refererences.
10060 (salpy_str): Make variable filename const char *. Replace
10061 symtab->filename refererences by symtab_to_filename_for_display calls.
10062 * skip.c: Include source.h and filenames.h.
10063 (skip_file_command): Remove const from the symtab variable. Replace
10064 symtab->filename refererences by symtab_to_fullname call.
10065 (function_name_is_marked_for_skip): New variables searched_for_fullname
10066 and fullname. Use them to search also with symtab's fullname.
10067 * source.c (find_source_lines): Replace symtab->filename refererences
10068 by symtab_to_filename_for_display calls.
10069 (print_source_lines_base): New variable filename, use it instead of
10070 symtab->filename. Replace symtab->filename refererences by
10071 symtab_to_filename_for_display calls.
10072 (line_info, forward_search_command): Replace symtab->filename
10073 refererences by symtab_to_filename_for_display calls.
10074 (reverse_search_command): Replace symtab->filename refererences by
10075 symtab_to_filename_for_display calls. New variable filename for it.
10076 * stack.c (frame_info): Likewise.
10077 * symmisc.c: Include source.h.
10078 (dump_objfile, dump_symtab_1, maintenance_print_symbols)
10079 (maintenance_info_symtabs): Replace symtab->filename refererences by
10080 symtab_to_filename_for_display calls.
10081 * symtab.c (iterate_over_some_symtabs): Call
10082 compare_filenames_for_search also with symtab_to_fullname.
10083 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
10084 symtab->filename refererences by symtab_to_filename_for_display calls.
10085 (find_line_symtab): Replace symtab->filename refererences by
10086 symtab_to_filename_for_display calls.
10087 (file_matches): Replace filename_cmp by compare_filenames_for_search.
10088 (print_symbol_info): Make the last parameter const char *. New
10089 variable s_filename. Use it in the function.
10090 (symtab_symbol_info): Make the last_filename variable const char *.
10091 Replace symtab->filename refererences by symtab_to_filename_for_display
10093 (rbreak_command): New variable fullname. Use it. Replace
10094 symtab->filename refererence by symtab_to_filename_for_display call.
10095 * tracepoint.c (set_traceframe_context, trace_find_line_command)
10096 (print_one_static_tracepoint_marker): Replace symtab->filename
10097 refererences by symtab_to_filename_for_display calls.
10098 * tui/tui-source.c (tui_set_source_content): New variables filename and
10099 s_filename. Replace symtab->filename refererences by this variable.
10100 Replace other symtab->filename refererences by
10101 symtab_to_filename_for_display calls.
10103 2013-02-03 Eldar Gaynetdinov <hal9000ed2k@gmail.com>
10104 Jan Kratochvil <jan.kratochvil@redhat.com>
10106 Add a new variable that controls a way in which filenames are
10108 * NEWS (set filename-display): New entry.
10109 * source.c (filename_display_basename, filename_display_relative)
10110 (filename_display_absolute, filename_display_kind_names)
10111 (filename_display_string, show_filename_display_string)
10112 (symtab_to_filename_for_display): New.
10113 (_initialize_source): Added initialization of 'filename-display'
10115 * source.h (symtab_to_filename_for_display): Added declaration.
10116 * stack.c (print_frame): Added new variable and calling of a new
10117 function and condition with this variable. Changed third argument of
10118 calling of a function.
10120 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10122 * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
10123 Rename field reference filename to fullname.
10124 * tui/tui-data.h (struct tui_source_info): Rename field filename to
10125 fullname. New comment for it.
10126 * tui/tui-source.c (tui_set_source_content): Rename field reference
10127 filename to fullname. Initialize field by symtab_to_fullname now.
10128 * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
10129 reference filename to fullname. Use symtab_to_fullname during
10132 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10135 * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
10136 (dw2_expand_symtabs_with_fullname): ... here. Rename parameter
10137 filename to fullname. Rename variable this_name to this_fullname.
10138 Lowercase FILENAME_CMP call.
10139 (dw2_find_symbol_file): New comment for the returned string.
10140 (dwarf2_gdb_index_functions): Rename the function to
10141 dw2_expand_symtabs_with_fullname.
10142 * psymtab.c (read_psymtabs_with_filename): Rename to ...
10143 (read_psymtabs_with_fullname): ... here. Rename parameter filename to
10145 (psym_functions): Rename the function to read_psymtabs_with_fullname.
10146 * symfile.h (struct quick_symbol_functions): Rename field
10147 expand_symtabs_with_filename to expand_symtabs_with_fullname and its
10148 parameter filename to fullname. Document returned string meaning for
10150 * symtab.c (find_line_symtab): Rename the called function to
10151 expand_symtabs_with_fullname.
10153 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10156 * breakpoint.c (clear_command): Remove variable is_abs, unify the
10157 call of filename_cmp with compare_filenames_for_search.
10158 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
10159 is_abs, unify the call of FILENAME_CMP with
10160 compare_filenames_for_search. New gdb_asserts for real_path and name.
10161 Unify the call of compare_filenames_for_search with FILENAME_CMP.
10162 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
10163 * symfile.h (struct quick_symbol_functions): Extend the comment for
10164 map_symtabs_matching_filename.
10165 * symtab.c (compare_filenames_for_search): Remove the function comment
10166 relative path requirement. Handle absolute filenames, with a comment.
10167 (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
10168 FILENAME_CMP with compare_filenames_for_search. New gdb_asserts for
10169 real_path and name. Unify the call of compare_filenames_for_search
10171 (iterate_over_symtabs): New gdb_assert on REAL_PATH.
10173 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10176 * breakpoint.c (print_breakpoint_location): Replace bp_location field
10177 source_file references by symtab field references. Remove variables
10179 (momentary_breakpoint_from_master, add_location_to_breakpoint):
10180 (clear_command, say_where): Replace bp_location field source_file
10181 references by symtab field references.
10182 (bp_location_dtor): Remove the source_file reference.
10183 (update_static_tracepoint): Replace bp_location field source_file
10184 references by symtab field references.
10185 (breakpoint_free_objfile): New function.
10186 * breakpoint.h (struct bp_location): Extend the comment for line_number.
10187 Replace the field source_file by field symtab, extend its comment.
10188 (breakpoint_free_objfile): New declaration.
10189 * objfiles.c (free_objfile): Call breakpoint_free_objfile.
10190 * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
10191 field source_file references by symtab field references.
10193 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10195 Replace xfullpath calls by gdb_realpath calls.
10196 * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
10198 * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
10199 Remove it from the iterate_over_some_symtabs call.
10200 (dw2_map_symtabs_matching_filename): Remove parameter full_path.
10201 Remove it from the dw2_map_expand_apply calls, remove a block handling
10203 * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
10204 Remove it from the iterate_over_some_symtabs call.
10205 (partial_map_symtabs_matching_filename): Remove parameter full_path.
10206 Remove it from the partial_map_expand_apply calls, remove a block
10207 handling it. Drop gdb_realpath call and cleanups from the real_path
10209 * source.c (openp): Drop the comment part about xfullpath. Replace
10210 xfullpath calls by gdb_realpath calls.
10211 (find_and_open_source): Replace xfullpath call by gdb_realpath call.
10212 * symfile.h (struct quick_symbol_functions): Remove parameter full_path
10213 from method map_symtabs_matching_filename and its comment.
10214 * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
10216 * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
10217 remove it also from the function comment, remove a block handling it.
10218 Drop gdb_realpath call and cleanups from the real_path handling.
10219 (iterate_over_symtabs): Drop variable full_path and its use.
10220 * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
10221 * utils.c (xfullpath): Remove.
10222 * utils.h (xfullpath): Remove.
10224 2013-02-01 Andreas Tobler <andreast@fgznet.ch>
10226 * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
10227 (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
10228 (ALLDEPFILES): Add ppc64-tdep.c.
10229 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
10230 ppc64-tdep.o to gdb_target_obs.
10231 * ppc64-tdep.h: New file.
10232 * ppc64-tdep.c: New file.
10233 (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
10234 ppc-linux-tdep.c to here.
10235 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
10236 (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
10237 (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
10238 (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
10239 from ppc-linux-tdep.c to here.
10240 (ppc64_convert_from_func_ptr_addr): Rename from
10241 ppc64_linux_convert_from_func_ptr_addr to
10242 ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
10245 (read_insn): Move from ppc-linux-tdep.c to here.
10246 (insns_match_pattern, insn_d_field, insn_ds_field): Move
10247 from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
10248 * ppc-linux-tdep.c: Include ppc64-tdep.h.
10249 Removed above functions.
10250 (ppc_linux_init_abi): Adjust.
10252 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
10254 * ada-valprint.c (ada_print_floating): Remove unused 'len'.
10256 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
10258 * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
10260 2013-02-01 Pedro Alves <palves@redhat.com>
10262 * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
10263 * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
10265 2013-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10267 * elfread.c (elf_symfile_read): Limit separate debug info additions to
10268 files with no separate debug info.
10269 * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
10270 * symfile.c (read_symbols): Call find_separate_debug_file_in_section
10271 only for files with no separate debug info.
10273 2013-01-31 Tom Tromey <tromey@redhat.com>
10275 * jit.c (jit_program_space_data): Rename from jit_inferior_data;
10277 (struct jit_program_space_data): Rename from jit_inferior_data.
10279 (get_jit_program_space_data): Rename from get_jit_inferior_data.
10280 Change return type. Attach data to program space.
10281 (jit_program_space_data_cleanup): Rename from
10282 jit_inferior_data_cleanup; change argument type.
10283 (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
10285 (jit_register_code): Update.
10286 (jit_update_inferior_cache): Remove.
10287 (jit_breakpoint_deleted): Get jit data from the location's program
10289 (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
10290 'ps_data', change type.
10291 (jit_inferior_init, jit_breakpoint_re_set_internal)
10292 (jit_event_handler): Update.
10293 (free_objfile_data): Get data from objfile's program space.
10294 (_initialize_jit): Update.
10296 2013-01-31 Tom Tromey <tromey@redhat.com>
10299 * jit.c (struct jit_inferior_data) <cached_code_address,
10300 jit_breakpoint>: New fields.
10301 (jit_breakpoint_re_set_internal): Fix logging. Only create
10302 breakpoint if cached address has changed.
10303 (jit_update_inferior_cache, jit_breakpoint_deleted): New
10305 (_initialize_jit): Register breakpoint deleted observer.
10307 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10309 * infrun.c (handle_syscall_event): Remove unused gdbarch.
10310 (save_infcall_suspend_state): Ifdef out unused inf.
10311 (restore_infcall_suspend_state): Ifdef out unused inf.
10312 * jit.c (jit_register_code): Remove unused i, b, inf_data.
10313 (jit_frame_sniffer): Remove unused inf_data.
10315 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10317 * c-exp.y (classify_inner_name): Remove unused type.
10318 * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
10319 in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
10321 (c_get_string): Remove unused kind.
10322 * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
10324 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10326 * charset.c (intermediate_encoding): Remove unused i.
10327 * completer.c (signal_completer): Remove unused i.
10328 * continuations.c (discard_my_continuations_1): Remove unused
10330 * corelow.c (core_close): Remove unuseD name.
10331 (get_core_siginfo): Remove unused pid.
10332 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
10334 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
10335 (loclist_describe_location): Remove unused first.
10336 * event-top.c (command_line_handler): Remove unused got_eof.
10337 * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
10338 (resize_section_table): Remove unused old_value.
10339 * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
10340 * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
10341 * i386-tdep.c (i386_process_record): Remove unused rex.
10342 * infcmd.c (get_return_value): Remove unused uiout.
10343 * jv-lang.c (type_from_class): Remove unused is_array.
10344 * jv-valprint.c (java_val_print): Remove unused i.
10345 * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
10346 * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
10347 * m2-typeprint.c (m2_print_type): Remove unused code.
10348 * macroexp.c (get_character_constant): Remove unused body_start.
10349 (macro_stringify): Remove unused result.
10350 * objc-lang.c (find_methods): Remove unused gdbarch.
10351 * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
10352 * regcache.c (regcache_cooked_read): Remove unused gdbarch.
10353 * stack.c (print_frame_args): Remove unused summary.
10354 * thread.c (thread_apply_command): Remove unused p.
10355 * valarith.c (value_x_unop): Remove unused mangle_ptr.
10356 * valops.c (search_struct_method): Remove unused skip.
10357 * valprint.c (generic_val_print): Remove unused byte_order.
10358 * varobj.c (varobj_update): Remove unused changed.
10359 * cli/cli-cmds.c (complete_command): Remove unused next_item.
10360 (alias_command): Remove unused c.
10361 * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
10362 * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
10364 (mi_cmd_data_write_memory): Remove unused word_format.
10365 (mi_cmd_data_write_memory_bytes): Remove unused r.
10366 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
10368 * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
10369 * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
10372 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10374 * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
10375 * symtab.c (iterate_over_symtabs): Remove unused s.
10376 (find_pc_sect_symtab): Remove unused pspAce.
10377 (find_pc_sect_line): Remove unused alt_symtab.
10378 (find_pcs_for_symtab_line): Remove unused ix, previous_function.
10379 (completion_list_add_name): Remove unused newsize.
10381 2013-01-31 Tom Tromey <tromey@redhat.com>
10384 * dwarf2read.c (read_tag_ptr_to_member_type): Handle
10387 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10389 * target.c (target_read_string): Remove unused origlen.
10391 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10393 * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
10394 * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
10395 * ax-general.c (ax_print): Remove unused is_float.
10396 * blockframe.c (block_innermost_frame): Remove unused start, end.
10397 * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
10399 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
10401 * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
10402 (svr4_read_so_list): Remove unused lmo.
10403 * solib-target.c (solib_target_relocate_section_addresses): Remove
10406 2013-01-30 Tom Tromey <tromey@redhat.com>
10408 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
10410 2013-01-30 Tom Tromey <tromey@redhat.com>
10412 * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
10413 * utils.c (gnu_debuglink_crc32): Remove.
10414 * utils.h (gnu_debuglink_crc32): Don't declare.
10416 2013-01-30 Tom Tromey <tromey@redhat.com>
10418 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
10419 (read_structure_type, read_enumeration_type): Remove cast.
10421 2013-01-30 Tom Tromey <tromey@redhat.com>
10423 * dwarf2read.c (read_namespace_type): Remove cast.
10424 (read_typedef): Likewise.
10426 2013-01-29 Tom Tromey <tromey@redhat.com>
10428 * dwarf2read.c (free_dwo_file): Remove assert.
10430 2013-01-29 Tom Tromey <tromey@redhat.com>
10432 * value.c (deprecated_set_value_modifiable): Remove.
10433 * value.h (deprecated_set_value_modifiable): Remove.
10435 2013-01-28 Doug Evans <dje@google.com>
10437 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
10438 to addresses from dwo files.
10440 2013-01-25 Siva Chandra Reddy <sivachandra@google.com>
10442 * valops.c (find_overload_match): Remove unused argument 'lax'.
10443 * value.h: Remove unused argument 'lax' from the declaration of
10444 find_overload_match.
10445 * eval.c (value_subexp_standard): Do not pass a 'lax' argument
10446 to find_overload_match.
10447 * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
10448 argument to find_overload_match.
10450 2013-01-25 Tom Tromey <tromey@redhat.com>
10452 * dwarf2read.c (processing_has_namespace_info): Remove.
10453 (struct dwarf2_cu) <processing_has_namespace_info>: New field.
10454 (process_die, read_func_scope, dwarf2_start_symtab)
10455 (new_symbol_full): Update.
10457 2013-01-25 Tom Tromey <tromey@redhat.com>
10459 * cp-namespace.c (cp_set_block_scope): Remove.
10460 * cp-support.h (cp_set_block_scope): Remove.
10461 * dbxread.c: Include block.h.
10462 (cp_set_block_scope): New function.
10463 (process_one_symbol): Update.
10464 * dwarf2read.c (read_func_scope): Use block_set_scope.
10466 2013-01-25 Pedro Alves <palves@redhat.com>
10468 * remote.c (add_current_inferior_and_thread): Tweak comment.
10470 2013-01-25 Tom Tromey <tromey@redhat.com>
10472 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
10473 (cp_add_using_directive): Add 'copy_names' argument.
10474 * cp-support.h (cp_add_using_directive): Update.
10475 (struct using_direct) <import_src, import_dest, alias,
10476 declaration>: Now const.
10477 * dwarf2read.c (read_import_statement): Use obconcat.
10478 Don't copy names passed to cp_add_using_directive.
10480 2013-01-25 Tom Tromey <tromey@redhat.com>
10482 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
10484 2013-01-25 Pedro Alves <palves@redhat.com>
10486 * remote.c (stop_reply_extract_thread): New.
10487 (add_current_inferior_and_thread): New parameter 'wait_status'.
10489 (remote_start_remote): Pass wait status to
10490 add_current_inferior_and_thread.
10491 (extended_remote_run): Update comment.
10492 (extended_remote_create_inferior_1): Pass wait status to
10493 add_current_inferior_and_thread.
10495 2013-01-25 Andrew Burgess <aburgess@broadcom.com>
10496 Ulrich Weigand <uweigand@de.ibm.com>
10498 * valarith.c (value_vector_widen): New function for replicating a
10499 scalar into a vector.
10500 (value_binop): Use value_vector_widen to widen scalar to vector
10501 rather than casting, this better matches gcc C behaviour.
10502 * valops.c (value_casst): Update logic for casting between vector
10503 types, and for casting from scalar to vector, try to match gcc C
10505 * value.h (value_vector_widen): Declare.
10506 * opencl-lang.c (opencl_value_cast): New opencl specific casting
10507 function, handle special case for casting scalar to vector.
10508 (opencl_relop): Use opencl_value_cast.
10509 (evaluate_subexp_opencl): Use opencl_value_cast instead of
10510 value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
10511 in order to use opencl_value_cast.
10513 2013-01-25 Yao Qi <yao@codesourcery.com>
10515 * event-loop.c: Include "queue.h".
10516 (gdb_event_p): New typedef.
10517 (DECLARE_QUEUE_P): Use.
10518 (DEFINE_QUEUE_P): Use.
10519 (async_queue_event): Remove.
10520 (gdb_event_xfree): New.
10521 (initialize_event_loop): New.
10522 (process_event): Use QUEUE macros.
10523 (event_queue): Remove.
10524 (gdb_wait_for_event): Caller update.
10525 (check_async_event_handlers): Likewise.
10526 (poll_timers): Likewise.
10527 * event-loop.h (initialize_event_loop): Declare.
10528 * event-loop.c (gdb_event_xfree): New.
10529 * top.c (gdb_init): Call initialize_event_loop.
10531 2013-01-25 Yao Qi <yao@codesourcery.com>
10533 * event-loop.c (async_queue_event): Remove one parameter
10534 'position'. Remove code handling 'position' == TAIL.
10535 (gdb_wait_for_event): Caller update.
10536 (check_async_event_handlers): Caller update.
10537 (poll_timers): Caller update.
10538 * event-loop.h (enum queue_position): Remove.
10540 2013-01-25 Maxim Kuvyrkov <maxim@kugelworks.com>
10542 * MAINTAINERS: Update my email.
10544 2013-01-25 Yao Qi <yao@codesourcery.com>
10546 * main.c (print_gdb_help): Remove "--epoch" from the help
10549 2013-01-24 Ulrich Weigand <uweigand@de.ibm.com>
10551 * symtab.c (skip_prologue_using_sal): Consider a file
10552 change the same as an increased line number
10554 2013-01-24 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
10556 * MAINTAINERS (Write After Approval): Add myself to the list.
10558 2013-01-24 Tom Tromey <tromey@redhat.com>
10560 * ada-lang.h (ada_decode_symbol): Make return type const.
10561 * ada-lang.c (ada_decode_symbol): Likewise.
10563 2013-01-23 Doug Evans <dje@google.com>
10565 * linespec.c (find_linespec_symbols): Make static.
10567 2013-01-23 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
10569 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
10570 type on float conversion for complex type.
10572 2013-01-23 Siva Chandra Reddy <sivachandra@google.com>
10574 Add a new class gdb.Architecture which exposes GDB's
10575 internal representation of architecture via GDB Python API.
10576 * Makefile.in: Add entries corresponding to the new file
10578 * NEWS (Python Scripting): Add entries for the new class
10579 gdb.Architecture and the new method gdb.Frame.architecture.
10580 * python/py-arch.c: Implement gdb.Architecture class.
10581 * python/py-frame.c (frapy_arch): Implement the method
10582 gdb.Frame.architecture().
10583 (frame_object_methods): Add 'architecture' to the method table.
10584 * python/python-internal.h: Add declarations of new utility
10586 * python/python.c (_initialize_python): Initialize
10587 gdb.Architecture class.
10589 2013-01-23 Doug Evans <dje@google.com>
10591 Work around binutils/15021.
10592 * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
10593 type_unit_group out of union s. All uses updated.
10594 (read_index_from_section): Watch for index version 8.
10595 (follow_die_sig): If using .gdb_index version <= 7, record the TU as
10596 an imported symtab.
10597 (write_psymtabs_to_index): Increment version number to 8.
10599 2013-01-22 Pedro Alves <palves@redhat.com>
10601 * annotate.c (breakpoint_changed): Skip if breakpoint is not
10604 2013-01-22 Pedro Alves <palves@redhat.com>
10606 * annotate.c (annotate_breakpoints_changed): Rename to ...
10607 (annotate_breakpoints_invalid): ... this. Make static.
10608 (breakpoint_changed): Adjust.
10609 (_initialize_annotate): Always install the observers. Install a
10610 "breakpoint_created" observer.
10611 * annotate.h (annotate_breakpoints_changed): Delete declaration.
10612 * breakpoint.c (set_breakpoint_condition)
10613 (breakpoint_set_commands, do_map_commands_command)
10614 (init_raw_breakpoint, clear_command, set_ignore_count)
10615 (enable_breakpoint_disp): No longer call
10616 annotate_breakpoints_changed.
10618 2013-01-22 Pedro Alves <palves@redhat.com>
10620 * annotate.c: Include "inferior.h".
10621 (frames_invalid_emitted)
10622 (breakpoints_invalid_emitted): New globals.
10623 (async_background_execution_p): New function.
10624 (annotate_breakpoints_changed, annotate_frames_invalid): Skip
10625 emitting the annotation if it has already been emitted.
10626 (annotate_display_prompt): New function.
10627 * annotate.h (annotate_display_prompt): New declaration.
10628 * event-top.c: Include annotate.h.
10629 (display_gdb_prompt): Call annotate_display_prompt.
10631 2013-01-22 Pedro Alves <palves@redhat.com>
10633 * annotate.c (ignore_count_changed): Delete.
10634 (annotate_breakpoints_changed): Don't clear ignore_count_changed.
10635 (annotate_ignore_count_change): Delete.
10636 (annotate_stopped): Don't emit a delayed breakpoints-changed
10638 * annotate.h (annotate_ignore_count_change): Delete.
10639 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
10640 annotate_ignore_count_change.
10642 2013-01-22 Tom Tromey <tromey@redhat.com>
10644 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
10645 require_rvalue for a register location.
10647 2013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
10649 * breakpoint.c (print_one_breakpoint_location): Add MI
10650 field 'thread-groups' when printing a breakpoint.
10651 (output_thread_groups): New function.
10653 2013-01-21 Siva Chandra Reddy <sivachandra@google.com>
10655 * python/lib/gdb/commands/explore.py
10656 (CompoundExplorer.explore_expr): Correct the name of a method
10658 (ExploreTypeCommand.invoke): Add a missing 'return'.
10660 2013-01-21 Tom Tromey <tromey@redhat.com>
10662 * gdb_obstack.h (obconcat): Move declaration here, from...
10663 * symfile.h (obconcat): ... here.
10664 * gdb_obstack.c: New file.
10665 (obconcat): Move from...
10666 * symfile.c (obconcat): ... here.
10667 * Makefile.in (SFILES): Add gdb_obstack.c.
10668 (COMMON_OBS): Add gdb_obstack.o.
10670 2013-01-21 Tom Tromey <tromey@redhat.com>
10672 * symfile.h (obsavestring): Don't declare.
10673 * symfile.c (obsavestring): Remove.
10674 * ada-exp.y: Use obstack_copy0, not obsavestring.
10675 * ada-lang.c: Use obstack_copy0, not obsavestring.
10676 * coffread.c: Use obstack_copy0, not obsavestring.
10677 * cp-namespace.c: Use obstack_copy0, not obsavestring.
10678 * dbxread.c: Use obstack_copy0, not obsavestring.
10679 * dwarf2read.c: Use obstack_copy0, not obsavestring.
10680 * jit.c: Use obstack_copy0, not obsavestring.
10681 * mdebugread.c: Use obstack_copy0, not obsavestring.
10682 * psymtab.c: Use obstack_copy0, not obsavestring.
10683 * stabsread.c: Use obstack_copy0, not obsavestring.
10684 * xcoffread.c: Use obstack_copy0, not obsavestring.
10686 2013-01-21 Tom Tromey <tromey@redhat.com>
10688 * dwarf2read.c (fixup_go_packaging): Save package name
10689 on objfile obstack.
10690 * gdbtypes.c (init_type): Don't copy name.
10692 2013-01-21 Tom Tromey <tromey@redhat.com>
10694 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
10696 (struct attribute) <u.str>: Now const.
10697 (struct fnfieldlist) <name>: Now const.
10698 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
10699 (partial_die_parent_scope): Make return type const.
10700 (partial_die_full_name, add_partial_symbol): Update.
10701 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
10703 (find_file_and_directory): Make 'name' and 'comp_dir' const.
10704 (read_file_scope, read_func_scope, dwarf2_add_field)
10705 (dwarf2_add_member_fn, read_structure_type)
10706 (process_enumeration_scope, read_array_type, read_module_type)
10707 (read_base_type, read_subrange_type): Update.
10708 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
10709 (new_symbol_full, guess_full_die_structure_name): Update.
10710 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
10711 (dwarf2_name): Return const type.
10712 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
10715 2013-01-21 Tom Tromey <tromey@redhat.com>
10717 * gdbtypes.c (init_type): Make 'name' const.
10718 * gdbtypes.h (init_type): Update.
10720 2013-01-21 Tom Tromey <tromey@redhat.com>
10722 * buildsym.c (patch_subfile_names): Use set_last_source_file.
10723 (start_symtab): Make 'name' and 'dirname' const. Use
10724 set_last_source_file.
10725 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
10726 (last_source_file): Define. Now static.
10727 (set_last_source_file, get_last_source_file): New functions.
10728 * buildsym.h (last_source_file): Don't declare.
10729 (start_symtab): Update.
10730 (set_last_source_file, get_last_source_file): Declare.
10731 * coffread.c (complete_symtab): Use set_last_source_file.
10732 (coff_end_symtab): Likewise.
10733 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
10734 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
10735 set_last_source_file.
10736 (process_one_symbol): Use get_last_source_file.
10737 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
10738 (psymtab_to_symtab_1): Use get_last_source_file.
10739 * xcoffread.c (process_linenos): Use get_last_source_file.
10740 (complete_symtab): Use set_last_source_file.
10741 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
10742 (scan_xcoff_symtab): Use set_last_source_file.
10744 2013-01-21 Tom Tromey <tromey@redhat.com>
10746 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
10747 (symbol_set_names): Remove casts. Handle field const-ness.
10749 2013-01-21 Tom Tromey <tromey@redhat.com>
10751 * dwarf2read.c (new_symbol_full): Remove cast.
10752 * symtab.c (symbol_set_demangled_name): Make 'name' const.
10753 * symtab.h (symbol_set_demangled_name): Update.
10755 2013-01-21 Tom Tromey <tromey@redhat.com>
10757 * main.c (captured_main): Call bfd_init.
10759 2013-01-21 Tom Tromey <tromey@redhat.com>
10761 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
10762 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
10763 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
10766 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10768 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
10770 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10772 Fix gdb.fortran/common-block.exp crash in PIE mode.
10773 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
10775 * f-valprint.c (info_common_command_for_block): Expect
10776 LOC_COMMON_BLOCK in gdb_assert.
10777 * symtab.h (struct general_symbol_info): Update comment for the
10778 common_block member.
10779 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
10780 (enum address_class): New member LOC_COMMON_BLOCK.
10782 2013-01-18 David Blaikie <dblaikie@gmail.com>
10784 * MAINTAINERS (Write After Approval): Add "David Blaikie".
10786 2013-01-18 Tom Tromey <tromey@redhat.com>
10789 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
10790 Call require_rvalue.
10792 2013-01-18 Yao Qi <yao@codesourcery.com>
10794 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
10795 (dbx_read_symtab): New declaration.
10796 (dbx_psymtab_to_symtab): Delete.
10797 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
10798 Rename parameter PST to SELF. Exchanged two parameters.
10799 (start_psymtab): Caller update.
10800 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
10801 (dwarf2_read_symtab): New declaration.
10802 (dwarf2_psymtab_to_symtab): Delete.
10803 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
10804 Rename parameter PST to SELF. Exchanged two parameters.
10805 (create_partial_symtab): Caller update.
10806 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
10807 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
10808 Rename parameter PST to SELF. Exchanged two parameters.
10809 (parse_partial_symbols, new_psymtab): Caller update.
10810 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
10812 * psymtab.c (psymtab_to_symtab): Caller update.
10813 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
10814 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
10815 Rename parameter PST to SELF. Exchanged two parameters.
10816 (xcoff_start_psymtab): Caller update.
10818 2013-01-18 Yao Qi <yao@codesourcery.com>
10820 * infrun.c (proceed): Rename local variable 'oneproc' to
10823 2013-01-17 Doug Evans <dje@google.com>
10825 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
10826 (dw2_build_type_unit_groups): Delete. All uses updated.
10828 * symtab.h (struct symbol_search): Add comment.
10830 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
10832 * symtab.c (compare_filenames_for_search): New comment for
10835 2013-01-17 Tom Tromey <tromey@redhat.com>
10837 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
10839 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
10841 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
10842 initialize it by existing make_cleanup. Call new do_cleanups.
10844 2013-01-17 Tom Tromey <tromey@redhat.com>
10846 * cp-abi.c (cp_abi_completer): New function.
10847 (_initialize_cp_abi): Set completer for "set cp-abi".
10849 2013-01-17 Tom Tromey <tromey@redhat.com>
10851 * mem-break.c: Remove obsolete comment.
10852 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
10854 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
10856 * jit.c (jit_reader_load_command): Interpret the jit reader name
10857 as an absolute path if it begins with a forward slash.
10859 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
10863 * jit.c (finalize_symtab): Ensure that only the global block has a
10866 2013-01-17 Pedro Alves <palves@redhat.com>
10868 * acinclude.m4: Include ../config/plugins.m4,
10869 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
10870 * Makefile.in (aclocal_m4_deps): Update.
10871 * aclocal.m4: Renegerate.
10873 2013-01-16 Doug Evans <dje@google.com>
10875 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
10877 2013-01-16 Pedro Alves <palves@redhat.com>
10878 Tom Tromey <tromey@redhat.com>
10881 * NEWS: Add "catch signal".
10882 * breakpoint.c (base_breakpoint_ops): No longer static.
10883 (bpstat_explains_signal): New function.
10884 (init_catchpoint): No longer static.
10885 (base_breakpoint_explains_signal): New function.
10886 (base_breakpoint_ops): Initialize new field.
10887 * breakpoint.h (enum bpstat_signal_value): New.
10888 (struct breakpoint_ops) <explains_signal>: New field.
10889 (bpstat_explains_signal): Remove macro, declare as function.
10890 (base_breakpoint_ops, init_catchpoint): Declare.
10891 * break-catch-sig.c: New file.
10892 * inferior.h (signal_catch_update): Declare.
10893 * infrun.c (signal_catch): New global.
10894 (handle_syscall_event): Update for change to
10895 bpstat_explains_signal.
10896 (handle_inferior_event): Likewise. Always handle random signals
10898 (signal_cache_update): Check signal_catch.
10899 (signal_catch_update): New function.
10900 (_initialize_infrun): Initialize signal_catch.
10901 * Makefile.in (SFILES): Add break-catch-sig.c.
10902 (COMMON_OBS): Add break-catch-sig.o.
10904 2013-01-16 Tom Tromey <tromey@redhat.com>
10906 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
10907 (print_one_catch_solib, print_one_catch_syscall)
10908 (print_one_catch_exec, print_one_exception_catchpoint): Emit
10911 2013-01-16 Yao Qi <yao@codesourcery.com>
10913 * printcmd.c (current_display_number): Make it static.
10915 2013-01-16 Yao Qi <yao@codesourcery.com>
10917 * infcmd.c (step_once): Don't check '!single_inst' as it was
10920 2013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10922 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
10924 2013-01-14 Tom Tromey <tromey@redhat.com>
10926 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
10928 * command.h (add_setshow_string_noescape_cmd): Update.
10929 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
10930 (complete_set_gnutarget): New function.
10931 (_initialize_core): Set the "set gnutarget" completer.
10933 2013-01-14 Tom Tromey <tromey@redhat.com>
10936 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
10937 (c_type_print_modifier): Likewise.
10938 * dwarf2read.c (read_tag_restrict_type): New function.
10939 (read_type_die_1): Handle DW_TAG_restrict_type.
10940 * gdbtypes.c (make_restrict_type): New function.
10941 (recursive_dump_type): Handle TYPE_RESTRICT.
10942 * gdbtypes.h (enum type_flag_values): Renumber.
10943 (enum type_instance_flag_value): Add
10944 TYPE_INSTANCE_FLAG_RESTRICT.
10945 (TYPE_RESTRICT): New macro.
10946 (make_restrict_type): Declare.
10948 2013-01-14 Tom Tromey <tromey@redhat.com>
10951 * psymtab.c (struct psymtab_state): New.
10952 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
10954 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
10955 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
10957 2013-01-14 Richard Sharman <richard_sharman@mitel.com>
10958 Pedro Alves <palves@redhat.com>
10962 * remote.c (remote_threads_info): Make a copy of the reply from
10963 qfThreadInfo and use that instead of rs->buf.
10965 2013-01-14 Yao Qi <yao@codesourcery.com>
10967 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
10968 (dbx_psymtab_to_symtab): Likewise.
10969 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
10970 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
10971 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
10973 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10975 * parse.c (parse_exp_in_context): New variable inner_chain. Call
10976 make_cleanup_restore_current_language. Call set_language. Move
10977 OLD_CHAIN and INNER_CHAIN cleanups.
10978 * utils.c (do_restore_current_language)
10979 (make_cleanup_restore_current_language): New functions.
10980 * utils.h (make_cleanup_restore_current_language): New declaration.
10982 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10984 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
10985 non-existing files.
10987 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
10988 non-existing files if FILENAME is already absolute.
10990 2013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10992 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
10993 fputs_filtered. Append trailing newline.
10995 2013-01-11 Yao Qi <yao@codesourcery.com>
10996 Stan Shebs <stan@codesourcery.com>
10998 * psymtab.c (init_psymbol_list): Clarify the comment.
11000 2013-01-11 Yao Qi <yao@codesourcery.com>
11002 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
11003 (update_dprintf_command_list): Assert that 'printf_line' is
11004 non-null. Remove condition check.
11006 2013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11009 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
11011 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
11013 * tui/tui-source.h (tui_source_is_displayed): Likewise.
11015 2013-01-09 Anthony Green <green@moxielogic.com>
11017 * cp-abi.c (cplus_print_vtable): Don't return value from void
11019 * ada-lang.c (re_set_catch_assert): Ditto.
11021 2013-01-09 Doug Evans <dje@google.com>
11023 * symfile.h (quick_symbol_functions): Delete member
11024 pre_expand_symtabs_matching. All uses removed.
11025 * dwarf2read.c (dw2_lookup_symbol): Implement.
11026 (dw2_do_expand_symtabs_matching): Delete.
11027 (dw2_pre_expand_symtabs_matching): Delete.
11028 (struct dw2_symtab_iterator): New type.
11029 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
11030 (dw2_expand_symtabs_for_function): Rewrite.
11031 (dwarf2_gdb_index_functions): Update.
11032 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
11033 (psym_functions): Update.
11035 2013-01-09 Tom Tromey <tromey@redhat.com>
11037 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
11038 * configure: Rebuild.
11039 * configure.ac: Add somread.o to the build if BFD has SOM
11041 * somread.c: Include som/aout.h, not syms.h.
11042 (som_symtab_read): Use som_external_symbol_dictionary_record.
11043 Unpack records manually.
11044 (_initialize_somread): Declare.
11046 2012-01-08 Mike Frysinger <vapier@gentoo.org>
11048 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
11049 Cast return_address to 64bits.
11051 2013-01-08 Hui Zhu <hui_zhu@mentor.com>
11053 * printcmd.c: Remove define of function output_command.
11054 * tracepoint.c: Remove extern of function output_command.
11055 * valprint.h: (output_command): New extern.
11057 2013-01-07 Tom Tromey <tromey@redhat.com>
11059 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
11061 (objc_language_defn): Use c_printchar, c_printstr,
11064 2013-01-07 Tom Tromey <tromey@redhat.com>
11068 * ada-valprint.c (printstr, print_field_values): Remove
11070 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
11072 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
11074 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
11075 * main.c (captured_main): Remove "epoch" argument.
11076 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
11077 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
11078 * p-valprint.c (pascal_object_print_value_fields): Remove
11080 * printcmd.c (print_command_1): Remove 'inspect' argument.
11081 (print_command, call_command): Update.
11082 (inspect_command): Remove.
11083 (_initialize_printcmd): Make "inspect" an alias for "print".
11084 * top.c (epoch_interface): Remove.
11085 * top.h (epoch_interface): Remove.
11086 * valprint.c (user_print_options): Update.
11087 (print_converted_chars_to_obstack): Remove "inspect_it" code.
11088 * valprint.h (struct value_print_options) <inspect_it>: Remove
11091 2013-01-04 Tom Tromey <tromey@redhat.com>
11093 * valprint.h (read_string): Add 'extern'.
11095 2013-01-07 Joel Brobecker <brobecker@adacore.com>
11097 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
11098 used to decide whether to define darwin_read_dyld_info or not.
11100 2013-01-03 Pierre Muller <muller@sourceware.org>
11102 * main.c (relocate_gdb_directory): Avoid calling stat function
11105 2013-01-03 Yao Qi <yao@codesourcery.com>
11107 * psymtab.c (fixup_psymbol_section): Update declaration.
11108 (fixup_psymbol_section): Remove code returning value.
11110 2013-01-03 Yao Qi <yao@codesourcery.com>
11112 * symtab.h: Remove some out of date comments.
11113 (enum exception_event_kind): Move it ...
11114 * breakpoint.c: ... here.
11116 2013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
11119 * darwin-nat.c (darwin_read_dyld_info): Only build if
11120 TASK_DYLD_INFO_COUNT is defined.
11121 (darwin_xfer_partial): Call darwin_read_dyld_info only if
11122 TASK_DYLD_INFO_COUNT is defined.
11124 2013-01-02 Tom Tromey <tromey@redhat.com>
11126 * symfile.h (struct ecoff_debug_hack): Remove.
11127 * objfiles.c: Don't include mdebugread.h.
11129 2013-01-02 Tom Tromey <tromey@redhat.com>
11131 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
11132 * configure.ac: Check for Mach-O support in BFD. Update
11134 * configure: Rebuild.
11136 2013-01-02 Tom Tromey <tromey@redhat.com>
11138 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
11139 * configure.ac: Use GDB_AC_CHECK_BFD.
11140 * configure: Rebuild.
11142 2013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
11144 * MAINTAINERS: Update my email.
11146 2013-01-01 Joel Brobecker <brobecker@adacore.com>
11148 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
11150 2013-01-01 Joel Brobecker <brobecker@adacore.com>
11152 * rs6000-nat.c (bss_data_overlap): New function.
11153 (vmap_symtab): Use it to adjust the .bss section's offset.
11155 2013-01-01 Joel Brobecker <brobecker@adacore.com>
11157 Update year range in copyright notice of all files.
11159 2013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
11161 * top.c (print_gdb_version): Update copyright year.
11163 For older changes see ChangeLog-2012.
11169 version-control: never