This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/21286] New: bits/siginfo.h is missing enum definition for TRAP_HWBKPT
- From: "pratyush.anand at gmail dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Wed, 22 Mar 2017 12:06:58 +0000
- Subject: [Bug libc/21286] New: bits/siginfo.h is missing enum definition for TRAP_HWBKPT
- Auto-submitted: auto-generated
https://sourceware.org/bugzilla/show_bug.cgi?id=21286
Bug ID: 21286
Summary: bits/siginfo.h is missing enum definition for
TRAP_HWBKPT
Product: glibc
Version: unspecified
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: libc
Assignee: unassigned at sourceware dot org
Reporter: pratyush.anand at gmail dot com
CC: drepper.fsp at gmail dot com
Target Milestone: ---
Created attachment 9927
--> https://sourceware.org/bugzilla/attachment.cgi?id=9927&action=edit
Fix for the reported issue
Description of problem:
#wget
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/tools/testing/selftests/breakpoints/breakpoint_test_arm64.c
# gcc -o breakpoint_test_arm64 breakpoint_test_arm64.c
breakpoint_test_arm64.c: In function ‘run_test’:
breakpoint_test_arm64.c:171:25: error: ‘TRAP_HWBKPT’ undeclared (first use in
this function)
if (siginfo.si_code != TRAP_HWBKPT) {
^
breakpoint_test_arm64.c:171:25: note: each undeclared identifier is reported
only once for each function it appears in
I compiled this file locally with following addition in my
/usr/include/bits/siginfo.h, and sorry I forgot to upstream changes to glibc :(
# diff /usr/include/bits/siginfo.h ~/siginfo.h
229c229
< TRAP_TRACE, /* Process trace trap. */
---
> TRAP_TRACE /* Process trace trap. */
231,234d230
< TRAP_BRANCH, /* Process branch trap. */
< # define TRAP_BRANCH TRAP_BRANCH
< TRAP_HWBKPT /* hardware breakpoint/watchpoint */
< # define TRAP_HWBKPT TRAP_HWBKPT
I think attached patch should resolve it in upstream glibc.
--
You are receiving this mail because:
You are on the CC list for the bug.