• R/O
  • HTTP
  • SSH
  • HTTPS

コミット

タグ
未設定

よく使われているワード(クリックで追加)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

GNU Binutils with patches for OS216


コミットメタ情報

リビジョン6c29562bead03a191bfad3b2143d60d4f9a953d6 (tree)
日時2020-02-21 10:04:07
作者Aaron Merey <amerey@redh...>
コミッターAaron Merey

ログメッセージ

fix line format

変更サマリ

差分

--- a/gdb/configure
+++ b/gdb/configure
@@ -6897,18 +6897,18 @@ $as_echo "#define HAVE_LIBDEBUGINFOD 1" >>confdefs.h
68976897
68986898 else
68996899 if test "x$with_debuginfod" = xyes; then
6900- as_fn_error $? "\"--with-debuginfod was given, but libdebuginfod is missing or unusable.\"" "$LINENO" 5
6900+ as_fn_error $? "\"--with-debuginfod was given, but libdebuginfod is missing or unusable.\"" "$LINENO" 5
69016901 else
6902- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&5
6902+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&5
69036903 $as_echo "$as_me: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&2;}
69046904 fi
69056905 fi
69066906 else
69076907 if test "x$with_debuginfod" = xyes; then
6908- as_fn_error $? "pkg-config missing or unusable; cannot find libdebuginfod" "$LINENO" 5
6908+ as_fn_error $? "--with-debuginfod was given, but pkg-config missing or unusable; cannot find libdebuginfod" "$LINENO" 5
69096909 else
6910- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pkg-config missing or unusable; cannot find libdebuginfod" >&5
6911-$as_echo "$as_me: WARNING: pkg-config missing or unusable; cannot find libdebuginfod" >&2;}
6910+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pkg-config missing or unusable; debuginfod support disabled." >&5
6911+$as_echo "$as_me: WARNING: pkg-config missing or unusable; debuginfod support disabled." >&2;}
69126912 fi
69136913 fi
69146914 else
--- a/gdb/configure.ac
+++ b/gdb/configure.ac
@@ -340,9 +340,9 @@ if test "x$with_debuginfod" != xno; then
340340 AC_DEFINE([HAVE_LIBDEBUGINFOD], [1], [Define to 1 if debuginfod is enabled.])
341341 else
342342 if test "x$with_debuginfod" = xyes; then
343- AC_MSG_ERROR(["--with-debuginfod was given, but libdebuginfod is missing or unusable."])
343+ AC_MSG_ERROR(["--with-debuginfod was given, but libdebuginfod is missing or unusable."])
344344 else
345- AC_MSG_WARN([libdebuginfod is missing or unusable; some features may be unavailable.])
345+ AC_MSG_WARN([libdebuginfod is missing or unusable; some features may be unavailable.])
346346 fi
347347 fi
348348 else
--- a/gdb/debuginfod-support.c
+++ b/gdb/debuginfod-support.c
@@ -24,17 +24,17 @@
2424 #ifndef HAVE_LIBDEBUGINFOD
2525 scoped_fd
2626 debuginfod_source_query (const unsigned char *build_id __attribute__((unused)),
27- int build_id_len __attribute__((unused)),
28- const char *srcpath __attribute__((unused)),
29- gdb::unique_xmalloc_ptr<char> *filename __attribute__((unused)))
27+ int build_id_len __attribute__((unused)),
28+ const char *srcpath __attribute__((unused)),
29+ gdb::unique_xmalloc_ptr<char> *filename __attribute__((unused)))
3030 {
3131 return scoped_fd (-ENOSYS);
3232 }
3333
3434 scoped_fd
3535 debuginfod_debuginfo_query (const unsigned char *build_id __attribute__((unused)),
36- int build_id_len __attribute__((unused)),
37- gdb::unique_xmalloc_ptr<char> *filename __attribute__((unused)))
36+ int build_id_len __attribute__((unused)),
37+ gdb::unique_xmalloc_ptr<char> *filename __attribute__((unused)))
3838 {
3939 return scoped_fd (-ENOSYS);
4040 }
@@ -51,9 +51,9 @@ progressfn (debuginfod_client *c, long cur, long total)
5151 }
5252
5353 printf_unfiltered ("Downloading... %.0f%% (%ld/%ld)%s",
54- (cur * 100.0f) / total,
55- cur, total,
56- (cur == total) ? "\n" : "\r");
54+ (cur * 100.0f) / total,
55+ cur, total,
56+ (cur == total) ? "\n" : "\r");
5757 return 0;
5858 }
5959
@@ -72,9 +72,9 @@ debuginfod_init ()
7272
7373 scoped_fd
7474 debuginfod_source_query (const unsigned char *build_id,
75- int build_id_len,
76- const char *srcpath,
77- gdb::unique_xmalloc_ptr<char> *destname)
75+ int build_id_len,
76+ const char *srcpath,
77+ gdb::unique_xmalloc_ptr<char> *destname)
7878 {
7979 debuginfod_client *c = debuginfod_init ();
8080
@@ -85,18 +85,17 @@ debuginfod_source_query (const unsigned char *build_id,
8585
8686 printf_unfiltered ("Attempting to download source file %s\n", srcpath);
8787 scoped_fd fd (debuginfod_find_source (c,
88- build_id,
89- build_id_len,
90- srcpath,
91- &dname));
88+ build_id,
89+ build_id_len,
90+ srcpath,
91+ &dname));
9292
9393 if (fd.get () < 0)
9494 printf_unfiltered ("Download unsuccessful. Continuing without source file %s.\n",
95- srcpath);
95+ srcpath);
9696 else
9797 printf_unfiltered ("Download successful.\n");
9898
99-
10099 destname->reset (dname);
101100 debuginfod_end (c);
102101
@@ -107,9 +106,9 @@ debuginfod_source_query (const unsigned char *build_id,
107106
108107 scoped_fd
109108 debuginfod_debuginfo_query (const unsigned char *build_id,
110- int build_id_len,
111- const char *filename,
112- gdb::unique_xmalloc_ptr<char> *destname)
109+ int build_id_len,
110+ const char *filename,
111+ gdb::unique_xmalloc_ptr<char> *destname)
113112 {
114113 debuginfod_client *c = debuginfod_init ();
115114
@@ -123,7 +122,7 @@ debuginfod_debuginfo_query (const unsigned char *build_id,
123122
124123 if (fd.get () < 0)
125124 printf_unfiltered ("Download unsuccessful. Continuing without debug info for %s.\n",
126- filename);
125+ filename);
127126 else
128127 printf_unfiltered ("Download successful.\n");
129128
--- a/gdb/debuginfod-support.h
+++ b/gdb/debuginfod-support.h
@@ -37,9 +37,9 @@
3737
3838 extern scoped_fd
3939 debuginfod_source_query (const unsigned char *build_id,
40- int build_id_len,
41- const char *src_path,
42- gdb::unique_xmalloc_ptr<char> *destname);
40+ int build_id_len,
41+ const char *src_path,
42+ gdb::unique_xmalloc_ptr<char> *destname);
4343
4444 /* Query debuginfod servers for a debuginfo file with BUILD_ID.
4545 BUILD_ID can be given as a binary blob or a null-terminated string.
@@ -52,8 +52,8 @@ debuginfod_source_query (const unsigned char *build_id,
5252
5353 extern scoped_fd
5454 debuginfod_debuginfo_query (const unsigned char *build_id,
55- int build_id_len,
56- const char *filename,
57- gdb::unique_xmalloc_ptr<char> *destname);
55+ int build_id_len,
56+ const char *filename,
57+ gdb::unique_xmalloc_ptr<char> *destname);
5858
5959 #endif /* DEBUGINFOD_SUPPORT_H */
--- a/gdb/dwarf2read.c
+++ b/gdb/dwarf2read.c
@@ -2753,19 +2753,19 @@ dwarf2_get_dwz_file (struct dwarf2_per_objfile *dwarf2_per_objfile)
27532753 const char *origname = dwarf2_per_objfile->objfile->original_name;
27542754
27552755 scoped_fd fd (debuginfod_debuginfo_query (buildid,
2756- buildid_len,
2757- origname,
2758- &alt_filename));
2756+ buildid_len,
2757+ origname,
2758+ &alt_filename));
27592759
27602760 if (fd.get () >= 0)
2761- {
2762- /* File successfully retrieved from server. */
2763- dwz_bfd = gdb_bfd_open (alt_filename.get (), gnutarget, -1);
2761+ {
2762+ /* File successfully retrieved from server. */
2763+ dwz_bfd = gdb_bfd_open (alt_filename.get (), gnutarget, -1);
27642764
2765- if (dwz_bfd != nullptr
2766- && !build_id_verify (dwz_bfd.get (), buildid_len, buildid))
2767- dwz_bfd.reset (nullptr);
2768- }
2765+ if (dwz_bfd != nullptr
2766+ && !build_id_verify (dwz_bfd.get (), buildid_len, buildid))
2767+ dwz_bfd.reset (nullptr);
2768+ }
27692769 }
27702770
27712771 if (dwz_bfd == NULL)
--- a/gdb/elfread.c
+++ b/gdb/elfread.c
@@ -1319,33 +1319,33 @@ elf_symfile_read (struct objfile *objfile, symfile_add_flags symfile_flags)
13191319 symfile_flags, objfile);
13201320 }
13211321 else
1322- {
1323- has_dwarf2 = false;
1324- const struct bfd_build_id *build_id = build_id_bfd_get (objfile->obfd);
1325-
1326- if (build_id != nullptr)
1327- {
1328- gdb::unique_xmalloc_ptr<char> symfile_path;
1329- scoped_fd fd (debuginfod_debuginfo_query (build_id->data,
1330- build_id->size,
1331- objfile->original_name,
1332- &symfile_path));
1333-
1334- if (fd.get () >= 0)
1335- {
1336- /* File successfully retrieved from server. */
1337- gdb_bfd_ref_ptr debug_bfd (symfile_bfd_open (symfile_path.get ()));
1338-
1339- if (debug_bfd != nullptr
1340- && build_id_verify (debug_bfd.get (), build_id->size, build_id->data))
1341- {
1342- symbol_file_add_separate (debug_bfd.get (), symfile_path.get (),
1343- symfile_flags, objfile);
1344- has_dwarf2 = true;
1345- }
1346- }
1347- }
1348- }
1322+ {
1323+ has_dwarf2 = false;
1324+ const struct bfd_build_id *build_id = build_id_bfd_get (objfile->obfd);
1325+
1326+ if (build_id != nullptr)
1327+ {
1328+ gdb::unique_xmalloc_ptr<char> symfile_path;
1329+ scoped_fd fd (debuginfod_debuginfo_query (build_id->data,
1330+ build_id->size,
1331+ objfile->original_name,
1332+ &symfile_path));
1333+
1334+ if (fd.get () >= 0)
1335+ {
1336+ /* File successfully retrieved from server. */
1337+ gdb_bfd_ref_ptr debug_bfd (symfile_bfd_open (symfile_path.get ()));
1338+
1339+ if (debug_bfd != nullptr
1340+ && build_id_verify (debug_bfd.get (), build_id->size, build_id->data))
1341+ {
1342+ symbol_file_add_separate (debug_bfd.get (), symfile_path.get (),
1343+ symfile_flags, objfile);
1344+ has_dwarf2 = true;
1345+ }
1346+ }
1347+ }
1348+ }
13491349 }
13501350
13511351 /* Read the CTF section only if there is no DWARF info. */
--- a/gdb/source.c
+++ b/gdb/source.c
@@ -1159,28 +1159,28 @@ open_source_file (struct symtab *s)
11591159 if (fd.get () < 0)
11601160 {
11611161 if (SYMTAB_COMPUNIT (s) != nullptr)
1162- {
1163- const objfile *ofp = COMPUNIT_OBJFILE (SYMTAB_COMPUNIT (s));
1164-
1165- std::string srcpath;
1166- if (IS_ABSOLUTE_PATH (s->filename))
1167- srcpath = s->filename;
1168- else
1169- {
1170- srcpath = SYMTAB_DIRNAME (s);
1171- srcpath += SLASH_STRING;
1172- srcpath += s->filename;
1173- }
1174-
1175- const struct bfd_build_id *build_id = build_id_bfd_get (ofp->obfd);
1176-
1177- /* Query debuginfod for the source file. */
1178- if (build_id != nullptr)
1179- fd = debuginfod_source_query (build_id->data,
1180- build_id->size,
1181- srcpath.c_str (),
1182- &fullname);
1183- }
1162+ {
1163+ const objfile *ofp = COMPUNIT_OBJFILE (SYMTAB_COMPUNIT (s));
1164+
1165+ std::string srcpath;
1166+ if (IS_ABSOLUTE_PATH (s->filename))
1167+ srcpath = s->filename;
1168+ else
1169+ {
1170+ srcpath = SYMTAB_DIRNAME (s);
1171+ srcpath += SLASH_STRING;
1172+ srcpath += s->filename;
1173+ }
1174+
1175+ const struct bfd_build_id *build_id = build_id_bfd_get (ofp->obfd);
1176+
1177+ /* Query debuginfod for the source file. */
1178+ if (build_id != nullptr)
1179+ fd = debuginfod_source_query (build_id->data,
1180+ build_id->size,
1181+ srcpath.c_str (),
1182+ &fullname);
1183+ }
11841184 }
11851185
11861186 s->fullname = fullname.release ();
--- a/gdb/testsuite/gdb.debuginfod/fetch_src_and_symbols.exp
+++ b/gdb/testsuite/gdb.debuginfod/fetch_src_and_symbols.exp
@@ -47,7 +47,7 @@ set outputdir [standard_output_file {}]
4747
4848 # Make a copy source file that we can move around
4949 if { [catch {file copy -force ${srcdir}/${subdir}/${srcfile} \
50- [standard_output_file ${sourcetmp}]}] != 0 } {
50+ [standard_output_file ${sourcetmp}]}] != 0 } {
5151 error "create temporary file"
5252 return -1
5353 }
@@ -88,17 +88,17 @@ proc write_just_debugaltlink {filename dwzname buildid} {
8888 set asm_file [standard_output_file $filename]
8989
9090 Dwarf::assemble $asm_file {
91- upvar dwzname dwzname
92- upvar buildid buildid
91+ upvar dwzname dwzname
92+ upvar buildid buildid
9393
94- gnu_debugaltlink $dwzname $buildid
94+ gnu_debugaltlink $dwzname $buildid
9595
96- # Only the DWARF reader checks .gnu_debugaltlink, so make sure
97- # there is a bit of DWARF in here.
98- cu {} {
99- compile_unit {{language @DW_LANG_C}} {
100- }
101- }
96+ # Only the DWARF reader checks .gnu_debugaltlink, so make sure
97+ # there is a bit of DWARF in here.
98+ cu {} {
99+ compile_unit {{language @DW_LANG_C}} {
100+ }
101+ }
102102 }
103103 }
104104
@@ -108,28 +108,28 @@ proc write_dwarf_file {filename buildid {value 99}} {
108108 set asm_file [standard_output_file $filename]
109109
110110 Dwarf::assemble $asm_file {
111- declare_labels int_label int_label2
112-
113- upvar buildid buildid
114- upvar value value
115-
116- build_id $buildid
117-
118- cu {} {
119- compile_unit {{language @DW_LANG_C}} {
120- int_label2: base_type {
121- {name int}
122- {byte_size 4 sdata}
123- {encoding @DW_ATE_signed}
124- }
125-
126- constant {
127- {name the_int}
128- {type :$int_label2}
129- {const_value $value data1}
130- }
131- }
132- }
111+ declare_labels int_label int_label2
112+
113+ upvar buildid buildid
114+ upvar value value
115+
116+ build_id $buildid
117+
118+ cu {} {
119+ compile_unit {{language @DW_LANG_C}} {
120+ int_label2: base_type {
121+ {name int}
122+ {byte_size 4 sdata}
123+ {encoding @DW_ATE_signed}
124+ }
125+
126+ constant {
127+ {name the_int}
128+ {type :$int_label2}
129+ {const_value $value data1}
130+ }
131+ }
132+ }
133133 }
134134 }
135135
@@ -176,9 +176,9 @@ while { ! $found } {
176176 }
177177
178178 set metrics [list "ready 1" \
179- "thread_work_total{role=\"traverse\"} 1" \
180- "thread_work_pending{role=\"scan\"} 0" \
181- "thread_busy{role=\"scan\"} 0"]
179+ "thread_work_total{role=\"traverse\"} 1" \
180+ "thread_work_pending{role=\"scan\"} 0" \
181+ "thread_busy{role=\"scan\"} 0"]
182182
183183 # Check server metrics to confirm init has completed.
184184 foreach m $metrics {