- removed warnings "xxxxx" might be used uninitialized in this function (arm_simulator.c)
authormifi <mifi@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Sat, 1 Mar 2008 19:13:05 +0000 (19:13 +0000)
committermifi <mifi@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Sat, 1 Mar 2008 19:13:05 +0000 (19:13 +0000)
- some cosmetic changes

git-svn-id: svn://svn.berlios.de/openocd/trunk@423 b42882b7-edfa-0310-969c-e2dbd0fdcd60

src/helper/options.c
src/openocd.c
src/target/arm_simulator.c

index b037a5eda55b9475ae817accc662ce7e473e755a..23b0a63707b149dc058d805919a57b121701d3ce 100644 (file)
@@ -115,7 +115,7 @@ int parse_cmdline_args(struct command_context_s *cmd_ctx, int argc, char *argv[]
                OUTPUT("--help       | -h\tdisplay this help\n");
                OUTPUT("--version    | -v\tdisplay OpenOCD version\n");
                OUTPUT("--file       | -f\tuse configuration file <name>\n");
                OUTPUT("--help       | -h\tdisplay this help\n");
                OUTPUT("--version    | -v\tdisplay OpenOCD version\n");
                OUTPUT("--file       | -f\tuse configuration file <name>\n");
-               OUTPUT("--search     | -s\tdir to search for config files and scripts.\n");
+               OUTPUT("--search     | -s\tdir to search for config files and scripts\n");
                OUTPUT("--debug      | -d\tset debug level <0-3>\n");
                OUTPUT("--log_output | -l\tredirect log output to file <name>\n");
                OUTPUT("--command    | -c\trun <command>\n");
                OUTPUT("--debug      | -d\tset debug level <0-3>\n");
                OUTPUT("--log_output | -l\tredirect log output to file <name>\n");
                OUTPUT("--command    | -c\trun <command>\n");
index 43be9af58052d14a9086d0fe8fbbe8eca1038944..fac385a1f11b6fbf3126428e8826abc5a9f8cf4b 100644 (file)
@@ -152,3 +152,4 @@ int main(int argc, char *argv[])
 
        return EXIT_SUCCESS;
 }
 
        return EXIT_SUCCESS;
 }
+
index 4ed0558605e17bd5cc030dc608413012848a1711..b47606d633bb55a20852f50df3ab88881cc45ebc 100644 (file)
@@ -32,7 +32,7 @@
 
 u32 arm_shift(u8 shift, u32 Rm, u32 shift_amount, u8 *carry)
 {
 
 u32 arm_shift(u8 shift, u32 Rm, u32 shift_amount, u8 *carry)
 {
-       u32 return_value;
+       u32 return_value = 0;
        shift_amount &= 0xff;
        
        if (shift == 0x0) /* LSL */
        shift_amount &= 0xff;
        
        if (shift == 0x0) /* LSL */
@@ -466,7 +466,7 @@ int arm_simulate_step(target_t *target, u32 *dry_run_pc)
        /* load register instructions */
        else if ((instruction.type >= ARM_LDR) && (instruction.type <= ARM_LDRSH))
        {
        /* load register instructions */
        else if ((instruction.type >= ARM_LDR) && (instruction.type <= ARM_LDRSH))
        {
-               u32 load_address, modified_address, load_value;
+               u32 load_address = 0, modified_address = 0, load_value;
                u32 Rn = buf_get_u32(ARMV4_5_CORE_REG_MODE(armv4_5->core_cache, armv4_5->core_mode, instruction.info.load_store.Rn).value, 0, 32);
                
                /* adjust Rn in case the PC is being read */
                u32 Rn = buf_get_u32(ARMV4_5_CORE_REG_MODE(armv4_5->core_cache, armv4_5->core_mode, instruction.info.load_store.Rn).value, 0, 32);
                
                /* adjust Rn in case the PC is being read */

Linking to existing account procedure

If you already have an account and want to add another login method you MUST first sign in with your existing account and then change URL to read https://review.openocd.org/login/?link to get to this page again but this time it'll work for linking. Thank you.

SSH host keys fingerprints

1024 SHA256:YKx8b7u5ZWdcbp7/4AeXNaqElP49m6QrwfXaqQGJAOk gerrit-code-review@openocd.zylin.com (DSA)
384 SHA256:jHIbSQa4REvwCFG4cq5LBlBLxmxSqelQPem/EXIrxjk gerrit-code-review@openocd.org (ECDSA)
521 SHA256:UAOPYkU9Fjtcao0Ul/Rrlnj/OsQvt+pgdYSZ4jOYdgs gerrit-code-review@openocd.org (ECDSA)
256 SHA256:A13M5QlnozFOvTllybRZH6vm7iSt0XLxbA48yfc2yfY gerrit-code-review@openocd.org (ECDSA)
256 SHA256:spYMBqEYoAOtK7yZBrcwE8ZpYt6b68Cfh9yEVetvbXg gerrit-code-review@openocd.org (ED25519)
+--[ED25519 256]--+
|=..              |
|+o..   .         |
|*.o   . .        |
|+B . . .         |
|Bo. = o S        |
|Oo.+ + =         |
|oB=.* = . o      |
| =+=.+   + E     |
|. .=o   . o      |
+----[SHA256]-----+
2048 SHA256:0Onrb7/PHjpo6iVZ7xQX2riKN83FJ3KGU0TvI0TaFG4 gerrit-code-review@openocd.zylin.com (RSA)