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