Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* Binding F10 key to 'next'
@ 2008-02-12  3:27 Chris Stankevitz
  2008-02-12 19:45 ` Michael Snyder
  0 siblings, 1 reply; 6+ messages in thread
From: Chris Stankevitz @ 2008-02-12  3:27 UTC (permalink / raw)
  To: gdb

Hello,

Is it possible to bind the F10 key to the "next" operation?  The 
following did not work:

(gdb) define F10
Type commands for definition of "f10".
End with a line saying just "end".
 >n
 >end

Thank you,

Chris


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

* Re: Binding F10 key to 'next'
  2008-02-12  3:27 Binding F10 key to 'next' Chris Stankevitz
@ 2008-02-12 19:45 ` Michael Snyder
  2008-02-12 21:43   ` Chris Stankevitz
  2008-02-13  9:13   ` André Pönitz
  0 siblings, 2 replies; 6+ messages in thread
From: Michael Snyder @ 2008-02-12 19:45 UTC (permalink / raw)
  To: Chris Stankevitz; +Cc: gdb

On Mon, 2008-02-11 at 19:27 -0800, Chris Stankevitz wrote:
> Hello,
> 
> Is it possible to bind the F10 key to the "next" operation?  The 
> following did not work:
> 
> (gdb) define F10
> Type commands for definition of "f10".
> End with a line saying just "end".
>  >n
>  >end
> 
> Thank you,
> 
> Chris

If it is possible (which is likely), it would have to be
supported by your terminal or window manager, not by gdb.

Gdb doesn't know anything about function keys.  




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

* Re: Binding F10 key to 'next'
  2008-02-12 19:45 ` Michael Snyder
@ 2008-02-12 21:43   ` Chris Stankevitz
  2008-02-12 22:10     ` Michael Snyder
  2008-02-13  9:13   ` André Pönitz
  1 sibling, 1 reply; 6+ messages in thread
From: Chris Stankevitz @ 2008-02-12 21:43 UTC (permalink / raw)
  To: gdb

Michael Snyder wrote:
> If it is possible (which is likely), it would have to be
> supported by your terminal or window manager, not by gdb.

Michael,

Are you suggesting I investigate whether my terminal (xterm) or WM 
(gnome) could perform a binding such that whenever I type the F10 key, 
the string "next\n" is sent to the active program?

Chris


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

* Re: Binding F10 key to 'next'
  2008-02-12 21:43   ` Chris Stankevitz
@ 2008-02-12 22:10     ` Michael Snyder
  0 siblings, 0 replies; 6+ messages in thread
From: Michael Snyder @ 2008-02-12 22:10 UTC (permalink / raw)
  To: Chris Stankevitz; +Cc: gdb

On Tue, 2008-02-12 at 13:43 -0800, Chris Stankevitz wrote:
> Michael Snyder wrote:
> > If it is possible (which is likely), it would have to be
> > supported by your terminal or window manager, not by gdb.
> 
> Michael,
> 
> Are you suggesting I investigate whether my terminal (xterm) or WM 
> (gnome) could perform a binding such that whenever I type the F10 key, 
> the string "next\n" is sent to the active program?

Yes.



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

* Re: Binding F10 key to 'next'
  2008-02-12 19:45 ` Michael Snyder
  2008-02-12 21:43   ` Chris Stankevitz
@ 2008-02-13  9:13   ` André Pönitz
  2008-02-13 10:02     ` Denis PILAT
  1 sibling, 1 reply; 6+ messages in thread
From: André Pönitz @ 2008-02-13  9:13 UTC (permalink / raw)
  To: gdb

On Tuesday 12 February 2008 20:45:18 Michael Snyder wrote:
> On Mon, 2008-02-11 at 19:27 -0800, Chris Stankevitz wrote:
> > Is it possible to bind the F10 key to the "next" operation? 
> > [...]
> If it is possible (which is likely), it would have to be
> supported by your terminal or window manager, not by gdb.

Indeed. 

If the environment you live in uses readline you can try putting
the following line (including all quotes) in your ~/.inputrc :

  "\e[21~": "next\n"

Regards,
Andre'


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

* Re: Binding F10 key to 'next'
  2008-02-13  9:13   ` André Pönitz
@ 2008-02-13 10:02     ` Denis PILAT
  0 siblings, 0 replies; 6+ messages in thread
From: Denis PILAT @ 2008-02-13 10:02 UTC (permalink / raw)
  To: André Pönitz; +Cc: gdb

If you're lazy like I am, you can also define some user commands:
You can even put them in a .gdbinit script like:

define d
  set confirm off
  del b
  set confirm on
end
document d
  delete all breakpoints
end

Denis

André Pönitz wrote:
> On Tuesday 12 February 2008 20:45:18 Michael Snyder wrote:
>   
>> On Mon, 2008-02-11 at 19:27 -0800, Chris Stankevitz wrote:
>>     
>>> Is it possible to bind the F10 key to the "next" operation? 
>>> [...]
>>>       
>> If it is possible (which is likely), it would have to be
>> supported by your terminal or window manager, not by gdb.
>>     
>
> Indeed. 
>
> If the environment you live in uses readline you can try putting
> the following line (including all quotes) in your ~/.inputrc :
>
>   "\e[21~": "next\n"
>
> Regards,
> Andre'
>
>   


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

end of thread, other threads:[~2008-02-13 10:02 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-02-12  3:27 Binding F10 key to 'next' Chris Stankevitz
2008-02-12 19:45 ` Michael Snyder
2008-02-12 21:43   ` Chris Stankevitz
2008-02-12 22:10     ` Michael Snyder
2008-02-13  9:13   ` André Pönitz
2008-02-13 10:02     ` Denis PILAT

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