This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: Cannot specify --frame without --thread
- From: Joel Brobecker <brobecker at adacore dot com>
- To: Mahmood Naderan <nt_mahmood at yahoo dot com>
- Cc: "gdb at sourceware dot org" <gdb at sourceware dot org>
- Date: Thu, 29 Dec 2011 22:44:10 +0400
- Subject: Re: Cannot specify --frame without --thread
- References: <1325182186.27115.YahooMailNeo@web111711.mail.gq1.yahoo.com>
> The complete list of commands I used is pasted below. Please have a look at the end of message where I get the error.
[...]
> (gdb)
> -stack-list-locals --frame 0 --simple-values
> ^error,msg="Cannot specify --frame without --thread"
> (gdb)
[...]
> Is there any way to fix that?
Why do you think that this is an error that needs to be fixed?
The following section of the GDB manual doesn't say explicitly
that both must be used at the same time, or not at all, but it
gives a good clue as to why that is:
http://www.sourceware.org/gdb/current/onlinedocs/gdb/Context-management.html#Context-management
--
Joel