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