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