2011-01-07 Michael Snyder <msnyder@vmware.com>
* 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.
This commit is contained in:
parent
06e65f4414
commit
ac74f77061
|
@ -1,3 +1,15 @@
|
|||
2011-01-07 Michael Snyder <msnyder@vmware.com>
|
||||
|
||||
* 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.
|
||||
|
||||
2011-01-06 Tom Tromey <tromey@redhat.com>
|
||||
|
||||
PR python/12367:
|
||||
|
|
|
@ -1094,8 +1094,9 @@ gen_ptrdiff (struct agent_expr *ax, struct axs_value *value,
|
|||
|
||||
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);
|
||||
|
|
|
@ -1538,9 +1538,9 @@ update_watchpoint (struct breakpoint *b, int reparse)
|
|||
}
|
||||
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)
|
||||
{
|
||||
|
|
|
@ -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 <TAB>'."),
|
||||
not support any others.\n\
|
||||
To see a list of the character sets GDB supports, type `set host-charset <TAB>'."),
|
||||
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'<TAB>"),
|
||||
character sets as needed.\n
|
||||
To see a list of the character sets GDB supports, type `set target-charset'<TAB>"),
|
||||
set_target_charset_sfunc,
|
||||
show_target_charset_name,
|
||||
&setlist, &showlist);
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -825,12 +825,11 @@ call_function_by_hand (struct value *function, int nargs, struct value **args)
|
|||
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 *function, int nargs, struct value **args)
|
|||
/* 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 *function, int nargs, struct value **args)
|
|||
|
||||
/* 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 *function, int nargs, struct value **args)
|
|||
|
||||
/* 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 *function, int nargs, struct value **args)
|
|||
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 *function, int nargs, struct value **args)
|
|||
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);
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -686,12 +686,11 @@ linux_child_follow_fork (struct target_ops *ops, int follow_child)
|
|||
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;
|
||||
}
|
||||
|
||||
|
|
|
@ -360,10 +360,11 @@ pa64_solib_create_inferior_hook (int from_tty)
|
|||
/* 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;
|
||||
|
|
|
@ -225,9 +225,10 @@ som_solib_create_inferior_hook (int from_tty)
|
|||
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_tty)
|
|||
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_tty)
|
|||
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_tty)
|
|||
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)
|
||||
|
|
Loading…
Reference in New Issue