From: Keith Seitz <keiths@redhat.com>
To: Hui Zhu <teawater@gmail.com>
Cc: insight <insight@sourceware.org>
Subject: Re: [PATCH] Rotate ChangeLog, fix build issues
Date: Sat, 09 Apr 2011 04:26:00 -0000 [thread overview]
Message-ID: <4D9FDFD8.7080109@redhat.com> (raw)
In-Reply-To: <BANLkTikUobS=rEtZtknNeVJVR=NxT2XTDQ@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1777 bytes --]
On 04/08/2011 09:14 PM, Hui Zhu wrote:
> I am not sure, bug I got:
> 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/python2.6
> -I/usr/include/python2.6 -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
> ../../src/gdb/gdbtk/generic/gdbtk-bp.c: In function 'tracepoint_exists':
> ../../src/gdb/gdbtk/generic/gdbtk-bp.c:834: error: too many arguments
> to function 'decode_line_1'
Gah! *Another* change. I missed it because I haven't updated my working
directory in a week.
I've committed the attached patch, which *should* fix it. Thank you for
pointing that out.
Keith
ChangeLog
2011-04-08 Keith Seitz <keiths@redhat.com>
* generic/gdbtk-bp.c (tracepoint_exists): Remove recently
removed "not_found_ptr" argument from call to decode_line_1.
* generic/gdbtk-stack.c (gdb_get_vars_command): Likewise.
* generic/gdbtk-cmds.c (gdb_get_line_command): Likewise.
(gdb_get_file_command): Likewise.
(gdb_get_function_command): Likewise.
[-- Attachment #2: insight-decode_line_1-not_found_ptr.patch --]
[-- Type: text/plain, Size: 2477 bytes --]
Index: generic/gdbtk-bp.c
===================================================================
RCS file: /cvs/src/src/gdb/gdbtk/generic/gdbtk-bp.c,v
retrieving revision 1.39
diff -u -p -r1.39 gdbtk-bp.c
--- generic/gdbtk-bp.c 8 Apr 2011 23:32:42 -0000 1.39
+++ generic/gdbtk-bp.c 9 Apr 2011 04:24:26 -0000
@@ -831,7 +831,7 @@ tracepoint_exists (char *args)
char *file = NULL;
int result = -1;
- sals = decode_line_1 (&args, 1, NULL, 0, NULL, NULL);
+ sals = decode_line_1 (&args, 1, NULL, 0, NULL);
if (sals.nelts == 1)
{
resolve_sal_pc (&sals.sals[0]);
Index: generic/gdbtk-cmds.c
===================================================================
RCS file: /cvs/src/src/gdb/gdbtk/generic/gdbtk-cmds.c,v
retrieving revision 1.119
diff -u -p -r1.119 gdbtk-cmds.c
--- generic/gdbtk-cmds.c 8 Apr 2011 23:32:42 -0000 1.119
+++ generic/gdbtk-cmds.c 9 Apr 2011 04:24:27 -0000
@@ -961,7 +961,7 @@ gdb_get_line_command (ClientData clientD
}
args = Tcl_GetStringFromObj (objv[1], NULL);
- sals = decode_line_1 (&args, 1, NULL, 0, NULL, NULL);
+ sals = decode_line_1 (&args, 1, NULL, 0, NULL);
if (sals.nelts == 1)
{
Tcl_SetIntObj (result_ptr->obj_ptr, sals.sals[0].line);
@@ -997,7 +997,7 @@ gdb_get_file_command (ClientData clientD
}
args = Tcl_GetStringFromObj (objv[1], NULL);
- sals = decode_line_1 (&args, 1, NULL, 0, NULL, NULL);
+ sals = decode_line_1 (&args, 1, NULL, 0, NULL);
if (sals.nelts == 1)
{
Tcl_SetStringObj (result_ptr->obj_ptr,
@@ -1033,7 +1033,7 @@ gdb_get_function_command (ClientData cli
}
args = Tcl_GetStringFromObj (objv[1], NULL);
- sals = decode_line_1 (&args, 1, NULL, 0, NULL, NULL);
+ sals = decode_line_1 (&args, 1, NULL, 0, NULL);
if (sals.nelts == 1)
{
resolve_sal_pc (&sals.sals[0]);
Index: generic/gdbtk-stack.c
===================================================================
RCS file: /cvs/src/src/gdb/gdbtk/generic/gdbtk-stack.c,v
retrieving revision 1.35
diff -u -p -r1.35 gdbtk-stack.c
--- generic/gdbtk-stack.c 8 Apr 2011 23:32:42 -0000 1.35
+++ generic/gdbtk-stack.c 9 Apr 2011 04:24:27 -0000
@@ -298,7 +298,7 @@ gdb_get_vars_command (ClientData clientD
if (objc == 2)
{
args = Tcl_GetStringFromObj (objv[1], NULL);
- sals = decode_line_1 (&args, 1, NULL, 0, NULL, NULL);
+ sals = decode_line_1 (&args, 1, NULL, 0, NULL);
if (sals.nelts == 0)
{
gdbtk_set_result (interp, "error decoding line");
next prev parent reply other threads:[~2011-04-09 4:26 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-08 23:35 Keith Seitz
2011-04-09 4:14 ` Hui Zhu
2011-04-09 4:26 ` Keith Seitz [this message]
2011-04-12 0:24 ` Kevin Buettner
2011-04-12 5:13 ` Keith Seitz
2011-04-12 15:27 ` Hui Zhu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4D9FDFD8.7080109@redhat.com \
--to=keiths@redhat.com \
--cc=insight@sourceware.org \
--cc=teawater@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).