* gdb.base/maint.exp: Only dump symbols from one source file
or objfile.
This commit is contained in:
parent
f4f00b1fe5
commit
3bcbaac540
2 changed files with 14 additions and 14 deletions
|
@ -1,3 +1,8 @@
|
|||
2002-12-03 Daniel Jacobowitz <drow@mvista.com>
|
||||
|
||||
* gdb.base/maint.exp: Only dump symbols from one source file
|
||||
or objfile.
|
||||
|
||||
2002-12-03 Daniel Jacobowitz <drow@mvista.com>
|
||||
|
||||
* gdb.base/step-test.exp: Allow MIPS to return to the line of a
|
||||
|
|
|
@ -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 .<NULL>. \\($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 $"\
|
||||
|
|
Loading…
Reference in a new issue