• R/O
  • HTTP
  • SSH
  • HTTPS

提交

標籤
無標籤

Frequently used words (click to add to your profile)

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

GNU Binutils with patches for OS216


Commit MetaInfo

修訂dfe2491d5875fb2dc316e114a3e1f2737cd056ec (tree)
時間2019-09-23 22:12:54
作者Nick Alcock <nick.alcock@orac...>
CommiterNick Alcock

Log Message

libctf: dump: check the right error values when dumping functions

We weren't correctly detecting when there were no functions to dump in
the function info table, because we were checking for ECTF_NOTYPEDAT,
which means there are no *data objects* to dump.

Adjust accordingly.

libctf/
* ctf-dump.c (ctf_dump_funcs): Check the right error value.

Change Summary

差異

--- a/libctf/ChangeLog
+++ b/libctf/ChangeLog
@@ -1,5 +1,9 @@
11 2019-07-13 Nick Alcock <nick.alcock@oracle.com>
22
3+ * ctf-dump.c (ctf_dump_funcs): Check the right error value.
4+
5+2019-07-13 Nick Alcock <nick.alcock@oracle.com>
6+
37 * ctf-dump.c (ctf_dump): Use ctf_type_iter_all to dump types, not
48 ctf_type_iter.
59 (ctf_dump_type): Pass down the flag from ctf_type_iter_all.
--- a/libctf/ctf-dump.c
+++ b/libctf/ctf-dump.c
@@ -401,7 +401,8 @@ ctf_dump_funcs (ctf_file_t *fp, ctf_dump_state_t *state)
401401 case ECTF_NOSYMTAB:
402402 return -1;
403403 case ECTF_NOTDATA:
404- case ECTF_NOTYPEDAT:
404+ case ECTF_NOTFUNC:
405+ case ECTF_NOFUNCDAT:
405406 continue;
406407 }
407408 if ((args = calloc (fi.ctc_argc, sizeof (ctf_id_t))) == NULL)