This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[ob] fix building with Sun CC
- From: Pedro Alves <pedro at codesourcery dot com>
- To: gdb-patches at sourceware dot org
- Date: Sat, 16 Aug 2008 23:30:05 +0100
- Subject: [ob] fix building with Sun CC
Building current head with a recent Sun CC fails with:
"../../src/gdb/mi/mi-main.c", line 113: void function cannot return value
"../../src/gdb/mi/mi-main.c", line 120: void function cannot return value
"../../src/gdb/mi/mi-main.c", line 127: void function cannot return value
"../../src/gdb/mi/mi-main.c", line 134: void function cannot return value
"../../src/gdb/mi/mi-main.c", line 141: void function cannot return value
With this patch a full build completes successfully.
Checked in as obvious.
--
Pedro Alves
2008-08-16 Pedro Alves <pedro@codesourcery.com>
* mi/mi-main.c (mi_cmd_exec_next, mi_cmd_exec_next_instruction)
(mi_cmd_exec_step, mi_cmd_exec_step_instruction)
(mi_cmd_exec_finish): Remove "return".
---
gdb/mi/mi-main.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
Index: src/gdb/mi/mi-main.c
===================================================================
--- src.orig/gdb/mi/mi-main.c 2008-08-12 01:01:39.000000000 +0100
+++ src/gdb/mi/mi-main.c 2008-08-12 01:02:20.000000000 +0100
@@ -110,35 +110,35 @@ void
mi_cmd_exec_next (char *command, char **argv, int argc)
{
/* FIXME: Should call a libgdb function, not a cli wrapper. */
- return mi_execute_async_cli_command ("next", argv, argc);
+ mi_execute_async_cli_command ("next", argv, argc);
}
void
mi_cmd_exec_next_instruction (char *command, char **argv, int argc)
{
/* FIXME: Should call a libgdb function, not a cli wrapper. */
- return mi_execute_async_cli_command ("nexti", argv, argc);
+ mi_execute_async_cli_command ("nexti", argv, argc);
}
void
mi_cmd_exec_step (char *command, char **argv, int argc)
{
/* FIXME: Should call a libgdb function, not a cli wrapper. */
- return mi_execute_async_cli_command ("step", argv, argc);
+ mi_execute_async_cli_command ("step", argv, argc);
}
void
mi_cmd_exec_step_instruction (char *command, char **argv, int argc)
{
/* FIXME: Should call a libgdb function, not a cli wrapper. */
- return mi_execute_async_cli_command ("stepi", argv, argc);
+ mi_execute_async_cli_command ("stepi", argv, argc);
}
void
mi_cmd_exec_finish (char *command, char **argv, int argc)
{
/* FIXME: Should call a libgdb function, not a cli wrapper. */
- return mi_execute_async_cli_command ("finish", argv, argc);
+ mi_execute_async_cli_command ("finish", argv, argc);
}
void