scummvm random work
[patches.git] / gdb-hppa-dollar-lookups.patch
CommitLineData
5e993f12 12006-08-20 Mike Frysinger <vapier@gentoo.org>
2
3 * parse.c (write_dollar_variable): Check LOOKUP_DOLLAR_SYMBOLS.
4 * config/pa/tm-hppa.h [LOOKUP_DOLLAR_SYMBOLS]: Define.
5
6--- gdb/parse.c
7+++ gdb/parse.c
8@@ -489,8 +489,12 @@ write_dollar_variable (struct stoken str
9 /* On some systems, such as HP-UX and hppa-linux, certain system routines
10 have names beginning with $ or $$. Check for those, first. */
11
12+#ifdef LOOKUP_DOLLAR_SYMBOLS
13 sym = lookup_symbol (copy_name (str), (struct block *) NULL,
14 VAR_DOMAIN, (int *) NULL, (struct symtab **) NULL);
15+#else
16+ sym = NULL;
17+#endif
18 if (sym)
19 {
20 write_exp_elt_opcode (OP_VAR_VALUE);
21--- gdb/config/pa/tm-hppa.h
22+++ gdb/config/pa/tm-hppa.h
23@@ -28,3 +28,5 @@
24
25 extern int hppa_pc_requires_run_before_use (CORE_ADDR pc);
26 #define DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE(pc) hppa_pc_requires_run_before_use (pc)
27+
28+#define LOOKUP_DOLLAR_SYMBOLS