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