summaryrefslogtreecommitdiff
path: root/devel/fpc-gdb/files/patch-gdb_symfile.c
diff options
context:
space:
mode:
authorJoe Marcus Clarke <marcus@FreeBSD.org>2004-02-22 01:52:20 +0000
committerJoe Marcus Clarke <marcus@FreeBSD.org>2004-02-22 01:52:20 +0000
commit95c01a7ffade817ad93dcb886be5145b4c87294f (patch)
tree6b074ab9d16f0c91e117bc07f15d021e13aabec5 /devel/fpc-gdb/files/patch-gdb_symfile.c
parentDon my portmgr hat and return dirk@FreeBSD.org's ports back to the (diff)
Add fpc-gdb, a GNU GDB 5.2.1 modified for use with Free Pascal and to provide
static libraries for linking with fpc-ide. PR: 62570 Submitted by: John Merryweather Cooper <coop9211@uidaho.edu>
Notes
Notes: svn path=/head/; revision=101648
Diffstat (limited to 'devel/fpc-gdb/files/patch-gdb_symfile.c')
-rw-r--r--devel/fpc-gdb/files/patch-gdb_symfile.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/devel/fpc-gdb/files/patch-gdb_symfile.c b/devel/fpc-gdb/files/patch-gdb_symfile.c
new file mode 100644
index 000000000000..99c75ffe04bf
--- /dev/null
+++ b/devel/fpc-gdb/files/patch-gdb_symfile.c
@@ -0,0 +1,15 @@
+--- gdb/symfile.c Tue Feb 26 17:40:36 2002
++++ gdb/symfile.c Wed May 29 11:10:17 2002
+@@ -1546,11 +1546,7 @@
+ char *val = sect_opts[i].value;
+ char *sec = sect_opts[i].name;
+
+- val = sect_opts[i].value;
+- if (val[0] == '0' && val[1] == 'x')
+- addr = strtoul (val+2, NULL, 16);
+- else
+- addr = strtoul (val, NULL, 10);
++ addr = parse_and_eval_address(val);
+
+ /* Here we store the section offsets in the order they were
+ entered on the command line. */