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