Implement pahole-like 'ptype /o' option
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.base / dprintf-detach.exp
index 798bf9fd1e5aa1d655e1948176bd8b1ea327f721..940a9ef537ef6421a61b89903aaf6f60e9902ae8 100644 (file)
@@ -1,4 +1,4 @@
-#   Copyright 2014-2016 Free Software Foundation, Inc.
+#   Copyright 2014-2017 Free Software Foundation, Inc.
 
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -46,14 +46,14 @@ proc dprintf_detach_test { breakpoint_always_inserted dprintf_style disconnected
        gdb_test_no_output "set disconnected-dprintf ${disconnected_dprintf}"
 
        if ![runto_main] {
-           fail "Can't run to main"
+           fail "can't run to main"
            return -1
        }
 
        # Get PID of test program.
        set inferior_pid -1
        set test "get inferior process ID"
-       gdb_test_multiple "call getpid ()" $test {
+       gdb_test_multiple "call (int) getpid ()" $test {
            -re ".* = ($decimal).*$gdb_prompt $" {
                set inferior_pid $expect_out(1,string)
                pass $test
This page took 0.025698 seconds and 4 git commands to generate.