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