[v2,2/7] Small constructor change to target_buffer
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-arm |
success
|
Testing passed
|
linaro-tcwg-bot/tcwg_gdb_check--master-aarch64 |
success
|
Testing passed
|
Commit Message
This changes the target_buffer constructor to initialize m_filename
rather than assign to it.
---
gdb/gdb_bfd.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
@@ -226,10 +226,10 @@ struct target_buffer
target memory. */
target_buffer (CORE_ADDR base, ULONGEST size)
: m_base (base),
- m_size (size)
+ m_size (size),
+ m_filename (xstrprintf ("<in-memory@%s>",
+ core_addr_to_string_nz (m_base)))
{
- m_filename
- = xstrprintf ("<in-memory@%s>", core_addr_to_string_nz (m_base));
}
/* Return the size of the in-memory BFD file. */