How do I paste multiple command lines in one go?

How can I get multi line pasting of commands working again in gdb? Hmm something has changed with copy/paste between GNU gdb (Ubuntu 8.1.1-0ubuntu1) 8.1.1 and GNU gdb (Ubuntu 12.1-0ubuntu1~22.04) 12.1 No idea about intermediates – I didn’t do the "upgrade". It seems that when I paste multiple lines through windows putty on the newer… Read More How do I paste multiple command lines in one go?

C reading values into double array, read values are different from values on local file

I’ve attempted to read a column of values in txt file into a double array in C (I haven’t written C/C++ for years, take me as a newbie). The values in file and the values in the double array were different. I don’t understand why and how to correct it. I’ve locked C standard to… Read More C reading values into double array, read values are different from values on local file

What does repeat n times mean in gdb debugger?

For example: bool plugin::checkQuality(string &text) { string temp = normalizeContent(text, 1); map<string, int> mapWords; matchWords(temp.c_str(), mapWords); … } Once gdb enter this function, I can see the value as: plugin::checkQuality (this=0x7fffffffd9c0, text="This is a test", ‘ ‘ <repeats 20 times>, "c,,,,") at /mod/filter/plugin.cpp:59 What does the 2nd argument <repeats 20 times> means? And what’s the… Read More What does repeat n times mean in gdb debugger?