2003-03-03 Andrew Cagney <cagney@redhat.com>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2003-03-03 Andrew Cagney <cagney@redhat.com>
2
3 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
4 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
5 predicate. Replace MAX_REGISTER_RAW_SIZE.
6 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
7 MAX_REGISTER_VIRTUAL_SIZE.
8 * regcache.c (legacy_max_register_raw_size): New function.
9 (legacy_max_register_virtual_size): New function.
10 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
11 (MAX_REGISTER_RAW_SIZE): Define.
12 (legacy_max_register_raw_size): Declare.
13 (legacy_max_register_virtual_size): Declare.
14 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
15 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
16 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
17 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
18 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
19 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
20 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
21 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
22 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
23 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
24 * vax-tdep.c (vax_gdbarch_init): Update.
25 * v850-tdep.c (v850_gdbarch_init): Update.
26 * sparc-tdep.c (sparc_gdbarch_init): Update.
27 * sh-tdep.c (sh_gdbarch_init): Update.
28 * s390-tdep.c (s390_gdbarch_init): Update.
29 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
30 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
31 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
32 * mips-tdep.c (mips_gdbarch_init): Update.
33 * mcore-tdep.c (mcore_gdbarch_init): Update.
34 * m68k-tdep.c (m68k_gdbarch_init): Update.
35 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
36 * ia64-tdep.c (ia64_gdbarch_init): Update.
37 * i386-tdep.c (i386_gdbarch_init): Update.
38 * hppa-tdep.c (hppa_gdbarch_init): Update.
39 * h8300-tdep.c (h8300_gdbarch_init): Update.
40 * frv-tdep.c (frv_gdbarch_init): Update.
41 * cris-tdep.c (cris_gdbarch_init): Update.
42 * avr-tdep.c (avr_gdbarch_init): Update.
43 * arm-tdep.c (arm_gdbarch_init): Update.
44 * alpha-tdep.c (alpha_gdbarch_init): Update.
45 * d10v-tdep.c (d10v_gdbarch_init): Do not set
46 max_register_raw_size or max_register_virtual_size.
47
48 2003-03-03 David Carlton <carlton@math.stanford.edu>
49
50 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
51 SYMBOL_MATCHES_NAME, add comment.
52 (SYMBOL_MATCHES_NATURAL_NAME): New.
53 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
54 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
55 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
56 * symtab.c (lookup_partial_symbol): Use
57 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
58 unhelpful comment.
59 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
60 SYMBOL_MATCHES_NAME.
61 Fix for PR c++/33.
62
63 2003-03-03 David Carlton <carlton@math.stanford.edu>
64
65 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
66 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
67 by regexp matching against SYMBOL_NATURAL_NAME.
68
69 2003-03-03 David Carlton <carlton@math.stanford.edu>
70
71 * linespec.c (find_method): Extract code into collect_methods.
72 (collect_methods): New.
73
74 2003-03-02 Mark Kettenis <kettenis@gnu.org>
75
76 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
77 get_frame_base.
78
79 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
80 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
81
82 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
83
84 * arch-utils.c (generic_register_byte): Fix to use the loop index
85 and not regnum when summing the size of all registers up to regnum.
86
87 2003-03-01 Andrew Cagney <cagney@redhat.com>
88
89 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
90 FRAME_INIT_SAVED_REGS.
91 * gdbarch.h, gdbarch.c: Regenerate.
92 * stack.c (frame_info): Update.
93 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
94 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
95 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
96 * ns32k-tdep.c (ns32k_pop_frame): Update.
97 * mips-tdep.c (mips_pop_frame): Update.
98 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
99 * ia64-tdep.c (ia64_frame_chain): Update.
100 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
101 (ia64_frameless_function_invocation): Update.
102 (ia64_init_extra_frame_info): Update.
103 (ia64_pop_frame_regular): Update.
104 * frame.h (struct frame_info): Update comment.
105 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
106 * frame.c (frame_saved_regs_register_unwind): Update.
107 (frame_saved_regs_register_unwind): Update.
108 (deprecated_generic_get_saved_register): Update.
109 * cris-tdep.c: Update comment.
110 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
111 Rename macro.
112 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
113 * x86-64-tdep.c (x86_64_init_abi): Update.
114 * vax-tdep.c (vax_gdbarch_init): Update.
115 * v850-tdep.c (v850_gdbarch_init): Update.
116 * sparc-tdep.c (sparc_gdbarch_init): Update.
117 * sh-tdep.c (sh_gdbarch_init): Update.
118 * s390-tdep.c (s390_gdbarch_init): Update.
119 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
120 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
121 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
122 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
123 * mips-tdep.c (mips_gdbarch_init): Update.
124 * mcore-tdep.c (mcore_gdbarch_init): Update.
125 * m68k-tdep.c (m68k_gdbarch_init): Update.
126 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
127 * ia64-tdep.c (ia64_gdbarch_init): Update.
128 * i386-tdep.c (i386_gdbarch_init): Update.
129 * frv-tdep.c (frv_gdbarch_init): Update.
130 * avr-tdep.c (avr_gdbarch_init): Update.
131 * arm-tdep.c (arm_gdbarch_init): Update.
132 * alpha-tdep.c (alpha_gdbarch_init): Update.
133
134 2003-03-01 Andrew Cagney <cagney@redhat.com>
135
136 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
137 option enum and switch. When no windows, set the interpreter to
138 INTERP_CONSOLE.
139
140 2003-03-01 Andrew Cagney <cagney@redhat.com>
141
142 * main.c (captured_main): Replace magic option characters with an
143 enum.
144
145 2003-03-01 Andrew Cagney <cagney@redhat.com>
146
147 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
148 INIT_EXTRA_FRAME_INFO.
149 * gdbarch.h, gdbarch.c: Regenerate.
150 * arm-tdep.c: Update comments.
151 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
152 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
153 * frame.h, avr-tdep.c: Ditto.
154 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
155 (create_new_frame, legacy_get_prev_frame): Ditto.
156 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
157 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
158 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
159 deprecated_init_extra_frame_info instead of init_extra_frame_info.
160 * x86-64-tdep.c (x86_64_init_abi): Ditto.
161 * v850-tdep.c (v850_gdbarch_init): Ditto.
162 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
163 * sh-tdep.c (sh_gdbarch_init): Ditto.
164 * s390-tdep.c (s390_gdbarch_init): Ditto.
165 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
166 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
167 * mips-tdep.c (mips_gdbarch_init): Ditto.
168 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
169 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
170 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
171 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
172 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
173 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
174 * frv-tdep.c (frv_gdbarch_init): Ditto.
175 * cris-tdep.c (cris_gdbarch_init): Ditto.
176 * avr-tdep.c (avr_gdbarch_init): Ditto.
177 * arm-tdep.c (arm_gdbarch_init): Ditto.
178 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
179 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
180
181 2003-03-01 Andrew Cagney <cagney@redhat.com>
182
183 * gdbarch.sh (register_type): New function with predicate.
184 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
185 * gdbarch.h, gdbarch.c: Re-generate.
186 * arch-utils.c (generic_register_byte): Use generic_register_size.
187 (generic_register_size): When available, use
188 gdbarch_register_type.
189 * regcache.c (init_regcache_descr): When available, initialize the
190 register type array using gdbarch_register_type. If the
191 architecture supplies gdbarch_register_type, do not use the legacy
192 regcache layout.
193 * d10v-tdep.c (d10v_register_type): Replace
194 d10v_register_virtual_type.
195 (d10v_gdbarch_init): Set register_type instead of
196 register_virtual_type.
197
198 2003-03-01 Andrew Cagney <cagney@redhat.com>
199
200 * Makefile.in (ax-gdb.o): Update dependencies.
201 * ax-gdb.c: Include "regcache.h".
202 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
203 * findvar.c (value_of_register): Ditto.
204 * infcmd.c (default_print_registers_info): Ditto.
205
206 2003-03-01 Mark Kettenis <kettenis@gnu.org>
207
208 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
209 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
210
211 2003-03-01 Mark Kettenis <kettenis@gnu.org>
212
213 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
214 of STREQ.
215
216 2003-02-28 Daniel Jacobowitz <drow@mvista.com>
217
218 * Makefile.in (dwarf2loc.o): Update dependencies.
219 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
220 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
221 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
222 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
223 (locexpr_tracepoint_var_ref): New function.
224 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
225
226 2003-02-28 Andrew Cagney <cagney@redhat.com>
227
228 * regcache.c (register_size): New function.
229 * regcache.h (register_size): Declare
230 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
231 max_register_size instead of MAX_REGISTER_RAW_SIZE.
232
233 2003-02-28 David Carlton <carlton@math.stanford.edu>
234
235 * linespec.c (decode_compound): Extract code into find_method.
236 (find_method): New.
237
238 2003-02-28 J. Brobecker <brobecker@gnat.com>
239
240 * Makefile.in: Add rules to build and link in observer.o.
241
242 2003-02-27 J. Brobecker <brobecker@gnat.com>
243
244 * observer.c: Minor comments edits.
245
246 2003-02-27 J. Brobecker <brobecker@gnat.com>
247
248 * observer.h, observer.c: New file.
249
250 2003-02-27 Andrew Cagney <cagney@redhat.com>
251
252 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
253
254 2003-02-27 Stephane Carrez <stcarrez@nerim.fr>
255
256 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
257 (M6812_OP_STS_EXT): Likewise.
258 (m6811_prologue): Use the above to recognize prologue.
259 (m6812_prologue): Likewise.
260
261 2003-02-27 David Carlton <carlton@math.stanford.edu>
262
263 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
264 SYMBOL_PRINT_NAME.
265 (compare_psymbols): Ditto.
266 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
267
268 2003-02-27 Michael Snyder <msnyder@redhat.com>
269
270 * f-lang.c (build_fortran_types): New function.
271 (_initialize_f_language): Gdbarch-register built-in fortran types.
272
273 * doublest.c (extract_floating): Fix warning text.
274
275 2003-02-27 Andrew Cagney <cagney@redhat.com>
276
277 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
278 predicate. Replaces PUSH_DUMMY_FRAME.
279 * gdbarch.h, gdbarch.c: Regnerate.
280 * valops.c (hand_function_call): Update. Call
281 generic_push_dummy_frame directly.
282 * vax-tdep.c (vax_gdbarch_init): Update.
283 * sparc-tdep.c (sparc_gdbarch_init): Update.
284 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
285 * m68k-tdep.c (m68k_gdbarch_init): Update.
286 * hppa-tdep.c (hppa_gdbarch_init): Update.
287 * alpha-tdep.c (alpha_gdbarch_init): Update.
288 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
289 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
290 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
291 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
292 push_dummy_frame to generic_push_dummy_frame.
293 * v850-tdep.c (v850_gdbarch_init): Ditto.
294 * sh-tdep.c (sh_gdbarch_init): Ditto.
295 * s390-tdep.c (s390_gdbarch_init): Ditto.
296 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
297 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
298 * mips-tdep.c (mips_gdbarch_init): Ditto.
299 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
300 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
301 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
302 * i386-tdep.c (i386_gdbarch_init): Ditto.
303 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
304 * frv-tdep.c (frv_gdbarch_init): Ditto.
305 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
306 * cris-tdep.c (cris_gdbarch_init): Ditto.
307 * avr-tdep.c (avr_gdbarch_init): Ditto.
308 * arm-tdep.c (arm_gdbarch_init): Ditto.
309
310 2003-02-26 Kevin Buettner <kevinb@redhat.com>
311
312 * mips-tdep.c (show_mips_abi): New function.
313 (_initialize_mips_tdep): Use show_mips_abi() to implement the
314 command ``show mips abi''.
315
316 2003-02-26 Jeff Johnston <jjohnstn@redhat.com>
317
318 From Elena Zannoni <ezannoni@redhat.com>
319 * dbxread.c (process_one_symbol): Only record line 0 if one or
320 more sline entries have been seen for the function.
321
322 2003-02-26 Michael Chastain <mec@shout.net>
323
324 * configure: Regenerate with autoconf 000227.
325
326 2003-02-26 Michael Chastain <mec@shout.net>
327
328 Close PR build/660.
329 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
330 for old libc5/glibc.
331 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
332
333 2003-02-26 Kris Warkentin <kewarken@qnx.com>
334
335 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
336 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
337
338 2003-02-26 Michael Chastain <mec@shout.net>
339
340 * configure.in: New variable HAVE_UINTPTR_T.
341 * configure, config.in: Regenerated.
342
343 2003-02-26 Daniel Jacobowitz <drow@mvista.com>
344
345 Fix PR build/1097.
346 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
347
348 2003-02-25 Andrew Cagney <cagney@redhat.com>
349
350 * frame.c (get_prev_frame): Add comment on check for
351 inside_entry_func. Only check for inside_entry_file when not a
352 dummy and not a sentinel. Check that the new frame is not inner
353 to the old frame.
354
355 2003-02-25 Andrew Cagney <cagney@redhat.com>
356
357 * frame.c (frame_debug): New variable.
358 (_initialize_frame): Add "set/show debug frame" command.
359 (get_prev_frame): When frame_debug, print reason why unwind
360 failed.
361
362 2003-02-25 Michael Chastain <mec@shout.net>
363
364 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
365 to avoid uintptr_t definition problems.
366
367 2003-02-25 David Carlton <carlton@math.stanford.edu>
368
369 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
370 (SYMBOL_LINKAGE_NAME): Ditto.
371 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
372 SYMBOL_LINKAGE_NAME.
373 (struct general_symbol_info): Expand comment.
374 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
375 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
376 (SYMBOL_MATCHES_REGEXP): Ditto.
377 * symtab.c (symbol_natural_name): New function.
378 * objfiles.h: Replace all uses of SYMBOL_NAME by
379 DEPRECATED_SYMBOL_NAME.
380 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
381 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
382 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
383 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
384 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
385 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
386 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
387 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
388 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
389 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
390 * ada-exp.y: Ditto.
391 * ada-exp.y: Update copyright.
392 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
393 * cp-valprint.c: Ditto.
394
395 2003-02-25 Jeff Johnston <jjohnstn@redhat.com>
396
397 * infptrace.c (detach): Do not flag error if ptrace detach fails
398 and errno is set to ESRCH.
399
400 2003-02-24 Andrew Cagney <cagney@redhat.com>
401
402 * infptrace.c (udot_info): Change type of udot_off to long. Use
403 paddr when printing udot_off's value.
404
405 2003-02-24 David Carlton <carlton@math.stanford.edu>
406
407 * symtab.c (make_symbol_overload_list): Only read in partial
408 symtabs containing a matching partial symbol.
409
410 2003-02-24 David Carlton <carlton@math.stanford.edu>
411
412 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
413 do the comparison, not strcmp.
414 * symfile.c (compare_psymbols): Ditto.
415 * defs.h: Declare strcmp_iw_ordered.
416 * utils.c (strcmp_iw_ordered): New function.
417
418 2003-02-24 Jim Blandy <jimb@redhat.com>
419
420 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
421 support, shared libs): Remove my name from here, to better reflect
422 reality.
423
424 2003-02-24 Kris Warkentin <kewarken@qnx.com>
425
426 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
427 (target_ops): Add to_have_continuable_watchpoint.
428 * target.c (update_current_target): Add INHERIT line for
429 to_have_continuable_watchpoint.
430 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
431 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
432 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
433 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
434
435 2003-02-24 Elena Zannoni <ezannoni@redhat.com>
436
437 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
438 maintainership.
439
440 2003-02-24 Kris Warkentin <kewarken@qnx.com>
441
442 * solib.c (solib_open): Call target defined search function after
443 failing with solib-search-path.
444 * solist.h (target_so_ops): Add find_and_open_solib function hook and
445 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
446
447 2003-02-24 Kris Warkentin <kewarken@qnx.com>
448
449 * MAINTAINERS: Add myself to Write After section.
450
451 2003-02-23 Stephane Carrez <stcarrez@nerim.fr>
452
453 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
454
455 2003-02-22 Stephane Carrez <stcarrez@nerim.fr>
456
457 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
458 (m68hc11_add_reggroups): New function.
459 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
460 (m68hc11_gdbarch_init): Install the reggroups.
461 (_initialize_m68hc11_tdep): Initialize them.
462
463 2003-02-21 James E Wilson <wilson@tuliptree.org>
464
465 * MAINTAINERS: Update my email address.
466
467 2003-02-21 David Carlton <carlton@math.stanford.edu>
468
469 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
470
471 2003-02-21 Daniel Jacobowitz <drow@mvista.com>
472
473 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
474 * symtab.h: Add opaque declarations of struct axs_value and
475 struct agent_expr.
476 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
477 (struct location_funcs): New type.
478 (struct symbol): Add "loc" to aux_value.
479 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
480 * dwarf2read.c: Include "dwarf2expr.h".
481 (dwarf2_symbol_mark_computed): New function.
482 (read_func_scope): Use it.
483 (var_decode_location): New function.
484 (new_symbol): Use it.
485 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
486
487 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
488 (dwarf2expr_h, dwarf2loc_h): New variables.
489 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
490 (dwarf2expr.o, dwarf2loc.o): New rules.
491 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
492 * buildsym.c (finish_block): Handle LOC_COMPUTED and
493 LOC_COMPUTED_ARG.
494 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
495 * m2-exp.y (yylex): Likewise.
496 * printcmd.c (address_info, print_frame_args): Likewise.
497 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
498 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
499 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
500 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
501 * symtab.c (lookup_block_symbol): Likewise.
502
503 2003-02-20 Adam Fedor <fedor@gnu.org>
504
505 * symtab.h: Remove objc_specific struct
506 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
507 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
508 Have language_objc use cplus_specific struct.
509
510 2003-02-20 Tom Tromey <tromey@redhat.com>
511
512 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
513 TYPE_NAME, when printing a String value. PR java/1075.
514
515 2003-02-20 Adam Fedor <fedor@gnu.org>
516
517 * objc-lang.h (find_methods): Remove declaration.
518 * objc-lang.c (find_methods): Make static.
519
520 2003-02-20 Christopher Faylor <cgf@redhat.com>
521
522 * win32-nat.c (get_image_name): Check return value from
523 ReadProcessMemory.
524 (child_xfer_memory): Ditto.
525
526 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
527
528 * configure.in (TARGET_SYSTEM_ROOT): Set default to
529 ${exec_prefix}/${target_alias}/sys-root. Match explicit
530 '${exec_prefix}' (in addition to the expansion thereof) as
531 relocatable.
532 * configure: Rebuilt.
533
534 2003-02-20 David Carlton <carlton@math.stanford.edu>
535
536 * symtab.c (search_symbols): Revert the search_symbols part of my
537 2002-12-23 patch. Add comment.
538
539 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
540
541 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
542 * dbxread.c (elfstab_build_psymtabs): Don't call
543 install_minimal_symbols.
544 (stabsect_build_psymtabs): Likewise.
545 * elfread.c (elf_symfile_read): Call install_minimal_symbols
546 earlier.
547 * somread.c (som_symfile_read): Call install_minimal_symbols
548 and do_cleanups earlier.
549 * nlmread.c (nlm_symfile_read): Likewise.
550 * mdebugread.c (elfmdebug_build_psymtabs): Call
551 install_minimal_symbols and make appropriate cleanups.
552
553 2003-02-20 Kevin Buettner <kevinb@redhat.com>
554
555 * solib.c (reload_shared_libraries): New function.
556 (_initialize_solib): Add callbacks for ``set solib-search-path''
557 and ``set solib-absolute-prefix''.
558
559 2003-02-20 David Carlton <carlton@math.stanford.edu>
560
561 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
562 expand comment.
563 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
564 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
565 * ada-typeprint.c (ada_typedef_print): Ditto.
566 * ax-gdb.c (gen_var_ref): Ditto.
567 * breakpoint.c (print_one_breakpoint): Ditto.
568 * buildsym.c (finish_block): Ditto.
569 * c-valprint.c (c_val_print): Ditto.
570 * expprint.c (print_subexp): Ditto.
571 * findvar.c (locate_var_value): Ditto.
572 * infcmd.c (jump_command): Ditto.
573 * linespec.c (decode_line_2, decode_compound): Ditto.
574 * maint.c (maintenance_translate_address): Ditto.
575 * objc-lang.c (compare_selectors, compare_classes): Ditto.
576 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
577 Ditto.
578 * p-valprint.c (pascal_val_print): Ditto.
579 * stabsread.c (define_symbol): Ditto.
580 * stack.c (print_frame, frame_info, print_block_frame_locals)
581 (print_frame_arg_vars, return_command): Ditto.
582 * symfile.c (compare_symbols, compare_psymbols): Ditto.
583 * symmisc.c (print_symbol): Ditto.
584 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
585 (compare_search_syms, print_symbol_info, print_msymbol_info)
586 (rbreak_command): Ditto.
587 * tracepoint.c (tracepoints_info): Ditto.
588 * typeprint.c (typedef_print): Ditto.
589 * valops.c (value_of_variable, hand_function_call): Ditto.
590 * cli/cli-cmds.c (edit_command, list_command): Ditto.
591 * ada-typeprint.c: Update Copyright.
592 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
593 * tracepoint.c, cli/cli-cmds.c: Ditto.
594
595 2003-02-20 Kevin Buettner <kevinb@redhat.com>
596
597 * frame.c (generic_unwind_get_saved_register): Make non-static.
598 * frame.h (generic_unwind_get_saved_register): Declare.
599 * mips-tdep.c (read_next_frame_reg): Fetch register from
600 current regcache when frame is NULL.
601 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
602 that must be NULL.
603 (mips_get_saved_register): Call generic_unwind_get_saved_register()
604 instead of frame_register_unwind().
605
606 2003-02-20 Andrew Cagney <ac131313@redhat.com>
607
608 * remote-sim.c (gdbsim_insert_breakpoint)
609 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
610 code.
611
612 2003-02-20 Andrew Cagney <ac131313@redhat.com>
613
614 * remote.c (_initialize_remote): Add commands "set/show remote
615 hardware-watchpoint-limit" and "set/show remote
616 hardware-breakpoint-limit".
617 (remote_hw_watchpoint_limit): Initialize to -1.
618 (remote_hw_breakpoint_limit): Ditto.
619 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
620
621 2003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
622
623 * coff-pe-read.c: New file - support reading of minimal symbols from a
624 portable executable using the export table.
625 * coff-pe-read.h: New file.
626 * coffread.c: Include coff-pe-read.h.
627 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
628 debugging symbols found.
629 * Makefile.in (SFILES): Add coff-pe-read.o.
630 (coff_pe_read_h): Define.
631 (COMMON_OBS): Add coff-pe-read.o.
632 (coffread.o): Add coff_pe_read_h dependency.
633 (coff-pe-read.o): New target.
634
635 2003-02-19 David Carlton <carlton@math.stanford.edu>
636
637 * Makefile.in (SFILES): Add block.c.
638 (block_h): New.
639 (COMMON_OBS): Add block.o.
640 (block.o): New.
641 (x86-64-tdep.o): Add $(block_h).
642 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
643 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
644 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
645 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
646 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
647 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
648 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
649 * value.h: Add opaque declaration for struct block.
650 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
651 * ada-lang.h: Ditto.
652 * x86-64-tdep.c: #include "block.h"
653 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
654 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
655 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
656 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
657 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
658 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
659 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
660 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
661 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
662 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
663 * symtab.c (block_function): Ditto.
664 (contained_in): Ditto.
665 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
666 block.h. Add opaque declaration for struct block.
667 * symtab.h: Move block_function and contained_in declarations to
668 block.h. Add opaque declarations for struct block, struct
669 blockvector.
670 (struct block): Move to block.h.
671 (struct blockvector): Ditto.
672 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
673 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
674 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
675 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
676 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
677 Ditto.
678 * block.c: New file.
679 * block.h: New file.
680
681 2003-02-19 Theodore A. Roth <troth@openavr.org>
682
683 * avr-tdep.c (avr_extract_return_value): Remove function.
684 (avr_store_return_value): Remove function.
685 (avr_extract_struct_value_address): Remove function.
686 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
687
688 2003-02-19 Andrew Cagney <ac131313@redhat.com>
689
690 * rs6000-tdep.c: Include "gdb_assert.h".
691 (registers_e500): Add "acc" and "spefscr".
692 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
693 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
694 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
695 really is "r0".
696 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
697
698 2003-02-18 Keith Seitz <keiths@redhat.com>
699
700 * Makefile.in: Add gdbtk-interps.c.
701
702 2003-02-18 Kevin Buettner <kevinb@redhat.com>
703
704 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
705 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
706
707 2003-02-18 Andrew Cagney <cagney@redhat.com>
708
709 * symtab.h (struct objfile): Add opaque declaration.
710
711 2003-02-18 Elena Zannoni <ezannoni@redhat.com>
712
713 From Jim Ingham <jingham@apple.com>:
714 * dbxread.c (process_one_symbol): Use last_function_start rather
715 than function_start_offset to find the real beginning of the
716 current function. The latter is just the text section offset on
717 some systems, the former is always the real function start.
718
719 2003-02-17 Andrew Cagney <cagney@redhat.com>
720
721 * configure.in: Revert ${target} != ${host}.
722
723 2003-02-17 Andrew Cagney <ac131313@redhat.com>
724
725 * configure.in (Makefile): Use the test ${target} != ${host},
726 instead of the absence of the "nm.h" file, to determine of the
727 configuration non-native.
728 * configure: Regenerate.
729
730 2003-02-14 Elena Zannoni <ezannoni@redhat.com>
731
732 From Brian Ford <ford@vss.fsi.com>
733
734 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
735 conditionalize tui_active test.
736 (lookup_cmd_1): Ditto.
737
738 2003-02-14 Mark Kettenis <kettenis@gnu.org>
739
740 * configure.in: Add check for _etext.
741 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
742 available.
743 * config.in, configure: regenerated.
744
745 2003-02-14 Daniel Jacobowitz <drow@mvista.com>
746
747 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
748
749 2003-02-14 Andrew Cagney <ac131313@redhat.com>
750
751 * main.c (tui_version): Delete variable.
752 (captured_main): When --tui, set interpreter_p to "tui" instead of
753 enabling tui_version.
754 * printcmd.c (display_command) [TUI]: Test tui_active instead of
755 tui_version.
756 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
757 * cli/cli-cmds.c (disassemble_command): Ditto.
758 * defs.h (tui_version): Delete declaration.
759 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
760 (tui-interp.o): Add rules.
761 (SUBDIR_TUI_OBS): Add "tui-interp.o".
762
763 2003-02-14 Christopher Faylor <cgf@redhat.com>
764
765 * win32-nat.c (register_loaded_dll): Correctly set address range for
766 just-loaded dll.
767
768 2003-02-12 Jason Molenda (jmolenda@apple.com)
769
770 * symmisc.c (print_objfile_statistics): Include information about
771 the number of psymtabs and symtabs in each object file.
772
773 2003-02-13 Keith R Seitz <keiths@redhat.com>
774
775 * main.h (struct captured_main_args): Add interpreter_p.
776 * main.c (captured_main): Initialize interpreter_p from context.
777 * gdb.c (main): Set interpreter_p argument.
778 * Makefile.in (gdb.o): Add dependency for interps.h.
779
780 2003-02-12 Andrew Cagney <ac131313@redhat.com>
781
782 * event-top.c (cli_command_loop): Delete declaration.
783 (_initialize_event_loop): Delete function setting event_loop_hook.
784 * event-top.h (cli_command_loop): Declare. Update copyright.
785 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
786 * interps.c (current_interp_command_loop): When event_loop_p, call
787 cli_command_loop.
788
789 2003-02-12 Andrew Cagney <ac131313@redhat.com>
790
791 * interps.h (interp_command_loop_ftype): Change return type to
792 void.
793
794 2003-02-12 Michal Ludvig <mludvig@suse.cz>
795
796 * x86-64-tdep.c (x86_64_extract_return_value)
797 (x86_64_store_return_value): Use regcache instead of regbuf.
798 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
799 * x86-64-linux-nat.c (fill_gregset): Use regcache.
800
801 2003-02-11 Andrew Cagney <ac131313@redhat.com>
802
803 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
804 * aclocal.m4: Regenerate.
805 * configure: Regenerate.
806
807 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
808 TCL_LD_SEARCH_FLAGS.
809
810 2003-02-10 Michal Ludvig <mludvig@suse.cz>
811
812 * dwarf2cfi.c: Reindented.
813
814 2003-02-09 Andrew Cagney <ac131313@redhat.com>
815
816 * interps.c (clear_interpreter_hooks): Convert function definition
817 to ISO C.
818
819 2003-02-07 David Carlton <carlton@math.stanford.edu>
820
821 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
822
823 2003-02-07 Kevin Buettner <kevinb@redhat.com>
824
825 * gdbtypes.h (struct main_type): Move ``length'' field from here...
826 (struct type): ...to here.
827 (TYPE_LENGTH): Adjust to reflect different location of ``length''
828 field.
829 * gdbtypes.c (make_qualified_type): Set length on newly created type.
830 (replace_type): Set length on all type variants for a given type.
831
832 2003-02-07 Andrew Cagney <ac131313@redhat.com>
833
834 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
835 <sys/stat.h>.
836 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
837
838 2003-02-06 Andrew Cagney <ac131313@redhat.com>
839
840 * Makefile.in (symm-nat.o): Update dependencies.
841 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
842 (lynx-nat.o, ia64-linux-nat.): Ditto.
843 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
844 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
845 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
846
847 * Makefile.in (inflow_h): Define.
848 (procfs.o, inflow.o, procfs.o): Update dependencies.
849 * inftarg.c (child_stop): Delete extern declaration of
850 inferior_process_group. Include "inflow.h".
851 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
852 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
853 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
854 (our_process_group, inferior_process_group): Extern declarations.
855
856 * procfs.c: Include "gdb_assert.h".
857
858 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
859 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
860 * jv-typeprint.c (java_type_print_base): Ditto.
861 * typeprint.c (typedef_print): Eliminate STREQ.
862 * cli/cli-script.c (define_command, define_command): Ditto.
863 * main.c (captured_main): Ditto.
864 * values.c (lookup_internalvar): Ditto.
865 * utils.c (safe_strerror, parse_escape): Eliminate assignment
866 within `if' conditional.
867 * linespec.c (decode_line_2): Ditto.
868 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
869 (bfd_openw_with_cleanup): Ditto.
870
871 2003-02-07 Mark Kettenis <kettenis@gnu.org>
872
873 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
874 legacy_extract_return_value and store_return_value to
875 legacy_return_value.
876
877 2003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
878
879 * win32-nat.c (get_relocated_section_addrs): New function. Find
880 section load addresses for symbol handling in relocated DLLs.
881 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
882
883 2003-02-05 Fred Fish <fnf@intrinsity.com>
884
885 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
886 '=' and '!='.
887 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
888 with '&' and '=='.
889 (angel_RDI_info): Ditto.
890 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
891 with '&' and '!='.
892 (threads_continue_all_with_signals): Ditto.
893
894 2003-02-05 Jim Ingham <jingham@apple.com>
895 Keith Seitz <keiths@redhat.com>
896 Elena Zannoni <ezannoni@redhat.com>
897 Andrew Cagney <ac131313@redhat.com>
898
899 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
900 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
901 (SUBDIR_MI_OBS): Add "mi-interp.o".
902 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
903 (SFILES): Add "interps.c".
904 (COMMON_OBS): Add "interps.o".
905 (interps_h, mi_main_h): Define.
906 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
907 (mi-main.o, main.o, event-top.o): Update dependencies.
908 * cli/cli-interp.c: New file.
909 * interps.h, interps.c: New files.
910 * top.c: (gdb_init): Don't install the default interpreter, handed
911 by captured_main.
912 * main.c: Include "interps.h".
913 (interpreter_p): Note that it should malloc'ed.
914 (captured_command_loop): Call current_interp_command_loop.
915 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
916 xfree and xstrdup when updating interpreter_p. Install the
917 default interpreter. Add hack to stop mi1's copyright notice
918 being encoded.
919 * event-top.h (gdb_setup_readline): Declare.
920 (gdb_disable_readline): Declare.
921 * event-top.c: Include "interps.h".
922 (display_gdb_prompt): Call current_interp_display_prompt_p.
923 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
924 gdb_stdlog, and gdb_stdtarg.
925 (_initialize_event_loop): Don't call gdb_setup_readline.
926 * cli-out.c (cli_out_set_stream): New function.
927 * cli-out.h (cli_out_set_stream): Declare.
928
929 2003-02-06 Mark Kettenis <kettenis@gnu.org>
930
931 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
932 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
933 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
934 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
935 config/i386/i386v42mp.mt: Removed.
936
937 2003-02-05 Mark Kettenis <kettenis@gnu.org>
938
939 * configure.tgt (*-*-solaris*): Set gdb_osabi to
940 GDB_OSABI_SOLARIS.
941
942 2003-02-05 Michael Chastain <mec@shout.net>
943
944 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
945 2.12.1 and earlier versions.
946
947 2003-02-05 Andrew Cagney <ac131313@redhat.com>
948
949 Remove orphaned hosts, targets and files.
950 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
951 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
952 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
953 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
954 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
955 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
956 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
957 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
958 * config/sparc/tm-sp64sim.h: Delete.
959 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
960 hosts.
961 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
962 mips*-dec-mach3* targets.
963
964 2003-02-04 Michael Chastain <mec@shout.net>
965
966 * NEWS: Fix typo: sepcifying -> specifying.
967
968 2003-02-04 Michael Chastain <mec@shout.net>
969
970 * dwarfread.c: Add documentation on the state of dwarf-1,
971 looking towards obsoletion.
972
973 2003-02-03 Michael Chastain <mec@shout.net>
974
975 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
976 gdb/testsuite/gdb.c++/pr-1023.exp.
977
978 2003-02-04 Andrew Cagney <ac131313@redhat.com>
979
980 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
981 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
982
983 * utils.c (init_page_info): Delete reference to MPW in comments.
984 * main.c (captured_main): Delete #ifdef MPW.
985
986 2003-02-04 Andrew Cagney <ac131313@redhat.com>
987
988 * NEWS: Note that the m32r-*-elf* is obsolete.
989 * monitor.c (monitor_expect): Obsolete reference to m32r.
990 * configure.tgt: Mark m32r-*-elf* as obsolete.
991 * MAINTAINERS: Mark m32k as obsolete.
992 * m32r-rom.c: Obsolete file.
993 * config/m32r/m32r.mt: Obsolete file.
994 * config/m32r/tm-m32r.h: Obsolete file.
995 * m32r-stub.c: Obsolete file.
996 * m32r-tdep.c: Obsolete file.
997
998 2003-02-04 Andrew Cagney <ac131313@redhat.com>
999
1000 * NEWS: Mention that the z8k-zilog-none is obsolete.
1001 * MAINTAINERS: Mark z8k as obsolete.
1002 * configure.tgt: Obsolete the z8k-*-coff* target.
1003 * config/z8k/z8k.mt: Obsolete file.
1004 * config/z8k/tm-z8k.h: Obsolete file.
1005 * z8k-tdep.c: Obsolete file.
1006
1007 2003-02-04 Andrew Cagney <ac131313@redhat.com>
1008
1009 * NEWS: Mention that the mn10200-elf is obsolete.
1010 * configure.tgt: Obsolete mn10200-*-* target.
1011 * breakpoint.c (update_breakpoints_after_exec): Update comment to
1012 mention that the mn10200 is obsolete.
1013 * breakpoint.h: Ditto.
1014 * MAINTAINERS: Mark the mn10200-elf as obsolete.
1015 * config/mn10200/mn10200.mt: Obsolete file.
1016 * config/mn10200/tm-mn10200.h: Obsolete file.
1017 * mn10200-tdep.c: Obsolete file.
1018
1019 2003-02-04 Andrew Cagney <ac131313@redhat.com>
1020
1021 * MAINTAINERS: Mark h8500 as obsolete.
1022 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
1023 * findvar.c (value_from_register): Ditto.
1024 * h8500-tdep.c: Mark file as obsolete.
1025 * config/h8500/h8500.mt: Ditto.
1026 * config/h8500/tm-h8500.h: Ditto.
1027 * NEWS: Mention that h8500 is obsolete.
1028
1029 2003-02-04 David Carlton <carlton@math.stanford.edu>
1030
1031 * objfiles.c (allocate_objfile): Always set name. Add comment at
1032 start of function.
1033 * jv-lang.c (get_dynamics_objfile): Add comment.
1034
1035 2003-02-04 David Carlton <carlton@math.stanford.edu>
1036
1037 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
1038 * printcmd.c (build_address_symbolic): Replace uses of
1039 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
1040 SYMBOL_NAME, and asm_demangle.
1041 Update copyright.
1042
1043 2003-02-04 David Carlton <carlton@math.stanford.edu>
1044
1045 * linespec.c (decode_compound): Extract code into
1046 lookup_prefix_sym.
1047 (lookup_prefix_sym): New function.
1048
1049 2003-02-04 David Carlton <carlton@math.stanford.edu>
1050
1051 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
1052 FLOAT_COERCION_BADNESS.
1053 * gdbtypes.c (rank_one_type): Replace all uses of
1054 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
1055
1056 2003-02-04 Jim Blandy <jimb@redhat.com>
1057
1058 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
1059 section, let dwarf_macinfo_section point to it, not
1060 dwarf_loc_section.
1061
1062 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
1063
1064 Pointed out by Anton Blanchard <anton@samba.org>.
1065 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
1066 (ppc_linux_at_sigtramp_return_path): Use it.
1067
1068 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
1069
1070 * defs.h (streq): Add prototype.
1071 * utils.c (streq): New function.
1072
1073 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
1074 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
1075 * mdebugread.c (new_symbol): Likewise.
1076 * stabsread.c (define_symbol): Likewise.
1077 * coffread.c (process_coff_symbol): Likewise.
1078 * dwarfread.c (new_symbol): Likewise.
1079
1080 * minsyms.c (prim_record_minimal_symbol_and_info): Use
1081 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
1082 here.
1083 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
1084 SYMBOL_INIT_DEMANGLED_NAME.
1085 * objfiles.c: Include "hashtab.h".
1086 (allocate_objfile): Call htab_set_functions_ex for the
1087 demangled_names_hash.
1088 (free_objfile): Call htab_delete for the demangled_names_hash.
1089 * objfiles.h (struct htab): Add declaration.
1090 (struct objfile): Add demangled_names_hash.
1091 * symfile.c: Include "hashtab.h".
1092 (reread_symbols): Call htab_delete for the demangled_names_hash.
1093 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
1094 SYMBOL_NAME in the bcache.
1095 * symtab.c: Include "hashtab.h". Update comments.
1096 (create_demangled_names_hash, symbol_set_names): New functions.
1097 (symbol_find_demangled_name): New function, broken out from
1098 symbol_init_demangled_names.
1099 (symbol_init_demangled_names): Use it.
1100 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
1101 (SYMBOL_SET_NAMES): New macro.
1102 (symbol_set_names): Add prototype.
1103
1104 2003-02-03 Jim Blandy <jimb@redhat.com>
1105
1106 Use a single, consistent representation for an empty minimal
1107 symbol table in an objfile.
1108 * objfiles.c (terminate_minimal_symbol_table): New function.
1109 (allocate_objfile): Call it.
1110 * objfiles.h (terminate_minimal_symbol_table): New declaration.
1111 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
1112 non-NULL.
1113 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
1114 objfile has minimal symbols, compare minimal_symbol_count to zero,
1115 instead of comparing msymbols with NULL.
1116 * objfiles.c (have_minimal_symbols): Same.
1117 * solib-sunos.c (solib_add_common_symbols): Call
1118 terminate_minimal_symbol_table.
1119 * symfile.c (reread_symbols): Same.
1120
1121 2003-02-03 Kevin Buettner <kevinb@redhat.com>
1122
1123 * s390-tdep.c (s390_address_class_type_flags)
1124 (s390_address_class_type_flags_to_name)
1125 (s390_address_class_name_to_type_flags): New functions.
1126 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
1127 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
1128
1129 2003-02-03 Michael Snyder <msnyder@redhat.com>
1130
1131 * arm-tdep.c: Fix spell-o in comment.
1132
1133 2003-02-03 Michal Ludvig <mludvig@suse.cz>
1134
1135 * dwarf2cfi.c (pointer_encoding): Added new parameter.
1136 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
1137 error messages to contain BFD filename.
1138
1139 2003-02-02 Elena Zannoni <ezannoni@redhat.com>
1140
1141 Fix PR gdb/742 gdb/743 gdb/877
1142 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
1143 (do_mixed_source_and_assembly): Use
1144 make_cleanup_ui_out_tuple_begin_end and
1145 make_cleanup_ui_out_tuple_begin_end.
1146 (do_mixed_source_and_assembly): Ditto.
1147 * thread.c (do_captured_list_thread_ids): Ditto.
1148 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
1149 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
1150 ui_out_tuple_end): Delete prototypes.
1151 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
1152 ui_out_list_end, ui_out_tuple_end): Delete.
1153
1154 From Kevin Buettner <kevinb@redhat.com>:
1155 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
1156 * ui-out.c (make_cleanup_ui_out_table_begin_end)
1157 (do_cleanup_table_end): New functions.
1158 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
1159 Use cleanups to invoke_ui_out_tuple_end().
1160 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
1161 * cli/cli-setshow.c (cmd_show_list): Use
1162 make_cleanup_ui_out_tuple_begin_end.
1163
1164 2003-02-02 Andrew Cagney <ac131313@redhat.com>
1165
1166 * frame.c (frame_unwind_register): New function.
1167 (frame_unwind_unsigned_register): Use.
1168 (frame_unwind_signed_register): Use.
1169 (frame_read_register): New function.
1170 * frame.h (frame_unwind_register): Declare.
1171 (frame_read_register): Declare.
1172
1173 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
1174 and frame_unwind_register instead of read_memory, write_register
1175 and deprecated_write_register_bytes.
1176
1177 2003-02-02 Andrew Cagney <ac131313@redhat.com>
1178
1179 * frame.h: Note that namelen can be negative.
1180 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
1181 NAME's length.
1182
1183 * NEWS: Mention that the d10v's `regs' command is deprecated.
1184 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
1185 (d10v_print_registers_info): New function.
1186 (show_regs): Call d10v_print_registers_info.
1187 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
1188
1189 2003-02-02 Mark Kettenis <kettenis@gnu.org>
1190
1191 * stack.c (print_frame_info): Restore call to annotate_frame_begin
1192 lost in the previous patch.
1193
1194 2003-02-01 Andrew Cagney <ac131313@redhat.com>
1195
1196 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
1197 * stack.c (print_frame_info_base): Output complete FRAME tuple
1198 for synthesized frames.
1199
1200 2003-02-02 Andrew Cagney <ac131313@redhat.com>
1201
1202 * mips-nat.c (zerobuf): Delete.
1203 (fetch_inferior_registers): Alloc local zerobuf.
1204 (fetch_core_registers): Alloc local zerobuf.
1205 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
1206 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
1207 * thread-db.c (thread_db_store_registers): Ditto.
1208 * sh-tdep.c (sh_do_register): Ditto.
1209 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
1210 * remote-sim.c (gdbsim_store_register): Ditto.
1211 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
1212 * remote-e7000.c (fetch_regs_from_dump): Ditto.
1213 * monitor.c (monitor_supply_register): Ditto.
1214 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
1215 * mips-nat.c (fetch_inferior_registers): Ditto.
1216 * m68klinux-nat.c (fetch_register): Ditto.
1217 * lynx-nat.c (fetch_inferior_registers): Ditto.
1218 (fetch_inferior_registers): Ditto.
1219 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
1220 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
1221 (hpux_thread_store_registers): Ditto.
1222 * hppah-nat.c (fetch_register): Ditto.
1223 * hppab-nat.c (fetch_register): Ditto.
1224 * hppa-tdep.c (pa_register_look_aside): Ditto.
1225 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
1226 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
1227
1228 2003-02-01 Andrew Cagney <ac131313@redhat.com>
1229
1230 * gdbarch.sh: Explictly specify all method levels. When a
1231 variable with an empty level, provide a non-multi-arch default.
1232 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
1233 * gdbarch.h: Re-generate.
1234 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
1235 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
1236
1237 2003-02-01 Andrew Cagney <ac131313@redhat.com>
1238
1239 * defs.h (host_pointer_to_address): Delete declaration.
1240 (address_to_host_pointer): Delete declaration.
1241 * utils.c (host_pointer_to_address): Delete function.
1242 (address_to_host_pointer): Delete function.
1243 * procfs.c (procfs_address_to_host_pointer): New function.
1244 * procfs.c (proc_set_watchpoint): Use.
1245 (procfs_can_use_hw_breakpoint): Update comments.
1246 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
1247 (som_solib_add): Use.
1248 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
1249 * hppa-tdep.c (unwind_command): Use.
1250
1251 2003-02-01 Andrew Cagney <ac131313@redhat.com>
1252
1253 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
1254 strlen d_name.
1255
1256 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
1257 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
1258 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
1259 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
1260 (define_symbol): Update.
1261 * symfile.c (generic_load): Remove references to nindy.
1262 * symtab.c: Remove references to nindy.
1263
1264 2003-02-01 Andrew Cagney <ac131313@redhat.com>
1265
1266 * infcmd.c (print_float_info): Delete code conditional on
1267 FLOAT_INFO.
1268 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
1269 * config/m68k/nm-apollo68b.h: Ditto.
1270 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
1271 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
1272 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
1273
1274 2003-02-01 Mark Kettenis <kettenis@gnu.org>
1275
1276 * config/i386/tm-i386os9k.h: Removed.
1277
1278 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
1279 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
1280 they're identical to i[3456]86-*-sysv* now.
1281 * config/i386/i386v32.mh: Removed.
1282 * config/i386/xm-i386v32.h: Removed.
1283 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
1284
1285 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
1286
1287 * config/i386/i386dgux.mh: Removed.
1288 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
1289
1290 * configure.in: Fix typo.
1291 * configure: Regenerated.
1292
1293 2003-01-31 David Carlton <carlton@math.stanford.edu>
1294
1295 * dwarf2read.c (dwarf2_locate_sections): Set
1296 dwarf_ranges_section.
1297
1298 2003-01-31 Andrew Cagney <ac131313@redhat.com>
1299
1300 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
1301 * utils.c: Update comments documenting legitimate uses of PTR.
1302
1303 * utils.c: Re-indent.
1304
1305 * config/djgpp/fnchange.lst: Delete nindy files.
1306 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
1307 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
1308 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
1309 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
1310 * nindy-share/README, nindy-share/Onindy.c: Delete files.
1311 * nindy-tdep.c, nindy-share/Makefile: Delete files.
1312 * Makefile.in (init.c): Remove nindy references.
1313 (saber_gdb): Delete rule.
1314 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
1315 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
1316 and a68v-nat.c.
1317 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
1318 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
1319 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
1320 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
1321 nindy-share/stop.h.
1322 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
1323 * saber.suppress: Delete file.
1324
1325 2003-01-31 Daniel Jacobowitz <drow@mvista.com>
1326
1327 * dbxread.c (stabs_data): New static variable.
1328 (fill_symbuf): Support an in-memory buffer for stabs data.
1329 (stabs_seek): New function.
1330 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
1331 (read_ofile_symtab): Use stabs_seek.
1332 (elfstab_build_psymtabs): Take an asection* instead of
1333 an offset and size. Relocate the stabs data if necessary.
1334 Save the section* for dbx_psymtab_to_symtab.
1335 * dwarf2read.c: Add section variables for each debug section.
1336 (dwarf2_locate_sections): Fill them in.
1337 (dwarf2_read_section): Take an asection* argument.
1338 Relocate the section contents if necessary.
1339 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
1340 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
1341 it to dwarf2_read_section.
1342 (dwarf2_build_frame_info): Update callers.
1343 * elfread.c (elf_symfile_read): Update call to
1344 elfstab_build_psymtabs.
1345 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
1346 (DBX_STAB_SECTION): New macro.
1347 * stabsread.h (elfstab_build_psymtabs): Update prototype.
1348 * symfile.c (symfile_dummy_outputs): New function.
1349 (symfile_relocate_debug_section): New function.
1350 * symfile.h (symfile_relocate_debug_section): Add prototype.
1351
1352 2003-01-31 Richard Henderson <rth@redhat.com>
1353
1354 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
1355 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
1356 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
1357 * alpha-tdep.c (alpha_register_name): Add "unique".
1358 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
1359 (ALPHA_UNIQUE_REGNUM): New.
1360 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
1361
1362 2003-01-31 Andrew Cagney <ac131313@redhat.com>
1363
1364 * README: Remove reference to Ericsson 1800 monitor.
1365 * Makefile.in (remote-es.o): Delete rule.
1366 (ALLDEPFILES): Delete remote-es.c.
1367 * remote-es.c: Delete file.
1368 * config/m68k/es1800.mt: Delete file.
1369 * config/djgpp/fnchange.lst: Update.
1370 * configure.tgt: Delete m68*-ericsson-* target.
1371
1372 2003-01-31 Adam Fedor <fedor@gnu.org>
1373
1374 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
1375 Remove duplicate/shadowing variable of same name.
1376
1377 2003-01-30 Jim Blandy <jimb@redhat.com>
1378
1379 * symfile.c (find_separate_debug_file): Assert that the objfile's
1380 directory name we compute ends with a slash, and then assume that
1381 that's so everywhere we use it.
1382
1383 2003-01-30 Daniel Jacobowitz <drow@mvista.com>
1384
1385 * valops.c (value_assign): Flush frame cache after stores to memory
1386 also.
1387
1388 2003-01-30 Andrew Cagney <ac131313@redhat.com>
1389
1390 * Makefile.in (mon960-rom.o): Delete rule.
1391 * mon960-rom.c: Delete file.
1392
1393 2003-01-30 Andrew Cagney <ac131313@redhat.com>
1394
1395 * d10v-tdep.c: Include "frame-unwind.h".
1396 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
1397 list.
1398 (next_addr, uses_frame): Delete.
1399 (struct d10v_unwind_cache): Define.
1400 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
1401 Use info instead of next_addr and uses_frame globals.
1402 (d10v_frame_init_saved_regs): Delete function.
1403 (d10v_init_extra_frame_info): Delete function.
1404 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
1405 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
1406 init_frame_pc or frame_saved_pc.
1407 (d10v_pop_frame): Delete function.
1408 (do_d10v_pop_frame): Delete function.
1409 (d10v_frame_chain): Delete function.
1410 (d10v_frame_chain_valid): Delete function.
1411 (d10v_frame_pc_unwind): New function.
1412 (d10v_frame_id_unwind): New function.
1413 (saved_regs_unwinder): New function.
1414 (d10v_frame_register_unwind): New function.
1415 (d10v_frame_pop): New function.
1416 (d10v_frame_unwind): New variable.
1417 (d10v_frame_p): New function.
1418 (d10v_frame_saved_pc): Delete function.
1419 * Makefile.in (d10v-tdep.o): Update dependencies.
1420
1421 2003-01-30 J. Brobecker <brobecker@gnat.com>
1422
1423 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
1424 causing some regressions due to a change in the default value
1425 for this macro.
1426
1427 2003-01-29 Richard Henderson <rth@redhat.com>
1428 Elena Zannoni <ezannoni@redhat.com>
1429 Daniel Jacobowitz <drow@mvista.com>
1430
1431 Fix PR gdb/961.
1432 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
1433 variables.
1434 (RANGES_SECTION): New.
1435 (dwarf_ranges_buffer): New variable.
1436 (struct comp_unit_head): Add member "die".
1437 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
1438 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
1439 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
1440 (dwarf2_locate_sections): Likewise.
1441 (dwarf2_build_psymtabs): Read .debug_ranges.
1442 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
1443 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
1444 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
1445 Look for DW_AT_ranges and return the bounding box.
1446
1447 2003-01-29 Brian Ford <ford@vss.fsi.com>
1448
1449 * win32-nat.c (cygwin_pid): Removed as unused.
1450 (child_attach): Try fall back to Cygwin pid.
1451
1452 2003-01-29 Jim Blandy <jimb@redhat.com>
1453
1454 * objfiles.h (struct objfile): Doc fix.
1455
1456 2003-01-29 Andrew Cagney <ac131313@redhat.com>
1457
1458 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
1459 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
1460 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
1461 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
1462 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
1463 (FRAME_SAVED_PC): Change to a function with predicate.
1464 * gdbarch.h, gdbarch.c: Re-generate.
1465
1466 2003-01-28 Andrew Cagney <ac131313@redhat.com>
1467
1468 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
1469
1470 * complaints.c (complain): Delete function.
1471 * complaints.h (struct deprecated_complaint): Delete definition.
1472 (complain): Delete declaration.
1473
1474 2003-01-28 Kevin Buettner <kevinb@redhat.com>
1475
1476 * mips-tdep.c (mips_init_extra_frame_info): Return early for
1477 dummy frames.
1478
1479 2003-01-27 Andrew Cagney <ac131313@redhat.com>
1480
1481 * sentinel-frame.h, sentinel-frame.c: New files.
1482 * Makefile.in (frame.o): Update dependencies.
1483 (SFILES): Add sentinel-frame.c.
1484 (sentinel_frame_h): Define.
1485 (COMMON_OBS): Add sentinel-frame.o.
1486 (sentinel-frame.o): Specify dependencies.
1487 * frame.c: Include "sentinel-frame.h".
1488 (frame_register_unwind): Rewrite assuming that there is always a a
1489 ->next frame.
1490 (frame_register, generic_unwind_get_saved_register): Ditto.
1491 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
1492 (create_sentinel_frame, unwind_to_current_frame): New functions.
1493 (get_current_frame): Rewrite using create_sentinel_frame and
1494 unwind_to_current_frame. When possible, always create a frame.
1495 (create_new_frame): Set next to the sentinel frame.
1496 (get_next_frame): Rewrite. Don't go below the level 0 frame.
1497 (deprecated_update_frame_pc_hack): Update the next frame's PC and
1498 ID cache when necessary.
1499 (frame_saved_regs_id_unwind): Use frame_relative_level.
1500 (deprecated_generic_get_saved_register): Use frame_relative_level,
1501 get_frame_saved_regs, get_frame_pc, get_frame_base and
1502 get_next_frame.
1503 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
1504 frame_register.
1505
1506 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
1507
1508 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
1509
1510 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
1511
1512 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
1513 (maintenance_set_profile_cmd): Use error () instead of warning ().
1514
1515 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
1516
1517 * configure.in: Check that -pg works if using --enable-profiling.
1518 Check for monstartup and _mcleanup regardless of --enable-profiling.
1519 * maint.c: Check for monstartup and _mcleanup before using them.
1520 * config.in: Regenerated.
1521 * configure: Regenerated.
1522
1523 2003-01-24 Nick Clifton <nickc@redhat.com>
1524
1525 * Add sh2e support:
1526
1527 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
1528
1529 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
1530 (sh2e_show_regs): New.
1531 (sh_gdbarch_init): Handle bfd_mach_sh2e.
1532 * config/sh/tm-sh.h: Added sh2e to comments.
1533
1534 2003-01-23 Jim Blandy <jimb@redhat.com>
1535
1536 * symfile.c (syms_from_objfile): Don't print the "(no debugging
1537 symbols found)" message here; we haven't checked for a separate
1538 debug info file yet, so we don't know yet.
1539 (symbol_file_add_with_addrs_or_offsets): Print it here, after
1540 we've looked everywhere. Also, there's no need to print a special
1541 message when we're loading the separate debug info file: the one
1542 symbol_file_add prints is fine.
1543
1544 2003-01-23 Alexander Larsson <alexl@redhat.com>
1545 Jim Blandy <jimb@redhat.com>
1546
1547 Add support for executables whose debug info has been separated
1548 out into a separate file, leaving only a link behind.
1549 * objfiles.h (struct objfile): New fields: separate_debug_objfile
1550 and separate_debug_objfile_backlink.
1551 (put_objfile_before): New declaration.
1552 * symfile.c: #include "filenames.h".
1553 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
1554 debug info in a separate file, read that, too. Save the addrs
1555 argument, so we can use it again to read the separated debug info;
1556 syms_from_objfile modifies the table we pass it.
1557 (reread_symbols): After re-reading an objfile, call
1558 reread_separate_symbols to refresh its separate debug info
1559 objfile, if it has one.
1560 (reread_separate_symbols, find_separate_debug_file,
1561 get_debug_link_info, separate_debug_file_exists): New functions.
1562 (debug_file_directory): New global var.
1563 (_initialize_symfile): Initialize debug_file_directory, and
1564 provide the new `set debug-file-directory' command to let the user
1565 change it.
1566 * objfiles.c (free_objfile): If this objfile has its debug info in
1567 a separate objfile, free that one too. If this is itself a
1568 separate debug info objfile, clear our parent's backlink.
1569 (put_objfile_before): New function.
1570 * utils.c (gnu_debuglink_crc32): New function.
1571 * defs.h (gnu_debuglink_crc32): New declaration.
1572 * Makefile.in (symfile.o): Note dependency on "filenames.h".
1573 * configure.in: Handle --with-separate-debug-dir config option.
1574 * acinclude.m4 (AC_DEFINE_DIR): New macro.
1575 * acconfig.h (DEBUGDIR): New macro.
1576 * configure, aclocal.m4, config.in: Regenerated.
1577
1578 2003-01-22 Jim Blandy <jimb@redhat.com>
1579
1580 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
1581 like the old symbol_file_add, but taking new arguments: you can
1582 now pass in either a `struct section_addr_info' list to say where
1583 each section is loaded, or a `struct section_offsets' table. Pass
1584 these new arguments through to syms_from_objfile as appropriate.
1585 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
1586 with the appropriate quiescent values for the new arguments.
1587
1588 * symfile.c: #include "gdb_assert.h".
1589 (syms_from_objfile): Add the ability to pass in a section offset
1590 table directly, as an alternative to the section_addr_info table.
1591 Document arguments better.
1592 (symbol_file_add): Pass extra arguments to syms_from_objfile.
1593 * symfile.h (syms_from_objfile): Update declaration.
1594 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
1595 syms_from_objfile.
1596 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
1597
1598 2003-01-22 Daniel Jacobowitz <drow@mvista.com>
1599
1600 Original patch by Tom Tromey <tromey@cygnus.com> and
1601 Jason Molenda <jmolenda@apple.com>.
1602 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
1603 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
1604 * NEWS: Mention profiling.
1605 * configure.in (--enable-gdbtk): Fix typo.
1606 (--enable-profiling): New. Set PROFILE_CFLAGS.
1607 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
1608 Fill in function.
1609 (profiling_state): New variable.
1610 (mcleanup_wrapper): New function.
1611 (_initialize_maint): Remove NOTYET, fix call to
1612 add_setshow_boolean_cmd for "maint set profile".
1613 * configure: Regenerated.
1614
1615 2003-01-21 Martin M. Hunt <hunt@redhat.com>
1616
1617 * Makefile.in (install-gdbtk): Install PNG images too.
1618
1619 2003-01-21 Andrew Cagney <ac131313@redhat.com>
1620
1621 * exec.c (text_start): Delete global variable.
1622 (exec_file_attach): Make text_start local to the function.
1623 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
1624 * valops.c (hand_function_call): Delete code that handles
1625 BEFORE_TEXT_END and AFTER_TEXT_END.
1626 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
1627 of CALL_DUMMY_LOCATION.
1628 * gdbarch.c: Regenerate.
1629 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
1630 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
1631 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
1632 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
1633 (text_end): Delete extern declaration.
1634
1635 2003-01-21 Andrew Cagney <ac131313@redhat.com>
1636
1637 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
1638 * blockframe.c (backtrace_below_main): Move to "frame.c".
1639 (frame_chain_valid): Delete check for backtrace_below_main.
1640 (_initialize_blockframe): Delete initialization, move ``set
1641 backtrace-below-main'' command to "frame.c".
1642 (do_flush_frames_sfunc): Delete function.
1643 * frame.c: Include "command.h" and "gdbcmd.h".
1644 (frame_type_from_pc): New function.
1645 (create_new_frame): Use frame_type_from_pc.
1646 (legacy_get_prev_frame): New function.
1647 (get_prev_frame): Rewrite. When an old style frame, call
1648 legacy_get_prev_frame. Otherwize, unwind the PC first.
1649 (_initialize_frame): Add ``set backtrace-below-main'' command.
1650 * Makefile.in (frame.o): Update dependencies.
1651
1652 2003-01-19 Andrew Cagney <ac131313@redhat.com>
1653
1654 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
1655 DEPRECATED_REGISTERS_INFO.
1656
1657 2003-01-19 Andrew Cagney <ac131313@redhat.com>
1658
1659 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
1660 Maintainers'. Update `Various Maintainers'.
1661
1662 2003-01-19 Andrew Cagney <ac131313@redhat.com>
1663
1664 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
1665 * gdbarch.sh (POP_FRAME): Change to function with predicate.
1666 Suppress actual parameters when `-'.
1667 * gdbarch.h, gdbarch.c: Regenerate.
1668
1669 2003-01-19 Andrew Cagney <ac131313@redhat.com>
1670
1671 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
1672 code handling dummy frames.
1673
1674 2003-01-19 Andrew Cagney <ac131313@redhat.com>
1675
1676 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
1677 (struct frame_unwind): Add field pop.
1678 * frame.h (frame_pop): Declare.
1679 * frame.c (frame_saved_regs_pop): New function.
1680 (trad_frame_unwinder): Add frame_saved_regs_pop.
1681 (frame_pop): New function.
1682 * dummy-frame.c (dummy_frame_pop): New function.
1683 (discard_innermost_dummy): New function.
1684 (generic_pop_dummy_frame): Use discard_innermost_dummy.
1685 (dummy_frame_unwind): Add dummy_frame_pop.
1686 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
1687 * valops.c (hand_function_call): Ditto.
1688 * stack.c (return_command): Ditto.
1689
1690 2003-01-18 Andrew Cagney <ac131313@redhat.com>
1691
1692 * cris-tdep.c: Fix function declaration indentation.
1693 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
1694 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
1695 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
1696 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
1697 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
1698 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
1699
1700 2003-01-18 Michael Chastain <mec@shout.net>
1701
1702 * README (Unpacking and Installation -- quick overview):
1703 Warn against ".../gdb-5.3/gdb/configure".
1704
1705 2003-01-18 Andrew Cagney <ac131313@redhat.com>
1706
1707 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
1708 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
1709 (struct frame_unwind): Declare opaque.
1710 (dummy_frame_p): Declare function.
1711 * dummy-frame.c (dummy_frame_id_unwind): Make static.
1712 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
1713 * dummy-frame.c: Include "frame-unwind.h".
1714 (dummy_frame_p): New function.
1715 (dummy_frame_unwind): New variable.
1716 * frame.c: Include "frame-unwind.h".
1717 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
1718 to use the new unwind field.
1719 (set_unwind_by_pc): Delete function.
1720 (create_new_frame, get_prev_frame): Set unwind field using
1721 frame_unwind_find_by_pc.
1722 (trad_frame_unwind, trad_frame_unwinder): New variables.
1723 * frame.h (trad_frame_unwind): Declare variable.
1724 (frame_id_unwind_ftype): Delete declaration.
1725 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
1726 (struct frame_unwind): Declare opaque.
1727 (struct frame_info): Replace the fields id_unwind, pc_unwind and
1728 register_unwind with a single unwind pointer.
1729 * frame-unwind.h, frame-unwind.c: New files.
1730 * Makefile.in (SFILES): Add frame-unwind.c.
1731 (frame_unwind_h): Define.
1732 (COMMON_OBS): Add frame-unwind.o.
1733 (frame-unwind.o): Specify dependencies.
1734 (frame.o, dummy-frame.o): Update dependencies.
1735
1736 2003-01-18 Andrew Cagney <ac131313@redhat.com>
1737
1738 * ada-valprint.c: Eliminate PTR.
1739 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
1740 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
1741 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
1742 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
1743 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
1744 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
1745 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
1746
1747 2003-01-17 Andrew Cagney <ac131313@redhat.com>
1748
1749 * main.c (captured_main): Don't use PTR.
1750 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
1751 * gdbtypes.c (lookup_primitive_typename): Ditto.
1752 (lookup_struct_elt_type): Ditto.
1753 * f-valprint.c (info_common_command): Ditto.
1754 (list_all_visible_commons): Ditto.
1755 * jv-typeprint.c (java_type_print_base): Ditto.
1756
1757 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
1758 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
1759 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
1760 i386-interix-nat.c and i386-interix-tdep.c. Rename
1761 m68klinux-nat.c and m68klinux-tdep.c. Rename
1762 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
1763 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
1764 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
1765 * main.c (captured_main): Use xfree, not free.
1766
1767 2003-01-16 Andrew Cagney <ac131313@redhat.com>
1768
1769 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
1770 ID back using a parameter.
1771 * frame.c (frame_id_unwind): Update call.
1772 (frame_saved_regs_id_unwind): Update.
1773 * dummy-frame.c (dummy_frame_id_unwind): Update function.
1774 * dummy-frame.h (struct frame_id): Add opaque declaration.
1775 (dummy_frame_id_unwind): Update declaration.
1776
1777 2003-01-15 Andrew Cagney <ac131313@redhat.com>
1778
1779 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
1780
1781 2003-01-15 Stephen P. Smith <ischis2@cox.net>
1782
1783 * MAINTAINERS (Stephen P. Smith): Updated email address.
1784
1785 2003-01-14 Elena Zannoni <ezannoni@redhat.com>
1786
1787 Fix PR gdb/898
1788 * breakpoint.c (until_break_command): Add new argument. Use it to
1789 decide whether to stop only at the current frame or not.
1790 * breakpoint.h (until_break_command): Update prototype.
1791 * infcmd.c (until_command): Add new argument to until_break_command
1792 call.
1793 (advance_command): New function.
1794 (_initialize_infcmd): Update help string for 'until' command.
1795 Add new 'advance' command.
1796
1797 2003-01-14 David Carlton <carlton@math.stanford.edu>
1798
1799 * linespec.c (decode_line_1): Normalize comments.
1800 (set_flags): Ditto.
1801 (locate_first_half): Ditto.
1802 (decode_compound): Ditto.
1803 (symtab_from_filename): Ditto.
1804 (decode_all_digits): Ditto.
1805 (decode_dollar): Ditto.
1806 (find_methods): Ditto.
1807 (find_toplevel_char): Ditto.
1808
1809 2003-01-13 Andrew Cagney <ac131313@redhat.com>
1810
1811 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
1812 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
1813 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
1814 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
1815 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
1816 * language.c, language.h, m32r-tdep.c: Update copyright.
1817 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
1818 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
1819 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
1820 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
1821 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
1822 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
1823
1824 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
1825
1826 * stabsread.h (process_later, resolve_cfront_continuation):
1827 Obsolete.
1828 Update copyright years.
1829 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
1830 Update copyright year.
1831 * dbxread.c(struct cont_elem): Obsolete.
1832 (process_later, process_now): Obsolete functions.
1833 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
1834 Update copyright year.
1835 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
1836 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
1837 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
1838 (parse_partial_symbols): Obsolete cfront support.
1839 * stabsread.c
1840 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
1841 macros.
1842 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
1843 read_cfront_baseclasses, read_cfront_member_functions,
1844 resolve_cfront_continuation,read_cfront_static_fields,
1845 copy_cfront_struct_fields): Obsolete functions.
1846 (define_symbol, read_one_struct_field): Obsolete cfront support.
1847 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
1848 Update Copyright year.
1849
1850 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
1851
1852 * stack.c (print_frame_info, print_stack_frame_base_stub,
1853 print_stack_frame_base, show_and_print_stack_frame_stub,
1854 show_and_print_stack_frame, print_only_stack_frame_stub,
1855 print_only_stack_frame): Delete functions.
1856 (print_stack_frame_stub): Call print_frame_info instead of
1857 print_frame_info_base.
1858 (print_frame_info_base): Rename to print_frame_info.
1859 (backtrace_command_1): Call print_frame_info, instead of
1860 print_frame_info_base.
1861 (current_frame_command): Call print_stack_frame, instead of
1862 print_only_stack_frame.
1863 (frame_command): Call print_stack_frame, instead of
1864 show_and_print_stack_frame.
1865 (up_command): Ditto.
1866 (down_command): Ditto.
1867 * frame.h (print_only_stack_frame): Delete prototype.
1868 * infrun.c (normal_stop): Call print_stack_frame, instead of
1869 show_and_print_stack_frame.
1870 * thread.c (info_threads_command): Call print_stack_frame, instead
1871 of print_only_stack_frame.
1872
1873 2003-01-13 Andrew Cagney <ac131313@redhat.com>
1874
1875 * README (Graphical interface to GDB): Update URL. Point at
1876 gdb/links/.
1877
1878 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
1879 version match.
1880
1881 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
1882
1883 * symtab.c (find_pc_sect_line): Don't consider end-of-function
1884 lines.
1885
1886 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
1887
1888 * thread-db.c (attach_thread): Prototype.
1889 (struct private_thread_info): Remove lwpid. Add thread handle (th),
1890 thread information (ti), and valid flags (th_valid, ti_valid).
1891 (attach_thread): Move target_pid_to_str call to after the thread
1892 is added to GDB's list. Initialize the cache.
1893 (thread_get_info_callback, thread_db_map_id2thr)
1894 (thread_db_get_info): New functions.
1895 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
1896 (thread_db_store_registers, thread_db_thread_alive)
1897 (thread_db_get_thread_local_address): Use them.
1898 (thread_db_pid_to_str): Likewise. Return "Missing" instead
1899 of calling error() for threads in unknown state.
1900
1901 (clear_lwpid_callback): New function.
1902 (thread_db_resume): Use it to clear the cache.
1903
1904 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
1905
1906 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
1907 (resume_callback): Remove dead code.
1908
1909 2003-01-13 Andrew Cagney <ac131313@redhat.com>
1910
1911 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
1912 predicate.
1913 * gdbarch.h, gdbarch.c: Regenerate.
1914 * stack.c (frame_info): Only initialize the saved registers when
1915 FRAME_INIT_SAVED_REGS_P.
1916 * frame.c (frame_saved_regs_register_unwind): Assert
1917 FRAME_INIT_SAVED_REGS_P.
1918 (deprecated_generic_get_saved_register): Ditto.
1919
1920 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
1921
1922 * source.c (openp): Squelch warning about "filename".
1923
1924 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
1925
1926 * source.c (openp): If the file does not exist don't necessarily
1927 search the path.
1928
1929 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
1930
1931 Fix PR gdb/872.
1932 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
1933 (integer_types_same_name_p): New function.
1934 (rank_one_type): Use it.
1935 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
1936
1937 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
1938
1939 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
1940 variables.
1941 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
1942 * configure.in: Add --with-sysroot.
1943 * configure: Regenerated.
1944 * main.c (gdb_sysroot): New variable.
1945 (captured_main): Initialize gdb_sysroot.
1946 * defs.h (gdb_sysroot): New extern declaration.
1947 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
1948
1949 2003-01-12 Michael Chastain <mec@shout.net>
1950
1951 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
1952
1953 2003-01-12 Michael Chastain <mec@shout.net>
1954
1955 * top.c (print_gdb_version): Bump copyright year to 2003.
1956
1957 2003-01-12 David Carlton <carlton@bactrian.org>
1958
1959 * linespec.c (symtab_from_filename): Rename variable 's' to
1960 'file_symtab'.
1961
1962 2003-01-12 Andrew Cagney <ac131313@redhat.com>
1963
1964 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
1965 dummy frame.
1966 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
1967
1968 2003-01-12 Andrew Cagney <ac131313@redhat.com>
1969
1970 * d10v-tdep.c: Include "gdb_assert.h".
1971 (d10v_store_return_value): Rewrite to match current interface.
1972 (d10v_extract_struct_value_address): Ditto.
1973 (d10v_extract_return_value): Ditto.
1974 (d10v_gdbarch_init): Set store_restore_value,
1975 extract_struct_value_address and extract_return_value.
1976
1977 2003-01-12 J. Brobecker <brobecker@gnat.com>
1978
1979 * hpread.c (set_namestring): New procedure replacing the
1980 SET_NAMESTRING macro.
1981 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
1982 by calls to set_namestring.
1983
1984 2003-01-11 J. Brobecker <brobecker@gnat.com>
1985
1986 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
1987 a compilation warning.
1988 (hpread_process_one_debug_symbol): Likewise.
1989
1990 2003-01-10 David Carlton <carlton@math.stanford.edu>
1991
1992 * linespec.c (decode_line_1): Rename variable 's' to
1993 'file_symtab'.
1994 (decode_all_digits): Rename argument 's' to 'file_symtab'.
1995 (decode_dollar): Ditto.
1996 (decode_variable): Ditto.
1997 (symbol_found): Ditto.
1998
1999 2003-01-09 Michael Chastain <mec@shout.net>
2000
2001 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
2002
2003 2003-01-07 Corinna Vinschen <vinschen@redhat.com>
2004
2005 * win32-nat.c (set_process_privilege): New function.
2006 (child_attach): Call set_process_privilege() to enable the
2007 SE_DEBUG_NAME user privilege if available in process token.
2008
2009 2003-01-10 J. Brobecker <brobecker@gnat.com>
2010
2011 * hpread.c (hpread_process_one_debug_symbol): Fix a small
2012 compilation error in the previous revision.
2013
2014 2003-01-09 David Carlton <carlton@math.stanford.edu>
2015
2016 * linespec.c: Update copyright.
2017
2018 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
2019
2020 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
2021 than inferior_ptid.
2022 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
2023
2024 2003-01-09 Andrew Cagney <ac131313@redhat.com>
2025
2026 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
2027 Update comments.
2028 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
2029 (frame_saved_regs_zalloc): Update.
2030 (frame_saved_regs_register_unwind): Update.
2031 (create_new_frame): Update.
2032 (get_prev_frame): Update.
2033 (frame_extra_info_zalloc): Update.
2034 (deprecated_get_frame_saved_regs): Update.
2035 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
2036 * cris-tdep.c: Update comment.
2037
2038 * somsolib.h: Fix function indentation.
2039 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
2040 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
2041 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
2042 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
2043 * somsolib.c, inftarg.c: Remove assignment in if conditional.
2044
2045 * infrun.c (follow_fork): Use ISO C definition.
2046 * expprint.c (print_subexp): Use xfree instead of free.
2047 * charset.c: Include "gdb_string.h" instead of <string.h>.
2048 (register_iconv_charsets): Use ISO C definition.
2049 (host_charset, target_charset): Ditto.
2050 * Makefile.in (charset.o): Update dependencies.
2051 (mi-cmd-env.o): Update dependencies.
2052
2053 2003-01-08 Andrew Cagney <cagney@redhat.com>
2054
2055 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
2056 get_frame_base.
2057
2058 2003-01-08 Andrew Cagney <ac131313@redhat.com>
2059
2060 * gdb_mbuild.sh: Add --keep option. When specified, keep the
2061 build directories. Save edited gdb output in Mbuild.log. If a
2062 build fails, remove any final GDB executable.
2063
2064 2003-01-08 Andrew Cagney <ac131313@redhat.com>
2065
2066 * gdb_mbuild.sh: Edit the output of `maint print architecture'
2067 replacing hex constants with function names and stripping leading
2068 file name directory prefixes.
2069
2070 2003-01-08 Andrew Cagney <cagney@redhat.com>
2071
2072 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
2073 get_frame_base.
2074
2075 2003-01-08 David Carlton <carlton@math.stanford.edu>
2076
2077 * linespec.c (decode_line_1): Move code into decode_variable.
2078 (decode_variable): New function.
2079
2080 2003-01-08 Andrew Cagney <ac131313@redhat.com>
2081
2082 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
2083
2084 2003-01-08 Andrew Cagney <cagney@redhat.com>
2085
2086 * cris-tdep.c (cris_frame_init_saved_regs): Use
2087 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
2088 saved_regs buffer.
2089 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
2090 (sh64_nofp_frame_init_saved_regs): Ditto.
2091 (sh_fp_frame_init_saved_regs): Ditto.
2092 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
2093 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
2094 * mcore-tdep.c (analyze_dummy_frame): Ditto.
2095 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
2096
2097 2003-01-08 Daniel Jacobowitz <drow@mvista.com>
2098
2099 * minsyms.c (lookup_minimal_symbol): Update comment.
2100 (lookup_minimal_symbol_text): Update comment. Use the hash table.
2101 (lookup_minimal_symbol_solib_trampoline): Likewise.
2102
2103 2003-01-08 Andrew Cagney <cagney@redhat.com>
2104
2105 * d10v-tdep.c (d10v_init_extra_frame_info): Use
2106 frame_relative_level.
2107
2108 * alpha-tdep.c: Use get_frame_extra_info.
2109 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
2110 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
2111 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
2112 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
2113
2114 * alpha-tdep.c: Use get_next_frame.
2115 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
2116 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
2117 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
2118 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
2119 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
2120 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
2121 * xstormy16-tdep.c: Ditto.
2122
2123 2003-01-07 Andrew Cagney <cagney@redhat.com>
2124
2125 * alpha-tdep.c: Use get_frame_base.
2126 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
2127 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
2128 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
2129 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
2130 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
2131 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
2132 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
2133 * config/sparc/tm-sparc.h: Ditto.
2134
2135 2003-01-07 Andrew Cagney <cagney@redhat.com>
2136
2137 * frame.c (deprecated_get_frame_context): New function.
2138 (deprecated_set_frame_context): New function.
2139 * frame.h (deprecated_get_frame_context): Declare.
2140 (deprecated_set_frame_context): Declare.
2141 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
2142 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
2143
2144 2003-01-07 Andrew Cagney <cagney@redhat.com>
2145
2146 * frame.c (deprecated_set_frame_next_hack): New function.
2147 (deprecated_set_frame_prev_hack): New function.
2148 * frame.h (deprecated_set_frame_next_hack): Declare.
2149 (deprecated_set_frame_prev_hack): Declare.
2150 * mcore-tdep.c (analyze_dummy_frame): Use
2151 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
2152 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
2153
2154 2003-01-07 David Carlton <carlton@math.stanford.edu>
2155
2156 * linespec.c (decode_line_1): Move code into decode_dollar.
2157 (decode_dollar): New function.
2158
2159 2003-01-07 Andrew Cagney <cagney@redhat.com>
2160
2161 * arm-tdep.c (arm_init_extra_frame_info): Use
2162 deprecated_update_frame_base_hack.
2163 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
2164 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
2165 (fix_frame_pointer): Ditto.
2166 (mn10300_analyze_prologue): Ditto.
2167
2168 2003-01-07 Andrew Cagney <cagney@redhat.com>
2169
2170 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
2171 extra_info using frame_extra_info_zalloc.
2172 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
2173 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
2174 (sh64_init_extra_frame_info): Ditto.
2175 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
2176 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
2177 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
2178 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
2179 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
2180 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
2181 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
2182 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
2183 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
2184 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
2185 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
2186 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
2187
2188 * mn10300-tdep.c (analyze_dummy_frame): Use
2189 deprecated_set_frame_extra_info_hack.
2190 * mcore-tdep.c (analyze_dummy_frame): Ditto.
2191
2192 2003-01-07 J. Brobecker <brobecker@gnat.com>
2193
2194 * mdebugread.c (parse_symbol): Skip stProc entries which storage
2195 class is not scText. These do not define "real" procedures.
2196 (parse_partial_symbols): Likewise.
2197
2198 2003-01-06 Michael Snyder <msnyder@redhat.com>
2199
2200 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
2201
2202 2003-01-06 Andrew Cagney <ac131313@redhat.com>
2203
2204 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
2205 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
2206 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
2207 deprecated_frame_xmalloc_with_cleanup.
2208 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
2209 deprecated_frame_xmalloc.
2210 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
2211 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
2212
2213 2003-01-06 Andrew Cagney <cagney@redhat.com>
2214
2215 * x86-64-linux-tdep.c: Include "osabi.h".
2216 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
2217
2218 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
2219
2220 2003-01-06 Andrew Cagney <cagney@redhat.com>
2221
2222 * MAINTAINERS (Target Instruction Set Architectures): Update
2223 arm-elf. Can be built with -Werror, has been multiarched.
2224
2225 * value.h (unpack_long): Make buffer parameter constant.
2226 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
2227 * scm-lang.h (scm_parse): Ditto.
2228 * defs.h (extract_typed_address, extract_address): Ditto.
2229 (extract_long_unsigned_integer): Ditto.
2230 * inferior.h (unsigned_pointer_to_address): Ditto.
2231 (signed_pointer_to_address): Ditto.
2232 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
2233 * gdbarch.h, gdbarch.c: Regenerate.
2234 * findvar.c (extract_long_unsigned_integer): Update.
2235 (extract_address): Update.
2236 (extract_typed_address): Update.
2237 (unsigned_pointer_to_address): Update.
2238 * values.c (unpack_long): Update.
2239 (unpack_double): Update.
2240 (unpack_pointer): Update.
2241 (unpack_field_as_long): Update.
2242 * d10v-tdep.c (d10v_pointer_to_address): Update.
2243 * avr-tdep.c (avr_pointer_to_address): Update.
2244 * scm-lang.c (scm_unpack): Update.
2245 * findvar.c (signed_pointer_to_address): Update.
2246
2247 2003-01-06 Michal Ludvig <mludvig@suse.cz>
2248
2249 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
2250 since it is in i386-tdep.c.
2251
2252 2003-01-06 J. Brobecker <brobecker@gnat.com>
2253
2254 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
2255 failure introduced in the previous change.
2256
2257 2003-01-05 Michael Chastain <mec@shout.net>
2258
2259 * README: Remove references to deleted remote-*.c files:
2260 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
2261 remote-nrom.c, remote-os9k.c, remote-udi.c.
2262
2263 2003-01-05 Mark Kettenis <kettenis@gnu.org>
2264
2265 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
2266 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
2267 i386_get_longjmp_target.
2268
2269 2003-01-05 Andrew Cagney <ac131313@redhat.com>
2270
2271 * arm-tdep.c (prologue_cache): Change to a pointer.
2272 (_initialize_arm_tdep): Allocate prologue_cache.
2273 (check_prologue_cache): Update.
2274 (save_prologue_cache): Update.
2275 (arm_gdbarch_init): Update.
2276
2277 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
2278
2279 * stabsread.c (update_method_name_from_physname): Call complaint()
2280 instead of error.
2281
2282 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
2283
2284 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
2285 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
2286 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
2287
2288 * blockframe.c: Include "gdbcmd.h" and "command.h".
2289 (backtrace_below_main): New variable.
2290 (file_frame_chain_valid, func_frame_chain_valid)
2291 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
2292 (generic_func_frame_chain_valid): Remove functions.
2293 (frame_chain_valid, do_flush_frames_sfunc): New functions.
2294 (_initialize_blockframe): New function.
2295 * Makefile.in (blockframe.o): Update dependencies.
2296 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
2297 comment. Call frame_chain_valid ().
2298 * frame.h: Remove old prototypes. Add prototype for
2299 frame_chain_valid and update comments to match.
2300 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
2301 Remove old comment.
2302 * gdbarch.h: Regenerated.
2303 * gdbarch.c: Regenerated.
2304
2305 * alpha-tdep.c (alpha_gdbarch_init): Don't call
2306 set_gdbarch_frame_chain_valid.
2307 * avr-tdep.c (avr_gdbarch_init): Likewise.
2308 * cris-tdep.c (cris_gdbarch_init): Likewise.
2309 * frv-tdep.c (frv_gdbarch_init): Likewise.
2310 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
2311 * i386-tdep.c (i386_svr4_init_abi): Likewise.
2312 (i386_nw_init_abi): Likewise.
2313 (i386_gdbarch_init): Likewise.
2314 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
2315 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
2316 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
2317 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
2318 * mips-tdep.c (mips_gdbarch_init): Likewise.
2319 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
2320 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
2321 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
2322 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
2323 * s390-tdep.c (s390_gdbarch_init): Likewise.
2324 * sh-tdep.c (sh_gdbarch_init): Likewise.
2325 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
2326 * v850-tdep.c (v850_gdbarch_init): Likewise.
2327 * vax-tdep.c (vax_gdbarch_init): Likewise.
2328 * x86-64-tdep.c (x86_64_init_abi): Likewise.
2329
2330 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
2331 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
2332 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
2333 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
2334 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
2335 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
2336 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
2337 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
2338
2339 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
2340
2341 * Makefile.in (acconfig_h): Remove incorrect macro.
2342 (config_h): Define.
2343 (osabi.o): Update dependencies.
2344 * configure.tgt: Set gdb_osabi based on target triplet.
2345 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
2346 * configure: Regenerated.
2347 * config.in: Regenerated.
2348 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
2349 (GDB_OSABI_DEFAULT): Define if not already defined.
2350 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
2351 (set_osabi_string): New variables.
2352 (gdbarch_register_osabi): Add new OS ABI to
2353 gdb_osabi_available_names.
2354 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
2355 (set_osabi, show_osabi): New functions.
2356 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
2357
2358 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
2359
2360 * arch-utils.c (gdbarch_info_init): Set osabi to
2361 GDB_OSABI_UNINITIALIZED.
2362 * gdbarch.sh: Add osabi to struct gdbarch and to struct
2363 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
2364 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
2365 * gdbarch.c: Regenerated.
2366 * gdbarch.h: Regenerated.
2367 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
2368 there's no BFD.
2369 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
2370 * osabi.h (enum gdb_osabi): Move to defs.h.
2371 (gdbarch_init_osabi): Update prototype.
2372 * defs.h (enum gdb_osabi): Moved here.
2373 * Makefile.in: Update dependencies.
2374
2375 * alpha-tdep.h: Don't include "osabi.h".
2376 (struct gdbarch_tdep): Remove osabi member.
2377 * alpha-tdep.c: Include "osabi.h".
2378 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
2379 iterate over arches. Update call to gdbarch_init_osabi.
2380 (alpha_dump_tdep): Don't dump osabi.
2381 * alpha-linux-tdep.c: Include "osabi.h".
2382 * alpha-osf1-tdep.c: Include "osabi.h".
2383 * alphafbsd-tdep.c: Include "osabi.h".
2384 * alphanbsd-tdep.c: Include "osabi.h".
2385
2386 * arm-tdep.h: Don't include "osabi.h".
2387 (struct gdbarch_tdep): Remove osabi member.
2388 * arm-tdep.c: Include "osabi.h".
2389 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
2390 iterate over arches. Update call to gdbarch_init_osabi.
2391 (arm_dump_tdep): Don't dump osabi.
2392 * arm-linux-tdep.c: Include "osabi.h".
2393 * armnbsd-tdep.c: Include "osabi.h".
2394
2395 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
2396 Update call to gdbarch_init_osabi.
2397
2398 * i386-tdep.h: Don't include "osabi.h".
2399 (struct gdbarch_tdep): Remove osabi member.
2400 * i386-tdep.c: Include "osabi.h".
2401 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
2402 iterate over arches. Update call to gdbarch_init_osabi.
2403 (i386_dump_tdep): Don't dump osabi.
2404 * i386-linux-tdep.c: Include "osabi.h".
2405 * i386-sol2-tdep.c: Include "osabi.h".
2406 * i386bsd-tdep.c: Include "osabi.h".
2407 * i386gnu-tdep.c: Include "osabi.h".
2408 * i386ly-tdep.c: Include "osabi.h".
2409 * i386nbsd-tdep.c: Include "osabi.h".
2410 * i386obsd-tdep.c: Include "osabi.h".
2411
2412 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
2413 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
2414 check osabi when iterating over arches. Update call to
2415 gdbarch_init_osabi.
2416 (mips_dump_tdep): Don't dump osabi.
2417
2418 * ns32k-tdep.h: Don't include "osabi.h".
2419 (struct gdbarch_tdep): Remove.
2420 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
2421 gdbarch_lookup_osabi. Don't iterate over arches. Don't
2422 allocate tdep. Update call to gdbarch_init_osabi.
2423 (ns32k_dump_tdep): Remove.
2424 (_initialize_ns32k_tdep): Update call to gdbarch_register.
2425 * ns32knbsd-tdep.c: Include "osabi.h".
2426
2427 * ppc-tdep.h: Don't include "osabi.h".
2428 (struct gdbarch_tdep): Remove osabi member.
2429 * rs6000-tdep.c: Include "osabi.h".
2430 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
2431 osabi when iterating over arches. Update call to
2432 gdbarch_init_osabi.
2433 (rs6000_dump_tdep): Don't dump osabi.
2434 * ppc-linux-tdep.c: Include "osabi.h".
2435 * ppcnbsd-tdep.c: Include "osabi.h".
2436
2437 * sh-tdep.h: Don't include "osabi.h".
2438 (struct gdbarch_tdep): Remove osabi member.
2439 * sh-tdep.c: Include "osabi.h".
2440 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
2441 iterate over arches. Update call to gdbarch_init_osabi.
2442 (sh_dump_tdep): Don't dump osabi.
2443 * shnbsd-tdep.c: Include "osabi.h".
2444
2445 * sparc-tdep.c: Include "osabi.h".
2446 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
2447 iterate over arches. Update call to gdbarch_init_osabi.
2448 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
2449 tdep structure.
2450
2451 * vax-tdep.h: Don't include "osabi.h".
2452 (struct gdbarch_tdep): Remove.
2453 * vax-tdep.c: Include "osabi.h".
2454 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
2455 iterate over arches. Don't allocate tdep. Update call
2456 to gdbarch_init_osabi.
2457 (vax_dump_tdep): Remove.
2458 (_initialize_vax_tdep): Update call to gdbarch_register.
2459
2460 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
2461
2462 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
2463 entirely.
2464 (breakpoint_re_set_one): Don't fetch the value for a disabled
2465 watchpoint.
2466
2467 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
2468
2469 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
2470 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
2471 (COERCE_FLOAT_TO_DOUBLE): Remove.
2472 * gdbarch.c: Regenerate.
2473 * gdbarch.h: Regenerate.
2474 * Makefile.in: Remove value_h from gdbarch_h.
2475 * valops.c (coerce_float_to_double): New variable.
2476 (default_coerce_float_to_double): Remove.
2477 (standard_coerce_float_to_double): Remove.
2478 (value_arg_coerce): Use coerce_float_to_double.
2479 (_initialize_valops): Add "set coerce-float-to-double".
2480 * value.h (default_coerce_float_to_double): Remove prototype.
2481 (standard_coerce_float_to_double): Remove prototype.
2482
2483 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
2484 prototyped.
2485 * mdebugread.c (parse_symbol): Likewise.
2486 * stabsread.c (define_symbol): Mark all functions as prototyped.
2487
2488 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
2489 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
2490 set_gdbarch_coerce_float_to_double.
2491 * arm-tdep.c (arm_gdbarch_init): Likewise.
2492 * frv-tdep.c (frv_gdbarch_init): Likewise.
2493 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
2494 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
2495 * mips-tdep.c (mips_gdbarch_init): Likewise.
2496 (mips_coerce_float_to_double): Remove.
2497 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
2498 (rs6000_coerce_float_to_double): Remove.
2499 * s390-tdep.c (s390_gdbarch_init): Likewise.
2500 * sh-tdep.c (sh_gdbarch_init): Likewise.
2501 (sh_coerce_float_to_double): Remove.
2502 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
2503 (sparc_coerce_float_to_double): Remove.
2504 * v850-tdep.c (v850_gdbarch_init): Likewise.
2505 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
2506 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
2507 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
2508 (hppa_coerce_float_to_double): Remove prototype.
2509 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
2510
2511 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
2512
2513 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
2514
2515 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
2516
2517 Suggested by Stewart Brown <sb24@avaya.com>:
2518 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
2519 in recursive calls. Handle TYPE_CODE_TYPEDEF.
2520 (c_type_print_varspec_suffix): Likewise.
2521
2522 2003-01-04 Mark Kettenis <kettenis@gnu.org>
2523
2524 * configure.in: Don't set and AC_SUBST SUBDIRS.
2525 * configure: Regenerated.
2526
2527 * configure.in: Remove code dealing with shared libraries.
2528 * Makefile.in: Remove HLDFLAGS and HLDENV.
2529 * configure: Regenerated.
2530
2531 2003-01-04 Andrew Cagney <ac131313@redhat.com>
2532
2533 * frame.c (deprecated_frame_xmalloc): New function.
2534 (deprecated_set_frame_saved_regs_hack): New function.
2535 (deprecated_set_frame_extra_info_hack): New function.
2536 * frame.h (deprecated_frame_xmalloc): Declare.
2537 (deprecated_set_frame_saved_regs_hack): Declare.
2538 (deprecated_set_frame_extra_info_hack): Declare.
2539
2540 2003-01-04 Mark Kettenis <kettenis@gnu.org>
2541
2542 * configure.in: Move code that provides the --enable-gdbtk option
2543 right after the code that handles the --enable-tui option, and
2544 polish it somewhat.
2545 * configure: Regenerated.
2546
2547 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
2548 AC_CHECK_FUNCS and remove the old check for pread64.
2549 * acinclude.m4 (AC_GNU_SOURCE): New macro.
2550 * acconfig.h (_GNU_SOURCE): Add.
2551 (HAVE_PREAD64): Remove.
2552 * configure, aclocal.m4, config.in: Regenerated.
2553
2554 2003-01-03 Andrew Cagney <ac131313@redhat.com>
2555
2556 * alpha-tdep.c: Use get_frame_saved_regs.
2557 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
2558 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
2559 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
2560 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
2561 * vax-tdep.c, xstormy16-tdep.c: Ditto.
2562
2563 2003-01-03 Mark Kettenis <kettenis@gnu.org>
2564
2565 * configure.in: Remove all use of the SUBDIRS variable; add
2566 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
2567 code providing the --enable-multi-ice option, and move it right in
2568 front of the code that checks whether gdbserver is supported.
2569 Polish that too.
2570 * configure: Regenerated.
2571 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
2572 @SUBDIRS@.
2573
2574 2003-01-03 Andrew Cagney <cagney@redhat.com>
2575
2576 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
2577 * avr-tdep.c, cris-tdep.c: Ditto.
2578 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
2579 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
2580
2581 2003-01-03 Mark Kettenis <kettenis@gnu.org>
2582
2583 * configure.in: Remove --enable-netrom option.
2584 * configure: Regenerated.
2585
2586 2003-01-03 Mark Kettenis <kettenis@gnu.org>
2587
2588 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
2589 declaration for `struct re_pattern_buffer' instead.
2590 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
2591
2592 2003-01-03 J. Brobecker <brobecker@gnat.com>
2593
2594 * mdebugread.c (parse_symbol): Count until the stEnd matching
2595 the structure name.
2596
2597 2003-01-02 Mark Kettenis <kettenis@gnu.org>
2598
2599 * configure.in: Remove --with-cpu option.
2600 subscripts. Remove evil changequotes here.
2601 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
2602 * config.in, configure: Regenerated.
2603
2604 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
2605 * configure.in: Cleanup section that sources GDB and BFD configure
2606 subscripts. Remove evil changequotes here.
2607 * config.in, configure: Regenerated.
2608
2609 2003-01-02 Andrew Cagney <ac131313@redhat.com>
2610
2611 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
2612 frame accessor methods.
2613 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
2614 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
2615 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
2616 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
2617 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
2618 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
2619 * z8k-tdep.c: Ditto.
2620
2621 2003-01-02 Mark Kettenis <kettenis@gnu.org>
2622
2623 * configure.in: Remove UI_OUT configuration code.
2624 * ada-lang.c: Update assuming UI_OUT is always true.
2625 * Makefile.in (UIOUT_CFLAGS): Remove.
2626 * configure: Regenerated.
2627 * TODO: Remove blurb about elimination of -DUI_OUT.
2628
2629 * configure.in: Move code that provides the --enable-gdbcli,
2630 --enable-gdbmi options right before the code that handles the
2631 --enable-tui option. Polish a bit.
2632 * configure: Regenerated.
2633
2634 * configure.in: Rewrite check for GNU regex and the
2635 --without-included regex option, and move it into the "Checks for
2636 library functions" section. This makes us use the system regex
2637 again by default on systems with version 2 of the GNU C library.
2638 This was apparently broken.
2639 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
2640 * acconfig.h (USE_INCLUDED_REGEX): Remove.
2641 * config.in, configure: Regenerated.
2642
2643 * configure.in: Move code that provides the --enable-tui option
2644 before the "Checks for libraries" section. Polish the code
2645 somewhat and set need_curses to yes if we build the TUI. Rewrite
2646 code that looks for a library providing termcap functionality to
2647 match more closely what's done in the Readline library, and move
2648 it into to the "Checks for libraries" section.
2649 * configure: Regenerated.
2650 * Makefile.in (TERMCAP): Remove variable.
2651 * config/i386/go32.mh (TERMCAP): Remove variable.
2652
2653 2003-01-02 Andrew Cagney <ac131313@redhat.com>
2654
2655 * MAINTAINERS: Mention gdb_mbuild.sh.
2656 * gdb_mbuild.sh: Rewrite.
2657
2658 2003-01-02 Mark Kettenis <kettenis@gnu.org>
2659
2660 * configure.in: Fix typo in last change.
2661 * config.in, configure: Regenerated.
2662
2663 2003-01-02 Andrew Cagney <ac131313@redhat.com>
2664
2665 * valarith.c (value_binop): Delete obsolete code and comments.
2666 * configure.host: Ditto.
2667 * buildsym.h (make_blockvector): Ditto.
2668 * buildsym.c (make_blockvector): Ditto.
2669 * defs.h (enum language): Ditto.
2670 (chill_demangle): Ditto.
2671 * elfread.c (elf_symtab_read): Ditto.
2672 * dwarfread.c (CHILL_PRODUCER): Ditto.
2673 (set_cu_language): Ditto.
2674 (handle_producer): Ditto.
2675 * expprint.c (print_subexp): Ditto.
2676 * gdbtypes.c (chill_varying_type): Ditto.
2677 * gdbtypes.h (builtin_type_chill_bool): Ditto.
2678 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
2679 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
2680 (chill_varying_type): Ditto.
2681 * language.h (_LANG_chill): Ditto.
2682 * language.c (binop_result_type, integral_type): Ditto.
2683 (character_type, string_type, structured_type): Ditto.
2684 (lang_bool_type, binop_type_check): Ditto.
2685 * stabsread.h (os9k_stabs): Ditto.
2686 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
2687 (define_symbol, read_type, read_struct_fields): Ditto.
2688 (read_array_type, read_enum_type, read_huge_number): Ditto.
2689 (read_range_type, start_stabs): Ditto.
2690 * symfile.c (init_filename_language_table): Ditto.
2691 (add_psymbol_with_dem_name_to_list): Ditto.
2692 * symtab.c (symbol_init_language_specific): Ditto.
2693 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
2694 * symtab.h (struct general_symbol_info): Ditto.
2695 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
2696 * typeprint.c (typedef_print): Ditto.
2697 * utils.c (fprintf_symbol_filtered): Ditto.
2698 * valops.c (value_cast, search_struct_field, value_slice): Delete
2699 obsolete code.
2700 (varying_to_slice): Delete function.
2701 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
2702 (varying_to_slice): Delete declaration.
2703 * MAINTAINERS: Update.
2704
2705 2003-01-02 Mark Kettenis <kettenis@gnu.org>
2706
2707 * configure.in: Reorganize "Checks for library functions section"
2708 a bit. Remove check for `btowc' and `isascii' functions.
2709 * configure: Regenerated.
2710
2711 * acconfig.h (_MSE_INT_H): Remove.
2712 * configure.in: Create "Checks for header files" section, and move
2713 appropriate tests there. Don't check for objlist.h, wchar.h,
2714 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
2715 misdetection fix. Also add "Checks for types", "Checks for
2716 compiler characteristics" and "Checks for library functions"
2717 sections.
2718 * config.in, configure: Regenerated.
2719
2720 * configure.in: Create "Checks for programs" section, and move
2721 appropriate tests there.
2722
2723 2003-01-01 Mark Kettenis <kettenis@gnu.org>
2724
2725 * configure.in: Create "Checks for libraries" section, and move
2726 appropriate tests there. Cleanup check for wctype in libw. Use
2727 AC_SEARCH_LIBS to see whether we need libsocket.
2728 * configure: Regenerated.
2729
2730 For older changes see ChangeLog-2002
2731 \f
2732 Local Variables:
2733 mode: change-log
2734 left-margin: 8
2735 fill-column: 74
2736 version-control: never
2737 End:
This page took 0.150972 seconds and 5 git commands to generate.