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