You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2025/01/03 00:52:38 UTC

(nuttx) branch master updated (6b1be7c66c -> 9f93621b90)

This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git


    from 6b1be7c66c virtio-rng: Register /dev/urandom driver if CONFIG_DEV_URANDOM=y
     new 6f9d0c97d2 libs/libc/gdbstub/lib_gdbstub.c: fix format for trap response
     new 9f93621b90 libs/libc/gdbstub/lib_gdbstub.c: fix warning

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 libs/libc/gdbstub/lib_gdbstub.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)


(nuttx) 02/02: libs/libc/gdbstub/lib_gdbstub.c: fix warning

Posted by xi...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git

commit 9f93621b90c5ab91c4ea4d45965937636882eeb8
Author: p-szafonimateusz <p-...@xiaomi.com>
AuthorDate: Mon Dec 16 11:35:24 2024 +0100

    libs/libc/gdbstub/lib_gdbstub.c: fix warning
    
    libs/libc/gdbstub/lib_gdbstub.c: fix warning
    
    Signed-off-by: p-szafonimateusz <p-...@xiaomi.com>
---
 libs/libc/gdbstub/lib_gdbstub.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libs/libc/gdbstub/lib_gdbstub.c b/libs/libc/gdbstub/lib_gdbstub.c
index ed83a9148e..2da89228e3 100644
--- a/libs/libc/gdbstub/lib_gdbstub.c
+++ b/libs/libc/gdbstub/lib_gdbstub.c
@@ -1376,11 +1376,11 @@ static int gdb_query(FAR struct gdb_state_s *state)
     {
 #ifdef CONFIG_ARCH_HAVE_DEBUG
       state->pkt_len = sprintf(state->pkt_buf,
-                               "hwbreak+;PacketSize=%x",
+                               "hwbreak+;PacketSize=%zx",
                                sizeof(state->pkt_buf));
 #else
       state->pkt_len = sprintf(state->pkt_buf,
-                               "PacketSize=%x",
+                               "PacketSize=%zx",
                                sizeof(state->pkt_buf));
 #endif
       gdb_send_packet(state);


(nuttx) 01/02: libs/libc/gdbstub/lib_gdbstub.c: fix format for trap response

Posted by xi...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git

commit 6f9d0c97d2fbdeeb654e5a6fbde0d3c1e73caddb
Author: p-szafonimateusz <p-...@xiaomi.com>
AuthorDate: Tue Dec 17 13:23:42 2024 +0100

    libs/libc/gdbstub/lib_gdbstub.c: fix format for trap response
    
    fix gdb crash after a few step breakpoints because trap is not correctly reported
    
    Signed-off-by: p-szafonimateusz <p-...@xiaomi.com>
---
 libs/libc/gdbstub/lib_gdbstub.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libs/libc/gdbstub/lib_gdbstub.c b/libs/libc/gdbstub/lib_gdbstub.c
index ace1307938..ed83a9148e 100644
--- a/libs/libc/gdbstub/lib_gdbstub.c
+++ b/libs/libc/gdbstub/lib_gdbstub.c
@@ -1609,7 +1609,7 @@ retry:
 
       case GDB_STOPREASON_CTRLC:
       default:
-        ret = sprintf(state->pkt_buf, "T05thread:%d;", state->pid + 1);
+        ret = sprintf(state->pkt_buf, "T05thread:%x;", state->pid + 1);
     }
 
   if (ret < 0)