* target.c (debug_to_xfer_memory): If targetdebug is 1, don't
print the whole transfer. (initialize_targets): Update description of "set debug target".
This commit is contained in:
parent
701b08bb0b
commit
333dabeb90
2 changed files with 18 additions and 4 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
2004-03-09 Daniel Jacobowitz <drow@mvista.com>
|
||||||
|
|
||||||
|
* target.c (debug_to_xfer_memory): If targetdebug is 1, don't
|
||||||
|
print the whole transfer.
|
||||||
|
(initialize_targets): Update description of "set debug target".
|
||||||
|
|
||||||
2004-03-09 Daniel Jacobowitz <drow@mvista.com>
|
2004-03-09 Daniel Jacobowitz <drow@mvista.com>
|
||||||
|
|
||||||
* arm-tdep.c (thumb_get_next_pc): Handle Thumb BLX.
|
* arm-tdep.c (thumb_get_next_pc): Handle Thumb BLX.
|
||||||
|
|
14
gdb/target.c
14
gdb/target.c
|
@ -1829,8 +1829,6 @@ debug_to_xfer_memory (CORE_ADDR memaddr, char *myaddr, int len, int write,
|
||||||
(unsigned int) memaddr, /* possable truncate long long */
|
(unsigned int) memaddr, /* possable truncate long long */
|
||||||
len, write ? "write" : "read", retval);
|
len, write ? "write" : "read", retval);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (retval > 0)
|
if (retval > 0)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
@ -1839,7 +1837,15 @@ debug_to_xfer_memory (CORE_ADDR memaddr, char *myaddr, int len, int write,
|
||||||
for (i = 0; i < retval; i++)
|
for (i = 0; i < retval; i++)
|
||||||
{
|
{
|
||||||
if ((((long) &(myaddr[i])) & 0xf) == 0)
|
if ((((long) &(myaddr[i])) & 0xf) == 0)
|
||||||
|
{
|
||||||
|
if (targetdebug < 2 && i > 0)
|
||||||
|
{
|
||||||
|
fprintf_unfiltered (gdb_stdlog, " ...");
|
||||||
|
break;
|
||||||
|
}
|
||||||
fprintf_unfiltered (gdb_stdlog, "\n");
|
fprintf_unfiltered (gdb_stdlog, "\n");
|
||||||
|
}
|
||||||
|
|
||||||
fprintf_unfiltered (gdb_stdlog, " %02x", myaddr[i] & 0xff);
|
fprintf_unfiltered (gdb_stdlog, " %02x", myaddr[i] & 0xff);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -2431,7 +2437,9 @@ initialize_targets (void)
|
||||||
(add_set_cmd ("target", class_maintenance, var_zinteger,
|
(add_set_cmd ("target", class_maintenance, var_zinteger,
|
||||||
(char *) &targetdebug,
|
(char *) &targetdebug,
|
||||||
"Set target debugging.\n\
|
"Set target debugging.\n\
|
||||||
When non-zero, target debugging is enabled.", &setdebuglist),
|
When non-zero, target debugging is enabled. Higher numbers are more\n\
|
||||||
|
verbose. Changes do not take effect until the next \"run\" or \"target\"\n\
|
||||||
|
command.", &setdebuglist),
|
||||||
&showdebuglist);
|
&showdebuglist);
|
||||||
|
|
||||||
add_setshow_boolean_cmd ("trust-readonly-sections", class_support,
|
add_setshow_boolean_cmd ("trust-readonly-sections", class_support,
|
||||||
|
|
Loading…
Reference in a new issue