Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

Chapter 21. Controlling gdb

You can alter the way gdb interacts with you by using the set command. For commands controlling how gdb displays data, (refer to Section 10.7 Print settings. Other settings are described here.

21.1. Prompt

gdb indicates its readiness to read a command by printing a string called the prompt. This string is normally (gdb). You can change the prompt string with the set prompt command. For instance, when debugging gdb with gdb, it is useful to change the prompt in one of the gdb sessions so that you can always tell which one you are talking to.

Note: set prompt does not add a space for you after the prompt you set. This allows you to set a prompt which ends in a space or a prompt that does not.

set prompt newprompt

Directs gdb to use newprompt as its prompt string henceforth.

show prompt

Prints a line of the form: Gdb's prompt is: your-prompt

 
 
  Published under the terms of the GNU General Public License Design by Interspire