HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- signal handling in gdb
Operating System - HP-UX
1837651
Members
3034
Online
110117
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-19-2000 08:06 AM
10-19-2000 08:06 AM
signal handling in gdb
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-19-2000 08:21 AM
10-19-2000 08:21 AM
Re: signal handling in gdb
I have an application where I make use of the SIGUSR1 signal. I want to set a beak point in the signal handler. Somehow gdb is not able to handle it. After an application receives a signal for the first time gdb just hangs or terminates the process. In general breakpoint and signals dont work right in gdb.
I have a simple program in which I want to stop in the signal handler. I have tried with all the options like pass/nopass, stop/nostop for SIGUSR1. Thanks for the help
I am using
Hewlett-Packard Wildebeest 1.2.01 (based on GDB 4.17-hpwdb-980821)
HP-UX 11.0
Here is the program
#include
#include
#include
void sighdl(int sig);
void sighdl(int sig)
{
printf("In signal handler sig: %dn",sig);
}
main()
{
printf("In main prog settting the signal n");
signal(SIGUSR1,sighdl);
printf("Waiting to get the signaln");
while(1)
{
int err = sleep(5);
if(err != 0 ) {
printf("interrupted slee, continuing n");
signal(SIGUSR1,sighdl);
}
}
}
One more thing
If you kill the current running process in gdb using kill, to start all over again, it leaves processes. How to get rid of these defunc processes ?
I have a simple program in which I want to stop in the signal handler. I have tried with all the options like pass/nopass, stop/nostop for SIGUSR1. Thanks for the help
I am using
Hewlett-Packard Wildebeest 1.2.01 (based on GDB 4.17-hpwdb-980821)
HP-UX 11.0
Here is the program
#include
#include
#include
void sighdl(int sig);
void sighdl(int sig)
{
printf("In signal handler sig: %dn",sig);
}
main()
{
printf("In main prog settting the signal n");
signal(SIGUSR1,sighdl);
printf("Waiting to get the signaln");
while(1)
{
int err = sleep(5);
if(err != 0 ) {
printf("interrupted slee, continuing n");
signal(SIGUSR1,sighdl);
}
}
}
One more thing
If you kill the current running process in gdb using kill, to start all over again, it leaves
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP