Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 768444 | Differences between
and this patch

Collapse All | Expand All

(-)a/Makefile.am (-1 / +2 lines)
Lines 32-38 CLEANFILES = $(bin_SCRIPTS) Link Here
32
32
33
# Some standard substitutions for scripts
33
# Some standard substitutions for scripts
34
do_subst = ($(SED) -e 's,[@]PACKAGE[@],$(PACKAGE),g' \
34
do_subst = ($(SED) -e 's,[@]PACKAGE[@],$(PACKAGE),g' \
35
		   -e 's,[@]VERSION[@],$(VERSION),g')
35
		   -e 's,[@]VERSION[@],$(VERSION),g' \
36
		   -e 's,[@]READELF[@],$(READELF),g')
36
37
37
find-debuginfo: $(top_srcdir)/scripts/find-debuginfo.in Makefile
38
find-debuginfo: $(top_srcdir)/scripts/find-debuginfo.in Makefile
38
	$(do_subst) < "$(top_srcdir)/scripts/$@.in" > "$@"
39
	$(do_subst) < "$(top_srcdir)/scripts/$@.in" > "$@"
(-)a/configure.ac (+1 lines)
Lines 44-49 AC_PROG_SED Link Here
44
AC_PROG_CC_C99
44
AC_PROG_CC_C99
45
AC_PROG_LN_S
45
AC_PROG_LN_S
46
AC_CHECK_TOOL([LD], [ld])
46
AC_CHECK_TOOL([LD], [ld])
47
AC_CHECK_TOOL([READELF], [readelf])
47
AM_MISSING_PROG(HELP2MAN, help2man)
48
AM_MISSING_PROG(HELP2MAN, help2man)
48
49
49
# Only really an issue on 32bit platforms. Makes sure we'll get large off_t.
50
# Only really an issue on 32bit platforms. Makes sure we'll get large off_t.
(-)a/scripts/find-debuginfo.in (-1 / +1 lines)
Lines 338-344 add_minidebug() Link Here
338
  # symbol and NOBITS sections so cannot use --keep-only because that is
338
  # symbol and NOBITS sections so cannot use --keep-only because that is
339
  # too aggressive. Field $2 is the section name, $3 is the section type
339
  # too aggressive. Field $2 is the section name, $3 is the section type
340
  # and $8 are the section flags.
340
  # and $8 are the section flags.
341
  local remove_sections=`readelf -W -S "$debuginfo" \
341
  local remove_sections=`@READELF@ -W -S "$debuginfo" \
342
	| awk '{ if (index($2,".debug_") != 1 \
342
	| awk '{ if (index($2,".debug_") != 1 \
343
		     && ($3 == "PROGBITS" || $3 == "NOTE" || $3 == "NOBITS") \
343
		     && ($3 == "PROGBITS" || $3 == "NOTE" || $3 == "NOBITS") \
344
		     && index($8,"A") == 0) \
344
		     && index($8,"A") == 0) \
(-)a/tests/atlocal.in (+1 lines)
Lines 9-14 CC="@CC@" Link Here
9
CFLAGS=""
9
CFLAGS=""
10
LD="@LD@"
10
LD="@LD@"
11
LDFLAGS=""
11
LDFLAGS=""
12
READELF="@READELF@"
12
13
13
GDWARF_5_FLAG=@GDWARF_5_FLAG@
14
GDWARF_5_FLAG=@GDWARF_5_FLAG@
14
GZ_NONE_FLAG=@GZ_NONE_FLAG@
15
GZ_NONE_FLAG=@GZ_NONE_FLAG@
(-)a/tests/debugedit.at (-28 / +27 lines)
Lines 93-99 DEBUGEDIT_SETUP([-gdwarf-4]) Link Here
93
93
94
# Capture strings that start with the testdir (pwd) directory path
94
# Capture strings that start with the testdir (pwd) directory path
95
# (and replace that textually with /foo/bar/baz)
95
# (and replace that textually with /foo/bar/baz)
96
readelf -p.debug_str foo.o subdir_bar/bar.o baz.o | cut -c13- \
96
$READELF -p.debug_str foo.o subdir_bar/bar.o baz.o | cut -c13- \
97
        | grep ^$(pwd) | sort \
97
        | grep ^$(pwd) | sort \
98
        | sed -e "s@$(pwd)@/foo/bar/baz@" > expout
98
        | sed -e "s@$(pwd)@/foo/bar/baz@" > expout
99
99
Lines 108-114 AT_CHECK([[debugedit -b $(pwd) -d /foo/bar/baz ./foo.o]]) Link Here
108
AT_CHECK([[debugedit -b $(pwd) -d /foo/bar/baz ./subdir_bar/bar.o]])
108
AT_CHECK([[debugedit -b $(pwd) -d /foo/bar/baz ./subdir_bar/bar.o]])
109
AT_CHECK([[debugedit -b $(pwd) -d /foo/bar/baz ./baz.o]])
109
AT_CHECK([[debugedit -b $(pwd) -d /foo/bar/baz ./baz.o]])
110
AT_CHECK([[
110
AT_CHECK([[
111
readelf -p.debug_str foo.o subdir_bar/bar.o baz.o | cut -c13- \
111
$READELF -p.debug_str foo.o subdir_bar/bar.o baz.o | cut -c13- \
112
        | grep ^/foo/bar/baz | sort
112
        | grep ^/foo/bar/baz | sort
113
]],[0],[expout])
113
]],[0],[expout])
114
114
Lines 125-131 DEBUGEDIT_SETUP([-gdwarf-5]) Link Here
125
125
126
# Capture strings that start with the testdir (pwd) directory path
126
# Capture strings that start with the testdir (pwd) directory path
127
# (and replace that textually with /foo/bar/baz)
127
# (and replace that textually with /foo/bar/baz)
128
readelf -p.debug_str -p.debug_line_str foo.o subdir_bar/bar.o baz.o \
128
$READELF -p.debug_str -p.debug_line_str foo.o subdir_bar/bar.o baz.o \
129
        | cut -c13- \
129
        | cut -c13- \
130
        | grep ^$(pwd) | sort | uniq \
130
        | grep ^$(pwd) | sort | uniq \
131
        | sed -e "s@$(pwd)@/foo/bar/baz@" > expout
131
        | sed -e "s@$(pwd)@/foo/bar/baz@" > expout
Lines 141-147 AT_CHECK([[debugedit -b $(pwd) -d /foo/bar/baz ./foo.o]]) Link Here
141
AT_CHECK([[debugedit -b $(pwd) -d /foo/bar/baz ./subdir_bar/bar.o]])
141
AT_CHECK([[debugedit -b $(pwd) -d /foo/bar/baz ./subdir_bar/bar.o]])
142
AT_CHECK([[debugedit -b $(pwd) -d /foo/bar/baz ./baz.o]])
142
AT_CHECK([[debugedit -b $(pwd) -d /foo/bar/baz ./baz.o]])
143
AT_CHECK([[
143
AT_CHECK([[
144
readelf -p.debug_str -p.debug_line_str foo.o subdir_bar/bar.o baz.o \
144
$READELF -p.debug_str -p.debug_line_str foo.o subdir_bar/bar.o baz.o \
145
        | cut -c13- \
145
        | cut -c13- \
146
        | grep ^/foo/bar/baz | sort | uniq
146
        | grep ^/foo/bar/baz | sort | uniq
147
]],[0],[expout],[ignore])
147
]],[0],[expout],[ignore])
Lines 160-166 DEBUGEDIT_SETUP([-gdwarf-4]) Link Here
160
# (and replace that textually with /foo/bar/baz)
160
# (and replace that textually with /foo/bar/baz)
161
# Note that partially linked files, might have multiple duplicate
161
# Note that partially linked files, might have multiple duplicate
162
# strings, but debugedit will merge them. So use sort -u.
162
# strings, but debugedit will merge them. So use sort -u.
163
readelf -p.debug_str ./foobarbaz.part.o | cut -c13- \
163
$READELF -p.debug_str ./foobarbaz.part.o | cut -c13- \
164
        | grep ^$(pwd) | sort -u \
164
        | grep ^$(pwd) | sort -u \
165
        | sed -e "s@$(pwd)@/foo/bar/baz@" > expout
