The branch, master has been updated via 048f56419a6d25d42febd905d8d476b535a3deaa (commit) via cc08d12811d3796f3c095bb8490793946bb5ecad (commit) via 11440cb0e939c8afa29ec941b254b82062df3240 (commit) via 1f4d9eb91d7e52176b495881dc661da980ba3009 (commit) via fe78766a0c9eea331e2a1799027f2f7c8e990ff8 (commit) via b799998bfb0f9f570f540507432668e27ad0334b (commit) via ece1f864adccf03d94a39d4d126637e334ff8d02 (commit) via b68f2b8c41710fb4921c09946e9acbdaebac470b (commit) via edc605775f9f2c2a1c5716d2460ae93fa78730bb (commit) via f7025420bd5a4f989d3adf11732b5d35adb341a9 (commit) via b512cb0838cade441023b8bdb241252b1f213c35 (commit) via 151170e86932ae63ebfde729cf50d828a059e3e9 (commit) via 8e8a4e3d9ea92ce53f8d5373b1b8865c9c92636b (commit) via 3218466d8d010cd525c20a5c4090727907087ed7 (commit) via c2f2c3f26a91054adf853076e40ae787e7bef574 (commit) via 636c40b41fa7feef3e41c372e08286377369f006 (commit) via b9198fb0e6a3af8f5af706a155eec742e47bd7c8 (commit) via cff51b91be6ed607f5b1b43e60bbade0a1cc0cd1 (commit) via f5205210f43332a480018099610dcf72400955fe (commit) via 0802dda658ebcc40adf18c22a63d400a6c51debd (commit) via f0daca07973ffbba30c742b3a3e26e38e38e1171 (commit) via dbc366058fbf78f5c45f28028daaea211caefb0c (commit) via 0d3a3878681f5670296193b9ea981e46aa43d9fc (commit) via 50c7b1a6ad44068e362281d9a1370362e864c8e0 (commit) via 295e6073271bbe17b412a4670449375a7cddd366 (commit) via cb659000585c0f5a61c9c953ac789b93b5224f9b (commit) via a8da7828378398afe77f2d62d3f9b11298222930 (commit) via 6e3fb41bf423603eeb257e18429441e82c182c45 (commit) via 078880e1565a15b560cbd23ce9abc253ca1ba2e4 (commit) via 9b6cc45637f851e23bf746229832538a7084f79f (commit) via 3caedd1374c797abfb6ac2953585f4fa12108d28 (commit) via 49f4cdad356746dd51f1d0db8c46bcf6a2eae373 (commit) via f2a8c0514edb8c72ad35d3927a494e59cad82d10 (commit) via cdfd89afeb6f90e671fcfd6aaa5daa1d3acc625a (commit) via 76d7140e102b5f432437a235cafcb01a28287ec3 (commit) via fa1a62f37b9467563fa0220bc5c0c4522b37ab23 (commit) via 4a0613d2cf98de19cc5b5cc8595e3600c9cd3fc7 (commit) via 151fd0e129f2fdff42deeb1df4febf5a3286cd93 (commit) via 25859a471102b5c2df2bf4211c64f18e004c3ff0 (commit) via c4a2e7b295f44c38dc111145dd6e3a7a63cec23b (commit) via 3b3a7d6ec86a43e67d7d05ced40c81c28ac808f0 (commit) via 4601e38a34c19ed0fe7500a2f7e8ac92c7e22d82 (commit) via 6d35f03d9be6189414404c9e7762a2743e172480 (commit) via 9063eb25233d98a0338565ece0585fd609afb1a4 (commit) via a12e9c9b2c5c7ca1788ec750b0292edab94ac707 (commit) via 242e860d3544f8c8a62793683276d9c0d3406830 (commit) via 599aeceb8b89c803cba80969b364fc4e94396521 (commit) via cc53e0c41178f89053fdbb08c6e4e2e38fe83cb3 (commit) via 193f92b0f35b755a7a6b058cc0c20e8da4e58455 (commit) via ec3630c53a53c2036e6dd83cb10df96538ac4df6 (commit) via 9a14b44297f098fff9477aecdd79c9f35e0b780f (commit) via 419489e209145898a09cf8d891e1c4d733560c6c (commit) via d52e92da51d563f33abfd08c21b86934a27cf479 (commit) via f98ce7a2659448a90532594a1c263f19208327c8 (commit) via 86cd6c482a1ae005482e5ff67195e919ac03308c (commit) from 439b2c04aa5870f7ac1c7a094363e7802e0471ff (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email. - Log ----------------------------------------------------------------- commit 048f56419a6d25d42febd905d8d476b535a3deaa Author: gdbadmin Date: Thu Sep 17 00:00:33 2009 +0000 *** empty log message *** commit cc08d12811d3796f3c095bb8490793946bb5ecad Author: Alan Modra Date: Thu Sep 17 00:00:05 2009 +0000 daily update commit 11440cb0e939c8afa29ec941b254b82062df3240 Author: H.J. Lu Date: Wed Sep 16 21:55:56 2009 +0000 2009-09-16 H.J. Lu PR gdb/10649 * Makefile.in (GDB_DATADIR_PATH): Renamed to ... (GDB_DATADIR): This. (xml-syscall-install): Updated. commit 1f4d9eb91d7e52176b495881dc661da980ba3009 Author: gdbadmin Date: Wed Sep 16 21:54:21 2009 +0000 Record GDB 7.0 branch creation. Bump version number to 7.0.50.20090916-cvs. commit fe78766a0c9eea331e2a1799027f2f7c8e990ff8 Author: DJ Delorie Date: Wed Sep 16 17:57:24 2009 +0000 merge from gcc commit b799998bfb0f9f570f540507432668e27ad0334b Author: Tristan Gingold Date: Wed Sep 16 13:30:31 2009 +0000 2009-09-16 Tristan Gingold * mach-o.h (bfd_mach_o_filetype): Add new constants from darwin10. Reindent. * mach-o.c (bfd_mach_o_cpu_name): Reindent. (bfd_mach_o_filetype_name): Complete with new constants. Reindent. (bfd_mach_o_print_private_header): Use fputs instead of fprintf when possible to avoid warnings. (bfd_mach_o_print_section_map): Ditto. (bfd_mach_o_section_get_entry_size): New function. (bfd_mach_o_section_get_nbr_indirect): Simplify using the newly added function. (bfd_mach_o_print_dysymtab): Print address of indirect symbols. commit ece1f864adccf03d94a39d4d126637e334ff8d02 Author: Jie Zhang Date: Wed Sep 16 00:45:55 2009 +0000 * configure.ac: Disable java and boehm-gc for bfin-*-*. * configure: Regenerate. commit b68f2b8c41710fb4921c09946e9acbdaebac470b Author: Alan Modra Date: Wed Sep 16 00:00:05 2009 +0000 daily update commit edc605775f9f2c2a1c5716d2460ae93fa78730bb Author: gdbadmin Date: Wed Sep 16 00:00:03 2009 +0000 *** empty log message *** commit f7025420bd5a4f989d3adf11732b5d35adb341a9 Author: Doug Evans Date: Tue Sep 15 23:30:37 2009 +0000 fix thinko in previous entry commit b512cb0838cade441023b8bdb241252b1f213c35 Author: Doug Evans Date: Tue Sep 15 23:26:44 2009 +0000 back out previous patch, replace with * configure.ac (sim_hwflags): Use AC_DEFINE to define HAVE_UNION_SEMUN. * configure: Regenerate. * config.in: Regenerate. * hw_sem.c: #include "config.h". (HAVE_UNION_SEMUN): Renamed from HAS_UNION_SEMUN. commit 151170e86932ae63ebfde729cf50d828a059e3e9 Author: Doug Evans Date: Tue Sep 15 23:06:41 2009 +0000 * configure.ac (sim_hwflags): Clean up definition, AC_SUBST it. * configure: Regenerate. * Makefile.in (SIM_HWFLAGS): New variable. (STD_CFLAGS, NOWARN_CFLAGS): Add it. commit 8e8a4e3d9ea92ce53f8d5373b1b8865c9c92636b Author: Tom Tromey Date: Tue Sep 15 18:51:24 2009 +0000 gdb * varobj.h (varobj_update_result_t) : New field. (varobj_get_child_range, varobj_set_child_range): Declare. (varobj_list_children): Update. (varobj_enable_pretty_printing, varobj_has_more) (varobj_pretty_printed_p): Declare. * varobj.c (pretty_printing): New global. (varobj_enable_pretty_printing): New function. (struct varobj_root) : New fields. (varobj_create): Don't call install_default_visualizer. (instantiate_pretty_printer): Don't use value_copy. (varobj_has_more): New function. (restrict_range): New function. (install_dynamic_child): Likewise. (dynamic_varobj_has_child_method): Likewise. (update_dynamic_varobj_children): Remove 'new_and_unchanged' argument; add 'new', 'unchanged', 'from', and 'to' arguments. Rewrite. (varobj_get_num_children): Call update_dynamic_varobj_children. (varobj_list_children): Add 'from' and 'to' arguments. Ignore result of update_dynamic_varobj_children. Don't call install_default_visualizer. Restrict result range. (varobj_add_child): Don't call install_default_visualizer. (varobj_pretty_printed_p): New function. (install_visualizer): Rewrite. Move earlier in file. (install_default_visualizer): Likewise. (construct_visualizer): New function. (install_new_value_visualizer): Likewise. (install_new_value): Don't call release_value. Special case pretty-printed objects. Use value_incref. Rearrange "changed" logic. (varobj_get_child_range): New function. (varobj_set_child_range): Likewise. (varobj_set_visualizer): Rewrite. (varobj_update): Rewrite pretty-printing logic. (new_variable): Initialize new fields. (free_variable): Destroy new fields. (value_of_root): Copy 'from' and 'to'. (my_value_of_variable): Handle pretty-printers. (value_get_print_value): Rework pretty-printing logic. (cplus_describe_child): Don't use release_value. * mi/mi-cmds.h (mi_cmd_enable_pretty_printing) (mi_cmd_var_set_update_range): Declare. * mi/mi-cmds.c (mi_cmds): Add enable-pretty-printing and var-set-update-range. * mi/mi-cmd-var.c (print_varobj): Update. Emit "dynamic" attribute. (mi_cmd_var_create): Emit "has_more" attribute. (mi_cmd_var_set_format): Plug memory leak. (mi_print_value_p): Replace 'type' argument with 'var'. Handle pretty-printed varobjs. (mi_cmd_var_list_children): Accept 'from' and 'to' arguments. Emit "has_more" attribute. (mi_cmd_var_evaluate_expression): Plug memory leak. (mi_cmd_var_assign): Likewise. (varobj_update_one): Likewise. Emit "dynamic", "has_more", and "new_children" attributes. (mi_cmd_enable_pretty_printing): New function. (mi_cmd_var_set_update_range): Likewise. gdb/doc * gdb.texinfo (GDB/MI Variable Objects): Document -enable-pretty-printing, -var-set-update-range, dynamic varobjs. Expand -var-update documentation. gdb/testsuite * lib/mi-support.exp (mi_create_varobj): Update. (mi_create_floating_varobj): Likewise. (mi_create_dynamic_varobj): New proc. (mi_varobj_update): Update. (mi_varobj_update_with_type_change): Likewise. (mi_varobj_update_kv_helper): New proc. (mi_varobj_update_dynamic_helper): Rewrite. (mi_varobj_update_dynamic): New proc. (mi_list_varobj_children): Update. (mi_list_varobj_children_range): Add 'from' and 'to' arguments. * gdb.python/python-prettyprint.py (pp_outer): New class. (pp_nullstr): Likewise. (lookup_function): Register new printers. * gdb.python/python-prettyprint.c (struct substruct): New type. (struct outerstruct): Likewise. (substruct_test): New function. (struct nullstr): New type. (string_1, string_2): New globals. (main): Add new tests. * gdb.python/python-mi.exp: Added regression tests. * gdb.mi/mi2-var-display.exp: Update. * gdb.mi/mi2-var-cmd.exp: Update. * gdb.mi/mi2-var-child.exp: Update. * gdb.mi/mi2-var-block.exp: Update. * gdb.mi/mi-var-invalidate.exp: Update. * gdb.mi/mi-var-display.exp: Update. * gdb.mi/mi-var-cmd.exp: Update. * gdb.mi/mi-var-child.exp: Update. * gdb.mi/mi-var-block.exp: Update. * gdb.mi/mi-break.exp: Update. * gdb.mi/gdb701.exp: Update. commit 3218466d8d010cd525c20a5c4090727907087ed7 Author: H.J. Lu Date: Tue Sep 15 17:53:40 2009 +0000 2009-09-15 H.J. Lu * i386-dis.c (OP_E_memory): Don't print '-' in Intel mode if disp == -disp. commit c2f2c3f26a91054adf853076e40ae787e7bef574 Author: Doug Evans Date: Tue Sep 15 16:20:52 2009 +0000 * dwarf2expr.h (dwarf_value_location): Add more comments describing enum values. (struct dwarf_stack_value): New struct. (struct dwarf_expr_context): Change type of `stack' from CORE_ADDR* to struct dwarf_stack_value*. (struct dwarf_expr_piece): Move `v.value' into its own struct, v.expr, all uses updated. Add v.expr.in_stack_memory. (dwarf_expr_push): Update declaration. (dwarf_expr_fetch_in_stack_memory): Declare. * dwarf2expr.c (dwarf_expr_grow_stack): Update calculation of size of stack value. (dwarf_expr_push): New arg in_stack_memory, all callers updated. (dwarf_expr_fetch_in_stack_memory): New function. (add_piece): Set in_stack_memory for non-literal values. (execute_stack_op): Allow ops to specify whether the value is on the program's stack. (execute_stack_op, case DW_OP_fbreg): Mark value as in stack memory. (execute_stack_op, case DW_OP_call_frame_cfa): Ditto. (execute_stack_op, case DW_OP_dup): Copy in_stack_memory flag. (execute_stack_op, cases DW_OP_pick, DW_OP_over): Ditto. (execute_stack_op, cases DW_OP_swap, DW_OP_rot): Update type of dwarf stack value. * dwarf2loc.c (read_pieced_value): Call read_stack for values known to be on the program's stack. (dwarf2_evaluate_loc_desc, case DWARF_VALUE_MEMORY): Call set_value_stack only for objects known to be in stack memory. * dwarf2-frame.c (execute_stack_op): New arg initial_in_stack_memory, all callers updated. commit 636c40b41fa7feef3e41c372e08286377369f006 Author: Doug Evans Date: Tue Sep 15 16:16:40 2009 +0000 * target.c (memory_xfer_partial): Pass correct length to dcache_update. commit b9198fb0e6a3af8f5af706a155eec742e47bd7c8 Author: Jan Kratochvil Date: Tue Sep 15 16:09:29 2009 +0000 gdb/ Fix gcc-4.5 HEAD warnings for enum ada_operator. * Makefile.in (HFILES_NO_SRCDIR): Add ada-operator.inc. * ada-lang.h (enum ada_operator): Move it to ... * ada-operator.inc: ... a new file. * expression.h (enum exp_opcode): Include ada-operator.inc. New element OP_UNUSED_LAST. Update comment for OP_EXTENDED0. gdb/ Fix gcc-4.5 HEAD warnings for GDB_FORM_cached_string. * dwarf2read.c (GDB_FORM_cached_string) (dwarf_form_name ): Remove. (struct attribute ): Reduce the bit width. (struct attribute , DW_STRING_IS_CANONICAL): New. (read_attribute_value ) (read_attribute_value ): Initialize DW_STRING_IS_CANONICAL. (dwarf2_name, dump_die_shallow ) (dump_die_shallow ): Update the code using former GDB_FORM_cached_string. commit cff51b91be6ed607f5b1b43e60bbade0a1cc0cd1 Author: DJ Delorie Date: Tue Sep 15 15:21:58 2009 +0000 merge from gcc commit f5205210f43332a480018099610dcf72400955fe Author: sergiodj Date: Tue Sep 15 03:45:49 2009 +0000 Adding the DTD file for "Implementing the catch syscall feature". commit 0802dda658ebcc40adf18c22a63d400a6c51debd Author: sergiodj Date: Tue Sep 15 03:44:41 2009 +0000 Adding the XML files for "Implementing the catch syscall feature". commit f0daca07973ffbba30c742b3a3e26e38e38e1171 Author: sergiodj Date: Tue Sep 15 03:32:06 2009 +0000 Forgot to add these files. They are referent to the last commit, "Implementing the catch syscall feature". commit dbc366058fbf78f5c45f28028daaea211caefb0c Author: sergiodj Date: Tue Sep 15 03:30:03 2009 +0000 Implementing catch syscall. * amd64-linux-tdep.c: Include xml-syscall.h header, define the XML syscall name for the architecture. (amd64_linux_get_syscall_number): New function. (amd64_linux_init_abi): Register the correct functions for syscall catchpoint; set the correct syscall file name. * breakpoint.c: New include: xml-syscall.h. (set_raw_breakpoint_without_location): Setting the parameters for the catch syscall feature. (insert_catch_syscall): New. (remove_catch_syscall): New. (breakpoint_hit_catch_syscall): New. (print_it_catch_syscall): New. (print_one_catch_syscall): New. (print_mention_catch_syscall): New. (catch_syscall_breakpoint_ops): New. (syscall_catchpoint_p): New. (create_catchpoint_without_mention): New. (create_catchpoint): Modified in order to use create_catchpoint_without_mention. (create_syscall_event_catchpoint): New. (clean_up_filters): New. (catch_syscall_split_args): New. (catch_syscall_command_1): New. (delete_breakpoint): Add cleanup for catch syscall. (is_syscall_catchpoint_enabled): New. (catch_syscall_enabled): New. (catching_syscall_number): New. (catch_syscall_completer): New completer function. (add_catch_command): Add the completer function for catchpoints. * breakpoint.h (syscalls_to_be_caught): New vector. (catch_syscall_enabled): New. (catching_syscall_number): New. * gdbarch.c: Regenerated. * gdbarch.h: Regenerated. * gdbarch.sh: Add syscall catchpoint functions and structures. (get_syscall_number): New. (UNKNOWN_SYSCALL): New definition. * i386-linux-nat.c (i386_linux_resume): Select the proper request to be made for ptrace() considering if we are catching syscalls or not. * i386-linux-tdep.c: Include xml-syscall.h header, define the XML syscall name for the architecture. (i386_linux_get_syscall_number): New. (i386_linux_init_abi): Register the correct functions for syscall catchpoint; set the correct syscall file name. * inf-child.c (inf_child_set_syscall_catchpoint): New. (inf_child_target): Assign default values to target_ops. * inf-ptrace.c (inf_ptrace_resume): Select the proper request to be made for ptrace() considering if we are catching syscalls or not. * inferior.h (struct inferior): Included new variables any_syscall_count, syscalls_counts and total_syscalls_count, used to keep track of requested syscall catchpoints. * infrun.c (resume): Add syscall catchpoint. (deal_with_syscall_event): New. (handle_inferior_event): Add syscall entry/return events. (inferior_has_called_syscall): New. * linux-nat.c: Define some helpful variables to track wether we have support for the needed ptrace option. (linux_test_for_tracesysgood): New. (linux_supports_tracesysgood): New. (linux_enable_tracesysgood): New. (linux_enable_event_reporting): Save the current used ptrace options. (linux_child_post_attach): Calling linux_enable_tracesysgood. (linux_child_post_startup_inferior): Likewise. (linux_child_set_syscall_catchpoint): New function. (linux_handle_extended_wait): Handle the case which the inferior stops because it has called or returned from a syscall. (linux_target_install_ops): Install the necessary functions to handle syscall catchpoints. * linux-nat.h (struct lwp_info): Include syscall_state into the structure, which indicates if we are in a syscall entry or return. * ppc-linux-tdep.c: Include xml-syscall.h header, define the XML syscall filename for the arch. (ppc_linux_get_syscall_number): New. (ppc_linux_init_abi): Register the correct functions for syscall catchpoint; setting the correct name for the XML syscall file. * target.c (update_current_target): Update/copy functions related to syscall catchpoint. (target_waitstatus_to_string): Add syscall catchpoint entry/return events. * target.h (struct target_waitstatus): Add syscall number. (struct syscall): New struct to hold information about syscalls in the system. (struct target_ops): Add ops for syscall catchpoint. (inferior_has_called_syscall): New. (target_set_syscall_catchpoint): New. * xml-support.c (xml_fetch_content_from_file): New function, transferred from xml-tdesc.c. * xml-support.h (xml_fetch_content_from_file): New. * xml-tdesc.c (fetch_xml_from_file): Function removed; transferred to xml-support.c. (file_read_description_xml): Updated to use the new xml_fetch_content_from_file function. * syscalls/gdb-syscalls.dtd: New definition file for syscall's XML support. * syscalls/amd64-linux.xml: New file containing information about syscalls for GNU/Linux systems that use amd64 architecture. * syscalls/i386-linux.xml: New file containing information about syscalls for GNU/Linux systems that use i386 architecture. * syscalls/ppc-linux.xml: New file containing information about syscalls for GNU/Linux systems that use PPC architecture. * syscalls/ppc64-linux.xml: New file containing information about syscalls for GNU/Linux systems that use PPC64 architecture. * xml-syscall.c: New file containing functions for manipulating syscall's XML files. * xml-syscall.h: New file, exporting the functions above mentioned. * Makefile.in: Support for relocatable GDB datadir and XML syscall. * NEWS: Added information about the catch syscall feature. * doc/gdb.texinfo (Set Catchpoints): Documentation about the new feature. * testsuite/Makefile.in: Inclusion of catch-syscall object. * testsuite/gdb.base/catch-syscall.c: New file. * testsuite/gdb.base/catch-syscall.exp: New file. commit 0d3a3878681f5670296193b9ea981e46aa43d9fc Author: gdbadmin Date: Tue Sep 15 00:00:33 2009 +0000 *** empty log message *** commit 50c7b1a6ad44068e362281d9a1370362e864c8e0 Author: Alan Modra Date: Tue Sep 15 00:00:08 2009 +0000 daily update commit 295e6073271bbe17b412a4670449375a7cddd366 Author: Doug Evans Date: Mon Sep 14 20:49:09 2009 +0000 * target.c (memory_xfer_partial): Only update dcache after we know the write succeeded. commit cb659000585c0f5a61c9c953ac789b93b5224f9b Author: Paul Pluzhnikov Date: Mon Sep 14 17:17:30 2009 +0000 2009-09-14 Paul Pluzhnikov *minsyms.c (lookup_minimal_symbol_by_pc_section_1): Assert non-NULL section. (lookup_minimal_symbol_by_pc_section): Check for NULL section. (lookup_minimal_symbol_by_pc): Adjust. commit a8da7828378398afe77f2d62d3f9b11298222930 Author: Paul Pluzhnikov Date: Mon Sep 14 17:12:06 2009 +0000 2009-09-14 Paul Pluzhnikov * objfiles.c (qsort_cmp): Remove asserts. (insert_section_p, filter_debuginfo_sections): New function. (filter_overlapping_sections): Likewise. (update_section_map): Adjust. commit 6e3fb41bf423603eeb257e18429441e82c182c45 Author: Nick Clifton Date: Mon Sep 14 12:24:27 2009 +0000 Updated German, Dutch and Finnish translations. commit 078880e1565a15b560cbd23ce9abc253ca1ba2e4 Author: gdbadmin Date: Mon Sep 14 00:00:32 2009 +0000 *** empty log message *** commit 9b6cc45637f851e23bf746229832538a7084f79f Author: Alan Modra Date: Mon Sep 14 00:00:05 2009 +0000 daily update commit 3caedd1374c797abfb6ac2953585f4fa12108d28 Author: Joel Brobecker Date: Sun Sep 13 16:28:28 2009 +0000 gdb/ * frame.c (get_frame_id): Default to outer_frame_id if the this_id method does not supply an ID. Assert that the result is not null_frame_id. (outer_frame_id): New. (frame_id_p): Accept outer_frame_id. (frame_id_eq): Allow outer_frame_id to be equal to itself. (frame_find_by_id): Revert previous local workarounds. (get_prev_frame_1): Adjust end-of-stack check to test outer_frame_id. * frame.h (null_frame_id, frame_id_p): Update comments. (outer_frame_id): Declare. * infrun.c (handle_inferior_event): Do not treat all steps from the outermost frame as subroutine calls. * libunwind-frame.c (libunwind_frame_this_id): Do not clear THIS_ID. * hppa-tdep.c (hppa_stub_frame_this_id): Likewise. * ia64-tdep.c (ia64_frame_this_id): Likewise. (ia64_libunwind_frame_this_id, ia64_libunwind_sigtramp_frame_this_id): Use outer_frame_id instead of null_frame_id. * amd64obsd-tdep.c (amd64obsd_trapframe_cache): Use outer_frame_id. * i386obsd-tdep.c (i386obsd_trapframe_cache): Likewise. * inline-frame.c (inline_frame_this_id): Refuse outer_frame_id. * thread.c (restore_selected_frame): Update comment and remove frame_id_p check. gdb/doc/ * gdbint.texinfo (Unwinding the Frame ID): Reference outer_frame_id. commit 49f4cdad356746dd51f1d0db8c46bcf6a2eae373 Author: Michael Snyder Date: Sun Sep 13 00:28:39 2009 +0000 2009-09-12 Michael Snyder * gdb.reverse/step-reverse.exp: Explicitly check for targets that can support reverse debuggnig. commit f2a8c0514edb8c72ad35d3927a494e59cad82d10 Author: Alan Modra Date: Sun Sep 13 00:00:05 2009 +0000 daily update commit cdfd89afeb6f90e671fcfd6aaa5daa1d3acc625a Author: gdbadmin Date: Sun Sep 13 00:00:04 2009 +0000 *** empty log message *** commit 76d7140e102b5f432437a235cafcb01a28287ec3 Author: Alan Modra Date: Sat Sep 12 00:00:05 2009 +0000 daily update commit fa1a62f37b9467563fa0220bc5c0c4522b37ab23 Author: gdbadmin Date: Sat Sep 12 00:00:03 2009 +0000 *** empty log message *** commit 4a0613d2cf98de19cc5b5cc8595e3600c9cd3fc7 Author: Doug Evans Date: Fri Sep 11 23:11:34 2009 +0000 * dwarf2expr.c (execute_stack_op, case DW_OP_piece): Delete unused local addr_or_regnum. commit 151fd0e129f2fdff42deeb1df4febf5a3286cd93 Author: Doug Evans Date: Fri Sep 11 18:51:29 2009 +0000 * objfiles.c (struct objfile_data): Delete member cleanup and replace with save, free. (register_objfile_data_with_cleanup): Delete arg cleanup and replace with save, free. All callers updated. (clear_objfile_data): Replace cleanup loop with separate save and free loops. * objfiles.h (register_objfile_data_with_cleanup): Update. * arm-tdep.c (arm_objfile_data_free): Renamed from arm_objfile_data_cleanup, all callers updated. * dwarf2read.c (dwarf2_per_objfile_free): Renamed from dwarf2_per_objfile_cleanup, all callers updated. * python/py-objfile.c (py_free_objfile): Renamed from clean_up_objfile, all callers updated. * python/py-type.c (save_objfile_types): Renamed from clean_up_objfile_types, all callers updated. commit 25859a471102b5c2df2bf4211c64f18e004c3ff0 Author: Tom Tromey Date: Fri Sep 11 18:38:38 2009 +0000 gdb * dwarf2loc.c (struct piece_closure) : New field. (dwarf2_evaluate_loc_desc): Update. (dwarf2_loc_desc_needs_frame): Likewise. (allocate_piece_closure): Initialize new field. (read_pieced_value): Update. (write_pieced_value): Update. (copy_pieced_value_closure): Update. * dwarf2expr.h (enum dwarf_value_location): New. (struct dwarf_expr_context) : Remove. : New fields. (struct dwarf_expr_piece) : Remove. : New fields. * dwarf2expr.c (add_piece): Remove in_reg, value arguments. Update. (require_composition): New function. (execute_stack_op): Update. : New cases. : Set location, not in_reg. : Likewise. Use require_composition. : Update. : Likewise. * dwarf2-frame.c (execute_stack_op): Update. gdb/testsuite * gdb.dwarf2/valop.S: New file. * gdb.dwarf2/valop.exp: New file. commit c4a2e7b295f44c38dc111145dd6e3a7a63cec23b Author: DJ Delorie Date: Fri Sep 11 16:05:46 2009 +0000 merge from gcc commit 3b3a7d6ec86a43e67d7d05ced40c81c28ac808f0 Author: Nick Clifton Date: Fri Sep 11 15:27:32 2009 +0000 * po/bfd.pot: Updated by the Translation project. * po/binutils.pot: Updated by the Translation project. * po/gold.pot: Updated by the Translation project. * po/gold.pot: Updated by the Translation project. * po/gprof.pot: Updated by the Translation project. * po/sv.po: Updated Swedish translation. * po/ld.pot: Updated by the Translation project. * po/fi.po: Updated Finnish translation. * po/ld.pot: Updated by the Translation project. * po/fi.po: Updated Finnish translation. Updated sources to compile cleanly with -Wc++-compat: * basic_blocks.c: Add casts. * cg_dfn.c: Add cast. * corefile.c: Add casts. * gmon_io.c: Add casts. * hist.c: Add cast. * source.c: Add cast. * sym_ids.c (struct match): Moved to top level. Updated soruces in ld/* to compile cleanly with -Wc++-compat: * ld.h (enum endian_enum,enum symbolic_enum,enum dynamic_list_enum): Move to top level. * ldcref.c: Add casts. * ldctor.c: Add casts. * ldexp.c * ldexp.h (enum node_tree_enum,enum phase_enum): Move to top level. * ldlang.c: Add casts. (lang_insert_orphan): Use enum name instead of integer. * ldlang.h (enum statement_enum): Move to top level. * ldmain.c: Add casts. * ldwrite.c: Add casts. * lexsup.c: Add casts. (enum control_enum): Move to top level. * mri.c: Add casts. (mri_draw_tree): Use enum name instead of integer. Updated sources to compile cleanly with -Wc++-compat: * basic_blocks.c: Add casts. * cg_dfn.c: Add cast. * corefile.c: Add casts. * gmon_io.c: Add casts. * hist.c: Add cast. * source.c: Add cast. * sym_ids.c (struct match): Moved to top level. * as.c (main): Call dwarf2_init. * config/obj-elf.c (struct group_list): New field. (build_group_lists): Use hash lookup. (free_section_idx): New function. (elf_frob_file): Adjust. * dwarf2dbg.c (all_segs_hash, last_seg_ptr): New variables. (get_line_subseg): Adjust. (dwarf2_init): New function. * dwarf2dbg.h (dwarf2_init): New declaration. commit 4601e38a34c19ed0fe7500a2f7e8ac92c7e22d82 Author: Mark Kettenis Date: Fri Sep 11 14:07:37 2009 +0000 * gdb.threads/current-lwp-dead.exp: Only run this on Linux. commit 6d35f03d9be6189414404c9e7762a2743e172480 Author: Nick Clifton Date: Fri Sep 11 11:16:18 2009 +0000 * obcopy.c (copy_object): New parameter `input_arch', architecture of input file, if not specified in input file itself; all callers updated; `binary_architecture' hack removed. (copy_archive, copy_file): New parameter `input_arch', for `copy_object' usage. (copy_main): Accept `-B' (`--binary-architecture') option also for any arch-less input ifile format, not only `binary'; remove bfd_external_binary_architecture hack; instead, add `input_arch' to calls to `copy_file'. * windres.c, windmc.c : Obsolete and useless external references to `bfd_external_binary_architecture' or `bfd_external_machine' removed. * binary.c (binary_object_p): Remove bfd_external_binary_architecture hack. objcopy `-B' (`--binary-architecture') option is now handled in a generic way. commit 9063eb25233d98a0338565ece0585fd609afb1a4 Author: Nick Clifton Date: Fri Sep 11 08:09:49 2009 +0000 Changelog entry for previous delta. commit a12e9c9b2c5c7ca1788ec750b0292edab94ac707 Author: Nick Clifton Date: Fri Sep 11 08:08:11 2009 +0000 * rs6000-core.c (read_hdr): Fix typo in recent C++ compatibility changes. commit 242e860d3544f8c8a62793683276d9c0d3406830 Author: Jie Zhang Date: Fri Sep 11 03:22:57 2009 +0000 Fix ChangeLog entry date of my last commit. commit 599aeceb8b89c803cba80969b364fc4e94396521 Author: Jie Zhang Date: Fri Sep 11 03:20:34 2009 +0000 * elf32-bfin.c (bfinfdpic_relocs_info_find): Just return NULL if `ht' is NULL. commit cc53e0c41178f89053fdbb08c6e4e2e38fe83cb3 Author: gdbadmin Date: Fri Sep 11 00:00:32 2009 +0000 *** empty log message *** commit 193f92b0f35b755a7a6b058cc0c20e8da4e58455 Author: Alan Modra Date: Fri Sep 11 00:00:04 2009 +0000 daily update commit ec3630c53a53c2036e6dd83cb10df96538ac4df6 Author: Michael Snyder Date: Thu Sep 10 22:47:56 2009 +0000 Fix typo. commit 9a14b44297f098fff9477aecdd79c9f35e0b780f Author: Doug Evans Date: Thu Sep 10 22:26:51 2009 +0000 * gdb.base/breakpoint-shadow.exp: Fix intermittent failures. Add $gdb_prompt to second breakpoint regexp. commit 419489e209145898a09cf8d891e1c4d733560c6c Author: Anthony Green Date: Thu Sep 10 21:57:03 2009 +0000 Use common memory infrastructure and introduce device tree support commit d52e92da51d563f33abfd08c21b86934a27cf479 Author: Anthony Green Date: Thu Sep 10 21:12:24 2009 +0000 Recognize new moxie prologues commit f98ce7a2659448a90532594a1c263f19208327c8 Author: Michael Snyder Date: Thu Sep 10 21:03:06 2009 +0000 2009-09-10 Michael Snyder * gdb.texinfo (qSupported): Mention new ReverseContinue and ReverseStep replies to the qSupported query. commit 86cd6c482a1ae005482e5ff67195e919ac03308c Author: Michael Snyder Date: Thu Sep 10 21:02:46 2009 +0000 2009-09-10 Michael Snyder * remote.c (PACKET_bc, PACKET_bs): New enums. (remote_protocol_features): Add ReverseStep, ReverseContinue. (remote_resume): Check for reverse capability. (_initialize_remote): Add packet config for "bs" and "bc" packets. * NEWS (new options): Mention set/show for "bs" and "bc" packets. ----------------------------------------------------------------------- Summary of changes: ChangeLog | 5 + bfd/ChangeLog | 38 + bfd/binary.c | 13 - bfd/elf32-bfin.c | 8 +- bfd/mach-o.c | 95 +- bfd/mach-o.h | 19 +- bfd/po/bfd.pot | 28 +- bfd/po/fi.po | 2012 ++++++++++++++---------- bfd/rs6000-core.c | 2 +- bfd/version.h | 2 +- configure | 3 +- configure.ac | 3 +- gdb/ChangeLog | 346 ++++ gdb/Makefile.in | 55 +- gdb/NEWS | 18 + gdb/ada-lang.h | 86 - gdb/ada-operator.inc | 102 ++ gdb/amd64-linux-tdep.c | 31 + gdb/amd64obsd-tdep.c | 2 +- gdb/arm-tdep.c | 4 +- gdb/breakpoint.c | 489 ++++++- gdb/breakpoint.h | 21 +- gdb/doc/ChangeLog | 20 + gdb/doc/gdb.texinfo | 389 +++++- gdb/doc/gdbint.texinfo | 10 +- gdb/dwarf2-frame.c | 20 +- gdb/dwarf2expr.c | 127 ++- gdb/dwarf2expr.h | 94 +- gdb/dwarf2loc.c | 176 ++- gdb/dwarf2read.c | 36 +- gdb/expression.h | 17 +- gdb/frame.c | 18 +- gdb/frame.h | 10 +- gdb/gdbarch.c | 33 + gdb/gdbarch.h | 13 + gdb/gdbarch.sh | 9 + gdb/hppa-tdep.c | 2 - gdb/i386-linux-nat.c | 7 +- gdb/i386-linux-tdep.c | 30 + gdb/i386obsd-tdep.c | 2 +- gdb/ia64-tdep.c | 17 +- gdb/inf-child.c | 10 + gdb/inf-ptrace.c | 7 +- gdb/inferior.h | 14 + gdb/infrun.c | 104 ++- gdb/inline-frame.c | 4 + gdb/libunwind-frame.c | 2 - gdb/linux-nat.c | 144 ++- gdb/linux-nat.h | 7 + gdb/mi/mi-cmd-var.c | 183 ++- gdb/mi/mi-cmds.c | 2 + gdb/mi/mi-cmds.h | 2 + gdb/minsyms.c | 47 +- gdb/moxie-tdep.c | 40 +- gdb/objfiles.c | 290 +++- gdb/objfiles.h | 11 +- gdb/ppc-linux-tdep.c | 46 + gdb/python/py-objfile.c | 4 +- gdb/python/py-type.c | 4 +- gdb/remote.c | 34 +- gdb/syscalls/amd64-linux.xml | 314 ++++ gdb/syscalls/gdb-syscalls.dtd | 14 + gdb/syscalls/i386-linux.xml | 340 ++++ gdb/syscalls/ppc-linux.xml | 310 ++++ gdb/syscalls/ppc64-linux.xml | 295 ++++ gdb/target.c | 35 +- gdb/target.h | 44 +- gdb/testsuite/ChangeLog | 59 + gdb/testsuite/gdb.base/Makefile.in | 2 +- gdb/testsuite/gdb.base/breakpoint-shadow.exp | 2 +- gdb/testsuite/gdb.base/catch-syscall.c | 25 + gdb/testsuite/gdb.base/catch-syscall.exp | 445 ++++++ gdb/testsuite/gdb.dwarf2/valop.S | 505 ++++++ gdb/testsuite/gdb.dwarf2/valop.exp | 55 + gdb/testsuite/gdb.mi/gdb701.exp | 2 +- gdb/testsuite/gdb.mi/mi-break.exp | 2 +- gdb/testsuite/gdb.mi/mi-var-block.exp | 2 +- gdb/testsuite/gdb.mi/mi-var-child.exp | 30 +- gdb/testsuite/gdb.mi/mi-var-cmd.exp | 38 +- gdb/testsuite/gdb.mi/mi-var-display.exp | 4 +- gdb/testsuite/gdb.mi/mi-var-invalidate.exp | 6 +- gdb/testsuite/gdb.mi/mi2-var-block.exp | 2 +- gdb/testsuite/gdb.mi/mi2-var-child.exp | 30 +- gdb/testsuite/gdb.mi/mi2-var-cmd.exp | 33 +- gdb/testsuite/gdb.mi/mi2-var-display.exp | 4 +- gdb/testsuite/gdb.python/py-mi.exp | 163 ++- gdb/testsuite/gdb.python/py-prettyprint.c | 45 + gdb/testsuite/gdb.python/py-prettyprint.py | 29 +- gdb/testsuite/gdb.reverse/sigall-reverse.c | 1413 +++++++++++++++++ gdb/testsuite/gdb.reverse/sigall-reverse.exp | 421 +++++ gdb/testsuite/gdb.threads/current-lwp-dead.exp | 5 + gdb/testsuite/lib/mi-support.exp | 100 +- gdb/thread.c | 10 +- gdb/varobj.c | 710 ++++++--- gdb/varobj.h | 32 +- gdb/version.in | 2 +- gdb/xml-support.c | 60 + gdb/xml-support.h | 6 + gdb/xml-syscall.c | 432 +++++ gdb/xml-syscall.h | 50 + gdb/xml-tdesc.c | 67 +- libiberty/ChangeLog | 8 + libiberty/config.h-vms | 3 + libiberty/hashtab.c | 3 + opcodes/ChangeLog | 28 + opcodes/i386-dis.c | 2 +- opcodes/po/nl.po | 332 +++-- opcodes/po/opcodes.pot | 2 +- sim/moxie/ChangeLog | 17 + sim/moxie/Makefile.in | 19 +- sim/moxie/configure | 520 ++++++- sim/moxie/configure.ac | 8 + sim/moxie/interp.c | 436 ++---- sim/moxie/moxie-gdb.dts | 49 + sim/moxie/sim-main.h | 63 + sim/ppc/ChangeLog | 8 + sim/ppc/config.in | 3 + sim/ppc/configure | 4 +- sim/ppc/configure.ac | 3 +- sim/ppc/hw_sem.c | 2 +- 120 files changed, 10830 insertions(+), 2190 deletions(-) create mode 100644 gdb/ada-operator.inc create mode 100644 gdb/syscalls/amd64-linux.xml create mode 100644 gdb/syscalls/gdb-syscalls.dtd create mode 100644 gdb/syscalls/i386-linux.xml create mode 100644 gdb/syscalls/ppc-linux.xml create mode 100644 gdb/syscalls/ppc64-linux.xml create mode 100644 gdb/testsuite/gdb.base/catch-syscall.c create mode 100644 gdb/testsuite/gdb.base/catch-syscall.exp create mode 100644 gdb/testsuite/gdb.dwarf2/valop.S create mode 100644 gdb/testsuite/gdb.dwarf2/valop.exp create mode 100644 gdb/testsuite/gdb.reverse/sigall-reverse.c create mode 100644 gdb/testsuite/gdb.reverse/sigall-reverse.exp create mode 100644 gdb/xml-syscall.c create mode 100644 gdb/xml-syscall.h create mode 100644 sim/moxie/moxie-gdb.dts create mode 100644 sim/moxie/sim-main.h First 500 lines of diff: diff --git a/ChangeLog b/ChangeLog index 6565198..fdfa5c9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2009-09-16 Jie Zhang + + * configure.ac: Disable java and boehm-gc for bfin-*-*. + * configure: Regenerate. + 2009-09-08 Ralf Wildenhues * configure.ac: Do not use $extrasub for replacing @if/@endif diff --git a/bfd/ChangeLog b/bfd/ChangeLog index f804d9b..6d91f05 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,41 @@ +2009-09-16 Tristan Gingold + + * mach-o.h (bfd_mach_o_filetype): Add new constants from darwin10. + Reindent. + * mach-o.c (bfd_mach_o_cpu_name): Reindent. + (bfd_mach_o_filetype_name): Complete with new constants. Reindent. + (bfd_mach_o_print_private_header): Use fputs instead of fprintf + when possible to avoid warnings. + (bfd_mach_o_print_section_map): Ditto. + (bfd_mach_o_section_get_entry_size): New function. + (bfd_mach_o_section_get_nbr_indirect): Simplify using the newly + added function. + (bfd_mach_o_print_dysymtab): Print address of indirect symbols. + +2009-09-14 Nick Clifton + + * po/fi.po: Updated Finnish translation. + +2009-09-11 Nick Clifton + + * po/bfd.pot: Updated by the Translation project. + +2009-09-11 Philippe De Muyter + + * binary.c (binary_object_p): Remove bfd_external_binary_architecture + hack. objcopy `-B' (`--binary-architecture') option is now handled + in a generic way. + +2009-09-11 Nick Clifton + + * rs6000-core.c (read_hdr): Fix typo in recent C++ compatibility + changes. + +2009-09-11 Jie Zhang + + * elf32-bfin.c (bfinfdpic_relocs_info_find): Just return + NULL if `ht' is NULL. + 2009-09-09 Martin Thuresson Update soruces to compile cleanly with -Wc++-compat: diff --git a/bfd/binary.c b/bfd/binary.c index 9740756..d264a09 100644 --- a/bfd/binary.c +++ b/bfd/binary.c @@ -42,11 +42,6 @@ a start symbol, an end symbol, and an absolute length symbol. */ #define BIN_SYMS 3 -/* Set by external programs - specifies the BFD architecture and - machine number to be uses when creating binary BFDs. */ -enum bfd_architecture bfd_external_binary_architecture = bfd_arch_unknown; -unsigned long bfd_external_machine = 0; - /* Create a binary object. Invoked via bfd_set_format. */ static bfd_boolean @@ -92,14 +87,6 @@ binary_object_p (bfd *abfd) abfd->tdata.any = (void *) sec; - if (bfd_get_arch_info (abfd) != NULL) - { - if ((bfd_get_arch_info (abfd)->arch == bfd_arch_unknown) - && (bfd_external_binary_architecture != bfd_arch_unknown)) - bfd_set_arch_info (abfd, bfd_lookup_arch - (bfd_external_binary_architecture, bfd_external_machine)); - } - return abfd->xvec; } diff --git a/bfd/elf32-bfin.c b/bfd/elf32-bfin.c index f8e4c19..d4e3bbb 100644 --- a/bfd/elf32-bfin.c +++ b/bfd/elf32-bfin.c @@ -1950,8 +1950,12 @@ bfinfdpic_relocs_info_find (struct htab *ht, const struct bfinfdpic_relocs_info *entry, enum insert_option insert) { - struct bfinfdpic_relocs_info **loc = - (struct bfinfdpic_relocs_info **) htab_find_slot (ht, entry, insert); + struct bfinfdpic_relocs_info **loc; + + if (!ht) + return NULL; + + loc = (struct bfinfdpic_relocs_info **) htab_find_slot (ht, entry, insert); if (! loc) return NULL; diff --git a/bfd/mach-o.c b/bfd/mach-o.c index 5cf531e..747a637 100644 --- a/bfd/mach-o.c +++ b/bfd/mach-o.c @@ -3081,33 +3081,36 @@ bfd_mach_o_get_name (const bfd_mach_o_xlat_name *table, unsigned long val) static bfd_mach_o_xlat_name bfd_mach_o_cpu_name[] = { - { "vax", BFD_MACH_O_CPU_TYPE_VAX}, - { "mc680x0", BFD_MACH_O_CPU_TYPE_MC680x0}, - { "i386", BFD_MACH_O_CPU_TYPE_I386}, - { "mips", BFD_MACH_O_CPU_TYPE_MIPS}, - { "mc98000", BFD_MACH_O_CPU_TYPE_MC98000}, - { "hppa", BFD_MACH_O_CPU_TYPE_HPPA}, - { "arm", BFD_MACH_O_CPU_TYPE_ARM}, - { "mc88000", BFD_MACH_O_CPU_TYPE_MC88000}, - { "sparc", BFD_MACH_O_CPU_TYPE_SPARC}, - { "i860", BFD_MACH_O_CPU_TYPE_I860}, - { "alpha", BFD_MACH_O_CPU_TYPE_ALPHA}, - { "powerpc", BFD_MACH_O_CPU_TYPE_POWERPC}, - { "powerpc_64", BFD_MACH_O_CPU_TYPE_POWERPC_64}, - { "x86_64", BFD_MACH_O_CPU_TYPE_X86_64}, + { "vax", BFD_MACH_O_CPU_TYPE_VAX }, + { "mc680x0", BFD_MACH_O_CPU_TYPE_MC680x0 }, + { "i386", BFD_MACH_O_CPU_TYPE_I386 }, + { "mips", BFD_MACH_O_CPU_TYPE_MIPS }, + { "mc98000", BFD_MACH_O_CPU_TYPE_MC98000 }, + { "hppa", BFD_MACH_O_CPU_TYPE_HPPA }, + { "arm", BFD_MACH_O_CPU_TYPE_ARM }, + { "mc88000", BFD_MACH_O_CPU_TYPE_MC88000 }, + { "sparc", BFD_MACH_O_CPU_TYPE_SPARC }, + { "i860", BFD_MACH_O_CPU_TYPE_I860 }, + { "alpha", BFD_MACH_O_CPU_TYPE_ALPHA }, + { "powerpc", BFD_MACH_O_CPU_TYPE_POWERPC }, + { "powerpc_64", BFD_MACH_O_CPU_TYPE_POWERPC_64 }, + { "x86_64", BFD_MACH_O_CPU_TYPE_X86_64 }, { NULL, 0} }; static bfd_mach_o_xlat_name bfd_mach_o_filetype_name[] = { - { "object", BFD_MACH_O_MH_OBJECT}, - { "execute", BFD_MACH_O_MH_EXECUTE}, - { "fvmlib", BFD_MACH_O_MH_FVMLIB}, - { "core", BFD_MACH_O_MH_CORE}, - { "preload", BFD_MACH_O_MH_PRELOAD}, - { "dylib", BFD_MACH_O_MH_DYLIB}, - { "dylinker", BFD_MACH_O_MH_DYLINKER}, - { "bundle", BFD_MACH_O_MH_BUNDLE}, + { "object", BFD_MACH_O_MH_OBJECT }, + { "execute", BFD_MACH_O_MH_EXECUTE }, + { "fvmlib", BFD_MACH_O_MH_FVMLIB }, + { "core", BFD_MACH_O_MH_CORE }, + { "preload", BFD_MACH_O_MH_PRELOAD }, + { "dylib", BFD_MACH_O_MH_DYLIB }, + { "dylinker", BFD_MACH_O_MH_DYLINKER }, + { "bundle", BFD_MACH_O_MH_BUNDLE }, + { "dylib_stub", BFD_MACH_O_MH_DYLIB_STUB }, + { "dym", BFD_MACH_O_MH_DSYM }, + { "kext_bundle", BFD_MACH_O_MH_KEXT_BUNDLE }, { NULL, 0} }; @@ -3220,7 +3223,7 @@ bfd_mach_o_print_private_header (bfd *abfd, FILE *file) bfd_mach_o_data_struct *mdata = bfd_mach_o_get_data (abfd); bfd_mach_o_header *h = &mdata->header; - fprintf (file, _("Mach-O header:\n")); + fputs (_("Mach-O header:\n"), file); fprintf (file, _(" magic : %08lx\n"), h->magic); fprintf (file, _(" cputype : %08lx (%s)\n"), h->cputype, bfd_mach_o_get_name (bfd_mach_o_cpu_name, h->cputype)); @@ -3232,7 +3235,7 @@ bfd_mach_o_print_private_header (bfd *abfd, FILE *file) fprintf (file, _(" sizeofcmds: %08lx\n"), h->sizeofcmds); fprintf (file, _(" flags : %08lx ("), h->flags); bfd_mach_o_print_flags (bfd_mach_o_header_flags_name, h->flags, file); - fprintf (file, _(")\n")); + fputs (_(")\n"), file); fprintf (file, _(" reserved : %08x\n"), h->reserved); } @@ -3243,8 +3246,8 @@ bfd_mach_o_print_section_map (bfd *abfd, FILE *file) unsigned int i, j; unsigned int sec_nbr = 0; - fprintf (file, _("Segments and Sections:\n")); - fprintf (file, _(" #: Segment name Section name Address\n")); + fputs (_("Segments and Sections:\n"), file); + fputs (_(" #: Segment name Section name Address\n"), file); for (i = 0; i < mdata->header.ncmds; i++) { @@ -3278,33 +3281,42 @@ bfd_mach_o_print_section_map (bfd *abfd, FILE *file) } } -/* Return the number of indirect symbols for a section. +/* Return the size of an entry for section SEC. Must be called only for symbol pointer section and symbol stubs sections. */ static unsigned int -bfd_mach_o_section_get_nbr_indirect (bfd *abfd, bfd_mach_o_section *sec) +bfd_mach_o_section_get_entry_size (bfd *abfd, bfd_mach_o_section *sec) { - unsigned int elsz; - switch (sec->flags & BFD_MACH_O_SECTION_TYPE_MASK) { case BFD_MACH_O_S_NON_LAZY_SYMBOL_POINTERS: case BFD_MACH_O_S_LAZY_SYMBOL_POINTERS: - elsz = bfd_mach_o_wide_p (abfd) ? 8 : 4; - return sec->size / elsz; + return bfd_mach_o_wide_p (abfd) ? 8 : 4; case BFD_MACH_O_S_SYMBOL_STUBS: - elsz = sec->reserved2; - if (elsz) - return sec->size / elsz; - else - return 0; + return sec->reserved2; default: BFD_FAIL (); return 0; } } +/* Return the number of indirect symbols for a section. + Must be called only for symbol pointer section and symbol stubs + sections. */ + +static unsigned int +bfd_mach_o_section_get_nbr_indirect (bfd *abfd, bfd_mach_o_section *sec) +{ + unsigned int elsz; + + elsz = bfd_mach_o_section_get_entry_size (abfd, sec); + if (elsz == 0) + return 0; + else + return sec->size / elsz; +} + static void bfd_mach_o_print_section (bfd *abfd ATTRIBUTE_UNUSED, bfd_mach_o_section *sec, FILE *file) @@ -3515,6 +3527,8 @@ bfd_mach_o_print_dysymtab (bfd *abfd ATTRIBUTE_UNUSED, bfd_mach_o_section *sec = mdata->sections[i]; unsigned int j, first, last; bfd_mach_o_symtab_command *symtab = mdata->symtab; + bfd_vma addr; + bfd_vma entry_size; switch (sec->flags & BFD_MACH_O_SECTION_TYPE_MASK) { @@ -3523,13 +3537,17 @@ bfd_mach_o_print_dysymtab (bfd *abfd ATTRIBUTE_UNUSED, case BFD_MACH_O_S_SYMBOL_STUBS: first = sec->reserved1; last = first + bfd_mach_o_section_get_nbr_indirect (abfd, sec); + addr = sec->addr; + entry_size = bfd_mach_o_section_get_entry_size (abfd, sec); fprintf (file, " for section %s.%s:\n", sec->segname, sec->sectname); for (j = first; j < last; j++) { unsigned int isym = dysymtab->indirect_syms[j]; - fprintf (file, " %5u: 0x%08x (%u)", j, isym, isym); + fprintf (file, " "); + fprintf_vma (file, addr); + fprintf (file, " %5u: 0x%08x", j, isym); if (isym & BFD_MACH_O_INDIRECT_SYMBOL_LOCAL) fprintf (file, " LOCAL"); if (isym & BFD_MACH_O_INDIRECT_SYMBOL_ABS) @@ -3539,6 +3557,7 @@ bfd_mach_o_print_dysymtab (bfd *abfd ATTRIBUTE_UNUSED, && symtab->symbols[isym].symbol.name) fprintf (file, " %s", symtab->symbols[isym].symbol.name); fprintf (file, "\n"); + addr += entry_size; } break; default: diff --git a/bfd/mach-o.h b/bfd/mach-o.h index c1831e4..b86fe07 100644 --- a/bfd/mach-o.h +++ b/bfd/mach-o.h @@ -166,14 +166,17 @@ bfd_mach_o_cpu_subtype; typedef enum bfd_mach_o_filetype { - BFD_MACH_O_MH_OBJECT = 1, - BFD_MACH_O_MH_EXECUTE = 2, - BFD_MACH_O_MH_FVMLIB = 3, - BFD_MACH_O_MH_CORE = 4, - BFD_MACH_O_MH_PRELOAD = 5, - BFD_MACH_O_MH_DYLIB = 6, - BFD_MACH_O_MH_DYLINKER = 7, - BFD_MACH_O_MH_BUNDLE = 8 + BFD_MACH_O_MH_OBJECT = 0x01, + BFD_MACH_O_MH_EXECUTE = 0x02, + BFD_MACH_O_MH_FVMLIB = 0x03, + BFD_MACH_O_MH_CORE = 0x04, + BFD_MACH_O_MH_PRELOAD = 0x05, + BFD_MACH_O_MH_DYLIB = 0x06, + BFD_MACH_O_MH_DYLINKER = 0x07, + BFD_MACH_O_MH_BUNDLE = 0x08, + BFD_MACH_O_MH_DYLIB_STUB = 0x09, + BFD_MACH_O_MH_DSYM = 0x0a, + BFD_MACH_O_MH_KEXT_BUNDLE = 0x0b } bfd_mach_o_filetype; diff --git a/bfd/po/bfd.pot b/bfd/po/bfd.pot index f60bb85..5f00211 100644 --- a/bfd/po/bfd.pot +++ b/bfd/po/bfd.pot @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: bug-binutils@gnu.org\n" -"POT-Creation-Date: 2009-09-07 12:07+0200\n" +"POT-Creation-Date: 2009-09-07 14:05+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -367,7 +367,7 @@ msgstr "" msgid "Relocation `%s' not yet implemented\n" msgstr "" -#: coff-i860.c:605 coff-tic54x.c:398 coffcode.h:5145 +#: coff-i860.c:605 coff-tic54x.c:398 coffcode.h:5143 msgid "%B: warning: illegal symbol index %ld in relocs" msgstr "" @@ -437,56 +437,56 @@ msgstr "" msgid "ignoring reloc %s\n" msgstr "" -#: coffcode.h:962 +#: coffcode.h:960 msgid "%B: warning: COMDAT symbol '%s' does not match section name '%s'" msgstr "" #. Generate a warning message rather using the 'unhandled' #. variable as this will allow some .sys files generate by #. other toolchains to be processed. See bugzilla issue 196. -#: coffcode.h:1178 +#: coffcode.h:1176 msgid "" "%B: Warning: Ignoring section flag IMAGE_SCN_MEM_NOT_PAGED in section %s" msgstr "" -#: coffcode.h:1242 +#: coffcode.h:1240 msgid "%B (%s): Section flag %s (0x%x) ignored" msgstr "" -#: coffcode.h:2384 +#: coffcode.h:2382 #, c-format msgid "Unrecognized TI COFF target id '0x%x'" msgstr "" -#: coffcode.h:2698 +#: coffcode.h:2696 msgid "%B: reloc against a non-existant symbol index: %ld" msgstr "" -#: coffcode.h:3671 +#: coffcode.h:3669 msgid "%B: section %s: string table overflow at offset %ld" msgstr "" -#: coffcode.h:4479 +#: coffcode.h:4477 msgid "%B: warning: line number table read failed" msgstr "" -#: coffcode.h:4509 +#: coffcode.h:4507 msgid "%B: warning: illegal symbol index %ld in line numbers" msgstr "" -#: coffcode.h:4523 +#: coffcode.h:4521 msgid "%B: warning: duplicate line number information for `%s'" msgstr "" -#: coffcode.h:4914 +#: coffcode.h:4912 msgid "%B: Unrecognized storage class %d for %s symbol `%s'" msgstr "" -#: coffcode.h:5040 +#: coffcode.h:5038 msgid "warning: %B: local symbol `%s' has no section" msgstr "" -#: coffcode.h:5183 +#: coffcode.h:5181 msgid "%B: illegal relocation type %d at address 0x%lx" msgstr "" diff --git a/bfd/po/fi.po b/bfd/po/fi.po index c1b622e..301f957 100644 --- a/bfd/po/fi.po +++ b/bfd/po/fi.po @@ -1,14 +1,14 @@ -# translation of bfd-2.19.1.po to Finnish +# translation of bfd-2.19.90.po to Finnish # Copyright © 2007, 2009 Free Software Foundation, Inc. # This file is distributed under the same license as the binutils package. # Jorma Karvonen , 2007, 2009. # msgid "" msgstr "" -"Project-Id-Version: bfd 2.19.1\n" +"Project-Id-Version: bfd 2.19.90\n" "Report-Msgid-Bugs-To: bug-binutils@gnu.org\n" -"POT-Creation-Date: 2008-09-09 15:56+0930\n" -"PO-Revision-Date: 2009-08-12 19:02+0200\n" +"POT-Creation-Date: 2009-09-07 14:05+0200\n" +"PO-Revision-Date: 2009-09-11 21:15+0200\n" "Last-Translator: Jorma Karvonen \n" "Language-Team: Finnish \n" "MIME-Version: 1.0\n" @@ -34,153 +34,153 @@ msgstr "%B: Virheellinen sijoitustyyppi tuotu: %d" msgid "%B: Bad relocation record imported: %d" msgstr "%B: Väärä sijoitustietue tuotu: %d" -#: aoutx.h:1268 aoutx.h:1604 +#: aoutx.h:1271 aoutx.h:1609 #, c-format msgid "%s: can not represent section `%s' in a.out object file format" msgstr "%s: ei voi edustaa lohkoa ’%s’ ”a.out”-objektitiedostomuodossa" -#: aoutx.h:1570 +#: aoutx.h:1575 #, c-format msgid "%s: can not represent section for symbol `%s' in a.out object file format" msgstr "%s: ei voi edustaa lohkoa symbolille ’%s’ ”a.out”-objektitiedostomuodossa" -#: aoutx.h:1572 +#: aoutx.h:1577 msgid "*unknown*" msgstr "*tuntematon*" -#: aoutx.h:3989 aoutx.h:4315 +#: aoutx.h:3994 aoutx.h:4320 msgid "%P: %B: unexpected relocation type\n" msgstr "%P: %B: odottamaton sijoitustyyppi\n" -#: aoutx.h:5349 +#: aoutx.h:5354 #, c-format msgid "%s: relocatable link from %s to %s not supported" msgstr "%s: sijoitettava linkki kohteesta %s kohteeseen %s ei ole tuettu" -#: archive.c:2046 +#: archive.c:2056 msgid "Warning: writing archive was slow: rewriting timestamp\n" msgstr "Varoitus: arkiston kirjoitus oli hidasta: aikaleiman uudelleenkirjoitus\n" -#: archive.c:2309 +#: archive.c:2342 msgid "Reading archive file mod timestamp" msgstr "Luetaan arkistotiedoston muokkausaikaleima" # Intel coff armap -#: archive.c:2333 +#: archive.c:2366 msgid "Writing updated armap timestamp" msgstr "Kirjoitetaan päivitetty ”armap”-aikaleima" -#: bfd.c:368 +#: bfd.c:375 msgid "No error" msgstr "Ei virhettä" -#: bfd.c:369 +#: bfd.c:376 msgid "System call error" msgstr "Järjestelmäkutsuvirhe" -#: bfd.c:370 +#: bfd.c:377 msgid "Invalid bfd target" msgstr "Virheellinen bfd-kohde" -#: bfd.c:371 +#: bfd.c:378 hooks/post-receive -- Repository for Project Archer.