This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug remote/14740] New: Remote protocol doesn't allow to specifytracepoint kind


http://sourceware.org/bugzilla/show_bug.cgi?id=14740

             Bug #: 14740
           Summary: Remote protocol doesn't allow to specify tracepoint
                    kind
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: remote
        AssignedTo: unassigned@sourceware.org
        ReportedBy: m.lesniewski@samsung.com
    Classification: Unclassified


The QTDP packet of the remote protocol, which is used to create a new
tracepoint, does not allow to specify the kind (or length) of tracepoint to
insert. It only contains the tracepoint address. This information may be
insufficient, because sometimes there may be differences in inserting
breakpoints at different addresses.

For example, in the ARM architecture, there are two instruction sets: ARM (32
bit) and Thumb (mixed 16 and 32 bit). Unfortunately, it is impossible to
determine the instruction set at a given address by only looking at the
instruction code.  

The client (gdb) can determine the instruction set by searching for special
mapping symbols in the binary file (and sometimes by looking at debugging
information like DWARF). The server often does not even have access to this
information directly because the binary being actually debugged is stripped.

For this reason it might be useful to extend the QTDP packet format to allow
specifying the kind of tracepoint/instruction set at the given point. 

For breakpoints and watchpoints, which are inserted using the 'Z' packets,
information about the instruction set/breakpoint type can be supplied using the
'kind' parameter. Perhaps tracepoint packets could have a 'kind' parameter too.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]