Using DTrace to Demystify Watchpoints in the Sun Studio dbx Debugger
This article intends to educate users on how to use the watchpoint facility in the Sun Studio dbx debugger. The dbx debugger can be used for both source-level and instruction-level debugging.
hey everyone,
i'm having a little problem with my dbx debugger.
the problem is that when i try to print a struct it print it as a struct from another type. i even tried casting the struct to its type and it still print it as the other type..
anyone had that problem and solved it? or maybe have... (4 Replies)
I have tried lots of stuff but i can't get it working, i have also found a Thread in this Forum about it but it didn't describe how the program has to be run ect.
My issue is that i want to run a program with multiple arguments eg.
./myprog arg1 arg2 arg3 arg4 arg5
with dbx, but i cant get... (8 Replies)
Hi,
Do you know where I can get a copy of Sun One Studio 12? I've looked on the Oracle Website but cannot find it to download!:confused:
Thanks,
Sparcman (1 Reply)
Is it possible to build Boost 1.35 using Sun Studio 10?
I can build Boost 1.35 using Sun Studio 11 successful. However, i'm unable to build it using Sun Studio 10 using the exact method.
I really apprecaite if any expert can help on this.
Thanks, (2 Replies)
Is it possible to use the dbx debugger with the CL options for the executable ?
Say you have created a executable called myfunc which can take string arguments at run-time. You run it like this
./myfunc Hello World
where Hello and World are the string arguments
My question is whether... (1 Reply)
I am using Sun Studio. But there is problem with it. When my PC is connected to INTERNET then there is no problem in starting Sun Studio. But When my PC is not connected to INTERNET then there is problem in starting Sun Studio. With out INTERNET i run sunstudio but after waiting long time nothing... (0 Replies)
Hi All,
I want to install dbx on Sun box, Please help me how to install it and where i get the dbx free software for Sun Solaries 9 OS.
Thanks in Advance.....
Regards,
Sridhar. (1 Reply)
kadb(1M) System Administration Commands kadb(1M)NAME
kadb - a kernel debugger
SYNOPSIS
SPARC
ok boot device_specifier kadb [-d] [boot-flags]
x86
select (b)oot or (i)nterpreter: b kadb [-d] [boot-flags]
DESCRIPTION
kadb, an interactive kernel debugger, has been replaced by kmdb(1). For backwards compatibility, the methods used to load kadb will be
interpreted as requests to load kmdb(1). Unlike with the compatibility link from adb(1) to mdb(1), kmdb(1) will always load in its native
user interface mode, regardless of the name used to load it.
kmdb(1) is based on mdb(1), and thus shares mdb's user interface style and feature set. The mdb(1) man page describes the features and
operation of mdb. The kmdb(1) man page describes the differences between mdb and kmdb. This man page describes the major changes and incom-
patibilities between kadb and kmdb.
Consult the Solaris Modular Debugger Guide for a detailed description of both mdb and kmdb.
Major changes
This section briefly lists the major differences between kadb and kmdb. It is not intended to be exhaustive.
Debugger Loading and Unloading
kmdb(1) may be loaded at boot, as with kadb. It may also be loaded after boot, thus allowing for kernel debugging and execution control
without requiring a system reboot. If kmdb(1) is loaded after boot, it may be unloaded.
mdb Feature Set
The features introduced by mdb(1), including access to kernel type data, debugger commands (dcmds), debugger modules (dmods), and
enhanced execution control facilities, are available under kmdb(1). Support for changing the representative CPU (:x) is available for
both SPARC and x86. Furthermore, full execution-control facilities are available after the representative CPU has been changed.
Significant Incompatibilities
This section lists the significant features that have changed incompatibly between kadb and kmdb(1). It is not intended to be exhaustive.
All kmdb(1) commands referenced here are fully described in the kmdb(1) man page. A description as well as examples can be found in the
Solaris Modular Debugger Guide.
Deferred Breakpoints
The kadb-style "module#symbol:b" syntax is not supported under kmdb(1). Instead, use "::bp module`symbol".
Watchpoints
The ::wp dcmd is the preferred way to set watchpoint with kmdb. Various options are available to control the type of watchpoint set,
including -p for physical watchpoints (SPARC only), and -i for I/O port watchpoints (x86 only). $l is not supported, therefore, the
watchpoint size must be specified for each watchpoint created.
Access to I/O Ports (x86 only)
The commands used to access I/O ports under kadb have been replaced with the ::in and ::out dcmds. These two dcmds allow both read and
write of all I/O port sizes supported by kadb.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWcar |
+-----------------------------+-----------------------------+
SEE ALSO adb(1), mdb(1), kmdb(1), attributes(5)
Solaris Modular Debugger Guide
SunOS 5.10 2 Jul 2004 kadb(1M)