* inf-ptrace.c (inf_ptrace_attach): Remove redundant parenthesis.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2004-09-25 Mark Kettenis <kettenis@gnu.org>
2
3 * inf-ptrace.c (inf_ptrace_attach): Remove redundant parenthesis.
4 Inline attach call.
5 (inf_ptrace_detach): Inline detach call.
6
7 * configure.in: Check for waddstr instead of mvwaddstr when
8 searching for curses library. Check for wborder.
9 * configure, config.in: Regenerate.
10 * tui/tui-wingeneral.c (box_win): Use box if wborder isn't
11 available.
12
13 * inf-ptrace.c (inf_ptrace_xfer_memory): Fix gdb_indent.sh wart.
14
15 2004-09-24 Robert Picco <Robert.Picco@hp.com>
16
17 Committed by Andrew Cagney.
18 * remote.c (set_remote_protocol_p_packet_cmd, remote_protocol_p)
19 (show_remote_protocol_p_packet_cmd): New. Implement 'p' packet.
20 configuration.
21 (fetch_register_using_p): Implement 'p' packet. Based on code by
22 Fernando Nasser.
23 (remote_fetch_registers): Call fetch_register_using_p.
24 (init_all_packet_configs, show_remote_cmd)
25 (_initialize_remote): Add p-packet.
26
27 2004-09-24 Mark Kettenis <kettenis@gnu.org>
28
29 * inf-ptrace.c (inf_ptrace_kill_inferior): Call ptrace directly
30 instead of call_ptrace. Call wait directly instead of
31 ptrace_wait.
32 (inf_ptrace_me): Call ptrace directly instead of call_ptrace.
33 (inf_ptrace_wait): Inline ptrace_wait call.
34
35 2004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
36
37 * Makefile.in (.y.c): Revert previous change. ../ylwrap was
38 rolled back instead.
39
40 2004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
41
42 * Makefile.in (.y.c): Modify $(YLWRAP) invocation to use
43 the new argument order.
44
45 2004-09-23 Corinna Vinschen <vinschen@redhat.com>
46
47 * MAINTAINERS: Remove "broken" from XStormy16 entry.
48 * xstormy16-tdep.c: Convert XStormy16 target to latest GDB methods.
49 (struct gdbarch_tdep): Remove.
50 (struct xstormy16_frame_cache): New frame cache structure.
51 (xstormy16_register_byte, xstormy16_register_raw_size)
52 (xstormy16_reg_virtual_type, xstormy16_register_type)
53 (xstormy16_push_arguments, xstormy16_push_return_address)
54 (xstormy16_pop_frame, xstormy16_store_struct_return)
55 (xstormy16_store_return_value, xstormy16_extract_struct_value_address)
56 (xstormy16_frame_saved_register, xstormy16_get_saved_register)
57 (xstormy16_scan_prologue, xstormy16_frame_init_saved_regs)
58 (xstormy16_frame_saved_pc, xstormy16_init_extra_frame_info)
59 (xstormy16_frame_chain, xstormy16_frame_chain_valid,
60 (xstormy16_saved_pc_after_call, xstormy16_save_dummy_frame_to): Remove.
61 (xstormy16_use_struct_convention): Drop gcc_p parameter.
62 (xstormy16_extract_return_value, xstormy16_store_return_value):
63 Regcachify. Drop useless struct convention handling.
64 (xstormy16_register_type, xstormy16_return_value)
65 (xstormy16_push_dummy_call, xstormy16_analyze_prologue)
66 (xstormy16_alloc_frame_cache, xstormy16_frame_cache)
67 (xstormy16_frame_prev_register, xstormy16_frame_this_id)
68 (xstormy16_frame_base_address, xstormy16_frame_sniffer)
69 (xstormy16_unwind_sp, xstormy16_unwind_pc)
70 (xstormy16_unwind_dummy_id) : New functions.
71 (xstormy16_skip_prologue): Call xstormy16_analyze_prologue instead
72 of xstormy16_scan_prologue.
73 (xstormy16_frame_unwind): New frame_unwind structure.
74 (xstormy16_frame_base): New frame_base structure.
75 (xstormy16_gdbarch_init): Accomodate all of the above changes.
76 Reshuffle for better readability. Also add dwarf2_frame_sniffer.
77
78 2004-09-22 Mark Kettenis <kettenis@gnu.org>
79
80 * language.c (language_gdbarch_post_init): Fix off-by one error.
81
82 2004-09-21 Daniel Jacobowitz <dan@debian.org>
83
84 * dwarf2read.c (struct dwarf2_per_cu_data): New field type_hash.
85 (struct dwarf2_offset_and_type): New.
86 (set_die_type, reset_die_and_siblings_types, get_die_type)
87 (offset_and_type_hash, offset_and_type_eq): New functions.
88 (read_structure_type, read_enumeration_type, read_array_type)
89 (read_namespace, read_tag_pointer_type, read_tag_ptr_to_member_type)
90 (read_tag_reference_type, read_tag_const_type)
91 (read_tag_volatile_type, read_tag_string_type, read_subroutine_type)
92 (read_typedef, read_base_type, read_subrange_type): Use
93 set_die_type.
94
95 2004-09-20 Daniel Jacobowitz <dan@debian.org>
96
97 * Makefile.in (dwarf2read.o): Update dependencies.
98 * dwarf2read.c: Include "command.h" and "gdbcmd.h".
99 (struct dwarf2_per_objfile): Add all_comp_units, n_comp_units,
100 and read_in_chain.
101 (struct dwarf2_cu): Add read_in_chain, per_cu, last_used,
102 mark, and has_form_ref_addr.
103 (struct dwarf2_per_cu_data): New.
104 (dwarf2_max_cache_age): New.
105 (dwarf2_build_psymtabs_hard): Free cached compilation units
106 after loading. Create and manage the list of compilation units.
107 Remove unnecessary NULL initialization. Fix indentation.
108 (psymtab_to_symtab_1): Initialize all of CU.
109 (dwarf2_read_abbrevs): Set has_form_ref_addr.
110 (find_partial_die): Use dwarf2_find_containing_comp_unit
111 and load_comp_unit.
112 (free_stack_comp_unit): Update comments. Clear the per-cu
113 pointer. Handle aging.
114 (dwarf2_find_containing_comp_unit, free_cached_comp_units)
115 (age_cached_comp_units, free_one_cached_comp_unit)
116 (dwarf2_mark, dwarf2_clear_marks, create_all_comp_units)
117 (load_comp_unit, dwarf2_find_comp_unit, free_one_comp_unit)
118 (set_dwarf2_cmdlist, show_dwarf2_cmdlist, set_dwarf2_cmd)
119 (show_dwarf2_cmd): New.
120 (_initialize_dwarf2_read): Provide "maint set dwarf2 max-cache-age"
121 and "maint show dwarf2 max-cache-age".
122 * gdbcmd.h (maintenance_set_cmdlist, maintenance_show_cmdlist): New
123 externs.
124 * maint.c (maintenance_set_cmdlist, maintenance_show_cmdlist): Make
125 global.
126
127 2004-09-20 Jeff Johnston <jjohnstn@redhat.com>
128
129 * dwarf2read.c (typename_concat): Change prototype to accept obstack
130 and dwarf2_cu struct pointer as arguments. Change function to use
131 obstack if provided and use dwarf2_cu to determine language-specific
132 separator.
133 (partial_die_parent_scope): Change comment to include java. Use
134 new version of typename_concat instead of obconcat.
135 (partial_die_full_name): Use typename_concat.
136 (read_namespace): Ditto.
137 (read_enumeration_type): Use typename_concat instead of obconcat.
138 (new_symbol): Ditto.
139 (add_partial_symbol): Enhance tests for C++ to also test for Java.
140 (guess_structure_name): Ditto.
141 (read_subroutine_type): Ditto.
142 (read_structure_type): Ditto.
143 (is_vtable_name): Add Java support.
144 (determine_class_name): Switch to new typename_concat call.
145 (determine_prefix): Switch to new typename_concat call.
146 * jv-exp.y (FuncStart): New pattern.
147 (MethodInvocation): Add support for simple function calls. Change
148 warning message for other forms of inferior call currently not
149 supported.
150 * valarith.c (value_subscript): Treat an array with upper-bound
151 of -1 as unknown size.
152
153 2004-09-20 Daniel Jacobowitz <dan@debian.org>
154
155 * symtab.c (lookup_partial_symtab): Use psymtab_to_fullname.
156 (lookup_partial_symtab): Use symtab_to_fullname.
157
158 2004-09-19 Jim Blandy <jimb@redhat.com>
159
160 * minsyms.c (lookup_minimal_symbol): Doc fix.
161
162 2004-09-20 Andrew Cagney <cagney@gnu.org>
163
164 * config/nm-lynx.h (DEPRECATED_CHILD_RESUME): Deprecate
165 CHILD_RESUME.
166 * config/i386/nm-linux.h (DEPRECATED_CHILD_RESUME): Ditto.
167 * config/nm-linux.h (DEPRECATED_KILL_INFERIOR): Deprecate
168 KILL_INFERIOR.
169 * infptrace.c: Update.
170
171 2004-09-19 Daniel Jacobowitz <dan@debian.org>
172
173 * symtab.c (output_source_filename): Mark first argument as const.
174 (sources_info): Use symtab_to_fullname and psymtab_to_fullname
175 for "info sources" output.
176
177 2004-09-20 Mark Kettenis <kettenis@gnu.org>
178
179 * config/i386/nm-fbsd.h, config/i386/nm-obsd.h: Don't include
180 <machine/vmparam.h>.
181 (KERNEL_U_ADDR, REGISTER_U_ADDR): Remove defines.
182 (register_u_addr): Remove prototype.
183
184 2004-09-19 Mark Kettenis <kettenis@gnu.org>
185
186 * i386bsd-nat.c: Include "i386bsd-nat.h" and "inf-ptrace.h".
187 (i386bsd_fetch_inferior_registers): Rename from
188 fetch_inferior_registers. Make static.
189 (i386bsd_store_inferior_registers): Rename from
190 store_inferior_registers. Make static.
191 (i386bsd_target): New function.
192 * i386bsd-nat.h: New file.
193 * i386fbsd-nat.c: Include "target.h", "fbsd-nat.h" and
194 "i386bsd-nat.h".
195 (i386fbsd_resume): Rename from child_resume. Make static.
196 (_initialize_i386fbsd_nat): Construct and add target vector.
197 * i386nbsd-nat.c: Include "target.h" and "i386bsd-nat.h".
198 (_initialize_i386nbsd_nat): Construct and add target vector.
199 * config/i386/nm-fbsd.h: (CHILD_RESUME, CHILD_PID_TO_EXEC_FILE):
200 Remove defines.
201 * config/i386/fbsd.mh (NATDEPFILES): Add inf-child.o, inf-ptrace.o
202 and fbsd-nat.o. Remove inftarg.o and fbsd-proc.o.
203 * config/i386/nbsdaout.mh (NATDEPFILES): Add inf-child.o,
204 inf-ptrace.o, i386bsd-nat.o and bsd-kvm.o. Remove inftarg.o.
205 (LOADLIBES): New variable.
206 * config/i386/nbsdelf.mh (NATDEPFILES): Add inf-child.o and
207 inf-ptrace.o. Remove inftarg.o.
208 * config/i386/obsd.mh (NATDEPFILES): Add inf-child.o and
209 inf-ptrace.o. Remove inftarg.o.
210 * config/i386/obsdaout.mh (NATDEPFILES): Add inf-child.o,
211 inf-ptrace.o, i386nbsd-nat.o and bsd-kvm.o. Remove inftarg.o.
212 (LOADLIBES): New variable.
213 * Makefile.in (i386bsd_nat_h): New variable.
214 (i386bsd-nat.o, i386fbsd-nat.o, i386nbsd-nat.o): Update
215 dependencies.
216
217 * sparc64nbsd-tdep.c: Include "objfiles.h".
218 (sparc64nbsd_init_abi): Set in_solib_call_trampoline and
219 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
220 svr4_lp64_fetch_link_map_offsets.
221 * sparc64obsd-tdep.c: Include "objfiles.h". Don't include
222 "nbsd-tdep.h".
223 (sparc64obsd_init_abi): Set in_solib_call_trampoline and
224 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
225 svr4_lp64_fetch_link_map_offsets.
226 * Makefile.in (sparc64nbsd-tdep.o, sparc64obsd-tdep.o): Update
227 dependencies.
228
229 * fbsd-nat.c: New files with cleaned up contents of fbsd-proc.c.
230 * fbsd-nat.h: New file.
231 * Makefile.in (ALLDEPFILES): Add fbsd-nat.c.
232 (fbsd_nat_h): New variable.
233 (fbsd-nat.o): New dependency.
234
235 * config/sparc/nbsd64.mt, config/sparc/obsd.mt,
236 config/sparc/obsd64.mt (DEPRECATED_TM_FILE): Set to solib.h.
237
238 * inf-child.c (inf_child_post_wait): Remove stray whitespace in
239 comment.
240
241 2004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
242
243 * ada-exp.y (type_int): New function to add layer of abstraction
244 around references to expression types.
245 (type_long): Ditto.
246 (type_long_long): Ditto.
247 (type_float): Ditto.
248 (type_double): Ditto.
249 (type_long_double): Ditto.
250 (type_char): Ditto.
251 (type_system_address): Ditto.
252 (simple_exp): Use type_* functions in place of builtin_*
253 variables.
254 (exp): Ditto.
255 (write_var_from_name): Ditto.
256 (write_object_renaming): Ditto.
257 * ada-lang.c (ada_create_fundamental_type): Remove redundant
258 declaration.
259 (build_ada_types): Remove, replacing with...
260 (ada_language_arch_info): New function to initialize primitive
261 type vector in language_arch_info.
262 (ada_array_length): Remove use of builtin_type_ada_int.
263 (value_pos_atr): Ditto.
264 (ada_evaluate_subexp): Ditto.
265 (builtin_type_ada_int, builtin_type_ada_short, builtin_type_ada_long,
266 builtin_type_ada_long_long, builtin_type_ada_char,
267 builtin_type_ada_float, builtin_type_ada_double,
268 builtin_type_ada_long_double, builtin_type_ada_natural,
269 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
270 (ada_builtin_types): Remove.
271 (ada_language_defn): Remove entries for la_builtin_type_vector and
272 string_char_type and use ada_language_arch_info.
273 (_initialize_ada_language): Do type-vector initialization along
274 the lines of c-lang.c.
275 (ada_create_fundamental_type): Break up line.
276 (ada_dump_symtab): Remove unused function.
277 (enum ada_primitive_types): Define.
278 * ada-lang.h (builtin_type_ada_int, builtin_type_ada_short,
279 builtin_type_ada_long,builtin_type_ada_long_long,builtin_type_ada_char,
280 builtin_type_ada_float, builtin_type_ada_double,
281 builtin_type_ada_long_double, builtin_type_ada_natural,
282 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
283 * ada-lex.l: Use type_* functions in place of builtin_* variables.
284 (processInt): Ditto.
285 (processReal): Ditto.
286 (name_lookup): Ditto.
287 * ada-typeprint.c (print_range): Use builtin_type_int, not
288 builtin_type_ada_int.
289
290 2004-09-18 Mark Kettenis <kettenis@gnu.org>
291
292 * i386-tdep.c (i386_register_name): Rename regno to regnum.
293
294 * config/pa/hpux1020.mh (MH_CFLAGS): Remove -D__HP_CURSES.
295 * config/pa/hpux11.mh (MH_CFLAGS): Likewise.
296 * config/pa/hpux11w.mh (MH_CFLAGS): Likewise.
297 * configure.in: Improve checks for curses library by checking for
298 mvwaddstr instead of initscr. Drop HP curses in favour of
299 standard curses on HP-UX.
300 * configure: Regenerated.
301
302 2004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
303
304 * ada-lang.c: (ada_main_name, ada_value_slice_ptr, ada_value_slice,
305 ada_breakpoint_rewrite, ada_template_to_fixed_record_type_1):
306 Minor formatting changes.
307 (empty_array): Slight rewrite for formatting.
308 (emit_char,parse,ada_language_defn,build_ada_types,
309 ada_is_exception_sym, _initialize_ada_language): Move
310 definitions around.
311 (ada_dump_symtab): Remove unused definition.
312 (ada_maybe_exception_partial_symbol): Remove unused definition.
313
314 2004-09-16 Andrew Cagney <cagney@gnu.org>
315
316 * inf-child.c: Include "gdb_string.h".
317 (inf_child_core_file_to_sym_file): Delete.
318 (inf_child_target): Set to_fetch_registers and to_store_registers.
319 * inf-ptrace.c: Include "gdb_string.h".
320 * Makefile.in: Update all dependencies.
321
322 * Makefile.in (gnu-v3-abi.o): Add explict rule to avoid -Werror
323 problem.
324
325 2004-09-14 Joel Brobecker <brobecker@gnat.com>
326
327 * mips-tdep.c (mips_insn32_frame_cache): Pass frame cache in
328 call to heuristic_proc_desc. Remove code that became redundant
329 as a consequence.
330 (read_next_frame_reg): Remove special case for SP_REGNUM.
331 (set_reg_offset): Fix small typo.
332 (reset_saved_regs): New procedure.
333 (mips32_heuristic_proc_desc): No longer compute a fake
334 procedure descriptor. Compute the full frame cache instead.
335 Some minor comment reformatting.
336
337 2004-09-14 Andrew Cagney <cagney@gnu.org>
338
339 * MAINTAINERS: Add Michael Chastain as the backup gdb.threads
340 maintainer.
341
342 * thread-db.c (thread_db_new_objfile): Assume that there is a
343 child process.
344
345 2004-09-13 Jim Blandy <jimb@redhat.com>
346
347 * valops.c (value_assign): Move 'buffer' to the enclosing block,
348 so that its storage isn't referenced after its lifetime ends.
349
350 * valops.c (value_assign): 'use_buffer' is initialized to zero,
351 and never assigned to. Delete it, and the 'if (use_buffer)'
352 clauses. Delete 'raw_buffer', since it is now unused.
353
354 2004-09-13 Andrew Cagney <cagney@gnu.org>
355
356 * configure.in (frags): Replace TM_FILE with DEPRECATED_TM_FILE.
357 * configure: Re-generate.
358 * nlm/Makefile.in (TAGS): Update.
359 * Makefile.in (TAGS): Update.
360 * config/vax/nbsd.mt (TM_FILE): Update.
361 * config/sparc/vxworks.mt (TM_FILE): Update.
362 * config/sparc/sol2.mt (TM_FILE): Update.
363 * config/sparc/sol2-64.mt (TM_FILE): Update.
364 * config/sparc/obsd64.mt (TM_FILE): Update.
365 * config/sparc/obsd.mt (TM_FILE): Update.
366 * config/sparc/nbsd64.mt (TM_FILE): Update.
367 * config/sparc/nbsd.mt (TM_FILE): Update.
368 * config/sparc/linux64.mt (TM_FILE): Update.
369 * config/sparc/linux.mt (TM_FILE): Update.
370 * config/sparc/fbsd.mt (TM_FILE): Update.
371 * config/sh/wince.mt (TM_FILE): Update.
372 * config/sh/nbsd.mt (TM_FILE): Update.
373 * config/sh/linux.mt (TM_FILE): Update.
374 * config/sh/embed.mt (TM_FILE): Update.
375 * config/s390/s390.mt (TM_FILE): Update.
376 * config/rs6000/rs6000lynx.mt (TM_FILE): Update.
377 * config/rs6000/rs6000.mt (TM_FILE): Update.
378 * config/rs6000/aix4.mt (TM_FILE): Update.
379 * config/powerpc/vxworks.mt (TM_FILE): Update.
380 * config/powerpc/ppc-sim.mt (TM_FILE): Update.
381 * config/powerpc/ppc-eabi.mt (TM_FILE): Update.
382 * config/powerpc/obsd.mt (TM_FILE): Update.
383 * config/powerpc/nbsd.mt (TM_FILE): Update.
384 * config/powerpc/linux.mt (TM_FILE): Update.
385 * config/powerpc/aix.mt (TM_FILE): Update.
386 * config/pa/obsd.mt (TM_FILE): Update.
387 * config/pa/linux.mt (TM_FILE): Update.
388 * config/pa/hppahpux.mt (TM_FILE): Update.
389 * config/pa/hppa64.mt (TM_FILE): Update.
390 * config/pa/hppa.mt (TM_FILE): Update.
391 * config/ns32k/nbsdaout.mt (TM_FILE): Update.
392 * config/mips/wince.mt (TM_FILE): Update.
393 * config/mips/vxmips.mt (TM_FILE): Update.
394 * config/mips/nbsd.mt (TM_FILE): Update.
395 * config/mips/linux.mt (TM_FILE): Update.
396 * config/mips/irix6.mt (TM_FILE): Update.
397 * config/mips/irix5.mt (TM_FILE): Update.
398 * config/mips/embed.mt (TM_FILE): Update.
399 * config/m68k/vxworks68.mt (TM_FILE): Update.
400 * config/m68k/st2000.mt (TM_FILE): Update.
401 * config/m68k/os68k.mt (TM_FILE): Update.
402 * config/m68k/obsd.mt (TM_FILE): Update.
403 * config/m68k/nbsd.mt (TM_FILE): Update.
404 * config/m68k/monitor.mt (TM_FILE): Update.
405 * config/m68k/linux.mt (TM_FILE): Update.
406 * config/m68k/cisco.mt (TM_FILE): Update.
407 * config/ia64/linux.mt (TM_FILE): Update.
408 * config/ia64/aix.mt (TM_FILE): Update.
409 * config/ia64/ia64.mt (TM_FILE): Update.
410 * config/i386/vxworks.mt (TM_FILE): Update.
411 * config/i386/obsd64.mt (TM_FILE): Update.
412 * config/i386/obsd.mt (TM_FILE): Update.
413 * config/i386/nto.mt (TM_FILE): Update.
414 * config/i386/nbsd64.mt (TM_FILE): Update.
415 * config/i386/nbsd.mt (TM_FILE): Update.
416 * config/i386/linux64.mt (TM_FILE): Update.
417 * config/i386/linux.mt (TM_FILE): Update.
418 * config/i386/i386sol2.mt (TM_FILE): Update.
419 * config/i386/i386lynx.mt (TM_FILE): Update.
420 * config/i386/fbsd64.mt (TM_FILE): Update.
421 * config/i386/fbsd.mt (TM_FILE): Update.
422 * config/i386/cygwin.mt (TM_FILE): Update.
423 * config/h8300/h8300.mt (TM_FILE): Update.
424 * config/frv/frv.mt (TM_FILE): Update.
425 * config/cris/cris.mt (TM_FILE): Update.
426 * config/arm/wince.mt (TM_FILE): Update.
427 * config/arm/nbsd.mt (TM_FILE): Update.
428 * config/arm/linux.mt (TM_FILE): Update.
429 * config/arm/embed.mt (TM_FILE): Update.
430 * config/alpha/nbsd.mt (TM_FILE): Update.
431 * config/alpha/fbsd.mt (TM_FILE): Update.
432 * config/alpha/alpha.mt (TM_FILE): Update.
433 * config/alpha/alpha-osf1.mt (TM_FILE): Update.
434 * config/alpha/alpha-linux.mt (TM_FILE): Update.
435
436 Eliminate event_loop_p, always has the value 1.
437 * defs.h (event_loop_p): Delete macro.
438 * breakpoint.c (until_break_command): Simplify.
439 * utils.c (prompt_for_continue): Simplify.
440 * tracepoint.c (read_actions): Simplify.
441 * top.c (throw_exception, execute_command, gdb_readline_wrapper)
442 (gdb_rl_operate_and_get_next, command_line_input, get_prompt)
443 (set_prompt, init_main): Simplify.
444 (init_signals, disconnect): Delete, unused.
445 * remote.c (remote_async_resume)
446 (extended_remote_async_create_inferior): Simplify.
447 * mi/mi-interp.c (mi_input): Delete, unused.
448 (mi_interpreter_resume, mi_command_loop): Simplify.
449 * interps.c (current_interp_command_loop): Simplify.
450 * infrun.c (proceed): Simplify.
451 * infcmd.c (run_command, continue_command, step_1, jump_command)
452 (until_command, advance_command, finish_command)
453 (interrupt_target_command): Simplify.
454 * event-top.c (gdb_setup_readline, gdb_disable_readline): Simplify.
455
456 * config/i386/nm-i386.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
457 * config/s390/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
458 * config/pa/nm-hppah.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
459 * config/ia64/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
460 * config/frv/tm-frv.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
461 * mips-tdep.c (mips_dump_tdep): Do not print same.
462
463 2004-09-12 Andrew Cagney <cagney@gnu.org>
464
465 * valprint.c (print_longest): Use fputs_filtered. Make "val"
466 const.
467 * Makefile.in (valprint.o): Delete explict rule.
468
469 * config/m68k/nbsdelf.mh: Add missing trailing newline. Problem
470 reported by Dave Anderson.
471
472 * target.c (target_info): Delete #ifdef call to FILES_INFO_HOOK.
473
474 * inferior.h (STORE_STRUCT_RETURN): Delete macro.
475
476 2004-09-12 Salvador E. Tropea <set@users.sf.net>
477 Andrew Cagney <cagney@gnu.org>
478
479 * mi/mi-main.c (mi_cmd_data_list_changed_registers)
480 (mi_cmd_data_list_register_values)
481 (mi_cmd_data_write_register_values): Include the PSEUDO_REGS in
482 the register number computation.
483
484 2004-09-12 Andrew Cagney <cagney@gnu.org>
485
486 * ppcnbsd-nat.c: Include "inf-ptrace.h".
487 (ppcnbsd_fetch_inferior_registers): Rename fetch_inferior_registers.
488 (ppcnbsd_store_inferior_registers): Rename store_inferior_registers.
489 (_initialize_ppcnbsd_nat): Create and add a NetBSD/PPC ptrace
490 target.
491 * config/powerpc/nbsd.mh (NATDEPFILES): Replace and inftarg.o with
492 inf-ptrace.o and inf-child.o.
493 * inf-ptrace.h, inf-ptrace.c, inf-child.h, inf-child.c: New files.
494 * Makefile.in: Update dependencies.
495
496 2004-09-11 Andrew Cagney <cagney@gnu.org>
497
498 * language.c (hex_string, hex_string_custom): Move from here ...
499 * utils.c (hex_string, hex_string_custom): ... to here, rewrite.
500 (CELLSIZE): Increase to 50.
501 * language.h (hex_string, hex_string_custom): Move from here ...
502 * defs.h: ... to here.
503 * Makefile.in: Update all dependencies.
504
505 2004-09-11 Paul N. Hilfinger <hilfinger@gnat.com>
506
507 * language.c (local_hex_format_custom): Remove.
508 (local_hex_string): Rename to hex_string, use C format, and move to
509 utils.c
510 (local_hex_string_custom): Rename to hex_string_custom and change
511 interface. Now uses C format. Move to utils.c
512 (local_octal_format_custom): Remove.
513 (local_decimal_format_custom): Remove.
514 (unknown_language_defn): Remove language-specific number
515 formatting entries.
516 (auto_language_defn): Ditto.
517 (local_language_defn): Ditto.
518 * language.h (struct language_format_info): Delete declaration.
519 (struct language_defn): Remove language_format_info fields
520 la_binary_format, la_octal_format, la_decimal_format, la_hex_format.
521 (local_binary_format): Remove macro.
522 (local_binary_format_prefix): Remove macro.
523 (local_binary_format_specifier): Remove macro.
524 (local_binary_format_suffix): Remove macro.
525 (local_octal_format): Remove macro.
526 (local_octal_format_prefix): Remove macro.
527 (local_octal_format_specifier): Remove macro.
528 (local_octal_format_suffix): Remove macro.
529 (local_decimal_format): Remove macro.
530 (local_decimal_format_prefix): Remove macro.
531 (local_decimal_format_specifier): Remove macro.
532 (local_decimal_format_suffix): Remove macro.
533 (local_hex_format): Remove macro.
534 (local_hex_format_prefix): Remove macro.
535 (local_hex_format_specifier): Remove macro.
536 (local_hex_format_suffix): Remove macro.
537 (local_decimal_format_custom): Remove.
538 (local_octal_format_custom): Remove.
539 (local_hex_format_custom): Remove.
540 (local_hex_string): Rename to hex_string and move to defs.h.
541 (local_hex_string_custom): Rename to hex_string_custom, change
542 interface, and move to defs.h.
543 * utils.c: (int_string): New function.
544 (hex_string): New function (from language.c).
545 (hex_string_custom): New function (from language.c).
546 (octal2str): New function.
547 (decimal2str): Add width parameter.
548 (paddr_u): Use new decimal2str interface.
549 (paddr_d): Ditto.
550 * defs.h (hex_string): Declare.
551 (hex_string_custom): Declare.
552 (int_string): Declare.
553 * printcmd.c (print_scalar_formatted): Remove localized binary
554 formatting.
555 * valprint.c (print_longest): Use int_string.
556 (print_floating): Use C hex format.
557 (print_hex_chars): Ditto.
558 (print_binary_chars): Remove language-specific formatting.
559 (print_octal_chars): Use C octal format.
560 (print_decimal_chars): Delocalize format.
561 (print_decimal): Remove.
562 * ada-lang.c (ada_language_defn): Remove language-specific number
563 formatting entries.
564 * p-lang.c (pascal_language_defn): Ditto.
565 * c-lang.c (c_language_defn): Ditto.
566 (cplus_language_defn): Ditto.
567 (asm_language_defn): Ditto.
568 (minimal_language_defn): Ditto.
569 * f-lang.c (f_language_defn): Ditto.
570 * jv-lang.c (java_language_defn): Ditto.
571 * m2-lang.c (m2_language_defn): Ditto.
572 * scm-lang.c (scm_language_defn): Ditto.
573 * objc-lang.c (objc_language_defn): Ditto.
574 * memattr.c (mem_info_command): Use renamed hex_string_custom with
575 new interface.
576 * pa64solib.c (pa64_sharedlibrary_info_command): Ditto.
577 * ui-out.c (ui_out_field_core_addr): Ditto.
578 * breakpoint.c (breakpoint_adjustment_warning): Ditto.
579 * exec.c (print_section_info): Ditto.
580 * i387-tdep.c (print_i387_status_word): Ditto.
581 (print_i387_control_word): Ditto.
582 (i387_print_float_info): Ditto.
583 * maint.c (maint_print_section_info): Ditto.
584 * solib.c (info_sharedlibrary_command): Ditto.
585 * somsolib.c (som_sharedlibrary_info_command): Ditto.
586 * symtab.c (print_msymbol_info): Ditto.
587 * tracepoint.c (tracepoints_info): Ditto.
588 * solib-frv.c (lm_base): Ditto.
589 (frv_current_sos): Ditto.
590 (enable_break2): Ditto.
591 (enable_break): Ditto.
592 * dbxread.c (read_dbx_symtab): Use renamed hex_string.
593 (process_one_symbol): Ditto.
594 * infcmd.c (program_info): Ditto.
595 * mdebugread.c (parse_partial_symbols): Ditto.
596 * symfile.c (add_symbol_file_command): Ditto.
597 * cli/cli-cmds.c (edit_command): Ditto.
598 (list_command): Ditto.
599 * infcall.c (call_function_by_hand): Ditto.
600 * remote-vx.c (vx_run_files_info): Ditto.
601 (vx_wait): Ditto.
602 (vx_attach): Ditto.
603 (vx_detach): Ditto.
604 (vx_kill): Ditto.
605 * aix-thread.c (pdc_symbol_addrs): Ditto.
606 (pdc_read_regs): Ditto.
607 (pdc_write_regs): Ditto.
608 (pdc_read_data): Ditto.
609 (pdc_write_data): Ditto.
610 * d10v-tdep.c (display_trace): Ditto.
611 * rs6000-nat.c (find_toc_address): Ditto.
612 * aix-thread.c: Don't include language.h.
613 * buildsym.c: Ditto.
614 * dbxread.c: Ditto.
615 * mdebugread.c: Ditto.
616 * rs6000-nat.c: Ditto.
617 * buildsym.c (make_blockvector): Use renamed hex_string.
618
619 2004-09-10 Jason Molenda (jmolenda@apple.com)
620
621 * cli/cli-script.c (read_next_line): Accept zero or more whitespace
622 chars after 'if' or 'while' commands in user-defined commands.
623
624 2004-09-08 Jim Blandy <jimb@redhat.com>
625
626 Fix bug reported and analyzed by Olivier Crete:
627 * symfile.c (copy_section_addr_info): New function.
628 (symbol_file_add_with_addrs_or_offsets): Use it to save the
629 original set of address arguments, instead of handwritten code
630 that uses one length to allocate and a different length to
631 initialize. Use make_cleanup_free_section_addr_info.
632 * symfile.h (copy_section_addr_info): New declaration.
633 * utils.c: #include "symfile.h".
634 (do_free_section_addr_info, make_cleanup_free_section_addr_info):
635 New functions.
636 * defs.h (make_cleanup_free_section_addr_info): New declaration.
637 * Makefile.in (utils.o): Update dependencies.
638
639 2004-09-08 Andrew Cagney <cagney@gnu.org>
640
641 * thread-db.c (keep_thread_db): Delete.
642 (thread_db_new_objfile, thread_db_create_inferior)
643 (thread_db_mourn_inferior): Simplify assuming !keep_thread_db.
644
645 2004-09-08 Mark Kettenis <kettenis@gnu.org>
646
647 * i386-tdep.h (FPC_REGNUM, FCTRL_REGNUM, FSTAT_REGNUM, FTAG_REGNUM)
648 (FISEG_REGNUM, FIOFF_REGNUM, FOSEG_REGNUM, FOOFF_REGNUM)
649 (FOP_REGNUM, XMM0_REGNUM, MXCSR_REGNUM): Remove macros.
650 (i386_frameless_signal_p): Remove prototype.
651 * i386-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
652 (GETFPXREGS_SUPPLIES): Define using I386_ST0_REGNUM and
653 I386_SSE_NUM_REGS.
654 * i386-nto-tdep.c (i386nto_supply_gregset): Use I386_NUM_GREGS
655 instead of FP0_REGNUM.
656 (i386nto_regset_id): Use I386_NUM_GREGS and I386_NUM_FREGS instead
657 of FP0_REGNUM and FPC_REGNUM.
658
659 * solib-sunos.c (sunos_relocate_main_executable): Remove function.
660 (sunos_solib_create_inferior_hook): Don't call
661 sunos_relocate_main_executable.
662
663 * sparcnbsd-tdep.c (sparc32nbsd_elf_init_abi): Set
664 solib_svr4_fetch_link_map_offsets to
665 svr4_ilp32_fetch_link_map_offsets.
666 * sparcobsd-tdep.c: Don't include "nbsd-tdep.h".
667 (sparc32obsd_init_abi): Set solib_svr4_fetch_link_map_offsets to
668 svr4_ilp32_fetch_link_map_offsets.
669 * Makefile.in (sparcobsd-tdep.o): Update dependencies.
670
671 2004-09-07 Jim Blandy <jimb@redhat.com>
672
673 * frame.h (frame_register): Doc fix.
674
675 2004-09-07 Andrew Cagney <cagney@gnu.org>
676
677 * vx-share/wait.h: Delete #ifdef USG.
678 * utils.c (request_quit): Ditto.
679 * tui/tui.c (tui_reset): Ditto.
680 * remote.c: Ditto.
681 * remote-sds.c: Ditto.
682 * remote-rdi.c: Ditto.
683 * mdebugread.c: Ditto.
684 * m68klinux-nat.c: Ditto.
685 * infttrace.c: Ditto.
686 * infptrace.c: Ditto.
687 * i386v-nat.c: Ditto.
688 * exec.c: Ditto.
689 * dbxread.c: Ditto.
690 * core-aout.c: Ditto.
691
692 2004-09-05 Joel Brobecker <brobecker@gnat.com>
693
694 * mips-tdep.c (mips_insn16_frame_cache): Fix parameter in call to
695 heuristic_proc_desc.
696 (mips_insn32_frame_cache): Likewise.
697
698 2004-09-04 Joel Brobecker <brobecker@gnat.com>
699
700 * mips-tdep.c (mips32_heuristic_proc_desc): Remove code that was
701 left behind by error.
702
703 2004-09-04 Joel Brobecker <brobecker@gnat.com>
704
705 * config/alpha/nm-osf.h (PTRACE_ARG3_TYPE): Remove define.
706 * config/powerpc/nm-aix.h (PTRACE_ARG3_TYPE): Likewise.
707
708 2004-09-04 Joel Brobecker <brobecker@gnat.com>
709
710 * config/rs6000/xm-aix4.h: Remove this file.
711 * config/rs6000/aix4.mh (XM_FILE): Delete.
712
713 2004-09-04 Joel Brobecker <brobecker@gnat.com>
714
715 * config/rs6000/xm-rs6000.h: Remove this file.
716 * config/rs6000/rs6000.mh (XM_FILE): Remove.
717
718 2004-09-03 Andrew Cagney <cagney@gnu.org>
719
720 * mips-tdep.c (PROC_DESC_IS_DUMMY, SET_PROC_DESC_IS_DUMMY)
721 (_PROC_MAGIC_, after_prologue, mips_dump_tdep): Delete macros and
722 only use.
723
724 * mips-tdep.c (temp_saved_regs): Delete.
725 (set_reg_offset): Replace saved_regs parameter with this_cache.
726 (heuristic_proc_desc, mips16_heuristic_proc_desc)
727 (mips32_heuristic_proc_desc): Add this_cache parameter.
728 (mips_insn32_frame_cache, mips_insn16_frame_cache)
729 (after_prologue): Pass a NULL this_cache.
730
731 * mips-tdep.c (mips_mdebug_frame_cache): Delete code handling
732 non-kernel trap prologues.
733
734 * mips-tdep.c (find_proc_desc): Delete function.
735 (mips_mdebug_frame_cache): Inline call to find_proc_desc,
736 simplify.
737 (mips_insn16_frame_cache): Replace find_proc_desc with code from
738 mips_insn32_frame_cache.
739
740 * mips-tdep.c (after_prologue): Inline call to find_proc_desc.
741 Simplify as NEXT_FRAME is NULL.
742 (find_proc_desc): Simplify as NEXT_FRAME is non-NULL.
743
744 * mips-tdep.c (after_prologue): Replace proc_desc parameter with
745 local variable.
746 (mips_skip_prologue): Update.
747
748 * mips-tdep.c (find_proc_desc, heuristic_proc_desc): Delete
749 "cur_frame" parameter.
750 (after_prologue, mips_mdebug_frame_cache, mips_insn16_frame_cache):
751 (mips_insn32_frame_cache, find_proc_desc): Update
752
753 * config/vax/nm-obsd.h: Delete file.
754 * config/vax/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
755 * config/vax/nm-nbsd.h: Delete file.
756 * config/vax/nm-nbsdaout.h: Include config/nm-nbsd.h.
757 * config/vax/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
758 * config/sh/nm-nbsd.h: Delete file.
759 * config/sh/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
760 * config/rs6000/nm-rs6000ly.h: Delete file.
761 * config/djgpp/fnchange.lst: Do not rename nm-rs6000ly.h.
762 * config/rs6000/rs6000lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
763 * config/powerpc/nm-obsd.h: Delete file.
764 * config/powerpc/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
765 * config/powerpc/nm-nbsd.h: Delete file.
766 * config/powerpc/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
767 * config/pa/nm-obsd.h: Delete file.
768 * config/pa/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
769 * config/mips/nm-nbsd.h: Delete file.
770 * config/mips/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
771 * config/m88k/nm-obsd.h: Delete file.
772 * config/m88k/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
773 * config/m68k/nm-nbsd.h: Delete file.
774 * config/m68k/nm-nbsdaout.h: Include config/nm-nbsd.h.
775 * config/m68k/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
776 * config/i386/nm-nbsd.h: Delete file.
777 * config/i386/nm-nbsdaout.h: Include config/nm-nbsd.h.
778 * config/i386/obsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
779 * config/i386/nbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
780 * config/i386/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
781 * config/i386/nm-i386lynx.h: Delete file.
782 * config/i386/i386lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
783 * config/arm/nm-nbsd.h: Delete file.
784 * config/arm/nm-nbsdaout.h: Include config/nm-nbsd.h.
785 * config/arm/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
786
787 * config/i386/tm-fbsd.h: Delete file.
788 * config/i386/fbsd64.mt (TM_FILE): Set to solib.h.
789 * config/i386/fbsd.mt (TM_FILE): Set to solib.h.
790
791 * config/rs6000/tm-rs6000-aix4.h: Delete file.
792 * config/djgpp/fnchange.lst: Do not rename tm-rs6000-aix4.h.
793 * config/rs6000/aix4.mt (TM_FILE): Set to
794 config/rs6000/tm-rs6000.h.
795 * config/powerpc/tm-ppc-aix.h: Delete file.
796 * config/powerpc/aix.mt (TM_FILE): Set to
797 config/rs6000/tm-rs6000.h.
798 * config/m68k/tm-linux.h: Delete file.
799 * config/m68k/linux.mt (TM_FILE): Set to solib.h
800 * config/i386/tm-linux64.h: Delete file.
801 * config/i386/linux64.mt (TM_FILE): Set to solib.h.
802 * config/djgpp/fnchange.lst: Do not rename tm-linux.h.
803
804 * config/m68k/tm-linux.h (SVR4_SHARED_LIBS): Delete.
805 * config/i386/tm-linux64.h (SVR4_SHARED_LIBS): Delete.
806 * config/i386/nm-i386sco5.h (SVR4_SHARED_LIBS): Delete.
807 * config/tm-linux.h (SVR4_SHARED_LIBS): Delete.
808 * config/nm-sysv4.h (SVR4_SHARED_LIBS): Delete.
809 * config/nm-linux.h (SVR4_SHARED_LIBS): Delete.
810 * config/nm-gnu.h (SVR4_SHARED_LIBS): Delete.
811 * sh64-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
812 * sh-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
813
814 * configure.in (GDB_TM_FILE): Fix typo, use gdb_target_cpu and not
815 gdb_host_cpu.
816
817 2004-09-02 Joel Brobecker <brobecker@gnat.com>
818
819 * mips-tdep.c (mips_insn32_frame_cache): Remove some dead code.
820 Minor reformatting. Some code factoring.
821
822 2004-09-02 Andrew Cagney <cagney@gnu.org>
823
824 * config/vax/nbsd.mt (TM_FILE): Set to solib.h.
825 * config/vax/tm-nbsd.h: Delete file.
826 * config/sparc/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
827 * config/sparc/tm-vxworks.h: Delete file.
828 * config/sparc/nbsd.mt (TM_FILE): Set to solib.h.
829 * config/sparc/tm-nbsd.h: Delete file.
830 * config/sparc/linux64.mt (TM_FILE): Set to solib.h.
831 * config/sparc/linux.mt (TM_FILE): Set to solib.h.
832 * config/sparc/tm-linux.h: Delete file.
833 * config/s390/s390.mt (TM_FILE): Set to config/tm-linux.h
834 * config/s390/tm-linux.h: Delete file.
835 * config/pa/obsd.mt (TM_FILE): Set to solib.h.
836 * config/pa/tm-bsd.h: Delete file.
837 * config/m68k/obsd.mt (TM_FILE): Set to solib.h.
838 * config/m68k/tm-obsd.h: Delete file.
839 * config/m68k/nbsd.mt (TM_FILE): Set to solib.h.
840 * config/m68k/tm-nbsd.h: Delete file.
841 * config/i386/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
842 * config/i386/tm-vxworks.h: Delete file.
843 * config/i386/obsd64.mt (TM_FILE): Set to solib.h.
844 * config/i386/obsd.mt (TM_FILE): Set to solib.h.
845 * config/i386/nbsd64.mt (TM_FILE): Set to solib.h.
846 * config/i386/nbsd.mt (TM_FILE): Set to solib.h.
847 * config/i386/tm-nbsd.h: Delete file.
848 * config/i386/i386lynx.mt (TM_FILE): Set to config/tm-lynx.h.
849 * config/i386/tm-i386lynx.h: Delete file.
850 * config/cris/cris.mt (TM_FILE): Set to solib.h.
851 * config/cris/tm-cris.h: Delete file.
852
853 * configure.in: Let TM_FILE, XM_FILE and NAT_FILE specify a path.
854 * configure: Re-generate.
855 * config/arm/nbsd.mt (TM_FILE): Set to "solib.h".
856 * config/arm/tm-nbsd.h: Delete file.
857
858 * config/powerpc/tm-ppcle-sim.h: Delete.
859 * config/powerpc/tm-ppcle-eabi.h: Delete.
860 * config/powerpc/tm-nbsd.h: Delete.
861 * config/powerpc/nbsd.mt (TM_FILE): Set to tm-ppc-eabi.h.
862 * config/djgpp/fnchange.lst: Do not rename tm-ppcle-sim.h or
863 tm-ppcle-eabi.h.
864
865 * config/i386/nto.mh (NAT_FILE): Delete.
866 * config/i386/nm-nto.h: Delete.
867
868 * config/m68k/tm-vx68.h: Do not include "tm-m68k.h".
869 * config/m68k/tm-os68k.h: Ditto.
870 * config/m68k/tm-monitor.h: Ditto.
871 * config/m68k/tm-cisco.h: Ditto.
872 * config/m68k/st2000.mt (TM_FILE): Delete.
873 * config/m68k/tm-vx68.h (GET_LONGJMP_TARGET): Delete.
874 * config/m68k/tm-cisco.h (GET_LONGJMP_TARGET): Delete.
875 * config/m68k/tm-m68k.h (m68k_get_longjmp_target): Delete file.
876 * m68k-tdep.c (m68k_get_longjmp_target): Make static.
877
878 * config/m68k/tm-st2000.h: Delete.
879 * config/m68k/st2000.mt (TM_FILE): Set to tm-m68k.h.
880 * config/sparc/fbsd.mt (TM_FILE): Delete.
881 * config/sparc/tm-fbsd.h: Delete.
882
883 * acconfig.h (GDB_MULTI_ARCH): Delete undef.
884 * defs.h (GDB_MULTI_ARCH_PARTIAL, GDB_MULTI_ARCH_TM)
885 (GDB_MULTI_ARCH_PURE, GDB_MULTI_ARCH): Delete macros.
886
887 * gdbarch.sh: Instead of GDB_MULTI_ARCH print GDB_NM_FILE,
888 GDB_TM_FILE and GDB_XM_FILE.
889 * gdbarch.c: Re-generate.
890 * configure.in (GDB_XM_FILE, GDB_NM_FILE, GDB_TM_FILE): Include
891 quotes in macro definition.
892 * configure.in: Re-generate.
893
894 * gdbarch.sh: Delete check for GDB_MULTI_ARCH_PARTIAL when
895 validating architecture methods.
896 * gdbarch.c: Re-generate.
897
898 * gdbarch.sh: Delete check for consistency between GDB_MULTI_ARCH
899 and GDB_TM_FILE. Check for GDB_TM_FILE instead of
900 GDB_MULTI_ARCH_PARTIAL.
901 * gdbarch.h: Re-generate.
902
903 * config/sparc/tm-vxworks.h (GDB_MULTI_ARCH): Delete.
904 * config/sparc/tm-sol2.h (GDB_MULTI_ARCH): Delete.
905 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete.
906 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete.
907 * config/sparc/tm-fbsd.h (GDB_MULTI_ARCH): Delete.
908 * config/sh/tm-sh.h (GDB_MULTI_ARCH): Delete.
909 * config/rs6000/tm-rs6000.h (GDB_MULTI_ARCH): Delete.
910 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Delete.
911 * config/mips/tm-mips.h (GDB_MULTI_ARCH): Delete.
912 * config/ia64/tm-ia64.h (GDB_MULTI_ARCH): Delete.
913 * config/cris/tm-cris.h (GDB_MULTI_ARCH): Delete.
914 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Delete.
915
916 2004-09-01 Andrew Cagney <cagney@gnu.org>
917
918 * objfiles.h (struct entry_info): Delete fields main_func_lowpc
919 and main_func_highpc.
920 (INVALID_ENTRY_LOWPC, INVALID_ENTRY_HIGHPC): Delete macros.
921 * objfiles.c (init_entry_point_info, objfile_relocate): Update
922 * nlmread.c (nlm_symfile_read): Update.
923
924 2004-09-01 Joel Brobecker <brobecker@gnat.com>
925
926 * mips-tdep.c (linked_proc_desc_table): Delete, not used.
927 (mips_insn32_frame_cache): Inline call to find_proc_desc.
928 (find_proc_desc): Remove dead code.
929
930 2004-09-01 Joel Brobecker <brobecker@gnat.com>
931
932 * mips-tdep.c (mips_mdebug_frame_cache): Minor reformatting.
933
934 2004-09-01 Jeff Johnston <jjohnstn@redhat.com>
935
936 * observer.sh: Add struct so_list declaration.
937 * Makefile.in: Add dependencies on observer.h for solib.c and
938 breakpoint.c.
939 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): New
940 function.
941 (_initialize_breakpoint): Register
942 disable_breakpoints_in_unloaded_shlib as an observer of the
943 "solib unloaded" observation event.
944 (re_enable_breakpoints_in_shlibs): For bp_shlib_disabled breakpoints,
945 call decode_line_1 so unfound breakpoint errors are silent.
946 * solib.c (update_solib_list): When a solib is discovered to have
947 been unloaded by the program, notify all observers of the
948 "solib unloaded" observation event.
949
950 2004-09-01 Andrew Cagney <cagney@gnu.org>
951
952 * frame.c: Include "objfiles.h".
953 (inside_main_func): New function.
954 (get_prev_frame): Use new inside_main_func.
955 * Makefile.in (frame.o): Update dependencies.
956 * defs.h (inside_main_func): Delete declaration.
957 * blockframe.c (inside_main_func): Delete function.
958
959 2004-08-31 Jim Blandy <jimb@redhat.com>
960
961 * dwarf2read.c (is_vtable_name): New function, based on logic from
962 read_structure_type, but passing the correct length to strncmp,
963 and using 'sizeof' instead of 'strlen'.
964 (read_structure_type): Call it.
965
966 2004-08-31 Joel Brobecker <brobecker@gnat.com>
967
968 * config/powerpc/aix.mh: Add comment.
969
970 2004-08-31 Paul GIlliam <pgilliam@us.ibm.com>
971
972 * MAINTAINERS: Add self to Write-After-Approval.
973
974 2004-08-30 Manoj Iyer <manjo@austin.ibm.com>
975
976 * MAINTAINERS: Add self to Write-After-Approval.
977
978 2004-08-30 Andrew Cagney <cagney@gnu.org>
979
980 Fix PR breakpoints/1757.
981 * infrun.c (struct execution_control_state): Replace
982 remove_breakpoints_on_following_step with
983 step_after_step_resume_breakpoint.
984 (init_execution_control_state): Update.
985 (handle_inferior_event): For signals, when stepping off a
986 breakpoint, set step_after_step_resume_breakpoint. When
987 BPSTAT_WHAT_STEP_RESUME, do a single-step off the breakpoint.
988 (keep_going): Delete code handling
989 remove_breakpoints_on_following_step.
990
991 2004-08-29 David Lecomber <david@streamline-computing.com>
992
993 Fix PR gdb/648
994 * language.h (enum array_ordering): New enum.
995 * language.h (struct language_defn): New la_array_ordering
996 attribute.
997 * language.c (unknown_language_defn, auto_language_defn)
998 (local_language_defn): Ditto.
999 * ada-lang.c (ada_language_defn): Ditto.
1000 * c-lang.c (c_language_defn, cplus_language_defn)
1001 (asm_language_defn, minimal_language_defn): Ditto.
1002 * f-lang.c (f_language_defn): Ditto.
1003 * jv-lang.c (java_language_defn): Ditto.
1004 * m2-lang.c (f_language_defn): Ditto.
1005 * objc-lang.c (objc_language_defn): Ditto.
1006 * p-lang.c (pascal_language_defn): Ditto.
1007 * scm-lang.c (scm_language_defn): Ditto.
1008 * eval.c (evaluate_subexp_standard): Assume Fortran arrays are
1009 oriented large to small in type structure.
1010 * dwarf2read.c (read_array_order): New function.
1011 (read_array_type): Use read_array_order to check row/column
1012 major ordering.
1013
1014 2004-08-27 Nathan J. Williams <nathanw@wasabisystems.com>
1015
1016 * target.c (target_resize_to_sections): Check
1017 current_target.to_sections for an old value when updating.
1018
1019 2004-08-27 Joel Brobecker <brobecker@gnat.com>
1020
1021 * procfs.c (dbx_link_bpt_addr): New static global variable.
1022 (dbx_link_shadow_contents): New static global variable.
1023 (procfs_wait, case <PR_SYSEXIT>): Handle syssgi events.
1024 (procfs_wait, case <FLTBPT>): Remove the __dbx_link brekapoint
1025 if we just hit it.
1026 (procfs_init_inferior): Enable syssgi() syscall trace if appropriate.
1027 Reset dbx_link_bpt_addr as the address of __dbx_link() may change
1028 from run to run.
1029 (procfs_create_inferior): Remove syssgi syscall-exit notifications
1030 after the inferior has been forked.
1031 (remove_dbx_link_breakpoint): New function.
1032 (dbx_link_addr): New function.
1033 (insert_dbx_link_bpt_in_file): New function.
1034 (insert_dbx_link_bpt_in_region): New function.
1035 (insert_dbx_link_breakpoint): New function.
1036 (proc_trace_syscalls_1): New function, extracted from
1037 proc_trace_syscalls.
1038 (proc_trace_syscalls): Replace extract code by call to
1039 proc_trace_syscalls_1.
1040 * solib-irix.c (disable_break): Remove stop_pc assertion, as it
1041 is no longer valid.
1042
1043 2004-08-25 Jim Blandy <jimb@redhat.com>
1044
1045 * gdbtypes.h (TYPE_CODE_ARRAY): Doc fix.
1046
1047 2004-08-25 Andrew Cagney <cagney@gnu.org>
1048
1049 * infrun.c (struct execution_control_state): Delete field
1050 "stepping_through_sigtramp".
1051 (init_execution_control_state): Do not set same.
1052 (context_switch): Do not pass same to save_infrun_state and
1053 load_infrun_state.
1054 * gdbthread.h (struct thread_info): Delete field
1055 stepping_through_sigtramp.
1056 (save_infrun_state, load_infrun_state): Delete parameter
1057 stepping_through_sigtramp.
1058 * thread.c (load_infrun_state, save_infrun_state): Update.
1059
1060 * infrun.c: Re-indent. Move expression operators to the beginning
1061 of the line. Remove long disabled #if 0 code.
1062
1063 2004-08-24 Andrew Cagney <cagney@gnu.org>
1064
1065 * doublest.h (floatformat_ieee_quad): Rename
1066 floatformat_ia64_quad.
1067 * doublest.c (floatformat_ieee_quad): Rename
1068 floatformat_ia64_quad.
1069 (_initialize_doublest): Update.
1070
1071 2004-08-24 Jim Blandy <jimb@redhat.com>
1072
1073 * dwarf2expr.h (struct dwarf_expr_context): New members
1074 'num_pieces' and 'pieces', for returning the result of an
1075 expression that uses DW_OP_piece.
1076 (struct dwarf_expr_piece): New struct type.
1077 * dwarf2expr.c (new_dwarf_expr_context): Initialize num_pieces and
1078 pieces.
1079 (free_dwarf_expr_context): Free pieces, if any.
1080 (add_piece): New function.
1081 (execute_stack_op): Implement DW_OP_piece.
1082 * dwarf2loc.c (dwarf2_evaluate_loc_desc): If the result of the
1083 expression is a list of pieces, print an error message.
1084 (dwarf2_loc_desc_needs_frame): If the expression yields
1085 pieces, and any piece is in a register, then we need a frame.
1086
1087 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Wait to fetch the top of
1088 the stack until we've decided what sort of result the evaluation
1089 has produced. Use separate variables, with more specific names.
1090
1091 2004-08-23 Richard Earnshaw <rearnsha@arm.com>
1092
1093 * armnbsd-tdep.c (arm_nbsd_arm_be_breakpoint): Define.
1094 (arm_nbsd_thumb_[lb]e_breakpoint): Define.
1095 (arm_netbsd_init_abi_common): Register them.
1096
1097 2004-08-22 Mark Kettenis <kettenis@gnu.org>
1098
1099 * config/vax/vax.mh (NATDEPFILES): Add vax-nat.c.
1100
1101 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Use
1102 safe_frame_unwind_memory instead of target_read_memory.
1103
1104 * infptrace.c: Remove #ifdef'ed out inclusion of gdb_stat.h.
1105 Reorder includes.
1106 (fetch_register, store_register): Remove prototypes.
1107 (child_resume): Reorganize code and comments such that it is
1108 grouped a bit more logically.
1109 (attach): Explicitly compare errno against 0.
1110 (detach): Likewise. Use perror_with_name instead of
1111 print_sys_errmsg.
1112 * Makefile.in (infptrace.o): Update dependencies.
1113
1114 * ia64-linux-nat.c: Update copyright year.
1115 (fetch_debug_register, store_debug_register)
1116 (ia64_linux_stopped_by_watchpoint): Replace PTRACE_ARG3_TYPE with
1117 PTRACE_TYPE_ARG3.
1118 * config/ia64/nm-linux.h: Update copyright year.
1119 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove defines.
1120
1121 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Change argument
1122 from CORE_ADDR to struct frame_info *. Use
1123 safe_frame_unwind_memory instead of deprecated_read_memory_nobpt.
1124 (amd64_linux_sigtramp_p): Adjust for changed signature of
1125 and64_linux_sigtramp_start
1126
1127 * gdb_ptrace.h: GNU/Linux.
1128
1129 * config/alpha/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
1130 Remove defines.
1131
1132 * infptrace.c: Include "gdb_assert.h".
1133 (PTRACE_XFER_TYPE): Remove define.
1134 (offsetof): Only define if U_REGS_OFFSET isn't defined.
1135 (fetch_register, store_register): Rewrite to use PTRACE_TYPE_RET.
1136 Tweak comment.
1137 (fetch_inferior_registers, store_inferior_registers): Remove
1138 redundant culry braces. Tweak comment. s/regno/regnum.
1139 * Makefile.in (infptrace.o): Update dependencies.
1140
1141 * configure.in: Change test for return type of ptrace to default
1142 to `long' instead of `int'.
1143 * configure: Regenerate.
1144
1145 2004-08-21 Mark Kettenis <kettenis@gnu.org>
1146
1147 * config/alpha/alpha-linux.mh (LOADLIBES): New variable.
1148
1149 * configure.in: Check for ttrace function.
1150 * configure, config.in: Regenerate.
1151
1152 * gdb_ptrace.h: New file.
1153 * infptrace.c: Include "gdb_ptrace.h" instead of <ptrace.h> or
1154 <sys/ptrace.h>.
1155 (PT_READ_I, PT_READ_D, PT_READ_U, PT_WRITE_I, PT_WRITE_D)
1156 (PT_WRITE_U, PT_CONTINUE, PT_STEP, PT_KILL): Remove defines.
1157 (attach): Don't define PT_ATTACH.
1158 (detach): Don't define PT_DETACH.
1159 * Makefile.in (gdb_ptrace_h): New variable.
1160 (infptrace.o): Update dependencies.
1161
1162 2004-08-16 Mark Kettenis <kettenis@gnu.org>
1163
1164 * inferior.h (PTRACE_ARG3_TYPE): Define as PTRACE_TYPE_ARG3
1165 instead of `int' if not already defined.
1166 (call_ptrace): Revert change that replaced PTRACE_ARG3_TYPE with
1167 PTRACE_TYPE_ARG3.
1168 * infptrace.c (call_ptrace): Revert change that replaced
1169 PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1170
1171 2004-08-15 Mark Kettenis <kettenis@gnu.org>
1172
1173 * config/i386/nm-linux64.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
1174 Remove defines.
1175
1176 * linux-nat.c (kill_inferior): Add missing third and fourth
1177 arguments to ptrace call. Don't use PTRACE_ARG3_TYPE.
1178
1179 * infptrace.c (child_xfer_memory): Replace PTRACE_XFER_TYPE with
1180 PTRACE_TYPE_RET.
1181
1182 * proc-why.c (proc_prettyfprint_why): Fix format string.
1183
1184 * solib-osf.c (osf_current_sos): Remove unsused label.
1185
1186 * configure.in: Add <ncurses/ncurses.h> to the list of possible
1187 curses headers.
1188 * configure, config.in: Regenerate.
1189 * gdb_curses.h [HAVE_NCURSES_NCURSES_H]: Include
1190 <ncurses/ncurses.h>.
1191
1192 * config/nm-bsd.h (PTRACE_ARG3_TYPE): Remove define.
1193 * config/nm-nbsd.h: Update copyright year.
1194 (PTRACE_ARG3_TYPE): Remove define.
1195
1196 * sparc-nat.c (fetch_inferior_registers)
1197 (store_inferior_registers, sparc_xfer_wcookie):
1198 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1199
1200 * alphabsd-nat.c (fetch_inferior_registers):
1201 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1202 PTRACE_TYPE_ARG3.
1203 * amd64bsd-nat.c (fetch_inferior_registers)
1204 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1205 PTRACE_TYPE_ARG3.
1206 * armnbsd-nat.c: Update copyright year.
1207 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs)
1208 (store_register, store_regs, store_fp_register, store_fp_regs):
1209 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1210 * hppabsd-nat.c (fetch_inferior_registers)
1211 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1212 PTRACE_TYPE_ARG3.
1213 * i386bsd-nat.c (fetch_inferior_registers)
1214 (store_inferior_registers, i386bsd_dr_set, i386bsd_dr_get_status):
1215 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1216 * m68kbsd-nat.c (fetch_inferior_registers)
1217 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1218 PTRACE_TYPE_ARG3.
1219 * m88kbsd-nat.c (fetch_inferior_registers)
1220 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1221 PTRACE_TYPE_ARG3.
1222 * mipsnbsd-nat.c: Update copyright year.
1223 (fetch_inferior_registers, store_inferior_registers):
1224 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1225 * ns32knbsd-nat.c: Update copyright year.
1226 (fetch_inferior_registers, store_inferior_registers):
1227 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1228 * ppcnbsd-nat.c (fetch_inferior_registers):
1229 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1230 PTRACE_TYPE_ARG3.
1231 * ppcobsd-nat.c (fetch_inferior_registers):
1232 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1233 PTRACE_TYPE_ARG3.
1234 * shnbsd-nat.c: Update copyright year.
1235 (fetch_inferior_registers, store_inferior_registers):
1236 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1237 * vaxbsd-nat.c (fetch_inferior_registers)
1238 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1239 PTRACE_TYPE_ARG3.
1240
1241 * inferior.h (call_ptrace): Replace PTRACE_ARG3_TYPE with
1242 PTRACE_TYPE_ARG3.
1243 * infptrace.c (call_ptrace, child_resume, attach, detach)
1244 (U_REGS_OFFSET, fetch_register, store_register, child_xfer_memory)
1245 (udot_info): Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1246 * inftarg.c (ptrace_me): Replace PTRACE_ARG3_TYPE with
1247 PTRACE_TYPE_ARG3.
1248
1249 2004-08-14 Mark Kettenis <kettenis@gnu.org>
1250
1251 * defs.h: Remove out-of-date comment.
1252 [!FCLOSE_PROVIDED] (fclose): Remove prototype.
1253 [!GETENV_PROVIDED] (getenv): Remove prototype.
1254
1255 * standalone.c: Remove file.
1256 * Makefile.in (standalone.o): Remove dependency.
1257
1258 * i386-linux-nat.c (dummy_sse_values): Remove function and
1259 prototype.
1260 (i386_linux_dr_get): Fix typo in comment.
1261 (LINUX_SYSCALL_REGNUM): Define as I386_EAX_REGNUM.
1262
1263 * config/i386/obsd64.mt (TDEPFILES): Add i386obsd-tdep.o.
1264
1265 * defs.h (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
1266 from declaration.
1267 * top.c (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
1268 from definition.
1269
1270 2004-08-13 Mark Kettenis <kettenis@gnu.org>
1271
1272 * configure.in (PTRACE_TYPE_ARG3, PTRACE_TYPE_ARG5): Don't use
1273 parenthesis in definition.
1274 * configure: Regenerated.
1275
1276 2004-08-12 Michael Chastain <mec.gnu@mindspring.com>
1277
1278 * PROBLEMS: Mention build/1411.
1279
1280 2004-08-09 Robert Millan <robertmh@gnu.org>
1281
1282 Committed by Nathanael Nerode.
1283 * configure.host: Match kfreebsd*-gnu and knetbsd*-gnu.
1284 * configure.tgt: Match kfreebsd*-gnu and knetbsd*-gnu.
1285
1286 2004-08-12 Andrew Cagney <cagney@gnu.org>
1287
1288 * NEWS: Mention fixes in GDB 6.2.1.
1289 * PROBLEMS: Remove mention of mips-irix.
1290
1291 2004-08-11 Joel Brobecker <brobecker@gnat.com>
1292
1293 * config/powerpc/xm-aix.h: Delete.
1294 * config/powerpc/aix.mh (MH_FILE): Remove.
1295 * config/powerpc/aix432.mh (MH_FILE): Remove.
1296
1297 2004-08-11 Joel Brobecker <brobecker@gnat.com>
1298
1299 * config/powerpc/aix.mh: Remove obsolete comment.
1300 * config/powerpc/aix432.mh: Likewise.
1301
1302 2004-08-11 Joel Brobecker <brobecker@gnat.com>
1303
1304 * config/powerpc/xm-aix.h (UINT_MAX): Remove undef.
1305
1306 2004-08-11 Joel Brobecker <brobecker@gnat.com>
1307
1308 * config/rs6000/xm-aix4.h: Remove "config/xm-aix4.h" include,
1309 this file is now empty.
1310 * config/xm-aix4.h: Remove, this file is no longer included
1311 anywhere.
1312
1313 2004-08-11 Joel Brobecker <brobecker@gnat.com>
1314
1315 * config/powerpc/xm-aix.h: Remove "config/xm-aix4.h" include,
1316 that file is now empty.
1317 (termdef): Remove prototype, function no longer used.
1318
1319 2004-08-11 Joel Brobecker <brobecker@gnat.com>
1320
1321 * doc/gdbint.texinfo (Host Definition): Remove documentation
1322 for USE_O_NOCTTY, no longer used.
1323 * config/xm-aix4.h (USE_O_NOCTTY): Remove, no longer used.
1324 * config/rs6000/xm-rs6000.h (USE_O_NOCTTY): Likewise.
1325
1326 2004-08-11 Joel Brobecker <brobecker@gnat.com>
1327
1328 * config/xm-aix4.h (FIVE_ARG_PTRACE): Remove, no longer used.
1329 * config/pa/nm-hppah.h (FIVE_ARG_PTRACE): Likewise.
1330 * config/rs6000/xm-rs6000.h (FIVE_ARG_PTRACE): Likewise.
1331
1332 2004-08-11 Mark Kettenis <kettenis@gnu.org>
1333
1334 * infptrace.c (call_ptrace): Select code based on PTRACE_TYPE_ARG5
1335 instead of FIVE_ARG_PTRACE.
1336
1337 * inflow.c (O_NOCTTY): Define to zero if not already defined.
1338 (new_tty): Use O_NOCTTY unconditionally.
1339
1340 2004-08-10 Mark Kettenis <kettenis@gnu.org>
1341
1342 * procfs.c (procfs_detach): Cleanup. Print process ID, not LWP
1343 ID. Use comma in output. Use gdb_flush on gdb_stdout instead of
1344 fflush on stdout.
1345
1346 2004-08-10 Joel Brobecker <brobecker@gnat.com>
1347
1348 * xcoff_symfile_finish: Replace last call to xmfree by call
1349 to xfree.
1350
1351 2004-08-10 Andrew Cagney <cagney@gnu.org>
1352
1353 * main.c (captured_main): Delete call to init_malloc.
1354 * defs.h (init_malloc): Delete declaration.
1355 * utils.c (mmalloc, mrealloc, mcalloc, mfree)
1356 (init_malloc): Delete functions.
1357
1358 * defs.h (xmfree): Delete.
1359 * utils.c (xmfree): Delete function.
1360 (xfree): Inline calls to xmfree and mfree.
1361 * symmisc.c (free_symtab_block, free_symtab): Use xfree.
1362 * symfile.c (reread_symbols, init_psymbol_list): Ditto.
1363 * source.c (forget_cached_source_info, find_and_open_source): Ditto.
1364 * somread.c (som_symfile_finish): Ditto.
1365 * objfiles.c (allocate_objfile, free_objfile):
1366 * nlmread.c (nlm_symfile_finish): Ditto.
1367 * hpread.c (hpread_symfile_finish): Ditto.
1368 * elfread.c (free_elfinfo, elf_symfile_finish): Ditto.
1369 * dbxread.c (dbx_symfile_finish, free_bincl_list): Ditto.
1370 * coffread.c (coff_symfile_finish): Ditto.
1371
1372 * defs.h (xmcalloc): Delete declaration.
1373 * utils.c (xmcalloc): Delete.
1374 (xcalloc): Inline calls to xmcalloc and mcalloc.
1375 * ada-lang.c (_initialize_ada_language): Use htab_create_alloc,
1376 xcalloc and xfree.
1377 * symtab.c (create_demangled_names_hash): Ditto.
1378
1379 * defs.h (xmrealloc): Delete.
1380 * utils.c (xmrealloc): Delete.
1381 (xrealloc): Inline calls to xmrealloc, mmalloc and mrealloc.
1382 * symmisc.c (extend_psymbol_list): Use xrealloc.
1383 * source.c (find_source_lines): Ditto.
1384 * hpread.c (hpread_lookup_type): Ditto.
1385 * dbxread.c (add_bincl_to_list): Ditto.
1386
1387 * utils.c (xmmalloc): Delete.
1388 (xmalloc): Inline xmmalloc and mmalloc calls.
1389 (msavestring): Use xmalloc.
1390 * defs.h (xmmalloc): Delete declaration.
1391 * xcoffread.c (xcoff_symfile_init): Use xmalloc instead of
1392 xmmalloc.
1393 * symmisc.c (extend_psymbol_list): Ditto.
1394 * symfile.c (init_psymbol_list): Ditto.
1395 * source.c (find_source_lines): Ditto.
1396 * hpread.c (hpread_symfile_init, hpread_lookup_type): Ditto.
1397 * elfread.c (elf_symtab_read): Ditto.
1398 * dbxread.c (dbx_symfile_init, init_bincl_list): Ditto.
1399 * coffread.c (coff_symfile_init): Ditto.
1400
1401 2004-08-10 David Carlton <carlton@bactrian.org>
1402
1403 * MAINTAINERS: Remove David Carlton from c++ testsuite
1404 maintainers.
1405
1406 2004-08-10 Jerome Guitton <guitton@gnat.com>
1407
1408 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure to
1409 print a line feed before the prompt.
1410
1411 2004-08-10 Mark Kettenis <kettenis@gnu.org>
1412
1413 * procfs.c (procfs_pid_to_str): Use "%ld" to print LWP.
1414
1415 2004-08-09 Joel Brobecker <brobecker@gnat.com>
1416
1417 General cleanup of the AIX xm include file:
1418 * config/xm-aix4.h (fd_set): Remove undefine.
1419 Remove include of <sys/select.h>.
1420 (HAVE_TERMIO): Remove define.
1421 (USG): Likewise.
1422 (NULL): Remove redefine.
1423 (alloca): Remove #pragma.
1424 (vfork): Remove define.
1425 (termdef): Remove.
1426 (SIGWINCH_HANDLER): Remove.
1427 (SIGWINCH_HANDLER_BODY): Remove.
1428
1429 2004-08-09 Mark Kettenis <kettenis@gnu.org>
1430
1431 * configure.tgt (x86_64-*-openbsd*): Set gdb_osabi to
1432 GDB_OSABI_OPENBSD_ELF.
1433
1434 2004-08-07 Robert Millan <robertmh@gnu.org>
1435
1436 * bsd-kvm.c: Check for nlist.h before including it.
1437
1438 2004-08-09 Mark Kettenis <kettenis@gnu.org>
1439
1440 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove `struct
1441 sigcontext' offset consistency checks for ancient BSD.
1442
1443 * gdb_curses.h [HAVE_CURSESX_H]: Include <cursesX.h>
1444
1445 * configure.in: Check for <sys/types.h>. Check return and
1446 argument types of ptrace.
1447 * configure, config.in: Regenerate.
1448
1449 2004-08-09 Jim Blandy <jimb@redhat.com>
1450
1451 * rs6000-tdep.c (set_sim_regno, init_sim_regno_table,
1452 rs6000_register_sim_regno): Doc fixes.
1453
1454 2004-08-08 Joel Brobecker <brobecker@gnat.com>
1455
1456 * mips-tdep.c: Include "floatformat.h".
1457 (n32n64_floatformat_always_valid): New function.
1458 (floatformat_n32n64_long_double_big): New constant.
1459 (mips_gdbarch_init): Set size and format of long double
1460 for N32 and N64 ABIs.
1461 * Makefile.in (mips-tdep.o): Update dependencies.
1462
1463 2004-08-08 Andrew Cagney <cagney@gnu.org>
1464
1465 * gdbarch.sh: Delete "fmt" and "attrib" fields. Always use %s to
1466 print. Improve script's error messages.
1467 * gdbarch.h: Re-generate.
1468
1469 * gdbarch.sh (pformat): New function.
1470 (float_format, double_format, long_double_format): List with bit
1471 members. Use pformat when printing.
1472 * gdbarch.c, gdbarch.h: Re-generate.
1473
1474 2004-08-08 Nathan J. Williams <nathanw@wasabisystems.com>
1475
1476 * ppcnbsd-nat.c: Include <machine/frame.h>, <machine/pcb.h>,
1477 "gdbcore.h", "regcache.h", and "bsd-kvm.h".
1478 (ppcnbsd_supply_pcb): New function.
1479 (_initialize_ppcnbsd_nat): New prototype and function.
1480 * config/powerpc/nbsd.mh (NATDEPFILES): Add bsd-kvm.o.
1481 (LOADLIBES): New variable.
1482 * Makefile.in (ppcnbsd-nat.o): Update dependencies.
1483
1484 2004-08-08 Andrew Cagney <cagney@gnu.org>
1485
1486 * gdbtypes.c (builtin_type_arm_ext, builtin_type_ieee_single)
1487 (builtin_type_ieee_double, builtin_type_ia64_quad)
1488 (builtin_type_ia64_spill, _initialize_gdbtypes): Add tables of
1489 BE/LE floating-point types.
1490 * gdbtypes.h (builtin_type_arm_ext, builtin_type_ieee_single)
1491 (builtin_type_ieee_double, builtin_type_ia64_quad)
1492 (builtin_type_ia64_spill): Declare.
1493 * doublest.c (_initialize_doublest, floatformat_ieee_single)
1494 (floatformat_ieee_double, floatformat_arm_ext)
1495 (floatformat_ia64_spill, floatformat_ia64_quad): Add tables
1496 of LE/BE floatformats.
1497 * doublest.h: (struct floatformat, floatformat_ieee_single)
1498 (floatformat_ieee_double, floatformat_arm_ext)
1499 (floatformat_ia64_spill, floatformat_ia64_quad): Declare.
1500
1501 2004-08-08 Mark Kettenis <kettenis@gnu.org>
1502
1503 * i386gnu-nat.c (gnu_store_registers): Fix typo.
1504
1505 * i386gnu-nat.c (gnu_store_registers): Use regcache_raw_collect
1506 instead of regcache_raw_supply when storing the registers.
1507
1508 * i386gnu-nat.c: Update copyright year.
1509 (gnu_store_registers): Don't use deprecated_registers and
1510 deprecated_registers_valid. Use regcache_valid_p and
1511 regcache_raw_supply instead.
1512
1513 * vax-tdep.c (vax_frame_this_id): Use frame_func_unwind instead of
1514 frame_pc_unwind.
1515
1516 * procfs.c (procfs_pid_to_str): Remove redundant and unused
1517 variables. Incapitalized "process".
1518
1519 * configure.in: Add cursesX to the list of possible curses libs.
1520 Add cursesX.h to the list of possible curses headers.
1521 * configure, config.in: Regenerate.
1522
1523 2004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
1524
1525 * configure.in: Test for struct lwp in <sys/lwp.h>.
1526 * bsd-kvm.c (bsd_kvm_proc_cmd): If HAVE_STRUCT_LWP is defined, use
1527 the offset of l_addr in struct lwp.
1528
1529 2004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
1530
1531 * bsd-kvm.c: Include "gdbcore.h"
1532 (bsd_kvm_open): Use get_exec_file() to set 'execfile'.
1533
1534 2004-08-07 Andrew Cagney <cagney@gnu.org>
1535
1536 * gdbtypes.c (build_flt, build_complex): New functions.
1537 (gdbtypes_post_init): Use.
1538
1539 * doublest.c (floatformat_from_length): Fix tipo, "*" not "&".
1540
1541 * gdbtypes.c (_initialize_gdbtypes): Do not swap builtin_type_int8
1542 through to builtin_type_uint128.
1543
1544 * c-exp.y: Use builtin_type function to obtain builtin types.
1545
1546 * gdbtypes.h (struct builtin_type): Delete builtin_int0 through to
1547 builtin_uint128.
1548 * gdbtypes.c (gdbtypes_post_init): Update.
1549 (build_gdbtypes): Move initialization of builtin_type_int0
1550 through to builtin_type_uint128 from here ...
1551 (_initialize_gdbtypes): ... to here.
1552 * d10v-tdep.c (d10v_register_type): Update.
1553
1554 * doublest.c: Update copyright.
1555 (floatformat_from_length): Call error when floatformat is NULL.
1556 (extract_floating_by_length): Remove NULL fmt check.
1557 (store_floating_by_length): Ditto.
1558
1559 2004-08-07 Andrew Cagney <cagney@gnu.org>
1560
1561 * regcache.c (regcache_raw_read): For the moment, #ifdef assert
1562 that the register is valid.
1563
1564 2004-08-05 Mark Kettenis <kettenis@chello.nl>
1565
1566 * i386-linux-tdep.c (i386_linux_sigtramp_start)
1567 (i386_linux_rt_sigtramp_start): Change argument from CORE_ADDR to
1568 struct frame_info *. Use safe_frame_unwind_memory instead of
1569 deprecated_read_memory_nobpt.
1570 (i386_linux_sigtramp_p, i386_linux_sigcontext_addr): Adjust for
1571 changed signature of i386_linux_sigtramp_start and
1572 i386_linux_rt_sigtramp_start.
1573
1574 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Change argument from
1575 CORE_ADDR to struct frame_info *. Use safe_frame_unwind_memory
1576 instead of deprecated_read_memory_nobpt.
1577 (i386nbsd_sigtramp_p): Adjust for changed signature of
1578 i386nbsd_sigtramp_offset.
1579
1580 * i386obsd-tdep.c (i386obsd_sigtramp_p): Use
1581 safe_frame_unwind_memory instead of target_read_memory.
1582
1583 * infptrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
1584 !NO_SYS_FILE.
1585 [KERNEL_U_ADDR_BSD]: Don't include <a.out.h>.
1586 [KERNEL_U_ADDR_BSD] (kernel_u_addr): Remove variable.
1587 (_initialize_kernel_u_addr): Remove prototype and function.
1588 * infttrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
1589 !NO_SYS_FILE.
1590 * xcoffread.c: Likewise.
1591
1592 2004-08-06 Mark Kettenis <kettenis@gnu.org>
1593
1594 * vax-nat.c: New file.
1595 * vaxbsd-nat.c: Tweak comment.
1596 * Makefile.in (ALLDEPFILES): Add vax-nat.c, vaxbsd-nat.c and
1597 vaxnbsd-tdep.c.
1598 (vax-nat.o): New dependency.
1599 * configure.host (vax-*-bsd*, vax-*-ultrix*): Set gdb_host to vax.
1600 (vax-*-ultrix2*): Remove.
1601 * config/vax/vax.mh: New file.
1602 * config/vax/nm-vax.h (vax_kernel_u_addr): New extern declaration.
1603 (KERNEL_U_ADDR): Define as vax_kernel_u_addr.
1604 (vax_register_u_addr): New prototype.
1605 (REGISTER_U_ADDR): Define using vax_register_u_addr.
1606 * config/vax/vaxult2.mh: Remove file.
1607 * config/vax/vaxult.mh: Remove file.
1608 * config/vax/vaxbsd.mh: Remove file.
1609 * config/vax/vax.mt (TM_FILE): Remove.
1610 * config/vax/tm-vaxbsd.h: Remove file.
1611
1612 2004-08-06 Joel Brobecker <brobecker@gnat.com>
1613
1614 * aix-thread.c (get_signaled_thread): New function.
1615 (iter_trap): Delete, no longer used.
1616 (iter_tid): New function.
1617 (pd_update): Find the thread that received the SIGTRAP signal
1618 by first locating the kernel thread, and then finding its
1619 associated thread.
1620
1621 2004-08-06 Ulrich Weigand <uweigand@de.ibm.com>
1622
1623 * lin-lwp.c (child_wait): Continue inferior after processing
1624 PTRACE_EVENT_CLONE event.
1625
1626 2004-08-05 Nathanael Nerode <neroden@gcc.gnu.org>
1627
1628 * MAINTAINERS: Add self to Write-After-Approval.
1629
1630 2004-08-05 Jeff Johnston <jjohnstn@redhat.com>
1631
1632 * libunwind-frame.c (LIBUNWIND_SO): Change to be of form:
1633 libunwind-xxxx.so" where xxxx is UNW_TARGET.
1634
1635 2004-08-05 Andrew Cagney <cagney@gnu.org>
1636
1637 * config/xm-sysv4.h: Delete file.
1638 * config/mips/xm-irix5.h: Delete file.
1639 * config/mips/irix6.mh (XM_FILE, XM_CLIBS): Delete.
1640 * config/mips/irix5.mh (XM_FILE, XM_CLIBS): Delete.
1641 * config/ia64/xm-aix.h: Delete file.
1642 * config/ia64/aix.mh (XM_FILE): Delete.
1643 * config/pa/xm-hppah.h: Delete file.
1644 * config/pa/hpux11w.mh (XM_FILE): Delete.
1645 * config/pa/hpux11.mh (XM_FILE): Delete.
1646 * config/pa/hpux1020.mh (XM_FILE): Delete.
1647 * config/pa/hppahpux.mh (XM_FILE): Delete.
1648
1649 * config/alpha/xm-alphalinux.h: Delete file.
1650 * config/djgpp/fnchange.lst: Do not fix xm-alphalinux.h.
1651 * config/alpha/alpha-linux.mh (XM_FILE, LOADLIBES): Delete.
1652 * config/alpha/xm-alphaosf.h: Delete file.
1653 * config/djgpp/fnchange.lst: Do not fix xm-alphaosf.h.
1654 * config/alpha/alpha-osf3.mh (XM_FILE): Delete.
1655 * config/alpha/alpha-osf2.mh (XM_FILE): Delete.
1656 * config/alpha/alpha-osf1.mh (XM_FILE): Delete.
1657
1658 * config/i386/xm-i386v.h: Delete file.
1659 * config/i386/i386v.mh (XM_FILE, XM_CLIBS): Delete.
1660 * config/i386/i386sco5.mh (XM_FILE, XM_CLIBS): Delete.
1661 * config/i386/xm-i386sco.h: Delete file.
1662 * config/i386/i386sco4.mh (XM_FILE, XM_CLIBS, MH_CFLAGS): Delete.
1663 * config/i386/i386sco.mh (XM_FILE, XM_CLIBS, CC): Delete.
1664 * config/i386/xm-i386v4.h: Delete file.
1665 * config/djgpp/fnchange.lst: Do not fix xm-i386v4.h.
1666 * config/i386/ncr3000.mh (CC, CFLAGS, XM_FILE): Delete.
1667 * config/i386/i386v42mp.mh (XM_FILE, XM_CLIBS): Delete.
1668 * config/i386/i386v4.mh (XM_FILE, XM_CLIBS): Delete.
1669
1670 * config/vax/xm-vax.h: Delete file.
1671 * Makefile.in (xm-vaxult.h, xm-vaxbsd.h): Delete.
1672 * config/vax/xm-vaxult2.h: Delete file.
1673 * config/djgpp/fnchange.lst: Do not fix xm-vaxult2.h.
1674 * config/vax/vaxult2.mh (XM_FILE): Delete.
1675 * config/vax/xm-vaxult.h: Delete file.
1676 * config/vax/vaxult.mh (XM_FILE): Delete.
1677 * config/vax/xm-vaxbsd.h: Delete file.
1678 * config/vax/vaxbsd.mh (XM_FILE): Delete.
1679
1680 * gdbarch.sh (deprecated_frame_saved_pc): Delete.
1681 * gdbarch.h, gdbarch.c: Re-generate.
1682 * regcache.c (deprecated_read_fp, deprecated_write_sp): Delete.
1683 * inferior.h (deprecated_read_fp, deprecated_write_sp): Delete.
1684 * frame.h: Delete deprecated_read_fp from comments.
1685 * arch-utils.c (deprecated_init_frame_pc_default): Delete.
1686 * arch-utils.h (deprecated_init_frame_pc_default): Delete.
1687
1688 2004-08-04 Mark Kettenis <kettenis@gnu.org>
1689
1690 * i386obsd-tdep.c (i386obsd_sigtramp_p): Adjust for changed signal
1691 trampoline in OpenBSD 3.5-current.
1692
1693 * i387-tdep.c (i387_supply_fsave): Provide summy values for the
1694 SSE registers.
1695
1696 * Makefile.in: Remove embedded page breaks.
1697
1698 2004-08-04 Jim Blandy <jimb@redhat.com>
1699
1700 * regcache.c (regcache_raw_read): Assert that, after calling
1701 target_fetch_registers, the register we're reading is cached.
1702
1703 * ppc-linux-nat.c (fetch_register): Replace 'gdb_assert (0)' with
1704 a call to 'internal_error', with a more helpful error message.
1705 * rs6000-tdep.c (e500_pseudo_register_read,
1706 e500_pseudo_register_write, rs6000_store_return_value): Same.
1707
1708 2004-08-04 Andrew Cagney <cagney@gnu.org>
1709
1710 * Makefile.in: Update dependencies.
1711
1712 2004-08-04 Jim Blandy <jimb@redhat.com>
1713
1714 Change the layout of the PowerPC E500 raw register cache to allow
1715 the lower 32-bit halves of the GPRS to be their own raw registers,
1716 not pseudoregisters.
1717 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_gprs_pseudo_p flag;
1718 add ppc_ev0_upper_regnum flag.
1719 * rs6000-tdep.c: #include "reggroups.h".
1720 (spe_register_p): Recognize the ev upper half registers as SPE
1721 registers.
1722 (init_sim_regno_table): Build gdb->sim mappings for the upper-half
1723 registers.
1724 (e500_move_ev_register): New function.
1725 (e500_pseudo_register_read, e500_pseudo_register_write): The 'ev'
1726 vector registers are the pseudo-registers now, formed by splicing
1727 together the gprs and the upper-half registers.
1728 (e500_register_reggroup_p): New function.
1729 (P): Macro deleted.
1730 (P8, A4): New macro.
1731 (PPC_EV_REGS, PPC_GPRS_PSEUDO_REGS): Macros deleted.
1732 (PPC_SPE_GP_REGS, PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): New
1733 macros.
1734 (registers_e500): Rearrange register set so that the raw register
1735 set contains 32-bit GPRs and upper-half registers, and the SPE
1736 vector registers become pseudo-registers.
1737 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gprs_pseudo_p;
1738 it has been deleted. Initialize ppc_ev0_upper_regnum. Many other
1739 register numbers are now the same for the E500 as they are for
1740 other PowerPC variants. Register e500_register_reggroup_p as the
1741 register group function for the E500.
1742 * Makefile.in (rs6000-tdep.o): Update dependencies.
1743
1744 Adapt PPC E500 native support to the new raw regcache layout.
1745 * ppc-linux-nat.c (struct gdb_evrregset_t): Doc fixes.
1746 (read_spliced_spe_reg, write_spliced_spe_reg): Deleted.
1747 (fetch_spe_register, store_spe_register): Handle fetching/storing
1748 all the SPE registers at once, if regno == -1. These now take
1749 over the job of fetch_spe_registers and store_spe_registers.
1750 (fetch_spe_registers, store_spe_registers): Deleted.
1751 (fetch_ppc_registers, store_ppc_registers): Fetch/store gprs
1752 unconditionally; they're always raw. Fetch/store SPE upper half
1753 registers, if present, instead of ev registers.
1754 (fetch_register, store_register): Remove sanity checks: gprs are
1755 never pseudo-registers now, so we never need to even mention any
1756 registers that are ever pseudoregisters.
1757
1758 Use a fixed register numbering when communicating with the PowerPC
1759 simulator.
1760 * ppc-tdep.h (struct gdbarch_tdep): New member: 'sim_regno'.
1761 * rs6000-tdep.c: #include "sim-regno.h" and "gdb/sim-ppc.h".
1762 (set_sim_regno, init_sim_regno_table, rs6000_register_sim_regno):
1763 New functions.
1764 (rs6000_gdbarch_init): Register rs6000_register_sim_regno. Call
1765 init_sim_regno_table.
1766 * Makefile.in (gdb_sim_ppc_h): New variable.
1767 (rs6000-tdep.o): Update dependencies.
1768
1769 2004-08-02 Andrew Cagney <cagney@gnu.org>
1770
1771 * cris-tdep.c (cris_register_size): Restore function, still used
1772 locally.
1773
1774 * gdbarch.sh (deprecated_target_read_fp)
1775 (deprecated_frame_locals_address, deprecated_frame_args_address)
1776 (deprecated_frame_chain_valid, deprecated_frame_chain)
1777 (deprecated_init_extra_frame_info, deprecated_pop_frame)
1778 (deprecated_frame_init_saved_regs, deprecated_get_saved_register)
1779 (deprecated_do_registers_info, deprecated_init_frame_pc): Delete.
1780 * gdbarch.h, gdbarch.c: Re-generate.
1781 * regcache.c (deprecated_read_fp): Do not call
1782 DEPRECATED_TARGET_READ_FP_P.
1783 * infcmd.c (default_print_registers_info): Do not call
1784 DEPRECATED_DO_REGISTERS_INFO.
1785 * frame-base.c (default_frame_locals_address): Do not call
1786 DEPRECATED_FRAME_LOCALS_ADDRESS.
1787 (default_frame_args_address): Do not call
1788 DEPRECATED_FRAME_ARGS_ADDRESS.
1789
1790 * gdbarch.sh (deprecated_register_raw_size)
1791 (deprecated_register_virtual_size:int): Delete.
1792 * gdbarch.h, gdbarch.c: Re-generate.
1793 * cris-tdep.c (cris_register_size): Delete.
1794 (cris_gdbarch_init): Update.
1795 * alpha-tdep.c (alpha_register_raw_size)
1796 (alpha_register_virtual_size): Delete.
1797 (alpha_gdbarch_init): Update.
1798
1799 * gdbarch.sh (deprecated_register_virtual_type)
1800 (deprecated_save_dummy_frame_tos, deprecated_push_return_address)
1801 (deprecated_dummy_write_sp): Delete.
1802 * gdbarch.h, gdbarch.c: Re-generate.
1803
1804 * gdbarch.sh (deprecated_register_bytes): Delete.
1805 * gdbarch.h, gdbarch.c: Re-generate.
1806 * regcache.c (deprecated_register_bytes): New function.
1807 * regcache.h (deprecated_register_bytes): Declare.
1808 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1809 * v850-tdep.c (v850_gdbarch_init): Update.
1810 * sh64-tdep.c (sh64_gdbarch_init): Update.
1811 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
1812 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1813 * mcore-tdep.c (mcore_gdbarch_init): Update.
1814 * cris-tdep.c (cris_gdbarch_init): Update.
1815 * arm-tdep.c (arm_gdbarch_init): Update.
1816 * remote.c (init_remote_state): Update.
1817 * remote-vx.c (vx_prepare_to_store): Update.
1818 * remote-sds.c (sds_fetch_registers, sds_prepare_to_store): Update.
1819 * irix5-nat.c (fetch_core_registers): Update.
1820 * cris-tdep.c (cris_register_bytes_ok): Update.
1821 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
1822
1823 * mips-tdep.c (mips_gdbarch_init, mips_insn16_frame_cache)
1824 (mips_insn16_frame_this_id, mips_insn16_frame_prev_register)
1825 (mips_insn16_frame_unwind, mips_insn16_frame_sniffer)
1826 (mips_insn16_frame_base_address, mips_insn16_frame_base)
1827 (mips_insn16_frame_base_sniffer, mips_insn32_frame_cache)
1828 (mips_insn32_frame_this_id, mips_insn32_frame_prev_register)
1829 (mips_insn32_frame_unwind, mips_insn32_frame_sniffer)
1830 (mips_insn32_frame_base_address, mips_insn32_frame_base)
1831 (mips_insn32_frame_base_sniffer): Replace mips16 / mips32 prefix
1832 with mips_insn16 and mips_insn32.
1833
1834 Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
1835 * rs6000-tdep.c (rs6000_push_dummy_call)
1836 (rs6000_extract_return_value): Use register_size.
1837 * xstormy16-tdep.c (xstormy16_get_saved_register)
1838 (xstormy16_extract_return_value): Ditto.
1839 * valops.c (value_assign): Ditto.
1840 * v850ice.c (v850ice_fetch_registers, v850ice_store_registers):
1841 * v850-tdep.c (v850_extract_return_value): Ditto.
1842 * tracepoint.c (collect_symbol): Ditto.
1843 * target.c (debug_print_register): Ditto.
1844 * stack.c (frame_info): Ditto.
1845 * rs6000-nat.c (ARCH64, fetch_register, store_register): Ditto.
1846 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
1847 * remote.c (struct packet_reg, remote_wait, remote_async_wait)
1848 (store_register_using_P): Ditto.
1849 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
1850 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Ditto.
1851 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
1852 * remote-e7000.c (fetch_regs_from_dump, sub2_from_pc): Ditto.
1853 * regcache.c (deprecated_read_register_bytes)
1854 (deprecated_write_register_bytes, read_register)
1855 (write_register): Ditto.
1856 * ppc-linux-nat.c (fetch_altivec_register, fetch_register)
1857 (supply_vrregset, store_altivec_register, fill_vrregset): Ditto.
1858 * monitor.c (monitor_supply_register, monitor_fetch_register)
1859 (monitor_store_register): Ditto.
1860 * mn10300-tdep.c (mn10300_pop_frame_regular)
1861 (mn10300_print_register): Ditto.
1862 * mipsv4-nat.c (fill_fpregset): Ditto.
1863 * mips-linux-tdep.c (supply_32bit_reg, fill_fpregset)
1864 (mips64_fill_fpregset): Ditto.
1865 * mi/mi-main.c (register_changed_p, get_register)
1866 (mi_cmd_data_write_register_values): Ditto.
1867 * lynx-nat.c (fetch_inferior_registers, store_inferior_registers):
1868 * irix5-nat.c (fill_gregset, fetch_core_registers):
1869 * infrun.c (write_inferior_status_register): Ditto.
1870 * infptrace.c (fetch_register, store_register): Ditto.
1871 * infcmd.c (default_print_registers_info): Ditto.
1872 * ia64-linux-nat.c (COPY_REG, fill_fpregset): Ditto.
1873 * ia64-aix-nat.c (COPY_REG, fill_gregset): Ditto.
1874 * i386gnu-nat.c (gnu_store_registers, fill): Ditto.
1875 * hpux-thread.c (hpux_thread_fetch_registers)
1876 (hpux_thread_store_registers): Ditto.
1877 * hppah-nat.c (store_inferior_registers, fetch_register):
1878 * findvar.c (value_from_register): Ditto.
1879 * dve3900-rom.c (fetch_bitmapped_register):
1880 * cris-tdep.c (cris_gdbarch_init): Ditto.
1881 * alpha-tdep.h: Ditto.
1882 * aix-thread.c (pd_enable, fill_sprs64, fill_sprs32): Ditto.
1883
1884 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_SIZE and
1885 DEPRECATED_REGISTER_RAW_SIZE from comments.
1886 * regcache.c (init_regcache_descr, regcache_dump): Do not check or
1887 use DEPRECATED_REGISTER_VIRTUAL_SIZE and
1888 DEPRECATED_REGISTER_RAW_SIZE.
1889 * findvar.c (value_of_register): Simplify by assuming that the
1890 registers raw and virtual sizes are identical.
1891 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_TYPE in
1892 comment.
1893 * arch-utils.c (generic_register_size): Simplify by assuming
1894 register_type.
1895
1896 * regcache.c (legacy_read_register_gen, real_register)
1897 (legacy_write_register_gen): Delete, not used.
1898
1899 * regcache.c (struct regcache_descr): Delete legacy_p.
1900 (init_legacy_regcache_descr): Delete function.
1901 (init_regcache_descr): Delete call to init_legacy_regcache_descr.
1902 Do not use deprecated register functions.
1903 (regcache_raw_read, deprecated_write_register_gen):
1904 (deprecated_read_register_gen, regcache_raw_write): Delete code
1905 predicated on legacy_p.
1906 (register_size): Delete check against register raw size.
1907
1908 * cris-tdep.c (cris_register_type): Replace
1909 cris_register_virtual_type.
1910 (cris_gdbarch_init): Update, set register_type.
1911
1912 * gdbarch.sh (deprecated_frameless_function_invocation): Delete.
1913 * gdbarch.h, gdbarch.c: Re-generate.
1914 * arm-tdep.c (arm_frameless_function_invocation): Delete.
1915 (arm_gdbarch_init) Do not set frameless function invocation.
1916 * frame.h (legacy_frameless_look_for_prologue): Delete declaration.
1917 * blockframe.c (legacy_frameless_look_for_prologue): Delete function.
1918 * frv-tdep.c (frv_frameless_function_invocation): Delete.
1919 (frv_gdbarch_init): Do not set frameless function invocation.
1920 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
1921 * sh-tdep.c (sh_gdbarch_init): Ditto.
1922 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
1923 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1924 * avr-tdep.c (avr_gdbarch_init): Ditto.
1925
1926 * blockframe.c (legacy_frame_chain_valid): Delete function.
1927
1928 * dummy-frame.c (struct dummy_frame): Delete call_lo, call_hi, top
1929 and pc. Update comments.
1930 (pc_in_dummy_frame): Delete function.
1931 (deprecated_pc_in_call_dummy): Inline old pc_in_dummy_frame code,
1932 use the "id".
1933 (dummy_frame_push, dummy_frame_sniffer): Instead of call_lo,
1934 call_hi, top and pc, use the id.
1935 (fprint_dummy_frames): Do not print call_lo, call_hi, top and pc.
1936
1937 * dummy-frame.c: Include "gdb_string.h".
1938 (generic_save_call_dummy_addr, generic_push_dummy_frame)
1939 (generic_save_dummy_frame_tos): Delete.
1940 (dummy_frame_push): New function, replaces above.
1941 * dummy-frame.h: Update copyright.
1942 (dummy_frame_push): Declare.
1943 * frame.h (generic_save_dummy_frame_tos, generic_push_dummy_frame)
1944 (generic_save_call_dummy_addr): Delete declarations.
1945 * infcall.c: Include "dummy-frame.h".
1946 (call_function_by_hand): Add locals caller_regcache,
1947 caller_regcache_cleanup and dummy_id. Replace push_dummy_frame
1948 with call to frame_save_as_regcache plus cleanup. Delete calls to
1949 generic_save_call_dummy_addr and generic_save_dummy_frame_tos.
1950 Move clear_proceed_status to just before the resume, add call to
1951 dummy_frame_push (discard cleanup).
1952 * Makefile.in (infcall.o): Add $(dummy_frame_h).
1953 (dummy-frame.o): Add $(gdb_string_h).
1954
1955 2004-08-01 Andrew Cagney <cagney@gnu.org>
1956
1957 * dummy-frame.h (dummy_frame_unwind): Replace dummy_frame_sniffer.
1958 * frame-unwind.c (frame_unwind_init): Use dummy_frame_unwind.
1959 * dummy-frame.c (find_dummy_frame): Delete.
1960 (struct dummy_frame_cache, dummy_frame_sniffer)
1961 (dummy_frame_prev_register, dummy_frame_this_id)
1962 (dummy_frame_unwinder, dummy_frame_unwind): Re-implement dummy
1963 frame unwinder using a dummy_frame_cache.
1964
1965 2004-08-01 Andrew Cagney <cagney@gnu.org>
1966
1967 * frame.h (frame_save_as_regcache): Declare.
1968 * frame.c (frame_save_as_regcache): New function.
1969 (do_frame_read_register): Replace do_frame_unwind_register.
1970 (frame_pop): Use frame_save_as_regcache.
1971 * dummy-frame.c (generic_push_dummy_frame): Use
1972 frame_save_as_regcache.
1973
1974 2004-08-01 Joel Brobecker <brobecker@gnat.com>
1975
1976 * dwarf2read.c (dwarf_decode_lines): Do not consider the current
1977 file as included until we record the first line in the linetable.
1978
1979 2004-08-01 Andrew Cagney <cagney@gnu.org>
1980
1981 * frame.h (deprecated_pop_dummy_frame)
1982 (deprecated_read_register_dummy)
1983 (deprecated_generic_find_dummy_frame): Delete.
1984 * dummy-frame.c (deprecated_generic_find_dummy_frame)
1985 (deprecated_read_register_dummy)
1986 (deprecated_find_dummy_frame_regcache)
1987 (discard_innermost_dummy)
1988 (deprecated_pop_dummy_frame): Delete.
1989 (dummy_frame_this_id): Simplify.
1990 (struct dummy_frame): Delete "fp" and "sp".
1991 (find_dummy_frame): Simplify.
1992 (generic_push_dummy_frame): Do not set "fp" or "sp".
1993 (fprint_dummy_frames): Do not print "fp" and "sp"
1994
1995 2004-08-01 Mark Kettenis <kettenis@gnu.org>
1996
1997 * i386-tdep.c (I386_MAX_INSN_LEN): New define.
1998 (struct i386_insn): New structure.
1999 (i386_match_insn): New function.
2000 (i386_frame_setup_skip_insns): New variable.
2001 (i386_analyze_frame_setup): Change to use i386_match_insn and the
2002 array i386_frame_setup_insns of instructions that should be
2003 skipped inside the frame setup sequence.
2004
2005 2004-08-01 Andrew Cagney <cagney@gnu.org>
2006
2007 * frame.h (deprecated_frame_xmalloc_with_cleanup)
2008 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
2009 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
2010 * stack.c (frame_info): Delete references to
2011 DEPRECATED_FRAME_INIT_SAVED_REGS and
2012 deprecated_get_frame_saved_regs.
2013 * frame.c (struct frame_info): Delete saved_regs and extra_info.
2014 (frame_pc_unwind): Do not use DEPRECATED_FRAME_SAVED_PC.
2015 (frame_register): Do not use DEPRECATED_GET_SAVED_REGISTER.
2016 (frame_unwind_register_signed)
2017 (frame_unwind_register_unsigned)
2018 (frame_unwind_unsigned_register): Use register_size.
2019 (create_new_frame): Do not use DEPRECATED_INIT_EXTRA_FRAME_INFO.
2020 (deprecated_frame_xmalloc_with_cleanup)
2021 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
2022 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
2023
2024 * sh-tdep.c (sh_gdbarch_init): Disable call to sh64_gdbarch_init.
2025 * config/sh/nbsd.mt (TDEPFILES): Remove sh64-tdep.o.
2026 * config/sh/linux.mt (TDEPFILES): Remove sh64-tdep.o.
2027 * config/sh/embed.mt (TDEPFILES): Remove sh64-tdep.o.
2028
2029 * infcall.c (call_function_by_hand): Do not use
2030 DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP,
2031 DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_TARGET_READ_FP,
2032 DEPRECATED_FP_REGNUM, DEPRECATED_STORE_STRUCT_RETURN, and
2033 DEPRECATED_STACK_ALIGN.
2034
2035 2004-07-30 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
2036
2037 Committed by Andrew Cagney.
2038 * arm-tdep.c: Remove references to add_setshow_cmd_full for apcs32 .
2039
2040 2004-08-01 Andrew Cagney <cagney@gnu.org>
2041
2042 * mips-tdep.c (mips16_frame_cache)
2043 (mips16_frame_this_id, mips16_frame_prev_register)
2044 (mips16_frame_unwind, mips16_frame_sniffer)
2045 (mips16_frame_base_address, mips16_frame_base)
2046 (mips16_frame_base_sniffer, mips32_frame_cache)
2047 (mips32_frame_this_id, mips32_frame_prev_register)
2048 (mips32_frame_unwind, mips32_frame_sniffer)
2049 (mips32_frame_base_address, mips32_frame_base)
2050 (mips32_frame_base_sniffer): Clone the mdebug unwinder into
2051 separate heuristic mips16 and mips32 unwinders.
2052 (mips_stub_frame_cache, mips_stub_frame_this_id)
2053 (mips_stub_frame_prev_register)
2054 (mips_stub_frame_unwind, mips_stub_frame_sniffer)
2055 (mips_stub_frame_base_address, mips_stub_frame_base)
2056 (mips_stub_frame_base_sniffer): Add a simple stub unwinder.
2057 (mips_mdebug_frame_base_sniffer, mips_mdebug_frame_sniffer): Only
2058 match true mdebug frames.
2059 (non_heuristic_proc_desc): Add forward declaration.
2060
2061 2004-08-01 Andrew Cagney <cagney@gnu.org>
2062
2063 * config/mips/tm-irix6.h: Delete file.
2064 * config/mips/tm-irix5.h: Delete file.
2065 * config/mips/irix5.mt (TM_FILE): Set to tm-mips.h
2066 * config/mips/irix6.mt (TM_FILE): Set to tm-mips.h
2067
2068 * config/ia64/tm-linux.h (IA64_GNULINUX_TARGET): Delete.
2069 * config/alpha/nm-osf2.h (PROCFS_SIGPEND_OFFSET): Delete.
2070 * config/nm-gnu.h (NO_CORE_OPS): Delete.
2071 * config/pa/nm-hppah.h (MAY_SWITCH_FROM_INFERIOR_PID): Delete.
2072 * config/i386/nm-i386v4.h (LOSING_POLL): Delete.
2073 * config/alpha/nm-osf2.h (LOSING_POLL): Delete.
2074 * config/tm-nto.h (RAW_SIGNAL_LO, RAW_SIGNAL_HI): Delete.
2075 * config/m68k/tm-vx68.h (VX_SIZE_FPREGS): Delete.
2076 * config/nm-linux.h (USE_THREAD_STEP_NEEDED): Delete.
2077 * config/pa/nm-hppah.h (USE_THREAD_STEP_NEEDED): Delete.
2078 * config/tm-nto.h (TARGET_SIGNAL_RAW_TABLE) Delete.
2079 (TARGET_SIGNAL_RAW_VALUES): Delete.
2080 * config/pa/nm-hppah.h (TARGET_RANGE_PROFITABLE_FOR_HW_WATCHPOINT):
2081 Delete.
2082 * config/frv/tm-frv.h (TARGET_HW_BREAK_LIMIT)
2083 (TARGET_HW_WATCH_LIMIT): Delete.
2084 * Makefile.in (minimon_h, HFILES_NO_SRCDIR): Remove minimon.h.
2085 * minimon.h: Delete file.
2086
2087 * trad-frame.c (trad_frame_get_this_base)
2088 (trad_frame_set_this_base, trad_frame_set_reg_realreg): New
2089 functions.
2090 * trad-frame.h (trad_frame_set_this_base)
2091 (trad_frame_get_this_base, trad_frame_set_reg_realreg): Declare.
2092
2093 2004-07-31 Andrew Cagney <cagney@gnu.org>
2094
2095 * trad-frame.c (trad_frame_get_prev_register): Rename
2096 trad_frame_get_prev_register.
2097 * vax-tdep.c (vax_frame_prev_register): Update.
2098 * trad-frame.h: Update.
2099 * trad-frame.c (trad_frame_get_register): Update.
2100 * sparcobsd-tdep.c (sparc32obsd_frame_prev_register): Update.
2101 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_prev_register):
2102 Update.
2103 * sparc64obsd-tdep.c (sparc64obsd_frame_prev_register): Update.
2104 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_prev_register):
2105 Update.
2106 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_prev_register):
2107 Update.
2108 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_prev_register):
2109 Update.
2110 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_prev_register):
2111 Update.
2112 * sparc-linux-tdep.c (sparc32_linux_sigtramp_frame_prev_register):
2113 Update.
2114 * s390-tdep.c (s390_frame_prev_register)
2115 (s390_stub_frame_prev_register)
2116 (s390_sigtramp_frame_prev_register): Update.
2117 * rs6000-tdep.c (rs6000_frame_prev_register): Update.
2118 * ppc-linux-tdep.c (ppc_linux_sigtramp_prev_register): Update.
2119 * mips-tdep.c (mips_mdebug_frame_prev_register): Update.
2120 * m88k-tdep.c (m88k_frame_prev_register)
2121 * m68hc11-tdep.c (m68hc11_frame_prev_register)
2122 * m32r-tdep.c (m32r_frame_prev_register): Update.
2123 * hppa-tdep.c (hppa_frame_prev_register_helper)
2124 * frv-tdep.c (frv_frame_prev_register): Update.
2125 * d10v-tdep.c (d10v_frame_prev_register): Update.
2126 * cris-tdep.c (cris_frame_prev_register): Update.
2127 * avr-tdep.c (avr_frame_prev_register): Update.
2128 * arm-tdep.c (arm_prologue_prev_register)
2129 (arm_sigtramp_prev_register): Update.
2130
2131 2004-07-31 Andrew Cagney <cagney@gnu.org>
2132
2133 * frame.h (legacy_saved_regs_unwind)
2134 (legacy_frame_chain_valid, legacy_frame_p)
2135 (enum frame_type): Delete UNKNOWN_FRAME.
2136 * dummy-frame.c (dummy_frame_this_id): Simplify.
2137 * frame-unwind.c (frame_unwind_find_by_frame): Simplify.
2138 * frame.c (struct frame_info): Delete the field "type".
2139 (legacy_saved_regs_prev_register, legacy_get_prev_frame)
2140 (legacy_saved_regs_this_id, legacy_saved_regs_unwinder)
2141 (legacy_saved_regs_unwind, legacy_frame_p)
2142 (frame_type_from_pc): Delete.
2143 (get_frame_id, frame_pop, frame_register_unwind, get_prev_frame_1)
2144 (fprint_frame, create_new_frame, fprint_frame_type): Simplify.
2145
2146 2004-07-31 Mark Kettenis <kettenis@gnu.org>
2147
2148 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Fix
2149 indentation.
2150
2151 * mips-nat.c: Remove file.
2152 * Makefile.in (ALLDEPFILES): Remove mips-nat.c
2153 (mips-nat.o): Remove dependency.
2154
2155 * infptrace.c: Update copyright year.
2156 (fetch_register): Pass NULL in regcache_raw_supply call instead of
2157 explicitly setting the buffer to all zeroes.
2158
2159 * sparc64obsd-tdep.c (sparc64obsd_sigreturn_offset): New variable.
2160 (sparc64obsd_pc_in_sigtramp): Reorganize to avoid goto.
2161
2162 2004-07-30 Andrew Cagney <cagney@gnu.org>
2163
2164 * GDB 6.2 released from gdb_6_2-branch.
2165
2166 2004-07-30 Baurjan Ismagulov <ibr@ata.cs.hun.edu.tr>
2167
2168 * defs.h (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH): New macros.
2169
2170 * exec.c (exec_file_attach):
2171 * nto-tdep.c (nto_find_and_open_solib):
2172 * pa64solib.c (pa64_solib_sizeof_symbol_table):
2173 * solib.c (solib_open):
2174 * somsolib.c (som_solib_sizeof_symbol_table):
2175 * source.c (is_regular_file, openp, open_source_file):
2176 * symfile.c (symfile_bfd_open):
2177 * wince.c (upload_to_device): Differentiate between the search for
2178 binary and source files.
2179
2180 2004-07-30 Andrew Cagney <cagney@gnu.org>
2181
2182 * complaints.c (_initialize_complaints): Pass NULL to
2183 add_setshow_zinteger_cmd for help_doc.
2184 * cli/cli-decode.c (add_setshow_cmd_full): Handle a NULL help_doc.
2185
2186 2004-07-30 Andrew Cagney <cagney@gnu.org>
2187
2188 Fix PR i18n/761.
2189 * Makefile.in (.SUFFIXES): Add po .gmo, and .pox.
2190 (.PHONY): Add all-po install-po, uninstall-po, clean-po,
2191 $(PACKAGE).pot and update-po.
2192 (all-po, .po.gmo, .po.pox, install-po, $(PACKAGE).pot)
2193 (po/$(PACKAGE).pot, clean-po, uninstall-po, install-po)
2194 (update-po): New rules.
2195 (localedir): Define using autoconf.
2196 (diststuff): Add $(PACKAGE).pot and $(CATALOGS)
2197 (GDB_CFLAGS): Define LOCALEDIR using $(localedir).
2198 (XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): Define.
2199 * configure.in: Generate CATALOGS and LINGUAS from contents of
2200 src/gdb/po/ directory. Set @localedir@ in Makefile.in.
2201 * configure: Re-generate.
2202 * po/gdbtext: New file
2203
2204 2004-07-30 Jerome Guitton <guitton@gnat.com>
2205
2206 * MAINTAINERS: Reorder Write After Approval list in alphabetical
2207 order.
2208
2209 2004-07-30 David Lecomber <dsl@sources.redhat.com>
2210
2211 * dwarf2read.c (read_file_scope): Set producer if attribute
2212 present.
2213 (struct dwarf2_cu): Added new member producer.
2214
2215 2004-07-30 Jerome Guitton <guitton@gnat.com>
2216
2217 * inflow.c (kill_command): release file handles in BFD.
2218 * exec.c (exec_file_attach): Ditto.
2219 * symfile.c (symbol_file_add_with_addrs_or_offsets): Ditto.
2220
2221 2004-07-29 Andrew Cagney <cagney@gnu.org>
2222
2223 * PROBLEMS (mips-irix): Note that it is broken.
2224
2225 2004-07-29 Andrew Cagney <cagney@gnu.org>
2226
2227 * config/mips/xm-irix5.h (REGISTER_U_ADDR): Move from here ...
2228 * config/mips/nm-irix5.h (REGISTER_U_ADDR): ... to here.
2229
2230 * config/xm-nbsd.h: Delete file.
2231 * config/arm/xm-nbsd.h: Delete file.
2232 * config/i386/xm-nbsd.h: Delete file.
2233 * config/ns32k/xm-nbsd.h: Delete file.
2234 * config/ns32k/nbsdaout.mh (XM_FILE): Delete.
2235 * config/i386/nbsdelf.mh (XM_FILE): Delete.
2236 * config/i386/nbsdaout.mh (XM_FILE): Delete.
2237 * config/arm/nbsdelf.mh (XM_FILE): Delete.
2238 * config/arm/nbsdaout.mh (XM_FILE): Delete.
2239
2240 * config/i386/xm-i386v.h (KERNEL_U_ADDR): Move from here ...
2241 * config/i386/nm-i386v42mp.h (KERNEL_U_ADDR): ... to here, ...
2242 * config/i386/nm-i386v4.h (KERNEL_U_ADDR): ... here, ...
2243 * config/i386/nm-i386v.h (KERNEL_U_ADDR): ... and here.
2244 * config/vax/xm-vax.h (KERNEL_U_ADDR): Move from here ...
2245 * config/vax/nm-vax.h (KERNEL_U_ADDR): ... to here.
2246
2247 * config/powerpc/xm-linux.h: Delete empty file.
2248 * config/powerpc/ppc64-linux.mh (XM_FILE): Delete.
2249 * config/powerpc/linux.mh (XM_FILE): Delete.
2250 * config/m68k/xm-linux.h: Delete empty file.
2251 * config/m68k/linux.mh (XM_FILE): Delete.
2252 * config/ia64/xm-linux.h: Delete empty file.
2253 * config/ia64/linux.mh (XM_FILE): Delete.
2254 * config/arm/xm-linux.h: Delete empty file.
2255 * config/arm/linux.mh (XM_FILE): Delete.
2256
2257 * config/powerpc/xm-linux.h (KERNEL_U_ADDR): Move from here ...
2258 * config/powerpc/nm-linux.h (KERNEL_U_ADDR): ... to here.
2259 * config/m68k/xm-linux.h (KERNEL_U_ADDR): Move from here ...
2260 * config/m68k/nm-linux.h (KERNEL_U_ADDR): ... to here.
2261 * config/ia64/xm-linux.h (KERNEL_U_ADDR): Move from here ...
2262 * config/ia64/nm-linux.h (KERNEL_U_ADDR): ... to here.
2263 * config/arm/xm-linux.h (KERNEL_U_ADDR): Move from here ...
2264 * config/arm/nm-linux.h (KERNEL_U_ADDR): ... to here.
2265
2266 * config/m68k/xm-m68k.h: Delete file.
2267 * config/m68k/xm-linux.h: Do not include "m68k/xm-m68k.h". Update
2268 copyright.
2269 (HOST_LONG_DOUBLE_FORMAT): Delete macro.
2270 * config/pa/xm-linux.h: Delete empty file.
2271 * config/pa/linux.mh (XM_FILE): Delete.
2272 * config/i386/xm-i386.h: Delete empty file.
2273 * config/i386/xm-nbsd.h, config/i386/xm-go32.h: Do not include
2274 "i386/xm-i386.h".
2275 * config/i386/obsdaout.mh (XM_FILE): Delete.
2276 * config/i386/obsd64.mh (XM_FILE): Delete.
2277 * config/i386/fbsd64.mh (XM_FILE): Delete.
2278 * config/i386/nto.mh (XM_FILE): Delete.
2279 * config/i386/obsd.mh (XM_FILE): Delete.
2280 * config/i386/linux64.mh (XM_FILE): Delete.
2281 * config/i386/linux.mh (XM_FILE): Delete.
2282 * config/i386/i386sol2.mh (XM_FILE): Delete.
2283 * config/i386/i386gnu.mh (XM_FILE): Delete.
2284 * config/i386/fbsd.mh (XM_FILE): Delete.
2285 * config/i386/nbsd64.mh (XM_FILE): Delete.
2286
2287 2004-07-29 Andrew Cagney <cagney@gnu.org>
2288
2289 * config/pa/xm-linux.h: Do not include "floatformat.h".
2290 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
2291 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
2292 * config/i386/xm-i386.h: Do not include "floatformat.h".
2293 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
2294 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
2295 * doublest.c (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
2296 (HOST_LONG_DOUBLE_FORMAT): Delete macros. Use
2297 GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT and
2298 GDB_HOST_LONG_DOUBLE_FORMAT instead.
2299 * configure.in (GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT)
2300 (GDB_HOST_LONG_DOUBLE_FORMAT): Define.
2301 * configure, config.in: Regenerate.
2302 * configure.host (gdb_host_float_format, gdb_host_double_format)
2303 (gdb_host_long_double_format): Set according to the host.
2304
2305 2004-07-29 Andrew Cagney <cagney@gnu.org>
2306
2307 * Makefile.in (CONFIG_CLEAN): Delete duplicate definition.
2308
2309 2004-07-28 Andrew Cagney <cagney@gnu.org>
2310
2311 * PROBLEMS: Mention threads/1650.
2312 * NEWS: Mention the NPTL fix.
2313
2314 2004-07-28 Andrew Cagney <cagney@gnu.org>
2315
2316 * cli/cli-decode.c (add_setshow_cmd): Delete function.
2317 (add_setshow_cmd_full): Make static.
2318 * command.h (add_setshow_cmd, add_setshow_cmd_full): Delete.
2319 (add_setshow_filename_cmd, add_setshow_string_cmd): Declare.
2320 * cli/cli-decode.c (add_setshow_filename_cmd)
2321 (add_setshow_string_cmd): New functions.
2322 * nto-tdep.c (_initialize_nto_tdep): Update. Fix parameters.
2323 * mips-tdep.c (_initialize_mips_tdep): Update.
2324 * m32r-rom.c (_initialize_m32r_rom): Update. Update copyright.
2325 * cli/cli-logging.c (_initialize_cli_logging): Update.
2326 * complaints.c (_initialize_complaints): Update.
2327 * remote.c (_initialize_remote): Update.
2328
2329 2004-07-28 Andrew Cagney <cagney@gnu.org>
2330
2331 * cli/cli-decode.c (add_setshow_zinteger_cmd)
2332 (add_setshow_cmd, add_setshow_auto_boolean_cmd)
2333 (add_setshow_boolean_cmd, add_setshow_cmd_full): Add help_doc and
2334 print parameters. Make string parameters constant.
2335 * command.h: Update. Update copyright.
2336 * remote.c (add_packet_config_cmd, _initialize_remote): Ditto.
2337 * observer.c (_initialize_observer): Ditto.
2338 * frame.c (_initialize_frame): Ditto.
2339 * complaints.c (_initialize_complaints): Ditto.
2340 * maint.c (_initialize_maint_cmds): Ditto.
2341 * target.c (initialize_targets): Ditto.
2342 * cli/cli-logging.c (_initialize_cli_logging): Ditto.
2343 * infcall.c (_initialize_infcall): Ditto.
2344 * arm-tdep.c (_initialize_arm_tdep): Ditto.
2345 * m32r-rom.c (_initialize_m32r_rom): Ditto.
2346 * remote-rdi.c (_initialize_remote_rdi): Ditto.
2347 * d10v-tdep.c (_initialize_d10v_tdep): Ditto.
2348 * mips-tdep.c (_initialize_mips_tdep): Ditto.
2349
2350 2004-07-28 Andrew Cagney <cagney@gnu.org>
2351
2352 * gdbtypes.c (lookup_primitive_typename): Delete function.
2353 * gdbtypes.h (lookup_primitive_typename): Delete declaration.
2354 * ada-lex.l: Use language_lookup_primitive_type_by_name.
2355 * gdbtypes.c (lookup_typename): Ditto.
2356 * f-exp.y (yylex): Ditto.
2357 * c-exp.y (yylex): Ditto, eliminate assignment in "if".
2358
2359 * scm-lang.c (c_builtin_types): Delete extern declaration.
2360 (scm_language_defn): Replace
2361 string_char_type and primitive_type_vector with
2362 la_language_arch_info.
2363 * jv-lang.c (java_language_defn): Replace
2364 string_char_type and primitive_type_vector with
2365 la_language_arch_info.
2366 * config/i386/i386sco4.mh (NATDEPFILES): Remove reference to
2367 c_builtin_types in comment.
2368 * c-lang.h (struct language_arch_info): Declare opaque.
2369 (c_language_arch_info): Declare.
2370 (c_builtin_types): Delete declaration.
2371 * c-lang.c (c_language_arch_info): Set string_char_type to
2372 builtin_char, not builtin_true_char. Make global.
2373 (c_builtin_types): Delete array.
2374 (asm_language_defn, minimal_language_defn): Replace
2375 string_char_type and primitive_type_vector with
2376 la_language_arch_info.
2377
2378 2004-07-28 Andrew Cagney <cagney@gnu.org>
2379
2380 * gdbtypes.h (struct builtin_type): Rename true_char to
2381 builtin_true_char.
2382 * gdbtypes.c (gdbtypes_post_init): Update.
2383 * c-lang.c (arch_info): New function.
2384 (enum c_primitive_types): New enum.
2385 (c_language_defn): Instead of string_char_type and
2386 primitive_type_vector set la_language_arch_info.
2387
2388 2004-07-28 Andrew Cagney <cagney@gnu.org>
2389
2390 * language.h (struct language_arch_info): Fix typo
2391 s/primative/primitive/.
2392 * gdbtypes.c (lookup_primitive_typename): Ditto.
2393 * language.c (language_lookup_primitive_type_by_name)
2394 (unknown_language_arch_info): Ditto.
2395
2396 2004-07-27 Andrew Cagney <cagney@gnu.org>
2397
2398 * defs.h (enum language): Add nr_languages.
2399 * language.h (struct language_arch_info): Define.
2400 (struct language_defn): Add la_language_arch_info.
2401 (language_lookup_primative_type_by_name): Declare.
2402 (language_string_char_type): Declare.
2403 * language.c (_initialize_language, language_gdbarch_post_init)
2404 (struct language_gdbarch, language_gdbarch_data): Implement
2405 per-architecture language information.
2406 (unknown_language_arch_info, language_string_char_type)
2407 (language_lookup_primative_type_by_name): New functions.
2408 (unknown_language_defn, auto_language_defn)
2409 (local_language_defn): Set la_language_arch_info to
2410 unknown_language_arch_info.
2411 (unknown_builtin_types): Delete.
2412 * gdbtypes.c (lookup_primitive_typename): Use
2413 language_lookup_primative_type_by_name.
2414 (create_string_type): Use language_string_char_type.
2415 * values.c (value_from_string): Use language_string_char_type.
2416 * scm-lang.c (scm_language_defn): Add NULL la_language_arch_info.
2417 * p-lang.c (pascal_language_defn): Ditto.
2418 * m2-lang.c (m2_language_defn): Ditto.
2419 * jv-lang.c (java_language_defn): Ditto.
2420 * objc-lang.c (objc_language_defn): Ditto.
2421 * f-lang.c (f_language_defn): Ditto.
2422 * c-lang.c (c_language_defn, cplus_language_defn)
2423 (asm_language_defn, minimal_language_defn): Ditto.
2424
2425 2004-07-27 Andrew Cagney <cagney@gnu.org>
2426
2427 * gdbtypes.h (struct builtin_type): Declare.
2428 (builtin_type): Declare.
2429 * d10v-tdep.c (d10v_register_type): Use builtin_type.
2430 * gdbtypes.c (_initialize_gdbtypes): Register gdbtypes_post_init.
2431 (gdbtypes_post_init): New function.
2432 (builtin_type): New function.
2433
2434 2004-07-27 Kei Sakamoto <sakamoto.kei@renesas.com>
2435
2436 * remote-m32r-sdi.c: Fix breakpoint bug.
2437 (send_cmd, send_one_arg_cmd, send_two_arg_cmd, send_three_arg_cmd,
2438 recv_char_data, recv_long_data): New functions to replace communication
2439 sequences.
2440
2441 2004-07-26 Michael Chastain <mec.gnu@mindspring.com>
2442
2443 Document PR threads/1650.
2444 * PROBLEMS (Threads): Document problem with many threads
2445
2446 2004-07-26 Andrew Cagney <cagney@gnu.org>
2447
2448 * gdb-mi.el: Move from here ...
2449 * mi/gdb-mi.el: ... to here.
2450
2451 2004-07-26 Andrew Cagney <cagney@gnu.org>
2452
2453 Problem reported by Ashley Pittman <ashley@quadrics.com>.
2454 * main.c (captured_main): When in batch mode always detach.
2455
2456 2004-07-26 Andrew Cagney <cagney@gnu.org>
2457
2458 * MAINTAINERS: Mark the xstormy16, sh64, ns32k, mn10300, mcore,
2459 and h8300 as broken.
2460 * NEWS: END-OF-LIFE frame compatibility module.
2461 * PROBLEMS: For "Stack backtraces", remove powerpc, hppa and mips
2462 specific comments.
2463
2464 2004-07-26 Andrew Cagney <cagney@gnu.org>
2465
2466 * cli/cli-decode.c (deprecated_add_show_from_set): Deprecate.
2467 * xcoffsolib.c (_initialize_xcoffsolib): Update.
2468 * wince.c (_initialize_wince): Update.
2469 * win32-nat.c (_initialize_win32_nat): Update.
2470 * varobj.c (_initialize_varobj): Update.
2471 * valops.c (_initialize_valops): Update.
2472 * utils.c (initialize_utils, initialize_utils): Update.
2473 * tui/tui-win.c (_initialize_tui_win): Update.
2474 * top.c (init_main): Update.
2475 * symfile.c (_initialize_symfile): Update.
2476 * source.c (_initialize_source): Update.
2477 * somsolib.c (_initialize_som_solib): Update.
2478 * solib.c (_initialize_solib): Update.
2479 * solib-frv.c (_initialize_frv_solib): Update.
2480 * serial.c (_initialize_serial): Update.
2481 * ser-go32.c (_initialize_ser_dos, _initialize_ser_dos): Update.
2482 * remote.c (_initialize_remote, _initialize_remote): Update.
2483 * remote-vx.c (_initialize_vx): Update.
2484 * remote-utils.c (_initialize_sr_support): Update.
2485 * remote-sds.c (_initialize_remote_sds): Update.
2486 * remote-mips.c (_initialize_remote_mips): Update.
2487 * remote-e7000.c (_initialize_remote_e7000): Update.
2488 * proc-api.c (_initialize_proc_api): Update.
2489 * printcmd.c: Update.
2490 * parse.c (_initialize_parse): Update.
2491 * pa64solib.c (_initialize_pa64_solib): Update.
2492 * p-valprint.c (_initialize_pascal_valprint): Update.
2493 * monitor.c (_initialize_remote_monitors): Update.
2494 * mips-tdep.c (_initialize_mips_tdep): Update.
2495 * mcore-tdep.c (_initialize_mcore_tdep): Update.
2496 * maint.c (_initialize_maint_cmds): Update.
2497 * lin-lwp.c (_initialize_lin_lwp): Update.
2498 * language.c (_initialize_language): Update.
2499 * kod.c (_initialize_kod): Update.
2500 * infrun.c (set_schedlock_func, _initialize_infrun): Update.
2501 * i386-tdep.c (_initialize_i386_tdep): Update.
2502 * gdbtypes.c (build_gdbtypes, _initialize_gdbtypes): Update.
2503 * gdbarch.sh: Update.
2504 * gdbarch.c: Re-generate.
2505 * gdb-events.sh: Update.
2506 * gdb-events.c: Re-generate.
2507 * frame.c (_initialize_frame): Update.
2508 * exec.c: Update.
2509 * demangle.c (_initialize_demangler): Update.
2510 * dcache.c (_initialize_dcache): Update.
2511 * cris-tdep.c (_initialize_cris_tdep, cris_version_update): Update.
2512 * cp-valprint.c (_initialize_cp_valprint): Update.
2513 * corefile.c (_initialize_core): Update.
2514 * command.h: Update.
2515 * cli/cli-decode.h: Update.
2516 * cli/cli-cmds.c (init_cli_cmds): Update.
2517 * charset.c (_initialize_charset): Update.
2518 * breakpoint.c (_initialize_breakpoint): Update.
2519 * arm-tdep.c (_initialize_arm_tdep_initialize_arm_tdep): Update.
2520 * alpha-tdep.c (_initialize_alpha_tdep): Update.
2521 * aix-thread.c (_initialize_aix_thread): Update.
2522
2523 2004-07-24 Mark Kettenis <kettenis@gnu.org>
2524
2525 Partial fix for PR backtrace/1718.
2526 * i386-tdep.c (i386_analyze_frame_setup): Handle more instructions
2527 that GCC migrates into the prolugue. Don't handle any
2528 instructions that clobber %ebx.
2529
2530 2004-07-23 Andrew Cagney <cagney@gnu.org>
2531
2532 Use regcache_raw_collect instead of regcache_collect.
2533 * regcache.h (regcache_collect): Delete declaration.
2534 * regcache.c (regcache_colect): Delete function.
2535 * win32-nat.c (do_child_store_inferior_registers): Update.
2536 * sol-thread.c (sol_thread_store_registers): Update.
2537 * shnbsd-tdep.c (shnbsd_fill_reg): Update.
2538 * rs6000-nat.c (store_register): Update.
2539 * remote.c (store_register_using_P, remote_store_registers): Update.
2540 * ppcnbsd-tdep.c (ppcnbsd_fill_reg): Update.
2541 * ppc-linux-nat.c (store_altivec_register, store_spe_register)
2542 (fill_vrregset, store_spe_registers, fill_gregset)
2543 (fill_gregset): Update.
2544 * nto-procfs.c (procfs_store_registers): Update.
2545 * mipsnbsd-tdep.c (mipsnbsd_fill_reg): Update.
2546 * mips-linux-tdep.c (fill_gregset, mips64_fill_gregset): Update.
2547 * m68klinux-nat.c (store_register, fill_gregset): Update.
2548 * m68k-tdep.c (fill_gregset): Update.
2549 * infptrace.c (store_register): Update.
2550 * i386-nto-tdep.c (i386nto_regset_fill): Update.
2551 * i386-linux-nat.c (store_register, fill_gregset): Update.
2552 * hppa-linux-nat.c (fill_gregset): Update.
2553 * go32-nat.c (store_register): Update.
2554 * armnbsd-nat.c (store_register, store_regs, store_fp_register)
2555 (store_fp_regs): Update.
2556 * arm-linux-nat.c (store_nwfpe_single, store_nwfpe_double)
2557 (store_nwfpe_extended, store_fpregister, store_fpregs)
2558 (store_register, store_regs, fill_gregset, fill_fpregset): Update.
2559 * alpha-tdep.c (alpha_fill_int_regs, alpha_fill_fp_regs): Update.
2560 * aix-thread.c (fill_gprs64, fill_fprs, fill_sprs64, fill_sprs32)
2561 (store_regs_user_thread, store_regs_kernel_thread): Update.
2562
2563 2004-07-24 Mark Kettenis <kettenis@gnu.org>
2564
2565 * dwarf2-frame.c (struct dwarf2_cie): Delete `addr_size' member.
2566 (decode_frame_entry_1): Use DW_EH_PE_absptr as default for CIE
2567 encoding.
2568 (dwarf2_build_frame_info): Adjust for removal of `addr_size'
2569 member of `struct comp_unit'.
2570
2571 2004-07-23 Andrew Cagney <cagney@gnu.org>
2572
2573 * infrun.c (handle_inferior_event): Separate the STEP_OVER_ALL and
2574 DEPRECATED_IGNORE_HELPER_CALL cases, only #ifdef the latter.
2575
2576 2004-07-23 Martin Hunt <hunt@redhat.com>
2577 Kevin Buettner <kevinb@redhat.com>
2578
2579 * dwarf2-frame.c (execute_cfa_program): Fix typo in which the
2580 alignment was being added to the offset instead of multiplied.
2581
2582 2004-07-23 Mark Kettenis <kettenis@gnu.org>
2583
2584 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Adjust for
2585 changed signal trampoline in OpenBSD 3.5-current.
2586
2587 * sparc64nbsd-nat.c: Include "regcache.h", <sys/types.h>,
2588 <machine/pcb.h> and "bsd-kvm.h".
2589 (sparc64nbsd_supply_pcb): New function.
2590 (_initialize_sparc64nbsd_nat): Renamed from
2591 _initialize_sparcnbsd_nat. Enable libkvm interface.
2592 * Makefile.in (sparc64nbsd-nat.o): Update dependencies.
2593 * config/sparc/nbsd64.mh (NATDEPFILES): Add bsd-kvm.o
2594 (LOADLIBES): New variable.
2595
2596 * config/sparc/obsd64.mt (TDEPFILES): Add sparcobsd-tdep.o.
2597
2598 * sparcnbsd-nat.c (sparc32nbsd_supply_pcb): Fix typo in comment.
2599
2600 2004-07-21 Andrew Cagney <cagney@gnu.org>
2601
2602 Use regcache_raw_supply instead of supply_register.
2603 * regcache.h (supply_register): Delete declaration.
2604 * regcache.c (supply_register): Delete function.
2605 * wince.c (do_child_fetch_inferior_registers): Update.
2606 * win32-nat.c (do_child_fetch_inferior_registers)
2607 (fetch_elf_core_registers): Update.
2608 * v850ice.c (v850ice_fetch_registers): Update.
2609 * thread-db.c (thread_db_store_registers): Update.
2610 * sol-thread.c (sol_thread_store_registers): Update.
2611 * shnbsd-tdep.c (shnbsd_supply_reg): Update.
2612 * rs6000-nat.c (fetch_register): Update.
2613 * rom68k-rom.c (rom68k_supply_one_register): Update.
2614 * remote.c (remote_wait, remote_async_wait): Update.
2615 * remote-st.c (get_hex_regs): Update.
2616 * remote-sim.c (gdbsim_fetch_register): Update.
2617 * remote-sds.c (sds_fetch_registers): Update.
2618 * remote-rdp.c (remote_rdp_fetch_register): Update.
2619 * remote-rdi.c (arm_rdi_fetch_registers): Update.
2620 * remote-mips.c (mips_wait, mips_fetch_registers): Update.
2621 * remote-m32r-sdi.c (m32r_fetch_register): Update.
2622 * remote-hms.c (init_hms_cmds): Update.
2623 * remote-est.c (init_est_cmds): Update.
2624 * remote-e7000.c (get_hex_regs, fetch_regs_from_dump)
2625 (e7000_fetch_registers, sub2_from_pc, e7000_wait): Update.
2626 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_supply_fpreg): Update.
2627 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register)
2628 (fetch_register, supply_vrregset, supply_vrregset)
2629 (fetch_spe_registers): Update.
2630 * ppc-bdm.c (bdm_ppc_fetch_registers): Update.
2631 * monitor.c (monitor_supply_register): Update.
2632 * mipsv4-nat.c (supply_gregset, supply_fpregset): Update.
2633 * mipsnbsd-tdep.c (mipsnbsd_supply_reg)
2634 (mipsnbsd_supply_fpreg): Update.
2635 * mips-nat.c (fetch_inferior_registers)
2636 (fetch_core_registers): Update.
2637 * mips-linux-tdep.c (supply_32bit_reg, supply_gregset)
2638 (supply_fpregset, mips64_supply_gregset)
2639 (mips64_supply_fpregset): Update.
2640 * m68klinux-nat.c (fetch_register, supply_gregset)
2641 (supply_fpregset): Update.
2642 * m68k-tdep.c (supply_gregset, supply_fpregset): Update.
2643 * m32r-rom.c (init_m32r_cmds, init_mon2000_cmds): Update.
2644 * lynx-nat.c (fetch_inferior_registers, fetch_core_registers): Update.
2645 * irix5-nat.c (supply_gregset, supply_fpregset): Update.
2646 * infptrace.c (fetch_register): Update.
2647 * ia64-linux-nat.c (supply_gregset, supply_fpregset): Update.
2648 * ia64-aix-nat.c (supply_gregset, supply_fpregset): Update.
2649 * i386gnu-nat.c (fetch_fpregs, supply_gregset)
2650 (gnu_fetch_registers, gnu_store_registers): Update.
2651 * i386-nto-tdep.c (i386nto_supply_gregset): Update.
2652 * i386-linux-nat.c (fetch_register, supply_gregset)
2653 (dummy_sse_values): Update.
2654 * hpux-thread.c (hpux_thread_fetch_registers): Update.
2655 * hppah-nat.c (fetch_register): Update.
2656 * hppa-linux-nat.c (fetch_register, supply_gregset)
2657 (supply_fpregset): Update.
2658 * go32-nat.c (fetch_register): Update.
2659 * dve3900-rom.c (fetch_bitmapped_register)
2660 (_initialize_r3900_rom): Update.
2661 * cris-tdep.c (supply_gregset): Update.
2662 * abug-rom.c (init_abug_cmds): Update.
2663 * core-aout.c (fetch_core_registers): Update.
2664 * armnbsd-nat.c (supply_gregset, supply_fparegset)
2665 (fetch_register, fetch_fp_register): Update.
2666 * arm-linux-nat.c (fetch_nwfpe_single, fetch_nwfpe_none)
2667 (fetch_nwfpe_extended, fetch_fpregister, fetch_fpregs)
2668 (fetch_register, fetch_regs, supply_gregset, supply_fpregset): Update.
2669 * alphanbsd-tdep.c (fetch_core_registers): Update.
2670 * alpha-tdep.c (alpha_supply_int_regs, alpha_supply_fp_regs): Update.
2671 * alpha-nat.c (fetch_osf_core_registers)
2672 (fetch_osf_core_registers, fetch_osf_core_registers): Update.
2673 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs)
2674 (supply_sprs64, supply_sprs32, fetch_regs_kernel_thread): Update.
2675
2676 2004-07-21 Andrew Cagney <cagney@gnu.org>
2677
2678 * PROBLEMS: Mention breakpoints/1702.
2679 * NEWS: For signal trampolines, cite s390 GNU/Linux as a system
2680 that is known to work.
2681
2682 2004-07-21 Andrew Cagney <cagney@gnu.org>
2683
2684 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Deprecate.
2685 * mips-tdep.c (mips_dump_tdep, mips_ignore_helper): Update.
2686 * infrun.c (DEPRECATED_IGNORE_HELPER_CALL): Delete macro.
2687 (handle_inferior_event): Wrap call to deprecated
2688 IGNORE_HELPER_CALL in #ifdef.
2689 * config/mips/tm-nbsd.h: Update.
2690
2691 2004-07-20 Jim Blandy <jimb@redhat.com>
2692
2693 * rs6000-tdep.c (rs6000_gdbarch_init): The register set used for
2694 bfd_mach_ppc has no segment registers.
2695
2696 Include PowerPC SPR numbers for special-purpose registers.
2697 * rs6000-tdep.c (struct reg): Add new member, 'spr_num'.
2698 (R, R4, R8, R16, F, P, R32, R64, R0): Include value for
2699 new member in initializer.
2700 (S, S4, SN4, S64): New macros for defining special-purpose
2701 registers.
2702 (PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS, PPC_OEA_SPRS, registers_power,
2703 registers_403, registers_403GC, registers_505, registers_860,
2704 registers_601, registers_602, registers_603, registers_604,
2705 registers_750, registers_e500): Use them.
2706
2707 * rs6000-tdep.c (rs6000_gdbarch_init): Delete variable 'power';
2708 replace references with expression used to initialize variable.
2709
2710 2004-07-20 Andrew Cagney <cagney@gnu.org>
2711
2712 * breakpoint.c (deprecated_read_memory_nobpt): Rename
2713 read_memory_nobpt.
2714 * sparc-linux-tdep.c (sparc_linux_sigtramp_start): Update.
2715 * s390-tdep.c (s390_readinstruction, s390_in_function_epilogue_p)
2716 (s390_sigtramp_frame_sniffer): Update.
2717 * mn10300-tdep.c (mn10300_analyze_prologue): Update.
2718 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Update.
2719 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
2720 (mips32_fetch_instruction): Update.
2721 * mcore-tdep.c (get_insn): Update.
2722 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Update.
2723 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Update.
2724 * i386ly-tdep.c (i386lynx_saved_pc_after_call): Update.
2725 * i386-linux-tdep.c (i386_linux_sigtramp_start)
2726 (i386_linux_rt_sigtramp_start): Update.
2727 * i386-linux-nat.c (child_resume): Update.
2728 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Update.
2729 * hppa-linux-tdep.c (insns_match_pattern): Update.
2730 * gdbcore.h: Update.
2731 * frv-tdep.c (frv_gdbarch_adjust_breakpoint_address): Update.
2732 * frame.c (safe_frame_unwind_memory): Update.
2733 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Update.
2734 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Update.
2735 * alpha-tdep.c (alpha_read_insn): Update.
2736
2737 2004-07-20 Andrew Cagney <cagney@gnu.org>
2738
2739 * tramp-frame.h (struct tramp_frame): Change "insn" to a struct
2740 containing both bytes and mask. Add "frame_type".
2741 * tramp-frame.c (tramp_frame_start): Update.
2742 (tramp_frame_prepend_unwinder): Update.
2743 * mips-linux-tdep.c (mips_linux_o32_sigframe)
2744 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
2745 (mips_linux_n64_rt_sigframe): Update. Make "static const".
2746 * ppcnbsd-tdep.c (tramp_frame ppcnbsd_sigtramp): Update.
2747
2748 2004-07-19 Eli Zaretskii <eliz@gnu.org>
2749
2750 * config/djgpp/fnchange.lst: Add remapping for bfd/elf32-cr*.c,
2751 bfd/elf32-sh-symbian.c, bfd/elf32-sh64-com.c,
2752 sim/testsuite/sim/mips/hilo-hazard-[123].s, and
2753 sim/testsuite/sim/mips/fpu64-ps-sb1.s.
2754
2755 2004-07-17 Andrew Cagney <cagney@gnu.org>
2756
2757 * NEWS, PROBLEMS: Update for 6.2.
2758
2759 * README: Update to 6.2.
2760
2761 * utils.c (xvasprintf): Call xstrvprintf.
2762
2763 * parse.c: Update copyright.
2764 (null_post_parser): Eliminate ARGSUSED.
2765
2766 * ppc-linux-nat.c (store_spe_registers): Eliminate K&R C.
2767 * tui/tui-win.c (tui_get_cmd_list): Ditto.
2768 * symfile-mem.c (_initialize_symfile_mem): Ditto.
2769
2770 * ppc-linux-tdep.c (ppc_linux_init_abi): Add [sic] to Linux.
2771 * ppc-linux-nat.c: Use "Linux kernel".
2772 * hppa-linux-tdep.c: Use GNU/Linux.
2773 * hppa-linux-nat.c: Use GNU/Linux.
2774 * dwarfread.c: Add [sic] to use of Linux.
2775
2776 * hppa-linux-nat.c: Do not include <string.h>.
2777 (supply_fpregset): Remove "register" attribute.
2778
2779 * solib-frv.c (fetch_loadmap): Use xfree, not free.
2780
2781 2004-07-17 Mark Kettenis <kettenis@gnu.org>
2782
2783 * configure.in: Define _MSE_INT_H on Solaris 9 too.
2784 * configure, config.in: Regenerated.
2785
2786 * vaxbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
2787 "bsd-kvm.h".
2788 (vaxbsd_supply_pcb): New function.
2789 (_initialize_vaxbsd_nat): New prototype and function.
2790 * config/vax/nbsdaout.mh (NATDEPFILES): Add bsd-kvm.o, solib.o and
2791 solib-sunos.o.
2792 (LOADLIBES): New variable.
2793 * config/vax/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
2794 (LOADLIBES): New variable.
2795 * config/vax/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
2796 (LOADLIBES): New variable.
2797 * Makefile.in (vaxbsd-nat.o): Update dependencies.
2798
2799 2004-07-16 Andrew Cagney <cagney@gnu.org>
2800
2801 * defs.h (event_loop_p): Replace variable declaration with macro,
2802 always 1.
2803 * main.c (captured_main): Delete options "-async" and "-noasync".
2804 (event_loop_p): Delete variable.
2805 * NEWS: Mention that "-async" and "-noasync" were removed.
2806
2807 2004-07-16 Andrew Cagney <cagney@gnu.org>
2808
2809 * remote-m32r-sdi.c: Re-indent.
2810
2811 2004-07-16 Jim Blandy <jimb@redhat.com>
2812
2813 * ppc-tdep.h (ppc_spr_asr): Add missing OEA SPR.
2814 (ppc_spr_mi_dbcam, ppc_spr_mi_dbram0, ppc_spr_mi_dbram1)
2815 (ppc_spr_md_cam, ppc_spr_md_ram0, ppc_spr_md_ram1): Add
2816 missing MPC823 SPRs.
2817 (ppc_spr_m_twb): Renamed from ppc_spr_md_twb; the old name was
2818 incorrect. (This was corrected in GDB's register name tables on
2819 2004-07-14.)
2820
2821 * rs6000-tdep.c (registers_602): Correct register name: "esassr"
2822 should be "esasrr" ("ESA Save and Restore Register").
2823
2824 2004-07-16 Andrew Cagney <cagney@gnu.org>
2825
2826 * infrun.c (insert_step_resume_breakpoint): Delete gdb_assert
2827 calls, no longer applicable. Update comments and rename parameter
2828 "step_frame" to "return_frame".
2829
2830 2004-07-16 Andrew Cagney <cagney@gnu.org>
2831
2832 * frame.c (fprint_field): New function.
2833 (fprint_frame_id): Use fprint_field.
2834
2835 2004-07-15 Joel Brobecker <brobecker@gnat.com>
2836
2837 * ada-lang.c (ada_language_defn): Remove commented out code.
2838
2839 2004-07-15 Jim Blandy <jimb@redhat.com>
2840
2841 * ppc-tdep.h (struct gdbarch_tdep): New member: ppc_sr0_regnum.
2842 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it.
2843
2844 2004-07-14 Jim Blandy <jimb@redhat.com>
2845
2846 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): Delete; unused.
2847
2848 * ppc-tdep.h (ppc_num_vrs): New enum constant.
2849
2850 * ppc-tdep.h (ppc_num_srs): New enum constant.
2851
2852 * ppc-tdep.h (ppc_spr_mq, ppc_spr_xer, ppc_spr_rtcu, ppc_spr_rtcl)
2853 (ppc_spr_lr, ppc_spr_ctr, ppc_spr_cnt, ppc_spr_dsisr, ppc_spr_dar)
2854 (ppc_spr_dec, ppc_spr_sdr1, ppc_spr_srr0, ppc_spr_srr1)
2855 (ppc_spr_eie, ppc_spr_eid, ppc_spr_nri, ppc_spr_sp, ppc_spr_cmpa)
2856 (ppc_spr_cmpb, ppc_spr_cmpc, ppc_spr_cmpd, ppc_spr_icr)
2857 (ppc_spr_der, ppc_spr_counta, ppc_spr_countb, ppc_spr_cmpe)
2858 (ppc_spr_cmpf, ppc_spr_cmpg, ppc_spr_cmph, ppc_spr_lctrl1)
2859 (ppc_spr_lctrl2, ppc_spr_ictrl, ppc_spr_bar, ppc_spr_vrsave)
2860 (ppc_spr_sprg0, ppc_spr_sprg1, ppc_spr_sprg2, ppc_spr_sprg3)
2861 (ppc_spr_ear, ppc_spr_tbl, ppc_spr_tbu, ppc_spr_pvr)
2862 (ppc_spr_spefscr, ppc_spr_ibat0u, ppc_spr_ibat0l, ppc_spr_ibat1u)
2863 (ppc_spr_ibat1l, ppc_spr_ibat2u, ppc_spr_ibat2l, ppc_spr_ibat3u)
2864 (ppc_spr_ibat3l, ppc_spr_dbat0u, ppc_spr_dbat0l, ppc_spr_dbat1u)
2865 (ppc_spr_dbat1l, ppc_spr_dbat2u, ppc_spr_dbat2l, ppc_spr_dbat3u)
2866 (ppc_spr_dbat3l, ppc_spr_ic_cst, ppc_spr_ic_adr, ppc_spr_ic_dat)
2867 (ppc_spr_dc_cst, ppc_spr_dc_adr, ppc_spr_dc_dat, ppc_spr_dpdr)
2868 (ppc_spr_dpir, ppc_spr_immr, ppc_spr_mi_ctr, ppc_spr_mi_ap)
2869 (ppc_spr_mi_epn, ppc_spr_mi_twc, ppc_spr_mi_rpn, ppc_spr_mi_cam)
2870 (ppc_spr_mi_ram0, ppc_spr_mi_ram1, ppc_spr_md_ctr, ppc_spr_m_casid)
2871 (ppc_spr_md_ap, ppc_spr_md_epn, ppc_spr_md_twb, ppc_spr_md_twc)
2872 (ppc_spr_md_rpn, ppc_spr_m_tw, ppc_spr_md_dbcam, ppc_spr_md_dbram0)
2873 (ppc_spr_md_dbram1, ppc_spr_ummcr0, ppc_spr_upmc1, ppc_spr_upmc2)
2874 (ppc_spr_usia, ppc_spr_ummcr1, ppc_spr_upmc3, ppc_spr_upmc4)
2875 (ppc_spr_zpr, ppc_spr_pid, ppc_spr_mmcr0, ppc_spr_pmc1)
2876 (ppc_spr_sgr, ppc_spr_pmc2, ppc_spr_dcwr, ppc_spr_sia)
2877 (ppc_spr_mmcr1, ppc_spr_pmc3, ppc_spr_pmc4, ppc_spr_sda)
2878 (ppc_spr_tbhu, ppc_spr_tblu, ppc_spr_dmiss, ppc_spr_dcmp)
2879 (ppc_spr_hash1, ppc_spr_hash2, ppc_spr_icdbdr, ppc_spr_imiss)
2880 (ppc_spr_esr, ppc_spr_icmp, ppc_spr_dear, ppc_spr_rpa)
2881 (ppc_spr_evpr, ppc_spr_cdbcr, ppc_spr_tsr, ppc_spr_602_tcr)
2882 (ppc_spr_403_tcr, ppc_spr_ibr, ppc_spr_pit, ppc_spr_esasrr)
2883 (ppc_spr_tbhi, ppc_spr_tblo, ppc_spr_srr2, ppc_spr_sebr)
2884 (ppc_spr_srr3, ppc_spr_ser, ppc_spr_hid0, ppc_spr_dbsr)
2885 (ppc_spr_hid1, ppc_spr_iabr, ppc_spr_dbcr, ppc_spr_iac1)
2886 (ppc_spr_dabr, ppc_spr_iac2, ppc_spr_dac1, ppc_spr_dac2)
2887 (ppc_spr_l2cr, ppc_spr_dccr, ppc_spr_ictc, ppc_spr_iccr)
2888 (ppc_spr_thrm1, ppc_spr_pbl1, ppc_spr_thrm2, ppc_spr_pbu1)
2889 (ppc_spr_thrm3, ppc_spr_pbl2, ppc_spr_fpecr, ppc_spr_lt)
2890 (ppc_spr_pir, ppc_spr_pbu2): New enum constants for PowerPC
2891 special-purpose register numbers.
2892
2893 * rs6000-tdep.c (registers_860): Correct register name. (No PPC
2894 manual mentions 'md_twb', but many mention 'm_twb', and at that
2895 point in the register list.)
2896
2897 2004-07-14 Andrew Cagney <cagney@gnu.org>
2898
2899 * utils.c (internal_warning_problem): Fix typo, "internal-warning"
2900 instead of "internal-error".
2901
2902 2004-07-10 Joel Brobecker <brobecker@gnat.com>
2903
2904 * hppa-hpux-tdep.c: Fix a compilation failure due to a comment
2905 that was inserted inside a comment.
2906
2907 2004-07-10 Randolph Chung <tausq@debian.org>
2908
2909 * hppa-hpux-tdep.c (hppa_hpux_som_find_global_pointer): New
2910 function.
2911 (hppa_hpux_push_dummy_code): New function.
2912 (hppa_hpux_init_abi): Set push_dummy_code and call_dummy_location.
2913 Set find_global_pointer method.
2914
2915 2004-07-10 Mark Kettenis <kettenis@gnu.org>
2916
2917 * NEWS: Mention BSD libkvm interface.
2918
2919 2004-07-10 Michael Snyder <msnyder@redhat.com>
2920
2921 * symfile.c (generic_load): Comment typo.
2922 * stack.c (get_selected_block): Ditto.
2923 * regcache.c (regcache_cooked_read): Ditto.
2924 * monitor.c (monitor_debug): Ditto.
2925 * mips-tdep.c (mips_read_pc): Ditto.
2926 * i386-linux-nat.c (ps_get_thread_area): Ditto.
2927 * gdb_mbuild.sh: Ditto.
2928 * gdbarch.sh: Ditto.
2929 * gdbarch.h: Ditto.
2930
2931 2004-07-09 Paul N. Hilfinger <Hilfinger@gnat.com>
2932
2933 * ada-tasks.c: Remove file.
2934
2935 Remove ARI problems:
2936
2937 * ada-exp.y (write_var_from_sym): Reformat to put operator at
2938 beginning of line.
2939
2940 * ada-lang.c (MAX_OF_SIZE): Rename max_of_size.
2941 Add comment.
2942 Add comment concerning MAX_OF_TYPE and MIN_OF_TYPE.
2943 (MIN_OF_SIZE): Rename min_of_size. Add comment.
2944 (UMAX_OF_SIZE): Renmae umax_of_size. Add comment.
2945 (UMIN_OF_SIZE): Remove.
2946 (max_of_type): New function to replace orphan macro in gdbtypes.h
2947 (min_of_type): Ditto.
2948 (discrete_type_high_bound): Use max_of_type.
2949 (discrete_type_low_bound): Use min_of_type.
2950 (possible_user_operator_p): Move operator to beginning of line.
2951 (ada_is_variant_part): Ditto.
2952 (ensure_lval): Rewrite to avoid deprecated operations.
2953 (ada_finish_decode_line_1): Use gdbarch_convert_from_func_ptr_addr
2954 rather than adding DEPRECATED_FUNCTION_START_OFFSET.
2955 (ada_enum_name): Remove assignments in 'if' statements.
2956 (build_ada_types): Add gdbarch parameter.
2957 (_initialize_ada_language): Replace deprecated_register_gdbarch_swap
2958 with gdbarch_data_register_post_init.
2959 Use add_setshow_uinteger_cmd rather than add_set_cmd and
2960 add_show_from_set.
2961
2962 * ada-valprint.c (inspect_it): Remove declaration.
2963 (repeat_count_threshold): Remove declaration.
2964 (ada_print_floating): Remove assignments in 'if' statements.
2965 (print_str): Move operator to beginning of line.
2966
2967 2004-07-08 Jim Blandy <jimb@redhat.com>
2968
2969 * rs6000-tdep.c (registers_powerpc_nofp): Unused; deleted.
2970
2971 2004-07-08 Bob Rossi <bob@brasko.net>
2972
2973 * symtab.c (lookup_symtab): check return value of symtab_to_fullname
2974
2975 2004-07-06 Jeff Johnston <jjohnstn@redhat.com>
2976
2977 * language.h (struct_language_defn): Add new function pointer:
2978 la_class_name_from_physname. Also add new prototype for
2979 language_class_name_from_physname.
2980 * language.c (language_class_name_from_physname): New function.
2981 (unk_lang_class_name): Ditto.
2982 (unknown_language_defn, auto_language_defn): Change
2983 to add unk_lang_class_name function pointer for
2984 la_class_name_from_physname.
2985 (local_language_defn): Ditto.
2986 * dwarf2read.c (guess_structure_name): Change to call
2987 language_class_name_from_physname.
2988 (determine_class_name): Ditto.
2989 * cp-support.c (class_name_from_physname): Renamed.
2990 (cp_class_name_from_physname): New name of function.
2991 * cp-support.h: Ditto.
2992 * c-lang.c (c_language_defn): Change to add NULL
2993 for class_name_from_physname function pointer.
2994 (cplus_language_defn): Change to add cp_class_name_from_physname.
2995 * jv-lang.c (java_class_name_physname): New function.
2996 (java_find_last_component): New static routine.
2997 (java_language_defn): Add java_class_name_from_physname pointer.
2998 * ada-lang.c (ada_language_defn): Change to add NULL
2999 for class_name_from_physname function pointer.
3000 * f-lang.c (f_language_defn): Ditto.
3001 * m2-lang.c (m2_language_defn): Ditto.
3002 * objc-lang.c (objc_language_defn): Ditto.
3003 * p-lang.c (pascal_language_defn): Ditto.
3004 * scm-lang.c (scm_language_defn): Ditto.
3005
3006 2004-07-06 Andrew Cagney <cagney@gnu.org>
3007
3008 Patch from Bart Robinson.
3009 * corelow.c (core_open): Add variable "flags", or in O_LARGEFILE.
3010 (O_LARGEFILE): Define to 0, if not defined.
3011
3012 2004-07-03 Mark Kettenis <kettenis@gnu.org>
3013
3014 * m68kbsd-nat.c: Include "gdbcore.h", <sys/types.h>,
3015 <machine/pcb.h> and "bsd-kvm.h".
3016 (PCB_REGS_FP, PCB_REGS_SP): Define if not already defined.
3017 (m68kbsd_supply_pcb): New function.
3018 (_initialize_m68kbsd_nat): New prototype and function.
3019 * Makefile.in (m68kbsd-nat.o): Update dependencies.
3020 * config/m68k/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
3021 (LOADLIBES): New variable.
3022 * config/m68k/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
3023 (LOADLIBES): New variable.
3024
3025 * bsd-kvm.c (bsd_kvm_cmdlist): Remove unecessary initialization.
3026
3027 2004-07-03 Mark Kettenis <kettenis@gnu.org>
3028
3029 * bsd-kvm.c: Include "cli/cli-cmds.h", "command.h", "value.h" and
3030 <sys/proc.h>.
3031 (bsd_kvm_cmdlist): New variable.
3032 (bsd_kvm_cmd, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): New functions.
3033 (bsd_kvm_add_target): Register "kvm" command prefix, "kvm pcb"
3034 command and "kvm proc" command.
3035 * Makefile.in (bsd-kvm.o): Update dependencies.
3036
3037 2004-07-02 Mark Kettenis <kettenis@gnu.org>
3038
3039 * osabi.c: Update copyright year.
3040 (generic_elf_osabi_sniffer): Tweak comment. Look for OS-specific
3041 notes if EI_OSABI is set to ELFOSABI_HPUX.
3042
3043 2004-07-01 Michael Snyder <msnyder@redhat.com>
3044
3045 * win32-nat.c (core_dll_symbols_add): Re-indent a small section
3046 that seems to have gotten whacked out of line.
3047
3048 2004-07-01 Mark Kettenis <kettenis@gnu.org>
3049
3050 * dbxread.c (process_one_symbol) [PCC_SOL_BROKEN]: Remove dead
3051 code.
3052
3053 2004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
3054
3055 * ada-lang.c (decode_packed_array): Minor change to comment.
3056 (ada_value_slice_ptr): New function.
3057 (ada_value_slice): New function.
3058 (ada_evaluate_subexp): Remove XVS-suffix code from subscripting
3059 test. Don't know why it is there.
3060 Change slice code to use ada_value_slice_ptr and ada_value_slice, and
3061 to avoid dereferencing huge arrays from which one is slicing.
3062 (empty_array): Correct to return an array rather than
3063 a subrange value.
3064 * ada-valprint.c (print_optional_low_bound): Don't print lower bound
3065 on empty arrays (let'em use 'FIRST instead).
3066
3067 2004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
3068
3069 Address complaints from gdb_ari.sh:
3070
3071 * ada-exp.y: Include gdb_string.h rather than string.h.
3072 (convert_char_literal): Reformat declaration.
3073 * ada-lang.h: Include opaque struct declaration for struct frame_info.
3074 * ada-lex.l: Change use of free to xfree (the macro would do so
3075 anyway, but this is harmless).
3076 Include gdb_string.h rather than string.h.
3077 * ada-valprint.c (ada_val_print_stub): Change PTR => void*.
3078
3079 * ada-lang.c (parse): Remove K&Rism in parameter list.
3080 (is_name_suffix): Correct Linux => GNU/Linux in comment.
3081
3082 2004-06-30 Mark Kettenis <kettenis@gnu.org>
3083
3084 * dbxread.c (process_one_symbol) [SUN_FIXED_LBRAC_BUG]: Remove
3085 dead code.
3086
3087 2004-06-30 Mark Kettenis <kettenis@gnu.org>
3088
3089 * alphabsd-nat.c: Update copyright year.
3090 (getregs_supplies): Use ALPHA_PC_REGNUM instead of PC_REGNUM.
3091
3092 2004-06-29 Joel Brobecker <brobecker@gnat.com>
3093
3094 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): New function.
3095 (i386_cygwin_in_solib_call_trampoline): New function.
3096 (i386_cygwin_init_abi): Initialize the in_solib_call_trampoline
3097 and skip_trampoline_code gdbarch methods.
3098
3099 2004-06-29 Jim Blandy <jimb@redhat.com>
3100
3101 * Makefile.in (gdb_callback_h): Renamed from callback_h to the
3102 name actually used in the dependency lists.
3103
3104 2004-06-29 Randolph Chung <tausq@debian.org>
3105
3106 * NEWS (New native configurations): Mention GNU/Linux/hppa.
3107
3108 2004-06-29 Corinna Vinschen <vinschen@redhat.com>
3109
3110 * win32-nat.c (child_pid_to_exec_file): New function.
3111 (init_child_ops): Add child_pid_to_exec_file as to_pid_to_exec_file
3112 functionality.
3113
3114 2004-06-28 Andrew Cagney <cagney@gnu.org>
3115
3116 * defs.h (xstrvprintf): Declare.
3117 * utils.c (xstrvprintf): New function.
3118 (internal_vproblem, xstrprintf, xasprintf)
3119 (vfprintf_maybe_filtered, vfprintf_unfiltered): Use xstrvprintf.
3120 * serial.c (serial_printf): Ditto.
3121 * complaints.c (vcomplaint): Ditto.
3122
3123 2004-06-29 Corinna Vinschen <vinschen@redhat.com>
3124
3125 * infcmd.c (attach_command): Move call to target_terminal_inferior
3126 behind loading symbol table.
3127
3128 2004-06-28 Andrew Cagney <cagney@gnu.org>
3129
3130 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Revert 2004-06-24
3131 change - add back extern deprecated_ui_loop_hook declaration.
3132
3133 2004-06-28 Andrew Cagney <cagney@gnu.org>
3134
3135 * xcoffsolib.c (xcoff_solib_address): Replace xasprintf with
3136 xstrprintf.
3137 * varobj.c (varobj_gen_name, create_child, c_name_of_child)
3138 (c_value_of_variable): Ditto.
3139 * utils.c (internal_vproblem): Ditto.
3140 * solib-aix5.c (build_so_list_from_mapfile): Ditto.
3141 * remote.c (add_packet_config_cmd): Ditto.
3142 * remote-rdp.c (rdp_set_command_line): Ditto.
3143 * regcache.c (regcache_dump): Ditto.
3144 * frv-tdep.c (new_variant, new_variant): Ditto.
3145 * fbsd-proc.c (child_pid_to_exec_file): Ditto.
3146 (fbsd_find_memory_regions): Ditto.
3147 * breakpoint.c (create_thread_event_breakpoint)
3148 (create_breakpoints): Ditto.
3149 * aix-thread.c (aix_thread_pid_to_str): Ditto.
3150 * ada-lang.c (is_package_name): Ditto. Also delete xmalloc call.
3151
3152 2004-06-28 Joel Brobecker <brobecker@gnat.com>
3153
3154 * ada-lang.c: Re-indent file, with some massaging to help indent
3155 a bit when the result is otherwise really too ugly.
3156
3157 2004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
3158
3159 * frame.h (struct frame_id): Change bit field type of stack_addr_p,
3160 code_addr_p and special_addr_p to 'unsigned int'.
3161
3162 2004-06-27 Mark Kettenis <kettenis@gnu.org>
3163
3164 * i386v4-nat.c: Update copyright year and tweak comment.
3165 (regmap): Remove trailing comma.
3166 (supply_gregset): Rename local variable i to regnum. Call
3167 regcache_raw_supply instead of supply_register.
3168 (fill_gregset): Rename argument regno to regnum. Call
3169 regcache_raw_collect instead of regcache_collect.
3170
3171 2004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
3172
3173 * frame.h (struct frame_id): New fields stack_addr_p, code_addr_p
3174 and special_addr_p.
3175 (frame_id_build, frame_id_build_special): Update comments.
3176 (frame_id_build_wild): New prototype.
3177 * frame.c (frame_id_build, frame_id_build_special): Fill in new
3178 struct frame_id fields.
3179 (frame_id_build_wild): New function.
3180 (frame_id_eq, frame_id_inner): Use new struct frame_id fields.
3181
3182 2004-06-27 Mark Kettenis <kettenis@gnu.org>
3183
3184 * config/djgpp/fnchange.lst: Add entries for hppabsd-nat.c and
3185 hppabsd-tdep.c.
3186
3187 2004-06-27 Joel Brobecker <brobecker@gnat.com>
3188
3189 * ada-lang.c: Minor reformatting to conform to GNU coding standards.
3190
3191 2004-06-27 Joel Brobecker <brobecker@gnat.com>
3192
3193 * ada-lang.c: Re-indent file.
3194
3195 2004-06-27 Joel Brobecker <brobecker@gnat.com>
3196
3197 * ada-lang.c (symtab_symbol_info): Remove unused declaration.
3198 (no_symtab_msg): Likewise.
3199
3200 2004-06-27 Andreas Schwab <schwab@suse.de>
3201
3202 * source.c: Fix whitespace.
3203
3204 2004-06-27 Mark Kettenis <kettenis@gnu.org>
3205
3206 * configure.in: Include <sys/param.h> for td_pcb test.
3207 * configure: Regenerated.
3208
3209 * i386nbsd-nat.c: New file.
3210 * Makefile.in (ALLDEPFILES): Add i386nbsd-nat.c, i386nbsd-tdep.c,
3211 i386obsd-nat.c and i386obsd-tdep.c.
3212 (i386nbsd-nat.o): New dependency.
3213 * config/i386/obsd.mh (NATDEPFILES): Add i386nbsd-nat.o and
3214 bsd-kvm.o.
3215 (LOADLIBES): New variable.
3216 * config/i386/nbsdelf.mh (NATDEPFILES): Add i386nbsd-nat.o and
3217 bsd-kvm.o.
3218 (LOADLIBES): New variable.
3219
3220 * config/i386/fbsd64.mh (NATDEPFILES): Add bsd-kvm.o.
3221 (LOADLIBES): New variable.
3222
3223 * bsd-kvm.c (bsd_kvm_fetch_registers): Directly return after
3224 fetching from BSD_KVM_PADDR. Correctly lookup address for
3225 "_thread0".
3226
3227 * amd64fbsd-nat.c: Include <sys/types.h, <machine/pcb.h> and
3228 "bsd-kvm.h".
3229 (amd64fbsd_supply_pcb): New funcion.
3230 (_initialize_amd64fbsd_nat): Enable libkvm interface.
3231
3232 2004-06-27 <david@streamline-computing.com>
3233
3234 Partial fix for PR cli/1056.
3235 * valarith.c: Check for zero in division and remainder
3236 evaluation.
3237
3238 2004-06-27 Mark Kettenis <kettenis@gnu.org>
3239
3240 * i387-tdep.c: Remove excessive whitespace.
3241
3242 2004-06-26 Andrew Cagney <cagney@gnu.org>
3243
3244 * gdb-events.sh (deprecated_set_gdb_event_hooks): Deprecated.
3245 * gdb-events.h, gdb-events.c: Re-generate.
3246 * tui/tui-hooks.c (tui_install_hooks): Update.
3247 (tui_remove_hooks): Update.
3248 * mi/mi-cmd-break.c (mi_cmd_break_insert): Update.
3249
3250 2004-06-26 Mark Kettenis <kettenis@gnu.org>
3251
3252 * amd64fbsd-nat.c: Don't include <sys/procfs.h> and "gregset.h".
3253 (gregset_t, fpregset_t): Remove typedefs.
3254 (REG_OFFSET): Rename argument.
3255 (amd64bsd_r_reg_offset): Rename from reg_offset.
3256 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
3257 Remove functions.
3258 (_initialize_amd64fbsd_nat): Use amd64fbsd64_r_reg_offset instead
3259 of reg_offset.
3260 * Makefile.in (amd64fbsd-nat.o): Update dependencies.
3261
3262 * amd64-nat.c (amd64_supply_native_gregset): Fix comment.
3263
3264 * vax-tdep.c: Tweak comment.
3265
3266 Add OpenBSD/hppa support.
3267 * NEWS (New native configurations): Mention OpenBSD/hppa.
3268 * hppabsd-nat.c, hppabsd-tdep.c, config/pa/obsd.mh,
3269 config/pa/obsd.mt, config/pa/nm-obsd.h, config/pa/tm-bsd.h: New
3270 files.
3271 * Makefile.in (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
3272 (hppabsd-nat.o, hppabsd-tdep.c): New dependencies.
3273 * configure.host: Add hppa*-*-openbsd*.
3274 * configure.tgt: Add hppa*-*-openbsd*.
3275
3276 2004-06-25 Andrew Cagney <cagney@gnu.org>
3277
3278 * defs.h (deprecated_ui_loop_hook): Deprecated.
3279 * wince.c (child_wait): Update.
3280 * win32-nat.c (child_wait): Update.
3281 * v850ice.c (v850ice_wait): Update.
3282 * top.c (deprecated_ui_loop_hook): Update.
3283 * serial.h: Update.
3284 * ser-unix.c (do_hardwire_readchar, do_hardwire_readchar)
3285 (do_unix_readchar): Update.
3286 * ser-tcp.c (net_open): Update.
3287 * remote-sim.c (gdb_os_poll_quit): Update.
3288 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Update.
3289
3290 2004-06-24 Andrew Cagney <cagney@gnu.org>
3291
3292 * defs.h (deprecated_pre_add_symbol_hook)
3293 (deprecated_post_add_symbol_hook): Deprecated.
3294 * symfile.c (symbol_file_add_with_addrs_or_offsets)
3295 (symbol_file_add_with_addrs_or_offsets): Update references.
3296
3297 2004-06-24 Andrew Cagney <cagney@gnu.org>
3298
3299 * defs.h (post_add_symbol_hook, pre_add_symbol_hook)
3300 (ui_loop_hook, selected_frame_level_changed_hook): Declare.
3301 * wince.c (ui_loop_hook): Delete extern declaration.
3302 * win32-nat.c (ui_loop_hook): Delete extern declaration..
3303 * v850ice.c (ui_loop_hook): Delete extern declaration..
3304 * ser-unix.c (ui_loop_hook): Delete extern declaration..
3305 * ser-tcp.c (ui_loop_hook): Delete extern declaration..
3306 * remote-sim.c (ui_loop_hook): Delete extern declaration..
3307 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Delete extern.
3308 ui_loop_hook declaration.
3309
3310 2004-06-24 Andrew Cagney <cagney@gnu.org>
3311
3312 * objfiles.h (struct entry_info): Delete entry_func_lowpc and
3313 entry_func_highpc fields.
3314 * objfiles.c (init_entry_point_info): Do not clear
3315 entry_func_lowpc and entry_func_highpc.
3316 (objfile_relocate): Do not relocate entry_func_lowpc and
3317 entry_func_highpc.
3318 * dwarfread.c (read_func_scope): Do not set entry_func_lowpc and
3319 entry_func_highpc.
3320 * dwarf2read.c (read_func_scope): Do not set entry_func_lowpc and
3321 entry_func_highpc.
3322 * blockframe.c (legacy_frame_chain_valid): Replace tests against
3323 entry_func_lowpc and entry_func_highpc with call to
3324 inside_entry_func.
3325
3326 2004-06-24 Mark Kettenis <kettenis@gnu.org>
3327
3328 * sparc64-tdep.c (sparc64_store_arguments): Fix passing
3329 quad-precision floating point arguments in registers.
3330
3331 2004-06-24 Mark Kettenis <kettenis@gnu.org>
3332
3333 From Michael Mueller <m.mueller99@kay-mueller.de>:
3334 * sparc64-tdep.c (sparc64_frame_base_address): Take BIAS into
3335 account.
3336
3337 2004-06-22 Jeff Johnston <jjohnstn@redhat.com>
3338
3339 * infrun.c (handle_inferior_event): Initialize stopped_by_watchpoint
3340 to -1.
3341 * breakpoint.c (bpstat_stop_status): Move check for ignoring
3342 untriggered watchpoints to a separate if clause. Update function
3343 comment regarding STOPPED_BY_WATCHPOINT argument.
3344
3345 2004-06-22 Jim Blandy <jimb@redhat.com>
3346
3347 * gdbarch.sh: Doc fix.
3348
3349 2004-06-21 Martin Hunt <hunt@redhat.com>
3350 Kevin Buettner <kevinb@redhat.com>
3351
3352 * config/mips/tm-mips.h (SP_REGNUM): Delete define.
3353 * mips-tdep.h (MIPS_SP_REGNUM): Define.
3354 * mips-tdep.c (mips_gdbarch_init): Set SP_REGNUM via call
3355 to set_gdbarch_sp_regnum(). Use cooked register number.
3356 (SP_REGNUM): Replace all occurrences with MIPS_SP_REGNUM.
3357
3358 2004-06-21 Andrew Cagney <cagney@gnu.org>
3359
3360 * gdbarch.sh: When the macro field is empty, do not generate a
3361 macro definition. When the macro field is "=", generate the macro
3362 name from the upper-case function name.
3363 (NUM_REGS, NUM_PSEUDO_REGS, SP_REGNUM, PC_REGNUM, PS_REGNUM)
3364 (FP0_REGNUM, STAB_REG_TO_REGNUM, ECOFF_REG_TO_REGNUM)
3365 (DWARF_REG_TO_REGNUM, SDB_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM)
3366 (REGISTER_NAME, DEPRECATED_REGISTER_VIRTUAL_TYPE)
3367 (DEPRECATED_REGISTER_BYTES, DEPRECATED_REGISTER_BYTE)
3368 (DEPRECATED_REGISTER_RAW_SIZE, DEPRECATED_REGISTER_VIRTUAL_SIZE)
3369 (DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_FP_REGNUM)
3370 (DEPRECATED_TARGET_READ_FP, DEPRECATED_PUSH_ARGUMENTS)
3371 (DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP)
3372 (DEPRECATED_REGISTER_SIZE, CALL_DUMMY_LOCATION)
3373 (DEPRECATED_DO_REGISTERS_INFO, REGISTER_SIM_REGNO)
3374 (REGISTER_BYTES_OK, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER)
3375 (GET_LONGJMP_TARGET, DEPRECATED_INIT_FRAME_PC)
3376 (BELIEVE_PCC_PROMOTION, DEPRECATED_GET_SAVED_REGISTER)
3377 (CONVERT_REGISTER_P, REGISTER_TO_VALUE, VALUE_TO_REGISTER)
3378 (POINTER_TO_ADDRESS, ADDRESS_TO_POINTER, INTEGER_TO_ADDRESS)
3379 (DEPRECATED_POP_FRAME, DEPRECATED_STORE_STRUCT_RETURN)
3380 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE)
3381 (DEPRECATED_EXTRACT_RETURN_VALUE, DEPRECATED_STORE_RETURN_VALUE)
3382 (DEPRECATED_USE_STRUCT_CONVENTION)
3383 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
3384 (DEPRECATED_FRAME_INIT_SAVED_REGS)
3385 (DEPRECATED_INIT_EXTRA_FRAME_INFO, SKIP_PROLOGUE, INNER_THAN)
3386 (BREAKPOINT_FROM_PC, MEMORY_INSERT_BREAKPOINT)
3387 (MEMORY_REMOVE_BREAKPOINT, DECR_PC_AFTER_BREAK)
3388 (DEPRECATED_FUNCTION_START_OFFSET, FRAME_ARGS_SKIP)
3389 (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION, DEPRECATED_FRAME_CHAIN)
3390 (DEPRECATED_FRAME_CHAIN_VALID, DEPRECATED_FRAME_SAVED_PC)
3391 (DEPRECATED_FRAME_ARGS_ADDRESS, DEPRECATED_FRAME_LOCALS_ADDRESS)
3392 (DEPRECATED_SAVED_PC_AFTER_CALL, FRAME_NUM_ARGS)
3393 (DEPRECATED_STACK_ALIGN, DEPRECATED_REG_STRUCT_HAS_ADDR)
3394 (FRAME_RED_ZONE_SIZE, ADDR_BITS_REMOVE, SMASH_TEXT_ADDRESS)
3395 (SOFTWARE_SINGLE_STEP, SKIP_TRAMPOLINE_CODE)
3396 (IN_SOLIB_CALL_TRAMPOLINE, IN_SOLIB_RETURN_TRAMPOLINE)
3397 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL)
3398 (NAME_OF_MALLOC, CANNOT_STEP_BREAKPOINT)
3399 (HAVE_NONSTEPPABLE_WATCHPOINT, ADDRESS_CLASS_TYPE_FLAGS)
3400 (FETCH_POINTER_ARGUMENT): Replace the macro name with "=".
3401
3402 2004-06-21 Andrew Cagney <cagney@gnu.org>
3403
3404 * gdbarch.sh: For gdbarch_dump, print the "function" rather than
3405 macro name, and the function rather than macro value. Only wrap
3406 macro print statements in #ifdef. Move format logic to where it
3407 is needed.
3408 * gdbarch.c: Re-generate.
3409
3410 * gdbarch.sh (read): Delete "print_p" and "description", add
3411 "garbage_at_eol". Check for non-empty garbage at end-of-line.
3412 Delete references to print_p.
3413 (TARGET_ARCHITECTURE): Delete print predicate.
3414 * gdbarch.c: Re-generate.
3415
3416 * gdbarch.sh: Check that multi-arch methods do not provide a
3417 macro.
3418 (register_type, unwind_dummy_id, push_dummy_call, push_dummy_code)
3419 (print_registers_info, print_float_info, print_vector_info)
3420 (adjust_breakpoint_address, remote_translate_xfer_address)
3421 (construct_inferior_arguments, skip_solib_resolver, unwind_pc)
3422 (address_class_type_flags_to_name, unwind_sp): Remove the macro
3423 name from the multi-arch definition.
3424
3425 2004-06-20 Andrew Cagney <cagney@gnu.org>
3426
3427 * gdbarch.sh: Sort by the function, instead of macro name.
3428 * gdbarch.c: Re-generate.
3429
3430 2004-06-20 Andrew Cagney <cagney@gnu.org>
3431
3432 * gdbarch.sh: Use the function, instead of macro name in
3433 errors and the log file.
3434 (return_value): Remove stray ":" in spec.
3435
3436 * gdbarch.sh (RETURN_VALUE): Default to legacy_return_value.
3437 * gdbarch.h, gdbarch.c: Re-generate.
3438 * Makefile.in (arch-utils.o): Update dependencies.
3439 * values.c (using_struct_return): Move code calling
3440 USE_STRUCT_CONVENTION to legacy_return_value, simplify.
3441 * stack.c (return_command): Move code calling STORE_RETURN_VALUE
3442 to legacy_return_value, simplify.
3443 * infcmd.c (print_return_value): Move code calling
3444 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS and EXTRACT_RETURN_VALUE
3445 to legacy_return_value, simplify.
3446 * infcall.c (call_function_by_hand): Move code calling
3447 EXTRACT_RETURN_VALUE to legacy_return_value, simplify.
3448 * arch-utils.c: Update copyright. Include "gdbcore.h".
3449 (legacy_return_value): New function.
3450 * arch-utils.h: Update copyright.
3451 (legacy_return_value): Declare.
3452
3453 2004-06-20 Andrew Cagney <cagney@gnu.org>
3454
3455 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Deprecated.
3456 * gdbarch.h, gdbarch.c: Re-generate.
3457 * values.c (using_struct_return): Update call.
3458 * mcore-tdep.c: Update comment.
3459 * infcall.c (call_function_by_hand): Update comment.
3460 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3461 * arch-utils.h (always_use_struct_convention): Update.
3462 * v850-tdep.c (v850_gdbarch_init): Update.
3463 * sh64-tdep.c (sh64_gdbarch_init): Update.
3464 * sh-tdep.c (sh_gdbarch_init): Update.
3465 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3466 * mips-tdep.c (mips_gdbarch_init): Update.
3467 * mcore-tdep.c (mcore_gdbarch_init): Update.
3468 * m32r-tdep.c (m32r_gdbarch_init): Update.
3469 * ia64-tdep.c (ia64_gdbarch_init): Update.
3470 * h8300-tdep.c (h8300_gdbarch_init): Update.
3471 * frv-tdep.c (frv_gdbarch_init): Update.
3472 * cris-tdep.c (cris_gdbarch_init): Update.
3473 * arm-tdep.c (arm_gdbarch_init): Update.
3474 * alpha-tdep.c (alpha_gdbarch_init): Update.
3475
3476 2004-06-18 Michael Chastain <mec.gnu@mindspring.com>
3477
3478 * PROBLEMS: Add more specific information, and a work-around,
3479 for PR gdb/1458.
3480
3481 2004-06-18 Andrew Cagney <cagney@gnu.org>
3482
3483 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Deprecated.
3484 * gdbarch.h, gdbarch.c: Re-generate.
3485 * ada-lang.c (ada_finish_decode_line_1): Update.
3486 * infrun.c (handle_inferior_event): Update.
3487 * infcall.c (find_function_addr): Update.
3488 * linespec.c (minsym_found): Update.
3489 * symtab.c (find_function_start_sal, skip_prologue_using_sal):
3490 Update.
3491 * blockframe.c (legacy_frameless_look_for_prologue): Update.
3492 * cli/cli-cmds.c (disassemble_command): Update.
3493 * vax-tdep.c (vax_gdbarch_init): Update.
3494
3495 2004-06-18 Mark Kettenis <kettenis@gnu.org>
3496
3497 * i386-tdep.c (i386_collect_fpregset): Fix comment.
3498
3499 2004-06-17 Andrew Cagney <cagney@gnu.org>
3500
3501 GDB 6.1.1 released from the GDB 6.1 branch.
3502 * NEWS: Merge in 6.1.1 NEWS from 6.1 branch.
3503 * PROBLEMS: Ditto.
3504
3505 2004-06-16 Daniel Jacobowitz <dan@debian.org>
3506
3507 PR gdb/1658
3508 * dwarf2read.c (dwarf_decode_lines): Read the length of the extended
3509 operation as a uleb128. Found by Michael Coulter.
3510
3511 2004-06-16 Paul N. Hilfinger <Hilfinger@gnat.com>
3512
3513 * ada-tasks.c: Rename build_task_list to ada_build_task_list, and
3514 make it non-static.
3515 * ada-lang.h (task_control_block): declaration moved from ada-task.c
3516 to ada-lang.h; this is needed to be able to implement the kill command
3517 in multi-task mode.
3518 (task_ptid): Ditto.
3519 (task_entry): Ditto.
3520 (task_list): Ditto.
3521 (ada_build_task_list): Ditto.
3522
3523 * ada-lang.c: Conditionalize routines and data structures related
3524 to breakpoints, exceptions, completion, and symbol caching on
3525 GNAT_GDB, since these are not yet used in the submitted public sources.
3526 (ada_main_name): Editorial: Move definition out of exception-related
3527 code.
3528
3529 2004-06-15 Andrew Cagney <cagney@gnu.org>
3530
3531 * mips-tdep.c (non_heuristic_proc_desc): Delete call to
3532 deprecated_pc_in_call_dummy.
3533
3534 2004-06-15 Alan Modra <amodra@bigpond.net.au>
3535
3536 * dsrec.c (load_srec, make_srec): Use bfd_get_section_size instead of
3537 bfd_get_section_size_before_reloc or _raw_size.
3538 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
3539 * dwarf2read.c (dwarf2_locate_sections): Likewise.
3540 (dwarf2_read_section): Likewise.
3541 * elfread.c (elf_locate_sections): Likewise.
3542 * gcore.c (derive_heap_segment): Likewise.
3543 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
3544 * remote-e7000.c (e7000_load): Likewise.
3545 * remote-m32r-sdi.c (m32r_load): Likewise.
3546 * remote-mips.c (mips_load_srec): Likewise.
3547 (pmon_load_fast): Likewise.
3548 * remote.c (compare_sections_command): Likewise.
3549 * symfile.c (add_section_size_callback): Likewise.
3550 (load_section_callback): Likewise.
3551 (pc_in_unmapped_range): Likewise.
3552 (pc_in_mapped_range): Likewise.
3553 (sections_overlap): Likewise.
3554 (list_overlays_command): Likewise.
3555 (simple_overlay_update_1): Likewise.
3556 (simple_overlay_update): Likewise.
3557 * tracepoint.c (remote_set_transparent_ranges): Likewise.
3558 * win32-nat.c (core_section_load_dll_symbols): Likewise.
3559
3560 2004-06-14 Randolph Chung <tausq@debian.org>
3561
3562 * Makefile.in (hppa-hpux-tdep.o): Update dependency.
3563 * hppa-hpux-tdep.c (hp_cxx_exception_support_initialized): Make
3564 static.
3565 (hppa_hpux_inferior_created): New function.
3566 (hppa_hpux_init_abi): Register observer.
3567 * symfile.c (hp_cxx_exception_support_initialized)
3568 (RESET_HP_UX_GLOBALS): Remove HPUXHPPA specific hacks.
3569 (symbol_file_add_main_1, symbol_file_clear): Likewise.
3570
3571 2004-06-14 Randolph Chung <tausq@debian.org>
3572
3573 * MAINTAINERS (Write After Approval): Alphabetize my entry
3574 correctly.
3575
3576 2004-06-14 Andrew Cagney <cagney@gnu.org>
3577
3578 * MAINTAINERS (testsuite): List Michael Chastain as the lead
3579 testsuite maintainer.
3580
3581 2004-06-13 Andrew Cagney <cagney@gnu.org>
3582
3583 * infcmd.c (print_return_value): Fix logic, allow
3584 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS when struct_return.
3585
3586 * gdbarch.sh: For predicates, do not check GDB_MULTI_ARCH when
3587 defining any macros.
3588 * gdbarch.h: Re-generate.
3589
3590 * gdbarch.sh: Delete "level" attribute. Only check for a macro
3591 redefinition when multi-arch greater than GDB_MULTI_ARCH_PARTIAL.
3592 * gdbarch.h: Re-generate.
3593
3594 * values.c (generic_use_struct_convention): Don't check gcc_p.
3595
3596 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE)
3597 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Delete.
3598 * gdbarch.h, gdbarch.c: Regenerate.
3599 * ns32k-tdep.h (NS32K_MAX_REGISTER_RAW_SIZE)
3600 (NS32K_MAX_REGISTER_VIRTUAL_SIZE): Delete macros.
3601 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
3602 deprecated_max_register_raw_size and
3603 deprecated_max_register_virtual_size.
3604 * v850-tdep.c (v850_gdbarch_init): Ditto.
3605 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
3606 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3607 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
3608 * cris-tdep.c (cris_gdbarch_init): Ditto.
3609
3610 * gdbarch.sh (RETURN_VALUE_ON_STACK): Delete method.
3611 * gdbarch.h, gdbarch.c: Re-generate.
3612 * m68hc11-tdep.c (m68hc11_return_value_on_stack): Delete function.
3613 (m68hc11_use_struct_convention): Delete function.
3614 (m68hc11_extract_struct_value_address): Delete function.
3615 (m68hc11_return_value): New function.
3616 (m68hc11_gdbarch_init): Instead of store_return_value,
3617 extract_return_value, return_value_on_stack,
3618 deprecated_extract_struct_value_address and use_struct_convention,
3619 set return_value.
3620 * values.c (using_struct_return): Do not call
3621 RETURN_VALUE_ON_STACK.
3622 * arch-utils.h (generic_return_value_on_stack_not): Delete
3623 declaration.
3624 * arch-utils.c (generic_return_value_on_stack_not): Delete
3625 function.
3626
3627 2004-06-12 Andrew Cagney <cagney@gnu.org>
3628
3629 * values.c (register_value_being_returned): Delete function.
3630 * infcmd.c (legacy_return_value): Delete function.
3631 * infcall.c (call_function_by_hand): Inline
3632 "register_value_being_returned", simplify.
3633 * values.c (using_struct_return): Update comment, refer to
3634 print_return_value instead of register_value_being_returned.
3635 * infcmd.c (print_return_value): Inline calls to
3636 register_value_being_returned and legacy_return_value. Simplify.
3637
3638 2004-06-11 Randolph Chung <tausq@debian.org>
3639
3640 * somread.c (som_symtab_read): Exclude gcc local symbols.
3641
3642 2004-06-11 Randolph Chung <tausq@debian.org>
3643
3644 * infrun.c (handle_inferior_event): Handle the case when a
3645 trampoline ends up in the runtime resolver, and if the trampoline
3646 has no name. Rearrange the code so that all the trampoline
3647 processing happens before other step-out-of-range handling.
3648
3649 2004-06-11 Martin Hunt <hunt@redhat.com>
3650
3651 * mips-tdep.c (mips_gdbarch_init): Recognize vr4120
3652 has no fpu.
3653
3654 2004-06-10 Andrew Cagney <cagney@gnu.org>
3655
3656 * blockframe.c (legacy_inside_entry_func): Delete.
3657 (legacy_frame_chain_valid): Inline call to
3658 legacy_inside_entry_func, simplify.
3659
3660 2004-06-10 Bob Rossi <bob@brasko.net>
3661
3662 * dbxread.c (read_dbx_symtab): Set pst->dirname when known.
3663 * dwarf2read.c (partial_die_info): Add dirname field.
3664 (dwarf2_build_psymtabs_hard): Set pst->dirname when known.
3665 (read_partial_die): Save away DW_AT_comp_dir.
3666 * defs.h (symtab_to_filename): Removed.
3667 * source.c (find_and_open_source): Added.
3668 (open_source_file): Just calls find_and_open_source.
3669 (symtab_to_filename): Removed.
3670 (symtab_to_fullname, psymtab_to_fullname): Added.
3671 * source.h (psymtab_to_fullname,symtab_to_fullname): Added.
3672 * symtab.c (lookup_symtab): Call symtab_to_fullname instead of
3673 symtab_to_filename.
3674 * symtab.h (partial_symtab): Add dirname field.
3675 * mi/mi-cmd-file.c (FILENAME,FULLNAME): Added.
3676 (mi_cmd_file_list_exec_source_file): Call new function
3677 symtab_to_fullname to find fullname.
3678 (mi_cmd_file_list_exec_source_files): Added.
3679 * mi/mi-cmds.c (mi_cmd_mi_cmds): Add -file-list-exec-source-files.
3680 * mi/mi-cmds.h (mi_cmd_file_list_exec_source_files): Added.
3681
3682 2004-06-10 Andrew Cagney <cagney@gnu.org>
3683
3684 * avr-tdep.c (avr_gdbarch_init): Do not set use_struct_convention
3685 to generic_use_struct_convention, the default value.
3686
3687 * mn10300-tdep.c (mn10300_type_align): Call internal_error instead
3688 of abort.
3689
3690 * ns32k-tdep.c (ns32k_push_arguments): New function.
3691 (ns32k_gdbarch_init): Set deprecated_push_arguments.
3692 * infcall.c (call_function_by_hand): Call error instead of
3693 legacy_push_arguments.
3694 * value.h (legacy_push_arguments): Delete declaration.
3695 * valops.c (legacy_push_arguments): Delete function.
3696 (value_push): Delete function.
3697
3698 2004-06-10 Brian Ford <ford@vss.fsi.com>
3699
3700 * coffread.c (coff_symfile_read): Prevent mixed debugging formats
3701 from corrupting/reinitializing the psymtab. Support DWARF 2 frame
3702 info.
3703 * dbxread.c (elfstab_build_psymtabs): Remove bogus comment.
3704
3705 2004-06-10 Andrew Cagney <cagney@gnu.org>
3706
3707 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Delete.
3708 * gdbarch.h, gdbarch.c: Re-generate.
3709 * frame.h (deprecated_pc_in_call_dummy): Delete "sp" and "fp"
3710 parameters.
3711 * dummy-frame.c (deprecated_pc_in_call_dummy): Update.
3712 * arm-tdep.c (arm_pc_is_thumb_dummy): Call
3713 deprecated_pc_in_call_dummy instead of
3714 DEPRECATED_PC_IN_CALL_DUMMY.
3715 (arm_skip_prologue): Ditto.
3716 * xstormy16-tdep.c (xstormy16_pop_frame, xstormy16_scan_prologue)
3717 (xstormy16_frame_saved_pc, xstormy16_frame_chain): Ditto.
3718 * v850-tdep.c (v850_find_callers_reg, v850_frame_chain)
3719 (v850_pop_frame, v850_frame_saved_pc, v850_frame_init_saved_regs):
3720 Ditto.
3721 * sh64-tdep.c (sh64_frame_chain, sh64_get_saved_pr)
3722 (sh64_init_extra_frame_info, sh64_get_saved_register)
3723 (sh64_pop_frame): Ditto.
3724 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
3725 * mcore-tdep.c (mcore_find_callers_reg, mcore_frame_saved_pc)
3726 (mcore_pop_frame, mcore_init_extra_frame_info): Ditto.
3727 * h8300-tdep.c (h8300_frame_chain, h8300_frame_saved_pc)
3728 (h8300_pop_frame): Ditto.
3729 * blockframe.c (legacy_inside_entry_func)
3730 (legacy_frame_chain_valid): Ditto.
3731 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update call
3732 to deprecated_pc_in_call_dummy.
3733
3734 2004-06-09 Andrew Cagney <cagney@gnu.org>
3735
3736 * gdbarch.sh (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Do not
3737 provide a default value.
3738 (CONVERT_REGISTER_P): Default to generic_convert_register_p.
3739 * gdbarch.h, gdbarch.c: Re-generate.
3740 * arch-utils.c (generic_convert_register_p): Rename
3741 legacy_convert_register_p
3742 (legacy_register_to_value, legacy_value_to_register): Delete
3743 functions.
3744 * arch-utils.h (generic_convert_register_p): Rename
3745 legacy_convert_register_p.
3746 (legacy_register_to_value, legacy_value_to_register): Delete
3747 declarations.
3748
3749 * gdbarch.sh (DEPRECATED_REGISTER_CONVERT_TO_RAW)
3750 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL)
3751 (DEPRECATED_REGISTER_CONVERTIBLE): Delete.
3752 * gdbarch.h, gdbarch.c: Re-generate.
3753 * infcmd.c (default_print_registers_info): Simplify.
3754 * findvar.c (value_of_register): Simplify.
3755 * mi/mi-main.c (get_register): Simplify.
3756 * arch-utils.c (legacy_convert_register_p): Always return 0.
3757 (legacy_register_to_value, legacy_value_to_register): Always call
3758 internal_error.
3759
3760 * infptrace.c (child_xfer_memory) [CLEAR_INSN_CACHE]: Delete
3761 #ifdef CLEAR_INSN_CACHE code.
3762 * target.c (generic_mourn_inferior) [CLEAR_DEFERRED_STORES]:
3763 Delete #ifdef CLEAR_DEFERRED_STORES code.
3764
3765 * solib-svr4.c [HANDLE_SVR4_EXEC_EMULATORS]: Delete #ifdef code.
3766
3767 * config/ia64/tm-linux.h (TARGET_ELF64): Delete macro, Update
3768 copyright.
3769 * config/ia64/tm-aix.h (TARGET_ELF64): Ditto.
3770
3771 * config/mips/mipsv4.mh: Delete file.
3772
3773 * config/pa/tm-hppa64.h (HPREAD_ADJUST_STACK_ADDRESS): Delete
3774 unreferenced macro.
3775 (hpread_adjust_stack_address): Delete declaration.
3776
3777 2004-06-08 Andrew Cagney <cagney@gnu.org>
3778
3779 * infptrace.c [ATTACH_DETACH]: Remove #ifdef wrappers.
3780 (attach, detach): When neither PT_ATTACH / PT_DETACH nor
3781 PTRACE_ATTACH / PTRACE_DETACH available call error.
3782 (PT_ATTACH, PT_DETACH): Move definition to attach / detach.
3783 * infttrace.c (update_thread_state_after_attach, attach, detach):
3784 Remove #ifdef wrappers.
3785 * inftarg.c (child_attach, child_detach): Remove #ifdef wrappers.
3786 * gnu-nat.c [ATTACH_DETACH]: Remove #ifdef wrappers.
3787 * config/nm-bsd.h (ATTACH_DETACH): Delete.
3788 * config/nm-sysv4.h (ATTACH_DETACH): Delete.
3789 * config/nm-nbsd.h (ATTACH_DETACH): Delete.
3790 * config/nm-linux.h (ATTACH_DETACH): Delete.
3791 * config/rs6000/nm-rs6000.h (ATTACH_DETACH): Delete.
3792 * config/pa/nm-hppah.h (ATTACH_DETACH): Delete.
3793 * config/i386/nm-i386sco5.h (ATTACH_DETACH): Delete.
3794 * config/i386/nm-i386sco4.h (ATTACH_DETACH): Delete.
3795 * config/i386/nm-i386gnu.h (ATTACH_DETACH): Delete.
3796
3797 2004-06-08 Corinna Vinschen <vinschen@redhat.com>
3798
3799 * configure.in: Set $configdir to the right OS specific value.
3800 Use value when setting $tcldir and $tkdir.
3801 * configure: Regenerate.
3802
3803 2004-06-06 Paul Brook <paul@codesourcery.com>
3804
3805 * gdb/dwarf2-frame.c (decode_frame_entry_1): Decode version 3 CIE
3806 records.
3807
3808 2004-06-08 Paul N. Hilfinger <Hilfinger@gnat.com>
3809
3810 * ada-lang.c (lookup_symbol_in_language): New function to allow
3811 re-use of another language's symbol lookup code. (Placed here
3812 temporarily while Ada support is being integrated into the public
3813 tree).
3814 (restore_language): New auxiliary function for
3815 lookup_symbol_in_language.
3816 * ada-lang.h (lookup_symbol_in_language): Declare (Placed here
3817 temporarily while Ada support is being integrated into the public
3818 tree).
3819
3820 2004-06-08 Alexandre Oliva <aoliva@redhat.com>
3821
3822 * Makefile.in (check//%): New.
3823
3824 * mn10300-tdep.c (mn10300_extract_return_value): Rewrite.
3825 (mn10300_store_return_value): Rewrite.
3826 (mn10300_type_align): New.
3827 (mn10300_use_struct_convention): Rewrite.
3828 (mn10300_return_value): New, using all of the above.
3829 (mn10300_pop_frame_regular): Add saved_regs_size.
3830 (mn10300_gdbarch_init): Remove deprecated rewritten entry points.
3831
3832 * mn10300-tdep.c (mn10300_analyze_prologue): Don't compute saved
3833 regs if PC is on movm.
3834
3835 2004-06-07 Jim Blandy <jimb@redhat.com>
3836
3837 Add native Linux support for the PowerPC E500.
3838 * ppc-tdep.h (struct gdbarch_tdep): New member: 'ppc_gprs_pseudo_p'.
3839 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it to false on
3840 all architectures except the E500.
3841 * ppc-linux-nat.c: (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): New
3842 #definitions.
3843 (struct gdb_evrregset_t): New type.
3844 (have_ptrace_getsetevrregs): New variable.
3845 (get_spe_registers, read_spliced_spe_reg, fetch_spe_register,
3846 fetch_spe_registers): New functions.
3847 (fetch_register): Call fetch_spe_register as appropriate.
3848 Assert that we're only passed raw register numbers.
3849 (fetch_ppc_registers): Call fetch_spe_registers as appropriate.
3850 Don't fetch gprs if they're pseudoregisters.
3851 (set_spe_registers, write_spliced_spe_reg, store_spe_register,
3852 store_spe_registers): New functions.
3853 (store_register): Call store_spe_register as appropriate.
3854 Assert that we're only passed raw register numbers.
3855 (store_ppc_registers): Call store_spe_registers as appropriate.
3856 Don't store gprs if they're pseudoregisters.
3857
3858 2004-06-07 Jeff Johnston <jjohnstn@redhat.com>
3859
3860 * thread-db.c (thread_get_info_callback): Fill in the thread_info
3861 struct if one exists, even if we are dealing with a zombie thread.
3862
3863 2004-06-07 Andrew Cagney <cagney@gnu.org>
3864
3865 * target.h (PC_REQUIRES_RUN_BEFORE_USE): Delete definition.
3866 * config/pa/tm-hppa.h (DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE):
3867 Rename PC_REQUIRES_RUN_BEFORE_USE.
3868 * breakpoint.c (breakpoint_sals_to_pc): Update. Wrap reference in
3869 #ifdef.
3870
3871 2004-06-07 Randolph Chung <tausq@debian.org>
3872
3873 * hppa-tdep.c (hppa_frame_cache): Handle the cases when we start
3874 unwinding after sp has been saved to the stack but before the end
3875 of the prologue, and after the fp has been modified but before it has
3876 been saved to the stack.
3877 (hppa_frame_base_address, hppa_frame_base, hppa_frame_base_sniffer):
3878 Remove superfluous definitions.
3879 (hppa_gdbarch_init): Remove superfluous frame base sniffer.
3880
3881 2004-06-07 Guy Martin <gmsoft@gentoo.org>
3882
3883 Committed by Randolph Chung.
3884 * hppa-linux-nat.c: Include the correct version of the header file
3885 depending on the kernel version.
3886
3887 2004-06-06 Randolph Chung <tausq@debian.org>
3888
3889 * infrun.c (trap_expected_after_continue): Remove HP_OS_BUG workaround.
3890 (proceed, init_wait_for_inferior, handle_inferior_event): Likewise.
3891
3892 2004-06-06 Randolph Chung <tausq@debian.org>
3893
3894 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
3895 (hppa_hpux_skip_trampoline_code): Don't cache symbol values.
3896 * hppa-linux-tdep.c (hppa_linux_in_dyncall): Likewise.
3897 * hppa-tdep.c (hppa_symbol_address): New function definition.
3898 * hppa-tdep.h (hppa_symbol_address): New function declaration.
3899
3900 2004-06-06 Randolph Chung <tausq@debian.org>
3901
3902 * hppa-tdep.h (struct value): Forward declaration.
3903 (gdbarch_tdep): Define tdep find_global_pointer method.
3904 * hppa-tdep.c (hppa32_push_dummy_call): Find the global pointer
3905 associated with the function we are trying to call, and write it
3906 to the gp register.
3907 (hppa32_convert_from_funct_ptr_addr): New function.
3908 (hppa_find_global_pointer): New function.
3909 (hppa_gdbarch_init): Set default find_global_pointer method; set
3910 convert_from_func_ptr_addr method.
3911 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): New function.
3912 (hppa_linux_init_abi): Set find_global_pointer method.
3913 * Makefile.in (hppa-linux-tdep.o): Add value.h dependency.
3914
3915 2004-06-06 Randolph Chung <tausq@debian.org>
3916
3917 * gdbarch.sh (PUSH_DUMMY_CALL): Change CORE_ADDR func_addr argument
3918 to struct value *function.
3919 * gdbarch.c: Regenerate.
3920 * gdbarch.h: Likewise.
3921 * infcall.c (call_function_by_hand): Pass entire function value
3922 to push_dummy_call.
3923
3924 * Makefile.in (alpha-tdep.o, frv-tdep.o, ia64-tdep.o, mips-tdep.o)
3925 (ppc-sysv-tdep.o, rs6000-tdep.o): Update dependencies.
3926 * alpha-tdep.c (alpha_push_dummy_call): Update call signature.
3927 * amd64-tdep.c (amd64_push_dummy_call): Likewise.
3928 * arm-tdep.c (arm_push_dummy_call): Likewise.
3929 * avr-tdep.c (avr_push_dummy_call): Likewise.
3930 * cris-tdep.c (cris_push_dummy_call): Likewise.
3931 * d10v-tdep.c (d10v_push_dummy_call): Likewise.
3932 * frv-tdep.c (frv_push_dummy_call): Likewise.
3933 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
3934 * hppa-tdep.c (hppa32_push_dummy_call)
3935 (hppa64_push_dummy_call): Likewise.
3936 * i386-tdep.c (i386_push_dummy_call): Likewise.
3937 * ia64-tdep.c (ia64_push_dummy_call): Likewise.
3938 * m32r-tdep.c (m32r_push_dummy_call): Likewise.
3939 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
3940 * m68k-tdep.c (m68k_push_dummy_call): Likewise.
3941 * m88k-tdep.c (m88k_push_dummy_call): Likewise.
3942 * mips-tdep.c (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
3943 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Likewise.
3944 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
3945 (ppc64_sysv_abi_push_dummy_call): Likewise.
3946 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call)
3947 (ppc64_sysv_abi_push_dummy_call): Likewise.
3948 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
3949 * s390-tdep.c (s390_push_dummy_call): Likewise.
3950 * sh-tdep.c (sh_push_dummy_call_fpu)
3951 (sh_push_dummy_call_nofpu): Likewise.
3952 * sparc-tdep.c (sparc32_push_dummy_call): Likewise.
3953 * sparc64-tdep.c (sparc64_push_dummy_call): Likewise.
3954 * vax-tdep.c (vax_push_dummy_call): Likewise.
3955
3956 2004-06-04 Jim Blandy <jimb@redhat.com>
3957
3958 * ppc-linux-nat.c (fetch_register): Don't forget to pass the
3959 gdbarch argument to register_size.
3960
3961 * rs6000-tdep.c (rs6000_store_return_value): Use
3962 regcache_cooked_write_part instead of
3963 deprecated_write_register_bytes.
3964 (rs6000_gdbarch_init): Register it for gdbarch_store_return_value,
3965 not gdbarch_deprecated_store_return_value.
3966
3967 * ppc-linux-nat.c (store_register, fetch_register): Remove
3968 incorrect assertions. Simplify and generalize handling of
3969 transfers whose sizes are not multiples of, or less than, sizeof
3970 (PTRACE_XFER_TYPE).
3971
3972 2004-06-04 Jeff Johnston <jjohnstn@redhat.com>
3973
3974 * infrun.c (handle_inferior_event): Don't treat an invalid ptid
3975 as a new thread event.
3976 * thread-db.c (thread_get_info_callback): If the thread is a
3977 zombie, return TD_THR_ZOMBIE.
3978 (thread_from_lwp): If thread_get_info_callback returns
3979 TD_THR_ZOMBIE, check if the thread is still on the thread list
3980 and return a -1 ptid if not found.
3981 (thread_db_wait): If thread_from_lwp returns a -1 ptid, then
3982 change the status to TARGET_WAITKIND_SPURIOUS.
3983
3984 2004-06-03 Corinna Vinschen <vinschen@redhat.com>
3985
3986 * sh-tdep.c (sh3e_sh4_store_return_value): Correctly store
3987 double values in little endian mode.
3988
3989 2004-06-02 Albert Chin-A-Young <china@thewrittenword.com>
3990
3991 Committed by Andrew Cagney.
3992 * gdb/dictionary.c, gdb/gdbtypes.h: Remove trailing comma
3993 after last enum constant to avoid error from IBM C
3994 compiler.
3995
3996 2004-06-02 Jim Blandy <jimb@redhat.com>
3997
3998 * ppc-linux-nat.c (store_register, fetch_register): Rename 'mess'
3999 to 'message', and make it local to the lone block that uses it.
4000
4001 * ppc-linux-nat.c (store_register): Remove unused local 'offset'.
4002
4003 2004-06-02 Paul N. Hilfinger <hilfinger@gnat.com>
4004
4005 * ada-exp.y: Update copyright notice.
4006 Include block.h.
4007
4008 Replace REGNAME, LAST, INTERNAL_VARIABLE with
4009 SPECIAL_VARIABLE and unify the treatment of these cases.
4010
4011 (write_attribute_call0): Remove.
4012 (write_attribute_call1): Remove.
4013 (write_attribute_calln): Remove.
4014 (save_qualifier): Add missing semicolon.
4015
4016 (simple_exp,exp): Decomment (i.e., reactivate) code that was
4017 temporarily disabled to allow compilation with FSF head version.
4018
4019 (simple_exp syntax): Remove use of OP_ADA_ATTRIBUTE and
4020 use individual operators (OP_*) for all attributes.
4021 (exp syntax): Use write_int.
4022 Handle STRING literals with OP_STRING.
4023 (variable syntax): Add limit parameter to calls to
4024 write_object_renaming.
4025
4026 (temp_parse_space): New definition to hold entities that need
4027 only live until the next call to ada_parse.
4028 (string_to_operator): Rename fields of ada_opname_table entries.
4029
4030 (write_var_from_sym): Record block.
4031 (write_var_from_name): Minor reformatting.
4032 Make sure saved name is properly encoded in the case of multiple
4033 matches, and set its language to Ada.
4034 Update comment.
4035 Modify to indicate unresolved name as symbol in the UNRESOLVED
4036 namespace, allocated in temp_parse_space.
4037 (write_int): New function.
4038
4039 (write_object_renaming): Add max_depth parameter to limit
4040 chains of object renamings.
4041 Handle case where root of renaming expression is itself a renaming.
4042 Use temp_parse_space for temporary name buffer.
4043 Handle renamings to dereferenced pointers (___XEXA suffices).
4044
4045 (ada_parse, yyerror, string_to_operator,
4046 write_var_from_sym, write_var_from_name, write_attribute_call0,
4047 write_attribute_call1, write_attribute_calln,
4048 write_object_renaming): Protoize.
4049
4050 (_initialize_ada_exp): New function.
4051
4052 * ada-lang.c: Update copyright notice.
4053 General terminology change to conform to GNAT compiler usage:
4054 mangle => encode, demangle => decode
4055 Include gdb_obstack.h.
4056 Include gdb_regex.h
4057 Include frame.h
4058 Include hashtab.h
4059 Include completer.h
4060 Include gdb_stat.h
4061 Include block.h
4062 Include infcall.h
4063
4064 (ADA_RETAIN_DOTS): Make sure this is defined.
4065 (TRUNCATION_TOWARDS_ZERO): Define.
4066 (struct string_vector): Define.
4067 (unresolved_names): Remove definition.
4068 (xnew_string_vector): New function.
4069 (string_vector_append): New function.
4070 (extract_string): Make static.
4071 (ada_unqualified_name): New function.
4072 (add_angle_brackets): New function.
4073 (function_name_from_pc): New function.
4074 (place_on_stack): Rename to ensure_lval.
4075
4076 (ensure_lval): Renamed from place_on_stack.
4077 Make identity on lvals.
4078 Update comment.
4079 (is_nonfunction): New interface.
4080 Only symbols in LOC_CONST class can be enumerals.
4081 (fill_in_ada_prototype): Remove; now independent of language.
4082 (add_defn_to_vec): Add obstack and symtab arguments.
4083 Use obstack to hold collected definitions.
4084 (num_defns_collected): New function.
4085 (defns_collected): New function.
4086 (ada_resolve_subexp): Rename to resolve_subexp.
4087 (resolve_subexp): Renamed from ada_resolve_subexp.
4088 (ada_op_name): Return non-const result.
4089 (ada_decoded_op_name): Renamed from ada_op_name, now used for
4090 other purposes.
4091
4092 (to_fixed_array_type): Add declaration.
4093 (coerce_unspec_val_to_type): Remove offset parameter.
4094 (find_sal_from_funcs_and_line): New interface.
4095 (find_line_in_linetable): Ditto.
4096
4097 (all_sals_for_line): Rename to ada_sals_for_line and make
4098 global.
4099 Add new parameter. When set, do not ask the user to choose the
4100 instance, but use the first one found instead.
4101 Use given line number in returned sals.
4102 Fix comment.
4103 Skip the prologue if funfirstline is set.
4104 Correct for memory leak when 0 lines found.
4105
4106 (value_pos_atr): Use pos_atr.
4107 (pos_atr): New function.
4108 (standard_lookup): Add block parameter.
4109
4110 (makeTimeStart): Remove declaration and uses.
4111 (makeTimeStop): Remove declaration and uses.
4112
4113 (ada_completer_word_break_characters): Allow for VMS.
4114 (ADA_MAIN_PROGRAM_SYMBOL_NAME): Make into constant.
4115 (raise_sym_name): New constant.
4116 (raise_unhandled_sym_name): New constant.
4117 (raise_assert_sym_name): New constant.
4118 (process_raise_exception_name): New constant.
4119 (longest_exception_template): New constant.
4120 (warning_limit): New variable to limit warnings during expression
4121 evaluation.
4122 (warnings_issued): New variable to keep track of warnings issued.
4123 (known_runtime_file_name_patterns): New constant.
4124 (known_auxiliary_function_name_patterns): New constant.
4125 (symbol_list_obstack): New variable.
4126
4127 (field_name_match,is_suffix,is_suppressed_name,ada_encode,
4128 ada_decode,ada_match_name,encoded_ordered_before,equiv_types,
4129 lesseq_defined_than,is_nondebugging_type,is_name_suffix,wild_match,
4130 find_sal_from_funcs_and_line, ada_breakpoint_rewrite,
4131 ada_is_tagged_type, ada_is_parent_field, ada_is_wrapper_field,
4132 ada_variant_discrim_name, field_alignment, dynamic_template_type,
4133 ada_is_character_type, ada_is_aligner_type, ada_is_vax_floating_type):
4134 Replace use of deprecated STREQ and STREQN macros by calls to strncmp
4135 and strcmp.
4136
4137 (ada_get_field_index): New function.
4138 (lim_warning): New function.
4139 (ada_translate_error_message): New function.
4140 (MAX_OF_SIZE): New function.
4141 (MIN_OF_SIZE): New function.
4142 (UMAX_OF_SIZE): New function.
4143 (UMIN_OF_SIZE): New function.
4144 (discrete_type_high_bound): New function.
4145 (discrete_type_low_bound): New function.
4146 (base_type): New function.
4147 (do_command): Remove.
4148
4149 (ada_update_initial_language): Use language_ada, not language_unknown.
4150 (ada_encode): Renamed from ada_mangle.
4151 Obey ADA_RETAIN_DOTS.
4152 (ada_decode): Renamed from ada_demangle.
4153 Update coding conventions.
4154 (decoded_names_store): New hash table.
4155 (ada_decode_symbol): New function.
4156 (ada_la_decode): New function.
4157
4158 (modify_general_field): Correct computations of offset and bit
4159 position.
4160 (desc_base_type): Handle ref types, too.
4161 (ada_is_direct_array_type): New function.
4162
4163 (ada_is_simple_array): Rename to ada_is_simple_array_type.
4164 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
4165 (ada_is_bogus_array_descriptor,ada_type_of_array,
4166 ada_coerce_to_simple_array_ptr,ada_coerce_to_simple_array,
4167 ada_type_match,convert_actual,ada_evaluate_subexp): Use renamed
4168 ada_is_array_descriptor_type.
4169
4170 (ada_coerce_to_simple_array_type): Fix incorrect value freeing.
4171 (ada_is_packed_array_type): Handle pointers or
4172 references to packed arrays as well.
4173 (packed_array_type): Uncomment use of TYPE_FLAG_FIXED_INSTANCE.
4174 (decode_packed_array_type): Search for the packed array type
4175 symbol in the currently selected block and associated
4176 superblocks too.
4177 Use lookup_symbol again.
4178
4179 (decode_packed_array): Handle pointers and references.
4180 Update call to coerce_unspec_val_to_type.
4181 (decode_packed_array_type,value_subscript_packed): Limit warnings.
4182 (ada_value_primitive_packed_val): Improve comment.
4183
4184 (ada_index_type): Substitute int type for "undefined".
4185 (ada_index_type,ada_array_bound_from_type,ada_array_bound,
4186 ada_array_langth, ada_is_string_type): Use renamed
4187 ada_is_simple_array_type.
4188 (empty_array): New function.
4189
4190 (ada_resolve): Rename to resolve.
4191 (resolve): Make static.
4192 Call renamed resolve_subexp.
4193 Update comment.
4194 (ada_resolve_subexp): Rename to resolve_subexp.
4195 (resolve_subexp): Update comment.
4196 Decomment disabled code.
4197 Add LOC_COMPUTED* cases.
4198 Modify to use temporary struct symbols (marked as being in
4199 UNDEF_NAMESPACE) to indicate unresolved names, instead of
4200 OP_UNRESOLVED_VALUE.
4201 Remove OP_ATTRIBUTE; use individual opcodes for attributes.
4202 Add OP_STRING case.
4203 Remove OP_ARRAY.
4204 Use SYMBOL_PRINT_NAME instead of ada_demangle.
4205 Use new ada_lookup_symbol_list interface.
4206 Use new ada_resolve_function interface.
4207 Remove OP_TYPE case.
4208
4209 (ada_args_match): Idiot proof against null actuals.
4210 Use intermediate variables to clarify.
4211 (ada_resolve_function): Update comment and interface.
4212 (mangled_ordered_before): Rename to encoded_ordered_before and
4213 update comment.
4214 (sort_choices): Update comment and interface.
4215 Use SYMBOL_LINKAGE_NAME in place of SYMBOL_NAME.
4216 (user_select_syms): New interface.
4217 Use new sort_choices interface.
4218 Use SYMBOL_PRINT_NAME rather than SYMBOL_SOURCE_NAME.
4219 (possible_user_operator_p): Idiot-proof against null values.
4220 (ada_simple_renamed_entity): Don't make cleanup; rely on
4221 caller to free result string.
4222 Remove const from return type.
4223 (make_array_descriptor): Rename uses of place_on_stack to
4224 ensure_lval.
4225 Make sure that arrays are on stack.
4226
4227 (HASH_SIZE): Define.
4228 (struct cache_entry): Define.
4229 (cache_space): Define.
4230 (cache): Define.
4231 (clear_ada_sym_cache): New function.
4232 (find_entry): New function.
4233 (lookup_cached_symbol): New function.
4234 (defn_vector_size): Define.
4235 (cache_symbol): New function.
4236 (defn_symbols): Remove.
4237
4238 (standard_lookup): Use lookup_symbol_in_language to get effect of
4239 C lookup.
4240 Cache results.
4241
4242 (symbol_completion_match): New function.
4243 (symbol_completion_add): New function.
4244 (ada_make_symbol_completion_list): New function.
4245
4246 (ada_lookup_partial_symbol,ada_lookup_simple_minsym,
4247 add_symbols_from_enclosing_procs,remove_extra_symbols): Replace
4248 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
4249 (symtab_for_sym): Handle LOC_COMPUTED, LOC_COMPUTED_ARG.
4250
4251 (ada_lookup_simple_minsym): New function.
4252 (ada_lookup_minimal_symbol): Use ada_lookup_simple_minsym.
4253
4254 (add_symbols_from_enclosing_procs): New interface.
4255 Conditionalize more helpfully.
4256 Don't bother if program isn't running.
4257 Use new interface to get_frame_block.
4258 Limit number of levels searched with MAX_LEXICAL_LEVELS, just in case.
4259
4260 (remove_extra_symbols): New interface.
4261 (xget_renaming_scope): New function.
4262 (is_package_name): New function.
4263 (renaming_is_visible): New function.
4264 (remove_out_of_scope_renamings): New function.
4265
4266 (ada_lookup_symbol_list): New interface.
4267 Properly reinitialize the symbol list obstack.
4268 Don't call add_symbols_from_enclosing_procs if we start from a
4269 static or global block.
4270 Use new interfaces to ada_add_block_symbols, add_defn_to_vec,
4271 add_symbols_from_enclosing_procs.
4272 Add symtab data to cached entries.
4273 Handle symbols prefixed with
4274 "standard__" specially; strip prefix and don't look in local symbols.
4275 Do not include out of scope renaming symbols in list of
4276 symbols returned.
4277 Add const to block parameter.
4278 Move check for non-local, non-global symbols earlier.
4279 Remove timing stuff.
4280 (ada_lookup_symbol): New interface.
4281 Find symtab as well.
4282 (ada_lookup_symbol_nonlocal): New function.
4283
4284 (is_name_suffix): Enhance suffix detection to recognize
4285 an optional "__[:digit:]+" before any "\.[:digit:]+" suffix.
4286 (is_dot_digits_suffix): New function.
4287 (wild_match): Ignore ".[:digit:]*" suffixes during matches.
4288
4289 (ada_add_block_symbols): New interface. Use obstack to return results
4290 in a vector of struct ada_symbol_infos. Add symtab argument.
4291 Use new interface to add_defn_to_vec.
4292 Remove calls to fill_in_ada_prototype.
4293 Use BLOCK_BUCKETS, BLOCK_BUCKET.
4294
4295 (ada_finish_decode_line_1): Add const qualification to local to fix
4296 warning.
4297 Start looking in static block for functions to avoid attempts
4298 to search frame chain for up-level variables.
4299 Adapt to new ada_sals_for_line interface.
4300 Use new interfaces to ada_lookup_symbol_list and user_select_syms.
4301 Handle quoting of the function name inside the spec string.
4302 Skip prologue when funfirstline is set and update the
4303 function documentation to that effect.
4304
4305 (debug_print_lines, debug_print_block, debug_print_blocks,
4306 debug_print_symtab): Remove.
4307
4308 (ada_main_name): New function.
4309 (ada_exception_breakpoint_type): New function.
4310 (is_known_support_routine): New function.
4311 (ada_find_printable_frame): Renamed from find_printable_frame and made
4312 global.
4313 Remove level parameter.
4314 Use new interface to select_frame.
4315
4316 (begin_command): Remove.
4317 (ada_adjust_exception_stop): New function.
4318 (ada_print_exception_stop): New function.
4319 (exception_name_from_cond): New function.
4320 (ada_report_exception_break): Replace disabled code with
4321 conditionalization on GNAT_GDB.
4322 Get the exception name from the condition string.
4323 Remove and move functionality into new functions
4324 ada_print_exception_breakpoint_task and
4325 ada_print_exception_breakpoint_nontask.
4326 (error_breakpoint_runtime_sym_not_found): New function.
4327 (is_runtime_sym_defined): New function.
4328 (ada_breakpoint_rewrite): Uncomment suppressed code.
4329 Use symbolic error-message and runtime-symbol names.
4330 Surround runtime symbol names in quotes.
4331 Allow non-specific breakpoints on exceptions and assertions before
4332 program starts.
4333
4334 (ada_is_tagged_type): Add parameter.
4335 (ada_is_tag_type): New function.
4336 (ada_tag_type): Use new ada_lookup_struct_elt_type interface.
4337 (ada_variant_discrim_type): Ditto.
4338 (value_tag_from_contents_and_address): New function.
4339 (type_from_tag): New function.
4340 (struct tag_args): New structure used to communicate with
4341 ada_tag_name_1.
4342 (ada_tag_name_1): New function.
4343 (ada_tag_name): New function.
4344
4345 (ada_scan_number): Update comment.
4346 (find_struct_field): New function.
4347 (ada_search_struct_field): Make static.
4348 (ada_value_struct_elt): New version that returns references when
4349 given pointers or references to structs.
4350 (ada_lookup_struct_elt_type): Add 'refok' parameter.
4351 (ada_which_variant_applies): Use new ada_lookup_struct_elt_type
4352 interface.
4353 (ada_value_ind): Use new ada_to_fixed_value interface.
4354 (ada_coerce_ref): Ditto.
4355 (field_offset): Remove.
4356
4357 (ada_find_any_symbol): New function, extracted from ada_find_any_type.
4358 (ada_find_renaming_symbol): New function.
4359 (ada_prefer_type): Prefer named types over unnamed ones.
4360 (variant_field_index): New function.
4361 (contains_variant_part): Removed: subsumed by variant_field_index.
4362 (ada_template_to_fixed_record_type): New function, mostly from
4363 template_to_fixed_record_type.
4364 (template_to_fixed_record_type):
4365 Do not scan the type fields beyond the last one; prevents a
4366 potential SEGV.
4367 Handle case where variant field is listed BEFORE discriminant it
4368 depends on.
4369 Fix calculation of record length when bit length is
4370 not evenly divisible by char length.
4371 Move code to ada_template_to_fixed_record_type and call it.
4372
4373 (template_to_static_fixed_type): Revise comment.
4374 Modify to work on ordinary record types as well as templates,
4375 so as to handle fields that use ___XVE or ___XVU encodings.
4376 (to_record_with_fixed_variant_part): Fill out comment.
4377 Initialize C++ stuff in right type.
4378 Allow case where DVAL is null.
4379 Handle case where variant field is not last.
4380 Fix typo concerning record length.
4381 (to_fixed_record_type): Decomment disabled code.
4382 (to_fixed_record_type): Use variant_field_index instead of
4383 contains_variant_part.
4384 (to_fixed_variant_branch_type): Ditto.
4385 (to_fixed_array_type): Decomment disabled code.
4386 (ada_to_fixed_type): Convert tagged types to the specific type.
4387 Deactivate the size-check for array types in order to avoid
4388 some false size alarms.
4389 (to_static_fixed_type): Decomment disabled code.
4390 Modify to call template_to_static_fixed_type
4391 on ordinary structs, not just ___XVE- and ___XVU-encoded fields.
4392 (ada_to_fixed_value_create): Renamed version of old ada_to_fixed_value.
4393 Remove valaddr argument, as it is never really used.
4394 (ada_to_fixed_value): Change interface to act on single struct value*
4395 operand.
4396 (adjust_pc_past_prologue): New function.
4397 (ada_attribute_name): Modify to take enum exp_opcode argument.
4398
4399 (ada_enum_name): Recognize new homonym-distinguishing convention.
4400 Adjust local variable's type to remove compiler warning.
4401 Fix a small problem in the part that unqualifies the enumeration name.
4402 (ada_value_binop): New function.
4403 (ada_value_equal): New function.
4404
4405 (ada_evaluate_subexp): Use new ada_lookup_struct_elt_type interface.
4406 Don't give error message when not doing normal evaluation
4407 and a tagged type doesn't seem to contain a structure member.
4408 Give error message for packed arrays.
4409 For indexing arrays, handle pointers to packed arrays correctly.
4410 Handle case of 'first and 'last attributes of bare integral type
4411 without encoded subtype info.
4412 Remove some unnecessary casts.
4413 Fix uninitialized value of type in computing 'first, 'last, or 'length
4414 of array object.
4415 Add BINOP_EQUAL and BINOP_NOTEQUAL cases.
4416 Remove binop_user_defined_p tests and value_x_binop and value_x_unop
4417 calls.
4418 Attributes are now exp_opcode values.
4419 Correct treatment of 'modulus.
4420 Better error message for taking 'length of wrong kind of type;
4421 improve comment.
4422 Change EVAL_NORMAL to noside for consistency.
4423 Use ada_value_binop for DIV, MOD, REM.
4424 Make special case out of array of length 0, since an argument
4425 of 0 upsets some platforms' malloc.
4426 Use OP_STRING instead of OP_ARRAY.
4427 For slice, add check that we have an array type before extracting
4428 a slice out of it. Avoids a SEGV.
4429 When evaluating an array slice, if the array type is a reference to
4430 an aligner type, then replace the aligner type by the actual type.
4431 Decomment disabled code.
4432 Remove some dead code.
4433 Use temporary struct symbols (marked as being in UNDEF_NAMESPACE)
4434 to indicate unresolved names, instead of OP_UNRESOLVED_VALUE.
4435 Rename BINOP_MBR to BINOP_IN_BOUNDS, TERNOP_MBR to TERNOP_IN_RANGE,
4436 and UNOP_MBR to UNOP_IN_RANGE.
4437 If an array type has a parallel ___XVE type, then use it.
4438 Turn arrays into pointers for lvalue arrays.
4439 Change TERNOP_SLICE code to work even when bounds are unknown, ignoring
4440 bounds error and handle 0-length slices.
4441 Use lim_warning.
4442 When selecting fields, apply ada_to_fixed_value (because the fields
4443 might have ___XVU or ___XVE encodings even if not dynamic.)
4444 Use ada_to_fixed_value_create and new ada_to_fixed_value interface.
4445 (ada_is_system_address_type): New function.
4446
4447 (get_var_value): Use new interface to ada_lookup_symbol_list.
4448 (get_int_var_value): New interface.
4449 (to_fixed_range_type): Allow unknown bound, with warning.
4450 (ada_is_modular_type): Decomment disabled code.
4451 (ADA_OPERATORS): New definition.
4452 (ada_operator_length): New function.
4453 (ada_expr_op_name): New function.
4454 (ada_forward_operator_length): New function.
4455 (ada_dump_subexp_body): New function.
4456 (ada_print_subexp): New function.
4457 (ada_exp_descriptor): New constant.
4458 (ada_op_print_tab): Add 'size. Remove FIXMEs.
4459 (ada_language_defn): Add ada_exp_descriptor entry.
4460 Change ada_parse => parse.
4461 Add post-parser entry.
4462 Use ada-specific non-local symbol lookup.
4463 Don't use C-style arrays.
4464 String lower-bound is 1.
4465 Decomment disabled code.
4466 (parse): New function.
4467 New fields ada_translate_error_message, ada_lookup_symbol,
4468 ada_lookup_minimal_symbol.
4469
4470 * ada-lang.h: Update copyright dates.
4471 Replace the mangle/demangle terminology throughout by the
4472 more appropriate encode/decode one.
4473 Include breakpoint.h.
4474 Forward declare struct partial_symbol, struct block.
4475 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Define.
4476 (EXTRACT_ADDRESS): Remove.
4477 (EXTRACT_INT): Remove.
4478 (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Define.
4479 (MAX_ENCLOSING_FRAME_LEVELS): Define.
4480 (MAX_RENAMING_CHAIN_LENGTH): Define.
4481 (struct ada_opname_map): mangled => decoded, demangled=>encoded.
4482
4483 (enum task_states): Remove.
4484 ada_task_states: Remove.
4485 (fat_string): Remove.
4486 (struct entry_call): Remove.
4487 (struct task_fields): Remove.
4488 (struct task_entry): Remove.
4489
4490 (struct ada_symbol_info): Define.
4491 (enum ada_attribute): Remove.
4492 (enum ada_operator): Define.
4493
4494 (ada_get_field_index): Declare.
4495 (ada_coerce_to_simple_array): Rename to ada_coerce_to_simple_array_ptr.
4496 (ada_is_simple_array): Rename to ada_is_simple_array_type.
4497 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
4498 (ada_lookup_symbol_list): New interface.
4499 (ada_decode_symbol): Declare.
4500 (ada_decode): Declare.
4501 (ada_lookup_symbol): New interface.
4502 (ada_update_initial_language): Declare.
4503 (ada_lookup_simple_minsym): Declare.
4504 (user_select_syms): New interface.
4505 (ada_sals_for_line): Declare.
4506 (ada_is_tagged_type): New interface.
4507 (ada_tag_name): Declare.
4508 (ada_lookup_struct_elt_type): Remove declaration.
4509 (ada_search_struct_field): Remove declaration.
4510 (ada_attribute_name): New interface.
4511 (ada_is_system_address_type): Declare.
4512 (ada_to_fixed_value): Remove declaration.
4513 (ada_template_to_fixed_record_type_1): Declare.
4514 (get_int_var_value): New interface.
4515 (ada_find_any_symbol): Declare.
4516 (ada_find_renaming_symbol): Declare.
4517 (ada_mangle): Rename to ada_encode.
4518 (ada_simple_renamed_entity): Remove const.
4519 (ada_main_name): Declare.
4520 (get_current_task): Rename to ada_get_current_task.
4521 (get_entry_number): Remove declaration.
4522 (ada_report_exception_break): Remove declaration.
4523 (ada_print_exception_breakpoint_nontask): Declare.
4524 (ada_print_exception_breakpoint_task): Declare.
4525 (ada_find_printable_frame): Declare.
4526
4527 * ada-lex.l: Update copyright notices.
4528 Use xmalloc and xfree instead of malloc and free.
4529 Use new interface to name_lookup.
4530 Use new interface to
4531 ada_mangle=>ada_encode.
4532 Redo handling of '$...' variable to parallel current treatment
4533 in c-exp.y.
4534 (resize_tempbuf, canonicalizeNumeral, is_digit_in_base,
4535 digit_to_int, strtoulst, processInt, processReal, processId,
4536 block_lookup, name_lookup, find_dot_all, subseqMatch, processAttribute,
4537 yywrap): Protoize.
4538
4539 (processInt): Use cast to remove harmless warning.
4540 (processReal): Modify to get rid of compiler warning on scan formats.
4541
4542 (processId): Replace xmalloc with obstack_alloc for name and remove
4543 call to ada_name_string_cleanup.
4544 Remove obsolete disabled code.
4545 (name_lookup): Ditto.
4546 New interface.
4547 Use obsavestring on temp_parse_space instead of savestring
4548 on name, and remove call to ada_name_string_cleanup.
4549 Free string returned from ada_simple_renamed_entity.
4550 Use new interface to ada_lookup_symbol_list.
4551 Decomment disabled code.
4552 Treat LOC_COMPUTED and LOC_COMPUTED_ARG symbols as variables,
4553 not types.
4554 When a type name lookup succeeds as a result of
4555 lookup_primitive_typename, check for regular type entry that has not
4556 yet been read in.
4557 Limit length of chain of renamed symbols we are willing to follow.
4558 Do not break names beginning with "standard__" into segments.
4559 (block_lookup): Use new interface to ada_lookup_symbol_list.
4560
4561 * ada-typeprint.c: Update copyright notice.
4562 (demangled_type_name): Rename to decoded_type_name.
4563 (ada_typedef_print): Use SYMBOL_PRINT_NAME.
4564 (print_range_bound): Correct handling of negative
4565 bounds that make the index type looked unsigned under STABS.
4566 (print_dynamic_range_bound): Use new interface to get_int_var_value.
4567 (print_range_type_named): Use the builtin int type if no type
4568 corresponding to the given type name could be found.
4569 (print_array_type): ada_is_simple_array => ada_is_simple_array_type.
4570 Add some bullet-proofing.
4571 (print_variant_clauses): Allow for variant branches with ___XVU
4572 encodings that are not dynamic fields.
4573 Use new interface to ada_is_tagged_type.
4574 (print_record_type): Allow for fields with ___XVE encodings that
4575 are not dynamic fields.
4576 Use new interface to ada_is_tagged_type.
4577 (ada_print_type): ada_is_array_descriptor =>
4578 ada_is_array_descriptor_type.
4579
4580 * ada-valprint.c: Update copyright notice.
4581 Include gdb_string.h
4582 Include infcall.h
4583 (ui_memcpy): New function.
4584 (ada_print_floating): New function.
4585 (ada_print_str): Order arguments correctly.
4586 Correct handling of empty arrays and arrays of 0-length items.
4587 ada_is_array_descriptor => ada_is_array_descriptor_type
4588 Print values of type System.Address in hexadecimal format.
4589 Use ada_print_floating to print floating-point numbers in Ada format.
4590 Print class tag values with type names.
4591 No longer print the address of reference values. Avoids
4592 a potential confusion.
4593 (ada_value_print): Stop printing the object type for reference
4594 values, but preserve that behavior for access types. Avoids
4595 a potential confusion.
4596 Simplify one conditional expression, as the first part is now
4597 necessarily true.
4598 ada_is_array_descriptor => ada_is_array_descriptor_type
4599 Add check for arrays for null records, and print them by hand.
4600
4601 2004-06-01 Jim Blandy <jimb@redhat.com>
4602
4603 * ppc-tdep.h: Delete unused 'regoff' member.
4604 * rs6000-tdep.c (rs6000_gdbarch_init): Don't initialize it.
4605
4606 2004-06-01 Michael Chastain <mec.gnu@mindspring.com>
4607
4608 Fix PR symtab/1661.
4609 * hpread.c (hpread_pxdb_needed): Call memset after alloca.
4610 (hpread_read_struct_type): Likewise.
4611
4612 2004-06-01 Andrew Cagney <cagney@gnu.org>
4613
4614 * mi/mi-cmd-env.c (env_execute_cli_command): Use xstrprintf
4615 instead of xasprintf.
4616 * mi/mi-main.c (mi_error_last_message, mi_cmd_exec_interrupt)
4617 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
4618 (mi_cmd_data_list_register_names)
4619 (mi_cmd_data_list_changed_registers)
4620 (mi_cmd_data_list_register_values)
4621 (get_register, mi_cmd_data_write_register_values)
4622 (mi_cmd_data_write_register_values)
4623 (mi_cmd_data_assign, mi_cmd_data_evaluate_expression)
4624 (mi_cmd_target_download, mi_cmd_target_select)
4625 (mi_cmd_data_read_memory, mi_cmd_data_write_memory)
4626 (mi_execute_cli_command, mi_execute_async_cli_command)
4627 (mi_execute_async_cli_command): Ditto.
4628 * mi/mi-interp.c (mi_cmd_interpreter_exec) Ditto.
4629 * mi/mi-cmd-var.c (mi_cmd_var_create): Ditto.
4630
4631 * mi/mi-cmds.h (mi_error_last_message): Delete declaration.
4632 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call
4633 error_last_message instead of mi_error_last_message.
4634 * mi/mi-main.c (mi_error_last_message): Delete function.
4635
4636 * mi/mi-main.c (mi_cmd_data_read_memory): Add missing return for
4637 "invalid number of columns" error. Delete redundant "out of
4638 memory" check.
4639
4640 2004-05-31 Mark Kettenis <kettenis@gnu.org>
4641
4642 * i386bsd-nat.c: Don't include <sys/procfs.h>.
4643 (gregset_t, fpregset_t): Remove typedefs.
4644 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Remove macros.
4645 (REG_OFFSET): Rename argument.
4646 (i386bsd_r_reg_offset): Rename from reg_offset.
4647 (REG_ADDR): Remove macro.
4648 (cannot_fetch_register, supply_gregset, fill_gregset): Remove
4649 functions.
4650 (i386bsd_supply_gregset, i386bsd_collect_gregset): New functions.
4651 (fetch_inferior_registers): Use `struct reg' and `struct fpreg'
4652 instead of gregset_t and fpregset_t. Use i386bsd_supply_gregset
4653 instead of supply_gregset.
4654 (store_inferior_registers): Use `struct reg' and `struct fpreg'
4655 instead of gregset_t and fpregset_t. Use i386bsd_collect_gregset
4656 instead of fill_gregset.
4657 (register_u_addr): Use i386_r_reg_offset instead of REG_ADDR.
4658
4659 * i386bsd-nat.c: Don't include "gregset.h".
4660 (supply_gregset, fill_gregset): Make static.
4661 (supply_fpregset, fill_fpregset): Remove.
4662 * Makefile.in (i386bsd-nat.o): Update dependencies.
4663
4664 2004-05-30 Mark Kettenis <kettenis@gnu.org>
4665
4666 * fbsd-proc.c: Include "regcache.h", "regset.h" and
4667 "gdb_assert.h". Con't include "gregset.h".
4668 (fbsd_make_corefile_notes): Use regset-based core file support
4669 instead off fill_gregset and fill_fpregset.
4670 * Makefile.in (fbsd-proc.o): Update dependencies.
4671
4672 * m88k-tdep.c (m88k_analyze_prologue): Fix handling of branch
4673 instructions.
4674 (m88k_frame_prev_register): Simplify code a bit.
4675
4676 * amd64-tdep.c (amd64_supply_fpregset): Adjust comment.
4677 (amd64_collect_fpregset): New function.
4678 (amd64_regset_from_core_section): Use amd64_collect_fpregset.
4679
4680 * hppa-tdep.h (hppa_regnum): Add HPPA_R31_REGNUM.
4681
4682 * i386-tdep.c (i386_supply_gregset): Adjust comment.
4683 (i386_collect_gregset): New function.
4684 (i386_supply_fpregset): Adjust comment.
4685 (i386_collect_fpregset): New function.
4686 (i386_regset_from_core_section): Use i386_collect_gregset and
4687 i386_collect_fpregset.
4688
4689 * hppa-tdep.c (hppa_frame_prev_register_helper): Reimplement to
4690 handle VALUEP being null.
4691
4692 * regset.h (collect_regset_ftype): Unconstify fourth argument.
4693
4694 2004-05-29 Mark Kettenis <kettenis@gnu.org>
4695
4696 * MAINTAINERS: Undelete m88k. Add myself as maintainer.
4697
4698 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Adjust for new
4699 assembler in OpenBSD 3.5-current.
4700 (amd64obsd_sigcontext_addr): Likewise.
4701
4702 2004-05-28 Jim Blandy <jimb@redhat.com>
4703
4704 * rs6000-tdep.c: Use the modern gdbarch methods for handling the
4705 register set, so our regcache isn't declared "legacy" and our E500
4706 pseudoregister read and write functions aren't ignored.
4707 (rs6000_register_byte, rs6000_register_raw_size,
4708 rs6000_register_virtual_type, rs6000_register_convertible,
4709 rs6000_register_convert_to_virtual,
4710 rs6000_register_convert_to_raw): Deleted.
4711 (rs6000_register_type, rs6000_convert_register_p,
4712 rs6000_register_to_value, rs6000_value_to_register): New
4713 functions.
4714 (rs6000_gdbarch_init): Don't register
4715 gdbarch_deprecated_register_size,
4716 gdbarch_deprecated_register_bytes,
4717 gdbarch_deprecated_register_byte,
4718 gdbarch_deprecated_register_raw_size,
4719 gdbarch_deprecated_register_virtual_type,
4720 gdbarch_deprecated_register_convertible,
4721 gdbarch_deprecated_register_convert_to_virtual, or
4722 gdbarch_deprecated_register_convert_to_raw methods. Instead,
4723 register gdbarch_register_type, gdbarch_convert_register_p,
4724 gdbarch_register_to_value, and gdbarch_value_to_register methods.
4725
4726 2004-05-26 Jim Blandy <jimb@redhat.com>
4727
4728 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): Deleted.
4729 (rs6000_stab_reg_to_regnum, rs6000_dwarf2_reg_to_regnum): New
4730 functions, updated to match the register numberings used in GCC.
4731 (rs6000_gdbarch_init): Register rs6000_stab_reg_to_regnum and
4732 rs6000_dwarf2_reg_to_regnum as register number conversions
4733 functions for STABS and Dwarf2.
4734
4735 2004-05-26 Randolph Chung <tausq@debian.org>
4736
4737 * infttrace.h (target_waitkind): Forward declare type instead of pulling
4738 in header file.
4739
4740 2004-05-25 Joel Brobecker <brobecker@gnat.com>
4741
4742 * NEWS: Document new "start" command.
4743
4744 2004-05-25 Randolph Chung <tausq@debian.org>
4745
4746 * hppa-linux-tdep.c (hppa_linux_init_abi): sizeof(long double) == 8 on
4747 hppa-linux.
4748
4749 2004-05-25 Randolph Chung <tausq@debian.org>
4750
4751 * hppa-hpux-tdep.c (offsetof): Define.
4752 (hppa_hpux_pc_in_sigtramp, hppa32_hpux_frame_saved_pc_in_sigtramp)
4753 (hppa32_hpux_frame_base_before_sigtramp)
4754 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
4755 (hppa64_hpux_frame_saved_pc_in_sigtramp)
4756 (hppa64_hpux_frame_base_before_sigtramp)
4757 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): Remove unused
4758 functions.
4759 (struct hppa_hpux_sigtramp_unwind_cache, hppa_hpux_tramp_reg)
4760 (hppa_hpux_sigtramp_frame_unwind_cache)
4761 (hppa_hpux_sigtramp_frame_this_id)
4762 (hppa_hpux_sigtramp_frame_prev_register)
4763 (hppa_hpux_sigtramp_frame_unwind)
4764 (hppa_hpux_sigtramp_unwind_sniffer): New signal trampoline unwinder.
4765 (hppa_hpux_init_abi): Register sigtramp unwinder.
4766 * Makefile.in (hppa-hpux-tdep.o): Update dependencies.
4767
4768 2004-05-25 Randolph Chung <tausq@debian.org>
4769
4770 * hppa-tdep.c (hppa_fallback_frame_cache): Handle stack adjustment,
4771 and multiple stack unwinds.
4772 (hppa_stub_unwind_sniffer): Handle unwind from pc == 0.
4773
4774 2004-05-25 Andrew Cagney <cagney@gnu.org>
4775
4776 * symfile.h (symbol_file_add_from_memory): Delete declaration.
4777 * symfile-mem.h: Delete file.
4778 * symfile-mem.c: Do not include "symfile-mem.h".
4779 (symbol_file_add_from_memory): Make static. Use "struct bfd" and
4780 "struct bfd_section". When an error do not bother returning NULL.
4781 (add_symbol_file_from_memory_command): Use "struct bfd" and
4782 "struct bfd_section".
4783 * Makefile.in (symfile_mem_h): Delete.
4784 (symfile-mem.o): Update dependencies.
4785
4786 2004-05-25 Nick Roberts <nickrob@gnu.org>
4787
4788 * gdb-mi.el: New file.
4789
4790 2004-05-25 Andrew Cagney <cagney@gnu.org>
4791
4792 * inftarg.c: Include "observer.h".
4793 (child_attach, child_create_inferior): Notify inferior_created.
4794 * corelow.c: Include "observer.h".
4795 (core_open): Notify inferior_created.
4796 * Makefile.in (inftarg.o, corelow.o): Update dependencies.
4797
4798 2004-05-25 Andrew Cagney <cagney@gnu.org>
4799
4800 * target.h (struct target_ops): Add from_tty to
4801 to_create_inferior.
4802 (target_create_inferior, find_default_create_inferior): Update.
4803 * infcmd.c (run_command): Update.
4804 * wince.c (child_create_inferior): Update.
4805 * win32-nat.c (child_create_inferior): Update.
4806 * uw-thread.c (uw_thread_create_inferior): Update.
4807 * thread-db.c (thread_db_create_inferior): Update.
4808 * target.c (debug_to_create_inferior)
4809 (find_default_create_inferior): Update.
4810 (maybe_kill_then_create_inferior): Update.
4811 * sol-thread.c (sol_thread_create_inferior): Update.
4812 * remote.c (extended_remote_async_create_inferior)
4813 (extended_remote_create_inferior): Update.
4814 * remote-vx.c (vx_create_inferior): Update.
4815 * remote-st.c (st2000_create_inferior): Update.
4816 * remote-sim.c (gdbsim_create_inferior): Update.
4817 * remote-sds.c (sds_create_inferior): Update.
4818 * remote-rdp.c (remote_rdp_create_inferior): Update.
4819 * remote-rdi.c (arm_rdi_create_inferior): Update.
4820 * remote-m32r-sdi.c (m32r_create_inferior): Update.
4821 * remote-e7000.c (e7000_create_inferior): Update.
4822 * procfs.c (procfs_create_inferior): Update.
4823 * ocd.c (ocd_create_inferior): Update.
4824 * ocd.h (ocd_create_inferior): Update.
4825 * nto-procfs.c (procfs_create_inferior): Update.
4826 * monitor.c (monitor_create_inferior): Update.
4827 * lin-lwp.c (lin_lwp_create_inferior): Update.
4828 * inftarg.c (child_create_inferior): Update.
4829 * hpux-thread.c (hpux_thread_create_inferior): Update.
4830 * gnu-nat.c (gnu_create_inferior): Update.
4831
4832 2004-05-25 Andrew Cagney <cagney@gnu.com>
4833
4834 * MAINTAINERS: Update e-mail address.
4835
4836 2004-05-24 Randolph Chung <tausq@debian.org>
4837
4838 * thread.c (info_threads_command, thread_apply_all_command)
4839 (thread_apply_command, thread_command, do_captured_thread_select):
4840 Remove HPUXHPPA-specific code.
4841
4842 2004-05-24 Randolph Chung <tausq@debian.org>
4843
4844 * hppa-tdep.c (SR4EXPORT_LDIL_OFFSET, SR4EXPORT_LDO_OFFSET): Remove
4845 unused symbols.
4846 * hppa-tdep.h (HPPA_INSTRUCTION_SIZE): Remove, since there are no more
4847 references.
4848
4849 2004-05-24 Joel Brobecker <brobecker@gnat.com>
4850
4851 * infcmd.c (kill_if_already_running): New function, extracted
4852 from run_command().
4853 (run_command): Replace extracted code by call to
4854 kill_if_already_running().
4855 (start_command): New function.
4856 (_initialize_infcmd): Add "start" command.
4857
4858 2004-05-24 Mark Kettenis <kettenis@gnu.org>
4859
4860 Add OpenBSD/m88k support.
4861 * NEWS (New native configurations): Mention OpenBSD/m88k.
4862 * m88k-tdep.c, m88k-tdep.h, m88kbsd-nat.c, config/m88k/nm-obsd.h,
4863 config/m88k/obsd.mh, config/m88k/obsd.mt: New files.
4864 * Makefile.in (m88k_tdep_h): New variable.
4865 (ALLDEPFILES): Add m88k-tdep.c and m88kbsd-nat.c.
4866 (m88kbsd-nat.o, m88k-tdep.o): New dependencies.
4867 * configure.host: Add m88*-*-openbsd*.
4868 * configure.tgt: Add m88*-*-openbsd*.
4869
4870 2004-05-24 Jim Blandy <jimb@redhat.com>
4871
4872 * MAINTAINERS (tracing bytecode stuff): Allow global maintainers
4873 to approve changes.
4874
4875 2004-05-24 Kevin Buettner <kevinb@redhat.com>
4876
4877 * symtab.c (fixup_section): Search section table when lookup by
4878 name fails.
4879
4880 2004-05-24 Randolph Chung <tausq@debian.org>
4881
4882 * hppa-tdep.c: Fix handling of 8-byte structures; they should not
4883 be "small_struct".
4884
4885 2004-05-24 Mark Kettenis <kettenis@gnu.org>
4886
4887 * m68kbsd-nat.c (m68kbsd_collect_gregset): Specify correct
4888 register number in regcache_raw_collect call.
4889 (m68kbsd_collect_fpregset): Likewise.
4890 * vaxbsd-nat.c (vaxbsd_collect_gregset): Likewise.
4891
4892 * regset.h (struct regset): Add back `regset' member.
4893
4894 2004-05-23 Mark Kettenis <kettenis@gnu.org>
4895
4896 * configure.in: Check for td_pcb in `struct thread'.
4897 * configure, config.in: Regenerated.
4898
4899 * dpx2-nat.c: Remove file.
4900 * Makefile.in (ALLDEPFILES): Remove dpx2-nat.c.
4901 (dpx2-nat.o): Remove dependencies.
4902
4903 * amd64obsd-nat.c: Include "gdbcore.h", "regcache.h",
4904 <sys/types.h>, <machine/frame.h>, <machine/pcb.h> and "bsd-kvm.h".
4905 (amd64obsd_supply_pcb): New function.
4906 (_initialize_amd64obsd_nat): Enable libkvm interface.
4907 * Makefile.in (amd64obsd-nat.o): Update dependencies.
4908 * config/i386/obsd64.mh (NATDEPFILES): Add bsd-kvm.o
4909 (LOADLIBES): New variable.
4910
4911 * sparcnbsd-nat.c: Include "gdbcore.h", "regcache.h",
4912 <sys/types.h>, <machine/pcb.h> and "bsd-kvm.h".
4913 (sparc32nbsd_supply_pcb): New function.
4914 (_initialize_sparcnbsd_nat): Enable libkvm interface.
4915 * Makefile.in (sparcnbsd-nat.o): Update dependencies.
4916 * config/sparc/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
4917 (LOADLIBES): New variable.
4918
4919 2004-05-22 Mark Kettenis <kettenis@gnu.org>
4920
4921 * bsd-kvm.c, bsd-kvm.h: New files.
4922 * i386fbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
4923 "bsd-kvm.h".
4924 (i386fbsd_supply_pcb): New function.
4925 * Makefile.in (ALLDEPFILES): Add bsd-kvm.c.
4926 (i386fbsd-nat.o): Update dependencies.
4927 (bsd_kvm_h): New variable.
4928 (bsd-kvm.o): New dependency.
4929 * config/i386/fbsd.mh (NATDEPFILES): Add bsd-kvm.o.
4930 (LOADLIBES): New variable.
4931
4932 * regset.c: Tweak comment.
4933 (regset_alloc): Remove descr argument. Use GDBARCH_OBSTACK_ZALLOC
4934 macro.
4935 * regset.h: Update copyright year.
4936 (struct regset): Remove `descr' member, add `gdbarch' member.
4937 (regset_alloc): Adjust prototype and comment.
4938 * i386-tdep.c (i386_supply_gregset): Get TDEP from REGSET->arch.
4939 (i386_supply_fpregset): Likewise.
4940 (i386_regset_from_core_section): Update call to regset_alloc.
4941 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get TDEP from
4942 REGSET->arch.
4943 (i386obsd_aout_regset_from_core_section): Update call to
4944 regset_alloc.
4945 * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Get TDEP from
4946 REGSET->arch.
4947 (i386nbsd_aout_regset_from_core_section): Update call to
4948 regset_alloc.
4949 * amd64-tdep.c (amd64_supply_fpregset): Get TDEP from
4950 REGSET->arch.
4951 (amd64_regset_from_core_section): Update call to regset_alloc.
4952 * amd64obsd-tdep.c (amd64obsd_supply_regset): Get TDEP from
4953 REGSET->arch.
4954 (amd64obsd_regset_from_core_section): Update call to regset_alloc.
4955 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Directly pass
4956 &sparc32nbsd_gregset in sparc32_supply_gregset call.
4957 (sparc32nbsd_init_abi): Update call to regset_alloc.
4958 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Directly pass
4959 &sparc64obsd_core_gregset in sparc64_supply_gregset call.
4960 (sparc64obsd_init_abi): Update call to regset_alloc.
4961 * sparc64nbsd-tdep.c (sparc64nbsd_supply_gregset): Directly pass
4962 &sparc64nbsd_gregset in sparc64_supply_gregset call.
4963 (sparc64nbsd_init_abi): Update call to regset_alloc.
4964 * sparc64fbsd-tdep.c (sparc64fbsd_supply_gregset): Directly pass
4965 &sparc64fbsd_gregset in sparc64_supply_gregset call.
4966 (sparc64fbsd_init_abi): Update call to regset_alloc.
4967
4968 2004-05-22 Jim Blandy <jimb@redhat.com>
4969
4970 * ppc-tdep.h (spe_register_p): New declaration.
4971 (struct gdbarch_tdep): New members: ppc_acc_regnum and
4972 ppc_spefscr_regnum.
4973 * rs6000-tdep.c (spe_register_p): New function.
4974 (rs6000_dwarf2_stab_reg_to_regnum): Recognize numbers for acc and
4975 spefscr.
4976 (rs6000_gdbarch_init): Initialize the new members of the tdep
4977 structure.
4978
4979 2004-05-21 Jim Blandy <jimb@redhat.com>
4980
4981 * ppc-linux-nat.c (fetch_register): Move code back to be next
4982 to the comment that describes it. (Moved code, instead of
4983 comment, for symmetry with store_register.)
4984
4985 Allocate regset structures in the gdbarch's obstack, not using
4986 xmalloc.
4987 * regset.c (regset_alloc): Renamed from regset_xmalloc.
4988 Add 'arch' argument. Allocate the regset on arch's obstack, not
4989 using xmalloc.
4990 * regset.h (regset_alloc): Update declaration.
4991 * am64-tdep.c (amd64_regset_from_core_section): Update call; pass
4992 gdbarch argument.
4993 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
4994 * i386-tdep.c (i386_regset_from_core_section): Same.
4995 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
4996 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
4997 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
4998 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
4999 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
5000 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
5001
5002 2004-05-21 Joel Brobecker <brobecker@gnat.com>
5003
5004 * config/djgpp/fnchange.lst: Undo previous change, was useless.
5005
5006 2004-05-21 Jim Blandy <jimb@redhat.com>
5007
5008 * dwarf2expr.c (execute_stack_op): Add 'break' statements after
5009 cases for DW_OP_div and DW_OP_shr. (Thanks to Reva Cuthbertson.)
5010
5011 2004-05-20 Jim Blandy <jimb@redhat.com>
5012
5013 * rs6000-tdep.c (rs6000_push_dummy_call): Formatting fixes.
5014
5015 2004-05-20 Mark Kettenis <kettenis@gnu.org>
5016
5017 * regset.h: Make prototype const-correct.
5018 * regset.c (regset_xmalloc): Make const-correct.
5019
5020 2004-05-20 Paul N. Hilfinger <hilfinger@gnat.com>
5021
5022 * symtab.h (SYMBOL_SEARCH_NAME): New definition.
5023 (SYMBOL_MATCHES_SEARCH_NAME): New definition.
5024 (symbol_search_name): Declare.
5025
5026 * dictionary.c (iter_name_first_hashed): Match on SYMBOL_SEARCH_NAME.
5027 (iter_name_next_hashed): Ditto.
5028 (iter_name_next_linear): Ditto.
5029 (insert_symbol_hashed): Hash on SYMBOL_SEARCH_NAME.
5030
5031 * symtab.c (lookup_partial_symbol): Assume symbols ordered by
5032 search name, using SYMBOL_SEARCH_NAME and SYMBOL_MATCHES_SEARCH_NAME.
5033 (symbol_search_name): New function.
5034
5035 * symfile.c (compare_psymbols): Order by SYMBOL_SEARCH_NAME.
5036
5037 * minsyms.c (build_minimal_symbol_hash_tables): Change
5038 test for adding to demangled hash table to check for difference
5039 between SYMBOL_SEARCH_NAME and SYMBOL_LINKAGE_NAME.
5040
5041 2004-05-19 Jim Blandy <jimb@redhat.com>
5042
5043 Use a constructor function to create regset structures.
5044 * regset.h (supply_regset_ftype, collect_regset_ftype): New typedefs.
5045 (struct regset): Use supply_regset_ftype. Add new
5046 'collect_regset' member.
5047 (regset_xmalloc): New declaration.
5048 * regset.c: New file.
5049 * am64-tdep.c (amd64_regset_from_core_section): Use
5050 regset_xmalloc to construct regset structures.
5051 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
5052 * i386-tdep.c (i386_regset_from_core_section): Same.
5053 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
5054 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
5055 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
5056 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
5057 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
5058 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
5059 * Makefile.in (COMMON_OBS): Add regset.o.
5060 (regset.o): New rule.
5061
5062 2004-05-19 Joel Brobecker <brobecker@gnat.com>
5063
5064 * config/djgpp/fnchange.lst: Add entries for pthread_cond_wait.exp
5065 and pthread_cond_wait.c.
5066
5067 2004-05-18 Jim Blandy <jimb@redhat.com>
5068
5069 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize tdep fields
5070 before the mach-specific switch, and then let the individual cases
5071 override the defaults, rather than leaving them uninitialized
5072 until the switch and then setting them in each case.
5073
5074 2004-05-18 Randolph Chung <tausq@debian.org>
5075
5076 * hppa-tdep.c (hppa_frame_cache): Check for validity of r31 for
5077 millicode functions.
5078
5079 2004-05-18 Randolph Chung <tausq@debian.org>
5080
5081 * somsolib.c (som_solib_remove_inferior_hook): Make all the size
5082 references to dld_flags_buffer consistent.
5083
5084 2004-05-18 Randolph Chung <tausq@debian.org>
5085
5086 * hppa-tdep.c (hppa_frame_cache): If a frame pointer is available, use
5087 it for unwinding the stack.
5088
5089 2004-05-18 Randolph Chung <tausq@debian.org>
5090
5091 * config/pa/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE)
5092 Undefine these so we can overide them using gdbarch.
5093
5094 2004-05-18 Randolph Chung <tausq@debian.org>
5095
5096 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Don't do export stub
5097 handling for 64-bit HPUX (elf).
5098
5099 2004-05-18 Daniel Jacobowitz <dan@debian.org>
5100
5101 * alpha-tdep.c (alpha_gdbarch_init): Use LL suffix for large
5102 constants.
5103 * amd64-tdep.c (amd64_skip_prologue): Likewise.
5104 * ia64-tdep.c (examine_prologue): Likewise.
5105 * ns32k-tdep.c (ns32k_fix_call_dummy): Remove unused function.
5106 * v850-tdep.c (v850_fix_call_dummy): Likewise.
5107
5108 2004-05-18 Mark Kettenis <kettenis@gnu.org>
5109
5110 * vax-tdep.c (vax_return_value): Implement
5111 RETURN_VALUE_ABI_RETURNS_ADDRESS.
5112
5113 2004-05-17 Mark Kettenis <kettenis@gnu.org>
5114
5115 * vax-tdep.c (vax_return_value): Fix typo.
5116
5117 2004-05-17 Andrew Cagney <cagney@redhat.com>
5118
5119 * MAINTAINERS: Mark Salter was also responsible for
5120 testsuite/config/
5121
5122 * NEWS: Mention signal fixes.
5123
5124 2004-05-17 Randolph Chung <tausq@debian.org>
5125
5126 * hppa-tdep.c (hppa_stub_frame_unwind_cache): For HPUX stub unwinding,
5127 check to see if we are unwinding an export stub. Export stubs clobber
5128 the %rp in the call path and stores the original rp in a stack slot.
5129
5130 2004-05-17 Jim Blandy <jimb@redhat.com>
5131
5132 * MAINTAINERS: Update address for J.T. Conklin.
5133
5134 2004-05-17 Randolph Chung <tausq@debian.org>
5135
5136 * hppa-tdep.c: Remove superfluous #include's.
5137 * Makefile.in (hppa-tdep.o): Update dependencies.
5138
5139 2004-05-17 Randolph Chung <tausq@debian.org>
5140
5141 * hppa-tdep.c (THREAD_INITIAL_FRAME_SYMBOL): Delete unused symbol.
5142 (THREAD_INITIAL_FRAME_SYM_LEN): Likewise.
5143 (unwind_command, hppa_alignof, prologue_inst_adjust_sp)
5144 (is_branch, inst_saves_gr, inst_saves_fr, compare_unwind_entries)
5145 (read_unwind_info, internalize_unwinds, record_text_segment_lowaddr):
5146 Remove static function declarations.
5147
5148 2004-05-17 Mark Kettenis <kettenis@gnu.org>
5149
5150 * alphabsd-nat.c: Update copyright year.
5151 (getregs_supplies): Replace PC_REGNUM with ALPHA_PC_REGNUM.
5152
5153 * m68k-tdep.h (m68k_regnum): Add M68K_D2_REGNUM, M68K_D7_REGNUM
5154 and M68K_A2_REGNUM.
5155
5156 * m68k-tdep.c (m68k_svr4_return_value): Implement
5157 RETURN_VALUE_ABI_RETURNS_ADDRESS.
5158
5159 2004-05-16 Mark Kettenis <kettenis@gnu.org>
5160
5161 * sol-thread.c Update copyright year. Fix various coding
5162 standards violations. Tweak a few comments.
5163 (td_err_string, td_state_string, thread_to_lwp, lwp_to_thread):
5164 Delete prototypes.
5165
5166 2004-05-15 Randolph Chung <tausq@debian.org>
5167
5168 * hppa-tdep.h (hppa_frame_prev_register_helper): Pass save_regs
5169 as pointer instead of array reference since HPUX compiler does
5170 not accept unsized array arguments.
5171 * somsolib.c (dld_flags_buffer): Use constant array size.
5172
5173 2004-05-15 Mark Kettenis <kettenis@gnu.org>
5174
5175 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Replace hexadecimal
5176 offset with decimal offset.
5177 (amd64obsd_sigcontext_addr): Return correct address for entire
5178 signal trampoline.
5179
5180 * vax-tdep.c (vax_frame_num_args): Use get_frame_base_address
5181 instead of get_frame_base.
5182
5183 * i386bsd-nat.c (supply_gregset): Use regcache_raw_supply.
5184 (fill_gregset): Use regcache_raw_collect.
5185
5186 * config/djgpp/fnchange.lst: Add entries for ppcobsd-nat.c and
5187 ppcobsd-tdep.c.
5188
5189 * config/sparc/tm-nbsd64.h: Remove file.
5190 * config/tm-sunos.h: Remove file.
5191
5192 2004-05-15 Joel Brobecker <brobecker@gnat.com>
5193
5194 * rs6000-tdep.c (store_param_on_stack_p): New function,
5195 an improved version of some code extracted from skip_prologue().
5196 (skip_prologue): Use store_param_on_stack_p() to detect
5197 instructions saving a parameter on the stack. Detect when r0
5198 is used to save a parameter.
5199 Do not mark "li rx, SIMM" instructions as part of the prologue,
5200 unless the following instruction is also part of the prologue.
5201
5202 2004-05-14 Andrew Cagney <cagney@redhat.com>
5203
5204 * infrun.c (handle_inferior_event): Simplify
5205 STEP_OVER_UNDEBUGGABLE.
5206
5207 * infrun.c (handle_step_into_function): Delete function.
5208 (handle_inferior_event): Inline calls to
5209 handle_step_into_function.
5210
5211 2004-05-14 Jerome Guitton <guitton@gnat.com>
5212
5213 * rs6000-nat.c: Fix a comment.
5214
5215 2004-05-12 David Anderson <davea@sgi.com>
5216
5217 Committed by Jim Blandy <jimb@redhat.com>:
5218 * regcache.c (struct regcache_descr): fix comment spelling.
5219
5220 2004-05-13 J. Brobecker <brobecker@gnat.com>
5221
5222 * aix-thread.c: s/ppc_floating_point_p/ppc_floating_point_unit_p/.
5223 Fixes a link link failure.
5224
5225 2004-05-13 J. Brobecker <brobecker@gnat.com>
5226
5227 * aix-thread.c (store_regs_kernel_thread): Fix a little obvious
5228 error that was causing the build to fail.
5229
5230 2004-05-13 J. Brobecker <brobecker@gnat.com>
5231
5232 * aix-thread.c: #include "gdb_string.h". Needed for memset and memcopy.
5233 * Makefile.in (aix-thread.o): Add dependency on gdb_string.h.
5234
5235 2004-05-13 Andrew Cagney <cagney@redhat.com>
5236
5237 * infrun.c (handle_inferior_event): Check for
5238 STEP_OVER_UNDEBUGGABLE after signal trampolines and function
5239 calls. Update comments.
5240
5241 2004-05-13 Jim Blandy <jimb@redhat.com>
5242
5243 * aix-thread.c (pdc_read_regs, supply_gprs64, supply_fprs)
5244 (fetch_regs_user_thread, fetch_regs_kernel_thread)
5245 (store_regs_user_thread, store_regs_kernel_thread): Use
5246 ppc_num_gprs and ppc_num_fprs instead of '32' and '31'.
5247 * ppc-linux-nat.c (fill_gregset): Same.
5248 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
5249 (ppc_linux_sigtramp_cache): Same.
5250 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg)
5251 (ppcnbsd_sigtramp_cache_init): Same.
5252 * rs6000-nat.c (fetch_core_registers): Same.
5253 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
5254 (rs6000_frame_cache): Same.
5255
5256 * aix-thread.c (supply_gprs64, fetch_regs_user_thread)
5257 (store_regs_user_thread): Use tdep->ppc_gp0_regnum, instead
5258 of assuming that the gprs are numbered starting with zero.
5259 * ppc-linux-nat.c (fill_gregset): Same.
5260 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Same.
5261 * ppcnbsd-nat.c (getregs_supplies): Same.
5262 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg): Same.
5263 * rs6000-nat.c (fetch_core_registers): Same.
5264 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset): Same.
5265
5266 2004-05-07 Michael Snyder <msnyder@redhat.com>
5267
5268 * tracepoint.c (scope_info): Add handling for LOC_COMPUTED,
5269 LOC_COMPUTED_ARG, and LOC_INDIRECT.
5270
5271 2004-05-13 Andrew Cagney <cagney@redhat.com>
5272
5273 * infrun.c (handle_inferior_event): Use frame_unwind_id.
5274
5275 2004-05-13 Bryce McKinlay <mckinlay@redhat.com>
5276
5277 * dwarf2loc.c (find_location_expression): Use ANOFFSET to adjust
5278 base_address for shared libraries.
5279
5280 2004-05-13 Bryce McKinlay <mckinlay@redhat.com>
5281
5282 * MAINTAINERS (write after approval): Add myself.
5283
5284 2004-05-13 Ulrich Weigand <uweigand@de.ibm.com>
5285
5286 * breakpoint.c (bpstat_stop_status): Add new argument
5287 STOPPED_BY_WATCHPOINT. Use it instead of testing
5288 target_stopped_data_address agaist 0 to check whether
5289 or not we stopped due to a hardware watchpoint.
5290 * breakpoint.h (bpstat_stop_status): Adapt prototype.
5291 * infrun.c (handle_inferior_event): Call bpstat_stop_status
5292 with new argument.
5293
5294 2004-05-12 Jim Blandy <jimb@redhat.com>
5295
5296 * configure.in: When checking whether we should use the -bbigtoc
5297 option, don't forget to restore the original value of LDFLAGS.
5298 * configure: Regenerated.
5299
5300 2004-05-12 Andrew Cagney <cagney@redhat.com>
5301
5302 * thread.c (load_infrun_state): Delete step_sp.
5303 * infrun.c (context_switch): Ditto.
5304 * inferior.h (step_sp): Ditto.
5305 * infcmd.c (step_sp, step_1, step_once, until_next_command): Ditto.
5306 * gdbthread.h (struct thread_info, save_infrun_state)
5307 (restore_infrun_state): Ditto.
5308
5309 2004-05-12 Ulrich Weigand <uweigand@de.ibm.com>
5310
5311 * MAINTAINERS (write after approval): Add myself.
5312
5313 2004-05-12 Andrew Cagney <cagney@redhat.com>
5314
5315 * infrun.c (adjust_pc_after_break): Rewrite decr logic,
5316 eliminate reference to step_sp.
5317 (struct execution_control_state, init_execution_control_state)
5318 (handle_inferior_event, keep_going): Delete update_step_sp and
5319 step_sp.
5320 * infcmd.c (step_sp): Note that variable is unused.
5321
5322 2004-05-11 Andrew Cagney <cagney@redhat.com>
5323
5324 * infrun.c (step_over_function): Delete function.
5325 (handle_step_into_function): Use insert_step_resume_breakpoint.
5326 (insert_step_resume_breakpoint): Fix assertion.
5327
5328 2004-05-11 Nick Roberts <nickrob@gnu.org>
5329
5330 * utils.c (defaulted_query): Just use the normal query input type
5331 when printing the annotations.
5332
5333 2004-05-11 Andrew Cagney <cagney@redhat.com>
5334
5335 * infrun.c (handle_inferior_event): Simplify code handling
5336 step-into or return-from a signal trampoline.
5337
5338 2004-05-11 Andrew Cagney <cagney@redhat.com>
5339
5340 * ppcnbsd-tdep.c: Include "gdb_assert.h".
5341 * Makefile.in (ppcnbsd-tdep.o): Update dependencies.
5342
5343 2004-05-10 Jim Blandy <jimb@redhat.com>
5344
5345 * ppc-bdm.c (bdm_ppc_fetch_registers): Replace utterly broken code
5346 with a call to internal_error.
5347
5348 * ppc-tdep.h (struct gdbarch_tdep): Change definition of
5349 ppc_fp0_regnum and ppc_fpscr_regnum: if they are -1, then this
5350 processor variant lacks those registers.
5351 (ppc_floating_point_unit_p): Change description to make it clear
5352 that this returns info about the ISA, not the ABI.
5353 * rs6000-tdep.c (ppc_floating_point_unit_p): Decide whether to
5354 return true or false by checking tdep->ppc_fp0_regnum and
5355 tdep->ppc_fpscr_regnum. The original code replicated the BFD
5356 arch/mach switching done in rs6000_gdbarch_init; it's better to
5357 keep that logic there, and just check the results here.
5358 (rs6000_gdbarch_init): On the E500, set tdep->ppc_fp0_regnum and
5359 tdep->ppc_fpscr_regnum to -1 to indicate that we have no
5360 floating-point registers.
5361 (ppc_supply_fpregset, ppc_collect_fpregset)
5362 (rs6000_push_dummy_call, rs6000_extract_return_value)
5363 (rs6000_store_return_value): Assert that we have floating-point
5364 registers.
5365 (rs6000_dwarf2_stab_reg_to_regnum): Add FIXME.
5366 (rs6000_frame_cache): Don't note the locations at which
5367 floating-point registers were saved if we have no fprs.
5368 * aix-thread.c (supply_fprs, fill_fprs): Assert that we have FP
5369 registers.
5370 (fetch_regs_user_thread, fetch_regs_kernel_thread)
5371 (store_regs_user_thread, store_regs_kernel_thread): Only call
5372 supply_fprs / fill_fprs if we actually have floating-point
5373 registers.
5374 (special_register_p): Check ppc_fpscr_regnum before matching
5375 against it.
5376 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32): Don't
5377 supply / collect fpscr if we don't have it.
5378 * ppc-bdm.c: #include "gdb_assert.h".
5379 (bdm_ppc_fetch_registers, bdm_ppc_store_registers): Assert that we
5380 have floating-point registers, since I can't test this code on
5381 FP-free systems to adapt it.
5382 * ppc-linux-nat.c (ppc_register_u_addr): Don't match against the
5383 fpscr and floating point register numbers if they don't exist.
5384 (fetch_register): Assert that we have floating-point registers
5385 before we reach the code that handles them.
5386 (store_register): Same. And use tdep instead of calling
5387 gdbarch_tdep again.
5388 (fill_fpregset): Don't try to collect FP registers and fpscr if we
5389 don't have them.
5390 (ppc_linux_sigtramp_cache): Don't record the saved locations of
5391 fprs and fpscr if we don't have them.
5392 (ppc_linux_supply_fpregset): Don't supply fp regs and fpscr if we
5393 don't have them.
5394 * ppcnbsd-nat.c: #include "gdb_assert.h".
5395 (getfpregs_supplies): Assert that we have floating-point registers.
5396 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg): Same.
5397 * ppcobsd-tdep.c: #include "gdb_assert.h".
5398 (ppcobsd_supply_gregset, ppcobsd_collect_gregset): Assert that we
5399 have floating-point registers.
5400 * rs6000-nat.c (regmap): Don't match against the fpscr and
5401 floating point register numbers if they don't exist.
5402 (fetch_inferior_registers, store_inferior_registers,
5403 fetch_core_registers): Only fetch / store / supply the
5404 floating-point registers and the fpscr if we have them.
5405 * Makefile.in (ppc-bdm.o, ppc-linux-nat.o, ppcnbsd-nat.o)
5406 (ppcobsd-tdep.o): Update dependencies.
5407
5408 2004-05-10 Andrew Cagney <cagney@redhat.com>
5409
5410 * infrun.c (through_sigtramp_breakpoint): Delete variable.
5411 (context_switch): Do not switch through_sigtramp_breakpoint.
5412 * gdbthread.h (save_infrun_state, load_infrun_state)
5413 (struct thread_info): Delete through_sigtramp_breakpoint parameter
5414 and structure member.
5415 * thread.c (load_infrun_state, save_infrun_state): Update.
5416
5417 2004-05-10 Mark Kettenis <kettenis@gnu.org>
5418
5419 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Call m68k_svr4_init_abi.
5420
5421 2004-05-10 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
5422
5423 * acinclude.m4: Quote macro names being defined by AC_DEFUN
5424 throughout.
5425 * aclocal.m4: Regenerate.
5426
5427 2004-05-10 Nathan J. Williams <nathanw@wasabisystems.com>
5428
5429 * alphanbsd-tdep.c: Fix include of "gdb_string.h".
5430
5431 2004-05-10 Andrew Cagney <cagney@redhat.com>
5432
5433 * infrun.c (check_sigtramp2): Delete function.
5434 (handle_inferior_event): When single stepping, and taking a
5435 signal, set a breakpoint at the signal return address. Delete
5436 redundant calls to check_sigtramp2.
5437 (insert_step_resume_breakpoint): New function.
5438 (through_sigtramp_breakpoint, handle_inferior_event)
5439 (follow_exec, wait_for_inferior, fetch_inferior_event)
5440 (currently_stepping, keep_going): Delete most uses of
5441 through_sigtramp_breakpoint, not that it should be deleted.
5442 (delete_breakpoint_current_contents): Delete function.
5443
5444 2004-05-10 Randolph Chung <tausq@debian.org>
5445
5446 * config/pa/linux.mt (TM_FILE): Use new tm-linux.h for hppa-linux
5447 target.
5448 * config/pa/tm-linux.h: New file.
5449
5450 2004-05-10 Daniel Jacobowitz <drow@mvista.com>
5451
5452 * cli/cli-setshow.c (cmd_show_list): Check for "show" in the middle
5453 of prefixes. Don't print the prefix twice in the CLI.
5454
5455 2004-05-10 Jim Blandy <jimb@redhat.com>
5456
5457 * rs6000-tdep.c (ppc_collect_gregset): When regnum == -1, do
5458 collect all the gprs.
5459
5460 * rs6000-tdep.c (ppc_collect_gregset): Correct off-by-one error in
5461 loop collecting gprs.
5462
5463 2004-05-09 Andrew Cagney <cagney@redhat.com>
5464
5465 * remote-vx.c (net_step): Delete step-range code.
5466 * remote.c (remote_resume, init_all_packet_configs)
5467 (set_remote_protocol_E_packet_cmd)
5468 (show_remote_protocol_E_packet_cmd)
5469 (remote_protocol_E, show_remote_cmd, _initialize_remote)
5470 (remote_protocol_e, set_remote_protocol_e_packet_cmd)
5471 (show_remote_protocol_e_packet_cmd): Ditto.
5472
5473 2004-05-09 Mark Kettenis <kettenis@gnu.org>
5474
5475 * hppa-tdep.h (enum hppa_regnum): Name enum, add HPPA_R1_REGNUM.
5476
5477 * hppa-tdep.h: Update copyright year.
5478 (struct trad_frame_saved_reg): Add opaque declaration.
5479
5480 * amd64-tdep.c (amd64_return_value): Implement
5481 RETURN_VALUE_ABI_RETURNS_ADDRESS.
5482
5483 * m68k-tdep.c (m68k_convert_register_p, m68k_register_to_value)
5484 (m68k_value_to_register): New functions.
5485 (m68k_gdbarch_init): Set convert_register_p, register_to_value and
5486 value_to_register.
5487
5488 * defs.h (enum return_value_convention): Add
5489 RETURN_VALUE_ABI_RETURNS_ADDRESS and
5490 RETURN_VALUE_ABI_PRESERVES_ADDRESS.
5491 * infcmd.c (legacy_return_value): New function.
5492 (print_return_value): Rwerite to implement
5493 RETURN_VALUE_ABI_RETURNS_ADDRESS.
5494 * values.c (using_struct_return): Check for inequality to
5495 RETURN_VALUE_REGISTER_CONVENTION instead of equality to
5496 RETURN_VALUE_STRUCT_CONVENTION.
5497 * i386-tdep.c (i386_return_value): Implement
5498 RETURN_VALUE_ABI_RETURNS_ADDRESS.
5499
5500 * vax-tdep.c: Tweak comments. Reorder include files. Don't
5501 include "symtab.h", "opcode/vax.h" and "inferior.h".
5502 (vax_skip_prologue): Replace calls to read_memory_integer by calls
5503 to read_memory_unsigned_integer.
5504 (vax_gdbarch_init): Reorder.
5505 (_initialize_vax_tdep): Spell out prototype.
5506 * Makefile.in (vax-tdep.o): Update dependencies.
5507
5508 2004-05-08 Andrew Cagney <cagney@redhat.com>
5509
5510 * infrun.c (resume): Delete call to DO_DEFERRED_STORES.
5511 * target.c (target_detach, target_disconnect): Ditto.
5512
5513 * infcall.c (call_function_by_hand): When no
5514 DEPRECATED_SAVE_DUMMY_FRAME_TOS call generic_save_dummy_frame_tos.
5515 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set
5516 DEPRECATED_SAVE_DUMMY_FRAME_TOS.
5517 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5518 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5519
5520 * gdbarch.sh (DEPRECATED_FIX_CALL_DUMMY): Delete.
5521 * gdbarch.h, gdbarch.c: Re-generate.
5522 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
5523 deprecated_fix_call_dummy.
5524 * v850-tdep.c (v850_gdbarch_init): Ditto.
5525 * infcall.c (call_function_by_hand): Do not call
5526 DEPRECATED_FIX_CALL_DUMMY.
5527
5528 * gdbarch.sh (DEPRECATED_CALL_DUMMY_WORDS)
5529 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Delete.
5530 * gdbarch.h, gdbarch.c: Re-generate.
5531 * arm-linux-tdep.c (arm_linux_call_dummy_words)
5532 (arm_linux_init_abi): Do not set deprecated_call_dummy_words or
5533 deprecated_sizeof_call_dummy_words.
5534 * arm-tdep.c (arm_call_dummy_words, arm_gdbarch_init): Ditto.
5535 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
5536 * v850-tdep.c (v850_gdbarch_init): Ditto.
5537 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
5538 * ns32k-tdep.c (ns32k_call_dummy_words, ns32k_gdbarch_init): Ditto.
5539 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5540 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5541 * arch-utils.h (legacy_call_dummy_words)
5542 (legacy_sizeof_call_dummy_words): Delete declarations.
5543 * arch-utils.c (legacy_call_dummy_words)
5544 (legacy_sizeof_call_dummy_words): Delete variables.
5545
5546 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Delete.
5547 * gdbarch.h, gdbarch.c: Re-generate.
5548 * inferior.h (PUSH_DUMMY_FRAME): Delete macro.
5549 * infcall.c (call_function_by_hand): Eliminate call to
5550 DEPRECATED_PUSH_DUMMY_FRAME.
5551 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
5552 push_dummy_frame.
5553 (ns32k_push_dummy_frame): Delete function.
5554
5555 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
5556 deprecated_call_dummy_breakpoint_offset or
5557 deprecated_call_dummy_start_offset.
5558 * dummy-frame.c, arm-tdep.c: Update comments.
5559 * gdbarch.sh (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET)
5560 (DEPRECATED_CALL_DUMMY_START_OFFSET): Delete.
5561 * gdbarch.h, gdbarch.c: Re-generate.
5562
5563 * infcall.c (legacy_push_dummy_code): Delete function.
5564 (push_dummy_code): Delete call.
5565
5566 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete.
5567 * gdbarch.h, gdbarch.c: Re-generate.
5568 * blockframe.c (legacy_frame_chain_valid): Simplify by eliminating
5569 DEPRECATED_USE_GENERIC_DUMMY_FRAMES.
5570 * infcall.c (legacy_push_dummy_code, call_function_by_hand): Ditto.
5571 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Ditto.
5572
5573 * breakpoint.h (deprecated_frame_in_dummy): Delete declaration.
5574 (struct frame_info): Delete opaque declaration.
5575 * breakpoint.c (deprecated_frame_in_dummy): Delete function.
5576 * frame.c (get_frame_type): Delete call.
5577
5578 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
5579 pc_in_call_dummy.
5580 * inferior.h (deprecated_pc_in_call_dummy_on_stack): Delete.
5581 * blockframe.c (deprecated_pc_in_call_dummy_on_stack): Delete.
5582
5583 2004-05-08 Mark Kettenis <kettenis@gnu.org>
5584
5585 * alphanbsd-tdep.c: Include "gdb_string.h".
5586 * armnbsd-tdep.c: Update copyright year.
5587 Include "gdb_string.h".
5588 * Makefile.in (alphanbsd-tdep.o, armnbsd-tdep.o): Update
5589 dependencies.
5590
5591 * delta68-nat.c: Remove file.
5592 * m68k-tdep.c (delta68_in_sigtramp, delta68_frame_args_address)
5593 (delta68_frame_saved_pc, delta68_frame_num_args): Remove functions.
5594 * Makefile.in (ALLDEPFILES): Remove delta68-nat.c.
5595 (delta68-nat.o): Remove dependency.
5596
5597 * m68k-tdep.c (m68k_frameless_function_invocation): Remove
5598 function.
5599 (m68k_gdbarch_init): Don't set
5600 deprecated_frameless_function_invocation.
5601
5602 2004-05-07 Randolph Chung <tausq@debian.org>
5603
5604 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Use
5605 read_memory_nobpt for code reading when doing frame unwinding.
5606 * hppa-linux-tdep.c (insns_match_pattern): Likewise.
5607
5608 2004-05-07 Randolph Chung <tausq@debian.org>
5609
5610 * hppa-linux-tdep.c (hppa_linux_sigtramp_find_sigcontext): Pass in pc
5611 instead of sp, handle sigaltstack case.
5612 (hppa_linux_sigtramp_frame_unwind_cache): Adjust calls to
5613 hppa_linux_sigtramp_find_sigcontext, and set base to the frame of the
5614 signal handler and not that of the caller.
5615 (hppa_linux_sigtramp_unwind_sniffer): Adjust calls to
5616 hppa_linux_sigtramp_find_sigcontext.
5617
5618 2004-05-07 Randolph Chung <tausq@debian.org>
5619
5620 * Makefile.in (ALLDEPFILES): Add hppa-linux-tdep.c and
5621 hppa-linux-nat.c.
5622 (hppa-linux-tdep.o, hppa-linux-nat.o): Define rules.
5623 * hppa-linux-nat.c (fetch_register, store_register): Define.
5624 (fetch_inferior_registers, store_inferior_registers): Define.
5625 (supply_gregset): Add comment and clean up some unneeded code.
5626 (fill_gregset): Add comment and fix so that it saves registers in
5627 the right place in the gregset.
5628 (fill_fpregset): Fix buffer overrun problem.
5629 * config/pa/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
5630
5631 2004-05-07 Randolph Chung <tausq@debian.org>
5632
5633 * hppa-tdep.c (hppa_frame_prev_register_helper): New function to
5634 do common handling of the pcoqt register.
5635 (hppa_frame_prev_register, hppa_stub_frame_prev_register): Convert
5636 to use helper function.
5637 (hppa_frame_unwind_sniffer): Only use if unwind entry is present.
5638 (hppa_fallback_frame_cache, hppa_fallback_frame_this_id)
5639 (hppa_fallback_frame_prev_register, hppa_fallback_frame_unwind): New
5640 generic fallback unwinder when all else fails.
5641 (hppa_gdbarch_init): Add fallback sniffer.
5642 * hppa-tdep.h (hppa_frame_prev_register_helper): Prototype.
5643 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register): Convert
5644 to use helper function.
5645
5646 2004-05-08 Joel Brobecker <brobecker@gnat.com>
5647
5648 * config/djgpp/fnchange.lst: Add translation rules for
5649 gdb.arch/powerpc-aix-prologue.c and gdb.arch/powerpc-aix-prologue.exp.
5650
5651 2004-05-08 Mark Kettenis <kettenis@gnu.org>
5652
5653 * frame.c (get_prev_frame_1): Work around GCC bug.
5654 * frame.h: Add comment about GCC bug.
5655
5656 2004-05-07 Andrew Cagney <cagney@redhat.com>
5657
5658 * observer.c: Include "commands.h" and "gdbcmd.h".
5659 (observer_debug, _initialize_observer): Add the
5660 command "set/show debug observer".
5661 * observer.sh: When observer debugging, log notify calls.
5662 * Makefile.in (observer.o): Update dependencies.
5663
5664 2004-05-07 Jason Molenda (jmolenda@apple.com)
5665
5666 * cli/cli-decode.c: Fix "SHOW_DOR" comment typeos.
5667
5668 2004-05-07 Jim Blandy <jimb@redhat.com>
5669
5670 * aix-thread.c (fetch_regs_kernel_thread, fill_gprs64,
5671 fill_gprs32, store_regs_kernel_thread): Use tdep->ppc_gp0_regnum
5672 to recognize gpr regnums, instead of assuming that
5673 tdep->ppc_fp0_regnum marks the end of the general-purpose
5674 registers.
5675
5676 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Assert that
5677 the given architecture has floating-point registers.
5678
5679 2004-05-07 Andrew Cagney <cagney@redhat.com>
5680
5681 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Replace with
5682 macro defined to 1.
5683 * gdbarch.h, gdbarch.c: Re-generate.
5684 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
5685 deprecated_use_generic_dummy_frames.
5686
5687 2004-05-07 Brian Ford <ford@vss.fsi.com>
5688
5689 * NEWS: Mention Cygwin DWARF 2 support.
5690
5691 2004-05-07 Andrew Cagney <cagney@redhat.com>
5692
5693 * objfiles.h (struct entry_info): Delete unused fields
5694 deprecated_entry_file_lowpc and deprecated_entry_file_highpc.
5695 * objfiles.c (init_entry_point_info, objfile_relocate): Update.
5696 * mipsread.c (mipscoff_symfile_read): Update.
5697 * mdebugread.c (parse_partial_symbols): Update.
5698 * dwarfread.c (read_file_scope): Update.
5699 * dwarf2read.c (read_file_scope): Update.
5700 * dbxread.c (read_dbx_symtab, read_dbx_symtab): Update.
5701 * coffread.c (complete_symtab): Update.
5702
5703 2004-05-07 Mark Kettenis <kettenis@gnu.org>
5704
5705 * infcall.c (_initialize_infcall): Fix typo.
5706
5707 2004-05-07 Andrew Cagney <cagney@redhat.com>
5708
5709 * cli/cli-decode.c (add_setshow_zinteger_cmd): New function.
5710 * command.h (add_setshow_zinteger_cmd): Declare.
5711
5712 2004-05-06 Randolph Chung <tausq@debian.org>
5713
5714 * config/pa/tm-hppa.h (RO_REGNUM, FLAGS_REGNUM, RP_REGNUM)
5715 (HPPA_FP_REGNUM, HPPA_SP_REGNUM, SAR_REGNUM, IPSW_REGNUM)
5716 (PCOQ_HEAD_REGNUM, PCSQ_HEAD_REGNUM, PCOQ_TAIL_REGNUM, PCSQ_TAIL_REGNUM)
5717 (EIEM_REGNUM, IIR_REGNUM, ISR_REGNUM, IOR_REGNUM, SR4_REGNUM)
5718 (RCR_REGNUM, PID0_REGNUM, PID1_REGNUM, PID2_REGNUM, PID3_REGNUM)
5719 (CCR_REGNUM, TR0_REGNUM, CR27_REGNUM, HPPA_FP0_REGNUM, FP4_REGNUM)
5720 (ARG0_REGNUM, ARG1_REGNUM, ARG2_REGNUM, ARG3_REGNUM): Move *_REGNUM
5721 definitions ...
5722 * hppa-tdep.h: ... to here, with HPPA_ prefix.
5723 * Makefile.in (hppah-nat.o): Add $(hppa_tdep_h)
5724 * hppa-hpux-tdep.c (hppa32_hpux_frame_find_saved_regs_in_sig)
5725 (hppa64_hpux_frame_find_saved_regs_in_sig)
5726 (child_get_current_exception_event): Add HPPA_ prefix to *_REGNUM usage.
5727 * hppa-linux-nat.c (GR_REGNUM, TR_REGNUM, greg_map): Likewise.
5728 * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum)
5729 (hppa_linux_target_write_pc, hppa_linux_sigtramp_frame_unwind_cache)
5730 (hppa_linux_sigtramp_frame_prev_register): Likewise.
5731 * hppa-tdep.c (hppa32_return_value, hppa64_return_value)
5732 (hppa32_push_dummy_call, hppa64_push_dummy_call, hppa64_frame_align)
5733 (hppa_target_read_pc, hppa_target_write_pc, hppa_frame_cache)
5734 (hppa_frame_prev_register, hppa_stub_frame_unwind_cache)
5735 (hppa_stub_frame_prev_register, hppa_unwind_dummy_id)
5736 (hppa_skip_permanent_breakpoint, hppa_instruction_nullified)
5737 (hppa32_register_type, hppa_cannot_store_register)
5738 (hppa_fetch_pointer_argument, hppa_pseudo_register_read): Likewise.
5739 * hppah-nat.c (store_inferior_registers, fetch_register): Likewise.
5740 * hpread.c (hpread_process_one_debug_symbol): Likewise.
5741 * pa64solib.c (pa64_solib_have_load_event)
5742 (pa64_solib_have_unload_event, pa64_solib_loaded_library_pathname)
5743 (pa64_solib_unloaded_library_pathname): Likewise.
5744 * somsolib.c (som_solib_have_load_event, som_solib_have_unload_event)
5745 (som_solib_library_pathname): Likewise.
5746
5747 2004-05-05 Jim Ingham <jingham@apple.com>
5748
5749 * breakpoint.c (create_breakpoints): Copy the ignore count and
5750 thread id over from the pended breakpoint to the actual
5751 breakpoint.
5752
5753 2004-05-05 Andrew Cagney <cagney@redhat.com>
5754
5755 * gdbarch.sh (PARM_BOUNDARY): Delete.
5756 gdbarch.h, gdbarch.c: Re-generate.
5757 * valops.c (PARM_BOUNDARY): Delete macro.
5758 (value_push): Delete PARM_BOUNDARY code.
5759 * m68k-tdep.c (m68k_gdbarch_init): Do not set parm_boundary.
5760
5761 2004-05-04 Jim Blandy <jimb@redhat.com>
5762
5763 * ppc-linux-nat.c (fetch_ppc_registers, store_ppc_registers):
5764 Don't assume that the gprs, fprs, and UISA sprs are
5765 contiguous, start at register number zero, and end with fpscr.
5766 Instead, use the numbers from the tdep structure.
5767
5768 * config/rs6000/tm-rs6000.h (FP0_REGNUM): Document that this
5769 should no longer be used in code specific to the RS6000 and its
5770 derivatives.
5771 * ppc-tdep.h (struct gdbarch_tdep): Add 'ppc_fp0_regnum' member.
5772 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize
5773 tdep->ppc_fp0_regnum.
5774 (ppc_supply_fpregset, ppc_collect_fpregset)
5775 (rs6000_push_dummy_call, rs6000_extract_return_value)
5776 (rs6000_dwarf2_stab_reg_to_regnum, rs6000_store_return_value)
5777 (rs6000_frame_cache): Use tdep->ppc_fp0_regnum instead of
5778 FP0_REGNUM.
5779 * aix-thread.c (supply_fprs, fetch_regs_kernel_thread)
5780 (fill_gprs64, fill_gprs32, fill_fprs, store_regs_kernel_thread):
5781 Same.
5782 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_fetch_registers,
5783 bdm_ppc_store_registers): Same.
5784 * ppc-linux-nat.c (ppc_register_u_addr, fetch_register)
5785 (store_register, fill_fpregset): Same.
5786 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache)
5787 (ppc_linux_supply_fpregset): Same.
5788 * ppcnbsd-nat.c (getfpregs_supplies): Same.
5789 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg):
5790 Same.
5791 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call,
5792 do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call,
5793 ppc64_sysv_abi_return_value): Same.
5794 * rs6000-nat.c (regmap, fetch_inferior_registers)
5795 (store_inferior_registers, fetch_core_registers): Same.
5796
5797 2004-05-01 Mark Kettenis <kettenis@gnu.org>
5798
5799 * m68knbsd-nat.c: Remove file.
5800 * m68knbsd-tdep.c: Remove file.
5801 * Makefile.in: (m68knbsd-nat.o, m68knbsd-tdep.o): Remove
5802 dependencies.
5803 * configure.host: Add m68k-*-netbsdelf*.
5804 * configure.tgt (m68k-*-netbsd*): Set gdb_target to nbsd.
5805 * config/m68k/nbsdaout.mh (NATDEPFILES): Add m68kbsd-nat.o,
5806 solib.o and solib-sunos.o. Remove m68knbsd-nat.o, corelow.o.
5807 (XM_FILE): Remove.
5808 * config/m68k/nbsdelf.mh: New file.
5809 * config/m68k/nbsd.mt: New file.
5810 * config/m68k/nbsdaout.mt: Remove file.
5811 * config/m68k/tm-nbsd.h: Don't include <sys/param.h>,
5812 <machine/vmparam.h> and "m68k/tm-m68k.h". Include "solib.h".
5813 (BPT_VECTOR, STACK_END_ADDR): Remove defines.
5814 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Likewise.
5815 (use_struct_convention): Remove prototype.
5816 (USE_STRUCT_CONVENTION): Remove define.
5817 * config/m68k/xm-nbsd.h: Remove file.
5818
5819 2004-05-04 Michael Snyder <msnyder@redhat.com>
5820
5821 * m68k-tdep.c (m68k_gdbarch_init): Default to using
5822 reg_struct_return method (as gcc usually does for cross targets).
5823
5824 2004-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5825
5826 Committed by Andrew Cagney.
5827 * s390-tdep.c (s390_sigtramp_frame_unwind_cache): Account for
5828 alignment padding when accessing ucontext struct members.
5829
5830 2004-05-04 Jim Blandy <jimb@redhat.com>
5831
5832 * config/ppc-tdep.h (struct gdbarch_tdep): Delete
5833 'ppc_gplast_regnum' member.
5834 (ppc_num_gprs): New enum constant.
5835 * ppc-linux-nat.c (ppc_register_u_addr): Use tdep->ppc_gp0_regnum
5836 and ppc_num_gprs instead of tdep->ppc_gplast_regnum.
5837 * rs6000-nat.c (regmap, fetch_inferior_registers,
5838 store_inferior_registers): Same.
5839 * rs6000-tdep.c (e500_pseudo_register_read)
5840 (e500_pseudo_register_write): Same.
5841 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gplast_regnum.
5842
5843 * config/rs6000/tm-rs6000.h (FPLAST_REGNUM): Delete #definition.
5844 * ppc-tdep.h (ppc_num_fprs): New enum constant.
5845 * aix-thread.c (fetch_regs_kernel_thread, fill_fprs,
5846 store_regs_kernel_thread): Use FP0_REGNUM + ppc_num_fprs, not
5847 FPLAST_REGNUM.
5848 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
5849 Same.
5850 * ppc-linux-nat.c (ppc_register_u_addr): Same.
5851 * rs6000-nat.c (regmap, fetch_inferior_registers)
5852 (store_inferior_registers): Same.
5853
5854 * aix-thread.c (fill_fprs): Fix off-by-one error comparing regno
5855 with FPLAST_REGNUM.
5856
5857 2004-05-03 Joel Brobecker <brobecker@gnat.com>
5858
5859 * dwarf2read.c (dwarf2_create_include_psymtab): Fix build
5860 failure detected by recent versions of GCC.
5861 (psymtab_to_symtab_1): No longer use the PST_PRIVATE macro
5862 to be consistent with the usage in dwarf2_create_include_psymtab.
5863
5864 2004-05-03 Michael Snyder <msnyder@redhat.com>
5865
5866 * mips-tdep.c (mips_gdbarch_init): Fix typo in comment.
5867 (heuristic_proc_start): Whitespace cleanup.
5868
5869 2004-05-04 Mark Kettenis <kettenis@gnu.org>
5870
5871 * sun3-nat.c: Remove file.
5872 * Makefile.in (tm-sun3.h tm-altos.h tm-sun2.h tm-3b1.h): Remove
5873 dependencies.
5874 (ALLDEPFILES): Remove sun3-nat.c.
5875 (sun3-nat.o): Remove dependencies.
5876
5877 * i386-interix-nat.c, i386-interix-tdep.c,
5878 config/i386/nm-interix.h, config/i386/interix.mh,
5879 config/i386/interix.mt: Remove files.
5880 * Makefile.in (i386-interix-nat.o, i386-interix-tdep.o): Remove
5881 dependencies.
5882
5883 2004-05-03 Mark Kettenis <kettenis@gnu.org>
5884
5885 * m68k-tdep.h (struct gdbarch_tdep): Add member
5886 struct_value_regnum.
5887 (m68k_svr4_init_abi): New prototype.
5888 * m68k-tdep.c: Include "floatformat.h". Add comment about all the
5889 different calling conventions.
5890 (m68k_extract_return_value): Remove code dealing with single-field
5891 structs.
5892 (m68k_store_return_value): Remove code dealing with single-field
5893 structs. Correctly store return values of 5, 6, 7 or 8 bytes.
5894 (m68k_extract_struct_value_address): Remove function.
5895 (m68k_svr4_extract_return_value,m68k_svr4_store_return_value)
5896 (m68k_reg_struct_return_p, m68k_return_value)
5897 (m68k_svr4_return_value): New functions.
5898 (m68k_use_struct_convention): Remove function.
5899 (m68k_push_dummy_call): Use new struct_value_regnum member of
5900 `struct gdbarch_tdep' instead of hardcoded register number to
5901 store STRUCT_ADDR.
5902 (m68k_svr4_init_abi): New function.
5903 (m68k_gdbarch_init): Don't set extract_return_value,
5904 store_return_values, deprecated_extract_struct_value_address and
5905 use_struct_convention. Set return_value instead. Initialize new
5906 struct_value_regnum member of `struct gdbarch_tdep'.
5907 * m68klinux-tdep.c: Update copyright year.
5908 (m68k_linux_extract_return_value, m68k_linux_store_return_value)
5909 (m68k_linux_extract_struct_value_address): Remove function.
5910 (m68k_linux_init_abi): Don't set extract_return_value,
5911 store_return_values, deprecated_extract_struct_value_address and
5912 use_struct_convention. Call m68k_svr4_init_abi but override the
5913 new struct_value_regnum member of `struct gdbarch_tdep'.
5914 * Makefile.in (m68k-tdep.o): Update dependencies.
5915
5916 2004-05-03 J. Brobecker <brobecker@gnat.com>
5917
5918 * dwarf2read.c (line_header): Add new included_p field in
5919 field file_names.
5920 (partial_die_info): New field has_stmt_list. New field line_offset.
5921 (dwarf2_create_include_psymtab): New function.
5922 (dwarf2_build_include_psymtabs): New function.
5923 (add_file_name): Add forward declaration. Initialize new field.
5924 (dwarf_decode_lines): Add new parameter. Enhance this procedure
5925 to be able to determine the list of files included by the
5926 given unit, and build their associated psymtabs.
5927 (dwarf2_build_psymtabs_hard): Build the psymtabs for the included
5928 files as well.
5929 (psymtab_to_symtab_1): Build the symtabs of all dependencies as well.
5930 (read_file_scope): Update call to dwarf_decode_lines.
5931 (read_partial_die): Handle DW_AT_stmt_list attributes.
5932
5933 2004-05-02 Michael Chastain <mec.gnu@mindspring.com>
5934
5935 Unfix PR gdb/1626.
5936 * configure.in: Revert special case for osf5.*.
5937 * configure: Regenerate.
5938
5939 2004-05-02 Jim Blandy <jimb@redhat.com>
5940
5941 Move the symbol-file-from-memory functions into their own file.
5942 * symfile-mem.c, symfile-mem.h: New files.
5943 * symfile.c (symbol_file_add_from_bfd): New function.
5944 (symbol_file_add): Call symbol_file_add_from_bfd.
5945 (symbol_file_add_from_memory, add_symbol_file_from_memory_command):
5946 Moved to symfile-mem.c.
5947 (_initialize_symfile): Move definition of
5948 add-symbol-file-from-memory command to symfile-mem.c.
5949 * symfile.h (symbol_file_add_from_bfd): New declaration.
5950 * config/i386/linux.mt (TDEPFILES): Add symfile-mem.o.
5951 * config/powerpc/linux.mt (TDEPFILES): Same.
5952 * Makefile.in (SFILES): Add symfile-mem.c.
5953 (symfile_mem_h): New variable.
5954 (HFILES_NO_SRCDIR): Add symfile-mem.h.
5955 (symfile-mem.o): New rule.
5956
5957 2004-05-01 Andrew Cagney <cagney@redhat.com>
5958
5959 * breakpoint.c (insert_bp_location): Use get_frame_id, and
5960 frame_find_by_id instead of frame_relative_level.
5961 (do_enable_breakpoint): Ditto.
5962 * thread.c: Update copyright.
5963 (info_threads_command): Ditto, simplify.
5964
5965 * frame.c (deprecated_generic_get_saved_register): Delete
5966 function, moved to "xstormy16-tdep.c".
5967 * xstormy16-tdep.c (xstormy16_get_saved_register): Inline
5968 deprecated_generic_get_saved_register from "frame.c".
5969 (xstormy16_frame_saved_register): Call
5970 xstormy16_get_saved_register.
5971 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Make
5972 static.
5973 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Delete.
5974 * frame.h (deprecated_generic_get_saved_register): Delete.
5975
5976 2004-05-01 Michael Chastain <mec.gnu@mindspring.com>
5977
5978 * dwarfread.c: Update documentation on the state of dwarf-1.
5979
5980 2004-05-01 Andrew Cagney <cagney@redhat.com>
5981
5982 * stack.c (select_frame_command): Delete call to
5983 frame_relative_level.
5984 (print_frame, set_backtrace_limit_command, backtrace_limit_info):
5985 Delete #if0 code.
5986 (frame_info): Do not print FRAMELESS.
5987 (print_block_frame_labels): Replace DEPRECATED_STREQ.
5988 (catch_info): Delete #if0 code.
5989
5990 * frame.c (create_sentinel_frame): Set type to SENTINEL_FRAME.
5991 * dummy-frame.c (dummy_frame_this_id): Use get_frame_type, instead
5992 of frame_relative_level.
5993 * sentinel-frame.c (sentinel_frame_unwinder): Set unwinder's type
5994 to SENTINEL_FRAME.
5995 * frame.h (enum frame_type): Add SENTINEL_FRAME.
5996 * s390-tdep.c (s390_prologue_frame_unwind_cache): Delete calls to
5997 frame_relative_level.
5998
5999 * frame.h (deprecated_set_frame_type): Delete declaration.
6000 * frame.c (deprecated_set_frame_type): Delete function, update
6001 comments.
6002
6003 * gdbarch.sh (DEPRECATED_PC_IN_SIGTRAMP): Delete.
6004 * gdbarch.h, gdbarch.c: Re-generate.
6005 * shnbsd-tdep.c (shnbsd_init_abi): Do not set pc_in_sigtramp.
6006 (shnbsd_pc_in_sigtramp): Delete.
6007 * i386-interix-tdep.c (i386_interix_init_abi): Do not set
6008 pc_in_sigtramp.
6009 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Do not set
6010 pc_in_sigtramp.
6011 * frame.h: Update comments.
6012 * ppc-linux-tdep.c: Update comments.
6013 * breakpoint.c (bpstat_what): Update comments.
6014
6015 * Makefile.in (m68klinux-tdep.o, m68klinux-nat.o): Fix
6016 m68klinux-tdep.o's dependencies, were previously added to
6017 m68klinux-nat.o.
6018
6019 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Use pc_in_sigtramp.
6020 * alpha-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp.
6021 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
6022 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
6023 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
6024
6025 * Makefile.in (m68klinux-nat.o): Update dependencies.
6026 * m68klinux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
6027 (m68k_linux_sigtramp_frame_cache)
6028 (m68k_linux_sigtramp_frame_this_id)
6029 (m68k_linux_sigtramp_frame_prev_register)
6030 (m68k_linux_sigtramp_frame_unwind)
6031 (m68k_linux_sigtramp_frame_sniffer)
6032 (struct m68k_linux_sigtramp_info, m68k_linux_init_abi): Code from
6033 m68k-tdep.h and m68k-tdep.c, add "linux" to function and variable
6034 names, use trad-frame.h.
6035 * m68k-tdep.h (struct gdbarch_tdep): Delete get_sigtramp_info.
6036 (struct m68k_sigtramp_info): Delete.
6037 * m68k-tdep.c (m68k_sigtramp_frame_cache)
6038 (m68k_sigtramp_frame_this_id, m68k_sigtramp_frame_prev_register)
6039 (m68k_sigtramp_frame_unwind, m68k_sigtramp_frame_sniffer)
6040 (m68k_gdbarch_init): Delete all the sigtramp code, moved to
6041 "m68klinux-tdep.c".
6042
6043 * infrun.c (check_sigtramp2): Delete check for
6044 DEPRECATED_PC_IN_SIGTRAMP and INNER_THAN.
6045
6046 2004-05-01 Mark Kettenis <kettenis@gnu.org>
6047
6048 * m68k-tdep.h (m68kbsd_fpreg_offset): New prototype.
6049
6050 2004-05-01 Andrew Cagney <cagney@redhat.com>
6051
6052 * frv-linux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
6053 (frv_linux_sigtramp_frame_cache)
6054 (frv_linux_sigtramp_frame_this_id)
6055 (frv_linux_sigtramp_frame_prev_register)
6056 (frv_linux_sigtramp_frame_unwind)
6057 (frv_linux_sigtramp_frame_sniffer): Copied from frv-tdep.c,
6058 include "linux" in function and variable names, directly call
6059 frv_linux_pc_in_sigtramp and frv_linux_sigcontext_reg_addr, use
6060 the latest trad-frame code.
6061 (frv_linux_init_abi): Append frv_linux_sigtramp_frame_sniffer, do
6062 not set frv_sigcontext_reg_addr or deprecated_pc_in_sigtramp
6063 * Makefile.in (frv-linux-tdep.o): Update dependencies.
6064 * frv-tdep.h (frv_set_sigcontext_reg_addr): Delete declaration.
6065 * frv-tdep.c (frv_sigtramp_frame_cache)
6066 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
6067 (frv_sigtramp_frame_unwind, frv_sigtramp_frame_sniffer): Moved to
6068 frv-linux-tdep.c.
6069 (frv_gdbarch_init): Do not append a sigtramp sniffer.
6070 (struct gdbarch_tdep): Delete sigcontext_reg_addr.
6071 (frv_set_sigcontext_reg_addr): Delete function.
6072
6073 * gdbarch.sh (DEPRECATED_SIGTRAMP_START)
6074 (DEPRECATED_SIGTRAMP_END): Delete.
6075 * gdbarch.h, gdbarch.c: Re-generate.
6076 * arch-utils.c (legacy_pc_in_sigtramp): Simplify.
6077 * config/vax/tm-vaxbsd.h: Update copyright.
6078 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
6079 (DEPRECATED_IN_SIGTRAMP): Define.
6080 * config/m68k/tm-nbsd.h: Update copyright.
6081 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
6082 (DEPRECATED_IN_SIGTRAMP): Define.
6083
6084 2004-05-01 Mark Kettenis <kettenis@gnu.org>
6085
6086 * dwarf2-frame.c (read_encoded_value): Handle DW_EH_PE_funcrel
6087 encondings. Fixes PR gdb/1628.
6088
6089 * dwarf2-frame.c (execute_cfa_program): Complain if we encounter a
6090 DW_CFA_restore state without a matching DW_CFA_remember_state
6091 instead of aborting. Fixes PR backtrace/1589.
6092
6093 2004-04-30 Joel Brobecker <brobecker@gnat.com>
6094
6095 * MAINTAINERS: Add self as AIX maintainer.
6096 Update my e-mail address in write-after-approval section.
6097
6098 2004-04-30 Andrew Cagney <cagney@redhat.com>
6099
6100 * frame.c (frame_type_from_pc): Delete call to PC_IN_SIGTRAMP.
6101 (legacy_get_prev_frame): Ditto.
6102
6103 * mips-tdep.c (mips_pc_in_sigtramp): Delete.
6104 (mips_gdbarch_init): Do not set pc_in_sigtramp.
6105 * mipsread.c (sigtramp_address): Delete extern variable.
6106 (mipscoff_new_init): Delete reference.
6107 * mdebugread.c (sigtramp_address, sigtramp_end): Delete variables.
6108 (fixup_sigtramp): Delete function.
6109 * config/mips/tm-mips.h (sigtramp_address, sigtramp_end)
6110 (fixup_sigtramp): Delete declarations.
6111
6112 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Do not set
6113 deprecated_pc_in_sigtramp.
6114 (ppcnbsd_pc_in_sigtramp): Delete function.
6115
6116 2004-05-01 Mark Kettenis <kettenis@gnu.org>
6117
6118 * config/m68k/nm-nbsd.h: Tweak comments.
6119 * config/m68k/nm-nbsdaout.h: Likewise.
6120
6121 2004-04-30 Andrew Cagney <cagney@redhat.com>
6122
6123 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Call
6124 legacy_pc_in_sigtramp.
6125 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Ditto.
6126
6127 2004-05-01 Mark Kettenis <kettenis@gnu.org>
6128
6129 Add OpenBSD/m68k support.
6130 * NEWS (New native configurations): Mention OpenBSD/m68k.
6131 * m68kbsd-tdep.c: New file.
6132 * m68kbsd-nat.c: New file.
6133 * Makefile.in (ALLDEPFILES): Add m68kbsd-nat.c and m68kbsd-tdep.c.
6134 (m68kbsd-nat.o, m68kbsd-tdep.o): New dependencies.
6135 * configure.host: Add m68k-*-openbsd.
6136 * configure.tgt: Add m68k-*-openbsd.
6137 * config/m68k/tm-obsd.h: New file.
6138 * config/m68k/obsd.mt: New file.
6139 * config/m68k/obsd.mh: New file.
6140 * config/djgpp/fnchange.lst: Add entries for m68kbsd-nat.c and
6141 m68kbsd-tdep.c.
6142
6143 2004-04-30 Andrew Cagney <cagney@redhat.com>
6144
6145 * mipsnbsd-tdep.c (mipsnbsd_pc_in_sigtramp): Delete function.
6146 (mipsnbsd_init_abi): Do not set pc_in_sigtramp.
6147
6148 2004-04-30 Mark Kettenis <kettenis@gnu.org>
6149
6150 * m68k-tdep.c (REMOTE_BPT_VECTOR): Remove define.
6151 * config/m68k/tm-nbsd.h (REMOTE_BPT_VECTOR): Remove define.
6152
6153 2004-04-30 Brian Ford <ford@vss.fsi.com>
6154
6155 Revert 2004-04-16 change.
6156 * i386-tdep.c (i386_gdbarch_init): Fix comment typos.
6157 (i386_coff_init_abi): Remove.
6158 * i386-tdep.h (i386_coff_init_abi): Remove.
6159 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Remove call to above.
6160
6161 2004-04-30 Andrew Cagney <cagney@redhat.com>
6162
6163 * blockframe.c (find_pc_partial_function): Delete use of
6164 DEPRECATED_PC_IN_SIGTRAMP, DEPRECATED_SIGTRAMP_START and
6165 DEPRECATED_SIGTRAMP_END.
6166
6167 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Delete.
6168 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Delete.
6169 * config/mips/tm-nbsd.h: Delete undef DEPRECATED_IN_SIGTRAMP.
6170 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Delete.
6171 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Delete.
6172
6173 * defs.h (deprecated_inside_entry_file): Delete declaration.
6174 * blockframe.c (deprecated_inside_entry_file): Delete function.
6175 (legacy_frame_chain_valid): Delete call.
6176 * sh64-tdep.c (sh64_frame_chain): Delete call.
6177 * objfiles.h: Update comments.
6178 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Delete
6179 call.
6180 * frame.c (get_prev_frame): Delete call, update comments.
6181
6182 2004-04-30 Brian Ford <ford@vss.fsi.com>
6183
6184 * MAINTAINERS (Write After Approval): Add myself.
6185
6186 2004-04-30 Andrew Cagney <cagney@redhat.com>
6187
6188 * gdbarch.sh (BELIEVE_PCC_PROMOTION_TYPE): Delete.
6189 * gdbarch.h, gdbarch.c: Re-generate.
6190 * stabsread.c (define_symbol): Delete BELIEVE_PCC_PROMOTION_TYPE
6191 code.
6192
6193 2004-04-30 Andrew Cagney <cagney@redhat.com>
6194
6195 * gdb-events.sh (selected_thread_changed)
6196 (selected_frame_level_changed, target_changed): Delete.
6197 * gdb-events.h, gdb-events.c: Re-generate.
6198 * valops.c (value_assign): Update.
6199 * stack.c (select_frame_command, up_silently_base)
6200 (down_silently_base): Update.
6201
6202 2004-04-29 Andrew Cagney <cagney@redhat.com>
6203
6204 * mips-tdep.c (mips_register_type): Re-write, handle 32-bit ABI
6205 registers correctly.
6206 (print_gp_register_row, mips32_heuristic_proc_desc)
6207 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
6208 (mips_o64_push_dummy_call, mips_eabi_push_dummy_call): Eliminate
6209 references to mips_isa_regsize.
6210
6211 2004-04-29 Andrew Cagney <cagney@redhat.com>
6212
6213 * mips-tdep.c (struct gdbarch_tdep): Delete
6214 mips_fp_register_double.
6215 (FP_REGISTER_DOUBLE): Delete macro, replace with test for
6216 mips_abi_regsize.
6217 (mips_gdbarch_init): Do not set mips_fp_register_double.
6218 (mips_dump_tdep): Do not print FP_REGISTER_DOUBLE.
6219
6220 2004-04-29 Joel Brobecker <brobecker@gnat.com>
6221
6222 Committed by Andrew Cagney.
6223 * infrun.c (handle_inferior_event): Rely on frame IDs to detect
6224 function calls.
6225
6226 2004-04-29 Andrew Cagney <cagney@redhat.com>
6227
6228 * mips-tdep.c (mips_abi_regsize): Replace tdep parameter with
6229 gdbarch, use mips_abi, update callers.
6230 (mips_stack_argsize): Replace tdep parameter with gdbarch, use
6231 mips_abi_regsize, update callers.
6232 (struct gdbarch_tdep): Delete mips_default_stack_argsize and
6233 mips_default_abi_regsize.
6234 (mips_gdbarch_init): Do not set mips_default_stack_argsize and
6235 mips_default_abi_regsize.
6236
6237 2004-04-29 Andrew Cagney <cagney@redhat.com>
6238
6239 * mips-tdep.c (mips_abi_regsize): Rename mips_saved_regsize.
6240 (mips_abi_regsize_string): Rename mips_saved_regsize_string.
6241 (struct gdbarch_tdep): Rename mips_default_saved_regsize to
6242 mips_default_abi_regsize.
6243 (mips_isa_regsize): Rename mips_regisze.
6244 * mipsnbsd-tdep.c: Update.
6245 * mips-linux-tdep.c: Update.
6246 * irix5-nat.c: Update.
6247 * mips-tdep.h (mips_isa_regsize): Update.
6248
6249 * gdb-events.sh (WITH_GDB_EVENTS): Delete macro and references.
6250 Delete all disabled code.
6251 * gdb-events.h, gdb-events.c: Re-generate.
6252
6253 2004-04-19 Jerome Guitton <guitton@gnat.com>
6254 Mark Kettenis <kettenis@gnu.org>
6255
6256 * i386-tdep.c (i386_skip_prologue): follow the last jump only if
6257 the function begins with a branch instruction.
6258
6259 2004-04-29 Mark Kettenis <kettenis@gnu.org>
6260
6261 * i386-tdep.c: Fix spelling mistakes.
6262
6263 2004-04-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6264 Andrew Cagney <cagney@redhat.com>
6265
6266 * configure.in (mips-sgi-irix5*): Define _KMEMUSER for
6267 <sys/proc.h>.
6268 * acconfig.h: Provide default _KMEMUSER value.
6269 * config.in, configure: Re-generate.
6270 * NEWS: Mention fix.
6271
6272 2004-04-24 Randolph Chung <tausq@debian.org>
6273
6274 * configure.host (hppa*-*-linux*): New target.
6275 * configure.tgt (hppa*-*-linux*): Likewise.
6276 * hppa-tdep.c (hppa_gdbarch_init): Set cannot_fetch_register, move
6277 gdbarch_init_osabi() call earlier so that osabi-specific frame
6278 unwinders can be registered first.
6279 * config/djgpp/fnchange.lst: Add entries for hppa-linux-tdep.c and
6280 hppa-linux-nat.c.
6281 * config/pa/tm-hppa.h (ISR_REGNUM, PID0_REGNUM, PID1_REGNUM)
6282 (PID2_REGNUM, PID3_REGNUM): Add definitions of some register numbers.
6283 * config/pa/linux.mh: New file.
6284 * config/pa/linux.mt: New file.
6285 * config/pa/nm-linux.h: New file.
6286 * config/pa/xm-linux.h: New file.
6287 * hppa-linux-nat.c: New file.
6288 * hppa-linux-tdep.c: New file.
6289
6290 2004-04-28 Randolph Chung <tausq@debian.org>
6291
6292 * hppa-tdep.c (hppa32_return_value): Handle both 4- and 8-byte fp
6293 return values.
6294 (hppa32_push_dummy_call): Fix small struct and floating point argument
6295 passing, and make sure the stack frame is properly aligned.
6296
6297 2004-04-28 Andrew Cagney <cagney@redhat.com>
6298
6299 * stack.c (print_stack_frame): Fix description.
6300
6301 * NEWS: Mention gdb/gdbserver/configure execute permission
6302 changed. PR server/519.
6303
6304 2004-04-28 Andrew Cagney <cagney@redhat.com>
6305
6306 * stack.c (print_stack_frame_stub): Delete declaration.
6307 (struct print_stack_frame_args, print_stack_frame)
6308 (print_frame_info, print_frame): Replace "source" with print what.
6309 Replace "print" with "print_level". Replace "args" with
6310 "print_args".
6311 * frame.h (show_and_print_stack_frame, print_stack_frame)
6312 (print_frame_info): Update declarations.
6313 * stack.c (select_and_print_frame, frame_command)
6314 (current_frame_command, up_command, down_command): Update calls -
6315 use get_selected_frame, pass "enum print_what" for source, do not
6316 call frame_relative_level.
6317 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Ditto.
6318 * remote-rdp.c (remote_rdp_open): Ditto.
6319 * remote-mips.c (common_open): Ditto.
6320 * remote-e7000.c (e7000_start_remote): Ditto.
6321 * ocd.c (ocd_start_remote): Ditto.
6322 * mi/mi-main.c (mi_cmd_exec_return): Ditto.
6323 * infrun.c (normal_stop): Ditto.
6324 * inflow.c (kill_command): Ditto.
6325 * infcmd.c (finish_command): Ditto.
6326 * corelow.c (core_open): Ditto.
6327 * tracepoint.c (finish_tfind_command): Ditto.
6328 * thread.c (info_threads_command, info_threads_command)
6329 (restore_current_thread, do_captured_thread_select): Ditto.
6330 * ada-tasks.c (task_command): Ditto.
6331
6332 2004-04-26 Orjan Friberg <orjanf@axis.com>
6333
6334 * frame.c: Include "observer.h".
6335 (frame_observer_target_changed): New function.
6336 (_initialize_frame): Attach target_changed observer.
6337 * regcache.c: Include "observer.h".
6338 (regcache_observer_target_changed): New function.
6339 (_initialize_regcache): Attach target_changed observer.
6340 * valops.c: Include "observer.h".
6341 (value_assign): Notify target_changed event when modifying register.
6342 * Makefile.in (frame.o, regcache.o, valops.o): Add $(observer_h).
6343
6344 2004-04-26 Orjan Friberg <orjanf@axis.com>
6345
6346 From Paul Koning <pkoning@equallogic.com>:
6347 * breakpoint.c (free_valchain): New function.
6348 (insert_bp_location, delete_breakpoint): Use free_valchain.
6349 (remove_breakpoint): Do not remove the valchain.
6350 (bpstat_stop_status): If not stopped by watchpoint, skip
6351 watchpoints when generating stop status list.
6352 * infrun.c (handle_inferior_event): Make
6353 stepped_after_stopped_by_watchpoint a global variable.
6354 * remote.c (remote_stopped_data_address): Return watch data
6355 address rather than zero if stepped_after_stopped_by_watchpoint is
6356 set.
6357
6358 2004-04-25 Michael Chastain <mec.gnu@mindspring.com>
6359
6360 Fix PR gdb/1626.
6361 * configure.in: Check for curses after termcap.
6362 On osf5.*, do not check for ncurses.
6363 * configure: Regenerate.
6364
6365 2004-04-25 Mark Kettenis <kettenis@gnu.org>
6366
6367 * ppcobsd-nat.c: Include "ppc-tdep.h".
6368 * Makefile.in (ppcobsd-nat.o): Update dependencies.
6369
6370 * stack.c (return_command): Use CHECK_TYPEDEF on the return type.
6371 Fixes PR tdep/1623 and PR tdep/1624.
6372
6373 2004-04-24 Michael Chastain <mec.gnu@mindspring.com>
6374
6375 * xmodem.h, xmodem.c: Remove files.
6376 * Makefile.in: Remove references to xmodem.h, xmodem.c.
6377
6378 2004-04-23 Randolph Chung <tausq@debian.org>
6379
6380 * hppa-tdep.c (hppa_stub_unwind_cache, hppa_stub_frame_unwind_cache)
6381 (hppa_stub_frame_this_id, hppa_stub_frame_prev_register)
6382 (hppa_stub_frame_unwind, hppa_stub_unwind_sniffer): New stub unwinder
6383 for handling stackless frames.
6384 (hppa_gdbarch_init): Link in hppa_stub_unwind_sniffer.
6385
6386 2004-04-23 Randolph Chung <tausq@debian.org>
6387
6388 * hppa-tdep.c (hppa_frame_cache): Handle the case when frame unwind
6389 starts at a pc before the frame is created.
6390
6391 2004-04-23 Joel Brobecker <brobecker@gnat.com>
6392
6393 * ChangeLog-2002: Fix year in one of the ChangeLog entries.
6394
6395 2004-04-23 Jerome Guitton <guitton@gnat.com>
6396
6397 * rs6000-tdep.c (rs6000_extract_return_value): When extracting a float,
6398 use convert_typed_floating to get the appropriate format.
6399
6400 2004-04-22 Randolph Chung <tausq@debian.org>
6401
6402 * hppa-tdep.h (find_unwind_entry, hppa_get_field, hppa_extract_5_load)
6403 (hppa_extract_5R_store, hppa_extract_5r_store, hppa_extract_17)
6404 (hppa_extract_21, hppa_extract_14, hppa_low_sign_extend)
6405 (hppa_sign_extend): Add prototype.
6406 * hppa-tdep.c (get_field, extract_5_load, extract_5R_store)
6407 (extract_5r_store, extract_17, extract_21, extract_14, low_sign_extend)
6408 (sign_extend): Rename with hppa_ prefix and make non-static. Other
6409 hppa targets will also use these functions.
6410 (find_unwind_entry): Remove prototype (moved to hppa-tdep.h).
6411 (hppa_in_solib_call_trampoline, hppa_in_solib_return_trampoline)
6412 (hppa_skip_trampoline_code): Move to hppa-hpux-tdep.c
6413 (hppa_gdbarch_init): Remove gdbarch setting of
6414 skip_trampoline_code, in_solib_call_trampoline and
6415 in_solib_return_trampoline.
6416 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
6417 (hppa64_hpux_in_solib_call_trampoline): New functions, split from
6418 hppa_in_solib_call_trampoline.
6419 (hppa_hpux_in_solib_return_trampoline, hppa_hpux_skip_trampoline_code):
6420 Moved from hppa-tdep.c.
6421 (hppa_hpux_init_abi): Set gdbarch for skip_trampoline_code,
6422 in_solib_call_trampoline and in_solib_return_trampoline.
6423
6424 2004-04-22 Randolph Chung <tausq@debian.org>
6425
6426 * hppa-tdep.c (hppa_debug): New variable.
6427 (find_unwind_entry, hppa_frame_cache): Add debug output.
6428 (_initialize_hppa_tdep): Add command to set debug flag.
6429
6430 2004-04-22 Andrew Cagney <cagney@redhat.com>
6431
6432 * ppcnbsd-tdep.c: Update copyright. Include "tramp-frame.h" and
6433 "trad-frame.h".
6434 (ppcnbsd_sigtramp_cache_init, ppcnbsd_sigtramp): Implement a NetBSD
6435 signal trampoline unwinder.
6436 (ppcnbsd_init_abi): Register ppcnbsd_sigtramp.
6437
6438 2004-04-22 Mark Kettenis <kettenis@gnu.org>
6439
6440 Add OpenBSD/powerpc support.
6441 * NEWS (New native configurations): Mention OpenBSD/powerpc.
6442 * ppc-tdep.h (struct ppc_reg_offsets): New structure.
6443 (ppc_supply_gregset, ppc_supply_fpregset, ppc_collect_gregset)
6444 (ppc_collect_fpregset): New prototypes.
6445 * ppcobsd-nat.c: New file.
6446 * ppcobsd-tdep.c: New file.
6447 * ppcobsd-tdep.h: New file.
6448 * rs6000-tdep.c: Include "regset.h".
6449 (ppc_supply_reg, ppc_collect_reg, ppc_supply_gregset)
6450 (ppc_supply_fpregset, ppc_collect_gregset, ppc_collect_fpregset):
6451 New functions.
6452 * Makefile.in (ALLDEPFILES): Add pccobsd-nat.c and ppcobsd-tdep.c.
6453 (ppcobsd-nat.o, ppcobsd-tdep.o): New dependencies.
6454 (rs6000-tdep.o): Update dependencies.
6455 * configure.host: Add powerpc-*-openbsd.
6456 * configure.tgt: Add powerpc-*-openbsd.
6457 * config/powerpc/obsd.mh: New file.
6458 * config/powerpc/nm-obsd.h: New file.
6459 * config/powerpc/obsd.mt: New file.
6460
6461 2004-04-22 Andrew Cagney <cagney@redhat.com>
6462
6463 * frame.h (show_frame_info): Delete declaration.
6464
6465 * arm-tdep.c (arm_prologue_this_id): Delete redundant cycle test.
6466 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
6467 * m32r-tdep.c (m32r_frame_this_id): Ditto.
6468 * frv-tdep.c (frv_frame_this_id): Ditto.
6469 * avr-tdep.c (avr_frame_this_id): Ditto.
6470
6471 2004-04-22 Elena Zannoni <ezannoni@redhat.com>
6472
6473 * MAINTAINERS: Drop maintenance of gdb.stabs, and linespec.c.
6474
6475 2004-04-22 Jim Blandy <jimb@redhat.com>
6476
6477 * ppc-linux-nat.c (ppc_register_u_addr): Don't assume that r0 is
6478 register number zero.
6479
6480 2004-04-21 Michael Snyder <msnyder@redhat.com>
6481
6482 * mips-tdep.c (heuristic_proc_start):
6483 Warning() already prefixes "Warning: ".
6484
6485 2004-04-21 Andrew Cagney <cagney@redhat.com>
6486
6487 * annotate.h (deprecated_annotate_starting_hook)
6488 (deprecated_annotate_stopped_hook)
6489 (deprecated_annotate_exited_hook)
6490 (deprecated_annotate_signal_hook)
6491 (deprecated_annotate_signalled_hook): Deprecate.
6492 * tracepoint.h (deprecated_create_tracepoint_hook)
6493 (deprecated_delete_tracepoint_hook)
6494 (deprecated_modify_tracepoint_hook)
6495 (deprecated_trace_find_hook)
6496 (deprecated_trace_start_stop_hook): Deprecate.
6497 * target.h (deprecated_target_new_objfile_hook): Deprecate.
6498 * remote.h (deprecated_target_resume_hook)
6499 (deprecated_target_wait_loop_hook): Deprecate.
6500 * gdbcore.h (deprecated_exec_file_display_hook)
6501 (deprecated_file_changed_hook): Deprecate.
6502 * frame.h (deprecated_selected_frame_level_changed_hook): Deprecate.
6503 * defs.h (deprecated_modify_breakpoint_hook)
6504 (deprecated_command_loop_hook, deprecated_show_load_progress)
6505 (deprecated_print_frame_info_listing_hook)
6506 (deprecated_query_hook, deprecated_warning_hook)
6507 (deprecated_flush_hook, deprecated_create_breakpoint_hook)
6508 (deprecated_delete_breakpoint_hook)
6509 (deprecated_interactive_hook, deprecated_registers_changed_hook)
6510 (deprecated_readline_begin_hook, deprecated_readline_hook)
6511 (deprecated_readline_end_hook, deprecated_register_changed_hook)
6512 (deprecated_memory_changed_hook, deprecated_init_ui_hook)
6513 (deprecated_context_hook, deprecated_target_wait_hook)
6514 (deprecated_attach_hook, deprecated_detach_hook)
6515 (deprecated_call_command_hook, deprecated_set_hook)
6516 (deprecated_error_hook, deprecated_error_begin_hook)
6517 (deprecated_ui_load_progress_hook): Deprecate.
6518 * valops.c, uw-thread.c, utils.c, tui/tui-io.c: Update.
6519 * tui/tui-hooks.c, tracepoint.c, top.c, thread-db.c: Update.
6520 * target.c, symfile.c, stack.c, sol-thread.c, rs6000-nat.c: Update.
6521 * remote.c, remote-mips.c, regcache.c, mi/mi-interp.c: Update.
6522 * main.c, interps.c, infcmd.c, hpux-thread.c, frame.c: Update.
6523 * exec.c, dsrec.c, d10v-tdep.c, corefile.c, complaints.c: Update.
6524 * cli/cli-script.c, cli/cli-setshow.c, breakpoint.c: Update.
6525 * annotate.c, aix-thread.c: Update.
6526
6527 2004-04-21 Andrew Cagney <cagney@redhat.com>
6528
6529 * Makefile.in (vaxnbsd-tdep.o): Update dependencies.
6530 * vaxnbsd-tdep.c: Include "gdb_string.h".
6531
6532 * symfile.c (symbol_file_add_from_memory): #if 0 function.
6533 (add_symbol_file_from_memory_command): #if 0 function body, call
6534 error instead.
6535
6536 2004-04-21 Andrew Cagney <cagney@redhat.com>
6537
6538 * gdbcore.h: Update copyright.
6539 (deprecated_add_core_fns): Rename add_core_fns.
6540 * win32-nat.c (_initialize_core_win32): Update.
6541 * sun3-nat.c (_initialize_core_sun3): Update.
6542 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Update.
6543 * rs6000-nat.c (_initialize_core_rs6000): Update.
6544 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Update.
6545 * nto-tdep.c (_initialize_nto_tdep): Update.
6546 * ns32knbsd-nat.c (_initialize_ns32knbsd_nat): Update.
6547 * mipsnbsd-tdep.c (_initialize_mipsnbsd_tdep): Update.
6548 * mips-nat.c (_initialize_core_mips): Update.
6549 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
6550 * m68knbsd-nat.c (_initialize_m68knbsd_nat): Update.
6551 * m68klinux-nat.c (_initialize_m68k_linux_nat): Update.
6552 * lynx-nat.c (_initialize_core_lynx): Update.
6553 * irix5-nat.c (_initialize_core_irix5): Update.
6554 * i386-interix-nat.c (_initialize_core_interix): Update.
6555 * cris-tdep.c (_initialize_cris_tdep): Update.
6556 * corelow.c (deprecated_add_core_fns): Update.
6557 * core-regset.c (_initialize_core_regset): Update.
6558 * core-aout.c (_initialize_core_aout): Update.
6559 * armnbsd-nat.c (_initialize_arm_netbsd_nat): Update.
6560 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Update.
6561 * alpha-nat.c (_initialize_core_alpha): Update.
6562
6563 2004-04-21 Jim Blandy <jimb@redhat.com>
6564
6565 * rs6000-tdep.c (registers_e500, registers_7400): Doc fixes.
6566
6567 2004-04-19 Daniel Jacobowitz <drow@mvista.com>
6568
6569 * dwarf2read.c (dwarf2_tmp_obstack, dwarf2_free_tmp_obstack):
6570 Delete.
6571 (dwarf_alloc_block): Take a CU argument. Use the comp_unit_obstack.
6572 (read_attribute_value): Update calls to dwarf_alloc_block.
6573 (dwarf2_build_psymtabs_hard): Don't initialize or clean up
6574 dwarf2_tmp_obstack.
6575 (psymtab_to_symtab_1): Likewise. Clean up using
6576 free_stack_comp_unit.
6577 (add_to_cu_func_list): Use the comp_unit_obstack.
6578
6579 2004-04-19 Joel Brobecker <brobecker@gnat.com>
6580
6581 * dwarf2read.c (dwarf2_flag_true_p): New function.
6582 (die_is_declaration): Use the function above. Add some comments.
6583
6584 2004-04-19 Mark Kettenis <kettenis@gnu.org>
6585
6586 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Specify
6587 architecture when registering sparcnbsd_core_osabi_sniffer.
6588 Adjust comment.
6589
6590 2004-04-18 Mark Kettenis <kettenis@gnu.org>
6591
6592 * infcall.c (find_function_addr): Add FUNCTION_START_OFFSET to
6593 return value.
6594
6595 Based on a patch from Brian Ford <ford@vss.fsi.com>:
6596 * i386-tdep.c: Correct register numbering scheme comments
6597 throughout.
6598 (i386_stab_reg_to_regnum): Rename to i386_dbx_reg_to_regnum.
6599 (i386_dwarf_reg_to_regnum): Rename to i386_svr4_reg_to_regnum.
6600 (i386_coff_init_abi, i386_elf_init_abi): Accomodate renames above.
6601 (i386_gdb_arch_init): Likewise.
6602
6603 * Makefile.in (ALLDEPFILES): List ppc-sysv-tdep.c, ppcnbsd-nat.c
6604 and ppcnbsd-tdep.c instead of ppc-sysv-tdep.o, ppcnbsd-nat.o and
6605 ppcnbsd-tdep.o.
6606
6607 * m68k-tdep.h: Tweak comments.
6608 * m68k-tdep.c: Tweak comment.
6609
6610 2004-04-17 Randolph Chung <tausq@debian.org>
6611
6612 * Makefile.in (hppa-hpux-tdep.o): Add $(hppa_tdep_h).
6613 * hppa-hpux-tdep.c (hppa-tdep.h): Include.
6614 (hppa_hpux_som_init_abi): Set is_elf to 0.
6615 (hppa_hpux_elf_init_abi): Set is_elf to 1.
6616 * hppa-tdep.c (low_text_segment_address): Remove global.
6617 (record_text_segment_lowaddr): Pass in low address as parameter. Use
6618 section offset to calculate segment address.
6619 (internalize_unwinds): Define low_text_segment_address as local and
6620 pass to record_text_segment_lowaddr for ELF targets.
6621 (hppa_gdbarch_init): Zero fill tdep structure.
6622 (hppa_dump_tdep): Print tdep structure.
6623 * hppa-tdep.h (gdbarch_tdep): Add is_elf member to tdep structure.
6624
6625 2004-04-17 Randolph Chung <tausq@debian.org>
6626
6627 * hppa-tdep.c (hppa_pseudo_register_read): Define.
6628 (hppa_gdbarch_init): Set pseudo_register_read.
6629 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Remove.
6630 * regcache.c (supply_register): Remove check for
6631 DEPRECATED_CLEAN_UP_REGISTER_VALUE since we've removed the last user.
6632
6633 2004-04-17 Randolph Chung <tausq@debian.org>
6634
6635 * Makefile.in (hpread.o, pa64solib.o, somsolib.o): Add $(hppa_tdep_h)
6636 * hppa-tdep.h (INSTRUCTION_SIZE): Move from tm-hppa.h.
6637 (hpread_adjust_stack_address): Move to hpread.c.
6638 * hppa-tdep.h (unwind_table_entry, unwind_stub_types, obj_unwind_info,
6639 obj_private_struct): Move from tm-hppa.h.
6640 * hpread.c (hppa-tdep.h): Include.
6641 (hpread_adjust_stack_address): Move from hppa-tdep.c.
6642 (hpread_read_function_type, hpread_read_doc_function_type)
6643 (hpread_process_one_debug_symbol): Call hpread_adjust_stack_address
6644 directly.
6645 * pa64solib.c (hppa-tdep.h): Include.
6646 * somsolib.c (hppa-tdep.h): Include.
6647 * config/pa/tm-hppa.h (frame_info, frame_saved_regs, value, type,
6648 inferior_status): Remove unused forward declarations.
6649 (INSTRUCTION_SIZE): Move to hppa-tdep.c.
6650 (unwind_table_entry, unwind_stub_types, obj_unwind_info,
6651 obj_private_struct): Move to hppa-tdep.h.
6652 (HPREAD_ADJUST_STACK_ADDRESS): Remove.
6653
6654 2004-04-17 Randolph Chung <tausq@debian.org>
6655
6656 * hppa-tdep.c (hppa_reg_struct_has_addr, hppa_skip_prologue)
6657 (hppa_skip_trampoline_code, hppa_in_solib_call_trampoline)
6658 (hppa_in_solib_return_trampoline, hppa_cannot_store_register)
6659 (hppa_smash_text_address, hppa_target_read_pc, hppa_target_write_pc):
6660 Remove forward declaration and make static.
6661 (hppa_reg_struct_has_addr): Remove.
6662
6663 2004-04-16 Joel Brobecker <brobecker@gnat.com>
6664
6665 * observer.sh: Move comments in sed command to first column.
6666
6667 2004-04-16 Jason Molenda (jmolenda@apple.com)
6668
6669 * frame.c: Minor typeo corrections in comments.
6670
6671 2004-04-16 Joel Brobecker <brobecker@gnat.com>
6672
6673 * observer.c (observer_test_first_notification_function): Update
6674 function profile.
6675 (observer_test_second_notification_function): Likewise.
6676 (observer_test_third_notification_function): Likewise.
6677
6678 2004-04-16 Mark Kettenis <kettenis@gnu.org>
6679
6680 From Brian Ford <ford@vss.fsi.com>:
6681 * i386-tdep.c (i386_coff_init_abi): New function.
6682 * i386-tdep.h (i386_coff_init_abi): New prototype.
6683 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Call it. Use correct
6684 register number translation functions for DWARF and DWARF 2.
6685
6686 2004-04-16 Joel Brobecker <brobecker@gnat.com>
6687
6688 * dwarf2read.c: Back out my previous change, it was incorrect.
6689
6690 2004-04-16 Daniel Jacobowitz <drow@mvista.com>
6691
6692 * dwarf2read.c: Include "hashtab.h".
6693 (struct dwarf2_cu): Add partial_dies, comp_unit_obstack,
6694 has_namespace_info.
6695 (struct partial_die_info): Add comments. Use bitfields to reduce
6696 memory footprint. Add scope, scope_set, has_specification,
6697 spec_offset, die_parent, die_child, and die_sibling.
6698 (peek_die_abbrev): Add prototype.
6699 (partial_read_comp_unit_head): New function, broken out from
6700 dwarf2_build_psymtabs_hard.
6701 (dwarf2_build_psymtabs_hard): Remove unused variable abbrev_ptr.
6702 Use partial_read_comp_unit_head. Initialize the CU and
6703 comp_unit_obstack. Update calls to read_partial_die and
6704 scan_partial_symbols. Use free_stack_comp_unit and
6705 load_partial_dies.
6706 (scan_partial_symbols): Change PDI to a pointer. Use the child and
6707 sibling pointers to walk partial DIEs. Call fixup_partial_die.
6708 Update calls to helper functions. Remove NAMESPACE argument.
6709 Update comments.
6710 (partial_die_parent_scope, partial_die_full_name): New functions.
6711 (add_partial_symbol): Remove namespace argument. Update call to
6712 pdi_needs_namespace. Use partial_die_full_name. Handle
6713 DW_TAG_namespace. Check has_namespace_info flag.
6714 (pdi_needs_namespace): Remove NAMESPACE argument. Just check the
6715 tag. Handle namespaces.
6716 (add_partial_namespace, add_partial_enumeration): Simplify.
6717 (guess_structure_name): New function, derived from
6718 add_partial_structure.
6719 (add_partial_structure): Remove.
6720 (determine_class_name): Update comment.
6721 (dwarf2_read_abbrevs): Set has_namespace_info flag.
6722 (is_type_tag_for_partial, load_partial_dies): New functions.
6723 (read_partial_die): Pass abbrev and abbrev_len as arguments.
6724 Record specifications instead of following them immediately.
6725 (find_partial_die_in_comp_unit, find_partial_die)
6726 (fixup_partial_die, free_stack_comp_unit)
6727 (hashtab_obstack_allocate, dummy_obstack_deallocate)
6728 (partial_die_hash, partial_die_eq): New functions.
6729 * Makefile.in (hashtab_h): Define.
6730 (dwarf2read.o): Update dependencies.
6731 (observer_inc, observer_h): Move to the correct section.
6732
6733 2004-04-15 Joel Brobecker <brobecker@gnat.com>
6734
6735 * dwarf2read.c (dwarf2_attribute_true_p): New function.
6736 (die_is_declaration): Use the function above. Add comment.
6737
6738 2004-04-15 Joel Brobecker <brobecker@gnat.com>
6739
6740 * dwarf2read.c (read_structure_scope): Identify stub types
6741 using die_is_declaration() only.
6742
6743 2004-04-15 Roland McGrath <roland@redhat.com>
6744
6745 * symfile.c (symbol_file_add_with_addrs_or_offsets): Take ABFD as
6746 argument instead of NAME.
6747 (symbol_file_add, reread_separate_symbols): Call symfile_bfd_open
6748 in call to symbol_file_add_with_addrs_or_offsets.
6749 (build_addr_info): New function, helper for ...
6750 (symbol_file_add_from_memory): New function.
6751 (add_symbol_file_from_memory_command): New function using that.
6752 (_initialize_symfile): Register it for add-symbol-file-from-memory.
6753 (pre_add_symbol_hook): Add const to argument type.
6754 * symfile.h (symbol_file_add_from_memory): Declare it.
6755
6756 2004-04-15 Mark Kettenis <kettenis@gnu.org>
6757
6758 * NEWS (New native configurations): Mention OpenBSD/vax.
6759 * configure.host: Add vax-*-openbsd*.
6760 * config/vax/obsd.mh: New file.
6761 * config/vax/nm-obsd.h: New file.
6762
6763 * vax-tdep.c: Include "regset.h".
6764 (vax_supply_gregset): New function.
6765 (vax_gregset): New variable.
6766 (vax_regset_from_core_section): New function.
6767 (vax_gdbarch_init): Set regset_from_core_section.
6768 * Makefile.in (vax-tdep.o): Update dependencies.
6769
6770 2004-04-15 Andrew Cagney <cagney@redhat.com>
6771
6772 * observer.c (normal_stop_subject, observer_notify_normal_stop)
6773 (observer_normal_stop_notification_stub)
6774 (observer_attach_normal_stop, observer_detach_normal_stop):
6775 Delete, replaced by #include "observer.inc".
6776 * infrun.c (normal_stop): Pass "stop_bpstat" to
6777 observer_notify_normal_stop.
6778 * Makefile.in (observer_inc): Define.
6779 (observer.o): Update dependencies.
6780 (observer.h, observer.inc): New rules.
6781 * observer.h: Delete file.
6782 * observer.sh: New file.
6783
6784 2004-04-15 Mark Kettenis <kettenis@gnu.org>
6785
6786 * vax-tdep.c (vax_frame_cache): Fix typo.
6787
6788 2004-04-14 Mark Kettenis <kettenis@gnu.org>
6789
6790 * NEWS (New native configurations): Mention NetBSD/vax.
6791 * configure.host: Add vax-*-netbsdelf* and vax-*-netbsd*.
6792 * config/vax/nbsdelf.mh: New file.
6793 * config/vax/nbsdaout.mh: New file.
6794 * config/vax/nm-nbsd.h: New file.
6795 * config/vax/nm-nbsdaout.h: New file.
6796
6797 * vaxnbsd-tdep.c: New file.
6798 * Makefile.in (vaxnbsd-tdep.o): New dependency.
6799 * configure.tgt: Add vax-*-netbsd* and vax-*-openbsd*.
6800 * config/vax/nbsd.mt: New file.
6801 * config/vax/tm-nbsd.h: New file.
6802
6803 * Makefile.in (vaxbsd-nat.o): New dependency.
6804
6805 * vax-tdep.h (vax_regnum): Add VAX_R0_REGNUM and VAX_R1_REGNUM.
6806 * vax-tdep.c (vax_store_arguments): Remove struct_return and
6807 struct_addr arguments. Don't push return value address.
6808 (vax_push_dummy_call): Don't pass STRUCT_RETURN and STRUCT_ADDR as
6809 arguments to vax_store_arguments. Store return value address in
6810 R1.
6811 (vax_store_struct_return, vax_extract_return_value)
6812 (vax_store_return_value): Remove functions.
6813 (vax_return_value): New function.
6814 (vax_gdbarch_init): Set return value. Don't set
6815 deprecated_store_struct_return, deprecated_extract_struct_return
6816 and deprecated_store_return_value.
6817
6818 2004-04-14 Andreas Schwab <schwab@suse.de>
6819
6820 * ia64-tdep.c (ia64_libunwind_frame_prev_register): Handle null
6821 value buffer.
6822 * libunwind-frame.c (libunwind_frame_prev_register): Likewise.
6823
6824 2004-04-14 Mark Kettenis <kettenis@gnu.org>
6825
6826 * vax-tdep.c (vax_store_arguments, vax_push_dummy_call)
6827 (vax_unwind_dummy_id): New functions.
6828 (vax_push_dummy_frame, vax_pop_frame): Remove functions.
6829 (vax_call_dummy_words, sizeof_vax_call_dummy_words): Remove
6830 variables.
6831 (vax_fix_call_dummy): Remove function.
6832 (vax_gdbarch_init): Set push_dummy_call and unwind_dummy_id.
6833 Don't set deprecated_push_dummy_frame, deprecated_pop_frame,
6834 call_dummy_location, deprecated_call_dummy_words,
6835 deprecated_sizeof_call_dummy_words,
6836 deprecated_call_dummy_breakpoint_offset,
6837 deprecated_use_generic_dummy_frames, deprecated_pc_in_call_dummy,
6838 and deprecated_dummy_write_sp.
6839
6840 2004-04-13 David Carlton <carlton@kealia.com>
6841
6842 * MAINTAINERS: Move myself to "paper trail" section.
6843
6844 2004-04-12 Mark Kettenis <kettenis@gnu.org>
6845
6846 * vax-tdep.c: Include "frame-base.h", "frame-unwind.h" and
6847 "trad-frame.h".
6848 (vax_frame_init_saved_regs): Remove function.
6849 (vax_sigtramp_saved_pc): Remove function.
6850 (vax_frame_saved_pc): Remove function.
6851 (vax_frame_args_address): Remove function.
6852 (vax_frame_num_args): Rewrite.
6853 (vax_frame_chain): Remove function.
6854 (vax_push_dummy_frame): Replace DEPRECATED_FP_REGNUM with
6855 VAX_FP_REGNUM.
6856 (vax_pop_frame): Likewise.
6857 (vax_saved_pc_after_call): Remove function.
6858 (struct vax_frame_cache): New structure.
6859 (vax_frame_cache): New function.
6860 (vax_frame_this_id): New function.
6861 (vax_frame_prev_register): New function.
6862 (vax_frame_unwind): New variable.
6863 (vax_frame_sniffer): New function.
6864 (vax_frame_base_address): New function.
6865 (vax_frame_args_address): New function.
6866 (vax_frame_base): New variable.
6867 (vax_unwind_pc): New function.
6868 (vax_gdbarch_init): Don't set deprecated_init_frame_pc,
6869 deprecated_fp_regnum, deprecated_saved_pc_after_call,
6870 deprecated_frame_chain, deprecated_frame_saved_pc,
6871 deprecated_frame_args_address and
6872 deprecated_frame_init_saved_regs.
6873 * Makefile.in (vax-tdep.o): Update dependencies.
6874
6875 * vaxbsd-nat.c: New file.
6876
6877 * vax-tdep.h: Update copyright year. Adjust comments.
6878 (VAX_REGISTER_SIZE, VAX_REGISTER_BYTES, VAX_MAX_REGISTER_RAW_SIZE,
6879 VAX_MAX_REGISTER_VIRTUAL_SIZE): Remove macros.
6880 (vax_regnum): New enum. Replacing...
6881 (VAX_AP_REGNUM, VAX_FP_REGNUM, VAX_SP_REGNUM, VAX_PC_REGNUM)
6882 (VAX_PS_REGNUM): ... these removed macros.
6883 * vax-tdep.c (vax_register_name): Remove prototype.
6884 (vax_register_name): Reorganize somewhat. Use ARRAY_SIZE.
6885 (vax_register_byte, vax_register_raw_size,
6886 vax_register_virtual_size, vax_register_virtual_type): Remove
6887 functions.
6888 (vax_register_type): New function.
6889 (vax_breakpoint_from_pc): Reorganize.
6890 (vax_gdbarch_init): Set register_type. Don't set
6891 deprecated_register_size, deprecated_register_bytes,
6892 deprecated_register_byte, deprecated_register_raw_size,
6893 deprecated_max_register_raw_size,
6894 deprecated_register_virtual_size,
6895 deprecated_max_register_virtual_size and
6896 deprecated_register_virtual_type. Add comment on stack direction.
6897
6898 2004-04-11 Mark Kettenis <kettenis@gnu.org>
6899
6900 * amd64-tdep.h (amd64_regnum): Add AMD64_CS_REGNUM,
6901 AMD64_SS_REGNUM, AMD64_DS_REGNUM, AMD64_ES_REGNUM,
6902 AMD64_FS_REGNUM and AMD64_GS_REGNUM.
6903
6904 2004-04-10 Randolph Chung <tausq@debian.org>
6905
6906 * MAINTAINERS (write after approval): Add myself.
6907
6908 2004-04-07 Randolph Chung <tausq@debian.org>
6909
6910 * hppa-tdep.c (hppa_inner_than): Remove.
6911 (is_pa_2): Remove unused static variable.
6912 (hppa_gdbarch_init): Use core_addr_greaterthan instead of own version.
6913
6914 2004-03-10 Paul N. Hilfinger <Hilfinger@gnat.com>
6915
6916 * language.h (language_defn): Add new la_post_parser field.
6917 * parser-defs.h (null_post_parser): New declaration (default for
6918 la_post_parser).
6919
6920 * parse.c (parse_exp_1): Move code to parse_exp_in_context and
6921 insert call to that function.
6922 (parse_exp_in_context): New function, including code formerly in
6923 parse_exp_1. Calls language-dependent post-parser after
6924 prefixification.
6925 (parse_expression_in_context): New exported function.
6926 (null_post_parser): New definition.
6927 * expression.h (parse_expression_in_context): Add declaration.
6928
6929 * p-lang.c (pascal_language_defn): Add trivial post-parser.
6930 * c-lang.c (c_language_defn): Ditto.
6931 (cplus_language_defn): Ditto.
6932 (asm_language_defn): Ditto.
6933 (minimal_language_defn): Ditto.
6934 * f-lang.c (f_language_defn): Ditto.
6935 * jv-lang.c (java_language_defn): Ditto.
6936 * language.c (unknown_language_defn): Ditto.
6937 (auto_language_defn): Ditto.
6938 (local_language_defn): Ditto.
6939 * m2-lang.c (m2_language_defn): Ditto.
6940 * scm-lang.c (scm_language_defn): Ditto.
6941 * obj-lang.c (objc_language_defn): Ditto.
6942
6943 2004-04-10 Mark Kettenis <kettenis@gnu.org>
6944
6945 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Remove function.
6946 (amd64nbsd_mcontext_addr): New function.
6947 (amd64nbsd_init_abi): Initialize TDEP->sigcontext_addr as
6948 amd64nbsd_mcontext_addr. Directly initialize TDEP->sc_reg_offset
6949 with amd64nbsd_r_reg_offset, instead of building it on the fly.
6950
6951 * corelow.c (core_xfer_partial): Fix coding standards violation.
6952 Add support for TARGET_OBJECT_WCOOKIE.
6953
6954 * sparc-linux-tdep.c (sparc32_linux_init_abi): Don't set
6955 deprecated_pc_in_sigtramp.
6956 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
6957 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
6958 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Likewise.
6959 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
6960 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Likewise.
6961 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
6962 * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
6963
6964 * amd64-linux-tdep.c, amd64nbsd-tdep.c, amd64obsd-tdep.c,
6965 i386-linux-tdep.c, i386-tdep.c, i386nbsd-tdep.c, i386obsd-tdep.c:
6966 Fix typo.
6967
6968 * amd64-tdep.c (amd64_supply_fxsave): Only fiddle with
6969 I387_FISEG_REGNUM and I387_FOSEG_REGNUM in 64-bit mode.
6970 (amd64_collect_fxsave): Likewise.
6971
6972 * i386-sol2-tdep.c: Include "gdb_string.h".
6973 (i386_sol2_sigtramp_p): Recognize signal trampoline based on its
6974 name.
6975 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
6976
6977 2004-04-10 Mark Kettenis <kettenis@gnu.org>
6978
6979 * i386-sol2-tdep.c: Include "solib-svr4.h".
6980 (i386_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
6981 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
6982 * config/i386/tm-i386sol2.h: Include :solib.h".
6983 * config/i386/i386sol2.mh (NATDEPFILES): Remove solib.o,
6984 solib-svr4.o and solib-legacy.o.
6985 * config/i386/i386sol2.mt (TDEPFILES): Add solib.o and
6986 solib-svr4.o.
6987
6988 2004-04-09 Mark Kettenis <kettenis@gnu.org>
6989
6990 * amd64-linux-nat.c (fetch_inferior_registers): Correctly check
6991 whether a register is supplied by PTRACE_GETFPREGS.
6992 (store_inferior_registers): Likewise.
6993 * amd64bsd-nat.c (fetch_inferior_registers): Correctly check
6994 whether a register is supplied by PT_GETFPREGS.
6995 (store_inferior_registers): Likewise.
6996
6997 * config/i386/linux.mt (TDEPFILES): Remove solib-legacy.o.
6998 * config/i386/linux64.mt (TDEPFILES): Likewise.
6999
7000 * i386-linux-nat.c: Update copyrigth year. Tweak comment.
7001
7002 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Rewrite to use new
7003 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
7004 the program counter is in the range specified by `struct
7005 gdbarch_tdep'.
7006 * amd64-linux-tdep.c: Include "symtab.h".
7007 (amd64_linux_pc_in_sigtramp): Remove function.
7008 (amd64_linux_sigtramp_p): New function.
7009 (amd64_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
7010 deprecated_pc_in_sigtramp.
7011 * amd64nbsd-tdep.c: Include "symtab.h".
7012 (amd64nbsd_sigtramp_p): New function.
7013 (amd64nbsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
7014 deprecated_pc_in_sigtramp.
7015 * amd64obsd-tdep.c: Include "symtab.h" and "objfiles.h". Add a
7016 few comments.
7017 (amd64obsd_pc_in_sigtramp): Remove function.
7018 (amd64obsd_sigtramp_p): New function.
7019 (amd64obsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
7020 deprecated_pc_in_sigtramp.
7021 * i386-tdep.h (struct gdbarch_tdep): Add sigtramp_p member.
7022 (i386bsd_pc_ins_sigtramp): Remove prototype.
7023 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove prototypes.
7024 * i386-tdep.c (i386_sigtramp_frame_sniffer): Rewrite to use new
7025 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
7026 the program counter is in the range specified by `struct
7027 gdbarch_tdep'.
7028 (i386_pc_in_sigtramp, i386_svr4_pc_in_sigtramp): Remove functions.
7029 (i386_sigtramp_p, i386_svr4_sigtramp_p): New functions.
7030 (i386_go32_pc_in_sigtramp): Remove function.
7031 (i386_svr4_init_abi): Don't set deprecated_pc_in_sigtramp.
7032 Initialize TDEP->sigtramp_p.
7033 (i386_go32_init_abi): Initialize TDEP->sigtramp_p to NULL.
7034 (i386_gdbarch_init): Initialize TDEP->sigtramp_p. Don't set
7035 deprecated_pc_in_sigtramp.
7036 * i386-linux-tdep.c: Adjust comments.
7037 (i386_linux_pc_in_sigtramp): Remove function.
7038 (i386_linux_sigtramp_p): New function.
7039 (i386_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
7040 deprecated_pc_in_sigtramp.
7041 * i386-nto-tdep.c: Update copyright year.
7042 (i386nto_pc_in_sigtramp): Remove function.
7043 (i386nto_sigtramp_p): New function.
7044 (i386nto_sigcontext_addr): Use I386_ESP_REGNUM instead of
7045 SP_REGNUM.
7046 (i386nto_init_abi): Initialize TDEP->sigtramp_p. Don't set
7047 deprecated_pc_in_sigtramp.
7048 * i386-sol2-tdep.c: Update copyright year.
7049 (i386_sol2_pc_in_sigtramp): Remove function.
7050 (i386_sol2_sigtramp_p): New function.
7051 (i386_sol2_init_abi): Initialize TDEP->sigtramp_p. Don't set
7052 deprecated_pc_in_sigtramp.
7053 * i386bsd-tdep.c (i386bsd_pc_in_sigtramp): Remove function.
7054 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove functions.
7055 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
7056 deprecated_sigtramp_start and deprecated_sigtramp_end.
7057 * i386nbsd-tdep.c: Include "frame.h" and "symtab.h".
7058 (i386nbsd_pc_in_sigtramp): Remove function.
7059 (i386nbsd_sigtramp_p): New function.
7060 (i386nbsd_init_abi): Don't set deprecated_pc_in_sigtramp,
7061 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
7062 TDEP->sigtramp_start, TDEP->sigtramp_end and TDEP->sigtramp_p.
7063 * i386obsd-tdep.c: Include "frame.h", "symtab.h" and "objfiles.h".
7064 (i386obsd_pc_in_sigtramp): Remove function.
7065 (i386obsd_sigtramp_p): New function.
7066 (i386obsd_sigtramp_start, i386obsd_sigtramp_end): Remove
7067 functions.
7068 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
7069 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
7070 TDEP->sigtramp_p.
7071 * Makefile.in (amd64-linux-tdep.o, amd64nbsd-tdep.o,
7072 amd64obsd-tdep.o, i386nbsd-tdep.o, i386obsd-tdep.o): Update
7073 dependencies.
7074
7075 * config/i386/i386aout.mt: Remove file.
7076
7077 * configure.tgt: Remove i[34567]86-*-go32*,
7078 i[34567]86-*-msdosdjgpp*, i[34567]86-*-sco*, i[34567]86-*-sysv*
7079 and i[34567]86-*-isc*. Set gdb_target to i386 for
7080 i[34567]86-*-netware* and i[34567]86-*-*.
7081 * config/i386/i386.mt: New file.
7082 * config/i386/embed.mt: Remove file.
7083 * config/i386/go32.mt: Remove file.
7084 * config/i386/i386nw.mt: Remove file.
7085 * config/i386/i386v.mt: Remove file.
7086 * config/i386/tm-go32.h: Remove file.
7087
7088 * tui/tui-hooks.c: Include "readline/readline.h" after
7089 "gdb_curses.h" instead of before.
7090 * tui/tui-io.c: Likewise.
7091
7092 * tui/tui.c: Fix typo in comment.
7093
7094 * sparc64-tdep.c (sparc_address_from_register): Remove function.
7095
7096 2004-04-08 Andrew Cagney <cagney@redhat.com>
7097
7098 * breakpoint.h (deprecated_exception_catchpoints_are_fragile)
7099 (deprecated_exception_support_initialized): Declare.
7100 * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support)
7101 (initialize_hp_cxx_exception_support)
7102 (child_enable_exception_callback): Update.
7103 * breakpoint.c (deprecated_exception_catchpoints_are_fragile)
7104 (deprecated_exception_support_initialized): Rename
7105 deprecated_exception_catchpoints_are_fragile and
7106 deprecated_exception_support_initialized.
7107 (breakpoint_init_inferior, breakpoint_init_inferior): Update.
7108
7109 * symtab.c (deprecated_hp_som_som_object_present): Rename
7110 hp_som_som_object_present.
7111 * symtab.h (deprecated_hp_som_som_object_present): Declare.
7112 * symfile.c (hp_som_som_object_present, RESET_HP_UX_GLOBALS):
7113 Update. Delete extern declaration.
7114 * valops.c (hp_som_som_object_present): Ditto.
7115 * parse.c (deprecated_hp_som_som_object_present)
7116 (parse_nested_classes_for_hpacc): Ditto.
7117 * hpread.c (hp_som_som_object_present, hpread_expand_symtab): Ditto.
7118 * hppa-hpux-tdep.c (hp_som_som_object_present)
7119 (initialize_hp_cxx_exception_support): Ditto.
7120 * eval.c (hp_som_som_object_present, evaluate_subexp_standard): Ditto.
7121 * cp-valprint.c (hp_som_som_object_present)
7122 (cp_print_class_method): Ditto.
7123 * c-typeprint.c (hp_som_som_object_present):
7124 (c_type_print_base): Ditto.
7125 * c-exp.y (hp_som_som_object_present): Ditto.
7126
7127 2004-04-08 Andrew Cagney <cagney@redhat.com>
7128
7129 * frame-unwind.c (struct frame_unwind_table, frame_unwind_init)
7130 (frame_unwind_prepend_unwinder, frame_unwind_append_sniffer)
7131 (frame_unwind_find_by_frame): Re-implement the unwind code so
7132 that it can both prepend and append sniffers. Replace
7133 frame_unwind_register_unwinder with frame_unwind_prepend_unwinder.
7134 * tramp-frame.c (tramp_frame_append): Use
7135 frame_unwind_prepend_unwinder.
7136 * frame-unwind.h (frame_unwind_prepend_unwinder): Replace
7137 frame_unwind_register_unwinder.
7138 * tramp-frame.h (tramp_frame_prepend_unwinder): Rename
7139 tramp_frame_append.
7140 * tramp-frame.c (tramp_frame_prepend_unwinder): Update.
7141 * mips-linux-tdep.c (mips_linux_init_abi, mips_linux_init_abi)
7142 (mips_linux_init_abi): Update.
7143
7144 2004-04-08 Kevin Buettner <kevinb@redhat.com>
7145
7146 * ppc-linux-tdep.c (ELF_NREG, ELF_NFPREG, ELF_NVRREG)
7147 (ELF_FPREGSET_SIZE): Delete constants formerly used in core
7148 file support.
7149
7150 2004-04-07 Kevin Buettner <kevinb@redhat.com>
7151
7152 * ia64-tdep.c (elf.h): Don't include.
7153 (elf/ia64.h) [HAVE_LIBUNWIND_IA64_H]: Include.
7154
7155 2004-04-07 Jason Molenda (jmolenda@apple.com)
7156
7157 * frame.h: Typeo corrections in comments.
7158
7159 2004-04-07 Jim Blandy <jimb@redhat.com>
7160
7161 * i386-tdep.c (i386_stab_reg_to_regnum): Correct numbering for
7162 %esp and %ebp
7163
7164 2004-04-07 Mark Kettenis <kettenis@gnu.org>
7165
7166 * config/sparc/linux.mt (TDEPFILES): Remove solib-legacy.o.
7167 * config/sparc/linux64.mt (TDEPFILES): Likewise.
7168 * config/sparc/sol2.mt (TDEPFILES): Add solib.o and solib-svr4.o.
7169 * config/sparc/sol2.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
7170 and solib-legacy.o.
7171 * config/sparc/sol2-64.mt (TDEPFILES): Add solib.o and
7172 solib-svr4.o.
7173 * config/sparc/tm-sol2.h: Update copyright year. Include
7174 "solib.h".
7175
7176 * sparc-sol2-tdep.c: Update copyright year. Include
7177 "solib-svr4.h".
7178 (sparc32_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
7179 * sparc64-sol2-tdep.c: Include "solib-svr4.h".
7180 (sparc64_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
7181 * Makefile.in (sparc-sol2-tdep.o, sparc64-sol2-tdep.o): Update
7182 dependencies.
7183
7184 2004-04-06 Andrew Cagney <cagney@redhat.com>
7185
7186 * infttrace.c: Include "infttrace.h".
7187 * infttrace.h: Include "target.h".
7188 * Makefile.in (infttrace_h): Update.
7189 (infttrace.o): Update.
7190
7191 2004-04-06 Andrew Cagney <cagney@redhat.com>
7192
7193 * hppah-nat.c (hpux_has_forked, hpux_has_vforked)
7194 (hpux_has_execd, hpux_has_syscall_event): Include "infttrace.h",
7195 move extern declarations from here ...
7196 * infttrace.h: ... to here.
7197 * Makefile.in (hppah-nat.o): Update dependencies.
7198
7199 * hppa-tdep.c (hppa_breakpoint_from_pc): Make static.
7200 (hppa_gdbarch_init): Set gdbarch_breakpoint_from_pc
7201 * config/pa/tm-hppa.h (BREAKPOINT_FROM_PC, BREAKPOINT32):
7202 (hppa_breakpoint_from_pc): Delete.
7203
7204 * MAINTAINERS: Mark hppa-elf as buildable with -Werror.
7205
7206 2004-04-05 Andrew Cagney <cagney@redhat.com>
7207
7208 * hppa-tdep.c: Do not include <sys/types.h>, <sys/param.h>,
7209 <signal.h>, <sys/ptrace.h>, #include "a.out.encap.h",
7210 <sys/file.h>.
7211
7212 2004-04-06 Randolph Chung <tausq@debian.org>
7213
7214 Committed by Andrew Cagney (mechanical change).
7215 * hppa-tdep.c: (args_for_find_stub, hp_som_som_object_present,
7216 exception_catchpoints_are_fragile, find_stub_with_shl_get,
7217 cover_find_stub_with_shl_get, initialize_hp_cxx_exception_support,
7218 child_enable_exception_callback, current_ex_event,
7219 null_symtab_and_line, child_get_current_exception_event,
7220 HP_ACC_EH_notify_hook, HP_ACC_EH_set_hook_value,
7221 HP_ACC_EH_notify_callback, HP_ACC_EH_break, HP_ACC_EH_catch_throw,
7222 HP_ACC_EH_catch_catch, __eh_notification, hp_cxx_exception_support,
7223 hp_cxx_exception_support_initialized, eh_notify_hook_addr,
7224 eh_notify_callback_addr, eh_break_addr, eh_catch_catch_addr,
7225 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior):
7226 Move hpux-specific definitions ...
7227 * hppa-hpux-tdep.c: ... to here.
7228
7229 2004-04-05 Andrew Cagney <cagney@redhat.com>
7230
7231 * hppa-tdep.c (hppa_frame_cache): Pass the frame's func to
7232 skip_prologue_using_sal.
7233
7234 2004-04-05 Andrew Cagney <cagney@redhat.com>
7235
7236 * config/i386/tm-i386.h: Delete file.
7237 * config/i386/tm-vxworks.h: Update copyright, do not include
7238 "tm-i386.h".
7239 * config/i386/tm-nto.h, config/i386/tm-linux.h: Ditto.
7240 * config/i386/tm-i386sol2.h, config/i386/tm-i386lynx.h: Ditto.
7241 * config/i386/tm-go32.h, config/i386/tm-cygwin.h: Ditto.
7242 * config/i386/ncr3000.mt (TM_FILE): Delete.
7243 * config/i386/interix.mt (TM_FILE): Delete.
7244 * config/i386/i386v.mt (TM_FILE): Delete.
7245 * config/i386/i386nw.mt (TM_FILE): Delete.
7246 * config/i386/i386gnu.mt (TM_FILE): Delete.
7247 * config/i386/i386aout.mt (TM_FILE): Delete.
7248 * config/i386/embed.mt (TM_FILE): Delete.
7249
7250 2004-04-05 Kevin Buettner <kevinb@redhat.com>
7251
7252 * frv-tdep.h (fsr0_regnum, acc0_regnum, acc7_regnum, accg0123_regnum)
7253 (accg4567_regnum, msr0_regnum, msr1_regnum, gner0_regnum)
7254 (gner1_regnum, fner0_regnum, fner1_regnum, accg0_regnum)
7255 (accg7_regnum): New constants.
7256 (last_spr_regnum, last_pseudo_regnum): Update.
7257 * frv-tdep.c (new_variant): Initialize names for fsr0, acc0-acc7,
7258 accg0-accg7, msr0, msr1, gner0, gner1, fner0, and fner1.
7259 (frv_pseudo_register_read, frv_pseudo_register_write): Add support
7260 for accg registers.
7261 (frv_register_sim_regno): Update spr_map[].
7262
7263 2004-04-04 Andrew Cagney <cagney@redhat.com>
7264
7265 * config/mips/xm-riscos.h: Delete.
7266 * config/mips/xm-mipsv4.h, config/mips/xm-mips.h: Delete.
7267 * config/mips/tm-mipsv4.h, config/mips/riscos.mh: Delete.
7268 * config/mips/nm-riscos.h, config/mips/nm-news-mips.h: Delete.
7269 * config/mips/nm-mips.h, config/mips/news-mips.mh: Delete.
7270 * config/mips/news-mips.mh, config/m68k/tm-m68kv4.h: Delete.
7271 * config/mips/decstation.mh, config/mips/littlemips.mh: Delete.
7272 * config/mips/mipsv4.mt, config/m68k/tm-sun3.h: Delete.
7273 * config/m68k/xm-sun3os4.h, config/m68k/xm-sun3.h: Delete.
7274 * config/m68k/xm-sun2.h, config/m68k/xm-m68kv4.h: Delete.
7275 * config/m68k/xm-dpx2.h, config/m68k/xm-delta68.h: Delete.
7276 * config/m68k/xm-3b1.h, config/m68k/tm-sun3os4.h: Delete.
7277 * config/m68k/tm-m68klynx.h, config/m68k/tm-dpx2.h: Delete.
7278 * config/m68k/tm-delta68.h, config/m68k/tm-3b1.h: Delete.
7279 * config/m68k/sun3os4.mt, config/m68k/nm-sysv4.h: Delete.
7280 * config/m68k/nm-sun3.h, config/m68k/sun3os4.mh: Delete.
7281 * config/m68k/sun2os3.mh, config/m68k/nm-sun2.h: Delete.
7282 * config/m68k/nm-m68klynx.h, config/m68k/sun3os3.mt: Delete.
7283 * config/m68k/nm-dpx2.h, config/m68k/sun2os3.mt: Delete.
7284 * config/m68k/dpx2.mh, config/m68k/sun3os3.mh: Delete.
7285 * config/m68k/sun2os4.mh, config/m68k/nm-delta68.h: Delete.
7286 * config/m68k/m68kv4.mt, config/m68k/m68klynx.mt: Delete.
7287 * config/m68k/3b1.mt, config/m68k/m68klynx.mh: Delete.
7288 * config/m68k/m68kv4.mh, config/m68k/sun2os4.mt: Delete.
7289 * config/m68k/tm-sun2os4.h, config/m68k/3b1.mh: Delete.
7290 * config/m68k/dpx2.mt, config/m68k/delta68.mt: Delete.
7291 * config/m68k/tm-sun2.h, config/m68k/delta68.mh: Delete.
7292
7293 * configure.tgt: Remove m68000-*-sunos3*, m68000-*-sunos4*,
7294 m68*-bull-sysv*, m68*-att-*, m68*-motorola-*, m68*-*-lynxos*,
7295 m68*-*-sunos3*, m68*-*-sunos4*, m68*-*-sysv4*, mips*-*-sysv4*.
7296 * configure.host: Remove m680[01]0-sun-sunos3*,
7297 m680[01]0-sun-sunos4*, m68*-att-*, m68*-bull*-sysv*,
7298 m68*-*-lynxos*, m68*-*-sysv4*, m68*-motorola-*, m68*-sun-sunos3*,
7299 m68*-sun-sunos4*, m68*-sun-*, mips-dec-*, mips-little-*,
7300 mips-sony-*, mips-*-mach3*, mips-*-sysv4*, mips-*-sysv*,
7301 mips-*-riscos*.
7302 * NEWS: Mention removed systems.
7303
7304 2004-04-04 Andrew Cagney <cagney@redhat.com>
7305
7306 GDB 6.1 release created from 6.1 branch.
7307
7308 2004-04-04 Andrew Cagney <cagney@redhat.com>
7309
7310 * gnu-nat.c (gnu_wait): Use memcpy instead of bcopy.
7311 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
7312 * remote-vx68.c (vx_read_register, vx_write_register): Ditto.
7313
7314 * config/vax/xm-vax.h (FAULT_CODE_ORIGIN, INIT_STACK): Delete.
7315 * config/alpha/xm-alphaosf.h (NO_SIGINTERRUPT): Delete.
7316 * config/alpha/xm-alphalinux.h (NO_SIGINTERRUPT): Delete.
7317
7318 2004-04-03 Jim Blandy <jimb@redhat.com>
7319
7320 * MAINTAINERS: Chris Faylor has changed employers; add him to
7321 "paper trail" section, and update his E-mail address.
7322
7323 2004-04-03 Andrew Cagney <cagney@redhat.com>
7324
7325 * frame-unwind.c (frame_unwind_find_by_frame): Delete check for
7326 generic dummy frames.
7327 * dummy-frame.c: Update copyright.
7328 (dummy_frame_sniffer): Delete check for generic dummy frames.
7329
7330 * config/pa/tm-hppa.h (REG_PARM_STACK_SPACE): Delete.
7331 * config/pa/tm-hppa64.h (PA20W_CALLING_CONVENTIONS)
7332 (REG_PARM_STACK_SPACE): Delete.
7333 * hppa-tdep.c (hppa64_push_dummy_call, hppa32_push_dummy_call):
7334 Inline reference to REG_PARM_STACK_SPACE.
7335
7336 * config/pa/tm-hppah.h (FRAME_SAVED_PC_IN_SIGTRAMP)
7337 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
7338 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
7339 (FRAME_BASE_BEFORE_SIGTRAMP)
7340 (hppa32_hpux_frame_base_before_sigtramp)
7341 (hppa32_hpux_frame_saved_pc_in_sigtramp): Delete.
7342 * config/pa/tm-hppa64.h (hppa64_hpux_frame_saved_pc_in_sigtramp)
7343 (hppa64_hpux_frame_find_saved_regs_in_sigtramp)
7344 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
7345 (FRAME_BASE_BEFORE_SIGTRAMP)
7346 (hppa64_hpux_frame_base_before_sigtramp)
7347 (FRAME_SAVED_PC_IN_SIGTRAMP): Delete.
7348
7349 2004-04-03 Andrew Cagney <cagney@redhat.com>
7350
7351 * PROBLEMS: Mention that GDB doesn't build on HP/UX 11.00.
7352
7353 2004-04-02 Andrew Cagney <cagney@redhat.com>
7354
7355 * sh64-tdep.c (sh64_init_extra_frame_info): Replace
7356 DEPRECATED_CALL_DUMMY_LENGTH with 0, simplify.
7357 * dummy-frame.h: Delete out-of-date comments.
7358 * gdbarch.sh (DEPRECATED_CALL_DUMMY_LENGTH): Delete.
7359 * gdbarch.h, gdbarch.c: Re-generate.
7360
7361 2004-04-02 Joel Brobecker <brobecker@gnat.com>
7362
7363 Committed by Andrew Cagney <cagney@redhat.com>.
7364 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Do not take
7365 into account an instruction saving a register if we have already
7366 seen an earlier instruction saving that same register.
7367
7368 2004-04-02 Andrew Cagney <cagney@redhat.com>
7369
7370 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Delete.
7371 * gdbarch.h, gdbarch.c: Re-generate.
7372 * frame.c (legacy_get_prev_frame): Delete references to
7373 DEPRECATED_INIT_FRAME_PC_FIRST.
7374
7375 * infrun.c (pc_in_sigtramp): Delete function.
7376 (check_sigtramp2): Inline call to pc_in_sigtramp, use
7377 get_frame_type.
7378
7379 2004-04-02 Andrew Cagney <cagney@redhat.com>
7380
7381 * infrun.c (handle_step_into_function): Delete code conditional on
7382 legacy_frame_p.
7383 (handle_inferior_event, step_over_function): Ditto.
7384
7385 2004-04-02 Andrew Cagney <cagney@redhat.com>
7386
7387 * frame.c (get_prev_frame_1): Exclude signal trampolines from the
7388 "previous frame inner to this frame" test.
7389
7390 2004-04-02 Andrew Cagney <cagney@redhat.com>
7391
7392 * frame.c (safe_frame_unwind_memory): New function.
7393 * frame.h (safe_frame_unwind_memory): Declare. Update description
7394 of /safe_/ methods.
7395 * tramp-frame.c (tramp_frame_start): Re-order parmeters, add
7396 "next_frame". Use safe_frame_unwind_memory.
7397 (tramp_frame_sniffer): Update call to tramp_frame_start.
7398
7399 2004-04-01 Daniel Jacobowitz <drow@mvista.com>
7400
7401 * dwarf2read.c (dwarf2_objfile_data_key): New.
7402 (struct dwarf2_per_objfile, dwarf2_per_objfile): New.
7403 (dwarf_info_size, dwarf_abbrev_size, dwarf_line_size)
7404 (dwarf_pubnames_size, dwarf_aranges_size, dwarf_loc_size)
7405 (dwarf_macinfo_size, dwarf_str_size, dwarf_ranges_size)
7406 (dwarf_frame_size, dwarf_eh_frame_size, dwarf_info_buffer)
7407 (dwarf_abbrev_buffer, dwarf_line_buffer, dwarf_str_buffer)
7408 (dwarf_macinfo_buffer, dwarf_ranges_buffer, dwarf_loc_buffer):
7409 Remove variables.
7410 (struct dwarf2_pinfo): Remove per-objfile members. Update comments.
7411 (DWARF_ABBREV_SIZE, DWARF_LINE_SIZE)
7412 (DWARF_LOC_SIZE, DWARF_MACINFO_SIZE, DWARF_STR_SIZE)
7413 (DWARF_RANGES_SIZE, DWARF_INFO_BUFFER)
7414 (DWARF_ABBREV_BUFFER, DWARF_LINE_BUFFER, DWARF_STR_BUFFER)
7415 (DWARF_MACINFO_BUFFER, DWARF_RANGES_BUFFER, DWARF_LOC_BUFFER):
7416 Remove macros.
7417 (dwarf2_has_info): Take an objfile argument. Allocate per-objfile
7418 data.
7419 (dwarf2_locate_sections, dwarf2_build_psymtabs)
7420 (dwarf2_build_psymtabs_easy, dwarf2_build_psymtabs_hard)
7421 (skip_one_die, dwarf2_get_pc_bounds, dwarf2_read_abbrevs)
7422 (read_partial_die, read_full_die, read_indirect_string)
7423 (dwarf_decode_line_header, dwarf_decode_macros)
7424 (dwarf2_symbol_mark_computed): Remove use of removed macros.
7425 Update uses of removed variables.
7426 (psymtab_to_symtab_1): Restore per-objfile data pointer. Remove use
7427 of removed macros.
7428 (_initialize_dwarf2_read): New function.
7429 * symfile.h (dwarf2_has_info): Update prototype.
7430 * coffread.c (coff_symfile_read): Update call to dwarf2_has_info.
7431 * elfread.c (elf_symfile_read): Likewise.
7432
7433 2004-04-01 Jim Blandy <jimb@redhat.com>
7434
7435 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): New, unified
7436 function for register numbers on all the rs6000-derived targets.
7437 (rs6000_gdbarch_init): Don't register a separate
7438 gdbarch_dwarf2_reg_to_regnum function for the E500. Use
7439 rs6000_dwarf2_stab_reg_to_regnum for both Dwarf 2 and stabs on all
7440 variants.
7441
7442 * i386-tdep.c: Add FIXME regarding STABS vs. Dwarf 2 register
7443 numbering.
7444
7445 2004-04-01 Paul N. Hilfinger <Hilfinger@gnat.com>
7446
7447 * valarith.c: Update copyright notice.
7448 (value_add): Handle range types.
7449 (value_sub): Ditto.
7450 (value_equal): Ditto.
7451 (value_less): Ditto.
7452 (value_neg): Ditto.
7453 (value_complement): Ditto.
7454 (value_binop): Simplify slightly by using is_integral_type and
7455 eliminiating unnecessary COERCE_ENUMs.
7456
7457 2004-03-31 Andrew Cagney <cagney@redhat.com>
7458
7459 * frame.h (frame_unwind_id): Declare.
7460 * frame.c (frame_unwind_id): New function.
7461 (get_prev_frame_1): New function.
7462 (frame_debug_got_null_frame): New function.
7463 (get_prev_frame): Use frame_debug_got_null_frame. Move unwind
7464 code proper to prev_frame, update description.
7465 * infrun.c (step_over_function): Use frame_unwind_id.
7466
7467 2004-04-31 J. Brobecker <brobecker@gnat.com>
7468
7469 * hppa-tdep.c (hppa32_push_dummy_call): Set the Stack Pointer.
7470 (hppa64_push_dummy_call): Likewise.
7471
7472 2004-03-30 Jim Blandy <jimb@redhat.com>
7473
7474 From Ulrich Weigand:
7475 * utils.c (query): Do not use a va_list variable multiple times.
7476
7477 2004-03-29 Daniel Jacobowitz <drow@mvista.com>
7478
7479 * Makefile.in (linux_nat_h): Update dependencies.
7480 * configure.in: Check for <gnu/libc-version.h>.
7481 * configure: Regenerate.
7482 * config.in: Regenerate.
7483 * linux-nat.h: Include "target.h". Add waitstatus field to
7484 struct lwp_info.
7485 * lin-lwp.c (add_lwp): Initialize waitstatus.kind.
7486 (lin_lwp_attach_lwp): Don't attach to LWPs we have already attached
7487 to.
7488 (lin_lwp_handle_extended): New function. Handle clone events.
7489 (wait_lwp): Use lin_lwp_handle_extended. Update comment about
7490 thread exit events.
7491 (child_wait): Handle clone events.
7492 (lin_lwp_wait: Use lin_lwp_handle_extended and handle clone events.
7493 * linux-nat.c (linux_enable_event_reporting): Turn on
7494 PTRACE_O_TRACECLONE.
7495 (linux_handle_extended_wait): Handle clone events.
7496 * thread-db.c: Include <gnu/libc-version.h>.
7497 (struct private_thread_info): Add dying flag.
7498 (enable_thread_event_reporting): Enable TD_DEATH for glibc 2.2 and
7499 higher.
7500 (attach_thread): Update comments. Handle dying threads.
7501 (detach_thread): Set the dying flag.
7502 (check_event): Always call attach_thread.
7503
7504 2004-03-29 Daniel Jacobowitz <drow@mvista.com>
7505
7506 * mips-tdep.c (mips_pdr_data): New.
7507 (non_heuristic_proc_desc): Use objfile_data and set_objfile_data.
7508 (_initialize_mips_tdep): Initialize mips_pdr_data.
7509
7510 2004-03-29 Corinna Vinschen <vinschen@redhat.com>
7511
7512 * minsyms.c (install_minimal_symbols): Move dropping leading
7513 char from linkage name from here...
7514 (prim_record_minimal_symbol_and_info): ...to here. Simplify
7515 test for "__gnu_compiled*" symbols.
7516
7517 2004-03-28 Jim Blandy <jimb@redhat.com>
7518
7519 * rs6000-tdep.c (skip_prologue): Recognize moves from argument
7520 registers to temp register r0 and byte stores as prologue
7521 instructions.
7522
7523 2004-03-28 Andrew Cagney <cagney@redhat.com>
7524
7525 * PROBLEMS (Stack backtraces): Rewrite. Remove reference to
7526 arm*-*-*.
7527
7528 2004-03-28 Stephane Carrez <stcarrez@nerim.fr>
7529
7530 * tui/tui-regs.c (tui_show_registers): Make sure the TUI is active
7531 and switch the layout to force a display of register window.
7532
7533 2004-02-26 J. Brobecker <brobecker@gnat.com>
7534
7535 * amd64-tdep.c (amd64_classify): make RANGE_TYPE objects be part
7536 of the INTEGER class.
7537
7538 2004-03-26 Jim Blandy <jimb@redhat.com>
7539
7540 * ppc-linux-tdep.c (ppc_linux_init_abi): Long doubles are eight
7541 bytes long on PPC GNU/Linux.
7542
7543 2004-03-26 David Carlton <carlton@kealia.com>
7544
7545 * PROBLEMS: Refer to gdb/1588 instead of gdb/826.
7546
7547 2004-03-25 Andrew Cagney <cagney@redhat.com>
7548
7549 * PROBLEMS: Add general section titles, remove references to
7550 specific releases.
7551
7552 2004-03-25 Daniel Jacobowitz <drow@mvista.com>
7553
7554 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE): Define to
7555 INT_REGISTER_SIZE.
7556 (arm_linux_push_arguments): Use TARGET_DOUBLE_BIT instead of
7557 FP_REGISTER_VIRTUAL_SIZE.
7558 * arm-tdep.c (arm_make_sigtramp_cache): Use register_size instead
7559 of DEPRECATED_REGISTER_RAW_SIZE.
7560 (arm_register_type): Add gdbarch argument.
7561 (arm_register_raw_size, arm_register_virtual_size): Delete.
7562 (arm_register_byte, arm_extract_return_value)
7563 (arm_store_return_value, arm_get_longjmp_target): Update references
7564 to INT_REGISTER_RAW_SIZE and FP_REGISTER_RAW_SIZE.
7565 (arm_gdbarch_init): Likewise. Don't set
7566 deprecated_register_raw_size, deprecated_register_virtual_size,
7567 deprecated_max_register_raw_size,
7568 deprecated_max_register_virtual_size, or
7569 deprecated_max_register_virtual_type. Do set register_type.
7570 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE)
7571 (ARM_MAX_REGISTER_VIRTUAL_SIZE, INT_REGISTER_VIRTUAL_SIZE)
7572 (FP_REGISTER_VIRTUAL_SIZE): Delete.
7573 (INT_REGISTER_RAW_SIZE): Rename to INT_REGISTER_SIZE.
7574 (FP_REGISTER_RAW_SIZE): Rename to FP_REGISTER_SIZE.
7575 * arm-linux-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Define to
7576 INT_REGISTER_SIZE.
7577 * remote-rdp.c (remote_rdp_fetch_register): Use MAX_REGISTER_SIZE.
7578 (remote_rdp_store_register): Likewise.
7579
7580 2004-03-24 Daniel Jacobowitz <drow@mvista.com>
7581
7582 * Makefile.in (mips-linux-tdep.o): Update dependencies.
7583 * mips-tdep.c (mips_gdbarch_init): Move frame predicates
7584 to after osabi initialization.
7585 * mips-linux-tdep.c: Include "trad-frame.h" and "tramp-frame.h".
7586 (mips_linux_o32_sigframe_init, mips_linux_n32n64_sigframe_init): New
7587 functions.
7588 (mips_linux_o32_sigframe, mips_linux_o32_rt_sigframe)
7589 (mips_linux_n32_rt_sigframe, mips_linux_n64_rt_sigframe): New
7590 variables.
7591 (mips_linux_init_abi): Append signal trampoline unwinders.
7592
7593 2004-03-24 Andrew Cagney <cagney@redhat.com>
7594
7595 * tramp-frame.h (TRAMP_SENTINEL_INSN): Define, document.
7596 * tramp-frame.c: Include "gdb_assert.h".
7597 (tramp_frame_start): Use TRAMP_SENTINEL_INSN. Use ULONGEST and
7598 correct sizeof.
7599 (tramp_frame_append): Validate the tramp frame's instructions.
7600 * Makefile.in (tramp-frame.o): Update dependencies.
7601
7602 2004-03-23 Andrew Cagney <cagney@redhat.com>
7603
7604 * trad-frame.h (trad_frame_set_reg_addr): Declare.
7605
7606 2004-03-23 Andrew Cagney <cagney@redhat.com>
7607
7608 * MAINTAINERS (Past Maintainers): Add Mark Salter and Fernando
7609 Nasser as past testsuite/lib/ (and other) maintainers.
7610
7611 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
7612
7613 * infcmd.c (attach_command): Reread symbols if we already have
7614 an exec file.
7615
7616 2004-03-23 Andrew Cagney <cagney@redhat.com>
7617
7618 * rs6000-tdep.c (frame_get_saved_regs): Delete unused function.
7619
7620 2004-03-23 Andrew Cagney <cagney@redhat.com>
7621
7622 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): Deprecate.
7623 * gdbarch.h, gdbarch.c: Re-generate.
7624 * i386obsd-tdep.c (i386obsd_init_abi): Update.
7625 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
7626 * i386bsd-tdep.c (i386bsd_init_abi): Update.
7627 * config/vax/tm-vaxbsd.h (DEPRECATED_SIGTRAMP_END)
7628 (DEPRECATED_SIGTRAMP_START): Update.
7629 * config/m68k/tm-nbsd.h (DEPRECATED_SIGTRAMP_END)
7630 (DEPRECATED_SIGTRAMP_START): Update.
7631 * blockframe.c (find_pc_sect_partial_function): Update.
7632 * arch-utils.c (legacy_pc_in_sigtramp): Update.
7633
7634 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
7635
7636 * remote.c (remote_open_1): Reopen the exec file and reread symbols
7637 if necessary.
7638
7639 2004-03-23 Andrew Cagney <cagney@redhat.com>
7640
7641 * gdbarch.sh (PC_IN_SIGTRAMP): Change to a function with
7642 predicate, deprecate.
7643 * gdbarch.h, gdbarch.c: Re-generate.
7644 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
7645 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
7646 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Update.
7647 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
7648 * alphanbsd-tdep.c (alphanbsd_init_abi): Update.
7649 * amd64-linux-tdep.c (amd64_linux_init_abi): Update.
7650 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Update.
7651 * amd64nbsd-tdep.c (amd64nbsd_init_abi): Update.
7652 * amd64obsd-tdep.c (amd64obsd_init_abi): Update.
7653 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Update.
7654 * blockframe.c (find_pc_partial_function): Update.
7655 * breakpoint.c (bpstat_what): Update.
7656 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update.
7657 * frv-linux-tdep.c (frv_linux_init_abi): Update.
7658 * frv-tdep.c (frv_sigtramp_frame_sniffer): Update.
7659 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Update.
7660 * i386-interix-tdep.c (i386_interix_init_abi): Update.
7661 * i386-linux-tdep.c (i386_linux_init_abi): Update.
7662 * i386-nto-tdep.c (i386nto_init_abi): Update.
7663 * i386-sol2-tdep.c (i386_sol2_init_abi): Update.
7664 * i386-tdep.c (i386_sigtramp_frame_sniffer)
7665 (i386_svr4_init_abi, i386_go32_init_abi, i386_gdbarch_init): Update.
7666 * i386bsd-tdep.c (i386bsd_init_abi): Update.
7667 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
7668 * i386obsd-tdep.c (i386obsd_init_abi): Update.
7669 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Update.
7670 * infrun.c (pc_in_sigtramp): Update.
7671 * m68k-tdep.c (m68k_sigtramp_frame_sniffer): Update.
7672 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
7673 * mips-tdep.c (mips_gdbarch_init): Update.
7674 * mipsnbsd-tdep.c (mipsnbsd_init_abi): Update.
7675 * ppc-linux-tdep.c: Update comment.
7676 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Update.
7677 * shnbsd-tdep.c (shnbsd_init_abi): Update.
7678 * sparc-linux-tdep.c (sparc32_linux_init_abi): Update.
7679 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Update.
7680 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Update.
7681 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Update.
7682 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Update.
7683 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Update.
7684 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Update.
7685 * sparcobsd-tdep.c (sparc32obsd_init_abi): Update.
7686
7687 2004-03-23 Andrew Cagney <cagney@redhat.com>
7688
7689 * tramp-frame.h, tramp-frame.h: New files.
7690 * Makefile.in (SFILES, tramp_frame_h, COMMON_OBS, tramp-frame.o):
7691 Update rules to include "tramp-frame.h" and "tramp-frame.c".
7692
7693 * Makefile.in: Update all dependencies.
7694
7695 2004-03-23 Andrew Cagney <cagney@redhat.com>
7696
7697 * Makefile.in (trad_frame_h): Add $(frame_h).
7698 * trad-frame.h: Update copyright. Include "frame.h".
7699 (struct trad_frame_cache, trad_frame_cache_zalloc): Declare.
7700 (trad_frame_set_id, trad_frame_get_id): Declare.
7701 (trad_frame_set_reg_addr, trad_frame_get_register): Declare.
7702 * trad-frame.c: Update copyright.
7703 (struct trad_frame_cache): Define.
7704 (trad_frame_cache_zalloc): New function.
7705 (trad_frame_set_id, trad_frame_get_id): New functions.
7706 (trad_frame_set_reg_addr, trad_frame_get_register): New functions.
7707
7708 2004-03-22 Andrew Cagney <cagney@redhat.com>
7709
7710 * s390-tdep.c (struct s390_stub_unwind_cache): Rename
7711 s390_pltstub_unwind_cache.
7712 (s390_stub_frame_unwind_cache): Rename
7713 s390_pltstub_frame_unwind_cache.
7714 (s390_stub_frame_this_id): Rename s390_pltstub_frame_this_id.
7715 (s390_stub_frame_prev_register): Rename
7716 s390_pltstub_frame_prev_register.
7717 (s390_stub_frame_unwind): Rename s390_pltstub_frame_unwind.
7718 (s390_stub_frame_sniffer): Rename s390_stub_frame_sniffer.
7719
7720 From Ulrich Weigand:
7721 * s390-tdep.c (s390_pltstub_frame_sniffer): Handle invalid function
7722 pointer calls like PLT calls.
7723
7724 2004-03-22 Daniel Jacobowitz <drow@mvista.com>
7725
7726 * mips-tdep.c (non_heuristic_proc_desc): Search using the specified
7727 PC rather than the partial function start address. Use the start
7728 address to sanity check the found PDR.
7729
7730 2004-03-22 Daniel Jacobowitz <drow@mvista.com>
7731
7732 * lin-lwp.c (lin_lwp_wait): Pass the LWP ID to
7733 linux_handle_extended_wait.
7734
7735 2004-03-22 Andrew Cagney <cagney@redhat.com>
7736
7737 * rs6000-tdep.c (frame_initial_stack_address): Delete unused
7738 function.
7739
7740 * frame.h (generic_pop_current_frame): Delete declaration.
7741 (deprecate_pop_dummy_frame): Deprecate
7742 generic_pop_dummy_frame.
7743 * dummy-frame.c (deprecated_pop_dummy_frame): Update.
7744 (generic_pop_current_frame): Delete function.
7745 * mn10300-tdep.c (mn10300_pop_frame): Eliminate call to
7746 generic_pop_current_frame.
7747 * v850-tdep.c (v850_pop_frame): Update.
7748 * mcore-tdep.c (mcore_pop_frame): Update.
7749 * sh64-tdep.c (sh64_pop_frame): Update.
7750 * h8300-tdep.c (h8300_pop_frame): Update.
7751
7752 2004-03-22 Andrew Cagney <cagney@redhat.com>
7753
7754 * frame.h (deprecated_pc_in_call_dummy): Rename
7755 generic_pc_in_call_dummy.
7756 * dummy-frame.h (pc_in_dummy_frame): Delete declaration.
7757 * dummy-frame.c (deprecated_pc_in_call_dummy): Rename
7758 generic_pc_in_call_dummy.
7759 (pc_in_dummy_frame): Make static.
7760 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Update.
7761 * gdbarch.h, gdbarch.c: Re-generate.
7762 * dummy-frame.c (dummy_frame_sniffer): Simplify.
7763 * frame.c (frame_type_from_pc): Call deprecated_pc_in_call_dummy.
7764 (legacy_get_prev_frame): Ditto.
7765 * inferior.h: Delete reference to generic_pc_in_call_dummy in
7766 comment.
7767
7768 2004-03-21 Andrew Cagney <cagney@redhat.com>
7769
7770 * inferior.h (deprecated_pc_in_call_dummy_at_entry_point): Delete
7771 declaration and out-of-date comment.
7772 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
7773 Delete function.
7774 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
7775 deprecated_pc_in_call_dummy.
7776
7777 * infrun.c (handle_inferior_event): For non legacy frames, use the
7778 frame ID and frame type to identify a signal trampoline. Update
7779 comments.
7780
7781 2004-03-21 Nathan J. Williams <nathanw@wasabisystems.com>
7782
7783 * mipsnbsd-tdep.c: Update copyright. Include "mips-tdep.h".
7784 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
7785
7786 2004-03-21 Andrew Cagney <cagney@redhat.com>
7787
7788 * frame-unwind.h: Update copyright.
7789 (struct frame_data): Add opaque declaration.
7790 (frame_sniffer_ftype): Declare.
7791 (struct frame_unwind): Add "unwind_data" and "sniffer".
7792 (frame_unwind_register_unwinder): Declare.
7793 (frame_unwind_find_by_frame): Add parameter "this_cache".
7794 * frame.c (get_frame_id, create_new_frame, legacy_get_prev_frame)
7795 (legacy_get_prev_frame, legacy_get_prev_frame)
7796 (get_frame_type): Pass the prologue_cache to
7797 frame_unwind_find_by_frame.
7798 * frame-unwind.c (struct frame_unwind_table_entry): Add field
7799 "unwinder".
7800 (frame_unwind_register_unwinder): New function.
7801 (frame_unwind_find_by_frame): Handle an unwind sniffer.
7802
7803 2004-03-20 Paul Hilfinger <hilfingr@nile.gnat.com>
7804
7805 * bcache.c (print_percentage): Use floating point to avoid
7806 incorrect results when portion*100 overflows.
7807
7808 2004-03-19 Kevin Buettner <kevinb@redhat.com>
7809
7810 * ppc_tdep.h (ppc_linux_frame_saved_pc)
7811 (ppc_linux_init_extra_frame_info)
7812 (ppc_linux_frameless_function_invocation)
7813 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain)
7814 (rs6000_frame_saved_pc, rs6000_init_extra_frame_info)
7815 (rs6000_frameless_function_invocation, rs6000_frame_init_saved_regs)
7816 (rs6000_frame_chain): Delete declarations.
7817 * ppc-linux-tdep.c (ppc_linux_frame_saved_pc)
7818 (ppc_linux_init_extra_frame_info)
7819 (ppc_linux_frameless_function_invocation)
7820 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain): Delete.
7821 (ppc_linux_init_abi): Remove registration of above deleted functions.
7822 * rs6000-tdep.c (rs6000_init_extra_frame_info)
7823 (rs6000_frame_init_saved_regs, rs6000_init_frame_pc_first)
7824 (rs6000_frame_args_address, rs6000_saved_pc_after_call)
7825 (rs6000_pop_frame, rs6000_frameless_function_invocation)
7826 (rs6000_frame_saved_pc, rs6000_frame_chain): Delete.
7827 (rs6000_gdbarch_init): Remove registration of above deleted functions.
7828 Use rs6000_unwind_pc(), rs6000_frame_sniffer(),
7829 rs6000_unwind_dummy_id(), and rs6000_frame_base_sniffer() for
7830 frame management for all OSABIs.
7831
7832 2004-03-19 Andrew Cagney <cagney@redhat.com>
7833
7834 Committed by Kevin Buettner <kevinb@redhat.com>.
7835
7836 * ppc-linux-tdep.c: Include "trad-frame.h", and "frame-unwind.h".
7837 Update copyright.
7838 (struct ppc_linux_sigtramp_cache, ppc_linux_sigtramp_cache)
7839 (ppc_linux_sigtramp_this_id, ppc_linux_sigtramp_prev_register)
7840 (ppc_linux_sigtramp_unwind, ppc_linux_sigtramp_sniffer)
7841 (ppc_linux_init_abi): Add both 32- and 64-bit signal trampoline
7842 unwinders. #ifdef legacy frame code.
7843 * rs6000-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
7844 "frame-base.h".
7845 (rs6000_unwind_pc, rs6000_unwind_dummy_id)
7846 (struct rs6000_frame_cache, rs6000_frame_cache)
7847 (rs6000_frame_this_id, rs6000_frame_prev_register)
7848 (rs6000_frame_sniffer, rs6000_frame_unwind)
7849 (rs6000_frame_base_address, rs6000_frame_base_sniffer)
7850 (rs6000_frame_base): Implement a traditional frame unwinder.
7851 (rs6000_gdbarch_init): When unknown, NetBSD, or GNU/Linux use the
7852 frame unwinder.
7853
7854 2004-03-19 Kevin Buettner <kevinb@redhat.com>
7855
7856 * breakpoint.c (adjust_breakpoint_address): Don't adjust
7857 breakpoint address for watchpoints or the catch eventpoints.
7858 Add new paramter ``bptype''. Adjust all callers.
7859
7860 2004-03-19 Andrew Cagney <cagney@redhat.com>
7861
7862 * config/pa/tm-hppa.h (GDB_TARGET_IS_HPPA): Delete unused macro.
7863
7864 * PROBLEMS: Delete note that ARM does not use frame code, problem
7865 fixed.
7866
7867 2004-03-18 Andrew Cagney <cagney@redhat.com>
7868
7869 * stack.c (return_command): Delete code wrapped in #ifdef
7870 DEPRECATED_CALL_DUMMY_HAS_COMPLETED, macro no longer defined.
7871
7872 * rs6000-tdep.c (skip_prologue): Record only the first LR save.
7873
7874 2004-03-18 Andrew Cagney <cagney@redhat.com>
7875
7876 * config/mips/tm-nbsd.h: Replace IN_SIGTRAMP with
7877 DEPRECATED_IN_SIGTRAMP.
7878 * config/powerpc/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7879 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP) Ditto.
7880 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7881 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7882 * config/ia64/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7883 * config/ia64/tm-aix.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7884 * config/arm/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7885 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7886 * arch-utils.c (legacy_pc_in_sigtramp): Ditto.
7887 * arch-utils.h: Remove reference to IN_SIGTRAMP in comment.
7888
7889 2004-03-18 Andrew Cagney <cagney@redhat.com>
7890
7891 * frame-base.c: Update copyright. Include "gdb_obstack.h".
7892 (struct frame_base_table_entry): Define.
7893 (struct frame_base_table): Re-implement as a linked list.
7894 (frame_base_init): Re-implement.
7895 (frame_base_table): Delete function.
7896 (append_predicate): Delete function.
7897 (frame_base_append_sniffer): Update.
7898 (frame_base_set_default): Update.
7899 (frame_base_find_by_frame): Update.
7900 (_initialize_frame_base): Use gdbarch_data_register_pre_init.
7901 * Makefile.in (frame-base.o): Update dependencies.
7902
7903 2004-03-17 Andrew Cagney <cagney@redhat.com>
7904
7905 * frame.c (legacy_get_prev_frame): Pass correct frame to
7906 frame_unwind_find_by_frame.
7907
7908 2004-03-17 David Carlton <carlton@kealia.com>
7909
7910 * NEWS: Mention C++ nested types and namespaces
7911
7912 2004-03-16 Michael Chastain <mec.gnu@mindspring.com>
7913
7914 * PROBLEMS: Add section headers, "Regressions since gdb 6.0"
7915 and "Regressions since gdb 5.3.". Add known regressions since
7916 gdb 6.0.
7917
7918 2004-03-16 David Carlton <carlton@kealia.com>
7919
7920 * dwarf2read.c (process_structure_scope): Process children even
7921 when we're a declaration.
7922
7923 2004-03-16 Andrew Cagney <cagney@redhat.com>
7924
7925 * symtab.h (find_pc_sect_partial_function): Delete declaration.
7926 * blockframe.c (find_pc_partial_function)
7927 (find_pc_sect_partial_function): Merge into a single
7928 find_pc_partial_function.
7929
7930 2004-03-16 Mark Kettenis <kettenis@gnu.org>
7931
7932 * i386bsd-nat.c: s/regno/regnum/g.
7933 (fetch_inferior_registers): Use I386_ST0_REGNUM instead of
7934 FP0_REGNUM.
7935 (store_inferior_registers): Likewise.
7936
7937 2004-03-16 Mark Kettenis <kettenis@gnu.org>
7938
7939 * i386bsd-nat.c (fill_fpregset): Call i387_collect_fsave instead
7940 of i387_fill_fsave.
7941 (store_inferior_registers): Call i387_collect_fsave and
7942 i387_collect_fxsave instead of i387_fill_fsave and
7943 i387_fill_fxsave.
7944
7945 2004-03-15 Andrew Cagney <cagney@redhat.com>
7946
7947 * Makefile.in (frame-unwind.o): Update dependencies.
7948 * frame-unwind.c: Include "gdb_obstack.h".
7949 (frame_unwind_init): Replace "gdbarch" parameter with an "obstack"
7950 parameter.
7951 (append_predicate): Delete function.
7952 (struct frame_unwind_table_entry): New structure.
7953 (struct frame_unwind_table): Replace "sniffer" with "head" and
7954 "tail".
7955 (frame_unwind_append_sniffer): Update.
7956 (frame_unwind_find_by_frame): Update.
7957 (_initialize_frame_unwind): Registe frame_unwind_init using
7958 gdbarch_data_register_pre_init.
7959
7960 2004-03-15 Mark Kettenis <kettenis@gnu.org>
7961
7962 * i386bsd-nat.c: Update copyright year.
7963 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Undefine and then
7964 define unconditionally.
7965
7966 2004-03-15 Mark Kettenis <kettenis@gnu.org>
7967
7968 * i387-tdep.h (i387_collect_fsave): New prototype.
7969 * i387-tdep.c (i387_collect_fsave): New function containing most
7970 of the code from i387_fill_fsave.
7971 (i387_fill_fsave): Call i387_collect_fsave.
7972
7973 2004-03-15 Mark Kettenis <kettenis@gnu.org>
7974
7975 * i386-linux-tdep.c: Update copyright year.
7976 (i386_linux_svr4_fetch_link_map_offsets): Remove function.
7977 (i386_linux_init_abi): Set solib_svr4_fetch_link_maop_offsets to
7978 svr4_ilp32_link_map_offsets instead of
7979 i386_linux_svr4_fetch_link_map_offsets.
7980
7981 2004-03-15 David Carlton <carlton@kealia.com>
7982
7983 Fix for PR c++/1553:
7984 * dwarf2read.c (read_structure_type): Determine type name by
7985 calling determine_class_name.
7986 (determine_class_name): New.
7987 (determine_prefix): Look at TYPE_TAG_NAME and call
7988 determine_class_name when appropriate.
7989 (determine_prefix_aux, class_name): Delete.
7990 (read_namespace): Set die->type.
7991
7992 2004-03-15 Kevin Buettner <kevinb@redhat.com>
7993
7994 * breakpoint.c (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete
7995 unused macro definition. The definition in target.h (or perhaps
7996 elsewhere) takes precedence.
7997
7998 2004-03-15 Andrew Cagney <cagney@redhat.com>
7999
8000 * ppc-tdep.h: Update copyright.
8001 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Change
8002 function signatures to match "regsets.h".
8003 * ppc-linux-tdep.c: Include "regset.h".
8004 (ELF_GREGSET_SIZE): Delete.
8005 (right_supply_register): New function.
8006 (ppc_linux_supply_fpregset, ppc_linux_supply_gregset): Rewrite
8007 using right_supply_register.
8008 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): New
8009 functions.
8010 (ppc64_linux_gregset, ppc32_linux_gregset): Define.
8011 (ppc_linux_init_abi): Register ppc_linux_regset_from_core_section.
8012 (_initialize_ppc_linux_tdep): Do not register
8013 ppc_linux_regset_core_fns.
8014 (ppc_linux_regset_from_core_section): Replace
8015 fetch_core_registers.
8016 (ppc_linux_regset_core_fns): Delete.
8017 * ppc-linux-nat.c: (right_fill_reg): New function.
8018 (supply_gregset): Update call to ppc_linux_supply_gregset.
8019 (fill_gregset): Clear the register set, use right_fill_reg.
8020 (supply_fpregset): Update call to ppc_linux_supply_fpregset.
8021 (fill_fpregset): Use right_fill_reg, correctly compute FP offsets.
8022
8023 * rs6000-tdep.c (rs6000_register_virtual_type): Make registers
8024 unsigned.
8025
8026 2004-03-15 Andrew Cagney <cagney@redhat.com>
8027
8028 * gdbarch.sh (gdbarch_data_pre_init_fytpe)
8029 (gdbarch_data_register_pre_init, gdbarch_data_post_init_fytpe)
8030 (gdbarch_data_register_post_init): Replace gdbarch_data_init_ftype
8031 and register_gdbarch_data.
8032 (deprecated_set_gdbarch_data): Rename set_gdbarch_data.
8033 (struct gdbarch_data): Replace "init" by "pre_init" and
8034 "post_init".
8035 * gdbarch.h, gdbarch.c: Re-generate.
8036 * dwarf2-frame.c (dwarf2_frame_init): Replace "gdbarch" paramter
8037 with"obstack", use OBSTACK_ZALLOC.
8038 (dwarf2_frame_ops): Delete.
8039 (dwarf2_frame_set_init_reg): Use gdbarch_data.
8040 (dwarf2_frame_init_reg): Use gdbarch_data.
8041 (_initialize_dwarf2_frame): Use gdbarch_data_register_pre_init.
8042 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets)
8043 (_initialize_svr4_solib): Update.
8044 * user-regs.c (_initialize_user_regs): Update.
8045 * reggroups.c (_initialize_reggroup): Update.
8046 * regcache.c (_initialize_regcache): Update.
8047 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
8048 * libunwind-frame.c (_initialize_libunwind_frame): Update.
8049 * gnu-v3-abi.c (init_gnuv3_ops): Update.
8050 * frame-unwind.c (_initialize_frame_unwind): Update.
8051 * frame-base.c (_initialize_frame_base): Update.
8052 * user-regs.c (user_reg_add): Update.
8053 * reggroups.c (reggroup_add): Update.
8054 * mips-linux-tdep.c (set_mips_linux_register_addr): Update.
8055 * libunwind-frame.c (libunwind_frame_set_descr): Update.
8056 * frame-unwind.c (frame_unwind_append_sniffer): Update.
8057 * frame-base.c (frame_base_table): Update.
8058 * remote.c (_initialize_remote): Update.
8059 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Define.
8060
8061 2004-03-15 Andrew Cagney <cagney@redhat.com>
8062
8063 * cris-tdep.c (bfd_lookup_symbol): Delete unused function.
8064
8065 2004-03-15 Kevin Buettner <kevinb@redhat.com>
8066
8067 * Makefile.in (frv-linux-tdep.o): Add dependencies.
8068 * frv-linux-tdep.c: New file.
8069 * frv-tdep.c (struct gdbarch_tdep): Add new field
8070 ``sigcontext_reg_addr''.
8071 (frv_set_sigcontext_reg_addr, frv_sigtramp,frame_cache)
8072 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
8073 (frv_sigramp_frame_sniffer): New functions.
8074 (frv_sigtramp_frame_unwind): New static global.
8075 (frv_gdbarch_init): Hook in ABI-specific overrides. Hook up frame
8076 sniffers.
8077 * frv-tdep.h (frv_set_sigcontext_reg_addr): New function.
8078 * config/frv/frv.mt (TDEPFILES): Add frv-linux-tdep.o.
8079
8080 2004-03-15 Kevin Buettner <kevinb@redhat.com>
8081
8082 * frv-tdep.c (frv_analyze_prologue): Terminate prologue scan,
8083 but not via a call to error(), when unable to read memory.
8084
8085 2004-03-15 Kevin Buettner <kevinb@redhat.com>
8086
8087 * frv-tdep.c (frv_call_dummy_words): Delete.
8088 (frv_frame_unwind_cache): Delete unused variable, ``prev_sp''.
8089
8090 2004-03-15 Andrew Cagney <cagney@redhat.com>
8091
8092 * infrun.c (handle_step_into_function, step_over_function): Only
8093 update and use STEP_FRAME_ID when the system is using legacy
8094 frames. Update comments.
8095
8096 2004-03-14 Mark Kettenis <kettenis@gnu.org>
8097
8098 * amd64-linux-tdep.h: Remove file.
8099 * amd64-linux-tdep.c: Don't include "inferior.h" and
8100 "amd64-linux-tdep.h". Include "frame.h" and "solib-svr4.h".
8101 (USER_R15, USER_R14, USER_R13, USER_R12, USER_RBP, USER_RBX)
8102 (USER_R11, USER_R10, USER_R9, USER_R8, USER_RAX, USER_RCX)
8103 (USER_RDX, USER_RSI, USER_RDI, USER_RIP, USER_CS, USER_EFLAGS)
8104 (USER_RSP, USER_SS, USER_DS, USER_ES, USER_FS, USER_GS): Remove
8105 macros.
8106 (user_to_gdb_regmap): Remove variable.
8107 (amd64_linux_gregset_reg_offset): New variable.
8108 (amd64_core_fns): Remove variable.
8109 (fetch_core_registers): Remove function.
8110 (amd64_linux_supply_gregset, amd64_linux_fill_gregset): Remove
8111 functions.
8112 (_initialize_amd64_linux_tdep): Don't set add_core_fns.
8113 * amd64-linux-nat.c: Don't include "amd64-linux-tdep.h".
8114 * Makefile.in (amd64_linux_tdep_h): Remove.
8115 (amd64-linux-nat.o): Update dependencies.
8116 (amd64-linux-tdep.o): Update dependencies.
8117
8118 * amd64-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
8119 (fetch_regs, fetch_fpregs, store_regs, store_fpregs): Remove
8120 functions.
8121 (fetch_inferior_registers, store_inferior_registers): Rewrite.
8122
8123 * amd64-tdep.h (amd64_fill_fxsave): Remove prototype.
8124 * amd64-tdep.c (amd64_fill_fxsave): Remove function.
8125
8126 2004-03-14 Daniel Jacobowitz <drow@mvista.com>
8127
8128 * dwarf2read.c (read_structure_type): Rename from
8129 read_structure_scope. Don't create a symbol or call process_die.
8130 Return immediately if die->type is set. Call read_type_die before
8131 dwarf2_add_member_fn.
8132 (process_structure_scope): New function.
8133 (read_enumeration_type, process_enumeration_scope): New functions,
8134 broken out from read_enumeration. Don't create the enumeration
8135 type if it has already been created.
8136 (read_enumeration): Removed.
8137 (process_die): Call read_structure_type, process_structure_scope,
8138 read_enumeration_type, and process_enumeration_scope. Just call
8139 new_symbol for base and subrange types. Add a comment about other
8140 type dies.
8141 (read_type_die): Call read_enumeration_type.
8142 (add_partial_structure, new_symbol): Update comments.
8143
8144 2004-03-13 Stephane Carrez <stcarrez@nerim.fr>
8145
8146 * m68hc11-tdep.c (m68hc11_register_name): Get soft reg information.
8147
8148 2004-03-13 Stephane Carrez <stcarrez@nerim.fr>
8149
8150 * tui/tui-win.h (tui_get_cmd_list): Declare.
8151 * tui/tui-win.c (tui_command): New function.
8152 (tui_get_cmd_list): New function.
8153 (_initialize_tui_win): Moved initialization of tui command in
8154 tui_get_cmd_list.
8155
8156 * tui/tui-data.c (init_content_element): Setup new data members.
8157 (init_win_info): Likewise.
8158 (free_content_elements): Free it.
8159 * tui/tui-data.h (struct tui_data_element): Store the register
8160 content to print.
8161 (struct tui_data_info): Keep the current register group.
8162
8163 * tui/tui-layout.c (tui_set_layout): Update call to tui_show_registers.
8164
8165 * tui/tui-regs.h (tui_show_registers): Update prototype.
8166 (tui_toggle_float_regs, tui_calculate_regs_column_count): Remove.
8167 (tui_resize_all): No need to calculate anything for register window.
8168 * tui/tui-regs.c (tui_calculate_regs_column_count): Remove.
8169 (tui_set_register_element, tui_set_general_regs_content): Remove.
8170 (tui_set_special_regs_content): Remove.
8171 (tui_set_general_and_special_regs_content): Remove.
8172 (tui_set_float_regs_content): Remove.
8173 (tui_reg_value_has_changed, tui_get_register_raw_value): Remove.
8174 (tui_set_regs_content): Remove.
8175 (tui_toggle_float_regs, _tui_toggle_float_regs_command): Remove.
8176 (tui_v_show_registers_command_support): Remove.
8177 (tui_show_registers): Use a reggroup to specify the registers to show.
8178 (tui_show_register_group): New function.
8179 (tui_display_registers_from): Compute the layout of register window
8180 and refresh with new API; be sure to delete old register windows.
8181 (tui_check_register_values): Update to use tui_get_register and
8182 tui_display_data.
8183 (tui_display_register): Just refresh the register window part.
8184 (tui_register_format): Format registers and save in tui_data_element.
8185 (tui_get_register): New to combine tui_reg_value_has_changed and
8186 tui_get_register_raw_value; fix to use the new gdb API.
8187 (tui_show_float_command): Renamed tui_reg_float_command.
8188 (tui_show_general_command): Renamed tui_reg_general_command.
8189 (tui_show_special_command): Renamed tui_reg_system_command.
8190 (_initialize_tui_regs): Remove unused commands.
8191
8192 2004-03-13 Mark Kettenis <kettenis@gnu.org>
8193
8194 * NEWS (New native configurations): Mention OpenBSD/amd64.
8195
8196 * config/i386/nm-fbsd.h: Include "config/nm-bsd.h".
8197 (PTRACE_ARG3_TYPE, FETCH_INFERIOR_REGISTERS, ATTACH_DETACH):
8198 Remove defines.
8199 * config/i386/nm-fbsd64.h: Likewise.
8200 * config/i386/nm-obsd.h: Likewise.
8201 * config/sparc/nm-fbsd.h: Likewise. Update copyright year.
8202 * config/alpha/nm-fbsd.h: Likewise. Update copyright year.
8203
8204 2004-03-12 Kevin Buettner <kevinb@redhat.com>
8205
8206 * frv-tdep.c (set_variant_scratch_registers): New function.
8207 * frv-tdep.h (scr0_regnum, scr1_regnum, scr2_regnum, scr3_regnum):
8208 New constants.
8209
8210 From Richard Sandiford <rsandifo@redhat.com>:
8211 * frv-tdep.c (frv_gdbarch_init): Add FR450 support.
8212
8213 2004-03-12 Kevin Buettner <kevinb@redhat.com>
8214
8215 * frv-tdep.c, frv-tdep.h (first_gpr_regnum, sp_regnum, fp_regnum)
8216 (struct_return_regnum, last_gpr_regnum, first_fpr_regnum)
8217 (last_fpr_regnum, pc_regnum, first_spr_regnum, psr_regnum, ccr_regnum)
8218 (cccr_regnum, fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum)
8219 (tbr_regnum, brr_regnum, dbar0_regnum, dbar1_regnum, dbar2_regnum)
8220 (dbar3_regnum, lr_regnum, lcr_regnum, iacc0h_regnum, iacc0l_regnum)
8221 (last_spr_regnum, frv_num_regs, first_pseudo_regnum, iacc0_regnum)
8222 (last_pseudo_regnum, frv_num_pseudo_regs): Move constant (enum)
8223 definitions from frv-tdep.c to frv-tdep.h.
8224
8225 2004-03-12 Kevin Buettner <kevinb@redhat.com>
8226
8227 Add shared library support for FR-V FDPIC ABI:
8228 * Makefile.in (solib-frv.o): Add dependencies.
8229 * frv-tdep.c (find_func_descr, frv_convert_from_func_ptr_addr):
8230 New functions.
8231 (frv_push_dummy_call): Add support for FDPIC ABI.
8232 (frv_gdbarch_init): Call set_gdbarch_convert_from_func_ptr_addr()
8233 for FDPIC ABI.
8234 * frv-tdep.h (frv_fdpic_find_global_pointer): Declare.
8235 (frv_fdpic_find_canonical_descriptor): Declare.
8236 * solib-frv.c: New file.
8237 * config/frv/frv.mt (TDEPFILES): Add solib.o and solib-frv.o.
8238 * config/frv/tm-frv.h (solib.h): Include.
8239
8240 2004-03-12 Kevin Buettner <kevinb@redhat.com>
8241
8242 * Makefile.in (elf_frv_h, frv_tdep_h): Define.
8243 (frv-tdep.o): Update dependencies.
8244 * frv-tdep.h: New file.
8245 * frv-tdep.c (elf-bfd.h, elf/frv.h, osabi.h, frv-tdep.h): Include.
8246 (fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum): New
8247 constants.
8248 (struct gdbarch_tdep): Add new member ``frv_abi''.
8249 (frv_abi, frv_fdpic_loadmap_addresses, set_variant_abi_fdpic): New
8250 functions.
8251 (new_variant): Set ``frv_abi'' field.
8252 (gdb_arch_init): Detect FDPIC executables.
8253
8254 2004-03-12 Mark Kettenis <kettenis@gnu.org>
8255
8256 * solib-svr4.h: Change SOLIB_SVR4 wrapper into SOLIB_SVR4_H
8257 wrapper.
8258
8259 2004-03-11 Andrew Cagney <cagney@redhat.com>
8260
8261 * solib-svr4.h: Add #ifndef SOLIB_SVR4 wrapper.
8262
8263 2004-03-11 Kevin Buettner <kevinb@redhat.com>
8264
8265 * solist.h (master_so_list): New function.
8266 * solib.c (master_so_list): Likewise.
8267 * solib-svr4.c (enable_break): Iterate over so_list entries
8268 obtained from master list instead of entries obtained directly
8269 via svr4_current_sos().
8270
8271 2004-03-10 Ben Elliston <bje@gnu.org>
8272
8273 * MAINTAINERS: Update my mail address.
8274
8275 2004-03-10 Kei Sakamoto <sakamoto.kei@renesas.com>
8276
8277 * remote-m32r-sdi.c: Support hardware watchpoint.
8278
8279 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
8280
8281 * user-regs.c: Update copyright years.
8282 (struct user_regs): Rename to gdb_user_regs.
8283 (append_user_reg, builtin_user_regs, user_regs_init)
8284 (user_reg_add, user_reg_map_name_to_regnum)
8285 (usernum_to_user_reg): Update.
8286
8287 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
8288
8289 * dwarf2read.c (skip_leb128, peek_die_abbrev, skip_one_die)
8290 (skip_children): New functions.
8291 (locate_pdi_sibling): Call skip_children.
8292
8293 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
8294
8295 * arm-tdep.c (arm_use_struct_convention): Look through typedefs.
8296 * gdbtypes.c (check_typedef): Update comments.
8297
8298 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
8299
8300 * dwarf2read.c (struct comp_unit_head): Remove dwarf2_abbrevs array.
8301 (struct dwarf2_cu): Add abbrev_obstack and dwarf2_abbrevs
8302 pointer. Update comment about comp_unit_head.
8303 (struct abbrev_info): Shorten two int flags.
8304 (dwarf_alloc_abbrev): Take a CU argument.
8305 (dwarf2_build_psymtabs_hard): Call dwarf2_free_abbrev_table
8306 each time through the loop. Update cleanup argument.
8307 (psymtab_to_symtab_1): Update cleanup call.
8308 (dwarf2_read_abbrevs, dwarf2_alloc_abbrev): Allocate on the
8309 abbrev_obstack.
8310 (dwarf2_free_abbrev_table): Renamed from dwarf2_empty_abbrev_table.
8311 Just call obstack_free and clear the pointer.
8312
8313 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
8314
8315 * infrun.c (handle_inferior_event): Remove short-circuit code for
8316 events in a different thread.
8317
8318 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
8319
8320 * target.c (debug_to_xfer_memory): If targetdebug is 1, don't
8321 print the whole transfer.
8322 (initialize_targets): Update description of "set debug target".
8323
8324 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
8325
8326 * arm-tdep.c (thumb_get_next_pc): Handle Thumb BLX.
8327
8328 2004-03-08 Nathan J. Williams <nathanw@wasabisystems.com>
8329
8330 * MAINTAINERS (write after approval): Add myself.
8331
8332 2004-03-08 Corinna Vinschen <vinschen@redhat.com>
8333
8334 * sh-tdep.c (sh_print_registers_info): Use for loop.
8335 Don't skip multiple registers when a float register is encountered.
8336
8337 2004-03-08 Corinna Vinschen <vinschen@redhat.com>
8338
8339 Fix PR tdep/1291.
8340 * sh-tdep.c (sh_analyze_prologue): Align PC relative addressing
8341 to official SH documentation.
8342
8343 2004-03-07 Andrew Cagney <cagney@redhat.com>
8344
8345 * ppc-linux-nat.c (ppc_ptrace_cannot_fetch_store_register): Delete
8346 unused function.
8347
8348 2004-03-07 Daniel Jacobowitz <drow@mvista.com>
8349
8350 * arm-tdep.c (thumb_get_next_pc): Handle BX.
8351 (arm_get_next_pc): Handle BX and BLX.
8352
8353 2004-03-07 Andrew Cagney <cagney@redhat.com>
8354
8355 * hppa-tdep.c: Replace DEPRECATED_FP_REGNUM with HPPA_FP_REGNUM,
8356 FP0_REGNUM with HPPA_FP0_REGNUM, and SP_REGNUM with
8357 HPPA_SP_REGNUM.
8358 (hppa_register_raw_size, hppa_register_byte, hppa_read_fp)
8359 (hppa_target_read_fp): Delete.
8360 (hppa_gdbarch_init): Do not set deprecated register_raw_size,
8361 register_virtual_size, max_register_raw_size,
8362 max_register_virtual_size, register_byte, register_size,
8363 target_read_fp, fp_regnum, and register_bytes. Set register_type
8364 instead of register_virtual_type.
8365 (hppa32_register_type, hppa64_register_type): Replace
8366 hppa32_register_virtual_type and hppa64_register_virtual_type.
8367 * config/pa/tm-hppa.h (HPPA_FP0_REGNUM, HPPA_SP_REGNUM)
8368 (HPPA_FP_REGNUM): Define.
8369
8370 * hppa-tdep.c (hppa_gdbarch_init): Add missing "break".
8371
8372 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO)
8373 (pa_do_registers_info): Delete.
8374 * hppa-tdep.c (pa_do_registers_info, pa_do_strcat_registers_info)
8375 (pa_print_registers, pa_print_fp_reg, pa_strcat_registers)
8376 (pa_strcat_fp_reg, pa_register_look_aside): Delete.
8377
8378 * infcall.c (legacy_push_dummy_code): Delete #ifdef
8379 GDB_TARGET_IS_HPPA code.
8380 * config/pa/tm-hppa.h (DEPRECATED_FIX_CALL_DUMMY)
8381 (hppa_fix_call_dummy, DEPRECATED_CALL_DUMMY_HAS_COMPLETED)
8382 (DEPRECATED_DUMMY_WRITE_SP, CALL_DUMMY): Delete.
8383 * config/pa/tm-hppa64.h (CALL_DUMMY): Delete.
8384 * hppa-tdep.c (hppa_frame_chain, hppa_frame_chain_valid)
8385 (hppa_push_dummy_frame, hppa_pop_frame, hppa_push_arguments)
8386 (hppa_fix_call_dummy, hppa64_stack_align, hppa_frame_saved_pc)
8387 (hppa_init_extra_frame_info, hppa_saved_pc_after_call)
8388 (hppa64_call_dummy_breakpoint_offset, hppa_frame_init_saved_regs)
8389 (hppa_frameless_function_invocation, hppa64_store_return_value)
8390 (hppa_store_struct_return, hppa64_extract_return_value)
8391 (hppa64_use_struct_convention, hppa_frame_find_saved_regs)
8392 (hppa32_call_dummy_length, hppa64_call_dummy_length)
8393 (find_dummy_frame_regs, FUNC_LDIL_OFFSET, FUNC_LDO_OFFSET)
8394 (find_proc_framesize, deposit_21, restore_pc_queue)
8395 (find_return_regnum, pc_in_interrupt_handler, deposit_14)
8396 (rp_saved, pc_in_linker_stub): Delete.
8397
8398 Unconditionally enable 64-bit frame and ABI code.
8399 * hppa-tdep.c (hppa_gdbarch_init): Do not set deprecated
8400 call_dummy_breakpoint_offset, call_dummy_length, stack_align,
8401 push_dummy_frame, fix_call_dummy, push_arguments,
8402 call_dummy_location, extract_return_value, use_struct_convention,
8403 store_return_value, store_struct_return, saved_pc_after_call,
8404 init_frame_pc, frame_init_saved_regs, init_extra_frame_info,
8405 frame_chain, frame_chain_valid, frameless_function_invocation,
8406 frame_saved_pc, and pop_frame.
8407
8408 * hppa-tdep.c: Replace PC_REGNUM with PCOQ_HEAD_REGNUM.
8409 (hppa64_return_value, hppa64_push_dummy_call): Rewrite.
8410 (hppa_gdbarch_init): Do not set PC_REGNUM.
8411
8412 2004-03-06 Mark Kettenis <kettenis@gnu.org>
8413
8414 * config/alpha/tm-fbsd.h: Remove file.
8415 * config/alpha/fbsd.mt: Tweak comment.
8416 (TM_FILE): Set to tm-alpha.h.
8417
8418 2004-03-05 Andrew Cagney <cagney@redhat.com>
8419
8420 * infrun.c (step_over_function): When non-legacy code, and no
8421 step_frame_id, use the unwinder to get the caller's frame ID.
8422
8423 2004-03-05 Mark Kettenis <kettenis@gnu.org>
8424
8425 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Register
8426 i386bsd_core_osabi_sniffer for bfd_arch_i386 instead of
8427 bfd_arch_unknown. Adjust comment.
8428
8429 * i386-nat.c: Fix typo in comment. Re-introduce paranoiac.
8430 * i386obsd-tdep.c: Correct spelling in comment.
8431 * i386nbsd-tdep.c: Correct spelling in comment.
8432 * sparc-tdep.c: Correct spelling in comments.
8433
8434 2004-03-05 David Carlton <carlton@kealia.com>
8435
8436 * cp-namespace.c (cp_lookup_transparent_type_loop): Fix recursion
8437 bug.
8438
8439 2004-03-05 Mark Kettenis <kettenis@gnu.org>
8440
8441 * sparc-tdep.c: Fix typo in comment.
8442
8443 2004-03-04 J. Brobecker <brobecker@gnat.com>
8444
8445 * hppa-tdep.c (hppa_frame_cache): Avoid undefined return value.
8446
8447 2004-03-04 Daniel Jacobowitz <drow@mvista.com>
8448
8449 * dwarf2read.c: Add comment describing memory lifetimes.
8450 (struct dwarf2_pinfo): Update comment.
8451 (dwarf2_add_field, dwarf2_add_member_fn, read_structure_scope)
8452 (read_enumeration, new_symbol): Don't use obsavestring.
8453
8454 2004-03-04 Mark Kettenis <kettenis@gnu.org>
8455
8456 * amd64-linux-nat.c (fill_fpregset): Call amd64_colletc_fxsave
8457 instead of amd64_fill_fxsave.
8458 * amd64bsd-nat.c (store_inferior_registers): Likewise.
8459 * amd64fbsd-nat.c (fill_fpregset): Likewise.
8460
8461 * sparc-tdep.c (sparc_frame_cache): Don't bail out if %fp is zero.
8462 Reorganize code a bit.
8463
8464 2004-03-04 Orjan Friberg <orjanf@axis.com>
8465
8466 * cris-tdep.c (cris_scan_prologue): Save the frame pointer's offset
8467 when the frame pointer is pushed. Don't set the frame pointer's
8468 address on the stack unless it's actually located there.
8469 Set the SRP's address on the stack correctly when the PC is still in
8470 the prologue.
8471 (cris_return_value): New function.
8472 (cris_gdbarch_init): Clear deprecated store_return_value,
8473 extract_return_value.
8474
8475 2004-03-02 Jim Blandy <jimb@redhat.com>
8476
8477 * stabsread.c (reg_value_complaint): The maximum register number
8478 is one less than the number of registers.
8479
8480 2004-03-02 Andrew Cagney <cagney@redhat.com>
8481
8482 * i386-tdep.h (enum i386_regnum): Add I386_DS_REGNUM,
8483 I386_ES_REGNUM, I386_FS_REGNUM, and I386_GS_REGNUM. Remove
8484 trailing comma and redundant assignment of I386_ST0_REGNUM.
8485 * amd64-nat.c (amd64_collect_native_gregset): Zero-extend the
8486 32-bit segment registers.
8487
8488 2004-03-01 Andrew Cagney <cagney@redhat.com>
8489
8490 * rs6000-tdep.c (rs6000_init_frame_pc_first): Fix compiler error,
8491 use frame_relative_level and get_next_frame.
8492
8493 2004-02-29 Andrew Cagney <cagney@redhat.com>
8494
8495 * rs6000-tdep.c (rs6000_init_frame_pc_first): New function.
8496 (rs6000_gdbarch_init): Set deprecated_init_frame_pc_first.
8497 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST):
8498 Delete macro.
8499
8500 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
8501
8502 * inflow.c (terminal_inferior): Don't give up the terminal if we
8503 previously couldn't get the inferior's terminal state.
8504
8505 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
8506
8507 * regcache.c (read_pc_pid): Restore inferior_ptid after reading
8508 PC_REGNUM.
8509
8510 2004-02-28 Andrew Cagney <cagney@redhat.com>
8511
8512 * NEWS: Refer to GDB 6.1.
8513 * README: Refer to GDB 6.1.
8514 * PROBLEMS: Refer to GDB 6.1.
8515
8516 2004-02-28 Daniel Jacobowitz <drow@mvista.com>
8517
8518 * thread-db.c (disable_thread_signals): Remove unused function.
8519
8520 2004-02-28 Mark Kettenis <kettenis@gnu.org>
8521
8522 * amd64-nat.c: Include "gdb_string.h".
8523 (amd64_collect_native_gregset): Zero-extend the 32-bit
8524 general-purpose registers and %eip.
8525
8526 * amd64-tdep.h: (amd64_collect_fxsave): New prototype.
8527 * amd64-tdep.c (amd64_collect_fxsave): New function.
8528 (amd64_fill_fxsave): Simply call amd64_collect_fxsave.
8529
8530 * i387-tdep.h: Update copyright year.
8531 (i387_collect_fxsave): New prototype.
8532 * i387-tdep.c: Update copyright year.
8533 (i387_collect_fxsave): New function containing most of the code
8534 from i387_fill_fxsave.
8535 (i387_fill_fxsave): Call i387_collect_fxsave.
8536
8537 2004-02-28 Andrew Cagney <cagney@redhat.com>
8538
8539 * amd64-linux-nat.c (ps_get_thread_area): When architecture is
8540 i386 use PTRACE_GET_THREAD_AREA. Suggested by Roland McGrath.
8541
8542 2004-02-28 Mark Kettenis <kettenis@gnu.org>
8543
8544 * amd64-tdep.c (amd64_frame_cache): Fix comment.
8545
8546 2004-02-28 Andrew Cagney <cagney@redhat.com>
8547
8548 * utils.c: Use "", instead of <>, to include readline.
8549 tui/tui-win.c, tui/tui.c, tui/tui-hooks.c: Ditto.
8550 * tracepoint.c, top.c, symmisc.c, symfile.c: Ditto.
8551 * source.c, solib.c, exec.c, event-top.c: Ditto.
8552 * corelow.c, completer.c, cli/cli-setshow.c: Ditto.
8553 * cli/cli-dump.c, cli/cli-cmds.c: Ditto.
8554 * Makefile.in: Update all dependencies.
8555 (readline_tilde_h, readline_history_h): Define.
8556 (readline_headers): Delete.
8557
8558 2004-02-28 Mark Kettenis <kettenis@gnu.org>
8559
8560 * config/djgpp/fnchange.lst: Rename "config/i386/nm-linux64.h" to
8561 "config/i386/nm-lx64.h" and "config/i386/tm-linux64.h" to
8562 "config/i386/tm-lx64.h".
8563
8564 * config/djgpp/fnchange.lst: Rename "amd64-linux-tdep.c" to
8565 "amd64-ltdep.c" and "amd64-linux-nat.c" to "amd64-lnat.c". Remove
8566 rules for "x86-64-linux-tdep.c" and "x86-64-linux-nat.c".
8567
8568 2004-02-28 Andrew Cagney <cagney@redhat.com>
8569
8570 * dwarf2-frame.h (struct gdbarch): Add opaque declaration.
8571
8572 * breakpoint.c (_initialize_breakpoint): Use
8573 "add_setshow_auto_boolean_cmd. Better word-wrap help messages.
8574 Add help to show command.
8575
8576 2004-02-28 Mark Kettenis <kettenis@gnu.org>
8577
8578 * i386-nat.c: Reformat to be closer to coding standards.
8579 (i386_handle_nonaligned_watchpoint): Rename local variable `rv' to
8580 `retval'. Make variables `align' and `size' local to while-loop.
8581 (i386_stopped_data_address): Rename local variable `ret' to `addr'.
8582 (_initialize_i386_nat): New prototype.
8583
8584 * tui/tui.c: Include <readline/readline.h> instead of
8585 "readline/readline.h". Include it after <term.h> and
8586 "gdb_curses.h".
8587
8588 2004-02-27 Andrew Cagney <cagney@redhat.com>
8589
8590 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always use
8591 the new frame unwind code.
8592 (hppa_frame_cache): Use PCOQ_HEAD_REGNUM instead of PC_REGNUM.
8593 (hppa_frame_prev_register): Compute PCOQ_TAIL_REGNUM from
8594 PCOQ_HEAD_REGNUM.
8595
8596 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always
8597 "return_value" and "push_dummy_call".
8598 (hppa32_use_struct_convention): Delete unused function.
8599 (hppa32_store_return_value): Delete unused function.
8600 (hppa32_extract_return_value): Delete unused function.
8601 (hppa32_stack_align): Delete function.
8602
8603 2004-02-27 Eli Zaretskii <eliz@elta.co.il>
8604
8605 * coffread.c (enter_linenos): Don't let rawptr reference memory
8606 outside linetab[]'s limits.
8607
8608 2004-02-27 Andrew Cagney <cagney@redhat.com>
8609
8610 * hppa-tdep.c (hppa32_push_dummy_call): Fix code reserving
8611 inferior stack space - the stack needs to grow upwards.
8612 (hppa32_frame_align): New function.
8613 (hppa64_frame_align): Replace hppa_frame_align.
8614 (hppa_gdbarch_init): Update.
8615
8616 2004-02-26 Orjan Friberg <orjanf@axis.com>
8617
8618 * cris-tdep.c (frame_unwind.h, frame-base.h, trad-frame.h)
8619 (dwarf2-frame.h): Include.
8620 (enum cris_regnums): New enum CRIS_FP_REGNUM.
8621 Remove static variables related to ABI setting.
8622 (struct gdbarch_tdep): Remove cris_abi member.
8623 (struct frame_extra_info): Remove.
8624 (cris_unwind_cache, stack_item): New structs.
8625 (cris_frame_unwind, cris_frame_base): New variables.
8626 (push_stack_item, pop_stack_item)
8627 (cris_frame_unwind_cache, cris_frame_this_id)
8628 (cris_frame_prev_register, cris_unwind_dummy_id, cris_frame_align)
8629 (cris_push_dummy_code, cris_push_dummy_call, cris_frame_sniffer)
8630 (cris_frame_base_address, cris_scan_prologue, cris_unwind_pc)
8631 (cris_unwind_sp, cris_store_return_value, cris_extract_return_value)
8632 (cris_reg_struct_has_addr): New functions.
8633 (cris_examine, cris_frame_init_saved_regs, cris_frame_chain)
8634 (cris_frame_saved_pc, cris_saved_pc_after_call,
8635 (cris_store_struct_return, cris_frameless_function_invocation)
8636 (cris_pop_frame, cris_skip_prologue_main)
8637 (cris_abi_original_store_return_value)
8638 (cris_abi_v2_store_return_value)
8639 (cris_abi_original_extract_return_value)
8640 (cris_abi_v2_extract_return_value)
8641 (cris_abi_original_reg_struct_has_addr)
8642 (cris_abi_v2_reg_struct_has_addr)
8643 (cris_abi_original_push_arguments, cris_abi_v2_push_arguments)
8644 (cris_push_return_address, cris_abi_update): Remove.
8645 (_initialize_cris_tdep): Remove ABI command.
8646 (cris_dump_tdep): Ditto.
8647 (cris_gdbarch_init): Remove ABI command.
8648 Set store_return_value, extract_return_value, push_dummy_code,
8649 push_dummy_call, frame_align, unwind_pc, unwind_sp, unwind_dummy_id,
8650 frame_unwind_append_sniffer, frame_base_set_default.
8651 Clear deprecated init_frame_pc, push_arguments, store_return_value,
8652 extract_return_value, fp_regnum, pc_in_call_dummy, call_dummy_words,
8653 sizeof_call_dummy_words, get_saved_register, push_return_address,
8654 pop_frame, store_struct_return, frame_init_saved_regs,
8655 init_extra_frame_info, frameless_function_invocation, frame_chain,
8656 frame_saved_pc, saved_pc_after_call, save_dummy_frame_tos,
8657 dummy_write_sp.
8658
8659 2004-02-26 Jeff Johnston <jjohnstn@redhat.com>
8660
8661 * valprint.h (print_hex_chars, print_char_chars): New prototypes.
8662 * valprint.c (print_hex_chars): Change from static to external.
8663 (print_char_chars): New function.
8664 * printcmd.c (print_scalar_formatted): For integer and enum types
8665 that are longer than LONGEST, perform processing via appropriate
8666 print_*_chars routines.
8667
8668 2004-02-26 Andrew Cagney <cagney@redhat.com>
8669
8670 * Makefile.in: Update dependencies.
8671 Changes from Ulrich Weigand,
8672 * s390-tdep.c: Include "dwarf2-frame.h".
8673 (s390_dwarf2_frame_init_reg): New function.
8674 (s390_gdbarch_init): Install dwarf2_frame_sniffer and
8675 dwarf2_frame_base_sniffer. Call dwarf2_frame_set_init_reg.
8676
8677 2004-02-26 Jeff Johnston <jjohnstn@redhat.com>
8678
8679 * breakpoint.c (pending_break_support): New setting variable.
8680 (break_command_1): Account for pending_break_support setting
8681 when creating pending breakpoints.
8682 (set_breakpoint_cmd, show_breakpoint_cmd): New functions.
8683 (_initialize_breakpoint): Add "set breakpoint pending" and
8684 "show breakpoint pending" commands.
8685
8686 2004-02-26 Andrew Cagney <cagney@redhat.com>
8687
8688 Fix PR i18n/1570.
8689 * charset.c (backslashable, backslashed, represented): Remove 'e'
8690 from list of escaped characters, not part of ISO-C.
8691
8692 2004-02-25 J. Brobecker <brobecker@gnat.com>
8693
8694 From Peter Schauer <schauer@pdf.de>:
8695 * tui/tui.c: Move system header includes after local includes.
8696 Fixes a build failure on solaris systems.
8697
8698 2004-02-25 J. Brobecker <brobecker@gnat.com>
8699
8700 * configure.in: Refine the previous change.
8701 * configure: Regenerate.
8702
8703 2004-02-25 Mark Kettenis <kettenis@gnu.org>
8704
8705 * amd64-tdep.h: Renamed from x86-64-tdep.h.
8706 * amd64-tdep.c: Renamed from x86-64-tdep.c. Include
8707 "amd64-tdep.h" instead of "x86-64-tdep.h".
8708 * amd64-nat.c: Include "amd64-tdep.h" instead of "x86-64-tdep.h".
8709 * amd64-linux-tdep.h: Renamed from x86-64-linux.h.
8710 * amd64-linux-tdep.c: Renamed from x86-64-linux-tdep.c. Include
8711 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
8712 and "x86-64-tdep.c".
8713 * amd64-linux-nat.c: Renamed from x86-64-linux-nat.c. Include
8714 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
8715 and "x86-64-tdep.c".
8716 * amd64bsd-nat.c: Update copyright year.
8717 Include "amd64-tdep.h" instead of "x86-64-tdep.h".
8718 * amd64fbsd-tdep.c: Include "amd64-tdep.h" instead of
8719 "x86-64-tdep.h".
8720 * amd64fbsd-nat.c: Include "amd64-tdep.h" instead of
8721 "x86-64-tdep.h".
8722 * amd64nbsd-tdep.c: Include "amd64-tdep.h" instead of
8723 "x86-64-tdep.h".
8724 * amd64nbsd-nat.c: Include "amd64-tdep.h" instead of
8725 "x86-64-tdep.h".
8726 * amd64obsd-tdep.c: Include "amd64-tdep.h" instead of
8727 "x86-64-tdep.h".
8728 * amd64obsd-nat.c: Include "amd64-tdep.h" instead of
8729 "x86-64-tdep.h".
8730 * configure.host: (x86_64-*-linux*): Set gdb_target to linux64.
8731 * configure.tgt (x86_64-*-linux*): Set gdb_target to linux64.
8732 * Makefile.in (amd64_linux_tdep_h): Renamed from
8733 x86_64_linux_tdep_h.
8734 (amd64_tdep_h): Renamed from x86_64_tdep_h.
8735 (amd64bsd-nat.o, amd64fbsd-nat.o, amd64fbsd-tdep.o, amd64-nat.o)
8736 (amd64nbsd-nat.o, amd64nbsd-tdep.o, amd64obsd-nat.o)
8737 (amd64obsd-tdep.o): Update dependencies.
8738 (amd64-tdep.o, amd64-linux-nat.o, amd64-linux-tdep.o): New
8739 dependencies.
8740 (x86-64-linux-nat.o, x86-64-linux-tdep.o, x86-64-tdep.o): Remove
8741 dependencies.
8742 (ALLDEPFILES): Add amd64-tdep.c, amd64obsd-nat.c, amd64obsd-nat.c,
8743 amd64-linux-nat.c amd64-linux-tdep.c.
8744 * config/i386/tm-linux64.h: Renamed from tm-x86-64linux.h
8745 * config/i386/nm-linux64.h: Renamed from nm-x86-64linux.h.
8746 * config/i386/linux64.mt: Renamed from x86-64linux.mt.
8747 (TDEPFILES): Replace x86-64-tdep.o and x86-64-linux-tdep.o with
8748 amd64-tdep.o and amd64-linux-tdep.o.
8749 (TM_FILE): Set to tm-linux64.h.
8750 * config/i386/linux64.mh: Renamed from x86-64linux.mh.
8751 (NAT_FILE): Set to nm-linux64.h.
8752 (NATDEPFILES): Replace x86-64-linux-nat.o with amd64-linux-nat.o.
8753 * config/i386/fbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
8754 amd64-tdep.o.
8755 * config/i386/nbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
8756 amd64-tdep.o.
8757 * config/i386/obsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
8758 amd64-tdep.o.
8759
8760 2004-02-25 Roland McGrath <roland@redhat.com>
8761
8762 * remote.c (remote_protocol_qPart_auxv): New variable.
8763 (init_all_packet_configs): Initialize it.
8764 (set_remote_protocol_qPart_auxv_packet_cmd): New function.
8765 (show_remote_protocol_qPart_auxv_packet_cmd): New function.
8766 (show_remote_cmd): Call it.
8767 (_initialize_remote): Initialize commands.
8768 (remote_xfer_partial): If enabled, use qPart:auxv:read:... query to
8769 service TARGET_OBJECT_AUXV requests.
8770
8771 2004-02-25 J. Brobecker <brobecker@gnat.com>
8772
8773 * configure.in: Make sure that the wborder function is available.
8774 Otherwise, search for it in the cur_colr library.
8775 * configure: Regenerate.
8776
8777 2004-02-25 Andrew Cagney <cagney@redhat.com>
8778
8779 * hppa-tdep.c (hppa32_push_dummy_call): Rewrite.
8780
8781 2004-02-25 Mark Kettenis <kettenis@gnu.org>
8782
8783 * config/i386/tm-x86-64linux.h: Tweak comments.
8784
8785 2004-02-25 Richard Sandiford <rsandifo@redhat.com>
8786
8787 * MAINTAINERS: Add self to write-after-approval list.
8788
8789 2004-02-25 Andrew Cagney <cagney@redhat.com>
8790
8791 PR cli/1566. Problem found, and fix suggested by David Allan.
8792 * cli/cli-script.c (execute_control_command): Unconditionally
8793 install a cleanup. Default "ret" to "invalid_control". Use
8794 "break" instead of "return" to escape from the switch.
8795
8796 2004-02-24 J. Brobecker <brobecker@gnat.com>
8797
8798 * tui/tui-disasm.c: %s/lines/asm_lines/g to avoid a collision
8799 with the lines macro defined in term.h on AiX.
8800 * tui/tui-regs.c: %s/label_width/tui_label_width/g, to avoid
8801 a collision with the label_width macro defined in term.h on AiX.
8802
8803 2004-02-23 David Mosberger <davidm@hpl.hp.com>
8804
8805 Committed by Kevin Buettner <kevinb@redhat.com>.
8806
8807 * ia64-tdep.h (ia64_write_pc, ia64_linux_write_pc): Declare.
8808 * ia64-tdep.c (ia64_write_pc): Make it a global function.
8809 (ia64_gdbarch_init): For Linux targets, use ia64_linux_write_pc()
8810 instead of ia64_write_pc().
8811 * ia64-linux-tdep.c (regcache.h): Include.
8812 (ia64_linux_write_pc): New function.
8813
8814 2004-02-23 Roland McGrath <roland@redhat.com>
8815
8816 * auxv.c (info_auxv_command): Fix typos in error messages.
8817
8818 2004-02-23 Mark Kettenis <kettenis@gnu.org>
8819
8820 * x86-64-tdep.h: Tweak comment.
8821 (enum amd64_regnum): New.
8822 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM)
8823 (X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM)
8824 (X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM)
8825 (X86_64_XMM1_REGNUM): Removed.
8826 (AMD64_NUM_GREGS): Renamed from X86_64_NUM_GREGS.
8827 (amd64_init_abi, amd64_supply_fxsave, amd64_fill_fxsave): Adjust
8828 prototypes for renamed functions.
8829 * x86-64-tdep.c: Fix typo.
8830 (amd64_dwarf_regmap): Use constants from `enum amd64_regnum' for
8831 register numbers.
8832 (amd64_return_value, amd64_push_arguments, amd64_push_dummy_call):
8833 Use constants from `enum amd64_regnum' for register numbers.
8834 (AMD64_NUM_SAVED_REGS): Adjust for renamed macros.
8835 (amd64_analyze_prologue, amd64_frame_cache,
8836 amd64_sigtramp_frame_cache): Use constants from `enum
8837 amd64_regnum' for register numbers.
8838 (amd64_supply_fpregset): Adjust for renamed functions.
8839 (amd64_init_abi): Rename from x86_64_init_abi. Use constants from
8840 `enum amd64_regnum' for register numbers.
8841 (I387_ST0_REGNUM): Use constant from `enum amd64_regnum'.
8842 (amd64_supply_fxsave): Rename from x86_64_supply_fxsave.
8843 (amd64_fill_fxsave): Rename fro x86_64_fill_fxsave.
8844 * x86-64-linux-tdep.c (amd64_linux_supply_gregset)
8845 (amd64_linux_fill_gregset): Adjust for renamed macros.
8846 (fetch_core_registers): Adjust for renamed functions.
8847 (amd64_linux_init_abi): Adjust for renamed functions.
8848 * x86-64-linux-nat.c (supply_gregset, fill_gregset): Adjust for
8849 renamed functions.
8850 * amd64-nat.c: Adjust for renamed macros.
8851 * amd64bsd-nat.c (fetch_inferior_registers)
8852 (store_inferior_registers): Use constants from `enum amd64_regnum'
8853 for register numbers. Adjust for renamed variables.
8854 * amd64fbsd-nat.c (supply_gregset, fill_gregset): Adjust for
8855 renamed variables.
8856 (_initialize_amd64fbsd_nat): Use constants from `enum
8857 amd64_regnum' for register numbers.
8858 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use constants from
8859 `enum amd64_regnum' for register numbers.
8860 (amd64fbsd_init_abi): Adjust for renamed functions.
8861 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Use constants from
8862 `enum amd64_regnum' for register numbers.
8863 (amd64nbsd_init_abi): Adjust for renamed functions.
8864 (_initialize_amd64nbsd_ndep): Adjust for renamed macros.
8865 * amd64obsd-tdep.c (amd64obsd_sigcontext_addr): Use constants from
8866 `enum amd64_regnum' for register numbers.
8867 (amd64obsd_init_abi): Adjust for renamed functions.
8868 (_initialize_amd64obsd_ndep): Adjust for renamed macros.
8869
8870 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
8871
8872 * breakpoint.c (print_one_breakpoint): Do not output spaces
8873 after printing <PENDING> for a pending breakpoint.
8874
8875 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
8876
8877 * printcmd.c (print_scalar_formatted): Initialize val_long
8878 to remove compiler warning message.
8879
8880 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
8881
8882 * defs.h (nquery, yquery): New prototypes.
8883 * breakpoint.c (break_command_1): Use new nquery interface.
8884 * utils.c (defaulted_query, nquery, yquery): New functions.
8885
8886 2004-02-23 Andrew Cagney <cagney@redhat.com>
8887
8888 * hppa-tdep.c (hppa_frame_align): New function.
8889 (hppa32_push_dummy_call): New function.
8890 (hppa64_push_dummy_call): New function.
8891 (hppa_gdbarch_init): Set frame_align and push_dummy_call; keep
8892 disabled.
8893
8894 * infcall.c (legacy_push_dummy_code): Don't call deprecated
8895 FIX_CALL_DUMMY when push_dummy_call is available.
8896 (call_function_by_hand, push_dummy_code): Ditto.
8897
8898 2004-02-22 Andrew Cagney <cagney@redhat.com>
8899
8900 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Delete macro.
8901 (DEPRECATED_PC_IN_CALL_DUMMY): Delete macro.
8902 (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete macro.
8903 * hppa-tdep.c (hppa_gdbarch_init): Clear deprecated
8904 use_generic_dummy_frames, set deprecated pc_in_call_dummy, set
8905 call_dummy_location to ON_STACK.
8906
8907 2004-02-22 Mark Kettenis <kettenis@gnu.org>
8908
8909 * x86-64-linux-tdep.c: Tweak comment.
8910 (amd64_linux_supply_gregset): Renamed from
8911 x86_64_linux_supply_gresget.
8912 (amd64_linux_fill_gregset): Renamed from
8913 x86_64_linux_fill_gregset.
8914 (fetch_core_registers): Adjust for renamed functions.
8915 (amd64_core_fns): Renamed from x86_64_core_fns.
8916 (amd64_linux_sigtramp_start): Renamed from
8917 x86_64_linux_sigtramp_start.
8918 (amd64_linux_pc_in_sigtramp): Renamed from
8919 x86_64_linux_pc_in_sigtramp. Adjust for renamed functions.
8920 (AMD64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Renamed from
8921 X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET.
8922 (amd64_linux_sigcontext_addr): Renamed from
8923 x86_64_linux_sigcontext_addr.
8924 (amd64_linux_sc_reg_offset): Renamed from
8925 x86_64_linux_sc_reg_offset.
8926 (amd64_linux_init_abi): Renamed from x86_64_linux_init_abi.
8927 Adjust for renamed functions and variables.
8928 (_initialize_amd64_linux_tdep): Renamed from
8929 _initialize_x86_64_linux_tdep. Adjust for renamed functions and
8930 variables.
8931 * x86-64-linux-tdep.h: Update copyright year. Tweak comment.
8932 Adjust for renamed functions.
8933
8934 * x86-64-linux-nat.c (amd64_linux_gregset64_reg_offset): Rename
8935 from x86_64_linux_gregset64_reg_offset.
8936 (amd64_linux_gregset32_reg_offset): Rename from
8937 x86_64_linux_gregset64_reg_offset.
8938 (amd64_linux_dr_get): Renamed from x86_64_linux_dr_get.
8939 (amd64_linux_dr_set): Renamed from x86_64_linux_dr_set.
8940 (amd64_linux_dr_set_control): Renamed from
8941 x86_64_linux_dr_set_control. Adjust for renamed functions.
8942 (amd64_linux_dr_set_addr): Renamed from x86_64_linux_dr_set_addr.
8943 Adjust for renamed functions.
8944 (amd64_linux_dr_reset_addr): Renamed from
8945 x86_64_linux_dr_reset_addr. Adjust for renamed functions.
8946 (amd64_linux_dr_get_status): Renamed from
8947 x86_64_linux_dr_get_status. Adjust for renamed functions.
8948 (_initialize_amd64_linux_nat): Renamed from
8949 _initialize_x86_64_linux_nat. Adjust for renamed variables and
8950 functions.
8951 * config/i386/nm-x86-64linux.h: Update copyright year.
8952 Adjust for renamed functions.
8953
8954 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_start_addr): Renamed from
8955 amd64fbsd_sigtramp_start.
8956 (amd64fbsd_sigtramp_end_addr): Renamed from
8957 amd64fbsd_sigtramp_end.
8958 (amd64fbsd_init_abi): Adjust for renamed variables.
8959 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Adjust for renamed
8960 variables.
8961 * x86-64-tdep.h (amd64fbsd_sigtramp_start_addr): Renamed from
8962 amd64fbsd_sigtramp_start.
8963 (amd64fbsd_sigtramp_end_addr): Renamed from
8964 amd64fbsd_sigtramp_end.
8965
8966 2004-02-22 Andrew Cagney <cagney@redhat.com>
8967
8968 * hppa-tdep.c (hppa32_return_value): New function.
8969 (hppa64_return_value): New function.
8970 (hppa_gdbarch_init): Set return_value; keep disabled.
8971
8972 * hppa-tdep.c (hppa_gdbarch_init): Re-order separating
8973 struct-return and inferior function call methods.
8974
8975 * hppa-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
8976 "frame-base.h".
8977 (struct hppa_frame_cache): Define.
8978 (hppa_frame_cache, hppa_frame_this_id): New functions.
8979 (hppa_frame_prev_register): New function.
8980 (hppa_frame_unwind, hppa_frame_base): New variables.
8981 (hppa_frame_unwind_sniffer): New function.
8982 (hppa_frame_base_address, hppa_unwind_pc): New function.
8983 (hppa_gdbarch_init): Set unwind_dummy_id, unwind_pc, frame unwind
8984 sniffer, and frame base sniffer; keep disabled.
8985 (hppa_frame_base_sniffer, hppa_unwind_dummy_id): New functions.
8986 * Makefile.in: Update dependencies, fix s/nbsd/obsd/ typo.
8987
8988 * frame-unwind.c (frame_unwind_find_by_frame): Add legacy_frame_p
8989 to predicates for "seriously old code".
8990
8991 * hppa-tdep.c (hppa_gdbarch_init): Convert compile time #if0s into
8992 runtime if(0).
8993
8994 * hppa-tdep.c (hppa_breakpoint_from_pc): Make "breakpoint"
8995 unsigned.
8996 (hppa_frame_find_saved_regs): Fix "std" instruction pattern
8997
8998 * config/pa/tm-hppa.h: Update copyright.
8999 (DEPRECATED_INIT_FRAME_PC): Delete macro.
9000 (deprecated_init_frame_pc_default): Delete declaration.
9001 (hppa_frame_init_saved_regs): Delete declaration.
9002 (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
9003 * hppa-tdep.c: Include "arch-utils.h".
9004 (hppa_gdbarch_init): Set deprecated init_frame_pc
9005 and deprecated frame_init_saved_regs.
9006 (hppa_frame_init_saved_regs): Make static.
9007
9008 2004-02-22 Mark Kettenis <kettenis@gnu.org>
9009
9010 Remove old 386BSD support.
9011 * NEWS (REMOVED configurations and files): Add i[3456]86-*-bsd*.
9012 * configure.host: Remove i[34567]86-*-bsd*.
9013 * configure.tgt: Remove i[34567]86-*-bsd*.
9014 * i386b-nat.c: Removed.
9015 * Makefile.in (ALLDEPFILES): Remove i386b-nat.c.
9016 (i386b-nat.o): Remove dependencies.
9017
9018 * config/i386/i386bsd.mh: Removed.
9019 * config/i386/i386bsd.mt: Removed.
9020 * config/i386/nm-i386bsd.h: Removed.
9021 * config/i386/tm-i386bsd.h: Removed.
9022 * config/i386/xm-i386bsd.h: Removed.
9023
9024 * x86-64-tdep.h (amd64obsd_r_reg_offset): New extern declaration.
9025
9026 * amd64fbsd-tdep.c: Include "solib-svr4.h".
9027 (amd64fbsd_init_abi): Set link map offsets.
9028 * amd64nbsd-tdep.c: Include "slib-svr4.h".
9029 (amd64nbsd_init_abi): Set link map offsets.
9030 * amd64obsd-tdep.c: Include "solib-svr4.h".
9031 (amd64obsd_init_abi): Set link map offsets.
9032 * i386fbsd-tdep.c: Include "solib-svr4.h".
9033 (i386fbsd_init_abi): Set link map offsets.
9034 * i386nbsd-tdep.c: Include "solib-svr4.h".
9035 (i386nbsdelf_init_abi): Set link map offsets.
9036 * Makefile.in (amd64fbsd-tdep.o, amd64nbsd-tdep.o)
9037 (amd64obsd-tdep.o, i386fbsd-tdep.o): Update dependencies.
9038 * config/i386/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o,
9039 solib-legacy.o and core-aout.o. Reformat.
9040 * config/i386/fbsd64.mh (NATDEPFILES): Remove solib.o,
9041 solib-svr4.o, solib-legacy.o. Reformat.
9042 * config/i386/nbsdaout.mh (NATDEPFILES): Add solib.o. Reformat.
9043 * config/i386/nbsdelf.mh: Reformat.
9044 * config/i386/nbsd64.mh (NATDEPFILES): Remove solib.o,
9045 solib-svr4.o, solib-legacy.o and corelow.o.
9046 * config/i386/obsd.mh, config/i386/obsdaout.mh: Reformat.
9047 * config/i386/obsd64.mh (NATDEPFILES): Remove solib.o,
9048 solib-svr4.o, solib-legacy.o and corelow.o. Reformat.
9049 * config/i386/fbsd.mt (TDEPFILES): Add solib.o, solib-svr4.o.
9050 * config/i386/fbsd64.mt (TDEPFILES): Add solib.o, solib-svr4.o.
9051 (TM_FILE): Set to tm-fbsd.h.
9052 * config/i386/nbsd.mt (TDEPFILES): Reformat.
9053 * config/i386/nbsd64.mt (TDEPFILES): Add corelow.o, solib.o and
9054 solib-svr4.o.
9055 * config/i386/obsd.mt (TDEPFILES): Add corelow.o, solib.o and
9056 solib-svr4.o.
9057 (TM_FILE): Set to nm-nbsd.h.
9058 * config/i386/nm-fbsd.h: Update copyright year. Tweak comments.
9059 Simplify shared library support. Don't include "elf/common.h".
9060 (SVR4_SHARED_LIBS): Don't define.
9061 * config/i386/nm-fbsd64.h: Update copyright year. Don't include
9062 "solib.h".
9063 * config/i386/nm-nbsd.h, config/i386/nm-nbsdaout.h,
9064 config/i386/nm-obsd.h: Update copyright year. Tweak comments.
9065 * config/i386/tm-fbsd.h: Update copyright tear. Tweak comments.
9066 Don't include "i386/tm-i386.h". Include "solib.h".
9067 * config/i386/tm-nbsd.h: Update copyright year. Tweak comments.
9068 Don't include "i386/tm-i386.h".
9069 * config/i386/xm-i386.h: Update copyright year. Tweak comments.
9070 * config/i386/xm-nbsd.h: Update copyright year. Tweak comments.
9071 Include "i386/xm-i386.h".
9072 (HOST_LONG_DOUBLE_FORMAT): Remove.
9073
9074 Fix OpenBSD/i386 sigtramp recognition.
9075 * i386-tdep.h: Update copyright year.
9076 (i386bsd_pc_in_sigtramp, i386bsd_sigtramp_start)
9077 (i386bsd_sigtramp_end): New prototypes.
9078 (i386fbsd_sigtramp_start_addr): Renamed from
9079 i386fbsd_sigtramp_start.
9080 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
9081 (i386obsd_sigtramp_start_addr): Renamed from
9082 i386obsd_sigtramp_start.
9083 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
9084 * i386bsd-tdep.c: Update copyright year.
9085 (i386bsd_pc_in_sigtramp): Make public.
9086 * i386fbsd-nat.c: Update copyright year.
9087 (_initialize_i386fbsd_nat): Adjust for renamed variables.
9088 * i386fbsd-tdep.c: Update copyright year.
9089 (i386fbsd_sigtramp_start_addr): Renamed from
9090 i386fbsd_sigtramp_start.
9091 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
9092 (i386fbsdaout_init_abi): Adjust for renamed variables.
9093 * i386obsd-nat.c: Update copyright year.
9094 (_initialize_i386obsd_nat): Adjust for renamed variables.
9095 * i386obsd-tdep.c: Include "target.h".
9096 (i386obsd_page_size): New variable.
9097 (i386obsd_pc_in_sigtramp, i386obsd_sigtramp_start)
9098 (i386obsd_sigtramp_end): New functions.
9099 (i386obsd_sigtramp_start_addr): Renamed from
9100 i386obsd_sigtramp_start.
9101 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
9102 (i386obsd_init_abi): Adjust for renamed variables. Set
9103 pc_in_sigtramp, sigtramp_start and sigtramp_end.
9104 * Makefile.in (i386obsd-tdep.o): Update dependencies.
9105
9106 * amd64obsd-tdep.c (amd64obsd_pc_in_sigtramp): Adjust for signal
9107 trampoline change in OpenBSD kernel.
9108
9109 * amd64-nat.c: Update copyright year.
9110 (amd64_supply_native_gregset, amd64_collect_native_gregset): Use
9111 architecture from REGCACHE.
9112
9113 * x86-64-linux-nat.c (x86_64_linux_gregset32_reg_offset): Use
9114 symbolic constants from <sys/reg.h> instead of hard-coded numbers.
9115
9116 2004-02-21 Mark Kettenis <kettenis@gnu.org>
9117
9118 * configure.host: Add i[34567]86-*-openbsd[0-2].* and
9119 i[34567]86-*-openbsd3.[0-3].
9120 * config/i386/obsdaout.mh: New file.
9121
9122 * config/i386/obsd.mh (MH_FLAGS): Remove.
9123
9124 Fix PR build/1549.
9125 * i386obsd-tdep.c: Update copyright years. Include
9126 "solib-svr4.h".
9127 (i386obsd_init_abi): Don't set regset_from_core_section here.
9128 (i386obsd_aout_init_abi): New function. Set
9129 regset_from_core_section here.
9130 (i386obsd_elf_init_abi): New function.
9131 (_initialize_i386obsd_tdep): Register OS/ABI for OpenBSD ELF.
9132 * Makefile.in (i386obsd-tdep.o): Update dependecies.
9133 * config/i386/obsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
9134 (TM_FILE): Set to tm-nbsd.h.
9135
9136 * config/i386/obsd.mh (NATDEPFILES): Remove solib.o and
9137 solib-sunos.o.
9138
9139 * solib-svr4.h: Update copyright year.
9140 (svr4_ilp32_fetch_link_map_offsets)
9141 (svr4_lp64_fetch_link_map_offsets): New prototype.
9142 * solib-svr4.c: Update copyright year.
9143 (svr4_ilp32_fetch_link_map_offsets)
9144 (svr4_lp64_fetch_link_map_offsets): New function.
9145
9146 2004-02-20 Daniel Jacobowitz <drow@mvista.com>
9147
9148 * dwarf2read.c (add_partial_symbol): Fix typo in adding enumerators
9149 to the partial symbol table.
9150
9151 2004-02-20 J. brobecker <brobecker@gnat.com>
9152
9153 * PROBLEMS: Add description of problem documented under gdb/1560.
9154
9155 2004-02-20 Mark Kettenis <kettenis@gnu.org>
9156
9157 * amd64obsd-tdep.c: Include "regset.h" and "i387-tdep.h". Fix
9158 comments.
9159 (amd64obsd_supply_regset, amd64obsd_regset_from_core_section): New
9160 functions.
9161 (amd64obsd_init_abi): Reorder initializations. Use
9162 amd64obsd_r_reg_offset to initialize the general-purpose register
9163 set details. Set regset_from_core_section.
9164 (_initialize_amd64obsd_tdep): Rename from
9165 _initialize_amd64obsd_ndep. Add OS ABI handler for core dumps.
9166 * Makefile.in (amd64obsd-tdep.o): Update dependencies.
9167 * config/i386/obsd64.mt (TDEPFILES): Add i386-tdep.o.
9168
9169 * NEWS (New native configurations): Mention OpenBSD/alpha.
9170 * configure.tgt: Add alpha*-*-openbsd*.
9171 * configure.host: Add alpha*-*-openbsd*.
9172 * alphanbsd-tdep.c: Update copyright year.
9173 (_initialize_alphanbsd_tdep): Register OS ABI for OpenBSD ELF.
9174
9175 2004-02-20 Andrew Cagney <cagney@redhat.com>
9176
9177 Fix PR tdep/1372.
9178 * configure.tgt: Delete target "none-*-*".
9179 * configure.host: Delete host "none-*-*".
9180 * config/none/none.mh: Delete file.
9181 * config/none/none.mt: Delete file.
9182 * config/none/xm-none.h: Delete file.
9183 * config/none/tm-none.h: Delete file.
9184 * config/none/nm-none.h: Delete file.
9185
9186 2004-02-19 Fred Fish <fnf@redhat.com>
9187
9188 * sh-tdep.c (sh_analyze_prologue): Eliminate useless test of
9189 cache->uses_fp prior to setting it.
9190
9191 2004-02-19 Fred Fish <fnf@redhat.com>
9192
9193 Fix for PR breakpoint/1558.
9194 * sh-tdep.c (IS_JSR): New macro.
9195 (sh_analyze_prologue): Use IS_JSR to terminate prologue scan.
9196
9197 2004-02-19 Jim Blandy <jimb@redhat.com>
9198
9199 * findvar.c (value_from_register): Doc fix.
9200
9201 2004-02-19 Jeff Johnston <jjohnstn@redhat.com>
9202
9203 * printcmd.c (print_scalar_formatted): Do not check for sizeof
9204 type being greater than sizeof of host's LONGEST. Always use
9205 unpack_long() unless format 'f' chosen.
9206
9207 2004-02-19 Joel Brobecker <brobecker@gnat.com>
9208
9209 Committed by Elena Zannoni <ezannoni@redhat.com>
9210
9211 * symtab.c (find_pc_sect_psymtab): Return the psymtab that
9212 contains a symbol wich is the best, non-exact match for the given
9213 pc. Update comments.
9214
9215 2004-02-19 Elena Zannoni <ezannoni@redhat.com>
9216
9217 * event-top.c (async_request_quit): Remove uses of REQUEST_QUIT
9218 macro, which was part of the now removed Mach 3 port.
9219 * utils.c (request_quit): Ditto.
9220
9221 2004-02-18 Mark Kettenis <kettenis@gnu.org>
9222
9223 * config/djgpp/fnchange.lst: Rename "amd64obsd-tdep.c" and
9224 "amd64obsd-nat.c" to "a64ob-tdep.c" and "a64ob-nat.c".
9225
9226 2004-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9227
9228 Committed by Mark Kettenis <kettenis@gnu.org>.
9229
9230 * config/s390/nm-linux.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT):
9231 Define.
9232
9233 2004-02-18 Andrew Cagney <cagney@redhat.com>
9234
9235 * configure.in: Add a TUI target to CONFIG_ALL, CONFIG_CLEAN,
9236 CONFIG_INSTALL and CONFIG_UNINSTALL.
9237 * configure: Re-generate.
9238 * interps.h (INTERP_TUI): Define.
9239 * Makefile.in: Update dependencies.
9240 (TUI): New macro.
9241 (tui-main.o): Specify dependencies.
9242 (install-tui, uninstall-tui, clean-tui, all-tui): New rules.
9243 * tui/tui-main.c: New file.
9244
9245 2004-02-18 Mark Kettenis <kettenis@gnu.org>
9246
9247 * amd64obsd-tdep.c, amd64obsd-nat.c: New files.
9248 * Makefile.in (amd64obsd-nat.o, amd64obsd-tdep.o): New
9249 dependencies.
9250 * configure.host: Add x86_64-*-openbsd*.
9251 * configure.tgt: Add x86_64-*-openbsd*.
9252 * config/i386/obsd64.mt, config/i386/obsd64.mh: New files.
9253
9254 * tui/tui.c: Don't include <malloc.h>.
9255
9256 * Makefile.in (ALLDEPFILES): Add amd64-nat.c, amd64bsd-nat.c,
9257 amdfbsd-nat.c, amd64-fbsd-tdep.c, amd64nbsd-nat.c and
9258 amd64nbsd-tdep.c.
9259
9260 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Make
9261 static. Remove extraneous whitespace.
9262 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Make
9263 static.
9264
9265 2004-02-17 Jim Blandy <jimb@redhat.com>
9266
9267 * findvar.c (value_from_register): Doc fix.
9268
9269 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9270
9271 Committed by Jim Blandy <jimb@redhat.com>.
9272
9273 * eval.c (evaluate_subexp_standard, case OP_OBJC_MSGCALL): Use
9274 CORE_ADDR as type for selectors. Correct types for GNU run time
9275 message lookup function to use double indirection.
9276 * objc-lang.c (lookup_child_selector): Use CORE_ADDR as return type.
9277 * objc-lang.h (lookup_child_selector): Adapt prototype.
9278
9279 * s390-nat.c (SUBOFF): New macro.
9280 (supply_gregset, fill_gregset): Use it to handle debugging
9281 of 32-bit exectuables running under a 64-bit kernel.
9282 * s390-tdep.c: Include "solib-svr4.h".
9283 (s390_svr4_fetch_link_map_offset): New function.
9284 (s390x_svr_fetch_link_map_offset): Likewise.
9285 (s390_gdbarch_init): Call set_solib_svr4_fetch_link_map_offsets.
9286 * Makefile.in (s390-tdep.o): Update dependencies.
9287
9288 * s390-tdep.c: Include "trad-frame.h", "frame-base.h", and
9289 "frame-unwind.h".
9290 (s390_readinstruction): Reformat. Use read_memory_nobpt.
9291 (GDB_TARGET_IS_ESAME, S390_GPR_SIZE, S390_FPR_SIZE): Remove.
9292 (S390_SYSCALL_OPCODE, S390_SYSCALL_SIZE): Remove.
9293 (S390_SIGCONTEXT_SREGS_OFFSET, S390X_SIGCONTEXT_SREGS_OFFSET,
9294 S390_SIGREGS_FP0_OFFSET, S390X_SIGREGS_FP0_OFFSET,
9295 S390_UC_MCONTEXT_OFFSET, S390X_UC_MCONTEXT_OFFSET,
9296 S390_SIGNAL_FRAMESIZE,
9297 s390_NR_sigreturn, s390_NR_rt_sigreturn): Remove.
9298 (struct frame_extra_info): Remove.
9299 (s390_memset_extra_info): Remove.
9300 (op1_ag, op1_ay, op1_brasl, op1_brc, op1_brcl, op1_lay, op1_lg)
9301 (op1_lmy, op1_ly, op1_sg, op1_stmy, op1_sty, op1_sy, op_a)
9302 (op_agr, op_bas, op_bc, op_bcr, op_sgr, op_sr): New opcodes.
9303 (is_rse): Renamed to ...
9304 (is_rsy): ... this. Support long displacements.
9305 (is_rxe): Renamed to ...
9306 (is_rxy): ... this. Support long displacements.
9307 (compute_x_addr): Support long displacements.
9308 (struct s390_prologue_data): New data type.
9309 (s390_on_stack): Change API to use struct s390_prologue_data.
9310 (s390_store): Reimplement.
9311 (s390_load): New function.
9312 (s390_get_signal_frame_info): Remove.
9313 (s390_get_frame_info): Remove, replace by ...
9314 (s390_analyze_prolog): ... this new function.
9315 (s390_check_function_end): Remove.
9316 (s390_function_start): Remove.
9317 (s390_frameless_function_invokation): Remove.
9318 (s390_is_sigreturn): Remove.
9319 (s390_init_frame_pc_first): Remove.
9320 (s390_init_frame_extra_info): Remove.
9321 (s390_frame_init_saved_regs): Remove.
9322 (s390_frame_saved_pc_nofix): Remove.
9323 (s390_frame_saved_pc): Remove.
9324 (s390_frame_chain): Remove.
9325 (s390_fp_regnum, s390_read_fp): Remove.
9326 (s390_pop_frame_regular, s390_pop_frame): Remove.
9327 (s390_saved_pc_after_call): Remove.
9328 (s390_skip_prologue): Reimplement.
9329 (s390_in_function_epilogue_p): Support long displacements.
9330 (struct s390_unwind_cache): New data structure.
9331 (s390_frame_unwind_cache): New function.
9332 (s390_prologue_frame_unwind_cache): Likewise.
9333 (s390_backchain_frame_unwind_cache): Likewise.
9334 (s390_frame_this_id, s390_frame_prev_register): Likewise.
9335 (s390_frame_unwind): Define.
9336 (s390_frame_sniffer): New function.
9337 (struct s390_pltstub_unwind_cache): New data structure.
9338 (s390_pltstub_frame_unwind_cache): New function.
9339 (s390_pltstub_frame_this_id): Likewise.
9340 (s390_pltstub_frame_prev_register): Likewise.
9341 (s390_pltstub_frame_unwind): Define.
9342 (s390_pltstub_frame_sniffer): New function.
9343 (struct s390_sigtramp_unwind_cache): New data structure.
9344 (s390_sigtramp_frame_unwind_cache): New function.
9345 (s390_sigtramp_frame_this_id): Likewise.
9346 (s390_sigtramp_frame_prev_register): Likewise.
9347 (s390_sigtramp_frame_unwind): Define.
9348 (s390_sigtramp_frame_sniffer): New function.
9349 (s390_frame_base_address, s390_local_base_address): New functions.
9350 (s390_frame_base): Define.
9351 (s390_unwind_pc, s390_unwind_sp): New function.
9352 (s390_push_dummy_call): Use new frame base location.
9353 (s390_unwind_dummy_id): Likewise.
9354 (s390_gdbarch_init): Remove calls to:
9355 set_gdbarch_frameless_function_invocation,
9356 set_gdbarch_deprecated_init_frame_pc,
9357 set_gdbarch_deprecated_frame_chain,
9358 set_gdbarch_deprecated_frame_init_saved_regs,
9359 set_gdbarch_deprecated_pop_frame,
9360 set_gdbarch_deprecated_init_extra_frame_info,
9361 set_gdbarch_deprecated_init_frame_pc_first,
9362 set_gdbarch_deprecated_target_read_fp,
9363 set_gdbarch_deprecated_frame_saved_pc,
9364 set_gdbarch_deprecated_saved_pc_after_call,
9365 set_gdbarch_deprecated_fp_regnum.
9366 Add calls to:
9367 set_gdbarch_in_solib_call_trampoline,
9368 frame_unwind_append_sniffer,
9369 frame_base_set_default,
9370 set_gdbarch_unwind_pc,
9371 set_gdbarch_unwind_sp.
9372 * Makefile.in (s390-tdep.o): Update dependencies.
9373
9374 * s390-tdep.c (struct gdbarch_tdep): Add 'abi' member.
9375 (S390_STACK_FRAME_OVERHEAD): Remove.
9376 (S390_STACK_PARAMETER_ALIGNMENT): Remove.
9377 (S390_NUM_FP_PARAMETER_REGISTERS): Remove.
9378 (s390_promote_integer_argument): Remove.
9379 (s390_cannot_extract_struct_value_address): Remove.
9380 (s390_use_struct_convention, s390_store_struct_return): Remove.
9381 (s390_extract_return_value, s390_store_return_value): Remove.
9382 (s390_return_value_convention, s390_return_value): New functions.
9383 (is_float_singleton): Handle typedefs.
9384 (is_double_or_float, is_double_arg, is_simple_arg, pass_by_copy_ref):
9385 Remove, replace by ...
9386 (s390_function_arg_pass_by_reference, s390_function_arg_float,
9387 s390_function_arg_integer): ... these new functions.
9388 (s390_push_arguments, s390_push_return_address): Remove, replace by ...
9389 (s390_push_dummy_call, s390_unwind_dummy_id): ... these new functions.
9390 (s390_gdbarch_init): Remove s390_call_dummy_words and elf_flags.
9391 Fill in tdep->abi.
9392 Remove calls to:
9393 set_gdbarch_deprecated_store_struct_return,
9394 set_gdbarch_deprecated_extract_return_value,
9395 set_gdbarch_deprecated_store_return_value,
9396 set_gdbarch_use_struct_convention,
9397 set_gdbarch_extract_struct_value_address,
9398 set_gdbarch_deprecated_pc_in_call_dummy,
9399 set_gdbarch_deprecated_push_arguments,
9400 set_gdbarch_deprecated_save_dummy_frame_tos,
9401 set_gdbarch_deprecated_push_return_address,
9402 set_gdbarch_deprecated_sizeof_call_dummy_words,
9403 set_gdbarch_deprecated_call_dummy_words,
9404 set_gdbarch_deprecated_dummy_write_sp.
9405 Add calls to:
9406 set_gdbarch_push_dummy_call,
9407 set_gdbarch_unwind_dummy_id,
9408 set_gdbarch_return_value.
9409
9410 * config/s390/nm-linux.h: Update comments.
9411 (target_insert_watchpoint, target_remove_watchpoint): Redefine.
9412 (STOPPED_BY_WATCHPOINT): Redefine.
9413 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Redefine to 1.
9414 (s390_insert_watchpoint, s390_remove_watchpoint): Update prototype.
9415 (s390_stopped_by_watchpoint): Likewise.
9416 (watch_area_cnt): Remove.
9417 * s390-nat.c: Update comments.
9418 (watch_area): Remove typedef.
9419 Global replace watch_area by struct watch_area.
9420 (watch_area_cnt, watch_lo_addr, watch_hi_addr): Remove.
9421 (s390_stopped_by_watchpoint): Remove pid argument,
9422 use s390_inferior_tid. Add short-cut for the no watchpoint case.
9423 (s390_fix_watch_points): Remove pid argument,
9424 use s390_inferior_tid. Recompute area spanned by watchpoints.
9425 (s390_insert_watchpoint, s390_remove_watchpoint): Remove pid
9426 argument. Reimplement.
9427
9428 * config/s390/nm-linux.h: Update comments. Do not include "solib.h".
9429 (KERNEL_U_ADDR, REGISTER_U_ADDR, U_REGS_OFFSET): Remove.
9430 (FETCH_INFERIOR_REGISTERS): Define.
9431 * config/s390/s390.mh (NATDEPFILES): Remove core-aout.o and
9432 core-regset.o.
9433 * config/s390/s390x.mt: Remove.
9434 * config/s390/tm-s390.h: Remove.
9435 * config/s390/tm-linux.h: Do not include "s390/tm-s390.h".
9436 (TARGET_ELF64): Remove.
9437 (SKIP_TRAMPOLINE_CODE): Do not undefine.
9438 * configure.tgt [s390-*-*, s390x-*-*]: Merge into single
9439 s390*-*-* case; always set gdb_target to s390.
9440 * regformats/reg-s390.dat: Remove control registers.
9441 * regformats/reg-s390x.dat: Likewise.
9442 * s390-tdep.h: New file.
9443 * s390-nat.c: Do not include <asm/processor.h> or <value.h>.
9444 Include "inferior.h" and "s390-tdep.h".
9445 Remove private definition of offsetof.
9446 (s390_register_u_addr): Remove.
9447 (regmap_gregset, regmap_fpregset): Define.
9448 (supply_gregset, fill_gregset): Reimplement.
9449 (supply_fpregset, fill_fpregset): Likewise.
9450 (s390_inferior_tid): New function.
9451 (fetch_regs, store_regs, fetch_fpregs, store_fpregs): Likewise.
9452 (fetch_inferior_registers, store_inferior_registers): Likewise.
9453 * s390-tdep.c: Do not define S390_TDEP. Include "defs.h" instead
9454 of <defs.h>. Include "reggroups.h", "regset.h", and "s390-tdep.h".
9455 Global replace of S390_GP0_REGNUM by S390_R0_REGNUM.
9456 Global replace of S390_FP0_REGNUM by S390_F0_REGNUM.
9457 (struct gdbarch_tdep): Define.
9458 (struct s390_register_info): Define.
9459 (s390_register_info): New variable.
9460 (s390_register_name): Reimplement.
9461 (s390_register_type): New function.
9462 (s390_register_raw_size, s390x_register_raw_size): Remove.
9463 (s390_cannot_fetch_register): Remove.
9464 (s390_register_byte): Remove.
9465 (s390_register_virtual_type, s390x_register_virtual_type): Remove.
9466 (s390_dwarf_regmap): New variable.
9467 (s390_dwarf_reg_to_regnum): New function.
9468 (s390_stab_reg_to_regnum): Remove.
9469 (s390_pseudo_register_read, s390_pseudo_register_write): New functions.
9470 (s390x_pseudo_register_read, s390x_pseudo_register_write): Likewise.
9471 (s390_convert_register_p): Likewise.
9472 (s390_register_to_value, s390_value_to_register): Likewise.
9473 (s390_register_reggroup_p): Likewise.
9474 (s390_regmap_gregset, s390x_regmap_gregset, s390_regmap_fpregset,
9475 s390_gregset, s390x_gregset, s390_fpregset): New variables.
9476 (s390_supply_regset, s390_regset_from_core_section): New functions.
9477 (GDB_TARGET_IS_ESAME): Move here from tm-s390.h.
9478 (S390_FPR_SIZE): Likewise.
9479 (S390_GPR_SIZE): Likewise. Redefine in terms of GDB_TARGET_IS_ESAME.
9480 Global replace of DEPRECATED_REGISTER_SIZE by S390_GPR_SIZE.
9481 (S390_NUM_GPRS): Move here from tm-s390.h.
9482 (S390_NUM_FPRS): Likewise.
9483 (s390_in_function_epilogue_p): New function.
9484 (s390_is_sigreturn): Replace S390_PSW_ADDR_SIZE by S390_GPR_SIZE.
9485 Replace S390_PC_REGNUM by S390_PSWA_REGNUM.
9486 (s390_gdbarch_init): Allocate and set up gdbarch_tdep structure.
9487 Replace s390_stab_reg_to_regnum by s390_dwarf_reg_to_regnum.
9488 Replace S390_FP_REGNUM by S390_SP_REGNUM.
9489 Remove calls to:
9490 set_gdbarch_deprecated_max_register_raw_size,
9491 set_gdbarch_deprecated_max_register_virtual_size,
9492 set_gdbarch_deprecated_register_byte,
9493 set_gdbarch_cannot_fetch_register,
9494 set_gdbarch_cannot_store_register,
9495 set_gdbarch_deprecated_register_size,
9496 set_gdbarch_deprecated_register_raw_size,
9497 set_gdbarch_deprecated_register_virtual_size,
9498 set_gdbarch_deprecated_register_virtual_type,
9499 set_gdbarch_deprecated_register_bytes.
9500 Add calls to:
9501 set_gdbarch_num_pseudo_regs,
9502 set_gdbarch_register_type,
9503 set_gdbarch_convert_register_p,
9504 set_gdbarch_register_to_value,
9505 set_gdbarch_value_to_register,
9506 set_gdbarch_register_reggroup_p,
9507 set_gdbarch_regset_from_core_section,
9508 set_gdbarch_pseudo_register_read,
9509 set_gdbarch_pseudo_register_write,
9510 set_gdbarch_in_function_epilogue_p.
9511 * Makefile.in (s390-nat.o, s390-tdep.o): Update dependencies.
9512 (s390_tdep_h): New variable.
9513
9514 2004-02-17 Jim Blandy <jimb@redhat.com>
9515
9516 * findvar.c (value_from_register): If the type has no length, just
9517 return an acceptable value --- don't report an internal error.
9518
9519 * stabsread.c (read_type): If we find any type numbers that are
9520 forward references, complain if the references aren't resolved by
9521 the time we're finished reading.
9522 (cleanup_undefined_types): Make error message more appropriate for
9523 a complaint.
9524
9525 2004-02-17 Elena Zannoni <ezannoni@redhat.com>
9526
9527 * Makefile.in (defs_h): Remove dependency on progress_h.
9528 * defs.h (QUIT): Remove use of PROGRESS macro. Remove include of
9529 progress.h.
9530 * main.c (captured_main): Delete use of START_PROGRESS and
9531 END_PROGRESS.
9532
9533 2004-02-17 Elena Zannoni <ezannoni@redhat.com>
9534
9535 * objfiles.c (terminate_minimal_symbol_table): Add back
9536 initialization of MSYMBOL_TYPE.
9537
9538 2004-02-17 David Mosberger <davidm@hpl.hp.com>
9539
9540 Committed by Andrew Cagney.
9541 * Makefile.in (ia64_tdep_h): New macro.
9542 (ia64-linux-tdep.o): Mention $(ia64_tdep_h).
9543 (ia64-tdep.o): Likewise.
9544 * ia64-tdep.h: New file.
9545 * ia64-tdep.c: Update copyright notice. Include "ia64-tdep.h".
9546 (ia64_linux_sigcontext_register_address): Move decl to ia64-tdep.h.
9547 (ia64_aix_sigcontext_register_address): Likewise.
9548 (ia64_linux_getunwind_table): Delete declaration.
9549 * ia64-linux-tdep.c: Likewise.
9550
9551 2004-02-17 Corinna Vinschen <vinschen@redhat.com>
9552
9553 * sh-tdep.c (sh_dsp_register_sim_regno): Use DSP_Rx_BANK_REGNUM.
9554 * sh-tdep.h: Rename R0_BANK_REGNUM and R7_BANK_REGNUM to
9555 DSP_R0_BANK_REGNUM and DSP_R7_BANK_REGNUM.
9556
9557 2004-02-17 Andrew Cagney <cagney@redhat.com>
9558
9559 * symtab.c (skip_prologue_using_sal): New function.
9560 * symtab.h (skip_prologue_using_sal): Declare.
9561 * frv-tdep.c: Include "symtab.h".
9562 (skip_prologue_using_sal): Delete function.
9563 * mips-tdep.c (skip_prologue_using_sal): Delete function.
9564 * rs6000-tdep.c (refine_prologue_limit): Mention
9565 skip_prologue_using_sal.
9566 * ia64-tdep.c (refine_prologue_limit): Ditto.
9567 * Makefile.in: Update dependencies.
9568
9569 2004-02-16 Andrew Cagney <cagney@redhat.com>
9570
9571 * config/alpha/tm-nbsd.h: Update copyright, delete #undef
9572 START_INFERIOR_TRAPS_EXPECTED.
9573 * config/alpha/tm-fbsd.h: Update copyright, delete #undef
9574 START_INFERIOR_TRAPS_EXPECTED.
9575 * config/alpha/tm-alphalinux.h (START_INFERIOR_TRAPS_EXPECTED):
9576 Delete macro.
9577 * config/alpha/tm-alpha.h (START_INFERIOR_TRAPS_EXPECTED): Delete
9578 macro, moved to "nm-osf.h". Update copyright.
9579 * config/alpha/nm-osf.h (START_INFERIOR_TRAPS_EXPECTED): Define,
9580 update copyright.
9581
9582 * gdbarch.sh (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION): Predicate
9583 and function replacing FRAMELESS_FUNCTION_INVOCATION.
9584 * blockframe.c (legacy_frameless_look_for_prologue): Rename
9585 frameless_look_for_prologue.
9586 * frame.h (legacy_frameless_look_for_prologue): Rename
9587 frameless_look_for_prologue.
9588 * gdbarch.h, gdbarch.c: Re-generate.
9589 * sh64-tdep.c (sh64_gdbarch_init): Update.
9590 * sh-tdep.c (sh_gdbarch_init): Update.
9591 * s390-tdep.c (s390_gdbarch_init): Update.
9592 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9593 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9594 * m68k-tdep.c (m68k_gdbarch_init): Update.
9595 (delta68_frame_args_address): Update.
9596 * m32r-tdep.c (m32r_gdbarch_init): Update.
9597 * hppa-tdep.c (hppa_gdbarch_init): Update.
9598 * h8300-tdep.c (h8300_gdbarch_init): Update.
9599 * frv-tdep.c (frv_gdbarch_init): Update.
9600 (frv_frameless_function_invocation): Update.
9601 * cris-tdep.c (cris_gdbarch_init): Update.
9602 (cris_frameless_function_invocation): Update.
9603 * avr-tdep.c (avr_gdbarch_init): Update.
9604 * arm-tdep.c (arm_gdbarch_init): Update.
9605 * stack.c (frame_info): Update, call predicate.
9606 * rs6000-tdep.c (rs6000_frame_chain): Update, call predicate..
9607 * frame.c (legacy_get_prev_frame): Update, call predicate..
9608 * arch-utils.c (generic_frameless_function_invocation_not): Delete.
9609 * arch-utils.h (generic_frameless_function_invocation_not): Delete.
9610 * alpha-tdep.c (alpha_gdbarch_init): Do not set frameless function
9611 invocation.
9612 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9613 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
9614 * vax-tdep.c (vax_gdbarch_init): Ditto.
9615
9616 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): Delete unused
9617 function.
9618
9619 2004-02-16 Daniel Jacobowitz <drow@mvista.com>
9620
9621 * objfiles.c (terminate_minimal_symbol_table): Remove unnecessary
9622 initializations.
9623
9624 2004-02-16 Andrew Cagney <cagney@redhat.com>
9625
9626 * tui/tui-windata.c: Include "gdb_string.h".
9627 * tui/tui-source.c, tui/tui-winsource.c: Ditto.
9628 * tui/tui-layout.c, tui/tui-command.c: Ditto.
9629 * Makefile.in: Update dependencies.
9630
9631 2004-02-16 Daniel Jacobowitz <drow@mvista.com>
9632
9633 * Makefile.in (infrun.o): Add $(gdb_assert_h).
9634 * infrun.c: Include "gdb_assert.h".
9635 (singlestep_ptid, saved_singlestep_ptid)
9636 (stepping_past_singlestep_breakpoint): New variables.
9637 (resume): Set singlestep_ptid. Check for singlestep thread
9638 hop.
9639 (init_wait_for_inferior): Clear stepping_past_singlestep_breakpoint.
9640 (handle_inferior_event): Handle singlestep thread hop.
9641
9642 2004-02-16 Andrew Cagney <cagney@redhat.com>
9643
9644 * dwarf2-frame.c (dwarf2_frame_ops): New function.
9645 (dwarf2_frame_set_init_reg): Use, instead of gdbarch_data.
9646 (dwarf2_frame_init_reg): Ditto.
9647
9648 * printcmd.c (display_command): Check that EXP isn't NULL. Fix
9649 suggested by Joshua Neuheisel
9650
9651 * configure.in: Always check for curses, including pdcurses.
9652 Warn, instead of error, when no curses are found. Enable TUI when
9653 curses is available.
9654 * configure: Re-generate.
9655
9656 2004-02-16 Corinna Vinschen <vinschen@redhat.com>
9657
9658 * sh-tdep.c (sh_register_convert_to_virtual): Rename from
9659 sh_sh4_register_convert_to_virtual.
9660 (sh_register_convert_to_raw): Rename from
9661 sh_sh4_register_convert_to_raw.
9662 (sh_pseudo_register_read): Accomodate above name change.
9663 (sh_pseudo_register_write): Ditto.
9664
9665 2004-02-16 Corinna Vinschen <vinschen@redhat.com>
9666
9667 * sh-tdep.c (sh_generic_register_name): Remove.
9668 (sh_gdbarch_init): Use sh_sh_register_name in default case.
9669
9670 2004-02-15 Andrew Cagney <cagney@redhat.com>
9671
9672 * configure.in (build_warnings): Add -Wunused-function.
9673 * configure: Re-generate.
9674
9675 * config/tm-lynx.h (START_INFERIOR_TRAPS_EXPECTED): Delete macro.
9676 * config/rs6000/tm-rs6000.h (START_INFERIOR_TRAPS_EXPECTED): Ditto.
9677
9678 * procfs.c (procfs_init_inferior): Assume that
9679 START_INFERIOR_TRAPS_EXPECTED is defined.
9680 * config/ns32k/nbsdaout.mt (TM_FILE): Set to tm-ns32k.h.
9681 * config/ns32k/tm-nbsd.h: Delete file,
9682 START_INFERIOR_TRAPS_EXPECTED already defined as 2.
9683
9684 * config/vax/tm-vaxbsd.h: Do not include "tm-vax.h".
9685 * config/vax/tm-vax.h: Delete file.
9686
9687 * config/mips/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
9688 * config/i386/tm-i386bsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
9689 * config/arm/tm-linux.h (SIGCONTEXT_PC_OFFSET): Delete macro.
9690 * config/vax/tm-vaxbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
9691 * vax-tdep.c (vax_sigtramp_saved_pc): Inline only reference.
9692 * config/ns32k/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
9693 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Inline only reference.
9694
9695 2004-02-15 Mark Kettenis <kettenis@gnu.org>
9696
9697 * dwarf2-frame.h (dwarf2_frame_set_init_reg): New prototype.
9698 * dwarf2-frame.c (dwarf2_frame_data): New variable.
9699 (struct dwarf2_frame_ops): New.
9700 (dwarf2_frame_default_init_reg): New function, based on
9701 dwarf2_frame_init_reg.
9702 (dwarf2_frame_init, dwarf2_frame_set_init_reg): New function.
9703 (dwarf2_frame_init_reg): Call architecture-specific function.
9704 (dwarf2_frame_objfile_data): Renamed from dwarf2_frame_data.
9705 (dwarf2_frame_find_fde, add_fde): Use dwarf2_frame_objfile_data
9706 instead of dwarf2_frame_data.
9707 (_initialize_dwarf2_frame): Initailize new dwarf2_frame_data.
9708 Initialize dwarf2_frame_objfile instead of old dwarf2_frame_data.
9709
9710 2004-02-15 Andrew Cagney <cagney@redhat.com>
9711
9712 * gdbarch.sh (deprecated_register_gdbarch_swap): Rename
9713 register_gdbarch_swap.
9714 (DEPRECATED_REGISTER_GDBARCH_SWAP): Rename REGISTER_GDBARCH_SWAP.
9715 * f-lang.c (_initialize_f_language): Update, use
9716 DEPRECATED_REGISTER_GDBARCH_SWAP.
9717 * remote.c (_initialize_remote): Ditto.
9718 * regcache.c (_initialize_regcache): Ditto.
9719 * parse.c (_initialize_parse): Ditto.
9720 * infrun.c (_initialize_infrun): Ditto.
9721 * mi/mi-main.c (_initialize_mi_main): Ditto.
9722 * gdbtypes.c (_initialize_gdbtypes): Ditto.
9723
9724 * solib.c (solib_map_sections): Use bfd_set_cacheable instead of
9725 poking .cacheable directly.
9726 * symfile.c (symfile_bfd_open): Ditto.
9727
9728 * Makefile.in: Update all dependencies.
9729
9730 * Makefile.in: (.SUFFIXES): Add ".l" and ".y".
9731 (.y.c, .l.c): Specify implicit rule. Instead of .tab.c, generate
9732 .c. Update references. Delete unnecessary .tab.c and -lex.c rules.
9733 (ada-exp.o, c-exp.o, f-exp.o): Replace ada-exp.tab.o et.al. rule.
9734 (jv-exp.o, m2-exp.o, objc-exp.o, p-exp.o): Similar.
9735
9736 2004-02-14 Andrew Cagney <cagney@redhat.com>
9737
9738 * arch-utils.c (legacy_convert_register_p): Check
9739 DEPRECATED_REGISTER_CONVERTIBLE_P.
9740 * findvar.c (value_of_register): Ditto.
9741
9742 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Add predicate.
9743 * gdbarch.h, gdbarch.c: Re-generate.
9744 * arch-utils.c (deprecated_register_convertible_not): Delete.
9745 * arch-utils.h (deprecated_register_convertible_not): Delete.
9746 * mi/mi-main.c (get_register): Update. Update copyright.
9747 * infcmd.c (default_print_registers_info): Update.
9748
9749 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
9750 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Delete.
9751 (DEPRECATED_CALL_DUMMY_ADDRESS): Delete.
9752 * gdbarch.h, gdbarch.c: Re-generate.
9753 * frame.c (deprecated_get_next_frame_hack): Delete function.
9754 * frame.h (deprecated_get_next_frame_hack): Delete declaration.
9755 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
9756 Update.
9757 * infcall.c (call_function_by_hand): Update.
9758
9759 2004-02-14 Elena Zannoni <ezannoni@redhat.com>
9760
9761 * symfile.c (init_entry_point_info, entry_point_address): Move
9762 from here...
9763 * objfiles.c (init_entry_point_info, entry_point_address):..to
9764 here.
9765 * symfile.h (init_entry_point_info, entry_point_address): Remove
9766 prototypes.
9767 * objfiles.h (init_entry_point_info, entry_point_address):Add
9768 prototypes.
9769 * cris-tdep.c: Remove include of symfile.h. Add include of
9770 objfiles.h.
9771 * infcall.c: Ditto.
9772 * mcore-tdep.c: Ditto.
9773 * mn10300-tdep.c: Ditto.
9774 * sh64-tdep.c: Ditto.
9775 * v850-tdep.c: Ditto.
9776 * arm-tdep.c: Remove include of symfile.h.
9777 * blockframe.c: Ditto.
9778 * coffread.c: Ditto.
9779 * dbxread.c: Ditto.
9780 * dwarf2read.c: Ditto.
9781 * dwarfread.c: Ditto.
9782 * frv-tdep.c: Ditto.
9783 * ia64-tdep.c: Ditto.
9784 * mdebugread.c: Ditto.
9785 * mipsread.c: Ditto.
9786 * rs6000-tdep.c: Ditto.
9787 * s390-tdep.c: Ditto.
9788 * sh-tdep.c: Ditto.
9789 * xstormy16-tdep.c: Ditto.
9790 * gdbarch.sh: Remove include of symfile.h.
9791 * gdbarch.c: Regenerate.
9792 * solib-irix.c (enable_break): Use entry_point_address().
9793 Add comment about include file.
9794 * xcoffread.c: Add comment about include file.
9795 * Makefile.in (arm-tdep.o, blockframe.o, coffread.o, cris-tdep.o)
9796 (dbxread.o, dwarf2read.o, dwarfread.o, frv-tdep.o, gdbarch.o)
9797 (ia64-tdep.o, infcall.o, mcore-tdep.o, mdebugread.o, mipsread.o)
9798 (mn10300-tdep.o, rs6000-nat.o, s390-tdep.o, sh64-tdep.o)
9799 (sh-tdep.o, v850-tdep.o, xstormy16-tdep.o): Update dependencies.
9800
9801 2004-02-13 Andrew Cagney <cagney@redhat.com>
9802
9803 * corelow.c (core_xfer_partial): Use "struct bfd_section".
9804 * config/sparc/nm-nbsd.h (struct target_ops): Declare, update
9805 copyright.
9806 * mips-linux-tdep.c: Use "GNU/Linux", update copyright.
9807
9808 2004-02-12 Fred Fish <fnf@redhat.com>
9809
9810 * m68hc11-tdep.c (m68hc11_gdbarch_init): Remove duplicate call to
9811 set_gdbarch_store_return_value.
9812
9813 2004-02-12 Andrew Cagney <cagney@redhat.com>
9814
9815 * remote-rdi.c (arm_rdi_start_remote): Delete unused function.
9816 (arm_rdi_interrupt, arm_rdi_interrupt_twice): Ditto.
9817 (interrupt_query): Ditto.
9818 (ofunc): Delete unused variable.
9819 * cris-tdep.c (cris_abi): Delete unused function.
9820 (reg_pop_op, move_reg_to_mem_index_inc_op): Ditto.
9821 (cris_get_wide_opcode, cris_get_short_size): Ditto.
9822 (cris_get_asr_quick_shift_steps): Ditto.
9823 (cris_skip_prologue_frameless_p): Ditto.
9824 * arm-tdep.c (arm_push_return_address): Delete unused function.
9825 (arm_push_dummy_frame, arm_fix_call_dummy): Ditto.
9826 * rs6000-tdep.c (rs6000_pc_in_call_dummy): Delete unused function.
9827 * s390-tdep.c (s390_function_start): Delete unused function.
9828
9829 2004-02-12 Andrew Cagney <cagney@redhat.com>
9830
9831 * gdbarch.sh (PROLOGUE_FRAMELESS_P): Delete.
9832 gdbarch.h, gdbarch.c: Re-generate.
9833 * cris-tdep.c (cris_gdbarch_init): Do not set prologue_frameless_p
9834 to generic_prologue_frameless_p.
9835 * arch-utils.h (generic_prologue_frameless_p): Delete declaration.
9836 * arch-utils.c (generic_prologue_frameless_p): Delete function.
9837
9838 2004-02-11 Daniel Jacobowitz <drow@mvista.com>
9839
9840 * mips-linux-tdep.c: Include "frame.h".
9841 (mips_linux_in_dynsym_stub, mips_linux_in_dynsym_resolve_code)
9842 (mips_linux_skip_resolver): New functions.
9843 (mips_linux_init_abi): Call set_gdbarch_skip_solib_resolver
9844 and set_gdbarch_in_solib_call_trampoline.
9845 * mips-tdep.c (mips_gdbarch_init): Move gdbarch_init_osabi call
9846 to after set_gdbarch_in_solib_return_trampoline. Only set the
9847 solib hooks to mips16 functions if the OS ABI is unknown.
9848 * config/mips/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Undefine after
9849 including "config/tm-linux.h".
9850 (IN_SOLIB_DYNSYM_RESOLVE_CODE): Define.
9851 * Makefile.in (mips-linux-tdep.o): Update.
9852
9853 2004-02-11 David Carlton <carlton@kealia.com>
9854
9855 * linespec.c (decode_compound): Only look for a class symbol when
9856 considering all but the rightmost component.
9857
9858 2004-02-11 Andrew Cagney <cagney@redhat.com>
9859
9860 * hppa-tdep.c (hppa_gdbarch_init): Re-order so that the frame and
9861 abi code are are separatly grouped.
9862
9863 2004-02-11 Andrew Cagney <cagney@redhat.com>
9864
9865 * gdbarch.sh (FRAME_ARGS_SKIP): Default to 0.
9866 * gdbarch.h, gdbarch.c: Re-generate.
9867 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9868 * v850-tdep.c (v850_gdbarch_init): Update.
9869 * sh64-tdep.c (sh64_gdbarch_init): Update.
9870 * sh-tdep.c (sh_gdbarch_init): Update.
9871 * s390-tdep.c (s390_gdbarch_init): Update.
9872 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9873 * mips-tdep.c (mips_gdbarch_init): Update.
9874 * mcore-tdep.c (mcore_gdbarch_init): Update.
9875 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9876 * m32r-tdep.c (m32r_gdbarch_init): Update.
9877 * ia64-tdep.c (ia64_gdbarch_init): Update.
9878 * hppa-tdep.c (hppa_gdbarch_init): Update.
9879 * h8300-tdep.c (h8300_gdbarch_init): Update.
9880 * frv-tdep.c (frv_gdbarch_init): Update.
9881 * d10v-tdep.c (d10v_gdbarch_init): Update.
9882 * cris-tdep.c (cris_gdbarch_init): Update.
9883 * avr-tdep.c (avr_gdbarch_init): Update.
9884 * arm-tdep.c (arm_gdbarch_init): Update.
9885 * alpha-tdep.c (alpha_gdbarch_init): Update.
9886
9887 2004-02-11 Corinna Vinschen <vinschen@redhat.com>
9888
9889 * sh-tdep.c (sh_sh3_dsp_register_name): Fix formatting. Add missing
9890 comma.
9891 (sh_sh4al_dsp_register_name): Ditto.
9892
9893 2004-02-10 Andrew Cagney <cagney@redhat.com>
9894
9895 * mips-tdep.c (mips_gdbarch_init): Delete deprecated frame code.
9896 (mips_init_frame_pc_first): Delete function.
9897 (mips_frame_saved_pc): Delete function.
9898 (mips_frame_chain): Delete function.
9899 (mips_init_extra_frame_info): Delete function.
9900 (mips_xfer_register): Delete unused variable "reg".
9901 (mips_n32n64_push_dummy_call): Delete unused variable "valbuf".
9902 (mips_n32n64_return_value): Delete unused variable "reg".
9903 (mips_n32n64_return_value): Delete unused variable "pos".
9904 (mips_o32_push_dummy_call): Delete unused variable "valbuf".
9905 (mips_o32_return_value): Delete unused variable "pos".
9906 (mips_o64_push_dummy_call): Delete unused variable "valbuf".
9907 (mips_print_fp_register): Delete unused variable "namelen"
9908 (mips_print_fp_register): Delete unused variable "flt2"
9909 (get_frame_pointer): Delete function.
9910 (cached_proc_desc): Delete static variable.
9911 (mips_pop_frame): Delete function.
9912 (mips_find_saved_regs): Delete function.
9913 (mips_get_saved_register): Delete function.
9914 (mips_saved_pc_after_call): Delete function.
9915 (SIGFRAME_BASE): Delete macro.
9916 (SIGFRAME_FPREGSAVE_OFF): Delete macro.
9917 (SIGFRAME_PC_OFF): Delete macro.
9918 (SIGFRAME_REGSAVE_OFF): Delete macro.
9919 (mips_dump_tdep): Do not print deleted macro definitions.
9920
9921 2004-02-10 Andrew Cagney <cagney@redhat.com>
9922
9923 * Makefile.in (SFILES): Remove explictly listed tui files.
9924 (SUBDIR_GDBTK_SRCS): Fix path to gdbtk-interp.c.
9925
9926 2004-02-10 Jeff Johnston <jjohnstn@redhat.com>
9927
9928 * ia64-tdep.c (ia64_frame_this_id): Fix tracing print statement
9929 to use paddr functions to format ia64 addresses and long values.
9930 (ia64_frame_prev_register, ia64_sigtramp_frame_this_id): Ditto.
9931 (ia64_sigtramp_frame_prev_register, ia64_access_reg): Ditto.
9932 (get_kernel_table, ia64_find_proc_info_x): Ditto.
9933 (ia64_get_dyn_info_list, ia64_libunwind_this_frame_id): Ditto.
9934 (ia64_libunwind_frame_prev_register, ia64_unwind_dummy_id): Ditto.
9935
9936 2004-02-10 Andrew Cagney <cagney@redhat.com>
9937
9938 * defs.h: Do not include "tui.h".
9939 * gdb_curses.h: New file.
9940 * tui/tui-hooks.h: New file.
9941 * tui/tui.h (tui_update_all_exec_infos): Delete declaration.
9942 (tui_install_hooks, tui_remove_hooks): Delete declarations.
9943 (tui_initialize_io): Delete declaration.
9944 (tui_initialize_readline: Delete redundant declaration.
9945 (struct tui_point): Delete definition.
9946 * tui/tui-data.h (struct tui_point): Define.
9947 * cli/cli-decode.c [TUI]: Include "tui/tui.h".
9948 * utils.c: Include "tui/tui.h".
9949 * tui/tui-data.h: Include "tui/tui.h" and "gdb_curses.h".
9950 * printcmd.c [TUI]: Include "tui/tui.h".
9951 * cli/cli-cmds.c [TUI]: Include "tui/tui.h".
9952 * tui/tui-command.c: Include "gdb_curses.h".
9953 * tui/tui.c, tui/tui-winsource.c, tui/tui-wingeneral.c: Ditto.
9954 * tui/tui-windata.c, tui/tui-win.c, tui/tui-stack.c: Ditto.
9955 * tui/tui-source.c, tui/tui-regs.c, tui/tui-layout.c: Ditto.
9956 * tui/tui-io.c, tui/tui-disasm.c, tui/tui-data.c: : Ditto.
9957 * tui/tui-hooks.c: Include "tui-hooks.h" and "gdb_curses.h".
9958 * Makefile.in: Update all dependencies.
9959 (tui_hooks_h, gdb_curses_h): Define.
9960 (SUBDIR_TUI_CFLAGS): Remove -I${srcdir}/tui.
9961
9962 2004-02-10 Elena Zannoni <ezannoni@redhat.com>
9963
9964 * objfiles.h (struct objfile): Remove unused fields auxf1 and
9965 auxf2. Add comments about some other rarely used fields.
9966
9967 2004-02-10 Andrew Cagney <cagney@redhat.com>
9968
9969 * Makefile.in (init.c): Fix script removing duplicates. Problem
9970 reported by Peter Schauer.
9971
9972 2004-02-09 Elena Zannoni <ezannoni@redhat.com>
9973
9974 * bcache.c (bcache_xmalloc): Use obstack_init instead of
9975 obstack_specify_allocation.
9976 * objfiles.c (allocate_objfile): Ditto.
9977 * solib-sunos.c (solib_add_common_symbols)
9978 (allocate_rt_common_objfile): Ditto.
9979 * symfile.c (reread_symbols): Ditto.
9980 * gdb_obstack.h: Add comment.
9981
9982 2004-02-09 Elena Zannoni <ezannoni@redhat.com>
9983
9984 * linespec.c (decode_line_1, locate_first_half)
9985 (decode_compound, lookup_prefix_sym): Update comments. Delete old
9986 commented out code.
9987
9988 2004-02-09 Daniel Jacobowitz <drow@mvista.com>
9989
9990 * cp-namespace.c (check_one_possible_namespace_symbol): Don't use
9991 obstack_free.
9992
9993 2004-02-09 Andrew Cagney <cagney@redhat.com>
9994
9995 * blockframe.c (find_pc_partial_function): If find_pc_overlay
9996 fails, try find_pc_section. Fix PR c++/1267.
9997 * minsyms.c (lookup_minimal_symbol_by_pc): Use find_pc_section
9998 instead of find_pc_mapped_section.
9999 (lookup_minimal_symbol_by_pc_section): If the SECTION is NULL, do
10000 not default to the section containing PC. Fix PR symtab/1519.
10001
10002 2004-02-09 Andrew Cagney <cagney@redhat.com>
10003
10004 * Makefile.in (mips-tdep.o): Update dependencies.
10005 * mips-tdep.c: Include "frame-unwind.h", "frame-base.h" and
10006 "trad-frame.h".
10007 (mips_unwind_pc): Return the pseudo PC register.
10008 (mips_unwind_dummy_id): New function.
10009 (mips16_fetch_instruction): New function.
10010 (mips32_fetch_instruction): New function.
10011 (struct mips_frame_cache): Define.
10012 (mips_mdebug_frame_cache): New function.
10013 (mips_mdebug_frame_this_id): New function.
10014 (mips_mdebug_frame_prev_register): New function.
10015 (mips_mdebug_frame_unwind): Define.
10016 (mips_mdebug_frame_sniffer): New function.
10017 (mips_mdebug_frame_base_address): New function.
10018 (mips_mdebug_frame_base): Define.
10019 (mips_mdebug_frame_base_sniffer): New function.
10020 (mips_gdbarch_init): Append unwind and base sniffers. Set
10021 unwind_dummy_id.
10022
10023 2004-02-08 Andrew Cagney <cagney@redhat.com>
10024
10025 * frame.c: Print both the register number and name.
10026
10027 * Makefile.in (init.c): Eliminate duplicates. Combine two greps
10028 and a sed into a single sed. Make .c and .o patterns more robust.
10029 (OBS): Delete.
10030 (INIT_FILES): Replace OBS with COMMON_OBS.
10031 (COMMON_OBS): Move DEPFILES and YYOBJ to start of definition.
10032
10033 2004-02-08 Mark Kettenis <kettenis@gnu.org>
10034
10035 * sparc-nat.c (sparc_xfer_wcookie): Try to fetch the cookie using
10036 the PT_WCOOKIE request.
10037
10038 2004-02-08 Andrew Cagney <cagney@redhat.com>
10039
10040 * mips-tdep.c (mips_unwind_pc): New function.
10041 (mips_gdbarch_init): Set mips_unwind_pc.
10042
10043 * frame.c (legacy_saved_regs_this_id): Return a null frame ID.
10044 (get_frame_id): Allow the UNKNOWN_FRAME.
10045 (frame_register_unwind, get_frame_type): Ditto.
10046
10047 * frame.c (legacy_frame_p): Check for DEPRECATED_TARGET_READ_FP_P
10048 and DEPRECATED_FP_REGNUM. Don't assume that the lack of
10049 unwind_dummy_id indicates a legacy frame.
10050
10051 * configure.in (CONFIG_LIB_OBS): Replace with CONFIG_OBS.
10052 * configure: Re-generate.
10053
10054 * mips-tdep.c (mips_gdbarch_init): Group deprecated frame unwind
10055 methods.
10056
10057 2004-02-08 Andrew Cagney <cagney@redhat.com>
10058
10059 * configure.in (CONFIG_ALL): Set to Makefile target, and not
10060 makefile macro.
10061 * configure: Re-generate.
10062 (CONFIG_CLEAN, CONFIG_INSTALL, CONFIG_UNINSTALL): Ditto.
10063 * Makefile.in (SUBDIR_CLI_CLEAN): Delete.
10064 (SUBDIR_CLI_INSTALL, SUBDIR_CLI_UNINSTALL): Delete.
10065 (SUBDIR_CLI_ALL, SUBDIR_GDBTK_ALL): Delete.
10066 (SUBDIR_GDBTK_CLEAN, SUBDIR_GDBTK_INSTALL): Delete.
10067 (SUBDIR_GDBTK_UNINSTALL, SUBDIR_MI_ALL): Delete.
10068 (SUBDIR_MI_CLEAN, SUBDIR_MI_INSTALL): Delete.
10069 (SUBDIR_MI_UNINSTALL, SUBDIR_TUI_ALL): Delete.
10070 (SUBDIR_TUI_CLEAN, SUBDIR_TUI_INSTALL): Delete.
10071 (SUBDIR_TUI_UNINSTALL, SUBDIR_CLI_CLEAN): Delete.
10072
10073 2004-02-07 Andrew Cagney <cagney@redhat.com>
10074
10075 * Makefile.in: Update all dependencies.
10076
10077 * configure.in (CONFIG_INITS, CONFIG_LIB_OBS): Delete.
10078 * configure: Re-generate.
10079 * Makefile.in (INIT_FILES): Replace CONFIG_INITS with CONFIG_SRCS.
10080 (CONFIG_LIB_OBS, CONFIG_INITS): Delete.
10081 (COMMON_OBS): Add "main.o" and "annotate.o".
10082 (ANNOTATE_OBS): Delete.
10083 (OBS): Remove ANNOTATE_OBS.
10084 (DEPFILES): Replace CONFIG_LIB_OBS with CONFIG_LIB_OBS, remove
10085 CONFIG_INITS.
10086 (gdb$(EXEEXT), insight$(EXEEXT)): Do not depend on, or link
10087 against CONFIG_OBS and "main.o".
10088 (SUBDIR_CLI_INITS, SUBDIR_MI_INITS): Delete.
10089 (SUBDIR_TUI_INITS, SUBDIR_GDBTK_INITS): Delete.
10090
10091 * tui/tui-command.c: Include "gdb_string.h", delete register
10092 attribute, use ISO-C function signatures.
10093 * tui/tui-disasm.c, tui/tui-file.c, tui/tui-io.c: Ditto.
10094 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
10095 * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Ditto.
10096 * tui/tui.c: Ditto.
10097
10098 * tui/tui-command.c: Change variable and function names to lower
10099 case.
10100 * tui/tui-data.c, tui/tui-disasm.c: Ditto.
10101 * tui/tui-hooks.c, tui/tui-io.c, tui/tui-layout.c: Ditto.
10102 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
10103 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
10104 * tui/tui-winsource.c, tui/tui.c: Ditto.
10105
10106 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
10107
10108 * buildsym.c (free_pending_blocks, finish_block)
10109 (record_pending_block, make_blockvector, end_symtab): Replace
10110 symbol_obstack with objfile_obstack.
10111 * coffread.c (process_coff_symbol, coff_read_struct_type)
10112 (coff_read_enum_type): Ditto.
10113 * cp-namespace.c (initialize_namespace_symtab)
10114 (check_one_possible_namespace_symbol): Ditto.
10115 * dwarf2read.c (new_symbol, dwarf2_const_value, macro_start_file)
10116 (dwarf2_symbol_mark_computed): Ditto.
10117 * dwarfread.c (enum_type, new_symbol, synthesize_typedef): Ditto.
10118 * elfread.c (elf_symtab_read): Ditto.
10119 * hpread.c (hpread_symfile_init, hpread_symfile_init)
10120 (hpread_read_enum_type, hpread_read_function_type)
10121 (hpread_read_doc_function_type, hpread_process_one_debug_symbol):
10122 Ditto.
10123 * jv-lang.c (get_java_class_symtab, add_class_symbol)
10124 (java_link_class_type): Ditto.
10125 * mdebugread.c (parse_symbol, psymtab_to_symtab_1, new_symtab)
10126 (new_symbol): Ditto.
10127 * minsyms.c (install_minimal_symbols): Ditto.
10128 * objfiles.c (allocate_objfile): Remove init of symbol_obstack.
10129 (terminate_minimal_symbol_table): Replace symbol_obstack with
10130 objfile_obstack.
10131 (free_objfile): Remove freeing of symbol_obstack.
10132 * objfiles.h: Remove symbol_obstack field.
10133 * pa64solib.c (add_to_solist): Replace symbol_obstack with
10134 objfile_obstack.
10135 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
10136 symbol_obstack.
10137 (solib_add_common_symbols): Replace symbol_obstack with
10138 objfile_obstack.
10139 * somsolib.c (som_solib_add): Ditto.
10140 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
10141 (common_block_start, common_block_end): Ditto.
10142 * symfile.c (reread_symbols): Remove freeing and init of
10143 symbol_obstack.
10144 (allocate_symtab): Rename symbol_obstack to objfile_obstack.
10145 * symfile.h: Update comment.
10146 * symmisc.c (print_objfile_statistics): Remove symbol_obstack
10147 stats printing.
10148 * symtab.c (symbol_set_names): Replace symbol_obstack with
10149 objfile_obstack.
10150 * symtab.h (struct general_symbol_info, struct minimal_symbol):
10151 Update comments.
10152 * xcoffread.c (read_xcoff_symtab, SYMBOL_DUP, SYMNAME_ALLOC)
10153 (init_stringtab, xcoff_initial_scan): Replace symbol_obstack with
10154 objfile_obstack.
10155
10156 2004-02-07 Andrew Cagney <cagney@redhat.com>
10157
10158 * tui/tui.h: Do not include <stdarg.h>, <string.h>, and
10159 "ansidecl.h". Do not undef "reg" and "chtype". Fix case of
10160 fields and variables.
10161 * tui/tui-wingeneral.h (m_beVisible): Delete macro.
10162 (m_beInvisible): Delete macro.
10163 * tui/tui-data.h: Fix case case fields and variables.
10164 (m_genWinPtrIsNull): Delete macro.
10165 (tui_win_list): Rename winList.
10166 (TUI_SRC_WIN): Rename srcWin.
10167 (TUI_DISASM_WIN): Rename disassemWin.
10168 (TUI_DATA_WIN): Rename dataWin.
10169 (TUI_CMD_WIN): Rename cmdWin.
10170 (m_genWinPtrNotNull): Delete macro.
10171 (m_winPtrIsNull): Delete macro.
10172 (m_winPtrNotNull): Delete macro.
10173 (tui_win_is_source_type): Replace m_winIsSourceType
10174 (tui_win_is_auxillary): Replace m_winIsAuzillary.
10175 (tui_win_has_locator): Replace m_hasLocator.
10176 (tui_set_win_highlight): Replace m_setWinHighlightOn and
10177 m_setWinHighlightOff.
10178 * tui/tui-data.c: Update references.
10179 (tui_win_is_source_type, tui_set_win_highlight): New functions.
10180 (tui_win_has_locator, tui_win_is_auxillary): New functions.
10181 * tui/tui-command.c, tui/tui-disasm.c: Update references.
10182 * tui/tui-io.c, tui/tui-layout.c, tui/tui-regs.c: Ditto.
10183 * tui/tui-regs.h, tui/tui-source.c, tui/tui-stack.c: Ditto.
10184 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
10185 * tui/tui-winsource.c, tui/tui.c: Ditto.
10186
10187 2004-02-07 Mark Kettenis <kettenis@gnu.org>
10188
10189 * sparc-tdep.h (sparc_fetch_wcookie): New prototype.
10190 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Handle
10191 StackGhost.
10192
10193 * sparc-tdep.c (sparc32_frame_prev_register): Rename local
10194 variable `i6' to `i7'.
10195 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
10196
10197 2004-02-07 Andrew Cagney <cagney@redhat.com>
10198
10199 * tui/tui.h (Opaque, OpaquePtr OpaqueList): Delete definition.
10200 (TuiPoint, TuiPointPtr): Ditto.
10201 (TuiStatus, TuiStatusPtr): Ditto.
10202 (TuiWinType, TuiWinTypePtr): Ditto.
10203 (struct tui_point): Rename _TuiPoint.
10204 (tui_get_low_disassembly_address): Rename
10205 tuiGetLowDisassemblyAddress.
10206 (tui_update_all_exec_infos): Rename tuiUpdateAllExecInfos.
10207 (tuiFree): Delete declaration.
10208 (OpaqueFuncPtr, TuiOpaqueFuncPtr): Delete definitions.
10209 (TuiVoidFuncPtr, TuiIntFuncPtr): Delete definitions.
10210 * tui/tui.c (tuiFree): Delete function.
10211 * cli/cli-cmds.c (disassemble_command): Update references.
10212 * tui/tui-data.c, tui/tui-data.h, tui/tui-disasm.c: Ditto.
10213 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
10214 * tui/tui-stack.c, tui/tui-win.c, tui/tui-wingeneral.c: Ditto.
10215 * tui/tui-winsource.c: Ditto.
10216
10217 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
10218
10219 * dbxread.c (dbx_symfile_init, start_psymtab, end_psymtab,
10220 coffstab_build_psymtabs, elfstab_build_psymtabs)
10221 (stabsect_build_psymtabs): Replace psymbol_obstack with
10222 objfile_obstack.
10223 * dwarf2-frame.c (decode_frame_entry_1): Ditto.
10224 * dwarf2read.c (dwarf2_build_psymtabs_hard, dwarf2_read_section):
10225 Ditto.
10226 * dwarfread.c (scan_compilation_units): Ditto.
10227 * elfread.c (elfstab_offset_sections): Ditto.
10228 * hppa-tdep.c (read_unwind_info): Ditto.
10229 * hpread.c (hpread_build_psymtabs, hpread_start_psymtab)
10230 (hpread_end_psymtab): Ditto.
10231 * mdebugread.c (mdebug_build_psymtabs, add_pending)
10232 (parse_partial_symbols, new_psymtab, elfmdebug_build_psymtabs):
10233 Ditto.
10234 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
10235 * objfiles.c (add_to_objfile_sections)
10236 (build_objfile_section_table): Ditto.
10237 (allocate_objfile): Remove init of psymbol_obstack.
10238 (free_objfile): Remove freeing of psymbol_obstack.
10239 * objfiles.h (struct objfile): Remove field
10240 psymbol_obstack. Update comments.
10241 * pa64solib.c (pa64_solib_add_solib_objfile): Replace
10242 psymbol_obstack with objfile_obstack.
10243 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
10244 psymbol_obstack.
10245 * somread.c (som_symfile_offsets, init_import_symbols)
10246 (init_export_symbols): Replace psymbol_obstack with
10247 objfile_obstack.
10248 * somsolib.c (som_solib_add_solib_objfile): Ditto.
10249 * symfile.c (default_symfile_offsets, syms_from_objfile)
10250 (reread_symbols): Remove freeing and init of psymbol_obstack.
10251 (cashier_psymtab): Update comment.
10252 * symmisc.c (print_objfile_statistics): Don't report stats for
10253 psymbol obstack.
10254 * symtab.h (struct general_symbol_info, struct partial_symtab):
10255 Update comments.
10256 * xcoffread.c (xcoff_start_psymtab, xcoff_end_psymtab, swap_sym)
10257 (xcoff_symfile_offsets): Replace psymbol_obstack with
10258 objfile_obstack.
10259
10260 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
10261
10262 * objfiles.h (struct objfile): Add objfile_obstack field.
10263 Remove type_obstack field.
10264
10265 * dwarf2read.c (dwarf2_add_field,dwarf2_add_member_fn,
10266 read_structure_scope read_enumeration, new_symbol): Replace
10267 type_obstack with objfile_obstack.
10268 * dwarfread.c (struct_type, enum_type): Ditto.
10269 * gdbtypes.c (alloc_type, alloc_type_instance, init_type)
10270 (lookup_fundamental_type): Ditto.
10271 * gdbtypes.h (TYPE_ALLOC): Ditto.
10272 * hpread.c (hpread_read_enum_type, hpread_read_function_type)
10273 (hpread_read_doc_function_type, hpread_read_struct_type)
10274 (fix_static_member_physnames, hpread_read_array_type)
10275 (hpread_read_subrange_type, hpread_type_lookup): Ditto.
10276 * jv-lang.c (java_lookup_class, type_from_class, type_from_class)
10277 (java_link_class_type): Ditto.
10278 * mdebugread.c (parse_type): Ditto.
10279 * objfiles.c (allocate_objfile, free_objfile): Ditto.
10280 * solib-sunos.c (solib_add_common_symbols): Ditto.
10281 * stabsread.c (define_symbol, read_type, read_member_functions,
10282 read_cpp_abbrev, read_one_struct_field): Ditto.
10283 * symfile.c (reread_symbols): Ditto.
10284 * symmisc.c (print_objfile_statistics): Ditto.
10285
10286 2004-02-07 Andrew Cagney <cagney@redhat.com>
10287
10288 * tui/tui-data.h (tui_win_element): Rename TuiWinElement.
10289 (tui_exec_info_content): Rename TuiExecInfoContent.
10290 (TuiGenWinInfo, TuiGenWinInfoPtr): Delete definitions.
10291 (TuiWinInfo, TuiWinInfoPtr): Ditto.
10292 (TuiScrollDirection, TuiScrollDirectionPtr): Ditto.
10293 (TuiList, TuiListPtr): Ditto.
10294 (TuiLayoutType, TuiLayoutTypePtr): Ditto.
10295 (TuiDataType, TuiDataTypePtr): Ditto.
10296 (TuiRegisterDisplayType, TuiRegisterDisplayTypePtr): Ditto.
10297 (TuiLineOrAddress, TuiLineOrAddressPtr): Ditto.
10298 (TuiLayoutDef, TuiLayoutDefPtr): Ditto.
10299 (TuiSourceElement, TuiSourceElementPtr): Ditto.
10300 (TuiDataElement, TuiDataElementPtr): Ditto.
10301 (TuiWinElement, TuiWinElementPtr): Ditto.
10302 (TuiDataInfo, TuiDataInfoPtr): Ditto.
10303 (TuiCommandElement, TuiCommandElementPtr): Ditto.
10304 (TuiLocatorElement, TuiLocatorElementPtr): Ditto.
10305 (TuiWhichElement, TuiWhichElementPtr): Ditto.
10306 (TuiSourceInfo, TuiSourceInfoPtr): Ditto.
10307 (TuiCommandInfo, TuiCommandInfoPtr): Ditto.
10308 * tui/tui-command.c, tui/tui-data.c: Update references.
10309 * tui/tui-data.h, tui/tui-disasm.c, tui/tui-layout.c: Ditto.
10310 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
10311 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
10312 * tui/tui-winsource.c, tui/tui.c: Ditto.
10313
10314 2004-02-07 Mark Kettenis <kettenis@gnu.org>
10315
10316 * dwarf2-frame.h: Update copyright.
10317 (enum dwarf2_frame_reg_rule): New.
10318 (struct dwarf2_frame_state_reg): New.
10319 (dwarf2_frame_sniffer, dwarf2_frame_base_sniffer): Make extern.
10320 * dwarf2-frame.c: Update copyright.
10321 (enum dwarf2_reg_rule): Remove.
10322 (struct dwarf2_frame_state): Remove defenition of `struct
10323 dwarf2_frame_state_reg'.
10324 (read_reg): Call get_frame_arch to get the architecture instead of
10325 using CURRENT_GDBARCH.
10326 (execute_cfa_program): Prefix old `enum dwarf2_reg_rule' tags with
10327 DWARF2_FRAME_.
10328 (dwarf2_frame_init_reg): New function.
10329 (dwarf2_frame_cache): Call get_frame_arch to get the architecture
10330 instead of using CURRENT_GDBARCH. Call dwarf2_frame_init_reg to
10331 initialize the register state. Prefix old `enum dwarf2_reg_rule'
10332 tags with DWARF2_FRAME_.
10333 (dwarf2_frame_prev_register): Call get_frame_arch to get the
10334 architecture instead of using CURRENT_GDBARCH. Prefix old `enum
10335 dwarf2_reg_rule' tags with DWARF2_FRAME_.
10336
10337 2004-02-06 Andrew Cagney <cagney@redhat.com>
10338
10339 * tui/tui-data.h (struct tui_list): Rename _TuiList.
10340 (enum tui_data_type): Rename _TuiDataType.
10341 (struct tui_layout_def): Rename _TuiLayoutDef.
10342 (struct tui_source_element): Rename _TuiSourceElement.
10343 (struct tui_data_element): Rename _TuiDataElement.
10344 (struct tui_command_element): Rename _TuiCommandElement.
10345 (struct tui_locator_element): Rename _TuiLocatorElement.
10346 (union tui_which_element): Define.
10347 (struct tui_win_element): Rename _TuiWinElement.
10348 (struct tui_data_info): Rename _TuiDataInfo.
10349 (struct tui_source_info): Rename _TuiSourceInfo.
10350 (struct tui_command_info): Rename _TuiCommandInfo.
10351 (tui_initialize_static_data): Rename initializeStaticData.
10352 (tui_alloc_generic_win_info): Rename allocGenericWinInfo.
10353 (tui_alloc_win_info): Rename allocWinInfo.
10354 (tui_init_generic_part): Rename initGenericPart.
10355 (tui_init_win_info): Rename initWinInfo.
10356 (tui_alloc_content): Rename allocContent.
10357 (tui_add_content_elements): Rename addContentElements.
10358 (tui_init_content_element): Rename initContentElement.
10359 (tui_free_window): Rename freeWindow.
10360 (tui_free_win_content): Rename freeWinContent.
10361 (tui_free_data_content): Rename freeDataContent.
10362 (tui_free_all_source_wins_content): Rename
10363 freeAllSourceWinsContent.
10364 (tui_del_window): Rename tuiDelWindow.
10365 (tui_del_data_windows): Rename tuiDelDataWindows.
10366 (tui_partial_win_by_name): Rename partialWinByName.
10367 (tui_win_name): Rename winName.
10368 (tui_current_layout): Rename currentLayout.
10369 (tui_set_current_layout_to): Rename setCurrentLayoutTo.
10370 (tui_term_height): Rename termHeight.
10371 (tui_set_term_height_to): Rename setTermHeightTo.
10372 (tui_term_width): Rename termWidth.
10373 (tui_set_term_width_to): Rename setTermWidthTo.
10374 (tui_set_gen_win_origin): Rename setGenWinOrigin.
10375 (tui_locator_win_info_ptr): Rename locatorWinInfoPtr.
10376 (tui_source_exec_info_win_ptr): Rename tui_gen_win_info.
10377 (tui_disassem_exec_info_win_ptr): Rename disassemExecInfoWinPtr.
10378 (tui_source_windows): Rename sourceWindows.
10379 (tui_clear_source_windows): Rename clearSourceWindows.
10380 (tui_clear_source_windows_detail): Rename
10381 clearSourceWindowsDetail.
10382 (tui_clear_win_detail): Rename clearWinDetail.
10383 (tui_add_to_source_windows): Rename tuiAddToSourceWindows.
10384 (tui_default_tab_len): Rename tuiDefaultTabLen.
10385 (tui_set_default_tab_len): Rename tuiSetDefaultTabLen.
10386 (tui_win_with_focus): Rename tuiWinWithFocus.
10387 (tui_set_win_with_focus): Rename tuiSetWinWithFocus.
10388 (tui_layout_def): Rename tuiLayoutDef.
10389 (tui_win_resized): Rename tuiWinResized.
10390 (tui_set_win_resized_to): Rename tuiSetWinResizedTo.
10391 (tui_next_win): Rename tuiNextWin.
10392 (tui_prev_win): Rename tuiPrevWin.
10393 (tui_add_to_source_windows): Rename addToSourceWindows.
10394 * tui/tui-winsource.c, tui/tui-win.c: Update references.
10395 * tui/tui-layout.c, tui/tui-source.c: Ditto.
10396 * tui/tui-stack.c, tui/tui-io.c: Ditto.
10397 * tui/tui.c, tui/tui-data.c: Ditto.
10398 * tui/tui-interp.c, tui/tui-data.c: Ditto.
10399 * tui/tui-disasm.c, tui/tui-command.c: Ditto.
10400
10401 * tui/tui-source.h: Update copyright. Include "tui-data.h".
10402 (struct symtab): Declare.
10403 (tui_set_source_content): Rename tuiSetSourceContent.
10404 (tui_show_symtab_source): Rename tuiShowSource.
10405 (tui_source_is_displayed): Rename tuiSourceIsDisplayed.
10406 (tui_vertical_source_scroll): Rename tuiVerticalSourceScroll.
10407 * tui/tui-source.c: Update copyright. Update references.
10408 * tui/tui-win.c, tui/tui-winsource.c: Update references.
10409 * tui/tui-stack.c: Update references.
10410
10411 * tui/tui-win.h: Update copyright. Include "tui-data.h".
10412 (struct tui_win_info): Declare.
10413 (tui_scroll_forward): Rename tuiScrollForward.
10414 (tui_scroll_backward): Rename tuiScrollBackward.
10415 (tui_scroll_left): Rename tuiScrollLeft.
10416 (tui_scroll_right): Rename tuiScrollRight.
10417 (tui_set_win_focus_to): Rename tuiSetWinFocusTo.
10418 (tui_resize_all): Rename tuiResizeAll.
10419 (tui_refresh_all_win): Rename tuiRefreshAll.
10420 (tui_sigwinch_handler): Rename tuiSigwinchHandler.
10421 * tui/tui-layout.c, * tui/tui-io.c: Update references.
10422 * tui/tui-wingeneral.h, * tui/tui.c: Update references.
10423 * tui/tui-disasm.c, * tui/tui-command.c: Update references.
10424
10425 * tui/tui-windata.h: Update copyright. Include "tui-data.h".
10426 (tui_erase_data_content): Rename tuiEraseDataContent.
10427 (tui_display_all_data): Rename tuiDisplayAllData.
10428 (tui_check_data_values): Rename tuiCheckDataValues.
10429 (tui_display_data_from_line): Rename tuiDisplayDataFromLine.
10430 (tui_first_data_item_displayed): Rename tuiFirstDataItemDisplayed.
10431 (tui_first_data_element_no_in_line): Rename
10432 tuiFirstDataElementNoInLine.
10433 (tui_delete_data_content_windows): Rename
10434 tuiDeleteDataContentWindows.
10435 (tui_refresh_data_win): Rename tuiRefreshDataWin.
10436 (tui_display_data_from): Rename tuiDisplayDataFrom.
10437 (tui_vertical_data_scroll): Rename tuiVerticalDataScroll.
10438 * tui/tui-windata.c, tui/tui-hooks.c: Update references.
10439 * tui/tui-win.c, tui/tui-regs.c: Update references.
10440 * tui/tui-layout.c, tui/tui.c: Update references.
10441
10442 * tui/tui-wingeneral.h: Update copyright.
10443 (m_allBeVisible): Delete macro.
10444 (m_allBeInvisible): Delete macro.
10445 (struct tui_gen_win_info): Declare.
10446 (struct tui_win_info): Declare.
10447 (tui_unhighlight_win): Rename unhighlightWin.
10448 (tui_make_visible, tui_make_invisible): Replace makeVisible.
10449 (tui_make_all_visible, tui_make_all_invisible): Replace makeAllVisible.
10450 (tui_make_window): Rename makeWindow.
10451 (tui_copy_win): Rename copyWin.
10452 (tui_box_win): Rename boxWin.
10453 (tui_highlight_win): Rename highlightWin.
10454 (tui_check_and_display_highlight_if_needed): Rename
10455 checkAndDisplayHighlightIfNeeded.
10456 (tui_refresh_all): Rename refreshAll.
10457 (tui_delete_win): Rename tuiDelwin.
10458 (tui_refresh_win): Rename tuiRefreshWin.
10459 * tui/tui-wingeneral.c (make_visible): Rename makeVisible.
10460 (tui_make_visible, tui_make_invisible): New functions.
10461 (tui_make_all_visible, tui_make_all_invisible): New functions.
10462 (make_all_visible): Rename makeAllVisible.
10463 * tui/tui-winsource.c, tui/tui-windata.c: Update references.
10464 * tui/tui-data.c, tui/tui-winsource.c: Update references.
10465 * tui/tui-windata.c, tui/tui-win.c: Update references.
10466 * tui/tui-regs.c, tui/tui-layout.c: Update references.
10467 * tui/tui-data.h (struct tui_gen_win_info): Rename _TuiGenWinInfo.
10468
10469 2004-02-06 Mark Kettenis <kettenis@gnu.org>
10470
10471 * proc-api.c (write_with_trace): Initialize local variable to
10472 silence compiler warning.
10473
10474 2004-02-06 Andrew Cagney <cagney@redhat.com>
10475
10476 * tui/tui-source.h: Do not include "defs.h".
10477 (struct tui_win_info): Declare.
10478 (tui_set_source_content_nil): Declare.
10479 * tui/tui-data.h (struct tui_win_info): Rename _TuiWinInfo.
10480 (union tui_line_or_address): Rename _TuiLineOrAddress.
10481 * tui/tui-winsource.h: Update copyright. Include "tui-data.h".
10482 (tui_update_source_window): Rename tuiUpdateSourceWindow.
10483 (tui_update_source_window_as_is): Rename
10484 tuiUpdateSourceWindowAsIs.
10485 (tui_update_source_windows_with_addr): Rename
10486 tuiUpdateSourceWindowsWithAddr.
10487 (tui_update_source_windows_with_line): Rename
10488 tuiUpdateSourceWindowsWithLine.
10489 (tui_clear_source_content): Rename tuiClearSourceContent.
10490 (tui_erase_source_content): Rename tuiEraseSourceContent.
10491 (tui_set_source_content_nil): Rename tuiSetSourceContentNil.
10492 (tui_show_source_content): Rename tuiShowSourceContent.
10493 (tui_horizontal_source_scroll): Rename tuiHorizontalSourceScroll.
10494 (tui_set_exec_info_content): Rename tuiSetExecInfoContent.
10495 (tui_show_exec_info_content): Rename tuiShowExecInfoContent.
10496 (tui_erase_exec_info_content): Rename tuiEraseExecInfoContent.
10497 (tui_clear_exec_info_content): Rename tuiClearExecInfoContent.
10498 (tui_update_exec_info): Rename tuiUpdateExecInfo.
10499 (tui_set_is_exec_point_at): Rename tuiSetIsExecPointAt.
10500 (tui_alloc_source_buffer): Rename tuiAllocSourceBuffer.
10501 (tui_line_is_displayed): Rename tuiLineIsDisplayed.
10502 (tui_addr_is_displayed): Rename tuiAddrIsDisplayed.
10503 (struct tui_win_info): Declare.
10504 * tui/tui-stack.c: Update references.
10505 * tui/tui-layout.c, tui/tui-winsource.c: Ditto.
10506 * tui/tui-win.c, tui/tui-source.c: Ditto.
10507 * tui/tui.c, tui/tui-disasm.c: Ditto.
10508
10509 2004-02-06 Mark Kettenis <kettenis@gnu.org>
10510
10511 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Fix calculation
10512 of UCONTEXT_ADDR. Fixes PR backtrace/1545.
10513
10514 2004-02-05 Mark Kettenis <kettenis@gnu.org>
10515
10516 * infrun.c (handle_inferior_event): Allow for breakpoint
10517 instructions to generate a SIGSEGV in addition to SIGTRAP, SIGILL
10518 and SIGEMT. Update comments.
10519 * NEWS (Revised SPARC target): Mention support for non-executable
10520 stack.
10521
10522 2004-02-04 Mark Kettenis <kettenis@gnu.org>
10523
10524 * target.h (target_object): Add TARGET_OBJECT_WCOOKIE.
10525 * inftarg.c: Update copyright year.
10526 (child_xfer_partial): Add support for TARGET_OBJECT_WCOOKIE.
10527 * sparc-nat.c: Include "target.h" and "gdb_assert.h".
10528 (sparc_xfer_wcookie): New function.
10529 * sparc-tdep.c (sparc_fetch_wcookie): New function.
10530 * Makefile.in (sparc-nat.o): Update dependencies.
10531 * config/sparc/nm-nbsd.h: Include "target.h".
10532 (NATIVE_XFER_WCOOKIE): New define.
10533 (sparc_xfer_wcookie): New prototype.
10534
10535 2004-02-04 Andrew Cagney <cagney@redhat.com>
10536
10537 * m68k-tdep.c (m68k_saved_pc_after_call): Delete #ifdef
10538 SYSCALL_TRAP function.
10539 (m68k_gdbarch_init): Delete #ifdef SYSCALL_TRAP code.
10540
10541 2004-02-04 Andrew Cagney <cagney@redhat.com>
10542 Daniel Jacobowitz <drow@mvista.com>
10543
10544 * objfiles.h: Delete comments refering to inside_entry_func and
10545 DEPRECATED_FRAME_CHAIN_VALID.
10546 * defs.h (inside_entry_func): Update prototype..
10547 * blockframe.c (inside_entry_func): Rename to
10548 legacy_inside_entry_func. Add new inside_entry_func taking a frame.
10549 * frame.c (get_prev_frame): Pass the frame to inside_entry_func.
10550
10551 2004-02-03 Jeff Johnston <jjohnstn@redhat.com>
10552
10553 * breakpoint.c (struct captured_parse_breakpoint_args): Move
10554 outside of #ifdef SOLIB_ADD region.
10555 (do_restore_lang_radix_cleanup): Ditto.
10556 (resolve_pending_breakpoint): Ditto.
10557
10558 2004-02-03 Andrew Cagney <cagney@redhat.com>
10559
10560 * ia64-tdep.c (read_sigcontext_register): Delete unused function.
10561 (process_note_abi_tag_sections): Delete unused function.
10562 (ia64_read_fp): Delete unused function.
10563 (gdbarch_extract_struct_value_address): Delete declaration.
10564
10565 2004-02-02 Andrew Cagney <cagney@redhat.com>
10566
10567 * vax-tdep.c (vax_frame_chain): Delete call to
10568 deprecated_inside_entry_file.
10569 * ns32k-tdep.c (ns32k_frame_chain): Ditto.
10570
10571 2004-02-02 Mark Kettenis <kettenis@gnu.org>
10572
10573 * dwarf2-frame.c (dwarf2_frame_cache): Deal with a return address
10574 column that's "empty" or "same value" when eliminating REG_RA
10575 rules.
10576
10577 2004-02-02 Jeff Johnston <jjohnstn@redhat.com>
10578
10579 * NEWS: Add information about new pending breakpoint support.
10580
10581 2004-02-02 Jeff Johnston <jjohnstn@redhat.com>
10582
10583 * breakpoint.h (struct breakpoint): Add new flag, from_tty,
10584 and pending fields for pending breakpoint support.
10585 * breakpoint.c (breakpoint_enabled): Add check for not pending.
10586 (condition_command): Only parse condition if not a pending
10587 breakpoint.
10588 (print_one_breakpoint): Add support for pending breakpoints.
10589 (describe_other_breakpoints): Add checks to verify we are not
10590 dealing with pending breakpoints.
10591 (check_duplicates): Don't check pending breakpoints.
10592 (set_raw_breakpoint): Initialize pending flag.
10593 (do_restore_lang_radix_cleanup): New cleanup routine.
10594 (resolve_pending_breakpoint): New function.
10595 (re_enable_breakpoints_in_shlibs): Try and resolve any
10596 pending breakpoints via resolve_pending_breakpoint.
10597 (mention): Add pending breakpoint support.
10598 (parse_breakpoint_sals): Add new parameter to pass to
10599 decode_line_1 to indicate silent errors when files or functions
10600 are not found. Change all callers.
10601 (do_captured_parse_breakpoint): New function.
10602 (break_command_1): Change prototype to return an rc value and to
10603 take an optional pending breakpoint pointer. Support creating
10604 a pending breakpoint if a "not found" form of error occurs when
10605 parsing the breakpoint. Also support resolving an existing pending
10606 breakpoint and be silent if the resolution fails.
10607 (create_breakpoints): Change prototype to take pending breakpoint
10608 pointer. When resolving a pending breakpoint, use the new pointer
10609 to provide a conditional or commands added by the end-user.
10610 (delete_breakpoint): Add appropriate check for pending.
10611 (breakpoint_re_set_one): Ditto.
10612 (do_enable_breakpoint): Ditto.
10613
10614 2004-02-02 David Carlton <carlton@kealia.com>
10615
10616 * valops.c (enum oload_classification): New.
10617 (find_overload_match): Break implementation into separate
10618 functions; delete #if 0'd code; look for symbols within
10619 namespaces.
10620 (find_oload_champ_namespace,find_oload_champ_namespace_loop)
10621 (find_oload_champ,oload_method_static,classify_oload_match): New.
10622 * cp-support.h: Add declaration for cp_func_name; update
10623 declaration for make_symbol_overload_list.
10624 * cp-support.c (cp_func_name): New.
10625 (overload_list_add_symbol): Fix comment, use
10626 SYMBOL_LINKAGE_NAME and SYMBOL_NATURAL_NAME.
10627 (make_symbol_overload_list): Take a function name and a namespace
10628 instead of a symbol; change implementation.
10629 (make_symbol_overload_list_using): New.
10630 (make_symbol_overload_list_qualified, read_in_psymtabs): New.
10631
10632 2004-02-02 Fred Fish <fnf@redhat.com>
10633
10634 * main.c (gdb_stdtarg): Move definition to group with other
10635 gdb_stdtarg definitions and update copyright years.
10636 * remote-sim.c (gdb_os_write_stderr): Write output to
10637 gdb_stdtargerr stream instead of gdb_stdtarg stream.
10638 (gdb_os_flush_stderr): Flush gdb_stdtargerr steam instead of
10639 gdb_stderr stream and update copyright years.
10640
10641 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
10642
10643 * Makefile.in (mips-linux-nat.o): Update dependencies.
10644 * mips-linux-nat.c: Include mips-tdep.h.
10645
10646 2004-02-01 Roland McGrath <roland@redhat.com>
10647
10648 * sol-thread.c (sol_thread_xfer_partial): New function.
10649 (init_sol_thread_ops): Use that for to_xfer_partial hook.
10650 (init_sol_core_ops): Likewise.
10651
10652 * procfs.c (procfs_xfer_partial): New function.
10653 (init_procfs_ops): Use that for procfs_ops.to_xfer_partial.
10654 * Makefile.in (procfs.o): Add $(auxv_h) dep.
10655
10656 * config/nm-linux.h (NATIVE_XFER_AUXV): New macro, uses auxv.c's
10657 procfs_xfer_auxv function.
10658
10659 * procfs.c (procfs_make_note_section): If we can read
10660 TARGET_OBJECT_AUXV data, add an NT_AUXV note containing it.
10661 * linux-proc.c (linux_make_note_section): Likewise.
10662
10663 * auxv.h: New file.
10664 * auxv.c: New file.
10665 * Makefile.in (auxv_h): New variable.
10666 (COMMON_OBS): Add auxv.o here.
10667 (auxv.o): New target.
10668
10669 * corelow.c (core_xfer_partial): New function.
10670 (init_core_ops): Use it for core_ops.to_xfer_partial.
10671
10672 * target.h (enum target_object): Add TARGET_OBJECT_AUXV.
10673 * inftarg.c (child_xfer_partial): Support it using NATIVE_XFER_AUXV
10674 macro if that is defined.
10675
10676 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
10677
10678 * breakpoint.c (bpstat_stop_status): Take a ptid_t argument,
10679 and check the specified thread for each breakpoint.
10680 * breakpoint.h (bpstat_stop_status): Update prototype.
10681 * infrun.c (handle_inferior_event): Update calls to
10682 bpstat_stop_status.
10683
10684 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
10685
10686 * Makefile.in (cli-cmds.o): Add $(readline_h).
10687
10688 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
10689
10690 * cli/cli-cmds.c: Include readline.h.
10691 (complete_command): Pass the start of the last word to
10692 complete_line.
10693
10694 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
10695
10696 * breakpoint.c (bpstat_stop_status): Remove not_a_sw_breakpoint
10697 argument, and change first argument to a CORE_ADDR.
10698 * breakpoint.h (bpstat_stop_status): Update prototype.
10699 * infrun.c (adjust_pc_after_break): Add a new comment.
10700 (handle_inferior_event): Update calls to bpstat_stop_status.
10701
10702 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
10703
10704 * breakpoint.h: Update copyright years.
10705
10706 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
10707
10708 * breakpoint.c (software_breakpoint_inserted_here_p): New function.
10709 (bpstat_stop_status): Don't decrement PC.
10710 * breakpoint.h (software_breakpoint_inserted_here_p): Add
10711 prototype.
10712 * infrun.c (adjust_pc_after_break): New function.
10713 (handle_inferior_event): Call it, early. Remove later references
10714 to DECR_PC_AFTER_BREAK.
10715 (normal_stop): Add commentary.
10716
10717 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
10718
10719 * breakpoint.c (breakpoint_re_set_one): Add missing chunk of
10720 2004-01-27 double-free fix.
10721
10722 2004-01-31 Mark Kettenis <kettenis@gnu.org>
10723
10724 * sparc-tdep.c (sparc_fetch_wcookie): New function.
10725 (sparc32_frame_prev_register): Handle StackGhost.
10726 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
10727
10728 2004-01-29 Roland McGrath <roland@redhat.com>
10729
10730 * configure.in (NEW_PROC_API): Also match solaris2.9 for this test.
10731 * configure: Regenerated.
10732
10733 * procfs.c: Include gdb_string.h for str* decls, otherwise warnings.
10734 * Makefile.in (procfs.o): Add dep.
10735
10736 2004-01-28 Andrew Cagney <cagney@redhat.com>
10737
10738 * tui/tui-stack.h: Update copyright.
10739 (struct frame_info): Add opaque declaration.
10740 (tui_update_locator_filename): Rename tuiUpdateLocatorFilename.
10741 (tui_show_locator_content): Rename tuiShowLocatorContent.
10742 (tui_show_frame_info): Rename tuiShowFrameInfo.
10743 * tui/tui-stack.c: Update copyright. Update references.
10744 * tui/tui-winsource.c: Update references.
10745 * tui/tui-win.c: Update references.
10746 * tui/tui-layout.c: Update references.
10747 * tui/tui-hooks.c: Update copyright, update references.
10748 * tui/tui.c: Update copyright, update references.
10749 * tui/tui-disasm.c: Update references.
10750
10751 2004-01-28 David Carlton <carlton@kealia.com>
10752
10753 * dwarf2read.c (add_partial_structure): Use demangled name if
10754 namespace equals "".
10755
10756 2004-01-27 Jim Blandy <jimb@redhat.com>
10757
10758 Clean up misapplied patch:
10759 * dwarf2read.c (determine_prefix): Change one of the two forward
10760 declarations for 'determine_prefix_aux' to a declaration for this.
10761 (read_func_scope): Use cu->language, not cu_language. Pass 'cu'
10762 argument to 'die_specification'.
10763
10764 * dwarf2read.c (read_func_scope): Re-indent comment.
10765
10766 2004-01-27 Paul N. Hilfinger <hilfinger@gnat.com>
10767
10768 * breakpoint.c (breakpoint_re_set_one): Set b->cond, b->val, and
10769 b->exp to NULL after freeing so that error during re-parsing or
10770 evaluation of expressions associated with breakpoint don't
10771 eventually lead to re-freeing of storage.
10772 Committed by Andrew Cagney.
10773
10774 2004-01-27 Andrew Cagney <cagney@redhat.com>
10775
10776 * source.c (ambiguous_line_spec): Delete undefined declaration.
10777 * m32r-rom.c (m32r_set_board_address): Delete unused function.
10778 (m32r_set_server_address, m32r_set_download_path): Ditto.
10779 * remote-fileio.c (remote_fileio_to_fio_int): Ditto.
10780
10781 2004-01-27 Daniel Jacobowitz <drow@mvista.com>
10782
10783 * dwarf2read.c: Update calls to changed and renamed functions, and
10784 references to moved variables.
10785
10786 (struct dwarf2_cu): Add first_fn, last_fn, cached_fn,
10787 language, language_defn, list_in_scope, and ftypes members.
10788 (cu_first_fn, cu_last_fn, cu_cached_fn, cu_language)
10789 (cu_language_defn, list_in_scope, ftypes, cu_header_offset)
10790 (baseaddr): Remove globals.
10791
10792 (dwarf_attr): Renamed to dwarf2_attr. Add CU argument.
10793 (set_cu_language, die_is_declaration, die_specification)
10794 (determine_prefix, determin_prefix_aux, class_name, namespace_name)
10795 (dwarf2_linkage_name, dwarf2_name, dwarf2_extension)
10796 (dwarf2_get_ref_die_offset, dwarf2_fundamental_type)
10797 (initialize_cu_func_list, add_to_cu_func_list): Add CU argument.
10798
10799 (dwarf2_build_psymtabs_hard): Add local baseaddr. Initialize
10800 cu.list_in_scope. Don't initialize cu_header_offset.
10801 (add_partial_symbol): Add local baseaddr.
10802 (psymtab_to_symtab_1): Add local baseaddr. Use
10803 objfile->section_offsets for consistency. Don't initialize
10804 cu_header_offset; do initialize cu.header.offset and
10805 cu.list_in_scope.
10806 (read_file_scope, read_func_scope, read_lexical_block_scope)
10807 (dwarf_decode_lines, new_symbol): Add local baseaddr.
10808
10809 2004-01-27 Michael Chastain <mec.gnu@mindspring.com>
10810
10811 * PROBLEMS: Add gdb/1516.
10812
10813 2003-12-29 Robert Millan <robertmh@gnu.org>
10814
10815 Patch committed by Andrw Cagney.
10816 * configure.host: Match knetbsd*-gnu and kfreebsd*-gnu.
10817 * configure.tgt: Match knetbsd*-gnu.
10818
10819 2004-01-26 Andrew Cagney <cagney@redhat.com>
10820
10821 * breakpoint.c (catch_command_1): Delete #ifdef code.
10822 (catch_fork_command_1): Delete #ifdef wrapper.
10823 (catch_exec_command_1): Ditto.
10824 (catch_load_command_1): Ditto.
10825 (catch_unload_command_1): Ditto.
10826
10827 * breakpoint.c (watchpoint_check): Delete #if0ed variable.
10828 (catch_breakpoint): Delete #if0ed function.
10829 (disable_catch_breakpoint): Ditto.
10830 (delete_catch_breakpoint, enable_catch_breakpoint): Ditto.
10831 (disable_catch, enable_catch, delete_catch): Ditto.
10832
10833 2004-01-26 Andrew Cagney <cagney@redhat.com>
10834
10835 * remote.c (echo_check, quit_flag): Delete variables.
10836 (cisco_kernel_mode): Delete variable.
10837 (minitelnet_return, tty_input, escape_count): Delete variables.
10838 (remote_cisco_mode): Delete variable.
10839 (remote_cisco_open, remote_cisco_close): Delete function.
10840 (remote_cisco_mourn, remote_cisco_wait): Delete function.
10841 (init_remote_cisco_ops): Delete function.
10842 (_initialize_remote): Do not install "remote cisco" code.
10843 (read_frame): Delete cisco specific code.
10844 (remote_info_process): Delete function.
10845 (remote_wait): Delete cisco specific code.
10846 (remote_cisco_section_offsets): Delete function.
10847 (remote_cisco_objfile_relocate): Delete function.
10848 (remote_async_wait): Delete cisco specific code.
10849 (minitelnet, readtty, readsocket): Delete function.
10850
10851 2004-01-26 Andrew Cagney <cagney@redhat.com>
10852
10853 * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS): Deprecate. Add
10854 comments mentioning extract_returned_value_address.
10855 * infcmd.c (print_return_value): Update. Add comments on
10856 extract_returned_value_address.
10857 * stack.c (return_command): Add comments on
10858 extract_returned_value_address.
10859 * values.c: Update comment.
10860 * m32r-tdep.c: Update comment.
10861 * sparc-tdep.c: Update comment.
10862 * ia64-tdep.c (ia64_use_struct_convention): Update comment.
10863 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10864 * sh64-tdep.c (sh64_gdbarch_init): Update.
10865 * sh-tdep.c (sh_gdbarch_init): Update.
10866 * s390-tdep.c (s390_gdbarch_init): Update.
10867 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10868 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
10869 * m68k-tdep.c (m68k_gdbarch_init): Update.
10870 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10871 * m32r-tdep.c (m32r_gdbarch_init): Update.
10872 * ia64-tdep.c (ia64_gdbarch_init): Update.
10873 * h8300-tdep.c (h8300_gdbarch_init): Update.
10874 * frv-tdep.c (frv_gdbarch_init): Update.
10875 * arm-tdep.c (arm_gdbarch_init): Update.
10876 * alpha-tdep.c (alpha_gdbarch_init): Update.
10877
10878 2004-01-26 Andrew Cagney <cagney@redhat.com>
10879
10880 * dwarf2loc.c (dwarf_expr_frame_base): Use SYMBOL_OPS instead of
10881 SYMBOL_LOCATION_FUNCS
10882 (dwarf2_loclist_funcs, dwarf2_locexpr_funcs): Change type to
10883 "struct symbol_ops".
10884 * dwarf2loc.h (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Change
10885 type to "struct symbol_ops".
10886 * symtab.h (struct symbol_ops): Rename "struct location_funcs".
10887 (struct symbol): Replace ".aux_value.loc.funcs" and
10888 ".aux_value.loc.baton" with ".ops" and ".aux_value.ptr".
10889 (SYMBOL_OBJFILE): Delete macro.
10890 (SYMBOL_LOCATION_FUNCS): Delete macro.
10891 (SYMBOL_LOCATION_BATON): Update.
10892 * dwarf2read.c (dwarf2_symbol_mark_computed): Set SYMBOL_OPS
10893 intead of SYMBOL_LOCATION_FUNCS.
10894 * ax-gdb.c (gen_var_ref): Ditto.
10895 * printcmd.c (address_info): Ditto.
10896 * findvar.c (read_var_value): Ditto.
10897 (symbol_read_needs_frame): Ditto.
10898
10899 2004-01-26 Andrew Cagney <cagney@redhat.com>
10900
10901 * dwarf2read.c (read_func_scope): Document frame-base hack.
10902
10903 2004-01-25 Mark Kettenis <kettenis@gnu.org>
10904
10905 * infcmd.c (print_return_value): Plug memory leak; delete
10906 ui_stream object. Rename argument `structure_return' to
10907 `struct_return'.
10908
10909 2004-01-25 Mark Kettenis <kettenis@gnu.org>
10910
10911 * infcmd.c (print_return_value): Wrap long lines.
10912 (finish_command_continuation, finish_command): Remove unused
10913 variable `funcaddr'. Fix some coding-standards problems.
10914
10915 * sparc-tdep.c (sparc_regset_from_core_section): Check whether
10916 SECT_SIZE is large enough, not whether it's exactly the right size.
10917 (sparc32_gdbarch_init): Initialize TDEP->sizeof_gregset and
10918 TDEP->fpregset to zero.
10919
10920 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Also supply the
10921 floating-point registers for traditional NetBSD core files.
10922 (sparc32nbsd_init_abi): Initialize TDEP->sizeof_gregset and
10923 TDEP->sizeof_fpregset here.
10924
10925 2004-01-25 Mark Kettenis <kettenis@gnu.org>
10926
10927 * sparc-tdep.h (sparc32nbsd_sigcontext_saved_regs): New prototype.
10928 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): New
10929 function with code split out from
10930 sparc32nbsd_sigcontext_frame_cache.
10931 (sparc32nbsd_sigcontext_frame_cache): Use
10932 sparc32nbsd_sigcontext_saved_regs.
10933 (_initialize_sparc32nbsd_tdep): Don't register OS ABI handler for
10934 OpenBSD.
10935 * sparcobsd-tdep.c: New file.
10936 * Makefile.in (ALLDEPFILES): Add sparcobsd-tdep.c.
10937 (sparcobsd-tdep.o): New dependency.
10938 * configure.tgt (sparc-*-openbsd*): Set gdb_target to obsd.
10939 * config/sparc/obsd.mt: New file.
10940
10941 * sparc-tdep.c (sparc32_gdbarch_init): Don't require
10942 TDEP->fpregset to be initialized to enable core file register
10943 sets.
10944
10945 2004-01-24 Mark Kettenis <kettenis@gnu.org>
10946
10947 * sparc64-tdep.h (struct frame_info, struct trad_frame_saved_reg):
10948 Add opaque declarations.
10949 (sparc64nbsd_sigcontext_saved_regs): New prototype.
10950 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): New
10951 function with code split out from
10952 sparc64nbsd_sigcontext_frame_cache.
10953 (sparc64nbsd_sigcontext_frame_cache): Use
10954 sparc64nbsd_sigcontext_saved_regs.
10955 (_initialize_sparc64nbsd_tdep): Don't register OS ABI handler for
10956 OpenBSD.
10957 * sparc64obsd-tdep.c: New file.
10958 * Makefile.in (ALLDEPFILES): Add sparc64obsd-tdep.c.
10959 (sparc64obsd-tdep.o): New dependency.
10960 * configure.tgt (sparc64-*-openbsd*): Set gdb_target to obsd64 and
10961 gdb_osabi to GDB_OSABI_OPENBSD_ELF.
10962 * config/sparc/obsd64.mt: New file.
10963
10964 * sparc-tdep.c (sparc_fetch_instruction): Return zero if we can't
10965 read the instruction at PC.
10966
10967 * sparcnbsd-tdep.c (GDB_OSABI_NETBSD_CORE): Define, based on the
10968 value of GDB_OSABI_DEFAULT.
10969 (sparcnbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_CORE
10970 instead of GDB_OSABI_NETBSD_AOUT.
10971
10972 2004-01-24 Nick Roberts <nick@nick.uklinux.net>
10973
10974 * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-cmds.h: Update
10975 copyright.
10976
10977 2004-01-23 Andrew Cagney <cagney@redhat.com>
10978
10979 * printcmd.c (display_command): Replace tui_set_display call with
10980 tui_set_layout_for_display_command.
10981 * tui/tui.h (enum tui_win_type): Define.
10982 (tui_set_layout): Delete declaration.
10983 (tui_set_layout_for_display_command): Rename set_tui_layout.
10984 * tui/tui-data.h (enum tui_layout_type): Define.
10985 * tui/tui-layout.h: Update copyright. Include "tui-data.h" and
10986 "tui.h".
10987 (tui_add_win_to_layout): Rename tuiAddWinToLayout.
10988 (tui_default_win_height): Rename tuiDefaultWinHeight.
10989 (tui_default_win_viewport_height): Rename
10990 tuiDefaultWinViewportHeight.
10991 (tui_set_layout): RenametuiSetLayout.
10992 * tui/tui-layout.c: Update references.
10993 * tui/tui.c: Update references.
10994 * tui/tui-disasm.c: Update references.
10995
10996 2004-01-23 David Carlton <carlton@kealia.com>
10997
10998 Partial workaround for PR c++/1511:
10999 * cp-namespace.c: Include frame.h.
11000 (cp_lookup_transparent_type): New
11001 (cp_lookup_transparent_type_loop): New.
11002 * cp-support.h: Declare cp_lookup_transparent_type.
11003 * symtab.c (basic_lookup_transparent_type): Renamed from
11004 lookup_transparent_type.
11005 (lookup_transparent_type): Replace old body by a call to
11006 current_language->la_lookup_transparent_type.
11007 * symtab.h: Update copyright. Declare
11008 basic_lookup_transparent_type.
11009 * language.h: Update copyright.
11010 (struct language_defn): Add la_lookup_transparent_type.
11011 * language.c: Update copyright.
11012 (unknown_language_defn): Add basic_lookup_transparent_type.
11013 (auto_language_defn): Add basic_lookup_transparent_type.
11014 (local_language_defn): Add basic_lookup_transparent_type.
11015 * ada-lang.c: Update copyright.
11016 (ada_language_defn): Add basic_lookup_transparent_type.
11017 * c-lang.c: Update copyright.
11018 (c_language_defn): Add basic_lookup_transparent_type.
11019 (cplus_language_defn): Add basic_lookup_transparent_type.
11020 (asm_language_defn): Add basic_lookup_transparent_type.
11021 (minimal_language_defn): Add basic_lookup_transparent_type.
11022 * f-lang.c: Update copyright.
11023 (f_language_defn): Add basic_lookup_transparent_type.
11024 * jv-lang.c: Update copyright.
11025 (java_language_defn): Add basic_lookup_transparent_type.
11026 * m2-lang.c: Update copyright.
11027 (m2_language_defn): Add basic_lookup_transparent_type.
11028 * objc-lang.c: Update copyright.
11029 (objc_language_defn): Add basic_lookup_transparent_type.
11030 * p-lang.c: Update copyright.
11031 (p_language_defn): Add basic_lookup_transparent_type.
11032 * scm-lang.c: Update copyright.
11033 (scm_language_defn): Add basic_lookup_transparent_type.
11034 * Makefile.in (cp-namespace.o): Depend on frame.h.
11035
11036 2004-01-23 David Carlton <carlton@kealia.com>
11037
11038 Patch for PR c++/1520:
11039 * dwarf2read.c (read_func_scope): Set processing_current_prefix
11040 properly if we have a specification die.
11041 (determine_prefix_aux): Rename from determine_prefix.
11042 (determine_prefix): Like the old determine_prefix, but never
11043 returns NULL.
11044
11045 2004-01-23 Theodore A. Roth <troth@openavr.org>
11046
11047 * avr-tdep.c: Update copyright.
11048 (avr_iaddr_p): Delete unused function.
11049 (avr_saddr_p): Delete unused function.
11050
11051 2004-01-23 David Carlton <carlton@kealia.com>
11052
11053 * symfile.c (reread_symbols): Clear objfile->cp_namespace_symtab.
11054 Fix for PR symtab/1534.
11055
11056 2004-01-23 Mark Kettenis <kettenis@gnu.org>
11057
11058 * NEWS (New native configurations): Mention OpenBSD/sparc and
11059 OpenBSD/sparc64.
11060 * configure.tgt: Add sparc-*-openbsd* and sparc64-*-openbsd*.
11061 * configure.host: Likewise.
11062 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Register OS ABI
11063 handler for OpenBSD.
11064 * sparc64nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Likewise.
11065
11066 2004-01-22 Mark Kettenis <kettenis@gnu.org>
11067
11068 * sparcnbsd-tdep.c (sparcnbsd_core_osabi_sniffer): New function.
11069 (_initialize_sparnbsd_tdep): Register sparcnbsd_core_osabi_sniffer.
11070
11071 * ser-pipe.c (pipe_open): Use proper null pointer in execl call.
11072 * cli/cli-cmds.c (shell_escape): Likewise.
11073
11074 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Recognize
11075 OpenBSD .note.openbsd.ident sections.
11076
11077 2004-01-22 David Carlton <carlton@kealia.com>
11078
11079 * dwarf2read.c (psymtab_to_symtab_1): Calculate lowpc, highpc via
11080 get_scope_pc_bounds.
11081 (read_file_scope): Ditto.
11082 (get_scope_pc_bounds): New function, produced by extracting code
11083 from the above two functions, consolidating it, and adding support
11084 for DW_TAG_namespace.
11085
11086 2004-01-22 Mark Kettenis <kettenis@gnu.org>
11087
11088 * osabi.c (MAX_NOTESZ): New define.
11089 (check_note): New function.
11090 (generic_elf_osabi_sniff_abi_tag_sections): Reorganize code using
11091 check_note.
11092
11093 2004-01-21 Roland McGrath <roland@redhat.com>
11094
11095 * MAINTAINERS (write after approval): Add myself.
11096
11097 2004-01-21 Eli Zaretskii <eliz@gnu.org>
11098
11099 * utils.c (init_page_info): Move declarations of `rows' and
11100 `cols' before the __GO32__-specific code. Move the closing brace
11101 outside the #ifdef __GO32__..#endif block.
11102 [__GO32__]: Use `rows' and `cols' to avoid compiler warnings.
11103
11104 2004-01-21 Paul Brook <paul@codesourcery.com>
11105
11106 * infrun.c (handle_inferior_event): Check stop_stack_dummy if handling
11107 BPSTAT_WHAT_CHECK_SHLIBS.
11108
11109 2004-01-21 Paul Brook <paul@codesourcery.com>
11110
11111 * MAINTAINERS: Add myself to write-after-approval.
11112
11113 2004-01-20 Andrew Cagney <cagney@redhat.com>
11114
11115 * ax-gdb.c (print_axs_value): Delete unused function.
11116 * jv-lang.c (java_lookup_type): Delete unused function.
11117 * cli/cli-dump.c (dump_filetype): Delete unused function.
11118 * remote-mips.c (remote_mips_insert_hw_breakpoint)
11119 (remote_mips_remove_hw_breakpoint): Delete unused functions.
11120 (mips_getstring): Delete unused function.
11121 (pmon_insert_breakpoint): Delete #if0ed function.
11122 (PMON_MAX_BP): Delete #if0ed MACRO.
11123 (mips_pmon_bp_info): Delete #if0ed variable.
11124 (pmon_remove_breakpoint): Delete #if0ed function.
11125 * monitor.c (monitor_write_even_block): Delete unused function.
11126 (monitor_write_memory_block): Delete #if0ed code.
11127 * dink32-rom.c (dink32_load): Delete unused function.
11128 (_initialize_dink32_rom): Delete #if0ed code.
11129 * d10v-tdep.c (d10v_daddr_p): Delete unused function.
11130
11131 * tui/tui-command.c: Update references.
11132 * tui/tui-io.c: Update references.
11133 * tui/tui-command.h: Update copyright.
11134 (tui_dispatch_ctrl_char): Rename tuiDispatchCtrlChar.
11135
11136 * source.c (ambiguous_line_spec): Delete never-defined function.
11137 * remote-rdi.c (arm_rdi_mourn, arm_rdi_send): Ditto.
11138 * gdbtypes.c (add_name, add_mangled_type): Ditto.
11139 * cli/cli-cmds.c (validate_comname): Ditto.
11140
11141 * tui/tui-disasm.h: Update copyright. Include "tui.h" and
11142 "tui-data.h".
11143 (tui_set_disassem_content): Rename tuiSetDisassemContent.
11144 (tui_show_disassem): Rename tuiShowDisassem.
11145 (tui_show_disassem_and_update_source): Rename
11146 tuiVerticalDisassemScroll.
11147 (tui_vertical_disassem_scroll): Rename tuiVerticalDisassemScroll.
11148 (tui_get_begin_asm_address): Rename tuiGetBeginAsmAddress.
11149 * tui/tui.h: Update copyright.
11150 (enum tui_status): Define.
11151 * tui/tui-data.h (enum tui_scroll_direction): Define.
11152 * tui/tui-disasm.c: Update copyright. Update references.
11153 * tui/tui-winsource.c: Update copyright. Update references.
11154 * tui/tui-win.c: Update references.
11155 * tui/tui-layout.c: Update references.
11156
11157 2004-01-20 Andrew Cagney <cagney@redhat.com>
11158
11159 * mi/mi-cmd-stack.c (list_args_or_locals): Move declaration of
11160 sym2 to start of block.
11161
11162 2004-01-19 Michael Chastain <mec.gnu@mindspring.com>
11163
11164 * MAINTAINERS: Delete mmalloc.
11165 * Makefile.in: Delete MMALLOC, MMALLOC_CFLAGS, -lmmalloc, mmalloc_h.
11166 * NEWS: Mention removal of --with-malloc.
11167 * acconfig.h: Delete USE_MMALLOC, MMCHECK_FORCE.
11168 * config.in: Regenerate.
11169 * configure: Regenerate.
11170 * configure.in: Delete MMALLOC_CFLAGS, MMALLOC, --with-mmalloc,
11171 USE_MMALLOC, MMCHECK_FORCE.
11172 * gdbinit.in: Remove mmalloc.
11173 * utils.c: Delete USE_MMALLOC, NO_MMCHECK, MMCHECK_FORCE, malloc_botch.
11174 * config/alpha/alpha-linux.mh: Delete MMALLOC, MMALLOC_CFLAGS.
11175 * config/i386/go32.mh: Likewise.
11176 * config/i386/interix.mh: Likewise.
11177 * config/powerpc/xm-linux.h: Delete MMAP_BASE_ADDRESS, MMAP_INCREMENT.
11178
11179 2004-01-19 Jeff Johnston <jjohnstn@redhat.com>
11180
11181 * linespec.c (decode_variable, symtab_from_filename): Call
11182 error_silent with error message instead of throwing an exception
11183 directly.
11184 * defs.h (error_silent, error_output_message): Add prototypes.
11185 (catch_exceptions_with_msg): Ditto.
11186 * utils.c (error_silent, error_output_message): New functions.
11187 * top.c (catch_exceptions_with_msg): New function.
11188
11189 2004-01-20 Nick Roberts <nick@nick.uklinux.net>
11190
11191 * mi/mi-cmds.h (enum print_values): Add definition.
11192
11193 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Print the name,
11194 type and value for simple data types and just the name and type
11195 for complex ones, if required.
11196
11197 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Print the values of the
11198 children, if required.
11199
11200 2004-01-19 Kevin Buettner <kevinb@redhat.com>
11201
11202 * frv-tdep.c (frv_push_arguments, frv_saved_pc_after_call): Delete
11203 unused declarations.
11204
11205 2004-01-19 Andrew Cagney <cagney@redhat.com>
11206
11207 * top.h (mapped_symbol_files): Delete declaration.
11208 * main.c (captured_main): Delete option "m" and "mapped".
11209 * objfiles.c (mapped_symbol_files): Delete variable.
11210 * symfile.c (symbol_file_command): Delete mmap code.
11211 (symbol_file_add_with_addrs_or_offsets): Ditto.
11212 (add_symbol_file_command, reread_separate_symbols): Ditto.
11213 * objfiles.h (OBJF_MAPPED): Delete.
11214 * objfiles.c (allocate_objfile) [USE_MMALLOC]: Delete.
11215 (free_objfile) [USE_MMALLOC]: Ditto.
11216 (open_existing_mapped_file): Delete function.
11217 (open_mapped_file): Delete function.
11218 (map_to_file): Delete function.
11219
11220 2004-01-19 Kevin Buettner <kevinb@redhat.com>
11221
11222 * infrun.c (step_into_function): Account for possible breakpoint
11223 adjustment when computing ``stop_func_start''.
11224
11225 2004-01-19 Kevin Buettner <kevinb@redhat.com>
11226
11227 * target.c (default_region_size_ok_for_hw_watchpoint): Compare
11228 the region size against the size of a pointer, not the size of
11229 a register as given by DEPRECATED_REGISTER_SIZE.
11230
11231 2004-01-19 Andrew Cagney <cagney@redhat.com>
11232
11233 * tui/tui-regs.h: Include "tui-data.h".
11234 (tuiFirstRegElementNoInLine): Delete declaration.
11235 (tui_display_registers_from): Rename tuiDisplayRegistersFrom.
11236 (tui_last_regs_line_no): Rename tuiLastRegsLineNo.
11237 (tui_line_from_reg_element_no): Rename tuiLineFromRegElementNo.
11238 (tui_calculate_regs_column_count): Rename
11239 tuiCalculateRegsColumnCount.
11240 (tui_check_register_values): Rename tuiCheckRegisterValues.
11241 (tui_show_registers): Rename tuiShowRegisters.
11242 (tui_display_registers_from_line): Rename
11243 tuiDisplayRegistersFromLine.
11244 (tui_first_reg_element_inline): Rename tuiFirstRegElementInLine.
11245 (tui_toggle_float_regs): Rename tuiToggleFloatRegs.
11246 (tui_first_reg_element_no_inline): Rename
11247 tuiFirstRegElementNoInLine.
11248 * tui/tui-data.h: Update copyright.
11249 (enum tui_register_display_type): Rename _TuiRegisterDisplayType.
11250 * tui/tui-windata.c: Update copyright, update references.
11251 * tui/tui-regs.c: Update copyright, update references.
11252 * tui/tui-win.c: Update copyright, update references.
11253 * tui/tui-layout.c: Update copyright, update references.
11254
11255 2004-01-18 Andrew Cagney <cagney@redhat.com>
11256
11257 * tui/tui-io.c: Update copyright.
11258 (key_is_end_sequence, key_is_backspace): New functions.
11259 (key_is_command_char, key_is_start_sequence): New function.
11260 (tui_getc): Update references.
11261 * tui/tui-io.h: Update copyright.
11262 (m_tuiStartNewLine): Delete macro.
11263 (m_isBackspace, m_isDeleteChar): Delete macros.
11264 (m_isDeleteLine, m_isDeleteToEol): Delete macros.
11265 (m_isNextPage, m_isPrevPage): Delete macros.
11266 (m_isLeftArrow, m_isRightArrow): Delete macros.
11267 (m_isXdbStyleCommandChar): Delete macro.
11268 (key_is_start_sequence): Declare, replace m_isStartSequence.
11269 (key_is_end_sequence): Declare, replace m_isEndSequence.
11270 (key_is_backspace): Declare ,replace m_isBackspace.
11271 (key_is_command_char): Declare, replace m_isCommandChar.
11272 * tui/tui-command.c: Update copyright.
11273 (tuiDispatchCtrlChar): Update references.
11274
11275 * config/djgpp/fnchange.lst: Delete tui/tuiSourceWin.c and
11276 tuiSourceWin.h.
11277
11278 * tui/tui-command.c: Rename tui/tuiCommand.c.
11279 * tui/tui-command.h: Rename tui/tuiCommand.h.
11280 * tui/tui-data.c: Rename tui/tuiData.c.
11281 * tui/tui-data.h: Rename tui/tuiData.h.
11282 * tui/tui-disasm.c: Rename tui/tuiDisassem.c.
11283 * tui/tui-disasm.h: Rename tui/tuiDisassem.h.
11284 * tui/tui-io.c: Rename tui/tuiIO.c.
11285 * tui/tui-io.h: Rename tui/tuiIO.h.
11286 * tui/tui-layout.c: Rename tui/tuiLayout.c.
11287 * tui/tui-layout.h: Rename tui/tuiLayout.h.
11288 * tui/tui-regs.c: Rename tui/tuiRegs.c.
11289 * tui/tui-regs.h: Rename tui/tuiRegs.h.
11290 * tui/tui-source.c: Rename tui/tuiSource.c.
11291 * tui/tui-source.h: Rename tui/tuiSource.h.
11292 * tui/tui-stack.c: Rename tui/tuiStack.c.
11293 * tui/tui-stack.h: Rename tui/tuiStack.h.
11294 * tui/tui-win.c: Rename tui/tuiWin.c.
11295 * tui/tui-win.h: Rename tui/tuiWin.h.
11296 * tui/tui-windata.c: Rename tui/tuiDataWin.c.
11297 * tui/tui-windata.h: Rename tui/tuiDataWin.h.
11298 * tui/tui-wingeneral.c: Rename tui/tuiGeneralWin.c.
11299 * tui/tui-wingeneral.h: Rename tui/tuiGeneralWin.h.
11300 * tui/tui-winsource.c: Rename tui/tuiSourceWin.c.
11301 * tui/tui-winsource.h: Rename tui/tuiSourceWin.h.
11302 * tui/tui-file.c: Update includes.
11303 * tui/tui-hooks.c: Update includes.
11304 * tui/tui-interp.c: Update includes.
11305 * tui/tui.c: Update includes.
11306 * Makefile.in: Update all tui/ dependencies.
11307 (SUBDIR_TUI_OBS, SUBDIR_TUI_SRCS): Update file names.
11308
11309 * Makefile.in: Update copyright. Update dependencies.
11310
11311 * tui/tuiSourceWin.c (tui_update_breakpoint_info): Fix compile
11312 problem.
11313
11314 2004-01-18 Andrew Cagney <cagney@redhat.com>
11315
11316 * mn10300-tdep.c (_initialize_mn10300_tdep): Call gdbarch_register
11317 instead of register_gdbarch_init.
11318
11319 * remote-sds.c (tohex): Delete unused function. Update copyright.
11320 * xstormy16-tdep.c (xstormy16_register_virtual_size): Ditto.
11321 * v850-tdep.c (v850_register_virtual_size): Ditto.
11322 * target.c (normal_target_post_startup_inferior): Ditto.
11323 * source.c (ambiguous_line_spec): Ditto.
11324 * remote.c (adapt_remote_get_threadinfo): Ditto.
11325 * mi/mi-out.c (out_field_fmt): Ditto.
11326 * mi/mi-interp.c (mi_interp_read_one_line_hook): Ditto.
11327 (output_control_change_notification): Ditto.
11328 * m68k-tdep.c (m68k_register_byte): Ditto.
11329 (m68k_remote_breakpoint_from_pc): Ditto.
11330 * ui-out.c (init_ui_out_state): Delete unused declaration.
11331 * stabsread.c (search_value): Ditto.
11332 * mi/mi-cmd-env.c (env_cli_command): Ditto.
11333 * maint.c (print_section_table): Ditto.
11334 * infrun.c (set_follow_fork_mode_command): Ditto.
11335
11336 2004-01-18 Mark Kettenis <kettenis@gnu.org>
11337
11338 * dwarf2-frame.c (execute_cfa_program): Move DWA_CFA_nop before
11339 DW_CFA_def_cfa_exporession. Add support for
11340 DW_CFA_offset_extendend_sf, DW_CFA_def_cfa_sf and
11341 DW_CFA_def_cfa_offset_sf. This should fix PR backtrace/1391.
11342
11343 2004-01-18 Andrew Cagney <cagney@redhat.com>
11344
11345 * ocd.c: Update copyright.
11346 (bdm_read_register_command): Delete unused function.
11347 (_initialize_remote_ocd): Delete commented out reference.
11348 (get_quoted_char, reset_packet): Delete #if0ed function.
11349 (output_packet, put_quoted_char): Delete #if0ed function.
11350 (stu_put_packet, stu_get_packet): Delete #if0ed function.
11351 (ocd_start_remote): Delete #if0ed code, remove #if1 wrapper.
11352 (BDM_BREAKPOINT): Delete #if0ed macro.
11353 (remote_timeout): Delete #if0ed variable.
11354
11355 2004-01-18 Mark Kettenis <kettenis@gnu.org>
11356
11357 * Makefile.in (ALLDEPFILES): Remove core-sol2.c.
11358 (core-sol2.o): Remove dependency.
11359 * core-sol2.c: Remove file.
11360
11361 2004-01-17 Andrew Cagney <cagney@redhat.com>
11362
11363 * mdebugread.c (compare_blocks): Make addr_diff a LONGEST.
11364 * block.h: Make GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOOCK
11365 enums.
11366
11367 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
11368
11369 * remote.c: Update copyright years.
11370
11371 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
11372
11373 * remote.c (remote_vcont_resume): Use xstrprintf instead of sprintf.
11374
11375 2004-01-17 Andrew Cagney <cagney@redhat.com>
11376
11377 * mdebugread.c: Update copyright.
11378 (parse_symbol): Replace DEPRECATED_STREQ with strcmp.
11379 (parse_type, parse_procedure): Ditto.
11380 (parse_partial_symbols, psymtab_to_symtab_1): Ditto.
11381
11382 * cris-tdep.c (cris_store_struct_return): Put back accidently
11383 deleted function.
11384
11385 * gdbarch.sh: Update copyright year.
11386 * gdbarch.h, gdbarch.c: Re-generate.
11387
11388 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
11389
11390 Suggested by George Anzinger.
11391 * dwarf2expr.c (execute_stack_op): Fetch the second item from the
11392 correct stack offset. Include unknown opcode numbers in the error
11393 message.
11394
11395 2004-01-17 Andrew Cagney <cagney@redhat.com>
11396
11397 * x86-64-tdep.c (x86_64_init_abi): No need to clear
11398 extract_struct_value_address, i386 does not set it.
11399 * sparc64-tdep.c (sparc64_init_abi): Do not set
11400 extract_struct_value_address, never called.
11401 (sparc64_extract_struct_value_address): Delete function.
11402 * m68hc11-tdep.c: Update copyright.
11403 (m68hc11_gdbarch_init): Delete redundant assignment of
11404 extract_struct_value_address.
11405 * i386-tdep.c: Update copyright.
11406 (i386_gdbarch_init): Do not set extract_struct_value_address,
11407 never called.
11408 (i386_extract_struct_value_address): Delete function.
11409 * sparc-tdep.c (sparc32_gdbarch_init): Do not set
11410 extract_struct_value_address, never called.
11411 (sparc32_extract_struct_value_address): #if 0 function. Add
11412 comments explaining its future.
11413
11414 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
11415
11416 * arm-tdep.c (arm_write_pc): New function.
11417 (arm_gdbarch_init): Call set_gdbarch_write_pc.
11418
11419 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
11420
11421 * breakpoint.c (must_shift_inst_regs): Delete.
11422 (bpstat_stop_status): Delete references to DECR_PC_AFTER_HW_BREAK
11423 and SHIFT_INST_REGS.
11424 * infcmd.c (step_1, step_1_continuation): Delete references to
11425 SHIFT_INST_REGS.
11426 * infrun.c (keep_going): Likewise.
11427 * target.h (DECR_PC_AFTER_HW_BREAK): Don't define.
11428 * config/i386/nm-i386.h (DECR_PC_AFTER_HW_BREAK): Likewise.
11429
11430 2004-01-17 Andrew Cagney <cagney@redhat.com>
11431
11432 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
11433 * gdbarch.h, gdbarch.c: Re-generate.
11434 * infcmd.c (print_return_value): Delete reference to
11435 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
11436
11437 * cris-tdep.c (cris_gdbarch_init): Do not set
11438 deprecated_extract_struct_value_address.
11439
11440 * xstormy16-tdep.c: Update copyright.
11441 (xstormy16_extract_struct_value_address): Update to current
11442 extract struct value address interface.
11443 (xstormy16_gdbarch_init): Set extract_struct_value_address.
11444 * sh64-tdep.c (sh64_extract_struct_value_address): Update to
11445 current extract struct value address interface.
11446 (sh64_gdbarch_init): Set extract_struct_value_address.
11447
11448 * cris-tdep.c: Update copyright.
11449 (cris_extract_struct_value_address): Delete function.
11450 (struct_return_address): Delete variable.
11451 (cris_store_struct_return): Do not set struct_return_address.
11452
11453 * mcore-tdep.c: Update copyright.
11454 (mcore_extract_struct_value_address): Delete function. Update
11455 comments.
11456 (mcore_gdbarch_init): Update.
11457 * mn10300-tdep.c: Update copyright.
11458 (mn10300_extract_struct_value_address): Delete function.
11459 (mn10300_gdbarch_init): Update.
11460 * v850-tdep.c: Update copyright.
11461 (v850_extract_struct_value_address): Delete.
11462 (v850_gdbarch_init): Update.
11463 * ns32k-tdep.c: Update copyright.
11464 (ns32k_extract_struct_value_address): Delete.
11465 (ns32k_gdbarch_init): Update.
11466 * hppa-tdep.c (hppa_extract_struct_value_address): Delete.
11467 (hppa_gdbarch_init): Update.
11468 * vax-tdep.c: Update copyright.
11469 (vax_extract_struct_value_address): Delete.
11470 (vax_gdbarch_init): Update.
11471
11472 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Delete.
11473 * gdbarch.h, gdbarch.c: Re-generate.
11474 * procfs.c (procfs_fetch_registers): Delete reference to
11475 DEPRECATED_NPC_REGNUM.
11476 (procfs_store_registers): Ditto.
11477 * regcache.c (generic_target_write_pc): Simplify.
11478 * lynx-nat.c: Delete #ifdef SPARC code. Not used.
11479
11480 * core-sol2.c (fetch_core_registers): Replace
11481 DEPRECATED_NPC_REGNUM with equivalent tdep value.
11482
11483 * hppa-tdep.c: Update copyright year.
11484 (hppa_target_write_pc): Use PCOQ_TAIL_REGNUM instead of
11485 NPC_REGNUM.
11486 (hppa_gdbarch_init): Do not set deprecated_npc_regnum.
11487
11488 * mips-tdep.c (mips_write_pc): New function.
11489 (mips_gdbarch_init): Set "write_pc" to "mips_write_pc".
11490 (mips_read_pc): Use mips_regnum instead of PC_REGNUM.
11491 (mips_find_saved_regs, mips_software_single_step: Ditto.
11492 (mips_frame_saved_pc, mips_frame_saved_pc): Ditto.
11493 mips_init_extra_frame_info, mips_pop_frame): Ditto.
11494
11495 2004-01-17 Andrew Cagney <cagney@redhat.com>
11496
11497 * mips-tdep.c: Re-indent. Group functions by ABI.
11498
11499 2004-01-17 Andrew Cagney <cagney@redhat.com>
11500
11501 * gdbarch.sh (DECR_PC_AFTER_BREAK): Make zero the default.
11502 * gdbarch.c: Re-generate.
11503 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
11504 DECR_PC_AFTER_BREAK to zero.
11505 * vax-tdep.c (vax_gdbarch_init): Ditto.
11506 * v850-tdep.c (v850_gdbarch_init): Ditto.
11507 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
11508 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
11509 * sh-tdep.c (sh_gdbarch_init): Ditto.
11510 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
11511 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
11512 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11513 * mips-tdep.c (mips_gdbarch_init): Ditto.
11514 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11515 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11516 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
11517 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11518 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
11519 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
11520 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11521 * frv-tdep.c (frv_gdbarch_init): Ditto.
11522 * cris-tdep.c (cris_gdbarch_init): Ditto.
11523 * avr-tdep.c (avr_gdbarch_init): Ditto.
11524 * arm-tdep.c (arm_gdbarch_init): Ditto.
11525 * i386-nto-tdep.c (i386nto_init_abi): Add comment.
11526
11527 2004-01-17 J. Brobecker <brobecker@gnat.com>
11528
11529 * dwarf2read.c (dwarf2_non_const_array_bound_ignored_complaint):
11530 Delete, no longer used.
11531 (read_subrange_type): New function, mostly extracted from
11532 read_array_type().
11533 (read_array_type): Replace extracted code by call to
11534 read_subrange_type().
11535 (dwarf2_get_attr_constant_value): New function.
11536 (scan_partial_symbols): Add handling for DW_TAG_subrange_type.
11537 (add_partial_symbol): Likewise.
11538 (process_die): Likewise.
11539 (new_symbol): Likewise.
11540 (read_type_die): Likewise.
11541
11542 2004-01-16 Andrew Cagney <cagney@redhat.com>
11543
11544 * symfile.c: Update copyright year.
11545 (compare_symbols): Delete unused function.
11546 * stabsread.c: Update copyright year.
11547 (lrs_general_complaint): Delete unused function.
11548 (ref_search_value): Ditto.
11549 (get_substring): Delete declaration.
11550 * sh64-tdep.c: Update copyright year.
11551 (sh64_get_gdb_regnum): Delete unused function.
11552 * dwarf2read.c (dwarf2_unsupported_at_frame_base_complaint):
11553 Delete unused function.
11554
11555 2004-01-17 Mark Kettenis <kettenis@gnu.org>
11556
11557 * defs.h (gdb_osabi): Add GDB_OSABI_OPENBSD_ELF.
11558 * osabi.c (gdb_osabi_names): Add "OpenBSD ELF".
11559
11560 2004-01-16 Andrew Cagney <cagney@redhat.com>
11561
11562 Changes from Peter Schauer.
11563 * rs6000-tdep.c: Update copyright year.
11564 (rs6000_push_dummy_call): Update the stack pointer before
11565 accessing the corresponding stack region.
11566 * rs6000-nat.c: Update copyright year.
11567 (set_host_arch): Set "info.abfd" to "exec_bfd".
11568
11569 2004-01-15 Mark Kettenis <kettenis@gnu.org>
11570
11571 * blockframe.c: Update copyright year.
11572 (inside_entry_func): Don't treat a zero PC specially.
11573
11574 2004-01-14 Elena Zannoni <ezannoni@redhat.com>
11575
11576 * gcore.c (gcore_copy_callback): Use paddr_d to print size
11577 variable.
11578 (gcore_create_callback): Ditto. Skip any memory segment that has
11579 no permissions set.
11580
11581 2004-01-14 David Carlton <carlton@kealia.com>
11582
11583 Change symbols for C++ nested types to contain the fully qualified
11584 name, if possible. (At least in the DWARF-2 case.) Partial fix
11585 for PR's c++/57, c++/488, c++/539, c++/573, c++/609, c++/832,
11586 c++/895.
11587 * c-exp.y (qualified_type): Handle types nested within classes.
11588 * cp-namespace.c: Update comments.
11589 (cp_set_block_scope): Delete #if 0.
11590 (cp_lookup_nested_type): Handle types nested within classes.
11591 * dwarf2read.c: (scan_partial_symbols): Call add_partial_structure
11592 when appropriate.
11593 (add_partial_symbol): Add the name of the enclosing namespace to
11594 types.
11595 (pdi_needs_namespace): New.
11596 (add_partial_namespace): Tweak comment.
11597 (add_partial_structure): New.
11598 (psymtab_to_symtab_1): Initialize processing_current_prefix
11599 here...
11600 (process_die): instead of here.
11601 (read_structure_scope): Try to figure out the name of the class or
11602 namespace that the structure might be defined within.
11603 (read_enumeration): Generate fully-qualified names, if possible.
11604 (read_namespace): Don't set name to NULL.
11605 (die_specification): New.
11606 (new_symbol): Generate fully-qualified names for types.
11607 (read_type_die): Determine appropriate prefix.
11608 (determine_prefix): New.
11609 (typename_concat): New.
11610 (class_name): New.
11611 * valops.c (value_aggregate_elt): Pass NOSIDE to
11612 value_struct_elt_for_reference.
11613 (value_struct_elt_for_reference): Make static, add NOSIDE
11614 parameter, call value_maybe_namespace_elt as a last resort.
11615 (value_namespace_elt): Break out code into
11616 value_maybe_namespace_elt.
11617 (value_maybe_namespace_elt): New.
11618
11619 2004-01-12 Andrew Cagney <cagney@redhat.com>
11620
11621 * mips-tdep.c (mips_convert_register_p): Handle both raw and
11622 cooked floating-point registers.
11623 (mips_gdbarch_init): Set convert_register_p, register_to_value,
11624 and value_to_register.
11625
11626 2004-01-13 Andrew Cagney <cagney@redhat.com>
11627
11628 * gdbarch.sh (FUNCTION_START_OFFSET): Make zero the default.
11629 * gdbarch.c: Re-generate.
11630 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
11631 FUNCTION_START_OFFSET.
11632 * v850-tdep.c (v850_gdbarch_init): Ditto.
11633 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
11634 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
11635 * sh-tdep.c (sh_gdbarch_init): Ditto.
11636 * s390-tdep.c (s390_gdbarch_init): Ditto.
11637 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
11638 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
11639 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11640 * mips-tdep.c (mips_gdbarch_init): Ditto.
11641 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11642 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
11643 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11644 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
11645 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11646 * i386-tdep.c (i386_gdbarch_init): Ditto.
11647 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
11648 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11649 * frv-tdep.c (frv_gdbarch_init): Ditto.
11650 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11651 * cris-tdep.c (cris_gdbarch_init): Ditto.
11652 * avr-tdep.c (avr_gdbarch_init): Ditto.
11653 * arm-tdep.c (arm_gdbarch_init): Ditto.
11654 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
11655
11656 2004-01-13 Daniel Jacobowitz <drow@mvista.com>
11657
11658 * infrun.c (follow_fork_mode_ask): Remove.
11659 (follow_fork_mode_kind_names): Remove follow_fork_mode_ask.
11660 (follow_fork): Simplify and remove internal error for
11661 follow_fork_mode_ask.
11662 (_initialize_infrun): Update "set follow-fork-mode" help text.
11663
11664 2004-01-13 Andrew Cagney <cagney@redhat.com>
11665
11666 * configure.in: Update copyright year.
11667 (build_warnings): Add -Wunused-label.
11668 * configure: Re-generate.
11669
11670 2004-01-12 Andrew Cagney <cagney@redhat.com>
11671
11672 * exec.h (exec_ops): Make "extern".
11673
11674 * mips-tdep.c (mips_pseudo_register_read): Don't return a value,
11675 the function is void.
11676 (mips_pseudo_register_write): Ditto.
11677
11678 2004-01-12 Andrew Cagney <cagney@redhat.com>
11679
11680 * stack.c (frame_info): Delete DEPRECATED_PRINT_EXTRA_FRAME_INFO
11681 call. Never defined.
11682 * sparc-tdep.h (struct frame_info): Add opaque declaration.
11683 * sparc64-tdep.h (struct gdbarch): Add opaque declaration.
11684 (struct sparc_gregset, struct regcache): Ditto.
11685 * sparc-nat.c: Update copyright. Specify "GNU/Linux".
11686
11687 2004-01-12 Andrew Cagney <cagney@redhat.com>
11688
11689 * mi/ChangeLog: Delete file. Renamed to ...
11690 * mi/ChangeLog-1999-2003: New file.
11691 * tui/ChangeLog: Delete file. Renamed to ...
11692 * tui/ChangeLog-1998-2003: New file.
11693
11694 2004-01-11 Mark Kettenis <kettenis@gnu.org>
11695
11696 * sparc64nbsd-tdep.c: Include "regset.h".
11697 (sparc64nbsd_sizeof_struct_reg, sparc64nbsd_sizeof_struct_fpreg):
11698 Remove variables.
11699 (fetch_core_registers): Remove function.
11700 (sparc64nbsd_core_fns): Remove variable.
11701 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): New
11702 functions.
11703 (sparc64nbsd_init_abi): Initialize TDEP->gregset,
11704 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
11705 (_initialize_sparc64nbsd_tdep): Remove call to add_core_fns.
11706
11707 * sparc-tdep.c (sparc32_extract_struct_value_address): Rename from
11708 sparc_extract_struct_value_address.
11709 (sparc32_gdbarch_init): Set extract_struct_value_address.
11710 * sparc64-tdep.c (sparc64_extract_struct_value_address): New
11711 function.
11712 (sparc64_init_abi): Set extract_struct_value_address. Don't set
11713 return_value_on_stack.
11714
11715 * NEWS: Mention that %cs and %ss have been added to the AMD64
11716 configurations
11717
11718 * frame.c: Update copyright year.
11719 (get_prev_frame): Improve comment.
11720
11721 * sparc64fbsd-tdep.c: Include "regset.h".
11722 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
11723 Remove variables.
11724 (fetch_core_registers): Remove function.
11725 (sparc64fbsd_core_fns): Remove variable.
11726 (sparc64fbsd_supply_gregset, sparc64fbsd_supply_fpregset): New
11727 functions.
11728 (sparc64fbsd_init_abi): Initialize TDEP->gregset,
11729 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
11730 (_initialize_sparc64fbsd_tdep): Remove call to add_core_fns.
11731
11732 * sparcnbsd-tdep.c: Include "regset.h".
11733 (fetch_core_registers): Remove function.
11734 (sparcnbsd_core_fns, sparcnbsd_elfcore_fns): Remove varaibles.
11735 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): New
11736 functions.
11737 (sparc32nbsd_init_abi): Initialize TDEP->gregset and
11738 TDEP->fpregset.
11739 (_initialize_sparcnbsd_tdep): Remove calls to add_core_fns.
11740
11741 * sparc-tdep.h (struct regset): Provide opaque declaration.
11742 (struct gdbarch_tdep): Add gregset, sizeof_gregset,
11743 fpregset and sizeof_fpregset members.
11744 * sparc-tdep.c (struct regset): Provide opaque declaration.
11745 (sparc_regset_from_core_section): New function.
11746 (sparc32_gdbarch_init): Initialize TDEP->gregset,
11747 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_fpregset.
11748 Set regset_from_core_section when appropriate.
11749
11750 2004-01-10 Mark Kettenis <kettenis@gnu.org>
11751
11752 * x86-64-tdep.c (amd64_non_pod_p): New function.
11753 (amd64_classify_aggregate): Return class memory for non-POD
11754 C++ structure types.
11755
11756 * x86-64-tdep.c (amd64_push_arguments): Add struct_return
11757 argument. Use it to reserve a register if necessary.
11758 (amd64_push_dummy_call): Pass STRUCT_RETURN in call to
11759 amd64_push_arguments.
11760
11761 * x86-64-tdep.c (amd64_classify_aggregate): Ignore static fields.
11762
11763 * x86-64-tdep.c (amd64_register_info): Add %cs and %ss. Adjust
11764 register numbers in comments.
11765 * x86-64-tdep.h: Update copyright year.
11766 (X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM):
11767 Adjust for addition of %cs and %ss.
11768 * amd64fbsd-nat.c: Update copyright year.
11769 (reg_offset): Add register offsets for %cs and %ss.
11770 * amd64fbsd-tdep.c: Update copyright year.
11771 (amd64fbsd_r_reg_offset): Add register offsets for %cs and %ss.
11772 (amd64fbsd_sc_reg_offset): Likewise.
11773 * x86-64-linux-nat.c: Update copyright year.
11774 (x86_64_linux_gregset64_reg_offset): Add register offsets for %cs
11775 and %ss.
11776 * amd64nbsd-nat.c: Update copyright year.
11777 (amd64nbsd32_r_reg_offset): Add register offsets for %cs and %ss.
11778 * amd64nbsd-tdep.c: Update copyright year.
11779 (amd64nbsd_r_reg_offset): Add register offsets for %cs and %ss.
11780 * x86-64-linux-tdep.c: Update copyright year.
11781 (user_to_gdb_regmap): Add mapping for %cs and %ss.
11782 (x86_64_linux_sc_reg_offset): Adjust for addition of %cs and %ss.
11783 * regformats/reg-x86-64.dat: Add %cs and %ss.
11784
11785 * blockframe.c (inside_entry_func): Reformat. Introduce new local
11786 variables to prevent long lines. Update comments to reflect
11787 reality.
11788
11789 2004-01-09 David Carlton <carlton@kealia.com>
11790
11791 Checked in by Elena Zannoni <ezannoni@redhat.com>.
11792 * dwarf2read.c (read_namespace): Pull out name-generating code
11793 into namespace_name. Rename previous_namespace to previous_prefix
11794 and processing_current_namespace to processing_current_prefix..
11795 (namespace_name): New function.
11796 (add_partial_symbol): Substitute uses of pdi->name with
11797 actual_name.
11798 * cp-support.h: Rename processing_current_namespace to
11799 processing_current_prefix.
11800 Update copyright year.
11801 * cp-namespace.c: Rename processing_current_namespace to
11802 processing_current_prefix.
11803 Update copyright year.
11804
11805 2004-01-09 Andrew Cagney <cagney@redhat.com>
11806
11807 * jv-valprint.c, ser-unix.c: Add missing copyright years.
11808
11809 2004-01-09 Mark Kettenis <kettenis@gnu.org>
11810
11811 * dbxread.c (read_dbx_symtab): Ignore N_PATCH stabs instead of
11812 complaining.
11813 (process_one_symbol): Deal with N_PATCH stabs.
11814
11815 2004-01-09 Elena Zannoni <ezannoni@redhat.com>
11816
11817 * dwarf2read.c (read_array_type): Discard FORTRAN_HACK macro and
11818 ifdeffed code.
11819 Update copyright year.
11820
11821 2004-01-08 Michael Chastain <mec.gnu@mindspring.com>
11822
11823 * config/pa/tm-hppa.h: Update extern declarations for
11824 hppa32_hpux_frame_saved_pc_in_sigtramp,
11825 hppa32_hpux_frame_base_before_sigtramp, and
11826 hppa32_hpux_frame_find_saved_regs_in_sigtramp.
11827
11828 2004-01-08 Michael Chastain <mec.gnu@mindspring.com>
11829
11830 * config/pa/tm-hppah.h: Update copyright years.
11831
11832 2004-01-08 Andrew Cagney <cagney@redhat.com>
11833
11834 * mips-tdep.c (mips_n32n64_reg_struct_has_addr): Delete function.
11835 (mips_o32_reg_struct_has_addr): Delete function.
11836 (mips_gdbarch_init): Update.
11837 (mips_extract_struct_value_address): Delete function.
11838
11839 2004-01-08 David Mosberger <davidm@hpl.hp.com>
11840
11841 * ia64-linux-tdep.c: Update GATE_AREA_END value to reflect
11842 reality.
11843
11844 2004-01-07 Andrew Cagney <cagney@redhat.com>
11845
11846 * mips-tdep.c (mips_gdbarch_init): Set elf_flags to the previous
11847 architecture's elf flags (when available).
11848
11849 * mips-tdep.c (mips_gdbarch_init): Move code determining the MIPS
11850 FPU to the start, check the MIPS FPU when looking for an old
11851 architecture.
11852 (set_mipsfpu_single_command): Update the architecture.
11853 (set_mipsfpu_double_command, set_mipsfpu_none_command): Ditto.
11854
11855 * mips-tdep.c (MIPS_DEFAULT_MASK_ADDRESS_P): Delete macro.
11856 (mips_mask_address_p): Add "tdep" parameter.
11857 (show_mask_address, mips_addr_bits_remove): Update.
11858 (mips_dump_tdep): Update.
11859 (MIPS_DEFAULT_STACK_ARGSIZE): Delete macro.
11860 (MIPS_STACK_ARGSIZE): Delete macro.
11861 (mips_stack_argsize, mips_eabi_push_dummy_call): Update.
11862 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call): Update.
11863 (mips_o64_push_dummy_call, mips_o32_return_value): Update.
11864 (mips_dump_tdep): Update.
11865 (MIPS_SAVED_REGSIZE): Delete macro.
11866 (MIPS_DEFAULT_SAVED_REGSIZE): Delete macro.
11867 (mips_saved_regsize, mips_eabi_use_struct_convention): Update.
11868 (mips_eabi_reg_struct_has_addr, mips_find_saved_regs): Update.
11869 (mips_frame_saved_pc, mips16_heuristic_proc_desc): Update.
11870 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call): Update.
11871 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update.
11872 (mips_pop_frame, return_value_location): Update.
11873 (mips_n32n64_return_value, mips_dump_tdep): Update.
11874
11875 * mips-tdep.c (mips_gdbarch_init): Clean up code selecting the
11876 MIPS ABI.
11877
11878 * mips-tdep.c: Update copyright.
11879 (mips_gdbarch_init): Merge two code blocks handling the register
11880 name and number layout.
11881
11882 2004-01-02 Pawel Ostrowski <pasza@zodiac.mimuw.edu.pl>
11883
11884 * tracepoint.c (validate_actionline): Fix segv at EOF
11885
11886 2004-01-07 Michael Chastain <mec.gnu@mindspring.com>
11887
11888 * hpread.c (hpread_read_struct_type): Call SET_FIELD_PHYSNAME
11889 properly for static fields.
11890
11891 2004-01-06 Jeff Johnston <jjohnstn@redhat.com>
11892 Jason Molenda <jmolenda@apple.com>
11893
11894 * disasm.c: Update copyright to include 2004.
11895 (do_mixed_source_and_assembly): For uiout asm list
11896 and tuple cleanups, initialize to null_cleanup instead of
11897 NULL and do so prior to loop. Only reset when we close off
11898 the tuple/list. Move check for whether to close off the
11899 asm tuple/list to after dump_insns call where it will be run
11900 on each loop iteration.
11901
11902 2004-01-05 Andrew Cagney <cagney@redhat.com>
11903
11904 * ser-unix.c (ser_unix_async): Fix tipo, "NOTHING_SECHEDULED"
11905 should be a switch case and not a label.
11906 * mips-tdep.c (mips32_next_pc): Delete unused labels
11907 "greater_equal_branch" and "less_zero_branch".
11908 * jv-valprint.c (java_print_value_fields): Delete unused label
11909 "flush_it".
11910
11911 * target.c (unpush_target): Only close a target that is in the
11912 target stack.
11913
11914 2004-01-05 Mark Kettenis <kettenis@gnu.org>
11915
11916 * sparc-tdep.c (sparc_extract_struct_value_address): Get the
11917 address from [sp + 64] instead of %o2.
11918
11919 * frame.c (get_prev_frame): Don't try to unwind the PC. This
11920 fixes PR backtrace/1476.
11921
11922 2004-01-05 Andrew Cagney <cagney@redhat.com>
11923
11924 * libunwind-frame.h (struct frame_id): Add opaque declaration,
11925 move to start of file.
11926 * i386-tdep.h (struct regcache): Add opaque declaration.
11927 * config/ia64/nm-linux.h (struct target_ops): Add opaque
11928 declaration.
11929 * ia64-tdep.c (ia64_find_proc_info_x): Do not use __FUNCTION__.
11930 (ia64_gdbarch_init): Use "GNU/Linux" in comment.
11931 * win32-nat.c (fake_create_process): Use ISO C style definition.
11932 * stabsread.c (define_symbol): Delete #ifndef
11933 DEPRECATED_USE_REGISTER_NOT_ARG wrapper around
11934 stabs_argument_has_addr call, macro never defined.
11935
11936 2004-01-04 Michael Chastain <mec.gnu@mindspring.com>
11937
11938 * op50-rom.c: Delete.
11939 * w89k-rom.c: Delete.
11940 * Makefile.in: Remove references.
11941
11942 2004-01-04 Mark Kettenis <kettenis@gnu.org>
11943
11944 * x86-64-tdep.c: Update copyright year.
11945 (struct amd64_register_info): Rename from x86_64_register_info.
11946 (amd64_register_info): Rename from x86_64_register_info.
11947 (AMD64_NUM_REGS): Rename from X86_64_NUM_REGS.
11948 (amd64_register_name): Rename from x86_64_register_name.
11949 (amd64_register_type): Rename from x86_64_register_type.
11950 (amd64_dwarf_regmap): Rename from x86_64_dwarf_regmap.
11951 (amd64_dwarf_regmap_len): Rename from x86_64_dwarf_regmap_len.
11952 (amd64_dwarf_reg_to_regnum): Rename from
11953 x86_64_dwarf_reg_to_regnum.
11954 (amd64_convert_register_p): Rename from x86_64_convert_register_p.
11955 (amd64_push_dummy_call): Rename from x86_64_push_dummy_call.
11956 (AMD64_NUM_SAVED_REGS): Rename from X86_64_NUM_SAVED_REGS.
11957 (struct amd64_frame_cache): Renamed from x86_64_frame_cache.
11958 (amd64_alloc_frame_cache): Renamed from x86_64_alloc_frame_cache.
11959 (amd64_analyze_prologue): Rename from x86_64_analyze_prologue.
11960 (amd64_skip_prologue): Rename from x86_64_skip_prologue.
11961 (amd64_frame_cache): Rename from x86_64_frame_cache.
11962 (amd64_frame_this_id): Rename from x86_64_frame_this_id.
11963 (amd64_frame_prev_register): Rename from
11964 x86_64_frame_prev_register.
11965 (amd64_frame_unwind): Rename from x86_64_frame_unwind.
11966 (amd64_frame_sniffer): Rename from x86_64_frame_sniffer.
11967 (amd64_sigtramp_frame_cache): Rename from
11968 x86_64_sigtramp_frame_cache.
11969 (amd64_sigtramp_frame_prev_register): Rename from
11970 x86_64_sigtramp_frame_prev_register.
11971 (amd64_sigtramp_frame_unwind): Rename from
11972 x86_64_sigtramp_frame_unwind.
11973 (amd64_sigtramp_frame_sniffer): Rename from
11974 x86_64_sigtramp_frame_sniffer.
11975 (amd64_frame_base_address): Rename from x86_64_frame_base_address.
11976 (amd64_frame_base): Rename from x86_64_frame_base.
11977 (amd64_unwind_dummy_id): Rename from x86_64_unwind_dummy_id.
11978 (amd64_frame_align): Rename from x86_64_frame_align.
11979 (amd64_supply_fpregset): Rename from x86_64_supply_fpregset.
11980 (amd64_regset_from_core_section): Rename from
11981 x86_64_regset_from_core_section.
11982 (x86_64_init_abi): Update comments.
11983
11984 2004-01-04 Nick Roberts <nick@nick.uklinux.net>
11985
11986 * MAINTAINERS (write after approval): Add myself.
11987
11988 2004-01-04 Mark Kettenis <kettenis@gnu.org>
11989
11990 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
11991 `float' arguments.
11992
11993 2004-01-04 Mark Kettenis <kettenis@gnu.org>
11994
11995 * sparc64-tdep.c (sparc64_store_floating_fields): Update comment
11996 such that it mentions a specific version of GCC that exhibits this
11997 bug.
11998
11999 2004-01-03 Mark Kettenis <kettenis@gnu.org>
12000
12001 * sparc64-tdep.c (sparc64_store_floating_fields): If TYPE is a
12002 structure that has a single `float' member, store it in %f1 in
12003 addition to %f0.
12004
12005 * sparc-sol2-nat.c: Add missing '\'.
12006
12007 * sparc-tdep.c (sparc32_return_value): New function.
12008 (sparc32_use_struct_convention, sparc32_return_value_on_stack):
12009 Remove functions.
12010 (sparc32_gdbarch_init): Set return_value, don't set
12011 extract_return_value, store_return_value, use_struct_convention
12012 and return_value_on_stack.
12013
12014 * sparc-sol2-nat.c: Add missing ')'.
12015
12016 2004-01-03 J. Brobecker <brobecker@gnat.com>
12017
12018 * infrun.c (handle_step_into_function): New function.
12019 (handle_inferior_event): Extract out some code into the new
12020 function above.
12021
12022 2004-01-03 J. Brobecker <brobecker@gnat.com>
12023
12024 * infrun.c (handle_inferior_event): Move the declaration of
12025 real_stop_pc inside the if blocks where it is used.
12026
12027 2004-01-03 Mark Kettenis <kettenis@gnu.org>
12028
12029 * sparc64-tdep.c (sparc64_16_byte_align_p)
12030 (sparc64_store_floating_fields, sparc64_store_floating_fields):
12031 Use check_typedef to get subtypes of structures and unions.
12032 (sparc64_store_return_value): Fix calculation of the appropriate
12033 offset into VALBUF when storing a structure or union.
12034 (sparc64_return_value): New function.
12035 (sparc64_use_struct_convention): Remove function.
12036 (sparc64_init_abi): Set return_value, don't set
12037 extract_return_value, store_return_value and
12038 use_struct_convention.
12039
12040 2004-01-03 Eli Zaretskii <eliz@elta.co.il>
12041
12042 * config/djgpp/fnchange.lst: Add lines for COPYING.LIBGLOSS,
12043 bfd/doc/ChangeLog-9103, bfd/elf32-m68hc1x.c,
12044 gdb/config/alpha/xm-alphaosf.h,
12045 gdb/config/powerpc/tm-ppcle-eabi.h,
12046 gdb/config/rs6000/tm-rs6000-aix4.h, gdb/gdbtk/ChangeLog-2001,
12047 gdb/gdbtk/ChangeLog-2002, gdb/gdbtk/ChangeLog-2003,
12048 gdb/gdbtk/plugins/intel-pentium/intel-pentium.tcl.in,
12049 gdb/gdbtk/plugins/rhabout/rhabout.tcl.in, gdb/i386-linux-nat.c,
12050 gdb/ia64-aix-nat.c, gdb/ia64-aix-tdep.c, gdb/ia64-linux-nat.c,
12051 gdb/ia64-linux-nat.c, gdb/ppc-linux-tdep.c, gdb/ppc-linux-nat.c,
12052 gdb/sparc64nbsd-nat.c, gdb/sparc64nbsd-tdep.c,
12053 gdb/sparc64-linux-nat.c, gdb/sparc64-linux-tdep.c,
12054 gdb/sparc64-nat.c, gdb/sparc64-tdep.c, gdb/sparc64-sol2-tdep.c,
12055 gdb/sparc-sol2-nat.c, gdb/sparc-sol2-tdep.c,
12056 gdb/testsuite/gdb.gdbtk/, gdb/testsuite/gdb.mi/mi-var-child.exp,
12057 nclude/ChangeLog-9103, include/coff/ChangeLog-9103,
12058 include/elf/ChangeLog-9103, include/opcode/ChangeLog-9103,
12059 opcodes/ChangeLog-0001, opcodes/ChangeLog-0203,
12060 opcodes/openrisc-dis.c, opcodes/openrisc-desc.h,
12061 sim/frv/profile-fr550.c, sim/frv/profile-fr550.h,
12062 sim/sh64/sem-compact-switch.c, sim/sh64/sem-media-switch.c,
12063 sim/testsuite/sim/sh64/compact/ldsl-mach.cgs,
12064 sim/testsuite/sim/sh64/compact/ldsl-macl.cgs,
12065 sim/testsuite/sim/sh64/compact/stsl-mach.cgs, and
12066 sim/testsuite/sim/sh64/compact/stsl-macl.cgs.
12067 Remove lines for .cvsignore files.
12068
12069 2004-01-03 J. Brobecker <brobecker@gnat.com>
12070
12071 * infrun.c: Back out the previous change.
12072
12073 2004-01-03 Mark Kettenis <kettenis@gnu.org>
12074
12075 * NEWS: Mention revised SPARC target. Add sparc-*-lynxos* and
12076 sparc-*-sunos4* to the list of REMOVED configurations.
12077
12078 * configure.tgt: Add back sparc-*-vxworks*.
12079 * remote-vxsparc.c: Remove all includes except for "defs.h",
12080 "regcache.h", "vx-share/ptrace.h" and "vx-share/regPacket.h".
12081 Include "sparc-tdep.h".
12082 (SPARC_R_G1): New define.
12083 (vxsparc_gregset): New variable.
12084 (ext_format_sparc): Remove extern declaration.
12085 (vx_read_register): Rewrite to use sparc32_supply_gregset and
12086 sparc32_supply_fpregset.
12087 (vx_write_register): Rewrite to use sparc32_collect_gregset,
12088 sparc_collect_rwindow and sparc32_collect_fpregset.
12089 * config/sparc/tm-vxworks.h: New file, based on recently removed
12090 tm-vxsparc.h.
12091 * config/sparc/vxworks.mt: New file, based on recently removed
12092 vxworks.mt.
12093
12094 2004-01-03 J. Brobecker <brobecker@gnat.com>
12095
12096 * infrun.c (handle_step_into_function): New function.
12097 (handle_inferior_event): Extract out some code into the new
12098 function above.
12099
12100 2004-01-02 Mark Kettenis <kettenis@gnu.org>
12101
12102 * Makefile.in (ALLDEPFILES): Remove sparc-linux-nat.c and
12103 sparcl-tdep.c. Add sparc-linux-tdep.c, sparc-sol2-nat.c,
12104 sparc-sol2-tdep.c, sparc-sol2-nat.c, sparc-sol2-tdep.c,
12105 sparc64-linux-nat.c, sparc64-linux-tdep.c, sparc64-nat.c,
12106 sparc64-sol2-tdep.c, sparc64-tdep.c, sparc64fbsd-nat.c,
12107 sparc64fbsd-tdep.c, sparcnbsd-nat.c, sparcnbsd-tdep.c.
12108 (sparc_nat_h): New variable.
12109 (sparcbsd_nat_h, sparcnbsd_tdep_h): Remove variables.
12110 (tm-sun4os4.h): Remove dependency.
12111 (sparcbsd-nat.o, sparc-linux-nat.o): Remove dependencies.
12112 (sparc64fbsd-nat.o, sparc64fbsd-tdep.o, sparc64nbsd-nat.o,
12113 sparc64-tdep.o, sparc-nat.o, sparcnbsd-nat.o, sparcnbsd-tdep.o,
12114 sparc-tdep.o): Update dependencies.
12115 (sparc-linux-tdep.o, sparc-sol2-nat.o, sparc-sol2-tdep.o,
12116 sparc64-linux-nat.o, sparc64-linux-tdep.o, sparc64-nat.o,
12117 sparc64-sol2-tdep.o, sparc64-tdep.o, sparc64nbsd-tdep.o): New
12118 dependencies.
12119 * configure.host: Remove existing sparc-*-lynxos*,
12120 sparc-*-solaris*, sparc-*-sunos4*, sparc-*-sunos5*, sparc-*-*,
12121 ultrasparc-*-freebsd, sparcv9-*-freebsd, sparc64-*-linux*,
12122 sparcv9-*-* and sparc64-*-* triplets. Add new sparc64-*-linux*,
12123 sparc-*-solaris2*, sparcv9-*-solaris2* and sparc64-*-solaris2*
12124 triplets.
12125 * configure.tgt: Remove exitsing sparc-*-aout*, sparc-*-coff*,
12126 sparc-*-elf*, sparc*-lynxos*, sparc-*-solars2*, sparc-*-sunos4*,
12127 sparc-*-sunos5*, sparc-*-vxworks*, sparc64-*linux*, sparc64-*-*,
12128 sparcv9-*-* and commented out sparc64-*-solars2* triplets. Add
12129 new sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*,
12130 sparc64-*-linux, sparc-*-solaris2*, sparcv9-*-solaris*,
12131 sparc64-*-solaris2* and sparc64-*-* triplets.
12132 * sparc64-tdep.c: Update copyright year. Include "inferior.h",
12133 "symtab.h" and "objfiles.h".
12134 (BIAS): Remove define.
12135 (X_OP, X_RD, X_A, X_COND, X_OP2, X_IMM22, X_OP3, X_I, X_DISP22)
12136 (X_DISP19): Remove macros.
12137 (sparc_fetch_instruction): Remove function.
12138 (struct gdbarch_tdep): Remove definition.
12139 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use ARRAY_SIZE.
12140 (sparc_breakpoint_from_pc): Remove function.
12141 (struct sparc64_frame_cache): Remove definition.
12142 (sparc64_alloc_frame_cache, sparc64_analyze_prologue,
12143 sparc64_unwind_pc): Remove functions.
12144 (sparc64_skip_prologue): Use `struct sparc_frame_cache' instead of
12145 `struct sparc64_frame_cache. Call sparc_analyze_prologue instead
12146 of sparc64_analyze_prologue. Mark constant as ULL instead of UL.
12147 (sparc64_frame_cache): Change return type to `struct
12148 sparc_frame_cache *'. Simply call sparc_frame_cache.
12149 (sparc64_frame_this_id, sparc64_frame_prev_register,
12150 sparc64_frame_base_address): Use `struct sparc_frame_cache'
12151 instead of `struct sparc64_frame_cache.
12152 (sparc_unwind_dummy_id, sparc_extract_struct_value_address,
12153 sparc_analyze_control_transfer, sparc_software_single_step,
12154 sparc64_gdbarch_init, sparc_supply_rwindow, sparc_fill_rwindow,
12155 _initialize_sparc64_tdep): Remove functions.
12156 (TSTATE_CWP, TSTATE_ICC, TSTATE_XCC): New macros.
12157 (PSR_S, PSR_ICC, PSR_VERS, PSR_IMPL, PSR_V8PLUS, PSR_XCC): New
12158 macros.
12159 (sparc64_supply_gregset, sparc64_collect_gregset,
12160 sparc64_supply_fpregset, sparc64_collect_fpregset): New functions.
12161 (sparc64_init_abi): New function.
12162 * sparc64-tdep.h: Update copyright year. Fix typo in multiple
12163 inclusion guard. Include "sparc-tdep.h".
12164 (BIAS): Define.
12165 (r_tstate_offset, r_fprs_offset): New defines.
12166 (enum sparc_regnum): Remove defenition.
12167 (enum sparc64_regnum): Reformat.
12168 (sparc_supply_rwindow, sparc_fill_rwindow): Remove prototypes.
12169 (sparc64_init_abi, sparc64_supply_gregset,
12170 sparc64_collect_gregset, sparc64_supply_fpregset,
12171 sparc64_collect_fpregset): New prototypes.
12172 (sparc64_sol2_gregset, sparc64nbsd_gregset, sparc64fbsd_gregset):
12173 Add extern declarations.
12174 (sparc64_sol2_init_abi): New prototype.
12175 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
12176 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
12177 prototypes.
12178 * sparc64fbsd-nat.c: Include "sparc-nat.h", don't include
12179 "sparnbsd-nat.h".
12180 (sparc64fbsd_reg_supplies_p, sparc64fbsd_fpreg_supplies_p): Remove
12181 functions.
12182 (_initialize_sparc64fbsd_nat): Remove initialization of
12183 sparcbsd_supply_reg, sparcbsd_fill_reg, sparcbsd_supply_fpreg,
12184 sparcbsd_fill_fpreg, sparcbsd_reg_supplies_p,
12185 sparcbsd_fpreg_supplies_p. Initialize sparc_gregset.
12186 * sparc64fbsd-tdep.c: Update copyright year. Include "frame.h",
12187 "frame-unwind.h", "trad-frame.h" and "gdb_assert.h".
12188 (sparc64fbsd_r_global_offset, sparc64fbsd_r_out_offset)
12189 (sparc64fbsd_r_fprs_offset, sparc64fbsd_r_tnpc_offset)
12190 (sparc64fbsd_r_tpc_offset, sparc64fbsd_r_tstate_offset)
12191 (sparc64fbsd_r_y_offset): Remove variables.
12192 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
12193 Make static and const.
12194 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
12195 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
12196 functions.
12197 (sparc64fbsd_gregset): New variable.
12198 (fetch_core_registers): Replace calls to sparc64fbsd_supply_reg
12199 and sparc64fbsd_supply_fpreg with calls to sparc64_supply_gregset
12200 and sparc64_supply_fpregset.
12201 (sparc64fbsd_pc_in_sigtramp, sparc64fbsd_sigtramp_frame_cache)
12202 (sparc64fbsd_sigtramp_frame_this_id)
12203 (sparc64fbsd_sigtramp_frame_prev_register): New functions.
12204 (sparc64fbsd_sigtramp_frame_unwind): New variable.
12205 (sparc64fbsd_sigtramp_frame_sniffer): New function.
12206 (sparc64fbsd_init_abi): Set pc_in_sigtramp, append
12207 sparc64fbsd_sigtramp_frame_sniffer. Call sparc64_init_abi.
12208 * sparcnbsd-tdep.c: Update copyright year. Include
12209 "floatformat.h", "frame.h", "frame-unwind.h", "symtab.h",
12210 "trad-frame.h" and "gdb_assert.h", don't include "target.h",
12211 "value.h" and "sparcnbsd-tdep.h".
12212 (REG32_OFFSET_PSR, REG32_OFFSET_PC, REG32_OFFSET_NPC)
12213 (REG32_OFFSET_Y, REG32_OFFSET_GLOBAL, REG32_OFFSET_OUT)
12214 (REG64_OFFSET_TSTATE, REG64_OFFSET_PC, REG64_OFFSET_NPC)
12215 (REG64_OFFSET_Y, REG64_OFFSET_GLOBAL, REG64_OFFSET_OUT): Remove
12216 defines.
12217 (sparcnbsd_gregset): New variable.
12218 (sparcnbsd_supply_reg32, sparcnbsd_supply_reg64)
12219 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64)
12220 (sparcnbsd_supply_fpreg32, sparcnbsd_supply_fpreg64)
12221 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64): Remove functions.
12222 (sparc32nbsd_sigtramp_start, sparc32nbsd_sigtramp_end): New
12223 variables.
12224 (sparc32nbsd_pc_in_sigtramp, sparc32nbsd_sigcontext_frame_cache)
12225 (sparc32nbsd_sigcontext_frame_this_id)
12226 (sparc32nbsd_sigcontext_frame_prev_register): New functions.
12227 (sparc32nbsd_sigcontext_frame_unwind): New variable.
12228 (sparc32nbsd_sigtramp_frame_sniffer): New function.
12229 (sparcnbsd_get_longjmp_target_32,
12230 sparcnbsd_get_longjmp_target_64): Remove functions.
12231 (sparcnbsd_aout_in_solib_call_trampoline): Rewrite.
12232 (sparcnbsd_init_abi_common, sparcnbsd_init_aout,
12233 sparcnbsd_init_elf): Remove.
12234 (sparcnbsd_init_abi, sparcnbsd_aout_init_abi)
12235 (sparcnbsd_elf_init_abi): New functions.
12236 (_initialize_sparcnbsd_tdep): New prototype.
12237 (_initialize_sparnbsd_tdep): Update.
12238 * config/sparc/fbsd.mh (NATDEPFILES): Remove sparcbsd-nat.o and
12239 corelow.o. Add sparc64-nat.o and sparc-nat.o.
12240 * config/sparc/fbsd.mt (TDEPFILES): Add sparc-tdep.o and corelow.o.
12241 * config/sparc/linux.mh: Update comment.
12242 (XM_FILE, HOST_IPC): Remove variables.
12243 (NATDEPFILES): Add sparc-sol2-nat.o and core-regset.o. Remove
12244 sparc-linux-nat.o.
12245 * config/sparc/linux.mt: Update comment.
12246 (TDEPFILES): Add sparc-sol2-tdep.o and sparc-linux-tdep.o.
12247 * config/sparc/nbsd.mt: Reformat.
12248 * config/sparc/nbsd64.mh: Update comment.
12249 (NATDEPFILES): Add sparc-nat.o.
12250 * config/sparc/nbsd64.mt: Update comment.
12251 (TDEPFILES): Add sparc64-tdep.o and sparc64nbsd-tdep.o.
12252 (TM_FILE): Set to tm-nbsd.h.
12253 * config/sparc/nbsdelf.mh: Update comment.
12254 (NATDEPFILES): Add sparc-nat.o.
12255 (XM_FILE): Delete.
12256 * config/sparc/nbsdaout.mh: Update comment.
12257 (NATDEPFILES): Add sparc-nat.o
12258 (XM_FILE): Delete.
12259 * config/sparc/nm-linux.h: Update copyright year. Don't include
12260 "config/nm-svr4.h" and "solib.h". Add protection against multiple
12261 inclusion.
12262 (KERNEL_U_SIZE): Remove define.
12263 (kernel_u_size): Remove prototype.
12264 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define.
12265 * config/sparc/nm-nbsd.h: Update copyright. Don't include
12266 "regcache.h".
12267 (CHILD_PREPARE_TO_STORE): Remove define.
12268 * config/sparc/nm-nbsdaout.h: Tweak some comments.
12269 * sparc-nat.c, sparc-tdep.c, sparc-tdep.h, sparc64nbsd-nat.c,
12270 sparcnbsd-nat.c: Rewrite files.
12271 * config/sparc/tm-linux.h, config/sparc/tm-nbsd.h: Rewrite files.
12272 * sparc-linux-nat.c, sparcbsd-nat.c, sparcbsd-nat.h,
12273 sparcnbsd-tdep.h: Remove files.
12274 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4os4.h,
12275 config/sparc/nm-sun4sol2.h, config/sparc/sp64.mt,
12276 config/sparc/sp64linux.mt, config/sparc/sp64sol2.mt,
12277 config/sparc/sparc-em.mt, config/sparc/sparclynx.mh,
12278 config/sparc/sparclynx.mt, config/sparc/sun4os4.mh,
12279 config/sparc/sun4os4.mt, config/sparc/sun4sol2.mh,
12280 config/sparc/sun4sol2.mt, config/sparc/tm-sp64.h,
12281 config/sparc/tm-sp64linux.h, config/sparc/tm-sparc.h,
12282 config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
12283 config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
12284 config/sparc/tm-vxsparc.h, config/sparc/vxsparc.mt,
12285 config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h: Remove files.
12286 * sparc-linux-tdep.c, sparc-nat.h, sparc-sol2-nat.c,
12287 sparc-sol2-tdep.c, sparc64-linux-nat.c, sparc64-linux-t dep.c,
12288 sparc64-nat.c, sparc64-sol2-tdep.c, sparc64nbsd-tdep.c: New files.
12289 * config/sparc/linux64.mh, config/sparc/linux64.mt,
12290 config/sparc/nm-sol2.h, config/sparc/sol2-64.mt,
12291 config/sparc/sol2.mh, config/sparc/sol2.mt, config/sparc/sparc.mt,
12292 config/sparc/sparc64.mt, config/sparc/tm-sol2.h: New files.
12293
12294 2004-01-02 Andrew Cagney <cagney@redhat.com>
12295
12296 From 2003-12-18 Kazuhiro Inaoka:
12297 * configure.host: Add m32r-linux target.
12298
12299 2004-01-02 Michael Chastain <mec.gnu@mindspring.com>
12300
12301 * top.c (print_gdb_version): Update year to 2004.
12302
12303 2004-01-02 Mark Mitchell <mark@codesourcery.com>
12304
12305 * MAINTAINERS: Add myself to the write-after-approval category.
12306
12307 2004-01-02 Daniel Jacobowitz <drow@mvista.com>
12308
12309 From Bernardo Innocenti <bernie@develer.com>:
12310 * configure.tgt: Add uClinux target.
12311
12312 2004-01-02 Andrew Cagney <cagney@redhat.com>
12313
12314 * utils.c (do_my_cleanups): Make static, add forward declaration.
12315 * defs.h (do_my_cleanups): Delete declaration.
12316
12317 2004-01-02 Eli Zaretskii <eliz@elta.co.il>
12318
12319 * config/djgpp/fnchange.lst: Add lines for gdb/ChangeLog-2003 and
12320 bfd/ChangeLog-0203.
12321
12322 2004-01-02 Mark Kettenis <kettenis@gnu.org>
12323
12324 * configure.in: Check for <machine/reg.h>. Check for `struct reg'
12325 in <machine/reg.h>.
12326 * configure, config.in: Regenerate.
12327
12328 For older changes see ChangeLog-2003, mi/ChangeLog-1999-2003, and
12329 tui/ChangeLog-1998-2003.
12330 \f
12331 Local Variables:
12332 mode: change-log
12333 left-margin: 8
12334 fill-column: 74
12335 version-control: never
12336 End:
This page took 0.437182 seconds and 5 git commands to generate.