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