diff options
author | Yao Qi <yao@codesourcery.com> | 2014-01-03 19:19:51 +0800 |
---|---|---|
committer | Yao Qi <yao@codesourcery.com> | 2014-01-14 22:20:51 +0800 |
commit | dea80a27057a9bbf87f0bf5675b5a03ddd6fe18c (patch) | |
tree | 26b08df9bafbdfbae82f23df65c0be818afb4cba /gdb | |
parent | b55e14c72c74ad4bcab302f9a81651ced881c415 (diff) | |
download | gdb-dea80a27057a9bbf87f0bf5675b5a03ddd6fe18c.zip gdb-dea80a27057a9bbf87f0bf5675b5a03ddd6fe18c.tar.gz gdb-dea80a27057a9bbf87f0bf5675b5a03ddd6fe18c.tar.bz2 |
Change 'len' of linux_common_xfer_osdata to ULONGEST.
gdb:
2014-01-14 Yao Qi <yao@codesourcery.com>
* common/linux-osdata.c (linux_xfer_osdata_processes): Change
type of 'len' to ULONGEST.
(linux_xfer_osdata_processgroups): Likewise.
(linux_xfer_osdata_threads): Likewise.
(linux_xfer_osdata_fds): Likewise.
(linux_xfer_osdata_isockets): Likewise.
(linux_xfer_osdata_shm): Likewise.
(linux_xfer_osdata_sem): Likewise.
(linux_xfer_osdata_msg): Likewise.
(linux_common_xfer_osdata): Likewise.
(struct osdata_type) <getter>: Likewise.
* common/linux-osdata.h (linux_common_xfer_osdata): Update
the declaration.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 16 | ||||
-rw-r--r-- | gdb/common/linux-osdata.c | 22 | ||||
-rw-r--r-- | gdb/common/linux-osdata.h | 2 |
3 files changed, 28 insertions, 12 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index f157c99..861d277 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,21 @@ 2014-01-14 Yao Qi <yao@codesourcery.com> + * common/linux-osdata.c (linux_xfer_osdata_processes): Change + type of 'len' to ULONGEST. + (linux_xfer_osdata_processgroups): Likewise. + (linux_xfer_osdata_threads): Likewise. + (linux_xfer_osdata_fds): Likewise. + (linux_xfer_osdata_isockets): Likewise. + (linux_xfer_osdata_shm): Likewise. + (linux_xfer_osdata_sem): Likewise. + (linux_xfer_osdata_msg): Likewise. + (linux_common_xfer_osdata): Likewise. + (struct osdata_type) <getter>: Likewise. + * common/linux-osdata.h (linux_common_xfer_osdata): Update + the declaration. + +2014-01-14 Yao Qi <yao@codesourcery.com> + * target.h (target_xfer_partial_ftype): Update. (struct target_ops) <to_xfer_partial>: Change 'len' type to ULONGEST. diff --git a/gdb/common/linux-osdata.c b/gdb/common/linux-osdata.c index 359ab18..805850c 100644 --- a/gdb/common/linux-osdata.c +++ b/gdb/common/linux-osdata.c @@ -301,7 +301,7 @@ get_cores_used_by_process (PID_T pid, int *cores) static LONGEST linux_xfer_osdata_processes (gdb_byte *readbuf, - ULONGEST offset, LONGEST len) + ULONGEST offset, ULONGEST len) { /* We make the process list snapshot when the object starts to be read. */ static const char *buf; @@ -449,7 +449,7 @@ compare_processes (const void *process1, const void *process2) static LONGEST linux_xfer_osdata_processgroups (gdb_byte *readbuf, - ULONGEST offset, LONGEST len) + ULONGEST offset, ULONGEST len) { /* We make the process list snapshot when the object starts to be read. */ static const char *buf; @@ -565,7 +565,7 @@ linux_xfer_osdata_processgroups (gdb_byte *readbuf, static LONGEST linux_xfer_osdata_threads (gdb_byte *readbuf, - ULONGEST offset, LONGEST len) + ULONGEST offset, ULONGEST len) { /* We make the process list snapshot when the object starts to be read. */ static const char *buf; @@ -679,7 +679,7 @@ linux_xfer_osdata_threads (gdb_byte *readbuf, static LONGEST linux_xfer_osdata_fds (gdb_byte *readbuf, - ULONGEST offset, LONGEST len) + ULONGEST offset, ULONGEST len) { /* We make the process list snapshot when the object starts to be read. */ static const char *buf; @@ -986,7 +986,7 @@ print_sockets (unsigned short family, int tcp, struct buffer *buffer) static LONGEST linux_xfer_osdata_isockets (gdb_byte *readbuf, - ULONGEST offset, LONGEST len) + ULONGEST offset, ULONGEST len) { static const char *buf; static LONGEST len_avail = -1; @@ -1067,7 +1067,7 @@ group_from_gid (char *group, int maxlen, gid_t gid) static LONGEST linux_xfer_osdata_shm (gdb_byte *readbuf, - ULONGEST offset, LONGEST len) + ULONGEST offset, ULONGEST len) { static const char *buf; static LONGEST len_avail = -1; @@ -1195,7 +1195,7 @@ linux_xfer_osdata_shm (gdb_byte *readbuf, static LONGEST linux_xfer_osdata_sem (gdb_byte *readbuf, - ULONGEST offset, LONGEST len) + ULONGEST offset, ULONGEST len) { static const char *buf; static LONGEST len_avail = -1; @@ -1307,7 +1307,7 @@ linux_xfer_osdata_sem (gdb_byte *readbuf, static LONGEST linux_xfer_osdata_msg (gdb_byte *readbuf, - ULONGEST offset, LONGEST len) + ULONGEST offset, ULONGEST len) { static const char *buf; static LONGEST len_avail = -1; @@ -1433,7 +1433,7 @@ linux_xfer_osdata_msg (gdb_byte *readbuf, static LONGEST linux_xfer_osdata_modules (gdb_byte *readbuf, - ULONGEST offset, LONGEST len) + ULONGEST offset, ULONGEST len) { static const char *buf; static LONGEST len_avail = -1; @@ -1542,7 +1542,7 @@ struct osdata_type { char *type; char *title; char *description; - LONGEST (*getter) (gdb_byte *readbuf, ULONGEST offset, LONGEST len); + LONGEST (*getter) (gdb_byte *readbuf, ULONGEST offset, ULONGEST len); } osdata_table[] = { { "processes", "Processes", "Listing of all processes", linux_xfer_osdata_processes }, @@ -1567,7 +1567,7 @@ struct osdata_type { LONGEST linux_common_xfer_osdata (const char *annex, gdb_byte *readbuf, - ULONGEST offset, LONGEST len) + ULONGEST offset, ULONGEST len) { if (!annex || *annex == '\0') { diff --git a/gdb/common/linux-osdata.h b/gdb/common/linux-osdata.h index 73def86..e9d4f3c 100644 --- a/gdb/common/linux-osdata.h +++ b/gdb/common/linux-osdata.h @@ -24,6 +24,6 @@ extern int linux_common_core_of_thread (ptid_t ptid); extern LONGEST linux_common_xfer_osdata (const char *annex, gdb_byte *readbuf, - ULONGEST offset, LONGEST len); + ULONGEST offset, ULONGEST len); #endif |