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