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