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