2011-01-07 Michael Snyder * ax-gdb.c: Adjust some long output strings. * breakpoint.c: Ditto. * charset.c: Ditto. * cp-abi.c: Ditto. * infcall.c: Ditto. * infrun.c: Ditto. * linux-nat.c: Ditto. * solib-pa64.c: Ditto. * solib-som.c: Ditto. Index: ax-gdb.c =================================================================== RCS file: /cvs/src/src/gdb/ax-gdb.c,v retrieving revision 1.82 diff -u -p -r1.82 ax-gdb.c --- ax-gdb.c 5 Jan 2011 22:22:47 -0000 1.82 +++ ax-gdb.c 7 Jan 2011 17:28:08 -0000 @@ -1094,8 +1094,9 @@ gen_ptrdiff (struct agent_expr *ax, stru if (TYPE_LENGTH (TYPE_TARGET_TYPE (value1->type)) != TYPE_LENGTH (TYPE_TARGET_TYPE (value2->type))) - error (_("First argument of `-' is a pointer, but second argument " - "is neither\nan integer nor a pointer of the same type.")); + error (_("\ +First argument of `-' is a pointer, but second argument is neither\n\ +an integer nor a pointer of the same type.")); ax_simple (ax, aop_sub); gen_scale (ax, aop_div_unsigned, value1->type); Index: breakpoint.c =================================================================== RCS file: /cvs/src/src/gdb/breakpoint.c,v retrieving revision 1.524 diff -u -p -r1.524 breakpoint.c --- breakpoint.c 5 Jan 2011 22:22:47 -0000 1.524 +++ breakpoint.c 7 Jan 2011 17:28:17 -0000 @@ -1538,9 +1538,9 @@ update_watchpoint (struct breakpoint *b, } else if (!within_current_scope) { - printf_filtered (_("Watchpoint %d deleted because " - "the program has left the block\n" - "in which its expression is valid.\n"), + printf_filtered (_("\ +Watchpoint %d deleted because the program has left the block\n\ +in which its expression is valid.\n"), b->number); if (b->related_breakpoint) { Index: charset.c =================================================================== RCS file: /cvs/src/src/gdb/charset.c,v retrieving revision 1.39 diff -u -p -r1.39 charset.c --- charset.c 5 Jan 2011 22:22:47 -0000 1.39 +++ charset.c 7 Jan 2011 17:28:17 -0000 @@ -981,8 +981,8 @@ Set the host character set."), _("\ Show the host character set."), _("\ The `host character set' is the one used by the system GDB is running on.\n\ You may only use supersets of ASCII for your host character set; GDB does\n\ -not support any others.\nTo see a list of the character sets GDB supports, \ -type `set host-charset '."), +not support any others.\n\ +To see a list of the character sets GDB supports, type `set host-charset '."), set_host_charset_sfunc, show_host_charset_name, &setlist, &showlist); @@ -993,8 +993,8 @@ Set the target character set."), _("\ Show the target character set."), _("\ The `target character set' is the one used by the program being debugged.\n\ GDB translates characters and strings between the host and target\n\ -character sets as needed.\nTo see a list of the character sets GDB supports, \ -type `set target-charset'"), +character sets as needed.\n +To see a list of the character sets GDB supports, type `set target-charset'"), set_target_charset_sfunc, show_target_charset_name, &setlist, &showlist); Index: cp-abi.c =================================================================== RCS file: /cvs/src/src/gdb/cp-abi.c,v retrieving revision 1.29 diff -u -p -r1.29 cp-abi.c --- cp-abi.c 5 Jan 2011 22:22:47 -0000 1.29 +++ cp-abi.c 7 Jan 2011 17:28:18 -0000 @@ -309,9 +309,9 @@ _initialize_cp_abi (void) register_cp_abi (&auto_cp_abi); switch_to_cp_abi ("auto"); - add_cmd ("cp-abi", class_obscure, set_cp_abi_cmd, - _("Set the ABI used for inspecting C++ objects.\n\"set cp-abi\" " - "with no arguments will list the available ABIs."), + add_cmd ("cp-abi", class_obscure, set_cp_abi_cmd, _("\ +Set the ABI used for inspecting C++ objects.\n\ +\"set cp-abi\" with no arguments will list the available ABIs."), &setlist); add_cmd ("cp-abi", class_obscure, show_cp_abi_cmd, Index: infcall.c =================================================================== RCS file: /cvs/src/src/gdb/infcall.c,v retrieving revision 1.136 diff -u -p -r1.136 infcall.c --- infcall.c 5 Jan 2011 22:22:49 -0000 1.136 +++ infcall.c 7 Jan 2011 17:28:19 -0000 @@ -825,12 +825,11 @@ call_function_by_hand (struct value *fun switch (e.reason) { case RETURN_ERROR: - throw_error (e.error, - _("%s\nAn error occurred while in a " - "function called from GDB.\n Evaluation " - "of the expression containing the function\n " - "(%s) will be abandoned.\nWhen the function " - "is done executing, GDB will silently stop."), + throw_error (e.error, _("%s\n\ +An error occurred while in a function called from GDB.\n\ +Evaluation of the expression containing the function\n\ +(%s) will be abandoned.\n\ +When the function is done executing, GDB will silently stop."), e.message, name); case RETURN_QUIT: default: @@ -874,18 +873,19 @@ call_function_by_hand (struct value *fun /* Keep the dummy frame record, if the user switches back to the thread with the hand-call, we'll need it. */ if (stopped_by_random_signal) - error (_("The program received a signal in another thread while\n" - "making a function call from GDB.\nEvaluation " - "of the expression containing the function\n" - "(%s) will be abandoned.\nWhen the function " - "is done executing, GDB will silently stop."), + error (_("\ +The program received a signal in another thread while\n\ +making a function call from GDB.\n\ +Evaluation of the expression containing the function\n\ +(%s) will be abandoned.\n\ +When the function is done executing, GDB will silently stop."), name); else - error (_("The program stopped in another thread while making " - "a function call from GDB.\nEvaluation " - "of the expression containing the function\n" - "(%s) will be abandoned.\nWhen the function " - "is done executing, GDB will silently stop."), + error (_("\ +The program stopped in another thread while making a function call from GDB.\n\ +Evaluation of the expression containing the function\n\ +(%s) will be abandoned.\n\ +When the function is done executing, GDB will silently stop."), name); } @@ -914,12 +914,12 @@ call_function_by_hand (struct value *fun /* FIXME: Insert a bunch of wrap_here; name can be very long if it's a C++ name with arguments and stuff. */ - error (_("The program being debugged was signaled while " - "in a function called from GDB.\nGDB has restored " - "the context to what it was before the call.\n " - "To change this behavior use \"set unwindonsignal " - "off\".\nEvaluation of the expression containing " - "the function\n(%s) will be abandoned."), + error (_("\ +The program being debugged was signaled while in a function called from GDB.\n\ +GDB has restored the context to what it was before the call.\n\ +To change this behavior use \"set unwindonsignal off\".\n\ +Evaluation of the expression containing the function\n\ +(%s) will be abandoned."), name); } else @@ -932,14 +932,13 @@ call_function_by_hand (struct value *fun /* FIXME: Insert a bunch of wrap_here; name can be very long if it's a C++ name with arguments and stuff. */ - error (_("The program being debugged was signaled while " - "in a function called from GDB.\nGDB remains in " - "the frame where the signal was received.\nTo change " - "this behavior use \"set unwindonsignal on\".\n" - "Evaluation of the expression containing the " - "function\n(%s) will be abandoned.\n" - "When the function is done executing, GDB will " - "silently stop."), + error (_("\ +The program being debugged was signaled while in a function called from GDB.\n\ +GDB remains in the frame where the signal was received.\n\ +To change this behavior use \"set unwindonsignal on\".\n\ +Evaluation of the expression containing the function\n\ +(%s) will be abandoned.\n\ +When the function is done executing, GDB will silently stop."), name); } } @@ -954,18 +953,14 @@ call_function_by_hand (struct value *fun the dummy call. */ restore_infcall_control_state (inf_status); - error (_("The program being debugged entered a " - "std::terminate call, most likely\n" - "caused by an unhandled C++ exception. " - "GDB blocked this call in order\n" - "to prevent the program from being " - "terminated, and has restored the\n" - "context to its original state before the call.\n" - "To change this behaviour use \"set " - "unwind-on-terminating-exception off\".\n" - "Evaluation of the expression " - "containing the function (%s)\n" - "will be abandoned."), + error (_("\ +The program being debugged entered a std::terminate call, most likely\n\ +caused by an unhandled C++ exception. GDB blocked this call in order\n\ +to prevent the program from being terminated, and has restored the\n\ +context to its original state before the call.\n\ +To change this behaviour use \"set unwind-on-terminating-exception off\".\n\ +Evaluation of the expression containing the function (%s)\n\ +will be abandoned."), name); } else if (stop_stack_dummy == STOP_NONE) @@ -985,13 +980,11 @@ call_function_by_hand (struct value *fun someday this will be implemented (it would not be easy). */ /* FIXME: Insert a bunch of wrap_here; name can be very long if it's a C++ name with arguments and stuff. */ - error (_("The program being debugged stopped " - "while in a function called from GDB.\n" - "Evaluation of the expression " - "containing the function\n" - "(%s) will be abandoned.\n" - "When the function is done executing, " - "GDB will silently stop."), + error (_("\ +The program being debugged stopped while in a function called from GDB.\n\ +Evaluation of the expression containing the function\n\ +(%s) will be abandoned.\n\ +When the function is done executing, GDB will silently stop."), name); } Index: infrun.c =================================================================== RCS file: /cvs/src/src/gdb/infrun.c,v retrieving revision 1.465 diff -u -p -r1.465 infrun.c --- infrun.c 6 Jan 2011 14:58:58 -0000 1.465 +++ infrun.c 7 Jan 2011 17:28:25 -0000 @@ -1623,11 +1623,10 @@ resume (int step, enum target_signal sig if (gdbarch_skip_permanent_breakpoint_p (gdbarch)) gdbarch_skip_permanent_breakpoint (gdbarch, regcache); else - error (_("The program is stopped at a permanent " - "breakpoint, but GDB does not know\n" - "how to step past a permanent breakpoint " - "on this architecture. Try using\na command " - "like `return' or `jump' to continue execution.")); + error (_("\ +The program is stopped at a permanent breakpoint, but GDB does not know\n\ +how to step past a permanent breakpoint on this architecture. Try using\n\ +a command like `return' or `jump' to continue execution.")); } /* If enabled, step over breakpoints by executing a copy of the Index: linux-nat.c =================================================================== RCS file: /cvs/src/src/gdb/linux-nat.c,v retrieving revision 1.189 diff -u -p -r1.189 linux-nat.c --- linux-nat.c 5 Jan 2011 22:22:49 -0000 1.189 +++ linux-nat.c 7 Jan 2011 17:28:29 -0000 @@ -686,12 +686,11 @@ linux_child_follow_fork (struct target_o the parent stays blocked. If we're telling the parent to run in the foreground, the user will not be able to ctrl-c to get back the terminal, effectively hanging the debug session. */ - fprintf_filtered (gdb_stderr, - _("Can not resume the parent process " - "over vfork in the foreground while\n" - "holding the child stopped. " - "Try \"set detach-on-fork\" or " - "\"set schedule-multiple\".\n")); + fprintf_filtered (gdb_stderr, _("\ +Can not resume the parent process over vfork in the foreground while\n\ +holding the child stopped. Try \"set detach-on-fork\" or \ +\"set schedule-multiple\".\n")); + /* FIXME output string > 80 columns. */ return 1; } Index: solib-pa64.c =================================================================== RCS file: /cvs/src/src/gdb/solib-pa64.c,v retrieving revision 1.27 diff -u -p -r1.27 solib-pa64.c --- solib-pa64.c 5 Jan 2011 22:22:50 -0000 1.27 +++ solib-pa64.c 7 Jan 2011 17:28:30 -0000 @@ -360,10 +360,11 @@ pa64_solib_create_inferior_hook (int fro /* If the libraries were not mapped private, warn the user. */ if ((dld_cache.dld_flags & DT_HP_DEBUG_PRIVATE) == 0) warning - (_("Private mapping of shared library text was not specified\n" - "by the executable; setting a breakpoint in a shared library which\n" - "is not privately mapped will not work. See the HP-UX 11i v3 chatr\n" - "manpage for methods to privately map shared library text.")); + (_("\ +Private mapping of shared library text was not specified\n\ +by the executable; setting a breakpoint in a shared library which\n\ +is not privately mapped will not work. See the HP-UX 11i v3 chatr\n\ +manpage for methods to privately map shared library text.")); /* Turn on the flags we care about. */ dld_cache.dld_flags |= DT_HP_DEBUG_CALLBACK; Index: solib-som.c =================================================================== RCS file: /cvs/src/src/gdb/solib-som.c,v retrieving revision 1.32 diff -u -p -r1.32 solib-som.c --- solib-som.c 5 Jan 2011 22:22:50 -0000 1.32 +++ solib-som.c 7 Jan 2011 17:28:30 -0000 @@ -225,9 +225,10 @@ som_solib_create_inferior_hook (int from status = target_write_memory (anaddr, buf, 4); if (status != 0) { - warning (_("Unable to write __d_pid.\n" - "Suggest linking with /opt/langtools/lib/end.o.\n" - "GDB will be unable to track shl_load/shl_unload calls")); + warning (_("\ +Unable to write __d_pid.\n\ +Suggest linking with /opt/langtools/lib/end.o.\n\ +GDB will be unable to track shl_load/shl_unload calls")); goto keep_going; } @@ -245,9 +246,10 @@ som_solib_create_inferior_hook (int from msymbol = lookup_minimal_symbol ("__d_trap", NULL, symfile_objfile); if (msymbol == NULL) { - warning (_("Unable to find _DLD_HOOK symbol in object file.\n" - "Suggest linking with /opt/langtools/lib/end.o.\n" - "GDB will be unable to track shl_load/shl_unload calls")); + warning (_("\ +Unable to find _DLD_HOOK symbol in object file.\n\ +Suggest linking with /opt/langtools/lib/end.o.\n\ +GDB will be unable to track shl_load/shl_unload calls")); goto keep_going; } anaddr = SYMBOL_VALUE_ADDRESS (msymbol); @@ -267,9 +269,10 @@ som_solib_create_inferior_hook (int from msymbol = lookup_minimal_symbol ("__dld_hook", NULL, symfile_objfile); if (msymbol == NULL) { - warning (_("Unable to find __dld_hook symbol in object file.\n" - "Suggest linking with /opt/langtools/lib/end.o.\n" - "GDB will be unable to track shl_load/shl_unload calls")); + warning (_("\ +Unable to find __dld_hook symbol in object file.\n\ +Suggest linking with /opt/langtools/lib/end.o.\n\ +GDB will be unable to track shl_load/shl_unload calls")); goto keep_going; } anaddr = SYMBOL_VALUE_ADDRESS (msymbol); @@ -280,9 +283,10 @@ som_solib_create_inferior_hook (int from msymbol = lookup_minimal_symbol ("__d_trap", NULL, symfile_objfile); if (msymbol == NULL) { - warning (_("Unable to find __dld_d_trap symbol in object file.\n" - "Suggest linking with /opt/langtools/lib/end.o.\n" - "GDB will be unable to track shl_load/shl_unload calls")); + warning (_("\ +Unable to find __dld_d_trap symbol in object file.\n\ +Suggest linking with /opt/langtools/lib/end.o.\n\ +GDB will be unable to track shl_load/shl_unload calls")); goto keep_going; } create_solib_event_breakpoint (target_gdbarch, @@ -318,10 +322,11 @@ keep_going: && (dl_header.flags & SHLIB_TEXT_PRIVATE_ENABLE) == 0 && (dld_flags & DLD_FLAGS_MAPPRIVATE) == 0) warning - (_("Private mapping of shared library text was not specified\n" - "by the executable; setting a breakpoint in a shared library which\n" - "is not privately mapped will not work. See the HP-UX 11i v3 chatr\n" - "manpage for methods to privately map shared library text.")); + (_("\ +Private mapping of shared library text was not specified\n\ +by the executable; setting a breakpoint in a shared library which\n\ +is not privately mapped will not work. See the HP-UX 11i v3 chatr\n\ +manpage for methods to privately map shared library text.")); /* Turn on the flags we care about. */ if (get_hpux_major_release () < 11)