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