2003-02-05 Michael Chastain <mec@shout.net>
[binutils-gdb.git] / gdb / ChangeLog
1 2003-02-05 Michael Chastain <mec@shout.net>
2
3 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
4 2.12.1 and earlier versions.
5
6 2003-02-05 Andrew Cagney <ac131313@redhat.com>
7
8 Remove orphaned hosts, targets and files.
9 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
10 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
11 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
12 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
13 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
14 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
15 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
16 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
17 * config/sparc/tm-sp64sim.h: Delete.
18 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
19 hosts.
20 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
21 mips*-dec-mach3* targets.
22
23 2003-02-04 Michael Chastain <mec@shout.net>
24
25 * NEWS: Fix typo: sepcifying -> specifying.
26
27 2003-02-04 Michael Chastain <mec@shout.net>
28
29 * dwarfread.c: Add documentation on the state of dwarf-1,
30 looking towards obsoletion.
31
32 2003-02-03 Michael Chastain <mec@shout.net>
33
34 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
35 gdb/testsuite/gdb.c++/pr-1023.exp.
36
37 2003-02-04 Andrew Cagney <ac131313@redhat.com>
38
39 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
40 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
41
42 * utils.c (init_page_info): Delete reference to MPW in comments.
43 * main.c (captured_main): Delete #ifdef MPW.
44
45 2003-02-04 Andrew Cagney <ac131313@redhat.com>
46
47 * NEWS: Note that the m32r-*-elf* is obsolete.
48 * monitor.c (monitor_expect): Obsolete reference to m32r.
49 * configure.tgt: Mark m32r-*-elf* as obsolete.
50 * MAINTAINERS: Mark m32k as obsolete.
51 * m32r-rom.c: Obsolete file.
52 * config/m32r/m32r.mt: Obsolete file.
53 * config/m32r/tm-m32r.h: Obsolete file.
54 * m32r-stub.c: Obsolete file.
55 * m32r-tdep.c: Obsolete file.
56
57 2003-02-04 Andrew Cagney <ac131313@redhat.com>
58
59 * NEWS: Mention that the z8k-zilog-none is obsolete.
60 * MAINTAINERS: Mark z8k as obsolete.
61 * configure.tgt: Obsolete the z8k-*-coff* target.
62 * config/z8k/z8k.mt: Obsolete file.
63 * config/z8k/tm-z8k.h: Obsolete file.
64 * z8k-tdep.c: Obsolete file.
65
66 2003-02-04 Andrew Cagney <ac131313@redhat.com>
67
68 * NEWS: Mention that the mn10200-elf is obsolete.
69 * configure.tgt: Obsolete mn10200-*-* target.
70 * breakpoint.c (update_breakpoints_after_exec): Update comment to
71 mention that the mn10200 is obsolete.
72 * breakpoint.h: Ditto.
73 * MAINTAINERS: Mark the mn10200-elf as obsolete.
74 * config/mn10200/mn10200.mt: Obsolete file.
75 * config/mn10200/tm-mn10200.h: Obsolete file.
76 * mn10200-tdep.c: Obsolete file.
77
78 2003-02-04 Andrew Cagney <ac131313@redhat.com>
79
80 * MAINTAINERS: Mark h8500 as obsolete.
81 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
82 * findvar.c (value_from_register): Ditto.
83 * h8500-tdep.c: Mark file as obsolete.
84 * config/h8500/h8500.mt: Ditto.
85 * config/h8500/tm-h8500.h: Ditto.
86 * NEWS: Mention that h8500 is obsolete.
87
88 2003-02-04 David Carlton <carlton@math.stanford.edu>
89
90 * objfiles.c (allocate_objfile): Always set name. Add comment at
91 start of function.
92 * jv-lang.c (get_dynamics_objfile): Add comment.
93
94 2003-02-04 David Carlton <carlton@math.stanford.edu>
95
96 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
97 * printcmd.c (build_address_symbolic): Replace uses of
98 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
99 SYMBOL_NAME, and asm_demangle.
100 Update copyright.
101
102 2003-02-04 David Carlton <carlton@math.stanford.edu>
103
104 * linespec.c (decode_compound): Extract code into
105 lookup_prefix_sym.
106 (lookup_prefix_sym): New function.
107
108 2003-02-04 David Carlton <carlton@math.stanford.edu>
109
110 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
111 FLOAT_COERCION_BADNESS.
112 * gdbtypes.c (rank_one_type): Replace all uses of
113 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
114
115 2003-02-04 Jim Blandy <jimb@redhat.com>
116
117 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
118 section, let dwarf_macinfo_section point to it, not
119 dwarf_loc_section.
120
121 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
122
123 Pointed out by Anton Blanchard <anton@samba.org>.
124 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
125 (ppc_linux_at_sigtramp_return_path): Use it.
126
127 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
128
129 * defs.h (streq): Add prototype.
130 * utils.c (streq): New function.
131
132 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
133 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
134 * mdebugread.c (new_symbol): Likewise.
135 * stabsread.c (define_symbol): Likewise.
136 * coffread.c (process_coff_symbol): Likewise.
137 * dwarfread.c (new_symbol): Likewise.
138
139 * minsyms.c (prim_record_minimal_symbol_and_info): Use
140 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
141 here.
142 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
143 SYMBOL_INIT_DEMANGLED_NAME.
144 * objfiles.c: Include "hashtab.h".
145 (allocate_objfile): Call htab_set_functions_ex for the
146 demangled_names_hash.
147 (free_objfile): Call htab_delete for the demangled_names_hash.
148 * objfiles.h (struct htab): Add declaration.
149 (struct objfile): Add demangled_names_hash.
150 * symfile.c: Include "hashtab.h".
151 (reread_symbols): Call htab_delete for the demangled_names_hash.
152 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
153 SYMBOL_NAME in the bcache.
154 * symtab.c: Include "hashtab.h". Update comments.
155 (create_demangled_names_hash, symbol_set_names): New functions.
156 (symbol_find_demangled_name): New function, broken out from
157 symbol_init_demangled_names.
158 (symbol_init_demangled_names): Use it.
159 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
160 (SYMBOL_SET_NAMES): New macro.
161 (symbol_set_names): Add prototype.
162
163 2003-02-03 Jim Blandy <jimb@redhat.com>
164
165 Use a single, consistent representation for an empty minimal
166 symbol table in an objfile.
167 * objfiles.c (terminate_minimal_symbol_table): New function.
168 (allocate_objfile): Call it.
169 * objfiles.h (terminate_minimal_symbol_table): New declaration.
170 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
171 non-NULL.
172 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
173 objfile has minimal symbols, compare minimal_symbol_count to zero,
174 instead of comparing msymbols with NULL.
175 * objfiles.c (have_minimal_symbols): Same.
176 * solib-sunos.c (solib_add_common_symbols): Call
177 terminate_minimal_symbol_table.
178 * symfile.c (reread_symbols): Same.
179
180 2003-02-03 Kevin Buettner <kevinb@redhat.com>
181
182 * s390-tdep.c (s390_address_class_type_flags)
183 (s390_address_class_type_flags_to_name)
184 (s390_address_class_name_to_type_flags): New functions.
185 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
186 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
187
188 2003-02-03 Michael Snyder <msnyder@redhat.com>
189
190 * arm-tdep.c: Fix spell-o in comment.
191
192 2003-02-03 Michal Ludvig <mludvig@suse.cz>
193
194 * dwarf2cfi.c (pointer_encoding): Added new parameter.
195 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
196 error messages to contain BFD filename.
197
198 2003-02-02 Elena Zannoni <ezannoni@redhat.com>
199
200 Fix PR gdb/742 gdb/743 gdb/877
201 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
202 (do_mixed_source_and_assembly): Use
203 make_cleanup_ui_out_tuple_begin_end and
204 make_cleanup_ui_out_tuple_begin_end.
205 (do_mixed_source_and_assembly): Ditto.
206 * thread.c (do_captured_list_thread_ids): Ditto.
207 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
208 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
209 ui_out_tuple_end): Delete prototypes.
210 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
211 ui_out_list_end, ui_out_tuple_end): Delete.
212
213 From Kevin Buettner <kevinb@redhat.com>:
214 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
215 * ui-out.c (make_cleanup_ui_out_table_begin_end)
216 (do_cleanup_table_end): New functions.
217 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
218 Use cleanups to invoke_ui_out_tuple_end().
219 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
220 * cli/cli-setshow.c (cmd_show_list): Use
221 make_cleanup_ui_out_tuple_begin_end.
222
223 2003-02-02 Andrew Cagney <ac131313@redhat.com>
224
225 * frame.c (frame_unwind_register): New function.
226 (frame_unwind_unsigned_register): Use.
227 (frame_unwind_signed_register): Use.
228 (frame_read_register): New function.
229 * frame.h (frame_unwind_register): Declare.
230 (frame_read_register): Declare.
231
232 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
233 and frame_unwind_register instead of read_memory, write_register
234 and deprecated_write_register_bytes.
235
236 2003-02-02 Andrew Cagney <ac131313@redhat.com>
237
238 * frame.h: Note that namelen can be negative.
239 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
240 NAME's length.
241
242 * NEWS: Mention that the d10v's `regs' command is deprecated.
243 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
244 (d10v_print_registers_info): New function.
245 (show_regs): Call d10v_print_registers_info.
246 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
247
248 2003-02-02 Mark Kettenis <kettenis@gnu.org>
249
250 * stack.c (print_frame_info): Restore call to annotate_frame_begin
251 lost in the previous patch.
252
253 2003-02-01 Andrew Cagney <ac131313@redhat.com>
254
255 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
256 * stack.c (print_frame_info_base): Output complete FRAME tuple
257 for synthesized frames.
258
259 2003-02-02 Andrew Cagney <ac131313@redhat.com>
260
261 * mips-nat.c (zerobuf): Delete.
262 (fetch_inferior_registers): Alloc local zerobuf.
263 (fetch_core_registers): Alloc local zerobuf.
264 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
265 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
266 * thread-db.c (thread_db_store_registers): Ditto.
267 * sh-tdep.c (sh_do_register): Ditto.
268 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
269 * remote-sim.c (gdbsim_store_register): Ditto.
270 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
271 * remote-e7000.c (fetch_regs_from_dump): Ditto.
272 * monitor.c (monitor_supply_register): Ditto.
273 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
274 * mips-nat.c (fetch_inferior_registers): Ditto.
275 * m68klinux-nat.c (fetch_register): Ditto.
276 * lynx-nat.c (fetch_inferior_registers): Ditto.
277 (fetch_inferior_registers): Ditto.
278 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
279 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
280 (hpux_thread_store_registers): Ditto.
281 * hppah-nat.c (fetch_register): Ditto.
282 * hppab-nat.c (fetch_register): Ditto.
283 * hppa-tdep.c (pa_register_look_aside): Ditto.
284 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
285 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
286
287 2003-02-01 Andrew Cagney <ac131313@redhat.com>
288
289 * gdbarch.sh: Explictly specify all method levels. When a
290 variable with an empty level, provide a non-multi-arch default.
291 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
292 * gdbarch.h: Re-generate.
293 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
294 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
295
296 2003-02-01 Andrew Cagney <ac131313@redhat.com>
297
298 * defs.h (host_pointer_to_address): Delete declaration.
299 (address_to_host_pointer): Delete declaration.
300 * utils.c (host_pointer_to_address): Delete function.
301 (address_to_host_pointer): Delete function.
302 * procfs.c (procfs_address_to_host_pointer): New function.
303 * procfs.c (proc_set_watchpoint): Use.
304 (procfs_can_use_hw_breakpoint): Update comments.
305 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
306 (som_solib_add): Use.
307 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
308 * hppa-tdep.c (unwind_command): Use.
309
310 2003-02-01 Andrew Cagney <ac131313@redhat.com>
311
312 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
313 strlen d_name.
314
315 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
316 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
317 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
318 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
319 (define_symbol): Update.
320 * symfile.c (generic_load): Remove references to nindy.
321 * symtab.c: Remove references to nindy.
322
323 2003-02-01 Andrew Cagney <ac131313@redhat.com>
324
325 * infcmd.c (print_float_info): Delete code conditional on
326 FLOAT_INFO.
327 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
328 * config/m68k/nm-apollo68b.h: Ditto.
329 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
330 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
331 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
332
333 2003-02-01 Mark Kettenis <kettenis@gnu.org>
334
335 * config/i386/tm-i386os9k.h: Removed.
336
337 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
338 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
339 they're identical to i[3456]86-*-sysv* now.
340 * config/i386/i386v32.mh: Removed.
341 * config/i386/xm-i386v32.h: Removed.
342 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
343
344 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
345
346 * config/i386/i386dgux.mh: Removed.
347 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
348
349 * configure.in: Fix typo.
350 * configure: Regenerated.
351
352 2003-01-31 David Carlton <carlton@math.stanford.edu>
353
354 * dwarf2read.c (dwarf2_locate_sections): Set
355 dwarf_ranges_section.
356
357 2003-01-31 Andrew Cagney <ac131313@redhat.com>
358
359 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
360 * utils.c: Update comments documenting legitimate uses of PTR.
361
362 * utils.c: Re-indent.
363
364 * config/djgpp/fnchange.lst: Delete nindy files.
365 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
366 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
367 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
368 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
369 * nindy-share/README, nindy-share/Onindy.c: Delete files.
370 * nindy-tdep.c, nindy-share/Makefile: Delete files.
371 * Makefile.in (init.c): Remove nindy references.
372 (saber_gdb): Delete rule.
373 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
374 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
375 and a68v-nat.c.
376 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
377 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
378 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
379 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
380 nindy-share/stop.h.
381 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
382 * saber.suppress: Delete file.
383
384 2003-01-31 Daniel Jacobowitz <drow@mvista.com>
385
386 * dbxread.c (stabs_data): New static variable.
387 (fill_symbuf): Support an in-memory buffer for stabs data.
388 (stabs_seek): New function.
389 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
390 (read_ofile_symtab): Use stabs_seek.
391 (elfstab_build_psymtabs): Take an asection* instead of
392 an offset and size. Relocate the stabs data if necessary.
393 Save the section* for dbx_psymtab_to_symtab.
394 * dwarf2read.c: Add section variables for each debug section.
395 (dwarf2_locate_sections): Fill them in.
396 (dwarf2_read_section): Take an asection* argument.
397 Relocate the section contents if necessary.
398 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
399 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
400 it to dwarf2_read_section.
401 (dwarf2_build_frame_info): Update callers.
402 * elfread.c (elf_symfile_read): Update call to
403 elfstab_build_psymtabs.
404 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
405 (DBX_STAB_SECTION): New macro.
406 * stabsread.h (elfstab_build_psymtabs): Update prototype.
407 * symfile.c (symfile_dummy_outputs): New function.
408 (symfile_relocate_debug_section): New function.
409 * symfile.h (symfile_relocate_debug_section): Add prototype.
410
411 2003-01-31 Richard Henderson <rth@redhat.com>
412
413 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
414 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
415 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
416 * alpha-tdep.c (alpha_register_name): Add "unique".
417 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
418 (ALPHA_UNIQUE_REGNUM): New.
419 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
420
421 2003-01-31 Andrew Cagney <ac131313@redhat.com>
422
423 * README: Remove reference to Ericsson 1800 monitor.
424 * Makefile.in (remote-es.o): Delete rule.
425 (ALLDEPFILES): Delete remote-es.c.
426 * remote-es.c: Delete file.
427 * config/m68k/es1800.mt: Delete file.
428 * config/djgpp/fnchange.lst: Update.
429 * configure.tgt: Delete m68*-ericsson-* target.
430
431 2003-01-31 Adam Fedor <fedor@gnu.org>
432
433 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
434 Remove duplicate/shadowing variable of same name.
435
436 2003-01-30 Jim Blandy <jimb@redhat.com>
437
438 * symfile.c (find_separate_debug_file): Assert that the objfile's
439 directory name we compute ends with a slash, and then assume that
440 that's so everywhere we use it.
441
442 2003-01-30 Daniel Jacobowitz <drow@mvista.com>
443
444 * valops.c (value_assign): Flush frame cache after stores to memory
445 also.
446
447 2003-01-30 Andrew Cagney <ac131313@redhat.com>
448
449 * Makefile.in (mon960-rom.o): Delete rule.
450 * mon960-rom.c: Delete file.
451
452 2003-01-30 Andrew Cagney <ac131313@redhat.com>
453
454 * d10v-tdep.c: Include "frame-unwind.h".
455 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
456 list.
457 (next_addr, uses_frame): Delete.
458 (struct d10v_unwind_cache): Define.
459 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
460 Use info instead of next_addr and uses_frame globals.
461 (d10v_frame_init_saved_regs): Delete function.
462 (d10v_init_extra_frame_info): Delete function.
463 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
464 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
465 init_frame_pc or frame_saved_pc.
466 (d10v_pop_frame): Delete function.
467 (do_d10v_pop_frame): Delete function.
468 (d10v_frame_chain): Delete function.
469 (d10v_frame_chain_valid): Delete function.
470 (d10v_frame_pc_unwind): New function.
471 (d10v_frame_id_unwind): New function.
472 (saved_regs_unwinder): New function.
473 (d10v_frame_register_unwind): New function.
474 (d10v_frame_pop): New function.
475 (d10v_frame_unwind): New variable.
476 (d10v_frame_p): New function.
477 (d10v_frame_saved_pc): Delete function.
478 * Makefile.in (d10v-tdep.o): Update dependencies.
479
480 2003-01-30 J. Brobecker <brobecker@gnat.com>
481
482 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
483 causing some regressions due to a change in the default value
484 for this macro.
485
486 2003-01-29 Richard Henderson <rth@redhat.com>
487 Elena Zannoni <ezannoni@redhat.com>
488 Daniel Jacobowitz <drow@mvista.com>
489
490 Fix PR gdb/961.
491 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
492 variables.
493 (RANGES_SECTION): New.
494 (dwarf_ranges_buffer): New variable.
495 (struct comp_unit_head): Add member "die".
496 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
497 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
498 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
499 (dwarf2_locate_sections): Likewise.
500 (dwarf2_build_psymtabs): Read .debug_ranges.
501 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
502 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
503 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
504 Look for DW_AT_ranges and return the bounding box.
505
506 2003-01-29 Brian Ford <ford@vss.fsi.com>
507
508 * win32-nat.c (cygwin_pid): Removed as unused.
509 (child_attach): Try fall back to Cygwin pid.
510
511 2003-01-29 Jim Blandy <jimb@redhat.com>
512
513 * objfiles.h (struct objfile): Doc fix.
514
515 2003-01-29 Andrew Cagney <ac131313@redhat.com>
516
517 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
518 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
519 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
520 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
521 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
522 (FRAME_SAVED_PC): Change to a function with predicate.
523 * gdbarch.h, gdbarch.c: Re-generate.
524
525 2003-01-28 Andrew Cagney <ac131313@redhat.com>
526
527 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
528
529 * complaints.c (complain): Delete function.
530 * complaints.h (struct deprecated_complaint): Delete definition.
531 (complain): Delete declaration.
532
533 2003-01-28 Kevin Buettner <kevinb@redhat.com>
534
535 * mips-tdep.c (mips_init_extra_frame_info): Return early for
536 dummy frames.
537
538 2003-01-27 Andrew Cagney <ac131313@redhat.com>
539
540 * sentinel-frame.h, sentinel-frame.c: New files.
541 * Makefile.in (frame.o): Update dependencies.
542 (SFILES): Add sentinel-frame.c.
543 (sentinel_frame_h): Define.
544 (COMMON_OBS): Add sentinel-frame.o.
545 (sentinel-frame.o): Specify dependencies.
546 * frame.c: Include "sentinel-frame.h".
547 (frame_register_unwind): Rewrite assuming that there is always a a
548 ->next frame.
549 (frame_register, generic_unwind_get_saved_register): Ditto.
550 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
551 (create_sentinel_frame, unwind_to_current_frame): New functions.
552 (get_current_frame): Rewrite using create_sentinel_frame and
553 unwind_to_current_frame. When possible, always create a frame.
554 (create_new_frame): Set next to the sentinel frame.
555 (get_next_frame): Rewrite. Don't go below the level 0 frame.
556 (deprecated_update_frame_pc_hack): Update the next frame's PC and
557 ID cache when necessary.
558 (frame_saved_regs_id_unwind): Use frame_relative_level.
559 (deprecated_generic_get_saved_register): Use frame_relative_level,
560 get_frame_saved_regs, get_frame_pc, get_frame_base and
561 get_next_frame.
562 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
563 frame_register.
564
565 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
566
567 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
568
569 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
570
571 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
572 (maintenance_set_profile_cmd): Use error () instead of warning ().
573
574 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
575
576 * configure.in: Check that -pg works if using --enable-profiling.
577 Check for monstartup and _mcleanup regardless of --enable-profiling.
578 * maint.c: Check for monstartup and _mcleanup before using them.
579 * config.in: Regenerated.
580 * configure: Regenerated.
581
582 2003-01-24 Nick Clifton <nickc@redhat.com>
583
584 * Add sh2e support:
585
586 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
587
588 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
589 (sh2e_show_regs): New.
590 (sh_gdbarch_init): Handle bfd_mach_sh2e.
591 * config/sh/tm-sh.h: Added sh2e to comments.
592
593 2003-01-23 Jim Blandy <jimb@redhat.com>
594
595 * symfile.c (syms_from_objfile): Don't print the "(no debugging
596 symbols found)" message here; we haven't checked for a separate
597 debug info file yet, so we don't know yet.
598 (symbol_file_add_with_addrs_or_offsets): Print it here, after
599 we've looked everywhere. Also, there's no need to print a special
600 message when we're loading the separate debug info file: the one
601 symbol_file_add prints is fine.
602
603 2003-01-23 Alexander Larsson <alexl@redhat.com>
604 Jim Blandy <jimb@redhat.com>
605
606 Add support for executables whose debug info has been separated
607 out into a separate file, leaving only a link behind.
608 * objfiles.h (struct objfile): New fields: separate_debug_objfile
609 and separate_debug_objfile_backlink.
610 (put_objfile_before): New declaration.
611 * symfile.c: #include "filenames.h".
612 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
613 debug info in a separate file, read that, too. Save the addrs
614 argument, so we can use it again to read the separated debug info;
615 syms_from_objfile modifies the table we pass it.
616 (reread_symbols): After re-reading an objfile, call
617 reread_separate_symbols to refresh its separate debug info
618 objfile, if it has one.
619 (reread_separate_symbols, find_separate_debug_file,
620 get_debug_link_info, separate_debug_file_exists): New functions.
621 (debug_file_directory): New global var.
622 (_initialize_symfile): Initialize debug_file_directory, and
623 provide the new `set debug-file-directory' command to let the user
624 change it.
625 * objfiles.c (free_objfile): If this objfile has its debug info in
626 a separate objfile, free that one too. If this is itself a
627 separate debug info objfile, clear our parent's backlink.
628 (put_objfile_before): New function.
629 * utils.c (gnu_debuglink_crc32): New function.
630 * defs.h (gnu_debuglink_crc32): New declaration.
631 * Makefile.in (symfile.o): Note dependency on "filenames.h".
632 * configure.in: Handle --with-separate-debug-dir config option.
633 * acinclude.m4 (AC_DEFINE_DIR): New macro.
634 * acconfig.h (DEBUGDIR): New macro.
635 * configure, aclocal.m4, config.in: Regenerated.
636
637 2003-01-22 Jim Blandy <jimb@redhat.com>
638
639 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
640 like the old symbol_file_add, but taking new arguments: you can
641 now pass in either a `struct section_addr_info' list to say where
642 each section is loaded, or a `struct section_offsets' table. Pass
643 these new arguments through to syms_from_objfile as appropriate.
644 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
645 with the appropriate quiescent values for the new arguments.
646
647 * symfile.c: #include "gdb_assert.h".
648 (syms_from_objfile): Add the ability to pass in a section offset
649 table directly, as an alternative to the section_addr_info table.
650 Document arguments better.
651 (symbol_file_add): Pass extra arguments to syms_from_objfile.
652 * symfile.h (syms_from_objfile): Update declaration.
653 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
654 syms_from_objfile.
655 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
656
657 2003-01-22 Daniel Jacobowitz <drow@mvista.com>
658
659 Original patch by Tom Tromey <tromey@cygnus.com> and
660 Jason Molenda <jmolenda@apple.com>.
661 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
662 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
663 * NEWS: Mention profiling.
664 * configure.in (--enable-gdbtk): Fix typo.
665 (--enable-profiling): New. Set PROFILE_CFLAGS.
666 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
667 Fill in function.
668 (profiling_state): New variable.
669 (mcleanup_wrapper): New function.
670 (_initialize_maint): Remove NOTYET, fix call to
671 add_setshow_boolean_cmd for "maint set profile".
672 * configure: Regenerated.
673
674 2003-01-21 Martin M. Hunt <hunt@redhat.com>
675
676 * Makefile.in (install-gdbtk): Install PNG images too.
677
678 2003-01-21 Andrew Cagney <ac131313@redhat.com>
679
680 * exec.c (text_start): Delete global variable.
681 (exec_file_attach): Make text_start local to the function.
682 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
683 * valops.c (hand_function_call): Delete code that handles
684 BEFORE_TEXT_END and AFTER_TEXT_END.
685 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
686 of CALL_DUMMY_LOCATION.
687 * gdbarch.c: Regenerate.
688 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
689 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
690 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
691 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
692 (text_end): Delete extern declaration.
693
694 2003-01-21 Andrew Cagney <ac131313@redhat.com>
695
696 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
697 * blockframe.c (backtrace_below_main): Move to "frame.c".
698 (frame_chain_valid): Delete check for backtrace_below_main.
699 (_initialize_blockframe): Delete initialization, move ``set
700 backtrace-below-main'' command to "frame.c".
701 (do_flush_frames_sfunc): Delete function.
702 * frame.c: Include "command.h" and "gdbcmd.h".
703 (frame_type_from_pc): New function.
704 (create_new_frame): Use frame_type_from_pc.
705 (legacy_get_prev_frame): New function.
706 (get_prev_frame): Rewrite. When an old style frame, call
707 legacy_get_prev_frame. Otherwize, unwind the PC first.
708 (_initialize_frame): Add ``set backtrace-below-main'' command.
709 * Makefile.in (frame.o): Update dependencies.
710
711 2003-01-19 Andrew Cagney <ac131313@redhat.com>
712
713 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
714 DEPRECATED_REGISTERS_INFO.
715
716 2003-01-19 Andrew Cagney <ac131313@redhat.com>
717
718 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
719 Maintainers'. Update `Various Maintainers'.
720
721 2003-01-19 Andrew Cagney <ac131313@redhat.com>
722
723 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
724 * gdbarch.sh (POP_FRAME): Change to function with predicate.
725 Suppress actual parameters when `-'.
726 * gdbarch.h, gdbarch.c: Regenerate.
727
728 2003-01-19 Andrew Cagney <ac131313@redhat.com>
729
730 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
731 code handling dummy frames.
732
733 2003-01-19 Andrew Cagney <ac131313@redhat.com>
734
735 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
736 (struct frame_unwind): Add field pop.
737 * frame.h (frame_pop): Declare.
738 * frame.c (frame_saved_regs_pop): New function.
739 (trad_frame_unwinder): Add frame_saved_regs_pop.
740 (frame_pop): New function.
741 * dummy-frame.c (dummy_frame_pop): New function.
742 (discard_innermost_dummy): New function.
743 (generic_pop_dummy_frame): Use discard_innermost_dummy.
744 (dummy_frame_unwind): Add dummy_frame_pop.
745 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
746 * valops.c (hand_function_call): Ditto.
747 * stack.c (return_command): Ditto.
748
749 2003-01-18 Andrew Cagney <ac131313@redhat.com>
750
751 * cris-tdep.c: Fix function declaration indentation.
752 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
753 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
754 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
755 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
756 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
757 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
758
759 2003-01-18 Michael Chastain <mec@shout.net>
760
761 * README (Unpacking and Installation -- quick overview):
762 Warn against ".../gdb-5.3/gdb/configure".
763
764 2003-01-18 Andrew Cagney <ac131313@redhat.com>
765
766 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
767 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
768 (struct frame_unwind): Declare opaque.
769 (dummy_frame_p): Declare function.
770 * dummy-frame.c (dummy_frame_id_unwind): Make static.
771 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
772 * dummy-frame.c: Include "frame-unwind.h".
773 (dummy_frame_p): New function.
774 (dummy_frame_unwind): New variable.
775 * frame.c: Include "frame-unwind.h".
776 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
777 to use the new unwind field.
778 (set_unwind_by_pc): Delete function.
779 (create_new_frame, get_prev_frame): Set unwind field using
780 frame_unwind_find_by_pc.
781 (trad_frame_unwind, trad_frame_unwinder): New variables.
782 * frame.h (trad_frame_unwind): Declare variable.
783 (frame_id_unwind_ftype): Delete declaration.
784 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
785 (struct frame_unwind): Declare opaque.
786 (struct frame_info): Replace the fields id_unwind, pc_unwind and
787 register_unwind with a single unwind pointer.
788 * frame-unwind.h, frame-unwind.c: New files.
789 * Makefile.in (SFILES): Add frame-unwind.c.
790 (frame_unwind_h): Define.
791 (COMMON_OBS): Add frame-unwind.o.
792 (frame-unwind.o): Specify dependencies.
793 (frame.o, dummy-frame.o): Update dependencies.
794
795 2003-01-18 Andrew Cagney <ac131313@redhat.com>
796
797 * ada-valprint.c: Eliminate PTR.
798 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
799 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
800 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
801 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
802 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
803 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
804 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
805
806 2003-01-17 Andrew Cagney <ac131313@redhat.com>
807
808 * main.c (captured_main): Don't use PTR.
809 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
810 * gdbtypes.c (lookup_primitive_typename): Ditto.
811 (lookup_struct_elt_type): Ditto.
812 * f-valprint.c (info_common_command): Ditto.
813 (list_all_visible_commons): Ditto.
814 * jv-typeprint.c (java_type_print_base): Ditto.
815
816 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
817 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
818 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
819 i386-interix-nat.c and i386-interix-tdep.c. Rename
820 m68klinux-nat.c and m68klinux-tdep.c. Rename
821 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
822 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
823 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
824 * main.c (captured_main): Use xfree, not free.
825
826 2003-01-16 Andrew Cagney <ac131313@redhat.com>
827
828 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
829 ID back using a parameter.
830 * frame.c (frame_id_unwind): Update call.
831 (frame_saved_regs_id_unwind): Update.
832 * dummy-frame.c (dummy_frame_id_unwind): Update function.
833 * dummy-frame.h (struct frame_id): Add opaque declaration.
834 (dummy_frame_id_unwind): Update declaration.
835
836 2003-01-15 Andrew Cagney <ac131313@redhat.com>
837
838 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
839
840 2003-01-15 Stephen P. Smith <ischis2@cox.net>
841
842 * MAINTAINERS (Stephen P. Smith): Updated email address.
843
844 2003-01-14 Elena Zannoni <ezannoni@redhat.com>
845
846 Fix PR gdb/898
847 * breakpoint.c (until_break_command): Add new argument. Use it to
848 decide whether to stop only at the current frame or not.
849 * breakpoint.h (until_break_command): Update prototype.
850 * infcmd.c (until_command): Add new argument to until_break_command
851 call.
852 (advance_command): New function.
853 (_initialize_infcmd): Update help string for 'until' command.
854 Add new 'advance' command.
855
856 2003-01-14 David Carlton <carlton@math.stanford.edu>
857
858 * linespec.c (decode_line_1): Normalize comments.
859 (set_flags): Ditto.
860 (locate_first_half): Ditto.
861 (decode_compound): Ditto.
862 (symtab_from_filename): Ditto.
863 (decode_all_digits): Ditto.
864 (decode_dollar): Ditto.
865 (find_methods): Ditto.
866 (find_toplevel_char): Ditto.
867
868 2003-01-13 Andrew Cagney <ac131313@redhat.com>
869
870 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
871 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
872 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
873 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
874 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
875 * language.c, language.h, m32r-tdep.c: Update copyright.
876 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
877 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
878 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
879 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
880 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
881 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
882
883 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
884
885 * stabsread.h (process_later, resolve_cfront_continuation):
886 Obsolete.
887 Update copyright years.
888 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
889 Update copyright year.
890 * dbxread.c(struct cont_elem): Obsolete.
891 (process_later, process_now): Obsolete functions.
892 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
893 Update copyright year.
894 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
895 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
896 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
897 (parse_partial_symbols): Obsolete cfront support.
898 * stabsread.c
899 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
900 macros.
901 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
902 read_cfront_baseclasses, read_cfront_member_functions,
903 resolve_cfront_continuation,read_cfront_static_fields,
904 copy_cfront_struct_fields): Obsolete functions.
905 (define_symbol, read_one_struct_field): Obsolete cfront support.
906 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
907 Update Copyright year.
908
909 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
910
911 * stack.c (print_frame_info, print_stack_frame_base_stub,
912 print_stack_frame_base, show_and_print_stack_frame_stub,
913 show_and_print_stack_frame, print_only_stack_frame_stub,
914 print_only_stack_frame): Delete functions.
915 (print_stack_frame_stub): Call print_frame_info instead of
916 print_frame_info_base.
917 (print_frame_info_base): Rename to print_frame_info.
918 (backtrace_command_1): Call print_frame_info, instead of
919 print_frame_info_base.
920 (current_frame_command): Call print_stack_frame, instead of
921 print_only_stack_frame.
922 (frame_command): Call print_stack_frame, instead of
923 show_and_print_stack_frame.
924 (up_command): Ditto.
925 (down_command): Ditto.
926 * frame.h (print_only_stack_frame): Delete prototype.
927 * infrun.c (normal_stop): Call print_stack_frame, instead of
928 show_and_print_stack_frame.
929 * thread.c (info_threads_command): Call print_stack_frame, instead
930 of print_only_stack_frame.
931
932 2003-01-13 Andrew Cagney <ac131313@redhat.com>
933
934 * README (Graphical interface to GDB): Update URL. Point at
935 gdb/links/.
936
937 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
938 version match.
939
940 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
941
942 * symtab.c (find_pc_sect_line): Don't consider end-of-function
943 lines.
944
945 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
946
947 * thread-db.c (attach_thread): Prototype.
948 (struct private_thread_info): Remove lwpid. Add thread handle (th),
949 thread information (ti), and valid flags (th_valid, ti_valid).
950 (attach_thread): Move target_pid_to_str call to after the thread
951 is added to GDB's list. Initialize the cache.
952 (thread_get_info_callback, thread_db_map_id2thr)
953 (thread_db_get_info): New functions.
954 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
955 (thread_db_store_registers, thread_db_thread_alive)
956 (thread_db_get_thread_local_address): Use them.
957 (thread_db_pid_to_str): Likewise. Return "Missing" instead
958 of calling error() for threads in unknown state.
959
960 (clear_lwpid_callback): New function.
961 (thread_db_resume): Use it to clear the cache.
962
963 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
964
965 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
966 (resume_callback): Remove dead code.
967
968 2003-01-13 Andrew Cagney <ac131313@redhat.com>
969
970 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
971 predicate.
972 * gdbarch.h, gdbarch.c: Regenerate.
973 * stack.c (frame_info): Only initialize the saved registers when
974 FRAME_INIT_SAVED_REGS_P.
975 * frame.c (frame_saved_regs_register_unwind): Assert
976 FRAME_INIT_SAVED_REGS_P.
977 (deprecated_generic_get_saved_register): Ditto.
978
979 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
980
981 * source.c (openp): Squelch warning about "filename".
982
983 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
984
985 * source.c (openp): If the file does not exist don't necessarily
986 search the path.
987
988 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
989
990 Fix PR gdb/872.
991 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
992 (integer_types_same_name_p): New function.
993 (rank_one_type): Use it.
994 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
995
996 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
997
998 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
999 variables.
1000 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
1001 * configure.in: Add --with-sysroot.
1002 * configure: Regenerated.
1003 * main.c (gdb_sysroot): New variable.
1004 (captured_main): Initialize gdb_sysroot.
1005 * defs.h (gdb_sysroot): New extern declaration.
1006 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
1007
1008 2003-01-12 Michael Chastain <mec@shout.net>
1009
1010 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
1011
1012 2003-01-12 Michael Chastain <mec@shout.net>
1013
1014 * top.c (print_gdb_version): Bump copyright year to 2003.
1015
1016 2003-01-12 David Carlton <carlton@bactrian.org>
1017
1018 * linespec.c (symtab_from_filename): Rename variable 's' to
1019 'file_symtab'.
1020
1021 2003-01-12 Andrew Cagney <ac131313@redhat.com>
1022
1023 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
1024 dummy frame.
1025 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
1026
1027 2003-01-12 Andrew Cagney <ac131313@redhat.com>
1028
1029 * d10v-tdep.c: Include "gdb_assert.h".
1030 (d10v_store_return_value): Rewrite to match current interface.
1031 (d10v_extract_struct_value_address): Ditto.
1032 (d10v_extract_return_value): Ditto.
1033 (d10v_gdbarch_init): Set store_restore_value,
1034 extract_struct_value_address and extract_return_value.
1035
1036 2003-01-12 J. Brobecker <brobecker@gnat.com>
1037
1038 * hpread.c (set_namestring): New procedure replacing the
1039 SET_NAMESTRING macro.
1040 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
1041 by calls to set_namestring.
1042
1043 2003-01-11 J. Brobecker <brobecker@gnat.com>
1044
1045 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
1046 a compilation warning.
1047 (hpread_process_one_debug_symbol): Likewise.
1048
1049 2003-01-10 David Carlton <carlton@math.stanford.edu>
1050
1051 * linespec.c (decode_line_1): Rename variable 's' to
1052 'file_symtab'.
1053 (decode_all_digits): Rename argument 's' to 'file_symtab'.
1054 (decode_dollar): Ditto.
1055 (decode_variable): Ditto.
1056 (symbol_found): Ditto.
1057
1058 2003-01-09 Michael Chastain <mec@shout.net>
1059
1060 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
1061
1062 2003-01-07 Corinna Vinschen <vinschen@redhat.com>
1063
1064 * win32-nat.c (set_process_privilege): New function.
1065 (child_attach): Call set_process_privilege() to enable the
1066 SE_DEBUG_NAME user privilege if available in process token.
1067
1068 2003-01-10 J. Brobecker <brobecker@gnat.com>
1069
1070 * hpread.c (hpread_process_one_debug_symbol): Fix a small
1071 compilation error in the previous revision.
1072
1073 2003-01-09 David Carlton <carlton@math.stanford.edu>
1074
1075 * linespec.c: Update copyright.
1076
1077 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
1078
1079 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
1080 than inferior_ptid.
1081 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
1082
1083 2003-01-09 Andrew Cagney <ac131313@redhat.com>
1084
1085 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
1086 Update comments.
1087 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
1088 (frame_saved_regs_zalloc): Update.
1089 (frame_saved_regs_register_unwind): Update.
1090 (create_new_frame): Update.
1091 (get_prev_frame): Update.
1092 (frame_extra_info_zalloc): Update.
1093 (deprecated_get_frame_saved_regs): Update.
1094 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
1095 * cris-tdep.c: Update comment.
1096
1097 * somsolib.h: Fix function indentation.
1098 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
1099 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
1100 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
1101 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
1102 * somsolib.c, inftarg.c: Remove assignment in if conditional.
1103
1104 * infrun.c (follow_fork): Use ISO C definition.
1105 * expprint.c (print_subexp): Use xfree instead of free.
1106 * charset.c: Include "gdb_string.h" instead of <string.h>.
1107 (register_iconv_charsets): Use ISO C definition.
1108 (host_charset, target_charset): Ditto.
1109 * Makefile.in (charset.o): Update dependencies.
1110 (mi-cmd-env.o): Update dependencies.
1111
1112 2003-01-08 Andrew Cagney <cagney@redhat.com>
1113
1114 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
1115 get_frame_base.
1116
1117 2003-01-08 Andrew Cagney <ac131313@redhat.com>
1118
1119 * gdb_mbuild.sh: Add --keep option. When specified, keep the
1120 build directories. Save edited gdb output in Mbuild.log. If a
1121 build fails, remove any final GDB executable.
1122
1123 2003-01-08 Andrew Cagney <ac131313@redhat.com>
1124
1125 * gdb_mbuild.sh: Edit the output of `maint print architecture'
1126 replacing hex constants with function names and stripping leading
1127 file name directory prefixes.
1128
1129 2003-01-08 Andrew Cagney <cagney@redhat.com>
1130
1131 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
1132 get_frame_base.
1133
1134 2003-01-08 David Carlton <carlton@math.stanford.edu>
1135
1136 * linespec.c (decode_line_1): Move code into decode_variable.
1137 (decode_variable): New function.
1138
1139 2003-01-08 Andrew Cagney <ac131313@redhat.com>
1140
1141 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
1142
1143 2003-01-08 Andrew Cagney <cagney@redhat.com>
1144
1145 * cris-tdep.c (cris_frame_init_saved_regs): Use
1146 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
1147 saved_regs buffer.
1148 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
1149 (sh64_nofp_frame_init_saved_regs): Ditto.
1150 (sh_fp_frame_init_saved_regs): Ditto.
1151 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
1152 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
1153 * mcore-tdep.c (analyze_dummy_frame): Ditto.
1154 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
1155
1156 2003-01-08 Daniel Jacobowitz <drow@mvista.com>
1157
1158 * minsyms.c (lookup_minimal_symbol): Update comment.
1159 (lookup_minimal_symbol_text): Update comment. Use the hash table.
1160 (lookup_minimal_symbol_solib_trampoline): Likewise.
1161
1162 2003-01-08 Andrew Cagney <cagney@redhat.com>
1163
1164 * d10v-tdep.c (d10v_init_extra_frame_info): Use
1165 frame_relative_level.
1166
1167 * alpha-tdep.c: Use get_frame_extra_info.
1168 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
1169 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
1170 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
1171 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
1172
1173 * alpha-tdep.c: Use get_next_frame.
1174 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
1175 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
1176 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
1177 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
1178 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
1179 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
1180 * xstormy16-tdep.c: Ditto.
1181
1182 2003-01-07 Andrew Cagney <cagney@redhat.com>
1183
1184 * alpha-tdep.c: Use get_frame_base.
1185 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
1186 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
1187 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
1188 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
1189 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
1190 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
1191 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
1192 * config/sparc/tm-sparc.h: Ditto.
1193
1194 2003-01-07 Andrew Cagney <cagney@redhat.com>
1195
1196 * frame.c (deprecated_get_frame_context): New function.
1197 (deprecated_set_frame_context): New function.
1198 * frame.h (deprecated_get_frame_context): Declare.
1199 (deprecated_set_frame_context): Declare.
1200 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
1201 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
1202
1203 2003-01-07 Andrew Cagney <cagney@redhat.com>
1204
1205 * frame.c (deprecated_set_frame_next_hack): New function.
1206 (deprecated_set_frame_prev_hack): New function.
1207 * frame.h (deprecated_set_frame_next_hack): Declare.
1208 (deprecated_set_frame_prev_hack): Declare.
1209 * mcore-tdep.c (analyze_dummy_frame): Use
1210 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
1211 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
1212
1213 2003-01-07 David Carlton <carlton@math.stanford.edu>
1214
1215 * linespec.c (decode_line_1): Move code into decode_dollar.
1216 (decode_dollar): New function.
1217
1218 2003-01-07 Andrew Cagney <cagney@redhat.com>
1219
1220 * arm-tdep.c (arm_init_extra_frame_info): Use
1221 deprecated_update_frame_base_hack.
1222 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
1223 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
1224 (fix_frame_pointer): Ditto.
1225 (mn10300_analyze_prologue): Ditto.
1226
1227 2003-01-07 Andrew Cagney <cagney@redhat.com>
1228
1229 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
1230 extra_info using frame_extra_info_zalloc.
1231 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
1232 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
1233 (sh64_init_extra_frame_info): Ditto.
1234 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
1235 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
1236 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
1237 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
1238 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
1239 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
1240 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
1241 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
1242 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
1243 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
1244 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
1245 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
1246
1247 * mn10300-tdep.c (analyze_dummy_frame): Use
1248 deprecated_set_frame_extra_info_hack.
1249 * mcore-tdep.c (analyze_dummy_frame): Ditto.
1250
1251 2003-01-07 J. Brobecker <brobecker@gnat.com>
1252
1253 * mdebugread.c (parse_symbol): Skip stProc entries which storage
1254 class is not scText. These do not define "real" procedures.
1255 (parse_partial_symbols): Likewise.
1256
1257 2003-01-06 Michael Snyder <msnyder@redhat.com>
1258
1259 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
1260
1261 2003-01-06 Andrew Cagney <ac131313@redhat.com>
1262
1263 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
1264 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
1265 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
1266 deprecated_frame_xmalloc_with_cleanup.
1267 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
1268 deprecated_frame_xmalloc.
1269 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
1270 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
1271
1272 2003-01-06 Andrew Cagney <cagney@redhat.com>
1273
1274 * x86-64-linux-tdep.c: Include "osabi.h".
1275 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
1276
1277 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
1278
1279 2003-01-06 Andrew Cagney <cagney@redhat.com>
1280
1281 * MAINTAINERS (Target Instruction Set Architectures): Update
1282 arm-elf. Can be built with -Werror, has been multiarched.
1283
1284 * value.h (unpack_long): Make buffer parameter constant.
1285 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
1286 * scm-lang.h (scm_parse): Ditto.
1287 * defs.h (extract_typed_address, extract_address): Ditto.
1288 (extract_long_unsigned_integer): Ditto.
1289 * inferior.h (unsigned_pointer_to_address): Ditto.
1290 (signed_pointer_to_address): Ditto.
1291 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
1292 * gdbarch.h, gdbarch.c: Regenerate.
1293 * findvar.c (extract_long_unsigned_integer): Update.
1294 (extract_address): Update.
1295 (extract_typed_address): Update.
1296 (unsigned_pointer_to_address): Update.
1297 * values.c (unpack_long): Update.
1298 (unpack_double): Update.
1299 (unpack_pointer): Update.
1300 (unpack_field_as_long): Update.
1301 * d10v-tdep.c (d10v_pointer_to_address): Update.
1302 * avr-tdep.c (avr_pointer_to_address): Update.
1303 * scm-lang.c (scm_unpack): Update.
1304 * findvar.c (signed_pointer_to_address): Update.
1305
1306 2003-01-06 Michal Ludvig <mludvig@suse.cz>
1307
1308 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
1309 since it is in i386-tdep.c.
1310
1311 2003-01-06 J. Brobecker <brobecker@gnat.com>
1312
1313 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
1314 failure introduced in the previous change.
1315
1316 2003-01-05 Michael Chastain <mec@shout.net>
1317
1318 * README: Remove references to deleted remote-*.c files:
1319 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
1320 remote-nrom.c, remote-os9k.c, remote-udi.c.
1321
1322 2003-01-05 Mark Kettenis <kettenis@gnu.org>
1323
1324 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
1325 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
1326 i386_get_longjmp_target.
1327
1328 2003-01-05 Andrew Cagney <ac131313@redhat.com>
1329
1330 * arm-tdep.c (prologue_cache): Change to a pointer.
1331 (_initialize_arm_tdep): Allocate prologue_cache.
1332 (check_prologue_cache): Update.
1333 (save_prologue_cache): Update.
1334 (arm_gdbarch_init): Update.
1335
1336 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
1337
1338 * stabsread.c (update_method_name_from_physname): Call complaint()
1339 instead of error.
1340
1341 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
1342
1343 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
1344 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
1345 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
1346
1347 * blockframe.c: Include "gdbcmd.h" and "command.h".
1348 (backtrace_below_main): New variable.
1349 (file_frame_chain_valid, func_frame_chain_valid)
1350 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
1351 (generic_func_frame_chain_valid): Remove functions.
1352 (frame_chain_valid, do_flush_frames_sfunc): New functions.
1353 (_initialize_blockframe): New function.
1354 * Makefile.in (blockframe.o): Update dependencies.
1355 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
1356 comment. Call frame_chain_valid ().
1357 * frame.h: Remove old prototypes. Add prototype for
1358 frame_chain_valid and update comments to match.
1359 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
1360 Remove old comment.
1361 * gdbarch.h: Regenerated.
1362 * gdbarch.c: Regenerated.
1363
1364 * alpha-tdep.c (alpha_gdbarch_init): Don't call
1365 set_gdbarch_frame_chain_valid.
1366 * avr-tdep.c (avr_gdbarch_init): Likewise.
1367 * cris-tdep.c (cris_gdbarch_init): Likewise.
1368 * frv-tdep.c (frv_gdbarch_init): Likewise.
1369 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
1370 * i386-tdep.c (i386_svr4_init_abi): Likewise.
1371 (i386_nw_init_abi): Likewise.
1372 (i386_gdbarch_init): Likewise.
1373 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
1374 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
1375 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
1376 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
1377 * mips-tdep.c (mips_gdbarch_init): Likewise.
1378 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
1379 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
1380 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
1381 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
1382 * s390-tdep.c (s390_gdbarch_init): Likewise.
1383 * sh-tdep.c (sh_gdbarch_init): Likewise.
1384 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
1385 * v850-tdep.c (v850_gdbarch_init): Likewise.
1386 * vax-tdep.c (vax_gdbarch_init): Likewise.
1387 * x86-64-tdep.c (x86_64_init_abi): Likewise.
1388
1389 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
1390 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
1391 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
1392 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
1393 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
1394 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
1395 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
1396 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
1397
1398 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
1399
1400 * Makefile.in (acconfig_h): Remove incorrect macro.
1401 (config_h): Define.
1402 (osabi.o): Update dependencies.
1403 * configure.tgt: Set gdb_osabi based on target triplet.
1404 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
1405 * configure: Regenerated.
1406 * config.in: Regenerated.
1407 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
1408 (GDB_OSABI_DEFAULT): Define if not already defined.
1409 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
1410 (set_osabi_string): New variables.
1411 (gdbarch_register_osabi): Add new OS ABI to
1412 gdb_osabi_available_names.
1413 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
1414 (set_osabi, show_osabi): New functions.
1415 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
1416
1417 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
1418
1419 * arch-utils.c (gdbarch_info_init): Set osabi to
1420 GDB_OSABI_UNINITIALIZED.
1421 * gdbarch.sh: Add osabi to struct gdbarch and to struct
1422 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
1423 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
1424 * gdbarch.c: Regenerated.
1425 * gdbarch.h: Regenerated.
1426 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
1427 there's no BFD.
1428 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
1429 * osabi.h (enum gdb_osabi): Move to defs.h.
1430 (gdbarch_init_osabi): Update prototype.
1431 * defs.h (enum gdb_osabi): Moved here.
1432 * Makefile.in: Update dependencies.
1433
1434 * alpha-tdep.h: Don't include "osabi.h".
1435 (struct gdbarch_tdep): Remove osabi member.
1436 * alpha-tdep.c: Include "osabi.h".
1437 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
1438 iterate over arches. Update call to gdbarch_init_osabi.
1439 (alpha_dump_tdep): Don't dump osabi.
1440 * alpha-linux-tdep.c: Include "osabi.h".
1441 * alpha-osf1-tdep.c: Include "osabi.h".
1442 * alphafbsd-tdep.c: Include "osabi.h".
1443 * alphanbsd-tdep.c: Include "osabi.h".
1444
1445 * arm-tdep.h: Don't include "osabi.h".
1446 (struct gdbarch_tdep): Remove osabi member.
1447 * arm-tdep.c: Include "osabi.h".
1448 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
1449 iterate over arches. Update call to gdbarch_init_osabi.
1450 (arm_dump_tdep): Don't dump osabi.
1451 * arm-linux-tdep.c: Include "osabi.h".
1452 * armnbsd-tdep.c: Include "osabi.h".
1453
1454 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
1455 Update call to gdbarch_init_osabi.
1456
1457 * i386-tdep.h: Don't include "osabi.h".
1458 (struct gdbarch_tdep): Remove osabi member.
1459 * i386-tdep.c: Include "osabi.h".
1460 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
1461 iterate over arches. Update call to gdbarch_init_osabi.
1462 (i386_dump_tdep): Don't dump osabi.
1463 * i386-linux-tdep.c: Include "osabi.h".
1464 * i386-sol2-tdep.c: Include "osabi.h".
1465 * i386bsd-tdep.c: Include "osabi.h".
1466 * i386gnu-tdep.c: Include "osabi.h".
1467 * i386ly-tdep.c: Include "osabi.h".
1468 * i386nbsd-tdep.c: Include "osabi.h".
1469 * i386obsd-tdep.c: Include "osabi.h".
1470
1471 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
1472 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
1473 check osabi when iterating over arches. Update call to
1474 gdbarch_init_osabi.
1475 (mips_dump_tdep): Don't dump osabi.
1476
1477 * ns32k-tdep.h: Don't include "osabi.h".
1478 (struct gdbarch_tdep): Remove.
1479 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
1480 gdbarch_lookup_osabi. Don't iterate over arches. Don't
1481 allocate tdep. Update call to gdbarch_init_osabi.
1482 (ns32k_dump_tdep): Remove.
1483 (_initialize_ns32k_tdep): Update call to gdbarch_register.
1484 * ns32knbsd-tdep.c: Include "osabi.h".
1485
1486 * ppc-tdep.h: Don't include "osabi.h".
1487 (struct gdbarch_tdep): Remove osabi member.
1488 * rs6000-tdep.c: Include "osabi.h".
1489 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
1490 osabi when iterating over arches. Update call to
1491 gdbarch_init_osabi.
1492 (rs6000_dump_tdep): Don't dump osabi.
1493 * ppc-linux-tdep.c: Include "osabi.h".
1494 * ppcnbsd-tdep.c: Include "osabi.h".
1495
1496 * sh-tdep.h: Don't include "osabi.h".
1497 (struct gdbarch_tdep): Remove osabi member.
1498 * sh-tdep.c: Include "osabi.h".
1499 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
1500 iterate over arches. Update call to gdbarch_init_osabi.
1501 (sh_dump_tdep): Don't dump osabi.
1502 * shnbsd-tdep.c: Include "osabi.h".
1503
1504 * sparc-tdep.c: Include "osabi.h".
1505 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
1506 iterate over arches. Update call to gdbarch_init_osabi.
1507 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
1508 tdep structure.
1509
1510 * vax-tdep.h: Don't include "osabi.h".
1511 (struct gdbarch_tdep): Remove.
1512 * vax-tdep.c: Include "osabi.h".
1513 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
1514 iterate over arches. Don't allocate tdep. Update call
1515 to gdbarch_init_osabi.
1516 (vax_dump_tdep): Remove.
1517 (_initialize_vax_tdep): Update call to gdbarch_register.
1518
1519 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
1520
1521 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
1522 entirely.
1523 (breakpoint_re_set_one): Don't fetch the value for a disabled
1524 watchpoint.
1525
1526 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
1527
1528 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
1529 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
1530 (COERCE_FLOAT_TO_DOUBLE): Remove.
1531 * gdbarch.c: Regenerate.
1532 * gdbarch.h: Regenerate.
1533 * Makefile.in: Remove value_h from gdbarch_h.
1534 * valops.c (coerce_float_to_double): New variable.
1535 (default_coerce_float_to_double): Remove.
1536 (standard_coerce_float_to_double): Remove.
1537 (value_arg_coerce): Use coerce_float_to_double.
1538 (_initialize_valops): Add "set coerce-float-to-double".
1539 * value.h (default_coerce_float_to_double): Remove prototype.
1540 (standard_coerce_float_to_double): Remove prototype.
1541
1542 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
1543 prototyped.
1544 * mdebugread.c (parse_symbol): Likewise.
1545 * stabsread.c (define_symbol): Mark all functions as prototyped.
1546
1547 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
1548 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
1549 set_gdbarch_coerce_float_to_double.
1550 * arm-tdep.c (arm_gdbarch_init): Likewise.
1551 * frv-tdep.c (frv_gdbarch_init): Likewise.
1552 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
1553 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
1554 * mips-tdep.c (mips_gdbarch_init): Likewise.
1555 (mips_coerce_float_to_double): Remove.
1556 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
1557 (rs6000_coerce_float_to_double): Remove.
1558 * s390-tdep.c (s390_gdbarch_init): Likewise.
1559 * sh-tdep.c (sh_gdbarch_init): Likewise.
1560 (sh_coerce_float_to_double): Remove.
1561 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
1562 (sparc_coerce_float_to_double): Remove.
1563 * v850-tdep.c (v850_gdbarch_init): Likewise.
1564 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
1565 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
1566 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
1567 (hppa_coerce_float_to_double): Remove prototype.
1568 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
1569
1570 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
1571
1572 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
1573
1574 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
1575
1576 Suggested by Stewart Brown <sb24@avaya.com>:
1577 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
1578 in recursive calls. Handle TYPE_CODE_TYPEDEF.
1579 (c_type_print_varspec_suffix): Likewise.
1580
1581 2003-01-04 Mark Kettenis <kettenis@gnu.org>
1582
1583 * configure.in: Don't set and AC_SUBST SUBDIRS.
1584 * configure: Regenerated.
1585
1586 * configure.in: Remove code dealing with shared libraries.
1587 * Makefile.in: Remove HLDFLAGS and HLDENV.
1588 * configure: Regenerated.
1589
1590 2003-01-04 Andrew Cagney <ac131313@redhat.com>
1591
1592 * frame.c (deprecated_frame_xmalloc): New function.
1593 (deprecated_set_frame_saved_regs_hack): New function.
1594 (deprecated_set_frame_extra_info_hack): New function.
1595 * frame.h (deprecated_frame_xmalloc): Declare.
1596 (deprecated_set_frame_saved_regs_hack): Declare.
1597 (deprecated_set_frame_extra_info_hack): Declare.
1598
1599 2003-01-04 Mark Kettenis <kettenis@gnu.org>
1600
1601 * configure.in: Move code that provides the --enable-gdbtk option
1602 right after the code that handles the --enable-tui option, and
1603 polish it somewhat.
1604 * configure: Regenerated.
1605
1606 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
1607 AC_CHECK_FUNCS and remove the old check for pread64.
1608 * acinclude.m4 (AC_GNU_SOURCE): New macro.
1609 * acconfig.h (_GNU_SOURCE): Add.
1610 (HAVE_PREAD64): Remove.
1611 * configure, aclocal.m4, config.in: Regenerated.
1612
1613 2003-01-03 Andrew Cagney <ac131313@redhat.com>
1614
1615 * alpha-tdep.c: Use get_frame_saved_regs.
1616 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
1617 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
1618 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
1619 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
1620 * vax-tdep.c, xstormy16-tdep.c: Ditto.
1621
1622 2003-01-03 Mark Kettenis <kettenis@gnu.org>
1623
1624 * configure.in: Remove all use of the SUBDIRS variable; add
1625 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
1626 code providing the --enable-multi-ice option, and move it right in
1627 front of the code that checks whether gdbserver is supported.
1628 Polish that too.
1629 * configure: Regenerated.
1630 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
1631 @SUBDIRS@.
1632
1633 2003-01-03 Andrew Cagney <cagney@redhat.com>
1634
1635 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
1636 * avr-tdep.c, cris-tdep.c: Ditto.
1637 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
1638 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
1639
1640 2003-01-03 Mark Kettenis <kettenis@gnu.org>
1641
1642 * configure.in: Remove --enable-netrom option.
1643 * configure: Regenerated.
1644
1645 2003-01-03 Mark Kettenis <kettenis@gnu.org>
1646
1647 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
1648 declaration for `struct re_pattern_buffer' instead.
1649 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
1650
1651 2003-01-03 J. Brobecker <brobecker@gnat.com>
1652
1653 * mdebugread.c (parse_symbol): Count until the stEnd matching
1654 the structure name.
1655
1656 2003-01-02 Mark Kettenis <kettenis@gnu.org>
1657
1658 * configure.in: Remove --with-cpu option.
1659 subscripts. Remove evil changequotes here.
1660 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
1661 * config.in, configure: Regenerated.
1662
1663 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
1664 * configure.in: Cleanup section that sources GDB and BFD configure
1665 subscripts. Remove evil changequotes here.
1666 * config.in, configure: Regenerated.
1667
1668 2003-01-02 Andrew Cagney <ac131313@redhat.com>
1669
1670 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
1671 frame accessor methods.
1672 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
1673 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
1674 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
1675 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
1676 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
1677 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
1678 * z8k-tdep.c: Ditto.
1679
1680 2003-01-02 Mark Kettenis <kettenis@gnu.org>
1681
1682 * configure.in: Remove UI_OUT configuration code.
1683 * ada-lang.c: Update assuming UI_OUT is always true.
1684 * Makefile.in (UIOUT_CFLAGS): Remove.
1685 * configure: Regenerated.
1686 * TODO: Remove blurb about elimination of -DUI_OUT.
1687
1688 * configure.in: Move code that provides the --enable-gdbcli,
1689 --enable-gdbmi options right before the code that handles the
1690 --enable-tui option. Polish a bit.
1691 * configure: Regenerated.
1692
1693 * configure.in: Rewrite check for GNU regex and the
1694 --without-included regex option, and move it into the "Checks for
1695 library functions" section. This makes us use the system regex
1696 again by default on systems with version 2 of the GNU C library.
1697 This was apparently broken.
1698 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
1699 * acconfig.h (USE_INCLUDED_REGEX): Remove.
1700 * config.in, configure: Regenerated.
1701
1702 * configure.in: Move code that provides the --enable-tui option
1703 before the "Checks for libraries" section. Polish the code
1704 somewhat and set need_curses to yes if we build the TUI. Rewrite
1705 code that looks for a library providing termcap functionality to
1706 match more closely what's done in the Readline library, and move
1707 it into to the "Checks for libraries" section.
1708 * configure: Regenerated.
1709 * Makefile.in (TERMCAP): Remove variable.
1710 * config/i386/go32.mh (TERMCAP): Remove variable.
1711
1712 2003-01-02 Andrew Cagney <ac131313@redhat.com>
1713
1714 * MAINTAINERS: Mention gdb_mbuild.sh.
1715 * gdb_mbuild.sh: Rewrite.
1716
1717 2003-01-02 Mark Kettenis <kettenis@gnu.org>
1718
1719 * configure.in: Fix typo in last change.
1720 * config.in, configure: Regenerated.
1721
1722 2003-01-02 Andrew Cagney <ac131313@redhat.com>
1723
1724 * valarith.c (value_binop): Delete obsolete code and comments.
1725 * configure.host: Ditto.
1726 * buildsym.h (make_blockvector): Ditto.
1727 * buildsym.c (make_blockvector): Ditto.
1728 * defs.h (enum language): Ditto.
1729 (chill_demangle): Ditto.
1730 * elfread.c (elf_symtab_read): Ditto.
1731 * dwarfread.c (CHILL_PRODUCER): Ditto.
1732 (set_cu_language): Ditto.
1733 (handle_producer): Ditto.
1734 * expprint.c (print_subexp): Ditto.
1735 * gdbtypes.c (chill_varying_type): Ditto.
1736 * gdbtypes.h (builtin_type_chill_bool): Ditto.
1737 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
1738 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
1739 (chill_varying_type): Ditto.
1740 * language.h (_LANG_chill): Ditto.
1741 * language.c (binop_result_type, integral_type): Ditto.
1742 (character_type, string_type, structured_type): Ditto.
1743 (lang_bool_type, binop_type_check): Ditto.
1744 * stabsread.h (os9k_stabs): Ditto.
1745 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
1746 (define_symbol, read_type, read_struct_fields): Ditto.
1747 (read_array_type, read_enum_type, read_huge_number): Ditto.
1748 (read_range_type, start_stabs): Ditto.
1749 * symfile.c (init_filename_language_table): Ditto.
1750 (add_psymbol_with_dem_name_to_list): Ditto.
1751 * symtab.c (symbol_init_language_specific): Ditto.
1752 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
1753 * symtab.h (struct general_symbol_info): Ditto.
1754 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
1755 * typeprint.c (typedef_print): Ditto.
1756 * utils.c (fprintf_symbol_filtered): Ditto.
1757 * valops.c (value_cast, search_struct_field, value_slice): Delete
1758 obsolete code.
1759 (varying_to_slice): Delete function.
1760 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
1761 (varying_to_slice): Delete declaration.
1762 * MAINTAINERS: Update.
1763
1764 2003-01-02 Mark Kettenis <kettenis@gnu.org>
1765
1766 * configure.in: Reorganize "Checks for library functions section"
1767 a bit. Remove check for `btowc' and `isascii' functions.
1768 * configure: Regenerated.
1769
1770 * acconfig.h (_MSE_INT_H): Remove.
1771 * configure.in: Create "Checks for header files" section, and move
1772 appropriate tests there. Don't check for objlist.h, wchar.h,
1773 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
1774 misdetection fix. Also add "Checks for types", "Checks for
1775 compiler characteristics" and "Checks for library functions"
1776 sections.
1777 * config.in, configure: Regenerated.
1778
1779 * configure.in: Create "Checks for programs" section, and move
1780 appropriate tests there.
1781
1782 2003-01-01 Mark Kettenis <kettenis@gnu.org>
1783
1784 * configure.in: Create "Checks for libraries" section, and move
1785 appropriate tests there. Cleanup check for wctype in libw. Use
1786 AC_SEARCH_LIBS to see whether we need libsocket.
1787 * configure: Regenerated.
1788
1789 For older changes see ChangeLog-2002
1790 \f
1791 Local Variables:
1792 mode: change-log
1793 left-margin: 8
1794 fill-column: 74
1795 version-control: never
1796 End: