diff options
author | Andrew Cagney <cagney@redhat.com> | 2004-08-07 20:07:33 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2004-08-07 20:07:33 +0000 |
commit | 82ae256166a0f508719bca65c72e3f84674e7a30 (patch) | |
tree | 6a579861cbc2ae2a56f3d95fb73bffaa14e83cbd | |
parent | 74e063bc30a58ab7faff6e2d6be199479e988611 (diff) | |
download | gdb-82ae256166a0f508719bca65c72e3f84674e7a30.zip gdb-82ae256166a0f508719bca65c72e3f84674e7a30.tar.gz gdb-82ae256166a0f508719bca65c72e3f84674e7a30.tar.bz2 |
2004-08-07 Andrew Cagney <cagney@gnu.org>
* doublest.c (floatformat_from_length): Fix tipo, "*" not "&".
-rw-r--r-- | gdb/ChangeLog | 2 | ||||
-rw-r--r-- | gdb/doc/gdb.texinfo | 34 | ||||
-rw-r--r-- | gdb/doublest.c | 2 |
3 files changed, 27 insertions, 11 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index d6701d2..9414fe6 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,7 @@ 2004-08-07 Andrew Cagney <cagney@gnu.org> + * doublest.c (floatformat_from_length): Fix tipo, "*" not "&". + * doublest.c: Update copyright. (floatformat_from_length): Call error when floatformat is NULL. (extract_floating_by_length): Remove NULL fmt check. diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo index 4acd231..0431084 100644 --- a/gdb/doc/gdb.texinfo +++ b/gdb/doc/gdb.texinfo @@ -4517,16 +4517,30 @@ the directories could be moved between the compilation and your debugging session. @value{GDBN} has a list of directories to search for source files; this is called the @dfn{source path}. Each time @value{GDBN} wants a source file, it tries all the directories in the list, in the order they are present -in the list, until it finds a file with the desired name. Note that -the executable search path is @emph{not} used for this purpose. Neither is -the current working directory, unless it happens to be in the source -path. - -If @value{GDBN} cannot find a source file in the source path, and the -object program records a directory, @value{GDBN} tries that directory -too. If the source path is empty, and there is no record of the -compilation directory, @value{GDBN} looks in the current directory as a -last resort. +in the list, until it finds a file with the desired name. + +For example, suppose an executable references the file +@file{/usr/src/foo-1.0/lib/foo.c}, and our source path is +@file{/mnt/cross}. The file is first looked up literally; if this +fails, @file{/mnt/cross/usr/src/foo-1.0/lib/foo.c} is tried; if this +fails, @file{/mnt/cross/foo.c} is opened; if this fails, an error +message is printed. @value{GDBN} does not look up the parts of the +source file name, such as @file{/mnt/cross/src/foo-1.0/lib/foo.c}. +Likewise, the subdirectories of the source path are not searched: if +the source path is @file{/mnt/cross}, and the binary refers to +@file{foo.c}, @value{GDBN} would not find it under +@file{/mnt/cross/usr/src/foo-1.0/lib}. + +Plain file names, relative file names with leading directories, file +names containing dots, etc.@: are all treated as described above; for +instance, if the source path is @file{/mnt/cross}, and the source file +is recorded as @file{../lib/foo.c}, @value{GDBN} would first try +@file{../lib/foo.c}, then @file{/mnt/cross/../lib/foo.c}, and after +that---@file{/mnt/cross/foo.c}. + +Note that the executable search path is @emph{not} used to locate the +source files. Neither is the current working directory, unless it +happens to be in the source path. Whenever you reset or rearrange the source path, @value{GDBN} clears out any information it has cached about where source files are found and where diff --git a/gdb/doublest.c b/gdb/doublest.c index 75076b9..266675e 100644 --- a/gdb/doublest.c +++ b/gdb/doublest.c @@ -655,7 +655,7 @@ floatformat_from_length (int len) format = NULL; if (format == NULL) error ("Unrecognized %d-bit floating-point type.", - len & TARGET_CHAR_BIT); + len * TARGET_CHAR_BIT); return format; } |