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