old-cross-binutils/gdb/cli
Pitchumani Sivanupandi cbd641edf3 parse load_offset (bias) of restore command as long
Following failures are noticed for avr-gdb. This may be the case
for targets like AVR which has integer_to_address hook defined.

FAIL: gdb.base/dump.exp: struct copy, srec; value restored ok
FAIL: gdb.base/dump.exp: struct copy, ihex; value restored ok
FAIL: gdb.base/dump.exp: struct copy, tekhex; value restored ok

These tests are failed because load_offset(bias) of restore command
parsed as address.

command: restore filename [binary] bias start end

Except binary, other BFDs have a built-in location; gdb restores content
at offset 'bias' from that location. So, 'bias' of 'restore' command should
be parsed as address only when the file is binary.

Below patch changes gdb to parse 'bias' as long if the file is not binary.

gdb/ChangeLog

2015-10-06  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>

	* cli/cli-dump.c (restore_command): Parse load_offset (bias) as address
	only when the file is binary.
2015-10-06 18:29:03 +02:00
..
cli-cmds.c Add some more casts (1/2) 2015-09-25 14:08:07 -04:00
cli-cmds.h Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
cli-decode.c gdb/cli: Remove casts of NULL during assignment. 2015-09-04 16:50:20 +01:00
cli-decode.h C++ keyword cleanliness, mostly auto-generated 2015-02-27 16:33:07 +00:00
cli-dump.c parse load_offset (bias) of restore command as long 2015-10-06 18:29:03 +02:00
cli-interp.c Add casts to memory allocation related calls 2015-09-25 14:08:06 -04:00
cli-logging.c PR mi/18833 gdb.execute ("set param value", to_string=True) will crash gdb if using MI 2015-08-18 14:02:03 -07:00
cli-script.c cli-script.c: Fix read_next_line's comment 2015-09-28 18:34:54 -04:00
cli-script.h Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
cli-setshow.c Add casts to memory allocation related calls 2015-09-25 14:08:06 -04:00
cli-setshow.h Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
cli-utils.c Move utility functions to common/ 2015-06-15 17:04:56 +02:00
cli-utils.h Move utility functions to common/ 2015-06-15 17:04:56 +02:00