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