From 3bcbaac54041e1226ae28cf918d4f5daf1a899af Mon Sep 17 00:00:00 2001 From: Daniel Jacobowitz Date: Wed, 4 Dec 2002 03:13:22 +0000 Subject: [PATCH] * gdb.base/maint.exp: Only dump symbols from one source file or objfile. --- gdb/testsuite/ChangeLog | 5 +++++ gdb/testsuite/gdb.base/maint.exp | 23 +++++++++-------------- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index dd8fe24750..4bc87e22dd 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2002-12-03 Daniel Jacobowitz + + * gdb.base/maint.exp: Only dump symbols from one source file + or objfile. + 2002-12-03 Daniel Jacobowitz * gdb.base/step-test.exp: Allow MIPS to return to the line of a diff --git a/gdb/testsuite/gdb.base/maint.exp b/gdb/testsuite/gdb.base/maint.exp index 4d8ae07b0b..9dbc509182 100644 --- a/gdb/testsuite/gdb.base/maint.exp +++ b/gdb/testsuite/gdb.base/maint.exp @@ -230,9 +230,9 @@ gdb_expect { timeout { fail "(timeout) maint print psymbols w/o args" } } -send_gdb "maint print psymbols psymbols_output\n" +send_gdb "maint print psymbols psymbols_output ${srcdir}/${subdir}/${srcfile}\n" gdb_expect { - -re "^maint print psymbols psymbols_output\r\n$gdb_prompt $"\ + -re "^maint print psymbols psymbols_output \[^\n\]*\r\n$gdb_prompt $"\ { send_gdb "shell ls psymbols_output\n" gdb_expect { @@ -272,9 +272,9 @@ gdb_expect { timeout { fail "(timeout) maint print msymbols w/o args" } } -send_gdb "maint print msymbols msymbols_output\n" +send_gdb "maint print msymbols msymbols_output ${binfile}\n" gdb_expect { - -re "^maint print msymbols msymbols_output\r\n$gdb_prompt $"\ + -re "^maint print msymbols msymbols_output \[^\n\]*\r\n$gdb_prompt $"\ { send_gdb "shell ls msymbols_output\n" gdb_expect { @@ -307,16 +307,13 @@ gdb_expect { timeout { fail "(timeout) maint print symbols w/o args" } } -# This command can legitimately take many minutes to execute. If the -# executable is dynamically linked, then you get all the debugging -# info for the entire library --- 89Mb on my system. -jimb +# Request symbols for one particular source file so that we don't try to +# dump the symbol information for the entire C library - over 500MB nowadays +# for GNU libc. -set old_timeout $timeout -set timeout 600 - -send_gdb "maint print symbols symbols_output\n" +send_gdb "maint print symbols symbols_output ${srcdir}/${subdir}/${srcfile}\n" gdb_expect { - -re "^maint print symbols symbols_output\r\n$gdb_prompt $"\ + -re "^maint print symbols symbols_output \[^\n\]*\r\n$gdb_prompt $"\ { send_gdb "shell ls symbols_output\n" gdb_expect { @@ -341,8 +338,6 @@ gdb_expect { timeout { fail "(timeout) maint print symbols" } } -set timeout $old_timeout - send_gdb "maint print type argc\n" gdb_expect { -re "type node $hex\r\nname .int. \\($hex\\)\r\ntagname .. \\($hex\\)\r\ncode $hex \\(TYPE_CODE_INT\\)\r\nlength \[24\]\r\nupper_bound_type $hex \\(BOUND_SIMPLE\\)\r\nlower_bound_type $hex \\(BOUND_SIMPLE\\)\r\nobjfile $hex\r\ntarget_type $hex\r\npointer_type $hex\r\nreference_type $hex\r\ntype_chain $hex\r\ninstance_flags $hex\r\nflags $hex\r\nnfields 0 $hex\r\nvptr_basetype $hex\r\nvptr_fieldno -1\r\ntype_specific $hex\r\n$gdb_prompt $"\ -- 2.34.1