From 333dabeb90fac0370d8a27d76b7d22cfa9834b72 Mon Sep 17 00:00:00 2001 From: Daniel Jacobowitz Date: Tue, 9 Mar 2004 16:16:52 +0000 Subject: * target.c (debug_to_xfer_memory): If targetdebug is 1, don't print the whole transfer. (initialize_targets): Update description of "set debug target". --- gdb/ChangeLog | 6 ++++++ gdb/target.c | 16 ++++++++++++---- 2 files changed, 18 insertions(+), 4 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 56fc35d..b00388a 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,11 @@ 2004-03-09 Daniel Jacobowitz + * 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 + * arm-tdep.c (thumb_get_next_pc): Handle Thumb BLX. 2004-03-08 Nathan J. Williams diff --git a/gdb/target.c b/gdb/target.c index ff47ac1..d4ff6c0 100644 --- a/gdb/target.c +++ b/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 */ len, write ? "write" : "read", retval); - - if (retval > 0) { 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++) { if ((((long) &(myaddr[i])) & 0xf) == 0) - fprintf_unfiltered (gdb_stdlog, "\n"); + { + if (targetdebug < 2 && i > 0) + { + fprintf_unfiltered (gdb_stdlog, " ..."); + break; + } + fprintf_unfiltered (gdb_stdlog, "\n"); + } + fprintf_unfiltered (gdb_stdlog, " %02x", myaddr[i] & 0xff); } } @@ -2431,7 +2437,9 @@ initialize_targets (void) (add_set_cmd ("target", class_maintenance, var_zinteger, (char *) &targetdebug, "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); add_setshow_boolean_cmd ("trust-readonly-sections", class_support, -- cgit v1.1