1
0
Fork 0
mirror of https://git.freebsd.org/ports.git synced 2025-07-09 05:19:16 -04:00
ports/devel/fpc-gdb/files/patch-gdb_symfile.c
Joe Marcus Clarke 95c01a7ffa 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>
2004-02-22 01:52:20 +00:00

15 lines
501 B
C

--- 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. */