|
From: | Milica Lazarevic |
Subject: | Re: [PATCH v2 12/20] disas/nanomips: Replace std::string type |
Date: | Thu, 8 Sep 2022 19:16:24 +0000 |
In the implementation you suggested, there's one comma missing in the output. For example, instead of having: > 0x802021ce: 1e12 SAVE 0x10,ra,s0
We're having this:
< 0x802021ce: 1e12 SAVE 0x10ra,s0
So, I'm assuming that there needs to exist one more concatenation between the comma and the result of the g_strjoinv function?
Maybe something like
return g_strconcat((char *)",", (char *)g_strjoinv(",", reg_list), NULL);
this?
I'm not sure why the fixed size buffer would be a problem here since the buffer size has already been limited by the caller.
I.e. in the print_insn_nanomips function, the buf variable is defined as: char buf[200]; |
[Prev in Thread] | Current Thread | [Next in Thread] |