]>
Commit | Line | Data |
---|---|---|
c906108c SS |
1 | What has changed in GDB? |
2 | (Organized release by release) | |
3 | ||
bfbf3774 JB |
4 | *** Changes since GDB 7.1 |
5 | ||
711e434b PM |
6 | * Windows Thread Information Block access. |
7 | ||
8 | On Windows targets, GDB now supports displaying the Windows Thread | |
9 | Information Block (TIB) structure. This structure is visible either | |
10 | by using the new command `info w32 thread-information-block' or, by | |
11 | dereferencing the new convenience variable named `$_tlb', a | |
12 | thread-specific pointer to the TIB. This feature is also supported | |
13 | when remote debugging using GDBserver. | |
14 | ||
15 | * New remote packets | |
16 | ||
17 | qGetTIBAddr | |
18 | ||
19 | Return the address of the Windows Thread Information Block of a given thread. | |
20 | ||
3f7b2faa DE |
21 | * The source command now accepts a -s option to force searching for the |
22 | script in the source search path even if the script name specifies | |
23 | a directory. | |
24 | ||
d337e9f0 PA |
25 | * New features in the GDB remote stub, GDBserver |
26 | ||
27 | - GDBserver now support tracepoints. The feature is currently | |
28 | supported by the i386-linux and amd64-linux builds. | |
29 | ||
c8d5aac9 L |
30 | * GDB now sends xmlRegisters= in qSupported packet to indicate that |
31 | it understands register description. | |
32 | ||
7c953934 TT |
33 | * The --batch flag now disables pagination and queries. |
34 | ||
8685c86f L |
35 | * X86 general purpose registers |
36 | ||
37 | GDB now supports reading/writing byte, word and double-word x86 | |
38 | general purpose registers directly. This means you can use, say, | |
39 | $ah or $ax to refer, respectively, to the byte register AH and | |
40 | 16-bit word register AX that are actually portions of the 32-bit | |
41 | register EAX or 64-bit register RAX. | |
42 | ||
95a42b64 | 43 | * The `commands' command now accepts a range of breakpoints to modify. |
86b17b60 PA |
44 | A plain `commands' following a command that creates multiple |
45 | breakpoints affects all the breakpoints set by that command. This | |
46 | applies to breakpoints set by `rbreak', and also applies when a | |
47 | single `break' command creates multiple breakpoints (e.g., | |
48 | breakpoints on overloaded c++ functions). | |
95a42b64 | 49 | |
8bd10a10 CM |
50 | * The `rbreak' command now accepts a filename specification as part of |
51 | its argument, limiting the functions selected by the regex to those | |
52 | in the specified file. | |
53 | ||
ab38a727 PA |
54 | * Support for remote debugging Windows and SymbianOS shared libraries |
55 | from Unix hosts has been improved. Non Windows GDB builds now can | |
56 | understand target reported file names that follow MS-DOS based file | |
57 | system semantics, such as file names that include drive letters and | |
58 | use the backslash character as directory separator. This makes it | |
59 | possible to transparently use the "set sysroot" and "set | |
60 | solib-search-path" on Unix hosts to point as host copies of the | |
61 | target's shared libraries. See the new command "set | |
62 | target-file-system-kind" described below, and the "Commands to | |
63 | specify files" section in the user manual for more information. | |
64 | ||
6149aea9 PA |
65 | * New commands |
66 | ||
ab38a727 PA |
67 | set target-file-system-kind unix|dos-based|auto |
68 | show target-file-system-kind | |
69 | Set or show the assumed file system kind for target reported file | |
70 | names. | |
71 | ||
6149aea9 PA |
72 | save breakpoints <filename> |
73 | Save all current breakpoint definitions to a file suitable for use | |
74 | in a later debugging session. To read the saved breakpoint | |
75 | definitions, use the `source' command. | |
76 | ||
77 | `save tracepoints' is a new alias for `save-tracepoints'. The latter | |
78 | is now deprecated. | |
79 | ||
f3e9a817 PM |
80 | * Python scripting |
81 | ||
adc36818 | 82 | ** The GDB Python API now has access to breakpoints, symbols, symbol |
d7b32ed3 PM |
83 | tables, program spaces, and frame's code blocks. Additionally, GDB |
84 | Parameters can now be created from the API, and manipulated via | |
85 | set/show in the CLI. | |
f870a310 | 86 | |
fa33c3cd DE |
87 | ** New functions gdb.target_charset, gdb.target_wide_charset, |
88 | gdb.progspaces, and gdb.current_progspace. | |
89 | ||
90 | ** Pretty-printers are now also looked up in the current program space. | |
f3e9a817 | 91 | |
8a1ea21f DE |
92 | ** GDB now looks for names of Python scripts to auto-load in a |
93 | special section named `.debug_gdb_scripts', in addition to looking | |
94 | for a OBJFILE-gdb.py script when OBJFILE is read by the debugger. | |
95 | ||
a7bdde9e VP |
96 | * Tracepoint actions were unified with breakpoint commands. In particular, |
97 | there are no longer differences in "info break" output for breakpoints and | |
98 | tracepoints and the "commands" command can be used for both tracepoints and | |
99 | regular breakpoints. | |
100 | ||
05071a4d PA |
101 | * New targets |
102 | ||
103 | ARM Symbian arm*-*-symbianelf* | |
104 | ||
6aecb9c2 JB |
105 | * D language support. |
106 | GDB now supports debugging programs written in the D programming | |
107 | language. | |
108 | ||
bfbf3774 | 109 | *** Changes in GDB 7.1 |
abc7453d | 110 | |
4eef138c TT |
111 | * C++ Improvements |
112 | ||
113 | ** Namespace Support | |
71dee663 SW |
114 | |
115 | GDB now supports importing of namespaces in C++. This enables the | |
116 | user to inspect variables from imported namespaces. Support for | |
117 | namepace aliasing has also been added. So, if a namespace is | |
118 | aliased in the current scope (e.g. namepace C=A; ) the user can | |
119 | print variables using the alias (e.g. (gdb) print C::x). | |
120 | ||
4eef138c TT |
121 | ** Bug Fixes |
122 | ||
123 | All known bugs relating to the printing of virtual base class were | |
124 | fixed. It is now possible to call overloaded static methods using a | |
125 | qualified name. | |
126 | ||
127 | ** Cast Operators | |
128 | ||
129 | The C++ cast operators static_cast<>, dynamic_cast<>, const_cast<>, | |
130 | and reinterpret_cast<> are now handled by the C++ expression parser. | |
131 | ||
2d1c1221 ME |
132 | * New targets |
133 | ||
134 | Xilinx MicroBlaze microblaze-*-* | |
34207b9e | 135 | Renesas RX rx-*-elf |
2d1c1221 ME |
136 | |
137 | * New Simulators | |
138 | ||
139 | Xilinx MicroBlaze microblaze | |
34207b9e | 140 | Renesas RX rx |
2d1c1221 | 141 | |
6c95b8df PA |
142 | * Multi-program debugging. |
143 | ||
144 | GDB now has support for multi-program (a.k.a. multi-executable or | |
145 | multi-exec) debugging. This allows for debugging multiple inferiors | |
146 | simultaneously each running a different program under the same GDB | |
147 | session. See "Debugging Multiple Inferiors and Programs" in the | |
148 | manual for more information. This implied some user visible changes | |
149 | in the multi-inferior support. For example, "info inferiors" now | |
150 | lists inferiors that are not running yet or that have exited | |
151 | already. See also "New commands" and "New options" below. | |
152 | ||
d5551862 SS |
153 | * New tracing features |
154 | ||
155 | GDB's tracepoint facility now includes several new features: | |
156 | ||
157 | ** Trace state variables | |
f61e138d SS |
158 | |
159 | GDB tracepoints now include support for trace state variables, which | |
160 | are variables managed by the target agent during a tracing | |
161 | experiment. They are useful for tracepoints that trigger each | |
162 | other, so for instance one tracepoint can count hits in a variable, | |
163 | and then a second tracepoint has a condition that is true when the | |
164 | count reaches a particular value. Trace state variables share the | |
165 | $-syntax of GDB convenience variables, and can appear in both | |
166 | tracepoint actions and condition expressions. Use the "tvariable" | |
167 | command to create, and "info tvariables" to view; see "Trace State | |
168 | Variables" in the manual for more detail. | |
7a697b8d | 169 | |
d5551862 | 170 | ** Fast tracepoints |
7a697b8d SS |
171 | |
172 | GDB now includes an option for defining fast tracepoints, which | |
173 | targets may implement more efficiently, such as by installing a jump | |
174 | into the target agent rather than a trap instruction. The resulting | |
175 | speedup can be by two orders of magnitude or more, although the | |
176 | tradeoff is that some program locations on some target architectures | |
177 | might not allow fast tracepoint installation, for instance if the | |
178 | instruction to be replaced is shorter than the jump. To request a | |
179 | fast tracepoint, use the "ftrace" command, with syntax identical to | |
180 | the regular trace command. | |
181 | ||
d5551862 SS |
182 | ** Disconnected tracing |
183 | ||
184 | It is now possible to detach GDB from the target while it is running | |
185 | a trace experiment, then reconnect later to see how the experiment | |
186 | is going. In addition, a new variable disconnected-tracing lets you | |
187 | tell the target agent whether to continue running a trace if the | |
188 | connection is lost unexpectedly. | |
189 | ||
00bf0b85 SS |
190 | ** Trace files |
191 | ||
192 | GDB now has the ability to save the trace buffer into a file, and | |
193 | then use that file as a target, similarly to you can do with | |
194 | corefiles. You can select trace frames, print data that was | |
195 | collected in them, and use tstatus to display the state of the | |
196 | tracing run at the moment that it was saved. To create a trace | |
197 | file, use "tsave <filename>", and to use it, do "target tfile | |
198 | <name>". | |
4daf5ac0 SS |
199 | |
200 | ** Circular trace buffer | |
201 | ||
202 | You can ask the target agent to handle the trace buffer as a | |
203 | circular buffer, discarding the oldest trace frames to make room for | |
204 | newer ones, by setting circular-trace-buffer to on. This feature may | |
205 | not be available for all target agents. | |
206 | ||
21a0512e PP |
207 | * Changed commands |
208 | ||
209 | disassemble | |
210 | The disassemble command, when invoked with two arguments, now requires | |
211 | the arguments to be comma-separated. | |
212 | ||
0fe7935b DJ |
213 | info variables |
214 | The info variables command now displays variable definitions. Files | |
215 | which only declare a variable are not shown. | |
216 | ||
fb2e7cb4 JB |
217 | source |
218 | The source command is now capable of sourcing Python scripts. | |
219 | This feature is dependent on the debugger being build with Python | |
220 | support. | |
221 | ||
222 | Related to this enhancement is also the introduction of a new command | |
223 | "set script-extension" (see below). | |
224 | ||
6c95b8df PA |
225 | * New commands (for set/show, see "New options" below) |
226 | ||
399cd161 MS |
227 | record save [<FILENAME>] |
228 | Save a file (in core file format) containing the process record | |
229 | execution log for replay debugging at a later time. | |
230 | ||
231 | record restore <FILENAME> | |
232 | Restore the process record execution log that was saved at an | |
233 | earlier time, for replay debugging. | |
234 | ||
6c95b8df PA |
235 | add-inferior [-copies <N>] [-exec <FILENAME>] |
236 | Add a new inferior. | |
237 | ||
238 | clone-inferior [-copies <N>] [ID] | |
239 | Make a new inferior ready to execute the same program another | |
240 | inferior has loaded. | |
241 | ||
242 | remove-inferior ID | |
243 | Remove an inferior. | |
244 | ||
245 | maint info program-spaces | |
246 | List the program spaces loaded into GDB. | |
247 | ||
9a7071a8 JB |
248 | set remote interrupt-sequence [Ctrl-C | BREAK | BREAK-g] |
249 | show remote interrupt-sequence | |
250 | Allow the user to select one of ^C, a BREAK signal or BREAK-g | |
251 | as the sequence to the remote target in order to interrupt the execution. | |
252 | Ctrl-C is a default. Some system prefers BREAK which is high level of | |
253 | serial line for some certain time. Linux kernel prefers BREAK-g, a.k.a | |
254 | Magic SysRq g. It is BREAK signal and character 'g'. | |
255 | ||
256 | set remote interrupt-on-connect [on | off] | |
257 | show remote interrupt-on-connect | |
258 | When interrupt-on-connect is ON, gdb sends interrupt-sequence to | |
259 | remote target when gdb connects to it. This is needed when you debug | |
260 | Linux kernel. | |
261 | ||
262 | set remotebreak [on | off] | |
263 | show remotebreak | |
264 | Deprecated. Use "set/show remote interrupt-sequence" instead. | |
265 | ||
f61e138d SS |
266 | tvariable $NAME [ = EXP ] |
267 | Create or modify a trace state variable. | |
268 | ||
269 | info tvariables | |
270 | List trace state variables and their values. | |
271 | ||
272 | delete tvariable $NAME ... | |
273 | Delete one or more trace state variables. | |
274 | ||
6da95a67 SS |
275 | teval EXPR, ... |
276 | Evaluate the given expressions without collecting anything into the | |
277 | trace buffer. (Valid in tracepoint actions only.) | |
278 | ||
7a697b8d SS |
279 | ftrace FN / FILE:LINE / *ADDR |
280 | Define a fast tracepoint at the given function, line, or address. | |
281 | ||
b0f02ee9 JK |
282 | * New expression syntax |
283 | ||
284 | GDB now parses the 0b prefix of binary numbers the same way as GCC does. | |
285 | GDB now parses 0b101010 identically with 42. | |
286 | ||
6c95b8df PA |
287 | * New options |
288 | ||
289 | set follow-exec-mode new|same | |
290 | show follow-exec-mode | |
291 | Control whether GDB reuses the same inferior across an exec call or | |
292 | creates a new one. This is useful to be able to restart the old | |
293 | executable after the inferior having done an exec call. | |
294 | ||
236f1d4d SS |
295 | set default-collect EXPR, ... |
296 | show default-collect | |
297 | Define a list of expressions to be collected at each tracepoint. | |
298 | This is a useful way to ensure essential items are not overlooked, | |
299 | such as registers or a critical global variable. | |
300 | ||
d5551862 SS |
301 | set disconnected-tracing |
302 | show disconnected-tracing | |
303 | If set to 1, the target is instructed to continue tracing if it | |
304 | loses its connection to GDB. If 0, the target is to stop tracing | |
305 | upon disconnection. | |
306 | ||
4daf5ac0 SS |
307 | set circular-trace-buffer |
308 | show circular-trace-buffer | |
309 | If set to on, the target is instructed to use a circular trace buffer | |
310 | and discard the oldest trace frames instead of stopping the trace due | |
311 | to a full trace buffer. If set to off, the trace stops when the buffer | |
312 | fills up. Some targets may not support this. | |
313 | ||
fb2e7cb4 JB |
314 | set script-extension off|soft|strict |
315 | show script-extension | |
316 | If set to "off", the debugger does not perform any script language | |
317 | recognition, and all sourced files are assumed to be GDB scripts. | |
318 | If set to "soft" (the default), files are sourced according to | |
319 | filename extension, falling back to GDB scripts if the first | |
320 | evaluation failed. | |
321 | If set to "strict", files are sourced according to filename extension. | |
322 | ||
2b71fc8e JB |
323 | set ada trust-PAD-over-XVS on|off |
324 | show ada trust-PAD-over-XVS | |
325 | If off, activate a workaround against a bug in the debugging information | |
326 | generated by the compiler for PAD types (see gcc/exp_dbug.ads in | |
327 | the GCC sources for more information about the GNAT encoding and | |
328 | PAD types in particular). It is always safe to set this option to | |
329 | off, but this introduces a slight performance penalty. The default | |
330 | is on. | |
331 | ||
de2e5182 TT |
332 | * Python API Improvements |
333 | ||
334 | ** GDB provides the new class gdb.LazyString. This is useful in | |
335 | some pretty-printing cases. The new method gdb.Value.lazy_string | |
336 | provides a simple way to create objects of this type. | |
337 | ||
338 | ** The fields returned by gdb.Type.fields now have an | |
339 | `is_base_class' attribute. | |
340 | ||
341 | ** The new method gdb.Type.range returns the range of an array type. | |
342 | ||
343 | ** The new method gdb.parse_and_eval can be used to parse and | |
344 | evaluate an expression. | |
345 | ||
f61e138d SS |
346 | * New remote packets |
347 | ||
348 | QTDV | |
349 | Define a trace state variable. | |
350 | ||
351 | qTV | |
352 | Get the current value of a trace state variable. | |
353 | ||
d5551862 SS |
354 | QTDisconnected |
355 | Set desired tracing behavior upon disconnection. | |
356 | ||
4daf5ac0 SS |
357 | QTBuffer:circular |
358 | Set the trace buffer to be linear or circular. | |
359 | ||
d5551862 SS |
360 | qTfP, qTsP |
361 | Get data about the tracepoints currently in use. | |
362 | ||
2d483d34 MS |
363 | * Bug fixes |
364 | ||
365 | Process record now works correctly with hardware watchpoints. | |
366 | ||
6e0e5977 JB |
367 | Multiple bug fixes have been made to the mips-irix port, making it |
368 | much more reliable. In particular: | |
369 | - Debugging threaded applications is now possible again. Previously, | |
370 | GDB would hang while starting the program, or while waiting for | |
371 | the program to stop at a breakpoint. | |
372 | - Attaching to a running process no longer hangs. | |
373 | - An error occurring while loading a core file has been fixed. | |
374 | - Changing the value of the PC register now works again. This fixes | |
375 | problems observed when using the "jump" command, or when calling | |
376 | a function from GDB, or even when assigning a new value to $pc. | |
377 | - With the "finish" and "return" commands, the return value for functions | |
378 | returning a small array is now correctly printed. | |
379 | - It is now possible to break on shared library code which gets executed | |
380 | during a shared library init phase (code executed while executing | |
381 | their .init section). Previously, the breakpoint would have no effect. | |
382 | - GDB is now able to backtrace through the signal handler for | |
383 | non-threaded programs. | |
384 | ||
93c26624 JK |
385 | PIE (Position Independent Executable) programs debugging is now supported. |
386 | This includes debugging execution of PIC (Position Independent Code) shared | |
387 | libraries although for that, it should be possible to run such libraries as an | |
388 | executable program. | |
389 | ||
abc7453d | 390 | *** Changes in GDB 7.0 |
75feb17d | 391 | |
4efc6507 DE |
392 | * GDB now has an interface for JIT compilation. Applications that |
393 | dynamically generate code can create symbol files in memory and register | |
394 | them with GDB. For users, the feature should work transparently, and | |
395 | for JIT developers, the interface is documented in the GDB manual in the | |
396 | "JIT Compilation Interface" chapter. | |
397 | ||
782b2b07 SS |
398 | * Tracepoints may now be conditional. The syntax is as for |
399 | breakpoints; either an "if" clause appended to the "trace" command, | |
400 | or the "condition" command is available. GDB sends the condition to | |
401 | the target for evaluation using the same bytecode format as is used | |
402 | for tracepoint actions. | |
403 | ||
e6158f16 | 404 | * "disassemble" command with a /r modifier, print the raw instructions |
7280022e | 405 | in hex as well as in symbolic form. |
e6158f16 | 406 | |
e7a8dbfb HZ |
407 | * Process record and replay |
408 | ||
409 | In a architecture environment that supports ``process record and | |
410 | replay'', ``process record and replay'' target can record a log of | |
411 | the process execution, and replay it with both forward and reverse | |
412 | execute commands. | |
413 | ||
64644d9b MS |
414 | * Reverse debugging: GDB now has new commands reverse-continue, reverse- |
415 | step, reverse-next, reverse-finish, reverse-stepi, reverse-nexti, and | |
416 | set execution-direction {forward|reverse}, for targets that support | |
417 | reverse execution. | |
418 | ||
b9412953 DD |
419 | * GDB now supports hardware watchpoints on MIPS/Linux systems. This |
420 | feature is available with a native GDB running on kernel version | |
421 | 2.6.28 or later. | |
422 | ||
6c7a06a3 TT |
423 | * GDB now has support for multi-byte and wide character sets on the |
424 | target. Strings whose character type is wchar_t, char16_t, or | |
425 | char32_t are now correctly printed. GDB supports wide- and unicode- | |
426 | literals in C, that is, L'x', L"string", u'x', u"string", U'x', and | |
427 | U"string" syntax. And, GDB allows the "%ls" and "%lc" formats in | |
428 | `printf'. This feature requires iconv to work properly; if your | |
429 | system does not have a working iconv, GDB can use GNU libiconv. See | |
430 | the installation instructions for more information. | |
431 | ||
f1838a98 UW |
432 | * GDB now supports automatic retrieval of shared library files from |
433 | remote targets. To use this feature, specify a system root that begins | |
434 | with the `remote:' prefix, either via the `set sysroot' command or via | |
435 | the `--with-sysroot' configure-time option. | |
436 | ||
55333a84 DE |
437 | * "info sharedlibrary" now takes an optional regex of libraries to show, |
438 | and it now reports if a shared library has no debugging information. | |
439 | ||
7f6a6314 PM |
440 | * Commands `set debug-file-directory', `set solib-search-path' and `set args' |
441 | now complete on file names. | |
442 | ||
65d12d83 TT |
443 | * When completing in expressions, gdb will attempt to limit |
444 | completions to allowable structure or union fields, where appropriate. | |
445 | For instance, consider: | |
446 | ||
447 | # struct example { int f1; double f2; }; | |
448 | # struct example variable; | |
449 | (gdb) p variable. | |
450 | ||
451 | If the user types TAB at the end of this command line, the available | |
452 | completions will be "f1" and "f2". | |
453 | ||
edb3359d DJ |
454 | * Inlined functions are now supported. They show up in backtraces, and |
455 | the "step", "next", and "finish" commands handle them automatically. | |
456 | ||
2fae03e8 TT |
457 | * GDB now supports the token-splicing (##) and stringification (#) |
458 | operators when expanding macros. It also supports variable-arity | |
459 | macros. | |
460 | ||
47a3467a | 461 | * GDB now supports inspecting extra signal information, exported by |
58d6951d DJ |
462 | the new $_siginfo convenience variable. The feature is currently |
463 | implemented on linux ARM, i386 and amd64. | |
464 | ||
465 | * GDB can now display the VFP floating point registers and NEON vector | |
466 | registers on ARM targets. Both ARM GNU/Linux native GDB and gdbserver | |
467 | can provide these registers (requires Linux 2.6.30 or later). Remote | |
468 | and simulator targets may also provide them. | |
47a3467a | 469 | |
08388c79 DE |
470 | * New remote packets |
471 | ||
472 | qSearch:memory: | |
473 | Search memory for a sequence of bytes. | |
474 | ||
a6f3e723 SL |
475 | QStartNoAckMode |
476 | Turn off `+'/`-' protocol acknowledgments to permit more efficient | |
477 | operation over reliable transport links. Use of this packet is | |
478 | controlled by the `set remote noack-packet' command. | |
479 | ||
d7713ae0 EZ |
480 | vKill |
481 | Kill the process with the specified process ID. Use this in preference | |
482 | to `k' when multiprocess protocol extensions are supported. | |
483 | ||
07e059b5 VP |
484 | qXfer:osdata:read |
485 | Obtains additional operating system information | |
486 | ||
47a3467a PA |
487 | qXfer:siginfo:read |
488 | qXfer:siginfo:write | |
489 | Read or write additional signal information. | |
490 | ||
060871df PA |
491 | * Removed remote protocol undocumented extension |
492 | ||
493 | An undocumented extension to the remote protocol's `S' stop reply | |
494 | packet that permited the stub to pass a process id was removed. | |
495 | Remote servers should use the `T' stop reply packet instead. | |
496 | ||
d14508fe DE |
497 | * The "disassemble" command now supports an optional /m modifier to print mixed |
498 | source+assembly. | |
499 | ||
c055b101 | 500 | * GDB now supports multiple function calling conventions according to the |
a0ef4274 | 501 | DWARF-2 DW_AT_calling_convention function attribute. |
c055b101 CV |
502 | |
503 | * The SH target utilizes the aforementioned change to distinguish between gcc | |
a0ef4274 DJ |
504 | and Renesas calling convention. It also adds the new CLI commands |
505 | `set/show sh calling-convention'. | |
c055b101 | 506 | |
31fffb02 CS |
507 | * GDB can now read compressed debug sections, as produced by GNU gold |
508 | with the --compress-debug-sections=zlib flag. | |
509 | ||
88d8a8e0 JB |
510 | * 64-bit core files are now supported on AIX. |
511 | ||
7f99b190 JB |
512 | * Thread switching is now supported on Tru64. |
513 | ||
ccd213ac DJ |
514 | * Watchpoints can now be set on unreadable memory locations, e.g. addresses |
515 | which will be allocated using malloc later in program execution. | |
516 | ||
1fddbabb | 517 | * The qXfer:libraries:read remote procotol packet now allows passing a |
31fffb02 | 518 | list of section offsets. |
1fddbabb | 519 | |
a0ef4274 DJ |
520 | * On GNU/Linux, GDB can now attach to stopped processes. Several race |
521 | conditions handling signals delivered during attach or thread creation | |
522 | have also been fixed. | |
523 | ||
bfb8797a | 524 | * GDB now supports the use of DWARF boolean types for Ada's type Boolean. |
158c7665 PH |
525 | From the user's standpoint, all unqualified instances of True and False |
526 | are treated as the standard definitions, regardless of context. | |
bfb8797a | 527 | |
71c25dea TT |
528 | * GDB now parses C++ symbol and type names more flexibly. For |
529 | example, given: | |
530 | ||
531 | template<typename T> class C { }; | |
532 | C<char const *> c; | |
533 | ||
534 | GDB will now correctly handle all of: | |
535 | ||
536 | ptype C<char const *> | |
537 | ptype C<char const*> | |
538 | ptype C<const char *> | |
539 | ptype C<const char*> | |
540 | ||
ccd213ac DJ |
541 | * New features in the GDB remote stub, gdbserver |
542 | ||
543 | - The "--wrapper" command-line argument tells gdbserver to use a | |
544 | wrapper program to launch programs for debugging. | |
545 | ||
7ae0e2a2 UW |
546 | - On PowerPC and S/390 targets, it is now possible to use a single |
547 | gdbserver executable to debug both 32-bit and 64-bit programs. | |
548 | (This requires gdbserver itself to be built as a 64-bit executable.) | |
549 | ||
a6f3e723 SL |
550 | - gdbserver uses the new noack protocol mode for TCP connections to |
551 | reduce communications latency, if also supported and enabled in GDB. | |
552 | ||
da8bd9a3 DJ |
553 | - Support for the sparc64-linux-gnu target is now included in |
554 | gdbserver. | |
555 | ||
d70e31dd DE |
556 | - The amd64-linux build of gdbserver now supports debugging both |
557 | 32-bit and 64-bit programs. | |
558 | ||
559 | - The i386-linux, amd64-linux, and i386-win32 builds of gdbserver | |
560 | now support hardware watchpoints, and will use them automatically | |
561 | as appropriate. | |
562 | ||
d57a3c85 TJB |
563 | * Python scripting |
564 | ||
565 | GDB now has support for scripting using Python. Whether this is | |
566 | available is determined at configure time. | |
567 | ||
d8906c6f TJB |
568 | New GDB commands can now be written in Python. |
569 | ||
aadc346a JB |
570 | * Ada tasking support |
571 | ||
572 | Ada tasks can now be inspected in GDB. The following commands have | |
573 | been introduced: | |
574 | ||
575 | info tasks | |
576 | Print the list of Ada tasks. | |
577 | info task N | |
578 | Print detailed information about task number N. | |
579 | task | |
580 | Print the task number of the current task. | |
581 | task N | |
582 | Switch the context of debugging to task number N. | |
583 | ||
adb483fe DJ |
584 | * Support for user-defined prefixed commands. The "define" command can |
585 | add new commands to existing prefixes, e.g. "target". | |
586 | ||
2277426b PA |
587 | * Multi-inferior, multi-process debugging. |
588 | ||
589 | GDB now has generalized support for multi-inferior debugging. See | |
590 | "Debugging Multiple Inferiors" in the manual for more information. | |
591 | Although availability still depends on target support, the command | |
592 | set is more uniform now. The GNU/Linux specific multi-forks support | |
593 | has been migrated to this new framework. This implied some user | |
594 | visible changes; see "New commands" and also "Removed commands" | |
595 | below. | |
596 | ||
08d16641 PA |
597 | * Target descriptions can now describe the target OS ABI. See the |
598 | "Target Description Format" section in the user manual for more | |
599 | information. | |
600 | ||
e35359c5 UW |
601 | * Target descriptions can now describe "compatible" architectures |
602 | to indicate that the target can execute applications for a different | |
603 | architecture in addition to those for the main target architecture. | |
604 | See the "Target Description Format" section in the user manual for | |
605 | more information. | |
606 | ||
85e747d2 UW |
607 | * Multi-architecture debugging. |
608 | ||
609 | GDB now includes general supports for debugging applications on | |
610 | hybrid systems that use more than one single processor architecture | |
611 | at the same time. Each such hybrid architecture still requires | |
612 | specific support to be added. The only hybrid architecture supported | |
613 | in this version of GDB is the Cell Broadband Engine. | |
614 | ||
615 | * GDB now supports integrated debugging of Cell/B.E. applications that | |
616 | use both the PPU and SPU architectures. To enable support for hybrid | |
617 | Cell/B.E. debugging, you need to configure GDB to support both the | |
618 | powerpc-linux or powerpc64-linux and the spu-elf targets, using the | |
619 | --enable-targets configure option. | |
620 | ||
11ade57a PA |
621 | * Non-stop mode debugging. |
622 | ||
623 | For some targets, GDB now supports an optional mode of operation in | |
624 | which you can examine stopped threads while other threads continue | |
625 | to execute freely. This is referred to as non-stop mode, with the | |
626 | old mode referred to as all-stop mode. See the "Non-Stop Mode" | |
627 | section in the user manual for more information. | |
628 | ||
629 | To be able to support remote non-stop debugging, a remote stub needs | |
630 | to implement the non-stop mode remote protocol extensions, as | |
631 | described in the "Remote Non-Stop" section of the user manual. The | |
632 | GDB remote stub, gdbserver, has been adjusted to support these | |
633 | extensions on linux targets. | |
634 | ||
d7713ae0 | 635 | * New commands (for set/show, see "New options" below) |
75feb17d | 636 | |
a96d9b2e SDJ |
637 | catch syscall [NAME(S) | NUMBER(S)] |
638 | Catch system calls. Arguments, which should be names of system | |
639 | calls or their numbers, mean catch only those syscalls. Without | |
640 | arguments, every syscall will be caught. When the inferior issues | |
641 | any of the specified syscalls, GDB will stop and announce the system | |
642 | call, both when it is called and when its call returns. This | |
643 | feature is currently available with a native GDB running on the | |
644 | Linux Kernel, under the following architectures: x86, x86_64, | |
645 | PowerPC and PowerPC64. | |
646 | ||
08388c79 DE |
647 | find [/size-char] [/max-count] start-address, end-address|+search-space-size, |
648 | val1 [, val2, ...] | |
649 | Search memory for a sequence of bytes. | |
650 | ||
d57a3c85 TJB |
651 | maint set python print-stack |
652 | maint show python print-stack | |
653 | Show a stack trace when an error is encountered in a Python script. | |
654 | ||
655 | python [CODE] | |
656 | Invoke CODE by passing it to the Python interpreter. | |
657 | ||
d7713ae0 EZ |
658 | macro define |
659 | macro list | |
660 | macro undef | |
661 | These allow macros to be defined, undefined, and listed | |
662 | interactively. | |
663 | ||
664 | info os processes | |
665 | Show operating system information about processes. | |
666 | ||
2277426b PA |
667 | info inferiors |
668 | List the inferiors currently under GDB's control. | |
669 | ||
670 | inferior NUM | |
671 | Switch focus to inferior number NUM. | |
672 | ||
673 | detach inferior NUM | |
674 | Detach from inferior number NUM. | |
675 | ||
676 | kill inferior NUM | |
677 | Kill inferior number NUM. | |
678 | ||
d7713ae0 EZ |
679 | * New options |
680 | ||
3285f3fe UW |
681 | set spu stop-on-load |
682 | show spu stop-on-load | |
683 | Control whether to stop for new SPE threads during Cell/B.E. debugging. | |
684 | ||
ff1a52c6 UW |
685 | set spu auto-flush-cache |
686 | show spu auto-flush-cache | |
687 | Control whether to automatically flush the software-managed cache | |
688 | during Cell/B.E. debugging. | |
689 | ||
d7713ae0 EZ |
690 | set sh calling-convention |
691 | show sh calling-convention | |
692 | Control the calling convention used when calling SH target functions. | |
693 | ||
e0a3ce09 | 694 | set debug timestamp |
75feb17d | 695 | show debug timestamp |
d7713ae0 EZ |
696 | Control display of timestamps with GDB debugging output. |
697 | ||
698 | set disassemble-next-line | |
699 | show disassemble-next-line | |
700 | Control display of disassembled source lines or instructions when | |
701 | the debuggee stops. | |
702 | ||
703 | set remote noack-packet | |
704 | show remote noack-packet | |
705 | Set/show the use of remote protocol QStartNoAckMode packet. See above | |
706 | under "New remote packets." | |
707 | ||
708 | set remote query-attached-packet | |
709 | show remote query-attached-packet | |
710 | Control use of remote protocol `qAttached' (query-attached) packet. | |
711 | ||
712 | set remote read-siginfo-object | |
713 | show remote read-siginfo-object | |
714 | Control use of remote protocol `qXfer:siginfo:read' (read-siginfo-object) | |
715 | packet. | |
716 | ||
717 | set remote write-siginfo-object | |
718 | show remote write-siginfo-object | |
719 | Control use of remote protocol `qXfer:siginfo:write' (write-siginfo-object) | |
720 | packet. | |
721 | ||
40ab02ce MS |
722 | set remote reverse-continue |
723 | show remote reverse-continue | |
724 | Control use of remote protocol 'bc' (reverse-continue) packet. | |
725 | ||
726 | set remote reverse-step | |
727 | show remote reverse-step | |
728 | Control use of remote protocol 'bs' (reverse-step) packet. | |
729 | ||
d7713ae0 EZ |
730 | set displaced-stepping |
731 | show displaced-stepping | |
732 | Control displaced stepping mode. Displaced stepping is a way to | |
733 | single-step over breakpoints without removing them from the debuggee. | |
734 | Also known as "out-of-line single-stepping". | |
735 | ||
736 | set debug displaced | |
737 | show debug displaced | |
738 | Control display of debugging info for displaced stepping. | |
739 | ||
740 | maint set internal-error | |
741 | maint show internal-error | |
742 | Control what GDB does when an internal error is detected. | |
743 | ||
744 | maint set internal-warning | |
745 | maint show internal-warning | |
746 | Control what GDB does when an internal warning is detected. | |
75feb17d | 747 | |
ccd213ac DJ |
748 | set exec-wrapper |
749 | show exec-wrapper | |
750 | unset exec-wrapper | |
751 | Use a wrapper program to launch programs for debugging. | |
fa4727a6 | 752 | |
aad4b048 JB |
753 | set multiple-symbols (all|ask|cancel) |
754 | show multiple-symbols | |
755 | The value of this variable can be changed to adjust the debugger behavior | |
756 | when an expression or a breakpoint location contains an ambiguous symbol | |
757 | name (an overloaded function name, for instance). | |
758 | ||
74960c60 VP |
759 | set breakpoint always-inserted |
760 | show breakpoint always-inserted | |
761 | Keep breakpoints always inserted in the target, as opposed to inserting | |
762 | them when resuming the target, and removing them when the target stops. | |
763 | This option can improve debugger performance on slow remote targets. | |
764 | ||
0428b8f5 DJ |
765 | set arm fallback-mode (arm|thumb|auto) |
766 | show arm fallback-mode | |
767 | set arm force-mode (arm|thumb|auto) | |
768 | show arm force-mode | |
769 | These commands control how ARM GDB determines whether instructions | |
770 | are ARM or Thumb. The default for both settings is auto, which uses | |
771 | the current CPSR value for instructions without symbols; previous | |
772 | versions of GDB behaved as if "set arm fallback-mode arm". | |
773 | ||
10568435 JK |
774 | set disable-randomization |
775 | show disable-randomization | |
776 | Standalone programs run with the virtual address space randomization enabled | |
777 | by default on some platforms. This option keeps the addresses stable across | |
778 | multiple debugging sessions. | |
779 | ||
d7713ae0 EZ |
780 | set non-stop |
781 | show non-stop | |
782 | Control whether other threads are stopped or not when some thread hits | |
783 | a breakpoint. | |
784 | ||
b3eb342c | 785 | set target-async |
d7713ae0 | 786 | show target-async |
b3eb342c VP |
787 | Requests that asynchronous execution is enabled in the target, if available. |
788 | In this case, it's possible to resume target in the background, and interact | |
789 | with GDB while the target is running. "show target-async" displays the | |
790 | current state of asynchronous execution of the target. | |
791 | ||
6c7a06a3 TT |
792 | set target-wide-charset |
793 | show target-wide-charset | |
794 | The target-wide-charset is the name of the character set that GDB | |
795 | uses when printing characters whose type is wchar_t. | |
796 | ||
84603566 SL |
797 | set tcp auto-retry (on|off) |
798 | show tcp auto-retry | |
799 | set tcp connect-timeout | |
800 | show tcp connect-timeout | |
801 | These commands allow GDB to retry failed TCP connections to a remote stub | |
802 | with a specified timeout period; this is useful if the stub is launched | |
803 | in parallel with GDB but may not be ready to accept connections immediately. | |
804 | ||
17a37d48 PP |
805 | set libthread-db-search-path |
806 | show libthread-db-search-path | |
807 | Control list of directories which GDB will search for appropriate | |
808 | libthread_db. | |
809 | ||
d4db2f36 PA |
810 | set schedule-multiple (on|off) |
811 | show schedule-multiple | |
812 | Allow GDB to resume all threads of all processes or only threads of | |
813 | the current process. | |
814 | ||
4e5d721f DE |
815 | set stack-cache |
816 | show stack-cache | |
817 | Use more aggressive caching for accesses to the stack. This improves | |
818 | performance of remote debugging (particularly backtraces) without | |
819 | affecting correctness. | |
820 | ||
910c5da8 JB |
821 | set interactive-mode (on|off|auto) |
822 | show interactive-mode | |
823 | Control whether GDB runs in interactive mode (on) or not (off). | |
824 | When in interactive mode, GDB waits for the user to answer all | |
825 | queries. Otherwise, GDB does not wait and assumes the default | |
826 | answer. When set to auto (the default), GDB determines which | |
827 | mode to use based on the stdin settings. | |
828 | ||
2277426b PA |
829 | * Removed commands |
830 | ||
831 | info forks | |
832 | For program forks, this is replaced by the new more generic `info | |
833 | inferiors' command. To list checkpoints, you can still use the | |
834 | `info checkpoints' command, which was an alias for the `info forks' | |
835 | command. | |
836 | ||
837 | fork NUM | |
838 | Replaced by the new `inferior' command. To switch between | |
839 | checkpoints, you can still use the `restart' command, which was an | |
840 | alias for the `fork' command. | |
841 | ||
842 | process PID | |
843 | This is removed, since some targets don't have a notion of | |
844 | processes. To switch between processes, you can still use the | |
845 | `inferior' command using GDB's own inferior number. | |
846 | ||
847 | delete fork NUM | |
848 | For program forks, this is replaced by the new more generic `kill | |
849 | inferior' command. To delete a checkpoint, you can still use the | |
850 | `delete checkpoint' command, which was an alias for the `delete | |
851 | fork' command. | |
852 | ||
853 | detach fork NUM | |
854 | For program forks, this is replaced by the new more generic `detach | |
855 | inferior' command. To detach a checkpoint, you can still use the | |
856 | `detach checkpoint' command, which was an alias for the `detach | |
857 | fork' command. | |
858 | ||
a80b95ba TG |
859 | * New native configurations |
860 | ||
861 | x86/x86_64 Darwin i[34567]86-*-darwin* | |
862 | ||
b8bfd3ed JB |
863 | x86_64 MinGW x86_64-*-mingw* |
864 | ||
75a2d5e7 TT |
865 | * New targets |
866 | ||
c28c63d8 | 867 | Lattice Mico32 lm32-* |
75a2d5e7 | 868 | x86 DICOS i[34567]86-*-dicos* |
4c1d2973 | 869 | x86_64 DICOS x86_64-*-dicos* |
5f814c3b | 870 | S+core 3 score-*-* |
75a2d5e7 | 871 | |
6de3146c PA |
872 | * The GDB remote stub, gdbserver, now supports x86 Windows CE |
873 | (mingw32ce) debugging. | |
874 | ||
d5cbbe6e JB |
875 | * Removed commands |
876 | ||
877 | catch load | |
878 | catch unload | |
879 | These commands were actually not implemented on any target. | |
880 | ||
75feb17d | 881 | *** Changes in GDB 6.8 |
f9ed52be | 882 | |
af5ca30d NH |
883 | * New native configurations |
884 | ||
885 | NetBSD/hppa hppa*-*netbsd* | |
94a0e877 | 886 | Xtensa GNU/Linux xtensa*-*-linux* |
af5ca30d NH |
887 | |
888 | * New targets | |
889 | ||
890 | NetBSD/hppa hppa*-*-netbsd* | |
94a0e877 | 891 | Xtensa GNU/Lunux xtensa*-*-linux* |
af5ca30d | 892 | |
7a404eba PA |
893 | * Change in command line behavior -- corefiles vs. process ids. |
894 | ||
895 | When the '-p NUMBER' or '--pid NUMBER' options are used, and | |
896 | attaching to process NUMBER fails, GDB no longer attempts to open a | |
897 | core file named NUMBER. Attaching to a program using the -c option | |
898 | is no longer supported. Instead, use the '-p' or '--pid' options. | |
899 | ||
430ebac9 PA |
900 | * GDB can now be built as a native debugger for debugging Windows x86 |
901 | (mingw32) Portable Executable (PE) programs. | |
902 | ||
fe6fbf8b | 903 | * Pending breakpoints no longer change their number when their address |
8d5f9c6f | 904 | is resolved. |
fe6fbf8b VP |
905 | |
906 | * GDB now supports breakpoints with multiple locations, | |
8d5f9c6f DJ |
907 | including breakpoints on C++ constructors, inside C++ templates, |
908 | and in inlined functions. | |
fe6fbf8b | 909 | |
10665d76 JB |
910 | * GDB's ability to debug optimized code has been improved. GDB more |
911 | accurately identifies function bodies and lexical blocks that occupy | |
912 | more than one contiguous range of addresses. | |
913 | ||
7cc46491 DJ |
914 | * Target descriptions can now describe registers for PowerPC. |
915 | ||
d71340b8 DJ |
916 | * The GDB remote stub, gdbserver, now supports the AltiVec and SPE |
917 | registers on PowerPC targets. | |
918 | ||
523c4513 DJ |
919 | * The GDB remote stub, gdbserver, now supports thread debugging on GNU/Linux |
920 | targets even when the libthread_db library is not available. | |
921 | ||
a6b151f1 DJ |
922 | * The GDB remote stub, gdbserver, now supports the new file transfer |
923 | commands (remote put, remote get, and remote delete). | |
924 | ||
2d717e4f DJ |
925 | * The GDB remote stub, gdbserver, now supports run and attach in |
926 | extended-remote mode. | |
927 | ||
24a836bd | 928 | * hppa*64*-*-hpux11* target broken |
d001be7a DJ |
929 | The debugger is unable to start a program and fails with the following |
930 | error: "Error trying to get information about dynamic linker". | |
931 | The gdb-6.7 release is also affected. | |
24a836bd | 932 | |
d0c678e6 UW |
933 | * GDB now supports the --enable-targets= configure option to allow |
934 | building a single GDB executable that supports multiple remote | |
935 | target architectures. | |
936 | ||
d64a946d TJB |
937 | * GDB now supports debugging C and C++ programs which use the |
938 | Decimal Floating Point extension. In addition, the PowerPC target | |
939 | now has a set of pseudo-registers to inspect decimal float values | |
940 | stored in two consecutive float registers. | |
941 | ||
ee163bf5 VP |
942 | * The -break-insert MI command can optionally create pending |
943 | breakpoints now. | |
944 | ||
b93b6ca7 | 945 | * Improved support for debugging Ada |
d001be7a DJ |
946 | Many improvements to the Ada language support have been made. These |
947 | include: | |
b93b6ca7 JB |
948 | - Better support for Ada2005 interface types |
949 | - Improved handling of arrays and slices in general | |
950 | - Better support for Taft-amendment types | |
951 | - The '{type} ADDRESS' expression is now allowed on the left hand-side | |
952 | of an assignment | |
953 | - Improved command completion in Ada | |
954 | - Several bug fixes | |
955 | ||
d001be7a DJ |
956 | * GDB on GNU/Linux and HP/UX can now debug through "exec" of a new |
957 | process. | |
958 | ||
a6b151f1 DJ |
959 | * New commands |
960 | ||
6d53d0af JB |
961 | set print frame-arguments (all|scalars|none) |
962 | show print frame-arguments | |
963 | The value of this variable can be changed to control which argument | |
964 | values should be printed by the debugger when displaying a frame. | |
965 | ||
a6b151f1 DJ |
966 | remote put |
967 | remote get | |
968 | remote delete | |
969 | Transfer files to and from a remote target, and delete remote files. | |
970 | ||
971 | * New MI commands | |
972 | ||
973 | -target-file-put | |
974 | -target-file-get | |
975 | -target-file-delete | |
976 | Transfer files to and from a remote target, and delete remote files. | |
977 | ||
978 | * New remote packets | |
979 | ||
980 | vFile:open: | |
981 | vFile:close: | |
982 | vFile:pread: | |
983 | vFile:pwrite: | |
984 | vFile:unlink: | |
985 | Open, close, read, write, and delete files on the remote system. | |
d0c678e6 | 986 | |
2d717e4f DJ |
987 | vAttach |
988 | Attach to an existing process on the remote system, in extended-remote | |
989 | mode. | |
990 | ||
991 | vRun | |
992 | Run a new process on the remote system, in extended-remote mode. | |
993 | ||
8d5f9c6f | 994 | *** Changes in GDB 6.7 |
6dd09645 | 995 | |
19d378fc MS |
996 | * Resolved 101 resource leaks, null pointer dereferences, etc. in gdb, |
997 | bfd, libiberty and opcodes, as revealed by static analysis donated by | |
998 | Coverity, Inc. (http://scan.coverity.com). | |
999 | ||
3a40aaa0 UW |
1000 | * When looking up multiply-defined global symbols, GDB will now prefer the |
1001 | symbol definition in the current shared library if it was built using the | |
1002 | -Bsymbolic linker option. | |
1003 | ||
a6ec25f2 BW |
1004 | * When the Text User Interface (TUI) is not configured, GDB will now |
1005 | recognize the -tui command-line option and print a message that the TUI | |
1006 | is not supported. | |
1007 | ||
6dd09645 JB |
1008 | * The GDB remote stub, gdbserver, now has lower overhead for high |
1009 | frequency signals (e.g. SIGALRM) via the QPassSignals packet. | |
1010 | ||
c9bb8148 DJ |
1011 | * GDB for MIPS targets now autodetects whether a remote target provides |
1012 | 32-bit or 64-bit register values. | |
1013 | ||
0d5de010 DJ |
1014 | * Support for C++ member pointers has been improved. |
1015 | ||
23181151 DJ |
1016 | * GDB now understands XML target descriptions, which specify the |
1017 | target's overall architecture. GDB can read a description from | |
1018 | a local file or over the remote serial protocol. | |
1019 | ||
ea37ba09 DJ |
1020 | * Vectors of single-byte data use a new integer type which is not |
1021 | automatically displayed as character or string data. | |
1022 | ||
1023 | * The /s format now works with the print command. It displays | |
1024 | arrays of single-byte integers and pointers to single-byte integers | |
1025 | as strings. | |
e1f48ead | 1026 | |
123dc839 DJ |
1027 | * Target descriptions can now describe target-specific registers, |
1028 | for architectures which have implemented the support (currently | |
8d5f9c6f | 1029 | only ARM, M68K, and MIPS). |
123dc839 | 1030 | |
05a4558a DJ |
1031 | * GDB and the GDB remote stub, gdbserver, now support the XScale |
1032 | iWMMXt coprocessor. | |
fb1e4ffc | 1033 | |
7c963485 PA |
1034 | * The GDB remote stub, gdbserver, has been updated to support |
1035 | ARM Windows CE (mingw32ce) debugging, and GDB Windows CE support | |
1036 | has been rewritten to use the standard GDB remote protocol. | |
1037 | ||
b18be20d DJ |
1038 | * GDB can now step into C++ functions which are called through thunks. |
1039 | ||
0ca420ce UW |
1040 | * GDB for the Cell/B.E. SPU now supports overlay debugging. |
1041 | ||
31d99776 DJ |
1042 | * The GDB remote protocol "qOffsets" packet can now honor ELF segment |
1043 | layout. It also supports a TextSeg= and DataSeg= response when only | |
1044 | segment base addresses (rather than offsets) are available. | |
1045 | ||
a4642986 MR |
1046 | * The /i format now outputs any trailing branch delay slot instructions |
1047 | immediately following the last instruction within the count specified. | |
1048 | ||
cfa9d6d9 DJ |
1049 | * The GDB remote protocol "T" stop reply packet now supports a |
1050 | "library" response. Combined with the new "qXfer:libraries:read" | |
1051 | packet, this response allows GDB to debug shared libraries on targets | |
1052 | where the operating system manages the list of loaded libraries (e.g. | |
1053 | Windows and SymbianOS). | |
255e7678 DJ |
1054 | |
1055 | * The GDB remote stub, gdbserver, now supports dynamic link libraries | |
1056 | (DLLs) on Windows and Windows CE targets. | |
f5db8714 JK |
1057 | |
1058 | * GDB now supports a faster verification that a .debug file matches its binary | |
1059 | according to its build-id signature, if the signature is present. | |
cfa9d6d9 | 1060 | |
c9bb8148 DJ |
1061 | * New commands |
1062 | ||
23776285 MR |
1063 | set remoteflow |
1064 | show remoteflow | |
1065 | Enable or disable hardware flow control (RTS/CTS) on the serial port | |
1066 | when debugging using remote targets. | |
1067 | ||
c9bb8148 DJ |
1068 | set mem inaccessible-by-default |
1069 | show mem inaccessible-by-default | |
1070 | If the target supplies a memory map, for instance via the remote | |
1071 | protocol's "qXfer:memory-map:read" packet, setting this variable | |
1072 | prevents GDB from accessing memory outside the memory map. This | |
1073 | is useful for targets with memory mapped registers or which react | |
1074 | badly to accesses of unmapped address space. | |
1075 | ||
1076 | set breakpoint auto-hw | |
1077 | show breakpoint auto-hw | |
1078 | If the target supplies a memory map, for instance via the remote | |
1079 | protocol's "qXfer:memory-map:read" packet, setting this variable | |
1080 | lets GDB use hardware breakpoints automatically for memory regions | |
1081 | where it can not use software breakpoints. This covers both the | |
1082 | "break" command and internal breakpoints used for other commands | |
1083 | including "next" and "finish". | |
1084 | ||
0e420bd8 JB |
1085 | catch exception |
1086 | catch exception unhandled | |
1087 | Stop the program execution when Ada exceptions are raised. | |
1088 | ||
1089 | catch assert | |
1090 | Stop the program execution when an Ada assertion failed. | |
1091 | ||
f822c95b DJ |
1092 | set sysroot |
1093 | show sysroot | |
1094 | Set an alternate system root for target files. This is a more | |
1095 | general version of "set solib-absolute-prefix", which is now | |
1096 | an alias to "set sysroot". | |
1097 | ||
83cc5c53 UW |
1098 | info spu |
1099 | Provide extended SPU facility status information. This set of | |
1100 | commands is available only when debugging the Cell/B.E. SPU | |
1101 | architecture. | |
1102 | ||
bd372731 MK |
1103 | * New native configurations |
1104 | ||
1105 | OpenBSD/sh sh*-*openbsd* | |
1106 | ||
23181151 DJ |
1107 | set tdesc filename |
1108 | unset tdesc filename | |
1109 | show tdesc filename | |
1110 | Use the specified local file as an XML target description, and do | |
1111 | not query the target for its built-in description. | |
1112 | ||
c9bb8148 DJ |
1113 | * New targets |
1114 | ||
54fe9172 | 1115 | OpenBSD/sh sh*-*-openbsd* |
c9bb8148 | 1116 | MIPS64 GNU/Linux (gdbserver) mips64-linux-gnu |
c077150c | 1117 | Toshiba Media Processor mep-elf |
c9bb8148 | 1118 | |
6dd09645 JB |
1119 | * New remote packets |
1120 | ||
1121 | QPassSignals: | |
1122 | Ignore the specified signals; pass them directly to the debugged program | |
1123 | without stopping other threads or reporting them to GDB. | |
1124 | ||
23181151 DJ |
1125 | qXfer:features:read: |
1126 | Read an XML target description from the target, which describes its | |
1127 | features. | |
6dd09645 | 1128 | |
83cc5c53 UW |
1129 | qXfer:spu:read: |
1130 | qXfer:spu:write: | |
1131 | Read or write contents of an spufs file on the target system. These | |
1132 | packets are available only on the Cell/B.E. SPU architecture. | |
1133 | ||
cfa9d6d9 DJ |
1134 | qXfer:libraries:read: |
1135 | Report the loaded shared libraries. Combined with new "T" packet | |
1136 | response, this packet allows GDB to debug shared libraries on | |
1137 | targets where the operating system manages the list of loaded | |
1138 | libraries (e.g. Windows and SymbianOS). | |
1139 | ||
483367ee DJ |
1140 | * Removed targets |
1141 | ||
1142 | Support for these obsolete configurations has been removed. | |
1143 | ||
d08950c4 UW |
1144 | alpha*-*-osf1* |
1145 | alpha*-*-osf2* | |
7ce59000 | 1146 | d10v-*-* |
483367ee DJ |
1147 | hppa*-*-hiux* |
1148 | i[34567]86-ncr-* | |
1149 | i[34567]86-*-dgux* | |
1150 | i[34567]86-*-lynxos* | |
1151 | i[34567]86-*-netware* | |
1152 | i[34567]86-*-sco3.2v5* | |
1153 | i[34567]86-*-sco3.2v4* | |
1154 | i[34567]86-*-sco* | |
1155 | i[34567]86-*-sysv4.2* | |
1156 | i[34567]86-*-sysv4* | |
1157 | i[34567]86-*-sysv5* | |
1158 | i[34567]86-*-unixware2* | |
1159 | i[34567]86-*-unixware* | |
1160 | i[34567]86-*-sysv* | |
1161 | i[34567]86-*-isc* | |
1162 | m68*-cisco*-* | |
1163 | m68*-tandem-* | |
ad527d2e | 1164 | mips*-*-pe |
483367ee | 1165 | rs6000-*-lynxos* |
ad527d2e | 1166 | sh*-*-pe |
483367ee | 1167 | |
7ce59000 DJ |
1168 | * Other removed features |
1169 | ||
1170 | target abug | |
1171 | target cpu32bug | |
1172 | target est | |
1173 | target rom68k | |
1174 | ||
1175 | Various m68k-only ROM monitors. | |
1176 | ||
ea35711c DJ |
1177 | target hms |
1178 | target e7000 | |
1179 | target sh3 | |
1180 | target sh3e | |
1181 | ||
1182 | Various Renesas ROM monitors and debugging interfaces for SH and | |
1183 | H8/300. | |
1184 | ||
1185 | target ocd | |
1186 | ||
1187 | Support for a Macraigor serial interface to on-chip debugging. | |
1188 | GDB does not directly support the newer parallel or USB | |
1189 | interfaces. | |
1190 | ||
7ce59000 DJ |
1191 | DWARF 1 support |
1192 | ||
1193 | A debug information format. The predecessor to DWARF 2 and | |
1194 | DWARF 3, which are still supported. | |
1195 | ||
54d61198 DJ |
1196 | Support for the HP aCC compiler on HP-UX/PA-RISC |
1197 | ||
1198 | SOM-encapsulated symbolic debugging information, automatic | |
1199 | invocation of pxdb, and the aCC custom C++ ABI. This does not | |
1200 | affect HP-UX for Itanium or GCC for HP-UX/PA-RISC. Code compiled | |
1201 | with aCC can still be debugged on an assembly level. | |
1202 | ||
ea35711c DJ |
1203 | MIPS ".pdr" sections |
1204 | ||
1205 | A MIPS-specific format used to describe stack frame layout | |
1206 | in debugging information. | |
1207 | ||
1208 | Scheme support | |
1209 | ||
1210 | GDB could work with an older version of Guile to debug | |
1211 | the interpreter and Scheme programs running in it. | |
1212 | ||
1a69e1e4 DJ |
1213 | set mips stack-arg-size |
1214 | set mips saved-gpreg-size | |
1215 | ||
1216 | Use "set mips abi" to control parameter passing for MIPS. | |
1217 | ||
6dd09645 | 1218 | *** Changes in GDB 6.6 |
e374b601 | 1219 | |
ca3bf3bd DJ |
1220 | * New targets |
1221 | ||
1222 | Xtensa xtensa-elf | |
9c309e77 | 1223 | Cell Broadband Engine SPU spu-elf |
ca3bf3bd | 1224 | |
6aec2e11 DJ |
1225 | * GDB can now be configured as a cross-debugger targeting native Windows |
1226 | (mingw32) or Cygwin. It can communicate with a remote debugging stub | |
1227 | running on a Windows system over TCP/IP to debug Windows programs. | |
1228 | ||
1229 | * The GDB remote stub, gdbserver, has been updated to support Windows and | |
1230 | Cygwin debugging. Both single-threaded and multi-threaded programs are | |
1231 | supported. | |
1232 | ||
17218d91 DJ |
1233 | * The "set trust-readonly-sections" command works again. This command was |
1234 | broken in GDB 6.3, 6.4, and 6.5. | |
1235 | ||
9ebce043 DJ |
1236 | * The "load" command now supports writing to flash memory, if the remote |
1237 | stub provides the required support. | |
1238 | ||
7d3d3ece DJ |
1239 | * Support for GNU/Linux Thread Local Storage (TLS, per-thread variables) no |
1240 | longer requires symbolic debug information (e.g. DWARF-2). | |
1241 | ||
4f8253f3 JB |
1242 | * New commands |
1243 | ||
1244 | set substitute-path | |
1245 | unset substitute-path | |
1246 | show substitute-path | |
1247 | Manage a list of substitution rules that GDB uses to rewrite the name | |
1248 | of the directories where the sources are located. This can be useful | |
1249 | for instance when the sources were moved to a different location | |
1250 | between compilation and debugging. | |
1251 | ||
9fa66fd7 AS |
1252 | set trace-commands |
1253 | show trace-commands | |
1254 | Print each CLI command as it is executed. Each command is prefixed with | |
1255 | a number of `+' symbols representing the nesting depth. | |
1256 | The source command now has a `-v' option to enable the same feature. | |
1257 | ||
1f5befc1 DJ |
1258 | * REMOVED features |
1259 | ||
1260 | The ARM Demon monitor support (RDP protocol, "target rdp"). | |
1261 | ||
2ec3381a DJ |
1262 | Kernel Object Display, an embedded debugging feature which only worked with |
1263 | an obsolete version of Cisco IOS. | |
1264 | ||
3d00d119 DJ |
1265 | The 'set download-write-size' and 'show download-write-size' commands. |
1266 | ||
be2a5f71 DJ |
1267 | * New remote packets |
1268 | ||
1269 | qSupported: | |
1270 | Tell a stub about GDB client features, and request remote target features. | |
1271 | The first feature implemented is PacketSize, which allows the target to | |
1272 | specify the size of packets it can handle - to minimize the number of | |
1273 | packets required and improve performance when connected to a remote | |
1274 | target. | |
1275 | ||
0876f84a DJ |
1276 | qXfer:auxv:read: |
1277 | Fetch an OS auxilliary vector from the remote stub. This packet is a | |
1278 | more efficient replacement for qPart:auxv:read. | |
1279 | ||
9ebce043 DJ |
1280 | qXfer:memory-map:read: |
1281 | Fetch a memory map from the remote stub, including information about | |
1282 | RAM, ROM, and flash memory devices. | |
1283 | ||
1284 | vFlashErase: | |
1285 | vFlashWrite: | |
1286 | vFlashDone: | |
1287 | Erase and program a flash memory device. | |
1288 | ||
0876f84a DJ |
1289 | * Removed remote packets |
1290 | ||
1291 | qPart:auxv:read: | |
1292 | This packet has been replaced by qXfer:auxv:read. Only GDB 6.4 and 6.5 | |
1293 | used it, and only gdbserver implemented it. | |
1294 | ||
e374b601 | 1295 | *** Changes in GDB 6.5 |
53e5f3cf | 1296 | |
96309189 MS |
1297 | * New targets |
1298 | ||
1299 | Renesas M32C/M16C m32c-elf | |
1300 | ||
1301 | Morpho Technologies ms1 ms1-elf | |
1302 | ||
53e5f3cf AS |
1303 | * New commands |
1304 | ||
1305 | init-if-undefined Initialize a convenience variable, but | |
1306 | only if it doesn't already have a value. | |
1307 | ||
ac264b3b MS |
1308 | The following commands are presently only implemented for native GNU/Linux: |
1309 | ||
1310 | checkpoint Save a snapshot of the program state. | |
1311 | ||
1312 | restart <n> Return the program state to a | |
1313 | previously saved state. | |
1314 | ||
1315 | info checkpoints List currently saved checkpoints. | |
1316 | ||
1317 | delete-checkpoint <n> Delete a previously saved checkpoint. | |
1318 | ||
1319 | set|show detach-on-fork Tell gdb whether to detach from a newly | |
1320 | forked process, or to keep debugging it. | |
1321 | ||
1322 | info forks List forks of the user program that | |
1323 | are available to be debugged. | |
1324 | ||
1325 | fork <n> Switch to debugging one of several | |
1326 | forks of the user program that are | |
1327 | available to be debugged. | |
1328 | ||
1329 | delete-fork <n> Delete a fork from the list of forks | |
1330 | that are available to be debugged (and | |
1331 | kill the forked process). | |
1332 | ||
1333 | detach-fork <n> Delete a fork from the list of forks | |
1334 | that are available to be debugged (and | |
1335 | allow the process to continue). | |
1336 | ||
3950dc3f NS |
1337 | * New architecture |
1338 | ||
1339 | Morpho Technologies ms2 ms1-elf | |
1340 | ||
0ea3f30e DJ |
1341 | * Improved Windows host support |
1342 | ||
1343 | GDB now builds as a cross debugger hosted on i686-mingw32, including | |
1344 | native console support, and remote communications using either | |
1345 | network sockets or serial ports. | |
1346 | ||
f79daebb GM |
1347 | * Improved Modula-2 language support |
1348 | ||
1349 | GDB can now print most types in the Modula-2 syntax. This includes: | |
1350 | basic types, set types, record types, enumerated types, range types, | |
1351 | pointer types and ARRAY types. Procedure var parameters are correctly | |
1352 | printed and hexadecimal addresses and character constants are also | |
1353 | written in the Modula-2 syntax. Best results can be obtained by using | |
1354 | GNU Modula-2 together with the -gdwarf-2 command line option. | |
1355 | ||
acab6ab2 MM |
1356 | * REMOVED features |
1357 | ||
1358 | The ARM rdi-share module. | |
1359 | ||
f4267320 DJ |
1360 | The Netware NLM debug server. |
1361 | ||
53e5f3cf | 1362 | *** Changes in GDB 6.4 |
156a53ca | 1363 | |
e0ecbda1 MK |
1364 | * New native configurations |
1365 | ||
02a677ac | 1366 | OpenBSD/arm arm*-*-openbsd* |
e0ecbda1 MK |
1367 | OpenBSD/mips64 mips64-*-openbsd* |
1368 | ||
d64a6579 KB |
1369 | * New targets |
1370 | ||
1371 | Morpho Technologies ms1 ms1-elf | |
1372 | ||
b33a6190 AS |
1373 | * New command line options |
1374 | ||
1375 | --batch-silent As for --batch, but totally silent. | |
1376 | --return-child-result The debugger will exist with the same value | |
1377 | the child (debugged) program exited with. | |
1378 | --eval-command COMMAND, -ex COMMAND | |
1379 | Execute a single GDB CLI command. This may be | |
1380 | specified multiple times and in conjunction | |
1381 | with the --command (-x) option. | |
1382 | ||
11dced61 AC |
1383 | * Deprecated commands removed |
1384 | ||
1385 | The following commands, that were deprecated in 2000, have been | |
1386 | removed: | |
1387 | ||
1388 | Command Replacement | |
1389 | set|show arm disassembly-flavor set|show arm disassembler | |
1390 | othernames set arm disassembler | |
1391 | set|show remotedebug set|show debug remote | |
1392 | set|show archdebug set|show debug arch | |
1393 | set|show eventdebug set|show debug event | |
1394 | regs info registers | |
1395 | ||
6fe85783 MK |
1396 | * New BSD user-level threads support |
1397 | ||
1398 | It is now possible to debug programs using the user-level threads | |
1399 | library on OpenBSD and FreeBSD. Currently supported (target) | |
1400 | configurations are: | |
1401 | ||
1402 | FreeBSD/amd64 x86_64-*-freebsd* | |
1403 | FreeBSD/i386 i386-*-freebsd* | |
1404 | OpenBSD/i386 i386-*-openbsd* | |
1405 | ||
1406 | Note that the new kernel threads libraries introduced in FreeBSD 5.x | |
1407 | are not yet supported. | |
1408 | ||
5260ca71 MS |
1409 | * New support for Matsushita MN10300 w/sim added |
1410 | (Work in progress). mn10300-elf. | |
1411 | ||
e84ecc99 AC |
1412 | * REMOVED configurations and files |
1413 | ||
1414 | VxWorks and the XDR protocol *-*-vxworks | |
9445aa30 | 1415 | Motorola MCORE mcore-*-* |
9445aa30 | 1416 | National Semiconductor NS32000 ns32k-*-* |
156a53ca | 1417 | |
31e35378 JB |
1418 | * New "set print array-indexes" command |
1419 | ||
1420 | After turning this setting "on", GDB prints the index of each element | |
1421 | when displaying arrays. The default is "off" to preserve the previous | |
1422 | behavior. | |
1423 | ||
e85e5c83 MK |
1424 | * VAX floating point support |
1425 | ||
1426 | GDB now supports the not-quite-ieee VAX F and D floating point formats. | |
1427 | ||
d91e9901 AS |
1428 | * User-defined command support |
1429 | ||
1430 | In addition to using $arg0..$arg9 for argument passing, it is now possible | |
1431 | to use $argc to determine now many arguments have been passed. See the | |
1432 | section on user-defined commands in the user manual for more information. | |
1433 | ||
f2cb65ca MC |
1434 | *** Changes in GDB 6.3: |
1435 | ||
f47b1503 AS |
1436 | * New command line option |
1437 | ||
1438 | GDB now accepts -l followed by a number to set the timeout for remote | |
1439 | debugging. | |
1440 | ||
f2cb65ca MC |
1441 | * GDB works with GCC -feliminate-dwarf2-dups |
1442 | ||
1443 | GDB now supports a more compact representation of DWARF-2 debug | |
1444 | information using DW_FORM_ref_addr references. These are produced | |
1445 | by GCC with the option -feliminate-dwarf2-dups and also by some | |
1446 | proprietary compilers. With GCC, you must use GCC 3.3.4 or later | |
1447 | to use -feliminate-dwarf2-dups. | |
860660cb | 1448 | |
d08c0230 AC |
1449 | * Internationalization |
1450 | ||
1451 | When supported by the host system, GDB will be built with | |
1452 | internationalization (libintl). The task of marking up the sources is | |
1453 | continued, we're looking forward to our first translation. | |
1454 | ||
117ea3cf PH |
1455 | * Ada |
1456 | ||
1457 | Initial support for debugging programs compiled with the GNAT | |
1458 | implementation of the Ada programming language has been integrated | |
1459 | into GDB. In this release, support is limited to expression evaluation. | |
1460 | ||
d08c0230 AC |
1461 | * New native configurations |
1462 | ||
1463 | GNU/Linux/m32r m32r-*-linux-gnu | |
1464 | ||
1465 | * Remote 'p' packet | |
1466 | ||
1467 | GDB's remote protocol now includes support for the 'p' packet. This | |
1468 | packet is used to fetch individual registers from a remote inferior. | |
1469 | ||
1470 | * END-OF-LIFE registers[] compatibility module | |
1471 | ||
1472 | GDB's internal register infrastructure has been completely rewritten. | |
1473 | The new infrastructure making possible the implementation of key new | |
1474 | features including 32x64 (e.g., 64-bit amd64 GDB debugging a 32-bit | |
1475 | i386 application). | |
1476 | ||
1477 | GDB 6.3 will be the last release to include the the registers[] | |
1478 | compatibility module that allowed out-of-date configurations to | |
1479 | continue to work. This change directly impacts the following | |
1480 | configurations: | |
1481 | ||
1482 | hppa-*-hpux | |
1483 | ia64-*-aix | |
1484 | mips-*-irix* | |
1485 | *-*-lynx | |
1486 | mips-*-linux-gnu | |
1487 | sds protocol | |
1488 | xdr protocol | |
1489 | powerpc bdm protocol | |
1490 | ||
1491 | Unless there is activity to revive these configurations, they will be | |
1492 | made OBSOLETE in GDB 6.4, and REMOVED from GDB 6.5. | |
1493 | ||
1494 | * OBSOLETE configurations and files | |
1495 | ||
1496 | Configurations that have been declared obsolete in this release have | |
1497 | been commented out. Unless there is activity to revive these | |
1498 | configurations, the next release of GDB will have their sources | |
1499 | permanently REMOVED. | |
1500 | ||
1501 | h8300-*-* | |
1502 | mcore-*-* | |
1503 | mn10300-*-* | |
1504 | ns32k-*-* | |
1505 | sh64-*-* | |
1506 | v850-*-* | |
1507 | ||
ebb7c577 AC |
1508 | *** Changes in GDB 6.2.1: |
1509 | ||
1510 | * MIPS `break main; run' gave an heuristic-fence-post warning | |
1511 | ||
1512 | When attempting to run even a simple program, a warning about | |
1513 | heuristic-fence-post being hit would be reported. This problem has | |
1514 | been fixed. | |
1515 | ||
1516 | * MIPS IRIX 'long double' crashed GDB | |
1517 | ||
1518 | When examining a long double variable, GDB would get a segmentation | |
1519 | fault. The crash has been fixed (but GDB 6.2 cannot correctly examine | |
1520 | IRIX long double values). | |
1521 | ||
1522 | * VAX and "next" | |
1523 | ||
1524 | A bug in the VAX stack code was causing problems with the "next" | |
1525 | command. This problem has been fixed. | |
1526 | ||
860660cb | 1527 | *** Changes in GDB 6.2: |
faae5abe | 1528 | |
0dea2468 AC |
1529 | * Fix for ``many threads'' |
1530 | ||
1531 | On GNU/Linux systems that use the NPTL threads library, a program | |
1532 | rapidly creating and deleting threads would confuse GDB leading to the | |
1533 | error message: | |
1534 | ||
1535 | ptrace: No such process. | |
1536 | thread_db_get_info: cannot get thread info: generic error | |
1537 | ||
1538 | This problem has been fixed. | |
1539 | ||
2c07db7a AC |
1540 | * "-async" and "-noasync" options removed. |
1541 | ||
1542 | Support for the broken "-noasync" option has been removed (it caused | |
1543 | GDB to dump core). | |
1544 | ||
c23968a2 JB |
1545 | * New ``start'' command. |
1546 | ||
1547 | This command runs the program until the begining of the main procedure. | |
1548 | ||
71009278 MK |
1549 | * New BSD Kernel Data Access Library (libkvm) interface |
1550 | ||
1551 | Using ``target kvm'' it is now possible to debug kernel core dumps and | |
1552 | live kernel memory images on various FreeBSD, NetBSD and OpenBSD | |
1553 | platforms. Currently supported (native-only) configurations are: | |
1554 | ||
1555 | FreeBSD/amd64 x86_64-*-freebsd* | |
1556 | FreeBSD/i386 i?86-*-freebsd* | |
1557 | NetBSD/i386 i?86-*-netbsd* | |
1558 | NetBSD/m68k m68*-*-netbsd* | |
1559 | NetBSD/sparc sparc-*-netbsd* | |
1560 | OpenBSD/amd64 x86_64-*-openbsd* | |
1561 | OpenBSD/i386 i?86-*-openbsd* | |
1562 | OpenBSD/m68k m68*-openbsd* | |
1563 | OpenBSD/sparc sparc-*-openbsd* | |
1564 | ||
3c0b7db2 AC |
1565 | * Signal trampoline code overhauled |
1566 | ||
1567 | Many generic problems with GDB's signal handling code have been fixed. | |
1568 | These include: backtraces through non-contiguous stacks; recognition | |
1569 | of sa_sigaction signal trampolines; backtrace from a NULL pointer | |
1570 | call; backtrace through a signal trampoline; step into and out of | |
1571 | signal handlers; and single-stepping in the signal trampoline. | |
1572 | ||
73cc75f3 AC |
1573 | Please note that kernel bugs are a limiting factor here. These |
1574 | features have been shown to work on an s390 GNU/Linux system that | |
1575 | include a 2.6.8-rc1 kernel. Ref PR breakpoints/1702. | |
3c0b7db2 | 1576 | |
7243600a BF |
1577 | * Cygwin support for DWARF 2 added. |
1578 | ||
6f606e1c MK |
1579 | * New native configurations |
1580 | ||
97dc871c | 1581 | GNU/Linux/hppa hppa*-*-linux* |
0e56aeaf | 1582 | OpenBSD/hppa hppa*-*-openbsd* |
bf2ca189 MK |
1583 | OpenBSD/m68k m68*-*-openbsd* |
1584 | OpenBSD/m88k m88*-*-openbsd* | |
d195bc9f | 1585 | OpenBSD/powerpc powerpc-*-openbsd* |
6f606e1c | 1586 | NetBSD/vax vax-*-netbsd* |
9f076e7a | 1587 | OpenBSD/vax vax-*-openbsd* |
6f606e1c | 1588 | |
a1b461bf AC |
1589 | * END-OF-LIFE frame compatibility module |
1590 | ||
1591 | GDB's internal frame infrastructure has been completely rewritten. | |
1592 | The new infrastructure making it possible to support key new features | |
1593 | including DWARF 2 Call Frame Information. To aid in the task of | |
1594 | migrating old configurations to this new infrastructure, a | |
1595 | compatibility module, that allowed old configurations to continue to | |
1596 | work, was also included. | |
1597 | ||
1598 | GDB 6.2 will be the last release to include this frame compatibility | |
1599 | module. This change directly impacts the following configurations: | |
1600 | ||
1601 | h8300-*-* | |
1602 | mcore-*-* | |
1603 | mn10300-*-* | |
1604 | ns32k-*-* | |
1605 | sh64-*-* | |
1606 | v850-*-* | |
1607 | xstormy16-*-* | |
1608 | ||
1609 | Unless there is activity to revive these configurations, they will be | |
1610 | made OBSOLETE in GDB 6.3, and REMOVED from GDB 6.4. | |
1611 | ||
3c7012f5 AC |
1612 | * REMOVED configurations and files |
1613 | ||
1614 | Sun 3, running SunOS 3 m68*-*-sunos3* | |
1615 | Sun 3, running SunOS 4 m68*-*-sunos4* | |
1616 | Sun 2, running SunOS 3 m68000-*-sunos3* | |
1617 | Sun 2, running SunOS 4 m68000-*-sunos4* | |
1618 | Motorola 680x0 running LynxOS m68*-*-lynxos* | |
1619 | AT&T 3b1/Unix pc m68*-att-* | |
1620 | Bull DPX2 (68k, System V release 3) m68*-bull-sysv* | |
1621 | decstation mips-dec-* mips-little-* | |
1622 | riscos mips-*-riscos* mips-*-sysv* | |
1623 | sonymips mips-sony-* | |
1624 | sysv mips*-*-sysv4* (IRIX 5/6 not included) | |
1625 | ||
e5fe55f7 AC |
1626 | *** Changes in GDB 6.1.1: |
1627 | ||
1628 | * TUI (Text-mode User Interface) built-in (also included in GDB 6.1) | |
1629 | ||
1630 | The TUI (Text-mode User Interface) is now built as part of a default | |
1631 | GDB configuration. It is enabled by either selecting the TUI with the | |
1632 | command line option "-i=tui" or by running the separate "gdbtui" | |
1633 | program. For more information on the TUI, see the manual "Debugging | |
1634 | with GDB". | |
1635 | ||
1636 | * Pending breakpoint support (also included in GDB 6.1) | |
1637 | ||
1638 | Support has been added to allow you to specify breakpoints in shared | |
1639 | libraries that have not yet been loaded. If a breakpoint location | |
1640 | cannot be found, and the "breakpoint pending" option is set to auto, | |
1641 | GDB queries you if you wish to make the breakpoint pending on a future | |
1642 | shared-library load. If and when GDB resolves the breakpoint symbol, | |
1643 | the pending breakpoint is removed as one or more regular breakpoints | |
1644 | are created. | |
1645 | ||
1646 | Pending breakpoints are very useful for GCJ Java debugging. | |
1647 | ||
1648 | * Fixed ISO-C build problems | |
1649 | ||
1650 | The files bfd/elf-bfd.h, gdb/dictionary.c and gdb/types.c contained | |
1651 | non ISO-C code that stopped them being built using a more strict ISO-C | |
1652 | compiler (e.g., IBM's C compiler). | |
1653 | ||
1654 | * Fixed build problem on IRIX 5 | |
1655 | ||
1656 | Due to header problems with <sys/proc.h>, the file gdb/proc-api.c | |
1657 | wasn't able to compile compile on an IRIX 5 system. | |
1658 | ||
1659 | * Added execute permission to gdb/gdbserver/configure | |
1660 | ||
1661 | The shell script gdb/testsuite/gdb.stabs/configure lacked execute | |
1662 | permission. This bug would cause configure to fail on a number of | |
1663 | systems (Solaris, IRIX). Ref: server/519. | |
1664 | ||
1665 | * Fixed build problem on hpux2.0w-hp-hpux11.00 using the HP ANSI C compiler | |
1666 | ||
1667 | Older HPUX ANSI C compilers did not accept variable array sizes. somsolib.c | |
1668 | has been updated to use constant array sizes. | |
1669 | ||
1670 | * Fixed a panic in the DWARF Call Frame Info code on Solaris 2.7 | |
1671 | ||
1672 | GCC 3.3.2, on Solaris 2.7, includes the DW_EH_PE_funcrel encoding in | |
1673 | its generated DWARF Call Frame Info. This encoding was causing GDB to | |
1674 | panic, that panic has been fixed. Ref: gdb/1628. | |
1675 | ||
1676 | * Fixed a problem when examining parameters in shared library code. | |
1677 | ||
1678 | When examining parameters in optimized shared library code generated | |
1679 | by a mainline GCC, GDB would incorrectly report ``Variable "..." is | |
1680 | not available''. GDB now correctly displays the variable's value. | |
1681 | ||
faae5abe | 1682 | *** Changes in GDB 6.1: |
f2c06f52 | 1683 | |
9175c9a3 MC |
1684 | * Removed --with-mmalloc |
1685 | ||
1686 | Support for the mmalloc memory manager has been removed, as it | |
1687 | conflicted with the internal gdb byte cache. | |
1688 | ||
3cc87ec0 MK |
1689 | * Changes in AMD64 configurations |
1690 | ||
1691 | The AMD64 target now includes the %cs and %ss registers. As a result | |
1692 | the AMD64 remote protocol has changed; this affects the floating-point | |
1693 | and SSE registers. If you rely on those registers for your debugging, | |
1694 | you should upgrade gdbserver on the remote side. | |
1695 | ||
f0424ef6 MK |
1696 | * Revised SPARC target |
1697 | ||
1698 | The SPARC target has been completely revised, incorporating the | |
1699 | FreeBSD/sparc64 support that was added for GDB 6.0. As a result | |
03cebad2 MK |
1700 | support for LynxOS and SunOS 4 has been dropped. Calling functions |
1701 | from within GDB on operating systems with a non-executable stack | |
1702 | (Solaris, OpenBSD) now works. | |
f0424ef6 | 1703 | |
59659be2 ILT |
1704 | * New C++ demangler |
1705 | ||
1706 | GDB has a new C++ demangler which does a better job on the mangled | |
1707 | names generated by current versions of g++. It also runs faster, so | |
1708 | with this and other changes gdb should now start faster on large C++ | |
1709 | programs. | |
1710 | ||
9e08b29b DJ |
1711 | * DWARF 2 Location Expressions |
1712 | ||
1713 | GDB support for location expressions has been extended to support function | |
1714 | arguments and frame bases. Older versions of GDB could crash when they | |
1715 | encountered these. | |
1716 | ||
8dfe8985 DC |
1717 | * C++ nested types and namespaces |
1718 | ||
1719 | GDB's support for nested types and namespaces in C++ has been | |
1720 | improved, especially if you use the DWARF 2 debugging format. (This | |
1721 | is the default for recent versions of GCC on most platforms.) | |
1722 | Specifically, if you have a class "Inner" defined within a class or | |
1723 | namespace "Outer", then GDB realizes that the class's name is | |
1724 | "Outer::Inner", not simply "Inner". This should greatly reduce the | |
1725 | frequency of complaints about not finding RTTI symbols. In addition, | |
1726 | if you are stopped at inside of a function defined within a namespace, | |
1727 | GDB modifies its name lookup accordingly. | |
1728 | ||
cced5e27 MK |
1729 | * New native configurations |
1730 | ||
1731 | NetBSD/amd64 x86_64-*-netbsd* | |
27d1e716 | 1732 | OpenBSD/amd64 x86_64-*-openbsd* |
2031c21a | 1733 | OpenBSD/alpha alpha*-*-openbsd* |
f2cab569 MK |
1734 | OpenBSD/sparc sparc-*-openbsd* |
1735 | OpenBSD/sparc64 sparc64-*-openbsd* | |
cced5e27 | 1736 | |
b4b4b794 KI |
1737 | * New debugging protocols |
1738 | ||
1739 | M32R with SDI protocol m32r-*-elf* | |
1740 | ||
7989c619 AC |
1741 | * "set prompt-escape-char" command deleted. |
1742 | ||
1743 | The command "set prompt-escape-char" has been deleted. This command, | |
1744 | and its very obscure effet on GDB's prompt, was never documented, | |
1745 | tested, nor mentioned in the NEWS file. | |
1746 | ||
5994185b AC |
1747 | * OBSOLETE configurations and files |
1748 | ||
1749 | Configurations that have been declared obsolete in this release have | |
1750 | been commented out. Unless there is activity to revive these | |
1751 | configurations, the next release of GDB will have their sources | |
1752 | permanently REMOVED. | |
1753 | ||
1754 | Sun 3, running SunOS 3 m68*-*-sunos3* | |
1755 | Sun 3, running SunOS 4 m68*-*-sunos4* | |
1756 | Sun 2, running SunOS 3 m68000-*-sunos3* | |
1757 | Sun 2, running SunOS 4 m68000-*-sunos4* | |
1758 | Motorola 680x0 running LynxOS m68*-*-lynxos* | |
1759 | AT&T 3b1/Unix pc m68*-att-* | |
1760 | Bull DPX2 (68k, System V release 3) m68*-bull-sysv* | |
0748d941 AC |
1761 | decstation mips-dec-* mips-little-* |
1762 | riscos mips-*-riscos* mips-*-sysv* | |
1763 | sonymips mips-sony-* | |
1764 | sysv mips*-*-sysv4* (IRIX 5/6 not included) | |
5994185b | 1765 | |
0ddabb4c AC |
1766 | * REMOVED configurations and files |
1767 | ||
1768 | SGI Irix-4.x mips-sgi-irix4 or iris4 | |
1769 | SGI Iris (MIPS) running Irix V3: mips-sgi-irix or iris | |
4a8269c0 AC |
1770 | Z8000 simulator z8k-zilog-none or z8ksim |
1771 | Matsushita MN10200 w/simulator mn10200-*-* | |
1772 | H8/500 simulator h8500-hitachi-hms or h8500hms | |
1773 | HP/PA running BSD hppa*-*-bsd* | |
1774 | HP/PA running OSF/1 hppa*-*-osf* | |
1775 | HP/PA Pro target hppa*-*-pro* | |
1776 | PMAX (MIPS) running Mach 3.0 mips*-*-mach3* | |
cf7c5c23 | 1777 | 386BSD i[3456]86-*-bsd* |
4a8269c0 AC |
1778 | Sequent family i[3456]86-sequent-sysv4* |
1779 | i[3456]86-sequent-sysv* | |
1780 | i[3456]86-sequent-bsd* | |
f0424ef6 MK |
1781 | SPARC running LynxOS sparc-*-lynxos* |
1782 | SPARC running SunOS 4 sparc-*-sunos4* | |
4a8269c0 AC |
1783 | Tsqware Sparclet sparclet-*-* |
1784 | Fujitsu SPARClite sparclite-fujitsu-none or sparclite | |
0ddabb4c | 1785 | |
c7f1390e DJ |
1786 | *** Changes in GDB 6.0: |
1787 | ||
1fe43d45 AC |
1788 | * Objective-C |
1789 | ||
1790 | Support for debugging the Objective-C programming language has been | |
1791 | integrated into GDB. | |
1792 | ||
e6beb428 AC |
1793 | * New backtrace mechanism (includes DWARF 2 Call Frame Information). |
1794 | ||
1795 | DWARF 2's Call Frame Information makes available compiler generated | |
1796 | information that more exactly describes the program's run-time stack. | |
1797 | By using this information, GDB is able to provide more robust stack | |
1798 | backtraces. | |
1799 | ||
1800 | The i386, amd64 (nee, x86-64), Alpha, m68hc11, ia64, and m32r targets | |
1801 | have been updated to use a new backtrace mechanism which includes | |
1802 | DWARF 2 CFI support. | |
1803 | ||
1804 | * Hosted file I/O. | |
1805 | ||
1806 | GDB's remote protocol has been extended to include support for hosted | |
1807 | file I/O (where the remote target uses GDB's file system). See GDB's | |
1808 | remote protocol documentation for details. | |
1809 | ||
1810 | * All targets using the new architecture framework. | |
1811 | ||
1812 | All of GDB's targets have been updated to use the new internal | |
1813 | architecture framework. The way is now open for future GDB releases | |
1814 | to include cross-architecture native debugging support (i386 on amd64, | |
1815 | ppc32 on ppc64). | |
1816 | ||
1817 | * GNU/Linux's Thread Local Storage (TLS) | |
1818 | ||
1819 | GDB now includes support for for the GNU/Linux implementation of | |
1820 | per-thread variables. | |
1821 | ||
1822 | * GNU/Linux's Native POSIX Thread Library (NPTL) | |
1823 | ||
1824 | GDB's thread code has been updated to work with either the new | |
1825 | GNU/Linux NPTL thread library or the older "LinuxThreads" library. | |
1826 | ||
1827 | * Separate debug info. | |
1828 | ||
1829 | GDB, in conjunction with BINUTILS, now supports a mechanism for | |
1830 | automatically loading debug information from a separate file. Instead | |
1831 | of shipping full debug and non-debug versions of system libraries, | |
1832 | system integrators can now instead ship just the stripped libraries | |
1833 | and optional debug files. | |
1834 | ||
1835 | * DWARF 2 Location Expressions | |
1836 | ||
1837 | DWARF 2 Location Expressions allow the compiler to more completely | |
1838 | describe the location of variables (even in optimized code) to the | |
1839 | debugger. | |
1840 | ||
1841 | GDB now includes preliminary support for location expressions (support | |
1842 | for DW_OP_piece is still missing). | |
1843 | ||
1844 | * Java | |
1845 | ||
1846 | A number of long standing bugs that caused GDB to die while starting a | |
1847 | Java application have been fixed. GDB's Java support is now | |
1848 | considered "useable". | |
1849 | ||
85f8f974 DJ |
1850 | * GNU/Linux support for fork, vfork, and exec. |
1851 | ||
1852 | The "catch fork", "catch exec", "catch vfork", and "set follow-fork-mode" | |
1853 | commands are now implemented for GNU/Linux. They require a 2.5.x or later | |
1854 | kernel. | |
1855 | ||
0fac0b41 DJ |
1856 | * GDB supports logging output to a file |
1857 | ||
1858 | There are two new commands, "set logging" and "show logging", which can be | |
1859 | used to capture GDB's output to a file. | |
f2c06f52 | 1860 | |
6ad8ae5c DJ |
1861 | * The meaning of "detach" has changed for gdbserver |
1862 | ||
1863 | The "detach" command will now resume the application, as documented. To | |
1864 | disconnect from gdbserver and leave it stopped, use the new "disconnect" | |
1865 | command. | |
1866 | ||
e286caf2 | 1867 | * d10v, m68hc11 `regs' command deprecated |
5f601589 AC |
1868 | |
1869 | The `info registers' command has been updated so that it displays the | |
1870 | registers using a format identical to the old `regs' command. | |
1871 | ||
d28f9cdf DJ |
1872 | * Profiling support |
1873 | ||
1874 | A new command, "maint set profile on/off", has been added. This command can | |
1875 | be used to enable or disable profiling while running GDB, to profile a | |
1876 | session or a set of commands. In addition there is a new configure switch, | |
1877 | "--enable-profiling", which will cause GDB to be compiled with profiling | |
1878 | data, for more informative profiling results. | |
1879 | ||
da0f9dcd AC |
1880 | * Default MI syntax changed to "mi2". |
1881 | ||
1882 | The default MI (machine interface) syntax, enabled by the command line | |
1883 | option "-i=mi", has been changed to "mi2". The previous MI syntax, | |
b68767c1 | 1884 | "mi1", can be enabled by specifying the option "-i=mi1". |
da0f9dcd AC |
1885 | |
1886 | Support for the original "mi0" syntax (included in GDB 5.0) has been | |
1887 | removed. | |
1888 | ||
fb9b6b35 JJ |
1889 | Fix for gdb/192: removed extraneous space when displaying frame level. |
1890 | Fix for gdb/672: update changelist is now output in mi list format. | |
1891 | Fix for gdb/702: a -var-assign that updates the value now shows up | |
1892 | in a subsequent -var-update. | |
1893 | ||
954a4db8 MK |
1894 | * New native configurations. |
1895 | ||
1896 | FreeBSD/amd64 x86_64-*-freebsd* | |
1897 | ||
6760f9e6 JB |
1898 | * Multi-arched targets. |
1899 | ||
b4263afa | 1900 | HP/PA HPUX11 hppa*-*-hpux* |
85a453d5 | 1901 | Renesas M32R/D w/simulator m32r-*-elf* |
6760f9e6 | 1902 | |
1b831c93 AC |
1903 | * OBSOLETE configurations and files |
1904 | ||
1905 | Configurations that have been declared obsolete in this release have | |
1906 | been commented out. Unless there is activity to revive these | |
1907 | configurations, the next release of GDB will have their sources | |
1908 | permanently REMOVED. | |
1909 | ||
8b0e5691 | 1910 | Z8000 simulator z8k-zilog-none or z8ksim |
67f16606 | 1911 | Matsushita MN10200 w/simulator mn10200-*-* |
fd2299bd | 1912 | H8/500 simulator h8500-hitachi-hms or h8500hms |
56056df7 AC |
1913 | HP/PA running BSD hppa*-*-bsd* |
1914 | HP/PA running OSF/1 hppa*-*-osf* | |
1915 | HP/PA Pro target hppa*-*-pro* | |
78c43945 | 1916 | PMAX (MIPS) running Mach 3.0 mips*-*-mach3* |
2fbce691 AC |
1917 | Sequent family i[3456]86-sequent-sysv4* |
1918 | i[3456]86-sequent-sysv* | |
1919 | i[3456]86-sequent-bsd* | |
f81824a9 AC |
1920 | Tsqware Sparclet sparclet-*-* |
1921 | Fujitsu SPARClite sparclite-fujitsu-none or sparclite | |
fd2299bd | 1922 | |
5835abe7 NC |
1923 | * REMOVED configurations and files |
1924 | ||
1925 | V850EA ISA | |
1b831c93 AC |
1926 | Motorola Delta 88000 running Sys V m88k-motorola-sysv or delta88 |
1927 | IBM AIX PS/2 i[3456]86-*-aix | |
1928 | i386 running Mach 3.0 i[3456]86-*-mach3* | |
1929 | i386 running Mach i[3456]86-*-mach* | |
1930 | i386 running OSF/1 i[3456]86-*osf1mk* | |
1931 | HP/Apollo 68k Family m68*-apollo*-sysv*, | |
1932 | m68*-apollo*-bsd*, | |
1933 | m68*-hp-bsd*, m68*-hp-hpux* | |
1934 | Argonaut Risc Chip (ARC) arc-*-* | |
1935 | Mitsubishi D30V d30v-*-* | |
1936 | Fujitsu FR30 fr30-*-elf* | |
1937 | OS/9000 i[34]86-*-os9k | |
1938 | I960 with MON960 i960-*-coff | |
5835abe7 | 1939 | |
a094c6fb AC |
1940 | * MIPS $fp behavior changed |
1941 | ||
1942 | The convenience variable $fp, for the MIPS, now consistently returns | |
1943 | the address of the current frame's base. Previously, depending on the | |
1944 | context, $fp could refer to either $sp or the current frame's base | |
1945 | address. See ``8.10 Registers'' in the manual ``Debugging with GDB: | |
1946 | The GNU Source-Level Debugger''. | |
1947 | ||
299ffc64 | 1948 | *** Changes in GDB 5.3: |
37057839 | 1949 | |
46248966 AC |
1950 | * GNU/Linux shared library multi-threaded performance improved. |
1951 | ||
1952 | When debugging a multi-threaded application on GNU/Linux, GDB now uses | |
1953 | `/proc', in preference to `ptrace' for memory reads. This may result | |
1954 | in an improvement in the start-up time of multi-threaded, shared | |
1955 | library applications when run under GDB. One GDB user writes: ``loads | |
1956 | shared libs like mad''. | |
1957 | ||
b9d14705 | 1958 | * ``gdbserver'' now supports multi-threaded applications on some targets |
6da02953 | 1959 | |
b9d14705 DJ |
1960 | Support for debugging multi-threaded applications which use |
1961 | the GNU/Linux LinuxThreads package has been added for | |
1962 | arm*-*-linux*-gnu*, i[3456]86-*-linux*-gnu*, mips*-*-linux*-gnu*, | |
1963 | powerpc*-*-linux*-gnu*, and sh*-*-linux*-gnu*. | |
6da02953 | 1964 | |
e0e9281e JB |
1965 | * GDB now supports C/C++ preprocessor macros. |
1966 | ||
1967 | GDB now expands preprocessor macro invocations in C/C++ expressions, | |
1968 | and provides various commands for showing macro definitions and how | |
1969 | they expand. | |
1970 | ||
dd73b9bb AC |
1971 | The new command `macro expand EXPRESSION' expands any macro |
1972 | invocations in expression, and shows the result. | |
1973 | ||
1974 | The new command `show macro MACRO-NAME' shows the definition of the | |
1975 | macro named MACRO-NAME, and where it was defined. | |
1976 | ||
e0e9281e JB |
1977 | Most compilers don't include information about macros in the debugging |
1978 | information by default. In GCC 3.1, for example, you need to compile | |
1979 | your program with the options `-gdwarf-2 -g3'. If the macro | |
1980 | information is present in the executable, GDB will read it. | |
1981 | ||
2250ee0c CV |
1982 | * Multi-arched targets. |
1983 | ||
6e3ba3b8 JT |
1984 | DEC Alpha (partial) alpha*-*-* |
1985 | DEC VAX (partial) vax-*-* | |
2250ee0c | 1986 | NEC V850 v850-*-* |
6e3ba3b8 | 1987 | National Semiconductor NS32000 (partial) ns32k-*-* |
a1789893 GS |
1988 | Motorola 68000 (partial) m68k-*-* |
1989 | Motorola MCORE mcore-*-* | |
2250ee0c | 1990 | |
cd9bfe15 | 1991 | * New targets. |
e33ce519 | 1992 | |
456f8b9d DB |
1993 | Fujitsu FRV architecture added by Red Hat frv*-*-* |
1994 | ||
e33ce519 | 1995 | |
da8ca43d JT |
1996 | * New native configurations |
1997 | ||
1998 | Alpha NetBSD alpha*-*-netbsd* | |
029923d4 | 1999 | SH NetBSD sh*-*-netbsdelf* |
45888261 | 2000 | MIPS NetBSD mips*-*-netbsd* |
9ce5c36a | 2001 | UltraSPARC NetBSD sparc64-*-netbsd* |
da8ca43d | 2002 | |
cd9bfe15 AC |
2003 | * OBSOLETE configurations and files |
2004 | ||
2005 | Configurations that have been declared obsolete in this release have | |
2006 | been commented out. Unless there is activity to revive these | |
2007 | configurations, the next release of GDB will have their sources | |
2008 | permanently REMOVED. | |
2009 | ||
92eb23c5 | 2010 | Mitsubishi D30V d30v-*-* |
a99a9e1b | 2011 | OS/9000 i[34]86-*-os9k |
1c7cc583 | 2012 | IBM AIX PS/2 i[3456]86-*-aix |
7a3085c1 | 2013 | Fujitsu FR30 fr30-*-elf* |
7fb623f7 | 2014 | Motorola Delta 88000 running Sys V m88k-motorola-sysv or delta88 |
eb4c54a2 | 2015 | Argonaut Risc Chip (ARC) arc-*-* |
d8ee244c MK |
2016 | i386 running Mach 3.0 i[3456]86-*-mach3* |
2017 | i386 running Mach i[3456]86-*-mach* | |
2018 | i386 running OSF/1 i[3456]86-*osf1mk* | |
822e978b AC |
2019 | HP/Apollo 68k Family m68*-apollo*-sysv*, |
2020 | m68*-apollo*-bsd*, | |
2021 | m68*-hp-bsd*, m68*-hp-hpux* | |
4d210288 | 2022 | I960 with MON960 i960-*-coff |
92eb23c5 | 2023 | |
db034ac5 AC |
2024 | * OBSOLETE languages |
2025 | ||
2026 | CHILL, a Pascal like language used by telecommunications companies. | |
2027 | ||
cd9bfe15 AC |
2028 | * REMOVED configurations and files |
2029 | ||
2030 | AMD 29k family via UDI a29k-amd-udi, udi29k | |
2031 | A29K VxWorks a29k-*-vxworks | |
2032 | AMD 29000 embedded, using EBMON a29k-none-none | |
2033 | AMD 29000 embedded with COFF a29k-none-coff | |
2034 | AMD 29000 embedded with a.out a29k-none-aout | |
2035 | ||
2036 | testsuite/gdb.hp/gdb.threads-hp/ directory | |
2037 | ||
20f01a46 DH |
2038 | * New command "set max-user-call-depth <nnn>" |
2039 | ||
2040 | This command allows the user to limit the call depth of user-defined | |
2041 | commands. The default is 1024. | |
2042 | ||
a5941fbf MK |
2043 | * Changes in FreeBSD/i386 native debugging. |
2044 | ||
2045 | Support for the "generate-core-file" has been added. | |
2046 | ||
89743e04 MS |
2047 | * New commands "dump", "append", and "restore". |
2048 | ||
2049 | These commands allow data to be copied from target memory | |
2050 | to a bfd-format or binary file (dump and append), and back | |
2051 | from a file into memory (restore). | |
37057839 | 2052 | |
9fb14e79 JB |
2053 | * Improved "next/step" support on multi-processor Alpha Tru64. |
2054 | ||
2055 | The previous single-step mechanism could cause unpredictable problems, | |
2056 | including the random appearance of SIGSEGV or SIGTRAP signals. The use | |
2057 | of a software single-step mechanism prevents this. | |
2058 | ||
2037aebb AC |
2059 | *** Changes in GDB 5.2.1: |
2060 | ||
2061 | * New targets. | |
2062 | ||
2063 | Atmel AVR avr*-*-* | |
2064 | ||
2065 | * Bug fixes | |
2066 | ||
2067 | gdb/182: gdb/323: gdb/237: On alpha, gdb was reporting: | |
2068 | mdebugread.c:2443: gdb-internal-error: sect_index_data not initialized | |
2069 | Fix, by Joel Brobecker imported from mainline. | |
2070 | ||
2071 | gdb/439: gdb/291: On some ELF object files, gdb was reporting: | |
2072 | dwarf2read.c:1072: gdb-internal-error: sect_index_text not initialize | |
2073 | Fix, by Fred Fish, imported from mainline. | |
2074 | ||
2075 | Dwarf2 .debug_frame & .eh_frame handler improved in many ways. | |
2076 | Surprisingly enough, it works now. | |
2077 | By Michal Ludvig, imported from mainline. | |
2078 | ||
2079 | i386 hardware watchpoint support: | |
2080 | avoid misses on second run for some targets. | |
2081 | By Pierre Muller, imported from mainline. | |
2082 | ||
37057839 | 2083 | *** Changes in GDB 5.2: |
eb7cedd9 | 2084 | |
1a703748 MS |
2085 | * New command "set trust-readonly-sections on[off]". |
2086 | ||
2087 | This command is a hint that tells gdb that read-only sections | |
2088 | really are read-only (ie. that their contents will not change). | |
2089 | In this mode, gdb will go to the object file rather than the | |
2090 | target to read memory from read-only sections (such as ".text"). | |
2091 | This can be a significant performance improvement on some | |
2092 | (notably embedded) targets. | |
2093 | ||
cefd4ef5 MS |
2094 | * New command "generate-core-file" (or "gcore"). |
2095 | ||
55241689 AC |
2096 | This new gdb command allows the user to drop a core file of the child |
2097 | process state at any time. So far it's been implemented only for | |
2098 | GNU/Linux and Solaris, but should be relatively easily ported to other | |
2099 | hosts. Argument is core file name (defaults to core.<pid>). | |
cefd4ef5 | 2100 | |
352ed7b4 MS |
2101 | * New command line option |
2102 | ||
2103 | GDB now accepts --pid or -p followed by a process id. | |
2104 | ||
2105 | * Change in command line behavior -- corefiles vs. process ids. | |
2106 | ||
2107 | There is a subtle behavior in the way in which GDB handles | |
2108 | command line arguments. The first non-flag argument is always | |
2109 | a program to debug, but the second non-flag argument may either | |
2110 | be a corefile or a process id. Previously, GDB would attempt to | |
2111 | open the second argument as a corefile, and if that failed, would | |
2112 | issue a superfluous error message and then attempt to attach it as | |
2113 | a process. Now, if the second argument begins with a non-digit, | |
2114 | it will be treated as a corefile. If it begins with a digit, | |
2115 | GDB will attempt to attach it as a process, and if no such process | |
2116 | is found, will then attempt to open it as a corefile. | |
2117 | ||
fe419ffc RE |
2118 | * Changes in ARM configurations. |
2119 | ||
2120 | Multi-arch support is enabled for all ARM configurations. The ARM/NetBSD | |
2121 | configuration is fully multi-arch. | |
2122 | ||
eb7cedd9 MK |
2123 | * New native configurations |
2124 | ||
fe419ffc | 2125 | ARM NetBSD arm*-*-netbsd* |
eb7cedd9 | 2126 | x86 OpenBSD i[3456]86-*-openbsd* |
55241689 | 2127 | AMD x86-64 running GNU/Linux x86_64-*-linux-* |
768f0842 | 2128 | Sparc64 running FreeBSD sparc64-*-freebsd* |
eb7cedd9 | 2129 | |
c9f63e6b CV |
2130 | * New targets |
2131 | ||
2132 | Sanyo XStormy16 xstormy16-elf | |
2133 | ||
9b4ff276 AC |
2134 | * OBSOLETE configurations and files |
2135 | ||
2136 | Configurations that have been declared obsolete in this release have | |
2137 | been commented out. Unless there is activity to revive these | |
2138 | configurations, the next release of GDB will have their sources | |
2139 | permanently REMOVED. | |
2140 | ||
2141 | AMD 29k family via UDI a29k-amd-udi, udi29k | |
2142 | A29K VxWorks a29k-*-vxworks | |
2143 | AMD 29000 embedded, using EBMON a29k-none-none | |
2144 | AMD 29000 embedded with COFF a29k-none-coff | |
2145 | AMD 29000 embedded with a.out a29k-none-aout | |
2146 | ||
b4ceaee6 | 2147 | testsuite/gdb.hp/gdb.threads-hp/ directory |
9b4ff276 | 2148 | |
e2caac18 AC |
2149 | * REMOVED configurations and files |
2150 | ||
2151 | TI TMS320C80 tic80-*-* | |
7bc65f05 | 2152 | WDC 65816 w65-*-* |
7768dd6c AC |
2153 | PowerPC Solaris powerpcle-*-solaris* |
2154 | PowerPC Windows NT powerpcle-*-cygwin32 | |
2155 | PowerPC Netware powerpc-*-netware* | |
5e734e1f | 2156 | Harris/CXUX m88k m88*-harris-cxux* |
1406caf7 AC |
2157 | Most ns32k hosts and targets ns32k-*-mach3* ns32k-umax-* |
2158 | ns32k-utek-sysv* ns32k-utek-* | |
7e24f0b1 | 2159 | SunOS 4.0.Xi on i386 i[3456]86-*-sunos* |
9b567150 | 2160 | Ultracomputer (29K) running Sym1 a29k-nyu-sym1 a29k-*-kern* |
3680c638 AC |
2161 | Sony NEWS (68K) running NEWSOS 3.x m68*-sony-sysv news |
2162 | ISI Optimum V (3.05) under 4.3bsd. m68*-isi-* | |
a752853e | 2163 | Apple Macintosh (MPW) host and target N/A host, powerpc-*-macos* |
e2caac18 | 2164 | |
c2a727fa TT |
2165 | * Changes to command line processing |
2166 | ||
2167 | The new `--args' feature can be used to specify command-line arguments | |
2168 | for the inferior from gdb's command line. | |
2169 | ||
467d8519 TT |
2170 | * Changes to key bindings |
2171 | ||
2172 | There is a new `operate-and-get-next' function bound to `C-o'. | |
2173 | ||
7072a954 AC |
2174 | *** Changes in GDB 5.1.1 |
2175 | ||
2176 | Fix compile problem on DJGPP. | |
2177 | ||
2178 | Fix a problem with floating-point registers on the i386 being | |
2179 | corrupted. | |
2180 | ||
2181 | Fix to stop GDB crashing on .debug_str debug info. | |
2182 | ||
2183 | Numerous documentation fixes. | |
2184 | ||
2185 | Numerous testsuite fixes. | |
2186 | ||
34f47bc4 | 2187 | *** Changes in GDB 5.1: |
139760b7 MK |
2188 | |
2189 | * New native configurations | |
2190 | ||
2191 | Alpha FreeBSD alpha*-*-freebsd* | |
2192 | x86 FreeBSD 3.x and 4.x i[3456]86*-freebsd[34]* | |
55241689 | 2193 | MIPS GNU/Linux mips*-*-linux* |
e23194cb EZ |
2194 | MIPS SGI Irix 6.x mips*-sgi-irix6* |
2195 | ia64 AIX ia64-*-aix* | |
55241689 | 2196 | s390 and s390x GNU/Linux {s390,s390x}-*-linux* |
139760b7 | 2197 | |
bf64bfd6 AC |
2198 | * New targets |
2199 | ||
def90278 | 2200 | Motorola 68HC11 and 68HC12 m68hc11-elf |
24be5c34 | 2201 | CRIS cris-axis |
55241689 | 2202 | UltraSparc running GNU/Linux sparc64-*-linux* |
def90278 | 2203 | |
17e78a56 | 2204 | * OBSOLETE configurations and files |
bf64bfd6 AC |
2205 | |
2206 | x86 FreeBSD before 2.2 i[3456]86*-freebsd{1,2.[01]}*, | |
9b9c068d | 2207 | Harris/CXUX m88k m88*-harris-cxux* |
bb19ff3b AC |
2208 | Most ns32k hosts and targets ns32k-*-mach3* ns32k-umax-* |
2209 | ns32k-utek-sysv* ns32k-utek-* | |
76f4ea53 AC |
2210 | TI TMS320C80 tic80-*-* |
2211 | WDC 65816 w65-*-* | |
4a1968f4 | 2212 | Ultracomputer (29K) running Sym1 a29k-nyu-sym1 a29k-*-kern* |
1b2b2c16 AC |
2213 | PowerPC Solaris powerpcle-*-solaris* |
2214 | PowerPC Windows NT powerpcle-*-cygwin32 | |
2215 | PowerPC Netware powerpc-*-netware* | |
24f89b68 | 2216 | SunOS 4.0.Xi on i386 i[3456]86-*-sunos* |
514e603d AC |
2217 | Sony NEWS (68K) running NEWSOS 3.x m68*-sony-sysv news |
2218 | ISI Optimum V (3.05) under 4.3bsd. m68*-isi-* | |
d036b4d9 | 2219 | Apple Macintosh (MPW) host N/A |
bf64bfd6 | 2220 | |
17e78a56 AC |
2221 | stuff.c (Program to stuff files into a specially prepared space in kdb) |
2222 | kdb-start.c (Main loop for the standalone kernel debugger) | |
2223 | ||
7fcca85b AC |
2224 | Configurations that have been declared obsolete in this release have |
2225 | been commented out. Unless there is activity to revive these | |
2226 | configurations, the next release of GDB will have their sources | |
2227 | permanently REMOVED. | |
2228 | ||
a196c81c | 2229 | * REMOVED configurations and files |
7fcca85b AC |
2230 | |
2231 | Altos 3068 m68*-altos-* | |
2232 | Convex c1-*-*, c2-*-* | |
2233 | Pyramid pyramid-*-* | |
2234 | ARM RISCix arm-*-* (as host) | |
2235 | Tahoe tahoe-*-* | |
a196c81c | 2236 | ser-ocd.c *-*-* |
bf64bfd6 | 2237 | |
6d6b80e5 | 2238 | * GDB has been converted to ISO C. |
e23194cb | 2239 | |
6d6b80e5 | 2240 | GDB's source code has been converted to ISO C. In particular, the |
e23194cb EZ |
2241 | sources are fully protoized, and rely on standard headers being |
2242 | present. | |
2243 | ||
bf64bfd6 AC |
2244 | * Other news: |
2245 | ||
e23194cb EZ |
2246 | * "info symbol" works on platforms which use COFF, ECOFF, XCOFF, and NLM. |
2247 | ||
2248 | * The MI enabled by default. | |
2249 | ||
2250 | The new machine oriented interface (MI) introduced in GDB 5.0 has been | |
2251 | revised and enabled by default. Packages which use GDB as a debugging | |
2252 | engine behind a UI or another front end are encouraged to switch to | |
2253 | using the GDB/MI interface, instead of the old annotations interface | |
2254 | which is now deprecated. | |
2255 | ||
2256 | * Support for debugging Pascal programs. | |
2257 | ||
2258 | GDB now includes support for debugging Pascal programs. The following | |
2259 | main features are supported: | |
2260 | ||
2261 | - Pascal-specific data types such as sets; | |
2262 | ||
2263 | - automatic recognition of Pascal sources based on file-name | |
2264 | extension; | |
2265 | ||
2266 | - Pascal-style display of data types, variables, and functions; | |
2267 | ||
2268 | - a Pascal expression parser. | |
2269 | ||
2270 | However, some important features are not yet supported. | |
2271 | ||
2272 | - Pascal string operations are not supported at all; | |
2273 | ||
2274 | - there are some problems with boolean types; | |
2275 | ||
2276 | - Pascal type hexadecimal constants are not supported | |
2277 | because they conflict with the internal variables format; | |
2278 | ||
2279 | - support for Pascal objects and classes is not full yet; | |
2280 | ||
2281 | - unlike Pascal, GDB is case-sensitive for symbol names. | |
2282 | ||
2283 | * Changes in completion. | |
2284 | ||
2285 | Commands such as `shell', `run' and `set args', which pass arguments | |
2286 | to inferior programs, now complete on file names, similar to what | |
2287 | users expect at the shell prompt. | |
2288 | ||
2289 | Commands which accept locations, such as `disassemble', `print', | |
2290 | `breakpoint', `until', etc. now complete on filenames as well as | |
2291 | program symbols. Thus, if you type "break foob TAB", and the source | |
2292 | files linked into the programs include `foobar.c', that file name will | |
2293 | be one of the candidates for completion. However, file names are not | |
2294 | considered for completion after you typed a colon that delimits a file | |
2295 | name from a name of a function in that file, as in "break foo.c:bar". | |
2296 | ||
2297 | `set demangle-style' completes on available demangling styles. | |
2298 | ||
2299 | * New platform-independent commands: | |
2300 | ||
2301 | It is now possible to define a post-hook for a command as well as a | |
2302 | hook that runs before the command. For more details, see the | |
2303 | documentation of `hookpost' in the GDB manual. | |
2304 | ||
2305 | * Changes in GNU/Linux native debugging. | |
2306 | ||
d7275149 MK |
2307 | Support for debugging multi-threaded programs has been completely |
2308 | revised for all platforms except m68k and sparc. You can now debug as | |
2309 | many threads as your system allows you to have. | |
2310 | ||
e23194cb EZ |
2311 | Attach/detach is supported for multi-threaded programs. |
2312 | ||
d7275149 MK |
2313 | Support for SSE registers was added for x86. This doesn't work for |
2314 | multi-threaded programs though. | |
e23194cb EZ |
2315 | |
2316 | * Changes in MIPS configurations. | |
bf64bfd6 AC |
2317 | |
2318 | Multi-arch support is enabled for all MIPS configurations. | |
2319 | ||
e23194cb EZ |
2320 | GDB can now be built as native debugger on SGI Irix 6.x systems for |
2321 | debugging n32 executables. (Debugging 64-bit executables is not yet | |
2322 | supported.) | |
2323 | ||
2324 | * Unified support for hardware watchpoints in all x86 configurations. | |
2325 | ||
2326 | Most (if not all) native x86 configurations support hardware-assisted | |
2327 | breakpoints and watchpoints in a unified manner. This support | |
2328 | implements debug register sharing between watchpoints, which allows to | |
2329 | put a virtually infinite number of watchpoints on the same address, | |
2330 | and also supports watching regions up to 16 bytes with several debug | |
2331 | registers. | |
2332 | ||
2333 | The new maintenance command `maintenance show-debug-regs' toggles | |
2334 | debugging print-outs in functions that insert, remove, and test | |
2335 | watchpoints and hardware breakpoints. | |
2336 | ||
2337 | * Changes in the DJGPP native configuration. | |
2338 | ||
2339 | New command ``info dos sysinfo'' displays assorted information about | |
2340 | the CPU, OS, memory, and DPMI server. | |
2341 | ||
2342 | New commands ``info dos gdt'', ``info dos ldt'', and ``info dos idt'' | |
2343 | display information about segment descriptors stored in GDT, LDT, and | |
2344 | IDT. | |
2345 | ||
2346 | New commands ``info dos pde'' and ``info dos pte'' display entries | |
2347 | from Page Directory and Page Tables (for now works with CWSDPMI only). | |
2348 | New command ``info dos address-pte'' displays the Page Table entry for | |
2349 | a given linear address. | |
2350 | ||
2351 | GDB can now pass command lines longer than 126 characters to the | |
2352 | program being debugged (requires an update to the libdbg.a library | |
2353 | which is part of the DJGPP development kit). | |
2354 | ||
2355 | DWARF2 debug info is now supported. | |
2356 | ||
6c56c069 EZ |
2357 | It is now possible to `step' and `next' through calls to `longjmp'. |
2358 | ||
e23194cb EZ |
2359 | * Changes in documentation. |
2360 | ||
2361 | All GDB documentation was converted to GFDL, the GNU Free | |
2362 | Documentation License. | |
2363 | ||
2364 | Tracepoints-related commands are now fully documented in the GDB | |
2365 | manual. | |
2366 | ||
2367 | TUI, the Text-mode User Interface, is now documented in the manual. | |
2368 | ||
2369 | Tracepoints-related commands are now fully documented in the GDB | |
2370 | manual. | |
2371 | ||
2372 | The "GDB Internals" manual now has an index. It also includes | |
2373 | documentation of `ui_out' functions, GDB coding standards, x86 | |
2374 | hardware watchpoints, and memory region attributes. | |
2375 | ||
5d6640b1 AC |
2376 | * GDB's version number moved to ``version.in'' |
2377 | ||
2378 | The Makefile variable VERSION has been replaced by the file | |
2379 | ``version.in''. People creating GDB distributions should update the | |
2380 | contents of this file. | |
2381 | ||
1a1d8446 AC |
2382 | * gdba.el deleted |
2383 | ||
2384 | GUD support is now a standard part of the EMACS distribution. | |
139760b7 | 2385 | |
9debab2f | 2386 | *** Changes in GDB 5.0: |
7a292a7a | 2387 | |
c63ce875 EZ |
2388 | * Improved support for debugging FP programs on x86 targets |
2389 | ||
2390 | Unified and much-improved support for debugging floating-point | |
2391 | programs on all x86 targets. In particular, ``info float'' now | |
2392 | displays the FP registers in the same format on all x86 targets, with | |
2393 | greater level of detail. | |
2394 | ||
2395 | * Improvements and bugfixes in hardware-assisted watchpoints | |
2396 | ||
2397 | It is now possible to watch array elements, struct members, and | |
2398 | bitfields with hardware-assisted watchpoints. Data-read watchpoints | |
2399 | on x86 targets no longer erroneously trigger when the address is | |
2400 | written. | |
2401 | ||
2402 | * Improvements in the native DJGPP version of GDB | |
2403 | ||
2404 | The distribution now includes all the scripts and auxiliary files | |
2405 | necessary to build the native DJGPP version on MS-DOS/MS-Windows | |
2406 | machines ``out of the box''. | |
2407 | ||
2408 | The DJGPP version can now debug programs that use signals. It is | |
2409 | possible to catch signals that happened in the debuggee, deliver | |
2410 | signals to it, interrupt it with Ctrl-C, etc. (Previously, a signal | |
2411 | would kill the program being debugged.) Programs that hook hardware | |
2412 | interrupts (keyboard, timer, etc.) can also be debugged. | |
2413 | ||
2414 | It is now possible to debug DJGPP programs that redirect their | |
2415 | standard handles or switch them to raw (as opposed to cooked) mode, or | |
2416 | even close them. The command ``run < foo > bar'' works as expected, | |
2417 | and ``info terminal'' reports useful information about the debuggee's | |
2418 | terminal, including raw/cooked mode, redirection, etc. | |
2419 | ||
2420 | The DJGPP version now uses termios functions for console I/O, which | |
2421 | enables debugging graphics programs. Interrupting GDB with Ctrl-C | |
2422 | also works. | |
2423 | ||
2424 | DOS-style file names with drive letters are now fully supported by | |
2425 | GDB. | |
2426 | ||
2427 | It is now possible to debug DJGPP programs that switch their working | |
2428 | directory. It is also possible to rerun the debuggee any number of | |
2429 | times without restarting GDB; thus, you can use the same setup, | |
2430 | breakpoints, etc. for many debugging sessions. | |
2431 | ||
ed9a39eb JM |
2432 | * New native configurations |
2433 | ||
2434 | ARM GNU/Linux arm*-*-linux* | |
afc05dd4 | 2435 | PowerPC GNU/Linux powerpc-*-linux* |
ed9a39eb | 2436 | |
7a292a7a SS |
2437 | * New targets |
2438 | ||
96baa820 | 2439 | Motorola MCore mcore-*-* |
adf40b2e JM |
2440 | x86 VxWorks i[3456]86-*-vxworks* |
2441 | PowerPC VxWorks powerpc-*-vxworks* | |
7a292a7a SS |
2442 | TI TMS320C80 tic80-*-* |
2443 | ||
085dd6e6 JM |
2444 | * OBSOLETE configurations |
2445 | ||
2446 | Altos 3068 m68*-altos-* | |
2447 | Convex c1-*-*, c2-*-* | |
9846de1b | 2448 | Pyramid pyramid-*-* |
ed9a39eb | 2449 | ARM RISCix arm-*-* (as host) |
104c1213 | 2450 | Tahoe tahoe-*-* |
7a292a7a | 2451 | |
9debab2f AC |
2452 | Configurations that have been declared obsolete will be commented out, |
2453 | but the code will be left in place. If there is no activity to revive | |
2454 | these configurations before the next release of GDB, the sources will | |
2455 | be permanently REMOVED. | |
2456 | ||
5330533d SS |
2457 | * Gould support removed |
2458 | ||
2459 | Support for the Gould PowerNode and NP1 has been removed. | |
2460 | ||
bc9e5bbf AC |
2461 | * New features for SVR4 |
2462 | ||
2463 | On SVR4 native platforms (such as Solaris), if you attach to a process | |
2464 | without first loading a symbol file, GDB will now attempt to locate and | |
2465 | load symbols from the running process's executable file. | |
2466 | ||
2467 | * Many C++ enhancements | |
2468 | ||
2469 | C++ support has been greatly improved. Overload resolution now works properly | |
2470 | in almost all cases. RTTI support is on the way. | |
2471 | ||
adf40b2e JM |
2472 | * Remote targets can connect to a sub-program |
2473 | ||
2474 | A popen(3) style serial-device has been added. This device starts a | |
2475 | sub-process (such as a stand-alone simulator) and then communicates | |
2476 | with that. The sub-program to run is specified using the syntax | |
2477 | ``|<program> <args>'' vis: | |
2478 | ||
2479 | (gdb) set remotedebug 1 | |
2480 | (gdb) target extended-remote |mn10300-elf-sim program-args | |
2481 | ||
43e526b9 JM |
2482 | * MIPS 64 remote protocol |
2483 | ||
2484 | A long standing bug in the mips64 remote protocol where by GDB | |
2485 | expected certain 32 bit registers (ex SR) to be transfered as 32 | |
2486 | instead of 64 bits has been fixed. | |
2487 | ||
2488 | The command ``set remote-mips64-transfers-32bit-regs on'' has been | |
2489 | added to provide backward compatibility with older versions of GDB. | |
2490 | ||
96baa820 JM |
2491 | * ``set remotebinarydownload'' replaced by ``set remote X-packet'' |
2492 | ||
2493 | The command ``set remotebinarydownload'' command has been replaced by | |
2494 | ``set remote X-packet''. Other commands in ``set remote'' family | |
2495 | include ``set remote P-packet''. | |
2496 | ||
11cf8741 JM |
2497 | * Breakpoint commands accept ranges. |
2498 | ||
2499 | The breakpoint commands ``enable'', ``disable'', and ``delete'' now | |
2500 | accept a range of breakpoints, e.g. ``5-7''. The tracepoint command | |
2501 | ``tracepoint passcount'' also accepts a range of tracepoints. | |
2502 | ||
7876dd43 DB |
2503 | * ``apropos'' command added. |
2504 | ||
2505 | The ``apropos'' command searches through command names and | |
2506 | documentation strings, printing out matches, making it much easier to | |
2507 | try to find a command that does what you are looking for. | |
2508 | ||
bc9e5bbf AC |
2509 | * New MI interface |
2510 | ||
2511 | A new machine oriented interface (MI) has been added to GDB. This | |
2512 | interface is designed for debug environments running GDB as a separate | |
7162c0ca EZ |
2513 | process. This is part of the long term libGDB project. See the |
2514 | "GDB/MI" chapter of the GDB manual for further information. It can be | |
2515 | enabled by configuring with: | |
bc9e5bbf AC |
2516 | |
2517 | .../configure --enable-gdbmi | |
2518 | ||
c906108c SS |
2519 | *** Changes in GDB-4.18: |
2520 | ||
2521 | * New native configurations | |
2522 | ||
2523 | HP-UX 10.20 hppa*-*-hpux10.20 | |
2524 | HP-UX 11.x hppa*-*-hpux11.0* | |
55241689 | 2525 | M68K GNU/Linux m68*-*-linux* |
c906108c SS |
2526 | |
2527 | * New targets | |
2528 | ||
2529 | Fujitsu FR30 fr30-*-elf* | |
2530 | Intel StrongARM strongarm-*-* | |
2531 | Mitsubishi D30V d30v-*-* | |
2532 | ||
2533 | * OBSOLETE configurations | |
2534 | ||
2535 | Gould PowerNode, NP1 np1-*-*, pn-*-* | |
2536 | ||
2537 | Configurations that have been declared obsolete will be commented out, | |
2538 | but the code will be left in place. If there is no activity to revive | |
2539 | these configurations before the next release of GDB, the sources will | |
2540 | be permanently REMOVED. | |
2541 | ||
2542 | * ANSI/ISO C | |
2543 | ||
2544 | As a compatibility experiment, GDB's source files buildsym.h and | |
2545 | buildsym.c have been converted to pure standard C, no longer | |
2546 | containing any K&R compatibility code. We believe that all systems in | |
2547 | use today either come with a standard C compiler, or have a GCC port | |
2548 | available. If this is not true, please report the affected | |
2549 | configuration to [email protected] immediately. See the README file for | |
2550 | information about getting a standard C compiler if you don't have one | |
2551 | already. | |
2552 | ||
2553 | * Readline 2.2 | |
2554 | ||
2555 | GDB now uses readline 2.2. | |
2556 | ||
2557 | * set extension-language | |
2558 | ||
2559 | You can now control the mapping between filename extensions and source | |
2560 | languages by using the `set extension-language' command. For instance, | |
2561 | you can ask GDB to treat .c files as C++ by saying | |
2562 | set extension-language .c c++ | |
2563 | The command `info extensions' lists all of the recognized extensions | |
2564 | and their associated languages. | |
2565 | ||
2566 | * Setting processor type for PowerPC and RS/6000 | |
2567 | ||
2568 | When GDB is configured for a powerpc*-*-* or an rs6000*-*-* target, | |
2569 | you can use the `set processor' command to specify what variant of the | |
2570 | PowerPC family you are debugging. The command | |
2571 | ||
2572 | set processor NAME | |
2573 | ||
2574 | sets the PowerPC/RS6000 variant to NAME. GDB knows about the | |
2575 | following PowerPC and RS6000 variants: | |
2576 | ||
2577 | ppc-uisa PowerPC UISA - a PPC processor as viewed by user-level code | |
2578 | rs6000 IBM RS6000 ("POWER") architecture, user-level view | |
2579 | 403 IBM PowerPC 403 | |
2580 | 403GC IBM PowerPC 403GC | |
2581 | 505 Motorola PowerPC 505 | |
2582 | 860 Motorola PowerPC 860 or 850 | |
2583 | 601 Motorola PowerPC 601 | |
2584 | 602 Motorola PowerPC 602 | |
2585 | 603 Motorola/IBM PowerPC 603 or 603e | |
2586 | 604 Motorola PowerPC 604 or 604e | |
2587 | 750 Motorola/IBM PowerPC 750 or 750 | |
2588 | ||
2589 | At the moment, this command just tells GDB what to name the | |
2590 | special-purpose processor registers. Since almost all the affected | |
2591 | registers are inaccessible to user-level programs, this command is | |
2592 | only useful for remote debugging in its present form. | |
2593 | ||
2594 | * HP-UX support | |
2595 | ||
2596 | Thanks to a major code donation from Hewlett-Packard, GDB now has much | |
2597 | more extensive support for HP-UX. Added features include shared | |
2598 | library support, kernel threads and hardware watchpoints for 11.00, | |
2599 | support for HP's ANSI C and C++ compilers, and a compatibility mode | |
2600 | for xdb and dbx commands. | |
2601 | ||
2602 | * Catchpoints | |
2603 | ||
2604 | HP's donation includes the new concept of catchpoints, which is a | |
2605 | generalization of the old catch command. On HP-UX, it is now possible | |
2606 | to catch exec, fork, and vfork, as well as library loading. | |
2607 | ||
2608 | This means that the existing catch command has changed; its first | |
2609 | argument now specifies the type of catch to be set up. See the | |
2610 | output of "help catch" for a list of catchpoint types. | |
2611 | ||
2612 | * Debugging across forks | |
2613 | ||
2614 | On HP-UX, you can choose which process to debug when a fork() happens | |
2615 | in the inferior. | |
2616 | ||
2617 | * TUI | |
2618 | ||
2619 | HP has donated a curses-based terminal user interface (TUI). To get | |
2620 | it, build with --enable-tui. Although this can be enabled for any | |
2621 | configuration, at present it only works for native HP debugging. | |
2622 | ||
2623 | * GDB remote protocol additions | |
2624 | ||
2625 | A new protocol packet 'X' that writes binary data is now available. | |
2626 | Default behavior is to try 'X', then drop back to 'M' if the stub | |
2627 | fails to respond. The settable variable `remotebinarydownload' | |
2628 | allows explicit control over the use of 'X'. | |
2629 | ||
2630 | For 64-bit targets, the memory packets ('M' and 'm') can now contain a | |
2631 | full 64-bit address. The command | |
2632 | ||
2633 | set remoteaddresssize 32 | |
2634 | ||
2635 | can be used to revert to the old behaviour. For existing remote stubs | |
2636 | the change should not be noticed, as the additional address information | |
2637 | will be discarded. | |
2638 | ||
2639 | In order to assist in debugging stubs, you may use the maintenance | |
2640 | command `packet' to send any text string to the stub. For instance, | |
2641 | ||
2642 | maint packet heythere | |
2643 | ||
2644 | sends the packet "$heythere#<checksum>". Note that it is very easy to | |
2645 | disrupt a debugging session by sending the wrong packet at the wrong | |
2646 | time. | |
2647 | ||
2648 | The compare-sections command allows you to compare section data on the | |
2649 | target to what is in the executable file without uploading or | |
2650 | downloading, by comparing CRC checksums. | |
2651 | ||
2652 | * Tracing can collect general expressions | |
2653 | ||
2654 | You may now collect general expressions at tracepoints. This requires | |
2655 | further additions to the target-side stub; see tracepoint.c and | |
2656 | doc/agentexpr.texi for further details. | |
2657 | ||
2658 | * mask-address variable for Mips | |
2659 | ||
2660 | For Mips targets, you may control the zeroing of the upper 32 bits of | |
2661 | a 64-bit address by entering `set mask-address on'. This is mainly | |
2662 | of interest to users of embedded R4xxx and R5xxx processors. | |
2663 | ||
2664 | * Higher serial baud rates | |
2665 | ||
2666 | GDB's serial code now allows you to specify baud rates 57600, 115200, | |
2667 | 230400, and 460800 baud. (Note that your host system may not be able | |
2668 | to achieve all of these rates.) | |
2669 | ||
2670 | * i960 simulator | |
2671 | ||
2672 | The i960 configuration now includes an initial implementation of a | |
2673 | builtin simulator, contributed by Jim Wilson. | |
2674 | ||
2675 | ||
2676 | *** Changes in GDB-4.17: | |
2677 | ||
2678 | * New native configurations | |
2679 | ||
2680 | Alpha GNU/Linux alpha*-*-linux* | |
2681 | Unixware 2.x i[3456]86-unixware2* | |
2682 | Irix 6.x mips*-sgi-irix6* | |
2683 | PowerPC GNU/Linux powerpc-*-linux* | |
2684 | PowerPC Solaris powerpcle-*-solaris* | |
2685 | Sparc GNU/Linux sparc-*-linux* | |
2686 | Motorola sysV68 R3V7.1 m68k-motorola-sysv | |
2687 | ||
2688 | * New targets | |
2689 | ||
2690 | Argonaut Risc Chip (ARC) arc-*-* | |
2691 | Hitachi H8/300S h8300*-*-* | |
2692 | Matsushita MN10200 w/simulator mn10200-*-* | |
2693 | Matsushita MN10300 w/simulator mn10300-*-* | |
2694 | MIPS NEC VR4100 mips64*vr4100*{,el}-*-elf* | |
2695 | MIPS NEC VR5000 mips64*vr5000*{,el}-*-elf* | |
2696 | MIPS Toshiba TX39 mips64*tx39*{,el}-*-elf* | |
2697 | Mitsubishi D10V w/simulator d10v-*-* | |
2698 | Mitsubishi M32R/D w/simulator m32r-*-elf* | |
2699 | Tsqware Sparclet sparclet-*-* | |
2700 | NEC V850 w/simulator v850-*-* | |
2701 | ||
2702 | * New debugging protocols | |
2703 | ||
2704 | ARM with RDI protocol arm*-*-* | |
2705 | M68K with dBUG monitor m68*-*-{aout,coff,elf} | |
2706 | DDB and LSI variants of PMON protocol mips*-*-* | |
2707 | PowerPC with DINK32 monitor powerpc{,le}-*-eabi | |
2708 | PowerPC with SDS protocol powerpc{,le}-*-eabi | |
2709 | Macraigor OCD (Wiggler) devices powerpc{,le}-*-eabi | |
2710 | ||
2711 | * DWARF 2 | |
2712 | ||
2713 | All configurations can now understand and use the DWARF 2 debugging | |
2714 | format. The choice is automatic, if the symbol file contains DWARF 2 | |
2715 | information. | |
2716 | ||
2717 | * Java frontend | |
2718 | ||
2719 | GDB now includes basic Java language support. This support is | |
2720 | only useful with Java compilers that produce native machine code. | |
2721 | ||
2722 | * solib-absolute-prefix and solib-search-path | |
2723 | ||
2724 | For SunOS and SVR4 shared libraries, you may now set the prefix for | |
2725 | loading absolute shared library symbol files, and the search path for | |
2726 | locating non-absolute shared library symbol files. | |
2727 | ||
2728 | * Live range splitting | |
2729 | ||
2730 | GDB can now effectively debug code for which GCC has performed live | |
2731 | range splitting as part of its optimization. See gdb/doc/LRS for | |
2732 | more details on the expected format of the stabs information. | |
2733 | ||
2734 | * Hurd support | |
2735 | ||
2736 | GDB's support for the GNU Hurd, including thread debugging, has been | |
2737 | updated to work with current versions of the Hurd. | |
2738 | ||
2739 | * ARM Thumb support | |
2740 | ||
2741 | GDB's ARM target configuration now handles the ARM7T (Thumb) 16-bit | |
2742 | instruction set. ARM GDB automatically detects when Thumb | |
2743 | instructions are in use, and adjusts disassembly and backtracing | |
2744 | accordingly. | |
2745 | ||
2746 | * MIPS16 support | |
2747 | ||
2748 | GDB's MIPS target configurations now handle the MIP16 16-bit | |
2749 | instruction set. | |
2750 | ||
2751 | * Overlay support | |
2752 | ||
2753 | GDB now includes support for overlays; if an executable has been | |
2754 | linked such that multiple sections are based at the same address, GDB | |
2755 | will decide which section to use for symbolic info. You can choose to | |
2756 | control the decision manually, using overlay commands, or implement | |
2757 | additional target-side support and use "overlay load-target" to bring | |
2758 | in the overlay mapping. Do "help overlay" for more detail. | |
2759 | ||
2760 | * info symbol | |
2761 | ||
2762 | The command "info symbol <address>" displays information about | |
2763 | the symbol at the specified address. | |
2764 | ||
2765 | * Trace support | |
2766 | ||
2767 | The standard remote protocol now includes an extension that allows | |
2768 | asynchronous collection and display of trace data. This requires | |
2769 | extensive support in the target-side debugging stub. Tracing mode | |
2770 | includes a new interaction mode in GDB and new commands: see the | |
2771 | file tracepoint.c for more details. | |
2772 | ||
2773 | * MIPS simulator | |
2774 | ||
2775 | Configurations for embedded MIPS now include a simulator contributed | |
2776 | by Cygnus Solutions. The simulator supports the instruction sets | |
2777 | of most MIPS variants. | |
2778 | ||
2779 | * Sparc simulator | |
2780 | ||
2781 | Sparc configurations may now include the ERC32 simulator contributed | |
2782 | by the European Space Agency. The simulator is not built into | |
2783 | Sparc targets by default; configure with --enable-sim to include it. | |
2784 | ||
2785 | * set architecture | |
2786 | ||
2787 | For target configurations that may include multiple variants of a | |
2788 | basic architecture (such as MIPS and SH), you may now set the | |
2789 | architecture explicitly. "set arch" sets, "info arch" lists | |
2790 | the possible architectures. | |
2791 | ||
2792 | *** Changes in GDB-4.16: | |
2793 | ||
2794 | * New native configurations | |
2795 | ||
2796 | Windows 95, x86 Windows NT i[345]86-*-cygwin32 | |
2797 | M68K NetBSD m68k-*-netbsd* | |
2798 | PowerPC AIX 4.x powerpc-*-aix* | |
2799 | PowerPC MacOS powerpc-*-macos* | |
2800 | PowerPC Windows NT powerpcle-*-cygwin32 | |
2801 | RS/6000 AIX 4.x rs6000-*-aix4* | |
2802 | ||
2803 | * New targets | |
2804 | ||
2805 | ARM with RDP protocol arm-*-* | |
2806 | I960 with MON960 i960-*-coff | |
2807 | MIPS VxWorks mips*-*-vxworks* | |
2808 | MIPS VR4300 with PMON mips64*vr4300{,el}-*-elf* | |
2809 | PowerPC with PPCBUG monitor powerpc{,le}-*-eabi* | |
2810 | Hitachi SH3 sh-*-* | |
2811 | Matra Sparclet sparclet-*-* | |
2812 | ||
2813 | * PowerPC simulator | |
2814 | ||
2815 | The powerpc-eabi configuration now includes the PSIM simulator, | |
2816 | contributed by Andrew Cagney, with assistance from Mike Meissner. | |
2817 | PSIM is a very elaborate model of the PowerPC, including not only | |
2818 | basic instruction set execution, but also details of execution unit | |
2819 | performance and I/O hardware. See sim/ppc/README for more details. | |
2820 | ||
2821 | * Solaris 2.5 | |
2822 | ||
2823 | GDB now works with Solaris 2.5. | |
2824 | ||
2825 | * Windows 95/NT native | |
2826 | ||
2827 | GDB will now work as a native debugger on Windows 95 and Windows NT. | |
2828 | To build it from source, you must use the "gnu-win32" environment, | |
2829 | which uses a DLL to emulate enough of Unix to run the GNU tools. | |
2830 | Further information, binaries, and sources are available at | |
2831 | ftp.cygnus.com, under pub/gnu-win32. | |
2832 | ||
2833 | * dont-repeat command | |
2834 | ||
2835 | If a user-defined command includes the command `dont-repeat', then the | |
2836 | command will not be repeated if the user just types return. This is | |
2837 | useful if the command is time-consuming to run, so that accidental | |
2838 | extra keystrokes don't run the same command many times. | |
2839 | ||
2840 | * Send break instead of ^C | |
2841 | ||
2842 | The standard remote protocol now includes an option to send a break | |
2843 | rather than a ^C to the target in order to interrupt it. By default, | |
2844 | GDB will send ^C; to send a break, set the variable `remotebreak' to 1. | |
2845 | ||
2846 | * Remote protocol timeout | |
2847 | ||
2848 | The standard remote protocol includes a new variable `remotetimeout' | |
2849 | that allows you to set the number of seconds before GDB gives up trying | |
2850 | to read from the target. The default value is 2. | |
2851 | ||
2852 | * Automatic tracking of dynamic object loading (HPUX and Solaris only) | |
2853 | ||
2854 | By default GDB will automatically keep track of objects as they are | |
2855 | loaded and unloaded by the dynamic linker. By using the command `set | |
2856 | stop-on-solib-events 1' you can arrange for GDB to stop the inferior | |
2857 | when shared library events occur, thus allowing you to set breakpoints | |
2858 | in shared libraries which are explicitly loaded by the inferior. | |
2859 | ||
2860 | Note this feature does not work on hpux8. On hpux9 you must link | |
2861 | /usr/lib/end.o into your program. This feature should work | |
2862 | automatically on hpux10. | |
2863 | ||
2864 | * Irix 5.x hardware watchpoint support | |
2865 | ||
2866 | Irix 5 configurations now support the use of hardware watchpoints. | |
2867 | ||
2868 | * Mips protocol "SYN garbage limit" | |
2869 | ||
2870 | When debugging a Mips target using the `target mips' protocol, you | |
2871 | may set the number of characters that GDB will ignore by setting | |
2872 | the `syn-garbage-limit'. A value of -1 means that GDB will ignore | |
2873 | every character. The default value is 1050. | |
2874 | ||
2875 | * Recording and replaying remote debug sessions | |
2876 | ||
2877 | If you set `remotelogfile' to the name of a file, gdb will write to it | |
2878 | a recording of a remote debug session. This recording may then be | |
2879 | replayed back to gdb using "gdbreplay". See gdbserver/README for | |
2880 | details. This is useful when you have a problem with GDB while doing | |
2881 | remote debugging; you can make a recording of the session and send it | |
2882 | to someone else, who can then recreate the problem. | |
2883 | ||
2884 | * Speedups for remote debugging | |
2885 | ||
2886 | GDB includes speedups for downloading and stepping MIPS systems using | |
2887 | the IDT monitor, fast downloads to the Hitachi SH E7000 emulator, | |
2888 | and more efficient S-record downloading. | |
2889 | ||
2890 | * Memory use reductions and statistics collection | |
2891 | ||
2892 | GDB now uses less memory and reports statistics about memory usage. | |
2893 | Try the `maint print statistics' command, for example. | |
2894 | ||
2895 | *** Changes in GDB-4.15: | |
2896 | ||
2897 | * Psymtabs for XCOFF | |
2898 | ||
2899 | The symbol reader for AIX GDB now uses partial symbol tables. This | |
2900 | can greatly improve startup time, especially for large executables. | |
2901 | ||
2902 | * Remote targets use caching | |
2903 | ||
2904 | Remote targets now use a data cache to speed up communication with the | |
2905 | remote side. The data cache could lead to incorrect results because | |
2906 | it doesn't know about volatile variables, thus making it impossible to | |
2907 | debug targets which use memory mapped I/O devices. `set remotecache | |
2908 | off' turns the the data cache off. | |
2909 | ||
2910 | * Remote targets may have threads | |
2911 | ||
2912 | The standard remote protocol now includes support for multiple threads | |
2913 | in the target system, using new protocol commands 'H' and 'T'. See | |
2914 | gdb/remote.c for details. | |
2915 | ||
2916 | * NetROM support | |
2917 | ||
2918 | If GDB is configured with `--enable-netrom', then it will include | |
2919 | support for the NetROM ROM emulator from XLNT Designs. The NetROM | |
2920 | acts as though it is a bank of ROM on the target board, but you can | |
2921 | write into it over the network. GDB's support consists only of | |
2922 | support for fast loading into the emulated ROM; to debug, you must use | |
2923 | another protocol, such as standard remote protocol. The usual | |
2924 | sequence is something like | |
2925 | ||
2926 | target nrom <netrom-hostname> | |
2927 | load <prog> | |
2928 | target remote <netrom-hostname>:1235 | |
2929 | ||
2930 | * Macintosh host | |
2931 | ||
2932 | GDB now includes support for the Apple Macintosh, as a host only. It | |
2933 | may be run as either an MPW tool or as a standalone application, and | |
2934 | it can debug through the serial port. All the usual GDB commands are | |
2935 | available, but to the target command, you must supply "serial" as the | |
2936 | device type instead of "/dev/ttyXX". See mpw-README in the main | |
2937 | directory for more information on how to build. The MPW configuration | |
2938 | scripts */mpw-config.in support only a few targets, and only the | |
2939 | mips-idt-ecoff target has been tested. | |
2940 | ||
2941 | * Autoconf | |
2942 | ||
2943 | GDB configuration now uses autoconf. This is not user-visible, | |
2944 | but does simplify configuration and building. | |
2945 | ||
2946 | * hpux10 | |
2947 | ||
2948 | GDB now supports hpux10. | |
2949 | ||
2950 | *** Changes in GDB-4.14: | |
2951 | ||
2952 | * New native configurations | |
2953 | ||
2954 | x86 FreeBSD i[345]86-*-freebsd | |
2955 | x86 NetBSD i[345]86-*-netbsd | |
2956 | NS32k NetBSD ns32k-*-netbsd | |
2957 | Sparc NetBSD sparc-*-netbsd | |
2958 | ||
2959 | * New targets | |
2960 | ||
2961 | A29K VxWorks a29k-*-vxworks | |
2962 | HP PA PRO embedded (WinBond W89K & Oki OP50N) hppa*-*-pro* | |
2963 | CPU32 EST-300 emulator m68*-*-est* | |
2964 | PowerPC ELF powerpc-*-elf | |
2965 | WDC 65816 w65-*-* | |
2966 | ||
2967 | * Alpha OSF/1 support for procfs | |
2968 | ||
2969 | GDB now supports procfs under OSF/1-2.x and higher, which makes it | |
2970 | possible to attach to running processes. As the mounting of the /proc | |
2971 | filesystem is optional on the Alpha, GDB automatically determines | |
2972 | the availability of /proc during startup. This can lead to problems | |
2973 | if /proc is unmounted after GDB has been started. | |
2974 | ||
2975 | * Arguments to user-defined commands | |
2976 | ||
2977 | User commands may accept up to 10 arguments separated by whitespace. | |
2978 | Arguments are accessed within the user command via $arg0..$arg9. A | |
2979 | trivial example: | |
2980 | define adder | |
2981 | print $arg0 + $arg1 + $arg2 | |
2982 | ||
2983 | To execute the command use: | |
2984 | adder 1 2 3 | |
2985 | ||
2986 | Defines the command "adder" which prints the sum of its three arguments. | |
2987 | Note the arguments are text substitutions, so they may reference variables, | |
2988 | use complex expressions, or even perform inferior function calls. | |
2989 | ||
2990 | * New `if' and `while' commands | |
2991 | ||
2992 | This makes it possible to write more sophisticated user-defined | |
2993 | commands. Both commands take a single argument, which is the | |
2994 | expression to evaluate, and must be followed by the commands to | |
2995 | execute, one per line, if the expression is nonzero, the list being | |
2996 | terminated by the word `end'. The `if' command list may include an | |
2997 | `else' word, which causes the following commands to be executed only | |
2998 | if the expression is zero. | |
2999 | ||
3000 | * Fortran source language mode | |
3001 | ||
3002 | GDB now includes partial support for Fortran 77. It will recognize | |
3003 | Fortran programs and can evaluate a subset of Fortran expressions, but | |
3004 | variables and functions may not be handled correctly. GDB will work | |
3005 | with G77, but does not yet know much about symbols emitted by other | |
3006 | Fortran compilers. | |
3007 | ||
3008 | * Better HPUX support | |
3009 | ||
3010 | Most debugging facilities now work on dynamic executables for HPPAs | |
3011 | running hpux9 or later. You can attach to running dynamically linked | |
3012 | processes, but by default the dynamic libraries will be read-only, so | |
3013 | for instance you won't be able to put breakpoints in them. To change | |
3014 | that behavior do the following before running the program: | |
3015 | ||
3016 | adb -w a.out | |
3017 | __dld_flags?W 0x5 | |
3018 | control-d | |
3019 | ||
3020 | This will cause the libraries to be mapped private and read-write. | |
3021 | To revert to the normal behavior, do this: | |
3022 | ||
3023 | adb -w a.out | |
3024 | __dld_flags?W 0x4 | |
3025 | control-d | |
3026 | ||
3027 | You cannot set breakpoints or examine data in the library until after | |
3028 | the library is loaded if the function/data symbols do not have | |
3029 | external linkage. | |
3030 | ||
3031 | GDB can now also read debug symbols produced by the HP C compiler on | |
3032 | HPPAs (sorry, no C++, Fortran or 68k support). | |
3033 | ||
3034 | * Target byte order now dynamically selectable | |
3035 | ||
3036 | You can choose which byte order to use with a target system, via the | |
3037 | commands "set endian big" and "set endian little", and you can see the | |
3038 | current setting by using "show endian". You can also give the command | |
3039 | "set endian auto", in which case GDB will use the byte order | |
3040 | associated with the executable. Currently, only embedded MIPS | |
3041 | configurations support dynamic selection of target byte order. | |
3042 | ||
3043 | * New DOS host serial code | |
3044 | ||
3045 | This version uses DPMI interrupts to handle buffered I/O, so you | |
3046 | no longer need to run asynctsr when debugging boards connected to | |
3047 | a PC's serial port. | |
3048 | ||
3049 | *** Changes in GDB-4.13: | |
3050 | ||
3051 | * New "complete" command | |
3052 | ||
3053 | This lists all the possible completions for the rest of the line, if it | |
3054 | were to be given as a command itself. This is intended for use by emacs. | |
3055 | ||
3056 | * Trailing space optional in prompt | |
3057 | ||
3058 | "set prompt" no longer adds a space for you after the prompt you set. This | |
3059 | allows you to set a prompt which ends in a space or one that does not. | |
3060 | ||
3061 | * Breakpoint hit counts | |
3062 | ||
3063 | "info break" now displays a count of the number of times the breakpoint | |
3064 | has been hit. This is especially useful in conjunction with "ignore"; you | |
3065 | can ignore a large number of breakpoint hits, look at the breakpoint info | |
3066 | to see how many times the breakpoint was hit, then run again, ignoring one | |
3067 | less than that number, and this will get you quickly to the last hit of | |
3068 | that breakpoint. | |
3069 | ||
3070 | * Ability to stop printing at NULL character | |
3071 | ||
3072 | "set print null-stop" will cause GDB to stop printing the characters of | |
3073 | an array when the first NULL is encountered. This is useful when large | |
3074 | arrays actually contain only short strings. | |
3075 | ||
3076 | * Shared library breakpoints | |
3077 | ||
3078 | In SunOS 4.x, SVR4, and Alpha OSF/1 configurations, you can now set | |
3079 | breakpoints in shared libraries before the executable is run. | |
3080 | ||
3081 | * Hardware watchpoints | |
3082 | ||
3083 | There is a new hardware breakpoint for the watch command for sparclite | |
3084 | targets. See gdb/sparclite/hw_breakpoint.note. | |
3085 | ||
55241689 | 3086 | Hardware watchpoints are also now supported under GNU/Linux. |
c906108c SS |
3087 | |
3088 | * Annotations | |
3089 | ||
3090 | Annotations have been added. These are for use with graphical interfaces, | |
3091 | and are still experimental. Currently only gdba.el uses these. | |
3092 | ||
3093 | * Improved Irix 5 support | |
3094 | ||
3095 | GDB now works properly with Irix 5.2. | |
3096 | ||
3097 | * Improved HPPA support | |
3098 | ||
3099 | GDB now works properly with the latest GCC and GAS. | |
3100 | ||
3101 | * New native configurations | |
3102 | ||
3103 | Sequent PTX4 i[34]86-sequent-ptx4 | |
3104 | HPPA running OSF/1 hppa*-*-osf* | |
3105 | Atari TT running SVR4 m68*-*-sysv4* | |
3106 | RS/6000 LynxOS rs6000-*-lynxos* | |
3107 | ||
3108 | * New targets | |
3109 | ||
3110 | OS/9000 i[34]86-*-os9k | |
3111 | MIPS R4000 mips64*{,el}-*-{ecoff,elf} | |
3112 | Sparc64 sparc64-*-* | |
3113 | ||
3114 | * Hitachi SH7000 and E7000-PC ICE support | |
3115 | ||
3116 | There is now support for communicating with the Hitachi E7000-PC ICE. | |
3117 | This is available automatically when GDB is configured for the SH. | |
3118 | ||
3119 | * Fixes | |
3120 | ||
3121 | As usual, a variety of small fixes and improvements, both generic | |
3122 | and configuration-specific. See the ChangeLog for more detail. | |
3123 | ||
3124 | *** Changes in GDB-4.12: | |
3125 | ||
3126 | * Irix 5 is now supported | |
3127 | ||
3128 | * HPPA support | |
3129 | ||
3130 | GDB-4.12 on the HPPA has a number of changes which make it unable | |
3131 | to debug the output from the currently released versions of GCC and | |
3132 | GAS (GCC 2.5.8 and GAS-2.2 or PAGAS-1.36). Until the next major release | |
3133 | of GCC and GAS, versions of these tools designed to work with GDB-4.12 | |
3134 | can be retrieved via anonymous ftp from jaguar.cs.utah.edu:/dist. | |
3135 | ||
3136 | ||
3137 | *** Changes in GDB-4.11: | |
3138 | ||
3139 | * User visible changes: | |
3140 | ||
3141 | * Remote Debugging | |
3142 | ||
3143 | The "set remotedebug" option is now consistent between the mips remote | |
3144 | target, remote targets using the gdb-specific protocol, UDI (AMD's | |
3145 | debug protocol for the 29k) and the 88k bug monitor. It is now an | |
3146 | integer specifying a debug level (normally 0 or 1, but 2 means more | |
3147 | debugging info for the mips target). | |
3148 | ||
3149 | * DEC Alpha native support | |
3150 | ||
3151 | GDB now works on the DEC Alpha. GCC 2.4.5 does not produce usable | |
3152 | debug info, but GDB works fairly well with the DEC compiler and should | |
3153 | work with a future GCC release. See the README file for a few | |
3154 | Alpha-specific notes. | |
3155 | ||
3156 | * Preliminary thread implementation | |
3157 | ||
3158 | GDB now has preliminary thread support for both SGI/Irix and LynxOS. | |
3159 | ||
3160 | * LynxOS native and target support for 386 | |
3161 | ||
3162 | This release has been hosted on LynxOS 2.2, and also can be configured | |
3163 | to remotely debug programs running under LynxOS (see gdb/gdbserver/README | |
3164 | for details). | |
3165 | ||
3166 | * Improvements in C++ mangling/demangling. | |
3167 | ||
3168 | This release has much better g++ debugging, specifically in name | |
3169 | mangling/demangling, virtual function calls, print virtual table, | |
3170 | call methods, ...etc. | |
3171 | ||
3172 | *** Changes in GDB-4.10: | |
3173 | ||
3174 | * User visible changes: | |
3175 | ||
3176 | Remote debugging using the GDB-specific (`target remote') protocol now | |
3177 | supports the `load' command. This is only useful if you have some | |
3178 | other way of getting the stub to the target system, and you can put it | |
3179 | somewhere in memory where it won't get clobbered by the download. | |
3180 | ||
3181 | Filename completion now works. | |
3182 | ||
3183 | When run under emacs mode, the "info line" command now causes the | |
3184 | arrow to point to the line specified. Also, "info line" prints | |
3185 | addresses in symbolic form (as well as hex). | |
3186 | ||
3187 | All vxworks based targets now support a user settable option, called | |
3188 | vxworks-timeout. This option represents the number of seconds gdb | |
3189 | should wait for responses to rpc's. You might want to use this if | |
3190 | your vxworks target is, perhaps, a slow software simulator or happens | |
3191 | to be on the far side of a thin network line. | |
3192 | ||
3193 | * DEC alpha support | |
3194 | ||
3195 | This release contains support for using a DEC alpha as a GDB host for | |
3196 | cross debugging. Native alpha debugging is not supported yet. | |
3197 | ||
3198 | ||
3199 | *** Changes in GDB-4.9: | |
3200 | ||
3201 | * Testsuite | |
3202 | ||
3203 | This is the first GDB release which is accompanied by a matching testsuite. | |
3204 | The testsuite requires installation of dejagnu, which should be available | |
3205 | via ftp from most sites that carry GNU software. | |
3206 | ||
3207 | * C++ demangling | |
3208 | ||
3209 | 'Cfront' style demangling has had its name changed to 'ARM' style, to | |
3210 | emphasize that it was written from the specifications in the C++ Annotated | |
3211 | Reference Manual, not necessarily to be compatible with AT&T cfront. Despite | |
3212 | disclaimers, it still generated too much confusion with users attempting to | |
3213 | use gdb with AT&T cfront. | |
3214 | ||
3215 | * Simulators | |
3216 | ||
3217 | GDB now uses a standard remote interface to a simulator library. | |
3218 | So far, the library contains simulators for the Zilog Z8001/2, the | |
3219 | Hitachi H8/300, H8/500 and Super-H. | |
3220 | ||
3221 | * New targets supported | |
3222 | ||
3223 | H8/300 simulator h8300-hitachi-hms or h8300hms | |
3224 | H8/500 simulator h8500-hitachi-hms or h8500hms | |
3225 | SH simulator sh-hitachi-hms or sh | |
3226 | Z8000 simulator z8k-zilog-none or z8ksim | |
3227 | IDT MIPS board over serial line mips-idt-ecoff | |
3228 | ||
3229 | Cross-debugging to GO32 targets is supported. It requires a custom | |
3230 | version of the i386-stub.c module which is integrated with the | |
3231 | GO32 memory extender. | |
3232 | ||
3233 | * New remote protocols | |
3234 | ||
3235 | MIPS remote debugging protocol. | |
3236 | ||
3237 | * New source languages supported | |
3238 | ||
3239 | This version includes preliminary support for Chill, a Pascal like language | |
3240 | used by telecommunications companies. Chill support is also being integrated | |
3241 | into the GNU compiler, but we don't know when it will be publically available. | |
3242 | ||
3243 | ||
3244 | *** Changes in GDB-4.8: | |
3245 | ||
3246 | * HP Precision Architecture supported | |
3247 | ||
3248 | GDB now supports HP PA-RISC machines running HPUX. A preliminary | |
3249 | version of this support was available as a set of patches from the | |
3250 | University of Utah. GDB does not support debugging of programs | |
3251 | compiled with the HP compiler, because HP will not document their file | |
3252 | format. Instead, you must use GCC (version 2.3.2 or later) and PA-GAS | |
3253 | (as available from jaguar.cs.utah.edu:/dist/pa-gas.u4.tar.Z). | |
3254 | ||
3255 | Many problems in the preliminary version have been fixed. | |
3256 | ||
3257 | * Faster and better demangling | |
3258 | ||
3259 | We have improved template demangling and fixed numerous bugs in the GNU style | |
3260 | demangler. It can now handle type modifiers such as `static' or `const'. Wide | |
3261 | character types (wchar_t) are now supported. Demangling of each symbol is now | |
3262 | only done once, and is cached when the symbol table for a file is read in. | |
3263 | This results in a small increase in memory usage for C programs, a moderate | |
3264 | increase in memory usage for C++ programs, and a fantastic speedup in | |
3265 | symbol lookups. | |
3266 | ||
3267 | `Cfront' style demangling still doesn't work with AT&T cfront. It was written | |
3268 | from the specifications in the Annotated Reference Manual, which AT&T's | |
3269 | compiler does not actually implement. | |
3270 | ||
3271 | * G++ multiple inheritance compiler problem | |
3272 | ||
3273 | In the 2.3.2 release of gcc/g++, how the compiler resolves multiple | |
3274 | inheritance lattices was reworked to properly discover ambiguities. We | |
3275 | recently found an example which causes this new algorithm to fail in a | |
3276 | very subtle way, producing bad debug information for those classes. | |
3277 | The file 'gcc.patch' (in this directory) can be applied to gcc to | |
3278 | circumvent the problem. A future GCC release will contain a complete | |
3279 | fix. | |
3280 | ||
3281 | The previous G++ debug info problem (mentioned below for the gdb-4.7 | |
3282 | release) is fixed in gcc version 2.3.2. | |
3283 | ||
3284 | * Improved configure script | |
3285 | ||
3286 | The `configure' script will now attempt to guess your system type if | |
3287 | you don't supply a host system type. The old scheme of supplying a | |
3288 | host system triplet is preferable over using this. All the magic is | |
3289 | done in the new `config.guess' script. Examine it for details. | |
3290 | ||
3291 | We have also brought our configure script much more in line with the FSF's | |
3292 | version. It now supports the --with-xxx options. In particular, | |
3293 | `--with-minimal-bfd' can be used to make the GDB binary image smaller. | |
3294 | The resulting GDB will not be able to read arbitrary object file formats -- | |
3295 | only the format ``expected'' to be used on the configured target system. | |
3296 | We hope to make this the default in a future release. | |
3297 | ||
3298 | * Documentation improvements | |
3299 | ||
3300 | There's new internal documentation on how to modify GDB, and how to | |
3301 | produce clean changes to the code. We implore people to read it | |
3302 | before submitting changes. | |
3303 | ||
3304 | The GDB manual uses new, sexy Texinfo conditionals, rather than arcane | |
3305 | M4 macros. The new texinfo.tex is provided in this release. Pre-built | |
3306 | `info' files are also provided. To build `info' files from scratch, | |
3307 | you will need the latest `makeinfo' release, which will be available in | |
3308 | a future texinfo-X.Y release. | |
3309 | ||
3310 | *NOTE* The new texinfo.tex can cause old versions of TeX to hang. | |
3311 | We're not sure exactly which versions have this problem, but it has | |
3312 | been seen in 3.0. We highly recommend upgrading to TeX version 3.141 | |
3313 | or better. If that isn't possible, there is a patch in | |
3314 | `texinfo/tex3patch' that will modify `texinfo/texinfo.tex' to work | |
3315 | around this problem. | |
3316 | ||
3317 | * New features | |
3318 | ||
3319 | GDB now supports array constants that can be used in expressions typed in by | |
3320 | the user. The syntax is `{element, element, ...}'. Ie: you can now type | |
3321 | `print {1, 2, 3}', and it will build up an array in memory malloc'd in | |
3322 | the target program. | |
3323 | ||
3324 | The new directory `gdb/sparclite' contains a program that demonstrates | |
3325 | how the sparc-stub.c remote stub runs on a Fujitsu SPARClite processor. | |
3326 | ||
3327 | * New native hosts supported | |
3328 | ||
3329 | HP/PA-RISC under HPUX using GNU tools hppa1.1-hp-hpux | |
3330 | 386 CPUs running SCO Unix 3.2v4 i386-unknown-sco3.2v4 | |
3331 | ||
3332 | * New targets supported | |
3333 | ||
3334 | AMD 29k family via UDI a29k-amd-udi or udi29k | |
3335 | ||
3336 | * New file formats supported | |
3337 | ||
3338 | BFD now supports reading HP/PA-RISC executables (SOM file format?), | |
3339 | HPUX core files, and SCO 3.2v2 core files. | |
3340 | ||
3341 | * Major bug fixes | |
3342 | ||
3343 | Attaching to processes now works again; thanks for the many bug reports. | |
3344 | ||
3345 | We have also stomped on a bunch of core dumps caused by | |
3346 | printf_filtered("%s") problems. | |
3347 | ||
3348 | We eliminated a copyright problem on the rpc and ptrace header files | |
3349 | for VxWorks, which was discovered at the last minute during the 4.7 | |
3350 | release. You should now be able to build a VxWorks GDB. | |
3351 | ||
3352 | You can now interrupt gdb while an attached process is running. This | |
3353 | will cause the attached process to stop, and give control back to GDB. | |
3354 | ||
3355 | We fixed problems caused by using too many file descriptors | |
3356 | for reading symbols from object files and libraries. This was | |
3357 | especially a problem for programs that used many (~100) shared | |
3358 | libraries. | |
3359 | ||
3360 | The `step' command now only enters a subroutine if there is line number | |
3361 | information for the subroutine. Otherwise it acts like the `next' | |
3362 | command. Previously, `step' would enter subroutines if there was | |
3363 | any debugging information about the routine. This avoids problems | |
3364 | when using `cc -g1' on MIPS machines. | |
3365 | ||
3366 | * Internal improvements | |
3367 | ||
3368 | GDB's internal interfaces have been improved to make it easier to support | |
3369 | debugging of multiple languages in the future. | |
3370 | ||
3371 | GDB now uses a common structure for symbol information internally. | |
3372 | Minimal symbols (derived from linkage symbols in object files), partial | |
3373 | symbols (from a quick scan of debug information), and full symbols | |
3374 | contain a common subset of information, making it easier to write | |
3375 | shared code that handles any of them. | |
3376 | ||
3377 | * New command line options | |
3378 | ||
3379 | We now accept --silent as an alias for --quiet. | |
3380 | ||
3381 | * Mmalloc licensing | |
3382 | ||
3383 | The memory-mapped-malloc library is now licensed under the GNU Library | |
3384 | General Public License. | |
3385 | ||
3386 | *** Changes in GDB-4.7: | |
3387 | ||
3388 | * Host/native/target split | |
3389 | ||
3390 | GDB has had some major internal surgery to untangle the support for | |
3391 | hosts and remote targets. Now, when you configure GDB for a remote | |
3392 | target, it will no longer load in all of the support for debugging | |
3393 | local programs on the host. When fully completed and tested, this will | |
3394 | ensure that arbitrary host/target combinations are possible. | |
3395 | ||
3396 | The primary conceptual shift is to separate the non-portable code in | |
3397 | GDB into three categories. Host specific code is required any time GDB | |
3398 | is compiled on that host, regardless of the target. Target specific | |
3399 | code relates to the peculiarities of the target, but can be compiled on | |
3400 | any host. Native specific code is everything else: it can only be | |
3401 | built when the host and target are the same system. Child process | |
3402 | handling and core file support are two common `native' examples. | |
3403 | ||
3404 | GDB's use of /proc for controlling Unix child processes is now cleaner. | |
3405 | It has been split out into a single module under the `target_ops' vector, | |
3406 | plus two native-dependent functions for each system that uses /proc. | |
3407 | ||
3408 | * New hosts supported | |
3409 | ||
3410 | HP/Apollo 68k (under the BSD domain) m68k-apollo-bsd or apollo68bsd | |
3411 | 386 CPUs running various BSD ports i386-unknown-bsd or 386bsd | |
3412 | 386 CPUs running SCO Unix i386-unknown-scosysv322 or i386sco | |
3413 | ||
3414 | * New targets supported | |
3415 | ||
3416 | Fujitsu SPARClite sparclite-fujitsu-none or sparclite | |
3417 | 68030 and CPU32 m68030-*-*, m68332-*-* | |
3418 | ||
3419 | * New native hosts supported | |
3420 | ||
3421 | 386 CPUs running various BSD ports i386-unknown-bsd or 386bsd | |
3422 | (386bsd is not well tested yet) | |
3423 | 386 CPUs running SCO Unix i386-unknown-scosysv322 or sco | |
3424 | ||
3425 | * New file formats supported | |
3426 | ||
3427 | BFD now supports COFF files for the Zilog Z8000 microprocessor. It | |
3428 | supports reading of `a.out.adobe' object files, which are an a.out | |
3429 | format extended with minimal information about multiple sections. | |
3430 | ||
3431 | * New commands | |
3432 | ||
3433 | `show copying' is the same as the old `info copying'. | |
3434 | `show warranty' is the same as `info warrantee'. | |
3435 | These were renamed for consistency. The old commands continue to work. | |
3436 | ||
3437 | `info handle' is a new alias for `info signals'. | |
3438 | ||
3439 | You can now define pre-command hooks, which attach arbitrary command | |
3440 | scripts to any command. The commands in the hook will be executed | |
3441 | prior to the user's command. You can also create a hook which will be | |
3442 | executed whenever the program stops. See gdb.texinfo. | |
3443 | ||
3444 | * C++ improvements | |
3445 | ||
3446 | We now deal with Cfront style name mangling, and can even extract type | |
3447 | info from mangled symbols. GDB can automatically figure out which | |
3448 | symbol mangling style your C++ compiler uses. | |
3449 | ||
3450 | Calling of methods and virtual functions has been improved as well. | |
3451 | ||
3452 | * Major bug fixes | |
3453 | ||
3454 | The crash that occured when debugging Sun Ansi-C compiled binaries is | |
3455 | fixed. This was due to mishandling of the extra N_SO stabs output | |
3456 | by the compiler. | |
3457 | ||
3458 | We also finally got Ultrix 4.2 running in house, and fixed core file | |
3459 | support, with help from a dozen people on the net. | |
3460 | ||
3461 | John M. Farrell discovered that the reason that single-stepping was so | |
3462 | slow on all of the Mips based platforms (primarily SGI and DEC) was | |
3463 | that we were trying to demangle and lookup a symbol used for internal | |
3464 | purposes on every instruction that was being stepped through. Changing | |
3465 | the name of that symbol so that it couldn't be mistaken for a C++ | |
3466 | mangled symbol sped things up a great deal. | |
3467 | ||
3468 | Rich Pixley sped up symbol lookups in general by getting much smarter | |
3469 | about when C++ symbol mangling is necessary. This should make symbol | |
3470 | completion (TAB on the command line) much faster. It's not as fast as | |
3471 | we'd like, but it's significantly faster than gdb-4.6. | |
3472 | ||
3473 | * AMD 29k support | |
3474 | ||
3475 | A new user controllable variable 'call_scratch_address' can | |
3476 | specify the location of a scratch area to be used when GDB | |
3477 | calls a function in the target. This is necessary because the | |
3478 | usual method of putting the scratch area on the stack does not work | |
3479 | in systems that have separate instruction and data spaces. | |
3480 | ||
3481 | We integrated changes to support the 29k UDI (Universal Debugger | |
3482 | Interface), but discovered at the last minute that we didn't have all | |
3483 | of the appropriate copyright paperwork. We are working with AMD to | |
3484 | resolve this, and hope to have it available soon. | |
3485 | ||
3486 | * Remote interfaces | |
3487 | ||
3488 | We have sped up the remote serial line protocol, especially for targets | |
3489 | with lots of registers. It now supports a new `expedited status' ('T') | |
3490 | message which can be used in place of the existing 'S' status message. | |
3491 | This allows the remote stub to send only the registers that GDB | |
3492 | needs to make a quick decision about single-stepping or conditional | |
3493 | breakpoints, eliminating the need to fetch the entire register set for | |
3494 | each instruction being stepped through. | |
3495 | ||
3496 | The GDB remote serial protocol now implements a write-through cache for | |
3497 | registers, only re-reading the registers if the target has run. | |
3498 | ||
3499 | There is also a new remote serial stub for SPARC processors. You can | |
3500 | find it in gdb-4.7/gdb/sparc-stub.c. This was written to support the | |
3501 | Fujitsu SPARClite processor, but will run on any stand-alone SPARC | |
3502 | processor with a serial port. | |
3503 | ||
3504 | * Configuration | |
3505 | ||
3506 | Configure.in files have become much easier to read and modify. A new | |
3507 | `table driven' format makes it more obvious what configurations are | |
3508 | supported, and what files each one uses. | |
3509 | ||
3510 | * Library changes | |
3511 | ||
3512 | There is a new opcodes library which will eventually contain all of the | |
3513 | disassembly routines and opcode tables. At present, it only contains | |
3514 | Sparc and Z8000 routines. This will allow the assembler, debugger, and | |
3515 | disassembler (binutils/objdump) to share these routines. | |
3516 | ||
3517 | The libiberty library is now copylefted under the GNU Library General | |
3518 | Public License. This allows more liberal use, and was done so libg++ | |
3519 | can use it. This makes no difference to GDB, since the Library License | |
3520 | grants all the rights from the General Public License. | |
3521 | ||
3522 | * Documentation | |
3523 | ||
3524 | The file gdb-4.7/gdb/doc/stabs.texinfo is a (relatively) complete | |
3525 | reference to the stabs symbol info used by the debugger. It is (as far | |
3526 | as we know) the only published document on this fascinating topic. We | |
3527 | encourage you to read it, compare it to the stabs information on your | |
3528 | system, and send improvements on the document in general (to | |
3529 | [email protected]). | |
3530 | ||
3531 | And, of course, many bugs have been fixed. | |
3532 | ||
3533 | ||
3534 | *** Changes in GDB-4.6: | |
3535 | ||
3536 | * Better support for C++ function names | |
3537 | ||
3538 | GDB now accepts as input the "demangled form" of C++ overloaded function | |
3539 | names and member function names, and can do command completion on such names | |
3540 | (using TAB, TAB-TAB, and ESC-?). The names have to be quoted with a pair of | |
3541 | single quotes. Examples are 'func (int, long)' and 'obj::operator==(obj&)'. | |
3542 | Make use of command completion, it is your friend. | |
3543 | ||
3544 | GDB also now accepts a variety of C++ mangled symbol formats. They are | |
3545 | the GNU g++ style, the Cfront (ARM) style, and the Lucid (lcc) style. | |
3546 | You can tell GDB which format to use by doing a 'set demangle-style {gnu, | |
3547 | lucid, cfront, auto}'. 'gnu' is the default. Do a 'set demangle-style foo' | |
3548 | for the list of formats. | |
3549 | ||
3550 | * G++ symbol mangling problem | |
3551 | ||
3552 | Recent versions of gcc have a bug in how they emit debugging information for | |
3553 | C++ methods (when using dbx-style stabs). The file 'gcc.patch' (in this | |
3554 | directory) can be applied to gcc to fix the problem. Alternatively, if you | |
3555 | can't fix gcc, you can #define GCC_MANGLE_BUG when compling gdb/symtab.c. The | |
3556 | usual symptom is difficulty with setting breakpoints on methods. GDB complains | |
3557 | about the method being non-existent. (We believe that version 2.2.2 of GCC has | |
3558 | this problem.) | |
3559 | ||
3560 | * New 'maintenance' command | |
3561 | ||
3562 | All of the commands related to hacking GDB internals have been moved out of | |
3563 | the main command set, and now live behind the 'maintenance' command. This | |
3564 | can also be abbreviated as 'mt'. The following changes were made: | |
3565 | ||
3566 | dump-me -> maintenance dump-me | |
3567 | info all-breakpoints -> maintenance info breakpoints | |
3568 | printmsyms -> maintenance print msyms | |
3569 | printobjfiles -> maintenance print objfiles | |
3570 | printpsyms -> maintenance print psymbols | |
3571 | printsyms -> maintenance print symbols | |
3572 | ||
3573 | The following commands are new: | |
3574 | ||
3575 | maintenance demangle Call internal GDB demangler routine to | |
3576 | demangle a C++ link name and prints the result. | |
3577 | maintenance print type Print a type chain for a given symbol | |
3578 | ||
3579 | * Change to .gdbinit file processing | |
3580 | ||
3581 | We now read the $HOME/.gdbinit file before processing the argv arguments | |
3582 | (e.g. reading symbol files or core files). This allows global parameters to | |
3583 | be set, which will apply during the symbol reading. The ./.gdbinit is still | |
3584 | read after argv processing. | |
3585 | ||
3586 | * New hosts supported | |
3587 | ||
3588 | Solaris-2.0 !!! sparc-sun-solaris2 or sun4sol2 | |
3589 | ||
55241689 | 3590 | GNU/Linux support i386-unknown-linux or linux |
c906108c SS |
3591 | |
3592 | We are also including code to support the HP/PA running BSD and HPUX. This | |
3593 | is almost guaranteed not to work, as we didn't have time to test or build it | |
3594 | for this release. We are including it so that the more adventurous (or | |
3595 | masochistic) of you can play with it. We also had major problems with the | |
3596 | fact that the compiler that we got from HP doesn't support the -g option. | |
3597 | It costs extra. | |
3598 | ||
3599 | * New targets supported | |
3600 | ||
3601 | Hitachi H8/300 h8300-hitachi-hms or h8300hms | |
3602 | ||
3603 | * More smarts about finding #include files | |
3604 | ||
3605 | GDB now remembers the compilation directory for all include files, and for | |
3606 | all files from which C is generated (like yacc and lex sources). This | |
3607 | greatly improves GDB's ability to find yacc/lex sources, and include files, | |
3608 | especially if you are debugging your program from a directory different from | |
3609 | the one that contains your sources. | |
3610 | ||
3611 | We also fixed a bug which caused difficulty with listing and setting | |
3612 | breakpoints in include files which contain C code. (In the past, you had to | |
3613 | try twice in order to list an include file that you hadn't looked at before.) | |
3614 | ||
3615 | * Interesting infernals change | |
3616 | ||
3617 | GDB now deals with arbitrary numbers of sections, where the symbols for each | |
3618 | section must be relocated relative to that section's landing place in the | |
3619 | target's address space. This work was needed to support ELF with embedded | |
3620 | stabs used by Solaris-2.0. | |
3621 | ||
3622 | * Bug fixes (of course!) | |
3623 | ||
3624 | There have been loads of fixes for the following things: | |
3625 | mips, rs6000, 29k/udi, m68k, g++, type handling, elf/dwarf, m88k, | |
3626 | i960, stabs, DOS(GO32), procfs, etc... | |
3627 | ||
3628 | See the ChangeLog for details. | |
3629 | ||
3630 | *** Changes in GDB-4.5: | |
3631 | ||
3632 | * New machines supported (host and target) | |
3633 | ||
3634 | IBM RS6000 running AIX rs6000-ibm-aix or rs6000 | |
3635 | ||
3636 | SGI Irix-4.x mips-sgi-irix4 or iris4 | |
3637 | ||
3638 | * New malloc package | |
3639 | ||
3640 | GDB now uses a new memory manager called mmalloc, based on gmalloc. | |
3641 | Mmalloc is capable of handling mutiple heaps of memory. It is also | |
3642 | capable of saving a heap to a file, and then mapping it back in later. | |
3643 | This can be used to greatly speedup the startup of GDB by using a | |
3644 | pre-parsed symbol table which lives in a mmalloc managed heap. For | |
3645 | more details, please read mmalloc/mmalloc.texi. | |
3646 | ||
3647 | * info proc | |
3648 | ||
3649 | The 'info proc' command (SVR4 only) has been enhanced quite a bit. See | |
3650 | 'help info proc' for details. | |
3651 | ||
3652 | * MIPS ecoff symbol table format | |
3653 | ||
3654 | The code that reads MIPS symbol table format is now supported on all hosts. | |
3655 | Thanks to MIPS for releasing the sym.h and symconst.h files to make this | |
3656 | possible. | |
3657 | ||
3658 | * File name changes for MS-DOS | |
3659 | ||
3660 | Many files in the config directories have been renamed to make it easier to | |
3661 | support GDB on MS-DOSe systems (which have very restrictive file name | |
3662 | conventions :-( ). MS-DOSe host support (under DJ Delorie's GO32 | |
3663 | environment) is close to working but has some remaining problems. Note | |
3664 | that debugging of DOS programs is not supported, due to limitations | |
3665 | in the ``operating system'', but it can be used to host cross-debugging. | |
3666 | ||
3667 | * Cross byte order fixes | |
3668 | ||
3669 | Many fixes have been made to support cross debugging of Sparc and MIPS | |
3670 | targets from hosts whose byte order differs. | |
3671 | ||
3672 | * New -mapped and -readnow options | |
3673 | ||
3674 | If memory-mapped files are available on your system through the 'mmap' | |
3675 | system call, you can use the -mapped option on the `file' or | |
3676 | `symbol-file' commands to cause GDB to write the symbols from your | |
3677 | program into a reusable file. If the program you are debugging is | |
3678 | called `/path/fred', the mapped symbol file will be `./fred.syms'. | |
3679 | Future GDB debugging sessions will notice the presence of this file, | |
3680 | and will quickly map in symbol information from it, rather than reading | |
3681 | the symbol table from the executable program. Using the '-mapped' | |
3682 | option in a GDB `file' or `symbol-file' command has the same effect as | |
3683 | starting GDB with the '-mapped' command-line option. | |
3684 | ||
3685 | You can cause GDB to read the entire symbol table immediately by using | |
3686 | the '-readnow' option with any of the commands that load symbol table | |
3687 | information (or on the GDB command line). This makes the command | |
3688 | slower, but makes future operations faster. | |
3689 | ||
3690 | The -mapped and -readnow options are typically combined in order to | |
3691 | build a `fred.syms' file that contains complete symbol information. | |
3692 | A simple GDB invocation to do nothing but build a `.syms' file for future | |
3693 | use is: | |
3694 | ||
3695 | gdb -batch -nx -mapped -readnow programname | |
3696 | ||
3697 | The `.syms' file is specific to the host machine on which GDB is run. | |
3698 | It holds an exact image of GDB's internal symbol table. It cannot be | |
3699 | shared across multiple host platforms. | |
3700 | ||
3701 | * longjmp() handling | |
3702 | ||
3703 | GDB is now capable of stepping and nexting over longjmp(), _longjmp(), and | |
3704 | siglongjmp() without losing control. This feature has not yet been ported to | |
3705 | all systems. It currently works on many 386 platforms, all MIPS-based | |
3706 | platforms (SGI, DECstation, etc), and Sun3/4. | |
3707 | ||
3708 | * Solaris 2.0 | |
3709 | ||
3710 | Preliminary work has been put in to support the new Solaris OS from Sun. At | |
3711 | this time, it can control and debug processes, but it is not capable of | |
3712 | reading symbols. | |
3713 | ||
3714 | * Bug fixes | |
3715 | ||
3716 | As always, many many bug fixes. The major areas were with g++, and mipsread. | |
3717 | People using the MIPS-based platforms should experience fewer mysterious | |
3718 | crashes and trashed symbol tables. | |
3719 | ||
3720 | *** Changes in GDB-4.4: | |
3721 | ||
3722 | * New machines supported (host and target) | |
3723 | ||
3724 | SCO Unix on i386 IBM PC clones i386-sco-sysv or i386sco | |
3725 | (except core files) | |
3726 | BSD Reno on Vax vax-dec-bsd | |
3727 | Ultrix on Vax vax-dec-ultrix | |
3728 | ||
3729 | * New machines supported (target) | |
3730 | ||
3731 | AMD 29000 embedded, using EBMON a29k-none-none | |
3732 | ||
3733 | * C++ support | |
3734 | ||
3735 | GDB continues to improve its handling of C++. `References' work better. | |
3736 | The demangler has also been improved, and now deals with symbols mangled as | |
3737 | per the Annotated C++ Reference Guide. | |
3738 | ||
3739 | GDB also now handles `stabs' symbol information embedded in MIPS | |
3740 | `ecoff' symbol tables. Since the ecoff format was not easily | |
3741 | extensible to handle new languages such as C++, this appeared to be a | |
3742 | good way to put C++ debugging info into MIPS binaries. This option | |
3743 | will be supported in the GNU C compiler, version 2, when it is | |
3744 | released. | |
3745 | ||
3746 | * New features for SVR4 | |
3747 | ||
3748 | GDB now handles SVR4 shared libraries, in the same fashion as SunOS | |
3749 | shared libraries. Debugging dynamically linked programs should present | |
3750 | only minor differences from debugging statically linked programs. | |
3751 | ||
3752 | The `info proc' command will print out information about any process | |
3753 | on an SVR4 system (including the one you are debugging). At the moment, | |
3754 | it prints the address mappings of the process. | |
3755 | ||
3756 | If you bring up GDB on another SVR4 system, please send mail to | |
3757 | [email protected] to let us know what changes were reqired (if any). | |
3758 | ||
3759 | * Better dynamic linking support in SunOS | |
3760 | ||
3761 | Reading symbols from shared libraries which contain debugging symbols | |
3762 | now works properly. However, there remain issues such as automatic | |
3763 | skipping of `transfer vector' code during function calls, which | |
3764 | make it harder to debug code in a shared library, than to debug the | |
3765 | same code linked statically. | |
3766 | ||
3767 | * New Getopt | |
3768 | ||
3769 | GDB is now using the latest `getopt' routines from the FSF. This | |
3770 | version accepts the -- prefix for options with long names. GDB will | |
3771 | continue to accept the old forms (-option and +option) as well. | |
3772 | Various single letter abbreviations for options have been explicity | |
3773 | added to the option table so that they won't get overshadowed in the | |
3774 | future by other options that begin with the same letter. | |
3775 | ||
3776 | * Bugs fixed | |
3777 | ||
3778 | The `cleanup_undefined_types' bug that many of you noticed has been squashed. | |
3779 | Many assorted bugs have been handled. Many more remain to be handled. | |
3780 | See the various ChangeLog files (primarily in gdb and bfd) for details. | |
3781 | ||
3782 | ||
3783 | *** Changes in GDB-4.3: | |
3784 | ||
3785 | * New machines supported (host and target) | |
3786 | ||
3787 | Amiga 3000 running Amix m68k-cbm-svr4 or amix | |
3788 | NCR 3000 386 running SVR4 i386-ncr-svr4 or ncr3000 | |
3789 | Motorola Delta 88000 running Sys V m88k-motorola-sysv or delta88 | |
3790 | ||
3791 | * Almost SCO Unix support | |
3792 | ||
3793 | We had hoped to support: | |
3794 | SCO Unix on i386 IBM PC clones i386-sco-sysv or i386sco | |
3795 | (except for core file support), but we discovered very late in the release | |
3796 | that it has problems with process groups that render gdb unusable. Sorry | |
3797 | about that. I encourage people to fix it and post the fixes. | |
3798 | ||
3799 | * Preliminary ELF and DWARF support | |
3800 | ||
3801 | GDB can read ELF object files on System V Release 4, and can handle | |
3802 | debugging records for C, in DWARF format, in ELF files. This support | |
3803 | is preliminary. If you bring up GDB on another SVR4 system, please | |
3804 | send mail to [email protected] to let us know what changes were | |
3805 | reqired (if any). | |
3806 | ||
3807 | * New Readline | |
3808 | ||
3809 | GDB now uses the latest `readline' library. One user-visible change | |
3810 | is that two tabs will list possible command completions, which previously | |
3811 | required typing M-? (meta-question mark, or ESC ?). | |
3812 | ||
3813 | * Bugs fixed | |
3814 | ||
3815 | The `stepi' bug that many of you noticed has been squashed. | |
3816 | Many bugs in C++ have been handled. Many more remain to be handled. | |
3817 | See the various ChangeLog files (primarily in gdb and bfd) for details. | |
3818 | ||
3819 | * State of the MIPS world (in case you wondered): | |
3820 | ||
3821 | GDB can understand the symbol tables emitted by the compilers | |
3822 | supplied by most vendors of MIPS-based machines, including DEC. These | |
3823 | symbol tables are in a format that essentially nobody else uses. | |
3824 | ||
3825 | Some versions of gcc come with an assembler post-processor called | |
3826 | mips-tfile. This program is required if you want to do source-level | |
3827 | debugging of gcc-compiled programs. I believe FSF does not ship | |
3828 | mips-tfile with gcc version 1, but it will eventually come with gcc | |
3829 | version 2. | |
3830 | ||
3831 | Debugging of g++ output remains a problem. g++ version 1.xx does not | |
3832 | really support it at all. (If you're lucky, you should be able to get | |
3833 | line numbers and stack traces to work, but no parameters or local | |
3834 | variables.) With some work it should be possible to improve the | |
3835 | situation somewhat. | |
3836 | ||
3837 | When gcc version 2 is released, you will have somewhat better luck. | |
3838 | However, even then you will get confusing results for inheritance and | |
3839 | methods. | |
3840 | ||
3841 | We will eventually provide full debugging of g++ output on | |
3842 | DECstations. This will probably involve some kind of stabs-in-ecoff | |
3843 | encapulation, but the details have not been worked out yet. | |
3844 | ||
3845 | ||
3846 | *** Changes in GDB-4.2: | |
3847 | ||
3848 | * Improved configuration | |
3849 | ||
3850 | Only one copy of `configure' exists now, and it is not self-modifying. | |
3851 | Porting BFD is simpler. | |
3852 | ||
3853 | * Stepping improved | |
3854 | ||
3855 | The `step' and `next' commands now only stop at the first instruction | |
3856 | of a source line. This prevents the multiple stops that used to occur | |
3857 | in switch statements, for-loops, etc. `Step' continues to stop if a | |
3858 | function that has debugging information is called within the line. | |
3859 | ||
3860 | * Bug fixing | |
3861 | ||
3862 | Lots of small bugs fixed. More remain. | |
3863 | ||
3864 | * New host supported (not target) | |
3865 | ||
3866 | Intel 386 PC clone running Mach i386-none-mach | |
3867 | ||
3868 | ||
3869 | *** Changes in GDB-4.1: | |
3870 | ||
3871 | * Multiple source language support | |
3872 | ||
3873 | GDB now has internal scaffolding to handle several source languages. | |
3874 | It determines the type of each source file from its filename extension, | |
3875 | and will switch expression parsing and number formatting to match the | |
3876 | language of the function in the currently selected stack frame. | |
3877 | You can also specifically set the language to be used, with | |
3878 | `set language c' or `set language modula-2'. | |
3879 | ||
3880 | * GDB and Modula-2 | |
3881 | ||
3882 | GDB now has preliminary support for the GNU Modula-2 compiler, | |
3883 | currently under development at the State University of New York at | |
3884 | Buffalo. Development of both GDB and the GNU Modula-2 compiler will | |
3885 | continue through the fall of 1991 and into 1992. | |
3886 | ||
3887 | Other Modula-2 compilers are currently not supported, and attempting to | |
3888 | debug programs compiled with them will likely result in an error as the | |
3889 | symbol table is read. Feel free to work on it, though! | |
3890 | ||
3891 | There are hooks in GDB for strict type checking and range checking, | |
3892 | in the `Modula-2 philosophy', but they do not currently work. | |
3893 | ||
3894 | * set write on/off | |
3895 | ||
3896 | GDB can now write to executable and core files (e.g. patch | |
3897 | a variable's value). You must turn this switch on, specify | |
3898 | the file ("exec foo" or "core foo"), *then* modify it, e.g. | |
3899 | by assigning a new value to a variable. Modifications take | |
3900 | effect immediately. | |
3901 | ||
3902 | * Automatic SunOS shared library reading | |
3903 | ||
3904 | When you run your program, GDB automatically determines where its | |
3905 | shared libraries (if any) have been loaded, and reads their symbols. | |
3906 | The `share' command is no longer needed. This also works when | |
3907 | examining core files. | |
3908 | ||
3909 | * set listsize | |
3910 | ||
3911 | You can specify the number of lines that the `list' command shows. | |
3912 | The default is 10. | |
3913 | ||
3914 | * New machines supported (host and target) | |
3915 | ||
3916 | SGI Iris (MIPS) running Irix V3: mips-sgi-irix or iris | |
3917 | Sony NEWS (68K) running NEWSOS 3.x: m68k-sony-sysv or news | |
3918 | Ultracomputer (29K) running Sym1: a29k-nyu-sym1 or ultra3 | |
3919 | ||
3920 | * New hosts supported (not targets) | |
3921 | ||
3922 | IBM RT/PC: romp-ibm-aix or rtpc | |
3923 | ||
3924 | * New targets supported (not hosts) | |
3925 | ||
3926 | AMD 29000 embedded with COFF a29k-none-coff | |
3927 | AMD 29000 embedded with a.out a29k-none-aout | |
3928 | Ultracomputer remote kernel debug a29k-nyu-kern | |
3929 | ||
3930 | * New remote interfaces | |
3931 | ||
3932 | AMD 29000 Adapt | |
3933 | AMD 29000 Minimon | |
3934 | ||
3935 | ||
3936 | *** Changes in GDB-4.0: | |
3937 | ||
3938 | * New Facilities | |
3939 | ||
3940 | Wide output is wrapped at good places to make the output more readable. | |
3941 | ||
3942 | Gdb now supports cross-debugging from a host machine of one type to a | |
3943 | target machine of another type. Communication with the target system | |
3944 | is over serial lines. The ``target'' command handles connecting to the | |
3945 | remote system; the ``load'' command will download a program into the | |
3946 | remote system. Serial stubs for the m68k and i386 are provided. Gdb | |
3947 | also supports debugging of realtime processes running under VxWorks, | |
3948 | using SunRPC Remote Procedure Calls over TCP/IP to talk to a debugger | |
3949 | stub on the target system. | |
3950 | ||
3951 | New CPUs supported include the AMD 29000 and Intel 960. | |
3952 | ||
3953 | GDB now reads object files and symbol tables via a ``binary file'' | |
3954 | library, which allows a single copy of GDB to debug programs of multiple | |
3955 | object file types such as a.out and coff. | |
3956 | ||
3957 | There is now a GDB reference card in "doc/refcard.tex". (Make targets | |
3958 | refcard.dvi and refcard.ps are available to format it). | |
3959 | ||
3960 | ||
3961 | * Control-Variable user interface simplified | |
3962 | ||
3963 | All variables that control the operation of the debugger can be set | |
3964 | by the ``set'' command, and displayed by the ``show'' command. | |
3965 | ||
3966 | For example, ``set prompt new-gdb=>'' will change your prompt to new-gdb=>. | |
3967 | ``Show prompt'' produces the response: | |
3968 | Gdb's prompt is new-gdb=>. | |
3969 | ||
3970 | What follows are the NEW set commands. The command ``help set'' will | |
3971 | print a complete list of old and new set commands. ``help set FOO'' | |
3972 | will give a longer description of the variable FOO. ``show'' will show | |
3973 | all of the variable descriptions and their current settings. | |
3974 | ||
3975 | confirm on/off: Enables warning questions for operations that are | |
3976 | hard to recover from, e.g. rerunning the program while | |
3977 | it is already running. Default is ON. | |
3978 | ||
3979 | editing on/off: Enables EMACS style command line editing | |
3980 | of input. Previous lines can be recalled with | |
3981 | control-P, the current line can be edited with control-B, | |
3982 | you can search for commands with control-R, etc. | |
3983 | Default is ON. | |
3984 | ||
3985 | history filename NAME: NAME is where the gdb command history | |
3986 | will be stored. The default is .gdb_history, | |
3987 | or the value of the environment variable | |
3988 | GDBHISTFILE. | |
3989 | ||
3990 | history size N: The size, in commands, of the command history. The | |
3991 | default is 256, or the value of the environment variable | |
3992 | HISTSIZE. | |
3993 | ||
3994 | history save on/off: If this value is set to ON, the history file will | |
3995 | be saved after exiting gdb. If set to OFF, the | |
3996 | file will not be saved. The default is OFF. | |
3997 | ||
3998 | history expansion on/off: If this value is set to ON, then csh-like | |
3999 | history expansion will be performed on | |
4000 | command line input. The default is OFF. | |
4001 | ||
4002 | radix N: Sets the default radix for input and output. It can be set | |
4003 | to 8, 10, or 16. Note that the argument to "radix" is interpreted | |
4004 | in the current radix, so "set radix 10" is always a no-op. | |
4005 | ||
4006 | height N: This integer value is the number of lines on a page. Default | |
4007 | is 24, the current `stty rows'' setting, or the ``li#'' | |
4008 | setting from the termcap entry matching the environment | |
4009 | variable TERM. | |
4010 | ||
4011 | width N: This integer value is the number of characters on a line. | |
4012 | Default is 80, the current `stty cols'' setting, or the ``co#'' | |
4013 | setting from the termcap entry matching the environment | |
4014 | variable TERM. | |
4015 | ||
4016 | Note: ``set screensize'' is obsolete. Use ``set height'' and | |
4017 | ``set width'' instead. | |
4018 | ||
4019 | print address on/off: Print memory addresses in various command displays, | |
4020 | such as stack traces and structure values. Gdb looks | |
4021 | more ``symbolic'' if you turn this off; it looks more | |
4022 | ``machine level'' with it on. Default is ON. | |
4023 | ||
4024 | print array on/off: Prettyprint arrays. New convenient format! Default | |
4025 | is OFF. | |
4026 | ||
4027 | print demangle on/off: Print C++ symbols in "source" form if on, | |
4028 | "raw" form if off. | |
4029 | ||
4030 | print asm-demangle on/off: Same, for assembler level printouts | |
4031 | like instructions. | |
4032 | ||
4033 | print vtbl on/off: Prettyprint C++ virtual function tables. Default is OFF. | |
4034 | ||
4035 | ||
4036 | * Support for Epoch Environment. | |
4037 | ||
4038 | The epoch environment is a version of Emacs v18 with windowing. One | |
4039 | new command, ``inspect'', is identical to ``print'', except that if you | |
4040 | are running in the epoch environment, the value is printed in its own | |
4041 | window. | |
4042 | ||
4043 | ||
4044 | * Support for Shared Libraries | |
4045 | ||
4046 | GDB can now debug programs and core files that use SunOS shared libraries. | |
4047 | Symbols from a shared library cannot be referenced | |
4048 | before the shared library has been linked with the program (this | |
4049 | happens after you type ``run'' and before the function main() is entered). | |
4050 | At any time after this linking (including when examining core files | |
4051 | from dynamically linked programs), gdb reads the symbols from each | |
4052 | shared library when you type the ``sharedlibrary'' command. | |
4053 | It can be abbreviated ``share''. | |
4054 | ||
4055 | sharedlibrary REGEXP: Load shared object library symbols for files | |
4056 | matching a unix regular expression. No argument | |
4057 | indicates to load symbols for all shared libraries. | |
4058 | ||
4059 | info sharedlibrary: Status of loaded shared libraries. | |
4060 | ||
4061 | ||
4062 | * Watchpoints | |
4063 | ||
4064 | A watchpoint stops execution of a program whenever the value of an | |
4065 | expression changes. Checking for this slows down execution | |
4066 | tremendously whenever you are in the scope of the expression, but is | |
4067 | quite useful for catching tough ``bit-spreader'' or pointer misuse | |
4068 | problems. Some machines such as the 386 have hardware for doing this | |
4069 | more quickly, and future versions of gdb will use this hardware. | |
4070 | ||
4071 | watch EXP: Set a watchpoint (breakpoint) for an expression. | |
4072 | ||
4073 | info watchpoints: Information about your watchpoints. | |
4074 | ||
4075 | delete N: Deletes watchpoint number N (same as breakpoints). | |
4076 | disable N: Temporarily turns off watchpoint number N (same as breakpoints). | |
4077 | enable N: Re-enables watchpoint number N (same as breakpoints). | |
4078 | ||
4079 | ||
4080 | * C++ multiple inheritance | |
4081 | ||
4082 | When used with a GCC version 2 compiler, GDB supports multiple inheritance | |
4083 | for C++ programs. | |
4084 | ||
4085 | * C++ exception handling | |
4086 | ||
4087 | Gdb now supports limited C++ exception handling. Besides the existing | |
4088 | ability to breakpoint on an exception handler, gdb can breakpoint on | |
4089 | the raising of an exception (before the stack is peeled back to the | |
4090 | handler's context). | |
4091 | ||
4092 | catch FOO: If there is a FOO exception handler in the dynamic scope, | |
4093 | set a breakpoint to catch exceptions which may be raised there. | |
4094 | Multiple exceptions (``catch foo bar baz'') may be caught. | |
4095 | ||
4096 | info catch: Lists all exceptions which may be caught in the | |
4097 | current stack frame. | |
4098 | ||
4099 | ||
4100 | * Minor command changes | |
4101 | ||
4102 | The command ``call func (arg, arg, ...)'' now acts like the print | |
4103 | command, except it does not print or save a value if the function's result | |
4104 | is void. This is similar to dbx usage. | |
4105 | ||
4106 | The ``up'' and ``down'' commands now always print the frame they end up | |
4107 | at; ``up-silently'' and `down-silently'' can be used in scripts to change | |
4108 | frames without printing. | |
4109 | ||
4110 | * New directory command | |
4111 | ||
4112 | 'dir' now adds directories to the FRONT of the source search path. | |
4113 | The path starts off empty. Source files that contain debug information | |
4114 | about the directory in which they were compiled can be found even | |
4115 | with an empty path; Sun CC and GCC include this information. If GDB can't | |
4116 | find your source file in the current directory, type "dir .". | |
4117 | ||
4118 | * Configuring GDB for compilation | |
4119 | ||
4120 | For normal use, type ``./configure host''. See README or gdb.texinfo | |
4121 | for more details. | |
4122 | ||
4123 | GDB now handles cross debugging. If you are remotely debugging between | |
4124 | two different machines, type ``./configure host -target=targ''. | |
4125 | Host is the machine where GDB will run; targ is the machine | |
4126 | where the program that you are debugging will run. |