public inbox for insight@sourceware.org
 help / color / mirror / Atom feed
* Build gdbtk-cmds.c get error
@ 2010-07-04  8:20 Hui Zhu
  2010-07-04 18:13 ` Keith Seitz
  0 siblings, 1 reply; 5+ messages in thread
From: Hui Zhu @ 2010-07-04  8:20 UTC (permalink / raw)
  To: insight

gcc -g -O2   -I. -I../../src/gdb -I../../src/gdb/common
-I../../src/gdb/config -DLOCALEDIR="\"/usr/local/share/locale\""
-DHAVE_CONFIG_H -I../../src/gdb/../include/opcode
-I../../src/gdb/../opcodes/.. -I../../src/gdb/../readline/.. -I../bfd
-I../../src/gdb/../bfd -I../../src/gdb/../include -I../libdecnumber
-I../../src/gdb/../libdecnumber  -I../../src/gdb/gnulib -Ignulib
-DMI_OUT=1 -DTUI=1  -DGDBTK -I/usr/include -I/usr/include  -Wall
-Wdeclaration-after-statement -Wpointer-arith -Wformat-nonliteral
-Wno-pointer-sign -Wno-unused -Wunused-value -Wunused-function
-Wno-switch -Wno-char-subscripts -Werror -c -o gdbtk-bp.o -MT
gdbtk-bp.o -MMD -MP -MF .deps/gdbtk-bp.Tpo
-I../../src/gdb/../libgui/src
-I/home/teawater/gdb/cvs/src/tcl/generic
-I/home/teawater/gdb/cvs/src/tk/generic
-DGDBTK_LIBRARY=\"/usr/local/share/insight1.0\"
-DSRC_DIR=\"/home/teawater/gdb/cvs/src/gdb\"
../../src/gdb/gdbtk/generic/gdbtk-bp.c
cc1: warnings being treated as errors
../../src/gdb/gdbtk/generic/gdbtk-bp.c: In function 'gdb_set_bp':
../../src/gdb/gdbtk/generic/gdbtk-bp.c:558: error: passing argument 10
of 'create_breakpoint' makes pointer from integer without a cast
../../src/gdb/breakpoint.h:834: note: expected 'struct breakpoint_ops
*' but argument is of type 'int'
../../src/gdb/gdbtk/generic/gdbtk-bp.c:558: error: passing argument 11
of 'create_breakpoint' makes integer from pointer without a cast
../../src/gdb/breakpoint.h:834: note: expected 'int' but argument is
of type 'void *'
../../src/gdb/gdbtk/generic/gdbtk-bp.c:558: error: too many arguments
to function 'create_breakpoint'
make[2]: *** [gdbtk-bp.o] Error 1
make[2]: Leaving directory `/home/teawater/gdb/cvs/bgdb/gdb'
make[1]: *** [all-gdb] Error 2
make[1]: Leaving directory `/home/teawater/gdb/cvs/bgdb'
make: *** [all] Error 2

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Build gdbtk-cmds.c get error
  2010-07-04  8:20 Build gdbtk-cmds.c get error Hui Zhu
@ 2010-07-04 18:13 ` Keith Seitz
  2010-07-05  5:54   ` Hui Zhu
  0 siblings, 1 reply; 5+ messages in thread
From: Keith Seitz @ 2010-07-04 18:13 UTC (permalink / raw)
  To: Hui Zhu; +Cc: insight

[-- Attachment #1: Type: text/plain, Size: 421 bytes --]

On 07/04/2010 01:20 AM, Hui Zhu wrote:
> ../../src/gdb/gdbtk/generic/gdbtk-bp.c:558: error: too many arguments
> to function 'create_breakpoint'

I've committed the attached patch to fix this, another API change in gdb.

Thank you for bringing this to my attention.

Keith

ChangeLog
2010-07-04  Keith Seitz  <keiths@redhat.com>

	* generic/gdbtk-bp.c (gdb_set_bp): Update arguments for API
	change in create_breakpoint.

[-- Attachment #2: update-create-breakpoint-api.patch --]
[-- Type: text/plain, Size: 696 bytes --]

Index: generic/gdbtk-bp.c
===================================================================
RCS file: /cvs/src/src/gdb/gdbtk/generic/gdbtk-bp.c,v
retrieving revision 1.36
diff -u -p -r1.36 gdbtk-bp.c
--- generic/gdbtk-bp.c	2 Apr 2010 23:39:55 -0000	1.36
+++ generic/gdbtk-bp.c	4 Jul 2010 18:09:32 -0000
@@ -549,8 +549,7 @@ gdb_set_bp (ClientData clientData, Tcl_I
       create_breakpoint (get_current_arch (), address, condition, thread,
 			 0	/* condition and thread are valid */,
 			 temp,
-			 0	/* hardware flag */,
-			 0	/* trace flag */,
+			 bp_breakpoint /* type wanted */,
 			 ignore_count,
 			 (pending ? AUTO_BOOLEAN_TRUE : AUTO_BOOLEAN_FALSE),
 			 NULL	/* breakpoint ops */,

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Build gdbtk-cmds.c get error
  2010-07-04 18:13 ` Keith Seitz
