Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* x commands in history
@ 2009-04-15 14:21 Marc Mason
  2009-04-15 16:00 ` Daniel Jacobowitz
  0 siblings, 1 reply; 8+ messages in thread
From: Marc Mason @ 2009-04-15 14:21 UTC (permalink / raw)
  To: gdb

Hello everyone,

I often use x commands to examine memory.

http://sourceware.org/gdb/current/onlinedocs/gdb_10.html#SEC71

x/nfu addr

With the up arrow, I can later scroll through the commands history,
and e.g. repeat previous x commands.

However, on this embedded platform, when I scroll through the commands 
history, the "addr" part of the command is always discarded...

For example, if I type

(gdb) x/32xb array

then gdb only "remembers"

(gdb) x/32xb

I do not witness this behavior on my desktops (Linux, cygwin).

I imagine I am missing some obvious option?

How do I make gdb remember the whole x command?

-- 
Regards.


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: x commands in history
  2009-04-15 14:21 x commands in history Marc Mason
@ 2009-04-15 16:00 ` Daniel Jacobowitz
  2009-04-15 17:16   ` Marc Mason
  0 siblings, 1 reply; 8+ messages in thread
From: Daniel Jacobowitz @ 2009-04-15 16:00 UTC (permalink / raw)
  To: Marc Mason; +Cc: gdb

On Wed, Apr 15, 2009 at 04:19:45PM +0200, Marc Mason wrote:
> However, on this embedded platform, when I scroll through the commands  
> history, the "addr" part of the command is always discarded...

What platform?  What version of GDB?

-- 
Daniel Jacobowitz
CodeSourcery


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: x commands in history
  2009-04-15 16:00 ` Daniel Jacobowitz
@ 2009-04-15 17:16   ` Marc Mason
  2009-04-15 17:34     ` Daniel Jacobowitz
  2009-04-16 17:06     ` Antony KING
  0 siblings, 2 replies; 8+ messages in thread
From: Marc Mason @ 2009-04-15 17:16 UTC (permalink / raw)
  To: Daniel Jacobowitz; +Cc: gdb

Daniel Jacobowitz wrote:

> On Wed, Apr 15, 2009 at 04:19:45PM +0200, Marc Mason wrote:
>
>> However, on this embedded platform, when I scroll through the commands
>> history, the "addr" part of the command is always discarded...
> 
> What platform?  What version of GDB?

I was under the impression that my issue was a feature, not a bug, which 
is why I didn't think the details you ask for would be important.

GNU gdb 6.5-ST-1.0-ST40 [build Feb 23 2007]
I connect to the embedded board via an ST micro connect device.

-- 
Regards.


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: x commands in history
  2009-04-15 17:16   ` Marc Mason
@ 2009-04-15 17:34     ` Daniel Jacobowitz
  2009-04-16 11:15       ` Marc Mason
  2009-04-16 17:06     ` Antony KING
  1 sibling, 1 reply; 8+ messages in thread
From: Daniel Jacobowitz @ 2009-04-15 17:34 UTC (permalink / raw)
  To: Marc Mason; +Cc: gdb

On Wed, Apr 15, 2009 at 06:11:34PM +0200, Marc Mason wrote:
> Daniel Jacobowitz wrote:
>
>> On Wed, Apr 15, 2009 at 04:19:45PM +0200, Marc Mason wrote:
>>
>>> However, on this embedded platform, when I scroll through the commands
>>> history, the "addr" part of the command is always discarded...
>>
>> What platform?  What version of GDB?
>
> I was under the impression that my issue was a feature, not a bug, which  
> is why I didn't think the details you ask for would be important.
>
> GNU gdb 6.5-ST-1.0-ST40 [build Feb 23 2007]
> I connect to the embedded board via an ST micro connect device.

If it's a feature, it's one ST's added - but I think it's a bug that
was fixed, related to how the x command repeats when you press enter.
That's a pretty old baseline GDB version.

-- 
Daniel Jacobowitz
CodeSourcery


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: x commands in history
  2009-04-15 17:34     ` Daniel Jacobowitz
