Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [patch] Fix sepdebug.exp build-id occasional FAILs
@ 2007-12-10 14:07 Jan Kratochvil
  2007-12-10 15:19 ` Daniel Jacobowitz
  0 siblings, 1 reply; 2+ messages in thread
From: Jan Kratochvil @ 2007-12-10 14:07 UTC (permalink / raw)
  To: gdb-patches

[-- Attachment #1: Type: text/plain, Size: 653 bytes --]

Hi,

a bug in my own code - a forgotten binary type, I should learn better Tcl.

It FAILs only for specific deterministically-random build-id hashes, this one
	4edd6ca0c5be6b98d27ae5f0b31bbfe782ebd2aa
was read incorrectly as
	4edd6ca07e6b98d27ae5f0b31bbfe782ebaa
resulting in
	FAIL: build-id: breakpoint function, optimized file
	FAIL: build-id: breakpoint small function, optimized file
	FAIL: build-id: run until function breakpoint, optimized file
	FAIL: build-id: run until function breakpoint, optimized file
	FAIL: build-id: run until breakpoint set at small function, optimized file


Approval requested although the fix is obvious.


Sorry,
Jan

[-- Attachment #2: gdb-cvs-build_id_debug_filename_get-binary.patch --]
[-- Type: text/plain, Size: 491 bytes --]

2007-12-09  Jan Kratochvil  <jan.kratochvil@redhat.com>

	* lib/gdb.exp (build_id_debug_filename_get): OBJCOPY pipe being read
	must be set to binary.

--- ./gdb/testsuite/lib/gdb.exp	9 Dec 2007 11:21:21 -0000	1.93
+++ ./gdb/testsuite/lib/gdb.exp	10 Dec 2007 00:14:55 -0000
@@ -2500,6 +2500,7 @@ proc build_id_debug_filename_get { exec 
 	return ""
     }
     set fi [open $tmp]
+    fconfigure $fi -translation binary
     # Skip the NOTE header.
     read $fi 16
     set data [read $fi]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-12-10 14:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-12-10 14:07 [patch] Fix sepdebug.exp build-id occasional FAILs Jan Kratochvil
2007-12-10 15:19 ` Daniel Jacobowitz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox