The NetBSD Project

CVS log for src/tests/lib/libc/sys/t_ptrace_core_wait.h

[BACK] Up to [cvs.NetBSD.org] / src / tests / lib / libc / sys

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.7 / (download) - annotate - [select for diffs], Thu Jun 9 17:39:21 2022 UTC (11 months, 3 weeks ago) by skrll
Branch: MAIN
CVS Tags: netbsd-10-base, netbsd-10, HEAD
Changes since 1.6: +2 -2 lines
Diff to previous 1.6 (colored)

There are two hard problems in computer science cache invalidation, naming
and off-by-one errors.

Fix a naming and off-by-one bug... Thanks to Tom Lane for spotting my typo.

Revision 1.6 / (download) - annotate - [select for diffs], Tue Jun 7 05:39:16 2022 UTC (11 months, 3 weeks ago) by skrll
Branch: MAIN
Changes since 1.5: +3 -3 lines
Diff to previous 1.5 (colored)

PR/56865: hppa: t_ptrace_core_wait test doesn't know it must advance PC after breakpoint

Add __hppa__ to the list of architectures that need to advance to the instruction
after the breakpoint

Thanks to Tom Lane for the fix.

Revision 1.5 / (download) - annotate - [select for diffs], Sat Mar 26 16:22:50 2022 UTC (14 months, 1 week ago) by martin
Branch: MAIN
Changes since 1.4: +2 -2 lines
Diff to previous 1.4 (colored)

Add sparc* to the list of architectures that need an explicit address
with PT_CONTINUE in this test.

Revision 1.4 / (download) - annotate - [select for diffs], Sat Jul 24 08:39:54 2021 UTC (22 months, 1 week ago) by rin
Branch: MAIN
CVS Tags: thorpej-futex2-base, thorpej-futex2
Changes since 1.3: +4 -8 lines
Diff to previous 1.3 (colored)

For sh3, increment PC when PT_CONTINUE from trigger_trap(), as already
done for aarch64, arm, and powerpc. Otherwise, child is trapped to the
PTRACE_BREAKPOINT_ASM (== trapa) instruction indefinitely.

Fix tests/lib/libc/sys/t_ptrace_wait*:core_dump_procinfo.

Revision 1.3 / (download) - annotate - [select for diffs], Thu Oct 15 22:59:50 2020 UTC (2 years, 7 months ago) by rin
Branch: MAIN
CVS Tags: thorpej-futex-base, thorpej-futex, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Changes since 1.2: +16 -10 lines
Diff to previous 1.2 (colored)

Apply fix in rev 1.2 for core_dump_procinfo to aarch64 and arm:

http://cvsweb.netbsd.org/bsdweb.cgi/src/tests/lib/libc/sys/t_ptrace_core_wait.h#rev1.2

> For powerpc, program counter is not automatically incremented by trap
> instruction. We cannot increment PC in the trap handler, which breaks
> applications depending on this behavior, e.g., GDB.

This statement is true for aarch64 and arm.

Also, use PTRACE_BREAKPOINT_SIZE instead of hard-coded 4 to address
instruction next to PC.

OK ryo

Revision 1.2 / (download) - annotate - [select for diffs], Wed Jun 24 04:47:10 2020 UTC (2 years, 11 months ago) by rin
Branch: MAIN
Changes since 1.1: +16 -1 lines
Diff to previous 1.1 (colored)

Fix core_dump_procinfo tests for powerpc, for which child process was
stalled indefinitely in trap instruction even after PT_CONTINUE.

For powerpc, program counter is not automatically incremented by trap
instruction. We cannot increment PC in the trap handler, which breaks
applications depending on this behavior, e.g., GDB.

Therefore, we need to pass (PC + 4) instead of (void *)1 (== PC) to
PT_CONTINUE when child process traps itself.

Revision 1.1 / (download) - annotate - [select for diffs], Tue May 5 01:24:29 2020 UTC (3 years ago) by kamil
Branch: MAIN

Move core tests out of t_ptrace_wait.c to t_ptrace_core_wait.h

The same tests are now included with the preprocessor in t_ptrace_wait.c.

No functional change intended.

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>