Skip to content

Commit 9a07169

Browse files
ivanivanov884jeffmahoney
authored andcommitted
gdb-6.6-buildid-locate-rpm-librpm-workaround.patch
;; Workaround librpm BZ 643031 due to its unexpected exit() calls (BZ 642879). ;;=push+jan
1 parent 8227276 commit 9a07169

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

gdb/build-id.c

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -722,6 +722,19 @@ build_id_to_filename (const struct bfd_build_id *build_id, char **link_return)
722722
#include <dlfcn.h>
723723
#endif
724724

725+
/* Workarodun https://bugzilla.redhat.com/show_bug.cgi?id=643031
726+
librpm must not exit() an application on SIGINT
727+
728+
Enable or disable a signal handler. SIGNUM: signal to enable (or disable
729+
if negative). HANDLER: sa_sigaction handler (or NULL to use
730+
rpmsqHandler()). Returns: no. of refs, -1 on error. */
731+
extern int rpmsqEnable (int signum, /* rpmsqAction_t handler */ void *handler);
732+
int
733+
rpmsqEnable (int signum, /* rpmsqAction_t handler */ void *handler)
734+
{
735+
return 0;
736+
}
737+
725738
/* This MISSING_RPM_HASH tracker is used to collect all the missing rpm files
726739
and avoid their duplicities during a single inferior run. */
727740

gdb/proc-service.list

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,7 @@
3737
ps_pstop;
3838
ps_ptread;
3939
ps_ptwrite;
40+
41+
/* gdb-6.6-buildid-locate-rpm.patch */
42+
rpmsqEnable;
4043
};

0 commit comments

Comments
 (0)