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