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