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