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