@ 2009-04-16 11:15       ` Marc Mason
  0 siblings, 0 replies; 8+ messages in thread
From: Marc Mason @ 2009-04-16 11:15 UTC (permalink / raw)
  To: Daniel Jacobowitz; +Cc: gdb

Daniel Jacobowitz wrote:
> On Wed, Apr 15, 2009 at 06:11:34PM +0200, Marc Mason wrote:
>> Daniel Jacobowitz wrote:
>>> On Wed, Apr 15, 2009 at 04:19:45PM +0200, Marc Mason wrote:
>>>
>>>> However, on this embedded platform, when I scroll through the commands
>>>> history, the "addr" part of the x command is always discarded...
>>>
>>> What platform?  What version of GDB?
>>
>> I was under the impression that my issue was a feature, not a bug, which
>> is why I didn't think the details you ask for would be important.
>>
>> GNU gdb 6.5-ST-1.0-ST40 [build Feb 23 2007]
>> I connect to the embedded board via an ST micro connect device.
> 
> If it's a feature, it's one ST's added - but I think it's a bug that
> was fixed, related to how the x command repeats when you press enter.

Strange...

I've been using gdb for years, and I've never had that problem before.

Something in the setup must be different.

I'll look into ST-specific options.

> That's a pretty old baseline GDB version.

We are, indeed, using an ancient tool chain (released in 2007).

# binutils 2.16.91.0.5
# GCC 4.1.1
# GDB 6.5
# newlib 1.14.0

while the latest tool chain provides

# binutils 2.18.50.0.4
# GCC 4.2.4
# GDB 6.8
# gmake 3.80
# newlib 1.16.0

-- 
Regards.


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: x commands in history
  2009-04-15 17:16   ` Marc Mason
  2009-04-15 17:34     ` Daniel Jacobowitz
@ 2009-04-16 17:06     ` Antony KING
  2009-04-17 13:12       ` Marc Mason
  1 sibling, 1 reply; 8+ messages in thread
From: Antony KING @ 2009-04-16 17:06 UTC (permalink / raw)
  To: Marc Mason; +Cc: gdb

Hi Marc,

By any chance when you experience this problem is it when you use the
command console of Insight GUI interface ? If so then this is a known
issue. Try using the TUI interface instead.

Cheers,

Antony.

Marc Mason wrote:
> Daniel Jacobowitz wrote:
> 
>> On Wed, Apr 15, 2009 at 04:19:45PM +0200, Marc Mason wrote:
>>
>>> However, on this embedded platform, when I scroll through the commands
>>> history, the "addr" part of the command is always discarded...
>>
>> What platform?  What version of GDB?
> 
> I was under the impression that my issue was a feature, not a bug, which
> is why I didn't think the details you ask for would be important.
> 
> GNU gdb 6.5-ST-1.0-ST40 [build Feb 23 2007]
> I connect to the embedded board via an ST micro connect device.


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: x commands in history
  2009-04-16 17:06     ` Antony KING
@ 2009-04-17 13:12       ` Marc Mason
  2009-04-17 19:48         ` Antony KING
  0 siblings, 1 reply; 8+ messages in thread
From: Marc Mason @ 2009-04-17 13:12 UTC (permalink / raw)
  To: Antony KING; +Cc: gdb

Antony KING wrote:

> By any chance when you experience this problem is it when you use the
> command console of Insight GUI interface ?

Yes, I am using the GUI.

gdb is started with the following command.

sh4gdb -q -w -x foo.cmd -ex foo.bin

> If so then this is a known issue.

How do I tell which version of Insight I'm running?
Has this bug been fixed in newer releases?

NB: the "About GDB" item in the "Help" menu of the "Source Window" 
mentions "GNUPro Toolkit Insight Debugger"

> Try using the TUI interface instead.

I suppose I could do that, but it would be less convenient.
I might have to learn to live with the bug.

Thanks for the heads up.

-- 
Regards.


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: x commands in history
  2009-04-17 13:12       ` Marc Mason
@ 2009-04-17 19:48         ` Antony KING
  0 siblings, 0 replies; 8+ messages in thread
From: Antony KING @ 2009-04-17 19:48 UTC (permalink / raw)
  To: Marc Mason; +Cc: gdb

The version of Insight is the same as GDB (although it is released
separately). The version of GDB/Insight should appear in the "About" dialog.

The issue is also still present in GDB/Insight 6.8. We have not fixed it
locally as it is low priority, our focus is on our STWorkbench product
(based on Eclipse/CDT).

Cheers,

Antony.

Marc Mason wrote:
> How do I tell which version of Insight I'm running?
> Has this bug been fixed in newer releases?
> 
> NB: the "About GDB" item in the "Help" menu of the "Source Window"
> mentions "GNUPro Toolkit Insight Debugger"


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2009-04-17 17:40 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-04-15 14:21 x commands in history Marc Mason
2009-04-15 16:00 ` Daniel Jacobowitz
2009-04-15 17:16   ` Marc Mason
2009-04-15 17:34     ` Daniel Jacobowitz
2009-04-16 11:15       ` Marc Mason
2009-04-16 17:06     ` Antony KING
2009-04-17 13:12       ` Marc Mason
2009-04-17 19:48         ` Antony KING

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox