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