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