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