@ 2010-07-05  5:54   ` Hui Zhu
  0 siblings, 0 replies; 5+ messages in thread
From: Hui Zhu @ 2010-07-05  5:54 UTC (permalink / raw)
  To: Keith Seitz; +Cc: insight

I am OK now.  Thanks Keith.

Best regards,
Hui

On Mon, Jul 5, 2010 at 02:12, Keith Seitz <keiths@redhat.com> wrote:
> On 07/04/2010 01:20 AM, Hui Zhu wrote:
>>
>> ../../src/gdb/gdbtk/generic/gdbtk-bp.c:558: error: too many arguments
>> to function 'create_breakpoint'
>
> I've committed the attached patch to fix this, another API change in gdb.
>
> Thank you for bringing this to my attention.
>
> Keith
>
> ChangeLog
> 2010-07-04  Keith Seitz  <keiths@redhat.com>
>
>        * generic/gdbtk-bp.c (gdb_set_bp): Update arguments for API
>        change in create_breakpoint.
>

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Build gdbtk-cmds.c get error
  2010-06-14  9:55 Hui Zhu
@ 2010-06-17  2:18 ` Hui Zhu
  0 siblings, 0 replies; 5+ messages in thread
From: Hui Zhu @ 2010-06-17  2:18 UTC (permalink / raw)
  To: insight

Ping.

