2004-09-28 Andrew Cagney <cagney@gnu.org>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
dba24537
AC
12004-09-28 Andrew Cagney <cagney@gnu.org>
2
e979516b
AC
3 Problem identified by Paul Hilfinger.
4 * Makefile.in (ada_lex_c): Define.
5 (ada-lex.o): Delete rule.
6
dba24537
AC
7 * linux-proc.c: Delete file.
8 * Makefile.in: Update.
9 * config/sparc/linux64.mh (NATDEPFILES):
10 * config/sparc/linux.mh (NATDEPFILES): Update.
11 * config/s390/s390.mh (NATDEPFILES): Update.
12 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Update.
13 * config/powerpc/linux.mh (NATDEPFILES): Update.
14 * config/pa/linux.mh (NATDEPFILES): Update.
15 * config/mips/linux.mh (NATDEPFILES): Update.
16 * config/m68k/linux.mh (NATDEPFILES): Update.
17 * config/ia64/linux.mh (NATDEPFILES): Update.
18 * config/i386/linux64.mh (NATDEPFILES): Update.
19 * config/i386/linux.mh (NATDEPFILES): Update.
20 * config/arm/linux.mh (NATDEPFILES): Update.
21 * config/alpha/alpha-linux.mh (NATDEPFILES): Update.
22 * linux-nat.c: Update copyright. Include <sys/param.h>,
23 <sys/procfs.h>, "elf-bfd.h", "gregset.h", <ctype.h>,
24 "gdbthread.h", "gdb_stat.h", <fcntl.h>.
25 (O_LARGEFILE): Possibly define.
26 (_initialize_linux_nat, linux_proc_pending_signals)
27 (add_line_to_sigset, linux_proc_xfer_memory)
28 (linux_nat_info_proc_cmd, linux_nat_make_corefile_notes)
29 (linux_nat_do_registers, linux_nat_corefile_thread_callback)
30 (struct linux_corefile_thread_data)
31 (linux_nat_do_thread_registers, linux_nat_find_memory_regions)
32 (child_pid_to_exec_file): Insert code previously in linux-proc.c.
33
d6b0e80f
AC
342004-09-16 Andrew Cagney <cagney@gnu.org>
35
36 * lin-lwp.c: Delete file.
37 * linux-nat.c: Include "gdb_assert.h", "gdb_string.h", <unistd.h>,
38 <sys/syscall.h>, "gdbthread.h", "gdbcmd.h", "regcache.h".
39 (status_to_str, init_lwp_list, add_lwp, delete_lwp)
40 (find_lwp_pid, iterate_over_lwps, lin_lwp_attach_lwp)
41 (linux_nat_attach, detach_callback, linux_nat_detach)
42 (resume_callback, resume_clear_callback, linux_nat_resume)
43 (kill_lwp, linux_nat_handle_extended, wait_lwp, stop_callback)
44 (stop_wait_callback, linux_nat_has_pending, flush_callback)
45 (status_callback, running_callback, count_events_callback)
46 (select_singlestep_lwp_callback, select_event_lwp_callback)
47 (cancel_breakpoints_callback, select_event_lwp, resumed_callback)
48 (child_wait, stop_and_resume_callback, linux_nat_wait)
49 (kill_callback, kill_wait_callback, linux_nat_kill)
50 (linux_nat_create_inferior, linux_nat_mourn_inferior)
51 (linux_nat_xfer_memory, linux_nat_thread_alive)
52 (linux_nat_pid_to_str, init_linux_nat_ops, sigchld_handler)
53 (_initialize_linux_nat): New functions.
54 * Makefile.in: Update all dependencies.
55 * config/sparc/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
56 * config/sparc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
57 * config/s390/s390.mh (NATDEPFILES): Remove lin-lwp.o.
58 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Remove lin-lwp.o.
59 * config/powerpc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
60 * config/pa/linux.mh (NATDEPFILES): Remove lin-lwp.o.
61 * config/mips/linux.mh (NATDEPFILES): Remove lin-lwp.o.
62 * config/m68k/linux.mh (NATDEPFILES): Remove lin-lwp.o.
63 * config/ia64/linux.mh (NATDEPFILES): Remove lin-lwp.o.
64 * config/i386/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
65 * config/i386/linux.mh (NATDEPFILES): Remove lin-lwp.o.
66 * config/arm/linux.mh (NATDEPFILES): Remove lin-lwp.o.
67 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove lin-lwp.o.
68
5a174d79
MK
692004-09-27 Mark Kettenis <kettenis@gnu.org>
70
2f604c28
MK
71 * config/i386/fbsd64.mh, config/i386/nbsd64.mh,
72 config/i386/obsd64.mh (NAT_FILE): Remove variable.
73
5a174d79
MK
74 * configure.in: Don't comment out NATDEPFILES in the generated
75 Makefile if NAT_FILE is unset.
76 * configure: Regenerate.
77
b2ed1746
AC
782004-09-27 Andrew Cagney <cagney@gnu.org>
79
44cbf7b5
AC
80 * infrun.c (check_for_old_step_resume_breakpoint): Delete.
81 (insert_step_resume_breakpoint): Delete.
82 (insert_step_resume_breakpoint_at_frame): New function.
83 (insert_step_resume_breakpoint_at_sal): New function.
84 (handle_inferior_event, step_into_function)
85 (insert_step_resume_breakpoint): Simplify by using same.
86
b2ed1746
AC
87 * gdb_indent.sh (types): Add caddr_t to list of predefined types.
88
3691b3be
MK
892004-09-26 Mark Kettenis <kettenis@gnu.org>
90
36f391e8
MK
91 * fbsd-proc.c: Remove file.
92 * Makefile.in (fbsd-proc.o): Remove dependency.
93
771e236c
MK
94 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Group target related
95 code together.
96
3691b3be
MK
97 * config/i386/nm-fbsd64.h: Remove file.
98 * config/i386/fbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
99
6a5c78a3
MK
1002004-09-26 Mark Kettenis <kettenis@gnu.org>
101
102 * amd64-nat.h: Update copyright year.
103 (amd64bsd_target): New prototype.
104 * amd64bsd-nat.c: Include "target.h" and "inf-ptrace.h".
105 (amd64bsd_target): New function.
106 (amd64bsd_fetch_inferior_registers): Rename from
107 fetch_inferior_registers. Make static.
108 (amd64bsd_store_inferior_registers): Rename from
109 store_inferior_registers. Make static.
110 * amd64fbsd-nat.c: Include "target.h" and "fbsd-nat.h".
111 (_initialize_amd64fbsd_nat): Construct and add target vector.
112 * amd64nbsd-nat.o: Include "target.h".
113 (_initialize_amd64nbsd_nat): Construct and add target vector.
114 * amd64obsd-nat.c: Include "target.h".
115 (_initialize_amd64obsd_nat): Construct and add target vector.
116 * config/i386/nm-fbsd64.h (CHILD_PID_TO_EXEC_FILE): Remove define.
117 * config/i386/fbsd64.mh (NATDEPFILES): Remove infptrace.o,
118 inftarg.o and fbsd-proc.o. Add inf-child.o, inf-ptrace.o and
119 fbsd-nat.o.
120 * config/i386/nbsd64.mh, config/i386/obsd64.mh (NATDEPFILES):
121 Remove infptrace.o and inftarg.o. Add inf-child.o and
122 inf-ptrace.o.
123 * Makefile.in (amd64bsd-nat.o, amd64fbsd-nat.o, amd64nbsd-nat.o)
124 (amd64obsd-nat.o): Update dependencies.
125
27acbe61
MK
1262004-09-25 Mark Kettenis <kettenis@gnu.org>
127
509a5e7d
MK
128 * config/i386/fbsd.mh (NATDEPFILES): Remove infptrace.o.
129 * config/i386/nbsdaout.mh (NATDEPFILES): Remove infptrace.o.
130 * config/i386/nbsdelf.mh (NATDEPFILES): Remove infptrace.o.
131 * config/i386/obsd.mh (NATDEPFILES): Remove infptrace.o.
132 * config/i386/obsdaout.mh (NATDEPFILES): Remove infptrace.o.
133
6e1e94ea
MK
134 * inf-ptrace.c (inf_ptrace_attach): Remove redundant parenthesis.
135 Inline attach call.
136 (inf_ptrace_detach): Inline detach call.
137
8b9cf735
MK
138 * configure.in: Check for waddstr instead of mvwaddstr when
139 searching for curses library. Check for wborder.
140 * configure, config.in: Regenerate.
141 * tui/tui-wingeneral.c (box_win): Use box if wborder isn't
142 available.
143
27acbe61
MK
144 * inf-ptrace.c (inf_ptrace_xfer_memory): Fix gdb_indent.sh wart.
145
b96ec7ac
AC
1462004-09-24 Robert Picco <Robert.Picco@hp.com>
147
148 Committed by Andrew Cagney.
149 * remote.c (set_remote_protocol_p_packet_cmd, remote_protocol_p)
150 (show_remote_protocol_p_packet_cmd): New. Implement 'p' packet.
151 configuration.
152 (fetch_register_using_p): Implement 'p' packet. Based on code by
153 Fernando Nasser.
154 (remote_fetch_registers): Call fetch_register_using_p.
155 (init_all_packet_configs, show_remote_cmd)
156 (_initialize_remote): Add p-packet.
157
62ece330
MK
1582004-09-24 Mark Kettenis <kettenis@gnu.org>
159
160 * inf-ptrace.c (inf_ptrace_kill_inferior): Call ptrace directly
161 instead of call_ptrace. Call wait directly instead of
162 ptrace_wait.
163 (inf_ptrace_me): Call ptrace directly instead of call_ptrace.
164 (inf_ptrace_wait): Inline ptrace_wait call.
165
00937274
PH
1662004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
167
168 * Makefile.in (.y.c): Revert previous change. ../ylwrap was
169 rolled back instead.
170
3f2c7a45
PH
1712004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
172
173 * Makefile.in (.y.c): Modify $(YLWRAP) invocation to use
174 the new argument order.
175
b6fcb393
CV
1762004-09-23 Corinna Vinschen <vinschen@redhat.com>
177
178 * MAINTAINERS: Remove "broken" from XStormy16 entry.
179 * xstormy16-tdep.c: Convert XStormy16 target to latest GDB methods.
180 (struct gdbarch_tdep): Remove.
181 (struct xstormy16_frame_cache): New frame cache structure.
182 (xstormy16_register_byte, xstormy16_register_raw_size)
183 (xstormy16_reg_virtual_type, xstormy16_register_type)
184 (xstormy16_push_arguments, xstormy16_push_return_address)
185 (xstormy16_pop_frame, xstormy16_store_struct_return)
186 (xstormy16_store_return_value, xstormy16_extract_struct_value_address)
187 (xstormy16_frame_saved_register, xstormy16_get_saved_register)
188 (xstormy16_scan_prologue, xstormy16_frame_init_saved_regs)
189 (xstormy16_frame_saved_pc, xstormy16_init_extra_frame_info)
190 (xstormy16_frame_chain, xstormy16_frame_chain_valid,
191 (xstormy16_saved_pc_after_call, xstormy16_save_dummy_frame_to): Remove.
192 (xstormy16_use_struct_convention): Drop gcc_p parameter.
193 (xstormy16_extract_return_value, xstormy16_store_return_value):
194 Regcachify. Drop useless struct convention handling.
195 (xstormy16_register_type, xstormy16_return_value)
196 (xstormy16_push_dummy_call, xstormy16_analyze_prologue)
197 (xstormy16_alloc_frame_cache, xstormy16_frame_cache)
198 (xstormy16_frame_prev_register, xstormy16_frame_this_id)
199 (xstormy16_frame_base_address, xstormy16_frame_sniffer)
200 (xstormy16_unwind_sp, xstormy16_unwind_pc)
201 (xstormy16_unwind_dummy_id) : New functions.
202 (xstormy16_skip_prologue): Call xstormy16_analyze_prologue instead
203 of xstormy16_scan_prologue.
204 (xstormy16_frame_unwind): New frame_unwind structure.
205 (xstormy16_frame_base): New frame_base structure.
206 (xstormy16_gdbarch_init): Accomodate all of the above changes.
207 Reshuffle for better readability. Also add dwarf2_frame_sniffer.
208
1285b746
MK
2092004-09-22 Mark Kettenis <kettenis@gnu.org>
210
211 * language.c (language_gdbarch_post_init): Fix off-by one error.
212
1c379e20
DJ
2132004-09-21 Daniel Jacobowitz <dan@debian.org>
214
215 * dwarf2read.c (struct dwarf2_per_cu_data): New field type_hash.
216 (struct dwarf2_offset_and_type): New.
217 (set_die_type, reset_die_and_siblings_types, get_die_type)
218 (offset_and_type_hash, offset_and_type_eq): New functions.
219 (read_structure_type, read_enumeration_type, read_array_type)
220 (read_namespace, read_tag_pointer_type, read_tag_ptr_to_member_type)
221 (read_tag_reference_type, read_tag_const_type)
222 (read_tag_volatile_type, read_tag_string_type, read_subroutine_type)
223 (read_typedef, read_base_type, read_subrange_type): Use
224 set_die_type.
225
ae038cb0
DJ
2262004-09-20 Daniel Jacobowitz <dan@debian.org>
227
228 * Makefile.in (dwarf2read.o): Update dependencies.
229 * dwarf2read.c: Include "command.h" and "gdbcmd.h".
230 (struct dwarf2_per_objfile): Add all_comp_units, n_comp_units,
231 and read_in_chain.
232 (struct dwarf2_cu): Add read_in_chain, per_cu, last_used,
233 mark, and has_form_ref_addr.
234 (struct dwarf2_per_cu_data): New.
235 (dwarf2_max_cache_age): New.
236 (dwarf2_build_psymtabs_hard): Free cached compilation units
237 after loading. Create and manage the list of compilation units.
238 Remove unnecessary NULL initialization. Fix indentation.
239 (psymtab_to_symtab_1): Initialize all of CU.
240 (dwarf2_read_abbrevs): Set has_form_ref_addr.
241 (find_partial_die): Use dwarf2_find_containing_comp_unit
242 and load_comp_unit.
243 (free_stack_comp_unit): Update comments. Clear the per-cu
244 pointer. Handle aging.
245 (dwarf2_find_containing_comp_unit, free_cached_comp_units)
246 (age_cached_comp_units, free_one_cached_comp_unit)
247 (dwarf2_mark, dwarf2_clear_marks, create_all_comp_units)
248 (load_comp_unit, dwarf2_find_comp_unit, free_one_comp_unit)
249 (set_dwarf2_cmdlist, show_dwarf2_cmdlist, set_dwarf2_cmd)
250 (show_dwarf2_cmd): New.
251 (_initialize_dwarf2_read): Provide "maint set dwarf2 max-cache-age"
252 and "maint show dwarf2 max-cache-age".
253 * gdbcmd.h (maintenance_set_cmdlist, maintenance_show_cmdlist): New
254 externs.
255 * maint.c (maintenance_set_cmdlist, maintenance_show_cmdlist): Make
256 global.
257
987504bb
JJ
2582004-09-20 Jeff Johnston <jjohnstn@redhat.com>
259
260 * dwarf2read.c (typename_concat): Change prototype to accept obstack
261 and dwarf2_cu struct pointer as arguments. Change function to use
262 obstack if provided and use dwarf2_cu to determine language-specific
263 separator.
264 (partial_die_parent_scope): Change comment to include java. Use
265 new version of typename_concat instead of obconcat.
266 (partial_die_full_name): Use typename_concat.
267 (read_namespace): Ditto.
268 (read_enumeration_type): Use typename_concat instead of obconcat.
269 (new_symbol): Ditto.
270 (add_partial_symbol): Enhance tests for C++ to also test for Java.
271 (guess_structure_name): Ditto.
272 (read_subroutine_type): Ditto.
273 (read_structure_type): Ditto.
274 (is_vtable_name): Add Java support.
275 (determine_class_name): Switch to new typename_concat call.
276 (determine_prefix): Switch to new typename_concat call.
277 * jv-exp.y (FuncStart): New pattern.
278 (MethodInvocation): Add support for simple function calls. Change
279 warning message for other forms of inferior call currently not
280 supported.
281 * valarith.c (value_subscript): Treat an array with upper-bound
282 of -1 as unknown size.
283
d9c8471e
DJ
2842004-09-20 Daniel Jacobowitz <dan@debian.org>
285
286 * symtab.c (lookup_partial_symtab): Use psymtab_to_fullname.
287 (lookup_partial_symtab): Use symtab_to_fullname.
288
d73f140a
JB
2892004-09-19 Jim Blandy <jimb@redhat.com>
290
291 * minsyms.c (lookup_minimal_symbol): Doc fix.
292
adbef1f0
AC
2932004-09-20 Andrew Cagney <cagney@gnu.org>
294
295 * config/nm-lynx.h (DEPRECATED_CHILD_RESUME): Deprecate
296 CHILD_RESUME.
297 * config/i386/nm-linux.h (DEPRECATED_CHILD_RESUME): Ditto.
298 * config/nm-linux.h (DEPRECATED_KILL_INFERIOR): Deprecate
299 KILL_INFERIOR.
300 * infptrace.c: Update.
301
d092d1a2
DJ
3022004-09-19 Daniel Jacobowitz <dan@debian.org>
303
304 * symtab.c (output_source_filename): Mark first argument as const.
305 (sources_info): Use symtab_to_fullname and psymtab_to_fullname
306 for "info sources" output.
307
86d9e1d7
MK
3082004-09-20 Mark Kettenis <kettenis@gnu.org>
309
310 * config/i386/nm-fbsd.h, config/i386/nm-obsd.h: Don't include
311 <machine/vmparam.h>.
312 (KERNEL_U_ADDR, REGISTER_U_ADDR): Remove defines.
313 (register_u_addr): Remove prototype.
314
9a6c8ef4
MK
3152004-09-19 Mark Kettenis <kettenis@gnu.org>
316
9692934b
MK
317 * i386bsd-nat.c: Include "i386bsd-nat.h" and "inf-ptrace.h".
318 (i386bsd_fetch_inferior_registers): Rename from
319 fetch_inferior_registers. Make static.
320 (i386bsd_store_inferior_registers): Rename from
321 store_inferior_registers. Make static.
322 (i386bsd_target): New function.
323 * i386bsd-nat.h: New file.
324 * i386fbsd-nat.c: Include "target.h", "fbsd-nat.h" and
325 "i386bsd-nat.h".
326 (i386fbsd_resume): Rename from child_resume. Make static.
327 (_initialize_i386fbsd_nat): Construct and add target vector.
328 * i386nbsd-nat.c: Include "target.h" and "i386bsd-nat.h".
329 (_initialize_i386nbsd_nat): Construct and add target vector.
330 * config/i386/nm-fbsd.h: (CHILD_RESUME, CHILD_PID_TO_EXEC_FILE):
331 Remove defines.
332 * config/i386/fbsd.mh (NATDEPFILES): Add inf-child.o, inf-ptrace.o
333 and fbsd-nat.o. Remove inftarg.o and fbsd-proc.o.
334 * config/i386/nbsdaout.mh (NATDEPFILES): Add inf-child.o,
335 inf-ptrace.o, i386bsd-nat.o and bsd-kvm.o. Remove inftarg.o.
336 (LOADLIBES): New variable.
337 * config/i386/nbsdelf.mh (NATDEPFILES): Add inf-child.o and
338 inf-ptrace.o. Remove inftarg.o.
339 * config/i386/obsd.mh (NATDEPFILES): Add inf-child.o and
340 inf-ptrace.o. Remove inftarg.o.
341 * config/i386/obsdaout.mh (NATDEPFILES): Add inf-child.o,
342 inf-ptrace.o, i386nbsd-nat.o and bsd-kvm.o. Remove inftarg.o.
343 (LOADLIBES): New variable.
344 * Makefile.in (i386bsd_nat_h): New variable.
345 (i386bsd-nat.o, i386fbsd-nat.o, i386nbsd-nat.o): Update
346 dependencies.
347
3510d1f2
MK
348 * sparc64nbsd-tdep.c: Include "objfiles.h".
349 (sparc64nbsd_init_abi): Set in_solib_call_trampoline and
350 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
351 svr4_lp64_fetch_link_map_offsets.
352 * sparc64obsd-tdep.c: Include "objfiles.h". Don't include
353 "nbsd-tdep.h".
354 (sparc64obsd_init_abi): Set in_solib_call_trampoline and
355 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
356 svr4_lp64_fetch_link_map_offsets.
357 * Makefile.in (sparc64nbsd-tdep.o, sparc64obsd-tdep.o): Update
358 dependencies.
359
578c1c03
MK
360 * fbsd-nat.c: New files with cleaned up contents of fbsd-proc.c.
361 * fbsd-nat.h: New file.
362 * Makefile.in (ALLDEPFILES): Add fbsd-nat.c.
363 (fbsd_nat_h): New variable.
364 (fbsd-nat.o): New dependency.
365
7a7b73b7
MK
366 * config/sparc/nbsd64.mt, config/sparc/obsd.mt,
367 config/sparc/obsd64.mt (DEPRECATED_TM_FILE): Set to solib.h.
368
9a6c8ef4
MK
369 * inf-child.c (inf_child_post_wait): Remove stray whitespace in
370 comment.
371
72d5681a
PH
3722004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
373
374 * ada-exp.y (type_int): New function to add layer of abstraction
375 around references to expression types.
376 (type_long): Ditto.
377 (type_long_long): Ditto.
378 (type_float): Ditto.
379 (type_double): Ditto.
380 (type_long_double): Ditto.
381 (type_char): Ditto.
382 (type_system_address): Ditto.
383 (simple_exp): Use type_* functions in place of builtin_*
384 variables.
385 (exp): Ditto.
386 (write_var_from_name): Ditto.
387 (write_object_renaming): Ditto.
388 * ada-lang.c (ada_create_fundamental_type): Remove redundant
389 declaration.
390 (build_ada_types): Remove, replacing with...
391 (ada_language_arch_info): New function to initialize primitive
392 type vector in language_arch_info.
393 (ada_array_length): Remove use of builtin_type_ada_int.
394 (value_pos_atr): Ditto.
395 (ada_evaluate_subexp): Ditto.
396 (builtin_type_ada_int, builtin_type_ada_short, builtin_type_ada_long,
397 builtin_type_ada_long_long, builtin_type_ada_char,
398 builtin_type_ada_float, builtin_type_ada_double,
399 builtin_type_ada_long_double, builtin_type_ada_natural,
400 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
401 (ada_builtin_types): Remove.
402 (ada_language_defn): Remove entries for la_builtin_type_vector and
403 string_char_type and use ada_language_arch_info.
404 (_initialize_ada_language): Do type-vector initialization along
405 the lines of c-lang.c.
406 (ada_create_fundamental_type): Break up line.
407 (ada_dump_symtab): Remove unused function.
408 (enum ada_primitive_types): Define.
409 * ada-lang.h (builtin_type_ada_int, builtin_type_ada_short,
410 builtin_type_ada_long,builtin_type_ada_long_long,builtin_type_ada_char,
411 builtin_type_ada_float, builtin_type_ada_double,
412 builtin_type_ada_long_double, builtin_type_ada_natural,
413 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
414 * ada-lex.l: Use type_* functions in place of builtin_* variables.
415 (processInt): Ditto.
416 (processReal): Ditto.
417 (name_lookup): Ditto.
418 * ada-typeprint.c (print_range): Use builtin_type_int, not
419 builtin_type_ada_int.
420
4f0be353
MK
4212004-09-18 Mark Kettenis <kettenis@gnu.org>
422
30b0e2d8
MK
423 * i386-tdep.c (i386_register_name): Rename regno to regnum.
424
4f0be353
MK
425 * config/pa/hpux1020.mh (MH_CFLAGS): Remove -D__HP_CURSES.
426 * config/pa/hpux11.mh (MH_CFLAGS): Likewise.
427 * config/pa/hpux11w.mh (MH_CFLAGS): Likewise.
428 * configure.in: Improve checks for curses library by checking for
429 mvwaddstr instead of initscr. Drop HP curses in favour of
430 standard curses on HP-UX.
431 * configure: Regenerated.
432
72d5681a 4332004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
6c038f32
PH
434
435 * ada-lang.c: (ada_main_name, ada_value_slice_ptr, ada_value_slice,
436 ada_breakpoint_rewrite, ada_template_to_fixed_record_type_1):
437 Minor formatting changes.
438 (empty_array): Slight rewrite for formatting.
439 (emit_char,parse,ada_language_defn,build_ada_types,
440 ada_is_exception_sym, _initialize_ada_language): Move
441 definitions around.
442 (ada_dump_symtab): Remove unused definition.
443 (ada_maybe_exception_partial_symbol): Remove unused definition.
444
1c8c7407
AC
4452004-09-16 Andrew Cagney <cagney@gnu.org>
446
7681f339
AC
447 * inf-child.c: Include "gdb_string.h".
448 (inf_child_core_file_to_sym_file): Delete.
449 (inf_child_target): Set to_fetch_registers and to_store_registers.
450 * inf-ptrace.c: Include "gdb_string.h".
451 * Makefile.in: Update all dependencies.
452
1c8c7407
AC
453 * Makefile.in (gnu-v3-abi.o): Add explict rule to avoid -Werror
454 problem.
455
65596487
JB
4562004-09-14 Joel Brobecker <brobecker@gnat.com>
457
458 * mips-tdep.c (mips_insn32_frame_cache): Pass frame cache in
459 call to heuristic_proc_desc. Remove code that became redundant
460 as a consequence.
461 (read_next_frame_reg): Remove special case for SP_REGNUM.
462 (set_reg_offset): Fix small typo.
463 (reset_saved_regs): New procedure.
464 (mips32_heuristic_proc_desc): No longer compute a fake
465 procedure descriptor. Compute the full frame cache instead.
466 Some minor comment reformatting.
467
95575b2e
AC
4682004-09-14 Andrew Cagney <cagney@gnu.org>
469
f200c492
AC
470 * MAINTAINERS: Add Michael Chastain as the backup gdb.threads
471 maintainer.
472
95575b2e
AC
473 * thread-db.c (thread_db_new_objfile): Assume that there is a
474 child process.
475
69657671
JB
4762004-09-13 Jim Blandy <jimb@redhat.com>
477
478 * valops.c (value_assign): Move 'buffer' to the enclosing block,
479 so that its storage isn't referenced after its lifetime ends.
480
6c4182dd
JB
481 * valops.c (value_assign): 'use_buffer' is initialized to zero,
482 and never assigned to. Delete it, and the 'if (use_buffer)'
483 clauses. Delete 'raw_buffer', since it is now unused.
484
ee31a58d
AC
4852004-09-13 Andrew Cagney <cagney@gnu.org>
486
2c0fc042
AC
487 * configure.in (frags): Replace TM_FILE with DEPRECATED_TM_FILE.
488 * configure: Re-generate.
489 * nlm/Makefile.in (TAGS): Update.
490 * Makefile.in (TAGS): Update.
491 * config/vax/nbsd.mt (TM_FILE): Update.
492 * config/sparc/vxworks.mt (TM_FILE): Update.
493 * config/sparc/sol2.mt (TM_FILE): Update.
494 * config/sparc/sol2-64.mt (TM_FILE): Update.
495 * config/sparc/obsd64.mt (TM_FILE): Update.
496 * config/sparc/obsd.mt (TM_FILE): Update.
497 * config/sparc/nbsd64.mt (TM_FILE): Update.
498 * config/sparc/nbsd.mt (TM_FILE): Update.
499 * config/sparc/linux64.mt (TM_FILE): Update.
500 * config/sparc/linux.mt (TM_FILE): Update.
501 * config/sparc/fbsd.mt (TM_FILE): Update.
502 * config/sh/wince.mt (TM_FILE): Update.
503 * config/sh/nbsd.mt (TM_FILE): Update.
504 * config/sh/linux.mt (TM_FILE): Update.
505 * config/sh/embed.mt (TM_FILE): Update.
506 * config/s390/s390.mt (TM_FILE): Update.
507 * config/rs6000/rs6000lynx.mt (TM_FILE): Update.
508 * config/rs6000/rs6000.mt (TM_FILE): Update.
509 * config/rs6000/aix4.mt (TM_FILE): Update.
510 * config/powerpc/vxworks.mt (TM_FILE): Update.
511 * config/powerpc/ppc-sim.mt (TM_FILE): Update.
512 * config/powerpc/ppc-eabi.mt (TM_FILE): Update.
513 * config/powerpc/obsd.mt (TM_FILE): Update.
514 * config/powerpc/nbsd.mt (TM_FILE): Update.
515 * config/powerpc/linux.mt (TM_FILE): Update.
516 * config/powerpc/aix.mt (TM_FILE): Update.
517 * config/pa/obsd.mt (TM_FILE): Update.
518 * config/pa/linux.mt (TM_FILE): Update.
519 * config/pa/hppahpux.mt (TM_FILE): Update.
520 * config/pa/hppa64.mt (TM_FILE): Update.
521 * config/pa/hppa.mt (TM_FILE): Update.
522 * config/ns32k/nbsdaout.mt (TM_FILE): Update.
523 * config/mips/wince.mt (TM_FILE): Update.
524 * config/mips/vxmips.mt (TM_FILE): Update.
525 * config/mips/nbsd.mt (TM_FILE): Update.
526 * config/mips/linux.mt (TM_FILE): Update.
527 * config/mips/irix6.mt (TM_FILE): Update.
528 * config/mips/irix5.mt (TM_FILE): Update.
529 * config/mips/embed.mt (TM_FILE): Update.
530 * config/m68k/vxworks68.mt (TM_FILE): Update.
531 * config/m68k/st2000.mt (TM_FILE): Update.
532 * config/m68k/os68k.mt (TM_FILE): Update.
533 * config/m68k/obsd.mt (TM_FILE): Update.
534 * config/m68k/nbsd.mt (TM_FILE): Update.
535 * config/m68k/monitor.mt (TM_FILE): Update.
536 * config/m68k/linux.mt (TM_FILE): Update.
537 * config/m68k/cisco.mt (TM_FILE): Update.
538 * config/ia64/linux.mt (TM_FILE): Update.
539 * config/ia64/aix.mt (TM_FILE): Update.
540 * config/ia64/ia64.mt (TM_FILE): Update.
541 * config/i386/vxworks.mt (TM_FILE): Update.
542 * config/i386/obsd64.mt (TM_FILE): Update.
543 * config/i386/obsd.mt (TM_FILE): Update.
544 * config/i386/nto.mt (TM_FILE): Update.
545 * config/i386/nbsd64.mt (TM_FILE): Update.
546 * config/i386/nbsd.mt (TM_FILE): Update.
547 * config/i386/linux64.mt (TM_FILE): Update.
548 * config/i386/linux.mt (TM_FILE): Update.
549 * config/i386/i386sol2.mt (TM_FILE): Update.
550 * config/i386/i386lynx.mt (TM_FILE): Update.
551 * config/i386/fbsd64.mt (TM_FILE): Update.
552 * config/i386/fbsd.mt (TM_FILE): Update.
553 * config/i386/cygwin.mt (TM_FILE): Update.
554 * config/h8300/h8300.mt (TM_FILE): Update.
555 * config/frv/frv.mt (TM_FILE): Update.
556 * config/cris/cris.mt (TM_FILE): Update.
557 * config/arm/wince.mt (TM_FILE): Update.
558 * config/arm/nbsd.mt (TM_FILE): Update.
559 * config/arm/linux.mt (TM_FILE): Update.
560 * config/arm/embed.mt (TM_FILE): Update.
561 * config/alpha/nbsd.mt (TM_FILE): Update.
562 * config/alpha/fbsd.mt (TM_FILE): Update.
563 * config/alpha/alpha.mt (TM_FILE): Update.
564 * config/alpha/alpha-osf1.mt (TM_FILE): Update.
565 * config/alpha/alpha-linux.mt (TM_FILE): Update.
566
362646f5
AC
567 Eliminate event_loop_p, always has the value 1.
568 * defs.h (event_loop_p): Delete macro.
569 * breakpoint.c (until_break_command): Simplify.
570 * utils.c (prompt_for_continue): Simplify.
571 * tracepoint.c (read_actions): Simplify.
572 * top.c (throw_exception, execute_command, gdb_readline_wrapper)
573 (gdb_rl_operate_and_get_next, command_line_input, get_prompt)
574 (set_prompt, init_main): Simplify.
575 (init_signals, disconnect): Delete, unused.
576 * remote.c (remote_async_resume)
577 (extended_remote_async_create_inferior): Simplify.
578 * mi/mi-interp.c (mi_input): Delete, unused.
579 (mi_interpreter_resume, mi_command_loop): Simplify.
580 * interps.c (current_interp_command_loop): Simplify.
581 * infrun.c (proceed): Simplify.
582 * infcmd.c (run_command, continue_command, step_1, jump_command)
583 (until_command, advance_command, finish_command)
584 (interrupt_target_command): Simplify.
585 * event-top.c (gdb_setup_readline, gdb_disable_readline): Simplify.
586
ee31a58d
AC
587 * config/i386/nm-i386.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
588 * config/s390/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
589 * config/pa/nm-hppah.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
590 * config/ia64/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
591 * config/frv/tm-frv.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
592 * mips-tdep.c (mips_dump_tdep): Do not print same.
593
b7ffc4a8
AC
5942004-09-12 Andrew Cagney <cagney@gnu.org>
595
2bfb72ee
AC
596 * valprint.c (print_longest): Use fputs_filtered. Make "val"
597 const.
598 * Makefile.in (valprint.o): Delete explict rule.
599
4f17c3c1
AC
600 * config/m68k/nbsdelf.mh: Add missing trailing newline. Problem
601 reported by Dave Anderson.
602
f810308b
AC
603 * target.c (target_info): Delete #ifdef call to FILES_INFO_HOOK.
604
b7ffc4a8
AC
605 * inferior.h (STORE_STRUCT_RETURN): Delete macro.
606
28b41c52
AC
6072004-09-12 Salvador E. Tropea <set@users.sf.net>
608 Andrew Cagney <cagney@gnu.org>
609
610 * mi/mi-main.c (mi_cmd_data_list_changed_registers)
611 (mi_cmd_data_list_register_values)
612 (mi_cmd_data_write_register_values): Include the PSEUDO_REGS in
613 the register number computation.
614
5bf970f9
AC
6152004-09-12 Andrew Cagney <cagney@gnu.org>
616
617 * ppcnbsd-nat.c: Include "inf-ptrace.h".
618 (ppcnbsd_fetch_inferior_registers): Rename fetch_inferior_registers.
619 (ppcnbsd_store_inferior_registers): Rename store_inferior_registers.
620 (_initialize_ppcnbsd_nat): Create and add a NetBSD/PPC ptrace
621 target.
622 * config/powerpc/nbsd.mh (NATDEPFILES): Replace and inftarg.o with
623 inf-ptrace.o and inf-child.o.
624 * inf-ptrace.h, inf-ptrace.c, inf-child.h, inf-child.c: New files.
625 * Makefile.in: Update dependencies.
626
0759e0bf
AC
6272004-09-11 Andrew Cagney <cagney@gnu.org>
628
629 * language.c (hex_string, hex_string_custom): Move from here ...
630 * utils.c (hex_string, hex_string_custom): ... to here, rewrite.
631 (CELLSIZE): Increase to 50.
632 * language.h (hex_string, hex_string_custom): Move from here ...
633 * defs.h: ... to here.
634 * Makefile.in: Update all dependencies.
635
bb599908
PH
6362004-09-11 Paul N. Hilfinger <hilfinger@gnat.com>
637
638 * language.c (local_hex_format_custom): Remove.
639 (local_hex_string): Rename to hex_string, use C format, and move to
640 utils.c
641 (local_hex_string_custom): Rename to hex_string_custom and change
642 interface. Now uses C format. Move to utils.c
643 (local_octal_format_custom): Remove.
644 (local_decimal_format_custom): Remove.
645 (unknown_language_defn): Remove language-specific number
646 formatting entries.
647 (auto_language_defn): Ditto.
648 (local_language_defn): Ditto.
649 * language.h (struct language_format_info): Delete declaration.
650 (struct language_defn): Remove language_format_info fields
651 la_binary_format, la_octal_format, la_decimal_format, la_hex_format.
652 (local_binary_format): Remove macro.
653 (local_binary_format_prefix): Remove macro.
654 (local_binary_format_specifier): Remove macro.
655 (local_binary_format_suffix): Remove macro.
656 (local_octal_format): Remove macro.
657 (local_octal_format_prefix): Remove macro.
658 (local_octal_format_specifier): Remove macro.
659 (local_octal_format_suffix): Remove macro.
660 (local_decimal_format): Remove macro.
661 (local_decimal_format_prefix): Remove macro.
662 (local_decimal_format_specifier): Remove macro.
663 (local_decimal_format_suffix): Remove macro.
664 (local_hex_format): Remove macro.
665 (local_hex_format_prefix): Remove macro.
666 (local_hex_format_specifier): Remove macro.
667 (local_hex_format_suffix): Remove macro.
668 (local_decimal_format_custom): Remove.
669 (local_octal_format_custom): Remove.
670 (local_hex_format_custom): Remove.
671 (local_hex_string): Rename to hex_string and move to defs.h.
672 (local_hex_string_custom): Rename to hex_string_custom, change
673 interface, and move to defs.h.
674 * utils.c: (int_string): New function.
675 (hex_string): New function (from language.c).
676 (hex_string_custom): New function (from language.c).
677 (octal2str): New function.
678 (decimal2str): Add width parameter.
679 (paddr_u): Use new decimal2str interface.
680 (paddr_d): Ditto.
681 * defs.h (hex_string): Declare.
682 (hex_string_custom): Declare.
683 (int_string): Declare.
684 * printcmd.c (print_scalar_formatted): Remove localized binary
685 formatting.
686 * valprint.c (print_longest): Use int_string.
687 (print_floating): Use C hex format.
688 (print_hex_chars): Ditto.
689 (print_binary_chars): Remove language-specific formatting.
690 (print_octal_chars): Use C octal format.
691 (print_decimal_chars): Delocalize format.
692 (print_decimal): Remove.
693 * ada-lang.c (ada_language_defn): Remove language-specific number
694 formatting entries.
695 * p-lang.c (pascal_language_defn): Ditto.
696 * c-lang.c (c_language_defn): Ditto.
697 (cplus_language_defn): Ditto.
698 (asm_language_defn): Ditto.
699 (minimal_language_defn): Ditto.
700 * f-lang.c (f_language_defn): Ditto.
701 * jv-lang.c (java_language_defn): Ditto.
702 * m2-lang.c (m2_language_defn): Ditto.
703 * scm-lang.c (scm_language_defn): Ditto.
704 * objc-lang.c (objc_language_defn): Ditto.
705 * memattr.c (mem_info_command): Use renamed hex_string_custom with
706 new interface.
707 * pa64solib.c (pa64_sharedlibrary_info_command): Ditto.
708 * ui-out.c (ui_out_field_core_addr): Ditto.
709 * breakpoint.c (breakpoint_adjustment_warning): Ditto.
710 * exec.c (print_section_info): Ditto.
711 * i387-tdep.c (print_i387_status_word): Ditto.
712 (print_i387_control_word): Ditto.
713 (i387_print_float_info): Ditto.
714 * maint.c (maint_print_section_info): Ditto.
715 * solib.c (info_sharedlibrary_command): Ditto.
716 * somsolib.c (som_sharedlibrary_info_command): Ditto.
717 * symtab.c (print_msymbol_info): Ditto.
718 * tracepoint.c (tracepoints_info): Ditto.
719 * solib-frv.c (lm_base): Ditto.
720 (frv_current_sos): Ditto.
721 (enable_break2): Ditto.
722 (enable_break): Ditto.
723 * dbxread.c (read_dbx_symtab): Use renamed hex_string.
724 (process_one_symbol): Ditto.
725 * infcmd.c (program_info): Ditto.
726 * mdebugread.c (parse_partial_symbols): Ditto.
727 * symfile.c (add_symbol_file_command): Ditto.
728 * cli/cli-cmds.c (edit_command): Ditto.
729 (list_command): Ditto.
730 * infcall.c (call_function_by_hand): Ditto.
731 * remote-vx.c (vx_run_files_info): Ditto.
732 (vx_wait): Ditto.
733 (vx_attach): Ditto.
734 (vx_detach): Ditto.
735 (vx_kill): Ditto.
736 * aix-thread.c (pdc_symbol_addrs): Ditto.
737 (pdc_read_regs): Ditto.
738 (pdc_write_regs): Ditto.
739 (pdc_read_data): Ditto.
740 (pdc_write_data): Ditto.
741 * d10v-tdep.c (display_trace): Ditto.
742 * rs6000-nat.c (find_toc_address): Ditto.
743 * aix-thread.c: Don't include language.h.
744 * buildsym.c: Ditto.
745 * dbxread.c: Ditto.
746 * mdebugread.c: Ditto.
747 * rs6000-nat.c: Ditto.
748 * buildsym.c (make_blockvector): Use renamed hex_string.
749
33f2d567
JM
7502004-09-10 Jason Molenda (jmolenda@apple.com)
751
752 * cli/cli-script.c (read_next_line): Accept zero or more whitespace
753 chars after 'if' or 'while' commands in user-defined commands.
754
7b90c3f9
JB
7552004-09-08 Jim Blandy <jimb@redhat.com>
756
757 Fix bug reported and analyzed by Olivier Crete:
758 * symfile.c (copy_section_addr_info): New function.
759 (symbol_file_add_with_addrs_or_offsets): Use it to save the
760 original set of address arguments, instead of handwritten code
761 that uses one length to allocate and a different length to
762 initialize. Use make_cleanup_free_section_addr_info.
763 * symfile.h (copy_section_addr_info): New declaration.
764 * utils.c: #include "symfile.h".
765 (do_free_section_addr_info, make_cleanup_free_section_addr_info):
766 New functions.
767 * defs.h (make_cleanup_free_section_addr_info): New declaration.
768 * Makefile.in (utils.o): Update dependencies.
769
b26a6851
AC
7702004-09-08 Andrew Cagney <cagney@gnu.org>
771
772 * thread-db.c (keep_thread_db): Delete.
773 (thread_db_new_objfile, thread_db_create_inferior)
774 (thread_db_mourn_inferior): Simplify assuming !keep_thread_db.
775
be24b061
MK
7762004-09-08 Mark Kettenis <kettenis@gnu.org>
777
f6792ef4
MK
778 * i386-tdep.h (FPC_REGNUM, FCTRL_REGNUM, FSTAT_REGNUM, FTAG_REGNUM)
779 (FISEG_REGNUM, FIOFF_REGNUM, FOSEG_REGNUM, FOOFF_REGNUM)
780 (FOP_REGNUM, XMM0_REGNUM, MXCSR_REGNUM): Remove macros.
781 (i386_frameless_signal_p): Remove prototype.
782 * i386-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
783 (GETFPXREGS_SUPPLIES): Define using I386_ST0_REGNUM and
784 I386_SSE_NUM_REGS.
785 * i386-nto-tdep.c (i386nto_supply_gregset): Use I386_NUM_GREGS
786 instead of FP0_REGNUM.
787 (i386nto_regset_id): Use I386_NUM_GREGS and I386_NUM_FREGS instead
788 of FP0_REGNUM and FPC_REGNUM.
789
eeefdaa7
MK
790 * solib-sunos.c (sunos_relocate_main_executable): Remove function.
791 (sunos_solib_create_inferior_hook): Don't call
792 sunos_relocate_main_executable.
793
be24b061
MK
794 * sparcnbsd-tdep.c (sparc32nbsd_elf_init_abi): Set
795 solib_svr4_fetch_link_map_offsets to
796 svr4_ilp32_fetch_link_map_offsets.
797 * sparcobsd-tdep.c: Don't include "nbsd-tdep.h".
798 (sparc32obsd_init_abi): Set solib_svr4_fetch_link_map_offsets to
799 svr4_ilp32_fetch_link_map_offsets.
800 * Makefile.in (sparcobsd-tdep.o): Update dependencies.
801
7c679d16
JB
8022004-09-07 Jim Blandy <jimb@redhat.com>
803
804 * frame.h (frame_register): Doc fix.
805
1f04aa62
AC
8062004-09-07 Andrew Cagney <cagney@gnu.org>
807
808 * vx-share/wait.h: Delete #ifdef USG.
809 * utils.c (request_quit): Ditto.
810 * tui/tui.c (tui_reset): Ditto.
811 * remote.c: Ditto.
812 * remote-sds.c: Ditto.
813 * remote-rdi.c: Ditto.
814 * mdebugread.c: Ditto.
815 * m68klinux-nat.c: Ditto.
816 * infttrace.c: Ditto.
817 * infptrace.c: Ditto.
818 * i386v-nat.c: Ditto.
819 * exec.c: Ditto.
820 * dbxread.c: Ditto.
821 * core-aout.c: Ditto.
822
90edbfbc
JB
8232004-09-05 Joel Brobecker <brobecker@gnat.com>
824
825 * mips-tdep.c (mips_insn16_frame_cache): Fix parameter in call to
826 heuristic_proc_desc.
827 (mips_insn32_frame_cache): Likewise.
828
01f4bf2b
JB
8292004-09-04 Joel Brobecker <brobecker@gnat.com>
830
831 * mips-tdep.c (mips32_heuristic_proc_desc): Remove code that was
832 left behind by error.
833
8511a048
JB
8342004-09-04 Joel Brobecker <brobecker@gnat.com>
835
836 * config/alpha/nm-osf.h (PTRACE_ARG3_TYPE): Remove define.
837 * config/powerpc/nm-aix.h (PTRACE_ARG3_TYPE): Likewise.
838
649dfe9f
JB
8392004-09-04 Joel Brobecker <brobecker@gnat.com>
840
841 * config/rs6000/xm-aix4.h: Remove this file.
842 * config/rs6000/aix4.mh (XM_FILE): Delete.
843
6e50f889
JB
8442004-09-04 Joel Brobecker <brobecker@gnat.com>
845
846 * config/rs6000/xm-rs6000.h: Remove this file.
847 * config/rs6000/rs6000.mh (XM_FILE): Remove.
848
b8c4aece
AC
8492004-09-03 Andrew Cagney <cagney@gnu.org>
850
fb603883
AC
851 * mips-tdep.c (PROC_DESC_IS_DUMMY, SET_PROC_DESC_IS_DUMMY)
852 (_PROC_MAGIC_, after_prologue, mips_dump_tdep): Delete macros and
853 only use.
854
c9343fd1
AC
855 * mips-tdep.c (temp_saved_regs): Delete.
856 (set_reg_offset): Replace saved_regs parameter with this_cache.
857 (heuristic_proc_desc, mips16_heuristic_proc_desc)
858 (mips32_heuristic_proc_desc): Add this_cache parameter.
859 (mips_insn32_frame_cache, mips_insn16_frame_cache)
860 (after_prologue): Pass a NULL this_cache.
861
9733cfe1
AC
862 * mips-tdep.c (mips_mdebug_frame_cache): Delete code handling
863 non-kernel trap prologues.
864
0d5febcc
AC
865 * mips-tdep.c (find_proc_desc): Delete function.
866 (mips_mdebug_frame_cache): Inline call to find_proc_desc,
867 simplify.
868 (mips_insn16_frame_cache): Replace find_proc_desc with code from
869 mips_insn32_frame_cache.
870
9733cfe1 871 * mips-tdep.c (after_prologue): Inline call to find_proc_desc.
283be873
AC
872 Simplify as NEXT_FRAME is NULL.
873 (find_proc_desc): Simplify as NEXT_FRAME is non-NULL.
874
177f84a3
AC
875 * mips-tdep.c (after_prologue): Replace proc_desc parameter with
876 local variable.
877 (mips_skip_prologue): Update.
878
465f7520
AC
879 * mips-tdep.c (find_proc_desc, heuristic_proc_desc): Delete
880 "cur_frame" parameter.
177f84a3
AC
881 (after_prologue, mips_mdebug_frame_cache, mips_insn16_frame_cache):
882 (mips_insn32_frame_cache, find_proc_desc): Update
465f7520 883
e38b8658
AC
884 * config/vax/nm-obsd.h: Delete file.
885 * config/vax/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
886 * config/vax/nm-nbsd.h: Delete file.
887 * config/vax/nm-nbsdaout.h: Include config/nm-nbsd.h.
888 * config/vax/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
889 * config/sh/nm-nbsd.h: Delete file.
890 * config/sh/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
891 * config/rs6000/nm-rs6000ly.h: Delete file.
892 * config/djgpp/fnchange.lst: Do not rename nm-rs6000ly.h.
893 * config/rs6000/rs6000lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
894 * config/powerpc/nm-obsd.h: Delete file.
895 * config/powerpc/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
896 * config/powerpc/nm-nbsd.h: Delete file.
897 * config/powerpc/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
898 * config/pa/nm-obsd.h: Delete file.
899 * config/pa/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
900 * config/mips/nm-nbsd.h: Delete file.
901 * config/mips/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
902 * config/m88k/nm-obsd.h: Delete file.
903 * config/m88k/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
904 * config/m68k/nm-nbsd.h: Delete file.
905 * config/m68k/nm-nbsdaout.h: Include config/nm-nbsd.h.
906 * config/m68k/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
907 * config/i386/nm-nbsd.h: Delete file.
908 * config/i386/nm-nbsdaout.h: Include config/nm-nbsd.h.
909 * config/i386/obsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
910 * config/i386/nbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
911 * config/i386/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
912 * config/i386/nm-i386lynx.h: Delete file.
913 * config/i386/i386lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
914 * config/arm/nm-nbsd.h: Delete file.
915 * config/arm/nm-nbsdaout.h: Include config/nm-nbsd.h.
916 * config/arm/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
917
be1ed680
AC
918 * config/i386/tm-fbsd.h: Delete file.
919 * config/i386/fbsd64.mt (TM_FILE): Set to solib.h.
920 * config/i386/fbsd.mt (TM_FILE): Set to solib.h.
921
4b392b26
AC
922 * config/rs6000/tm-rs6000-aix4.h: Delete file.
923 * config/djgpp/fnchange.lst: Do not rename tm-rs6000-aix4.h.
924 * config/rs6000/aix4.mt (TM_FILE): Set to
925 config/rs6000/tm-rs6000.h.
926 * config/powerpc/tm-ppc-aix.h: Delete file.
927 * config/powerpc/aix.mt (TM_FILE): Set to
928 config/rs6000/tm-rs6000.h.
929 * config/m68k/tm-linux.h: Delete file.
930 * config/m68k/linux.mt (TM_FILE): Set to solib.h
931 * config/i386/tm-linux64.h: Delete file.
932 * config/i386/linux64.mt (TM_FILE): Set to solib.h.
933 * config/djgpp/fnchange.lst: Do not rename tm-linux.h.
934
f3219c75
AC
935 * config/m68k/tm-linux.h (SVR4_SHARED_LIBS): Delete.
936 * config/i386/tm-linux64.h (SVR4_SHARED_LIBS): Delete.
937 * config/i386/nm-i386sco5.h (SVR4_SHARED_LIBS): Delete.
938 * config/tm-linux.h (SVR4_SHARED_LIBS): Delete.
939 * config/nm-sysv4.h (SVR4_SHARED_LIBS): Delete.
940 * config/nm-linux.h (SVR4_SHARED_LIBS): Delete.
941 * config/nm-gnu.h (SVR4_SHARED_LIBS): Delete.
942 * sh64-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
943 * sh-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
944
b8c4aece
AC
945 * configure.in (GDB_TM_FILE): Fix typo, use gdb_target_cpu and not
946 gdb_host_cpu.
947
8ac2e020
JB
9482004-09-02 Joel Brobecker <brobecker@gnat.com>
949
950 * mips-tdep.c (mips_insn32_frame_cache): Remove some dead code.
951 Minor reformatting. Some code factoring.
952
c185a355
AC
9532004-09-02 Andrew Cagney <cagney@gnu.org>
954
63f22f0d
AC
955 * config/vax/nbsd.mt (TM_FILE): Set to solib.h.
956 * config/vax/tm-nbsd.h: Delete file.
957 * config/sparc/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
958 * config/sparc/tm-vxworks.h: Delete file.
959 * config/sparc/nbsd.mt (TM_FILE): Set to solib.h.
960 * config/sparc/tm-nbsd.h: Delete file.
961 * config/sparc/linux64.mt (TM_FILE): Set to solib.h.
962 * config/sparc/linux.mt (TM_FILE): Set to solib.h.
963 * config/sparc/tm-linux.h: Delete file.
964 * config/s390/s390.mt (TM_FILE): Set to config/tm-linux.h
965 * config/s390/tm-linux.h: Delete file.
966 * config/pa/obsd.mt (TM_FILE): Set to solib.h.
967 * config/pa/tm-bsd.h: Delete file.
968 * config/m68k/obsd.mt (TM_FILE): Set to solib.h.
969 * config/m68k/tm-obsd.h: Delete file.
970 * config/m68k/nbsd.mt (TM_FILE): Set to solib.h.
971 * config/m68k/tm-nbsd.h: Delete file.
972 * config/i386/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
973 * config/i386/tm-vxworks.h: Delete file.
974 * config/i386/obsd64.mt (TM_FILE): Set to solib.h.
975 * config/i386/obsd.mt (TM_FILE): Set to solib.h.
976 * config/i386/nbsd64.mt (TM_FILE): Set to solib.h.
977 * config/i386/nbsd.mt (TM_FILE): Set to solib.h.
978 * config/i386/tm-nbsd.h: Delete file.
979 * config/i386/i386lynx.mt (TM_FILE): Set to config/tm-lynx.h.
980 * config/i386/tm-i386lynx.h: Delete file.
981 * config/cris/cris.mt (TM_FILE): Set to solib.h.
982 * config/cris/tm-cris.h: Delete file.
983
0f475e27
AC
984 * configure.in: Let TM_FILE, XM_FILE and NAT_FILE specify a path.
985 * configure: Re-generate.
986 * config/arm/nbsd.mt (TM_FILE): Set to "solib.h".
987 * config/arm/tm-nbsd.h: Delete file.
988
458ed000
AC
989 * config/powerpc/tm-ppcle-sim.h: Delete.
990 * config/powerpc/tm-ppcle-eabi.h: Delete.
991 * config/powerpc/tm-nbsd.h: Delete.
992 * config/powerpc/nbsd.mt (TM_FILE): Set to tm-ppc-eabi.h.
993 * config/djgpp/fnchange.lst: Do not rename tm-ppcle-sim.h or
994 tm-ppcle-eabi.h.
995
f14375f3
AC
996 * config/i386/nto.mh (NAT_FILE): Delete.
997 * config/i386/nm-nto.h: Delete.
998
c34d127c
AC
999 * config/m68k/tm-vx68.h: Do not include "tm-m68k.h".
1000 * config/m68k/tm-os68k.h: Ditto.
1001 * config/m68k/tm-monitor.h: Ditto.
1002 * config/m68k/tm-cisco.h: Ditto.
1003 * config/m68k/st2000.mt (TM_FILE): Delete.
1004 * config/m68k/tm-vx68.h (GET_LONGJMP_TARGET): Delete.
1005 * config/m68k/tm-cisco.h (GET_LONGJMP_TARGET): Delete.
1006 * config/m68k/tm-m68k.h (m68k_get_longjmp_target): Delete file.
1007 * m68k-tdep.c (m68k_get_longjmp_target): Make static.
1008
f7f0fe03
AC
1009 * config/m68k/tm-st2000.h: Delete.
1010 * config/m68k/st2000.mt (TM_FILE): Set to tm-m68k.h.
1011 * config/sparc/fbsd.mt (TM_FILE): Delete.
1012 * config/sparc/tm-fbsd.h: Delete.
1013
a2558533
AC
1014 * acconfig.h (GDB_MULTI_ARCH): Delete undef.
1015 * defs.h (GDB_MULTI_ARCH_PARTIAL, GDB_MULTI_ARCH_TM)
1016 (GDB_MULTI_ARCH_PURE, GDB_MULTI_ARCH): Delete macros.
1017
b78960be
AC
1018 * gdbarch.sh: Instead of GDB_MULTI_ARCH print GDB_NM_FILE,
1019 GDB_TM_FILE and GDB_XM_FILE.
1020 * gdbarch.c: Re-generate.
1021 * configure.in (GDB_XM_FILE, GDB_NM_FILE, GDB_TM_FILE): Include
1022 quotes in macro definition.
1023 * configure.in: Re-generate.
1024
4d60522e
AC
1025 * gdbarch.sh: Delete check for GDB_MULTI_ARCH_PARTIAL when
1026 validating architecture methods.
1027 * gdbarch.c: Re-generate.
1028
5010d38b
AC
1029 * gdbarch.sh: Delete check for consistency between GDB_MULTI_ARCH
1030 and GDB_TM_FILE. Check for GDB_TM_FILE instead of
1031 GDB_MULTI_ARCH_PARTIAL.
1032 * gdbarch.h: Re-generate.
1033
c185a355
AC
1034 * config/sparc/tm-vxworks.h (GDB_MULTI_ARCH): Delete.
1035 * config/sparc/tm-sol2.h (GDB_MULTI_ARCH): Delete.
1036 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete.
1037 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete.
1038 * config/sparc/tm-fbsd.h (GDB_MULTI_ARCH): Delete.
1039 * config/sh/tm-sh.h (GDB_MULTI_ARCH): Delete.
1040 * config/rs6000/tm-rs6000.h (GDB_MULTI_ARCH): Delete.
1041 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Delete.
1042 * config/mips/tm-mips.h (GDB_MULTI_ARCH): Delete.
1043 * config/ia64/tm-ia64.h (GDB_MULTI_ARCH): Delete.
1044 * config/cris/tm-cris.h (GDB_MULTI_ARCH): Delete.
1045 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Delete.
1046
14aaa6ab
AC
10472004-09-01 Andrew Cagney <cagney@gnu.org>
1048
1049 * objfiles.h (struct entry_info): Delete fields main_func_lowpc
1050 and main_func_highpc.
1051 (INVALID_ENTRY_LOWPC, INVALID_ENTRY_HIGHPC): Delete macros.
1052 * objfiles.c (init_entry_point_info, objfile_relocate): Update
1053 * nlmread.c (nlm_symfile_read): Update.
1054
a343eb3c
JB
10552004-09-01 Joel Brobecker <brobecker@gnat.com>
1056
1057 * mips-tdep.c (linked_proc_desc_table): Delete, not used.
1058 (mips_insn32_frame_cache): Inline call to find_proc_desc.
1059 (find_proc_desc): Remove dead code.
1060
4fbbbd07
JB
10612004-09-01 Joel Brobecker <brobecker@gnat.com>
1062
1063 * mips-tdep.c (mips_mdebug_frame_cache): Minor reformatting.
1064
84acb35a
JJ
10652004-09-01 Jeff Johnston <jjohnstn@redhat.com>
1066
1067 * observer.sh: Add struct so_list declaration.
1068 * Makefile.in: Add dependencies on observer.h for solib.c and
1069 breakpoint.c.
1070 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): New
1071 function.
1072 (_initialize_breakpoint): Register
1073 disable_breakpoints_in_unloaded_shlib as an observer of the
1074 "solib unloaded" observation event.
1075 (re_enable_breakpoints_in_shlibs): For bp_shlib_disabled breakpoints,
1076 call decode_line_1 so unfound breakpoint errors are silent.
1077 * solib.c (update_solib_list): When a solib is discovered to have
1078 been unloaded by the program, notify all observers of the
1079 "solib unloaded" observation event.
1080
c8cd9f6c
AC
10812004-09-01 Andrew Cagney <cagney@gnu.org>
1082
1083 * frame.c: Include "objfiles.h".
1084 (inside_main_func): New function.
1085 (get_prev_frame): Use new inside_main_func.
1086 * Makefile.in (frame.o): Update dependencies.
1087 * defs.h (inside_main_func): Delete declaration.
1088 * blockframe.c (inside_main_func): Delete function.
1089
1168df01
JB
10902004-08-31 Jim Blandy <jimb@redhat.com>
1091
1092 * dwarf2read.c (is_vtable_name): New function, based on logic from
1093 read_structure_type, but passing the correct length to strncmp,
1094 and using 'sizeof' instead of 'strlen'.
1095 (read_structure_type): Call it.
1096
f14f9744
JB
10972004-08-31 Joel Brobecker <brobecker@gnat.com>
1098
1099 * config/powerpc/aix.mh: Add comment.
1100
386d4518
PG
11012004-08-31 Paul GIlliam <pgilliam@us.ibm.com>
1102
1103 * MAINTAINERS: Add self to Write-After-Approval.
1104
7d97d5e2
MI
11052004-08-30 Manoj Iyer <manjo@austin.ibm.com>
1106
1107 * MAINTAINERS: Add self to Write-After-Approval.
1108
68f53502
AC
11092004-08-30 Andrew Cagney <cagney@gnu.org>
1110
1111 Fix PR breakpoints/1757.
1112 * infrun.c (struct execution_control_state): Replace
1113 remove_breakpoints_on_following_step with
1114 step_after_step_resume_breakpoint.
1115 (init_execution_control_state): Update.
1116 (handle_inferior_event): For signals, when stepping off a
1117 breakpoint, set step_after_step_resume_breakpoint. When
1118 BPSTAT_WHAT_STEP_RESUME, do a single-step off the breakpoint.
1119 (keep_going): Delete code handling
1120 remove_breakpoints_on_following_step.
1121
7ca2d3a3
DL
11222004-08-29 David Lecomber <david@streamline-computing.com>
1123
1124 Fix PR gdb/648
1125 * language.h (enum array_ordering): New enum.
1126 * language.h (struct language_defn): New la_array_ordering
1127 attribute.
1128 * language.c (unknown_language_defn, auto_language_defn)
1129 (local_language_defn): Ditto.
1130 * ada-lang.c (ada_language_defn): Ditto.
1131 * c-lang.c (c_language_defn, cplus_language_defn)
1132 (asm_language_defn, minimal_language_defn): Ditto.
1133 * f-lang.c (f_language_defn): Ditto.
1134 * jv-lang.c (java_language_defn): Ditto.
1135 * m2-lang.c (f_language_defn): Ditto.
1136 * objc-lang.c (objc_language_defn): Ditto.
1137 * p-lang.c (pascal_language_defn): Ditto.
1138 * scm-lang.c (scm_language_defn): Ditto.
1139 * eval.c (evaluate_subexp_standard): Assume Fortran arrays are
1140 oriented large to small in type structure.
1141 * dwarf2read.c (read_array_order): New function.
1142 (read_array_type): Use read_array_order to check row/column
1143 major ordering.
1144
e354df01
NW
11452004-08-27 Nathan J. Williams <nathanw@wasabisystems.com>
1146
1147 * target.c (target_resize_to_sections): Check
1148 current_target.to_sections for an old value when updating.
1149
9185ddce
JB
11502004-08-27 Joel Brobecker <brobecker@gnat.com>
1151
1152 * procfs.c (dbx_link_bpt_addr): New static global variable.
1153 (dbx_link_shadow_contents): New static global variable.
1154 (procfs_wait, case <PR_SYSEXIT>): Handle syssgi events.
1155 (procfs_wait, case <FLTBPT>): Remove the __dbx_link brekapoint
1156 if we just hit it.
1157 (procfs_init_inferior): Enable syssgi() syscall trace if appropriate.
1158 Reset dbx_link_bpt_addr as the address of __dbx_link() may change
1159 from run to run.
1160 (procfs_create_inferior): Remove syssgi syscall-exit notifications
1161 after the inferior has been forked.
1162 (remove_dbx_link_breakpoint): New function.
1163 (dbx_link_addr): New function.
1164 (insert_dbx_link_bpt_in_file): New function.
1165 (insert_dbx_link_bpt_in_region): New function.
1166 (insert_dbx_link_breakpoint): New function.
1167 (proc_trace_syscalls_1): New function, extracted from
1168 proc_trace_syscalls.
1169 (proc_trace_syscalls): Replace extract code by call to
1170 proc_trace_syscalls_1.
1171 * solib-irix.c (disable_break): Remove stop_pc assertion, as it
1172 is no longer valid.
1173
e6742ace
JB
11742004-08-25 Jim Blandy <jimb@redhat.com>
1175
1176 * gdbtypes.h (TYPE_CODE_ARRAY): Doc fix.
1177
8fb3e588
AC
11782004-08-25 Andrew Cagney <cagney@gnu.org>
1179
629a41ee
AC
1180 * infrun.c (struct execution_control_state): Delete field
1181 "stepping_through_sigtramp".
1182 (init_execution_control_state): Do not set same.
1183 (context_switch): Do not pass same to save_infrun_state and
1184 load_infrun_state.
1185 * gdbthread.h (struct thread_info): Delete field
1186 stepping_through_sigtramp.
1187 (save_infrun_state, load_infrun_state): Delete parameter
1188 stepping_through_sigtramp.
1189 * thread.c (load_infrun_state, save_infrun_state): Update.
1190
8fb3e588
AC
1191 * infrun.c: Re-indent. Move expression operators to the beginning
1192 of the line. Remove long disabled #if 0 code.
1193
49c54768
AC
11942004-08-24 Andrew Cagney <cagney@gnu.org>
1195
1196 * doublest.h (floatformat_ieee_quad): Rename
1197 floatformat_ia64_quad.
1198 * doublest.c (floatformat_ieee_quad): Rename
1199 floatformat_ia64_quad.
1200 (_initialize_doublest): Update.
1201
5ca2e327
JB
12022004-08-24 Jim Blandy <jimb@redhat.com>
1203
87808bd6
JB
1204 * dwarf2expr.h (struct dwarf_expr_context): New members
1205 'num_pieces' and 'pieces', for returning the result of an
1206 expression that uses DW_OP_piece.
1207 (struct dwarf_expr_piece): New struct type.
1208 * dwarf2expr.c (new_dwarf_expr_context): Initialize num_pieces and
1209 pieces.
1210 (free_dwarf_expr_context): Free pieces, if any.
1211 (add_piece): New function.
1212 (execute_stack_op): Implement DW_OP_piece.
1213 * dwarf2loc.c (dwarf2_evaluate_loc_desc): If the result of the
1214 expression is a list of pieces, print an error message.
1215 (dwarf2_loc_desc_needs_frame): If the expression yields
1216 pieces, and any piece is in a register, then we need a frame.
1217
5ca2e327
JB
1218 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Wait to fetch the top of
1219 the stack until we've decided what sort of result the evaluation
1220 has produced. Use separate variables, with more specific names.
1221
2afeb6b8
RE
12222004-08-23 Richard Earnshaw <rearnsha@arm.com>
1223
1224 * armnbsd-tdep.c (arm_nbsd_arm_be_breakpoint): Define.
1225 (arm_nbsd_thumb_[lb]e_breakpoint): Define.
1226 (arm_netbsd_init_abi_common): Register them.
1227
5885ab49
MK
12282004-08-22 Mark Kettenis <kettenis@gnu.org>
1229
fda820a6
MK
1230 * config/vax/vax.mh (NATDEPFILES): Add vax-nat.c.
1231
1c5bf419
MK
1232 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Use
1233 safe_frame_unwind_memory instead of target_read_memory.
1234
8cbba7c8
MK
1235 * infptrace.c: Remove #ifdef'ed out inclusion of gdb_stat.h.
1236 Reorder includes.
1237 (fetch_register, store_register): Remove prototypes.
1238 (child_resume): Reorganize code and comments such that it is
1239 grouped a bit more logically.
1240 (attach): Explicitly compare errno against 0.
1241 (detach): Likewise. Use perror_with_name instead of
1242 print_sys_errmsg.
1243 * Makefile.in (infptrace.o): Update dependencies.
1244
c5fa4245
MK
1245 * ia64-linux-nat.c: Update copyright year.
1246 (fetch_debug_register, store_debug_register)
1247 (ia64_linux_stopped_by_watchpoint): Replace PTRACE_ARG3_TYPE with
1248 PTRACE_TYPE_ARG3.
1249 * config/ia64/nm-linux.h: Update copyright year.
1250 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove defines.
1251
387c058c
MK
1252 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Change argument
1253 from CORE_ADDR to struct frame_info *. Use
1254 safe_frame_unwind_memory instead of deprecated_read_memory_nobpt.
1255 (amd64_linux_sigtramp_p): Adjust for changed signature of
1256 and64_linux_sigtramp_start
1257
277215a6
MK
1258 * gdb_ptrace.h: GNU/Linux.
1259
25f6178e
MK
1260 * config/alpha/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
1261 Remove defines.
1262
652fc137
MK
1263 * infptrace.c: Include "gdb_assert.h".
1264 (PTRACE_XFER_TYPE): Remove define.
1265 (offsetof): Only define if U_REGS_OFFSET isn't defined.
1266 (fetch_register, store_register): Rewrite to use PTRACE_TYPE_RET.
1267 Tweak comment.
1268 (fetch_inferior_registers, store_inferior_registers): Remove
1269 redundant culry braces. Tweak comment. s/regno/regnum.
1270 * Makefile.in (infptrace.o): Update dependencies.
1271
5885ab49
MK
1272 * configure.in: Change test for return type of ptrace to default
1273 to `long' instead of `int'.
1274 * configure: Regenerate.
1275
11003ae3
MK
12762004-08-21 Mark Kettenis <kettenis@gnu.org>
1277
6b95110c
MK
1278 * config/alpha/alpha-linux.mh (LOADLIBES): New variable.
1279
bcb3dc3d
MK
1280 * configure.in: Check for ttrace function.
1281 * configure, config.in: Regenerate.
1282
11003ae3
MK
1283 * gdb_ptrace.h: New file.
1284 * infptrace.c: Include "gdb_ptrace.h" instead of <ptrace.h> or
1285 <sys/ptrace.h>.
1286 (PT_READ_I, PT_READ_D, PT_READ_U, PT_WRITE_I, PT_WRITE_D)
1287 (PT_WRITE_U, PT_CONTINUE, PT_STEP, PT_KILL): Remove defines.
1288 (attach): Don't define PT_ATTACH.
1289 (detach): Don't define PT_DETACH.
1290 * Makefile.in (gdb_ptrace_h): New variable.
1291 (infptrace.o): Update dependencies.
1292
f8707cac
MK
12932004-08-16 Mark Kettenis <kettenis@gnu.org>
1294
1295 * inferior.h (PTRACE_ARG3_TYPE): Define as PTRACE_TYPE_ARG3
1296 instead of `int' if not already defined.
1297 (call_ptrace): Revert change that replaced PTRACE_ARG3_TYPE with
1298 PTRACE_TYPE_ARG3.
1299 * infptrace.c (call_ptrace): Revert change that replaced
1300 PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1301
655c5466
MK
13022004-08-15 Mark Kettenis <kettenis@gnu.org>
1303
156e5ba7
MK
1304 * config/i386/nm-linux64.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
1305 Remove defines.
1306
de9a9e51
MK
1307 * linux-nat.c (kill_inferior): Add missing third and fourth
1308 arguments to ptrace call. Don't use PTRACE_ARG3_TYPE.
1309
88800403
MK
1310 * infptrace.c (child_xfer_memory): Replace PTRACE_XFER_TYPE with
1311 PTRACE_TYPE_RET.
1312
849a1d7c
MK
1313 * proc-why.c (proc_prettyfprint_why): Fix format string.
1314
61ad16d1
MK
1315 * solib-osf.c (osf_current_sos): Remove unsused label.
1316
a6ed5501
MK
1317 * configure.in: Add <ncurses/ncurses.h> to the list of possible
1318 curses headers.
1319 * configure, config.in: Regenerate.
1320 * gdb_curses.h [HAVE_NCURSES_NCURSES_H]: Include
1321 <ncurses/ncurses.h>.
1322
016ddeca
MK
1323 * config/nm-bsd.h (PTRACE_ARG3_TYPE): Remove define.
1324 * config/nm-nbsd.h: Update copyright year.
1325 (PTRACE_ARG3_TYPE): Remove define.
1326
49ec097f
MK
1327 * sparc-nat.c (fetch_inferior_registers)
1328 (store_inferior_registers, sparc_xfer_wcookie):
1329 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1330
9f8e0089
MK
1331 * alphabsd-nat.c (fetch_inferior_registers):
1332 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1333 PTRACE_TYPE_ARG3.
1334 * amd64bsd-nat.c (fetch_inferior_registers)
1335 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1336 PTRACE_TYPE_ARG3.
1337 * armnbsd-nat.c: Update copyright year.
1338 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs)
1339 (store_register, store_regs, store_fp_register, store_fp_regs):
1340 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1341 * hppabsd-nat.c (fetch_inferior_registers)
1342 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1343 PTRACE_TYPE_ARG3.
1344 * i386bsd-nat.c (fetch_inferior_registers)
1345 (store_inferior_registers, i386bsd_dr_set, i386bsd_dr_get_status):
1346 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1347 * m68kbsd-nat.c (fetch_inferior_registers)
1348 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1349 PTRACE_TYPE_ARG3.
1350 * m88kbsd-nat.c (fetch_inferior_registers)
1351 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1352 PTRACE_TYPE_ARG3.
1353 * mipsnbsd-nat.c: Update copyright year.
1354 (fetch_inferior_registers, store_inferior_registers):
1355 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1356 * ns32knbsd-nat.c: Update copyright year.
1357 (fetch_inferior_registers, store_inferior_registers):
1358 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1359 * ppcnbsd-nat.c (fetch_inferior_registers):
1360 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1361 PTRACE_TYPE_ARG3.
1362 * ppcobsd-nat.c (fetch_inferior_registers):
1363 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1364 PTRACE_TYPE_ARG3.
1365 * shnbsd-nat.c: Update copyright year.
1366 (fetch_inferior_registers, store_inferior_registers):
1367 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1368 * vaxbsd-nat.c (fetch_inferior_registers)
1369 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1370 PTRACE_TYPE_ARG3.
1371
655c5466
MK
1372 * inferior.h (call_ptrace): Replace PTRACE_ARG3_TYPE with
1373 PTRACE_TYPE_ARG3.
1374 * infptrace.c (call_ptrace, child_resume, attach, detach)
1375 (U_REGS_OFFSET, fetch_register, store_register, child_xfer_memory)
1376 (udot_info): Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1377 * inftarg.c (ptrace_me): Replace PTRACE_ARG3_TYPE with
1378 PTRACE_TYPE_ARG3.
1379
c40d0d10
MK
13802004-08-14 Mark Kettenis <kettenis@gnu.org>
1381
5cb0ff31
MK
1382 * defs.h: Remove out-of-date comment.
1383 [!FCLOSE_PROVIDED] (fclose): Remove prototype.
1384 [!GETENV_PROVIDED] (getenv): Remove prototype.
1385
5f0f34cb
MK
1386 * standalone.c: Remove file.
1387 * Makefile.in (standalone.o): Remove dependency.
1388
7532965f
MK
1389 * i386-linux-nat.c (dummy_sse_values): Remove function and
1390 prototype.
1391 (i386_linux_dr_get): Fix typo in comment.
1392 (LINUX_SYSCALL_REGNUM): Define as I386_EAX_REGNUM.
1393
1bdc6c53
MK
1394 * config/i386/obsd64.mt (TDEPFILES): Add i386obsd-tdep.o.
1395
c40d0d10
MK
1396 * defs.h (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
1397 from declaration.
1398 * top.c (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
1399 from definition.
1400
64218d3e
MK
14012004-08-13 Mark Kettenis <kettenis@gnu.org>
1402
1403 * configure.in (PTRACE_TYPE_ARG3, PTRACE_TYPE_ARG5): Don't use
1404 parenthesis in definition.
1405 * configure: Regenerated.
1406
926c94e7
MC
14072004-08-12 Michael Chastain <mec.gnu@mindspring.com>
1408
1409 * PROBLEMS: Mention build/1411.
1410
69489883
NN
14112004-08-09 Robert Millan <robertmh@gnu.org>
1412
1413 Committed by Nathanael Nerode.
1414 * configure.host: Match kfreebsd*-gnu and knetbsd*-gnu.
1415 * configure.tgt: Match kfreebsd*-gnu and knetbsd*-gnu.
1416
ebb7c577
AC
14172004-08-12 Andrew Cagney <cagney@gnu.org>
1418
1419 * NEWS: Mention fixes in GDB 6.2.1.
1420 * PROBLEMS: Remove mention of mips-irix.
1421
232d697c
JB
14222004-08-11 Joel Brobecker <brobecker@gnat.com>
1423
1424 * config/powerpc/xm-aix.h: Delete.
1425 * config/powerpc/aix.mh (MH_FILE): Remove.
1426 * config/powerpc/aix432.mh (MH_FILE): Remove.
1427
72f4e82b
JB
14282004-08-11 Joel Brobecker <brobecker@gnat.com>
1429
1430 * config/powerpc/aix.mh: Remove obsolete comment.
1431 * config/powerpc/aix432.mh: Likewise.
1432
0687ccb2
JB
14332004-08-11 Joel Brobecker <brobecker@gnat.com>
1434
1435 * config/powerpc/xm-aix.h (UINT_MAX): Remove undef.
1436
dbf3ada7
JB
14372004-08-11 Joel Brobecker <brobecker@gnat.com>
1438
e08e1886
JB
1439 * config/rs6000/xm-aix4.h: Remove "config/xm-aix4.h" include,
1440 this file is now empty.
1441 * config/xm-aix4.h: Remove, this file is no longer included
1442 anywhere.
1443
14442004-08-11 Joel Brobecker <brobecker@gnat.com>
1445
1446 * config/powerpc/xm-aix.h: Remove "config/xm-aix4.h" include,
1447 that file is now empty.
dbf3ada7
JB
1448 (termdef): Remove prototype, function no longer used.
1449
4c525ef6
JB
14502004-08-11 Joel Brobecker <brobecker@gnat.com>
1451
1452 * doc/gdbint.texinfo (Host Definition): Remove documentation
1453 for USE_O_NOCTTY, no longer used.
1454 * config/xm-aix4.h (USE_O_NOCTTY): Remove, no longer used.
1455 * config/rs6000/xm-rs6000.h (USE_O_NOCTTY): Likewise.
1456
82e0b968
JB
14572004-08-11 Joel Brobecker <brobecker@gnat.com>
1458
1459 * config/xm-aix4.h (FIVE_ARG_PTRACE): Remove, no longer used.
1460 * config/pa/nm-hppah.h (FIVE_ARG_PTRACE): Likewise.
1461 * config/rs6000/xm-rs6000.h (FIVE_ARG_PTRACE): Likewise.
1462
f2acbe1c
MK
14632004-08-11 Mark Kettenis <kettenis@gnu.org>
1464
daa98270
MK
1465 * infptrace.c (call_ptrace): Select code based on PTRACE_TYPE_ARG5
1466 instead of FIVE_ARG_PTRACE.
1467
f2acbe1c
MK
1468 * inflow.c (O_NOCTTY): Define to zero if not already defined.
1469 (new_tty): Use O_NOCTTY unconditionally.
1470
cc377e6b
MK
14712004-08-10 Mark Kettenis <kettenis@gnu.org>
1472
1473 * procfs.c (procfs_detach): Cleanup. Print process ID, not LWP
1474 ID. Use comma in output. Use gdb_flush on gdb_stdout instead of
1475 fflush on stdout.
1476
3bcc18fa
JB
14772004-08-10 Joel Brobecker <brobecker@gnat.com>
1478
1479 * xcoff_symfile_finish: Replace last call to xmfree by call
1480 to xfree.
1481
7936743b
AC
14822004-08-10 Andrew Cagney <cagney@gnu.org>
1483
cc503c8a
AC
1484 * main.c (captured_main): Delete call to init_malloc.
1485 * defs.h (init_malloc): Delete declaration.
1486 * utils.c (mmalloc, mrealloc, mcalloc, mfree)
1487 (init_malloc): Delete functions.
1488
2dc74dc1
AC
1489 * defs.h (xmfree): Delete.
1490 * utils.c (xmfree): Delete function.
1491 (xfree): Inline calls to xmfree and mfree.
1492 * symmisc.c (free_symtab_block, free_symtab): Use xfree.
1493 * symfile.c (reread_symbols, init_psymbol_list): Ditto.
1494 * source.c (forget_cached_source_info, find_and_open_source): Ditto.
1495 * somread.c (som_symfile_finish): Ditto.
1496 * objfiles.c (allocate_objfile, free_objfile):
1497 * nlmread.c (nlm_symfile_finish): Ditto.
1498 * hpread.c (hpread_symfile_finish): Ditto.
1499 * elfread.c (free_elfinfo, elf_symfile_finish): Ditto.
1500 * dbxread.c (dbx_symfile_finish, free_bincl_list): Ditto.
1501 * coffread.c (coff_symfile_finish): Ditto.
1502
aa2ee5f6
AC
1503 * defs.h (xmcalloc): Delete declaration.
1504 * utils.c (xmcalloc): Delete.
1505 (xcalloc): Inline calls to xmcalloc and mcalloc.
1506 * ada-lang.c (_initialize_ada_language): Use htab_create_alloc,
1507 xcalloc and xfree.
1508 * symtab.c (create_demangled_names_hash): Ditto.
1509
0efffb96
AC
1510 * defs.h (xmrealloc): Delete.
1511 * utils.c (xmrealloc): Delete.
1512 (xrealloc): Inline calls to xmrealloc, mmalloc and mrealloc.
1513 * symmisc.c (extend_psymbol_list): Use xrealloc.
1514 * source.c (find_source_lines): Ditto.
1515 * hpread.c (hpread_lookup_type): Ditto.
1516 * dbxread.c (add_bincl_to_list): Ditto.
1517
7936743b
AC
1518 * utils.c (xmmalloc): Delete.
1519 (xmalloc): Inline xmmalloc and mmalloc calls.
1520 (msavestring): Use xmalloc.
1521 * defs.h (xmmalloc): Delete declaration.
1522 * xcoffread.c (xcoff_symfile_init): Use xmalloc instead of
1523 xmmalloc.
1524 * symmisc.c (extend_psymbol_list): Ditto.
1525 * symfile.c (init_psymbol_list): Ditto.
1526 * source.c (find_source_lines): Ditto.
1527 * hpread.c (hpread_symfile_init, hpread_lookup_type): Ditto.
1528 * elfread.c (elf_symtab_read): Ditto.
1529 * dbxread.c (dbx_symfile_init, init_bincl_list): Ditto.
1530 * coffread.c (coff_symfile_init): Ditto.
1531
252ab814
DC
15322004-08-10 David Carlton <carlton@bactrian.org>
1533
1534 * MAINTAINERS: Remove David Carlton from c++ testsuite
1535 maintainers.
1536
8f5ba92b
JG
15372004-08-10 Jerome Guitton <guitton@gnat.com>
1538
1539 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure to
1540 print a line feed before the prompt.
1541
21749010
MK
15422004-08-10 Mark Kettenis <kettenis@gnu.org>
1543
1544 * procfs.c (procfs_pid_to_str): Use "%ld" to print LWP.
1545
1f011ce2
JB
15462004-08-09 Joel Brobecker <brobecker@gnat.com>
1547
1548 General cleanup of the AIX xm include file:
1549 * config/xm-aix4.h (fd_set): Remove undefine.
1550 Remove include of <sys/select.h>.
1551 (HAVE_TERMIO): Remove define.
1552 (USG): Likewise.
1553 (NULL): Remove redefine.
1554 (alloca): Remove #pragma.
1555 (vfork): Remove define.
1556 (termdef): Remove.
1557 (SIGWINCH_HANDLER): Remove.
1558 (SIGWINCH_HANDLER_BODY): Remove.
1559
cf4e7692
MK
15602004-08-09 Mark Kettenis <kettenis@gnu.org>
1561
1562 * configure.tgt (x86_64-*-openbsd*): Set gdb_osabi to
1563 GDB_OSABI_OPENBSD_ELF.
1564
ac5754fa
MK
15652004-08-07 Robert Millan <robertmh@gnu.org>
1566
1567 * bsd-kvm.c: Check for nlist.h before including it.
1568
086ec9eb
MK
15692004-08-09 Mark Kettenis <kettenis@gnu.org>
1570
bbe06c74
MK
1571 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove `struct
1572 sigcontext' offset consistency checks for ancient BSD.
1573
3aa7b3b3
MK
1574 * gdb_curses.h [HAVE_CURSESX_H]: Include <cursesX.h>
1575
086ec9eb
MK
1576 * configure.in: Check for <sys/types.h>. Check return and
1577 argument types of ptrace.
1578 * configure, config.in: Regenerate.
1579
09991fa0
JB
15802004-08-09 Jim Blandy <jimb@redhat.com>
1581
1582 * rs6000-tdep.c (set_sim_regno, init_sim_regno_table,
1583 rs6000_register_sim_regno): Doc fixes.
1584
fed7ba43
JB
15852004-08-08 Joel Brobecker <brobecker@gnat.com>
1586
1587 * mips-tdep.c: Include "floatformat.h".
1588 (n32n64_floatformat_always_valid): New function.
1589 (floatformat_n32n64_long_double_big): New constant.
1590 (mips_gdbarch_init): Set size and format of long double
1591 for N32 and N64 ABIs.
1592 * Makefile.in (mips-tdep.o): Update dependencies.
1593
456fcf94
AC
15942004-08-08 Andrew Cagney <cagney@gnu.org>
1595
2f9b146e
AC
1596 * gdbarch.sh: Delete "fmt" and "attrib" fields. Always use %s to
1597 print. Improve script's error messages.
1598 * gdbarch.h: Re-generate.
1599
456fcf94
AC
1600 * gdbarch.sh (pformat): New function.
1601 (float_format, double_format, long_double_format): List with bit
1602 members. Use pformat when printing.
1603 * gdbarch.c, gdbarch.h: Re-generate.
1604
69e9e646
NW
16052004-08-08 Nathan J. Williams <nathanw@wasabisystems.com>
1606
1607 * ppcnbsd-nat.c: Include <machine/frame.h>, <machine/pcb.h>,
1608 "gdbcore.h", "regcache.h", and "bsd-kvm.h".
1609 (ppcnbsd_supply_pcb): New function.
1610 (_initialize_ppcnbsd_nat): New prototype and function.
1611 * config/powerpc/nbsd.mh (NATDEPFILES): Add bsd-kvm.o.
1612 (LOADLIBES): New variable.
1613 * Makefile.in (ppcnbsd-nat.o): Update dependencies.
1614
5ef2d0aa
AC
16152004-08-08 Andrew Cagney <cagney@gnu.org>
1616
1617 * gdbtypes.c (builtin_type_arm_ext, builtin_type_ieee_single)
1618 (builtin_type_ieee_double, builtin_type_ia64_quad)
1619 (builtin_type_ia64_spill, _initialize_gdbtypes): Add tables of
1620 BE/LE floating-point types.
1621 * gdbtypes.h (builtin_type_arm_ext, builtin_type_ieee_single)
1622 (builtin_type_ieee_double, builtin_type_ia64_quad)
1623 (builtin_type_ia64_spill): Declare.
1624 * doublest.c (_initialize_doublest, floatformat_ieee_single)
1625 (floatformat_ieee_double, floatformat_arm_ext)
1626 (floatformat_ia64_spill, floatformat_ia64_quad): Add tables
1627 of LE/BE floatformats.
1628 * doublest.h: (struct floatformat, floatformat_ieee_single)
1629 (floatformat_ieee_double, floatformat_arm_ext)
1630 (floatformat_ia64_spill, floatformat_ia64_quad): Declare.
1631
5c7f2947
MK
16322004-08-08 Mark Kettenis <kettenis@gnu.org>
1633
ecac404d
MK
1634 * i386gnu-nat.c (gnu_store_registers): Fix typo.
1635
9b8607ce
MK
1636 * i386gnu-nat.c (gnu_store_registers): Use regcache_raw_collect
1637 instead of regcache_raw_supply when storing the registers.
1638
f6052080
MK
1639 * i386gnu-nat.c: Update copyright year.
1640 (gnu_store_registers): Don't use deprecated_registers and
1641 deprecated_registers_valid. Use regcache_valid_p and
1642 regcache_raw_supply instead.
1643
17777823
MK
1644 * vax-tdep.c (vax_frame_this_id): Use frame_func_unwind instead of
1645 frame_pc_unwind.
1646
5240ceac
MK
1647 * procfs.c (procfs_pid_to_str): Remove redundant and unused
1648 variables. Incapitalized "process".
1649
5c7f2947
MK
1650 * configure.in: Add cursesX to the list of possible curses libs.
1651 Add cursesX.h to the list of possible curses headers.
1652 * configure, config.in: Regenerate.
1653
da7d81e3
NW
16542004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
1655
1656 * configure.in: Test for struct lwp in <sys/lwp.h>.
1657 * bsd-kvm.c (bsd_kvm_proc_cmd): If HAVE_STRUCT_LWP is defined, use
1658 the offset of l_addr in struct lwp.
1659
7f245d65
NW
16602004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
1661
1662 * bsd-kvm.c: Include "gdbcore.h"
1663 (bsd_kvm_open): Use get_exec_file() to set 'execfile'.
1664
47b3f456
AC
16652004-08-07 Andrew Cagney <cagney@gnu.org>
1666
70bd8e24
AC
1667 * gdbtypes.c (build_flt, build_complex): New functions.
1668 (gdbtypes_post_init): Use.
1669
9b0dea39
AC
1670 * doublest.c (floatformat_from_length): Fix tipo, "*" not "&".
1671
5cf7abac
AC
1672 * gdbtypes.c (_initialize_gdbtypes): Do not swap builtin_type_int8
1673 through to builtin_type_uint128.
1674
64d2b26d
AC
1675 * c-exp.y: Use builtin_type function to obtain builtin types.
1676
7ad6570d
AC
1677 * gdbtypes.h (struct builtin_type): Delete builtin_int0 through to
1678 builtin_uint128.
1679 * gdbtypes.c (gdbtypes_post_init): Update.
1680 (build_gdbtypes): Move initialization of builtin_type_int0
1681 through to builtin_type_uint128 from here ...
1682 (_initialize_gdbtypes): ... to here.
1683 * d10v-tdep.c (d10v_register_type): Update.
1684
47b3f456
AC
1685 * doublest.c: Update copyright.
1686 (floatformat_from_length): Call error when floatformat is NULL.
1687 (extract_floating_by_length): Remove NULL fmt check.
1688 (store_floating_by_length): Ditto.
1689
0a8146bf
AC
16902004-08-07 Andrew Cagney <cagney@gnu.org>
1691
1692 * regcache.c (regcache_raw_read): For the moment, #ifdef assert
1693 that the register is valid.
1694
c0ccb908
MK
16952004-08-05 Mark Kettenis <kettenis@chello.nl>
1696
8e6bed05
MK
1697 * i386-linux-tdep.c (i386_linux_sigtramp_start)
1698 (i386_linux_rt_sigtramp_start): Change argument from CORE_ADDR to
1699 struct frame_info *. Use safe_frame_unwind_memory instead of
1700 deprecated_read_memory_nobpt.
1701 (i386_linux_sigtramp_p, i386_linux_sigcontext_addr): Adjust for
1702 changed signature of i386_linux_sigtramp_start and
1703 i386_linux_rt_sigtramp_start.
1704
24f9f5e3
MK
1705 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Change argument from
1706 CORE_ADDR to struct frame_info *. Use safe_frame_unwind_memory
1707 instead of deprecated_read_memory_nobpt.
1708 (i386nbsd_sigtramp_p): Adjust for changed signature of
1709 i386nbsd_sigtramp_offset.
1710
c822af0c
MK
1711 * i386obsd-tdep.c (i386obsd_sigtramp_p): Use
1712 safe_frame_unwind_memory instead of target_read_memory.
1713
c0ccb908
MK
1714 * infptrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
1715 !NO_SYS_FILE.
1716 [KERNEL_U_ADDR_BSD]: Don't include <a.out.h>.
1717 [KERNEL_U_ADDR_BSD] (kernel_u_addr): Remove variable.
1718 (_initialize_kernel_u_addr): Remove prototype and function.
1719 * infttrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
1720 !NO_SYS_FILE.
1721 * xcoffread.c: Likewise.
1722
b9e1c0d6
MK
17232004-08-06 Mark Kettenis <kettenis@gnu.org>
1724
1725 * vax-nat.c: New file.
1726 * vaxbsd-nat.c: Tweak comment.
1727 * Makefile.in (ALLDEPFILES): Add vax-nat.c, vaxbsd-nat.c and
1728 vaxnbsd-tdep.c.
1729 (vax-nat.o): New dependency.
1730 * configure.host (vax-*-bsd*, vax-*-ultrix*): Set gdb_host to vax.
1731 (vax-*-ultrix2*): Remove.
1732 * config/vax/vax.mh: New file.
1733 * config/vax/nm-vax.h (vax_kernel_u_addr): New extern declaration.
1734 (KERNEL_U_ADDR): Define as vax_kernel_u_addr.
1735 (vax_register_u_addr): New prototype.
1736 (REGISTER_U_ADDR): Define using vax_register_u_addr.
1737 * config/vax/vaxult2.mh: Remove file.
1738 * config/vax/vaxult.mh: Remove file.
1739 * config/vax/vaxbsd.mh: Remove file.
1740 * config/vax/vax.mt (TM_FILE): Remove.
1741 * config/vax/tm-vaxbsd.h: Remove file.
1742
9ad7bec7
JB
17432004-08-06 Joel Brobecker <brobecker@gnat.com>
1744
1745 * aix-thread.c (get_signaled_thread): New function.
1746 (iter_trap): Delete, no longer used.
1747 (iter_tid): New function.
1748 (pd_update): Find the thread that received the SIGTRAP signal
1749 by first locating the kernel thread, and then finding its
1750 associated thread.
1751
bf0d233d
UW
17522004-08-06 Ulrich Weigand <uweigand@de.ibm.com>
1753
1754 * lin-lwp.c (child_wait): Continue inferior after processing
1755 PTRACE_EVENT_CLONE event.
1756
d0f853e1
NN
17572004-08-05 Nathanael Nerode <neroden@gcc.gnu.org>
1758
1759 * MAINTAINERS: Add self to Write-After-Approval.
1760
ab14aeb0
JJ
17612004-08-05 Jeff Johnston <jjohnstn@redhat.com>
1762
1763 * libunwind-frame.c (LIBUNWIND_SO): Change to be of form:
1764 libunwind-xxxx.so" where xxxx is UNW_TARGET.
1765
9c8dbfa9
AC
17662004-08-05 Andrew Cagney <cagney@gnu.org>
1767
c8f3ca46
AC
1768 * config/xm-sysv4.h: Delete file.
1769 * config/mips/xm-irix5.h: Delete file.
1770 * config/mips/irix6.mh (XM_FILE, XM_CLIBS): Delete.
1771 * config/mips/irix5.mh (XM_FILE, XM_CLIBS): Delete.
1772 * config/ia64/xm-aix.h: Delete file.
1773 * config/ia64/aix.mh (XM_FILE): Delete.
1774 * config/pa/xm-hppah.h: Delete file.
1775 * config/pa/hpux11w.mh (XM_FILE): Delete.
1776 * config/pa/hpux11.mh (XM_FILE): Delete.
1777 * config/pa/hpux1020.mh (XM_FILE): Delete.
1778 * config/pa/hppahpux.mh (XM_FILE): Delete.
1779
5f7daaff
AC
1780 * config/alpha/xm-alphalinux.h: Delete file.
1781 * config/djgpp/fnchange.lst: Do not fix xm-alphalinux.h.
1782 * config/alpha/alpha-linux.mh (XM_FILE, LOADLIBES): Delete.
1783 * config/alpha/xm-alphaosf.h: Delete file.
1784 * config/djgpp/fnchange.lst: Do not fix xm-alphaosf.h.
1785 * config/alpha/alpha-osf3.mh (XM_FILE): Delete.
1786 * config/alpha/alpha-osf2.mh (XM_FILE): Delete.
1787 * config/alpha/alpha-osf1.mh (XM_FILE): Delete.
1788
69babf95
AC
1789 * config/i386/xm-i386v.h: Delete file.
1790 * config/i386/i386v.mh (XM_FILE, XM_CLIBS): Delete.
1791 * config/i386/i386sco5.mh (XM_FILE, XM_CLIBS): Delete.
1792 * config/i386/xm-i386sco.h: Delete file.
1793 * config/i386/i386sco4.mh (XM_FILE, XM_CLIBS, MH_CFLAGS): Delete.
1794 * config/i386/i386sco.mh (XM_FILE, XM_CLIBS, CC): Delete.
1795 * config/i386/xm-i386v4.h: Delete file.
1796 * config/djgpp/fnchange.lst: Do not fix xm-i386v4.h.
1797 * config/i386/ncr3000.mh (CC, CFLAGS, XM_FILE): Delete.
1798 * config/i386/i386v42mp.mh (XM_FILE, XM_CLIBS): Delete.
1799 * config/i386/i386v4.mh (XM_FILE, XM_CLIBS): Delete.
1800
6f009c8a
AC
1801 * config/vax/xm-vax.h: Delete file.
1802 * Makefile.in (xm-vaxult.h, xm-vaxbsd.h): Delete.
1803 * config/vax/xm-vaxult2.h: Delete file.
1804 * config/djgpp/fnchange.lst: Do not fix xm-vaxult2.h.
1805 * config/vax/vaxult2.mh (XM_FILE): Delete.
1806 * config/vax/xm-vaxult.h: Delete file.
1807 * config/vax/vaxult.mh (XM_FILE): Delete.
1808 * config/vax/xm-vaxbsd.h: Delete file.
1809 * config/vax/vaxbsd.mh (XM_FILE): Delete.
1810
9c8dbfa9
AC
1811 * gdbarch.sh (deprecated_frame_saved_pc): Delete.
1812 * gdbarch.h, gdbarch.c: Re-generate.
1813 * regcache.c (deprecated_read_fp, deprecated_write_sp): Delete.
1814 * inferior.h (deprecated_read_fp, deprecated_write_sp): Delete.
1815 * frame.h: Delete deprecated_read_fp from comments.
1816 * arch-utils.c (deprecated_init_frame_pc_default): Delete.
1817 * arch-utils.h (deprecated_init_frame_pc_default): Delete.
1818
84367a3e
MK
18192004-08-04 Mark Kettenis <kettenis@gnu.org>
1820
9c8e3411
MK
1821 * i386obsd-tdep.c (i386obsd_sigtramp_p): Adjust for changed signal
1822 trampoline in OpenBSD 3.5-current.
1823
b87bc0d8
MK
1824 * i387-tdep.c (i387_supply_fsave): Provide summy values for the
1825 SSE registers.
1826
84367a3e
MK
1827 * Makefile.in: Remove embedded page breaks.
1828
a44bddec
JB
18292004-08-04 Jim Blandy <jimb@redhat.com>
1830
7ab3286f
JB
1831 * regcache.c (regcache_raw_read): Assert that, after calling
1832 target_fetch_registers, the register we're reading is cached.
1833
a44bddec
JB
1834 * ppc-linux-nat.c (fetch_register): Replace 'gdb_assert (0)' with
1835 a call to 'internal_error', with a more helpful error message.
1836 * rs6000-tdep.c (e500_pseudo_register_read,
870d65d5 1837 e500_pseudo_register_write, rs6000_store_return_value): Same.
a44bddec 1838
35124113
AC
18392004-08-04 Andrew Cagney <cagney@gnu.org>
1840
1841 * Makefile.in: Update dependencies.
1842
9f643768
JB
18432004-08-04 Jim Blandy <jimb@redhat.com>
1844
6ced10dd
JB
1845 Change the layout of the PowerPC E500 raw register cache to allow
1846 the lower 32-bit halves of the GPRS to be their own raw registers,
1847 not pseudoregisters.
1848 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_gprs_pseudo_p flag;
1849 add ppc_ev0_upper_regnum flag.
1850 * rs6000-tdep.c: #include "reggroups.h".
1851 (spe_register_p): Recognize the ev upper half registers as SPE
1852 registers.
1853 (init_sim_regno_table): Build gdb->sim mappings for the upper-half
1854 registers.
1855 (e500_move_ev_register): New function.
1856 (e500_pseudo_register_read, e500_pseudo_register_write): The 'ev'
1857 vector registers are the pseudo-registers now, formed by splicing
1858 together the gprs and the upper-half registers.
1859 (e500_register_reggroup_p): New function.
1860 (P): Macro deleted.
1861 (P8, A4): New macro.
1862 (PPC_EV_REGS, PPC_GPRS_PSEUDO_REGS): Macros deleted.
1863 (PPC_SPE_GP_REGS, PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): New
1864 macros.
1865 (registers_e500): Rearrange register set so that the raw register
1866 set contains 32-bit GPRs and upper-half registers, and the SPE
1867 vector registers become pseudo-registers.
1868 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gprs_pseudo_p;
1869 it has been deleted. Initialize ppc_ev0_upper_regnum. Many other
1870 register numbers are now the same for the E500 as they are for
1871 other PowerPC variants. Register e500_register_reggroup_p as the
1872 register group function for the E500.
1873 * Makefile.in (rs6000-tdep.o): Update dependencies.
1874
1875 Adapt PPC E500 native support to the new raw regcache layout.
1876 * ppc-linux-nat.c (struct gdb_evrregset_t): Doc fixes.
1877 (read_spliced_spe_reg, write_spliced_spe_reg): Deleted.
1878 (fetch_spe_register, store_spe_register): Handle fetching/storing
1879 all the SPE registers at once, if regno == -1. These now take
1880 over the job of fetch_spe_registers and store_spe_registers.
1881 (fetch_spe_registers, store_spe_registers): Deleted.
1882 (fetch_ppc_registers, store_ppc_registers): Fetch/store gprs
1883 unconditionally; they're always raw. Fetch/store SPE upper half
1884 registers, if present, instead of ev registers.
1885 (fetch_register, store_register): Remove sanity checks: gprs are
1886 never pseudo-registers now, so we never need to even mention any
1887 registers that are ever pseudoregisters.
1888
9f643768
JB
1889 Use a fixed register numbering when communicating with the PowerPC
1890 simulator.
1891 * ppc-tdep.h (struct gdbarch_tdep): New member: 'sim_regno'.
1892 * rs6000-tdep.c: #include "sim-regno.h" and "gdb/sim-ppc.h".
1893 (set_sim_regno, init_sim_regno_table, rs6000_register_sim_regno):
1894 New functions.
1895 (rs6000_gdbarch_init): Register rs6000_register_sim_regno. Call
1896 init_sim_regno_table.
1897 * Makefile.in (gdb_sim_ppc_h): New variable.
1898 (rs6000-tdep.o): Update dependencies.
1899
1e2279c8
AC
19002004-08-02 Andrew Cagney <cagney@gnu.org>
1901
1d94326f
AC
1902 * cris-tdep.c (cris_register_size): Restore function, still used
1903 locally.
1904
331ae7ed
AC
1905 * gdbarch.sh (deprecated_target_read_fp)
1906 (deprecated_frame_locals_address, deprecated_frame_args_address)
1907 (deprecated_frame_chain_valid, deprecated_frame_chain)
1908 (deprecated_init_extra_frame_info, deprecated_pop_frame)
1909 (deprecated_frame_init_saved_regs, deprecated_get_saved_register)
1910 (deprecated_do_registers_info, deprecated_init_frame_pc): Delete.
1911 * gdbarch.h, gdbarch.c: Re-generate.
1912 * regcache.c (deprecated_read_fp): Do not call
1913 DEPRECATED_TARGET_READ_FP_P.
1914 * infcmd.c (default_print_registers_info): Do not call
1915 DEPRECATED_DO_REGISTERS_INFO.
1916 * frame-base.c (default_frame_locals_address): Do not call
1917 DEPRECATED_FRAME_LOCALS_ADDRESS.
1918 (default_frame_args_address): Do not call
1919 DEPRECATED_FRAME_ARGS_ADDRESS.
1920
1e2279c8
AC
1921 * gdbarch.sh (deprecated_register_raw_size)
1922 (deprecated_register_virtual_size:int): Delete.
1923 * gdbarch.h, gdbarch.c: Re-generate.
1924 * cris-tdep.c (cris_register_size): Delete.
1925 (cris_gdbarch_init): Update.
1926 * alpha-tdep.c (alpha_register_raw_size)
1927 (alpha_register_virtual_size): Delete.
1928 (alpha_gdbarch_init): Update.
1929
a90c06b4
AC
1930 * gdbarch.sh (deprecated_register_virtual_type)
1931 (deprecated_save_dummy_frame_tos, deprecated_push_return_address)
1932 (deprecated_dummy_write_sp): Delete.
1933 * gdbarch.h, gdbarch.c: Re-generate.
1934
f42accbe
AC
1935 * gdbarch.sh (deprecated_register_bytes): Delete.
1936 * gdbarch.h, gdbarch.c: Re-generate.
1937 * regcache.c (deprecated_register_bytes): New function.
1938 * regcache.h (deprecated_register_bytes): Declare.
1939 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1940 * v850-tdep.c (v850_gdbarch_init): Update.
1941 * sh64-tdep.c (sh64_gdbarch_init): Update.
1942 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
1943 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1944 * mcore-tdep.c (mcore_gdbarch_init): Update.
1945 * cris-tdep.c (cris_gdbarch_init): Update.
1946 * arm-tdep.c (arm_gdbarch_init): Update.
1947 * remote.c (init_remote_state): Update.
1948 * remote-vx.c (vx_prepare_to_store): Update.
1949 * remote-sds.c (sds_fetch_registers, sds_prepare_to_store): Update.
1950 * irix5-nat.c (fetch_core_registers): Update.
1951 * cris-tdep.c (cris_register_bytes_ok): Update.
1952 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
1953
45c9dd44
AC
1954 * mips-tdep.c (mips_gdbarch_init, mips_insn16_frame_cache)
1955 (mips_insn16_frame_this_id, mips_insn16_frame_prev_register)
1956 (mips_insn16_frame_unwind, mips_insn16_frame_sniffer)
1957 (mips_insn16_frame_base_address, mips_insn16_frame_base)
1958 (mips_insn16_frame_base_sniffer, mips_insn32_frame_cache)
1959 (mips_insn32_frame_this_id, mips_insn32_frame_prev_register)
1960 (mips_insn32_frame_unwind, mips_insn32_frame_sniffer)
1961 (mips_insn32_frame_base_address, mips_insn32_frame_base)
1962 (mips_insn32_frame_base_sniffer): Replace mips16 / mips32 prefix
1963 with mips_insn16 and mips_insn32.
1964
3acba339
AC
1965 Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
1966 * rs6000-tdep.c (rs6000_push_dummy_call)
1967 (rs6000_extract_return_value): Use register_size.
1968 * xstormy16-tdep.c (xstormy16_get_saved_register)
1969 (xstormy16_extract_return_value): Ditto.
1970 * valops.c (value_assign): Ditto.
1971 * v850ice.c (v850ice_fetch_registers, v850ice_store_registers):
1972 * v850-tdep.c (v850_extract_return_value): Ditto.
1973 * tracepoint.c (collect_symbol): Ditto.
1974 * target.c (debug_print_register): Ditto.
1975 * stack.c (frame_info): Ditto.
1976 * rs6000-nat.c (ARCH64, fetch_register, store_register): Ditto.
1977 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
1978 * remote.c (struct packet_reg, remote_wait, remote_async_wait)
1979 (store_register_using_P): Ditto.
1980 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
1981 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Ditto.
1982 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
1983 * remote-e7000.c (fetch_regs_from_dump, sub2_from_pc): Ditto.
1984 * regcache.c (deprecated_read_register_bytes)
1985 (deprecated_write_register_bytes, read_register)
1986 (write_register): Ditto.
1987 * ppc-linux-nat.c (fetch_altivec_register, fetch_register)
1988 (supply_vrregset, store_altivec_register, fill_vrregset): Ditto.
1989 * monitor.c (monitor_supply_register, monitor_fetch_register)
1990 (monitor_store_register): Ditto.
1991 * mn10300-tdep.c (mn10300_pop_frame_regular)
1992 (mn10300_print_register): Ditto.
1993 * mipsv4-nat.c (fill_fpregset): Ditto.
1994 * mips-linux-tdep.c (supply_32bit_reg, fill_fpregset)
1995 (mips64_fill_fpregset): Ditto.
1996 * mi/mi-main.c (register_changed_p, get_register)
1997 (mi_cmd_data_write_register_values): Ditto.
1998 * lynx-nat.c (fetch_inferior_registers, store_inferior_registers):
1999 * irix5-nat.c (fill_gregset, fetch_core_registers):
2000 * infrun.c (write_inferior_status_register): Ditto.
2001 * infptrace.c (fetch_register, store_register): Ditto.
2002 * infcmd.c (default_print_registers_info): Ditto.
2003 * ia64-linux-nat.c (COPY_REG, fill_fpregset): Ditto.
2004 * ia64-aix-nat.c (COPY_REG, fill_gregset): Ditto.
2005 * i386gnu-nat.c (gnu_store_registers, fill): Ditto.
2006 * hpux-thread.c (hpux_thread_fetch_registers)
2007 (hpux_thread_store_registers): Ditto.
2008 * hppah-nat.c (store_inferior_registers, fetch_register):
2009 * findvar.c (value_from_register): Ditto.
2010 * dve3900-rom.c (fetch_bitmapped_register):
2011 * cris-tdep.c (cris_gdbarch_init): Ditto.
2012 * alpha-tdep.h: Ditto.
2013 * aix-thread.c (pd_enable, fill_sprs64, fill_sprs32): Ditto.
2014
01e1877c
AC
2015 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_SIZE and
2016 DEPRECATED_REGISTER_RAW_SIZE from comments.
2017 * regcache.c (init_regcache_descr, regcache_dump): Do not check or
2018 use DEPRECATED_REGISTER_VIRTUAL_SIZE and
2019 DEPRECATED_REGISTER_RAW_SIZE.
2020 * findvar.c (value_of_register): Simplify by assuming that the
2021 registers raw and virtual sizes are identical.
2022 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_TYPE in
2023 comment.
2024 * arch-utils.c (generic_register_size): Simplify by assuming
2025 register_type.
2026
73f458fb
AC
2027 * regcache.c (legacy_read_register_gen, real_register)
2028 (legacy_write_register_gen): Delete, not used.
2029
336a3131
AC
2030 * regcache.c (struct regcache_descr): Delete legacy_p.
2031 (init_legacy_regcache_descr): Delete function.
2032 (init_regcache_descr): Delete call to init_legacy_regcache_descr.
2033 Do not use deprecated register functions.
2034 (regcache_raw_read, deprecated_write_register_gen):
2035 (deprecated_read_register_gen, regcache_raw_write): Delete code
2036 predicated on legacy_p.
2037 (register_size): Delete check against register raw size.
2038
c1d546cd
AC
2039 * cris-tdep.c (cris_register_type): Replace
2040 cris_register_virtual_type.
2041 (cris_gdbarch_init): Update, set register_type.
2042
48c2c0a6
AC
2043 * gdbarch.sh (deprecated_frameless_function_invocation): Delete.
2044 * gdbarch.h, gdbarch.c: Re-generate.
2045 * arm-tdep.c (arm_frameless_function_invocation): Delete.
2046 (arm_gdbarch_init) Do not set frameless function invocation.
2047 * frame.h (legacy_frameless_look_for_prologue): Delete declaration.
2048 * blockframe.c (legacy_frameless_look_for_prologue): Delete function.
2049 * frv-tdep.c (frv_frameless_function_invocation): Delete.
2050 (frv_gdbarch_init): Do not set frameless function invocation.
2051 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
2052 * sh-tdep.c (sh_gdbarch_init): Ditto.
2053 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
2054 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2055 * avr-tdep.c (avr_gdbarch_init): Ditto.
2056
474093a6
AC
2057 * blockframe.c (legacy_frame_chain_valid): Delete function.
2058
3c109c8b
AC
2059 * dummy-frame.c (struct dummy_frame): Delete call_lo, call_hi, top
2060 and pc. Update comments.
2061 (pc_in_dummy_frame): Delete function.
2062 (deprecated_pc_in_call_dummy): Inline old pc_in_dummy_frame code,
2063 use the "id".
2064 (dummy_frame_push, dummy_frame_sniffer): Instead of call_lo,
2065 call_hi, top and pc, use the id.
2066 (fprint_dummy_frames): Do not print call_lo, call_hi, top and pc.
2067
96860204
AC
2068 * dummy-frame.c: Include "gdb_string.h".
2069 (generic_save_call_dummy_addr, generic_push_dummy_frame)
2070 (generic_save_dummy_frame_tos): Delete.
2071 (dummy_frame_push): New function, replaces above.
2072 * dummy-frame.h: Update copyright.
2073 (dummy_frame_push): Declare.
2074 * frame.h (generic_save_dummy_frame_tos, generic_push_dummy_frame)
2075 (generic_save_call_dummy_addr): Delete declarations.
2076 * infcall.c: Include "dummy-frame.h".
2077 (call_function_by_hand): Add locals caller_regcache,
2078 caller_regcache_cleanup and dummy_id. Replace push_dummy_frame
2079 with call to frame_save_as_regcache plus cleanup. Delete calls to
2080 generic_save_call_dummy_addr and generic_save_dummy_frame_tos.
2081 Move clear_proceed_status to just before the resume, add call to
2082 dummy_frame_push (discard cleanup).
2083 * Makefile.in (infcall.o): Add $(dummy_frame_h).
2084 (dummy-frame.o): Add $(gdb_string_h).
2085
d67ec5db
AC
20862004-08-01 Andrew Cagney <cagney@gnu.org>
2087
2088 * dummy-frame.h (dummy_frame_unwind): Replace dummy_frame_sniffer.
2089 * frame-unwind.c (frame_unwind_init): Use dummy_frame_unwind.
2090 * dummy-frame.c (find_dummy_frame): Delete.
2091 (struct dummy_frame_cache, dummy_frame_sniffer)
2092 (dummy_frame_prev_register, dummy_frame_this_id)
2093 (dummy_frame_unwinder, dummy_frame_unwind): Re-implement dummy
2094 frame unwinder using a dummy_frame_cache.
2095
a81dcb05
AC
20962004-08-01 Andrew Cagney <cagney@gnu.org>
2097
2098 * frame.h (frame_save_as_regcache): Declare.
2099 * frame.c (frame_save_as_regcache): New function.
2100 (do_frame_read_register): Replace do_frame_unwind_register.
2101 (frame_pop): Use frame_save_as_regcache.
2102 * dummy-frame.c (generic_push_dummy_frame): Use
2103 frame_save_as_regcache.
2104
aa495d11
JB
21052004-08-01 Joel Brobecker <brobecker@gnat.com>
2106
2107 * dwarf2read.c (dwarf_decode_lines): Do not consider the current
2108 file as included until we record the first line in the linetable.
2109
ff65ac78
AC
21102004-08-01 Andrew Cagney <cagney@gnu.org>
2111
2112 * frame.h (deprecated_pop_dummy_frame)
2113 (deprecated_read_register_dummy)
2114 (deprecated_generic_find_dummy_frame): Delete.
2115 * dummy-frame.c (deprecated_generic_find_dummy_frame)
2116 (deprecated_read_register_dummy)
2117 (deprecated_find_dummy_frame_regcache)
2118 (discard_innermost_dummy)
2119 (deprecated_pop_dummy_frame): Delete.
2120 (dummy_frame_this_id): Simplify.
2121 (struct dummy_frame): Delete "fp" and "sp".
2122 (find_dummy_frame): Simplify.
2123 (generic_push_dummy_frame): Do not set "fp" or "sp".
2124 (fprint_dummy_frames): Do not print "fp" and "sp"
2125
37bdc87e
MK
21262004-08-01 Mark Kettenis <kettenis@gnu.org>
2127
2128 * i386-tdep.c (I386_MAX_INSN_LEN): New define.
2129 (struct i386_insn): New structure.
2130 (i386_match_insn): New function.
2131 (i386_frame_setup_skip_insns): New variable.
2132 (i386_analyze_frame_setup): Change to use i386_match_insn and the
2133 array i386_frame_setup_insns of instructions that should be
2134 skipped inside the frame setup sequence.
2135
8241eaa6
AC
21362004-08-01 Andrew Cagney <cagney@gnu.org>
2137
5bc602c7
AC
2138 * frame.h (deprecated_frame_xmalloc_with_cleanup)
2139 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
2140 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
2141 * stack.c (frame_info): Delete references to
2142 DEPRECATED_FRAME_INIT_SAVED_REGS and
2143 deprecated_get_frame_saved_regs.
2144 * frame.c (struct frame_info): Delete saved_regs and extra_info.
2145 (frame_pc_unwind): Do not use DEPRECATED_FRAME_SAVED_PC.
2146 (frame_register): Do not use DEPRECATED_GET_SAVED_REGISTER.
2147 (frame_unwind_register_signed)
2148 (frame_unwind_register_unsigned)
2149 (frame_unwind_unsigned_register): Use register_size.
2150 (create_new_frame): Do not use DEPRECATED_INIT_EXTRA_FRAME_INFO.
2151 (deprecated_frame_xmalloc_with_cleanup)
2152 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
2153 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
2154
03d363a1
AC
2155 * sh-tdep.c (sh_gdbarch_init): Disable call to sh64_gdbarch_init.
2156 * config/sh/nbsd.mt (TDEPFILES): Remove sh64-tdep.o.
2157 * config/sh/linux.mt (TDEPFILES): Remove sh64-tdep.o.
2158 * config/sh/embed.mt (TDEPFILES): Remove sh64-tdep.o.
2159
8241eaa6
AC
2160 * infcall.c (call_function_by_hand): Do not use
2161 DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP,
2162 DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_TARGET_READ_FP,
2163 DEPRECATED_FP_REGNUM, DEPRECATED_STORE_STRUCT_RETURN, and
2164 DEPRECATED_STACK_ALIGN.
2165
f00df8b7
AC
21662004-07-30 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
2167
2168 Committed by Andrew Cagney.
2169 * arm-tdep.c: Remove references to add_setshow_cmd_full for apcs32 .
2170
eec63939
AC
21712004-08-01 Andrew Cagney <cagney@gnu.org>
2172
2173 * mips-tdep.c (mips16_frame_cache)
2174 (mips16_frame_this_id, mips16_frame_prev_register)
2175 (mips16_frame_unwind, mips16_frame_sniffer)
2176 (mips16_frame_base_address, mips16_frame_base)
2177 (mips16_frame_base_sniffer, mips32_frame_cache)
2178 (mips32_frame_this_id, mips32_frame_prev_register)
2179 (mips32_frame_unwind, mips32_frame_sniffer)
2180 (mips32_frame_base_address, mips32_frame_base)
2181 (mips32_frame_base_sniffer): Clone the mdebug unwinder into
2182 separate heuristic mips16 and mips32 unwinders.
2183 (mips_stub_frame_cache, mips_stub_frame_this_id)
2184 (mips_stub_frame_prev_register)
2185 (mips_stub_frame_unwind, mips_stub_frame_sniffer)
2186 (mips_stub_frame_base_address, mips_stub_frame_base)
2187 (mips_stub_frame_base_sniffer): Add a simple stub unwinder.
2188 (mips_mdebug_frame_base_sniffer, mips_mdebug_frame_sniffer): Only
2189 match true mdebug frames.
2190 (non_heuristic_proc_desc): Add forward declaration.
2191
e66299b3
AC
21922004-08-01 Andrew Cagney <cagney@gnu.org>
2193
83cbbf3e
AC
2194 * config/mips/tm-irix6.h: Delete file.
2195 * config/mips/tm-irix5.h: Delete file.
2196 * config/mips/irix5.mt (TM_FILE): Set to tm-mips.h
2197 * config/mips/irix6.mt (TM_FILE): Set to tm-mips.h
2198
22d41b37
AC
2199 * config/ia64/tm-linux.h (IA64_GNULINUX_TARGET): Delete.
2200 * config/alpha/nm-osf2.h (PROCFS_SIGPEND_OFFSET): Delete.
2201 * config/nm-gnu.h (NO_CORE_OPS): Delete.
2202 * config/pa/nm-hppah.h (MAY_SWITCH_FROM_INFERIOR_PID): Delete.
2203 * config/i386/nm-i386v4.h (LOSING_POLL): Delete.
2204 * config/alpha/nm-osf2.h (LOSING_POLL): Delete.
2205 * config/tm-nto.h (RAW_SIGNAL_LO, RAW_SIGNAL_HI): Delete.
2206 * config/m68k/tm-vx68.h (VX_SIZE_FPREGS): Delete.
2207 * config/nm-linux.h (USE_THREAD_STEP_NEEDED): Delete.
2208 * config/pa/nm-hppah.h (USE_THREAD_STEP_NEEDED): Delete.
2209 * config/tm-nto.h (TARGET_SIGNAL_RAW_TABLE) Delete.
2210 (TARGET_SIGNAL_RAW_VALUES): Delete.
2211 * config/pa/nm-hppah.h (TARGET_RANGE_PROFITABLE_FOR_HW_WATCHPOINT):
2212 Delete.
2213 * config/frv/tm-frv.h (TARGET_HW_BREAK_LIMIT)
2214 (TARGET_HW_WATCH_LIMIT): Delete.
2215 * Makefile.in (minimon_h, HFILES_NO_SRCDIR): Remove minimon.h.
2216 * minimon.h: Delete file.
2217
e66299b3
AC
2218 * trad-frame.c (trad_frame_get_this_base)
2219 (trad_frame_set_this_base, trad_frame_set_reg_realreg): New
2220 functions.
2221 * trad-frame.h (trad_frame_set_this_base)
2222 (trad_frame_get_this_base, trad_frame_set_reg_realreg): Declare.
2223
1f67027d
AC
22242004-07-31 Andrew Cagney <cagney@gnu.org>
2225
2226 * trad-frame.c (trad_frame_get_prev_register): Rename
2227 trad_frame_get_prev_register.
2228 * vax-tdep.c (vax_frame_prev_register): Update.
2229 * trad-frame.h: Update.
2230 * trad-frame.c (trad_frame_get_register): Update.
2231 * sparcobsd-tdep.c (sparc32obsd_frame_prev_register): Update.
2232 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_prev_register):
2233 Update.
2234 * sparc64obsd-tdep.c (sparc64obsd_frame_prev_register): Update.
2235 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_prev_register):
2236 Update.
2237 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_prev_register):
2238 Update.
2239 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_prev_register):
2240 Update.
2241 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_prev_register):
2242 Update.
2243 * sparc-linux-tdep.c (sparc32_linux_sigtramp_frame_prev_register):
2244 Update.
2245 * s390-tdep.c (s390_frame_prev_register)
2246 (s390_stub_frame_prev_register)
2247 (s390_sigtramp_frame_prev_register): Update.
2248 * rs6000-tdep.c (rs6000_frame_prev_register): Update.
2249 * ppc-linux-tdep.c (ppc_linux_sigtramp_prev_register): Update.
2250 * mips-tdep.c (mips_mdebug_frame_prev_register): Update.
2251 * m88k-tdep.c (m88k_frame_prev_register)
2252 * m68hc11-tdep.c (m68hc11_frame_prev_register)
2253 * m32r-tdep.c (m32r_frame_prev_register): Update.
2254 * hppa-tdep.c (hppa_frame_prev_register_helper)
2255 * frv-tdep.c (frv_frame_prev_register): Update.
2256 * d10v-tdep.c (d10v_frame_prev_register): Update.
2257 * cris-tdep.c (cris_frame_prev_register): Update.
2258 * avr-tdep.c (avr_frame_prev_register): Update.
2259 * arm-tdep.c (arm_prologue_prev_register)
2260 (arm_sigtramp_prev_register): Update.
2261
c1bf6f65
AC
22622004-07-31 Andrew Cagney <cagney@gnu.org>
2263
2264 * frame.h (legacy_saved_regs_unwind)
2265 (legacy_frame_chain_valid, legacy_frame_p)
2266 (enum frame_type): Delete UNKNOWN_FRAME.
01fbbd97
AC
2267 * dummy-frame.c (dummy_frame_this_id): Simplify.
2268 * frame-unwind.c (frame_unwind_find_by_frame): Simplify.
c1bf6f65
AC
2269 * frame.c (struct frame_info): Delete the field "type".
2270 (legacy_saved_regs_prev_register, legacy_get_prev_frame)
2271 (legacy_saved_regs_this_id, legacy_saved_regs_unwinder)
2272 (legacy_saved_regs_unwind, legacy_frame_p)
2273 (frame_type_from_pc): Delete.
2274 (get_frame_id, frame_pop, frame_register_unwind, get_prev_frame_1)
2275 (fprint_frame, create_new_frame, fprint_frame_type): Simplify.
2276
dc856692
MK
22772004-07-31 Mark Kettenis <kettenis@gnu.org>
2278
5a5effe1
MK
2279 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Fix
2280 indentation.
2281
d4fd50a6
MK
2282 * mips-nat.c: Remove file.
2283 * Makefile.in (ALLDEPFILES): Remove mips-nat.c
2284 (mips-nat.o): Remove dependency.
2285
2689df5a
MK
2286 * infptrace.c: Update copyright year.
2287 (fetch_register): Pass NULL in regcache_raw_supply call instead of
2288 explicitly setting the buffer to all zeroes.
2289
dc856692
MK
2290 * sparc64obsd-tdep.c (sparc64obsd_sigreturn_offset): New variable.
2291 (sparc64obsd_pc_in_sigtramp): Reorganize to avoid goto.
2292
763910e0
AC
22932004-07-30 Andrew Cagney <cagney@gnu.org>
2294
2295 * GDB 6.2 released from gdb_6_2-branch.
2296
0b66e38c
EZ
22972004-07-30 Baurjan Ismagulov <ibr@ata.cs.hun.edu.tr>
2298
2299 * defs.h (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH): New macros.
2300
2301 * exec.c (exec_file_attach):
2302 * nto-tdep.c (nto_find_and_open_solib):
2303 * pa64solib.c (pa64_solib_sizeof_symbol_table):
2304 * solib.c (solib_open):
2305 * somsolib.c (som_solib_sizeof_symbol_table):
2306 * source.c (is_regular_file, openp, open_source_file):
2307 * symfile.c (symfile_bfd_open):
2308 * wince.c (upload_to_device): Differentiate between the search for
2309 binary and source files.
2310
be7d7357
AC
23112004-07-30 Andrew Cagney <cagney@gnu.org>
2312
2313 * complaints.c (_initialize_complaints): Pass NULL to
2314 add_setshow_zinteger_cmd for help_doc.
2315 * cli/cli-decode.c (add_setshow_cmd_full): Handle a NULL help_doc.
2316
ddc9cd0f
AC
23172004-07-30 Andrew Cagney <cagney@gnu.org>
2318
2319 Fix PR i18n/761.
2320 * Makefile.in (.SUFFIXES): Add po .gmo, and .pox.
2321 (.PHONY): Add all-po install-po, uninstall-po, clean-po,
2322 $(PACKAGE).pot and update-po.
2323 (all-po, .po.gmo, .po.pox, install-po, $(PACKAGE).pot)
2324 (po/$(PACKAGE).pot, clean-po, uninstall-po, install-po)
2325 (update-po): New rules.
2326 (localedir): Define using autoconf.
2327 (diststuff): Add $(PACKAGE).pot and $(CATALOGS)
2328 (GDB_CFLAGS): Define LOCALEDIR using $(localedir).
2329 (XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): Define.
2330 * configure.in: Generate CATALOGS and LINGUAS from contents of
2331 src/gdb/po/ directory. Set @localedir@ in Makefile.in.
2332 * configure: Re-generate.
2333 * po/gdbtext: New file
2334
e92f3704
JG
23352004-07-30 Jerome Guitton <guitton@gnat.com>
2336
2337 * MAINTAINERS: Reorder Write After Approval list in alphabetical
2338 order.
2339
b0f35d58
DL
23402004-07-30 David Lecomber <dsl@sources.redhat.com>
2341
2342 * dwarf2read.c (read_file_scope): Set producer if attribute
2343 present.
2344 (struct dwarf2_cu): Added new member producer.
2345
ce7d4522
JG
23462004-07-30 Jerome Guitton <guitton@gnat.com>
2347
2348 * inflow.c (kill_command): release file handles in BFD.
2349 * exec.c (exec_file_attach): Ditto.
2350 * symfile.c (symbol_file_add_with_addrs_or_offsets): Ditto.
2351
05ee07c7
AC
23522004-07-29 Andrew Cagney <cagney@gnu.org>
2353
2354 * PROBLEMS (mips-irix): Note that it is broken.
2355
62eceb47
AC
23562004-07-29 Andrew Cagney <cagney@gnu.org>
2357
e57b8d41
AC
2358 * config/mips/xm-irix5.h (REGISTER_U_ADDR): Move from here ...
2359 * config/mips/nm-irix5.h (REGISTER_U_ADDR): ... to here.
2360
d334389b
AC
2361 * config/xm-nbsd.h: Delete file.
2362 * config/arm/xm-nbsd.h: Delete file.
2363 * config/i386/xm-nbsd.h: Delete file.
2364 * config/ns32k/xm-nbsd.h: Delete file.
2365 * config/ns32k/nbsdaout.mh (XM_FILE): Delete.
2366 * config/i386/nbsdelf.mh (XM_FILE): Delete.
2367 * config/i386/nbsdaout.mh (XM_FILE): Delete.
2368 * config/arm/nbsdelf.mh (XM_FILE): Delete.
2369 * config/arm/nbsdaout.mh (XM_FILE): Delete.
2370
e910f676
AC
2371 * config/i386/xm-i386v.h (KERNEL_U_ADDR): Move from here ...
2372 * config/i386/nm-i386v42mp.h (KERNEL_U_ADDR): ... to here, ...
2373 * config/i386/nm-i386v4.h (KERNEL_U_ADDR): ... here, ...
2374 * config/i386/nm-i386v.h (KERNEL_U_ADDR): ... and here.
2375 * config/vax/xm-vax.h (KERNEL_U_ADDR): Move from here ...
2376 * config/vax/nm-vax.h (KERNEL_U_ADDR): ... to here.
2377
6fa856b9
AC
2378 * config/powerpc/xm-linux.h: Delete empty file.
2379 * config/powerpc/ppc64-linux.mh (XM_FILE): Delete.
2380 * config/powerpc/linux.mh (XM_FILE): Delete.
2381 * config/m68k/xm-linux.h: Delete empty file.
2382 * config/m68k/linux.mh (XM_FILE): Delete.
2383 * config/ia64/xm-linux.h: Delete empty file.
2384 * config/ia64/linux.mh (XM_FILE): Delete.
2385 * config/arm/xm-linux.h: Delete empty file.
2386 * config/arm/linux.mh (XM_FILE): Delete.
2387
471ae5ae
AC
2388 * config/powerpc/xm-linux.h (KERNEL_U_ADDR): Move from here ...
2389 * config/powerpc/nm-linux.h (KERNEL_U_ADDR): ... to here.
2390 * config/m68k/xm-linux.h (KERNEL_U_ADDR): Move from here ...
2391 * config/m68k/nm-linux.h (KERNEL_U_ADDR): ... to here.
2392 * config/ia64/xm-linux.h (KERNEL_U_ADDR): Move from here ...
2393 * config/ia64/nm-linux.h (KERNEL_U_ADDR): ... to here.
2394 * config/arm/xm-linux.h (KERNEL_U_ADDR): Move from here ...
2395 * config/arm/nm-linux.h (KERNEL_U_ADDR): ... to here.
2396
62eceb47
AC
2397 * config/m68k/xm-m68k.h: Delete file.
2398 * config/m68k/xm-linux.h: Do not include "m68k/xm-m68k.h". Update
2399 copyright.
2400 (HOST_LONG_DOUBLE_FORMAT): Delete macro.
2401 * config/pa/xm-linux.h: Delete empty file.
2402 * config/pa/linux.mh (XM_FILE): Delete.
2403 * config/i386/xm-i386.h: Delete empty file.
2404 * config/i386/xm-nbsd.h, config/i386/xm-go32.h: Do not include
2405 "i386/xm-i386.h".
2406 * config/i386/obsdaout.mh (XM_FILE): Delete.
2407 * config/i386/obsd64.mh (XM_FILE): Delete.
2408 * config/i386/fbsd64.mh (XM_FILE): Delete.
2409 * config/i386/nto.mh (XM_FILE): Delete.
2410 * config/i386/obsd.mh (XM_FILE): Delete.
2411 * config/i386/linux64.mh (XM_FILE): Delete.
2412 * config/i386/linux.mh (XM_FILE): Delete.
2413 * config/i386/i386sol2.mh (XM_FILE): Delete.
2414 * config/i386/i386gnu.mh (XM_FILE): Delete.
2415 * config/i386/fbsd.mh (XM_FILE): Delete.
2416 * config/i386/nbsd64.mh (XM_FILE): Delete.
2417
c35f4ffc
AC
24182004-07-29 Andrew Cagney <cagney@gnu.org>
2419
2420 * config/pa/xm-linux.h: Do not include "floatformat.h".
2421 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
2422 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
2423 * config/i386/xm-i386.h: Do not include "floatformat.h".
2424 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
2425 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
2426 * doublest.c (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
2427 (HOST_LONG_DOUBLE_FORMAT): Delete macros. Use
2428 GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT and
2429 GDB_HOST_LONG_DOUBLE_FORMAT instead.
2430 * configure.in (GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT)
2431 (GDB_HOST_LONG_DOUBLE_FORMAT): Define.
2432 * configure, config.in: Regenerate.
2433 * configure.host (gdb_host_float_format, gdb_host_double_format)
2434 (gdb_host_long_double_format): Set according to the host.
2435
624a44a3
AC
24362004-07-29 Andrew Cagney <cagney@gnu.org>
2437
2438 * Makefile.in (CONFIG_CLEAN): Delete duplicate definition.
2439
0dea2468
AC
24402004-07-28 Andrew Cagney <cagney@gnu.org>
2441
2442 * PROBLEMS: Mention threads/1650.
2443 * NEWS: Mention the NPTL fix.
2444
b3f42336
AC
24452004-07-28 Andrew Cagney <cagney@gnu.org>
2446
2447 * cli/cli-decode.c (add_setshow_cmd): Delete function.
2448 (add_setshow_cmd_full): Make static.
2449 * command.h (add_setshow_cmd, add_setshow_cmd_full): Delete.
2450 (add_setshow_filename_cmd, add_setshow_string_cmd): Declare.
2451 * cli/cli-decode.c (add_setshow_filename_cmd)
2452 (add_setshow_string_cmd): New functions.
2453 * nto-tdep.c (_initialize_nto_tdep): Update. Fix parameters.
2454 * mips-tdep.c (_initialize_mips_tdep): Update.
2455 * m32r-rom.c (_initialize_m32r_rom): Update. Update copyright.
2456 * cli/cli-logging.c (_initialize_cli_logging): Update.
2457 * complaints.c (_initialize_complaints): Update.
2458 * remote.c (_initialize_remote): Update.
2459
3b64bf98
AC
24602004-07-28 Andrew Cagney <cagney@gnu.org>
2461
2462 * cli/cli-decode.c (add_setshow_zinteger_cmd)
2463 (add_setshow_cmd, add_setshow_auto_boolean_cmd)
2464 (add_setshow_boolean_cmd, add_setshow_cmd_full): Add help_doc and
2465 print parameters. Make string parameters constant.
2466 * command.h: Update. Update copyright.
2467 * remote.c (add_packet_config_cmd, _initialize_remote): Ditto.
2468 * observer.c (_initialize_observer): Ditto.
2469 * frame.c (_initialize_frame): Ditto.
2470 * complaints.c (_initialize_complaints): Ditto.
2471 * maint.c (_initialize_maint_cmds): Ditto.
2472 * target.c (initialize_targets): Ditto.
2473 * cli/cli-logging.c (_initialize_cli_logging): Ditto.
2474 * infcall.c (_initialize_infcall): Ditto.
2475 * arm-tdep.c (_initialize_arm_tdep): Ditto.
2476 * m32r-rom.c (_initialize_m32r_rom): Ditto.
2477 * remote-rdi.c (_initialize_remote_rdi): Ditto.
2478 * d10v-tdep.c (_initialize_d10v_tdep): Ditto.
2479 * mips-tdep.c (_initialize_mips_tdep): Ditto.
2480
e9667a65
AC
24812004-07-28 Andrew Cagney <cagney@gnu.org>
2482
54a5b07d
AC
2483 * gdbtypes.c (lookup_primitive_typename): Delete function.
2484 * gdbtypes.h (lookup_primitive_typename): Delete declaration.
2485 * ada-lex.l: Use language_lookup_primitive_type_by_name.
2486 * gdbtypes.c (lookup_typename): Ditto.
2487 * f-exp.y (yylex): Ditto.
2488 * c-exp.y (yylex): Ditto, eliminate assignment in "if".
2489
e9667a65
AC
2490 * scm-lang.c (c_builtin_types): Delete extern declaration.
2491 (scm_language_defn): Replace
2492 string_char_type and primitive_type_vector with
2493 la_language_arch_info.
2494 * jv-lang.c (java_language_defn): Replace
2495 string_char_type and primitive_type_vector with
2496 la_language_arch_info.
2497 * config/i386/i386sco4.mh (NATDEPFILES): Remove reference to
2498 c_builtin_types in comment.
2499 * c-lang.h (struct language_arch_info): Declare opaque.
2500 (c_language_arch_info): Declare.
2501 (c_builtin_types): Delete declaration.
2502 * c-lang.c (c_language_arch_info): Set string_char_type to
2503 builtin_char, not builtin_true_char. Make global.
2504 (c_builtin_types): Delete array.
2505 (asm_language_defn, minimal_language_defn): Replace
2506 string_char_type and primitive_type_vector with
2507 la_language_arch_info.
2508
685419e2
AC
25092004-07-28 Andrew Cagney <cagney@gnu.org>
2510
2511 * gdbtypes.h (struct builtin_type): Rename true_char to
2512 builtin_true_char.
2513 * gdbtypes.c (gdbtypes_post_init): Update.
2514 * c-lang.c (arch_info): New function.
2515 (enum c_primitive_types): New enum.
2516 (c_language_defn): Instead of string_char_type and
2517 primitive_type_vector set la_language_arch_info.
2518
5a44ea29
AC
25192004-07-28 Andrew Cagney <cagney@gnu.org>
2520
2521 * language.h (struct language_arch_info): Fix typo
2522 s/primative/primitive/.
2523 * gdbtypes.c (lookup_primitive_typename): Ditto.
2524 * language.c (language_lookup_primitive_type_by_name)
2525 (unknown_language_arch_info): Ditto.
2526
f290d38e
AC
25272004-07-27 Andrew Cagney <cagney@gnu.org>
2528
2529 * defs.h (enum language): Add nr_languages.
2530 * language.h (struct language_arch_info): Define.
2531 (struct language_defn): Add la_language_arch_info.
2532 (language_lookup_primative_type_by_name): Declare.
2533 (language_string_char_type): Declare.
2534 * language.c (_initialize_language, language_gdbarch_post_init)
2535 (struct language_gdbarch, language_gdbarch_data): Implement
2536 per-architecture language information.
2537 (unknown_language_arch_info, language_string_char_type)
2538 (language_lookup_primative_type_by_name): New functions.
2539 (unknown_language_defn, auto_language_defn)
2540 (local_language_defn): Set la_language_arch_info to
2541 unknown_language_arch_info.
2542 (unknown_builtin_types): Delete.
2543 * gdbtypes.c (lookup_primitive_typename): Use
2544 language_lookup_primative_type_by_name.
2545 (create_string_type): Use language_string_char_type.
2546 * values.c (value_from_string): Use language_string_char_type.
2547 * scm-lang.c (scm_language_defn): Add NULL la_language_arch_info.
2548 * p-lang.c (pascal_language_defn): Ditto.
2549 * m2-lang.c (m2_language_defn): Ditto.
2550 * jv-lang.c (java_language_defn): Ditto.
2551 * objc-lang.c (objc_language_defn): Ditto.
2552 * f-lang.c (f_language_defn): Ditto.
2553 * c-lang.c (c_language_defn, cplus_language_defn)
2554 (asm_language_defn, minimal_language_defn): Ditto.
2555
000177f0
AC
25562004-07-27 Andrew Cagney <cagney@gnu.org>
2557
2558 * gdbtypes.h (struct builtin_type): Declare.
2559 (builtin_type): Declare.
2560 * d10v-tdep.c (d10v_register_type): Use builtin_type.
2561 * gdbtypes.c (_initialize_gdbtypes): Register gdbtypes_post_init.
2562 (gdbtypes_post_init): New function.
2563 (builtin_type): New function.
2564
e22f895c
KI
25652004-07-27 Kei Sakamoto <sakamoto.kei@renesas.com>
2566
2567 * remote-m32r-sdi.c: Fix breakpoint bug.
2568 (send_cmd, send_one_arg_cmd, send_two_arg_cmd, send_three_arg_cmd,
2569 recv_char_data, recv_long_data): New functions to replace communication
2570 sequences.
2571
536517dd
MC
25722004-07-26 Michael Chastain <mec.gnu@mindspring.com>
2573
2574 Document PR threads/1650.
2575 * PROBLEMS (Threads): Document problem with many threads
2576
a0a44d18
AC
25772004-07-26 Andrew Cagney <cagney@gnu.org>
2578
2579 * gdb-mi.el: Move from here ...
2580 * mi/gdb-mi.el: ... to here.
2581
7ac4ac06
AC
25822004-07-26 Andrew Cagney <cagney@gnu.org>
2583
2584 Problem reported by Ashley Pittman <ashley@quadrics.com>.
2585 * main.c (captured_main): When in batch mode always detach.
2586
a1b461bf
AC
25872004-07-26 Andrew Cagney <cagney@gnu.org>
2588
2589 * MAINTAINERS: Mark the xstormy16, sh64, ns32k, mn10300, mcore,
2590 and h8300 as broken.
2591 * NEWS: END-OF-LIFE frame compatibility module.
2592 * PROBLEMS: For "Stack backtraces", remove powerpc, hppa and mips
2593 specific comments.
2594
cb1a6d5f
AC
25952004-07-26 Andrew Cagney <cagney@gnu.org>
2596
2597 * cli/cli-decode.c (deprecated_add_show_from_set): Deprecate.
2598 * xcoffsolib.c (_initialize_xcoffsolib): Update.
2599 * wince.c (_initialize_wince): Update.
2600 * win32-nat.c (_initialize_win32_nat): Update.
2601 * varobj.c (_initialize_varobj): Update.
2602 * valops.c (_initialize_valops): Update.
2603 * utils.c (initialize_utils, initialize_utils): Update.
2604 * tui/tui-win.c (_initialize_tui_win): Update.
2605 * top.c (init_main): Update.
2606 * symfile.c (_initialize_symfile): Update.
2607 * source.c (_initialize_source): Update.
2608 * somsolib.c (_initialize_som_solib): Update.
2609 * solib.c (_initialize_solib): Update.
2610 * solib-frv.c (_initialize_frv_solib): Update.
2611 * serial.c (_initialize_serial): Update.
2612 * ser-go32.c (_initialize_ser_dos, _initialize_ser_dos): Update.
2613 * remote.c (_initialize_remote, _initialize_remote): Update.
2614 * remote-vx.c (_initialize_vx): Update.
2615 * remote-utils.c (_initialize_sr_support): Update.
2616 * remote-sds.c (_initialize_remote_sds): Update.
2617 * remote-mips.c (_initialize_remote_mips): Update.
2618 * remote-e7000.c (_initialize_remote_e7000): Update.
2619 * proc-api.c (_initialize_proc_api): Update.
2620 * printcmd.c: Update.
2621 * parse.c (_initialize_parse): Update.
2622 * pa64solib.c (_initialize_pa64_solib): Update.
2623 * p-valprint.c (_initialize_pascal_valprint): Update.
2624 * monitor.c (_initialize_remote_monitors): Update.
2625 * mips-tdep.c (_initialize_mips_tdep): Update.
2626 * mcore-tdep.c (_initialize_mcore_tdep): Update.
2627 * maint.c (_initialize_maint_cmds): Update.
2628 * lin-lwp.c (_initialize_lin_lwp): Update.
2629 * language.c (_initialize_language): Update.
2630 * kod.c (_initialize_kod): Update.
2631 * infrun.c (set_schedlock_func, _initialize_infrun): Update.
2632 * i386-tdep.c (_initialize_i386_tdep): Update.
2633 * gdbtypes.c (build_gdbtypes, _initialize_gdbtypes): Update.
2634 * gdbarch.sh: Update.
2635 * gdbarch.c: Re-generate.
2636 * gdb-events.sh: Update.
2637 * gdb-events.c: Re-generate.
2638 * frame.c (_initialize_frame): Update.
2639 * exec.c: Update.
2640 * demangle.c (_initialize_demangler): Update.
2641 * dcache.c (_initialize_dcache): Update.
2642 * cris-tdep.c (_initialize_cris_tdep, cris_version_update): Update.
2643 * cp-valprint.c (_initialize_cp_valprint): Update.
2644 * corefile.c (_initialize_core): Update.
2645 * command.h: Update.
2646 * cli/cli-decode.h: Update.
2647 * cli/cli-cmds.c (init_cli_cmds): Update.
2648 * charset.c (_initialize_charset): Update.
2649 * breakpoint.c (_initialize_breakpoint): Update.
2650 * arm-tdep.c (_initialize_arm_tdep_initialize_arm_tdep): Update.
2651 * alpha-tdep.c (_initialize_alpha_tdep): Update.
2652 * aix-thread.c (_initialize_aix_thread): Update.
2653
b4632131
MK
26542004-07-24 Mark Kettenis <kettenis@gnu.org>
2655
2656 Partial fix for PR backtrace/1718.
2657 * i386-tdep.c (i386_analyze_frame_setup): Handle more instructions
2658 that GCC migrates into the prolugue. Don't handle any
2659 instructions that clobber %ebx.
2660
822c9732
AC
26612004-07-23 Andrew Cagney <cagney@gnu.org>
2662
2663 Use regcache_raw_collect instead of regcache_collect.
2664 * regcache.h (regcache_collect): Delete declaration.
2665 * regcache.c (regcache_colect): Delete function.
2666 * win32-nat.c (do_child_store_inferior_registers): Update.
2667 * sol-thread.c (sol_thread_store_registers): Update.
2668 * shnbsd-tdep.c (shnbsd_fill_reg): Update.
2669 * rs6000-nat.c (store_register): Update.
2670 * remote.c (store_register_using_P, remote_store_registers): Update.
2671 * ppcnbsd-tdep.c (ppcnbsd_fill_reg): Update.
2672 * ppc-linux-nat.c (store_altivec_register, store_spe_register)
2673 (fill_vrregset, store_spe_registers, fill_gregset)
2674 (fill_gregset): Update.
2675 * nto-procfs.c (procfs_store_registers): Update.
2676 * mipsnbsd-tdep.c (mipsnbsd_fill_reg): Update.
2677 * mips-linux-tdep.c (fill_gregset, mips64_fill_gregset): Update.
2678 * m68klinux-nat.c (store_register, fill_gregset): Update.
2679 * m68k-tdep.c (fill_gregset): Update.
2680 * infptrace.c (store_register): Update.
2681 * i386-nto-tdep.c (i386nto_regset_fill): Update.
2682 * i386-linux-nat.c (store_register, fill_gregset): Update.
2683 * hppa-linux-nat.c (fill_gregset): Update.
2684 * go32-nat.c (store_register): Update.
2685 * armnbsd-nat.c (store_register, store_regs, store_fp_register)
2686 (store_fp_regs): Update.
2687 * arm-linux-nat.c (store_nwfpe_single, store_nwfpe_double)
2688 (store_nwfpe_extended, store_fpregister, store_fpregs)
2689 (store_register, store_regs, fill_gregset, fill_fpregset): Update.
2690 * alpha-tdep.c (alpha_fill_int_regs, alpha_fill_fp_regs): Update.
2691 * aix-thread.c (fill_gprs64, fill_fprs, fill_sprs64, fill_sprs32)
2692 (store_regs_user_thread, store_regs_kernel_thread): Update.
2693
32b05c07
MK
26942004-07-24 Mark Kettenis <kettenis@gnu.org>
2695
2696 * dwarf2-frame.c (struct dwarf2_cie): Delete `addr_size' member.
2697 (decode_frame_entry_1): Use DW_EH_PE_absptr as default for CIE
2698 encoding.
2699 (dwarf2_build_frame_info): Adjust for removal of `addr_size'
2700 member of `struct comp_unit'.
2701
8567c30f
AC
27022004-07-23 Andrew Cagney <cagney@gnu.org>
2703
2704 * infrun.c (handle_inferior_event): Separate the STEP_OVER_ALL and
2705 DEPRECATED_IGNORE_HELPER_CALL cases, only #ifdef the latter.
2706
f6da8dd8
MH
27072004-07-23 Martin Hunt <hunt@redhat.com>
2708 Kevin Buettner <kevinb@redhat.com>
2709
2710 * dwarf2-frame.c (execute_cfa_program): Fix typo in which the
2711 alignment was being added to the offset instead of multiplied.
2712
bd921882
MK
27132004-07-23 Mark Kettenis <kettenis@gnu.org>
2714
24f033e8
MK
2715 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Adjust for
2716 changed signal trampoline in OpenBSD 3.5-current.
2717
90f3cecd
MK
2718 * sparc64nbsd-nat.c: Include "regcache.h", <sys/types.h>,
2719 <machine/pcb.h> and "bsd-kvm.h".
2720 (sparc64nbsd_supply_pcb): New function.
2721 (_initialize_sparc64nbsd_nat): Renamed from
2722 _initialize_sparcnbsd_nat. Enable libkvm interface.
2723 * Makefile.in (sparc64nbsd-nat.o): Update dependencies.
2724 * config/sparc/nbsd64.mh (NATDEPFILES): Add bsd-kvm.o
2725 (LOADLIBES): New variable.
2726
a4954a62
MK
2727 * config/sparc/obsd64.mt (TDEPFILES): Add sparcobsd-tdep.o.
2728
bd921882
MK
2729 * sparcnbsd-nat.c (sparc32nbsd_supply_pcb): Fix typo in comment.
2730
23a6d369
AC
27312004-07-21 Andrew Cagney <cagney@gnu.org>
2732
2733 Use regcache_raw_supply instead of supply_register.
2734 * regcache.h (supply_register): Delete declaration.
2735 * regcache.c (supply_register): Delete function.
2736 * wince.c (do_child_fetch_inferior_registers): Update.
2737 * win32-nat.c (do_child_fetch_inferior_registers)
2738 (fetch_elf_core_registers): Update.
2739 * v850ice.c (v850ice_fetch_registers): Update.
2740 * thread-db.c (thread_db_store_registers): Update.
2741 * sol-thread.c (sol_thread_store_registers): Update.
2742 * shnbsd-tdep.c (shnbsd_supply_reg): Update.
2743 * rs6000-nat.c (fetch_register): Update.
2744 * rom68k-rom.c (rom68k_supply_one_register): Update.
2745 * remote.c (remote_wait, remote_async_wait): Update.
2746 * remote-st.c (get_hex_regs): Update.
2747 * remote-sim.c (gdbsim_fetch_register): Update.
2748 * remote-sds.c (sds_fetch_registers): Update.
2749 * remote-rdp.c (remote_rdp_fetch_register): Update.
2750 * remote-rdi.c (arm_rdi_fetch_registers): Update.
2751 * remote-mips.c (mips_wait, mips_fetch_registers): Update.
2752 * remote-m32r-sdi.c (m32r_fetch_register): Update.
2753 * remote-hms.c (init_hms_cmds): Update.
2754 * remote-est.c (init_est_cmds): Update.
2755 * remote-e7000.c (get_hex_regs, fetch_regs_from_dump)
2756 (e7000_fetch_registers, sub2_from_pc, e7000_wait): Update.
2757 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_supply_fpreg): Update.
2758 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register)
2759 (fetch_register, supply_vrregset, supply_vrregset)
2760 (fetch_spe_registers): Update.
2761 * ppc-bdm.c (bdm_ppc_fetch_registers): Update.
2762 * monitor.c (monitor_supply_register): Update.
2763 * mipsv4-nat.c (supply_gregset, supply_fpregset): Update.
2764 * mipsnbsd-tdep.c (mipsnbsd_supply_reg)
2765 (mipsnbsd_supply_fpreg): Update.
2766 * mips-nat.c (fetch_inferior_registers)
2767 (fetch_core_registers): Update.
2768 * mips-linux-tdep.c (supply_32bit_reg, supply_gregset)
2769 (supply_fpregset, mips64_supply_gregset)
2770 (mips64_supply_fpregset): Update.
2771 * m68klinux-nat.c (fetch_register, supply_gregset)
2772 (supply_fpregset): Update.
2773 * m68k-tdep.c (supply_gregset, supply_fpregset): Update.
2774 * m32r-rom.c (init_m32r_cmds, init_mon2000_cmds): Update.
2775 * lynx-nat.c (fetch_inferior_registers, fetch_core_registers): Update.
2776 * irix5-nat.c (supply_gregset, supply_fpregset): Update.
2777 * infptrace.c (fetch_register): Update.
2778 * ia64-linux-nat.c (supply_gregset, supply_fpregset): Update.
2779 * ia64-aix-nat.c (supply_gregset, supply_fpregset): Update.
2780 * i386gnu-nat.c (fetch_fpregs, supply_gregset)
2781 (gnu_fetch_registers, gnu_store_registers): Update.
2782 * i386-nto-tdep.c (i386nto_supply_gregset): Update.
2783 * i386-linux-nat.c (fetch_register, supply_gregset)
2784 (dummy_sse_values): Update.
2785 * hpux-thread.c (hpux_thread_fetch_registers): Update.
2786 * hppah-nat.c (fetch_register): Update.
2787 * hppa-linux-nat.c (fetch_register, supply_gregset)
2788 (supply_fpregset): Update.
2789 * go32-nat.c (fetch_register): Update.
2790 * dve3900-rom.c (fetch_bitmapped_register)
2791 (_initialize_r3900_rom): Update.
2792 * cris-tdep.c (supply_gregset): Update.
2793 * abug-rom.c (init_abug_cmds): Update.
2794 * core-aout.c (fetch_core_registers): Update.
2795 * armnbsd-nat.c (supply_gregset, supply_fparegset)
2796 (fetch_register, fetch_fp_register): Update.
2797 * arm-linux-nat.c (fetch_nwfpe_single, fetch_nwfpe_none)
2798 (fetch_nwfpe_extended, fetch_fpregister, fetch_fpregs)
2799 (fetch_register, fetch_regs, supply_gregset, supply_fpregset): Update.
2800 * alphanbsd-tdep.c (fetch_core_registers): Update.
2801 * alpha-tdep.c (alpha_supply_int_regs, alpha_supply_fp_regs): Update.
2802 * alpha-nat.c (fetch_osf_core_registers)
2803 (fetch_osf_core_registers, fetch_osf_core_registers): Update.
2804 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs)
2805 (supply_sprs64, supply_sprs32, fetch_regs_kernel_thread): Update.
2806
73cc75f3
AC
28072004-07-21 Andrew Cagney <cagney@gnu.org>
2808
2809 * PROBLEMS: Mention breakpoints/1702.
2810 * NEWS: For signal trampolines, cite s390 GNU/Linux as a system
2811 that is known to work.
2812
a53c66de
AC
28132004-07-21 Andrew Cagney <cagney@gnu.org>
2814
2815 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Deprecate.
2816 * mips-tdep.c (mips_dump_tdep, mips_ignore_helper): Update.
2817 * infrun.c (DEPRECATED_IGNORE_HELPER_CALL): Delete macro.
2818 (handle_inferior_event): Wrap call to deprecated
2819 IGNORE_HELPER_CALL in #ifdef.
2820 * config/mips/tm-nbsd.h: Update.
2821
708ff411
JB
28222004-07-20 Jim Blandy <jimb@redhat.com>
2823
412b3060
JB
2824 * rs6000-tdep.c (rs6000_gdbarch_init): The register set used for
2825 bfd_mach_ppc has no segment registers.
2826
13ac140c
JB
2827 Include PowerPC SPR numbers for special-purpose registers.
2828 * rs6000-tdep.c (struct reg): Add new member, 'spr_num'.
2829 (R, R4, R8, R16, F, P, R32, R64, R0): Include value for
2830 new member in initializer.
2831 (S, S4, SN4, S64): New macros for defining special-purpose
2832 registers.
2833 (PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS, PPC_OEA_SPRS, registers_power,
2834 registers_403, registers_403GC, registers_505, registers_860,
2835 registers_601, registers_602, registers_603, registers_604,
2836 registers_750, registers_e500): Use them.
2837
708ff411
JB
2838 * rs6000-tdep.c (rs6000_gdbarch_init): Delete variable 'power';
2839 replace references with expression used to initialize variable.
2840
1f602b35
AC
28412004-07-20 Andrew Cagney <cagney@gnu.org>
2842
2843 * breakpoint.c (deprecated_read_memory_nobpt): Rename
2844 read_memory_nobpt.
2845 * sparc-linux-tdep.c (sparc_linux_sigtramp_start): Update.
2846 * s390-tdep.c (s390_readinstruction, s390_in_function_epilogue_p)
2847 (s390_sigtramp_frame_sniffer): Update.
2848 * mn10300-tdep.c (mn10300_analyze_prologue): Update.
2849 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Update.
2850 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
2851 (mips32_fetch_instruction): Update.
2852 * mcore-tdep.c (get_insn): Update.
2853 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Update.
2854 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Update.
2855 * i386ly-tdep.c (i386lynx_saved_pc_after_call): Update.
2856 * i386-linux-tdep.c (i386_linux_sigtramp_start)
2857 (i386_linux_rt_sigtramp_start): Update.
2858 * i386-linux-nat.c (child_resume): Update.
2859 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Update.
2860 * hppa-linux-tdep.c (insns_match_pattern): Update.
2861 * gdbcore.h: Update.
2862 * frv-tdep.c (frv_gdbarch_adjust_breakpoint_address): Update.
2863 * frame.c (safe_frame_unwind_memory): Update.
2864 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Update.
2865 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Update.
2866 * alpha-tdep.c (alpha_read_insn): Update.
2867
2cd8546d
AC
28682004-07-20 Andrew Cagney <cagney@gnu.org>
2869
2870 * tramp-frame.h (struct tramp_frame): Change "insn" to a struct
2871 containing both bytes and mask. Add "frame_type".
2872 * tramp-frame.c (tramp_frame_start): Update.
2873 (tramp_frame_prepend_unwinder): Update.
2874 * mips-linux-tdep.c (mips_linux_o32_sigframe)
2875 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
2876 (mips_linux_n64_rt_sigframe): Update. Make "static const".
2877 * ppcnbsd-tdep.c (tramp_frame ppcnbsd_sigtramp): Update.
2878
f928dd62
EZ
28792004-07-19 Eli Zaretskii <eliz@gnu.org>
2880
2881 * config/djgpp/fnchange.lst: Add remapping for bfd/elf32-cr*.c,
2882 bfd/elf32-sh-symbian.c, bfd/elf32-sh64-com.c,
2883 sim/testsuite/sim/mips/hilo-hazard-[123].s, and
2884 sim/testsuite/sim/mips/fpu64-ps-sb1.s.
2885
d5c560f7
AC
28862004-07-17 Andrew Cagney <cagney@gnu.org>
2887
860660cb
AC
2888 * NEWS, PROBLEMS: Update for 6.2.
2889
8c266f54
AC
2890 * README: Update to 6.2.
2891
a552edd9
AC
2892 * utils.c (xvasprintf): Call xstrvprintf.
2893
c4a172b5
AC
2894 * parse.c: Update copyright.
2895 (null_post_parser): Eliminate ARGSUSED.
2896
da745b36
AC
2897 * ppc-linux-nat.c (store_spe_registers): Eliminate K&R C.
2898 * tui/tui-win.c (tui_get_cmd_list): Ditto.
2899 * symfile-mem.c (_initialize_symfile_mem): Ditto.
2900
9cbc6ef0
AC
2901 * ppc-linux-tdep.c (ppc_linux_init_abi): Add [sic] to Linux.
2902 * ppc-linux-nat.c: Use "Linux kernel".
2903 * hppa-linux-tdep.c: Use GNU/Linux.
2904 * hppa-linux-nat.c: Use GNU/Linux.
2905 * dwarfread.c: Add [sic] to use of Linux.
2906
1b89295f
AC
2907 * hppa-linux-nat.c: Do not include <string.h>.
2908 (supply_fpregset): Remove "register" attribute.
2909
d5c560f7
AC
2910 * solib-frv.c (fetch_loadmap): Use xfree, not free.
2911
7ddd7709
MK
29122004-07-17 Mark Kettenis <kettenis@gnu.org>
2913
b1d19a62
MK
2914 * configure.in: Define _MSE_INT_H on Solaris 9 too.
2915 * configure, config.in: Regenerated.
2916
7ddd7709
MK
2917 * vaxbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
2918 "bsd-kvm.h".
2919 (vaxbsd_supply_pcb): New function.
2920 (_initialize_vaxbsd_nat): New prototype and function.
2921 * config/vax/nbsdaout.mh (NATDEPFILES): Add bsd-kvm.o, solib.o and
2922 solib-sunos.o.
2923 (LOADLIBES): New variable.
2924 * config/vax/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
2925 (LOADLIBES): New variable.
2926 * config/vax/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
2927 (LOADLIBES): New variable.
2928 * Makefile.in (vaxbsd-nat.o): Update dependencies.
2929
2c07db7a
AC
29302004-07-16 Andrew Cagney <cagney@gnu.org>
2931
2932 * defs.h (event_loop_p): Replace variable declaration with macro,
2933 always 1.
2934 * main.c (captured_main): Delete options "-async" and "-noasync".
2935 (event_loop_p): Delete variable.
2936 * NEWS: Mention that "-async" and "-noasync" were removed.
2937
717eb1cf
AC
29382004-07-16 Andrew Cagney <cagney@gnu.org>
2939
2940 * remote-m32r-sdi.c: Re-indent.
2941
c101bc14
JB
29422004-07-16 Jim Blandy <jimb@redhat.com>
2943
5109a438
JB
2944 * ppc-tdep.h (ppc_spr_asr): Add missing OEA SPR.
2945 (ppc_spr_mi_dbcam, ppc_spr_mi_dbram0, ppc_spr_mi_dbram1)
2946 (ppc_spr_md_cam, ppc_spr_md_ram0, ppc_spr_md_ram1): Add
2947 missing MPC823 SPRs.
2948 (ppc_spr_m_twb): Renamed from ppc_spr_md_twb; the old name was
2949 incorrect. (This was corrected in GDB's register name tables on
2950 2004-07-14.)
2951
c101bc14
JB
2952 * rs6000-tdep.c (registers_602): Correct register name: "esassr"
2953 should be "esasrr" ("ESA Save and Restore Register").
2954
7ce450bd
AC
29552004-07-16 Andrew Cagney <cagney@gnu.org>
2956
2957 * infrun.c (insert_step_resume_breakpoint): Delete gdb_assert
2958 calls, no longer applicable. Update comments and rename parameter
2959 "step_frame" to "return_frame".
2960
ca73dd9d
AC
29612004-07-16 Andrew Cagney <cagney@gnu.org>
2962
2963 * frame.c (fprint_field): New function.
2964 (fprint_frame_id): Use fprint_field.
2965
31941f6d
JB
29662004-07-15 Joel Brobecker <brobecker@gnat.com>
2967
2968 * ada-lang.c (ada_language_defn): Remove commented out code.
2969
f86a7158
JB
29702004-07-15 Jim Blandy <jimb@redhat.com>
2971
2972 * ppc-tdep.h (struct gdbarch_tdep): New member: ppc_sr0_regnum.
2973 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it.
2974
c24791ec
JB
29752004-07-14 Jim Blandy <jimb@redhat.com>
2976
29bb1356
JB
2977 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): Delete; unused.
2978
cc98b5cc
JB
2979 * ppc-tdep.h (ppc_num_vrs): New enum constant.
2980
8f088af7
JB
2981 * ppc-tdep.h (ppc_num_srs): New enum constant.
2982
0ea0ec5f
JB
2983 * ppc-tdep.h (ppc_spr_mq, ppc_spr_xer, ppc_spr_rtcu, ppc_spr_rtcl)
2984 (ppc_spr_lr, ppc_spr_ctr, ppc_spr_cnt, ppc_spr_dsisr, ppc_spr_dar)
2985 (ppc_spr_dec, ppc_spr_sdr1, ppc_spr_srr0, ppc_spr_srr1)
2986 (ppc_spr_eie, ppc_spr_eid, ppc_spr_nri, ppc_spr_sp, ppc_spr_cmpa)
2987 (ppc_spr_cmpb, ppc_spr_cmpc, ppc_spr_cmpd, ppc_spr_icr)
2988 (ppc_spr_der, ppc_spr_counta, ppc_spr_countb, ppc_spr_cmpe)
2989 (ppc_spr_cmpf, ppc_spr_cmpg, ppc_spr_cmph, ppc_spr_lctrl1)
2990 (ppc_spr_lctrl2, ppc_spr_ictrl, ppc_spr_bar, ppc_spr_vrsave)
2991 (ppc_spr_sprg0, ppc_spr_sprg1, ppc_spr_sprg2, ppc_spr_sprg3)
2992 (ppc_spr_ear, ppc_spr_tbl, ppc_spr_tbu, ppc_spr_pvr)
2993 (ppc_spr_spefscr, ppc_spr_ibat0u, ppc_spr_ibat0l, ppc_spr_ibat1u)
2994 (ppc_spr_ibat1l, ppc_spr_ibat2u, ppc_spr_ibat2l, ppc_spr_ibat3u)
2995 (ppc_spr_ibat3l, ppc_spr_dbat0u, ppc_spr_dbat0l, ppc_spr_dbat1u)
2996 (ppc_spr_dbat1l, ppc_spr_dbat2u, ppc_spr_dbat2l, ppc_spr_dbat3u)
2997 (ppc_spr_dbat3l, ppc_spr_ic_cst, ppc_spr_ic_adr, ppc_spr_ic_dat)
2998 (ppc_spr_dc_cst, ppc_spr_dc_adr, ppc_spr_dc_dat, ppc_spr_dpdr)
2999 (ppc_spr_dpir, ppc_spr_immr, ppc_spr_mi_ctr, ppc_spr_mi_ap)
3000 (ppc_spr_mi_epn, ppc_spr_mi_twc, ppc_spr_mi_rpn, ppc_spr_mi_cam)
3001 (ppc_spr_mi_ram0, ppc_spr_mi_ram1, ppc_spr_md_ctr, ppc_spr_m_casid)
3002 (ppc_spr_md_ap, ppc_spr_md_epn, ppc_spr_md_twb, ppc_spr_md_twc)
3003 (ppc_spr_md_rpn, ppc_spr_m_tw, ppc_spr_md_dbcam, ppc_spr_md_dbram0)
3004 (ppc_spr_md_dbram1, ppc_spr_ummcr0, ppc_spr_upmc1, ppc_spr_upmc2)
3005 (ppc_spr_usia, ppc_spr_ummcr1, ppc_spr_upmc3, ppc_spr_upmc4)
3006 (ppc_spr_zpr, ppc_spr_pid, ppc_spr_mmcr0, ppc_spr_pmc1)
3007 (ppc_spr_sgr, ppc_spr_pmc2, ppc_spr_dcwr, ppc_spr_sia)
3008 (ppc_spr_mmcr1, ppc_spr_pmc3, ppc_spr_pmc4, ppc_spr_sda)
3009 (ppc_spr_tbhu, ppc_spr_tblu, ppc_spr_dmiss, ppc_spr_dcmp)
3010 (ppc_spr_hash1, ppc_spr_hash2, ppc_spr_icdbdr, ppc_spr_imiss)
3011 (ppc_spr_esr, ppc_spr_icmp, ppc_spr_dear, ppc_spr_rpa)
3012 (ppc_spr_evpr, ppc_spr_cdbcr, ppc_spr_tsr, ppc_spr_602_tcr)
3013 (ppc_spr_403_tcr, ppc_spr_ibr, ppc_spr_pit, ppc_spr_esasrr)
3014 (ppc_spr_tbhi, ppc_spr_tblo, ppc_spr_srr2, ppc_spr_sebr)
3015 (ppc_spr_srr3, ppc_spr_ser, ppc_spr_hid0, ppc_spr_dbsr)
3016 (ppc_spr_hid1, ppc_spr_iabr, ppc_spr_dbcr, ppc_spr_iac1)
3017 (ppc_spr_dabr, ppc_spr_iac2, ppc_spr_dac1, ppc_spr_dac2)
3018 (ppc_spr_l2cr, ppc_spr_dccr, ppc_spr_ictc, ppc_spr_iccr)
3019 (ppc_spr_thrm1, ppc_spr_pbl1, ppc_spr_thrm2, ppc_spr_pbu1)
3020 (ppc_spr_thrm3, ppc_spr_pbl2, ppc_spr_fpecr, ppc_spr_lt)
3021 (ppc_spr_pir, ppc_spr_pbu2): New enum constants for PowerPC
3022 special-purpose register numbers.
3023
c24791ec
JB
3024 * rs6000-tdep.c (registers_860): Correct register name. (No PPC
3025 manual mentions 'md_twb', but many mention 'm_twb', and at that
3026 point in the register list.)
3027
d833db3b
AC
30282004-07-14 Andrew Cagney <cagney@gnu.org>
3029
3030 * utils.c (internal_warning_problem): Fix typo, "internal-warning"
3031 instead of "internal-error".
3032
080228b2
JB
30332004-07-10 Joel Brobecker <brobecker@gnat.com>
3034
3035 * hppa-hpux-tdep.c: Fix a compilation failure due to a comment
3036 that was inserted inside a comment.
3037
c268433a
RC
30382004-07-10 Randolph Chung <tausq@debian.org>
3039
3040 * hppa-hpux-tdep.c (hppa_hpux_som_find_global_pointer): New
3041 function.
3042 (hppa_hpux_push_dummy_code): New function.
3043 (hppa_hpux_init_abi): Set push_dummy_code and call_dummy_location.
3044 Set find_global_pointer method.
3045
71009278
MK
30462004-07-10 Mark Kettenis <kettenis@gnu.org>
3047
3048 * NEWS: Mention BSD libkvm interface.
3049
b2fa5097
MS
30502004-07-10 Michael Snyder <msnyder@redhat.com>
3051
3052 * symfile.c (generic_load): Comment typo.
3053 * stack.c (get_selected_block): Ditto.
3054 * regcache.c (regcache_cooked_read): Ditto.
3055 * monitor.c (monitor_debug): Ditto.
3056 * mips-tdep.c (mips_read_pc): Ditto.
3057 * i386-linux-nat.c (ps_get_thread_area): Ditto.
3058 * gdb_mbuild.sh: Ditto.
3059 * gdbarch.sh: Ditto.
3060 * gdbarch.h: Ditto.
3061
c3e5cd34
PH
30622004-07-09 Paul N. Hilfinger <Hilfinger@gnat.com>
3063
8a2225b2
PH
3064 * ada-tasks.c: Remove file.
3065
c3e5cd34
PH
3066 Remove ARI problems:
3067
3068 * ada-exp.y (write_var_from_sym): Reformat to put operator at
3069 beginning of line.
3070
3071 * ada-lang.c (MAX_OF_SIZE): Rename max_of_size.
3072 Add comment.
3073 Add comment concerning MAX_OF_TYPE and MIN_OF_TYPE.
3074 (MIN_OF_SIZE): Rename min_of_size. Add comment.
3075 (UMAX_OF_SIZE): Renmae umax_of_size. Add comment.
3076 (UMIN_OF_SIZE): Remove.
3077 (max_of_type): New function to replace orphan macro in gdbtypes.h
3078 (min_of_type): Ditto.
3079 (discrete_type_high_bound): Use max_of_type.
3080 (discrete_type_low_bound): Use min_of_type.
3081 (possible_user_operator_p): Move operator to beginning of line.
3082 (ada_is_variant_part): Ditto.
3083 (ensure_lval): Rewrite to avoid deprecated operations.
3084 (ada_finish_decode_line_1): Use gdbarch_convert_from_func_ptr_addr
3085 rather than adding DEPRECATED_FUNCTION_START_OFFSET.
3086 (ada_enum_name): Remove assignments in 'if' statements.
3087 (build_ada_types): Add gdbarch parameter.
3088 (_initialize_ada_language): Replace deprecated_register_gdbarch_swap
3089 with gdbarch_data_register_post_init.
3090 Use add_setshow_uinteger_cmd rather than add_set_cmd and
3091 add_show_from_set.
3092
3093 * ada-valprint.c (inspect_it): Remove declaration.
3094 (repeat_count_threshold): Remove declaration.
3095 (ada_print_floating): Remove assignments in 'if' statements.
3096 (print_str): Move operator to beginning of line.
3097
61ce229a
JB
30982004-07-08 Jim Blandy <jimb@redhat.com>
3099
3100 * rs6000-tdep.c (registers_powerpc_nofp): Unused; deleted.
3101
09bcec80
BR
31022004-07-08 Bob Rossi <bob@brasko.net>
3103
3104 * symtab.c (lookup_symtab): check return value of symtab_to_fullname
3105
31c27f77
JJ
31062004-07-06 Jeff Johnston <jjohnstn@redhat.com>
3107
3108 * language.h (struct_language_defn): Add new function pointer:
3109 la_class_name_from_physname. Also add new prototype for
3110 language_class_name_from_physname.
3111 * language.c (language_class_name_from_physname): New function.
3112 (unk_lang_class_name): Ditto.
3113 (unknown_language_defn, auto_language_defn): Change
3114 to add unk_lang_class_name function pointer for
3115 la_class_name_from_physname.
3116 (local_language_defn): Ditto.
3117 * dwarf2read.c (guess_structure_name): Change to call
3118 language_class_name_from_physname.
3119 (determine_class_name): Ditto.
3120 * cp-support.c (class_name_from_physname): Renamed.
3121 (cp_class_name_from_physname): New name of function.
3122 * cp-support.h: Ditto.
3123 * c-lang.c (c_language_defn): Change to add NULL
3124 for class_name_from_physname function pointer.
3125 (cplus_language_defn): Change to add cp_class_name_from_physname.
3126 * jv-lang.c (java_class_name_physname): New function.
3127 (java_find_last_component): New static routine.
3128 (java_language_defn): Add java_class_name_from_physname pointer.
3129 * ada-lang.c (ada_language_defn): Change to add NULL
3130 for class_name_from_physname function pointer.
3131 * f-lang.c (f_language_defn): Ditto.
3132 * m2-lang.c (m2_language_defn): Ditto.
3133 * objc-lang.c (objc_language_defn): Ditto.
3134 * p-lang.c (pascal_language_defn): Ditto.
3135 * scm-lang.c (scm_language_defn): Ditto.
3136
ee28ca0f
AC
31372004-07-06 Andrew Cagney <cagney@gnu.org>
3138
3139 Patch from Bart Robinson.
3140 * corelow.c (core_open): Add variable "flags", or in O_LARGEFILE.
3141 (O_LARGEFILE): Define to 0, if not defined.
3142
fdb1bf9d
MK
31432004-07-03 Mark Kettenis <kettenis@gnu.org>
3144
cb162ff6
MK
3145 * m68kbsd-nat.c: Include "gdbcore.h", <sys/types.h>,
3146 <machine/pcb.h> and "bsd-kvm.h".
3147 (PCB_REGS_FP, PCB_REGS_SP): Define if not already defined.
3148 (m68kbsd_supply_pcb): New function.
3149 (_initialize_m68kbsd_nat): New prototype and function.
3150 * Makefile.in (m68kbsd-nat.o): Update dependencies.
3151 * config/m68k/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
3152 (LOADLIBES): New variable.
3153 * config/m68k/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
3154 (LOADLIBES): New variable.
3155
fdb1bf9d
MK
3156 * bsd-kvm.c (bsd_kvm_cmdlist): Remove unecessary initialization.
3157
963c4174
MK
31582004-07-03 Mark Kettenis <kettenis@gnu.org>
3159
3160 * bsd-kvm.c: Include "cli/cli-cmds.h", "command.h", "value.h" and
3161 <sys/proc.h>.
3162 (bsd_kvm_cmdlist): New variable.
3163 (bsd_kvm_cmd, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): New functions.
3164 (bsd_kvm_add_target): Register "kvm" command prefix, "kvm pcb"
3165 command and "kvm proc" command.
3166 * Makefile.in (bsd-kvm.o): Update dependencies.
3167
533f1d8f
MK
31682004-07-02 Mark Kettenis <kettenis@gnu.org>
3169
3170 * osabi.c: Update copyright year.
3171 (generic_elf_osabi_sniffer): Tweak comment. Look for OS-specific
3172 notes if EI_OSABI is set to ELFOSABI_HPUX.
3173
6780dcde
MS
31742004-07-01 Michael Snyder <msnyder@redhat.com>
3175
3176 * win32-nat.c (core_dll_symbols_add): Re-indent a small section
3177 that seems to have gotten whacked out of line.
3178
67bebe79
MK
31792004-07-01 Mark Kettenis <kettenis@gnu.org>
3180
3181 * dbxread.c (process_one_symbol) [PCC_SOL_BROKEN]: Remove dead
3182 code.
3183
0b5d8877
PH
31842004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
3185
3186 * ada-lang.c (decode_packed_array): Minor change to comment.
3187 (ada_value_slice_ptr): New function.
3188 (ada_value_slice): New function.
3189 (ada_evaluate_subexp): Remove XVS-suffix code from subscripting
3190 test. Don't know why it is there.
3191 Change slice code to use ada_value_slice_ptr and ada_value_slice, and
3192 to avoid dereferencing huge arrays from which one is slicing.
3193 (empty_array): Correct to return an array rather than
3194 a subrange value.
3195 * ada-valprint.c (print_optional_low_bound): Don't print lower bound
3196 on empty arrays (let'em use 'FIRST instead).
3197
19c1ef65
PH
31982004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
3199
3200 Address complaints from gdb_ari.sh:
3201
3202 * ada-exp.y: Include gdb_string.h rather than string.h.
3203 (convert_char_literal): Reformat declaration.
3204 * ada-lang.h: Include opaque struct declaration for struct frame_info.
3205 * ada-lex.l: Change use of free to xfree (the macro would do so
3206 anyway, but this is harmless).
3207 Include gdb_string.h rather than string.h.
3208 * ada-valprint.c (ada_val_print_stub): Change PTR => void*.
3209
3210 * ada-lang.c (parse): Remove K&Rism in parameter list.
3211 (is_name_suffix): Correct Linux => GNU/Linux in comment.
3212
d81cbc94
MK
32132004-06-30 Mark Kettenis <kettenis@gnu.org>
3214
3215 * dbxread.c (process_one_symbol) [SUN_FIXED_LBRAC_BUG]: Remove
3216 dead code.
3217
07681759
MK
32182004-06-30 Mark Kettenis <kettenis@gnu.org>
3219
3220 * alphabsd-nat.c: Update copyright year.
3221 (getregs_supplies): Use ALPHA_PC_REGNUM instead of PC_REGNUM.
3222
f7948b5f
JB
32232004-06-29 Joel Brobecker <brobecker@gnat.com>
3224
6e0cdd28 3225 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): New function.
f7948b5f
JB
3226 (i386_cygwin_in_solib_call_trampoline): New function.
3227 (i386_cygwin_init_abi): Initialize the in_solib_call_trampoline
3228 and skip_trampoline_code gdbarch methods.
3229
8f113c9a
JB
32302004-06-29 Jim Blandy <jimb@redhat.com>
3231
3232 * Makefile.in (gdb_callback_h): Renamed from callback_h to the
3233 name actually used in the dependency lists.
3234
97dc871c
RC
32352004-06-29 Randolph Chung <tausq@debian.org>
3236
3237 * NEWS (New native configurations): Mention GNU/Linux/hppa.
3238
47216e51
CV
32392004-06-29 Corinna Vinschen <vinschen@redhat.com>
3240
3241 * win32-nat.c (child_pid_to_exec_file): New function.
6780dcde 3242 (init_child_ops): Add child_pid_to_exec_file as to_pid_to_exec_file
47216e51
CV
3243 functionality.
3244
e623b504
AC
32452004-06-28 Andrew Cagney <cagney@gnu.org>
3246
3247 * defs.h (xstrvprintf): Declare.
3248 * utils.c (xstrvprintf): New function.
3249 (internal_vproblem, xstrprintf, xasprintf)
3250 (vfprintf_maybe_filtered, vfprintf_unfiltered): Use xstrvprintf.
3251 * serial.c (serial_printf): Ditto.
3252 * complaints.c (vcomplaint): Ditto.
3253
79acc9b3
CV
32542004-06-29 Corinna Vinschen <vinschen@redhat.com>
3255
3256 * infcmd.c (attach_command): Move call to target_terminal_inferior
3257 behind loading symbol table.
3258
1daf35d9
AC
32592004-06-28 Andrew Cagney <cagney@gnu.org>
3260
3261 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Revert 2004-06-24
3262 change - add back extern deprecated_ui_loop_hook declaration.
3263
b435e160
AC
32642004-06-28 Andrew Cagney <cagney@gnu.org>
3265
3266 * xcoffsolib.c (xcoff_solib_address): Replace xasprintf with
3267 xstrprintf.
3268 * varobj.c (varobj_gen_name, create_child, c_name_of_child)
3269 (c_value_of_variable): Ditto.
3270 * utils.c (internal_vproblem): Ditto.
3271 * solib-aix5.c (build_so_list_from_mapfile): Ditto.
3272 * remote.c (add_packet_config_cmd): Ditto.
3273 * remote-rdp.c (rdp_set_command_line): Ditto.
3274 * regcache.c (regcache_dump): Ditto.
3275 * frv-tdep.c (new_variant, new_variant): Ditto.
3276 * fbsd-proc.c (child_pid_to_exec_file): Ditto.
3277 (fbsd_find_memory_regions): Ditto.
3278 * breakpoint.c (create_thread_event_breakpoint)
3279 (create_breakpoints): Ditto.
3280 * aix-thread.c (aix_thread_pid_to_str): Ditto.
3281 * ada-lang.c (is_package_name): Ditto. Also delete xmalloc call.
3282
06d5cf63
JB
32832004-06-28 Joel Brobecker <brobecker@gnat.com>
3284
3285 * ada-lang.c: Re-indent file, with some massaging to help indent
3286 a bit when the result is otherwise really too ugly.
3287
35809fad
UW
32882004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
3289
3290 * frame.h (struct frame_id): Change bit field type of stack_addr_p,
3291 code_addr_p and special_addr_p to 'unsigned int'.
3292
40e20472
MK
32932004-06-27 Mark Kettenis <kettenis@gnu.org>
3294
3295 * i386v4-nat.c: Update copyright year and tweak comment.
3296 (regmap): Remove trailing comma.
3297 (supply_gregset): Rename local variable i to regnum. Call
3298 regcache_raw_supply instead of supply_register.
3299 (fill_gregset): Rename argument regno to regnum. Call
3300 regcache_raw_collect instead of regcache_collect.
3301
12b0b6de
UW
33022004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
3303
3304 * frame.h (struct frame_id): New fields stack_addr_p, code_addr_p
3305 and special_addr_p.
3306 (frame_id_build, frame_id_build_special): Update comments.
3307 (frame_id_build_wild): New prototype.
3308 * frame.c (frame_id_build, frame_id_build_special): Fill in new
3309 struct frame_id fields.
3310 (frame_id_build_wild): New function.
3311 (frame_id_eq, frame_id_inner): Use new struct frame_id fields.
3312
47b42a3e
MK
33132004-06-27 Mark Kettenis <kettenis@gnu.org>
3314
3315 * config/djgpp/fnchange.lst: Add entries for hppabsd-nat.c and
3316 hppabsd-tdep.c.
3317
1265e4aa
JB
33182004-06-27 Joel Brobecker <brobecker@gnat.com>
3319
3320 * ada-lang.c: Minor reformatting to conform to GNU coding standards.
3321
76a01679
JB
33222004-06-27 Joel Brobecker <brobecker@gnat.com>
3323
3324 * ada-lang.c: Re-indent file.
3325
7aca490a
JB
33262004-06-27 Joel Brobecker <brobecker@gnat.com>
3327
3328 * ada-lang.c (symtab_symbol_info): Remove unused declaration.
3329 (no_symtab_msg): Likewise.
3330
5e987968
AS
33312004-06-27 Andreas Schwab <schwab@suse.de>
3332
3333 * source.c: Fix whitespace.
3334
315c4276
MK
33352004-06-27 Mark Kettenis <kettenis@gnu.org>
3336
d15be926
MK
3337 * configure.in: Include <sys/param.h> for td_pcb test.
3338 * configure: Regenerated.
3339
9062529b
MK
3340 * i386nbsd-nat.c: New file.
3341 * Makefile.in (ALLDEPFILES): Add i386nbsd-nat.c, i386nbsd-tdep.c,
3342 i386obsd-nat.c and i386obsd-tdep.c.
3343 (i386nbsd-nat.o): New dependency.
3344 * config/i386/obsd.mh (NATDEPFILES): Add i386nbsd-nat.o and
3345 bsd-kvm.o.
3346 (LOADLIBES): New variable.
3347 * config/i386/nbsdelf.mh (NATDEPFILES): Add i386nbsd-nat.o and
3348 bsd-kvm.o.
3349 (LOADLIBES): New variable.
3350
8010310e
MK
3351 * config/i386/fbsd64.mh (NATDEPFILES): Add bsd-kvm.o.
3352 (LOADLIBES): New variable.
3353
efe1d7b9
MK
3354 * bsd-kvm.c (bsd_kvm_fetch_registers): Directly return after
3355 fetching from BSD_KVM_PADDR. Correctly lookup address for
3356 "_thread0".
3357
315c4276
MK
3358 * amd64fbsd-nat.c: Include <sys/types.h, <machine/pcb.h> and
3359 "bsd-kvm.h".
3360 (amd64fbsd_supply_pcb): New funcion.
3361 (_initialize_amd64fbsd_nat): Enable libkvm interface.
3362
399cfac6
DL
33632004-06-27 <david@streamline-computing.com>
3364
3365 Partial fix for PR cli/1056.
3366 * valarith.c: Check for zero in division and remainder
3367 evaluation.
3368
6235f9c8
MK
33692004-06-27 Mark Kettenis <kettenis@gnu.org>
3370
3371 * i387-tdep.c: Remove excessive whitespace.
3372
2726dafc
AC
33732004-06-26 Andrew Cagney <cagney@gnu.org>
3374
3375 * gdb-events.sh (deprecated_set_gdb_event_hooks): Deprecated.
3376 * gdb-events.h, gdb-events.c: Re-generate.
3377 * tui/tui-hooks.c (tui_install_hooks): Update.
3378 (tui_remove_hooks): Update.
3379 * mi/mi-cmd-break.c (mi_cmd_break_insert): Update.
3380
0e56aeaf
MK
33812004-06-26 Mark Kettenis <kettenis@gnu.org>
3382
cb461069
MK
3383 * amd64fbsd-nat.c: Don't include <sys/procfs.h> and "gregset.h".
3384 (gregset_t, fpregset_t): Remove typedefs.
3385 (REG_OFFSET): Rename argument.
3386 (amd64bsd_r_reg_offset): Rename from reg_offset.
3387 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
3388 Remove functions.
3389 (_initialize_amd64fbsd_nat): Use amd64fbsd64_r_reg_offset instead
3390 of reg_offset.
3391 * Makefile.in (amd64fbsd-nat.o): Update dependencies.
3392
ecba89de
MK
3393 * amd64-nat.c (amd64_supply_native_gregset): Fix comment.
3394
4cd80476
MK
3395 * vax-tdep.c: Tweak comment.
3396
0e56aeaf
MK
3397 Add OpenBSD/hppa support.
3398 * NEWS (New native configurations): Mention OpenBSD/hppa.
3399 * hppabsd-nat.c, hppabsd-tdep.c, config/pa/obsd.mh,
3400 config/pa/obsd.mt, config/pa/nm-obsd.h, config/pa/tm-bsd.h: New
3401 files.
3402 * Makefile.in (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
3403 (hppabsd-nat.o, hppabsd-tdep.c): New dependencies.
3404 * configure.host: Add hppa*-*-openbsd*.
3405 * configure.tgt: Add hppa*-*-openbsd*.
3406
98bbd631
AC
34072004-06-25 Andrew Cagney <cagney@gnu.org>
3408
3409 * defs.h (deprecated_ui_loop_hook): Deprecated.
3410 * wince.c (child_wait): Update.
3411 * win32-nat.c (child_wait): Update.
3412 * v850ice.c (v850ice_wait): Update.
3413 * top.c (deprecated_ui_loop_hook): Update.
3414 * serial.h: Update.
3415 * ser-unix.c (do_hardwire_readchar, do_hardwire_readchar)
3416 (do_unix_readchar): Update.
3417 * ser-tcp.c (net_open): Update.
3418 * remote-sim.c (gdb_os_poll_quit): Update.
3419 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Update.
3420
769d7dc4
AC
34212004-06-24 Andrew Cagney <cagney@gnu.org>
3422
3423 * defs.h (deprecated_pre_add_symbol_hook)
3424 (deprecated_post_add_symbol_hook): Deprecated.
3425 * symfile.c (symbol_file_add_with_addrs_or_offsets)
3426 (symbol_file_add_with_addrs_or_offsets): Update references.
3427
11c949aa
AC
34282004-06-24 Andrew Cagney <cagney@gnu.org>
3429
3430 * defs.h (post_add_symbol_hook, pre_add_symbol_hook)
3431 (ui_loop_hook, selected_frame_level_changed_hook): Declare.
3432 * wince.c (ui_loop_hook): Delete extern declaration.
3433 * win32-nat.c (ui_loop_hook): Delete extern declaration..
3434 * v850ice.c (ui_loop_hook): Delete extern declaration..
3435 * ser-unix.c (ui_loop_hook): Delete extern declaration..
3436 * ser-tcp.c (ui_loop_hook): Delete extern declaration..
3437 * remote-sim.c (ui_loop_hook): Delete extern declaration..
3438 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Delete extern.
3439 ui_loop_hook declaration.
3440
eedc19af
AC
34412004-06-24 Andrew Cagney <cagney@gnu.org>
3442
3443 * objfiles.h (struct entry_info): Delete entry_func_lowpc and
3444 entry_func_highpc fields.
3445 * objfiles.c (init_entry_point_info): Do not clear
3446 entry_func_lowpc and entry_func_highpc.
3447 (objfile_relocate): Do not relocate entry_func_lowpc and
3448 entry_func_highpc.
3449 * dwarfread.c (read_func_scope): Do not set entry_func_lowpc and
3450 entry_func_highpc.
3451 * dwarf2read.c (read_func_scope): Do not set entry_func_lowpc and
3452 entry_func_highpc.
3453 * blockframe.c (legacy_frame_chain_valid): Replace tests against
3454 entry_func_lowpc and entry_func_highpc with call to
3455 inside_entry_func.
3456
d47079be
MK
34572004-06-24 Mark Kettenis <kettenis@gnu.org>
3458
3459 * sparc64-tdep.c (sparc64_store_arguments): Fix passing
3460 quad-precision floating point arguments in registers.
3461
2107e348
MK
34622004-06-24 Mark Kettenis <kettenis@gnu.org>
3463
3464 From Michael Mueller <m.mueller99@kay-mueller.de>:
3465 * sparc64-tdep.c (sparc64_frame_base_address): Take BIAS into
3466 account.
3467
46587c42
JJ
34682004-06-22 Jeff Johnston <jjohnstn@redhat.com>
3469
3470 * infrun.c (handle_inferior_event): Initialize stopped_by_watchpoint
3471 to -1.
3472 * breakpoint.c (bpstat_stop_status): Move check for ignoring
3473 untriggered watchpoints to a separate if clause. Update function
3474 comment regarding STOPPED_BY_WATCHPOINT argument.
3475
226f5cf4
JB
34762004-06-22 Jim Blandy <jimb@redhat.com>
3477
3478 * gdbarch.sh: Doc fix.
3479
f10683bb
MH
34802004-06-21 Martin Hunt <hunt@redhat.com>
3481 Kevin Buettner <kevinb@redhat.com>
3482
3483 * config/mips/tm-mips.h (SP_REGNUM): Delete define.
3484 * mips-tdep.h (MIPS_SP_REGNUM): Define.
3485 * mips-tdep.c (mips_gdbarch_init): Set SP_REGNUM via call
3486 to set_gdbarch_sp_regnum(). Use cooked register number.
3487 (SP_REGNUM): Replace all occurrences with MIPS_SP_REGNUM.
3488
412d5987
AC
34892004-06-21 Andrew Cagney <cagney@gnu.org>
3490
3491 * gdbarch.sh: When the macro field is empty, do not generate a
3492 macro definition. When the macro field is "=", generate the macro
3493 name from the upper-case function name.
3494 (NUM_REGS, NUM_PSEUDO_REGS, SP_REGNUM, PC_REGNUM, PS_REGNUM)
3495 (FP0_REGNUM, STAB_REG_TO_REGNUM, ECOFF_REG_TO_REGNUM)
3496 (DWARF_REG_TO_REGNUM, SDB_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM)
3497 (REGISTER_NAME, DEPRECATED_REGISTER_VIRTUAL_TYPE)
3498 (DEPRECATED_REGISTER_BYTES, DEPRECATED_REGISTER_BYTE)
3499 (DEPRECATED_REGISTER_RAW_SIZE, DEPRECATED_REGISTER_VIRTUAL_SIZE)
3500 (DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_FP_REGNUM)
3501 (DEPRECATED_TARGET_READ_FP, DEPRECATED_PUSH_ARGUMENTS)
3502 (DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP)
3503 (DEPRECATED_REGISTER_SIZE, CALL_DUMMY_LOCATION)
3504 (DEPRECATED_DO_REGISTERS_INFO, REGISTER_SIM_REGNO)
3505 (REGISTER_BYTES_OK, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER)
3506 (GET_LONGJMP_TARGET, DEPRECATED_INIT_FRAME_PC)
3507 (BELIEVE_PCC_PROMOTION, DEPRECATED_GET_SAVED_REGISTER)
3508 (CONVERT_REGISTER_P, REGISTER_TO_VALUE, VALUE_TO_REGISTER)
3509 (POINTER_TO_ADDRESS, ADDRESS_TO_POINTER, INTEGER_TO_ADDRESS)
3510 (DEPRECATED_POP_FRAME, DEPRECATED_STORE_STRUCT_RETURN)
3511 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE)
3512 (DEPRECATED_EXTRACT_RETURN_VALUE, DEPRECATED_STORE_RETURN_VALUE)
3513 (DEPRECATED_USE_STRUCT_CONVENTION)
3514 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
3515 (DEPRECATED_FRAME_INIT_SAVED_REGS)
3516 (DEPRECATED_INIT_EXTRA_FRAME_INFO, SKIP_PROLOGUE, INNER_THAN)
3517 (BREAKPOINT_FROM_PC, MEMORY_INSERT_BREAKPOINT)
3518 (MEMORY_REMOVE_BREAKPOINT, DECR_PC_AFTER_BREAK)
3519 (DEPRECATED_FUNCTION_START_OFFSET, FRAME_ARGS_SKIP)
3520 (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION, DEPRECATED_FRAME_CHAIN)
3521 (DEPRECATED_FRAME_CHAIN_VALID, DEPRECATED_FRAME_SAVED_PC)
3522 (DEPRECATED_FRAME_ARGS_ADDRESS, DEPRECATED_FRAME_LOCALS_ADDRESS)
3523 (DEPRECATED_SAVED_PC_AFTER_CALL, FRAME_NUM_ARGS)
3524 (DEPRECATED_STACK_ALIGN, DEPRECATED_REG_STRUCT_HAS_ADDR)
3525 (FRAME_RED_ZONE_SIZE, ADDR_BITS_REMOVE, SMASH_TEXT_ADDRESS)
3526 (SOFTWARE_SINGLE_STEP, SKIP_TRAMPOLINE_CODE)
3527 (IN_SOLIB_CALL_TRAMPOLINE, IN_SOLIB_RETURN_TRAMPOLINE)
3528 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL)
3529 (NAME_OF_MALLOC, CANNOT_STEP_BREAKPOINT)
3530 (HAVE_NONSTEPPABLE_WATCHPOINT, ADDRESS_CLASS_TYPE_FLAGS)
3531 (FETCH_POINTER_ARGUMENT): Replace the macro name with "=".
3532
68908a3e
AC
35332004-06-21 Andrew Cagney <cagney@gnu.org>
3534
48f7351b
AC
3535 * gdbarch.sh: For gdbarch_dump, print the "function" rather than
3536 macro name, and the function rather than macro value. Only wrap
3537 macro print statements in #ifdef. Move format logic to where it
3538 is needed.
3539 * gdbarch.c: Re-generate.
3540
283354d8
AC
3541 * gdbarch.sh (read): Delete "print_p" and "description", add
3542 "garbage_at_eol". Check for non-empty garbage at end-of-line.
3543 Delete references to print_p.
3544 (TARGET_ARCHITECTURE): Delete print predicate.
3545 * gdbarch.c: Re-generate.
3546
68908a3e
AC
3547 * gdbarch.sh: Check that multi-arch methods do not provide a
3548 macro.
3549 (register_type, unwind_dummy_id, push_dummy_call, push_dummy_code)
3550 (print_registers_info, print_float_info, print_vector_info)
3551 (adjust_breakpoint_address, remote_translate_xfer_address)
3552 (construct_inferior_arguments, skip_solib_resolver, unwind_pc)
3553 (address_class_type_flags_to_name, unwind_sp): Remove the macro
3554 name from the multi-arch definition.
3555
a2428dbe
AC
35562004-06-20 Andrew Cagney <cagney@gnu.org>
3557
3558 * gdbarch.sh: Sort by the function, instead of macro name.
3559 * gdbarch.c: Re-generate.
3560
750eb019
AC
35612004-06-20 Andrew Cagney <cagney@gnu.org>
3562
66d659b1
AC
3563 * gdbarch.sh: Use the function, instead of macro name in
3564 errors and the log file.
3565 (return_value): Remove stray ":" in spec.
3566
750eb019
AC
3567 * gdbarch.sh (RETURN_VALUE): Default to legacy_return_value.
3568 * gdbarch.h, gdbarch.c: Re-generate.
3569 * Makefile.in (arch-utils.o): Update dependencies.
3570 * values.c (using_struct_return): Move code calling
3571 USE_STRUCT_CONVENTION to legacy_return_value, simplify.
3572 * stack.c (return_command): Move code calling STORE_RETURN_VALUE
3573 to legacy_return_value, simplify.
3574 * infcmd.c (print_return_value): Move code calling
3575 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS and EXTRACT_RETURN_VALUE
3576 to legacy_return_value, simplify.
3577 * infcall.c (call_function_by_hand): Move code calling
3578 EXTRACT_RETURN_VALUE to legacy_return_value, simplify.
3579 * arch-utils.c: Update copyright. Include "gdbcore.h".
3580 (legacy_return_value): New function.
3581 * arch-utils.h: Update copyright.
3582 (legacy_return_value): Declare.
3583
b5622e8d
AC
35842004-06-20 Andrew Cagney <cagney@gnu.org>
3585
3586 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Deprecated.
3587 * gdbarch.h, gdbarch.c: Re-generate.
3588 * values.c (using_struct_return): Update call.
3589 * mcore-tdep.c: Update comment.
3590 * infcall.c (call_function_by_hand): Update comment.
3591 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3592 * arch-utils.h (always_use_struct_convention): Update.
3593 * v850-tdep.c (v850_gdbarch_init): Update.
3594 * sh64-tdep.c (sh64_gdbarch_init): Update.
3595 * sh-tdep.c (sh_gdbarch_init): Update.
3596 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3597 * mips-tdep.c (mips_gdbarch_init): Update.
3598 * mcore-tdep.c (mcore_gdbarch_init): Update.
3599 * m32r-tdep.c (m32r_gdbarch_init): Update.
3600 * ia64-tdep.c (ia64_gdbarch_init): Update.
3601 * h8300-tdep.c (h8300_gdbarch_init): Update.
3602 * frv-tdep.c (frv_gdbarch_init): Update.
3603 * cris-tdep.c (cris_gdbarch_init): Update.
3604 * arm-tdep.c (arm_gdbarch_init): Update.
3605 * alpha-tdep.c (alpha_gdbarch_init): Update.
3606
5191de37
MC
36072004-06-18 Michael Chastain <mec.gnu@mindspring.com>
3608
3609 * PROBLEMS: Add more specific information, and a work-around,
3610 for PR gdb/1458.
3611
782263ab
AC
36122004-06-18 Andrew Cagney <cagney@gnu.org>
3613
3614 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Deprecated.
3615 * gdbarch.h, gdbarch.c: Re-generate.
3616 * ada-lang.c (ada_finish_decode_line_1): Update.
3617 * infrun.c (handle_inferior_event): Update.
3618 * infcall.c (find_function_addr): Update.
3619 * linespec.c (minsym_found): Update.
3620 * symtab.c (find_function_start_sal, skip_prologue_using_sal):
3621 Update.
3622 * blockframe.c (legacy_frameless_look_for_prologue): Update.
3623 * cli/cli-cmds.c (disassemble_command): Update.
3624 * vax-tdep.c (vax_gdbarch_init): Update.
3625
2f305df1
MK
36262004-06-18 Mark Kettenis <kettenis@gnu.org>
3627
3628 * i386-tdep.c (i386_collect_fpregset): Fix comment.
3629
e5fe55f7
AC
36302004-06-17 Andrew Cagney <cagney@gnu.org>
3631
3632 GDB 6.1.1 released from the GDB 6.1 branch.
3633 * NEWS: Merge in 6.1.1 NEWS from 6.1 branch.
3634 * PROBLEMS: Ditto.
3635
473b7be6
DJ
36362004-06-16 Daniel Jacobowitz <dan@debian.org>
3637
3638 PR gdb/1658
3639 * dwarf2read.c (dwarf_decode_lines): Read the length of the extended
3640 operation as a uleb128. Found by Michael Coulter.
3641
96d887e8
PH
36422004-06-16 Paul N. Hilfinger <Hilfinger@gnat.com>
3643
3644 * ada-tasks.c: Rename build_task_list to ada_build_task_list, and
3645 make it non-static.
3646 * ada-lang.h (task_control_block): declaration moved from ada-task.c
3647 to ada-lang.h; this is needed to be able to implement the kill command
3648 in multi-task mode.
3649 (task_ptid): Ditto.
3650 (task_entry): Ditto.
3651 (task_list): Ditto.
3652 (ada_build_task_list): Ditto.
3653
3654 * ada-lang.c: Conditionalize routines and data structures related
3655 to breakpoints, exceptions, completion, and symbol caching on
3656 GNAT_GDB, since these are not yet used in the submitted public sources.
3657 (ada_main_name): Editorial: Move definition out of exception-related
3658 code.
3659
31eef181
AC
36602004-06-15 Andrew Cagney <cagney@gnu.org>
3661
3662 * mips-tdep.c (non_heuristic_proc_desc): Delete call to
3663 deprecated_pc_in_call_dummy.
3664
2c500098
AM
36652004-06-15 Alan Modra <amodra@bigpond.net.au>
3666
3667 * dsrec.c (load_srec, make_srec): Use bfd_get_section_size instead of
3668 bfd_get_section_size_before_reloc or _raw_size.
3669 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
3670 * dwarf2read.c (dwarf2_locate_sections): Likewise.
3671 (dwarf2_read_section): Likewise.
3672 * elfread.c (elf_locate_sections): Likewise.
3673 * gcore.c (derive_heap_segment): Likewise.
3674 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
3675 * remote-e7000.c (e7000_load): Likewise.
3676 * remote-m32r-sdi.c (m32r_load): Likewise.
3677 * remote-mips.c (mips_load_srec): Likewise.
3678 (pmon_load_fast): Likewise.
3679 * remote.c (compare_sections_command): Likewise.
3680 * symfile.c (add_section_size_callback): Likewise.
3681 (load_section_callback): Likewise.
3682 (pc_in_unmapped_range): Likewise.
3683 (pc_in_mapped_range): Likewise.
3684 (sections_overlap): Likewise.
3685 (list_overlays_command): Likewise.
3686 (simple_overlay_update_1): Likewise.
3687 (simple_overlay_update): Likewise.
3688 * tracepoint.c (remote_set_transparent_ranges): Likewise.
3689 * win32-nat.c (core_section_load_dll_symbols): Likewise.
3690
90f943f1
RC
36912004-06-14 Randolph Chung <tausq@debian.org>
3692
3693 * Makefile.in (hppa-hpux-tdep.o): Update dependency.
3694 * hppa-hpux-tdep.c (hp_cxx_exception_support_initialized): Make
3695 static.
3696 (hppa_hpux_inferior_created): New function.
3697 (hppa_hpux_init_abi): Register observer.
3698 * symfile.c (hp_cxx_exception_support_initialized)
3699 (RESET_HP_UX_GLOBALS): Remove HPUXHPPA specific hacks.
3700 (symbol_file_add_main_1, symbol_file_clear): Likewise.
3701
700c15aa
RC
37022004-06-14 Randolph Chung <tausq@debian.org>
3703
3973a7d3
AC
3704 * MAINTAINERS (Write After Approval): Alphabetize my entry
3705 correctly.
700c15aa 3706
cea4838c
AC
37072004-06-14 Andrew Cagney <cagney@gnu.org>
3708
3709 * MAINTAINERS (testsuite): List Michael Chastain as the lead
3710 testsuite maintainer.
3711
97092415
AC
37122004-06-13 Andrew Cagney <cagney@gnu.org>
3713
e8c3165b
AC
3714 * infcmd.c (print_return_value): Fix logic, allow
3715 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS when struct_return.
3716
bceabdd8
AC
3717 * gdbarch.sh: For predicates, do not check GDB_MULTI_ARCH when
3718 defining any macros.
3719 * gdbarch.h: Re-generate.
3720
57010b1c
AC
3721 * gdbarch.sh: Delete "level" attribute. Only check for a macro
3722 redefinition when multi-arch greater than GDB_MULTI_ARCH_PARTIAL.
3723 * gdbarch.h: Re-generate.
3724
bc87dfa0
AC
3725 * values.c (generic_use_struct_convention): Don't check gcc_p.
3726
15ac804d
AC
3727 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE)
3728 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Delete.
3729 * gdbarch.h, gdbarch.c: Regenerate.
3730 * ns32k-tdep.h (NS32K_MAX_REGISTER_RAW_SIZE)
3731 (NS32K_MAX_REGISTER_VIRTUAL_SIZE): Delete macros.
3732 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
3733 deprecated_max_register_raw_size and
3734 deprecated_max_register_virtual_size.
3735 * v850-tdep.c (v850_gdbarch_init): Ditto.
3736 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
3737 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3738 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
3739 * cris-tdep.c (cris_gdbarch_init): Ditto.
3740
97092415
AC
3741 * gdbarch.sh (RETURN_VALUE_ON_STACK): Delete method.
3742 * gdbarch.h, gdbarch.c: Re-generate.
3743 * m68hc11-tdep.c (m68hc11_return_value_on_stack): Delete function.
3744 (m68hc11_use_struct_convention): Delete function.
3745 (m68hc11_extract_struct_value_address): Delete function.
3746 (m68hc11_return_value): New function.
3747 (m68hc11_gdbarch_init): Instead of store_return_value,
3748 extract_return_value, return_value_on_stack,
3749 deprecated_extract_struct_value_address and use_struct_convention,
3750 set return_value.
3751 * values.c (using_struct_return): Do not call
3752 RETURN_VALUE_ON_STACK.
3753 * arch-utils.h (generic_return_value_on_stack_not): Delete
3754 declaration.
3755 * arch-utils.c (generic_return_value_on_stack_not): Delete
3756 function.
3757
44e5158b
AC
37582004-06-12 Andrew Cagney <cagney@gnu.org>
3759
3760 * values.c (register_value_being_returned): Delete function.
3761 * infcmd.c (legacy_return_value): Delete function.
3762 * infcall.c (call_function_by_hand): Inline
3763 "register_value_being_returned", simplify.
3764 * values.c (using_struct_return): Update comment, refer to
3765 print_return_value instead of register_value_being_returned.
3766 * infcmd.c (print_return_value): Inline calls to
3767 register_value_being_returned and legacy_return_value. Simplify.
3768
b887c273
RC
37692004-06-11 Randolph Chung <tausq@debian.org>
3770
3771 * somread.c (som_symtab_read): Exclude gcc local symbols.
3772
1b2bfbb9
RC
37732004-06-11 Randolph Chung <tausq@debian.org>
3774
3973a7d3
AC
3775 * infrun.c (handle_inferior_event): Handle the case when a
3776 trampoline ends up in the runtime resolver, and if the trampoline
3777 has no name. Rearrange the code so that all the trampoline
3778 processing happens before other step-out-of-range handling.
1b2bfbb9 3779
a9d61c86
MH
37802004-06-11 Martin Hunt <hunt@redhat.com>
3781
3782 * mips-tdep.c (mips_gdbarch_init): Recognize vr4120
3783 has no fpu.
3784
2c87cf5a
AC
37852004-06-10 Andrew Cagney <cagney@gnu.org>
3786
3787 * blockframe.c (legacy_inside_entry_func): Delete.
3788 (legacy_frame_chain_valid): Inline call to
3789 legacy_inside_entry_func, simplify.
3790
0b67b468 37912004-06-10 Bob Rossi <bob@brasko.net>
57c22c6c
BR
3792
3793 * dbxread.c (read_dbx_symtab): Set pst->dirname when known.
3973a7d3
AC
3794 * dwarf2read.c (partial_die_info): Add dirname field.
3795 (dwarf2_build_psymtabs_hard): Set pst->dirname when known.
3796 (read_partial_die): Save away DW_AT_comp_dir.
3797 * defs.h (symtab_to_filename): Removed.
3798 * source.c (find_and_open_source): Added.
57c22c6c 3799 (open_source_file): Just calls find_and_open_source.
3973a7d3
AC
3800 (symtab_to_filename): Removed.
3801 (symtab_to_fullname, psymtab_to_fullname): Added.
57c22c6c
BR
3802 * source.h (psymtab_to_fullname,symtab_to_fullname): Added.
3803 * symtab.c (lookup_symtab): Call symtab_to_fullname instead of
3804 symtab_to_filename.
3805 * symtab.h (partial_symtab): Add dirname field.
3806 * mi/mi-cmd-file.c (FILENAME,FULLNAME): Added.
3973a7d3
AC
3807 (mi_cmd_file_list_exec_source_file): Call new function
3808 symtab_to_fullname to find fullname.
57c22c6c 3809 (mi_cmd_file_list_exec_source_files): Added.
3973a7d3 3810 * mi/mi-cmds.c (mi_cmd_mi_cmds): Add -file-list-exec-source-files.
57c22c6c
BR
3811 * mi/mi-cmds.h (mi_cmd_file_list_exec_source_files): Added.
3812
9a1dd1ad
AC
38132004-06-10 Andrew Cagney <cagney@gnu.org>
3814
239ae8c7
AC
3815 * avr-tdep.c (avr_gdbarch_init): Do not set use_struct_convention
3816 to generic_use_struct_convention, the default value.
3817
fc720350
AC
3818 * mn10300-tdep.c (mn10300_type_align): Call internal_error instead
3819 of abort.
3820
9a1dd1ad
AC
3821 * ns32k-tdep.c (ns32k_push_arguments): New function.
3822 (ns32k_gdbarch_init): Set deprecated_push_arguments.
3823 * infcall.c (call_function_by_hand): Call error instead of
3824 legacy_push_arguments.
3825 * value.h (legacy_push_arguments): Delete declaration.
3826 * valops.c (legacy_push_arguments): Delete function.
3827 (value_push): Delete function.
3828
fea25152
BF
38292004-06-10 Brian Ford <ford@vss.fsi.com>
3830
3831 * coffread.c (coff_symfile_read): Prevent mixed debugging formats
3832 from corrupting/reinitializing the psymtab. Support DWARF 2 frame
3833 info.
3834 * dbxread.c (elfstab_build_psymtabs): Remove bogus comment.
3835
30a4a8e0
AC
38362004-06-10 Andrew Cagney <cagney@gnu.org>
3837
3838 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Delete.
3839 * gdbarch.h, gdbarch.c: Re-generate.
3840 * frame.h (deprecated_pc_in_call_dummy): Delete "sp" and "fp"
3841 parameters.
3842 * dummy-frame.c (deprecated_pc_in_call_dummy): Update.
3843 * arm-tdep.c (arm_pc_is_thumb_dummy): Call
3844 deprecated_pc_in_call_dummy instead of
3845 DEPRECATED_PC_IN_CALL_DUMMY.
3846 (arm_skip_prologue): Ditto.
3847 * xstormy16-tdep.c (xstormy16_pop_frame, xstormy16_scan_prologue)
3848 (xstormy16_frame_saved_pc, xstormy16_frame_chain): Ditto.
3849 * v850-tdep.c (v850_find_callers_reg, v850_frame_chain)
3850 (v850_pop_frame, v850_frame_saved_pc, v850_frame_init_saved_regs):
3851 Ditto.
3852 * sh64-tdep.c (sh64_frame_chain, sh64_get_saved_pr)
3853 (sh64_init_extra_frame_info, sh64_get_saved_register)
3854 (sh64_pop_frame): Ditto.
3855 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
3856 * mcore-tdep.c (mcore_find_callers_reg, mcore_frame_saved_pc)
3857 (mcore_pop_frame, mcore_init_extra_frame_info): Ditto.
3858 * h8300-tdep.c (h8300_frame_chain, h8300_frame_saved_pc)
3859 (h8300_pop_frame): Ditto.
3860 * blockframe.c (legacy_inside_entry_func)
3861 (legacy_frame_chain_valid): Ditto.
3862 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update call
3863 to deprecated_pc_in_call_dummy.
3864
81cfbe54
AC
38652004-06-09 Andrew Cagney <cagney@gnu.org>
3866
a1f4a1b6
AC
3867 * gdbarch.sh (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Do not
3868 provide a default value.
3869 (CONVERT_REGISTER_P): Default to generic_convert_register_p.
3870 * gdbarch.h, gdbarch.c: Re-generate.
3871 * arch-utils.c (generic_convert_register_p): Rename
3872 legacy_convert_register_p
3873 (legacy_register_to_value, legacy_value_to_register): Delete
3874 functions.
3875 * arch-utils.h (generic_convert_register_p): Rename
3876 legacy_convert_register_p.
3877 (legacy_register_to_value, legacy_value_to_register): Delete
3878 declarations.
3879
9730f241
AC
3880 * gdbarch.sh (DEPRECATED_REGISTER_CONVERT_TO_RAW)
3881 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL)
3882 (DEPRECATED_REGISTER_CONVERTIBLE): Delete.
3883 * gdbarch.h, gdbarch.c: Re-generate.
3884 * infcmd.c (default_print_registers_info): Simplify.
3885 * findvar.c (value_of_register): Simplify.
3886 * mi/mi-main.c (get_register): Simplify.
3887 * arch-utils.c (legacy_convert_register_p): Always return 0.
3888 (legacy_register_to_value, legacy_value_to_register): Always call
3889 internal_error.
3890
8a1bf479
AC
3891 * infptrace.c (child_xfer_memory) [CLEAR_INSN_CACHE]: Delete
3892 #ifdef CLEAR_INSN_CACHE code.
3893 * target.c (generic_mourn_inferior) [CLEAR_DEFERRED_STORES]:
3894 Delete #ifdef CLEAR_DEFERRED_STORES code.
3895
4b38d6f1
AC
3896 * solib-svr4.c [HANDLE_SVR4_EXEC_EMULATORS]: Delete #ifdef code.
3897
2d62ecc7
AC
3898 * config/ia64/tm-linux.h (TARGET_ELF64): Delete macro, Update
3899 copyright.
3900 * config/ia64/tm-aix.h (TARGET_ELF64): Ditto.
3901
be4f7469
AC
3902 * config/mips/mipsv4.mh: Delete file.
3903
81cfbe54
AC
3904 * config/pa/tm-hppa64.h (HPREAD_ADJUST_STACK_ADDRESS): Delete
3905 unreferenced macro.
3906 (hpread_adjust_stack_address): Delete declaration.
3907
d966f0cb
AC
39082004-06-08 Andrew Cagney <cagney@gnu.org>
3909
3910 * infptrace.c [ATTACH_DETACH]: Remove #ifdef wrappers.
3911 (attach, detach): When neither PT_ATTACH / PT_DETACH nor
3912 PTRACE_ATTACH / PTRACE_DETACH available call error.
3913 (PT_ATTACH, PT_DETACH): Move definition to attach / detach.
3914 * infttrace.c (update_thread_state_after_attach, attach, detach):
3915 Remove #ifdef wrappers.
3916 * inftarg.c (child_attach, child_detach): Remove #ifdef wrappers.
3917 * gnu-nat.c [ATTACH_DETACH]: Remove #ifdef wrappers.
3918 * config/nm-bsd.h (ATTACH_DETACH): Delete.
3919 * config/nm-sysv4.h (ATTACH_DETACH): Delete.
3920 * config/nm-nbsd.h (ATTACH_DETACH): Delete.
3921 * config/nm-linux.h (ATTACH_DETACH): Delete.
3922 * config/rs6000/nm-rs6000.h (ATTACH_DETACH): Delete.
3923 * config/pa/nm-hppah.h (ATTACH_DETACH): Delete.
3924 * config/i386/nm-i386sco5.h (ATTACH_DETACH): Delete.
3925 * config/i386/nm-i386sco4.h (ATTACH_DETACH): Delete.
3926 * config/i386/nm-i386gnu.h (ATTACH_DETACH): Delete.
3927
d91670b9
CV
39282004-06-08 Corinna Vinschen <vinschen@redhat.com>
3929
3930 * configure.in: Set $configdir to the right OS specific value.
3931 Use value when setting $tcldir and $tkdir.
3932 * configure: Regenerate.
3933
28ba0b33
PB
39342004-06-06 Paul Brook <paul@codesourcery.com>
3935
3936 * gdb/dwarf2-frame.c (decode_frame_entry_1): Decode version 3 CIE
3937 records.
3938
f26caa11
PH
39392004-06-08 Paul N. Hilfinger <Hilfinger@gnat.com>
3940
3941 * ada-lang.c (lookup_symbol_in_language): New function to allow
3942 re-use of another language's symbol lookup code. (Placed here
3943 temporarily while Ada support is being integrated into the public
3944 tree).
3945 (restore_language): New auxiliary function for
3946 lookup_symbol_in_language.
3947 * ada-lang.h (lookup_symbol_in_language): Declare (Placed here
3948 temporarily while Ada support is being integrated into the public
3949 tree).
3950
d560a54b
AO
39512004-06-08 Alexandre Oliva <aoliva@redhat.com>
3952
e75d110c
AO
3953 * Makefile.in (check//%): New.
3954
d560a54b
AO
3955 * mn10300-tdep.c (mn10300_extract_return_value): Rewrite.
3956 (mn10300_store_return_value): Rewrite.
3957 (mn10300_type_align): New.
3958 (mn10300_use_struct_convention): Rewrite.
3959 (mn10300_return_value): New, using all of the above.
3960 (mn10300_pop_frame_regular): Add saved_regs_size.
3961 (mn10300_gdbarch_init): Remove deprecated rewritten entry points.
3962
a72fbdb7
AO
3963 * mn10300-tdep.c (mn10300_analyze_prologue): Don't compute saved
3964 regs if PC is on movm.
3965
01904826
JB
39662004-06-07 Jim Blandy <jimb@redhat.com>
3967
3968 Add native Linux support for the PowerPC E500.
3969 * ppc-tdep.h (struct gdbarch_tdep): New member: 'ppc_gprs_pseudo_p'.
3970 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it to false on
3971 all architectures except the E500.
3972 * ppc-linux-nat.c: (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): New
3973 #definitions.
3974 (struct gdb_evrregset_t): New type.
3975 (have_ptrace_getsetevrregs): New variable.
3976 (get_spe_registers, read_spliced_spe_reg, fetch_spe_register,
3977 fetch_spe_registers): New functions.
3978 (fetch_register): Call fetch_spe_register as appropriate.
3979 Assert that we're only passed raw register numbers.
3980 (fetch_ppc_registers): Call fetch_spe_registers as appropriate.
3981 Don't fetch gprs if they're pseudoregisters.
3982 (set_spe_registers, write_spliced_spe_reg, store_spe_register,
3983 store_spe_registers): New functions.
3984 (store_register): Call store_spe_register as appropriate.
3985 Assert that we're only passed raw register numbers.
3986 (store_ppc_registers): Call store_spe_registers as appropriate.
3987 Don't store gprs if they're pseudoregisters.
3988
f90ef764
JJ
39892004-06-07 Jeff Johnston <jjohnstn@redhat.com>
3990
3991 * thread-db.c (thread_get_info_callback): Fill in the thread_info
3992 struct if one exists, even if we are dealing with a zombie thread.
3993
45b75230
AC
39942004-06-07 Andrew Cagney <cagney@gnu.org>
3995
3996 * target.h (PC_REQUIRES_RUN_BEFORE_USE): Delete definition.
3997 * config/pa/tm-hppa.h (DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE):
3998 Rename PC_REQUIRES_RUN_BEFORE_USE.
3999 * breakpoint.c (breakpoint_sals_to_pc): Update. Wrap reference in
4000 #ifdef.
4001
1658da49
RC
40022004-06-07 Randolph Chung <tausq@debian.org>
4003
4004 * hppa-tdep.c (hppa_frame_cache): Handle the cases when we start
4005 unwinding after sp has been saved to the stack but before the end
4006 of the prologue, and after the fp has been modified but before it has
4007 been saved to the stack.
4008 (hppa_frame_base_address, hppa_frame_base, hppa_frame_base_sniffer):
4009 Remove superfluous definitions.
4010 (hppa_gdbarch_init): Remove superfluous frame base sniffer.
4011
9a727a3c
RC
40122004-06-07 Guy Martin <gmsoft@gentoo.org>
4013
4014 Committed by Randolph Chung.
4015 * hppa-linux-nat.c: Include the correct version of the header file
4016 depending on the kernel version.
4017
9e500012
RC
40182004-06-06 Randolph Chung <tausq@debian.org>
4019
4020 * infrun.c (trap_expected_after_continue): Remove HP_OS_BUG workaround.
4021 (proceed, init_wait_for_inferior, handle_inferior_event): Likewise.
4022
3388d7ff
RC
40232004-06-06 Randolph Chung <tausq@debian.org>
4024
4025 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
4026 (hppa_hpux_skip_trampoline_code): Don't cache symbol values.
4027 * hppa-linux-tdep.c (hppa_linux_in_dyncall): Likewise.
4028 * hppa-tdep.c (hppa_symbol_address): New function definition.
4029 * hppa-tdep.h (hppa_symbol_address): New function declaration.
4030
d49771ef
RC
40312004-06-06 Randolph Chung <tausq@debian.org>
4032
4033 * hppa-tdep.h (struct value): Forward declaration.
4034 (gdbarch_tdep): Define tdep find_global_pointer method.
4035 * hppa-tdep.c (hppa32_push_dummy_call): Find the global pointer
4036 associated with the function we are trying to call, and write it
4037 to the gp register.
4038 (hppa32_convert_from_funct_ptr_addr): New function.
4039 (hppa_find_global_pointer): New function.
4040 (hppa_gdbarch_init): Set default find_global_pointer method; set
4041 convert_from_func_ptr_addr method.
4042 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): New function.
4043 (hppa_linux_init_abi): Set find_global_pointer method.
4044 * Makefile.in (hppa-linux-tdep.o): Add value.h dependency.
4045
7d9b040b
RC
40462004-06-06 Randolph Chung <tausq@debian.org>
4047
4048 * gdbarch.sh (PUSH_DUMMY_CALL): Change CORE_ADDR func_addr argument
4049 to struct value *function.
4050 * gdbarch.c: Regenerate.
4051 * gdbarch.h: Likewise.
4052 * infcall.c (call_function_by_hand): Pass entire function value
4053 to push_dummy_call.
4054
4055 * Makefile.in (alpha-tdep.o, frv-tdep.o, ia64-tdep.o, mips-tdep.o)
4056 (ppc-sysv-tdep.o, rs6000-tdep.o): Update dependencies.
4057 * alpha-tdep.c (alpha_push_dummy_call): Update call signature.
4058 * amd64-tdep.c (amd64_push_dummy_call): Likewise.
4059 * arm-tdep.c (arm_push_dummy_call): Likewise.
4060 * avr-tdep.c (avr_push_dummy_call): Likewise.
4061 * cris-tdep.c (cris_push_dummy_call): Likewise.
4062 * d10v-tdep.c (d10v_push_dummy_call): Likewise.
4063 * frv-tdep.c (frv_push_dummy_call): Likewise.
4064 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
4065 * hppa-tdep.c (hppa32_push_dummy_call)
4066 (hppa64_push_dummy_call): Likewise.
4067 * i386-tdep.c (i386_push_dummy_call): Likewise.
4068 * ia64-tdep.c (ia64_push_dummy_call): Likewise.
4069 * m32r-tdep.c (m32r_push_dummy_call): Likewise.
4070 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
4071 * m68k-tdep.c (m68k_push_dummy_call): Likewise.
4072 * m88k-tdep.c (m88k_push_dummy_call): Likewise.
4073 * mips-tdep.c (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
4074 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Likewise.
4075 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
4076 (ppc64_sysv_abi_push_dummy_call): Likewise.
4077 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call)
4078 (ppc64_sysv_abi_push_dummy_call): Likewise.
4079 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
4080 * s390-tdep.c (s390_push_dummy_call): Likewise.
4081 * sh-tdep.c (sh_push_dummy_call_fpu)
4082 (sh_push_dummy_call_nofpu): Likewise.
4083 * sparc-tdep.c (sparc32_push_dummy_call): Likewise.
4084 * sparc64-tdep.c (sparc64_push_dummy_call): Likewise.
4085 * vax-tdep.c (vax_push_dummy_call): Likewise.
4086
4a19ea35
JB
40872004-06-04 Jim Blandy <jimb@redhat.com>
4088
8327ccee
JB
4089 * ppc-linux-nat.c (fetch_register): Don't forget to pass the
4090 gdbarch argument to register_size.
4091
a3c001ce
JB
4092 * rs6000-tdep.c (rs6000_store_return_value): Use
4093 regcache_cooked_write_part instead of
4094 deprecated_write_register_bytes.
4095 (rs6000_gdbarch_init): Register it for gdbarch_store_return_value,
4096 not gdbarch_deprecated_store_return_value.
4097
4a19ea35
JB
4098 * ppc-linux-nat.c (store_register, fetch_register): Remove
4099 incorrect assertions. Simplify and generalize handling of
4100 transfers whose sizes are not multiples of, or less than, sizeof
4101 (PTRACE_XFER_TYPE).
4102
b9b5d7ea
JJ
41032004-06-04 Jeff Johnston <jjohnstn@redhat.com>
4104
4105 * infrun.c (handle_inferior_event): Don't treat an invalid ptid
4106 as a new thread event.
720c7d64 4107 * thread-db.c (thread_get_info_callback): If the thread is a
b9b5d7ea 4108 zombie, return TD_THR_ZOMBIE.
720c7d64 4109 (thread_from_lwp): If thread_get_info_callback returns
b9b5d7ea
JJ
4110 TD_THR_ZOMBIE, check if the thread is still on the thread list
4111 and return a -1 ptid if not found.
4112 (thread_db_wait): If thread_from_lwp returns a -1 ptid, then
4113 change the status to TARGET_WAITKIND_SPURIOUS.
4114
c8a3b559
CV
41152004-06-03 Corinna Vinschen <vinschen@redhat.com>
4116
4117 * sh-tdep.c (sh3e_sh4_store_return_value): Correctly store
4118 double values in little endian mode.
4119
20605361
AC
41202004-06-02 Albert Chin-A-Young <china@thewrittenword.com>
4121
4122 Committed by Andrew Cagney.
4123 * gdb/dictionary.c, gdb/gdbtypes.h: Remove trailing comma
4124 after last enum constant to avoid error from IBM C
4125 compiler.
4126
bc97b3ba
JB
41272004-06-02 Jim Blandy <jimb@redhat.com>
4128
4129 * ppc-linux-nat.c (store_register, fetch_register): Rename 'mess'
4130 to 'message', and make it local to the lone block that uses it.
4131
1da28ab0
JB
4132 * ppc-linux-nat.c (store_register): Remove unused local 'offset'.
4133
4c4b4cd2
PH
41342004-06-02 Paul N. Hilfinger <hilfinger@gnat.com>
4135
8a2225b2
PH
4136 * ada-exp.y: Update copyright notice.
4137 Include block.h.
4138
4139 Replace REGNAME, LAST, INTERNAL_VARIABLE with
4140 SPECIAL_VARIABLE and unify the treatment of these cases.
4141
4142 (write_attribute_call0): Remove.
4143 (write_attribute_call1): Remove.
4144 (write_attribute_calln): Remove.
4145 (save_qualifier): Add missing semicolon.
4146
4147 (simple_exp,exp): Decomment (i.e., reactivate) code that was
4148 temporarily disabled to allow compilation with FSF head version.
4149
4150 (simple_exp syntax): Remove use of OP_ADA_ATTRIBUTE and
4151 use individual operators (OP_*) for all attributes.
4152 (exp syntax): Use write_int.
4153 Handle STRING literals with OP_STRING.
4154 (variable syntax): Add limit parameter to calls to
4155 write_object_renaming.
4156
4157 (temp_parse_space): New definition to hold entities that need
4158 only live until the next call to ada_parse.
4159 (string_to_operator): Rename fields of ada_opname_table entries.
4160
4161 (write_var_from_sym): Record block.
4162 (write_var_from_name): Minor reformatting.
4163 Make sure saved name is properly encoded in the case of multiple
4164 matches, and set its language to Ada.
4165 Update comment.
4166 Modify to indicate unresolved name as symbol in the UNRESOLVED
4167 namespace, allocated in temp_parse_space.
4168 (write_int): New function.
4169
4170 (write_object_renaming): Add max_depth parameter to limit
4171 chains of object renamings.
4172 Handle case where root of renaming expression is itself a renaming.
4173 Use temp_parse_space for temporary name buffer.
4174 Handle renamings to dereferenced pointers (___XEXA suffices).
4175
4176 (ada_parse, yyerror, string_to_operator,
4177 write_var_from_sym, write_var_from_name, write_attribute_call0,
4178 write_attribute_call1, write_attribute_calln,
4179 write_object_renaming): Protoize.
4180
4181 (_initialize_ada_exp): New function.
4182
4183 * ada-lang.c: Update copyright notice.
4184 General terminology change to conform to GNAT compiler usage:
4185 mangle => encode, demangle => decode
4186 Include gdb_obstack.h.
4187 Include gdb_regex.h
4188 Include frame.h
4189 Include hashtab.h
4190 Include completer.h
4191 Include gdb_stat.h
4192 Include block.h
4193 Include infcall.h
4194
4195 (ADA_RETAIN_DOTS): Make sure this is defined.
4196 (TRUNCATION_TOWARDS_ZERO): Define.
4197 (struct string_vector): Define.
4198 (unresolved_names): Remove definition.
4199 (xnew_string_vector): New function.
4200 (string_vector_append): New function.
4201 (extract_string): Make static.
4202 (ada_unqualified_name): New function.
4203 (add_angle_brackets): New function.
4204 (function_name_from_pc): New function.
4205 (place_on_stack): Rename to ensure_lval.
4206
4207 (ensure_lval): Renamed from place_on_stack.
4208 Make identity on lvals.
4209 Update comment.
4210 (is_nonfunction): New interface.
4211 Only symbols in LOC_CONST class can be enumerals.
4212 (fill_in_ada_prototype): Remove; now independent of language.
4213 (add_defn_to_vec): Add obstack and symtab arguments.
4214 Use obstack to hold collected definitions.
4215 (num_defns_collected): New function.
4216 (defns_collected): New function.
4217 (ada_resolve_subexp): Rename to resolve_subexp.
4218 (resolve_subexp): Renamed from ada_resolve_subexp.
4219 (ada_op_name): Return non-const result.
4220 (ada_decoded_op_name): Renamed from ada_op_name, now used for
4221 other purposes.
4222
4223 (to_fixed_array_type): Add declaration.
4224 (coerce_unspec_val_to_type): Remove offset parameter.
4225 (find_sal_from_funcs_and_line): New interface.
4226 (find_line_in_linetable): Ditto.
4227
4228 (all_sals_for_line): Rename to ada_sals_for_line and make
4229 global.
4230 Add new parameter. When set, do not ask the user to choose the
4231 instance, but use the first one found instead.
4232 Use given line number in returned sals.
4233 Fix comment.
4234 Skip the prologue if funfirstline is set.
4235 Correct for memory leak when 0 lines found.
4236
4237 (value_pos_atr): Use pos_atr.
4238 (pos_atr): New function.
4239 (standard_lookup): Add block parameter.
4240
4241 (makeTimeStart): Remove declaration and uses.
4242 (makeTimeStop): Remove declaration and uses.
4243
4244 (ada_completer_word_break_characters): Allow for VMS.
4245 (ADA_MAIN_PROGRAM_SYMBOL_NAME): Make into constant.
4246 (raise_sym_name): New constant.
4247 (raise_unhandled_sym_name): New constant.
4248 (raise_assert_sym_name): New constant.
4249 (process_raise_exception_name): New constant.
4250 (longest_exception_template): New constant.
4251 (warning_limit): New variable to limit warnings during expression
4252 evaluation.
4253 (warnings_issued): New variable to keep track of warnings issued.
4254 (known_runtime_file_name_patterns): New constant.
4255 (known_auxiliary_function_name_patterns): New constant.
4256 (symbol_list_obstack): New variable.
4257
4258 (field_name_match,is_suffix,is_suppressed_name,ada_encode,
4259 ada_decode,ada_match_name,encoded_ordered_before,equiv_types,
4260 lesseq_defined_than,is_nondebugging_type,is_name_suffix,wild_match,
4261 find_sal_from_funcs_and_line, ada_breakpoint_rewrite,
4262 ada_is_tagged_type, ada_is_parent_field, ada_is_wrapper_field,
4263 ada_variant_discrim_name, field_alignment, dynamic_template_type,
4264 ada_is_character_type, ada_is_aligner_type, ada_is_vax_floating_type):
4265 Replace use of deprecated STREQ and STREQN macros by calls to strncmp
4266 and strcmp.
4267
4268 (ada_get_field_index): New function.
4269 (lim_warning): New function.
4270 (ada_translate_error_message): New function.
4271 (MAX_OF_SIZE): New function.
4272 (MIN_OF_SIZE): New function.
4273 (UMAX_OF_SIZE): New function.
4274 (UMIN_OF_SIZE): New function.
4275 (discrete_type_high_bound): New function.
4276 (discrete_type_low_bound): New function.
4277 (base_type): New function.
4278 (do_command): Remove.
4279
4280 (ada_update_initial_language): Use language_ada, not language_unknown.
4281 (ada_encode): Renamed from ada_mangle.
4282 Obey ADA_RETAIN_DOTS.
4283 (ada_decode): Renamed from ada_demangle.
4284 Update coding conventions.
4285 (decoded_names_store): New hash table.
4286 (ada_decode_symbol): New function.
4287 (ada_la_decode): New function.
4288
4289 (modify_general_field): Correct computations of offset and bit
4290 position.
4291 (desc_base_type): Handle ref types, too.
4292 (ada_is_direct_array_type): New function.
4293
4294 (ada_is_simple_array): Rename to ada_is_simple_array_type.
4295 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
4296 (ada_is_bogus_array_descriptor,ada_type_of_array,
4297 ada_coerce_to_simple_array_ptr,ada_coerce_to_simple_array,
4298 ada_type_match,convert_actual,ada_evaluate_subexp): Use renamed
4299 ada_is_array_descriptor_type.
4300
4301 (ada_coerce_to_simple_array_type): Fix incorrect value freeing.
4302 (ada_is_packed_array_type): Handle pointers or
4303 references to packed arrays as well.
4304 (packed_array_type): Uncomment use of TYPE_FLAG_FIXED_INSTANCE.
4305 (decode_packed_array_type): Search for the packed array type
4306 symbol in the currently selected block and associated
4307 superblocks too.
4308 Use lookup_symbol again.
4309
4310 (decode_packed_array): Handle pointers and references.
4311 Update call to coerce_unspec_val_to_type.
4312 (decode_packed_array_type,value_subscript_packed): Limit warnings.
4313 (ada_value_primitive_packed_val): Improve comment.
4314
4315 (ada_index_type): Substitute int type for "undefined".
4316 (ada_index_type,ada_array_bound_from_type,ada_array_bound,
4317 ada_array_langth, ada_is_string_type): Use renamed
4318 ada_is_simple_array_type.
4319 (empty_array): New function.
4320
4321 (ada_resolve): Rename to resolve.
4322 (resolve): Make static.
4323 Call renamed resolve_subexp.
4324 Update comment.
4325 (ada_resolve_subexp): Rename to resolve_subexp.
4326 (resolve_subexp): Update comment.
4327 Decomment disabled code.
4328 Add LOC_COMPUTED* cases.
4329 Modify to use temporary struct symbols (marked as being in
4330 UNDEF_NAMESPACE) to indicate unresolved names, instead of
4331 OP_UNRESOLVED_VALUE.
4332 Remove OP_ATTRIBUTE; use individual opcodes for attributes.
4333 Add OP_STRING case.
4334 Remove OP_ARRAY.
4335 Use SYMBOL_PRINT_NAME instead of ada_demangle.
4336 Use new ada_lookup_symbol_list interface.
4337 Use new ada_resolve_function interface.
4338 Remove OP_TYPE case.
4339
4340 (ada_args_match): Idiot proof against null actuals.
4341 Use intermediate variables to clarify.
4342 (ada_resolve_function): Update comment and interface.
4343 (mangled_ordered_before): Rename to encoded_ordered_before and
4344 update comment.
4345 (sort_choices): Update comment and interface.
4346 Use SYMBOL_LINKAGE_NAME in place of SYMBOL_NAME.
4347 (user_select_syms): New interface.
4348 Use new sort_choices interface.
4349 Use SYMBOL_PRINT_NAME rather than SYMBOL_SOURCE_NAME.
4350 (possible_user_operator_p): Idiot-proof against null values.
4351 (ada_simple_renamed_entity): Don't make cleanup; rely on
4352 caller to free result string.
4353 Remove const from return type.
4354 (make_array_descriptor): Rename uses of place_on_stack to
4355 ensure_lval.
4356 Make sure that arrays are on stack.
4357
4358 (HASH_SIZE): Define.
4359 (struct cache_entry): Define.
4360 (cache_space): Define.
4361 (cache): Define.
4362 (clear_ada_sym_cache): New function.
4363 (find_entry): New function.
4364 (lookup_cached_symbol): New function.
4365 (defn_vector_size): Define.
4366 (cache_symbol): New function.
4367 (defn_symbols): Remove.
4368
4369 (standard_lookup): Use lookup_symbol_in_language to get effect of
4370 C lookup.
4371 Cache results.
4372
4373 (symbol_completion_match): New function.
4374 (symbol_completion_add): New function.
4375 (ada_make_symbol_completion_list): New function.
4376
4377 (ada_lookup_partial_symbol,ada_lookup_simple_minsym,
4378 add_symbols_from_enclosing_procs,remove_extra_symbols): Replace
4379 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
4380 (symtab_for_sym): Handle LOC_COMPUTED, LOC_COMPUTED_ARG.
4381
4382 (ada_lookup_simple_minsym): New function.
4383 (ada_lookup_minimal_symbol): Use ada_lookup_simple_minsym.
4384
4385 (add_symbols_from_enclosing_procs): New interface.
4386 Conditionalize more helpfully.
4387 Don't bother if program isn't running.
4388 Use new interface to get_frame_block.
4389 Limit number of levels searched with MAX_LEXICAL_LEVELS, just in case.
4390
4391 (remove_extra_symbols): New interface.
4392 (xget_renaming_scope): New function.
4393 (is_package_name): New function.
4394 (renaming_is_visible): New function.
4395 (remove_out_of_scope_renamings): New function.
4396
4397 (ada_lookup_symbol_list): New interface.
4398 Properly reinitialize the symbol list obstack.
4399 Don't call add_symbols_from_enclosing_procs if we start from a
4400 static or global block.
4401 Use new interfaces to ada_add_block_symbols, add_defn_to_vec,
4402 add_symbols_from_enclosing_procs.
4403 Add symtab data to cached entries.
4404 Handle symbols prefixed with
4405 "standard__" specially; strip prefix and don't look in local symbols.
4406 Do not include out of scope renaming symbols in list of
4407 symbols returned.
4408 Add const to block parameter.
4409 Move check for non-local, non-global symbols earlier.
4410 Remove timing stuff.
4411 (ada_lookup_symbol): New interface.
4412 Find symtab as well.
4413 (ada_lookup_symbol_nonlocal): New function.
4414
4415 (is_name_suffix): Enhance suffix detection to recognize
4416 an optional "__[:digit:]+" before any "\.[:digit:]+" suffix.
4417 (is_dot_digits_suffix): New function.
4418 (wild_match): Ignore ".[:digit:]*" suffixes during matches.
4419
4420 (ada_add_block_symbols): New interface. Use obstack to return results
4421 in a vector of struct ada_symbol_infos. Add symtab argument.
4422 Use new interface to add_defn_to_vec.
4423 Remove calls to fill_in_ada_prototype.
4424 Use BLOCK_BUCKETS, BLOCK_BUCKET.
4425
4426 (ada_finish_decode_line_1): Add const qualification to local to fix
4427 warning.
4428 Start looking in static block for functions to avoid attempts
4429 to search frame chain for up-level variables.
4430 Adapt to new ada_sals_for_line interface.
4431 Use new interfaces to ada_lookup_symbol_list and user_select_syms.
4432 Handle quoting of the function name inside the spec string.
4433 Skip prologue when funfirstline is set and update the
4434 function documentation to that effect.
4435
4436 (debug_print_lines, debug_print_block, debug_print_blocks,
4437 debug_print_symtab): Remove.
4438
4439 (ada_main_name): New function.
4440 (ada_exception_breakpoint_type): New function.
4441 (is_known_support_routine): New function.
4442 (ada_find_printable_frame): Renamed from find_printable_frame and made
4443 global.
4444 Remove level parameter.
4445 Use new interface to select_frame.
4446
4447 (begin_command): Remove.
4448 (ada_adjust_exception_stop): New function.
4449 (ada_print_exception_stop): New function.
4450 (exception_name_from_cond): New function.
4451 (ada_report_exception_break): Replace disabled code with
4452 conditionalization on GNAT_GDB.
4453 Get the exception name from the condition string.
4454 Remove and move functionality into new functions
4455 ada_print_exception_breakpoint_task and
4456 ada_print_exception_breakpoint_nontask.
4457 (error_breakpoint_runtime_sym_not_found): New function.
4458 (is_runtime_sym_defined): New function.
4459 (ada_breakpoint_rewrite): Uncomment suppressed code.
4460 Use symbolic error-message and runtime-symbol names.
4461 Surround runtime symbol names in quotes.
4462 Allow non-specific breakpoints on exceptions and assertions before
4463 program starts.
4464
4465 (ada_is_tagged_type): Add parameter.
4466 (ada_is_tag_type): New function.
4467 (ada_tag_type): Use new ada_lookup_struct_elt_type interface.
4468 (ada_variant_discrim_type): Ditto.
4469 (value_tag_from_contents_and_address): New function.
4470 (type_from_tag): New function.
4471 (struct tag_args): New structure used to communicate with
4472 ada_tag_name_1.
4473 (ada_tag_name_1): New function.
4474 (ada_tag_name): New function.
4475
4476 (ada_scan_number): Update comment.
4477 (find_struct_field): New function.
4478 (ada_search_struct_field): Make static.
4479 (ada_value_struct_elt): New version that returns references when
4480 given pointers or references to structs.
4481 (ada_lookup_struct_elt_type): Add 'refok' parameter.
4482 (ada_which_variant_applies): Use new ada_lookup_struct_elt_type
4483 interface.
4484 (ada_value_ind): Use new ada_to_fixed_value interface.
4485 (ada_coerce_ref): Ditto.
4486 (field_offset): Remove.
4487
4488 (ada_find_any_symbol): New function, extracted from ada_find_any_type.
4489 (ada_find_renaming_symbol): New function.
4490 (ada_prefer_type): Prefer named types over unnamed ones.
4491 (variant_field_index): New function.
4492 (contains_variant_part): Removed: subsumed by variant_field_index.
4493 (ada_template_to_fixed_record_type): New function, mostly from
4494 template_to_fixed_record_type.
4495 (template_to_fixed_record_type):
4496 Do not scan the type fields beyond the last one; prevents a
4497 potential SEGV.
4498 Handle case where variant field is listed BEFORE discriminant it
4499 depends on.
4500 Fix calculation of record length when bit length is
4501 not evenly divisible by char length.
4502 Move code to ada_template_to_fixed_record_type and call it.
4503
4504 (template_to_static_fixed_type): Revise comment.
4505 Modify to work on ordinary record types as well as templates,
4506 so as to handle fields that use ___XVE or ___XVU encodings.
4507 (to_record_with_fixed_variant_part): Fill out comment.
4508 Initialize C++ stuff in right type.
4509 Allow case where DVAL is null.
4510 Handle case where variant field is not last.
4511 Fix typo concerning record length.
4512 (to_fixed_record_type): Decomment disabled code.
4513 (to_fixed_record_type): Use variant_field_index instead of
4514 contains_variant_part.
4515 (to_fixed_variant_branch_type): Ditto.
4516 (to_fixed_array_type): Decomment disabled code.
4517 (ada_to_fixed_type): Convert tagged types to the specific type.
4518 Deactivate the size-check for array types in order to avoid
4519 some false size alarms.
4520 (to_static_fixed_type): Decomment disabled code.
4521 Modify to call template_to_static_fixed_type
4522 on ordinary structs, not just ___XVE- and ___XVU-encoded fields.
4523 (ada_to_fixed_value_create): Renamed version of old ada_to_fixed_value.
4524 Remove valaddr argument, as it is never really used.
4525 (ada_to_fixed_value): Change interface to act on single struct value*
4526 operand.
4527 (adjust_pc_past_prologue): New function.
4528 (ada_attribute_name): Modify to take enum exp_opcode argument.
4529
4530 (ada_enum_name): Recognize new homonym-distinguishing convention.
4531 Adjust local variable's type to remove compiler warning.
4532 Fix a small problem in the part that unqualifies the enumeration name.
4533 (ada_value_binop): New function.
4534 (ada_value_equal): New function.
4535
4536 (ada_evaluate_subexp): Use new ada_lookup_struct_elt_type interface.
4537 Don't give error message when not doing normal evaluation
4538 and a tagged type doesn't seem to contain a structure member.
4539 Give error message for packed arrays.
4540 For indexing arrays, handle pointers to packed arrays correctly.
4541 Handle case of 'first and 'last attributes of bare integral type
4542 without encoded subtype info.
4543 Remove some unnecessary casts.
4544 Fix uninitialized value of type in computing 'first, 'last, or 'length
4545 of array object.
4546 Add BINOP_EQUAL and BINOP_NOTEQUAL cases.
4547 Remove binop_user_defined_p tests and value_x_binop and value_x_unop
4548 calls.
4549 Attributes are now exp_opcode values.
4550 Correct treatment of 'modulus.
4551 Better error message for taking 'length of wrong kind of type;
4552 improve comment.
4553 Change EVAL_NORMAL to noside for consistency.
4554 Use ada_value_binop for DIV, MOD, REM.
4555 Make special case out of array of length 0, since an argument
4556 of 0 upsets some platforms' malloc.
4557 Use OP_STRING instead of OP_ARRAY.
4558 For slice, add check that we have an array type before extracting
4559 a slice out of it. Avoids a SEGV.
4560 When evaluating an array slice, if the array type is a reference to
4561 an aligner type, then replace the aligner type by the actual type.
4562 Decomment disabled code.
4563 Remove some dead code.
4564 Use temporary struct symbols (marked as being in UNDEF_NAMESPACE)
4565 to indicate unresolved names, instead of OP_UNRESOLVED_VALUE.
4566 Rename BINOP_MBR to BINOP_IN_BOUNDS, TERNOP_MBR to TERNOP_IN_RANGE,
4567 and UNOP_MBR to UNOP_IN_RANGE.
4568 If an array type has a parallel ___XVE type, then use it.
4569 Turn arrays into pointers for lvalue arrays.
4570 Change TERNOP_SLICE code to work even when bounds are unknown, ignoring
4571 bounds error and handle 0-length slices.
4572 Use lim_warning.
4573 When selecting fields, apply ada_to_fixed_value (because the fields
4574 might have ___XVU or ___XVE encodings even if not dynamic.)
4575 Use ada_to_fixed_value_create and new ada_to_fixed_value interface.
4576 (ada_is_system_address_type): New function.
4577
4578 (get_var_value): Use new interface to ada_lookup_symbol_list.
4579 (get_int_var_value): New interface.
4580 (to_fixed_range_type): Allow unknown bound, with warning.
4581 (ada_is_modular_type): Decomment disabled code.
4582 (ADA_OPERATORS): New definition.
4583 (ada_operator_length): New function.
4584 (ada_expr_op_name): New function.
4585 (ada_forward_operator_length): New function.
4586 (ada_dump_subexp_body): New function.
4587 (ada_print_subexp): New function.
4588 (ada_exp_descriptor): New constant.
4589 (ada_op_print_tab): Add 'size. Remove FIXMEs.
4590 (ada_language_defn): Add ada_exp_descriptor entry.
4591 Change ada_parse => parse.
4592 Add post-parser entry.
4593 Use ada-specific non-local symbol lookup.
4594 Don't use C-style arrays.
4595 String lower-bound is 1.
4596 Decomment disabled code.
4597 (parse): New function.
4598 New fields ada_translate_error_message, ada_lookup_symbol,
4599 ada_lookup_minimal_symbol.
4600
4601 * ada-lang.h: Update copyright dates.
4602 Replace the mangle/demangle terminology throughout by the
4603 more appropriate encode/decode one.
4604 Include breakpoint.h.
4605 Forward declare struct partial_symbol, struct block.
4606 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Define.
4607 (EXTRACT_ADDRESS): Remove.
4608 (EXTRACT_INT): Remove.
4609 (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Define.
4610 (MAX_ENCLOSING_FRAME_LEVELS): Define.
4611 (MAX_RENAMING_CHAIN_LENGTH): Define.
4612 (struct ada_opname_map): mangled => decoded, demangled=>encoded.
4613
4614 (enum task_states): Remove.
4615 ada_task_states: Remove.
4616 (fat_string): Remove.
4617 (struct entry_call): Remove.
4618 (struct task_fields): Remove.
4619 (struct task_entry): Remove.
4620
4621 (struct ada_symbol_info): Define.
4622 (enum ada_attribute): Remove.
4623 (enum ada_operator): Define.
4624
4625 (ada_get_field_index): Declare.
4626 (ada_coerce_to_simple_array): Rename to ada_coerce_to_simple_array_ptr.
4627 (ada_is_simple_array): Rename to ada_is_simple_array_type.
4628 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
4629 (ada_lookup_symbol_list): New interface.
4630 (ada_decode_symbol): Declare.
4631 (ada_decode): Declare.
4632 (ada_lookup_symbol): New interface.
4633 (ada_update_initial_language): Declare.
4634 (ada_lookup_simple_minsym): Declare.
4635 (user_select_syms): New interface.
4636 (ada_sals_for_line): Declare.
4637 (ada_is_tagged_type): New interface.
4638 (ada_tag_name): Declare.
4639 (ada_lookup_struct_elt_type): Remove declaration.
4640 (ada_search_struct_field): Remove declaration.
4641 (ada_attribute_name): New interface.
4642 (ada_is_system_address_type): Declare.
4643 (ada_to_fixed_value): Remove declaration.
4644 (ada_template_to_fixed_record_type_1): Declare.
4645 (get_int_var_value): New interface.
4646 (ada_find_any_symbol): Declare.
4647 (ada_find_renaming_symbol): Declare.
4648 (ada_mangle): Rename to ada_encode.
4649 (ada_simple_renamed_entity): Remove const.
4650 (ada_main_name): Declare.
4651 (get_current_task): Rename to ada_get_current_task.
4652 (get_entry_number): Remove declaration.
4653 (ada_report_exception_break): Remove declaration.
4654 (ada_print_exception_breakpoint_nontask): Declare.
4655 (ada_print_exception_breakpoint_task): Declare.
4656 (ada_find_printable_frame): Declare.
4657
4658 * ada-lex.l: Update copyright notices.
4659 Use xmalloc and xfree instead of malloc and free.
4660 Use new interface to name_lookup.
4661 Use new interface to
4662 ada_mangle=>ada_encode.
4663 Redo handling of '$...' variable to parallel current treatment
4664 in c-exp.y.
4665 (resize_tempbuf, canonicalizeNumeral, is_digit_in_base,
4666 digit_to_int, strtoulst, processInt, processReal, processId,
4667 block_lookup, name_lookup, find_dot_all, subseqMatch, processAttribute,
4668 yywrap): Protoize.
4669
4670 (processInt): Use cast to remove harmless warning.
4671 (processReal): Modify to get rid of compiler warning on scan formats.
4672
4673 (processId): Replace xmalloc with obstack_alloc for name and remove
4674 call to ada_name_string_cleanup.
4675 Remove obsolete disabled code.
4676 (name_lookup): Ditto.
4677 New interface.
4678 Use obsavestring on temp_parse_space instead of savestring
4679 on name, and remove call to ada_name_string_cleanup.
4680 Free string returned from ada_simple_renamed_entity.
4681 Use new interface to ada_lookup_symbol_list.
4682 Decomment disabled code.
4683 Treat LOC_COMPUTED and LOC_COMPUTED_ARG symbols as variables,
4684 not types.
4685 When a type name lookup succeeds as a result of
4686 lookup_primitive_typename, check for regular type entry that has not
4687 yet been read in.
4688 Limit length of chain of renamed symbols we are willing to follow.
4689 Do not break names beginning with "standard__" into segments.
4690 (block_lookup): Use new interface to ada_lookup_symbol_list.
4691
4692 * ada-typeprint.c: Update copyright notice.
4693 (demangled_type_name): Rename to decoded_type_name.
4694 (ada_typedef_print): Use SYMBOL_PRINT_NAME.
4695 (print_range_bound): Correct handling of negative
4696 bounds that make the index type looked unsigned under STABS.
4697 (print_dynamic_range_bound): Use new interface to get_int_var_value.
4698 (print_range_type_named): Use the builtin int type if no type
4699 corresponding to the given type name could be found.
4700 (print_array_type): ada_is_simple_array => ada_is_simple_array_type.
4701 Add some bullet-proofing.
4702 (print_variant_clauses): Allow for variant branches with ___XVU
4703 encodings that are not dynamic fields.
4704 Use new interface to ada_is_tagged_type.
4705 (print_record_type): Allow for fields with ___XVE encodings that
4706 are not dynamic fields.
4707 Use new interface to ada_is_tagged_type.
4708 (ada_print_type): ada_is_array_descriptor =>
4709 ada_is_array_descriptor_type.
4710
4711 * ada-valprint.c: Update copyright notice.
4712 Include gdb_string.h
4713 Include infcall.h
4714 (ui_memcpy): New function.
4715 (ada_print_floating): New function.
4716 (ada_print_str): Order arguments correctly.
4717 Correct handling of empty arrays and arrays of 0-length items.
4718 ada_is_array_descriptor => ada_is_array_descriptor_type
4719 Print values of type System.Address in hexadecimal format.
4720 Use ada_print_floating to print floating-point numbers in Ada format.
4721 Print class tag values with type names.
4722 No longer print the address of reference values. Avoids
4723 a potential confusion.
4724 (ada_value_print): Stop printing the object type for reference
4725 values, but preserve that behavior for access types. Avoids
4726 a potential confusion.
4727 Simplify one conditional expression, as the first part is now
4728 necessarily true.
4729 ada_is_array_descriptor => ada_is_array_descriptor_type
4730 Add check for arrays for null records, and print them by hand.
4c4b4cd2 4731
f65f91b5
JB
47322004-06-01 Jim Blandy <jimb@redhat.com>
4733
4734 * ppc-tdep.h: Delete unused 'regoff' member.
4735 * rs6000-tdep.c (rs6000_gdbarch_init): Don't initialize it.
4736
d4687fa0
MC
47372004-06-01 Michael Chastain <mec.gnu@mindspring.com>
4738
4739 Fix PR symtab/1661.
4740 * hpread.c (hpread_pxdb_needed): Call memset after alloca.
4741 (hpread_read_struct_type): Likewise.
4742
de169ec9
AC
47432004-06-01 Andrew Cagney <cagney@gnu.org>
4744
c6902d46
AC
4745 * mi/mi-cmd-env.c (env_execute_cli_command): Use xstrprintf
4746 instead of xasprintf.
4747 * mi/mi-main.c (mi_error_last_message, mi_cmd_exec_interrupt)
4748 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
4749 (mi_cmd_data_list_register_names)
4750 (mi_cmd_data_list_changed_registers)
4751 (mi_cmd_data_list_register_values)
4752 (get_register, mi_cmd_data_write_register_values)
4753 (mi_cmd_data_write_register_values)
4754 (mi_cmd_data_assign, mi_cmd_data_evaluate_expression)
4755 (mi_cmd_target_download, mi_cmd_target_select)
4756 (mi_cmd_data_read_memory, mi_cmd_data_write_memory)
4757 (mi_execute_cli_command, mi_execute_async_cli_command)
4758 (mi_execute_async_cli_command): Ditto.
4759 * mi/mi-interp.c (mi_cmd_interpreter_exec) Ditto.
4760 * mi/mi-cmd-var.c (mi_cmd_var_create): Ditto.
4761
6085fc2d
AC
4762 * mi/mi-cmds.h (mi_error_last_message): Delete declaration.
4763 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call
4764 error_last_message instead of mi_error_last_message.
4765 * mi/mi-main.c (mi_error_last_message): Delete function.
4766
de169ec9
AC
4767 * mi/mi-main.c (mi_cmd_data_read_memory): Add missing return for
4768 "invalid number of columns" error. Delete redundant "out of
4769 memory" check.
4770
1fc7d519
MK
47712004-05-31 Mark Kettenis <kettenis@gnu.org>
4772
6cfb2041
MK
4773 * i386bsd-nat.c: Don't include <sys/procfs.h>.
4774 (gregset_t, fpregset_t): Remove typedefs.
4775 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Remove macros.
4776 (REG_OFFSET): Rename argument.
4777 (i386bsd_r_reg_offset): Rename from reg_offset.
4778 (REG_ADDR): Remove macro.
4779 (cannot_fetch_register, supply_gregset, fill_gregset): Remove
4780 functions.
4781 (i386bsd_supply_gregset, i386bsd_collect_gregset): New functions.
4782 (fetch_inferior_registers): Use `struct reg' and `struct fpreg'
4783 instead of gregset_t and fpregset_t. Use i386bsd_supply_gregset
4784 instead of supply_gregset.
4785 (store_inferior_registers): Use `struct reg' and `struct fpreg'
4786 instead of gregset_t and fpregset_t. Use i386bsd_collect_gregset
4787 instead of fill_gregset.
4788 (register_u_addr): Use i386_r_reg_offset instead of REG_ADDR.
4789
1fc7d519
MK
4790 * i386bsd-nat.c: Don't include "gregset.h".
4791 (supply_gregset, fill_gregset): Make static.
4792 (supply_fpregset, fill_fpregset): Remove.
4793 * Makefile.in (i386bsd-nat.o): Update dependencies.
4794
2c34abbe
MK
47952004-05-30 Mark Kettenis <kettenis@gnu.org>
4796
448724fb
MK
4797 * fbsd-proc.c: Include "regcache.h", "regset.h" and
4798 "gdb_assert.h". Con't include "gregset.h".
4799 (fbsd_make_corefile_notes): Use regset-based core file support
4800 instead off fill_gregset and fill_fpregset.
4801 * Makefile.in (fbsd-proc.o): Update dependencies.
4802
5ca8ca7c
MK
4803 * m88k-tdep.c (m88k_analyze_prologue): Fix handling of branch
4804 instructions.
4805 (m88k_frame_prev_register): Simplify code a bit.
4806
593adc23
MK
4807 * amd64-tdep.c (amd64_supply_fpregset): Adjust comment.
4808 (amd64_collect_fpregset): New function.
4809 (amd64_regset_from_core_section): Use amd64_collect_fpregset.
4810
8d1b517b
MK
4811 * hppa-tdep.h (hppa_regnum): Add HPPA_R31_REGNUM.
4812
7fdafb5a
MK
4813 * i386-tdep.c (i386_supply_gregset): Adjust comment.
4814 (i386_collect_gregset): New function.
4815 (i386_supply_fpregset): Adjust comment.
4816 (i386_collect_fpregset): New function.
4817 (i386_regset_from_core_section): Use i386_collect_gregset and
4818 i386_collect_fpregset.
4819
8693c419
MK
4820 * hppa-tdep.c (hppa_frame_prev_register_helper): Reimplement to
4821 handle VALUEP being null.
4822
2c34abbe
MK
4823 * regset.h (collect_regset_ftype): Unconstify fourth argument.
4824
45d134d8
MK
48252004-05-29 Mark Kettenis <kettenis@gnu.org>
4826
1698f4e7
MK
4827 * MAINTAINERS: Undelete m88k. Add myself as maintainer.
4828
45d134d8
MK
4829 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Adjust for new
4830 assembler in OpenBSD 3.5-current.
4831 (amd64obsd_sigcontext_addr): Likewise.
4832
691d145a
JB
48332004-05-28 Jim Blandy <jimb@redhat.com>
4834
4835 * rs6000-tdep.c: Use the modern gdbarch methods for handling the
4836 register set, so our regcache isn't declared "legacy" and our E500
4837 pseudoregister read and write functions aren't ignored.
4838 (rs6000_register_byte, rs6000_register_raw_size,
4839 rs6000_register_virtual_type, rs6000_register_convertible,
4840 rs6000_register_convert_to_virtual,
4841 rs6000_register_convert_to_raw): Deleted.
4842 (rs6000_register_type, rs6000_convert_register_p,
4843 rs6000_register_to_value, rs6000_value_to_register): New
4844 functions.
4845 (rs6000_gdbarch_init): Don't register
4846 gdbarch_deprecated_register_size,
4847 gdbarch_deprecated_register_bytes,
4848 gdbarch_deprecated_register_byte,
4849 gdbarch_deprecated_register_raw_size,
4850 gdbarch_deprecated_register_virtual_type,
4851 gdbarch_deprecated_register_convertible,
4852 gdbarch_deprecated_register_convert_to_virtual, or
4853 gdbarch_deprecated_register_convert_to_raw methods. Instead,
4854 register gdbarch_register_type, gdbarch_convert_register_p,
4855 gdbarch_register_to_value, and gdbarch_value_to_register methods.
4856
18ed0c4e
JB
48572004-05-26 Jim Blandy <jimb@redhat.com>
4858
4859 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): Deleted.
4860 (rs6000_stab_reg_to_regnum, rs6000_dwarf2_reg_to_regnum): New
4861 functions, updated to match the register numberings used in GCC.
4862 (rs6000_gdbarch_init): Register rs6000_stab_reg_to_regnum and
4863 rs6000_dwarf2_reg_to_regnum as register number conversions
4864 functions for STABS and Dwarf2.
4865
779af9e3
RC
48662004-05-26 Randolph Chung <tausq@debian.org>
4867
4868 * infttrace.h (target_waitkind): Forward declare type instead of pulling
4869 in header file.
4870
c23968a2
JB
48712004-05-25 Joel Brobecker <brobecker@gnat.com>
4872
4873 * NEWS: Document new "start" command.
4874
3a7d1c27
RC
48752004-05-25 Randolph Chung <tausq@debian.org>
4876
4877 * hppa-linux-tdep.c (hppa_linux_init_abi): sizeof(long double) == 8 on
4878 hppa-linux.
4879
43613416
RC
48802004-05-25 Randolph Chung <tausq@debian.org>
4881
4882 * hppa-hpux-tdep.c (offsetof): Define.
4883 (hppa_hpux_pc_in_sigtramp, hppa32_hpux_frame_saved_pc_in_sigtramp)
4884 (hppa32_hpux_frame_base_before_sigtramp)
4885 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
4886 (hppa64_hpux_frame_saved_pc_in_sigtramp)
4887 (hppa64_hpux_frame_base_before_sigtramp)
4888 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): Remove unused
4889 functions.
4890 (struct hppa_hpux_sigtramp_unwind_cache, hppa_hpux_tramp_reg)
4891 (hppa_hpux_sigtramp_frame_unwind_cache)
4892 (hppa_hpux_sigtramp_frame_this_id)
4893 (hppa_hpux_sigtramp_frame_prev_register)
4894 (hppa_hpux_sigtramp_frame_unwind)
4895 (hppa_hpux_sigtramp_unwind_sniffer): New signal trampoline unwinder.
4896 (hppa_hpux_init_abi): Register sigtramp unwinder.
4897 * Makefile.in (hppa-hpux-tdep.o): Update dependencies.
4898
6d1be3f1
RC
48992004-05-25 Randolph Chung <tausq@debian.org>
4900
4901 * hppa-tdep.c (hppa_fallback_frame_cache): Handle stack adjustment,
4902 and multiple stack unwinds.
4903 (hppa_stub_unwind_sniffer): Handle unwind from pc == 0.
4904
97c34f65
AC
49052004-05-25 Andrew Cagney <cagney@gnu.org>
4906
4907 * symfile.h (symbol_file_add_from_memory): Delete declaration.
4908 * symfile-mem.h: Delete file.
4909 * symfile-mem.c: Do not include "symfile-mem.h".
4910 (symbol_file_add_from_memory): Make static. Use "struct bfd" and
4911 "struct bfd_section". When an error do not bother returning NULL.
4912 (add_symbol_file_from_memory_command): Use "struct bfd" and
4913 "struct bfd_section".
4914 * Makefile.in (symfile_mem_h): Delete.
4915 (symfile-mem.o): Update dependencies.
4916
e23cbd82
NR
49172004-05-25 Nick Roberts <nickrob@gnu.org>
4918
4919 * gdb-mi.el: New file.
4920
20d2ca3e
AC
49212004-05-25 Andrew Cagney <cagney@gnu.org>
4922
4923 * inftarg.c: Include "observer.h".
4924 (child_attach, child_create_inferior): Notify inferior_created.
4925 * corelow.c: Include "observer.h".
4926 (core_open): Notify inferior_created.
4927 * Makefile.in (inftarg.o, corelow.o): Update dependencies.
4928
c27cda74
AC
49292004-05-25 Andrew Cagney <cagney@gnu.org>
4930
4931 * target.h (struct target_ops): Add from_tty to
4932 to_create_inferior.
4933 (target_create_inferior, find_default_create_inferior): Update.
4934 * infcmd.c (run_command): Update.
4935 * wince.c (child_create_inferior): Update.
4936 * win32-nat.c (child_create_inferior): Update.
4937 * uw-thread.c (uw_thread_create_inferior): Update.
4938 * thread-db.c (thread_db_create_inferior): Update.
4939 * target.c (debug_to_create_inferior)
4940 (find_default_create_inferior): Update.
4941 (maybe_kill_then_create_inferior): Update.
4942 * sol-thread.c (sol_thread_create_inferior): Update.
4943 * remote.c (extended_remote_async_create_inferior)
4944 (extended_remote_create_inferior): Update.
4945 * remote-vx.c (vx_create_inferior): Update.
4946 * remote-st.c (st2000_create_inferior): Update.
4947 * remote-sim.c (gdbsim_create_inferior): Update.
4948 * remote-sds.c (sds_create_inferior): Update.
4949 * remote-rdp.c (remote_rdp_create_inferior): Update.
4950 * remote-rdi.c (arm_rdi_create_inferior): Update.
4951 * remote-m32r-sdi.c (m32r_create_inferior): Update.
4952 * remote-e7000.c (e7000_create_inferior): Update.
4953 * procfs.c (procfs_create_inferior): Update.
4954 * ocd.c (ocd_create_inferior): Update.
4955 * ocd.h (ocd_create_inferior): Update.
4956 * nto-procfs.c (procfs_create_inferior): Update.
4957 * monitor.c (monitor_create_inferior): Update.
4958 * lin-lwp.c (lin_lwp_create_inferior): Update.
4959 * inftarg.c (child_create_inferior): Update.
4960 * hpux-thread.c (hpux_thread_create_inferior): Update.
4961 * gnu-nat.c (gnu_create_inferior): Update.
4962
1db2a798
AC
49632004-05-25 Andrew Cagney <cagney@gnu.com>
4964
4965 * MAINTAINERS: Update e-mail address.
4966
007d08bb
RC
49672004-05-24 Randolph Chung <tausq@debian.org>
4968
4969 * thread.c (info_threads_command, thread_apply_all_command)
4970 (thread_apply_command, thread_command, do_captured_thread_select):
4971 Remove HPUXHPPA-specific code.
4972
69e7b95e
RC
49732004-05-24 Randolph Chung <tausq@debian.org>
4974
4975 * hppa-tdep.c (SR4EXPORT_LDIL_OFFSET, SR4EXPORT_LDO_OFFSET): Remove
4976 unused symbols.
4977 * hppa-tdep.h (HPPA_INSTRUCTION_SIZE): Remove, since there are no more
4978 references.
4979
a4d5f2e0
JB
49802004-05-24 Joel Brobecker <brobecker@gnat.com>
4981
4982 * infcmd.c (kill_if_already_running): New function, extracted
4983 from run_command().
4984 (run_command): Replace extracted code by call to
4985 kill_if_already_running().
4986 (start_command): New function.
4987 (_initialize_infcmd): Add "start" command.
4988
bf2ca189
MK
49892004-05-24 Mark Kettenis <kettenis@gnu.org>
4990
4991 Add OpenBSD/m88k support.
4992 * NEWS (New native configurations): Mention OpenBSD/m88k.
4993 * m88k-tdep.c, m88k-tdep.h, m88kbsd-nat.c, config/m88k/nm-obsd.h,
4994 config/m88k/obsd.mh, config/m88k/obsd.mt: New files.
4995 * Makefile.in (m88k_tdep_h): New variable.
4996 (ALLDEPFILES): Add m88k-tdep.c and m88kbsd-nat.c.
4997 (m88kbsd-nat.o, m88k-tdep.o): New dependencies.
4998 * configure.host: Add m88*-*-openbsd*.
4999 * configure.tgt: Add m88*-*-openbsd*.
5000
80fadb11
JB
50012004-05-24 Jim Blandy <jimb@redhat.com>
5002
5003 * MAINTAINERS (tracing bytecode stuff): Allow global maintainers
5004 to approve changes.
5005
19e2d14b
KB
50062004-05-24 Kevin Buettner <kevinb@redhat.com>
5007
5008 * symtab.c (fixup_section): Search section table when lookup by
5009 name fails.
5010
1b07b470
RC
50112004-05-24 Randolph Chung <tausq@debian.org>
5012
5013 * hppa-tdep.c: Fix handling of 8-byte structures; they should not
5014 be "small_struct".
5015
368702b1
MK
50162004-05-24 Mark Kettenis <kettenis@gnu.org>
5017
5df97fde
MK
5018 * m68kbsd-nat.c (m68kbsd_collect_gregset): Specify correct
5019 register number in regcache_raw_collect call.
5020 (m68kbsd_collect_fpregset): Likewise.
5021 * vaxbsd-nat.c (vaxbsd_collect_gregset): Likewise.
5022
368702b1
MK
5023 * regset.h (struct regset): Add back `regset' member.
5024
a770d4ec
MK
50252004-05-23 Mark Kettenis <kettenis@gnu.org>
5026
70f9f479
MK
5027 * configure.in: Check for td_pcb in `struct thread'.
5028 * configure, config.in: Regenerated.
5029
2e16d79e
MK
5030 * dpx2-nat.c: Remove file.
5031 * Makefile.in (ALLDEPFILES): Remove dpx2-nat.c.
5032 (dpx2-nat.o): Remove dependencies.
5033
492cf391
MK
5034 * amd64obsd-nat.c: Include "gdbcore.h", "regcache.h",
5035 <sys/types.h>, <machine/frame.h>, <machine/pcb.h> and "bsd-kvm.h".
5036 (amd64obsd_supply_pcb): New function.
5037 (_initialize_amd64obsd_nat): Enable libkvm interface.
5038 * Makefile.in (amd64obsd-nat.o): Update dependencies.
5039 * config/i386/obsd64.mh (NATDEPFILES): Add bsd-kvm.o
5040 (LOADLIBES): New variable.
5041
a770d4ec
MK
5042 * sparcnbsd-nat.c: Include "gdbcore.h", "regcache.h",
5043 <sys/types.h>, <machine/pcb.h> and "bsd-kvm.h".
5044 (sparc32nbsd_supply_pcb): New function.
5045 (_initialize_sparcnbsd_nat): Enable libkvm interface.
5046 * Makefile.in (sparcnbsd-nat.o): Update dependencies.
5047 * config/sparc/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
5048 (LOADLIBES): New variable.
5049
9ea75c57
MK
50502004-05-22 Mark Kettenis <kettenis@gnu.org>
5051
2e0c3539
MK
5052 * bsd-kvm.c, bsd-kvm.h: New files.
5053 * i386fbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
5054 "bsd-kvm.h".
5055 (i386fbsd_supply_pcb): New function.
5056 * Makefile.in (ALLDEPFILES): Add bsd-kvm.c.
5057 (i386fbsd-nat.o): Update dependencies.
5058 (bsd_kvm_h): New variable.
5059 (bsd-kvm.o): New dependency.
5060 * config/i386/fbsd.mh (NATDEPFILES): Add bsd-kvm.o.
5061 (LOADLIBES): New variable.
5062
9ea75c57
MK
5063 * regset.c: Tweak comment.
5064 (regset_alloc): Remove descr argument. Use GDBARCH_OBSTACK_ZALLOC
5065 macro.
5066 * regset.h: Update copyright year.
5067 (struct regset): Remove `descr' member, add `gdbarch' member.
5068 (regset_alloc): Adjust prototype and comment.
5069 * i386-tdep.c (i386_supply_gregset): Get TDEP from REGSET->arch.
5070 (i386_supply_fpregset): Likewise.
5071 (i386_regset_from_core_section): Update call to regset_alloc.
5072 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get TDEP from
5073 REGSET->arch.
5074 (i386obsd_aout_regset_from_core_section): Update call to
5075 regset_alloc.
5076 * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Get TDEP from
5077 REGSET->arch.
5078 (i386nbsd_aout_regset_from_core_section): Update call to
5079 regset_alloc.
5080 * amd64-tdep.c (amd64_supply_fpregset): Get TDEP from
5081 REGSET->arch.
5082 (amd64_regset_from_core_section): Update call to regset_alloc.
5083 * amd64obsd-tdep.c (amd64obsd_supply_regset): Get TDEP from
5084 REGSET->arch.
5085 (amd64obsd_regset_from_core_section): Update call to regset_alloc.
5086 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Directly pass
5087 &sparc32nbsd_gregset in sparc32_supply_gregset call.
5088 (sparc32nbsd_init_abi): Update call to regset_alloc.
5089 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Directly pass
5090 &sparc64obsd_core_gregset in sparc64_supply_gregset call.
5091 (sparc64obsd_init_abi): Update call to regset_alloc.
5092 * sparc64nbsd-tdep.c (sparc64nbsd_supply_gregset): Directly pass
5093 &sparc64nbsd_gregset in sparc64_supply_gregset call.
5094 (sparc64nbsd_init_abi): Update call to regset_alloc.
5095 * sparc64fbsd-tdep.c (sparc64fbsd_supply_gregset): Directly pass
5096 &sparc64fbsd_gregset in sparc64_supply_gregset call.
5097 (sparc64fbsd_init_abi): Update call to regset_alloc.
5098
867e2dc5
JB
50992004-05-22 Jim Blandy <jimb@redhat.com>
5100
5101 * ppc-tdep.h (spe_register_p): New declaration.
5102 (struct gdbarch_tdep): New members: ppc_acc_regnum and
5103 ppc_spefscr_regnum.
5104 * rs6000-tdep.c (spe_register_p): New function.
5105 (rs6000_dwarf2_stab_reg_to_regnum): Recognize numbers for acc and
5106 spefscr.
5107 (rs6000_gdbarch_init): Initialize the new members of the tdep
5108 structure.
5109
617a4cba
JB
51102004-05-21 Jim Blandy <jimb@redhat.com>
5111
0397dee1
JB
5112 * ppc-linux-nat.c (fetch_register): Move code back to be next
5113 to the comment that describes it. (Moved code, instead of
5114 comment, for symmetry with store_register.)
5115
617a4cba
JB
5116 Allocate regset structures in the gdbarch's obstack, not using
5117 xmalloc.
5118 * regset.c (regset_alloc): Renamed from regset_xmalloc.
5119 Add 'arch' argument. Allocate the regset on arch's obstack, not
5120 using xmalloc.
5121 * regset.h (regset_alloc): Update declaration.
5122 * am64-tdep.c (amd64_regset_from_core_section): Update call; pass
5123 gdbarch argument.
5124 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
5125 * i386-tdep.c (i386_regset_from_core_section): Same.
5126 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
5127 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
5128 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
5129 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
5130 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
5131 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
5132
9aa3914d
JB
51332004-05-21 Joel Brobecker <brobecker@gnat.com>
5134
5135 * config/djgpp/fnchange.lst: Undo previous change, was useless.
5136
99c87dab
JB
51372004-05-21 Jim Blandy <jimb@redhat.com>
5138
5139 * dwarf2expr.c (execute_stack_op): Add 'break' statements after
5140 cases for DW_OP_div and DW_OP_shr. (Thanks to Reva Cuthbertson.)
5141
c2b6b4aa
JB
51422004-05-20 Jim Blandy <jimb@redhat.com>
5143
5144 * rs6000-tdep.c (rs6000_push_dummy_call): Formatting fixes.
5145
144529d0
MK
51462004-05-20 Mark Kettenis <kettenis@gnu.org>
5147
5148 * regset.h: Make prototype const-correct.
5149 * regset.c (regset_xmalloc): Make const-correct.
5150
4725b721
PH
51512004-05-20 Paul N. Hilfinger <hilfinger@gnat.com>
5152
5153 * symtab.h (SYMBOL_SEARCH_NAME): New definition.
5154 (SYMBOL_MATCHES_SEARCH_NAME): New definition.
5155 (symbol_search_name): Declare.
5156
5157 * dictionary.c (iter_name_first_hashed): Match on SYMBOL_SEARCH_NAME.
5158 (iter_name_next_hashed): Ditto.
5159 (iter_name_next_linear): Ditto.
5160 (insert_symbol_hashed): Hash on SYMBOL_SEARCH_NAME.
5161
5162 * symtab.c (lookup_partial_symbol): Assume symbols ordered by
5163 search name, using SYMBOL_SEARCH_NAME and SYMBOL_MATCHES_SEARCH_NAME.
5164 (symbol_search_name): New function.
5165
5166 * symfile.c (compare_psymbols): Order by SYMBOL_SEARCH_NAME.
5167
5168 * minsyms.c (build_minimal_symbol_hash_tables): Change
5169 test for adding to demangled hash table to check for difference
5170 between SYMBOL_SEARCH_NAME and SYMBOL_LINKAGE_NAME.
5171
be07a590
JB
51722004-05-19 Jim Blandy <jimb@redhat.com>
5173
5174 Use a constructor function to create regset structures.
5175 * regset.h (supply_regset_ftype, collect_regset_ftype): New typedefs.
5176 (struct regset): Use supply_regset_ftype. Add new
5177 'collect_regset' member.
5178 (regset_xmalloc): New declaration.
5179 * regset.c: New file.
5180 * am64-tdep.c (amd64_regset_from_core_section): Use
5181 regset_xmalloc to construct regset structures.
5182 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
5183 * i386-tdep.c (i386_regset_from_core_section): Same.
5184 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
5185 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
5186 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
5187 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
5188 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
5189 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
5190 * Makefile.in (COMMON_OBS): Add regset.o.
5191 (regset.o): New rule.
5192
604368f5
JB
51932004-05-19 Joel Brobecker <brobecker@gnat.com>
5194
5195 * config/djgpp/fnchange.lst: Add entries for pthread_cond_wait.exp
5196 and pthread_cond_wait.c.
5197
82d69f8b
JB
51982004-05-18 Jim Blandy <jimb@redhat.com>
5199
5200 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize tdep fields
5201 before the mach-specific switch, and then let the individual cases
5202 override the defaults, rather than leaving them uninitialized
5203 until the switch and then setting them in each case.
5204
5859efe5
RC
52052004-05-18 Randolph Chung <tausq@debian.org>
5206
5207 * hppa-tdep.c (hppa_frame_cache): Check for validity of r31 for
5208 millicode functions.
5209
9ca80cf8
RC
52102004-05-18 Randolph Chung <tausq@debian.org>
5211
5212 * somsolib.c (som_solib_remove_inferior_hook): Make all the size
5213 references to dld_flags_buffer consistent.
5214
ed70ba00
RC
52152004-05-18 Randolph Chung <tausq@debian.org>
5216
5217 * hppa-tdep.c (hppa_frame_cache): If a frame pointer is available, use
5218 it for unwinding the stack.
5219
63100632
RC
52202004-05-18 Randolph Chung <tausq@debian.org>
5221
5222 * config/pa/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE)
5223 Undefine these so we can overide them using gdbarch.
5224
090ccbb7
RC
52252004-05-18 Randolph Chung <tausq@debian.org>
5226
5227 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Don't do export stub
5228 handling for 64-bit HPUX (elf).
5229
594706e6
DJ
52302004-05-18 Daniel Jacobowitz <dan@debian.org>
5231
5232 * alpha-tdep.c (alpha_gdbarch_init): Use LL suffix for large
5233 constants.
5234 * amd64-tdep.c (amd64_skip_prologue): Likewise.
5235 * ia64-tdep.c (examine_prologue): Likewise.
5236 * ns32k-tdep.c (ns32k_fix_call_dummy): Remove unused function.
5237 * v850-tdep.c (v850_fix_call_dummy): Likewise.
5238
e5483145
MK
52392004-05-18 Mark Kettenis <kettenis@gnu.org>
5240
5241 * vax-tdep.c (vax_return_value): Implement
5242 RETURN_VALUE_ABI_RETURNS_ADDRESS.
5243
caed1a45
MK
52442004-05-17 Mark Kettenis <kettenis@gnu.org>
5245
5246 * vax-tdep.c (vax_return_value): Fix typo.
5247
3c0b7db2
AC
52482004-05-17 Andrew Cagney <cagney@redhat.com>
5249
5aae53e5
AC
5250 * MAINTAINERS: Mark Salter was also responsible for
5251 testsuite/config/
5252
3c0b7db2
AC
5253 * NEWS: Mention signal fixes.
5254
22b0923d
RC
52552004-05-17 Randolph Chung <tausq@debian.org>
5256
5257 * hppa-tdep.c (hppa_stub_frame_unwind_cache): For HPUX stub unwinding,
5258 check to see if we are unwinding an export stub. Export stubs clobber
5259 the %rp in the call path and stores the original rp in a stack slot.
5260
22f2b2f3
JB
52612004-05-17 Jim Blandy <jimb@redhat.com>
5262
5263 * MAINTAINERS: Update address for J.T. Conklin.
5264
cea96d64
RC
52652004-05-17 Randolph Chung <tausq@debian.org>
5266
5267 * hppa-tdep.c: Remove superfluous #include's.
5268 * Makefile.in (hppa-tdep.o): Update dependencies.
5269
f08f6a4a
RC
52702004-05-17 Randolph Chung <tausq@debian.org>
5271
5272 * hppa-tdep.c (THREAD_INITIAL_FRAME_SYMBOL): Delete unused symbol.
5273 (THREAD_INITIAL_FRAME_SYM_LEN): Likewise.
5274 (unwind_command, hppa_alignof, prologue_inst_adjust_sp)
5275 (is_branch, inst_saves_gr, inst_saves_fr, compare_unwind_entries)
5276 (read_unwind_info, internalize_unwinds, record_text_segment_lowaddr):
5277 Remove static function declarations.
5278
51da707a
MK
52792004-05-17 Mark Kettenis <kettenis@gnu.org>
5280
caed1a45
MK
5281 * alphabsd-nat.c: Update copyright year.
5282 (getregs_supplies): Replace PC_REGNUM with ALPHA_PC_REGNUM.
5283
c0c2b0db
MK
5284 * m68k-tdep.h (m68k_regnum): Add M68K_D2_REGNUM, M68K_D7_REGNUM
5285 and M68K_A2_REGNUM.
5286
51da707a
MK
5287 * m68k-tdep.c (m68k_svr4_return_value): Implement
5288 RETURN_VALUE_ABI_RETURNS_ADDRESS.
5289
8d027a04
MK
52902004-05-16 Mark Kettenis <kettenis@gnu.org>
5291
5292 * sol-thread.c Update copyright year. Fix various coding
5293 standards violations. Tweak a few comments.
5294 (td_err_string, td_state_string, thread_to_lwp, lwp_to_thread):
5295 Delete prototypes.
5296
0d99fdb9
RC
52972004-05-15 Randolph Chung <tausq@debian.org>
5298
5299 * hppa-tdep.h (hppa_frame_prev_register_helper): Pass save_regs
5300 as pointer instead of array reference since HPUX compiler does
5301 not accept unsized array arguments.
5302 * somsolib.c (dld_flags_buffer): Use constant array size.
5303
f7e3843a
MK
53042004-05-15 Mark Kettenis <kettenis@gnu.org>
5305
0fe85704
MK
5306 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Replace hexadecimal
5307 offset with decimal offset.
5308 (amd64obsd_sigcontext_addr): Return correct address for entire
5309 signal trampoline.
5310
a54f9a00
MK
5311 * vax-tdep.c (vax_frame_num_args): Use get_frame_base_address
5312 instead of get_frame_base.
5313
feae6502
MK
5314 * i386bsd-nat.c (supply_gregset): Use regcache_raw_supply.
5315 (fill_gregset): Use regcache_raw_collect.
5316
0382d099
MK
5317 * config/djgpp/fnchange.lst: Add entries for ppcobsd-nat.c and
5318 ppcobsd-tdep.c.
5319
f7e3843a
MK
5320 * config/sparc/tm-nbsd64.h: Remove file.
5321 * config/tm-sunos.h: Remove file.
5322
773df3e5
JB
53232004-05-15 Joel Brobecker <brobecker@gnat.com>
5324
5325 * rs6000-tdep.c (store_param_on_stack_p): New function,
5326 an improved version of some code extracted from skip_prologue().
5327 (skip_prologue): Use store_param_on_stack_p() to detect
5328 instructions saving a parameter on the stack. Detect when r0
5329 is used to save a parameter.
5330 Do not mark "li rx, SIMM" instructions as part of the prologue,
5331 unless the following instruction is also part of the prologue.
5332
95918acb
AC
53332004-05-14 Andrew Cagney <cagney@redhat.com>
5334
06f32659
AC
5335 * infrun.c (handle_inferior_event): Simplify
5336 STEP_OVER_UNDEBUGGABLE.
5337
95918acb
AC
5338 * infrun.c (handle_step_into_function): Delete function.
5339 (handle_inferior_event): Inline calls to
5340 handle_step_into_function.
5341
40711ff1 53422004-05-14 Jerome Guitton <guitton@gnat.com>
42203e46
JG
5343
5344 * rs6000-nat.c: Fix a comment.
5345
02f60eae
JB
53462004-05-12 David Anderson <davea@sgi.com>
5347
5348 Committed by Jim Blandy <jimb@redhat.com>:
5349 * regcache.c (struct regcache_descr): fix comment spelling.
5350
552e377b
JB
53512004-05-13 J. Brobecker <brobecker@gnat.com>
5352
5353 * aix-thread.c: s/ppc_floating_point_p/ppc_floating_point_unit_p/.
5354 Fixes a link link failure.
5355
349766b2
JB
53562004-05-13 J. Brobecker <brobecker@gnat.com>
5357
5358 * aix-thread.c (store_regs_kernel_thread): Fix a little obvious
5359 error that was causing the build to fail.
5360
0d4d5484
JB
53612004-05-13 J. Brobecker <brobecker@gnat.com>
5362
5363 * aix-thread.c: #include "gdb_string.h". Needed for memset and memcopy.
5364 * Makefile.in (aix-thread.o): Add dependency on gdb_string.h.
5365
0b30808c
AC
53662004-05-13 Andrew Cagney <cagney@redhat.com>
5367
5368 * infrun.c (handle_inferior_event): Check for
5369 STEP_OVER_UNDEBUGGABLE after signal trampolines and function
5370 calls. Update comments.
5371
cdf2c5f5
JB
53722004-05-13 Jim Blandy <jimb@redhat.com>
5373
063715bf
JB
5374 * aix-thread.c (pdc_read_regs, supply_gprs64, supply_fprs)
5375 (fetch_regs_user_thread, fetch_regs_kernel_thread)
5376 (store_regs_user_thread, store_regs_kernel_thread): Use
5377 ppc_num_gprs and ppc_num_fprs instead of '32' and '31'.
5378 * ppc-linux-nat.c (fill_gregset): Same.
5379 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
5380 (ppc_linux_sigtramp_cache): Same.
5381 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg)
5382 (ppcnbsd_sigtramp_cache_init): Same.
5383 * rs6000-nat.c (fetch_core_registers): Same.
5384 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
5385 (rs6000_frame_cache): Same.
5386
cdf2c5f5
JB
5387 * aix-thread.c (supply_gprs64, fetch_regs_user_thread)
5388 (store_regs_user_thread): Use tdep->ppc_gp0_regnum, instead
5389 of assuming that the gprs are numbered starting with zero.
5390 * ppc-linux-nat.c (fill_gregset): Same.
5391 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Same.
5392 * ppcnbsd-nat.c (getregs_supplies): Same.
5393 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg): Same.
5394 * rs6000-nat.c (fetch_core_registers): Same.
5395 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset): Same.
5396
450bd37b
MS
53972004-05-07 Michael Snyder <msnyder@redhat.com>
5398
5399 * tracepoint.c (scope_info): Add handling for LOC_COMPUTED,
5400 LOC_COMPUTED_ARG, and LOC_INDIRECT.
5401
4a72a2a6
AC
54022004-05-13 Andrew Cagney <cagney@redhat.com>
5403
5404 * infrun.c (handle_inferior_event): Use frame_unwind_id.
5405
8edfa926
BM
54062004-05-13 Bryce McKinlay <mckinlay@redhat.com>
5407
5408 * dwarf2loc.c (find_location_expression): Use ANOFFSET to adjust
5409 base_address for shared libraries.
5410
723e0e3d
BM
54112004-05-13 Bryce McKinlay <mckinlay@redhat.com>
5412
5413 * MAINTAINERS (write after approval): Add myself.
5414
00d4360e
UW
54152004-05-13 Ulrich Weigand <uweigand@de.ibm.com>
5416
5417 * breakpoint.c (bpstat_stop_status): Add new argument
5418 STOPPED_BY_WATCHPOINT. Use it instead of testing
5419 target_stopped_data_address agaist 0 to check whether
5420 or not we stopped due to a hardware watchpoint.
5421 * breakpoint.h (bpstat_stop_status): Adapt prototype.
5422 * infrun.c (handle_inferior_event): Call bpstat_stop_status
5423 with new argument.
5424
ec76baa5
JB
54252004-05-12 Jim Blandy <jimb@redhat.com>
5426
5427 * configure.in: When checking whether we should use the -bbigtoc
5428 option, don't forget to restore the original value of LDFLAGS.
5429 * configure: Regenerated.
5430
f2c9ca08
AC
54312004-05-12 Andrew Cagney <cagney@redhat.com>
5432
5433 * thread.c (load_infrun_state): Delete step_sp.
5434 * infrun.c (context_switch): Ditto.
5435 * inferior.h (step_sp): Ditto.
5436 * infcmd.c (step_sp, step_1, step_once, until_next_command): Ditto.
5437 * gdbthread.h (struct thread_info, save_infrun_state)
5438 (restore_infrun_state): Ditto.
5439
090ddb2a
UW
54402004-05-12 Ulrich Weigand <uweigand@de.ibm.com>
5441
5442 * MAINTAINERS (write after approval): Add myself.
5443
8aad930b
AC
54442004-05-12 Andrew Cagney <cagney@redhat.com>
5445
5446 * infrun.c (adjust_pc_after_break): Rewrite decr logic,
5447 eliminate reference to step_sp.
5448 (struct execution_control_state, init_execution_control_state)
5449 (handle_inferior_event, keep_going): Delete update_step_sp and
5450 step_sp.
5451 * infcmd.c (step_sp): Note that variable is unused.
5452
922d5ae0
AC
54532004-05-11 Andrew Cagney <cagney@redhat.com>
5454
5455 * infrun.c (step_over_function): Delete function.
5456 (handle_step_into_function): Use insert_step_resume_breakpoint.
5457 (insert_step_resume_breakpoint): Fix assertion.
5458
017c5ca5
NR
54592004-05-11 Nick Roberts <nickrob@gnu.org>
5460
5461 * utils.c (defaulted_query): Just use the normal query input type
5462 when printing the annotations.
5463
42edda50
AC
54642004-05-11 Andrew Cagney <cagney@redhat.com>
5465
5466 * infrun.c (handle_inferior_event): Simplify code handling
5467 step-into or return-from a signal trampoline.
5468
d28b44a7
AC
54692004-05-11 Andrew Cagney <cagney@redhat.com>
5470
5471 * ppcnbsd-tdep.c: Include "gdb_assert.h".
5472 * Makefile.in (ppcnbsd-tdep.o): Update dependencies.
5473
383f0f5b
JB
54742004-05-10 Jim Blandy <jimb@redhat.com>
5475
d0b57c3a
JB
5476 * ppc-bdm.c (bdm_ppc_fetch_registers): Replace utterly broken code
5477 with a call to internal_error.
5478
383f0f5b
JB
5479 * ppc-tdep.h (struct gdbarch_tdep): Change definition of
5480 ppc_fp0_regnum and ppc_fpscr_regnum: if they are -1, then this
5481 processor variant lacks those registers.
5482 (ppc_floating_point_unit_p): Change description to make it clear
5483 that this returns info about the ISA, not the ABI.
5484 * rs6000-tdep.c (ppc_floating_point_unit_p): Decide whether to
5485 return true or false by checking tdep->ppc_fp0_regnum and
5486 tdep->ppc_fpscr_regnum. The original code replicated the BFD
5487 arch/mach switching done in rs6000_gdbarch_init; it's better to
5488 keep that logic there, and just check the results here.
5489 (rs6000_gdbarch_init): On the E500, set tdep->ppc_fp0_regnum and
5490 tdep->ppc_fpscr_regnum to -1 to indicate that we have no
5491 floating-point registers.
5492 (ppc_supply_fpregset, ppc_collect_fpregset)
5493 (rs6000_push_dummy_call, rs6000_extract_return_value)
5494 (rs6000_store_return_value): Assert that we have floating-point
5495 registers.
5496 (rs6000_dwarf2_stab_reg_to_regnum): Add FIXME.
5497 (rs6000_frame_cache): Don't note the locations at which
5498 floating-point registers were saved if we have no fprs.
5499 * aix-thread.c (supply_fprs, fill_fprs): Assert that we have FP
5500 registers.
5501 (fetch_regs_user_thread, fetch_regs_kernel_thread)
5502 (store_regs_user_thread, store_regs_kernel_thread): Only call
5503 supply_fprs / fill_fprs if we actually have floating-point
5504 registers.
5505 (special_register_p): Check ppc_fpscr_regnum before matching
5506 against it.
5507 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32): Don't
5508 supply / collect fpscr if we don't have it.
5509 * ppc-bdm.c: #include "gdb_assert.h".
5510 (bdm_ppc_fetch_registers, bdm_ppc_store_registers): Assert that we
5511 have floating-point registers, since I can't test this code on
5512 FP-free systems to adapt it.
5513 * ppc-linux-nat.c (ppc_register_u_addr): Don't match against the
5514 fpscr and floating point register numbers if they don't exist.
5515 (fetch_register): Assert that we have floating-point registers
5516 before we reach the code that handles them.
5517 (store_register): Same. And use tdep instead of calling
5518 gdbarch_tdep again.
5519 (fill_fpregset): Don't try to collect FP registers and fpscr if we
5520 don't have them.
5521 (ppc_linux_sigtramp_cache): Don't record the saved locations of
5522 fprs and fpscr if we don't have them.
5523 (ppc_linux_supply_fpregset): Don't supply fp regs and fpscr if we
5524 don't have them.
5525 * ppcnbsd-nat.c: #include "gdb_assert.h".
5526 (getfpregs_supplies): Assert that we have floating-point registers.
5527 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg): Same.
5528 * ppcobsd-tdep.c: #include "gdb_assert.h".
5529 (ppcobsd_supply_gregset, ppcobsd_collect_gregset): Assert that we
5530 have floating-point registers.
5531 * rs6000-nat.c (regmap): Don't match against the fpscr and
5532 floating point register numbers if they don't exist.
5533 (fetch_inferior_registers, store_inferior_registers,
5534 fetch_core_registers): Only fetch / store / supply the
5535 floating-point registers and the fpscr if we have them.
5536 * Makefile.in (ppc-bdm.o, ppc-linux-nat.o, ppcnbsd-nat.o)
5537 (ppcobsd-tdep.o): Update dependencies.
5538
15960608
AC
55392004-05-10 Andrew Cagney <cagney@redhat.com>
5540
5541 * infrun.c (through_sigtramp_breakpoint): Delete variable.
5542 (context_switch): Do not switch through_sigtramp_breakpoint.
5543 * gdbthread.h (save_infrun_state, load_infrun_state)
5544 (struct thread_info): Delete through_sigtramp_breakpoint parameter
5545 and structure member.
5546 * thread.c (load_infrun_state, save_infrun_state): Update.
5547
5ab5aa0f
MK
55482004-05-10 Mark Kettenis <kettenis@gnu.org>
5549
5550 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Call m68k_svr4_init_abi.
5551
da78b0e7
DJ
55522004-05-10 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
5553
5554 * acinclude.m4: Quote macro names being defined by AC_DEFUN
5555 throughout.
5556 * aclocal.m4: Regenerate.
5557
cca0d3b0
NW
55582004-05-10 Nathan J. Williams <nathanw@wasabisystems.com>
5559
5560 * alphanbsd-tdep.c: Fix include of "gdb_string.h".
5561
d303a6c7
AC
55622004-05-10 Andrew Cagney <cagney@redhat.com>
5563
5564 * infrun.c (check_sigtramp2): Delete function.
5565 (handle_inferior_event): When single stepping, and taking a
5566 signal, set a breakpoint at the signal return address. Delete
5567 redundant calls to check_sigtramp2.
5568 (insert_step_resume_breakpoint): New function.
5569 (through_sigtramp_breakpoint, handle_inferior_event)
5570 (follow_exec, wait_for_inferior, fetch_inferior_event)
5571 (currently_stepping, keep_going): Delete most uses of
5572 through_sigtramp_breakpoint, not that it should be deleted.
5573 (delete_breakpoint_current_contents): Delete function.
5574
03f4cc20
RC
55752004-05-10 Randolph Chung <tausq@debian.org>
5576
5577 * config/pa/linux.mt (TM_FILE): Use new tm-linux.h for hppa-linux
5578 target.
5579 * config/pa/tm-linux.h: New file.
5580
37fc812e
DJ
55812004-05-10 Daniel Jacobowitz <drow@mvista.com>
5582
5583 * cli/cli-setshow.c (cmd_show_list): Check for "show" in the middle
5584 of prefixes. Don't print the prefix twice in the CLI.
5585
26c0b942
JB
55862004-05-10 Jim Blandy <jimb@redhat.com>
5587
2e56e9c1
JB
5588 * rs6000-tdep.c (ppc_collect_gregset): When regnum == -1, do
5589 collect all the gprs.
5590
26c0b942
JB
5591 * rs6000-tdep.c (ppc_collect_gregset): Correct off-by-one error in
5592 loop collecting gprs.
5593
dc497459
AC
55942004-05-09 Andrew Cagney <cagney@redhat.com>
5595
5596 * remote-vx.c (net_step): Delete step-range code.
5597 * remote.c (remote_resume, init_all_packet_configs)
5598 (set_remote_protocol_E_packet_cmd)
5599 (show_remote_protocol_E_packet_cmd)
5600 (remote_protocol_E, show_remote_cmd, _initialize_remote)
5601 (remote_protocol_e, set_remote_protocol_e_packet_cmd)
5602 (show_remote_protocol_e_packet_cmd): Ditto.
5603
0543f387
MK
56042004-05-09 Mark Kettenis <kettenis@gnu.org>
5605
c481d1ca
MK
5606 * hppa-tdep.h (enum hppa_regnum): Name enum, add HPPA_R1_REGNUM.
5607
f626a069
MK
5608 * hppa-tdep.h: Update copyright year.
5609 (struct trad_frame_saved_reg): Add opaque declaration.
5610
6fa57a7d
MK
5611 * amd64-tdep.c (amd64_return_value): Implement
5612 RETURN_VALUE_ABI_RETURNS_ADDRESS.
5613
e47577ab
MK
5614 * m68k-tdep.c (m68k_convert_register_p, m68k_register_to_value)
5615 (m68k_value_to_register): New functions.
5616 (m68k_gdbarch_init): Set convert_register_p, register_to_value and
5617 value_to_register.
5618
31db7b6c
MK
5619 * defs.h (enum return_value_convention): Add
5620 RETURN_VALUE_ABI_RETURNS_ADDRESS and
5621 RETURN_VALUE_ABI_PRESERVES_ADDRESS.
5622 * infcmd.c (legacy_return_value): New function.
5623 (print_return_value): Rwerite to implement
5624 RETURN_VALUE_ABI_RETURNS_ADDRESS.
5625 * values.c (using_struct_return): Check for inequality to
5626 RETURN_VALUE_REGISTER_CONVENTION instead of equality to
5627 RETURN_VALUE_STRUCT_CONVENTION.
5628 * i386-tdep.c (i386_return_value): Implement
5629 RETURN_VALUE_ABI_RETURNS_ADDRESS.
5630
0543f387
MK
5631 * vax-tdep.c: Tweak comments. Reorder include files. Don't
5632 include "symtab.h", "opcode/vax.h" and "inferior.h".
5633 (vax_skip_prologue): Replace calls to read_memory_integer by calls
5634 to read_memory_unsigned_integer.
5635 (vax_gdbarch_init): Reorder.
5636 (_initialize_vax_tdep): Spell out prototype.
5637 * Makefile.in (vax-tdep.o): Update dependencies.
5638
0c93b7b6
AC
56392004-05-08 Andrew Cagney <cagney@redhat.com>
5640
e6b55ae2
AC
5641 * infrun.c (resume): Delete call to DO_DEFERRED_STORES.
5642 * target.c (target_detach, target_disconnect): Ditto.
5643
1ac839b8
AC
5644 * infcall.c (call_function_by_hand): When no
5645 DEPRECATED_SAVE_DUMMY_FRAME_TOS call generic_save_dummy_frame_tos.
5646 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set
5647 DEPRECATED_SAVE_DUMMY_FRAME_TOS.
5648 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5649 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5650
28954179
AC
5651 * gdbarch.sh (DEPRECATED_FIX_CALL_DUMMY): Delete.
5652 * gdbarch.h, gdbarch.c: Re-generate.
5653 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
5654 deprecated_fix_call_dummy.
5655 * v850-tdep.c (v850_gdbarch_init): Ditto.
5656 * infcall.c (call_function_by_hand): Do not call
5657 DEPRECATED_FIX_CALL_DUMMY.
5658
434b87dd
AC
5659 * gdbarch.sh (DEPRECATED_CALL_DUMMY_WORDS)
5660 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Delete.
5661 * gdbarch.h, gdbarch.c: Re-generate.
5662 * arm-linux-tdep.c (arm_linux_call_dummy_words)
5663 (arm_linux_init_abi): Do not set deprecated_call_dummy_words or
5664 deprecated_sizeof_call_dummy_words.
5665 * arm-tdep.c (arm_call_dummy_words, arm_gdbarch_init): Ditto.
5666 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
5667 * v850-tdep.c (v850_gdbarch_init): Ditto.
5668 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
5669 * ns32k-tdep.c (ns32k_call_dummy_words, ns32k_gdbarch_init): Ditto.
5670 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5671 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5672 * arch-utils.h (legacy_call_dummy_words)
5673 (legacy_sizeof_call_dummy_words): Delete declarations.
5674 * arch-utils.c (legacy_call_dummy_words)
5675 (legacy_sizeof_call_dummy_words): Delete variables.
5676
58d28df8
AC
5677 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Delete.
5678 * gdbarch.h, gdbarch.c: Re-generate.
5679 * inferior.h (PUSH_DUMMY_FRAME): Delete macro.
5680 * infcall.c (call_function_by_hand): Eliminate call to
5681 DEPRECATED_PUSH_DUMMY_FRAME.
5682 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
5683 push_dummy_frame.
5684 (ns32k_push_dummy_frame): Delete function.
5685
e4a2df64
AC
5686 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
5687 deprecated_call_dummy_breakpoint_offset or
5688 deprecated_call_dummy_start_offset.
5689 * dummy-frame.c, arm-tdep.c: Update comments.
5690 * gdbarch.sh (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET)
5691 (DEPRECATED_CALL_DUMMY_START_OFFSET): Delete.
5692 * gdbarch.h, gdbarch.c: Re-generate.
5693
d3712828
AC
5694 * infcall.c (legacy_push_dummy_code): Delete function.
5695 (push_dummy_code): Delete call.
5696
7a882905
AC
5697 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete.
5698 * gdbarch.h, gdbarch.c: Re-generate.
5699 * blockframe.c (legacy_frame_chain_valid): Simplify by eliminating
5700 DEPRECATED_USE_GENERIC_DUMMY_FRAMES.
5701 * infcall.c (legacy_push_dummy_code, call_function_by_hand): Ditto.
5702 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Ditto.
5703
0ec5872b
AC
5704 * breakpoint.h (deprecated_frame_in_dummy): Delete declaration.
5705 (struct frame_info): Delete opaque declaration.
5706 * breakpoint.c (deprecated_frame_in_dummy): Delete function.
5707 * frame.c (get_frame_type): Delete call.
5708
0c93b7b6
AC
5709 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
5710 pc_in_call_dummy.
5711 * inferior.h (deprecated_pc_in_call_dummy_on_stack): Delete.
5712 * blockframe.c (deprecated_pc_in_call_dummy_on_stack): Delete.
5713
75536971
MK
57142004-05-08 Mark Kettenis <kettenis@gnu.org>
5715
527ca6bb
MK
5716 * alphanbsd-tdep.c: Include "gdb_string.h".
5717 * armnbsd-tdep.c: Update copyright year.
5718 Include "gdb_string.h".
5719 * Makefile.in (alphanbsd-tdep.o, armnbsd-tdep.o): Update
5720 dependencies.
5721
d39fdc61
MK
5722 * delta68-nat.c: Remove file.
5723 * m68k-tdep.c (delta68_in_sigtramp, delta68_frame_args_address)
5724 (delta68_frame_saved_pc, delta68_frame_num_args): Remove functions.
5725 * Makefile.in (ALLDEPFILES): Remove delta68-nat.c.
5726 (delta68-nat.o): Remove dependency.
5727
75536971
MK
5728 * m68k-tdep.c (m68k_frameless_function_invocation): Remove
5729 function.
5730 (m68k_gdbarch_init): Don't set
5731 deprecated_frameless_function_invocation.
5732
f4ca1d1f
RC
57332004-05-07 Randolph Chung <tausq@debian.org>
5734
5735 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Use
5736 read_memory_nobpt for code reading when doing frame unwinding.
5737 * hppa-linux-tdep.c (insns_match_pattern): Likewise.
5738
2f0e8c7a
RC
57392004-05-07 Randolph Chung <tausq@debian.org>
5740
5741 * hppa-linux-tdep.c (hppa_linux_sigtramp_find_sigcontext): Pass in pc
5742 instead of sp, handle sigaltstack case.
5743 (hppa_linux_sigtramp_frame_unwind_cache): Adjust calls to
5744 hppa_linux_sigtramp_find_sigcontext, and set base to the frame of the
5745 signal handler and not that of the caller.
5746 (hppa_linux_sigtramp_unwind_sniffer): Adjust calls to
5747 hppa_linux_sigtramp_find_sigcontext.
5748
959464ff
RC
57492004-05-07 Randolph Chung <tausq@debian.org>
5750
5751 * Makefile.in (ALLDEPFILES): Add hppa-linux-tdep.c and
5752 hppa-linux-nat.c.
5753 (hppa-linux-tdep.o, hppa-linux-nat.o): Define rules.
5754 * hppa-linux-nat.c (fetch_register, store_register): Define.
5755 (fetch_inferior_registers, store_inferior_registers): Define.
5756 (supply_gregset): Add comment and clean up some unneeded code.
5757 (fill_gregset): Add comment and fix so that it saves registers in
5758 the right place in the gregset.
5759 (fill_fpregset): Fix buffer overrun problem.
5760 * config/pa/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
5761
0da28f8a
RC
57622004-05-07 Randolph Chung <tausq@debian.org>
5763
5764 * hppa-tdep.c (hppa_frame_prev_register_helper): New function to
5765 do common handling of the pcoqt register.
5766 (hppa_frame_prev_register, hppa_stub_frame_prev_register): Convert
5767 to use helper function.
5768 (hppa_frame_unwind_sniffer): Only use if unwind entry is present.
5769 (hppa_fallback_frame_cache, hppa_fallback_frame_this_id)
5770 (hppa_fallback_frame_prev_register, hppa_fallback_frame_unwind): New
5771 generic fallback unwinder when all else fails.
5772 (hppa_gdbarch_init): Add fallback sniffer.
5773 * hppa-tdep.h (hppa_frame_prev_register_helper): Prototype.
5774 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register): Convert
5775 to use helper function.
5776
b9ec757a
JB
57772004-05-08 Joel Brobecker <brobecker@gnat.com>
5778
5779 * config/djgpp/fnchange.lst: Add translation rules for
5780 gdb.arch/powerpc-aix-prologue.c and gdb.arch/powerpc-aix-prologue.exp.
5781
756e95f1
MK
57822004-05-08 Mark Kettenis <kettenis@gnu.org>
5783
5784 * frame.c (get_prev_frame_1): Work around GCC bug.
5785 * frame.h: Add comment about GCC bug.
5786
2b4855ab
AC
57872004-05-07 Andrew Cagney <cagney@redhat.com>
5788
5789 * observer.c: Include "commands.h" and "gdbcmd.h".
5790 (observer_debug, _initialize_observer): Add the
5791 command "set/show debug observer".
5792 * observer.sh: When observer debugging, log notify calls.
5793 * Makefile.in (observer.o): Update dependencies.
5794
ba3e8e46
JM
57952004-05-07 Jason Molenda (jmolenda@apple.com)
5796
5797 * cli/cli-decode.c: Fix "SHOW_DOR" comment typeos.
5798
16796152
JB
57992004-05-07 Jim Blandy <jimb@redhat.com>
5800
daf6dc85
JB
5801 * aix-thread.c (fetch_regs_kernel_thread, fill_gprs64,
5802 fill_gprs32, store_regs_kernel_thread): Use tdep->ppc_gp0_regnum
5803 to recognize gpr regnums, instead of assuming that
5804 tdep->ppc_fp0_regnum marks the end of the general-purpose
5805 registers.
5806
16796152
JB
5807 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Assert that
5808 the given architecture has floating-point registers.
5809
c69b8bfc
AC
58102004-05-07 Andrew Cagney <cagney@redhat.com>
5811
5812 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Replace with
5813 macro defined to 1.
5814 * gdbarch.h, gdbarch.c: Re-generate.
5815 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
5816 deprecated_use_generic_dummy_frames.
5817
7243600a
BF
58182004-05-07 Brian Ford <ford@vss.fsi.com>
5819
5820 * NEWS: Mention Cygwin DWARF 2 support.
5821
73c1e0a1
AC
58222004-05-07 Andrew Cagney <cagney@redhat.com>
5823
5824 * objfiles.h (struct entry_info): Delete unused fields
5825 deprecated_entry_file_lowpc and deprecated_entry_file_highpc.
5826 * objfiles.c (init_entry_point_info, objfile_relocate): Update.
5827 * mipsread.c (mipscoff_symfile_read): Update.
5828 * mdebugread.c (parse_partial_symbols): Update.
5829 * dwarfread.c (read_file_scope): Update.
5830 * dwarf2read.c (read_file_scope): Update.
5831 * dbxread.c (read_dbx_symtab, read_dbx_symtab): Update.
5832 * coffread.c (complete_symtab): Update.
5833
1d3056ac
MK
58342004-05-07 Mark Kettenis <kettenis@gnu.org>
5835
5836 * infcall.c (_initialize_infcall): Fix typo.
5837
15170568
AC
58382004-05-07 Andrew Cagney <cagney@redhat.com>
5839
5840 * cli/cli-decode.c (add_setshow_zinteger_cmd): New function.
5841 * command.h (add_setshow_zinteger_cmd): Declare.
5842
34f75cc1
RC
58432004-05-06 Randolph Chung <tausq@debian.org>
5844
5845 * config/pa/tm-hppa.h (RO_REGNUM, FLAGS_REGNUM, RP_REGNUM)
5846 (HPPA_FP_REGNUM, HPPA_SP_REGNUM, SAR_REGNUM, IPSW_REGNUM)
5847 (PCOQ_HEAD_REGNUM, PCSQ_HEAD_REGNUM, PCOQ_TAIL_REGNUM, PCSQ_TAIL_REGNUM)
5848 (EIEM_REGNUM, IIR_REGNUM, ISR_REGNUM, IOR_REGNUM, SR4_REGNUM)
5849 (RCR_REGNUM, PID0_REGNUM, PID1_REGNUM, PID2_REGNUM, PID3_REGNUM)
5850 (CCR_REGNUM, TR0_REGNUM, CR27_REGNUM, HPPA_FP0_REGNUM, FP4_REGNUM)
5851 (ARG0_REGNUM, ARG1_REGNUM, ARG2_REGNUM, ARG3_REGNUM): Move *_REGNUM
5852 definitions ...
5853 * hppa-tdep.h: ... to here, with HPPA_ prefix.
5854 * Makefile.in (hppah-nat.o): Add $(hppa_tdep_h)
5855 * hppa-hpux-tdep.c (hppa32_hpux_frame_find_saved_regs_in_sig)
5856 (hppa64_hpux_frame_find_saved_regs_in_sig)
5857 (child_get_current_exception_event): Add HPPA_ prefix to *_REGNUM usage.
5858 * hppa-linux-nat.c (GR_REGNUM, TR_REGNUM, greg_map): Likewise.
5859 * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum)
5860 (hppa_linux_target_write_pc, hppa_linux_sigtramp_frame_unwind_cache)
5861 (hppa_linux_sigtramp_frame_prev_register): Likewise.
5862 * hppa-tdep.c (hppa32_return_value, hppa64_return_value)
5863 (hppa32_push_dummy_call, hppa64_push_dummy_call, hppa64_frame_align)
5864 (hppa_target_read_pc, hppa_target_write_pc, hppa_frame_cache)
5865 (hppa_frame_prev_register, hppa_stub_frame_unwind_cache)
5866 (hppa_stub_frame_prev_register, hppa_unwind_dummy_id)
5867 (hppa_skip_permanent_breakpoint, hppa_instruction_nullified)
5868 (hppa32_register_type, hppa_cannot_store_register)
5869 (hppa_fetch_pointer_argument, hppa_pseudo_register_read): Likewise.
5870 * hppah-nat.c (store_inferior_registers, fetch_register): Likewise.
5871 * hpread.c (hpread_process_one_debug_symbol): Likewise.
5872 * pa64solib.c (pa64_solib_have_load_event)
5873 (pa64_solib_have_unload_event, pa64_solib_loaded_library_pathname)
5874 (pa64_solib_unloaded_library_pathname): Likewise.
5875 * somsolib.c (som_solib_have_load_event, som_solib_have_unload_event)
5876 (som_solib_library_pathname): Likewise.
5877
0a5e7efe
JI
58782004-05-05 Jim Ingham <jingham@apple.com>
5879
5880 * breakpoint.c (create_breakpoints): Copy the ignore count and
5881 thread id over from the pended breakpoint to the actual
5882 breakpoint.
5883
10a4b113
AC
58842004-05-05 Andrew Cagney <cagney@redhat.com>
5885
5886 * gdbarch.sh (PARM_BOUNDARY): Delete.
5887 gdbarch.h, gdbarch.c: Re-generate.
5888 * valops.c (PARM_BOUNDARY): Delete macro.
5889 (value_push): Delete PARM_BOUNDARY code.
5890 * m68k-tdep.c (m68k_gdbarch_init): Do not set parm_boundary.
5891
366f009f
JB
58922004-05-04 Jim Blandy <jimb@redhat.com>
5893
32b99774
JB
5894 * ppc-linux-nat.c (fetch_ppc_registers, store_ppc_registers):
5895 Don't assume that the gprs, fprs, and UISA sprs are
5896 contiguous, start at register number zero, and end with fpscr.
5897 Instead, use the numbers from the tdep structure.
5898
366f009f
JB
5899 * config/rs6000/tm-rs6000.h (FP0_REGNUM): Document that this
5900 should no longer be used in code specific to the RS6000 and its
5901 derivatives.
5902 * ppc-tdep.h (struct gdbarch_tdep): Add 'ppc_fp0_regnum' member.
5903 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize
5904 tdep->ppc_fp0_regnum.
5905 (ppc_supply_fpregset, ppc_collect_fpregset)
5906 (rs6000_push_dummy_call, rs6000_extract_return_value)
5907 (rs6000_dwarf2_stab_reg_to_regnum, rs6000_store_return_value)
5908 (rs6000_frame_cache): Use tdep->ppc_fp0_regnum instead of
5909 FP0_REGNUM.
5910 * aix-thread.c (supply_fprs, fetch_regs_kernel_thread)
5911 (fill_gprs64, fill_gprs32, fill_fprs, store_regs_kernel_thread):
5912 Same.
5913 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_fetch_registers,
5914 bdm_ppc_store_registers): Same.
5915 * ppc-linux-nat.c (ppc_register_u_addr, fetch_register)
5916 (store_register, fill_fpregset): Same.
5917 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache)
5918 (ppc_linux_supply_fpregset): Same.
5919 * ppcnbsd-nat.c (getfpregs_supplies): Same.
5920 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg):
5921 Same.
5922 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call,
5923 do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call,
5924 ppc64_sysv_abi_return_value): Same.
5925 * rs6000-nat.c (regmap, fetch_inferior_registers)
5926 (store_inferior_registers, fetch_core_registers): Same.
5927
827f338d
MK
59282004-05-01 Mark Kettenis <kettenis@gnu.org>
5929
5930 * m68knbsd-nat.c: Remove file.
5931 * m68knbsd-tdep.c: Remove file.
5932 * Makefile.in: (m68knbsd-nat.o, m68knbsd-tdep.o): Remove
5933 dependencies.
5934 * configure.host: Add m68k-*-netbsdelf*.
5935 * configure.tgt (m68k-*-netbsd*): Set gdb_target to nbsd.
5936 * config/m68k/nbsdaout.mh (NATDEPFILES): Add m68kbsd-nat.o,
5937 solib.o and solib-sunos.o. Remove m68knbsd-nat.o, corelow.o.
5938 (XM_FILE): Remove.
5939 * config/m68k/nbsdelf.mh: New file.
5940 * config/m68k/nbsd.mt: New file.
5941 * config/m68k/nbsdaout.mt: Remove file.
5942 * config/m68k/tm-nbsd.h: Don't include <sys/param.h>,
5943 <machine/vmparam.h> and "m68k/tm-m68k.h". Include "solib.h".
5944 (BPT_VECTOR, STACK_END_ADDR): Remove defines.
5945 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Likewise.
5946 (use_struct_convention): Remove prototype.
5947 (USE_STRUCT_CONVENTION): Remove define.
5948 * config/m68k/xm-nbsd.h: Remove file.
5949
66894781
MS
59502004-05-04 Michael Snyder <msnyder@redhat.com>
5951
5952 * m68k-tdep.c (m68k_gdbarch_init): Default to using
5953 reg_struct_return method (as gcc usually does for cross targets).
5954
f0f63663
AC
59552004-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5956
5957 Committed by Andrew Cagney.
5958 * s390-tdep.c (s390_sigtramp_frame_unwind_cache): Account for
5959 alignment padding when accessing ucontext struct members.
5960
edf61169
JB
59612004-05-04 Jim Blandy <jimb@redhat.com>
5962
8bf659e8
JB
5963 * config/ppc-tdep.h (struct gdbarch_tdep): Delete
5964 'ppc_gplast_regnum' member.
5965 (ppc_num_gprs): New enum constant.
5966 * ppc-linux-nat.c (ppc_register_u_addr): Use tdep->ppc_gp0_regnum
5967 and ppc_num_gprs instead of tdep->ppc_gplast_regnum.
5968 * rs6000-nat.c (regmap, fetch_inferior_registers,
5969 store_inferior_registers): Same.
5970 * rs6000-tdep.c (e500_pseudo_register_read)
5971 (e500_pseudo_register_write): Same.
5972 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gplast_regnum.
5973
b967e06f
JB
5974 * config/rs6000/tm-rs6000.h (FPLAST_REGNUM): Delete #definition.
5975 * ppc-tdep.h (ppc_num_fprs): New enum constant.
5976 * aix-thread.c (fetch_regs_kernel_thread, fill_fprs,
5977 store_regs_kernel_thread): Use FP0_REGNUM + ppc_num_fprs, not
5978 FPLAST_REGNUM.
5979 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
5980 Same.
5981 * ppc-linux-nat.c (ppc_register_u_addr): Same.
5982 * rs6000-nat.c (regmap, fetch_inferior_registers)
5983 (store_inferior_registers): Same.
5984
edf61169
JB
5985 * aix-thread.c (fill_fprs): Fix off-by-one error comparing regno
5986 with FPLAST_REGNUM.
5987
58a9656e
JB
59882004-05-03 Joel Brobecker <brobecker@gnat.com>
5989
5990 * dwarf2read.c (dwarf2_create_include_psymtab): Fix build
5991 failure detected by recent versions of GCC.
5992 (psymtab_to_symtab_1): No longer use the PST_PRIVATE macro
5993 to be consistent with the usage in dwarf2_create_include_psymtab.
5994
dc305454
MS
59952004-05-03 Michael Snyder <msnyder@redhat.com>
5996
5997 * mips-tdep.c (mips_gdbarch_init): Fix typo in comment.
5998 (heuristic_proc_start): Whitespace cleanup.
5999
29972665
MK
60002004-05-04 Mark Kettenis <kettenis@gnu.org>
6001
6b57680d
MK
6002 * sun3-nat.c: Remove file.
6003 * Makefile.in (tm-sun3.h tm-altos.h tm-sun2.h tm-3b1.h): Remove
6004 dependencies.
6005 (ALLDEPFILES): Remove sun3-nat.c.
6006 (sun3-nat.o): Remove dependencies.
6007
29972665
MK
6008 * i386-interix-nat.c, i386-interix-tdep.c,
6009 config/i386/nm-interix.h, config/i386/interix.mh,
6010 config/i386/interix.mt: Remove files.
6011 * Makefile.in (i386-interix-nat.o, i386-interix-tdep.o): Remove
6012 dependencies.
6013
f595cb19
MK
60142004-05-03 Mark Kettenis <kettenis@gnu.org>
6015
6016 * m68k-tdep.h (struct gdbarch_tdep): Add member
6017 struct_value_regnum.
6018 (m68k_svr4_init_abi): New prototype.
6019 * m68k-tdep.c: Include "floatformat.h". Add comment about all the
6020 different calling conventions.
6021 (m68k_extract_return_value): Remove code dealing with single-field
6022 structs.
6023 (m68k_store_return_value): Remove code dealing with single-field
6024 structs. Correctly store return values of 5, 6, 7 or 8 bytes.
6025 (m68k_extract_struct_value_address): Remove function.
6026 (m68k_svr4_extract_return_value,m68k_svr4_store_return_value)
6027 (m68k_reg_struct_return_p, m68k_return_value)
6028 (m68k_svr4_return_value): New functions.
6029 (m68k_use_struct_convention): Remove function.
6030 (m68k_push_dummy_call): Use new struct_value_regnum member of
6031 `struct gdbarch_tdep' instead of hardcoded register number to
6032 store STRUCT_ADDR.
6033 (m68k_svr4_init_abi): New function.
6034 (m68k_gdbarch_init): Don't set extract_return_value,
6035 store_return_values, deprecated_extract_struct_value_address and
6036 use_struct_convention. Set return_value instead. Initialize new
6037 struct_value_regnum member of `struct gdbarch_tdep'.
6038 * m68klinux-tdep.c: Update copyright year.
6039 (m68k_linux_extract_return_value, m68k_linux_store_return_value)
6040 (m68k_linux_extract_struct_value_address): Remove function.
6041 (m68k_linux_init_abi): Don't set extract_return_value,
6042 store_return_values, deprecated_extract_struct_value_address and
6043 use_struct_convention. Call m68k_svr4_init_abi but override the
6044 new struct_value_regnum member of `struct gdbarch_tdep'.
6045 * Makefile.in (m68k-tdep.o): Update dependencies.
6046
aaa75496
JB
60472004-05-03 J. Brobecker <brobecker@gnat.com>
6048
6049 * dwarf2read.c (line_header): Add new included_p field in
6050 field file_names.
6051 (partial_die_info): New field has_stmt_list. New field line_offset.
6052 (dwarf2_create_include_psymtab): New function.
6053 (dwarf2_build_include_psymtabs): New function.
6054 (add_file_name): Add forward declaration. Initialize new field.
6055 (dwarf_decode_lines): Add new parameter. Enhance this procedure
6056 to be able to determine the list of files included by the
6057 given unit, and build their associated psymtabs.
6058 (dwarf2_build_psymtabs_hard): Build the psymtabs for the included
6059 files as well.
6060 (psymtab_to_symtab_1): Build the symtabs of all dependencies as well.
6061 (read_file_scope): Update call to dwarf_decode_lines.
6062 (read_partial_die): Handle DW_AT_stmt_list attributes.
6063
c848556f
MC
60642004-05-02 Michael Chastain <mec.gnu@mindspring.com>
6065
6066 Unfix PR gdb/1626.
6067 * configure.in: Revert special case for osf5.*.
6068 * configure: Regenerate.
6069
eb4556d7
JB
60702004-05-02 Jim Blandy <jimb@redhat.com>
6071
6072 Move the symbol-file-from-memory functions into their own file.
6073 * symfile-mem.c, symfile-mem.h: New files.
6074 * symfile.c (symbol_file_add_from_bfd): New function.
6075 (symbol_file_add): Call symbol_file_add_from_bfd.
6076 (symbol_file_add_from_memory, add_symbol_file_from_memory_command):
6077 Moved to symfile-mem.c.
6078 (_initialize_symfile): Move definition of
6079 add-symbol-file-from-memory command to symfile-mem.c.
6080 * symfile.h (symbol_file_add_from_bfd): New declaration.
6081 * config/i386/linux.mt (TDEPFILES): Add symfile-mem.o.
6082 * config/powerpc/linux.mt (TDEPFILES): Same.
6083 * Makefile.in (SFILES): Add symfile-mem.c.
6084 (symfile_mem_h): New variable.
6085 (HFILES_NO_SRCDIR): Add symfile-mem.h.
6086 (symfile-mem.o): New rule.
6087
80bb239e
AC
60882004-05-01 Andrew Cagney <cagney@redhat.com>
6089
7789d0fa
AC
6090 * breakpoint.c (insert_bp_location): Use get_frame_id, and
6091 frame_find_by_id instead of frame_relative_level.
6092 (do_enable_breakpoint): Ditto.
6093 * thread.c: Update copyright.
6094 (info_threads_command): Ditto, simplify.
6095
80bb239e
AC
6096 * frame.c (deprecated_generic_get_saved_register): Delete
6097 function, moved to "xstormy16-tdep.c".
6098 * xstormy16-tdep.c (xstormy16_get_saved_register): Inline
6099 deprecated_generic_get_saved_register from "frame.c".
6100 (xstormy16_frame_saved_register): Call
6101 xstormy16_get_saved_register.
6102 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Make
6103 static.
6104 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Delete.
6105 * frame.h (deprecated_generic_get_saved_register): Delete.
6106
b2a871dd
MC
61072004-05-01 Michael Chastain <mec.gnu@mindspring.com>
6108
6109 * dwarfread.c: Update documentation on the state of dwarf-1.
6110
0e100dab
AC
61112004-05-01 Andrew Cagney <cagney@redhat.com>
6112
acd8056e
AC
6113 * stack.c (select_frame_command): Delete call to
6114 frame_relative_level.
6115 (print_frame, set_backtrace_limit_command, backtrace_limit_info):
6116 Delete #if0 code.
6117 (frame_info): Do not print FRAMELESS.
6118 (print_block_frame_labels): Replace DEPRECATED_STREQ.
6119 (catch_info): Delete #if0 code.
6120
0e100dab
AC
6121 * frame.c (create_sentinel_frame): Set type to SENTINEL_FRAME.
6122 * dummy-frame.c (dummy_frame_this_id): Use get_frame_type, instead
6123 of frame_relative_level.
6124 * sentinel-frame.c (sentinel_frame_unwinder): Set unwinder's type
6125 to SENTINEL_FRAME.
6126 * frame.h (enum frame_type): Add SENTINEL_FRAME.
6127 * s390-tdep.c (s390_prologue_frame_unwind_cache): Delete calls to
6128 frame_relative_level.
6129
55699d59
AC
6130 * frame.h (deprecated_set_frame_type): Delete declaration.
6131 * frame.c (deprecated_set_frame_type): Delete function, update
6132 comments.
6133
fcf70625
AC
6134 * gdbarch.sh (DEPRECATED_PC_IN_SIGTRAMP): Delete.
6135 * gdbarch.h, gdbarch.c: Re-generate.
6136 * shnbsd-tdep.c (shnbsd_init_abi): Do not set pc_in_sigtramp.
6137 (shnbsd_pc_in_sigtramp): Delete.
6138 * i386-interix-tdep.c (i386_interix_init_abi): Do not set
6139 pc_in_sigtramp.
6140 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Do not set
6141 pc_in_sigtramp.
6142 * frame.h: Update comments.
6143 * ppc-linux-tdep.c: Update comments.
6144 * breakpoint.c (bpstat_what): Update comments.
6145
ac5eccb7
AC
6146 * Makefile.in (m68klinux-tdep.o, m68klinux-nat.o): Fix
6147 m68klinux-tdep.o's dependencies, were previously added to
6148 m68klinux-nat.o.
6149
f2524b93
AC
6150 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Use pc_in_sigtramp.
6151 * alpha-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp.
6152 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
6153 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
6154 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
6155
17e20bce
AC
6156 * Makefile.in (m68klinux-nat.o): Update dependencies.
6157 * m68klinux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
6158 (m68k_linux_sigtramp_frame_cache)
6159 (m68k_linux_sigtramp_frame_this_id)
6160 (m68k_linux_sigtramp_frame_prev_register)
6161 (m68k_linux_sigtramp_frame_unwind)
6162 (m68k_linux_sigtramp_frame_sniffer)
6163 (struct m68k_linux_sigtramp_info, m68k_linux_init_abi): Code from
6164 m68k-tdep.h and m68k-tdep.c, add "linux" to function and variable
6165 names, use trad-frame.h.
6166 * m68k-tdep.h (struct gdbarch_tdep): Delete get_sigtramp_info.
6167 (struct m68k_sigtramp_info): Delete.
6168 * m68k-tdep.c (m68k_sigtramp_frame_cache)
6169 (m68k_sigtramp_frame_this_id, m68k_sigtramp_frame_prev_register)
6170 (m68k_sigtramp_frame_unwind, m68k_sigtramp_frame_sniffer)
6171 (m68k_gdbarch_init): Delete all the sigtramp code, moved to
6172 "m68klinux-tdep.c".
6173
c8864fa2
AC
6174 * infrun.c (check_sigtramp2): Delete check for
6175 DEPRECATED_PC_IN_SIGTRAMP and INNER_THAN.
6176
511dd2cd
MK
61772004-05-01 Mark Kettenis <kettenis@gnu.org>
6178
6179 * m68k-tdep.h (m68kbsd_fpreg_offset): New prototype.
6180
8c6b0e06
AC
61812004-05-01 Andrew Cagney <cagney@redhat.com>
6182
9df0bb3f
AC
6183 * frv-linux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
6184 (frv_linux_sigtramp_frame_cache)
6185 (frv_linux_sigtramp_frame_this_id)
6186 (frv_linux_sigtramp_frame_prev_register)
6187 (frv_linux_sigtramp_frame_unwind)
6188 (frv_linux_sigtramp_frame_sniffer): Copied from frv-tdep.c,
6189 include "linux" in function and variable names, directly call
6190 frv_linux_pc_in_sigtramp and frv_linux_sigcontext_reg_addr, use
6191 the latest trad-frame code.
6192 (frv_linux_init_abi): Append frv_linux_sigtramp_frame_sniffer, do
6193 not set frv_sigcontext_reg_addr or deprecated_pc_in_sigtramp
6194 * Makefile.in (frv-linux-tdep.o): Update dependencies.
6195 * frv-tdep.h (frv_set_sigcontext_reg_addr): Delete declaration.
6196 * frv-tdep.c (frv_sigtramp_frame_cache)
6197 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
6198 (frv_sigtramp_frame_unwind, frv_sigtramp_frame_sniffer): Moved to
6199 frv-linux-tdep.c.
6200 (frv_gdbarch_init): Do not append a sigtramp sniffer.
6201 (struct gdbarch_tdep): Delete sigcontext_reg_addr.
6202 (frv_set_sigcontext_reg_addr): Delete function.
6203
8c6b0e06
AC
6204 * gdbarch.sh (DEPRECATED_SIGTRAMP_START)
6205 (DEPRECATED_SIGTRAMP_END): Delete.
6206 * gdbarch.h, gdbarch.c: Re-generate.
6207 * arch-utils.c (legacy_pc_in_sigtramp): Simplify.
6208 * config/vax/tm-vaxbsd.h: Update copyright.
6209 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
6210 (DEPRECATED_IN_SIGTRAMP): Define.
6211 * config/m68k/tm-nbsd.h: Update copyright.
6212 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
6213 (DEPRECATED_IN_SIGTRAMP): Define.
6214
50ea7769
MK
62152004-05-01 Mark Kettenis <kettenis@gnu.org>
6216
03ac2a74
MK
6217 * dwarf2-frame.c (read_encoded_value): Handle DW_EH_PE_funcrel
6218 encondings. Fixes PR gdb/1628.
6219
50ea7769
MK
6220 * dwarf2-frame.c (execute_cfa_program): Complain if we encounter a
6221 DW_CFA_restore state without a matching DW_CFA_remember_state
6222 instead of aborting. Fixes PR backtrace/1589.
6223
9a5d7be1
JB
62242004-04-30 Joel Brobecker <brobecker@gnat.com>
6225
6226 * MAINTAINERS: Add self as AIX maintainer.
6227 Update my e-mail address in write-after-approval section.
6228
2593d1cd
AC
62292004-04-30 Andrew Cagney <cagney@redhat.com>
6230
ce12bbf9
AC
6231 * frame.c (frame_type_from_pc): Delete call to PC_IN_SIGTRAMP.
6232 (legacy_get_prev_frame): Ditto.
6233
36710c63
AC
6234 * mips-tdep.c (mips_pc_in_sigtramp): Delete.
6235 (mips_gdbarch_init): Do not set pc_in_sigtramp.
6236 * mipsread.c (sigtramp_address): Delete extern variable.
6237 (mipscoff_new_init): Delete reference.
6238 * mdebugread.c (sigtramp_address, sigtramp_end): Delete variables.
6239 (fixup_sigtramp): Delete function.
6240 * config/mips/tm-mips.h (sigtramp_address, sigtramp_end)
6241 (fixup_sigtramp): Delete declarations.
6242
2593d1cd
AC
6243 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Do not set
6244 deprecated_pc_in_sigtramp.
6245 (ppcnbsd_pc_in_sigtramp): Delete function.
6246
2a25f91c
MK
62472004-05-01 Mark Kettenis <kettenis@gnu.org>
6248
6249 * config/m68k/nm-nbsd.h: Tweak comments.
6250 * config/m68k/nm-nbsdaout.h: Likewise.
6251
0b281939
AC
62522004-04-30 Andrew Cagney <cagney@redhat.com>
6253
6254 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Call
6255 legacy_pc_in_sigtramp.
6256 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Ditto.
6257
8f2d3ea0
MK
62582004-05-01 Mark Kettenis <kettenis@gnu.org>
6259
6260 Add OpenBSD/m68k support.
6261 * NEWS (New native configurations): Mention OpenBSD/m68k.
6262 * m68kbsd-tdep.c: New file.
6263 * m68kbsd-nat.c: New file.
6264 * Makefile.in (ALLDEPFILES): Add m68kbsd-nat.c and m68kbsd-tdep.c.
6265 (m68kbsd-nat.o, m68kbsd-tdep.o): New dependencies.
6266 * configure.host: Add m68k-*-openbsd.
6267 * configure.tgt: Add m68k-*-openbsd.
6268 * config/m68k/tm-obsd.h: New file.
6269 * config/m68k/obsd.mt: New file.
6270 * config/m68k/obsd.mh: New file.
6271 * config/djgpp/fnchange.lst: Add entries for m68kbsd-nat.c and
6272 m68kbsd-tdep.c.
6273
c40f49a4
AC
62742004-04-30 Andrew Cagney <cagney@redhat.com>
6275
6276 * mipsnbsd-tdep.c (mipsnbsd_pc_in_sigtramp): Delete function.
6277 (mipsnbsd_init_abi): Do not set pc_in_sigtramp.
6278
e81554cd
MK
62792004-04-30 Mark Kettenis <kettenis@gnu.org>
6280
6281 * m68k-tdep.c (REMOTE_BPT_VECTOR): Remove define.
6282 * config/m68k/tm-nbsd.h (REMOTE_BPT_VECTOR): Remove define.
6283
d4dc1a91
BF
62842004-04-30 Brian Ford <ford@vss.fsi.com>
6285
6286 Revert 2004-04-16 change.
6287 * i386-tdep.c (i386_gdbarch_init): Fix comment typos.
6288 (i386_coff_init_abi): Remove.
6289 * i386-tdep.h (i386_coff_init_abi): Remove.
6290 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Remove call to above.
6291
2f72f850
AC
62922004-04-30 Andrew Cagney <cagney@redhat.com>
6293
e492f9d6
AC
6294 * blockframe.c (find_pc_partial_function): Delete use of
6295 DEPRECATED_PC_IN_SIGTRAMP, DEPRECATED_SIGTRAMP_START and
6296 DEPRECATED_SIGTRAMP_END.
6297
7b7adad0
AC
6298 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Delete.
6299 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Delete.
6300 * config/mips/tm-nbsd.h: Delete undef DEPRECATED_IN_SIGTRAMP.
6301 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Delete.
6302 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Delete.
6303
2f72f850
AC
6304 * defs.h (deprecated_inside_entry_file): Delete declaration.
6305 * blockframe.c (deprecated_inside_entry_file): Delete function.
6306 (legacy_frame_chain_valid): Delete call.
6307 * sh64-tdep.c (sh64_frame_chain): Delete call.
6308 * objfiles.h: Update comments.
6309 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Delete
6310 call.
6311 * frame.c (get_prev_frame): Delete call, update comments.
6312
283f90a7
BF
63132004-04-30 Brian Ford <ford@vss.fsi.com>
6314
6315 * MAINTAINERS (Write After Approval): Add myself.
6316
8ee56bcf
AC
63172004-04-30 Andrew Cagney <cagney@redhat.com>
6318
6319 * gdbarch.sh (BELIEVE_PCC_PROMOTION_TYPE): Delete.
6320 * gdbarch.h, gdbarch.c: Re-generate.
6321 * stabsread.c (define_symbol): Delete BELIEVE_PCC_PROMOTION_TYPE
6322 code.
6323
ee27e1b6
AC
63242004-04-30 Andrew Cagney <cagney@redhat.com>
6325
6326 * gdb-events.sh (selected_thread_changed)
6327 (selected_frame_level_changed, target_changed): Delete.
6328 * gdb-events.h, gdb-events.c: Re-generate.
6329 * valops.c (value_assign): Update.
6330 * stack.c (select_frame_command, up_silently_base)
6331 (down_silently_base): Update.
6332
d5ac5a39
AC
63332004-04-29 Andrew Cagney <cagney@redhat.com>
6334
6335 * mips-tdep.c (mips_register_type): Re-write, handle 32-bit ABI
6336 registers correctly.
6337 (print_gp_register_row, mips32_heuristic_proc_desc)
6338 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
6339 (mips_o64_push_dummy_call, mips_eabi_push_dummy_call): Eliminate
6340 references to mips_isa_regsize.
6341
ceae6e75
AC
63422004-04-29 Andrew Cagney <cagney@redhat.com>
6343
6344 * mips-tdep.c (struct gdbarch_tdep): Delete
6345 mips_fp_register_double.
6346 (FP_REGISTER_DOUBLE): Delete macro, replace with test for
6347 mips_abi_regsize.
6348 (mips_gdbarch_init): Do not set mips_fp_register_double.
6349 (mips_dump_tdep): Do not print FP_REGISTER_DOUBLE.
6350
a587af0b
AC
63512004-04-29 Joel Brobecker <brobecker@gnat.com>
6352
6353 Committed by Andrew Cagney.
6354 * infrun.c (handle_inferior_event): Rely on frame IDs to detect
6355 function calls.
6356
13326b4e
AC
63572004-04-29 Andrew Cagney <cagney@redhat.com>
6358
6359 * mips-tdep.c (mips_abi_regsize): Replace tdep parameter with
6360 gdbarch, use mips_abi, update callers.
6361 (mips_stack_argsize): Replace tdep parameter with gdbarch, use
6362 mips_abi_regsize, update callers.
6363 (struct gdbarch_tdep): Delete mips_default_stack_argsize and
6364 mips_default_abi_regsize.
6365 (mips_gdbarch_init): Do not set mips_default_stack_argsize and
6366 mips_default_abi_regsize.
6367
711cc5cd
AC
63682004-04-29 Andrew Cagney <cagney@redhat.com>
6369
1b13c4f6
AC
6370 * mips-tdep.c (mips_abi_regsize): Rename mips_saved_regsize.
6371 (mips_abi_regsize_string): Rename mips_saved_regsize_string.
6372 (struct gdbarch_tdep): Rename mips_default_saved_regsize to
6373 mips_default_abi_regsize.
6374 (mips_isa_regsize): Rename mips_regisze.
6375 * mipsnbsd-tdep.c: Update.
6376 * mips-linux-tdep.c: Update.
6377 * irix5-nat.c: Update.
6378 * mips-tdep.h (mips_isa_regsize): Update.
6379
711cc5cd
AC
6380 * gdb-events.sh (WITH_GDB_EVENTS): Delete macro and references.
6381 Delete all disabled code.
6382 * gdb-events.h, gdb-events.c: Re-generate.
6383
e63bbc88
MK
63842004-04-19 Jerome Guitton <guitton@gnat.com>
6385 Mark Kettenis <kettenis@gnu.org>
6386
6387 * i386-tdep.c (i386_skip_prologue): follow the last jump only if
6388 the function begins with a branch instruction.
6389
fd35795f
MK
63902004-04-29 Mark Kettenis <kettenis@gnu.org>
6391
6392 * i386-tdep.c: Fix spelling mistakes.
6393
c960c18f
AC
63942004-04-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6395 Andrew Cagney <cagney@redhat.com>
6396
6397 * configure.in (mips-sgi-irix5*): Define _KMEMUSER for
6398 <sys/proc.h>.
6399 * acconfig.h: Provide default _KMEMUSER value.
6400 * config.in, configure: Re-generate.
6401 * NEWS: Mention fix.
6402
50306a9d
RC
64032004-04-24 Randolph Chung <tausq@debian.org>
6404
6405 * configure.host (hppa*-*-linux*): New target.
6406 * configure.tgt (hppa*-*-linux*): Likewise.
6407 * hppa-tdep.c (hppa_gdbarch_init): Set cannot_fetch_register, move
6408 gdbarch_init_osabi() call earlier so that osabi-specific frame
6409 unwinders can be registered first.
6410 * config/djgpp/fnchange.lst: Add entries for hppa-linux-tdep.c and
6411 hppa-linux-nat.c.
6412 * config/pa/tm-hppa.h (ISR_REGNUM, PID0_REGNUM, PID1_REGNUM)
6413 (PID2_REGNUM, PID3_REGNUM): Add definitions of some register numbers.
6414 * config/pa/linux.mh: New file.
6415 * config/pa/linux.mt: New file.
6416 * config/pa/nm-linux.h: New file.
6417 * config/pa/xm-linux.h: New file.
6418 * hppa-linux-nat.c: New file.
6419 * hppa-linux-tdep.c: New file.
6420
2a6228ef
RC
64212004-04-28 Randolph Chung <tausq@debian.org>
6422
6423 * hppa-tdep.c (hppa32_return_value): Handle both 4- and 8-byte fp
6424 return values.
6425 (hppa32_push_dummy_call): Fix small struct and floating point argument
6426 passing, and make sure the stack frame is properly aligned.
6427
82c10df6
AC
64282004-04-28 Andrew Cagney <cagney@redhat.com>
6429
d762c46a
AC
6430 * stack.c (print_stack_frame): Fix description.
6431
82c10df6
AC
6432 * NEWS: Mention gdb/gdbserver/configure execute permission
6433 changed. PR server/519.
6434
0faf0076
AC
64352004-04-28 Andrew Cagney <cagney@redhat.com>
6436
6437 * stack.c (print_stack_frame_stub): Delete declaration.
6438 (struct print_stack_frame_args, print_stack_frame)
6439 (print_frame_info, print_frame): Replace "source" with print what.
6440 Replace "print" with "print_level". Replace "args" with
6441 "print_args".
6442 * frame.h (show_and_print_stack_frame, print_stack_frame)
6443 (print_frame_info): Update declarations.
6444 * stack.c (select_and_print_frame, frame_command)
6445 (current_frame_command, up_command, down_command): Update calls -
6446 use get_selected_frame, pass "enum print_what" for source, do not
6447 call frame_relative_level.
6448 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Ditto.
6449 * remote-rdp.c (remote_rdp_open): Ditto.
6450 * remote-mips.c (common_open): Ditto.
6451 * remote-e7000.c (e7000_start_remote): Ditto.
6452 * ocd.c (ocd_start_remote): Ditto.
6453 * mi/mi-main.c (mi_cmd_exec_return): Ditto.
6454 * infrun.c (normal_stop): Ditto.
6455 * inflow.c (kill_command): Ditto.
6456 * infcmd.c (finish_command): Ditto.
6457 * corelow.c (core_open): Ditto.
6458 * tracepoint.c (finish_tfind_command): Ditto.
6459 * thread.c (info_threads_command, info_threads_command)
6460 (restore_current_thread, do_captured_thread_select): Ditto.
6461 * ada-tasks.c (task_command): Ditto.
6462
f4c5303c
OF
64632004-04-26 Orjan Friberg <orjanf@axis.com>
6464
6465 * frame.c: Include "observer.h".
6466 (frame_observer_target_changed): New function.
6467 (_initialize_frame): Attach target_changed observer.
6468 * regcache.c: Include "observer.h".
6469 (regcache_observer_target_changed): New function.
6470 (_initialize_regcache): Attach target_changed observer.
6471 * valops.c: Include "observer.h".
6472 (value_assign): Notify target_changed event when modifying register.
6473 * Makefile.in (frame.o, regcache.o, valops.o): Add $(observer_h).
6474
7270d8f2
OF
64752004-04-26 Orjan Friberg <orjanf@axis.com>
6476
6477 From Paul Koning <pkoning@equallogic.com>:
6478 * breakpoint.c (free_valchain): New function.
6479 (insert_bp_location, delete_breakpoint): Use free_valchain.
6480 (remove_breakpoint): Do not remove the valchain.
6481 (bpstat_stop_status): If not stopped by watchpoint, skip
6482 watchpoints when generating stop status list.
6483 * infrun.c (handle_inferior_event): Make
6484 stepped_after_stopped_by_watchpoint a global variable.
6485 * remote.c (remote_stopped_data_address): Return watch data
6486 address rather than zero if stepped_after_stopped_by_watchpoint is
6487 set.
6488
02d62932
MC
64892004-04-25 Michael Chastain <mec.gnu@mindspring.com>
6490
6491 Fix PR gdb/1626.
6492 * configure.in: Check for curses after termcap.
6493 On osf5.*, do not check for ncurses.
6494 * configure: Regenerate.
6495
3e9a183c
MK
64962004-04-25 Mark Kettenis <kettenis@gnu.org>
6497
c79ac407
MK
6498 * ppcobsd-nat.c: Include "ppc-tdep.h".
6499 * Makefile.in (ppcobsd-nat.o): Update dependencies.
6500
3e9a183c
MK
6501 * stack.c (return_command): Use CHECK_TYPEDEF on the return type.
6502 Fixes PR tdep/1623 and PR tdep/1624.
6503
38cc9c28
MC
65042004-04-24 Michael Chastain <mec.gnu@mindspring.com>
6505
6506 * xmodem.h, xmodem.c: Remove files.
6507 * Makefile.in: Remove references to xmodem.h, xmodem.c.
6508
7f07c5b6
RC
65092004-04-23 Randolph Chung <tausq@debian.org>
6510
6511 * hppa-tdep.c (hppa_stub_unwind_cache, hppa_stub_frame_unwind_cache)
6512 (hppa_stub_frame_this_id, hppa_stub_frame_prev_register)
6513 (hppa_stub_frame_unwind, hppa_stub_unwind_sniffer): New stub unwinder
6514 for handling stackless frames.
6515 (hppa_gdbarch_init): Link in hppa_stub_unwind_sniffer.
6516
9f7194c3
RC
65172004-04-23 Randolph Chung <tausq@debian.org>
6518
6519 * hppa-tdep.c (hppa_frame_cache): Handle the case when frame unwind
6520 starts at a pc before the frame is created.
6521
dcff6009
JB
65222004-04-23 Joel Brobecker <brobecker@gnat.com>
6523
6524 * ChangeLog-2002: Fix year in one of the ChangeLog entries.
6525
40711ff1 65262004-04-23 Jerome Guitton <guitton@gnat.com>
65951cd9
JG
6527
6528 * rs6000-tdep.c (rs6000_extract_return_value): When extracting a float,
6529 use convert_typed_floating to get the appropriate format.
6530
abc485a1
RC
65312004-04-22 Randolph Chung <tausq@debian.org>
6532
6533 * hppa-tdep.h (find_unwind_entry, hppa_get_field, hppa_extract_5_load)
6534 (hppa_extract_5R_store, hppa_extract_5r_store, hppa_extract_17)
6535 (hppa_extract_21, hppa_extract_14, hppa_low_sign_extend)
6536 (hppa_sign_extend): Add prototype.
6537 * hppa-tdep.c (get_field, extract_5_load, extract_5R_store)
6538 (extract_5r_store, extract_17, extract_21, extract_14, low_sign_extend)
6539 (sign_extend): Rename with hppa_ prefix and make non-static. Other
6540 hppa targets will also use these functions.
6541 (find_unwind_entry): Remove prototype (moved to hppa-tdep.h).
6542 (hppa_in_solib_call_trampoline, hppa_in_solib_return_trampoline)
6543 (hppa_skip_trampoline_code): Move to hppa-hpux-tdep.c
6544 (hppa_gdbarch_init): Remove gdbarch setting of
6545 skip_trampoline_code, in_solib_call_trampoline and
6546 in_solib_return_trampoline.
6547 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
6548 (hppa64_hpux_in_solib_call_trampoline): New functions, split from
6549 hppa_in_solib_call_trampoline.
6550 (hppa_hpux_in_solib_return_trampoline, hppa_hpux_skip_trampoline_code):
6551 Moved from hppa-tdep.c.
6552 (hppa_hpux_init_abi): Set gdbarch for skip_trampoline_code,
6553 in_solib_call_trampoline and in_solib_return_trampoline.
6554
369aa520
RC
65552004-04-22 Randolph Chung <tausq@debian.org>
6556
6557 * hppa-tdep.c (hppa_debug): New variable.
6558 (find_unwind_entry, hppa_frame_cache): Add debug output.
6559 (_initialize_hppa_tdep): Add command to set debug flag.
6560
476be15e
AC
65612004-04-22 Andrew Cagney <cagney@redhat.com>
6562
6563 * ppcnbsd-tdep.c: Update copyright. Include "tramp-frame.h" and
6564 "trad-frame.h".
6565 (ppcnbsd_sigtramp_cache_init, ppcnbsd_sigtramp): Implement a NetBSD
6566 signal trampoline unwinder.
6567 (ppcnbsd_init_abi): Register ppcnbsd_sigtramp.
6568
d195bc9f
MK
65692004-04-22 Mark Kettenis <kettenis@gnu.org>
6570
6571 Add OpenBSD/powerpc support.
6572 * NEWS (New native configurations): Mention OpenBSD/powerpc.
6573 * ppc-tdep.h (struct ppc_reg_offsets): New structure.
6574 (ppc_supply_gregset, ppc_supply_fpregset, ppc_collect_gregset)
6575 (ppc_collect_fpregset): New prototypes.
6576 * ppcobsd-nat.c: New file.
6577 * ppcobsd-tdep.c: New file.
6578 * ppcobsd-tdep.h: New file.
6579 * rs6000-tdep.c: Include "regset.h".
6580 (ppc_supply_reg, ppc_collect_reg, ppc_supply_gregset)
6581 (ppc_supply_fpregset, ppc_collect_gregset, ppc_collect_fpregset):
6582 New functions.
6583 * Makefile.in (ALLDEPFILES): Add pccobsd-nat.c and ppcobsd-tdep.c.
6584 (ppcobsd-nat.o, ppcobsd-tdep.o): New dependencies.
6585 (rs6000-tdep.o): Update dependencies.
6586 * configure.host: Add powerpc-*-openbsd.
6587 * configure.tgt: Add powerpc-*-openbsd.
6588 * config/powerpc/obsd.mh: New file.
6589 * config/powerpc/nm-obsd.h: New file.
6590 * config/powerpc/obsd.mt: New file.
6591
6f14cc33
AC
65922004-04-22 Andrew Cagney <cagney@redhat.com>
6593
fcf29e5f
AC
6594 * frame.h (show_frame_info): Delete declaration.
6595
6f14cc33
AC
6596 * arm-tdep.c (arm_prologue_this_id): Delete redundant cycle test.
6597 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
6598 * m32r-tdep.c (m32r_frame_this_id): Ditto.
6599 * frv-tdep.c (frv_frame_this_id): Ditto.
6600 * avr-tdep.c (avr_frame_this_id): Ditto.
6601
e5786a5c
EZ
66022004-04-22 Elena Zannoni <ezannoni@redhat.com>
6603
6604 * MAINTAINERS: Drop maintenance of gdb.stabs, and linespec.c.
6605
26e75e5c
JB
66062004-04-22 Jim Blandy <jimb@redhat.com>
6607
6608 * ppc-linux-nat.c (ppc_register_u_addr): Don't assume that r0 is
6609 register number zero.
6610
d8d65dd3
MS
66112004-04-21 Michael Snyder <msnyder@redhat.com>
6612
6613 * mips-tdep.c (heuristic_proc_start):
6614 Warning() already prefixes "Warning: ".
6615
9a4105ab
AC
66162004-04-21 Andrew Cagney <cagney@redhat.com>
6617
6618 * annotate.h (deprecated_annotate_starting_hook)
6619 (deprecated_annotate_stopped_hook)
6620 (deprecated_annotate_exited_hook)
6621 (deprecated_annotate_signal_hook)
6622 (deprecated_annotate_signalled_hook): Deprecate.
6623 * tracepoint.h (deprecated_create_tracepoint_hook)
6624 (deprecated_delete_tracepoint_hook)
6625 (deprecated_modify_tracepoint_hook)
6626 (deprecated_trace_find_hook)
6627 (deprecated_trace_start_stop_hook): Deprecate.
6628 * target.h (deprecated_target_new_objfile_hook): Deprecate.
6629 * remote.h (deprecated_target_resume_hook)
6630 (deprecated_target_wait_loop_hook): Deprecate.
6631 * gdbcore.h (deprecated_exec_file_display_hook)
6632 (deprecated_file_changed_hook): Deprecate.
6633 * frame.h (deprecated_selected_frame_level_changed_hook): Deprecate.
6634 * defs.h (deprecated_modify_breakpoint_hook)
6635 (deprecated_command_loop_hook, deprecated_show_load_progress)
6636 (deprecated_print_frame_info_listing_hook)
6637 (deprecated_query_hook, deprecated_warning_hook)
6638 (deprecated_flush_hook, deprecated_create_breakpoint_hook)
6639 (deprecated_delete_breakpoint_hook)
6640 (deprecated_interactive_hook, deprecated_registers_changed_hook)
6641 (deprecated_readline_begin_hook, deprecated_readline_hook)
6642 (deprecated_readline_end_hook, deprecated_register_changed_hook)
6643 (deprecated_memory_changed_hook, deprecated_init_ui_hook)
6644 (deprecated_context_hook, deprecated_target_wait_hook)
6645 (deprecated_attach_hook, deprecated_detach_hook)
6646 (deprecated_call_command_hook, deprecated_set_hook)
6647 (deprecated_error_hook, deprecated_error_begin_hook)
6648 (deprecated_ui_load_progress_hook): Deprecate.
6649 * valops.c, uw-thread.c, utils.c, tui/tui-io.c: Update.
6650 * tui/tui-hooks.c, tracepoint.c, top.c, thread-db.c: Update.
6651 * target.c, symfile.c, stack.c, sol-thread.c, rs6000-nat.c: Update.
6652 * remote.c, remote-mips.c, regcache.c, mi/mi-interp.c: Update.
6653 * main.c, interps.c, infcmd.c, hpux-thread.c, frame.c: Update.
6654 * exec.c, dsrec.c, d10v-tdep.c, corefile.c, complaints.c: Update.
6655 * cli/cli-script.c, cli/cli-setshow.c, breakpoint.c: Update.
6656 * annotate.c, aix-thread.c: Update.
6657
62cf13cc
AC
66582004-04-21 Andrew Cagney <cagney@redhat.com>
6659
b2e31a62
AC
6660 * Makefile.in (vaxnbsd-tdep.o): Update dependencies.
6661 * vaxnbsd-tdep.c: Include "gdb_string.h".
6662
62cf13cc
AC
6663 * symfile.c (symbol_file_add_from_memory): #if 0 function.
6664 (add_symbol_file_from_memory_command): #if 0 function body, call
6665 error instead.
6666
00e32a35
AC
66672004-04-21 Andrew Cagney <cagney@redhat.com>
6668
6669 * gdbcore.h: Update copyright.
6670 (deprecated_add_core_fns): Rename add_core_fns.
6671 * win32-nat.c (_initialize_core_win32): Update.
6672 * sun3-nat.c (_initialize_core_sun3): Update.
6673 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Update.
6674 * rs6000-nat.c (_initialize_core_rs6000): Update.
6675 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Update.
6676 * nto-tdep.c (_initialize_nto_tdep): Update.
6677 * ns32knbsd-nat.c (_initialize_ns32knbsd_nat): Update.
6678 * mipsnbsd-tdep.c (_initialize_mipsnbsd_tdep): Update.
6679 * mips-nat.c (_initialize_core_mips): Update.
6680 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
6681 * m68knbsd-nat.c (_initialize_m68knbsd_nat): Update.
6682 * m68klinux-nat.c (_initialize_m68k_linux_nat): Update.
6683 * lynx-nat.c (_initialize_core_lynx): Update.
6684 * irix5-nat.c (_initialize_core_irix5): Update.
6685 * i386-interix-nat.c (_initialize_core_interix): Update.
6686 * cris-tdep.c (_initialize_cris_tdep): Update.
6687 * corelow.c (deprecated_add_core_fns): Update.
6688 * core-regset.c (_initialize_core_regset): Update.
6689 * core-aout.c (_initialize_core_aout): Update.
6690 * armnbsd-nat.c (_initialize_arm_netbsd_nat): Update.
6691 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Update.
6692 * alpha-nat.c (_initialize_core_alpha): Update.
6693
13c7b1ca
JB
66942004-04-21 Jim Blandy <jimb@redhat.com>
6695
6696 * rs6000-tdep.c (registers_e500, registers_7400): Doc fixes.
6697
7b5a2f43
DJ
66982004-04-19 Daniel Jacobowitz <drow@mvista.com>
6699
6700 * dwarf2read.c (dwarf2_tmp_obstack, dwarf2_free_tmp_obstack):
6701 Delete.
6702 (dwarf_alloc_block): Take a CU argument. Use the comp_unit_obstack.
6703 (read_attribute_value): Update calls to dwarf_alloc_block.
6704 (dwarf2_build_psymtabs_hard): Don't initialize or clean up
6705 dwarf2_tmp_obstack.
6706 (psymtab_to_symtab_1): Likewise. Clean up using
6707 free_stack_comp_unit.
6708 (add_to_cu_func_list): Use the comp_unit_obstack.
6709
05cf31d1
JB
67102004-04-19 Joel Brobecker <brobecker@gnat.com>
6711
6712 * dwarf2read.c (dwarf2_flag_true_p): New function.
6713 (die_is_declaration): Use the function above. Add some comments.
6714
adf93a2f
MK
67152004-04-19 Mark Kettenis <kettenis@gnu.org>
6716
6717 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Specify
6718 architecture when registering sparcnbsd_core_osabi_sniffer.
6719 Adjust comment.
6720
748894bf
MK
67212004-04-18 Mark Kettenis <kettenis@gnu.org>
6722
f622ad42
MK
6723 * infcall.c (find_function_addr): Add FUNCTION_START_OFFSET to
6724 return value.
6725
c4fc7f1b
MK
6726 Based on a patch from Brian Ford <ford@vss.fsi.com>:
6727 * i386-tdep.c: Correct register numbering scheme comments
6728 throughout.
6729 (i386_stab_reg_to_regnum): Rename to i386_dbx_reg_to_regnum.
6730 (i386_dwarf_reg_to_regnum): Rename to i386_svr4_reg_to_regnum.
6731 (i386_coff_init_abi, i386_elf_init_abi): Accomodate renames above.
6732 (i386_gdb_arch_init): Likewise.
6733
b4ead1bd
MK
6734 * Makefile.in (ALLDEPFILES): List ppc-sysv-tdep.c, ppcnbsd-nat.c
6735 and ppcnbsd-tdep.c instead of ppc-sysv-tdep.o, ppcnbsd-nat.o and
6736 ppcnbsd-tdep.o.
6737
748894bf
MK
6738 * m68k-tdep.h: Tweak comments.
6739 * m68k-tdep.c: Tweak comment.
6740
fdd72f95
RC
67412004-04-17 Randolph Chung <tausq@debian.org>
6742
6743 * Makefile.in (hppa-hpux-tdep.o): Add $(hppa_tdep_h).
6744 * hppa-hpux-tdep.c (hppa-tdep.h): Include.
6745 (hppa_hpux_som_init_abi): Set is_elf to 0.
6746 (hppa_hpux_elf_init_abi): Set is_elf to 1.
6747 * hppa-tdep.c (low_text_segment_address): Remove global.
6748 (record_text_segment_lowaddr): Pass in low address as parameter. Use
6749 section offset to calculate segment address.
6750 (internalize_unwinds): Define low_text_segment_address as local and
6751 pass to record_text_segment_lowaddr for ELF targets.
6752 (hppa_gdbarch_init): Zero fill tdep structure.
6753 (hppa_dump_tdep): Print tdep structure.
6754 * hppa-tdep.h (gdbarch_tdep): Add is_elf member to tdep structure.
6755
0f8d9d59
RC
67562004-04-17 Randolph Chung <tausq@debian.org>
6757
6758 * hppa-tdep.c (hppa_pseudo_register_read): Define.
6759 (hppa_gdbarch_init): Set pseudo_register_read.
6760 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Remove.
6761 * regcache.c (supply_register): Remove check for
6762 DEPRECATED_CLEAN_UP_REGISTER_VALUE since we've removed the last user.
6763
7c46b9fb
RC
67642004-04-17 Randolph Chung <tausq@debian.org>
6765
6766 * Makefile.in (hpread.o, pa64solib.o, somsolib.o): Add $(hppa_tdep_h)
6767 * hppa-tdep.h (INSTRUCTION_SIZE): Move from tm-hppa.h.
6768 (hpread_adjust_stack_address): Move to hpread.c.
6769 * hppa-tdep.h (unwind_table_entry, unwind_stub_types, obj_unwind_info,
6770 obj_private_struct): Move from tm-hppa.h.
6771 * hpread.c (hppa-tdep.h): Include.
6772 (hpread_adjust_stack_address): Move from hppa-tdep.c.
6773 (hpread_read_function_type, hpread_read_doc_function_type)
6774 (hpread_process_one_debug_symbol): Call hpread_adjust_stack_address
6775 directly.
6776 * pa64solib.c (hppa-tdep.h): Include.
6777 * somsolib.c (hppa-tdep.h): Include.
6778 * config/pa/tm-hppa.h (frame_info, frame_saved_regs, value, type,
6779 inferior_status): Remove unused forward declarations.
6780 (INSTRUCTION_SIZE): Move to hppa-tdep.c.
6781 (unwind_table_entry, unwind_stub_types, obj_unwind_info,
6782 obj_private_struct): Move to hppa-tdep.h.
6783 (HPREAD_ADJUST_STACK_ADDRESS): Remove.
6784
8d153463
RC
67852004-04-17 Randolph Chung <tausq@debian.org>
6786
6787 * hppa-tdep.c (hppa_reg_struct_has_addr, hppa_skip_prologue)
6788 (hppa_skip_trampoline_code, hppa_in_solib_call_trampoline)
6789 (hppa_in_solib_return_trampoline, hppa_cannot_store_register)
6790 (hppa_smash_text_address, hppa_target_read_pc, hppa_target_write_pc):
6791 Remove forward declaration and make static.
6792 (hppa_reg_struct_has_addr): Remove.
6793
350c2e5b
JB
67942004-04-16 Joel Brobecker <brobecker@gnat.com>
6795
6796 * observer.sh: Move comments in sed command to first column.
6797
bbde78fa
JM
67982004-04-16 Jason Molenda (jmolenda@apple.com)
6799
6800 * frame.c: Minor typeo corrections in comments.
6801
e0270fd9
JB
68022004-04-16 Joel Brobecker <brobecker@gnat.com>
6803
6804 * observer.c (observer_test_first_notification_function): Update
6805 function profile.
6806 (observer_test_second_notification_function): Likewise.
6807 (observer_test_third_notification_function): Likewise.
6808
3d049254
MK
68092004-04-16 Mark Kettenis <kettenis@gnu.org>
6810
6811 From Brian Ford <ford@vss.fsi.com>:
6812 * i386-tdep.c (i386_coff_init_abi): New function.
6813 * i386-tdep.h (i386_coff_init_abi): New prototype.
6814 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Call it. Use correct
6815 register number translation functions for DWARF and DWARF 2.
6816
7867684d
JB
68172004-04-16 Joel Brobecker <brobecker@gnat.com>
6818
6819 * dwarf2read.c: Back out my previous change, it was incorrect.
6820
72bf9492
DJ
68212004-04-16 Daniel Jacobowitz <drow@mvista.com>
6822
6823 * dwarf2read.c: Include "hashtab.h".
6824 (struct dwarf2_cu): Add partial_dies, comp_unit_obstack,
6825 has_namespace_info.
6826 (struct partial_die_info): Add comments. Use bitfields to reduce
6827 memory footprint. Add scope, scope_set, has_specification,
6828 spec_offset, die_parent, die_child, and die_sibling.
6829 (peek_die_abbrev): Add prototype.
6830 (partial_read_comp_unit_head): New function, broken out from
6831 dwarf2_build_psymtabs_hard.
6832 (dwarf2_build_psymtabs_hard): Remove unused variable abbrev_ptr.
6833 Use partial_read_comp_unit_head. Initialize the CU and
6834 comp_unit_obstack. Update calls to read_partial_die and
6835 scan_partial_symbols. Use free_stack_comp_unit and
6836 load_partial_dies.
6837 (scan_partial_symbols): Change PDI to a pointer. Use the child and
6838 sibling pointers to walk partial DIEs. Call fixup_partial_die.
6839 Update calls to helper functions. Remove NAMESPACE argument.
6840 Update comments.
6841 (partial_die_parent_scope, partial_die_full_name): New functions.
6842 (add_partial_symbol): Remove namespace argument. Update call to
6843 pdi_needs_namespace. Use partial_die_full_name. Handle
6844 DW_TAG_namespace. Check has_namespace_info flag.
6845 (pdi_needs_namespace): Remove NAMESPACE argument. Just check the
6846 tag. Handle namespaces.
6847 (add_partial_namespace, add_partial_enumeration): Simplify.
6848 (guess_structure_name): New function, derived from
6849 add_partial_structure.
6850 (add_partial_structure): Remove.
6851 (determine_class_name): Update comment.
6852 (dwarf2_read_abbrevs): Set has_namespace_info flag.
6853 (is_type_tag_for_partial, load_partial_dies): New functions.
6854 (read_partial_die): Pass abbrev and abbrev_len as arguments.
6855 Record specifications instead of following them immediately.
6856 (find_partial_die_in_comp_unit, find_partial_die)
6857 (fixup_partial_die, free_stack_comp_unit)
6858 (hashtab_obstack_allocate, dummy_obstack_deallocate)
6859 (partial_die_hash, partial_die_eq): New functions.
6860 * Makefile.in (hashtab_h): Define.
6861 (dwarf2read.o): Update dependencies.
6862 (observer_inc, observer_h): Move to the correct section.
6863
fdc860a3
JB
68642004-04-15 Joel Brobecker <brobecker@gnat.com>
6865
6866 * dwarf2read.c (dwarf2_attribute_true_p): New function.
6867 (die_is_declaration): Use the function above. Add comment.
6868
dc718098
JB
68692004-04-15 Joel Brobecker <brobecker@gnat.com>
6870
6871 * dwarf2read.c (read_structure_scope): Identify stub types
6872 using die_is_declaration() only.
6873
8718a420
RM
68742004-04-15 Roland McGrath <roland@redhat.com>
6875
6876 * symfile.c (symbol_file_add_with_addrs_or_offsets): Take ABFD as
6877 argument instead of NAME.
6878 (symbol_file_add, reread_separate_symbols): Call symfile_bfd_open
6879 in call to symbol_file_add_with_addrs_or_offsets.
6880 (build_addr_info): New function, helper for ...
6881 (symbol_file_add_from_memory): New function.
6882 (add_symbol_file_from_memory_command): New function using that.
6883 (_initialize_symfile): Register it for add-symbol-file-from-memory.
6884 (pre_add_symbol_hook): Add const to argument type.
6885 * symfile.h (symbol_file_add_from_memory): Declare it.
6886
8b910bab
MK
68872004-04-15 Mark Kettenis <kettenis@gnu.org>
6888
9f076e7a
MK
6889 * NEWS (New native configurations): Mention OpenBSD/vax.
6890 * configure.host: Add vax-*-openbsd*.
6891 * config/vax/obsd.mh: New file.
6892 * config/vax/nm-obsd.h: New file.
6893
8b910bab
MK
6894 * vax-tdep.c: Include "regset.h".
6895 (vax_supply_gregset): New function.
6896 (vax_gregset): New variable.
6897 (vax_regset_from_core_section): New function.
6898 (vax_gdbarch_init): Set regset_from_core_section.
6899 * Makefile.in (vax-tdep.o): Update dependencies.
6900
7a464420
AC
69012004-04-15 Andrew Cagney <cagney@redhat.com>
6902
6903 * observer.c (normal_stop_subject, observer_notify_normal_stop)
6904 (observer_normal_stop_notification_stub)
6905 (observer_attach_normal_stop, observer_detach_normal_stop):
6906 Delete, replaced by #include "observer.inc".
6907 * infrun.c (normal_stop): Pass "stop_bpstat" to
6908 observer_notify_normal_stop.
6909 * Makefile.in (observer_inc): Define.
6910 (observer.o): Update dependencies.
6911 (observer.h, observer.inc): New rules.
6912 * observer.h: Delete file.
6913 * observer.sh: New file.
6914
e36ad527
MK
69152004-04-15 Mark Kettenis <kettenis@gnu.org>
6916
6917 * vax-tdep.c (vax_frame_cache): Fix typo.
6918
67b441e1
MK
69192004-04-14 Mark Kettenis <kettenis@gnu.org>
6920
6f606e1c
MK
6921 * NEWS (New native configurations): Mention NetBSD/vax.
6922 * configure.host: Add vax-*-netbsdelf* and vax-*-netbsd*.
6923 * config/vax/nbsdelf.mh: New file.
6924 * config/vax/nbsdaout.mh: New file.
6925 * config/vax/nm-nbsd.h: New file.
6926 * config/vax/nm-nbsdaout.h: New file.
6927
9c5519a5
MK
6928 * vaxnbsd-tdep.c: New file.
6929 * Makefile.in (vaxnbsd-tdep.o): New dependency.
6930 * configure.tgt: Add vax-*-netbsd* and vax-*-openbsd*.
6931 * config/vax/nbsd.mt: New file.
6932 * config/vax/tm-nbsd.h: New file.
6933
4844a614
MK
6934 * Makefile.in (vaxbsd-nat.o): New dependency.
6935
67b441e1
MK
6936 * vax-tdep.h (vax_regnum): Add VAX_R0_REGNUM and VAX_R1_REGNUM.
6937 * vax-tdep.c (vax_store_arguments): Remove struct_return and
6938 struct_addr arguments. Don't push return value address.
6939 (vax_push_dummy_call): Don't pass STRUCT_RETURN and STRUCT_ADDR as
6940 arguments to vax_store_arguments. Store return value address in
6941 R1.
6942 (vax_store_struct_return, vax_extract_return_value)
6943 (vax_store_return_value): Remove functions.
6944 (vax_return_value): New function.
6945 (vax_gdbarch_init): Set return value. Don't set
6946 deprecated_store_struct_return, deprecated_extract_struct_return
6947 and deprecated_store_return_value.
6948
6672f2ae
AS
69492004-04-14 Andreas Schwab <schwab@suse.de>
6950
6951 * ia64-tdep.c (ia64_libunwind_frame_prev_register): Handle null
6952 value buffer.
6953 * libunwind-frame.c (libunwind_frame_prev_register): Likewise.
6954
7346c184
MK
69552004-04-14 Mark Kettenis <kettenis@gnu.org>
6956
6957 * vax-tdep.c (vax_store_arguments, vax_push_dummy_call)
6958 (vax_unwind_dummy_id): New functions.
6959 (vax_push_dummy_frame, vax_pop_frame): Remove functions.
6960 (vax_call_dummy_words, sizeof_vax_call_dummy_words): Remove
6961 variables.
6962 (vax_fix_call_dummy): Remove function.
6963 (vax_gdbarch_init): Set push_dummy_call and unwind_dummy_id.
6964 Don't set deprecated_push_dummy_frame, deprecated_pop_frame,
6965 call_dummy_location, deprecated_call_dummy_words,
6966 deprecated_sizeof_call_dummy_words,
6967 deprecated_call_dummy_breakpoint_offset,
6968 deprecated_use_generic_dummy_frames, deprecated_pc_in_call_dummy,
6969 and deprecated_dummy_write_sp.
6970
58e23df4
DC
69712004-04-13 David Carlton <carlton@kealia.com>
6972
6973 * MAINTAINERS: Move myself to "paper trail" section.
6974
5e6b39ff
MK
69752004-04-12 Mark Kettenis <kettenis@gnu.org>
6976
7def7fef
MK
6977 * vax-tdep.c: Include "frame-base.h", "frame-unwind.h" and
6978 "trad-frame.h".
6979 (vax_frame_init_saved_regs): Remove function.
6980 (vax_sigtramp_saved_pc): Remove function.
6981 (vax_frame_saved_pc): Remove function.
6982 (vax_frame_args_address): Remove function.
6983 (vax_frame_num_args): Rewrite.
6984 (vax_frame_chain): Remove function.
6985 (vax_push_dummy_frame): Replace DEPRECATED_FP_REGNUM with
6986 VAX_FP_REGNUM.
6987 (vax_pop_frame): Likewise.
6988 (vax_saved_pc_after_call): Remove function.
6989 (struct vax_frame_cache): New structure.
6990 (vax_frame_cache): New function.
6991 (vax_frame_this_id): New function.
6992 (vax_frame_prev_register): New function.
6993 (vax_frame_unwind): New variable.
6994 (vax_frame_sniffer): New function.
6995 (vax_frame_base_address): New function.
6996 (vax_frame_args_address): New function.
6997 (vax_frame_base): New variable.
6998 (vax_unwind_pc): New function.
6999 (vax_gdbarch_init): Don't set deprecated_init_frame_pc,
7000 deprecated_fp_regnum, deprecated_saved_pc_after_call,
7001 deprecated_frame_chain, deprecated_frame_saved_pc,
7002 deprecated_frame_args_address and
7003 deprecated_frame_init_saved_regs.
7004 * Makefile.in (vax-tdep.o): Update dependencies.
7005
53284fc1
MK
7006 * vaxbsd-nat.c: New file.
7007
5e6b39ff
MK
7008 * vax-tdep.h: Update copyright year. Adjust comments.
7009 (VAX_REGISTER_SIZE, VAX_REGISTER_BYTES, VAX_MAX_REGISTER_RAW_SIZE,
7010 VAX_MAX_REGISTER_VIRTUAL_SIZE): Remove macros.
7011 (vax_regnum): New enum. Replacing...
7012 (VAX_AP_REGNUM, VAX_FP_REGNUM, VAX_SP_REGNUM, VAX_PC_REGNUM)
7013 (VAX_PS_REGNUM): ... these removed macros.
7014 * vax-tdep.c (vax_register_name): Remove prototype.
7015 (vax_register_name): Reorganize somewhat. Use ARRAY_SIZE.
7016 (vax_register_byte, vax_register_raw_size,
7017 vax_register_virtual_size, vax_register_virtual_type): Remove
7018 functions.
7019 (vax_register_type): New function.
7020 (vax_breakpoint_from_pc): Reorganize.
7021 (vax_gdbarch_init): Set register_type. Don't set
7022 deprecated_register_size, deprecated_register_bytes,
7023 deprecated_register_byte, deprecated_register_raw_size,
7024 deprecated_max_register_raw_size,
7025 deprecated_register_virtual_size,
7026 deprecated_max_register_virtual_size and
7027 deprecated_register_virtual_type. Add comment on stack direction.
7028
e9c71e9f
MK
70292004-04-11 Mark Kettenis <kettenis@gnu.org>
7030
7031 * amd64-tdep.h (amd64_regnum): Add AMD64_CS_REGNUM,
7032 AMD64_SS_REGNUM, AMD64_DS_REGNUM, AMD64_ES_REGNUM,
296bc76f 7033 AMD64_FS_REGNUM and AMD64_GS_REGNUM.
e9c71e9f 7034
d46f1176 70352004-04-10 Randolph Chung <tausq@debian.org>
8718a420 7036
d46f1176
RC
7037 * MAINTAINERS (write after approval): Add myself.
7038
a2a84a72
RC
70392004-04-07 Randolph Chung <tausq@debian.org>
7040
7041 * hppa-tdep.c (hppa_inner_than): Remove.
7042 (is_pa_2): Remove unused static variable.
8718a420 7043 (hppa_gdbarch_init): Use core_addr_greaterthan instead of own version.
a2a84a72 7044
e85c3284
PH
70452004-03-10 Paul N. Hilfinger <Hilfinger@gnat.com>
7046
7047 * language.h (language_defn): Add new la_post_parser field.
7048 * parser-defs.h (null_post_parser): New declaration (default for
7049 la_post_parser).
8718a420 7050
e85c3284
PH
7051 * parse.c (parse_exp_1): Move code to parse_exp_in_context and
7052 insert call to that function.
7053 (parse_exp_in_context): New function, including code formerly in
8718a420 7054 parse_exp_1. Calls language-dependent post-parser after
e85c3284
PH
7055 prefixification.
7056 (parse_expression_in_context): New exported function.
7057 (null_post_parser): New definition.
7058 * expression.h (parse_expression_in_context): Add declaration.
8718a420 7059
e85c3284
PH
7060 * p-lang.c (pascal_language_defn): Add trivial post-parser.
7061 * c-lang.c (c_language_defn): Ditto.
7062 (cplus_language_defn): Ditto.
7063 (asm_language_defn): Ditto.
7064 (minimal_language_defn): Ditto.
7065 * f-lang.c (f_language_defn): Ditto.
7066 * jv-lang.c (java_language_defn): Ditto.
7067 * language.c (unknown_language_defn): Ditto.
7068 (auto_language_defn): Ditto.
7069 (local_language_defn): Ditto.
7070 * m2-lang.c (m2_language_defn): Ditto.
7071 * scm-lang.c (scm_language_defn): Ditto.
7072 * obj-lang.c (objc_language_defn): Ditto.
8718a420 7073
d9f8c85b
MK
70742004-04-10 Mark Kettenis <kettenis@gnu.org>
7075
fa34704a
MK
7076 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Remove function.
7077 (amd64nbsd_mcontext_addr): New function.
7078 (amd64nbsd_init_abi): Initialize TDEP->sigcontext_addr as
7079 amd64nbsd_mcontext_addr. Directly initialize TDEP->sc_reg_offset
7080 with amd64nbsd_r_reg_offset, instead of building it on the fly.
7081
403e1656
MK
7082 * corelow.c (core_xfer_partial): Fix coding standards violation.
7083 Add support for TARGET_OBJECT_WCOOKIE.
7084
a57e5a95
MK
7085 * sparc-linux-tdep.c (sparc32_linux_init_abi): Don't set
7086 deprecated_pc_in_sigtramp.
7087 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
7088 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
7089 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Likewise.
7090 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
7091 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Likewise.
7092 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
7093 * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
7094
377d9ebd
MK
7095 * amd64-linux-tdep.c, amd64nbsd-tdep.c, amd64obsd-tdep.c,
7096 i386-linux-tdep.c, i386-tdep.c, i386nbsd-tdep.c, i386obsd-tdep.c:
7097 Fix typo.
7098
f0ef85a5
MK
7099 * amd64-tdep.c (amd64_supply_fxsave): Only fiddle with
7100 I387_FISEG_REGNUM and I387_FOSEG_REGNUM in 64-bit mode.
7101 (amd64_collect_fxsave): Likewise.
7102
d9f8c85b
MK
7103 * i386-sol2-tdep.c: Include "gdb_string.h".
7104 (i386_sol2_sigtramp_p): Recognize signal trampoline based on its
7105 name.
7106 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
7107
75f501b5
MK
71082004-04-10 Mark Kettenis <kettenis@gnu.org>
7109
7110 * i386-sol2-tdep.c: Include "solib-svr4.h".
7111 (i386_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
7112 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
7113 * config/i386/tm-i386sol2.h: Include :solib.h".
7114 * config/i386/i386sol2.mh (NATDEPFILES): Remove solib.o,
7115 solib-svr4.o and solib-legacy.o.
7116 * config/i386/i386sol2.mt (TDEPFILES): Add solib.o and
7117 solib-svr4.o.
7118
b31bc724
MK
71192004-04-09 Mark Kettenis <kettenis@gnu.org>
7120
18bbbd9e
MK
7121 * amd64-linux-nat.c (fetch_inferior_registers): Correctly check
7122 whether a register is supplied by PTRACE_GETFPREGS.
7123 (store_inferior_registers): Likewise.
7124 * amd64bsd-nat.c (fetch_inferior_registers): Correctly check
7125 whether a register is supplied by PT_GETFPREGS.
7126 (store_inferior_registers): Likewise.
7127
3c30bf1b
MK
7128 * config/i386/linux.mt (TDEPFILES): Remove solib-legacy.o.
7129 * config/i386/linux64.mt (TDEPFILES): Likewise.
7130
a4194092
MK
7131 * i386-linux-nat.c: Update copyrigth year. Tweak comment.
7132
911bc6ee
MK
7133 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Rewrite to use new
7134 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
7135 the program counter is in the range specified by `struct
7136 gdbarch_tdep'.
7137 * amd64-linux-tdep.c: Include "symtab.h".
7138 (amd64_linux_pc_in_sigtramp): Remove function.
7139 (amd64_linux_sigtramp_p): New function.
7140 (amd64_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
7141 deprecated_pc_in_sigtramp.
7142 * amd64nbsd-tdep.c: Include "symtab.h".
7143 (amd64nbsd_sigtramp_p): New function.
7144 (amd64nbsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
7145 deprecated_pc_in_sigtramp.
7146 * amd64obsd-tdep.c: Include "symtab.h" and "objfiles.h". Add a
7147 few comments.
7148 (amd64obsd_pc_in_sigtramp): Remove function.
7149 (amd64obsd_sigtramp_p): New function.
7150 (amd64obsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
7151 deprecated_pc_in_sigtramp.
7152 * i386-tdep.h (struct gdbarch_tdep): Add sigtramp_p member.
7153 (i386bsd_pc_ins_sigtramp): Remove prototype.
7154 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove prototypes.
7155 * i386-tdep.c (i386_sigtramp_frame_sniffer): Rewrite to use new
7156 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
7157 the program counter is in the range specified by `struct
7158 gdbarch_tdep'.
7159 (i386_pc_in_sigtramp, i386_svr4_pc_in_sigtramp): Remove functions.
7160 (i386_sigtramp_p, i386_svr4_sigtramp_p): New functions.
7161 (i386_go32_pc_in_sigtramp): Remove function.
7162 (i386_svr4_init_abi): Don't set deprecated_pc_in_sigtramp.
7163 Initialize TDEP->sigtramp_p.
7164 (i386_go32_init_abi): Initialize TDEP->sigtramp_p to NULL.
7165 (i386_gdbarch_init): Initialize TDEP->sigtramp_p. Don't set
7166 deprecated_pc_in_sigtramp.
7167 * i386-linux-tdep.c: Adjust comments.
7168 (i386_linux_pc_in_sigtramp): Remove function.
7169 (i386_linux_sigtramp_p): New function.
7170 (i386_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
7171 deprecated_pc_in_sigtramp.
7172 * i386-nto-tdep.c: Update copyright year.
7173 (i386nto_pc_in_sigtramp): Remove function.
7174 (i386nto_sigtramp_p): New function.
7175 (i386nto_sigcontext_addr): Use I386_ESP_REGNUM instead of
7176 SP_REGNUM.
7177 (i386nto_init_abi): Initialize TDEP->sigtramp_p. Don't set
7178 deprecated_pc_in_sigtramp.
7179 * i386-sol2-tdep.c: Update copyright year.
7180 (i386_sol2_pc_in_sigtramp): Remove function.
7181 (i386_sol2_sigtramp_p): New function.
7182 (i386_sol2_init_abi): Initialize TDEP->sigtramp_p. Don't set
7183 deprecated_pc_in_sigtramp.
7184 * i386bsd-tdep.c (i386bsd_pc_in_sigtramp): Remove function.
7185 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove functions.
7186 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
7187 deprecated_sigtramp_start and deprecated_sigtramp_end.
7188 * i386nbsd-tdep.c: Include "frame.h" and "symtab.h".
7189 (i386nbsd_pc_in_sigtramp): Remove function.
7190 (i386nbsd_sigtramp_p): New function.
7191 (i386nbsd_init_abi): Don't set deprecated_pc_in_sigtramp,
7192 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
7193 TDEP->sigtramp_start, TDEP->sigtramp_end and TDEP->sigtramp_p.
7194 * i386obsd-tdep.c: Include "frame.h", "symtab.h" and "objfiles.h".
7195 (i386obsd_pc_in_sigtramp): Remove function.
7196 (i386obsd_sigtramp_p): New function.
7197 (i386obsd_sigtramp_start, i386obsd_sigtramp_end): Remove
7198 functions.
7199 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
7200 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
7201 TDEP->sigtramp_p.
7202 * Makefile.in (amd64-linux-tdep.o, amd64nbsd-tdep.o,
7203 amd64obsd-tdep.o, i386nbsd-tdep.o, i386obsd-tdep.o): Update
7204 dependencies.
7205
e083e6ec
MK
7206 * config/i386/i386aout.mt: Remove file.
7207
bd153b94
MK
7208 * configure.tgt: Remove i[34567]86-*-go32*,
7209 i[34567]86-*-msdosdjgpp*, i[34567]86-*-sco*, i[34567]86-*-sysv*
7210 and i[34567]86-*-isc*. Set gdb_target to i386 for
7211 i[34567]86-*-netware* and i[34567]86-*-*.
7212 * config/i386/i386.mt: New file.
7213 * config/i386/embed.mt: Remove file.
7214 * config/i386/go32.mt: Remove file.
7215 * config/i386/i386nw.mt: Remove file.
7216 * config/i386/i386v.mt: Remove file.
7217 * config/i386/tm-go32.h: Remove file.
7218
4a1bcc8c
MK
7219 * tui/tui-hooks.c: Include "readline/readline.h" after
7220 "gdb_curses.h" instead of before.
7221 * tui/tui-io.c: Likewise.
7222
f9a79064
MK
7223 * tui/tui.c: Fix typo in comment.
7224
b31bc724
MK
7225 * sparc64-tdep.c (sparc_address_from_register): Remove function.
7226
f83f82bc
AC
72272004-04-08 Andrew Cagney <cagney@redhat.com>
7228
7229 * breakpoint.h (deprecated_exception_catchpoints_are_fragile)
7230 (deprecated_exception_support_initialized): Declare.
8718a420 7231 * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support)
f83f82bc
AC
7232 (initialize_hp_cxx_exception_support)
7233 (child_enable_exception_callback): Update.
7234 * breakpoint.c (deprecated_exception_catchpoints_are_fragile)
7235 (deprecated_exception_support_initialized): Rename
7236 deprecated_exception_catchpoints_are_fragile and
7237 deprecated_exception_support_initialized.
7238 (breakpoint_init_inferior, breakpoint_init_inferior): Update.
7239
7240 * symtab.c (deprecated_hp_som_som_object_present): Rename
7241 hp_som_som_object_present.
7242 * symtab.h (deprecated_hp_som_som_object_present): Declare.
7243 * symfile.c (hp_som_som_object_present, RESET_HP_UX_GLOBALS):
7244 Update. Delete extern declaration.
7245 * valops.c (hp_som_som_object_present): Ditto.
8718a420 7246 * parse.c (deprecated_hp_som_som_object_present)
f83f82bc
AC
7247 (parse_nested_classes_for_hpacc): Ditto.
7248 * hpread.c (hp_som_som_object_present, hpread_expand_symtab): Ditto.
8718a420 7249 * hppa-hpux-tdep.c (hp_som_som_object_present)
f83f82bc
AC
7250 (initialize_hp_cxx_exception_support): Ditto.
7251 * eval.c (hp_som_som_object_present, evaluate_subexp_standard): Ditto.
8718a420 7252 * cp-valprint.c (hp_som_som_object_present)
f83f82bc 7253 (cp_print_class_method): Ditto.
8718a420 7254 * c-typeprint.c (hp_som_som_object_present):
f83f82bc
AC
7255 (c_type_print_base): Ditto.
7256 * c-exp.y (hp_som_som_object_present): Ditto.
7257
fb2be677
AC
72582004-04-08 Andrew Cagney <cagney@redhat.com>
7259
7260 * frame-unwind.c (struct frame_unwind_table, frame_unwind_init)
7261 (frame_unwind_prepend_unwinder, frame_unwind_append_sniffer)
7262 (frame_unwind_find_by_frame): Re-implement the unwind code so
7263 that it can both prepend and append sniffers. Replace
7264 frame_unwind_register_unwinder with frame_unwind_prepend_unwinder.
7265 * tramp-frame.c (tramp_frame_append): Use
7266 frame_unwind_prepend_unwinder.
7267 * frame-unwind.h (frame_unwind_prepend_unwinder): Replace
7268 frame_unwind_register_unwinder.
7269 * tramp-frame.h (tramp_frame_prepend_unwinder): Rename
7270 tramp_frame_append.
7271 * tramp-frame.c (tramp_frame_prepend_unwinder): Update.
8718a420 7272 * mips-linux-tdep.c (mips_linux_init_abi, mips_linux_init_abi)
fb2be677
AC
7273 (mips_linux_init_abi): Update.
7274
67faf007
KB
72752004-04-08 Kevin Buettner <kevinb@redhat.com>
7276
7277 * ppc-linux-tdep.c (ELF_NREG, ELF_NFPREG, ELF_NVRREG)
7278 (ELF_FPREGSET_SIZE): Delete constants formerly used in core
7279 file support.
7280
8973ff21
KB
72812004-04-07 Kevin Buettner <kevinb@redhat.com>
7282
7283 * ia64-tdep.c (elf.h): Don't include.
7284 (elf/ia64.h) [HAVE_LIBUNWIND_IA64_H]: Include.
7285
4a0e2f88
JM
72862004-04-07 Jason Molenda (jmolenda@apple.com)
7287
7288 * frame.h: Typeo corrections in comments.
7289
9872ad24
JB
72902004-04-07 Jim Blandy <jimb@redhat.com>
7291
7292 * i386-tdep.c (i386_stab_reg_to_regnum): Correct numbering for
7293 %esp and %ebp
7294
70b216c8
MK
72952004-04-07 Mark Kettenis <kettenis@gnu.org>
7296
11d5789c
MK
7297 * config/sparc/linux.mt (TDEPFILES): Remove solib-legacy.o.
7298 * config/sparc/linux64.mt (TDEPFILES): Likewise.
7299 * config/sparc/sol2.mt (TDEPFILES): Add solib.o and solib-svr4.o.
7300 * config/sparc/sol2.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
7301 and solib-legacy.o.
7302 * config/sparc/sol2-64.mt (TDEPFILES): Add solib.o and
7303 solib-svr4.o.
7304 * config/sparc/tm-sol2.h: Update copyright year. Include
7305 "solib.h".
7306
70b216c8
MK
7307 * sparc-sol2-tdep.c: Update copyright year. Include
7308 "solib-svr4.h".
7309 (sparc32_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
7310 * sparc64-sol2-tdep.c: Include "solib-svr4.h".
7311 (sparc64_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
096f864c 7312 * Makefile.in (sparc-sol2-tdep.o, sparc64-sol2-tdep.o): Update
70b216c8
MK
7313 dependencies.
7314
6339dc9e
AC
73152004-04-06 Andrew Cagney <cagney@redhat.com>
7316
7317 * infttrace.c: Include "infttrace.h".
7318 * infttrace.h: Include "target.h".
7319 * Makefile.in (infttrace_h): Update.
7320 (infttrace.o): Update.
8718a420 7321
93449403
AC
73222004-04-06 Andrew Cagney <cagney@redhat.com>
7323
6d518969
AC
7324 * hppah-nat.c (hpux_has_forked, hpux_has_vforked)
7325 (hpux_has_execd, hpux_has_syscall_event): Include "infttrace.h",
7326 move extern declarations from here ...
7327 * infttrace.h: ... to here.
7328 * Makefile.in (hppah-nat.o): Update dependencies.
7329
85f4f2d8
AC
7330 * hppa-tdep.c (hppa_breakpoint_from_pc): Make static.
7331 (hppa_gdbarch_init): Set gdbarch_breakpoint_from_pc
8718a420 7332 * config/pa/tm-hppa.h (BREAKPOINT_FROM_PC, BREAKPOINT32):
85f4f2d8
AC
7333 (hppa_breakpoint_from_pc): Delete.
7334
93449403
AC
7335 * MAINTAINERS: Mark hppa-elf as buildable with -Werror.
7336
71456ec6
AC
73372004-04-05 Andrew Cagney <cagney@redhat.com>
7338
7339 * hppa-tdep.c: Do not include <sys/types.h>, <sys/param.h>,
7340 <signal.h>, <sys/ptrace.h>, #include "a.out.encap.h",
7341 <sys/file.h>.
8718a420 7342
4c02c60c
AC
73432004-04-06 Randolph Chung <tausq@debian.org>
7344
7345 Committed by Andrew Cagney (mechanical change).
7346 * hppa-tdep.c: (args_for_find_stub, hp_som_som_object_present,
7347 exception_catchpoints_are_fragile, find_stub_with_shl_get,
7348 cover_find_stub_with_shl_get, initialize_hp_cxx_exception_support,
7349 child_enable_exception_callback, current_ex_event,
7350 null_symtab_and_line, child_get_current_exception_event,
7351 HP_ACC_EH_notify_hook, HP_ACC_EH_set_hook_value,
7352 HP_ACC_EH_notify_callback, HP_ACC_EH_break, HP_ACC_EH_catch_throw,
7353 HP_ACC_EH_catch_catch, __eh_notification, hp_cxx_exception_support,
7354 hp_cxx_exception_support_initialized, eh_notify_hook_addr,
7355 eh_notify_callback_addr, eh_break_addr, eh_catch_catch_addr,
7356 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior):
7357 Move hpux-specific definitions ...
7358 * hppa-hpux-tdep.c: ... to here.
7359
3a515653
AC
73602004-04-05 Andrew Cagney <cagney@redhat.com>
7361
7362 * hppa-tdep.c (hppa_frame_cache): Pass the frame's func to
7363 skip_prologue_using_sal.
7364
c1730d02
AC
73652004-04-05 Andrew Cagney <cagney@redhat.com>
7366
7367 * config/i386/tm-i386.h: Delete file.
7368 * config/i386/tm-vxworks.h: Update copyright, do not include
7369 "tm-i386.h".
7370 * config/i386/tm-nto.h, config/i386/tm-linux.h: Ditto.
7371 * config/i386/tm-i386sol2.h, config/i386/tm-i386lynx.h: Ditto.
7372 * config/i386/tm-go32.h, config/i386/tm-cygwin.h: Ditto.
7373 * config/i386/ncr3000.mt (TM_FILE): Delete.
7374 * config/i386/interix.mt (TM_FILE): Delete.
7375 * config/i386/i386v.mt (TM_FILE): Delete.
7376 * config/i386/i386nw.mt (TM_FILE): Delete.
7377 * config/i386/i386gnu.mt (TM_FILE): Delete.
7378 * config/i386/i386aout.mt (TM_FILE): Delete.
7379 * config/i386/embed.mt (TM_FILE): Delete.
7380
8b67aa36
KB
73812004-04-05 Kevin Buettner <kevinb@redhat.com>
7382
7383 * frv-tdep.h (fsr0_regnum, acc0_regnum, acc7_regnum, accg0123_regnum)
7384 (accg4567_regnum, msr0_regnum, msr1_regnum, gner0_regnum)
7385 (gner1_regnum, fner0_regnum, fner1_regnum, accg0_regnum)
7386 (accg7_regnum): New constants.
7387 (last_spr_regnum, last_pseudo_regnum): Update.
c2f59a1a
KB
7388 * frv-tdep.c (new_variant): Initialize names for fsr0, acc0-acc7,
7389 accg0-accg7, msr0, msr1, gner0, gner1, fner0, and fner1.
8b67aa36
KB
7390 (frv_pseudo_register_read, frv_pseudo_register_write): Add support
7391 for accg registers.
7392 (frv_register_sim_regno): Update spr_map[].
7393
3c7012f5
AC
73942004-04-04 Andrew Cagney <cagney@redhat.com>
7395
7396 * config/mips/xm-riscos.h: Delete.
7397 * config/mips/xm-mipsv4.h, config/mips/xm-mips.h: Delete.
7398 * config/mips/tm-mipsv4.h, config/mips/riscos.mh: Delete.
7399 * config/mips/nm-riscos.h, config/mips/nm-news-mips.h: Delete.
7400 * config/mips/nm-mips.h, config/mips/news-mips.mh: Delete.
7401 * config/mips/news-mips.mh, config/m68k/tm-m68kv4.h: Delete.
7402 * config/mips/decstation.mh, config/mips/littlemips.mh: Delete.
7403 * config/mips/mipsv4.mt, config/m68k/tm-sun3.h: Delete.
7404 * config/m68k/xm-sun3os4.h, config/m68k/xm-sun3.h: Delete.
7405 * config/m68k/xm-sun2.h, config/m68k/xm-m68kv4.h: Delete.
7406 * config/m68k/xm-dpx2.h, config/m68k/xm-delta68.h: Delete.
7407 * config/m68k/xm-3b1.h, config/m68k/tm-sun3os4.h: Delete.
7408 * config/m68k/tm-m68klynx.h, config/m68k/tm-dpx2.h: Delete.
7409 * config/m68k/tm-delta68.h, config/m68k/tm-3b1.h: Delete.
7410 * config/m68k/sun3os4.mt, config/m68k/nm-sysv4.h: Delete.
7411 * config/m68k/nm-sun3.h, config/m68k/sun3os4.mh: Delete.
7412 * config/m68k/sun2os3.mh, config/m68k/nm-sun2.h: Delete.
7413 * config/m68k/nm-m68klynx.h, config/m68k/sun3os3.mt: Delete.
7414 * config/m68k/nm-dpx2.h, config/m68k/sun2os3.mt: Delete.
7415 * config/m68k/dpx2.mh, config/m68k/sun3os3.mh: Delete.
7416 * config/m68k/sun2os4.mh, config/m68k/nm-delta68.h: Delete.
7417 * config/m68k/m68kv4.mt, config/m68k/m68klynx.mt: Delete.
7418 * config/m68k/3b1.mt, config/m68k/m68klynx.mh: Delete.
7419 * config/m68k/m68kv4.mh, config/m68k/sun2os4.mt: Delete.
7420 * config/m68k/tm-sun2os4.h, config/m68k/3b1.mh: Delete.
7421 * config/m68k/dpx2.mt, config/m68k/delta68.mt: Delete.
7422 * config/m68k/tm-sun2.h, config/m68k/delta68.mh: Delete.
8718a420 7423
3c7012f5
AC
7424 * configure.tgt: Remove m68000-*-sunos3*, m68000-*-sunos4*,
7425 m68*-bull-sysv*, m68*-att-*, m68*-motorola-*, m68*-*-lynxos*,
7426 m68*-*-sunos3*, m68*-*-sunos4*, m68*-*-sysv4*, mips*-*-sysv4*.
7427 * configure.host: Remove m680[01]0-sun-sunos3*,
7428 m680[01]0-sun-sunos4*, m68*-att-*, m68*-bull*-sysv*,
7429 m68*-*-lynxos*, m68*-*-sysv4*, m68*-motorola-*, m68*-sun-sunos3*,
7430 m68*-sun-sunos4*, m68*-sun-*, mips-dec-*, mips-little-*,
7431 mips-sony-*, mips-*-mach3*, mips-*-sysv4*, mips-*-sysv*,
7432 mips-*-riscos*.
7433 * NEWS: Mention removed systems.
7434
99d16a21
AC
74352004-04-04 Andrew Cagney <cagney@redhat.com>
7436
7437 GDB 6.1 release created from 6.1 branch.
7438
6cdf9d98
AC
74392004-04-04 Andrew Cagney <cagney@redhat.com>
7440
98d346c3
AC
7441 * gnu-nat.c (gnu_wait): Use memcpy instead of bcopy.
7442 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
7443 * remote-vx68.c (vx_read_register, vx_write_register): Ditto.
7444
6cdf9d98
AC
7445 * config/vax/xm-vax.h (FAULT_CODE_ORIGIN, INIT_STACK): Delete.
7446 * config/alpha/xm-alphaosf.h (NO_SIGINTERRUPT): Delete.
7447 * config/alpha/xm-alphalinux.h (NO_SIGINTERRUPT): Delete.
7448
859a326d
JB
74492004-04-03 Jim Blandy <jimb@redhat.com>
7450
7451 * MAINTAINERS: Chris Faylor has changed employers; add him to
7452 "paper trail" section, and update his E-mail address.
7453
b87178c3
AC
74542004-04-03 Andrew Cagney <cagney@redhat.com>
7455
4ea2acf0
AC
7456 * frame-unwind.c (frame_unwind_find_by_frame): Delete check for
7457 generic dummy frames.
7458 * dummy-frame.c: Update copyright.
7459 (dummy_frame_sniffer): Delete check for generic dummy frames.
7460
d0bd2d18 7461 * config/pa/tm-hppa.h (REG_PARM_STACK_SPACE): Delete.
8718a420 7462 * config/pa/tm-hppa64.h (PA20W_CALLING_CONVENTIONS)
d0bd2d18
AC
7463 (REG_PARM_STACK_SPACE): Delete.
7464 * hppa-tdep.c (hppa64_push_dummy_call, hppa32_push_dummy_call):
7465 Inline reference to REG_PARM_STACK_SPACE.
7466
b87178c3
AC
7467 * config/pa/tm-hppah.h (FRAME_SAVED_PC_IN_SIGTRAMP)
7468 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
7469 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
7470 (FRAME_BASE_BEFORE_SIGTRAMP)
7471 (hppa32_hpux_frame_base_before_sigtramp)
7472 (hppa32_hpux_frame_saved_pc_in_sigtramp): Delete.
7473 * config/pa/tm-hppa64.h (hppa64_hpux_frame_saved_pc_in_sigtramp)
7474 (hppa64_hpux_frame_find_saved_regs_in_sigtramp)
7475 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
7476 (FRAME_BASE_BEFORE_SIGTRAMP)
7477 (hppa64_hpux_frame_base_before_sigtramp)
7478 (FRAME_SAVED_PC_IN_SIGTRAMP): Delete.
7479
43e2e1a0
AC
74802004-04-03 Andrew Cagney <cagney@redhat.com>
7481
7482 * PROBLEMS: Mention that GDB doesn't build on HP/UX 11.00.
7483
ddc135a4
AC
74842004-04-02 Andrew Cagney <cagney@redhat.com>
7485
7486 * sh64-tdep.c (sh64_init_extra_frame_info): Replace
7487 DEPRECATED_CALL_DUMMY_LENGTH with 0, simplify.
7488 * dummy-frame.h: Delete out-of-date comments.
7489 * gdbarch.sh (DEPRECATED_CALL_DUMMY_LENGTH): Delete.
7490 * gdbarch.h, gdbarch.c: Re-generate.
7491
d15bfd3a 74922004-04-02 Joel Brobecker <brobecker@gnat.com>
8718a420 7493
d15bfd3a
AC
7494 Committed by Andrew Cagney <cagney@redhat.com>.
7495 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Do not take
7496 into account an instruction saving a register if we have already
7497 seen an earlier instruction saving that same register.
7498
f04ceafa
AC
74992004-04-02 Andrew Cagney <cagney@redhat.com>
7500
08be3abd
AC
7501 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Delete.
7502 * gdbarch.h, gdbarch.c: Re-generate.
7503 * frame.c (legacy_get_prev_frame): Delete references to
7504 DEPRECATED_INIT_FRAME_PC_FIRST.
7505
f04ceafa
AC
7506 * infrun.c (pc_in_sigtramp): Delete function.
7507 (check_sigtramp2): Inline call to pc_in_sigtramp, use
7508 get_frame_type.
7509
08e69816
AC
75102004-04-02 Andrew Cagney <cagney@redhat.com>
7511
7512 * infrun.c (handle_step_into_function): Delete code conditional on
7513 legacy_frame_p.
7514 (handle_inferior_event, step_over_function): Ditto.
7515
adb54772
AC
75162004-04-02 Andrew Cagney <cagney@redhat.com>
7517
7518 * frame.c (get_prev_frame_1): Exclude signal trampolines from the
7519 "previous frame inner to this frame" test.
7520
304396fb
AC
75212004-04-02 Andrew Cagney <cagney@redhat.com>
7522
7523 * frame.c (safe_frame_unwind_memory): New function.
7524 * frame.h (safe_frame_unwind_memory): Declare. Update description
7525 of /safe_/ methods.
7526 * tramp-frame.c (tramp_frame_start): Re-order parmeters, add
7527 "next_frame". Use safe_frame_unwind_memory.
7528 (tramp_frame_sniffer): Update call to tramp_frame_start.
7529
6502dd73
DJ
75302004-04-01 Daniel Jacobowitz <drow@mvista.com>
7531
7532 * dwarf2read.c (dwarf2_objfile_data_key): New.
7533 (struct dwarf2_per_objfile, dwarf2_per_objfile): New.
7534 (dwarf_info_size, dwarf_abbrev_size, dwarf_line_size)
7535 (dwarf_pubnames_size, dwarf_aranges_size, dwarf_loc_size)
7536 (dwarf_macinfo_size, dwarf_str_size, dwarf_ranges_size)
7537 (dwarf_frame_size, dwarf_eh_frame_size, dwarf_info_buffer)
7538 (dwarf_abbrev_buffer, dwarf_line_buffer, dwarf_str_buffer)
7539 (dwarf_macinfo_buffer, dwarf_ranges_buffer, dwarf_loc_buffer):
7540 Remove variables.
7541 (struct dwarf2_pinfo): Remove per-objfile members. Update comments.
7542 (DWARF_ABBREV_SIZE, DWARF_LINE_SIZE)
7543 (DWARF_LOC_SIZE, DWARF_MACINFO_SIZE, DWARF_STR_SIZE)
7544 (DWARF_RANGES_SIZE, DWARF_INFO_BUFFER)
7545 (DWARF_ABBREV_BUFFER, DWARF_LINE_BUFFER, DWARF_STR_BUFFER)
7546 (DWARF_MACINFO_BUFFER, DWARF_RANGES_BUFFER, DWARF_LOC_BUFFER):
7547 Remove macros.
7548 (dwarf2_has_info): Take an objfile argument. Allocate per-objfile
7549 data.
7550 (dwarf2_locate_sections, dwarf2_build_psymtabs)
7551 (dwarf2_build_psymtabs_easy, dwarf2_build_psymtabs_hard)
7552 (skip_one_die, dwarf2_get_pc_bounds, dwarf2_read_abbrevs)
7553 (read_partial_die, read_full_die, read_indirect_string)
7554 (dwarf_decode_line_header, dwarf_decode_macros)
7555 (dwarf2_symbol_mark_computed): Remove use of removed macros.
7556 Update uses of removed variables.
7557 (psymtab_to_symtab_1): Restore per-objfile data pointer. Remove use
7558 of removed macros.
7559 (_initialize_dwarf2_read): New function.
7560 * symfile.h (dwarf2_has_info): Update prototype.
7561 * coffread.c (coff_symfile_read): Update call to dwarf2_has_info.
7562 * elfread.c (elf_symfile_read): Likewise.
7563
408752b0
JB
75642004-04-01 Jim Blandy <jimb@redhat.com>
7565
9f744501
JB
7566 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): New, unified
7567 function for register numbers on all the rs6000-derived targets.
7568 (rs6000_gdbarch_init): Don't register a separate
7569 gdbarch_dwarf2_reg_to_regnum function for the E500. Use
7570 rs6000_dwarf2_stab_reg_to_regnum for both Dwarf 2 and stabs on all
7571 variants.
7572
408752b0
JB
7573 * i386-tdep.c: Add FIXME regarding STABS vs. Dwarf 2 register
7574 numbering.
7575
2de41bce
PH
75762004-04-01 Paul N. Hilfinger <Hilfinger@gnat.com>
7577
7578 * valarith.c: Update copyright notice.
7579 (value_add): Handle range types.
7580 (value_sub): Ditto.
7581 (value_equal): Ditto.
7582 (value_less): Ditto.
7583 (value_neg): Ditto.
7584 (value_complement): Ditto.
8718a420 7585 (value_binop): Simplify slightly by using is_integral_type and
2de41bce 7586 eliminiating unnecessary COERCE_ENUMs.
8718a420 7587
5613d8d3
AC
75882004-03-31 Andrew Cagney <cagney@redhat.com>
7589
7590 * frame.h (frame_unwind_id): Declare.
7591 * frame.c (frame_unwind_id): New function.
7592 (get_prev_frame_1): New function.
7593 (frame_debug_got_null_frame): New function.
7594 (get_prev_frame): Use frame_debug_got_null_frame. Move unwind
7595 code proper to prev_frame, update description.
7596 * infrun.c (step_over_function): Use frame_unwind_id.
7597
c4557624
JB
75982004-04-31 J. Brobecker <brobecker@gnat.com>
7599
7600 * hppa-tdep.c (hppa32_push_dummy_call): Set the Stack Pointer.
7601 (hppa64_push_dummy_call): Likewise.
7602
3e6bb910
JB
76032004-03-30 Jim Blandy <jimb@redhat.com>
7604
7605 From Ulrich Weigand:
7606 * utils.c (query): Do not use a va_list variable multiple times.
7607
a2f23071
DJ
76082004-03-29 Daniel Jacobowitz <drow@mvista.com>
7609
7610 * Makefile.in (linux_nat_h): Update dependencies.
7611 * configure.in: Check for <gnu/libc-version.h>.
7612 * configure: Regenerate.
7613 * config.in: Regenerate.
7614 * linux-nat.h: Include "target.h". Add waitstatus field to
7615 struct lwp_info.
7616 * lin-lwp.c (add_lwp): Initialize waitstatus.kind.
7617 (lin_lwp_attach_lwp): Don't attach to LWPs we have already attached
7618 to.
7619 (lin_lwp_handle_extended): New function. Handle clone events.
7620 (wait_lwp): Use lin_lwp_handle_extended. Update comment about
7621 thread exit events.
7622 (child_wait): Handle clone events.
7623 (lin_lwp_wait: Use lin_lwp_handle_extended and handle clone events.
7624 * linux-nat.c (linux_enable_event_reporting): Turn on
7625 PTRACE_O_TRACECLONE.
7626 (linux_handle_extended_wait): Handle clone events.
7627 * thread-db.c: Include <gnu/libc-version.h>.
7628 (struct private_thread_info): Add dying flag.
7629 (enable_thread_event_reporting): Enable TD_DEATH for glibc 2.2 and
7630 higher.
7631 (attach_thread): Update comments. Handle dying threads.
7632 (detach_thread): Set the dying flag.
7633 (check_event): Always call attach_thread.
7634
8d5f9dcb
DJ
76352004-03-29 Daniel Jacobowitz <drow@mvista.com>
7636
7637 * mips-tdep.c (mips_pdr_data): New.
7638 (non_heuristic_proc_desc): Use objfile_data and set_objfile_data.
7639 (_initialize_mips_tdep): Initialize mips_pdr_data.
7640
66337bb1
CV
76412004-03-29 Corinna Vinschen <vinschen@redhat.com>
7642
7643 * minsyms.c (install_minimal_symbols): Move dropping leading
7644 char from linkage name from here...
7645 (prim_record_minimal_symbol_and_info): ...to here. Simplify
7646 test for "__gnu_compiled*" symbols.
7647
e802b915
JB
76482004-03-28 Jim Blandy <jimb@redhat.com>
7649
7650 * rs6000-tdep.c (skip_prologue): Recognize moves from argument
7651 registers to temp register r0 and byte stores as prologue
7652 instructions.
7653
72b56458
AC
76542004-03-28 Andrew Cagney <cagney@redhat.com>
7655
7656 * PROBLEMS (Stack backtraces): Rewrite. Remove reference to
7657 arm*-*-*.
7658
0bfbda3b
SC
76592004-03-28 Stephane Carrez <stcarrez@nerim.fr>
7660
7661 * tui/tui-regs.c (tui_show_registers): Make sure the TUI is active
7662 and switch the layout to force a display of register window.
7663
5a7225ed
JB
76642004-02-26 J. Brobecker <brobecker@gnat.com>
7665
7666 * amd64-tdep.c (amd64_classify): make RANGE_TYPE objects be part
7667 of the INTEGER class.
7668
81a07a45
JB
76692004-03-26 Jim Blandy <jimb@redhat.com>
7670
7671 * ppc-linux-tdep.c (ppc_linux_init_abi): Long doubles are eight
7672 bytes long on PPC GNU/Linux.
7673
8c691c7a
DC
76742004-03-26 David Carlton <carlton@kealia.com>
7675
7676 * PROBLEMS: Refer to gdb/1588 instead of gdb/826.
7677
103a0089
AC
76782004-03-25 Andrew Cagney <cagney@redhat.com>
7679
7680 * PROBLEMS: Add general section titles, remove references to
7681 specific releases.
7682
7a5ea0d4
DJ
76832004-03-25 Daniel Jacobowitz <drow@mvista.com>
7684
7685 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE): Define to
7686 INT_REGISTER_SIZE.
7687 (arm_linux_push_arguments): Use TARGET_DOUBLE_BIT instead of
7688 FP_REGISTER_VIRTUAL_SIZE.
7689 * arm-tdep.c (arm_make_sigtramp_cache): Use register_size instead
7690 of DEPRECATED_REGISTER_RAW_SIZE.
7691 (arm_register_type): Add gdbarch argument.
7692 (arm_register_raw_size, arm_register_virtual_size): Delete.
7693 (arm_register_byte, arm_extract_return_value)
7694 (arm_store_return_value, arm_get_longjmp_target): Update references
7695 to INT_REGISTER_RAW_SIZE and FP_REGISTER_RAW_SIZE.
7696 (arm_gdbarch_init): Likewise. Don't set
7697 deprecated_register_raw_size, deprecated_register_virtual_size,
7698 deprecated_max_register_raw_size,
7699 deprecated_max_register_virtual_size, or
7700 deprecated_max_register_virtual_type. Do set register_type.
7701 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE)
7702 (ARM_MAX_REGISTER_VIRTUAL_SIZE, INT_REGISTER_VIRTUAL_SIZE)
7703 (FP_REGISTER_VIRTUAL_SIZE): Delete.
7704 (INT_REGISTER_RAW_SIZE): Rename to INT_REGISTER_SIZE.
7705 (FP_REGISTER_RAW_SIZE): Rename to FP_REGISTER_SIZE.
7706 * arm-linux-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Define to
7707 INT_REGISTER_SIZE.
7708 * remote-rdp.c (remote_rdp_fetch_register): Use MAX_REGISTER_SIZE.
7709 (remote_rdp_store_register): Likewise.
7710
5792a79b
DJ
77112004-03-24 Daniel Jacobowitz <drow@mvista.com>
7712
7713 * Makefile.in (mips-linux-tdep.o): Update dependencies.
7714 * mips-tdep.c (mips_gdbarch_init): Move frame predicates
7715 to after osabi initialization.
7716 * mips-linux-tdep.c: Include "trad-frame.h" and "tramp-frame.h".
7717 (mips_linux_o32_sigframe_init, mips_linux_n32n64_sigframe_init): New
7718 functions.
7719 (mips_linux_o32_sigframe, mips_linux_o32_rt_sigframe)
7720 (mips_linux_n32_rt_sigframe, mips_linux_n64_rt_sigframe): New
7721 variables.
7722 (mips_linux_init_abi): Append signal trampoline unwinders.
7723
1196bfda
AC
77242004-03-24 Andrew Cagney <cagney@redhat.com>
7725
7726 * tramp-frame.h (TRAMP_SENTINEL_INSN): Define, document.
7727 * tramp-frame.c: Include "gdb_assert.h".
7728 (tramp_frame_start): Use TRAMP_SENTINEL_INSN. Use ULONGEST and
7729 correct sizeof.
7730 (tramp_frame_append): Validate the tramp frame's instructions.
7731 * Makefile.in (tramp-frame.o): Update dependencies.
7732
4be282b4
AC
77332004-03-23 Andrew Cagney <cagney@redhat.com>
7734
7735 * trad-frame.h (trad_frame_set_reg_addr): Declare.
7736
69aec09b
AC
77372004-03-23 Andrew Cagney <cagney@redhat.com>
7738
7739 * MAINTAINERS (Past Maintainers): Add Mark Salter and Fernando
7740 Nasser as past testsuite/lib/ (and other) maintainers.
7741
63ed89b4
DJ
77422004-03-23 Daniel Jacobowitz <drow@mvista.com>
7743
7744 * infcmd.c (attach_command): Reread symbols if we already have
7745 an exec file.
7746
f3b36427
AC
77472004-03-23 Andrew Cagney <cagney@redhat.com>
7748
7749 * rs6000-tdep.c (frame_get_saved_regs): Delete unused function.
7750
aa2a3f87
AC
77512004-03-23 Andrew Cagney <cagney@redhat.com>
7752
7753 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): Deprecate.
7754 * gdbarch.h, gdbarch.c: Re-generate.
7755 * i386obsd-tdep.c (i386obsd_init_abi): Update.
7756 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
7757 * i386bsd-tdep.c (i386bsd_init_abi): Update.
8718a420 7758 * config/vax/tm-vaxbsd.h (DEPRECATED_SIGTRAMP_END)
aa2a3f87 7759 (DEPRECATED_SIGTRAMP_START): Update.
8718a420 7760 * config/m68k/tm-nbsd.h (DEPRECATED_SIGTRAMP_END)
aa2a3f87
AC
7761 (DEPRECATED_SIGTRAMP_START): Update.
7762 * blockframe.c (find_pc_sect_partial_function): Update.
7763 * arch-utils.c (legacy_pc_in_sigtramp): Update.
7764
00cac895
DJ
77652004-03-23 Daniel Jacobowitz <drow@mvista.com>
7766
7767 * remote.c (remote_open_1): Reopen the exec file and reread symbols
7768 if necessary.
7769
f561f026
AC
77702004-03-23 Andrew Cagney <cagney@redhat.com>
7771
7772 * gdbarch.sh (PC_IN_SIGTRAMP): Change to a function with
7773 predicate, deprecate.
7774 * gdbarch.h, gdbarch.c: Re-generate.
7775 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
7776 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
7777 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Update.
7778 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
7779 * alphanbsd-tdep.c (alphanbsd_init_abi): Update.
7780 * amd64-linux-tdep.c (amd64_linux_init_abi): Update.
7781 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Update.
7782 * amd64nbsd-tdep.c (amd64nbsd_init_abi): Update.
7783 * amd64obsd-tdep.c (amd64obsd_init_abi): Update.
7784 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Update.
7785 * blockframe.c (find_pc_partial_function): Update.
7786 * breakpoint.c (bpstat_what): Update.
7787 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update.
7788 * frv-linux-tdep.c (frv_linux_init_abi): Update.
7789 * frv-tdep.c (frv_sigtramp_frame_sniffer): Update.
7790 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Update.
7791 * i386-interix-tdep.c (i386_interix_init_abi): Update.
7792 * i386-linux-tdep.c (i386_linux_init_abi): Update.
7793 * i386-nto-tdep.c (i386nto_init_abi): Update.
7794 * i386-sol2-tdep.c (i386_sol2_init_abi): Update.
7795 * i386-tdep.c (i386_sigtramp_frame_sniffer)
7796 (i386_svr4_init_abi, i386_go32_init_abi, i386_gdbarch_init): Update.
7797 * i386bsd-tdep.c (i386bsd_init_abi): Update.
7798 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
7799 * i386obsd-tdep.c (i386obsd_init_abi): Update.
7800 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Update.
7801 * infrun.c (pc_in_sigtramp): Update.
7802 * m68k-tdep.c (m68k_sigtramp_frame_sniffer): Update.
7803 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
7804 * mips-tdep.c (mips_gdbarch_init): Update.
7805 * mipsnbsd-tdep.c (mipsnbsd_init_abi): Update.
7806 * ppc-linux-tdep.c: Update comment.
7807 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Update.
7808 * shnbsd-tdep.c (shnbsd_init_abi): Update.
7809 * sparc-linux-tdep.c (sparc32_linux_init_abi): Update.
7810 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Update.
7811 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Update.
7812 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Update.
7813 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Update.
7814 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Update.
7815 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Update.
7816 * sparcobsd-tdep.c (sparc32obsd_init_abi): Update.
8718a420 7817
8050c72f
AC
78182004-03-23 Andrew Cagney <cagney@redhat.com>
7819
d2259dd3
AC
7820 * tramp-frame.h, tramp-frame.h: New files.
7821 * Makefile.in (SFILES, tramp_frame_h, COMMON_OBS, tramp-frame.o):
7822 Update rules to include "tramp-frame.h" and "tramp-frame.c".
7823
8050c72f
AC
7824 * Makefile.in: Update all dependencies.
7825
0db9b4b7
AC
78262004-03-23 Andrew Cagney <cagney@redhat.com>
7827
7828 * Makefile.in (trad_frame_h): Add $(frame_h).
7829 * trad-frame.h: Update copyright. Include "frame.h".
7830 (struct trad_frame_cache, trad_frame_cache_zalloc): Declare.
7831 (trad_frame_set_id, trad_frame_get_id): Declare.
7832 (trad_frame_set_reg_addr, trad_frame_get_register): Declare.
7833 * trad-frame.c: Update copyright.
7834 (struct trad_frame_cache): Define.
7835 (trad_frame_cache_zalloc): New function.
7836 (trad_frame_set_id, trad_frame_get_id): New functions.
7837 (trad_frame_set_reg_addr, trad_frame_get_register): New functions.
8718a420 7838
8e645ae7
AC
78392004-03-22 Andrew Cagney <cagney@redhat.com>
7840
7841 * s390-tdep.c (struct s390_stub_unwind_cache): Rename
7842 s390_pltstub_unwind_cache.
7843 (s390_stub_frame_unwind_cache): Rename
7844 s390_pltstub_frame_unwind_cache.
7845 (s390_stub_frame_this_id): Rename s390_pltstub_frame_this_id.
7846 (s390_stub_frame_prev_register): Rename
7847 s390_pltstub_frame_prev_register.
7848 (s390_stub_frame_unwind): Rename s390_pltstub_frame_unwind.
7849 (s390_stub_frame_sniffer): Rename s390_stub_frame_sniffer.
7850
7851 From Ulrich Weigand:
7852 * s390-tdep.c (s390_pltstub_frame_sniffer): Handle invalid function
7853 pointer calls like PLT calls.
7854
34fcf120
DJ
78552004-03-22 Daniel Jacobowitz <drow@mvista.com>
7856
7857 * mips-tdep.c (non_heuristic_proc_desc): Search using the specified
7858 PC rather than the partial function start address. Use the start
7859 address to sanity check the found PDR.
7860
5b917078
DJ
78612004-03-22 Daniel Jacobowitz <drow@mvista.com>
7862
7863 * lin-lwp.c (lin_lwp_wait): Pass the LWP ID to
7864 linux_handle_extended_wait.
7865
8adf9e78
AC
78662004-03-22 Andrew Cagney <cagney@redhat.com>
7867
c3122434
AC
7868 * rs6000-tdep.c (frame_initial_stack_address): Delete unused
7869 function.
7870
8adf9e78
AC
7871 * frame.h (generic_pop_current_frame): Delete declaration.
7872 (deprecate_pop_dummy_frame): Deprecate
7873 generic_pop_dummy_frame.
7874 * dummy-frame.c (deprecated_pop_dummy_frame): Update.
7875 (generic_pop_current_frame): Delete function.
7876 * mn10300-tdep.c (mn10300_pop_frame): Eliminate call to
7877 generic_pop_current_frame.
7878 * v850-tdep.c (v850_pop_frame): Update.
7879 * mcore-tdep.c (mcore_pop_frame): Update.
7880 * sh64-tdep.c (sh64_pop_frame): Update.
7881 * h8300-tdep.c (h8300_pop_frame): Update.
7882
90ba813f
AC
78832004-03-22 Andrew Cagney <cagney@redhat.com>
7884
7885 * frame.h (deprecated_pc_in_call_dummy): Rename
7886 generic_pc_in_call_dummy.
7887 * dummy-frame.h (pc_in_dummy_frame): Delete declaration.
7888 * dummy-frame.c (deprecated_pc_in_call_dummy): Rename
7889 generic_pc_in_call_dummy.
7890 (pc_in_dummy_frame): Make static.
7891 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Update.
7892 * gdbarch.h, gdbarch.c: Re-generate.
7893 * dummy-frame.c (dummy_frame_sniffer): Simplify.
7894 * frame.c (frame_type_from_pc): Call deprecated_pc_in_call_dummy.
7895 (legacy_get_prev_frame): Ditto.
7896 * inferior.h: Delete reference to generic_pc_in_call_dummy in
7897 comment.
8718a420 7898
ca4bb888
AC
78992004-03-21 Andrew Cagney <cagney@redhat.com>
7900
244675f9
AC
7901 * inferior.h (deprecated_pc_in_call_dummy_at_entry_point): Delete
7902 declaration and out-of-date comment.
7903 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
7904 Delete function.
7905 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
7906 deprecated_pc_in_call_dummy.
7907
ca4bb888
AC
7908 * infrun.c (handle_inferior_event): For non legacy frames, use the
7909 frame ID and frame type to identify a signal trampoline. Update
7910 comments.
7911
1777c7b4
NW
79122004-03-21 Nathan J. Williams <nathanw@wasabisystems.com>
7913
7914 * mipsnbsd-tdep.c: Update copyright. Include "mips-tdep.h".
7915 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
7916
82417da5
AC
79172004-03-21 Andrew Cagney <cagney@redhat.com>
7918
7919 * frame-unwind.h: Update copyright.
7920 (struct frame_data): Add opaque declaration.
7921 (frame_sniffer_ftype): Declare.
7922 (struct frame_unwind): Add "unwind_data" and "sniffer".
7923 (frame_unwind_register_unwinder): Declare.
7924 (frame_unwind_find_by_frame): Add parameter "this_cache".
7925 * frame.c (get_frame_id, create_new_frame, legacy_get_prev_frame)
7926 (legacy_get_prev_frame, legacy_get_prev_frame)
7927 (get_frame_type): Pass the prologue_cache to
7928 frame_unwind_find_by_frame.
7929 * frame-unwind.c (struct frame_unwind_table_entry): Add field
7930 "unwinder".
7931 (frame_unwind_register_unwinder): New function.
7932 (frame_unwind_find_by_frame): Handle an unwind sniffer.
7933
b2ba182e
PH
79342004-03-20 Paul Hilfinger <hilfingr@nile.gnat.com>
7935
7936 * bcache.c (print_percentage): Use floating point to avoid
7937 incorrect results when portion*100 overflows.
7938
81332287
KB
79392004-03-19 Kevin Buettner <kevinb@redhat.com>
7940
7941 * ppc_tdep.h (ppc_linux_frame_saved_pc)
7942 (ppc_linux_init_extra_frame_info)
7943 (ppc_linux_frameless_function_invocation)
7944 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain)
7945 (rs6000_frame_saved_pc, rs6000_init_extra_frame_info)
7946 (rs6000_frameless_function_invocation, rs6000_frame_init_saved_regs)
7947 (rs6000_frame_chain): Delete declarations.
7948 * ppc-linux-tdep.c (ppc_linux_frame_saved_pc)
7949 (ppc_linux_init_extra_frame_info)
7950 (ppc_linux_frameless_function_invocation)
7951 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain): Delete.
7952 (ppc_linux_init_abi): Remove registration of above deleted functions.
7953 * rs6000-tdep.c (rs6000_init_extra_frame_info)
7954 (rs6000_frame_init_saved_regs, rs6000_init_frame_pc_first)
7955 (rs6000_frame_args_address, rs6000_saved_pc_after_call)
7956 (rs6000_pop_frame, rs6000_frameless_function_invocation)
7957 (rs6000_frame_saved_pc, rs6000_frame_chain): Delete.
7958 (rs6000_gdbarch_init): Remove registration of above deleted functions.
7959 Use rs6000_unwind_pc(), rs6000_frame_sniffer(),
7960 rs6000_unwind_dummy_id(), and rs6000_frame_base_sniffer() for
7961 frame management for all OSABIs.
7962
61a65099
KB
79632004-03-19 Andrew Cagney <cagney@redhat.com>
7964
7965 Committed by Kevin Buettner <kevinb@redhat.com>.
7966
7967 * ppc-linux-tdep.c: Include "trad-frame.h", and "frame-unwind.h".
7968 Update copyright.
7969 (struct ppc_linux_sigtramp_cache, ppc_linux_sigtramp_cache)
7970 (ppc_linux_sigtramp_this_id, ppc_linux_sigtramp_prev_register)
7971 (ppc_linux_sigtramp_unwind, ppc_linux_sigtramp_sniffer)
7972 (ppc_linux_init_abi): Add both 32- and 64-bit signal trampoline
7973 unwinders. #ifdef legacy frame code.
7974 * rs6000-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
7975 "frame-base.h".
7976 (rs6000_unwind_pc, rs6000_unwind_dummy_id)
7977 (struct rs6000_frame_cache, rs6000_frame_cache)
7978 (rs6000_frame_this_id, rs6000_frame_prev_register)
7979 (rs6000_frame_sniffer, rs6000_frame_unwind)
7980 (rs6000_frame_base_address, rs6000_frame_base_sniffer)
7981 (rs6000_frame_base): Implement a traditional frame unwinder.
7982 (rs6000_gdbarch_init): When unknown, NetBSD, or GNU/Linux use the
7983 frame unwinder.
7984
88f7da05
KB
79852004-03-19 Kevin Buettner <kevinb@redhat.com>
7986
7987 * breakpoint.c (adjust_breakpoint_address): Don't adjust
7988 breakpoint address for watchpoints or the catch eventpoints.
7989 Add new paramter ``bptype''. Adjust all callers.
7990
f826dce1
AC
79912004-03-19 Andrew Cagney <cagney@redhat.com>
7992
33cb8b0f
AC
7993 * config/pa/tm-hppa.h (GDB_TARGET_IS_HPPA): Delete unused macro.
7994
f826dce1
AC
7995 * PROBLEMS: Delete note that ARM does not use frame code, problem
7996 fixed.
7997
43b1ab88
AC
79982004-03-18 Andrew Cagney <cagney@redhat.com>
7999
292ab034
AC
8000 * stack.c (return_command): Delete code wrapped in #ifdef
8001 DEPRECATED_CALL_DUMMY_HAS_COMPLETED, macro no longer defined.
8002
43b1ab88
AC
8003 * rs6000-tdep.c (skip_prologue): Record only the first LR save.
8004
dbfe4626
AC
80052004-03-18 Andrew Cagney <cagney@redhat.com>
8006
8007 * config/mips/tm-nbsd.h: Replace IN_SIGTRAMP with
8008 DEPRECATED_IN_SIGTRAMP.
8009 * config/powerpc/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8010 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP) Ditto.
8011 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8012 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8013 * config/ia64/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8014 * config/ia64/tm-aix.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8015 * config/arm/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8016 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8017 * arch-utils.c (legacy_pc_in_sigtramp): Ditto.
8018 * arch-utils.h: Remove reference to IN_SIGTRAMP in comment.
8019
0cad6aec
AC
80202004-03-18 Andrew Cagney <cagney@redhat.com>
8021
8022 * frame-base.c: Update copyright. Include "gdb_obstack.h".
8023 (struct frame_base_table_entry): Define.
8024 (struct frame_base_table): Re-implement as a linked list.
8025 (frame_base_init): Re-implement.
8026 (frame_base_table): Delete function.
8027 (append_predicate): Delete function.
8028 (frame_base_append_sniffer): Update.
8029 (frame_base_set_default): Update.
8030 (frame_base_find_by_frame): Update.
8031 (_initialize_frame_base): Use gdbarch_data_register_pre_init.
8032 * Makefile.in (frame-base.o): Update dependencies.
8033
9982c2e7
AC
80342004-03-17 Andrew Cagney <cagney@redhat.com>
8035
8036 * frame.c (legacy_get_prev_frame): Pass correct frame to
8037 frame_unwind_find_by_frame.
8038
8dfe8985
DC
80392004-03-17 David Carlton <carlton@kealia.com>
8040
8041 * NEWS: Mention C++ nested types and namespaces
8042
ed47347a
MC
80432004-03-16 Michael Chastain <mec.gnu@mindspring.com>
8044
8045 * PROBLEMS: Add section headers, "Regressions since gdb 6.0"
8046 and "Regressions since gdb 5.3.". Add known regressions since
8047 gdb 6.0.
8048
90aeadfc
DC
80492004-03-16 David Carlton <carlton@kealia.com>
8050
8051 * dwarf2read.c (process_structure_scope): Process children even
8052 when we're a declaration.
8053
73912b9b
AC
80542004-03-16 Andrew Cagney <cagney@redhat.com>
8055
8056 * symtab.h (find_pc_sect_partial_function): Delete declaration.
8057 * blockframe.c (find_pc_partial_function)
8058 (find_pc_sect_partial_function): Merge into a single
8059 find_pc_partial_function.
8060
283accbc
MK
80612004-03-16 Mark Kettenis <kettenis@gnu.org>
8062
8063 * i386bsd-nat.c: s/regno/regnum/g.
8064 (fetch_inferior_registers): Use I386_ST0_REGNUM instead of
8065 FP0_REGNUM.
8066 (store_inferior_registers): Likewise.
8067
f5b1afdf
MK
80682004-03-16 Mark Kettenis <kettenis@gnu.org>
8069
8070 * i386bsd-nat.c (fill_fpregset): Call i387_collect_fsave instead
8071 of i387_fill_fsave.
8072 (store_inferior_registers): Call i387_collect_fsave and
8073 i387_collect_fxsave instead of i387_fill_fsave and
8074 i387_fill_fxsave.
8075
41fe5eb3
AC
80762004-03-15 Andrew Cagney <cagney@redhat.com>
8077
8078 * Makefile.in (frame-unwind.o): Update dependencies.
8079 * frame-unwind.c: Include "gdb_obstack.h".
8080 (frame_unwind_init): Replace "gdbarch" parameter with an "obstack"
8081 parameter.
8082 (append_predicate): Delete function.
8083 (struct frame_unwind_table_entry): New structure.
8084 (struct frame_unwind_table): Replace "sniffer" with "head" and
8085 "tail".
8086 (frame_unwind_append_sniffer): Update.
8087 (frame_unwind_find_by_frame): Update.
8088 (_initialize_frame_unwind): Registe frame_unwind_init using
8089 gdbarch_data_register_pre_init.
8090
3f63813d
MK
80912004-03-15 Mark Kettenis <kettenis@gnu.org>
8092
8093 * i386bsd-nat.c: Update copyright year.
8094 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Undefine and then
8095 define unconditionally.
8096
3248c325 80972004-03-15 Mark Kettenis <kettenis@gnu.org>
63b6c53f
MK
8098
8099 * i387-tdep.h (i387_collect_fsave): New prototype.
8100 * i387-tdep.c (i387_collect_fsave): New function containing most
8101 of the code from i387_fill_fsave.
3248c325 8102 (i387_fill_fsave): Call i387_collect_fsave.
63b6c53f 8103
871fbe6a
MK
81042004-03-15 Mark Kettenis <kettenis@gnu.org>
8105
8106 * i386-linux-tdep.c: Update copyright year.
8107 (i386_linux_svr4_fetch_link_map_offsets): Remove function.
8108 (i386_linux_init_abi): Set solib_svr4_fetch_link_maop_offsets to
8109 svr4_ilp32_link_map_offsets instead of
8110 i386_linux_svr4_fetch_link_map_offsets.
8111
8176b9b8
DC
81122004-03-15 David Carlton <carlton@kealia.com>
8113
8114 Fix for PR c++/1553:
8115 * dwarf2read.c (read_structure_type): Determine type name by
8116 calling determine_class_name.
8117 (determine_class_name): New.
8118 (determine_prefix): Look at TYPE_TAG_NAME and call
8119 determine_class_name when appropriate.
8120 (determine_prefix_aux, class_name): Delete.
9d58e29d 8121 (read_namespace): Set die->type.
8176b9b8 8122
fe8bf7d7
KB
81232004-03-15 Kevin Buettner <kevinb@redhat.com>
8124
8125 * breakpoint.c (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete
8126 unused macro definition. The definition in target.h (or perhaps
8127 elsewhere) takes precedence.
8128
ed6edd9b
AC
81292004-03-15 Andrew Cagney <cagney@redhat.com>
8130
f9be684a
AC
8131 * ppc-tdep.h: Update copyright.
8132 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Change
8133 function signatures to match "regsets.h".
8134 * ppc-linux-tdep.c: Include "regset.h".
8135 (ELF_GREGSET_SIZE): Delete.
8136 (right_supply_register): New function.
8137 (ppc_linux_supply_fpregset, ppc_linux_supply_gregset): Rewrite
8138 using right_supply_register.
8139 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): New
8140 functions.
8141 (ppc64_linux_gregset, ppc32_linux_gregset): Define.
8142 (ppc_linux_init_abi): Register ppc_linux_regset_from_core_section.
8143 (_initialize_ppc_linux_tdep): Do not register
8144 ppc_linux_regset_core_fns.
8145 (ppc_linux_regset_from_core_section): Replace
8146 fetch_core_registers.
8147 (ppc_linux_regset_core_fns): Delete.
8148 * ppc-linux-nat.c: (right_fill_reg): New function.
8149 (supply_gregset): Update call to ppc_linux_supply_gregset.
8150 (fill_gregset): Clear the register set, use right_fill_reg.
8151 (supply_fpregset): Update call to ppc_linux_supply_fpregset.
8152 (fill_fpregset): Use right_fill_reg, correctly compute FP offsets.
8153
ed6edd9b
AC
8154 * rs6000-tdep.c (rs6000_register_virtual_type): Make registers
8155 unsigned.
8156
030f20e1
AC
81572004-03-15 Andrew Cagney <cagney@redhat.com>
8158
8159 * gdbarch.sh (gdbarch_data_pre_init_fytpe)
8160 (gdbarch_data_register_pre_init, gdbarch_data_post_init_fytpe)
8161 (gdbarch_data_register_post_init): Replace gdbarch_data_init_ftype
8162 and register_gdbarch_data.
8163 (deprecated_set_gdbarch_data): Rename set_gdbarch_data.
8164 (struct gdbarch_data): Replace "init" by "pre_init" and
8165 "post_init".
8166 * gdbarch.h, gdbarch.c: Re-generate.
8167 * dwarf2-frame.c (dwarf2_frame_init): Replace "gdbarch" paramter
8168 with"obstack", use OBSTACK_ZALLOC.
8169 (dwarf2_frame_ops): Delete.
8170 (dwarf2_frame_set_init_reg): Use gdbarch_data.
8171 (dwarf2_frame_init_reg): Use gdbarch_data.
8172 (_initialize_dwarf2_frame): Use gdbarch_data_register_pre_init.
8718a420 8173 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets)
030f20e1
AC
8174 (_initialize_svr4_solib): Update.
8175 * user-regs.c (_initialize_user_regs): Update.
8176 * reggroups.c (_initialize_reggroup): Update.
8177 * regcache.c (_initialize_regcache): Update.
8178 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
8179 * libunwind-frame.c (_initialize_libunwind_frame): Update.
8180 * gnu-v3-abi.c (init_gnuv3_ops): Update.
8181 * frame-unwind.c (_initialize_frame_unwind): Update.
8182 * frame-base.c (_initialize_frame_base): Update.
8183 * user-regs.c (user_reg_add): Update.
8184 * reggroups.c (reggroup_add): Update.
8185 * mips-linux-tdep.c (set_mips_linux_register_addr): Update.
8186 * libunwind-frame.c (libunwind_frame_set_descr): Update.
8187 * frame-unwind.c (frame_unwind_append_sniffer): Update.
8188 * frame-base.c (frame_base_table): Update.
8189 * remote.c (_initialize_remote): Update.
8190 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Define.
8718a420 8191
3111a3fc
AC
81922004-03-15 Andrew Cagney <cagney@redhat.com>
8193
8194 * cris-tdep.c (bfd_lookup_symbol): Delete unused function.
8195
5ecb7103
KB
81962004-03-15 Kevin Buettner <kevinb@redhat.com>
8197
8198 * Makefile.in (frv-linux-tdep.o): Add dependencies.
8199 * frv-linux-tdep.c: New file.
8200 * frv-tdep.c (struct gdbarch_tdep): Add new field
8201 ``sigcontext_reg_addr''.
8202 (frv_set_sigcontext_reg_addr, frv_sigtramp,frame_cache)
8203 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
8204 (frv_sigramp_frame_sniffer): New functions.
8205 (frv_sigtramp_frame_unwind): New static global.
8206 (frv_gdbarch_init): Hook in ABI-specific overrides. Hook up frame
8207 sniffers.
8208 * frv-tdep.h (frv_set_sigcontext_reg_addr): New function.
8209 * config/frv/frv.mt (TDEPFILES): Add frv-linux-tdep.o.
8210
1ccda5e9
KB
82112004-03-15 Kevin Buettner <kevinb@redhat.com>
8212
8213 * frv-tdep.c (frv_analyze_prologue): Terminate prologue scan,
8214 but not via a call to error(), when unable to read memory.
8215
b375a0a5
KB
82162004-03-15 Kevin Buettner <kevinb@redhat.com>
8217
8218 * frv-tdep.c (frv_call_dummy_words): Delete.
8219 (frv_frame_unwind_cache): Delete unused variable, ``prev_sp''.
8220
4fdf6121
AC
82212004-03-15 Andrew Cagney <cagney@redhat.com>
8222
8223 * infrun.c (handle_step_into_function, step_over_function): Only
8224 update and use STEP_FRAME_ID when the system is using legacy
8225 frames. Update comments.
8226
34021503
MK
82272004-03-14 Mark Kettenis <kettenis@gnu.org>
8228
187e21d1
MK
8229 * amd64-linux-tdep.h: Remove file.
8230 * amd64-linux-tdep.c: Don't include "inferior.h" and
8231 "amd64-linux-tdep.h". Include "frame.h" and "solib-svr4.h".
8232 (USER_R15, USER_R14, USER_R13, USER_R12, USER_RBP, USER_RBX)
8233 (USER_R11, USER_R10, USER_R9, USER_R8, USER_RAX, USER_RCX)
8234 (USER_RDX, USER_RSI, USER_RDI, USER_RIP, USER_CS, USER_EFLAGS)
8235 (USER_RSP, USER_SS, USER_DS, USER_ES, USER_FS, USER_GS): Remove
8236 macros.
8237 (user_to_gdb_regmap): Remove variable.
8238 (amd64_linux_gregset_reg_offset): New variable.
8239 (amd64_core_fns): Remove variable.
8240 (fetch_core_registers): Remove function.
8241 (amd64_linux_supply_gregset, amd64_linux_fill_gregset): Remove
8242 functions.
8243 (_initialize_amd64_linux_tdep): Don't set add_core_fns.
8244 * amd64-linux-nat.c: Don't include "amd64-linux-tdep.h".
8245 * Makefile.in (amd64_linux_tdep_h): Remove.
8246 (amd64-linux-nat.o): Update dependencies.
8247 (amd64-linux-tdep.o): Update dependencies.
8248
99679982
MK
8249 * amd64-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
8250 (fetch_regs, fetch_fpregs, store_regs, store_fpregs): Remove
8251 functions.
8252 (fetch_inferior_registers, store_inferior_registers): Rewrite.
8253
34021503
MK
8254 * amd64-tdep.h (amd64_fill_fxsave): Remove prototype.
8255 * amd64-tdep.c (amd64_fill_fxsave): Remove function.
8256
134d01f1
DJ
82572004-03-14 Daniel Jacobowitz <drow@mvista.com>
8258
8259 * dwarf2read.c (read_structure_type): Rename from
8718a420 8260 read_structure_scope. Don't create a symbol or call process_die.
134d01f1
DJ
8261 Return immediately if die->type is set. Call read_type_die before
8262 dwarf2_add_member_fn.
8263 (process_structure_scope): New function.
8264 (read_enumeration_type, process_enumeration_scope): New functions,
8265 broken out from read_enumeration. Don't create the enumeration
8266 type if it has already been created.
8267 (read_enumeration): Removed.
8268 (process_die): Call read_structure_type, process_structure_scope,
8269 read_enumeration_type, and process_enumeration_scope. Just call
8270 new_symbol for base and subrange types. Add a comment about other
8271 type dies.
8272 (read_type_die): Call read_enumeration_type.
8273 (add_partial_structure, new_symbol): Update comments.
8274
65760afb
SC
82752004-03-13 Stephane Carrez <stcarrez@nerim.fr>
8276
8277 * m68hc11-tdep.c (m68hc11_register_name): Get soft reg information.
8278
10f59415
SC
82792004-03-13 Stephane Carrez <stcarrez@nerim.fr>
8280
8281 * tui/tui-win.h (tui_get_cmd_list): Declare.
8282 * tui/tui-win.c (tui_command): New function.
8283 (tui_get_cmd_list): New function.
8284 (_initialize_tui_win): Moved initialization of tui command in
8285 tui_get_cmd_list.
8286
8287 * tui/tui-data.c (init_content_element): Setup new data members.
8288 (init_win_info): Likewise.
8289 (free_content_elements): Free it.
8290 * tui/tui-data.h (struct tui_data_element): Store the register
8291 content to print.
8292 (struct tui_data_info): Keep the current register group.
8293
8294 * tui/tui-layout.c (tui_set_layout): Update call to tui_show_registers.
8295
8296 * tui/tui-regs.h (tui_show_registers): Update prototype.
8297 (tui_toggle_float_regs, tui_calculate_regs_column_count): Remove.
8298 (tui_resize_all): No need to calculate anything for register window.
8299 * tui/tui-regs.c (tui_calculate_regs_column_count): Remove.
8300 (tui_set_register_element, tui_set_general_regs_content): Remove.
8301 (tui_set_special_regs_content): Remove.
8302 (tui_set_general_and_special_regs_content): Remove.
8303 (tui_set_float_regs_content): Remove.
8304 (tui_reg_value_has_changed, tui_get_register_raw_value): Remove.
8305 (tui_set_regs_content): Remove.
8306 (tui_toggle_float_regs, _tui_toggle_float_regs_command): Remove.
8307 (tui_v_show_registers_command_support): Remove.
8308 (tui_show_registers): Use a reggroup to specify the registers to show.
8309 (tui_show_register_group): New function.
8310 (tui_display_registers_from): Compute the layout of register window
8311 and refresh with new API; be sure to delete old register windows.
8312 (tui_check_register_values): Update to use tui_get_register and
8313 tui_display_data.
8314 (tui_display_register): Just refresh the register window part.
8315 (tui_register_format): Format registers and save in tui_data_element.
8316 (tui_get_register): New to combine tui_reg_value_has_changed and
8317 tui_get_register_raw_value; fix to use the new gdb API.
8318 (tui_show_float_command): Renamed tui_reg_float_command.
8319 (tui_show_general_command): Renamed tui_reg_general_command.
8320 (tui_show_special_command): Renamed tui_reg_system_command.
8321 (_initialize_tui_regs): Remove unused commands.
8322
c3364ea4
MK
83232004-03-13 Mark Kettenis <kettenis@gnu.org>
8324
27d1e716
MK
8325 * NEWS (New native configurations): Mention OpenBSD/amd64.
8326
c3364ea4
MK
8327 * config/i386/nm-fbsd.h: Include "config/nm-bsd.h".
8328 (PTRACE_ARG3_TYPE, FETCH_INFERIOR_REGISTERS, ATTACH_DETACH):
8329 Remove defines.
8330 * config/i386/nm-fbsd64.h: Likewise.
8331 * config/i386/nm-obsd.h: Likewise.
8332 * config/sparc/nm-fbsd.h: Likewise. Update copyright year.
8333 * config/alpha/nm-fbsd.h: Likewise. Update copyright year.
8334
b2d6d697
KB
83352004-03-12 Kevin Buettner <kevinb@redhat.com>
8336
8337 * frv-tdep.c (set_variant_scratch_registers): New function.
b2d6d697
KB
8338 * frv-tdep.h (scr0_regnum, scr1_regnum, scr2_regnum, scr3_regnum):
8339 New constants.
8340
76e43199
KB
8341 From Richard Sandiford <rsandifo@redhat.com>:
8342 * frv-tdep.c (frv_gdbarch_init): Add FR450 support.
8343
34ce532e
KB
83442004-03-12 Kevin Buettner <kevinb@redhat.com>
8345
8346 * frv-tdep.c, frv-tdep.h (first_gpr_regnum, sp_regnum, fp_regnum)
8347 (struct_return_regnum, last_gpr_regnum, first_fpr_regnum)
8348 (last_fpr_regnum, pc_regnum, first_spr_regnum, psr_regnum, ccr_regnum)
8349 (cccr_regnum, fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum)
8350 (tbr_regnum, brr_regnum, dbar0_regnum, dbar1_regnum, dbar2_regnum)
8351 (dbar3_regnum, lr_regnum, lcr_regnum, iacc0h_regnum, iacc0l_regnum)
8352 (last_spr_regnum, frv_num_regs, first_pseudo_regnum, iacc0_regnum)
8353 (last_pseudo_regnum, frv_num_pseudo_regs): Move constant (enum)
8354 definitions from frv-tdep.c to frv-tdep.h.
8355
c4d10515
KB
83562004-03-12 Kevin Buettner <kevinb@redhat.com>
8357
8358 Add shared library support for FR-V FDPIC ABI:
8359 * Makefile.in (solib-frv.o): Add dependencies.
8360 * frv-tdep.c (find_func_descr, frv_convert_from_func_ptr_addr):
8361 New functions.
8362 (frv_push_dummy_call): Add support for FDPIC ABI.
8363 (frv_gdbarch_init): Call set_gdbarch_convert_from_func_ptr_addr()
8364 for FDPIC ABI.
8365 * frv-tdep.h (frv_fdpic_find_global_pointer): Declare.
8366 (frv_fdpic_find_canonical_descriptor): Declare.
8367 * solib-frv.c: New file.
8368 * config/frv/frv.mt (TDEPFILES): Add solib.o and solib-frv.o.
8369 * config/frv/tm-frv.h (solib.h): Include.
8370
ed1bd989
KB
83712004-03-12 Kevin Buettner <kevinb@redhat.com>
8372
8373 * Makefile.in (elf_frv_h, frv_tdep_h): Define.
8374 (frv-tdep.o): Update dependencies.
8375 * frv-tdep.h: New file.
8376 * frv-tdep.c (elf-bfd.h, elf/frv.h, osabi.h, frv-tdep.h): Include.
8377 (fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum): New
8378 constants.
8379 (struct gdbarch_tdep): Add new member ``frv_abi''.
8380 (frv_abi, frv_fdpic_loadmap_addresses, set_variant_abi_fdpic): New
8381 functions.
8382 (new_variant): Set ``frv_abi'' field.
8383 (gdb_arch_init): Detect FDPIC executables.
8384
82b38f72
MK
83852004-03-12 Mark Kettenis <kettenis@gnu.org>
8386
8387 * solib-svr4.h: Change SOLIB_SVR4 wrapper into SOLIB_SVR4_H
8388 wrapper.
8389
db1ea9ba
AC
83902004-03-11 Andrew Cagney <cagney@redhat.com>
8391
8392 * solib-svr4.h: Add #ifndef SOLIB_SVR4 wrapper.
8393
f8766ec1
KB
83942004-03-11 Kevin Buettner <kevinb@redhat.com>
8395
8396 * solist.h (master_so_list): New function.
8397 * solib.c (master_so_list): Likewise.
8398 * solib-svr4.c (enable_break): Iterate over so_list entries
8399 obtained from master list instead of entries obtained directly
8400 via svr4_current_sos().
8401
523f6a27
BE
84022004-03-10 Ben Elliston <bje@gnu.org>
8403
8404 * MAINTAINERS: Update my mail address.
8405
37814c18
KI
84062004-03-10 Kei Sakamoto <sakamoto.kei@renesas.com>
8407
8408 * remote-m32r-sdi.c: Support hardware watchpoint.
8409
8b9740d8
DJ
84102004-03-09 Daniel Jacobowitz <drow@mvista.com>
8411
8412 * user-regs.c: Update copyright years.
8413 (struct user_regs): Rename to gdb_user_regs.
8414 (append_user_reg, builtin_user_regs, user_regs_init)
8415 (user_reg_add, user_reg_map_name_to_regnum)
8416 (usernum_to_user_reg): Update.
8417
4bb7a0a7
DJ
84182004-03-09 Daniel Jacobowitz <drow@mvista.com>
8419
8420 * dwarf2read.c (skip_leb128, peek_die_abbrev, skip_one_die)
8421 (skip_children): New functions.
8422 (locate_pdi_sibling): Call skip_children.
8423
44e1a9eb
DJ
84242004-03-09 Daniel Jacobowitz <drow@mvista.com>
8425
8426 * arm-tdep.c (arm_use_struct_convention): Look through typedefs.
8427 * gdbtypes.c (check_typedef): Update comments.
8428
f3dd6933
DJ
84292004-03-09 Daniel Jacobowitz <drow@mvista.com>
8430
8431 * dwarf2read.c (struct comp_unit_head): Remove dwarf2_abbrevs array.
8432 (struct dwarf2_cu): Add abbrev_obstack and dwarf2_abbrevs
8433 pointer. Update comment about comp_unit_head.
8434 (struct abbrev_info): Shorten two int flags.
8435 (dwarf_alloc_abbrev): Take a CU argument.
8436 (dwarf2_build_psymtabs_hard): Call dwarf2_free_abbrev_table
8437 each time through the loop. Update cleanup argument.
8438 (psymtab_to_symtab_1): Update cleanup call.
8439 (dwarf2_read_abbrevs, dwarf2_alloc_abbrev): Allocate on the
8440 abbrev_obstack.
8441 (dwarf2_free_abbrev_table): Renamed from dwarf2_empty_abbrev_table.
8442 Just call obstack_free and clear the pointer.
8443
b40c7d58
DJ
84442004-03-09 Daniel Jacobowitz <drow@mvista.com>
8445
8446 * infrun.c (handle_inferior_event): Remove short-circuit code for
8447 events in a different thread.
8448
333dabeb
DJ
84492004-03-09 Daniel Jacobowitz <drow@mvista.com>
8450
8451 * target.c (debug_to_xfer_memory): If targetdebug is 1, don't
8452 print the whole transfer.
8453 (initialize_targets): Update description of "set debug target".
8454
aa17d93e
DJ
84552004-03-09 Daniel Jacobowitz <drow@mvista.com>
8456
8457 * arm-tdep.c (thumb_get_next_pc): Handle Thumb BLX.
8458
0b71f08f
NW
84592004-03-08 Nathan J. Williams <nathanw@wasabisystems.com>
8460
8461 * MAINTAINERS (write after approval): Add myself.
8462
3930f270
CV
84632004-03-08 Corinna Vinschen <vinschen@redhat.com>
8464
8465 * sh-tdep.c (sh_print_registers_info): Use for loop.
8466 Don't skip multiple registers when a float register is encountered.
8467
a2b4a96c
CV
84682004-03-08 Corinna Vinschen <vinschen@redhat.com>
8469
8470 Fix PR tdep/1291.
8471 * sh-tdep.c (sh_analyze_prologue): Align PC relative addressing
8472 to official SH documentation.
8473
f15a4bc0
AC
84742004-03-07 Andrew Cagney <cagney@redhat.com>
8475
8476 * ppc-linux-nat.c (ppc_ptrace_cannot_fetch_store_register): Delete
8477 unused function.
8478
9498281f
DJ
84792004-03-07 Daniel Jacobowitz <drow@mvista.com>
8480
8481 * arm-tdep.c (thumb_get_next_pc): Handle BX.
8482 (arm_get_next_pc): Handle BX and BLX.
8483
449e1137
AC
84842004-03-07 Andrew Cagney <cagney@redhat.com>
8485
eded0a31
AC
8486 * hppa-tdep.c: Replace DEPRECATED_FP_REGNUM with HPPA_FP_REGNUM,
8487 FP0_REGNUM with HPPA_FP0_REGNUM, and SP_REGNUM with
8488 HPPA_SP_REGNUM.
8489 (hppa_register_raw_size, hppa_register_byte, hppa_read_fp)
8490 (hppa_target_read_fp): Delete.
8491 (hppa_gdbarch_init): Do not set deprecated register_raw_size,
8492 register_virtual_size, max_register_raw_size,
8493 max_register_virtual_size, register_byte, register_size,
8494 target_read_fp, fp_regnum, and register_bytes. Set register_type
8495 instead of register_virtual_type.
8496 (hppa32_register_type, hppa64_register_type): Replace
8497 hppa32_register_virtual_type and hppa64_register_virtual_type.
8498 * config/pa/tm-hppa.h (HPPA_FP0_REGNUM, HPPA_SP_REGNUM)
8499 (HPPA_FP_REGNUM): Define.
8500
f5f907e2
AC
8501 * hppa-tdep.c (hppa_gdbarch_init): Add missing "break".
8502
69b4bbe4
AC
8503 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO)
8504 (pa_do_registers_info): Delete.
8505 * hppa-tdep.c (pa_do_registers_info, pa_do_strcat_registers_info)
8718a420 8506 (pa_print_registers, pa_print_fp_reg, pa_strcat_registers)
69b4bbe4 8507 (pa_strcat_fp_reg, pa_register_look_aside): Delete.
f5f907e2 8508
78161e48
AC
8509 * infcall.c (legacy_push_dummy_code): Delete #ifdef
8510 GDB_TARGET_IS_HPPA code.
8511 * config/pa/tm-hppa.h (DEPRECATED_FIX_CALL_DUMMY)
8718a420 8512 (hppa_fix_call_dummy, DEPRECATED_CALL_DUMMY_HAS_COMPLETED)
78161e48
AC
8513 (DEPRECATED_DUMMY_WRITE_SP, CALL_DUMMY): Delete.
8514 * config/pa/tm-hppa64.h (CALL_DUMMY): Delete.
8718a420
RM
8515 * hppa-tdep.c (hppa_frame_chain, hppa_frame_chain_valid)
8516 (hppa_push_dummy_frame, hppa_pop_frame, hppa_push_arguments)
8517 (hppa_fix_call_dummy, hppa64_stack_align, hppa_frame_saved_pc)
78161e48 8518 (hppa_init_extra_frame_info, hppa_saved_pc_after_call)
8718a420
RM
8519 (hppa64_call_dummy_breakpoint_offset, hppa_frame_init_saved_regs)
8520 (hppa_frameless_function_invocation, hppa64_store_return_value)
8521 (hppa_store_struct_return, hppa64_extract_return_value)
78161e48 8522 (hppa64_use_struct_convention, hppa_frame_find_saved_regs)
8718a420 8523 (hppa32_call_dummy_length, hppa64_call_dummy_length)
78161e48 8524 (find_dummy_frame_regs, FUNC_LDIL_OFFSET, FUNC_LDO_OFFSET)
8718a420
RM
8525 (find_proc_framesize, deposit_21, restore_pc_queue)
8526 (find_return_regnum, pc_in_interrupt_handler, deposit_14)
210197d2 8527 (rp_saved, pc_in_linker_stub): Delete.
78161e48 8528
782eae8b
AC
8529 Unconditionally enable 64-bit frame and ABI code.
8530 * hppa-tdep.c (hppa_gdbarch_init): Do not set deprecated
8531 call_dummy_breakpoint_offset, call_dummy_length, stack_align,
8532 push_dummy_frame, fix_call_dummy, push_arguments,
8533 call_dummy_location, extract_return_value, use_struct_convention,
8534 store_return_value, store_struct_return, saved_pc_after_call,
8535 init_frame_pc, frame_init_saved_regs, init_extra_frame_info,
8536 frame_chain, frame_chain_valid, frameless_function_invocation,
8537 frame_saved_pc, and pop_frame.
78161e48 8538
449e1137
AC
8539 * hppa-tdep.c: Replace PC_REGNUM with PCOQ_HEAD_REGNUM.
8540 (hppa64_return_value, hppa64_push_dummy_call): Rewrite.
8541 (hppa_gdbarch_init): Do not set PC_REGNUM.
8542
12507572
MK
85432004-03-06 Mark Kettenis <kettenis@gnu.org>
8544
8545 * config/alpha/tm-fbsd.h: Remove file.
8546 * config/alpha/fbsd.mt: Tweak comment.
8547 (TM_FILE): Set to tm-alpha.h.
8548
c107cc1b
AC
85492004-03-05 Andrew Cagney <cagney@redhat.com>
8550
8551 * infrun.c (step_over_function): When non-legacy code, and no
8552 step_frame_id, use the unwinder to get the caller's frame ID.
8553
f2e7c15d
MK
85542004-03-05 Mark Kettenis <kettenis@gnu.org>
8555
8b0c3633
MK
8556 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Register
8557 i386bsd_core_osabi_sniffer for bfd_arch_i386 instead of
8558 bfd_arch_unknown. Adjust comment.
8559
f2e7c15d
MK
8560 * i386-nat.c: Fix typo in comment. Re-introduce paranoiac.
8561 * i386obsd-tdep.c: Correct spelling in comment.
8562 * i386nbsd-tdep.c: Correct spelling in comment.
8563 * sparc-tdep.c: Correct spelling in comments.
8564
1198ecbe
DC
85652004-03-05 David Carlton <carlton@kealia.com>
8566
8567 * cp-namespace.c (cp_lookup_transparent_type_loop): Fix recursion
8568 bug.
8569
9eb42ed1
MK
85702004-03-05 Mark Kettenis <kettenis@gnu.org>
8571
8572 * sparc-tdep.c: Fix typo in comment.
8573
52b5e991
JB
85742004-03-04 J. Brobecker <brobecker@gnat.com>
8575
8576 * hppa-tdep.c (hppa_frame_cache): Avoid undefined return value.
8577
d8151005
DJ
85782004-03-04 Daniel Jacobowitz <drow@mvista.com>
8579
8580 * dwarf2read.c: Add comment describing memory lifetimes.
8581 (struct dwarf2_pinfo): Update comment.
8582 (dwarf2_add_field, dwarf2_add_member_fn, read_structure_scope)
8583 (read_enumeration, new_symbol): Don't use obsavestring.
8584
cbeae229
MK
85852004-03-04 Mark Kettenis <kettenis@gnu.org>
8586
722d18c2
MK
8587 * amd64-linux-nat.c (fill_fpregset): Call amd64_colletc_fxsave
8588 instead of amd64_fill_fxsave.
8589 * amd64bsd-nat.c (store_inferior_registers): Likewise.
8590 * amd64fbsd-nat.c (fill_fpregset): Likewise.
8591
cbeae229
MK
8592 * sparc-tdep.c (sparc_frame_cache): Don't bail out if %fp is zero.
8593 Reorganize code a bit.
8594
b4206d25
OF
85952004-03-04 Orjan Friberg <orjanf@axis.com>
8596
8597 * cris-tdep.c (cris_scan_prologue): Save the frame pointer's offset
8718a420
RM
8598 when the frame pointer is pushed. Don't set the frame pointer's
8599 address on the stack unless it's actually located there.
b4206d25
OF
8600 Set the SRP's address on the stack correctly when the PC is still in
8601 the prologue.
8602 (cris_return_value): New function.
8603 (cris_gdbarch_init): Clear deprecated store_return_value,
8604 extract_return_value.
8605
49b0b195
JB
86062004-03-02 Jim Blandy <jimb@redhat.com>
8607
8608 * stabsread.c (reg_value_complaint): The maximum register number
8609 is one less than the number of registers.
8610
e9ff708b
AC
86112004-03-02 Andrew Cagney <cagney@redhat.com>
8612
8613 * i386-tdep.h (enum i386_regnum): Add I386_DS_REGNUM,
8614 I386_ES_REGNUM, I386_FS_REGNUM, and I386_GS_REGNUM. Remove
8615 trailing comma and redundant assignment of I386_ST0_REGNUM.
8616 * amd64-nat.c (amd64_collect_native_gregset): Zero-extend the
8617 32-bit segment registers.
8618
d4715e41
AC
86192004-03-01 Andrew Cagney <cagney@redhat.com>
8620
8621 * rs6000-tdep.c (rs6000_init_frame_pc_first): Fix compiler error,
8622 use frame_relative_level and get_next_frame.
8623
3ce2bf18
AC
86242004-02-29 Andrew Cagney <cagney@redhat.com>
8625
8626 * rs6000-tdep.c (rs6000_init_frame_pc_first): New function.
8627 (rs6000_gdbarch_init): Set deprecated_init_frame_pc_first.
8628 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST):
8629 Delete macro.
8630
2da6aac3
DJ
86312004-02-29 Daniel Jacobowitz <drow@mvista.com>
8632
8633 * inflow.c (terminal_inferior): Don't give up the terminal if we
8634 previously couldn't get the inferior's terminal state.
8635
6ba34a8d
DJ
86362004-02-29 Daniel Jacobowitz <drow@mvista.com>
8637
8638 * regcache.c (read_pc_pid): Restore inferior_ptid after reading
8639 PC_REGNUM.
8640
faae5abe
AC
86412004-02-28 Andrew Cagney <cagney@redhat.com>
8642
8643 * NEWS: Refer to GDB 6.1.
8644 * README: Refer to GDB 6.1.
8645 * PROBLEMS: Refer to GDB 6.1.
8646
2227a3c5
DJ
86472004-02-28 Daniel Jacobowitz <drow@mvista.com>
8648
8649 * thread-db.c (disable_thread_signals): Remove unused function.
8650
80571bff
MK
86512004-02-28 Mark Kettenis <kettenis@gnu.org>
8652
041bd74b
MK
8653 * amd64-nat.c: Include "gdb_string.h".
8654 (amd64_collect_native_gregset): Zero-extend the 32-bit
8655 general-purpose registers and %eip.
8656
3c017e40
MK
8657 * amd64-tdep.h: (amd64_collect_fxsave): New prototype.
8658 * amd64-tdep.c (amd64_collect_fxsave): New function.
8659 (amd64_fill_fxsave): Simply call amd64_collect_fxsave.
8660
80571bff
MK
8661 * i387-tdep.h: Update copyright year.
8662 (i387_collect_fxsave): New prototype.
8663 * i387-tdep.c: Update copyright year.
8664 (i387_collect_fxsave): New function containing most of the code
8665 from i387_fill_fxsave.
8666 (i387_fill_fxsave): Call i387_collect_fxsave.
8667
50d71875
AC
86682004-02-28 Andrew Cagney <cagney@redhat.com>
8669
8670 * amd64-linux-nat.c (ps_get_thread_area): When architecture is
8671 i386 use PTRACE_GET_THREAD_AREA. Suggested by Roland McGrath.
8672
4a28816e
MK
86732004-02-28 Mark Kettenis <kettenis@gnu.org>
8674
8675 * amd64-tdep.c (amd64_frame_cache): Fix comment.
8676
dbda9972
AC
86772004-02-28 Andrew Cagney <cagney@redhat.com>
8678
8679 * utils.c: Use "", instead of <>, to include readline.
8680 tui/tui-win.c, tui/tui.c, tui/tui-hooks.c: Ditto.
8681 * tracepoint.c, top.c, symmisc.c, symfile.c: Ditto.
8682 * source.c, solib.c, exec.c, event-top.c: Ditto.
8683 * corelow.c, completer.c, cli/cli-setshow.c: Ditto.
8684 * cli/cli-dump.c, cli/cli-cmds.c: Ditto.
8685 * Makefile.in: Update all dependencies.
8686 (readline_tilde_h, readline_history_h): Define.
8687 (readline_headers): Delete.
8688
83277a99
MK
86892004-02-28 Mark Kettenis <kettenis@gnu.org>
8690
91ae4303
MK
8691 * config/djgpp/fnchange.lst: Rename "config/i386/nm-linux64.h" to
8692 "config/i386/nm-lx64.h" and "config/i386/tm-linux64.h" to
8693 "config/i386/tm-lx64.h".
8694
83277a99
MK
8695 * config/djgpp/fnchange.lst: Rename "amd64-linux-tdep.c" to
8696 "amd64-ltdep.c" and "amd64-linux-nat.c" to "amd64-lnat.c". Remove
8697 rules for "x86-64-linux-tdep.c" and "x86-64-linux-nat.c".
8698
6e1d7d6c
AC
86992004-02-28 Andrew Cagney <cagney@redhat.com>
8700
ecc9ac84
AC
8701 * dwarf2-frame.h (struct gdbarch): Add opaque declaration.
8702
6e1d7d6c
AC
8703 * breakpoint.c (_initialize_breakpoint): Use
8704 "add_setshow_auto_boolean_cmd. Better word-wrap help messages.
8705 Add help to show command.
8706
9671aeef
MK
87072004-02-28 Mark Kettenis <kettenis@gnu.org>
8708
7fa2737c
MK
8709 * i386-nat.c: Reformat to be closer to coding standards.
8710 (i386_handle_nonaligned_watchpoint): Rename local variable `rv' to
8711 `retval'. Make variables `align' and `size' local to while-loop.
8712 (i386_stopped_data_address): Rename local variable `ret' to `addr'.
8713 (_initialize_i386_nat): New prototype.
8714
9671aeef
MK
8715 * tui/tui.c: Include <readline/readline.h> instead of
8716 "readline/readline.h". Include it after <term.h> and
8717 "gdb_curses.h".
8718
fca7aa43
AC
87192004-02-27 Andrew Cagney <cagney@redhat.com>
8720
412275d5
AC
8721 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always use
8722 the new frame unwind code.
8723 (hppa_frame_cache): Use PCOQ_HEAD_REGNUM instead of PC_REGNUM.
8724 (hppa_frame_prev_register): Compute PCOQ_TAIL_REGNUM from
8725 PCOQ_HEAD_REGNUM.
8726
fca7aa43
AC
8727 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always
8728 "return_value" and "push_dummy_call".
8729 (hppa32_use_struct_convention): Delete unused function.
8730 (hppa32_store_return_value): Delete unused function.
8731 (hppa32_extract_return_value): Delete unused function.
8732 (hppa32_stack_align): Delete function.
8733
e6a8a7d2
EZ
87342004-02-27 Eli Zaretskii <eliz@elta.co.il>
8735
8736 * coffread.c (enter_linenos): Don't let rawptr reference memory
8737 outside linetab[]'s limits.
8738
1797a8f6
AC
87392004-02-27 Andrew Cagney <cagney@redhat.com>
8740
8741 * hppa-tdep.c (hppa32_push_dummy_call): Fix code reserving
8742 inferior stack space - the stack needs to grow upwards.
8743 (hppa32_frame_align): New function.
8744 (hppa64_frame_align): Replace hppa_frame_align.
8745 (hppa_gdbarch_init): Update.
8746
2e4b5889
OF
87472004-02-26 Orjan Friberg <orjanf@axis.com>
8748
8749 * cris-tdep.c (frame_unwind.h, frame-base.h, trad-frame.h)
8750 (dwarf2-frame.h): Include.
8751 (enum cris_regnums): New enum CRIS_FP_REGNUM.
8752 Remove static variables related to ABI setting.
8753 (struct gdbarch_tdep): Remove cris_abi member.
8754 (struct frame_extra_info): Remove.
8755 (cris_unwind_cache, stack_item): New structs.
8756 (cris_frame_unwind, cris_frame_base): New variables.
8757 (push_stack_item, pop_stack_item)
8758 (cris_frame_unwind_cache, cris_frame_this_id)
8759 (cris_frame_prev_register, cris_unwind_dummy_id, cris_frame_align)
8760 (cris_push_dummy_code, cris_push_dummy_call, cris_frame_sniffer)
8761 (cris_frame_base_address, cris_scan_prologue, cris_unwind_pc)
8762 (cris_unwind_sp, cris_store_return_value, cris_extract_return_value)
8763 (cris_reg_struct_has_addr): New functions.
8764 (cris_examine, cris_frame_init_saved_regs, cris_frame_chain)
8718a420 8765 (cris_frame_saved_pc, cris_saved_pc_after_call,
2e4b5889
OF
8766 (cris_store_struct_return, cris_frameless_function_invocation)
8767 (cris_pop_frame, cris_skip_prologue_main)
8768 (cris_abi_original_store_return_value)
8769 (cris_abi_v2_store_return_value)
8770 (cris_abi_original_extract_return_value)
8771 (cris_abi_v2_extract_return_value)
8772 (cris_abi_original_reg_struct_has_addr)
8773 (cris_abi_v2_reg_struct_has_addr)
8774 (cris_abi_original_push_arguments, cris_abi_v2_push_arguments)
8775 (cris_push_return_address, cris_abi_update): Remove.
8776 (_initialize_cris_tdep): Remove ABI command.
8777 (cris_dump_tdep): Ditto.
8718a420 8778 (cris_gdbarch_init): Remove ABI command.
2e4b5889
OF
8779 Set store_return_value, extract_return_value, push_dummy_code,
8780 push_dummy_call, frame_align, unwind_pc, unwind_sp, unwind_dummy_id,
8781 frame_unwind_append_sniffer, frame_base_set_default.
8782 Clear deprecated init_frame_pc, push_arguments, store_return_value,
8783 extract_return_value, fp_regnum, pc_in_call_dummy, call_dummy_words,
8784 sizeof_call_dummy_words, get_saved_register, push_return_address,
8718a420 8785 pop_frame, store_struct_return, frame_init_saved_regs,
2e4b5889
OF
8786 init_extra_frame_info, frameless_function_invocation, frame_chain,
8787 frame_saved_pc, saved_pc_after_call, save_dummy_frame_tos,
8788 dummy_write_sp.
8718a420 8789
6b9acc27
JJ
87902004-02-26 Jeff Johnston <jjohnstn@redhat.com>
8791
8792 * valprint.h (print_hex_chars, print_char_chars): New prototypes.
8793 * valprint.c (print_hex_chars): Change from static to external.
8794 (print_char_chars): New function.
8795 * printcmd.c (print_scalar_formatted): For integer and enum types
8796 that are longer than LONGEST, perform processing via appropriate
8797 print_*_chars routines.
8798
a431654a
AC
87992004-02-26 Andrew Cagney <cagney@redhat.com>
8800
8801 * Makefile.in: Update dependencies.
8802 Changes from Ulrich Weigand,
8803 * s390-tdep.c: Include "dwarf2-frame.h".
8804 (s390_dwarf2_frame_init_reg): New function.
8805 (s390_gdbarch_init): Install dwarf2_frame_sniffer and
8806 dwarf2_frame_base_sniffer. Call dwarf2_frame_set_init_reg.
8807
fa8d40ab
JJ
88082004-02-26 Jeff Johnston <jjohnstn@redhat.com>
8809
8810 * breakpoint.c (pending_break_support): New setting variable.
8811 (break_command_1): Account for pending_break_support setting
8812 when creating pending breakpoints.
8813 (set_breakpoint_cmd, show_breakpoint_cmd): New functions.
8814 (_initialize_breakpoint): Add "set breakpoint pending" and
8815 "show breakpoint pending" commands.
8816
0dcd613f
AC
88172004-02-26 Andrew Cagney <cagney@redhat.com>
8818
8819 Fix PR i18n/1570.
8820 * charset.c (backslashable, backslashed, represented): Remove 'e'
8821 from list of escaped characters, not part of ISO-C.
8822
479272a3
JB
88232004-02-25 J. Brobecker <brobecker@gnat.com>
8824
8825 From Peter Schauer <schauer@pdf.de>:
8826 * tui/tui.c: Move system header includes after local includes.
8827 Fixes a build failure on solaris systems.
8828
7613d933
JB
88292004-02-25 J. Brobecker <brobecker@gnat.com>
8830
8831 * configure.in: Refine the previous change.
8832 * configure: Regenerate.
8833
9c1488cb
MK
88342004-02-25 Mark Kettenis <kettenis@gnu.org>
8835
8836 * amd64-tdep.h: Renamed from x86-64-tdep.h.
8837 * amd64-tdep.c: Renamed from x86-64-tdep.c. Include
8838 "amd64-tdep.h" instead of "x86-64-tdep.h".
8839 * amd64-nat.c: Include "amd64-tdep.h" instead of "x86-64-tdep.h".
8840 * amd64-linux-tdep.h: Renamed from x86-64-linux.h.
8841 * amd64-linux-tdep.c: Renamed from x86-64-linux-tdep.c. Include
8842 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
8843 and "x86-64-tdep.c".
8844 * amd64-linux-nat.c: Renamed from x86-64-linux-nat.c. Include
8845 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
8846 and "x86-64-tdep.c".
8847 * amd64bsd-nat.c: Update copyright year.
8848 Include "amd64-tdep.h" instead of "x86-64-tdep.h".
8849 * amd64fbsd-tdep.c: Include "amd64-tdep.h" instead of
8850 "x86-64-tdep.h".
8851 * amd64fbsd-nat.c: Include "amd64-tdep.h" instead of
8852 "x86-64-tdep.h".
8853 * amd64nbsd-tdep.c: Include "amd64-tdep.h" instead of
8854 "x86-64-tdep.h".
8855 * amd64nbsd-nat.c: Include "amd64-tdep.h" instead of
8856 "x86-64-tdep.h".
8857 * amd64obsd-tdep.c: Include "amd64-tdep.h" instead of
8858 "x86-64-tdep.h".
8859 * amd64obsd-nat.c: Include "amd64-tdep.h" instead of
8860 "x86-64-tdep.h".
8718a420 8861 * configure.host: (x86_64-*-linux*): Set gdb_target to linux64.
9c1488cb
MK
8862 * configure.tgt (x86_64-*-linux*): Set gdb_target to linux64.
8863 * Makefile.in (amd64_linux_tdep_h): Renamed from
8864 x86_64_linux_tdep_h.
8865 (amd64_tdep_h): Renamed from x86_64_tdep_h.
8866 (amd64bsd-nat.o, amd64fbsd-nat.o, amd64fbsd-tdep.o, amd64-nat.o)
8867 (amd64nbsd-nat.o, amd64nbsd-tdep.o, amd64obsd-nat.o)
8868 (amd64obsd-tdep.o): Update dependencies.
8869 (amd64-tdep.o, amd64-linux-nat.o, amd64-linux-tdep.o): New
8870 dependencies.
8871 (x86-64-linux-nat.o, x86-64-linux-tdep.o, x86-64-tdep.o): Remove
8872 dependencies.
8873 (ALLDEPFILES): Add amd64-tdep.c, amd64obsd-nat.c, amd64obsd-nat.c,
8874 amd64-linux-nat.c amd64-linux-tdep.c.
8875 * config/i386/tm-linux64.h: Renamed from tm-x86-64linux.h
8876 * config/i386/nm-linux64.h: Renamed from nm-x86-64linux.h.
8877 * config/i386/linux64.mt: Renamed from x86-64linux.mt.
8878 (TDEPFILES): Replace x86-64-tdep.o and x86-64-linux-tdep.o with
8879 amd64-tdep.o and amd64-linux-tdep.o.
8880 (TM_FILE): Set to tm-linux64.h.
8881 * config/i386/linux64.mh: Renamed from x86-64linux.mh.
8882 (NAT_FILE): Set to nm-linux64.h.
8883 (NATDEPFILES): Replace x86-64-linux-nat.o with amd64-linux-nat.o.
8884 * config/i386/fbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
8885 amd64-tdep.o.
8886 * config/i386/nbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
8887 amd64-tdep.o.
8888 * config/i386/obsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
8889 amd64-tdep.o.
8890
4b8dad4a
RM
88912004-02-25 Roland McGrath <roland@redhat.com>
8892
8893 * remote.c (remote_protocol_qPart_auxv): New variable.
8894 (init_all_packet_configs): Initialize it.
8895 (set_remote_protocol_qPart_auxv_packet_cmd): New function.
8896 (show_remote_protocol_qPart_auxv_packet_cmd): New function.
8897 (show_remote_cmd): Call it.
8898 (_initialize_remote): Initialize commands.
8899 (remote_xfer_partial): If enabled, use qPart:auxv:read:... query to
8900 service TARGET_OBJECT_AUXV requests.
8901
66745969
JB
89022004-02-25 J. Brobecker <brobecker@gnat.com>
8903
8904 * configure.in: Make sure that the wborder function is available.
8905 Otherwise, search for it in the cur_colr library.
8906 * configure: Regenerate.
8907
79508e1e
AC
89082004-02-25 Andrew Cagney <cagney@redhat.com>
8909
8910 * hppa-tdep.c (hppa32_push_dummy_call): Rewrite.
8911
571ee600
MK
89122004-02-25 Mark Kettenis <kettenis@gnu.org>
8913
8914 * config/i386/tm-x86-64linux.h: Tweak comments.
8915
2b1b322f 89162004-02-25 Richard Sandiford <rsandifo@redhat.com>
ad74788f
RS
8917
8918 * MAINTAINERS: Add self to write-after-approval list.
8919
4d2acc65
AC
89202004-02-25 Andrew Cagney <cagney@redhat.com>
8921
4b8dad4a 8922 PR cli/1566. Problem found, and fix suggested by David Allan.
4d2acc65
AC
8923 * cli/cli-script.c (execute_control_command): Unconditionally
8924 install a cleanup. Default "ret" to "invalid_control". Use
8925 "break" instead of "return" to escape from the switch.
8926
4cfcaf21
JB
89272004-02-24 J. Brobecker <brobecker@gnat.com>
8928
8929 * tui/tui-disasm.c: %s/lines/asm_lines/g to avoid a collision
8930 with the lines macro defined in term.h on AiX.
8931 * tui/tui-regs.c: %s/label_width/tui_label_width/g, to avoid
8932 a collision with the label_width macro defined in term.h on AiX.
8933
54a5c8d8
KB
89342004-02-23 David Mosberger <davidm@hpl.hp.com>
8935
8936 Committed by Kevin Buettner <kevinb@redhat.com>.
8937
8938 * ia64-tdep.h (ia64_write_pc, ia64_linux_write_pc): Declare.
8939 * ia64-tdep.c (ia64_write_pc): Make it a global function.
8940 (ia64_gdbarch_init): For Linux targets, use ia64_linux_write_pc()
8941 instead of ia64_write_pc().
8942 * ia64-linux-tdep.c (regcache.h): Include.
8943 (ia64_linux_write_pc): New function.
4b8dad4a 8944
8a1dac83
RM
89452004-02-23 Roland McGrath <roland@redhat.com>
8946
8947 * auxv.c (info_auxv_command): Fix typos in error messages.
8948
90f90721
MK
89492004-02-23 Mark Kettenis <kettenis@gnu.org>
8950
8a1dac83 8951 * x86-64-tdep.h: Tweak comment.
90f90721
MK
8952 (enum amd64_regnum): New.
8953 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM)
8954 (X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM)
8955 (X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM)
8956 (X86_64_XMM1_REGNUM): Removed.
8957 (AMD64_NUM_GREGS): Renamed from X86_64_NUM_GREGS.
8958 (amd64_init_abi, amd64_supply_fxsave, amd64_fill_fxsave): Adjust
8959 prototypes for renamed functions.
8960 * x86-64-tdep.c: Fix typo.
8961 (amd64_dwarf_regmap): Use constants from `enum amd64_regnum' for
8962 register numbers.
8963 (amd64_return_value, amd64_push_arguments, amd64_push_dummy_call):
8964 Use constants from `enum amd64_regnum' for register numbers.
8965 (AMD64_NUM_SAVED_REGS): Adjust for renamed macros.
8966 (amd64_analyze_prologue, amd64_frame_cache,
8967 amd64_sigtramp_frame_cache): Use constants from `enum
8968 amd64_regnum' for register numbers.
8969 (amd64_supply_fpregset): Adjust for renamed functions.
8970 (amd64_init_abi): Rename from x86_64_init_abi. Use constants from
8971 `enum amd64_regnum' for register numbers.
8972 (I387_ST0_REGNUM): Use constant from `enum amd64_regnum'.
8973 (amd64_supply_fxsave): Rename from x86_64_supply_fxsave.
8974 (amd64_fill_fxsave): Rename fro x86_64_fill_fxsave.
8975 * x86-64-linux-tdep.c (amd64_linux_supply_gregset)
8976 (amd64_linux_fill_gregset): Adjust for renamed macros.
8977 (fetch_core_registers): Adjust for renamed functions.
8978 (amd64_linux_init_abi): Adjust for renamed functions.
8979 * x86-64-linux-nat.c (supply_gregset, fill_gregset): Adjust for
8980 renamed functions.
8981 * amd64-nat.c: Adjust for renamed macros.
8982 * amd64bsd-nat.c (fetch_inferior_registers)
8983 (store_inferior_registers): Use constants from `enum amd64_regnum'
8984 for register numbers. Adjust for renamed variables.
8985 * amd64fbsd-nat.c (supply_gregset, fill_gregset): Adjust for
8986 renamed variables.
8987 (_initialize_amd64fbsd_nat): Use constants from `enum
8988 amd64_regnum' for register numbers.
8989 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use constants from
8990 `enum amd64_regnum' for register numbers.
8991 (amd64fbsd_init_abi): Adjust for renamed functions.
8992 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Use constants from
8993 `enum amd64_regnum' for register numbers.
8994 (amd64nbsd_init_abi): Adjust for renamed functions.
8995 (_initialize_amd64nbsd_ndep): Adjust for renamed macros.
8996 * amd64obsd-tdep.c (amd64obsd_sigcontext_addr): Use constants from
8997 `enum amd64_regnum' for register numbers.
8998 (amd64obsd_init_abi): Adjust for renamed functions.
8999 (_initialize_amd64obsd_ndep): Adjust for renamed macros.
9000
d5479188
JJ
90012004-02-23 Jeff Johnston <jjohnstn@redhat.com>
9002
9003 * breakpoint.c (print_one_breakpoint): Do not output spaces
9004 after printing <PENDING> for a pending breakpoint.
9005
81cb7cc9
JJ
90062004-02-23 Jeff Johnston <jjohnstn@redhat.com>
9007
9008 * printcmd.c (print_scalar_formatted): Initialize val_long
9009 to remove compiler warning message.
9010
cbdeadca
JJ
90112004-02-23 Jeff Johnston <jjohnstn@redhat.com>
9012
9013 * defs.h (nquery, yquery): New prototypes.
9014 * breakpoint.c (break_command_1): Use new nquery interface.
9015 * utils.c (defaulted_query, nquery, yquery): New functions.
9016
da6bab63
AC
90172004-02-23 Andrew Cagney <cagney@redhat.com>
9018
2f690297
AC
9019 * hppa-tdep.c (hppa_frame_align): New function.
9020 (hppa32_push_dummy_call): New function.
9021 (hppa64_push_dummy_call): New function.
9022 (hppa_gdbarch_init): Set frame_align and push_dummy_call; keep
9023 disabled.
8a1dac83 9024
da6bab63
AC
9025 * infcall.c (legacy_push_dummy_code): Don't call deprecated
9026 FIX_CALL_DUMMY when push_dummy_call is available.
9027 (call_function_by_hand, push_dummy_code): Ditto.
9028
abf9b42d
AC
90292004-02-22 Andrew Cagney <cagney@redhat.com>
9030
9031 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Delete macro.
9032 (DEPRECATED_PC_IN_CALL_DUMMY): Delete macro.
9033 (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete macro.
9034 * hppa-tdep.c (hppa_gdbarch_init): Clear deprecated
9035 use_generic_dummy_frames, set deprecated pc_in_call_dummy, set
9036 call_dummy_location to ON_STACK.
9037
10fc94a4
MK
90382004-02-22 Mark Kettenis <kettenis@gnu.org>
9039
51433e4b
MK
9040 * x86-64-linux-tdep.c: Tweak comment.
9041 (amd64_linux_supply_gregset): Renamed from
9042 x86_64_linux_supply_gresget.
9043 (amd64_linux_fill_gregset): Renamed from
9044 x86_64_linux_fill_gregset.
9045 (fetch_core_registers): Adjust for renamed functions.
9046 (amd64_core_fns): Renamed from x86_64_core_fns.
9047 (amd64_linux_sigtramp_start): Renamed from
9048 x86_64_linux_sigtramp_start.
9049 (amd64_linux_pc_in_sigtramp): Renamed from
9050 x86_64_linux_pc_in_sigtramp. Adjust for renamed functions.
9051 (AMD64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Renamed from
9052 X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET.
9053 (amd64_linux_sigcontext_addr): Renamed from
9054 x86_64_linux_sigcontext_addr.
9055 (amd64_linux_sc_reg_offset): Renamed from
9056 x86_64_linux_sc_reg_offset.
9057 (amd64_linux_init_abi): Renamed from x86_64_linux_init_abi.
9058 Adjust for renamed functions and variables.
9059 (_initialize_amd64_linux_tdep): Renamed from
9060 _initialize_x86_64_linux_tdep. Adjust for renamed functions and
9061 variables.
9062 * x86-64-linux-tdep.h: Update copyright year. Tweak comment.
9063 Adjust for renamed functions.
9064
430eaf2e
MK
9065 * x86-64-linux-nat.c (amd64_linux_gregset64_reg_offset): Rename
9066 from x86_64_linux_gregset64_reg_offset.
9067 (amd64_linux_gregset32_reg_offset): Rename from
9068 x86_64_linux_gregset64_reg_offset.
9069 (amd64_linux_dr_get): Renamed from x86_64_linux_dr_get.
9070 (amd64_linux_dr_set): Renamed from x86_64_linux_dr_set.
9071 (amd64_linux_dr_set_control): Renamed from
9072 x86_64_linux_dr_set_control. Adjust for renamed functions.
9073 (amd64_linux_dr_set_addr): Renamed from x86_64_linux_dr_set_addr.
9074 Adjust for renamed functions.
9075 (amd64_linux_dr_reset_addr): Renamed from
9076 x86_64_linux_dr_reset_addr. Adjust for renamed functions.
9077 (amd64_linux_dr_get_status): Renamed from
9078 x86_64_linux_dr_get_status. Adjust for renamed functions.
9079 (_initialize_amd64_linux_nat): Renamed from
9080 _initialize_x86_64_linux_nat. Adjust for renamed variables and
9081 functions.
9082 * config/i386/nm-x86-64linux.h: Update copyright year.
9083 Adjust for renamed functions.
9084
10fc94a4
MK
9085 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_start_addr): Renamed from
9086 amd64fbsd_sigtramp_start.
9087 (amd64fbsd_sigtramp_end_addr): Renamed from
9088 amd64fbsd_sigtramp_end.
9089 (amd64fbsd_init_abi): Adjust for renamed variables.
9090 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Adjust for renamed
9091 variables.
9092 * x86-64-tdep.h (amd64fbsd_sigtramp_start_addr): Renamed from
9093 amd64fbsd_sigtramp_start.
9094 (amd64fbsd_sigtramp_end_addr): Renamed from
9095 amd64fbsd_sigtramp_end.
9096
343af405
AC
90972004-02-22 Andrew Cagney <cagney@redhat.com>
9098
537987fc
AC
9099 * hppa-tdep.c (hppa32_return_value): New function.
9100 (hppa64_return_value): New function.
9101 (hppa_gdbarch_init): Set return_value; keep disabled.
9102
fad850b2
AC
9103 * hppa-tdep.c (hppa_gdbarch_init): Re-order separating
9104 struct-return and inferior function call methods.
9105
26d08f08
AC
9106 * hppa-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
9107 "frame-base.h".
9108 (struct hppa_frame_cache): Define.
9109 (hppa_frame_cache, hppa_frame_this_id): New functions.
9110 (hppa_frame_prev_register): New function.
9111 (hppa_frame_unwind, hppa_frame_base): New variables.
9112 (hppa_frame_unwind_sniffer): New function.
9113 (hppa_frame_base_address, hppa_unwind_pc): New function.
9114 (hppa_gdbarch_init): Set unwind_dummy_id, unwind_pc, frame unwind
9115 sniffer, and frame base sniffer; keep disabled.
9116 (hppa_frame_base_sniffer, hppa_unwind_dummy_id): New functions.
9117 * Makefile.in: Update dependencies, fix s/nbsd/obsd/ typo.
9118
e7d7bd65
AC
9119 * frame-unwind.c (frame_unwind_find_by_frame): Add legacy_frame_p
9120 to predicates for "seriously old code".
9121
e963316f
AC
9122 * hppa-tdep.c (hppa_gdbarch_init): Convert compile time #if0s into
9123 runtime if(0).
9124
56132691
AC
9125 * hppa-tdep.c (hppa_breakpoint_from_pc): Make "breakpoint"
9126 unsigned.
9127 (hppa_frame_find_saved_regs): Fix "std" instruction pattern
e963316f 9128
343af405
AC
9129 * config/pa/tm-hppa.h: Update copyright.
9130 (DEPRECATED_INIT_FRAME_PC): Delete macro.
9131 (deprecated_init_frame_pc_default): Delete declaration.
9132 (hppa_frame_init_saved_regs): Delete declaration.
9133 (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
9134 * hppa-tdep.c: Include "arch-utils.h".
9135 (hppa_gdbarch_init): Set deprecated init_frame_pc
9136 and deprecated frame_init_saved_regs.
9137 (hppa_frame_init_saved_regs): Make static.
9138
f5859b4d
MK
91392004-02-22 Mark Kettenis <kettenis@gnu.org>
9140
86f6f8e7 9141 Remove old 386BSD support.
cf7c5c23 9142 * NEWS (REMOVED configurations and files): Add i[3456]86-*-bsd*.
86f6f8e7
MK
9143 * configure.host: Remove i[34567]86-*-bsd*.
9144 * configure.tgt: Remove i[34567]86-*-bsd*.
9145 * i386b-nat.c: Removed.
9146 * Makefile.in (ALLDEPFILES): Remove i386b-nat.c.
cf7c5c23
MK
9147 (i386b-nat.o): Remove dependencies.
9148
86f6f8e7
MK
9149 * config/i386/i386bsd.mh: Removed.
9150 * config/i386/i386bsd.mt: Removed.
9151 * config/i386/nm-i386bsd.h: Removed.
9152 * config/i386/tm-i386bsd.h: Removed.
9153 * config/i386/xm-i386bsd.h: Removed.
9154
971218cd
MK
9155 * x86-64-tdep.h (amd64obsd_r_reg_offset): New extern declaration.
9156
7e654c37
MK
9157 * amd64fbsd-tdep.c: Include "solib-svr4.h".
9158 (amd64fbsd_init_abi): Set link map offsets.
9159 * amd64nbsd-tdep.c: Include "slib-svr4.h".
9160 (amd64nbsd_init_abi): Set link map offsets.
9161 * amd64obsd-tdep.c: Include "solib-svr4.h".
9162 (amd64obsd_init_abi): Set link map offsets.
9163 * i386fbsd-tdep.c: Include "solib-svr4.h".
9164 (i386fbsd_init_abi): Set link map offsets.
9165 * i386nbsd-tdep.c: Include "solib-svr4.h".
9166 (i386nbsdelf_init_abi): Set link map offsets.
9167 * Makefile.in (amd64fbsd-tdep.o, amd64nbsd-tdep.o)
9168 (amd64obsd-tdep.o, i386fbsd-tdep.o): Update dependencies.
9169 * config/i386/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o,
9170 solib-legacy.o and core-aout.o. Reformat.
9171 * config/i386/fbsd64.mh (NATDEPFILES): Remove solib.o,
9172 solib-svr4.o, solib-legacy.o. Reformat.
9173 * config/i386/nbsdaout.mh (NATDEPFILES): Add solib.o. Reformat.
9174 * config/i386/nbsdelf.mh: Reformat.
9175 * config/i386/nbsd64.mh (NATDEPFILES): Remove solib.o,
9176 solib-svr4.o, solib-legacy.o and corelow.o.
9177 * config/i386/obsd.mh, config/i386/obsdaout.mh: Reformat.
9178 * config/i386/obsd64.mh (NATDEPFILES): Remove solib.o,
9179 solib-svr4.o, solib-legacy.o and corelow.o. Reformat.
9180 * config/i386/fbsd.mt (TDEPFILES): Add solib.o, solib-svr4.o.
9181 * config/i386/fbsd64.mt (TDEPFILES): Add solib.o, solib-svr4.o.
9182 (TM_FILE): Set to tm-fbsd.h.
9183 * config/i386/nbsd.mt (TDEPFILES): Reformat.
9184 * config/i386/nbsd64.mt (TDEPFILES): Add corelow.o, solib.o and
9185 solib-svr4.o.
9186 * config/i386/obsd.mt (TDEPFILES): Add corelow.o, solib.o and
9187 solib-svr4.o.
9188 (TM_FILE): Set to nm-nbsd.h.
9189 * config/i386/nm-fbsd.h: Update copyright year. Tweak comments.
9190 Simplify shared library support. Don't include "elf/common.h".
9191 (SVR4_SHARED_LIBS): Don't define.
9192 * config/i386/nm-fbsd64.h: Update copyright year. Don't include
9193 "solib.h".
9194 * config/i386/nm-nbsd.h, config/i386/nm-nbsdaout.h,
9195 config/i386/nm-obsd.h: Update copyright year. Tweak comments.
9196 * config/i386/tm-fbsd.h: Update copyright tear. Tweak comments.
9197 Don't include "i386/tm-i386.h". Include "solib.h".
9198 * config/i386/tm-nbsd.h: Update copyright year. Tweak comments.
9199 Don't include "i386/tm-i386.h".
9200 * config/i386/xm-i386.h: Update copyright year. Tweak comments.
9201 * config/i386/xm-nbsd.h: Update copyright year. Tweak comments.
9202 Include "i386/xm-i386.h".
9203 (HOST_LONG_DOUBLE_FORMAT): Remove.
9204
5d93ae8c
MK
9205 Fix OpenBSD/i386 sigtramp recognition.
9206 * i386-tdep.h: Update copyright year.
9207 (i386bsd_pc_in_sigtramp, i386bsd_sigtramp_start)
9208 (i386bsd_sigtramp_end): New prototypes.
9209 (i386fbsd_sigtramp_start_addr): Renamed from
9210 i386fbsd_sigtramp_start.
9211 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
9212 (i386obsd_sigtramp_start_addr): Renamed from
9213 i386obsd_sigtramp_start.
9214 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
9215 * i386bsd-tdep.c: Update copyright year.
9216 (i386bsd_pc_in_sigtramp): Make public.
9217 * i386fbsd-nat.c: Update copyright year.
9218 (_initialize_i386fbsd_nat): Adjust for renamed variables.
9219 * i386fbsd-tdep.c: Update copyright year.
9220 (i386fbsd_sigtramp_start_addr): Renamed from
9221 i386fbsd_sigtramp_start.
9222 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
9223 (i386fbsdaout_init_abi): Adjust for renamed variables.
9224 * i386obsd-nat.c: Update copyright year.
9225 (_initialize_i386obsd_nat): Adjust for renamed variables.
9226 * i386obsd-tdep.c: Include "target.h".
9227 (i386obsd_page_size): New variable.
9228 (i386obsd_pc_in_sigtramp, i386obsd_sigtramp_start)
9229 (i386obsd_sigtramp_end): New functions.
9230 (i386obsd_sigtramp_start_addr): Renamed from
9231 i386obsd_sigtramp_start.
9232 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
9233 (i386obsd_init_abi): Adjust for renamed variables. Set
9234 pc_in_sigtramp, sigtramp_start and sigtramp_end.
9235 * Makefile.in (i386obsd-tdep.o): Update dependencies.
9236
84d04465
MK
9237 * amd64obsd-tdep.c (amd64obsd_pc_in_sigtramp): Adjust for signal
9238 trampoline change in OpenBSD kernel.
9239
b053aceb
MK
9240 * amd64-nat.c: Update copyright year.
9241 (amd64_supply_native_gregset, amd64_collect_native_gregset): Use
9242 architecture from REGCACHE.
9243
f5859b4d
MK
9244 * x86-64-linux-nat.c (x86_64_linux_gregset32_reg_offset): Use
9245 symbolic constants from <sys/reg.h> instead of hard-coded numbers.
9246
e4bbbda8
MK
92472004-02-21 Mark Kettenis <kettenis@gnu.org>
9248
ba361932
MK
9249 * configure.host: Add i[34567]86-*-openbsd[0-2].* and
9250 i[34567]86-*-openbsd3.[0-3].
9251 * config/i386/obsdaout.mh: New file.
9252
d3e48264
MK
9253 * config/i386/obsd.mh (MH_FLAGS): Remove.
9254
60a6eeb6
MK
9255 Fix PR build/1549.
9256 * i386obsd-tdep.c: Update copyright years. Include
9257 "solib-svr4.h".
9258 (i386obsd_init_abi): Don't set regset_from_core_section here.
9259 (i386obsd_aout_init_abi): New function. Set
9260 regset_from_core_section here.
9261 (i386obsd_elf_init_abi): New function.
9262 (_initialize_i386obsd_tdep): Register OS/ABI for OpenBSD ELF.
9263 * Makefile.in (i386obsd-tdep.o): Update dependecies.
9264 * config/i386/obsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
9265 (TM_FILE): Set to tm-nbsd.h.
9266
9267 * config/i386/obsd.mh (NATDEPFILES): Remove solib.o and
9268 solib-sunos.o.
9269
e4bbbda8
MK
9270 * solib-svr4.h: Update copyright year.
9271 (svr4_ilp32_fetch_link_map_offsets)
9272 (svr4_lp64_fetch_link_map_offsets): New prototype.
9273 * solib-svr4.c: Update copyright year.
9274 (svr4_ilp32_fetch_link_map_offsets)
9275 (svr4_lp64_fetch_link_map_offsets): New function.
9276
f6fe98ef
DJ
92772004-02-20 Daniel Jacobowitz <drow@mvista.com>
9278
9279 * dwarf2read.c (add_partial_symbol): Fix typo in adding enumerators
9280 to the partial symbol table.
9281
589ca796
JB
92822004-02-20 J. brobecker <brobecker@gnat.com>
9283
9284 * PROBLEMS: Add description of problem documented under gdb/1560.
9285
2031c21a
MK
92862004-02-20 Mark Kettenis <kettenis@gnu.org>
9287
30b344b1
MK
9288 * amd64obsd-tdep.c: Include "regset.h" and "i387-tdep.h". Fix
9289 comments.
9290 (amd64obsd_supply_regset, amd64obsd_regset_from_core_section): New
9291 functions.
9292 (amd64obsd_init_abi): Reorder initializations. Use
9293 amd64obsd_r_reg_offset to initialize the general-purpose register
9294 set details. Set regset_from_core_section.
9295 (_initialize_amd64obsd_tdep): Rename from
9296 _initialize_amd64obsd_ndep. Add OS ABI handler for core dumps.
9297 * Makefile.in (amd64obsd-tdep.o): Update dependencies.
9298 * config/i386/obsd64.mt (TDEPFILES): Add i386-tdep.o.
9299
2031c21a
MK
9300 * NEWS (New native configurations): Mention OpenBSD/alpha.
9301 * configure.tgt: Add alpha*-*-openbsd*.
9302 * configure.host: Add alpha*-*-openbsd*.
9303 * alphanbsd-tdep.c: Update copyright year.
9304 (_initialize_alphanbsd_tdep): Register OS ABI for OpenBSD ELF.
9305
42471775
AC
93062004-02-20 Andrew Cagney <cagney@redhat.com>
9307
9308 Fix PR tdep/1372.
9309 * configure.tgt: Delete target "none-*-*".
9310 * configure.host: Delete host "none-*-*".
9311 * config/none/none.mh: Delete file.
9312 * config/none/none.mt: Delete file.
9313 * config/none/xm-none.h: Delete file.
9314 * config/none/tm-none.h: Delete file.
9315 * config/none/nm-none.h: Delete file.
9316
960ccd7d
FF
93172004-02-19 Fred Fish <fnf@redhat.com>
9318
9319 * sh-tdep.c (sh_analyze_prologue): Eliminate useless test of
9320 cache->uses_fp prior to setting it.
9321
5f883edd
FF
93222004-02-19 Fred Fish <fnf@redhat.com>
9323
9324 Fix for PR breakpoint/1558.
9325 * sh-tdep.c (IS_JSR): New macro.
9326 (sh_analyze_prologue): Use IS_JSR to terminate prologue scan.
9327
f98c22d5
JB
93282004-02-19 Jim Blandy <jimb@redhat.com>
9329
9330 * findvar.c (value_from_register): Doc fix.
9331
95051d27
JJ
93322004-02-19 Jeff Johnston <jjohnstn@redhat.com>
9333
9334 * printcmd.c (print_scalar_formatted): Do not check for sizeof
9335 type being greater than sizeof of host's LONGEST. Always use
9336 unpack_long() unless format 'f' chosen.
9337
ccefbec3
EZ
93382004-02-19 Joel Brobecker <brobecker@gnat.com>
9339
9340 Committed by Elena Zannoni <ezannoni@redhat.com>
2ede629f 9341
ccefbec3
EZ
9342 * symtab.c (find_pc_sect_psymtab): Return the psymtab that
9343 contains a symbol wich is the best, non-exact match for the given
9344 pc. Update comments.
9345
93462004-02-19 Elena Zannoni <ezannoni@redhat.com>
8a1dac83 9347
2ede629f
EZ
9348 * event-top.c (async_request_quit): Remove uses of REQUEST_QUIT
9349 macro, which was part of the now removed Mach 3 port.
9350 * utils.c (request_quit): Ditto.
9351
567ee972
MK
93522004-02-18 Mark Kettenis <kettenis@gnu.org>
9353
9354 * config/djgpp/fnchange.lst: Rename "amd64obsd-tdep.c" and
9355 "amd64obsd-nat.c" to "a64ob-tdep.c" and "a64ob-nat.c".
9356
50cca7bb
MK
93572004-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9358
9359 Committed by Mark Kettenis <kettenis@gnu.org>.
9360
9361 * config/s390/nm-linux.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT):
9362 Define.
9363
226361c4
AC
93642004-02-18 Andrew Cagney <cagney@redhat.com>
9365
9366 * configure.in: Add a TUI target to CONFIG_ALL, CONFIG_CLEAN,
9367 CONFIG_INSTALL and CONFIG_UNINSTALL.
9368 * configure: Re-generate.
9369 * interps.h (INTERP_TUI): Define.
9370 * Makefile.in: Update dependencies.
9371 (TUI): New macro.
9372 (tui-main.o): Specify dependencies.
9373 (install-tui, uninstall-tui, clean-tui, all-tui): New rules.
9374 * tui/tui-main.c: New file.
9375
49cfa46f
MK
93762004-02-18 Mark Kettenis <kettenis@gnu.org>
9377
e2879ccb
MK
9378 * amd64obsd-tdep.c, amd64obsd-nat.c: New files.
9379 * Makefile.in (amd64obsd-nat.o, amd64obsd-tdep.o): New
9380 dependencies.
9381 * configure.host: Add x86_64-*-openbsd*.
9382 * configure.tgt: Add x86_64-*-openbsd*.
9383 * config/i386/obsd64.mt, config/i386/obsd64.mh: New files.
9384
c43f4bec
MK
9385 * tui/tui.c: Don't include <malloc.h>.
9386
09ae75b6
MK
9387 * Makefile.in (ALLDEPFILES): Add amd64-nat.c, amd64bsd-nat.c,
9388 amdfbsd-nat.c, amd64-fbsd-tdep.c, amd64nbsd-nat.c and
9389 amd64nbsd-tdep.c.
9390
49cfa46f 9391 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Make
8a1dac83 9392 static. Remove extraneous whitespace.
49cfa46f
MK
9393 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Make
9394 static.
9395
05957fdb
JB
93962004-02-17 Jim Blandy <jimb@redhat.com>
9397
9398 * findvar.c (value_from_register): Doc fix.
9399
d0f54f9d
JB
94002004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9401
9402 Committed by Jim Blandy <jimb@redhat.com>.
e1457d83 9403
8a1dac83 9404 * eval.c (evaluate_subexp_standard, case OP_OBJC_MSGCALL): Use
c253954e
JB
9405 CORE_ADDR as type for selectors. Correct types for GNU run time
9406 message lookup function to use double indirection.
9407 * objc-lang.c (lookup_child_selector): Use CORE_ADDR as return type.
9408 * objc-lang.h (lookup_child_selector): Adapt prototype.
9409
9cbd5950
JB
9410 * s390-nat.c (SUBOFF): New macro.
9411 (supply_gregset, fill_gregset): Use it to handle debugging
9412 of 32-bit exectuables running under a 64-bit kernel.
9413 * s390-tdep.c: Include "solib-svr4.h".
9414 (s390_svr4_fetch_link_map_offset): New function.
9415 (s390x_svr_fetch_link_map_offset): Likewise.
9416 (s390_gdbarch_init): Call set_solib_svr4_fetch_link_map_offsets.
9417 * Makefile.in (s390-tdep.o): Update dependencies.
9418
a8c99f38
JB
9419 * s390-tdep.c: Include "trad-frame.h", "frame-base.h", and
9420 "frame-unwind.h".
9421 (s390_readinstruction): Reformat. Use read_memory_nobpt.
9422 (GDB_TARGET_IS_ESAME, S390_GPR_SIZE, S390_FPR_SIZE): Remove.
9423 (S390_SYSCALL_OPCODE, S390_SYSCALL_SIZE): Remove.
9424 (S390_SIGCONTEXT_SREGS_OFFSET, S390X_SIGCONTEXT_SREGS_OFFSET,
9425 S390_SIGREGS_FP0_OFFSET, S390X_SIGREGS_FP0_OFFSET,
9426 S390_UC_MCONTEXT_OFFSET, S390X_UC_MCONTEXT_OFFSET,
8a1dac83 9427 S390_SIGNAL_FRAMESIZE,
a8c99f38
JB
9428 s390_NR_sigreturn, s390_NR_rt_sigreturn): Remove.
9429 (struct frame_extra_info): Remove.
9430 (s390_memset_extra_info): Remove.
f73b1eff
JB
9431 (op1_ag, op1_ay, op1_brasl, op1_brc, op1_brcl, op1_lay, op1_lg)
9432 (op1_lmy, op1_ly, op1_sg, op1_stmy, op1_sty, op1_sy, op_a)
9433 (op_agr, op_bas, op_bc, op_bcr, op_sgr, op_sr): New opcodes.
a8c99f38
JB
9434 (is_rse): Renamed to ...
9435 (is_rsy): ... this. Support long displacements.
9436 (is_rxe): Renamed to ...
9437 (is_rxy): ... this. Support long displacements.
9438 (compute_x_addr): Support long displacements.
9439 (struct s390_prologue_data): New data type.
9440 (s390_on_stack): Change API to use struct s390_prologue_data.
9441 (s390_store): Reimplement.
9442 (s390_load): New function.
9443 (s390_get_signal_frame_info): Remove.
9444 (s390_get_frame_info): Remove, replace by ...
9445 (s390_analyze_prolog): ... this new function.
9446 (s390_check_function_end): Remove.
9447 (s390_function_start): Remove.
9448 (s390_frameless_function_invokation): Remove.
9449 (s390_is_sigreturn): Remove.
9450 (s390_init_frame_pc_first): Remove.
9451 (s390_init_frame_extra_info): Remove.
9452 (s390_frame_init_saved_regs): Remove.
9453 (s390_frame_saved_pc_nofix): Remove.
9454 (s390_frame_saved_pc): Remove.
9455 (s390_frame_chain): Remove.
9456 (s390_fp_regnum, s390_read_fp): Remove.
9457 (s390_pop_frame_regular, s390_pop_frame): Remove.
9458 (s390_saved_pc_after_call): Remove.
9459 (s390_skip_prologue): Reimplement.
9460 (s390_in_function_epilogue_p): Support long displacements.
9461 (struct s390_unwind_cache): New data structure.
9462 (s390_frame_unwind_cache): New function.
9463 (s390_prologue_frame_unwind_cache): Likewise.
9464 (s390_backchain_frame_unwind_cache): Likewise.
9465 (s390_frame_this_id, s390_frame_prev_register): Likewise.
9466 (s390_frame_unwind): Define.
9467 (s390_frame_sniffer): New function.
9468 (struct s390_pltstub_unwind_cache): New data structure.
9469 (s390_pltstub_frame_unwind_cache): New function.
9470 (s390_pltstub_frame_this_id): Likewise.
9471 (s390_pltstub_frame_prev_register): Likewise.
9472 (s390_pltstub_frame_unwind): Define.
9473 (s390_pltstub_frame_sniffer): New function.
9474 (struct s390_sigtramp_unwind_cache): New data structure.
9475 (s390_sigtramp_frame_unwind_cache): New function.
9476 (s390_sigtramp_frame_this_id): Likewise.
9477 (s390_sigtramp_frame_prev_register): Likewise.
9478 (s390_sigtramp_frame_unwind): Define.
9479 (s390_sigtramp_frame_sniffer): New function.
9480 (s390_frame_base_address, s390_local_base_address): New functions.
9481 (s390_frame_base): Define.
9482 (s390_unwind_pc, s390_unwind_sp): New function.
9483 (s390_push_dummy_call): Use new frame base location.
9484 (s390_unwind_dummy_id): Likewise.
9485 (s390_gdbarch_init): Remove calls to:
9486 set_gdbarch_frameless_function_invocation,
9487 set_gdbarch_deprecated_init_frame_pc,
9488 set_gdbarch_deprecated_frame_chain,
9489 set_gdbarch_deprecated_frame_init_saved_regs,
9490 set_gdbarch_deprecated_pop_frame,
9491 set_gdbarch_deprecated_init_extra_frame_info,
9492 set_gdbarch_deprecated_init_frame_pc_first,
9493 set_gdbarch_deprecated_target_read_fp,
9494 set_gdbarch_deprecated_frame_saved_pc,
9495 set_gdbarch_deprecated_saved_pc_after_call,
9496 set_gdbarch_deprecated_fp_regnum.
9497 Add calls to:
9498 set_gdbarch_in_solib_call_trampoline,
9499 frame_unwind_append_sniffer,
9500 frame_base_set_default,
9501 set_gdbarch_unwind_pc,
9502 set_gdbarch_unwind_sp.
9503 * Makefile.in (s390-tdep.o): Update dependencies.
9504
b0cf273e
JB
9505 * s390-tdep.c (struct gdbarch_tdep): Add 'abi' member.
9506 (S390_STACK_FRAME_OVERHEAD): Remove.
9507 (S390_STACK_PARAMETER_ALIGNMENT): Remove.
9508 (S390_NUM_FP_PARAMETER_REGISTERS): Remove.
9509 (s390_promote_integer_argument): Remove.
9510 (s390_cannot_extract_struct_value_address): Remove.
9511 (s390_use_struct_convention, s390_store_struct_return): Remove.
9512 (s390_extract_return_value, s390_store_return_value): Remove.
9513 (s390_return_value_convention, s390_return_value): New functions.
9514 (is_float_singleton): Handle typedefs.
8a1dac83 9515 (is_double_or_float, is_double_arg, is_simple_arg, pass_by_copy_ref):
b0cf273e
JB
9516 Remove, replace by ...
9517 (s390_function_arg_pass_by_reference, s390_function_arg_float,
9518 s390_function_arg_integer): ... these new functions.
9519 (s390_push_arguments, s390_push_return_address): Remove, replace by ...
9520 (s390_push_dummy_call, s390_unwind_dummy_id): ... these new functions.
9521 (s390_gdbarch_init): Remove s390_call_dummy_words and elf_flags.
9522 Fill in tdep->abi.
9523 Remove calls to:
9524 set_gdbarch_deprecated_store_struct_return,
9525 set_gdbarch_deprecated_extract_return_value,
9526 set_gdbarch_deprecated_store_return_value,
9527 set_gdbarch_use_struct_convention,
9528 set_gdbarch_extract_struct_value_address,
9529 set_gdbarch_deprecated_pc_in_call_dummy,
9530 set_gdbarch_deprecated_push_arguments,
9531 set_gdbarch_deprecated_save_dummy_frame_tos,
9532 set_gdbarch_deprecated_push_return_address,
9533 set_gdbarch_deprecated_sizeof_call_dummy_words,
9534 set_gdbarch_deprecated_call_dummy_words,
9535 set_gdbarch_deprecated_dummy_write_sp.
9536 Add calls to:
9537 set_gdbarch_push_dummy_call,
9538 set_gdbarch_unwind_dummy_id,
9539 set_gdbarch_return_value.
8a1dac83 9540
e1457d83
JB
9541 * config/s390/nm-linux.h: Update comments.
9542 (target_insert_watchpoint, target_remove_watchpoint): Redefine.
9543 (STOPPED_BY_WATCHPOINT): Redefine.
9544 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Redefine to 1.
9545 (s390_insert_watchpoint, s390_remove_watchpoint): Update prototype.
9546 (s390_stopped_by_watchpoint): Likewise.
9547 (watch_area_cnt): Remove.
9548 * s390-nat.c: Update comments.
9549 (watch_area): Remove typedef.
9550 Global replace watch_area by struct watch_area.
9551 (watch_area_cnt, watch_lo_addr, watch_hi_addr): Remove.
8a1dac83 9552 (s390_stopped_by_watchpoint): Remove pid argument,
e1457d83
JB
9553 use s390_inferior_tid. Add short-cut for the no watchpoint case.
9554 (s390_fix_watch_points): Remove pid argument,
9555 use s390_inferior_tid. Recompute area spanned by watchpoints.
9556 (s390_insert_watchpoint, s390_remove_watchpoint): Remove pid
9557 argument. Reimplement.
9558
d0f54f9d
JB
9559 * config/s390/nm-linux.h: Update comments. Do not include "solib.h".
9560 (KERNEL_U_ADDR, REGISTER_U_ADDR, U_REGS_OFFSET): Remove.
9561 (FETCH_INFERIOR_REGISTERS): Define.
8a1dac83 9562 * config/s390/s390.mh (NATDEPFILES): Remove core-aout.o and
d0f54f9d
JB
9563 core-regset.o.
9564 * config/s390/s390x.mt: Remove.
9565 * config/s390/tm-s390.h: Remove.
9566 * config/s390/tm-linux.h: Do not include "s390/tm-s390.h".
9567 (TARGET_ELF64): Remove.
9568 (SKIP_TRAMPOLINE_CODE): Do not undefine.
9569 * configure.tgt [s390-*-*, s390x-*-*]: Merge into single
9570 s390*-*-* case; always set gdb_target to s390.
9571 * regformats/reg-s390.dat: Remove control registers.
9572 * regformats/reg-s390x.dat: Likewise.
9573 * s390-tdep.h: New file.
8a1dac83 9574 * s390-nat.c: Do not include <asm/processor.h> or <value.h>.
d0f54f9d
JB
9575 Include "inferior.h" and "s390-tdep.h".
9576 Remove private definition of offsetof.
9577 (s390_register_u_addr): Remove.
9578 (regmap_gregset, regmap_fpregset): Define.
9579 (supply_gregset, fill_gregset): Reimplement.
9580 (supply_fpregset, fill_fpregset): Likewise.
9581 (s390_inferior_tid): New function.
9582 (fetch_regs, store_regs, fetch_fpregs, store_fpregs): Likewise.
9583 (fetch_inferior_registers, store_inferior_registers): Likewise.
9584 * s390-tdep.c: Do not define S390_TDEP. Include "defs.h" instead
9585 of <defs.h>. Include "reggroups.h", "regset.h", and "s390-tdep.h".
9586 Global replace of S390_GP0_REGNUM by S390_R0_REGNUM.
9587 Global replace of S390_FP0_REGNUM by S390_F0_REGNUM.
9588 (struct gdbarch_tdep): Define.
9589 (struct s390_register_info): Define.
9590 (s390_register_info): New variable.
9591 (s390_register_name): Reimplement.
9592 (s390_register_type): New function.
9593 (s390_register_raw_size, s390x_register_raw_size): Remove.
9594 (s390_cannot_fetch_register): Remove.
9595 (s390_register_byte): Remove.
9596 (s390_register_virtual_type, s390x_register_virtual_type): Remove.
9597 (s390_dwarf_regmap): New variable.
9598 (s390_dwarf_reg_to_regnum): New function.
9599 (s390_stab_reg_to_regnum): Remove.
9600 (s390_pseudo_register_read, s390_pseudo_register_write): New functions.
9601 (s390x_pseudo_register_read, s390x_pseudo_register_write): Likewise.
9602 (s390_convert_register_p): Likewise.
9603 (s390_register_to_value, s390_value_to_register): Likewise.
9604 (s390_register_reggroup_p): Likewise.
9605 (s390_regmap_gregset, s390x_regmap_gregset, s390_regmap_fpregset,
9606 s390_gregset, s390x_gregset, s390_fpregset): New variables.
9607 (s390_supply_regset, s390_regset_from_core_section): New functions.
9608 (GDB_TARGET_IS_ESAME): Move here from tm-s390.h.
9609 (S390_FPR_SIZE): Likewise.
9610 (S390_GPR_SIZE): Likewise. Redefine in terms of GDB_TARGET_IS_ESAME.
9611 Global replace of DEPRECATED_REGISTER_SIZE by S390_GPR_SIZE.
9612 (S390_NUM_GPRS): Move here from tm-s390.h.
9613 (S390_NUM_FPRS): Likewise.
9614 (s390_in_function_epilogue_p): New function.
9615 (s390_is_sigreturn): Replace S390_PSW_ADDR_SIZE by S390_GPR_SIZE.
9616 Replace S390_PC_REGNUM by S390_PSWA_REGNUM.
9617 (s390_gdbarch_init): Allocate and set up gdbarch_tdep structure.
9618 Replace s390_stab_reg_to_regnum by s390_dwarf_reg_to_regnum.
9619 Replace S390_FP_REGNUM by S390_SP_REGNUM.
9620 Remove calls to:
9621 set_gdbarch_deprecated_max_register_raw_size,
8a1dac83
RM
9622 set_gdbarch_deprecated_max_register_virtual_size,
9623 set_gdbarch_deprecated_register_byte,
d0f54f9d 9624 set_gdbarch_cannot_fetch_register,
8a1dac83 9625 set_gdbarch_cannot_store_register,
d0f54f9d
JB
9626 set_gdbarch_deprecated_register_size,
9627 set_gdbarch_deprecated_register_raw_size,
9628 set_gdbarch_deprecated_register_virtual_size,
9629 set_gdbarch_deprecated_register_virtual_type,
9630 set_gdbarch_deprecated_register_bytes.
9631 Add calls to:
9632 set_gdbarch_num_pseudo_regs,
9633 set_gdbarch_register_type,
9634 set_gdbarch_convert_register_p,
9635 set_gdbarch_register_to_value,
9636 set_gdbarch_value_to_register,
9637 set_gdbarch_register_reggroup_p,
9638 set_gdbarch_regset_from_core_section,
9639 set_gdbarch_pseudo_register_read,
9640 set_gdbarch_pseudo_register_write,
9641 set_gdbarch_in_function_epilogue_p.
9642 * Makefile.in (s390-nat.o, s390-tdep.o): Update dependencies.
9643 (s390_tdep_h): New variable.
9644
8cfe231d
JB
96452004-02-17 Jim Blandy <jimb@redhat.com>
9646
4589a601
JB
9647 * findvar.c (value_from_register): If the type has no length, just
9648 return an acceptable value --- don't report an internal error.
9649
8cfe231d
JB
9650 * stabsread.c (read_type): If we find any type numbers that are
9651 forward references, complain if the references aren't resolved by
9652 the time we're finished reading.
9653 (cleanup_undefined_types): Make error message more appropriate for
9654 a complaint.
9655
5bf0017e
EZ
96562004-02-17 Elena Zannoni <ezannoni@redhat.com>
9657
9d62932d
EZ
9658 * Makefile.in (defs_h): Remove dependency on progress_h.
9659 * defs.h (QUIT): Remove use of PROGRESS macro. Remove include of
9660 progress.h.
9661 * main.c (captured_main): Delete use of START_PROGRESS and
9662 END_PROGRESS.
9663
96642004-02-17 Elena Zannoni <ezannoni@redhat.com>
8a1dac83 9665
5bf0017e
EZ
9666 * objfiles.c (terminate_minimal_symbol_table): Add back
9667 initialization of MSYMBOL_TYPE.
9668
9fc9f5e2
AC
96692004-02-17 David Mosberger <davidm@hpl.hp.com>
9670
9671 Committed by Andrew Cagney.
9672 * Makefile.in (ia64_tdep_h): New macro.
9673 (ia64-linux-tdep.o): Mention $(ia64_tdep_h).
9674 (ia64-tdep.o): Likewise.
9675 * ia64-tdep.h: New file.
9676 * ia64-tdep.c: Update copyright notice. Include "ia64-tdep.h".
9677 (ia64_linux_sigcontext_register_address): Move decl to ia64-tdep.h.
9678 (ia64_aix_sigcontext_register_address): Likewise.
9679 (ia64_linux_getunwind_table): Delete declaration.
9680 * ia64-linux-tdep.c: Likewise.
9681
76cd2bd9
CV
96822004-02-17 Corinna Vinschen <vinschen@redhat.com>
9683
9684 * sh-tdep.c (sh_dsp_register_sim_regno): Use DSP_Rx_BANK_REGNUM.
9685 * sh-tdep.h: Rename R0_BANK_REGNUM and R7_BANK_REGNUM to
9686 DSP_R0_BANK_REGNUM and DSP_R7_BANK_REGNUM.
9687
634aa483
AC
96882004-02-17 Andrew Cagney <cagney@redhat.com>
9689
9690 * symtab.c (skip_prologue_using_sal): New function.
9691 * symtab.h (skip_prologue_using_sal): Declare.
9692 * frv-tdep.c: Include "symtab.h".
9693 (skip_prologue_using_sal): Delete function.
9694 * mips-tdep.c (skip_prologue_using_sal): Delete function.
9695 * rs6000-tdep.c (refine_prologue_limit): Mention
9696 skip_prologue_using_sal.
9697 * ia64-tdep.c (refine_prologue_limit): Ditto.
9698 * Makefile.in: Update dependencies.
9699
97002004-02-16 Andrew Cagney <cagney@redhat.com>
19772a2c 9701
39ce7b3f
AC
9702 * config/alpha/tm-nbsd.h: Update copyright, delete #undef
9703 START_INFERIOR_TRAPS_EXPECTED.
9704 * config/alpha/tm-fbsd.h: Update copyright, delete #undef
9705 START_INFERIOR_TRAPS_EXPECTED.
9706 * config/alpha/tm-alphalinux.h (START_INFERIOR_TRAPS_EXPECTED):
9707 Delete macro.
9708 * config/alpha/tm-alpha.h (START_INFERIOR_TRAPS_EXPECTED): Delete
9709 macro, moved to "nm-osf.h". Update copyright.
9710 * config/alpha/nm-osf.h (START_INFERIOR_TRAPS_EXPECTED): Define,
9711 update copyright.
9712
19772a2c
AC
9713 * gdbarch.sh (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION): Predicate
9714 and function replacing FRAMELESS_FUNCTION_INVOCATION.
9715 * blockframe.c (legacy_frameless_look_for_prologue): Rename
9716 frameless_look_for_prologue.
9717 * frame.h (legacy_frameless_look_for_prologue): Rename
9718 frameless_look_for_prologue.
9719 * gdbarch.h, gdbarch.c: Re-generate.
9720 * sh64-tdep.c (sh64_gdbarch_init): Update.
9721 * sh-tdep.c (sh_gdbarch_init): Update.
9722 * s390-tdep.c (s390_gdbarch_init): Update.
9723 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9724 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9725 * m68k-tdep.c (m68k_gdbarch_init): Update.
9726 (delta68_frame_args_address): Update.
9727 * m32r-tdep.c (m32r_gdbarch_init): Update.
9728 * hppa-tdep.c (hppa_gdbarch_init): Update.
9729 * h8300-tdep.c (h8300_gdbarch_init): Update.
9730 * frv-tdep.c (frv_gdbarch_init): Update.
9731 (frv_frameless_function_invocation): Update.
9732 * cris-tdep.c (cris_gdbarch_init): Update.
9733 (cris_frameless_function_invocation): Update.
9734 * avr-tdep.c (avr_gdbarch_init): Update.
9735 * arm-tdep.c (arm_gdbarch_init): Update.
9736 * stack.c (frame_info): Update, call predicate.
9737 * rs6000-tdep.c (rs6000_frame_chain): Update, call predicate..
9738 * frame.c (legacy_get_prev_frame): Update, call predicate..
9739 * arch-utils.c (generic_frameless_function_invocation_not): Delete.
9740 * arch-utils.h (generic_frameless_function_invocation_not): Delete.
9741 * alpha-tdep.c (alpha_gdbarch_init): Do not set frameless function
9742 invocation.
9743 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9744 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
9745 * vax-tdep.c (vax_gdbarch_init): Ditto.
2be8b3c1
AC
9746
9747 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): Delete unused
9748 function.
9749
7dcaac91
DJ
97502004-02-16 Daniel Jacobowitz <drow@mvista.com>
9751
9752 * objfiles.c (terminate_minimal_symbol_table): Remove unnecessary
9753 initializations.
9754
88289b6e
AC
97552004-02-16 Andrew Cagney <cagney@redhat.com>
9756
9757 * tui/tui-windata.c: Include "gdb_string.h".
9758 * tui/tui-source.c, tui/tui-winsource.c: Ditto.
9759 * tui/tui-layout.c, tui/tui-command.c: Ditto.
9760 * Makefile.in: Update dependencies.
9761
9f976b41
DJ
97622004-02-16 Daniel Jacobowitz <drow@mvista.com>
9763
9764 * Makefile.in (infrun.o): Add $(gdb_assert_h).
9765 * infrun.c: Include "gdb_assert.h".
9766 (singlestep_ptid, saved_singlestep_ptid)
9767 (stepping_past_singlestep_breakpoint): New variables.
9768 (resume): Set singlestep_ptid. Check for singlestep thread
9769 hop.
9770 (init_wait_for_inferior): Clear stepping_past_singlestep_breakpoint.
9771 (handle_inferior_event): Handle singlestep thread hop.
9772
c324d747
AC
97732004-02-16 Andrew Cagney <cagney@redhat.com>
9774
f090b9b1
AC
9775 * dwarf2-frame.c (dwarf2_frame_ops): New function.
9776 (dwarf2_frame_set_init_reg): Use, instead of gdbarch_data.
9777 (dwarf2_frame_init_reg): Ditto.
9778
fd33e6cb
AC
9779 * printcmd.c (display_command): Check that EXP isn't NULL. Fix
9780 suggested by Joshua Neuheisel
9781
c324d747
AC
9782 * configure.in: Always check for curses, including pdcurses.
9783 Warn, instead of error, when no curses are found. Enable TUI when
9784 curses is available.
9785 * configure: Re-generate.
9786
b66ba949
CV
97872004-02-16 Corinna Vinschen <vinschen@redhat.com>
9788
9789 * sh-tdep.c (sh_register_convert_to_virtual): Rename from
9790 sh_sh4_register_convert_to_virtual.
9791 (sh_register_convert_to_raw): Rename from
9792 sh_sh4_register_convert_to_raw.
9793 (sh_pseudo_register_read): Accomodate above name change.
9794 (sh_pseudo_register_write): Ditto.
9795
b58cbbf2
CV
97962004-02-16 Corinna Vinschen <vinschen@redhat.com>
9797
9798 * sh-tdep.c (sh_generic_register_name): Remove.
9799 (sh_gdbarch_init): Use sh_sh_register_name in default case.
9800
5929a910
AC
98012004-02-15 Andrew Cagney <cagney@redhat.com>
9802
4566dfcf
AC
9803 * configure.in (build_warnings): Add -Wunused-function.
9804 * configure: Re-generate.
9805
db11ed55
AC
9806 * config/tm-lynx.h (START_INFERIOR_TRAPS_EXPECTED): Delete macro.
9807 * config/rs6000/tm-rs6000.h (START_INFERIOR_TRAPS_EXPECTED): Ditto.
9808
46ac7a5d
AC
9809 * procfs.c (procfs_init_inferior): Assume that
9810 START_INFERIOR_TRAPS_EXPECTED is defined.
9811 * config/ns32k/nbsdaout.mt (TM_FILE): Set to tm-ns32k.h.
9812 * config/ns32k/tm-nbsd.h: Delete file,
9813 START_INFERIOR_TRAPS_EXPECTED already defined as 2.
9814
ba801595
AC
9815 * config/vax/tm-vaxbsd.h: Do not include "tm-vax.h".
9816 * config/vax/tm-vax.h: Delete file.
9817
5929a910
AC
9818 * config/mips/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
9819 * config/i386/tm-i386bsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
9820 * config/arm/tm-linux.h (SIGCONTEXT_PC_OFFSET): Delete macro.
9821 * config/vax/tm-vaxbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
9822 * vax-tdep.c (vax_sigtramp_saved_pc): Inline only reference.
9823 * config/ns32k/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
9824 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Inline only reference.
9825
8f22cb90
MK
98262004-02-15 Mark Kettenis <kettenis@gnu.org>
9827
9828 * dwarf2-frame.h (dwarf2_frame_set_init_reg): New prototype.
9829 * dwarf2-frame.c (dwarf2_frame_data): New variable.
9830 (struct dwarf2_frame_ops): New.
9831 (dwarf2_frame_default_init_reg): New function, based on
9832 dwarf2_frame_init_reg.
9833 (dwarf2_frame_init, dwarf2_frame_set_init_reg): New function.
9834 (dwarf2_frame_init_reg): Call architecture-specific function.
9835 (dwarf2_frame_objfile_data): Renamed from dwarf2_frame_data.
9836 (dwarf2_frame_find_fde, add_fde): Use dwarf2_frame_objfile_data
9837 instead of dwarf2_frame_data.
9838 (_initialize_dwarf2_frame): Initailize new dwarf2_frame_data.
9839 Initialize dwarf2_frame_objfile instead of old dwarf2_frame_data.
9840
8132723e
AC
98412004-02-15 Andrew Cagney <cagney@redhat.com>
9842
046a4708
AC
9843 * gdbarch.sh (deprecated_register_gdbarch_swap): Rename
9844 register_gdbarch_swap.
9845 (DEPRECATED_REGISTER_GDBARCH_SWAP): Rename REGISTER_GDBARCH_SWAP.
9846 * f-lang.c (_initialize_f_language): Update, use
9847 DEPRECATED_REGISTER_GDBARCH_SWAP.
9848 * remote.c (_initialize_remote): Ditto.
9849 * regcache.c (_initialize_regcache): Ditto.
9850 * parse.c (_initialize_parse): Ditto.
9851 * infrun.c (_initialize_infrun): Ditto.
9852 * mi/mi-main.c (_initialize_mi_main): Ditto.
9853 * gdbtypes.c (_initialize_gdbtypes): Ditto.
8a1dac83 9854
549c1eea
AC
9855 * solib.c (solib_map_sections): Use bfd_set_cacheable instead of
9856 poking .cacheable directly.
9857 * symfile.c (symfile_bfd_open): Ditto.
9858
0c0b39de
AC
9859 * Makefile.in: Update all dependencies.
9860
8132723e
AC
9861 * Makefile.in: (.SUFFIXES): Add ".l" and ".y".
9862 (.y.c, .l.c): Specify implicit rule. Instead of .tab.c, generate
9863 .c. Update references. Delete unnecessary .tab.c and -lex.c rules.
9864 (ada-exp.o, c-exp.o, f-exp.o): Replace ada-exp.tab.o et.al. rule.
9865 (jv-exp.o, m2-exp.o, objc-exp.o, p-exp.o): Similar.
0c0b39de 9866
b9d26eb9
AC
98672004-02-14 Andrew Cagney <cagney@redhat.com>
9868
8e1f669a
AC
9869 * arch-utils.c (legacy_convert_register_p): Check
9870 DEPRECATED_REGISTER_CONVERTIBLE_P.
9871 * findvar.c (value_of_register): Ditto.
9872
cd0bfa36
AC
9873 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Add predicate.
9874 * gdbarch.h, gdbarch.c: Re-generate.
9875 * arch-utils.c (deprecated_register_convertible_not): Delete.
9876 * arch-utils.h (deprecated_register_convertible_not): Delete.
9877 * mi/mi-main.c (get_register): Update. Update copyright.
9878 * infcmd.c (default_print_registers_info): Update.
9879
b9d26eb9
AC
9880 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
9881 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Delete.
9882 (DEPRECATED_CALL_DUMMY_ADDRESS): Delete.
8a1dac83 9883 * gdbarch.h, gdbarch.c: Re-generate.
b9d26eb9
AC
9884 * frame.c (deprecated_get_next_frame_hack): Delete function.
9885 * frame.h (deprecated_get_next_frame_hack): Delete declaration.
9886 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
9887 Update.
9888 * infcall.c (call_function_by_hand): Update.
9889
9ab9195f
EZ
98902004-02-14 Elena Zannoni <ezannoni@redhat.com>
9891
9892 * symfile.c (init_entry_point_info, entry_point_address): Move
8a1dac83 9893 from here...
9ab9195f
EZ
9894 * objfiles.c (init_entry_point_info, entry_point_address):..to
9895 here.
9896 * symfile.h (init_entry_point_info, entry_point_address): Remove
9897 prototypes.
9898 * objfiles.h (init_entry_point_info, entry_point_address):Add
8a1dac83 9899 prototypes.
9ab9195f
EZ
9900 * cris-tdep.c: Remove include of symfile.h. Add include of
9901 objfiles.h.
9902 * infcall.c: Ditto.
9903 * mcore-tdep.c: Ditto.
9904 * mn10300-tdep.c: Ditto.
9905 * sh64-tdep.c: Ditto.
9906 * v850-tdep.c: Ditto.
9907 * arm-tdep.c: Remove include of symfile.h.
9908 * blockframe.c: Ditto.
9909 * coffread.c: Ditto.
9910 * dbxread.c: Ditto.
9911 * dwarf2read.c: Ditto.
9912 * dwarfread.c: Ditto.
8a1dac83 9913 * frv-tdep.c: Ditto.
9ab9195f
EZ
9914 * ia64-tdep.c: Ditto.
9915 * mdebugread.c: Ditto.
9916 * mipsread.c: Ditto.
8a1dac83 9917 * rs6000-tdep.c: Ditto.
9ab9195f
EZ
9918 * s390-tdep.c: Ditto.
9919 * sh-tdep.c: Ditto.
8a1dac83 9920 * xstormy16-tdep.c: Ditto.
9ab9195f
EZ
9921 * gdbarch.sh: Remove include of symfile.h.
9922 * gdbarch.c: Regenerate.
9923 * solib-irix.c (enable_break): Use entry_point_address().
9924 Add comment about include file.
9925 * xcoffread.c: Add comment about include file.
8a1dac83
RM
9926 * Makefile.in (arm-tdep.o, blockframe.o, coffread.o, cris-tdep.o)
9927 (dbxread.o, dwarf2read.o, dwarfread.o, frv-tdep.o, gdbarch.o)
9928 (ia64-tdep.o, infcall.o, mcore-tdep.o, mdebugread.o, mipsread.o)
9929 (mn10300-tdep.o, rs6000-nat.o, s390-tdep.o, sh64-tdep.o)
9ab9195f
EZ
9930 (sh-tdep.o, v850-tdep.o, xstormy16-tdep.o): Update dependencies.
9931
c4c5b7ba
AC
99322004-02-13 Andrew Cagney <cagney@redhat.com>
9933
9934 * corelow.c (core_xfer_partial): Use "struct bfd_section".
9935 * config/sparc/nm-nbsd.h (struct target_ops): Declare, update
9936 copyright.
9937 * mips-linux-tdep.c: Use "GNU/Linux", update copyright.
9938
3e7879de
FF
99392004-02-12 Fred Fish <fnf@redhat.com>
9940
9941 * m68hc11-tdep.c (m68hc11_gdbarch_init): Remove duplicate call to
9942 set_gdbarch_store_return_value.
9943
6a7760b6
AC
99442004-02-12 Andrew Cagney <cagney@redhat.com>
9945
9946 * remote-rdi.c (arm_rdi_start_remote): Delete unused function.
9947 (arm_rdi_interrupt, arm_rdi_interrupt_twice): Ditto.
9948 (interrupt_query): Ditto.
9949 (ofunc): Delete unused variable.
9950 * cris-tdep.c (cris_abi): Delete unused function.
9951 (reg_pop_op, move_reg_to_mem_index_inc_op): Ditto.
9952 (cris_get_wide_opcode, cris_get_short_size): Ditto.
9953 (cris_get_asr_quick_shift_steps): Ditto.
9954 (cris_skip_prologue_frameless_p): Ditto.
9955 * arm-tdep.c (arm_push_return_address): Delete unused function.
9956 (arm_push_dummy_frame, arm_fix_call_dummy): Ditto.
9957 * rs6000-tdep.c (rs6000_pc_in_call_dummy): Delete unused function.
9958 * s390-tdep.c (s390_function_start): Delete unused function.
9959
31687c3c
AC
99602004-02-12 Andrew Cagney <cagney@redhat.com>
9961
9962 * gdbarch.sh (PROLOGUE_FRAMELESS_P): Delete.
9963 gdbarch.h, gdbarch.c: Re-generate.
9964 * cris-tdep.c (cris_gdbarch_init): Do not set prologue_frameless_p
9965 to generic_prologue_frameless_p.
9966 * arch-utils.h (generic_prologue_frameless_p): Delete declaration.
9967 * arch-utils.c (generic_prologue_frameless_p): Delete function.
9968
6de918a6
DJ
99692004-02-11 Daniel Jacobowitz <drow@mvista.com>
9970
9971 * mips-linux-tdep.c: Include "frame.h".
9972 (mips_linux_in_dynsym_stub, mips_linux_in_dynsym_resolve_code)
9973 (mips_linux_skip_resolver): New functions.
9974 (mips_linux_init_abi): Call set_gdbarch_skip_solib_resolver
9975 and set_gdbarch_in_solib_call_trampoline.
9976 * mips-tdep.c (mips_gdbarch_init): Move gdbarch_init_osabi call
9977 to after set_gdbarch_in_solib_return_trampoline. Only set the
9978 solib hooks to mips16 functions if the OS ABI is unknown.
9979 * config/mips/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Undefine after
9980 including "config/tm-linux.h".
9981 (IN_SOLIB_DYNSYM_RESOLVE_CODE): Define.
9982 * Makefile.in (mips-linux-tdep.o): Update.
9983
87b3ede8
DC
99842004-02-11 David Carlton <carlton@kealia.com>
9985
9986 * linespec.c (decode_compound): Only look for a class symbol when
9987 considering all but the rightmost component.
9988
5979bc46
AC
99892004-02-11 Andrew Cagney <cagney@redhat.com>
9990
9991 * hppa-tdep.c (hppa_gdbarch_init): Re-order so that the frame and
9992 abi code are are separatly grouped.
9993
5867a2fb
AC
99942004-02-11 Andrew Cagney <cagney@redhat.com>
9995
9996 * gdbarch.sh (FRAME_ARGS_SKIP): Default to 0.
9997 * gdbarch.h, gdbarch.c: Re-generate.
9998 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9999 * v850-tdep.c (v850_gdbarch_init): Update.
10000 * sh64-tdep.c (sh64_gdbarch_init): Update.
10001 * sh-tdep.c (sh_gdbarch_init): Update.
10002 * s390-tdep.c (s390_gdbarch_init): Update.
10003 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10004 * mips-tdep.c (mips_gdbarch_init): Update.
10005 * mcore-tdep.c (mcore_gdbarch_init): Update.
10006 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10007 * m32r-tdep.c (m32r_gdbarch_init): Update.
10008 * ia64-tdep.c (ia64_gdbarch_init): Update.
10009 * hppa-tdep.c (hppa_gdbarch_init): Update.
10010 * h8300-tdep.c (h8300_gdbarch_init): Update.
10011 * frv-tdep.c (frv_gdbarch_init): Update.
10012 * d10v-tdep.c (d10v_gdbarch_init): Update.
10013 * cris-tdep.c (cris_gdbarch_init): Update.
10014 * avr-tdep.c (avr_gdbarch_init): Update.
10015 * arm-tdep.c (arm_gdbarch_init): Update.
10016 * alpha-tdep.c (alpha_gdbarch_init): Update.
10017
026a72f8
CV
100182004-02-11 Corinna Vinschen <vinschen@redhat.com>
10019
10020 * sh-tdep.c (sh_sh3_dsp_register_name): Fix formatting. Add missing
10021 comma.
10022 (sh_sh4al_dsp_register_name): Ditto.
10023
3903d437
AC
100242004-02-10 Andrew Cagney <cagney@redhat.com>
10025
10026 * mips-tdep.c (mips_gdbarch_init): Delete deprecated frame code.
10027 (mips_init_frame_pc_first): Delete function.
10028 (mips_frame_saved_pc): Delete function.
10029 (mips_frame_chain): Delete function.
10030 (mips_init_extra_frame_info): Delete function.
10031 (mips_xfer_register): Delete unused variable "reg".
10032 (mips_n32n64_push_dummy_call): Delete unused variable "valbuf".
10033 (mips_n32n64_return_value): Delete unused variable "reg".
10034 (mips_n32n64_return_value): Delete unused variable "pos".
10035 (mips_o32_push_dummy_call): Delete unused variable "valbuf".
10036 (mips_o32_return_value): Delete unused variable "pos".
10037 (mips_o64_push_dummy_call): Delete unused variable "valbuf".
10038 (mips_print_fp_register): Delete unused variable "namelen"
10039 (mips_print_fp_register): Delete unused variable "flt2"
10040 (get_frame_pointer): Delete function.
10041 (cached_proc_desc): Delete static variable.
10042 (mips_pop_frame): Delete function.
10043 (mips_find_saved_regs): Delete function.
10044 (mips_get_saved_register): Delete function.
10045 (mips_saved_pc_after_call): Delete function.
10046 (SIGFRAME_BASE): Delete macro.
10047 (SIGFRAME_FPREGSAVE_OFF): Delete macro.
10048 (SIGFRAME_PC_OFF): Delete macro.
10049 (SIGFRAME_REGSAVE_OFF): Delete macro.
10050 (mips_dump_tdep): Do not print deleted macro definitions.
10051
b9fb98bd
AC
100522004-02-10 Andrew Cagney <cagney@redhat.com>
10053
10054 * Makefile.in (SFILES): Remove explictly listed tui files.
10055 (SUBDIR_GDBTK_SRCS): Fix path to gdbtk-interp.c.
10056
78ced177 100572004-02-10 Jeff Johnston <jjohnstn@redhat.com>
8a1dac83 10058
78ced177
JJ
10059 * ia64-tdep.c (ia64_frame_this_id): Fix tracing print statement
10060 to use paddr functions to format ia64 addresses and long values.
10061 (ia64_frame_prev_register, ia64_sigtramp_frame_this_id): Ditto.
10062 (ia64_sigtramp_frame_prev_register, ia64_access_reg): Ditto.
10063 (get_kernel_table, ia64_find_proc_info_x): Ditto.
10064 (ia64_get_dyn_info_list, ia64_libunwind_this_frame_id): Ditto.
10065 (ia64_libunwind_frame_prev_register, ia64_unwind_dummy_id): Ditto.
10066
6a83354a
AC
100672004-02-10 Andrew Cagney <cagney@redhat.com>
10068
10069 * defs.h: Do not include "tui.h".
10070 * gdb_curses.h: New file.
10071 * tui/tui-hooks.h: New file.
10072 * tui/tui.h (tui_update_all_exec_infos): Delete declaration.
10073 (tui_install_hooks, tui_remove_hooks): Delete declarations.
10074 (tui_initialize_io): Delete declaration.
10075 (tui_initialize_readline: Delete redundant declaration.
10076 (struct tui_point): Delete definition.
10077 * tui/tui-data.h (struct tui_point): Define.
10078 * cli/cli-decode.c [TUI]: Include "tui/tui.h".
10079 * utils.c: Include "tui/tui.h".
10080 * tui/tui-data.h: Include "tui/tui.h" and "gdb_curses.h".
10081 * printcmd.c [TUI]: Include "tui/tui.h".
10082 * cli/cli-cmds.c [TUI]: Include "tui/tui.h".
10083 * tui/tui-command.c: Include "gdb_curses.h".
10084 * tui/tui.c, tui/tui-winsource.c, tui/tui-wingeneral.c: Ditto.
10085 * tui/tui-windata.c, tui/tui-win.c, tui/tui-stack.c: Ditto.
10086 * tui/tui-source.c, tui/tui-regs.c, tui/tui-layout.c: Ditto.
10087 * tui/tui-io.c, tui/tui-disasm.c, tui/tui-data.c: : Ditto.
10088 * tui/tui-hooks.c: Include "tui-hooks.h" and "gdb_curses.h".
10089 * Makefile.in: Update all dependencies.
10090 (tui_hooks_h, gdb_curses_h): Define.
10091 (SUBDIR_TUI_CFLAGS): Remove -I${srcdir}/tui.
10092
997470ef
EZ
100932004-02-10 Elena Zannoni <ezannoni@redhat.com>
10094
10095 * objfiles.h (struct objfile): Remove unused fields auxf1 and
10096 auxf2. Add comments about some other rarely used fields.
10097
4ff2cc4d
AC
100982004-02-10 Andrew Cagney <cagney@redhat.com>
10099
10100 * Makefile.in (init.c): Fix script removing duplicates. Problem
10101 reported by Peter Schauer.
10102
1ab21617
EZ
101032004-02-09 Elena Zannoni <ezannoni@redhat.com>
10104
10105 * bcache.c (bcache_xmalloc): Use obstack_init instead of
10106 obstack_specify_allocation.
10107 * objfiles.c (allocate_objfile): Ditto.
8a1dac83 10108 * solib-sunos.c (solib_add_common_symbols)
1ab21617
EZ
10109 (allocate_rt_common_objfile): Ditto.
10110 * symfile.c (reread_symbols): Ditto.
10111 * gdb_obstack.h: Add comment.
10112
17763fd9
EZ
101132004-02-09 Elena Zannoni <ezannoni@redhat.com>
10114
10115 * linespec.c (decode_line_1, locate_first_half)
10116 (decode_compound, lookup_prefix_sym): Update comments. Delete old
10117 commented out code.
10118
ec5cdd75
DJ
101192004-02-09 Daniel Jacobowitz <drow@mvista.com>
10120
10121 * cp-namespace.c (check_one_possible_namespace_symbol): Don't use
10122 obstack_free.
10123
43b54b88
AC
101242004-02-09 Andrew Cagney <cagney@redhat.com>
10125
10126 * blockframe.c (find_pc_partial_function): If find_pc_overlay
10127 fails, try find_pc_section. Fix PR c++/1267.
10128 * minsyms.c (lookup_minimal_symbol_by_pc): Use find_pc_section
10129 instead of find_pc_mapped_section.
10130 (lookup_minimal_symbol_by_pc_section): If the SECTION is NULL, do
10131 not default to the section containing PC. Fix PR symtab/1519.
10132
edfae063
AC
101332004-02-09 Andrew Cagney <cagney@redhat.com>
10134
10135 * Makefile.in (mips-tdep.o): Update dependencies.
10136 * mips-tdep.c: Include "frame-unwind.h", "frame-base.h" and
10137 "trad-frame.h".
10138 (mips_unwind_pc): Return the pseudo PC register.
10139 (mips_unwind_dummy_id): New function.
10140 (mips16_fetch_instruction): New function.
10141 (mips32_fetch_instruction): New function.
10142 (struct mips_frame_cache): Define.
10143 (mips_mdebug_frame_cache): New function.
10144 (mips_mdebug_frame_this_id): New function.
10145 (mips_mdebug_frame_prev_register): New function.
10146 (mips_mdebug_frame_unwind): Define.
10147 (mips_mdebug_frame_sniffer): New function.
10148 (mips_mdebug_frame_base_address): New function.
10149 (mips_mdebug_frame_base): Define.
10150 (mips_mdebug_frame_base_sniffer): New function.
10151 (mips_gdbarch_init): Append unwind and base sniffers. Set
10152 unwind_dummy_id.
10153
defc864c
AC
101542004-02-08 Andrew Cagney <cagney@redhat.com>
10155
6764ddad
AC
10156 * frame.c: Print both the register number and name.
10157
defc864c
AC
10158 * Makefile.in (init.c): Eliminate duplicates. Combine two greps
10159 and a sed into a single sed. Make .c and .o patterns more robust.
10160 (OBS): Delete.
10161 (INIT_FILES): Replace OBS with COMMON_OBS.
10162 (COMMON_OBS): Move DEPFILES and YYOBJ to start of definition.
10163
645d6d10
MK
101642004-02-08 Mark Kettenis <kettenis@gnu.org>
10165
10166 * sparc-nat.c (sparc_xfer_wcookie): Try to fetch the cookie using
10167 the PT_WCOOKIE request.
10168
23e3c3fc
AC
101692004-02-08 Andrew Cagney <cagney@redhat.com>
10170
58dfe9ff
AC
10171 * mips-tdep.c (mips_unwind_pc): New function.
10172 (mips_gdbarch_init): Set mips_unwind_pc.
10173
1152e35e
AC
10174 * frame.c (legacy_saved_regs_this_id): Return a null frame ID.
10175 (get_frame_id): Allow the UNKNOWN_FRAME.
10176 (frame_register_unwind, get_frame_type): Ditto.
10177
31b75dbf
AC
10178 * frame.c (legacy_frame_p): Check for DEPRECATED_TARGET_READ_FP_P
10179 and DEPRECATED_FP_REGNUM. Don't assume that the lack of
10180 unwind_dummy_id indicates a legacy frame.
10181
3483b318
AC
10182 * configure.in (CONFIG_LIB_OBS): Replace with CONFIG_OBS.
10183 * configure: Re-generate.
10184
23e3c3fc
AC
10185 * mips-tdep.c (mips_gdbarch_init): Group deprecated frame unwind
10186 methods.
10187
33f8ca73
AC
101882004-02-08 Andrew Cagney <cagney@redhat.com>
10189
10190 * configure.in (CONFIG_ALL): Set to Makefile target, and not
10191 makefile macro.
10192 * configure: Re-generate.
10193 (CONFIG_CLEAN, CONFIG_INSTALL, CONFIG_UNINSTALL): Ditto.
10194 * Makefile.in (SUBDIR_CLI_CLEAN): Delete.
10195 (SUBDIR_CLI_INSTALL, SUBDIR_CLI_UNINSTALL): Delete.
10196 (SUBDIR_CLI_ALL, SUBDIR_GDBTK_ALL): Delete.
10197 (SUBDIR_GDBTK_CLEAN, SUBDIR_GDBTK_INSTALL): Delete.
10198 (SUBDIR_GDBTK_UNINSTALL, SUBDIR_MI_ALL): Delete.
10199 (SUBDIR_MI_CLEAN, SUBDIR_MI_INSTALL): Delete.
10200 (SUBDIR_MI_UNINSTALL, SUBDIR_TUI_ALL): Delete.
10201 (SUBDIR_TUI_CLEAN, SUBDIR_TUI_INSTALL): Delete.
10202 (SUBDIR_TUI_UNINSTALL, SUBDIR_CLI_CLEAN): Delete.
10203
6ba8e26f 102042004-02-07 Andrew Cagney <cagney@redhat.com>
d836ee13 10205
20d286a5
AC
10206 * Makefile.in: Update all dependencies.
10207
d836ee13
AC
10208 * configure.in (CONFIG_INITS, CONFIG_LIB_OBS): Delete.
10209 * configure: Re-generate.
10210 * Makefile.in (INIT_FILES): Replace CONFIG_INITS with CONFIG_SRCS.
10211 (CONFIG_LIB_OBS, CONFIG_INITS): Delete.
10212 (COMMON_OBS): Add "main.o" and "annotate.o".
10213 (ANNOTATE_OBS): Delete.
10214 (OBS): Remove ANNOTATE_OBS.
10215 (DEPFILES): Replace CONFIG_LIB_OBS with CONFIG_LIB_OBS, remove
10216 CONFIG_INITS.
10217 (gdb$(EXEEXT), insight$(EXEEXT)): Do not depend on, or link
10218 against CONFIG_OBS and "main.o".
10219 (SUBDIR_CLI_INITS, SUBDIR_MI_INITS): Delete.
10220 (SUBDIR_TUI_INITS, SUBDIR_GDBTK_INITS): Delete.
10221
d02c80cd
AC
10222 * tui/tui-command.c: Include "gdb_string.h", delete register
10223 attribute, use ISO-C function signatures.
10224 * tui/tui-disasm.c, tui/tui-file.c, tui/tui-io.c: Ditto.
10225 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
10226 * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Ditto.
10227 * tui/tui.c: Ditto.
6ba8e26f
AC
10228
10229 * tui/tui-command.c: Change variable and function names to lower
10230 case.
10231 * tui/tui-data.c, tui/tui-disasm.c: Ditto.
10232 * tui/tui-hooks.c, tui/tui-io.c, tui/tui-layout.c: Ditto.
10233 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
10234 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
10235 * tui/tui-winsource.c, tui/tui.c: Ditto.
10236
4a146b47
EZ
102372004-02-07 Elena Zannoni <ezannoni@redhat.com>
10238
10239 * buildsym.c (free_pending_blocks, finish_block)
10240 (record_pending_block, make_blockvector, end_symtab): Replace
10241 symbol_obstack with objfile_obstack.
8a1dac83 10242 * coffread.c (process_coff_symbol, coff_read_struct_type)
4a146b47 10243 (coff_read_enum_type): Ditto.
8a1dac83 10244 * cp-namespace.c (initialize_namespace_symtab)
4a146b47 10245 (check_one_possible_namespace_symbol): Ditto.
8a1dac83 10246 * dwarf2read.c (new_symbol, dwarf2_const_value, macro_start_file)
4a146b47
EZ
10247 (dwarf2_symbol_mark_computed): Ditto.
10248 * dwarfread.c (enum_type, new_symbol, synthesize_typedef): Ditto.
10249 * elfread.c (elf_symtab_read): Ditto.
10250 * hpread.c (hpread_symfile_init, hpread_symfile_init)
10251 (hpread_read_enum_type, hpread_read_function_type)
10252 (hpread_read_doc_function_type, hpread_process_one_debug_symbol):
10253 Ditto.
8a1dac83 10254 * jv-lang.c (get_java_class_symtab, add_class_symbol)
4a146b47 10255 (java_link_class_type): Ditto.
8a1dac83 10256 * mdebugread.c (parse_symbol, psymtab_to_symtab_1, new_symtab)
4a146b47
EZ
10257 (new_symbol): Ditto.
10258 * minsyms.c (install_minimal_symbols): Ditto.
10259 * objfiles.c (allocate_objfile): Remove init of symbol_obstack.
10260 (terminate_minimal_symbol_table): Replace symbol_obstack with
10261 objfile_obstack.
10262 (free_objfile): Remove freeing of symbol_obstack.
10263 * objfiles.h: Remove symbol_obstack field.
10264 * pa64solib.c (add_to_solist): Replace symbol_obstack with
10265 objfile_obstack.
10266 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
10267 symbol_obstack.
10268 (solib_add_common_symbols): Replace symbol_obstack with
10269 objfile_obstack.
10270 * somsolib.c (som_solib_add): Ditto.
10271 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
10272 (common_block_start, common_block_end): Ditto.
10273 * symfile.c (reread_symbols): Remove freeing and init of
10274 symbol_obstack.
10275 (allocate_symtab): Rename symbol_obstack to objfile_obstack.
10276 * symfile.h: Update comment.
10277 * symmisc.c (print_objfile_statistics): Remove symbol_obstack
10278 stats printing.
10279 * symtab.c (symbol_set_names): Replace symbol_obstack with
10280 objfile_obstack.
10281 * symtab.h (struct general_symbol_info, struct minimal_symbol):
10282 Update comments.
10283 * xcoffread.c (read_xcoff_symtab, SYMBOL_DUP, SYMNAME_ALLOC)
10284 (init_stringtab, xcoff_initial_scan): Replace symbol_obstack with
10285 objfile_obstack.
10286
6d012f14
AC
102872004-02-07 Andrew Cagney <cagney@redhat.com>
10288
10289 * tui/tui.h: Do not include <stdarg.h>, <string.h>, and
10290 "ansidecl.h". Do not undef "reg" and "chtype". Fix case of
10291 fields and variables.
10292 * tui/tui-wingeneral.h (m_beVisible): Delete macro.
10293 (m_beInvisible): Delete macro.
10294 * tui/tui-data.h: Fix case case fields and variables.
10295 (m_genWinPtrIsNull): Delete macro.
10296 (tui_win_list): Rename winList.
10297 (TUI_SRC_WIN): Rename srcWin.
10298 (TUI_DISASM_WIN): Rename disassemWin.
10299 (TUI_DATA_WIN): Rename dataWin.
10300 (TUI_CMD_WIN): Rename cmdWin.
10301 (m_genWinPtrNotNull): Delete macro.
10302 (m_winPtrIsNull): Delete macro.
10303 (m_winPtrNotNull): Delete macro.
10304 (tui_win_is_source_type): Replace m_winIsSourceType
10305 (tui_win_is_auxillary): Replace m_winIsAuzillary.
10306 (tui_win_has_locator): Replace m_hasLocator.
10307 (tui_set_win_highlight): Replace m_setWinHighlightOn and
10308 m_setWinHighlightOff.
10309 * tui/tui-data.c: Update references.
10310 (tui_win_is_source_type, tui_set_win_highlight): New functions.
10311 (tui_win_has_locator, tui_win_is_auxillary): New functions.
10312 * tui/tui-command.c, tui/tui-disasm.c: Update references.
10313 * tui/tui-io.c, tui/tui-layout.c, tui/tui-regs.c: Ditto.
10314 * tui/tui-regs.h, tui/tui-source.c, tui/tui-stack.c: Ditto.
10315 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
10316 * tui/tui-winsource.c, tui/tui.c: Ditto.
10317
7d34766b
MK
103182004-02-07 Mark Kettenis <kettenis@gnu.org>
10319
1c800673
MK
10320 * sparc-tdep.h (sparc_fetch_wcookie): New prototype.
10321 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Handle
10322 StackGhost.
10323
7d34766b
MK
10324 * sparc-tdep.c (sparc32_frame_prev_register): Rename local
10325 variable `i6' to `i7'.
10326 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
10327
22940a24
AC
103282004-02-07 Andrew Cagney <cagney@redhat.com>
10329
10330 * tui/tui.h (Opaque, OpaquePtr OpaqueList): Delete definition.
10331 (TuiPoint, TuiPointPtr): Ditto.
10332 (TuiStatus, TuiStatusPtr): Ditto.
10333 (TuiWinType, TuiWinTypePtr): Ditto.
10334 (struct tui_point): Rename _TuiPoint.
10335 (tui_get_low_disassembly_address): Rename
10336 tuiGetLowDisassemblyAddress.
10337 (tui_update_all_exec_infos): Rename tuiUpdateAllExecInfos.
10338 (tuiFree): Delete declaration.
10339 (OpaqueFuncPtr, TuiOpaqueFuncPtr): Delete definitions.
10340 (TuiVoidFuncPtr, TuiIntFuncPtr): Delete definitions.
10341 * tui/tui.c (tuiFree): Delete function.
10342 * cli/cli-cmds.c (disassemble_command): Update references.
10343 * tui/tui-data.c, tui/tui-data.h, tui/tui-disasm.c: Ditto.
10344 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
10345 * tui/tui-stack.c, tui/tui-win.c, tui/tui-wingeneral.c: Ditto.
10346 * tui/tui-winsource.c: Ditto.
10347
8b92e4d5
EZ
103482004-02-07 Elena Zannoni <ezannoni@redhat.com>
10349
10350 * dbxread.c (dbx_symfile_init, start_psymtab, end_psymtab,
10351 coffstab_build_psymtabs, elfstab_build_psymtabs)
10352 (stabsect_build_psymtabs): Replace psymbol_obstack with
10353 objfile_obstack.
10354 * dwarf2-frame.c (decode_frame_entry_1): Ditto.
10355 * dwarf2read.c (dwarf2_build_psymtabs_hard, dwarf2_read_section):
10356 Ditto.
10357 * dwarfread.c (scan_compilation_units): Ditto.
10358 * elfread.c (elfstab_offset_sections): Ditto.
10359 * hppa-tdep.c (read_unwind_info): Ditto.
10360 * hpread.c (hpread_build_psymtabs, hpread_start_psymtab)
10361 (hpread_end_psymtab): Ditto.
10362 * mdebugread.c (mdebug_build_psymtabs, add_pending)
10363 (parse_partial_symbols, new_psymtab, elfmdebug_build_psymtabs):
10364 Ditto.
10365 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
8a1dac83 10366 * objfiles.c (add_to_objfile_sections)
8b92e4d5
EZ
10367 (build_objfile_section_table): Ditto.
10368 (allocate_objfile): Remove init of psymbol_obstack.
10369 (free_objfile): Remove freeing of psymbol_obstack.
10370 * objfiles.h (struct objfile): Remove field
10371 psymbol_obstack. Update comments.
10372 * pa64solib.c (pa64_solib_add_solib_objfile): Replace
10373 psymbol_obstack with objfile_obstack.
10374 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
10375 psymbol_obstack.
10376 * somread.c (som_symfile_offsets, init_import_symbols)
10377 (init_export_symbols): Replace psymbol_obstack with
10378 objfile_obstack.
10379 * somsolib.c (som_solib_add_solib_objfile): Ditto.
10380 * symfile.c (default_symfile_offsets, syms_from_objfile)
10381 (reread_symbols): Remove freeing and init of psymbol_obstack.
10382 (cashier_psymtab): Update comment.
10383 * symmisc.c (print_objfile_statistics): Don't report stats for
10384 psymbol obstack.
10385 * symtab.h (struct general_symbol_info, struct partial_symtab):
10386 Update comments.
10387 * xcoffread.c (xcoff_start_psymtab, xcoff_end_psymtab, swap_sym)
10388 (xcoff_symfile_offsets): Replace psymbol_obstack with
10389 objfile_obstack.
10390
b99607ea
EZ
103912004-02-07 Elena Zannoni <ezannoni@redhat.com>
10392
10393 * objfiles.h (struct objfile): Add objfile_obstack field.
10394 Remove type_obstack field.
10395
10396 * dwarf2read.c (dwarf2_add_field,dwarf2_add_member_fn,
10397 read_structure_scope read_enumeration, new_symbol): Replace
10398 type_obstack with objfile_obstack.
10399 * dwarfread.c (struct_type, enum_type): Ditto.
8a1dac83 10400 * gdbtypes.c (alloc_type, alloc_type_instance, init_type)
b99607ea
EZ
10401 (lookup_fundamental_type): Ditto.
10402 * gdbtypes.h (TYPE_ALLOC): Ditto.
8a1dac83
RM
10403 * hpread.c (hpread_read_enum_type, hpread_read_function_type)
10404 (hpread_read_doc_function_type, hpread_read_struct_type)
10405 (fix_static_member_physnames, hpread_read_array_type)
b99607ea 10406 (hpread_read_subrange_type, hpread_type_lookup): Ditto.
8a1dac83 10407 * jv-lang.c (java_lookup_class, type_from_class, type_from_class)
b99607ea
EZ
10408 (java_link_class_type): Ditto.
10409 * mdebugread.c (parse_type): Ditto.
10410 * objfiles.c (allocate_objfile, free_objfile): Ditto.
10411 * solib-sunos.c (solib_add_common_symbols): Ditto.
10412 * stabsread.c (define_symbol, read_type, read_member_functions,
10413 read_cpp_abbrev, read_one_struct_field): Ditto.
10414 * symfile.c (reread_symbols): Ditto.
10415 * symmisc.c (print_objfile_statistics): Ditto.
8a1dac83 10416
2a8854a7
AC
104172004-02-07 Andrew Cagney <cagney@redhat.com>
10418
10419 * tui/tui-data.h (tui_win_element): Rename TuiWinElement.
10420 (tui_exec_info_content): Rename TuiExecInfoContent.
10421 (TuiGenWinInfo, TuiGenWinInfoPtr): Delete definitions.
10422 (TuiWinInfo, TuiWinInfoPtr): Ditto.
10423 (TuiScrollDirection, TuiScrollDirectionPtr): Ditto.
10424 (TuiList, TuiListPtr): Ditto.
10425 (TuiLayoutType, TuiLayoutTypePtr): Ditto.
10426 (TuiDataType, TuiDataTypePtr): Ditto.
10427 (TuiRegisterDisplayType, TuiRegisterDisplayTypePtr): Ditto.
10428 (TuiLineOrAddress, TuiLineOrAddressPtr): Ditto.
10429 (TuiLayoutDef, TuiLayoutDefPtr): Ditto.
10430 (TuiSourceElement, TuiSourceElementPtr): Ditto.
10431 (TuiDataElement, TuiDataElementPtr): Ditto.
10432 (TuiWinElement, TuiWinElementPtr): Ditto.
10433 (TuiDataInfo, TuiDataInfoPtr): Ditto.
10434 (TuiCommandElement, TuiCommandElementPtr): Ditto.
10435 (TuiLocatorElement, TuiLocatorElementPtr): Ditto.
10436 (TuiWhichElement, TuiWhichElementPtr): Ditto.
10437 (TuiSourceInfo, TuiSourceInfoPtr): Ditto.
10438 (TuiCommandInfo, TuiCommandInfoPtr): Ditto.
10439 * tui/tui-command.c, tui/tui-data.c: Update references.
10440 * tui/tui-data.h, tui/tui-disasm.c, tui/tui-layout.c: Ditto.
10441 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
10442 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
10443 * tui/tui-winsource.c, tui/tui.c: Ditto.
8a1dac83 10444
05cbe71a
MK
104452004-02-07 Mark Kettenis <kettenis@gnu.org>
10446
10447 * dwarf2-frame.h: Update copyright.
10448 (enum dwarf2_frame_reg_rule): New.
10449 (struct dwarf2_frame_state_reg): New.
10450 (dwarf2_frame_sniffer, dwarf2_frame_base_sniffer): Make extern.
10451 * dwarf2-frame.c: Update copyright.
10452 (enum dwarf2_reg_rule): Remove.
10453 (struct dwarf2_frame_state): Remove defenition of `struct
10454 dwarf2_frame_state_reg'.
10455 (read_reg): Call get_frame_arch to get the architecture instead of
10456 using CURRENT_GDBARCH.
10457 (execute_cfa_program): Prefix old `enum dwarf2_reg_rule' tags with
10458 DWARF2_FRAME_.
10459 (dwarf2_frame_init_reg): New function.
10460 (dwarf2_frame_cache): Call get_frame_arch to get the architecture
10461 instead of using CURRENT_GDBARCH. Call dwarf2_frame_init_reg to
10462 initialize the register state. Prefix old `enum dwarf2_reg_rule'
10463 tags with DWARF2_FRAME_.
10464 (dwarf2_frame_prev_register): Call get_frame_arch to get the
10465 architecture instead of using CURRENT_GDBARCH. Prefix old `enum
10466 dwarf2_reg_rule' tags with DWARF2_FRAME_.
10467
ec7d9e56
AC
104682004-02-06 Andrew Cagney <cagney@redhat.com>
10469
dd1abb8c
AC
10470 * tui/tui-data.h (struct tui_list): Rename _TuiList.
10471 (enum tui_data_type): Rename _TuiDataType.
10472 (struct tui_layout_def): Rename _TuiLayoutDef.
10473 (struct tui_source_element): Rename _TuiSourceElement.
10474 (struct tui_data_element): Rename _TuiDataElement.
10475 (struct tui_command_element): Rename _TuiCommandElement.
10476 (struct tui_locator_element): Rename _TuiLocatorElement.
10477 (union tui_which_element): Define.
10478 (struct tui_win_element): Rename _TuiWinElement.
10479 (struct tui_data_info): Rename _TuiDataInfo.
10480 (struct tui_source_info): Rename _TuiSourceInfo.
10481 (struct tui_command_info): Rename _TuiCommandInfo.
10482 (tui_initialize_static_data): Rename initializeStaticData.
10483 (tui_alloc_generic_win_info): Rename allocGenericWinInfo.
10484 (tui_alloc_win_info): Rename allocWinInfo.
10485 (tui_init_generic_part): Rename initGenericPart.
10486 (tui_init_win_info): Rename initWinInfo.
10487 (tui_alloc_content): Rename allocContent.
10488 (tui_add_content_elements): Rename addContentElements.
10489 (tui_init_content_element): Rename initContentElement.
10490 (tui_free_window): Rename freeWindow.
10491 (tui_free_win_content): Rename freeWinContent.
10492 (tui_free_data_content): Rename freeDataContent.
10493 (tui_free_all_source_wins_content): Rename
10494 freeAllSourceWinsContent.
10495 (tui_del_window): Rename tuiDelWindow.
10496 (tui_del_data_windows): Rename tuiDelDataWindows.
10497 (tui_partial_win_by_name): Rename partialWinByName.
10498 (tui_win_name): Rename winName.
10499 (tui_current_layout): Rename currentLayout.
10500 (tui_set_current_layout_to): Rename setCurrentLayoutTo.
10501 (tui_term_height): Rename termHeight.
10502 (tui_set_term_height_to): Rename setTermHeightTo.
10503 (tui_term_width): Rename termWidth.
10504 (tui_set_term_width_to): Rename setTermWidthTo.
10505 (tui_set_gen_win_origin): Rename setGenWinOrigin.
10506 (tui_locator_win_info_ptr): Rename locatorWinInfoPtr.
10507 (tui_source_exec_info_win_ptr): Rename tui_gen_win_info.
10508 (tui_disassem_exec_info_win_ptr): Rename disassemExecInfoWinPtr.
10509 (tui_source_windows): Rename sourceWindows.
10510 (tui_clear_source_windows): Rename clearSourceWindows.
10511 (tui_clear_source_windows_detail): Rename
10512 clearSourceWindowsDetail.
10513 (tui_clear_win_detail): Rename clearWinDetail.
10514 (tui_add_to_source_windows): Rename tuiAddToSourceWindows.
10515 (tui_default_tab_len): Rename tuiDefaultTabLen.
10516 (tui_set_default_tab_len): Rename tuiSetDefaultTabLen.
10517 (tui_win_with_focus): Rename tuiWinWithFocus.
10518 (tui_set_win_with_focus): Rename tuiSetWinWithFocus.
10519 (tui_layout_def): Rename tuiLayoutDef.
10520 (tui_win_resized): Rename tuiWinResized.
10521 (tui_set_win_resized_to): Rename tuiSetWinResizedTo.
10522 (tui_next_win): Rename tuiNextWin.
10523 (tui_prev_win): Rename tuiPrevWin.
10524 (tui_add_to_source_windows): Rename addToSourceWindows.
10525 * tui/tui-winsource.c, tui/tui-win.c: Update references.
10526 * tui/tui-layout.c, tui/tui-source.c: Ditto.
10527 * tui/tui-stack.c, tui/tui-io.c: Ditto.
10528 * tui/tui.c, tui/tui-data.c: Ditto.
10529 * tui/tui-interp.c, tui/tui-data.c: Ditto.
10530 * tui/tui-disasm.c, tui/tui-command.c: Ditto.
10531
a358af15
AC
10532 * tui/tui-source.h: Update copyright. Include "tui-data.h".
10533 (struct symtab): Declare.
10534 (tui_set_source_content): Rename tuiSetSourceContent.
10535 (tui_show_symtab_source): Rename tuiShowSource.
10536 (tui_source_is_displayed): Rename tuiSourceIsDisplayed.
10537 (tui_vertical_source_scroll): Rename tuiVerticalSourceScroll.
10538 * tui/tui-source.c: Update copyright. Update references.
10539 * tui/tui-win.c, tui/tui-winsource.c: Update references.
10540 * tui/tui-stack.c: Update references.
10541
a21fcd8f
AC
10542 * tui/tui-win.h: Update copyright. Include "tui-data.h".
10543 (struct tui_win_info): Declare.
10544 (tui_scroll_forward): Rename tuiScrollForward.
10545 (tui_scroll_backward): Rename tuiScrollBackward.
10546 (tui_scroll_left): Rename tuiScrollLeft.
10547 (tui_scroll_right): Rename tuiScrollRight.
10548 (tui_set_win_focus_to): Rename tuiSetWinFocusTo.
10549 (tui_resize_all): Rename tuiResizeAll.
10550 (tui_refresh_all_win): Rename tuiRefreshAll.
10551 (tui_sigwinch_handler): Rename tuiSigwinchHandler.
10552 * tui/tui-layout.c, * tui/tui-io.c: Update references.
10553 * tui/tui-wingeneral.h, * tui/tui.c: Update references.
10554 * tui/tui-disasm.c, * tui/tui-command.c: Update references.
10555
edae1ccf
AC
10556 * tui/tui-windata.h: Update copyright. Include "tui-data.h".
10557 (tui_erase_data_content): Rename tuiEraseDataContent.
10558 (tui_display_all_data): Rename tuiDisplayAllData.
10559 (tui_check_data_values): Rename tuiCheckDataValues.
10560 (tui_display_data_from_line): Rename tuiDisplayDataFromLine.
10561 (tui_first_data_item_displayed): Rename tuiFirstDataItemDisplayed.
10562 (tui_first_data_element_no_in_line): Rename
10563 tuiFirstDataElementNoInLine.
10564 (tui_delete_data_content_windows): Rename
10565 tuiDeleteDataContentWindows.
10566 (tui_refresh_data_win): Rename tuiRefreshDataWin.
10567 (tui_display_data_from): Rename tuiDisplayDataFrom.
10568 (tui_vertical_data_scroll): Rename tuiVerticalDataScroll.
10569 * tui/tui-windata.c, tui/tui-hooks.c: Update references.
10570 * tui/tui-win.c, tui/tui-regs.c: Update references.
10571 * tui/tui-layout.c, tui/tui.c: Update references.
10572
ec7d9e56
AC
10573 * tui/tui-wingeneral.h: Update copyright.
10574 (m_allBeVisible): Delete macro.
8a1dac83 10575 (m_allBeInvisible): Delete macro.
ec7d9e56
AC
10576 (struct tui_gen_win_info): Declare.
10577 (struct tui_win_info): Declare.
10578 (tui_unhighlight_win): Rename unhighlightWin.
10579 (tui_make_visible, tui_make_invisible): Replace makeVisible.
10580 (tui_make_all_visible, tui_make_all_invisible): Replace makeAllVisible.
10581 (tui_make_window): Rename makeWindow.
10582 (tui_copy_win): Rename copyWin.
10583 (tui_box_win): Rename boxWin.
10584 (tui_highlight_win): Rename highlightWin.
10585 (tui_check_and_display_highlight_if_needed): Rename
10586 checkAndDisplayHighlightIfNeeded.
10587 (tui_refresh_all): Rename refreshAll.
10588 (tui_delete_win): Rename tuiDelwin.
10589 (tui_refresh_win): Rename tuiRefreshWin.
10590 * tui/tui-wingeneral.c (make_visible): Rename makeVisible.
10591 (tui_make_visible, tui_make_invisible): New functions.
10592 (tui_make_all_visible, tui_make_all_invisible): New functions.
10593 (make_all_visible): Rename makeAllVisible.
10594 * tui/tui-winsource.c, tui/tui-windata.c: Update references.
10595 * tui/tui-data.c, tui/tui-winsource.c: Update references.
10596 * tui/tui-windata.c, tui/tui-win.c: Update references.
10597 * tui/tui-regs.c, tui/tui-layout.c: Update references.
10598 * tui/tui-data.h (struct tui_gen_win_info): Rename _TuiGenWinInfo.
10599
1e52e2eb
MK
106002004-02-06 Mark Kettenis <kettenis@gnu.org>
10601
10602 * proc-api.c (write_with_trace): Initialize local variable to
10603 silence compiler warning.
10604
f80bda8e
AC
106052004-02-06 Andrew Cagney <cagney@redhat.com>
10606
10607 * tui/tui-source.h: Do not include "defs.h".
10608 (struct tui_win_info): Declare.
10609 (tui_set_source_content_nil): Declare.
10610 * tui/tui-data.h (struct tui_win_info): Rename _TuiWinInfo.
10611 (union tui_line_or_address): Rename _TuiLineOrAddress.
10612 * tui/tui-winsource.h: Update copyright. Include "tui-data.h".
10613 (tui_update_source_window): Rename tuiUpdateSourceWindow.
10614 (tui_update_source_window_as_is): Rename
10615 tuiUpdateSourceWindowAsIs.
10616 (tui_update_source_windows_with_addr): Rename
10617 tuiUpdateSourceWindowsWithAddr.
10618 (tui_update_source_windows_with_line): Rename
10619 tuiUpdateSourceWindowsWithLine.
10620 (tui_clear_source_content): Rename tuiClearSourceContent.
10621 (tui_erase_source_content): Rename tuiEraseSourceContent.
10622 (tui_set_source_content_nil): Rename tuiSetSourceContentNil.
10623 (tui_show_source_content): Rename tuiShowSourceContent.
10624 (tui_horizontal_source_scroll): Rename tuiHorizontalSourceScroll.
10625 (tui_set_exec_info_content): Rename tuiSetExecInfoContent.
10626 (tui_show_exec_info_content): Rename tuiShowExecInfoContent.
10627 (tui_erase_exec_info_content): Rename tuiEraseExecInfoContent.
10628 (tui_clear_exec_info_content): Rename tuiClearExecInfoContent.
10629 (tui_update_exec_info): Rename tuiUpdateExecInfo.
10630 (tui_set_is_exec_point_at): Rename tuiSetIsExecPointAt.
10631 (tui_alloc_source_buffer): Rename tuiAllocSourceBuffer.
10632 (tui_line_is_displayed): Rename tuiLineIsDisplayed.
10633 (tui_addr_is_displayed): Rename tuiAddrIsDisplayed.
10634 (struct tui_win_info): Declare.
10635 * tui/tui-stack.c: Update references.
10636 * tui/tui-layout.c, tui/tui-winsource.c: Ditto.
10637 * tui/tui-win.c, tui/tui-source.c: Ditto.
10638 * tui/tui.c, tui/tui-disasm.c: Ditto.
10639
9fbfb822
MK
106402004-02-06 Mark Kettenis <kettenis@gnu.org>
10641
10642 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Fix calculation
10643 of UCONTEXT_ADDR. Fixes PR backtrace/1545.
10644
03cebad2
MK
106452004-02-05 Mark Kettenis <kettenis@gnu.org>
10646
10647 * infrun.c (handle_inferior_event): Allow for breakpoint
10648 instructions to generate a SIGSEGV in addition to SIGTRAP, SIGILL
10649 and SIGEMT. Update comments.
10650 * NEWS (Revised SPARC target): Mention support for non-executable
10651 stack.
10652
290281b1
MK
106532004-02-04 Mark Kettenis <kettenis@gnu.org>
10654
10655 * target.h (target_object): Add TARGET_OBJECT_WCOOKIE.
10656 * inftarg.c: Update copyright year.
10657 (child_xfer_partial): Add support for TARGET_OBJECT_WCOOKIE.
10658 * sparc-nat.c: Include "target.h" and "gdb_assert.h".
10659 (sparc_xfer_wcookie): New function.
10660 * sparc-tdep.c (sparc_fetch_wcookie): New function.
10661 * Makefile.in (sparc-nat.o): Update dependencies.
10662 * config/sparc/nm-nbsd.h: Include "target.h".
10663 (NATIVE_XFER_WCOOKIE): New define.
10664 (sparc_xfer_wcookie): New prototype.
10665
212161df
AC
106662004-02-04 Andrew Cagney <cagney@redhat.com>
10667
10668 * m68k-tdep.c (m68k_saved_pc_after_call): Delete #ifdef
10669 SYSCALL_TRAP function.
10670 (m68k_gdbarch_init): Delete #ifdef SYSCALL_TRAP code.
10671
6e4c6c91
DJ
106722004-02-04 Andrew Cagney <cagney@redhat.com>
10673 Daniel Jacobowitz <drow@mvista.com>
10674
10675 * objfiles.h: Delete comments refering to inside_entry_func and
10676 DEPRECATED_FRAME_CHAIN_VALID.
10677 * defs.h (inside_entry_func): Update prototype..
10678 * blockframe.c (inside_entry_func): Rename to
10679 legacy_inside_entry_func. Add new inside_entry_func taking a frame.
10680 * frame.c (get_prev_frame): Pass the frame to inside_entry_func.
10681
cae688ec
JJ
106822004-02-03 Jeff Johnston <jjohnstn@redhat.com>
10683
10684 * breakpoint.c (struct captured_parse_breakpoint_args): Move
10685 outside of #ifdef SOLIB_ADD region.
10686 (do_restore_lang_radix_cleanup): Ditto.
10687 (resolve_pending_breakpoint): Ditto.
10688
19217676
AC
106892004-02-03 Andrew Cagney <cagney@redhat.com>
10690
10691 * ia64-tdep.c (read_sigcontext_register): Delete unused function.
10692 (process_note_abi_tag_sections): Delete unused function.
10693 (ia64_read_fp): Delete unused function.
10694 (gdbarch_extract_struct_value_address): Delete declaration.
10695
876753be
AC
106962004-02-02 Andrew Cagney <cagney@redhat.com>
10697
10698 * vax-tdep.c (vax_frame_chain): Delete call to
10699 deprecated_inside_entry_file.
10700 * ns32k-tdep.c (ns32k_frame_chain): Ditto.
10701
d4f10bf2
MK
107022004-02-02 Mark Kettenis <kettenis@gnu.org>
10703
10704 * dwarf2-frame.c (dwarf2_frame_cache): Deal with a return address
10705 column that's "empty" or "same value" when eliminating REG_RA
10706 rules.
10707
cae688ec
JJ
107082004-02-02 Jeff Johnston <jjohnstn@redhat.com>
10709
10710 * NEWS: Add information about new pending breakpoint support.
10711
0101ce28
JJ
107122004-02-02 Jeff Johnston <jjohnstn@redhat.com>
10713
10714 * breakpoint.h (struct breakpoint): Add new flag, from_tty,
10715 and pending fields for pending breakpoint support.
10716 * breakpoint.c (breakpoint_enabled): Add check for not pending.
10717 (condition_command): Only parse condition if not a pending
10718 breakpoint.
10719 (print_one_breakpoint): Add support for pending breakpoints.
10720 (describe_other_breakpoints): Add checks to verify we are not
10721 dealing with pending breakpoints.
10722 (check_duplicates): Don't check pending breakpoints.
10723 (set_raw_breakpoint): Initialize pending flag.
10724 (do_restore_lang_radix_cleanup): New cleanup routine.
10725 (resolve_pending_breakpoint): New function.
10726 (re_enable_breakpoints_in_shlibs): Try and resolve any
10727 pending breakpoints via resolve_pending_breakpoint.
10728 (mention): Add pending breakpoint support.
10729 (parse_breakpoint_sals): Add new parameter to pass to
10730 decode_line_1 to indicate silent errors when files or functions
10731 are not found. Change all callers.
10732 (do_captured_parse_breakpoint): New function.
10733 (break_command_1): Change prototype to return an rc value and to
10734 take an optional pending breakpoint pointer. Support creating
10735 a pending breakpoint if a "not found" form of error occurs when
10736 parsing the breakpoint. Also support resolving an existing pending
10737 breakpoint and be silent if the resolution fails.
10738 (create_breakpoints): Change prototype to take pending breakpoint
10739 pointer. When resolving a pending breakpoint, use the new pointer
10740 to provide a conditional or commands added by the end-user.
10741 (delete_breakpoint): Add appropriate check for pending.
10742 (breakpoint_re_set_one): Ditto.
10743 (do_enable_breakpoint): Ditto.
10744
8d577d32
DC
107452004-02-02 David Carlton <carlton@kealia.com>
10746
10747 * valops.c (enum oload_classification): New.
10748 (find_overload_match): Break implementation into separate
10749 functions; delete #if 0'd code; look for symbols within
10750 namespaces.
10751 (find_oload_champ_namespace,find_oload_champ_namespace_loop)
10752 (find_oload_champ,oload_method_static,classify_oload_match): New.
10753 * cp-support.h: Add declaration for cp_func_name; update
10754 declaration for make_symbol_overload_list.
10755 * cp-support.c (cp_func_name): New.
10756 (overload_list_add_symbol): Fix comment, use
10757 SYMBOL_LINKAGE_NAME and SYMBOL_NATURAL_NAME.
10758 (make_symbol_overload_list): Take a function name and a namespace
10759 instead of a symbol; change implementation.
10760 (make_symbol_overload_list_using): New.
10761 (make_symbol_overload_list_qualified, read_in_psymtabs): New.
10762
22e8e3c7
FF
107632004-02-02 Fred Fish <fnf@redhat.com>
10764
10765 * main.c (gdb_stdtarg): Move definition to group with other
15390fef 10766 gdb_stdtarg definitions and update copyright years.
22e8e3c7
FF
10767 * remote-sim.c (gdb_os_write_stderr): Write output to
10768 gdb_stdtargerr stream instead of gdb_stdtarg stream.
10769 (gdb_os_flush_stderr): Flush gdb_stdtargerr steam instead of
15390fef 10770 gdb_stderr stream and update copyright years.
22e8e3c7 10771
6b753f60
DJ
107722004-02-01 Daniel Jacobowitz <drow@mvista.com>
10773
10774 * Makefile.in (mips-linux-nat.o): Update dependencies.
10775 * mips-linux-nat.c: Include mips-tdep.h.
10776
107772004-02-01 Roland McGrath <roland@redhat.com>
2cb6b099
RM
10778
10779 * sol-thread.c (sol_thread_xfer_partial): New function.
10780 (init_sol_thread_ops): Use that for to_xfer_partial hook.
10781 (init_sol_core_ops): Likewise.
10782
10783 * procfs.c (procfs_xfer_partial): New function.
10784 (init_procfs_ops): Use that for procfs_ops.to_xfer_partial.
10785 * Makefile.in (procfs.o): Add $(auxv_h) dep.
10786
10787 * config/nm-linux.h (NATIVE_XFER_AUXV): New macro, uses auxv.c's
10788 procfs_xfer_auxv function.
10789
10790 * procfs.c (procfs_make_note_section): If we can read
10791 TARGET_OBJECT_AUXV data, add an NT_AUXV note containing it.
10792 * linux-proc.c (linux_make_note_section): Likewise.
10793
10794 * auxv.h: New file.
10795 * auxv.c: New file.
10796 * Makefile.in (auxv_h): New variable.
10797 (COMMON_OBS): Add auxv.o here.
10798 (auxv.o): New target.
10799
10800 * corelow.c (core_xfer_partial): New function.
10801 (init_core_ops): Use it for core_ops.to_xfer_partial.
10802
10803 * target.h (enum target_object): Add TARGET_OBJECT_AUXV.
10804 * inftarg.c (child_xfer_partial): Support it using NATIVE_XFER_AUXV
10805 macro if that is defined.
10806
fa5281d0
DJ
108072004-02-01 Daniel Jacobowitz <drow@mvista.com>
10808
10809 * breakpoint.c (bpstat_stop_status): Take a ptid_t argument,
10810 and check the specified thread for each breakpoint.
10811 * breakpoint.h (bpstat_stop_status): Update prototype.
10812 * infrun.c (handle_inferior_event): Update calls to
10813 bpstat_stop_status.
10814
26ee262d
DJ
108152004-02-01 Daniel Jacobowitz <drow@mvista.com>
10816
10817 * Makefile.in (cli-cmds.o): Add $(readline_h).
10818
d9b52655
DJ
108192004-02-01 Daniel Jacobowitz <drow@mvista.com>
10820
10821 * cli/cli-cmds.c: Include readline.h.
10822 (complete_command): Pass the start of the last word to
10823 complete_line.
10824
9709f61c
DJ
108252004-01-31 Daniel Jacobowitz <drow@mvista.com>
10826
10827 * breakpoint.c (bpstat_stop_status): Remove not_a_sw_breakpoint
10828 argument, and change first argument to a CORE_ADDR.
10829 * breakpoint.h (bpstat_stop_status): Update prototype.
10830 * infrun.c (adjust_pc_after_break): Add a new comment.
10831 (handle_inferior_event): Update calls to bpstat_stop_status.
10832
4f1280bb
DJ
108332004-01-31 Daniel Jacobowitz <drow@mvista.com>
10834
10835 * breakpoint.h: Update copyright years.
10836
4fa8626c
DJ
108372004-01-31 Daniel Jacobowitz <drow@mvista.com>
10838
10839 * breakpoint.c (software_breakpoint_inserted_here_p): New function.
10840 (bpstat_stop_status): Don't decrement PC.
10841 * breakpoint.h (software_breakpoint_inserted_here_p): Add
10842 prototype.
10843 * infrun.c (adjust_pc_after_break): New function.
10844 (handle_inferior_event): Call it, early. Remove later references
10845 to DECR_PC_AFTER_BREAK.
10846 (normal_stop): Add commentary.
10847
fad0733a
DJ
108482004-01-31 Daniel Jacobowitz <drow@mvista.com>
10849
10850 * breakpoint.c (breakpoint_re_set_one): Add missing chunk of
10851 2004-01-27 double-free fix.
10852
42cdca6c
MK
108532004-01-31 Mark Kettenis <kettenis@gnu.org>
10854
10855 * sparc-tdep.c (sparc_fetch_wcookie): New function.
10856 (sparc32_frame_prev_register): Handle StackGhost.
10857 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
10858
932d5416
RM
108592004-01-29 Roland McGrath <roland@redhat.com>
10860
10861 * configure.in (NEW_PROC_API): Also match solaris2.9 for this test.
10862 * configure: Regenerated.
10863
10864 * procfs.c: Include gdb_string.h for str* decls, otherwise warnings.
10865 * Makefile.in (procfs.o): Add dep.
10866
47d3492a
AC
108672004-01-28 Andrew Cagney <cagney@redhat.com>
10868
10869 * tui/tui-stack.h: Update copyright.
10870 (struct frame_info): Add opaque declaration.
10871 (tui_update_locator_filename): Rename tuiUpdateLocatorFilename.
10872 (tui_show_locator_content): Rename tuiShowLocatorContent.
10873 (tui_show_frame_info): Rename tuiShowFrameInfo.
10874 * tui/tui-stack.c: Update copyright. Update references.
10875 * tui/tui-winsource.c: Update references.
10876 * tui/tui-win.c: Update references.
10877 * tui/tui-layout.c: Update references.
10878 * tui/tui-hooks.c: Update copyright, update references.
10879 * tui/tui.c: Update copyright, update references.
10880 * tui/tui-disasm.c: Update references.
10881
5d51ca54
DC
108822004-01-28 David Carlton <carlton@kealia.com>
10883
10884 * dwarf2read.c (add_partial_structure): Use demangled name if
10885 namespace equals "".
10886
086ed43d
JB
108872004-01-27 Jim Blandy <jimb@redhat.com>
10888
10889 Clean up misapplied patch:
10890 * dwarf2read.c (determine_prefix): Change one of the two forward
10891 declarations for 'determine_prefix_aux' to a declaration for this.
10892 (read_func_scope): Use cu->language, not cu_language. Pass 'cu'
10893 argument to 'die_specification'.
10894
2a35147e
JB
10895 * dwarf2read.c (read_func_scope): Re-indent comment.
10896
a355c7de 108972004-01-27 Paul N. Hilfinger <hilfinger@gnat.com>
932d5416 10898
a355c7de
AC
10899 * breakpoint.c (breakpoint_re_set_one): Set b->cond, b->val, and
10900 b->exp to NULL after freeing so that error during re-parsing or
10901 evaluation of expressions associated with breakpoint don't
10902 eventually lead to re-freeing of storage.
10903 Committed by Andrew Cagney.
10904
63ff5125
AC
109052004-01-27 Andrew Cagney <cagney@redhat.com>
10906
10907 * source.c (ambiguous_line_spec): Delete undefined declaration.
10908 * m32r-rom.c (m32r_set_board_address): Delete unused function.
10909 (m32r_set_server_address, m32r_set_download_path): Ditto.
10910 * remote-fileio.c (remote_fileio_to_fio_int): Ditto.
10911
e142c38c
DJ
109122004-01-27 Daniel Jacobowitz <drow@mvista.com>
10913
10914 * dwarf2read.c: Update calls to changed and renamed functions, and
10915 references to moved variables.
10916
10917 (struct dwarf2_cu): Add first_fn, last_fn, cached_fn,
10918 language, language_defn, list_in_scope, and ftypes members.
10919 (cu_first_fn, cu_last_fn, cu_cached_fn, cu_language)
10920 (cu_language_defn, list_in_scope, ftypes, cu_header_offset)
10921 (baseaddr): Remove globals.
10922
10923 (dwarf_attr): Renamed to dwarf2_attr. Add CU argument.
10924 (set_cu_language, die_is_declaration, die_specification)
10925 (determine_prefix, determin_prefix_aux, class_name, namespace_name)
10926 (dwarf2_linkage_name, dwarf2_name, dwarf2_extension)
10927 (dwarf2_get_ref_die_offset, dwarf2_fundamental_type)
10928 (initialize_cu_func_list, add_to_cu_func_list): Add CU argument.
10929
10930 (dwarf2_build_psymtabs_hard): Add local baseaddr. Initialize
10931 cu.list_in_scope. Don't initialize cu_header_offset.
10932 (add_partial_symbol): Add local baseaddr.
10933 (psymtab_to_symtab_1): Add local baseaddr. Use
10934 objfile->section_offsets for consistency. Don't initialize
10935 cu_header_offset; do initialize cu.header.offset and
10936 cu.list_in_scope.
10937 (read_file_scope, read_func_scope, read_lexical_block_scope)
10938 (dwarf_decode_lines, new_symbol): Add local baseaddr.
10939
c6e06ede
MC
109402004-01-27 Michael Chastain <mec.gnu@mindspring.com>
10941
fb328ecc 10942 * PROBLEMS: Add gdb/1516.
c6e06ede 10943
48184fd4
AC
109442003-12-29 Robert Millan <robertmh@gnu.org>
10945
10946 Patch committed by Andrw Cagney.
10947 * configure.host: Match knetbsd*-gnu and kfreebsd*-gnu.
10948 * configure.tgt: Match knetbsd*-gnu.
10949
c1321b30
AC
109502004-01-26 Andrew Cagney <cagney@redhat.com>
10951
f3699be3
AC
10952 * breakpoint.c (catch_command_1): Delete #ifdef code.
10953 (catch_fork_command_1): Delete #ifdef wrapper.
10954 (catch_exec_command_1): Ditto.
10955 (catch_load_command_1): Ditto.
10956 (catch_unload_command_1): Ditto.
10957
c1321b30
AC
10958 * breakpoint.c (watchpoint_check): Delete #if0ed variable.
10959 (catch_breakpoint): Delete #if0ed function.
10960 (disable_catch_breakpoint): Ditto.
10961 (delete_catch_breakpoint, enable_catch_breakpoint): Ditto.
10962 (disable_catch, enable_catch, delete_catch): Ditto.
10963
b4501125
AC
109642004-01-26 Andrew Cagney <cagney@redhat.com>
10965
10966 * remote.c (echo_check, quit_flag): Delete variables.
10967 (cisco_kernel_mode): Delete variable.
10968 (minitelnet_return, tty_input, escape_count): Delete variables.
10969 (remote_cisco_mode): Delete variable.
10970 (remote_cisco_open, remote_cisco_close): Delete function.
10971 (remote_cisco_mourn, remote_cisco_wait): Delete function.
10972 (init_remote_cisco_ops): Delete function.
10973 (_initialize_remote): Do not install "remote cisco" code.
10974 (read_frame): Delete cisco specific code.
10975 (remote_info_process): Delete function.
10976 (remote_wait): Delete cisco specific code.
10977 (remote_cisco_section_offsets): Delete function.
10978 (remote_cisco_objfile_relocate): Delete function.
10979 (remote_async_wait): Delete cisco specific code.
10980 (minitelnet, readtty, readsocket): Delete function.
10981
74055713
AC
109822004-01-26 Andrew Cagney <cagney@redhat.com>
10983
10984 * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS): Deprecate. Add
10985 comments mentioning extract_returned_value_address.
10986 * infcmd.c (print_return_value): Update. Add comments on
10987 extract_returned_value_address.
10988 * stack.c (return_command): Add comments on
10989 extract_returned_value_address.
10990 * values.c: Update comment.
10991 * m32r-tdep.c: Update comment.
10992 * sparc-tdep.c: Update comment.
10993 * ia64-tdep.c (ia64_use_struct_convention): Update comment.
10994 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10995 * sh64-tdep.c (sh64_gdbarch_init): Update.
10996 * sh-tdep.c (sh_gdbarch_init): Update.
10997 * s390-tdep.c (s390_gdbarch_init): Update.
10998 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10999 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
11000 * m68k-tdep.c (m68k_gdbarch_init): Update.
11001 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11002 * m32r-tdep.c (m32r_gdbarch_init): Update.
11003 * ia64-tdep.c (ia64_gdbarch_init): Update.
11004 * h8300-tdep.c (h8300_gdbarch_init): Update.
11005 * frv-tdep.c (frv_gdbarch_init): Update.
11006 * arm-tdep.c (arm_gdbarch_init): Update.
11007 * alpha-tdep.c (alpha_gdbarch_init): Update.
11008
a67af2b9
AC
110092004-01-26 Andrew Cagney <cagney@redhat.com>
11010
11011 * dwarf2loc.c (dwarf_expr_frame_base): Use SYMBOL_OPS instead of
11012 SYMBOL_LOCATION_FUNCS
11013 (dwarf2_loclist_funcs, dwarf2_locexpr_funcs): Change type to
11014 "struct symbol_ops".
11015 * dwarf2loc.h (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Change
11016 type to "struct symbol_ops".
11017 * symtab.h (struct symbol_ops): Rename "struct location_funcs".
11018 (struct symbol): Replace ".aux_value.loc.funcs" and
11019 ".aux_value.loc.baton" with ".ops" and ".aux_value.ptr".
11020 (SYMBOL_OBJFILE): Delete macro.
11021 (SYMBOL_LOCATION_FUNCS): Delete macro.
11022 (SYMBOL_LOCATION_BATON): Update.
11023 * dwarf2read.c (dwarf2_symbol_mark_computed): Set SYMBOL_OPS
11024 intead of SYMBOL_LOCATION_FUNCS.
11025 * ax-gdb.c (gen_var_ref): Ditto.
11026 * printcmd.c (address_info): Ditto.
11027 * findvar.c (read_var_value): Ditto.
11028 (symbol_read_needs_frame): Ditto.
11029
c034e007
AC
110302004-01-26 Andrew Cagney <cagney@redhat.com>
11031
11032 * dwarf2read.c (read_func_scope): Document frame-base hack.
11033
bb472c1e
MK
110342004-01-25 Mark Kettenis <kettenis@gnu.org>
11035
11036 * infcmd.c (print_return_value): Plug memory leak; delete
11037 ui_stream object. Rename argument `structure_return' to
11038 `struct_return'.
11039
c8e737d5
MK
110402004-01-25 Mark Kettenis <kettenis@gnu.org>
11041
f941662f
MK
11042 * infcmd.c (print_return_value): Wrap long lines.
11043 (finish_command_continuation, finish_command): Remove unused
11044 variable `funcaddr'. Fix some coding-standards problems.
11045
c558d81a 11046 * sparc-tdep.c (sparc_regset_from_core_section): Check whether
d8d65dd3 11047 SECT_SIZE is large enough, not whether it's exactly the right size.
c558d81a
MK
11048 (sparc32_gdbarch_init): Initialize TDEP->sizeof_gregset and
11049 TDEP->fpregset to zero.
11050
bf1e5861 11051 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Also supply the
c8e737d5
MK
11052 floating-point registers for traditional NetBSD core files.
11053 (sparc32nbsd_init_abi): Initialize TDEP->sizeof_gregset and
11054 TDEP->sizeof_fpregset here.
11055
4c72d57a
MK
110562004-01-25 Mark Kettenis <kettenis@gnu.org>
11057
566626fa
MK
11058 * sparc-tdep.h (sparc32nbsd_sigcontext_saved_regs): New prototype.
11059 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): New
11060 function with code split out from
11061 sparc32nbsd_sigcontext_frame_cache.
11062 (sparc32nbsd_sigcontext_frame_cache): Use
11063 sparc32nbsd_sigcontext_saved_regs.
11064 (_initialize_sparc32nbsd_tdep): Don't register OS ABI handler for
11065 OpenBSD.
11066 * sparcobsd-tdep.c: New file.
11067 * Makefile.in (ALLDEPFILES): Add sparcobsd-tdep.c.
11068 (sparcobsd-tdep.o): New dependency.
11069 * configure.tgt (sparc-*-openbsd*): Set gdb_target to obsd.
11070 * config/sparc/obsd.mt: New file.
11071
4c72d57a
MK
11072 * sparc-tdep.c (sparc32_gdbarch_init): Don't require
11073 TDEP->fpregset to be initialized to enable core file register
11074 sets.
11075
7e5e9f88
MK
110762004-01-24 Mark Kettenis <kettenis@gnu.org>
11077
f0f207fd 11078 * sparc64-tdep.h (struct frame_info, struct trad_frame_saved_reg):
1e067c66
MK
11079 Add opaque declarations.
11080 (sparc64nbsd_sigcontext_saved_regs): New prototype.
11081 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): New
11082 function with code split out from
11083 sparc64nbsd_sigcontext_frame_cache.
11084 (sparc64nbsd_sigcontext_frame_cache): Use
11085 sparc64nbsd_sigcontext_saved_regs.
11086 (_initialize_sparc64nbsd_tdep): Don't register OS ABI handler for
11087 OpenBSD.
11088 * sparc64obsd-tdep.c: New file.
11089 * Makefile.in (ALLDEPFILES): Add sparc64obsd-tdep.c.
11090 (sparc64obsd-tdep.o): New dependency.
11091 * configure.tgt (sparc64-*-openbsd*): Set gdb_target to obsd64 and
11092 gdb_osabi to GDB_OSABI_OPENBSD_ELF.
11093 * config/sparc/obsd64.mt: New file.
11094
690668cc
MK
11095 * sparc-tdep.c (sparc_fetch_instruction): Return zero if we can't
11096 read the instruction at PC.
11097
7e5e9f88
MK
11098 * sparcnbsd-tdep.c (GDB_OSABI_NETBSD_CORE): Define, based on the
11099 value of GDB_OSABI_DEFAULT.
11100 (sparcnbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_CORE
11101 instead of GDB_OSABI_NETBSD_AOUT.
11102
68b6dce9
NR
111032004-01-24 Nick Roberts <nick@nick.uklinux.net>
11104
11105 * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-cmds.h: Update
11106 copyright.
11107
080ce8c0
AC
111082004-01-23 Andrew Cagney <cagney@redhat.com>
11109
11110 * printcmd.c (display_command): Replace tui_set_display call with
11111 tui_set_layout_for_display_command.
11112 * tui/tui.h (enum tui_win_type): Define.
11113 (tui_set_layout): Delete declaration.
11114 (tui_set_layout_for_display_command): Rename set_tui_layout.
11115 * tui/tui-data.h (enum tui_layout_type): Define.
11116 * tui/tui-layout.h: Update copyright. Include "tui-data.h" and
11117 "tui.h".
11118 (tui_add_win_to_layout): Rename tuiAddWinToLayout.
11119 (tui_default_win_height): Rename tuiDefaultWinHeight.
11120 (tui_default_win_viewport_height): Rename
11121 tuiDefaultWinViewportHeight.
11122 (tui_set_layout): RenametuiSetLayout.
11123 * tui/tui-layout.c: Update references.
11124 * tui/tui.c: Update references.
11125 * tui/tui-disasm.c: Update references.
11126
b368761e
DC
111272004-01-23 David Carlton <carlton@kealia.com>
11128
11129 Partial workaround for PR c++/1511:
11130 * cp-namespace.c: Include frame.h.
11131 (cp_lookup_transparent_type): New
11132 (cp_lookup_transparent_type_loop): New.
11133 * cp-support.h: Declare cp_lookup_transparent_type.
11134 * symtab.c (basic_lookup_transparent_type): Renamed from
11135 lookup_transparent_type.
11136 (lookup_transparent_type): Replace old body by a call to
11137 current_language->la_lookup_transparent_type.
11138 * symtab.h: Update copyright. Declare
11139 basic_lookup_transparent_type.
11140 * language.h: Update copyright.
11141 (struct language_defn): Add la_lookup_transparent_type.
11142 * language.c: Update copyright.
11143 (unknown_language_defn): Add basic_lookup_transparent_type.
11144 (auto_language_defn): Add basic_lookup_transparent_type.
11145 (local_language_defn): Add basic_lookup_transparent_type.
11146 * ada-lang.c: Update copyright.
11147 (ada_language_defn): Add basic_lookup_transparent_type.
11148 * c-lang.c: Update copyright.
11149 (c_language_defn): Add basic_lookup_transparent_type.
11150 (cplus_language_defn): Add basic_lookup_transparent_type.
11151 (asm_language_defn): Add basic_lookup_transparent_type.
11152 (minimal_language_defn): Add basic_lookup_transparent_type.
11153 * f-lang.c: Update copyright.
11154 (f_language_defn): Add basic_lookup_transparent_type.
11155 * jv-lang.c: Update copyright.
11156 (java_language_defn): Add basic_lookup_transparent_type.
11157 * m2-lang.c: Update copyright.
11158 (m2_language_defn): Add basic_lookup_transparent_type.
11159 * objc-lang.c: Update copyright.
11160 (objc_language_defn): Add basic_lookup_transparent_type.
11161 * p-lang.c: Update copyright.
11162 (p_language_defn): Add basic_lookup_transparent_type.
11163 * scm-lang.c: Update copyright.
11164 (scm_language_defn): Add basic_lookup_transparent_type.
11165 * Makefile.in (cp-namespace.o): Depend on frame.h.
11166
fdde2d81
DC
111672004-01-23 David Carlton <carlton@kealia.com>
11168
11169 Patch for PR c++/1520:
11170 * dwarf2read.c (read_func_scope): Set processing_current_prefix
11171 properly if we have a specification die.
11172 (determine_prefix_aux): Rename from determine_prefix.
11173 (determine_prefix): Like the old determine_prefix, but never
11174 returns NULL.
11175
5b828b6b
TR
111762004-01-23 Theodore A. Roth <troth@openavr.org>
11177
11178 * avr-tdep.c: Update copyright.
11179 (avr_iaddr_p): Delete unused function.
11180 (avr_saddr_p): Delete unused function.
11181
a1b8c067
DC
111822004-01-23 David Carlton <carlton@kealia.com>
11183
11184 * symfile.c (reread_symbols): Clear objfile->cp_namespace_symtab.
11185 Fix for PR symtab/1534.
11186
f2cab569
MK
111872004-01-23 Mark Kettenis <kettenis@gnu.org>
11188
11189 * NEWS (New native configurations): Mention OpenBSD/sparc and
11190 OpenBSD/sparc64.
11191 * configure.tgt: Add sparc-*-openbsd* and sparc64-*-openbsd*.
11192 * configure.host: Likewise.
11193 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Register OS ABI
11194 handler for OpenBSD.
11195 * sparc64nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Likewise.
11196
642d8300
MK
111972004-01-22 Mark Kettenis <kettenis@gnu.org>
11198
89aac506
MK
11199 * sparcnbsd-tdep.c (sparcnbsd_core_osabi_sniffer): New function.
11200 (_initialize_sparnbsd_tdep): Register sparcnbsd_core_osabi_sniffer.
11201
36662fde
MK
11202 * ser-pipe.c (pipe_open): Use proper null pointer in execl call.
11203 * cli/cli-cmds.c (shell_escape): Likewise.
11204
642d8300
MK
11205 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Recognize
11206 OpenBSD .note.openbsd.ident sections.
11207
fae299cd
DC
112082004-01-22 David Carlton <carlton@kealia.com>
11209
11210 * dwarf2read.c (psymtab_to_symtab_1): Calculate lowpc, highpc via
11211 get_scope_pc_bounds.
11212 (read_file_scope): Ditto.
11213 (get_scope_pc_bounds): New function, produced by extracting code
11214 from the above two functions, consolidating it, and adding support
11215 for DW_TAG_namespace.
11216
a49d618c
MK
112172004-01-22 Mark Kettenis <kettenis@gnu.org>
11218
11219 * osabi.c (MAX_NOTESZ): New define.
11220 (check_note): New function.
11221 (generic_elf_osabi_sniff_abi_tag_sections): Reorganize code using
11222 check_note.
11223
fe61caab
RM
112242004-01-21 Roland McGrath <roland@redhat.com>
11225
11226 * MAINTAINERS (write after approval): Add myself.
11227
ec145965
EZ
112282004-01-21 Eli Zaretskii <eliz@gnu.org>
11229
11230 * utils.c (init_page_info): Move declarations of `rows' and
11231 `cols' before the __GO32__-specific code. Move the closing brace
11232 outside the #ifdef __GO32__..#endif block.
11233 [__GO32__]: Use `rows' and `cols' to avoid compiler warnings.
11234
877522db
PB
112352004-01-21 Paul Brook <paul@codesourcery.com>
11236
11237 * infrun.c (handle_inferior_event): Check stop_stack_dummy if handling
11238 BPSTAT_WHAT_CHECK_SHLIBS.
11239
dbf5be1c
PB
112402004-01-21 Paul Brook <paul@codesourcery.com>
11241
11242 * MAINTAINERS: Add myself to write-after-approval.
11243
81f08b92
AC
112442004-01-20 Andrew Cagney <cagney@redhat.com>
11245
5a1efed7
AC
11246 * ax-gdb.c (print_axs_value): Delete unused function.
11247 * jv-lang.c (java_lookup_type): Delete unused function.
11248 * cli/cli-dump.c (dump_filetype): Delete unused function.
11249 * remote-mips.c (remote_mips_insert_hw_breakpoint)
11250 (remote_mips_remove_hw_breakpoint): Delete unused functions.
11251 (mips_getstring): Delete unused function.
11252 (pmon_insert_breakpoint): Delete #if0ed function.
11253 (PMON_MAX_BP): Delete #if0ed MACRO.
11254 (mips_pmon_bp_info): Delete #if0ed variable.
11255 (pmon_remove_breakpoint): Delete #if0ed function.
11256 * monitor.c (monitor_write_even_block): Delete unused function.
11257 (monitor_write_memory_block): Delete #if0ed code.
11258 * dink32-rom.c (dink32_load): Delete unused function.
11259 (_initialize_dink32_rom): Delete #if0ed code.
11260 * d10v-tdep.c (d10v_daddr_p): Delete unused function.
11261
b0a30fce
AC
11262 * tui/tui-command.c: Update references.
11263 * tui/tui-io.c: Update references.
11264 * tui/tui-command.h: Update copyright.
11265 (tui_dispatch_ctrl_char): Rename tuiDispatchCtrlChar.
11266
81f08b92
AC
11267 * source.c (ambiguous_line_spec): Delete never-defined function.
11268 * remote-rdi.c (arm_rdi_mourn, arm_rdi_send): Ditto.
11269 * gdbtypes.c (add_name, add_mangled_type): Ditto.
11270 * cli/cli-cmds.c (validate_comname): Ditto.
11271
65f05602
AC
11272 * tui/tui-disasm.h: Update copyright. Include "tui.h" and
11273 "tui-data.h".
11274 (tui_set_disassem_content): Rename tuiSetDisassemContent.
11275 (tui_show_disassem): Rename tuiShowDisassem.
11276 (tui_show_disassem_and_update_source): Rename
11277 tuiVerticalDisassemScroll.
11278 (tui_vertical_disassem_scroll): Rename tuiVerticalDisassemScroll.
11279 (tui_get_begin_asm_address): Rename tuiGetBeginAsmAddress.
11280 * tui/tui.h: Update copyright.
11281 (enum tui_status): Define.
11282 * tui/tui-data.h (enum tui_scroll_direction): Define.
11283 * tui/tui-disasm.c: Update copyright. Update references.
11284 * tui/tui-winsource.c: Update copyright. Update references.
11285 * tui/tui-win.c: Update references.
11286 * tui/tui-layout.c: Update references.
11287
6bb0384f
AC
112882004-01-20 Andrew Cagney <cagney@redhat.com>
11289
11290 * mi/mi-cmd-stack.c (list_args_or_locals): Move declaration of
11291 sym2 to start of block.
11292
9175c9a3
MC
112932004-01-19 Michael Chastain <mec.gnu@mindspring.com>
11294
11295 * MAINTAINERS: Delete mmalloc.
11296 * Makefile.in: Delete MMALLOC, MMALLOC_CFLAGS, -lmmalloc, mmalloc_h.
11297 * NEWS: Mention removal of --with-malloc.
11298 * acconfig.h: Delete USE_MMALLOC, MMCHECK_FORCE.
11299 * config.in: Regenerate.
11300 * configure: Regenerate.
6bb0384f
AC
11301 * configure.in: Delete MMALLOC_CFLAGS, MMALLOC, --with-mmalloc,
11302 USE_MMALLOC, MMCHECK_FORCE.
9175c9a3
MC
11303 * gdbinit.in: Remove mmalloc.
11304 * utils.c: Delete USE_MMALLOC, NO_MMCHECK, MMCHECK_FORCE, malloc_botch.
11305 * config/alpha/alpha-linux.mh: Delete MMALLOC, MMALLOC_CFLAGS.
11306 * config/i386/go32.mh: Likewise.
11307 * config/i386/interix.mh: Likewise.
11308 * config/powerpc/xm-linux.h: Delete MMAP_BASE_ADDRESS, MMAP_INCREMENT.
11309
4fcef00a
JJ
113102004-01-19 Jeff Johnston <jjohnstn@redhat.com>
11311
11312 * linespec.c (decode_variable, symtab_from_filename): Call
11313 error_silent with error message instead of throwing an exception
11314 directly.
11315 * defs.h (error_silent, error_output_message): Add prototypes.
11316 (catch_exceptions_with_msg): Ditto.
11317 * utils.c (error_silent, error_output_message): New functions.
11318 * top.c (catch_exceptions_with_msg): New function.
11319
8e94b928
NR
113202004-01-20 Nick Roberts <nick@nick.uklinux.net>
11321
11322 * mi/mi-cmds.h (enum print_values): Add definition.
11323
11324 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Print the name,
11325 type and value for simple data types and just the name and type
11326 for complex ones, if required.
11327
11328 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Print the values of the
11329 children, if required.
11330
a02d6af8
KB
113312004-01-19 Kevin Buettner <kevinb@redhat.com>
11332
11333 * frv-tdep.c (frv_push_arguments, frv_saved_pc_after_call): Delete
11334 unused declarations.
11335
78a4a9b9
AC
113362004-01-19 Andrew Cagney <cagney@redhat.com>
11337
11338 * top.h (mapped_symbol_files): Delete declaration.
11339 * main.c (captured_main): Delete option "m" and "mapped".
11340 * objfiles.c (mapped_symbol_files): Delete variable.
11341 * symfile.c (symbol_file_command): Delete mmap code.
11342 (symbol_file_add_with_addrs_or_offsets): Ditto.
11343 (add_symbol_file_command, reread_separate_symbols): Ditto.
11344 * objfiles.h (OBJF_MAPPED): Delete.
11345 * objfiles.c (allocate_objfile) [USE_MMALLOC]: Delete.
11346 (free_objfile) [USE_MMALLOC]: Ditto.
11347 (open_existing_mapped_file): Delete function.
11348 (open_mapped_file): Delete function.
11349 (map_to_file): Delete function.
11350
2dbd5e30
KB
113512004-01-19 Kevin Buettner <kevinb@redhat.com>
11352
11353 * infrun.c (step_into_function): Account for possible breakpoint
11354 adjustment when computing ``stop_func_start''.
11355
437b434f
KB
113562004-01-19 Kevin Buettner <kevinb@redhat.com>
11357
11358 * target.c (default_region_size_ok_for_hw_watchpoint): Compare
11359 the region size against the size of a pointer, not the size of
11360 a register as given by DEPRECATED_REGISTER_SIZE.
11361
55fb0713
AC
113622004-01-19 Andrew Cagney <cagney@redhat.com>
11363
11364 * tui/tui-regs.h: Include "tui-data.h".
11365 (tuiFirstRegElementNoInLine): Delete declaration.
11366 (tui_display_registers_from): Rename tuiDisplayRegistersFrom.
11367 (tui_last_regs_line_no): Rename tuiLastRegsLineNo.
11368 (tui_line_from_reg_element_no): Rename tuiLineFromRegElementNo.
11369 (tui_calculate_regs_column_count): Rename
11370 tuiCalculateRegsColumnCount.
11371 (tui_check_register_values): Rename tuiCheckRegisterValues.
11372 (tui_show_registers): Rename tuiShowRegisters.
11373 (tui_display_registers_from_line): Rename
11374 tuiDisplayRegistersFromLine.
11375 (tui_first_reg_element_inline): Rename tuiFirstRegElementInLine.
11376 (tui_toggle_float_regs): Rename tuiToggleFloatRegs.
11377 (tui_first_reg_element_no_inline): Rename
11378 tuiFirstRegElementNoInLine.
11379 * tui/tui-data.h: Update copyright.
11380 (enum tui_register_display_type): Rename _TuiRegisterDisplayType.
11381 * tui/tui-windata.c: Update copyright, update references.
11382 * tui/tui-regs.c: Update copyright, update references.
11383 * tui/tui-win.c: Update copyright, update references.
11384 * tui/tui-layout.c: Update copyright, update references.
fe61caab 11385
cebe9500
AC
113862004-01-18 Andrew Cagney <cagney@redhat.com>
11387
bcdf1568
AC
11388 * tui/tui-io.c: Update copyright.
11389 (key_is_end_sequence, key_is_backspace): New functions.
11390 (key_is_command_char, key_is_start_sequence): New function.
11391 (tui_getc): Update references.
11392 * tui/tui-io.h: Update copyright.
11393 (m_tuiStartNewLine): Delete macro.
11394 (m_isBackspace, m_isDeleteChar): Delete macros.
11395 (m_isDeleteLine, m_isDeleteToEol): Delete macros.
11396 (m_isNextPage, m_isPrevPage): Delete macros.
11397 (m_isLeftArrow, m_isRightArrow): Delete macros.
11398 (m_isXdbStyleCommandChar): Delete macro.
11399 (key_is_start_sequence): Declare, replace m_isStartSequence.
11400 (key_is_end_sequence): Declare, replace m_isEndSequence.
11401 (key_is_backspace): Declare ,replace m_isBackspace.
11402 (key_is_command_char): Declare, replace m_isCommandChar.
11403 * tui/tui-command.c: Update copyright.
11404 (tuiDispatchCtrlChar): Update references.
11405
130d87e6
AC
11406 * config/djgpp/fnchange.lst: Delete tui/tuiSourceWin.c and
11407 tuiSourceWin.h.
11408
d7b2e967
AC
11409 * tui/tui-command.c: Rename tui/tuiCommand.c.
11410 * tui/tui-command.h: Rename tui/tuiCommand.h.
11411 * tui/tui-data.c: Rename tui/tuiData.c.
11412 * tui/tui-data.h: Rename tui/tuiData.h.
11413 * tui/tui-disasm.c: Rename tui/tuiDisassem.c.
11414 * tui/tui-disasm.h: Rename tui/tuiDisassem.h.
11415 * tui/tui-io.c: Rename tui/tuiIO.c.
11416 * tui/tui-io.h: Rename tui/tuiIO.h.
11417 * tui/tui-layout.c: Rename tui/tuiLayout.c.
11418 * tui/tui-layout.h: Rename tui/tuiLayout.h.
11419 * tui/tui-regs.c: Rename tui/tuiRegs.c.
11420 * tui/tui-regs.h: Rename tui/tuiRegs.h.
11421 * tui/tui-source.c: Rename tui/tuiSource.c.
11422 * tui/tui-source.h: Rename tui/tuiSource.h.
11423 * tui/tui-stack.c: Rename tui/tuiStack.c.
11424 * tui/tui-stack.h: Rename tui/tuiStack.h.
11425 * tui/tui-win.c: Rename tui/tuiWin.c.
11426 * tui/tui-win.h: Rename tui/tuiWin.h.
11427 * tui/tui-windata.c: Rename tui/tuiDataWin.c.
11428 * tui/tui-windata.h: Rename tui/tuiDataWin.h.
11429 * tui/tui-wingeneral.c: Rename tui/tuiGeneralWin.c.
11430 * tui/tui-wingeneral.h: Rename tui/tuiGeneralWin.h.
11431 * tui/tui-winsource.c: Rename tui/tuiSourceWin.c.
11432 * tui/tui-winsource.h: Rename tui/tuiSourceWin.h.
11433 * tui/tui-file.c: Update includes.
11434 * tui/tui-hooks.c: Update includes.
11435 * tui/tui-interp.c: Update includes.
11436 * tui/tui.c: Update includes.
11437 * Makefile.in: Update all tui/ dependencies.
11438 (SUBDIR_TUI_OBS, SUBDIR_TUI_SRCS): Update file names.
11439
b2100910
AC
11440 * Makefile.in: Update copyright. Update dependencies.
11441
cebe9500
AC
11442 * tui/tuiSourceWin.c (tui_update_breakpoint_info): Fix compile
11443 problem.
11444
c6f0559b
AC
114452004-01-18 Andrew Cagney <cagney@redhat.com>
11446
43e9390b
AC
11447 * mn10300-tdep.c (_initialize_mn10300_tdep): Call gdbarch_register
11448 instead of register_gdbarch_init.
11449
c6f0559b
AC
11450 * remote-sds.c (tohex): Delete unused function. Update copyright.
11451 * xstormy16-tdep.c (xstormy16_register_virtual_size): Ditto.
11452 * v850-tdep.c (v850_register_virtual_size): Ditto.
11453 * target.c (normal_target_post_startup_inferior): Ditto.
11454 * source.c (ambiguous_line_spec): Ditto.
11455 * remote.c (adapt_remote_get_threadinfo): Ditto.
11456 * mi/mi-out.c (out_field_fmt): Ditto.
11457 * mi/mi-interp.c (mi_interp_read_one_line_hook): Ditto.
11458 (output_control_change_notification): Ditto.
11459 * m68k-tdep.c (m68k_register_byte): Ditto.
11460 (m68k_remote_breakpoint_from_pc): Ditto.
11461 * ui-out.c (init_ui_out_state): Delete unused declaration.
11462 * stabsread.c (search_value): Ditto.
11463 * mi/mi-cmd-env.c (env_cli_command): Ditto.
11464 * maint.c (print_section_table): Ditto.
11465 * infrun.c (set_follow_fork_mode_command): Ditto.
11466
a8504492
MK
114672004-01-18 Mark Kettenis <kettenis@gnu.org>
11468
11469 * dwarf2-frame.c (execute_cfa_program): Move DWA_CFA_nop before
11470 DW_CFA_def_cfa_exporession. Add support for
11471 DW_CFA_offset_extendend_sf, DW_CFA_def_cfa_sf and
11472 DW_CFA_def_cfa_offset_sf. This should fix PR backtrace/1391.
11473
0bd8997e
AC
114742004-01-18 Andrew Cagney <cagney@redhat.com>
11475
11476 * ocd.c: Update copyright.
11477 (bdm_read_register_command): Delete unused function.
11478 (_initialize_remote_ocd): Delete commented out reference.
11479 (get_quoted_char, reset_packet): Delete #if0ed function.
11480 (output_packet, put_quoted_char): Delete #if0ed function.
11481 (stu_put_packet, stu_get_packet): Delete #if0ed function.
11482 (ocd_start_remote): Delete #if0ed code, remove #if1 wrapper.
11483 (BDM_BREAKPOINT): Delete #if0ed macro.
11484 (remote_timeout): Delete #if0ed variable.
11485
31bb40e4
MK
114862004-01-18 Mark Kettenis <kettenis@gnu.org>
11487
11488 * Makefile.in (ALLDEPFILES): Remove core-sol2.c.
11489 (core-sol2.o): Remove dependency.
11490 * core-sol2.c: Remove file.
11491
887432a5
AC
114922004-01-17 Andrew Cagney <cagney@redhat.com>
11493
11494 * mdebugread.c (compare_blocks): Make addr_diff a LONGEST.
11495 * block.h: Make GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOOCK
11496 enums.
11497
29182b13
DJ
114982004-01-17 Daniel Jacobowitz <drow@mvista.com>
11499
11500 * remote.c: Update copyright years.
11501
2963ee1d
DJ
115022004-01-17 Daniel Jacobowitz <drow@mvista.com>
11503
11504 * remote.c (remote_vcont_resume): Use xstrprintf instead of sprintf.
11505
79d45cd4
AC
115062004-01-17 Andrew Cagney <cagney@redhat.com>
11507
ee300cd4
AC
11508 * mdebugread.c: Update copyright.
11509 (parse_symbol): Replace DEPRECATED_STREQ with strcmp.
11510 (parse_type, parse_procedure): Ditto.
11511 (parse_partial_symbols, psymtab_to_symtab_1): Ditto.
11512
fcacc9c2
AC
11513 * cris-tdep.c (cris_store_struct_return): Put back accidently
11514 deleted function.
11515
79d45cd4
AC
11516 * gdbarch.sh: Update copyright year.
11517 * gdbarch.h, gdbarch.c: Re-generate.
11518
b263358a
DJ
115192004-01-17 Daniel Jacobowitz <drow@mvista.com>
11520
11521 Suggested by George Anzinger.
11522 * dwarf2expr.c (execute_stack_op): Fetch the second item from the
11523 correct stack offset. Include unknown opcode numbers in the error
11524 message.
11525
931aecf5
AC
115262004-01-17 Andrew Cagney <cagney@redhat.com>
11527
11528 * x86-64-tdep.c (x86_64_init_abi): No need to clear
11529 extract_struct_value_address, i386 does not set it.
11530 * sparc64-tdep.c (sparc64_init_abi): Do not set
11531 extract_struct_value_address, never called.
11532 (sparc64_extract_struct_value_address): Delete function.
11533 * m68hc11-tdep.c: Update copyright.
11534 (m68hc11_gdbarch_init): Delete redundant assignment of
11535 extract_struct_value_address.
11536 * i386-tdep.c: Update copyright.
11537 (i386_gdbarch_init): Do not set extract_struct_value_address,
11538 never called.
11539 (i386_extract_struct_value_address): Delete function.
11540 * sparc-tdep.c (sparc32_gdbarch_init): Do not set
11541 extract_struct_value_address, never called.
11542 (sparc32_extract_struct_value_address): #if 0 function. Add
11543 comments explaining its future.
11544
756fe439
DJ
115452004-01-17 Daniel Jacobowitz <drow@mvista.com>
11546
11547 * arm-tdep.c (arm_write_pc): New function.
11548 (arm_gdbarch_init): Call set_gdbarch_write_pc.
11549
e74f0f02
DJ
115502004-01-17 Daniel Jacobowitz <drow@mvista.com>
11551
11552 * breakpoint.c (must_shift_inst_regs): Delete.
11553 (bpstat_stop_status): Delete references to DECR_PC_AFTER_HW_BREAK
11554 and SHIFT_INST_REGS.
11555 * infcmd.c (step_1, step_1_continuation): Delete references to
11556 SHIFT_INST_REGS.
11557 * infrun.c (keep_going): Likewise.
11558 * target.h (DECR_PC_AFTER_HW_BREAK): Don't define.
11559 * config/i386/nm-i386.h (DECR_PC_AFTER_HW_BREAK): Likewise.
11560
b6cb9035
AC
115612004-01-17 Andrew Cagney <cagney@redhat.com>
11562
444a1e2e
AC
11563 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
11564 * gdbarch.h, gdbarch.c: Re-generate.
11565 * infcmd.c (print_return_value): Delete reference to
11566 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
11567
def7e6ed
AC
11568 * cris-tdep.c (cris_gdbarch_init): Do not set
11569 deprecated_extract_struct_value_address.
11570
07be497a
AC
11571 * xstormy16-tdep.c: Update copyright.
11572 (xstormy16_extract_struct_value_address): Update to current
11573 extract struct value address interface.
11574 (xstormy16_gdbarch_init): Set extract_struct_value_address.
11575 * sh64-tdep.c (sh64_extract_struct_value_address): Update to
11576 current extract struct value address interface.
11577 (sh64_gdbarch_init): Set extract_struct_value_address.
11578
6b4d5c91
AC
11579 * cris-tdep.c: Update copyright.
11580 (cris_extract_struct_value_address): Delete function.
11581 (struct_return_address): Delete variable.
11582 (cris_store_struct_return): Do not set struct_return_address.
11583
464e0365
AC
11584 * mcore-tdep.c: Update copyright.
11585 (mcore_extract_struct_value_address): Delete function. Update
11586 comments.
11587 (mcore_gdbarch_init): Update.
11588 * mn10300-tdep.c: Update copyright.
11589 (mn10300_extract_struct_value_address): Delete function.
11590 (mn10300_gdbarch_init): Update.
11591 * v850-tdep.c: Update copyright.
11592 (v850_extract_struct_value_address): Delete.
11593 (v850_gdbarch_init): Update.
11594 * ns32k-tdep.c: Update copyright.
11595 (ns32k_extract_struct_value_address): Delete.
11596 (ns32k_gdbarch_init): Update.
11597 * hppa-tdep.c (hppa_extract_struct_value_address): Delete.
11598 (hppa_gdbarch_init): Update.
11599 * vax-tdep.c: Update copyright.
11600 (vax_extract_struct_value_address): Delete.
11601 (vax_gdbarch_init): Update.
11602
afb18d0f
AC
11603 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Delete.
11604 * gdbarch.h, gdbarch.c: Re-generate.
11605 * procfs.c (procfs_fetch_registers): Delete reference to
11606 DEPRECATED_NPC_REGNUM.
11607 (procfs_store_registers): Ditto.
11608 * regcache.c (generic_target_write_pc): Simplify.
11609 * lynx-nat.c: Delete #ifdef SPARC code. Not used.
11610
a698f53e
AC
11611 * core-sol2.c (fetch_core_registers): Replace
11612 DEPRECATED_NPC_REGNUM with equivalent tdep value.
11613
adc11376
AC
11614 * hppa-tdep.c: Update copyright year.
11615 (hppa_target_write_pc): Use PCOQ_TAIL_REGNUM instead of
11616 NPC_REGNUM.
11617 (hppa_gdbarch_init): Do not set deprecated_npc_regnum.
11618
b6cb9035
AC
11619 * mips-tdep.c (mips_write_pc): New function.
11620 (mips_gdbarch_init): Set "write_pc" to "mips_write_pc".
11621 (mips_read_pc): Use mips_regnum instead of PC_REGNUM.
11622 (mips_find_saved_regs, mips_software_single_step: Ditto.
11623 (mips_frame_saved_pc, mips_frame_saved_pc): Ditto.
11624 mips_init_extra_frame_info, mips_pop_frame): Ditto.
11625
6d82d43b
AC
116262004-01-17 Andrew Cagney <cagney@redhat.com>
11627
11628 * mips-tdep.c: Re-indent. Group functions by ABI.
11629
71bd6bd4
AC
116302004-01-17 Andrew Cagney <cagney@redhat.com>
11631
11632 * gdbarch.sh (DECR_PC_AFTER_BREAK): Make zero the default.
11633 * gdbarch.c: Re-generate.
11634 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
11635 DECR_PC_AFTER_BREAK to zero.
11636 * vax-tdep.c (vax_gdbarch_init): Ditto.
11637 * v850-tdep.c (v850_gdbarch_init): Ditto.
11638 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
11639 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
11640 * sh-tdep.c (sh_gdbarch_init): Ditto.
11641 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
11642 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
11643 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11644 * mips-tdep.c (mips_gdbarch_init): Ditto.
11645 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11646 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11647 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
11648 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11649 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
11650 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
11651 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11652 * frv-tdep.c (frv_gdbarch_init): Ditto.
11653 * cris-tdep.c (cris_gdbarch_init): Ditto.
11654 * avr-tdep.c (avr_gdbarch_init): Ditto.
11655 * arm-tdep.c (arm_gdbarch_init): Ditto.
11656 * i386-nto-tdep.c (i386nto_init_abi): Add comment.
11657
a02abb62
JB
116582004-01-17 J. Brobecker <brobecker@gnat.com>
11659
11660 * dwarf2read.c (dwarf2_non_const_array_bound_ignored_complaint):
11661 Delete, no longer used.
11662 (read_subrange_type): New function, mostly extracted from
11663 read_array_type().
11664 (read_array_type): Replace extracted code by call to
11665 read_subrange_type().
11666 (dwarf2_get_attr_constant_value): New function.
11667 (scan_partial_symbols): Add handling for DW_TAG_subrange_type.
11668 (add_partial_symbol): Likewise.
11669 (process_die): Likewise.
11670 (new_symbol): Likewise.
11671 (read_type_die): Likewise.
11672
cf5b2f1b
AC
116732004-01-16 Andrew Cagney <cagney@redhat.com>
11674
11675 * symfile.c: Update copyright year.
11676 (compare_symbols): Delete unused function.
11677 * stabsread.c: Update copyright year.
11678 (lrs_general_complaint): Delete unused function.
11679 (ref_search_value): Ditto.
11680 (get_substring): Delete declaration.
11681 * sh64-tdep.c: Update copyright year.
11682 (sh64_get_gdb_regnum): Delete unused function.
11683 * dwarf2read.c (dwarf2_unsupported_at_frame_base_complaint):
11684 Delete unused function.
11685
d33b9831
MK
116862004-01-17 Mark Kettenis <kettenis@gnu.org>
11687
11688 * defs.h (gdb_osabi): Add GDB_OSABI_OPENBSD_ELF.
11689 * osabi.c (gdb_osabi_names): Add "OpenBSD ELF".
11690
7aea86e6
AC
116912004-01-16 Andrew Cagney <cagney@redhat.com>
11692
11693 Changes from Peter Schauer.
11694 * rs6000-tdep.c: Update copyright year.
11695 (rs6000_push_dummy_call): Update the stack pointer before
11696 accessing the corresponding stack region.
11697 * rs6000-nat.c: Update copyright year.
11698 (set_host_arch): Set "info.abfd" to "exec_bfd".
11699
26b0da32
MK
117002004-01-15 Mark Kettenis <kettenis@gnu.org>
11701
11702 * blockframe.c: Update copyright year.
11703 (inside_entry_func): Don't treat a zero PC specially.
11704
86fbe6cc
EZ
117052004-01-14 Elena Zannoni <ezannoni@redhat.com>
11706
11707 * gcore.c (gcore_copy_callback): Use paddr_d to print size
11708 variable.
11709 (gcore_create_callback): Ditto. Skip any memory segment that has
11710 no permissions set.
11711
63d06c5c
DC
117122004-01-14 David Carlton <carlton@kealia.com>
11713
11714 Change symbols for C++ nested types to contain the fully qualified
11715 name, if possible. (At least in the DWARF-2 case.) Partial fix
11716 for PR's c++/57, c++/488, c++/539, c++/573, c++/609, c++/832,
11717 c++/895.
11718 * c-exp.y (qualified_type): Handle types nested within classes.
11719 * cp-namespace.c: Update comments.
11720 (cp_set_block_scope): Delete #if 0.
11721 (cp_lookup_nested_type): Handle types nested within classes.
11722 * dwarf2read.c: (scan_partial_symbols): Call add_partial_structure
11723 when appropriate.
11724 (add_partial_symbol): Add the name of the enclosing namespace to
11725 types.
11726 (pdi_needs_namespace): New.
11727 (add_partial_namespace): Tweak comment.
11728 (add_partial_structure): New.
11729 (psymtab_to_symtab_1): Initialize processing_current_prefix
11730 here...
11731 (process_die): instead of here.
11732 (read_structure_scope): Try to figure out the name of the class or
11733 namespace that the structure might be defined within.
11734 (read_enumeration): Generate fully-qualified names, if possible.
11735 (read_namespace): Don't set name to NULL.
11736 (die_specification): New.
11737 (new_symbol): Generate fully-qualified names for types.
11738 (read_type_die): Determine appropriate prefix.
11739 (determine_prefix): New.
11740 (typename_concat): New.
11741 (class_name): New.
11742 * valops.c (value_aggregate_elt): Pass NOSIDE to
11743 value_struct_elt_for_reference.
11744 (value_struct_elt_for_reference): Make static, add NOSIDE
11745 parameter, call value_maybe_namespace_elt as a last resort.
11746 (value_namespace_elt): Break out code into
11747 value_maybe_namespace_elt.
11748 (value_maybe_namespace_elt): New.
11749
87783b8b
AC
117502004-01-12 Andrew Cagney <cagney@redhat.com>
11751
11752 * mips-tdep.c (mips_convert_register_p): Handle both raw and
11753 cooked floating-point registers.
11754 (mips_gdbarch_init): Set convert_register_p, register_to_value,
11755 and value_to_register.
11756
6503b91e
AC
117572004-01-13 Andrew Cagney <cagney@redhat.com>
11758
11759 * gdbarch.sh (FUNCTION_START_OFFSET): Make zero the default.
11760 * gdbarch.c: Re-generate.
11761 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
11762 FUNCTION_START_OFFSET.
11763 * v850-tdep.c (v850_gdbarch_init): Ditto.
11764 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
11765 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
11766 * sh-tdep.c (sh_gdbarch_init): Ditto.
11767 * s390-tdep.c (s390_gdbarch_init): Ditto.
11768 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
11769 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
11770 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11771 * mips-tdep.c (mips_gdbarch_init): Ditto.
11772 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11773 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
11774 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11775 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
11776 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11777 * i386-tdep.c (i386_gdbarch_init): Ditto.
11778 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
11779 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11780 * frv-tdep.c (frv_gdbarch_init): Ditto.
11781 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11782 * cris-tdep.c (cris_gdbarch_init): Ditto.
11783 * avr-tdep.c (avr_gdbarch_init): Ditto.
11784 * arm-tdep.c (arm_gdbarch_init): Ditto.
11785 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
11786
ea1dd7bc
DJ
117872004-01-13 Daniel Jacobowitz <drow@mvista.com>
11788
11789 * infrun.c (follow_fork_mode_ask): Remove.
11790 (follow_fork_mode_kind_names): Remove follow_fork_mode_ask.
11791 (follow_fork): Simplify and remove internal error for
11792 follow_fork_mode_ask.
11793 (_initialize_infrun): Update "set follow-fork-mode" help text.
11794
0f0cffd2
AC
117952004-01-13 Andrew Cagney <cagney@redhat.com>
11796
11797 * configure.in: Update copyright year.
11798 (build_warnings): Add -Wunused-label.
11799 * configure: Re-generate.
11800
de38af99
AC
118012004-01-12 Andrew Cagney <cagney@redhat.com>
11802
954a7fba
AC
11803 * exec.h (exec_ops): Make "extern".
11804
de38af99
AC
11805 * mips-tdep.c (mips_pseudo_register_read): Don't return a value,
11806 the function is void.
11807 (mips_pseudo_register_write): Ditto.
11808
1a111ce3
AC
118092004-01-12 Andrew Cagney <cagney@redhat.com>
11810
11811 * stack.c (frame_info): Delete DEPRECATED_PRINT_EXTRA_FRAME_INFO
11812 call. Never defined.
11813 * sparc-tdep.h (struct frame_info): Add opaque declaration.
11814 * sparc64-tdep.h (struct gdbarch): Add opaque declaration.
11815 (struct sparc_gregset, struct regcache): Ditto.
11816 * sparc-nat.c: Update copyright. Specify "GNU/Linux".
11817
48efe704
AC
118182004-01-12 Andrew Cagney <cagney@redhat.com>
11819
11820 * mi/ChangeLog: Delete file. Renamed to ...
11821 * mi/ChangeLog-1999-2003: New file.
11822 * tui/ChangeLog: Delete file. Renamed to ...
11823 * tui/ChangeLog-1998-2003: New file.
fe61caab 11824
a54124c5
MK
118252004-01-11 Mark Kettenis <kettenis@gnu.org>
11826
2ca62865
MK
11827 * sparc64nbsd-tdep.c: Include "regset.h".
11828 (sparc64nbsd_sizeof_struct_reg, sparc64nbsd_sizeof_struct_fpreg):
11829 Remove variables.
11830 (fetch_core_registers): Remove function.
11831 (sparc64nbsd_core_fns): Remove variable.
11832 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): New
11833 functions.
11834 (sparc64nbsd_init_abi): Initialize TDEP->gregset,
11835 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
11836 (_initialize_sparc64nbsd_tdep): Remove call to add_core_fns.
11837
ca9d58e9
MK
11838 * sparc-tdep.c (sparc32_extract_struct_value_address): Rename from
11839 sparc_extract_struct_value_address.
11840 (sparc32_gdbarch_init): Set extract_struct_value_address.
11841 * sparc64-tdep.c (sparc64_extract_struct_value_address): New
11842 function.
11843 (sparc64_init_abi): Set extract_struct_value_address. Don't set
11844 return_value_on_stack.
11845
3cc87ec0
MK
11846 * NEWS: Mention that %cs and %ss have been added to the AMD64
11847 configurations
11848
5bf00f29
MK
11849 * frame.c: Update copyright year.
11850 (get_prev_frame): Improve comment.
11851
4f7ec84e
MK
11852 * sparc64fbsd-tdep.c: Include "regset.h".
11853 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
11854 Remove variables.
11855 (fetch_core_registers): Remove function.
11856 (sparc64fbsd_core_fns): Remove variable.
11857 (sparc64fbsd_supply_gregset, sparc64fbsd_supply_fpregset): New
11858 functions.
11859 (sparc64fbsd_init_abi): Initialize TDEP->gregset,
11860 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
46b58ce9 11861 (_initialize_sparc64fbsd_tdep): Remove call to add_core_fns.
4f7ec84e 11862
4e7b0cd3
MK
11863 * sparcnbsd-tdep.c: Include "regset.h".
11864 (fetch_core_registers): Remove function.
11865 (sparcnbsd_core_fns, sparcnbsd_elfcore_fns): Remove varaibles.
11866 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): New
11867 functions.
11868 (sparc32nbsd_init_abi): Initialize TDEP->gregset and
11869 TDEP->fpregset.
46b58ce9 11870 (_initialize_sparcnbsd_tdep): Remove calls to add_core_fns.
4e7b0cd3 11871
a54124c5
MK
11872 * sparc-tdep.h (struct regset): Provide opaque declaration.
11873 (struct gdbarch_tdep): Add gregset, sizeof_gregset,
11874 fpregset and sizeof_fpregset members.
11875 * sparc-tdep.c (struct regset): Provide opaque declaration.
11876 (sparc_regset_from_core_section): New function.
11877 (sparc32_gdbarch_init): Initialize TDEP->gregset,
11878 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_fpregset.
11879 Set regset_from_core_section when appropriate.
11880
29ff87c5
MK
118812004-01-10 Mark Kettenis <kettenis@gnu.org>
11882
79b1ab3d
MK
11883 * x86-64-tdep.c (amd64_non_pod_p): New function.
11884 (amd64_classify_aggregate): Return class memory for non-POD
11885 C++ structure types.
11886
6470d250
MK
11887 * x86-64-tdep.c (amd64_push_arguments): Add struct_return
11888 argument. Use it to reserve a register if necessary.
11889 (amd64_push_dummy_call): Pass STRUCT_RETURN in call to
11890 amd64_push_arguments.
11891
562c50c2
MK
11892 * x86-64-tdep.c (amd64_classify_aggregate): Ignore static fields.
11893
af233647
MK
11894 * x86-64-tdep.c (amd64_register_info): Add %cs and %ss. Adjust
11895 register numbers in comments.
11896 * x86-64-tdep.h: Update copyright year.
11897 (X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM):
11898 Adjust for addition of %cs and %ss.
11899 * amd64fbsd-nat.c: Update copyright year.
11900 (reg_offset): Add register offsets for %cs and %ss.
11901 * amd64fbsd-tdep.c: Update copyright year.
11902 (amd64fbsd_r_reg_offset): Add register offsets for %cs and %ss.
11903 (amd64fbsd_sc_reg_offset): Likewise.
11904 * x86-64-linux-nat.c: Update copyright year.
11905 (x86_64_linux_gregset64_reg_offset): Add register offsets for %cs
11906 and %ss.
11907 * amd64nbsd-nat.c: Update copyright year.
11908 (amd64nbsd32_r_reg_offset): Add register offsets for %cs and %ss.
11909 * amd64nbsd-tdep.c: Update copyright year.
11910 (amd64nbsd_r_reg_offset): Add register offsets for %cs and %ss.
11911 * x86-64-linux-tdep.c: Update copyright year.
11912 (user_to_gdb_regmap): Add mapping for %cs and %ss.
11913 (x86_64_linux_sc_reg_offset): Adjust for addition of %cs and %ss.
11914 * regformats/reg-x86-64.dat: Add %cs and %ss.
11915
29ff87c5
MK
11916 * blockframe.c (inside_entry_func): Reformat. Introduce new local
11917 variables to prevent long lines. Update comments to reflect
11918 reality.
11919
38d518c9
EZ
119202004-01-09 David Carlton <carlton@kealia.com>
11921
11922 Checked in by Elena Zannoni <ezannoni@redhat.com>.
11923 * dwarf2read.c (read_namespace): Pull out name-generating code
11924 into namespace_name. Rename previous_namespace to previous_prefix
11925 and processing_current_namespace to processing_current_prefix..
11926 (namespace_name): New function.
11927 (add_partial_symbol): Substitute uses of pdi->name with
11928 actual_name.
11929 * cp-support.h: Rename processing_current_namespace to
11930 processing_current_prefix.
11931 Update copyright year.
11932 * cp-namespace.c: Rename processing_current_namespace to
11933 processing_current_prefix.
11934 Update copyright year.
fe61caab 11935
1e4728e7
AC
119362004-01-09 Andrew Cagney <cagney@redhat.com>
11937
11938 * jv-valprint.c, ser-unix.c: Add missing copyright years.
11939
c77c642a
MK
119402004-01-09 Mark Kettenis <kettenis@gnu.org>
11941
11942 * dbxread.c (read_dbx_symtab): Ignore N_PATCH stabs instead of
11943 complaining.
11944 (process_one_symbol): Deal with N_PATCH stabs.
11945
b44e9041
EZ
119462004-01-09 Elena Zannoni <ezannoni@redhat.com>
11947
11948 * dwarf2read.c (read_array_type): Discard FORTRAN_HACK macro and
11949 ifdeffed code.
11950 Update copyright year.
38d518c9 11951
eccfb640
MC
119522004-01-08 Michael Chastain <mec.gnu@mindspring.com>
11953
11954 * config/pa/tm-hppa.h: Update extern declarations for
11955 hppa32_hpux_frame_saved_pc_in_sigtramp,
11956 hppa32_hpux_frame_base_before_sigtramp, and
11957 hppa32_hpux_frame_find_saved_regs_in_sigtramp.
11958
848c5feb
MC
119592004-01-08 Michael Chastain <mec.gnu@mindspring.com>
11960
11961 * config/pa/tm-hppah.h: Update copyright years.
11962
3cc5d663
AC
119632004-01-08 Andrew Cagney <cagney@redhat.com>
11964
11965 * mips-tdep.c (mips_n32n64_reg_struct_has_addr): Delete function.
11966 (mips_o32_reg_struct_has_addr): Delete function.
11967 (mips_gdbarch_init): Update.
11968 (mips_extract_struct_value_address): Delete function.
11969
bfec0b41
JJ
119702004-01-08 David Mosberger <davidm@hpl.hp.com>
11971
11972 * ia64-linux-tdep.c: Update GATE_AREA_END value to reflect
11973 reality.
11974
16e109ca
AC
119752004-01-07 Andrew Cagney <cagney@redhat.com>
11976
6214a8a1
AC
11977 * mips-tdep.c (mips_gdbarch_init): Set elf_flags to the previous
11978 architecture's elf flags (when available).
11979
8d5838b5
AC
11980 * mips-tdep.c (mips_gdbarch_init): Move code determining the MIPS
11981 FPU to the start, check the MIPS FPU when looking for an old
11982 architecture.
11983 (set_mipsfpu_single_command): Update the architecture.
11984 (set_mipsfpu_double_command, set_mipsfpu_none_command): Ditto.
11985
480d3dd2
AC
11986 * mips-tdep.c (MIPS_DEFAULT_MASK_ADDRESS_P): Delete macro.
11987 (mips_mask_address_p): Add "tdep" parameter.
11988 (show_mask_address, mips_addr_bits_remove): Update.
11989 (mips_dump_tdep): Update.
11990 (MIPS_DEFAULT_STACK_ARGSIZE): Delete macro.
11991 (MIPS_STACK_ARGSIZE): Delete macro.
11992 (mips_stack_argsize, mips_eabi_push_dummy_call): Update.
11993 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call): Update.
11994 (mips_o64_push_dummy_call, mips_o32_return_value): Update.
11995 (mips_dump_tdep): Update.
11996 (MIPS_SAVED_REGSIZE): Delete macro.
11997 (MIPS_DEFAULT_SAVED_REGSIZE): Delete macro.
11998 (mips_saved_regsize, mips_eabi_use_struct_convention): Update.
11999 (mips_eabi_reg_struct_has_addr, mips_find_saved_regs): Update.
12000 (mips_frame_saved_pc, mips16_heuristic_proc_desc): Update.
12001 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call): Update.
12002 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update.
12003 (mips_pop_frame, return_value_location): Update.
12004 (mips_n32n64_return_value, mips_dump_tdep): Update.
12005
ec03c1ac
AC
12006 * mips-tdep.c (mips_gdbarch_init): Clean up code selecting the
12007 MIPS ABI.
12008
16e109ca
AC
12009 * mips-tdep.c: Update copyright.
12010 (mips_gdbarch_init): Merge two code blocks handling the register
12011 name and number layout.
12012
15255275
MS
120132004-01-02 Pawel Ostrowski <pasza@zodiac.mimuw.edu.pl>
12014
12015 * tracepoint.c (validate_actionline): Fix segv at EOF
12016
9f9057da
MC
120172004-01-07 Michael Chastain <mec.gnu@mindspring.com>
12018
12019 * hpread.c (hpread_read_struct_type): Call SET_FIELD_PHYSNAME
12020 properly for static fields.
12021
0127c0d3 120222004-01-06 Jeff Johnston <jjohnstn@redhat.com>
91562f53 12023 Jason Molenda <jmolenda@apple.com>
0127c0d3
JJ
12024
12025 * disasm.c: Update copyright to include 2004.
12026 (do_mixed_source_and_assembly): For uiout asm list
12027 and tuple cleanups, initialize to null_cleanup instead of
fe61caab 12028 NULL and do so prior to loop. Only reset when we close off
0127c0d3 12029 the tuple/list. Move check for whether to close off the
fe61caab 12030 asm tuple/list to after dump_insns call where it will be run
0127c0d3
JJ
12031 on each loop iteration.
12032
5269965e
AC
120332004-01-05 Andrew Cagney <cagney@redhat.com>
12034
54f1137d
AC
12035 * ser-unix.c (ser_unix_async): Fix tipo, "NOTHING_SECHEDULED"
12036 should be a switch case and not a label.
12037 * mips-tdep.c (mips32_next_pc): Delete unused labels
12038 "greater_equal_branch" and "less_zero_branch".
12039 * jv-valprint.c (java_print_value_fields): Delete unused label
12040 "flush_it".
12041
5269965e
AC
12042 * target.c (unpush_target): Only close a target that is in the
12043 target stack.
12044
dbc22fa1
MK
120452004-01-05 Mark Kettenis <kettenis@gnu.org>
12046
9515395e
MK
12047 * sparc-tdep.c (sparc_extract_struct_value_address): Get the
12048 address from [sp + 64] instead of %o2.
12049
dbc22fa1
MK
12050 * frame.c (get_prev_frame): Don't try to unwind the PC. This
12051 fixes PR backtrace/1476.
12052
5439edaa
AC
120532004-01-05 Andrew Cagney <cagney@redhat.com>
12054
12055 * libunwind-frame.h (struct frame_id): Add opaque declaration,
12056 move to start of file.
12057 * i386-tdep.h (struct regcache): Add opaque declaration.
12058 * config/ia64/nm-linux.h (struct target_ops): Add opaque
12059 declaration.
12060 * ia64-tdep.c (ia64_find_proc_info_x): Do not use __FUNCTION__.
12061 (ia64_gdbarch_init): Use "GNU/Linux" in comment.
12062 * win32-nat.c (fake_create_process): Use ISO C style definition.
12063 * stabsread.c (define_symbol): Delete #ifndef
12064 DEPRECATED_USE_REGISTER_NOT_ARG wrapper around
12065 stabs_argument_has_addr call, macro never defined.
12066
19061abe
MC
120672004-01-04 Michael Chastain <mec.gnu@mindspring.com>
12068
12069 * op50-rom.c: Delete.
12070 * w89k-rom.c: Delete.
12071 * Makefile.in: Remove references.
12072
e53bef9f
MK
120732004-01-04 Mark Kettenis <kettenis@gnu.org>
12074
12075 * x86-64-tdep.c: Update copyright year.
12076 (struct amd64_register_info): Rename from x86_64_register_info.
12077 (amd64_register_info): Rename from x86_64_register_info.
12078 (AMD64_NUM_REGS): Rename from X86_64_NUM_REGS.
12079 (amd64_register_name): Rename from x86_64_register_name.
12080 (amd64_register_type): Rename from x86_64_register_type.
12081 (amd64_dwarf_regmap): Rename from x86_64_dwarf_regmap.
12082 (amd64_dwarf_regmap_len): Rename from x86_64_dwarf_regmap_len.
12083 (amd64_dwarf_reg_to_regnum): Rename from
12084 x86_64_dwarf_reg_to_regnum.
12085 (amd64_convert_register_p): Rename from x86_64_convert_register_p.
12086 (amd64_push_dummy_call): Rename from x86_64_push_dummy_call.
12087 (AMD64_NUM_SAVED_REGS): Rename from X86_64_NUM_SAVED_REGS.
12088 (struct amd64_frame_cache): Renamed from x86_64_frame_cache.
12089 (amd64_alloc_frame_cache): Renamed from x86_64_alloc_frame_cache.
12090 (amd64_analyze_prologue): Rename from x86_64_analyze_prologue.
12091 (amd64_skip_prologue): Rename from x86_64_skip_prologue.
12092 (amd64_frame_cache): Rename from x86_64_frame_cache.
12093 (amd64_frame_this_id): Rename from x86_64_frame_this_id.
12094 (amd64_frame_prev_register): Rename from
12095 x86_64_frame_prev_register.
12096 (amd64_frame_unwind): Rename from x86_64_frame_unwind.
12097 (amd64_frame_sniffer): Rename from x86_64_frame_sniffer.
12098 (amd64_sigtramp_frame_cache): Rename from
12099 x86_64_sigtramp_frame_cache.
12100 (amd64_sigtramp_frame_prev_register): Rename from
12101 x86_64_sigtramp_frame_prev_register.
12102 (amd64_sigtramp_frame_unwind): Rename from
12103 x86_64_sigtramp_frame_unwind.
12104 (amd64_sigtramp_frame_sniffer): Rename from
12105 x86_64_sigtramp_frame_sniffer.
12106 (amd64_frame_base_address): Rename from x86_64_frame_base_address.
12107 (amd64_frame_base): Rename from x86_64_frame_base.
12108 (amd64_unwind_dummy_id): Rename from x86_64_unwind_dummy_id.
12109 (amd64_frame_align): Rename from x86_64_frame_align.
12110 (amd64_supply_fpregset): Rename from x86_64_supply_fpregset.
12111 (amd64_regset_from_core_section): Rename from
12112 x86_64_regset_from_core_section.
12113 (x86_64_init_abi): Update comments.
12114
fca6aa58
NR
121152004-01-04 Nick Roberts <nick@nick.uklinux.net>
12116
12117 * MAINTAINERS (write after approval): Add myself.
12118
8ada74e3
MK
121192004-01-04 Mark Kettenis <kettenis@gnu.org>
12120
12121 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
12122 `float' arguments.
12123
5154b0cd
MK
121242004-01-04 Mark Kettenis <kettenis@gnu.org>
12125
12126 * sparc64-tdep.c (sparc64_store_floating_fields): Update comment
12127 such that it mentions a specific version of GCC that exhibits this
12128 bug.
12129
fb316966
MK
121302004-01-03 Mark Kettenis <kettenis@gnu.org>
12131
200cc553
MK
12132 * sparc64-tdep.c (sparc64_store_floating_fields): If TYPE is a
12133 structure that has a single `float' member, store it in %f1 in
12134 addition to %f0.
12135
e226a4a0
MK
12136 * sparc-sol2-nat.c: Add missing '\'.
12137
b9d4c5ed
MK
12138 * sparc-tdep.c (sparc32_return_value): New function.
12139 (sparc32_use_struct_convention, sparc32_return_value_on_stack):
12140 Remove functions.
12141 (sparc32_gdbarch_init): Set return_value, don't set
12142 extract_return_value, store_return_value, use_struct_convention
12143 and return_value_on_stack.
12144
fb316966
MK
12145 * sparc-sol2-nat.c: Add missing ')'.
12146
1af510a8
JB
121472004-01-03 J. Brobecker <brobecker@gnat.com>
12148
12149 * infrun.c (handle_step_into_function): New function.
12150 (handle_inferior_event): Extract out some code into the new
12151 function above.
12152
5cf4d23a
JB
121532004-01-03 J. Brobecker <brobecker@gnat.com>
12154
12155 * infrun.c (handle_inferior_event): Move the declaration of
12156 real_stop_pc inside the if blocks where it is used.
12157
60af1db2
MK
121582004-01-03 Mark Kettenis <kettenis@gnu.org>
12159
12160 * sparc64-tdep.c (sparc64_16_byte_align_p)
12161 (sparc64_store_floating_fields, sparc64_store_floating_fields):
12162 Use check_typedef to get subtypes of structures and unions.
12163 (sparc64_store_return_value): Fix calculation of the appropriate
12164 offset into VALBUF when storing a structure or union.
12165 (sparc64_return_value): New function.
12166 (sparc64_use_struct_convention): Remove function.
12167 (sparc64_init_abi): Set return_value, don't set
12168 extract_return_value, store_return_value and
12169 use_struct_convention.
12170
1a901d3f
EZ
121712004-01-03 Eli Zaretskii <eliz@elta.co.il>
12172
12173 * config/djgpp/fnchange.lst: Add lines for COPYING.LIBGLOSS,
12174 bfd/doc/ChangeLog-9103, bfd/elf32-m68hc1x.c,
12175 gdb/config/alpha/xm-alphaosf.h,
12176 gdb/config/powerpc/tm-ppcle-eabi.h,
12177 gdb/config/rs6000/tm-rs6000-aix4.h, gdb/gdbtk/ChangeLog-2001,
12178 gdb/gdbtk/ChangeLog-2002, gdb/gdbtk/ChangeLog-2003,
12179 gdb/gdbtk/plugins/intel-pentium/intel-pentium.tcl.in,
12180 gdb/gdbtk/plugins/rhabout/rhabout.tcl.in, gdb/i386-linux-nat.c,
12181 gdb/ia64-aix-nat.c, gdb/ia64-aix-tdep.c, gdb/ia64-linux-nat.c,
12182 gdb/ia64-linux-nat.c, gdb/ppc-linux-tdep.c, gdb/ppc-linux-nat.c,
12183 gdb/sparc64nbsd-nat.c, gdb/sparc64nbsd-tdep.c,
12184 gdb/sparc64-linux-nat.c, gdb/sparc64-linux-tdep.c,
12185 gdb/sparc64-nat.c, gdb/sparc64-tdep.c, gdb/sparc64-sol2-tdep.c,
12186 gdb/sparc-sol2-nat.c, gdb/sparc-sol2-tdep.c,
12187 gdb/testsuite/gdb.gdbtk/, gdb/testsuite/gdb.mi/mi-var-child.exp,
12188 nclude/ChangeLog-9103, include/coff/ChangeLog-9103,
12189 include/elf/ChangeLog-9103, include/opcode/ChangeLog-9103,
12190 opcodes/ChangeLog-0001, opcodes/ChangeLog-0203,
12191 opcodes/openrisc-dis.c, opcodes/openrisc-desc.h,
12192 sim/frv/profile-fr550.c, sim/frv/profile-fr550.h,
12193 sim/sh64/sem-compact-switch.c, sim/sh64/sem-media-switch.c,
12194 sim/testsuite/sim/sh64/compact/ldsl-mach.cgs,
12195 sim/testsuite/sim/sh64/compact/ldsl-macl.cgs,
12196 sim/testsuite/sim/sh64/compact/stsl-mach.cgs, and
12197 sim/testsuite/sim/sh64/compact/stsl-macl.cgs.
12198 Remove lines for .cvsignore files.
12199
ef52e463
JB
122002004-01-03 J. Brobecker <brobecker@gnat.com>
12201
12202 * infrun.c: Back out the previous change.
12203
cb1bf9dc
MK
122042004-01-03 Mark Kettenis <kettenis@gnu.org>
12205
f0424ef6
MK
12206 * NEWS: Mention revised SPARC target. Add sparc-*-lynxos* and
12207 sparc-*-sunos4* to the list of REMOVED configurations.
12208
cb1bf9dc
MK
12209 * configure.tgt: Add back sparc-*-vxworks*.
12210 * remote-vxsparc.c: Remove all includes except for "defs.h",
12211 "regcache.h", "vx-share/ptrace.h" and "vx-share/regPacket.h".
12212 Include "sparc-tdep.h".
12213 (SPARC_R_G1): New define.
12214 (vxsparc_gregset): New variable.
12215 (ext_format_sparc): Remove extern declaration.
12216 (vx_read_register): Rewrite to use sparc32_supply_gregset and
12217 sparc32_supply_fpregset.
12218 (vx_write_register): Rewrite to use sparc32_collect_gregset,
12219 sparc_collect_rwindow and sparc32_collect_fpregset.
12220 * config/sparc/tm-vxworks.h: New file, based on recently removed
12221 tm-vxsparc.h.
12222 * config/sparc/vxworks.mt: New file, based on recently removed
12223 vxworks.mt.
fe61caab 12224
5e938f9f
JB
122252004-01-03 J. Brobecker <brobecker@gnat.com>
12226
12227 * infrun.c (handle_step_into_function): New function.
12228 (handle_inferior_event): Extract out some code into the new
12229 function above.
12230
386c036b
MK
122312004-01-02 Mark Kettenis <kettenis@gnu.org>
12232
12233 * Makefile.in (ALLDEPFILES): Remove sparc-linux-nat.c and
12234 sparcl-tdep.c. Add sparc-linux-tdep.c, sparc-sol2-nat.c,
12235 sparc-sol2-tdep.c, sparc-sol2-nat.c, sparc-sol2-tdep.c,
12236 sparc64-linux-nat.c, sparc64-linux-tdep.c, sparc64-nat.c,
12237 sparc64-sol2-tdep.c, sparc64-tdep.c, sparc64fbsd-nat.c,
12238 sparc64fbsd-tdep.c, sparcnbsd-nat.c, sparcnbsd-tdep.c.
12239 (sparc_nat_h): New variable.
12240 (sparcbsd_nat_h, sparcnbsd_tdep_h): Remove variables.
12241 (tm-sun4os4.h): Remove dependency.
12242 (sparcbsd-nat.o, sparc-linux-nat.o): Remove dependencies.
12243 (sparc64fbsd-nat.o, sparc64fbsd-tdep.o, sparc64nbsd-nat.o,
12244 sparc64-tdep.o, sparc-nat.o, sparcnbsd-nat.o, sparcnbsd-tdep.o,
12245 sparc-tdep.o): Update dependencies.
12246 (sparc-linux-tdep.o, sparc-sol2-nat.o, sparc-sol2-tdep.o,
12247 sparc64-linux-nat.o, sparc64-linux-tdep.o, sparc64-nat.o,
12248 sparc64-sol2-tdep.o, sparc64-tdep.o, sparc64nbsd-tdep.o): New
12249 dependencies.
12250 * configure.host: Remove existing sparc-*-lynxos*,
12251 sparc-*-solaris*, sparc-*-sunos4*, sparc-*-sunos5*, sparc-*-*,
12252 ultrasparc-*-freebsd, sparcv9-*-freebsd, sparc64-*-linux*,
12253 sparcv9-*-* and sparc64-*-* triplets. Add new sparc64-*-linux*,
12254 sparc-*-solaris2*, sparcv9-*-solaris2* and sparc64-*-solaris2*
12255 triplets.
12256 * configure.tgt: Remove exitsing sparc-*-aout*, sparc-*-coff*,
12257 sparc-*-elf*, sparc*-lynxos*, sparc-*-solars2*, sparc-*-sunos4*,
12258 sparc-*-sunos5*, sparc-*-vxworks*, sparc64-*linux*, sparc64-*-*,
12259 sparcv9-*-* and commented out sparc64-*-solars2* triplets. Add
12260 new sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*,
12261 sparc64-*-linux, sparc-*-solaris2*, sparcv9-*-solaris*,
12262 sparc64-*-solaris2* and sparc64-*-* triplets.
12263 * sparc64-tdep.c: Update copyright year. Include "inferior.h",
12264 "symtab.h" and "objfiles.h".
12265 (BIAS): Remove define.
12266 (X_OP, X_RD, X_A, X_COND, X_OP2, X_IMM22, X_OP3, X_I, X_DISP22)
12267 (X_DISP19): Remove macros.
12268 (sparc_fetch_instruction): Remove function.
12269 (struct gdbarch_tdep): Remove definition.
12270 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use ARRAY_SIZE.
12271 (sparc_breakpoint_from_pc): Remove function.
12272 (struct sparc64_frame_cache): Remove definition.
12273 (sparc64_alloc_frame_cache, sparc64_analyze_prologue,
12274 sparc64_unwind_pc): Remove functions.
12275 (sparc64_skip_prologue): Use `struct sparc_frame_cache' instead of
12276 `struct sparc64_frame_cache. Call sparc_analyze_prologue instead
12277 of sparc64_analyze_prologue. Mark constant as ULL instead of UL.
12278 (sparc64_frame_cache): Change return type to `struct
12279 sparc_frame_cache *'. Simply call sparc_frame_cache.
12280 (sparc64_frame_this_id, sparc64_frame_prev_register,
12281 sparc64_frame_base_address): Use `struct sparc_frame_cache'
12282 instead of `struct sparc64_frame_cache.
12283 (sparc_unwind_dummy_id, sparc_extract_struct_value_address,
12284 sparc_analyze_control_transfer, sparc_software_single_step,
12285 sparc64_gdbarch_init, sparc_supply_rwindow, sparc_fill_rwindow,
12286 _initialize_sparc64_tdep): Remove functions.
12287 (TSTATE_CWP, TSTATE_ICC, TSTATE_XCC): New macros.
12288 (PSR_S, PSR_ICC, PSR_VERS, PSR_IMPL, PSR_V8PLUS, PSR_XCC): New
12289 macros.
12290 (sparc64_supply_gregset, sparc64_collect_gregset,
12291 sparc64_supply_fpregset, sparc64_collect_fpregset): New functions.
12292 (sparc64_init_abi): New function.
12293 * sparc64-tdep.h: Update copyright year. Fix typo in multiple
12294 inclusion guard. Include "sparc-tdep.h".
12295 (BIAS): Define.
12296 (r_tstate_offset, r_fprs_offset): New defines.
12297 (enum sparc_regnum): Remove defenition.
12298 (enum sparc64_regnum): Reformat.
12299 (sparc_supply_rwindow, sparc_fill_rwindow): Remove prototypes.
12300 (sparc64_init_abi, sparc64_supply_gregset,
12301 sparc64_collect_gregset, sparc64_supply_fpregset,
12302 sparc64_collect_fpregset): New prototypes.
12303 (sparc64_sol2_gregset, sparc64nbsd_gregset, sparc64fbsd_gregset):
12304 Add extern declarations.
12305 (sparc64_sol2_init_abi): New prototype.
12306 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
12307 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
12308 prototypes.
12309 * sparc64fbsd-nat.c: Include "sparc-nat.h", don't include
12310 "sparnbsd-nat.h".
12311 (sparc64fbsd_reg_supplies_p, sparc64fbsd_fpreg_supplies_p): Remove
12312 functions.
12313 (_initialize_sparc64fbsd_nat): Remove initialization of
12314 sparcbsd_supply_reg, sparcbsd_fill_reg, sparcbsd_supply_fpreg,
12315 sparcbsd_fill_fpreg, sparcbsd_reg_supplies_p,
fe61caab 12316 sparcbsd_fpreg_supplies_p. Initialize sparc_gregset.
386c036b
MK
12317 * sparc64fbsd-tdep.c: Update copyright year. Include "frame.h",
12318 "frame-unwind.h", "trad-frame.h" and "gdb_assert.h".
12319 (sparc64fbsd_r_global_offset, sparc64fbsd_r_out_offset)
12320 (sparc64fbsd_r_fprs_offset, sparc64fbsd_r_tnpc_offset)
12321 (sparc64fbsd_r_tpc_offset, sparc64fbsd_r_tstate_offset)
12322 (sparc64fbsd_r_y_offset): Remove variables.
12323 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
12324 Make static and const.
12325 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
12326 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
12327 functions.
12328 (sparc64fbsd_gregset): New variable.
12329 (fetch_core_registers): Replace calls to sparc64fbsd_supply_reg
12330 and sparc64fbsd_supply_fpreg with calls to sparc64_supply_gregset
12331 and sparc64_supply_fpregset.
12332 (sparc64fbsd_pc_in_sigtramp, sparc64fbsd_sigtramp_frame_cache)
12333 (sparc64fbsd_sigtramp_frame_this_id)
12334 (sparc64fbsd_sigtramp_frame_prev_register): New functions.
12335 (sparc64fbsd_sigtramp_frame_unwind): New variable.
12336 (sparc64fbsd_sigtramp_frame_sniffer): New function.
12337 (sparc64fbsd_init_abi): Set pc_in_sigtramp, append
12338 sparc64fbsd_sigtramp_frame_sniffer. Call sparc64_init_abi.
12339 * sparcnbsd-tdep.c: Update copyright year. Include
12340 "floatformat.h", "frame.h", "frame-unwind.h", "symtab.h",
12341 "trad-frame.h" and "gdb_assert.h", don't include "target.h",
12342 "value.h" and "sparcnbsd-tdep.h".
12343 (REG32_OFFSET_PSR, REG32_OFFSET_PC, REG32_OFFSET_NPC)
12344 (REG32_OFFSET_Y, REG32_OFFSET_GLOBAL, REG32_OFFSET_OUT)
12345 (REG64_OFFSET_TSTATE, REG64_OFFSET_PC, REG64_OFFSET_NPC)
12346 (REG64_OFFSET_Y, REG64_OFFSET_GLOBAL, REG64_OFFSET_OUT): Remove
12347 defines.
12348 (sparcnbsd_gregset): New variable.
12349 (sparcnbsd_supply_reg32, sparcnbsd_supply_reg64)
12350 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64)
12351 (sparcnbsd_supply_fpreg32, sparcnbsd_supply_fpreg64)
12352 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64): Remove functions.
12353 (sparc32nbsd_sigtramp_start, sparc32nbsd_sigtramp_end): New
12354 variables.
12355 (sparc32nbsd_pc_in_sigtramp, sparc32nbsd_sigcontext_frame_cache)
12356 (sparc32nbsd_sigcontext_frame_this_id)
12357 (sparc32nbsd_sigcontext_frame_prev_register): New functions.
12358 (sparc32nbsd_sigcontext_frame_unwind): New variable.
12359 (sparc32nbsd_sigtramp_frame_sniffer): New function.
12360 (sparcnbsd_get_longjmp_target_32,
12361 sparcnbsd_get_longjmp_target_64): Remove functions.
12362 (sparcnbsd_aout_in_solib_call_trampoline): Rewrite.
12363 (sparcnbsd_init_abi_common, sparcnbsd_init_aout,
12364 sparcnbsd_init_elf): Remove.
12365 (sparcnbsd_init_abi, sparcnbsd_aout_init_abi)
12366 (sparcnbsd_elf_init_abi): New functions.
12367 (_initialize_sparcnbsd_tdep): New prototype.
12368 (_initialize_sparnbsd_tdep): Update.
12369 * config/sparc/fbsd.mh (NATDEPFILES): Remove sparcbsd-nat.o and
12370 corelow.o. Add sparc64-nat.o and sparc-nat.o.
12371 * config/sparc/fbsd.mt (TDEPFILES): Add sparc-tdep.o and corelow.o.
12372 * config/sparc/linux.mh: Update comment.
12373 (XM_FILE, HOST_IPC): Remove variables.
12374 (NATDEPFILES): Add sparc-sol2-nat.o and core-regset.o. Remove
12375 sparc-linux-nat.o.
12376 * config/sparc/linux.mt: Update comment.
12377 (TDEPFILES): Add sparc-sol2-tdep.o and sparc-linux-tdep.o.
12378 * config/sparc/nbsd.mt: Reformat.
12379 * config/sparc/nbsd64.mh: Update comment.
12380 (NATDEPFILES): Add sparc-nat.o.
12381 * config/sparc/nbsd64.mt: Update comment.
12382 (TDEPFILES): Add sparc64-tdep.o and sparc64nbsd-tdep.o.
12383 (TM_FILE): Set to tm-nbsd.h.
12384 * config/sparc/nbsdelf.mh: Update comment.
12385 (NATDEPFILES): Add sparc-nat.o.
12386 (XM_FILE): Delete.
12387 * config/sparc/nbsdaout.mh: Update comment.
12388 (NATDEPFILES): Add sparc-nat.o
12389 (XM_FILE): Delete.
12390 * config/sparc/nm-linux.h: Update copyright year. Don't include
12391 "config/nm-svr4.h" and "solib.h". Add protection against multiple
12392 inclusion.
12393 (KERNEL_U_SIZE): Remove define.
12394 (kernel_u_size): Remove prototype.
12395 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define.
12396 * config/sparc/nm-nbsd.h: Update copyright. Don't include
12397 "regcache.h".
12398 (CHILD_PREPARE_TO_STORE): Remove define.
12399 * config/sparc/nm-nbsdaout.h: Tweak some comments.
12400 * sparc-nat.c, sparc-tdep.c, sparc-tdep.h, sparc64nbsd-nat.c,
12401 sparcnbsd-nat.c: Rewrite files.
12402 * config/sparc/tm-linux.h, config/sparc/tm-nbsd.h: Rewrite files.
12403 * sparc-linux-nat.c, sparcbsd-nat.c, sparcbsd-nat.h,
12404 sparcnbsd-tdep.h: Remove files.
12405 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4os4.h,
12406 config/sparc/nm-sun4sol2.h, config/sparc/sp64.mt,
12407 config/sparc/sp64linux.mt, config/sparc/sp64sol2.mt,
12408 config/sparc/sparc-em.mt, config/sparc/sparclynx.mh,
12409 config/sparc/sparclynx.mt, config/sparc/sun4os4.mh,
12410 config/sparc/sun4os4.mt, config/sparc/sun4sol2.mh,
12411 config/sparc/sun4sol2.mt, config/sparc/tm-sp64.h,
12412 config/sparc/tm-sp64linux.h, config/sparc/tm-sparc.h,
12413 config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
12414 config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
12415 config/sparc/tm-vxsparc.h, config/sparc/vxsparc.mt,
12416 config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h: Remove files.
12417 * sparc-linux-tdep.c, sparc-nat.h, sparc-sol2-nat.c,
12418 sparc-sol2-tdep.c, sparc64-linux-nat.c, sparc64-linux-t dep.c,
12419 sparc64-nat.c, sparc64-sol2-tdep.c, sparc64nbsd-tdep.c: New files.
12420 * config/sparc/linux64.mh, config/sparc/linux64.mt,
12421 config/sparc/nm-sol2.h, config/sparc/sol2-64.mt,
12422 config/sparc/sol2.mh, config/sparc/sol2.mt, config/sparc/sparc.mt,
12423 config/sparc/sparc64.mt, config/sparc/tm-sol2.h: New files.
12424
ee84457a
AC
124252004-01-02 Andrew Cagney <cagney@redhat.com>
12426
12427 From 2003-12-18 Kazuhiro Inaoka:
12428 * configure.host: Add m32r-linux target.
12429
0bc2134e
MC
124302004-01-02 Michael Chastain <mec.gnu@mindspring.com>
12431
12432 * top.c (print_gdb_version): Update year to 2004.
12433
89a72f9c
MM
124342004-01-02 Mark Mitchell <mark@codesourcery.com>
12435
12436 * MAINTAINERS: Add myself to the write-after-approval category.
12437
86b013ed
DJ
124382004-01-02 Daniel Jacobowitz <drow@mvista.com>
12439
12440 From Bernardo Innocenti <bernie@develer.com>:
12441 * configure.tgt: Add uClinux target.
12442
e42c9534
AC
124432004-01-02 Andrew Cagney <cagney@redhat.com>
12444
12445 * utils.c (do_my_cleanups): Make static, add forward declaration.
12446 * defs.h (do_my_cleanups): Delete declaration.
12447
162467d3
EZ
124482004-01-02 Eli Zaretskii <eliz@elta.co.il>
12449
12450 * config/djgpp/fnchange.lst: Add lines for gdb/ChangeLog-2003 and
12451 bfd/ChangeLog-0203.
12452
78434e59
MK
124532004-01-02 Mark Kettenis <kettenis@gnu.org>
12454
12455 * configure.in: Check for <machine/reg.h>. Check for `struct reg'
12456 in <machine/reg.h>.
12457 * configure, config.in: Regenerate.
12458
48efe704
AC
12459For older changes see ChangeLog-2003, mi/ChangeLog-1999-2003, and
12460tui/ChangeLog-1998-2003.
c906108c
SS
12461\f
12462Local Variables:
12463mode: change-log
12464left-margin: 8
12465fill-column: 74
12466version-control: never
12467End:
This page took 1.142689 seconds and 4 git commands to generate.