165
        | sed -e "s@$(pwd)@/foo/bar/baz@" > expout
166
166
Lines 173-179 fi Link Here
173
# Check the replaced strings are all there.
173
# Check the replaced strings are all there.
174
AT_CHECK([[debugedit -b $(pwd) -d /foo/bar/baz ./foobarbaz.part.o]])
174
AT_CHECK([[debugedit -b $(pwd) -d /foo/bar/baz ./foobarbaz.part.o]])
175
AT_CHECK([[
175
AT_CHECK([[
176
readelf -p.debug_str ./foobarbaz.part.o | cut -c13- \
176
$READELF -p.debug_str ./foobarbaz.part.o | cut -c13- \
177
        | grep ^/foo/bar/baz | sort
177
        | grep ^/foo/bar/baz | sort
178
]],[0],[expout])
178
]],[0],[expout])
179
179
Lines 192-198 DEBUGEDIT_SETUP([-gdwarf-5]) Link Here
192
# (and replace that textually with /foo/bar/baz)
192
# (and replace that textually with /foo/bar/baz)
193
# Note that partially linked files, might have multiple duplicate
193
# Note that partially linked files, might have multiple duplicate
194
# strings, but debugedit will merge them. So use sort -u.
194
# strings, but debugedit will merge them. So use sort -u.
195
readelf -p.debug_str -p.debug_line_str ./foobarbaz.part.o | cut -c13- \
195
$READELF -p.debug_str -p.debug_line_str ./foobarbaz.part.o | cut -c13- \
196
        | grep ^$(pwd) | sort -u | uniq \
196
        | grep ^$(pwd) | sort -u | uniq \
197
        | sed -e "s@$(pwd)@/foo/bar/baz@" > expout
197
        | sed -e "s@$(pwd)@/foo/bar/baz@" > expout
198
198
Lines 205-211 fi Link Here
205
# Check the replaced strings are all there.
205
# Check the replaced strings are all there.
206
AT_CHECK([[debugedit -b $(pwd) -d /foo/bar/baz ./foobarbaz.part.o]])
206
AT_CHECK([[debugedit -b $(pwd) -d /foo/bar/baz ./foobarbaz.part.o]])
207
AT_CHECK([[
207
AT_CHECK([[
208
readelf -p.debug_str -p.debug_line_str ./foobarbaz.part.o | cut -c13- \
208
$READELF -p.debug_str -p.debug_line_str ./foobarbaz.part.o | cut -c13- \
209
        | grep ^/foo/bar/baz | sort | uniq
209
        | grep ^/foo/bar/baz | sort | uniq
210
]],[0],[expout],[ignore])
210
]],[0],[expout],[ignore])
211
211
Lines 221-227 DEBUGEDIT_SETUP([-gdwarf-4]) Link Here
221
221
222
# Capture strings that start with the testdir (pwd) directory path
222
# Capture strings that start with the testdir (pwd) directory path
223
# (and replace that textually with /foo/bar/baz)
223
# (and replace that textually with /foo/bar/baz)
224
readelf -p.debug_str foobarbaz.exe | cut -c13- \
224
$READELF -p.debug_str foobarbaz.exe | cut -c13- \
225
        | grep ^$(pwd) | sort \
225
        | grep ^$(pwd) | sort \
226
        | sed -e "s@$(pwd)@/foo/bar/baz@" > expout
226
        | sed -e "s@$(pwd)@/foo/bar/baz@" > expout
227
227
Lines 235-241 fi Link Here
235
# Check the replaced strings are all there.
235
# Check the replaced strings are all there.
236
AT_CHECK([[debugedit -b $(pwd) -d /foo/bar/baz ./foobarbaz.exe]])
236
AT_CHECK([[debugedit -b $(pwd) -d /foo/bar/baz ./foobarbaz.exe]])
237
AT_CHECK([[
237
AT_CHECK([[
238
readelf -p.debug_str foobarbaz.exe | cut -c13- \
238
$READELF -p.debug_str foobarbaz.exe | cut -c13- \
239
        | grep ^/foo/bar/baz | sort
239
        | grep ^/foo/bar/baz | sort
240
]],[0],[expout])
240
]],[0],[expout])
241
241
Lines 252-258 DEBUGEDIT_SETUP([-gdwarf-5]) Link Here
252
252
253
# Capture strings that start with the testdir (pwd) directory path
253
# Capture strings that start with the testdir (pwd) directory path
254
# (and replace that textually with /foo/bar/baz)
254
# (and replace that textually with /foo/bar/baz)
255
readelf -p.debug_str -p.debug_line_str foobarbaz.exe | cut -c13- \
255
$READELF -p.debug_str -p.debug_line_str foobarbaz.exe | cut -c13- \
256
        | grep ^$(pwd) | sort | uniq \
