Date: Tue, 28 May 2002 15:54:21 +0200 (CEST) From: Nick Hibma <n_hibma@van-laarhoven.org> To: grog@freebsd.org Cc: FreeBSD CURRENT Mailing List <current@FreeBSD.ORG> Subject: gdb52 patch for your .gdbinit files Message-ID: <20020528155213.Y231-100000@heather.van-laarhoven.org>
next in thread | raw e-mail | index | archive | help
I'm using a derivative of the .gdbinit.vinum files that is available in
the modules/vinum directory. For them to work the following patch is
needed in gdb52.
As you can see, the patch is trivial, so I have no clue why this wasn't
left alone when they modified symfile.c. If I can be bothered I'll
submit it to them.
Nick
# diff -wu gdb-5.2/gdb/symfile.c~ gdb-5.2/gdb/symfile.c
--- gdb-5.2/gdb/symfile.c~      Tue May 28 15:51:37 2002
+++ gdb-5.2/gdb/symfile.c       Tue May 28 15:51:06 2002
@@ -1546,11 +1546,15 @@
       char *val = sect_opts[i].value;
       char *sec = sect_opts[i].name;
+#ifdef 0
       val = sect_opts[i].value;
       if (val[0] == '0' && val[1] == 'x')
        addr = strtoul (val+2, NULL, 16);
       else
        addr = strtoul (val, NULL, 10);
+#else
+      addr = parse_and_eval_address(val);
+#endif
       /* Here we store the section offsets in the order they were
          entered on the command line. */
-- 
n_hibma@van-laarhoven.org                  http://www.van-laarhoven.org/
n_hibma@FreeBSD.org                        http://www.etla.net/~n_hibma/
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020528155213.Y231-100000>
