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