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