diff options
author | Kung Hsu <kung@cygnus> | 1995-08-11 20:15:21 +0000 |
---|---|---|
committer | Kung Hsu <kung@cygnus> | 1995-08-11 20:15:21 +0000 |
commit | f21c9aecae7c246f00d3f5d6207aa9ffca31522a (patch) | |
tree | cc443f2e8d5cf98a6cd2019a12f510774ce36241 /gdb | |
parent | e334d7ea9d7c09c55f53a5647992e074684b62c8 (diff) | |
download | gdb-f21c9aecae7c246f00d3f5d6207aa9ffca31522a.zip gdb-f21c9aecae7c246f00d3f5d6207aa9ffca31522a.tar.gz gdb-f21c9aecae7c246f00d3f5d6207aa9ffca31522a.tar.bz2 |
* symtab.c (list_symbols): if break command set breakpoint on matched
symbol.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/symtab.c | 9 |
2 files changed, 13 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 97ed95d..a0addb1 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +Fri Aug 11 13:04:32 1995 Kung Hsu <kung@mexican.cygnus.com> + + * symtab.c (list_symbols): if break command set breakpoint on matched + symbol. + Wed Aug 9 18:59:05 1995 Fred Fish <fnf@cygnus.com> * defs.h (strchr, strrchr, strstr, strtok, strerror): Enclose in diff --git a/gdb/symtab.c b/gdb/symtab.c index cdb1793..a0337e3 100644 --- a/gdb/symtab.c +++ b/gdb/symtab.c @@ -16,7 +16,7 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software -Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ +Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include "defs.h" #include "symtab.h" @@ -2871,6 +2871,13 @@ list_symbols (regexp, class, bpt, from_tty) (struct block *) NULL, VAR_NAMESPACE, 0, (struct symtab **) NULL) == NULL) { + if (bpt) + { + break_command (SYMBOL_NAME (msymbol), from_tty); + printf_filtered ("<function, no debug info>%s;\n", + SYMBOL_SOURCE_NAME (msymbol)); + continue; + } if (!found_in_file) { printf_filtered ("\nNon-debugging symbols:\n"); |