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