]>
Commit | Line | Data |
---|---|---|
c906108c SS |
1 | What has changed in GDB? |
2 | (Organized release by release) | |
3 | ||
4ff87a30 JB |
4 | *** Changes since GDB 13 |
5 | ||
acdf6071 LM |
6 | * The AArch64 'org.gnu.gdb.aarch64.pauth' Pointer Authentication feature string |
7 | has been deprecated in favor of the 'org.gnu.gdb.aarch64.pauth_v2' feature | |
8 | string. | |
9 | ||
303a881f TT |
10 | * GDB now has some support for integer types larger than 64 bits. |
11 | ||
2eb26135 AVK |
12 | * Removed targets and native configurations |
13 | ||
14 | GDB no longer supports AIX 4.x, AIX 5.x and AIX 6.x. The minimum supported | |
15 | AIX version is now AIX 7.1. | |
16 | ||
ff52c073 CS |
17 | * Multi-target feature configuration |
18 | ||
19 | GDB now supports the individual configuration of remote targets' feature | |
20 | sets. Based on the current selection of a target, the commands 'set remote | |
21 | <name>-packet (on|off|auto)' and 'show remote <name>-packet' can be used to | |
22 | configure a target's feature packet and to display its configuration, | |
23 | respectively. | |
24 | ||
fe4c3ca0 CS |
25 | The individual packet sizes can be configured and shown using the commands |
26 | ** 'set remote memory-read-packet-size (number of bytes|fixed|limit)' | |
27 | ** 'set remote memory-write-packet-size (number of bytes|fixed|limit)' | |
28 | ** 'show remote memory-read-packet-size' | |
29 | ** 'show remote memory-write-packet-size'. | |
30 | ||
31 | The configuration of the packet itself, as well as the size of a memory-read | |
32 | or memory-write packet applies to the currently selected target (if | |
33 | available). If no target is selected, it applies to future remote | |
ff52c073 CS |
34 | connections. Similarly, the show commands print the configuration of the |
35 | currently selected target. If no remote target is selected, the default | |
36 | configuration for future connections is shown. | |
37 | ||
975249ff TT |
38 | * MI version 1 has been removed. |
39 | ||
de7d7cb5 TT |
40 | * GDB has initial built-in support for the Debugger Adapter Protocol. |
41 | This support requires that GDB be built with Python scripting | |
42 | enabled. | |
43 | ||
980dbf36 AB |
44 | * For the break command, multiple uses of the 'thread' or 'task' |
45 | keywords will now give an error instead of just using the thread or | |
46 | task id from the last instance of the keyword. E.g.: | |
47 | break foo thread 1 thread 2 | |
48 | will now give an error rather than using 'thread 2'. | |
49 | ||
50 | * For the watch command, multiple uses of the 'task' keyword will now | |
51 | give an error instead of just using the task id from the last | |
52 | instance of the keyword. E.g.: | |
53 | watch my_var task 1 task 2 | |
54 | will now give an error rather than using 'task 2'. The 'thread' | |
55 | keyword already gave an error when used multiple times with the | |
56 | watch command, this remains unchanged. | |
57 | ||
a0c07915 AB |
58 | * The 'set print elements' setting now helps when printing large arrays. |
59 | If an array would otherwise exceed max-value-size, but 'print elements' | |
60 | is set such that the size of elements to print is less than or equal | |
61 | to 'max-value-size', GDB will now still print the array, however only | |
62 | 'max-value-size' worth of data will be added into the value history. | |
63 | ||
0a9ccb9d AB |
64 | * For both the break and watch commands, it is now invalid to use both |
65 | the 'thread' and 'task' keywords within the same command. For | |
66 | example the following commnds will now give an error: | |
67 | break foo thread 1 task 1 | |
68 | watch var thread 2 task 3 | |
69 | ||
901682e4 AB |
70 | * The printf command now accepts a '%V' output format which will |
71 | format an expression just as the 'print' command would. Print | |
72 | options can be placed withing '[...]' after the '%V' to modify how | |
73 | the value is printed. E.g: | |
74 | printf "%V", some_array | |
75 | printf "%V[-array-indexes on]", some_array | |
76 | will print the array without, or with array indexes included, just | |
77 | as the array would be printed by the 'print' command. This | |
78 | functionality is also available for dprintf when dprintf-style is | |
79 | 'gdb'. | |
80 | ||
e24d337e BL |
81 | * New commands |
82 | ||
83 | maintenance print record-instruction [ N ] | |
84 | Print the recorded information for a given instruction. If N is not given | |
85 | prints how GDB would undo the last instruction executed. If N is negative, | |
86 | prints how GDB would undo the N-th previous instruction, and if N is | |
87 | positive, it prints how GDB will redo the N-th following instruction. | |
88 | ||
be016879 TV |
89 | maintenance info frame-unwinders |
90 | List the frame unwinders currently in effect, starting with the highest | |
91 | priority. | |
92 | ||
f0c3dcc1 TT |
93 | maintenance wait-for-index-cache |
94 | Wait until all pending writes to the index cache have completed. | |
95 | ||
0d5adb56 TV |
96 | set always-read-ctf on|off |
97 | show always-read-ctf | |
98 | When off, CTF is only read if DWARF is not present. When on, CTF is | |
99 | read regardless of whether DWARF is present. Off by default. | |
100 | ||
03d83cd5 RB |
101 | info main |
102 | Get main symbol to identify entry point into program. | |
103 | ||
91265a7d PA |
104 | * New convenience function "$_shell", to execute a shell command and |
105 | return the result. This lets you run shell commands in expressions. | |
106 | Some examples: | |
107 | ||
108 | (gdb) p $_shell("true") | |
109 | $1 = 0 | |
110 | (gdb) p $_shell("false") | |
111 | $2 = 1 | |
112 | (gdb) break func if $_shell("some command") == 0 | |
113 | ||
37f54063 BL |
114 | * MI changes |
115 | ||
116 | ** mi now reports 'no-history' as a stop reason when hitting the end of the | |
117 | reverse execution history. | |
118 | ||
2fd9a436 AB |
119 | ** When creating a thread-specific breakpoint using the '-p' option, |
120 | the -break-insert command would report the 'thread' field twice in | |
121 | the reply. The content of both fields was always identical. This | |
122 | has now been fixed; the 'thread' field will be reported just once | |
123 | for thread-specific breakpoints, or not at all for breakpoints | |
124 | without a thread restriction. The same is also true for the 'task' | |
125 | field of an Ada task-specific breakpoint. | |
126 | ||
00cdd79a AB |
127 | ** It is no longer possible to create a thread-specific breakpoint for |
128 | a thread that doesn't exist using '-break-insert -p ID'. Creating | |
129 | breakpoints for non-existent threads is not allowed when using the | |
130 | CLI, that the MI allowed it was a long standing bug, which has now | |
131 | been fixed. | |
132 | ||
51f8dafb GR |
133 | ** The '--simple-values' argument to the '-stack-list-arguments', |
134 | '-stack-list-locals', '-stack-list-variables', and '-var-list-children' | |
135 | commands now takes reference types into account: that is, a value is now | |
136 | considered simple if it is neither an array, structure, or union, nor a | |
137 | reference to an array, structure, or union. (Previously all references were | |
138 | considered simple.) Support for this feature can be verified by using the | |
139 | '-list-features' command, which should contain "simple-values-ref-types". | |
140 | ||
6bf5f25b AB |
141 | * Python API |
142 | ||
28ab5960 SF |
143 | ** gdb.ThreadExitedEvent added. Emits a ThreadEvent. |
144 | ||
6bf5f25b AB |
145 | ** The gdb.unwinder.Unwinder.name attribute is now read-only. |
146 | ||
147 | ** The name argument passed to gdb.unwinder.Unwinder.__init__ must | |
148 | now be of type 'str' otherwise a TypeError will be raised. | |
149 | ||
150 | ** The gdb.unwinder.Unwinder.enabled attribute can now only accept | |
151 | values of type 'bool'. Changing this attribute will now | |
152 | invalidate GDB's frame-cache, which means GDB will need to | |
153 | rebuild its frame-cache when next required - either with, or | |
154 | without the particular unwinder, depending on how 'enabled' was | |
155 | changed. | |
156 | ||
86b35b71 AB |
157 | ** New methods added to the gdb.PendingFrame class. These methods |
158 | have the same behaviour as the corresponding methods on | |
159 | gdb.Frame. The new methods are: | |
160 | ||
161 | - gdb.PendingFrame.name: Return the name for the frame's | |
162 | function, or None. | |
163 | - gdb.PendingFrame.is_valid: Return True if the pending frame | |
164 | object is valid. | |
165 | - gdb.PendingFrame.pc: Return the $pc register value for this | |
166 | frame. | |
167 | - gdb.PendingFrame.language: Return a string containing the | |
168 | language for this frame, or None. | |
169 | - gdb.PendingFrame.find_sal: Return a gdb.Symtab_and_line | |
170 | object for the current location within the pending frame, or | |
171 | None. | |
172 | - gdb.PendingFrame.block: Return a gdb.Block for the current | |
173 | pending frame, or None. | |
174 | - gdb.PendingFrame.function: Return a gdb.Symbol for the | |
175 | current pending frame, or None. | |
176 | ||
64826d05 AB |
177 | ** The frame-id passed to gdb.PendingFrame.create_unwind_info can |
178 | now use either an integer or a gdb.Value object for each of its | |
179 | 'sp', 'pc', and 'special' attributes. | |
180 | ||
3712e78c AB |
181 | ** A new class gdb.unwinder.FrameId has been added. Instances of |
182 | this class are constructed with 'sp' (stack-pointer) and 'pc' | |
183 | (program-counter) values, and can be used as the frame-id when | |
184 | calling gdb.PendingFrame.create_unwind_info. | |
185 | ||
0af2f233 AB |
186 | ** It is now no longer possible to sub-class the |
187 | gdb.disassembler.DisassemblerResult type. | |
188 | ||
4de4e485 AB |
189 | ** The Disassembler API from the gdb.disassembler module has been |
190 | extended to include styling support: | |
191 | ||
192 | - The DisassemblerResult class can now be initialized with a list | |
193 | of parts. Each part represents part of the disassembled | |
194 | instruction along with the associated style information. This | |
195 | list of parts can be accessed with the new | |
196 | DisassemblerResult.parts property. | |
197 | ||
198 | - New constants gdb.disassembler.STYLE_* representing all the | |
199 | different styles part of an instruction might have. | |
200 | ||
201 | - New methods DisassembleInfo.text_part and | |
202 | DisassembleInfo.address_part which are used to create the new | |
203 | styled parts of a disassembled instruction. | |
204 | ||
205 | - Changes are backwards compatible, the older API can still be | |
206 | used to disassemble instructions without styling. | |
207 | ||
c97d123d TT |
208 | ** New function gdb.execute_mi(COMMAND, [ARG]...), that invokes a |
209 | GDB/MI command and returns the output as a Python dictionary. | |
210 | ||
125862f0 TT |
211 | ** gdb.parse_and_eval now has a new "global_context" parameter. |
212 | This can be used to request that the parse only examine global | |
213 | symbols. | |
214 | ||
31531132 TT |
215 | ** gdb.Inferior now has a new "arguments" attribute. This holds the |
216 | command-line arguments to the inferior, if known. | |
217 | ||
218 | ** gdb.Inferior now has a new "main_name" attribute. This holds the | |
219 | name of the inferior's "main", if known. | |
220 | ||
221 | ** gdb.Inferior now has new methods "clear_env", "set_env", and | |
222 | "unset_env". These can be used to modify the inferior's | |
223 | environment before it is started. | |
224 | ||
ed801569 TT |
225 | ** gdb.Value now has the 'assign' method. |
226 | ||
4ff87a30 | 227 | *** Changes in GDB 13 |
ba09d2a8 | 228 | |
560f8d05 TT |
229 | * MI version 1 is deprecated, and will be removed in GDB 14. |
230 | ||
68cffbbd LM |
231 | * GDB now supports dumping memory tag data for AArch64 MTE. It also supports |
232 | reading memory tag data for AArch64 MTE from core files generated by | |
233 | the gcore command or the Linux kernel. | |
234 | ||
235 | When a process uses memory-mapped pages protected by memory tags (for | |
236 | example, AArch64 MTE), this additional information will be recorded in | |
237 | the core file in the event of a crash or if GDB generates a core file | |
238 | from the current process state. GDB will show this additional information | |
239 | automatically, or through one of the memory-tag subcommands. | |
240 | ||
fbcda577 PA |
241 | * "info breakpoints" now displays enabled breakpoint locations of |
242 | disabled breakpoints as in the "y-" state. For example: | |
243 | ||
244 | (gdb) info breakpoints | |
245 | Num Type Disp Enb Address What | |
246 | 1 breakpoint keep n <MULTIPLE> | |
247 | 1.1 y- 0x00000000000011b6 in ... | |
248 | 1.2 y- 0x00000000000011c2 in ... | |
249 | 1.3 n 0x00000000000011ce in ... | |
250 | ||
ed8f05ba JB |
251 | * Support for Thread Local Storage (TLS) variables on FreeBSD arm and |
252 | aarch64 architectures. | |
253 | ||
065a00b3 JB |
254 | * GDB now supports hardware watchpoints on FreeBSD/Aarch64. |
255 | ||
edae3fd6 SM |
256 | * Remove support for building against Python 2, it is now only possible to |
257 | build GDB against Python 3. | |
258 | ||
49a82d50 TT |
259 | * DBX mode has been removed. |
260 | ||
cc96ae7f LS |
261 | * GDB now honours the DWARF prologue_end line-table entry flag the compiler can |
262 | emit to indicate where a breakpoint should be placed to break in a function | |
263 | past its prologue. | |
264 | ||
89555e4e MR |
265 | * Completion now also offers "NUMBER" for "set" commands that accept |
266 | a numeric argument and the "unlimited" keyword. For example: | |
267 | ||
268 | (gdb) set width <TAB> | |
269 | NUMBER unlimited | |
270 | ||
271 | and consequently: | |
272 | ||
273 | (gdb) complete set width | |
274 | set width NUMBER | |
275 | set width unlimited | |
276 | ||
4cbe4ca5 AB |
277 | * Disassembler styling using libopcodes. GDB now supports |
278 | disassembler styling using libopcodes. This is only available for | |
279 | some targets (currently x86 and RISC-V). For unsupported targets | |
280 | Python Pygments is still used. For supported targets, libopcodes | |
281 | styling is used by default. | |
282 | ||
d08bae3d TT |
283 | * The Windows native target now supports target async. |
284 | ||
2cac01e3 FS |
285 | * gdb now supports zstd compressed debug sections (ELFCOMPRESS_ZSTD) for ELF. |
286 | ||
d4ce49b7 AB |
287 | * The format of 'disassemble /r' and 'record instruction-history /r' |
288 | has changed. The instruction bytes could now be grouped together, | |
289 | and displayed in the endianness of the instruction. This is the | |
290 | same layout as used by GNU objdump when disassembling. | |
291 | ||
292 | There is now 'disassemble /b' and 'record instruction-history /b' | |
293 | which will always display the instructions bytes one at a time in | |
294 | memory order, that is, the byte at the lowest address first. | |
295 | ||
296 | For both /r and /b GDB is now better at using whitespace in order to | |
297 | align the disassembled instruction text. | |
298 | ||
92c1d07d PA |
299 | * The TUI no longer styles the source and assembly code highlighted by |
300 | the current position indicator by default. You can however | |
301 | re-enable styling using the new "set style tui-current-position" | |
302 | command. | |
303 | ||
cbda14de AB |
304 | * New convenience variable $_inferior_thread_count contains the number |
305 | of live threads in the current inferior. | |
306 | ||
78805ff8 PW |
307 | * When a breakpoint with multiple code locations is hit, GDB now prints |
308 | the code location using the syntax <breakpoint_number>.<location_number> | |
309 | such as in: | |
310 | Thread 1 "zeoes" hit Breakpoint 2.3, some_func () at zeoes.c:8 | |
311 | ||
312 | * When a breakpoint is hit, GDB now sets the convenience variables $_hit_bpnum | |
313 | and $_hit_locno to the hit breakpoint number and code location number. | |
314 | This allows to disable the last hit breakpoint using | |
315 | (gdb) disable $_hit_bpnum | |
316 | or disable only the specific breakpoint code location using | |
317 | (gdb) disable $_hit_bpnum.$_hit_locno | |
318 | These commands can be used inside the command list of a breakpoint to | |
319 | automatically disable the just encountered breakpoint (or the just | |
320 | encountered specific breakpoint code location). | |
321 | When a breakpoint has only one location, $_hit_locno is set to 1 so that | |
322 | (gdb) disable $_hit_bpnum.$_hit_locno | |
323 | and | |
324 | (gdb) disable $_hit_bpnum | |
325 | are both disabling the breakpoint. | |
326 | ||
6109f7a3 LS |
327 | * New commands |
328 | ||
329 | maintenance set ignore-prologue-end-flag on|off | |
330 | maintenance show ignore-prologue-end-flag | |
331 | This setting, which is off by default, controls whether GDB ignores the | |
332 | PROLOGUE-END flag from the line-table when skipping prologue. This can be | |
333 | used to force GDB to use prologue analyzers if the line-table is constructed | |
334 | from erroneous debug information. | |
335 | ||
153b3c11 EL |
336 | set print nibbles [on|off] |
337 | show print nibbles | |
338 | This controls whether the 'print/t' command will display binary values | |
339 | in groups of four bits, known as "nibbles". The default is 'off'. | |
340 | ||
4cbe4ca5 AB |
341 | maintenance set libopcodes-styling on|off |
342 | maintenance show libopcodes-styling | |
343 | These can be used to force off libopcodes based styling, the Python | |
344 | Pygments styling will then be used instead. | |
345 | ||
346 | set style disassembler comment | |
347 | show style disassembler comment | |
348 | set style disassembler immediate | |
349 | show style disassembler immediate | |
350 | set style disassembler mnemonic | |
351 | show style disassembler mnemonic | |
352 | set style disassembler register | |
353 | show style disassembler register | |
354 | set style disassembler address | |
355 | show style disassembler address | |
356 | set style disassembler symbol | |
357 | show style disassembler symbol | |
358 | For targets that support libopcodes based styling, these settings | |
359 | control how various aspects of the disassembler output are styled. | |
360 | The 'disassembler address' and 'disassembler symbol' styles are | |
361 | aliases for the 'address' and 'function' styles respectively. | |
362 | ||
70175292 AB |
363 | maintenance print frame-id [ LEVEL ] |
364 | Print GDB's internal frame-id for the frame at LEVEL. If LEVEL is | |
365 | not given, then print the frame-id for the currently selected frame. | |
366 | ||
e4014689 AB |
367 | set debug infcall on|off |
368 | show debug infcall | |
369 | Print additional debug messages about inferior function calls. | |
370 | ||
e26d0dab SM |
371 | set debug solib on|off |
372 | show debug solib | |
373 | Print additional debug messages about shared library handling. | |
374 | ||
92c1d07d PA |
375 | set style tui-current-position [on|off] |
376 | Whether to style the source and assembly code highlighted by the | |
377 | TUI's current position indicator. The default is off. | |
378 | ||
76b58849 AB |
379 | set print characters LIMIT |
380 | show print characters | |
381 | This new setting is like 'set print elements', but controls how many | |
382 | characters of a string are printed. This functionality used to be | |
383 | covered by 'set print elements', but it can be controlled separately | |
384 | now. LIMIT can be set to a numerical value to request that particular | |
385 | character count, to 'unlimited' to print all characters of a string, | |
386 | or to 'elements', which is also the default, to follow the setting of | |
387 | 'set print elements' as it used to be. | |
388 | ||
389 | print -characters LIMIT | |
390 | This new option to the 'print' command has the same effect as a temporary | |
391 | use of 'set print characters'. | |
392 | ||
cc96ae7f LS |
393 | * Changed commands |
394 | ||
effcf7b1 PW |
395 | document user-defined |
396 | It is now possible to document user-defined aliases. | |
397 | When a user-defined alias is documented, the help and apropos commands | |
398 | use the provided documentation instead of the documentation of the | |
399 | aliased command. | |
400 | Documenting a user-defined alias is particularly useful when the alias | |
401 | is a set of nested 'with' commands to avoid showing the help of | |
402 | the with command for an alias that will in fact launch the | |
403 | last command given in the nested commands. | |
404 | ||
cc96ae7f LS |
405 | maintenance info line-table |
406 | Add a PROLOGUE-END column to the output which indicates that an | |
407 | entry corresponds to an address where a breakpoint should be placed | |
408 | to be at the first instruction past a function's prologue. | |
409 | ||
e26d0dab SM |
410 | * Removed commands |
411 | ||
412 | set debug aix-solib on|off | |
413 | show debug aix-solib | |
414 | set debug solib-frv on|off | |
415 | show debug solib-frv | |
416 | Removed in favor of "set/show debug solib". | |
417 | ||
5d80df4a AB |
418 | maintenance info program-spaces |
419 | This command now includes a 'Core File' column which indicates the | |
420 | name of the core file associated with each program space. | |
421 | ||
02e85f7a TY |
422 | * New targets |
423 | ||
424 | GNU/Linux/LoongArch (gdbserver) loongarch*-*-linux* | |
425 | ||
02cd1b4e JL |
426 | GNU/Linux/CSKY (gdbserver) csky*-*linux* |
427 | ||
18b4d073 SM |
428 | AMDGPU amdgcn-*-* |
429 | ||
78805ff8 PW |
430 | * MI changes |
431 | ||
432 | ** The async record stating the stopped reason 'breakpoint-hit' now | |
433 | contains an optional field locno giving the code location number | |
434 | when the breakpoint has multiple code locations. | |
435 | ||
25209e2c AB |
436 | * Python API |
437 | ||
691ade38 TT |
438 | ** GDB will now reformat the doc string for gdb.Command and |
439 | gdb.Parameter sub-classes to remove unnecessary leading | |
440 | whitespace from each line before using the string as the help | |
441 | output. | |
442 | ||
25209e2c AB |
443 | ** New function gdb.format_address(ADDRESS, PROGSPACE, ARCHITECTURE), |
444 | that formats ADDRESS as 'address <symbol+offset>', where symbol is | |
445 | looked up in PROGSPACE, and ARCHITECTURE is used to format address. | |
446 | This is the same format that GDB uses when printing address, symbol, | |
447 | and offset information from the disassembler. | |
448 | ||
80fa4b2a TT |
449 | ** New function gdb.current_language that returns the name of the |
450 | current language. Unlike gdb.parameter('language'), this will | |
451 | never return 'auto'. | |
452 | ||
453 | ** New method gdb.Frame.language that returns the name of the | |
454 | frame's language. | |
455 | ||
15e15b2d AB |
456 | ** New Python API for wrapping GDB's disassembler: |
457 | ||
458 | - gdb.disassembler.register_disassembler(DISASSEMBLER, ARCH). | |
459 | DISASSEMBLER is a sub-class of gdb.disassembler.Disassembler. | |
460 | ARCH is either None or a string containing a bfd architecture | |
461 | name. DISASSEMBLER is registered as a disassembler for | |
462 | architecture ARCH, or for all architectures if ARCH is None. | |
463 | The previous disassembler registered for ARCH is returned, this | |
464 | can be None if no previous disassembler was registered. | |
465 | ||
466 | - gdb.disassembler.Disassembler is the class from which all | |
467 | disassemblers should inherit. Its constructor takes a string, | |
468 | a name for the disassembler, which is currently only used in | |
469 | some debug output. Sub-classes should override the __call__ | |
470 | method to perform disassembly, invoking __call__ on this base | |
471 | class will raise an exception. | |
472 | ||
473 | - gdb.disassembler.DisassembleInfo is the class used to describe | |
474 | a single disassembly request from GDB. An instance of this | |
475 | class is passed to the __call__ method of | |
476 | gdb.disassembler.Disassembler and has the following read-only | |
477 | attributes: 'address', and 'architecture', as well as the | |
478 | following method: 'read_memory'. | |
479 | ||
480 | - gdb.disassembler.builtin_disassemble(INFO, MEMORY_SOURCE), | |
481 | calls GDB's builtin disassembler on INFO, which is a | |
482 | gdb.disassembler.DisassembleInfo object. MEMORY_SOURCE is | |
483 | optional, its default value is None. If MEMORY_SOURCE is not | |
484 | None then it must be an object that has a 'read_memory' method. | |
485 | ||
486 | - gdb.disassembler.DisassemblerResult is a class that can be used | |
487 | to wrap the result of a call to a Disassembler. It has | |
488 | read-only attributes 'length' and 'string'. | |
489 | ||
99298c95 TT |
490 | ** gdb.Objfile now has an attribute named "is_file". This is True |
491 | if the objfile comes from a file, and False otherwise. | |
492 | ||
c4a3dbaf TT |
493 | ** New function gdb.print_options that returns a dictionary of the |
494 | prevailing print options, in the form accepted by | |
495 | gdb.Value.format_string. | |
496 | ||
497 | ** gdb.Value.format_string now uses the format provided by 'print', | |
498 | if it is called during a 'print' or other similar operation. | |
499 | ||
72be9d6b TT |
500 | ** gdb.Value.format_string now accepts the 'summary' keyword. This |
501 | can be used to request a shorter representation of a value, the | |
502 | way that 'set print frame-arguments scalars' does. | |
503 | ||
e5213e2c SF |
504 | ** New Python type gdb.BreakpointLocation. |
505 | The new attribute 'locations' of gdb.Breakpoint returns a list of | |
506 | gdb.BreakpointLocation objects specifying the locations where the | |
507 | breakpoint is inserted into the debuggee. | |
508 | ||
7abc6ec0 AB |
509 | ** The gdb.register_window_type method now restricts the set of |
510 | acceptable window names. The first character of a window's name | |
511 | must start with a character in the set [a-zA-Z], every subsequent | |
512 | character of a window's name must be in the set [-_.a-zA-Z0-9]. | |
513 | ||
02e85f7a TY |
514 | * New features in the GDB remote stub, GDBserver |
515 | ||
516 | ** GDBserver is now supported on LoongArch GNU/Linux. | |
02cd1b4e JL |
517 | |
518 | ** GDBserver is now supported on CSKY GNU/Linux. | |
02e85f7a | 519 | |
e24500cb TY |
520 | * LoongArch floating-point support |
521 | ||
522 | GDB now supports floating-point on LoongArch GNU/Linux. | |
523 | ||
18b4d073 SM |
524 | * AMD GPU ROCm debugging support |
525 | ||
526 | GDB now supports debugging programs offloaded to AMD GPUs using the ROCm | |
527 | platform. | |
528 | ||
ba09d2a8 | 529 | *** Changes in GDB 12 |
ccd14903 | 530 | |
cfeab26e TT |
531 | * DBX mode is deprecated, and will be removed in GDB 13 |
532 | ||
807310c5 AB |
533 | * GDB 12 is the last release of GDB that will support building against |
534 | Python 2. From GDB 13, it will only be possible to build GDB itself | |
535 | with Python 3 support. | |
536 | ||
bcb9251f TT |
537 | * The disable-randomization setting now works on Windows. |
538 | ||
64a97606 KS |
539 | * Improved C++ template support |
540 | ||
541 | GDB now treats functions/types involving C++ templates like it does function | |
542 | overloads. Users may omit parameter lists to set breakpoints on families of | |
543 | template functions, including types/functions composed of multiple template types: | |
544 | ||
545 | (gdb) break template_func(template_1, int) | |
546 | ||
547 | The above will set breakpoints at every function `template_func' where | |
548 | the first function parameter is any template type named `template_1' and | |
549 | the second function parameter is `int'. | |
550 | ||
551 | TAB completion also gains similar improvements. | |
552 | ||
1ead4b8e JB |
553 | * The FreeBSD native target now supports async mode. |
554 | ||
261b0748 LM |
555 | * Configure changes |
556 | ||
557 | --enable-threading | |
558 | ||
559 | Enable or disable multithreaded symbol loading. This is enabled | |
560 | by default, but passing --disable-threading or --enable-threading=no | |
561 | to configure will disable it. | |
562 | ||
563 | Disabling this can cause a performance penalty when there are a lot of | |
564 | symbols to load, but is useful for debugging purposes. | |
565 | ||
fde1a9a3 AB |
566 | * New commands |
567 | ||
6aa4f97c AB |
568 | maint set backtrace-on-fatal-signal on|off |
569 | maint show backtrace-on-fatal-signal | |
570 | This setting is 'on' by default. When 'on' GDB will print a limited | |
571 | backtrace to stderr in the situation where GDB terminates with a | |
572 | fatal signal. This only supported on some platforms where the | |
573 | backtrace and backtrace_symbols_fd functions are available. | |
574 | ||
fde1a9a3 AB |
575 | set source open on|off |
576 | show source open | |
577 | This setting, which is on by default, controls whether GDB will try | |
578 | to open source code files. Switching this off will stop GDB trying | |
579 | to open and read source code files, which can be useful if the files | |
580 | are located over a slow network connection. | |
581 | ||
acbf4a58 TT |
582 | set varsize-limit |
583 | show varsize-limit | |
584 | These are now deprecated aliases for "set max-value-size" and | |
585 | "show max-value-size". | |
586 | ||
bc75fb44 TT |
587 | task apply [all | TASK-IDS...] [FLAG]... COMMAND |
588 | Like "thread apply", but applies COMMAND to Ada tasks. | |
589 | ||
8a18382f TT |
590 | watch [...] task ID |
591 | Watchpoints can now be restricted to a specific Ada task. | |
592 | ||
91f2597b AB |
593 | maint set internal-error backtrace on|off |
594 | maint show internal-error backtrace | |
595 | maint set internal-warning backtrace on|off | |
596 | maint show internal-warning backtrace | |
597 | GDB can now print a backtrace of itself when it encounters either an | |
598 | internal-error, or an internal-warning. This is on by default for | |
599 | internal-error and off by default for internal-warning. | |
600 | ||
6ff96754 TV |
601 | set logging on|off |
602 | Deprecated and replaced by "set logging enabled on|off". | |
603 | ||
604 | set logging enabled on|off | |
605 | show logging enabled | |
606 | These commands set or show whether logging is enabled or disabled. | |
607 | ||
fa8f0a0f EL |
608 | exit |
609 | You can now exit GDB by using the new command "exit", in addition to | |
610 | the existing "quit" command. | |
611 | ||
5b0a3d62 AB |
612 | set debug threads on|off |
613 | show debug threads | |
614 | Print additional debug messages about thread creation and deletion. | |
615 | ||
8864ef42 AB |
616 | set debug linux-nat on|off |
617 | show debug linux-nat | |
618 | These new commands replaced the old 'set debug lin-lwp' and 'show | |
619 | debug lin-lwp' respectively. Turning this setting on prints debug | |
620 | messages relating to GDB's handling of native Linux inferiors. | |
621 | ||
39370778 AB |
622 | maint flush source-cache |
623 | Flush the contents of the source code cache. | |
624 | ||
643b1268 AB |
625 | maint set gnu-source-highlight enabled on|off |
626 | maint show gnu-source-highlight enabled | |
627 | Whether GDB should use the GNU Source Highlight library for adding | |
628 | styling to source code. When off, the library will not be used, even | |
629 | when available. When GNU Source Highlight isn't used, or can't add | |
630 | styling to a particular source file, then the Python Pygments | |
631 | library will be used instead. | |
632 | ||
61fb7376 TBA |
633 | set suppress-cli-notifications (on|off) |
634 | show suppress-cli-notifications | |
635 | This controls whether printing the notifications is suppressed for CLI. | |
636 | CLI notifications occur when you change the selected context | |
637 | (i.e., the current inferior, thread and/or the frame), or when | |
638 | the program being debugged stops (e.g., because of hitting a | |
639 | breakpoint, completing source-stepping, an interrupt, etc.). | |
640 | ||
e867795e AB |
641 | set style disassembler enabled on|off |
642 | show style disassembler enabled | |
643 | If GDB is compiled with Python support, and the Python Pygments | |
644 | package is available, then, when this setting is on, disassembler | |
645 | output will have styling applied. | |
646 | ||
315e4ebb TT |
647 | set ada source-charset |
648 | show ada source-charset | |
649 | Set the character set encoding that is assumed for Ada symbols. Valid | |
650 | values for this follow the values that can be passed to the GNAT | |
651 | compiler via the '-gnati' option. The default is ISO-8859-1. | |
652 | ||
51c2a9e2 AB |
653 | tui layout |
654 | tui focus | |
655 | tui refresh | |
656 | tui window height | |
657 | These are the new names for the old 'layout', 'focus', 'refresh', | |
658 | and 'winheight' tui commands respectively. The old names still | |
659 | exist as aliases to these new commands. | |
660 | ||
160444ec AB |
661 | tui window width |
662 | winwidth | |
663 | The new command 'tui window width', and the alias 'winwidth' allow | |
664 | the width of a tui window to be adjusted when windows are laid out | |
665 | in horizontal mode. | |
666 | ||
7421ccda AB |
667 | set debug tui on|off |
668 | show debug tui | |
669 | Control the display of debug output about GDB's tui. | |
670 | ||
e5b176f2 AB |
671 | * Changed commands |
672 | ||
56262a93 TT |
673 | |
674 | Printing of floating-point values with base-modifying formats like | |
675 | /x has been changed to display the underlying bytes of the value in | |
676 | the desired base. This was GDB's documented behavior, but was never | |
677 | implemented correctly. | |
678 | ||
e5b176f2 AB |
679 | maint packet |
680 | This command can now print a reply, if the reply includes | |
681 | non-printable characters. Any non-printable characters are printed | |
682 | as escaped hex, e.g. \x?? where '??' is replaces with the value of | |
683 | the non-printable character. | |
684 | ||
003aae07 LS |
685 | clone-inferior |
686 | The clone-inferior command now ensures that the TTY, CMD and ARGS | |
687 | settings are copied from the original inferior to the new one. | |
688 | All modifications to the environment variables done using the 'set | |
689 | environment' or 'unset environment' commands are also copied to the new | |
690 | inferior. | |
691 | ||
8864ef42 AB |
692 | set debug lin-lwp on|off |
693 | show debug lin-lwp | |
694 | These commands have been removed from GDB. The new command 'set | |
695 | debug linux-nat' and 'show debug linux-nat' should be used | |
696 | instead. | |
697 | ||
f62843d7 AB |
698 | info win |
699 | This command now includes information about the width of the tui | |
700 | windows in its output. | |
701 | ||
51c2a9e2 AB |
702 | layout |
703 | focus | |
704 | refresh | |
705 | winheight | |
706 | These commands are now aliases for the 'tui layout', 'tui focus', | |
707 | 'tui refresh', and 'tui window height' commands respectively. | |
708 | ||
63fc2437 TT |
709 | * GDB's Ada parser now supports an extension for specifying the exact |
710 | byte contents of a floating-point literal. This can be useful for | |
711 | setting floating-point registers to a precise value without loss of | |
712 | precision. The syntax is an extension of the based literal syntax. | |
713 | Use, e.g., "16lf#0123abcd#" -- the number of "l"s controls the width | |
714 | of the floating-point type, and the "f" is the marker for floating | |
715 | point. | |
716 | ||
d43bd54d US |
717 | * MI changes |
718 | ||
719 | ** The '-add-inferior' with no option flags now inherits the | |
720 | connection of the current inferior, this restores the behaviour of | |
721 | GDB as it was prior to GDB 10. | |
722 | ||
6fd90137 AB |
723 | ** The '-add-inferior' command now accepts a '--no-connection' |
724 | option, which causes the new inferior to start without a | |
725 | connection. | |
726 | ||
9db0d853 SM |
727 | ** The default version of the MI interpreter is now 4 (-i=mi4). |
728 | ||
729 | ** The "script" field in breakpoint output (which is syntactically | |
730 | incorrect in MI 3 and below) has changed in MI 4 to become a list. | |
731 | This affects the following commands and events: | |
732 | ||
733 | - -break-insert | |
734 | - -break-info | |
735 | - =breakpoint-created | |
736 | - =breakpoint-modified | |
737 | ||
738 | The -fix-breakpoint-script-output command can be used to enable | |
739 | this behavior with previous MI versions. | |
740 | ||
d203a064 TY |
741 | * New targets |
742 | ||
575b4c29 PA |
743 | GNU/Linux/LoongArch loongarch*-*-linux* |
744 | ||
745 | * Removed targets | |
746 | ||
747 | S+core score-*-* | |
d203a064 | 748 | |
540bf37b AB |
749 | * Python API |
750 | ||
751 | ** New function gdb.add_history(), which takes a gdb.Value object | |
752 | and adds the value it represents to GDB's history list. An | |
753 | integer, the index of the new item in the history list, is | |
754 | returned. | |
755 | ||
30a87e90 AB |
756 | ** New function gdb.history_count(), which returns the number of |
757 | values in GDB's value history. | |
758 | ||
b1f0f284 AB |
759 | ** New gdb.events.gdb_exiting event. This event is called with a |
760 | gdb.GdbExitingEvent object which has the read-only attribute | |
761 | 'exit_code', which contains the value of the GDB exit code. This | |
762 | event is triggered once GDB decides it is going to exit, but | |
763 | before GDB starts to clean up its internal state. | |
764 | ||
8b87fbe6 AB |
765 | ** New function gdb.architecture_names(), which returns a list |
766 | containing all of the possible Architecture.name() values. Each | |
767 | entry is a string. | |
768 | ||
d3771fe2 TT |
769 | ** New function gdb.Architecture.integer_type(), which returns an |
770 | integer type given a size and a signed-ness. | |
771 | ||
0e3b7c25 | 772 | ** New gdb.TargetConnection object type that represents a connection |
24b2de7b AB |
773 | (as displayed by the 'info connections' command). A sub-class, |
774 | gdb.RemoteTargetConnection, is used to represent 'remote' and | |
775 | 'extended-remote' connections. | |
0e3b7c25 AB |
776 | |
777 | ** The gdb.Inferior type now has a 'connection' property which is an | |
778 | instance of gdb.TargetConnection, the connection used by this | |
779 | inferior. This can be None if the inferior has no connection. | |
780 | ||
781 | ** New 'gdb.events.connection_removed' event registry, which emits a | |
782 | 'gdb.ConnectionEvent' when a connection is removed from GDB. | |
783 | This event has a 'connection' property, a gdb.TargetConnection | |
784 | object for the connection being removed. | |
785 | ||
786 | ** New gdb.connections() function that returns a list of all | |
787 | currently active connections. | |
788 | ||
24b2de7b AB |
789 | ** New gdb.RemoteTargetConnection.send_packet(PACKET) method. This |
790 | is equivalent to the existing 'maint packet' CLI command; it | |
791 | allows a user specified packet to be sent to the remote target. | |
792 | ||
61671e97 AB |
793 | ** New function gdb.host_charset(), returns a string, which is the |
794 | name of the current host charset. | |
795 | ||
b583c328 TT |
796 | ** New gdb.set_parameter(NAME, VALUE). This sets the gdb parameter |
797 | NAME to VALUE. | |
798 | ||
799 | ** New gdb.with_parameter(NAME, VALUE). This returns a context | |
800 | manager that temporarily sets the gdb parameter NAME to VALUE, | |
801 | then resets it when the context is exited. | |
802 | ||
0642912e AB |
803 | ** The gdb.Value.format_string method now takes a 'styling' |
804 | argument, which is a boolean. When true, the returned string can | |
805 | include escape sequences to apply styling. The styling will only | |
806 | be present if styling is otherwise turned on in GDB (see 'help | |
807 | set styling'). When false, which is the default if the argument | |
808 | is not given, then no styling is applied to the returned string. | |
809 | ||
659971cb AB |
810 | ** New read-only attribute gdb.InferiorThread.details, which is |
811 | either a string, containing additional, target specific thread | |
812 | state information, or None, if there is no such additional | |
813 | information. | |
814 | ||
ee6a3d9e AB |
815 | ** New read-only attribute gdb.Type.is_scalar, which is True for |
816 | scalar types, and False for all other types. | |
817 | ||
551b380f AB |
818 | ** New read-only attribute gdb.Type.is_signed. This attribute |
819 | should only be read when Type.is_scalar is True, and will be True | |
820 | for signed types, and False for all other types. Attempting to | |
821 | read this attribute for non-scalar types will raise a ValueError. | |
822 | ||
740b42ce AB |
823 | ** It is now possible to add GDB/MI commands implemented in Python. |
824 | ||
cb22a7c3 SH |
825 | * New features in the GDB remote stub, GDBserver |
826 | ||
827 | ** GDBserver is now supported on OpenRISC GNU/Linux. | |
828 | ||
829 | * New native configurations | |
830 | ||
831 | GNU/Linux/OpenRISC or1k*-*-linux* | |
832 | ||
ccd14903 | 833 | *** Changes in GDB 11 |
ed6a896c | 834 | |
ae61ef2c SV |
835 | * The 'set disassembler-options' command now supports specifying options |
836 | for the ARC target. | |
837 | ||
ce192338 LM |
838 | * GDB now supports general memory tagging functionality if the underlying |
839 | architecture supports the proper primitives and hooks. Currently this is | |
840 | enabled only for AArch64 MTE. | |
841 | ||
842 | This includes: | |
843 | ||
844 | - Additional information when the inferior crashes with a SIGSEGV caused by | |
845 | a memory tag violation. | |
846 | ||
847 | - A new modifier 'm' for the "x" command, which displays allocation tags for a | |
848 | particular memory range. | |
849 | ||
850 | - Display of memory tag mismatches by "print", for addresses and | |
851 | pointers, if memory tagging is supported by the architecture. | |
852 | ||
0fb8bb02 JB |
853 | * Building GDB now requires GMP (The GNU Multiple Precision Arithmetic |
854 | Library). | |
855 | ||
6791b117 PA |
856 | * MI changes |
857 | ||
858 | ** '-break-insert --qualified' and '-dprintf-insert --qualified' | |
859 | ||
860 | The MI -break-insert and -dprintf-insert commands now support a | |
861 | new "--qualified" option that makes GDB interpret a specified | |
862 | function name as a complete fully-qualified name. This is the | |
863 | equivalent of the CLI's "break -qualified" and "dprintf | |
864 | -qualified". | |
865 | ||
10e578d7 TBA |
866 | ** '-break-insert --force-condition' and '-dprintf-insert --force-condition' |
867 | ||
868 | The MI -break-insert and -dprintf-insert commands now support a | |
869 | '--force-condition' flag to forcibly define a condition even when | |
870 | the condition is invalid at all locations of the breakpoint. This | |
871 | is equivalent to the '-force-condition' flag of the CLI's "break" | |
872 | command. | |
873 | ||
79aabb73 TBA |
874 | ** '-break-condition --force' |
875 | ||
876 | The MI -break-condition command now supports a '--force' flag to | |
877 | forcibly define a condition even when the condition is invalid at | |
878 | all locations of the selected breakpoint. This is equivalent to | |
879 | the '-force' flag of the CLI's "cond" command. | |
880 | ||
1fb1ce02 AB |
881 | ** '-file-list-exec-source-files [--group-by-objfile] |
882 | [--basename | --dirname] | |
883 | [--] [REGEXP]' | |
0e350a05 AB |
884 | |
885 | The existing -file-list-exec-source-files command now takes an | |
886 | optional REGEXP which is used to filter the source files that are | |
887 | included in the results. | |
888 | ||
889 | By default REGEXP is matched against the full filename of the | |
890 | source file. When one of --basename or --dirname is given then | |
891 | REGEXP is only matched against the specified part of the full | |
892 | source filename. | |
893 | ||
1fb1ce02 AB |
894 | When the optional --group-by-objfile flag is used the output |
895 | format is changed, the results are now a list of object files | |
896 | (executable and libraries) with the source files that are | |
897 | associated with each object file. | |
898 | ||
0e350a05 AB |
899 | The results from -file-list-exec-source-files now include a |
900 | 'debug-fully-read' field which takes the value 'true' or 'false'. | |
901 | A 'true' value indicates the source file is from a compilation | |
902 | unit that has had its debug information fully read in by GDB, a | |
903 | value of 'false' indicates GDB has only performed a partial scan | |
904 | of the debug information so far. | |
905 | ||
d3483b43 JT |
906 | * GDB now supports core file debugging for x86_64 Cygwin programs. |
907 | ||
64aaad63 AB |
908 | * GDB will now look for the .gdbinit file in a config directory before |
909 | looking for ~/.gdbinit. The file is searched for in the following | |
910 | locations: $XDG_CONFIG_HOME/gdb/gdbinit, $HOME/.config/gdb/gdbinit, | |
911 | $HOME/.gdbinit. On Apple hosts the search order is instead: | |
912 | $HOME/Library/Preferences/gdb/gdbinit, $HOME/.gdbinit. | |
913 | ||
fa123c32 JB |
914 | * GDB now supports fixed point types which are described in DWARF |
915 | as base types with a fixed-point encoding. Additionally, support | |
916 | for the DW_AT_GNU_numerator and DW_AT_GNU_denominator has also | |
917 | been added. | |
918 | ||
919 | For Ada, this allows support for fixed point types without requiring | |
920 | the use of the GNAT encoding (based on information added to the type's | |
921 | name following a GNAT-specific format). | |
922 | ||
92e4e97a AB |
923 | * GDB will now load and process commands from ~/.config/gdb/gdbearlyinit |
924 | or ~/.gdbearlyinit if these files are present. These files are | |
925 | processed earlier than any of the other initialization files and | |
926 | can affect parts of GDB's startup that previously had already been | |
927 | completed before the initialization files were read, for example | |
928 | styling of the initial GDB greeting. | |
929 | ||
930 | * GDB now has two new options "--early-init-command" and | |
931 | "--early-init-eval-command" with corresponding short options "-eix" | |
932 | and "-eiex" that allow options (that would normally appear in a | |
933 | gdbearlyinit file) to be passed on the command line. | |
934 | ||
96f842cb AB |
935 | * For RISC-V targets, the target feature "org.gnu.gdb.riscv.vector" is |
936 | now understood by GDB, and can be used to describe the vector | |
937 | registers of a target. The precise requirements of this register | |
938 | feature are documented in the GDB manual. | |
939 | ||
ae66a8f1 SP |
940 | * For ARM targets, the "org.gnu.gdb.arm.m-profile-mve" feature is now |
941 | supported by GDB and describes a new VPR register from the ARM MVE | |
942 | (Helium) extension. See the GDB manual for more information. | |
943 | ||
90b044ef PA |
944 | * TUI improvements |
945 | ||
946 | ** TUI windows now support mouse actions. The mouse wheel scrolls | |
947 | the appropriate window. | |
948 | ||
949 | ** Key combinations that do not have a specific action on the | |
950 | focused window are passed to GDB. For example, you now can use | |
951 | Ctrl-Left/Ctrl-Right to move between words in the command window | |
952 | regardless of which window is in focus. Previously you would | |
953 | need to focus on the command window for such key combinations to | |
954 | work. | |
955 | ||
8d378f27 SM |
956 | * New commands |
957 | ||
958 | set debug event-loop | |
959 | show debug event-loop | |
960 | Control the display of debug output about GDB's event loop. | |
961 | ||
ce192338 LM |
962 | set print memory-tag-violations |
963 | show print memory-tag-violations | |
964 | Control whether to display additional information about memory tag violations | |
965 | when printing pointers and addresses. Architecture support for memory | |
966 | tagging is required for this option to have an effect. | |
967 | ||
50a5f187 AB |
968 | maintenance flush symbol-cache |
969 | maintenance flush register-cache | |
970 | These new commands are equivalent to the already existing commands | |
971 | 'maintenance flush-symbol-cache' and 'flushregs' respectively. | |
972 | ||
ee9812a0 AB |
973 | maintenance flush dcache |
974 | A new command to flush the dcache. | |
975 | ||
02a79309 AB |
976 | maintenance info target-sections |
977 | Print GDB's internal target sections table. | |
978 | ||
ff770835 SM |
979 | maintenance info jit |
980 | Print the JIT code objects in the inferior known to GDB. | |
981 | ||
ce192338 LM |
982 | memory-tag show-logical-tag POINTER |
983 | Print the logical tag for POINTER. | |
984 | memory-tag with-logical-tag POINTER TAG | |
985 | Print POINTER with logical tag TAG. | |
986 | memory-tag show-allocation-tag ADDRESS | |
987 | Print the allocation tag for ADDRESS. | |
988 | memory-tag set-allocation-tag ADDRESS LENGTH TAGS | |
989 | Set the allocation tag for [ADDRESS, ADDRESS + LENGTH) to TAGS. | |
990 | memory-tag check POINTER | |
991 | Validate that POINTER's logical tag matches the allocation tag. | |
992 | ||
5809fbf2 TT |
993 | set startup-quietly on|off |
994 | show startup-quietly | |
995 | When 'on', this causes GDB to act as if "-silent" were passed on the | |
996 | command line. This command needs to be added to an early | |
997 | initialization file (e.g. ~/.config/gdb/gdbearlyinit) in order to | |
998 | affect GDB. | |
999 | ||
fbb46296 LS |
1000 | set print type hex on|off |
1001 | show print type hex | |
1002 | When 'on', the 'ptype' command uses hexadecimal notation to print sizes | |
1003 | and offsets of struct members. When 'off', decimal notation is used. | |
1004 | ||
edeaceda AB |
1005 | set python ignore-environment on|off |
1006 | show python ignore-environment | |
1007 | When 'on', this causes GDB's builtin Python to ignore any | |
8eb82ba1 | 1008 | environment variables that would otherwise affect how Python |
edeaceda AB |
1009 | behaves. This command needs to be added to an early initialization |
1010 | file (e.g. ~/.config/gdb/gdbearlyinit) in order to affect GDB. | |
1011 | ||
1012 | set python dont-write-bytecode auto|on|off | |
1013 | show python dont-write-bytecode | |
1014 | When 'on', this causes GDB's builtin Python to not write any | |
1015 | byte-code (.pyc files) to disk. This command needs to be added to | |
1016 | an early initialization file (e.g. ~/.config/gdb/gdbearlyinit) in | |
1017 | order to affect GDB. When 'off' byte-code will always be written. | |
1018 | When set to 'auto' (the default) Python will check the | |
8eb82ba1 | 1019 | PYTHONDONTWRITEBYTECODE environment variable. |
edeaceda | 1020 | |
733d554a TBA |
1021 | * Changed commands |
1022 | ||
1023 | break [PROBE_MODIFIER] [LOCATION] [thread THREADNUM] | |
1024 | [-force-condition] [if CONDITION] | |
1025 | This command would previously refuse setting a breakpoint if the | |
1026 | CONDITION expression is invalid at a location. It now accepts and | |
1027 | defines the breakpoint if there is at least one location at which | |
1028 | the CONDITION is valid. The locations for which the CONDITION is | |
1029 | invalid, are automatically disabled. If CONDITION is invalid at all | |
1030 | of the locations, setting the breakpoint is still rejected. However, | |
1031 | the '-force-condition' flag can be used in this case for forcing GDB to | |
1032 | define the breakpoint, making all the current locations automatically | |
1033 | disabled. This may be useful if the user knows the condition will | |
1034 | become meaningful at a future location, e.g. due to a shared library | |
1035 | load. | |
1036 | ||
1037 | condition [-force] N COND | |
1038 | The behavior of this command is changed the same way for the 'break' | |
1039 | command as explained above. The '-force' flag can be used to force | |
1040 | GDB into defining the condition even when COND is invalid for all the | |
1041 | current locations of breakpoint N. | |
1042 | ||
50a5f187 AB |
1043 | flushregs |
1044 | maintenance flush-symbol-cache | |
1045 | These commands are deprecated in favor of the new commands | |
1046 | 'maintenance flush register-cache' and 'maintenance flush | |
1047 | symbol-cache' respectively. | |
1048 | ||
9d2d8a16 AB |
1049 | set style version foreground COLOR |
1050 | set style version background COLOR | |
1051 | set style version intensity VALUE | |
1052 | Control the styling of GDB's version number text. | |
1053 | ||
2e3773ff LS |
1054 | inferior [ID] |
1055 | When the ID parameter is omitted, then this command prints information | |
1056 | about the current inferior. When the ID parameter is present, the | |
1057 | behavior of the command is unchanged and have the inferior ID become | |
1058 | the current inferior. | |
1059 | ||
bf3386f0 AB |
1060 | maintenance info sections |
1061 | The ALLOBJ keyword has been replaced with an -all-objects command | |
1062 | line flag. It is now possible to filter which sections are printed | |
1063 | even when -all-objects is passed. | |
1064 | ||
fbb46296 LS |
1065 | ptype[/FLAGS] TYPE | EXPRESSION |
1066 | The 'ptype' command has two new flags. When '/x' is set, hexadecimal | |
1067 | notation is used when printing sizes and offsets of struct members. | |
1068 | When '/d' is set, decimal notation is used when printing sizes and | |
1069 | offsets of struct members. Default behavior is given by 'show print | |
1070 | type hex'. | |
1071 | ||
bd742128 AB |
1072 | info sources |
1073 | The info sources command output has been restructured. The results | |
1074 | are now based around a list of objfiles (executable and libraries), | |
1075 | and for each objfile the source files that are part of that objfile | |
1076 | are listed. | |
1077 | ||
18b8df43 AM |
1078 | * Removed targets and native configurations |
1079 | ||
1080 | ARM Symbian arm*-*-symbianelf* | |
1081 | ||
ce192338 LM |
1082 | * New remote packets |
1083 | ||
1084 | qMemTags | |
1085 | Request the remote to send allocation tags for a particular memory range. | |
1086 | QMemTags | |
1087 | Request the remote to store the specified allocation tags to the requested | |
1088 | memory range. | |
1089 | ||
97cef6b7 GB |
1090 | * Guile API |
1091 | ||
1092 | ** Improved support for rvalue reference values: | |
1093 | TYPE_CODE_RVALUE_REF is now exported as part of the API and the | |
1094 | value-referenced-value procedure now handles rvalue reference | |
1095 | values. | |
1096 | ||
ee35ce82 GB |
1097 | ** New procedures for obtaining value variants: |
1098 | value-reference-value, value-rvalue-reference-value and | |
1099 | value-const-value. | |
9d4fc61d | 1100 | |
ad42014b GB |
1101 | ** Temporary breakpoints can now be created with make-breakpoint and |
1102 | tested for using breakpoint-temporary?. | |
1103 | ||
55789354 TBA |
1104 | * Python API |
1105 | ||
1106 | ** Inferior objects now contain a read-only 'connection_num' attribute that | |
1107 | gives the connection number as seen in 'info connections' and | |
1108 | 'info inferiors'. | |
1109 | ||
d52b8007 AB |
1110 | ** New method gdb.Frame.level() which returns the stack level of the |
1111 | frame object. | |
1112 | ||
1113 | ** New method gdb.PendingFrame.level() which returns the stack level | |
1114 | of the frame object. | |
1115 | ||
6b95f5ad AB |
1116 | ** When hitting a catchpoint, the Python API will now emit a |
1117 | gdb.BreakpointEvent rather than a gdb.StopEvent. The | |
1118 | gdb.Breakpoint attached to the event will have type BP_CATCHPOINT. | |
1119 | ||
90b044ef PA |
1120 | ** Python TUI windows can now receive mouse click events. If the |
1121 | Window object implements the click method, it is called for each | |
1122 | mouse click event in this window. | |
1123 | ||
ed6a896c | 1124 | *** Changes in GDB 10 |
4decd62b | 1125 | |
995d3a19 SV |
1126 | * There are new feature names for ARC targets: "org.gnu.gdb.arc.core" |
1127 | and "org.gnu.gdb.arc.aux". The old names are still supported but | |
1128 | must be considered obsolete. They will be deprecated after some | |
1129 | grace period. | |
1130 | ||
5b4a1a8d PW |
1131 | * Help and apropos commands will now show the documentation of a |
1132 | command only once, even if that command has one or more aliases. | |
1133 | These commands now show the command name, then all of its aliases, | |
1134 | and finally the description of the command. | |
1135 | ||
1136 | * 'help aliases' now shows only the user defined aliases. GDB predefined | |
1137 | aliases are shown together with their aliased command. | |
1138 | ||
0d79cdc4 AM |
1139 | * GDB now supports debuginfod, an HTTP server for distributing ELF/DWARF |
1140 | debugging information as well as source code. | |
1141 | ||
1142 | When built with debuginfod, GDB can automatically query debuginfod | |
1143 | servers for the separate debug files and source code of the executable | |
1144 | being debugged. | |
1145 | ||
1146 | To build GDB with debuginfod, pass --with-debuginfod to configure (this | |
1147 | requires libdebuginfod, the debuginfod client library). | |
1148 | ||
1149 | debuginfod is distributed with elfutils, starting with version 0.178. | |
1150 | ||
1151 | You can get the latest version from https://sourceware.org/elfutils. | |
1152 | ||
7cf663a9 PA |
1153 | * Multi-target debugging support |
1154 | ||
1155 | GDB now supports debugging multiple target connections | |
1156 | simultaneously. For example, you can now have each inferior | |
1157 | connected to different remote servers running in different machines, | |
1158 | or have one inferior debugging a local native process, an inferior | |
1159 | debugging a core dump, etc. | |
1160 | ||
1161 | This support is experimental and comes with some limitations -- you | |
1162 | can only resume multiple targets simultaneously if all targets | |
1163 | support non-stop mode, and all remote stubs or servers must support | |
1164 | the same set of remote protocol features exactly. See also "info | |
1165 | connections" and "add-inferior -no-connection" below, and "maint set | |
1166 | target-non-stop" in the user manual. | |
1167 | ||
bf84f706 MR |
1168 | * New features in the GDB remote stub, GDBserver |
1169 | ||
ada508b6 SV |
1170 | ** GDBserver is now supported on ARC GNU/Linux. |
1171 | ||
bf84f706 MR |
1172 | ** GDBserver is now supported on RISC-V GNU/Linux. |
1173 | ||
6a17d503 SM |
1174 | ** GDBserver no longer supports these host triplets: |
1175 | ||
1176 | i[34567]86-*-lynxos* | |
1177 | powerpc-*-lynxos* | |
1178 | i[34567]86-*-nto* | |
1179 | bfin-*-*linux* | |
1180 | crisv32-*-linux* | |
1181 | cris-*-linux* | |
1182 | m32r*-*-linux* | |
1183 | tilegx-*-linux* | |
1184 | arm*-*-mingw32ce* | |
1185 | i[34567]86-*-mingw32ce* | |
1186 | ||
3f602821 EZ |
1187 | * Debugging MS-Windows processes now sets $_exitsignal when the |
1188 | inferior is terminated by a signal, instead of setting $_exitcode. | |
1189 | ||
8fb75323 CB |
1190 | * Multithreaded symbol loading has now been enabled by default on systems |
1191 | that support it (see entry for GDB 9, below), providing faster | |
1192 | performance for programs with many symbols. | |
1193 | ||
7928d571 HD |
1194 | * The $_siginfo convenience variable now also works on Windows targets, |
1195 | and will display the EXCEPTION_RECORD of the last handled exception. | |
1196 | ||
7c043ba6 | 1197 | * TUI windows can now be arranged horizontally. |
63e163f2 AB |
1198 | |
1199 | * The command history filename can now be set to the empty string | |
1200 | either using 'set history filename' or by setting 'GDBHISTFILE=' in | |
1201 | the environment. The effect of setting this filename to the empty | |
1202 | string is that GDB will not try to load any previous command | |
1203 | history. | |
46f9f931 HD |
1204 | |
1205 | * On Windows targets, it is now possible to debug 32-bit programs with a | |
1206 | 64-bit GDB. | |
7c043ba6 | 1207 | |
e47e48f6 PW |
1208 | * New commands |
1209 | ||
1210 | set exec-file-mismatch -- Set exec-file-mismatch handling (ask|warn|off). | |
1211 | show exec-file-mismatch -- Show exec-file-mismatch handling (ask|warn|off). | |
98c59b52 PA |
1212 | Set or show the option 'exec-file-mismatch'. When GDB attaches to a |
1213 | running process, this new option indicates whether to detect | |
1214 | a mismatch between the current executable file loaded by GDB and the | |
1215 | executable file used to start the process. If 'ask', the default, | |
1216 | display a warning and ask the user whether to load the process | |
1217 | executable file; if 'warn', just display a warning; if 'off', don't | |
1218 | attempt to detect a mismatch. | |
e47e48f6 | 1219 | |
ee325b61 TT |
1220 | tui new-layout NAME WINDOW WEIGHT [WINDOW WEIGHT]... |
1221 | Define a new TUI layout, specifying its name and the windows that | |
1222 | will be displayed. | |
1223 | ||
caa7fd04 AB |
1224 | maintenance print xml-tdesc [FILE] |
1225 | Prints the current target description as an XML document. If the | |
1226 | optional FILE is provided (which is an XML target description) then | |
1227 | the target description is read from FILE into GDB, and then | |
1228 | reprinted. | |
1229 | ||
b089853a KB |
1230 | maintenance print core-file-backed-mappings |
1231 | Prints file-backed mappings loaded from a core file's note section. | |
1232 | Output is expected to be similar to that of "info proc mappings". | |
1233 | ||
a5c641b5 AB |
1234 | set debug fortran-array-slicing on|off |
1235 | show debug fortran-array-slicing | |
1236 | Print debugging when taking slices of Fortran arrays. | |
1237 | ||
1238 | set fortran repack-array-slices on|off | |
1239 | show fortran repack-array-slices | |
1240 | When taking slices from Fortran arrays and strings, if the slice is | |
1241 | non-contiguous within the original value then, when this option is | |
1242 | on, the new value will be repacked into a single contiguous value. | |
1243 | When this option is off, then the value returned will consist of a | |
1244 | descriptor that describes the slice within the memory of the | |
1245 | original parent value. | |
1246 | ||
5b860c93 PW |
1247 | * Changed commands |
1248 | ||
1249 | alias [-a] [--] ALIAS = COMMAND [DEFAULT-ARGS...] | |
1250 | The alias command can now specify default args for an alias. | |
1251 | GDB automatically prepends the alias default args to the argument list | |
1252 | provided explicitly by the user. | |
1253 | For example, to have a backtrace with full details, you can define | |
1254 | an alias 'bt_ALL' as | |
1255 | 'alias bt_ALL = backtrace -entry-values both -frame-arg all | |
1256 | -past-main -past-entry -full'. | |
1257 | Alias default arguments can also use a set of nested 'with' commands, | |
1258 | e.g. 'alias pp10 = with print pretty -- with print elem 10 -- print' | |
1259 | defines the alias pp10 that will pretty print a maximum of 10 elements | |
1260 | of the given expression (if the expression is an array). | |
1261 | ||
bf84f706 MR |
1262 | * New targets |
1263 | ||
1264 | GNU/Linux/RISC-V (gdbserver) riscv*-*-linux* | |
39791af2 | 1265 | BPF bpf-unknown-none |
3dab9e15 | 1266 | Z80 z80-unknown-* |
bf84f706 | 1267 | |
01b1af32 TT |
1268 | * Python API |
1269 | ||
1270 | ** gdb.register_window_type can be used to implement new TUI windows | |
1271 | in Python. | |
1272 | ||
1acda803 TT |
1273 | ** Dynamic types can now be queried. gdb.Type has a new attribute, |
1274 | "dynamic", and gdb.Type.sizeof can be None for a dynamic type. A | |
1275 | field of a dynamic type may have None for its "bitpos" attribute | |
1276 | as well. | |
1277 | ||
2b2fbab8 TT |
1278 | ** Commands written in Python can be in the "TUI" help class by |
1279 | registering with the new constant gdb.COMMAND_TUI. | |
1280 | ||
87dbc774 AB |
1281 | ** New method gdb.PendingFrame.architecture () to retrieve the |
1282 | architecture of the pending frame. | |
1283 | ||
0f767f94 AB |
1284 | ** New gdb.Architecture.registers method that returns a |
1285 | gdb.RegisterDescriptorIterator object, an iterator that returns | |
1286 | gdb.RegisterDescriptor objects. The new RegisterDescriptor is a | |
1287 | way to query the registers available for an architecture. | |
1288 | ||
64cb3757 AB |
1289 | ** New gdb.Architecture.register_groups method that returns a |
1290 | gdb.RegisterGroupIterator object, an iterator that returns | |
1291 | gdb.RegisterGroup objects. The new RegisterGroup is a way to | |
1292 | discover the available register groups. | |
1293 | ||
68cf161c LC |
1294 | * Guile API |
1295 | ||
ae5369e7 | 1296 | ** GDB can now be built with GNU Guile 3.0 and 2.2 in addition to 2.0. |
68cf161c LC |
1297 | |
1298 | ** Procedures 'memory-port-read-buffer-size', | |
1299 | 'set-memory-port-read-buffer-size!', 'memory-port-write-buffer-size', | |
1300 | and 'set-memory-port-write-buffer-size!' are deprecated. When | |
1301 | using Guile 2.2 and later, users who need to control the size of | |
1302 | a memory port's internal buffer can use the 'setvbuf' procedure. | |
1303 | ||
4decd62b | 1304 | *** Changes in GDB 9 |
9335e75a | 1305 | |
1a3da2cd AB |
1306 | * 'thread-exited' event is now available in the annotations interface. |
1307 | ||
7734102d EZ |
1308 | * New built-in convenience variables $_gdb_major and $_gdb_minor |
1309 | provide the GDB version. They are handy for conditionally using | |
1310 | features available only in or since specific GDB versions, in | |
1311 | scripts that should work error-free with many different versions, | |
1312 | such as in system-wide init files. | |
1313 | ||
aed61d02 PW |
1314 | * New built-in convenience functions $_gdb_setting, $_gdb_setting_str, |
1315 | $_gdb_maint_setting and $_gdb_maint_setting_str provide access to values | |
1316 | of the GDB settings and the GDB maintenance settings. They are handy | |
1317 | for changing the logic of user defined commands depending on the | |
1318 | current GDB settings. | |
1319 | ||
81a24d04 JB |
1320 | * GDB now supports Thread Local Storage (TLS) variables on several |
1321 | FreeBSD architectures (amd64, i386, powerpc, riscv). Other | |
1322 | architectures require kernel changes. TLS is not yet supported for | |
1323 | amd64 and i386 process core dumps. | |
1324 | ||
3d31bc39 AH |
1325 | * Support for Pointer Authentication (PAC) on AArch64 Linux. Return |
1326 | addresses that required unmasking are shown in the backtrace with the | |
1327 | postfix [PAC]. | |
d851aa71 | 1328 | |
eb41253a | 1329 | * Two new convenience functions $_cimag and $_creal that extract the |
8bdc1658 AB |
1330 | imaginary and real parts respectively from complex numbers. |
1331 | ||
52ce35e2 TT |
1332 | * New built-in convenience variables $_shell_exitcode and $_shell_exitsignal |
1333 | provide the exitcode or exit status of the shell commands launched by | |
1334 | GDB commands such as "shell", "pipe" and "make". | |
1335 | ||
bf498525 PW |
1336 | * The command define-prefix can now define user defined prefix commands. |
1337 | User defined commands can now be defined using these user defined prefix | |
1338 | commands. | |
1339 | ||
1340 | * Command names can now use the . character. | |
1341 | ||
e3ec872f YS |
1342 | * The RX port now supports XML target descriptions. |
1343 | ||
4993045d PW |
1344 | * GDB now shows the Ada task names at more places, e.g. in task switching |
1345 | messages. | |
1346 | ||
6a062a93 CB |
1347 | * GDB can now be compiled with Python 3 on Windows. |
1348 | ||
37f6a7f4 TT |
1349 | * New convenience variable $_ada_exception holds the address of the |
1350 | Ada exception being thrown. This is set by Ada-related catchpoints. | |
1351 | ||
179aed7f AB |
1352 | * GDB can now place breakpoints on nested functions and subroutines in |
1353 | Fortran code. The '::' operator can be used between parent and | |
1354 | child scopes when placing breakpoints, for example: | |
1355 | ||
1356 | (gdb) break outer_function::inner_function | |
1357 | ||
1358 | The 'outer_function::' prefix is only needed if 'inner_function' is | |
1359 | not visible in the current scope. | |
1360 | ||
ed2a2229 CB |
1361 | * In addition to the system-wide gdbinit file, if configured with |
1362 | --with-system-gdbinit-dir, GDB will now also load files in that directory | |
1363 | as system gdbinit files, unless the -nx or -n flag is provided. Files | |
1364 | with extensions .gdb, .py and .scm are supported as long as GDB was | |
1365 | compiled with support for that language. | |
1366 | ||
e49b22ff CB |
1367 | * GDB now supports multithreaded symbol loading for higher performance. |
1368 | This feature is still in testing, so it is disabled by default. You | |
1369 | can turn it on using 'maint set worker-threads unlimited'. | |
1370 | ||
52093e1b MB |
1371 | * Python API |
1372 | ||
1373 | ** The gdb.Value type has a new method 'format_string' which returns a | |
1374 | string representing the value. The formatting is controlled by the | |
1375 | optional keyword arguments: 'raw', 'pretty_arrays', 'pretty_structs', | |
1376 | 'array_indexes', 'symbols', 'unions', 'deref_refs', 'actual_objects', | |
1377 | 'static_members', 'max_elements', 'repeat_threshold', and 'format'. | |
1378 | ||
e1f2e1a2 CB |
1379 | ** gdb.Type has a new property 'objfile' which returns the objfile the |
1380 | type was defined in. | |
1381 | ||
bc4268a5 PW |
1382 | ** The frame information printed by the python frame filtering code |
1383 | is now consistent with what the 'backtrace' command prints when | |
1384 | there are no filters, or when the 'backtrace' '-no-filters' option | |
1385 | is given. | |
1386 | ||
2906593f CB |
1387 | ** The new function gdb.lookup_static_symbol can be used to look up |
1388 | symbols with static linkage. | |
1389 | ||
086baaf1 AB |
1390 | ** The new function gdb.lookup_static_symbols can be used to look up |
1391 | all static symbols with static linkage. | |
1392 | ||
c620ed88 CB |
1393 | ** gdb.Objfile has new methods 'lookup_global_symbol' and |
1394 | 'lookup_static_symbol' to lookup a symbol from this objfile only. | |
1395 | ||
0b27c27d CB |
1396 | ** gdb.Block now supports the dictionary syntax for accessing symbols in |
1397 | this block (e.g. block['local_variable']). | |
1398 | ||
136afab8 PW |
1399 | * New commands |
1400 | ||
e2c52041 PW |
1401 | | [COMMAND] | SHELL_COMMAND |
1402 | | -d DELIM COMMAND DELIM SHELL_COMMAND | |
1403 | pipe [COMMAND] | SHELL_COMMAND | |
1404 | pipe -d DELIM COMMAND DELIM SHELL_COMMAND | |
1405 | Executes COMMAND and sends its output to SHELL_COMMAND. | |
1406 | With no COMMAND, repeat the last executed command | |
1407 | and send its output to SHELL_COMMAND. | |
1408 | ||
bf498525 PW |
1409 | define-prefix COMMAND |
1410 | Define or mark a command as a user-defined prefix command. | |
1411 | ||
fdbc9870 PA |
1412 | with SETTING [VALUE] [-- COMMAND] |
1413 | w SETTING [VALUE] [-- COMMAND] | |
1414 | Temporarily set SETTING, run COMMAND, and restore SETTING. | |
1415 | Usage: with SETTING -- COMMAND | |
1416 | With no COMMAND, repeats the last executed command. | |
1417 | SETTING is any GDB setting you can change with the "set" | |
1418 | subcommands. For example, 'with language c -- print someobj' | |
1419 | temporarily switches to the C language in order to print someobj. | |
1420 | Settings can be combined: 'w lang c -- w print elements unlimited -- | |
1421 | usercmd' switches to the C language and runs usercmd with no limit | |
1422 | of array elements to print. | |
1423 | ||
1424 | maint with SETTING [VALUE] [-- COMMAND] | |
1425 | Like "with", but works with "maintenance set" settings. | |
1426 | ||
136afab8 PW |
1427 | set may-call-functions [on|off] |
1428 | show may-call-functions | |
1429 | This controls whether GDB will attempt to call functions in | |
1430 | the program, such as with expressions in the print command. It | |
1431 | defaults to on. Calling functions in the program being debugged | |
1432 | can have undesired side effects. It is now possible to forbid | |
1433 | such function calls. If function calls are forbidden, GDB will throw | |
1434 | an error when a command (such as print expression) calls a function | |
1435 | in the program. | |
1436 | ||
000439d5 TT |
1437 | set print finish [on|off] |
1438 | show print finish | |
1439 | This controls whether the `finish' command will display the value | |
1440 | that is returned by the current function. When `off', the value is | |
1441 | still entered into the value history, but it is not printed. The | |
1442 | default is `on'. | |
1443 | ||
1bd0c6e4 AB |
1444 | set print max-depth |
1445 | show print max-depth | |
1446 | Allows deeply nested structures to be simplified when printing by | |
1447 | replacing deeply nested parts (beyond the max-depth) with ellipses. | |
1448 | The default max-depth is 20, but this can be set to unlimited to get | |
1449 | the old behavior back. | |
1450 | ||
d8edc8b7 PW |
1451 | set print raw-values [on|off] |
1452 | show print raw-values | |
1453 | By default, GDB applies the enabled pretty printers when printing a | |
1454 | value. This allows to ignore the enabled pretty printers for a series | |
1455 | of commands. The default is 'off'. | |
1456 | ||
b7060614 AH |
1457 | set logging debugredirect [on|off] |
1458 | By default, GDB debug output will go to both the terminal and the logfile. | |
1459 | Set if you want debug output to go only to the log file. | |
1460 | ||
e664d728 PW |
1461 | set style title foreground COLOR |
1462 | set style title background COLOR | |
1463 | set style title intensity VALUE | |
1464 | Control the styling of titles. | |
1465 | ||
1466 | set style highlight foreground COLOR | |
1467 | set style highlight background COLOR | |
1468 | set style highlight intensity VALUE | |
1469 | Control the styling of highlightings. | |
1470 | ||
22138db6 TT |
1471 | maint set worker-threads |
1472 | maint show worker-threads | |
1473 | Control the number of worker threads that can be used by GDB. The | |
e49b22ff | 1474 | default is 0. "unlimited" lets GDB choose a number that is |
22138db6 TT |
1475 | reasonable. Currently worker threads are only used when demangling |
1476 | the names of linker symbols. | |
1477 | ||
a2a7af0c TT |
1478 | set style tui-border foreground COLOR |
1479 | set style tui-border background COLOR | |
1480 | Control the styling of TUI borders. | |
1481 | ||
1482 | set style tui-active-border foreground COLOR | |
1483 | set style tui-active-border background COLOR | |
1484 | Control the styling of the active TUI border. | |
1485 | ||
c6ac8931 PA |
1486 | maint set test-settings KIND |
1487 | maint show test-settings KIND | |
dca0f6c0 PA |
1488 | A set of commands used by the testsuite for exercising the settings |
1489 | infrastructure. | |
1490 | ||
45e42163 TT |
1491 | maint set tui-resize-message [on|off] |
1492 | maint show tui-resize-message | |
1493 | Control whether GDB prints a message each time the terminal is | |
1494 | resized when in TUI mode. This is primarily useful for testing the | |
1495 | TUI. | |
1496 | ||
bc4268a5 PW |
1497 | set print frame-info [short-location|location|location-and-address |
1498 | |source-and-location|source-line|auto] | |
1499 | show print frame-info | |
1500 | This controls what frame information is printed by the commands printing | |
1501 | a frame. This setting will e.g. influence the behaviour of 'backtrace', | |
1502 | 'frame', 'stepi'. The python frame filtering also respect this setting. | |
1503 | The 'backtrace' '-frame-info' option can override this global setting. | |
1504 | ||
d1da6b01 TT |
1505 | set tui compact-source |
1506 | show tui compact-source | |
1507 | ||
1508 | Enable the "compact" display mode for the TUI source window. The | |
1509 | compact display uses only as much space as is needed for the line | |
1510 | numbers in the current file, and only a single space to separate the | |
1511 | line numbers from the source. | |
1512 | ||
59c35742 AB |
1513 | info modules [-q] [REGEXP] |
1514 | Return a list of Fortran modules matching REGEXP, or all modules if | |
1515 | no REGEXP is given. | |
1516 | ||
165f8965 AB |
1517 | info module functions [-q] [-m MODULE_REGEXP] [-t TYPE_REGEXP] [REGEXP] |
1518 | Return a list of functions within all modules, grouped by module. | |
1519 | The list of functions can be restricted with the optional regular | |
1520 | expressions. MODULE_REGEXP matches against the module name, | |
1521 | TYPE_REGEXP matches against the function type signature, and REGEXP | |
1522 | matches against the function name. | |
1523 | ||
1524 | info module variables [-q] [-m MODULE_REGEXP] [-t TYPE_REGEXP] [REGEXP] | |
1525 | Return a list of variables within all modules, grouped by module. | |
1526 | The list of variables can be restricted with the optional regular | |
1527 | expressions. MODULE_REGEXP matches against the module name, | |
1528 | TYPE_REGEXP matches against the variable type, and REGEXP matches | |
1529 | against the variable name. | |
1530 | ||
6cc8564b LM |
1531 | set debug remote-packet-max-chars |
1532 | show debug remote-packet-max-chars | |
1533 | Controls the number of characters to output in a remote packet when using | |
1534 | "set debug remote". | |
1535 | The default is 512 bytes. | |
1536 | ||
65c574f6 PA |
1537 | info connections |
1538 | Lists the target connections currently in use. | |
1539 | ||
e664d728 PW |
1540 | * Changed commands |
1541 | ||
1542 | help | |
1543 | The "help" command uses the title style to enhance the | |
1544 | readibility of its output by styling the classes and | |
1545 | command names. | |
1546 | ||
1547 | apropos [-v] REGEXP | |
1548 | Similarly to "help", the "apropos" command also uses the | |
1549 | title style for the command names. "apropos" accepts now | |
1550 | a flag "-v" (verbose) to show the full documentation | |
1551 | of matching commands and to use the highlight style to mark | |
1552 | the documentation parts matching REGEXP. | |
1553 | ||
1f6f6e21 PW |
1554 | printf |
1555 | eval | |
1556 | The GDB printf and eval commands can now print C-style and Ada-style | |
1557 | string convenience variables without calling functions in the program. | |
1558 | This allows to do formatted printing of strings without having | |
1559 | a running inferior, or when debugging a core dump. | |
1560 | ||
ae60f04e PW |
1561 | info sources [-dirname | -basename] [--] [REGEXP] |
1562 | This command has now optional arguments to only print the files | |
1563 | whose names match REGEXP. The arguments -dirname and -basename | |
1564 | allow to restrict matching respectively to the dirname and basename | |
1565 | parts of the files. | |
1566 | ||
e664d728 PW |
1567 | show style |
1568 | The "show style" and its subcommands are now styling | |
1569 | a style name in their output using its own style, to help | |
1570 | the user visualize the different styles. | |
1571 | ||
bc4268a5 PW |
1572 | set print frame-arguments |
1573 | The new value 'presence' indicates to only indicate the presence of | |
1574 | arguments using ..., instead of printing argument names and values. | |
1575 | ||
2daf894e PA |
1576 | set print raw-frame-arguments |
1577 | show print raw-frame-arguments | |
1578 | ||
1579 | These commands replace the similarly-named "set/show print raw | |
1580 | frame-arguments" commands (now with a dash instead of a space). The | |
1581 | old commands are now deprecated and may be removed in a future | |
1582 | release. | |
e664d728 | 1583 | |
65c574f6 PA |
1584 | add-inferior [-no-connection] |
1585 | The add-inferior command now supports a "-no-connection" flag that | |
1586 | makes the new inferior start with no target connection associated. | |
1587 | By default, the new inferior inherits the target connection of the | |
1588 | current inferior. See also "info connections". | |
1589 | ||
1590 | info inferior | |
1591 | This command's output now includes a new "Connection" column | |
1592 | indicating which target connection an inferior is bound to. See | |
1593 | "info connections" above. | |
1594 | ||
3345721a PA |
1595 | maint test-options require-delimiter |
1596 | maint test-options unknown-is-error | |
1597 | maint test-options unknown-is-operand | |
1598 | maint show test-options-completion-result | |
1599 | Commands used by the testsuite to validate the command options | |
1600 | framework. | |
1601 | ||
78e8cb91 TT |
1602 | focus, winheight, +, -, >, < |
1603 | These commands are now case-sensitive. | |
1604 | ||
3345721a PA |
1605 | * New command options, command completion |
1606 | ||
1607 | GDB now has a standard infrastructure to support dash-style command | |
1608 | options ('-OPT'). One benefit is that commands that use it can | |
1609 | easily support completion of command line arguments. Try "CMD | |
1610 | -[TAB]" or "help CMD" to find options supported by a command. Over | |
1611 | time, we intend to migrate most commands to this infrastructure. A | |
1612 | number of commands got support for new command options in this | |
1613 | release: | |
1614 | ||
1615 | ** The "print" and "compile print" commands now support a number of | |
1616 | options that allow overriding relevant global print settings as | |
1617 | set by "set print" subcommands: | |
1618 | ||
1619 | -address [on|off] | |
1620 | -array [on|off] | |
1621 | -array-indexes [on|off] | |
1622 | -elements NUMBER|unlimited | |
1623 | -null-stop [on|off] | |
1624 | -object [on|off] | |
1625 | -pretty [on|off] | |
d8edc8b7 | 1626 | -raw-values [on|off] |
3345721a PA |
1627 | -repeats NUMBER|unlimited |
1628 | -static-members [on|off] | |
1629 | -symbol [on|off] | |
1630 | -union [on|off] | |
1631 | -vtbl [on|off] | |
1632 | ||
1633 | Note that because the "print"/"compile print" commands accept | |
1634 | arbitrary expressions which may look like options (including | |
1635 | abbreviations), if you specify any command option, then you must | |
1636 | use a double dash ("--") to mark the end of argument processing. | |
1637 | ||
1638 | ** The "backtrace" command now supports a number of options that | |
1639 | allow overriding relevant global print settings as set by "set | |
1640 | backtrace" and "set print" subcommands: | |
1641 | ||
1642 | -entry-values no|only|preferred|if-needed|both|compact|default | |
1643 | -frame-arguments all|scalars|none | |
1644 | -raw-frame-arguments [on|off] | |
bc4268a5 PW |
1645 | -frame-info auto|source-line|location|source-and-location |
1646 | |location-and-address|short-location | |
3345721a PA |
1647 | -past-main [on|off] |
1648 | -past-entry [on|off] | |
1649 | ||
1650 | In addition, the full/no-filters/hide qualifiers are now also | |
1651 | exposed as command options too: | |
1652 | ||
1653 | -full | |
1654 | -no-filters | |
1655 | -hide | |
1656 | ||
1657 | ** The "frame apply", "tfaas" and "faas" commands similarly now | |
1658 | support the following options: | |
1659 | ||
1660 | -past-main [on|off] | |
1661 | -past-entry [on|off] | |
1662 | ||
ae60f04e PW |
1663 | ** The new "info sources" options -dirname and -basename options |
1664 | are using the standard '-OPT' infrastructure. | |
1665 | ||
3345721a PA |
1666 | All options above can also be abbreviated. The argument of boolean |
1667 | (on/off) options can be 0/1 too, and also the argument is assumed | |
1668 | "on" if omitted. This allows writing compact command invocations, | |
1669 | like for example: | |
1670 | ||
d8edc8b7 | 1671 | (gdb) p -ra -p -o 0 -- *myptr |
3345721a PA |
1672 | |
1673 | The above is equivalent to: | |
1674 | ||
d8edc8b7 | 1675 | (gdb) print -raw-values -pretty -object off -- *myptr |
3345721a | 1676 | |
a8eab7c6 AB |
1677 | ** The "info types" command now supports the '-q' flag to disable |
1678 | printing of some header information in a similar fashion to "info | |
1679 | variables" and "info functions". | |
1680 | ||
4acfdd20 AB |
1681 | ** The "info variables", "info functions", and "whereis" commands |
1682 | now take a '-n' flag that excludes non-debug symbols (symbols | |
1683 | from the symbol table, not from the debug info such as DWARF) | |
1684 | from the results. | |
1685 | ||
3345721a PA |
1686 | * Completion improvements |
1687 | ||
1688 | ** GDB can now complete the options of the "thread apply all" and | |
1689 | "taas" commands, and their "-ascending" option can now be | |
1690 | abbreviated. | |
1691 | ||
60cfcb20 AB |
1692 | ** GDB can now complete the options of the "info threads", "info |
1693 | functions", "info variables", "info locals", and "info args" | |
1694 | commands. | |
54d66006 | 1695 | |
3345721a PA |
1696 | ** GDB can now complete the options of the "compile file" and |
1697 | "compile code" commands. The "compile file" command now | |
1698 | completes on filenames. | |
1699 | ||
1700 | ** GDB can now complete the backtrace command's | |
1701 | "full/no-filters/hide" qualifiers. | |
1702 | ||
1703 | * In settings, you can now abbreviate "unlimited". | |
1704 | ||
1705 | E.g., "set print elements u" is now equivalent to "set print | |
1706 | elements unlimited". | |
1707 | ||
26648588 JV |
1708 | * New MI commands |
1709 | ||
1710 | -complete | |
1711 | This lists all the possible completions for the rest of the line, if it | |
1712 | were to be given as a command itself. This is intended for use by MI | |
1713 | frontends in cases when separate CLI and MI channels cannot be used. | |
1714 | ||
30056ea0 AB |
1715 | -catch-throw, -catch-rethrow, and -catch-catch |
1716 | These can be used to catch C++ exceptions in a similar fashion to | |
1717 | the CLI commands 'catch throw', 'catch rethrow', and 'catch catch'. | |
1718 | ||
7dc42066 AB |
1719 | -symbol-info-functions, -symbol-info-types, and -symbol-info-variables |
1720 | These commands are the MI equivalent of the CLI commands 'info | |
1721 | functions', 'info types', and 'info variables' respectively. | |
1722 | ||
db5960b4 AB |
1723 | -symbol-info-modules, this is the MI equivalent of the CLI 'info |
1724 | modules' command. | |
1725 | ||
293b38d6 AB |
1726 | -symbol-info-module-functions and -symbol-info-module-variables. |
1727 | These commands are the MI equivalent of the CLI commands 'info | |
1728 | module functions' and 'info module variables'. | |
1729 | ||
aa7ca1bb AH |
1730 | * Other MI changes |
1731 | ||
5a3a0d63 JB |
1732 | ** The default version of the MI interpreter is now 3 (-i=mi3). |
1733 | ||
1734 | ** The output of information about multi-location breakpoints (which is | |
1735 | syntactically incorrect in MI 2) has changed in MI 3. This affects | |
1736 | the following commands and events: | |
1737 | ||
1738 | - -break-insert | |
1739 | - -break-info | |
1740 | - =breakpoint-created | |
1741 | - =breakpoint-modified | |
1742 | ||
1743 | The -fix-multi-location-breakpoint-output command can be used to enable | |
1744 | this behavior with previous MI versions. | |
1745 | ||
aa7ca1bb AH |
1746 | ** Backtraces and frames include a new optional field addr_flags which is |
1747 | given after the addr field. On AArch64 this contains PAC if the address | |
1748 | has been masked in the frame. On all other targets the field is not | |
1749 | present. | |
1750 | ||
b7060614 AH |
1751 | * Testsuite |
1752 | ||
1753 | The testsuite now creates the files gdb.cmd (containing the arguments | |
1754 | used to launch GDB) and gdb.in (containing all the commands sent to | |
1755 | GDB) in the output directory for each test script. Multiple invocations | |
1756 | are appended with .1, .2, .3 etc. | |
1757 | ||
c6bdbeb7 AH |
1758 | * Building GDB and GDBserver now requires GNU make >= 3.82. |
1759 | ||
1760 | Using another implementation of the make program or an earlier version of | |
1761 | GNU make to build GDB or GDBserver is not supported. | |
1762 | ||
86c6b807 TT |
1763 | * Building GDB now requires GNU readline >= 7.0. |
1764 | ||
1765 | GDB now bundles GNU readline 8.0, but if you choose to use | |
1766 | --with-system-readline, only readline >= 7.0 can be used. | |
1767 | ||
11061048 TT |
1768 | * The TUI SingleKey keymap is now named "SingleKey". This can be used |
1769 | from .inputrc to bind keys in this keymap. This feature is only | |
1770 | available when gdb is built against GNU readline 8.0 or later. | |
1771 | ||
abf516c6 UW |
1772 | * Removed targets and native configurations |
1773 | ||
1774 | GDB no longer supports debugging the Cell Broadband Engine. This includes | |
1775 | both debugging standalone Cell/B.E. SPU applications and integrated debugging | |
1776 | of Cell/B.E. applications that use both the PPU and SPU architectures. | |
1777 | ||
ddd44b70 DD |
1778 | * New Simulators |
1779 | ||
1780 | TI PRU pru-*-elf | |
1781 | ||
dae8b3eb RO |
1782 | * Removed targets and native configurations |
1783 | ||
1784 | Solaris 10 i?86-*-solaris2.10, x86_64-*-solaris2.10, | |
1785 | sparc*-*-solaris2.10 | |
1786 | ||
9335e75a | 1787 | *** Changes in GDB 8.3 |
4e5b2f89 | 1788 | |
8d619c01 EBM |
1789 | * GDB and GDBserver now support access to additional registers on |
1790 | PowerPC GNU/Linux targets: PPR, DSCR, TAR, EBB/PMU registers, and | |
1791 | HTM registers. | |
1792 | ||
078a0207 KS |
1793 | * GDB now has experimental support for the compilation and injection of |
1794 | C++ source code into the inferior. This beta release does not include | |
1795 | support for several language features, such as templates, constructors, | |
1796 | and operators. | |
1797 | ||
1798 | This feature requires GCC 7.1 or higher built with libcp1.so | |
1799 | (the C++ plug-in). | |
1800 | ||
c7ab0aef SDJ |
1801 | * GDB and GDBserver now support IPv6 connections. IPv6 addresses |
1802 | can be passed using the '[ADDRESS]:PORT' notation, or the regular | |
1803 | 'ADDRESS:PORT' method. | |
1804 | ||
7d11235d SM |
1805 | * DWARF index cache: GDB can now automatically save indices of DWARF |
1806 | symbols on disk to speed up further loading of the same binaries. | |
1807 | ||
e8bf1ce4 JB |
1808 | * Ada task switching is now supported on aarch64-elf targets when |
1809 | debugging a program using the Ravenscar Profile. For more information, | |
1810 | see the "Tasking Support when using the Ravenscar Profile" section | |
1811 | in the GDB user manual. | |
1812 | ||
b0f492b9 GB |
1813 | * GDB in batch mode now exits with status 1 if the last command to be |
1814 | executed failed. | |
1815 | ||
b5ffee31 AB |
1816 | * The RISC-V target now supports target descriptions. |
1817 | ||
e9076973 JB |
1818 | * System call catchpoints now support system call aliases on FreeBSD. |
1819 | When the ABI of a system call changes in FreeBSD, this is | |
1820 | implemented by leaving a compatibility system call using the old ABI | |
1821 | at the existing number and allocating a new system call number for | |
1822 | the new ABI. For example, FreeBSD 12 altered the layout of 'struct | |
1823 | kevent' used by the 'kevent' system call. As a result, FreeBSD 12 | |
1824 | kernels ship with both 'kevent' and 'freebsd11_kevent' system calls. | |
1825 | The 'freebsd11_kevent' system call is assigned an alias of 'kevent' | |
1826 | so that a system call catchpoint for the 'kevent' system call will | |
1827 | catch invocations of both the 'kevent' and 'freebsd11_kevent' | |
1828 | binaries. This ensures that 'kevent' system calls are caught for | |
1829 | binaries using either the old or new ABIs. | |
1830 | ||
140a4bc0 TT |
1831 | * Terminal styling is now available for the CLI and the TUI. GNU |
1832 | Source Highlight can additionally be used to provide styling of | |
1833 | source code snippets. See the "set style" commands, below, for more | |
1834 | information. | |
1835 | ||
041be526 SM |
1836 | * Removed support for old demangling styles arm, edg, gnu, hp and |
1837 | lucid. | |
1838 | ||
a14c4daa PW |
1839 | * New commands |
1840 | ||
078a0207 KS |
1841 | set debug compile-cplus-types |
1842 | show debug compile-cplus-types | |
1843 | Control the display of debug output about type conversion in the | |
82f06518 | 1844 | C++ compile feature. Commands have no effect while compiling |
078a0207 KS |
1845 | for other languages. |
1846 | ||
3e68067f SM |
1847 | set debug skip |
1848 | show debug skip | |
1849 | Control whether debug output about files/functions skipping is | |
1850 | displayed. | |
1851 | ||
a14c4daa PW |
1852 | frame apply [all | COUNT | -COUNT | level LEVEL...] [FLAG]... COMMAND |
1853 | Apply a command to some frames. | |
1854 | FLAG arguments allow to control what output to produce and how to handle | |
1855 | errors raised when applying COMMAND to a frame. | |
1856 | ||
1857 | taas COMMAND | |
1858 | Apply a command to all threads (ignoring errors and empty output). | |
1859 | Shortcut for 'thread apply all -s COMMAND'. | |
1860 | ||
1861 | faas COMMAND | |
1862 | Apply a command to all frames (ignoring errors and empty output). | |
1863 | Shortcut for 'frame apply all -s COMMAND'. | |
1864 | ||
1865 | tfaas COMMAND | |
1866 | Apply a command to all frames of all threads (ignoring errors and empty | |
1867 | output). | |
1868 | Shortcut for 'thread apply all -s frame apply all -s COMMAND'. | |
1869 | ||
3c3bb058 AB |
1870 | maint set dwarf unwinders (on|off) |
1871 | maint show dwarf unwinders | |
1872 | Control whether DWARF unwinders can be used. | |
1873 | ||
8b113111 JB |
1874 | info proc files |
1875 | Display a list of open files for a process. | |
1876 | ||
a14c4daa PW |
1877 | * Changed commands |
1878 | ||
669e09f6 PW |
1879 | Changes to the "frame", "select-frame", and "info frame" CLI commands. |
1880 | These commands all now take a frame specification which | |
1881 | is either a frame level, or one of the keywords 'level', 'address', | |
1882 | 'function', or 'view' followed by a parameter. Selecting a frame by | |
1883 | address, or viewing a frame outside the current backtrace now | |
1884 | requires the use of a keyword. Selecting a frame by level is | |
1885 | unchanged. The MI comment "-stack-select-frame" is unchanged. | |
1886 | ||
c1168a2f JD |
1887 | target remote FILENAME |
1888 | target extended-remote FILENAME | |
1889 | If FILENAME is a Unix domain socket, GDB will attempt to connect | |
1890 | to this socket instead of opening FILENAME as a character device. | |
1891 | ||
e0a7911f PW |
1892 | info args [-q] [-t TYPEREGEXP] [NAMEREGEXP] |
1893 | info functions [-q] [-t TYPEREGEXP] [NAMEREGEXP] | |
1894 | info locals [-q] [-t TYPEREGEXP] [NAMEREGEXP] | |
1895 | info variables [-q] [-t TYPEREGEXP] [NAMEREGEXP] | |
1896 | These commands can now print only the searched entities | |
1897 | matching the provided regexp(s), giving a condition | |
1898 | on the entity names or entity types. The flag -q disables | |
1899 | printing headers or informations messages. | |
1900 | ||
604c4ca9 PW |
1901 | info functions |
1902 | info types | |
1903 | info variables | |
1904 | rbreak | |
1905 | These commands now determine the syntax for the shown entities | |
1906 | according to the language chosen by `set language'. In particular, | |
1907 | `set language auto' means to automatically choose the language of | |
1908 | the shown entities. | |
1909 | ||
a14c4daa PW |
1910 | thread apply [all | COUNT | -COUNT] [FLAG]... COMMAND |
1911 | The 'thread apply' command accepts new FLAG arguments. | |
1912 | FLAG arguments allow to control what output to produce and how to handle | |
1913 | errors raised when applying COMMAND to a thread. | |
1914 | ||
7806cea7 TT |
1915 | set tui tab-width NCHARS |
1916 | show tui tab-width NCHARS | |
1917 | "set tui tab-width" replaces the "tabset" command, which has been deprecated. | |
1918 | ||
140a4bc0 TT |
1919 | set style enabled [on|off] |
1920 | show style enabled | |
1921 | Enable or disable terminal styling. Styling is enabled by default | |
7557a514 | 1922 | on most hosts, but disabled by default when in batch mode. |
140a4bc0 | 1923 | |
d085f989 TT |
1924 | set style sources [on|off] |
1925 | show style sources | |
1926 | Enable or disable source code styling. Source code styling is | |
1927 | enabled by default, but only takes effect if styling in general is | |
1928 | enabled, and if GDB was linked with GNU Source Highlight. | |
1929 | ||
140a4bc0 TT |
1930 | set style filename foreground COLOR |
1931 | set style filename background COLOR | |
1932 | set style filename intensity VALUE | |
1933 | Control the styling of file names. | |
1934 | ||
1935 | set style function foreground COLOR | |
1936 | set style function background COLOR | |
1937 | set style function intensity VALUE | |
1938 | Control the styling of function names. | |
1939 | ||
1940 | set style variable foreground COLOR | |
1941 | set style variable background COLOR | |
1942 | set style variable intensity VALUE | |
1943 | Control the styling of variable names. | |
1944 | ||
1945 | set style address foreground COLOR | |
1946 | set style address background COLOR | |
1947 | set style address intensity VALUE | |
1948 | Control the styling of addresses. | |
1949 | ||
26fb3983 JV |
1950 | * MI changes |
1951 | ||
1952 | ** The '-data-disassemble' MI command now accepts an '-a' option to | |
1953 | disassemble the whole function surrounding the given program | |
1954 | counter value or function name. Support for this feature can be | |
1955 | verified by using the "-list-features" command, which should | |
1956 | contain "data-disassemble-a-option". | |
1957 | ||
6d52907e JV |
1958 | ** Command responses and notifications that include a frame now include |
1959 | the frame's architecture in a new "arch" attribute. | |
1960 | ||
52a187f8 JW |
1961 | * New native configurations |
1962 | ||
1963 | GNU/Linux/RISC-V riscv*-*-linux* | |
74792ff7 | 1964 | FreeBSD/riscv riscv*-*-freebsd* |
52a187f8 JW |
1965 | |
1966 | * New targets | |
1967 | ||
1968 | GNU/Linux/RISC-V riscv*-*-linux* | |
416a69af HAQ |
1969 | CSKY ELF csky*-*-elf |
1970 | CSKY GNU/LINUX csky*-*-linux | |
ed65e20b | 1971 | FreeBSD/riscv riscv*-*-freebsd* |
197df35e JB |
1972 | NXP S12Z s12z-*-elf |
1973 | GNU/Linux/OpenRISC or1k*-*-linux* | |
52a187f8 | 1974 | |
742a7df5 EZ |
1975 | * Removed targets |
1976 | ||
1977 | GDB no longer supports native debugging on versions of MS-Windows | |
1978 | before Windows XP. | |
1979 | ||
a40bf0c2 SM |
1980 | * Python API |
1981 | ||
2c3fc25d KB |
1982 | ** GDB no longer supports Python versions less than 2.6. |
1983 | ||
a40bf0c2 SM |
1984 | ** The gdb.Inferior type has a new 'progspace' property, which is the program |
1985 | space associated to that inferior. | |
1986 | ||
0ae1a321 SM |
1987 | ** The gdb.Progspace type has a new 'objfiles' method, which returns the list |
1988 | of objfiles associated to that program space. | |
1989 | ||
51e78fc5 TT |
1990 | ** gdb.SYMBOL_LOC_COMMON_BLOCK, gdb.SYMBOL_MODULE_DOMAIN, and |
1991 | gdb.SYMBOL_COMMON_BLOCK_DOMAIN were added to reflect changes to | |
1992 | the gdb core. | |
1993 | ||
1994 | ** gdb.SYMBOL_VARIABLES_DOMAIN, gdb.SYMBOL_FUNCTIONS_DOMAIN, and | |
1995 | gdb.SYMBOL_TYPES_DOMAIN are now deprecated. These were never | |
1996 | correct and did not work properly. | |
1997 | ||
af54ade9 KB |
1998 | ** The gdb.Value type has a new constructor, which is used to construct a |
1999 | gdb.Value from a Python buffer object and a gdb.Type. | |
2000 | ||
f35d5ade TT |
2001 | * Configure changes |
2002 | ||
2003 | --enable-ubsan | |
2004 | ||
eff98030 TT |
2005 | Enable or disable the undefined behavior sanitizer. This is |
2006 | disabled by default, but passing --enable-ubsan=yes or | |
2007 | --enable-ubsan=auto to configure will enable it. Enabling this can | |
2008 | cause a performance penalty. The undefined behavior sanitizer was | |
2009 | first introduced in GCC 4.9. | |
f35d5ade | 2010 | |
4e5b2f89 | 2011 | *** Changes in GDB 8.2 |
cd385f94 | 2012 | |
471b9d15 MR |
2013 | * The 'set disassembler-options' command now supports specifying options |
2014 | for the MIPS target. | |
2015 | ||
d4d429d5 PT |
2016 | * The 'symbol-file' command now accepts an '-o' option to add a relative |
2017 | offset to all sections. | |
2018 | ||
291f9a96 PT |
2019 | * Similarly, the 'add-symbol-file' command also accepts an '-o' option to add |
2020 | a relative offset to all sections, but it allows to override the load | |
2021 | address of individual sections using '-s'. | |
2022 | ||
ed6dfe51 PT |
2023 | * The 'add-symbol-file' command no longer requires the second argument |
2024 | (address of the text section). | |
2025 | ||
4b2dfa9d MR |
2026 | * The endianness used with the 'set endian auto' mode in the absence of |
2027 | an executable selected for debugging is now the last endianness chosen | |
2028 | either by one of the 'set endian big' and 'set endian little' commands | |
2029 | or by inferring from the last executable used, rather than the startup | |
2030 | default. | |
2031 | ||
eb6af809 TT |
2032 | * The pager now allows a "c" response, meaning to disable the pager |
2033 | for the rest of the current command. | |
2034 | ||
b744723f AA |
2035 | * The commands 'info variables/functions/types' now show the source line |
2036 | numbers of symbol definitions when available. | |
2037 | ||
2d97a5d9 JB |
2038 | * 'info proc' now works on running processes on FreeBSD systems and core |
2039 | files created on FreeBSD systems. | |
2040 | ||
007e1530 TT |
2041 | * C expressions can now use _Alignof, and C++ expressions can now use |
2042 | alignof. | |
2043 | ||
1461bdac AH |
2044 | * Support for SVE on AArch64 Linux. Note that GDB does not detect changes to |
2045 | the vector length while the process is running. | |
2046 | ||
386a8676 JB |
2047 | * New commands |
2048 | ||
2049 | set debug fbsd-nat | |
2050 | show debug fbsd-nat | |
2051 | Control display of debugging info regarding the FreeBSD native target. | |
2052 | ||
3fcded8f JB |
2053 | set|show varsize-limit |
2054 | This new setting allows the user to control the maximum size of Ada | |
2055 | objects being printed when those objects have a variable type, | |
2056 | instead of that maximum size being hardcoded to 65536 bytes. | |
2057 | ||
4a4495d6 MM |
2058 | set|show record btrace cpu |
2059 | Controls the processor to be used for enabling errata workarounds for | |
2060 | branch trace decode. | |
2061 | ||
5045b3d7 GB |
2062 | maint check libthread-db |
2063 | Run integrity checks on the current inferior's thread debugging | |
2064 | library | |
2065 | ||
2066 | maint set check-libthread-db (on|off) | |
2067 | maint show check-libthread-db | |
2068 | Control whether to run integrity checks on inferior specific thread | |
2069 | debugging libraries as they are loaded. The default is not to | |
2070 | perform such checks. | |
2071 | ||
6d7bb824 TT |
2072 | * Python API |
2073 | ||
2074 | ** Type alignment is now exposed via the "align" attribute of a gdb.Type. | |
2075 | ||
a913fffb TT |
2076 | ** The commands attached to a breakpoint can be set by assigning to |
2077 | the breakpoint's "commands" field. | |
2078 | ||
56bcdbea TT |
2079 | ** gdb.execute can now execute multi-line gdb commands. |
2080 | ||
7729052b TT |
2081 | ** The new functions gdb.convenience_variable and |
2082 | gdb.set_convenience_variable can be used to get and set the value | |
2083 | of convenience variables. | |
2084 | ||
984ee559 TT |
2085 | ** A gdb.Parameter will no longer print the "set" help text on an |
2086 | ordinary "set"; instead by default a "set" will be silent unless | |
2087 | the get_set_string method returns a non-empty string. | |
2088 | ||
dbbb1059 AB |
2089 | * New targets |
2090 | ||
2091 | RiscV ELF riscv*-*-elf | |
2092 | ||
a2a79012 PA |
2093 | * Removed targets and native configurations |
2094 | ||
2095 | m88k running OpenBSD m88*-*-openbsd* | |
8a3de5e1 PA |
2096 | SH-5/SH64 ELF sh64-*-elf*, SH-5/SH64 support in sh* |
2097 | SH-5/SH64 running GNU/Linux SH-5/SH64 support in sh*-*-linux* | |
2098 | SH-5/SH64 running OpenBSD SH-5/SH64 support in sh*-*-openbsd* | |
a2a79012 | 2099 | |
a3b60e45 JK |
2100 | * Aarch64/Linux hardware watchpoints improvements |
2101 | ||
2102 | Hardware watchpoints on unaligned addresses are now properly | |
2103 | supported when running Linux kernel 4.10 or higher: read and access | |
2104 | watchpoints are no longer spuriously missed, and all watchpoints | |
2105 | lengths between 1 and 8 bytes are supported. On older kernels, | |
2106 | watchpoints set on unaligned addresses are no longer missed, with | |
2107 | the tradeoff that there is a possibility of false hits being | |
2108 | reported. | |
2109 | ||
056dec39 | 2110 | * Configure changes |
44cee4fd TT |
2111 | |
2112 | --enable-codesign=CERT | |
2113 | This can be used to invoke "codesign -s CERT" after building gdb. | |
2114 | This option is useful on macOS, where code signing is required for | |
2115 | gdb to work properly. | |
2116 | ||
056dec39 TT |
2117 | --disable-gdbcli has been removed |
2118 | This is now silently accepted, but does nothing. | |
2119 | ||
cd385f94 | 2120 | *** Changes in GDB 8.1 |
305d16a9 | 2121 | |
cef0f868 SH |
2122 | * GDB now supports dynamically creating arbitrary register groups specified |
2123 | in XML target descriptions. This allows for finer grain grouping of | |
2124 | registers on systems with a large amount of registers. | |
2125 | ||
7c161838 SDJ |
2126 | * The 'ptype' command now accepts a '/o' flag, which prints the |
2127 | offsets and sizes of fields in a struct, like the pahole(1) tool. | |
2128 | ||
97cbe998 SDJ |
2129 | * New "--readnever" command line option instructs GDB to not read each |
2130 | symbol file's symbolic debug information. This makes startup faster | |
2131 | but at the expense of not being able to perform symbolic debugging. | |
2132 | This option is intended for use cases where symbolic debugging will | |
2133 | not be used, e.g., when you only need to dump the debuggee's core. | |
2134 | ||
2400729e UW |
2135 | * GDB now uses the GNU MPFR library, if available, to emulate target |
2136 | floating-point arithmetic during expression evaluation when the target | |
2137 | uses different floating-point formats than the host. At least version | |
2138 | 3.1 of GNU MPFR is required. | |
2139 | ||
289e23aa AA |
2140 | * GDB now supports access to the guarded-storage-control registers and the |
2141 | software-based guarded-storage broadcast control registers on IBM z14. | |
2142 | ||
0a2dde4a SDJ |
2143 | * On Unix systems, GDB now supports transmitting environment variables |
2144 | that are to be set or unset to GDBserver. These variables will | |
2145 | affect the environment to be passed to the remote inferior. | |
2146 | ||
2147 | To inform GDB of environment variables that are to be transmitted to | |
2148 | GDBserver, use the "set environment" command. Only user set | |
2149 | environment variables are sent to GDBserver. | |
2150 | ||
2151 | To inform GDB of environment variables that are to be unset before | |
2152 | the remote inferior is started by the GDBserver, use the "unset | |
2153 | environment" command. | |
2154 | ||
d044bac8 PA |
2155 | * Completion improvements |
2156 | ||
2157 | ** GDB can now complete function parameters in linespecs and | |
2158 | explicit locations without quoting. When setting breakpoints, | |
2159 | quoting around functions names to help with TAB-completion is | |
2160 | generally no longer necessary. For example, this now completes | |
2161 | correctly: | |
2162 | ||
2163 | (gdb) b function(in[TAB] | |
2164 | (gdb) b function(int) | |
2165 | ||
2166 | Related, GDB is no longer confused with completing functions in | |
2167 | C++ anonymous namespaces: | |
2168 | ||
2169 | (gdb) b (anon[TAB] | |
2170 | (gdb) b (anonymous namespace)::[TAB][TAB] | |
2171 | (anonymous namespace)::a_function() | |
2172 | (anonymous namespace)::b_function() | |
2173 | ||
2174 | ** GDB now has much improved linespec and explicit locations TAB | |
2175 | completion support, that better understands what you're | |
2176 | completing and offers better suggestions. For example, GDB no | |
2177 | longer offers data symbols as possible completions when you're | |
2178 | setting a breakpoint. | |
2179 | ||
2180 | ** GDB now TAB-completes label symbol names. | |
2181 | ||
2182 | ** The "complete" command now mimics TAB completion accurately. | |
2183 | ||
c179febe SL |
2184 | * New command line options (gcore) |
2185 | ||
2186 | -a | |
2187 | Dump all memory mappings. | |
2188 | ||
a20714ff PA |
2189 | * Breakpoints on C++ functions are now set on all scopes by default |
2190 | ||
2191 | By default, breakpoints on functions/methods are now interpreted as | |
2192 | specifying all functions with the given name ignoring missing | |
2193 | leading scopes (namespaces and classes). | |
2194 | ||
2195 | For example, assuming a C++ program with symbols named: | |
2196 | ||
2197 | A::B::func() | |
2198 | B::func() | |
2199 | ||
2200 | both commands "break func()" and "break B::func()" set a breakpoint | |
2201 | on both symbols. | |
2202 | ||
2203 | You can use the new flag "-qualified" to override this. This makes | |
2204 | GDB interpret the specified function name as a complete | |
2205 | fully-qualified name instead. For example, using the same C++ | |
2206 | program, the "break -q B::func" command sets a breakpoint on | |
b89641ba SM |
2207 | "B::func", only. A parameter has been added to the Python |
2208 | gdb.Breakpoint constructor to achieve the same result when creating | |
2209 | a breakpoint from Python. | |
a20714ff | 2210 | |
bd69330d PA |
2211 | * Breakpoints on functions marked with C++ ABI tags |
2212 | ||
2213 | GDB can now set breakpoints on functions marked with C++ ABI tags | |
2214 | (e.g., [abi:cxx11]). See here for a description of ABI tags: | |
2215 | https://developers.redhat.com/blog/2015/02/05/gcc5-and-the-c11-abi/ | |
2216 | ||
2217 | Functions with a C++11 abi tag are demangled/displayed like this: | |
2218 | ||
2219 | function[abi:cxx11](int) | |
2220 | ^^^^^^^^^^^ | |
2221 | ||
2222 | You can now set a breakpoint on such functions simply as if they had | |
2223 | no tag, like: | |
2224 | ||
2225 | (gdb) b function(int) | |
2226 | ||
2227 | Or if you need to disambiguate between tags, like: | |
2228 | ||
2229 | (gdb) b function[abi:other_tag](int) | |
2230 | ||
2231 | Tab completion was adjusted accordingly as well. | |
2232 | ||
7c96f8c1 TT |
2233 | * Python Scripting |
2234 | ||
2235 | ** New events gdb.new_inferior, gdb.inferior_deleted, and | |
2236 | gdb.new_thread are emitted. See the manual for further | |
2237 | description of these. | |
2238 | ||
4e725347 JB |
2239 | ** A new function, "gdb.rbreak" has been added to the Python API. |
2240 | This function allows the setting of a large number of breakpoints | |
2241 | via a regex pattern in Python. See the manual for further details. | |
d8ae99a7 | 2242 | |
824cc835 PM |
2243 | ** Python breakpoints can now accept explicit locations. See the |
2244 | manual for a further description of this feature. | |
2245 | ||
2246 | ||
6d580b63 YQ |
2247 | * New features in the GDB remote stub, GDBserver |
2248 | ||
bc3b087d SDJ |
2249 | ** GDBserver is now able to start inferior processes with a |
2250 | specified initial working directory. | |
2251 | ||
2252 | The user can set the desired working directory to be used from | |
2253 | GDB using the new "set cwd" command. | |
2254 | ||
6d580b63 YQ |
2255 | ** New "--selftest" command line option runs some GDBserver self |
2256 | tests. These self tests are disabled in releases. | |
2257 | ||
2258 | ** On Unix systems, GDBserver now does globbing expansion and variable | |
2259 | substitution in inferior command line arguments. | |
2260 | ||
2261 | This is done by starting inferiors using a shell, like GDB does. | |
2262 | See "set startup-with-shell" in the user manual for how to disable | |
2263 | this from GDB when using "target extended-remote". When using | |
2264 | "target remote", you can disable the startup with shell by using the | |
2265 | new "--no-startup-with-shell" GDBserver command line option. | |
aefd8b33 | 2266 | |
0a2dde4a SDJ |
2267 | ** On Unix systems, GDBserver now supports receiving environment |
2268 | variables that are to be set or unset from GDB. These variables | |
2269 | will affect the environment to be passed to the inferior. | |
2270 | ||
e547c119 JB |
2271 | * When catching an Ada exception raised with a message, GDB now prints |
2272 | the message in the catchpoint hit notification. In GDB/MI mode, that | |
2273 | information is provided as an extra field named "exception-message" | |
2274 | in the *stopped notification. | |
2275 | ||
7403715e TT |
2276 | * Trait objects can now be inspected When debugging Rust code. This |
2277 | requires compiler support which will appear in Rust 1.24. | |
2278 | ||
aefd8b33 SDJ |
2279 | * New remote packets |
2280 | ||
0a2dde4a SDJ |
2281 | QEnvironmentHexEncoded |
2282 | Inform GDBserver of an environment variable that is to be passed to | |
2283 | the inferior when starting it. | |
2284 | ||
2285 | QEnvironmentUnset | |
2286 | Inform GDBserver of an environment variable that is to be unset | |
2287 | before starting the remote inferior. | |
2288 | ||
2289 | QEnvironmentReset | |
2290 | Inform GDBserver that the environment should be reset (i.e., | |
2291 | user-set environment variables should be unset). | |
2292 | ||
aefd8b33 SDJ |
2293 | QStartupWithShell |
2294 | Indicates whether the inferior must be started with a shell or not. | |
2295 | ||
bc3b087d SDJ |
2296 | QSetWorkingDir |
2297 | Tell GDBserver that the inferior to be started should use a specific | |
2298 | working directory. | |
2299 | ||
8e2141c6 YQ |
2300 | * The "maintenance print c-tdesc" command now takes an optional |
2301 | argument which is the file name of XML target description. | |
2302 | ||
1526853e SM |
2303 | * The "maintenance selftest" command now takes an optional argument to |
2304 | filter the tests to be run. | |
2305 | ||
d0fe4701 XR |
2306 | * The "enable", and "disable" commands now accept a range of |
2307 | breakpoint locations, e.g. "enable 1.3-5". | |
2308 | ||
c4dcb155 SM |
2309 | * New commands |
2310 | ||
d092c5a2 SDJ |
2311 | set|show cwd |
2312 | Set and show the current working directory for the inferior. | |
2313 | ||
6e41ddec JK |
2314 | set|show compile-gcc |
2315 | Set and show compilation command used for compiling and injecting code | |
2316 | with the 'compile' commands. | |
2317 | ||
c4dcb155 SM |
2318 | set debug separate-debug-file |
2319 | show debug separate-debug-file | |
2320 | Control the display of debug output about separate debug file search. | |
2321 | ||
1e52e849 SL |
2322 | set dump-excluded-mappings |
2323 | show dump-excluded-mappings | |
2324 | Control whether mappings marked with the VM_DONTDUMP flag should be | |
2325 | dumped when generating a core file. | |
2326 | ||
1526853e SM |
2327 | maint info selftests |
2328 | List the registered selftests. | |
2329 | ||
4e5a4f58 JB |
2330 | starti |
2331 | Start the debugged program stopping at the first instruction. | |
2332 | ||
b282f0f2 SH |
2333 | set|show debug or1k |
2334 | Control display of debugging messages related to OpenRISC targets. | |
2335 | ||
883fd55a KS |
2336 | set|show print type nested-type-limit |
2337 | Set and show the limit of nesting level for nested types that the | |
2338 | type printer will show. | |
2339 | ||
44d0fb3a RK |
2340 | * TUI Single-Key mode now supports two new shortcut keys: `i' for stepi and |
2341 | `o' for nexti. | |
2342 | ||
d69cf9b2 PA |
2343 | * Safer/improved support for debugging with no debug info |
2344 | ||
2345 | GDB no longer assumes functions with no debug information return | |
2346 | 'int'. | |
2347 | ||
2348 | This means that GDB now refuses to call such functions unless you | |
2349 | tell it the function's type, by either casting the call to the | |
2350 | declared return type, or by casting the function to a function | |
2351 | pointer of the right type, and calling that: | |
2352 | ||
2353 | (gdb) p getenv ("PATH") | |
2354 | 'getenv' has unknown return type; cast the call to its declared return type | |
2355 | (gdb) p (char *) getenv ("PATH") | |
2356 | $1 = 0x7fffffffe "/usr/local/bin:/"... | |
2357 | (gdb) p ((char * (*) (const char *)) getenv) ("PATH") | |
2358 | $2 = 0x7fffffffe "/usr/local/bin:/"... | |
2359 | ||
2360 | Similarly, GDB no longer assumes that global variables with no debug | |
2361 | info have type 'int', and refuses to print the variable's value | |
2362 | unless you tell it the variable's type: | |
2363 | ||
2364 | (gdb) p var | |
2365 | 'var' has unknown type; cast it to its declared type | |
2366 | (gdb) p (float) var | |
2367 | $3 = 3.14 | |
2368 | ||
351787dd JB |
2369 | * New native configurations |
2370 | ||
2371 | FreeBSD/aarch64 aarch64*-*-freebsd* | |
4f9d9906 | 2372 | FreeBSD/arm arm*-*-freebsd* |
351787dd | 2373 | |
c0f84956 JB |
2374 | * New targets |
2375 | ||
2376 | FreeBSD/aarch64 aarch64*-*-freebsd* | |
7176dfd2 | 2377 | FreeBSD/arm arm*-*-freebsd* |
b282f0f2 | 2378 | OpenRISC ELF or1k*-*-elf |
c0f84956 | 2379 | |
281c4447 RO |
2380 | * Removed targets and native configurations |
2381 | ||
2382 | Solaris 2.0-9 i?86-*-solaris2.[0-9], sparc*-*-solaris2.[0-9] | |
2383 | ||
305d16a9 | 2384 | *** Changes in GDB 8.0 |
51547df6 MS |
2385 | |
2386 | * GDB now supports access to the PKU register on GNU/Linux. The register is | |
2387 | added by the Memory Protection Keys for Userspace feature which will be | |
2388 | available in future Intel CPUs. | |
751b375e | 2389 | |
c0f55cc6 AV |
2390 | * GDB now supports C++11 rvalue references. |
2391 | ||
0a0faf9f TW |
2392 | * Python Scripting |
2393 | ||
2394 | ** New functions to start, stop and access a running btrace recording. | |
c0f55cc6 | 2395 | ** Rvalue references are now supported in gdb.Type. |
0a0faf9f | 2396 | |
20b477a7 LM |
2397 | * GDB now supports recording and replaying rdrand and rdseed Intel 64 |
2398 | instructions. | |
2399 | ||
e6485aaf | 2400 | * Building GDB and GDBserver now requires a C++11 compiler. |
d2946923 PA |
2401 | |
2402 | For example, GCC 4.8 or later. | |
cf6de44d PA |
2403 | |
2404 | It is no longer possible to build GDB or GDBserver with a C | |
2405 | compiler. The --disable-build-with-cxx configure option has been | |
2406 | removed. | |
2407 | ||
f2ff9acd SM |
2408 | * Building GDB and GDBserver now requires GNU make >= 3.81. |
2409 | ||
2410 | It is no longer supported to build GDB or GDBserver with another | |
2411 | implementation of the make program or an earlier version of GNU make. | |
2412 | ||
8ba42bc5 EZ |
2413 | * Native debugging on MS-Windows supports command-line redirection |
2414 | ||
2415 | Command-line arguments used for starting programs on MS-Windows can | |
2416 | now include redirection symbols supported by native Windows shells, | |
2417 | such as '<', '>', '>>', '2>&1', etc. This affects GDB commands such | |
2418 | as "run", "start", and "set args", as well as the corresponding MI | |
2419 | features. | |
2420 | ||
24cdb46e РИ |
2421 | * Support for thread names on MS-Windows. |
2422 | ||
2423 | GDB now catches and handles the special exception that programs | |
2424 | running on MS-Windows use to assign names to threads in the | |
2425 | debugger. | |
2426 | ||
9c37b5ae TT |
2427 | * Support for Java programs compiled with gcj has been removed. |
2428 | ||
df3ee9ca PA |
2429 | * User commands now accept an unlimited number of arguments. |
2430 | Previously, only up to 10 was accepted. | |
2431 | ||
01770bbd PA |
2432 | * The "eval" command now expands user-defined command arguments. |
2433 | ||
2434 | This makes it easier to process a variable number of arguments: | |
2435 | ||
2436 | define mycommand | |
2437 | set $i = 0 | |
2438 | while $i < $argc | |
2439 | eval "print $arg%d", $i | |
2440 | set $i = $i + 1 | |
2441 | end | |
2442 | end | |
2443 | ||
3f7b46f2 IR |
2444 | * Target descriptions can now describe registers for sparc32 and sparc64. |
2445 | ||
0ae60b63 JK |
2446 | * GDB now supports DWARF version 5 (debug information format). |
2447 | Its .debug_names index is not yet supported. | |
2448 | ||
b268007c JB |
2449 | * New native configurations |
2450 | ||
2451 | FreeBSD/mips mips*-*-freebsd | |
2452 | ||
ad0a504f AK |
2453 | * New targets |
2454 | ||
2455 | Synopsys ARC arc*-*-elf32 | |
387360da | 2456 | FreeBSD/mips mips*-*-freebsd |
ad0a504f | 2457 | |
db6be0d5 SM |
2458 | * Removed targets and native configurations |
2459 | ||
2460 | Alpha running FreeBSD alpha*-*-freebsd* | |
2461 | Alpha running GNU/kFreeBSD alpha*-*-kfreebsd*-gnu | |
2462 | ||
78cbbba8 LM |
2463 | * New commands |
2464 | ||
2465 | flash-erase | |
2466 | Erases all the flash memory regions reported by the target. | |
2467 | ||
db6be0d5 SM |
2468 | maint print arc arc-instruction address |
2469 | Print internal disassembler information about instruction at a given address. | |
51457a05 | 2470 | |
db6be0d5 | 2471 | * New options |
65b48a81 PB |
2472 | |
2473 | set disassembler-options | |
2474 | show disassembler-options | |
2475 | Controls the passing of target specific information to the disassembler. | |
2476 | If it is necessary to specify more than one disassembler option then | |
2477 | multiple options can be placed together into a comma separated list. | |
2478 | The default value is the empty string. Currently, the only supported | |
2479 | targets are ARM, PowerPC and S/390. | |
2480 | ||
db6be0d5 | 2481 | * New MI commands |
eea78757 | 2482 | |
db6be0d5 SM |
2483 | -target-flash-erase |
2484 | Erases all the flash memory regions reported by the target. This is | |
2485 | equivalent to the CLI command flash-erase. | |
1e1a8bef | 2486 | |
db6be0d5 SM |
2487 | -file-list-shared-libraries |
2488 | List the shared libraries in the program. This is | |
2489 | equivalent to the CLI command "info shared". | |
1e1a8bef | 2490 | |
bea298f9 XR |
2491 | -catch-handlers |
2492 | Catchpoints stopping the program when Ada exceptions are | |
2493 | handled. This is equivalent to the CLI command "catch handlers". | |
2494 | ||
751b375e | 2495 | *** Changes in GDB 7.12 |
1233c0ba | 2496 | |
69ffd7f2 PA |
2497 | * GDB and GDBserver now build with a C++ compiler by default. |
2498 | ||
2499 | The --enable-build-with-cxx configure option is now enabled by | |
2500 | default. One must now explicitly configure with | |
2501 | --disable-build-with-cxx in order to build with a C compiler. This | |
2502 | option will be removed in a future release. | |
2503 | ||
c0272db5 TW |
2504 | * GDBserver now supports recording btrace without maintaining an active |
2505 | GDB connection. | |
2506 | ||
bb556f1f TK |
2507 | * GDB now supports a negative repeat count in the 'x' command to examine |
2508 | memory backward from the given address. For example: | |
2509 | ||
2510 | (gdb) bt | |
2511 | #0 Func1 (n=42, p=0x40061c "hogehoge") at main.cpp:4 | |
2512 | #1 0x400580 in main (argc=1, argv=0x7fffffffe5c8) at main.cpp:8 | |
2513 | (gdb) x/-5i 0x0000000000400580 | |
2514 | 0x40056a <main(int, char**)+8>: mov %edi,-0x4(%rbp) | |
2515 | 0x40056d <main(int, char**)+11>: mov %rsi,-0x10(%rbp) | |
2516 | 0x400571 <main(int, char**)+15>: mov $0x40061c,%esi | |
2517 | 0x400576 <main(int, char**)+20>: mov $0x2a,%edi | |
2518 | 0x40057b <main(int, char**)+25>: | |
2519 | callq 0x400536 <Func1(int, char const*)> | |
2520 | ||
9920b434 BH |
2521 | * Fortran: Support structures with fields of dynamic types and |
2522 | arrays of dynamic types. | |
2523 | ||
34c41c68 DE |
2524 | * The symbol dumping maintenance commands have new syntax. |
2525 | maint print symbols [-pc address] [--] [filename] | |
2526 | maint print symbols [-objfile objfile] [-source source] [--] [filename] | |
2527 | maint print psymbols [-objfile objfile] [-pc address] [--] [filename] | |
2528 | maint print psymbols [-objfile objfile] [-source source] [--] [filename] | |
2529 | maint print msymbols [-objfile objfile] [--] [filename] | |
2530 | ||
81516450 DE |
2531 | * GDB now supports multibit bitfields and enums in target register |
2532 | descriptions. | |
2533 | ||
f2f3ccb9 SM |
2534 | * New Python-based convenience function $_as_string(val), which returns |
2535 | the textual representation of a value. This function is especially | |
2536 | useful to obtain the text label of an enum value. | |
2537 | ||
012b3a21 WT |
2538 | * Intel MPX bound violation handling. |
2539 | ||
2540 | Segmentation faults caused by a Intel MPX boundary violation | |
2541 | now display the kind of violation (upper or lower), the memory | |
2542 | address accessed and the memory bounds, along with the usual | |
2543 | signal received and code location. | |
2544 | ||
2545 | For example: | |
2546 | ||
2547 | Program received signal SIGSEGV, Segmentation fault | |
2548 | Upper bound violation while accessing address 0x7fffffffc3b3 | |
2549 | Bounds: [lower = 0x7fffffffc390, upper = 0x7fffffffc3a3] | |
2550 | 0x0000000000400d7c in upper () at i386-mpx-sigsegv.c:68 | |
2551 | ||
0bdfa368 TT |
2552 | * Rust language support. |
2553 | GDB now supports debugging programs written in the Rust programming | |
2554 | language. See https://www.rust-lang.org/ for more information about | |
2555 | Rust. | |
2556 | ||
86f78169 PA |
2557 | * Support for running interpreters on specified input/output devices |
2558 | ||
2559 | GDB now supports a new mechanism that allows frontends to provide | |
2560 | fully featured GDB console views, as a better alternative to | |
2561 | building such views on top of the "-interpreter-exec console" | |
2562 | command. See the new "new-ui" command below. With that command, | |
2563 | frontends can now start GDB in the traditional command-line mode | |
2564 | running in an embedded terminal emulator widget, and create a | |
2565 | separate MI interpreter running on a specified i/o device. In this | |
2566 | way, GDB handles line editing, history, tab completion, etc. in the | |
2567 | console all by itself, and the GUI uses the separate MI interpreter | |
2568 | for its own control and synchronization, invisible to the command | |
2569 | line. | |
2570 | ||
e3487908 GKB |
2571 | * The "catch syscall" command catches groups of related syscalls. |
2572 | ||
2573 | The "catch syscall" command now supports catching a group of related | |
2574 | syscalls using the 'group:' or 'g:' prefix. | |
2575 | ||
d2dffb8d DE |
2576 | * New commands |
2577 | ||
2578 | skip -file file | |
2579 | skip -gfile file-glob-pattern | |
2580 | skip -function function | |
2581 | skip -rfunction regular-expression | |
2582 | A generalized form of the skip command, with new support for | |
2583 | glob-style file names and regular expressions for function names. | |
2584 | Additionally, a file spec and a function spec may now be combined. | |
2585 | ||
f2403c39 | 2586 | maint info line-table REGEXP |
82f06518 | 2587 | Display the contents of GDB's internal line table data structure. |
f2403c39 | 2588 | |
dcd1f979 TT |
2589 | maint selftest |
2590 | Run any GDB unit tests that were compiled in. | |
2591 | ||
86f78169 PA |
2592 | new-ui INTERP TTY |
2593 | Start a new user interface instance running INTERP as interpreter, | |
2594 | using the TTY file for input/output. | |
2595 | ||
93daf339 TT |
2596 | * Python Scripting |
2597 | ||
2598 | ** gdb.Breakpoint objects have a new attribute "pending", which | |
2599 | indicates whether the breakpoint is pending. | |
8d2a0a14 TT |
2600 | ** Three new breakpoint-related events have been added: |
2601 | gdb.breakpoint_created, gdb.breakpoint_modified, and | |
2602 | gdb.breakpoint_deleted. | |
93daf339 | 2603 | |
463888ab РИ |
2604 | signal-event EVENTID |
2605 | Signal ("set") the given MS-Windows event object. This is used in | |
2606 | conjunction with the Windows JIT debugging (AeDebug) support, where | |
2607 | the OS suspends a crashing process until a debugger can attach to | |
2608 | it. Resuming the crashing process, in order to debug it, is done by | |
2609 | signalling an event. | |
2610 | ||
c37c0ba6 MK |
2611 | * Support for tracepoints and fast tracepoints on s390-linux and s390x-linux |
2612 | was added in GDBserver, including JIT compiling fast tracepoint's | |
2613 | conditional expression bytecode into native code. | |
2614 | ||
f7c38292 PA |
2615 | * Support for various remote target protocols and ROM monitors has |
2616 | been removed: | |
2617 | ||
2618 | target m32rsdi Remote M32R debugging over SDI | |
2619 | target mips MIPS remote debugging protocol | |
2620 | target pmon PMON ROM monitor | |
2621 | target ddb NEC's DDB variant of PMON for Vr4300 | |
2622 | target rockhopper NEC RockHopper variant of PMON | |
2623 | target lsi LSI variant of PMO | |
2624 | ||
22084c42 MK |
2625 | * Support for tracepoints and fast tracepoints on powerpc-linux, |
2626 | powerpc64-linux, and powerpc64le-linux was added in GDBserver, | |
2627 | including JIT compiling fast tracepoint's conditional expression | |
2628 | bytecode into native code. | |
2629 | ||
38b022b4 SM |
2630 | * MI async record =record-started now includes the method and format used for |
2631 | recording. For example: | |
2632 | ||
2633 | =record-started,thread-group="i1",method="btrace",format="bts" | |
2634 | ||
4034d0ff AT |
2635 | * MI async record =thread-selected now includes the frame field. For example: |
2636 | ||
2637 | =thread-selected,id="3",frame={level="0",addr="0x00000000004007c0"} | |
2638 | ||
a28d8e50 YTL |
2639 | * New targets |
2640 | ||
2641 | Andes NDS32 nds32*-*-elf | |
2642 | ||
1233c0ba | 2643 | *** Changes in GDB 7.11 |
7c79d316 | 2644 | |
6e9567fe JB |
2645 | * GDB now supports debugging kernel-based threads on FreeBSD. |
2646 | ||
5d5658a1 PA |
2647 | * Per-inferior thread numbers |
2648 | ||
2649 | Thread numbers are now per inferior instead of global. If you're | |
2650 | debugging multiple inferiors, GDB displays thread IDs using a | |
2651 | qualified INF_NUM.THR_NUM form. For example: | |
2652 | ||
2653 | (gdb) info threads | |
2654 | Id Target Id Frame | |
2655 | 1.1 Thread 0x7ffff7fc2740 (LWP 8155) (running) | |
2656 | 1.2 Thread 0x7ffff7fc1700 (LWP 8168) (running) | |
2657 | * 2.1 Thread 0x7ffff7fc2740 (LWP 8157) (running) | |
2658 | 2.2 Thread 0x7ffff7fc1700 (LWP 8190) (running) | |
2659 | ||
2660 | As consequence, thread numbers as visible in the $_thread | |
2661 | convenience variable and in Python's InferiorThread.num attribute | |
2662 | are no longer unique between inferiors. | |
2663 | ||
2664 | GDB now maintains a second thread ID per thread, referred to as the | |
2665 | global thread ID, which is the new equivalent of thread numbers in | |
663f6d42 | 2666 | previous releases. See also $_gthread below. |
5d5658a1 PA |
2667 | |
2668 | For backwards compatibility, MI's thread IDs always refer to global | |
2669 | IDs. | |
2670 | ||
2671 | * Commands that accept thread IDs now accept the qualified | |
2672 | INF_NUM.THR_NUM form as well. For example: | |
2673 | ||
2674 | (gdb) thread 2.1 | |
2675 | [Switching to thread 2.1 (Thread 0x7ffff7fc2740 (LWP 8157))] (running) | |
2676 | (gdb) | |
2677 | ||
71ef29a8 PA |
2678 | * In commands that accept a list of thread IDs, you can now refer to |
2679 | all threads of an inferior using a star wildcard. GDB accepts | |
2680 | "INF_NUM.*", to refer to all threads of inferior INF_NUM, and "*" to | |
2681 | refer to all threads of the current inferior. For example, "info | |
2682 | threads 2.*". | |
2683 | ||
c84f6bbf PA |
2684 | * You can use "info threads -gid" to display the global thread ID of |
2685 | all threads. | |
2686 | ||
663f6d42 PA |
2687 | * The new convenience variable $_gthread holds the global number of |
2688 | the current thread. | |
2689 | ||
e3940304 PA |
2690 | * The new convenience variable $_inferior holds the number of the |
2691 | current inferior. | |
2692 | ||
f303dbd6 PA |
2693 | * GDB now displays the ID and name of the thread that hit a breakpoint |
2694 | or received a signal, if your program is multi-threaded. For | |
2695 | example: | |
2696 | ||
2697 | Thread 3 "bar" hit Breakpoint 1 at 0x40087a: file program.c, line 20. | |
2698 | Thread 1 "main" received signal SIGINT, Interrupt. | |
2699 | ||
cbb55fa7 MM |
2700 | * Record btrace now supports non-stop mode. |
2701 | ||
58d2eda5 PL |
2702 | * Support for tracepoints on aarch64-linux was added in GDBserver. |
2703 | ||
da8c46d2 | 2704 | * The 'record instruction-history' command now indicates speculative execution |
bc504a31 | 2705 | when using the Intel Processor Trace recording format. |
da8c46d2 | 2706 | |
629500fa KS |
2707 | * GDB now allows users to specify explicit locations, bypassing |
2708 | the linespec parser. This feature is also available to GDB/MI | |
2709 | clients. | |
2710 | ||
02f024f9 YQ |
2711 | * Multi-architecture debugging is supported on AArch64 GNU/Linux. |
2712 | GDB now is able to debug both AArch64 applications and ARM applications | |
2713 | at the same time. | |
2714 | ||
4d9d419e PL |
2715 | * Support for fast tracepoints on aarch64-linux was added in GDBserver, |
2716 | including JIT compiling fast tracepoint's conditional expression bytecode | |
2717 | into native code. | |
2718 | ||
eda14cf2 YQ |
2719 | * GDB now supports displaced stepping on AArch64 GNU/Linux. |
2720 | ||
be81798b PA |
2721 | * "info threads", "info inferiors", "info display", "info checkpoints" |
2722 | and "maint info program-spaces" now list the corresponding items in | |
2723 | ascending ID order, for consistency with all other "info" commands. | |
2724 | ||
3685b09f PMR |
2725 | * In Ada, the overloads selection menu has been enhanced to display the |
2726 | parameter types and the return types for the matching overloaded subprograms. | |
2727 | ||
fbea99ea PA |
2728 | * New commands |
2729 | ||
2730 | maint set target-non-stop (on|off|auto) | |
2731 | maint show target-non-stop | |
2732 | Control whether GDB targets always operate in non-stop mode even if | |
2733 | "set non-stop" is "off". The default is "auto", meaning non-stop | |
2734 | mode is enabled if supported by the target. | |
2735 | ||
18989b3c AB |
2736 | maint set bfd-sharing |
2737 | maint show bfd-sharing | |
2738 | Control the reuse of bfd objects. | |
2739 | ||
566f5e3b AB |
2740 | set debug bfd-cache |
2741 | show debug bfd-cache | |
2742 | Control display of debugging info regarding bfd caching. | |
2743 | ||
6e9567fe JB |
2744 | set debug fbsd-lwp |
2745 | show debug fbsd-lwp | |
2746 | Control display of debugging info regarding FreeBSD threads. | |
2747 | ||
73b8c1fd PA |
2748 | set remote multiprocess-extensions-packet |
2749 | show remote multiprocess-extensions-packet | |
2750 | Set/show the use of the remote protocol multiprocess extensions. | |
2751 | ||
65706a29 PA |
2752 | set remote thread-events |
2753 | show remote thread-events | |
2754 | Set/show the use of thread create/exit events. | |
2755 | ||
3685b09f PMR |
2756 | set ada print-signatures on|off |
2757 | show ada print-signatures" | |
2758 | Control whether parameter types and return types are displayed in overloads | |
82f06518 | 2759 | selection menus. It is activated (@code{on}) by default. |
3685b09f | 2760 | |
5fdf6324 AB |
2761 | set max-value-size |
2762 | show max-value-size | |
2763 | Controls the maximum size of memory, in bytes, that GDB will | |
2764 | allocate for value contents. Prevents incorrect programs from | |
2765 | causing GDB to allocate overly large buffers. Default is 64k. | |
2766 | ||
6ff0ba5f DE |
2767 | * The "disassemble" command accepts a new modifier: /s. |
2768 | It prints mixed source+disassembly like /m with two differences: | |
2769 | - disassembled instructions are now printed in program order, and | |
2770 | - and source for all relevant files is now printed. | |
2771 | The "/m" option is now considered deprecated: its "source-centric" | |
2772 | output hasn't proved useful in practice. | |
2773 | ||
0c532a29 MM |
2774 | * The "record instruction-history" command accepts a new modifier: /s. |
2775 | It behaves exactly like /m and prints mixed source+disassembly. | |
2776 | ||
f2665db5 MM |
2777 | * The "set scheduler-locking" command supports a new mode "replay". |
2778 | It behaves like "off" in record mode and like "on" in replay mode. | |
2779 | ||
40e0b271 PA |
2780 | * Support for various ROM monitors has been removed: |
2781 | ||
2782 | target dbug dBUG ROM monitor for Motorola ColdFire | |
2783 | target picobug Motorola picobug monitor | |
2784 | target dink32 DINK32 ROM monitor for PowerPC | |
2785 | target m32r Renesas M32R/D ROM monitor | |
2786 | target mon2000 mon2000 ROM monitor | |
2787 | target ppcbug PPCBUG ROM monitor for PowerPC | |
2788 | ||
fd2ae5d6 | 2789 | * Support for reading/writing memory and extracting values on architectures |
d63dd61e | 2790 | whose memory is addressable in units of any integral multiple of 8 bits. |
fd2ae5d6 | 2791 | |
9f757bf7 XR |
2792 | catch handlers |
2793 | Allows to break when an Ada exception is handled. | |
2794 | ||
b459a59b DB |
2795 | * New remote packets |
2796 | ||
2797 | exec stop reason | |
2798 | Indicates that an exec system call was executed. | |
2799 | ||
2800 | exec-events feature in qSupported | |
2801 | The qSupported packet allows GDB to request support for exec | |
2802 | events using the new 'gdbfeature' exec-event, and the qSupported | |
2803 | response can contain the corresponding 'stubfeature'. Set and | |
2804 | show commands can be used to display whether these features are enabled. | |
2805 | ||
de979965 PA |
2806 | vCtrlC |
2807 | Equivalent to interrupting with the ^C character, but works in | |
2808 | non-stop mode. | |
2809 | ||
65706a29 PA |
2810 | thread created stop reason (T05 create:...) |
2811 | Indicates that the thread was just created and is stopped at entry. | |
2812 | ||
2813 | thread exit stop reply (w exitcode;tid) | |
2814 | Indicates that the thread has terminated. | |
2815 | ||
2816 | QThreadEvents | |
2817 | Enables/disables thread create and exit event reporting. For | |
2818 | example, this is used in non-stop mode when GDB stops a set of | |
2819 | threads and synchronously waits for the their corresponding stop | |
2820 | replies. Without exit events, if one of the threads exits, GDB | |
2821 | would hang forever not knowing that it should no longer expect a | |
2822 | stop for that same thread. | |
2823 | ||
f2faf941 | 2824 | N stop reply |
f2faf941 PA |
2825 | Indicates that there are no resumed threads left in the target (all |
2826 | threads are stopped). The remote stub reports support for this stop | |
2827 | reply to GDB's qSupported query. | |
2828 | ||
aab3c527 JK |
2829 | QCatchSyscalls |
2830 | Enables/disables catching syscalls from the inferior process. | |
2831 | The remote stub reports support for this packet to GDB's qSupported query. | |
82075af2 JS |
2832 | |
2833 | syscall_entry stop reason | |
2834 | Indicates that a syscall was just called. | |
2835 | ||
2836 | syscall_return stop reason | |
2837 | Indicates that a syscall just returned. | |
2838 | ||
b459a59b DB |
2839 | * Extended-remote exec events |
2840 | ||
2841 | ** GDB now has support for exec events on extended-remote Linux targets. | |
2842 | For such targets with Linux kernels 2.5.46 and later, this enables | |
2843 | follow-exec-mode and exec catchpoints. | |
2844 | ||
2845 | set remote exec-event-feature-packet | |
2846 | show remote exec-event-feature-packet | |
2847 | Set/show the use of the remote exec event feature. | |
2848 | ||
79efa585 SM |
2849 | * Thread names in remote protocol |
2850 | ||
2851 | The reply to qXfer:threads:read may now include a name attribute for each | |
2852 | thread. | |
2853 | ||
19d9d4ef DB |
2854 | * Target remote mode fork and exec events |
2855 | ||
2856 | ** GDB now has support for fork and exec events on target remote mode | |
2857 | Linux targets. For such targets with Linux kernels 2.5.46 and later, | |
2858 | this enables follow-fork-mode, detach-on-fork, follow-exec-mode, and | |
2859 | fork and exec catchpoints. | |
2860 | ||
82075af2 JS |
2861 | * Remote syscall events |
2862 | ||
2863 | ** GDB now has support for catch syscall on remote Linux targets, | |
2864 | currently enabled on x86/x86_64 architectures. | |
2865 | ||
2866 | set remote catch-syscall-packet | |
2867 | show remote catch-syscall-packet | |
2868 | Set/show the use of the remote catch syscall feature. | |
2869 | ||
1c35a88f LM |
2870 | * MI changes |
2871 | ||
2872 | ** The -var-set-format command now accepts the zero-hexadecimal | |
2873 | format. It outputs data in hexadecimal format with zero-padding on the | |
2874 | left. | |
2875 | ||
84654457 PA |
2876 | * Python Scripting |
2877 | ||
22a02324 PA |
2878 | ** gdb.InferiorThread objects have a new attribute "global_num", |
2879 | which refers to the thread's global thread ID. The existing | |
2880 | "num" attribute now refers to the thread's per-inferior number. | |
2881 | See "Per-inferior thread numbers" above. | |
84654457 PA |
2882 | ** gdb.InferiorThread objects have a new attribute "inferior", which |
2883 | is the Inferior object the thread belongs to. | |
2884 | ||
7c79d316 | 2885 | *** Changes in GDB 7.10 |
df8411da | 2886 | |
c16a3f52 OJ |
2887 | * Support for process record-replay and reverse debugging on aarch64*-linux* |
2888 | targets has been added. GDB now supports recording of A64 instruction set | |
2889 | including advance SIMD instructions. | |
2890 | ||
18a94d75 DE |
2891 | * Support for Sun's version of the "stabs" debug file format has been removed. |
2892 | ||
df8411da SDJ |
2893 | * GDB now honors the content of the file /proc/PID/coredump_filter |
2894 | (PID is the process ID) on GNU/Linux systems. This file can be used | |
2895 | to specify the types of memory mappings that will be included in a | |
2896 | corefile. For more information, please refer to the manual page of | |
2897 | "core(5)". GDB also has a new command: "set use-coredump-filter | |
2898 | on|off". It allows to set whether GDB will read the content of the | |
2899 | /proc/PID/coredump_filter file when generating a corefile. | |
3b2f13ff | 2900 | |
d33279b3 AT |
2901 | * The "info os" command on GNU/Linux can now display information on |
2902 | cpu information : | |
2903 | "info os cpus" Listing of all cpus/cores on the system | |
2904 | ||
236af5e3 YG |
2905 | * GDB has two new commands: "set serial parity odd|even|none" and |
2906 | "show serial parity". These allows to set or show parity for the | |
2907 | remote serial I/O. | |
2908 | ||
b6577aab DE |
2909 | * The "info source" command now displays the producer string if it was |
2910 | present in the debug info. This typically includes the compiler version | |
2911 | and may include things like its command line arguments. | |
2912 | ||
b30a0bc3 JB |
2913 | * The "info dll", an alias of the "info sharedlibrary" command, |
2914 | is now available on all platforms. | |
2915 | ||
599bd15c GB |
2916 | * Directory names supplied to the "set sysroot" commands may be |
2917 | prefixed with "target:" to tell GDB to access shared libraries from | |
2918 | the target system, be it local or remote. This replaces the prefix | |
2919 | "remote:". The default sysroot has been changed from "" to | |
2920 | "target:". "remote:" is automatically converted to "target:" for | |
2921 | backward compatibility. | |
2922 | ||
a9a5a3d1 GB |
2923 | * The system root specified by "set sysroot" will be prepended to the |
2924 | filename of the main executable (if reported to GDB as absolute by | |
2925 | the operating system) when starting processes remotely, and when | |
2926 | attaching to already-running local or remote processes. | |
2927 | ||
1b6e6f5c GB |
2928 | * GDB now supports automatic location and retrieval of executable |
2929 | files from remote targets. Remote debugging can now be initiated | |
2930 | using only a "target remote" or "target extended-remote" command | |
2931 | (no "set sysroot" or "file" commands are required). See "New remote | |
2932 | packets" below. | |
2933 | ||
cf75d6c3 AB |
2934 | * The "dump" command now supports verilog hex format. |
2935 | ||
417c80f9 AA |
2936 | * GDB now supports the vector ABI on S/390 GNU/Linux targets. |
2937 | ||
51aad7cc GB |
2938 | * On GNU/Linux, GDB and gdbserver are now able to access executable |
2939 | and shared library files without a "set sysroot" command when | |
2940 | attaching to processes running in different mount namespaces from | |
2941 | the debugger. This makes it possible to attach to processes in | |
2942 | containers as simply as "gdb -p PID" or "gdbserver --attach PID". | |
2943 | See "New remote packets" below. | |
2944 | ||
51f0e40d AB |
2945 | * The "tui reg" command now provides completion for all of the |
2946 | available register groups, including target specific groups. | |
2947 | ||
b58c513b PP |
2948 | * The HISTSIZE environment variable is no longer read when determining |
2949 | the size of GDB's command history. GDB now instead reads the dedicated | |
bc460514 PP |
2950 | GDBHISTSIZE environment variable. Setting GDBHISTSIZE to "-1" or to "" now |
2951 | disables truncation of command history. Non-numeric values of GDBHISTSIZE | |
2952 | are ignored. | |
b58c513b | 2953 | |
37442ce1 DE |
2954 | * Guile Scripting |
2955 | ||
2956 | ** Memory ports can now be unbuffered. | |
2957 | ||
3a8b707a DE |
2958 | * Python Scripting |
2959 | ||
2960 | ** gdb.Objfile objects have a new attribute "username", | |
2961 | which is the name of the objfile as specified by the user, | |
2962 | without, for example, resolving symlinks. | |
d11916aa | 2963 | ** You can now write frame unwinders in Python. |
59fb7612 SS |
2964 | ** gdb.Type objects have a new method "optimized_out", |
2965 | returning optimized out gdb.Value instance of this type. | |
4c082a81 SC |
2966 | ** gdb.Value objects have new methods "reference_value" and |
2967 | "const_value" which return a reference to the value and a | |
2968 | "const" version of the value respectively. | |
3a8b707a | 2969 | |
f57d2163 DE |
2970 | * New commands |
2971 | ||
2972 | maint print symbol-cache | |
2973 | Print the contents of the symbol cache. | |
2974 | ||
2975 | maint print symbol-cache-statistics | |
2976 | Print statistics of symbol cache usage. | |
2977 | ||
2978 | maint flush-symbol-cache | |
2979 | Flush the contents of the symbol cache. | |
2980 | ||
f4abbc16 MM |
2981 | record btrace bts |
2982 | record bts | |
2983 | Start branch trace recording using Branch Trace Store (BTS) format. | |
2984 | ||
36de76f9 JK |
2985 | compile print |
2986 | Evaluate expression by using the compiler and print result. | |
2987 | ||
a4ea0946 AB |
2988 | tui enable |
2989 | tui disable | |
2990 | Explicit commands for enabling and disabling tui mode. | |
2991 | ||
29c1c244 WT |
2992 | show mpx bound |
2993 | set mpx bound on i386 and amd64 | |
bc504a31 | 2994 | Support for bound table investigation on Intel MPX enabled applications. |
29c1c244 | 2995 | |
b20a6524 MM |
2996 | record btrace pt |
2997 | record pt | |
bc504a31 | 2998 | Start branch trace recording using Intel Processor Trace format. |
b20a6524 | 2999 | |
b0627500 MM |
3000 | maint info btrace |
3001 | Print information about branch tracing internals. | |
3002 | ||
3003 | maint btrace packet-history | |
3004 | Print the raw branch tracing data. | |
3005 | ||
3006 | maint btrace clear-packet-history | |
3007 | Discard the stored raw branch tracing data. | |
3008 | ||
3009 | maint btrace clear | |
3010 | Discard all branch tracing data. It will be fetched and processed | |
3011 | anew by the next "record" command. | |
3012 | ||
253828f1 JK |
3013 | * New options |
3014 | ||
b4f54984 DE |
3015 | set debug dwarf-die |
3016 | Renamed from "set debug dwarf2-die". | |
3017 | show debug dwarf-die | |
3018 | Renamed from "show debug dwarf2-die". | |
3019 | ||
3020 | set debug dwarf-read | |
3021 | Renamed from "set debug dwarf2-read". | |
3022 | show debug dwarf-read | |
3023 | Renamed from "show debug dwarf2-read". | |
3024 | ||
3025 | maint set dwarf always-disassemble | |
3026 | Renamed from "maint set dwarf2 always-disassemble". | |
3027 | maint show dwarf always-disassemble | |
3028 | Renamed from "maint show dwarf2 always-disassemble". | |
3029 | ||
3030 | maint set dwarf max-cache-age | |
3031 | Renamed from "maint set dwarf2 max-cache-age". | |
3032 | maint show dwarf max-cache-age | |
3033 | Renamed from "maint show dwarf2 max-cache-age". | |
3034 | ||
27e0867f DE |
3035 | set debug dwarf-line |
3036 | show debug dwarf-line | |
3037 | Control display of debugging info regarding DWARF line processing. | |
3038 | ||
ef0b411a GB |
3039 | set max-completions |
3040 | show max-completions | |
3041 | Set the maximum number of candidates to be considered during | |
3042 | completion. The default value is 200. This limit allows GDB | |
3043 | to avoid generating large completion lists, the computation of | |
3044 | which can cause the debugger to become temporarily unresponsive. | |
3045 | ||
fc637f04 PP |
3046 | set history remove-duplicates |
3047 | show history remove-duplicates | |
3048 | Control the removal of duplicate history entries. | |
3049 | ||
f57d2163 DE |
3050 | maint set symbol-cache-size |
3051 | maint show symbol-cache-size | |
3052 | Control the size of the symbol cache. | |
3053 | ||
d33501a5 MM |
3054 | set|show record btrace bts buffer-size |
3055 | Set and show the size of the ring buffer used for branch tracing in | |
3056 | BTS format. | |
3057 | The obtained size may differ from the requested size. Use "info | |
3058 | record" to see the obtained buffer size. | |
3059 | ||
7a6a1731 GB |
3060 | set debug linux-namespaces |
3061 | show debug linux-namespaces | |
3062 | Control display of debugging info regarding Linux namespaces. | |
3063 | ||
b20a6524 MM |
3064 | set|show record btrace pt buffer-size |
3065 | Set and show the size of the ring buffer used for branch tracing in | |
bc504a31 | 3066 | Intel Processor Trace format. |
b20a6524 MM |
3067 | The obtained size may differ from the requested size. Use "info |
3068 | record" to see the obtained buffer size. | |
3069 | ||
b0627500 MM |
3070 | maint set|show btrace pt skip-pad |
3071 | Set and show whether PAD packets are skipped when computing the | |
3072 | packet history. | |
3073 | ||
253828f1 JK |
3074 | * The command 'thread apply all' can now support new option '-ascending' |
3075 | to call its specified command for all threads in ascending order. | |
3076 | ||
9f050062 DE |
3077 | * Python/Guile scripting |
3078 | ||
3079 | ** GDB now supports auto-loading of Python/Guile scripts contained in the | |
3080 | special section named `.debug_gdb_scripts'. | |
3081 | ||
f4abbc16 MM |
3082 | * New remote packets |
3083 | ||
3084 | qXfer:btrace-conf:read | |
3085 | Return the branch trace configuration for the current thread. | |
3086 | ||
d33501a5 MM |
3087 | Qbtrace-conf:bts:size |
3088 | Set the requested ring buffer size for branch tracing in BTS format. | |
3089 | ||
b20a6524 | 3090 | Qbtrace:pt |
82f06518 | 3091 | Enable Intel Processor Trace-based branch tracing for the current |
b20a6524 MM |
3092 | process. The remote stub reports support for this packet to GDB's |
3093 | qSupported query. | |
3094 | ||
3095 | Qbtrace-conf:pt:size | |
bc504a31 | 3096 | Set the requested ring buffer size for branch tracing in Intel Processor |
b20a6524 MM |
3097 | Trace format. |
3098 | ||
f7e6eed5 PA |
3099 | swbreak stop reason |
3100 | Indicates a memory breakpoint instruction was executed, irrespective | |
3101 | of whether it was GDB that planted the breakpoint or the breakpoint | |
3102 | is hardcoded in the program. This is required for correct non-stop | |
3103 | mode operation. | |
3104 | ||
3105 | hwbreak stop reason | |
3106 | Indicates the target stopped for a hardware breakpoint. This is | |
3107 | required for correct non-stop mode operation. | |
3108 | ||
0a93529c GB |
3109 | vFile:fstat: |
3110 | Return information about files on the remote system. | |
3111 | ||
c78fa86a GB |
3112 | qXfer:exec-file:read |
3113 | Return the full absolute name of the file that was executed to | |
3114 | create a process running on the remote system. | |
3115 | ||
15a201c8 GB |
3116 | vFile:setfs: |
3117 | Select the filesystem on which vFile: operations with filename | |
3118 | arguments will operate. This is required for GDB to be able to | |
3119 | access files on remote targets where the remote stub does not | |
3120 | share a common filesystem with the inferior(s). | |
3121 | ||
0d71eef5 DB |
3122 | fork stop reason |
3123 | Indicates that a fork system call was executed. | |
3124 | ||
3125 | vfork stop reason | |
3126 | Indicates that a vfork system call was executed. | |
3127 | ||
3128 | vforkdone stop reason | |
3129 | Indicates that a vfork child of the specified process has executed | |
3130 | an exec or exit, allowing the vfork parent to resume execution. | |
3131 | ||
3132 | fork-events and vfork-events features in qSupported | |
3133 | The qSupported packet allows GDB to request support for fork and | |
3134 | vfork events using new 'gdbfeatures' fork-events and vfork-events, | |
3135 | and the qSupported response can contain the corresponding | |
3136 | 'stubfeatures'. Set and show commands can be used to display | |
3137 | whether these features are enabled. | |
3138 | ||
3139 | * Extended-remote fork events | |
3140 | ||
3141 | ** GDB now has support for fork events on extended-remote Linux | |
3142 | targets. For targets with Linux kernels 2.5.60 and later, this | |
3143 | enables follow-fork-mode and detach-on-fork for both fork and | |
3144 | vfork, as well as fork and vfork catchpoints. | |
3145 | ||
d33501a5 MM |
3146 | * The info record command now shows the recording format and the |
3147 | branch tracing configuration for the current thread when using | |
3148 | the btrace record target. | |
3149 | For the BTS format, it shows the ring buffer size. | |
3150 | ||
b05e3b0d JM |
3151 | * GDB now has support for DTrace USDT (Userland Static Defined |
3152 | Tracing) probes. The supported targets are x86_64-*-linux-gnu. | |
3153 | ||
550bdf96 AA |
3154 | * GDB now supports access to vector registers on S/390 GNU/Linux |
3155 | targets. | |
3156 | ||
4f45d445 JK |
3157 | * Removed command line options |
3158 | ||
3159 | -xdb HP-UX XDB compatibility mode. | |
3160 | ||
0800b440 JK |
3161 | * Removed targets and native configurations |
3162 | ||
3163 | HP/PA running HP-UX hppa*-*-hpux* | |
3164 | Itanium running HP-UX ia64-*-hpux* | |
3165 | ||
58bfce93 MM |
3166 | * New configure options |
3167 | ||
3168 | --with-intel-pt | |
3169 | This configure option allows the user to build GDB with support for | |
bc504a31 | 3170 | Intel Processor Trace (default: auto). This requires libipt. |
58bfce93 MM |
3171 | |
3172 | --with-libipt-prefix=PATH | |
3173 | Specify the path to the version of libipt that GDB should use. | |
3174 | $PATH/include should contain the intel-pt.h header and | |
3175 | $PATH/lib should contain the libipt.so library. | |
3176 | ||
f5f85ab9 JB |
3177 | *** Changes in GDB 7.9.1 |
3178 | ||
3179 | * Python Scripting | |
3180 | ||
3181 | ** Xmethods can now specify a result type. | |
3182 | ||
3b2f13ff | 3183 | *** Changes in GDB 7.9 |
919b9a93 | 3184 | |
05db5edd ST |
3185 | * GDB now supports hardware watchpoints on x86 GNU Hurd. |
3186 | ||
5f3b99cf | 3187 | * Python Scripting |
2b4fd423 DE |
3188 | |
3189 | ** You can now access frame registers from Python scripts. | |
3190 | ** New attribute 'producer' for gdb.Symtab objects. | |
d096d8c1 DE |
3191 | ** gdb.Objfile objects have a new attribute "progspace", |
3192 | which is the gdb.Progspace object of the containing program space. | |
a0be3e44 | 3193 | ** gdb.Objfile objects have a new attribute "owner". |
7c50a931 DE |
3194 | ** gdb.Objfile objects have a new attribute "build_id", |
3195 | which is the build ID generated when the file was built. | |
86e4ed39 | 3196 | ** gdb.Objfile objects have a new method "add_separate_debug_file". |
4ffbba72 DE |
3197 | ** A new event "gdb.clear_objfiles" has been added, triggered when |
3198 | selecting a new file to debug. | |
02be9a71 | 3199 | ** You can now add attributes to gdb.Objfile and gdb.Progspace objects. |
6dddd6a5 | 3200 | ** New function gdb.lookup_objfile. |
5f3b99cf | 3201 | |
8fda9068 YQ |
3202 | New events which are triggered when GDB modifies the state of the |
3203 | inferior. | |
3204 | ||
3205 | ** gdb.events.inferior_call_pre: Function call is about to be made. | |
3206 | ** gdb.events.inferior_call_post: Function call has just been made. | |
3207 | ** gdb.events.memory_changed: A memory location has been altered. | |
3208 | ** gdb.events.register_changed: A register has been altered. | |
3209 | ||
faa42425 DE |
3210 | * New Python-based convenience functions: |
3211 | ||
3212 | ** $_caller_is(name [, number_of_frames]) | |
3213 | ** $_caller_matches(regexp [, number_of_frames]) | |
3214 | ** $_any_caller_is(name [, number_of_frames]) | |
3215 | ** $_any_caller_matches(regexp [, number_of_frames]) | |
3216 | ||
bb2ec1b3 TT |
3217 | * GDB now supports the compilation and injection of source code into |
3218 | the inferior. GDB will use GCC 5.0 or higher built with libcc1.so | |
3219 | to compile the source code to object code, and if successful, inject | |
3220 | and execute that code within the current context of the inferior. | |
3221 | Currently the C language is supported. The commands used to | |
3222 | interface with this new feature are: | |
3223 | ||
3224 | compile code [-raw|-r] [--] [source code] | |
3225 | compile file [-raw|-r] filename | |
3226 | ||
81219e53 DE |
3227 | * New commands |
3228 | ||
439250fb DE |
3229 | demangle [-l language] [--] name |
3230 | Demangle "name" in the specified language, or the current language | |
3231 | if elided. This command is renamed from the "maint demangle" command. | |
3232 | The latter is kept as a no-op to avoid "maint demangle" being interpreted | |
3233 | as "maint demangler-warning". | |
3234 | ||
81219e53 DE |
3235 | queue-signal signal-name-or-number |
3236 | Queue a signal to be delivered to the thread when it is resumed. | |
3237 | ||
f10c5b19 JK |
3238 | add-auto-load-scripts-directory directory |
3239 | Add entries to the list of directories from which to load auto-loaded | |
3240 | scripts. | |
3241 | ||
f5b95c01 AA |
3242 | maint print user-registers |
3243 | List all currently available "user" registers. | |
3244 | ||
bb2ec1b3 TT |
3245 | compile code [-r|-raw] [--] [source code] |
3246 | Compile, inject, and execute in the inferior the executable object | |
3247 | code produced by compiling the provided source code. | |
3248 | ||
3249 | compile file [-r|-raw] filename | |
3250 | Compile and inject into the inferior the executable object code | |
3251 | produced by compiling the source code stored in the filename | |
3252 | provided. | |
3253 | ||
70509625 PA |
3254 | * On resume, GDB now always passes the signal the program had stopped |
3255 | for to the thread the signal was sent to, even if the user changed | |
3256 | threads before resuming. Previously GDB would often (but not | |
3257 | always) deliver the signal to the thread that happens to be current | |
3258 | at resume time. | |
3259 | ||
3260 | * Conversely, the "signal" command now consistently delivers the | |
3261 | requested signal to the current thread. GDB now asks for | |
3262 | confirmation if the program had stopped for a signal and the user | |
3263 | switched threads meanwhile. | |
3264 | ||
a25a5a45 PA |
3265 | * "breakpoint always-inserted" modes "off" and "auto" merged. |
3266 | ||
3267 | Now, when 'breakpoint always-inserted mode' is set to "off", GDB | |
3268 | won't remove breakpoints from the target until all threads stop, | |
3269 | even in non-stop mode. The "auto" mode has been removed, and "off" | |
3270 | is now the default mode. | |
3271 | ||
cc485e62 DE |
3272 | * New options |
3273 | ||
3274 | set debug symbol-lookup | |
3275 | show debug symbol-lookup | |
3276 | Control display of debugging info regarding symbol lookup. | |
3277 | ||
2ddf4301 SM |
3278 | * MI changes |
3279 | ||
3280 | ** The -list-thread-groups command outputs an exit-code field for | |
3281 | inferiors that have exited. | |
3282 | ||
bb7e3f4d YQ |
3283 | * New targets |
3284 | ||
3285 | MIPS SDE mips*-sde*-elf* | |
3286 | ||
3831839c PA |
3287 | * Removed targets |
3288 | ||
3289 | Support for these obsolete configurations has been removed. | |
3290 | ||
5ab806de PA |
3291 | Alpha running OSF/1 (or Tru64) alpha*-*-osf* |
3292 | SGI Irix-5.x mips-*-irix5* | |
3293 | SGI Irix-6.x mips-*-irix6* | |
09dd9a69 PA |
3294 | VAX running (4.2 - 4.3 Reno) BSD vax-*-bsd* |
3295 | VAX running Ultrix vax-*-ultrix* | |
3831839c | 3296 | |
6bf6fd09 JB |
3297 | * The "dll-symbols" command, and its two aliases ("add-shared-symbol-files" |
3298 | and "assf"), have been removed. Use the "sharedlibrary" command, or | |
3299 | its alias "share", instead. | |
3300 | ||
919b9a93 | 3301 | *** Changes in GDB 7.8 |
e9475ead | 3302 | |
8d551b02 DE |
3303 | * New command line options |
3304 | ||
3305 | -D data-directory | |
3306 | This is an alias for the --data-directory option. | |
3307 | ||
e9475ead SA |
3308 | * GDB supports printing and modifying of variable length automatic arrays |
3309 | as specified in ISO C99. | |
3310 | ||
a75fef0e NC |
3311 | * The ARM simulator now supports instruction level tracing |
3312 | with or without disassembly. | |
b7bba001 | 3313 | |
ed3ef339 DE |
3314 | * Guile scripting |
3315 | ||
3316 | GDB now has support for scripting using Guile. Whether this is | |
3317 | available is determined at configure time. | |
3318 | Guile version 2.0 or greater is required. | |
3319 | Guile version 2.0.9 is well tested, earlier 2.0 versions are not. | |
3320 | ||
3321 | * New commands (for set/show, see "New options" below) | |
3322 | ||
3323 | guile [code] | |
3324 | gu [code] | |
3325 | Invoke CODE by passing it to the Guile interpreter. | |
3326 | ||
3327 | guile-repl | |
3328 | gr | |
3329 | Start a Guile interactive prompt (or "repl" for "read-eval-print loop"). | |
3330 | ||
3331 | info auto-load guile-scripts [regexp] | |
3332 | Print the list of automatically loaded Guile scripts. | |
3333 | ||
3334 | * The source command is now capable of sourcing Guile scripts. | |
3335 | This feature is dependent on the debugger being built with Guile support. | |
3336 | ||
c6044dd1 JB |
3337 | * New options |
3338 | ||
770e7fc7 DE |
3339 | set print symbol-loading (off|brief|full) |
3340 | show print symbol-loading | |
3341 | Control whether to print informational messages when loading symbol | |
3342 | information for a file. The default is "full", but when debugging | |
3343 | programs with large numbers of shared libraries the amount of output | |
3344 | becomes less useful. | |
3345 | ||
ed3ef339 DE |
3346 | set guile print-stack (none|message|full) |
3347 | show guile print-stack | |
3348 | Show a stack trace when an error is encountered in a Guile script. | |
3349 | ||
3350 | set auto-load guile-scripts (on|off) | |
3351 | show auto-load guile-scripts | |
3352 | Control auto-loading of Guile script files. | |
3353 | ||
c6044dd1 JB |
3354 | maint ada set ignore-descriptive-types (on|off) |
3355 | maint ada show ignore-descriptive-types | |
3356 | Control whether the debugger should ignore descriptive types in Ada | |
3357 | programs. The default is not to ignore the descriptive types. See | |
3358 | the user manual for more details on descriptive types and the intended | |
3359 | usage of this option. | |
3360 | ||
6a3cb8e8 PA |
3361 | set auto-connect-native-target |
3362 | ||
3363 | Control whether GDB is allowed to automatically connect to the | |
3364 | native target for the run, attach, etc. commands when not connected | |
3365 | to any target yet. See also "target native" below. | |
3366 | ||
67b5c0c1 MM |
3367 | set record btrace replay-memory-access (read-only|read-write) |
3368 | show record btrace replay-memory-access | |
3369 | Control what memory accesses are allowed during replay. | |
3370 | ||
329ea579 PA |
3371 | maint set target-async (on|off) |
3372 | maint show target-async | |
5784b3ca JK |
3373 | This controls whether GDB targets operate in synchronous or |
3374 | asynchronous mode. Normally the default is asynchronous, if it is | |
329ea579 | 3375 | available; but this can be changed to more easily debug problems |
5784b3ca | 3376 | occurring only in synchronous mode. |
329ea579 PA |
3377 | |
3378 | set mi-async (on|off) | |
3379 | show mi-async | |
3380 | Control whether MI asynchronous mode is preferred. This supersedes | |
3381 | "set target-async" of previous GDB versions. | |
3382 | ||
3383 | * "set target-async" is deprecated as a CLI option and is now an alias | |
3384 | for "set mi-async" (only puts MI into async mode). | |
3385 | ||
3386 | * Background execution commands (e.g., "c&", "s&", etc.) are now | |
3387 | possible ``out of the box'' if the target supports them. Previously | |
3388 | the user would need to explicitly enable the possibility with the | |
3389 | "set target-async on" command. | |
3390 | ||
87ce2a04 DE |
3391 | * New features in the GDB remote stub, GDBserver |
3392 | ||
3393 | ** New option --debug-format=option1[,option2,...] allows one to add | |
3394 | additional text to each output. At present only timestamps | |
3395 | are supported: --debug-format=timestamps. | |
3396 | Timestamps can also be turned on with the | |
3397 | "monitor set debug-format timestamps" command from GDB. | |
3398 | ||
5de9129b MM |
3399 | * The 'record instruction-history' command now starts counting instructions |
3400 | at one. This also affects the instruction ranges reported by the | |
3401 | 'record function-call-history' command when given the /i modifier. | |
3402 | ||
8710b709 MM |
3403 | * The command 'record function-call-history' supports a new modifier '/c' to |
3404 | indent the function names based on their call stack depth. | |
3405 | The fields for the '/i' and '/l' modifier have been reordered. | |
3406 | The source line range is now prefixed with 'at'. | |
3407 | The instruction range is now prefixed with 'inst'. | |
3408 | Both ranges are now printed as '<from>, <to>' to allow copy&paste to the | |
3409 | "record instruction-history" and "list" commands. | |
3410 | ||
0688d04e MM |
3411 | * The ranges given as arguments to the 'record function-call-history' and |
3412 | 'record instruction-history' commands are now inclusive. | |
3413 | ||
066ce621 | 3414 | * The btrace record target now supports the 'record goto' command. |
0b722aec MM |
3415 | For locations inside the execution trace, the back trace is computed |
3416 | based on the information stored in the execution trace. | |
066ce621 | 3417 | |
52834460 MM |
3418 | * The btrace record target supports limited reverse execution and replay. |
3419 | The target does not record data and therefore does not allow reading | |
3420 | memory or registers. | |
3421 | ||
237b092b AA |
3422 | * The "catch syscall" command now works on s390*-linux* targets. |
3423 | ||
936d2992 PA |
3424 | * The "compare-sections" command is no longer specific to target |
3425 | remote. It now works with all targets. | |
3426 | ||
930ee1b1 PA |
3427 | * All native targets are now consistently called "native". |
3428 | Consequently, the "target child", "target GNU", "target djgpp", | |
3429 | "target procfs" (Solaris/Irix/OSF/AIX) and "target darwin-child" | |
3430 | commands have been replaced with "target native". The QNX/NTO port | |
3431 | leaves the "procfs" target in place and adds a "native" target for | |
3432 | consistency with other ports. The impact on users should be minimal | |
3433 | as these commands previously either throwed an error, or were | |
3434 | no-ops. The target's name is visible in the output of the following | |
3435 | commands: "help target", "info target", "info files", "maint print | |
3436 | target-stack". | |
3437 | ||
6a3cb8e8 PA |
3438 | * The "target native" command now connects to the native target. This |
3439 | can be used to launch native programs even when "set | |
3440 | auto-connect-native-target" is set to off. | |
3441 | ||
bc504a31 | 3442 | * GDB now supports access to Intel MPX registers on GNU/Linux. |
dc304a94 | 3443 | |
bc504a31 PA |
3444 | * Support for Intel AVX-512 registers on GNU/Linux. |
3445 | Support displaying and modifying Intel AVX-512 registers | |
dc304a94 JK |
3446 | $zmm0 - $zmm31 and $k0 - $k7 on GNU/Linux. |
3447 | ||
969c39fb MM |
3448 | * New remote packets |
3449 | ||
3450 | qXfer:btrace:read's annex | |
3451 | The qXfer:btrace:read packet supports a new annex 'delta' to read | |
3452 | branch trace incrementally. | |
3453 | ||
f7bd0f78 SC |
3454 | * Python Scripting |
3455 | ||
3456 | ** Valid Python operations on gdb.Value objects representing | |
3457 | structs/classes invoke the corresponding overloaded operators if | |
3458 | available. | |
0c6e92a5 SC |
3459 | ** New `Xmethods' feature in the Python API. Xmethods are |
3460 | additional methods or replacements for existing methods of a C++ | |
3461 | class. This feature is useful for those cases where a method | |
3462 | defined in C++ source code could be inlined or optimized out by | |
3463 | the compiler, making it unavailable to GDB. | |
f7bd0f78 | 3464 | |
36c24d95 UW |
3465 | * New targets |
3466 | PowerPC64 GNU/Linux little-endian powerpc64le-*-linux* | |
3467 | ||
95060284 JB |
3468 | * The "dll-symbols" command, and its two aliases ("add-shared-symbol-files" |
3469 | and "assf"), have been deprecated. Use the "sharedlibrary" command, or | |
3470 | its alias "share", instead. | |
3471 | ||
7f3c0343 JB |
3472 | * The commands "set remotebaud" and "show remotebaud" are no longer |
3473 | supported. Use "set serial baud" and "show serial baud" (respectively) | |
3474 | instead. | |
3475 | ||
329ea579 PA |
3476 | * MI changes |
3477 | ||
3478 | ** A new option "-gdb-set mi-async" replaces "-gdb-set | |
3479 | target-async". The latter is left as a deprecated alias of the | |
3480 | former for backward compatibility. If the target supports it, | |
3481 | CLI background execution commands are now always possible by | |
3482 | default, independently of whether the frontend stated a | |
3483 | preference for asynchronous execution with "-gdb-set mi-async". | |
3484 | Previously "-gdb-set target-async off" affected both MI execution | |
3485 | commands and CLI execution commands. | |
3486 | ||
b7bba001 | 3487 | *** Changes in GDB 7.7 |
2d450646 | 3488 | |
33a97bbe OJ |
3489 | * Improved support for process record-replay and reverse debugging on |
3490 | arm*-linux* targets. Support for thumb32 and syscall instruction | |
3491 | recording has been added. | |
3492 | ||
08248ca9 SDJ |
3493 | * GDB now supports SystemTap SDT probes on AArch64 GNU/Linux. |
3494 | ||
73869dc2 DE |
3495 | * GDB now supports Fission DWP file format version 2. |
3496 | http://gcc.gnu.org/wiki/DebugFission | |
3497 | ||
a280dbd1 SDJ |
3498 | * New convenience function "$_isvoid", to check whether an expression |
3499 | is void. A void expression is an expression where the type of the | |
3500 | result is "void". For example, some convenience variables may be | |
3501 | "void" when evaluated (e.g., "$_exitcode" before the execution of | |
3502 | the program being debugged; or an undefined convenience variable). | |
3503 | Another example, when calling a function whose return type is | |
3504 | "void". | |
3505 | ||
52e260a3 DE |
3506 | * The "maintenance print objfiles" command now takes an optional regexp. |
3507 | ||
9f948660 SDJ |
3508 | * The "catch syscall" command now works on arm*-linux* targets. |
3509 | ||
901461f8 PA |
3510 | * GDB now consistently shows "<not saved>" when printing values of |
3511 | registers the debug info indicates have not been saved in the frame | |
3512 | and there's nowhere to retrieve them from | |
3513 | (callee-saved/call-clobbered registers): | |
3514 | ||
3515 | (gdb) p $rax | |
3516 | $1 = <not saved> | |
3517 | ||
3518 | (gdb) info registers rax | |
3519 | rax <not saved> | |
3520 | ||
3521 | Before, the former would print "<optimized out>", and the latter | |
3522 | "*value not available*". | |
3523 | ||
caf26be9 SB |
3524 | * New script contrib/gdb-add-index.sh for adding .gdb_index sections |
3525 | to binaries. | |
3526 | ||
1e611234 PM |
3527 | * Python scripting |
3528 | ||
3529 | ** Frame filters and frame decorators have been added. | |
f76c27b5 | 3530 | ** Temporary breakpoints are now supported. |
bc79de95 | 3531 | ** Line tables representation has been added. |
a16b0e22 SC |
3532 | ** New attribute 'parent_type' for gdb.Field objects. |
3533 | ** gdb.Field objects can be used as subscripts on gdb.Value objects. | |
c0d48811 | 3534 | ** New attribute 'name' for gdb.Type objects. |
1e611234 | 3535 | |
a1217d97 SL |
3536 | * New targets |
3537 | ||
3538 | Nios II ELF nios2*-*-elf | |
3539 | Nios II GNU/Linux nios2*-*-linux | |
42059f0e | 3540 | Texas Instruments MSP430 msp430*-*-elf |
a1217d97 | 3541 | |
2659903b JK |
3542 | * Removed native configurations |
3543 | ||
3544 | Support for these a.out NetBSD and OpenBSD obsolete configurations has | |
3545 | been removed. ELF variants of these configurations are kept supported. | |
3546 | ||
3547 | arm*-*-netbsd* but arm*-*-netbsdelf* is kept supported. | |
3548 | i[34567]86-*-netbsd* but i[34567]86-*-netbsdelf* is kept supported. | |
3549 | i[34567]86-*-openbsd[0-2].* but i[34567]86-*-openbsd* is kept supported. | |
3550 | i[34567]86-*-openbsd3.[0-3] | |
3551 | m68*-*-netbsd* but m68*-*-netbsdelf* is kept supported. | |
3552 | sparc-*-netbsd* but sparc-*-netbsdelf* is kept supported. | |
3553 | vax-*-netbsd* but vax-*-netbsdelf* is kept supported. | |
3554 | ||
bd712aed | 3555 | * New commands: |
b340913d TT |
3556 | catch rethrow |
3557 | Like "catch throw", but catches a re-thrown exception. | |
7d0c9981 DE |
3558 | maint check-psymtabs |
3559 | Renamed from old "maint check-symtabs". | |
3560 | maint check-symtabs | |
3561 | Perform consistency checks on symtabs. | |
3562 | maint expand-symtabs | |
3563 | Expand symtabs matching an optional regexp. | |
b340913d | 3564 | |
dccca75d EZ |
3565 | show configuration |
3566 | Display the details of GDB configure-time options. | |
3567 | ||
bd712aed DE |
3568 | maint set|show per-command |
3569 | maint set|show per-command space | |
3570 | maint set|show per-command time | |
3571 | maint set|show per-command symtab | |
3572 | Enable display of per-command gdb resource usage. | |
3573 | ||
98297bf6 NB |
3574 | remove-symbol-file FILENAME |
3575 | remove-symbol-file -a ADDRESS | |
3576 | Remove a symbol file added via add-symbol-file. The file to remove | |
3577 | can be identified by its filename or by an address that lies within | |
3578 | the boundaries of this symbol file in memory. | |
3579 | ||
58d06528 JB |
3580 | info exceptions |
3581 | info exceptions REGEXP | |
3582 | Display the list of Ada exceptions defined in the program being | |
3583 | debugged. If provided, only the exceptions whose names match REGEXP | |
3584 | are listed. | |
3585 | ||
bd3eecc3 PA |
3586 | * New options |
3587 | ||
8fb8eb5c DE |
3588 | set debug symfile off|on |
3589 | show debug symfile | |
3590 | Control display of debugging info regarding reading symbol files and | |
3591 | symbol tables within those files | |
3592 | ||
e7045703 DE |
3593 | set print raw frame-arguments |
3594 | show print raw frame-arguments | |
3595 | Set/show whether to print frame arguments in raw mode, | |
3596 | disregarding any defined pretty-printers. | |
3597 | ||
bd3eecc3 PA |
3598 | set remote trace-status-packet |
3599 | show remote trace-status-packet | |
3600 | Set/show the use of remote protocol qTStatus packet. | |
3601 | ||
a1217d97 SL |
3602 | set debug nios2 |
3603 | show debug nios2 | |
3604 | Control display of debugging messages related to Nios II targets. | |
3605 | ||
c1e36e3e PA |
3606 | set range-stepping |
3607 | show range-stepping | |
3608 | Control whether target-assisted range stepping is enabled. | |
3609 | ||
98882a26 PA |
3610 | set startup-with-shell |
3611 | show startup-with-shell | |
3612 | Specifies whether Unix child processes are started via a shell or | |
3613 | directly. | |
3614 | ||
29453a14 YQ |
3615 | set code-cache |
3616 | show code-cache | |
3617 | Use the target memory cache for accesses to the code segment. This | |
3618 | improves performance of remote debugging (particularly disassembly). | |
3619 | ||
1c2e4450 PA |
3620 | * You can now use a literal value 'unlimited' for options that |
3621 | interpret 0 or -1 as meaning "unlimited". E.g., "set | |
3622 | trace-buffer-size unlimited" is now an alias for "set | |
3623 | trace-buffer-size -1" and "set height unlimited" is now an alias for | |
3624 | "set height 0". | |
3625 | ||
db0fec5c DE |
3626 | * The "set debug symtab-create" debugging option of GDB has been changed to |
3627 | accept a verbosity level. 0 means "off", 1 provides basic debugging | |
3628 | output, and values of 2 or greater provides more verbose output. | |
3629 | ||
dccca75d EZ |
3630 | * New command-line options |
3631 | --configuration | |
3632 | Display the details of GDB configure-time options. | |
3633 | ||
d0353e76 YQ |
3634 | * The command 'tsave' can now support new option '-ctf' to save trace |
3635 | buffer in Common Trace Format. | |
3636 | ||
b292c783 JK |
3637 | * Newly installed $prefix/bin/gcore acts as a shell interface for the |
3638 | GDB command gcore. | |
3639 | ||
09f2921c | 3640 | * GDB now implements the C++ 'typeid' operator. |
6e72ca20 | 3641 | |
b340913d TT |
3642 | * The new convenience variable $_exception holds the exception being |
3643 | thrown or caught at an exception-related catchpoint. | |
3644 | ||
3645 | * The exception-related catchpoints, like "catch throw", now accept a | |
3646 | regular expression which can be used to filter exceptions by type. | |
3647 | ||
0c557179 SDJ |
3648 | * The new convenience variable $_exitsignal is automatically set to |
3649 | the terminating signal number when the program being debugged dies | |
3650 | due to an uncaught signal. | |
3651 | ||
d0353e76 YQ |
3652 | * MI changes |
3653 | ||
403cb6b1 | 3654 | ** All MI commands now accept an optional "--language" option. |
4e35e808 JB |
3655 | Support for this feature can be verified by using the "-list-features" |
3656 | command, which should contain "language-option". | |
403cb6b1 | 3657 | |
6b7cbff1 JB |
3658 | ** The new command -info-gdb-mi-command allows the user to determine |
3659 | whether a GDB/MI command is supported or not. | |
3660 | ||
2ea126fa JB |
3661 | ** The "^error" result record returned when trying to execute an undefined |
3662 | GDB/MI command now provides a variable named "code" whose content is the | |
3663 | "undefined-command" error code. Support for this feature can be verified | |
3664 | by using the "-list-features" command, which should contain | |
3665 | "undefined-command-error-code". | |
3666 | ||
d0353e76 YQ |
3667 | ** The -trace-save MI command can optionally save trace buffer in Common |
3668 | Trace Format now. | |
3669 | ||
c5867ab6 HZ |
3670 | ** The new command -dprintf-insert sets a dynamic printf breakpoint. |
3671 | ||
c898adb7 YQ |
3672 | ** The command -data-list-register-values now accepts an optional |
3673 | "--skip-unavailable" option. When used, only the available registers | |
3674 | are displayed. | |
3675 | ||
dc673c81 YQ |
3676 | ** The new command -trace-frame-collected dumps collected variables, |
3677 | computed expressions, tvars, memory and registers in a traceframe. | |
3678 | ||
6211c335 YQ |
3679 | ** The commands -stack-list-locals, -stack-list-arguments and |
3680 | -stack-list-variables now accept an option "--skip-unavailable". | |
3681 | When used, only the available locals or arguments are displayed. | |
3682 | ||
5713b9b5 JB |
3683 | ** The -exec-run command now accepts an optional "--start" option. |
3684 | When used, the command follows the same semantics as the "start" | |
3685 | command, stopping the program's execution at the start of its | |
72bfa06c JB |
3686 | main subprogram. Support for this feature can be verified using |
3687 | the "-list-features" command, which should contain | |
3688 | "exec-run-start-option". | |
5713b9b5 | 3689 | |
40555925 JB |
3690 | ** The new commands -catch-assert and -catch-exceptions insert |
3691 | catchpoints stopping the program when Ada exceptions are raised. | |
3692 | ||
58d06528 JB |
3693 | ** The new command -info-ada-exceptions provides the equivalent of |
3694 | the new "info exceptions" command. | |
3695 | ||
0201faac JB |
3696 | * New system-wide configuration scripts |
3697 | A GDB installation now provides scripts suitable for use as system-wide | |
3698 | configuration scripts for the following systems: | |
3699 | ** ElinOS | |
3700 | ** Wind River Linux | |
3701 | ||
c1e36e3e PA |
3702 | * GDB now supports target-assigned range stepping with remote targets. |
3703 | This improves the performance of stepping source lines by reducing | |
3704 | the number of control packets from/to GDB. See "New remote packets" | |
3705 | below. | |
3706 | ||
28a93511 YQ |
3707 | * GDB now understands the element 'tvar' in the XML traceframe info. |
3708 | It has the id of the collected trace state variables. | |
3709 | ||
4ac33720 UW |
3710 | * On S/390 targets that provide the transactional-execution feature, |
3711 | the program interruption transaction diagnostic block (TDB) is now | |
3712 | represented as a number of additional "registers" in GDB. | |
3713 | ||
c1e36e3e PA |
3714 | * New remote packets |
3715 | ||
3716 | vCont;r | |
3717 | ||
3718 | The vCont packet supports a new 'r' action, that tells the remote | |
3719 | stub to step through an address range itself, without GDB | |
3720 | involvemement at each single-step. | |
3721 | ||
7f91dbec GB |
3722 | qXfer:libraries-svr4:read's annex |
3723 | The previously unused annex of the qXfer:libraries-svr4:read packet | |
3724 | is now used to support passing an argument list. The remote stub | |
3725 | reports support for this argument list to GDB's qSupported query. | |
3726 | The defined arguments are "start" and "prev", used to reduce work | |
3727 | necessary for library list updating, resulting in significant | |
3728 | speedup. | |
3729 | ||
c2d6af84 PA |
3730 | * New features in the GDB remote stub, GDBserver |
3731 | ||
3732 | ** GDBserver now supports target-assisted range stepping. Currently | |
3733 | enabled on x86/x86_64 GNU/Linux targets. | |
3734 | ||
28a93511 YQ |
3735 | ** GDBserver now adds element 'tvar' in the XML in the reply to |
3736 | 'qXfer:traceframe-info:read'. It has the id of the collected | |
3737 | trace state variables. | |
3738 | ||
7a60ad40 YQ |
3739 | ** GDBserver now supports hardware watchpoints on the MIPS GNU/Linux |
3740 | target. | |
3741 | ||
6fbe845e AB |
3742 | * New 'z' formatter for printing and examining memory, this displays the |
3743 | value as hexadecimal zero padded on the left to the size of the type. | |
3744 | ||
9058cc3a TG |
3745 | * GDB can now use Windows x64 unwinding data. |
3746 | ||
0d12017b JB |
3747 | * The "set remotebaud" command has been replaced by "set serial baud". |
3748 | Similarly, "show remotebaud" has been replaced by "show serial baud". | |
3749 | The "set remotebaud" and "show remotebaud" commands are still available | |
3750 | to provide backward compatibility with older versions of GDB. | |
3751 | ||
2d450646 | 3752 | *** Changes in GDB 7.6 |
80c8d323 | 3753 | |
59ea5688 MM |
3754 | * Target record has been renamed to record-full. |
3755 | Record/replay is now enabled with the "record full" command. | |
3756 | This also affects settings that are associated with full record/replay | |
3757 | that have been moved from "set/show record" to "set/show record full": | |
3758 | ||
3759 | set|show record full insn-number-max | |
3760 | set|show record full stop-at-limit | |
3761 | set|show record full memory-query | |
3762 | ||
3763 | * A new record target "record-btrace" has been added. The new target | |
3764 | uses hardware support to record the control-flow of a process. It | |
3765 | does not support replaying the execution, but it implements the | |
3766 | below new commands for investigating the recorded execution log. | |
3767 | This new recording method can be enabled using: | |
3768 | ||
3769 | record btrace | |
3770 | ||
3771 | The "record-btrace" target is only available on Intel Atom processors | |
3772 | and requires a Linux kernel 2.6.32 or later. | |
3773 | ||
3774 | * Two new commands have been added for record/replay to give information | |
3775 | about the recorded execution without having to replay the execution. | |
3776 | The commands are only supported by "record btrace". | |
3777 | ||
3778 | record instruction-history prints the execution history at | |
3779 | instruction granularity | |
3780 | ||
3781 | record function-call-history prints the execution history at | |
3782 | function granularity | |
3783 | ||
543bf33d AT |
3784 | * New native configurations |
3785 | ||
51d66578 | 3786 | ARM AArch64 GNU/Linux aarch64*-*-linux-gnu |
543bf33d | 3787 | FreeBSD/powerpc powerpc*-*-freebsd |
4f4352f7 | 3788 | x86_64/Cygwin x86_64-*-cygwin* |
ea5f3910 | 3789 | Tilera TILE-Gx GNU/Linux tilegx*-*-linux-gnu |
543bf33d | 3790 | |
249729c4 JB |
3791 | * New targets |
3792 | ||
51d66578 MS |
3793 | ARM AArch64 aarch64*-*-elf |
3794 | ARM AArch64 GNU/Linux aarch64*-*-linux | |
249729c4 | 3795 | Lynx 178 PowerPC powerpc-*-lynx*178 |
3c095f49 | 3796 | x86_64/Cygwin x86_64-*-cygwin* |
ea5f3910 | 3797 | Tilera TILE-Gx GNU/Linux tilegx*-*-linux |
249729c4 | 3798 | |
e64e0392 DE |
3799 | * If the configured location of system.gdbinit file (as given by the |
3800 | --with-system-gdbinit option at configure time) is in the | |
3801 | data-directory (as specified by --with-gdb-datadir at configure | |
3802 | time) or in one of its subdirectories, then GDB will look for the | |
3803 | system-wide init file in the directory specified by the | |
3804 | --data-directory command-line option. | |
3805 | ||
07540c15 DE |
3806 | * New command line options: |
3807 | ||
3808 | -nh Disables auto-loading of ~/.gdbinit, but still executes all the | |
3809 | other initialization files, unlike -nx which disables all of them. | |
3810 | ||
e93a8774 TT |
3811 | * Removed command line options |
3812 | ||
3813 | -epoch This was used by the gdb mode in Epoch, an ancient fork of | |
3814 | Emacs. | |
3815 | ||
53342f27 TT |
3816 | * The 'ptype' and 'whatis' commands now accept an argument to control |
3817 | type formatting. | |
3818 | ||
451b7c33 TT |
3819 | * 'info proc' now works on some core files. |
3820 | ||
a72c3253 DE |
3821 | * Python scripting |
3822 | ||
3823 | ** Vectors can be created with gdb.Type.vector. | |
3824 | ||
d7de8e3c TT |
3825 | ** Python's atexit.register now works in GDB. |
3826 | ||
18a9fc12 TT |
3827 | ** Types can be pretty-printed via a Python API. |
3828 | ||
9a27f2c6 PK |
3829 | ** Python 3 is now supported (in addition to Python 2.4 or later) |
3830 | ||
bea883fd SCR |
3831 | ** New class gdb.Architecture exposes GDB's internal representation |
3832 | of architecture in the Python API. | |
3833 | ||
3834 | ** New method Frame.architecture returns the gdb.Architecture object | |
3835 | corresponding to the frame's architecture. | |
3836 | ||
a72c3253 DE |
3837 | * New Python-based convenience functions: |
3838 | ||
3839 | ** $_memeq(buf1, buf2, length) | |
3840 | ** $_streq(str1, str2) | |
3841 | ** $_strlen(str) | |
3842 | ** $_regex(str, regex) | |
3843 | ||
f3c8a52a JK |
3844 | * The 'cd' command now defaults to using '~' (the home directory) if not |
3845 | given an argument. | |
3846 | ||
1605ef26 TT |
3847 | * The C++ ABI now defaults to the GNU v3 ABI. This has been the |
3848 | default for GCC since November 2000. | |
3849 | ||
504b36fd YQ |
3850 | * The command 'forward-search' can now be abbreviated as 'fo'. |
3851 | ||
f2a8bc8a YQ |
3852 | * The command 'info tracepoints' can now display 'installed on target' |
3853 | or 'not installed on target' for each non-pending location of tracepoint. | |
3854 | ||
23a80689 JB |
3855 | * New configure options |
3856 | ||
3857 | --enable-libmcheck/--disable-libmcheck | |
3858 | By default, development versions are built with -lmcheck on hosts | |
3859 | that support it, in order to help track memory corruption issues. | |
3860 | Release versions, on the other hand, are built without -lmcheck | |
3861 | by default. The --enable-libmcheck/--disable-libmcheck configure | |
3862 | options allow the user to override that default. | |
393fd4c3 YQ |
3863 | --with-babeltrace/--with-babeltrace-include/--with-babeltrace-lib |
3864 | This configure option allows the user to build GDB with | |
3865 | libbabeltrace using which GDB can read Common Trace Format data. | |
23a80689 | 3866 | |
d6b28940 TT |
3867 | * New commands (for set/show, see "New options" below) |
3868 | ||
ab04a2af TT |
3869 | catch signal |
3870 | Catch signals. This is similar to "handle", but allows commands and | |
3871 | conditions to be attached. | |
3872 | ||
d6b28940 TT |
3873 | maint info bfds |
3874 | List the BFDs known to GDB. | |
3875 | ||
8315665e YPK |
3876 | python-interactive [command] |
3877 | pi [command] | |
3878 | Start a Python interactive prompt, or evaluate the optional command | |
3879 | and print the result of expressions. | |
3880 | ||
3881 | py [command] | |
3882 | "py" is a new alias for "python". | |
3883 | ||
18a9fc12 TT |
3884 | enable type-printer [name]... |
3885 | disable type-printer [name]... | |
3886 | Enable or disable type printers. | |
3887 | ||
aa9259cc TS |
3888 | * Removed commands |
3889 | ||
3890 | ** For the Renesas Super-H architecture, the "regs" command has been removed | |
3891 | (has been deprecated in GDB 7.5), and "info all-registers" should be used | |
3892 | instead. | |
3893 | ||
53342f27 TT |
3894 | * New options |
3895 | ||
3896 | set print type methods (on|off) | |
3897 | show print type methods | |
3898 | Control whether method declarations are displayed by "ptype". | |
3899 | The default is to show them. | |
3900 | ||
3901 | set print type typedefs (on|off) | |
3902 | show print type typedefs | |
3903 | Control whether typedef definitions are displayed by "ptype". | |
3904 | The default is to show them. | |
3905 | ||
1b56eb55 JK |
3906 | set filename-display basename|relative|absolute |
3907 | show filename-display | |
3908 | Control the way in which filenames is displayed. | |
3909 | The default is "relative", which preserves previous behavior. | |
3910 | ||
e9f1758d PA |
3911 | set trace-buffer-size |
3912 | show trace-buffer-size | |
3913 | Request target to change the size of trace buffer. | |
3914 | ||
a46c1e42 PA |
3915 | set remote trace-buffer-size-packet auto|on|off |
3916 | show remote trace-buffer-size-packet | |
3917 | Control the use of the remote protocol `QTBuffer:size' packet. | |
3918 | ||
be9a8770 PA |
3919 | set debug aarch64 |
3920 | show debug aarch64 | |
3921 | Control display of debugging messages related to ARM AArch64. | |
3922 | The default is off. | |
3923 | ||
3924 | set debug coff-pe-read | |
3925 | show debug coff-pe-read | |
3926 | Control display of debugging messages related to reading of COFF/PE | |
3927 | exported symbols. | |
3928 | ||
3929 | set debug mach-o | |
3930 | show debug mach-o | |
3931 | Control display of debugging messages related to Mach-O symbols | |
3932 | processing. | |
3933 | ||
3934 | set debug notification | |
3935 | show debug notification | |
3936 | Control display of debugging info for async remote notification. | |
3937 | ||
5b9afe8a YQ |
3938 | * MI changes |
3939 | ||
3940 | ** Command parameter changes are now notified using new async record | |
3941 | "=cmd-param-changed". | |
201b4506 YQ |
3942 | ** Trace frame changes caused by command "tfind" are now notified using |
3943 | new async record "=traceframe-changed". | |
134a2066 YQ |
3944 | ** The creation, deletion and modification of trace state variables |
3945 | are now notified using new async records "=tsv-created", | |
3946 | "=tsv-deleted" and "=tsv-modified". | |
82a90ccf YQ |
3947 | ** The start and stop of process record are now notified using new |
3948 | async record "=record-started" and "=record-stopped". | |
8de0566d YQ |
3949 | ** Memory changes are now notified using new async record |
3950 | "=memory-changed". | |
ed8a1c2d | 3951 | ** The data-disassemble command response will include a "fullname" field |
ec83d211 | 3952 | containing the absolute file name when source has been requested. |
62747a60 TT |
3953 | ** New optional parameter COUNT added to the "-data-write-memory-bytes" |
3954 | command, to allow pattern filling of memory areas. | |
3fa7bf06 MG |
3955 | ** New commands "-catch-load"/"-catch-unload" added for intercepting |
3956 | library load/unload events. | |
f2a8bc8a YQ |
3957 | ** The response to breakpoint commands and breakpoint async records |
3958 | includes an "installed" field containing a boolean state about each | |
3959 | non-pending tracepoint location is whether installed on target or not. | |
f5911ea1 HAQ |
3960 | ** Output of the "-trace-status" command includes a "trace-file" field |
3961 | containing the name of the trace file being examined. This field is | |
3962 | optional, and only present when examining a trace file. | |
ec83d211 JK |
3963 | ** The "fullname" field is now always present along with the "file" field, |
3964 | even if the file cannot be found by GDB. | |
5b9afe8a | 3965 | |
608e2dbb TT |
3966 | * GDB now supports the "mini debuginfo" section, .gnu_debugdata. |
3967 | You must have the LZMA library available when configuring GDB for this | |
3968 | feature to be enabled. For more information, see: | |
3969 | http://fedoraproject.org/wiki/Features/MiniDebugInfo | |
3970 | ||
f6f899bf HAQ |
3971 | * New remote packets |
3972 | ||
3973 | QTBuffer:size | |
3974 | Set the size of trace buffer. The remote stub reports support for this | |
3975 | packet to gdb's qSupported query. | |
3976 | ||
10782d74 MM |
3977 | Qbtrace:bts |
3978 | Enable Branch Trace Store (BTS)-based branch tracing for the current | |
3979 | thread. The remote stub reports support for this packet to gdb's | |
3980 | qSupported query. | |
3981 | ||
3982 | Qbtrace:off | |
3983 | Disable branch tracing for the current thread. The remote stub reports | |
3984 | support for this packet to gdb's qSupported query. | |
3985 | ||
3986 | qXfer:btrace:read | |
3987 | Read the traced branches for the current thread. The remote stub | |
3988 | reports support for this packet to gdb's qSupported query. | |
3989 | ||
80c8d323 | 3990 | *** Changes in GDB 7.5 |
d6e00af6 | 3991 | |
1b3371b1 L |
3992 | * GDB now supports x32 ABI. Visit <http://sites.google.com/site/x32abi/> |
3993 | for more x32 ABI info. | |
3994 | ||
d0e64392 MR |
3995 | * GDB now supports access to MIPS DSP registers on Linux targets. |
3996 | ||
4cc0665f MR |
3997 | * GDB now supports debugging microMIPS binaries. |
3998 | ||
85d4a676 SS |
3999 | * The "info os" command on GNU/Linux can now display information on |
4000 | several new classes of objects managed by the operating system: | |
4001 | "info os procgroups" lists process groups | |
4002 | "info os files" lists file descriptors | |
4003 | "info os sockets" lists internet-domain sockets | |
4004 | "info os shm" lists shared-memory regions | |
4005 | "info os semaphores" lists semaphores | |
4006 | "info os msg" lists message queues | |
4007 | "info os modules" lists loaded kernel modules | |
4008 | ||
55aa24fb SDJ |
4009 | * GDB now has support for SDT (Static Defined Tracing) probes. Currently, |
4010 | the only implemented backend is for SystemTap probes (<sys/sdt.h>). You | |
4011 | can set a breakpoint using the new "-probe, "-pstap" or "-probe-stap" | |
4012 | options and inspect the probe arguments using the new $_probe_arg family | |
4013 | of convenience variables. You can obtain more information about SystemTap | |
4014 | in <http://sourceware.org/systemtap/>. | |
4015 | ||
72508ac0 PO |
4016 | * GDB now supports reversible debugging on ARM, it allows you to |
4017 | debug basic ARM and THUMB instructions, and provides | |
4018 | record/replay support. | |
4019 | ||
16899756 DE |
4020 | * The option "symbol-reloading" has been deleted as it is no longer used. |
4021 | ||
4795f398 DE |
4022 | * Python scripting |
4023 | ||
7d74f244 DE |
4024 | ** GDB commands implemented in Python can now be put in command class |
4025 | "gdb.COMMAND_USER". | |
4026 | ||
4795f398 DE |
4027 | ** The "maint set python print-stack on|off" is now deleted. |
4028 | ||
50897289 TT |
4029 | ** A new class, gdb.printing.FlagEnumerationPrinter, can be used to |
4030 | apply "flag enum"-style pretty-printing to any enum. | |
4031 | ||
64e7d9dd TT |
4032 | ** gdb.lookup_symbol can now work when there is no current frame. |
4033 | ||
4034 | ** gdb.Symbol now has a 'line' attribute, holding the line number in | |
4035 | the source at which the symbol was defined. | |
4036 | ||
f0823d2c TT |
4037 | ** gdb.Symbol now has the new attribute 'needs_frame' and the new |
4038 | method 'value'. The former indicates whether the symbol needs a | |
4039 | frame in order to compute its value, and the latter computes the | |
4040 | symbol's value. | |
4041 | ||
7b282c5a SCR |
4042 | ** A new method 'referenced_value' on gdb.Value objects which can |
4043 | dereference pointer as well as C++ reference values. | |
4044 | ||
a20ee7a4 SCR |
4045 | ** New methods 'global_block' and 'static_block' on gdb.Symtab objects |
4046 | which return the global and static blocks (as gdb.Block objects), | |
4047 | of the underlying symbol table, respectively. | |
4048 | ||
7efc75aa SCR |
4049 | ** New function gdb.find_pc_line which returns the gdb.Symtab_and_line |
4050 | object associated with a PC value. | |
4051 | ||
ee0bf529 SCR |
4052 | ** gdb.Symtab_and_line has new attribute 'last' which holds the end |
4053 | of the address range occupied by code for the current source line. | |
4054 | ||
a766d390 DE |
4055 | * Go language support. |
4056 | GDB now supports debugging programs written in the Go programming | |
4057 | language. | |
4058 | ||
e0f9f062 DE |
4059 | * GDBserver now supports stdio connections. |
4060 | E.g. (gdb) target remote | ssh myhost gdbserver - hello | |
4061 | ||
217bff3e JK |
4062 | * The binary "gdbtui" can no longer be built or installed. |
4063 | Use "gdb -tui" instead. | |
4064 | ||
cafec441 TT |
4065 | * GDB will now print "flag" enums specially. A flag enum is one where |
4066 | all the enumerator values have no bits in common when pairwise | |
4067 | "and"ed. When printing a value whose type is a flag enum, GDB will | |
4068 | show all the constants, e.g., for enum E { ONE = 1, TWO = 2}: | |
4069 | (gdb) print (enum E) 3 | |
4070 | $1 = (ONE | TWO) | |
4071 | ||
4aac40c8 TT |
4072 | * The filename part of a linespec will now match trailing components |
4073 | of a source file name. For example, "break gcc/expr.c:1000" will | |
4074 | now set a breakpoint in build/gcc/expr.c, but not | |
4075 | build/libcpp/expr.c. | |
4076 | ||
d99bd577 UW |
4077 | * The "info proc" and "generate-core-file" commands will now also |
4078 | work on remote targets connected to GDBserver on Linux. | |
4079 | ||
53fe1783 GB |
4080 | * The command "info catch" has been removed. It has been disabled |
4081 | since December 2007. | |
4082 | ||
e41eec66 JB |
4083 | * The "catch exception" and "catch assert" commands now accept |
4084 | a condition at the end of the command, much like the "break" | |
4085 | command does. For instance: | |
4086 | ||
4087 | (gdb) catch exception Constraint_Error if Barrier = True | |
4088 | ||
4089 | Previously, it was possible to add a condition to such catchpoints, | |
4090 | but it had to be done as a second step, after the catchpoint had been | |
4091 | created, using the "condition" command. | |
4092 | ||
5808517f YQ |
4093 | * The "info static-tracepoint-marker" command will now also work on |
4094 | native Linux targets with in-process agent. | |
4095 | ||
481860b3 GB |
4096 | * GDB can now set breakpoints on inlined functions. |
4097 | ||
4098 | * The .gdb_index section has been updated to include symbols for | |
4099 | inlined functions. GDB will ignore older .gdb_index sections by | |
4100 | default, which could cause symbol files to be loaded more slowly | |
e615022a DE |
4101 | until their .gdb_index sections can be recreated. The new command |
4102 | "set use-deprecated-index-sections on" will cause GDB to use any older | |
4103 | .gdb_index sections it finds. This will restore performance, but the | |
4104 | ability to set breakpoints on inlined functions will be lost in symbol | |
4105 | files with older .gdb_index sections. | |
481860b3 | 4106 | |
156942c7 DE |
4107 | The .gdb_index section has also been updated to record more information |
4108 | about each symbol. This speeds up the "info variables", "info functions" | |
4109 | and "info types" commands when used with programs having the .gdb_index | |
4110 | section, as well as speeding up debugging with shared libraries using | |
4111 | the .gdb_index section. | |
4112 | ||
927fbba6 JB |
4113 | * Ada support for GDB/MI Variable Objects has been added. |
4114 | ||
20388dd6 YQ |
4115 | * GDB can now support 'breakpoint always-inserted mode' in 'record' |
4116 | target. | |
4117 | ||
f3e0e960 SS |
4118 | * MI changes |
4119 | ||
4120 | ** New command -info-os is the MI equivalent of "info os". | |
4121 | ||
37ce89eb SS |
4122 | ** Output logs ("set logging" and related) now include MI output. |
4123 | ||
edcc5120 TT |
4124 | * New commands |
4125 | ||
e615022a DE |
4126 | ** "set use-deprecated-index-sections on|off" |
4127 | "show use-deprecated-index-sections on|off" | |
4128 | Controls the use of deprecated .gdb_index sections. | |
4129 | ||
edcc5120 TT |
4130 | ** "catch load" and "catch unload" can be used to stop when a shared |
4131 | library is loaded or unloaded, respectively. | |
4132 | ||
816338b5 SS |
4133 | ** "enable count" can be used to auto-disable a breakpoint after |
4134 | several hits. | |
4135 | ||
57651221 | 4136 | ** "info vtbl" can be used to show the virtual method tables for |
c4aeac85 TT |
4137 | C++ and Java objects. |
4138 | ||
06fc020f | 4139 | ** "explore" and its sub commands "explore value" and "explore type" |
6ea71545 | 4140 | can be used to recursively explore values and types of |
06fc020f SCR |
4141 | expressions. These commands are available only if GDB is |
4142 | configured with '--with-python'. | |
4143 | ||
bf88dd68 JK |
4144 | ** "info auto-load" shows status of all kinds of auto-loaded files, |
4145 | "info auto-load gdb-scripts" shows status of auto-loading GDB canned | |
4146 | sequences of commands files, "info auto-load python-scripts" | |
4147 | shows status of auto-loading Python script files, | |
4148 | "info auto-load local-gdbinit" shows status of loading init file | |
4149 | (.gdbinit) from current directory and "info auto-load libthread-db" shows | |
4150 | status of inferior specific thread debugging shared library loading. | |
4151 | ||
4152 | ** "info auto-load-scripts", "set auto-load-scripts on|off" | |
4153 | and "show auto-load-scripts" commands have been deprecated, use their | |
4154 | "info auto-load python-scripts", "set auto-load python-scripts on|off" | |
4155 | and "show auto-load python-scripts" counterparts instead. | |
4156 | ||
e7e0cddf SS |
4157 | ** "dprintf location,format,args..." creates a dynamic printf, which |
4158 | is basically a breakpoint that does a printf and immediately | |
4159 | resumes your program's execution, so it is like a printf that you | |
4160 | can insert dynamically at runtime instead of at compiletime. | |
4161 | ||
9cb709b6 TT |
4162 | ** "set print symbol" |
4163 | "show print symbol" | |
4164 | Controls whether GDB attempts to display the symbol, if any, | |
4165 | corresponding to addresses it prints. This defaults to "on", but | |
4166 | you can set it to "off" to restore GDB's previous behavior. | |
4167 | ||
2d4c29c5 TS |
4168 | * Deprecated commands |
4169 | ||
4170 | ** For the Renesas Super-H architecture, the "regs" command has been | |
4171 | deprecated, and "info all-registers" should be used instead. | |
4172 | ||
a58b110a KB |
4173 | * New targets |
4174 | ||
4175 | Renesas RL78 rl78-*-elf | |
60c9a3c0 | 4176 | HP OpenVMS ia64 ia64-hp-openvms* |
a58b110a | 4177 | |
72895ff6 LM |
4178 | * GDBserver supports evaluation of breakpoint conditions. When |
4179 | support is advertised by GDBserver, GDB may be told to send the | |
4180 | breakpoint conditions in bytecode form to GDBserver. GDBserver | |
4181 | will only report the breakpoint trigger to GDB when its condition | |
4182 | evaluates to true. | |
4183 | ||
4184 | * New options | |
4185 | ||
4cc0665f MR |
4186 | set mips compression |
4187 | show mips compression | |
4188 | Select the compressed ISA encoding used in functions that have no symbol | |
4189 | information available. The encoding can be set to either of: | |
4190 | mips16 | |
4191 | micromips | |
4192 | and is updated automatically from ELF file flags if available. | |
4193 | ||
72895ff6 LM |
4194 | set breakpoint condition-evaluation |
4195 | show breakpoint condition-evaluation | |
cf65ecd3 | 4196 | Control whether breakpoint conditions are evaluated by GDB ("host") or by |
5b43fab2 JK |
4197 | GDBserver ("target"). Default option "auto" chooses the most efficient |
4198 | available mode. | |
72895ff6 LM |
4199 | This option can improve debugger efficiency depending on the speed of the |
4200 | target. | |
4201 | ||
bf88dd68 JK |
4202 | set auto-load off |
4203 | Disable auto-loading globally. | |
4204 | ||
4205 | show auto-load | |
4206 | Show auto-loading setting of all kinds of auto-loaded files. | |
4207 | ||
4208 | set auto-load gdb-scripts on|off | |
4209 | show auto-load gdb-scripts | |
4210 | Control auto-loading of GDB canned sequences of commands files. | |
4211 | ||
4212 | set auto-load python-scripts on|off | |
4213 | show auto-load python-scripts | |
4214 | Control auto-loading of Python script files. | |
4215 | ||
4216 | set auto-load local-gdbinit on|off | |
4217 | show auto-load local-gdbinit | |
4218 | Control loading of init file (.gdbinit) from current directory. | |
4219 | ||
4220 | set auto-load libthread-db on|off | |
4221 | show auto-load libthread-db | |
4222 | Control auto-loading of inferior specific thread debugging shared library. | |
4223 | ||
7349ff92 | 4224 | set auto-load scripts-directory <dir1>[:<dir2>...] |
9cc815f5 | 4225 | show auto-load scripts-directory |
7349ff92 JK |
4226 | Set a list of directories from which to load auto-loaded scripts. |
4227 | Automatically loaded Python scripts and GDB scripts are located in one | |
4228 | of the directories listed by this option. | |
4229 | The delimiter (':' above) may differ according to the host platform. | |
4230 | ||
bccbefd2 JK |
4231 | set auto-load safe-path <dir1>[:<dir2>...] |
4232 | show auto-load safe-path | |
4233 | Set a list of directories from which it is safe to auto-load files. | |
4234 | The delimiter (':' above) may differ according to the host platform. | |
4235 | ||
4dc84fd1 JK |
4236 | set debug auto-load on|off |
4237 | show debug auto-load | |
4238 | Control display of debugging info for auto-loading the files above. | |
4239 | ||
d3ce09f5 | 4240 | set dprintf-style gdb|call|agent |
e7e0cddf | 4241 | show dprintf-style |
d3ce09f5 SS |
4242 | Control the way in which a dynamic printf is performed; "gdb" |
4243 | requests a GDB printf command, while "call" causes dprintf to call a | |
4244 | function in the inferior. "agent" requests that the target agent | |
4245 | (such as GDBserver) do the printing. | |
e7e0cddf SS |
4246 | |
4247 | set dprintf-function <expr> | |
4248 | show dprintf-function | |
4249 | set dprintf-channel <expr> | |
4250 | show dprintf-channel | |
4251 | Set the function and optional first argument to the call when using | |
4252 | the "call" style of dynamic printf. | |
4253 | ||
d3ce09f5 SS |
4254 | set disconnected-dprintf on|off |
4255 | show disconnected-dprintf | |
4256 | Control whether agent-style dynamic printfs continue to be in effect | |
4257 | after GDB disconnects. | |
4258 | ||
6dea1fbd JK |
4259 | * New configure options |
4260 | ||
7349ff92 JK |
4261 | --with-auto-load-dir |
4262 | Configure default value for the 'set auto-load scripts-directory' | |
1564a261 JK |
4263 | setting above. It defaults to '$debugdir:$datadir/auto-load', |
4264 | $debugdir representing global debugging info directories (available | |
4265 | via 'show debug-file-directory') and $datadir representing GDB's data | |
4266 | directory (available via 'show data-directory'). | |
7349ff92 | 4267 | |
6dea1fbd JK |
4268 | --with-auto-load-safe-path |
4269 | Configure default value for the 'set auto-load safe-path' setting | |
7349ff92 | 4270 | above. It defaults to the --with-auto-load-dir setting. |
6dea1fbd JK |
4271 | |
4272 | --without-auto-load-safe-path | |
4273 | Set 'set auto-load safe-path' to '/', effectively disabling this | |
4274 | security feature. | |
4275 | ||
72895ff6 LM |
4276 | * New remote packets |
4277 | ||
74c48cbb PA |
4278 | z0/z1 conditional breakpoints extension |
4279 | ||
72895ff6 LM |
4280 | The z0/z1 breakpoint insertion packets have been extended to carry |
4281 | a list of conditional expressions over to the remote stub depending on the | |
4282 | condition evaluation mode. The use of this extension can be controlled | |
4283 | via the "set remote conditional-breakpoints-packet" command. | |
4284 | ||
9b224c5e PA |
4285 | QProgramSignals: |
4286 | ||
4287 | Specify the signals which the remote stub may pass to the debugged | |
4288 | program without GDB involvement. | |
4289 | ||
8320cc4f JK |
4290 | * New command line options |
4291 | ||
4292 | --init-command=FILE, -ix Like --command, -x but execute it | |
4293 | before loading inferior. | |
4294 | --init-eval-command=COMMAND, -iex Like --eval-command=COMMAND, -ex but | |
4295 | execute it before loading inferior. | |
4296 | ||
8837a20f JB |
4297 | *** Changes in GDB 7.4 |
4298 | ||
f8eba3c6 TT |
4299 | * GDB now handles ambiguous linespecs more consistently; the existing |
4300 | FILE:LINE support has been expanded to other types of linespecs. A | |
4301 | breakpoint will now be set on all matching locations in all | |
4302 | inferiors, and locations will be added or removed according to | |
4303 | inferior changes. | |
4304 | ||
1bfeeb0f JL |
4305 | * GDB now allows you to skip uninteresting functions and files when |
4306 | stepping with the "skip function" and "skip file" commands. | |
4307 | ||
480a3f21 PW |
4308 | * GDB has two new commands: "set remote hardware-watchpoint-length-limit" |
4309 | and "show remote hardware-watchpoint-length-limit". These allows to | |
4310 | set or show the maximum length limit (in bytes) of a remote | |
4311 | target hardware watchpoint. | |
4312 | ||
4313 | This allows e.g. to use "unlimited" hardware watchpoints with the | |
4314 | gdbserver integrated in Valgrind version >= 3.7.0. Such Valgrind | |
4315 | watchpoints are slower than real hardware watchpoints but are | |
4316 | significantly faster than gdb software watchpoints. | |
4317 | ||
3a7bf607 PM |
4318 | * Python scripting |
4319 | ||
32d1c362 | 4320 | ** The register_pretty_printer function in module gdb.printing now takes |
7d0aff21 | 4321 | an optional `replace' argument. If True, the new printer replaces any |
32d1c362 DE |
4322 | existing one. |
4323 | ||
3a7bf607 | 4324 | ** The "maint set python print-stack on|off" command has been |
4795f398 DE |
4325 | deprecated and will be deleted in GDB 7.5. |
4326 | A new command: "set python print-stack none|full|message" has | |
4327 | replaced it. Additionally, the default for "print-stack" is | |
4328 | now "message", which just prints the error message without | |
4329 | the stack trace. | |
3a7bf607 | 4330 | |
baacfb07 | 4331 | ** A prompt substitution hook (prompt_hook) is now available to the |
3a7bf607 | 4332 | Python API. |
713389e0 | 4333 | |
fa3a4f15 PM |
4334 | ** A new Python module, gdb.prompt has been added to the GDB Python |
4335 | modules library. This module provides functionality for | |
baacfb07 | 4336 | escape sequences in prompts (used by set/show |
fa3a4f15 PM |
4337 | extended-prompt). These escape sequences are replaced by their |
4338 | corresponding value. | |
4339 | ||
5e239b84 PM |
4340 | ** Python commands and convenience-functions located in |
4341 | 'data-directory'/python/gdb/command and | |
4342 | 'data-directory'/python/gdb/function are now automatically loaded | |
4343 | on GDB start-up. | |
4344 | ||
9df2fbc4 PM |
4345 | ** Blocks now provide four new attributes. global_block and |
4346 | static_block will return the global and static blocks | |
4347 | respectively. is_static and is_global are boolean attributes | |
4348 | that indicate if the block is one of those two types. | |
4349 | ||
457e09f0 DE |
4350 | ** Symbols now provide the "type" attribute, the type of the symbol. |
4351 | ||
6839b47f KP |
4352 | ** The "gdb.breakpoint" function has been deprecated in favor of |
4353 | "gdb.breakpoints". | |
4354 | ||
cc72b2a2 KP |
4355 | ** A new class "gdb.FinishBreakpoint" is provided to catch the return |
4356 | of a function. This class is based on the "finish" command | |
4357 | available in the CLI. | |
4358 | ||
84ad80e6 PK |
4359 | ** Type objects for struct and union types now allow access to |
4360 | the fields using standard Python dictionary (mapping) methods. | |
4361 | For example, "some_type['myfield']" now works, as does | |
4362 | "some_type.items()". | |
4363 | ||
20c168b5 KP |
4364 | ** A new event "gdb.new_objfile" has been added, triggered by loading a |
4365 | new object file. | |
4366 | ||
03c3051a PK |
4367 | ** A new function, "deep_items" has been added to the gdb.types |
4368 | module in the GDB Python modules library. This function returns | |
4369 | an iterator over the fields of a struct or union type. Unlike | |
4370 | the standard Python "iteritems" method, it will recursively traverse | |
4371 | any anonymous fields. | |
4372 | ||
7376e450 TT |
4373 | * MI changes |
4374 | ||
4375 | ** "*stopped" events can report several new "reason"s, such as | |
4376 | "solib-event". | |
4377 | ||
4378 | ** Breakpoint changes are now notified using new async records, like | |
4379 | "=breakpoint-modified". | |
4380 | ||
4381 | ** New command -ada-task-info. | |
4382 | ||
98a5dd13 DE |
4383 | * libthread-db-search-path now supports two special values: $sdir and $pdir. |
4384 | $sdir specifies the default system locations of shared libraries. | |
4385 | $pdir specifies the directory where the libpthread used by the application | |
4386 | lives. | |
4387 | ||
4388 | GDB no longer looks in $sdir and $pdir after it has searched the directories | |
4389 | mentioned in libthread-db-search-path. If you want to search those | |
4390 | directories, they must be specified in libthread-db-search-path. | |
4391 | The default value of libthread-db-search-path on GNU/Linux and Solaris | |
4392 | systems is now "$sdir:$pdir". | |
4393 | ||
4394 | $pdir is not supported by gdbserver, it is currently ignored. | |
4395 | $sdir is supported by gdbserver. | |
4396 | ||
478aac75 DE |
4397 | * New configure option --with-iconv-bin. |
4398 | When using the internationalization support like the one in the GNU C | |
4399 | library, GDB will invoke the "iconv" program to get a list of supported | |
4400 | character sets. If this program lives in a non-standard location, one can | |
4401 | use this option to specify where to find it. | |
4402 | ||
9c06b0b4 TJB |
4403 | * When natively debugging programs on PowerPC BookE processors running |
4404 | a Linux kernel version 2.6.34 or later, GDB supports masked hardware | |
4405 | watchpoints, which specify a mask in addition to an address to watch. | |
4406 | The mask specifies that some bits of an address (the bits which are | |
4407 | reset in the mask) should be ignored when matching the address accessed | |
4408 | by the inferior against the watchpoint address. See the "PowerPC Embedded" | |
4409 | section in the user manual for more details. | |
4410 | ||
03f2bd59 JK |
4411 | * The new option --once causes GDBserver to stop listening for connections once |
4412 | the first connection is made. The listening port used by GDBserver will | |
4413 | become available after that. | |
4414 | ||
71eba9c2 | 4415 | * New commands "info macros" and "alias" have been added. |
edc84990 | 4416 | |
2bda9cc5 JK |
4417 | * New function parameters suffix @entry specifies value of function parameter |
4418 | at the time the function got called. Entry values are available only since | |
4419 | gcc version 4.7. | |
4420 | ||
ed59ded5 DE |
4421 | * New commands |
4422 | ||
4423 | !SHELL COMMAND | |
4424 | "!" is now an alias of the "shell" command. | |
4425 | Note that no space is needed between "!" and SHELL COMMAND. | |
4426 | ||
9c06b0b4 TJB |
4427 | * Changed commands |
4428 | ||
4429 | watch EXPRESSION mask MASK_VALUE | |
4430 | The watch command now supports the mask argument which allows creation | |
4431 | of masked watchpoints, if the current architecture supports this feature. | |
4432 | ||
dbaefcf7 DE |
4433 | info auto-load-scripts [REGEXP] |
4434 | This command was formerly named "maintenance print section-scripts". | |
4435 | It is now generally useful and is no longer a maintenance-only command. | |
4436 | ||
71eba9c2 | 4437 | info macro [-all] [--] MACRO |
4438 | The info macro command has new options `-all' and `--'. The first for | |
4439 | printing all definitions of a macro. The second for explicitly specifying | |
4440 | the end of arguments and the beginning of the macro name in case the macro | |
4441 | name starts with a hyphen. | |
4442 | ||
3065dfb6 SS |
4443 | collect[/s] EXPRESSIONS |
4444 | The tracepoint collect command now takes an optional modifier "/s" | |
4445 | that directs it to dereference pointer-to-character types and | |
4446 | collect the bytes of memory up to a zero byte. The behavior is | |
4447 | similar to what you see when you use the regular print command on a | |
4448 | string. An optional integer following the "/s" sets a bound on the | |
4449 | number of bytes that will be collected. | |
4450 | ||
f196051f SS |
4451 | tstart [NOTES] |
4452 | The trace start command now interprets any supplied arguments as a | |
4453 | note to be recorded with the trace run, with an effect similar to | |
4454 | setting the variable trace-notes. | |
4455 | ||
4456 | tstop [NOTES] | |
4457 | The trace stop command now interprets any arguments as a note to be | |
4458 | mentioned along with the tstatus report that the trace was stopped | |
4459 | with a command. The effect is similar to setting the variable | |
4460 | trace-stop-notes. | |
4461 | ||
d248b706 KY |
4462 | * Tracepoints can now be enabled and disabled at any time after a trace |
4463 | experiment has been started using the standard "enable" and "disable" | |
4464 | commands. It is now possible to start a trace experiment with no enabled | |
4465 | tracepoints; GDB will display a warning, but will allow the experiment to | |
4466 | begin, assuming that tracepoints will be enabled as needed while the trace | |
4467 | is running. | |
4468 | ||
405f8e94 SS |
4469 | * Fast tracepoints on 32-bit x86-architectures can now be placed at |
4470 | locations with 4-byte instructions, when they were previously | |
4471 | limited to locations with instructions of 5 bytes or longer. | |
4472 | ||
2bda9cc5 JK |
4473 | * New options |
4474 | ||
45cfd468 DE |
4475 | set debug dwarf2-read |
4476 | show debug dwarf2-read | |
4477 | Turns on or off display of debugging messages related to reading | |
4478 | DWARF debug info. The default is off. | |
4479 | ||
4480 | set debug symtab-create | |
4481 | show debug symtab-create | |
4482 | Turns on or off display of debugging messages related to symbol table | |
4483 | creation. The default is off. | |
4484 | ||
baacfb07 PM |
4485 | set extended-prompt |
4486 | show extended-prompt | |
4487 | Set the GDB prompt, and allow escape sequences to be inserted to | |
4488 | display miscellaneous information (see 'help set extended-prompt' | |
4489 | for the list of sequences). This prompt (and any information | |
4490 | accessed through the escape sequences) is updated every time the | |
4491 | prompt is displayed. | |
4492 | ||
2bda9cc5 JK |
4493 | set print entry-values (both|compact|default|if-needed|no|only|preferred) |
4494 | show print entry-values | |
4495 | Set printing of frame argument values at function entry. In some cases | |
4496 | GDB can determine the value of function argument which was passed by the | |
4497 | function caller, even if the value was modified inside the called function. | |
4498 | ||
4499 | set debug entry-values | |
4500 | show debug entry-values | |
4501 | Control display of debugging info for determining frame argument values at | |
4502 | function entry and virtual tail call frames. | |
4503 | ||
c011a4f4 DE |
4504 | set basenames-may-differ |
4505 | show basenames-may-differ | |
4506 | Set whether a source file may have multiple base names. | |
4507 | (A "base name" is the name of a file with the directory part removed. | |
4508 | Example: The base name of "/home/user/hello.c" is "hello.c".) | |
4509 | If set, GDB will canonicalize file names (e.g., expand symlinks) | |
4510 | before comparing them. Canonicalization is an expensive operation, | |
4511 | but it allows the same file be known by more than one base name. | |
4512 | If not set (the default), all source files are assumed to have just | |
4513 | one base name, and gdb will do file name comparisons more efficiently. | |
4514 | ||
f196051f SS |
4515 | set trace-user |
4516 | show trace-user | |
4517 | set trace-notes | |
4518 | show trace-notes | |
4519 | Set a user name and notes for the current and any future trace runs. | |
4520 | This is useful for long-running and/or disconnected traces, to | |
4521 | inform others (or yourself) as to who is running the trace, supply | |
4522 | contact information, or otherwise explain what is going on. | |
4523 | ||
4524 | set trace-stop-notes | |
4525 | show trace-stop-notes | |
4526 | Set a note attached to the trace run, that is displayed when the | |
4527 | trace has been stopped by a tstop command. This is useful for | |
4528 | instance as an explanation, if you are stopping a trace run that was | |
4529 | started by someone else. | |
4530 | ||
d248b706 KY |
4531 | * New remote packets |
4532 | ||
4533 | QTEnable | |
4534 | ||
4535 | Dynamically enable a tracepoint in a started trace experiment. | |
4536 | ||
4537 | QTDisable | |
4538 | ||
4539 | Dynamically disable a tracepoint in a started trace experiment. | |
4540 | ||
f196051f SS |
4541 | QTNotes |
4542 | ||
4543 | Set the user and notes of the trace run. | |
4544 | ||
4545 | qTP | |
4546 | ||
4547 | Query the current status of a tracepoint. | |
4548 | ||
405f8e94 SS |
4549 | qTMinFTPILen |
4550 | ||
4551 | Query the minimum length of instruction at which a fast tracepoint may | |
4552 | be placed. | |
4553 | ||
1a532630 PP |
4554 | * Dcache size (number of lines) and line-size are now runtime-configurable |
4555 | via "set dcache line" and "set dcache line-size" commands. | |
4556 | ||
11315641 YQ |
4557 | * New targets |
4558 | ||
4559 | Texas Instruments TMS320C6x tic6x-*-* | |
4560 | ||
87326c78 DD |
4561 | * New Simulators |
4562 | ||
4563 | Renesas RL78 rl78-*-elf | |
4564 | ||
e8d56f18 JB |
4565 | *** Changes in GDB 7.3.1 |
4566 | ||
4567 | * The build failure for NetBSD and OpenBSD targets have now been fixed. | |
4568 | ||
d6e00af6 | 4569 | *** Changes in GDB 7.3 |
797054e6 | 4570 | |
60f98dde MS |
4571 | * GDB has a new command: "thread find [REGEXP]". |
4572 | It finds the thread id whose name, target id, or thread extra info | |
4573 | matches the given regular expression. | |
4574 | ||
eee5b35e DD |
4575 | * The "catch syscall" command now works on mips*-linux* targets. |
4576 | ||
b716877b AB |
4577 | * The -data-disassemble MI command now supports modes 2 and 3 for |
4578 | dumping the instruction opcodes. | |
4579 | ||
aae1c79a DE |
4580 | * New command line options |
4581 | ||
4582 | -data-directory DIR Specify DIR as the "data-directory". | |
4583 | This is mostly for testing purposes. | |
4584 | ||
a86caf66 DE |
4585 | * The "maint set python auto-load on|off" command has been renamed to |
4586 | "set auto-load-scripts on|off". | |
4587 | ||
99e7ae30 DE |
4588 | * GDB has a new command: "set directories". |
4589 | It is like the "dir" command except that it replaces the | |
4590 | source path list instead of augmenting it. | |
4591 | ||
4694da01 TT |
4592 | * GDB now understands thread names. |
4593 | ||
4594 | On GNU/Linux, "info threads" will display the thread name as set by | |
4595 | prctl or pthread_setname_np. | |
4596 | ||
4597 | There is also a new command, "thread name", which can be used to | |
4598 | assign a name internally for GDB to display. | |
4599 | ||
f4b8a18d KW |
4600 | * OpenCL C |
4601 | Initial support for the OpenCL C language (http://www.khronos.org/opencl) | |
4602 | has been integrated into GDB. | |
4603 | ||
585d1eb8 PM |
4604 | * Python scripting |
4605 | ||
da5d4055 PM |
4606 | ** The function gdb.Write now accepts an optional keyword 'stream'. |
4607 | This keyword, when provided, will direct the output to either | |
4608 | stdout, stderr, or GDB's logging output. | |
4609 | ||
9a6f1302 PM |
4610 | ** Parameters can now be be sub-classed in Python, and in particular |
4611 | you may implement the get_set_doc and get_show_doc functions. | |
4612 | This improves how Parameter set/show documentation is processed | |
4613 | and allows for more dynamic content. | |
4614 | ||
29703da4 PM |
4615 | ** Symbols, Symbol Table, Symbol Table and Line, Object Files, |
4616 | Inferior, Inferior Thread, Blocks, and Block Iterator APIs now | |
4617 | have an is_valid method. | |
4618 | ||
350c6c65 PM |
4619 | ** Breakpoints can now be sub-classed in Python, and in particular |
4620 | you may implement a 'stop' function that is executed each time | |
4621 | the inferior reaches that breakpoint. | |
4622 | ||
6e6fbe60 DE |
4623 | ** New function gdb.lookup_global_symbol looks up a global symbol. |
4624 | ||
585d1eb8 PM |
4625 | ** GDB values in Python are now callable if the value represents a |
4626 | function. For example, if 'some_value' represents a function that | |
4627 | takes two integer parameters and returns a value, you can call | |
4628 | that function like so: | |
4629 | ||
4630 | result = some_value (10,20) | |
4631 | ||
0e3509db DE |
4632 | ** Module gdb.types has been added. |
4633 | It contains a collection of utilities for working with gdb.Types objects: | |
4634 | get_basic_type, has_field, make_enum_dict. | |
4635 | ||
7b51bc51 DE |
4636 | ** Module gdb.printing has been added. |
4637 | It contains utilities for writing and registering pretty-printers. | |
4638 | New classes: PrettyPrinter, SubPrettyPrinter, | |
4639 | RegexpCollectionPrettyPrinter. | |
4640 | New function: register_pretty_printer. | |
4641 | ||
4642 | ** New commands "info pretty-printers", "enable pretty-printer" and | |
4643 | "disable pretty-printer" have been added. | |
4644 | ||
99e7ae30 DE |
4645 | ** gdb.parameter("directories") is now available. |
4646 | ||
d8e22779 TT |
4647 | ** New function gdb.newest_frame returns the newest frame in the |
4648 | selected thread. | |
4649 | ||
4694da01 TT |
4650 | ** The gdb.InferiorThread class has a new "name" attribute. This |
4651 | holds the thread's name. | |
4652 | ||
505500db SW |
4653 | ** Python Support for Inferior events. |
4654 | Python scripts can add observers to be notified of events | |
824446ad | 4655 | occurring in the process being debugged. |
c17a9e46 HZ |
4656 | The following events are currently supported: |
4657 | - gdb.events.cont Continue event. | |
4658 | - gdb.events.exited Inferior exited event. | |
4659 | - gdb.events.stop Signal received, and Breakpoint hit events. | |
4660 | ||
def98928 TT |
4661 | * C++ Improvements: |
4662 | ||
4663 | ** GDB now puts template parameters in scope when debugging in an | |
4664 | instantiation. For example, if you have: | |
4665 | ||
4666 | template<int X> int func (void) { return X; } | |
4667 | ||
4668 | then if you step into func<5>, "print X" will show "5". This | |
4669 | feature requires proper debuginfo support from the compiler; it | |
4670 | was added to GCC 4.5. | |
4671 | ||
66cb8159 TT |
4672 | ** The motion commands "next", "finish", "until", and "advance" now |
4673 | work better when exceptions are thrown. In particular, GDB will | |
4674 | no longer lose control of the inferior; instead, the GDB will | |
4675 | stop the inferior at the point at which the exception is caught. | |
4676 | This functionality requires a change in the exception handling | |
4677 | code that was introduced in GCC 4.5. | |
4678 | ||
4aac0db7 UW |
4679 | * GDB now follows GCC's rules on accessing volatile objects when |
4680 | reading or writing target state during expression evaluation. | |
4681 | One notable difference to prior behavior is that "print x = 0" | |
4682 | no longer generates a read of x; the value of the assignment is | |
4683 | now always taken directly from the value being assigned. | |
4684 | ||
283e6a52 TT |
4685 | * GDB now has some support for using labels in the program's source in |
4686 | linespecs. For instance, you can use "advance label" to continue | |
4687 | execution to a label. | |
4688 | ||
4689 | * GDB now has support for reading and writing a new .gdb_index | |
4690 | section. This section holds a fast index of DWARF debugging | |
4691 | information and can be used to greatly speed up GDB startup and | |
4692 | operation. See the documentation for `save gdb-index' for details. | |
4693 | ||
b56df873 | 4694 | * The "watch" command now accepts an optional "-location" argument. |
14c0d4e1 | 4695 | When used, this causes GDB to watch the memory referred to by the |
b56df873 TT |
4696 | expression. Such a watchpoint is never deleted due to it going out |
4697 | of scope. | |
4698 | ||
ae53ffa4 PA |
4699 | * GDB now supports thread debugging of core dumps on GNU/Linux. |
4700 | ||
4701 | GDB now activates thread debugging using the libthread_db library | |
4702 | when debugging GNU/Linux core dumps, similarly to when debugging | |
4703 | live processes. As a result, when debugging a core dump file, GDB | |
4704 | is now able to display pthread_t ids of threads. For example, "info | |
4705 | threads" shows the same output as when debugging the process when it | |
4706 | was live. In earlier releases, you'd see something like this: | |
4707 | ||
4708 | (gdb) info threads | |
4709 | * 1 LWP 6780 main () at main.c:10 | |
4710 | ||
4711 | While now you see this: | |
4712 | ||
4713 | (gdb) info threads | |
4714 | * 1 Thread 0x7f0f5712a700 (LWP 6780) main () at main.c:10 | |
4715 | ||
4716 | It is also now possible to inspect TLS variables when debugging core | |
4717 | dumps. | |
4718 | ||
4719 | When debugging a core dump generated on a machine other than the one | |
4720 | used to run GDB, you may need to point GDB at the correct | |
4721 | libthread_db library with the "set libthread-db-search-path" | |
4722 | command. See the user manual for more details on this command. | |
4723 | ||
f1310107 TJB |
4724 | * When natively debugging programs on PowerPC BookE processors running |
4725 | a Linux kernel version 2.6.34 or later, GDB supports ranged breakpoints, | |
4726 | which stop execution of the inferior whenever it executes an instruction | |
4727 | at any address within the specified range. See the "PowerPC Embedded" | |
4728 | section in the user manual for more details. | |
4729 | ||
248c9dbc JB |
4730 | * New features in the GDB remote stub, GDBserver |
4731 | ||
1aee7009 JB |
4732 | ** GDBserver is now supported on PowerPC LynxOS (versions 4.x and 5.x), |
4733 | and i686 LynxOS (version 5.x). | |
248c9dbc | 4734 | |
eb826dc6 MF |
4735 | ** GDBserver is now supported on Blackfin Linux. |
4736 | ||
44603653 JB |
4737 | * New native configurations |
4738 | ||
4739 | ia64 HP-UX ia64-*-hpux* | |
4740 | ||
91021223 MF |
4741 | * New targets: |
4742 | ||
4743 | Analog Devices, Inc. Blackfin Processor bfin-* | |
4744 | ||
6e1bb179 JB |
4745 | * Ada task switching is now supported on sparc-elf targets when |
4746 | debugging a program using the Ravenscar Profile. For more information, | |
4747 | see the "Tasking Support when using the Ravenscar Profile" section | |
4748 | in the GDB user manual. | |
4749 | ||
50c97f38 TT |
4750 | * Guile support was removed. |
4751 | ||
448a92bf MF |
4752 | * New features in the GNU simulator |
4753 | ||
4754 | ** The --map-info flag lists all known core mappings. | |
4755 | ||
66ee2731 MF |
4756 | ** CFI flashes may be simulated via the "cfi" device. |
4757 | ||
76b8507d | 4758 | *** Changes in GDB 7.2 |
bfbf3774 | 4759 | |
ba25b921 PA |
4760 | * Shared library support for remote targets by default |
4761 | ||
4762 | When GDB is configured for a generic, non-OS specific target, like | |
4763 | for example, --target=arm-eabi or one of the many *-*-elf targets, | |
4764 | GDB now queries remote stubs for loaded shared libraries using the | |
4765 | `qXfer:libraries:read' packet. Previously, shared library support | |
4766 | was always disabled for such configurations. | |
4767 | ||
4656f5c6 SW |
4768 | * C++ Improvements: |
4769 | ||
4770 | ** Argument Dependent Lookup (ADL) | |
4771 | ||
4772 | In C++ ADL lookup directs function search to the namespaces of its | |
4773 | arguments even if the namespace has not been imported. | |
4774 | For example: | |
4775 | namespace A | |
4776 | { | |
4777 | class B { }; | |
4778 | void foo (B) { } | |
4779 | } | |
4780 | ... | |
4781 | A::B b | |
4782 | foo(b) | |
4783 | Here the compiler will search for `foo' in the namespace of 'b' | |
4784 | and find A::foo. GDB now supports this. This construct is commonly | |
4785 | used in the Standard Template Library for operators. | |
4786 | ||
4787 | ** Improved User Defined Operator Support | |
4788 | ||
4789 | In addition to member operators, GDB now supports lookup of operators | |
4790 | defined in a namespace and imported with a `using' directive, operators | |
4791 | defined in the global scope, operators imported implicitly from an | |
4792 | anonymous namespace, and the ADL operators mentioned in the previous | |
4793 | entry. | |
4794 | GDB now also supports proper overload resolution for all the previously | |
4795 | mentioned flavors of operators. | |
4796 | ||
254e6b9e DE |
4797 | ** static const class members |
4798 | ||
4799 | Printing of static const class members that are initialized in the | |
4800 | class definition has been fixed. | |
4801 | ||
711e434b PM |
4802 | * Windows Thread Information Block access. |
4803 | ||
4804 | On Windows targets, GDB now supports displaying the Windows Thread | |
4805 | Information Block (TIB) structure. This structure is visible either | |
4806 | by using the new command `info w32 thread-information-block' or, by | |
4807 | dereferencing the new convenience variable named `$_tlb', a | |
4808 | thread-specific pointer to the TIB. This feature is also supported | |
4809 | when remote debugging using GDBserver. | |
4810 | ||
0fb4aa4b PA |
4811 | * Static tracepoints |
4812 | ||
4813 | Static tracepoints are calls in the user program into a tracing | |
4814 | library. One such library is a port of the LTTng kernel tracer to | |
4815 | userspace --- UST (LTTng Userspace Tracer, http://lttng.org/ust). | |
4816 | When debugging with GDBserver, GDB now supports combining the GDB | |
4817 | tracepoint machinery with such libraries. For example: the user can | |
4818 | use GDB to probe a static tracepoint marker (a call from the user | |
4819 | program into the tracing library) with the new "strace" command (see | |
4820 | "New commands" below). This creates a "static tracepoint" in the | |
4821 | breakpoint list, that can be manipulated with the same feature set | |
4822 | as fast and regular tracepoints. E.g., collect registers, local and | |
4823 | global variables, collect trace state variables, and define | |
4824 | tracepoint conditions. In addition, the user can collect extra | |
4825 | static tracepoint marker specific data, by collecting the new | |
4826 | $_sdata internal variable. When analyzing the trace buffer, you can | |
4827 | inspect $_sdata like any other variable available to GDB. For more | |
4828 | information, see the "Tracepoints" chapter in GDB user manual. New | |
4829 | remote packets have been defined to support static tracepoints, see | |
4830 | the "New remote packets" section below. | |
4831 | ||
ca11e899 SS |
4832 | * Better reconstruction of tracepoints after disconnected tracing |
4833 | ||
4834 | GDB will attempt to download the original source form of tracepoint | |
4835 | definitions when starting a trace run, and then will upload these | |
4836 | upon reconnection to the target, resulting in a more accurate | |
4837 | reconstruction of the tracepoints that are in use on the target. | |
4838 | ||
4839 | * Observer mode | |
4840 | ||
4841 | You can now exercise direct control over the ways that GDB can | |
4842 | affect your program. For instance, you can disallow the setting of | |
4843 | breakpoints, so that the program can run continuously (assuming | |
4844 | non-stop mode). In addition, the "observer" variable is available | |
4845 | to switch all of the different controls; in observer mode, GDB | |
4846 | cannot affect the target's behavior at all, which is useful for | |
4847 | tasks like diagnosing live systems in the field. | |
4848 | ||
4849 | * The new convenience variable $_thread holds the number of the | |
4850 | current thread. | |
4851 | ||
711e434b PM |
4852 | * New remote packets |
4853 | ||
4854 | qGetTIBAddr | |
4855 | ||
4856 | Return the address of the Windows Thread Information Block of a given thread. | |
4857 | ||
dde08ee1 PA |
4858 | qRelocInsn |
4859 | ||
4860 | In response to several of the tracepoint packets, the target may now | |
4861 | also respond with a number of intermediate `qRelocInsn' request | |
4862 | packets before the final result packet, to have GDB handle | |
4863 | relocating an instruction to execute at a different address. This | |
4864 | is particularly useful for stubs that support fast tracepoints. GDB | |
4865 | reports support for this feature in the qSupported packet. | |
4866 | ||
0fb4aa4b PA |
4867 | qTfSTM, qTsSTM |
4868 | ||
4869 | List static tracepoint markers in the target program. | |
4870 | ||
4871 | qTSTMat | |
4872 | ||
4873 | List static tracepoint markers at a given address in the target | |
4874 | program. | |
4875 | ||
4876 | qXfer:statictrace:read | |
4877 | ||
4878 | Read the static trace data collected (by a `collect $_sdata' | |
4879 | tracepoint action). The remote stub reports support for this packet | |
4880 | to gdb's qSupported query. | |
4881 | ||
ca11e899 SS |
4882 | QAllow |
4883 | ||
4884 | Send the current settings of GDB's permission flags. | |
4885 | ||
4886 | QTDPsrc | |
4887 | ||
4888 | Send part of the source (textual) form of a tracepoint definition, | |
4889 | which includes location, conditional, and action list. | |
4890 | ||
3f7b2faa DE |
4891 | * The source command now accepts a -s option to force searching for the |
4892 | script in the source search path even if the script name specifies | |
4893 | a directory. | |
4894 | ||
d337e9f0 PA |
4895 | * New features in the GDB remote stub, GDBserver |
4896 | ||
0fb4aa4b PA |
4897 | - GDBserver now support tracepoints (including fast tracepoints, and |
4898 | static tracepoints). The feature is currently supported by the | |
4899 | i386-linux and amd64-linux builds. See the "Tracepoints support | |
4900 | in gdbserver" section in the manual for more information. | |
4901 | ||
4902 | GDBserver JIT compiles the tracepoint's conditional agent | |
4903 | expression bytecode into native code whenever possible for low | |
4904 | overhead dynamic tracepoints conditionals. For such tracepoints, | |
4905 | an expression that examines program state is evaluated when the | |
4906 | tracepoint is reached, in order to determine whether to capture | |
4907 | trace data. If the condition is simple and false, processing the | |
4908 | tracepoint finishes very quickly and no data is gathered. | |
4909 | ||
4910 | GDBserver interfaces with the UST (LTTng Userspace Tracer) library | |
4911 | for static tracepoints support. | |
d337e9f0 | 4912 | |
c24d0242 PM |
4913 | - GDBserver now supports x86_64 Windows 64-bit debugging. |
4914 | ||
c8d5aac9 L |
4915 | * GDB now sends xmlRegisters= in qSupported packet to indicate that |
4916 | it understands register description. | |
4917 | ||
7c953934 TT |
4918 | * The --batch flag now disables pagination and queries. |
4919 | ||
8685c86f L |
4920 | * X86 general purpose registers |
4921 | ||
4922 | GDB now supports reading/writing byte, word and double-word x86 | |
4923 | general purpose registers directly. This means you can use, say, | |
4924 | $ah or $ax to refer, respectively, to the byte register AH and | |
4925 | 16-bit word register AX that are actually portions of the 32-bit | |
4926 | register EAX or 64-bit register RAX. | |
4927 | ||
95a42b64 | 4928 | * The `commands' command now accepts a range of breakpoints to modify. |
86b17b60 PA |
4929 | A plain `commands' following a command that creates multiple |
4930 | breakpoints affects all the breakpoints set by that command. This | |
4931 | applies to breakpoints set by `rbreak', and also applies when a | |
4932 | single `break' command creates multiple breakpoints (e.g., | |
4933 | breakpoints on overloaded c++ functions). | |
95a42b64 | 4934 | |
8bd10a10 CM |
4935 | * The `rbreak' command now accepts a filename specification as part of |
4936 | its argument, limiting the functions selected by the regex to those | |
4937 | in the specified file. | |
4938 | ||
ab38a727 PA |
4939 | * Support for remote debugging Windows and SymbianOS shared libraries |
4940 | from Unix hosts has been improved. Non Windows GDB builds now can | |
4941 | understand target reported file names that follow MS-DOS based file | |
4942 | system semantics, such as file names that include drive letters and | |
4943 | use the backslash character as directory separator. This makes it | |
4944 | possible to transparently use the "set sysroot" and "set | |
4945 | solib-search-path" on Unix hosts to point as host copies of the | |
4946 | target's shared libraries. See the new command "set | |
4947 | target-file-system-kind" described below, and the "Commands to | |
4948 | specify files" section in the user manual for more information. | |
4949 | ||
6149aea9 PA |
4950 | * New commands |
4951 | ||
f1421989 HZ |
4952 | eval template, expressions... |
4953 | Convert the values of one or more expressions under the control | |
4954 | of the string template to a command line, and call it. | |
4955 | ||
ab38a727 PA |
4956 | set target-file-system-kind unix|dos-based|auto |
4957 | show target-file-system-kind | |
4958 | Set or show the assumed file system kind for target reported file | |
4959 | names. | |
4960 | ||
6149aea9 PA |
4961 | save breakpoints <filename> |
4962 | Save all current breakpoint definitions to a file suitable for use | |
4963 | in a later debugging session. To read the saved breakpoint | |
4964 | definitions, use the `source' command. | |
4965 | ||
4966 | `save tracepoints' is a new alias for `save-tracepoints'. The latter | |
4967 | is now deprecated. | |
4968 | ||
0fb4aa4b PA |
4969 | info static-tracepoint-markers |
4970 | Display information about static tracepoint markers in the target. | |
4971 | ||
4972 | strace FN | FILE:LINE | *ADDR | -m MARKER_ID | |
4973 | Define a static tracepoint by probing a marker at the given | |
4974 | function, line, address, or marker ID. | |
4975 | ||
ca11e899 SS |
4976 | set observer on|off |
4977 | show observer | |
4978 | Enable and disable observer mode. | |
4979 | ||
4980 | set may-write-registers on|off | |
4981 | set may-write-memory on|off | |
4982 | set may-insert-breakpoints on|off | |
4983 | set may-insert-tracepoints on|off | |
4984 | set may-insert-fast-tracepoints on|off | |
4985 | set may-interrupt on|off | |
4986 | Set individual permissions for GDB effects on the target. Note that | |
4987 | some of these settings can have undesirable or surprising | |
4988 | consequences, particularly when changed in the middle of a session. | |
4989 | For instance, disabling the writing of memory can prevent | |
4990 | breakpoints from being inserted, cause single-stepping to fail, or | |
4991 | even crash your program, if you disable after breakpoints have been | |
4992 | inserted. However, GDB should not crash. | |
4993 | ||
4994 | set record memory-query on|off | |
4995 | show record memory-query | |
4996 | Control whether to stop the inferior if memory changes caused | |
4997 | by an instruction cannot be recorded. | |
4998 | ||
53a71c06 CR |
4999 | * Changed commands |
5000 | ||
5001 | disassemble | |
5002 | The disassemble command now supports "start,+length" form of two arguments. | |
5003 | ||
f3e9a817 PM |
5004 | * Python scripting |
5005 | ||
9279c692 JB |
5006 | ** GDB now provides a new directory location, called the python directory, |
5007 | where Python scripts written for GDB can be installed. The location | |
5008 | of that directory is <data-directory>/python, where <data-directory> | |
5009 | is the GDB data directory. For more details, see section `Scripting | |
5010 | GDB using Python' in the manual. | |
5011 | ||
adc36818 | 5012 | ** The GDB Python API now has access to breakpoints, symbols, symbol |
595939de PM |
5013 | tables, program spaces, inferiors, threads and frame's code blocks. |
5014 | Additionally, GDB Parameters can now be created from the API, and | |
5015 | manipulated via set/show in the CLI. | |
f870a310 | 5016 | |
fa33c3cd | 5017 | ** New functions gdb.target_charset, gdb.target_wide_charset, |
07ca107c DE |
5018 | gdb.progspaces, gdb.current_progspace, and gdb.string_to_argv. |
5019 | ||
5020 | ** New exception gdb.GdbError. | |
fa33c3cd DE |
5021 | |
5022 | ** Pretty-printers are now also looked up in the current program space. | |
f3e9a817 | 5023 | |
967cf477 DE |
5024 | ** Pretty-printers can now be individually enabled and disabled. |
5025 | ||
8a1ea21f DE |
5026 | ** GDB now looks for names of Python scripts to auto-load in a |
5027 | special section named `.debug_gdb_scripts', in addition to looking | |
5028 | for a OBJFILE-gdb.py script when OBJFILE is read by the debugger. | |
5029 | ||
a7bdde9e VP |
5030 | * Tracepoint actions were unified with breakpoint commands. In particular, |
5031 | there are no longer differences in "info break" output for breakpoints and | |
5032 | tracepoints and the "commands" command can be used for both tracepoints and | |
5033 | regular breakpoints. | |
5034 | ||
05071a4d PA |
5035 | * New targets |
5036 | ||
5037 | ARM Symbian arm*-*-symbianelf* | |
5038 | ||
6aecb9c2 JB |
5039 | * D language support. |
5040 | GDB now supports debugging programs written in the D programming | |
5041 | language. | |
5042 | ||
431e49aa TJB |
5043 | * GDB now supports the extended ptrace interface for PowerPC which is |
5044 | available since Linux kernel version 2.6.34. This automatically enables | |
5045 | any hardware breakpoints and additional hardware watchpoints available in | |
5046 | the processor. The old ptrace interface exposes just one hardware | |
5047 | watchpoint and no hardware breakpoints. | |
5048 | ||
5049 | * GDB is now able to use the Data Value Compare (DVC) register available on | |
5050 | embedded PowerPC processors to implement in hardware simple watchpoint | |
5051 | conditions of the form: | |
5052 | ||
5053 | watch ADDRESS|VARIABLE if ADDRESS|VARIABLE == CONSTANT EXPRESSION | |
5054 | ||
5055 | This works in native GDB running on Linux kernels with the extended ptrace | |
5056 | interface mentioned above. | |
5057 | ||
bfbf3774 | 5058 | *** Changes in GDB 7.1 |
abc7453d | 5059 | |
4eef138c TT |
5060 | * C++ Improvements |
5061 | ||
5062 | ** Namespace Support | |
71dee663 SW |
5063 | |
5064 | GDB now supports importing of namespaces in C++. This enables the | |
5065 | user to inspect variables from imported namespaces. Support for | |
5066 | namepace aliasing has also been added. So, if a namespace is | |
5067 | aliased in the current scope (e.g. namepace C=A; ) the user can | |
5068 | print variables using the alias (e.g. (gdb) print C::x). | |
5069 | ||
4eef138c TT |
5070 | ** Bug Fixes |
5071 | ||
5072 | All known bugs relating to the printing of virtual base class were | |
5073 | fixed. It is now possible to call overloaded static methods using a | |
5074 | qualified name. | |
5075 | ||
5076 | ** Cast Operators | |
5077 | ||
5078 | The C++ cast operators static_cast<>, dynamic_cast<>, const_cast<>, | |
5079 | and reinterpret_cast<> are now handled by the C++ expression parser. | |
5080 | ||
2d1c1221 ME |
5081 | * New targets |
5082 | ||
5083 | Xilinx MicroBlaze microblaze-*-* | |
34207b9e | 5084 | Renesas RX rx-*-elf |
2d1c1221 ME |
5085 | |
5086 | * New Simulators | |
5087 | ||
5088 | Xilinx MicroBlaze microblaze | |
34207b9e | 5089 | Renesas RX rx |
2d1c1221 | 5090 | |
6c95b8df PA |
5091 | * Multi-program debugging. |
5092 | ||
5093 | GDB now has support for multi-program (a.k.a. multi-executable or | |
5094 | multi-exec) debugging. This allows for debugging multiple inferiors | |
5095 | simultaneously each running a different program under the same GDB | |
5096 | session. See "Debugging Multiple Inferiors and Programs" in the | |
5097 | manual for more information. This implied some user visible changes | |
5098 | in the multi-inferior support. For example, "info inferiors" now | |
5099 | lists inferiors that are not running yet or that have exited | |
5100 | already. See also "New commands" and "New options" below. | |
5101 | ||
d5551862 SS |
5102 | * New tracing features |
5103 | ||
5104 | GDB's tracepoint facility now includes several new features: | |
5105 | ||
5106 | ** Trace state variables | |
f61e138d SS |
5107 | |
5108 | GDB tracepoints now include support for trace state variables, which | |
5109 | are variables managed by the target agent during a tracing | |
5110 | experiment. They are useful for tracepoints that trigger each | |
5111 | other, so for instance one tracepoint can count hits in a variable, | |
5112 | and then a second tracepoint has a condition that is true when the | |
5113 | count reaches a particular value. Trace state variables share the | |
5114 | $-syntax of GDB convenience variables, and can appear in both | |
5115 | tracepoint actions and condition expressions. Use the "tvariable" | |
5116 | command to create, and "info tvariables" to view; see "Trace State | |
5117 | Variables" in the manual for more detail. | |
7a697b8d | 5118 | |
d5551862 | 5119 | ** Fast tracepoints |
7a697b8d SS |
5120 | |
5121 | GDB now includes an option for defining fast tracepoints, which | |
5122 | targets may implement more efficiently, such as by installing a jump | |
5123 | into the target agent rather than a trap instruction. The resulting | |
5124 | speedup can be by two orders of magnitude or more, although the | |
5125 | tradeoff is that some program locations on some target architectures | |
5126 | might not allow fast tracepoint installation, for instance if the | |
5127 | instruction to be replaced is shorter than the jump. To request a | |
5128 | fast tracepoint, use the "ftrace" command, with syntax identical to | |
5129 | the regular trace command. | |
5130 | ||
d5551862 SS |
5131 | ** Disconnected tracing |
5132 | ||
5133 | It is now possible to detach GDB from the target while it is running | |
5134 | a trace experiment, then reconnect later to see how the experiment | |
5135 | is going. In addition, a new variable disconnected-tracing lets you | |
5136 | tell the target agent whether to continue running a trace if the | |
5137 | connection is lost unexpectedly. | |
5138 | ||
00bf0b85 SS |
5139 | ** Trace files |
5140 | ||
5141 | GDB now has the ability to save the trace buffer into a file, and | |
5142 | then use that file as a target, similarly to you can do with | |
5143 | corefiles. You can select trace frames, print data that was | |
5144 | collected in them, and use tstatus to display the state of the | |
5145 | tracing run at the moment that it was saved. To create a trace | |
5146 | file, use "tsave <filename>", and to use it, do "target tfile | |
5147 | <name>". | |
4daf5ac0 SS |
5148 | |
5149 | ** Circular trace buffer | |
5150 | ||
5151 | You can ask the target agent to handle the trace buffer as a | |
5152 | circular buffer, discarding the oldest trace frames to make room for | |
5153 | newer ones, by setting circular-trace-buffer to on. This feature may | |
5154 | not be available for all target agents. | |
5155 | ||
21a0512e PP |
5156 | * Changed commands |
5157 | ||
5158 | disassemble | |
5159 | The disassemble command, when invoked with two arguments, now requires | |
5160 | the arguments to be comma-separated. | |
5161 | ||
0fe7935b DJ |
5162 | info variables |
5163 | The info variables command now displays variable definitions. Files | |
5164 | which only declare a variable are not shown. | |
5165 | ||
fb2e7cb4 JB |
5166 | source |
5167 | The source command is now capable of sourcing Python scripts. | |
5168 | This feature is dependent on the debugger being build with Python | |
5169 | support. | |
5170 | ||
5171 | Related to this enhancement is also the introduction of a new command | |
5172 | "set script-extension" (see below). | |
5173 | ||
6c95b8df PA |
5174 | * New commands (for set/show, see "New options" below) |
5175 | ||
399cd161 MS |
5176 | record save [<FILENAME>] |
5177 | Save a file (in core file format) containing the process record | |
5178 | execution log for replay debugging at a later time. | |
5179 | ||
5180 | record restore <FILENAME> | |
5181 | Restore the process record execution log that was saved at an | |
5182 | earlier time, for replay debugging. | |
5183 | ||
6c95b8df PA |
5184 | add-inferior [-copies <N>] [-exec <FILENAME>] |
5185 | Add a new inferior. | |
5186 | ||
5187 | clone-inferior [-copies <N>] [ID] | |
5188 | Make a new inferior ready to execute the same program another | |
5189 | inferior has loaded. | |
5190 | ||
5191 | remove-inferior ID | |
5192 | Remove an inferior. | |
5193 | ||
5194 | maint info program-spaces | |
5195 | List the program spaces loaded into GDB. | |
5196 | ||
9a7071a8 JB |
5197 | set remote interrupt-sequence [Ctrl-C | BREAK | BREAK-g] |
5198 | show remote interrupt-sequence | |
5199 | Allow the user to select one of ^C, a BREAK signal or BREAK-g | |
5200 | as the sequence to the remote target in order to interrupt the execution. | |
5201 | Ctrl-C is a default. Some system prefers BREAK which is high level of | |
5202 | serial line for some certain time. Linux kernel prefers BREAK-g, a.k.a | |
5203 | Magic SysRq g. It is BREAK signal and character 'g'. | |
5204 | ||
5205 | set remote interrupt-on-connect [on | off] | |
5206 | show remote interrupt-on-connect | |
5207 | When interrupt-on-connect is ON, gdb sends interrupt-sequence to | |
5208 | remote target when gdb connects to it. This is needed when you debug | |
5209 | Linux kernel. | |
5210 | ||
5211 | set remotebreak [on | off] | |
5212 | show remotebreak | |
5213 | Deprecated. Use "set/show remote interrupt-sequence" instead. | |
5214 | ||
f61e138d SS |
5215 | tvariable $NAME [ = EXP ] |
5216 | Create or modify a trace state variable. | |
5217 | ||
5218 | info tvariables | |
5219 | List trace state variables and their values. | |
5220 | ||
5221 | delete tvariable $NAME ... | |
5222 | Delete one or more trace state variables. | |
5223 | ||
6da95a67 SS |
5224 | teval EXPR, ... |
5225 | Evaluate the given expressions without collecting anything into the | |
5226 | trace buffer. (Valid in tracepoint actions only.) | |
5227 | ||
7a697b8d SS |
5228 | ftrace FN / FILE:LINE / *ADDR |
5229 | Define a fast tracepoint at the given function, line, or address. | |
5230 | ||
b0f02ee9 JK |
5231 | * New expression syntax |
5232 | ||
5233 | GDB now parses the 0b prefix of binary numbers the same way as GCC does. | |
5234 | GDB now parses 0b101010 identically with 42. | |
5235 | ||
6c95b8df PA |
5236 | * New options |
5237 | ||
5238 | set follow-exec-mode new|same | |
5239 | show follow-exec-mode | |
5240 | Control whether GDB reuses the same inferior across an exec call or | |
5241 | creates a new one. This is useful to be able to restart the old | |
5242 | executable after the inferior having done an exec call. | |
5243 | ||
236f1d4d SS |
5244 | set default-collect EXPR, ... |
5245 | show default-collect | |
5246 | Define a list of expressions to be collected at each tracepoint. | |
5247 | This is a useful way to ensure essential items are not overlooked, | |
5248 | such as registers or a critical global variable. | |
5249 | ||
d5551862 SS |
5250 | set disconnected-tracing |
5251 | show disconnected-tracing | |
5252 | If set to 1, the target is instructed to continue tracing if it | |
5253 | loses its connection to GDB. If 0, the target is to stop tracing | |
5254 | upon disconnection. | |
5255 | ||
4daf5ac0 SS |
5256 | set circular-trace-buffer |
5257 | show circular-trace-buffer | |
5258 | If set to on, the target is instructed to use a circular trace buffer | |
5259 | and discard the oldest trace frames instead of stopping the trace due | |
5260 | to a full trace buffer. If set to off, the trace stops when the buffer | |
5261 | fills up. Some targets may not support this. | |
5262 | ||
fb2e7cb4 JB |
5263 | set script-extension off|soft|strict |
5264 | show script-extension | |
5265 | If set to "off", the debugger does not perform any script language | |
5266 | recognition, and all sourced files are assumed to be GDB scripts. | |
5267 | If set to "soft" (the default), files are sourced according to | |
5268 | filename extension, falling back to GDB scripts if the first | |
5269 | evaluation failed. | |
5270 | If set to "strict", files are sourced according to filename extension. | |
5271 | ||
2b71fc8e JB |
5272 | set ada trust-PAD-over-XVS on|off |
5273 | show ada trust-PAD-over-XVS | |
5274 | If off, activate a workaround against a bug in the debugging information | |
5275 | generated by the compiler for PAD types (see gcc/exp_dbug.ads in | |
5276 | the GCC sources for more information about the GNAT encoding and | |
5277 | PAD types in particular). It is always safe to set this option to | |
5278 | off, but this introduces a slight performance penalty. The default | |
5279 | is on. | |
5280 | ||
de2e5182 TT |
5281 | * Python API Improvements |
5282 | ||
5283 | ** GDB provides the new class gdb.LazyString. This is useful in | |
5284 | some pretty-printing cases. The new method gdb.Value.lazy_string | |
5285 | provides a simple way to create objects of this type. | |
5286 | ||
5287 | ** The fields returned by gdb.Type.fields now have an | |
5288 | `is_base_class' attribute. | |
5289 | ||
5290 | ** The new method gdb.Type.range returns the range of an array type. | |
5291 | ||
5292 | ** The new method gdb.parse_and_eval can be used to parse and | |
5293 | evaluate an expression. | |
5294 | ||
f61e138d SS |
5295 | * New remote packets |
5296 | ||
5297 | QTDV | |
5298 | Define a trace state variable. | |
5299 | ||
5300 | qTV | |
5301 | Get the current value of a trace state variable. | |
5302 | ||
d5551862 SS |
5303 | QTDisconnected |
5304 | Set desired tracing behavior upon disconnection. | |
5305 | ||
4daf5ac0 SS |
5306 | QTBuffer:circular |
5307 | Set the trace buffer to be linear or circular. | |
5308 | ||
d5551862 SS |
5309 | qTfP, qTsP |
5310 | Get data about the tracepoints currently in use. | |
5311 | ||
2d483d34 MS |
5312 | * Bug fixes |
5313 | ||
5314 | Process record now works correctly with hardware watchpoints. | |
5315 | ||
6e0e5977 JB |
5316 | Multiple bug fixes have been made to the mips-irix port, making it |
5317 | much more reliable. In particular: | |
5318 | - Debugging threaded applications is now possible again. Previously, | |
5319 | GDB would hang while starting the program, or while waiting for | |
5320 | the program to stop at a breakpoint. | |
5321 | - Attaching to a running process no longer hangs. | |
5322 | - An error occurring while loading a core file has been fixed. | |
5323 | - Changing the value of the PC register now works again. This fixes | |
5324 | problems observed when using the "jump" command, or when calling | |
5325 | a function from GDB, or even when assigning a new value to $pc. | |
5326 | - With the "finish" and "return" commands, the return value for functions | |
5327 | returning a small array is now correctly printed. | |
5328 | - It is now possible to break on shared library code which gets executed | |
5329 | during a shared library init phase (code executed while executing | |
5330 | their .init section). Previously, the breakpoint would have no effect. | |
5331 | - GDB is now able to backtrace through the signal handler for | |
5332 | non-threaded programs. | |
5333 | ||
93c26624 JK |
5334 | PIE (Position Independent Executable) programs debugging is now supported. |
5335 | This includes debugging execution of PIC (Position Independent Code) shared | |
5336 | libraries although for that, it should be possible to run such libraries as an | |
5337 | executable program. | |
5338 | ||
abc7453d | 5339 | *** Changes in GDB 7.0 |
75feb17d | 5340 | |
4efc6507 DE |
5341 | * GDB now has an interface for JIT compilation. Applications that |
5342 | dynamically generate code can create symbol files in memory and register | |
5343 | them with GDB. For users, the feature should work transparently, and | |
5344 | for JIT developers, the interface is documented in the GDB manual in the | |
5345 | "JIT Compilation Interface" chapter. | |
5346 | ||
782b2b07 SS |
5347 | * Tracepoints may now be conditional. The syntax is as for |
5348 | breakpoints; either an "if" clause appended to the "trace" command, | |
5349 | or the "condition" command is available. GDB sends the condition to | |
5350 | the target for evaluation using the same bytecode format as is used | |
5351 | for tracepoint actions. | |
5352 | ||
53a71c06 CR |
5353 | * The disassemble command now supports: an optional /r modifier, print the |
5354 | raw instructions in hex as well as in symbolic form, and an optional /m | |
5355 | modifier to print mixed source+assembly. | |
e6158f16 | 5356 | |
e7a8dbfb HZ |
5357 | * Process record and replay |
5358 | ||
5359 | In a architecture environment that supports ``process record and | |
5360 | replay'', ``process record and replay'' target can record a log of | |
5361 | the process execution, and replay it with both forward and reverse | |
5362 | execute commands. | |
5363 | ||
64644d9b MS |
5364 | * Reverse debugging: GDB now has new commands reverse-continue, reverse- |
5365 | step, reverse-next, reverse-finish, reverse-stepi, reverse-nexti, and | |
5366 | set execution-direction {forward|reverse}, for targets that support | |
5367 | reverse execution. | |
5368 | ||
b9412953 DD |
5369 | * GDB now supports hardware watchpoints on MIPS/Linux systems. This |
5370 | feature is available with a native GDB running on kernel version | |
5371 | 2.6.28 or later. | |
5372 | ||
6c7a06a3 TT |
5373 | * GDB now has support for multi-byte and wide character sets on the |
5374 | target. Strings whose character type is wchar_t, char16_t, or | |
5375 | char32_t are now correctly printed. GDB supports wide- and unicode- | |
5376 | literals in C, that is, L'x', L"string", u'x', u"string", U'x', and | |
5377 | U"string" syntax. And, GDB allows the "%ls" and "%lc" formats in | |
5378 | `printf'. This feature requires iconv to work properly; if your | |
5379 | system does not have a working iconv, GDB can use GNU libiconv. See | |
5380 | the installation instructions for more information. | |
5381 | ||
f1838a98 UW |
5382 | * GDB now supports automatic retrieval of shared library files from |
5383 | remote targets. To use this feature, specify a system root that begins | |
5384 | with the `remote:' prefix, either via the `set sysroot' command or via | |
5385 | the `--with-sysroot' configure-time option. | |
5386 | ||
55333a84 DE |
5387 | * "info sharedlibrary" now takes an optional regex of libraries to show, |
5388 | and it now reports if a shared library has no debugging information. | |
5389 | ||
7f6a6314 PM |
5390 | * Commands `set debug-file-directory', `set solib-search-path' and `set args' |
5391 | now complete on file names. | |
5392 | ||
65d12d83 TT |
5393 | * When completing in expressions, gdb will attempt to limit |
5394 | completions to allowable structure or union fields, where appropriate. | |
5395 | For instance, consider: | |
5396 | ||
5397 | # struct example { int f1; double f2; }; | |
5398 | # struct example variable; | |
5399 | (gdb) p variable. | |
5400 | ||
5401 | If the user types TAB at the end of this command line, the available | |
5402 | completions will be "f1" and "f2". | |
5403 | ||
edb3359d DJ |
5404 | * Inlined functions are now supported. They show up in backtraces, and |
5405 | the "step", "next", and "finish" commands handle them automatically. | |
5406 | ||
2fae03e8 TT |
5407 | * GDB now supports the token-splicing (##) and stringification (#) |
5408 | operators when expanding macros. It also supports variable-arity | |
5409 | macros. | |
5410 | ||
47a3467a | 5411 | * GDB now supports inspecting extra signal information, exported by |
58d6951d DJ |
5412 | the new $_siginfo convenience variable. The feature is currently |
5413 | implemented on linux ARM, i386 and amd64. | |
5414 | ||
5415 | * GDB can now display the VFP floating point registers and NEON vector | |
5416 | registers on ARM targets. Both ARM GNU/Linux native GDB and gdbserver | |
5417 | can provide these registers (requires Linux 2.6.30 or later). Remote | |
5418 | and simulator targets may also provide them. | |
47a3467a | 5419 | |
08388c79 DE |
5420 | * New remote packets |
5421 | ||
5422 | qSearch:memory: | |
5423 | Search memory for a sequence of bytes. | |
5424 | ||
a6f3e723 SL |
5425 | QStartNoAckMode |
5426 | Turn off `+'/`-' protocol acknowledgments to permit more efficient | |
5427 | operation over reliable transport links. Use of this packet is | |
5428 | controlled by the `set remote noack-packet' command. | |
5429 | ||
d7713ae0 EZ |
5430 | vKill |
5431 | Kill the process with the specified process ID. Use this in preference | |
5432 | to `k' when multiprocess protocol extensions are supported. | |
5433 | ||
07e059b5 VP |
5434 | qXfer:osdata:read |
5435 | Obtains additional operating system information | |
5436 | ||
47a3467a PA |
5437 | qXfer:siginfo:read |
5438 | qXfer:siginfo:write | |
5439 | Read or write additional signal information. | |
5440 | ||
060871df PA |
5441 | * Removed remote protocol undocumented extension |
5442 | ||
5443 | An undocumented extension to the remote protocol's `S' stop reply | |
82f06518 | 5444 | packet that permitted the stub to pass a process id was removed. |
060871df PA |
5445 | Remote servers should use the `T' stop reply packet instead. |
5446 | ||
c055b101 | 5447 | * GDB now supports multiple function calling conventions according to the |
a0ef4274 | 5448 | DWARF-2 DW_AT_calling_convention function attribute. |
c055b101 CV |
5449 | |
5450 | * The SH target utilizes the aforementioned change to distinguish between gcc | |
a0ef4274 DJ |
5451 | and Renesas calling convention. It also adds the new CLI commands |
5452 | `set/show sh calling-convention'. | |
c055b101 | 5453 | |
31fffb02 CS |
5454 | * GDB can now read compressed debug sections, as produced by GNU gold |
5455 | with the --compress-debug-sections=zlib flag. | |
5456 | ||
88d8a8e0 JB |
5457 | * 64-bit core files are now supported on AIX. |
5458 | ||
7f99b190 JB |
5459 | * Thread switching is now supported on Tru64. |
5460 | ||
ccd213ac DJ |
5461 | * Watchpoints can now be set on unreadable memory locations, e.g. addresses |
5462 | which will be allocated using malloc later in program execution. | |
5463 | ||
82f06518 | 5464 | * The qXfer:libraries:read remote protocol packet now allows passing a |
31fffb02 | 5465 | list of section offsets. |
1fddbabb | 5466 | |
a0ef4274 DJ |
5467 | * On GNU/Linux, GDB can now attach to stopped processes. Several race |
5468 | conditions handling signals delivered during attach or thread creation | |
5469 | have also been fixed. | |
5470 | ||
bfb8797a | 5471 | * GDB now supports the use of DWARF boolean types for Ada's type Boolean. |
158c7665 PH |
5472 | From the user's standpoint, all unqualified instances of True and False |
5473 | are treated as the standard definitions, regardless of context. | |
bfb8797a | 5474 | |
71c25dea TT |
5475 | * GDB now parses C++ symbol and type names more flexibly. For |
5476 | example, given: | |
5477 | ||
5478 | template<typename T> class C { }; | |
5479 | C<char const *> c; | |
5480 | ||
5481 | GDB will now correctly handle all of: | |
5482 | ||
5483 | ptype C<char const *> | |
5484 | ptype C<char const*> | |
5485 | ptype C<const char *> | |
5486 | ptype C<const char*> | |
5487 | ||
ccd213ac DJ |
5488 | * New features in the GDB remote stub, gdbserver |
5489 | ||
5490 | - The "--wrapper" command-line argument tells gdbserver to use a | |
5491 | wrapper program to launch programs for debugging. | |
5492 | ||
7ae0e2a2 UW |
5493 | - On PowerPC and S/390 targets, it is now possible to use a single |
5494 | gdbserver executable to debug both 32-bit and 64-bit programs. | |
5495 | (This requires gdbserver itself to be built as a 64-bit executable.) | |
5496 | ||
a6f3e723 SL |
5497 | - gdbserver uses the new noack protocol mode for TCP connections to |
5498 | reduce communications latency, if also supported and enabled in GDB. | |
5499 | ||
da8bd9a3 DJ |
5500 | - Support for the sparc64-linux-gnu target is now included in |
5501 | gdbserver. | |
5502 | ||
d70e31dd DE |
5503 | - The amd64-linux build of gdbserver now supports debugging both |
5504 | 32-bit and 64-bit programs. | |
5505 | ||
5506 | - The i386-linux, amd64-linux, and i386-win32 builds of gdbserver | |
5507 | now support hardware watchpoints, and will use them automatically | |
5508 | as appropriate. | |
5509 | ||
d57a3c85 TJB |
5510 | * Python scripting |
5511 | ||
5512 | GDB now has support for scripting using Python. Whether this is | |
5513 | available is determined at configure time. | |
5514 | ||
d8906c6f TJB |
5515 | New GDB commands can now be written in Python. |
5516 | ||
aadc346a JB |
5517 | * Ada tasking support |
5518 | ||
5519 | Ada tasks can now be inspected in GDB. The following commands have | |
5520 | been introduced: | |
5521 | ||
5522 | info tasks | |
5523 | Print the list of Ada tasks. | |
5524 | info task N | |
5525 | Print detailed information about task number N. | |
5526 | task | |
5527 | Print the task number of the current task. | |
5528 | task N | |
5529 | Switch the context of debugging to task number N. | |
5530 | ||
adb483fe DJ |
5531 | * Support for user-defined prefixed commands. The "define" command can |
5532 | add new commands to existing prefixes, e.g. "target". | |
5533 | ||
2277426b PA |
5534 | * Multi-inferior, multi-process debugging. |
5535 | ||
5536 | GDB now has generalized support for multi-inferior debugging. See | |
5537 | "Debugging Multiple Inferiors" in the manual for more information. | |
5538 | Although availability still depends on target support, the command | |
5539 | set is more uniform now. The GNU/Linux specific multi-forks support | |
5540 | has been migrated to this new framework. This implied some user | |
5541 | visible changes; see "New commands" and also "Removed commands" | |
5542 | below. | |
5543 | ||
08d16641 PA |
5544 | * Target descriptions can now describe the target OS ABI. See the |
5545 | "Target Description Format" section in the user manual for more | |
5546 | information. | |
5547 | ||
e35359c5 UW |
5548 | * Target descriptions can now describe "compatible" architectures |
5549 | to indicate that the target can execute applications for a different | |
5550 | architecture in addition to those for the main target architecture. | |
5551 | See the "Target Description Format" section in the user manual for | |
5552 | more information. | |
5553 | ||
85e747d2 UW |
5554 | * Multi-architecture debugging. |
5555 | ||
5556 | GDB now includes general supports for debugging applications on | |
5557 | hybrid systems that use more than one single processor architecture | |
5558 | at the same time. Each such hybrid architecture still requires | |
5559 | specific support to be added. The only hybrid architecture supported | |
5560 | in this version of GDB is the Cell Broadband Engine. | |
5561 | ||
5562 | * GDB now supports integrated debugging of Cell/B.E. applications that | |
5563 | use both the PPU and SPU architectures. To enable support for hybrid | |
5564 | Cell/B.E. debugging, you need to configure GDB to support both the | |
5565 | powerpc-linux or powerpc64-linux and the spu-elf targets, using the | |
5566 | --enable-targets configure option. | |
5567 | ||
11ade57a PA |
5568 | * Non-stop mode debugging. |
5569 | ||
5570 | For some targets, GDB now supports an optional mode of operation in | |
5571 | which you can examine stopped threads while other threads continue | |
5572 | to execute freely. This is referred to as non-stop mode, with the | |
5573 | old mode referred to as all-stop mode. See the "Non-Stop Mode" | |
5574 | section in the user manual for more information. | |
5575 | ||
5576 | To be able to support remote non-stop debugging, a remote stub needs | |
5577 | to implement the non-stop mode remote protocol extensions, as | |
5578 | described in the "Remote Non-Stop" section of the user manual. The | |
5579 | GDB remote stub, gdbserver, has been adjusted to support these | |
5580 | extensions on linux targets. | |
5581 | ||
d7713ae0 | 5582 | * New commands (for set/show, see "New options" below) |
75feb17d | 5583 | |
a96d9b2e SDJ |
5584 | catch syscall [NAME(S) | NUMBER(S)] |
5585 | Catch system calls. Arguments, which should be names of system | |
5586 | calls or their numbers, mean catch only those syscalls. Without | |
5587 | arguments, every syscall will be caught. When the inferior issues | |
5588 | any of the specified syscalls, GDB will stop and announce the system | |
5589 | call, both when it is called and when its call returns. This | |
5590 | feature is currently available with a native GDB running on the | |
5591 | Linux Kernel, under the following architectures: x86, x86_64, | |
5592 | PowerPC and PowerPC64. | |
5593 | ||
08388c79 DE |
5594 | find [/size-char] [/max-count] start-address, end-address|+search-space-size, |
5595 | val1 [, val2, ...] | |
5596 | Search memory for a sequence of bytes. | |
5597 | ||
d57a3c85 TJB |
5598 | maint set python print-stack |
5599 | maint show python print-stack | |
5600 | Show a stack trace when an error is encountered in a Python script. | |
5601 | ||
5602 | python [CODE] | |
5603 | Invoke CODE by passing it to the Python interpreter. | |
5604 | ||
d7713ae0 EZ |
5605 | macro define |
5606 | macro list | |
5607 | macro undef | |
5608 | These allow macros to be defined, undefined, and listed | |
5609 | interactively. | |
5610 | ||
5611 | info os processes | |
5612 | Show operating system information about processes. | |
5613 | ||
2277426b PA |
5614 | info inferiors |
5615 | List the inferiors currently under GDB's control. | |
5616 | ||
5617 | inferior NUM | |
5618 | Switch focus to inferior number NUM. | |
5619 | ||
5620 | detach inferior NUM | |
5621 | Detach from inferior number NUM. | |
5622 | ||
5623 | kill inferior NUM | |
5624 | Kill inferior number NUM. | |
5625 | ||
d7713ae0 EZ |
5626 | * New options |
5627 | ||
3285f3fe UW |
5628 | set spu stop-on-load |
5629 | show spu stop-on-load | |
5630 | Control whether to stop for new SPE threads during Cell/B.E. debugging. | |
5631 | ||
ff1a52c6 UW |
5632 | set spu auto-flush-cache |
5633 | show spu auto-flush-cache | |
5634 | Control whether to automatically flush the software-managed cache | |
5635 | during Cell/B.E. debugging. | |
5636 | ||
d7713ae0 EZ |
5637 | set sh calling-convention |
5638 | show sh calling-convention | |
5639 | Control the calling convention used when calling SH target functions. | |
5640 | ||
e0a3ce09 | 5641 | set debug timestamp |
75feb17d | 5642 | show debug timestamp |
d7713ae0 EZ |
5643 | Control display of timestamps with GDB debugging output. |
5644 | ||
5645 | set disassemble-next-line | |
5646 | show disassemble-next-line | |
5647 | Control display of disassembled source lines or instructions when | |
5648 | the debuggee stops. | |
5649 | ||
5650 | set remote noack-packet | |
5651 | show remote noack-packet | |
5652 | Set/show the use of remote protocol QStartNoAckMode packet. See above | |
5653 | under "New remote packets." | |
5654 | ||
5655 | set remote query-attached-packet | |
5656 | show remote query-attached-packet | |
5657 | Control use of remote protocol `qAttached' (query-attached) packet. | |
5658 | ||
5659 | set remote read-siginfo-object | |
5660 | show remote read-siginfo-object | |
5661 | Control use of remote protocol `qXfer:siginfo:read' (read-siginfo-object) | |
5662 | packet. | |
5663 | ||
5664 | set remote write-siginfo-object | |
5665 | show remote write-siginfo-object | |
5666 | Control use of remote protocol `qXfer:siginfo:write' (write-siginfo-object) | |
5667 | packet. | |
5668 | ||
40ab02ce MS |
5669 | set remote reverse-continue |
5670 | show remote reverse-continue | |
5671 | Control use of remote protocol 'bc' (reverse-continue) packet. | |
5672 | ||
5673 | set remote reverse-step | |
5674 | show remote reverse-step | |
5675 | Control use of remote protocol 'bs' (reverse-step) packet. | |
5676 | ||
d7713ae0 EZ |
5677 | set displaced-stepping |
5678 | show displaced-stepping | |
5679 | Control displaced stepping mode. Displaced stepping is a way to | |
5680 | single-step over breakpoints without removing them from the debuggee. | |
5681 | Also known as "out-of-line single-stepping". | |
5682 | ||
5683 | set debug displaced | |
5684 | show debug displaced | |
5685 | Control display of debugging info for displaced stepping. | |
5686 | ||
5687 | maint set internal-error | |
5688 | maint show internal-error | |
5689 | Control what GDB does when an internal error is detected. | |
5690 | ||
5691 | maint set internal-warning | |
5692 | maint show internal-warning | |
5693 | Control what GDB does when an internal warning is detected. | |
75feb17d | 5694 | |
ccd213ac DJ |
5695 | set exec-wrapper |
5696 | show exec-wrapper | |
5697 | unset exec-wrapper | |
5698 | Use a wrapper program to launch programs for debugging. | |
fa4727a6 | 5699 | |
aad4b048 JB |
5700 | set multiple-symbols (all|ask|cancel) |
5701 | show multiple-symbols | |
5702 | The value of this variable can be changed to adjust the debugger behavior | |
5703 | when an expression or a breakpoint location contains an ambiguous symbol | |
5704 | name (an overloaded function name, for instance). | |
5705 | ||
74960c60 VP |
5706 | set breakpoint always-inserted |
5707 | show breakpoint always-inserted | |
5708 | Keep breakpoints always inserted in the target, as opposed to inserting | |
5709 | them when resuming the target, and removing them when the target stops. | |
5710 | This option can improve debugger performance on slow remote targets. | |
5711 | ||
0428b8f5 DJ |
5712 | set arm fallback-mode (arm|thumb|auto) |
5713 | show arm fallback-mode | |
5714 | set arm force-mode (arm|thumb|auto) | |
5715 | show arm force-mode | |
5716 | These commands control how ARM GDB determines whether instructions | |
5717 | are ARM or Thumb. The default for both settings is auto, which uses | |
5718 | the current CPSR value for instructions without symbols; previous | |
5719 | versions of GDB behaved as if "set arm fallback-mode arm". | |
5720 | ||
ef273377 CL |
5721 | set arm unwind-secure-frames |
5722 | Enable unwinding from Non-secure to Secure mode on Cortex-M with | |
5723 | Security extension. | |
5724 | This can trigger security exceptions when unwinding exception stacks. | |
5725 | ||
10568435 JK |
5726 | set disable-randomization |
5727 | show disable-randomization | |
5728 | Standalone programs run with the virtual address space randomization enabled | |
5729 | by default on some platforms. This option keeps the addresses stable across | |
5730 | multiple debugging sessions. | |
5731 | ||
d7713ae0 EZ |
5732 | set non-stop |
5733 | show non-stop | |
5734 | Control whether other threads are stopped or not when some thread hits | |
5735 | a breakpoint. | |
5736 | ||
b3eb342c | 5737 | set target-async |
d7713ae0 | 5738 | show target-async |
b3eb342c VP |
5739 | Requests that asynchronous execution is enabled in the target, if available. |
5740 | In this case, it's possible to resume target in the background, and interact | |
5741 | with GDB while the target is running. "show target-async" displays the | |
5742 | current state of asynchronous execution of the target. | |
5743 | ||
6c7a06a3 TT |
5744 | set target-wide-charset |
5745 | show target-wide-charset | |
5746 | The target-wide-charset is the name of the character set that GDB | |
5747 | uses when printing characters whose type is wchar_t. | |
5748 | ||
84603566 SL |
5749 | set tcp auto-retry (on|off) |
5750 | show tcp auto-retry | |
5751 | set tcp connect-timeout | |
5752 | show tcp connect-timeout | |
5753 | These commands allow GDB to retry failed TCP connections to a remote stub | |
5754 | with a specified timeout period; this is useful if the stub is launched | |
5755 | in parallel with GDB but may not be ready to accept connections immediately. | |
5756 | ||
17a37d48 PP |
5757 | set libthread-db-search-path |
5758 | show libthread-db-search-path | |
5759 | Control list of directories which GDB will search for appropriate | |
5760 | libthread_db. | |
5761 | ||
d4db2f36 PA |
5762 | set schedule-multiple (on|off) |
5763 | show schedule-multiple | |
5764 | Allow GDB to resume all threads of all processes or only threads of | |
5765 | the current process. | |
5766 | ||
4e5d721f DE |
5767 | set stack-cache |
5768 | show stack-cache | |
5769 | Use more aggressive caching for accesses to the stack. This improves | |
5770 | performance of remote debugging (particularly backtraces) without | |
5771 | affecting correctness. | |
5772 | ||
910c5da8 JB |
5773 | set interactive-mode (on|off|auto) |
5774 | show interactive-mode | |
5775 | Control whether GDB runs in interactive mode (on) or not (off). | |
5776 | When in interactive mode, GDB waits for the user to answer all | |
5777 | queries. Otherwise, GDB does not wait and assumes the default | |
5778 | answer. When set to auto (the default), GDB determines which | |
5779 | mode to use based on the stdin settings. | |
5780 | ||
2277426b PA |
5781 | * Removed commands |
5782 | ||
5783 | info forks | |
5784 | For program forks, this is replaced by the new more generic `info | |
5785 | inferiors' command. To list checkpoints, you can still use the | |
5786 | `info checkpoints' command, which was an alias for the `info forks' | |
5787 | command. | |
5788 | ||
5789 | fork NUM | |
5790 | Replaced by the new `inferior' command. To switch between | |
5791 | checkpoints, you can still use the `restart' command, which was an | |
5792 | alias for the `fork' command. | |
5793 | ||
5794 | process PID | |
5795 | This is removed, since some targets don't have a notion of | |
5796 | processes. To switch between processes, you can still use the | |
5797 | `inferior' command using GDB's own inferior number. | |
5798 | ||
5799 | delete fork NUM | |
5800 | For program forks, this is replaced by the new more generic `kill | |
5801 | inferior' command. To delete a checkpoint, you can still use the | |
5802 | `delete checkpoint' command, which was an alias for the `delete | |
5803 | fork' command. | |
5804 | ||
5805 | detach fork NUM | |
5806 | For program forks, this is replaced by the new more generic `detach | |
5807 | inferior' command. To detach a checkpoint, you can still use the | |
5808 | `detach checkpoint' command, which was an alias for the `detach | |
5809 | fork' command. | |
5810 | ||
a80b95ba TG |
5811 | * New native configurations |
5812 | ||
5813 | x86/x86_64 Darwin i[34567]86-*-darwin* | |
5814 | ||
b8bfd3ed JB |
5815 | x86_64 MinGW x86_64-*-mingw* |
5816 | ||
75a2d5e7 TT |
5817 | * New targets |
5818 | ||
c28c63d8 | 5819 | Lattice Mico32 lm32-* |
75a2d5e7 | 5820 | x86 DICOS i[34567]86-*-dicos* |
4c1d2973 | 5821 | x86_64 DICOS x86_64-*-dicos* |
5f814c3b | 5822 | S+core 3 score-*-* |
75a2d5e7 | 5823 | |
6de3146c PA |
5824 | * The GDB remote stub, gdbserver, now supports x86 Windows CE |
5825 | (mingw32ce) debugging. | |
5826 | ||
d5cbbe6e JB |
5827 | * Removed commands |
5828 | ||
5829 | catch load | |
5830 | catch unload | |
5831 | These commands were actually not implemented on any target. | |
5832 | ||
75feb17d | 5833 | *** Changes in GDB 6.8 |
f9ed52be | 5834 | |
af5ca30d NH |
5835 | * New native configurations |
5836 | ||
5837 | NetBSD/hppa hppa*-*netbsd* | |
94a0e877 | 5838 | Xtensa GNU/Linux xtensa*-*-linux* |
af5ca30d NH |
5839 | |
5840 | * New targets | |
5841 | ||
5842 | NetBSD/hppa hppa*-*-netbsd* | |
82f06518 | 5843 | Xtensa GNU/Linux xtensa*-*-linux* |
af5ca30d | 5844 | |
7a404eba PA |
5845 | * Change in command line behavior -- corefiles vs. process ids. |
5846 | ||
5847 | When the '-p NUMBER' or '--pid NUMBER' options are used, and | |
5848 | attaching to process NUMBER fails, GDB no longer attempts to open a | |
5849 | core file named NUMBER. Attaching to a program using the -c option | |
5850 | is no longer supported. Instead, use the '-p' or '--pid' options. | |
5851 | ||
430ebac9 PA |
5852 | * GDB can now be built as a native debugger for debugging Windows x86 |
5853 | (mingw32) Portable Executable (PE) programs. | |
5854 | ||
fe6fbf8b | 5855 | * Pending breakpoints no longer change their number when their address |
8d5f9c6f | 5856 | is resolved. |
fe6fbf8b VP |
5857 | |
5858 | * GDB now supports breakpoints with multiple locations, | |
8d5f9c6f DJ |
5859 | including breakpoints on C++ constructors, inside C++ templates, |
5860 | and in inlined functions. | |
fe6fbf8b | 5861 | |
10665d76 JB |
5862 | * GDB's ability to debug optimized code has been improved. GDB more |
5863 | accurately identifies function bodies and lexical blocks that occupy | |
5864 | more than one contiguous range of addresses. | |
5865 | ||
7cc46491 DJ |
5866 | * Target descriptions can now describe registers for PowerPC. |
5867 | ||
d71340b8 DJ |
5868 | * The GDB remote stub, gdbserver, now supports the AltiVec and SPE |
5869 | registers on PowerPC targets. | |
5870 | ||
523c4513 DJ |
5871 | * The GDB remote stub, gdbserver, now supports thread debugging on GNU/Linux |
5872 | targets even when the libthread_db library is not available. | |
5873 | ||
a6b151f1 DJ |
5874 | * The GDB remote stub, gdbserver, now supports the new file transfer |
5875 | commands (remote put, remote get, and remote delete). | |
5876 | ||
2d717e4f DJ |
5877 | * The GDB remote stub, gdbserver, now supports run and attach in |
5878 | extended-remote mode. | |
5879 | ||
24a836bd | 5880 | * hppa*64*-*-hpux11* target broken |
d001be7a DJ |
5881 | The debugger is unable to start a program and fails with the following |
5882 | error: "Error trying to get information about dynamic linker". | |
5883 | The gdb-6.7 release is also affected. | |
24a836bd | 5884 | |
d0c678e6 UW |
5885 | * GDB now supports the --enable-targets= configure option to allow |
5886 | building a single GDB executable that supports multiple remote | |
5887 | target architectures. | |
5888 | ||
d64a946d TJB |
5889 | * GDB now supports debugging C and C++ programs which use the |
5890 | Decimal Floating Point extension. In addition, the PowerPC target | |
5891 | now has a set of pseudo-registers to inspect decimal float values | |
5892 | stored in two consecutive float registers. | |
5893 | ||
ee163bf5 VP |
5894 | * The -break-insert MI command can optionally create pending |
5895 | breakpoints now. | |
5896 | ||
b93b6ca7 | 5897 | * Improved support for debugging Ada |
d001be7a DJ |
5898 | Many improvements to the Ada language support have been made. These |
5899 | include: | |
b93b6ca7 JB |
5900 | - Better support for Ada2005 interface types |
5901 | - Improved handling of arrays and slices in general | |
5902 | - Better support for Taft-amendment types | |
5903 | - The '{type} ADDRESS' expression is now allowed on the left hand-side | |
5904 | of an assignment | |
5905 | - Improved command completion in Ada | |
5906 | - Several bug fixes | |
5907 | ||
d001be7a DJ |
5908 | * GDB on GNU/Linux and HP/UX can now debug through "exec" of a new |
5909 | process. | |
5910 | ||
a6b151f1 DJ |
5911 | * New commands |
5912 | ||
6d53d0af JB |
5913 | set print frame-arguments (all|scalars|none) |
5914 | show print frame-arguments | |
5915 | The value of this variable can be changed to control which argument | |
5916 | values should be printed by the debugger when displaying a frame. | |
5917 | ||
a6b151f1 DJ |
5918 | remote put |
5919 | remote get | |
5920 | remote delete | |
5921 | Transfer files to and from a remote target, and delete remote files. | |
5922 | ||
5923 | * New MI commands | |
5924 | ||
5925 | -target-file-put | |
5926 | -target-file-get | |
5927 | -target-file-delete | |
5928 | Transfer files to and from a remote target, and delete remote files. | |
5929 | ||
5930 | * New remote packets | |
5931 | ||
5932 | vFile:open: | |
5933 | vFile:close: | |
5934 | vFile:pread: | |
5935 | vFile:pwrite: | |
5936 | vFile:unlink: | |
5937 | Open, close, read, write, and delete files on the remote system. | |
d0c678e6 | 5938 | |
2d717e4f DJ |
5939 | vAttach |
5940 | Attach to an existing process on the remote system, in extended-remote | |
5941 | mode. | |
5942 | ||
5943 | vRun | |
5944 | Run a new process on the remote system, in extended-remote mode. | |
5945 | ||
8d5f9c6f | 5946 | *** Changes in GDB 6.7 |
6dd09645 | 5947 | |
19d378fc MS |
5948 | * Resolved 101 resource leaks, null pointer dereferences, etc. in gdb, |
5949 | bfd, libiberty and opcodes, as revealed by static analysis donated by | |
5950 | Coverity, Inc. (http://scan.coverity.com). | |
5951 | ||
3a40aaa0 UW |
5952 | * When looking up multiply-defined global symbols, GDB will now prefer the |
5953 | symbol definition in the current shared library if it was built using the | |
5954 | -Bsymbolic linker option. | |
5955 | ||
a6ec25f2 BW |
5956 | * When the Text User Interface (TUI) is not configured, GDB will now |
5957 | recognize the -tui command-line option and print a message that the TUI | |
5958 | is not supported. | |
5959 | ||
6dd09645 JB |
5960 | * The GDB remote stub, gdbserver, now has lower overhead for high |
5961 | frequency signals (e.g. SIGALRM) via the QPassSignals packet. | |
5962 | ||
c9bb8148 DJ |
5963 | * GDB for MIPS targets now autodetects whether a remote target provides |
5964 | 32-bit or 64-bit register values. | |
5965 | ||
0d5de010 DJ |
5966 | * Support for C++ member pointers has been improved. |
5967 | ||
23181151 DJ |
5968 | * GDB now understands XML target descriptions, which specify the |
5969 | target's overall architecture. GDB can read a description from | |
5970 | a local file or over the remote serial protocol. | |
5971 | ||
ea37ba09 DJ |
5972 | * Vectors of single-byte data use a new integer type which is not |
5973 | automatically displayed as character or string data. | |
5974 | ||
5975 | * The /s format now works with the print command. It displays | |
5976 | arrays of single-byte integers and pointers to single-byte integers | |
5977 | as strings. | |
e1f48ead | 5978 | |
123dc839 DJ |
5979 | * Target descriptions can now describe target-specific registers, |
5980 | for architectures which have implemented the support (currently | |
8d5f9c6f | 5981 | only ARM, M68K, and MIPS). |
123dc839 | 5982 | |
05a4558a DJ |
5983 | * GDB and the GDB remote stub, gdbserver, now support the XScale |
5984 | iWMMXt coprocessor. | |
fb1e4ffc | 5985 | |
7c963485 PA |
5986 | * The GDB remote stub, gdbserver, has been updated to support |
5987 | ARM Windows CE (mingw32ce) debugging, and GDB Windows CE support | |
5988 | has been rewritten to use the standard GDB remote protocol. | |
5989 | ||
b18be20d DJ |
5990 | * GDB can now step into C++ functions which are called through thunks. |
5991 | ||
0ca420ce UW |
5992 | * GDB for the Cell/B.E. SPU now supports overlay debugging. |
5993 | ||
31d99776 DJ |
5994 | * The GDB remote protocol "qOffsets" packet can now honor ELF segment |
5995 | layout. It also supports a TextSeg= and DataSeg= response when only | |
5996 | segment base addresses (rather than offsets) are available. | |
5997 | ||
a4642986 MR |
5998 | * The /i format now outputs any trailing branch delay slot instructions |
5999 | immediately following the last instruction within the count specified. | |
6000 | ||
cfa9d6d9 DJ |
6001 | * The GDB remote protocol "T" stop reply packet now supports a |
6002 | "library" response. Combined with the new "qXfer:libraries:read" | |
6003 | packet, this response allows GDB to debug shared libraries on targets | |
6004 | where the operating system manages the list of loaded libraries (e.g. | |
6005 | Windows and SymbianOS). | |
255e7678 DJ |
6006 | |
6007 | * The GDB remote stub, gdbserver, now supports dynamic link libraries | |
6008 | (DLLs) on Windows and Windows CE targets. | |
f5db8714 JK |
6009 | |
6010 | * GDB now supports a faster verification that a .debug file matches its binary | |
6011 | according to its build-id signature, if the signature is present. | |
cfa9d6d9 | 6012 | |
c9bb8148 DJ |
6013 | * New commands |
6014 | ||
23776285 MR |
6015 | set remoteflow |
6016 | show remoteflow | |
6017 | Enable or disable hardware flow control (RTS/CTS) on the serial port | |
6018 | when debugging using remote targets. | |
6019 | ||
c9bb8148 DJ |
6020 | set mem inaccessible-by-default |
6021 | show mem inaccessible-by-default | |
6022 | If the target supplies a memory map, for instance via the remote | |
6023 | protocol's "qXfer:memory-map:read" packet, setting this variable | |
6024 | prevents GDB from accessing memory outside the memory map. This | |
6025 | is useful for targets with memory mapped registers or which react | |
6026 | badly to accesses of unmapped address space. | |
6027 | ||
6028 | set breakpoint auto-hw | |
6029 | show breakpoint auto-hw | |
6030 | If the target supplies a memory map, for instance via the remote | |
6031 | protocol's "qXfer:memory-map:read" packet, setting this variable | |
6032 | lets GDB use hardware breakpoints automatically for memory regions | |
6033 | where it can not use software breakpoints. This covers both the | |
6034 | "break" command and internal breakpoints used for other commands | |
6035 | including "next" and "finish". | |
6036 | ||
0e420bd8 JB |
6037 | catch exception |
6038 | catch exception unhandled | |
6039 | Stop the program execution when Ada exceptions are raised. | |
6040 | ||
6041 | catch assert | |
6042 | Stop the program execution when an Ada assertion failed. | |
6043 | ||
f822c95b DJ |
6044 | set sysroot |
6045 | show sysroot | |
6046 | Set an alternate system root for target files. This is a more | |
6047 | general version of "set solib-absolute-prefix", which is now | |
6048 | an alias to "set sysroot". | |
6049 | ||
83cc5c53 UW |
6050 | info spu |
6051 | Provide extended SPU facility status information. This set of | |
6052 | commands is available only when debugging the Cell/B.E. SPU | |
6053 | architecture. | |
6054 | ||
bd372731 MK |
6055 | * New native configurations |
6056 | ||
6057 | OpenBSD/sh sh*-*openbsd* | |
6058 | ||
23181151 DJ |
6059 | set tdesc filename |
6060 | unset tdesc filename | |
6061 | show tdesc filename | |
6062 | Use the specified local file as an XML target description, and do | |
6063 | not query the target for its built-in description. | |
6064 | ||
c9bb8148 DJ |
6065 | * New targets |
6066 | ||
54fe9172 | 6067 | OpenBSD/sh sh*-*-openbsd* |
c9bb8148 | 6068 | MIPS64 GNU/Linux (gdbserver) mips64-linux-gnu |
c077150c | 6069 | Toshiba Media Processor mep-elf |
c9bb8148 | 6070 | |
6dd09645 JB |
6071 | * New remote packets |
6072 | ||
6073 | QPassSignals: | |
6074 | Ignore the specified signals; pass them directly to the debugged program | |
6075 | without stopping other threads or reporting them to GDB. | |
6076 | ||
23181151 DJ |
6077 | qXfer:features:read: |
6078 | Read an XML target description from the target, which describes its | |
6079 | features. | |
6dd09645 | 6080 | |
83cc5c53 UW |
6081 | qXfer:spu:read: |
6082 | qXfer:spu:write: | |
6083 | Read or write contents of an spufs file on the target system. These | |
6084 | packets are available only on the Cell/B.E. SPU architecture. | |
6085 | ||
cfa9d6d9 DJ |
6086 | qXfer:libraries:read: |
6087 | Report the loaded shared libraries. Combined with new "T" packet | |
6088 | response, this packet allows GDB to debug shared libraries on | |
6089 | targets where the operating system manages the list of loaded | |
6090 | libraries (e.g. Windows and SymbianOS). | |
6091 | ||
483367ee DJ |
6092 | * Removed targets |
6093 | ||
6094 | Support for these obsolete configurations has been removed. | |
6095 | ||
d08950c4 UW |
6096 | alpha*-*-osf1* |
6097 | alpha*-*-osf2* | |
7ce59000 | 6098 | d10v-*-* |
483367ee DJ |
6099 | hppa*-*-hiux* |
6100 | i[34567]86-ncr-* | |
6101 | i[34567]86-*-dgux* | |
6102 | i[34567]86-*-lynxos* | |
6103 | i[34567]86-*-netware* | |
6104 | i[34567]86-*-sco3.2v5* | |
6105 | i[34567]86-*-sco3.2v4* | |
6106 | i[34567]86-*-sco* | |
6107 | i[34567]86-*-sysv4.2* | |
6108 | i[34567]86-*-sysv4* | |
6109 | i[34567]86-*-sysv5* | |
6110 | i[34567]86-*-unixware2* | |
6111 | i[34567]86-*-unixware* | |
6112 | i[34567]86-*-sysv* | |
6113 | i[34567]86-*-isc* | |
6114 | m68*-cisco*-* | |
6115 | m68*-tandem-* | |
ad527d2e | 6116 | mips*-*-pe |
483367ee | 6117 | rs6000-*-lynxos* |
ad527d2e | 6118 | sh*-*-pe |
483367ee | 6119 | |
7ce59000 DJ |
6120 | * Other removed features |
6121 | ||
6122 | target abug | |
6123 | target cpu32bug | |
6124 | target est | |
6125 | target rom68k | |
6126 | ||
6127 | Various m68k-only ROM monitors. | |
6128 | ||
ea35711c DJ |
6129 | target hms |
6130 | target e7000 | |
6131 | target sh3 | |
6132 | target sh3e | |
6133 | ||
6134 | Various Renesas ROM monitors and debugging interfaces for SH and | |
6135 | H8/300. | |
6136 | ||
6137 | target ocd | |
6138 | ||
6139 | Support for a Macraigor serial interface to on-chip debugging. | |
6140 | GDB does not directly support the newer parallel or USB | |
6141 | interfaces. | |
6142 | ||
7ce59000 DJ |
6143 | DWARF 1 support |
6144 | ||
6145 | A debug information format. The predecessor to DWARF 2 and | |
6146 | DWARF 3, which are still supported. | |
6147 | ||
54d61198 DJ |
6148 | Support for the HP aCC compiler on HP-UX/PA-RISC |
6149 | ||
6150 | SOM-encapsulated symbolic debugging information, automatic | |
6151 | invocation of pxdb, and the aCC custom C++ ABI. This does not | |
6152 | affect HP-UX for Itanium or GCC for HP-UX/PA-RISC. Code compiled | |
6153 | with aCC can still be debugged on an assembly level. | |
6154 | ||
ea35711c DJ |
6155 | MIPS ".pdr" sections |
6156 | ||
6157 | A MIPS-specific format used to describe stack frame layout | |
6158 | in debugging information. | |
6159 | ||
6160 | Scheme support | |
6161 | ||
6162 | GDB could work with an older version of Guile to debug | |
6163 | the interpreter and Scheme programs running in it. | |
6164 | ||
1a69e1e4 DJ |
6165 | set mips stack-arg-size |
6166 | set mips saved-gpreg-size | |
6167 | ||
6168 | Use "set mips abi" to control parameter passing for MIPS. | |
6169 | ||
6dd09645 | 6170 | *** Changes in GDB 6.6 |
e374b601 | 6171 | |
ca3bf3bd DJ |
6172 | * New targets |
6173 | ||
6174 | Xtensa xtensa-elf | |
9c309e77 | 6175 | Cell Broadband Engine SPU spu-elf |
ca3bf3bd | 6176 | |
6aec2e11 DJ |
6177 | * GDB can now be configured as a cross-debugger targeting native Windows |
6178 | (mingw32) or Cygwin. It can communicate with a remote debugging stub | |
6179 | running on a Windows system over TCP/IP to debug Windows programs. | |
6180 | ||
6181 | * The GDB remote stub, gdbserver, has been updated to support Windows and | |
6182 | Cygwin debugging. Both single-threaded and multi-threaded programs are | |
6183 | supported. | |
6184 | ||
17218d91 DJ |
6185 | * The "set trust-readonly-sections" command works again. This command was |
6186 | broken in GDB 6.3, 6.4, and 6.5. | |
6187 | ||
9ebce043 DJ |
6188 | * The "load" command now supports writing to flash memory, if the remote |
6189 | stub provides the required support. | |
6190 | ||
7d3d3ece DJ |
6191 | * Support for GNU/Linux Thread Local Storage (TLS, per-thread variables) no |
6192 | longer requires symbolic debug information (e.g. DWARF-2). | |
6193 | ||
4f8253f3 JB |
6194 | * New commands |
6195 | ||
6196 | set substitute-path | |
6197 | unset substitute-path | |
6198 | show substitute-path | |
6199 | Manage a list of substitution rules that GDB uses to rewrite the name | |
6200 | of the directories where the sources are located. This can be useful | |
6201 | for instance when the sources were moved to a different location | |
6202 | between compilation and debugging. | |
6203 | ||
9fa66fd7 AS |
6204 | set trace-commands |
6205 | show trace-commands | |
6206 | Print each CLI command as it is executed. Each command is prefixed with | |
6207 | a number of `+' symbols representing the nesting depth. | |
6208 | The source command now has a `-v' option to enable the same feature. | |
6209 | ||
1f5befc1 DJ |
6210 | * REMOVED features |
6211 | ||
6212 | The ARM Demon monitor support (RDP protocol, "target rdp"). | |
6213 | ||
2ec3381a DJ |
6214 | Kernel Object Display, an embedded debugging feature which only worked with |
6215 | an obsolete version of Cisco IOS. | |
6216 | ||
3d00d119 DJ |
6217 | The 'set download-write-size' and 'show download-write-size' commands. |
6218 | ||
be2a5f71 DJ |
6219 | * New remote packets |
6220 | ||
6221 | qSupported: | |
6222 | Tell a stub about GDB client features, and request remote target features. | |
6223 | The first feature implemented is PacketSize, which allows the target to | |
6224 | specify the size of packets it can handle - to minimize the number of | |
6225 | packets required and improve performance when connected to a remote | |
6226 | target. | |
6227 | ||
0876f84a DJ |
6228 | qXfer:auxv:read: |
6229 | Fetch an OS auxilliary vector from the remote stub. This packet is a | |
6230 | more efficient replacement for qPart:auxv:read. | |
6231 | ||
9ebce043 DJ |
6232 | qXfer:memory-map:read: |
6233 | Fetch a memory map from the remote stub, including information about | |
6234 | RAM, ROM, and flash memory devices. | |
6235 | ||
6236 | vFlashErase: | |
6237 | vFlashWrite: | |
6238 | vFlashDone: | |
6239 | Erase and program a flash memory device. | |
6240 | ||
0876f84a DJ |
6241 | * Removed remote packets |
6242 | ||
6243 | qPart:auxv:read: | |
6244 | This packet has been replaced by qXfer:auxv:read. Only GDB 6.4 and 6.5 | |
6245 | used it, and only gdbserver implemented it. | |
6246 | ||
e374b601 | 6247 | *** Changes in GDB 6.5 |
53e5f3cf | 6248 | |
96309189 MS |
6249 | * New targets |
6250 | ||
6251 | Renesas M32C/M16C m32c-elf | |
6252 | ||
6253 | Morpho Technologies ms1 ms1-elf | |
6254 | ||
53e5f3cf AS |
6255 | * New commands |
6256 | ||
6257 | init-if-undefined Initialize a convenience variable, but | |
6258 | only if it doesn't already have a value. | |
6259 | ||
ac264b3b MS |
6260 | The following commands are presently only implemented for native GNU/Linux: |
6261 | ||
6262 | checkpoint Save a snapshot of the program state. | |
6263 | ||
6264 | restart <n> Return the program state to a | |
6265 | previously saved state. | |
6266 | ||
6267 | info checkpoints List currently saved checkpoints. | |
6268 | ||
6269 | delete-checkpoint <n> Delete a previously saved checkpoint. | |
6270 | ||
6271 | set|show detach-on-fork Tell gdb whether to detach from a newly | |
6272 | forked process, or to keep debugging it. | |
6273 | ||
6274 | info forks List forks of the user program that | |
6275 | are available to be debugged. | |
6276 | ||
6277 | fork <n> Switch to debugging one of several | |
6278 | forks of the user program that are | |
6279 | available to be debugged. | |
6280 | ||
6281 | delete-fork <n> Delete a fork from the list of forks | |
6282 | that are available to be debugged (and | |
6283 | kill the forked process). | |
6284 | ||
6285 | detach-fork <n> Delete a fork from the list of forks | |
6286 | that are available to be debugged (and | |
6287 | allow the process to continue). | |
6288 | ||
3950dc3f NS |
6289 | * New architecture |
6290 | ||
6291 | Morpho Technologies ms2 ms1-elf | |
6292 | ||
0ea3f30e DJ |
6293 | * Improved Windows host support |
6294 | ||
6295 | GDB now builds as a cross debugger hosted on i686-mingw32, including | |
6296 | native console support, and remote communications using either | |
6297 | network sockets or serial ports. | |
6298 | ||
f79daebb GM |
6299 | * Improved Modula-2 language support |
6300 | ||
6301 | GDB can now print most types in the Modula-2 syntax. This includes: | |
6302 | basic types, set types, record types, enumerated types, range types, | |
6303 | pointer types and ARRAY types. Procedure var parameters are correctly | |
6304 | printed and hexadecimal addresses and character constants are also | |
6305 | written in the Modula-2 syntax. Best results can be obtained by using | |
6306 | GNU Modula-2 together with the -gdwarf-2 command line option. | |
6307 | ||
acab6ab2 MM |
6308 | * REMOVED features |
6309 | ||
6310 | The ARM rdi-share module. | |
6311 | ||
f4267320 DJ |
6312 | The Netware NLM debug server. |
6313 | ||
53e5f3cf | 6314 | *** Changes in GDB 6.4 |
156a53ca | 6315 | |
e0ecbda1 MK |
6316 | * New native configurations |
6317 | ||
02a677ac | 6318 | OpenBSD/arm arm*-*-openbsd* |
e0ecbda1 MK |
6319 | OpenBSD/mips64 mips64-*-openbsd* |
6320 | ||
d64a6579 KB |
6321 | * New targets |
6322 | ||
6323 | Morpho Technologies ms1 ms1-elf | |
6324 | ||
b33a6190 AS |
6325 | * New command line options |
6326 | ||
6327 | --batch-silent As for --batch, but totally silent. | |
6328 | --return-child-result The debugger will exist with the same value | |
6329 | the child (debugged) program exited with. | |
6330 | --eval-command COMMAND, -ex COMMAND | |
6331 | Execute a single GDB CLI command. This may be | |
6332 | specified multiple times and in conjunction | |
6333 | with the --command (-x) option. | |
6334 | ||
11dced61 AC |
6335 | * Deprecated commands removed |
6336 | ||
6337 | The following commands, that were deprecated in 2000, have been | |
6338 | removed: | |
6339 | ||
6340 | Command Replacement | |
6341 | set|show arm disassembly-flavor set|show arm disassembler | |
6342 | othernames set arm disassembler | |
6343 | set|show remotedebug set|show debug remote | |
6344 | set|show archdebug set|show debug arch | |
6345 | set|show eventdebug set|show debug event | |
6346 | regs info registers | |
6347 | ||
6fe85783 MK |
6348 | * New BSD user-level threads support |
6349 | ||
6350 | It is now possible to debug programs using the user-level threads | |
6351 | library on OpenBSD and FreeBSD. Currently supported (target) | |
6352 | configurations are: | |
6353 | ||
6354 | FreeBSD/amd64 x86_64-*-freebsd* | |
6355 | FreeBSD/i386 i386-*-freebsd* | |
6356 | OpenBSD/i386 i386-*-openbsd* | |
6357 | ||
6358 | Note that the new kernel threads libraries introduced in FreeBSD 5.x | |
6359 | are not yet supported. | |
6360 | ||
5260ca71 MS |
6361 | * New support for Matsushita MN10300 w/sim added |
6362 | (Work in progress). mn10300-elf. | |
6363 | ||
e84ecc99 AC |
6364 | * REMOVED configurations and files |
6365 | ||
6366 | VxWorks and the XDR protocol *-*-vxworks | |
9445aa30 | 6367 | Motorola MCORE mcore-*-* |
9445aa30 | 6368 | National Semiconductor NS32000 ns32k-*-* |
156a53ca | 6369 | |
31e35378 JB |
6370 | * New "set print array-indexes" command |
6371 | ||
6372 | After turning this setting "on", GDB prints the index of each element | |
6373 | when displaying arrays. The default is "off" to preserve the previous | |
6374 | behavior. | |
6375 | ||
e85e5c83 MK |
6376 | * VAX floating point support |
6377 | ||
6378 | GDB now supports the not-quite-ieee VAX F and D floating point formats. | |
6379 | ||
d91e9901 AS |
6380 | * User-defined command support |
6381 | ||
6382 | In addition to using $arg0..$arg9 for argument passing, it is now possible | |
6383 | to use $argc to determine now many arguments have been passed. See the | |
6384 | section on user-defined commands in the user manual for more information. | |
6385 | ||
f2cb65ca MC |
6386 | *** Changes in GDB 6.3: |
6387 | ||
f47b1503 AS |
6388 | * New command line option |
6389 | ||
6390 | GDB now accepts -l followed by a number to set the timeout for remote | |
6391 | debugging. | |
6392 | ||
f2cb65ca MC |
6393 | * GDB works with GCC -feliminate-dwarf2-dups |
6394 | ||
6395 | GDB now supports a more compact representation of DWARF-2 debug | |
6396 | information using DW_FORM_ref_addr references. These are produced | |
6397 | by GCC with the option -feliminate-dwarf2-dups and also by some | |
6398 | proprietary compilers. With GCC, you must use GCC 3.3.4 or later | |
6399 | to use -feliminate-dwarf2-dups. | |
860660cb | 6400 | |
d08c0230 AC |
6401 | * Internationalization |
6402 | ||
6403 | When supported by the host system, GDB will be built with | |
6404 | internationalization (libintl). The task of marking up the sources is | |
6405 | continued, we're looking forward to our first translation. | |
6406 | ||
117ea3cf PH |
6407 | * Ada |
6408 | ||
6409 | Initial support for debugging programs compiled with the GNAT | |
6410 | implementation of the Ada programming language has been integrated | |
6411 | into GDB. In this release, support is limited to expression evaluation. | |
6412 | ||
d08c0230 AC |
6413 | * New native configurations |
6414 | ||
6415 | GNU/Linux/m32r m32r-*-linux-gnu | |
6416 | ||
6417 | * Remote 'p' packet | |
6418 | ||
6419 | GDB's remote protocol now includes support for the 'p' packet. This | |
6420 | packet is used to fetch individual registers from a remote inferior. | |
6421 | ||
6422 | * END-OF-LIFE registers[] compatibility module | |
6423 | ||
6424 | GDB's internal register infrastructure has been completely rewritten. | |
6425 | The new infrastructure making possible the implementation of key new | |
6426 | features including 32x64 (e.g., 64-bit amd64 GDB debugging a 32-bit | |
6427 | i386 application). | |
6428 | ||
09f2921c | 6429 | GDB 6.3 will be the last release to include the registers[] |
d08c0230 AC |
6430 | compatibility module that allowed out-of-date configurations to |
6431 | continue to work. This change directly impacts the following | |
6432 | configurations: | |
6433 | ||
6434 | hppa-*-hpux | |
6435 | ia64-*-aix | |
6436 | mips-*-irix* | |
6437 | *-*-lynx | |
6438 | mips-*-linux-gnu | |
6439 | sds protocol | |
6440 | xdr protocol | |
6441 | powerpc bdm protocol | |
6442 | ||
6443 | Unless there is activity to revive these configurations, they will be | |
6444 | made OBSOLETE in GDB 6.4, and REMOVED from GDB 6.5. | |
6445 | ||
6446 | * OBSOLETE configurations and files | |
6447 | ||
6448 | Configurations that have been declared obsolete in this release have | |
6449 | been commented out. Unless there is activity to revive these | |
6450 | configurations, the next release of GDB will have their sources | |
6451 | permanently REMOVED. | |
6452 | ||
6453 | h8300-*-* | |
6454 | mcore-*-* | |
6455 | mn10300-*-* | |
6456 | ns32k-*-* | |
6457 | sh64-*-* | |
6458 | v850-*-* | |
6459 | ||
ebb7c577 AC |
6460 | *** Changes in GDB 6.2.1: |
6461 | ||
6462 | * MIPS `break main; run' gave an heuristic-fence-post warning | |
6463 | ||
6464 | When attempting to run even a simple program, a warning about | |
6465 | heuristic-fence-post being hit would be reported. This problem has | |
6466 | been fixed. | |
6467 | ||
6468 | * MIPS IRIX 'long double' crashed GDB | |
6469 | ||
6470 | When examining a long double variable, GDB would get a segmentation | |
6471 | fault. The crash has been fixed (but GDB 6.2 cannot correctly examine | |
6472 | IRIX long double values). | |
6473 | ||
6474 | * VAX and "next" | |
6475 | ||
6476 | A bug in the VAX stack code was causing problems with the "next" | |
6477 | command. This problem has been fixed. | |
6478 | ||
860660cb | 6479 | *** Changes in GDB 6.2: |
faae5abe | 6480 | |
0dea2468 AC |
6481 | * Fix for ``many threads'' |
6482 | ||
6483 | On GNU/Linux systems that use the NPTL threads library, a program | |
6484 | rapidly creating and deleting threads would confuse GDB leading to the | |
6485 | error message: | |
6486 | ||
6487 | ptrace: No such process. | |
6488 | thread_db_get_info: cannot get thread info: generic error | |
6489 | ||
6490 | This problem has been fixed. | |
6491 | ||
2c07db7a AC |
6492 | * "-async" and "-noasync" options removed. |
6493 | ||
6494 | Support for the broken "-noasync" option has been removed (it caused | |
6495 | GDB to dump core). | |
6496 | ||
c23968a2 JB |
6497 | * New ``start'' command. |
6498 | ||
82f06518 | 6499 | This command runs the program until the beginning of the main procedure. |
c23968a2 | 6500 | |
71009278 MK |
6501 | * New BSD Kernel Data Access Library (libkvm) interface |
6502 | ||
6503 | Using ``target kvm'' it is now possible to debug kernel core dumps and | |
6504 | live kernel memory images on various FreeBSD, NetBSD and OpenBSD | |
6505 | platforms. Currently supported (native-only) configurations are: | |
6506 | ||
6507 | FreeBSD/amd64 x86_64-*-freebsd* | |
6508 | FreeBSD/i386 i?86-*-freebsd* | |
6509 | NetBSD/i386 i?86-*-netbsd* | |
6510 | NetBSD/m68k m68*-*-netbsd* | |
6511 | NetBSD/sparc sparc-*-netbsd* | |
6512 | OpenBSD/amd64 x86_64-*-openbsd* | |
6513 | OpenBSD/i386 i?86-*-openbsd* | |
6514 | OpenBSD/m68k m68*-openbsd* | |
6515 | OpenBSD/sparc sparc-*-openbsd* | |
6516 | ||
3c0b7db2 AC |
6517 | * Signal trampoline code overhauled |
6518 | ||
6519 | Many generic problems with GDB's signal handling code have been fixed. | |
6520 | These include: backtraces through non-contiguous stacks; recognition | |
6521 | of sa_sigaction signal trampolines; backtrace from a NULL pointer | |
6522 | call; backtrace through a signal trampoline; step into and out of | |
6523 | signal handlers; and single-stepping in the signal trampoline. | |
6524 | ||
73cc75f3 AC |
6525 | Please note that kernel bugs are a limiting factor here. These |
6526 | features have been shown to work on an s390 GNU/Linux system that | |
6527 | include a 2.6.8-rc1 kernel. Ref PR breakpoints/1702. | |
3c0b7db2 | 6528 | |
7243600a BF |
6529 | * Cygwin support for DWARF 2 added. |
6530 | ||
6f606e1c MK |
6531 | * New native configurations |
6532 | ||
97dc871c | 6533 | GNU/Linux/hppa hppa*-*-linux* |
0e56aeaf | 6534 | OpenBSD/hppa hppa*-*-openbsd* |
bf2ca189 MK |
6535 | OpenBSD/m68k m68*-*-openbsd* |
6536 | OpenBSD/m88k m88*-*-openbsd* | |
d195bc9f | 6537 | OpenBSD/powerpc powerpc-*-openbsd* |
6f606e1c | 6538 | NetBSD/vax vax-*-netbsd* |
9f076e7a | 6539 | OpenBSD/vax vax-*-openbsd* |
6f606e1c | 6540 | |
a1b461bf AC |
6541 | * END-OF-LIFE frame compatibility module |
6542 | ||
6543 | GDB's internal frame infrastructure has been completely rewritten. | |
6544 | The new infrastructure making it possible to support key new features | |
6545 | including DWARF 2 Call Frame Information. To aid in the task of | |
6546 | migrating old configurations to this new infrastructure, a | |
6547 | compatibility module, that allowed old configurations to continue to | |
6548 | work, was also included. | |
6549 | ||
6550 | GDB 6.2 will be the last release to include this frame compatibility | |
6551 | module. This change directly impacts the following configurations: | |
6552 | ||
6553 | h8300-*-* | |
6554 | mcore-*-* | |
6555 | mn10300-*-* | |
6556 | ns32k-*-* | |
6557 | sh64-*-* | |
6558 | v850-*-* | |
6559 | xstormy16-*-* | |
6560 | ||
6561 | Unless there is activity to revive these configurations, they will be | |
6562 | made OBSOLETE in GDB 6.3, and REMOVED from GDB 6.4. | |
6563 | ||
3c7012f5 AC |
6564 | * REMOVED configurations and files |
6565 | ||
6566 | Sun 3, running SunOS 3 m68*-*-sunos3* | |
6567 | Sun 3, running SunOS 4 m68*-*-sunos4* | |
6568 | Sun 2, running SunOS 3 m68000-*-sunos3* | |
6569 | Sun 2, running SunOS 4 m68000-*-sunos4* | |
6570 | Motorola 680x0 running LynxOS m68*-*-lynxos* | |
6571 | AT&T 3b1/Unix pc m68*-att-* | |
6572 | Bull DPX2 (68k, System V release 3) m68*-bull-sysv* | |
6573 | decstation mips-dec-* mips-little-* | |
6574 | riscos mips-*-riscos* mips-*-sysv* | |
6575 | sonymips mips-sony-* | |
6576 | sysv mips*-*-sysv4* (IRIX 5/6 not included) | |
6577 | ||
e5fe55f7 AC |
6578 | *** Changes in GDB 6.1.1: |
6579 | ||
6580 | * TUI (Text-mode User Interface) built-in (also included in GDB 6.1) | |
6581 | ||
6582 | The TUI (Text-mode User Interface) is now built as part of a default | |
6583 | GDB configuration. It is enabled by either selecting the TUI with the | |
6584 | command line option "-i=tui" or by running the separate "gdbtui" | |
6585 | program. For more information on the TUI, see the manual "Debugging | |
6586 | with GDB". | |
6587 | ||
6588 | * Pending breakpoint support (also included in GDB 6.1) | |
6589 | ||
6590 | Support has been added to allow you to specify breakpoints in shared | |
6591 | libraries that have not yet been loaded. If a breakpoint location | |
6592 | cannot be found, and the "breakpoint pending" option is set to auto, | |
6593 | GDB queries you if you wish to make the breakpoint pending on a future | |
6594 | shared-library load. If and when GDB resolves the breakpoint symbol, | |
6595 | the pending breakpoint is removed as one or more regular breakpoints | |
6596 | are created. | |
6597 | ||
6598 | Pending breakpoints are very useful for GCJ Java debugging. | |
6599 | ||
6600 | * Fixed ISO-C build problems | |
6601 | ||
6602 | The files bfd/elf-bfd.h, gdb/dictionary.c and gdb/types.c contained | |
6603 | non ISO-C code that stopped them being built using a more strict ISO-C | |
6604 | compiler (e.g., IBM's C compiler). | |
6605 | ||
6606 | * Fixed build problem on IRIX 5 | |
6607 | ||
6608 | Due to header problems with <sys/proc.h>, the file gdb/proc-api.c | |
6609 | wasn't able to compile compile on an IRIX 5 system. | |
6610 | ||
6611 | * Added execute permission to gdb/gdbserver/configure | |
6612 | ||
6613 | The shell script gdb/testsuite/gdb.stabs/configure lacked execute | |
6614 | permission. This bug would cause configure to fail on a number of | |
6615 | systems (Solaris, IRIX). Ref: server/519. | |
6616 | ||
6617 | * Fixed build problem on hpux2.0w-hp-hpux11.00 using the HP ANSI C compiler | |
6618 | ||
6619 | Older HPUX ANSI C compilers did not accept variable array sizes. somsolib.c | |
6620 | has been updated to use constant array sizes. | |
6621 | ||
6622 | * Fixed a panic in the DWARF Call Frame Info code on Solaris 2.7 | |
6623 | ||
6624 | GCC 3.3.2, on Solaris 2.7, includes the DW_EH_PE_funcrel encoding in | |
6625 | its generated DWARF Call Frame Info. This encoding was causing GDB to | |
6626 | panic, that panic has been fixed. Ref: gdb/1628. | |
6627 | ||
6628 | * Fixed a problem when examining parameters in shared library code. | |
6629 | ||
6630 | When examining parameters in optimized shared library code generated | |
6631 | by a mainline GCC, GDB would incorrectly report ``Variable "..." is | |
6632 | not available''. GDB now correctly displays the variable's value. | |
6633 | ||
faae5abe | 6634 | *** Changes in GDB 6.1: |
f2c06f52 | 6635 | |
9175c9a3 MC |
6636 | * Removed --with-mmalloc |
6637 | ||
6638 | Support for the mmalloc memory manager has been removed, as it | |
6639 | conflicted with the internal gdb byte cache. | |
6640 | ||
3cc87ec0 MK |
6641 | * Changes in AMD64 configurations |
6642 | ||
6643 | The AMD64 target now includes the %cs and %ss registers. As a result | |
6644 | the AMD64 remote protocol has changed; this affects the floating-point | |
6645 | and SSE registers. If you rely on those registers for your debugging, | |
6646 | you should upgrade gdbserver on the remote side. | |
6647 | ||
f0424ef6 MK |
6648 | * Revised SPARC target |
6649 | ||
6650 | The SPARC target has been completely revised, incorporating the | |
6651 | FreeBSD/sparc64 support that was added for GDB 6.0. As a result | |
03cebad2 MK |
6652 | support for LynxOS and SunOS 4 has been dropped. Calling functions |
6653 | from within GDB on operating systems with a non-executable stack | |
6654 | (Solaris, OpenBSD) now works. | |
f0424ef6 | 6655 | |
59659be2 ILT |
6656 | * New C++ demangler |
6657 | ||
6658 | GDB has a new C++ demangler which does a better job on the mangled | |
6659 | names generated by current versions of g++. It also runs faster, so | |
6660 | with this and other changes gdb should now start faster on large C++ | |
6661 | programs. | |
6662 | ||
9e08b29b DJ |
6663 | * DWARF 2 Location Expressions |
6664 | ||
6665 | GDB support for location expressions has been extended to support function | |
6666 | arguments and frame bases. Older versions of GDB could crash when they | |
6667 | encountered these. | |
6668 | ||
8dfe8985 DC |
6669 | * C++ nested types and namespaces |
6670 | ||
6671 | GDB's support for nested types and namespaces in C++ has been | |
6672 | improved, especially if you use the DWARF 2 debugging format. (This | |
6673 | is the default for recent versions of GCC on most platforms.) | |
6674 | Specifically, if you have a class "Inner" defined within a class or | |
6675 | namespace "Outer", then GDB realizes that the class's name is | |
6676 | "Outer::Inner", not simply "Inner". This should greatly reduce the | |
6677 | frequency of complaints about not finding RTTI symbols. In addition, | |
6678 | if you are stopped at inside of a function defined within a namespace, | |
6679 | GDB modifies its name lookup accordingly. | |
6680 | ||
cced5e27 MK |
6681 | * New native configurations |
6682 | ||
6683 | NetBSD/amd64 x86_64-*-netbsd* | |
27d1e716 | 6684 | OpenBSD/amd64 x86_64-*-openbsd* |
2031c21a | 6685 | OpenBSD/alpha alpha*-*-openbsd* |
f2cab569 MK |
6686 | OpenBSD/sparc sparc-*-openbsd* |
6687 | OpenBSD/sparc64 sparc64-*-openbsd* | |
cced5e27 | 6688 | |
b4b4b794 KI |
6689 | * New debugging protocols |
6690 | ||
6691 | M32R with SDI protocol m32r-*-elf* | |
6692 | ||
7989c619 AC |
6693 | * "set prompt-escape-char" command deleted. |
6694 | ||
6695 | The command "set prompt-escape-char" has been deleted. This command, | |
82f06518 | 6696 | and its very obscure effect on GDB's prompt, was never documented, |
7989c619 AC |
6697 | tested, nor mentioned in the NEWS file. |
6698 | ||
5994185b AC |
6699 | * OBSOLETE configurations and files |
6700 | ||
6701 | Configurations that have been declared obsolete in this release have | |
6702 | been commented out. Unless there is activity to revive these | |
6703 | configurations, the next release of GDB will have their sources | |
6704 | permanently REMOVED. | |
6705 | ||
6706 | Sun 3, running SunOS 3 m68*-*-sunos3* | |
6707 | Sun 3, running SunOS 4 m68*-*-sunos4* | |
6708 | Sun 2, running SunOS 3 m68000-*-sunos3* | |
6709 | Sun 2, running SunOS 4 m68000-*-sunos4* | |
6710 | Motorola 680x0 running LynxOS m68*-*-lynxos* | |
6711 | AT&T 3b1/Unix pc m68*-att-* | |
6712 | Bull DPX2 (68k, System V release 3) m68*-bull-sysv* | |
0748d941 AC |
6713 | decstation mips-dec-* mips-little-* |
6714 | riscos mips-*-riscos* mips-*-sysv* | |
6715 | sonymips mips-sony-* | |
6716 | sysv mips*-*-sysv4* (IRIX 5/6 not included) | |
5994185b | 6717 | |
0ddabb4c AC |
6718 | * REMOVED configurations and files |
6719 | ||
6720 | SGI Irix-4.x mips-sgi-irix4 or iris4 | |
6721 | SGI Iris (MIPS) running Irix V3: mips-sgi-irix or iris | |
4a8269c0 AC |
6722 | Z8000 simulator z8k-zilog-none or z8ksim |
6723 | Matsushita MN10200 w/simulator mn10200-*-* | |
6724 | H8/500 simulator h8500-hitachi-hms or h8500hms | |
6725 | HP/PA running BSD hppa*-*-bsd* | |
6726 | HP/PA running OSF/1 hppa*-*-osf* | |
6727 | HP/PA Pro target hppa*-*-pro* | |
6728 | PMAX (MIPS) running Mach 3.0 mips*-*-mach3* | |
cf7c5c23 | 6729 | 386BSD i[3456]86-*-bsd* |
4a8269c0 AC |
6730 | Sequent family i[3456]86-sequent-sysv4* |
6731 | i[3456]86-sequent-sysv* | |
6732 | i[3456]86-sequent-bsd* | |
f0424ef6 MK |
6733 | SPARC running LynxOS sparc-*-lynxos* |
6734 | SPARC running SunOS 4 sparc-*-sunos4* | |
4a8269c0 AC |
6735 | Tsqware Sparclet sparclet-*-* |
6736 | Fujitsu SPARClite sparclite-fujitsu-none or sparclite | |
0ddabb4c | 6737 | |
c7f1390e DJ |
6738 | *** Changes in GDB 6.0: |
6739 | ||
1fe43d45 AC |
6740 | * Objective-C |
6741 | ||
6742 | Support for debugging the Objective-C programming language has been | |
6743 | integrated into GDB. | |
6744 | ||
e6beb428 AC |
6745 | * New backtrace mechanism (includes DWARF 2 Call Frame Information). |
6746 | ||
6747 | DWARF 2's Call Frame Information makes available compiler generated | |
6748 | information that more exactly describes the program's run-time stack. | |
6749 | By using this information, GDB is able to provide more robust stack | |
6750 | backtraces. | |
6751 | ||
6752 | The i386, amd64 (nee, x86-64), Alpha, m68hc11, ia64, and m32r targets | |
6753 | have been updated to use a new backtrace mechanism which includes | |
6754 | DWARF 2 CFI support. | |
6755 | ||
6756 | * Hosted file I/O. | |
6757 | ||
6758 | GDB's remote protocol has been extended to include support for hosted | |
6759 | file I/O (where the remote target uses GDB's file system). See GDB's | |
6760 | remote protocol documentation for details. | |
6761 | ||
6762 | * All targets using the new architecture framework. | |
6763 | ||
6764 | All of GDB's targets have been updated to use the new internal | |
6765 | architecture framework. The way is now open for future GDB releases | |
6766 | to include cross-architecture native debugging support (i386 on amd64, | |
6767 | ppc32 on ppc64). | |
6768 | ||
6769 | * GNU/Linux's Thread Local Storage (TLS) | |
6770 | ||
6771 | GDB now includes support for for the GNU/Linux implementation of | |
6772 | per-thread variables. | |
6773 | ||
6774 | * GNU/Linux's Native POSIX Thread Library (NPTL) | |
6775 | ||
6776 | GDB's thread code has been updated to work with either the new | |
6777 | GNU/Linux NPTL thread library or the older "LinuxThreads" library. | |
6778 | ||
6779 | * Separate debug info. | |
6780 | ||
6781 | GDB, in conjunction with BINUTILS, now supports a mechanism for | |
6782 | automatically loading debug information from a separate file. Instead | |
6783 | of shipping full debug and non-debug versions of system libraries, | |
6784 | system integrators can now instead ship just the stripped libraries | |
6785 | and optional debug files. | |
6786 | ||
6787 | * DWARF 2 Location Expressions | |
6788 | ||
6789 | DWARF 2 Location Expressions allow the compiler to more completely | |
6790 | describe the location of variables (even in optimized code) to the | |
6791 | debugger. | |
6792 | ||
6793 | GDB now includes preliminary support for location expressions (support | |
6794 | for DW_OP_piece is still missing). | |
6795 | ||
6796 | * Java | |
6797 | ||
6798 | A number of long standing bugs that caused GDB to die while starting a | |
6799 | Java application have been fixed. GDB's Java support is now | |
6800 | considered "useable". | |
6801 | ||
85f8f974 DJ |
6802 | * GNU/Linux support for fork, vfork, and exec. |
6803 | ||
6804 | The "catch fork", "catch exec", "catch vfork", and "set follow-fork-mode" | |
6805 | commands are now implemented for GNU/Linux. They require a 2.5.x or later | |
6806 | kernel. | |
6807 | ||
0fac0b41 DJ |
6808 | * GDB supports logging output to a file |
6809 | ||
6810 | There are two new commands, "set logging" and "show logging", which can be | |
6811 | used to capture GDB's output to a file. | |
f2c06f52 | 6812 | |
6ad8ae5c DJ |
6813 | * The meaning of "detach" has changed for gdbserver |
6814 | ||
6815 | The "detach" command will now resume the application, as documented. To | |
6816 | disconnect from gdbserver and leave it stopped, use the new "disconnect" | |
6817 | command. | |
6818 | ||
e286caf2 | 6819 | * d10v, m68hc11 `regs' command deprecated |
5f601589 AC |
6820 | |
6821 | The `info registers' command has been updated so that it displays the | |
6822 | registers using a format identical to the old `regs' command. | |
6823 | ||
d28f9cdf DJ |
6824 | * Profiling support |
6825 | ||
6826 | A new command, "maint set profile on/off", has been added. This command can | |
6827 | be used to enable or disable profiling while running GDB, to profile a | |
6828 | session or a set of commands. In addition there is a new configure switch, | |
6829 | "--enable-profiling", which will cause GDB to be compiled with profiling | |
6830 | data, for more informative profiling results. | |
6831 | ||
da0f9dcd AC |
6832 | * Default MI syntax changed to "mi2". |
6833 | ||
6834 | The default MI (machine interface) syntax, enabled by the command line | |
6835 | option "-i=mi", has been changed to "mi2". The previous MI syntax, | |
b68767c1 | 6836 | "mi1", can be enabled by specifying the option "-i=mi1". |
da0f9dcd AC |
6837 | |
6838 | Support for the original "mi0" syntax (included in GDB 5.0) has been | |
6839 | removed. | |
6840 | ||
fb9b6b35 JJ |
6841 | Fix for gdb/192: removed extraneous space when displaying frame level. |
6842 | Fix for gdb/672: update changelist is now output in mi list format. | |
6843 | Fix for gdb/702: a -var-assign that updates the value now shows up | |
6844 | in a subsequent -var-update. | |
6845 | ||
954a4db8 MK |
6846 | * New native configurations. |
6847 | ||
6848 | FreeBSD/amd64 x86_64-*-freebsd* | |
6849 | ||
6760f9e6 JB |
6850 | * Multi-arched targets. |
6851 | ||
b4263afa | 6852 | HP/PA HPUX11 hppa*-*-hpux* |
85a453d5 | 6853 | Renesas M32R/D w/simulator m32r-*-elf* |
6760f9e6 | 6854 | |
1b831c93 AC |
6855 | * OBSOLETE configurations and files |
6856 | ||
6857 | Configurations that have been declared obsolete in this release have | |
6858 | been commented out. Unless there is activity to revive these | |
6859 | configurations, the next release of GDB will have their sources | |
6860 | permanently REMOVED. | |
6861 | ||
8b0e5691 | 6862 | Z8000 simulator z8k-zilog-none or z8ksim |
67f16606 | 6863 | Matsushita MN10200 w/simulator mn10200-*-* |
fd2299bd | 6864 | H8/500 simulator h8500-hitachi-hms or h8500hms |
56056df7 AC |
6865 | HP/PA running BSD hppa*-*-bsd* |
6866 | HP/PA running OSF/1 hppa*-*-osf* | |
6867 | HP/PA Pro target hppa*-*-pro* | |
78c43945 | 6868 | PMAX (MIPS) running Mach 3.0 mips*-*-mach3* |
2fbce691 AC |
6869 | Sequent family i[3456]86-sequent-sysv4* |
6870 | i[3456]86-sequent-sysv* | |
6871 | i[3456]86-sequent-bsd* | |
f81824a9 AC |
6872 | Tsqware Sparclet sparclet-*-* |
6873 | Fujitsu SPARClite sparclite-fujitsu-none or sparclite | |
fd2299bd | 6874 | |
5835abe7 NC |
6875 | * REMOVED configurations and files |
6876 | ||
6877 | V850EA ISA | |
1b831c93 AC |
6878 | Motorola Delta 88000 running Sys V m88k-motorola-sysv or delta88 |
6879 | IBM AIX PS/2 i[3456]86-*-aix | |
6880 | i386 running Mach 3.0 i[3456]86-*-mach3* | |
6881 | i386 running Mach i[3456]86-*-mach* | |
6882 | i386 running OSF/1 i[3456]86-*osf1mk* | |
6883 | HP/Apollo 68k Family m68*-apollo*-sysv*, | |
6884 | m68*-apollo*-bsd*, | |
6885 | m68*-hp-bsd*, m68*-hp-hpux* | |
6886 | Argonaut Risc Chip (ARC) arc-*-* | |
6887 | Mitsubishi D30V d30v-*-* | |
6888 | Fujitsu FR30 fr30-*-elf* | |
6889 | OS/9000 i[34]86-*-os9k | |
6890 | I960 with MON960 i960-*-coff | |
5835abe7 | 6891 | |
a094c6fb AC |
6892 | * MIPS $fp behavior changed |
6893 | ||
6894 | The convenience variable $fp, for the MIPS, now consistently returns | |
6895 | the address of the current frame's base. Previously, depending on the | |
6896 | context, $fp could refer to either $sp or the current frame's base | |
6897 | address. See ``8.10 Registers'' in the manual ``Debugging with GDB: | |
6898 | The GNU Source-Level Debugger''. | |
6899 | ||
299ffc64 | 6900 | *** Changes in GDB 5.3: |
37057839 | 6901 | |
46248966 AC |
6902 | * GNU/Linux shared library multi-threaded performance improved. |
6903 | ||
6904 | When debugging a multi-threaded application on GNU/Linux, GDB now uses | |
6905 | `/proc', in preference to `ptrace' for memory reads. This may result | |
6906 | in an improvement in the start-up time of multi-threaded, shared | |
6907 | library applications when run under GDB. One GDB user writes: ``loads | |
6908 | shared libs like mad''. | |
6909 | ||
b9d14705 | 6910 | * ``gdbserver'' now supports multi-threaded applications on some targets |
6da02953 | 6911 | |
b9d14705 DJ |
6912 | Support for debugging multi-threaded applications which use |
6913 | the GNU/Linux LinuxThreads package has been added for | |
6914 | arm*-*-linux*-gnu*, i[3456]86-*-linux*-gnu*, mips*-*-linux*-gnu*, | |
6915 | powerpc*-*-linux*-gnu*, and sh*-*-linux*-gnu*. | |
6da02953 | 6916 | |
e0e9281e JB |
6917 | * GDB now supports C/C++ preprocessor macros. |
6918 | ||
6919 | GDB now expands preprocessor macro invocations in C/C++ expressions, | |
6920 | and provides various commands for showing macro definitions and how | |
6921 | they expand. | |
6922 | ||
dd73b9bb AC |
6923 | The new command `macro expand EXPRESSION' expands any macro |
6924 | invocations in expression, and shows the result. | |
6925 | ||
6926 | The new command `show macro MACRO-NAME' shows the definition of the | |
6927 | macro named MACRO-NAME, and where it was defined. | |
6928 | ||
e0e9281e JB |
6929 | Most compilers don't include information about macros in the debugging |
6930 | information by default. In GCC 3.1, for example, you need to compile | |
6931 | your program with the options `-gdwarf-2 -g3'. If the macro | |
6932 | information is present in the executable, GDB will read it. | |
6933 | ||
2250ee0c CV |
6934 | * Multi-arched targets. |
6935 | ||
6e3ba3b8 JT |
6936 | DEC Alpha (partial) alpha*-*-* |
6937 | DEC VAX (partial) vax-*-* | |
2250ee0c | 6938 | NEC V850 v850-*-* |
6e3ba3b8 | 6939 | National Semiconductor NS32000 (partial) ns32k-*-* |
a1789893 GS |
6940 | Motorola 68000 (partial) m68k-*-* |
6941 | Motorola MCORE mcore-*-* | |
2250ee0c | 6942 | |
cd9bfe15 | 6943 | * New targets. |
e33ce519 | 6944 | |
456f8b9d DB |
6945 | Fujitsu FRV architecture added by Red Hat frv*-*-* |
6946 | ||
e33ce519 | 6947 | |
da8ca43d JT |
6948 | * New native configurations |
6949 | ||
6950 | Alpha NetBSD alpha*-*-netbsd* | |
029923d4 | 6951 | SH NetBSD sh*-*-netbsdelf* |
45888261 | 6952 | MIPS NetBSD mips*-*-netbsd* |
9ce5c36a | 6953 | UltraSPARC NetBSD sparc64-*-netbsd* |
da8ca43d | 6954 | |
cd9bfe15 AC |
6955 | * OBSOLETE configurations and files |
6956 | ||
6957 | Configurations that have been declared obsolete in this release have | |
6958 | been commented out. Unless there is activity to revive these | |
6959 | configurations, the next release of GDB will have their sources | |
6960 | permanently REMOVED. | |
6961 | ||
92eb23c5 | 6962 | Mitsubishi D30V d30v-*-* |
a99a9e1b | 6963 | OS/9000 i[34]86-*-os9k |
1c7cc583 | 6964 | IBM AIX PS/2 i[3456]86-*-aix |
7a3085c1 | 6965 | Fujitsu FR30 fr30-*-elf* |
7fb623f7 | 6966 | Motorola Delta 88000 running Sys V m88k-motorola-sysv or delta88 |
eb4c54a2 | 6967 | Argonaut Risc Chip (ARC) arc-*-* |
d8ee244c MK |
6968 | i386 running Mach 3.0 i[3456]86-*-mach3* |
6969 | i386 running Mach i[3456]86-*-mach* | |
6970 | i386 running OSF/1 i[3456]86-*osf1mk* | |
822e978b AC |
6971 | HP/Apollo 68k Family m68*-apollo*-sysv*, |
6972 | m68*-apollo*-bsd*, | |
6973 | m68*-hp-bsd*, m68*-hp-hpux* | |
4d210288 | 6974 | I960 with MON960 i960-*-coff |
92eb23c5 | 6975 | |
db034ac5 AC |
6976 | * OBSOLETE languages |
6977 | ||
6978 | CHILL, a Pascal like language used by telecommunications companies. | |
6979 | ||
cd9bfe15 AC |
6980 | * REMOVED configurations and files |
6981 | ||
6982 | AMD 29k family via UDI a29k-amd-udi, udi29k | |
6983 | A29K VxWorks a29k-*-vxworks | |
6984 | AMD 29000 embedded, using EBMON a29k-none-none | |
6985 | AMD 29000 embedded with COFF a29k-none-coff | |
6986 | AMD 29000 embedded with a.out a29k-none-aout | |
6987 | ||
6988 | testsuite/gdb.hp/gdb.threads-hp/ directory | |
6989 | ||
20f01a46 DH |
6990 | * New command "set max-user-call-depth <nnn>" |
6991 | ||
6992 | This command allows the user to limit the call depth of user-defined | |
6993 | commands. The default is 1024. | |
6994 | ||
a5941fbf MK |
6995 | * Changes in FreeBSD/i386 native debugging. |
6996 | ||
6997 | Support for the "generate-core-file" has been added. | |
6998 | ||
89743e04 MS |
6999 | * New commands "dump", "append", and "restore". |
7000 | ||
7001 | These commands allow data to be copied from target memory | |
7002 | to a bfd-format or binary file (dump and append), and back | |
7003 | from a file into memory (restore). | |
37057839 | 7004 | |
9fb14e79 JB |
7005 | * Improved "next/step" support on multi-processor Alpha Tru64. |
7006 | ||
7007 | The previous single-step mechanism could cause unpredictable problems, | |
7008 | including the random appearance of SIGSEGV or SIGTRAP signals. The use | |
7009 | of a software single-step mechanism prevents this. | |
7010 | ||
2037aebb AC |
7011 | *** Changes in GDB 5.2.1: |
7012 | ||
7013 | * New targets. | |
7014 | ||
7015 | Atmel AVR avr*-*-* | |
7016 | ||
7017 | * Bug fixes | |
7018 | ||
7019 | gdb/182: gdb/323: gdb/237: On alpha, gdb was reporting: | |
7020 | mdebugread.c:2443: gdb-internal-error: sect_index_data not initialized | |
7021 | Fix, by Joel Brobecker imported from mainline. | |
7022 | ||
7023 | gdb/439: gdb/291: On some ELF object files, gdb was reporting: | |
7024 | dwarf2read.c:1072: gdb-internal-error: sect_index_text not initialize | |
7025 | Fix, by Fred Fish, imported from mainline. | |
7026 | ||
7027 | Dwarf2 .debug_frame & .eh_frame handler improved in many ways. | |
7028 | Surprisingly enough, it works now. | |
7029 | By Michal Ludvig, imported from mainline. | |
7030 | ||
7031 | i386 hardware watchpoint support: | |
7032 | avoid misses on second run for some targets. | |
7033 | By Pierre Muller, imported from mainline. | |
7034 | ||
37057839 | 7035 | *** Changes in GDB 5.2: |
eb7cedd9 | 7036 | |
1a703748 MS |
7037 | * New command "set trust-readonly-sections on[off]". |
7038 | ||
7039 | This command is a hint that tells gdb that read-only sections | |
7040 | really are read-only (ie. that their contents will not change). | |
7041 | In this mode, gdb will go to the object file rather than the | |
7042 | target to read memory from read-only sections (such as ".text"). | |
7043 | This can be a significant performance improvement on some | |
7044 | (notably embedded) targets. | |
7045 | ||
cefd4ef5 MS |
7046 | * New command "generate-core-file" (or "gcore"). |
7047 | ||
55241689 AC |
7048 | This new gdb command allows the user to drop a core file of the child |
7049 | process state at any time. So far it's been implemented only for | |
7050 | GNU/Linux and Solaris, but should be relatively easily ported to other | |
7051 | hosts. Argument is core file name (defaults to core.<pid>). | |
cefd4ef5 | 7052 | |
352ed7b4 MS |
7053 | * New command line option |
7054 | ||
7055 | GDB now accepts --pid or -p followed by a process id. | |
7056 | ||
7057 | * Change in command line behavior -- corefiles vs. process ids. | |
7058 | ||
7059 | There is a subtle behavior in the way in which GDB handles | |
7060 | command line arguments. The first non-flag argument is always | |
7061 | a program to debug, but the second non-flag argument may either | |
7062 | be a corefile or a process id. Previously, GDB would attempt to | |
7063 | open the second argument as a corefile, and if that failed, would | |
7064 | issue a superfluous error message and then attempt to attach it as | |
7065 | a process. Now, if the second argument begins with a non-digit, | |
7066 | it will be treated as a corefile. If it begins with a digit, | |
7067 | GDB will attempt to attach it as a process, and if no such process | |
7068 | is found, will then attempt to open it as a corefile. | |
7069 | ||
fe419ffc RE |
7070 | * Changes in ARM configurations. |
7071 | ||
7072 | Multi-arch support is enabled for all ARM configurations. The ARM/NetBSD | |
7073 | configuration is fully multi-arch. | |
7074 | ||
eb7cedd9 MK |
7075 | * New native configurations |
7076 | ||
fe419ffc | 7077 | ARM NetBSD arm*-*-netbsd* |
eb7cedd9 | 7078 | x86 OpenBSD i[3456]86-*-openbsd* |
55241689 | 7079 | AMD x86-64 running GNU/Linux x86_64-*-linux-* |
768f0842 | 7080 | Sparc64 running FreeBSD sparc64-*-freebsd* |
eb7cedd9 | 7081 | |
c9f63e6b CV |
7082 | * New targets |
7083 | ||
7084 | Sanyo XStormy16 xstormy16-elf | |
7085 | ||
9b4ff276 AC |
7086 | * OBSOLETE configurations and files |
7087 | ||
7088 | Configurations that have been declared obsolete in this release have | |
7089 | been commented out. Unless there is activity to revive these | |
7090 | configurations, the next release of GDB will have their sources | |
7091 | permanently REMOVED. | |
7092 | ||
7093 | AMD 29k family via UDI a29k-amd-udi, udi29k | |
7094 | A29K VxWorks a29k-*-vxworks | |
7095 | AMD 29000 embedded, using EBMON a29k-none-none | |
7096 | AMD 29000 embedded with COFF a29k-none-coff | |
7097 | AMD 29000 embedded with a.out a29k-none-aout | |
7098 | ||
b4ceaee6 | 7099 | testsuite/gdb.hp/gdb.threads-hp/ directory |
9b4ff276 | 7100 | |
e2caac18 AC |
7101 | * REMOVED configurations and files |
7102 | ||
7103 | TI TMS320C80 tic80-*-* | |
7bc65f05 | 7104 | WDC 65816 w65-*-* |
7768dd6c AC |
7105 | PowerPC Solaris powerpcle-*-solaris* |
7106 | PowerPC Windows NT powerpcle-*-cygwin32 | |
7107 | PowerPC Netware powerpc-*-netware* | |
5e734e1f | 7108 | Harris/CXUX m88k m88*-harris-cxux* |
1406caf7 AC |
7109 | Most ns32k hosts and targets ns32k-*-mach3* ns32k-umax-* |
7110 | ns32k-utek-sysv* ns32k-utek-* | |
7e24f0b1 | 7111 | SunOS 4.0.Xi on i386 i[3456]86-*-sunos* |
9b567150 | 7112 | Ultracomputer (29K) running Sym1 a29k-nyu-sym1 a29k-*-kern* |
3680c638 AC |
7113 | Sony NEWS (68K) running NEWSOS 3.x m68*-sony-sysv news |
7114 | ISI Optimum V (3.05) under 4.3bsd. m68*-isi-* | |
a752853e | 7115 | Apple Macintosh (MPW) host and target N/A host, powerpc-*-macos* |
e2caac18 | 7116 | |
c2a727fa TT |
7117 | * Changes to command line processing |
7118 | ||
7119 | The new `--args' feature can be used to specify command-line arguments | |
7120 | for the inferior from gdb's command line. | |
7121 | ||
467d8519 TT |
7122 | * Changes to key bindings |
7123 | ||
7124 | There is a new `operate-and-get-next' function bound to `C-o'. | |
7125 | ||
7072a954 AC |
7126 | *** Changes in GDB 5.1.1 |
7127 | ||
7128 | Fix compile problem on DJGPP. | |
7129 | ||
7130 | Fix a problem with floating-point registers on the i386 being | |
7131 | corrupted. | |
7132 | ||
7133 | Fix to stop GDB crashing on .debug_str debug info. | |
7134 | ||
7135 | Numerous documentation fixes. | |
7136 | ||
7137 | Numerous testsuite fixes. | |
7138 | ||
34f47bc4 | 7139 | *** Changes in GDB 5.1: |
139760b7 MK |
7140 | |
7141 | * New native configurations | |
7142 | ||
7143 | Alpha FreeBSD alpha*-*-freebsd* | |
7144 | x86 FreeBSD 3.x and 4.x i[3456]86*-freebsd[34]* | |
55241689 | 7145 | MIPS GNU/Linux mips*-*-linux* |
e23194cb EZ |
7146 | MIPS SGI Irix 6.x mips*-sgi-irix6* |
7147 | ia64 AIX ia64-*-aix* | |
55241689 | 7148 | s390 and s390x GNU/Linux {s390,s390x}-*-linux* |
139760b7 | 7149 | |
bf64bfd6 AC |
7150 | * New targets |
7151 | ||
def90278 | 7152 | Motorola 68HC11 and 68HC12 m68hc11-elf |
24be5c34 | 7153 | CRIS cris-axis |
55241689 | 7154 | UltraSparc running GNU/Linux sparc64-*-linux* |
def90278 | 7155 | |
17e78a56 | 7156 | * OBSOLETE configurations and files |
bf64bfd6 AC |
7157 | |
7158 | x86 FreeBSD before 2.2 i[3456]86*-freebsd{1,2.[01]}*, | |
9b9c068d | 7159 | Harris/CXUX m88k m88*-harris-cxux* |
bb19ff3b AC |
7160 | Most ns32k hosts and targets ns32k-*-mach3* ns32k-umax-* |
7161 | ns32k-utek-sysv* ns32k-utek-* | |
76f4ea53 AC |
7162 | TI TMS320C80 tic80-*-* |
7163 | WDC 65816 w65-*-* | |
4a1968f4 | 7164 | Ultracomputer (29K) running Sym1 a29k-nyu-sym1 a29k-*-kern* |
1b2b2c16 AC |
7165 | PowerPC Solaris powerpcle-*-solaris* |
7166 | PowerPC Windows NT powerpcle-*-cygwin32 | |
7167 | PowerPC Netware powerpc-*-netware* | |
24f89b68 | 7168 | SunOS 4.0.Xi on i386 i[3456]86-*-sunos* |
514e603d AC |
7169 | Sony NEWS (68K) running NEWSOS 3.x m68*-sony-sysv news |
7170 | ISI Optimum V (3.05) under 4.3bsd. m68*-isi-* | |
d036b4d9 | 7171 | Apple Macintosh (MPW) host N/A |
bf64bfd6 | 7172 | |
17e78a56 AC |
7173 | stuff.c (Program to stuff files into a specially prepared space in kdb) |
7174 | kdb-start.c (Main loop for the standalone kernel debugger) | |
7175 | ||
7fcca85b AC |
7176 | Configurations that have been declared obsolete in this release have |
7177 | been commented out. Unless there is activity to revive these | |
7178 | configurations, the next release of GDB will have their sources | |
7179 | permanently REMOVED. | |
7180 | ||
a196c81c | 7181 | * REMOVED configurations and files |
7fcca85b AC |
7182 | |
7183 | Altos 3068 m68*-altos-* | |
7184 | Convex c1-*-*, c2-*-* | |
7185 | Pyramid pyramid-*-* | |
7186 | ARM RISCix arm-*-* (as host) | |
7187 | Tahoe tahoe-*-* | |
a196c81c | 7188 | ser-ocd.c *-*-* |
bf64bfd6 | 7189 | |
6d6b80e5 | 7190 | * GDB has been converted to ISO C. |
e23194cb | 7191 | |
6d6b80e5 | 7192 | GDB's source code has been converted to ISO C. In particular, the |
e23194cb EZ |
7193 | sources are fully protoized, and rely on standard headers being |
7194 | present. | |
7195 | ||
bf64bfd6 AC |
7196 | * Other news: |
7197 | ||
e23194cb EZ |
7198 | * "info symbol" works on platforms which use COFF, ECOFF, XCOFF, and NLM. |
7199 | ||
7200 | * The MI enabled by default. | |
7201 | ||
7202 | The new machine oriented interface (MI) introduced in GDB 5.0 has been | |
7203 | revised and enabled by default. Packages which use GDB as a debugging | |
7204 | engine behind a UI or another front end are encouraged to switch to | |
7205 | using the GDB/MI interface, instead of the old annotations interface | |
7206 | which is now deprecated. | |
7207 | ||
7208 | * Support for debugging Pascal programs. | |
7209 | ||
7210 | GDB now includes support for debugging Pascal programs. The following | |
7211 | main features are supported: | |
7212 | ||
7213 | - Pascal-specific data types such as sets; | |
7214 | ||
7215 | - automatic recognition of Pascal sources based on file-name | |
7216 | extension; | |
7217 | ||
7218 | - Pascal-style display of data types, variables, and functions; | |
7219 | ||
7220 | - a Pascal expression parser. | |
7221 | ||
7222 | However, some important features are not yet supported. | |
7223 | ||
7224 | - Pascal string operations are not supported at all; | |
7225 | ||
7226 | - there are some problems with boolean types; | |
7227 | ||
7228 | - Pascal type hexadecimal constants are not supported | |
7229 | because they conflict with the internal variables format; | |
7230 | ||
7231 | - support for Pascal objects and classes is not full yet; | |
7232 | ||
7233 | - unlike Pascal, GDB is case-sensitive for symbol names. | |
7234 | ||
7235 | * Changes in completion. | |
7236 | ||
7237 | Commands such as `shell', `run' and `set args', which pass arguments | |
7238 | to inferior programs, now complete on file names, similar to what | |
7239 | users expect at the shell prompt. | |
7240 | ||
7241 | Commands which accept locations, such as `disassemble', `print', | |
7242 | `breakpoint', `until', etc. now complete on filenames as well as | |
7243 | program symbols. Thus, if you type "break foob TAB", and the source | |
7244 | files linked into the programs include `foobar.c', that file name will | |
7245 | be one of the candidates for completion. However, file names are not | |
7246 | considered for completion after you typed a colon that delimits a file | |
7247 | name from a name of a function in that file, as in "break foo.c:bar". | |
7248 | ||
7249 | `set demangle-style' completes on available demangling styles. | |
7250 | ||
7251 | * New platform-independent commands: | |
7252 | ||
7253 | It is now possible to define a post-hook for a command as well as a | |
7254 | hook that runs before the command. For more details, see the | |
7255 | documentation of `hookpost' in the GDB manual. | |
7256 | ||
7257 | * Changes in GNU/Linux native debugging. | |
7258 | ||
d7275149 MK |
7259 | Support for debugging multi-threaded programs has been completely |
7260 | revised for all platforms except m68k and sparc. You can now debug as | |
7261 | many threads as your system allows you to have. | |
7262 | ||
e23194cb EZ |
7263 | Attach/detach is supported for multi-threaded programs. |
7264 | ||
d7275149 MK |
7265 | Support for SSE registers was added for x86. This doesn't work for |
7266 | multi-threaded programs though. | |
e23194cb EZ |
7267 | |
7268 | * Changes in MIPS configurations. | |
bf64bfd6 AC |
7269 | |
7270 | Multi-arch support is enabled for all MIPS configurations. | |
7271 | ||
e23194cb EZ |
7272 | GDB can now be built as native debugger on SGI Irix 6.x systems for |
7273 | debugging n32 executables. (Debugging 64-bit executables is not yet | |
7274 | supported.) | |
7275 | ||
7276 | * Unified support for hardware watchpoints in all x86 configurations. | |
7277 | ||
7278 | Most (if not all) native x86 configurations support hardware-assisted | |
7279 | breakpoints and watchpoints in a unified manner. This support | |
7280 | implements debug register sharing between watchpoints, which allows to | |
7281 | put a virtually infinite number of watchpoints on the same address, | |
7282 | and also supports watching regions up to 16 bytes with several debug | |
7283 | registers. | |
7284 | ||
7285 | The new maintenance command `maintenance show-debug-regs' toggles | |
7286 | debugging print-outs in functions that insert, remove, and test | |
7287 | watchpoints and hardware breakpoints. | |
7288 | ||
7289 | * Changes in the DJGPP native configuration. | |
7290 | ||
7291 | New command ``info dos sysinfo'' displays assorted information about | |
7292 | the CPU, OS, memory, and DPMI server. | |
7293 | ||
7294 | New commands ``info dos gdt'', ``info dos ldt'', and ``info dos idt'' | |
7295 | display information about segment descriptors stored in GDT, LDT, and | |
7296 | IDT. | |
7297 | ||
7298 | New commands ``info dos pde'' and ``info dos pte'' display entries | |
7299 | from Page Directory and Page Tables (for now works with CWSDPMI only). | |
7300 | New command ``info dos address-pte'' displays the Page Table entry for | |
7301 | a given linear address. | |
7302 | ||
7303 | GDB can now pass command lines longer than 126 characters to the | |
7304 | program being debugged (requires an update to the libdbg.a library | |
7305 | which is part of the DJGPP development kit). | |
7306 | ||
7307 | DWARF2 debug info is now supported. | |
7308 | ||
6c56c069 EZ |
7309 | It is now possible to `step' and `next' through calls to `longjmp'. |
7310 | ||
e23194cb EZ |
7311 | * Changes in documentation. |
7312 | ||
7313 | All GDB documentation was converted to GFDL, the GNU Free | |
7314 | Documentation License. | |
7315 | ||
7316 | Tracepoints-related commands are now fully documented in the GDB | |
7317 | manual. | |
7318 | ||
7319 | TUI, the Text-mode User Interface, is now documented in the manual. | |
7320 | ||
7321 | Tracepoints-related commands are now fully documented in the GDB | |
7322 | manual. | |
7323 | ||
7324 | The "GDB Internals" manual now has an index. It also includes | |
7325 | documentation of `ui_out' functions, GDB coding standards, x86 | |
7326 | hardware watchpoints, and memory region attributes. | |
7327 | ||
5d6640b1 AC |
7328 | * GDB's version number moved to ``version.in'' |
7329 | ||
7330 | The Makefile variable VERSION has been replaced by the file | |
7331 | ``version.in''. People creating GDB distributions should update the | |
7332 | contents of this file. | |
7333 | ||
1a1d8446 AC |
7334 | * gdba.el deleted |
7335 | ||
7336 | GUD support is now a standard part of the EMACS distribution. | |
139760b7 | 7337 | |
9debab2f | 7338 | *** Changes in GDB 5.0: |
7a292a7a | 7339 | |
c63ce875 EZ |
7340 | * Improved support for debugging FP programs on x86 targets |
7341 | ||
7342 | Unified and much-improved support for debugging floating-point | |
7343 | programs on all x86 targets. In particular, ``info float'' now | |
7344 | displays the FP registers in the same format on all x86 targets, with | |
7345 | greater level of detail. | |
7346 | ||
7347 | * Improvements and bugfixes in hardware-assisted watchpoints | |
7348 | ||
7349 | It is now possible to watch array elements, struct members, and | |
7350 | bitfields with hardware-assisted watchpoints. Data-read watchpoints | |
7351 | on x86 targets no longer erroneously trigger when the address is | |
7352 | written. | |
7353 | ||
7354 | * Improvements in the native DJGPP version of GDB | |
7355 | ||
7356 | The distribution now includes all the scripts and auxiliary files | |
7357 | necessary to build the native DJGPP version on MS-DOS/MS-Windows | |
7358 | machines ``out of the box''. | |
7359 | ||
7360 | The DJGPP version can now debug programs that use signals. It is | |
7361 | possible to catch signals that happened in the debuggee, deliver | |
7362 | signals to it, interrupt it with Ctrl-C, etc. (Previously, a signal | |
7363 | would kill the program being debugged.) Programs that hook hardware | |
7364 | interrupts (keyboard, timer, etc.) can also be debugged. | |
7365 | ||
7366 | It is now possible to debug DJGPP programs that redirect their | |
7367 | standard handles or switch them to raw (as opposed to cooked) mode, or | |
7368 | even close them. The command ``run < foo > bar'' works as expected, | |
7369 | and ``info terminal'' reports useful information about the debuggee's | |
7370 | terminal, including raw/cooked mode, redirection, etc. | |
7371 | ||
7372 | The DJGPP version now uses termios functions for console I/O, which | |
7373 | enables debugging graphics programs. Interrupting GDB with Ctrl-C | |
7374 | also works. | |
7375 | ||
7376 | DOS-style file names with drive letters are now fully supported by | |
7377 | GDB. | |
7378 | ||
7379 | It is now possible to debug DJGPP programs that switch their working | |
7380 | directory. It is also possible to rerun the debuggee any number of | |
7381 | times without restarting GDB; thus, you can use the same setup, | |
7382 | breakpoints, etc. for many debugging sessions. | |
7383 | ||
ed9a39eb JM |
7384 | * New native configurations |
7385 | ||
7386 | ARM GNU/Linux arm*-*-linux* | |
afc05dd4 | 7387 | PowerPC GNU/Linux powerpc-*-linux* |
ed9a39eb | 7388 | |
7a292a7a SS |
7389 | * New targets |
7390 | ||
96baa820 | 7391 | Motorola MCore mcore-*-* |
adf40b2e JM |
7392 | x86 VxWorks i[3456]86-*-vxworks* |
7393 | PowerPC VxWorks powerpc-*-vxworks* | |
7a292a7a SS |
7394 | TI TMS320C80 tic80-*-* |
7395 | ||
085dd6e6 JM |
7396 | * OBSOLETE configurations |
7397 | ||
7398 | Altos 3068 m68*-altos-* | |
7399 | Convex c1-*-*, c2-*-* | |
9846de1b | 7400 | Pyramid pyramid-*-* |
ed9a39eb | 7401 | ARM RISCix arm-*-* (as host) |
104c1213 | 7402 | Tahoe tahoe-*-* |
7a292a7a | 7403 | |
9debab2f AC |
7404 | Configurations that have been declared obsolete will be commented out, |
7405 | but the code will be left in place. If there is no activity to revive | |
7406 | these configurations before the next release of GDB, the sources will | |
7407 | be permanently REMOVED. | |
7408 | ||
5330533d SS |
7409 | * Gould support removed |
7410 | ||
7411 | Support for the Gould PowerNode and NP1 has been removed. | |
7412 | ||
bc9e5bbf AC |
7413 | * New features for SVR4 |
7414 | ||
7415 | On SVR4 native platforms (such as Solaris), if you attach to a process | |
7416 | without first loading a symbol file, GDB will now attempt to locate and | |
7417 | load symbols from the running process's executable file. | |
7418 | ||
7419 | * Many C++ enhancements | |
7420 | ||
7421 | C++ support has been greatly improved. Overload resolution now works properly | |
7422 | in almost all cases. RTTI support is on the way. | |
7423 | ||
adf40b2e JM |
7424 | * Remote targets can connect to a sub-program |
7425 | ||
7426 | A popen(3) style serial-device has been added. This device starts a | |
7427 | sub-process (such as a stand-alone simulator) and then communicates | |
7428 | with that. The sub-program to run is specified using the syntax | |
7429 | ``|<program> <args>'' vis: | |
7430 | ||
7431 | (gdb) set remotedebug 1 | |
7432 | (gdb) target extended-remote |mn10300-elf-sim program-args | |
7433 | ||
43e526b9 JM |
7434 | * MIPS 64 remote protocol |
7435 | ||
7436 | A long standing bug in the mips64 remote protocol where by GDB | |
7437 | expected certain 32 bit registers (ex SR) to be transfered as 32 | |
7438 | instead of 64 bits has been fixed. | |
7439 | ||
7440 | The command ``set remote-mips64-transfers-32bit-regs on'' has been | |
7441 | added to provide backward compatibility with older versions of GDB. | |
7442 | ||
96baa820 JM |
7443 | * ``set remotebinarydownload'' replaced by ``set remote X-packet'' |
7444 | ||
7445 | The command ``set remotebinarydownload'' command has been replaced by | |
7446 | ``set remote X-packet''. Other commands in ``set remote'' family | |
7447 | include ``set remote P-packet''. | |
7448 | ||
11cf8741 JM |
7449 | * Breakpoint commands accept ranges. |
7450 | ||
7451 | The breakpoint commands ``enable'', ``disable'', and ``delete'' now | |
7452 | accept a range of breakpoints, e.g. ``5-7''. The tracepoint command | |
7453 | ``tracepoint passcount'' also accepts a range of tracepoints. | |
7454 | ||
7876dd43 DB |
7455 | * ``apropos'' command added. |
7456 | ||
7457 | The ``apropos'' command searches through command names and | |
7458 | documentation strings, printing out matches, making it much easier to | |
7459 | try to find a command that does what you are looking for. | |
7460 | ||
bc9e5bbf AC |
7461 | * New MI interface |
7462 | ||
7463 | A new machine oriented interface (MI) has been added to GDB. This | |
7464 | interface is designed for debug environments running GDB as a separate | |
7162c0ca EZ |
7465 | process. This is part of the long term libGDB project. See the |
7466 | "GDB/MI" chapter of the GDB manual for further information. It can be | |
7467 | enabled by configuring with: | |
bc9e5bbf AC |
7468 | |
7469 | .../configure --enable-gdbmi | |
7470 | ||
c906108c SS |
7471 | *** Changes in GDB-4.18: |
7472 | ||
7473 | * New native configurations | |
7474 | ||
7475 | HP-UX 10.20 hppa*-*-hpux10.20 | |
7476 | HP-UX 11.x hppa*-*-hpux11.0* | |
55241689 | 7477 | M68K GNU/Linux m68*-*-linux* |
c906108c SS |
7478 | |
7479 | * New targets | |
7480 | ||
7481 | Fujitsu FR30 fr30-*-elf* | |
7482 | Intel StrongARM strongarm-*-* | |
7483 | Mitsubishi D30V d30v-*-* | |
7484 | ||
7485 | * OBSOLETE configurations | |
7486 | ||
7487 | Gould PowerNode, NP1 np1-*-*, pn-*-* | |
7488 | ||
7489 | Configurations that have been declared obsolete will be commented out, | |
7490 | but the code will be left in place. If there is no activity to revive | |
7491 | these configurations before the next release of GDB, the sources will | |
7492 | be permanently REMOVED. | |
7493 | ||
7494 | * ANSI/ISO C | |
7495 | ||
7496 | As a compatibility experiment, GDB's source files buildsym.h and | |
7497 | buildsym.c have been converted to pure standard C, no longer | |
7498 | containing any K&R compatibility code. We believe that all systems in | |
7499 | use today either come with a standard C compiler, or have a GCC port | |
7500 | available. If this is not true, please report the affected | |
7501 | configuration to bug-gdb@gnu.org immediately. See the README file for | |
7502 | information about getting a standard C compiler if you don't have one | |
7503 | already. | |
7504 | ||
7505 | * Readline 2.2 | |
7506 | ||
7507 | GDB now uses readline 2.2. | |
7508 | ||
7509 | * set extension-language | |
7510 | ||
7511 | You can now control the mapping between filename extensions and source | |
7512 | languages by using the `set extension-language' command. For instance, | |
7513 | you can ask GDB to treat .c files as C++ by saying | |
7514 | set extension-language .c c++ | |
7515 | The command `info extensions' lists all of the recognized extensions | |
7516 | and their associated languages. | |
7517 | ||
7518 | * Setting processor type for PowerPC and RS/6000 | |
7519 | ||
7520 | When GDB is configured for a powerpc*-*-* or an rs6000*-*-* target, | |
7521 | you can use the `set processor' command to specify what variant of the | |
7522 | PowerPC family you are debugging. The command | |
7523 | ||
7524 | set processor NAME | |
7525 | ||
7526 | sets the PowerPC/RS6000 variant to NAME. GDB knows about the | |
7527 | following PowerPC and RS6000 variants: | |
7528 | ||
7529 | ppc-uisa PowerPC UISA - a PPC processor as viewed by user-level code | |
7530 | rs6000 IBM RS6000 ("POWER") architecture, user-level view | |
7531 | 403 IBM PowerPC 403 | |
7532 | 403GC IBM PowerPC 403GC | |
7533 | 505 Motorola PowerPC 505 | |
7534 | 860 Motorola PowerPC 860 or 850 | |
7535 | 601 Motorola PowerPC 601 | |
7536 | 602 Motorola PowerPC 602 | |
7537 | 603 Motorola/IBM PowerPC 603 or 603e | |
7538 | 604 Motorola PowerPC 604 or 604e | |
7539 | 750 Motorola/IBM PowerPC 750 or 750 | |
7540 | ||
7541 | At the moment, this command just tells GDB what to name the | |
7542 | special-purpose processor registers. Since almost all the affected | |
7543 | registers are inaccessible to user-level programs, this command is | |
7544 | only useful for remote debugging in its present form. | |
7545 | ||
7546 | * HP-UX support | |
7547 | ||
7548 | Thanks to a major code donation from Hewlett-Packard, GDB now has much | |
7549 | more extensive support for HP-UX. Added features include shared | |
7550 | library support, kernel threads and hardware watchpoints for 11.00, | |
7551 | support for HP's ANSI C and C++ compilers, and a compatibility mode | |
7552 | for xdb and dbx commands. | |
7553 | ||
7554 | * Catchpoints | |
7555 | ||
7556 | HP's donation includes the new concept of catchpoints, which is a | |
7557 | generalization of the old catch command. On HP-UX, it is now possible | |
7558 | to catch exec, fork, and vfork, as well as library loading. | |
7559 | ||
7560 | This means that the existing catch command has changed; its first | |
7561 | argument now specifies the type of catch to be set up. See the | |
7562 | output of "help catch" for a list of catchpoint types. | |
7563 | ||
7564 | * Debugging across forks | |
7565 | ||
7566 | On HP-UX, you can choose which process to debug when a fork() happens | |
7567 | in the inferior. | |
7568 | ||
7569 | * TUI | |
7570 | ||
7571 | HP has donated a curses-based terminal user interface (TUI). To get | |
7572 | it, build with --enable-tui. Although this can be enabled for any | |
7573 | configuration, at present it only works for native HP debugging. | |
7574 | ||
7575 | * GDB remote protocol additions | |
7576 | ||
7577 | A new protocol packet 'X' that writes binary data is now available. | |
7578 | Default behavior is to try 'X', then drop back to 'M' if the stub | |
7579 | fails to respond. The settable variable `remotebinarydownload' | |
7580 | allows explicit control over the use of 'X'. | |
7581 | ||
7582 | For 64-bit targets, the memory packets ('M' and 'm') can now contain a | |
7583 | full 64-bit address. The command | |
7584 | ||
7585 | set remoteaddresssize 32 | |
7586 | ||
7587 | can be used to revert to the old behaviour. For existing remote stubs | |
7588 | the change should not be noticed, as the additional address information | |
7589 | will be discarded. | |
7590 | ||
7591 | In order to assist in debugging stubs, you may use the maintenance | |
7592 | command `packet' to send any text string to the stub. For instance, | |
7593 | ||
7594 | maint packet heythere | |
7595 | ||
7596 | sends the packet "$heythere#<checksum>". Note that it is very easy to | |
7597 | disrupt a debugging session by sending the wrong packet at the wrong | |
7598 | time. | |
7599 | ||
7600 | The compare-sections command allows you to compare section data on the | |
7601 | target to what is in the executable file without uploading or | |
7602 | downloading, by comparing CRC checksums. | |
7603 | ||
7604 | * Tracing can collect general expressions | |
7605 | ||
7606 | You may now collect general expressions at tracepoints. This requires | |
7607 | further additions to the target-side stub; see tracepoint.c and | |
7608 | doc/agentexpr.texi for further details. | |
7609 | ||
7610 | * mask-address variable for Mips | |
7611 | ||
7612 | For Mips targets, you may control the zeroing of the upper 32 bits of | |
7613 | a 64-bit address by entering `set mask-address on'. This is mainly | |
7614 | of interest to users of embedded R4xxx and R5xxx processors. | |
7615 | ||
7616 | * Higher serial baud rates | |
7617 | ||
7618 | GDB's serial code now allows you to specify baud rates 57600, 115200, | |
7619 | 230400, and 460800 baud. (Note that your host system may not be able | |
7620 | to achieve all of these rates.) | |
7621 | ||
7622 | * i960 simulator | |
7623 | ||
7624 | The i960 configuration now includes an initial implementation of a | |
7625 | builtin simulator, contributed by Jim Wilson. | |
7626 | ||
7627 | ||
7628 | *** Changes in GDB-4.17: | |
7629 | ||
7630 | * New native configurations | |
7631 | ||
7632 | Alpha GNU/Linux alpha*-*-linux* | |
7633 | Unixware 2.x i[3456]86-unixware2* | |
7634 | Irix 6.x mips*-sgi-irix6* | |
7635 | PowerPC GNU/Linux powerpc-*-linux* | |
7636 | PowerPC Solaris powerpcle-*-solaris* | |
7637 | Sparc GNU/Linux sparc-*-linux* | |
7638 | Motorola sysV68 R3V7.1 m68k-motorola-sysv | |
7639 | ||
7640 | * New targets | |
7641 | ||
7642 | Argonaut Risc Chip (ARC) arc-*-* | |
7643 | Hitachi H8/300S h8300*-*-* | |
7644 | Matsushita MN10200 w/simulator mn10200-*-* | |
7645 | Matsushita MN10300 w/simulator mn10300-*-* | |
7646 | MIPS NEC VR4100 mips64*vr4100*{,el}-*-elf* | |
7647 | MIPS NEC VR5000 mips64*vr5000*{,el}-*-elf* | |
7648 | MIPS Toshiba TX39 mips64*tx39*{,el}-*-elf* | |
7649 | Mitsubishi D10V w/simulator d10v-*-* | |
7650 | Mitsubishi M32R/D w/simulator m32r-*-elf* | |
7651 | Tsqware Sparclet sparclet-*-* | |
7652 | NEC V850 w/simulator v850-*-* | |
7653 | ||
7654 | * New debugging protocols | |
7655 | ||
7656 | ARM with RDI protocol arm*-*-* | |
7657 | M68K with dBUG monitor m68*-*-{aout,coff,elf} | |
7658 | DDB and LSI variants of PMON protocol mips*-*-* | |
7659 | PowerPC with DINK32 monitor powerpc{,le}-*-eabi | |
7660 | PowerPC with SDS protocol powerpc{,le}-*-eabi | |
7661 | Macraigor OCD (Wiggler) devices powerpc{,le}-*-eabi | |
7662 | ||
7663 | * DWARF 2 | |
7664 | ||
7665 | All configurations can now understand and use the DWARF 2 debugging | |
7666 | format. The choice is automatic, if the symbol file contains DWARF 2 | |
7667 | information. | |
7668 | ||
7669 | * Java frontend | |
7670 | ||
7671 | GDB now includes basic Java language support. This support is | |
7672 | only useful with Java compilers that produce native machine code. | |
7673 | ||
7674 | * solib-absolute-prefix and solib-search-path | |
7675 | ||
7676 | For SunOS and SVR4 shared libraries, you may now set the prefix for | |
7677 | loading absolute shared library symbol files, and the search path for | |
7678 | locating non-absolute shared library symbol files. | |
7679 | ||
7680 | * Live range splitting | |
7681 | ||
7682 | GDB can now effectively debug code for which GCC has performed live | |
7683 | range splitting as part of its optimization. See gdb/doc/LRS for | |
7684 | more details on the expected format of the stabs information. | |
7685 | ||
7686 | * Hurd support | |
7687 | ||
7688 | GDB's support for the GNU Hurd, including thread debugging, has been | |
7689 | updated to work with current versions of the Hurd. | |
7690 | ||
7691 | * ARM Thumb support | |
7692 | ||
7693 | GDB's ARM target configuration now handles the ARM7T (Thumb) 16-bit | |
7694 | instruction set. ARM GDB automatically detects when Thumb | |
7695 | instructions are in use, and adjusts disassembly and backtracing | |
7696 | accordingly. | |
7697 | ||
7698 | * MIPS16 support | |
7699 | ||
7700 | GDB's MIPS target configurations now handle the MIP16 16-bit | |
7701 | instruction set. | |
7702 | ||
7703 | * Overlay support | |
7704 | ||
7705 | GDB now includes support for overlays; if an executable has been | |
7706 | linked such that multiple sections are based at the same address, GDB | |
7707 | will decide which section to use for symbolic info. You can choose to | |
7708 | control the decision manually, using overlay commands, or implement | |
7709 | additional target-side support and use "overlay load-target" to bring | |
7710 | in the overlay mapping. Do "help overlay" for more detail. | |
7711 | ||
7712 | * info symbol | |
7713 | ||
7714 | The command "info symbol <address>" displays information about | |
7715 | the symbol at the specified address. | |
7716 | ||
7717 | * Trace support | |
7718 | ||
7719 | The standard remote protocol now includes an extension that allows | |
7720 | asynchronous collection and display of trace data. This requires | |
7721 | extensive support in the target-side debugging stub. Tracing mode | |
7722 | includes a new interaction mode in GDB and new commands: see the | |
7723 | file tracepoint.c for more details. | |
7724 | ||
7725 | * MIPS simulator | |
7726 | ||
7727 | Configurations for embedded MIPS now include a simulator contributed | |
7728 | by Cygnus Solutions. The simulator supports the instruction sets | |
7729 | of most MIPS variants. | |
7730 | ||
7731 | * Sparc simulator | |
7732 | ||
7733 | Sparc configurations may now include the ERC32 simulator contributed | |
7734 | by the European Space Agency. The simulator is not built into | |
7735 | Sparc targets by default; configure with --enable-sim to include it. | |
7736 | ||
7737 | * set architecture | |
7738 | ||
7739 | For target configurations that may include multiple variants of a | |
7740 | basic architecture (such as MIPS and SH), you may now set the | |
7741 | architecture explicitly. "set arch" sets, "info arch" lists | |
7742 | the possible architectures. | |
7743 | ||
7744 | *** Changes in GDB-4.16: | |
7745 | ||
7746 | * New native configurations | |
7747 | ||
7748 | Windows 95, x86 Windows NT i[345]86-*-cygwin32 | |
7749 | M68K NetBSD m68k-*-netbsd* | |
7750 | PowerPC AIX 4.x powerpc-*-aix* | |
7751 | PowerPC MacOS powerpc-*-macos* | |
7752 | PowerPC Windows NT powerpcle-*-cygwin32 | |
7753 | RS/6000 AIX 4.x rs6000-*-aix4* | |
7754 | ||
7755 | * New targets | |
7756 | ||
7757 | ARM with RDP protocol arm-*-* | |
7758 | I960 with MON960 i960-*-coff | |
7759 | MIPS VxWorks mips*-*-vxworks* | |
7760 | MIPS VR4300 with PMON mips64*vr4300{,el}-*-elf* | |
7761 | PowerPC with PPCBUG monitor powerpc{,le}-*-eabi* | |
7762 | Hitachi SH3 sh-*-* | |
7763 | Matra Sparclet sparclet-*-* | |
7764 | ||
7765 | * PowerPC simulator | |
7766 | ||
7767 | The powerpc-eabi configuration now includes the PSIM simulator, | |
7768 | contributed by Andrew Cagney, with assistance from Mike Meissner. | |
7769 | PSIM is a very elaborate model of the PowerPC, including not only | |
7770 | basic instruction set execution, but also details of execution unit | |
7771 | performance and I/O hardware. See sim/ppc/README for more details. | |
7772 | ||
7773 | * Solaris 2.5 | |
7774 | ||
7775 | GDB now works with Solaris 2.5. | |
7776 | ||
7777 | * Windows 95/NT native | |
7778 | ||
7779 | GDB will now work as a native debugger on Windows 95 and Windows NT. | |
7780 | To build it from source, you must use the "gnu-win32" environment, | |
7781 | which uses a DLL to emulate enough of Unix to run the GNU tools. | |
7782 | Further information, binaries, and sources are available at | |
7783 | ftp.cygnus.com, under pub/gnu-win32. | |
7784 | ||
7785 | * dont-repeat command | |
7786 | ||
7787 | If a user-defined command includes the command `dont-repeat', then the | |
7788 | command will not be repeated if the user just types return. This is | |
7789 | useful if the command is time-consuming to run, so that accidental | |
7790 | extra keystrokes don't run the same command many times. | |
7791 | ||
7792 | * Send break instead of ^C | |
7793 | ||
7794 | The standard remote protocol now includes an option to send a break | |
7795 | rather than a ^C to the target in order to interrupt it. By default, | |
7796 | GDB will send ^C; to send a break, set the variable `remotebreak' to 1. | |
7797 | ||
7798 | * Remote protocol timeout | |
7799 | ||
7800 | The standard remote protocol includes a new variable `remotetimeout' | |
7801 | that allows you to set the number of seconds before GDB gives up trying | |
7802 | to read from the target. The default value is 2. | |
7803 | ||
7804 | * Automatic tracking of dynamic object loading (HPUX and Solaris only) | |
7805 | ||
7806 | By default GDB will automatically keep track of objects as they are | |
7807 | loaded and unloaded by the dynamic linker. By using the command `set | |
7808 | stop-on-solib-events 1' you can arrange for GDB to stop the inferior | |
7809 | when shared library events occur, thus allowing you to set breakpoints | |
7810 | in shared libraries which are explicitly loaded by the inferior. | |
7811 | ||
7812 | Note this feature does not work on hpux8. On hpux9 you must link | |
7813 | /usr/lib/end.o into your program. This feature should work | |
7814 | automatically on hpux10. | |
7815 | ||
7816 | * Irix 5.x hardware watchpoint support | |
7817 | ||
7818 | Irix 5 configurations now support the use of hardware watchpoints. | |
7819 | ||
7820 | * Mips protocol "SYN garbage limit" | |
7821 | ||
7822 | When debugging a Mips target using the `target mips' protocol, you | |
7823 | may set the number of characters that GDB will ignore by setting | |
7824 | the `syn-garbage-limit'. A value of -1 means that GDB will ignore | |
7825 | every character. The default value is 1050. | |
7826 | ||
7827 | * Recording and replaying remote debug sessions | |
7828 | ||
7829 | If you set `remotelogfile' to the name of a file, gdb will write to it | |
7830 | a recording of a remote debug session. This recording may then be | |
7831 | replayed back to gdb using "gdbreplay". See gdbserver/README for | |
7832 | details. This is useful when you have a problem with GDB while doing | |
7833 | remote debugging; you can make a recording of the session and send it | |
7834 | to someone else, who can then recreate the problem. | |
7835 | ||
7836 | * Speedups for remote debugging | |
7837 | ||
7838 | GDB includes speedups for downloading and stepping MIPS systems using | |
7839 | the IDT monitor, fast downloads to the Hitachi SH E7000 emulator, | |
7840 | and more efficient S-record downloading. | |
7841 | ||
7842 | * Memory use reductions and statistics collection | |
7843 | ||
7844 | GDB now uses less memory and reports statistics about memory usage. | |
7845 | Try the `maint print statistics' command, for example. | |
7846 | ||
7847 | *** Changes in GDB-4.15: | |
7848 | ||
7849 | * Psymtabs for XCOFF | |
7850 | ||
7851 | The symbol reader for AIX GDB now uses partial symbol tables. This | |
7852 | can greatly improve startup time, especially for large executables. | |
7853 | ||
7854 | * Remote targets use caching | |
7855 | ||
7856 | Remote targets now use a data cache to speed up communication with the | |
7857 | remote side. The data cache could lead to incorrect results because | |
7858 | it doesn't know about volatile variables, thus making it impossible to | |
7859 | debug targets which use memory mapped I/O devices. `set remotecache | |
09f2921c | 7860 | off' turns the data cache off. |
c906108c SS |
7861 | |
7862 | * Remote targets may have threads | |
7863 | ||
7864 | The standard remote protocol now includes support for multiple threads | |
7865 | in the target system, using new protocol commands 'H' and 'T'. See | |
7866 | gdb/remote.c for details. | |
7867 | ||
7868 | * NetROM support | |
7869 | ||
7870 | If GDB is configured with `--enable-netrom', then it will include | |
7871 | support for the NetROM ROM emulator from XLNT Designs. The NetROM | |
7872 | acts as though it is a bank of ROM on the target board, but you can | |
7873 | write into it over the network. GDB's support consists only of | |
7874 | support for fast loading into the emulated ROM; to debug, you must use | |
7875 | another protocol, such as standard remote protocol. The usual | |
7876 | sequence is something like | |
7877 | ||
7878 | target nrom <netrom-hostname> | |
7879 | load <prog> | |
7880 | target remote <netrom-hostname>:1235 | |
7881 | ||
7882 | * Macintosh host | |
7883 | ||
7884 | GDB now includes support for the Apple Macintosh, as a host only. It | |
7885 | may be run as either an MPW tool or as a standalone application, and | |
7886 | it can debug through the serial port. All the usual GDB commands are | |
7887 | available, but to the target command, you must supply "serial" as the | |
7888 | device type instead of "/dev/ttyXX". See mpw-README in the main | |
7889 | directory for more information on how to build. The MPW configuration | |
7890 | scripts */mpw-config.in support only a few targets, and only the | |
7891 | mips-idt-ecoff target has been tested. | |
7892 | ||
7893 | * Autoconf | |
7894 | ||
7895 | GDB configuration now uses autoconf. This is not user-visible, | |
7896 | but does simplify configuration and building. | |
7897 | ||
7898 | * hpux10 | |
7899 | ||
7900 | GDB now supports hpux10. | |
7901 | ||
7902 | *** Changes in GDB-4.14: | |
7903 | ||
7904 | * New native configurations | |
7905 | ||
7906 | x86 FreeBSD i[345]86-*-freebsd | |
7907 | x86 NetBSD i[345]86-*-netbsd | |
7908 | NS32k NetBSD ns32k-*-netbsd | |
7909 | Sparc NetBSD sparc-*-netbsd | |
7910 | ||
7911 | * New targets | |
7912 | ||
7913 | A29K VxWorks a29k-*-vxworks | |
7914 | HP PA PRO embedded (WinBond W89K & Oki OP50N) hppa*-*-pro* | |
7915 | CPU32 EST-300 emulator m68*-*-est* | |
7916 | PowerPC ELF powerpc-*-elf | |
7917 | WDC 65816 w65-*-* | |
7918 | ||
7919 | * Alpha OSF/1 support for procfs | |
7920 | ||
7921 | GDB now supports procfs under OSF/1-2.x and higher, which makes it | |
7922 | possible to attach to running processes. As the mounting of the /proc | |
7923 | filesystem is optional on the Alpha, GDB automatically determines | |
7924 | the availability of /proc during startup. This can lead to problems | |
7925 | if /proc is unmounted after GDB has been started. | |
7926 | ||
7927 | * Arguments to user-defined commands | |
7928 | ||
7929 | User commands may accept up to 10 arguments separated by whitespace. | |
7930 | Arguments are accessed within the user command via $arg0..$arg9. A | |
7931 | trivial example: | |
7932 | define adder | |
7933 | print $arg0 + $arg1 + $arg2 | |
7934 | ||
7935 | To execute the command use: | |
7936 | adder 1 2 3 | |
7937 | ||
7938 | Defines the command "adder" which prints the sum of its three arguments. | |
7939 | Note the arguments are text substitutions, so they may reference variables, | |
7940 | use complex expressions, or even perform inferior function calls. | |
7941 | ||
7942 | * New `if' and `while' commands | |
7943 | ||
7944 | This makes it possible to write more sophisticated user-defined | |
7945 | commands. Both commands take a single argument, which is the | |
7946 | expression to evaluate, and must be followed by the commands to | |
7947 | execute, one per line, if the expression is nonzero, the list being | |
7948 | terminated by the word `end'. The `if' command list may include an | |
7949 | `else' word, which causes the following commands to be executed only | |
7950 | if the expression is zero. | |
7951 | ||
7952 | * Fortran source language mode | |
7953 | ||
7954 | GDB now includes partial support for Fortran 77. It will recognize | |
7955 | Fortran programs and can evaluate a subset of Fortran expressions, but | |
7956 | variables and functions may not be handled correctly. GDB will work | |
7957 | with G77, but does not yet know much about symbols emitted by other | |
7958 | Fortran compilers. | |
7959 | ||
7960 | * Better HPUX support | |
7961 | ||
7962 | Most debugging facilities now work on dynamic executables for HPPAs | |
7963 | running hpux9 or later. You can attach to running dynamically linked | |
7964 | processes, but by default the dynamic libraries will be read-only, so | |
7965 | for instance you won't be able to put breakpoints in them. To change | |
7966 | that behavior do the following before running the program: | |
7967 | ||
7968 | adb -w a.out | |
7969 | __dld_flags?W 0x5 | |
7970 | control-d | |
7971 | ||
7972 | This will cause the libraries to be mapped private and read-write. | |
7973 | To revert to the normal behavior, do this: | |
7974 | ||
7975 | adb -w a.out | |
7976 | __dld_flags?W 0x4 | |
7977 | control-d | |
7978 | ||
7979 | You cannot set breakpoints or examine data in the library until after | |
7980 | the library is loaded if the function/data symbols do not have | |
7981 | external linkage. | |
7982 | ||
7983 | GDB can now also read debug symbols produced by the HP C compiler on | |
7984 | HPPAs (sorry, no C++, Fortran or 68k support). | |
7985 | ||
7986 | * Target byte order now dynamically selectable | |
7987 | ||
7988 | You can choose which byte order to use with a target system, via the | |
7989 | commands "set endian big" and "set endian little", and you can see the | |
7990 | current setting by using "show endian". You can also give the command | |
7991 | "set endian auto", in which case GDB will use the byte order | |
7992 | associated with the executable. Currently, only embedded MIPS | |
7993 | configurations support dynamic selection of target byte order. | |
7994 | ||
7995 | * New DOS host serial code | |
7996 | ||
7997 | This version uses DPMI interrupts to handle buffered I/O, so you | |
7998 | no longer need to run asynctsr when debugging boards connected to | |
7999 | a PC's serial port. | |
8000 | ||
8001 | *** Changes in GDB-4.13: | |
8002 | ||
8003 | * New "complete" command | |
8004 | ||
8005 | This lists all the possible completions for the rest of the line, if it | |
8006 | were to be given as a command itself. This is intended for use by emacs. | |
8007 | ||
8008 | * Trailing space optional in prompt | |
8009 | ||
8010 | "set prompt" no longer adds a space for you after the prompt you set. This | |
8011 | allows you to set a prompt which ends in a space or one that does not. | |
8012 | ||
8013 | * Breakpoint hit counts | |
8014 | ||
8015 | "info break" now displays a count of the number of times the breakpoint | |
8016 | has been hit. This is especially useful in conjunction with "ignore"; you | |
8017 | can ignore a large number of breakpoint hits, look at the breakpoint info | |
8018 | to see how many times the breakpoint was hit, then run again, ignoring one | |
8019 | less than that number, and this will get you quickly to the last hit of | |
8020 | that breakpoint. | |
8021 | ||
8022 | * Ability to stop printing at NULL character | |
8023 | ||
8024 | "set print null-stop" will cause GDB to stop printing the characters of | |
8025 | an array when the first NULL is encountered. This is useful when large | |
8026 | arrays actually contain only short strings. | |
8027 | ||
8028 | * Shared library breakpoints | |
8029 | ||
8030 | In SunOS 4.x, SVR4, and Alpha OSF/1 configurations, you can now set | |
8031 | breakpoints in shared libraries before the executable is run. | |
8032 | ||
8033 | * Hardware watchpoints | |
8034 | ||
8035 | There is a new hardware breakpoint for the watch command for sparclite | |
8036 | targets. See gdb/sparclite/hw_breakpoint.note. | |
8037 | ||
55241689 | 8038 | Hardware watchpoints are also now supported under GNU/Linux. |
c906108c SS |
8039 | |
8040 | * Annotations | |
8041 | ||
8042 | Annotations have been added. These are for use with graphical interfaces, | |
8043 | and are still experimental. Currently only gdba.el uses these. | |
8044 | ||
8045 | * Improved Irix 5 support | |
8046 | ||
8047 | GDB now works properly with Irix 5.2. | |
8048 | ||
8049 | * Improved HPPA support | |
8050 | ||
8051 | GDB now works properly with the latest GCC and GAS. | |
8052 | ||
8053 | * New native configurations | |
8054 | ||
8055 | Sequent PTX4 i[34]86-sequent-ptx4 | |
8056 | HPPA running OSF/1 hppa*-*-osf* | |
8057 | Atari TT running SVR4 m68*-*-sysv4* | |
8058 | RS/6000 LynxOS rs6000-*-lynxos* | |
8059 | ||
8060 | * New targets | |
8061 | ||
8062 | OS/9000 i[34]86-*-os9k | |
8063 | MIPS R4000 mips64*{,el}-*-{ecoff,elf} | |
8064 | Sparc64 sparc64-*-* | |
8065 | ||
8066 | * Hitachi SH7000 and E7000-PC ICE support | |
8067 | ||
8068 | There is now support for communicating with the Hitachi E7000-PC ICE. | |
8069 | This is available automatically when GDB is configured for the SH. | |
8070 | ||
8071 | * Fixes | |
8072 | ||
8073 | As usual, a variety of small fixes and improvements, both generic | |
8074 | and configuration-specific. See the ChangeLog for more detail. | |
8075 | ||
8076 | *** Changes in GDB-4.12: | |
8077 | ||
8078 | * Irix 5 is now supported | |
8079 | ||
8080 | * HPPA support | |
8081 | ||
8082 | GDB-4.12 on the HPPA has a number of changes which make it unable | |
8083 | to debug the output from the currently released versions of GCC and | |
8084 | GAS (GCC 2.5.8 and GAS-2.2 or PAGAS-1.36). Until the next major release | |
8085 | of GCC and GAS, versions of these tools designed to work with GDB-4.12 | |
8086 | can be retrieved via anonymous ftp from jaguar.cs.utah.edu:/dist. | |
8087 | ||
8088 | ||
8089 | *** Changes in GDB-4.11: | |
8090 | ||
8091 | * User visible changes: | |
8092 | ||
8093 | * Remote Debugging | |
8094 | ||
8095 | The "set remotedebug" option is now consistent between the mips remote | |
8096 | target, remote targets using the gdb-specific protocol, UDI (AMD's | |
8097 | debug protocol for the 29k) and the 88k bug monitor. It is now an | |
8098 | integer specifying a debug level (normally 0 or 1, but 2 means more | |
8099 | debugging info for the mips target). | |
8100 | ||
8101 | * DEC Alpha native support | |
8102 | ||
8103 | GDB now works on the DEC Alpha. GCC 2.4.5 does not produce usable | |
8104 | debug info, but GDB works fairly well with the DEC compiler and should | |
8105 | work with a future GCC release. See the README file for a few | |
8106 | Alpha-specific notes. | |
8107 | ||
8108 | * Preliminary thread implementation | |
8109 | ||
8110 | GDB now has preliminary thread support for both SGI/Irix and LynxOS. | |
8111 | ||
8112 | * LynxOS native and target support for 386 | |
8113 | ||
8114 | This release has been hosted on LynxOS 2.2, and also can be configured | |
8115 | to remotely debug programs running under LynxOS (see gdb/gdbserver/README | |
8116 | for details). | |
8117 | ||
8118 | * Improvements in C++ mangling/demangling. | |
8119 | ||
8120 | This release has much better g++ debugging, specifically in name | |
8121 | mangling/demangling, virtual function calls, print virtual table, | |
8122 | call methods, ...etc. | |
8123 | ||
8124 | *** Changes in GDB-4.10: | |
8125 | ||
8126 | * User visible changes: | |
8127 | ||
8128 | Remote debugging using the GDB-specific (`target remote') protocol now | |
8129 | supports the `load' command. This is only useful if you have some | |
8130 | other way of getting the stub to the target system, and you can put it | |
8131 | somewhere in memory where it won't get clobbered by the download. | |
8132 | ||
8133 | Filename completion now works. | |
8134 | ||
8135 | When run under emacs mode, the "info line" command now causes the | |
8136 | arrow to point to the line specified. Also, "info line" prints | |
8137 | addresses in symbolic form (as well as hex). | |
8138 | ||
8139 | All vxworks based targets now support a user settable option, called | |
8140 | vxworks-timeout. This option represents the number of seconds gdb | |
8141 | should wait for responses to rpc's. You might want to use this if | |
8142 | your vxworks target is, perhaps, a slow software simulator or happens | |
8143 | to be on the far side of a thin network line. | |
8144 | ||
8145 | * DEC alpha support | |
8146 | ||
8147 | This release contains support for using a DEC alpha as a GDB host for | |
8148 | cross debugging. Native alpha debugging is not supported yet. | |
8149 | ||
8150 | ||
8151 | *** Changes in GDB-4.9: | |
8152 | ||
8153 | * Testsuite | |
8154 | ||
8155 | This is the first GDB release which is accompanied by a matching testsuite. | |
8156 | The testsuite requires installation of dejagnu, which should be available | |
8157 | via ftp from most sites that carry GNU software. | |
8158 | ||
8159 | * C++ demangling | |
8160 | ||
8161 | 'Cfront' style demangling has had its name changed to 'ARM' style, to | |
8162 | emphasize that it was written from the specifications in the C++ Annotated | |
8163 | Reference Manual, not necessarily to be compatible with AT&T cfront. Despite | |
8164 | disclaimers, it still generated too much confusion with users attempting to | |
8165 | use gdb with AT&T cfront. | |
8166 | ||
8167 | * Simulators | |
8168 | ||
8169 | GDB now uses a standard remote interface to a simulator library. | |
8170 | So far, the library contains simulators for the Zilog Z8001/2, the | |
8171 | Hitachi H8/300, H8/500 and Super-H. | |
8172 | ||
8173 | * New targets supported | |
8174 | ||
8175 | H8/300 simulator h8300-hitachi-hms or h8300hms | |
8176 | H8/500 simulator h8500-hitachi-hms or h8500hms | |
8177 | SH simulator sh-hitachi-hms or sh | |
8178 | Z8000 simulator z8k-zilog-none or z8ksim | |
8179 | IDT MIPS board over serial line mips-idt-ecoff | |
8180 | ||
8181 | Cross-debugging to GO32 targets is supported. It requires a custom | |
8182 | version of the i386-stub.c module which is integrated with the | |
8183 | GO32 memory extender. | |
8184 | ||
8185 | * New remote protocols | |
8186 | ||
8187 | MIPS remote debugging protocol. | |
8188 | ||
8189 | * New source languages supported | |
8190 | ||
8191 | This version includes preliminary support for Chill, a Pascal like language | |
8192 | used by telecommunications companies. Chill support is also being integrated | |
8193 | into the GNU compiler, but we don't know when it will be publically available. | |
8194 | ||
8195 | ||
8196 | *** Changes in GDB-4.8: | |
8197 | ||
8198 | * HP Precision Architecture supported | |
8199 | ||
8200 | GDB now supports HP PA-RISC machines running HPUX. A preliminary | |
8201 | version of this support was available as a set of patches from the | |
8202 | University of Utah. GDB does not support debugging of programs | |
8203 | compiled with the HP compiler, because HP will not document their file | |
8204 | format. Instead, you must use GCC (version 2.3.2 or later) and PA-GAS | |
8205 | (as available from jaguar.cs.utah.edu:/dist/pa-gas.u4.tar.Z). | |
8206 | ||
8207 | Many problems in the preliminary version have been fixed. | |
8208 | ||
8209 | * Faster and better demangling | |
8210 | ||
8211 | We have improved template demangling and fixed numerous bugs in the GNU style | |
8212 | demangler. It can now handle type modifiers such as `static' or `const'. Wide | |
8213 | character types (wchar_t) are now supported. Demangling of each symbol is now | |
8214 | only done once, and is cached when the symbol table for a file is read in. | |
8215 | This results in a small increase in memory usage for C programs, a moderate | |
8216 | increase in memory usage for C++ programs, and a fantastic speedup in | |
8217 | symbol lookups. | |
8218 | ||
8219 | `Cfront' style demangling still doesn't work with AT&T cfront. It was written | |
8220 | from the specifications in the Annotated Reference Manual, which AT&T's | |
8221 | compiler does not actually implement. | |
8222 | ||
8223 | * G++ multiple inheritance compiler problem | |
8224 | ||
8225 | In the 2.3.2 release of gcc/g++, how the compiler resolves multiple | |
8226 | inheritance lattices was reworked to properly discover ambiguities. We | |
8227 | recently found an example which causes this new algorithm to fail in a | |
8228 | very subtle way, producing bad debug information for those classes. | |
8229 | The file 'gcc.patch' (in this directory) can be applied to gcc to | |
8230 | circumvent the problem. A future GCC release will contain a complete | |
8231 | fix. | |
8232 | ||
8233 | The previous G++ debug info problem (mentioned below for the gdb-4.7 | |
8234 | release) is fixed in gcc version 2.3.2. | |
8235 | ||
8236 | * Improved configure script | |
8237 | ||
8238 | The `configure' script will now attempt to guess your system type if | |
8239 | you don't supply a host system type. The old scheme of supplying a | |
8240 | host system triplet is preferable over using this. All the magic is | |
8241 | done in the new `config.guess' script. Examine it for details. | |
8242 | ||
8243 | We have also brought our configure script much more in line with the FSF's | |
8244 | version. It now supports the --with-xxx options. In particular, | |
8245 | `--with-minimal-bfd' can be used to make the GDB binary image smaller. | |
8246 | The resulting GDB will not be able to read arbitrary object file formats -- | |
8247 | only the format ``expected'' to be used on the configured target system. | |
8248 | We hope to make this the default in a future release. | |
8249 | ||
8250 | * Documentation improvements | |
8251 | ||
8252 | There's new internal documentation on how to modify GDB, and how to | |
8253 | produce clean changes to the code. We implore people to read it | |
8254 | before submitting changes. | |
8255 | ||
8256 | The GDB manual uses new, sexy Texinfo conditionals, rather than arcane | |
8257 | M4 macros. The new texinfo.tex is provided in this release. Pre-built | |
8258 | `info' files are also provided. To build `info' files from scratch, | |
8259 | you will need the latest `makeinfo' release, which will be available in | |
8260 | a future texinfo-X.Y release. | |
8261 | ||
8262 | *NOTE* The new texinfo.tex can cause old versions of TeX to hang. | |
8263 | We're not sure exactly which versions have this problem, but it has | |
8264 | been seen in 3.0. We highly recommend upgrading to TeX version 3.141 | |
8265 | or better. If that isn't possible, there is a patch in | |
8266 | `texinfo/tex3patch' that will modify `texinfo/texinfo.tex' to work | |
8267 | around this problem. | |
8268 | ||
8269 | * New features | |
8270 | ||
8271 | GDB now supports array constants that can be used in expressions typed in by | |
8272 | the user. The syntax is `{element, element, ...}'. Ie: you can now type | |
8273 | `print {1, 2, 3}', and it will build up an array in memory malloc'd in | |
8274 | the target program. | |
8275 | ||
8276 | The new directory `gdb/sparclite' contains a program that demonstrates | |
8277 | how the sparc-stub.c remote stub runs on a Fujitsu SPARClite processor. | |
8278 | ||
8279 | * New native hosts supported | |
8280 | ||
8281 | HP/PA-RISC under HPUX using GNU tools hppa1.1-hp-hpux | |
8282 | 386 CPUs running SCO Unix 3.2v4 i386-unknown-sco3.2v4 | |
8283 | ||
8284 | * New targets supported | |
8285 | ||
8286 | AMD 29k family via UDI a29k-amd-udi or udi29k | |
8287 | ||
8288 | * New file formats supported | |
8289 | ||
8290 | BFD now supports reading HP/PA-RISC executables (SOM file format?), | |
8291 | HPUX core files, and SCO 3.2v2 core files. | |
8292 | ||
8293 | * Major bug fixes | |
8294 | ||
8295 | Attaching to processes now works again; thanks for the many bug reports. | |
8296 | ||
8297 | We have also stomped on a bunch of core dumps caused by | |
8298 | printf_filtered("%s") problems. | |
8299 | ||
8300 | We eliminated a copyright problem on the rpc and ptrace header files | |
8301 | for VxWorks, which was discovered at the last minute during the 4.7 | |
8302 | release. You should now be able to build a VxWorks GDB. | |
8303 | ||
8304 | You can now interrupt gdb while an attached process is running. This | |
8305 | will cause the attached process to stop, and give control back to GDB. | |
8306 | ||
8307 | We fixed problems caused by using too many file descriptors | |
8308 | for reading symbols from object files and libraries. This was | |
8309 | especially a problem for programs that used many (~100) shared | |
8310 | libraries. | |
8311 | ||
8312 | The `step' command now only enters a subroutine if there is line number | |
8313 | information for the subroutine. Otherwise it acts like the `next' | |
8314 | command. Previously, `step' would enter subroutines if there was | |
8315 | any debugging information about the routine. This avoids problems | |
8316 | when using `cc -g1' on MIPS machines. | |
8317 | ||
8318 | * Internal improvements | |
8319 | ||
8320 | GDB's internal interfaces have been improved to make it easier to support | |
8321 | debugging of multiple languages in the future. | |
8322 | ||
8323 | GDB now uses a common structure for symbol information internally. | |
8324 | Minimal symbols (derived from linkage symbols in object files), partial | |
8325 | symbols (from a quick scan of debug information), and full symbols | |
8326 | contain a common subset of information, making it easier to write | |
8327 | shared code that handles any of them. | |
8328 | ||
8329 | * New command line options | |
8330 | ||
8331 | We now accept --silent as an alias for --quiet. | |
8332 | ||
8333 | * Mmalloc licensing | |
8334 | ||
8335 | The memory-mapped-malloc library is now licensed under the GNU Library | |
8336 | General Public License. | |
8337 | ||
8338 | *** Changes in GDB-4.7: | |
8339 | ||
8340 | * Host/native/target split | |
8341 | ||
8342 | GDB has had some major internal surgery to untangle the support for | |
8343 | hosts and remote targets. Now, when you configure GDB for a remote | |
8344 | target, it will no longer load in all of the support for debugging | |
8345 | local programs on the host. When fully completed and tested, this will | |
8346 | ensure that arbitrary host/target combinations are possible. | |
8347 | ||
8348 | The primary conceptual shift is to separate the non-portable code in | |
8349 | GDB into three categories. Host specific code is required any time GDB | |
8350 | is compiled on that host, regardless of the target. Target specific | |
8351 | code relates to the peculiarities of the target, but can be compiled on | |
8352 | any host. Native specific code is everything else: it can only be | |
8353 | built when the host and target are the same system. Child process | |
8354 | handling and core file support are two common `native' examples. | |
8355 | ||
8356 | GDB's use of /proc for controlling Unix child processes is now cleaner. | |
8357 | It has been split out into a single module under the `target_ops' vector, | |
8358 | plus two native-dependent functions for each system that uses /proc. | |
8359 | ||
8360 | * New hosts supported | |
8361 | ||
8362 | HP/Apollo 68k (under the BSD domain) m68k-apollo-bsd or apollo68bsd | |
8363 | 386 CPUs running various BSD ports i386-unknown-bsd or 386bsd | |
8364 | 386 CPUs running SCO Unix i386-unknown-scosysv322 or i386sco | |
8365 | ||
8366 | * New targets supported | |
8367 | ||
8368 | Fujitsu SPARClite sparclite-fujitsu-none or sparclite | |
8369 | 68030 and CPU32 m68030-*-*, m68332-*-* | |
8370 | ||
8371 | * New native hosts supported | |
8372 | ||
8373 | 386 CPUs running various BSD ports i386-unknown-bsd or 386bsd | |
8374 | (386bsd is not well tested yet) | |
8375 | 386 CPUs running SCO Unix i386-unknown-scosysv322 or sco | |
8376 | ||
8377 | * New file formats supported | |
8378 | ||
8379 | BFD now supports COFF files for the Zilog Z8000 microprocessor. It | |
8380 | supports reading of `a.out.adobe' object files, which are an a.out | |
8381 | format extended with minimal information about multiple sections. | |
8382 | ||
8383 | * New commands | |
8384 | ||
8385 | `show copying' is the same as the old `info copying'. | |
8386 | `show warranty' is the same as `info warrantee'. | |
8387 | These were renamed for consistency. The old commands continue to work. | |
8388 | ||
8389 | `info handle' is a new alias for `info signals'. | |
8390 | ||
8391 | You can now define pre-command hooks, which attach arbitrary command | |
8392 | scripts to any command. The commands in the hook will be executed | |
8393 | prior to the user's command. You can also create a hook which will be | |
8394 | executed whenever the program stops. See gdb.texinfo. | |
8395 | ||
8396 | * C++ improvements | |
8397 | ||
8398 | We now deal with Cfront style name mangling, and can even extract type | |
8399 | info from mangled symbols. GDB can automatically figure out which | |
8400 | symbol mangling style your C++ compiler uses. | |
8401 | ||
8402 | Calling of methods and virtual functions has been improved as well. | |
8403 | ||
8404 | * Major bug fixes | |
8405 | ||
82f06518 | 8406 | The crash that occurred when debugging Sun Ansi-C compiled binaries is |
c906108c SS |
8407 | fixed. This was due to mishandling of the extra N_SO stabs output |
8408 | by the compiler. | |
8409 | ||
8410 | We also finally got Ultrix 4.2 running in house, and fixed core file | |
8411 | support, with help from a dozen people on the net. | |
8412 | ||
8413 | John M. Farrell discovered that the reason that single-stepping was so | |
8414 | slow on all of the Mips based platforms (primarily SGI and DEC) was | |
8415 | that we were trying to demangle and lookup a symbol used for internal | |
8416 | purposes on every instruction that was being stepped through. Changing | |
8417 | the name of that symbol so that it couldn't be mistaken for a C++ | |
8418 | mangled symbol sped things up a great deal. | |
8419 | ||
8420 | Rich Pixley sped up symbol lookups in general by getting much smarter | |
8421 | about when C++ symbol mangling is necessary. This should make symbol | |
8422 | completion (TAB on the command line) much faster. It's not as fast as | |
8423 | we'd like, but it's significantly faster than gdb-4.6. | |
8424 | ||
8425 | * AMD 29k support | |
8426 | ||
8427 | A new user controllable variable 'call_scratch_address' can | |
8428 | specify the location of a scratch area to be used when GDB | |
8429 | calls a function in the target. This is necessary because the | |
8430 | usual method of putting the scratch area on the stack does not work | |
8431 | in systems that have separate instruction and data spaces. | |
8432 | ||
8433 | We integrated changes to support the 29k UDI (Universal Debugger | |
8434 | Interface), but discovered at the last minute that we didn't have all | |
8435 | of the appropriate copyright paperwork. We are working with AMD to | |
8436 | resolve this, and hope to have it available soon. | |
8437 | ||
8438 | * Remote interfaces | |
8439 | ||
8440 | We have sped up the remote serial line protocol, especially for targets | |
8441 | with lots of registers. It now supports a new `expedited status' ('T') | |
8442 | message which can be used in place of the existing 'S' status message. | |
8443 | This allows the remote stub to send only the registers that GDB | |
8444 | needs to make a quick decision about single-stepping or conditional | |
8445 | breakpoints, eliminating the need to fetch the entire register set for | |
8446 | each instruction being stepped through. | |
8447 | ||
8448 | The GDB remote serial protocol now implements a write-through cache for | |
8449 | registers, only re-reading the registers if the target has run. | |
8450 | ||
8451 | There is also a new remote serial stub for SPARC processors. You can | |
8452 | find it in gdb-4.7/gdb/sparc-stub.c. This was written to support the | |
8453 | Fujitsu SPARClite processor, but will run on any stand-alone SPARC | |
8454 | processor with a serial port. | |
8455 | ||
8456 | * Configuration | |
8457 | ||
8458 | Configure.in files have become much easier to read and modify. A new | |
8459 | `table driven' format makes it more obvious what configurations are | |
8460 | supported, and what files each one uses. | |
8461 | ||
8462 | * Library changes | |
8463 | ||
8464 | There is a new opcodes library which will eventually contain all of the | |
8465 | disassembly routines and opcode tables. At present, it only contains | |
8466 | Sparc and Z8000 routines. This will allow the assembler, debugger, and | |
8467 | disassembler (binutils/objdump) to share these routines. | |
8468 | ||
8469 | The libiberty library is now copylefted under the GNU Library General | |
8470 | Public License. This allows more liberal use, and was done so libg++ | |
8471 | can use it. This makes no difference to GDB, since the Library License | |
8472 | grants all the rights from the General Public License. | |
8473 | ||
8474 | * Documentation | |
8475 | ||
8476 | The file gdb-4.7/gdb/doc/stabs.texinfo is a (relatively) complete | |
8477 | reference to the stabs symbol info used by the debugger. It is (as far | |
8478 | as we know) the only published document on this fascinating topic. We | |
8479 | encourage you to read it, compare it to the stabs information on your | |
8480 | system, and send improvements on the document in general (to | |
8481 | bug-gdb@prep.ai.mit.edu). | |
8482 | ||
8483 | And, of course, many bugs have been fixed. | |
8484 | ||
8485 | ||
8486 | *** Changes in GDB-4.6: | |
8487 | ||
8488 | * Better support for C++ function names | |
8489 | ||
8490 | GDB now accepts as input the "demangled form" of C++ overloaded function | |
8491 | names and member function names, and can do command completion on such names | |
8492 | (using TAB, TAB-TAB, and ESC-?). The names have to be quoted with a pair of | |
8493 | single quotes. Examples are 'func (int, long)' and 'obj::operator==(obj&)'. | |
8494 | Make use of command completion, it is your friend. | |
8495 | ||
8496 | GDB also now accepts a variety of C++ mangled symbol formats. They are | |
8497 | the GNU g++ style, the Cfront (ARM) style, and the Lucid (lcc) style. | |
8498 | You can tell GDB which format to use by doing a 'set demangle-style {gnu, | |
8499 | lucid, cfront, auto}'. 'gnu' is the default. Do a 'set demangle-style foo' | |
8500 | for the list of formats. | |
8501 | ||
8502 | * G++ symbol mangling problem | |
8503 | ||
8504 | Recent versions of gcc have a bug in how they emit debugging information for | |
8505 | C++ methods (when using dbx-style stabs). The file 'gcc.patch' (in this | |
8506 | directory) can be applied to gcc to fix the problem. Alternatively, if you | |
82f06518 | 8507 | can't fix gcc, you can #define GCC_MANGLE_BUG when compiling gdb/symtab.c. The |
c906108c SS |
8508 | usual symptom is difficulty with setting breakpoints on methods. GDB complains |
8509 | about the method being non-existent. (We believe that version 2.2.2 of GCC has | |
8510 | this problem.) | |
8511 | ||
8512 | * New 'maintenance' command | |
8513 | ||
8514 | All of the commands related to hacking GDB internals have been moved out of | |
8515 | the main command set, and now live behind the 'maintenance' command. This | |
8516 | can also be abbreviated as 'mt'. The following changes were made: | |
8517 | ||
8518 | dump-me -> maintenance dump-me | |
8519 | info all-breakpoints -> maintenance info breakpoints | |
8520 | printmsyms -> maintenance print msyms | |
8521 | printobjfiles -> maintenance print objfiles | |
8522 | printpsyms -> maintenance print psymbols | |
8523 | printsyms -> maintenance print symbols | |
8524 | ||
8525 | The following commands are new: | |
8526 | ||
8527 | maintenance demangle Call internal GDB demangler routine to | |
8528 | demangle a C++ link name and prints the result. | |
8529 | maintenance print type Print a type chain for a given symbol | |
8530 | ||
8531 | * Change to .gdbinit file processing | |
8532 | ||
8533 | We now read the $HOME/.gdbinit file before processing the argv arguments | |
8534 | (e.g. reading symbol files or core files). This allows global parameters to | |
8535 | be set, which will apply during the symbol reading. The ./.gdbinit is still | |
8536 | read after argv processing. | |
8537 | ||
8538 | * New hosts supported | |
8539 | ||
8540 | Solaris-2.0 !!! sparc-sun-solaris2 or sun4sol2 | |
8541 | ||
55241689 | 8542 | GNU/Linux support i386-unknown-linux or linux |
c906108c SS |
8543 | |
8544 | We are also including code to support the HP/PA running BSD and HPUX. This | |
8545 | is almost guaranteed not to work, as we didn't have time to test or build it | |
8546 | for this release. We are including it so that the more adventurous (or | |
8547 | masochistic) of you can play with it. We also had major problems with the | |
8548 | fact that the compiler that we got from HP doesn't support the -g option. | |
8549 | It costs extra. | |
8550 | ||
8551 | * New targets supported | |
8552 | ||
8553 | Hitachi H8/300 h8300-hitachi-hms or h8300hms | |
8554 | ||
8555 | * More smarts about finding #include files | |
8556 | ||
8557 | GDB now remembers the compilation directory for all include files, and for | |
8558 | all files from which C is generated (like yacc and lex sources). This | |
8559 | greatly improves GDB's ability to find yacc/lex sources, and include files, | |
8560 | especially if you are debugging your program from a directory different from | |
8561 | the one that contains your sources. | |
8562 | ||
8563 | We also fixed a bug which caused difficulty with listing and setting | |
8564 | breakpoints in include files which contain C code. (In the past, you had to | |
8565 | try twice in order to list an include file that you hadn't looked at before.) | |
8566 | ||
8567 | * Interesting infernals change | |
8568 | ||
8569 | GDB now deals with arbitrary numbers of sections, where the symbols for each | |
8570 | section must be relocated relative to that section's landing place in the | |
8571 | target's address space. This work was needed to support ELF with embedded | |
8572 | stabs used by Solaris-2.0. | |
8573 | ||
8574 | * Bug fixes (of course!) | |
8575 | ||
8576 | There have been loads of fixes for the following things: | |
8577 | mips, rs6000, 29k/udi, m68k, g++, type handling, elf/dwarf, m88k, | |
8578 | i960, stabs, DOS(GO32), procfs, etc... | |
8579 | ||
8580 | See the ChangeLog for details. | |
8581 | ||
8582 | *** Changes in GDB-4.5: | |
8583 | ||
8584 | * New machines supported (host and target) | |
8585 | ||
8586 | IBM RS6000 running AIX rs6000-ibm-aix or rs6000 | |
8587 | ||
8588 | SGI Irix-4.x mips-sgi-irix4 or iris4 | |
8589 | ||
8590 | * New malloc package | |
8591 | ||
8592 | GDB now uses a new memory manager called mmalloc, based on gmalloc. | |
82f06518 | 8593 | Mmalloc is capable of handling multiple heaps of memory. It is also |
c906108c SS |
8594 | capable of saving a heap to a file, and then mapping it back in later. |
8595 | This can be used to greatly speedup the startup of GDB by using a | |
8596 | pre-parsed symbol table which lives in a mmalloc managed heap. For | |
8597 | more details, please read mmalloc/mmalloc.texi. | |
8598 | ||
8599 | * info proc | |
8600 | ||
8601 | The 'info proc' command (SVR4 only) has been enhanced quite a bit. See | |
8602 | 'help info proc' for details. | |
8603 | ||
8604 | * MIPS ecoff symbol table format | |
8605 | ||
8606 | The code that reads MIPS symbol table format is now supported on all hosts. | |
8607 | Thanks to MIPS for releasing the sym.h and symconst.h files to make this | |
8608 | possible. | |
8609 | ||
8610 | * File name changes for MS-DOS | |
8611 | ||
8612 | Many files in the config directories have been renamed to make it easier to | |
8613 | support GDB on MS-DOSe systems (which have very restrictive file name | |
8614 | conventions :-( ). MS-DOSe host support (under DJ Delorie's GO32 | |
8615 | environment) is close to working but has some remaining problems. Note | |
8616 | that debugging of DOS programs is not supported, due to limitations | |
8617 | in the ``operating system'', but it can be used to host cross-debugging. | |
8618 | ||
8619 | * Cross byte order fixes | |
8620 | ||
8621 | Many fixes have been made to support cross debugging of Sparc and MIPS | |
8622 | targets from hosts whose byte order differs. | |
8623 | ||
8624 | * New -mapped and -readnow options | |
8625 | ||
8626 | If memory-mapped files are available on your system through the 'mmap' | |
8627 | system call, you can use the -mapped option on the `file' or | |
8628 | `symbol-file' commands to cause GDB to write the symbols from your | |
8629 | program into a reusable file. If the program you are debugging is | |
8630 | called `/path/fred', the mapped symbol file will be `./fred.syms'. | |
8631 | Future GDB debugging sessions will notice the presence of this file, | |
8632 | and will quickly map in symbol information from it, rather than reading | |
8633 | the symbol table from the executable program. Using the '-mapped' | |
8634 | option in a GDB `file' or `symbol-file' command has the same effect as | |
8635 | starting GDB with the '-mapped' command-line option. | |
8636 | ||
8637 | You can cause GDB to read the entire symbol table immediately by using | |
8638 | the '-readnow' option with any of the commands that load symbol table | |
8639 | information (or on the GDB command line). This makes the command | |
8640 | slower, but makes future operations faster. | |
8641 | ||
8642 | The -mapped and -readnow options are typically combined in order to | |
8643 | build a `fred.syms' file that contains complete symbol information. | |
8644 | A simple GDB invocation to do nothing but build a `.syms' file for future | |
8645 | use is: | |
8646 | ||
8647 | gdb -batch -nx -mapped -readnow programname | |
8648 | ||
8649 | The `.syms' file is specific to the host machine on which GDB is run. | |
8650 | It holds an exact image of GDB's internal symbol table. It cannot be | |
8651 | shared across multiple host platforms. | |
8652 | ||
8653 | * longjmp() handling | |
8654 | ||
8655 | GDB is now capable of stepping and nexting over longjmp(), _longjmp(), and | |
8656 | siglongjmp() without losing control. This feature has not yet been ported to | |
8657 | all systems. It currently works on many 386 platforms, all MIPS-based | |
8658 | platforms (SGI, DECstation, etc), and Sun3/4. | |
8659 | ||
8660 | * Solaris 2.0 | |
8661 | ||
8662 | Preliminary work has been put in to support the new Solaris OS from Sun. At | |
8663 | this time, it can control and debug processes, but it is not capable of | |
8664 | reading symbols. | |
8665 | ||
8666 | * Bug fixes | |
8667 | ||
8668 | As always, many many bug fixes. The major areas were with g++, and mipsread. | |
8669 | People using the MIPS-based platforms should experience fewer mysterious | |
8670 | crashes and trashed symbol tables. | |
8671 | ||
8672 | *** Changes in GDB-4.4: | |
8673 | ||
8674 | * New machines supported (host and target) | |
8675 | ||
8676 | SCO Unix on i386 IBM PC clones i386-sco-sysv or i386sco | |
8677 | (except core files) | |
8678 | BSD Reno on Vax vax-dec-bsd | |
8679 | Ultrix on Vax vax-dec-ultrix | |
8680 | ||
8681 | * New machines supported (target) | |
8682 | ||
8683 | AMD 29000 embedded, using EBMON a29k-none-none | |
8684 | ||
8685 | * C++ support | |
8686 | ||
8687 | GDB continues to improve its handling of C++. `References' work better. | |
8688 | The demangler has also been improved, and now deals with symbols mangled as | |
8689 | per the Annotated C++ Reference Guide. | |
8690 | ||
8691 | GDB also now handles `stabs' symbol information embedded in MIPS | |
8692 | `ecoff' symbol tables. Since the ecoff format was not easily | |
8693 | extensible to handle new languages such as C++, this appeared to be a | |
8694 | good way to put C++ debugging info into MIPS binaries. This option | |
8695 | will be supported in the GNU C compiler, version 2, when it is | |
8696 | released. | |
8697 | ||
8698 | * New features for SVR4 | |
8699 | ||
8700 | GDB now handles SVR4 shared libraries, in the same fashion as SunOS | |
8701 | shared libraries. Debugging dynamically linked programs should present | |
8702 | only minor differences from debugging statically linked programs. | |
8703 | ||
8704 | The `info proc' command will print out information about any process | |
8705 | on an SVR4 system (including the one you are debugging). At the moment, | |
8706 | it prints the address mappings of the process. | |
8707 | ||
8708 | If you bring up GDB on another SVR4 system, please send mail to | |
8709 | bug-gdb@prep.ai.mit.edu to let us know what changes were reqired (if any). | |
8710 | ||
8711 | * Better dynamic linking support in SunOS | |
8712 | ||
8713 | Reading symbols from shared libraries which contain debugging symbols | |
8714 | now works properly. However, there remain issues such as automatic | |
8715 | skipping of `transfer vector' code during function calls, which | |
8716 | make it harder to debug code in a shared library, than to debug the | |
8717 | same code linked statically. | |
8718 | ||
8719 | * New Getopt | |
8720 | ||
8721 | GDB is now using the latest `getopt' routines from the FSF. This | |
8722 | version accepts the -- prefix for options with long names. GDB will | |
8723 | continue to accept the old forms (-option and +option) as well. | |
8724 | Various single letter abbreviations for options have been explicity | |
8725 | added to the option table so that they won't get overshadowed in the | |
8726 | future by other options that begin with the same letter. | |
8727 | ||
8728 | * Bugs fixed | |
8729 | ||
8730 | The `cleanup_undefined_types' bug that many of you noticed has been squashed. | |
8731 | Many assorted bugs have been handled. Many more remain to be handled. | |
8732 | See the various ChangeLog files (primarily in gdb and bfd) for details. | |
8733 | ||
8734 | ||
8735 | *** Changes in GDB-4.3: | |
8736 | ||
8737 | * New machines supported (host and target) | |
8738 | ||
8739 | Amiga 3000 running Amix m68k-cbm-svr4 or amix | |
8740 | NCR 3000 386 running SVR4 i386-ncr-svr4 or ncr3000 | |
8741 | Motorola Delta 88000 running Sys V m88k-motorola-sysv or delta88 | |
8742 | ||
8743 | * Almost SCO Unix support | |
8744 | ||
8745 | We had hoped to support: | |
8746 | SCO Unix on i386 IBM PC clones i386-sco-sysv or i386sco | |
8747 | (except for core file support), but we discovered very late in the release | |
8748 | that it has problems with process groups that render gdb unusable. Sorry | |
8749 | about that. I encourage people to fix it and post the fixes. | |
8750 | ||
8751 | * Preliminary ELF and DWARF support | |
8752 | ||
8753 | GDB can read ELF object files on System V Release 4, and can handle | |
8754 | debugging records for C, in DWARF format, in ELF files. This support | |
8755 | is preliminary. If you bring up GDB on another SVR4 system, please | |
8756 | send mail to bug-gdb@prep.ai.mit.edu to let us know what changes were | |
8757 | reqired (if any). | |
8758 | ||
8759 | * New Readline | |
8760 | ||
8761 | GDB now uses the latest `readline' library. One user-visible change | |
8762 | is that two tabs will list possible command completions, which previously | |
8763 | required typing M-? (meta-question mark, or ESC ?). | |
8764 | ||
8765 | * Bugs fixed | |
8766 | ||
8767 | The `stepi' bug that many of you noticed has been squashed. | |
8768 | Many bugs in C++ have been handled. Many more remain to be handled. | |
8769 | See the various ChangeLog files (primarily in gdb and bfd) for details. | |
8770 | ||
8771 | * State of the MIPS world (in case you wondered): | |
8772 | ||
8773 | GDB can understand the symbol tables emitted by the compilers | |
8774 | supplied by most vendors of MIPS-based machines, including DEC. These | |
8775 | symbol tables are in a format that essentially nobody else uses. | |
8776 | ||
8777 | Some versions of gcc come with an assembler post-processor called | |
8778 | mips-tfile. This program is required if you want to do source-level | |
8779 | debugging of gcc-compiled programs. I believe FSF does not ship | |
8780 | mips-tfile with gcc version 1, but it will eventually come with gcc | |
8781 | version 2. | |
8782 | ||
8783 | Debugging of g++ output remains a problem. g++ version 1.xx does not | |
8784 | really support it at all. (If you're lucky, you should be able to get | |
8785 | line numbers and stack traces to work, but no parameters or local | |
8786 | variables.) With some work it should be possible to improve the | |
8787 | situation somewhat. | |
8788 | ||
8789 | When gcc version 2 is released, you will have somewhat better luck. | |
8790 | However, even then you will get confusing results for inheritance and | |
8791 | methods. | |
8792 | ||
8793 | We will eventually provide full debugging of g++ output on | |
8794 | DECstations. This will probably involve some kind of stabs-in-ecoff | |
8795 | encapulation, but the details have not been worked out yet. | |
8796 | ||
8797 | ||
8798 | *** Changes in GDB-4.2: | |
8799 | ||
8800 | * Improved configuration | |
8801 | ||
8802 | Only one copy of `configure' exists now, and it is not self-modifying. | |
8803 | Porting BFD is simpler. | |
8804 | ||
8805 | * Stepping improved | |
8806 | ||
8807 | The `step' and `next' commands now only stop at the first instruction | |
8808 | of a source line. This prevents the multiple stops that used to occur | |
8809 | in switch statements, for-loops, etc. `Step' continues to stop if a | |
8810 | function that has debugging information is called within the line. | |
8811 | ||
8812 | * Bug fixing | |
8813 | ||
8814 | Lots of small bugs fixed. More remain. | |
8815 | ||
8816 | * New host supported (not target) | |
8817 | ||
8818 | Intel 386 PC clone running Mach i386-none-mach | |
8819 | ||
8820 | ||
8821 | *** Changes in GDB-4.1: | |
8822 | ||
8823 | * Multiple source language support | |
8824 | ||
8825 | GDB now has internal scaffolding to handle several source languages. | |
8826 | It determines the type of each source file from its filename extension, | |
8827 | and will switch expression parsing and number formatting to match the | |
8828 | language of the function in the currently selected stack frame. | |
8829 | You can also specifically set the language to be used, with | |
8830 | `set language c' or `set language modula-2'. | |
8831 | ||
8832 | * GDB and Modula-2 | |
8833 | ||
8834 | GDB now has preliminary support for the GNU Modula-2 compiler, | |
8835 | currently under development at the State University of New York at | |
8836 | Buffalo. Development of both GDB and the GNU Modula-2 compiler will | |
8837 | continue through the fall of 1991 and into 1992. | |
8838 | ||
8839 | Other Modula-2 compilers are currently not supported, and attempting to | |
8840 | debug programs compiled with them will likely result in an error as the | |
8841 | symbol table is read. Feel free to work on it, though! | |
8842 | ||
8843 | There are hooks in GDB for strict type checking and range checking, | |
8844 | in the `Modula-2 philosophy', but they do not currently work. | |
8845 | ||
8846 | * set write on/off | |
8847 | ||
8848 | GDB can now write to executable and core files (e.g. patch | |
8849 | a variable's value). You must turn this switch on, specify | |
8850 | the file ("exec foo" or "core foo"), *then* modify it, e.g. | |
8851 | by assigning a new value to a variable. Modifications take | |
8852 | effect immediately. | |
8853 | ||
8854 | * Automatic SunOS shared library reading | |
8855 | ||
8856 | When you run your program, GDB automatically determines where its | |
8857 | shared libraries (if any) have been loaded, and reads their symbols. | |
8858 | The `share' command is no longer needed. This also works when | |
8859 | examining core files. | |
8860 | ||
8861 | * set listsize | |
8862 | ||
8863 | You can specify the number of lines that the `list' command shows. | |
8864 | The default is 10. | |
8865 | ||
8866 | * New machines supported (host and target) | |
8867 | ||
8868 | SGI Iris (MIPS) running Irix V3: mips-sgi-irix or iris | |
8869 | Sony NEWS (68K) running NEWSOS 3.x: m68k-sony-sysv or news | |
8870 | Ultracomputer (29K) running Sym1: a29k-nyu-sym1 or ultra3 | |
8871 | ||
8872 | * New hosts supported (not targets) | |
8873 | ||
8874 | IBM RT/PC: romp-ibm-aix or rtpc | |
8875 | ||
8876 | * New targets supported (not hosts) | |
8877 | ||
8878 | AMD 29000 embedded with COFF a29k-none-coff | |
8879 | AMD 29000 embedded with a.out a29k-none-aout | |
8880 | Ultracomputer remote kernel debug a29k-nyu-kern | |
8881 | ||
8882 | * New remote interfaces | |
8883 | ||
8884 | AMD 29000 Adapt | |
8885 | AMD 29000 Minimon | |
8886 | ||
8887 | ||
8888 | *** Changes in GDB-4.0: | |
8889 | ||
8890 | * New Facilities | |
8891 | ||
8892 | Wide output is wrapped at good places to make the output more readable. | |
8893 | ||
8894 | Gdb now supports cross-debugging from a host machine of one type to a | |
8895 | target machine of another type. Communication with the target system | |
8896 | is over serial lines. The ``target'' command handles connecting to the | |
8897 | remote system; the ``load'' command will download a program into the | |
8898 | remote system. Serial stubs for the m68k and i386 are provided. Gdb | |
8899 | also supports debugging of realtime processes running under VxWorks, | |
8900 | using SunRPC Remote Procedure Calls over TCP/IP to talk to a debugger | |
8901 | stub on the target system. | |
8902 | ||
8903 | New CPUs supported include the AMD 29000 and Intel 960. | |
8904 | ||
8905 | GDB now reads object files and symbol tables via a ``binary file'' | |
8906 | library, which allows a single copy of GDB to debug programs of multiple | |
8907 | object file types such as a.out and coff. | |
8908 | ||
8909 | There is now a GDB reference card in "doc/refcard.tex". (Make targets | |
8910 | refcard.dvi and refcard.ps are available to format it). | |
8911 | ||
8912 | ||
8913 | * Control-Variable user interface simplified | |
8914 | ||
8915 | All variables that control the operation of the debugger can be set | |
8916 | by the ``set'' command, and displayed by the ``show'' command. | |
8917 | ||
8918 | For example, ``set prompt new-gdb=>'' will change your prompt to new-gdb=>. | |
8919 | ``Show prompt'' produces the response: | |
8920 | Gdb's prompt is new-gdb=>. | |
8921 | ||
8922 | What follows are the NEW set commands. The command ``help set'' will | |
8923 | print a complete list of old and new set commands. ``help set FOO'' | |
8924 | will give a longer description of the variable FOO. ``show'' will show | |
8925 | all of the variable descriptions and their current settings. | |
8926 | ||
8927 | confirm on/off: Enables warning questions for operations that are | |
8928 | hard to recover from, e.g. rerunning the program while | |
8929 | it is already running. Default is ON. | |
8930 | ||
8931 | editing on/off: Enables EMACS style command line editing | |
8932 | of input. Previous lines can be recalled with | |
8933 | control-P, the current line can be edited with control-B, | |
8934 | you can search for commands with control-R, etc. | |
8935 | Default is ON. | |
8936 | ||
8937 | history filename NAME: NAME is where the gdb command history | |
8938 | will be stored. The default is .gdb_history, | |
8939 | or the value of the environment variable | |
8940 | GDBHISTFILE. | |
8941 | ||
8942 | history size N: The size, in commands, of the command history. The | |
8943 | default is 256, or the value of the environment variable | |
8944 | HISTSIZE. | |
8945 | ||
8946 | history save on/off: If this value is set to ON, the history file will | |
8947 | be saved after exiting gdb. If set to OFF, the | |
8948 | file will not be saved. The default is OFF. | |
8949 | ||
8950 | history expansion on/off: If this value is set to ON, then csh-like | |
8951 | history expansion will be performed on | |
8952 | command line input. The default is OFF. | |
8953 | ||
8954 | radix N: Sets the default radix for input and output. It can be set | |
8955 | to 8, 10, or 16. Note that the argument to "radix" is interpreted | |
8956 | in the current radix, so "set radix 10" is always a no-op. | |
8957 | ||
8958 | height N: This integer value is the number of lines on a page. Default | |
8959 | is 24, the current `stty rows'' setting, or the ``li#'' | |
8960 | setting from the termcap entry matching the environment | |
8961 | variable TERM. | |
8962 | ||
8963 | width N: This integer value is the number of characters on a line. | |
8964 | Default is 80, the current `stty cols'' setting, or the ``co#'' | |
8965 | setting from the termcap entry matching the environment | |
8966 | variable TERM. | |
8967 | ||
8968 | Note: ``set screensize'' is obsolete. Use ``set height'' and | |
8969 | ``set width'' instead. | |
8970 | ||
8971 | print address on/off: Print memory addresses in various command displays, | |
8972 | such as stack traces and structure values. Gdb looks | |
8973 | more ``symbolic'' if you turn this off; it looks more | |
8974 | ``machine level'' with it on. Default is ON. | |
8975 | ||
8976 | print array on/off: Prettyprint arrays. New convenient format! Default | |
8977 | is OFF. | |
8978 | ||
8979 | print demangle on/off: Print C++ symbols in "source" form if on, | |
8980 | "raw" form if off. | |
8981 | ||
8982 | print asm-demangle on/off: Same, for assembler level printouts | |
8983 | like instructions. | |
8984 | ||
8985 | print vtbl on/off: Prettyprint C++ virtual function tables. Default is OFF. | |
8986 | ||
8987 | ||
8988 | * Support for Epoch Environment. | |
8989 | ||
8990 | The epoch environment is a version of Emacs v18 with windowing. One | |
8991 | new command, ``inspect'', is identical to ``print'', except that if you | |
8992 | are running in the epoch environment, the value is printed in its own | |
8993 | window. | |
8994 | ||
8995 | ||
8996 | * Support for Shared Libraries | |
8997 | ||
8998 | GDB can now debug programs and core files that use SunOS shared libraries. | |
8999 | Symbols from a shared library cannot be referenced | |
9000 | before the shared library has been linked with the program (this | |
9001 | happens after you type ``run'' and before the function main() is entered). | |
9002 | At any time after this linking (including when examining core files | |
9003 | from dynamically linked programs), gdb reads the symbols from each | |
9004 | shared library when you type the ``sharedlibrary'' command. | |
9005 | It can be abbreviated ``share''. | |
9006 | ||
9007 | sharedlibrary REGEXP: Load shared object library symbols for files | |
9008 | matching a unix regular expression. No argument | |
9009 | indicates to load symbols for all shared libraries. | |
9010 | ||
9011 | info sharedlibrary: Status of loaded shared libraries. | |
9012 | ||
9013 | ||
9014 | * Watchpoints | |
9015 | ||
9016 | A watchpoint stops execution of a program whenever the value of an | |
9017 | expression changes. Checking for this slows down execution | |
9018 | tremendously whenever you are in the scope of the expression, but is | |
9019 | quite useful for catching tough ``bit-spreader'' or pointer misuse | |
9020 | problems. Some machines such as the 386 have hardware for doing this | |
9021 | more quickly, and future versions of gdb will use this hardware. | |
9022 | ||
9023 | watch EXP: Set a watchpoint (breakpoint) for an expression. | |
9024 | ||
9025 | info watchpoints: Information about your watchpoints. | |
9026 | ||
9027 | delete N: Deletes watchpoint number N (same as breakpoints). | |
9028 | disable N: Temporarily turns off watchpoint number N (same as breakpoints). | |
9029 | enable N: Re-enables watchpoint number N (same as breakpoints). | |
9030 | ||
9031 | ||
9032 | * C++ multiple inheritance | |
9033 | ||
9034 | When used with a GCC version 2 compiler, GDB supports multiple inheritance | |
9035 | for C++ programs. | |
9036 | ||
9037 | * C++ exception handling | |
9038 | ||
9039 | Gdb now supports limited C++ exception handling. Besides the existing | |
9040 | ability to breakpoint on an exception handler, gdb can breakpoint on | |
9041 | the raising of an exception (before the stack is peeled back to the | |
9042 | handler's context). | |
9043 | ||
9044 | catch FOO: If there is a FOO exception handler in the dynamic scope, | |
9045 | set a breakpoint to catch exceptions which may be raised there. | |
9046 | Multiple exceptions (``catch foo bar baz'') may be caught. | |
9047 | ||
9048 | info catch: Lists all exceptions which may be caught in the | |
9049 | current stack frame. | |
9050 | ||
9051 | ||
9052 | * Minor command changes | |
9053 | ||
9054 | The command ``call func (arg, arg, ...)'' now acts like the print | |
9055 | command, except it does not print or save a value if the function's result | |
9056 | is void. This is similar to dbx usage. | |
9057 | ||
9058 | The ``up'' and ``down'' commands now always print the frame they end up | |
9059 | at; ``up-silently'' and `down-silently'' can be used in scripts to change | |
9060 | frames without printing. | |
9061 | ||
9062 | * New directory command | |
9063 | ||
9064 | 'dir' now adds directories to the FRONT of the source search path. | |
9065 | The path starts off empty. Source files that contain debug information | |
9066 | about the directory in which they were compiled can be found even | |
9067 | with an empty path; Sun CC and GCC include this information. If GDB can't | |
9068 | find your source file in the current directory, type "dir .". | |
9069 | ||
9070 | * Configuring GDB for compilation | |
9071 | ||
9072 | For normal use, type ``./configure host''. See README or gdb.texinfo | |
9073 | for more details. | |
9074 | ||
9075 | GDB now handles cross debugging. If you are remotely debugging between | |
9076 | two different machines, type ``./configure host -target=targ''. | |
9077 | Host is the machine where GDB will run; targ is the machine | |
9078 | where the program that you are debugging will run. |