mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-10-18 21:34:13 +08:00
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:
@ -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>
|
2011-01-06 Tom Tromey <tromey@redhat.com>
|
||||||
|
|
||||||
PR python/12367:
|
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))
|
if (TYPE_LENGTH (TYPE_TARGET_TYPE (value1->type))
|
||||||
!= TYPE_LENGTH (TYPE_TARGET_TYPE (value2->type)))
|
!= TYPE_LENGTH (TYPE_TARGET_TYPE (value2->type)))
|
||||||
error (_("First argument of `-' is a pointer, but second argument "
|
error (_("\
|
||||||
"is neither\nan integer nor a pointer of the same type."));
|
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);
|
ax_simple (ax, aop_sub);
|
||||||
gen_scale (ax, aop_div_unsigned, value1->type);
|
gen_scale (ax, aop_div_unsigned, value1->type);
|
||||||
|
@ -1538,9 +1538,9 @@ update_watchpoint (struct breakpoint *b, int reparse)
|
|||||||
}
|
}
|
||||||
else if (!within_current_scope)
|
else if (!within_current_scope)
|
||||||
{
|
{
|
||||||
printf_filtered (_("Watchpoint %d deleted because "
|
printf_filtered (_("\
|
||||||
"the program has left the block\n"
|
Watchpoint %d deleted because the program has left the block\n\
|
||||||
"in which its expression is valid.\n"),
|
in which its expression is valid.\n"),
|
||||||
b->number);
|
b->number);
|
||||||
if (b->related_breakpoint)
|
if (b->related_breakpoint)
|
||||||
{
|
{
|
||||||
|
@ -981,8 +981,8 @@ Set the host character set."), _("\
|
|||||||
Show 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\
|
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\
|
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, \
|
not support any others.\n\
|
||||||
type `set host-charset <TAB>'."),
|
To see a list of the character sets GDB supports, type `set host-charset <TAB>'."),
|
||||||
set_host_charset_sfunc,
|
set_host_charset_sfunc,
|
||||||
show_host_charset_name,
|
show_host_charset_name,
|
||||||
&setlist, &showlist);
|
&setlist, &showlist);
|
||||||
@ -993,8 +993,8 @@ Set the target character set."), _("\
|
|||||||
Show the target character set."), _("\
|
Show the target character set."), _("\
|
||||||
The `target character set' is the one used by the program being debugged.\n\
|
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\
|
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, \
|
character sets as needed.\n
|
||||||
type `set target-charset'<TAB>"),
|
To see a list of the character sets GDB supports, type `set target-charset'<TAB>"),
|
||||||
set_target_charset_sfunc,
|
set_target_charset_sfunc,
|
||||||
show_target_charset_name,
|
show_target_charset_name,
|
||||||
&setlist, &showlist);
|
&setlist, &showlist);
|
||||||
|
@ -309,9 +309,9 @@ _initialize_cp_abi (void)
|
|||||||
register_cp_abi (&auto_cp_abi);
|
register_cp_abi (&auto_cp_abi);
|
||||||
switch_to_cp_abi ("auto");
|
switch_to_cp_abi ("auto");
|
||||||
|
|
||||||
add_cmd ("cp-abi", class_obscure, set_cp_abi_cmd,
|
add_cmd ("cp-abi", class_obscure, set_cp_abi_cmd, _("\
|
||||||
_("Set the ABI used for inspecting C++ objects.\n\"set cp-abi\" "
|
Set the ABI used for inspecting C++ objects.\n\
|
||||||
"with no arguments will list the available ABIs."),
|
\"set cp-abi\" with no arguments will list the available ABIs."),
|
||||||
&setlist);
|
&setlist);
|
||||||
|
|
||||||
add_cmd ("cp-abi", class_obscure, show_cp_abi_cmd,
|
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)
|
switch (e.reason)
|
||||||
{
|
{
|
||||||
case RETURN_ERROR:
|
case RETURN_ERROR:
|
||||||
throw_error (e.error,
|
throw_error (e.error, _("%s\n\
|
||||||
_("%s\nAn error occurred while in a "
|
An error occurred while in a function called from GDB.\n\
|
||||||
"function called from GDB.\n Evaluation "
|
Evaluation of the expression containing the function\n\
|
||||||
"of the expression containing the function\n "
|
(%s) will be abandoned.\n\
|
||||||
"(%s) will be abandoned.\nWhen the function "
|
When the function is done executing, GDB will silently stop."),
|
||||||
"is done executing, GDB will silently stop."),
|
|
||||||
e.message, name);
|
e.message, name);
|
||||||
case RETURN_QUIT:
|
case RETURN_QUIT:
|
||||||
default:
|
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
|
/* Keep the dummy frame record, if the user switches back to the
|
||||||
thread with the hand-call, we'll need it. */
|
thread with the hand-call, we'll need it. */
|
||||||
if (stopped_by_random_signal)
|
if (stopped_by_random_signal)
|
||||||
error (_("The program received a signal in another thread while\n"
|
error (_("\
|
||||||
"making a function call from GDB.\nEvaluation "
|
The program received a signal in another thread while\n\
|
||||||
"of the expression containing the function\n"
|
making a function call from GDB.\n\
|
||||||
"(%s) will be abandoned.\nWhen the function "
|
Evaluation of the expression containing the function\n\
|
||||||
"is done executing, GDB will silently stop."),
|
(%s) will be abandoned.\n\
|
||||||
|
When the function is done executing, GDB will silently stop."),
|
||||||
name);
|
name);
|
||||||
else
|
else
|
||||||
error (_("The program stopped in another thread while making "
|
error (_("\
|
||||||
"a function call from GDB.\nEvaluation "
|
The program stopped in another thread while making a function call from GDB.\n\
|
||||||
"of the expression containing the function\n"
|
Evaluation of the expression containing the function\n\
|
||||||
"(%s) will be abandoned.\nWhen the function "
|
(%s) will be abandoned.\n\
|
||||||
"is done executing, GDB will silently stop."),
|
When the function is done executing, GDB will silently stop."),
|
||||||
name);
|
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
|
/* FIXME: Insert a bunch of wrap_here; name can be very
|
||||||
long if it's a C++ name with arguments and stuff. */
|
long if it's a C++ name with arguments and stuff. */
|
||||||
error (_("The program being debugged was signaled while "
|
error (_("\
|
||||||
"in a function called from GDB.\nGDB has restored "
|
The program being debugged was signaled while in a function called from GDB.\n\
|
||||||
"the context to what it was before the call.\n "
|
GDB has restored the context to what it was before the call.\n\
|
||||||
"To change this behavior use \"set unwindonsignal "
|
To change this behavior use \"set unwindonsignal off\".\n\
|
||||||
"off\".\nEvaluation of the expression containing "
|
Evaluation of the expression containing the function\n\
|
||||||
"the function\n(%s) will be abandoned."),
|
(%s) will be abandoned."),
|
||||||
name);
|
name);
|
||||||
}
|
}
|
||||||
else
|
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
|
/* FIXME: Insert a bunch of wrap_here; name can be very
|
||||||
long if it's a C++ name with arguments and stuff. */
|
long if it's a C++ name with arguments and stuff. */
|
||||||
error (_("The program being debugged was signaled while "
|
error (_("\
|
||||||
"in a function called from GDB.\nGDB remains in "
|
The program being debugged was signaled while in a function called from GDB.\n\
|
||||||
"the frame where the signal was received.\nTo change "
|
GDB remains in the frame where the signal was received.\n\
|
||||||
"this behavior use \"set unwindonsignal on\".\n"
|
To change this behavior use \"set unwindonsignal on\".\n\
|
||||||
"Evaluation of the expression containing the "
|
Evaluation of the expression containing the function\n\
|
||||||
"function\n(%s) will be abandoned.\n"
|
(%s) will be abandoned.\n\
|
||||||
"When the function is done executing, GDB will "
|
When the function is done executing, GDB will silently stop."),
|
||||||
"silently stop."),
|
|
||||||
name);
|
name);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -954,18 +953,14 @@ call_function_by_hand (struct value *function, int nargs, struct value **args)
|
|||||||
the dummy call. */
|
the dummy call. */
|
||||||
restore_infcall_control_state (inf_status);
|
restore_infcall_control_state (inf_status);
|
||||||
|
|
||||||
error (_("The program being debugged entered a "
|
error (_("\
|
||||||
"std::terminate call, most likely\n"
|
The program being debugged entered a std::terminate call, most likely\n\
|
||||||
"caused by an unhandled C++ exception. "
|
caused by an unhandled C++ exception. GDB blocked this call in order\n\
|
||||||
"GDB blocked this call in order\n"
|
to prevent the program from being terminated, and has restored the\n\
|
||||||
"to prevent the program from being "
|
context to its original state before the call.\n\
|
||||||
"terminated, and has restored the\n"
|
To change this behaviour use \"set unwind-on-terminating-exception off\".\n\
|
||||||
"context to its original state before the call.\n"
|
Evaluation of the expression containing the function (%s)\n\
|
||||||
"To change this behaviour use \"set "
|
will be abandoned."),
|
||||||
"unwind-on-terminating-exception off\".\n"
|
|
||||||
"Evaluation of the expression "
|
|
||||||
"containing the function (%s)\n"
|
|
||||||
"will be abandoned."),
|
|
||||||
name);
|
name);
|
||||||
}
|
}
|
||||||
else if (stop_stack_dummy == STOP_NONE)
|
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). */
|
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
|
/* FIXME: Insert a bunch of wrap_here; name can be very long if it's
|
||||||
a C++ name with arguments and stuff. */
|
a C++ name with arguments and stuff. */
|
||||||
error (_("The program being debugged stopped "
|
error (_("\
|
||||||
"while in a function called from GDB.\n"
|
The program being debugged stopped while in a function called from GDB.\n\
|
||||||
"Evaluation of the expression "
|
Evaluation of the expression containing the function\n\
|
||||||
"containing the function\n"
|
(%s) will be abandoned.\n\
|
||||||
"(%s) will be abandoned.\n"
|
When the function is done executing, GDB will silently stop."),
|
||||||
"When the function is done executing, "
|
|
||||||
"GDB will silently stop."),
|
|
||||||
name);
|
name);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1623,11 +1623,10 @@ resume (int step, enum target_signal sig)
|
|||||||
if (gdbarch_skip_permanent_breakpoint_p (gdbarch))
|
if (gdbarch_skip_permanent_breakpoint_p (gdbarch))
|
||||||
gdbarch_skip_permanent_breakpoint (gdbarch, regcache);
|
gdbarch_skip_permanent_breakpoint (gdbarch, regcache);
|
||||||
else
|
else
|
||||||
error (_("The program is stopped at a permanent "
|
error (_("\
|
||||||
"breakpoint, but GDB does not know\n"
|
The program is stopped at a permanent breakpoint, but GDB does not know\n\
|
||||||
"how to step past a permanent breakpoint "
|
how to step past a permanent breakpoint on this architecture. Try using\n\
|
||||||
"on this architecture. Try using\na command "
|
a command like `return' or `jump' to continue execution."));
|
||||||
"like `return' or `jump' to continue execution."));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* If enabled, step over breakpoints by executing a copy of the
|
/* 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
|
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
|
in the foreground, the user will not be able to ctrl-c to get
|
||||||
back the terminal, effectively hanging the debug session. */
|
back the terminal, effectively hanging the debug session. */
|
||||||
fprintf_filtered (gdb_stderr,
|
fprintf_filtered (gdb_stderr, _("\
|
||||||
_("Can not resume the parent process "
|
Can not resume the parent process over vfork in the foreground while\n\
|
||||||
"over vfork in the foreground while\n"
|
holding the child stopped. Try \"set detach-on-fork\" or \
|
||||||
"holding the child stopped. "
|
\"set schedule-multiple\".\n"));
|
||||||
"Try \"set detach-on-fork\" or "
|
/* FIXME output string > 80 columns. */
|
||||||
"\"set schedule-multiple\".\n"));
|
|
||||||
return 1;
|
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 the libraries were not mapped private, warn the user. */
|
||||||
if ((dld_cache.dld_flags & DT_HP_DEBUG_PRIVATE) == 0)
|
if ((dld_cache.dld_flags & DT_HP_DEBUG_PRIVATE) == 0)
|
||||||
warning
|
warning
|
||||||
(_("Private mapping of shared library text was not specified\n"
|
(_("\
|
||||||
"by the executable; setting a breakpoint in a shared library which\n"
|
Private mapping of shared library text was not specified\n\
|
||||||
"is not privately mapped will not work. See the HP-UX 11i v3 chatr\n"
|
by the executable; setting a breakpoint in a shared library which\n\
|
||||||
"manpage for methods to privately map shared library text."));
|
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. */
|
/* Turn on the flags we care about. */
|
||||||
dld_cache.dld_flags |= DT_HP_DEBUG_CALLBACK;
|
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);
|
status = target_write_memory (anaddr, buf, 4);
|
||||||
if (status != 0)
|
if (status != 0)
|
||||||
{
|
{
|
||||||
warning (_("Unable to write __d_pid.\n"
|
warning (_("\
|
||||||
"Suggest linking with /opt/langtools/lib/end.o.\n"
|
Unable to write __d_pid.\n\
|
||||||
"GDB will be unable to track shl_load/shl_unload calls"));
|
Suggest linking with /opt/langtools/lib/end.o.\n\
|
||||||
|
GDB will be unable to track shl_load/shl_unload calls"));
|
||||||
goto keep_going;
|
goto keep_going;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -245,9 +246,10 @@ som_solib_create_inferior_hook (int from_tty)
|
|||||||
msymbol = lookup_minimal_symbol ("__d_trap", NULL, symfile_objfile);
|
msymbol = lookup_minimal_symbol ("__d_trap", NULL, symfile_objfile);
|
||||||
if (msymbol == NULL)
|
if (msymbol == NULL)
|
||||||
{
|
{
|
||||||
warning (_("Unable to find _DLD_HOOK symbol in object file.\n"
|
warning (_("\
|
||||||
"Suggest linking with /opt/langtools/lib/end.o.\n"
|
Unable to find _DLD_HOOK symbol in object file.\n\
|
||||||
"GDB will be unable to track shl_load/shl_unload calls"));
|
Suggest linking with /opt/langtools/lib/end.o.\n\
|
||||||
|
GDB will be unable to track shl_load/shl_unload calls"));
|
||||||
goto keep_going;
|
goto keep_going;
|
||||||
}
|
}
|
||||||
anaddr = SYMBOL_VALUE_ADDRESS (msymbol);
|
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);
|
msymbol = lookup_minimal_symbol ("__dld_hook", NULL, symfile_objfile);
|
||||||
if (msymbol == NULL)
|
if (msymbol == NULL)
|
||||||
{
|
{
|
||||||
warning (_("Unable to find __dld_hook symbol in object file.\n"
|
warning (_("\
|
||||||
"Suggest linking with /opt/langtools/lib/end.o.\n"
|
Unable to find __dld_hook symbol in object file.\n\
|
||||||
"GDB will be unable to track shl_load/shl_unload calls"));
|
Suggest linking with /opt/langtools/lib/end.o.\n\
|
||||||
|
GDB will be unable to track shl_load/shl_unload calls"));
|
||||||
goto keep_going;
|
goto keep_going;
|
||||||
}
|
}
|
||||||
anaddr = SYMBOL_VALUE_ADDRESS (msymbol);
|
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);
|
msymbol = lookup_minimal_symbol ("__d_trap", NULL, symfile_objfile);
|
||||||
if (msymbol == NULL)
|
if (msymbol == NULL)
|
||||||
{
|
{
|
||||||
warning (_("Unable to find __dld_d_trap symbol in object file.\n"
|
warning (_("\
|
||||||
"Suggest linking with /opt/langtools/lib/end.o.\n"
|
Unable to find __dld_d_trap symbol in object file.\n\
|
||||||
"GDB will be unable to track shl_load/shl_unload calls"));
|
Suggest linking with /opt/langtools/lib/end.o.\n\
|
||||||
|
GDB will be unable to track shl_load/shl_unload calls"));
|
||||||
goto keep_going;
|
goto keep_going;
|
||||||
}
|
}
|
||||||
create_solib_event_breakpoint (target_gdbarch,
|
create_solib_event_breakpoint (target_gdbarch,
|
||||||
@ -318,10 +322,11 @@ keep_going:
|
|||||||
&& (dl_header.flags & SHLIB_TEXT_PRIVATE_ENABLE) == 0
|
&& (dl_header.flags & SHLIB_TEXT_PRIVATE_ENABLE) == 0
|
||||||
&& (dld_flags & DLD_FLAGS_MAPPRIVATE) == 0)
|
&& (dld_flags & DLD_FLAGS_MAPPRIVATE) == 0)
|
||||||
warning
|
warning
|
||||||
(_("Private mapping of shared library text was not specified\n"
|
(_("\
|
||||||
"by the executable; setting a breakpoint in a shared library which\n"
|
Private mapping of shared library text was not specified\n\
|
||||||
"is not privately mapped will not work. See the HP-UX 11i v3 chatr\n"
|
by the executable; setting a breakpoint in a shared library which\n\
|
||||||
"manpage for methods to privately map shared library text."));
|
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. */
|
/* Turn on the flags we care about. */
|
||||||
if (get_hpux_major_release () < 11)
|
if (get_hpux_major_release () < 11)
|
||||||
|
Reference in New Issue
Block a user