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