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