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