From: Adam Fedor <fedor@doc.com>
To: GDB Patches <gdb-patches@sources.redhat.com>
Subject: [RFA] Compile objc-lang.c, objc-exp.tab.c [1/5]
Date: Fri, 03 Jan 2003 22:06:00 -0000 [thread overview]
Message-ID: <3E16093D.3070907@doc.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 744 bytes --]
Now that I'm almost done, I finally understand the patch lingo (Thanks
Michael)! This is a repost of the first of five final patches for ObjC
suppport:
http://sources.redhat.com/ml/gdb-patches/2003-01/msg00049.html
The other two that I also need approval for are:
http://sources.redhat.com/ml/gdb-patches/2003-01/msg00050.html
http://sources.redhat.com/ml/gdb-patches/2003-01/msg00080.html
and two more (symtab.c, and linespec.c) will be coming soon.
---
A new year brings a final push to get Objective-C support in gdb. This
patch enables compilation and linking of the Objective-C files. I need
this now since the remaining patches require so many of the Objective-C
functions that it would be pointless to submit them otherwise.
[-- Attachment #2: objc18.patch --]
[-- Type: text/plain, Size: 4638 bytes --]
2003-01-02 Adam Fedor <fedor@gnu.org>
* Makefile.in (COMMON_OBS): Add objc-lang.o
(YYOBJ): Add objc-exp.tab.o
(maint.o, utils.o): Add $(objc_lang_h)
* maint.c (maintenance_demangle): Uncomment language_objc case.
* utils.c (fprintf_symbol_filtered): Likewise.
* parser-defs.h (start_msglist, add_msglist, end_msglist): Declare
Objective-C parsing functions (from objc-lang.c).
Index: Makefile.in
===================================================================
RCS file: /cvs/src/src/gdb/Makefile.in,v
retrieving revision 1.302
diff -u -p -r1.302 Makefile.in
--- Makefile.in 2 Jan 2003 20:29:15 -0000 1.302
+++ Makefile.in 3 Jan 2003 03:06:24 -0000
@@ -820,7 +820,7 @@ COMMON_OBS = version.o blockframe.o brea
exec.o bcache.o objfiles.o minsyms.o maint.o demangle.o \
dbxread.o coffread.o elfread.o \
dwarfread.o dwarf2read.o mipsread.o stabsread.o corefile.o \
- c-lang.o f-lang.o \
+ c-lang.o objc-lang.o f-lang.o \
ui-out.o cli-out.o \
varobj.o wrapper.o \
jv-lang.o jv-valprint.o jv-typeprint.o \
@@ -847,6 +847,7 @@ YYFILES = c-exp.tab.c \
jv-exp.tab.c \
f-exp.tab.c m2-exp.tab.c p-exp.tab.c
YYOBJ = c-exp.tab.o \
+ objc-exp.tab.o \
jv-exp.tab.o \
f-exp.tab.o m2-exp.tab.o p-exp.tab.o
@@ -1878,7 +1879,8 @@ main.o: main.c $(defs_h) $(top_h) $(targ
$(event_loop_h) $(ui_out_h) $(main_h)
maint.o: maint.c $(defs_h) $(command_h) $(gdbcmd_h) $(symtab_h) \
$(gdbtypes_h) $(demangle_h) $(gdbcore_h) $(expression_h) \
- $(language_h) $(symfile_h) $(objfiles_h) $(value_h) $(cli_decode_h)
+ $(language_h) $(symfile_h) $(objfiles_h) $(value_h) $(cli_decode_h) \
+ $(objc_lang_h)
mcore-rom.o: mcore-rom.c $(defs_h) $(gdbcore_h) $(target_h) $(monitor_h) \
$(gdb_string_h) $(regcache_h) $(serial_h)
mcore-tdep.o: mcore-tdep.c $(defs_h) $(frame_h) $(symtab_h) $(value_h) \
@@ -2240,7 +2242,8 @@ ui-out.o: ui-out.c $(defs_h) $(gdb_strin
utils.o: utils.c $(config_h) $(defs_h) $(gdb_assert_h) $(gdb_string_h) \
$(event_top_h) $(gdbcmd_h) $(serial_h) $(bfd_h) $(target_h) \
$(demangle_h) $(expression_h) $(language_h) $(annotate_h) \
- $(filenames_h) $(inferior_h) $(mmalloc_h) $(charset_h) $(readline_h)
+ $(filenames_h) $(inferior_h) $(mmalloc_h) $(charset_h) $(readline_h) \
+ $(objc_lang_h)
uw-thread.o: uw-thread.c $(defs_h) $(gdbthread_h) $(target_h) $(inferior_h) \
$(regcache_h) $(gregset_h)
v850-tdep.o: v850-tdep.c $(defs_h) $(frame_h) $(inferior_h) $(target_h) \
Index: maint.c
===================================================================
RCS file: /cvs/src/src/gdb/maint.c,v
retrieving revision 1.30
diff -u -p -r1.30 maint.c
--- maint.c 24 Dec 2002 03:57:58 -0000 1.30
+++ maint.c 3 Jan 2003 03:06:25 -0000
@@ -35,6 +35,7 @@
#include "symfile.h"
#include "objfiles.h"
#include "value.h"
+#include "objc-lang.h"
#include "cli/cli-decode.h"
@@ -154,9 +155,8 @@ maintenance_demangle (char *args, int fr
switch (current_language->la_language)
{
case language_objc:
- /* Commented out until ObjC handling is enabled. */
- /* demangled = objc_demangle (args); */
- /* break; */
+ demangled = objc_demangle (args);
+ break;
case language_cplus:
default:
demangled = cplus_demangle (args, DMGL_ANSI | DMGL_PARAMS);
Index: parser-defs.h
===================================================================
RCS file: /cvs/src/src/gdb/parser-defs.h,v
retrieving revision 1.15
diff -u -p -r1.15 parser-defs.h
--- parser-defs.h 19 Nov 2002 03:15:01 -0000 1.15
+++ parser-defs.h 3 Jan 2003 03:06:25 -0000
@@ -223,4 +223,9 @@ struct op_print
extern void parser_fprintf (FILE *, const char *, ...) ATTR_FORMAT (printf, 2 ,3);
+/* for parsing Objective C */
+extern void start_msglist (void);
+extern void add_msglist (struct stoken *str, int addcolon);
+extern int end_msglist (void);
+
#endif /* PARSER_DEFS_H */
Index: utils.c
===================================================================
RCS file: /cvs/src/src/gdb/utils.c,v
retrieving revision 1.88
diff -u -p -r1.88 utils.c
--- utils.c 2 Jan 2003 14:27:27 -0000 1.88
+++ utils.c 3 Jan 2003 03:06:35 -0000
@@ -46,6 +46,7 @@
#include "charset.h"
#include "annotate.h"
#include "filenames.h"
+#include "objc-lang.h"
#include "inferior.h" /* for signed_pointer_to_address */
@@ -2310,9 +2311,8 @@ fprintf_symbol_filtered (struct ui_file
demangled = cplus_demangle (name, arg_mode | DMGL_JAVA);
break;
case language_objc:
- /* Commented out until ObjC handling is enabled. */
- /*demangled = objc_demangle (name);*/
- /*break;*/
+ demangled = objc_demangle (name);
+ break;
default:
demangled = NULL;
break;
next reply other threads:[~2003-01-03 22:06 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-01-03 22:06 Adam Fedor [this message]
2003-02-19 19:02 ` Elena Zannoni
2003-02-19 20:27 ` Adam Fedor
2003-02-19 21:11 ` Elena Zannoni
2003-03-20 21:27 ` Andrew Cagney
2003-03-20 21:39 ` Daniel Jacobowitz
2003-03-20 22:13 ` Andrew Cagney
2003-03-20 22:19 ` Daniel Jacobowitz
2003-03-31 2:23 ` Adam Fedor
2003-03-31 22:39 ` Andrew Cagney
2003-03-31 22:53 ` David Carlton
2003-03-31 23:03 ` David Carlton
2003-03-31 23:15 ` Adam Fedor
2003-04-01 0:31 ` Andrew Cagney
2003-04-01 0:45 ` David Carlton
2003-04-01 4:09 ` Adam Fedor
2003-04-01 21:31 ` David Carlton
2003-04-01 21:38 ` Daniel Jacobowitz
2003-03-20 22:22 ` David Ayers
2003-03-20 21:35 ` Andrew Cagney
2003-03-24 17:46 ` Adam Fedor
2003-03-24 18:25 ` Andrew Cagney
2003-03-25 2:23 ` Adam Fedor
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=3E16093D.3070907@doc.com \
--to=fedor@doc.com \
--cc=gdb-patches@sources.redhat.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