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