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