2003-02-03 Michael Chastain <mec@shout.net>
[binutils-gdb.git] / gdb / ChangeLog
1 2003-02-03 Michael Chastain <mec@shout.net>
2
3 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
4 gdb/testsuite/gdb.c++/pr-1023.exp.
5
6 2003-02-04 Andrew Cagney <ac131313@redhat.com>
7
8 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
9 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
10
11 * utils.c (init_page_info): Delete reference to MPW in comments.
12 * main.c (captured_main): Delete #ifdef MPW.
13
14 2003-02-04 Andrew Cagney <ac131313@redhat.com>
15
16 * NEWS: Note that the m32r-*-elf* is obsolete.
17 * monitor.c (monitor_expect): Obsolete reference to m32r.
18 * configure.tgt: Mark m32r-*-elf* as obsolete.
19 * MAINTAINERS: Mark m32k as obsolete.
20 * m32r-rom.c: Obsolete file.
21 * config/m32r/m32r.mt: Obsolete file.
22 * config/m32r/tm-m32r.h: Obsolete file.
23 * m32r-stub.c: Obsolete file.
24 * m32r-tdep.c: Obsolete file.
25
26 2003-02-04 Andrew Cagney <ac131313@redhat.com>
27
28 * NEWS: Mention that the z8k-zilog-none is obsolete.
29 * MAINTAINERS: Mark z8k as obsolete.
30 * configure.tgt: Obsolete the z8k-*-coff* target.
31 * config/z8k/z8k.mt: Obsolete file.
32 * config/z8k/tm-z8k.h: Obsolete file.
33 * z8k-tdep.c: Obsolete file.
34
35 2003-02-04 Andrew Cagney <ac131313@redhat.com>
36
37 * NEWS: Mention that the mn10200-elf is obsolete.
38 * configure.tgt: Obsolete mn10200-*-* target.
39 * breakpoint.c (update_breakpoints_after_exec): Update comment to
40 mention that the mn10200 is obsolete.
41 * breakpoint.h: Ditto.
42 * MAINTAINERS: Mark the mn10200-elf as obsolete.
43 * config/mn10200/mn10200.mt: Obsolete file.
44 * config/mn10200/tm-mn10200.h: Obsolete file.
45 * mn10200-tdep.c: Obsolete file.
46
47 2003-02-04 Andrew Cagney <ac131313@redhat.com>
48
49 * MAINTAINERS: Mark h8500 as obsolete.
50 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
51 * findvar.c (value_from_register): Ditto.
52 * h8500-tdep.c: Mark file as obsolete.
53 * config/h8500/h8500.mt: Ditto.
54 * config/h8500/tm-h8500.h: Ditto.
55 * NEWS: Mention that h8500 is obsolete.
56
57 2003-02-04 David Carlton <carlton@math.stanford.edu>
58
59 * objfiles.c (allocate_objfile): Always set name. Add comment at
60 start of function.
61 * jv-lang.c (get_dynamics_objfile): Add comment.
62
63 2003-02-04 David Carlton <carlton@math.stanford.edu>
64
65 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
66 * printcmd.c (build_address_symbolic): Replace uses of
67 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
68 SYMBOL_NAME, and asm_demangle.
69 Update copyright.
70
71 2003-02-04 David Carlton <carlton@math.stanford.edu>
72
73 * linespec.c (decode_compound): Extract code into
74 lookup_prefix_sym.
75 (lookup_prefix_sym): New function.
76
77 2003-02-04 David Carlton <carlton@math.stanford.edu>
78
79 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
80 FLOAT_COERCION_BADNESS.
81 * gdbtypes.c (rank_one_type): Replace all uses of
82 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
83
84 2003-02-04 Jim Blandy <jimb@redhat.com>
85
86 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
87 section, let dwarf_macinfo_section point to it, not
88 dwarf_loc_section.
89
90 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
91
92 Pointed out by Anton Blanchard <anton@samba.org>.
93 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
94 (ppc_linux_at_sigtramp_return_path): Use it.
95
96 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
97
98 * defs.h (streq): Add prototype.
99 * utils.c (streq): New function.
100
101 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
102 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
103 * mdebugread.c (new_symbol): Likewise.
104 * stabsread.c (define_symbol): Likewise.
105 * coffread.c (process_coff_symbol): Likewise.
106 * dwarfread.c (new_symbol): Likewise.
107
108 * minsyms.c (prim_record_minimal_symbol_and_info): Use
109 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
110 here.
111 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
112 SYMBOL_INIT_DEMANGLED_NAME.
113 * objfiles.c: Include "hashtab.h".
114 (allocate_objfile): Call htab_set_functions_ex for the
115 demangled_names_hash.
116 (free_objfile): Call htab_delete for the demangled_names_hash.
117 * objfiles.h (struct htab): Add declaration.
118 (struct objfile): Add demangled_names_hash.
119 * symfile.c: Include "hashtab.h".
120 (reread_symbols): Call htab_delete for the demangled_names_hash.
121 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
122 SYMBOL_NAME in the bcache.
123 * symtab.c: Include "hashtab.h". Update comments.
124 (create_demangled_names_hash, symbol_set_names): New functions.
125 (symbol_find_demangled_name): New function, broken out from
126 symbol_init_demangled_names.
127 (symbol_init_demangled_names): Use it.
128 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
129 (SYMBOL_SET_NAMES): New macro.
130 (symbol_set_names): Add prototype.
131
132 2003-02-03 Jim Blandy <jimb@redhat.com>
133
134 Use a single, consistent representation for an empty minimal
135 symbol table in an objfile.
136 * objfiles.c (terminate_minimal_symbol_table): New function.
137 (allocate_objfile): Call it.
138 * objfiles.h (terminate_minimal_symbol_table): New declaration.
139 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
140 non-NULL.
141 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
142 objfile has minimal symbols, compare minimal_symbol_count to zero,
143 instead of comparing msymbols with NULL.
144 * objfiles.c (have_minimal_symbols): Same.
145 * solib-sunos.c (solib_add_common_symbols): Call
146 terminate_minimal_symbol_table.
147 * symfile.c (reread_symbols): Same.
148
149 2003-02-03 Kevin Buettner <kevinb@redhat.com>
150
151 * s390-tdep.c (s390_address_class_type_flags)
152 (s390_address_class_type_flags_to_name)
153 (s390_address_class_name_to_type_flags): New functions.
154 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
155 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
156
157 2003-02-03 Michael Snyder <msnyder@redhat.com>
158
159 * arm-tdep.c: Fix spell-o in comment.
160
161 2003-02-03 Michal Ludvig <mludvig@suse.cz>
162
163 * dwarf2cfi.c (pointer_encoding): Added new parameter.
164 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
165 error messages to contain BFD filename.
166
167 2003-02-02 Elena Zannoni <ezannoni@redhat.com>
168
169 Fix PR gdb/742 gdb/743 gdb/877
170 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
171 (do_mixed_source_and_assembly): Use
172 make_cleanup_ui_out_tuple_begin_end and
173 make_cleanup_ui_out_tuple_begin_end.
174 (do_mixed_source_and_assembly): Ditto.
175 * thread.c (do_captured_list_thread_ids): Ditto.
176 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
177 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
178 ui_out_tuple_end): Delete prototypes.
179 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
180 ui_out_list_end, ui_out_tuple_end): Delete.
181
182 From Kevin Buettner <kevinb@redhat.com>:
183 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
184 * ui-out.c (make_cleanup_ui_out_table_begin_end)
185 (do_cleanup_table_end): New functions.
186 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
187 Use cleanups to invoke_ui_out_tuple_end().
188 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
189 * cli/cli-setshow.c (cmd_show_list): Use
190 make_cleanup_ui_out_tuple_begin_end.
191
192 2003-02-02 Andrew Cagney <ac131313@redhat.com>
193
194 * frame.c (frame_unwind_register): New function.
195 (frame_unwind_unsigned_register): Use.
196 (frame_unwind_signed_register): Use.
197 (frame_read_register): New function.
198 * frame.h (frame_unwind_register): Declare.
199 (frame_read_register): Declare.
200
201 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
202 and frame_unwind_register instead of read_memory, write_register
203 and deprecated_write_register_bytes.
204
205 2003-02-02 Andrew Cagney <ac131313@redhat.com>
206
207 * frame.h: Note that namelen can be negative.
208 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
209 NAME's length.
210
211 * NEWS: Mention that the d10v's `regs' command is deprecated.
212 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
213 (d10v_print_registers_info): New function.
214 (show_regs): Call d10v_print_registers_info.
215 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
216
217 2003-02-02 Mark Kettenis <kettenis@gnu.org>
218
219 * stack.c (print_frame_info): Restore call to annotate_frame_begin
220 lost in the previous patch.
221
222 2003-02-01 Andrew Cagney <ac131313@redhat.com>
223
224 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
225 * stack.c (print_frame_info_base): Output complete FRAME tuple
226 for synthesized frames.
227
228 2003-02-02 Andrew Cagney <ac131313@redhat.com>
229
230 * mips-nat.c (zerobuf): Delete.
231 (fetch_inferior_registers): Alloc local zerobuf.
232 (fetch_core_registers): Alloc local zerobuf.
233 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
234 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
235 * thread-db.c (thread_db_store_registers): Ditto.
236 * sh-tdep.c (sh_do_register): Ditto.
237 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
238 * remote-sim.c (gdbsim_store_register): Ditto.
239 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
240 * remote-e7000.c (fetch_regs_from_dump): Ditto.
241 * monitor.c (monitor_supply_register): Ditto.
242 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
243 * mips-nat.c (fetch_inferior_registers): Ditto.
244 * m68klinux-nat.c (fetch_register): Ditto.
245 * lynx-nat.c (fetch_inferior_registers): Ditto.
246 (fetch_inferior_registers): Ditto.
247 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
248 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
249 (hpux_thread_store_registers): Ditto.
250 * hppah-nat.c (fetch_register): Ditto.
251 * hppab-nat.c (fetch_register): Ditto.
252 * hppa-tdep.c (pa_register_look_aside): Ditto.
253 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
254 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
255
256 2003-02-01 Andrew Cagney <ac131313@redhat.com>
257
258 * gdbarch.sh: Explictly specify all method levels. When a
259 variable with an empty level, provide a non-multi-arch default.
260 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
261 * gdbarch.h: Re-generate.
262 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
263 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
264
265 2003-02-01 Andrew Cagney <ac131313@redhat.com>
266
267 * defs.h (host_pointer_to_address): Delete declaration.
268 (address_to_host_pointer): Delete declaration.
269 * utils.c (host_pointer_to_address): Delete function.
270 (address_to_host_pointer): Delete function.
271 * procfs.c (procfs_address_to_host_pointer): New function.
272 * procfs.c (proc_set_watchpoint): Use.
273 (procfs_can_use_hw_breakpoint): Update comments.
274 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
275 (som_solib_add): Use.
276 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
277 * hppa-tdep.c (unwind_command): Use.
278
279 2003-02-01 Andrew Cagney <ac131313@redhat.com>
280
281 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
282 strlen d_name.
283
284 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
285 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
286 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
287 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
288 (define_symbol): Update.
289 * symfile.c (generic_load): Remove references to nindy.
290 * symtab.c: Remove references to nindy.
291
292 2003-02-01 Andrew Cagney <ac131313@redhat.com>
293
294 * infcmd.c (print_float_info): Delete code conditional on
295 FLOAT_INFO.
296 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
297 * config/m68k/nm-apollo68b.h: Ditto.
298 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
299 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
300 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
301
302 2003-02-01 Mark Kettenis <kettenis@gnu.org>
303
304 * config/i386/tm-i386os9k.h: Removed.
305
306 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
307 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
308 they're identical to i[3456]86-*-sysv* now.
309 * config/i386/i386v32.mh: Removed.
310 * config/i386/xm-i386v32.h: Removed.
311 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
312
313 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
314
315 * config/i386/i386dgux.mh: Removed.
316 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
317
318 * configure.in: Fix typo.
319 * configure: Regenerated.
320
321 2003-01-31 David Carlton <carlton@math.stanford.edu>
322
323 * dwarf2read.c (dwarf2_locate_sections): Set
324 dwarf_ranges_section.
325
326 2003-01-31 Andrew Cagney <ac131313@redhat.com>
327
328 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
329 * utils.c: Update comments documenting legitimate uses of PTR.
330
331 * utils.c: Re-indent.
332
333 * config/djgpp/fnchange.lst: Delete nindy files.
334 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
335 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
336 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
337 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
338 * nindy-share/README, nindy-share/Onindy.c: Delete files.
339 * nindy-tdep.c, nindy-share/Makefile: Delete files.
340 * Makefile.in (init.c): Remove nindy references.
341 (saber_gdb): Delete rule.
342 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
343 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
344 and a68v-nat.c.
345 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
346 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
347 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
348 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
349 nindy-share/stop.h.
350 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
351 * saber.suppress: Delete file.
352
353 2003-01-31 Daniel Jacobowitz <drow@mvista.com>
354
355 * dbxread.c (stabs_data): New static variable.
356 (fill_symbuf): Support an in-memory buffer for stabs data.
357 (stabs_seek): New function.
358 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
359 (read_ofile_symtab): Use stabs_seek.
360 (elfstab_build_psymtabs): Take an asection* instead of
361 an offset and size. Relocate the stabs data if necessary.
362 Save the section* for dbx_psymtab_to_symtab.
363 * dwarf2read.c: Add section variables for each debug section.
364 (dwarf2_locate_sections): Fill them in.
365 (dwarf2_read_section): Take an asection* argument.
366 Relocate the section contents if necessary.
367 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
368 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
369 it to dwarf2_read_section.
370 (dwarf2_build_frame_info): Update callers.
371 * elfread.c (elf_symfile_read): Update call to
372 elfstab_build_psymtabs.
373 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
374 (DBX_STAB_SECTION): New macro.
375 * stabsread.h (elfstab_build_psymtabs): Update prototype.
376 * symfile.c (symfile_dummy_outputs): New function.
377 (symfile_relocate_debug_section): New function.
378 * symfile.h (symfile_relocate_debug_section): Add prototype.
379
380 2003-01-31 Richard Henderson <rth@redhat.com>
381
382 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
383 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
384 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
385 * alpha-tdep.c (alpha_register_name): Add "unique".
386 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
387 (ALPHA_UNIQUE_REGNUM): New.
388 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
389
390 2003-01-31 Andrew Cagney <ac131313@redhat.com>
391
392 * README: Remove reference to Ericsson 1800 monitor.
393 * Makefile.in (remote-es.o): Delete rule.
394 (ALLDEPFILES): Delete remote-es.c.
395 * remote-es.c: Delete file.
396 * config/m68k/es1800.mt: Delete file.
397 * config/djgpp/fnchange.lst: Update.
398 * configure.tgt: Delete m68*-ericsson-* target.
399
400 2003-01-31 Adam Fedor <fedor@gnu.org>
401
402 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
403 Remove duplicate/shadowing variable of same name.
404
405 2003-01-30 Jim Blandy <jimb@redhat.com>
406
407 * symfile.c (find_separate_debug_file): Assert that the objfile's
408 directory name we compute ends with a slash, and then assume that
409 that's so everywhere we use it.
410
411 2003-01-30 Daniel Jacobowitz <drow@mvista.com>
412
413 * valops.c (value_assign): Flush frame cache after stores to memory
414 also.
415
416 2003-01-30 Andrew Cagney <ac131313@redhat.com>
417
418 * Makefile.in (mon960-rom.o): Delete rule.
419 * mon960-rom.c: Delete file.
420
421 2003-01-30 Andrew Cagney <ac131313@redhat.com>
422
423 * d10v-tdep.c: Include "frame-unwind.h".
424 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
425 list.
426 (next_addr, uses_frame): Delete.
427 (struct d10v_unwind_cache): Define.
428 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
429 Use info instead of next_addr and uses_frame globals.
430 (d10v_frame_init_saved_regs): Delete function.
431 (d10v_init_extra_frame_info): Delete function.
432 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
433 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
434 init_frame_pc or frame_saved_pc.
435 (d10v_pop_frame): Delete function.
436 (do_d10v_pop_frame): Delete function.
437 (d10v_frame_chain): Delete function.
438 (d10v_frame_chain_valid): Delete function.
439 (d10v_frame_pc_unwind): New function.
440 (d10v_frame_id_unwind): New function.
441 (saved_regs_unwinder): New function.
442 (d10v_frame_register_unwind): New function.
443 (d10v_frame_pop): New function.
444 (d10v_frame_unwind): New variable.
445 (d10v_frame_p): New function.
446 (d10v_frame_saved_pc): Delete function.
447 * Makefile.in (d10v-tdep.o): Update dependencies.
448
449 2003-01-30 J. Brobecker <brobecker@gnat.com>
450
451 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
452 causing some regressions due to a change in the default value
453 for this macro.
454
455 2003-01-29 Richard Henderson <rth@redhat.com>
456 Elena Zannoni <ezannoni@redhat.com>
457 Daniel Jacobowitz <drow@mvista.com>
458
459 Fix PR gdb/961.
460 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
461 variables.
462 (RANGES_SECTION): New.
463 (dwarf_ranges_buffer): New variable.
464 (struct comp_unit_head): Add member "die".
465 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
466 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
467 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
468 (dwarf2_locate_sections): Likewise.
469 (dwarf2_build_psymtabs): Read .debug_ranges.
470 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
471 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
472 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
473 Look for DW_AT_ranges and return the bounding box.
474
475 2003-01-29 Brian Ford <ford@vss.fsi.com>
476
477 * win32-nat.c (cygwin_pid): Removed as unused.
478 (child_attach): Try fall back to Cygwin pid.
479
480 2003-01-29 Jim Blandy <jimb@redhat.com>
481
482 * objfiles.h (struct objfile): Doc fix.
483
484 2003-01-29 Andrew Cagney <ac131313@redhat.com>
485
486 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
487 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
488 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
489 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
490 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
491 (FRAME_SAVED_PC): Change to a function with predicate.
492 * gdbarch.h, gdbarch.c: Re-generate.
493
494 2003-01-28 Andrew Cagney <ac131313@redhat.com>
495
496 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
497
498 * complaints.c (complain): Delete function.
499 * complaints.h (struct deprecated_complaint): Delete definition.
500 (complain): Delete declaration.
501
502 2003-01-28 Kevin Buettner <kevinb@redhat.com>
503
504 * mips-tdep.c (mips_init_extra_frame_info): Return early for
505 dummy frames.
506
507 2003-01-27 Andrew Cagney <ac131313@redhat.com>
508
509 * sentinel-frame.h, sentinel-frame.c: New files.
510 * Makefile.in (frame.o): Update dependencies.
511 (SFILES): Add sentinel-frame.c.
512 (sentinel_frame_h): Define.
513 (COMMON_OBS): Add sentinel-frame.o.
514 (sentinel-frame.o): Specify dependencies.
515 * frame.c: Include "sentinel-frame.h".
516 (frame_register_unwind): Rewrite assuming that there is always a a
517 ->next frame.
518 (frame_register, generic_unwind_get_saved_register): Ditto.
519 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
520 (create_sentinel_frame, unwind_to_current_frame): New functions.
521 (get_current_frame): Rewrite using create_sentinel_frame and
522 unwind_to_current_frame. When possible, always create a frame.
523 (create_new_frame): Set next to the sentinel frame.
524 (get_next_frame): Rewrite. Don't go below the level 0 frame.
525 (deprecated_update_frame_pc_hack): Update the next frame's PC and
526 ID cache when necessary.
527 (frame_saved_regs_id_unwind): Use frame_relative_level.
528 (deprecated_generic_get_saved_register): Use frame_relative_level,
529 get_frame_saved_regs, get_frame_pc, get_frame_base and
530 get_next_frame.
531 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
532 frame_register.
533
534 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
535
536 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
537
538 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
539
540 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
541 (maintenance_set_profile_cmd): Use error () instead of warning ().
542
543 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
544
545 * configure.in: Check that -pg works if using --enable-profiling.
546 Check for monstartup and _mcleanup regardless of --enable-profiling.
547 * maint.c: Check for monstartup and _mcleanup before using them.
548 * config.in: Regenerated.
549 * configure: Regenerated.
550
551 2003-01-24 Nick Clifton <nickc@redhat.com>
552
553 * Add sh2e support:
554
555 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
556
557 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
558 (sh2e_show_regs): New.
559 (sh_gdbarch_init): Handle bfd_mach_sh2e.
560 * config/sh/tm-sh.h: Added sh2e to comments.
561
562 2003-01-23 Jim Blandy <jimb@redhat.com>
563
564 * symfile.c (syms_from_objfile): Don't print the "(no debugging
565 symbols found)" message here; we haven't checked for a separate
566 debug info file yet, so we don't know yet.
567 (symbol_file_add_with_addrs_or_offsets): Print it here, after
568 we've looked everywhere. Also, there's no need to print a special
569 message when we're loading the separate debug info file: the one
570 symbol_file_add prints is fine.
571
572 2003-01-23 Alexander Larsson <alexl@redhat.com>
573 Jim Blandy <jimb@redhat.com>
574
575 Add support for executables whose debug info has been separated
576 out into a separate file, leaving only a link behind.
577 * objfiles.h (struct objfile): New fields: separate_debug_objfile
578 and separate_debug_objfile_backlink.
579 (put_objfile_before): New declaration.
580 * symfile.c: #include "filenames.h".
581 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
582 debug info in a separate file, read that, too. Save the addrs
583 argument, so we can use it again to read the separated debug info;
584 syms_from_objfile modifies the table we pass it.
585 (reread_symbols): After re-reading an objfile, call
586 reread_separate_symbols to refresh its separate debug info
587 objfile, if it has one.
588 (reread_separate_symbols, find_separate_debug_file,
589 get_debug_link_info, separate_debug_file_exists): New functions.
590 (debug_file_directory): New global var.
591 (_initialize_symfile): Initialize debug_file_directory, and
592 provide the new `set debug-file-directory' command to let the user
593 change it.
594 * objfiles.c (free_objfile): If this objfile has its debug info in
595 a separate objfile, free that one too. If this is itself a
596 separate debug info objfile, clear our parent's backlink.
597 (put_objfile_before): New function.
598 * utils.c (gnu_debuglink_crc32): New function.
599 * defs.h (gnu_debuglink_crc32): New declaration.
600 * Makefile.in (symfile.o): Note dependency on "filenames.h".
601 * configure.in: Handle --with-separate-debug-dir config option.
602 * acinclude.m4 (AC_DEFINE_DIR): New macro.
603 * acconfig.h (DEBUGDIR): New macro.
604 * configure, aclocal.m4, config.in: Regenerated.
605
606 2003-01-22 Jim Blandy <jimb@redhat.com>
607
608 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
609 like the old symbol_file_add, but taking new arguments: you can
610 now pass in either a `struct section_addr_info' list to say where
611 each section is loaded, or a `struct section_offsets' table. Pass
612 these new arguments through to syms_from_objfile as appropriate.
613 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
614 with the appropriate quiescent values for the new arguments.
615
616 * symfile.c: #include "gdb_assert.h".
617 (syms_from_objfile): Add the ability to pass in a section offset
618 table directly, as an alternative to the section_addr_info table.
619 Document arguments better.
620 (symbol_file_add): Pass extra arguments to syms_from_objfile.
621 * symfile.h (syms_from_objfile): Update declaration.
622 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
623 syms_from_objfile.
624 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
625
626 2003-01-22 Daniel Jacobowitz <drow@mvista.com>
627
628 Original patch by Tom Tromey <tromey@cygnus.com> and
629 Jason Molenda <jmolenda@apple.com>.
630 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
631 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
632 * NEWS: Mention profiling.
633 * configure.in (--enable-gdbtk): Fix typo.
634 (--enable-profiling): New. Set PROFILE_CFLAGS.
635 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
636 Fill in function.
637 (profiling_state): New variable.
638 (mcleanup_wrapper): New function.
639 (_initialize_maint): Remove NOTYET, fix call to
640 add_setshow_boolean_cmd for "maint set profile".
641 * configure: Regenerated.
642
643 2003-01-21 Martin M. Hunt <hunt@redhat.com>
644
645 * Makefile.in (install-gdbtk): Install PNG images too.
646
647 2003-01-21 Andrew Cagney <ac131313@redhat.com>
648
649 * exec.c (text_start): Delete global variable.
650 (exec_file_attach): Make text_start local to the function.
651 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
652 * valops.c (hand_function_call): Delete code that handles
653 BEFORE_TEXT_END and AFTER_TEXT_END.
654 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
655 of CALL_DUMMY_LOCATION.
656 * gdbarch.c: Regenerate.
657 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
658 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
659 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
660 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
661 (text_end): Delete extern declaration.
662
663 2003-01-21 Andrew Cagney <ac131313@redhat.com>
664
665 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
666 * blockframe.c (backtrace_below_main): Move to "frame.c".
667 (frame_chain_valid): Delete check for backtrace_below_main.
668 (_initialize_blockframe): Delete initialization, move ``set
669 backtrace-below-main'' command to "frame.c".
670 (do_flush_frames_sfunc): Delete function.
671 * frame.c: Include "command.h" and "gdbcmd.h".
672 (frame_type_from_pc): New function.
673 (create_new_frame): Use frame_type_from_pc.
674 (legacy_get_prev_frame): New function.
675 (get_prev_frame): Rewrite. When an old style frame, call
676 legacy_get_prev_frame. Otherwize, unwind the PC first.
677 (_initialize_frame): Add ``set backtrace-below-main'' command.
678 * Makefile.in (frame.o): Update dependencies.
679
680 2003-01-19 Andrew Cagney <ac131313@redhat.com>
681
682 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
683 DEPRECATED_REGISTERS_INFO.
684
685 2003-01-19 Andrew Cagney <ac131313@redhat.com>
686
687 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
688 Maintainers'. Update `Various Maintainers'.
689
690 2003-01-19 Andrew Cagney <ac131313@redhat.com>
691
692 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
693 * gdbarch.sh (POP_FRAME): Change to function with predicate.
694 Suppress actual parameters when `-'.
695 * gdbarch.h, gdbarch.c: Regenerate.
696
697 2003-01-19 Andrew Cagney <ac131313@redhat.com>
698
699 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
700 code handling dummy frames.
701
702 2003-01-19 Andrew Cagney <ac131313@redhat.com>
703
704 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
705 (struct frame_unwind): Add field pop.
706 * frame.h (frame_pop): Declare.
707 * frame.c (frame_saved_regs_pop): New function.
708 (trad_frame_unwinder): Add frame_saved_regs_pop.
709 (frame_pop): New function.
710 * dummy-frame.c (dummy_frame_pop): New function.
711 (discard_innermost_dummy): New function.
712 (generic_pop_dummy_frame): Use discard_innermost_dummy.
713 (dummy_frame_unwind): Add dummy_frame_pop.
714 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
715 * valops.c (hand_function_call): Ditto.
716 * stack.c (return_command): Ditto.
717
718 2003-01-18 Andrew Cagney <ac131313@redhat.com>
719
720 * cris-tdep.c: Fix function declaration indentation.
721 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
722 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
723 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
724 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
725 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
726 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
727
728 2003-01-18 Michael Chastain <mec@shout.net>
729
730 * README (Unpacking and Installation -- quick overview):
731 Warn against ".../gdb-5.3/gdb/configure".
732
733 2003-01-18 Andrew Cagney <ac131313@redhat.com>
734
735 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
736 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
737 (struct frame_unwind): Declare opaque.
738 (dummy_frame_p): Declare function.
739 * dummy-frame.c (dummy_frame_id_unwind): Make static.
740 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
741 * dummy-frame.c: Include "frame-unwind.h".
742 (dummy_frame_p): New function.
743 (dummy_frame_unwind): New variable.
744 * frame.c: Include "frame-unwind.h".
745 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
746 to use the new unwind field.
747 (set_unwind_by_pc): Delete function.
748 (create_new_frame, get_prev_frame): Set unwind field using
749 frame_unwind_find_by_pc.
750 (trad_frame_unwind, trad_frame_unwinder): New variables.
751 * frame.h (trad_frame_unwind): Declare variable.
752 (frame_id_unwind_ftype): Delete declaration.
753 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
754 (struct frame_unwind): Declare opaque.
755 (struct frame_info): Replace the fields id_unwind, pc_unwind and
756 register_unwind with a single unwind pointer.
757 * frame-unwind.h, frame-unwind.c: New files.
758 * Makefile.in (SFILES): Add frame-unwind.c.
759 (frame_unwind_h): Define.
760 (COMMON_OBS): Add frame-unwind.o.
761 (frame-unwind.o): Specify dependencies.
762 (frame.o, dummy-frame.o): Update dependencies.
763
764 2003-01-18 Andrew Cagney <ac131313@redhat.com>
765
766 * ada-valprint.c: Eliminate PTR.
767 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
768 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
769 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
770 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
771 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
772 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
773 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
774
775 2003-01-17 Andrew Cagney <ac131313@redhat.com>
776
777 * main.c (captured_main): Don't use PTR.
778 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
779 * gdbtypes.c (lookup_primitive_typename): Ditto.
780 (lookup_struct_elt_type): Ditto.
781 * f-valprint.c (info_common_command): Ditto.
782 (list_all_visible_commons): Ditto.
783 * jv-typeprint.c (java_type_print_base): Ditto.
784
785 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
786 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
787 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
788 i386-interix-nat.c and i386-interix-tdep.c. Rename
789 m68klinux-nat.c and m68klinux-tdep.c. Rename
790 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
791 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
792 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
793 * main.c (captured_main): Use xfree, not free.
794
795 2003-01-16 Andrew Cagney <ac131313@redhat.com>
796
797 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
798 ID back using a parameter.
799 * frame.c (frame_id_unwind): Update call.
800 (frame_saved_regs_id_unwind): Update.
801 * dummy-frame.c (dummy_frame_id_unwind): Update function.
802 * dummy-frame.h (struct frame_id): Add opaque declaration.
803 (dummy_frame_id_unwind): Update declaration.
804
805 2003-01-15 Andrew Cagney <ac131313@redhat.com>
806
807 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
808
809 2003-01-15 Stephen P. Smith <ischis2@cox.net>
810
811 * MAINTAINERS (Stephen P. Smith): Updated email address.
812
813 2003-01-14 Elena Zannoni <ezannoni@redhat.com>
814
815 Fix PR gdb/898
816 * breakpoint.c (until_break_command): Add new argument. Use it to
817 decide whether to stop only at the current frame or not.
818 * breakpoint.h (until_break_command): Update prototype.
819 * infcmd.c (until_command): Add new argument to until_break_command
820 call.
821 (advance_command): New function.
822 (_initialize_infcmd): Update help string for 'until' command.
823 Add new 'advance' command.
824
825 2003-01-14 David Carlton <carlton@math.stanford.edu>
826
827 * linespec.c (decode_line_1): Normalize comments.
828 (set_flags): Ditto.
829 (locate_first_half): Ditto.
830 (decode_compound): Ditto.
831 (symtab_from_filename): Ditto.
832 (decode_all_digits): Ditto.
833 (decode_dollar): Ditto.
834 (find_methods): Ditto.
835 (find_toplevel_char): Ditto.
836
837 2003-01-13 Andrew Cagney <ac131313@redhat.com>
838
839 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
840 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
841 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
842 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
843 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
844 * language.c, language.h, m32r-tdep.c: Update copyright.
845 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
846 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
847 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
848 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
849 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
850 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
851
852 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
853
854 * stabsread.h (process_later, resolve_cfront_continuation):
855 Obsolete.
856 Update copyright years.
857 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
858 Update copyright year.
859 * dbxread.c(struct cont_elem): Obsolete.
860 (process_later, process_now): Obsolete functions.
861 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
862 Update copyright year.
863 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
864 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
865 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
866 (parse_partial_symbols): Obsolete cfront support.
867 * stabsread.c
868 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
869 macros.
870 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
871 read_cfront_baseclasses, read_cfront_member_functions,
872 resolve_cfront_continuation,read_cfront_static_fields,
873 copy_cfront_struct_fields): Obsolete functions.
874 (define_symbol, read_one_struct_field): Obsolete cfront support.
875 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
876 Update Copyright year.
877
878 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
879
880 * stack.c (print_frame_info, print_stack_frame_base_stub,
881 print_stack_frame_base, show_and_print_stack_frame_stub,
882 show_and_print_stack_frame, print_only_stack_frame_stub,
883 print_only_stack_frame): Delete functions.
884 (print_stack_frame_stub): Call print_frame_info instead of
885 print_frame_info_base.
886 (print_frame_info_base): Rename to print_frame_info.
887 (backtrace_command_1): Call print_frame_info, instead of
888 print_frame_info_base.
889 (current_frame_command): Call print_stack_frame, instead of
890 print_only_stack_frame.
891 (frame_command): Call print_stack_frame, instead of
892 show_and_print_stack_frame.
893 (up_command): Ditto.
894 (down_command): Ditto.
895 * frame.h (print_only_stack_frame): Delete prototype.
896 * infrun.c (normal_stop): Call print_stack_frame, instead of
897 show_and_print_stack_frame.
898 * thread.c (info_threads_command): Call print_stack_frame, instead
899 of print_only_stack_frame.
900
901 2003-01-13 Andrew Cagney <ac131313@redhat.com>
902
903 * README (Graphical interface to GDB): Update URL. Point at
904 gdb/links/.
905
906 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
907 version match.
908
909 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
910
911 * symtab.c (find_pc_sect_line): Don't consider end-of-function
912 lines.
913
914 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
915
916 * thread-db.c (attach_thread): Prototype.
917 (struct private_thread_info): Remove lwpid. Add thread handle (th),
918 thread information (ti), and valid flags (th_valid, ti_valid).
919 (attach_thread): Move target_pid_to_str call to after the thread
920 is added to GDB's list. Initialize the cache.
921 (thread_get_info_callback, thread_db_map_id2thr)
922 (thread_db_get_info): New functions.
923 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
924 (thread_db_store_registers, thread_db_thread_alive)
925 (thread_db_get_thread_local_address): Use them.
926 (thread_db_pid_to_str): Likewise. Return "Missing" instead
927 of calling error() for threads in unknown state.
928
929 (clear_lwpid_callback): New function.
930 (thread_db_resume): Use it to clear the cache.
931
932 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
933
934 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
935 (resume_callback): Remove dead code.
936
937 2003-01-13 Andrew Cagney <ac131313@redhat.com>
938
939 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
940 predicate.
941 * gdbarch.h, gdbarch.c: Regenerate.
942 * stack.c (frame_info): Only initialize the saved registers when
943 FRAME_INIT_SAVED_REGS_P.
944 * frame.c (frame_saved_regs_register_unwind): Assert
945 FRAME_INIT_SAVED_REGS_P.
946 (deprecated_generic_get_saved_register): Ditto.
947
948 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
949
950 * source.c (openp): Squelch warning about "filename".
951
952 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
953
954 * source.c (openp): If the file does not exist don't necessarily
955 search the path.
956
957 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
958
959 Fix PR gdb/872.
960 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
961 (integer_types_same_name_p): New function.
962 (rank_one_type): Use it.
963 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
964
965 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
966
967 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
968 variables.
969 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
970 * configure.in: Add --with-sysroot.
971 * configure: Regenerated.
972 * main.c (gdb_sysroot): New variable.
973 (captured_main): Initialize gdb_sysroot.
974 * defs.h (gdb_sysroot): New extern declaration.
975 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
976
977 2003-01-12 Michael Chastain <mec@shout.net>
978
979 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
980
981 2003-01-12 Michael Chastain <mec@shout.net>
982
983 * top.c (print_gdb_version): Bump copyright year to 2003.
984
985 2003-01-12 David Carlton <carlton@bactrian.org>
986
987 * linespec.c (symtab_from_filename): Rename variable 's' to
988 'file_symtab'.
989
990 2003-01-12 Andrew Cagney <ac131313@redhat.com>
991
992 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
993 dummy frame.
994 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
995
996 2003-01-12 Andrew Cagney <ac131313@redhat.com>
997
998 * d10v-tdep.c: Include "gdb_assert.h".
999 (d10v_store_return_value): Rewrite to match current interface.
1000 (d10v_extract_struct_value_address): Ditto.
1001 (d10v_extract_return_value): Ditto.
1002 (d10v_gdbarch_init): Set store_restore_value,
1003 extract_struct_value_address and extract_return_value.
1004
1005 2003-01-12 J. Brobecker <brobecker@gnat.com>
1006
1007 * hpread.c (set_namestring): New procedure replacing the
1008 SET_NAMESTRING macro.
1009 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
1010 by calls to set_namestring.
1011
1012 2003-01-11 J. Brobecker <brobecker@gnat.com>
1013
1014 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
1015 a compilation warning.
1016 (hpread_process_one_debug_symbol): Likewise.
1017
1018 2003-01-10 David Carlton <carlton@math.stanford.edu>
1019
1020 * linespec.c (decode_line_1): Rename variable 's' to
1021 'file_symtab'.
1022 (decode_all_digits): Rename argument 's' to 'file_symtab'.
1023 (decode_dollar): Ditto.
1024 (decode_variable): Ditto.
1025 (symbol_found): Ditto.
1026
1027 2003-01-09 Michael Chastain <mec@shout.net>
1028
1029 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
1030
1031 2003-01-07 Corinna Vinschen <vinschen@redhat.com>
1032
1033 * win32-nat.c (set_process_privilege): New function.
1034 (child_attach): Call set_process_privilege() to enable the
1035 SE_DEBUG_NAME user privilege if available in process token.
1036
1037 2003-01-10 J. Brobecker <brobecker@gnat.com>
1038
1039 * hpread.c (hpread_process_one_debug_symbol): Fix a small
1040 compilation error in the previous revision.
1041
1042 2003-01-09 David Carlton <carlton@math.stanford.edu>
1043
1044 * linespec.c: Update copyright.
1045
1046 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
1047
1048 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
1049 than inferior_ptid.
1050 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
1051
1052 2003-01-09 Andrew Cagney <ac131313@redhat.com>
1053
1054 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
1055 Update comments.
1056 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
1057 (frame_saved_regs_zalloc): Update.
1058 (frame_saved_regs_register_unwind): Update.
1059 (create_new_frame): Update.
1060 (get_prev_frame): Update.
1061 (frame_extra_info_zalloc): Update.
1062 (deprecated_get_frame_saved_regs): Update.
1063 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
1064 * cris-tdep.c: Update comment.
1065
1066 * somsolib.h: Fix function indentation.
1067 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
1068 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
1069 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
1070 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
1071 * somsolib.c, inftarg.c: Remove assignment in if conditional.
1072
1073 * infrun.c (follow_fork): Use ISO C definition.
1074 * expprint.c (print_subexp): Use xfree instead of free.
1075 * charset.c: Include "gdb_string.h" instead of <string.h>.
1076 (register_iconv_charsets): Use ISO C definition.
1077 (host_charset, target_charset): Ditto.
1078 * Makefile.in (charset.o): Update dependencies.
1079 (mi-cmd-env.o): Update dependencies.
1080
1081 2003-01-08 Andrew Cagney <cagney@redhat.com>
1082
1083 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
1084 get_frame_base.
1085
1086 2003-01-08 Andrew Cagney <ac131313@redhat.com>
1087
1088 * gdb_mbuild.sh: Add --keep option. When specified, keep the
1089 build directories. Save edited gdb output in Mbuild.log. If a
1090 build fails, remove any final GDB executable.
1091
1092 2003-01-08 Andrew Cagney <ac131313@redhat.com>
1093
1094 * gdb_mbuild.sh: Edit the output of `maint print architecture'
1095 replacing hex constants with function names and stripping leading
1096 file name directory prefixes.
1097
1098 2003-01-08 Andrew Cagney <cagney@redhat.com>
1099
1100 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
1101 get_frame_base.
1102
1103 2003-01-08 David Carlton <carlton@math.stanford.edu>
1104
1105 * linespec.c (decode_line_1): Move code into decode_variable.
1106 (decode_variable): New function.
1107
1108 2003-01-08 Andrew Cagney <ac131313@redhat.com>
1109
1110 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
1111
1112 2003-01-08 Andrew Cagney <cagney@redhat.com>
1113
1114 * cris-tdep.c (cris_frame_init_saved_regs): Use
1115 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
1116 saved_regs buffer.
1117 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
1118 (sh64_nofp_frame_init_saved_regs): Ditto.
1119 (sh_fp_frame_init_saved_regs): Ditto.
1120 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
1121 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
1122 * mcore-tdep.c (analyze_dummy_frame): Ditto.
1123 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
1124
1125 2003-01-08 Daniel Jacobowitz <drow@mvista.com>
1126
1127 * minsyms.c (lookup_minimal_symbol): Update comment.
1128 (lookup_minimal_symbol_text): Update comment. Use the hash table.
1129 (lookup_minimal_symbol_solib_trampoline): Likewise.
1130
1131 2003-01-08 Andrew Cagney <cagney@redhat.com>
1132
1133 * d10v-tdep.c (d10v_init_extra_frame_info): Use
1134 frame_relative_level.
1135
1136 * alpha-tdep.c: Use get_frame_extra_info.
1137 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
1138 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
1139 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
1140 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
1141
1142 * alpha-tdep.c: Use get_next_frame.
1143 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
1144 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
1145 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
1146 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
1147 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
1148 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
1149 * xstormy16-tdep.c: Ditto.
1150
1151 2003-01-07 Andrew Cagney <cagney@redhat.com>
1152
1153 * alpha-tdep.c: Use get_frame_base.
1154 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
1155 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
1156 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
1157 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
1158 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
1159 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
1160 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
1161 * config/sparc/tm-sparc.h: Ditto.
1162
1163 2003-01-07 Andrew Cagney <cagney@redhat.com>
1164
1165 * frame.c (deprecated_get_frame_context): New function.
1166 (deprecated_set_frame_context): New function.
1167 * frame.h (deprecated_get_frame_context): Declare.
1168 (deprecated_set_frame_context): Declare.
1169 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
1170 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
1171
1172 2003-01-07 Andrew Cagney <cagney@redhat.com>
1173
1174 * frame.c (deprecated_set_frame_next_hack): New function.
1175 (deprecated_set_frame_prev_hack): New function.
1176 * frame.h (deprecated_set_frame_next_hack): Declare.
1177 (deprecated_set_frame_prev_hack): Declare.
1178 * mcore-tdep.c (analyze_dummy_frame): Use
1179 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
1180 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
1181
1182 2003-01-07 David Carlton <carlton@math.stanford.edu>
1183
1184 * linespec.c (decode_line_1): Move code into decode_dollar.
1185 (decode_dollar): New function.
1186
1187 2003-01-07 Andrew Cagney <cagney@redhat.com>
1188
1189 * arm-tdep.c (arm_init_extra_frame_info): Use
1190 deprecated_update_frame_base_hack.
1191 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
1192 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
1193 (fix_frame_pointer): Ditto.
1194 (mn10300_analyze_prologue): Ditto.
1195
1196 2003-01-07 Andrew Cagney <cagney@redhat.com>
1197
1198 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
1199 extra_info using frame_extra_info_zalloc.
1200 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
1201 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
1202 (sh64_init_extra_frame_info): Ditto.
1203 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
1204 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
1205 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
1206 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
1207 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
1208 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
1209 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
1210 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
1211 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
1212 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
1213 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
1214 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
1215
1216 * mn10300-tdep.c (analyze_dummy_frame): Use
1217 deprecated_set_frame_extra_info_hack.
1218 * mcore-tdep.c (analyze_dummy_frame): Ditto.
1219
1220 2003-01-07 J. Brobecker <brobecker@gnat.com>
1221
1222 * mdebugread.c (parse_symbol): Skip stProc entries which storage
1223 class is not scText. These do not define "real" procedures.
1224 (parse_partial_symbols): Likewise.
1225
1226 2003-01-06 Michael Snyder <msnyder@redhat.com>
1227
1228 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
1229
1230 2003-01-06 Andrew Cagney <ac131313@redhat.com>
1231
1232 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
1233 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
1234 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
1235 deprecated_frame_xmalloc_with_cleanup.
1236 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
1237 deprecated_frame_xmalloc.
1238 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
1239 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
1240
1241 2003-01-06 Andrew Cagney <cagney@redhat.com>
1242
1243 * x86-64-linux-tdep.c: Include "osabi.h".
1244 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
1245
1246 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
1247
1248 2003-01-06 Andrew Cagney <cagney@redhat.com>
1249
1250 * MAINTAINERS (Target Instruction Set Architectures): Update
1251 arm-elf. Can be built with -Werror, has been multiarched.
1252
1253 * value.h (unpack_long): Make buffer parameter constant.
1254 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
1255 * scm-lang.h (scm_parse): Ditto.
1256 * defs.h (extract_typed_address, extract_address): Ditto.
1257 (extract_long_unsigned_integer): Ditto.
1258 * inferior.h (unsigned_pointer_to_address): Ditto.
1259 (signed_pointer_to_address): Ditto.
1260 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
1261 * gdbarch.h, gdbarch.c: Regenerate.
1262 * findvar.c (extract_long_unsigned_integer): Update.
1263 (extract_address): Update.
1264 (extract_typed_address): Update.
1265 (unsigned_pointer_to_address): Update.
1266 * values.c (unpack_long): Update.
1267 (unpack_double): Update.
1268 (unpack_pointer): Update.
1269 (unpack_field_as_long): Update.
1270 * d10v-tdep.c (d10v_pointer_to_address): Update.
1271 * avr-tdep.c (avr_pointer_to_address): Update.
1272 * scm-lang.c (scm_unpack): Update.
1273 * findvar.c (signed_pointer_to_address): Update.
1274
1275 2003-01-06 Michal Ludvig <mludvig@suse.cz>
1276
1277 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
1278 since it is in i386-tdep.c.
1279
1280 2003-01-06 J. Brobecker <brobecker@gnat.com>
1281
1282 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
1283 failure introduced in the previous change.
1284
1285 2003-01-05 Michael Chastain <mec@shout.net>
1286
1287 * README: Remove references to deleted remote-*.c files:
1288 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
1289 remote-nrom.c, remote-os9k.c, remote-udi.c.
1290
1291 2003-01-05 Mark Kettenis <kettenis@gnu.org>
1292
1293 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
1294 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
1295 i386_get_longjmp_target.
1296
1297 2003-01-05 Andrew Cagney <ac131313@redhat.com>
1298
1299 * arm-tdep.c (prologue_cache): Change to a pointer.
1300 (_initialize_arm_tdep): Allocate prologue_cache.
1301 (check_prologue_cache): Update.
1302 (save_prologue_cache): Update.
1303 (arm_gdbarch_init): Update.
1304
1305 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
1306
1307 * stabsread.c (update_method_name_from_physname): Call complaint()
1308 instead of error.
1309
1310 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
1311
1312 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
1313 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
1314 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
1315
1316 * blockframe.c: Include "gdbcmd.h" and "command.h".
1317 (backtrace_below_main): New variable.
1318 (file_frame_chain_valid, func_frame_chain_valid)
1319 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
1320 (generic_func_frame_chain_valid): Remove functions.
1321 (frame_chain_valid, do_flush_frames_sfunc): New functions.
1322 (_initialize_blockframe): New function.
1323 * Makefile.in (blockframe.o): Update dependencies.
1324 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
1325 comment. Call frame_chain_valid ().
1326 * frame.h: Remove old prototypes. Add prototype for
1327 frame_chain_valid and update comments to match.
1328 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
1329 Remove old comment.
1330 * gdbarch.h: Regenerated.
1331 * gdbarch.c: Regenerated.
1332
1333 * alpha-tdep.c (alpha_gdbarch_init): Don't call
1334 set_gdbarch_frame_chain_valid.
1335 * avr-tdep.c (avr_gdbarch_init): Likewise.
1336 * cris-tdep.c (cris_gdbarch_init): Likewise.
1337 * frv-tdep.c (frv_gdbarch_init): Likewise.
1338 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
1339 * i386-tdep.c (i386_svr4_init_abi): Likewise.
1340 (i386_nw_init_abi): Likewise.
1341 (i386_gdbarch_init): Likewise.
1342 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
1343 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
1344 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
1345 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
1346 * mips-tdep.c (mips_gdbarch_init): Likewise.
1347 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
1348 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
1349 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
1350 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
1351 * s390-tdep.c (s390_gdbarch_init): Likewise.
1352 * sh-tdep.c (sh_gdbarch_init): Likewise.
1353 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
1354 * v850-tdep.c (v850_gdbarch_init): Likewise.
1355 * vax-tdep.c (vax_gdbarch_init): Likewise.
1356 * x86-64-tdep.c (x86_64_init_abi): Likewise.
1357
1358 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
1359 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
1360 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
1361 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
1362 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
1363 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
1364 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
1365 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
1366
1367 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
1368
1369 * Makefile.in (acconfig_h): Remove incorrect macro.
1370 (config_h): Define.
1371 (osabi.o): Update dependencies.
1372 * configure.tgt: Set gdb_osabi based on target triplet.
1373 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
1374 * configure: Regenerated.
1375 * config.in: Regenerated.
1376 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
1377 (GDB_OSABI_DEFAULT): Define if not already defined.
1378 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
1379 (set_osabi_string): New variables.
1380 (gdbarch_register_osabi): Add new OS ABI to
1381 gdb_osabi_available_names.
1382 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
1383 (set_osabi, show_osabi): New functions.
1384 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
1385
1386 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
1387
1388 * arch-utils.c (gdbarch_info_init): Set osabi to
1389 GDB_OSABI_UNINITIALIZED.
1390 * gdbarch.sh: Add osabi to struct gdbarch and to struct
1391 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
1392 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
1393 * gdbarch.c: Regenerated.
1394 * gdbarch.h: Regenerated.
1395 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
1396 there's no BFD.
1397 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
1398 * osabi.h (enum gdb_osabi): Move to defs.h.
1399 (gdbarch_init_osabi): Update prototype.
1400 * defs.h (enum gdb_osabi): Moved here.
1401 * Makefile.in: Update dependencies.
1402
1403 * alpha-tdep.h: Don't include "osabi.h".
1404 (struct gdbarch_tdep): Remove osabi member.
1405 * alpha-tdep.c: Include "osabi.h".
1406 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
1407 iterate over arches. Update call to gdbarch_init_osabi.
1408 (alpha_dump_tdep): Don't dump osabi.
1409 * alpha-linux-tdep.c: Include "osabi.h".
1410 * alpha-osf1-tdep.c: Include "osabi.h".
1411 * alphafbsd-tdep.c: Include "osabi.h".
1412 * alphanbsd-tdep.c: Include "osabi.h".
1413
1414 * arm-tdep.h: Don't include "osabi.h".
1415 (struct gdbarch_tdep): Remove osabi member.
1416 * arm-tdep.c: Include "osabi.h".
1417 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
1418 iterate over arches. Update call to gdbarch_init_osabi.
1419 (arm_dump_tdep): Don't dump osabi.
1420 * arm-linux-tdep.c: Include "osabi.h".
1421 * armnbsd-tdep.c: Include "osabi.h".
1422
1423 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
1424 Update call to gdbarch_init_osabi.
1425
1426 * i386-tdep.h: Don't include "osabi.h".
1427 (struct gdbarch_tdep): Remove osabi member.
1428 * i386-tdep.c: Include "osabi.h".
1429 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
1430 iterate over arches. Update call to gdbarch_init_osabi.
1431 (i386_dump_tdep): Don't dump osabi.
1432 * i386-linux-tdep.c: Include "osabi.h".
1433 * i386-sol2-tdep.c: Include "osabi.h".
1434 * i386bsd-tdep.c: Include "osabi.h".
1435 * i386gnu-tdep.c: Include "osabi.h".
1436 * i386ly-tdep.c: Include "osabi.h".
1437 * i386nbsd-tdep.c: Include "osabi.h".
1438 * i386obsd-tdep.c: Include "osabi.h".
1439
1440 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
1441 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
1442 check osabi when iterating over arches. Update call to
1443 gdbarch_init_osabi.
1444 (mips_dump_tdep): Don't dump osabi.
1445
1446 * ns32k-tdep.h: Don't include "osabi.h".
1447 (struct gdbarch_tdep): Remove.
1448 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
1449 gdbarch_lookup_osabi. Don't iterate over arches. Don't
1450 allocate tdep. Update call to gdbarch_init_osabi.
1451 (ns32k_dump_tdep): Remove.
1452 (_initialize_ns32k_tdep): Update call to gdbarch_register.
1453 * ns32knbsd-tdep.c: Include "osabi.h".
1454
1455 * ppc-tdep.h: Don't include "osabi.h".
1456 (struct gdbarch_tdep): Remove osabi member.
1457 * rs6000-tdep.c: Include "osabi.h".
1458 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
1459 osabi when iterating over arches. Update call to
1460 gdbarch_init_osabi.
1461 (rs6000_dump_tdep): Don't dump osabi.
1462 * ppc-linux-tdep.c: Include "osabi.h".
1463 * ppcnbsd-tdep.c: Include "osabi.h".
1464
1465 * sh-tdep.h: Don't include "osabi.h".
1466 (struct gdbarch_tdep): Remove osabi member.
1467 * sh-tdep.c: Include "osabi.h".
1468 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
1469 iterate over arches. Update call to gdbarch_init_osabi.
1470 (sh_dump_tdep): Don't dump osabi.
1471 * shnbsd-tdep.c: Include "osabi.h".
1472
1473 * sparc-tdep.c: Include "osabi.h".
1474 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
1475 iterate over arches. Update call to gdbarch_init_osabi.
1476 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
1477 tdep structure.
1478
1479 * vax-tdep.h: Don't include "osabi.h".
1480 (struct gdbarch_tdep): Remove.
1481 * vax-tdep.c: Include "osabi.h".
1482 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
1483 iterate over arches. Don't allocate tdep. Update call
1484 to gdbarch_init_osabi.
1485 (vax_dump_tdep): Remove.
1486 (_initialize_vax_tdep): Update call to gdbarch_register.
1487
1488 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
1489
1490 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
1491 entirely.
1492 (breakpoint_re_set_one): Don't fetch the value for a disabled
1493 watchpoint.
1494
1495 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
1496
1497 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
1498 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
1499 (COERCE_FLOAT_TO_DOUBLE): Remove.
1500 * gdbarch.c: Regenerate.
1501 * gdbarch.h: Regenerate.
1502 * Makefile.in: Remove value_h from gdbarch_h.
1503 * valops.c (coerce_float_to_double): New variable.
1504 (default_coerce_float_to_double): Remove.
1505 (standard_coerce_float_to_double): Remove.
1506 (value_arg_coerce): Use coerce_float_to_double.
1507 (_initialize_valops): Add "set coerce-float-to-double".
1508 * value.h (default_coerce_float_to_double): Remove prototype.
1509 (standard_coerce_float_to_double): Remove prototype.
1510
1511 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
1512 prototyped.
1513 * mdebugread.c (parse_symbol): Likewise.
1514 * stabsread.c (define_symbol): Mark all functions as prototyped.
1515
1516 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
1517 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
1518 set_gdbarch_coerce_float_to_double.
1519 * arm-tdep.c (arm_gdbarch_init): Likewise.
1520 * frv-tdep.c (frv_gdbarch_init): Likewise.
1521 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
1522 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
1523 * mips-tdep.c (mips_gdbarch_init): Likewise.
1524 (mips_coerce_float_to_double): Remove.
1525 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
1526 (rs6000_coerce_float_to_double): Remove.
1527 * s390-tdep.c (s390_gdbarch_init): Likewise.
1528 * sh-tdep.c (sh_gdbarch_init): Likewise.
1529 (sh_coerce_float_to_double): Remove.
1530 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
1531 (sparc_coerce_float_to_double): Remove.
1532 * v850-tdep.c (v850_gdbarch_init): Likewise.
1533 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
1534 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
1535 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
1536 (hppa_coerce_float_to_double): Remove prototype.
1537 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
1538
1539 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
1540
1541 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
1542
1543 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
1544
1545 Suggested by Stewart Brown <sb24@avaya.com>:
1546 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
1547 in recursive calls. Handle TYPE_CODE_TYPEDEF.
1548 (c_type_print_varspec_suffix): Likewise.
1549
1550 2003-01-04 Mark Kettenis <kettenis@gnu.org>
1551
1552 * configure.in: Don't set and AC_SUBST SUBDIRS.
1553 * configure: Regenerated.
1554
1555 * configure.in: Remove code dealing with shared libraries.
1556 * Makefile.in: Remove HLDFLAGS and HLDENV.
1557 * configure: Regenerated.
1558
1559 2003-01-04 Andrew Cagney <ac131313@redhat.com>
1560
1561 * frame.c (deprecated_frame_xmalloc): New function.
1562 (deprecated_set_frame_saved_regs_hack): New function.
1563 (deprecated_set_frame_extra_info_hack): New function.
1564 * frame.h (deprecated_frame_xmalloc): Declare.
1565 (deprecated_set_frame_saved_regs_hack): Declare.
1566 (deprecated_set_frame_extra_info_hack): Declare.
1567
1568 2003-01-04 Mark Kettenis <kettenis@gnu.org>
1569
1570 * configure.in: Move code that provides the --enable-gdbtk option
1571 right after the code that handles the --enable-tui option, and
1572 polish it somewhat.
1573 * configure: Regenerated.
1574
1575 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
1576 AC_CHECK_FUNCS and remove the old check for pread64.
1577 * acinclude.m4 (AC_GNU_SOURCE): New macro.
1578 * acconfig.h (_GNU_SOURCE): Add.
1579 (HAVE_PREAD64): Remove.
1580 * configure, aclocal.m4, config.in: Regenerated.
1581
1582 2003-01-03 Andrew Cagney <ac131313@redhat.com>
1583
1584 * alpha-tdep.c: Use get_frame_saved_regs.
1585 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
1586 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
1587 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
1588 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
1589 * vax-tdep.c, xstormy16-tdep.c: Ditto.
1590
1591 2003-01-03 Mark Kettenis <kettenis@gnu.org>
1592
1593 * configure.in: Remove all use of the SUBDIRS variable; add
1594 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
1595 code providing the --enable-multi-ice option, and move it right in
1596 front of the code that checks whether gdbserver is supported.
1597 Polish that too.
1598 * configure: Regenerated.
1599 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
1600 @SUBDIRS@.
1601
1602 2003-01-03 Andrew Cagney <cagney@redhat.com>
1603
1604 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
1605 * avr-tdep.c, cris-tdep.c: Ditto.
1606 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
1607 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
1608
1609 2003-01-03 Mark Kettenis <kettenis@gnu.org>
1610
1611 * configure.in: Remove --enable-netrom option.
1612 * configure: Regenerated.
1613
1614 2003-01-03 Mark Kettenis <kettenis@gnu.org>
1615
1616 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
1617 declaration for `struct re_pattern_buffer' instead.
1618 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
1619
1620 2003-01-03 J. Brobecker <brobecker@gnat.com>
1621
1622 * mdebugread.c (parse_symbol): Count until the stEnd matching
1623 the structure name.
1624
1625 2003-01-02 Mark Kettenis <kettenis@gnu.org>
1626
1627 * configure.in: Remove --with-cpu option.
1628 subscripts. Remove evil changequotes here.
1629 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
1630 * config.in, configure: Regenerated.
1631
1632 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
1633 * configure.in: Cleanup section that sources GDB and BFD configure
1634 subscripts. Remove evil changequotes here.
1635 * config.in, configure: Regenerated.
1636
1637 2003-01-02 Andrew Cagney <ac131313@redhat.com>
1638
1639 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
1640 frame accessor methods.
1641 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
1642 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
1643 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
1644 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
1645 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
1646 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
1647 * z8k-tdep.c: Ditto.
1648
1649 2003-01-02 Mark Kettenis <kettenis@gnu.org>
1650
1651 * configure.in: Remove UI_OUT configuration code.
1652 * ada-lang.c: Update assuming UI_OUT is always true.
1653 * Makefile.in (UIOUT_CFLAGS): Remove.
1654 * configure: Regenerated.
1655 * TODO: Remove blurb about elimination of -DUI_OUT.
1656
1657 * configure.in: Move code that provides the --enable-gdbcli,
1658 --enable-gdbmi options right before the code that handles the
1659 --enable-tui option. Polish a bit.
1660 * configure: Regenerated.
1661
1662 * configure.in: Rewrite check for GNU regex and the
1663 --without-included regex option, and move it into the "Checks for
1664 library functions" section. This makes us use the system regex
1665 again by default on systems with version 2 of the GNU C library.
1666 This was apparently broken.
1667 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
1668 * acconfig.h (USE_INCLUDED_REGEX): Remove.
1669 * config.in, configure: Regenerated.
1670
1671 * configure.in: Move code that provides the --enable-tui option
1672 before the "Checks for libraries" section. Polish the code
1673 somewhat and set need_curses to yes if we build the TUI. Rewrite
1674 code that looks for a library providing termcap functionality to
1675 match more closely what's done in the Readline library, and move
1676 it into to the "Checks for libraries" section.
1677 * configure: Regenerated.
1678 * Makefile.in (TERMCAP): Remove variable.
1679 * config/i386/go32.mh (TERMCAP): Remove variable.
1680
1681 2003-01-02 Andrew Cagney <ac131313@redhat.com>
1682
1683 * MAINTAINERS: Mention gdb_mbuild.sh.
1684 * gdb_mbuild.sh: Rewrite.
1685
1686 2003-01-02 Mark Kettenis <kettenis@gnu.org>
1687
1688 * configure.in: Fix typo in last change.
1689 * config.in, configure: Regenerated.
1690
1691 2003-01-02 Andrew Cagney <ac131313@redhat.com>
1692
1693 * valarith.c (value_binop): Delete obsolete code and comments.
1694 * configure.host: Ditto.
1695 * buildsym.h (make_blockvector): Ditto.
1696 * buildsym.c (make_blockvector): Ditto.
1697 * defs.h (enum language): Ditto.
1698 (chill_demangle): Ditto.
1699 * elfread.c (elf_symtab_read): Ditto.
1700 * dwarfread.c (CHILL_PRODUCER): Ditto.
1701 (set_cu_language): Ditto.
1702 (handle_producer): Ditto.
1703 * expprint.c (print_subexp): Ditto.
1704 * gdbtypes.c (chill_varying_type): Ditto.
1705 * gdbtypes.h (builtin_type_chill_bool): Ditto.
1706 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
1707 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
1708 (chill_varying_type): Ditto.
1709 * language.h (_LANG_chill): Ditto.
1710 * language.c (binop_result_type, integral_type): Ditto.
1711 (character_type, string_type, structured_type): Ditto.
1712 (lang_bool_type, binop_type_check): Ditto.
1713 * stabsread.h (os9k_stabs): Ditto.
1714 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
1715 (define_symbol, read_type, read_struct_fields): Ditto.
1716 (read_array_type, read_enum_type, read_huge_number): Ditto.
1717 (read_range_type, start_stabs): Ditto.
1718 * symfile.c (init_filename_language_table): Ditto.
1719 (add_psymbol_with_dem_name_to_list): Ditto.
1720 * symtab.c (symbol_init_language_specific): Ditto.
1721 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
1722 * symtab.h (struct general_symbol_info): Ditto.
1723 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
1724 * typeprint.c (typedef_print): Ditto.
1725 * utils.c (fprintf_symbol_filtered): Ditto.
1726 * valops.c (value_cast, search_struct_field, value_slice): Delete
1727 obsolete code.
1728 (varying_to_slice): Delete function.
1729 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
1730 (varying_to_slice): Delete declaration.
1731 * MAINTAINERS: Update.
1732
1733 2003-01-02 Mark Kettenis <kettenis@gnu.org>
1734
1735 * configure.in: Reorganize "Checks for library functions section"
1736 a bit. Remove check for `btowc' and `isascii' functions.
1737 * configure: Regenerated.
1738
1739 * acconfig.h (_MSE_INT_H): Remove.
1740 * configure.in: Create "Checks for header files" section, and move
1741 appropriate tests there. Don't check for objlist.h, wchar.h,
1742 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
1743 misdetection fix. Also add "Checks for types", "Checks for
1744 compiler characteristics" and "Checks for library functions"
1745 sections.
1746 * config.in, configure: Regenerated.
1747
1748 * configure.in: Create "Checks for programs" section, and move
1749 appropriate tests there.
1750
1751 2003-01-01 Mark Kettenis <kettenis@gnu.org>
1752
1753 * configure.in: Create "Checks for libraries" section, and move
1754 appropriate tests there. Cleanup check for wctype in libw. Use
1755 AC_SEARCH_LIBS to see whether we need libsocket.
1756 * configure: Regenerated.
1757
1758 For older changes see ChangeLog-2002
1759 \f
1760 Local Variables:
1761 mode: change-log
1762 left-margin: 8
1763 fill-column: 74
1764 version-control: never
1765 End: