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