[v2,01/14] Use pop_back in tui_register_format
Checks
Context |
Check |
Description |
linaro-tcwg-bot/tcwg_gdb_build--master-arm |
success
|
Testing passed
|
linaro-tcwg-bot/tcwg_gdb_build--master-aarch64 |
success
|
Testing passed
|
linaro-tcwg-bot/tcwg_gdb_check--master-aarch64 |
success
|
Testing passed
|
linaro-tcwg-bot/tcwg_gdb_check--master-arm |
success
|
Testing passed
|
Commit Message
tui_register_format can use string::pop_back now.
Tested-By: Tom de Vries <tdevries@suse.de>
Reviewed-By: Andrew Burgess <aburgess@redhat.com>
---
gdb/tui/tui-regs.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
@@ -96,7 +96,7 @@ tui_register_format (frame_info_ptr frame, int regnum)
/* Remove the possible \n. */
std::string str = stream.release ();
if (!str.empty () && str.back () == '\n')
- str.resize (str.size () - 1);
+ str.pop_back ();
return str;
}