On Mon, Jun 14, 2010 at 17:55, Hui Zhu <teawater@gmail.com> wrote:
> gcc -g -O2   -I. -I../../src/gdb -I../../src/gdb/common
> -I../../src/gdb/config -DLOCALEDIR="\"/usr/local/share/locale\""
> -DHAVE_CONFIG_H -I../../src/gdb/../include/opcode
> -I../../src/gdb/../opcodes/.. -I../../src/gdb/../readline/.. -I../bfd
> -I../../src/gdb/../bfd -I../../src/gdb/../include -I../libdecnumber
> -I../../src/gdb/../libdecnumber  -I../../src/gdb/gnulib -Ignulib
> -DMI_OUT=1 -DTUI=1  -DGDBTK -I/usr/include -I/usr/include  -Wall
> -Wdeclaration-after-statement -Wpointer-arith -Wformat-nonliteral
> -Wno-pointer-sign -Wno-unused -Wunused-value -Wunused-function
> -Wno-switch -Wno-char-subscripts -Werror -c -o gdbtk-cmds.o -MT
> gdbtk-cmds.o -MMD -MP -MF .deps/gdbtk-cmds.Tpo
> -I../../src/gdb/../libgui/src
> -I/home/teawater/gdb/cvs/src/tcl/generic
> -I/home/teawater/gdb/cvs/src/tk/generic
> -DGDBTK_LIBRARY=\"/usr/local/share/insight1.0\"
> -DSRC_DIR=\"/home/teawater/gdb/cvs/src/gdb\"
> ../../src/gdb/gdbtk/generic/gdbtk-cmds.c
> cc1: warnings being treated as errors
> ../../src/gdb/gdbtk/generic/gdbtk-cmds.c: In function 'gdb_eval':
> ../../src/gdb/gdbtk/generic/gdbtk-cmds.c:643: error: passing argument
> 7 of 'val_print' from incompatible pointer type
> ../../src/gdb/value.h:671: note: expected 'const struct value *' but
> argument is of type 'struct value_print_options *'
> ../../src/gdb/gdbtk/generic/gdbtk-cmds.c:643: error: passing argument
> 8 of 'val_print' from incompatible pointer type
> ../../src/gdb/value.h:671: note: expected 'const struct
> value_print_options *' but argument is of type 'const struct
> language_defn *'
> ../../src/gdb/gdbtk/generic/gdbtk-cmds.c:643: error: too few arguments
> to function 'val_print'
> make[2]: *** [gdbtk-cmds.o] Error 1
> make[2]: Leaving directory `/home/teawater/gdb/cvs/bgdball/gdb'
> make[1]: *** [all-gdb] Error 2
> make[1]: Leaving directory `/home/teawater/gdb/cvs/bgdball'
> make: *** [all] Error 2
>

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Build gdbtk-cmds.c get error
@ 2010-06-14  9:55 Hui Zhu
  2010-06-17  2:18 ` Hui Zhu
  0 siblings, 1 reply; 5+ messages in thread
From: Hui Zhu @ 2010-06-14  9:55 UTC (permalink / raw)
  To: insight

gcc -g -O2   -I. -I../../src/gdb -I../../src/gdb/common
-I../../src/gdb/config -DLOCALEDIR="\"/usr/local/share/locale\""
-DHAVE_CONFIG_H -I../../src/gdb/../include/opcode
-I../../src/gdb/../opcodes/.. -I../../src/gdb/../readline/.. -I../bfd
-I../../src/gdb/../bfd -I../../src/gdb/../include -I../libdecnumber
-I../../src/gdb/../libdecnumber  -I../../src/gdb/gnulib -Ignulib
-DMI_OUT=1 -DTUI=1  -DGDBTK -I/usr/include -I/usr/include  -Wall
-Wdeclaration-after-statement -Wpointer-arith -Wformat-nonliteral
-Wno-pointer-sign -Wno-unused -Wunused-value -Wunused-function
-Wno-switch -Wno-char-subscripts -Werror -c -o gdbtk-cmds.o -MT
gdbtk-cmds.o -MMD -MP -MF .deps/gdbtk-cmds.Tpo
-I../../src/gdb/../libgui/src
-I/home/teawater/gdb/cvs/src/tcl/generic
-I/home/teawater/gdb/cvs/src/tk/generic
-DGDBTK_LIBRARY=\"/usr/local/share/insight1.0\"
-DSRC_DIR=\"/home/teawater/gdb/cvs/src/gdb\"
../../src/gdb/gdbtk/generic/gdbtk-cmds.c
cc1: warnings being treated as errors
../../src/gdb/gdbtk/generic/gdbtk-cmds.c: In function 'gdb_eval':
../../src/gdb/gdbtk/generic/gdbtk-cmds.c:643: error: passing argument
7 of 'val_print' from incompatible pointer type
../../src/gdb/value.h:671: note: expected 'const struct value *' but
argument is of type 'struct value_print_options *'
../../src/gdb/gdbtk/generic/gdbtk-cmds.c:643: error: passing argument
8 of 'val_print' from incompatible pointer type
../../src/gdb/value.h:671: note: expected 'const struct
value_print_options *' but argument is of type 'const struct
language_defn *'
../../src/gdb/gdbtk/generic/gdbtk-cmds.c:643: error: too few arguments
to function 'val_print'
make[2]: *** [gdbtk-cmds.o] Error 1
make[2]: Leaving directory `/home/teawater/gdb/cvs/bgdball/gdb'
make[1]: *** [all-gdb] Error 2
make[1]: Leaving directory `/home/teawater/gdb/cvs/bgdball'
make: *** [all] Error 2

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-07-05  5:54 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-07-04  8:20 Build gdbtk-cmds.c get error Hui Zhu
2010-07-04 18:13 ` Keith Seitz
2010-07-05  5:54   ` Hui Zhu
  -- strict thread matches above, loose matches on Subject: below --
2010-06-14  9:55 Hui Zhu
2010-06-17  2:18 ` Hui Zhu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).