diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2015-10-26 08:41:38 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@polymtl.ca> | 2015-10-26 08:41:39 -0400 |
commit | 48ffa2b8cd986527a41654c3b27755bbf6762048 (patch) | |
tree | 9feb0abc0efb9752c2e474e2d8794c2108202e9f /gas | |
parent | 585a269afbfdb71b99ae72c22ef5101a800d565c (diff) | |
download | gdb-48ffa2b8cd986527a41654c3b27755bbf6762048.zip gdb-48ffa2b8cd986527a41654c3b27755bbf6762048.tar.gz gdb-48ffa2b8cd986527a41654c3b27755bbf6762048.tar.bz2 |
Fix constness problem in ioscm_make_gdb_stdio_port
ioscm_make_gdb_stdio_port passes const char pointers (literal strings) to
scm_mode_bits, which takes a non-const char pointer. Ideally, we would
change scm_mode_bits to take a const char pointer, but it's not part of
an API we control.
Instead, it's easy enough to build the string to pass to scm_mode_bits in
a (non-const) char array and pass that.
gdb/ChangeLog:
* guile/scm-ports.c (ioscm_make_gdb_stdio_port): Pass non-const
char pointer to scm_mode_bits.
Diffstat (limited to 'gas')
0 files changed, 0 insertions, 0 deletions