256
        | grep ^$(pwd) | sort | uniq \
257
        | sed -e "s@$(pwd)@/foo/bar/baz@" > expout
257
        | sed -e "s@$(pwd)@/foo/bar/baz@" > expout
258
258
Lines 266-272 fi Link Here
266
# Check the replaced strings are all there.
266
# Check the replaced strings are all there.
267
AT_CHECK([[debugedit -b $(pwd) -d /foo/bar/baz ./foobarbaz.exe]])
267
AT_CHECK([[debugedit -b $(pwd) -d /foo/bar/baz ./foobarbaz.exe]])
268
AT_CHECK([[
268
AT_CHECK([[
269
readelf -p.debug_str -p.debug_line_str foobarbaz.exe | cut -c13- \
269
$READELF -p.debug_str -p.debug_line_str foobarbaz.exe | cut -c13- \
270
        | grep ^/foo/bar/baz | sort | uniq
270
        | grep ^/foo/bar/baz | sort | uniq
271
]],[0],[expout],[ignore])
271
]],[0],[expout],[ignore])
272
272
Lines 305-311 AT_CHECK([[debugedit -b $(pwd) -d /foo/bar/baz ./foo.o]]) Link Here
305
AT_CHECK([[debugedit -b $(pwd) -d /foo/bar/baz ./subdir_bar/bar.o]])
305
AT_CHECK([[debugedit -b $(pwd) -d /foo/bar/baz ./subdir_bar/bar.o]])
306
AT_CHECK([[debugedit -b $(pwd) -d /foo/bar/baz ./baz.o]])
306
AT_CHECK([[debugedit -b $(pwd) -d /foo/bar/baz ./baz.o]])
307
AT_CHECK([[
307
AT_CHECK([[
308
readelf --debug-dump=info foo.o subdir_bar/bar.o baz.o \
308
$READELF --debug-dump=info foo.o subdir_bar/bar.o baz.o \
309
        | grep -E 'DW_AT_(name|comp_dir)' \
309
        | grep -E 'DW_AT_(name|comp_dir)' \
310
        | rev | cut -d: -f1 | rev | cut -c2- | grep ^/foo/bar/baz | sort -u
310
        | rev | cut -d: -f1 | rev | cut -c2- | grep ^/foo/bar/baz | sort -u
311
]],[0],[expout])
311
]],[0],[expout])
Lines 328-334 AT_DATA([expout], Link Here
328
328
329
AT_CHECK([[debugedit -b $(pwd) -d /foo/bar/baz ./foobarbaz.part.o]])
329
AT_CHECK([[debugedit -b $(pwd) -d /foo/bar/baz ./foobarbaz.part.o]])
330
AT_CHECK([[
330
AT_CHECK([[
331
readelf --debug-dump=info ./foobarbaz.part.o \
331
$READELF --debug-dump=info ./foobarbaz.part.o \
332
        | grep -E 'DW_AT_(name|comp_dir)' \
332
        | grep -E 'DW_AT_(name|comp_dir)' \
333
        | rev | cut -d: -f1 | rev | cut -c2- | grep ^/foo/bar/baz | sort -u
333
        | rev | cut -d: -f1 | rev | cut -c2- | grep ^/foo/bar/baz | sort -u
334
]],[0],[expout])
334
]],[0],[expout])
Lines 351-357 AT_DATA([expout], Link Here
351
351
352
AT_CHECK([[debugedit -b $(pwd) -d /foo/bar/baz ./foobarbaz.exe]])
352
AT_CHECK([[debugedit -b $(pwd) -d /foo/bar/baz ./foobarbaz.exe]])
353
AT_CHECK([[
353
AT_CHECK([[
354
readelf --debug-dump=info ./foobarbaz.exe | grep -E 'DW_AT_(name|comp_dir)' \
354
$READELF --debug-dump=info ./foobarbaz.exe | grep -E 'DW_AT_(name|comp_dir)' \
355
        | rev | cut -d: -f1 | rev | cut -c2- | grep ^/foo/bar/baz | sort -u
355
        | rev | cut -d: -f1 | rev | cut -c2- | grep ^/foo/bar/baz | sort -u
356
]],[0],[expout])
356
]],[0],[expout])
357
357
Lines 385-391 AT_CHECK([[debugedit -b $(pwd) -d /foo/bar/baz ./subdir_bar/bar.o]]) Link Here
385
AT_CHECK([[debugedit -b $(pwd) -d /foo/bar/baz ./baz.o]])
385
AT_CHECK([[debugedit -b $(pwd) -d /foo/bar/baz ./baz.o]])
386
AT_CHECK([[
386
AT_CHECK([[
387
for i in ./foo.o ./subdir_bar/bar.o ./baz.o;do \
387
for i in ./foo.o ./subdir_bar/bar.o ./baz.o;do \
388
  readelf --debug-dump=info $i \
388
  $READELF --debug-dump=info $i \
389
          | awk '/Abbrev Number:.*DW_TAG_type_unit/{p=1}{if(p)print}/^$/{p=0}' \
389
          | awk '/Abbrev Number:.*DW_TAG_type_unit/{p=1}{if(p)print}/^$/{p=0}' \
390
          | sed -n 's/^.*> *DW_AT_name *:.* \(stringp[^ ]*\|st.\)$/\1/p' \
390
          | sed -n 's/^.*> *DW_AT_name *:.* \(stringp[^ ]*\|st.\)$/\1/p' \
391
          | sort;
391
          | sort;
Lines 415-421 stz Link Here
415
415
416
AT_CHECK([[debugedit -b $(pwd) -d /foo/bar/baz ./foobarbaz.part.o]])
416
AT_CHECK([[debugedit -b $(pwd) -d /foo/bar/baz ./foobarbaz.part.o]])
417
AT_CHECK([[
417
AT_CHECK([[
418
readelf --debug-dump=info ./foobarbaz.part.o \
418
$READELF --debug-dump=info ./foobarbaz.part.o \
419
        | awk '/Abbrev Number:.*DW_TAG_type_unit/{p=1}{if(p)print}/^$/{p=0}' \
419
        | awk '/Abbrev Number:.*DW_TAG_type_unit/{p=1}{if(p)print}/^$/{p=0}' \
420
        | sed -n 's/^.*> *DW_AT_name *:.* \(stringp[^ ]*\|st.\)$/\1/p' \
420
        | sed -n 's/^.*> *DW_AT_name *:.* \(stringp[^ ]*\|st.\)$/\1/p' \
421
        | sort
421
        | sort
Lines 444-450 stz Link Here
444
444
445
AT_CHECK([[debugedit -b $(pwd) -d /foo/bar/baz ./foobarbaz.exe]])
445
AT_CHECK([[debugedit -b $(pwd) -d /foo/bar/baz ./foobarbaz.exe]])
446
AT_CHECK([[
446
AT_CHECK([[
447
readelf --debug-dump=info ./foobarbaz.exe \
447
$READELF --debug-dump=info ./foobarbaz.exe \
448
        | awk '/Abbrev Number:.*DW_TAG_type_unit/{p=1}{if(p)print}/^$/{p=0}' \
448
        | awk '/Abbrev Number:.*DW_TAG_type_unit/{p=1}{if(p)print}/^$/{p=0}' \
449
        | sed -n 's/^.*> *DW_AT_name *:.* \(stringp[^ ]*\|st.\)$/\1/p' \
449
        | sed -n 's/^.*> *DW_AT_name *:.* \(stringp[^ ]*\|st.\)$/\1/p' \
450
        | sort
450
        | sort
Lines 474-480 AT_CHECK([[debugedit -b $(pwd) -d /foo/bar/baz ./foo.o]]) Link Here
474
AT_CHECK([[debugedit -b $(pwd) -d /foo/bar/baz ./subdir_bar/bar.o]])
474
AT_CHECK([[debugedit -b $(pwd) -d /foo/bar/baz ./subdir_bar/bar.o]])
475
AT_CHECK([[debugedit -b $(pwd) -d /foo/bar/baz ./baz.o]])
475
AT_CHECK([[debugedit -b $(pwd) -d /foo/bar/baz ./baz.o]])
476
AT_CHECK([[
476
AT_CHECK([[
477
readelf --debug-dump=line foo.o subdir_bar/bar.o baz.o \
477
$READELF --debug-dump=line foo.o subdir_bar/bar.o baz.o \
478
        | grep -A3 "The Directory Table" | grep "^  [123]" \
478
        | grep -A3 "The Directory Table" | grep "^  [123]" \
479
	| grep /foo/ | cut -c5- | sort
479
	| grep /foo/ | cut -c5- | sort
480
]],[0],[expout])
480
]],[0],[expout])
Lines 499-505 AT_CHECK([[debugedit -b $(pwd) -d /foo/bar/baz ./foo.o]]) Link Here
499
AT_CHECK([[debugedit -b $(pwd) -d /foo/bar/baz ./subdir_bar/bar.o]])
499
AT_CHECK([[debugedit -b $(pwd) -d /foo/bar/baz ./subdir_bar/bar.o]])
500
AT_CHECK([[debugedit -b $(pwd) -d /foo/bar/baz ./baz.o]])
500
AT_CHECK([[debugedit -b $(pwd) -d /foo/bar/baz ./baz.o]])
501
AT_CHECK([[
501
AT_CHECK([[
502
readelf --debug-dump=line foo.o subdir_bar/bar.o baz.o \
502
$READELF --debug-dump=line foo.o subdir_bar/bar.o baz.o \
503
        | grep -A5 "The Directory Table" | grep "^  [123]" \
503
        | grep -A5 "The Directory Table" | grep "^  [123]" \
504
	| cut -f2- -d/ | grep ^foo/ | sort
504
	| cut -f2- -d/ | grep ^foo/ | sort
505
]],[0],[expout])
505
]],[0],[expout])
Lines 521-527 AT_DATA([expout], Link Here
521
521
522
AT_CHECK([[debugedit -b $(pwd) -d /foo/bar/baz ./foobarbaz.part.o]])
522
AT_CHECK([[debugedit -b $(pwd) -d /foo/bar/baz ./foobarbaz.part.o]])
523
AT_CHECK([[
523
AT_CHECK([[
524
readelf --debug-dump=line ./foobarbaz.part.o \
524
$READELF --debug-dump=line ./foobarbaz.part.o \
525
        | grep -A3 "The Directory Table" | grep "^  [123]" \
525
        | grep -A3 "The Directory Table" | grep "^  [123]" \
526
	| grep /foo/ | cut -c5- | sort
526
	| grep /foo/ | cut -c5- | sort
527
]],[0],[expout])
527
]],[0],[expout])
Lines 544-550 foo/bar/baz/subdir_headers Link Here
544
544
545
AT_CHECK([[debugedit -b $(pwd) -d /foo/bar/baz ./foobarbaz.part.o]])
545
AT_CHECK([[debugedit -b $(pwd) -d /foo/bar/baz ./foobarbaz.part.o]])
546
AT_CHECK([[
546
AT_CHECK([[
547
readelf --debug-dump=line ./foobarbaz.part.o \
547
$READELF --debug-dump=line ./foobarbaz.part.o \
548
        | grep -A5 "The Directory Table" | grep "^  [123]" \
548
        | grep -A5 "The Directory Table" | grep "^  [123]" \
549
	| cut -f2- -d/ | grep ^foo/ | sort
549
	| cut -f2- -d/ | grep ^foo/ | sort
550
]],[0],[expout])
550
]],[0],[expout])
Lines 566-572 AT_DATA([expout], Link Here
566
566
567
AT_CHECK([[debugedit -b $(pwd) -d /foo/bar/baz ./foobarbaz.exe]])
567
AT_CHECK([[debugedit -b $(pwd) -d /foo/bar/baz ./foobarbaz.exe]])
568
AT_CHECK([[
568
AT_CHECK([[
569
readelf --debug-dump=line ./foobarbaz.exe \
569
$READELF --debug-dump=line ./foobarbaz.exe \
570
        | grep -A3 "The Directory Table" | grep "^  [123]" \
570
        | grep -A3 "The Directory Table" | grep "^  [123]" \
571
	| grep /foo/ | cut -c5- | sort
571
	| grep /foo/ | cut -c5- | sort
572
]],[0],[expout])
572
]],[0],[expout])
Lines 589-595 foo/bar/baz/subdir_headers Link Here
589
589
590
AT_CHECK([[debugedit -b $(pwd) -d /foo/bar/baz ./foobarbaz.exe]])
590
AT_CHECK([[debugedit -b $(pwd) -d /foo/bar/baz ./foobarbaz.exe]])
591
AT_CHECK([[
591
AT_CHECK([[
592
readelf --debug-dump=line ./foobarbaz.exe \
592
$READELF --debug-dump=line ./foobarbaz.exe \
593
        | grep -A5 "The Directory Table" | grep "^  [123]" \
593
        | grep -A5 "The Directory Table" | grep "^  [123]" \
594
	| cut -f2- -d/ | grep ^foo/ | sort
594
	| cut -f2- -d/ | grep ^foo/ | sort
595
]],[0],[expout])
595
]],[0],[expout])
Lines 615-621 AT_CHECK([[debugedit -b $(pwd) -d /foo/bar/baz ./foo.o]]) Link Here
615
AT_CHECK([[debugedit -b $(pwd) -d /foo/bar/baz ./subdir_bar/bar.o]])
615
AT_CHECK([[debugedit -b $(pwd) -d /foo/bar/baz ./subdir_bar/bar.o]])
616
AT_CHECK([[debugedit -b $(pwd) -d /foo/bar/baz ./baz.o]])
616
AT_CHECK([[debugedit -b $(pwd) -d /foo/bar/baz ./baz.o]])
617
AT_CHECK([[
617
AT_CHECK([[
618
readelf --debug-dump=macro foo.o subdir_bar/bar.o baz.o \
618
$READELF --debug-dump=macro foo.o subdir_bar/bar.o baz.o \
619
        | grep NUMBER | rev | cut -d: -f1 | rev | cut -c2-
619
        | grep NUMBER | rev | cut -d: -f1 | rev | cut -c2-
620
]],[0],[expout])
620
]],[0],[expout])
621
621
Lines 638-644 NUMBER 42 Link Here
638
638
639
AT_CHECK([[debugedit -b $(pwd) -d /foo/bar/baz ./foobarbaz.part.o]])
639
AT_CHECK([[debugedit -b $(pwd) -d /foo/bar/baz ./foobarbaz.part.o]])
640
AT_CHECK([[
640
AT_CHECK([[
641
readelf --debug-dump=macro ./foobarbaz.part.o \
641
$READELF --debug-dump=macro ./foobarbaz.part.o \
642
        | grep NUMBER | rev | cut -d: -f1 | rev | cut -c2-
642
        | grep NUMBER | rev | cut -d: -f1 | rev | cut -c2-
643
]],[0],[expout])
643
]],[0],[expout])
644
644
Lines 661-667 NUMBER 42 Link Here
661
661
662
AT_CHECK([[debugedit -b $(pwd) -d /foo/bar/baz ./foobarbaz.exe]])
662
AT_CHECK([[debugedit -b $(pwd) -d /foo/bar/baz ./foobarbaz.exe]])
663
AT_CHECK([[
663
AT_CHECK([[
664
readelf --debug-dump=macro ./foobarbaz.exe \
664
$READELF --debug-dump=macro ./foobarbaz.exe \
665
        | grep NUMBER | rev | cut -d: -f1 | rev | cut -c2-
665
        | grep NUMBER | rev | cut -d: -f1 | rev | cut -c2-
666
]],[0],[expout])
666
]],[0],[expout])
667
667
668
- 

Return to bug 768444