This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFC]: remove inconsistency in printcmd.c: print_scalar_formatted


> Date: Tue, 20 Jan 2004 11:50:06 -0500
> From: Andrew Cagney <cagney@gnu.org>
> 
> Try:
> 
> 	(gdb) x 1.0
> 	0x000001: 0x12345678
> 	(gdb) x/v 1.0
> 	0x000000: 0xc0000000
> 
> or more notably:
> 
> 	(gdb) print struct_val
> 	{ i = 1, j = 2, k = 1.0 }
> 	(gdb) info location struct_val
> 	struct_val is a dwarf2 location expression, its value is scattered 
> across memory and registers
> 	(gdb) x/v struct_val
> 	0x00000000:  0x00010002   0xc0000000

Andrew, are you saying that "x/v" is already in GDB and does
everything Daniel asked for?

Anyway, I don't find the /v specifier in the manual.  Is this
implemented, or is this just a suggestion for a new feature?


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]