* amd64-nat.h: Update copyright year.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2004-09-26 Mark Kettenis <kettenis@gnu.org>
2
3 * amd64-nat.h: Update copyright year.
4 (amd64bsd_target): New prototype.
5 * amd64bsd-nat.c: Include "target.h" and "inf-ptrace.h".
6 (amd64bsd_target): New function.
7 (amd64bsd_fetch_inferior_registers): Rename from
8 fetch_inferior_registers. Make static.
9 (amd64bsd_store_inferior_registers): Rename from
10 store_inferior_registers. Make static.
11 * amd64fbsd-nat.c: Include "target.h" and "fbsd-nat.h".
12 (_initialize_amd64fbsd_nat): Construct and add target vector.
13 * amd64nbsd-nat.o: Include "target.h".
14 (_initialize_amd64nbsd_nat): Construct and add target vector.
15 * amd64obsd-nat.c: Include "target.h".
16 (_initialize_amd64obsd_nat): Construct and add target vector.
17 * config/i386/nm-fbsd64.h (CHILD_PID_TO_EXEC_FILE): Remove define.
18 * config/i386/fbsd64.mh (NATDEPFILES): Remove infptrace.o,
19 inftarg.o and fbsd-proc.o. Add inf-child.o, inf-ptrace.o and
20 fbsd-nat.o.
21 * config/i386/nbsd64.mh, config/i386/obsd64.mh (NATDEPFILES):
22 Remove infptrace.o and inftarg.o. Add inf-child.o and
23 inf-ptrace.o.
24 * Makefile.in (amd64bsd-nat.o, amd64fbsd-nat.o, amd64nbsd-nat.o)
25 (amd64obsd-nat.o): Update dependencies.
26
27 2004-09-25 Mark Kettenis <kettenis@gnu.org>
28
29 * config/i386/fbsd.mh (NATDEPFILES): Remove infptrace.o.
30 * config/i386/nbsdaout.mh (NATDEPFILES): Remove infptrace.o.
31 * config/i386/nbsdelf.mh (NATDEPFILES): Remove infptrace.o.
32 * config/i386/obsd.mh (NATDEPFILES): Remove infptrace.o.
33 * config/i386/obsdaout.mh (NATDEPFILES): Remove infptrace.o.
34
35 * inf-ptrace.c (inf_ptrace_attach): Remove redundant parenthesis.
36 Inline attach call.
37 (inf_ptrace_detach): Inline detach call.
38
39 * configure.in: Check for waddstr instead of mvwaddstr when
40 searching for curses library. Check for wborder.
41 * configure, config.in: Regenerate.
42 * tui/tui-wingeneral.c (box_win): Use box if wborder isn't
43 available.
44
45 * inf-ptrace.c (inf_ptrace_xfer_memory): Fix gdb_indent.sh wart.
46
47 2004-09-24 Robert Picco <Robert.Picco@hp.com>
48
49 Committed by Andrew Cagney.
50 * remote.c (set_remote_protocol_p_packet_cmd, remote_protocol_p)
51 (show_remote_protocol_p_packet_cmd): New. Implement 'p' packet.
52 configuration.
53 (fetch_register_using_p): Implement 'p' packet. Based on code by
54 Fernando Nasser.
55 (remote_fetch_registers): Call fetch_register_using_p.
56 (init_all_packet_configs, show_remote_cmd)
57 (_initialize_remote): Add p-packet.
58
59 2004-09-24 Mark Kettenis <kettenis@gnu.org>
60
61 * inf-ptrace.c (inf_ptrace_kill_inferior): Call ptrace directly
62 instead of call_ptrace. Call wait directly instead of
63 ptrace_wait.
64 (inf_ptrace_me): Call ptrace directly instead of call_ptrace.
65 (inf_ptrace_wait): Inline ptrace_wait call.
66
67 2004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
68
69 * Makefile.in (.y.c): Revert previous change. ../ylwrap was
70 rolled back instead.
71
72 2004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
73
74 * Makefile.in (.y.c): Modify $(YLWRAP) invocation to use
75 the new argument order.
76
77 2004-09-23 Corinna Vinschen <vinschen@redhat.com>
78
79 * MAINTAINERS: Remove "broken" from XStormy16 entry.
80 * xstormy16-tdep.c: Convert XStormy16 target to latest GDB methods.
81 (struct gdbarch_tdep): Remove.
82 (struct xstormy16_frame_cache): New frame cache structure.
83 (xstormy16_register_byte, xstormy16_register_raw_size)
84 (xstormy16_reg_virtual_type, xstormy16_register_type)
85 (xstormy16_push_arguments, xstormy16_push_return_address)
86 (xstormy16_pop_frame, xstormy16_store_struct_return)
87 (xstormy16_store_return_value, xstormy16_extract_struct_value_address)
88 (xstormy16_frame_saved_register, xstormy16_get_saved_register)
89 (xstormy16_scan_prologue, xstormy16_frame_init_saved_regs)
90 (xstormy16_frame_saved_pc, xstormy16_init_extra_frame_info)
91 (xstormy16_frame_chain, xstormy16_frame_chain_valid,
92 (xstormy16_saved_pc_after_call, xstormy16_save_dummy_frame_to): Remove.
93 (xstormy16_use_struct_convention): Drop gcc_p parameter.
94 (xstormy16_extract_return_value, xstormy16_store_return_value):
95 Regcachify. Drop useless struct convention handling.
96 (xstormy16_register_type, xstormy16_return_value)
97 (xstormy16_push_dummy_call, xstormy16_analyze_prologue)
98 (xstormy16_alloc_frame_cache, xstormy16_frame_cache)
99 (xstormy16_frame_prev_register, xstormy16_frame_this_id)
100 (xstormy16_frame_base_address, xstormy16_frame_sniffer)
101 (xstormy16_unwind_sp, xstormy16_unwind_pc)
102 (xstormy16_unwind_dummy_id) : New functions.
103 (xstormy16_skip_prologue): Call xstormy16_analyze_prologue instead
104 of xstormy16_scan_prologue.
105 (xstormy16_frame_unwind): New frame_unwind structure.
106 (xstormy16_frame_base): New frame_base structure.
107 (xstormy16_gdbarch_init): Accomodate all of the above changes.
108 Reshuffle for better readability. Also add dwarf2_frame_sniffer.
109
110 2004-09-22 Mark Kettenis <kettenis@gnu.org>
111
112 * language.c (language_gdbarch_post_init): Fix off-by one error.
113
114 2004-09-21 Daniel Jacobowitz <dan@debian.org>
115
116 * dwarf2read.c (struct dwarf2_per_cu_data): New field type_hash.
117 (struct dwarf2_offset_and_type): New.
118 (set_die_type, reset_die_and_siblings_types, get_die_type)
119 (offset_and_type_hash, offset_and_type_eq): New functions.
120 (read_structure_type, read_enumeration_type, read_array_type)
121 (read_namespace, read_tag_pointer_type, read_tag_ptr_to_member_type)
122 (read_tag_reference_type, read_tag_const_type)
123 (read_tag_volatile_type, read_tag_string_type, read_subroutine_type)
124 (read_typedef, read_base_type, read_subrange_type): Use
125 set_die_type.
126
127 2004-09-20 Daniel Jacobowitz <dan@debian.org>
128
129 * Makefile.in (dwarf2read.o): Update dependencies.
130 * dwarf2read.c: Include "command.h" and "gdbcmd.h".
131 (struct dwarf2_per_objfile): Add all_comp_units, n_comp_units,
132 and read_in_chain.
133 (struct dwarf2_cu): Add read_in_chain, per_cu, last_used,
134 mark, and has_form_ref_addr.
135 (struct dwarf2_per_cu_data): New.
136 (dwarf2_max_cache_age): New.
137 (dwarf2_build_psymtabs_hard): Free cached compilation units
138 after loading. Create and manage the list of compilation units.
139 Remove unnecessary NULL initialization. Fix indentation.
140 (psymtab_to_symtab_1): Initialize all of CU.
141 (dwarf2_read_abbrevs): Set has_form_ref_addr.
142 (find_partial_die): Use dwarf2_find_containing_comp_unit
143 and load_comp_unit.
144 (free_stack_comp_unit): Update comments. Clear the per-cu
145 pointer. Handle aging.
146 (dwarf2_find_containing_comp_unit, free_cached_comp_units)
147 (age_cached_comp_units, free_one_cached_comp_unit)
148 (dwarf2_mark, dwarf2_clear_marks, create_all_comp_units)
149 (load_comp_unit, dwarf2_find_comp_unit, free_one_comp_unit)
150 (set_dwarf2_cmdlist, show_dwarf2_cmdlist, set_dwarf2_cmd)
151 (show_dwarf2_cmd): New.
152 (_initialize_dwarf2_read): Provide "maint set dwarf2 max-cache-age"
153 and "maint show dwarf2 max-cache-age".
154 * gdbcmd.h (maintenance_set_cmdlist, maintenance_show_cmdlist): New
155 externs.
156 * maint.c (maintenance_set_cmdlist, maintenance_show_cmdlist): Make
157 global.
158
159 2004-09-20 Jeff Johnston <jjohnstn@redhat.com>
160
161 * dwarf2read.c (typename_concat): Change prototype to accept obstack
162 and dwarf2_cu struct pointer as arguments. Change function to use
163 obstack if provided and use dwarf2_cu to determine language-specific
164 separator.
165 (partial_die_parent_scope): Change comment to include java. Use
166 new version of typename_concat instead of obconcat.
167 (partial_die_full_name): Use typename_concat.
168 (read_namespace): Ditto.
169 (read_enumeration_type): Use typename_concat instead of obconcat.
170 (new_symbol): Ditto.
171 (add_partial_symbol): Enhance tests for C++ to also test for Java.
172 (guess_structure_name): Ditto.
173 (read_subroutine_type): Ditto.
174 (read_structure_type): Ditto.
175 (is_vtable_name): Add Java support.
176 (determine_class_name): Switch to new typename_concat call.
177 (determine_prefix): Switch to new typename_concat call.
178 * jv-exp.y (FuncStart): New pattern.
179 (MethodInvocation): Add support for simple function calls. Change
180 warning message for other forms of inferior call currently not
181 supported.
182 * valarith.c (value_subscript): Treat an array with upper-bound
183 of -1 as unknown size.
184
185 2004-09-20 Daniel Jacobowitz <dan@debian.org>
186
187 * symtab.c (lookup_partial_symtab): Use psymtab_to_fullname.
188 (lookup_partial_symtab): Use symtab_to_fullname.
189
190 2004-09-19 Jim Blandy <jimb@redhat.com>
191
192 * minsyms.c (lookup_minimal_symbol): Doc fix.
193
194 2004-09-20 Andrew Cagney <cagney@gnu.org>
195
196 * config/nm-lynx.h (DEPRECATED_CHILD_RESUME): Deprecate
197 CHILD_RESUME.
198 * config/i386/nm-linux.h (DEPRECATED_CHILD_RESUME): Ditto.
199 * config/nm-linux.h (DEPRECATED_KILL_INFERIOR): Deprecate
200 KILL_INFERIOR.
201 * infptrace.c: Update.
202
203 2004-09-19 Daniel Jacobowitz <dan@debian.org>
204
205 * symtab.c (output_source_filename): Mark first argument as const.
206 (sources_info): Use symtab_to_fullname and psymtab_to_fullname
207 for "info sources" output.
208
209 2004-09-20 Mark Kettenis <kettenis@gnu.org>
210
211 * config/i386/nm-fbsd.h, config/i386/nm-obsd.h: Don't include
212 <machine/vmparam.h>.
213 (KERNEL_U_ADDR, REGISTER_U_ADDR): Remove defines.
214 (register_u_addr): Remove prototype.
215
216 2004-09-19 Mark Kettenis <kettenis@gnu.org>
217
218 * i386bsd-nat.c: Include "i386bsd-nat.h" and "inf-ptrace.h".
219 (i386bsd_fetch_inferior_registers): Rename from
220 fetch_inferior_registers. Make static.
221 (i386bsd_store_inferior_registers): Rename from
222 store_inferior_registers. Make static.
223 (i386bsd_target): New function.
224 * i386bsd-nat.h: New file.
225 * i386fbsd-nat.c: Include "target.h", "fbsd-nat.h" and
226 "i386bsd-nat.h".
227 (i386fbsd_resume): Rename from child_resume. Make static.
228 (_initialize_i386fbsd_nat): Construct and add target vector.
229 * i386nbsd-nat.c: Include "target.h" and "i386bsd-nat.h".
230 (_initialize_i386nbsd_nat): Construct and add target vector.
231 * config/i386/nm-fbsd.h: (CHILD_RESUME, CHILD_PID_TO_EXEC_FILE):
232 Remove defines.
233 * config/i386/fbsd.mh (NATDEPFILES): Add inf-child.o, inf-ptrace.o
234 and fbsd-nat.o. Remove inftarg.o and fbsd-proc.o.
235 * config/i386/nbsdaout.mh (NATDEPFILES): Add inf-child.o,
236 inf-ptrace.o, i386bsd-nat.o and bsd-kvm.o. Remove inftarg.o.
237 (LOADLIBES): New variable.
238 * config/i386/nbsdelf.mh (NATDEPFILES): Add inf-child.o and
239 inf-ptrace.o. Remove inftarg.o.
240 * config/i386/obsd.mh (NATDEPFILES): Add inf-child.o and
241 inf-ptrace.o. Remove inftarg.o.
242 * config/i386/obsdaout.mh (NATDEPFILES): Add inf-child.o,
243 inf-ptrace.o, i386nbsd-nat.o and bsd-kvm.o. Remove inftarg.o.
244 (LOADLIBES): New variable.
245 * Makefile.in (i386bsd_nat_h): New variable.
246 (i386bsd-nat.o, i386fbsd-nat.o, i386nbsd-nat.o): Update
247 dependencies.
248
249 * sparc64nbsd-tdep.c: Include "objfiles.h".
250 (sparc64nbsd_init_abi): Set in_solib_call_trampoline and
251 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
252 svr4_lp64_fetch_link_map_offsets.
253 * sparc64obsd-tdep.c: Include "objfiles.h". Don't include
254 "nbsd-tdep.h".
255 (sparc64obsd_init_abi): Set in_solib_call_trampoline and
256 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
257 svr4_lp64_fetch_link_map_offsets.
258 * Makefile.in (sparc64nbsd-tdep.o, sparc64obsd-tdep.o): Update
259 dependencies.
260
261 * fbsd-nat.c: New files with cleaned up contents of fbsd-proc.c.
262 * fbsd-nat.h: New file.
263 * Makefile.in (ALLDEPFILES): Add fbsd-nat.c.
264 (fbsd_nat_h): New variable.
265 (fbsd-nat.o): New dependency.
266
267 * config/sparc/nbsd64.mt, config/sparc/obsd.mt,
268 config/sparc/obsd64.mt (DEPRECATED_TM_FILE): Set to solib.h.
269
270 * inf-child.c (inf_child_post_wait): Remove stray whitespace in
271 comment.
272
273 2004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
274
275 * ada-exp.y (type_int): New function to add layer of abstraction
276 around references to expression types.
277 (type_long): Ditto.
278 (type_long_long): Ditto.
279 (type_float): Ditto.
280 (type_double): Ditto.
281 (type_long_double): Ditto.
282 (type_char): Ditto.
283 (type_system_address): Ditto.
284 (simple_exp): Use type_* functions in place of builtin_*
285 variables.
286 (exp): Ditto.
287 (write_var_from_name): Ditto.
288 (write_object_renaming): Ditto.
289 * ada-lang.c (ada_create_fundamental_type): Remove redundant
290 declaration.
291 (build_ada_types): Remove, replacing with...
292 (ada_language_arch_info): New function to initialize primitive
293 type vector in language_arch_info.
294 (ada_array_length): Remove use of builtin_type_ada_int.
295 (value_pos_atr): Ditto.
296 (ada_evaluate_subexp): Ditto.
297 (builtin_type_ada_int, builtin_type_ada_short, builtin_type_ada_long,
298 builtin_type_ada_long_long, builtin_type_ada_char,
299 builtin_type_ada_float, builtin_type_ada_double,
300 builtin_type_ada_long_double, builtin_type_ada_natural,
301 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
302 (ada_builtin_types): Remove.
303 (ada_language_defn): Remove entries for la_builtin_type_vector and
304 string_char_type and use ada_language_arch_info.
305 (_initialize_ada_language): Do type-vector initialization along
306 the lines of c-lang.c.
307 (ada_create_fundamental_type): Break up line.
308 (ada_dump_symtab): Remove unused function.
309 (enum ada_primitive_types): Define.
310 * ada-lang.h (builtin_type_ada_int, builtin_type_ada_short,
311 builtin_type_ada_long,builtin_type_ada_long_long,builtin_type_ada_char,
312 builtin_type_ada_float, builtin_type_ada_double,
313 builtin_type_ada_long_double, builtin_type_ada_natural,
314 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
315 * ada-lex.l: Use type_* functions in place of builtin_* variables.
316 (processInt): Ditto.
317 (processReal): Ditto.
318 (name_lookup): Ditto.
319 * ada-typeprint.c (print_range): Use builtin_type_int, not
320 builtin_type_ada_int.
321
322 2004-09-18 Mark Kettenis <kettenis@gnu.org>
323
324 * i386-tdep.c (i386_register_name): Rename regno to regnum.
325
326 * config/pa/hpux1020.mh (MH_CFLAGS): Remove -D__HP_CURSES.
327 * config/pa/hpux11.mh (MH_CFLAGS): Likewise.
328 * config/pa/hpux11w.mh (MH_CFLAGS): Likewise.
329 * configure.in: Improve checks for curses library by checking for
330 mvwaddstr instead of initscr. Drop HP curses in favour of
331 standard curses on HP-UX.
332 * configure: Regenerated.
333
334 2004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
335
336 * ada-lang.c: (ada_main_name, ada_value_slice_ptr, ada_value_slice,
337 ada_breakpoint_rewrite, ada_template_to_fixed_record_type_1):
338 Minor formatting changes.
339 (empty_array): Slight rewrite for formatting.
340 (emit_char,parse,ada_language_defn,build_ada_types,
341 ada_is_exception_sym, _initialize_ada_language): Move
342 definitions around.
343 (ada_dump_symtab): Remove unused definition.
344 (ada_maybe_exception_partial_symbol): Remove unused definition.
345
346 2004-09-16 Andrew Cagney <cagney@gnu.org>
347
348 * inf-child.c: Include "gdb_string.h".
349 (inf_child_core_file_to_sym_file): Delete.
350 (inf_child_target): Set to_fetch_registers and to_store_registers.
351 * inf-ptrace.c: Include "gdb_string.h".
352 * Makefile.in: Update all dependencies.
353
354 * Makefile.in (gnu-v3-abi.o): Add explict rule to avoid -Werror
355 problem.
356
357 2004-09-14 Joel Brobecker <brobecker@gnat.com>
358
359 * mips-tdep.c (mips_insn32_frame_cache): Pass frame cache in
360 call to heuristic_proc_desc. Remove code that became redundant
361 as a consequence.
362 (read_next_frame_reg): Remove special case for SP_REGNUM.
363 (set_reg_offset): Fix small typo.
364 (reset_saved_regs): New procedure.
365 (mips32_heuristic_proc_desc): No longer compute a fake
366 procedure descriptor. Compute the full frame cache instead.
367 Some minor comment reformatting.
368
369 2004-09-14 Andrew Cagney <cagney@gnu.org>
370
371 * MAINTAINERS: Add Michael Chastain as the backup gdb.threads
372 maintainer.
373
374 * thread-db.c (thread_db_new_objfile): Assume that there is a
375 child process.
376
377 2004-09-13 Jim Blandy <jimb@redhat.com>
378
379 * valops.c (value_assign): Move 'buffer' to the enclosing block,
380 so that its storage isn't referenced after its lifetime ends.
381
382 * valops.c (value_assign): 'use_buffer' is initialized to zero,
383 and never assigned to. Delete it, and the 'if (use_buffer)'
384 clauses. Delete 'raw_buffer', since it is now unused.
385
386 2004-09-13 Andrew Cagney <cagney@gnu.org>
387
388 * configure.in (frags): Replace TM_FILE with DEPRECATED_TM_FILE.
389 * configure: Re-generate.
390 * nlm/Makefile.in (TAGS): Update.
391 * Makefile.in (TAGS): Update.
392 * config/vax/nbsd.mt (TM_FILE): Update.
393 * config/sparc/vxworks.mt (TM_FILE): Update.
394 * config/sparc/sol2.mt (TM_FILE): Update.
395 * config/sparc/sol2-64.mt (TM_FILE): Update.
396 * config/sparc/obsd64.mt (TM_FILE): Update.
397 * config/sparc/obsd.mt (TM_FILE): Update.
398 * config/sparc/nbsd64.mt (TM_FILE): Update.
399 * config/sparc/nbsd.mt (TM_FILE): Update.
400 * config/sparc/linux64.mt (TM_FILE): Update.
401 * config/sparc/linux.mt (TM_FILE): Update.
402 * config/sparc/fbsd.mt (TM_FILE): Update.
403 * config/sh/wince.mt (TM_FILE): Update.
404 * config/sh/nbsd.mt (TM_FILE): Update.
405 * config/sh/linux.mt (TM_FILE): Update.
406 * config/sh/embed.mt (TM_FILE): Update.
407 * config/s390/s390.mt (TM_FILE): Update.
408 * config/rs6000/rs6000lynx.mt (TM_FILE): Update.
409 * config/rs6000/rs6000.mt (TM_FILE): Update.
410 * config/rs6000/aix4.mt (TM_FILE): Update.
411 * config/powerpc/vxworks.mt (TM_FILE): Update.
412 * config/powerpc/ppc-sim.mt (TM_FILE): Update.
413 * config/powerpc/ppc-eabi.mt (TM_FILE): Update.
414 * config/powerpc/obsd.mt (TM_FILE): Update.
415 * config/powerpc/nbsd.mt (TM_FILE): Update.
416 * config/powerpc/linux.mt (TM_FILE): Update.
417 * config/powerpc/aix.mt (TM_FILE): Update.
418 * config/pa/obsd.mt (TM_FILE): Update.
419 * config/pa/linux.mt (TM_FILE): Update.
420 * config/pa/hppahpux.mt (TM_FILE): Update.
421 * config/pa/hppa64.mt (TM_FILE): Update.
422 * config/pa/hppa.mt (TM_FILE): Update.
423 * config/ns32k/nbsdaout.mt (TM_FILE): Update.
424 * config/mips/wince.mt (TM_FILE): Update.
425 * config/mips/vxmips.mt (TM_FILE): Update.
426 * config/mips/nbsd.mt (TM_FILE): Update.
427 * config/mips/linux.mt (TM_FILE): Update.
428 * config/mips/irix6.mt (TM_FILE): Update.
429 * config/mips/irix5.mt (TM_FILE): Update.
430 * config/mips/embed.mt (TM_FILE): Update.
431 * config/m68k/vxworks68.mt (TM_FILE): Update.
432 * config/m68k/st2000.mt (TM_FILE): Update.
433 * config/m68k/os68k.mt (TM_FILE): Update.
434 * config/m68k/obsd.mt (TM_FILE): Update.
435 * config/m68k/nbsd.mt (TM_FILE): Update.
436 * config/m68k/monitor.mt (TM_FILE): Update.
437 * config/m68k/linux.mt (TM_FILE): Update.
438 * config/m68k/cisco.mt (TM_FILE): Update.
439 * config/ia64/linux.mt (TM_FILE): Update.
440 * config/ia64/aix.mt (TM_FILE): Update.
441 * config/ia64/ia64.mt (TM_FILE): Update.
442 * config/i386/vxworks.mt (TM_FILE): Update.
443 * config/i386/obsd64.mt (TM_FILE): Update.
444 * config/i386/obsd.mt (TM_FILE): Update.
445 * config/i386/nto.mt (TM_FILE): Update.
446 * config/i386/nbsd64.mt (TM_FILE): Update.
447 * config/i386/nbsd.mt (TM_FILE): Update.
448 * config/i386/linux64.mt (TM_FILE): Update.
449 * config/i386/linux.mt (TM_FILE): Update.
450 * config/i386/i386sol2.mt (TM_FILE): Update.
451 * config/i386/i386lynx.mt (TM_FILE): Update.
452 * config/i386/fbsd64.mt (TM_FILE): Update.
453 * config/i386/fbsd.mt (TM_FILE): Update.
454 * config/i386/cygwin.mt (TM_FILE): Update.
455 * config/h8300/h8300.mt (TM_FILE): Update.
456 * config/frv/frv.mt (TM_FILE): Update.
457 * config/cris/cris.mt (TM_FILE): Update.
458 * config/arm/wince.mt (TM_FILE): Update.
459 * config/arm/nbsd.mt (TM_FILE): Update.
460 * config/arm/linux.mt (TM_FILE): Update.
461 * config/arm/embed.mt (TM_FILE): Update.
462 * config/alpha/nbsd.mt (TM_FILE): Update.
463 * config/alpha/fbsd.mt (TM_FILE): Update.
464 * config/alpha/alpha.mt (TM_FILE): Update.
465 * config/alpha/alpha-osf1.mt (TM_FILE): Update.
466 * config/alpha/alpha-linux.mt (TM_FILE): Update.
467
468 Eliminate event_loop_p, always has the value 1.
469 * defs.h (event_loop_p): Delete macro.
470 * breakpoint.c (until_break_command): Simplify.
471 * utils.c (prompt_for_continue): Simplify.
472 * tracepoint.c (read_actions): Simplify.
473 * top.c (throw_exception, execute_command, gdb_readline_wrapper)
474 (gdb_rl_operate_and_get_next, command_line_input, get_prompt)
475 (set_prompt, init_main): Simplify.
476 (init_signals, disconnect): Delete, unused.
477 * remote.c (remote_async_resume)
478 (extended_remote_async_create_inferior): Simplify.
479 * mi/mi-interp.c (mi_input): Delete, unused.
480 (mi_interpreter_resume, mi_command_loop): Simplify.
481 * interps.c (current_interp_command_loop): Simplify.
482 * infrun.c (proceed): Simplify.
483 * infcmd.c (run_command, continue_command, step_1, jump_command)
484 (until_command, advance_command, finish_command)
485 (interrupt_target_command): Simplify.
486 * event-top.c (gdb_setup_readline, gdb_disable_readline): Simplify.
487
488 * config/i386/nm-i386.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
489 * config/s390/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
490 * config/pa/nm-hppah.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
491 * config/ia64/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
492 * config/frv/tm-frv.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
493 * mips-tdep.c (mips_dump_tdep): Do not print same.
494
495 2004-09-12 Andrew Cagney <cagney@gnu.org>
496
497 * valprint.c (print_longest): Use fputs_filtered. Make "val"
498 const.
499 * Makefile.in (valprint.o): Delete explict rule.
500
501 * config/m68k/nbsdelf.mh: Add missing trailing newline. Problem
502 reported by Dave Anderson.
503
504 * target.c (target_info): Delete #ifdef call to FILES_INFO_HOOK.
505
506 * inferior.h (STORE_STRUCT_RETURN): Delete macro.
507
508 2004-09-12 Salvador E. Tropea <set@users.sf.net>
509 Andrew Cagney <cagney@gnu.org>
510
511 * mi/mi-main.c (mi_cmd_data_list_changed_registers)
512 (mi_cmd_data_list_register_values)
513 (mi_cmd_data_write_register_values): Include the PSEUDO_REGS in
514 the register number computation.
515
516 2004-09-12 Andrew Cagney <cagney@gnu.org>
517
518 * ppcnbsd-nat.c: Include "inf-ptrace.h".
519 (ppcnbsd_fetch_inferior_registers): Rename fetch_inferior_registers.
520 (ppcnbsd_store_inferior_registers): Rename store_inferior_registers.
521 (_initialize_ppcnbsd_nat): Create and add a NetBSD/PPC ptrace
522 target.
523 * config/powerpc/nbsd.mh (NATDEPFILES): Replace and inftarg.o with
524 inf-ptrace.o and inf-child.o.
525 * inf-ptrace.h, inf-ptrace.c, inf-child.h, inf-child.c: New files.
526 * Makefile.in: Update dependencies.
527
528 2004-09-11 Andrew Cagney <cagney@gnu.org>
529
530 * language.c (hex_string, hex_string_custom): Move from here ...
531 * utils.c (hex_string, hex_string_custom): ... to here, rewrite.
532 (CELLSIZE): Increase to 50.
533 * language.h (hex_string, hex_string_custom): Move from here ...
534 * defs.h: ... to here.
535 * Makefile.in: Update all dependencies.
536
537 2004-09-11 Paul N. Hilfinger <hilfinger@gnat.com>
538
539 * language.c (local_hex_format_custom): Remove.
540 (local_hex_string): Rename to hex_string, use C format, and move to
541 utils.c
542 (local_hex_string_custom): Rename to hex_string_custom and change
543 interface. Now uses C format. Move to utils.c
544 (local_octal_format_custom): Remove.
545 (local_decimal_format_custom): Remove.
546 (unknown_language_defn): Remove language-specific number
547 formatting entries.
548 (auto_language_defn): Ditto.
549 (local_language_defn): Ditto.
550 * language.h (struct language_format_info): Delete declaration.
551 (struct language_defn): Remove language_format_info fields
552 la_binary_format, la_octal_format, la_decimal_format, la_hex_format.
553 (local_binary_format): Remove macro.
554 (local_binary_format_prefix): Remove macro.
555 (local_binary_format_specifier): Remove macro.
556 (local_binary_format_suffix): Remove macro.
557 (local_octal_format): Remove macro.
558 (local_octal_format_prefix): Remove macro.
559 (local_octal_format_specifier): Remove macro.
560 (local_octal_format_suffix): Remove macro.
561 (local_decimal_format): Remove macro.
562 (local_decimal_format_prefix): Remove macro.
563 (local_decimal_format_specifier): Remove macro.
564 (local_decimal_format_suffix): Remove macro.
565 (local_hex_format): Remove macro.
566 (local_hex_format_prefix): Remove macro.
567 (local_hex_format_specifier): Remove macro.
568 (local_hex_format_suffix): Remove macro.
569 (local_decimal_format_custom): Remove.
570 (local_octal_format_custom): Remove.
571 (local_hex_format_custom): Remove.
572 (local_hex_string): Rename to hex_string and move to defs.h.
573 (local_hex_string_custom): Rename to hex_string_custom, change
574 interface, and move to defs.h.
575 * utils.c: (int_string): New function.
576 (hex_string): New function (from language.c).
577 (hex_string_custom): New function (from language.c).
578 (octal2str): New function.
579 (decimal2str): Add width parameter.
580 (paddr_u): Use new decimal2str interface.
581 (paddr_d): Ditto.
582 * defs.h (hex_string): Declare.
583 (hex_string_custom): Declare.
584 (int_string): Declare.
585 * printcmd.c (print_scalar_formatted): Remove localized binary
586 formatting.
587 * valprint.c (print_longest): Use int_string.
588 (print_floating): Use C hex format.
589 (print_hex_chars): Ditto.
590 (print_binary_chars): Remove language-specific formatting.
591 (print_octal_chars): Use C octal format.
592 (print_decimal_chars): Delocalize format.
593 (print_decimal): Remove.
594 * ada-lang.c (ada_language_defn): Remove language-specific number
595 formatting entries.
596 * p-lang.c (pascal_language_defn): Ditto.
597 * c-lang.c (c_language_defn): Ditto.
598 (cplus_language_defn): Ditto.
599 (asm_language_defn): Ditto.
600 (minimal_language_defn): Ditto.
601 * f-lang.c (f_language_defn): Ditto.
602 * jv-lang.c (java_language_defn): Ditto.
603 * m2-lang.c (m2_language_defn): Ditto.
604 * scm-lang.c (scm_language_defn): Ditto.
605 * objc-lang.c (objc_language_defn): Ditto.
606 * memattr.c (mem_info_command): Use renamed hex_string_custom with
607 new interface.
608 * pa64solib.c (pa64_sharedlibrary_info_command): Ditto.
609 * ui-out.c (ui_out_field_core_addr): Ditto.
610 * breakpoint.c (breakpoint_adjustment_warning): Ditto.
611 * exec.c (print_section_info): Ditto.
612 * i387-tdep.c (print_i387_status_word): Ditto.
613 (print_i387_control_word): Ditto.
614 (i387_print_float_info): Ditto.
615 * maint.c (maint_print_section_info): Ditto.
616 * solib.c (info_sharedlibrary_command): Ditto.
617 * somsolib.c (som_sharedlibrary_info_command): Ditto.
618 * symtab.c (print_msymbol_info): Ditto.
619 * tracepoint.c (tracepoints_info): Ditto.
620 * solib-frv.c (lm_base): Ditto.
621 (frv_current_sos): Ditto.
622 (enable_break2): Ditto.
623 (enable_break): Ditto.
624 * dbxread.c (read_dbx_symtab): Use renamed hex_string.
625 (process_one_symbol): Ditto.
626 * infcmd.c (program_info): Ditto.
627 * mdebugread.c (parse_partial_symbols): Ditto.
628 * symfile.c (add_symbol_file_command): Ditto.
629 * cli/cli-cmds.c (edit_command): Ditto.
630 (list_command): Ditto.
631 * infcall.c (call_function_by_hand): Ditto.
632 * remote-vx.c (vx_run_files_info): Ditto.
633 (vx_wait): Ditto.
634 (vx_attach): Ditto.
635 (vx_detach): Ditto.
636 (vx_kill): Ditto.
637 * aix-thread.c (pdc_symbol_addrs): Ditto.
638 (pdc_read_regs): Ditto.
639 (pdc_write_regs): Ditto.
640 (pdc_read_data): Ditto.
641 (pdc_write_data): Ditto.
642 * d10v-tdep.c (display_trace): Ditto.
643 * rs6000-nat.c (find_toc_address): Ditto.
644 * aix-thread.c: Don't include language.h.
645 * buildsym.c: Ditto.
646 * dbxread.c: Ditto.
647 * mdebugread.c: Ditto.
648 * rs6000-nat.c: Ditto.
649 * buildsym.c (make_blockvector): Use renamed hex_string.
650
651 2004-09-10 Jason Molenda (jmolenda@apple.com)
652
653 * cli/cli-script.c (read_next_line): Accept zero or more whitespace
654 chars after 'if' or 'while' commands in user-defined commands.
655
656 2004-09-08 Jim Blandy <jimb@redhat.com>
657
658 Fix bug reported and analyzed by Olivier Crete:
659 * symfile.c (copy_section_addr_info): New function.
660 (symbol_file_add_with_addrs_or_offsets): Use it to save the
661 original set of address arguments, instead of handwritten code
662 that uses one length to allocate and a different length to
663 initialize. Use make_cleanup_free_section_addr_info.
664 * symfile.h (copy_section_addr_info): New declaration.
665 * utils.c: #include "symfile.h".
666 (do_free_section_addr_info, make_cleanup_free_section_addr_info):
667 New functions.
668 * defs.h (make_cleanup_free_section_addr_info): New declaration.
669 * Makefile.in (utils.o): Update dependencies.
670
671 2004-09-08 Andrew Cagney <cagney@gnu.org>
672
673 * thread-db.c (keep_thread_db): Delete.
674 (thread_db_new_objfile, thread_db_create_inferior)
675 (thread_db_mourn_inferior): Simplify assuming !keep_thread_db.
676
677 2004-09-08 Mark Kettenis <kettenis@gnu.org>
678
679 * i386-tdep.h (FPC_REGNUM, FCTRL_REGNUM, FSTAT_REGNUM, FTAG_REGNUM)
680 (FISEG_REGNUM, FIOFF_REGNUM, FOSEG_REGNUM, FOOFF_REGNUM)
681 (FOP_REGNUM, XMM0_REGNUM, MXCSR_REGNUM): Remove macros.
682 (i386_frameless_signal_p): Remove prototype.
683 * i386-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
684 (GETFPXREGS_SUPPLIES): Define using I386_ST0_REGNUM and
685 I386_SSE_NUM_REGS.
686 * i386-nto-tdep.c (i386nto_supply_gregset): Use I386_NUM_GREGS
687 instead of FP0_REGNUM.
688 (i386nto_regset_id): Use I386_NUM_GREGS and I386_NUM_FREGS instead
689 of FP0_REGNUM and FPC_REGNUM.
690
691 * solib-sunos.c (sunos_relocate_main_executable): Remove function.
692 (sunos_solib_create_inferior_hook): Don't call
693 sunos_relocate_main_executable.
694
695 * sparcnbsd-tdep.c (sparc32nbsd_elf_init_abi): Set
696 solib_svr4_fetch_link_map_offsets to
697 svr4_ilp32_fetch_link_map_offsets.
698 * sparcobsd-tdep.c: Don't include "nbsd-tdep.h".
699 (sparc32obsd_init_abi): Set solib_svr4_fetch_link_map_offsets to
700 svr4_ilp32_fetch_link_map_offsets.
701 * Makefile.in (sparcobsd-tdep.o): Update dependencies.
702
703 2004-09-07 Jim Blandy <jimb@redhat.com>
704
705 * frame.h (frame_register): Doc fix.
706
707 2004-09-07 Andrew Cagney <cagney@gnu.org>
708
709 * vx-share/wait.h: Delete #ifdef USG.
710 * utils.c (request_quit): Ditto.
711 * tui/tui.c (tui_reset): Ditto.
712 * remote.c: Ditto.
713 * remote-sds.c: Ditto.
714 * remote-rdi.c: Ditto.
715 * mdebugread.c: Ditto.
716 * m68klinux-nat.c: Ditto.
717 * infttrace.c: Ditto.
718 * infptrace.c: Ditto.
719 * i386v-nat.c: Ditto.
720 * exec.c: Ditto.
721 * dbxread.c: Ditto.
722 * core-aout.c: Ditto.
723
724 2004-09-05 Joel Brobecker <brobecker@gnat.com>
725
726 * mips-tdep.c (mips_insn16_frame_cache): Fix parameter in call to
727 heuristic_proc_desc.
728 (mips_insn32_frame_cache): Likewise.
729
730 2004-09-04 Joel Brobecker <brobecker@gnat.com>
731
732 * mips-tdep.c (mips32_heuristic_proc_desc): Remove code that was
733 left behind by error.
734
735 2004-09-04 Joel Brobecker <brobecker@gnat.com>
736
737 * config/alpha/nm-osf.h (PTRACE_ARG3_TYPE): Remove define.
738 * config/powerpc/nm-aix.h (PTRACE_ARG3_TYPE): Likewise.
739
740 2004-09-04 Joel Brobecker <brobecker@gnat.com>
741
742 * config/rs6000/xm-aix4.h: Remove this file.
743 * config/rs6000/aix4.mh (XM_FILE): Delete.
744
745 2004-09-04 Joel Brobecker <brobecker@gnat.com>
746
747 * config/rs6000/xm-rs6000.h: Remove this file.
748 * config/rs6000/rs6000.mh (XM_FILE): Remove.
749
750 2004-09-03 Andrew Cagney <cagney@gnu.org>
751
752 * mips-tdep.c (PROC_DESC_IS_DUMMY, SET_PROC_DESC_IS_DUMMY)
753 (_PROC_MAGIC_, after_prologue, mips_dump_tdep): Delete macros and
754 only use.
755
756 * mips-tdep.c (temp_saved_regs): Delete.
757 (set_reg_offset): Replace saved_regs parameter with this_cache.
758 (heuristic_proc_desc, mips16_heuristic_proc_desc)
759 (mips32_heuristic_proc_desc): Add this_cache parameter.
760 (mips_insn32_frame_cache, mips_insn16_frame_cache)
761 (after_prologue): Pass a NULL this_cache.
762
763 * mips-tdep.c (mips_mdebug_frame_cache): Delete code handling
764 non-kernel trap prologues.
765
766 * mips-tdep.c (find_proc_desc): Delete function.
767 (mips_mdebug_frame_cache): Inline call to find_proc_desc,
768 simplify.
769 (mips_insn16_frame_cache): Replace find_proc_desc with code from
770 mips_insn32_frame_cache.
771
772 * mips-tdep.c (after_prologue): Inline call to find_proc_desc.
773 Simplify as NEXT_FRAME is NULL.
774 (find_proc_desc): Simplify as NEXT_FRAME is non-NULL.
775
776 * mips-tdep.c (after_prologue): Replace proc_desc parameter with
777 local variable.
778 (mips_skip_prologue): Update.
779
780 * mips-tdep.c (find_proc_desc, heuristic_proc_desc): Delete
781 "cur_frame" parameter.
782 (after_prologue, mips_mdebug_frame_cache, mips_insn16_frame_cache):
783 (mips_insn32_frame_cache, find_proc_desc): Update
784
785 * config/vax/nm-obsd.h: Delete file.
786 * config/vax/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
787 * config/vax/nm-nbsd.h: Delete file.
788 * config/vax/nm-nbsdaout.h: Include config/nm-nbsd.h.
789 * config/vax/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
790 * config/sh/nm-nbsd.h: Delete file.
791 * config/sh/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
792 * config/rs6000/nm-rs6000ly.h: Delete file.
793 * config/djgpp/fnchange.lst: Do not rename nm-rs6000ly.h.
794 * config/rs6000/rs6000lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
795 * config/powerpc/nm-obsd.h: Delete file.
796 * config/powerpc/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
797 * config/powerpc/nm-nbsd.h: Delete file.
798 * config/powerpc/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
799 * config/pa/nm-obsd.h: Delete file.
800 * config/pa/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
801 * config/mips/nm-nbsd.h: Delete file.
802 * config/mips/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
803 * config/m88k/nm-obsd.h: Delete file.
804 * config/m88k/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
805 * config/m68k/nm-nbsd.h: Delete file.
806 * config/m68k/nm-nbsdaout.h: Include config/nm-nbsd.h.
807 * config/m68k/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
808 * config/i386/nm-nbsd.h: Delete file.
809 * config/i386/nm-nbsdaout.h: Include config/nm-nbsd.h.
810 * config/i386/obsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
811 * config/i386/nbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
812 * config/i386/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
813 * config/i386/nm-i386lynx.h: Delete file.
814 * config/i386/i386lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
815 * config/arm/nm-nbsd.h: Delete file.
816 * config/arm/nm-nbsdaout.h: Include config/nm-nbsd.h.
817 * config/arm/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
818
819 * config/i386/tm-fbsd.h: Delete file.
820 * config/i386/fbsd64.mt (TM_FILE): Set to solib.h.
821 * config/i386/fbsd.mt (TM_FILE): Set to solib.h.
822
823 * config/rs6000/tm-rs6000-aix4.h: Delete file.
824 * config/djgpp/fnchange.lst: Do not rename tm-rs6000-aix4.h.
825 * config/rs6000/aix4.mt (TM_FILE): Set to
826 config/rs6000/tm-rs6000.h.
827 * config/powerpc/tm-ppc-aix.h: Delete file.
828 * config/powerpc/aix.mt (TM_FILE): Set to
829 config/rs6000/tm-rs6000.h.
830 * config/m68k/tm-linux.h: Delete file.
831 * config/m68k/linux.mt (TM_FILE): Set to solib.h
832 * config/i386/tm-linux64.h: Delete file.
833 * config/i386/linux64.mt (TM_FILE): Set to solib.h.
834 * config/djgpp/fnchange.lst: Do not rename tm-linux.h.
835
836 * config/m68k/tm-linux.h (SVR4_SHARED_LIBS): Delete.
837 * config/i386/tm-linux64.h (SVR4_SHARED_LIBS): Delete.
838 * config/i386/nm-i386sco5.h (SVR4_SHARED_LIBS): Delete.
839 * config/tm-linux.h (SVR4_SHARED_LIBS): Delete.
840 * config/nm-sysv4.h (SVR4_SHARED_LIBS): Delete.
841 * config/nm-linux.h (SVR4_SHARED_LIBS): Delete.
842 * config/nm-gnu.h (SVR4_SHARED_LIBS): Delete.
843 * sh64-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
844 * sh-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
845
846 * configure.in (GDB_TM_FILE): Fix typo, use gdb_target_cpu and not
847 gdb_host_cpu.
848
849 2004-09-02 Joel Brobecker <brobecker@gnat.com>
850
851 * mips-tdep.c (mips_insn32_frame_cache): Remove some dead code.
852 Minor reformatting. Some code factoring.
853
854 2004-09-02 Andrew Cagney <cagney@gnu.org>
855
856 * config/vax/nbsd.mt (TM_FILE): Set to solib.h.
857 * config/vax/tm-nbsd.h: Delete file.
858 * config/sparc/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
859 * config/sparc/tm-vxworks.h: Delete file.
860 * config/sparc/nbsd.mt (TM_FILE): Set to solib.h.
861 * config/sparc/tm-nbsd.h: Delete file.
862 * config/sparc/linux64.mt (TM_FILE): Set to solib.h.
863 * config/sparc/linux.mt (TM_FILE): Set to solib.h.
864 * config/sparc/tm-linux.h: Delete file.
865 * config/s390/s390.mt (TM_FILE): Set to config/tm-linux.h
866 * config/s390/tm-linux.h: Delete file.
867 * config/pa/obsd.mt (TM_FILE): Set to solib.h.
868 * config/pa/tm-bsd.h: Delete file.
869 * config/m68k/obsd.mt (TM_FILE): Set to solib.h.
870 * config/m68k/tm-obsd.h: Delete file.
871 * config/m68k/nbsd.mt (TM_FILE): Set to solib.h.
872 * config/m68k/tm-nbsd.h: Delete file.
873 * config/i386/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
874 * config/i386/tm-vxworks.h: Delete file.
875 * config/i386/obsd64.mt (TM_FILE): Set to solib.h.
876 * config/i386/obsd.mt (TM_FILE): Set to solib.h.
877 * config/i386/nbsd64.mt (TM_FILE): Set to solib.h.
878 * config/i386/nbsd.mt (TM_FILE): Set to solib.h.
879 * config/i386/tm-nbsd.h: Delete file.
880 * config/i386/i386lynx.mt (TM_FILE): Set to config/tm-lynx.h.
881 * config/i386/tm-i386lynx.h: Delete file.
882 * config/cris/cris.mt (TM_FILE): Set to solib.h.
883 * config/cris/tm-cris.h: Delete file.
884
885 * configure.in: Let TM_FILE, XM_FILE and NAT_FILE specify a path.
886 * configure: Re-generate.
887 * config/arm/nbsd.mt (TM_FILE): Set to "solib.h".
888 * config/arm/tm-nbsd.h: Delete file.
889
890 * config/powerpc/tm-ppcle-sim.h: Delete.
891 * config/powerpc/tm-ppcle-eabi.h: Delete.
892 * config/powerpc/tm-nbsd.h: Delete.
893 * config/powerpc/nbsd.mt (TM_FILE): Set to tm-ppc-eabi.h.
894 * config/djgpp/fnchange.lst: Do not rename tm-ppcle-sim.h or
895 tm-ppcle-eabi.h.
896
897 * config/i386/nto.mh (NAT_FILE): Delete.
898 * config/i386/nm-nto.h: Delete.
899
900 * config/m68k/tm-vx68.h: Do not include "tm-m68k.h".
901 * config/m68k/tm-os68k.h: Ditto.
902 * config/m68k/tm-monitor.h: Ditto.
903 * config/m68k/tm-cisco.h: Ditto.
904 * config/m68k/st2000.mt (TM_FILE): Delete.
905 * config/m68k/tm-vx68.h (GET_LONGJMP_TARGET): Delete.
906 * config/m68k/tm-cisco.h (GET_LONGJMP_TARGET): Delete.
907 * config/m68k/tm-m68k.h (m68k_get_longjmp_target): Delete file.
908 * m68k-tdep.c (m68k_get_longjmp_target): Make static.
909
910 * config/m68k/tm-st2000.h: Delete.
911 * config/m68k/st2000.mt (TM_FILE): Set to tm-m68k.h.
912 * config/sparc/fbsd.mt (TM_FILE): Delete.
913 * config/sparc/tm-fbsd.h: Delete.
914
915 * acconfig.h (GDB_MULTI_ARCH): Delete undef.
916 * defs.h (GDB_MULTI_ARCH_PARTIAL, GDB_MULTI_ARCH_TM)
917 (GDB_MULTI_ARCH_PURE, GDB_MULTI_ARCH): Delete macros.
918
919 * gdbarch.sh: Instead of GDB_MULTI_ARCH print GDB_NM_FILE,
920 GDB_TM_FILE and GDB_XM_FILE.
921 * gdbarch.c: Re-generate.
922 * configure.in (GDB_XM_FILE, GDB_NM_FILE, GDB_TM_FILE): Include
923 quotes in macro definition.
924 * configure.in: Re-generate.
925
926 * gdbarch.sh: Delete check for GDB_MULTI_ARCH_PARTIAL when
927 validating architecture methods.
928 * gdbarch.c: Re-generate.
929
930 * gdbarch.sh: Delete check for consistency between GDB_MULTI_ARCH
931 and GDB_TM_FILE. Check for GDB_TM_FILE instead of
932 GDB_MULTI_ARCH_PARTIAL.
933 * gdbarch.h: Re-generate.
934
935 * config/sparc/tm-vxworks.h (GDB_MULTI_ARCH): Delete.
936 * config/sparc/tm-sol2.h (GDB_MULTI_ARCH): Delete.
937 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete.
938 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete.
939 * config/sparc/tm-fbsd.h (GDB_MULTI_ARCH): Delete.
940 * config/sh/tm-sh.h (GDB_MULTI_ARCH): Delete.
941 * config/rs6000/tm-rs6000.h (GDB_MULTI_ARCH): Delete.
942 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Delete.
943 * config/mips/tm-mips.h (GDB_MULTI_ARCH): Delete.
944 * config/ia64/tm-ia64.h (GDB_MULTI_ARCH): Delete.
945 * config/cris/tm-cris.h (GDB_MULTI_ARCH): Delete.
946 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Delete.
947
948 2004-09-01 Andrew Cagney <cagney@gnu.org>
949
950 * objfiles.h (struct entry_info): Delete fields main_func_lowpc
951 and main_func_highpc.
952 (INVALID_ENTRY_LOWPC, INVALID_ENTRY_HIGHPC): Delete macros.
953 * objfiles.c (init_entry_point_info, objfile_relocate): Update
954 * nlmread.c (nlm_symfile_read): Update.
955
956 2004-09-01 Joel Brobecker <brobecker@gnat.com>
957
958 * mips-tdep.c (linked_proc_desc_table): Delete, not used.
959 (mips_insn32_frame_cache): Inline call to find_proc_desc.
960 (find_proc_desc): Remove dead code.
961
962 2004-09-01 Joel Brobecker <brobecker@gnat.com>
963
964 * mips-tdep.c (mips_mdebug_frame_cache): Minor reformatting.
965
966 2004-09-01 Jeff Johnston <jjohnstn@redhat.com>
967
968 * observer.sh: Add struct so_list declaration.
969 * Makefile.in: Add dependencies on observer.h for solib.c and
970 breakpoint.c.
971 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): New
972 function.
973 (_initialize_breakpoint): Register
974 disable_breakpoints_in_unloaded_shlib as an observer of the
975 "solib unloaded" observation event.
976 (re_enable_breakpoints_in_shlibs): For bp_shlib_disabled breakpoints,
977 call decode_line_1 so unfound breakpoint errors are silent.
978 * solib.c (update_solib_list): When a solib is discovered to have
979 been unloaded by the program, notify all observers of the
980 "solib unloaded" observation event.
981
982 2004-09-01 Andrew Cagney <cagney@gnu.org>
983
984 * frame.c: Include "objfiles.h".
985 (inside_main_func): New function.
986 (get_prev_frame): Use new inside_main_func.
987 * Makefile.in (frame.o): Update dependencies.
988 * defs.h (inside_main_func): Delete declaration.
989 * blockframe.c (inside_main_func): Delete function.
990
991 2004-08-31 Jim Blandy <jimb@redhat.com>
992
993 * dwarf2read.c (is_vtable_name): New function, based on logic from
994 read_structure_type, but passing the correct length to strncmp,
995 and using 'sizeof' instead of 'strlen'.
996 (read_structure_type): Call it.
997
998 2004-08-31 Joel Brobecker <brobecker@gnat.com>
999
1000 * config/powerpc/aix.mh: Add comment.
1001
1002 2004-08-31 Paul GIlliam <pgilliam@us.ibm.com>
1003
1004 * MAINTAINERS: Add self to Write-After-Approval.
1005
1006 2004-08-30 Manoj Iyer <manjo@austin.ibm.com>
1007
1008 * MAINTAINERS: Add self to Write-After-Approval.
1009
1010 2004-08-30 Andrew Cagney <cagney@gnu.org>
1011
1012 Fix PR breakpoints/1757.
1013 * infrun.c (struct execution_control_state): Replace
1014 remove_breakpoints_on_following_step with
1015 step_after_step_resume_breakpoint.
1016 (init_execution_control_state): Update.
1017 (handle_inferior_event): For signals, when stepping off a
1018 breakpoint, set step_after_step_resume_breakpoint. When
1019 BPSTAT_WHAT_STEP_RESUME, do a single-step off the breakpoint.
1020 (keep_going): Delete code handling
1021 remove_breakpoints_on_following_step.
1022
1023 2004-08-29 David Lecomber <david@streamline-computing.com>
1024
1025 Fix PR gdb/648
1026 * language.h (enum array_ordering): New enum.
1027 * language.h (struct language_defn): New la_array_ordering
1028 attribute.
1029 * language.c (unknown_language_defn, auto_language_defn)
1030 (local_language_defn): Ditto.
1031 * ada-lang.c (ada_language_defn): Ditto.
1032 * c-lang.c (c_language_defn, cplus_language_defn)
1033 (asm_language_defn, minimal_language_defn): Ditto.
1034 * f-lang.c (f_language_defn): Ditto.
1035 * jv-lang.c (java_language_defn): Ditto.
1036 * m2-lang.c (f_language_defn): Ditto.
1037 * objc-lang.c (objc_language_defn): Ditto.
1038 * p-lang.c (pascal_language_defn): Ditto.
1039 * scm-lang.c (scm_language_defn): Ditto.
1040 * eval.c (evaluate_subexp_standard): Assume Fortran arrays are
1041 oriented large to small in type structure.
1042 * dwarf2read.c (read_array_order): New function.
1043 (read_array_type): Use read_array_order to check row/column
1044 major ordering.
1045
1046 2004-08-27 Nathan J. Williams <nathanw@wasabisystems.com>
1047
1048 * target.c (target_resize_to_sections): Check
1049 current_target.to_sections for an old value when updating.
1050
1051 2004-08-27 Joel Brobecker <brobecker@gnat.com>
1052
1053 * procfs.c (dbx_link_bpt_addr): New static global variable.
1054 (dbx_link_shadow_contents): New static global variable.
1055 (procfs_wait, case <PR_SYSEXIT>): Handle syssgi events.
1056 (procfs_wait, case <FLTBPT>): Remove the __dbx_link brekapoint
1057 if we just hit it.
1058 (procfs_init_inferior): Enable syssgi() syscall trace if appropriate.
1059 Reset dbx_link_bpt_addr as the address of __dbx_link() may change
1060 from run to run.
1061 (procfs_create_inferior): Remove syssgi syscall-exit notifications
1062 after the inferior has been forked.
1063 (remove_dbx_link_breakpoint): New function.
1064 (dbx_link_addr): New function.
1065 (insert_dbx_link_bpt_in_file): New function.
1066 (insert_dbx_link_bpt_in_region): New function.
1067 (insert_dbx_link_breakpoint): New function.
1068 (proc_trace_syscalls_1): New function, extracted from
1069 proc_trace_syscalls.
1070 (proc_trace_syscalls): Replace extract code by call to
1071 proc_trace_syscalls_1.
1072 * solib-irix.c (disable_break): Remove stop_pc assertion, as it
1073 is no longer valid.
1074
1075 2004-08-25 Jim Blandy <jimb@redhat.com>
1076
1077 * gdbtypes.h (TYPE_CODE_ARRAY): Doc fix.
1078
1079 2004-08-25 Andrew Cagney <cagney@gnu.org>
1080
1081 * infrun.c (struct execution_control_state): Delete field
1082 "stepping_through_sigtramp".
1083 (init_execution_control_state): Do not set same.
1084 (context_switch): Do not pass same to save_infrun_state and
1085 load_infrun_state.
1086 * gdbthread.h (struct thread_info): Delete field
1087 stepping_through_sigtramp.
1088 (save_infrun_state, load_infrun_state): Delete parameter
1089 stepping_through_sigtramp.
1090 * thread.c (load_infrun_state, save_infrun_state): Update.
1091
1092 * infrun.c: Re-indent. Move expression operators to the beginning
1093 of the line. Remove long disabled #if 0 code.
1094
1095 2004-08-24 Andrew Cagney <cagney@gnu.org>
1096
1097 * doublest.h (floatformat_ieee_quad): Rename
1098 floatformat_ia64_quad.
1099 * doublest.c (floatformat_ieee_quad): Rename
1100 floatformat_ia64_quad.
1101 (_initialize_doublest): Update.
1102
1103 2004-08-24 Jim Blandy <jimb@redhat.com>
1104
1105 * dwarf2expr.h (struct dwarf_expr_context): New members
1106 'num_pieces' and 'pieces', for returning the result of an
1107 expression that uses DW_OP_piece.
1108 (struct dwarf_expr_piece): New struct type.
1109 * dwarf2expr.c (new_dwarf_expr_context): Initialize num_pieces and
1110 pieces.
1111 (free_dwarf_expr_context): Free pieces, if any.
1112 (add_piece): New function.
1113 (execute_stack_op): Implement DW_OP_piece.
1114 * dwarf2loc.c (dwarf2_evaluate_loc_desc): If the result of the
1115 expression is a list of pieces, print an error message.
1116 (dwarf2_loc_desc_needs_frame): If the expression yields
1117 pieces, and any piece is in a register, then we need a frame.
1118
1119 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Wait to fetch the top of
1120 the stack until we've decided what sort of result the evaluation
1121 has produced. Use separate variables, with more specific names.
1122
1123 2004-08-23 Richard Earnshaw <rearnsha@arm.com>
1124
1125 * armnbsd-tdep.c (arm_nbsd_arm_be_breakpoint): Define.
1126 (arm_nbsd_thumb_[lb]e_breakpoint): Define.
1127 (arm_netbsd_init_abi_common): Register them.
1128
1129 2004-08-22 Mark Kettenis <kettenis@gnu.org>
1130
1131 * config/vax/vax.mh (NATDEPFILES): Add vax-nat.c.
1132
1133 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Use
1134 safe_frame_unwind_memory instead of target_read_memory.
1135
1136 * infptrace.c: Remove #ifdef'ed out inclusion of gdb_stat.h.
1137 Reorder includes.
1138 (fetch_register, store_register): Remove prototypes.
1139 (child_resume): Reorganize code and comments such that it is
1140 grouped a bit more logically.
1141 (attach): Explicitly compare errno against 0.
1142 (detach): Likewise. Use perror_with_name instead of
1143 print_sys_errmsg.
1144 * Makefile.in (infptrace.o): Update dependencies.
1145
1146 * ia64-linux-nat.c: Update copyright year.
1147 (fetch_debug_register, store_debug_register)
1148 (ia64_linux_stopped_by_watchpoint): Replace PTRACE_ARG3_TYPE with
1149 PTRACE_TYPE_ARG3.
1150 * config/ia64/nm-linux.h: Update copyright year.
1151 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove defines.
1152
1153 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Change argument
1154 from CORE_ADDR to struct frame_info *. Use
1155 safe_frame_unwind_memory instead of deprecated_read_memory_nobpt.
1156 (amd64_linux_sigtramp_p): Adjust for changed signature of
1157 and64_linux_sigtramp_start
1158
1159 * gdb_ptrace.h: GNU/Linux.
1160
1161 * config/alpha/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
1162 Remove defines.
1163
1164 * infptrace.c: Include "gdb_assert.h".
1165 (PTRACE_XFER_TYPE): Remove define.
1166 (offsetof): Only define if U_REGS_OFFSET isn't defined.
1167 (fetch_register, store_register): Rewrite to use PTRACE_TYPE_RET.
1168 Tweak comment.
1169 (fetch_inferior_registers, store_inferior_registers): Remove
1170 redundant culry braces. Tweak comment. s/regno/regnum.
1171 * Makefile.in (infptrace.o): Update dependencies.
1172
1173 * configure.in: Change test for return type of ptrace to default
1174 to `long' instead of `int'.
1175 * configure: Regenerate.
1176
1177 2004-08-21 Mark Kettenis <kettenis@gnu.org>
1178
1179 * config/alpha/alpha-linux.mh (LOADLIBES): New variable.
1180
1181 * configure.in: Check for ttrace function.
1182 * configure, config.in: Regenerate.
1183
1184 * gdb_ptrace.h: New file.
1185 * infptrace.c: Include "gdb_ptrace.h" instead of <ptrace.h> or
1186 <sys/ptrace.h>.
1187 (PT_READ_I, PT_READ_D, PT_READ_U, PT_WRITE_I, PT_WRITE_D)
1188 (PT_WRITE_U, PT_CONTINUE, PT_STEP, PT_KILL): Remove defines.
1189 (attach): Don't define PT_ATTACH.
1190 (detach): Don't define PT_DETACH.
1191 * Makefile.in (gdb_ptrace_h): New variable.
1192 (infptrace.o): Update dependencies.
1193
1194 2004-08-16 Mark Kettenis <kettenis@gnu.org>
1195
1196 * inferior.h (PTRACE_ARG3_TYPE): Define as PTRACE_TYPE_ARG3
1197 instead of `int' if not already defined.
1198 (call_ptrace): Revert change that replaced PTRACE_ARG3_TYPE with
1199 PTRACE_TYPE_ARG3.
1200 * infptrace.c (call_ptrace): Revert change that replaced
1201 PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1202
1203 2004-08-15 Mark Kettenis <kettenis@gnu.org>
1204
1205 * config/i386/nm-linux64.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
1206 Remove defines.
1207
1208 * linux-nat.c (kill_inferior): Add missing third and fourth
1209 arguments to ptrace call. Don't use PTRACE_ARG3_TYPE.
1210
1211 * infptrace.c (child_xfer_memory): Replace PTRACE_XFER_TYPE with
1212 PTRACE_TYPE_RET.
1213
1214 * proc-why.c (proc_prettyfprint_why): Fix format string.
1215
1216 * solib-osf.c (osf_current_sos): Remove unsused label.
1217
1218 * configure.in: Add <ncurses/ncurses.h> to the list of possible
1219 curses headers.
1220 * configure, config.in: Regenerate.
1221 * gdb_curses.h [HAVE_NCURSES_NCURSES_H]: Include
1222 <ncurses/ncurses.h>.
1223
1224 * config/nm-bsd.h (PTRACE_ARG3_TYPE): Remove define.
1225 * config/nm-nbsd.h: Update copyright year.
1226 (PTRACE_ARG3_TYPE): Remove define.
1227
1228 * sparc-nat.c (fetch_inferior_registers)
1229 (store_inferior_registers, sparc_xfer_wcookie):
1230 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1231
1232 * alphabsd-nat.c (fetch_inferior_registers):
1233 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1234 PTRACE_TYPE_ARG3.
1235 * amd64bsd-nat.c (fetch_inferior_registers)
1236 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1237 PTRACE_TYPE_ARG3.
1238 * armnbsd-nat.c: Update copyright year.
1239 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs)
1240 (store_register, store_regs, store_fp_register, store_fp_regs):
1241 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1242 * hppabsd-nat.c (fetch_inferior_registers)
1243 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1244 PTRACE_TYPE_ARG3.
1245 * i386bsd-nat.c (fetch_inferior_registers)
1246 (store_inferior_registers, i386bsd_dr_set, i386bsd_dr_get_status):
1247 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1248 * m68kbsd-nat.c (fetch_inferior_registers)
1249 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1250 PTRACE_TYPE_ARG3.
1251 * m88kbsd-nat.c (fetch_inferior_registers)
1252 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1253 PTRACE_TYPE_ARG3.
1254 * mipsnbsd-nat.c: Update copyright year.
1255 (fetch_inferior_registers, store_inferior_registers):
1256 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1257 * ns32knbsd-nat.c: Update copyright year.
1258 (fetch_inferior_registers, store_inferior_registers):
1259 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1260 * ppcnbsd-nat.c (fetch_inferior_registers):
1261 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1262 PTRACE_TYPE_ARG3.
1263 * ppcobsd-nat.c (fetch_inferior_registers):
1264 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1265 PTRACE_TYPE_ARG3.
1266 * shnbsd-nat.c: Update copyright year.
1267 (fetch_inferior_registers, store_inferior_registers):
1268 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1269 * vaxbsd-nat.c (fetch_inferior_registers)
1270 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1271 PTRACE_TYPE_ARG3.
1272
1273 * inferior.h (call_ptrace): Replace PTRACE_ARG3_TYPE with
1274 PTRACE_TYPE_ARG3.
1275 * infptrace.c (call_ptrace, child_resume, attach, detach)
1276 (U_REGS_OFFSET, fetch_register, store_register, child_xfer_memory)
1277 (udot_info): Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1278 * inftarg.c (ptrace_me): Replace PTRACE_ARG3_TYPE with
1279 PTRACE_TYPE_ARG3.
1280
1281 2004-08-14 Mark Kettenis <kettenis@gnu.org>
1282
1283 * defs.h: Remove out-of-date comment.
1284 [!FCLOSE_PROVIDED] (fclose): Remove prototype.
1285 [!GETENV_PROVIDED] (getenv): Remove prototype.
1286
1287 * standalone.c: Remove file.
1288 * Makefile.in (standalone.o): Remove dependency.
1289
1290 * i386-linux-nat.c (dummy_sse_values): Remove function and
1291 prototype.
1292 (i386_linux_dr_get): Fix typo in comment.
1293 (LINUX_SYSCALL_REGNUM): Define as I386_EAX_REGNUM.
1294
1295 * config/i386/obsd64.mt (TDEPFILES): Add i386obsd-tdep.o.
1296
1297 * defs.h (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
1298 from declaration.
1299 * top.c (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
1300 from definition.
1301
1302 2004-08-13 Mark Kettenis <kettenis@gnu.org>
1303
1304 * configure.in (PTRACE_TYPE_ARG3, PTRACE_TYPE_ARG5): Don't use
1305 parenthesis in definition.
1306 * configure: Regenerated.
1307
1308 2004-08-12 Michael Chastain <mec.gnu@mindspring.com>
1309
1310 * PROBLEMS: Mention build/1411.
1311
1312 2004-08-09 Robert Millan <robertmh@gnu.org>
1313
1314 Committed by Nathanael Nerode.
1315 * configure.host: Match kfreebsd*-gnu and knetbsd*-gnu.
1316 * configure.tgt: Match kfreebsd*-gnu and knetbsd*-gnu.
1317
1318 2004-08-12 Andrew Cagney <cagney@gnu.org>
1319
1320 * NEWS: Mention fixes in GDB 6.2.1.
1321 * PROBLEMS: Remove mention of mips-irix.
1322
1323 2004-08-11 Joel Brobecker <brobecker@gnat.com>
1324
1325 * config/powerpc/xm-aix.h: Delete.
1326 * config/powerpc/aix.mh (MH_FILE): Remove.
1327 * config/powerpc/aix432.mh (MH_FILE): Remove.
1328
1329 2004-08-11 Joel Brobecker <brobecker@gnat.com>
1330
1331 * config/powerpc/aix.mh: Remove obsolete comment.
1332 * config/powerpc/aix432.mh: Likewise.
1333
1334 2004-08-11 Joel Brobecker <brobecker@gnat.com>
1335
1336 * config/powerpc/xm-aix.h (UINT_MAX): Remove undef.
1337
1338 2004-08-11 Joel Brobecker <brobecker@gnat.com>
1339
1340 * config/rs6000/xm-aix4.h: Remove "config/xm-aix4.h" include,
1341 this file is now empty.
1342 * config/xm-aix4.h: Remove, this file is no longer included
1343 anywhere.
1344
1345 2004-08-11 Joel Brobecker <brobecker@gnat.com>
1346
1347 * config/powerpc/xm-aix.h: Remove "config/xm-aix4.h" include,
1348 that file is now empty.
1349 (termdef): Remove prototype, function no longer used.
1350
1351 2004-08-11 Joel Brobecker <brobecker@gnat.com>
1352
1353 * doc/gdbint.texinfo (Host Definition): Remove documentation
1354 for USE_O_NOCTTY, no longer used.
1355 * config/xm-aix4.h (USE_O_NOCTTY): Remove, no longer used.
1356 * config/rs6000/xm-rs6000.h (USE_O_NOCTTY): Likewise.
1357
1358 2004-08-11 Joel Brobecker <brobecker@gnat.com>
1359
1360 * config/xm-aix4.h (FIVE_ARG_PTRACE): Remove, no longer used.
1361 * config/pa/nm-hppah.h (FIVE_ARG_PTRACE): Likewise.
1362 * config/rs6000/xm-rs6000.h (FIVE_ARG_PTRACE): Likewise.
1363
1364 2004-08-11 Mark Kettenis <kettenis@gnu.org>
1365
1366 * infptrace.c (call_ptrace): Select code based on PTRACE_TYPE_ARG5
1367 instead of FIVE_ARG_PTRACE.
1368
1369 * inflow.c (O_NOCTTY): Define to zero if not already defined.
1370 (new_tty): Use O_NOCTTY unconditionally.
1371
1372 2004-08-10 Mark Kettenis <kettenis@gnu.org>
1373
1374 * procfs.c (procfs_detach): Cleanup. Print process ID, not LWP
1375 ID. Use comma in output. Use gdb_flush on gdb_stdout instead of
1376 fflush on stdout.
1377
1378 2004-08-10 Joel Brobecker <brobecker@gnat.com>
1379
1380 * xcoff_symfile_finish: Replace last call to xmfree by call
1381 to xfree.
1382
1383 2004-08-10 Andrew Cagney <cagney@gnu.org>
1384
1385 * main.c (captured_main): Delete call to init_malloc.
1386 * defs.h (init_malloc): Delete declaration.
1387 * utils.c (mmalloc, mrealloc, mcalloc, mfree)
1388 (init_malloc): Delete functions.
1389
1390 * defs.h (xmfree): Delete.
1391 * utils.c (xmfree): Delete function.
1392 (xfree): Inline calls to xmfree and mfree.
1393 * symmisc.c (free_symtab_block, free_symtab): Use xfree.
1394 * symfile.c (reread_symbols, init_psymbol_list): Ditto.
1395 * source.c (forget_cached_source_info, find_and_open_source): Ditto.
1396 * somread.c (som_symfile_finish): Ditto.
1397 * objfiles.c (allocate_objfile, free_objfile):
1398 * nlmread.c (nlm_symfile_finish): Ditto.
1399 * hpread.c (hpread_symfile_finish): Ditto.
1400 * elfread.c (free_elfinfo, elf_symfile_finish): Ditto.
1401 * dbxread.c (dbx_symfile_finish, free_bincl_list): Ditto.
1402 * coffread.c (coff_symfile_finish): Ditto.
1403
1404 * defs.h (xmcalloc): Delete declaration.
1405 * utils.c (xmcalloc): Delete.
1406 (xcalloc): Inline calls to xmcalloc and mcalloc.
1407 * ada-lang.c (_initialize_ada_language): Use htab_create_alloc,
1408 xcalloc and xfree.
1409 * symtab.c (create_demangled_names_hash): Ditto.
1410
1411 * defs.h (xmrealloc): Delete.
1412 * utils.c (xmrealloc): Delete.
1413 (xrealloc): Inline calls to xmrealloc, mmalloc and mrealloc.
1414 * symmisc.c (extend_psymbol_list): Use xrealloc.
1415 * source.c (find_source_lines): Ditto.
1416 * hpread.c (hpread_lookup_type): Ditto.
1417 * dbxread.c (add_bincl_to_list): Ditto.
1418
1419 * utils.c (xmmalloc): Delete.
1420 (xmalloc): Inline xmmalloc and mmalloc calls.
1421 (msavestring): Use xmalloc.
1422 * defs.h (xmmalloc): Delete declaration.
1423 * xcoffread.c (xcoff_symfile_init): Use xmalloc instead of
1424 xmmalloc.
1425 * symmisc.c (extend_psymbol_list): Ditto.
1426 * symfile.c (init_psymbol_list): Ditto.
1427 * source.c (find_source_lines): Ditto.
1428 * hpread.c (hpread_symfile_init, hpread_lookup_type): Ditto.
1429 * elfread.c (elf_symtab_read): Ditto.
1430 * dbxread.c (dbx_symfile_init, init_bincl_list): Ditto.
1431 * coffread.c (coff_symfile_init): Ditto.
1432
1433 2004-08-10 David Carlton <carlton@bactrian.org>
1434
1435 * MAINTAINERS: Remove David Carlton from c++ testsuite
1436 maintainers.
1437
1438 2004-08-10 Jerome Guitton <guitton@gnat.com>
1439
1440 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure to
1441 print a line feed before the prompt.
1442
1443 2004-08-10 Mark Kettenis <kettenis@gnu.org>
1444
1445 * procfs.c (procfs_pid_to_str): Use "%ld" to print LWP.
1446
1447 2004-08-09 Joel Brobecker <brobecker@gnat.com>
1448
1449 General cleanup of the AIX xm include file:
1450 * config/xm-aix4.h (fd_set): Remove undefine.
1451 Remove include of <sys/select.h>.
1452 (HAVE_TERMIO): Remove define.
1453 (USG): Likewise.
1454 (NULL): Remove redefine.
1455 (alloca): Remove #pragma.
1456 (vfork): Remove define.
1457 (termdef): Remove.
1458 (SIGWINCH_HANDLER): Remove.
1459 (SIGWINCH_HANDLER_BODY): Remove.
1460
1461 2004-08-09 Mark Kettenis <kettenis@gnu.org>
1462
1463 * configure.tgt (x86_64-*-openbsd*): Set gdb_osabi to
1464 GDB_OSABI_OPENBSD_ELF.
1465
1466 2004-08-07 Robert Millan <robertmh@gnu.org>
1467
1468 * bsd-kvm.c: Check for nlist.h before including it.
1469
1470 2004-08-09 Mark Kettenis <kettenis@gnu.org>
1471
1472 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove `struct
1473 sigcontext' offset consistency checks for ancient BSD.
1474
1475 * gdb_curses.h [HAVE_CURSESX_H]: Include <cursesX.h>
1476
1477 * configure.in: Check for <sys/types.h>. Check return and
1478 argument types of ptrace.
1479 * configure, config.in: Regenerate.
1480
1481 2004-08-09 Jim Blandy <jimb@redhat.com>
1482
1483 * rs6000-tdep.c (set_sim_regno, init_sim_regno_table,
1484 rs6000_register_sim_regno): Doc fixes.
1485
1486 2004-08-08 Joel Brobecker <brobecker@gnat.com>
1487
1488 * mips-tdep.c: Include "floatformat.h".
1489 (n32n64_floatformat_always_valid): New function.
1490 (floatformat_n32n64_long_double_big): New constant.
1491 (mips_gdbarch_init): Set size and format of long double
1492 for N32 and N64 ABIs.
1493 * Makefile.in (mips-tdep.o): Update dependencies.
1494
1495 2004-08-08 Andrew Cagney <cagney@gnu.org>
1496
1497 * gdbarch.sh: Delete "fmt" and "attrib" fields. Always use %s to
1498 print. Improve script's error messages.
1499 * gdbarch.h: Re-generate.
1500
1501 * gdbarch.sh (pformat): New function.
1502 (float_format, double_format, long_double_format): List with bit
1503 members. Use pformat when printing.
1504 * gdbarch.c, gdbarch.h: Re-generate.
1505
1506 2004-08-08 Nathan J. Williams <nathanw@wasabisystems.com>
1507
1508 * ppcnbsd-nat.c: Include <machine/frame.h>, <machine/pcb.h>,
1509 "gdbcore.h", "regcache.h", and "bsd-kvm.h".
1510 (ppcnbsd_supply_pcb): New function.
1511 (_initialize_ppcnbsd_nat): New prototype and function.
1512 * config/powerpc/nbsd.mh (NATDEPFILES): Add bsd-kvm.o.
1513 (LOADLIBES): New variable.
1514 * Makefile.in (ppcnbsd-nat.o): Update dependencies.
1515
1516 2004-08-08 Andrew Cagney <cagney@gnu.org>
1517
1518 * gdbtypes.c (builtin_type_arm_ext, builtin_type_ieee_single)
1519 (builtin_type_ieee_double, builtin_type_ia64_quad)
1520 (builtin_type_ia64_spill, _initialize_gdbtypes): Add tables of
1521 BE/LE floating-point types.
1522 * gdbtypes.h (builtin_type_arm_ext, builtin_type_ieee_single)
1523 (builtin_type_ieee_double, builtin_type_ia64_quad)
1524 (builtin_type_ia64_spill): Declare.
1525 * doublest.c (_initialize_doublest, floatformat_ieee_single)
1526 (floatformat_ieee_double, floatformat_arm_ext)
1527 (floatformat_ia64_spill, floatformat_ia64_quad): Add tables
1528 of LE/BE floatformats.
1529 * doublest.h: (struct floatformat, floatformat_ieee_single)
1530 (floatformat_ieee_double, floatformat_arm_ext)
1531 (floatformat_ia64_spill, floatformat_ia64_quad): Declare.
1532
1533 2004-08-08 Mark Kettenis <kettenis@gnu.org>
1534
1535 * i386gnu-nat.c (gnu_store_registers): Fix typo.
1536
1537 * i386gnu-nat.c (gnu_store_registers): Use regcache_raw_collect
1538 instead of regcache_raw_supply when storing the registers.
1539
1540 * i386gnu-nat.c: Update copyright year.
1541 (gnu_store_registers): Don't use deprecated_registers and
1542 deprecated_registers_valid. Use regcache_valid_p and
1543 regcache_raw_supply instead.
1544
1545 * vax-tdep.c (vax_frame_this_id): Use frame_func_unwind instead of
1546 frame_pc_unwind.
1547
1548 * procfs.c (procfs_pid_to_str): Remove redundant and unused
1549 variables. Incapitalized "process".
1550
1551 * configure.in: Add cursesX to the list of possible curses libs.
1552 Add cursesX.h to the list of possible curses headers.
1553 * configure, config.in: Regenerate.
1554
1555 2004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
1556
1557 * configure.in: Test for struct lwp in <sys/lwp.h>.
1558 * bsd-kvm.c (bsd_kvm_proc_cmd): If HAVE_STRUCT_LWP is defined, use
1559 the offset of l_addr in struct lwp.
1560
1561 2004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
1562
1563 * bsd-kvm.c: Include "gdbcore.h"
1564 (bsd_kvm_open): Use get_exec_file() to set 'execfile'.
1565
1566 2004-08-07 Andrew Cagney <cagney@gnu.org>
1567
1568 * gdbtypes.c (build_flt, build_complex): New functions.
1569 (gdbtypes_post_init): Use.
1570
1571 * doublest.c (floatformat_from_length): Fix tipo, "*" not "&".
1572
1573 * gdbtypes.c (_initialize_gdbtypes): Do not swap builtin_type_int8
1574 through to builtin_type_uint128.
1575
1576 * c-exp.y: Use builtin_type function to obtain builtin types.
1577
1578 * gdbtypes.h (struct builtin_type): Delete builtin_int0 through to
1579 builtin_uint128.
1580 * gdbtypes.c (gdbtypes_post_init): Update.
1581 (build_gdbtypes): Move initialization of builtin_type_int0
1582 through to builtin_type_uint128 from here ...
1583 (_initialize_gdbtypes): ... to here.
1584 * d10v-tdep.c (d10v_register_type): Update.
1585
1586 * doublest.c: Update copyright.
1587 (floatformat_from_length): Call error when floatformat is NULL.
1588 (extract_floating_by_length): Remove NULL fmt check.
1589 (store_floating_by_length): Ditto.
1590
1591 2004-08-07 Andrew Cagney <cagney@gnu.org>
1592
1593 * regcache.c (regcache_raw_read): For the moment, #ifdef assert
1594 that the register is valid.
1595
1596 2004-08-05 Mark Kettenis <kettenis@chello.nl>
1597
1598 * i386-linux-tdep.c (i386_linux_sigtramp_start)
1599 (i386_linux_rt_sigtramp_start): Change argument from CORE_ADDR to
1600 struct frame_info *. Use safe_frame_unwind_memory instead of
1601 deprecated_read_memory_nobpt.
1602 (i386_linux_sigtramp_p, i386_linux_sigcontext_addr): Adjust for
1603 changed signature of i386_linux_sigtramp_start and
1604 i386_linux_rt_sigtramp_start.
1605
1606 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Change argument from
1607 CORE_ADDR to struct frame_info *. Use safe_frame_unwind_memory
1608 instead of deprecated_read_memory_nobpt.
1609 (i386nbsd_sigtramp_p): Adjust for changed signature of
1610 i386nbsd_sigtramp_offset.
1611
1612 * i386obsd-tdep.c (i386obsd_sigtramp_p): Use
1613 safe_frame_unwind_memory instead of target_read_memory.
1614
1615 * infptrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
1616 !NO_SYS_FILE.
1617 [KERNEL_U_ADDR_BSD]: Don't include <a.out.h>.
1618 [KERNEL_U_ADDR_BSD] (kernel_u_addr): Remove variable.
1619 (_initialize_kernel_u_addr): Remove prototype and function.
1620 * infttrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
1621 !NO_SYS_FILE.
1622 * xcoffread.c: Likewise.
1623
1624 2004-08-06 Mark Kettenis <kettenis@gnu.org>
1625
1626 * vax-nat.c: New file.
1627 * vaxbsd-nat.c: Tweak comment.
1628 * Makefile.in (ALLDEPFILES): Add vax-nat.c, vaxbsd-nat.c and
1629 vaxnbsd-tdep.c.
1630 (vax-nat.o): New dependency.
1631 * configure.host (vax-*-bsd*, vax-*-ultrix*): Set gdb_host to vax.
1632 (vax-*-ultrix2*): Remove.
1633 * config/vax/vax.mh: New file.
1634 * config/vax/nm-vax.h (vax_kernel_u_addr): New extern declaration.
1635 (KERNEL_U_ADDR): Define as vax_kernel_u_addr.
1636 (vax_register_u_addr): New prototype.
1637 (REGISTER_U_ADDR): Define using vax_register_u_addr.
1638 * config/vax/vaxult2.mh: Remove file.
1639 * config/vax/vaxult.mh: Remove file.
1640 * config/vax/vaxbsd.mh: Remove file.
1641 * config/vax/vax.mt (TM_FILE): Remove.
1642 * config/vax/tm-vaxbsd.h: Remove file.
1643
1644 2004-08-06 Joel Brobecker <brobecker@gnat.com>
1645
1646 * aix-thread.c (get_signaled_thread): New function.
1647 (iter_trap): Delete, no longer used.
1648 (iter_tid): New function.
1649 (pd_update): Find the thread that received the SIGTRAP signal
1650 by first locating the kernel thread, and then finding its
1651 associated thread.
1652
1653 2004-08-06 Ulrich Weigand <uweigand@de.ibm.com>
1654
1655 * lin-lwp.c (child_wait): Continue inferior after processing
1656 PTRACE_EVENT_CLONE event.
1657
1658 2004-08-05 Nathanael Nerode <neroden@gcc.gnu.org>
1659
1660 * MAINTAINERS: Add self to Write-After-Approval.
1661
1662 2004-08-05 Jeff Johnston <jjohnstn@redhat.com>
1663
1664 * libunwind-frame.c (LIBUNWIND_SO): Change to be of form:
1665 libunwind-xxxx.so" where xxxx is UNW_TARGET.
1666
1667 2004-08-05 Andrew Cagney <cagney@gnu.org>
1668
1669 * config/xm-sysv4.h: Delete file.
1670 * config/mips/xm-irix5.h: Delete file.
1671 * config/mips/irix6.mh (XM_FILE, XM_CLIBS): Delete.
1672 * config/mips/irix5.mh (XM_FILE, XM_CLIBS): Delete.
1673 * config/ia64/xm-aix.h: Delete file.
1674 * config/ia64/aix.mh (XM_FILE): Delete.
1675 * config/pa/xm-hppah.h: Delete file.
1676 * config/pa/hpux11w.mh (XM_FILE): Delete.
1677 * config/pa/hpux11.mh (XM_FILE): Delete.
1678 * config/pa/hpux1020.mh (XM_FILE): Delete.
1679 * config/pa/hppahpux.mh (XM_FILE): Delete.
1680
1681 * config/alpha/xm-alphalinux.h: Delete file.
1682 * config/djgpp/fnchange.lst: Do not fix xm-alphalinux.h.
1683 * config/alpha/alpha-linux.mh (XM_FILE, LOADLIBES): Delete.
1684 * config/alpha/xm-alphaosf.h: Delete file.
1685 * config/djgpp/fnchange.lst: Do not fix xm-alphaosf.h.
1686 * config/alpha/alpha-osf3.mh (XM_FILE): Delete.
1687 * config/alpha/alpha-osf2.mh (XM_FILE): Delete.
1688 * config/alpha/alpha-osf1.mh (XM_FILE): Delete.
1689
1690 * config/i386/xm-i386v.h: Delete file.
1691 * config/i386/i386v.mh (XM_FILE, XM_CLIBS): Delete.
1692 * config/i386/i386sco5.mh (XM_FILE, XM_CLIBS): Delete.
1693 * config/i386/xm-i386sco.h: Delete file.
1694 * config/i386/i386sco4.mh (XM_FILE, XM_CLIBS, MH_CFLAGS): Delete.
1695 * config/i386/i386sco.mh (XM_FILE, XM_CLIBS, CC): Delete.
1696 * config/i386/xm-i386v4.h: Delete file.
1697 * config/djgpp/fnchange.lst: Do not fix xm-i386v4.h.
1698 * config/i386/ncr3000.mh (CC, CFLAGS, XM_FILE): Delete.
1699 * config/i386/i386v42mp.mh (XM_FILE, XM_CLIBS): Delete.
1700 * config/i386/i386v4.mh (XM_FILE, XM_CLIBS): Delete.
1701
1702 * config/vax/xm-vax.h: Delete file.
1703 * Makefile.in (xm-vaxult.h, xm-vaxbsd.h): Delete.
1704 * config/vax/xm-vaxult2.h: Delete file.
1705 * config/djgpp/fnchange.lst: Do not fix xm-vaxult2.h.
1706 * config/vax/vaxult2.mh (XM_FILE): Delete.
1707 * config/vax/xm-vaxult.h: Delete file.
1708 * config/vax/vaxult.mh (XM_FILE): Delete.
1709 * config/vax/xm-vaxbsd.h: Delete file.
1710 * config/vax/vaxbsd.mh (XM_FILE): Delete.
1711
1712 * gdbarch.sh (deprecated_frame_saved_pc): Delete.
1713 * gdbarch.h, gdbarch.c: Re-generate.
1714 * regcache.c (deprecated_read_fp, deprecated_write_sp): Delete.
1715 * inferior.h (deprecated_read_fp, deprecated_write_sp): Delete.
1716 * frame.h: Delete deprecated_read_fp from comments.
1717 * arch-utils.c (deprecated_init_frame_pc_default): Delete.
1718 * arch-utils.h (deprecated_init_frame_pc_default): Delete.
1719
1720 2004-08-04 Mark Kettenis <kettenis@gnu.org>
1721
1722 * i386obsd-tdep.c (i386obsd_sigtramp_p): Adjust for changed signal
1723 trampoline in OpenBSD 3.5-current.
1724
1725 * i387-tdep.c (i387_supply_fsave): Provide summy values for the
1726 SSE registers.
1727
1728 * Makefile.in: Remove embedded page breaks.
1729
1730 2004-08-04 Jim Blandy <jimb@redhat.com>
1731
1732 * regcache.c (regcache_raw_read): Assert that, after calling
1733 target_fetch_registers, the register we're reading is cached.
1734
1735 * ppc-linux-nat.c (fetch_register): Replace 'gdb_assert (0)' with
1736 a call to 'internal_error', with a more helpful error message.
1737 * rs6000-tdep.c (e500_pseudo_register_read,
1738 e500_pseudo_register_write, rs6000_store_return_value): Same.
1739
1740 2004-08-04 Andrew Cagney <cagney@gnu.org>
1741
1742 * Makefile.in: Update dependencies.
1743
1744 2004-08-04 Jim Blandy <jimb@redhat.com>
1745
1746 Change the layout of the PowerPC E500 raw register cache to allow
1747 the lower 32-bit halves of the GPRS to be their own raw registers,
1748 not pseudoregisters.
1749 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_gprs_pseudo_p flag;
1750 add ppc_ev0_upper_regnum flag.
1751 * rs6000-tdep.c: #include "reggroups.h".
1752 (spe_register_p): Recognize the ev upper half registers as SPE
1753 registers.
1754 (init_sim_regno_table): Build gdb->sim mappings for the upper-half
1755 registers.
1756 (e500_move_ev_register): New function.
1757 (e500_pseudo_register_read, e500_pseudo_register_write): The 'ev'
1758 vector registers are the pseudo-registers now, formed by splicing
1759 together the gprs and the upper-half registers.
1760 (e500_register_reggroup_p): New function.
1761 (P): Macro deleted.
1762 (P8, A4): New macro.
1763 (PPC_EV_REGS, PPC_GPRS_PSEUDO_REGS): Macros deleted.
1764 (PPC_SPE_GP_REGS, PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): New
1765 macros.
1766 (registers_e500): Rearrange register set so that the raw register
1767 set contains 32-bit GPRs and upper-half registers, and the SPE
1768 vector registers become pseudo-registers.
1769 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gprs_pseudo_p;
1770 it has been deleted. Initialize ppc_ev0_upper_regnum. Many other
1771 register numbers are now the same for the E500 as they are for
1772 other PowerPC variants. Register e500_register_reggroup_p as the
1773 register group function for the E500.
1774 * Makefile.in (rs6000-tdep.o): Update dependencies.
1775
1776 Adapt PPC E500 native support to the new raw regcache layout.
1777 * ppc-linux-nat.c (struct gdb_evrregset_t): Doc fixes.
1778 (read_spliced_spe_reg, write_spliced_spe_reg): Deleted.
1779 (fetch_spe_register, store_spe_register): Handle fetching/storing
1780 all the SPE registers at once, if regno == -1. These now take
1781 over the job of fetch_spe_registers and store_spe_registers.
1782 (fetch_spe_registers, store_spe_registers): Deleted.
1783 (fetch_ppc_registers, store_ppc_registers): Fetch/store gprs
1784 unconditionally; they're always raw. Fetch/store SPE upper half
1785 registers, if present, instead of ev registers.
1786 (fetch_register, store_register): Remove sanity checks: gprs are
1787 never pseudo-registers now, so we never need to even mention any
1788 registers that are ever pseudoregisters.
1789
1790 Use a fixed register numbering when communicating with the PowerPC
1791 simulator.
1792 * ppc-tdep.h (struct gdbarch_tdep): New member: 'sim_regno'.
1793 * rs6000-tdep.c: #include "sim-regno.h" and "gdb/sim-ppc.h".
1794 (set_sim_regno, init_sim_regno_table, rs6000_register_sim_regno):
1795 New functions.
1796 (rs6000_gdbarch_init): Register rs6000_register_sim_regno. Call
1797 init_sim_regno_table.
1798 * Makefile.in (gdb_sim_ppc_h): New variable.
1799 (rs6000-tdep.o): Update dependencies.
1800
1801 2004-08-02 Andrew Cagney <cagney@gnu.org>
1802
1803 * cris-tdep.c (cris_register_size): Restore function, still used
1804 locally.
1805
1806 * gdbarch.sh (deprecated_target_read_fp)
1807 (deprecated_frame_locals_address, deprecated_frame_args_address)
1808 (deprecated_frame_chain_valid, deprecated_frame_chain)
1809 (deprecated_init_extra_frame_info, deprecated_pop_frame)
1810 (deprecated_frame_init_saved_regs, deprecated_get_saved_register)
1811 (deprecated_do_registers_info, deprecated_init_frame_pc): Delete.
1812 * gdbarch.h, gdbarch.c: Re-generate.
1813 * regcache.c (deprecated_read_fp): Do not call
1814 DEPRECATED_TARGET_READ_FP_P.
1815 * infcmd.c (default_print_registers_info): Do not call
1816 DEPRECATED_DO_REGISTERS_INFO.
1817 * frame-base.c (default_frame_locals_address): Do not call
1818 DEPRECATED_FRAME_LOCALS_ADDRESS.
1819 (default_frame_args_address): Do not call
1820 DEPRECATED_FRAME_ARGS_ADDRESS.
1821
1822 * gdbarch.sh (deprecated_register_raw_size)
1823 (deprecated_register_virtual_size:int): Delete.
1824 * gdbarch.h, gdbarch.c: Re-generate.
1825 * cris-tdep.c (cris_register_size): Delete.
1826 (cris_gdbarch_init): Update.
1827 * alpha-tdep.c (alpha_register_raw_size)
1828 (alpha_register_virtual_size): Delete.
1829 (alpha_gdbarch_init): Update.
1830
1831 * gdbarch.sh (deprecated_register_virtual_type)
1832 (deprecated_save_dummy_frame_tos, deprecated_push_return_address)
1833 (deprecated_dummy_write_sp): Delete.
1834 * gdbarch.h, gdbarch.c: Re-generate.
1835
1836 * gdbarch.sh (deprecated_register_bytes): Delete.
1837 * gdbarch.h, gdbarch.c: Re-generate.
1838 * regcache.c (deprecated_register_bytes): New function.
1839 * regcache.h (deprecated_register_bytes): Declare.
1840 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1841 * v850-tdep.c (v850_gdbarch_init): Update.
1842 * sh64-tdep.c (sh64_gdbarch_init): Update.
1843 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
1844 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1845 * mcore-tdep.c (mcore_gdbarch_init): Update.
1846 * cris-tdep.c (cris_gdbarch_init): Update.
1847 * arm-tdep.c (arm_gdbarch_init): Update.
1848 * remote.c (init_remote_state): Update.
1849 * remote-vx.c (vx_prepare_to_store): Update.
1850 * remote-sds.c (sds_fetch_registers, sds_prepare_to_store): Update.
1851 * irix5-nat.c (fetch_core_registers): Update.
1852 * cris-tdep.c (cris_register_bytes_ok): Update.
1853 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
1854
1855 * mips-tdep.c (mips_gdbarch_init, mips_insn16_frame_cache)
1856 (mips_insn16_frame_this_id, mips_insn16_frame_prev_register)
1857 (mips_insn16_frame_unwind, mips_insn16_frame_sniffer)
1858 (mips_insn16_frame_base_address, mips_insn16_frame_base)
1859 (mips_insn16_frame_base_sniffer, mips_insn32_frame_cache)
1860 (mips_insn32_frame_this_id, mips_insn32_frame_prev_register)
1861 (mips_insn32_frame_unwind, mips_insn32_frame_sniffer)
1862 (mips_insn32_frame_base_address, mips_insn32_frame_base)
1863 (mips_insn32_frame_base_sniffer): Replace mips16 / mips32 prefix
1864 with mips_insn16 and mips_insn32.
1865
1866 Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
1867 * rs6000-tdep.c (rs6000_push_dummy_call)
1868 (rs6000_extract_return_value): Use register_size.
1869 * xstormy16-tdep.c (xstormy16_get_saved_register)
1870 (xstormy16_extract_return_value): Ditto.
1871 * valops.c (value_assign): Ditto.
1872 * v850ice.c (v850ice_fetch_registers, v850ice_store_registers):
1873 * v850-tdep.c (v850_extract_return_value): Ditto.
1874 * tracepoint.c (collect_symbol): Ditto.
1875 * target.c (debug_print_register): Ditto.
1876 * stack.c (frame_info): Ditto.
1877 * rs6000-nat.c (ARCH64, fetch_register, store_register): Ditto.
1878 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
1879 * remote.c (struct packet_reg, remote_wait, remote_async_wait)
1880 (store_register_using_P): Ditto.
1881 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
1882 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Ditto.
1883 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
1884 * remote-e7000.c (fetch_regs_from_dump, sub2_from_pc): Ditto.
1885 * regcache.c (deprecated_read_register_bytes)
1886 (deprecated_write_register_bytes, read_register)
1887 (write_register): Ditto.
1888 * ppc-linux-nat.c (fetch_altivec_register, fetch_register)
1889 (supply_vrregset, store_altivec_register, fill_vrregset): Ditto.
1890 * monitor.c (monitor_supply_register, monitor_fetch_register)
1891 (monitor_store_register): Ditto.
1892 * mn10300-tdep.c (mn10300_pop_frame_regular)
1893 (mn10300_print_register): Ditto.
1894 * mipsv4-nat.c (fill_fpregset): Ditto.
1895 * mips-linux-tdep.c (supply_32bit_reg, fill_fpregset)
1896 (mips64_fill_fpregset): Ditto.
1897 * mi/mi-main.c (register_changed_p, get_register)
1898 (mi_cmd_data_write_register_values): Ditto.
1899 * lynx-nat.c (fetch_inferior_registers, store_inferior_registers):
1900 * irix5-nat.c (fill_gregset, fetch_core_registers):
1901 * infrun.c (write_inferior_status_register): Ditto.
1902 * infptrace.c (fetch_register, store_register): Ditto.
1903 * infcmd.c (default_print_registers_info): Ditto.
1904 * ia64-linux-nat.c (COPY_REG, fill_fpregset): Ditto.
1905 * ia64-aix-nat.c (COPY_REG, fill_gregset): Ditto.
1906 * i386gnu-nat.c (gnu_store_registers, fill): Ditto.
1907 * hpux-thread.c (hpux_thread_fetch_registers)
1908 (hpux_thread_store_registers): Ditto.
1909 * hppah-nat.c (store_inferior_registers, fetch_register):
1910 * findvar.c (value_from_register): Ditto.
1911 * dve3900-rom.c (fetch_bitmapped_register):
1912 * cris-tdep.c (cris_gdbarch_init): Ditto.
1913 * alpha-tdep.h: Ditto.
1914 * aix-thread.c (pd_enable, fill_sprs64, fill_sprs32): Ditto.
1915
1916 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_SIZE and
1917 DEPRECATED_REGISTER_RAW_SIZE from comments.
1918 * regcache.c (init_regcache_descr, regcache_dump): Do not check or
1919 use DEPRECATED_REGISTER_VIRTUAL_SIZE and
1920 DEPRECATED_REGISTER_RAW_SIZE.
1921 * findvar.c (value_of_register): Simplify by assuming that the
1922 registers raw and virtual sizes are identical.
1923 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_TYPE in
1924 comment.
1925 * arch-utils.c (generic_register_size): Simplify by assuming
1926 register_type.
1927
1928 * regcache.c (legacy_read_register_gen, real_register)
1929 (legacy_write_register_gen): Delete, not used.
1930
1931 * regcache.c (struct regcache_descr): Delete legacy_p.
1932 (init_legacy_regcache_descr): Delete function.
1933 (init_regcache_descr): Delete call to init_legacy_regcache_descr.
1934 Do not use deprecated register functions.
1935 (regcache_raw_read, deprecated_write_register_gen):
1936 (deprecated_read_register_gen, regcache_raw_write): Delete code
1937 predicated on legacy_p.
1938 (register_size): Delete check against register raw size.
1939
1940 * cris-tdep.c (cris_register_type): Replace
1941 cris_register_virtual_type.
1942 (cris_gdbarch_init): Update, set register_type.
1943
1944 * gdbarch.sh (deprecated_frameless_function_invocation): Delete.
1945 * gdbarch.h, gdbarch.c: Re-generate.
1946 * arm-tdep.c (arm_frameless_function_invocation): Delete.
1947 (arm_gdbarch_init) Do not set frameless function invocation.
1948 * frame.h (legacy_frameless_look_for_prologue): Delete declaration.
1949 * blockframe.c (legacy_frameless_look_for_prologue): Delete function.
1950 * frv-tdep.c (frv_frameless_function_invocation): Delete.
1951 (frv_gdbarch_init): Do not set frameless function invocation.
1952 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
1953 * sh-tdep.c (sh_gdbarch_init): Ditto.
1954 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
1955 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1956 * avr-tdep.c (avr_gdbarch_init): Ditto.
1957
1958 * blockframe.c (legacy_frame_chain_valid): Delete function.
1959
1960 * dummy-frame.c (struct dummy_frame): Delete call_lo, call_hi, top
1961 and pc. Update comments.
1962 (pc_in_dummy_frame): Delete function.
1963 (deprecated_pc_in_call_dummy): Inline old pc_in_dummy_frame code,
1964 use the "id".
1965 (dummy_frame_push, dummy_frame_sniffer): Instead of call_lo,
1966 call_hi, top and pc, use the id.
1967 (fprint_dummy_frames): Do not print call_lo, call_hi, top and pc.
1968
1969 * dummy-frame.c: Include "gdb_string.h".
1970 (generic_save_call_dummy_addr, generic_push_dummy_frame)
1971 (generic_save_dummy_frame_tos): Delete.
1972 (dummy_frame_push): New function, replaces above.
1973 * dummy-frame.h: Update copyright.
1974 (dummy_frame_push): Declare.
1975 * frame.h (generic_save_dummy_frame_tos, generic_push_dummy_frame)
1976 (generic_save_call_dummy_addr): Delete declarations.
1977 * infcall.c: Include "dummy-frame.h".
1978 (call_function_by_hand): Add locals caller_regcache,
1979 caller_regcache_cleanup and dummy_id. Replace push_dummy_frame
1980 with call to frame_save_as_regcache plus cleanup. Delete calls to
1981 generic_save_call_dummy_addr and generic_save_dummy_frame_tos.
1982 Move clear_proceed_status to just before the resume, add call to
1983 dummy_frame_push (discard cleanup).
1984 * Makefile.in (infcall.o): Add $(dummy_frame_h).
1985 (dummy-frame.o): Add $(gdb_string_h).
1986
1987 2004-08-01 Andrew Cagney <cagney@gnu.org>
1988
1989 * dummy-frame.h (dummy_frame_unwind): Replace dummy_frame_sniffer.
1990 * frame-unwind.c (frame_unwind_init): Use dummy_frame_unwind.
1991 * dummy-frame.c (find_dummy_frame): Delete.
1992 (struct dummy_frame_cache, dummy_frame_sniffer)
1993 (dummy_frame_prev_register, dummy_frame_this_id)
1994 (dummy_frame_unwinder, dummy_frame_unwind): Re-implement dummy
1995 frame unwinder using a dummy_frame_cache.
1996
1997 2004-08-01 Andrew Cagney <cagney@gnu.org>
1998
1999 * frame.h (frame_save_as_regcache): Declare.
2000 * frame.c (frame_save_as_regcache): New function.
2001 (do_frame_read_register): Replace do_frame_unwind_register.
2002 (frame_pop): Use frame_save_as_regcache.
2003 * dummy-frame.c (generic_push_dummy_frame): Use
2004 frame_save_as_regcache.
2005
2006 2004-08-01 Joel Brobecker <brobecker@gnat.com>
2007
2008 * dwarf2read.c (dwarf_decode_lines): Do not consider the current
2009 file as included until we record the first line in the linetable.
2010
2011 2004-08-01 Andrew Cagney <cagney@gnu.org>
2012
2013 * frame.h (deprecated_pop_dummy_frame)
2014 (deprecated_read_register_dummy)
2015 (deprecated_generic_find_dummy_frame): Delete.
2016 * dummy-frame.c (deprecated_generic_find_dummy_frame)
2017 (deprecated_read_register_dummy)
2018 (deprecated_find_dummy_frame_regcache)
2019 (discard_innermost_dummy)
2020 (deprecated_pop_dummy_frame): Delete.
2021 (dummy_frame_this_id): Simplify.
2022 (struct dummy_frame): Delete "fp" and "sp".
2023 (find_dummy_frame): Simplify.
2024 (generic_push_dummy_frame): Do not set "fp" or "sp".
2025 (fprint_dummy_frames): Do not print "fp" and "sp"
2026
2027 2004-08-01 Mark Kettenis <kettenis@gnu.org>
2028
2029 * i386-tdep.c (I386_MAX_INSN_LEN): New define.
2030 (struct i386_insn): New structure.
2031 (i386_match_insn): New function.
2032 (i386_frame_setup_skip_insns): New variable.
2033 (i386_analyze_frame_setup): Change to use i386_match_insn and the
2034 array i386_frame_setup_insns of instructions that should be
2035 skipped inside the frame setup sequence.
2036
2037 2004-08-01 Andrew Cagney <cagney@gnu.org>
2038
2039 * frame.h (deprecated_frame_xmalloc_with_cleanup)
2040 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
2041 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
2042 * stack.c (frame_info): Delete references to
2043 DEPRECATED_FRAME_INIT_SAVED_REGS and
2044 deprecated_get_frame_saved_regs.
2045 * frame.c (struct frame_info): Delete saved_regs and extra_info.
2046 (frame_pc_unwind): Do not use DEPRECATED_FRAME_SAVED_PC.
2047 (frame_register): Do not use DEPRECATED_GET_SAVED_REGISTER.
2048 (frame_unwind_register_signed)
2049 (frame_unwind_register_unsigned)
2050 (frame_unwind_unsigned_register): Use register_size.
2051 (create_new_frame): Do not use DEPRECATED_INIT_EXTRA_FRAME_INFO.
2052 (deprecated_frame_xmalloc_with_cleanup)
2053 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
2054 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
2055
2056 * sh-tdep.c (sh_gdbarch_init): Disable call to sh64_gdbarch_init.
2057 * config/sh/nbsd.mt (TDEPFILES): Remove sh64-tdep.o.
2058 * config/sh/linux.mt (TDEPFILES): Remove sh64-tdep.o.
2059 * config/sh/embed.mt (TDEPFILES): Remove sh64-tdep.o.
2060
2061 * infcall.c (call_function_by_hand): Do not use
2062 DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP,
2063 DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_TARGET_READ_FP,
2064 DEPRECATED_FP_REGNUM, DEPRECATED_STORE_STRUCT_RETURN, and
2065 DEPRECATED_STACK_ALIGN.
2066
2067 2004-07-30 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
2068
2069 Committed by Andrew Cagney.
2070 * arm-tdep.c: Remove references to add_setshow_cmd_full for apcs32 .
2071
2072 2004-08-01 Andrew Cagney <cagney@gnu.org>
2073
2074 * mips-tdep.c (mips16_frame_cache)
2075 (mips16_frame_this_id, mips16_frame_prev_register)
2076 (mips16_frame_unwind, mips16_frame_sniffer)
2077 (mips16_frame_base_address, mips16_frame_base)
2078 (mips16_frame_base_sniffer, mips32_frame_cache)
2079 (mips32_frame_this_id, mips32_frame_prev_register)
2080 (mips32_frame_unwind, mips32_frame_sniffer)
2081 (mips32_frame_base_address, mips32_frame_base)
2082 (mips32_frame_base_sniffer): Clone the mdebug unwinder into
2083 separate heuristic mips16 and mips32 unwinders.
2084 (mips_stub_frame_cache, mips_stub_frame_this_id)
2085 (mips_stub_frame_prev_register)
2086 (mips_stub_frame_unwind, mips_stub_frame_sniffer)
2087 (mips_stub_frame_base_address, mips_stub_frame_base)
2088 (mips_stub_frame_base_sniffer): Add a simple stub unwinder.
2089 (mips_mdebug_frame_base_sniffer, mips_mdebug_frame_sniffer): Only
2090 match true mdebug frames.
2091 (non_heuristic_proc_desc): Add forward declaration.
2092
2093 2004-08-01 Andrew Cagney <cagney@gnu.org>
2094
2095 * config/mips/tm-irix6.h: Delete file.
2096 * config/mips/tm-irix5.h: Delete file.
2097 * config/mips/irix5.mt (TM_FILE): Set to tm-mips.h
2098 * config/mips/irix6.mt (TM_FILE): Set to tm-mips.h
2099
2100 * config/ia64/tm-linux.h (IA64_GNULINUX_TARGET): Delete.
2101 * config/alpha/nm-osf2.h (PROCFS_SIGPEND_OFFSET): Delete.
2102 * config/nm-gnu.h (NO_CORE_OPS): Delete.
2103 * config/pa/nm-hppah.h (MAY_SWITCH_FROM_INFERIOR_PID): Delete.
2104 * config/i386/nm-i386v4.h (LOSING_POLL): Delete.
2105 * config/alpha/nm-osf2.h (LOSING_POLL): Delete.
2106 * config/tm-nto.h (RAW_SIGNAL_LO, RAW_SIGNAL_HI): Delete.
2107 * config/m68k/tm-vx68.h (VX_SIZE_FPREGS): Delete.
2108 * config/nm-linux.h (USE_THREAD_STEP_NEEDED): Delete.
2109 * config/pa/nm-hppah.h (USE_THREAD_STEP_NEEDED): Delete.
2110 * config/tm-nto.h (TARGET_SIGNAL_RAW_TABLE) Delete.
2111 (TARGET_SIGNAL_RAW_VALUES): Delete.
2112 * config/pa/nm-hppah.h (TARGET_RANGE_PROFITABLE_FOR_HW_WATCHPOINT):
2113 Delete.
2114 * config/frv/tm-frv.h (TARGET_HW_BREAK_LIMIT)
2115 (TARGET_HW_WATCH_LIMIT): Delete.
2116 * Makefile.in (minimon_h, HFILES_NO_SRCDIR): Remove minimon.h.
2117 * minimon.h: Delete file.
2118
2119 * trad-frame.c (trad_frame_get_this_base)
2120 (trad_frame_set_this_base, trad_frame_set_reg_realreg): New
2121 functions.
2122 * trad-frame.h (trad_frame_set_this_base)
2123 (trad_frame_get_this_base, trad_frame_set_reg_realreg): Declare.
2124
2125 2004-07-31 Andrew Cagney <cagney@gnu.org>
2126
2127 * trad-frame.c (trad_frame_get_prev_register): Rename
2128 trad_frame_get_prev_register.
2129 * vax-tdep.c (vax_frame_prev_register): Update.
2130 * trad-frame.h: Update.
2131 * trad-frame.c (trad_frame_get_register): Update.
2132 * sparcobsd-tdep.c (sparc32obsd_frame_prev_register): Update.
2133 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_prev_register):
2134 Update.
2135 * sparc64obsd-tdep.c (sparc64obsd_frame_prev_register): Update.
2136 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_prev_register):
2137 Update.
2138 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_prev_register):
2139 Update.
2140 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_prev_register):
2141 Update.
2142 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_prev_register):
2143 Update.
2144 * sparc-linux-tdep.c (sparc32_linux_sigtramp_frame_prev_register):
2145 Update.
2146 * s390-tdep.c (s390_frame_prev_register)
2147 (s390_stub_frame_prev_register)
2148 (s390_sigtramp_frame_prev_register): Update.
2149 * rs6000-tdep.c (rs6000_frame_prev_register): Update.
2150 * ppc-linux-tdep.c (ppc_linux_sigtramp_prev_register): Update.
2151 * mips-tdep.c (mips_mdebug_frame_prev_register): Update.
2152 * m88k-tdep.c (m88k_frame_prev_register)
2153 * m68hc11-tdep.c (m68hc11_frame_prev_register)
2154 * m32r-tdep.c (m32r_frame_prev_register): Update.
2155 * hppa-tdep.c (hppa_frame_prev_register_helper)
2156 * frv-tdep.c (frv_frame_prev_register): Update.
2157 * d10v-tdep.c (d10v_frame_prev_register): Update.
2158 * cris-tdep.c (cris_frame_prev_register): Update.
2159 * avr-tdep.c (avr_frame_prev_register): Update.
2160 * arm-tdep.c (arm_prologue_prev_register)
2161 (arm_sigtramp_prev_register): Update.
2162
2163 2004-07-31 Andrew Cagney <cagney@gnu.org>
2164
2165 * frame.h (legacy_saved_regs_unwind)
2166 (legacy_frame_chain_valid, legacy_frame_p)
2167 (enum frame_type): Delete UNKNOWN_FRAME.
2168 * dummy-frame.c (dummy_frame_this_id): Simplify.
2169 * frame-unwind.c (frame_unwind_find_by_frame): Simplify.
2170 * frame.c (struct frame_info): Delete the field "type".
2171 (legacy_saved_regs_prev_register, legacy_get_prev_frame)
2172 (legacy_saved_regs_this_id, legacy_saved_regs_unwinder)
2173 (legacy_saved_regs_unwind, legacy_frame_p)
2174 (frame_type_from_pc): Delete.
2175 (get_frame_id, frame_pop, frame_register_unwind, get_prev_frame_1)
2176 (fprint_frame, create_new_frame, fprint_frame_type): Simplify.
2177
2178 2004-07-31 Mark Kettenis <kettenis@gnu.org>
2179
2180 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Fix
2181 indentation.
2182
2183 * mips-nat.c: Remove file.
2184 * Makefile.in (ALLDEPFILES): Remove mips-nat.c
2185 (mips-nat.o): Remove dependency.
2186
2187 * infptrace.c: Update copyright year.
2188 (fetch_register): Pass NULL in regcache_raw_supply call instead of
2189 explicitly setting the buffer to all zeroes.
2190
2191 * sparc64obsd-tdep.c (sparc64obsd_sigreturn_offset): New variable.
2192 (sparc64obsd_pc_in_sigtramp): Reorganize to avoid goto.
2193
2194 2004-07-30 Andrew Cagney <cagney@gnu.org>
2195
2196 * GDB 6.2 released from gdb_6_2-branch.
2197
2198 2004-07-30 Baurjan Ismagulov <ibr@ata.cs.hun.edu.tr>
2199
2200 * defs.h (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH): New macros.
2201
2202 * exec.c (exec_file_attach):
2203 * nto-tdep.c (nto_find_and_open_solib):
2204 * pa64solib.c (pa64_solib_sizeof_symbol_table):
2205 * solib.c (solib_open):
2206 * somsolib.c (som_solib_sizeof_symbol_table):
2207 * source.c (is_regular_file, openp, open_source_file):
2208 * symfile.c (symfile_bfd_open):
2209 * wince.c (upload_to_device): Differentiate between the search for
2210 binary and source files.
2211
2212 2004-07-30 Andrew Cagney <cagney@gnu.org>
2213
2214 * complaints.c (_initialize_complaints): Pass NULL to
2215 add_setshow_zinteger_cmd for help_doc.
2216 * cli/cli-decode.c (add_setshow_cmd_full): Handle a NULL help_doc.
2217
2218 2004-07-30 Andrew Cagney <cagney@gnu.org>
2219
2220 Fix PR i18n/761.
2221 * Makefile.in (.SUFFIXES): Add po .gmo, and .pox.
2222 (.PHONY): Add all-po install-po, uninstall-po, clean-po,
2223 $(PACKAGE).pot and update-po.
2224 (all-po, .po.gmo, .po.pox, install-po, $(PACKAGE).pot)
2225 (po/$(PACKAGE).pot, clean-po, uninstall-po, install-po)
2226 (update-po): New rules.
2227 (localedir): Define using autoconf.
2228 (diststuff): Add $(PACKAGE).pot and $(CATALOGS)
2229 (GDB_CFLAGS): Define LOCALEDIR using $(localedir).
2230 (XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): Define.
2231 * configure.in: Generate CATALOGS and LINGUAS from contents of
2232 src/gdb/po/ directory. Set @localedir@ in Makefile.in.
2233 * configure: Re-generate.
2234 * po/gdbtext: New file
2235
2236 2004-07-30 Jerome Guitton <guitton@gnat.com>
2237
2238 * MAINTAINERS: Reorder Write After Approval list in alphabetical
2239 order.
2240
2241 2004-07-30 David Lecomber <dsl@sources.redhat.com>
2242
2243 * dwarf2read.c (read_file_scope): Set producer if attribute
2244 present.
2245 (struct dwarf2_cu): Added new member producer.
2246
2247 2004-07-30 Jerome Guitton <guitton@gnat.com>
2248
2249 * inflow.c (kill_command): release file handles in BFD.
2250 * exec.c (exec_file_attach): Ditto.
2251 * symfile.c (symbol_file_add_with_addrs_or_offsets): Ditto.
2252
2253 2004-07-29 Andrew Cagney <cagney@gnu.org>
2254
2255 * PROBLEMS (mips-irix): Note that it is broken.
2256
2257 2004-07-29 Andrew Cagney <cagney@gnu.org>
2258
2259 * config/mips/xm-irix5.h (REGISTER_U_ADDR): Move from here ...
2260 * config/mips/nm-irix5.h (REGISTER_U_ADDR): ... to here.
2261
2262 * config/xm-nbsd.h: Delete file.
2263 * config/arm/xm-nbsd.h: Delete file.
2264 * config/i386/xm-nbsd.h: Delete file.
2265 * config/ns32k/xm-nbsd.h: Delete file.
2266 * config/ns32k/nbsdaout.mh (XM_FILE): Delete.
2267 * config/i386/nbsdelf.mh (XM_FILE): Delete.
2268 * config/i386/nbsdaout.mh (XM_FILE): Delete.
2269 * config/arm/nbsdelf.mh (XM_FILE): Delete.
2270 * config/arm/nbsdaout.mh (XM_FILE): Delete.
2271
2272 * config/i386/xm-i386v.h (KERNEL_U_ADDR): Move from here ...
2273 * config/i386/nm-i386v42mp.h (KERNEL_U_ADDR): ... to here, ...
2274 * config/i386/nm-i386v4.h (KERNEL_U_ADDR): ... here, ...
2275 * config/i386/nm-i386v.h (KERNEL_U_ADDR): ... and here.
2276 * config/vax/xm-vax.h (KERNEL_U_ADDR): Move from here ...
2277 * config/vax/nm-vax.h (KERNEL_U_ADDR): ... to here.
2278
2279 * config/powerpc/xm-linux.h: Delete empty file.
2280 * config/powerpc/ppc64-linux.mh (XM_FILE): Delete.
2281 * config/powerpc/linux.mh (XM_FILE): Delete.
2282 * config/m68k/xm-linux.h: Delete empty file.
2283 * config/m68k/linux.mh (XM_FILE): Delete.
2284 * config/ia64/xm-linux.h: Delete empty file.
2285 * config/ia64/linux.mh (XM_FILE): Delete.
2286 * config/arm/xm-linux.h: Delete empty file.
2287 * config/arm/linux.mh (XM_FILE): Delete.
2288
2289 * config/powerpc/xm-linux.h (KERNEL_U_ADDR): Move from here ...
2290 * config/powerpc/nm-linux.h (KERNEL_U_ADDR): ... to here.
2291 * config/m68k/xm-linux.h (KERNEL_U_ADDR): Move from here ...
2292 * config/m68k/nm-linux.h (KERNEL_U_ADDR): ... to here.
2293 * config/ia64/xm-linux.h (KERNEL_U_ADDR): Move from here ...
2294 * config/ia64/nm-linux.h (KERNEL_U_ADDR): ... to here.
2295 * config/arm/xm-linux.h (KERNEL_U_ADDR): Move from here ...
2296 * config/arm/nm-linux.h (KERNEL_U_ADDR): ... to here.
2297
2298 * config/m68k/xm-m68k.h: Delete file.
2299 * config/m68k/xm-linux.h: Do not include "m68k/xm-m68k.h". Update
2300 copyright.
2301 (HOST_LONG_DOUBLE_FORMAT): Delete macro.
2302 * config/pa/xm-linux.h: Delete empty file.
2303 * config/pa/linux.mh (XM_FILE): Delete.
2304 * config/i386/xm-i386.h: Delete empty file.
2305 * config/i386/xm-nbsd.h, config/i386/xm-go32.h: Do not include
2306 "i386/xm-i386.h".
2307 * config/i386/obsdaout.mh (XM_FILE): Delete.
2308 * config/i386/obsd64.mh (XM_FILE): Delete.
2309 * config/i386/fbsd64.mh (XM_FILE): Delete.
2310 * config/i386/nto.mh (XM_FILE): Delete.
2311 * config/i386/obsd.mh (XM_FILE): Delete.
2312 * config/i386/linux64.mh (XM_FILE): Delete.
2313 * config/i386/linux.mh (XM_FILE): Delete.
2314 * config/i386/i386sol2.mh (XM_FILE): Delete.
2315 * config/i386/i386gnu.mh (XM_FILE): Delete.
2316 * config/i386/fbsd.mh (XM_FILE): Delete.
2317 * config/i386/nbsd64.mh (XM_FILE): Delete.
2318
2319 2004-07-29 Andrew Cagney <cagney@gnu.org>
2320
2321 * config/pa/xm-linux.h: Do not include "floatformat.h".
2322 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
2323 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
2324 * config/i386/xm-i386.h: Do not include "floatformat.h".
2325 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
2326 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
2327 * doublest.c (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
2328 (HOST_LONG_DOUBLE_FORMAT): Delete macros. Use
2329 GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT and
2330 GDB_HOST_LONG_DOUBLE_FORMAT instead.
2331 * configure.in (GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT)
2332 (GDB_HOST_LONG_DOUBLE_FORMAT): Define.
2333 * configure, config.in: Regenerate.
2334 * configure.host (gdb_host_float_format, gdb_host_double_format)
2335 (gdb_host_long_double_format): Set according to the host.
2336
2337 2004-07-29 Andrew Cagney <cagney@gnu.org>
2338
2339 * Makefile.in (CONFIG_CLEAN): Delete duplicate definition.
2340
2341 2004-07-28 Andrew Cagney <cagney@gnu.org>
2342
2343 * PROBLEMS: Mention threads/1650.
2344 * NEWS: Mention the NPTL fix.
2345
2346 2004-07-28 Andrew Cagney <cagney@gnu.org>
2347
2348 * cli/cli-decode.c (add_setshow_cmd): Delete function.
2349 (add_setshow_cmd_full): Make static.
2350 * command.h (add_setshow_cmd, add_setshow_cmd_full): Delete.
2351 (add_setshow_filename_cmd, add_setshow_string_cmd): Declare.
2352 * cli/cli-decode.c (add_setshow_filename_cmd)
2353 (add_setshow_string_cmd): New functions.
2354 * nto-tdep.c (_initialize_nto_tdep): Update. Fix parameters.
2355 * mips-tdep.c (_initialize_mips_tdep): Update.
2356 * m32r-rom.c (_initialize_m32r_rom): Update. Update copyright.
2357 * cli/cli-logging.c (_initialize_cli_logging): Update.
2358 * complaints.c (_initialize_complaints): Update.
2359 * remote.c (_initialize_remote): Update.
2360
2361 2004-07-28 Andrew Cagney <cagney@gnu.org>
2362
2363 * cli/cli-decode.c (add_setshow_zinteger_cmd)
2364 (add_setshow_cmd, add_setshow_auto_boolean_cmd)
2365 (add_setshow_boolean_cmd, add_setshow_cmd_full): Add help_doc and
2366 print parameters. Make string parameters constant.
2367 * command.h: Update. Update copyright.
2368 * remote.c (add_packet_config_cmd, _initialize_remote): Ditto.
2369 * observer.c (_initialize_observer): Ditto.
2370 * frame.c (_initialize_frame): Ditto.
2371 * complaints.c (_initialize_complaints): Ditto.
2372 * maint.c (_initialize_maint_cmds): Ditto.
2373 * target.c (initialize_targets): Ditto.
2374 * cli/cli-logging.c (_initialize_cli_logging): Ditto.
2375 * infcall.c (_initialize_infcall): Ditto.
2376 * arm-tdep.c (_initialize_arm_tdep): Ditto.
2377 * m32r-rom.c (_initialize_m32r_rom): Ditto.
2378 * remote-rdi.c (_initialize_remote_rdi): Ditto.
2379 * d10v-tdep.c (_initialize_d10v_tdep): Ditto.
2380 * mips-tdep.c (_initialize_mips_tdep): Ditto.
2381
2382 2004-07-28 Andrew Cagney <cagney@gnu.org>
2383
2384 * gdbtypes.c (lookup_primitive_typename): Delete function.
2385 * gdbtypes.h (lookup_primitive_typename): Delete declaration.
2386 * ada-lex.l: Use language_lookup_primitive_type_by_name.
2387 * gdbtypes.c (lookup_typename): Ditto.
2388 * f-exp.y (yylex): Ditto.
2389 * c-exp.y (yylex): Ditto, eliminate assignment in "if".
2390
2391 * scm-lang.c (c_builtin_types): Delete extern declaration.
2392 (scm_language_defn): Replace
2393 string_char_type and primitive_type_vector with
2394 la_language_arch_info.
2395 * jv-lang.c (java_language_defn): Replace
2396 string_char_type and primitive_type_vector with
2397 la_language_arch_info.
2398 * config/i386/i386sco4.mh (NATDEPFILES): Remove reference to
2399 c_builtin_types in comment.
2400 * c-lang.h (struct language_arch_info): Declare opaque.
2401 (c_language_arch_info): Declare.
2402 (c_builtin_types): Delete declaration.
2403 * c-lang.c (c_language_arch_info): Set string_char_type to
2404 builtin_char, not builtin_true_char. Make global.
2405 (c_builtin_types): Delete array.
2406 (asm_language_defn, minimal_language_defn): Replace
2407 string_char_type and primitive_type_vector with
2408 la_language_arch_info.
2409
2410 2004-07-28 Andrew Cagney <cagney@gnu.org>
2411
2412 * gdbtypes.h (struct builtin_type): Rename true_char to
2413 builtin_true_char.
2414 * gdbtypes.c (gdbtypes_post_init): Update.
2415 * c-lang.c (arch_info): New function.
2416 (enum c_primitive_types): New enum.
2417 (c_language_defn): Instead of string_char_type and
2418 primitive_type_vector set la_language_arch_info.
2419
2420 2004-07-28 Andrew Cagney <cagney@gnu.org>
2421
2422 * language.h (struct language_arch_info): Fix typo
2423 s/primative/primitive/.
2424 * gdbtypes.c (lookup_primitive_typename): Ditto.
2425 * language.c (language_lookup_primitive_type_by_name)
2426 (unknown_language_arch_info): Ditto.
2427
2428 2004-07-27 Andrew Cagney <cagney@gnu.org>
2429
2430 * defs.h (enum language): Add nr_languages.
2431 * language.h (struct language_arch_info): Define.
2432 (struct language_defn): Add la_language_arch_info.
2433 (language_lookup_primative_type_by_name): Declare.
2434 (language_string_char_type): Declare.
2435 * language.c (_initialize_language, language_gdbarch_post_init)
2436 (struct language_gdbarch, language_gdbarch_data): Implement
2437 per-architecture language information.
2438 (unknown_language_arch_info, language_string_char_type)
2439 (language_lookup_primative_type_by_name): New functions.
2440 (unknown_language_defn, auto_language_defn)
2441 (local_language_defn): Set la_language_arch_info to
2442 unknown_language_arch_info.
2443 (unknown_builtin_types): Delete.
2444 * gdbtypes.c (lookup_primitive_typename): Use
2445 language_lookup_primative_type_by_name.
2446 (create_string_type): Use language_string_char_type.
2447 * values.c (value_from_string): Use language_string_char_type.
2448 * scm-lang.c (scm_language_defn): Add NULL la_language_arch_info.
2449 * p-lang.c (pascal_language_defn): Ditto.
2450 * m2-lang.c (m2_language_defn): Ditto.
2451 * jv-lang.c (java_language_defn): Ditto.
2452 * objc-lang.c (objc_language_defn): Ditto.
2453 * f-lang.c (f_language_defn): Ditto.
2454 * c-lang.c (c_language_defn, cplus_language_defn)
2455 (asm_language_defn, minimal_language_defn): Ditto.
2456
2457 2004-07-27 Andrew Cagney <cagney@gnu.org>
2458
2459 * gdbtypes.h (struct builtin_type): Declare.
2460 (builtin_type): Declare.
2461 * d10v-tdep.c (d10v_register_type): Use builtin_type.
2462 * gdbtypes.c (_initialize_gdbtypes): Register gdbtypes_post_init.
2463 (gdbtypes_post_init): New function.
2464 (builtin_type): New function.
2465
2466 2004-07-27 Kei Sakamoto <sakamoto.kei@renesas.com>
2467
2468 * remote-m32r-sdi.c: Fix breakpoint bug.
2469 (send_cmd, send_one_arg_cmd, send_two_arg_cmd, send_three_arg_cmd,
2470 recv_char_data, recv_long_data): New functions to replace communication
2471 sequences.
2472
2473 2004-07-26 Michael Chastain <mec.gnu@mindspring.com>
2474
2475 Document PR threads/1650.
2476 * PROBLEMS (Threads): Document problem with many threads
2477
2478 2004-07-26 Andrew Cagney <cagney@gnu.org>
2479
2480 * gdb-mi.el: Move from here ...
2481 * mi/gdb-mi.el: ... to here.
2482
2483 2004-07-26 Andrew Cagney <cagney@gnu.org>
2484
2485 Problem reported by Ashley Pittman <ashley@quadrics.com>.
2486 * main.c (captured_main): When in batch mode always detach.
2487
2488 2004-07-26 Andrew Cagney <cagney@gnu.org>
2489
2490 * MAINTAINERS: Mark the xstormy16, sh64, ns32k, mn10300, mcore,
2491 and h8300 as broken.
2492 * NEWS: END-OF-LIFE frame compatibility module.
2493 * PROBLEMS: For "Stack backtraces", remove powerpc, hppa and mips
2494 specific comments.
2495
2496 2004-07-26 Andrew Cagney <cagney@gnu.org>
2497
2498 * cli/cli-decode.c (deprecated_add_show_from_set): Deprecate.
2499 * xcoffsolib.c (_initialize_xcoffsolib): Update.
2500 * wince.c (_initialize_wince): Update.
2501 * win32-nat.c (_initialize_win32_nat): Update.
2502 * varobj.c (_initialize_varobj): Update.
2503 * valops.c (_initialize_valops): Update.
2504 * utils.c (initialize_utils, initialize_utils): Update.
2505 * tui/tui-win.c (_initialize_tui_win): Update.
2506 * top.c (init_main): Update.
2507 * symfile.c (_initialize_symfile): Update.
2508 * source.c (_initialize_source): Update.
2509 * somsolib.c (_initialize_som_solib): Update.
2510 * solib.c (_initialize_solib): Update.
2511 * solib-frv.c (_initialize_frv_solib): Update.
2512 * serial.c (_initialize_serial): Update.
2513 * ser-go32.c (_initialize_ser_dos, _initialize_ser_dos): Update.
2514 * remote.c (_initialize_remote, _initialize_remote): Update.
2515 * remote-vx.c (_initialize_vx): Update.
2516 * remote-utils.c (_initialize_sr_support): Update.
2517 * remote-sds.c (_initialize_remote_sds): Update.
2518 * remote-mips.c (_initialize_remote_mips): Update.
2519 * remote-e7000.c (_initialize_remote_e7000): Update.
2520 * proc-api.c (_initialize_proc_api): Update.
2521 * printcmd.c: Update.
2522 * parse.c (_initialize_parse): Update.
2523 * pa64solib.c (_initialize_pa64_solib): Update.
2524 * p-valprint.c (_initialize_pascal_valprint): Update.
2525 * monitor.c (_initialize_remote_monitors): Update.
2526 * mips-tdep.c (_initialize_mips_tdep): Update.
2527 * mcore-tdep.c (_initialize_mcore_tdep): Update.
2528 * maint.c (_initialize_maint_cmds): Update.
2529 * lin-lwp.c (_initialize_lin_lwp): Update.
2530 * language.c (_initialize_language): Update.
2531 * kod.c (_initialize_kod): Update.
2532 * infrun.c (set_schedlock_func, _initialize_infrun): Update.
2533 * i386-tdep.c (_initialize_i386_tdep): Update.
2534 * gdbtypes.c (build_gdbtypes, _initialize_gdbtypes): Update.
2535 * gdbarch.sh: Update.
2536 * gdbarch.c: Re-generate.
2537 * gdb-events.sh: Update.
2538 * gdb-events.c: Re-generate.
2539 * frame.c (_initialize_frame): Update.
2540 * exec.c: Update.
2541 * demangle.c (_initialize_demangler): Update.
2542 * dcache.c (_initialize_dcache): Update.
2543 * cris-tdep.c (_initialize_cris_tdep, cris_version_update): Update.
2544 * cp-valprint.c (_initialize_cp_valprint): Update.
2545 * corefile.c (_initialize_core): Update.
2546 * command.h: Update.
2547 * cli/cli-decode.h: Update.
2548 * cli/cli-cmds.c (init_cli_cmds): Update.
2549 * charset.c (_initialize_charset): Update.
2550 * breakpoint.c (_initialize_breakpoint): Update.
2551 * arm-tdep.c (_initialize_arm_tdep_initialize_arm_tdep): Update.
2552 * alpha-tdep.c (_initialize_alpha_tdep): Update.
2553 * aix-thread.c (_initialize_aix_thread): Update.
2554
2555 2004-07-24 Mark Kettenis <kettenis@gnu.org>
2556
2557 Partial fix for PR backtrace/1718.
2558 * i386-tdep.c (i386_analyze_frame_setup): Handle more instructions
2559 that GCC migrates into the prolugue. Don't handle any
2560 instructions that clobber %ebx.
2561
2562 2004-07-23 Andrew Cagney <cagney@gnu.org>
2563
2564 Use regcache_raw_collect instead of regcache_collect.
2565 * regcache.h (regcache_collect): Delete declaration.
2566 * regcache.c (regcache_colect): Delete function.
2567 * win32-nat.c (do_child_store_inferior_registers): Update.
2568 * sol-thread.c (sol_thread_store_registers): Update.
2569 * shnbsd-tdep.c (shnbsd_fill_reg): Update.
2570 * rs6000-nat.c (store_register): Update.
2571 * remote.c (store_register_using_P, remote_store_registers): Update.
2572 * ppcnbsd-tdep.c (ppcnbsd_fill_reg): Update.
2573 * ppc-linux-nat.c (store_altivec_register, store_spe_register)
2574 (fill_vrregset, store_spe_registers, fill_gregset)
2575 (fill_gregset): Update.
2576 * nto-procfs.c (procfs_store_registers): Update.
2577 * mipsnbsd-tdep.c (mipsnbsd_fill_reg): Update.
2578 * mips-linux-tdep.c (fill_gregset, mips64_fill_gregset): Update.
2579 * m68klinux-nat.c (store_register, fill_gregset): Update.
2580 * m68k-tdep.c (fill_gregset): Update.
2581 * infptrace.c (store_register): Update.
2582 * i386-nto-tdep.c (i386nto_regset_fill): Update.
2583 * i386-linux-nat.c (store_register, fill_gregset): Update.
2584 * hppa-linux-nat.c (fill_gregset): Update.
2585 * go32-nat.c (store_register): Update.
2586 * armnbsd-nat.c (store_register, store_regs, store_fp_register)
2587 (store_fp_regs): Update.
2588 * arm-linux-nat.c (store_nwfpe_single, store_nwfpe_double)
2589 (store_nwfpe_extended, store_fpregister, store_fpregs)
2590 (store_register, store_regs, fill_gregset, fill_fpregset): Update.
2591 * alpha-tdep.c (alpha_fill_int_regs, alpha_fill_fp_regs): Update.
2592 * aix-thread.c (fill_gprs64, fill_fprs, fill_sprs64, fill_sprs32)
2593 (store_regs_user_thread, store_regs_kernel_thread): Update.
2594
2595 2004-07-24 Mark Kettenis <kettenis@gnu.org>
2596
2597 * dwarf2-frame.c (struct dwarf2_cie): Delete `addr_size' member.
2598 (decode_frame_entry_1): Use DW_EH_PE_absptr as default for CIE
2599 encoding.
2600 (dwarf2_build_frame_info): Adjust for removal of `addr_size'
2601 member of `struct comp_unit'.
2602
2603 2004-07-23 Andrew Cagney <cagney@gnu.org>
2604
2605 * infrun.c (handle_inferior_event): Separate the STEP_OVER_ALL and
2606 DEPRECATED_IGNORE_HELPER_CALL cases, only #ifdef the latter.
2607
2608 2004-07-23 Martin Hunt <hunt@redhat.com>
2609 Kevin Buettner <kevinb@redhat.com>
2610
2611 * dwarf2-frame.c (execute_cfa_program): Fix typo in which the
2612 alignment was being added to the offset instead of multiplied.
2613
2614 2004-07-23 Mark Kettenis <kettenis@gnu.org>
2615
2616 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Adjust for
2617 changed signal trampoline in OpenBSD 3.5-current.
2618
2619 * sparc64nbsd-nat.c: Include "regcache.h", <sys/types.h>,
2620 <machine/pcb.h> and "bsd-kvm.h".
2621 (sparc64nbsd_supply_pcb): New function.
2622 (_initialize_sparc64nbsd_nat): Renamed from
2623 _initialize_sparcnbsd_nat. Enable libkvm interface.
2624 * Makefile.in (sparc64nbsd-nat.o): Update dependencies.
2625 * config/sparc/nbsd64.mh (NATDEPFILES): Add bsd-kvm.o
2626 (LOADLIBES): New variable.
2627
2628 * config/sparc/obsd64.mt (TDEPFILES): Add sparcobsd-tdep.o.
2629
2630 * sparcnbsd-nat.c (sparc32nbsd_supply_pcb): Fix typo in comment.
2631
2632 2004-07-21 Andrew Cagney <cagney@gnu.org>
2633
2634 Use regcache_raw_supply instead of supply_register.
2635 * regcache.h (supply_register): Delete declaration.
2636 * regcache.c (supply_register): Delete function.
2637 * wince.c (do_child_fetch_inferior_registers): Update.
2638 * win32-nat.c (do_child_fetch_inferior_registers)
2639 (fetch_elf_core_registers): Update.
2640 * v850ice.c (v850ice_fetch_registers): Update.
2641 * thread-db.c (thread_db_store_registers): Update.
2642 * sol-thread.c (sol_thread_store_registers): Update.
2643 * shnbsd-tdep.c (shnbsd_supply_reg): Update.
2644 * rs6000-nat.c (fetch_register): Update.
2645 * rom68k-rom.c (rom68k_supply_one_register): Update.
2646 * remote.c (remote_wait, remote_async_wait): Update.
2647 * remote-st.c (get_hex_regs): Update.
2648 * remote-sim.c (gdbsim_fetch_register): Update.
2649 * remote-sds.c (sds_fetch_registers): Update.
2650 * remote-rdp.c (remote_rdp_fetch_register): Update.
2651 * remote-rdi.c (arm_rdi_fetch_registers): Update.
2652 * remote-mips.c (mips_wait, mips_fetch_registers): Update.
2653 * remote-m32r-sdi.c (m32r_fetch_register): Update.
2654 * remote-hms.c (init_hms_cmds): Update.
2655 * remote-est.c (init_est_cmds): Update.
2656 * remote-e7000.c (get_hex_regs, fetch_regs_from_dump)
2657 (e7000_fetch_registers, sub2_from_pc, e7000_wait): Update.
2658 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_supply_fpreg): Update.
2659 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register)
2660 (fetch_register, supply_vrregset, supply_vrregset)
2661 (fetch_spe_registers): Update.
2662 * ppc-bdm.c (bdm_ppc_fetch_registers): Update.
2663 * monitor.c (monitor_supply_register): Update.
2664 * mipsv4-nat.c (supply_gregset, supply_fpregset): Update.
2665 * mipsnbsd-tdep.c (mipsnbsd_supply_reg)
2666 (mipsnbsd_supply_fpreg): Update.
2667 * mips-nat.c (fetch_inferior_registers)
2668 (fetch_core_registers): Update.
2669 * mips-linux-tdep.c (supply_32bit_reg, supply_gregset)
2670 (supply_fpregset, mips64_supply_gregset)
2671 (mips64_supply_fpregset): Update.
2672 * m68klinux-nat.c (fetch_register, supply_gregset)
2673 (supply_fpregset): Update.
2674 * m68k-tdep.c (supply_gregset, supply_fpregset): Update.
2675 * m32r-rom.c (init_m32r_cmds, init_mon2000_cmds): Update.
2676 * lynx-nat.c (fetch_inferior_registers, fetch_core_registers): Update.
2677 * irix5-nat.c (supply_gregset, supply_fpregset): Update.
2678 * infptrace.c (fetch_register): Update.
2679 * ia64-linux-nat.c (supply_gregset, supply_fpregset): Update.
2680 * ia64-aix-nat.c (supply_gregset, supply_fpregset): Update.
2681 * i386gnu-nat.c (fetch_fpregs, supply_gregset)
2682 (gnu_fetch_registers, gnu_store_registers): Update.
2683 * i386-nto-tdep.c (i386nto_supply_gregset): Update.
2684 * i386-linux-nat.c (fetch_register, supply_gregset)
2685 (dummy_sse_values): Update.
2686 * hpux-thread.c (hpux_thread_fetch_registers): Update.
2687 * hppah-nat.c (fetch_register): Update.
2688 * hppa-linux-nat.c (fetch_register, supply_gregset)
2689 (supply_fpregset): Update.
2690 * go32-nat.c (fetch_register): Update.
2691 * dve3900-rom.c (fetch_bitmapped_register)
2692 (_initialize_r3900_rom): Update.
2693 * cris-tdep.c (supply_gregset): Update.
2694 * abug-rom.c (init_abug_cmds): Update.
2695 * core-aout.c (fetch_core_registers): Update.
2696 * armnbsd-nat.c (supply_gregset, supply_fparegset)
2697 (fetch_register, fetch_fp_register): Update.
2698 * arm-linux-nat.c (fetch_nwfpe_single, fetch_nwfpe_none)
2699 (fetch_nwfpe_extended, fetch_fpregister, fetch_fpregs)
2700 (fetch_register, fetch_regs, supply_gregset, supply_fpregset): Update.
2701 * alphanbsd-tdep.c (fetch_core_registers): Update.
2702 * alpha-tdep.c (alpha_supply_int_regs, alpha_supply_fp_regs): Update.
2703 * alpha-nat.c (fetch_osf_core_registers)
2704 (fetch_osf_core_registers, fetch_osf_core_registers): Update.
2705 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs)
2706 (supply_sprs64, supply_sprs32, fetch_regs_kernel_thread): Update.
2707
2708 2004-07-21 Andrew Cagney <cagney@gnu.org>
2709
2710 * PROBLEMS: Mention breakpoints/1702.
2711 * NEWS: For signal trampolines, cite s390 GNU/Linux as a system
2712 that is known to work.
2713
2714 2004-07-21 Andrew Cagney <cagney@gnu.org>
2715
2716 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Deprecate.
2717 * mips-tdep.c (mips_dump_tdep, mips_ignore_helper): Update.
2718 * infrun.c (DEPRECATED_IGNORE_HELPER_CALL): Delete macro.
2719 (handle_inferior_event): Wrap call to deprecated
2720 IGNORE_HELPER_CALL in #ifdef.
2721 * config/mips/tm-nbsd.h: Update.
2722
2723 2004-07-20 Jim Blandy <jimb@redhat.com>
2724
2725 * rs6000-tdep.c (rs6000_gdbarch_init): The register set used for
2726 bfd_mach_ppc has no segment registers.
2727
2728 Include PowerPC SPR numbers for special-purpose registers.
2729 * rs6000-tdep.c (struct reg): Add new member, 'spr_num'.
2730 (R, R4, R8, R16, F, P, R32, R64, R0): Include value for
2731 new member in initializer.
2732 (S, S4, SN4, S64): New macros for defining special-purpose
2733 registers.
2734 (PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS, PPC_OEA_SPRS, registers_power,
2735 registers_403, registers_403GC, registers_505, registers_860,
2736 registers_601, registers_602, registers_603, registers_604,
2737 registers_750, registers_e500): Use them.
2738
2739 * rs6000-tdep.c (rs6000_gdbarch_init): Delete variable 'power';
2740 replace references with expression used to initialize variable.
2741
2742 2004-07-20 Andrew Cagney <cagney@gnu.org>
2743
2744 * breakpoint.c (deprecated_read_memory_nobpt): Rename
2745 read_memory_nobpt.
2746 * sparc-linux-tdep.c (sparc_linux_sigtramp_start): Update.
2747 * s390-tdep.c (s390_readinstruction, s390_in_function_epilogue_p)
2748 (s390_sigtramp_frame_sniffer): Update.
2749 * mn10300-tdep.c (mn10300_analyze_prologue): Update.
2750 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Update.
2751 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
2752 (mips32_fetch_instruction): Update.
2753 * mcore-tdep.c (get_insn): Update.
2754 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Update.
2755 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Update.
2756 * i386ly-tdep.c (i386lynx_saved_pc_after_call): Update.
2757 * i386-linux-tdep.c (i386_linux_sigtramp_start)
2758 (i386_linux_rt_sigtramp_start): Update.
2759 * i386-linux-nat.c (child_resume): Update.
2760 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Update.
2761 * hppa-linux-tdep.c (insns_match_pattern): Update.
2762 * gdbcore.h: Update.
2763 * frv-tdep.c (frv_gdbarch_adjust_breakpoint_address): Update.
2764 * frame.c (safe_frame_unwind_memory): Update.
2765 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Update.
2766 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Update.
2767 * alpha-tdep.c (alpha_read_insn): Update.
2768
2769 2004-07-20 Andrew Cagney <cagney@gnu.org>
2770
2771 * tramp-frame.h (struct tramp_frame): Change "insn" to a struct
2772 containing both bytes and mask. Add "frame_type".
2773 * tramp-frame.c (tramp_frame_start): Update.
2774 (tramp_frame_prepend_unwinder): Update.
2775 * mips-linux-tdep.c (mips_linux_o32_sigframe)
2776 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
2777 (mips_linux_n64_rt_sigframe): Update. Make "static const".
2778 * ppcnbsd-tdep.c (tramp_frame ppcnbsd_sigtramp): Update.
2779
2780 2004-07-19 Eli Zaretskii <eliz@gnu.org>
2781
2782 * config/djgpp/fnchange.lst: Add remapping for bfd/elf32-cr*.c,
2783 bfd/elf32-sh-symbian.c, bfd/elf32-sh64-com.c,
2784 sim/testsuite/sim/mips/hilo-hazard-[123].s, and
2785 sim/testsuite/sim/mips/fpu64-ps-sb1.s.
2786
2787 2004-07-17 Andrew Cagney <cagney@gnu.org>
2788
2789 * NEWS, PROBLEMS: Update for 6.2.
2790
2791 * README: Update to 6.2.
2792
2793 * utils.c (xvasprintf): Call xstrvprintf.
2794
2795 * parse.c: Update copyright.
2796 (null_post_parser): Eliminate ARGSUSED.
2797
2798 * ppc-linux-nat.c (store_spe_registers): Eliminate K&R C.
2799 * tui/tui-win.c (tui_get_cmd_list): Ditto.
2800 * symfile-mem.c (_initialize_symfile_mem): Ditto.
2801
2802 * ppc-linux-tdep.c (ppc_linux_init_abi): Add [sic] to Linux.
2803 * ppc-linux-nat.c: Use "Linux kernel".
2804 * hppa-linux-tdep.c: Use GNU/Linux.
2805 * hppa-linux-nat.c: Use GNU/Linux.
2806 * dwarfread.c: Add [sic] to use of Linux.
2807
2808 * hppa-linux-nat.c: Do not include <string.h>.
2809 (supply_fpregset): Remove "register" attribute.
2810
2811 * solib-frv.c (fetch_loadmap): Use xfree, not free.
2812
2813 2004-07-17 Mark Kettenis <kettenis@gnu.org>
2814
2815 * configure.in: Define _MSE_INT_H on Solaris 9 too.
2816 * configure, config.in: Regenerated.
2817
2818 * vaxbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
2819 "bsd-kvm.h".
2820 (vaxbsd_supply_pcb): New function.
2821 (_initialize_vaxbsd_nat): New prototype and function.
2822 * config/vax/nbsdaout.mh (NATDEPFILES): Add bsd-kvm.o, solib.o and
2823 solib-sunos.o.
2824 (LOADLIBES): New variable.
2825 * config/vax/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
2826 (LOADLIBES): New variable.
2827 * config/vax/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
2828 (LOADLIBES): New variable.
2829 * Makefile.in (vaxbsd-nat.o): Update dependencies.
2830
2831 2004-07-16 Andrew Cagney <cagney@gnu.org>
2832
2833 * defs.h (event_loop_p): Replace variable declaration with macro,
2834 always 1.
2835 * main.c (captured_main): Delete options "-async" and "-noasync".
2836 (event_loop_p): Delete variable.
2837 * NEWS: Mention that "-async" and "-noasync" were removed.
2838
2839 2004-07-16 Andrew Cagney <cagney@gnu.org>
2840
2841 * remote-m32r-sdi.c: Re-indent.
2842
2843 2004-07-16 Jim Blandy <jimb@redhat.com>
2844
2845 * ppc-tdep.h (ppc_spr_asr): Add missing OEA SPR.
2846 (ppc_spr_mi_dbcam, ppc_spr_mi_dbram0, ppc_spr_mi_dbram1)
2847 (ppc_spr_md_cam, ppc_spr_md_ram0, ppc_spr_md_ram1): Add
2848 missing MPC823 SPRs.
2849 (ppc_spr_m_twb): Renamed from ppc_spr_md_twb; the old name was
2850 incorrect. (This was corrected in GDB's register name tables on
2851 2004-07-14.)
2852
2853 * rs6000-tdep.c (registers_602): Correct register name: "esassr"
2854 should be "esasrr" ("ESA Save and Restore Register").
2855
2856 2004-07-16 Andrew Cagney <cagney@gnu.org>
2857
2858 * infrun.c (insert_step_resume_breakpoint): Delete gdb_assert
2859 calls, no longer applicable. Update comments and rename parameter
2860 "step_frame" to "return_frame".
2861
2862 2004-07-16 Andrew Cagney <cagney@gnu.org>
2863
2864 * frame.c (fprint_field): New function.
2865 (fprint_frame_id): Use fprint_field.
2866
2867 2004-07-15 Joel Brobecker <brobecker@gnat.com>
2868
2869 * ada-lang.c (ada_language_defn): Remove commented out code.
2870
2871 2004-07-15 Jim Blandy <jimb@redhat.com>
2872
2873 * ppc-tdep.h (struct gdbarch_tdep): New member: ppc_sr0_regnum.
2874 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it.
2875
2876 2004-07-14 Jim Blandy <jimb@redhat.com>
2877
2878 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): Delete; unused.
2879
2880 * ppc-tdep.h (ppc_num_vrs): New enum constant.
2881
2882 * ppc-tdep.h (ppc_num_srs): New enum constant.
2883
2884 * ppc-tdep.h (ppc_spr_mq, ppc_spr_xer, ppc_spr_rtcu, ppc_spr_rtcl)
2885 (ppc_spr_lr, ppc_spr_ctr, ppc_spr_cnt, ppc_spr_dsisr, ppc_spr_dar)
2886 (ppc_spr_dec, ppc_spr_sdr1, ppc_spr_srr0, ppc_spr_srr1)
2887 (ppc_spr_eie, ppc_spr_eid, ppc_spr_nri, ppc_spr_sp, ppc_spr_cmpa)
2888 (ppc_spr_cmpb, ppc_spr_cmpc, ppc_spr_cmpd, ppc_spr_icr)
2889 (ppc_spr_der, ppc_spr_counta, ppc_spr_countb, ppc_spr_cmpe)
2890 (ppc_spr_cmpf, ppc_spr_cmpg, ppc_spr_cmph, ppc_spr_lctrl1)
2891 (ppc_spr_lctrl2, ppc_spr_ictrl, ppc_spr_bar, ppc_spr_vrsave)
2892 (ppc_spr_sprg0, ppc_spr_sprg1, ppc_spr_sprg2, ppc_spr_sprg3)
2893 (ppc_spr_ear, ppc_spr_tbl, ppc_spr_tbu, ppc_spr_pvr)
2894 (ppc_spr_spefscr, ppc_spr_ibat0u, ppc_spr_ibat0l, ppc_spr_ibat1u)
2895 (ppc_spr_ibat1l, ppc_spr_ibat2u, ppc_spr_ibat2l, ppc_spr_ibat3u)
2896 (ppc_spr_ibat3l, ppc_spr_dbat0u, ppc_spr_dbat0l, ppc_spr_dbat1u)
2897 (ppc_spr_dbat1l, ppc_spr_dbat2u, ppc_spr_dbat2l, ppc_spr_dbat3u)
2898 (ppc_spr_dbat3l, ppc_spr_ic_cst, ppc_spr_ic_adr, ppc_spr_ic_dat)
2899 (ppc_spr_dc_cst, ppc_spr_dc_adr, ppc_spr_dc_dat, ppc_spr_dpdr)
2900 (ppc_spr_dpir, ppc_spr_immr, ppc_spr_mi_ctr, ppc_spr_mi_ap)
2901 (ppc_spr_mi_epn, ppc_spr_mi_twc, ppc_spr_mi_rpn, ppc_spr_mi_cam)
2902 (ppc_spr_mi_ram0, ppc_spr_mi_ram1, ppc_spr_md_ctr, ppc_spr_m_casid)
2903 (ppc_spr_md_ap, ppc_spr_md_epn, ppc_spr_md_twb, ppc_spr_md_twc)
2904 (ppc_spr_md_rpn, ppc_spr_m_tw, ppc_spr_md_dbcam, ppc_spr_md_dbram0)
2905 (ppc_spr_md_dbram1, ppc_spr_ummcr0, ppc_spr_upmc1, ppc_spr_upmc2)
2906 (ppc_spr_usia, ppc_spr_ummcr1, ppc_spr_upmc3, ppc_spr_upmc4)
2907 (ppc_spr_zpr, ppc_spr_pid, ppc_spr_mmcr0, ppc_spr_pmc1)
2908 (ppc_spr_sgr, ppc_spr_pmc2, ppc_spr_dcwr, ppc_spr_sia)
2909 (ppc_spr_mmcr1, ppc_spr_pmc3, ppc_spr_pmc4, ppc_spr_sda)
2910 (ppc_spr_tbhu, ppc_spr_tblu, ppc_spr_dmiss, ppc_spr_dcmp)
2911 (ppc_spr_hash1, ppc_spr_hash2, ppc_spr_icdbdr, ppc_spr_imiss)
2912 (ppc_spr_esr, ppc_spr_icmp, ppc_spr_dear, ppc_spr_rpa)
2913 (ppc_spr_evpr, ppc_spr_cdbcr, ppc_spr_tsr, ppc_spr_602_tcr)
2914 (ppc_spr_403_tcr, ppc_spr_ibr, ppc_spr_pit, ppc_spr_esasrr)
2915 (ppc_spr_tbhi, ppc_spr_tblo, ppc_spr_srr2, ppc_spr_sebr)
2916 (ppc_spr_srr3, ppc_spr_ser, ppc_spr_hid0, ppc_spr_dbsr)
2917 (ppc_spr_hid1, ppc_spr_iabr, ppc_spr_dbcr, ppc_spr_iac1)
2918 (ppc_spr_dabr, ppc_spr_iac2, ppc_spr_dac1, ppc_spr_dac2)
2919 (ppc_spr_l2cr, ppc_spr_dccr, ppc_spr_ictc, ppc_spr_iccr)
2920 (ppc_spr_thrm1, ppc_spr_pbl1, ppc_spr_thrm2, ppc_spr_pbu1)
2921 (ppc_spr_thrm3, ppc_spr_pbl2, ppc_spr_fpecr, ppc_spr_lt)
2922 (ppc_spr_pir, ppc_spr_pbu2): New enum constants for PowerPC
2923 special-purpose register numbers.
2924
2925 * rs6000-tdep.c (registers_860): Correct register name. (No PPC
2926 manual mentions 'md_twb', but many mention 'm_twb', and at that
2927 point in the register list.)
2928
2929 2004-07-14 Andrew Cagney <cagney@gnu.org>
2930
2931 * utils.c (internal_warning_problem): Fix typo, "internal-warning"
2932 instead of "internal-error".
2933
2934 2004-07-10 Joel Brobecker <brobecker@gnat.com>
2935
2936 * hppa-hpux-tdep.c: Fix a compilation failure due to a comment
2937 that was inserted inside a comment.
2938
2939 2004-07-10 Randolph Chung <tausq@debian.org>
2940
2941 * hppa-hpux-tdep.c (hppa_hpux_som_find_global_pointer): New
2942 function.
2943 (hppa_hpux_push_dummy_code): New function.
2944 (hppa_hpux_init_abi): Set push_dummy_code and call_dummy_location.
2945 Set find_global_pointer method.
2946
2947 2004-07-10 Mark Kettenis <kettenis@gnu.org>
2948
2949 * NEWS: Mention BSD libkvm interface.
2950
2951 2004-07-10 Michael Snyder <msnyder@redhat.com>
2952
2953 * symfile.c (generic_load): Comment typo.
2954 * stack.c (get_selected_block): Ditto.
2955 * regcache.c (regcache_cooked_read): Ditto.
2956 * monitor.c (monitor_debug): Ditto.
2957 * mips-tdep.c (mips_read_pc): Ditto.
2958 * i386-linux-nat.c (ps_get_thread_area): Ditto.
2959 * gdb_mbuild.sh: Ditto.
2960 * gdbarch.sh: Ditto.
2961 * gdbarch.h: Ditto.
2962
2963 2004-07-09 Paul N. Hilfinger <Hilfinger@gnat.com>
2964
2965 * ada-tasks.c: Remove file.
2966
2967 Remove ARI problems:
2968
2969 * ada-exp.y (write_var_from_sym): Reformat to put operator at
2970 beginning of line.
2971
2972 * ada-lang.c (MAX_OF_SIZE): Rename max_of_size.
2973 Add comment.
2974 Add comment concerning MAX_OF_TYPE and MIN_OF_TYPE.
2975 (MIN_OF_SIZE): Rename min_of_size. Add comment.
2976 (UMAX_OF_SIZE): Renmae umax_of_size. Add comment.
2977 (UMIN_OF_SIZE): Remove.
2978 (max_of_type): New function to replace orphan macro in gdbtypes.h
2979 (min_of_type): Ditto.
2980 (discrete_type_high_bound): Use max_of_type.
2981 (discrete_type_low_bound): Use min_of_type.
2982 (possible_user_operator_p): Move operator to beginning of line.
2983 (ada_is_variant_part): Ditto.
2984 (ensure_lval): Rewrite to avoid deprecated operations.
2985 (ada_finish_decode_line_1): Use gdbarch_convert_from_func_ptr_addr
2986 rather than adding DEPRECATED_FUNCTION_START_OFFSET.
2987 (ada_enum_name): Remove assignments in 'if' statements.
2988 (build_ada_types): Add gdbarch parameter.
2989 (_initialize_ada_language): Replace deprecated_register_gdbarch_swap
2990 with gdbarch_data_register_post_init.
2991 Use add_setshow_uinteger_cmd rather than add_set_cmd and
2992 add_show_from_set.
2993
2994 * ada-valprint.c (inspect_it): Remove declaration.
2995 (repeat_count_threshold): Remove declaration.
2996 (ada_print_floating): Remove assignments in 'if' statements.
2997 (print_str): Move operator to beginning of line.
2998
2999 2004-07-08 Jim Blandy <jimb@redhat.com>
3000
3001 * rs6000-tdep.c (registers_powerpc_nofp): Unused; deleted.
3002
3003 2004-07-08 Bob Rossi <bob@brasko.net>
3004
3005 * symtab.c (lookup_symtab): check return value of symtab_to_fullname
3006
3007 2004-07-06 Jeff Johnston <jjohnstn@redhat.com>
3008
3009 * language.h (struct_language_defn): Add new function pointer:
3010 la_class_name_from_physname. Also add new prototype for
3011 language_class_name_from_physname.
3012 * language.c (language_class_name_from_physname): New function.
3013 (unk_lang_class_name): Ditto.
3014 (unknown_language_defn, auto_language_defn): Change
3015 to add unk_lang_class_name function pointer for
3016 la_class_name_from_physname.
3017 (local_language_defn): Ditto.
3018 * dwarf2read.c (guess_structure_name): Change to call
3019 language_class_name_from_physname.
3020 (determine_class_name): Ditto.
3021 * cp-support.c (class_name_from_physname): Renamed.
3022 (cp_class_name_from_physname): New name of function.
3023 * cp-support.h: Ditto.
3024 * c-lang.c (c_language_defn): Change to add NULL
3025 for class_name_from_physname function pointer.
3026 (cplus_language_defn): Change to add cp_class_name_from_physname.
3027 * jv-lang.c (java_class_name_physname): New function.
3028 (java_find_last_component): New static routine.
3029 (java_language_defn): Add java_class_name_from_physname pointer.
3030 * ada-lang.c (ada_language_defn): Change to add NULL
3031 for class_name_from_physname function pointer.
3032 * f-lang.c (f_language_defn): Ditto.
3033 * m2-lang.c (m2_language_defn): Ditto.
3034 * objc-lang.c (objc_language_defn): Ditto.
3035 * p-lang.c (pascal_language_defn): Ditto.
3036 * scm-lang.c (scm_language_defn): Ditto.
3037
3038 2004-07-06 Andrew Cagney <cagney@gnu.org>
3039
3040 Patch from Bart Robinson.
3041 * corelow.c (core_open): Add variable "flags", or in O_LARGEFILE.
3042 (O_LARGEFILE): Define to 0, if not defined.
3043
3044 2004-07-03 Mark Kettenis <kettenis@gnu.org>
3045
3046 * m68kbsd-nat.c: Include "gdbcore.h", <sys/types.h>,
3047 <machine/pcb.h> and "bsd-kvm.h".
3048 (PCB_REGS_FP, PCB_REGS_SP): Define if not already defined.
3049 (m68kbsd_supply_pcb): New function.
3050 (_initialize_m68kbsd_nat): New prototype and function.
3051 * Makefile.in (m68kbsd-nat.o): Update dependencies.
3052 * config/m68k/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
3053 (LOADLIBES): New variable.
3054 * config/m68k/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
3055 (LOADLIBES): New variable.
3056
3057 * bsd-kvm.c (bsd_kvm_cmdlist): Remove unecessary initialization.
3058
3059 2004-07-03 Mark Kettenis <kettenis@gnu.org>
3060
3061 * bsd-kvm.c: Include "cli/cli-cmds.h", "command.h", "value.h" and
3062 <sys/proc.h>.
3063 (bsd_kvm_cmdlist): New variable.
3064 (bsd_kvm_cmd, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): New functions.
3065 (bsd_kvm_add_target): Register "kvm" command prefix, "kvm pcb"
3066 command and "kvm proc" command.
3067 * Makefile.in (bsd-kvm.o): Update dependencies.
3068
3069 2004-07-02 Mark Kettenis <kettenis@gnu.org>
3070
3071 * osabi.c: Update copyright year.
3072 (generic_elf_osabi_sniffer): Tweak comment. Look for OS-specific
3073 notes if EI_OSABI is set to ELFOSABI_HPUX.
3074
3075 2004-07-01 Michael Snyder <msnyder@redhat.com>
3076
3077 * win32-nat.c (core_dll_symbols_add): Re-indent a small section
3078 that seems to have gotten whacked out of line.
3079
3080 2004-07-01 Mark Kettenis <kettenis@gnu.org>
3081
3082 * dbxread.c (process_one_symbol) [PCC_SOL_BROKEN]: Remove dead
3083 code.
3084
3085 2004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
3086
3087 * ada-lang.c (decode_packed_array): Minor change to comment.
3088 (ada_value_slice_ptr): New function.
3089 (ada_value_slice): New function.
3090 (ada_evaluate_subexp): Remove XVS-suffix code from subscripting
3091 test. Don't know why it is there.
3092 Change slice code to use ada_value_slice_ptr and ada_value_slice, and
3093 to avoid dereferencing huge arrays from which one is slicing.
3094 (empty_array): Correct to return an array rather than
3095 a subrange value.
3096 * ada-valprint.c (print_optional_low_bound): Don't print lower bound
3097 on empty arrays (let'em use 'FIRST instead).
3098
3099 2004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
3100
3101 Address complaints from gdb_ari.sh:
3102
3103 * ada-exp.y: Include gdb_string.h rather than string.h.
3104 (convert_char_literal): Reformat declaration.
3105 * ada-lang.h: Include opaque struct declaration for struct frame_info.
3106 * ada-lex.l: Change use of free to xfree (the macro would do so
3107 anyway, but this is harmless).
3108 Include gdb_string.h rather than string.h.
3109 * ada-valprint.c (ada_val_print_stub): Change PTR => void*.
3110
3111 * ada-lang.c (parse): Remove K&Rism in parameter list.
3112 (is_name_suffix): Correct Linux => GNU/Linux in comment.
3113
3114 2004-06-30 Mark Kettenis <kettenis@gnu.org>
3115
3116 * dbxread.c (process_one_symbol) [SUN_FIXED_LBRAC_BUG]: Remove
3117 dead code.
3118
3119 2004-06-30 Mark Kettenis <kettenis@gnu.org>
3120
3121 * alphabsd-nat.c: Update copyright year.
3122 (getregs_supplies): Use ALPHA_PC_REGNUM instead of PC_REGNUM.
3123
3124 2004-06-29 Joel Brobecker <brobecker@gnat.com>
3125
3126 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): New function.
3127 (i386_cygwin_in_solib_call_trampoline): New function.
3128 (i386_cygwin_init_abi): Initialize the in_solib_call_trampoline
3129 and skip_trampoline_code gdbarch methods.
3130
3131 2004-06-29 Jim Blandy <jimb@redhat.com>
3132
3133 * Makefile.in (gdb_callback_h): Renamed from callback_h to the
3134 name actually used in the dependency lists.
3135
3136 2004-06-29 Randolph Chung <tausq@debian.org>
3137
3138 * NEWS (New native configurations): Mention GNU/Linux/hppa.
3139
3140 2004-06-29 Corinna Vinschen <vinschen@redhat.com>
3141
3142 * win32-nat.c (child_pid_to_exec_file): New function.
3143 (init_child_ops): Add child_pid_to_exec_file as to_pid_to_exec_file
3144 functionality.
3145
3146 2004-06-28 Andrew Cagney <cagney@gnu.org>
3147
3148 * defs.h (xstrvprintf): Declare.
3149 * utils.c (xstrvprintf): New function.
3150 (internal_vproblem, xstrprintf, xasprintf)
3151 (vfprintf_maybe_filtered, vfprintf_unfiltered): Use xstrvprintf.
3152 * serial.c (serial_printf): Ditto.
3153 * complaints.c (vcomplaint): Ditto.
3154
3155 2004-06-29 Corinna Vinschen <vinschen@redhat.com>
3156
3157 * infcmd.c (attach_command): Move call to target_terminal_inferior
3158 behind loading symbol table.
3159
3160 2004-06-28 Andrew Cagney <cagney@gnu.org>
3161
3162 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Revert 2004-06-24
3163 change - add back extern deprecated_ui_loop_hook declaration.
3164
3165 2004-06-28 Andrew Cagney <cagney@gnu.org>
3166
3167 * xcoffsolib.c (xcoff_solib_address): Replace xasprintf with
3168 xstrprintf.
3169 * varobj.c (varobj_gen_name, create_child, c_name_of_child)
3170 (c_value_of_variable): Ditto.
3171 * utils.c (internal_vproblem): Ditto.
3172 * solib-aix5.c (build_so_list_from_mapfile): Ditto.
3173 * remote.c (add_packet_config_cmd): Ditto.
3174 * remote-rdp.c (rdp_set_command_line): Ditto.
3175 * regcache.c (regcache_dump): Ditto.
3176 * frv-tdep.c (new_variant, new_variant): Ditto.
3177 * fbsd-proc.c (child_pid_to_exec_file): Ditto.
3178 (fbsd_find_memory_regions): Ditto.
3179 * breakpoint.c (create_thread_event_breakpoint)
3180 (create_breakpoints): Ditto.
3181 * aix-thread.c (aix_thread_pid_to_str): Ditto.
3182 * ada-lang.c (is_package_name): Ditto. Also delete xmalloc call.
3183
3184 2004-06-28 Joel Brobecker <brobecker@gnat.com>
3185
3186 * ada-lang.c: Re-indent file, with some massaging to help indent
3187 a bit when the result is otherwise really too ugly.
3188
3189 2004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
3190
3191 * frame.h (struct frame_id): Change bit field type of stack_addr_p,
3192 code_addr_p and special_addr_p to 'unsigned int'.
3193
3194 2004-06-27 Mark Kettenis <kettenis@gnu.org>
3195
3196 * i386v4-nat.c: Update copyright year and tweak comment.
3197 (regmap): Remove trailing comma.
3198 (supply_gregset): Rename local variable i to regnum. Call
3199 regcache_raw_supply instead of supply_register.
3200 (fill_gregset): Rename argument regno to regnum. Call
3201 regcache_raw_collect instead of regcache_collect.
3202
3203 2004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
3204
3205 * frame.h (struct frame_id): New fields stack_addr_p, code_addr_p
3206 and special_addr_p.
3207 (frame_id_build, frame_id_build_special): Update comments.
3208 (frame_id_build_wild): New prototype.
3209 * frame.c (frame_id_build, frame_id_build_special): Fill in new
3210 struct frame_id fields.
3211 (frame_id_build_wild): New function.
3212 (frame_id_eq, frame_id_inner): Use new struct frame_id fields.
3213
3214 2004-06-27 Mark Kettenis <kettenis@gnu.org>
3215
3216 * config/djgpp/fnchange.lst: Add entries for hppabsd-nat.c and
3217 hppabsd-tdep.c.
3218
3219 2004-06-27 Joel Brobecker <brobecker@gnat.com>
3220
3221 * ada-lang.c: Minor reformatting to conform to GNU coding standards.
3222
3223 2004-06-27 Joel Brobecker <brobecker@gnat.com>
3224
3225 * ada-lang.c: Re-indent file.
3226
3227 2004-06-27 Joel Brobecker <brobecker@gnat.com>
3228
3229 * ada-lang.c (symtab_symbol_info): Remove unused declaration.
3230 (no_symtab_msg): Likewise.
3231
3232 2004-06-27 Andreas Schwab <schwab@suse.de>
3233
3234 * source.c: Fix whitespace.
3235
3236 2004-06-27 Mark Kettenis <kettenis@gnu.org>
3237
3238 * configure.in: Include <sys/param.h> for td_pcb test.
3239 * configure: Regenerated.
3240
3241 * i386nbsd-nat.c: New file.
3242 * Makefile.in (ALLDEPFILES): Add i386nbsd-nat.c, i386nbsd-tdep.c,
3243 i386obsd-nat.c and i386obsd-tdep.c.
3244 (i386nbsd-nat.o): New dependency.
3245 * config/i386/obsd.mh (NATDEPFILES): Add i386nbsd-nat.o and
3246 bsd-kvm.o.
3247 (LOADLIBES): New variable.
3248 * config/i386/nbsdelf.mh (NATDEPFILES): Add i386nbsd-nat.o and
3249 bsd-kvm.o.
3250 (LOADLIBES): New variable.
3251
3252 * config/i386/fbsd64.mh (NATDEPFILES): Add bsd-kvm.o.
3253 (LOADLIBES): New variable.
3254
3255 * bsd-kvm.c (bsd_kvm_fetch_registers): Directly return after
3256 fetching from BSD_KVM_PADDR. Correctly lookup address for
3257 "_thread0".
3258
3259 * amd64fbsd-nat.c: Include <sys/types.h, <machine/pcb.h> and
3260 "bsd-kvm.h".
3261 (amd64fbsd_supply_pcb): New funcion.
3262 (_initialize_amd64fbsd_nat): Enable libkvm interface.
3263
3264 2004-06-27 <david@streamline-computing.com>
3265
3266 Partial fix for PR cli/1056.
3267 * valarith.c: Check for zero in division and remainder
3268 evaluation.
3269
3270 2004-06-27 Mark Kettenis <kettenis@gnu.org>
3271
3272 * i387-tdep.c: Remove excessive whitespace.
3273
3274 2004-06-26 Andrew Cagney <cagney@gnu.org>
3275
3276 * gdb-events.sh (deprecated_set_gdb_event_hooks): Deprecated.
3277 * gdb-events.h, gdb-events.c: Re-generate.
3278 * tui/tui-hooks.c (tui_install_hooks): Update.
3279 (tui_remove_hooks): Update.
3280 * mi/mi-cmd-break.c (mi_cmd_break_insert): Update.
3281
3282 2004-06-26 Mark Kettenis <kettenis@gnu.org>
3283
3284 * amd64fbsd-nat.c: Don't include <sys/procfs.h> and "gregset.h".
3285 (gregset_t, fpregset_t): Remove typedefs.
3286 (REG_OFFSET): Rename argument.
3287 (amd64bsd_r_reg_offset): Rename from reg_offset.
3288 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
3289 Remove functions.
3290 (_initialize_amd64fbsd_nat): Use amd64fbsd64_r_reg_offset instead
3291 of reg_offset.
3292 * Makefile.in (amd64fbsd-nat.o): Update dependencies.
3293
3294 * amd64-nat.c (amd64_supply_native_gregset): Fix comment.
3295
3296 * vax-tdep.c: Tweak comment.
3297
3298 Add OpenBSD/hppa support.
3299 * NEWS (New native configurations): Mention OpenBSD/hppa.
3300 * hppabsd-nat.c, hppabsd-tdep.c, config/pa/obsd.mh,
3301 config/pa/obsd.mt, config/pa/nm-obsd.h, config/pa/tm-bsd.h: New
3302 files.
3303 * Makefile.in (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
3304 (hppabsd-nat.o, hppabsd-tdep.c): New dependencies.
3305 * configure.host: Add hppa*-*-openbsd*.
3306 * configure.tgt: Add hppa*-*-openbsd*.
3307
3308 2004-06-25 Andrew Cagney <cagney@gnu.org>
3309
3310 * defs.h (deprecated_ui_loop_hook): Deprecated.
3311 * wince.c (child_wait): Update.
3312 * win32-nat.c (child_wait): Update.
3313 * v850ice.c (v850ice_wait): Update.
3314 * top.c (deprecated_ui_loop_hook): Update.
3315 * serial.h: Update.
3316 * ser-unix.c (do_hardwire_readchar, do_hardwire_readchar)
3317 (do_unix_readchar): Update.
3318 * ser-tcp.c (net_open): Update.
3319 * remote-sim.c (gdb_os_poll_quit): Update.
3320 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Update.
3321
3322 2004-06-24 Andrew Cagney <cagney@gnu.org>
3323
3324 * defs.h (deprecated_pre_add_symbol_hook)
3325 (deprecated_post_add_symbol_hook): Deprecated.
3326 * symfile.c (symbol_file_add_with_addrs_or_offsets)
3327 (symbol_file_add_with_addrs_or_offsets): Update references.
3328
3329 2004-06-24 Andrew Cagney <cagney@gnu.org>
3330
3331 * defs.h (post_add_symbol_hook, pre_add_symbol_hook)
3332 (ui_loop_hook, selected_frame_level_changed_hook): Declare.
3333 * wince.c (ui_loop_hook): Delete extern declaration.
3334 * win32-nat.c (ui_loop_hook): Delete extern declaration..
3335 * v850ice.c (ui_loop_hook): Delete extern declaration..
3336 * ser-unix.c (ui_loop_hook): Delete extern declaration..
3337 * ser-tcp.c (ui_loop_hook): Delete extern declaration..
3338 * remote-sim.c (ui_loop_hook): Delete extern declaration..
3339 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Delete extern.
3340 ui_loop_hook declaration.
3341
3342 2004-06-24 Andrew Cagney <cagney@gnu.org>
3343
3344 * objfiles.h (struct entry_info): Delete entry_func_lowpc and
3345 entry_func_highpc fields.
3346 * objfiles.c (init_entry_point_info): Do not clear
3347 entry_func_lowpc and entry_func_highpc.
3348 (objfile_relocate): Do not relocate entry_func_lowpc and
3349 entry_func_highpc.
3350 * dwarfread.c (read_func_scope): Do not set entry_func_lowpc and
3351 entry_func_highpc.
3352 * dwarf2read.c (read_func_scope): Do not set entry_func_lowpc and
3353 entry_func_highpc.
3354 * blockframe.c (legacy_frame_chain_valid): Replace tests against
3355 entry_func_lowpc and entry_func_highpc with call to
3356 inside_entry_func.
3357
3358 2004-06-24 Mark Kettenis <kettenis@gnu.org>
3359
3360 * sparc64-tdep.c (sparc64_store_arguments): Fix passing
3361 quad-precision floating point arguments in registers.
3362
3363 2004-06-24 Mark Kettenis <kettenis@gnu.org>
3364
3365 From Michael Mueller <m.mueller99@kay-mueller.de>:
3366 * sparc64-tdep.c (sparc64_frame_base_address): Take BIAS into
3367 account.
3368
3369 2004-06-22 Jeff Johnston <jjohnstn@redhat.com>
3370
3371 * infrun.c (handle_inferior_event): Initialize stopped_by_watchpoint
3372 to -1.
3373 * breakpoint.c (bpstat_stop_status): Move check for ignoring
3374 untriggered watchpoints to a separate if clause. Update function
3375 comment regarding STOPPED_BY_WATCHPOINT argument.
3376
3377 2004-06-22 Jim Blandy <jimb@redhat.com>
3378
3379 * gdbarch.sh: Doc fix.
3380
3381 2004-06-21 Martin Hunt <hunt@redhat.com>
3382 Kevin Buettner <kevinb@redhat.com>
3383
3384 * config/mips/tm-mips.h (SP_REGNUM): Delete define.
3385 * mips-tdep.h (MIPS_SP_REGNUM): Define.
3386 * mips-tdep.c (mips_gdbarch_init): Set SP_REGNUM via call
3387 to set_gdbarch_sp_regnum(). Use cooked register number.
3388 (SP_REGNUM): Replace all occurrences with MIPS_SP_REGNUM.
3389
3390 2004-06-21 Andrew Cagney <cagney@gnu.org>
3391
3392 * gdbarch.sh: When the macro field is empty, do not generate a
3393 macro definition. When the macro field is "=", generate the macro
3394 name from the upper-case function name.
3395 (NUM_REGS, NUM_PSEUDO_REGS, SP_REGNUM, PC_REGNUM, PS_REGNUM)
3396 (FP0_REGNUM, STAB_REG_TO_REGNUM, ECOFF_REG_TO_REGNUM)
3397 (DWARF_REG_TO_REGNUM, SDB_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM)
3398 (REGISTER_NAME, DEPRECATED_REGISTER_VIRTUAL_TYPE)
3399 (DEPRECATED_REGISTER_BYTES, DEPRECATED_REGISTER_BYTE)
3400 (DEPRECATED_REGISTER_RAW_SIZE, DEPRECATED_REGISTER_VIRTUAL_SIZE)
3401 (DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_FP_REGNUM)
3402 (DEPRECATED_TARGET_READ_FP, DEPRECATED_PUSH_ARGUMENTS)
3403 (DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP)
3404 (DEPRECATED_REGISTER_SIZE, CALL_DUMMY_LOCATION)
3405 (DEPRECATED_DO_REGISTERS_INFO, REGISTER_SIM_REGNO)
3406 (REGISTER_BYTES_OK, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER)
3407 (GET_LONGJMP_TARGET, DEPRECATED_INIT_FRAME_PC)
3408 (BELIEVE_PCC_PROMOTION, DEPRECATED_GET_SAVED_REGISTER)
3409 (CONVERT_REGISTER_P, REGISTER_TO_VALUE, VALUE_TO_REGISTER)
3410 (POINTER_TO_ADDRESS, ADDRESS_TO_POINTER, INTEGER_TO_ADDRESS)
3411 (DEPRECATED_POP_FRAME, DEPRECATED_STORE_STRUCT_RETURN)
3412 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE)
3413 (DEPRECATED_EXTRACT_RETURN_VALUE, DEPRECATED_STORE_RETURN_VALUE)
3414 (DEPRECATED_USE_STRUCT_CONVENTION)
3415 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
3416 (DEPRECATED_FRAME_INIT_SAVED_REGS)
3417 (DEPRECATED_INIT_EXTRA_FRAME_INFO, SKIP_PROLOGUE, INNER_THAN)
3418 (BREAKPOINT_FROM_PC, MEMORY_INSERT_BREAKPOINT)
3419 (MEMORY_REMOVE_BREAKPOINT, DECR_PC_AFTER_BREAK)
3420 (DEPRECATED_FUNCTION_START_OFFSET, FRAME_ARGS_SKIP)
3421 (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION, DEPRECATED_FRAME_CHAIN)
3422 (DEPRECATED_FRAME_CHAIN_VALID, DEPRECATED_FRAME_SAVED_PC)
3423 (DEPRECATED_FRAME_ARGS_ADDRESS, DEPRECATED_FRAME_LOCALS_ADDRESS)
3424 (DEPRECATED_SAVED_PC_AFTER_CALL, FRAME_NUM_ARGS)
3425 (DEPRECATED_STACK_ALIGN, DEPRECATED_REG_STRUCT_HAS_ADDR)
3426 (FRAME_RED_ZONE_SIZE, ADDR_BITS_REMOVE, SMASH_TEXT_ADDRESS)
3427 (SOFTWARE_SINGLE_STEP, SKIP_TRAMPOLINE_CODE)
3428 (IN_SOLIB_CALL_TRAMPOLINE, IN_SOLIB_RETURN_TRAMPOLINE)
3429 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL)
3430 (NAME_OF_MALLOC, CANNOT_STEP_BREAKPOINT)
3431 (HAVE_NONSTEPPABLE_WATCHPOINT, ADDRESS_CLASS_TYPE_FLAGS)
3432 (FETCH_POINTER_ARGUMENT): Replace the macro name with "=".
3433
3434 2004-06-21 Andrew Cagney <cagney@gnu.org>
3435
3436 * gdbarch.sh: For gdbarch_dump, print the "function" rather than
3437 macro name, and the function rather than macro value. Only wrap
3438 macro print statements in #ifdef. Move format logic to where it
3439 is needed.
3440 * gdbarch.c: Re-generate.
3441
3442 * gdbarch.sh (read): Delete "print_p" and "description", add
3443 "garbage_at_eol". Check for non-empty garbage at end-of-line.
3444 Delete references to print_p.
3445 (TARGET_ARCHITECTURE): Delete print predicate.
3446 * gdbarch.c: Re-generate.
3447
3448 * gdbarch.sh: Check that multi-arch methods do not provide a
3449 macro.
3450 (register_type, unwind_dummy_id, push_dummy_call, push_dummy_code)
3451 (print_registers_info, print_float_info, print_vector_info)
3452 (adjust_breakpoint_address, remote_translate_xfer_address)
3453 (construct_inferior_arguments, skip_solib_resolver, unwind_pc)
3454 (address_class_type_flags_to_name, unwind_sp): Remove the macro
3455 name from the multi-arch definition.
3456
3457 2004-06-20 Andrew Cagney <cagney@gnu.org>
3458
3459 * gdbarch.sh: Sort by the function, instead of macro name.
3460 * gdbarch.c: Re-generate.
3461
3462 2004-06-20 Andrew Cagney <cagney@gnu.org>
3463
3464 * gdbarch.sh: Use the function, instead of macro name in
3465 errors and the log file.
3466 (return_value): Remove stray ":" in spec.
3467
3468 * gdbarch.sh (RETURN_VALUE): Default to legacy_return_value.
3469 * gdbarch.h, gdbarch.c: Re-generate.
3470 * Makefile.in (arch-utils.o): Update dependencies.
3471 * values.c (using_struct_return): Move code calling
3472 USE_STRUCT_CONVENTION to legacy_return_value, simplify.
3473 * stack.c (return_command): Move code calling STORE_RETURN_VALUE
3474 to legacy_return_value, simplify.
3475 * infcmd.c (print_return_value): Move code calling
3476 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS and EXTRACT_RETURN_VALUE
3477 to legacy_return_value, simplify.
3478 * infcall.c (call_function_by_hand): Move code calling
3479 EXTRACT_RETURN_VALUE to legacy_return_value, simplify.
3480 * arch-utils.c: Update copyright. Include "gdbcore.h".
3481 (legacy_return_value): New function.
3482 * arch-utils.h: Update copyright.
3483 (legacy_return_value): Declare.
3484
3485 2004-06-20 Andrew Cagney <cagney@gnu.org>
3486
3487 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Deprecated.
3488 * gdbarch.h, gdbarch.c: Re-generate.
3489 * values.c (using_struct_return): Update call.
3490 * mcore-tdep.c: Update comment.
3491 * infcall.c (call_function_by_hand): Update comment.
3492 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3493 * arch-utils.h (always_use_struct_convention): Update.
3494 * v850-tdep.c (v850_gdbarch_init): Update.
3495 * sh64-tdep.c (sh64_gdbarch_init): Update.
3496 * sh-tdep.c (sh_gdbarch_init): Update.
3497 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3498 * mips-tdep.c (mips_gdbarch_init): Update.
3499 * mcore-tdep.c (mcore_gdbarch_init): Update.
3500 * m32r-tdep.c (m32r_gdbarch_init): Update.
3501 * ia64-tdep.c (ia64_gdbarch_init): Update.
3502 * h8300-tdep.c (h8300_gdbarch_init): Update.
3503 * frv-tdep.c (frv_gdbarch_init): Update.
3504 * cris-tdep.c (cris_gdbarch_init): Update.
3505 * arm-tdep.c (arm_gdbarch_init): Update.
3506 * alpha-tdep.c (alpha_gdbarch_init): Update.
3507
3508 2004-06-18 Michael Chastain <mec.gnu@mindspring.com>
3509
3510 * PROBLEMS: Add more specific information, and a work-around,
3511 for PR gdb/1458.
3512
3513 2004-06-18 Andrew Cagney <cagney@gnu.org>
3514
3515 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Deprecated.
3516 * gdbarch.h, gdbarch.c: Re-generate.
3517 * ada-lang.c (ada_finish_decode_line_1): Update.
3518 * infrun.c (handle_inferior_event): Update.
3519 * infcall.c (find_function_addr): Update.
3520 * linespec.c (minsym_found): Update.
3521 * symtab.c (find_function_start_sal, skip_prologue_using_sal):
3522 Update.
3523 * blockframe.c (legacy_frameless_look_for_prologue): Update.
3524 * cli/cli-cmds.c (disassemble_command): Update.
3525 * vax-tdep.c (vax_gdbarch_init): Update.
3526
3527 2004-06-18 Mark Kettenis <kettenis@gnu.org>
3528
3529 * i386-tdep.c (i386_collect_fpregset): Fix comment.
3530
3531 2004-06-17 Andrew Cagney <cagney@gnu.org>
3532
3533 GDB 6.1.1 released from the GDB 6.1 branch.
3534 * NEWS: Merge in 6.1.1 NEWS from 6.1 branch.
3535 * PROBLEMS: Ditto.
3536
3537 2004-06-16 Daniel Jacobowitz <dan@debian.org>
3538
3539 PR gdb/1658
3540 * dwarf2read.c (dwarf_decode_lines): Read the length of the extended
3541 operation as a uleb128. Found by Michael Coulter.
3542
3543 2004-06-16 Paul N. Hilfinger <Hilfinger@gnat.com>
3544
3545 * ada-tasks.c: Rename build_task_list to ada_build_task_list, and
3546 make it non-static.
3547 * ada-lang.h (task_control_block): declaration moved from ada-task.c
3548 to ada-lang.h; this is needed to be able to implement the kill command
3549 in multi-task mode.
3550 (task_ptid): Ditto.
3551 (task_entry): Ditto.
3552 (task_list): Ditto.
3553 (ada_build_task_list): Ditto.
3554
3555 * ada-lang.c: Conditionalize routines and data structures related
3556 to breakpoints, exceptions, completion, and symbol caching on
3557 GNAT_GDB, since these are not yet used in the submitted public sources.
3558 (ada_main_name): Editorial: Move definition out of exception-related
3559 code.
3560
3561 2004-06-15 Andrew Cagney <cagney@gnu.org>
3562
3563 * mips-tdep.c (non_heuristic_proc_desc): Delete call to
3564 deprecated_pc_in_call_dummy.
3565
3566 2004-06-15 Alan Modra <amodra@bigpond.net.au>
3567
3568 * dsrec.c (load_srec, make_srec): Use bfd_get_section_size instead of
3569 bfd_get_section_size_before_reloc or _raw_size.
3570 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
3571 * dwarf2read.c (dwarf2_locate_sections): Likewise.
3572 (dwarf2_read_section): Likewise.
3573 * elfread.c (elf_locate_sections): Likewise.
3574 * gcore.c (derive_heap_segment): Likewise.
3575 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
3576 * remote-e7000.c (e7000_load): Likewise.
3577 * remote-m32r-sdi.c (m32r_load): Likewise.
3578 * remote-mips.c (mips_load_srec): Likewise.
3579 (pmon_load_fast): Likewise.
3580 * remote.c (compare_sections_command): Likewise.
3581 * symfile.c (add_section_size_callback): Likewise.
3582 (load_section_callback): Likewise.
3583 (pc_in_unmapped_range): Likewise.
3584 (pc_in_mapped_range): Likewise.
3585 (sections_overlap): Likewise.
3586 (list_overlays_command): Likewise.
3587 (simple_overlay_update_1): Likewise.
3588 (simple_overlay_update): Likewise.
3589 * tracepoint.c (remote_set_transparent_ranges): Likewise.
3590 * win32-nat.c (core_section_load_dll_symbols): Likewise.
3591
3592 2004-06-14 Randolph Chung <tausq@debian.org>
3593
3594 * Makefile.in (hppa-hpux-tdep.o): Update dependency.
3595 * hppa-hpux-tdep.c (hp_cxx_exception_support_initialized): Make
3596 static.
3597 (hppa_hpux_inferior_created): New function.
3598 (hppa_hpux_init_abi): Register observer.
3599 * symfile.c (hp_cxx_exception_support_initialized)
3600 (RESET_HP_UX_GLOBALS): Remove HPUXHPPA specific hacks.
3601 (symbol_file_add_main_1, symbol_file_clear): Likewise.
3602
3603 2004-06-14 Randolph Chung <tausq@debian.org>
3604
3605 * MAINTAINERS (Write After Approval): Alphabetize my entry
3606 correctly.
3607
3608 2004-06-14 Andrew Cagney <cagney@gnu.org>
3609
3610 * MAINTAINERS (testsuite): List Michael Chastain as the lead
3611 testsuite maintainer.
3612
3613 2004-06-13 Andrew Cagney <cagney@gnu.org>
3614
3615 * infcmd.c (print_return_value): Fix logic, allow
3616 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS when struct_return.
3617
3618 * gdbarch.sh: For predicates, do not check GDB_MULTI_ARCH when
3619 defining any macros.
3620 * gdbarch.h: Re-generate.
3621
3622 * gdbarch.sh: Delete "level" attribute. Only check for a macro
3623 redefinition when multi-arch greater than GDB_MULTI_ARCH_PARTIAL.
3624 * gdbarch.h: Re-generate.
3625
3626 * values.c (generic_use_struct_convention): Don't check gcc_p.
3627
3628 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE)
3629 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Delete.
3630 * gdbarch.h, gdbarch.c: Regenerate.
3631 * ns32k-tdep.h (NS32K_MAX_REGISTER_RAW_SIZE)
3632 (NS32K_MAX_REGISTER_VIRTUAL_SIZE): Delete macros.
3633 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
3634 deprecated_max_register_raw_size and
3635 deprecated_max_register_virtual_size.
3636 * v850-tdep.c (v850_gdbarch_init): Ditto.
3637 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
3638 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3639 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
3640 * cris-tdep.c (cris_gdbarch_init): Ditto.
3641
3642 * gdbarch.sh (RETURN_VALUE_ON_STACK): Delete method.
3643 * gdbarch.h, gdbarch.c: Re-generate.
3644 * m68hc11-tdep.c (m68hc11_return_value_on_stack): Delete function.
3645 (m68hc11_use_struct_convention): Delete function.
3646 (m68hc11_extract_struct_value_address): Delete function.
3647 (m68hc11_return_value): New function.
3648 (m68hc11_gdbarch_init): Instead of store_return_value,
3649 extract_return_value, return_value_on_stack,
3650 deprecated_extract_struct_value_address and use_struct_convention,
3651 set return_value.
3652 * values.c (using_struct_return): Do not call
3653 RETURN_VALUE_ON_STACK.
3654 * arch-utils.h (generic_return_value_on_stack_not): Delete
3655 declaration.
3656 * arch-utils.c (generic_return_value_on_stack_not): Delete
3657 function.
3658
3659 2004-06-12 Andrew Cagney <cagney@gnu.org>
3660
3661 * values.c (register_value_being_returned): Delete function.
3662 * infcmd.c (legacy_return_value): Delete function.
3663 * infcall.c (call_function_by_hand): Inline
3664 "register_value_being_returned", simplify.
3665 * values.c (using_struct_return): Update comment, refer to
3666 print_return_value instead of register_value_being_returned.
3667 * infcmd.c (print_return_value): Inline calls to
3668 register_value_being_returned and legacy_return_value. Simplify.
3669
3670 2004-06-11 Randolph Chung <tausq@debian.org>
3671
3672 * somread.c (som_symtab_read): Exclude gcc local symbols.
3673
3674 2004-06-11 Randolph Chung <tausq@debian.org>
3675
3676 * infrun.c (handle_inferior_event): Handle the case when a
3677 trampoline ends up in the runtime resolver, and if the trampoline
3678 has no name. Rearrange the code so that all the trampoline
3679 processing happens before other step-out-of-range handling.
3680
3681 2004-06-11 Martin Hunt <hunt@redhat.com>
3682
3683 * mips-tdep.c (mips_gdbarch_init): Recognize vr4120
3684 has no fpu.
3685
3686 2004-06-10 Andrew Cagney <cagney@gnu.org>
3687
3688 * blockframe.c (legacy_inside_entry_func): Delete.
3689 (legacy_frame_chain_valid): Inline call to
3690 legacy_inside_entry_func, simplify.
3691
3692 2004-06-10 Bob Rossi <bob@brasko.net>
3693
3694 * dbxread.c (read_dbx_symtab): Set pst->dirname when known.
3695 * dwarf2read.c (partial_die_info): Add dirname field.
3696 (dwarf2_build_psymtabs_hard): Set pst->dirname when known.
3697 (read_partial_die): Save away DW_AT_comp_dir.
3698 * defs.h (symtab_to_filename): Removed.
3699 * source.c (find_and_open_source): Added.
3700 (open_source_file): Just calls find_and_open_source.
3701 (symtab_to_filename): Removed.
3702 (symtab_to_fullname, psymtab_to_fullname): Added.
3703 * source.h (psymtab_to_fullname,symtab_to_fullname): Added.
3704 * symtab.c (lookup_symtab): Call symtab_to_fullname instead of
3705 symtab_to_filename.
3706 * symtab.h (partial_symtab): Add dirname field.
3707 * mi/mi-cmd-file.c (FILENAME,FULLNAME): Added.
3708 (mi_cmd_file_list_exec_source_file): Call new function
3709 symtab_to_fullname to find fullname.
3710 (mi_cmd_file_list_exec_source_files): Added.
3711 * mi/mi-cmds.c (mi_cmd_mi_cmds): Add -file-list-exec-source-files.
3712 * mi/mi-cmds.h (mi_cmd_file_list_exec_source_files): Added.
3713
3714 2004-06-10 Andrew Cagney <cagney@gnu.org>
3715
3716 * avr-tdep.c (avr_gdbarch_init): Do not set use_struct_convention
3717 to generic_use_struct_convention, the default value.
3718
3719 * mn10300-tdep.c (mn10300_type_align): Call internal_error instead
3720 of abort.
3721
3722 * ns32k-tdep.c (ns32k_push_arguments): New function.
3723 (ns32k_gdbarch_init): Set deprecated_push_arguments.
3724 * infcall.c (call_function_by_hand): Call error instead of
3725 legacy_push_arguments.
3726 * value.h (legacy_push_arguments): Delete declaration.
3727 * valops.c (legacy_push_arguments): Delete function.
3728 (value_push): Delete function.
3729
3730 2004-06-10 Brian Ford <ford@vss.fsi.com>
3731
3732 * coffread.c (coff_symfile_read): Prevent mixed debugging formats
3733 from corrupting/reinitializing the psymtab. Support DWARF 2 frame
3734 info.
3735 * dbxread.c (elfstab_build_psymtabs): Remove bogus comment.
3736
3737 2004-06-10 Andrew Cagney <cagney@gnu.org>
3738
3739 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Delete.
3740 * gdbarch.h, gdbarch.c: Re-generate.
3741 * frame.h (deprecated_pc_in_call_dummy): Delete "sp" and "fp"
3742 parameters.
3743 * dummy-frame.c (deprecated_pc_in_call_dummy): Update.
3744 * arm-tdep.c (arm_pc_is_thumb_dummy): Call
3745 deprecated_pc_in_call_dummy instead of
3746 DEPRECATED_PC_IN_CALL_DUMMY.
3747 (arm_skip_prologue): Ditto.
3748 * xstormy16-tdep.c (xstormy16_pop_frame, xstormy16_scan_prologue)
3749 (xstormy16_frame_saved_pc, xstormy16_frame_chain): Ditto.
3750 * v850-tdep.c (v850_find_callers_reg, v850_frame_chain)
3751 (v850_pop_frame, v850_frame_saved_pc, v850_frame_init_saved_regs):
3752 Ditto.
3753 * sh64-tdep.c (sh64_frame_chain, sh64_get_saved_pr)
3754 (sh64_init_extra_frame_info, sh64_get_saved_register)
3755 (sh64_pop_frame): Ditto.
3756 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
3757 * mcore-tdep.c (mcore_find_callers_reg, mcore_frame_saved_pc)
3758 (mcore_pop_frame, mcore_init_extra_frame_info): Ditto.
3759 * h8300-tdep.c (h8300_frame_chain, h8300_frame_saved_pc)
3760 (h8300_pop_frame): Ditto.
3761 * blockframe.c (legacy_inside_entry_func)
3762 (legacy_frame_chain_valid): Ditto.
3763 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update call
3764 to deprecated_pc_in_call_dummy.
3765
3766 2004-06-09 Andrew Cagney <cagney@gnu.org>
3767
3768 * gdbarch.sh (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Do not
3769 provide a default value.
3770 (CONVERT_REGISTER_P): Default to generic_convert_register_p.
3771 * gdbarch.h, gdbarch.c: Re-generate.
3772 * arch-utils.c (generic_convert_register_p): Rename
3773 legacy_convert_register_p
3774 (legacy_register_to_value, legacy_value_to_register): Delete
3775 functions.
3776 * arch-utils.h (generic_convert_register_p): Rename
3777 legacy_convert_register_p.
3778 (legacy_register_to_value, legacy_value_to_register): Delete
3779 declarations.
3780
3781 * gdbarch.sh (DEPRECATED_REGISTER_CONVERT_TO_RAW)
3782 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL)
3783 (DEPRECATED_REGISTER_CONVERTIBLE): Delete.
3784 * gdbarch.h, gdbarch.c: Re-generate.
3785 * infcmd.c (default_print_registers_info): Simplify.
3786 * findvar.c (value_of_register): Simplify.
3787 * mi/mi-main.c (get_register): Simplify.
3788 * arch-utils.c (legacy_convert_register_p): Always return 0.
3789 (legacy_register_to_value, legacy_value_to_register): Always call
3790 internal_error.
3791
3792 * infptrace.c (child_xfer_memory) [CLEAR_INSN_CACHE]: Delete
3793 #ifdef CLEAR_INSN_CACHE code.
3794 * target.c (generic_mourn_inferior) [CLEAR_DEFERRED_STORES]:
3795 Delete #ifdef CLEAR_DEFERRED_STORES code.
3796
3797 * solib-svr4.c [HANDLE_SVR4_EXEC_EMULATORS]: Delete #ifdef code.
3798
3799 * config/ia64/tm-linux.h (TARGET_ELF64): Delete macro, Update
3800 copyright.
3801 * config/ia64/tm-aix.h (TARGET_ELF64): Ditto.
3802
3803 * config/mips/mipsv4.mh: Delete file.
3804
3805 * config/pa/tm-hppa64.h (HPREAD_ADJUST_STACK_ADDRESS): Delete
3806 unreferenced macro.
3807 (hpread_adjust_stack_address): Delete declaration.
3808
3809 2004-06-08 Andrew Cagney <cagney@gnu.org>
3810
3811 * infptrace.c [ATTACH_DETACH]: Remove #ifdef wrappers.
3812 (attach, detach): When neither PT_ATTACH / PT_DETACH nor
3813 PTRACE_ATTACH / PTRACE_DETACH available call error.
3814 (PT_ATTACH, PT_DETACH): Move definition to attach / detach.
3815 * infttrace.c (update_thread_state_after_attach, attach, detach):
3816 Remove #ifdef wrappers.
3817 * inftarg.c (child_attach, child_detach): Remove #ifdef wrappers.
3818 * gnu-nat.c [ATTACH_DETACH]: Remove #ifdef wrappers.
3819 * config/nm-bsd.h (ATTACH_DETACH): Delete.
3820 * config/nm-sysv4.h (ATTACH_DETACH): Delete.
3821 * config/nm-nbsd.h (ATTACH_DETACH): Delete.
3822 * config/nm-linux.h (ATTACH_DETACH): Delete.
3823 * config/rs6000/nm-rs6000.h (ATTACH_DETACH): Delete.
3824 * config/pa/nm-hppah.h (ATTACH_DETACH): Delete.
3825 * config/i386/nm-i386sco5.h (ATTACH_DETACH): Delete.
3826 * config/i386/nm-i386sco4.h (ATTACH_DETACH): Delete.
3827 * config/i386/nm-i386gnu.h (ATTACH_DETACH): Delete.
3828
3829 2004-06-08 Corinna Vinschen <vinschen@redhat.com>
3830
3831 * configure.in: Set $configdir to the right OS specific value.
3832 Use value when setting $tcldir and $tkdir.
3833 * configure: Regenerate.
3834
3835 2004-06-06 Paul Brook <paul@codesourcery.com>
3836
3837 * gdb/dwarf2-frame.c (decode_frame_entry_1): Decode version 3 CIE
3838 records.
3839
3840 2004-06-08 Paul N. Hilfinger <Hilfinger@gnat.com>
3841
3842 * ada-lang.c (lookup_symbol_in_language): New function to allow
3843 re-use of another language's symbol lookup code. (Placed here
3844 temporarily while Ada support is being integrated into the public
3845 tree).
3846 (restore_language): New auxiliary function for
3847 lookup_symbol_in_language.
3848 * ada-lang.h (lookup_symbol_in_language): Declare (Placed here
3849 temporarily while Ada support is being integrated into the public
3850 tree).
3851
3852 2004-06-08 Alexandre Oliva <aoliva@redhat.com>
3853
3854 * Makefile.in (check//%): New.
3855
3856 * mn10300-tdep.c (mn10300_extract_return_value): Rewrite.
3857 (mn10300_store_return_value): Rewrite.
3858 (mn10300_type_align): New.
3859 (mn10300_use_struct_convention): Rewrite.
3860 (mn10300_return_value): New, using all of the above.
3861 (mn10300_pop_frame_regular): Add saved_regs_size.
3862 (mn10300_gdbarch_init): Remove deprecated rewritten entry points.
3863
3864 * mn10300-tdep.c (mn10300_analyze_prologue): Don't compute saved
3865 regs if PC is on movm.
3866
3867 2004-06-07 Jim Blandy <jimb@redhat.com>
3868
3869 Add native Linux support for the PowerPC E500.
3870 * ppc-tdep.h (struct gdbarch_tdep): New member: 'ppc_gprs_pseudo_p'.
3871 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it to false on
3872 all architectures except the E500.
3873 * ppc-linux-nat.c: (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): New
3874 #definitions.
3875 (struct gdb_evrregset_t): New type.
3876 (have_ptrace_getsetevrregs): New variable.
3877 (get_spe_registers, read_spliced_spe_reg, fetch_spe_register,
3878 fetch_spe_registers): New functions.
3879 (fetch_register): Call fetch_spe_register as appropriate.
3880 Assert that we're only passed raw register numbers.
3881 (fetch_ppc_registers): Call fetch_spe_registers as appropriate.
3882 Don't fetch gprs if they're pseudoregisters.
3883 (set_spe_registers, write_spliced_spe_reg, store_spe_register,
3884 store_spe_registers): New functions.
3885 (store_register): Call store_spe_register as appropriate.
3886 Assert that we're only passed raw register numbers.
3887 (store_ppc_registers): Call store_spe_registers as appropriate.
3888 Don't store gprs if they're pseudoregisters.
3889
3890 2004-06-07 Jeff Johnston <jjohnstn@redhat.com>
3891
3892 * thread-db.c (thread_get_info_callback): Fill in the thread_info
3893 struct if one exists, even if we are dealing with a zombie thread.
3894
3895 2004-06-07 Andrew Cagney <cagney@gnu.org>
3896
3897 * target.h (PC_REQUIRES_RUN_BEFORE_USE): Delete definition.
3898 * config/pa/tm-hppa.h (DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE):
3899 Rename PC_REQUIRES_RUN_BEFORE_USE.
3900 * breakpoint.c (breakpoint_sals_to_pc): Update. Wrap reference in
3901 #ifdef.
3902
3903 2004-06-07 Randolph Chung <tausq@debian.org>
3904
3905 * hppa-tdep.c (hppa_frame_cache): Handle the cases when we start
3906 unwinding after sp has been saved to the stack but before the end
3907 of the prologue, and after the fp has been modified but before it has
3908 been saved to the stack.
3909 (hppa_frame_base_address, hppa_frame_base, hppa_frame_base_sniffer):
3910 Remove superfluous definitions.
3911 (hppa_gdbarch_init): Remove superfluous frame base sniffer.
3912
3913 2004-06-07 Guy Martin <gmsoft@gentoo.org>
3914
3915 Committed by Randolph Chung.
3916 * hppa-linux-nat.c: Include the correct version of the header file
3917 depending on the kernel version.
3918
3919 2004-06-06 Randolph Chung <tausq@debian.org>
3920
3921 * infrun.c (trap_expected_after_continue): Remove HP_OS_BUG workaround.
3922 (proceed, init_wait_for_inferior, handle_inferior_event): Likewise.
3923
3924 2004-06-06 Randolph Chung <tausq@debian.org>
3925
3926 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
3927 (hppa_hpux_skip_trampoline_code): Don't cache symbol values.
3928 * hppa-linux-tdep.c (hppa_linux_in_dyncall): Likewise.
3929 * hppa-tdep.c (hppa_symbol_address): New function definition.
3930 * hppa-tdep.h (hppa_symbol_address): New function declaration.
3931
3932 2004-06-06 Randolph Chung <tausq@debian.org>
3933
3934 * hppa-tdep.h (struct value): Forward declaration.
3935 (gdbarch_tdep): Define tdep find_global_pointer method.
3936 * hppa-tdep.c (hppa32_push_dummy_call): Find the global pointer
3937 associated with the function we are trying to call, and write it
3938 to the gp register.
3939 (hppa32_convert_from_funct_ptr_addr): New function.
3940 (hppa_find_global_pointer): New function.
3941 (hppa_gdbarch_init): Set default find_global_pointer method; set
3942 convert_from_func_ptr_addr method.
3943 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): New function.
3944 (hppa_linux_init_abi): Set find_global_pointer method.
3945 * Makefile.in (hppa-linux-tdep.o): Add value.h dependency.
3946
3947 2004-06-06 Randolph Chung <tausq@debian.org>
3948
3949 * gdbarch.sh (PUSH_DUMMY_CALL): Change CORE_ADDR func_addr argument
3950 to struct value *function.
3951 * gdbarch.c: Regenerate.
3952 * gdbarch.h: Likewise.
3953 * infcall.c (call_function_by_hand): Pass entire function value
3954 to push_dummy_call.
3955
3956 * Makefile.in (alpha-tdep.o, frv-tdep.o, ia64-tdep.o, mips-tdep.o)
3957 (ppc-sysv-tdep.o, rs6000-tdep.o): Update dependencies.
3958 * alpha-tdep.c (alpha_push_dummy_call): Update call signature.
3959 * amd64-tdep.c (amd64_push_dummy_call): Likewise.
3960 * arm-tdep.c (arm_push_dummy_call): Likewise.
3961 * avr-tdep.c (avr_push_dummy_call): Likewise.
3962 * cris-tdep.c (cris_push_dummy_call): Likewise.
3963 * d10v-tdep.c (d10v_push_dummy_call): Likewise.
3964 * frv-tdep.c (frv_push_dummy_call): Likewise.
3965 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
3966 * hppa-tdep.c (hppa32_push_dummy_call)
3967 (hppa64_push_dummy_call): Likewise.
3968 * i386-tdep.c (i386_push_dummy_call): Likewise.
3969 * ia64-tdep.c (ia64_push_dummy_call): Likewise.
3970 * m32r-tdep.c (m32r_push_dummy_call): Likewise.
3971 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
3972 * m68k-tdep.c (m68k_push_dummy_call): Likewise.
3973 * m88k-tdep.c (m88k_push_dummy_call): Likewise.
3974 * mips-tdep.c (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
3975 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Likewise.
3976 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
3977 (ppc64_sysv_abi_push_dummy_call): Likewise.
3978 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call)
3979 (ppc64_sysv_abi_push_dummy_call): Likewise.
3980 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
3981 * s390-tdep.c (s390_push_dummy_call): Likewise.
3982 * sh-tdep.c (sh_push_dummy_call_fpu)
3983 (sh_push_dummy_call_nofpu): Likewise.
3984 * sparc-tdep.c (sparc32_push_dummy_call): Likewise.
3985 * sparc64-tdep.c (sparc64_push_dummy_call): Likewise.
3986 * vax-tdep.c (vax_push_dummy_call): Likewise.
3987
3988 2004-06-04 Jim Blandy <jimb@redhat.com>
3989
3990 * ppc-linux-nat.c (fetch_register): Don't forget to pass the
3991 gdbarch argument to register_size.
3992
3993 * rs6000-tdep.c (rs6000_store_return_value): Use
3994 regcache_cooked_write_part instead of
3995 deprecated_write_register_bytes.
3996 (rs6000_gdbarch_init): Register it for gdbarch_store_return_value,
3997 not gdbarch_deprecated_store_return_value.
3998
3999 * ppc-linux-nat.c (store_register, fetch_register): Remove
4000 incorrect assertions. Simplify and generalize handling of
4001 transfers whose sizes are not multiples of, or less than, sizeof
4002 (PTRACE_XFER_TYPE).
4003
4004 2004-06-04 Jeff Johnston <jjohnstn@redhat.com>
4005
4006 * infrun.c (handle_inferior_event): Don't treat an invalid ptid
4007 as a new thread event.
4008 * thread-db.c (thread_get_info_callback): If the thread is a
4009 zombie, return TD_THR_ZOMBIE.
4010 (thread_from_lwp): If thread_get_info_callback returns
4011 TD_THR_ZOMBIE, check if the thread is still on the thread list
4012 and return a -1 ptid if not found.
4013 (thread_db_wait): If thread_from_lwp returns a -1 ptid, then
4014 change the status to TARGET_WAITKIND_SPURIOUS.
4015
4016 2004-06-03 Corinna Vinschen <vinschen@redhat.com>
4017
4018 * sh-tdep.c (sh3e_sh4_store_return_value): Correctly store
4019 double values in little endian mode.
4020
4021 2004-06-02 Albert Chin-A-Young <china@thewrittenword.com>
4022
4023 Committed by Andrew Cagney.
4024 * gdb/dictionary.c, gdb/gdbtypes.h: Remove trailing comma
4025 after last enum constant to avoid error from IBM C
4026 compiler.
4027
4028 2004-06-02 Jim Blandy <jimb@redhat.com>
4029
4030 * ppc-linux-nat.c (store_register, fetch_register): Rename 'mess'
4031 to 'message', and make it local to the lone block that uses it.
4032
4033 * ppc-linux-nat.c (store_register): Remove unused local 'offset'.
4034
4035 2004-06-02 Paul N. Hilfinger <hilfinger@gnat.com>
4036
4037 * ada-exp.y: Update copyright notice.
4038 Include block.h.
4039
4040 Replace REGNAME, LAST, INTERNAL_VARIABLE with
4041 SPECIAL_VARIABLE and unify the treatment of these cases.
4042
4043 (write_attribute_call0): Remove.
4044 (write_attribute_call1): Remove.
4045 (write_attribute_calln): Remove.
4046 (save_qualifier): Add missing semicolon.
4047
4048 (simple_exp,exp): Decomment (i.e., reactivate) code that was
4049 temporarily disabled to allow compilation with FSF head version.
4050
4051 (simple_exp syntax): Remove use of OP_ADA_ATTRIBUTE and
4052 use individual operators (OP_*) for all attributes.
4053 (exp syntax): Use write_int.
4054 Handle STRING literals with OP_STRING.
4055 (variable syntax): Add limit parameter to calls to
4056 write_object_renaming.
4057
4058 (temp_parse_space): New definition to hold entities that need
4059 only live until the next call to ada_parse.
4060 (string_to_operator): Rename fields of ada_opname_table entries.
4061
4062 (write_var_from_sym): Record block.
4063 (write_var_from_name): Minor reformatting.
4064 Make sure saved name is properly encoded in the case of multiple
4065 matches, and set its language to Ada.
4066 Update comment.
4067 Modify to indicate unresolved name as symbol in the UNRESOLVED
4068 namespace, allocated in temp_parse_space.
4069 (write_int): New function.
4070
4071 (write_object_renaming): Add max_depth parameter to limit
4072 chains of object renamings.
4073 Handle case where root of renaming expression is itself a renaming.
4074 Use temp_parse_space for temporary name buffer.
4075 Handle renamings to dereferenced pointers (___XEXA suffices).
4076
4077 (ada_parse, yyerror, string_to_operator,
4078 write_var_from_sym, write_var_from_name, write_attribute_call0,
4079 write_attribute_call1, write_attribute_calln,
4080 write_object_renaming): Protoize.
4081
4082 (_initialize_ada_exp): New function.
4083
4084 * ada-lang.c: Update copyright notice.
4085 General terminology change to conform to GNAT compiler usage:
4086 mangle => encode, demangle => decode
4087 Include gdb_obstack.h.
4088 Include gdb_regex.h
4089 Include frame.h
4090 Include hashtab.h
4091 Include completer.h
4092 Include gdb_stat.h
4093 Include block.h
4094 Include infcall.h
4095
4096 (ADA_RETAIN_DOTS): Make sure this is defined.
4097 (TRUNCATION_TOWARDS_ZERO): Define.
4098 (struct string_vector): Define.
4099 (unresolved_names): Remove definition.
4100 (xnew_string_vector): New function.
4101 (string_vector_append): New function.
4102 (extract_string): Make static.
4103 (ada_unqualified_name): New function.
4104 (add_angle_brackets): New function.
4105 (function_name_from_pc): New function.
4106 (place_on_stack): Rename to ensure_lval.
4107
4108 (ensure_lval): Renamed from place_on_stack.
4109 Make identity on lvals.
4110 Update comment.
4111 (is_nonfunction): New interface.
4112 Only symbols in LOC_CONST class can be enumerals.
4113 (fill_in_ada_prototype): Remove; now independent of language.
4114 (add_defn_to_vec): Add obstack and symtab arguments.
4115 Use obstack to hold collected definitions.
4116 (num_defns_collected): New function.
4117 (defns_collected): New function.
4118 (ada_resolve_subexp): Rename to resolve_subexp.
4119 (resolve_subexp): Renamed from ada_resolve_subexp.
4120 (ada_op_name): Return non-const result.
4121 (ada_decoded_op_name): Renamed from ada_op_name, now used for
4122 other purposes.
4123
4124 (to_fixed_array_type): Add declaration.
4125 (coerce_unspec_val_to_type): Remove offset parameter.
4126 (find_sal_from_funcs_and_line): New interface.
4127 (find_line_in_linetable): Ditto.
4128
4129 (all_sals_for_line): Rename to ada_sals_for_line and make
4130 global.
4131 Add new parameter. When set, do not ask the user to choose the
4132 instance, but use the first one found instead.
4133 Use given line number in returned sals.
4134 Fix comment.
4135 Skip the prologue if funfirstline is set.
4136 Correct for memory leak when 0 lines found.
4137
4138 (value_pos_atr): Use pos_atr.
4139 (pos_atr): New function.
4140 (standard_lookup): Add block parameter.
4141
4142 (makeTimeStart): Remove declaration and uses.
4143 (makeTimeStop): Remove declaration and uses.
4144
4145 (ada_completer_word_break_characters): Allow for VMS.
4146 (ADA_MAIN_PROGRAM_SYMBOL_NAME): Make into constant.
4147 (raise_sym_name): New constant.
4148 (raise_unhandled_sym_name): New constant.
4149 (raise_assert_sym_name): New constant.
4150 (process_raise_exception_name): New constant.
4151 (longest_exception_template): New constant.
4152 (warning_limit): New variable to limit warnings during expression
4153 evaluation.
4154 (warnings_issued): New variable to keep track of warnings issued.
4155 (known_runtime_file_name_patterns): New constant.
4156 (known_auxiliary_function_name_patterns): New constant.
4157 (symbol_list_obstack): New variable.
4158
4159 (field_name_match,is_suffix,is_suppressed_name,ada_encode,
4160 ada_decode,ada_match_name,encoded_ordered_before,equiv_types,
4161 lesseq_defined_than,is_nondebugging_type,is_name_suffix,wild_match,
4162 find_sal_from_funcs_and_line, ada_breakpoint_rewrite,
4163 ada_is_tagged_type, ada_is_parent_field, ada_is_wrapper_field,
4164 ada_variant_discrim_name, field_alignment, dynamic_template_type,
4165 ada_is_character_type, ada_is_aligner_type, ada_is_vax_floating_type):
4166 Replace use of deprecated STREQ and STREQN macros by calls to strncmp
4167 and strcmp.
4168
4169 (ada_get_field_index): New function.
4170 (lim_warning): New function.
4171 (ada_translate_error_message): New function.
4172 (MAX_OF_SIZE): New function.
4173 (MIN_OF_SIZE): New function.
4174 (UMAX_OF_SIZE): New function.
4175 (UMIN_OF_SIZE): New function.
4176 (discrete_type_high_bound): New function.
4177 (discrete_type_low_bound): New function.
4178 (base_type): New function.
4179 (do_command): Remove.
4180
4181 (ada_update_initial_language): Use language_ada, not language_unknown.
4182 (ada_encode): Renamed from ada_mangle.
4183 Obey ADA_RETAIN_DOTS.
4184 (ada_decode): Renamed from ada_demangle.
4185 Update coding conventions.
4186 (decoded_names_store): New hash table.
4187 (ada_decode_symbol): New function.
4188 (ada_la_decode): New function.
4189
4190 (modify_general_field): Correct computations of offset and bit
4191 position.
4192 (desc_base_type): Handle ref types, too.
4193 (ada_is_direct_array_type): New function.
4194
4195 (ada_is_simple_array): Rename to ada_is_simple_array_type.
4196 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
4197 (ada_is_bogus_array_descriptor,ada_type_of_array,
4198 ada_coerce_to_simple_array_ptr,ada_coerce_to_simple_array,
4199 ada_type_match,convert_actual,ada_evaluate_subexp): Use renamed
4200 ada_is_array_descriptor_type.
4201
4202 (ada_coerce_to_simple_array_type): Fix incorrect value freeing.
4203 (ada_is_packed_array_type): Handle pointers or
4204 references to packed arrays as well.
4205 (packed_array_type): Uncomment use of TYPE_FLAG_FIXED_INSTANCE.
4206 (decode_packed_array_type): Search for the packed array type
4207 symbol in the currently selected block and associated
4208 superblocks too.
4209 Use lookup_symbol again.
4210
4211 (decode_packed_array): Handle pointers and references.
4212 Update call to coerce_unspec_val_to_type.
4213 (decode_packed_array_type,value_subscript_packed): Limit warnings.
4214 (ada_value_primitive_packed_val): Improve comment.
4215
4216 (ada_index_type): Substitute int type for "undefined".
4217 (ada_index_type,ada_array_bound_from_type,ada_array_bound,
4218 ada_array_langth, ada_is_string_type): Use renamed
4219 ada_is_simple_array_type.
4220 (empty_array): New function.
4221
4222 (ada_resolve): Rename to resolve.
4223 (resolve): Make static.
4224 Call renamed resolve_subexp.
4225 Update comment.
4226 (ada_resolve_subexp): Rename to resolve_subexp.
4227 (resolve_subexp): Update comment.
4228 Decomment disabled code.
4229 Add LOC_COMPUTED* cases.
4230 Modify to use temporary struct symbols (marked as being in
4231 UNDEF_NAMESPACE) to indicate unresolved names, instead of
4232 OP_UNRESOLVED_VALUE.
4233 Remove OP_ATTRIBUTE; use individual opcodes for attributes.
4234 Add OP_STRING case.
4235 Remove OP_ARRAY.
4236 Use SYMBOL_PRINT_NAME instead of ada_demangle.
4237 Use new ada_lookup_symbol_list interface.
4238 Use new ada_resolve_function interface.
4239 Remove OP_TYPE case.
4240
4241 (ada_args_match): Idiot proof against null actuals.
4242 Use intermediate variables to clarify.
4243 (ada_resolve_function): Update comment and interface.
4244 (mangled_ordered_before): Rename to encoded_ordered_before and
4245 update comment.
4246 (sort_choices): Update comment and interface.
4247 Use SYMBOL_LINKAGE_NAME in place of SYMBOL_NAME.
4248 (user_select_syms): New interface.
4249 Use new sort_choices interface.
4250 Use SYMBOL_PRINT_NAME rather than SYMBOL_SOURCE_NAME.
4251 (possible_user_operator_p): Idiot-proof against null values.
4252 (ada_simple_renamed_entity): Don't make cleanup; rely on
4253 caller to free result string.
4254 Remove const from return type.
4255 (make_array_descriptor): Rename uses of place_on_stack to
4256 ensure_lval.
4257 Make sure that arrays are on stack.
4258
4259 (HASH_SIZE): Define.
4260 (struct cache_entry): Define.
4261 (cache_space): Define.
4262 (cache): Define.
4263 (clear_ada_sym_cache): New function.
4264 (find_entry): New function.
4265 (lookup_cached_symbol): New function.
4266 (defn_vector_size): Define.
4267 (cache_symbol): New function.
4268 (defn_symbols): Remove.
4269
4270 (standard_lookup): Use lookup_symbol_in_language to get effect of
4271 C lookup.
4272 Cache results.
4273
4274 (symbol_completion_match): New function.
4275 (symbol_completion_add): New function.
4276 (ada_make_symbol_completion_list): New function.
4277
4278 (ada_lookup_partial_symbol,ada_lookup_simple_minsym,
4279 add_symbols_from_enclosing_procs,remove_extra_symbols): Replace
4280 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
4281 (symtab_for_sym): Handle LOC_COMPUTED, LOC_COMPUTED_ARG.
4282
4283 (ada_lookup_simple_minsym): New function.
4284 (ada_lookup_minimal_symbol): Use ada_lookup_simple_minsym.
4285
4286 (add_symbols_from_enclosing_procs): New interface.
4287 Conditionalize more helpfully.
4288 Don't bother if program isn't running.
4289 Use new interface to get_frame_block.
4290 Limit number of levels searched with MAX_LEXICAL_LEVELS, just in case.
4291
4292 (remove_extra_symbols): New interface.
4293 (xget_renaming_scope): New function.
4294 (is_package_name): New function.
4295 (renaming_is_visible): New function.
4296 (remove_out_of_scope_renamings): New function.
4297
4298 (ada_lookup_symbol_list): New interface.
4299 Properly reinitialize the symbol list obstack.
4300 Don't call add_symbols_from_enclosing_procs if we start from a
4301 static or global block.
4302 Use new interfaces to ada_add_block_symbols, add_defn_to_vec,
4303 add_symbols_from_enclosing_procs.
4304 Add symtab data to cached entries.
4305 Handle symbols prefixed with
4306 "standard__" specially; strip prefix and don't look in local symbols.
4307 Do not include out of scope renaming symbols in list of
4308 symbols returned.
4309 Add const to block parameter.
4310 Move check for non-local, non-global symbols earlier.
4311 Remove timing stuff.
4312 (ada_lookup_symbol): New interface.
4313 Find symtab as well.
4314 (ada_lookup_symbol_nonlocal): New function.
4315
4316 (is_name_suffix): Enhance suffix detection to recognize
4317 an optional "__[:digit:]+" before any "\.[:digit:]+" suffix.
4318 (is_dot_digits_suffix): New function.
4319 (wild_match): Ignore ".[:digit:]*" suffixes during matches.
4320
4321 (ada_add_block_symbols): New interface. Use obstack to return results
4322 in a vector of struct ada_symbol_infos. Add symtab argument.
4323 Use new interface to add_defn_to_vec.
4324 Remove calls to fill_in_ada_prototype.
4325 Use BLOCK_BUCKETS, BLOCK_BUCKET.
4326
4327 (ada_finish_decode_line_1): Add const qualification to local to fix
4328 warning.
4329 Start looking in static block for functions to avoid attempts
4330 to search frame chain for up-level variables.
4331 Adapt to new ada_sals_for_line interface.
4332 Use new interfaces to ada_lookup_symbol_list and user_select_syms.
4333 Handle quoting of the function name inside the spec string.
4334 Skip prologue when funfirstline is set and update the
4335 function documentation to that effect.
4336
4337 (debug_print_lines, debug_print_block, debug_print_blocks,
4338 debug_print_symtab): Remove.
4339
4340 (ada_main_name): New function.
4341 (ada_exception_breakpoint_type): New function.
4342 (is_known_support_routine): New function.
4343 (ada_find_printable_frame): Renamed from find_printable_frame and made
4344 global.
4345 Remove level parameter.
4346 Use new interface to select_frame.
4347
4348 (begin_command): Remove.
4349 (ada_adjust_exception_stop): New function.
4350 (ada_print_exception_stop): New function.
4351 (exception_name_from_cond): New function.
4352 (ada_report_exception_break): Replace disabled code with
4353 conditionalization on GNAT_GDB.
4354 Get the exception name from the condition string.
4355 Remove and move functionality into new functions
4356 ada_print_exception_breakpoint_task and
4357 ada_print_exception_breakpoint_nontask.
4358 (error_breakpoint_runtime_sym_not_found): New function.
4359 (is_runtime_sym_defined): New function.
4360 (ada_breakpoint_rewrite): Uncomment suppressed code.
4361 Use symbolic error-message and runtime-symbol names.
4362 Surround runtime symbol names in quotes.
4363 Allow non-specific breakpoints on exceptions and assertions before
4364 program starts.
4365
4366 (ada_is_tagged_type): Add parameter.
4367 (ada_is_tag_type): New function.
4368 (ada_tag_type): Use new ada_lookup_struct_elt_type interface.
4369 (ada_variant_discrim_type): Ditto.
4370 (value_tag_from_contents_and_address): New function.
4371 (type_from_tag): New function.
4372 (struct tag_args): New structure used to communicate with
4373 ada_tag_name_1.
4374 (ada_tag_name_1): New function.
4375 (ada_tag_name): New function.
4376
4377 (ada_scan_number): Update comment.
4378 (find_struct_field): New function.
4379 (ada_search_struct_field): Make static.
4380 (ada_value_struct_elt): New version that returns references when
4381 given pointers or references to structs.
4382 (ada_lookup_struct_elt_type): Add 'refok' parameter.
4383 (ada_which_variant_applies): Use new ada_lookup_struct_elt_type
4384 interface.
4385 (ada_value_ind): Use new ada_to_fixed_value interface.
4386 (ada_coerce_ref): Ditto.
4387 (field_offset): Remove.
4388
4389 (ada_find_any_symbol): New function, extracted from ada_find_any_type.
4390 (ada_find_renaming_symbol): New function.
4391 (ada_prefer_type): Prefer named types over unnamed ones.
4392 (variant_field_index): New function.
4393 (contains_variant_part): Removed: subsumed by variant_field_index.
4394 (ada_template_to_fixed_record_type): New function, mostly from
4395 template_to_fixed_record_type.
4396 (template_to_fixed_record_type):
4397 Do not scan the type fields beyond the last one; prevents a
4398 potential SEGV.
4399 Handle case where variant field is listed BEFORE discriminant it
4400 depends on.
4401 Fix calculation of record length when bit length is
4402 not evenly divisible by char length.
4403 Move code to ada_template_to_fixed_record_type and call it.
4404
4405 (template_to_static_fixed_type): Revise comment.
4406 Modify to work on ordinary record types as well as templates,
4407 so as to handle fields that use ___XVE or ___XVU encodings.
4408 (to_record_with_fixed_variant_part): Fill out comment.
4409 Initialize C++ stuff in right type.
4410 Allow case where DVAL is null.
4411 Handle case where variant field is not last.
4412 Fix typo concerning record length.
4413 (to_fixed_record_type): Decomment disabled code.
4414 (to_fixed_record_type): Use variant_field_index instead of
4415 contains_variant_part.
4416 (to_fixed_variant_branch_type): Ditto.
4417 (to_fixed_array_type): Decomment disabled code.
4418 (ada_to_fixed_type): Convert tagged types to the specific type.
4419 Deactivate the size-check for array types in order to avoid
4420 some false size alarms.
4421 (to_static_fixed_type): Decomment disabled code.
4422 Modify to call template_to_static_fixed_type
4423 on ordinary structs, not just ___XVE- and ___XVU-encoded fields.
4424 (ada_to_fixed_value_create): Renamed version of old ada_to_fixed_value.
4425 Remove valaddr argument, as it is never really used.
4426 (ada_to_fixed_value): Change interface to act on single struct value*
4427 operand.
4428 (adjust_pc_past_prologue): New function.
4429 (ada_attribute_name): Modify to take enum exp_opcode argument.
4430
4431 (ada_enum_name): Recognize new homonym-distinguishing convention.
4432 Adjust local variable's type to remove compiler warning.
4433 Fix a small problem in the part that unqualifies the enumeration name.
4434 (ada_value_binop): New function.
4435 (ada_value_equal): New function.
4436
4437 (ada_evaluate_subexp): Use new ada_lookup_struct_elt_type interface.
4438 Don't give error message when not doing normal evaluation
4439 and a tagged type doesn't seem to contain a structure member.
4440 Give error message for packed arrays.
4441 For indexing arrays, handle pointers to packed arrays correctly.
4442 Handle case of 'first and 'last attributes of bare integral type
4443 without encoded subtype info.
4444 Remove some unnecessary casts.
4445 Fix uninitialized value of type in computing 'first, 'last, or 'length
4446 of array object.
4447 Add BINOP_EQUAL and BINOP_NOTEQUAL cases.
4448 Remove binop_user_defined_p tests and value_x_binop and value_x_unop
4449 calls.
4450 Attributes are now exp_opcode values.
4451 Correct treatment of 'modulus.
4452 Better error message for taking 'length of wrong kind of type;
4453 improve comment.
4454 Change EVAL_NORMAL to noside for consistency.
4455 Use ada_value_binop for DIV, MOD, REM.
4456 Make special case out of array of length 0, since an argument
4457 of 0 upsets some platforms' malloc.
4458 Use OP_STRING instead of OP_ARRAY.
4459 For slice, add check that we have an array type before extracting
4460 a slice out of it. Avoids a SEGV.
4461 When evaluating an array slice, if the array type is a reference to
4462 an aligner type, then replace the aligner type by the actual type.
4463 Decomment disabled code.
4464 Remove some dead code.
4465 Use temporary struct symbols (marked as being in UNDEF_NAMESPACE)
4466 to indicate unresolved names, instead of OP_UNRESOLVED_VALUE.
4467 Rename BINOP_MBR to BINOP_IN_BOUNDS, TERNOP_MBR to TERNOP_IN_RANGE,
4468 and UNOP_MBR to UNOP_IN_RANGE.
4469 If an array type has a parallel ___XVE type, then use it.
4470 Turn arrays into pointers for lvalue arrays.
4471 Change TERNOP_SLICE code to work even when bounds are unknown, ignoring
4472 bounds error and handle 0-length slices.
4473 Use lim_warning.
4474 When selecting fields, apply ada_to_fixed_value (because the fields
4475 might have ___XVU or ___XVE encodings even if not dynamic.)
4476 Use ada_to_fixed_value_create and new ada_to_fixed_value interface.
4477 (ada_is_system_address_type): New function.
4478
4479 (get_var_value): Use new interface to ada_lookup_symbol_list.
4480 (get_int_var_value): New interface.
4481 (to_fixed_range_type): Allow unknown bound, with warning.
4482 (ada_is_modular_type): Decomment disabled code.
4483 (ADA_OPERATORS): New definition.
4484 (ada_operator_length): New function.
4485 (ada_expr_op_name): New function.
4486 (ada_forward_operator_length): New function.
4487 (ada_dump_subexp_body): New function.
4488 (ada_print_subexp): New function.
4489 (ada_exp_descriptor): New constant.
4490 (ada_op_print_tab): Add 'size. Remove FIXMEs.
4491 (ada_language_defn): Add ada_exp_descriptor entry.
4492 Change ada_parse => parse.
4493 Add post-parser entry.
4494 Use ada-specific non-local symbol lookup.
4495 Don't use C-style arrays.
4496 String lower-bound is 1.
4497 Decomment disabled code.
4498 (parse): New function.
4499 New fields ada_translate_error_message, ada_lookup_symbol,
4500 ada_lookup_minimal_symbol.
4501
4502 * ada-lang.h: Update copyright dates.
4503 Replace the mangle/demangle terminology throughout by the
4504 more appropriate encode/decode one.
4505 Include breakpoint.h.
4506 Forward declare struct partial_symbol, struct block.
4507 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Define.
4508 (EXTRACT_ADDRESS): Remove.
4509 (EXTRACT_INT): Remove.
4510 (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Define.
4511 (MAX_ENCLOSING_FRAME_LEVELS): Define.
4512 (MAX_RENAMING_CHAIN_LENGTH): Define.
4513 (struct ada_opname_map): mangled => decoded, demangled=>encoded.
4514
4515 (enum task_states): Remove.
4516 ada_task_states: Remove.
4517 (fat_string): Remove.
4518 (struct entry_call): Remove.
4519 (struct task_fields): Remove.
4520 (struct task_entry): Remove.
4521
4522 (struct ada_symbol_info): Define.
4523 (enum ada_attribute): Remove.
4524 (enum ada_operator): Define.
4525
4526 (ada_get_field_index): Declare.
4527 (ada_coerce_to_simple_array): Rename to ada_coerce_to_simple_array_ptr.
4528 (ada_is_simple_array): Rename to ada_is_simple_array_type.
4529 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
4530 (ada_lookup_symbol_list): New interface.
4531 (ada_decode_symbol): Declare.
4532 (ada_decode): Declare.
4533 (ada_lookup_symbol): New interface.
4534 (ada_update_initial_language): Declare.
4535 (ada_lookup_simple_minsym): Declare.
4536 (user_select_syms): New interface.
4537 (ada_sals_for_line): Declare.
4538 (ada_is_tagged_type): New interface.
4539 (ada_tag_name): Declare.
4540 (ada_lookup_struct_elt_type): Remove declaration.
4541 (ada_search_struct_field): Remove declaration.
4542 (ada_attribute_name): New interface.
4543 (ada_is_system_address_type): Declare.
4544 (ada_to_fixed_value): Remove declaration.
4545 (ada_template_to_fixed_record_type_1): Declare.
4546 (get_int_var_value): New interface.
4547 (ada_find_any_symbol): Declare.
4548 (ada_find_renaming_symbol): Declare.
4549 (ada_mangle): Rename to ada_encode.
4550 (ada_simple_renamed_entity): Remove const.
4551 (ada_main_name): Declare.
4552 (get_current_task): Rename to ada_get_current_task.
4553 (get_entry_number): Remove declaration.
4554 (ada_report_exception_break): Remove declaration.
4555 (ada_print_exception_breakpoint_nontask): Declare.
4556 (ada_print_exception_breakpoint_task): Declare.
4557 (ada_find_printable_frame): Declare.
4558
4559 * ada-lex.l: Update copyright notices.
4560 Use xmalloc and xfree instead of malloc and free.
4561 Use new interface to name_lookup.
4562 Use new interface to
4563 ada_mangle=>ada_encode.
4564 Redo handling of '$...' variable to parallel current treatment
4565 in c-exp.y.
4566 (resize_tempbuf, canonicalizeNumeral, is_digit_in_base,
4567 digit_to_int, strtoulst, processInt, processReal, processId,
4568 block_lookup, name_lookup, find_dot_all, subseqMatch, processAttribute,
4569 yywrap): Protoize.
4570
4571 (processInt): Use cast to remove harmless warning.
4572 (processReal): Modify to get rid of compiler warning on scan formats.
4573
4574 (processId): Replace xmalloc with obstack_alloc for name and remove
4575 call to ada_name_string_cleanup.
4576 Remove obsolete disabled code.
4577 (name_lookup): Ditto.
4578 New interface.
4579 Use obsavestring on temp_parse_space instead of savestring
4580 on name, and remove call to ada_name_string_cleanup.
4581 Free string returned from ada_simple_renamed_entity.
4582 Use new interface to ada_lookup_symbol_list.
4583 Decomment disabled code.
4584 Treat LOC_COMPUTED and LOC_COMPUTED_ARG symbols as variables,
4585 not types.
4586 When a type name lookup succeeds as a result of
4587 lookup_primitive_typename, check for regular type entry that has not
4588 yet been read in.
4589 Limit length of chain of renamed symbols we are willing to follow.
4590 Do not break names beginning with "standard__" into segments.
4591 (block_lookup): Use new interface to ada_lookup_symbol_list.
4592
4593 * ada-typeprint.c: Update copyright notice.
4594 (demangled_type_name): Rename to decoded_type_name.
4595 (ada_typedef_print): Use SYMBOL_PRINT_NAME.
4596 (print_range_bound): Correct handling of negative
4597 bounds that make the index type looked unsigned under STABS.
4598 (print_dynamic_range_bound): Use new interface to get_int_var_value.
4599 (print_range_type_named): Use the builtin int type if no type
4600 corresponding to the given type name could be found.
4601 (print_array_type): ada_is_simple_array => ada_is_simple_array_type.
4602 Add some bullet-proofing.
4603 (print_variant_clauses): Allow for variant branches with ___XVU
4604 encodings that are not dynamic fields.
4605 Use new interface to ada_is_tagged_type.
4606 (print_record_type): Allow for fields with ___XVE encodings that
4607 are not dynamic fields.
4608 Use new interface to ada_is_tagged_type.
4609 (ada_print_type): ada_is_array_descriptor =>
4610 ada_is_array_descriptor_type.
4611
4612 * ada-valprint.c: Update copyright notice.
4613 Include gdb_string.h
4614 Include infcall.h
4615 (ui_memcpy): New function.
4616 (ada_print_floating): New function.
4617 (ada_print_str): Order arguments correctly.
4618 Correct handling of empty arrays and arrays of 0-length items.
4619 ada_is_array_descriptor => ada_is_array_descriptor_type
4620 Print values of type System.Address in hexadecimal format.
4621 Use ada_print_floating to print floating-point numbers in Ada format.
4622 Print class tag values with type names.
4623 No longer print the address of reference values. Avoids
4624 a potential confusion.
4625 (ada_value_print): Stop printing the object type for reference
4626 values, but preserve that behavior for access types. Avoids
4627 a potential confusion.
4628 Simplify one conditional expression, as the first part is now
4629 necessarily true.
4630 ada_is_array_descriptor => ada_is_array_descriptor_type
4631 Add check for arrays for null records, and print them by hand.
4632
4633 2004-06-01 Jim Blandy <jimb@redhat.com>
4634
4635 * ppc-tdep.h: Delete unused 'regoff' member.
4636 * rs6000-tdep.c (rs6000_gdbarch_init): Don't initialize it.
4637
4638 2004-06-01 Michael Chastain <mec.gnu@mindspring.com>
4639
4640 Fix PR symtab/1661.
4641 * hpread.c (hpread_pxdb_needed): Call memset after alloca.
4642 (hpread_read_struct_type): Likewise.
4643
4644 2004-06-01 Andrew Cagney <cagney@gnu.org>
4645
4646 * mi/mi-cmd-env.c (env_execute_cli_command): Use xstrprintf
4647 instead of xasprintf.
4648 * mi/mi-main.c (mi_error_last_message, mi_cmd_exec_interrupt)
4649 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
4650 (mi_cmd_data_list_register_names)
4651 (mi_cmd_data_list_changed_registers)
4652 (mi_cmd_data_list_register_values)
4653 (get_register, mi_cmd_data_write_register_values)
4654 (mi_cmd_data_write_register_values)
4655 (mi_cmd_data_assign, mi_cmd_data_evaluate_expression)
4656 (mi_cmd_target_download, mi_cmd_target_select)
4657 (mi_cmd_data_read_memory, mi_cmd_data_write_memory)
4658 (mi_execute_cli_command, mi_execute_async_cli_command)
4659 (mi_execute_async_cli_command): Ditto.
4660 * mi/mi-interp.c (mi_cmd_interpreter_exec) Ditto.
4661 * mi/mi-cmd-var.c (mi_cmd_var_create): Ditto.
4662
4663 * mi/mi-cmds.h (mi_error_last_message): Delete declaration.
4664 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call
4665 error_last_message instead of mi_error_last_message.
4666 * mi/mi-main.c (mi_error_last_message): Delete function.
4667
4668 * mi/mi-main.c (mi_cmd_data_read_memory): Add missing return for
4669 "invalid number of columns" error. Delete redundant "out of
4670 memory" check.
4671
4672 2004-05-31 Mark Kettenis <kettenis@gnu.org>
4673
4674 * i386bsd-nat.c: Don't include <sys/procfs.h>.
4675 (gregset_t, fpregset_t): Remove typedefs.
4676 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Remove macros.
4677 (REG_OFFSET): Rename argument.
4678 (i386bsd_r_reg_offset): Rename from reg_offset.
4679 (REG_ADDR): Remove macro.
4680 (cannot_fetch_register, supply_gregset, fill_gregset): Remove
4681 functions.
4682 (i386bsd_supply_gregset, i386bsd_collect_gregset): New functions.
4683 (fetch_inferior_registers): Use `struct reg' and `struct fpreg'
4684 instead of gregset_t and fpregset_t. Use i386bsd_supply_gregset
4685 instead of supply_gregset.
4686 (store_inferior_registers): Use `struct reg' and `struct fpreg'
4687 instead of gregset_t and fpregset_t. Use i386bsd_collect_gregset
4688 instead of fill_gregset.
4689 (register_u_addr): Use i386_r_reg_offset instead of REG_ADDR.
4690
4691 * i386bsd-nat.c: Don't include "gregset.h".
4692 (supply_gregset, fill_gregset): Make static.
4693 (supply_fpregset, fill_fpregset): Remove.
4694 * Makefile.in (i386bsd-nat.o): Update dependencies.
4695
4696 2004-05-30 Mark Kettenis <kettenis@gnu.org>
4697
4698 * fbsd-proc.c: Include "regcache.h", "regset.h" and
4699 "gdb_assert.h". Con't include "gregset.h".
4700 (fbsd_make_corefile_notes): Use regset-based core file support
4701 instead off fill_gregset and fill_fpregset.
4702 * Makefile.in (fbsd-proc.o): Update dependencies.
4703
4704 * m88k-tdep.c (m88k_analyze_prologue): Fix handling of branch
4705 instructions.
4706 (m88k_frame_prev_register): Simplify code a bit.
4707
4708 * amd64-tdep.c (amd64_supply_fpregset): Adjust comment.
4709 (amd64_collect_fpregset): New function.
4710 (amd64_regset_from_core_section): Use amd64_collect_fpregset.
4711
4712 * hppa-tdep.h (hppa_regnum): Add HPPA_R31_REGNUM.
4713
4714 * i386-tdep.c (i386_supply_gregset): Adjust comment.
4715 (i386_collect_gregset): New function.
4716 (i386_supply_fpregset): Adjust comment.
4717 (i386_collect_fpregset): New function.
4718 (i386_regset_from_core_section): Use i386_collect_gregset and
4719 i386_collect_fpregset.
4720
4721 * hppa-tdep.c (hppa_frame_prev_register_helper): Reimplement to
4722 handle VALUEP being null.
4723
4724 * regset.h (collect_regset_ftype): Unconstify fourth argument.
4725
4726 2004-05-29 Mark Kettenis <kettenis@gnu.org>
4727
4728 * MAINTAINERS: Undelete m88k. Add myself as maintainer.
4729
4730 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Adjust for new
4731 assembler in OpenBSD 3.5-current.
4732 (amd64obsd_sigcontext_addr): Likewise.
4733
4734 2004-05-28 Jim Blandy <jimb@redhat.com>
4735
4736 * rs6000-tdep.c: Use the modern gdbarch methods for handling the
4737 register set, so our regcache isn't declared "legacy" and our E500
4738 pseudoregister read and write functions aren't ignored.
4739 (rs6000_register_byte, rs6000_register_raw_size,
4740 rs6000_register_virtual_type, rs6000_register_convertible,
4741 rs6000_register_convert_to_virtual,
4742 rs6000_register_convert_to_raw): Deleted.
4743 (rs6000_register_type, rs6000_convert_register_p,
4744 rs6000_register_to_value, rs6000_value_to_register): New
4745 functions.
4746 (rs6000_gdbarch_init): Don't register
4747 gdbarch_deprecated_register_size,
4748 gdbarch_deprecated_register_bytes,
4749 gdbarch_deprecated_register_byte,
4750 gdbarch_deprecated_register_raw_size,
4751 gdbarch_deprecated_register_virtual_type,
4752 gdbarch_deprecated_register_convertible,
4753 gdbarch_deprecated_register_convert_to_virtual, or
4754 gdbarch_deprecated_register_convert_to_raw methods. Instead,
4755 register gdbarch_register_type, gdbarch_convert_register_p,
4756 gdbarch_register_to_value, and gdbarch_value_to_register methods.
4757
4758 2004-05-26 Jim Blandy <jimb@redhat.com>
4759
4760 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): Deleted.
4761 (rs6000_stab_reg_to_regnum, rs6000_dwarf2_reg_to_regnum): New
4762 functions, updated to match the register numberings used in GCC.
4763 (rs6000_gdbarch_init): Register rs6000_stab_reg_to_regnum and
4764 rs6000_dwarf2_reg_to_regnum as register number conversions
4765 functions for STABS and Dwarf2.
4766
4767 2004-05-26 Randolph Chung <tausq@debian.org>
4768
4769 * infttrace.h (target_waitkind): Forward declare type instead of pulling
4770 in header file.
4771
4772 2004-05-25 Joel Brobecker <brobecker@gnat.com>
4773
4774 * NEWS: Document new "start" command.
4775
4776 2004-05-25 Randolph Chung <tausq@debian.org>
4777
4778 * hppa-linux-tdep.c (hppa_linux_init_abi): sizeof(long double) == 8 on
4779 hppa-linux.
4780
4781 2004-05-25 Randolph Chung <tausq@debian.org>
4782
4783 * hppa-hpux-tdep.c (offsetof): Define.
4784 (hppa_hpux_pc_in_sigtramp, hppa32_hpux_frame_saved_pc_in_sigtramp)
4785 (hppa32_hpux_frame_base_before_sigtramp)
4786 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
4787 (hppa64_hpux_frame_saved_pc_in_sigtramp)
4788 (hppa64_hpux_frame_base_before_sigtramp)
4789 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): Remove unused
4790 functions.
4791 (struct hppa_hpux_sigtramp_unwind_cache, hppa_hpux_tramp_reg)
4792 (hppa_hpux_sigtramp_frame_unwind_cache)
4793 (hppa_hpux_sigtramp_frame_this_id)
4794 (hppa_hpux_sigtramp_frame_prev_register)
4795 (hppa_hpux_sigtramp_frame_unwind)
4796 (hppa_hpux_sigtramp_unwind_sniffer): New signal trampoline unwinder.
4797 (hppa_hpux_init_abi): Register sigtramp unwinder.
4798 * Makefile.in (hppa-hpux-tdep.o): Update dependencies.
4799
4800 2004-05-25 Randolph Chung <tausq@debian.org>
4801
4802 * hppa-tdep.c (hppa_fallback_frame_cache): Handle stack adjustment,
4803 and multiple stack unwinds.
4804 (hppa_stub_unwind_sniffer): Handle unwind from pc == 0.
4805
4806 2004-05-25 Andrew Cagney <cagney@gnu.org>
4807
4808 * symfile.h (symbol_file_add_from_memory): Delete declaration.
4809 * symfile-mem.h: Delete file.
4810 * symfile-mem.c: Do not include "symfile-mem.h".
4811 (symbol_file_add_from_memory): Make static. Use "struct bfd" and
4812 "struct bfd_section". When an error do not bother returning NULL.
4813 (add_symbol_file_from_memory_command): Use "struct bfd" and
4814 "struct bfd_section".
4815 * Makefile.in (symfile_mem_h): Delete.
4816 (symfile-mem.o): Update dependencies.
4817
4818 2004-05-25 Nick Roberts <nickrob@gnu.org>
4819
4820 * gdb-mi.el: New file.
4821
4822 2004-05-25 Andrew Cagney <cagney@gnu.org>
4823
4824 * inftarg.c: Include "observer.h".
4825 (child_attach, child_create_inferior): Notify inferior_created.
4826 * corelow.c: Include "observer.h".
4827 (core_open): Notify inferior_created.
4828 * Makefile.in (inftarg.o, corelow.o): Update dependencies.
4829
4830 2004-05-25 Andrew Cagney <cagney@gnu.org>
4831
4832 * target.h (struct target_ops): Add from_tty to
4833 to_create_inferior.
4834 (target_create_inferior, find_default_create_inferior): Update.
4835 * infcmd.c (run_command): Update.
4836 * wince.c (child_create_inferior): Update.
4837 * win32-nat.c (child_create_inferior): Update.
4838 * uw-thread.c (uw_thread_create_inferior): Update.
4839 * thread-db.c (thread_db_create_inferior): Update.
4840 * target.c (debug_to_create_inferior)
4841 (find_default_create_inferior): Update.
4842 (maybe_kill_then_create_inferior): Update.
4843 * sol-thread.c (sol_thread_create_inferior): Update.
4844 * remote.c (extended_remote_async_create_inferior)
4845 (extended_remote_create_inferior): Update.
4846 * remote-vx.c (vx_create_inferior): Update.
4847 * remote-st.c (st2000_create_inferior): Update.
4848 * remote-sim.c (gdbsim_create_inferior): Update.
4849 * remote-sds.c (sds_create_inferior): Update.
4850 * remote-rdp.c (remote_rdp_create_inferior): Update.
4851 * remote-rdi.c (arm_rdi_create_inferior): Update.
4852 * remote-m32r-sdi.c (m32r_create_inferior): Update.
4853 * remote-e7000.c (e7000_create_inferior): Update.
4854 * procfs.c (procfs_create_inferior): Update.
4855 * ocd.c (ocd_create_inferior): Update.
4856 * ocd.h (ocd_create_inferior): Update.
4857 * nto-procfs.c (procfs_create_inferior): Update.
4858 * monitor.c (monitor_create_inferior): Update.
4859 * lin-lwp.c (lin_lwp_create_inferior): Update.
4860 * inftarg.c (child_create_inferior): Update.
4861 * hpux-thread.c (hpux_thread_create_inferior): Update.
4862 * gnu-nat.c (gnu_create_inferior): Update.
4863
4864 2004-05-25 Andrew Cagney <cagney@gnu.com>
4865
4866 * MAINTAINERS: Update e-mail address.
4867
4868 2004-05-24 Randolph Chung <tausq@debian.org>
4869
4870 * thread.c (info_threads_command, thread_apply_all_command)
4871 (thread_apply_command, thread_command, do_captured_thread_select):
4872 Remove HPUXHPPA-specific code.
4873
4874 2004-05-24 Randolph Chung <tausq@debian.org>
4875
4876 * hppa-tdep.c (SR4EXPORT_LDIL_OFFSET, SR4EXPORT_LDO_OFFSET): Remove
4877 unused symbols.
4878 * hppa-tdep.h (HPPA_INSTRUCTION_SIZE): Remove, since there are no more
4879 references.
4880
4881 2004-05-24 Joel Brobecker <brobecker@gnat.com>
4882
4883 * infcmd.c (kill_if_already_running): New function, extracted
4884 from run_command().
4885 (run_command): Replace extracted code by call to
4886 kill_if_already_running().
4887 (start_command): New function.
4888 (_initialize_infcmd): Add "start" command.
4889
4890 2004-05-24 Mark Kettenis <kettenis@gnu.org>
4891
4892 Add OpenBSD/m88k support.
4893 * NEWS (New native configurations): Mention OpenBSD/m88k.
4894 * m88k-tdep.c, m88k-tdep.h, m88kbsd-nat.c, config/m88k/nm-obsd.h,
4895 config/m88k/obsd.mh, config/m88k/obsd.mt: New files.
4896 * Makefile.in (m88k_tdep_h): New variable.
4897 (ALLDEPFILES): Add m88k-tdep.c and m88kbsd-nat.c.
4898 (m88kbsd-nat.o, m88k-tdep.o): New dependencies.
4899 * configure.host: Add m88*-*-openbsd*.
4900 * configure.tgt: Add m88*-*-openbsd*.
4901
4902 2004-05-24 Jim Blandy <jimb@redhat.com>
4903
4904 * MAINTAINERS (tracing bytecode stuff): Allow global maintainers
4905 to approve changes.
4906
4907 2004-05-24 Kevin Buettner <kevinb@redhat.com>
4908
4909 * symtab.c (fixup_section): Search section table when lookup by
4910 name fails.
4911
4912 2004-05-24 Randolph Chung <tausq@debian.org>
4913
4914 * hppa-tdep.c: Fix handling of 8-byte structures; they should not
4915 be "small_struct".
4916
4917 2004-05-24 Mark Kettenis <kettenis@gnu.org>
4918
4919 * m68kbsd-nat.c (m68kbsd_collect_gregset): Specify correct
4920 register number in regcache_raw_collect call.
4921 (m68kbsd_collect_fpregset): Likewise.
4922 * vaxbsd-nat.c (vaxbsd_collect_gregset): Likewise.
4923
4924 * regset.h (struct regset): Add back `regset' member.
4925
4926 2004-05-23 Mark Kettenis <kettenis@gnu.org>
4927
4928 * configure.in: Check for td_pcb in `struct thread'.
4929 * configure, config.in: Regenerated.
4930
4931 * dpx2-nat.c: Remove file.
4932 * Makefile.in (ALLDEPFILES): Remove dpx2-nat.c.
4933 (dpx2-nat.o): Remove dependencies.
4934
4935 * amd64obsd-nat.c: Include "gdbcore.h", "regcache.h",
4936 <sys/types.h>, <machine/frame.h>, <machine/pcb.h> and "bsd-kvm.h".
4937 (amd64obsd_supply_pcb): New function.
4938 (_initialize_amd64obsd_nat): Enable libkvm interface.
4939 * Makefile.in (amd64obsd-nat.o): Update dependencies.
4940 * config/i386/obsd64.mh (NATDEPFILES): Add bsd-kvm.o
4941 (LOADLIBES): New variable.
4942
4943 * sparcnbsd-nat.c: Include "gdbcore.h", "regcache.h",
4944 <sys/types.h>, <machine/pcb.h> and "bsd-kvm.h".
4945 (sparc32nbsd_supply_pcb): New function.
4946 (_initialize_sparcnbsd_nat): Enable libkvm interface.
4947 * Makefile.in (sparcnbsd-nat.o): Update dependencies.
4948 * config/sparc/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
4949 (LOADLIBES): New variable.
4950
4951 2004-05-22 Mark Kettenis <kettenis@gnu.org>
4952
4953 * bsd-kvm.c, bsd-kvm.h: New files.
4954 * i386fbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
4955 "bsd-kvm.h".
4956 (i386fbsd_supply_pcb): New function.
4957 * Makefile.in (ALLDEPFILES): Add bsd-kvm.c.
4958 (i386fbsd-nat.o): Update dependencies.
4959 (bsd_kvm_h): New variable.
4960 (bsd-kvm.o): New dependency.
4961 * config/i386/fbsd.mh (NATDEPFILES): Add bsd-kvm.o.
4962 (LOADLIBES): New variable.
4963
4964 * regset.c: Tweak comment.
4965 (regset_alloc): Remove descr argument. Use GDBARCH_OBSTACK_ZALLOC
4966 macro.
4967 * regset.h: Update copyright year.
4968 (struct regset): Remove `descr' member, add `gdbarch' member.
4969 (regset_alloc): Adjust prototype and comment.
4970 * i386-tdep.c (i386_supply_gregset): Get TDEP from REGSET->arch.
4971 (i386_supply_fpregset): Likewise.
4972 (i386_regset_from_core_section): Update call to regset_alloc.
4973 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get TDEP from
4974 REGSET->arch.
4975 (i386obsd_aout_regset_from_core_section): Update call to
4976 regset_alloc.
4977 * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Get TDEP from
4978 REGSET->arch.
4979 (i386nbsd_aout_regset_from_core_section): Update call to
4980 regset_alloc.
4981 * amd64-tdep.c (amd64_supply_fpregset): Get TDEP from
4982 REGSET->arch.
4983 (amd64_regset_from_core_section): Update call to regset_alloc.
4984 * amd64obsd-tdep.c (amd64obsd_supply_regset): Get TDEP from
4985 REGSET->arch.
4986 (amd64obsd_regset_from_core_section): Update call to regset_alloc.
4987 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Directly pass
4988 &sparc32nbsd_gregset in sparc32_supply_gregset call.
4989 (sparc32nbsd_init_abi): Update call to regset_alloc.
4990 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Directly pass
4991 &sparc64obsd_core_gregset in sparc64_supply_gregset call.
4992 (sparc64obsd_init_abi): Update call to regset_alloc.
4993 * sparc64nbsd-tdep.c (sparc64nbsd_supply_gregset): Directly pass
4994 &sparc64nbsd_gregset in sparc64_supply_gregset call.
4995 (sparc64nbsd_init_abi): Update call to regset_alloc.
4996 * sparc64fbsd-tdep.c (sparc64fbsd_supply_gregset): Directly pass
4997 &sparc64fbsd_gregset in sparc64_supply_gregset call.
4998 (sparc64fbsd_init_abi): Update call to regset_alloc.
4999
5000 2004-05-22 Jim Blandy <jimb@redhat.com>
5001
5002 * ppc-tdep.h (spe_register_p): New declaration.
5003 (struct gdbarch_tdep): New members: ppc_acc_regnum and
5004 ppc_spefscr_regnum.
5005 * rs6000-tdep.c (spe_register_p): New function.
5006 (rs6000_dwarf2_stab_reg_to_regnum): Recognize numbers for acc and
5007 spefscr.
5008 (rs6000_gdbarch_init): Initialize the new members of the tdep
5009 structure.
5010
5011 2004-05-21 Jim Blandy <jimb@redhat.com>
5012
5013 * ppc-linux-nat.c (fetch_register): Move code back to be next
5014 to the comment that describes it. (Moved code, instead of
5015 comment, for symmetry with store_register.)
5016
5017 Allocate regset structures in the gdbarch's obstack, not using
5018 xmalloc.
5019 * regset.c (regset_alloc): Renamed from regset_xmalloc.
5020 Add 'arch' argument. Allocate the regset on arch's obstack, not
5021 using xmalloc.
5022 * regset.h (regset_alloc): Update declaration.
5023 * am64-tdep.c (amd64_regset_from_core_section): Update call; pass
5024 gdbarch argument.
5025 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
5026 * i386-tdep.c (i386_regset_from_core_section): Same.
5027 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
5028 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
5029 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
5030 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
5031 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
5032 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
5033
5034 2004-05-21 Joel Brobecker <brobecker@gnat.com>
5035
5036 * config/djgpp/fnchange.lst: Undo previous change, was useless.
5037
5038 2004-05-21 Jim Blandy <jimb@redhat.com>
5039
5040 * dwarf2expr.c (execute_stack_op): Add 'break' statements after
5041 cases for DW_OP_div and DW_OP_shr. (Thanks to Reva Cuthbertson.)
5042
5043 2004-05-20 Jim Blandy <jimb@redhat.com>
5044
5045 * rs6000-tdep.c (rs6000_push_dummy_call): Formatting fixes.
5046
5047 2004-05-20 Mark Kettenis <kettenis@gnu.org>
5048
5049 * regset.h: Make prototype const-correct.
5050 * regset.c (regset_xmalloc): Make const-correct.
5051
5052 2004-05-20 Paul N. Hilfinger <hilfinger@gnat.com>
5053
5054 * symtab.h (SYMBOL_SEARCH_NAME): New definition.
5055 (SYMBOL_MATCHES_SEARCH_NAME): New definition.
5056 (symbol_search_name): Declare.
5057
5058 * dictionary.c (iter_name_first_hashed): Match on SYMBOL_SEARCH_NAME.
5059 (iter_name_next_hashed): Ditto.
5060 (iter_name_next_linear): Ditto.
5061 (insert_symbol_hashed): Hash on SYMBOL_SEARCH_NAME.
5062
5063 * symtab.c (lookup_partial_symbol): Assume symbols ordered by
5064 search name, using SYMBOL_SEARCH_NAME and SYMBOL_MATCHES_SEARCH_NAME.
5065 (symbol_search_name): New function.
5066
5067 * symfile.c (compare_psymbols): Order by SYMBOL_SEARCH_NAME.
5068
5069 * minsyms.c (build_minimal_symbol_hash_tables): Change
5070 test for adding to demangled hash table to check for difference
5071 between SYMBOL_SEARCH_NAME and SYMBOL_LINKAGE_NAME.
5072
5073 2004-05-19 Jim Blandy <jimb@redhat.com>
5074
5075 Use a constructor function to create regset structures.
5076 * regset.h (supply_regset_ftype, collect_regset_ftype): New typedefs.
5077 (struct regset): Use supply_regset_ftype. Add new
5078 'collect_regset' member.
5079 (regset_xmalloc): New declaration.
5080 * regset.c: New file.
5081 * am64-tdep.c (amd64_regset_from_core_section): Use
5082 regset_xmalloc to construct regset structures.
5083 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
5084 * i386-tdep.c (i386_regset_from_core_section): Same.
5085 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
5086 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
5087 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
5088 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
5089 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
5090 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
5091 * Makefile.in (COMMON_OBS): Add regset.o.
5092 (regset.o): New rule.
5093
5094 2004-05-19 Joel Brobecker <brobecker@gnat.com>
5095
5096 * config/djgpp/fnchange.lst: Add entries for pthread_cond_wait.exp
5097 and pthread_cond_wait.c.
5098
5099 2004-05-18 Jim Blandy <jimb@redhat.com>
5100
5101 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize tdep fields
5102 before the mach-specific switch, and then let the individual cases
5103 override the defaults, rather than leaving them uninitialized
5104 until the switch and then setting them in each case.
5105
5106 2004-05-18 Randolph Chung <tausq@debian.org>
5107
5108 * hppa-tdep.c (hppa_frame_cache): Check for validity of r31 for
5109 millicode functions.
5110
5111 2004-05-18 Randolph Chung <tausq@debian.org>
5112
5113 * somsolib.c (som_solib_remove_inferior_hook): Make all the size
5114 references to dld_flags_buffer consistent.
5115
5116 2004-05-18 Randolph Chung <tausq@debian.org>
5117
5118 * hppa-tdep.c (hppa_frame_cache): If a frame pointer is available, use
5119 it for unwinding the stack.
5120
5121 2004-05-18 Randolph Chung <tausq@debian.org>
5122
5123 * config/pa/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE)
5124 Undefine these so we can overide them using gdbarch.
5125
5126 2004-05-18 Randolph Chung <tausq@debian.org>
5127
5128 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Don't do export stub
5129 handling for 64-bit HPUX (elf).
5130
5131 2004-05-18 Daniel Jacobowitz <dan@debian.org>
5132
5133 * alpha-tdep.c (alpha_gdbarch_init): Use LL suffix for large
5134 constants.
5135 * amd64-tdep.c (amd64_skip_prologue): Likewise.
5136 * ia64-tdep.c (examine_prologue): Likewise.
5137 * ns32k-tdep.c (ns32k_fix_call_dummy): Remove unused function.
5138 * v850-tdep.c (v850_fix_call_dummy): Likewise.
5139
5140 2004-05-18 Mark Kettenis <kettenis@gnu.org>
5141
5142 * vax-tdep.c (vax_return_value): Implement
5143 RETURN_VALUE_ABI_RETURNS_ADDRESS.
5144
5145 2004-05-17 Mark Kettenis <kettenis@gnu.org>
5146
5147 * vax-tdep.c (vax_return_value): Fix typo.
5148
5149 2004-05-17 Andrew Cagney <cagney@redhat.com>
5150
5151 * MAINTAINERS: Mark Salter was also responsible for
5152 testsuite/config/
5153
5154 * NEWS: Mention signal fixes.
5155
5156 2004-05-17 Randolph Chung <tausq@debian.org>
5157
5158 * hppa-tdep.c (hppa_stub_frame_unwind_cache): For HPUX stub unwinding,
5159 check to see if we are unwinding an export stub. Export stubs clobber
5160 the %rp in the call path and stores the original rp in a stack slot.
5161
5162 2004-05-17 Jim Blandy <jimb@redhat.com>
5163
5164 * MAINTAINERS: Update address for J.T. Conklin.
5165
5166 2004-05-17 Randolph Chung <tausq@debian.org>
5167
5168 * hppa-tdep.c: Remove superfluous #include's.
5169 * Makefile.in (hppa-tdep.o): Update dependencies.
5170
5171 2004-05-17 Randolph Chung <tausq@debian.org>
5172
5173 * hppa-tdep.c (THREAD_INITIAL_FRAME_SYMBOL): Delete unused symbol.
5174 (THREAD_INITIAL_FRAME_SYM_LEN): Likewise.
5175 (unwind_command, hppa_alignof, prologue_inst_adjust_sp)
5176 (is_branch, inst_saves_gr, inst_saves_fr, compare_unwind_entries)
5177 (read_unwind_info, internalize_unwinds, record_text_segment_lowaddr):
5178 Remove static function declarations.
5179
5180 2004-05-17 Mark Kettenis <kettenis@gnu.org>
5181
5182 * alphabsd-nat.c: Update copyright year.
5183 (getregs_supplies): Replace PC_REGNUM with ALPHA_PC_REGNUM.
5184
5185 * m68k-tdep.h (m68k_regnum): Add M68K_D2_REGNUM, M68K_D7_REGNUM
5186 and M68K_A2_REGNUM.
5187
5188 * m68k-tdep.c (m68k_svr4_return_value): Implement
5189 RETURN_VALUE_ABI_RETURNS_ADDRESS.
5190
5191 2004-05-16 Mark Kettenis <kettenis@gnu.org>
5192
5193 * sol-thread.c Update copyright year. Fix various coding
5194 standards violations. Tweak a few comments.
5195 (td_err_string, td_state_string, thread_to_lwp, lwp_to_thread):
5196 Delete prototypes.
5197
5198 2004-05-15 Randolph Chung <tausq@debian.org>
5199
5200 * hppa-tdep.h (hppa_frame_prev_register_helper): Pass save_regs
5201 as pointer instead of array reference since HPUX compiler does
5202 not accept unsized array arguments.
5203 * somsolib.c (dld_flags_buffer): Use constant array size.
5204
5205 2004-05-15 Mark Kettenis <kettenis@gnu.org>
5206
5207 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Replace hexadecimal
5208 offset with decimal offset.
5209 (amd64obsd_sigcontext_addr): Return correct address for entire
5210 signal trampoline.
5211
5212 * vax-tdep.c (vax_frame_num_args): Use get_frame_base_address
5213 instead of get_frame_base.
5214
5215 * i386bsd-nat.c (supply_gregset): Use regcache_raw_supply.
5216 (fill_gregset): Use regcache_raw_collect.
5217
5218 * config/djgpp/fnchange.lst: Add entries for ppcobsd-nat.c and
5219 ppcobsd-tdep.c.
5220
5221 * config/sparc/tm-nbsd64.h: Remove file.
5222 * config/tm-sunos.h: Remove file.
5223
5224 2004-05-15 Joel Brobecker <brobecker@gnat.com>
5225
5226 * rs6000-tdep.c (store_param_on_stack_p): New function,
5227 an improved version of some code extracted from skip_prologue().
5228 (skip_prologue): Use store_param_on_stack_p() to detect
5229 instructions saving a parameter on the stack. Detect when r0
5230 is used to save a parameter.
5231 Do not mark "li rx, SIMM" instructions as part of the prologue,
5232 unless the following instruction is also part of the prologue.
5233
5234 2004-05-14 Andrew Cagney <cagney@redhat.com>
5235
5236 * infrun.c (handle_inferior_event): Simplify
5237 STEP_OVER_UNDEBUGGABLE.
5238
5239 * infrun.c (handle_step_into_function): Delete function.
5240 (handle_inferior_event): Inline calls to
5241 handle_step_into_function.
5242
5243 2004-05-14 Jerome Guitton <guitton@gnat.com>
5244
5245 * rs6000-nat.c: Fix a comment.
5246
5247 2004-05-12 David Anderson <davea@sgi.com>
5248
5249 Committed by Jim Blandy <jimb@redhat.com>:
5250 * regcache.c (struct regcache_descr): fix comment spelling.
5251
5252 2004-05-13 J. Brobecker <brobecker@gnat.com>
5253
5254 * aix-thread.c: s/ppc_floating_point_p/ppc_floating_point_unit_p/.
5255 Fixes a link link failure.
5256
5257 2004-05-13 J. Brobecker <brobecker@gnat.com>
5258
5259 * aix-thread.c (store_regs_kernel_thread): Fix a little obvious
5260 error that was causing the build to fail.
5261
5262 2004-05-13 J. Brobecker <brobecker@gnat.com>
5263
5264 * aix-thread.c: #include "gdb_string.h". Needed for memset and memcopy.
5265 * Makefile.in (aix-thread.o): Add dependency on gdb_string.h.
5266
5267 2004-05-13 Andrew Cagney <cagney@redhat.com>
5268
5269 * infrun.c (handle_inferior_event): Check for
5270 STEP_OVER_UNDEBUGGABLE after signal trampolines and function
5271 calls. Update comments.
5272
5273 2004-05-13 Jim Blandy <jimb@redhat.com>
5274
5275 * aix-thread.c (pdc_read_regs, supply_gprs64, supply_fprs)
5276 (fetch_regs_user_thread, fetch_regs_kernel_thread)
5277 (store_regs_user_thread, store_regs_kernel_thread): Use
5278 ppc_num_gprs and ppc_num_fprs instead of '32' and '31'.
5279 * ppc-linux-nat.c (fill_gregset): Same.
5280 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
5281 (ppc_linux_sigtramp_cache): Same.
5282 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg)
5283 (ppcnbsd_sigtramp_cache_init): Same.
5284 * rs6000-nat.c (fetch_core_registers): Same.
5285 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
5286 (rs6000_frame_cache): Same.
5287
5288 * aix-thread.c (supply_gprs64, fetch_regs_user_thread)
5289 (store_regs_user_thread): Use tdep->ppc_gp0_regnum, instead
5290 of assuming that the gprs are numbered starting with zero.
5291 * ppc-linux-nat.c (fill_gregset): Same.
5292 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Same.
5293 * ppcnbsd-nat.c (getregs_supplies): Same.
5294 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg): Same.
5295 * rs6000-nat.c (fetch_core_registers): Same.
5296 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset): Same.
5297
5298 2004-05-07 Michael Snyder <msnyder@redhat.com>
5299
5300 * tracepoint.c (scope_info): Add handling for LOC_COMPUTED,
5301 LOC_COMPUTED_ARG, and LOC_INDIRECT.
5302
5303 2004-05-13 Andrew Cagney <cagney@redhat.com>
5304
5305 * infrun.c (handle_inferior_event): Use frame_unwind_id.
5306
5307 2004-05-13 Bryce McKinlay <mckinlay@redhat.com>
5308
5309 * dwarf2loc.c (find_location_expression): Use ANOFFSET to adjust
5310 base_address for shared libraries.
5311
5312 2004-05-13 Bryce McKinlay <mckinlay@redhat.com>
5313
5314 * MAINTAINERS (write after approval): Add myself.
5315
5316 2004-05-13 Ulrich Weigand <uweigand@de.ibm.com>
5317
5318 * breakpoint.c (bpstat_stop_status): Add new argument
5319 STOPPED_BY_WATCHPOINT. Use it instead of testing
5320 target_stopped_data_address agaist 0 to check whether
5321 or not we stopped due to a hardware watchpoint.
5322 * breakpoint.h (bpstat_stop_status): Adapt prototype.
5323 * infrun.c (handle_inferior_event): Call bpstat_stop_status
5324 with new argument.
5325
5326 2004-05-12 Jim Blandy <jimb@redhat.com>
5327
5328 * configure.in: When checking whether we should use the -bbigtoc
5329 option, don't forget to restore the original value of LDFLAGS.
5330 * configure: Regenerated.
5331
5332 2004-05-12 Andrew Cagney <cagney@redhat.com>
5333
5334 * thread.c (load_infrun_state): Delete step_sp.
5335 * infrun.c (context_switch): Ditto.
5336 * inferior.h (step_sp): Ditto.
5337 * infcmd.c (step_sp, step_1, step_once, until_next_command): Ditto.
5338 * gdbthread.h (struct thread_info, save_infrun_state)
5339 (restore_infrun_state): Ditto.
5340
5341 2004-05-12 Ulrich Weigand <uweigand@de.ibm.com>
5342
5343 * MAINTAINERS (write after approval): Add myself.
5344
5345 2004-05-12 Andrew Cagney <cagney@redhat.com>
5346
5347 * infrun.c (adjust_pc_after_break): Rewrite decr logic,
5348 eliminate reference to step_sp.
5349 (struct execution_control_state, init_execution_control_state)
5350 (handle_inferior_event, keep_going): Delete update_step_sp and
5351 step_sp.
5352 * infcmd.c (step_sp): Note that variable is unused.
5353
5354 2004-05-11 Andrew Cagney <cagney@redhat.com>
5355
5356 * infrun.c (step_over_function): Delete function.
5357 (handle_step_into_function): Use insert_step_resume_breakpoint.
5358 (insert_step_resume_breakpoint): Fix assertion.
5359
5360 2004-05-11 Nick Roberts <nickrob@gnu.org>
5361
5362 * utils.c (defaulted_query): Just use the normal query input type
5363 when printing the annotations.
5364
5365 2004-05-11 Andrew Cagney <cagney@redhat.com>
5366
5367 * infrun.c (handle_inferior_event): Simplify code handling
5368 step-into or return-from a signal trampoline.
5369
5370 2004-05-11 Andrew Cagney <cagney@redhat.com>
5371
5372 * ppcnbsd-tdep.c: Include "gdb_assert.h".
5373 * Makefile.in (ppcnbsd-tdep.o): Update dependencies.
5374
5375 2004-05-10 Jim Blandy <jimb@redhat.com>
5376
5377 * ppc-bdm.c (bdm_ppc_fetch_registers): Replace utterly broken code
5378 with a call to internal_error.
5379
5380 * ppc-tdep.h (struct gdbarch_tdep): Change definition of
5381 ppc_fp0_regnum and ppc_fpscr_regnum: if they are -1, then this
5382 processor variant lacks those registers.
5383 (ppc_floating_point_unit_p): Change description to make it clear
5384 that this returns info about the ISA, not the ABI.
5385 * rs6000-tdep.c (ppc_floating_point_unit_p): Decide whether to
5386 return true or false by checking tdep->ppc_fp0_regnum and
5387 tdep->ppc_fpscr_regnum. The original code replicated the BFD
5388 arch/mach switching done in rs6000_gdbarch_init; it's better to
5389 keep that logic there, and just check the results here.
5390 (rs6000_gdbarch_init): On the E500, set tdep->ppc_fp0_regnum and
5391 tdep->ppc_fpscr_regnum to -1 to indicate that we have no
5392 floating-point registers.
5393 (ppc_supply_fpregset, ppc_collect_fpregset)
5394 (rs6000_push_dummy_call, rs6000_extract_return_value)
5395 (rs6000_store_return_value): Assert that we have floating-point
5396 registers.
5397 (rs6000_dwarf2_stab_reg_to_regnum): Add FIXME.
5398 (rs6000_frame_cache): Don't note the locations at which
5399 floating-point registers were saved if we have no fprs.
5400 * aix-thread.c (supply_fprs, fill_fprs): Assert that we have FP
5401 registers.
5402 (fetch_regs_user_thread, fetch_regs_kernel_thread)
5403 (store_regs_user_thread, store_regs_kernel_thread): Only call
5404 supply_fprs / fill_fprs if we actually have floating-point
5405 registers.
5406 (special_register_p): Check ppc_fpscr_regnum before matching
5407 against it.
5408 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32): Don't
5409 supply / collect fpscr if we don't have it.
5410 * ppc-bdm.c: #include "gdb_assert.h".
5411 (bdm_ppc_fetch_registers, bdm_ppc_store_registers): Assert that we
5412 have floating-point registers, since I can't test this code on
5413 FP-free systems to adapt it.
5414 * ppc-linux-nat.c (ppc_register_u_addr): Don't match against the
5415 fpscr and floating point register numbers if they don't exist.
5416 (fetch_register): Assert that we have floating-point registers
5417 before we reach the code that handles them.
5418 (store_register): Same. And use tdep instead of calling
5419 gdbarch_tdep again.
5420 (fill_fpregset): Don't try to collect FP registers and fpscr if we
5421 don't have them.
5422 (ppc_linux_sigtramp_cache): Don't record the saved locations of
5423 fprs and fpscr if we don't have them.
5424 (ppc_linux_supply_fpregset): Don't supply fp regs and fpscr if we
5425 don't have them.
5426 * ppcnbsd-nat.c: #include "gdb_assert.h".
5427 (getfpregs_supplies): Assert that we have floating-point registers.
5428 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg): Same.
5429 * ppcobsd-tdep.c: #include "gdb_assert.h".
5430 (ppcobsd_supply_gregset, ppcobsd_collect_gregset): Assert that we
5431 have floating-point registers.
5432 * rs6000-nat.c (regmap): Don't match against the fpscr and
5433 floating point register numbers if they don't exist.
5434 (fetch_inferior_registers, store_inferior_registers,
5435 fetch_core_registers): Only fetch / store / supply the
5436 floating-point registers and the fpscr if we have them.
5437 * Makefile.in (ppc-bdm.o, ppc-linux-nat.o, ppcnbsd-nat.o)
5438 (ppcobsd-tdep.o): Update dependencies.
5439
5440 2004-05-10 Andrew Cagney <cagney@redhat.com>
5441
5442 * infrun.c (through_sigtramp_breakpoint): Delete variable.
5443 (context_switch): Do not switch through_sigtramp_breakpoint.
5444 * gdbthread.h (save_infrun_state, load_infrun_state)
5445 (struct thread_info): Delete through_sigtramp_breakpoint parameter
5446 and structure member.
5447 * thread.c (load_infrun_state, save_infrun_state): Update.
5448
5449 2004-05-10 Mark Kettenis <kettenis@gnu.org>
5450
5451 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Call m68k_svr4_init_abi.
5452
5453 2004-05-10 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
5454
5455 * acinclude.m4: Quote macro names being defined by AC_DEFUN
5456 throughout.
5457 * aclocal.m4: Regenerate.
5458
5459 2004-05-10 Nathan J. Williams <nathanw@wasabisystems.com>
5460
5461 * alphanbsd-tdep.c: Fix include of "gdb_string.h".
5462
5463 2004-05-10 Andrew Cagney <cagney@redhat.com>
5464
5465 * infrun.c (check_sigtramp2): Delete function.
5466 (handle_inferior_event): When single stepping, and taking a
5467 signal, set a breakpoint at the signal return address. Delete
5468 redundant calls to check_sigtramp2.
5469 (insert_step_resume_breakpoint): New function.
5470 (through_sigtramp_breakpoint, handle_inferior_event)
5471 (follow_exec, wait_for_inferior, fetch_inferior_event)
5472 (currently_stepping, keep_going): Delete most uses of
5473 through_sigtramp_breakpoint, not that it should be deleted.
5474 (delete_breakpoint_current_contents): Delete function.
5475
5476 2004-05-10 Randolph Chung <tausq@debian.org>
5477
5478 * config/pa/linux.mt (TM_FILE): Use new tm-linux.h for hppa-linux
5479 target.
5480 * config/pa/tm-linux.h: New file.
5481
5482 2004-05-10 Daniel Jacobowitz <drow@mvista.com>
5483
5484 * cli/cli-setshow.c (cmd_show_list): Check for "show" in the middle
5485 of prefixes. Don't print the prefix twice in the CLI.
5486
5487 2004-05-10 Jim Blandy <jimb@redhat.com>
5488
5489 * rs6000-tdep.c (ppc_collect_gregset): When regnum == -1, do
5490 collect all the gprs.
5491
5492 * rs6000-tdep.c (ppc_collect_gregset): Correct off-by-one error in
5493 loop collecting gprs.
5494
5495 2004-05-09 Andrew Cagney <cagney@redhat.com>
5496
5497 * remote-vx.c (net_step): Delete step-range code.
5498 * remote.c (remote_resume, init_all_packet_configs)
5499 (set_remote_protocol_E_packet_cmd)
5500 (show_remote_protocol_E_packet_cmd)
5501 (remote_protocol_E, show_remote_cmd, _initialize_remote)
5502 (remote_protocol_e, set_remote_protocol_e_packet_cmd)
5503 (show_remote_protocol_e_packet_cmd): Ditto.
5504
5505 2004-05-09 Mark Kettenis <kettenis@gnu.org>
5506
5507 * hppa-tdep.h (enum hppa_regnum): Name enum, add HPPA_R1_REGNUM.
5508
5509 * hppa-tdep.h: Update copyright year.
5510 (struct trad_frame_saved_reg): Add opaque declaration.
5511
5512 * amd64-tdep.c (amd64_return_value): Implement
5513 RETURN_VALUE_ABI_RETURNS_ADDRESS.
5514
5515 * m68k-tdep.c (m68k_convert_register_p, m68k_register_to_value)
5516 (m68k_value_to_register): New functions.
5517 (m68k_gdbarch_init): Set convert_register_p, register_to_value and
5518 value_to_register.
5519
5520 * defs.h (enum return_value_convention): Add
5521 RETURN_VALUE_ABI_RETURNS_ADDRESS and
5522 RETURN_VALUE_ABI_PRESERVES_ADDRESS.
5523 * infcmd.c (legacy_return_value): New function.
5524 (print_return_value): Rwerite to implement
5525 RETURN_VALUE_ABI_RETURNS_ADDRESS.
5526 * values.c (using_struct_return): Check for inequality to
5527 RETURN_VALUE_REGISTER_CONVENTION instead of equality to
5528 RETURN_VALUE_STRUCT_CONVENTION.
5529 * i386-tdep.c (i386_return_value): Implement
5530 RETURN_VALUE_ABI_RETURNS_ADDRESS.
5531
5532 * vax-tdep.c: Tweak comments. Reorder include files. Don't
5533 include "symtab.h", "opcode/vax.h" and "inferior.h".
5534 (vax_skip_prologue): Replace calls to read_memory_integer by calls
5535 to read_memory_unsigned_integer.
5536 (vax_gdbarch_init): Reorder.
5537 (_initialize_vax_tdep): Spell out prototype.
5538 * Makefile.in (vax-tdep.o): Update dependencies.
5539
5540 2004-05-08 Andrew Cagney <cagney@redhat.com>
5541
5542 * infrun.c (resume): Delete call to DO_DEFERRED_STORES.
5543 * target.c (target_detach, target_disconnect): Ditto.
5544
5545 * infcall.c (call_function_by_hand): When no
5546 DEPRECATED_SAVE_DUMMY_FRAME_TOS call generic_save_dummy_frame_tos.
5547 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set
5548 DEPRECATED_SAVE_DUMMY_FRAME_TOS.
5549 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5550 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5551
5552 * gdbarch.sh (DEPRECATED_FIX_CALL_DUMMY): Delete.
5553 * gdbarch.h, gdbarch.c: Re-generate.
5554 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
5555 deprecated_fix_call_dummy.
5556 * v850-tdep.c (v850_gdbarch_init): Ditto.
5557 * infcall.c (call_function_by_hand): Do not call
5558 DEPRECATED_FIX_CALL_DUMMY.
5559
5560 * gdbarch.sh (DEPRECATED_CALL_DUMMY_WORDS)
5561 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Delete.
5562 * gdbarch.h, gdbarch.c: Re-generate.
5563 * arm-linux-tdep.c (arm_linux_call_dummy_words)
5564 (arm_linux_init_abi): Do not set deprecated_call_dummy_words or
5565 deprecated_sizeof_call_dummy_words.
5566 * arm-tdep.c (arm_call_dummy_words, arm_gdbarch_init): Ditto.
5567 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
5568 * v850-tdep.c (v850_gdbarch_init): Ditto.
5569 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
5570 * ns32k-tdep.c (ns32k_call_dummy_words, ns32k_gdbarch_init): Ditto.
5571 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5572 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5573 * arch-utils.h (legacy_call_dummy_words)
5574 (legacy_sizeof_call_dummy_words): Delete declarations.
5575 * arch-utils.c (legacy_call_dummy_words)
5576 (legacy_sizeof_call_dummy_words): Delete variables.
5577
5578 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Delete.
5579 * gdbarch.h, gdbarch.c: Re-generate.
5580 * inferior.h (PUSH_DUMMY_FRAME): Delete macro.
5581 * infcall.c (call_function_by_hand): Eliminate call to
5582 DEPRECATED_PUSH_DUMMY_FRAME.
5583 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
5584 push_dummy_frame.
5585 (ns32k_push_dummy_frame): Delete function.
5586
5587 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
5588 deprecated_call_dummy_breakpoint_offset or
5589 deprecated_call_dummy_start_offset.
5590 * dummy-frame.c, arm-tdep.c: Update comments.
5591 * gdbarch.sh (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET)
5592 (DEPRECATED_CALL_DUMMY_START_OFFSET): Delete.
5593 * gdbarch.h, gdbarch.c: Re-generate.
5594
5595 * infcall.c (legacy_push_dummy_code): Delete function.
5596 (push_dummy_code): Delete call.
5597
5598 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete.
5599 * gdbarch.h, gdbarch.c: Re-generate.
5600 * blockframe.c (legacy_frame_chain_valid): Simplify by eliminating
5601 DEPRECATED_USE_GENERIC_DUMMY_FRAMES.
5602 * infcall.c (legacy_push_dummy_code, call_function_by_hand): Ditto.
5603 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Ditto.
5604
5605 * breakpoint.h (deprecated_frame_in_dummy): Delete declaration.
5606 (struct frame_info): Delete opaque declaration.
5607 * breakpoint.c (deprecated_frame_in_dummy): Delete function.
5608 * frame.c (get_frame_type): Delete call.
5609
5610 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
5611 pc_in_call_dummy.
5612 * inferior.h (deprecated_pc_in_call_dummy_on_stack): Delete.
5613 * blockframe.c (deprecated_pc_in_call_dummy_on_stack): Delete.
5614
5615 2004-05-08 Mark Kettenis <kettenis@gnu.org>
5616
5617 * alphanbsd-tdep.c: Include "gdb_string.h".
5618 * armnbsd-tdep.c: Update copyright year.
5619 Include "gdb_string.h".
5620 * Makefile.in (alphanbsd-tdep.o, armnbsd-tdep.o): Update
5621 dependencies.
5622
5623 * delta68-nat.c: Remove file.
5624 * m68k-tdep.c (delta68_in_sigtramp, delta68_frame_args_address)
5625 (delta68_frame_saved_pc, delta68_frame_num_args): Remove functions.
5626 * Makefile.in (ALLDEPFILES): Remove delta68-nat.c.
5627 (delta68-nat.o): Remove dependency.
5628
5629 * m68k-tdep.c (m68k_frameless_function_invocation): Remove
5630 function.
5631 (m68k_gdbarch_init): Don't set
5632 deprecated_frameless_function_invocation.
5633
5634 2004-05-07 Randolph Chung <tausq@debian.org>
5635
5636 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Use
5637 read_memory_nobpt for code reading when doing frame unwinding.
5638 * hppa-linux-tdep.c (insns_match_pattern): Likewise.
5639
5640 2004-05-07 Randolph Chung <tausq@debian.org>
5641
5642 * hppa-linux-tdep.c (hppa_linux_sigtramp_find_sigcontext): Pass in pc
5643 instead of sp, handle sigaltstack case.
5644 (hppa_linux_sigtramp_frame_unwind_cache): Adjust calls to
5645 hppa_linux_sigtramp_find_sigcontext, and set base to the frame of the
5646 signal handler and not that of the caller.
5647 (hppa_linux_sigtramp_unwind_sniffer): Adjust calls to
5648 hppa_linux_sigtramp_find_sigcontext.
5649
5650 2004-05-07 Randolph Chung <tausq@debian.org>
5651
5652 * Makefile.in (ALLDEPFILES): Add hppa-linux-tdep.c and
5653 hppa-linux-nat.c.
5654 (hppa-linux-tdep.o, hppa-linux-nat.o): Define rules.
5655 * hppa-linux-nat.c (fetch_register, store_register): Define.
5656 (fetch_inferior_registers, store_inferior_registers): Define.
5657 (supply_gregset): Add comment and clean up some unneeded code.
5658 (fill_gregset): Add comment and fix so that it saves registers in
5659 the right place in the gregset.
5660 (fill_fpregset): Fix buffer overrun problem.
5661 * config/pa/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
5662
5663 2004-05-07 Randolph Chung <tausq@debian.org>
5664
5665 * hppa-tdep.c (hppa_frame_prev_register_helper): New function to
5666 do common handling of the pcoqt register.
5667 (hppa_frame_prev_register, hppa_stub_frame_prev_register): Convert
5668 to use helper function.
5669 (hppa_frame_unwind_sniffer): Only use if unwind entry is present.
5670 (hppa_fallback_frame_cache, hppa_fallback_frame_this_id)
5671 (hppa_fallback_frame_prev_register, hppa_fallback_frame_unwind): New
5672 generic fallback unwinder when all else fails.
5673 (hppa_gdbarch_init): Add fallback sniffer.
5674 * hppa-tdep.h (hppa_frame_prev_register_helper): Prototype.
5675 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register): Convert
5676 to use helper function.
5677
5678 2004-05-08 Joel Brobecker <brobecker@gnat.com>
5679
5680 * config/djgpp/fnchange.lst: Add translation rules for
5681 gdb.arch/powerpc-aix-prologue.c and gdb.arch/powerpc-aix-prologue.exp.
5682
5683 2004-05-08 Mark Kettenis <kettenis@gnu.org>
5684
5685 * frame.c (get_prev_frame_1): Work around GCC bug.
5686 * frame.h: Add comment about GCC bug.
5687
5688 2004-05-07 Andrew Cagney <cagney@redhat.com>
5689
5690 * observer.c: Include "commands.h" and "gdbcmd.h".
5691 (observer_debug, _initialize_observer): Add the
5692 command "set/show debug observer".
5693 * observer.sh: When observer debugging, log notify calls.
5694 * Makefile.in (observer.o): Update dependencies.
5695
5696 2004-05-07 Jason Molenda (jmolenda@apple.com)
5697
5698 * cli/cli-decode.c: Fix "SHOW_DOR" comment typeos.
5699
5700 2004-05-07 Jim Blandy <jimb@redhat.com>
5701
5702 * aix-thread.c (fetch_regs_kernel_thread, fill_gprs64,
5703 fill_gprs32, store_regs_kernel_thread): Use tdep->ppc_gp0_regnum
5704 to recognize gpr regnums, instead of assuming that
5705 tdep->ppc_fp0_regnum marks the end of the general-purpose
5706 registers.
5707
5708 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Assert that
5709 the given architecture has floating-point registers.
5710
5711 2004-05-07 Andrew Cagney <cagney@redhat.com>
5712
5713 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Replace with
5714 macro defined to 1.
5715 * gdbarch.h, gdbarch.c: Re-generate.
5716 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
5717 deprecated_use_generic_dummy_frames.
5718
5719 2004-05-07 Brian Ford <ford@vss.fsi.com>
5720
5721 * NEWS: Mention Cygwin DWARF 2 support.
5722
5723 2004-05-07 Andrew Cagney <cagney@redhat.com>
5724
5725 * objfiles.h (struct entry_info): Delete unused fields
5726 deprecated_entry_file_lowpc and deprecated_entry_file_highpc.
5727 * objfiles.c (init_entry_point_info, objfile_relocate): Update.
5728 * mipsread.c (mipscoff_symfile_read): Update.
5729 * mdebugread.c (parse_partial_symbols): Update.
5730 * dwarfread.c (read_file_scope): Update.
5731 * dwarf2read.c (read_file_scope): Update.
5732 * dbxread.c (read_dbx_symtab, read_dbx_symtab): Update.
5733 * coffread.c (complete_symtab): Update.
5734
5735 2004-05-07 Mark Kettenis <kettenis@gnu.org>
5736
5737 * infcall.c (_initialize_infcall): Fix typo.
5738
5739 2004-05-07 Andrew Cagney <cagney@redhat.com>
5740
5741 * cli/cli-decode.c (add_setshow_zinteger_cmd): New function.
5742 * command.h (add_setshow_zinteger_cmd): Declare.
5743
5744 2004-05-06 Randolph Chung <tausq@debian.org>
5745
5746 * config/pa/tm-hppa.h (RO_REGNUM, FLAGS_REGNUM, RP_REGNUM)
5747 (HPPA_FP_REGNUM, HPPA_SP_REGNUM, SAR_REGNUM, IPSW_REGNUM)
5748 (PCOQ_HEAD_REGNUM, PCSQ_HEAD_REGNUM, PCOQ_TAIL_REGNUM, PCSQ_TAIL_REGNUM)
5749 (EIEM_REGNUM, IIR_REGNUM, ISR_REGNUM, IOR_REGNUM, SR4_REGNUM)
5750 (RCR_REGNUM, PID0_REGNUM, PID1_REGNUM, PID2_REGNUM, PID3_REGNUM)
5751 (CCR_REGNUM, TR0_REGNUM, CR27_REGNUM, HPPA_FP0_REGNUM, FP4_REGNUM)
5752 (ARG0_REGNUM, ARG1_REGNUM, ARG2_REGNUM, ARG3_REGNUM): Move *_REGNUM
5753 definitions ...
5754 * hppa-tdep.h: ... to here, with HPPA_ prefix.
5755 * Makefile.in (hppah-nat.o): Add $(hppa_tdep_h)
5756 * hppa-hpux-tdep.c (hppa32_hpux_frame_find_saved_regs_in_sig)
5757 (hppa64_hpux_frame_find_saved_regs_in_sig)
5758 (child_get_current_exception_event): Add HPPA_ prefix to *_REGNUM usage.
5759 * hppa-linux-nat.c (GR_REGNUM, TR_REGNUM, greg_map): Likewise.
5760 * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum)
5761 (hppa_linux_target_write_pc, hppa_linux_sigtramp_frame_unwind_cache)
5762 (hppa_linux_sigtramp_frame_prev_register): Likewise.
5763 * hppa-tdep.c (hppa32_return_value, hppa64_return_value)
5764 (hppa32_push_dummy_call, hppa64_push_dummy_call, hppa64_frame_align)
5765 (hppa_target_read_pc, hppa_target_write_pc, hppa_frame_cache)
5766 (hppa_frame_prev_register, hppa_stub_frame_unwind_cache)
5767 (hppa_stub_frame_prev_register, hppa_unwind_dummy_id)
5768 (hppa_skip_permanent_breakpoint, hppa_instruction_nullified)
5769 (hppa32_register_type, hppa_cannot_store_register)
5770 (hppa_fetch_pointer_argument, hppa_pseudo_register_read): Likewise.
5771 * hppah-nat.c (store_inferior_registers, fetch_register): Likewise.
5772 * hpread.c (hpread_process_one_debug_symbol): Likewise.
5773 * pa64solib.c (pa64_solib_have_load_event)
5774 (pa64_solib_have_unload_event, pa64_solib_loaded_library_pathname)
5775 (pa64_solib_unloaded_library_pathname): Likewise.
5776 * somsolib.c (som_solib_have_load_event, som_solib_have_unload_event)
5777 (som_solib_library_pathname): Likewise.
5778
5779 2004-05-05 Jim Ingham <jingham@apple.com>
5780
5781 * breakpoint.c (create_breakpoints): Copy the ignore count and
5782 thread id over from the pended breakpoint to the actual
5783 breakpoint.
5784
5785 2004-05-05 Andrew Cagney <cagney@redhat.com>
5786
5787 * gdbarch.sh (PARM_BOUNDARY): Delete.
5788 gdbarch.h, gdbarch.c: Re-generate.
5789 * valops.c (PARM_BOUNDARY): Delete macro.
5790 (value_push): Delete PARM_BOUNDARY code.
5791 * m68k-tdep.c (m68k_gdbarch_init): Do not set parm_boundary.
5792
5793 2004-05-04 Jim Blandy <jimb@redhat.com>
5794
5795 * ppc-linux-nat.c (fetch_ppc_registers, store_ppc_registers):
5796 Don't assume that the gprs, fprs, and UISA sprs are
5797 contiguous, start at register number zero, and end with fpscr.
5798 Instead, use the numbers from the tdep structure.
5799
5800 * config/rs6000/tm-rs6000.h (FP0_REGNUM): Document that this
5801 should no longer be used in code specific to the RS6000 and its
5802 derivatives.
5803 * ppc-tdep.h (struct gdbarch_tdep): Add 'ppc_fp0_regnum' member.
5804 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize
5805 tdep->ppc_fp0_regnum.
5806 (ppc_supply_fpregset, ppc_collect_fpregset)
5807 (rs6000_push_dummy_call, rs6000_extract_return_value)
5808 (rs6000_dwarf2_stab_reg_to_regnum, rs6000_store_return_value)
5809 (rs6000_frame_cache): Use tdep->ppc_fp0_regnum instead of
5810 FP0_REGNUM.
5811 * aix-thread.c (supply_fprs, fetch_regs_kernel_thread)
5812 (fill_gprs64, fill_gprs32, fill_fprs, store_regs_kernel_thread):
5813 Same.
5814 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_fetch_registers,
5815 bdm_ppc_store_registers): Same.
5816 * ppc-linux-nat.c (ppc_register_u_addr, fetch_register)
5817 (store_register, fill_fpregset): Same.
5818 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache)
5819 (ppc_linux_supply_fpregset): Same.
5820 * ppcnbsd-nat.c (getfpregs_supplies): Same.
5821 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg):
5822 Same.
5823 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call,
5824 do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call,
5825 ppc64_sysv_abi_return_value): Same.
5826 * rs6000-nat.c (regmap, fetch_inferior_registers)
5827 (store_inferior_registers, fetch_core_registers): Same.
5828
5829 2004-05-01 Mark Kettenis <kettenis@gnu.org>
5830
5831 * m68knbsd-nat.c: Remove file.
5832 * m68knbsd-tdep.c: Remove file.
5833 * Makefile.in: (m68knbsd-nat.o, m68knbsd-tdep.o): Remove
5834 dependencies.
5835 * configure.host: Add m68k-*-netbsdelf*.
5836 * configure.tgt (m68k-*-netbsd*): Set gdb_target to nbsd.
5837 * config/m68k/nbsdaout.mh (NATDEPFILES): Add m68kbsd-nat.o,
5838 solib.o and solib-sunos.o. Remove m68knbsd-nat.o, corelow.o.
5839 (XM_FILE): Remove.
5840 * config/m68k/nbsdelf.mh: New file.
5841 * config/m68k/nbsd.mt: New file.
5842 * config/m68k/nbsdaout.mt: Remove file.
5843 * config/m68k/tm-nbsd.h: Don't include <sys/param.h>,
5844 <machine/vmparam.h> and "m68k/tm-m68k.h". Include "solib.h".
5845 (BPT_VECTOR, STACK_END_ADDR): Remove defines.
5846 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Likewise.
5847 (use_struct_convention): Remove prototype.
5848 (USE_STRUCT_CONVENTION): Remove define.
5849 * config/m68k/xm-nbsd.h: Remove file.
5850
5851 2004-05-04 Michael Snyder <msnyder@redhat.com>
5852
5853 * m68k-tdep.c (m68k_gdbarch_init): Default to using
5854 reg_struct_return method (as gcc usually does for cross targets).
5855
5856 2004-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5857
5858 Committed by Andrew Cagney.
5859 * s390-tdep.c (s390_sigtramp_frame_unwind_cache): Account for
5860 alignment padding when accessing ucontext struct members.
5861
5862 2004-05-04 Jim Blandy <jimb@redhat.com>
5863
5864 * config/ppc-tdep.h (struct gdbarch_tdep): Delete
5865 'ppc_gplast_regnum' member.
5866 (ppc_num_gprs): New enum constant.
5867 * ppc-linux-nat.c (ppc_register_u_addr): Use tdep->ppc_gp0_regnum
5868 and ppc_num_gprs instead of tdep->ppc_gplast_regnum.
5869 * rs6000-nat.c (regmap, fetch_inferior_registers,
5870 store_inferior_registers): Same.
5871 * rs6000-tdep.c (e500_pseudo_register_read)
5872 (e500_pseudo_register_write): Same.
5873 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gplast_regnum.
5874
5875 * config/rs6000/tm-rs6000.h (FPLAST_REGNUM): Delete #definition.
5876 * ppc-tdep.h (ppc_num_fprs): New enum constant.
5877 * aix-thread.c (fetch_regs_kernel_thread, fill_fprs,
5878 store_regs_kernel_thread): Use FP0_REGNUM + ppc_num_fprs, not
5879 FPLAST_REGNUM.
5880 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
5881 Same.
5882 * ppc-linux-nat.c (ppc_register_u_addr): Same.
5883 * rs6000-nat.c (regmap, fetch_inferior_registers)
5884 (store_inferior_registers): Same.
5885
5886 * aix-thread.c (fill_fprs): Fix off-by-one error comparing regno
5887 with FPLAST_REGNUM.
5888
5889 2004-05-03 Joel Brobecker <brobecker@gnat.com>
5890
5891 * dwarf2read.c (dwarf2_create_include_psymtab): Fix build
5892 failure detected by recent versions of GCC.
5893 (psymtab_to_symtab_1): No longer use the PST_PRIVATE macro
5894 to be consistent with the usage in dwarf2_create_include_psymtab.
5895
5896 2004-05-03 Michael Snyder <msnyder@redhat.com>
5897
5898 * mips-tdep.c (mips_gdbarch_init): Fix typo in comment.
5899 (heuristic_proc_start): Whitespace cleanup.
5900
5901 2004-05-04 Mark Kettenis <kettenis@gnu.org>
5902
5903 * sun3-nat.c: Remove file.
5904 * Makefile.in (tm-sun3.h tm-altos.h tm-sun2.h tm-3b1.h): Remove
5905 dependencies.
5906 (ALLDEPFILES): Remove sun3-nat.c.
5907 (sun3-nat.o): Remove dependencies.
5908
5909 * i386-interix-nat.c, i386-interix-tdep.c,
5910 config/i386/nm-interix.h, config/i386/interix.mh,
5911 config/i386/interix.mt: Remove files.
5912 * Makefile.in (i386-interix-nat.o, i386-interix-tdep.o): Remove
5913 dependencies.
5914
5915 2004-05-03 Mark Kettenis <kettenis@gnu.org>
5916
5917 * m68k-tdep.h (struct gdbarch_tdep): Add member
5918 struct_value_regnum.
5919 (m68k_svr4_init_abi): New prototype.
5920 * m68k-tdep.c: Include "floatformat.h". Add comment about all the
5921 different calling conventions.
5922 (m68k_extract_return_value): Remove code dealing with single-field
5923 structs.
5924 (m68k_store_return_value): Remove code dealing with single-field
5925 structs. Correctly store return values of 5, 6, 7 or 8 bytes.
5926 (m68k_extract_struct_value_address): Remove function.
5927 (m68k_svr4_extract_return_value,m68k_svr4_store_return_value)
5928 (m68k_reg_struct_return_p, m68k_return_value)
5929 (m68k_svr4_return_value): New functions.
5930 (m68k_use_struct_convention): Remove function.
5931 (m68k_push_dummy_call): Use new struct_value_regnum member of
5932 `struct gdbarch_tdep' instead of hardcoded register number to
5933 store STRUCT_ADDR.
5934 (m68k_svr4_init_abi): New function.
5935 (m68k_gdbarch_init): Don't set extract_return_value,
5936 store_return_values, deprecated_extract_struct_value_address and
5937 use_struct_convention. Set return_value instead. Initialize new
5938 struct_value_regnum member of `struct gdbarch_tdep'.
5939 * m68klinux-tdep.c: Update copyright year.
5940 (m68k_linux_extract_return_value, m68k_linux_store_return_value)
5941 (m68k_linux_extract_struct_value_address): Remove function.
5942 (m68k_linux_init_abi): Don't set extract_return_value,
5943 store_return_values, deprecated_extract_struct_value_address and
5944 use_struct_convention. Call m68k_svr4_init_abi but override the
5945 new struct_value_regnum member of `struct gdbarch_tdep'.
5946 * Makefile.in (m68k-tdep.o): Update dependencies.
5947
5948 2004-05-03 J. Brobecker <brobecker@gnat.com>
5949
5950 * dwarf2read.c (line_header): Add new included_p field in
5951 field file_names.
5952 (partial_die_info): New field has_stmt_list. New field line_offset.
5953 (dwarf2_create_include_psymtab): New function.
5954 (dwarf2_build_include_psymtabs): New function.
5955 (add_file_name): Add forward declaration. Initialize new field.
5956 (dwarf_decode_lines): Add new parameter. Enhance this procedure
5957 to be able to determine the list of files included by the
5958 given unit, and build their associated psymtabs.
5959 (dwarf2_build_psymtabs_hard): Build the psymtabs for the included
5960 files as well.
5961 (psymtab_to_symtab_1): Build the symtabs of all dependencies as well.
5962 (read_file_scope): Update call to dwarf_decode_lines.
5963 (read_partial_die): Handle DW_AT_stmt_list attributes.
5964
5965 2004-05-02 Michael Chastain <mec.gnu@mindspring.com>
5966
5967 Unfix PR gdb/1626.
5968 * configure.in: Revert special case for osf5.*.
5969 * configure: Regenerate.
5970
5971 2004-05-02 Jim Blandy <jimb@redhat.com>
5972
5973 Move the symbol-file-from-memory functions into their own file.
5974 * symfile-mem.c, symfile-mem.h: New files.
5975 * symfile.c (symbol_file_add_from_bfd): New function.
5976 (symbol_file_add): Call symbol_file_add_from_bfd.
5977 (symbol_file_add_from_memory, add_symbol_file_from_memory_command):
5978 Moved to symfile-mem.c.
5979 (_initialize_symfile): Move definition of
5980 add-symbol-file-from-memory command to symfile-mem.c.
5981 * symfile.h (symbol_file_add_from_bfd): New declaration.
5982 * config/i386/linux.mt (TDEPFILES): Add symfile-mem.o.
5983 * config/powerpc/linux.mt (TDEPFILES): Same.
5984 * Makefile.in (SFILES): Add symfile-mem.c.
5985 (symfile_mem_h): New variable.
5986 (HFILES_NO_SRCDIR): Add symfile-mem.h.
5987 (symfile-mem.o): New rule.
5988
5989 2004-05-01 Andrew Cagney <cagney@redhat.com>
5990
5991 * breakpoint.c (insert_bp_location): Use get_frame_id, and
5992 frame_find_by_id instead of frame_relative_level.
5993 (do_enable_breakpoint): Ditto.
5994 * thread.c: Update copyright.
5995 (info_threads_command): Ditto, simplify.
5996
5997 * frame.c (deprecated_generic_get_saved_register): Delete
5998 function, moved to "xstormy16-tdep.c".
5999 * xstormy16-tdep.c (xstormy16_get_saved_register): Inline
6000 deprecated_generic_get_saved_register from "frame.c".
6001 (xstormy16_frame_saved_register): Call
6002 xstormy16_get_saved_register.
6003 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Make
6004 static.
6005 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Delete.
6006 * frame.h (deprecated_generic_get_saved_register): Delete.
6007
6008 2004-05-01 Michael Chastain <mec.gnu@mindspring.com>
6009
6010 * dwarfread.c: Update documentation on the state of dwarf-1.
6011
6012 2004-05-01 Andrew Cagney <cagney@redhat.com>
6013
6014 * stack.c (select_frame_command): Delete call to
6015 frame_relative_level.
6016 (print_frame, set_backtrace_limit_command, backtrace_limit_info):
6017 Delete #if0 code.
6018 (frame_info): Do not print FRAMELESS.
6019 (print_block_frame_labels): Replace DEPRECATED_STREQ.
6020 (catch_info): Delete #if0 code.
6021
6022 * frame.c (create_sentinel_frame): Set type to SENTINEL_FRAME.
6023 * dummy-frame.c (dummy_frame_this_id): Use get_frame_type, instead
6024 of frame_relative_level.
6025 * sentinel-frame.c (sentinel_frame_unwinder): Set unwinder's type
6026 to SENTINEL_FRAME.
6027 * frame.h (enum frame_type): Add SENTINEL_FRAME.
6028 * s390-tdep.c (s390_prologue_frame_unwind_cache): Delete calls to
6029 frame_relative_level.
6030
6031 * frame.h (deprecated_set_frame_type): Delete declaration.
6032 * frame.c (deprecated_set_frame_type): Delete function, update
6033 comments.
6034
6035 * gdbarch.sh (DEPRECATED_PC_IN_SIGTRAMP): Delete.
6036 * gdbarch.h, gdbarch.c: Re-generate.
6037 * shnbsd-tdep.c (shnbsd_init_abi): Do not set pc_in_sigtramp.
6038 (shnbsd_pc_in_sigtramp): Delete.
6039 * i386-interix-tdep.c (i386_interix_init_abi): Do not set
6040 pc_in_sigtramp.
6041 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Do not set
6042 pc_in_sigtramp.
6043 * frame.h: Update comments.
6044 * ppc-linux-tdep.c: Update comments.
6045 * breakpoint.c (bpstat_what): Update comments.
6046
6047 * Makefile.in (m68klinux-tdep.o, m68klinux-nat.o): Fix
6048 m68klinux-tdep.o's dependencies, were previously added to
6049 m68klinux-nat.o.
6050
6051 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Use pc_in_sigtramp.
6052 * alpha-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp.
6053 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
6054 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
6055 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
6056
6057 * Makefile.in (m68klinux-nat.o): Update dependencies.
6058 * m68klinux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
6059 (m68k_linux_sigtramp_frame_cache)
6060 (m68k_linux_sigtramp_frame_this_id)
6061 (m68k_linux_sigtramp_frame_prev_register)
6062 (m68k_linux_sigtramp_frame_unwind)
6063 (m68k_linux_sigtramp_frame_sniffer)
6064 (struct m68k_linux_sigtramp_info, m68k_linux_init_abi): Code from
6065 m68k-tdep.h and m68k-tdep.c, add "linux" to function and variable
6066 names, use trad-frame.h.
6067 * m68k-tdep.h (struct gdbarch_tdep): Delete get_sigtramp_info.
6068 (struct m68k_sigtramp_info): Delete.
6069 * m68k-tdep.c (m68k_sigtramp_frame_cache)
6070 (m68k_sigtramp_frame_this_id, m68k_sigtramp_frame_prev_register)
6071 (m68k_sigtramp_frame_unwind, m68k_sigtramp_frame_sniffer)
6072 (m68k_gdbarch_init): Delete all the sigtramp code, moved to
6073 "m68klinux-tdep.c".
6074
6075 * infrun.c (check_sigtramp2): Delete check for
6076 DEPRECATED_PC_IN_SIGTRAMP and INNER_THAN.
6077
6078 2004-05-01 Mark Kettenis <kettenis@gnu.org>
6079
6080 * m68k-tdep.h (m68kbsd_fpreg_offset): New prototype.
6081
6082 2004-05-01 Andrew Cagney <cagney@redhat.com>
6083
6084 * frv-linux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
6085 (frv_linux_sigtramp_frame_cache)
6086 (frv_linux_sigtramp_frame_this_id)
6087 (frv_linux_sigtramp_frame_prev_register)
6088 (frv_linux_sigtramp_frame_unwind)
6089 (frv_linux_sigtramp_frame_sniffer): Copied from frv-tdep.c,
6090 include "linux" in function and variable names, directly call
6091 frv_linux_pc_in_sigtramp and frv_linux_sigcontext_reg_addr, use
6092 the latest trad-frame code.
6093 (frv_linux_init_abi): Append frv_linux_sigtramp_frame_sniffer, do
6094 not set frv_sigcontext_reg_addr or deprecated_pc_in_sigtramp
6095 * Makefile.in (frv-linux-tdep.o): Update dependencies.
6096 * frv-tdep.h (frv_set_sigcontext_reg_addr): Delete declaration.
6097 * frv-tdep.c (frv_sigtramp_frame_cache)
6098 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
6099 (frv_sigtramp_frame_unwind, frv_sigtramp_frame_sniffer): Moved to
6100 frv-linux-tdep.c.
6101 (frv_gdbarch_init): Do not append a sigtramp sniffer.
6102 (struct gdbarch_tdep): Delete sigcontext_reg_addr.
6103 (frv_set_sigcontext_reg_addr): Delete function.
6104
6105 * gdbarch.sh (DEPRECATED_SIGTRAMP_START)
6106 (DEPRECATED_SIGTRAMP_END): Delete.
6107 * gdbarch.h, gdbarch.c: Re-generate.
6108 * arch-utils.c (legacy_pc_in_sigtramp): Simplify.
6109 * config/vax/tm-vaxbsd.h: Update copyright.
6110 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
6111 (DEPRECATED_IN_SIGTRAMP): Define.
6112 * config/m68k/tm-nbsd.h: Update copyright.
6113 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
6114 (DEPRECATED_IN_SIGTRAMP): Define.
6115
6116 2004-05-01 Mark Kettenis <kettenis@gnu.org>
6117
6118 * dwarf2-frame.c (read_encoded_value): Handle DW_EH_PE_funcrel
6119 encondings. Fixes PR gdb/1628.
6120
6121 * dwarf2-frame.c (execute_cfa_program): Complain if we encounter a
6122 DW_CFA_restore state without a matching DW_CFA_remember_state
6123 instead of aborting. Fixes PR backtrace/1589.
6124
6125 2004-04-30 Joel Brobecker <brobecker@gnat.com>
6126
6127 * MAINTAINERS: Add self as AIX maintainer.
6128 Update my e-mail address in write-after-approval section.
6129
6130 2004-04-30 Andrew Cagney <cagney@redhat.com>
6131
6132 * frame.c (frame_type_from_pc): Delete call to PC_IN_SIGTRAMP.
6133 (legacy_get_prev_frame): Ditto.
6134
6135 * mips-tdep.c (mips_pc_in_sigtramp): Delete.
6136 (mips_gdbarch_init): Do not set pc_in_sigtramp.
6137 * mipsread.c (sigtramp_address): Delete extern variable.
6138 (mipscoff_new_init): Delete reference.
6139 * mdebugread.c (sigtramp_address, sigtramp_end): Delete variables.
6140 (fixup_sigtramp): Delete function.
6141 * config/mips/tm-mips.h (sigtramp_address, sigtramp_end)
6142 (fixup_sigtramp): Delete declarations.
6143
6144 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Do not set
6145 deprecated_pc_in_sigtramp.
6146 (ppcnbsd_pc_in_sigtramp): Delete function.
6147
6148 2004-05-01 Mark Kettenis <kettenis@gnu.org>
6149
6150 * config/m68k/nm-nbsd.h: Tweak comments.
6151 * config/m68k/nm-nbsdaout.h: Likewise.
6152
6153 2004-04-30 Andrew Cagney <cagney@redhat.com>
6154
6155 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Call
6156 legacy_pc_in_sigtramp.
6157 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Ditto.
6158
6159 2004-05-01 Mark Kettenis <kettenis@gnu.org>
6160
6161 Add OpenBSD/m68k support.
6162 * NEWS (New native configurations): Mention OpenBSD/m68k.
6163 * m68kbsd-tdep.c: New file.
6164 * m68kbsd-nat.c: New file.
6165 * Makefile.in (ALLDEPFILES): Add m68kbsd-nat.c and m68kbsd-tdep.c.
6166 (m68kbsd-nat.o, m68kbsd-tdep.o): New dependencies.
6167 * configure.host: Add m68k-*-openbsd.
6168 * configure.tgt: Add m68k-*-openbsd.
6169 * config/m68k/tm-obsd.h: New file.
6170 * config/m68k/obsd.mt: New file.
6171 * config/m68k/obsd.mh: New file.
6172 * config/djgpp/fnchange.lst: Add entries for m68kbsd-nat.c and
6173 m68kbsd-tdep.c.
6174
6175 2004-04-30 Andrew Cagney <cagney@redhat.com>
6176
6177 * mipsnbsd-tdep.c (mipsnbsd_pc_in_sigtramp): Delete function.
6178 (mipsnbsd_init_abi): Do not set pc_in_sigtramp.
6179
6180 2004-04-30 Mark Kettenis <kettenis@gnu.org>
6181
6182 * m68k-tdep.c (REMOTE_BPT_VECTOR): Remove define.
6183 * config/m68k/tm-nbsd.h (REMOTE_BPT_VECTOR): Remove define.
6184
6185 2004-04-30 Brian Ford <ford@vss.fsi.com>
6186
6187 Revert 2004-04-16 change.
6188 * i386-tdep.c (i386_gdbarch_init): Fix comment typos.
6189 (i386_coff_init_abi): Remove.
6190 * i386-tdep.h (i386_coff_init_abi): Remove.
6191 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Remove call to above.
6192
6193 2004-04-30 Andrew Cagney <cagney@redhat.com>
6194
6195 * blockframe.c (find_pc_partial_function): Delete use of
6196 DEPRECATED_PC_IN_SIGTRAMP, DEPRECATED_SIGTRAMP_START and
6197 DEPRECATED_SIGTRAMP_END.
6198
6199 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Delete.
6200 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Delete.
6201 * config/mips/tm-nbsd.h: Delete undef DEPRECATED_IN_SIGTRAMP.
6202 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Delete.
6203 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Delete.
6204
6205 * defs.h (deprecated_inside_entry_file): Delete declaration.
6206 * blockframe.c (deprecated_inside_entry_file): Delete function.
6207 (legacy_frame_chain_valid): Delete call.
6208 * sh64-tdep.c (sh64_frame_chain): Delete call.
6209 * objfiles.h: Update comments.
6210 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Delete
6211 call.
6212 * frame.c (get_prev_frame): Delete call, update comments.
6213
6214 2004-04-30 Brian Ford <ford@vss.fsi.com>
6215
6216 * MAINTAINERS (Write After Approval): Add myself.
6217
6218 2004-04-30 Andrew Cagney <cagney@redhat.com>
6219
6220 * gdbarch.sh (BELIEVE_PCC_PROMOTION_TYPE): Delete.
6221 * gdbarch.h, gdbarch.c: Re-generate.
6222 * stabsread.c (define_symbol): Delete BELIEVE_PCC_PROMOTION_TYPE
6223 code.
6224
6225 2004-04-30 Andrew Cagney <cagney@redhat.com>
6226
6227 * gdb-events.sh (selected_thread_changed)
6228 (selected_frame_level_changed, target_changed): Delete.
6229 * gdb-events.h, gdb-events.c: Re-generate.
6230 * valops.c (value_assign): Update.
6231 * stack.c (select_frame_command, up_silently_base)
6232 (down_silently_base): Update.
6233
6234 2004-04-29 Andrew Cagney <cagney@redhat.com>
6235
6236 * mips-tdep.c (mips_register_type): Re-write, handle 32-bit ABI
6237 registers correctly.
6238 (print_gp_register_row, mips32_heuristic_proc_desc)
6239 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
6240 (mips_o64_push_dummy_call, mips_eabi_push_dummy_call): Eliminate
6241 references to mips_isa_regsize.
6242
6243 2004-04-29 Andrew Cagney <cagney@redhat.com>
6244
6245 * mips-tdep.c (struct gdbarch_tdep): Delete
6246 mips_fp_register_double.
6247 (FP_REGISTER_DOUBLE): Delete macro, replace with test for
6248 mips_abi_regsize.
6249 (mips_gdbarch_init): Do not set mips_fp_register_double.
6250 (mips_dump_tdep): Do not print FP_REGISTER_DOUBLE.
6251
6252 2004-04-29 Joel Brobecker <brobecker@gnat.com>
6253
6254 Committed by Andrew Cagney.
6255 * infrun.c (handle_inferior_event): Rely on frame IDs to detect
6256 function calls.
6257
6258 2004-04-29 Andrew Cagney <cagney@redhat.com>
6259
6260 * mips-tdep.c (mips_abi_regsize): Replace tdep parameter with
6261 gdbarch, use mips_abi, update callers.
6262 (mips_stack_argsize): Replace tdep parameter with gdbarch, use
6263 mips_abi_regsize, update callers.
6264 (struct gdbarch_tdep): Delete mips_default_stack_argsize and
6265 mips_default_abi_regsize.
6266 (mips_gdbarch_init): Do not set mips_default_stack_argsize and
6267 mips_default_abi_regsize.
6268
6269 2004-04-29 Andrew Cagney <cagney@redhat.com>
6270
6271 * mips-tdep.c (mips_abi_regsize): Rename mips_saved_regsize.
6272 (mips_abi_regsize_string): Rename mips_saved_regsize_string.
6273 (struct gdbarch_tdep): Rename mips_default_saved_regsize to
6274 mips_default_abi_regsize.
6275 (mips_isa_regsize): Rename mips_regisze.
6276 * mipsnbsd-tdep.c: Update.
6277 * mips-linux-tdep.c: Update.
6278 * irix5-nat.c: Update.
6279 * mips-tdep.h (mips_isa_regsize): Update.
6280
6281 * gdb-events.sh (WITH_GDB_EVENTS): Delete macro and references.
6282 Delete all disabled code.
6283 * gdb-events.h, gdb-events.c: Re-generate.
6284
6285 2004-04-19 Jerome Guitton <guitton@gnat.com>
6286 Mark Kettenis <kettenis@gnu.org>
6287
6288 * i386-tdep.c (i386_skip_prologue): follow the last jump only if
6289 the function begins with a branch instruction.
6290
6291 2004-04-29 Mark Kettenis <kettenis@gnu.org>
6292
6293 * i386-tdep.c: Fix spelling mistakes.
6294
6295 2004-04-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6296 Andrew Cagney <cagney@redhat.com>
6297
6298 * configure.in (mips-sgi-irix5*): Define _KMEMUSER for
6299 <sys/proc.h>.
6300 * acconfig.h: Provide default _KMEMUSER value.
6301 * config.in, configure: Re-generate.
6302 * NEWS: Mention fix.
6303
6304 2004-04-24 Randolph Chung <tausq@debian.org>
6305
6306 * configure.host (hppa*-*-linux*): New target.
6307 * configure.tgt (hppa*-*-linux*): Likewise.
6308 * hppa-tdep.c (hppa_gdbarch_init): Set cannot_fetch_register, move
6309 gdbarch_init_osabi() call earlier so that osabi-specific frame
6310 unwinders can be registered first.
6311 * config/djgpp/fnchange.lst: Add entries for hppa-linux-tdep.c and
6312 hppa-linux-nat.c.
6313 * config/pa/tm-hppa.h (ISR_REGNUM, PID0_REGNUM, PID1_REGNUM)
6314 (PID2_REGNUM, PID3_REGNUM): Add definitions of some register numbers.
6315 * config/pa/linux.mh: New file.
6316 * config/pa/linux.mt: New file.
6317 * config/pa/nm-linux.h: New file.
6318 * config/pa/xm-linux.h: New file.
6319 * hppa-linux-nat.c: New file.
6320 * hppa-linux-tdep.c: New file.
6321
6322 2004-04-28 Randolph Chung <tausq@debian.org>
6323
6324 * hppa-tdep.c (hppa32_return_value): Handle both 4- and 8-byte fp
6325 return values.
6326 (hppa32_push_dummy_call): Fix small struct and floating point argument
6327 passing, and make sure the stack frame is properly aligned.
6328
6329 2004-04-28 Andrew Cagney <cagney@redhat.com>
6330
6331 * stack.c (print_stack_frame): Fix description.
6332
6333 * NEWS: Mention gdb/gdbserver/configure execute permission
6334 changed. PR server/519.
6335
6336 2004-04-28 Andrew Cagney <cagney@redhat.com>
6337
6338 * stack.c (print_stack_frame_stub): Delete declaration.
6339 (struct print_stack_frame_args, print_stack_frame)
6340 (print_frame_info, print_frame): Replace "source" with print what.
6341 Replace "print" with "print_level". Replace "args" with
6342 "print_args".
6343 * frame.h (show_and_print_stack_frame, print_stack_frame)
6344 (print_frame_info): Update declarations.
6345 * stack.c (select_and_print_frame, frame_command)
6346 (current_frame_command, up_command, down_command): Update calls -
6347 use get_selected_frame, pass "enum print_what" for source, do not
6348 call frame_relative_level.
6349 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Ditto.
6350 * remote-rdp.c (remote_rdp_open): Ditto.
6351 * remote-mips.c (common_open): Ditto.
6352 * remote-e7000.c (e7000_start_remote): Ditto.
6353 * ocd.c (ocd_start_remote): Ditto.
6354 * mi/mi-main.c (mi_cmd_exec_return): Ditto.
6355 * infrun.c (normal_stop): Ditto.
6356 * inflow.c (kill_command): Ditto.
6357 * infcmd.c (finish_command): Ditto.
6358 * corelow.c (core_open): Ditto.
6359 * tracepoint.c (finish_tfind_command): Ditto.
6360 * thread.c (info_threads_command, info_threads_command)
6361 (restore_current_thread, do_captured_thread_select): Ditto.
6362 * ada-tasks.c (task_command): Ditto.
6363
6364 2004-04-26 Orjan Friberg <orjanf@axis.com>
6365
6366 * frame.c: Include "observer.h".
6367 (frame_observer_target_changed): New function.
6368 (_initialize_frame): Attach target_changed observer.
6369 * regcache.c: Include "observer.h".
6370 (regcache_observer_target_changed): New function.
6371 (_initialize_regcache): Attach target_changed observer.
6372 * valops.c: Include "observer.h".
6373 (value_assign): Notify target_changed event when modifying register.
6374 * Makefile.in (frame.o, regcache.o, valops.o): Add $(observer_h).
6375
6376 2004-04-26 Orjan Friberg <orjanf@axis.com>
6377
6378 From Paul Koning <pkoning@equallogic.com>:
6379 * breakpoint.c (free_valchain): New function.
6380 (insert_bp_location, delete_breakpoint): Use free_valchain.
6381 (remove_breakpoint): Do not remove the valchain.
6382 (bpstat_stop_status): If not stopped by watchpoint, skip
6383 watchpoints when generating stop status list.
6384 * infrun.c (handle_inferior_event): Make
6385 stepped_after_stopped_by_watchpoint a global variable.
6386 * remote.c (remote_stopped_data_address): Return watch data
6387 address rather than zero if stepped_after_stopped_by_watchpoint is
6388 set.
6389
6390 2004-04-25 Michael Chastain <mec.gnu@mindspring.com>
6391
6392 Fix PR gdb/1626.
6393 * configure.in: Check for curses after termcap.
6394 On osf5.*, do not check for ncurses.
6395 * configure: Regenerate.
6396
6397 2004-04-25 Mark Kettenis <kettenis@gnu.org>
6398
6399 * ppcobsd-nat.c: Include "ppc-tdep.h".
6400 * Makefile.in (ppcobsd-nat.o): Update dependencies.
6401
6402 * stack.c (return_command): Use CHECK_TYPEDEF on the return type.
6403 Fixes PR tdep/1623 and PR tdep/1624.
6404
6405 2004-04-24 Michael Chastain <mec.gnu@mindspring.com>
6406
6407 * xmodem.h, xmodem.c: Remove files.
6408 * Makefile.in: Remove references to xmodem.h, xmodem.c.
6409
6410 2004-04-23 Randolph Chung <tausq@debian.org>
6411
6412 * hppa-tdep.c (hppa_stub_unwind_cache, hppa_stub_frame_unwind_cache)
6413 (hppa_stub_frame_this_id, hppa_stub_frame_prev_register)
6414 (hppa_stub_frame_unwind, hppa_stub_unwind_sniffer): New stub unwinder
6415 for handling stackless frames.
6416 (hppa_gdbarch_init): Link in hppa_stub_unwind_sniffer.
6417
6418 2004-04-23 Randolph Chung <tausq@debian.org>
6419
6420 * hppa-tdep.c (hppa_frame_cache): Handle the case when frame unwind
6421 starts at a pc before the frame is created.
6422
6423 2004-04-23 Joel Brobecker <brobecker@gnat.com>
6424
6425 * ChangeLog-2002: Fix year in one of the ChangeLog entries.
6426
6427 2004-04-23 Jerome Guitton <guitton@gnat.com>
6428
6429 * rs6000-tdep.c (rs6000_extract_return_value): When extracting a float,
6430 use convert_typed_floating to get the appropriate format.
6431
6432 2004-04-22 Randolph Chung <tausq@debian.org>
6433
6434 * hppa-tdep.h (find_unwind_entry, hppa_get_field, hppa_extract_5_load)
6435 (hppa_extract_5R_store, hppa_extract_5r_store, hppa_extract_17)
6436 (hppa_extract_21, hppa_extract_14, hppa_low_sign_extend)
6437 (hppa_sign_extend): Add prototype.
6438 * hppa-tdep.c (get_field, extract_5_load, extract_5R_store)
6439 (extract_5r_store, extract_17, extract_21, extract_14, low_sign_extend)
6440 (sign_extend): Rename with hppa_ prefix and make non-static. Other
6441 hppa targets will also use these functions.
6442 (find_unwind_entry): Remove prototype (moved to hppa-tdep.h).
6443 (hppa_in_solib_call_trampoline, hppa_in_solib_return_trampoline)
6444 (hppa_skip_trampoline_code): Move to hppa-hpux-tdep.c
6445 (hppa_gdbarch_init): Remove gdbarch setting of
6446 skip_trampoline_code, in_solib_call_trampoline and
6447 in_solib_return_trampoline.
6448 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
6449 (hppa64_hpux_in_solib_call_trampoline): New functions, split from
6450 hppa_in_solib_call_trampoline.
6451 (hppa_hpux_in_solib_return_trampoline, hppa_hpux_skip_trampoline_code):
6452 Moved from hppa-tdep.c.
6453 (hppa_hpux_init_abi): Set gdbarch for skip_trampoline_code,
6454 in_solib_call_trampoline and in_solib_return_trampoline.
6455
6456 2004-04-22 Randolph Chung <tausq@debian.org>
6457
6458 * hppa-tdep.c (hppa_debug): New variable.
6459 (find_unwind_entry, hppa_frame_cache): Add debug output.
6460 (_initialize_hppa_tdep): Add command to set debug flag.
6461
6462 2004-04-22 Andrew Cagney <cagney@redhat.com>
6463
6464 * ppcnbsd-tdep.c: Update copyright. Include "tramp-frame.h" and
6465 "trad-frame.h".
6466 (ppcnbsd_sigtramp_cache_init, ppcnbsd_sigtramp): Implement a NetBSD
6467 signal trampoline unwinder.
6468 (ppcnbsd_init_abi): Register ppcnbsd_sigtramp.
6469
6470 2004-04-22 Mark Kettenis <kettenis@gnu.org>
6471
6472 Add OpenBSD/powerpc support.
6473 * NEWS (New native configurations): Mention OpenBSD/powerpc.
6474 * ppc-tdep.h (struct ppc_reg_offsets): New structure.
6475 (ppc_supply_gregset, ppc_supply_fpregset, ppc_collect_gregset)
6476 (ppc_collect_fpregset): New prototypes.
6477 * ppcobsd-nat.c: New file.
6478 * ppcobsd-tdep.c: New file.
6479 * ppcobsd-tdep.h: New file.
6480 * rs6000-tdep.c: Include "regset.h".
6481 (ppc_supply_reg, ppc_collect_reg, ppc_supply_gregset)
6482 (ppc_supply_fpregset, ppc_collect_gregset, ppc_collect_fpregset):
6483 New functions.
6484 * Makefile.in (ALLDEPFILES): Add pccobsd-nat.c and ppcobsd-tdep.c.
6485 (ppcobsd-nat.o, ppcobsd-tdep.o): New dependencies.
6486 (rs6000-tdep.o): Update dependencies.
6487 * configure.host: Add powerpc-*-openbsd.
6488 * configure.tgt: Add powerpc-*-openbsd.
6489 * config/powerpc/obsd.mh: New file.
6490 * config/powerpc/nm-obsd.h: New file.
6491 * config/powerpc/obsd.mt: New file.
6492
6493 2004-04-22 Andrew Cagney <cagney@redhat.com>
6494
6495 * frame.h (show_frame_info): Delete declaration.
6496
6497 * arm-tdep.c (arm_prologue_this_id): Delete redundant cycle test.
6498 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
6499 * m32r-tdep.c (m32r_frame_this_id): Ditto.
6500 * frv-tdep.c (frv_frame_this_id): Ditto.
6501 * avr-tdep.c (avr_frame_this_id): Ditto.
6502
6503 2004-04-22 Elena Zannoni <ezannoni@redhat.com>
6504
6505 * MAINTAINERS: Drop maintenance of gdb.stabs, and linespec.c.
6506
6507 2004-04-22 Jim Blandy <jimb@redhat.com>
6508
6509 * ppc-linux-nat.c (ppc_register_u_addr): Don't assume that r0 is
6510 register number zero.
6511
6512 2004-04-21 Michael Snyder <msnyder@redhat.com>
6513
6514 * mips-tdep.c (heuristic_proc_start):
6515 Warning() already prefixes "Warning: ".
6516
6517 2004-04-21 Andrew Cagney <cagney@redhat.com>
6518
6519 * annotate.h (deprecated_annotate_starting_hook)
6520 (deprecated_annotate_stopped_hook)
6521 (deprecated_annotate_exited_hook)
6522 (deprecated_annotate_signal_hook)
6523 (deprecated_annotate_signalled_hook): Deprecate.
6524 * tracepoint.h (deprecated_create_tracepoint_hook)
6525 (deprecated_delete_tracepoint_hook)
6526 (deprecated_modify_tracepoint_hook)
6527 (deprecated_trace_find_hook)
6528 (deprecated_trace_start_stop_hook): Deprecate.
6529 * target.h (deprecated_target_new_objfile_hook): Deprecate.
6530 * remote.h (deprecated_target_resume_hook)
6531 (deprecated_target_wait_loop_hook): Deprecate.
6532 * gdbcore.h (deprecated_exec_file_display_hook)
6533 (deprecated_file_changed_hook): Deprecate.
6534 * frame.h (deprecated_selected_frame_level_changed_hook): Deprecate.
6535 * defs.h (deprecated_modify_breakpoint_hook)
6536 (deprecated_command_loop_hook, deprecated_show_load_progress)
6537 (deprecated_print_frame_info_listing_hook)
6538 (deprecated_query_hook, deprecated_warning_hook)
6539 (deprecated_flush_hook, deprecated_create_breakpoint_hook)
6540 (deprecated_delete_breakpoint_hook)
6541 (deprecated_interactive_hook, deprecated_registers_changed_hook)
6542 (deprecated_readline_begin_hook, deprecated_readline_hook)
6543 (deprecated_readline_end_hook, deprecated_register_changed_hook)
6544 (deprecated_memory_changed_hook, deprecated_init_ui_hook)
6545 (deprecated_context_hook, deprecated_target_wait_hook)
6546 (deprecated_attach_hook, deprecated_detach_hook)
6547 (deprecated_call_command_hook, deprecated_set_hook)
6548 (deprecated_error_hook, deprecated_error_begin_hook)
6549 (deprecated_ui_load_progress_hook): Deprecate.
6550 * valops.c, uw-thread.c, utils.c, tui/tui-io.c: Update.
6551 * tui/tui-hooks.c, tracepoint.c, top.c, thread-db.c: Update.
6552 * target.c, symfile.c, stack.c, sol-thread.c, rs6000-nat.c: Update.
6553 * remote.c, remote-mips.c, regcache.c, mi/mi-interp.c: Update.
6554 * main.c, interps.c, infcmd.c, hpux-thread.c, frame.c: Update.
6555 * exec.c, dsrec.c, d10v-tdep.c, corefile.c, complaints.c: Update.
6556 * cli/cli-script.c, cli/cli-setshow.c, breakpoint.c: Update.
6557 * annotate.c, aix-thread.c: Update.
6558
6559 2004-04-21 Andrew Cagney <cagney@redhat.com>
6560
6561 * Makefile.in (vaxnbsd-tdep.o): Update dependencies.
6562 * vaxnbsd-tdep.c: Include "gdb_string.h".
6563
6564 * symfile.c (symbol_file_add_from_memory): #if 0 function.
6565 (add_symbol_file_from_memory_command): #if 0 function body, call
6566 error instead.
6567
6568 2004-04-21 Andrew Cagney <cagney@redhat.com>
6569
6570 * gdbcore.h: Update copyright.
6571 (deprecated_add_core_fns): Rename add_core_fns.
6572 * win32-nat.c (_initialize_core_win32): Update.
6573 * sun3-nat.c (_initialize_core_sun3): Update.
6574 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Update.
6575 * rs6000-nat.c (_initialize_core_rs6000): Update.
6576 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Update.
6577 * nto-tdep.c (_initialize_nto_tdep): Update.
6578 * ns32knbsd-nat.c (_initialize_ns32knbsd_nat): Update.
6579 * mipsnbsd-tdep.c (_initialize_mipsnbsd_tdep): Update.
6580 * mips-nat.c (_initialize_core_mips): Update.
6581 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
6582 * m68knbsd-nat.c (_initialize_m68knbsd_nat): Update.
6583 * m68klinux-nat.c (_initialize_m68k_linux_nat): Update.
6584 * lynx-nat.c (_initialize_core_lynx): Update.
6585 * irix5-nat.c (_initialize_core_irix5): Update.
6586 * i386-interix-nat.c (_initialize_core_interix): Update.
6587 * cris-tdep.c (_initialize_cris_tdep): Update.
6588 * corelow.c (deprecated_add_core_fns): Update.
6589 * core-regset.c (_initialize_core_regset): Update.
6590 * core-aout.c (_initialize_core_aout): Update.
6591 * armnbsd-nat.c (_initialize_arm_netbsd_nat): Update.
6592 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Update.
6593 * alpha-nat.c (_initialize_core_alpha): Update.
6594
6595 2004-04-21 Jim Blandy <jimb@redhat.com>
6596
6597 * rs6000-tdep.c (registers_e500, registers_7400): Doc fixes.
6598
6599 2004-04-19 Daniel Jacobowitz <drow@mvista.com>
6600
6601 * dwarf2read.c (dwarf2_tmp_obstack, dwarf2_free_tmp_obstack):
6602 Delete.
6603 (dwarf_alloc_block): Take a CU argument. Use the comp_unit_obstack.
6604 (read_attribute_value): Update calls to dwarf_alloc_block.
6605 (dwarf2_build_psymtabs_hard): Don't initialize or clean up
6606 dwarf2_tmp_obstack.
6607 (psymtab_to_symtab_1): Likewise. Clean up using
6608 free_stack_comp_unit.
6609 (add_to_cu_func_list): Use the comp_unit_obstack.
6610
6611 2004-04-19 Joel Brobecker <brobecker@gnat.com>
6612
6613 * dwarf2read.c (dwarf2_flag_true_p): New function.
6614 (die_is_declaration): Use the function above. Add some comments.
6615
6616 2004-04-19 Mark Kettenis <kettenis@gnu.org>
6617
6618 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Specify
6619 architecture when registering sparcnbsd_core_osabi_sniffer.
6620 Adjust comment.
6621
6622 2004-04-18 Mark Kettenis <kettenis@gnu.org>
6623
6624 * infcall.c (find_function_addr): Add FUNCTION_START_OFFSET to
6625 return value.
6626
6627 Based on a patch from Brian Ford <ford@vss.fsi.com>:
6628 * i386-tdep.c: Correct register numbering scheme comments
6629 throughout.
6630 (i386_stab_reg_to_regnum): Rename to i386_dbx_reg_to_regnum.
6631 (i386_dwarf_reg_to_regnum): Rename to i386_svr4_reg_to_regnum.
6632 (i386_coff_init_abi, i386_elf_init_abi): Accomodate renames above.
6633 (i386_gdb_arch_init): Likewise.
6634
6635 * Makefile.in (ALLDEPFILES): List ppc-sysv-tdep.c, ppcnbsd-nat.c
6636 and ppcnbsd-tdep.c instead of ppc-sysv-tdep.o, ppcnbsd-nat.o and
6637 ppcnbsd-tdep.o.
6638
6639 * m68k-tdep.h: Tweak comments.
6640 * m68k-tdep.c: Tweak comment.
6641
6642 2004-04-17 Randolph Chung <tausq@debian.org>
6643
6644 * Makefile.in (hppa-hpux-tdep.o): Add $(hppa_tdep_h).
6645 * hppa-hpux-tdep.c (hppa-tdep.h): Include.
6646 (hppa_hpux_som_init_abi): Set is_elf to 0.
6647 (hppa_hpux_elf_init_abi): Set is_elf to 1.
6648 * hppa-tdep.c (low_text_segment_address): Remove global.
6649 (record_text_segment_lowaddr): Pass in low address as parameter. Use
6650 section offset to calculate segment address.
6651 (internalize_unwinds): Define low_text_segment_address as local and
6652 pass to record_text_segment_lowaddr for ELF targets.
6653 (hppa_gdbarch_init): Zero fill tdep structure.
6654 (hppa_dump_tdep): Print tdep structure.
6655 * hppa-tdep.h (gdbarch_tdep): Add is_elf member to tdep structure.
6656
6657 2004-04-17 Randolph Chung <tausq@debian.org>
6658
6659 * hppa-tdep.c (hppa_pseudo_register_read): Define.
6660 (hppa_gdbarch_init): Set pseudo_register_read.
6661 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Remove.
6662 * regcache.c (supply_register): Remove check for
6663 DEPRECATED_CLEAN_UP_REGISTER_VALUE since we've removed the last user.
6664
6665 2004-04-17 Randolph Chung <tausq@debian.org>
6666
6667 * Makefile.in (hpread.o, pa64solib.o, somsolib.o): Add $(hppa_tdep_h)
6668 * hppa-tdep.h (INSTRUCTION_SIZE): Move from tm-hppa.h.
6669 (hpread_adjust_stack_address): Move to hpread.c.
6670 * hppa-tdep.h (unwind_table_entry, unwind_stub_types, obj_unwind_info,
6671 obj_private_struct): Move from tm-hppa.h.
6672 * hpread.c (hppa-tdep.h): Include.
6673 (hpread_adjust_stack_address): Move from hppa-tdep.c.
6674 (hpread_read_function_type, hpread_read_doc_function_type)
6675 (hpread_process_one_debug_symbol): Call hpread_adjust_stack_address
6676 directly.
6677 * pa64solib.c (hppa-tdep.h): Include.
6678 * somsolib.c (hppa-tdep.h): Include.
6679 * config/pa/tm-hppa.h (frame_info, frame_saved_regs, value, type,
6680 inferior_status): Remove unused forward declarations.
6681 (INSTRUCTION_SIZE): Move to hppa-tdep.c.
6682 (unwind_table_entry, unwind_stub_types, obj_unwind_info,
6683 obj_private_struct): Move to hppa-tdep.h.
6684 (HPREAD_ADJUST_STACK_ADDRESS): Remove.
6685
6686 2004-04-17 Randolph Chung <tausq@debian.org>
6687
6688 * hppa-tdep.c (hppa_reg_struct_has_addr, hppa_skip_prologue)
6689 (hppa_skip_trampoline_code, hppa_in_solib_call_trampoline)
6690 (hppa_in_solib_return_trampoline, hppa_cannot_store_register)
6691 (hppa_smash_text_address, hppa_target_read_pc, hppa_target_write_pc):
6692 Remove forward declaration and make static.
6693 (hppa_reg_struct_has_addr): Remove.
6694
6695 2004-04-16 Joel Brobecker <brobecker@gnat.com>
6696
6697 * observer.sh: Move comments in sed command to first column.
6698
6699 2004-04-16 Jason Molenda (jmolenda@apple.com)
6700
6701 * frame.c: Minor typeo corrections in comments.
6702
6703 2004-04-16 Joel Brobecker <brobecker@gnat.com>
6704
6705 * observer.c (observer_test_first_notification_function): Update
6706 function profile.
6707 (observer_test_second_notification_function): Likewise.
6708 (observer_test_third_notification_function): Likewise.
6709
6710 2004-04-16 Mark Kettenis <kettenis@gnu.org>
6711
6712 From Brian Ford <ford@vss.fsi.com>:
6713 * i386-tdep.c (i386_coff_init_abi): New function.
6714 * i386-tdep.h (i386_coff_init_abi): New prototype.
6715 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Call it. Use correct
6716 register number translation functions for DWARF and DWARF 2.
6717
6718 2004-04-16 Joel Brobecker <brobecker@gnat.com>
6719
6720 * dwarf2read.c: Back out my previous change, it was incorrect.
6721
6722 2004-04-16 Daniel Jacobowitz <drow@mvista.com>
6723
6724 * dwarf2read.c: Include "hashtab.h".
6725 (struct dwarf2_cu): Add partial_dies, comp_unit_obstack,
6726 has_namespace_info.
6727 (struct partial_die_info): Add comments. Use bitfields to reduce
6728 memory footprint. Add scope, scope_set, has_specification,
6729 spec_offset, die_parent, die_child, and die_sibling.
6730 (peek_die_abbrev): Add prototype.
6731 (partial_read_comp_unit_head): New function, broken out from
6732 dwarf2_build_psymtabs_hard.
6733 (dwarf2_build_psymtabs_hard): Remove unused variable abbrev_ptr.
6734 Use partial_read_comp_unit_head. Initialize the CU and
6735 comp_unit_obstack. Update calls to read_partial_die and
6736 scan_partial_symbols. Use free_stack_comp_unit and
6737 load_partial_dies.
6738 (scan_partial_symbols): Change PDI to a pointer. Use the child and
6739 sibling pointers to walk partial DIEs. Call fixup_partial_die.
6740 Update calls to helper functions. Remove NAMESPACE argument.
6741 Update comments.
6742 (partial_die_parent_scope, partial_die_full_name): New functions.
6743 (add_partial_symbol): Remove namespace argument. Update call to
6744 pdi_needs_namespace. Use partial_die_full_name. Handle
6745 DW_TAG_namespace. Check has_namespace_info flag.
6746 (pdi_needs_namespace): Remove NAMESPACE argument. Just check the
6747 tag. Handle namespaces.
6748 (add_partial_namespace, add_partial_enumeration): Simplify.
6749 (guess_structure_name): New function, derived from
6750 add_partial_structure.
6751 (add_partial_structure): Remove.
6752 (determine_class_name): Update comment.
6753 (dwarf2_read_abbrevs): Set has_namespace_info flag.
6754 (is_type_tag_for_partial, load_partial_dies): New functions.
6755 (read_partial_die): Pass abbrev and abbrev_len as arguments.
6756 Record specifications instead of following them immediately.
6757 (find_partial_die_in_comp_unit, find_partial_die)
6758 (fixup_partial_die, free_stack_comp_unit)
6759 (hashtab_obstack_allocate, dummy_obstack_deallocate)
6760 (partial_die_hash, partial_die_eq): New functions.
6761 * Makefile.in (hashtab_h): Define.
6762 (dwarf2read.o): Update dependencies.
6763 (observer_inc, observer_h): Move to the correct section.
6764
6765 2004-04-15 Joel Brobecker <brobecker@gnat.com>
6766
6767 * dwarf2read.c (dwarf2_attribute_true_p): New function.
6768 (die_is_declaration): Use the function above. Add comment.
6769
6770 2004-04-15 Joel Brobecker <brobecker@gnat.com>
6771
6772 * dwarf2read.c (read_structure_scope): Identify stub types
6773 using die_is_declaration() only.
6774
6775 2004-04-15 Roland McGrath <roland@redhat.com>
6776
6777 * symfile.c (symbol_file_add_with_addrs_or_offsets): Take ABFD as
6778 argument instead of NAME.
6779 (symbol_file_add, reread_separate_symbols): Call symfile_bfd_open
6780 in call to symbol_file_add_with_addrs_or_offsets.
6781 (build_addr_info): New function, helper for ...
6782 (symbol_file_add_from_memory): New function.
6783 (add_symbol_file_from_memory_command): New function using that.
6784 (_initialize_symfile): Register it for add-symbol-file-from-memory.
6785 (pre_add_symbol_hook): Add const to argument type.
6786 * symfile.h (symbol_file_add_from_memory): Declare it.
6787
6788 2004-04-15 Mark Kettenis <kettenis@gnu.org>
6789
6790 * NEWS (New native configurations): Mention OpenBSD/vax.
6791 * configure.host: Add vax-*-openbsd*.
6792 * config/vax/obsd.mh: New file.
6793 * config/vax/nm-obsd.h: New file.
6794
6795 * vax-tdep.c: Include "regset.h".
6796 (vax_supply_gregset): New function.
6797 (vax_gregset): New variable.
6798 (vax_regset_from_core_section): New function.
6799 (vax_gdbarch_init): Set regset_from_core_section.
6800 * Makefile.in (vax-tdep.o): Update dependencies.
6801
6802 2004-04-15 Andrew Cagney <cagney@redhat.com>
6803
6804 * observer.c (normal_stop_subject, observer_notify_normal_stop)
6805 (observer_normal_stop_notification_stub)
6806 (observer_attach_normal_stop, observer_detach_normal_stop):
6807 Delete, replaced by #include "observer.inc".
6808 * infrun.c (normal_stop): Pass "stop_bpstat" to
6809 observer_notify_normal_stop.
6810 * Makefile.in (observer_inc): Define.
6811 (observer.o): Update dependencies.
6812 (observer.h, observer.inc): New rules.
6813 * observer.h: Delete file.
6814 * observer.sh: New file.
6815
6816 2004-04-15 Mark Kettenis <kettenis@gnu.org>
6817
6818 * vax-tdep.c (vax_frame_cache): Fix typo.
6819
6820 2004-04-14 Mark Kettenis <kettenis@gnu.org>
6821
6822 * NEWS (New native configurations): Mention NetBSD/vax.
6823 * configure.host: Add vax-*-netbsdelf* and vax-*-netbsd*.
6824 * config/vax/nbsdelf.mh: New file.
6825 * config/vax/nbsdaout.mh: New file.
6826 * config/vax/nm-nbsd.h: New file.
6827 * config/vax/nm-nbsdaout.h: New file.
6828
6829 * vaxnbsd-tdep.c: New file.
6830 * Makefile.in (vaxnbsd-tdep.o): New dependency.
6831 * configure.tgt: Add vax-*-netbsd* and vax-*-openbsd*.
6832 * config/vax/nbsd.mt: New file.
6833 * config/vax/tm-nbsd.h: New file.
6834
6835 * Makefile.in (vaxbsd-nat.o): New dependency.
6836
6837 * vax-tdep.h (vax_regnum): Add VAX_R0_REGNUM and VAX_R1_REGNUM.
6838 * vax-tdep.c (vax_store_arguments): Remove struct_return and
6839 struct_addr arguments. Don't push return value address.
6840 (vax_push_dummy_call): Don't pass STRUCT_RETURN and STRUCT_ADDR as
6841 arguments to vax_store_arguments. Store return value address in
6842 R1.
6843 (vax_store_struct_return, vax_extract_return_value)
6844 (vax_store_return_value): Remove functions.
6845 (vax_return_value): New function.
6846 (vax_gdbarch_init): Set return value. Don't set
6847 deprecated_store_struct_return, deprecated_extract_struct_return
6848 and deprecated_store_return_value.
6849
6850 2004-04-14 Andreas Schwab <schwab@suse.de>
6851
6852 * ia64-tdep.c (ia64_libunwind_frame_prev_register): Handle null
6853 value buffer.
6854 * libunwind-frame.c (libunwind_frame_prev_register): Likewise.
6855
6856 2004-04-14 Mark Kettenis <kettenis@gnu.org>
6857
6858 * vax-tdep.c (vax_store_arguments, vax_push_dummy_call)
6859 (vax_unwind_dummy_id): New functions.
6860 (vax_push_dummy_frame, vax_pop_frame): Remove functions.
6861 (vax_call_dummy_words, sizeof_vax_call_dummy_words): Remove
6862 variables.
6863 (vax_fix_call_dummy): Remove function.
6864 (vax_gdbarch_init): Set push_dummy_call and unwind_dummy_id.
6865 Don't set deprecated_push_dummy_frame, deprecated_pop_frame,
6866 call_dummy_location, deprecated_call_dummy_words,
6867 deprecated_sizeof_call_dummy_words,
6868 deprecated_call_dummy_breakpoint_offset,
6869 deprecated_use_generic_dummy_frames, deprecated_pc_in_call_dummy,
6870 and deprecated_dummy_write_sp.
6871
6872 2004-04-13 David Carlton <carlton@kealia.com>
6873
6874 * MAINTAINERS: Move myself to "paper trail" section.
6875
6876 2004-04-12 Mark Kettenis <kettenis@gnu.org>
6877
6878 * vax-tdep.c: Include "frame-base.h", "frame-unwind.h" and
6879 "trad-frame.h".
6880 (vax_frame_init_saved_regs): Remove function.
6881 (vax_sigtramp_saved_pc): Remove function.
6882 (vax_frame_saved_pc): Remove function.
6883 (vax_frame_args_address): Remove function.
6884 (vax_frame_num_args): Rewrite.
6885 (vax_frame_chain): Remove function.
6886 (vax_push_dummy_frame): Replace DEPRECATED_FP_REGNUM with
6887 VAX_FP_REGNUM.
6888 (vax_pop_frame): Likewise.
6889 (vax_saved_pc_after_call): Remove function.
6890 (struct vax_frame_cache): New structure.
6891 (vax_frame_cache): New function.
6892 (vax_frame_this_id): New function.
6893 (vax_frame_prev_register): New function.
6894 (vax_frame_unwind): New variable.
6895 (vax_frame_sniffer): New function.
6896 (vax_frame_base_address): New function.
6897 (vax_frame_args_address): New function.
6898 (vax_frame_base): New variable.
6899 (vax_unwind_pc): New function.
6900 (vax_gdbarch_init): Don't set deprecated_init_frame_pc,
6901 deprecated_fp_regnum, deprecated_saved_pc_after_call,
6902 deprecated_frame_chain, deprecated_frame_saved_pc,
6903 deprecated_frame_args_address and
6904 deprecated_frame_init_saved_regs.
6905 * Makefile.in (vax-tdep.o): Update dependencies.
6906
6907 * vaxbsd-nat.c: New file.
6908
6909 * vax-tdep.h: Update copyright year. Adjust comments.
6910 (VAX_REGISTER_SIZE, VAX_REGISTER_BYTES, VAX_MAX_REGISTER_RAW_SIZE,
6911 VAX_MAX_REGISTER_VIRTUAL_SIZE): Remove macros.
6912 (vax_regnum): New enum. Replacing...
6913 (VAX_AP_REGNUM, VAX_FP_REGNUM, VAX_SP_REGNUM, VAX_PC_REGNUM)
6914 (VAX_PS_REGNUM): ... these removed macros.
6915 * vax-tdep.c (vax_register_name): Remove prototype.
6916 (vax_register_name): Reorganize somewhat. Use ARRAY_SIZE.
6917 (vax_register_byte, vax_register_raw_size,
6918 vax_register_virtual_size, vax_register_virtual_type): Remove
6919 functions.
6920 (vax_register_type): New function.
6921 (vax_breakpoint_from_pc): Reorganize.
6922 (vax_gdbarch_init): Set register_type. Don't set
6923 deprecated_register_size, deprecated_register_bytes,
6924 deprecated_register_byte, deprecated_register_raw_size,
6925 deprecated_max_register_raw_size,
6926 deprecated_register_virtual_size,
6927 deprecated_max_register_virtual_size and
6928 deprecated_register_virtual_type. Add comment on stack direction.
6929
6930 2004-04-11 Mark Kettenis <kettenis@gnu.org>
6931
6932 * amd64-tdep.h (amd64_regnum): Add AMD64_CS_REGNUM,
6933 AMD64_SS_REGNUM, AMD64_DS_REGNUM, AMD64_ES_REGNUM,
6934 AMD64_FS_REGNUM and AMD64_GS_REGNUM.
6935
6936 2004-04-10 Randolph Chung <tausq@debian.org>
6937
6938 * MAINTAINERS (write after approval): Add myself.
6939
6940 2004-04-07 Randolph Chung <tausq@debian.org>
6941
6942 * hppa-tdep.c (hppa_inner_than): Remove.
6943 (is_pa_2): Remove unused static variable.
6944 (hppa_gdbarch_init): Use core_addr_greaterthan instead of own version.
6945
6946 2004-03-10 Paul N. Hilfinger <Hilfinger@gnat.com>
6947
6948 * language.h (language_defn): Add new la_post_parser field.
6949 * parser-defs.h (null_post_parser): New declaration (default for
6950 la_post_parser).
6951
6952 * parse.c (parse_exp_1): Move code to parse_exp_in_context and
6953 insert call to that function.
6954 (parse_exp_in_context): New function, including code formerly in
6955 parse_exp_1. Calls language-dependent post-parser after
6956 prefixification.
6957 (parse_expression_in_context): New exported function.
6958 (null_post_parser): New definition.
6959 * expression.h (parse_expression_in_context): Add declaration.
6960
6961 * p-lang.c (pascal_language_defn): Add trivial post-parser.
6962 * c-lang.c (c_language_defn): Ditto.
6963 (cplus_language_defn): Ditto.
6964 (asm_language_defn): Ditto.
6965 (minimal_language_defn): Ditto.
6966 * f-lang.c (f_language_defn): Ditto.
6967 * jv-lang.c (java_language_defn): Ditto.
6968 * language.c (unknown_language_defn): Ditto.
6969 (auto_language_defn): Ditto.
6970 (local_language_defn): Ditto.
6971 * m2-lang.c (m2_language_defn): Ditto.
6972 * scm-lang.c (scm_language_defn): Ditto.
6973 * obj-lang.c (objc_language_defn): Ditto.
6974
6975 2004-04-10 Mark Kettenis <kettenis@gnu.org>
6976
6977 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Remove function.
6978 (amd64nbsd_mcontext_addr): New function.
6979 (amd64nbsd_init_abi): Initialize TDEP->sigcontext_addr as
6980 amd64nbsd_mcontext_addr. Directly initialize TDEP->sc_reg_offset
6981 with amd64nbsd_r_reg_offset, instead of building it on the fly.
6982
6983 * corelow.c (core_xfer_partial): Fix coding standards violation.
6984 Add support for TARGET_OBJECT_WCOOKIE.
6985
6986 * sparc-linux-tdep.c (sparc32_linux_init_abi): Don't set
6987 deprecated_pc_in_sigtramp.
6988 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
6989 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
6990 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Likewise.
6991 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
6992 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Likewise.
6993 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
6994 * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
6995
6996 * amd64-linux-tdep.c, amd64nbsd-tdep.c, amd64obsd-tdep.c,
6997 i386-linux-tdep.c, i386-tdep.c, i386nbsd-tdep.c, i386obsd-tdep.c:
6998 Fix typo.
6999
7000 * amd64-tdep.c (amd64_supply_fxsave): Only fiddle with
7001 I387_FISEG_REGNUM and I387_FOSEG_REGNUM in 64-bit mode.
7002 (amd64_collect_fxsave): Likewise.
7003
7004 * i386-sol2-tdep.c: Include "gdb_string.h".
7005 (i386_sol2_sigtramp_p): Recognize signal trampoline based on its
7006 name.
7007 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
7008
7009 2004-04-10 Mark Kettenis <kettenis@gnu.org>
7010
7011 * i386-sol2-tdep.c: Include "solib-svr4.h".
7012 (i386_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
7013 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
7014 * config/i386/tm-i386sol2.h: Include :solib.h".
7015 * config/i386/i386sol2.mh (NATDEPFILES): Remove solib.o,
7016 solib-svr4.o and solib-legacy.o.
7017 * config/i386/i386sol2.mt (TDEPFILES): Add solib.o and
7018 solib-svr4.o.
7019
7020 2004-04-09 Mark Kettenis <kettenis@gnu.org>
7021
7022 * amd64-linux-nat.c (fetch_inferior_registers): Correctly check
7023 whether a register is supplied by PTRACE_GETFPREGS.
7024 (store_inferior_registers): Likewise.
7025 * amd64bsd-nat.c (fetch_inferior_registers): Correctly check
7026 whether a register is supplied by PT_GETFPREGS.
7027 (store_inferior_registers): Likewise.
7028
7029 * config/i386/linux.mt (TDEPFILES): Remove solib-legacy.o.
7030 * config/i386/linux64.mt (TDEPFILES): Likewise.
7031
7032 * i386-linux-nat.c: Update copyrigth year. Tweak comment.
7033
7034 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Rewrite to use new
7035 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
7036 the program counter is in the range specified by `struct
7037 gdbarch_tdep'.
7038 * amd64-linux-tdep.c: Include "symtab.h".
7039 (amd64_linux_pc_in_sigtramp): Remove function.
7040 (amd64_linux_sigtramp_p): New function.
7041 (amd64_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
7042 deprecated_pc_in_sigtramp.
7043 * amd64nbsd-tdep.c: Include "symtab.h".
7044 (amd64nbsd_sigtramp_p): New function.
7045 (amd64nbsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
7046 deprecated_pc_in_sigtramp.
7047 * amd64obsd-tdep.c: Include "symtab.h" and "objfiles.h". Add a
7048 few comments.
7049 (amd64obsd_pc_in_sigtramp): Remove function.
7050 (amd64obsd_sigtramp_p): New function.
7051 (amd64obsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
7052 deprecated_pc_in_sigtramp.
7053 * i386-tdep.h (struct gdbarch_tdep): Add sigtramp_p member.
7054 (i386bsd_pc_ins_sigtramp): Remove prototype.
7055 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove prototypes.
7056 * i386-tdep.c (i386_sigtramp_frame_sniffer): Rewrite to use new
7057 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
7058 the program counter is in the range specified by `struct
7059 gdbarch_tdep'.
7060 (i386_pc_in_sigtramp, i386_svr4_pc_in_sigtramp): Remove functions.
7061 (i386_sigtramp_p, i386_svr4_sigtramp_p): New functions.
7062 (i386_go32_pc_in_sigtramp): Remove function.
7063 (i386_svr4_init_abi): Don't set deprecated_pc_in_sigtramp.
7064 Initialize TDEP->sigtramp_p.
7065 (i386_go32_init_abi): Initialize TDEP->sigtramp_p to NULL.
7066 (i386_gdbarch_init): Initialize TDEP->sigtramp_p. Don't set
7067 deprecated_pc_in_sigtramp.
7068 * i386-linux-tdep.c: Adjust comments.
7069 (i386_linux_pc_in_sigtramp): Remove function.
7070 (i386_linux_sigtramp_p): New function.
7071 (i386_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
7072 deprecated_pc_in_sigtramp.
7073 * i386-nto-tdep.c: Update copyright year.
7074 (i386nto_pc_in_sigtramp): Remove function.
7075 (i386nto_sigtramp_p): New function.
7076 (i386nto_sigcontext_addr): Use I386_ESP_REGNUM instead of
7077 SP_REGNUM.
7078 (i386nto_init_abi): Initialize TDEP->sigtramp_p. Don't set
7079 deprecated_pc_in_sigtramp.
7080 * i386-sol2-tdep.c: Update copyright year.
7081 (i386_sol2_pc_in_sigtramp): Remove function.
7082 (i386_sol2_sigtramp_p): New function.
7083 (i386_sol2_init_abi): Initialize TDEP->sigtramp_p. Don't set
7084 deprecated_pc_in_sigtramp.
7085 * i386bsd-tdep.c (i386bsd_pc_in_sigtramp): Remove function.
7086 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove functions.
7087 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
7088 deprecated_sigtramp_start and deprecated_sigtramp_end.
7089 * i386nbsd-tdep.c: Include "frame.h" and "symtab.h".
7090 (i386nbsd_pc_in_sigtramp): Remove function.
7091 (i386nbsd_sigtramp_p): New function.
7092 (i386nbsd_init_abi): Don't set deprecated_pc_in_sigtramp,
7093 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
7094 TDEP->sigtramp_start, TDEP->sigtramp_end and TDEP->sigtramp_p.
7095 * i386obsd-tdep.c: Include "frame.h", "symtab.h" and "objfiles.h".
7096 (i386obsd_pc_in_sigtramp): Remove function.
7097 (i386obsd_sigtramp_p): New function.
7098 (i386obsd_sigtramp_start, i386obsd_sigtramp_end): Remove
7099 functions.
7100 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
7101 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
7102 TDEP->sigtramp_p.
7103 * Makefile.in (amd64-linux-tdep.o, amd64nbsd-tdep.o,
7104 amd64obsd-tdep.o, i386nbsd-tdep.o, i386obsd-tdep.o): Update
7105 dependencies.
7106
7107 * config/i386/i386aout.mt: Remove file.
7108
7109 * configure.tgt: Remove i[34567]86-*-go32*,
7110 i[34567]86-*-msdosdjgpp*, i[34567]86-*-sco*, i[34567]86-*-sysv*
7111 and i[34567]86-*-isc*. Set gdb_target to i386 for
7112 i[34567]86-*-netware* and i[34567]86-*-*.
7113 * config/i386/i386.mt: New file.
7114 * config/i386/embed.mt: Remove file.
7115 * config/i386/go32.mt: Remove file.
7116 * config/i386/i386nw.mt: Remove file.
7117 * config/i386/i386v.mt: Remove file.
7118 * config/i386/tm-go32.h: Remove file.
7119
7120 * tui/tui-hooks.c: Include "readline/readline.h" after
7121 "gdb_curses.h" instead of before.
7122 * tui/tui-io.c: Likewise.
7123
7124 * tui/tui.c: Fix typo in comment.
7125
7126 * sparc64-tdep.c (sparc_address_from_register): Remove function.
7127
7128 2004-04-08 Andrew Cagney <cagney@redhat.com>
7129
7130 * breakpoint.h (deprecated_exception_catchpoints_are_fragile)
7131 (deprecated_exception_support_initialized): Declare.
7132 * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support)
7133 (initialize_hp_cxx_exception_support)
7134 (child_enable_exception_callback): Update.
7135 * breakpoint.c (deprecated_exception_catchpoints_are_fragile)
7136 (deprecated_exception_support_initialized): Rename
7137 deprecated_exception_catchpoints_are_fragile and
7138 deprecated_exception_support_initialized.
7139 (breakpoint_init_inferior, breakpoint_init_inferior): Update.
7140
7141 * symtab.c (deprecated_hp_som_som_object_present): Rename
7142 hp_som_som_object_present.
7143 * symtab.h (deprecated_hp_som_som_object_present): Declare.
7144 * symfile.c (hp_som_som_object_present, RESET_HP_UX_GLOBALS):
7145 Update. Delete extern declaration.
7146 * valops.c (hp_som_som_object_present): Ditto.
7147 * parse.c (deprecated_hp_som_som_object_present)
7148 (parse_nested_classes_for_hpacc): Ditto.
7149 * hpread.c (hp_som_som_object_present, hpread_expand_symtab): Ditto.
7150 * hppa-hpux-tdep.c (hp_som_som_object_present)
7151 (initialize_hp_cxx_exception_support): Ditto.
7152 * eval.c (hp_som_som_object_present, evaluate_subexp_standard): Ditto.
7153 * cp-valprint.c (hp_som_som_object_present)
7154 (cp_print_class_method): Ditto.
7155 * c-typeprint.c (hp_som_som_object_present):
7156 (c_type_print_base): Ditto.
7157 * c-exp.y (hp_som_som_object_present): Ditto.
7158
7159 2004-04-08 Andrew Cagney <cagney@redhat.com>
7160
7161 * frame-unwind.c (struct frame_unwind_table, frame_unwind_init)
7162 (frame_unwind_prepend_unwinder, frame_unwind_append_sniffer)
7163 (frame_unwind_find_by_frame): Re-implement the unwind code so
7164 that it can both prepend and append sniffers. Replace
7165 frame_unwind_register_unwinder with frame_unwind_prepend_unwinder.
7166 * tramp-frame.c (tramp_frame_append): Use
7167 frame_unwind_prepend_unwinder.
7168 * frame-unwind.h (frame_unwind_prepend_unwinder): Replace
7169 frame_unwind_register_unwinder.
7170 * tramp-frame.h (tramp_frame_prepend_unwinder): Rename
7171 tramp_frame_append.
7172 * tramp-frame.c (tramp_frame_prepend_unwinder): Update.
7173 * mips-linux-tdep.c (mips_linux_init_abi, mips_linux_init_abi)
7174 (mips_linux_init_abi): Update.
7175
7176 2004-04-08 Kevin Buettner <kevinb@redhat.com>
7177
7178 * ppc-linux-tdep.c (ELF_NREG, ELF_NFPREG, ELF_NVRREG)
7179 (ELF_FPREGSET_SIZE): Delete constants formerly used in core
7180 file support.
7181
7182 2004-04-07 Kevin Buettner <kevinb@redhat.com>
7183
7184 * ia64-tdep.c (elf.h): Don't include.
7185 (elf/ia64.h) [HAVE_LIBUNWIND_IA64_H]: Include.
7186
7187 2004-04-07 Jason Molenda (jmolenda@apple.com)
7188
7189 * frame.h: Typeo corrections in comments.
7190
7191 2004-04-07 Jim Blandy <jimb@redhat.com>
7192
7193 * i386-tdep.c (i386_stab_reg_to_regnum): Correct numbering for
7194 %esp and %ebp
7195
7196 2004-04-07 Mark Kettenis <kettenis@gnu.org>
7197
7198 * config/sparc/linux.mt (TDEPFILES): Remove solib-legacy.o.
7199 * config/sparc/linux64.mt (TDEPFILES): Likewise.
7200 * config/sparc/sol2.mt (TDEPFILES): Add solib.o and solib-svr4.o.
7201 * config/sparc/sol2.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
7202 and solib-legacy.o.
7203 * config/sparc/sol2-64.mt (TDEPFILES): Add solib.o and
7204 solib-svr4.o.
7205 * config/sparc/tm-sol2.h: Update copyright year. Include
7206 "solib.h".
7207
7208 * sparc-sol2-tdep.c: Update copyright year. Include
7209 "solib-svr4.h".
7210 (sparc32_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
7211 * sparc64-sol2-tdep.c: Include "solib-svr4.h".
7212 (sparc64_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
7213 * Makefile.in (sparc-sol2-tdep.o, sparc64-sol2-tdep.o): Update
7214 dependencies.
7215
7216 2004-04-06 Andrew Cagney <cagney@redhat.com>
7217
7218 * infttrace.c: Include "infttrace.h".
7219 * infttrace.h: Include "target.h".
7220 * Makefile.in (infttrace_h): Update.
7221 (infttrace.o): Update.
7222
7223 2004-04-06 Andrew Cagney <cagney@redhat.com>
7224
7225 * hppah-nat.c (hpux_has_forked, hpux_has_vforked)
7226 (hpux_has_execd, hpux_has_syscall_event): Include "infttrace.h",
7227 move extern declarations from here ...
7228 * infttrace.h: ... to here.
7229 * Makefile.in (hppah-nat.o): Update dependencies.
7230
7231 * hppa-tdep.c (hppa_breakpoint_from_pc): Make static.
7232 (hppa_gdbarch_init): Set gdbarch_breakpoint_from_pc
7233 * config/pa/tm-hppa.h (BREAKPOINT_FROM_PC, BREAKPOINT32):
7234 (hppa_breakpoint_from_pc): Delete.
7235
7236 * MAINTAINERS: Mark hppa-elf as buildable with -Werror.
7237
7238 2004-04-05 Andrew Cagney <cagney@redhat.com>
7239
7240 * hppa-tdep.c: Do not include <sys/types.h>, <sys/param.h>,
7241 <signal.h>, <sys/ptrace.h>, #include "a.out.encap.h",
7242 <sys/file.h>.
7243
7244 2004-04-06 Randolph Chung <tausq@debian.org>
7245
7246 Committed by Andrew Cagney (mechanical change).
7247 * hppa-tdep.c: (args_for_find_stub, hp_som_som_object_present,
7248 exception_catchpoints_are_fragile, find_stub_with_shl_get,
7249 cover_find_stub_with_shl_get, initialize_hp_cxx_exception_support,
7250 child_enable_exception_callback, current_ex_event,
7251 null_symtab_and_line, child_get_current_exception_event,
7252 HP_ACC_EH_notify_hook, HP_ACC_EH_set_hook_value,
7253 HP_ACC_EH_notify_callback, HP_ACC_EH_break, HP_ACC_EH_catch_throw,
7254 HP_ACC_EH_catch_catch, __eh_notification, hp_cxx_exception_support,
7255 hp_cxx_exception_support_initialized, eh_notify_hook_addr,
7256 eh_notify_callback_addr, eh_break_addr, eh_catch_catch_addr,
7257 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior):
7258 Move hpux-specific definitions ...
7259 * hppa-hpux-tdep.c: ... to here.
7260
7261 2004-04-05 Andrew Cagney <cagney@redhat.com>
7262
7263 * hppa-tdep.c (hppa_frame_cache): Pass the frame's func to
7264 skip_prologue_using_sal.
7265
7266 2004-04-05 Andrew Cagney <cagney@redhat.com>
7267
7268 * config/i386/tm-i386.h: Delete file.
7269 * config/i386/tm-vxworks.h: Update copyright, do not include
7270 "tm-i386.h".
7271 * config/i386/tm-nto.h, config/i386/tm-linux.h: Ditto.
7272 * config/i386/tm-i386sol2.h, config/i386/tm-i386lynx.h: Ditto.
7273 * config/i386/tm-go32.h, config/i386/tm-cygwin.h: Ditto.
7274 * config/i386/ncr3000.mt (TM_FILE): Delete.
7275 * config/i386/interix.mt (TM_FILE): Delete.
7276 * config/i386/i386v.mt (TM_FILE): Delete.
7277 * config/i386/i386nw.mt (TM_FILE): Delete.
7278 * config/i386/i386gnu.mt (TM_FILE): Delete.
7279 * config/i386/i386aout.mt (TM_FILE): Delete.
7280 * config/i386/embed.mt (TM_FILE): Delete.
7281
7282 2004-04-05 Kevin Buettner <kevinb@redhat.com>
7283
7284 * frv-tdep.h (fsr0_regnum, acc0_regnum, acc7_regnum, accg0123_regnum)
7285 (accg4567_regnum, msr0_regnum, msr1_regnum, gner0_regnum)
7286 (gner1_regnum, fner0_regnum, fner1_regnum, accg0_regnum)
7287 (accg7_regnum): New constants.
7288 (last_spr_regnum, last_pseudo_regnum): Update.
7289 * frv-tdep.c (new_variant): Initialize names for fsr0, acc0-acc7,
7290 accg0-accg7, msr0, msr1, gner0, gner1, fner0, and fner1.
7291 (frv_pseudo_register_read, frv_pseudo_register_write): Add support
7292 for accg registers.
7293 (frv_register_sim_regno): Update spr_map[].
7294
7295 2004-04-04 Andrew Cagney <cagney@redhat.com>
7296
7297 * config/mips/xm-riscos.h: Delete.
7298 * config/mips/xm-mipsv4.h, config/mips/xm-mips.h: Delete.
7299 * config/mips/tm-mipsv4.h, config/mips/riscos.mh: Delete.
7300 * config/mips/nm-riscos.h, config/mips/nm-news-mips.h: Delete.
7301 * config/mips/nm-mips.h, config/mips/news-mips.mh: Delete.
7302 * config/mips/news-mips.mh, config/m68k/tm-m68kv4.h: Delete.
7303 * config/mips/decstation.mh, config/mips/littlemips.mh: Delete.
7304 * config/mips/mipsv4.mt, config/m68k/tm-sun3.h: Delete.
7305 * config/m68k/xm-sun3os4.h, config/m68k/xm-sun3.h: Delete.
7306 * config/m68k/xm-sun2.h, config/m68k/xm-m68kv4.h: Delete.
7307 * config/m68k/xm-dpx2.h, config/m68k/xm-delta68.h: Delete.
7308 * config/m68k/xm-3b1.h, config/m68k/tm-sun3os4.h: Delete.
7309 * config/m68k/tm-m68klynx.h, config/m68k/tm-dpx2.h: Delete.
7310 * config/m68k/tm-delta68.h, config/m68k/tm-3b1.h: Delete.
7311 * config/m68k/sun3os4.mt, config/m68k/nm-sysv4.h: Delete.
7312 * config/m68k/nm-sun3.h, config/m68k/sun3os4.mh: Delete.
7313 * config/m68k/sun2os3.mh, config/m68k/nm-sun2.h: Delete.
7314 * config/m68k/nm-m68klynx.h, config/m68k/sun3os3.mt: Delete.
7315 * config/m68k/nm-dpx2.h, config/m68k/sun2os3.mt: Delete.
7316 * config/m68k/dpx2.mh, config/m68k/sun3os3.mh: Delete.
7317 * config/m68k/sun2os4.mh, config/m68k/nm-delta68.h: Delete.
7318 * config/m68k/m68kv4.mt, config/m68k/m68klynx.mt: Delete.
7319 * config/m68k/3b1.mt, config/m68k/m68klynx.mh: Delete.
7320 * config/m68k/m68kv4.mh, config/m68k/sun2os4.mt: Delete.
7321 * config/m68k/tm-sun2os4.h, config/m68k/3b1.mh: Delete.
7322 * config/m68k/dpx2.mt, config/m68k/delta68.mt: Delete.
7323 * config/m68k/tm-sun2.h, config/m68k/delta68.mh: Delete.
7324
7325 * configure.tgt: Remove m68000-*-sunos3*, m68000-*-sunos4*,
7326 m68*-bull-sysv*, m68*-att-*, m68*-motorola-*, m68*-*-lynxos*,
7327 m68*-*-sunos3*, m68*-*-sunos4*, m68*-*-sysv4*, mips*-*-sysv4*.
7328 * configure.host: Remove m680[01]0-sun-sunos3*,
7329 m680[01]0-sun-sunos4*, m68*-att-*, m68*-bull*-sysv*,
7330 m68*-*-lynxos*, m68*-*-sysv4*, m68*-motorola-*, m68*-sun-sunos3*,
7331 m68*-sun-sunos4*, m68*-sun-*, mips-dec-*, mips-little-*,
7332 mips-sony-*, mips-*-mach3*, mips-*-sysv4*, mips-*-sysv*,
7333 mips-*-riscos*.
7334 * NEWS: Mention removed systems.
7335
7336 2004-04-04 Andrew Cagney <cagney@redhat.com>
7337
7338 GDB 6.1 release created from 6.1 branch.
7339
7340 2004-04-04 Andrew Cagney <cagney@redhat.com>
7341
7342 * gnu-nat.c (gnu_wait): Use memcpy instead of bcopy.
7343 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
7344 * remote-vx68.c (vx_read_register, vx_write_register): Ditto.
7345
7346 * config/vax/xm-vax.h (FAULT_CODE_ORIGIN, INIT_STACK): Delete.
7347 * config/alpha/xm-alphaosf.h (NO_SIGINTERRUPT): Delete.
7348 * config/alpha/xm-alphalinux.h (NO_SIGINTERRUPT): Delete.
7349
7350 2004-04-03 Jim Blandy <jimb@redhat.com>
7351
7352 * MAINTAINERS: Chris Faylor has changed employers; add him to
7353 "paper trail" section, and update his E-mail address.
7354
7355 2004-04-03 Andrew Cagney <cagney@redhat.com>
7356
7357 * frame-unwind.c (frame_unwind_find_by_frame): Delete check for
7358 generic dummy frames.
7359 * dummy-frame.c: Update copyright.
7360 (dummy_frame_sniffer): Delete check for generic dummy frames.
7361
7362 * config/pa/tm-hppa.h (REG_PARM_STACK_SPACE): Delete.
7363 * config/pa/tm-hppa64.h (PA20W_CALLING_CONVENTIONS)
7364 (REG_PARM_STACK_SPACE): Delete.
7365 * hppa-tdep.c (hppa64_push_dummy_call, hppa32_push_dummy_call):
7366 Inline reference to REG_PARM_STACK_SPACE.
7367
7368 * config/pa/tm-hppah.h (FRAME_SAVED_PC_IN_SIGTRAMP)
7369 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
7370 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
7371 (FRAME_BASE_BEFORE_SIGTRAMP)
7372 (hppa32_hpux_frame_base_before_sigtramp)
7373 (hppa32_hpux_frame_saved_pc_in_sigtramp): Delete.
7374 * config/pa/tm-hppa64.h (hppa64_hpux_frame_saved_pc_in_sigtramp)
7375 (hppa64_hpux_frame_find_saved_regs_in_sigtramp)
7376 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
7377 (FRAME_BASE_BEFORE_SIGTRAMP)
7378 (hppa64_hpux_frame_base_before_sigtramp)
7379 (FRAME_SAVED_PC_IN_SIGTRAMP): Delete.
7380
7381 2004-04-03 Andrew Cagney <cagney@redhat.com>
7382
7383 * PROBLEMS: Mention that GDB doesn't build on HP/UX 11.00.
7384
7385 2004-04-02 Andrew Cagney <cagney@redhat.com>
7386
7387 * sh64-tdep.c (sh64_init_extra_frame_info): Replace
7388 DEPRECATED_CALL_DUMMY_LENGTH with 0, simplify.
7389 * dummy-frame.h: Delete out-of-date comments.
7390 * gdbarch.sh (DEPRECATED_CALL_DUMMY_LENGTH): Delete.
7391 * gdbarch.h, gdbarch.c: Re-generate.
7392
7393 2004-04-02 Joel Brobecker <brobecker@gnat.com>
7394
7395 Committed by Andrew Cagney <cagney@redhat.com>.
7396 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Do not take
7397 into account an instruction saving a register if we have already
7398 seen an earlier instruction saving that same register.
7399
7400 2004-04-02 Andrew Cagney <cagney@redhat.com>
7401
7402 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Delete.
7403 * gdbarch.h, gdbarch.c: Re-generate.
7404 * frame.c (legacy_get_prev_frame): Delete references to
7405 DEPRECATED_INIT_FRAME_PC_FIRST.
7406
7407 * infrun.c (pc_in_sigtramp): Delete function.
7408 (check_sigtramp2): Inline call to pc_in_sigtramp, use
7409 get_frame_type.
7410
7411 2004-04-02 Andrew Cagney <cagney@redhat.com>
7412
7413 * infrun.c (handle_step_into_function): Delete code conditional on
7414 legacy_frame_p.
7415 (handle_inferior_event, step_over_function): Ditto.
7416
7417 2004-04-02 Andrew Cagney <cagney@redhat.com>
7418
7419 * frame.c (get_prev_frame_1): Exclude signal trampolines from the
7420 "previous frame inner to this frame" test.
7421
7422 2004-04-02 Andrew Cagney <cagney@redhat.com>
7423
7424 * frame.c (safe_frame_unwind_memory): New function.
7425 * frame.h (safe_frame_unwind_memory): Declare. Update description
7426 of /safe_/ methods.
7427 * tramp-frame.c (tramp_frame_start): Re-order parmeters, add
7428 "next_frame". Use safe_frame_unwind_memory.
7429 (tramp_frame_sniffer): Update call to tramp_frame_start.
7430
7431 2004-04-01 Daniel Jacobowitz <drow@mvista.com>
7432
7433 * dwarf2read.c (dwarf2_objfile_data_key): New.
7434 (struct dwarf2_per_objfile, dwarf2_per_objfile): New.
7435 (dwarf_info_size, dwarf_abbrev_size, dwarf_line_size)
7436 (dwarf_pubnames_size, dwarf_aranges_size, dwarf_loc_size)
7437 (dwarf_macinfo_size, dwarf_str_size, dwarf_ranges_size)
7438 (dwarf_frame_size, dwarf_eh_frame_size, dwarf_info_buffer)
7439 (dwarf_abbrev_buffer, dwarf_line_buffer, dwarf_str_buffer)
7440 (dwarf_macinfo_buffer, dwarf_ranges_buffer, dwarf_loc_buffer):
7441 Remove variables.
7442 (struct dwarf2_pinfo): Remove per-objfile members. Update comments.
7443 (DWARF_ABBREV_SIZE, DWARF_LINE_SIZE)
7444 (DWARF_LOC_SIZE, DWARF_MACINFO_SIZE, DWARF_STR_SIZE)
7445 (DWARF_RANGES_SIZE, DWARF_INFO_BUFFER)
7446 (DWARF_ABBREV_BUFFER, DWARF_LINE_BUFFER, DWARF_STR_BUFFER)
7447 (DWARF_MACINFO_BUFFER, DWARF_RANGES_BUFFER, DWARF_LOC_BUFFER):
7448 Remove macros.
7449 (dwarf2_has_info): Take an objfile argument. Allocate per-objfile
7450 data.
7451 (dwarf2_locate_sections, dwarf2_build_psymtabs)
7452 (dwarf2_build_psymtabs_easy, dwarf2_build_psymtabs_hard)
7453 (skip_one_die, dwarf2_get_pc_bounds, dwarf2_read_abbrevs)
7454 (read_partial_die, read_full_die, read_indirect_string)
7455 (dwarf_decode_line_header, dwarf_decode_macros)
7456 (dwarf2_symbol_mark_computed): Remove use of removed macros.
7457 Update uses of removed variables.
7458 (psymtab_to_symtab_1): Restore per-objfile data pointer. Remove use
7459 of removed macros.
7460 (_initialize_dwarf2_read): New function.
7461 * symfile.h (dwarf2_has_info): Update prototype.
7462 * coffread.c (coff_symfile_read): Update call to dwarf2_has_info.
7463 * elfread.c (elf_symfile_read): Likewise.
7464
7465 2004-04-01 Jim Blandy <jimb@redhat.com>
7466
7467 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): New, unified
7468 function for register numbers on all the rs6000-derived targets.
7469 (rs6000_gdbarch_init): Don't register a separate
7470 gdbarch_dwarf2_reg_to_regnum function for the E500. Use
7471 rs6000_dwarf2_stab_reg_to_regnum for both Dwarf 2 and stabs on all
7472 variants.
7473
7474 * i386-tdep.c: Add FIXME regarding STABS vs. Dwarf 2 register
7475 numbering.
7476
7477 2004-04-01 Paul N. Hilfinger <Hilfinger@gnat.com>
7478
7479 * valarith.c: Update copyright notice.
7480 (value_add): Handle range types.
7481 (value_sub): Ditto.
7482 (value_equal): Ditto.
7483 (value_less): Ditto.
7484 (value_neg): Ditto.
7485 (value_complement): Ditto.
7486 (value_binop): Simplify slightly by using is_integral_type and
7487 eliminiating unnecessary COERCE_ENUMs.
7488
7489 2004-03-31 Andrew Cagney <cagney@redhat.com>
7490
7491 * frame.h (frame_unwind_id): Declare.
7492 * frame.c (frame_unwind_id): New function.
7493 (get_prev_frame_1): New function.
7494 (frame_debug_got_null_frame): New function.
7495 (get_prev_frame): Use frame_debug_got_null_frame. Move unwind
7496 code proper to prev_frame, update description.
7497 * infrun.c (step_over_function): Use frame_unwind_id.
7498
7499 2004-04-31 J. Brobecker <brobecker@gnat.com>
7500
7501 * hppa-tdep.c (hppa32_push_dummy_call): Set the Stack Pointer.
7502 (hppa64_push_dummy_call): Likewise.
7503
7504 2004-03-30 Jim Blandy <jimb@redhat.com>
7505
7506 From Ulrich Weigand:
7507 * utils.c (query): Do not use a va_list variable multiple times.
7508
7509 2004-03-29 Daniel Jacobowitz <drow@mvista.com>
7510
7511 * Makefile.in (linux_nat_h): Update dependencies.
7512 * configure.in: Check for <gnu/libc-version.h>.
7513 * configure: Regenerate.
7514 * config.in: Regenerate.
7515 * linux-nat.h: Include "target.h". Add waitstatus field to
7516 struct lwp_info.
7517 * lin-lwp.c (add_lwp): Initialize waitstatus.kind.
7518 (lin_lwp_attach_lwp): Don't attach to LWPs we have already attached
7519 to.
7520 (lin_lwp_handle_extended): New function. Handle clone events.
7521 (wait_lwp): Use lin_lwp_handle_extended. Update comment about
7522 thread exit events.
7523 (child_wait): Handle clone events.
7524 (lin_lwp_wait: Use lin_lwp_handle_extended and handle clone events.
7525 * linux-nat.c (linux_enable_event_reporting): Turn on
7526 PTRACE_O_TRACECLONE.
7527 (linux_handle_extended_wait): Handle clone events.
7528 * thread-db.c: Include <gnu/libc-version.h>.
7529 (struct private_thread_info): Add dying flag.
7530 (enable_thread_event_reporting): Enable TD_DEATH for glibc 2.2 and
7531 higher.
7532 (attach_thread): Update comments. Handle dying threads.
7533 (detach_thread): Set the dying flag.
7534 (check_event): Always call attach_thread.
7535
7536 2004-03-29 Daniel Jacobowitz <drow@mvista.com>
7537
7538 * mips-tdep.c (mips_pdr_data): New.
7539 (non_heuristic_proc_desc): Use objfile_data and set_objfile_data.
7540 (_initialize_mips_tdep): Initialize mips_pdr_data.
7541
7542 2004-03-29 Corinna Vinschen <vinschen@redhat.com>
7543
7544 * minsyms.c (install_minimal_symbols): Move dropping leading
7545 char from linkage name from here...
7546 (prim_record_minimal_symbol_and_info): ...to here. Simplify
7547 test for "__gnu_compiled*" symbols.
7548
7549 2004-03-28 Jim Blandy <jimb@redhat.com>
7550
7551 * rs6000-tdep.c (skip_prologue): Recognize moves from argument
7552 registers to temp register r0 and byte stores as prologue
7553 instructions.
7554
7555 2004-03-28 Andrew Cagney <cagney@redhat.com>
7556
7557 * PROBLEMS (Stack backtraces): Rewrite. Remove reference to
7558 arm*-*-*.
7559
7560 2004-03-28 Stephane Carrez <stcarrez@nerim.fr>
7561
7562 * tui/tui-regs.c (tui_show_registers): Make sure the TUI is active
7563 and switch the layout to force a display of register window.
7564
7565 2004-02-26 J. Brobecker <brobecker@gnat.com>
7566
7567 * amd64-tdep.c (amd64_classify): make RANGE_TYPE objects be part
7568 of the INTEGER class.
7569
7570 2004-03-26 Jim Blandy <jimb@redhat.com>
7571
7572 * ppc-linux-tdep.c (ppc_linux_init_abi): Long doubles are eight
7573 bytes long on PPC GNU/Linux.
7574
7575 2004-03-26 David Carlton <carlton@kealia.com>
7576
7577 * PROBLEMS: Refer to gdb/1588 instead of gdb/826.
7578
7579 2004-03-25 Andrew Cagney <cagney@redhat.com>
7580
7581 * PROBLEMS: Add general section titles, remove references to
7582 specific releases.
7583
7584 2004-03-25 Daniel Jacobowitz <drow@mvista.com>
7585
7586 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE): Define to
7587 INT_REGISTER_SIZE.
7588 (arm_linux_push_arguments): Use TARGET_DOUBLE_BIT instead of
7589 FP_REGISTER_VIRTUAL_SIZE.
7590 * arm-tdep.c (arm_make_sigtramp_cache): Use register_size instead
7591 of DEPRECATED_REGISTER_RAW_SIZE.
7592 (arm_register_type): Add gdbarch argument.
7593 (arm_register_raw_size, arm_register_virtual_size): Delete.
7594 (arm_register_byte, arm_extract_return_value)
7595 (arm_store_return_value, arm_get_longjmp_target): Update references
7596 to INT_REGISTER_RAW_SIZE and FP_REGISTER_RAW_SIZE.
7597 (arm_gdbarch_init): Likewise. Don't set
7598 deprecated_register_raw_size, deprecated_register_virtual_size,
7599 deprecated_max_register_raw_size,
7600 deprecated_max_register_virtual_size, or
7601 deprecated_max_register_virtual_type. Do set register_type.
7602 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE)
7603 (ARM_MAX_REGISTER_VIRTUAL_SIZE, INT_REGISTER_VIRTUAL_SIZE)
7604 (FP_REGISTER_VIRTUAL_SIZE): Delete.
7605 (INT_REGISTER_RAW_SIZE): Rename to INT_REGISTER_SIZE.
7606 (FP_REGISTER_RAW_SIZE): Rename to FP_REGISTER_SIZE.
7607 * arm-linux-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Define to
7608 INT_REGISTER_SIZE.
7609 * remote-rdp.c (remote_rdp_fetch_register): Use MAX_REGISTER_SIZE.
7610 (remote_rdp_store_register): Likewise.
7611
7612 2004-03-24 Daniel Jacobowitz <drow@mvista.com>
7613
7614 * Makefile.in (mips-linux-tdep.o): Update dependencies.
7615 * mips-tdep.c (mips_gdbarch_init): Move frame predicates
7616 to after osabi initialization.
7617 * mips-linux-tdep.c: Include "trad-frame.h" and "tramp-frame.h".
7618 (mips_linux_o32_sigframe_init, mips_linux_n32n64_sigframe_init): New
7619 functions.
7620 (mips_linux_o32_sigframe, mips_linux_o32_rt_sigframe)
7621 (mips_linux_n32_rt_sigframe, mips_linux_n64_rt_sigframe): New
7622 variables.
7623 (mips_linux_init_abi): Append signal trampoline unwinders.
7624
7625 2004-03-24 Andrew Cagney <cagney@redhat.com>
7626
7627 * tramp-frame.h (TRAMP_SENTINEL_INSN): Define, document.
7628 * tramp-frame.c: Include "gdb_assert.h".
7629 (tramp_frame_start): Use TRAMP_SENTINEL_INSN. Use ULONGEST and
7630 correct sizeof.
7631 (tramp_frame_append): Validate the tramp frame's instructions.
7632 * Makefile.in (tramp-frame.o): Update dependencies.
7633
7634 2004-03-23 Andrew Cagney <cagney@redhat.com>
7635
7636 * trad-frame.h (trad_frame_set_reg_addr): Declare.
7637
7638 2004-03-23 Andrew Cagney <cagney@redhat.com>
7639
7640 * MAINTAINERS (Past Maintainers): Add Mark Salter and Fernando
7641 Nasser as past testsuite/lib/ (and other) maintainers.
7642
7643 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
7644
7645 * infcmd.c (attach_command): Reread symbols if we already have
7646 an exec file.
7647
7648 2004-03-23 Andrew Cagney <cagney@redhat.com>
7649
7650 * rs6000-tdep.c (frame_get_saved_regs): Delete unused function.
7651
7652 2004-03-23 Andrew Cagney <cagney@redhat.com>
7653
7654 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): Deprecate.
7655 * gdbarch.h, gdbarch.c: Re-generate.
7656 * i386obsd-tdep.c (i386obsd_init_abi): Update.
7657 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
7658 * i386bsd-tdep.c (i386bsd_init_abi): Update.
7659 * config/vax/tm-vaxbsd.h (DEPRECATED_SIGTRAMP_END)
7660 (DEPRECATED_SIGTRAMP_START): Update.
7661 * config/m68k/tm-nbsd.h (DEPRECATED_SIGTRAMP_END)
7662 (DEPRECATED_SIGTRAMP_START): Update.
7663 * blockframe.c (find_pc_sect_partial_function): Update.
7664 * arch-utils.c (legacy_pc_in_sigtramp): Update.
7665
7666 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
7667
7668 * remote.c (remote_open_1): Reopen the exec file and reread symbols
7669 if necessary.
7670
7671 2004-03-23 Andrew Cagney <cagney@redhat.com>
7672
7673 * gdbarch.sh (PC_IN_SIGTRAMP): Change to a function with
7674 predicate, deprecate.
7675 * gdbarch.h, gdbarch.c: Re-generate.
7676 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
7677 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
7678 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Update.
7679 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
7680 * alphanbsd-tdep.c (alphanbsd_init_abi): Update.
7681 * amd64-linux-tdep.c (amd64_linux_init_abi): Update.
7682 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Update.
7683 * amd64nbsd-tdep.c (amd64nbsd_init_abi): Update.
7684 * amd64obsd-tdep.c (amd64obsd_init_abi): Update.
7685 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Update.
7686 * blockframe.c (find_pc_partial_function): Update.
7687 * breakpoint.c (bpstat_what): Update.
7688 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update.
7689 * frv-linux-tdep.c (frv_linux_init_abi): Update.
7690 * frv-tdep.c (frv_sigtramp_frame_sniffer): Update.
7691 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Update.
7692 * i386-interix-tdep.c (i386_interix_init_abi): Update.
7693 * i386-linux-tdep.c (i386_linux_init_abi): Update.
7694 * i386-nto-tdep.c (i386nto_init_abi): Update.
7695 * i386-sol2-tdep.c (i386_sol2_init_abi): Update.
7696 * i386-tdep.c (i386_sigtramp_frame_sniffer)
7697 (i386_svr4_init_abi, i386_go32_init_abi, i386_gdbarch_init): Update.
7698 * i386bsd-tdep.c (i386bsd_init_abi): Update.
7699 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
7700 * i386obsd-tdep.c (i386obsd_init_abi): Update.
7701 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Update.
7702 * infrun.c (pc_in_sigtramp): Update.
7703 * m68k-tdep.c (m68k_sigtramp_frame_sniffer): Update.
7704 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
7705 * mips-tdep.c (mips_gdbarch_init): Update.
7706 * mipsnbsd-tdep.c (mipsnbsd_init_abi): Update.
7707 * ppc-linux-tdep.c: Update comment.
7708 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Update.
7709 * shnbsd-tdep.c (shnbsd_init_abi): Update.
7710 * sparc-linux-tdep.c (sparc32_linux_init_abi): Update.
7711 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Update.
7712 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Update.
7713 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Update.
7714 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Update.
7715 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Update.
7716 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Update.
7717 * sparcobsd-tdep.c (sparc32obsd_init_abi): Update.
7718
7719 2004-03-23 Andrew Cagney <cagney@redhat.com>
7720
7721 * tramp-frame.h, tramp-frame.h: New files.
7722 * Makefile.in (SFILES, tramp_frame_h, COMMON_OBS, tramp-frame.o):
7723 Update rules to include "tramp-frame.h" and "tramp-frame.c".
7724
7725 * Makefile.in: Update all dependencies.
7726
7727 2004-03-23 Andrew Cagney <cagney@redhat.com>
7728
7729 * Makefile.in (trad_frame_h): Add $(frame_h).
7730 * trad-frame.h: Update copyright. Include "frame.h".
7731 (struct trad_frame_cache, trad_frame_cache_zalloc): Declare.
7732 (trad_frame_set_id, trad_frame_get_id): Declare.
7733 (trad_frame_set_reg_addr, trad_frame_get_register): Declare.
7734 * trad-frame.c: Update copyright.
7735 (struct trad_frame_cache): Define.
7736 (trad_frame_cache_zalloc): New function.
7737 (trad_frame_set_id, trad_frame_get_id): New functions.
7738 (trad_frame_set_reg_addr, trad_frame_get_register): New functions.
7739
7740 2004-03-22 Andrew Cagney <cagney@redhat.com>
7741
7742 * s390-tdep.c (struct s390_stub_unwind_cache): Rename
7743 s390_pltstub_unwind_cache.
7744 (s390_stub_frame_unwind_cache): Rename
7745 s390_pltstub_frame_unwind_cache.
7746 (s390_stub_frame_this_id): Rename s390_pltstub_frame_this_id.
7747 (s390_stub_frame_prev_register): Rename
7748 s390_pltstub_frame_prev_register.
7749 (s390_stub_frame_unwind): Rename s390_pltstub_frame_unwind.
7750 (s390_stub_frame_sniffer): Rename s390_stub_frame_sniffer.
7751
7752 From Ulrich Weigand:
7753 * s390-tdep.c (s390_pltstub_frame_sniffer): Handle invalid function
7754 pointer calls like PLT calls.
7755
7756 2004-03-22 Daniel Jacobowitz <drow@mvista.com>
7757
7758 * mips-tdep.c (non_heuristic_proc_desc): Search using the specified
7759 PC rather than the partial function start address. Use the start
7760 address to sanity check the found PDR.
7761
7762 2004-03-22 Daniel Jacobowitz <drow@mvista.com>
7763
7764 * lin-lwp.c (lin_lwp_wait): Pass the LWP ID to
7765 linux_handle_extended_wait.
7766
7767 2004-03-22 Andrew Cagney <cagney@redhat.com>
7768
7769 * rs6000-tdep.c (frame_initial_stack_address): Delete unused
7770 function.
7771
7772 * frame.h (generic_pop_current_frame): Delete declaration.
7773 (deprecate_pop_dummy_frame): Deprecate
7774 generic_pop_dummy_frame.
7775 * dummy-frame.c (deprecated_pop_dummy_frame): Update.
7776 (generic_pop_current_frame): Delete function.
7777 * mn10300-tdep.c (mn10300_pop_frame): Eliminate call to
7778 generic_pop_current_frame.
7779 * v850-tdep.c (v850_pop_frame): Update.
7780 * mcore-tdep.c (mcore_pop_frame): Update.
7781 * sh64-tdep.c (sh64_pop_frame): Update.
7782 * h8300-tdep.c (h8300_pop_frame): Update.
7783
7784 2004-03-22 Andrew Cagney <cagney@redhat.com>
7785
7786 * frame.h (deprecated_pc_in_call_dummy): Rename
7787 generic_pc_in_call_dummy.
7788 * dummy-frame.h (pc_in_dummy_frame): Delete declaration.
7789 * dummy-frame.c (deprecated_pc_in_call_dummy): Rename
7790 generic_pc_in_call_dummy.
7791 (pc_in_dummy_frame): Make static.
7792 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Update.
7793 * gdbarch.h, gdbarch.c: Re-generate.
7794 * dummy-frame.c (dummy_frame_sniffer): Simplify.
7795 * frame.c (frame_type_from_pc): Call deprecated_pc_in_call_dummy.
7796 (legacy_get_prev_frame): Ditto.
7797 * inferior.h: Delete reference to generic_pc_in_call_dummy in
7798 comment.
7799
7800 2004-03-21 Andrew Cagney <cagney@redhat.com>
7801
7802 * inferior.h (deprecated_pc_in_call_dummy_at_entry_point): Delete
7803 declaration and out-of-date comment.
7804 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
7805 Delete function.
7806 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
7807 deprecated_pc_in_call_dummy.
7808
7809 * infrun.c (handle_inferior_event): For non legacy frames, use the
7810 frame ID and frame type to identify a signal trampoline. Update
7811 comments.
7812
7813 2004-03-21 Nathan J. Williams <nathanw@wasabisystems.com>
7814
7815 * mipsnbsd-tdep.c: Update copyright. Include "mips-tdep.h".
7816 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
7817
7818 2004-03-21 Andrew Cagney <cagney@redhat.com>
7819
7820 * frame-unwind.h: Update copyright.
7821 (struct frame_data): Add opaque declaration.
7822 (frame_sniffer_ftype): Declare.
7823 (struct frame_unwind): Add "unwind_data" and "sniffer".
7824 (frame_unwind_register_unwinder): Declare.
7825 (frame_unwind_find_by_frame): Add parameter "this_cache".
7826 * frame.c (get_frame_id, create_new_frame, legacy_get_prev_frame)
7827 (legacy_get_prev_frame, legacy_get_prev_frame)
7828 (get_frame_type): Pass the prologue_cache to
7829 frame_unwind_find_by_frame.
7830 * frame-unwind.c (struct frame_unwind_table_entry): Add field
7831 "unwinder".
7832 (frame_unwind_register_unwinder): New function.
7833 (frame_unwind_find_by_frame): Handle an unwind sniffer.
7834
7835 2004-03-20 Paul Hilfinger <hilfingr@nile.gnat.com>
7836
7837 * bcache.c (print_percentage): Use floating point to avoid
7838 incorrect results when portion*100 overflows.
7839
7840 2004-03-19 Kevin Buettner <kevinb@redhat.com>
7841
7842 * ppc_tdep.h (ppc_linux_frame_saved_pc)
7843 (ppc_linux_init_extra_frame_info)
7844 (ppc_linux_frameless_function_invocation)
7845 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain)
7846 (rs6000_frame_saved_pc, rs6000_init_extra_frame_info)
7847 (rs6000_frameless_function_invocation, rs6000_frame_init_saved_regs)
7848 (rs6000_frame_chain): Delete declarations.
7849 * ppc-linux-tdep.c (ppc_linux_frame_saved_pc)
7850 (ppc_linux_init_extra_frame_info)
7851 (ppc_linux_frameless_function_invocation)
7852 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain): Delete.
7853 (ppc_linux_init_abi): Remove registration of above deleted functions.
7854 * rs6000-tdep.c (rs6000_init_extra_frame_info)
7855 (rs6000_frame_init_saved_regs, rs6000_init_frame_pc_first)
7856 (rs6000_frame_args_address, rs6000_saved_pc_after_call)
7857 (rs6000_pop_frame, rs6000_frameless_function_invocation)
7858 (rs6000_frame_saved_pc, rs6000_frame_chain): Delete.
7859 (rs6000_gdbarch_init): Remove registration of above deleted functions.
7860 Use rs6000_unwind_pc(), rs6000_frame_sniffer(),
7861 rs6000_unwind_dummy_id(), and rs6000_frame_base_sniffer() for
7862 frame management for all OSABIs.
7863
7864 2004-03-19 Andrew Cagney <cagney@redhat.com>
7865
7866 Committed by Kevin Buettner <kevinb@redhat.com>.
7867
7868 * ppc-linux-tdep.c: Include "trad-frame.h", and "frame-unwind.h".
7869 Update copyright.
7870 (struct ppc_linux_sigtramp_cache, ppc_linux_sigtramp_cache)
7871 (ppc_linux_sigtramp_this_id, ppc_linux_sigtramp_prev_register)
7872 (ppc_linux_sigtramp_unwind, ppc_linux_sigtramp_sniffer)
7873 (ppc_linux_init_abi): Add both 32- and 64-bit signal trampoline
7874 unwinders. #ifdef legacy frame code.
7875 * rs6000-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
7876 "frame-base.h".
7877 (rs6000_unwind_pc, rs6000_unwind_dummy_id)
7878 (struct rs6000_frame_cache, rs6000_frame_cache)
7879 (rs6000_frame_this_id, rs6000_frame_prev_register)
7880 (rs6000_frame_sniffer, rs6000_frame_unwind)
7881 (rs6000_frame_base_address, rs6000_frame_base_sniffer)
7882 (rs6000_frame_base): Implement a traditional frame unwinder.
7883 (rs6000_gdbarch_init): When unknown, NetBSD, or GNU/Linux use the
7884 frame unwinder.
7885
7886 2004-03-19 Kevin Buettner <kevinb@redhat.com>
7887
7888 * breakpoint.c (adjust_breakpoint_address): Don't adjust
7889 breakpoint address for watchpoints or the catch eventpoints.
7890 Add new paramter ``bptype''. Adjust all callers.
7891
7892 2004-03-19 Andrew Cagney <cagney@redhat.com>
7893
7894 * config/pa/tm-hppa.h (GDB_TARGET_IS_HPPA): Delete unused macro.
7895
7896 * PROBLEMS: Delete note that ARM does not use frame code, problem
7897 fixed.
7898
7899 2004-03-18 Andrew Cagney <cagney@redhat.com>
7900
7901 * stack.c (return_command): Delete code wrapped in #ifdef
7902 DEPRECATED_CALL_DUMMY_HAS_COMPLETED, macro no longer defined.
7903
7904 * rs6000-tdep.c (skip_prologue): Record only the first LR save.
7905
7906 2004-03-18 Andrew Cagney <cagney@redhat.com>
7907
7908 * config/mips/tm-nbsd.h: Replace IN_SIGTRAMP with
7909 DEPRECATED_IN_SIGTRAMP.
7910 * config/powerpc/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7911 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP) Ditto.
7912 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7913 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7914 * config/ia64/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7915 * config/ia64/tm-aix.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7916 * config/arm/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7917 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7918 * arch-utils.c (legacy_pc_in_sigtramp): Ditto.
7919 * arch-utils.h: Remove reference to IN_SIGTRAMP in comment.
7920
7921 2004-03-18 Andrew Cagney <cagney@redhat.com>
7922
7923 * frame-base.c: Update copyright. Include "gdb_obstack.h".
7924 (struct frame_base_table_entry): Define.
7925 (struct frame_base_table): Re-implement as a linked list.
7926 (frame_base_init): Re-implement.
7927 (frame_base_table): Delete function.
7928 (append_predicate): Delete function.
7929 (frame_base_append_sniffer): Update.
7930 (frame_base_set_default): Update.
7931 (frame_base_find_by_frame): Update.
7932 (_initialize_frame_base): Use gdbarch_data_register_pre_init.
7933 * Makefile.in (frame-base.o): Update dependencies.
7934
7935 2004-03-17 Andrew Cagney <cagney@redhat.com>
7936
7937 * frame.c (legacy_get_prev_frame): Pass correct frame to
7938 frame_unwind_find_by_frame.
7939
7940 2004-03-17 David Carlton <carlton@kealia.com>
7941
7942 * NEWS: Mention C++ nested types and namespaces
7943
7944 2004-03-16 Michael Chastain <mec.gnu@mindspring.com>
7945
7946 * PROBLEMS: Add section headers, "Regressions since gdb 6.0"
7947 and "Regressions since gdb 5.3.". Add known regressions since
7948 gdb 6.0.
7949
7950 2004-03-16 David Carlton <carlton@kealia.com>
7951
7952 * dwarf2read.c (process_structure_scope): Process children even
7953 when we're a declaration.
7954
7955 2004-03-16 Andrew Cagney <cagney@redhat.com>
7956
7957 * symtab.h (find_pc_sect_partial_function): Delete declaration.
7958 * blockframe.c (find_pc_partial_function)
7959 (find_pc_sect_partial_function): Merge into a single
7960 find_pc_partial_function.
7961
7962 2004-03-16 Mark Kettenis <kettenis@gnu.org>
7963
7964 * i386bsd-nat.c: s/regno/regnum/g.
7965 (fetch_inferior_registers): Use I386_ST0_REGNUM instead of
7966 FP0_REGNUM.
7967 (store_inferior_registers): Likewise.
7968
7969 2004-03-16 Mark Kettenis <kettenis@gnu.org>
7970
7971 * i386bsd-nat.c (fill_fpregset): Call i387_collect_fsave instead
7972 of i387_fill_fsave.
7973 (store_inferior_registers): Call i387_collect_fsave and
7974 i387_collect_fxsave instead of i387_fill_fsave and
7975 i387_fill_fxsave.
7976
7977 2004-03-15 Andrew Cagney <cagney@redhat.com>
7978
7979 * Makefile.in (frame-unwind.o): Update dependencies.
7980 * frame-unwind.c: Include "gdb_obstack.h".
7981 (frame_unwind_init): Replace "gdbarch" parameter with an "obstack"
7982 parameter.
7983 (append_predicate): Delete function.
7984 (struct frame_unwind_table_entry): New structure.
7985 (struct frame_unwind_table): Replace "sniffer" with "head" and
7986 "tail".
7987 (frame_unwind_append_sniffer): Update.
7988 (frame_unwind_find_by_frame): Update.
7989 (_initialize_frame_unwind): Registe frame_unwind_init using
7990 gdbarch_data_register_pre_init.
7991
7992 2004-03-15 Mark Kettenis <kettenis@gnu.org>
7993
7994 * i386bsd-nat.c: Update copyright year.
7995 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Undefine and then
7996 define unconditionally.
7997
7998 2004-03-15 Mark Kettenis <kettenis@gnu.org>
7999
8000 * i387-tdep.h (i387_collect_fsave): New prototype.
8001 * i387-tdep.c (i387_collect_fsave): New function containing most
8002 of the code from i387_fill_fsave.
8003 (i387_fill_fsave): Call i387_collect_fsave.
8004
8005 2004-03-15 Mark Kettenis <kettenis@gnu.org>
8006
8007 * i386-linux-tdep.c: Update copyright year.
8008 (i386_linux_svr4_fetch_link_map_offsets): Remove function.
8009 (i386_linux_init_abi): Set solib_svr4_fetch_link_maop_offsets to
8010 svr4_ilp32_link_map_offsets instead of
8011 i386_linux_svr4_fetch_link_map_offsets.
8012
8013 2004-03-15 David Carlton <carlton@kealia.com>
8014
8015 Fix for PR c++/1553:
8016 * dwarf2read.c (read_structure_type): Determine type name by
8017 calling determine_class_name.
8018 (determine_class_name): New.
8019 (determine_prefix): Look at TYPE_TAG_NAME and call
8020 determine_class_name when appropriate.
8021 (determine_prefix_aux, class_name): Delete.
8022 (read_namespace): Set die->type.
8023
8024 2004-03-15 Kevin Buettner <kevinb@redhat.com>
8025
8026 * breakpoint.c (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete
8027 unused macro definition. The definition in target.h (or perhaps
8028 elsewhere) takes precedence.
8029
8030 2004-03-15 Andrew Cagney <cagney@redhat.com>
8031
8032 * ppc-tdep.h: Update copyright.
8033 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Change
8034 function signatures to match "regsets.h".
8035 * ppc-linux-tdep.c: Include "regset.h".
8036 (ELF_GREGSET_SIZE): Delete.
8037 (right_supply_register): New function.
8038 (ppc_linux_supply_fpregset, ppc_linux_supply_gregset): Rewrite
8039 using right_supply_register.
8040 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): New
8041 functions.
8042 (ppc64_linux_gregset, ppc32_linux_gregset): Define.
8043 (ppc_linux_init_abi): Register ppc_linux_regset_from_core_section.
8044 (_initialize_ppc_linux_tdep): Do not register
8045 ppc_linux_regset_core_fns.
8046 (ppc_linux_regset_from_core_section): Replace
8047 fetch_core_registers.
8048 (ppc_linux_regset_core_fns): Delete.
8049 * ppc-linux-nat.c: (right_fill_reg): New function.
8050 (supply_gregset): Update call to ppc_linux_supply_gregset.
8051 (fill_gregset): Clear the register set, use right_fill_reg.
8052 (supply_fpregset): Update call to ppc_linux_supply_fpregset.
8053 (fill_fpregset): Use right_fill_reg, correctly compute FP offsets.
8054
8055 * rs6000-tdep.c (rs6000_register_virtual_type): Make registers
8056 unsigned.
8057
8058 2004-03-15 Andrew Cagney <cagney@redhat.com>
8059
8060 * gdbarch.sh (gdbarch_data_pre_init_fytpe)
8061 (gdbarch_data_register_pre_init, gdbarch_data_post_init_fytpe)
8062 (gdbarch_data_register_post_init): Replace gdbarch_data_init_ftype
8063 and register_gdbarch_data.
8064 (deprecated_set_gdbarch_data): Rename set_gdbarch_data.
8065 (struct gdbarch_data): Replace "init" by "pre_init" and
8066 "post_init".
8067 * gdbarch.h, gdbarch.c: Re-generate.
8068 * dwarf2-frame.c (dwarf2_frame_init): Replace "gdbarch" paramter
8069 with"obstack", use OBSTACK_ZALLOC.
8070 (dwarf2_frame_ops): Delete.
8071 (dwarf2_frame_set_init_reg): Use gdbarch_data.
8072 (dwarf2_frame_init_reg): Use gdbarch_data.
8073 (_initialize_dwarf2_frame): Use gdbarch_data_register_pre_init.
8074 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets)
8075 (_initialize_svr4_solib): Update.
8076 * user-regs.c (_initialize_user_regs): Update.
8077 * reggroups.c (_initialize_reggroup): Update.
8078 * regcache.c (_initialize_regcache): Update.
8079 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
8080 * libunwind-frame.c (_initialize_libunwind_frame): Update.
8081 * gnu-v3-abi.c (init_gnuv3_ops): Update.
8082 * frame-unwind.c (_initialize_frame_unwind): Update.
8083 * frame-base.c (_initialize_frame_base): Update.
8084 * user-regs.c (user_reg_add): Update.
8085 * reggroups.c (reggroup_add): Update.
8086 * mips-linux-tdep.c (set_mips_linux_register_addr): Update.
8087 * libunwind-frame.c (libunwind_frame_set_descr): Update.
8088 * frame-unwind.c (frame_unwind_append_sniffer): Update.
8089 * frame-base.c (frame_base_table): Update.
8090 * remote.c (_initialize_remote): Update.
8091 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Define.
8092
8093 2004-03-15 Andrew Cagney <cagney@redhat.com>
8094
8095 * cris-tdep.c (bfd_lookup_symbol): Delete unused function.
8096
8097 2004-03-15 Kevin Buettner <kevinb@redhat.com>
8098
8099 * Makefile.in (frv-linux-tdep.o): Add dependencies.
8100 * frv-linux-tdep.c: New file.
8101 * frv-tdep.c (struct gdbarch_tdep): Add new field
8102 ``sigcontext_reg_addr''.
8103 (frv_set_sigcontext_reg_addr, frv_sigtramp,frame_cache)
8104 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
8105 (frv_sigramp_frame_sniffer): New functions.
8106 (frv_sigtramp_frame_unwind): New static global.
8107 (frv_gdbarch_init): Hook in ABI-specific overrides. Hook up frame
8108 sniffers.
8109 * frv-tdep.h (frv_set_sigcontext_reg_addr): New function.
8110 * config/frv/frv.mt (TDEPFILES): Add frv-linux-tdep.o.
8111
8112 2004-03-15 Kevin Buettner <kevinb@redhat.com>
8113
8114 * frv-tdep.c (frv_analyze_prologue): Terminate prologue scan,
8115 but not via a call to error(), when unable to read memory.
8116
8117 2004-03-15 Kevin Buettner <kevinb@redhat.com>
8118
8119 * frv-tdep.c (frv_call_dummy_words): Delete.
8120 (frv_frame_unwind_cache): Delete unused variable, ``prev_sp''.
8121
8122 2004-03-15 Andrew Cagney <cagney@redhat.com>
8123
8124 * infrun.c (handle_step_into_function, step_over_function): Only
8125 update and use STEP_FRAME_ID when the system is using legacy
8126 frames. Update comments.
8127
8128 2004-03-14 Mark Kettenis <kettenis@gnu.org>
8129
8130 * amd64-linux-tdep.h: Remove file.
8131 * amd64-linux-tdep.c: Don't include "inferior.h" and
8132 "amd64-linux-tdep.h". Include "frame.h" and "solib-svr4.h".
8133 (USER_R15, USER_R14, USER_R13, USER_R12, USER_RBP, USER_RBX)
8134 (USER_R11, USER_R10, USER_R9, USER_R8, USER_RAX, USER_RCX)
8135 (USER_RDX, USER_RSI, USER_RDI, USER_RIP, USER_CS, USER_EFLAGS)
8136 (USER_RSP, USER_SS, USER_DS, USER_ES, USER_FS, USER_GS): Remove
8137 macros.
8138 (user_to_gdb_regmap): Remove variable.
8139 (amd64_linux_gregset_reg_offset): New variable.
8140 (amd64_core_fns): Remove variable.
8141 (fetch_core_registers): Remove function.
8142 (amd64_linux_supply_gregset, amd64_linux_fill_gregset): Remove
8143 functions.
8144 (_initialize_amd64_linux_tdep): Don't set add_core_fns.
8145 * amd64-linux-nat.c: Don't include "amd64-linux-tdep.h".
8146 * Makefile.in (amd64_linux_tdep_h): Remove.
8147 (amd64-linux-nat.o): Update dependencies.
8148 (amd64-linux-tdep.o): Update dependencies.
8149
8150 * amd64-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
8151 (fetch_regs, fetch_fpregs, store_regs, store_fpregs): Remove
8152 functions.
8153 (fetch_inferior_registers, store_inferior_registers): Rewrite.
8154
8155 * amd64-tdep.h (amd64_fill_fxsave): Remove prototype.
8156 * amd64-tdep.c (amd64_fill_fxsave): Remove function.
8157
8158 2004-03-14 Daniel Jacobowitz <drow@mvista.com>
8159
8160 * dwarf2read.c (read_structure_type): Rename from
8161 read_structure_scope. Don't create a symbol or call process_die.
8162 Return immediately if die->type is set. Call read_type_die before
8163 dwarf2_add_member_fn.
8164 (process_structure_scope): New function.
8165 (read_enumeration_type, process_enumeration_scope): New functions,
8166 broken out from read_enumeration. Don't create the enumeration
8167 type if it has already been created.
8168 (read_enumeration): Removed.
8169 (process_die): Call read_structure_type, process_structure_scope,
8170 read_enumeration_type, and process_enumeration_scope. Just call
8171 new_symbol for base and subrange types. Add a comment about other
8172 type dies.
8173 (read_type_die): Call read_enumeration_type.
8174 (add_partial_structure, new_symbol): Update comments.
8175
8176 2004-03-13 Stephane Carrez <stcarrez@nerim.fr>
8177
8178 * m68hc11-tdep.c (m68hc11_register_name): Get soft reg information.
8179
8180 2004-03-13 Stephane Carrez <stcarrez@nerim.fr>
8181
8182 * tui/tui-win.h (tui_get_cmd_list): Declare.
8183 * tui/tui-win.c (tui_command): New function.
8184 (tui_get_cmd_list): New function.
8185 (_initialize_tui_win): Moved initialization of tui command in
8186 tui_get_cmd_list.
8187
8188 * tui/tui-data.c (init_content_element): Setup new data members.
8189 (init_win_info): Likewise.
8190 (free_content_elements): Free it.
8191 * tui/tui-data.h (struct tui_data_element): Store the register
8192 content to print.
8193 (struct tui_data_info): Keep the current register group.
8194
8195 * tui/tui-layout.c (tui_set_layout): Update call to tui_show_registers.
8196
8197 * tui/tui-regs.h (tui_show_registers): Update prototype.
8198 (tui_toggle_float_regs, tui_calculate_regs_column_count): Remove.
8199 (tui_resize_all): No need to calculate anything for register window.
8200 * tui/tui-regs.c (tui_calculate_regs_column_count): Remove.
8201 (tui_set_register_element, tui_set_general_regs_content): Remove.
8202 (tui_set_special_regs_content): Remove.
8203 (tui_set_general_and_special_regs_content): Remove.
8204 (tui_set_float_regs_content): Remove.
8205 (tui_reg_value_has_changed, tui_get_register_raw_value): Remove.
8206 (tui_set_regs_content): Remove.
8207 (tui_toggle_float_regs, _tui_toggle_float_regs_command): Remove.
8208 (tui_v_show_registers_command_support): Remove.
8209 (tui_show_registers): Use a reggroup to specify the registers to show.
8210 (tui_show_register_group): New function.
8211 (tui_display_registers_from): Compute the layout of register window
8212 and refresh with new API; be sure to delete old register windows.
8213 (tui_check_register_values): Update to use tui_get_register and
8214 tui_display_data.
8215 (tui_display_register): Just refresh the register window part.
8216 (tui_register_format): Format registers and save in tui_data_element.
8217 (tui_get_register): New to combine tui_reg_value_has_changed and
8218 tui_get_register_raw_value; fix to use the new gdb API.
8219 (tui_show_float_command): Renamed tui_reg_float_command.
8220 (tui_show_general_command): Renamed tui_reg_general_command.
8221 (tui_show_special_command): Renamed tui_reg_system_command.
8222 (_initialize_tui_regs): Remove unused commands.
8223
8224 2004-03-13 Mark Kettenis <kettenis@gnu.org>
8225
8226 * NEWS (New native configurations): Mention OpenBSD/amd64.
8227
8228 * config/i386/nm-fbsd.h: Include "config/nm-bsd.h".
8229 (PTRACE_ARG3_TYPE, FETCH_INFERIOR_REGISTERS, ATTACH_DETACH):
8230 Remove defines.
8231 * config/i386/nm-fbsd64.h: Likewise.
8232 * config/i386/nm-obsd.h: Likewise.
8233 * config/sparc/nm-fbsd.h: Likewise. Update copyright year.
8234 * config/alpha/nm-fbsd.h: Likewise. Update copyright year.
8235
8236 2004-03-12 Kevin Buettner <kevinb@redhat.com>
8237
8238 * frv-tdep.c (set_variant_scratch_registers): New function.
8239 * frv-tdep.h (scr0_regnum, scr1_regnum, scr2_regnum, scr3_regnum):
8240 New constants.
8241
8242 From Richard Sandiford <rsandifo@redhat.com>:
8243 * frv-tdep.c (frv_gdbarch_init): Add FR450 support.
8244
8245 2004-03-12 Kevin Buettner <kevinb@redhat.com>
8246
8247 * frv-tdep.c, frv-tdep.h (first_gpr_regnum, sp_regnum, fp_regnum)
8248 (struct_return_regnum, last_gpr_regnum, first_fpr_regnum)
8249 (last_fpr_regnum, pc_regnum, first_spr_regnum, psr_regnum, ccr_regnum)
8250 (cccr_regnum, fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum)
8251 (tbr_regnum, brr_regnum, dbar0_regnum, dbar1_regnum, dbar2_regnum)
8252 (dbar3_regnum, lr_regnum, lcr_regnum, iacc0h_regnum, iacc0l_regnum)
8253 (last_spr_regnum, frv_num_regs, first_pseudo_regnum, iacc0_regnum)
8254 (last_pseudo_regnum, frv_num_pseudo_regs): Move constant (enum)
8255 definitions from frv-tdep.c to frv-tdep.h.
8256
8257 2004-03-12 Kevin Buettner <kevinb@redhat.com>
8258
8259 Add shared library support for FR-V FDPIC ABI:
8260 * Makefile.in (solib-frv.o): Add dependencies.
8261 * frv-tdep.c (find_func_descr, frv_convert_from_func_ptr_addr):
8262 New functions.
8263 (frv_push_dummy_call): Add support for FDPIC ABI.
8264 (frv_gdbarch_init): Call set_gdbarch_convert_from_func_ptr_addr()
8265 for FDPIC ABI.
8266 * frv-tdep.h (frv_fdpic_find_global_pointer): Declare.
8267 (frv_fdpic_find_canonical_descriptor): Declare.
8268 * solib-frv.c: New file.
8269 * config/frv/frv.mt (TDEPFILES): Add solib.o and solib-frv.o.
8270 * config/frv/tm-frv.h (solib.h): Include.
8271
8272 2004-03-12 Kevin Buettner <kevinb@redhat.com>
8273
8274 * Makefile.in (elf_frv_h, frv_tdep_h): Define.
8275 (frv-tdep.o): Update dependencies.
8276 * frv-tdep.h: New file.
8277 * frv-tdep.c (elf-bfd.h, elf/frv.h, osabi.h, frv-tdep.h): Include.
8278 (fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum): New
8279 constants.
8280 (struct gdbarch_tdep): Add new member ``frv_abi''.
8281 (frv_abi, frv_fdpic_loadmap_addresses, set_variant_abi_fdpic): New
8282 functions.
8283 (new_variant): Set ``frv_abi'' field.
8284 (gdb_arch_init): Detect FDPIC executables.
8285
8286 2004-03-12 Mark Kettenis <kettenis@gnu.org>
8287
8288 * solib-svr4.h: Change SOLIB_SVR4 wrapper into SOLIB_SVR4_H
8289 wrapper.
8290
8291 2004-03-11 Andrew Cagney <cagney@redhat.com>
8292
8293 * solib-svr4.h: Add #ifndef SOLIB_SVR4 wrapper.
8294
8295 2004-03-11 Kevin Buettner <kevinb@redhat.com>
8296
8297 * solist.h (master_so_list): New function.
8298 * solib.c (master_so_list): Likewise.
8299 * solib-svr4.c (enable_break): Iterate over so_list entries
8300 obtained from master list instead of entries obtained directly
8301 via svr4_current_sos().
8302
8303 2004-03-10 Ben Elliston <bje@gnu.org>
8304
8305 * MAINTAINERS: Update my mail address.
8306
8307 2004-03-10 Kei Sakamoto <sakamoto.kei@renesas.com>
8308
8309 * remote-m32r-sdi.c: Support hardware watchpoint.
8310
8311 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
8312
8313 * user-regs.c: Update copyright years.
8314 (struct user_regs): Rename to gdb_user_regs.
8315 (append_user_reg, builtin_user_regs, user_regs_init)
8316 (user_reg_add, user_reg_map_name_to_regnum)
8317 (usernum_to_user_reg): Update.
8318
8319 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
8320
8321 * dwarf2read.c (skip_leb128, peek_die_abbrev, skip_one_die)
8322 (skip_children): New functions.
8323 (locate_pdi_sibling): Call skip_children.
8324
8325 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
8326
8327 * arm-tdep.c (arm_use_struct_convention): Look through typedefs.
8328 * gdbtypes.c (check_typedef): Update comments.
8329
8330 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
8331
8332 * dwarf2read.c (struct comp_unit_head): Remove dwarf2_abbrevs array.
8333 (struct dwarf2_cu): Add abbrev_obstack and dwarf2_abbrevs
8334 pointer. Update comment about comp_unit_head.
8335 (struct abbrev_info): Shorten two int flags.
8336 (dwarf_alloc_abbrev): Take a CU argument.
8337 (dwarf2_build_psymtabs_hard): Call dwarf2_free_abbrev_table
8338 each time through the loop. Update cleanup argument.
8339 (psymtab_to_symtab_1): Update cleanup call.
8340 (dwarf2_read_abbrevs, dwarf2_alloc_abbrev): Allocate on the
8341 abbrev_obstack.
8342 (dwarf2_free_abbrev_table): Renamed from dwarf2_empty_abbrev_table.
8343 Just call obstack_free and clear the pointer.
8344
8345 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
8346
8347 * infrun.c (handle_inferior_event): Remove short-circuit code for
8348 events in a different thread.
8349
8350 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
8351
8352 * target.c (debug_to_xfer_memory): If targetdebug is 1, don't
8353 print the whole transfer.
8354 (initialize_targets): Update description of "set debug target".
8355
8356 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
8357
8358 * arm-tdep.c (thumb_get_next_pc): Handle Thumb BLX.
8359
8360 2004-03-08 Nathan J. Williams <nathanw@wasabisystems.com>
8361
8362 * MAINTAINERS (write after approval): Add myself.
8363
8364 2004-03-08 Corinna Vinschen <vinschen@redhat.com>
8365
8366 * sh-tdep.c (sh_print_registers_info): Use for loop.
8367 Don't skip multiple registers when a float register is encountered.
8368
8369 2004-03-08 Corinna Vinschen <vinschen@redhat.com>
8370
8371 Fix PR tdep/1291.
8372 * sh-tdep.c (sh_analyze_prologue): Align PC relative addressing
8373 to official SH documentation.
8374
8375 2004-03-07 Andrew Cagney <cagney@redhat.com>
8376
8377 * ppc-linux-nat.c (ppc_ptrace_cannot_fetch_store_register): Delete
8378 unused function.
8379
8380 2004-03-07 Daniel Jacobowitz <drow@mvista.com>
8381
8382 * arm-tdep.c (thumb_get_next_pc): Handle BX.
8383 (arm_get_next_pc): Handle BX and BLX.
8384
8385 2004-03-07 Andrew Cagney <cagney@redhat.com>
8386
8387 * hppa-tdep.c: Replace DEPRECATED_FP_REGNUM with HPPA_FP_REGNUM,
8388 FP0_REGNUM with HPPA_FP0_REGNUM, and SP_REGNUM with
8389 HPPA_SP_REGNUM.
8390 (hppa_register_raw_size, hppa_register_byte, hppa_read_fp)
8391 (hppa_target_read_fp): Delete.
8392 (hppa_gdbarch_init): Do not set deprecated register_raw_size,
8393 register_virtual_size, max_register_raw_size,
8394 max_register_virtual_size, register_byte, register_size,
8395 target_read_fp, fp_regnum, and register_bytes. Set register_type
8396 instead of register_virtual_type.
8397 (hppa32_register_type, hppa64_register_type): Replace
8398 hppa32_register_virtual_type and hppa64_register_virtual_type.
8399 * config/pa/tm-hppa.h (HPPA_FP0_REGNUM, HPPA_SP_REGNUM)
8400 (HPPA_FP_REGNUM): Define.
8401
8402 * hppa-tdep.c (hppa_gdbarch_init): Add missing "break".
8403
8404 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO)
8405 (pa_do_registers_info): Delete.
8406 * hppa-tdep.c (pa_do_registers_info, pa_do_strcat_registers_info)
8407 (pa_print_registers, pa_print_fp_reg, pa_strcat_registers)
8408 (pa_strcat_fp_reg, pa_register_look_aside): Delete.
8409
8410 * infcall.c (legacy_push_dummy_code): Delete #ifdef
8411 GDB_TARGET_IS_HPPA code.
8412 * config/pa/tm-hppa.h (DEPRECATED_FIX_CALL_DUMMY)
8413 (hppa_fix_call_dummy, DEPRECATED_CALL_DUMMY_HAS_COMPLETED)
8414 (DEPRECATED_DUMMY_WRITE_SP, CALL_DUMMY): Delete.
8415 * config/pa/tm-hppa64.h (CALL_DUMMY): Delete.
8416 * hppa-tdep.c (hppa_frame_chain, hppa_frame_chain_valid)
8417 (hppa_push_dummy_frame, hppa_pop_frame, hppa_push_arguments)
8418 (hppa_fix_call_dummy, hppa64_stack_align, hppa_frame_saved_pc)
8419 (hppa_init_extra_frame_info, hppa_saved_pc_after_call)
8420 (hppa64_call_dummy_breakpoint_offset, hppa_frame_init_saved_regs)
8421 (hppa_frameless_function_invocation, hppa64_store_return_value)
8422 (hppa_store_struct_return, hppa64_extract_return_value)
8423 (hppa64_use_struct_convention, hppa_frame_find_saved_regs)
8424 (hppa32_call_dummy_length, hppa64_call_dummy_length)
8425 (find_dummy_frame_regs, FUNC_LDIL_OFFSET, FUNC_LDO_OFFSET)
8426 (find_proc_framesize, deposit_21, restore_pc_queue)
8427 (find_return_regnum, pc_in_interrupt_handler, deposit_14)
8428 (rp_saved, pc_in_linker_stub): Delete.
8429
8430 Unconditionally enable 64-bit frame and ABI code.
8431 * hppa-tdep.c (hppa_gdbarch_init): Do not set deprecated
8432 call_dummy_breakpoint_offset, call_dummy_length, stack_align,
8433 push_dummy_frame, fix_call_dummy, push_arguments,
8434 call_dummy_location, extract_return_value, use_struct_convention,
8435 store_return_value, store_struct_return, saved_pc_after_call,
8436 init_frame_pc, frame_init_saved_regs, init_extra_frame_info,
8437 frame_chain, frame_chain_valid, frameless_function_invocation,
8438 frame_saved_pc, and pop_frame.
8439
8440 * hppa-tdep.c: Replace PC_REGNUM with PCOQ_HEAD_REGNUM.
8441 (hppa64_return_value, hppa64_push_dummy_call): Rewrite.
8442 (hppa_gdbarch_init): Do not set PC_REGNUM.
8443
8444 2004-03-06 Mark Kettenis <kettenis@gnu.org>
8445
8446 * config/alpha/tm-fbsd.h: Remove file.
8447 * config/alpha/fbsd.mt: Tweak comment.
8448 (TM_FILE): Set to tm-alpha.h.
8449
8450 2004-03-05 Andrew Cagney <cagney@redhat.com>
8451
8452 * infrun.c (step_over_function): When non-legacy code, and no
8453 step_frame_id, use the unwinder to get the caller's frame ID.
8454
8455 2004-03-05 Mark Kettenis <kettenis@gnu.org>
8456
8457 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Register
8458 i386bsd_core_osabi_sniffer for bfd_arch_i386 instead of
8459 bfd_arch_unknown. Adjust comment.
8460
8461 * i386-nat.c: Fix typo in comment. Re-introduce paranoiac.
8462 * i386obsd-tdep.c: Correct spelling in comment.
8463 * i386nbsd-tdep.c: Correct spelling in comment.
8464 * sparc-tdep.c: Correct spelling in comments.
8465
8466 2004-03-05 David Carlton <carlton@kealia.com>
8467
8468 * cp-namespace.c (cp_lookup_transparent_type_loop): Fix recursion
8469 bug.
8470
8471 2004-03-05 Mark Kettenis <kettenis@gnu.org>
8472
8473 * sparc-tdep.c: Fix typo in comment.
8474
8475 2004-03-04 J. Brobecker <brobecker@gnat.com>
8476
8477 * hppa-tdep.c (hppa_frame_cache): Avoid undefined return value.
8478
8479 2004-03-04 Daniel Jacobowitz <drow@mvista.com>
8480
8481 * dwarf2read.c: Add comment describing memory lifetimes.
8482 (struct dwarf2_pinfo): Update comment.
8483 (dwarf2_add_field, dwarf2_add_member_fn, read_structure_scope)
8484 (read_enumeration, new_symbol): Don't use obsavestring.
8485
8486 2004-03-04 Mark Kettenis <kettenis@gnu.org>
8487
8488 * amd64-linux-nat.c (fill_fpregset): Call amd64_colletc_fxsave
8489 instead of amd64_fill_fxsave.
8490 * amd64bsd-nat.c (store_inferior_registers): Likewise.
8491 * amd64fbsd-nat.c (fill_fpregset): Likewise.
8492
8493 * sparc-tdep.c (sparc_frame_cache): Don't bail out if %fp is zero.
8494 Reorganize code a bit.
8495
8496 2004-03-04 Orjan Friberg <orjanf@axis.com>
8497
8498 * cris-tdep.c (cris_scan_prologue): Save the frame pointer's offset
8499 when the frame pointer is pushed. Don't set the frame pointer's
8500 address on the stack unless it's actually located there.
8501 Set the SRP's address on the stack correctly when the PC is still in
8502 the prologue.
8503 (cris_return_value): New function.
8504 (cris_gdbarch_init): Clear deprecated store_return_value,
8505 extract_return_value.
8506
8507 2004-03-02 Jim Blandy <jimb@redhat.com>
8508
8509 * stabsread.c (reg_value_complaint): The maximum register number
8510 is one less than the number of registers.
8511
8512 2004-03-02 Andrew Cagney <cagney@redhat.com>
8513
8514 * i386-tdep.h (enum i386_regnum): Add I386_DS_REGNUM,
8515 I386_ES_REGNUM, I386_FS_REGNUM, and I386_GS_REGNUM. Remove
8516 trailing comma and redundant assignment of I386_ST0_REGNUM.
8517 * amd64-nat.c (amd64_collect_native_gregset): Zero-extend the
8518 32-bit segment registers.
8519
8520 2004-03-01 Andrew Cagney <cagney@redhat.com>
8521
8522 * rs6000-tdep.c (rs6000_init_frame_pc_first): Fix compiler error,
8523 use frame_relative_level and get_next_frame.
8524
8525 2004-02-29 Andrew Cagney <cagney@redhat.com>
8526
8527 * rs6000-tdep.c (rs6000_init_frame_pc_first): New function.
8528 (rs6000_gdbarch_init): Set deprecated_init_frame_pc_first.
8529 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST):
8530 Delete macro.
8531
8532 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
8533
8534 * inflow.c (terminal_inferior): Don't give up the terminal if we
8535 previously couldn't get the inferior's terminal state.
8536
8537 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
8538
8539 * regcache.c (read_pc_pid): Restore inferior_ptid after reading
8540 PC_REGNUM.
8541
8542 2004-02-28 Andrew Cagney <cagney@redhat.com>
8543
8544 * NEWS: Refer to GDB 6.1.
8545 * README: Refer to GDB 6.1.
8546 * PROBLEMS: Refer to GDB 6.1.
8547
8548 2004-02-28 Daniel Jacobowitz <drow@mvista.com>
8549
8550 * thread-db.c (disable_thread_signals): Remove unused function.
8551
8552 2004-02-28 Mark Kettenis <kettenis@gnu.org>
8553
8554 * amd64-nat.c: Include "gdb_string.h".
8555 (amd64_collect_native_gregset): Zero-extend the 32-bit
8556 general-purpose registers and %eip.
8557
8558 * amd64-tdep.h: (amd64_collect_fxsave): New prototype.
8559 * amd64-tdep.c (amd64_collect_fxsave): New function.
8560 (amd64_fill_fxsave): Simply call amd64_collect_fxsave.
8561
8562 * i387-tdep.h: Update copyright year.
8563 (i387_collect_fxsave): New prototype.
8564 * i387-tdep.c: Update copyright year.
8565 (i387_collect_fxsave): New function containing most of the code
8566 from i387_fill_fxsave.
8567 (i387_fill_fxsave): Call i387_collect_fxsave.
8568
8569 2004-02-28 Andrew Cagney <cagney@redhat.com>
8570
8571 * amd64-linux-nat.c (ps_get_thread_area): When architecture is
8572 i386 use PTRACE_GET_THREAD_AREA. Suggested by Roland McGrath.
8573
8574 2004-02-28 Mark Kettenis <kettenis@gnu.org>
8575
8576 * amd64-tdep.c (amd64_frame_cache): Fix comment.
8577
8578 2004-02-28 Andrew Cagney <cagney@redhat.com>
8579
8580 * utils.c: Use "", instead of <>, to include readline.
8581 tui/tui-win.c, tui/tui.c, tui/tui-hooks.c: Ditto.
8582 * tracepoint.c, top.c, symmisc.c, symfile.c: Ditto.
8583 * source.c, solib.c, exec.c, event-top.c: Ditto.
8584 * corelow.c, completer.c, cli/cli-setshow.c: Ditto.
8585 * cli/cli-dump.c, cli/cli-cmds.c: Ditto.
8586 * Makefile.in: Update all dependencies.
8587 (readline_tilde_h, readline_history_h): Define.
8588 (readline_headers): Delete.
8589
8590 2004-02-28 Mark Kettenis <kettenis@gnu.org>
8591
8592 * config/djgpp/fnchange.lst: Rename "config/i386/nm-linux64.h" to
8593 "config/i386/nm-lx64.h" and "config/i386/tm-linux64.h" to
8594 "config/i386/tm-lx64.h".
8595
8596 * config/djgpp/fnchange.lst: Rename "amd64-linux-tdep.c" to
8597 "amd64-ltdep.c" and "amd64-linux-nat.c" to "amd64-lnat.c". Remove
8598 rules for "x86-64-linux-tdep.c" and "x86-64-linux-nat.c".
8599
8600 2004-02-28 Andrew Cagney <cagney@redhat.com>
8601
8602 * dwarf2-frame.h (struct gdbarch): Add opaque declaration.
8603
8604 * breakpoint.c (_initialize_breakpoint): Use
8605 "add_setshow_auto_boolean_cmd. Better word-wrap help messages.
8606 Add help to show command.
8607
8608 2004-02-28 Mark Kettenis <kettenis@gnu.org>
8609
8610 * i386-nat.c: Reformat to be closer to coding standards.
8611 (i386_handle_nonaligned_watchpoint): Rename local variable `rv' to
8612 `retval'. Make variables `align' and `size' local to while-loop.
8613 (i386_stopped_data_address): Rename local variable `ret' to `addr'.
8614 (_initialize_i386_nat): New prototype.
8615
8616 * tui/tui.c: Include <readline/readline.h> instead of
8617 "readline/readline.h". Include it after <term.h> and
8618 "gdb_curses.h".
8619
8620 2004-02-27 Andrew Cagney <cagney@redhat.com>
8621
8622 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always use
8623 the new frame unwind code.
8624 (hppa_frame_cache): Use PCOQ_HEAD_REGNUM instead of PC_REGNUM.
8625 (hppa_frame_prev_register): Compute PCOQ_TAIL_REGNUM from
8626 PCOQ_HEAD_REGNUM.
8627
8628 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always
8629 "return_value" and "push_dummy_call".
8630 (hppa32_use_struct_convention): Delete unused function.
8631 (hppa32_store_return_value): Delete unused function.
8632 (hppa32_extract_return_value): Delete unused function.
8633 (hppa32_stack_align): Delete function.
8634
8635 2004-02-27 Eli Zaretskii <eliz@elta.co.il>
8636
8637 * coffread.c (enter_linenos): Don't let rawptr reference memory
8638 outside linetab[]'s limits.
8639
8640 2004-02-27 Andrew Cagney <cagney@redhat.com>
8641
8642 * hppa-tdep.c (hppa32_push_dummy_call): Fix code reserving
8643 inferior stack space - the stack needs to grow upwards.
8644 (hppa32_frame_align): New function.
8645 (hppa64_frame_align): Replace hppa_frame_align.
8646 (hppa_gdbarch_init): Update.
8647
8648 2004-02-26 Orjan Friberg <orjanf@axis.com>
8649
8650 * cris-tdep.c (frame_unwind.h, frame-base.h, trad-frame.h)
8651 (dwarf2-frame.h): Include.
8652 (enum cris_regnums): New enum CRIS_FP_REGNUM.
8653 Remove static variables related to ABI setting.
8654 (struct gdbarch_tdep): Remove cris_abi member.
8655 (struct frame_extra_info): Remove.
8656 (cris_unwind_cache, stack_item): New structs.
8657 (cris_frame_unwind, cris_frame_base): New variables.
8658 (push_stack_item, pop_stack_item)
8659 (cris_frame_unwind_cache, cris_frame_this_id)
8660 (cris_frame_prev_register, cris_unwind_dummy_id, cris_frame_align)
8661 (cris_push_dummy_code, cris_push_dummy_call, cris_frame_sniffer)
8662 (cris_frame_base_address, cris_scan_prologue, cris_unwind_pc)
8663 (cris_unwind_sp, cris_store_return_value, cris_extract_return_value)
8664 (cris_reg_struct_has_addr): New functions.
8665 (cris_examine, cris_frame_init_saved_regs, cris_frame_chain)
8666 (cris_frame_saved_pc, cris_saved_pc_after_call,
8667 (cris_store_struct_return, cris_frameless_function_invocation)
8668 (cris_pop_frame, cris_skip_prologue_main)
8669 (cris_abi_original_store_return_value)
8670 (cris_abi_v2_store_return_value)
8671 (cris_abi_original_extract_return_value)
8672 (cris_abi_v2_extract_return_value)
8673 (cris_abi_original_reg_struct_has_addr)
8674 (cris_abi_v2_reg_struct_has_addr)
8675 (cris_abi_original_push_arguments, cris_abi_v2_push_arguments)
8676 (cris_push_return_address, cris_abi_update): Remove.
8677 (_initialize_cris_tdep): Remove ABI command.
8678 (cris_dump_tdep): Ditto.
8679 (cris_gdbarch_init): Remove ABI command.
8680 Set store_return_value, extract_return_value, push_dummy_code,
8681 push_dummy_call, frame_align, unwind_pc, unwind_sp, unwind_dummy_id,
8682 frame_unwind_append_sniffer, frame_base_set_default.
8683 Clear deprecated init_frame_pc, push_arguments, store_return_value,
8684 extract_return_value, fp_regnum, pc_in_call_dummy, call_dummy_words,
8685 sizeof_call_dummy_words, get_saved_register, push_return_address,
8686 pop_frame, store_struct_return, frame_init_saved_regs,
8687 init_extra_frame_info, frameless_function_invocation, frame_chain,
8688 frame_saved_pc, saved_pc_after_call, save_dummy_frame_tos,
8689 dummy_write_sp.
8690
8691 2004-02-26 Jeff Johnston <jjohnstn@redhat.com>
8692
8693 * valprint.h (print_hex_chars, print_char_chars): New prototypes.
8694 * valprint.c (print_hex_chars): Change from static to external.
8695 (print_char_chars): New function.
8696 * printcmd.c (print_scalar_formatted): For integer and enum types
8697 that are longer than LONGEST, perform processing via appropriate
8698 print_*_chars routines.
8699
8700 2004-02-26 Andrew Cagney <cagney@redhat.com>
8701
8702 * Makefile.in: Update dependencies.
8703 Changes from Ulrich Weigand,
8704 * s390-tdep.c: Include "dwarf2-frame.h".
8705 (s390_dwarf2_frame_init_reg): New function.
8706 (s390_gdbarch_init): Install dwarf2_frame_sniffer and
8707 dwarf2_frame_base_sniffer. Call dwarf2_frame_set_init_reg.
8708
8709 2004-02-26 Jeff Johnston <jjohnstn@redhat.com>
8710
8711 * breakpoint.c (pending_break_support): New setting variable.
8712 (break_command_1): Account for pending_break_support setting
8713 when creating pending breakpoints.
8714 (set_breakpoint_cmd, show_breakpoint_cmd): New functions.
8715 (_initialize_breakpoint): Add "set breakpoint pending" and
8716 "show breakpoint pending" commands.
8717
8718 2004-02-26 Andrew Cagney <cagney@redhat.com>
8719
8720 Fix PR i18n/1570.
8721 * charset.c (backslashable, backslashed, represented): Remove 'e'
8722 from list of escaped characters, not part of ISO-C.
8723
8724 2004-02-25 J. Brobecker <brobecker@gnat.com>
8725
8726 From Peter Schauer <schauer@pdf.de>:
8727 * tui/tui.c: Move system header includes after local includes.
8728 Fixes a build failure on solaris systems.
8729
8730 2004-02-25 J. Brobecker <brobecker@gnat.com>
8731
8732 * configure.in: Refine the previous change.
8733 * configure: Regenerate.
8734
8735 2004-02-25 Mark Kettenis <kettenis@gnu.org>
8736
8737 * amd64-tdep.h: Renamed from x86-64-tdep.h.
8738 * amd64-tdep.c: Renamed from x86-64-tdep.c. Include
8739 "amd64-tdep.h" instead of "x86-64-tdep.h".
8740 * amd64-nat.c: Include "amd64-tdep.h" instead of "x86-64-tdep.h".
8741 * amd64-linux-tdep.h: Renamed from x86-64-linux.h.
8742 * amd64-linux-tdep.c: Renamed from x86-64-linux-tdep.c. Include
8743 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
8744 and "x86-64-tdep.c".
8745 * amd64-linux-nat.c: Renamed from x86-64-linux-nat.c. Include
8746 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
8747 and "x86-64-tdep.c".
8748 * amd64bsd-nat.c: Update copyright year.
8749 Include "amd64-tdep.h" instead of "x86-64-tdep.h".
8750 * amd64fbsd-tdep.c: Include "amd64-tdep.h" instead of
8751 "x86-64-tdep.h".
8752 * amd64fbsd-nat.c: Include "amd64-tdep.h" instead of
8753 "x86-64-tdep.h".
8754 * amd64nbsd-tdep.c: Include "amd64-tdep.h" instead of
8755 "x86-64-tdep.h".
8756 * amd64nbsd-nat.c: Include "amd64-tdep.h" instead of
8757 "x86-64-tdep.h".
8758 * amd64obsd-tdep.c: Include "amd64-tdep.h" instead of
8759 "x86-64-tdep.h".
8760 * amd64obsd-nat.c: Include "amd64-tdep.h" instead of
8761 "x86-64-tdep.h".
8762 * configure.host: (x86_64-*-linux*): Set gdb_target to linux64.
8763 * configure.tgt (x86_64-*-linux*): Set gdb_target to linux64.
8764 * Makefile.in (amd64_linux_tdep_h): Renamed from
8765 x86_64_linux_tdep_h.
8766 (amd64_tdep_h): Renamed from x86_64_tdep_h.
8767 (amd64bsd-nat.o, amd64fbsd-nat.o, amd64fbsd-tdep.o, amd64-nat.o)
8768 (amd64nbsd-nat.o, amd64nbsd-tdep.o, amd64obsd-nat.o)
8769 (amd64obsd-tdep.o): Update dependencies.
8770 (amd64-tdep.o, amd64-linux-nat.o, amd64-linux-tdep.o): New
8771 dependencies.
8772 (x86-64-linux-nat.o, x86-64-linux-tdep.o, x86-64-tdep.o): Remove
8773 dependencies.
8774 (ALLDEPFILES): Add amd64-tdep.c, amd64obsd-nat.c, amd64obsd-nat.c,
8775 amd64-linux-nat.c amd64-linux-tdep.c.
8776 * config/i386/tm-linux64.h: Renamed from tm-x86-64linux.h
8777 * config/i386/nm-linux64.h: Renamed from nm-x86-64linux.h.
8778 * config/i386/linux64.mt: Renamed from x86-64linux.mt.
8779 (TDEPFILES): Replace x86-64-tdep.o and x86-64-linux-tdep.o with
8780 amd64-tdep.o and amd64-linux-tdep.o.
8781 (TM_FILE): Set to tm-linux64.h.
8782 * config/i386/linux64.mh: Renamed from x86-64linux.mh.
8783 (NAT_FILE): Set to nm-linux64.h.
8784 (NATDEPFILES): Replace x86-64-linux-nat.o with amd64-linux-nat.o.
8785 * config/i386/fbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
8786 amd64-tdep.o.
8787 * config/i386/nbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
8788 amd64-tdep.o.
8789 * config/i386/obsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
8790 amd64-tdep.o.
8791
8792 2004-02-25 Roland McGrath <roland@redhat.com>
8793
8794 * remote.c (remote_protocol_qPart_auxv): New variable.
8795 (init_all_packet_configs): Initialize it.
8796 (set_remote_protocol_qPart_auxv_packet_cmd): New function.
8797 (show_remote_protocol_qPart_auxv_packet_cmd): New function.
8798 (show_remote_cmd): Call it.
8799 (_initialize_remote): Initialize commands.
8800 (remote_xfer_partial): If enabled, use qPart:auxv:read:... query to
8801 service TARGET_OBJECT_AUXV requests.
8802
8803 2004-02-25 J. Brobecker <brobecker@gnat.com>
8804
8805 * configure.in: Make sure that the wborder function is available.
8806 Otherwise, search for it in the cur_colr library.
8807 * configure: Regenerate.
8808
8809 2004-02-25 Andrew Cagney <cagney@redhat.com>
8810
8811 * hppa-tdep.c (hppa32_push_dummy_call): Rewrite.
8812
8813 2004-02-25 Mark Kettenis <kettenis@gnu.org>
8814
8815 * config/i386/tm-x86-64linux.h: Tweak comments.
8816
8817 2004-02-25 Richard Sandiford <rsandifo@redhat.com>
8818
8819 * MAINTAINERS: Add self to write-after-approval list.
8820
8821 2004-02-25 Andrew Cagney <cagney@redhat.com>
8822
8823 PR cli/1566. Problem found, and fix suggested by David Allan.
8824 * cli/cli-script.c (execute_control_command): Unconditionally
8825 install a cleanup. Default "ret" to "invalid_control". Use
8826 "break" instead of "return" to escape from the switch.
8827
8828 2004-02-24 J. Brobecker <brobecker@gnat.com>
8829
8830 * tui/tui-disasm.c: %s/lines/asm_lines/g to avoid a collision
8831 with the lines macro defined in term.h on AiX.
8832 * tui/tui-regs.c: %s/label_width/tui_label_width/g, to avoid
8833 a collision with the label_width macro defined in term.h on AiX.
8834
8835 2004-02-23 David Mosberger <davidm@hpl.hp.com>
8836
8837 Committed by Kevin Buettner <kevinb@redhat.com>.
8838
8839 * ia64-tdep.h (ia64_write_pc, ia64_linux_write_pc): Declare.
8840 * ia64-tdep.c (ia64_write_pc): Make it a global function.
8841 (ia64_gdbarch_init): For Linux targets, use ia64_linux_write_pc()
8842 instead of ia64_write_pc().
8843 * ia64-linux-tdep.c (regcache.h): Include.
8844 (ia64_linux_write_pc): New function.
8845
8846 2004-02-23 Roland McGrath <roland@redhat.com>
8847
8848 * auxv.c (info_auxv_command): Fix typos in error messages.
8849
8850 2004-02-23 Mark Kettenis <kettenis@gnu.org>
8851
8852 * x86-64-tdep.h: Tweak comment.
8853 (enum amd64_regnum): New.
8854 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM)
8855 (X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM)
8856 (X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM)
8857 (X86_64_XMM1_REGNUM): Removed.
8858 (AMD64_NUM_GREGS): Renamed from X86_64_NUM_GREGS.
8859 (amd64_init_abi, amd64_supply_fxsave, amd64_fill_fxsave): Adjust
8860 prototypes for renamed functions.
8861 * x86-64-tdep.c: Fix typo.
8862 (amd64_dwarf_regmap): Use constants from `enum amd64_regnum' for
8863 register numbers.
8864 (amd64_return_value, amd64_push_arguments, amd64_push_dummy_call):
8865 Use constants from `enum amd64_regnum' for register numbers.
8866 (AMD64_NUM_SAVED_REGS): Adjust for renamed macros.
8867 (amd64_analyze_prologue, amd64_frame_cache,
8868 amd64_sigtramp_frame_cache): Use constants from `enum
8869 amd64_regnum' for register numbers.
8870 (amd64_supply_fpregset): Adjust for renamed functions.
8871 (amd64_init_abi): Rename from x86_64_init_abi. Use constants from
8872 `enum amd64_regnum' for register numbers.
8873 (I387_ST0_REGNUM): Use constant from `enum amd64_regnum'.
8874 (amd64_supply_fxsave): Rename from x86_64_supply_fxsave.
8875 (amd64_fill_fxsave): Rename fro x86_64_fill_fxsave.
8876 * x86-64-linux-tdep.c (amd64_linux_supply_gregset)
8877 (amd64_linux_fill_gregset): Adjust for renamed macros.
8878 (fetch_core_registers): Adjust for renamed functions.
8879 (amd64_linux_init_abi): Adjust for renamed functions.
8880 * x86-64-linux-nat.c (supply_gregset, fill_gregset): Adjust for
8881 renamed functions.
8882 * amd64-nat.c: Adjust for renamed macros.
8883 * amd64bsd-nat.c (fetch_inferior_registers)
8884 (store_inferior_registers): Use constants from `enum amd64_regnum'
8885 for register numbers. Adjust for renamed variables.
8886 * amd64fbsd-nat.c (supply_gregset, fill_gregset): Adjust for
8887 renamed variables.
8888 (_initialize_amd64fbsd_nat): Use constants from `enum
8889 amd64_regnum' for register numbers.
8890 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use constants from
8891 `enum amd64_regnum' for register numbers.
8892 (amd64fbsd_init_abi): Adjust for renamed functions.
8893 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Use constants from
8894 `enum amd64_regnum' for register numbers.
8895 (amd64nbsd_init_abi): Adjust for renamed functions.
8896 (_initialize_amd64nbsd_ndep): Adjust for renamed macros.
8897 * amd64obsd-tdep.c (amd64obsd_sigcontext_addr): Use constants from
8898 `enum amd64_regnum' for register numbers.
8899 (amd64obsd_init_abi): Adjust for renamed functions.
8900 (_initialize_amd64obsd_ndep): Adjust for renamed macros.
8901
8902 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
8903
8904 * breakpoint.c (print_one_breakpoint): Do not output spaces
8905 after printing <PENDING> for a pending breakpoint.
8906
8907 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
8908
8909 * printcmd.c (print_scalar_formatted): Initialize val_long
8910 to remove compiler warning message.
8911
8912 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
8913
8914 * defs.h (nquery, yquery): New prototypes.
8915 * breakpoint.c (break_command_1): Use new nquery interface.
8916 * utils.c (defaulted_query, nquery, yquery): New functions.
8917
8918 2004-02-23 Andrew Cagney <cagney@redhat.com>
8919
8920 * hppa-tdep.c (hppa_frame_align): New function.
8921 (hppa32_push_dummy_call): New function.
8922 (hppa64_push_dummy_call): New function.
8923 (hppa_gdbarch_init): Set frame_align and push_dummy_call; keep
8924 disabled.
8925
8926 * infcall.c (legacy_push_dummy_code): Don't call deprecated
8927 FIX_CALL_DUMMY when push_dummy_call is available.
8928 (call_function_by_hand, push_dummy_code): Ditto.
8929
8930 2004-02-22 Andrew Cagney <cagney@redhat.com>
8931
8932 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Delete macro.
8933 (DEPRECATED_PC_IN_CALL_DUMMY): Delete macro.
8934 (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete macro.
8935 * hppa-tdep.c (hppa_gdbarch_init): Clear deprecated
8936 use_generic_dummy_frames, set deprecated pc_in_call_dummy, set
8937 call_dummy_location to ON_STACK.
8938
8939 2004-02-22 Mark Kettenis <kettenis@gnu.org>
8940
8941 * x86-64-linux-tdep.c: Tweak comment.
8942 (amd64_linux_supply_gregset): Renamed from
8943 x86_64_linux_supply_gresget.
8944 (amd64_linux_fill_gregset): Renamed from
8945 x86_64_linux_fill_gregset.
8946 (fetch_core_registers): Adjust for renamed functions.
8947 (amd64_core_fns): Renamed from x86_64_core_fns.
8948 (amd64_linux_sigtramp_start): Renamed from
8949 x86_64_linux_sigtramp_start.
8950 (amd64_linux_pc_in_sigtramp): Renamed from
8951 x86_64_linux_pc_in_sigtramp. Adjust for renamed functions.
8952 (AMD64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Renamed from
8953 X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET.
8954 (amd64_linux_sigcontext_addr): Renamed from
8955 x86_64_linux_sigcontext_addr.
8956 (amd64_linux_sc_reg_offset): Renamed from
8957 x86_64_linux_sc_reg_offset.
8958 (amd64_linux_init_abi): Renamed from x86_64_linux_init_abi.
8959 Adjust for renamed functions and variables.
8960 (_initialize_amd64_linux_tdep): Renamed from
8961 _initialize_x86_64_linux_tdep. Adjust for renamed functions and
8962 variables.
8963 * x86-64-linux-tdep.h: Update copyright year. Tweak comment.
8964 Adjust for renamed functions.
8965
8966 * x86-64-linux-nat.c (amd64_linux_gregset64_reg_offset): Rename
8967 from x86_64_linux_gregset64_reg_offset.
8968 (amd64_linux_gregset32_reg_offset): Rename from
8969 x86_64_linux_gregset64_reg_offset.
8970 (amd64_linux_dr_get): Renamed from x86_64_linux_dr_get.
8971 (amd64_linux_dr_set): Renamed from x86_64_linux_dr_set.
8972 (amd64_linux_dr_set_control): Renamed from
8973 x86_64_linux_dr_set_control. Adjust for renamed functions.
8974 (amd64_linux_dr_set_addr): Renamed from x86_64_linux_dr_set_addr.
8975 Adjust for renamed functions.
8976 (amd64_linux_dr_reset_addr): Renamed from
8977 x86_64_linux_dr_reset_addr. Adjust for renamed functions.
8978 (amd64_linux_dr_get_status): Renamed from
8979 x86_64_linux_dr_get_status. Adjust for renamed functions.
8980 (_initialize_amd64_linux_nat): Renamed from
8981 _initialize_x86_64_linux_nat. Adjust for renamed variables and
8982 functions.
8983 * config/i386/nm-x86-64linux.h: Update copyright year.
8984 Adjust for renamed functions.
8985
8986 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_start_addr): Renamed from
8987 amd64fbsd_sigtramp_start.
8988 (amd64fbsd_sigtramp_end_addr): Renamed from
8989 amd64fbsd_sigtramp_end.
8990 (amd64fbsd_init_abi): Adjust for renamed variables.
8991 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Adjust for renamed
8992 variables.
8993 * x86-64-tdep.h (amd64fbsd_sigtramp_start_addr): Renamed from
8994 amd64fbsd_sigtramp_start.
8995 (amd64fbsd_sigtramp_end_addr): Renamed from
8996 amd64fbsd_sigtramp_end.
8997
8998 2004-02-22 Andrew Cagney <cagney@redhat.com>
8999
9000 * hppa-tdep.c (hppa32_return_value): New function.
9001 (hppa64_return_value): New function.
9002 (hppa_gdbarch_init): Set return_value; keep disabled.
9003
9004 * hppa-tdep.c (hppa_gdbarch_init): Re-order separating
9005 struct-return and inferior function call methods.
9006
9007 * hppa-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
9008 "frame-base.h".
9009 (struct hppa_frame_cache): Define.
9010 (hppa_frame_cache, hppa_frame_this_id): New functions.
9011 (hppa_frame_prev_register): New function.
9012 (hppa_frame_unwind, hppa_frame_base): New variables.
9013 (hppa_frame_unwind_sniffer): New function.
9014 (hppa_frame_base_address, hppa_unwind_pc): New function.
9015 (hppa_gdbarch_init): Set unwind_dummy_id, unwind_pc, frame unwind
9016 sniffer, and frame base sniffer; keep disabled.
9017 (hppa_frame_base_sniffer, hppa_unwind_dummy_id): New functions.
9018 * Makefile.in: Update dependencies, fix s/nbsd/obsd/ typo.
9019
9020 * frame-unwind.c (frame_unwind_find_by_frame): Add legacy_frame_p
9021 to predicates for "seriously old code".
9022
9023 * hppa-tdep.c (hppa_gdbarch_init): Convert compile time #if0s into
9024 runtime if(0).
9025
9026 * hppa-tdep.c (hppa_breakpoint_from_pc): Make "breakpoint"
9027 unsigned.
9028 (hppa_frame_find_saved_regs): Fix "std" instruction pattern
9029
9030 * config/pa/tm-hppa.h: Update copyright.
9031 (DEPRECATED_INIT_FRAME_PC): Delete macro.
9032 (deprecated_init_frame_pc_default): Delete declaration.
9033 (hppa_frame_init_saved_regs): Delete declaration.
9034 (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
9035 * hppa-tdep.c: Include "arch-utils.h".
9036 (hppa_gdbarch_init): Set deprecated init_frame_pc
9037 and deprecated frame_init_saved_regs.
9038 (hppa_frame_init_saved_regs): Make static.
9039
9040 2004-02-22 Mark Kettenis <kettenis@gnu.org>
9041
9042 Remove old 386BSD support.
9043 * NEWS (REMOVED configurations and files): Add i[3456]86-*-bsd*.
9044 * configure.host: Remove i[34567]86-*-bsd*.
9045 * configure.tgt: Remove i[34567]86-*-bsd*.
9046 * i386b-nat.c: Removed.
9047 * Makefile.in (ALLDEPFILES): Remove i386b-nat.c.
9048 (i386b-nat.o): Remove dependencies.
9049
9050 * config/i386/i386bsd.mh: Removed.
9051 * config/i386/i386bsd.mt: Removed.
9052 * config/i386/nm-i386bsd.h: Removed.
9053 * config/i386/tm-i386bsd.h: Removed.
9054 * config/i386/xm-i386bsd.h: Removed.
9055
9056 * x86-64-tdep.h (amd64obsd_r_reg_offset): New extern declaration.
9057
9058 * amd64fbsd-tdep.c: Include "solib-svr4.h".
9059 (amd64fbsd_init_abi): Set link map offsets.
9060 * amd64nbsd-tdep.c: Include "slib-svr4.h".
9061 (amd64nbsd_init_abi): Set link map offsets.
9062 * amd64obsd-tdep.c: Include "solib-svr4.h".
9063 (amd64obsd_init_abi): Set link map offsets.
9064 * i386fbsd-tdep.c: Include "solib-svr4.h".
9065 (i386fbsd_init_abi): Set link map offsets.
9066 * i386nbsd-tdep.c: Include "solib-svr4.h".
9067 (i386nbsdelf_init_abi): Set link map offsets.
9068 * Makefile.in (amd64fbsd-tdep.o, amd64nbsd-tdep.o)
9069 (amd64obsd-tdep.o, i386fbsd-tdep.o): Update dependencies.
9070 * config/i386/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o,
9071 solib-legacy.o and core-aout.o. Reformat.
9072 * config/i386/fbsd64.mh (NATDEPFILES): Remove solib.o,
9073 solib-svr4.o, solib-legacy.o. Reformat.
9074 * config/i386/nbsdaout.mh (NATDEPFILES): Add solib.o. Reformat.
9075 * config/i386/nbsdelf.mh: Reformat.
9076 * config/i386/nbsd64.mh (NATDEPFILES): Remove solib.o,
9077 solib-svr4.o, solib-legacy.o and corelow.o.
9078 * config/i386/obsd.mh, config/i386/obsdaout.mh: Reformat.
9079 * config/i386/obsd64.mh (NATDEPFILES): Remove solib.o,
9080 solib-svr4.o, solib-legacy.o and corelow.o. Reformat.
9081 * config/i386/fbsd.mt (TDEPFILES): Add solib.o, solib-svr4.o.
9082 * config/i386/fbsd64.mt (TDEPFILES): Add solib.o, solib-svr4.o.
9083 (TM_FILE): Set to tm-fbsd.h.
9084 * config/i386/nbsd.mt (TDEPFILES): Reformat.
9085 * config/i386/nbsd64.mt (TDEPFILES): Add corelow.o, solib.o and
9086 solib-svr4.o.
9087 * config/i386/obsd.mt (TDEPFILES): Add corelow.o, solib.o and
9088 solib-svr4.o.
9089 (TM_FILE): Set to nm-nbsd.h.
9090 * config/i386/nm-fbsd.h: Update copyright year. Tweak comments.
9091 Simplify shared library support. Don't include "elf/common.h".
9092 (SVR4_SHARED_LIBS): Don't define.
9093 * config/i386/nm-fbsd64.h: Update copyright year. Don't include
9094 "solib.h".
9095 * config/i386/nm-nbsd.h, config/i386/nm-nbsdaout.h,
9096 config/i386/nm-obsd.h: Update copyright year. Tweak comments.
9097 * config/i386/tm-fbsd.h: Update copyright tear. Tweak comments.
9098 Don't include "i386/tm-i386.h". Include "solib.h".
9099 * config/i386/tm-nbsd.h: Update copyright year. Tweak comments.
9100 Don't include "i386/tm-i386.h".
9101 * config/i386/xm-i386.h: Update copyright year. Tweak comments.
9102 * config/i386/xm-nbsd.h: Update copyright year. Tweak comments.
9103 Include "i386/xm-i386.h".
9104 (HOST_LONG_DOUBLE_FORMAT): Remove.
9105
9106 Fix OpenBSD/i386 sigtramp recognition.
9107 * i386-tdep.h: Update copyright year.
9108 (i386bsd_pc_in_sigtramp, i386bsd_sigtramp_start)
9109 (i386bsd_sigtramp_end): New prototypes.
9110 (i386fbsd_sigtramp_start_addr): Renamed from
9111 i386fbsd_sigtramp_start.
9112 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
9113 (i386obsd_sigtramp_start_addr): Renamed from
9114 i386obsd_sigtramp_start.
9115 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
9116 * i386bsd-tdep.c: Update copyright year.
9117 (i386bsd_pc_in_sigtramp): Make public.
9118 * i386fbsd-nat.c: Update copyright year.
9119 (_initialize_i386fbsd_nat): Adjust for renamed variables.
9120 * i386fbsd-tdep.c: Update copyright year.
9121 (i386fbsd_sigtramp_start_addr): Renamed from
9122 i386fbsd_sigtramp_start.
9123 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
9124 (i386fbsdaout_init_abi): Adjust for renamed variables.
9125 * i386obsd-nat.c: Update copyright year.
9126 (_initialize_i386obsd_nat): Adjust for renamed variables.
9127 * i386obsd-tdep.c: Include "target.h".
9128 (i386obsd_page_size): New variable.
9129 (i386obsd_pc_in_sigtramp, i386obsd_sigtramp_start)
9130 (i386obsd_sigtramp_end): New functions.
9131 (i386obsd_sigtramp_start_addr): Renamed from
9132 i386obsd_sigtramp_start.
9133 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
9134 (i386obsd_init_abi): Adjust for renamed variables. Set
9135 pc_in_sigtramp, sigtramp_start and sigtramp_end.
9136 * Makefile.in (i386obsd-tdep.o): Update dependencies.
9137
9138 * amd64obsd-tdep.c (amd64obsd_pc_in_sigtramp): Adjust for signal
9139 trampoline change in OpenBSD kernel.
9140
9141 * amd64-nat.c: Update copyright year.
9142 (amd64_supply_native_gregset, amd64_collect_native_gregset): Use
9143 architecture from REGCACHE.
9144
9145 * x86-64-linux-nat.c (x86_64_linux_gregset32_reg_offset): Use
9146 symbolic constants from <sys/reg.h> instead of hard-coded numbers.
9147
9148 2004-02-21 Mark Kettenis <kettenis@gnu.org>
9149
9150 * configure.host: Add i[34567]86-*-openbsd[0-2].* and
9151 i[34567]86-*-openbsd3.[0-3].
9152 * config/i386/obsdaout.mh: New file.
9153
9154 * config/i386/obsd.mh (MH_FLAGS): Remove.
9155
9156 Fix PR build/1549.
9157 * i386obsd-tdep.c: Update copyright years. Include
9158 "solib-svr4.h".
9159 (i386obsd_init_abi): Don't set regset_from_core_section here.
9160 (i386obsd_aout_init_abi): New function. Set
9161 regset_from_core_section here.
9162 (i386obsd_elf_init_abi): New function.
9163 (_initialize_i386obsd_tdep): Register OS/ABI for OpenBSD ELF.
9164 * Makefile.in (i386obsd-tdep.o): Update dependecies.
9165 * config/i386/obsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
9166 (TM_FILE): Set to tm-nbsd.h.
9167
9168 * config/i386/obsd.mh (NATDEPFILES): Remove solib.o and
9169 solib-sunos.o.
9170
9171 * solib-svr4.h: Update copyright year.
9172 (svr4_ilp32_fetch_link_map_offsets)
9173 (svr4_lp64_fetch_link_map_offsets): New prototype.
9174 * solib-svr4.c: Update copyright year.
9175 (svr4_ilp32_fetch_link_map_offsets)
9176 (svr4_lp64_fetch_link_map_offsets): New function.
9177
9178 2004-02-20 Daniel Jacobowitz <drow@mvista.com>
9179
9180 * dwarf2read.c (add_partial_symbol): Fix typo in adding enumerators
9181 to the partial symbol table.
9182
9183 2004-02-20 J. brobecker <brobecker@gnat.com>
9184
9185 * PROBLEMS: Add description of problem documented under gdb/1560.
9186
9187 2004-02-20 Mark Kettenis <kettenis@gnu.org>
9188
9189 * amd64obsd-tdep.c: Include "regset.h" and "i387-tdep.h". Fix
9190 comments.
9191 (amd64obsd_supply_regset, amd64obsd_regset_from_core_section): New
9192 functions.
9193 (amd64obsd_init_abi): Reorder initializations. Use
9194 amd64obsd_r_reg_offset to initialize the general-purpose register
9195 set details. Set regset_from_core_section.
9196 (_initialize_amd64obsd_tdep): Rename from
9197 _initialize_amd64obsd_ndep. Add OS ABI handler for core dumps.
9198 * Makefile.in (amd64obsd-tdep.o): Update dependencies.
9199 * config/i386/obsd64.mt (TDEPFILES): Add i386-tdep.o.
9200
9201 * NEWS (New native configurations): Mention OpenBSD/alpha.
9202 * configure.tgt: Add alpha*-*-openbsd*.
9203 * configure.host: Add alpha*-*-openbsd*.
9204 * alphanbsd-tdep.c: Update copyright year.
9205 (_initialize_alphanbsd_tdep): Register OS ABI for OpenBSD ELF.
9206
9207 2004-02-20 Andrew Cagney <cagney@redhat.com>
9208
9209 Fix PR tdep/1372.
9210 * configure.tgt: Delete target "none-*-*".
9211 * configure.host: Delete host "none-*-*".
9212 * config/none/none.mh: Delete file.
9213 * config/none/none.mt: Delete file.
9214 * config/none/xm-none.h: Delete file.
9215 * config/none/tm-none.h: Delete file.
9216 * config/none/nm-none.h: Delete file.
9217
9218 2004-02-19 Fred Fish <fnf@redhat.com>
9219
9220 * sh-tdep.c (sh_analyze_prologue): Eliminate useless test of
9221 cache->uses_fp prior to setting it.
9222
9223 2004-02-19 Fred Fish <fnf@redhat.com>
9224
9225 Fix for PR breakpoint/1558.
9226 * sh-tdep.c (IS_JSR): New macro.
9227 (sh_analyze_prologue): Use IS_JSR to terminate prologue scan.
9228
9229 2004-02-19 Jim Blandy <jimb@redhat.com>
9230
9231 * findvar.c (value_from_register): Doc fix.
9232
9233 2004-02-19 Jeff Johnston <jjohnstn@redhat.com>
9234
9235 * printcmd.c (print_scalar_formatted): Do not check for sizeof
9236 type being greater than sizeof of host's LONGEST. Always use
9237 unpack_long() unless format 'f' chosen.
9238
9239 2004-02-19 Joel Brobecker <brobecker@gnat.com>
9240
9241 Committed by Elena Zannoni <ezannoni@redhat.com>
9242
9243 * symtab.c (find_pc_sect_psymtab): Return the psymtab that
9244 contains a symbol wich is the best, non-exact match for the given
9245 pc. Update comments.
9246
9247 2004-02-19 Elena Zannoni <ezannoni@redhat.com>
9248
9249 * event-top.c (async_request_quit): Remove uses of REQUEST_QUIT
9250 macro, which was part of the now removed Mach 3 port.
9251 * utils.c (request_quit): Ditto.
9252
9253 2004-02-18 Mark Kettenis <kettenis@gnu.org>
9254
9255 * config/djgpp/fnchange.lst: Rename "amd64obsd-tdep.c" and
9256 "amd64obsd-nat.c" to "a64ob-tdep.c" and "a64ob-nat.c".
9257
9258 2004-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9259
9260 Committed by Mark Kettenis <kettenis@gnu.org>.
9261
9262 * config/s390/nm-linux.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT):
9263 Define.
9264
9265 2004-02-18 Andrew Cagney <cagney@redhat.com>
9266
9267 * configure.in: Add a TUI target to CONFIG_ALL, CONFIG_CLEAN,
9268 CONFIG_INSTALL and CONFIG_UNINSTALL.
9269 * configure: Re-generate.
9270 * interps.h (INTERP_TUI): Define.
9271 * Makefile.in: Update dependencies.
9272 (TUI): New macro.
9273 (tui-main.o): Specify dependencies.
9274 (install-tui, uninstall-tui, clean-tui, all-tui): New rules.
9275 * tui/tui-main.c: New file.
9276
9277 2004-02-18 Mark Kettenis <kettenis@gnu.org>
9278
9279 * amd64obsd-tdep.c, amd64obsd-nat.c: New files.
9280 * Makefile.in (amd64obsd-nat.o, amd64obsd-tdep.o): New
9281 dependencies.
9282 * configure.host: Add x86_64-*-openbsd*.
9283 * configure.tgt: Add x86_64-*-openbsd*.
9284 * config/i386/obsd64.mt, config/i386/obsd64.mh: New files.
9285
9286 * tui/tui.c: Don't include <malloc.h>.
9287
9288 * Makefile.in (ALLDEPFILES): Add amd64-nat.c, amd64bsd-nat.c,
9289 amdfbsd-nat.c, amd64-fbsd-tdep.c, amd64nbsd-nat.c and
9290 amd64nbsd-tdep.c.
9291
9292 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Make
9293 static. Remove extraneous whitespace.
9294 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Make
9295 static.
9296
9297 2004-02-17 Jim Blandy <jimb@redhat.com>
9298
9299 * findvar.c (value_from_register): Doc fix.
9300
9301 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9302
9303 Committed by Jim Blandy <jimb@redhat.com>.
9304
9305 * eval.c (evaluate_subexp_standard, case OP_OBJC_MSGCALL): Use
9306 CORE_ADDR as type for selectors. Correct types for GNU run time
9307 message lookup function to use double indirection.
9308 * objc-lang.c (lookup_child_selector): Use CORE_ADDR as return type.
9309 * objc-lang.h (lookup_child_selector): Adapt prototype.
9310
9311 * s390-nat.c (SUBOFF): New macro.
9312 (supply_gregset, fill_gregset): Use it to handle debugging
9313 of 32-bit exectuables running under a 64-bit kernel.
9314 * s390-tdep.c: Include "solib-svr4.h".
9315 (s390_svr4_fetch_link_map_offset): New function.
9316 (s390x_svr_fetch_link_map_offset): Likewise.
9317 (s390_gdbarch_init): Call set_solib_svr4_fetch_link_map_offsets.
9318 * Makefile.in (s390-tdep.o): Update dependencies.
9319
9320 * s390-tdep.c: Include "trad-frame.h", "frame-base.h", and
9321 "frame-unwind.h".
9322 (s390_readinstruction): Reformat. Use read_memory_nobpt.
9323 (GDB_TARGET_IS_ESAME, S390_GPR_SIZE, S390_FPR_SIZE): Remove.
9324 (S390_SYSCALL_OPCODE, S390_SYSCALL_SIZE): Remove.
9325 (S390_SIGCONTEXT_SREGS_OFFSET, S390X_SIGCONTEXT_SREGS_OFFSET,
9326 S390_SIGREGS_FP0_OFFSET, S390X_SIGREGS_FP0_OFFSET,
9327 S390_UC_MCONTEXT_OFFSET, S390X_UC_MCONTEXT_OFFSET,
9328 S390_SIGNAL_FRAMESIZE,
9329 s390_NR_sigreturn, s390_NR_rt_sigreturn): Remove.
9330 (struct frame_extra_info): Remove.
9331 (s390_memset_extra_info): Remove.
9332 (op1_ag, op1_ay, op1_brasl, op1_brc, op1_brcl, op1_lay, op1_lg)
9333 (op1_lmy, op1_ly, op1_sg, op1_stmy, op1_sty, op1_sy, op_a)
9334 (op_agr, op_bas, op_bc, op_bcr, op_sgr, op_sr): New opcodes.
9335 (is_rse): Renamed to ...
9336 (is_rsy): ... this. Support long displacements.
9337 (is_rxe): Renamed to ...
9338 (is_rxy): ... this. Support long displacements.
9339 (compute_x_addr): Support long displacements.
9340 (struct s390_prologue_data): New data type.
9341 (s390_on_stack): Change API to use struct s390_prologue_data.
9342 (s390_store): Reimplement.
9343 (s390_load): New function.
9344 (s390_get_signal_frame_info): Remove.
9345 (s390_get_frame_info): Remove, replace by ...
9346 (s390_analyze_prolog): ... this new function.
9347 (s390_check_function_end): Remove.
9348 (s390_function_start): Remove.
9349 (s390_frameless_function_invokation): Remove.
9350 (s390_is_sigreturn): Remove.
9351 (s390_init_frame_pc_first): Remove.
9352 (s390_init_frame_extra_info): Remove.
9353 (s390_frame_init_saved_regs): Remove.
9354 (s390_frame_saved_pc_nofix): Remove.
9355 (s390_frame_saved_pc): Remove.
9356 (s390_frame_chain): Remove.
9357 (s390_fp_regnum, s390_read_fp): Remove.
9358 (s390_pop_frame_regular, s390_pop_frame): Remove.
9359 (s390_saved_pc_after_call): Remove.
9360 (s390_skip_prologue): Reimplement.
9361 (s390_in_function_epilogue_p): Support long displacements.
9362 (struct s390_unwind_cache): New data structure.
9363 (s390_frame_unwind_cache): New function.
9364 (s390_prologue_frame_unwind_cache): Likewise.
9365 (s390_backchain_frame_unwind_cache): Likewise.
9366 (s390_frame_this_id, s390_frame_prev_register): Likewise.
9367 (s390_frame_unwind): Define.
9368 (s390_frame_sniffer): New function.
9369 (struct s390_pltstub_unwind_cache): New data structure.
9370 (s390_pltstub_frame_unwind_cache): New function.
9371 (s390_pltstub_frame_this_id): Likewise.
9372 (s390_pltstub_frame_prev_register): Likewise.
9373 (s390_pltstub_frame_unwind): Define.
9374 (s390_pltstub_frame_sniffer): New function.
9375 (struct s390_sigtramp_unwind_cache): New data structure.
9376 (s390_sigtramp_frame_unwind_cache): New function.
9377 (s390_sigtramp_frame_this_id): Likewise.
9378 (s390_sigtramp_frame_prev_register): Likewise.
9379 (s390_sigtramp_frame_unwind): Define.
9380 (s390_sigtramp_frame_sniffer): New function.
9381 (s390_frame_base_address, s390_local_base_address): New functions.
9382 (s390_frame_base): Define.
9383 (s390_unwind_pc, s390_unwind_sp): New function.
9384 (s390_push_dummy_call): Use new frame base location.
9385 (s390_unwind_dummy_id): Likewise.
9386 (s390_gdbarch_init): Remove calls to:
9387 set_gdbarch_frameless_function_invocation,
9388 set_gdbarch_deprecated_init_frame_pc,
9389 set_gdbarch_deprecated_frame_chain,
9390 set_gdbarch_deprecated_frame_init_saved_regs,
9391 set_gdbarch_deprecated_pop_frame,
9392 set_gdbarch_deprecated_init_extra_frame_info,
9393 set_gdbarch_deprecated_init_frame_pc_first,
9394 set_gdbarch_deprecated_target_read_fp,
9395 set_gdbarch_deprecated_frame_saved_pc,
9396 set_gdbarch_deprecated_saved_pc_after_call,
9397 set_gdbarch_deprecated_fp_regnum.
9398 Add calls to:
9399 set_gdbarch_in_solib_call_trampoline,
9400 frame_unwind_append_sniffer,
9401 frame_base_set_default,
9402 set_gdbarch_unwind_pc,
9403 set_gdbarch_unwind_sp.
9404 * Makefile.in (s390-tdep.o): Update dependencies.
9405
9406 * s390-tdep.c (struct gdbarch_tdep): Add 'abi' member.
9407 (S390_STACK_FRAME_OVERHEAD): Remove.
9408 (S390_STACK_PARAMETER_ALIGNMENT): Remove.
9409 (S390_NUM_FP_PARAMETER_REGISTERS): Remove.
9410 (s390_promote_integer_argument): Remove.
9411 (s390_cannot_extract_struct_value_address): Remove.
9412 (s390_use_struct_convention, s390_store_struct_return): Remove.
9413 (s390_extract_return_value, s390_store_return_value): Remove.
9414 (s390_return_value_convention, s390_return_value): New functions.
9415 (is_float_singleton): Handle typedefs.
9416 (is_double_or_float, is_double_arg, is_simple_arg, pass_by_copy_ref):
9417 Remove, replace by ...
9418 (s390_function_arg_pass_by_reference, s390_function_arg_float,
9419 s390_function_arg_integer): ... these new functions.
9420 (s390_push_arguments, s390_push_return_address): Remove, replace by ...
9421 (s390_push_dummy_call, s390_unwind_dummy_id): ... these new functions.
9422 (s390_gdbarch_init): Remove s390_call_dummy_words and elf_flags.
9423 Fill in tdep->abi.
9424 Remove calls to:
9425 set_gdbarch_deprecated_store_struct_return,
9426 set_gdbarch_deprecated_extract_return_value,
9427 set_gdbarch_deprecated_store_return_value,
9428 set_gdbarch_use_struct_convention,
9429 set_gdbarch_extract_struct_value_address,
9430 set_gdbarch_deprecated_pc_in_call_dummy,
9431 set_gdbarch_deprecated_push_arguments,
9432 set_gdbarch_deprecated_save_dummy_frame_tos,
9433 set_gdbarch_deprecated_push_return_address,
9434 set_gdbarch_deprecated_sizeof_call_dummy_words,
9435 set_gdbarch_deprecated_call_dummy_words,
9436 set_gdbarch_deprecated_dummy_write_sp.
9437 Add calls to:
9438 set_gdbarch_push_dummy_call,
9439 set_gdbarch_unwind_dummy_id,
9440 set_gdbarch_return_value.
9441
9442 * config/s390/nm-linux.h: Update comments.
9443 (target_insert_watchpoint, target_remove_watchpoint): Redefine.
9444 (STOPPED_BY_WATCHPOINT): Redefine.
9445 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Redefine to 1.
9446 (s390_insert_watchpoint, s390_remove_watchpoint): Update prototype.
9447 (s390_stopped_by_watchpoint): Likewise.
9448 (watch_area_cnt): Remove.
9449 * s390-nat.c: Update comments.
9450 (watch_area): Remove typedef.
9451 Global replace watch_area by struct watch_area.
9452 (watch_area_cnt, watch_lo_addr, watch_hi_addr): Remove.
9453 (s390_stopped_by_watchpoint): Remove pid argument,
9454 use s390_inferior_tid. Add short-cut for the no watchpoint case.
9455 (s390_fix_watch_points): Remove pid argument,
9456 use s390_inferior_tid. Recompute area spanned by watchpoints.
9457 (s390_insert_watchpoint, s390_remove_watchpoint): Remove pid
9458 argument. Reimplement.
9459
9460 * config/s390/nm-linux.h: Update comments. Do not include "solib.h".
9461 (KERNEL_U_ADDR, REGISTER_U_ADDR, U_REGS_OFFSET): Remove.
9462 (FETCH_INFERIOR_REGISTERS): Define.
9463 * config/s390/s390.mh (NATDEPFILES): Remove core-aout.o and
9464 core-regset.o.
9465 * config/s390/s390x.mt: Remove.
9466 * config/s390/tm-s390.h: Remove.
9467 * config/s390/tm-linux.h: Do not include "s390/tm-s390.h".
9468 (TARGET_ELF64): Remove.
9469 (SKIP_TRAMPOLINE_CODE): Do not undefine.
9470 * configure.tgt [s390-*-*, s390x-*-*]: Merge into single
9471 s390*-*-* case; always set gdb_target to s390.
9472 * regformats/reg-s390.dat: Remove control registers.
9473 * regformats/reg-s390x.dat: Likewise.
9474 * s390-tdep.h: New file.
9475 * s390-nat.c: Do not include <asm/processor.h> or <value.h>.
9476 Include "inferior.h" and "s390-tdep.h".
9477 Remove private definition of offsetof.
9478 (s390_register_u_addr): Remove.
9479 (regmap_gregset, regmap_fpregset): Define.
9480 (supply_gregset, fill_gregset): Reimplement.
9481 (supply_fpregset, fill_fpregset): Likewise.
9482 (s390_inferior_tid): New function.
9483 (fetch_regs, store_regs, fetch_fpregs, store_fpregs): Likewise.
9484 (fetch_inferior_registers, store_inferior_registers): Likewise.
9485 * s390-tdep.c: Do not define S390_TDEP. Include "defs.h" instead
9486 of <defs.h>. Include "reggroups.h", "regset.h", and "s390-tdep.h".
9487 Global replace of S390_GP0_REGNUM by S390_R0_REGNUM.
9488 Global replace of S390_FP0_REGNUM by S390_F0_REGNUM.
9489 (struct gdbarch_tdep): Define.
9490 (struct s390_register_info): Define.
9491 (s390_register_info): New variable.
9492 (s390_register_name): Reimplement.
9493 (s390_register_type): New function.
9494 (s390_register_raw_size, s390x_register_raw_size): Remove.
9495 (s390_cannot_fetch_register): Remove.
9496 (s390_register_byte): Remove.
9497 (s390_register_virtual_type, s390x_register_virtual_type): Remove.
9498 (s390_dwarf_regmap): New variable.
9499 (s390_dwarf_reg_to_regnum): New function.
9500 (s390_stab_reg_to_regnum): Remove.
9501 (s390_pseudo_register_read, s390_pseudo_register_write): New functions.
9502 (s390x_pseudo_register_read, s390x_pseudo_register_write): Likewise.
9503 (s390_convert_register_p): Likewise.
9504 (s390_register_to_value, s390_value_to_register): Likewise.
9505 (s390_register_reggroup_p): Likewise.
9506 (s390_regmap_gregset, s390x_regmap_gregset, s390_regmap_fpregset,
9507 s390_gregset, s390x_gregset, s390_fpregset): New variables.
9508 (s390_supply_regset, s390_regset_from_core_section): New functions.
9509 (GDB_TARGET_IS_ESAME): Move here from tm-s390.h.
9510 (S390_FPR_SIZE): Likewise.
9511 (S390_GPR_SIZE): Likewise. Redefine in terms of GDB_TARGET_IS_ESAME.
9512 Global replace of DEPRECATED_REGISTER_SIZE by S390_GPR_SIZE.
9513 (S390_NUM_GPRS): Move here from tm-s390.h.
9514 (S390_NUM_FPRS): Likewise.
9515 (s390_in_function_epilogue_p): New function.
9516 (s390_is_sigreturn): Replace S390_PSW_ADDR_SIZE by S390_GPR_SIZE.
9517 Replace S390_PC_REGNUM by S390_PSWA_REGNUM.
9518 (s390_gdbarch_init): Allocate and set up gdbarch_tdep structure.
9519 Replace s390_stab_reg_to_regnum by s390_dwarf_reg_to_regnum.
9520 Replace S390_FP_REGNUM by S390_SP_REGNUM.
9521 Remove calls to:
9522 set_gdbarch_deprecated_max_register_raw_size,
9523 set_gdbarch_deprecated_max_register_virtual_size,
9524 set_gdbarch_deprecated_register_byte,
9525 set_gdbarch_cannot_fetch_register,
9526 set_gdbarch_cannot_store_register,
9527 set_gdbarch_deprecated_register_size,
9528 set_gdbarch_deprecated_register_raw_size,
9529 set_gdbarch_deprecated_register_virtual_size,
9530 set_gdbarch_deprecated_register_virtual_type,
9531 set_gdbarch_deprecated_register_bytes.
9532 Add calls to:
9533 set_gdbarch_num_pseudo_regs,
9534 set_gdbarch_register_type,
9535 set_gdbarch_convert_register_p,
9536 set_gdbarch_register_to_value,
9537 set_gdbarch_value_to_register,
9538 set_gdbarch_register_reggroup_p,
9539 set_gdbarch_regset_from_core_section,
9540 set_gdbarch_pseudo_register_read,
9541 set_gdbarch_pseudo_register_write,
9542 set_gdbarch_in_function_epilogue_p.
9543 * Makefile.in (s390-nat.o, s390-tdep.o): Update dependencies.
9544 (s390_tdep_h): New variable.
9545
9546 2004-02-17 Jim Blandy <jimb@redhat.com>
9547
9548 * findvar.c (value_from_register): If the type has no length, just
9549 return an acceptable value --- don't report an internal error.
9550
9551 * stabsread.c (read_type): If we find any type numbers that are
9552 forward references, complain if the references aren't resolved by
9553 the time we're finished reading.
9554 (cleanup_undefined_types): Make error message more appropriate for
9555 a complaint.
9556
9557 2004-02-17 Elena Zannoni <ezannoni@redhat.com>
9558
9559 * Makefile.in (defs_h): Remove dependency on progress_h.
9560 * defs.h (QUIT): Remove use of PROGRESS macro. Remove include of
9561 progress.h.
9562 * main.c (captured_main): Delete use of START_PROGRESS and
9563 END_PROGRESS.
9564
9565 2004-02-17 Elena Zannoni <ezannoni@redhat.com>
9566
9567 * objfiles.c (terminate_minimal_symbol_table): Add back
9568 initialization of MSYMBOL_TYPE.
9569
9570 2004-02-17 David Mosberger <davidm@hpl.hp.com>
9571
9572 Committed by Andrew Cagney.
9573 * Makefile.in (ia64_tdep_h): New macro.
9574 (ia64-linux-tdep.o): Mention $(ia64_tdep_h).
9575 (ia64-tdep.o): Likewise.
9576 * ia64-tdep.h: New file.
9577 * ia64-tdep.c: Update copyright notice. Include "ia64-tdep.h".
9578 (ia64_linux_sigcontext_register_address): Move decl to ia64-tdep.h.
9579 (ia64_aix_sigcontext_register_address): Likewise.
9580 (ia64_linux_getunwind_table): Delete declaration.
9581 * ia64-linux-tdep.c: Likewise.
9582
9583 2004-02-17 Corinna Vinschen <vinschen@redhat.com>
9584
9585 * sh-tdep.c (sh_dsp_register_sim_regno): Use DSP_Rx_BANK_REGNUM.
9586 * sh-tdep.h: Rename R0_BANK_REGNUM and R7_BANK_REGNUM to
9587 DSP_R0_BANK_REGNUM and DSP_R7_BANK_REGNUM.
9588
9589 2004-02-17 Andrew Cagney <cagney@redhat.com>
9590
9591 * symtab.c (skip_prologue_using_sal): New function.
9592 * symtab.h (skip_prologue_using_sal): Declare.
9593 * frv-tdep.c: Include "symtab.h".
9594 (skip_prologue_using_sal): Delete function.
9595 * mips-tdep.c (skip_prologue_using_sal): Delete function.
9596 * rs6000-tdep.c (refine_prologue_limit): Mention
9597 skip_prologue_using_sal.
9598 * ia64-tdep.c (refine_prologue_limit): Ditto.
9599 * Makefile.in: Update dependencies.
9600
9601 2004-02-16 Andrew Cagney <cagney@redhat.com>
9602
9603 * config/alpha/tm-nbsd.h: Update copyright, delete #undef
9604 START_INFERIOR_TRAPS_EXPECTED.
9605 * config/alpha/tm-fbsd.h: Update copyright, delete #undef
9606 START_INFERIOR_TRAPS_EXPECTED.
9607 * config/alpha/tm-alphalinux.h (START_INFERIOR_TRAPS_EXPECTED):
9608 Delete macro.
9609 * config/alpha/tm-alpha.h (START_INFERIOR_TRAPS_EXPECTED): Delete
9610 macro, moved to "nm-osf.h". Update copyright.
9611 * config/alpha/nm-osf.h (START_INFERIOR_TRAPS_EXPECTED): Define,
9612 update copyright.
9613
9614 * gdbarch.sh (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION): Predicate
9615 and function replacing FRAMELESS_FUNCTION_INVOCATION.
9616 * blockframe.c (legacy_frameless_look_for_prologue): Rename
9617 frameless_look_for_prologue.
9618 * frame.h (legacy_frameless_look_for_prologue): Rename
9619 frameless_look_for_prologue.
9620 * gdbarch.h, gdbarch.c: Re-generate.
9621 * sh64-tdep.c (sh64_gdbarch_init): Update.
9622 * sh-tdep.c (sh_gdbarch_init): Update.
9623 * s390-tdep.c (s390_gdbarch_init): Update.
9624 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9625 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9626 * m68k-tdep.c (m68k_gdbarch_init): Update.
9627 (delta68_frame_args_address): Update.
9628 * m32r-tdep.c (m32r_gdbarch_init): Update.
9629 * hppa-tdep.c (hppa_gdbarch_init): Update.
9630 * h8300-tdep.c (h8300_gdbarch_init): Update.
9631 * frv-tdep.c (frv_gdbarch_init): Update.
9632 (frv_frameless_function_invocation): Update.
9633 * cris-tdep.c (cris_gdbarch_init): Update.
9634 (cris_frameless_function_invocation): Update.
9635 * avr-tdep.c (avr_gdbarch_init): Update.
9636 * arm-tdep.c (arm_gdbarch_init): Update.
9637 * stack.c (frame_info): Update, call predicate.
9638 * rs6000-tdep.c (rs6000_frame_chain): Update, call predicate..
9639 * frame.c (legacy_get_prev_frame): Update, call predicate..
9640 * arch-utils.c (generic_frameless_function_invocation_not): Delete.
9641 * arch-utils.h (generic_frameless_function_invocation_not): Delete.
9642 * alpha-tdep.c (alpha_gdbarch_init): Do not set frameless function
9643 invocation.
9644 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9645 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
9646 * vax-tdep.c (vax_gdbarch_init): Ditto.
9647
9648 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): Delete unused
9649 function.
9650
9651 2004-02-16 Daniel Jacobowitz <drow@mvista.com>
9652
9653 * objfiles.c (terminate_minimal_symbol_table): Remove unnecessary
9654 initializations.
9655
9656 2004-02-16 Andrew Cagney <cagney@redhat.com>
9657
9658 * tui/tui-windata.c: Include "gdb_string.h".
9659 * tui/tui-source.c, tui/tui-winsource.c: Ditto.
9660 * tui/tui-layout.c, tui/tui-command.c: Ditto.
9661 * Makefile.in: Update dependencies.
9662
9663 2004-02-16 Daniel Jacobowitz <drow@mvista.com>
9664
9665 * Makefile.in (infrun.o): Add $(gdb_assert_h).
9666 * infrun.c: Include "gdb_assert.h".
9667 (singlestep_ptid, saved_singlestep_ptid)
9668 (stepping_past_singlestep_breakpoint): New variables.
9669 (resume): Set singlestep_ptid. Check for singlestep thread
9670 hop.
9671 (init_wait_for_inferior): Clear stepping_past_singlestep_breakpoint.
9672 (handle_inferior_event): Handle singlestep thread hop.
9673
9674 2004-02-16 Andrew Cagney <cagney@redhat.com>
9675
9676 * dwarf2-frame.c (dwarf2_frame_ops): New function.
9677 (dwarf2_frame_set_init_reg): Use, instead of gdbarch_data.
9678 (dwarf2_frame_init_reg): Ditto.
9679
9680 * printcmd.c (display_command): Check that EXP isn't NULL. Fix
9681 suggested by Joshua Neuheisel
9682
9683 * configure.in: Always check for curses, including pdcurses.
9684 Warn, instead of error, when no curses are found. Enable TUI when
9685 curses is available.
9686 * configure: Re-generate.
9687
9688 2004-02-16 Corinna Vinschen <vinschen@redhat.com>
9689
9690 * sh-tdep.c (sh_register_convert_to_virtual): Rename from
9691 sh_sh4_register_convert_to_virtual.
9692 (sh_register_convert_to_raw): Rename from
9693 sh_sh4_register_convert_to_raw.
9694 (sh_pseudo_register_read): Accomodate above name change.
9695 (sh_pseudo_register_write): Ditto.
9696
9697 2004-02-16 Corinna Vinschen <vinschen@redhat.com>
9698
9699 * sh-tdep.c (sh_generic_register_name): Remove.
9700 (sh_gdbarch_init): Use sh_sh_register_name in default case.
9701
9702 2004-02-15 Andrew Cagney <cagney@redhat.com>
9703
9704 * configure.in (build_warnings): Add -Wunused-function.
9705 * configure: Re-generate.
9706
9707 * config/tm-lynx.h (START_INFERIOR_TRAPS_EXPECTED): Delete macro.
9708 * config/rs6000/tm-rs6000.h (START_INFERIOR_TRAPS_EXPECTED): Ditto.
9709
9710 * procfs.c (procfs_init_inferior): Assume that
9711 START_INFERIOR_TRAPS_EXPECTED is defined.
9712 * config/ns32k/nbsdaout.mt (TM_FILE): Set to tm-ns32k.h.
9713 * config/ns32k/tm-nbsd.h: Delete file,
9714 START_INFERIOR_TRAPS_EXPECTED already defined as 2.
9715
9716 * config/vax/tm-vaxbsd.h: Do not include "tm-vax.h".
9717 * config/vax/tm-vax.h: Delete file.
9718
9719 * config/mips/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
9720 * config/i386/tm-i386bsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
9721 * config/arm/tm-linux.h (SIGCONTEXT_PC_OFFSET): Delete macro.
9722 * config/vax/tm-vaxbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
9723 * vax-tdep.c (vax_sigtramp_saved_pc): Inline only reference.
9724 * config/ns32k/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
9725 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Inline only reference.
9726
9727 2004-02-15 Mark Kettenis <kettenis@gnu.org>
9728
9729 * dwarf2-frame.h (dwarf2_frame_set_init_reg): New prototype.
9730 * dwarf2-frame.c (dwarf2_frame_data): New variable.
9731 (struct dwarf2_frame_ops): New.
9732 (dwarf2_frame_default_init_reg): New function, based on
9733 dwarf2_frame_init_reg.
9734 (dwarf2_frame_init, dwarf2_frame_set_init_reg): New function.
9735 (dwarf2_frame_init_reg): Call architecture-specific function.
9736 (dwarf2_frame_objfile_data): Renamed from dwarf2_frame_data.
9737 (dwarf2_frame_find_fde, add_fde): Use dwarf2_frame_objfile_data
9738 instead of dwarf2_frame_data.
9739 (_initialize_dwarf2_frame): Initailize new dwarf2_frame_data.
9740 Initialize dwarf2_frame_objfile instead of old dwarf2_frame_data.
9741
9742 2004-02-15 Andrew Cagney <cagney@redhat.com>
9743
9744 * gdbarch.sh (deprecated_register_gdbarch_swap): Rename
9745 register_gdbarch_swap.
9746 (DEPRECATED_REGISTER_GDBARCH_SWAP): Rename REGISTER_GDBARCH_SWAP.
9747 * f-lang.c (_initialize_f_language): Update, use
9748 DEPRECATED_REGISTER_GDBARCH_SWAP.
9749 * remote.c (_initialize_remote): Ditto.
9750 * regcache.c (_initialize_regcache): Ditto.
9751 * parse.c (_initialize_parse): Ditto.
9752 * infrun.c (_initialize_infrun): Ditto.
9753 * mi/mi-main.c (_initialize_mi_main): Ditto.
9754 * gdbtypes.c (_initialize_gdbtypes): Ditto.
9755
9756 * solib.c (solib_map_sections): Use bfd_set_cacheable instead of
9757 poking .cacheable directly.
9758 * symfile.c (symfile_bfd_open): Ditto.
9759
9760 * Makefile.in: Update all dependencies.
9761
9762 * Makefile.in: (.SUFFIXES): Add ".l" and ".y".
9763 (.y.c, .l.c): Specify implicit rule. Instead of .tab.c, generate
9764 .c. Update references. Delete unnecessary .tab.c and -lex.c rules.
9765 (ada-exp.o, c-exp.o, f-exp.o): Replace ada-exp.tab.o et.al. rule.
9766 (jv-exp.o, m2-exp.o, objc-exp.o, p-exp.o): Similar.
9767
9768 2004-02-14 Andrew Cagney <cagney@redhat.com>
9769
9770 * arch-utils.c (legacy_convert_register_p): Check
9771 DEPRECATED_REGISTER_CONVERTIBLE_P.
9772 * findvar.c (value_of_register): Ditto.
9773
9774 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Add predicate.
9775 * gdbarch.h, gdbarch.c: Re-generate.
9776 * arch-utils.c (deprecated_register_convertible_not): Delete.
9777 * arch-utils.h (deprecated_register_convertible_not): Delete.
9778 * mi/mi-main.c (get_register): Update. Update copyright.
9779 * infcmd.c (default_print_registers_info): Update.
9780
9781 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
9782 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Delete.
9783 (DEPRECATED_CALL_DUMMY_ADDRESS): Delete.
9784 * gdbarch.h, gdbarch.c: Re-generate.
9785 * frame.c (deprecated_get_next_frame_hack): Delete function.
9786 * frame.h (deprecated_get_next_frame_hack): Delete declaration.
9787 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
9788 Update.
9789 * infcall.c (call_function_by_hand): Update.
9790
9791 2004-02-14 Elena Zannoni <ezannoni@redhat.com>
9792
9793 * symfile.c (init_entry_point_info, entry_point_address): Move
9794 from here...
9795 * objfiles.c (init_entry_point_info, entry_point_address):..to
9796 here.
9797 * symfile.h (init_entry_point_info, entry_point_address): Remove
9798 prototypes.
9799 * objfiles.h (init_entry_point_info, entry_point_address):Add
9800 prototypes.
9801 * cris-tdep.c: Remove include of symfile.h. Add include of
9802 objfiles.h.
9803 * infcall.c: Ditto.
9804 * mcore-tdep.c: Ditto.
9805 * mn10300-tdep.c: Ditto.
9806 * sh64-tdep.c: Ditto.
9807 * v850-tdep.c: Ditto.
9808 * arm-tdep.c: Remove include of symfile.h.
9809 * blockframe.c: Ditto.
9810 * coffread.c: Ditto.
9811 * dbxread.c: Ditto.
9812 * dwarf2read.c: Ditto.
9813 * dwarfread.c: Ditto.
9814 * frv-tdep.c: Ditto.
9815 * ia64-tdep.c: Ditto.
9816 * mdebugread.c: Ditto.
9817 * mipsread.c: Ditto.
9818 * rs6000-tdep.c: Ditto.
9819 * s390-tdep.c: Ditto.
9820 * sh-tdep.c: Ditto.
9821 * xstormy16-tdep.c: Ditto.
9822 * gdbarch.sh: Remove include of symfile.h.
9823 * gdbarch.c: Regenerate.
9824 * solib-irix.c (enable_break): Use entry_point_address().
9825 Add comment about include file.
9826 * xcoffread.c: Add comment about include file.
9827 * Makefile.in (arm-tdep.o, blockframe.o, coffread.o, cris-tdep.o)
9828 (dbxread.o, dwarf2read.o, dwarfread.o, frv-tdep.o, gdbarch.o)
9829 (ia64-tdep.o, infcall.o, mcore-tdep.o, mdebugread.o, mipsread.o)
9830 (mn10300-tdep.o, rs6000-nat.o, s390-tdep.o, sh64-tdep.o)
9831 (sh-tdep.o, v850-tdep.o, xstormy16-tdep.o): Update dependencies.
9832
9833 2004-02-13 Andrew Cagney <cagney@redhat.com>
9834
9835 * corelow.c (core_xfer_partial): Use "struct bfd_section".
9836 * config/sparc/nm-nbsd.h (struct target_ops): Declare, update
9837 copyright.
9838 * mips-linux-tdep.c: Use "GNU/Linux", update copyright.
9839
9840 2004-02-12 Fred Fish <fnf@redhat.com>
9841
9842 * m68hc11-tdep.c (m68hc11_gdbarch_init): Remove duplicate call to
9843 set_gdbarch_store_return_value.
9844
9845 2004-02-12 Andrew Cagney <cagney@redhat.com>
9846
9847 * remote-rdi.c (arm_rdi_start_remote): Delete unused function.
9848 (arm_rdi_interrupt, arm_rdi_interrupt_twice): Ditto.
9849 (interrupt_query): Ditto.
9850 (ofunc): Delete unused variable.
9851 * cris-tdep.c (cris_abi): Delete unused function.
9852 (reg_pop_op, move_reg_to_mem_index_inc_op): Ditto.
9853 (cris_get_wide_opcode, cris_get_short_size): Ditto.
9854 (cris_get_asr_quick_shift_steps): Ditto.
9855 (cris_skip_prologue_frameless_p): Ditto.
9856 * arm-tdep.c (arm_push_return_address): Delete unused function.
9857 (arm_push_dummy_frame, arm_fix_call_dummy): Ditto.
9858 * rs6000-tdep.c (rs6000_pc_in_call_dummy): Delete unused function.
9859 * s390-tdep.c (s390_function_start): Delete unused function.
9860
9861 2004-02-12 Andrew Cagney <cagney@redhat.com>
9862
9863 * gdbarch.sh (PROLOGUE_FRAMELESS_P): Delete.
9864 gdbarch.h, gdbarch.c: Re-generate.
9865 * cris-tdep.c (cris_gdbarch_init): Do not set prologue_frameless_p
9866 to generic_prologue_frameless_p.
9867 * arch-utils.h (generic_prologue_frameless_p): Delete declaration.
9868 * arch-utils.c (generic_prologue_frameless_p): Delete function.
9869
9870 2004-02-11 Daniel Jacobowitz <drow@mvista.com>
9871
9872 * mips-linux-tdep.c: Include "frame.h".
9873 (mips_linux_in_dynsym_stub, mips_linux_in_dynsym_resolve_code)
9874 (mips_linux_skip_resolver): New functions.
9875 (mips_linux_init_abi): Call set_gdbarch_skip_solib_resolver
9876 and set_gdbarch_in_solib_call_trampoline.
9877 * mips-tdep.c (mips_gdbarch_init): Move gdbarch_init_osabi call
9878 to after set_gdbarch_in_solib_return_trampoline. Only set the
9879 solib hooks to mips16 functions if the OS ABI is unknown.
9880 * config/mips/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Undefine after
9881 including "config/tm-linux.h".
9882 (IN_SOLIB_DYNSYM_RESOLVE_CODE): Define.
9883 * Makefile.in (mips-linux-tdep.o): Update.
9884
9885 2004-02-11 David Carlton <carlton@kealia.com>
9886
9887 * linespec.c (decode_compound): Only look for a class symbol when
9888 considering all but the rightmost component.
9889
9890 2004-02-11 Andrew Cagney <cagney@redhat.com>
9891
9892 * hppa-tdep.c (hppa_gdbarch_init): Re-order so that the frame and
9893 abi code are are separatly grouped.
9894
9895 2004-02-11 Andrew Cagney <cagney@redhat.com>
9896
9897 * gdbarch.sh (FRAME_ARGS_SKIP): Default to 0.
9898 * gdbarch.h, gdbarch.c: Re-generate.
9899 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9900 * v850-tdep.c (v850_gdbarch_init): Update.
9901 * sh64-tdep.c (sh64_gdbarch_init): Update.
9902 * sh-tdep.c (sh_gdbarch_init): Update.
9903 * s390-tdep.c (s390_gdbarch_init): Update.
9904 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9905 * mips-tdep.c (mips_gdbarch_init): Update.
9906 * mcore-tdep.c (mcore_gdbarch_init): Update.
9907 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9908 * m32r-tdep.c (m32r_gdbarch_init): Update.
9909 * ia64-tdep.c (ia64_gdbarch_init): Update.
9910 * hppa-tdep.c (hppa_gdbarch_init): Update.
9911 * h8300-tdep.c (h8300_gdbarch_init): Update.
9912 * frv-tdep.c (frv_gdbarch_init): Update.
9913 * d10v-tdep.c (d10v_gdbarch_init): Update.
9914 * cris-tdep.c (cris_gdbarch_init): Update.
9915 * avr-tdep.c (avr_gdbarch_init): Update.
9916 * arm-tdep.c (arm_gdbarch_init): Update.
9917 * alpha-tdep.c (alpha_gdbarch_init): Update.
9918
9919 2004-02-11 Corinna Vinschen <vinschen@redhat.com>
9920
9921 * sh-tdep.c (sh_sh3_dsp_register_name): Fix formatting. Add missing
9922 comma.
9923 (sh_sh4al_dsp_register_name): Ditto.
9924
9925 2004-02-10 Andrew Cagney <cagney@redhat.com>
9926
9927 * mips-tdep.c (mips_gdbarch_init): Delete deprecated frame code.
9928 (mips_init_frame_pc_first): Delete function.
9929 (mips_frame_saved_pc): Delete function.
9930 (mips_frame_chain): Delete function.
9931 (mips_init_extra_frame_info): Delete function.
9932 (mips_xfer_register): Delete unused variable "reg".
9933 (mips_n32n64_push_dummy_call): Delete unused variable "valbuf".
9934 (mips_n32n64_return_value): Delete unused variable "reg".
9935 (mips_n32n64_return_value): Delete unused variable "pos".
9936 (mips_o32_push_dummy_call): Delete unused variable "valbuf".
9937 (mips_o32_return_value): Delete unused variable "pos".
9938 (mips_o64_push_dummy_call): Delete unused variable "valbuf".
9939 (mips_print_fp_register): Delete unused variable "namelen"
9940 (mips_print_fp_register): Delete unused variable "flt2"
9941 (get_frame_pointer): Delete function.
9942 (cached_proc_desc): Delete static variable.
9943 (mips_pop_frame): Delete function.
9944 (mips_find_saved_regs): Delete function.
9945 (mips_get_saved_register): Delete function.
9946 (mips_saved_pc_after_call): Delete function.
9947 (SIGFRAME_BASE): Delete macro.
9948 (SIGFRAME_FPREGSAVE_OFF): Delete macro.
9949 (SIGFRAME_PC_OFF): Delete macro.
9950 (SIGFRAME_REGSAVE_OFF): Delete macro.
9951 (mips_dump_tdep): Do not print deleted macro definitions.
9952
9953 2004-02-10 Andrew Cagney <cagney@redhat.com>
9954
9955 * Makefile.in (SFILES): Remove explictly listed tui files.
9956 (SUBDIR_GDBTK_SRCS): Fix path to gdbtk-interp.c.
9957
9958 2004-02-10 Jeff Johnston <jjohnstn@redhat.com>
9959
9960 * ia64-tdep.c (ia64_frame_this_id): Fix tracing print statement
9961 to use paddr functions to format ia64 addresses and long values.
9962 (ia64_frame_prev_register, ia64_sigtramp_frame_this_id): Ditto.
9963 (ia64_sigtramp_frame_prev_register, ia64_access_reg): Ditto.
9964 (get_kernel_table, ia64_find_proc_info_x): Ditto.
9965 (ia64_get_dyn_info_list, ia64_libunwind_this_frame_id): Ditto.
9966 (ia64_libunwind_frame_prev_register, ia64_unwind_dummy_id): Ditto.
9967
9968 2004-02-10 Andrew Cagney <cagney@redhat.com>
9969
9970 * defs.h: Do not include "tui.h".
9971 * gdb_curses.h: New file.
9972 * tui/tui-hooks.h: New file.
9973 * tui/tui.h (tui_update_all_exec_infos): Delete declaration.
9974 (tui_install_hooks, tui_remove_hooks): Delete declarations.
9975 (tui_initialize_io): Delete declaration.
9976 (tui_initialize_readline: Delete redundant declaration.
9977 (struct tui_point): Delete definition.
9978 * tui/tui-data.h (struct tui_point): Define.
9979 * cli/cli-decode.c [TUI]: Include "tui/tui.h".
9980 * utils.c: Include "tui/tui.h".
9981 * tui/tui-data.h: Include "tui/tui.h" and "gdb_curses.h".
9982 * printcmd.c [TUI]: Include "tui/tui.h".
9983 * cli/cli-cmds.c [TUI]: Include "tui/tui.h".
9984 * tui/tui-command.c: Include "gdb_curses.h".
9985 * tui/tui.c, tui/tui-winsource.c, tui/tui-wingeneral.c: Ditto.
9986 * tui/tui-windata.c, tui/tui-win.c, tui/tui-stack.c: Ditto.
9987 * tui/tui-source.c, tui/tui-regs.c, tui/tui-layout.c: Ditto.
9988 * tui/tui-io.c, tui/tui-disasm.c, tui/tui-data.c: : Ditto.
9989 * tui/tui-hooks.c: Include "tui-hooks.h" and "gdb_curses.h".
9990 * Makefile.in: Update all dependencies.
9991 (tui_hooks_h, gdb_curses_h): Define.
9992 (SUBDIR_TUI_CFLAGS): Remove -I${srcdir}/tui.
9993
9994 2004-02-10 Elena Zannoni <ezannoni@redhat.com>
9995
9996 * objfiles.h (struct objfile): Remove unused fields auxf1 and
9997 auxf2. Add comments about some other rarely used fields.
9998
9999 2004-02-10 Andrew Cagney <cagney@redhat.com>
10000
10001 * Makefile.in (init.c): Fix script removing duplicates. Problem
10002 reported by Peter Schauer.
10003
10004 2004-02-09 Elena Zannoni <ezannoni@redhat.com>
10005
10006 * bcache.c (bcache_xmalloc): Use obstack_init instead of
10007 obstack_specify_allocation.
10008 * objfiles.c (allocate_objfile): Ditto.
10009 * solib-sunos.c (solib_add_common_symbols)
10010 (allocate_rt_common_objfile): Ditto.
10011 * symfile.c (reread_symbols): Ditto.
10012 * gdb_obstack.h: Add comment.
10013
10014 2004-02-09 Elena Zannoni <ezannoni@redhat.com>
10015
10016 * linespec.c (decode_line_1, locate_first_half)
10017 (decode_compound, lookup_prefix_sym): Update comments. Delete old
10018 commented out code.
10019
10020 2004-02-09 Daniel Jacobowitz <drow@mvista.com>
10021
10022 * cp-namespace.c (check_one_possible_namespace_symbol): Don't use
10023 obstack_free.
10024
10025 2004-02-09 Andrew Cagney <cagney@redhat.com>
10026
10027 * blockframe.c (find_pc_partial_function): If find_pc_overlay
10028 fails, try find_pc_section. Fix PR c++/1267.
10029 * minsyms.c (lookup_minimal_symbol_by_pc): Use find_pc_section
10030 instead of find_pc_mapped_section.
10031 (lookup_minimal_symbol_by_pc_section): If the SECTION is NULL, do
10032 not default to the section containing PC. Fix PR symtab/1519.
10033
10034 2004-02-09 Andrew Cagney <cagney@redhat.com>
10035
10036 * Makefile.in (mips-tdep.o): Update dependencies.
10037 * mips-tdep.c: Include "frame-unwind.h", "frame-base.h" and
10038 "trad-frame.h".
10039 (mips_unwind_pc): Return the pseudo PC register.
10040 (mips_unwind_dummy_id): New function.
10041 (mips16_fetch_instruction): New function.
10042 (mips32_fetch_instruction): New function.
10043 (struct mips_frame_cache): Define.
10044 (mips_mdebug_frame_cache): New function.
10045 (mips_mdebug_frame_this_id): New function.
10046 (mips_mdebug_frame_prev_register): New function.
10047 (mips_mdebug_frame_unwind): Define.
10048 (mips_mdebug_frame_sniffer): New function.
10049 (mips_mdebug_frame_base_address): New function.
10050 (mips_mdebug_frame_base): Define.
10051 (mips_mdebug_frame_base_sniffer): New function.
10052 (mips_gdbarch_init): Append unwind and base sniffers. Set
10053 unwind_dummy_id.
10054
10055 2004-02-08 Andrew Cagney <cagney@redhat.com>
10056
10057 * frame.c: Print both the register number and name.
10058
10059 * Makefile.in (init.c): Eliminate duplicates. Combine two greps
10060 and a sed into a single sed. Make .c and .o patterns more robust.
10061 (OBS): Delete.
10062 (INIT_FILES): Replace OBS with COMMON_OBS.
10063 (COMMON_OBS): Move DEPFILES and YYOBJ to start of definition.
10064
10065 2004-02-08 Mark Kettenis <kettenis@gnu.org>
10066
10067 * sparc-nat.c (sparc_xfer_wcookie): Try to fetch the cookie using
10068 the PT_WCOOKIE request.
10069
10070 2004-02-08 Andrew Cagney <cagney@redhat.com>
10071
10072 * mips-tdep.c (mips_unwind_pc): New function.
10073 (mips_gdbarch_init): Set mips_unwind_pc.
10074
10075 * frame.c (legacy_saved_regs_this_id): Return a null frame ID.
10076 (get_frame_id): Allow the UNKNOWN_FRAME.
10077 (frame_register_unwind, get_frame_type): Ditto.
10078
10079 * frame.c (legacy_frame_p): Check for DEPRECATED_TARGET_READ_FP_P
10080 and DEPRECATED_FP_REGNUM. Don't assume that the lack of
10081 unwind_dummy_id indicates a legacy frame.
10082
10083 * configure.in (CONFIG_LIB_OBS): Replace with CONFIG_OBS.
10084 * configure: Re-generate.
10085
10086 * mips-tdep.c (mips_gdbarch_init): Group deprecated frame unwind
10087 methods.
10088
10089 2004-02-08 Andrew Cagney <cagney@redhat.com>
10090
10091 * configure.in (CONFIG_ALL): Set to Makefile target, and not
10092 makefile macro.
10093 * configure: Re-generate.
10094 (CONFIG_CLEAN, CONFIG_INSTALL, CONFIG_UNINSTALL): Ditto.
10095 * Makefile.in (SUBDIR_CLI_CLEAN): Delete.
10096 (SUBDIR_CLI_INSTALL, SUBDIR_CLI_UNINSTALL): Delete.
10097 (SUBDIR_CLI_ALL, SUBDIR_GDBTK_ALL): Delete.
10098 (SUBDIR_GDBTK_CLEAN, SUBDIR_GDBTK_INSTALL): Delete.
10099 (SUBDIR_GDBTK_UNINSTALL, SUBDIR_MI_ALL): Delete.
10100 (SUBDIR_MI_CLEAN, SUBDIR_MI_INSTALL): Delete.
10101 (SUBDIR_MI_UNINSTALL, SUBDIR_TUI_ALL): Delete.
10102 (SUBDIR_TUI_CLEAN, SUBDIR_TUI_INSTALL): Delete.
10103 (SUBDIR_TUI_UNINSTALL, SUBDIR_CLI_CLEAN): Delete.
10104
10105 2004-02-07 Andrew Cagney <cagney@redhat.com>
10106
10107 * Makefile.in: Update all dependencies.
10108
10109 * configure.in (CONFIG_INITS, CONFIG_LIB_OBS): Delete.
10110 * configure: Re-generate.
10111 * Makefile.in (INIT_FILES): Replace CONFIG_INITS with CONFIG_SRCS.
10112 (CONFIG_LIB_OBS, CONFIG_INITS): Delete.
10113 (COMMON_OBS): Add "main.o" and "annotate.o".
10114 (ANNOTATE_OBS): Delete.
10115 (OBS): Remove ANNOTATE_OBS.
10116 (DEPFILES): Replace CONFIG_LIB_OBS with CONFIG_LIB_OBS, remove
10117 CONFIG_INITS.
10118 (gdb$(EXEEXT), insight$(EXEEXT)): Do not depend on, or link
10119 against CONFIG_OBS and "main.o".
10120 (SUBDIR_CLI_INITS, SUBDIR_MI_INITS): Delete.
10121 (SUBDIR_TUI_INITS, SUBDIR_GDBTK_INITS): Delete.
10122
10123 * tui/tui-command.c: Include "gdb_string.h", delete register
10124 attribute, use ISO-C function signatures.
10125 * tui/tui-disasm.c, tui/tui-file.c, tui/tui-io.c: Ditto.
10126 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
10127 * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Ditto.
10128 * tui/tui.c: Ditto.
10129
10130 * tui/tui-command.c: Change variable and function names to lower
10131 case.
10132 * tui/tui-data.c, tui/tui-disasm.c: Ditto.
10133 * tui/tui-hooks.c, tui/tui-io.c, tui/tui-layout.c: Ditto.
10134 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
10135 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
10136 * tui/tui-winsource.c, tui/tui.c: Ditto.
10137
10138 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
10139
10140 * buildsym.c (free_pending_blocks, finish_block)
10141 (record_pending_block, make_blockvector, end_symtab): Replace
10142 symbol_obstack with objfile_obstack.
10143 * coffread.c (process_coff_symbol, coff_read_struct_type)
10144 (coff_read_enum_type): Ditto.
10145 * cp-namespace.c (initialize_namespace_symtab)
10146 (check_one_possible_namespace_symbol): Ditto.
10147 * dwarf2read.c (new_symbol, dwarf2_const_value, macro_start_file)
10148 (dwarf2_symbol_mark_computed): Ditto.
10149 * dwarfread.c (enum_type, new_symbol, synthesize_typedef): Ditto.
10150 * elfread.c (elf_symtab_read): Ditto.
10151 * hpread.c (hpread_symfile_init, hpread_symfile_init)
10152 (hpread_read_enum_type, hpread_read_function_type)
10153 (hpread_read_doc_function_type, hpread_process_one_debug_symbol):
10154 Ditto.
10155 * jv-lang.c (get_java_class_symtab, add_class_symbol)
10156 (java_link_class_type): Ditto.
10157 * mdebugread.c (parse_symbol, psymtab_to_symtab_1, new_symtab)
10158 (new_symbol): Ditto.
10159 * minsyms.c (install_minimal_symbols): Ditto.
10160 * objfiles.c (allocate_objfile): Remove init of symbol_obstack.
10161 (terminate_minimal_symbol_table): Replace symbol_obstack with
10162 objfile_obstack.
10163 (free_objfile): Remove freeing of symbol_obstack.
10164 * objfiles.h: Remove symbol_obstack field.
10165 * pa64solib.c (add_to_solist): Replace symbol_obstack with
10166 objfile_obstack.
10167 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
10168 symbol_obstack.
10169 (solib_add_common_symbols): Replace symbol_obstack with
10170 objfile_obstack.
10171 * somsolib.c (som_solib_add): Ditto.
10172 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
10173 (common_block_start, common_block_end): Ditto.
10174 * symfile.c (reread_symbols): Remove freeing and init of
10175 symbol_obstack.
10176 (allocate_symtab): Rename symbol_obstack to objfile_obstack.
10177 * symfile.h: Update comment.
10178 * symmisc.c (print_objfile_statistics): Remove symbol_obstack
10179 stats printing.
10180 * symtab.c (symbol_set_names): Replace symbol_obstack with
10181 objfile_obstack.
10182 * symtab.h (struct general_symbol_info, struct minimal_symbol):
10183 Update comments.
10184 * xcoffread.c (read_xcoff_symtab, SYMBOL_DUP, SYMNAME_ALLOC)
10185 (init_stringtab, xcoff_initial_scan): Replace symbol_obstack with
10186 objfile_obstack.
10187
10188 2004-02-07 Andrew Cagney <cagney@redhat.com>
10189
10190 * tui/tui.h: Do not include <stdarg.h>, <string.h>, and
10191 "ansidecl.h". Do not undef "reg" and "chtype". Fix case of
10192 fields and variables.
10193 * tui/tui-wingeneral.h (m_beVisible): Delete macro.
10194 (m_beInvisible): Delete macro.
10195 * tui/tui-data.h: Fix case case fields and variables.
10196 (m_genWinPtrIsNull): Delete macro.
10197 (tui_win_list): Rename winList.
10198 (TUI_SRC_WIN): Rename srcWin.
10199 (TUI_DISASM_WIN): Rename disassemWin.
10200 (TUI_DATA_WIN): Rename dataWin.
10201 (TUI_CMD_WIN): Rename cmdWin.
10202 (m_genWinPtrNotNull): Delete macro.
10203 (m_winPtrIsNull): Delete macro.
10204 (m_winPtrNotNull): Delete macro.
10205 (tui_win_is_source_type): Replace m_winIsSourceType
10206 (tui_win_is_auxillary): Replace m_winIsAuzillary.
10207 (tui_win_has_locator): Replace m_hasLocator.
10208 (tui_set_win_highlight): Replace m_setWinHighlightOn and
10209 m_setWinHighlightOff.
10210 * tui/tui-data.c: Update references.
10211 (tui_win_is_source_type, tui_set_win_highlight): New functions.
10212 (tui_win_has_locator, tui_win_is_auxillary): New functions.
10213 * tui/tui-command.c, tui/tui-disasm.c: Update references.
10214 * tui/tui-io.c, tui/tui-layout.c, tui/tui-regs.c: Ditto.
10215 * tui/tui-regs.h, tui/tui-source.c, tui/tui-stack.c: Ditto.
10216 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
10217 * tui/tui-winsource.c, tui/tui.c: Ditto.
10218
10219 2004-02-07 Mark Kettenis <kettenis@gnu.org>
10220
10221 * sparc-tdep.h (sparc_fetch_wcookie): New prototype.
10222 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Handle
10223 StackGhost.
10224
10225 * sparc-tdep.c (sparc32_frame_prev_register): Rename local
10226 variable `i6' to `i7'.
10227 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
10228
10229 2004-02-07 Andrew Cagney <cagney@redhat.com>
10230
10231 * tui/tui.h (Opaque, OpaquePtr OpaqueList): Delete definition.
10232 (TuiPoint, TuiPointPtr): Ditto.
10233 (TuiStatus, TuiStatusPtr): Ditto.
10234 (TuiWinType, TuiWinTypePtr): Ditto.
10235 (struct tui_point): Rename _TuiPoint.
10236 (tui_get_low_disassembly_address): Rename
10237 tuiGetLowDisassemblyAddress.
10238 (tui_update_all_exec_infos): Rename tuiUpdateAllExecInfos.
10239 (tuiFree): Delete declaration.
10240 (OpaqueFuncPtr, TuiOpaqueFuncPtr): Delete definitions.
10241 (TuiVoidFuncPtr, TuiIntFuncPtr): Delete definitions.
10242 * tui/tui.c (tuiFree): Delete function.
10243 * cli/cli-cmds.c (disassemble_command): Update references.
10244 * tui/tui-data.c, tui/tui-data.h, tui/tui-disasm.c: Ditto.
10245 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
10246 * tui/tui-stack.c, tui/tui-win.c, tui/tui-wingeneral.c: Ditto.
10247 * tui/tui-winsource.c: Ditto.
10248
10249 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
10250
10251 * dbxread.c (dbx_symfile_init, start_psymtab, end_psymtab,
10252 coffstab_build_psymtabs, elfstab_build_psymtabs)
10253 (stabsect_build_psymtabs): Replace psymbol_obstack with
10254 objfile_obstack.
10255 * dwarf2-frame.c (decode_frame_entry_1): Ditto.
10256 * dwarf2read.c (dwarf2_build_psymtabs_hard, dwarf2_read_section):
10257 Ditto.
10258 * dwarfread.c (scan_compilation_units): Ditto.
10259 * elfread.c (elfstab_offset_sections): Ditto.
10260 * hppa-tdep.c (read_unwind_info): Ditto.
10261 * hpread.c (hpread_build_psymtabs, hpread_start_psymtab)
10262 (hpread_end_psymtab): Ditto.
10263 * mdebugread.c (mdebug_build_psymtabs, add_pending)
10264 (parse_partial_symbols, new_psymtab, elfmdebug_build_psymtabs):
10265 Ditto.
10266 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
10267 * objfiles.c (add_to_objfile_sections)
10268 (build_objfile_section_table): Ditto.
10269 (allocate_objfile): Remove init of psymbol_obstack.
10270 (free_objfile): Remove freeing of psymbol_obstack.
10271 * objfiles.h (struct objfile): Remove field
10272 psymbol_obstack. Update comments.
10273 * pa64solib.c (pa64_solib_add_solib_objfile): Replace
10274 psymbol_obstack with objfile_obstack.
10275 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
10276 psymbol_obstack.
10277 * somread.c (som_symfile_offsets, init_import_symbols)
10278 (init_export_symbols): Replace psymbol_obstack with
10279 objfile_obstack.
10280 * somsolib.c (som_solib_add_solib_objfile): Ditto.
10281 * symfile.c (default_symfile_offsets, syms_from_objfile)
10282 (reread_symbols): Remove freeing and init of psymbol_obstack.
10283 (cashier_psymtab): Update comment.
10284 * symmisc.c (print_objfile_statistics): Don't report stats for
10285 psymbol obstack.
10286 * symtab.h (struct general_symbol_info, struct partial_symtab):
10287 Update comments.
10288 * xcoffread.c (xcoff_start_psymtab, xcoff_end_psymtab, swap_sym)
10289 (xcoff_symfile_offsets): Replace psymbol_obstack with
10290 objfile_obstack.
10291
10292 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
10293
10294 * objfiles.h (struct objfile): Add objfile_obstack field.
10295 Remove type_obstack field.
10296
10297 * dwarf2read.c (dwarf2_add_field,dwarf2_add_member_fn,
10298 read_structure_scope read_enumeration, new_symbol): Replace
10299 type_obstack with objfile_obstack.
10300 * dwarfread.c (struct_type, enum_type): Ditto.
10301 * gdbtypes.c (alloc_type, alloc_type_instance, init_type)
10302 (lookup_fundamental_type): Ditto.
10303 * gdbtypes.h (TYPE_ALLOC): Ditto.
10304 * hpread.c (hpread_read_enum_type, hpread_read_function_type)
10305 (hpread_read_doc_function_type, hpread_read_struct_type)
10306 (fix_static_member_physnames, hpread_read_array_type)
10307 (hpread_read_subrange_type, hpread_type_lookup): Ditto.
10308 * jv-lang.c (java_lookup_class, type_from_class, type_from_class)
10309 (java_link_class_type): Ditto.
10310 * mdebugread.c (parse_type): Ditto.
10311 * objfiles.c (allocate_objfile, free_objfile): Ditto.
10312 * solib-sunos.c (solib_add_common_symbols): Ditto.
10313 * stabsread.c (define_symbol, read_type, read_member_functions,
10314 read_cpp_abbrev, read_one_struct_field): Ditto.
10315 * symfile.c (reread_symbols): Ditto.
10316 * symmisc.c (print_objfile_statistics): Ditto.
10317
10318 2004-02-07 Andrew Cagney <cagney@redhat.com>
10319
10320 * tui/tui-data.h (tui_win_element): Rename TuiWinElement.
10321 (tui_exec_info_content): Rename TuiExecInfoContent.
10322 (TuiGenWinInfo, TuiGenWinInfoPtr): Delete definitions.
10323 (TuiWinInfo, TuiWinInfoPtr): Ditto.
10324 (TuiScrollDirection, TuiScrollDirectionPtr): Ditto.
10325 (TuiList, TuiListPtr): Ditto.
10326 (TuiLayoutType, TuiLayoutTypePtr): Ditto.
10327 (TuiDataType, TuiDataTypePtr): Ditto.
10328 (TuiRegisterDisplayType, TuiRegisterDisplayTypePtr): Ditto.
10329 (TuiLineOrAddress, TuiLineOrAddressPtr): Ditto.
10330 (TuiLayoutDef, TuiLayoutDefPtr): Ditto.
10331 (TuiSourceElement, TuiSourceElementPtr): Ditto.
10332 (TuiDataElement, TuiDataElementPtr): Ditto.
10333 (TuiWinElement, TuiWinElementPtr): Ditto.
10334 (TuiDataInfo, TuiDataInfoPtr): Ditto.
10335 (TuiCommandElement, TuiCommandElementPtr): Ditto.
10336 (TuiLocatorElement, TuiLocatorElementPtr): Ditto.
10337 (TuiWhichElement, TuiWhichElementPtr): Ditto.
10338 (TuiSourceInfo, TuiSourceInfoPtr): Ditto.
10339 (TuiCommandInfo, TuiCommandInfoPtr): Ditto.
10340 * tui/tui-command.c, tui/tui-data.c: Update references.
10341 * tui/tui-data.h, tui/tui-disasm.c, tui/tui-layout.c: Ditto.
10342 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
10343 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
10344 * tui/tui-winsource.c, tui/tui.c: Ditto.
10345
10346 2004-02-07 Mark Kettenis <kettenis@gnu.org>
10347
10348 * dwarf2-frame.h: Update copyright.
10349 (enum dwarf2_frame_reg_rule): New.
10350 (struct dwarf2_frame_state_reg): New.
10351 (dwarf2_frame_sniffer, dwarf2_frame_base_sniffer): Make extern.
10352 * dwarf2-frame.c: Update copyright.
10353 (enum dwarf2_reg_rule): Remove.
10354 (struct dwarf2_frame_state): Remove defenition of `struct
10355 dwarf2_frame_state_reg'.
10356 (read_reg): Call get_frame_arch to get the architecture instead of
10357 using CURRENT_GDBARCH.
10358 (execute_cfa_program): Prefix old `enum dwarf2_reg_rule' tags with
10359 DWARF2_FRAME_.
10360 (dwarf2_frame_init_reg): New function.
10361 (dwarf2_frame_cache): Call get_frame_arch to get the architecture
10362 instead of using CURRENT_GDBARCH. Call dwarf2_frame_init_reg to
10363 initialize the register state. Prefix old `enum dwarf2_reg_rule'
10364 tags with DWARF2_FRAME_.
10365 (dwarf2_frame_prev_register): Call get_frame_arch to get the
10366 architecture instead of using CURRENT_GDBARCH. Prefix old `enum
10367 dwarf2_reg_rule' tags with DWARF2_FRAME_.
10368
10369 2004-02-06 Andrew Cagney <cagney@redhat.com>
10370
10371 * tui/tui-data.h (struct tui_list): Rename _TuiList.
10372 (enum tui_data_type): Rename _TuiDataType.
10373 (struct tui_layout_def): Rename _TuiLayoutDef.
10374 (struct tui_source_element): Rename _TuiSourceElement.
10375 (struct tui_data_element): Rename _TuiDataElement.
10376 (struct tui_command_element): Rename _TuiCommandElement.
10377 (struct tui_locator_element): Rename _TuiLocatorElement.
10378 (union tui_which_element): Define.
10379 (struct tui_win_element): Rename _TuiWinElement.
10380 (struct tui_data_info): Rename _TuiDataInfo.
10381 (struct tui_source_info): Rename _TuiSourceInfo.
10382 (struct tui_command_info): Rename _TuiCommandInfo.
10383 (tui_initialize_static_data): Rename initializeStaticData.
10384 (tui_alloc_generic_win_info): Rename allocGenericWinInfo.
10385 (tui_alloc_win_info): Rename allocWinInfo.
10386 (tui_init_generic_part): Rename initGenericPart.
10387 (tui_init_win_info): Rename initWinInfo.
10388 (tui_alloc_content): Rename allocContent.
10389 (tui_add_content_elements): Rename addContentElements.
10390 (tui_init_content_element): Rename initContentElement.
10391 (tui_free_window): Rename freeWindow.
10392 (tui_free_win_content): Rename freeWinContent.
10393 (tui_free_data_content): Rename freeDataContent.
10394 (tui_free_all_source_wins_content): Rename
10395 freeAllSourceWinsContent.
10396 (tui_del_window): Rename tuiDelWindow.
10397 (tui_del_data_windows): Rename tuiDelDataWindows.
10398 (tui_partial_win_by_name): Rename partialWinByName.
10399 (tui_win_name): Rename winName.
10400 (tui_current_layout): Rename currentLayout.
10401 (tui_set_current_layout_to): Rename setCurrentLayoutTo.
10402 (tui_term_height): Rename termHeight.
10403 (tui_set_term_height_to): Rename setTermHeightTo.
10404 (tui_term_width): Rename termWidth.
10405 (tui_set_term_width_to): Rename setTermWidthTo.
10406 (tui_set_gen_win_origin): Rename setGenWinOrigin.
10407 (tui_locator_win_info_ptr): Rename locatorWinInfoPtr.
10408 (tui_source_exec_info_win_ptr): Rename tui_gen_win_info.
10409 (tui_disassem_exec_info_win_ptr): Rename disassemExecInfoWinPtr.
10410 (tui_source_windows): Rename sourceWindows.
10411 (tui_clear_source_windows): Rename clearSourceWindows.
10412 (tui_clear_source_windows_detail): Rename
10413 clearSourceWindowsDetail.
10414 (tui_clear_win_detail): Rename clearWinDetail.
10415 (tui_add_to_source_windows): Rename tuiAddToSourceWindows.
10416 (tui_default_tab_len): Rename tuiDefaultTabLen.
10417 (tui_set_default_tab_len): Rename tuiSetDefaultTabLen.
10418 (tui_win_with_focus): Rename tuiWinWithFocus.
10419 (tui_set_win_with_focus): Rename tuiSetWinWithFocus.
10420 (tui_layout_def): Rename tuiLayoutDef.
10421 (tui_win_resized): Rename tuiWinResized.
10422 (tui_set_win_resized_to): Rename tuiSetWinResizedTo.
10423 (tui_next_win): Rename tuiNextWin.
10424 (tui_prev_win): Rename tuiPrevWin.
10425 (tui_add_to_source_windows): Rename addToSourceWindows.
10426 * tui/tui-winsource.c, tui/tui-win.c: Update references.
10427 * tui/tui-layout.c, tui/tui-source.c: Ditto.
10428 * tui/tui-stack.c, tui/tui-io.c: Ditto.
10429 * tui/tui.c, tui/tui-data.c: Ditto.
10430 * tui/tui-interp.c, tui/tui-data.c: Ditto.
10431 * tui/tui-disasm.c, tui/tui-command.c: Ditto.
10432
10433 * tui/tui-source.h: Update copyright. Include "tui-data.h".
10434 (struct symtab): Declare.
10435 (tui_set_source_content): Rename tuiSetSourceContent.
10436 (tui_show_symtab_source): Rename tuiShowSource.
10437 (tui_source_is_displayed): Rename tuiSourceIsDisplayed.
10438 (tui_vertical_source_scroll): Rename tuiVerticalSourceScroll.
10439 * tui/tui-source.c: Update copyright. Update references.
10440 * tui/tui-win.c, tui/tui-winsource.c: Update references.
10441 * tui/tui-stack.c: Update references.
10442
10443 * tui/tui-win.h: Update copyright. Include "tui-data.h".
10444 (struct tui_win_info): Declare.
10445 (tui_scroll_forward): Rename tuiScrollForward.
10446 (tui_scroll_backward): Rename tuiScrollBackward.
10447 (tui_scroll_left): Rename tuiScrollLeft.
10448 (tui_scroll_right): Rename tuiScrollRight.
10449 (tui_set_win_focus_to): Rename tuiSetWinFocusTo.
10450 (tui_resize_all): Rename tuiResizeAll.
10451 (tui_refresh_all_win): Rename tuiRefreshAll.
10452 (tui_sigwinch_handler): Rename tuiSigwinchHandler.
10453 * tui/tui-layout.c, * tui/tui-io.c: Update references.
10454 * tui/tui-wingeneral.h, * tui/tui.c: Update references.
10455 * tui/tui-disasm.c, * tui/tui-command.c: Update references.
10456
10457 * tui/tui-windata.h: Update copyright. Include "tui-data.h".
10458 (tui_erase_data_content): Rename tuiEraseDataContent.
10459 (tui_display_all_data): Rename tuiDisplayAllData.
10460 (tui_check_data_values): Rename tuiCheckDataValues.
10461 (tui_display_data_from_line): Rename tuiDisplayDataFromLine.
10462 (tui_first_data_item_displayed): Rename tuiFirstDataItemDisplayed.
10463 (tui_first_data_element_no_in_line): Rename
10464 tuiFirstDataElementNoInLine.
10465 (tui_delete_data_content_windows): Rename
10466 tuiDeleteDataContentWindows.
10467 (tui_refresh_data_win): Rename tuiRefreshDataWin.
10468 (tui_display_data_from): Rename tuiDisplayDataFrom.
10469 (tui_vertical_data_scroll): Rename tuiVerticalDataScroll.
10470 * tui/tui-windata.c, tui/tui-hooks.c: Update references.
10471 * tui/tui-win.c, tui/tui-regs.c: Update references.
10472 * tui/tui-layout.c, tui/tui.c: Update references.
10473
10474 * tui/tui-wingeneral.h: Update copyright.
10475 (m_allBeVisible): Delete macro.
10476 (m_allBeInvisible): Delete macro.
10477 (struct tui_gen_win_info): Declare.
10478 (struct tui_win_info): Declare.
10479 (tui_unhighlight_win): Rename unhighlightWin.
10480 (tui_make_visible, tui_make_invisible): Replace makeVisible.
10481 (tui_make_all_visible, tui_make_all_invisible): Replace makeAllVisible.
10482 (tui_make_window): Rename makeWindow.
10483 (tui_copy_win): Rename copyWin.
10484 (tui_box_win): Rename boxWin.
10485 (tui_highlight_win): Rename highlightWin.
10486 (tui_check_and_display_highlight_if_needed): Rename
10487 checkAndDisplayHighlightIfNeeded.
10488 (tui_refresh_all): Rename refreshAll.
10489 (tui_delete_win): Rename tuiDelwin.
10490 (tui_refresh_win): Rename tuiRefreshWin.
10491 * tui/tui-wingeneral.c (make_visible): Rename makeVisible.
10492 (tui_make_visible, tui_make_invisible): New functions.
10493 (tui_make_all_visible, tui_make_all_invisible): New functions.
10494 (make_all_visible): Rename makeAllVisible.
10495 * tui/tui-winsource.c, tui/tui-windata.c: Update references.
10496 * tui/tui-data.c, tui/tui-winsource.c: Update references.
10497 * tui/tui-windata.c, tui/tui-win.c: Update references.
10498 * tui/tui-regs.c, tui/tui-layout.c: Update references.
10499 * tui/tui-data.h (struct tui_gen_win_info): Rename _TuiGenWinInfo.
10500
10501 2004-02-06 Mark Kettenis <kettenis@gnu.org>
10502
10503 * proc-api.c (write_with_trace): Initialize local variable to
10504 silence compiler warning.
10505
10506 2004-02-06 Andrew Cagney <cagney@redhat.com>
10507
10508 * tui/tui-source.h: Do not include "defs.h".
10509 (struct tui_win_info): Declare.
10510 (tui_set_source_content_nil): Declare.
10511 * tui/tui-data.h (struct tui_win_info): Rename _TuiWinInfo.
10512 (union tui_line_or_address): Rename _TuiLineOrAddress.
10513 * tui/tui-winsource.h: Update copyright. Include "tui-data.h".
10514 (tui_update_source_window): Rename tuiUpdateSourceWindow.
10515 (tui_update_source_window_as_is): Rename
10516 tuiUpdateSourceWindowAsIs.
10517 (tui_update_source_windows_with_addr): Rename
10518 tuiUpdateSourceWindowsWithAddr.
10519 (tui_update_source_windows_with_line): Rename
10520 tuiUpdateSourceWindowsWithLine.
10521 (tui_clear_source_content): Rename tuiClearSourceContent.
10522 (tui_erase_source_content): Rename tuiEraseSourceContent.
10523 (tui_set_source_content_nil): Rename tuiSetSourceContentNil.
10524 (tui_show_source_content): Rename tuiShowSourceContent.
10525 (tui_horizontal_source_scroll): Rename tuiHorizontalSourceScroll.
10526 (tui_set_exec_info_content): Rename tuiSetExecInfoContent.
10527 (tui_show_exec_info_content): Rename tuiShowExecInfoContent.
10528 (tui_erase_exec_info_content): Rename tuiEraseExecInfoContent.
10529 (tui_clear_exec_info_content): Rename tuiClearExecInfoContent.
10530 (tui_update_exec_info): Rename tuiUpdateExecInfo.
10531 (tui_set_is_exec_point_at): Rename tuiSetIsExecPointAt.
10532 (tui_alloc_source_buffer): Rename tuiAllocSourceBuffer.
10533 (tui_line_is_displayed): Rename tuiLineIsDisplayed.
10534 (tui_addr_is_displayed): Rename tuiAddrIsDisplayed.
10535 (struct tui_win_info): Declare.
10536 * tui/tui-stack.c: Update references.
10537 * tui/tui-layout.c, tui/tui-winsource.c: Ditto.
10538 * tui/tui-win.c, tui/tui-source.c: Ditto.
10539 * tui/tui.c, tui/tui-disasm.c: Ditto.
10540
10541 2004-02-06 Mark Kettenis <kettenis@gnu.org>
10542
10543 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Fix calculation
10544 of UCONTEXT_ADDR. Fixes PR backtrace/1545.
10545
10546 2004-02-05 Mark Kettenis <kettenis@gnu.org>
10547
10548 * infrun.c (handle_inferior_event): Allow for breakpoint
10549 instructions to generate a SIGSEGV in addition to SIGTRAP, SIGILL
10550 and SIGEMT. Update comments.
10551 * NEWS (Revised SPARC target): Mention support for non-executable
10552 stack.
10553
10554 2004-02-04 Mark Kettenis <kettenis@gnu.org>
10555
10556 * target.h (target_object): Add TARGET_OBJECT_WCOOKIE.
10557 * inftarg.c: Update copyright year.
10558 (child_xfer_partial): Add support for TARGET_OBJECT_WCOOKIE.
10559 * sparc-nat.c: Include "target.h" and "gdb_assert.h".
10560 (sparc_xfer_wcookie): New function.
10561 * sparc-tdep.c (sparc_fetch_wcookie): New function.
10562 * Makefile.in (sparc-nat.o): Update dependencies.
10563 * config/sparc/nm-nbsd.h: Include "target.h".
10564 (NATIVE_XFER_WCOOKIE): New define.
10565 (sparc_xfer_wcookie): New prototype.
10566
10567 2004-02-04 Andrew Cagney <cagney@redhat.com>
10568
10569 * m68k-tdep.c (m68k_saved_pc_after_call): Delete #ifdef
10570 SYSCALL_TRAP function.
10571 (m68k_gdbarch_init): Delete #ifdef SYSCALL_TRAP code.
10572
10573 2004-02-04 Andrew Cagney <cagney@redhat.com>
10574 Daniel Jacobowitz <drow@mvista.com>
10575
10576 * objfiles.h: Delete comments refering to inside_entry_func and
10577 DEPRECATED_FRAME_CHAIN_VALID.
10578 * defs.h (inside_entry_func): Update prototype..
10579 * blockframe.c (inside_entry_func): Rename to
10580 legacy_inside_entry_func. Add new inside_entry_func taking a frame.
10581 * frame.c (get_prev_frame): Pass the frame to inside_entry_func.
10582
10583 2004-02-03 Jeff Johnston <jjohnstn@redhat.com>
10584
10585 * breakpoint.c (struct captured_parse_breakpoint_args): Move
10586 outside of #ifdef SOLIB_ADD region.
10587 (do_restore_lang_radix_cleanup): Ditto.
10588 (resolve_pending_breakpoint): Ditto.
10589
10590 2004-02-03 Andrew Cagney <cagney@redhat.com>
10591
10592 * ia64-tdep.c (read_sigcontext_register): Delete unused function.
10593 (process_note_abi_tag_sections): Delete unused function.
10594 (ia64_read_fp): Delete unused function.
10595 (gdbarch_extract_struct_value_address): Delete declaration.
10596
10597 2004-02-02 Andrew Cagney <cagney@redhat.com>
10598
10599 * vax-tdep.c (vax_frame_chain): Delete call to
10600 deprecated_inside_entry_file.
10601 * ns32k-tdep.c (ns32k_frame_chain): Ditto.
10602
10603 2004-02-02 Mark Kettenis <kettenis@gnu.org>
10604
10605 * dwarf2-frame.c (dwarf2_frame_cache): Deal with a return address
10606 column that's "empty" or "same value" when eliminating REG_RA
10607 rules.
10608
10609 2004-02-02 Jeff Johnston <jjohnstn@redhat.com>
10610
10611 * NEWS: Add information about new pending breakpoint support.
10612
10613 2004-02-02 Jeff Johnston <jjohnstn@redhat.com>
10614
10615 * breakpoint.h (struct breakpoint): Add new flag, from_tty,
10616 and pending fields for pending breakpoint support.
10617 * breakpoint.c (breakpoint_enabled): Add check for not pending.
10618 (condition_command): Only parse condition if not a pending
10619 breakpoint.
10620 (print_one_breakpoint): Add support for pending breakpoints.
10621 (describe_other_breakpoints): Add checks to verify we are not
10622 dealing with pending breakpoints.
10623 (check_duplicates): Don't check pending breakpoints.
10624 (set_raw_breakpoint): Initialize pending flag.
10625 (do_restore_lang_radix_cleanup): New cleanup routine.
10626 (resolve_pending_breakpoint): New function.
10627 (re_enable_breakpoints_in_shlibs): Try and resolve any
10628 pending breakpoints via resolve_pending_breakpoint.
10629 (mention): Add pending breakpoint support.
10630 (parse_breakpoint_sals): Add new parameter to pass to
10631 decode_line_1 to indicate silent errors when files or functions
10632 are not found. Change all callers.
10633 (do_captured_parse_breakpoint): New function.
10634 (break_command_1): Change prototype to return an rc value and to
10635 take an optional pending breakpoint pointer. Support creating
10636 a pending breakpoint if a "not found" form of error occurs when
10637 parsing the breakpoint. Also support resolving an existing pending
10638 breakpoint and be silent if the resolution fails.
10639 (create_breakpoints): Change prototype to take pending breakpoint
10640 pointer. When resolving a pending breakpoint, use the new pointer
10641 to provide a conditional or commands added by the end-user.
10642 (delete_breakpoint): Add appropriate check for pending.
10643 (breakpoint_re_set_one): Ditto.
10644 (do_enable_breakpoint): Ditto.
10645
10646 2004-02-02 David Carlton <carlton@kealia.com>
10647
10648 * valops.c (enum oload_classification): New.
10649 (find_overload_match): Break implementation into separate
10650 functions; delete #if 0'd code; look for symbols within
10651 namespaces.
10652 (find_oload_champ_namespace,find_oload_champ_namespace_loop)
10653 (find_oload_champ,oload_method_static,classify_oload_match): New.
10654 * cp-support.h: Add declaration for cp_func_name; update
10655 declaration for make_symbol_overload_list.
10656 * cp-support.c (cp_func_name): New.
10657 (overload_list_add_symbol): Fix comment, use
10658 SYMBOL_LINKAGE_NAME and SYMBOL_NATURAL_NAME.
10659 (make_symbol_overload_list): Take a function name and a namespace
10660 instead of a symbol; change implementation.
10661 (make_symbol_overload_list_using): New.
10662 (make_symbol_overload_list_qualified, read_in_psymtabs): New.
10663
10664 2004-02-02 Fred Fish <fnf@redhat.com>
10665
10666 * main.c (gdb_stdtarg): Move definition to group with other
10667 gdb_stdtarg definitions and update copyright years.
10668 * remote-sim.c (gdb_os_write_stderr): Write output to
10669 gdb_stdtargerr stream instead of gdb_stdtarg stream.
10670 (gdb_os_flush_stderr): Flush gdb_stdtargerr steam instead of
10671 gdb_stderr stream and update copyright years.
10672
10673 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
10674
10675 * Makefile.in (mips-linux-nat.o): Update dependencies.
10676 * mips-linux-nat.c: Include mips-tdep.h.
10677
10678 2004-02-01 Roland McGrath <roland@redhat.com>
10679
10680 * sol-thread.c (sol_thread_xfer_partial): New function.
10681 (init_sol_thread_ops): Use that for to_xfer_partial hook.
10682 (init_sol_core_ops): Likewise.
10683
10684 * procfs.c (procfs_xfer_partial): New function.
10685 (init_procfs_ops): Use that for procfs_ops.to_xfer_partial.
10686 * Makefile.in (procfs.o): Add $(auxv_h) dep.
10687
10688 * config/nm-linux.h (NATIVE_XFER_AUXV): New macro, uses auxv.c's
10689 procfs_xfer_auxv function.
10690
10691 * procfs.c (procfs_make_note_section): If we can read
10692 TARGET_OBJECT_AUXV data, add an NT_AUXV note containing it.
10693 * linux-proc.c (linux_make_note_section): Likewise.
10694
10695 * auxv.h: New file.
10696 * auxv.c: New file.
10697 * Makefile.in (auxv_h): New variable.
10698 (COMMON_OBS): Add auxv.o here.
10699 (auxv.o): New target.
10700
10701 * corelow.c (core_xfer_partial): New function.
10702 (init_core_ops): Use it for core_ops.to_xfer_partial.
10703
10704 * target.h (enum target_object): Add TARGET_OBJECT_AUXV.
10705 * inftarg.c (child_xfer_partial): Support it using NATIVE_XFER_AUXV
10706 macro if that is defined.
10707
10708 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
10709
10710 * breakpoint.c (bpstat_stop_status): Take a ptid_t argument,
10711 and check the specified thread for each breakpoint.
10712 * breakpoint.h (bpstat_stop_status): Update prototype.
10713 * infrun.c (handle_inferior_event): Update calls to
10714 bpstat_stop_status.
10715
10716 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
10717
10718 * Makefile.in (cli-cmds.o): Add $(readline_h).
10719
10720 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
10721
10722 * cli/cli-cmds.c: Include readline.h.
10723 (complete_command): Pass the start of the last word to
10724 complete_line.
10725
10726 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
10727
10728 * breakpoint.c (bpstat_stop_status): Remove not_a_sw_breakpoint
10729 argument, and change first argument to a CORE_ADDR.
10730 * breakpoint.h (bpstat_stop_status): Update prototype.
10731 * infrun.c (adjust_pc_after_break): Add a new comment.
10732 (handle_inferior_event): Update calls to bpstat_stop_status.
10733
10734 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
10735
10736 * breakpoint.h: Update copyright years.
10737
10738 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
10739
10740 * breakpoint.c (software_breakpoint_inserted_here_p): New function.
10741 (bpstat_stop_status): Don't decrement PC.
10742 * breakpoint.h (software_breakpoint_inserted_here_p): Add
10743 prototype.
10744 * infrun.c (adjust_pc_after_break): New function.
10745 (handle_inferior_event): Call it, early. Remove later references
10746 to DECR_PC_AFTER_BREAK.
10747 (normal_stop): Add commentary.
10748
10749 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
10750
10751 * breakpoint.c (breakpoint_re_set_one): Add missing chunk of
10752 2004-01-27 double-free fix.
10753
10754 2004-01-31 Mark Kettenis <kettenis@gnu.org>
10755
10756 * sparc-tdep.c (sparc_fetch_wcookie): New function.
10757 (sparc32_frame_prev_register): Handle StackGhost.
10758 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
10759
10760 2004-01-29 Roland McGrath <roland@redhat.com>
10761
10762 * configure.in (NEW_PROC_API): Also match solaris2.9 for this test.
10763 * configure: Regenerated.
10764
10765 * procfs.c: Include gdb_string.h for str* decls, otherwise warnings.
10766 * Makefile.in (procfs.o): Add dep.
10767
10768 2004-01-28 Andrew Cagney <cagney@redhat.com>
10769
10770 * tui/tui-stack.h: Update copyright.
10771 (struct frame_info): Add opaque declaration.
10772 (tui_update_locator_filename): Rename tuiUpdateLocatorFilename.
10773 (tui_show_locator_content): Rename tuiShowLocatorContent.
10774 (tui_show_frame_info): Rename tuiShowFrameInfo.
10775 * tui/tui-stack.c: Update copyright. Update references.
10776 * tui/tui-winsource.c: Update references.
10777 * tui/tui-win.c: Update references.
10778 * tui/tui-layout.c: Update references.
10779 * tui/tui-hooks.c: Update copyright, update references.
10780 * tui/tui.c: Update copyright, update references.
10781 * tui/tui-disasm.c: Update references.
10782
10783 2004-01-28 David Carlton <carlton@kealia.com>
10784
10785 * dwarf2read.c (add_partial_structure): Use demangled name if
10786 namespace equals "".
10787
10788 2004-01-27 Jim Blandy <jimb@redhat.com>
10789
10790 Clean up misapplied patch:
10791 * dwarf2read.c (determine_prefix): Change one of the two forward
10792 declarations for 'determine_prefix_aux' to a declaration for this.
10793 (read_func_scope): Use cu->language, not cu_language. Pass 'cu'
10794 argument to 'die_specification'.
10795
10796 * dwarf2read.c (read_func_scope): Re-indent comment.
10797
10798 2004-01-27 Paul N. Hilfinger <hilfinger@gnat.com>
10799
10800 * breakpoint.c (breakpoint_re_set_one): Set b->cond, b->val, and
10801 b->exp to NULL after freeing so that error during re-parsing or
10802 evaluation of expressions associated with breakpoint don't
10803 eventually lead to re-freeing of storage.
10804 Committed by Andrew Cagney.
10805
10806 2004-01-27 Andrew Cagney <cagney@redhat.com>
10807
10808 * source.c (ambiguous_line_spec): Delete undefined declaration.
10809 * m32r-rom.c (m32r_set_board_address): Delete unused function.
10810 (m32r_set_server_address, m32r_set_download_path): Ditto.
10811 * remote-fileio.c (remote_fileio_to_fio_int): Ditto.
10812
10813 2004-01-27 Daniel Jacobowitz <drow@mvista.com>
10814
10815 * dwarf2read.c: Update calls to changed and renamed functions, and
10816 references to moved variables.
10817
10818 (struct dwarf2_cu): Add first_fn, last_fn, cached_fn,
10819 language, language_defn, list_in_scope, and ftypes members.
10820 (cu_first_fn, cu_last_fn, cu_cached_fn, cu_language)
10821 (cu_language_defn, list_in_scope, ftypes, cu_header_offset)
10822 (baseaddr): Remove globals.
10823
10824 (dwarf_attr): Renamed to dwarf2_attr. Add CU argument.
10825 (set_cu_language, die_is_declaration, die_specification)
10826 (determine_prefix, determin_prefix_aux, class_name, namespace_name)
10827 (dwarf2_linkage_name, dwarf2_name, dwarf2_extension)
10828 (dwarf2_get_ref_die_offset, dwarf2_fundamental_type)
10829 (initialize_cu_func_list, add_to_cu_func_list): Add CU argument.
10830
10831 (dwarf2_build_psymtabs_hard): Add local baseaddr. Initialize
10832 cu.list_in_scope. Don't initialize cu_header_offset.
10833 (add_partial_symbol): Add local baseaddr.
10834 (psymtab_to_symtab_1): Add local baseaddr. Use
10835 objfile->section_offsets for consistency. Don't initialize
10836 cu_header_offset; do initialize cu.header.offset and
10837 cu.list_in_scope.
10838 (read_file_scope, read_func_scope, read_lexical_block_scope)
10839 (dwarf_decode_lines, new_symbol): Add local baseaddr.
10840
10841 2004-01-27 Michael Chastain <mec.gnu@mindspring.com>
10842
10843 * PROBLEMS: Add gdb/1516.
10844
10845 2003-12-29 Robert Millan <robertmh@gnu.org>
10846
10847 Patch committed by Andrw Cagney.
10848 * configure.host: Match knetbsd*-gnu and kfreebsd*-gnu.
10849 * configure.tgt: Match knetbsd*-gnu.
10850
10851 2004-01-26 Andrew Cagney <cagney@redhat.com>
10852
10853 * breakpoint.c (catch_command_1): Delete #ifdef code.
10854 (catch_fork_command_1): Delete #ifdef wrapper.
10855 (catch_exec_command_1): Ditto.
10856 (catch_load_command_1): Ditto.
10857 (catch_unload_command_1): Ditto.
10858
10859 * breakpoint.c (watchpoint_check): Delete #if0ed variable.
10860 (catch_breakpoint): Delete #if0ed function.
10861 (disable_catch_breakpoint): Ditto.
10862 (delete_catch_breakpoint, enable_catch_breakpoint): Ditto.
10863 (disable_catch, enable_catch, delete_catch): Ditto.
10864
10865 2004-01-26 Andrew Cagney <cagney@redhat.com>
10866
10867 * remote.c (echo_check, quit_flag): Delete variables.
10868 (cisco_kernel_mode): Delete variable.
10869 (minitelnet_return, tty_input, escape_count): Delete variables.
10870 (remote_cisco_mode): Delete variable.
10871 (remote_cisco_open, remote_cisco_close): Delete function.
10872 (remote_cisco_mourn, remote_cisco_wait): Delete function.
10873 (init_remote_cisco_ops): Delete function.
10874 (_initialize_remote): Do not install "remote cisco" code.
10875 (read_frame): Delete cisco specific code.
10876 (remote_info_process): Delete function.
10877 (remote_wait): Delete cisco specific code.
10878 (remote_cisco_section_offsets): Delete function.
10879 (remote_cisco_objfile_relocate): Delete function.
10880 (remote_async_wait): Delete cisco specific code.
10881 (minitelnet, readtty, readsocket): Delete function.
10882
10883 2004-01-26 Andrew Cagney <cagney@redhat.com>
10884
10885 * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS): Deprecate. Add
10886 comments mentioning extract_returned_value_address.
10887 * infcmd.c (print_return_value): Update. Add comments on
10888 extract_returned_value_address.
10889 * stack.c (return_command): Add comments on
10890 extract_returned_value_address.
10891 * values.c: Update comment.
10892 * m32r-tdep.c: Update comment.
10893 * sparc-tdep.c: Update comment.
10894 * ia64-tdep.c (ia64_use_struct_convention): Update comment.
10895 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10896 * sh64-tdep.c (sh64_gdbarch_init): Update.
10897 * sh-tdep.c (sh_gdbarch_init): Update.
10898 * s390-tdep.c (s390_gdbarch_init): Update.
10899 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10900 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
10901 * m68k-tdep.c (m68k_gdbarch_init): Update.
10902 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10903 * m32r-tdep.c (m32r_gdbarch_init): Update.
10904 * ia64-tdep.c (ia64_gdbarch_init): Update.
10905 * h8300-tdep.c (h8300_gdbarch_init): Update.
10906 * frv-tdep.c (frv_gdbarch_init): Update.
10907 * arm-tdep.c (arm_gdbarch_init): Update.
10908 * alpha-tdep.c (alpha_gdbarch_init): Update.
10909
10910 2004-01-26 Andrew Cagney <cagney@redhat.com>
10911
10912 * dwarf2loc.c (dwarf_expr_frame_base): Use SYMBOL_OPS instead of
10913 SYMBOL_LOCATION_FUNCS
10914 (dwarf2_loclist_funcs, dwarf2_locexpr_funcs): Change type to
10915 "struct symbol_ops".
10916 * dwarf2loc.h (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Change
10917 type to "struct symbol_ops".
10918 * symtab.h (struct symbol_ops): Rename "struct location_funcs".
10919 (struct symbol): Replace ".aux_value.loc.funcs" and
10920 ".aux_value.loc.baton" with ".ops" and ".aux_value.ptr".
10921 (SYMBOL_OBJFILE): Delete macro.
10922 (SYMBOL_LOCATION_FUNCS): Delete macro.
10923 (SYMBOL_LOCATION_BATON): Update.
10924 * dwarf2read.c (dwarf2_symbol_mark_computed): Set SYMBOL_OPS
10925 intead of SYMBOL_LOCATION_FUNCS.
10926 * ax-gdb.c (gen_var_ref): Ditto.
10927 * printcmd.c (address_info): Ditto.
10928 * findvar.c (read_var_value): Ditto.
10929 (symbol_read_needs_frame): Ditto.
10930
10931 2004-01-26 Andrew Cagney <cagney@redhat.com>
10932
10933 * dwarf2read.c (read_func_scope): Document frame-base hack.
10934
10935 2004-01-25 Mark Kettenis <kettenis@gnu.org>
10936
10937 * infcmd.c (print_return_value): Plug memory leak; delete
10938 ui_stream object. Rename argument `structure_return' to
10939 `struct_return'.
10940
10941 2004-01-25 Mark Kettenis <kettenis@gnu.org>
10942
10943 * infcmd.c (print_return_value): Wrap long lines.
10944 (finish_command_continuation, finish_command): Remove unused
10945 variable `funcaddr'. Fix some coding-standards problems.
10946
10947 * sparc-tdep.c (sparc_regset_from_core_section): Check whether
10948 SECT_SIZE is large enough, not whether it's exactly the right size.
10949 (sparc32_gdbarch_init): Initialize TDEP->sizeof_gregset and
10950 TDEP->fpregset to zero.
10951
10952 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Also supply the
10953 floating-point registers for traditional NetBSD core files.
10954 (sparc32nbsd_init_abi): Initialize TDEP->sizeof_gregset and
10955 TDEP->sizeof_fpregset here.
10956
10957 2004-01-25 Mark Kettenis <kettenis@gnu.org>
10958
10959 * sparc-tdep.h (sparc32nbsd_sigcontext_saved_regs): New prototype.
10960 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): New
10961 function with code split out from
10962 sparc32nbsd_sigcontext_frame_cache.
10963 (sparc32nbsd_sigcontext_frame_cache): Use
10964 sparc32nbsd_sigcontext_saved_regs.
10965 (_initialize_sparc32nbsd_tdep): Don't register OS ABI handler for
10966 OpenBSD.
10967 * sparcobsd-tdep.c: New file.
10968 * Makefile.in (ALLDEPFILES): Add sparcobsd-tdep.c.
10969 (sparcobsd-tdep.o): New dependency.
10970 * configure.tgt (sparc-*-openbsd*): Set gdb_target to obsd.
10971 * config/sparc/obsd.mt: New file.
10972
10973 * sparc-tdep.c (sparc32_gdbarch_init): Don't require
10974 TDEP->fpregset to be initialized to enable core file register
10975 sets.
10976
10977 2004-01-24 Mark Kettenis <kettenis@gnu.org>
10978
10979 * sparc64-tdep.h (struct frame_info, struct trad_frame_saved_reg):
10980 Add opaque declarations.
10981 (sparc64nbsd_sigcontext_saved_regs): New prototype.
10982 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): New
10983 function with code split out from
10984 sparc64nbsd_sigcontext_frame_cache.
10985 (sparc64nbsd_sigcontext_frame_cache): Use
10986 sparc64nbsd_sigcontext_saved_regs.
10987 (_initialize_sparc64nbsd_tdep): Don't register OS ABI handler for
10988 OpenBSD.
10989 * sparc64obsd-tdep.c: New file.
10990 * Makefile.in (ALLDEPFILES): Add sparc64obsd-tdep.c.
10991 (sparc64obsd-tdep.o): New dependency.
10992 * configure.tgt (sparc64-*-openbsd*): Set gdb_target to obsd64 and
10993 gdb_osabi to GDB_OSABI_OPENBSD_ELF.
10994 * config/sparc/obsd64.mt: New file.
10995
10996 * sparc-tdep.c (sparc_fetch_instruction): Return zero if we can't
10997 read the instruction at PC.
10998
10999 * sparcnbsd-tdep.c (GDB_OSABI_NETBSD_CORE): Define, based on the
11000 value of GDB_OSABI_DEFAULT.
11001 (sparcnbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_CORE
11002 instead of GDB_OSABI_NETBSD_AOUT.
11003
11004 2004-01-24 Nick Roberts <nick@nick.uklinux.net>
11005
11006 * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-cmds.h: Update
11007 copyright.
11008
11009 2004-01-23 Andrew Cagney <cagney@redhat.com>
11010
11011 * printcmd.c (display_command): Replace tui_set_display call with
11012 tui_set_layout_for_display_command.
11013 * tui/tui.h (enum tui_win_type): Define.
11014 (tui_set_layout): Delete declaration.
11015 (tui_set_layout_for_display_command): Rename set_tui_layout.
11016 * tui/tui-data.h (enum tui_layout_type): Define.
11017 * tui/tui-layout.h: Update copyright. Include "tui-data.h" and
11018 "tui.h".
11019 (tui_add_win_to_layout): Rename tuiAddWinToLayout.
11020 (tui_default_win_height): Rename tuiDefaultWinHeight.
11021 (tui_default_win_viewport_height): Rename
11022 tuiDefaultWinViewportHeight.
11023 (tui_set_layout): RenametuiSetLayout.
11024 * tui/tui-layout.c: Update references.
11025 * tui/tui.c: Update references.
11026 * tui/tui-disasm.c: Update references.
11027
11028 2004-01-23 David Carlton <carlton@kealia.com>
11029
11030 Partial workaround for PR c++/1511:
11031 * cp-namespace.c: Include frame.h.
11032 (cp_lookup_transparent_type): New
11033 (cp_lookup_transparent_type_loop): New.
11034 * cp-support.h: Declare cp_lookup_transparent_type.
11035 * symtab.c (basic_lookup_transparent_type): Renamed from
11036 lookup_transparent_type.
11037 (lookup_transparent_type): Replace old body by a call to
11038 current_language->la_lookup_transparent_type.
11039 * symtab.h: Update copyright. Declare
11040 basic_lookup_transparent_type.
11041 * language.h: Update copyright.
11042 (struct language_defn): Add la_lookup_transparent_type.
11043 * language.c: Update copyright.
11044 (unknown_language_defn): Add basic_lookup_transparent_type.
11045 (auto_language_defn): Add basic_lookup_transparent_type.
11046 (local_language_defn): Add basic_lookup_transparent_type.
11047 * ada-lang.c: Update copyright.
11048 (ada_language_defn): Add basic_lookup_transparent_type.
11049 * c-lang.c: Update copyright.
11050 (c_language_defn): Add basic_lookup_transparent_type.
11051 (cplus_language_defn): Add basic_lookup_transparent_type.
11052 (asm_language_defn): Add basic_lookup_transparent_type.
11053 (minimal_language_defn): Add basic_lookup_transparent_type.
11054 * f-lang.c: Update copyright.
11055 (f_language_defn): Add basic_lookup_transparent_type.
11056 * jv-lang.c: Update copyright.
11057 (java_language_defn): Add basic_lookup_transparent_type.
11058 * m2-lang.c: Update copyright.
11059 (m2_language_defn): Add basic_lookup_transparent_type.
11060 * objc-lang.c: Update copyright.
11061 (objc_language_defn): Add basic_lookup_transparent_type.
11062 * p-lang.c: Update copyright.
11063 (p_language_defn): Add basic_lookup_transparent_type.
11064 * scm-lang.c: Update copyright.
11065 (scm_language_defn): Add basic_lookup_transparent_type.
11066 * Makefile.in (cp-namespace.o): Depend on frame.h.
11067
11068 2004-01-23 David Carlton <carlton@kealia.com>
11069
11070 Patch for PR c++/1520:
11071 * dwarf2read.c (read_func_scope): Set processing_current_prefix
11072 properly if we have a specification die.
11073 (determine_prefix_aux): Rename from determine_prefix.
11074 (determine_prefix): Like the old determine_prefix, but never
11075 returns NULL.
11076
11077 2004-01-23 Theodore A. Roth <troth@openavr.org>
11078
11079 * avr-tdep.c: Update copyright.
11080 (avr_iaddr_p): Delete unused function.
11081 (avr_saddr_p): Delete unused function.
11082
11083 2004-01-23 David Carlton <carlton@kealia.com>
11084
11085 * symfile.c (reread_symbols): Clear objfile->cp_namespace_symtab.
11086 Fix for PR symtab/1534.
11087
11088 2004-01-23 Mark Kettenis <kettenis@gnu.org>
11089
11090 * NEWS (New native configurations): Mention OpenBSD/sparc and
11091 OpenBSD/sparc64.
11092 * configure.tgt: Add sparc-*-openbsd* and sparc64-*-openbsd*.
11093 * configure.host: Likewise.
11094 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Register OS ABI
11095 handler for OpenBSD.
11096 * sparc64nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Likewise.
11097
11098 2004-01-22 Mark Kettenis <kettenis@gnu.org>
11099
11100 * sparcnbsd-tdep.c (sparcnbsd_core_osabi_sniffer): New function.
11101 (_initialize_sparnbsd_tdep): Register sparcnbsd_core_osabi_sniffer.
11102
11103 * ser-pipe.c (pipe_open): Use proper null pointer in execl call.
11104 * cli/cli-cmds.c (shell_escape): Likewise.
11105
11106 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Recognize
11107 OpenBSD .note.openbsd.ident sections.
11108
11109 2004-01-22 David Carlton <carlton@kealia.com>
11110
11111 * dwarf2read.c (psymtab_to_symtab_1): Calculate lowpc, highpc via
11112 get_scope_pc_bounds.
11113 (read_file_scope): Ditto.
11114 (get_scope_pc_bounds): New function, produced by extracting code
11115 from the above two functions, consolidating it, and adding support
11116 for DW_TAG_namespace.
11117
11118 2004-01-22 Mark Kettenis <kettenis@gnu.org>
11119
11120 * osabi.c (MAX_NOTESZ): New define.
11121 (check_note): New function.
11122 (generic_elf_osabi_sniff_abi_tag_sections): Reorganize code using
11123 check_note.
11124
11125 2004-01-21 Roland McGrath <roland@redhat.com>
11126
11127 * MAINTAINERS (write after approval): Add myself.
11128
11129 2004-01-21 Eli Zaretskii <eliz@gnu.org>
11130
11131 * utils.c (init_page_info): Move declarations of `rows' and
11132 `cols' before the __GO32__-specific code. Move the closing brace
11133 outside the #ifdef __GO32__..#endif block.
11134 [__GO32__]: Use `rows' and `cols' to avoid compiler warnings.
11135
11136 2004-01-21 Paul Brook <paul@codesourcery.com>
11137
11138 * infrun.c (handle_inferior_event): Check stop_stack_dummy if handling
11139 BPSTAT_WHAT_CHECK_SHLIBS.
11140
11141 2004-01-21 Paul Brook <paul@codesourcery.com>
11142
11143 * MAINTAINERS: Add myself to write-after-approval.
11144
11145 2004-01-20 Andrew Cagney <cagney@redhat.com>
11146
11147 * ax-gdb.c (print_axs_value): Delete unused function.
11148 * jv-lang.c (java_lookup_type): Delete unused function.
11149 * cli/cli-dump.c (dump_filetype): Delete unused function.
11150 * remote-mips.c (remote_mips_insert_hw_breakpoint)
11151 (remote_mips_remove_hw_breakpoint): Delete unused functions.
11152 (mips_getstring): Delete unused function.
11153 (pmon_insert_breakpoint): Delete #if0ed function.
11154 (PMON_MAX_BP): Delete #if0ed MACRO.
11155 (mips_pmon_bp_info): Delete #if0ed variable.
11156 (pmon_remove_breakpoint): Delete #if0ed function.
11157 * monitor.c (monitor_write_even_block): Delete unused function.
11158 (monitor_write_memory_block): Delete #if0ed code.
11159 * dink32-rom.c (dink32_load): Delete unused function.
11160 (_initialize_dink32_rom): Delete #if0ed code.
11161 * d10v-tdep.c (d10v_daddr_p): Delete unused function.
11162
11163 * tui/tui-command.c: Update references.
11164 * tui/tui-io.c: Update references.
11165 * tui/tui-command.h: Update copyright.
11166 (tui_dispatch_ctrl_char): Rename tuiDispatchCtrlChar.
11167
11168 * source.c (ambiguous_line_spec): Delete never-defined function.
11169 * remote-rdi.c (arm_rdi_mourn, arm_rdi_send): Ditto.
11170 * gdbtypes.c (add_name, add_mangled_type): Ditto.
11171 * cli/cli-cmds.c (validate_comname): Ditto.
11172
11173 * tui/tui-disasm.h: Update copyright. Include "tui.h" and
11174 "tui-data.h".
11175 (tui_set_disassem_content): Rename tuiSetDisassemContent.
11176 (tui_show_disassem): Rename tuiShowDisassem.
11177 (tui_show_disassem_and_update_source): Rename
11178 tuiVerticalDisassemScroll.
11179 (tui_vertical_disassem_scroll): Rename tuiVerticalDisassemScroll.
11180 (tui_get_begin_asm_address): Rename tuiGetBeginAsmAddress.
11181 * tui/tui.h: Update copyright.
11182 (enum tui_status): Define.
11183 * tui/tui-data.h (enum tui_scroll_direction): Define.
11184 * tui/tui-disasm.c: Update copyright. Update references.
11185 * tui/tui-winsource.c: Update copyright. Update references.
11186 * tui/tui-win.c: Update references.
11187 * tui/tui-layout.c: Update references.
11188
11189 2004-01-20 Andrew Cagney <cagney@redhat.com>
11190
11191 * mi/mi-cmd-stack.c (list_args_or_locals): Move declaration of
11192 sym2 to start of block.
11193
11194 2004-01-19 Michael Chastain <mec.gnu@mindspring.com>
11195
11196 * MAINTAINERS: Delete mmalloc.
11197 * Makefile.in: Delete MMALLOC, MMALLOC_CFLAGS, -lmmalloc, mmalloc_h.
11198 * NEWS: Mention removal of --with-malloc.
11199 * acconfig.h: Delete USE_MMALLOC, MMCHECK_FORCE.
11200 * config.in: Regenerate.
11201 * configure: Regenerate.
11202 * configure.in: Delete MMALLOC_CFLAGS, MMALLOC, --with-mmalloc,
11203 USE_MMALLOC, MMCHECK_FORCE.
11204 * gdbinit.in: Remove mmalloc.
11205 * utils.c: Delete USE_MMALLOC, NO_MMCHECK, MMCHECK_FORCE, malloc_botch.
11206 * config/alpha/alpha-linux.mh: Delete MMALLOC, MMALLOC_CFLAGS.
11207 * config/i386/go32.mh: Likewise.
11208 * config/i386/interix.mh: Likewise.
11209 * config/powerpc/xm-linux.h: Delete MMAP_BASE_ADDRESS, MMAP_INCREMENT.
11210
11211 2004-01-19 Jeff Johnston <jjohnstn@redhat.com>
11212
11213 * linespec.c (decode_variable, symtab_from_filename): Call
11214 error_silent with error message instead of throwing an exception
11215 directly.
11216 * defs.h (error_silent, error_output_message): Add prototypes.
11217 (catch_exceptions_with_msg): Ditto.
11218 * utils.c (error_silent, error_output_message): New functions.
11219 * top.c (catch_exceptions_with_msg): New function.
11220
11221 2004-01-20 Nick Roberts <nick@nick.uklinux.net>
11222
11223 * mi/mi-cmds.h (enum print_values): Add definition.
11224
11225 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Print the name,
11226 type and value for simple data types and just the name and type
11227 for complex ones, if required.
11228
11229 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Print the values of the
11230 children, if required.
11231
11232 2004-01-19 Kevin Buettner <kevinb@redhat.com>
11233
11234 * frv-tdep.c (frv_push_arguments, frv_saved_pc_after_call): Delete
11235 unused declarations.
11236
11237 2004-01-19 Andrew Cagney <cagney@redhat.com>
11238
11239 * top.h (mapped_symbol_files): Delete declaration.
11240 * main.c (captured_main): Delete option "m" and "mapped".
11241 * objfiles.c (mapped_symbol_files): Delete variable.
11242 * symfile.c (symbol_file_command): Delete mmap code.
11243 (symbol_file_add_with_addrs_or_offsets): Ditto.
11244 (add_symbol_file_command, reread_separate_symbols): Ditto.
11245 * objfiles.h (OBJF_MAPPED): Delete.
11246 * objfiles.c (allocate_objfile) [USE_MMALLOC]: Delete.
11247 (free_objfile) [USE_MMALLOC]: Ditto.
11248 (open_existing_mapped_file): Delete function.
11249 (open_mapped_file): Delete function.
11250 (map_to_file): Delete function.
11251
11252 2004-01-19 Kevin Buettner <kevinb@redhat.com>
11253
11254 * infrun.c (step_into_function): Account for possible breakpoint
11255 adjustment when computing ``stop_func_start''.
11256
11257 2004-01-19 Kevin Buettner <kevinb@redhat.com>
11258
11259 * target.c (default_region_size_ok_for_hw_watchpoint): Compare
11260 the region size against the size of a pointer, not the size of
11261 a register as given by DEPRECATED_REGISTER_SIZE.
11262
11263 2004-01-19 Andrew Cagney <cagney@redhat.com>
11264
11265 * tui/tui-regs.h: Include "tui-data.h".
11266 (tuiFirstRegElementNoInLine): Delete declaration.
11267 (tui_display_registers_from): Rename tuiDisplayRegistersFrom.
11268 (tui_last_regs_line_no): Rename tuiLastRegsLineNo.
11269 (tui_line_from_reg_element_no): Rename tuiLineFromRegElementNo.
11270 (tui_calculate_regs_column_count): Rename
11271 tuiCalculateRegsColumnCount.
11272 (tui_check_register_values): Rename tuiCheckRegisterValues.
11273 (tui_show_registers): Rename tuiShowRegisters.
11274 (tui_display_registers_from_line): Rename
11275 tuiDisplayRegistersFromLine.
11276 (tui_first_reg_element_inline): Rename tuiFirstRegElementInLine.
11277 (tui_toggle_float_regs): Rename tuiToggleFloatRegs.
11278 (tui_first_reg_element_no_inline): Rename
11279 tuiFirstRegElementNoInLine.
11280 * tui/tui-data.h: Update copyright.
11281 (enum tui_register_display_type): Rename _TuiRegisterDisplayType.
11282 * tui/tui-windata.c: Update copyright, update references.
11283 * tui/tui-regs.c: Update copyright, update references.
11284 * tui/tui-win.c: Update copyright, update references.
11285 * tui/tui-layout.c: Update copyright, update references.
11286
11287 2004-01-18 Andrew Cagney <cagney@redhat.com>
11288
11289 * tui/tui-io.c: Update copyright.
11290 (key_is_end_sequence, key_is_backspace): New functions.
11291 (key_is_command_char, key_is_start_sequence): New function.
11292 (tui_getc): Update references.
11293 * tui/tui-io.h: Update copyright.
11294 (m_tuiStartNewLine): Delete macro.
11295 (m_isBackspace, m_isDeleteChar): Delete macros.
11296 (m_isDeleteLine, m_isDeleteToEol): Delete macros.
11297 (m_isNextPage, m_isPrevPage): Delete macros.
11298 (m_isLeftArrow, m_isRightArrow): Delete macros.
11299 (m_isXdbStyleCommandChar): Delete macro.
11300 (key_is_start_sequence): Declare, replace m_isStartSequence.
11301 (key_is_end_sequence): Declare, replace m_isEndSequence.
11302 (key_is_backspace): Declare ,replace m_isBackspace.
11303 (key_is_command_char): Declare, replace m_isCommandChar.
11304 * tui/tui-command.c: Update copyright.
11305 (tuiDispatchCtrlChar): Update references.
11306
11307 * config/djgpp/fnchange.lst: Delete tui/tuiSourceWin.c and
11308 tuiSourceWin.h.
11309
11310 * tui/tui-command.c: Rename tui/tuiCommand.c.
11311 * tui/tui-command.h: Rename tui/tuiCommand.h.
11312 * tui/tui-data.c: Rename tui/tuiData.c.
11313 * tui/tui-data.h: Rename tui/tuiData.h.
11314 * tui/tui-disasm.c: Rename tui/tuiDisassem.c.
11315 * tui/tui-disasm.h: Rename tui/tuiDisassem.h.
11316 * tui/tui-io.c: Rename tui/tuiIO.c.
11317 * tui/tui-io.h: Rename tui/tuiIO.h.
11318 * tui/tui-layout.c: Rename tui/tuiLayout.c.
11319 * tui/tui-layout.h: Rename tui/tuiLayout.h.
11320 * tui/tui-regs.c: Rename tui/tuiRegs.c.
11321 * tui/tui-regs.h: Rename tui/tuiRegs.h.
11322 * tui/tui-source.c: Rename tui/tuiSource.c.
11323 * tui/tui-source.h: Rename tui/tuiSource.h.
11324 * tui/tui-stack.c: Rename tui/tuiStack.c.
11325 * tui/tui-stack.h: Rename tui/tuiStack.h.
11326 * tui/tui-win.c: Rename tui/tuiWin.c.
11327 * tui/tui-win.h: Rename tui/tuiWin.h.
11328 * tui/tui-windata.c: Rename tui/tuiDataWin.c.
11329 * tui/tui-windata.h: Rename tui/tuiDataWin.h.
11330 * tui/tui-wingeneral.c: Rename tui/tuiGeneralWin.c.
11331 * tui/tui-wingeneral.h: Rename tui/tuiGeneralWin.h.
11332 * tui/tui-winsource.c: Rename tui/tuiSourceWin.c.
11333 * tui/tui-winsource.h: Rename tui/tuiSourceWin.h.
11334 * tui/tui-file.c: Update includes.
11335 * tui/tui-hooks.c: Update includes.
11336 * tui/tui-interp.c: Update includes.
11337 * tui/tui.c: Update includes.
11338 * Makefile.in: Update all tui/ dependencies.
11339 (SUBDIR_TUI_OBS, SUBDIR_TUI_SRCS): Update file names.
11340
11341 * Makefile.in: Update copyright. Update dependencies.
11342
11343 * tui/tuiSourceWin.c (tui_update_breakpoint_info): Fix compile
11344 problem.
11345
11346 2004-01-18 Andrew Cagney <cagney@redhat.com>
11347
11348 * mn10300-tdep.c (_initialize_mn10300_tdep): Call gdbarch_register
11349 instead of register_gdbarch_init.
11350
11351 * remote-sds.c (tohex): Delete unused function. Update copyright.
11352 * xstormy16-tdep.c (xstormy16_register_virtual_size): Ditto.
11353 * v850-tdep.c (v850_register_virtual_size): Ditto.
11354 * target.c (normal_target_post_startup_inferior): Ditto.
11355 * source.c (ambiguous_line_spec): Ditto.
11356 * remote.c (adapt_remote_get_threadinfo): Ditto.
11357 * mi/mi-out.c (out_field_fmt): Ditto.
11358 * mi/mi-interp.c (mi_interp_read_one_line_hook): Ditto.
11359 (output_control_change_notification): Ditto.
11360 * m68k-tdep.c (m68k_register_byte): Ditto.
11361 (m68k_remote_breakpoint_from_pc): Ditto.
11362 * ui-out.c (init_ui_out_state): Delete unused declaration.
11363 * stabsread.c (search_value): Ditto.
11364 * mi/mi-cmd-env.c (env_cli_command): Ditto.
11365 * maint.c (print_section_table): Ditto.
11366 * infrun.c (set_follow_fork_mode_command): Ditto.
11367
11368 2004-01-18 Mark Kettenis <kettenis@gnu.org>
11369
11370 * dwarf2-frame.c (execute_cfa_program): Move DWA_CFA_nop before
11371 DW_CFA_def_cfa_exporession. Add support for
11372 DW_CFA_offset_extendend_sf, DW_CFA_def_cfa_sf and
11373 DW_CFA_def_cfa_offset_sf. This should fix PR backtrace/1391.
11374
11375 2004-01-18 Andrew Cagney <cagney@redhat.com>
11376
11377 * ocd.c: Update copyright.
11378 (bdm_read_register_command): Delete unused function.
11379 (_initialize_remote_ocd): Delete commented out reference.
11380 (get_quoted_char, reset_packet): Delete #if0ed function.
11381 (output_packet, put_quoted_char): Delete #if0ed function.
11382 (stu_put_packet, stu_get_packet): Delete #if0ed function.
11383 (ocd_start_remote): Delete #if0ed code, remove #if1 wrapper.
11384 (BDM_BREAKPOINT): Delete #if0ed macro.
11385 (remote_timeout): Delete #if0ed variable.
11386
11387 2004-01-18 Mark Kettenis <kettenis@gnu.org>
11388
11389 * Makefile.in (ALLDEPFILES): Remove core-sol2.c.
11390 (core-sol2.o): Remove dependency.
11391 * core-sol2.c: Remove file.
11392
11393 2004-01-17 Andrew Cagney <cagney@redhat.com>
11394
11395 * mdebugread.c (compare_blocks): Make addr_diff a LONGEST.
11396 * block.h: Make GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOOCK
11397 enums.
11398
11399 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
11400
11401 * remote.c: Update copyright years.
11402
11403 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
11404
11405 * remote.c (remote_vcont_resume): Use xstrprintf instead of sprintf.
11406
11407 2004-01-17 Andrew Cagney <cagney@redhat.com>
11408
11409 * mdebugread.c: Update copyright.
11410 (parse_symbol): Replace DEPRECATED_STREQ with strcmp.
11411 (parse_type, parse_procedure): Ditto.
11412 (parse_partial_symbols, psymtab_to_symtab_1): Ditto.
11413
11414 * cris-tdep.c (cris_store_struct_return): Put back accidently
11415 deleted function.
11416
11417 * gdbarch.sh: Update copyright year.
11418 * gdbarch.h, gdbarch.c: Re-generate.
11419
11420 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
11421
11422 Suggested by George Anzinger.
11423 * dwarf2expr.c (execute_stack_op): Fetch the second item from the
11424 correct stack offset. Include unknown opcode numbers in the error
11425 message.
11426
11427 2004-01-17 Andrew Cagney <cagney@redhat.com>
11428
11429 * x86-64-tdep.c (x86_64_init_abi): No need to clear
11430 extract_struct_value_address, i386 does not set it.
11431 * sparc64-tdep.c (sparc64_init_abi): Do not set
11432 extract_struct_value_address, never called.
11433 (sparc64_extract_struct_value_address): Delete function.
11434 * m68hc11-tdep.c: Update copyright.
11435 (m68hc11_gdbarch_init): Delete redundant assignment of
11436 extract_struct_value_address.
11437 * i386-tdep.c: Update copyright.
11438 (i386_gdbarch_init): Do not set extract_struct_value_address,
11439 never called.
11440 (i386_extract_struct_value_address): Delete function.
11441 * sparc-tdep.c (sparc32_gdbarch_init): Do not set
11442 extract_struct_value_address, never called.
11443 (sparc32_extract_struct_value_address): #if 0 function. Add
11444 comments explaining its future.
11445
11446 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
11447
11448 * arm-tdep.c (arm_write_pc): New function.
11449 (arm_gdbarch_init): Call set_gdbarch_write_pc.
11450
11451 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
11452
11453 * breakpoint.c (must_shift_inst_regs): Delete.
11454 (bpstat_stop_status): Delete references to DECR_PC_AFTER_HW_BREAK
11455 and SHIFT_INST_REGS.
11456 * infcmd.c (step_1, step_1_continuation): Delete references to
11457 SHIFT_INST_REGS.
11458 * infrun.c (keep_going): Likewise.
11459 * target.h (DECR_PC_AFTER_HW_BREAK): Don't define.
11460 * config/i386/nm-i386.h (DECR_PC_AFTER_HW_BREAK): Likewise.
11461
11462 2004-01-17 Andrew Cagney <cagney@redhat.com>
11463
11464 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
11465 * gdbarch.h, gdbarch.c: Re-generate.
11466 * infcmd.c (print_return_value): Delete reference to
11467 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
11468
11469 * cris-tdep.c (cris_gdbarch_init): Do not set
11470 deprecated_extract_struct_value_address.
11471
11472 * xstormy16-tdep.c: Update copyright.
11473 (xstormy16_extract_struct_value_address): Update to current
11474 extract struct value address interface.
11475 (xstormy16_gdbarch_init): Set extract_struct_value_address.
11476 * sh64-tdep.c (sh64_extract_struct_value_address): Update to
11477 current extract struct value address interface.
11478 (sh64_gdbarch_init): Set extract_struct_value_address.
11479
11480 * cris-tdep.c: Update copyright.
11481 (cris_extract_struct_value_address): Delete function.
11482 (struct_return_address): Delete variable.
11483 (cris_store_struct_return): Do not set struct_return_address.
11484
11485 * mcore-tdep.c: Update copyright.
11486 (mcore_extract_struct_value_address): Delete function. Update
11487 comments.
11488 (mcore_gdbarch_init): Update.
11489 * mn10300-tdep.c: Update copyright.
11490 (mn10300_extract_struct_value_address): Delete function.
11491 (mn10300_gdbarch_init): Update.
11492 * v850-tdep.c: Update copyright.
11493 (v850_extract_struct_value_address): Delete.
11494 (v850_gdbarch_init): Update.
11495 * ns32k-tdep.c: Update copyright.
11496 (ns32k_extract_struct_value_address): Delete.
11497 (ns32k_gdbarch_init): Update.
11498 * hppa-tdep.c (hppa_extract_struct_value_address): Delete.
11499 (hppa_gdbarch_init): Update.
11500 * vax-tdep.c: Update copyright.
11501 (vax_extract_struct_value_address): Delete.
11502 (vax_gdbarch_init): Update.
11503
11504 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Delete.
11505 * gdbarch.h, gdbarch.c: Re-generate.
11506 * procfs.c (procfs_fetch_registers): Delete reference to
11507 DEPRECATED_NPC_REGNUM.
11508 (procfs_store_registers): Ditto.
11509 * regcache.c (generic_target_write_pc): Simplify.
11510 * lynx-nat.c: Delete #ifdef SPARC code. Not used.
11511
11512 * core-sol2.c (fetch_core_registers): Replace
11513 DEPRECATED_NPC_REGNUM with equivalent tdep value.
11514
11515 * hppa-tdep.c: Update copyright year.
11516 (hppa_target_write_pc): Use PCOQ_TAIL_REGNUM instead of
11517 NPC_REGNUM.
11518 (hppa_gdbarch_init): Do not set deprecated_npc_regnum.
11519
11520 * mips-tdep.c (mips_write_pc): New function.
11521 (mips_gdbarch_init): Set "write_pc" to "mips_write_pc".
11522 (mips_read_pc): Use mips_regnum instead of PC_REGNUM.
11523 (mips_find_saved_regs, mips_software_single_step: Ditto.
11524 (mips_frame_saved_pc, mips_frame_saved_pc): Ditto.
11525 mips_init_extra_frame_info, mips_pop_frame): Ditto.
11526
11527 2004-01-17 Andrew Cagney <cagney@redhat.com>
11528
11529 * mips-tdep.c: Re-indent. Group functions by ABI.
11530
11531 2004-01-17 Andrew Cagney <cagney@redhat.com>
11532
11533 * gdbarch.sh (DECR_PC_AFTER_BREAK): Make zero the default.
11534 * gdbarch.c: Re-generate.
11535 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
11536 DECR_PC_AFTER_BREAK to zero.
11537 * vax-tdep.c (vax_gdbarch_init): Ditto.
11538 * v850-tdep.c (v850_gdbarch_init): Ditto.
11539 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
11540 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
11541 * sh-tdep.c (sh_gdbarch_init): Ditto.
11542 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
11543 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
11544 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11545 * mips-tdep.c (mips_gdbarch_init): Ditto.
11546 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11547 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11548 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
11549 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11550 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
11551 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
11552 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11553 * frv-tdep.c (frv_gdbarch_init): Ditto.
11554 * cris-tdep.c (cris_gdbarch_init): Ditto.
11555 * avr-tdep.c (avr_gdbarch_init): Ditto.
11556 * arm-tdep.c (arm_gdbarch_init): Ditto.
11557 * i386-nto-tdep.c (i386nto_init_abi): Add comment.
11558
11559 2004-01-17 J. Brobecker <brobecker@gnat.com>
11560
11561 * dwarf2read.c (dwarf2_non_const_array_bound_ignored_complaint):
11562 Delete, no longer used.
11563 (read_subrange_type): New function, mostly extracted from
11564 read_array_type().
11565 (read_array_type): Replace extracted code by call to
11566 read_subrange_type().
11567 (dwarf2_get_attr_constant_value): New function.
11568 (scan_partial_symbols): Add handling for DW_TAG_subrange_type.
11569 (add_partial_symbol): Likewise.
11570 (process_die): Likewise.
11571 (new_symbol): Likewise.
11572 (read_type_die): Likewise.
11573
11574 2004-01-16 Andrew Cagney <cagney@redhat.com>
11575
11576 * symfile.c: Update copyright year.
11577 (compare_symbols): Delete unused function.
11578 * stabsread.c: Update copyright year.
11579 (lrs_general_complaint): Delete unused function.
11580 (ref_search_value): Ditto.
11581 (get_substring): Delete declaration.
11582 * sh64-tdep.c: Update copyright year.
11583 (sh64_get_gdb_regnum): Delete unused function.
11584 * dwarf2read.c (dwarf2_unsupported_at_frame_base_complaint):
11585 Delete unused function.
11586
11587 2004-01-17 Mark Kettenis <kettenis@gnu.org>
11588
11589 * defs.h (gdb_osabi): Add GDB_OSABI_OPENBSD_ELF.
11590 * osabi.c (gdb_osabi_names): Add "OpenBSD ELF".
11591
11592 2004-01-16 Andrew Cagney <cagney@redhat.com>
11593
11594 Changes from Peter Schauer.
11595 * rs6000-tdep.c: Update copyright year.
11596 (rs6000_push_dummy_call): Update the stack pointer before
11597 accessing the corresponding stack region.
11598 * rs6000-nat.c: Update copyright year.
11599 (set_host_arch): Set "info.abfd" to "exec_bfd".
11600
11601 2004-01-15 Mark Kettenis <kettenis@gnu.org>
11602
11603 * blockframe.c: Update copyright year.
11604 (inside_entry_func): Don't treat a zero PC specially.
11605
11606 2004-01-14 Elena Zannoni <ezannoni@redhat.com>
11607
11608 * gcore.c (gcore_copy_callback): Use paddr_d to print size
11609 variable.
11610 (gcore_create_callback): Ditto. Skip any memory segment that has
11611 no permissions set.
11612
11613 2004-01-14 David Carlton <carlton@kealia.com>
11614
11615 Change symbols for C++ nested types to contain the fully qualified
11616 name, if possible. (At least in the DWARF-2 case.) Partial fix
11617 for PR's c++/57, c++/488, c++/539, c++/573, c++/609, c++/832,
11618 c++/895.
11619 * c-exp.y (qualified_type): Handle types nested within classes.
11620 * cp-namespace.c: Update comments.
11621 (cp_set_block_scope): Delete #if 0.
11622 (cp_lookup_nested_type): Handle types nested within classes.
11623 * dwarf2read.c: (scan_partial_symbols): Call add_partial_structure
11624 when appropriate.
11625 (add_partial_symbol): Add the name of the enclosing namespace to
11626 types.
11627 (pdi_needs_namespace): New.
11628 (add_partial_namespace): Tweak comment.
11629 (add_partial_structure): New.
11630 (psymtab_to_symtab_1): Initialize processing_current_prefix
11631 here...
11632 (process_die): instead of here.
11633 (read_structure_scope): Try to figure out the name of the class or
11634 namespace that the structure might be defined within.
11635 (read_enumeration): Generate fully-qualified names, if possible.
11636 (read_namespace): Don't set name to NULL.
11637 (die_specification): New.
11638 (new_symbol): Generate fully-qualified names for types.
11639 (read_type_die): Determine appropriate prefix.
11640 (determine_prefix): New.
11641 (typename_concat): New.
11642 (class_name): New.
11643 * valops.c (value_aggregate_elt): Pass NOSIDE to
11644 value_struct_elt_for_reference.
11645 (value_struct_elt_for_reference): Make static, add NOSIDE
11646 parameter, call value_maybe_namespace_elt as a last resort.
11647 (value_namespace_elt): Break out code into
11648 value_maybe_namespace_elt.
11649 (value_maybe_namespace_elt): New.
11650
11651 2004-01-12 Andrew Cagney <cagney@redhat.com>
11652
11653 * mips-tdep.c (mips_convert_register_p): Handle both raw and
11654 cooked floating-point registers.
11655 (mips_gdbarch_init): Set convert_register_p, register_to_value,
11656 and value_to_register.
11657
11658 2004-01-13 Andrew Cagney <cagney@redhat.com>
11659
11660 * gdbarch.sh (FUNCTION_START_OFFSET): Make zero the default.
11661 * gdbarch.c: Re-generate.
11662 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
11663 FUNCTION_START_OFFSET.
11664 * v850-tdep.c (v850_gdbarch_init): Ditto.
11665 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
11666 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
11667 * sh-tdep.c (sh_gdbarch_init): Ditto.
11668 * s390-tdep.c (s390_gdbarch_init): Ditto.
11669 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
11670 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
11671 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11672 * mips-tdep.c (mips_gdbarch_init): Ditto.
11673 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11674 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
11675 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11676 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
11677 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11678 * i386-tdep.c (i386_gdbarch_init): Ditto.
11679 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
11680 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11681 * frv-tdep.c (frv_gdbarch_init): Ditto.
11682 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11683 * cris-tdep.c (cris_gdbarch_init): Ditto.
11684 * avr-tdep.c (avr_gdbarch_init): Ditto.
11685 * arm-tdep.c (arm_gdbarch_init): Ditto.
11686 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
11687
11688 2004-01-13 Daniel Jacobowitz <drow@mvista.com>
11689
11690 * infrun.c (follow_fork_mode_ask): Remove.
11691 (follow_fork_mode_kind_names): Remove follow_fork_mode_ask.
11692 (follow_fork): Simplify and remove internal error for
11693 follow_fork_mode_ask.
11694 (_initialize_infrun): Update "set follow-fork-mode" help text.
11695
11696 2004-01-13 Andrew Cagney <cagney@redhat.com>
11697
11698 * configure.in: Update copyright year.
11699 (build_warnings): Add -Wunused-label.
11700 * configure: Re-generate.
11701
11702 2004-01-12 Andrew Cagney <cagney@redhat.com>
11703
11704 * exec.h (exec_ops): Make "extern".
11705
11706 * mips-tdep.c (mips_pseudo_register_read): Don't return a value,
11707 the function is void.
11708 (mips_pseudo_register_write): Ditto.
11709
11710 2004-01-12 Andrew Cagney <cagney@redhat.com>
11711
11712 * stack.c (frame_info): Delete DEPRECATED_PRINT_EXTRA_FRAME_INFO
11713 call. Never defined.
11714 * sparc-tdep.h (struct frame_info): Add opaque declaration.
11715 * sparc64-tdep.h (struct gdbarch): Add opaque declaration.
11716 (struct sparc_gregset, struct regcache): Ditto.
11717 * sparc-nat.c: Update copyright. Specify "GNU/Linux".
11718
11719 2004-01-12 Andrew Cagney <cagney@redhat.com>
11720
11721 * mi/ChangeLog: Delete file. Renamed to ...
11722 * mi/ChangeLog-1999-2003: New file.
11723 * tui/ChangeLog: Delete file. Renamed to ...
11724 * tui/ChangeLog-1998-2003: New file.
11725
11726 2004-01-11 Mark Kettenis <kettenis@gnu.org>
11727
11728 * sparc64nbsd-tdep.c: Include "regset.h".
11729 (sparc64nbsd_sizeof_struct_reg, sparc64nbsd_sizeof_struct_fpreg):
11730 Remove variables.
11731 (fetch_core_registers): Remove function.
11732 (sparc64nbsd_core_fns): Remove variable.
11733 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): New
11734 functions.
11735 (sparc64nbsd_init_abi): Initialize TDEP->gregset,
11736 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
11737 (_initialize_sparc64nbsd_tdep): Remove call to add_core_fns.
11738
11739 * sparc-tdep.c (sparc32_extract_struct_value_address): Rename from
11740 sparc_extract_struct_value_address.
11741 (sparc32_gdbarch_init): Set extract_struct_value_address.
11742 * sparc64-tdep.c (sparc64_extract_struct_value_address): New
11743 function.
11744 (sparc64_init_abi): Set extract_struct_value_address. Don't set
11745 return_value_on_stack.
11746
11747 * NEWS: Mention that %cs and %ss have been added to the AMD64
11748 configurations
11749
11750 * frame.c: Update copyright year.
11751 (get_prev_frame): Improve comment.
11752
11753 * sparc64fbsd-tdep.c: Include "regset.h".
11754 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
11755 Remove variables.
11756 (fetch_core_registers): Remove function.
11757 (sparc64fbsd_core_fns): Remove variable.
11758 (sparc64fbsd_supply_gregset, sparc64fbsd_supply_fpregset): New
11759 functions.
11760 (sparc64fbsd_init_abi): Initialize TDEP->gregset,
11761 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
11762 (_initialize_sparc64fbsd_tdep): Remove call to add_core_fns.
11763
11764 * sparcnbsd-tdep.c: Include "regset.h".
11765 (fetch_core_registers): Remove function.
11766 (sparcnbsd_core_fns, sparcnbsd_elfcore_fns): Remove varaibles.
11767 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): New
11768 functions.
11769 (sparc32nbsd_init_abi): Initialize TDEP->gregset and
11770 TDEP->fpregset.
11771 (_initialize_sparcnbsd_tdep): Remove calls to add_core_fns.
11772
11773 * sparc-tdep.h (struct regset): Provide opaque declaration.
11774 (struct gdbarch_tdep): Add gregset, sizeof_gregset,
11775 fpregset and sizeof_fpregset members.
11776 * sparc-tdep.c (struct regset): Provide opaque declaration.
11777 (sparc_regset_from_core_section): New function.
11778 (sparc32_gdbarch_init): Initialize TDEP->gregset,
11779 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_fpregset.
11780 Set regset_from_core_section when appropriate.
11781
11782 2004-01-10 Mark Kettenis <kettenis@gnu.org>
11783
11784 * x86-64-tdep.c (amd64_non_pod_p): New function.
11785 (amd64_classify_aggregate): Return class memory for non-POD
11786 C++ structure types.
11787
11788 * x86-64-tdep.c (amd64_push_arguments): Add struct_return
11789 argument. Use it to reserve a register if necessary.
11790 (amd64_push_dummy_call): Pass STRUCT_RETURN in call to
11791 amd64_push_arguments.
11792
11793 * x86-64-tdep.c (amd64_classify_aggregate): Ignore static fields.
11794
11795 * x86-64-tdep.c (amd64_register_info): Add %cs and %ss. Adjust
11796 register numbers in comments.
11797 * x86-64-tdep.h: Update copyright year.
11798 (X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM):
11799 Adjust for addition of %cs and %ss.
11800 * amd64fbsd-nat.c: Update copyright year.
11801 (reg_offset): Add register offsets for %cs and %ss.
11802 * amd64fbsd-tdep.c: Update copyright year.
11803 (amd64fbsd_r_reg_offset): Add register offsets for %cs and %ss.
11804 (amd64fbsd_sc_reg_offset): Likewise.
11805 * x86-64-linux-nat.c: Update copyright year.
11806 (x86_64_linux_gregset64_reg_offset): Add register offsets for %cs
11807 and %ss.
11808 * amd64nbsd-nat.c: Update copyright year.
11809 (amd64nbsd32_r_reg_offset): Add register offsets for %cs and %ss.
11810 * amd64nbsd-tdep.c: Update copyright year.
11811 (amd64nbsd_r_reg_offset): Add register offsets for %cs and %ss.
11812 * x86-64-linux-tdep.c: Update copyright year.
11813 (user_to_gdb_regmap): Add mapping for %cs and %ss.
11814 (x86_64_linux_sc_reg_offset): Adjust for addition of %cs and %ss.
11815 * regformats/reg-x86-64.dat: Add %cs and %ss.
11816
11817 * blockframe.c (inside_entry_func): Reformat. Introduce new local
11818 variables to prevent long lines. Update comments to reflect
11819 reality.
11820
11821 2004-01-09 David Carlton <carlton@kealia.com>
11822
11823 Checked in by Elena Zannoni <ezannoni@redhat.com>.
11824 * dwarf2read.c (read_namespace): Pull out name-generating code
11825 into namespace_name. Rename previous_namespace to previous_prefix
11826 and processing_current_namespace to processing_current_prefix..
11827 (namespace_name): New function.
11828 (add_partial_symbol): Substitute uses of pdi->name with
11829 actual_name.
11830 * cp-support.h: Rename processing_current_namespace to
11831 processing_current_prefix.
11832 Update copyright year.
11833 * cp-namespace.c: Rename processing_current_namespace to
11834 processing_current_prefix.
11835 Update copyright year.
11836
11837 2004-01-09 Andrew Cagney <cagney@redhat.com>
11838
11839 * jv-valprint.c, ser-unix.c: Add missing copyright years.
11840
11841 2004-01-09 Mark Kettenis <kettenis@gnu.org>
11842
11843 * dbxread.c (read_dbx_symtab): Ignore N_PATCH stabs instead of
11844 complaining.
11845 (process_one_symbol): Deal with N_PATCH stabs.
11846
11847 2004-01-09 Elena Zannoni <ezannoni@redhat.com>
11848
11849 * dwarf2read.c (read_array_type): Discard FORTRAN_HACK macro and
11850 ifdeffed code.
11851 Update copyright year.
11852
11853 2004-01-08 Michael Chastain <mec.gnu@mindspring.com>
11854
11855 * config/pa/tm-hppa.h: Update extern declarations for
11856 hppa32_hpux_frame_saved_pc_in_sigtramp,
11857 hppa32_hpux_frame_base_before_sigtramp, and
11858 hppa32_hpux_frame_find_saved_regs_in_sigtramp.
11859
11860 2004-01-08 Michael Chastain <mec.gnu@mindspring.com>
11861
11862 * config/pa/tm-hppah.h: Update copyright years.
11863
11864 2004-01-08 Andrew Cagney <cagney@redhat.com>
11865
11866 * mips-tdep.c (mips_n32n64_reg_struct_has_addr): Delete function.
11867 (mips_o32_reg_struct_has_addr): Delete function.
11868 (mips_gdbarch_init): Update.
11869 (mips_extract_struct_value_address): Delete function.
11870
11871 2004-01-08 David Mosberger <davidm@hpl.hp.com>
11872
11873 * ia64-linux-tdep.c: Update GATE_AREA_END value to reflect
11874 reality.
11875
11876 2004-01-07 Andrew Cagney <cagney@redhat.com>
11877
11878 * mips-tdep.c (mips_gdbarch_init): Set elf_flags to the previous
11879 architecture's elf flags (when available).
11880
11881 * mips-tdep.c (mips_gdbarch_init): Move code determining the MIPS
11882 FPU to the start, check the MIPS FPU when looking for an old
11883 architecture.
11884 (set_mipsfpu_single_command): Update the architecture.
11885 (set_mipsfpu_double_command, set_mipsfpu_none_command): Ditto.
11886
11887 * mips-tdep.c (MIPS_DEFAULT_MASK_ADDRESS_P): Delete macro.
11888 (mips_mask_address_p): Add "tdep" parameter.
11889 (show_mask_address, mips_addr_bits_remove): Update.
11890 (mips_dump_tdep): Update.
11891 (MIPS_DEFAULT_STACK_ARGSIZE): Delete macro.
11892 (MIPS_STACK_ARGSIZE): Delete macro.
11893 (mips_stack_argsize, mips_eabi_push_dummy_call): Update.
11894 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call): Update.
11895 (mips_o64_push_dummy_call, mips_o32_return_value): Update.
11896 (mips_dump_tdep): Update.
11897 (MIPS_SAVED_REGSIZE): Delete macro.
11898 (MIPS_DEFAULT_SAVED_REGSIZE): Delete macro.
11899 (mips_saved_regsize, mips_eabi_use_struct_convention): Update.
11900 (mips_eabi_reg_struct_has_addr, mips_find_saved_regs): Update.
11901 (mips_frame_saved_pc, mips16_heuristic_proc_desc): Update.
11902 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call): Update.
11903 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update.
11904 (mips_pop_frame, return_value_location): Update.
11905 (mips_n32n64_return_value, mips_dump_tdep): Update.
11906
11907 * mips-tdep.c (mips_gdbarch_init): Clean up code selecting the
11908 MIPS ABI.
11909
11910 * mips-tdep.c: Update copyright.
11911 (mips_gdbarch_init): Merge two code blocks handling the register
11912 name and number layout.
11913
11914 2004-01-02 Pawel Ostrowski <pasza@zodiac.mimuw.edu.pl>
11915
11916 * tracepoint.c (validate_actionline): Fix segv at EOF
11917
11918 2004-01-07 Michael Chastain <mec.gnu@mindspring.com>
11919
11920 * hpread.c (hpread_read_struct_type): Call SET_FIELD_PHYSNAME
11921 properly for static fields.
11922
11923 2004-01-06 Jeff Johnston <jjohnstn@redhat.com>
11924 Jason Molenda <jmolenda@apple.com>
11925
11926 * disasm.c: Update copyright to include 2004.
11927 (do_mixed_source_and_assembly): For uiout asm list
11928 and tuple cleanups, initialize to null_cleanup instead of
11929 NULL and do so prior to loop. Only reset when we close off
11930 the tuple/list. Move check for whether to close off the
11931 asm tuple/list to after dump_insns call where it will be run
11932 on each loop iteration.
11933
11934 2004-01-05 Andrew Cagney <cagney@redhat.com>
11935
11936 * ser-unix.c (ser_unix_async): Fix tipo, "NOTHING_SECHEDULED"
11937 should be a switch case and not a label.
11938 * mips-tdep.c (mips32_next_pc): Delete unused labels
11939 "greater_equal_branch" and "less_zero_branch".
11940 * jv-valprint.c (java_print_value_fields): Delete unused label
11941 "flush_it".
11942
11943 * target.c (unpush_target): Only close a target that is in the
11944 target stack.
11945
11946 2004-01-05 Mark Kettenis <kettenis@gnu.org>
11947
11948 * sparc-tdep.c (sparc_extract_struct_value_address): Get the
11949 address from [sp + 64] instead of %o2.
11950
11951 * frame.c (get_prev_frame): Don't try to unwind the PC. This
11952 fixes PR backtrace/1476.
11953
11954 2004-01-05 Andrew Cagney <cagney@redhat.com>
11955
11956 * libunwind-frame.h (struct frame_id): Add opaque declaration,
11957 move to start of file.
11958 * i386-tdep.h (struct regcache): Add opaque declaration.
11959 * config/ia64/nm-linux.h (struct target_ops): Add opaque
11960 declaration.
11961 * ia64-tdep.c (ia64_find_proc_info_x): Do not use __FUNCTION__.
11962 (ia64_gdbarch_init): Use "GNU/Linux" in comment.
11963 * win32-nat.c (fake_create_process): Use ISO C style definition.
11964 * stabsread.c (define_symbol): Delete #ifndef
11965 DEPRECATED_USE_REGISTER_NOT_ARG wrapper around
11966 stabs_argument_has_addr call, macro never defined.
11967
11968 2004-01-04 Michael Chastain <mec.gnu@mindspring.com>
11969
11970 * op50-rom.c: Delete.
11971 * w89k-rom.c: Delete.
11972 * Makefile.in: Remove references.
11973
11974 2004-01-04 Mark Kettenis <kettenis@gnu.org>
11975
11976 * x86-64-tdep.c: Update copyright year.
11977 (struct amd64_register_info): Rename from x86_64_register_info.
11978 (amd64_register_info): Rename from x86_64_register_info.
11979 (AMD64_NUM_REGS): Rename from X86_64_NUM_REGS.
11980 (amd64_register_name): Rename from x86_64_register_name.
11981 (amd64_register_type): Rename from x86_64_register_type.
11982 (amd64_dwarf_regmap): Rename from x86_64_dwarf_regmap.
11983 (amd64_dwarf_regmap_len): Rename from x86_64_dwarf_regmap_len.
11984 (amd64_dwarf_reg_to_regnum): Rename from
11985 x86_64_dwarf_reg_to_regnum.
11986 (amd64_convert_register_p): Rename from x86_64_convert_register_p.
11987 (amd64_push_dummy_call): Rename from x86_64_push_dummy_call.
11988 (AMD64_NUM_SAVED_REGS): Rename from X86_64_NUM_SAVED_REGS.
11989 (struct amd64_frame_cache): Renamed from x86_64_frame_cache.
11990 (amd64_alloc_frame_cache): Renamed from x86_64_alloc_frame_cache.
11991 (amd64_analyze_prologue): Rename from x86_64_analyze_prologue.
11992 (amd64_skip_prologue): Rename from x86_64_skip_prologue.
11993 (amd64_frame_cache): Rename from x86_64_frame_cache.
11994 (amd64_frame_this_id): Rename from x86_64_frame_this_id.
11995 (amd64_frame_prev_register): Rename from
11996 x86_64_frame_prev_register.
11997 (amd64_frame_unwind): Rename from x86_64_frame_unwind.
11998 (amd64_frame_sniffer): Rename from x86_64_frame_sniffer.
11999 (amd64_sigtramp_frame_cache): Rename from
12000 x86_64_sigtramp_frame_cache.
12001 (amd64_sigtramp_frame_prev_register): Rename from
12002 x86_64_sigtramp_frame_prev_register.
12003 (amd64_sigtramp_frame_unwind): Rename from
12004 x86_64_sigtramp_frame_unwind.
12005 (amd64_sigtramp_frame_sniffer): Rename from
12006 x86_64_sigtramp_frame_sniffer.
12007 (amd64_frame_base_address): Rename from x86_64_frame_base_address.
12008 (amd64_frame_base): Rename from x86_64_frame_base.
12009 (amd64_unwind_dummy_id): Rename from x86_64_unwind_dummy_id.
12010 (amd64_frame_align): Rename from x86_64_frame_align.
12011 (amd64_supply_fpregset): Rename from x86_64_supply_fpregset.
12012 (amd64_regset_from_core_section): Rename from
12013 x86_64_regset_from_core_section.
12014 (x86_64_init_abi): Update comments.
12015
12016 2004-01-04 Nick Roberts <nick@nick.uklinux.net>
12017
12018 * MAINTAINERS (write after approval): Add myself.
12019
12020 2004-01-04 Mark Kettenis <kettenis@gnu.org>
12021
12022 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
12023 `float' arguments.
12024
12025 2004-01-04 Mark Kettenis <kettenis@gnu.org>
12026
12027 * sparc64-tdep.c (sparc64_store_floating_fields): Update comment
12028 such that it mentions a specific version of GCC that exhibits this
12029 bug.
12030
12031 2004-01-03 Mark Kettenis <kettenis@gnu.org>
12032
12033 * sparc64-tdep.c (sparc64_store_floating_fields): If TYPE is a
12034 structure that has a single `float' member, store it in %f1 in
12035 addition to %f0.
12036
12037 * sparc-sol2-nat.c: Add missing '\'.
12038
12039 * sparc-tdep.c (sparc32_return_value): New function.
12040 (sparc32_use_struct_convention, sparc32_return_value_on_stack):
12041 Remove functions.
12042 (sparc32_gdbarch_init): Set return_value, don't set
12043 extract_return_value, store_return_value, use_struct_convention
12044 and return_value_on_stack.
12045
12046 * sparc-sol2-nat.c: Add missing ')'.
12047
12048 2004-01-03 J. Brobecker <brobecker@gnat.com>
12049
12050 * infrun.c (handle_step_into_function): New function.
12051 (handle_inferior_event): Extract out some code into the new
12052 function above.
12053
12054 2004-01-03 J. Brobecker <brobecker@gnat.com>
12055
12056 * infrun.c (handle_inferior_event): Move the declaration of
12057 real_stop_pc inside the if blocks where it is used.
12058
12059 2004-01-03 Mark Kettenis <kettenis@gnu.org>
12060
12061 * sparc64-tdep.c (sparc64_16_byte_align_p)
12062 (sparc64_store_floating_fields, sparc64_store_floating_fields):
12063 Use check_typedef to get subtypes of structures and unions.
12064 (sparc64_store_return_value): Fix calculation of the appropriate
12065 offset into VALBUF when storing a structure or union.
12066 (sparc64_return_value): New function.
12067 (sparc64_use_struct_convention): Remove function.
12068 (sparc64_init_abi): Set return_value, don't set
12069 extract_return_value, store_return_value and
12070 use_struct_convention.
12071
12072 2004-01-03 Eli Zaretskii <eliz@elta.co.il>
12073
12074 * config/djgpp/fnchange.lst: Add lines for COPYING.LIBGLOSS,
12075 bfd/doc/ChangeLog-9103, bfd/elf32-m68hc1x.c,
12076 gdb/config/alpha/xm-alphaosf.h,
12077 gdb/config/powerpc/tm-ppcle-eabi.h,
12078 gdb/config/rs6000/tm-rs6000-aix4.h, gdb/gdbtk/ChangeLog-2001,
12079 gdb/gdbtk/ChangeLog-2002, gdb/gdbtk/ChangeLog-2003,
12080 gdb/gdbtk/plugins/intel-pentium/intel-pentium.tcl.in,
12081 gdb/gdbtk/plugins/rhabout/rhabout.tcl.in, gdb/i386-linux-nat.c,
12082 gdb/ia64-aix-nat.c, gdb/ia64-aix-tdep.c, gdb/ia64-linux-nat.c,
12083 gdb/ia64-linux-nat.c, gdb/ppc-linux-tdep.c, gdb/ppc-linux-nat.c,
12084 gdb/sparc64nbsd-nat.c, gdb/sparc64nbsd-tdep.c,
12085 gdb/sparc64-linux-nat.c, gdb/sparc64-linux-tdep.c,
12086 gdb/sparc64-nat.c, gdb/sparc64-tdep.c, gdb/sparc64-sol2-tdep.c,
12087 gdb/sparc-sol2-nat.c, gdb/sparc-sol2-tdep.c,
12088 gdb/testsuite/gdb.gdbtk/, gdb/testsuite/gdb.mi/mi-var-child.exp,
12089 nclude/ChangeLog-9103, include/coff/ChangeLog-9103,
12090 include/elf/ChangeLog-9103, include/opcode/ChangeLog-9103,
12091 opcodes/ChangeLog-0001, opcodes/ChangeLog-0203,
12092 opcodes/openrisc-dis.c, opcodes/openrisc-desc.h,
12093 sim/frv/profile-fr550.c, sim/frv/profile-fr550.h,
12094 sim/sh64/sem-compact-switch.c, sim/sh64/sem-media-switch.c,
12095 sim/testsuite/sim/sh64/compact/ldsl-mach.cgs,
12096 sim/testsuite/sim/sh64/compact/ldsl-macl.cgs,
12097 sim/testsuite/sim/sh64/compact/stsl-mach.cgs, and
12098 sim/testsuite/sim/sh64/compact/stsl-macl.cgs.
12099 Remove lines for .cvsignore files.
12100
12101 2004-01-03 J. Brobecker <brobecker@gnat.com>
12102
12103 * infrun.c: Back out the previous change.
12104
12105 2004-01-03 Mark Kettenis <kettenis@gnu.org>
12106
12107 * NEWS: Mention revised SPARC target. Add sparc-*-lynxos* and
12108 sparc-*-sunos4* to the list of REMOVED configurations.
12109
12110 * configure.tgt: Add back sparc-*-vxworks*.
12111 * remote-vxsparc.c: Remove all includes except for "defs.h",
12112 "regcache.h", "vx-share/ptrace.h" and "vx-share/regPacket.h".
12113 Include "sparc-tdep.h".
12114 (SPARC_R_G1): New define.
12115 (vxsparc_gregset): New variable.
12116 (ext_format_sparc): Remove extern declaration.
12117 (vx_read_register): Rewrite to use sparc32_supply_gregset and
12118 sparc32_supply_fpregset.
12119 (vx_write_register): Rewrite to use sparc32_collect_gregset,
12120 sparc_collect_rwindow and sparc32_collect_fpregset.
12121 * config/sparc/tm-vxworks.h: New file, based on recently removed
12122 tm-vxsparc.h.
12123 * config/sparc/vxworks.mt: New file, based on recently removed
12124 vxworks.mt.
12125
12126 2004-01-03 J. Brobecker <brobecker@gnat.com>
12127
12128 * infrun.c (handle_step_into_function): New function.
12129 (handle_inferior_event): Extract out some code into the new
12130 function above.
12131
12132 2004-01-02 Mark Kettenis <kettenis@gnu.org>
12133
12134 * Makefile.in (ALLDEPFILES): Remove sparc-linux-nat.c and
12135 sparcl-tdep.c. Add sparc-linux-tdep.c, sparc-sol2-nat.c,
12136 sparc-sol2-tdep.c, sparc-sol2-nat.c, sparc-sol2-tdep.c,
12137 sparc64-linux-nat.c, sparc64-linux-tdep.c, sparc64-nat.c,
12138 sparc64-sol2-tdep.c, sparc64-tdep.c, sparc64fbsd-nat.c,
12139 sparc64fbsd-tdep.c, sparcnbsd-nat.c, sparcnbsd-tdep.c.
12140 (sparc_nat_h): New variable.
12141 (sparcbsd_nat_h, sparcnbsd_tdep_h): Remove variables.
12142 (tm-sun4os4.h): Remove dependency.
12143 (sparcbsd-nat.o, sparc-linux-nat.o): Remove dependencies.
12144 (sparc64fbsd-nat.o, sparc64fbsd-tdep.o, sparc64nbsd-nat.o,
12145 sparc64-tdep.o, sparc-nat.o, sparcnbsd-nat.o, sparcnbsd-tdep.o,
12146 sparc-tdep.o): Update dependencies.
12147 (sparc-linux-tdep.o, sparc-sol2-nat.o, sparc-sol2-tdep.o,
12148 sparc64-linux-nat.o, sparc64-linux-tdep.o, sparc64-nat.o,
12149 sparc64-sol2-tdep.o, sparc64-tdep.o, sparc64nbsd-tdep.o): New
12150 dependencies.
12151 * configure.host: Remove existing sparc-*-lynxos*,
12152 sparc-*-solaris*, sparc-*-sunos4*, sparc-*-sunos5*, sparc-*-*,
12153 ultrasparc-*-freebsd, sparcv9-*-freebsd, sparc64-*-linux*,
12154 sparcv9-*-* and sparc64-*-* triplets. Add new sparc64-*-linux*,
12155 sparc-*-solaris2*, sparcv9-*-solaris2* and sparc64-*-solaris2*
12156 triplets.
12157 * configure.tgt: Remove exitsing sparc-*-aout*, sparc-*-coff*,
12158 sparc-*-elf*, sparc*-lynxos*, sparc-*-solars2*, sparc-*-sunos4*,
12159 sparc-*-sunos5*, sparc-*-vxworks*, sparc64-*linux*, sparc64-*-*,
12160 sparcv9-*-* and commented out sparc64-*-solars2* triplets. Add
12161 new sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*,
12162 sparc64-*-linux, sparc-*-solaris2*, sparcv9-*-solaris*,
12163 sparc64-*-solaris2* and sparc64-*-* triplets.
12164 * sparc64-tdep.c: Update copyright year. Include "inferior.h",
12165 "symtab.h" and "objfiles.h".
12166 (BIAS): Remove define.
12167 (X_OP, X_RD, X_A, X_COND, X_OP2, X_IMM22, X_OP3, X_I, X_DISP22)
12168 (X_DISP19): Remove macros.
12169 (sparc_fetch_instruction): Remove function.
12170 (struct gdbarch_tdep): Remove definition.
12171 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use ARRAY_SIZE.
12172 (sparc_breakpoint_from_pc): Remove function.
12173 (struct sparc64_frame_cache): Remove definition.
12174 (sparc64_alloc_frame_cache, sparc64_analyze_prologue,
12175 sparc64_unwind_pc): Remove functions.
12176 (sparc64_skip_prologue): Use `struct sparc_frame_cache' instead of
12177 `struct sparc64_frame_cache. Call sparc_analyze_prologue instead
12178 of sparc64_analyze_prologue. Mark constant as ULL instead of UL.
12179 (sparc64_frame_cache): Change return type to `struct
12180 sparc_frame_cache *'. Simply call sparc_frame_cache.
12181 (sparc64_frame_this_id, sparc64_frame_prev_register,
12182 sparc64_frame_base_address): Use `struct sparc_frame_cache'
12183 instead of `struct sparc64_frame_cache.
12184 (sparc_unwind_dummy_id, sparc_extract_struct_value_address,
12185 sparc_analyze_control_transfer, sparc_software_single_step,
12186 sparc64_gdbarch_init, sparc_supply_rwindow, sparc_fill_rwindow,
12187 _initialize_sparc64_tdep): Remove functions.
12188 (TSTATE_CWP, TSTATE_ICC, TSTATE_XCC): New macros.
12189 (PSR_S, PSR_ICC, PSR_VERS, PSR_IMPL, PSR_V8PLUS, PSR_XCC): New
12190 macros.
12191 (sparc64_supply_gregset, sparc64_collect_gregset,
12192 sparc64_supply_fpregset, sparc64_collect_fpregset): New functions.
12193 (sparc64_init_abi): New function.
12194 * sparc64-tdep.h: Update copyright year. Fix typo in multiple
12195 inclusion guard. Include "sparc-tdep.h".
12196 (BIAS): Define.
12197 (r_tstate_offset, r_fprs_offset): New defines.
12198 (enum sparc_regnum): Remove defenition.
12199 (enum sparc64_regnum): Reformat.
12200 (sparc_supply_rwindow, sparc_fill_rwindow): Remove prototypes.
12201 (sparc64_init_abi, sparc64_supply_gregset,
12202 sparc64_collect_gregset, sparc64_supply_fpregset,
12203 sparc64_collect_fpregset): New prototypes.
12204 (sparc64_sol2_gregset, sparc64nbsd_gregset, sparc64fbsd_gregset):
12205 Add extern declarations.
12206 (sparc64_sol2_init_abi): New prototype.
12207 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
12208 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
12209 prototypes.
12210 * sparc64fbsd-nat.c: Include "sparc-nat.h", don't include
12211 "sparnbsd-nat.h".
12212 (sparc64fbsd_reg_supplies_p, sparc64fbsd_fpreg_supplies_p): Remove
12213 functions.
12214 (_initialize_sparc64fbsd_nat): Remove initialization of
12215 sparcbsd_supply_reg, sparcbsd_fill_reg, sparcbsd_supply_fpreg,
12216 sparcbsd_fill_fpreg, sparcbsd_reg_supplies_p,
12217 sparcbsd_fpreg_supplies_p. Initialize sparc_gregset.
12218 * sparc64fbsd-tdep.c: Update copyright year. Include "frame.h",
12219 "frame-unwind.h", "trad-frame.h" and "gdb_assert.h".
12220 (sparc64fbsd_r_global_offset, sparc64fbsd_r_out_offset)
12221 (sparc64fbsd_r_fprs_offset, sparc64fbsd_r_tnpc_offset)
12222 (sparc64fbsd_r_tpc_offset, sparc64fbsd_r_tstate_offset)
12223 (sparc64fbsd_r_y_offset): Remove variables.
12224 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
12225 Make static and const.
12226 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
12227 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
12228 functions.
12229 (sparc64fbsd_gregset): New variable.
12230 (fetch_core_registers): Replace calls to sparc64fbsd_supply_reg
12231 and sparc64fbsd_supply_fpreg with calls to sparc64_supply_gregset
12232 and sparc64_supply_fpregset.
12233 (sparc64fbsd_pc_in_sigtramp, sparc64fbsd_sigtramp_frame_cache)
12234 (sparc64fbsd_sigtramp_frame_this_id)
12235 (sparc64fbsd_sigtramp_frame_prev_register): New functions.
12236 (sparc64fbsd_sigtramp_frame_unwind): New variable.
12237 (sparc64fbsd_sigtramp_frame_sniffer): New function.
12238 (sparc64fbsd_init_abi): Set pc_in_sigtramp, append
12239 sparc64fbsd_sigtramp_frame_sniffer. Call sparc64_init_abi.
12240 * sparcnbsd-tdep.c: Update copyright year. Include
12241 "floatformat.h", "frame.h", "frame-unwind.h", "symtab.h",
12242 "trad-frame.h" and "gdb_assert.h", don't include "target.h",
12243 "value.h" and "sparcnbsd-tdep.h".
12244 (REG32_OFFSET_PSR, REG32_OFFSET_PC, REG32_OFFSET_NPC)
12245 (REG32_OFFSET_Y, REG32_OFFSET_GLOBAL, REG32_OFFSET_OUT)
12246 (REG64_OFFSET_TSTATE, REG64_OFFSET_PC, REG64_OFFSET_NPC)
12247 (REG64_OFFSET_Y, REG64_OFFSET_GLOBAL, REG64_OFFSET_OUT): Remove
12248 defines.
12249 (sparcnbsd_gregset): New variable.
12250 (sparcnbsd_supply_reg32, sparcnbsd_supply_reg64)
12251 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64)
12252 (sparcnbsd_supply_fpreg32, sparcnbsd_supply_fpreg64)
12253 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64): Remove functions.
12254 (sparc32nbsd_sigtramp_start, sparc32nbsd_sigtramp_end): New
12255 variables.
12256 (sparc32nbsd_pc_in_sigtramp, sparc32nbsd_sigcontext_frame_cache)
12257 (sparc32nbsd_sigcontext_frame_this_id)
12258 (sparc32nbsd_sigcontext_frame_prev_register): New functions.
12259 (sparc32nbsd_sigcontext_frame_unwind): New variable.
12260 (sparc32nbsd_sigtramp_frame_sniffer): New function.
12261 (sparcnbsd_get_longjmp_target_32,
12262 sparcnbsd_get_longjmp_target_64): Remove functions.
12263 (sparcnbsd_aout_in_solib_call_trampoline): Rewrite.
12264 (sparcnbsd_init_abi_common, sparcnbsd_init_aout,
12265 sparcnbsd_init_elf): Remove.
12266 (sparcnbsd_init_abi, sparcnbsd_aout_init_abi)
12267 (sparcnbsd_elf_init_abi): New functions.
12268 (_initialize_sparcnbsd_tdep): New prototype.
12269 (_initialize_sparnbsd_tdep): Update.
12270 * config/sparc/fbsd.mh (NATDEPFILES): Remove sparcbsd-nat.o and
12271 corelow.o. Add sparc64-nat.o and sparc-nat.o.
12272 * config/sparc/fbsd.mt (TDEPFILES): Add sparc-tdep.o and corelow.o.
12273 * config/sparc/linux.mh: Update comment.
12274 (XM_FILE, HOST_IPC): Remove variables.
12275 (NATDEPFILES): Add sparc-sol2-nat.o and core-regset.o. Remove
12276 sparc-linux-nat.o.
12277 * config/sparc/linux.mt: Update comment.
12278 (TDEPFILES): Add sparc-sol2-tdep.o and sparc-linux-tdep.o.
12279 * config/sparc/nbsd.mt: Reformat.
12280 * config/sparc/nbsd64.mh: Update comment.
12281 (NATDEPFILES): Add sparc-nat.o.
12282 * config/sparc/nbsd64.mt: Update comment.
12283 (TDEPFILES): Add sparc64-tdep.o and sparc64nbsd-tdep.o.
12284 (TM_FILE): Set to tm-nbsd.h.
12285 * config/sparc/nbsdelf.mh: Update comment.
12286 (NATDEPFILES): Add sparc-nat.o.
12287 (XM_FILE): Delete.
12288 * config/sparc/nbsdaout.mh: Update comment.
12289 (NATDEPFILES): Add sparc-nat.o
12290 (XM_FILE): Delete.
12291 * config/sparc/nm-linux.h: Update copyright year. Don't include
12292 "config/nm-svr4.h" and "solib.h". Add protection against multiple
12293 inclusion.
12294 (KERNEL_U_SIZE): Remove define.
12295 (kernel_u_size): Remove prototype.
12296 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define.
12297 * config/sparc/nm-nbsd.h: Update copyright. Don't include
12298 "regcache.h".
12299 (CHILD_PREPARE_TO_STORE): Remove define.
12300 * config/sparc/nm-nbsdaout.h: Tweak some comments.
12301 * sparc-nat.c, sparc-tdep.c, sparc-tdep.h, sparc64nbsd-nat.c,
12302 sparcnbsd-nat.c: Rewrite files.
12303 * config/sparc/tm-linux.h, config/sparc/tm-nbsd.h: Rewrite files.
12304 * sparc-linux-nat.c, sparcbsd-nat.c, sparcbsd-nat.h,
12305 sparcnbsd-tdep.h: Remove files.
12306 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4os4.h,
12307 config/sparc/nm-sun4sol2.h, config/sparc/sp64.mt,
12308 config/sparc/sp64linux.mt, config/sparc/sp64sol2.mt,
12309 config/sparc/sparc-em.mt, config/sparc/sparclynx.mh,
12310 config/sparc/sparclynx.mt, config/sparc/sun4os4.mh,
12311 config/sparc/sun4os4.mt, config/sparc/sun4sol2.mh,
12312 config/sparc/sun4sol2.mt, config/sparc/tm-sp64.h,
12313 config/sparc/tm-sp64linux.h, config/sparc/tm-sparc.h,
12314 config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
12315 config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
12316 config/sparc/tm-vxsparc.h, config/sparc/vxsparc.mt,
12317 config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h: Remove files.
12318 * sparc-linux-tdep.c, sparc-nat.h, sparc-sol2-nat.c,
12319 sparc-sol2-tdep.c, sparc64-linux-nat.c, sparc64-linux-t dep.c,
12320 sparc64-nat.c, sparc64-sol2-tdep.c, sparc64nbsd-tdep.c: New files.
12321 * config/sparc/linux64.mh, config/sparc/linux64.mt,
12322 config/sparc/nm-sol2.h, config/sparc/sol2-64.mt,
12323 config/sparc/sol2.mh, config/sparc/sol2.mt, config/sparc/sparc.mt,
12324 config/sparc/sparc64.mt, config/sparc/tm-sol2.h: New files.
12325
12326 2004-01-02 Andrew Cagney <cagney@redhat.com>
12327
12328 From 2003-12-18 Kazuhiro Inaoka:
12329 * configure.host: Add m32r-linux target.
12330
12331 2004-01-02 Michael Chastain <mec.gnu@mindspring.com>
12332
12333 * top.c (print_gdb_version): Update year to 2004.
12334
12335 2004-01-02 Mark Mitchell <mark@codesourcery.com>
12336
12337 * MAINTAINERS: Add myself to the write-after-approval category.
12338
12339 2004-01-02 Daniel Jacobowitz <drow@mvista.com>
12340
12341 From Bernardo Innocenti <bernie@develer.com>:
12342 * configure.tgt: Add uClinux target.
12343
12344 2004-01-02 Andrew Cagney <cagney@redhat.com>
12345
12346 * utils.c (do_my_cleanups): Make static, add forward declaration.
12347 * defs.h (do_my_cleanups): Delete declaration.
12348
12349 2004-01-02 Eli Zaretskii <eliz@elta.co.il>
12350
12351 * config/djgpp/fnchange.lst: Add lines for gdb/ChangeLog-2003 and
12352 bfd/ChangeLog-0203.
12353
12354 2004-01-02 Mark Kettenis <kettenis@gnu.org>
12355
12356 * configure.in: Check for <machine/reg.h>. Check for `struct reg'
12357 in <machine/reg.h>.
12358 * configure, config.in: Regenerate.
12359
12360 For older changes see ChangeLog-2003, mi/ChangeLog-1999-2003, and
12361 tui/ChangeLog-1998-2003.
12362 \f
12363 Local Variables:
12364 mode: change-log
12365 left-margin: 8
12366 fill-column: 74
12367 version-control: never
12368 End:
This page took 0.35629 seconds and 4 git commands to generate.