diff options
author | Eli Zaretskii <eliz@gnu.org> | 2000-04-13 10:22:22 +0000 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2000-04-13 10:22:22 +0000 |
commit | 010a3cd9559edb01d09c7bfb7b11fca26b8bc602 (patch) | |
tree | 8920f386d5a630ac547a2b46babc9639130d9327 | |
parent | 413ccac7ea09cb01801ef96ecc861278afc3574a (diff) | |
download | gdb-010a3cd9559edb01d09c7bfb7b11fca26b8bc602.zip gdb-010a3cd9559edb01d09c7bfb7b11fca26b8bc602.tar.gz gdb-010a3cd9559edb01d09c7bfb7b11fca26b8bc602.tar.bz2 |
* infrun.c (proceed, normal_stop): Change the error message about
failure to insert breakpoints/watchpoints so that it makes sense
even if ptrace is not used or no other processes can be active.
-rw-r--r-- | gdb/ChangeLog | 6 | ||||
-rw-r--r-- | gdb/infrun.c | 12 |
2 files changed, 14 insertions, 4 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 5b53a55..0439393 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2000-04-13 Eli Zaretskii <eliz@is.elta.co.il> + + * infrun.c (proceed, normal_stop): Change the error message about + failure to insert breakpoints/watchpoints so that it makes sense + even if ptrace is not used or no other processes can be active. + Thu Apr 13 13:24:27 2000 Andrew Cagney <cagney@b1.cygnus.com> * configure.in: Add --enable-maintainer-mode. diff --git a/gdb/infrun.c b/gdb/infrun.c index 594523f..280f01e 100644 --- a/gdb/infrun.c +++ b/gdb/infrun.c @@ -1044,9 +1044,11 @@ proceed (CORE_ADDR addr, enum target_signal siggnal, int step) int temp = insert_breakpoints (); if (temp) { - print_sys_errmsg ("ptrace", temp); + print_sys_errmsg ("insert_breakpoints", temp); error ("Cannot insert breakpoints.\n\ -The same program may be running in another process."); +The same program may be running in another process,\n\ +or you may have requested too many hardware\n\ +breakpoints and/or watchpoints.\n"); } breakpoints_inserted = 1; @@ -3383,9 +3385,11 @@ normal_stop (void) if (breakpoints_failed) { target_terminal_ours_for_output (); - print_sys_errmsg ("ptrace", breakpoints_failed); + print_sys_errmsg ("While inserting breakpoints", breakpoints_failed); printf_filtered ("Stopped; cannot insert breakpoints.\n\ -The same program may be running in another process.\n"); +The same program may be running in another process,\n\ +or you may have requested too many hardware breakpoints\n\ +and/or watchpoints.\n"); } if (target_has_execution && breakpoints_inserted) |