* configure.in: Don't comment out NATDEPFILES in the generated
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
5a174d79
MK
12004-09-27 Mark Kettenis <kettenis@gnu.org>
2
3 * configure.in: Don't comment out NATDEPFILES in the generated
4 Makefile if NAT_FILE is unset.
5 * configure: Regenerate.
6
b2ed1746
AC
72004-09-27 Andrew Cagney <cagney@gnu.org>
8
44cbf7b5
AC
9 * infrun.c (check_for_old_step_resume_breakpoint): Delete.
10 (insert_step_resume_breakpoint): Delete.
11 (insert_step_resume_breakpoint_at_frame): New function.
12 (insert_step_resume_breakpoint_at_sal): New function.
13 (handle_inferior_event, step_into_function)
14 (insert_step_resume_breakpoint): Simplify by using same.
15
b2ed1746
AC
16 * gdb_indent.sh (types): Add caddr_t to list of predefined types.
17
3691b3be
MK
182004-09-26 Mark Kettenis <kettenis@gnu.org>
19
36f391e8
MK
20 * fbsd-proc.c: Remove file.
21 * Makefile.in (fbsd-proc.o): Remove dependency.
22
771e236c
MK
23 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Group target related
24 code together.
25
3691b3be
MK
26 * config/i386/nm-fbsd64.h: Remove file.
27 * config/i386/fbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
28
6a5c78a3
MK
292004-09-26 Mark Kettenis <kettenis@gnu.org>
30
31 * amd64-nat.h: Update copyright year.
32 (amd64bsd_target): New prototype.
33 * amd64bsd-nat.c: Include "target.h" and "inf-ptrace.h".
34 (amd64bsd_target): New function.
35 (amd64bsd_fetch_inferior_registers): Rename from
36 fetch_inferior_registers. Make static.
37 (amd64bsd_store_inferior_registers): Rename from
38 store_inferior_registers. Make static.
39 * amd64fbsd-nat.c: Include "target.h" and "fbsd-nat.h".
40 (_initialize_amd64fbsd_nat): Construct and add target vector.
41 * amd64nbsd-nat.o: Include "target.h".
42 (_initialize_amd64nbsd_nat): Construct and add target vector.
43 * amd64obsd-nat.c: Include "target.h".
44 (_initialize_amd64obsd_nat): Construct and add target vector.
45 * config/i386/nm-fbsd64.h (CHILD_PID_TO_EXEC_FILE): Remove define.
46 * config/i386/fbsd64.mh (NATDEPFILES): Remove infptrace.o,
47 inftarg.o and fbsd-proc.o. Add inf-child.o, inf-ptrace.o and
48 fbsd-nat.o.
49 * config/i386/nbsd64.mh, config/i386/obsd64.mh (NATDEPFILES):
50 Remove infptrace.o and inftarg.o. Add inf-child.o and
51 inf-ptrace.o.
52 * Makefile.in (amd64bsd-nat.o, amd64fbsd-nat.o, amd64nbsd-nat.o)
53 (amd64obsd-nat.o): Update dependencies.
54
27acbe61
MK
552004-09-25 Mark Kettenis <kettenis@gnu.org>
56
509a5e7d
MK
57 * config/i386/fbsd.mh (NATDEPFILES): Remove infptrace.o.
58 * config/i386/nbsdaout.mh (NATDEPFILES): Remove infptrace.o.
59 * config/i386/nbsdelf.mh (NATDEPFILES): Remove infptrace.o.
60 * config/i386/obsd.mh (NATDEPFILES): Remove infptrace.o.
61 * config/i386/obsdaout.mh (NATDEPFILES): Remove infptrace.o.
62
6e1e94ea
MK
63 * inf-ptrace.c (inf_ptrace_attach): Remove redundant parenthesis.
64 Inline attach call.
65 (inf_ptrace_detach): Inline detach call.
66
8b9cf735
MK
67 * configure.in: Check for waddstr instead of mvwaddstr when
68 searching for curses library. Check for wborder.
69 * configure, config.in: Regenerate.
70 * tui/tui-wingeneral.c (box_win): Use box if wborder isn't
71 available.
72
27acbe61
MK
73 * inf-ptrace.c (inf_ptrace_xfer_memory): Fix gdb_indent.sh wart.
74
b96ec7ac
AC
752004-09-24 Robert Picco <Robert.Picco@hp.com>
76
77 Committed by Andrew Cagney.
78 * remote.c (set_remote_protocol_p_packet_cmd, remote_protocol_p)
79 (show_remote_protocol_p_packet_cmd): New. Implement 'p' packet.
80 configuration.
81 (fetch_register_using_p): Implement 'p' packet. Based on code by
82 Fernando Nasser.
83 (remote_fetch_registers): Call fetch_register_using_p.
84 (init_all_packet_configs, show_remote_cmd)
85 (_initialize_remote): Add p-packet.
86
62ece330
MK
872004-09-24 Mark Kettenis <kettenis@gnu.org>
88
89 * inf-ptrace.c (inf_ptrace_kill_inferior): Call ptrace directly
90 instead of call_ptrace. Call wait directly instead of
91 ptrace_wait.
92 (inf_ptrace_me): Call ptrace directly instead of call_ptrace.
93 (inf_ptrace_wait): Inline ptrace_wait call.
94
00937274
PH
952004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
96
97 * Makefile.in (.y.c): Revert previous change. ../ylwrap was
98 rolled back instead.
99
3f2c7a45
PH
1002004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
101
102 * Makefile.in (.y.c): Modify $(YLWRAP) invocation to use
103 the new argument order.
104
b6fcb393
CV
1052004-09-23 Corinna Vinschen <vinschen@redhat.com>
106
107 * MAINTAINERS: Remove "broken" from XStormy16 entry.
108 * xstormy16-tdep.c: Convert XStormy16 target to latest GDB methods.
109 (struct gdbarch_tdep): Remove.
110 (struct xstormy16_frame_cache): New frame cache structure.
111 (xstormy16_register_byte, xstormy16_register_raw_size)
112 (xstormy16_reg_virtual_type, xstormy16_register_type)
113 (xstormy16_push_arguments, xstormy16_push_return_address)
114 (xstormy16_pop_frame, xstormy16_store_struct_return)
115 (xstormy16_store_return_value, xstormy16_extract_struct_value_address)
116 (xstormy16_frame_saved_register, xstormy16_get_saved_register)
117 (xstormy16_scan_prologue, xstormy16_frame_init_saved_regs)
118 (xstormy16_frame_saved_pc, xstormy16_init_extra_frame_info)
119 (xstormy16_frame_chain, xstormy16_frame_chain_valid,
120 (xstormy16_saved_pc_after_call, xstormy16_save_dummy_frame_to): Remove.
121 (xstormy16_use_struct_convention): Drop gcc_p parameter.
122 (xstormy16_extract_return_value, xstormy16_store_return_value):
123 Regcachify. Drop useless struct convention handling.
124 (xstormy16_register_type, xstormy16_return_value)
125 (xstormy16_push_dummy_call, xstormy16_analyze_prologue)
126 (xstormy16_alloc_frame_cache, xstormy16_frame_cache)
127 (xstormy16_frame_prev_register, xstormy16_frame_this_id)
128 (xstormy16_frame_base_address, xstormy16_frame_sniffer)
129 (xstormy16_unwind_sp, xstormy16_unwind_pc)
130 (xstormy16_unwind_dummy_id) : New functions.
131 (xstormy16_skip_prologue): Call xstormy16_analyze_prologue instead
132 of xstormy16_scan_prologue.
133 (xstormy16_frame_unwind): New frame_unwind structure.
134 (xstormy16_frame_base): New frame_base structure.
135 (xstormy16_gdbarch_init): Accomodate all of the above changes.
136 Reshuffle for better readability. Also add dwarf2_frame_sniffer.
137
1285b746
MK
1382004-09-22 Mark Kettenis <kettenis@gnu.org>
139
140 * language.c (language_gdbarch_post_init): Fix off-by one error.
141
1c379e20
DJ
1422004-09-21 Daniel Jacobowitz <dan@debian.org>
143
144 * dwarf2read.c (struct dwarf2_per_cu_data): New field type_hash.
145 (struct dwarf2_offset_and_type): New.
146 (set_die_type, reset_die_and_siblings_types, get_die_type)
147 (offset_and_type_hash, offset_and_type_eq): New functions.
148 (read_structure_type, read_enumeration_type, read_array_type)
149 (read_namespace, read_tag_pointer_type, read_tag_ptr_to_member_type)
150 (read_tag_reference_type, read_tag_const_type)
151 (read_tag_volatile_type, read_tag_string_type, read_subroutine_type)
152 (read_typedef, read_base_type, read_subrange_type): Use
153 set_die_type.
154
ae038cb0
DJ
1552004-09-20 Daniel Jacobowitz <dan@debian.org>
156
157 * Makefile.in (dwarf2read.o): Update dependencies.
158 * dwarf2read.c: Include "command.h" and "gdbcmd.h".
159 (struct dwarf2_per_objfile): Add all_comp_units, n_comp_units,
160 and read_in_chain.
161 (struct dwarf2_cu): Add read_in_chain, per_cu, last_used,
162 mark, and has_form_ref_addr.
163 (struct dwarf2_per_cu_data): New.
164 (dwarf2_max_cache_age): New.
165 (dwarf2_build_psymtabs_hard): Free cached compilation units
166 after loading. Create and manage the list of compilation units.
167 Remove unnecessary NULL initialization. Fix indentation.
168 (psymtab_to_symtab_1): Initialize all of CU.
169 (dwarf2_read_abbrevs): Set has_form_ref_addr.
170 (find_partial_die): Use dwarf2_find_containing_comp_unit
171 and load_comp_unit.
172 (free_stack_comp_unit): Update comments. Clear the per-cu
173 pointer. Handle aging.
174 (dwarf2_find_containing_comp_unit, free_cached_comp_units)
175 (age_cached_comp_units, free_one_cached_comp_unit)
176 (dwarf2_mark, dwarf2_clear_marks, create_all_comp_units)
177 (load_comp_unit, dwarf2_find_comp_unit, free_one_comp_unit)
178 (set_dwarf2_cmdlist, show_dwarf2_cmdlist, set_dwarf2_cmd)
179 (show_dwarf2_cmd): New.
180 (_initialize_dwarf2_read): Provide "maint set dwarf2 max-cache-age"
181 and "maint show dwarf2 max-cache-age".
182 * gdbcmd.h (maintenance_set_cmdlist, maintenance_show_cmdlist): New
183 externs.
184 * maint.c (maintenance_set_cmdlist, maintenance_show_cmdlist): Make
185 global.
186
987504bb
JJ
1872004-09-20 Jeff Johnston <jjohnstn@redhat.com>
188
189 * dwarf2read.c (typename_concat): Change prototype to accept obstack
190 and dwarf2_cu struct pointer as arguments. Change function to use
191 obstack if provided and use dwarf2_cu to determine language-specific
192 separator.
193 (partial_die_parent_scope): Change comment to include java. Use
194 new version of typename_concat instead of obconcat.
195 (partial_die_full_name): Use typename_concat.
196 (read_namespace): Ditto.
197 (read_enumeration_type): Use typename_concat instead of obconcat.
198 (new_symbol): Ditto.
199 (add_partial_symbol): Enhance tests for C++ to also test for Java.
200 (guess_structure_name): Ditto.
201 (read_subroutine_type): Ditto.
202 (read_structure_type): Ditto.
203 (is_vtable_name): Add Java support.
204 (determine_class_name): Switch to new typename_concat call.
205 (determine_prefix): Switch to new typename_concat call.
206 * jv-exp.y (FuncStart): New pattern.
207 (MethodInvocation): Add support for simple function calls. Change
208 warning message for other forms of inferior call currently not
209 supported.
210 * valarith.c (value_subscript): Treat an array with upper-bound
211 of -1 as unknown size.
212
d9c8471e
DJ
2132004-09-20 Daniel Jacobowitz <dan@debian.org>
214
215 * symtab.c (lookup_partial_symtab): Use psymtab_to_fullname.
216 (lookup_partial_symtab): Use symtab_to_fullname.
217
d73f140a
JB
2182004-09-19 Jim Blandy <jimb@redhat.com>
219
220 * minsyms.c (lookup_minimal_symbol): Doc fix.
221
adbef1f0
AC
2222004-09-20 Andrew Cagney <cagney@gnu.org>
223
224 * config/nm-lynx.h (DEPRECATED_CHILD_RESUME): Deprecate
225 CHILD_RESUME.
226 * config/i386/nm-linux.h (DEPRECATED_CHILD_RESUME): Ditto.
227 * config/nm-linux.h (DEPRECATED_KILL_INFERIOR): Deprecate
228 KILL_INFERIOR.
229 * infptrace.c: Update.
230
d092d1a2
DJ
2312004-09-19 Daniel Jacobowitz <dan@debian.org>
232
233 * symtab.c (output_source_filename): Mark first argument as const.
234 (sources_info): Use symtab_to_fullname and psymtab_to_fullname
235 for "info sources" output.
236
86d9e1d7
MK
2372004-09-20 Mark Kettenis <kettenis@gnu.org>
238
239 * config/i386/nm-fbsd.h, config/i386/nm-obsd.h: Don't include
240 <machine/vmparam.h>.
241 (KERNEL_U_ADDR, REGISTER_U_ADDR): Remove defines.
242 (register_u_addr): Remove prototype.
243
9a6c8ef4
MK
2442004-09-19 Mark Kettenis <kettenis@gnu.org>
245
9692934b
MK
246 * i386bsd-nat.c: Include "i386bsd-nat.h" and "inf-ptrace.h".
247 (i386bsd_fetch_inferior_registers): Rename from
248 fetch_inferior_registers. Make static.
249 (i386bsd_store_inferior_registers): Rename from
250 store_inferior_registers. Make static.
251 (i386bsd_target): New function.
252 * i386bsd-nat.h: New file.
253 * i386fbsd-nat.c: Include "target.h", "fbsd-nat.h" and
254 "i386bsd-nat.h".
255 (i386fbsd_resume): Rename from child_resume. Make static.
256 (_initialize_i386fbsd_nat): Construct and add target vector.
257 * i386nbsd-nat.c: Include "target.h" and "i386bsd-nat.h".
258 (_initialize_i386nbsd_nat): Construct and add target vector.
259 * config/i386/nm-fbsd.h: (CHILD_RESUME, CHILD_PID_TO_EXEC_FILE):
260 Remove defines.
261 * config/i386/fbsd.mh (NATDEPFILES): Add inf-child.o, inf-ptrace.o
262 and fbsd-nat.o. Remove inftarg.o and fbsd-proc.o.
263 * config/i386/nbsdaout.mh (NATDEPFILES): Add inf-child.o,
264 inf-ptrace.o, i386bsd-nat.o and bsd-kvm.o. Remove inftarg.o.
265 (LOADLIBES): New variable.
266 * config/i386/nbsdelf.mh (NATDEPFILES): Add inf-child.o and
267 inf-ptrace.o. Remove inftarg.o.
268 * config/i386/obsd.mh (NATDEPFILES): Add inf-child.o and
269 inf-ptrace.o. Remove inftarg.o.
270 * config/i386/obsdaout.mh (NATDEPFILES): Add inf-child.o,
271 inf-ptrace.o, i386nbsd-nat.o and bsd-kvm.o. Remove inftarg.o.
272 (LOADLIBES): New variable.
273 * Makefile.in (i386bsd_nat_h): New variable.
274 (i386bsd-nat.o, i386fbsd-nat.o, i386nbsd-nat.o): Update
275 dependencies.
276
3510d1f2
MK
277 * sparc64nbsd-tdep.c: Include "objfiles.h".
278 (sparc64nbsd_init_abi): Set in_solib_call_trampoline and
279 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
280 svr4_lp64_fetch_link_map_offsets.
281 * sparc64obsd-tdep.c: Include "objfiles.h". Don't include
282 "nbsd-tdep.h".
283 (sparc64obsd_init_abi): Set in_solib_call_trampoline and
284 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
285 svr4_lp64_fetch_link_map_offsets.
286 * Makefile.in (sparc64nbsd-tdep.o, sparc64obsd-tdep.o): Update
287 dependencies.
288
578c1c03
MK
289 * fbsd-nat.c: New files with cleaned up contents of fbsd-proc.c.
290 * fbsd-nat.h: New file.
291 * Makefile.in (ALLDEPFILES): Add fbsd-nat.c.
292 (fbsd_nat_h): New variable.
293 (fbsd-nat.o): New dependency.
294
7a7b73b7
MK
295 * config/sparc/nbsd64.mt, config/sparc/obsd.mt,
296 config/sparc/obsd64.mt (DEPRECATED_TM_FILE): Set to solib.h.
297
9a6c8ef4
MK
298 * inf-child.c (inf_child_post_wait): Remove stray whitespace in
299 comment.
300
72d5681a
PH
3012004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
302
303 * ada-exp.y (type_int): New function to add layer of abstraction
304 around references to expression types.
305 (type_long): Ditto.
306 (type_long_long): Ditto.
307 (type_float): Ditto.
308 (type_double): Ditto.
309 (type_long_double): Ditto.
310 (type_char): Ditto.
311 (type_system_address): Ditto.
312 (simple_exp): Use type_* functions in place of builtin_*
313 variables.
314 (exp): Ditto.
315 (write_var_from_name): Ditto.
316 (write_object_renaming): Ditto.
317 * ada-lang.c (ada_create_fundamental_type): Remove redundant
318 declaration.
319 (build_ada_types): Remove, replacing with...
320 (ada_language_arch_info): New function to initialize primitive
321 type vector in language_arch_info.
322 (ada_array_length): Remove use of builtin_type_ada_int.
323 (value_pos_atr): Ditto.
324 (ada_evaluate_subexp): Ditto.
325 (builtin_type_ada_int, builtin_type_ada_short, builtin_type_ada_long,
326 builtin_type_ada_long_long, builtin_type_ada_char,
327 builtin_type_ada_float, builtin_type_ada_double,
328 builtin_type_ada_long_double, builtin_type_ada_natural,
329 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
330 (ada_builtin_types): Remove.
331 (ada_language_defn): Remove entries for la_builtin_type_vector and
332 string_char_type and use ada_language_arch_info.
333 (_initialize_ada_language): Do type-vector initialization along
334 the lines of c-lang.c.
335 (ada_create_fundamental_type): Break up line.
336 (ada_dump_symtab): Remove unused function.
337 (enum ada_primitive_types): Define.
338 * ada-lang.h (builtin_type_ada_int, builtin_type_ada_short,
339 builtin_type_ada_long,builtin_type_ada_long_long,builtin_type_ada_char,
340 builtin_type_ada_float, builtin_type_ada_double,
341 builtin_type_ada_long_double, builtin_type_ada_natural,
342 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
343 * ada-lex.l: Use type_* functions in place of builtin_* variables.
344 (processInt): Ditto.
345 (processReal): Ditto.
346 (name_lookup): Ditto.
347 * ada-typeprint.c (print_range): Use builtin_type_int, not
348 builtin_type_ada_int.
349
4f0be353
MK
3502004-09-18 Mark Kettenis <kettenis@gnu.org>
351
30b0e2d8
MK
352 * i386-tdep.c (i386_register_name): Rename regno to regnum.
353
4f0be353
MK
354 * config/pa/hpux1020.mh (MH_CFLAGS): Remove -D__HP_CURSES.
355 * config/pa/hpux11.mh (MH_CFLAGS): Likewise.
356 * config/pa/hpux11w.mh (MH_CFLAGS): Likewise.
357 * configure.in: Improve checks for curses library by checking for
358 mvwaddstr instead of initscr. Drop HP curses in favour of
359 standard curses on HP-UX.
360 * configure: Regenerated.
361
72d5681a 3622004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
6c038f32
PH
363
364 * ada-lang.c: (ada_main_name, ada_value_slice_ptr, ada_value_slice,
365 ada_breakpoint_rewrite, ada_template_to_fixed_record_type_1):
366 Minor formatting changes.
367 (empty_array): Slight rewrite for formatting.
368 (emit_char,parse,ada_language_defn,build_ada_types,
369 ada_is_exception_sym, _initialize_ada_language): Move
370 definitions around.
371 (ada_dump_symtab): Remove unused definition.
372 (ada_maybe_exception_partial_symbol): Remove unused definition.
373
1c8c7407
AC
3742004-09-16 Andrew Cagney <cagney@gnu.org>
375
7681f339
AC
376 * inf-child.c: Include "gdb_string.h".
377 (inf_child_core_file_to_sym_file): Delete.
378 (inf_child_target): Set to_fetch_registers and to_store_registers.
379 * inf-ptrace.c: Include "gdb_string.h".
380 * Makefile.in: Update all dependencies.
381
1c8c7407
AC
382 * Makefile.in (gnu-v3-abi.o): Add explict rule to avoid -Werror
383 problem.
384
65596487
JB
3852004-09-14 Joel Brobecker <brobecker@gnat.com>
386
387 * mips-tdep.c (mips_insn32_frame_cache): Pass frame cache in
388 call to heuristic_proc_desc. Remove code that became redundant
389 as a consequence.
390 (read_next_frame_reg): Remove special case for SP_REGNUM.
391 (set_reg_offset): Fix small typo.
392 (reset_saved_regs): New procedure.
393 (mips32_heuristic_proc_desc): No longer compute a fake
394 procedure descriptor. Compute the full frame cache instead.
395 Some minor comment reformatting.
396
95575b2e
AC
3972004-09-14 Andrew Cagney <cagney@gnu.org>
398
f200c492
AC
399 * MAINTAINERS: Add Michael Chastain as the backup gdb.threads
400 maintainer.
401
95575b2e
AC
402 * thread-db.c (thread_db_new_objfile): Assume that there is a
403 child process.
404
69657671
JB
4052004-09-13 Jim Blandy <jimb@redhat.com>
406
407 * valops.c (value_assign): Move 'buffer' to the enclosing block,
408 so that its storage isn't referenced after its lifetime ends.
409
6c4182dd
JB
410 * valops.c (value_assign): 'use_buffer' is initialized to zero,
411 and never assigned to. Delete it, and the 'if (use_buffer)'
412 clauses. Delete 'raw_buffer', since it is now unused.
413
ee31a58d
AC
4142004-09-13 Andrew Cagney <cagney@gnu.org>
415
2c0fc042
AC
416 * configure.in (frags): Replace TM_FILE with DEPRECATED_TM_FILE.
417 * configure: Re-generate.
418 * nlm/Makefile.in (TAGS): Update.
419 * Makefile.in (TAGS): Update.
420 * config/vax/nbsd.mt (TM_FILE): Update.
421 * config/sparc/vxworks.mt (TM_FILE): Update.
422 * config/sparc/sol2.mt (TM_FILE): Update.
423 * config/sparc/sol2-64.mt (TM_FILE): Update.
424 * config/sparc/obsd64.mt (TM_FILE): Update.
425 * config/sparc/obsd.mt (TM_FILE): Update.
426 * config/sparc/nbsd64.mt (TM_FILE): Update.
427 * config/sparc/nbsd.mt (TM_FILE): Update.
428 * config/sparc/linux64.mt (TM_FILE): Update.
429 * config/sparc/linux.mt (TM_FILE): Update.
430 * config/sparc/fbsd.mt (TM_FILE): Update.
431 * config/sh/wince.mt (TM_FILE): Update.
432 * config/sh/nbsd.mt (TM_FILE): Update.
433 * config/sh/linux.mt (TM_FILE): Update.
434 * config/sh/embed.mt (TM_FILE): Update.
435 * config/s390/s390.mt (TM_FILE): Update.
436 * config/rs6000/rs6000lynx.mt (TM_FILE): Update.
437 * config/rs6000/rs6000.mt (TM_FILE): Update.
438 * config/rs6000/aix4.mt (TM_FILE): Update.
439 * config/powerpc/vxworks.mt (TM_FILE): Update.
440 * config/powerpc/ppc-sim.mt (TM_FILE): Update.
441 * config/powerpc/ppc-eabi.mt (TM_FILE): Update.
442 * config/powerpc/obsd.mt (TM_FILE): Update.
443 * config/powerpc/nbsd.mt (TM_FILE): Update.
444 * config/powerpc/linux.mt (TM_FILE): Update.
445 * config/powerpc/aix.mt (TM_FILE): Update.
446 * config/pa/obsd.mt (TM_FILE): Update.
447 * config/pa/linux.mt (TM_FILE): Update.
448 * config/pa/hppahpux.mt (TM_FILE): Update.
449 * config/pa/hppa64.mt (TM_FILE): Update.
450 * config/pa/hppa.mt (TM_FILE): Update.
451 * config/ns32k/nbsdaout.mt (TM_FILE): Update.
452 * config/mips/wince.mt (TM_FILE): Update.
453 * config/mips/vxmips.mt (TM_FILE): Update.
454 * config/mips/nbsd.mt (TM_FILE): Update.
455 * config/mips/linux.mt (TM_FILE): Update.
456 * config/mips/irix6.mt (TM_FILE): Update.
457 * config/mips/irix5.mt (TM_FILE): Update.
458 * config/mips/embed.mt (TM_FILE): Update.
459 * config/m68k/vxworks68.mt (TM_FILE): Update.
460 * config/m68k/st2000.mt (TM_FILE): Update.
461 * config/m68k/os68k.mt (TM_FILE): Update.
462 * config/m68k/obsd.mt (TM_FILE): Update.
463 * config/m68k/nbsd.mt (TM_FILE): Update.
464 * config/m68k/monitor.mt (TM_FILE): Update.
465 * config/m68k/linux.mt (TM_FILE): Update.
466 * config/m68k/cisco.mt (TM_FILE): Update.
467 * config/ia64/linux.mt (TM_FILE): Update.
468 * config/ia64/aix.mt (TM_FILE): Update.
469 * config/ia64/ia64.mt (TM_FILE): Update.
470 * config/i386/vxworks.mt (TM_FILE): Update.
471 * config/i386/obsd64.mt (TM_FILE): Update.
472 * config/i386/obsd.mt (TM_FILE): Update.
473 * config/i386/nto.mt (TM_FILE): Update.
474 * config/i386/nbsd64.mt (TM_FILE): Update.
475 * config/i386/nbsd.mt (TM_FILE): Update.
476 * config/i386/linux64.mt (TM_FILE): Update.
477 * config/i386/linux.mt (TM_FILE): Update.
478 * config/i386/i386sol2.mt (TM_FILE): Update.
479 * config/i386/i386lynx.mt (TM_FILE): Update.
480 * config/i386/fbsd64.mt (TM_FILE): Update.
481 * config/i386/fbsd.mt (TM_FILE): Update.
482 * config/i386/cygwin.mt (TM_FILE): Update.
483 * config/h8300/h8300.mt (TM_FILE): Update.
484 * config/frv/frv.mt (TM_FILE): Update.
485 * config/cris/cris.mt (TM_FILE): Update.
486 * config/arm/wince.mt (TM_FILE): Update.
487 * config/arm/nbsd.mt (TM_FILE): Update.
488 * config/arm/linux.mt (TM_FILE): Update.
489 * config/arm/embed.mt (TM_FILE): Update.
490 * config/alpha/nbsd.mt (TM_FILE): Update.
491 * config/alpha/fbsd.mt (TM_FILE): Update.
492 * config/alpha/alpha.mt (TM_FILE): Update.
493 * config/alpha/alpha-osf1.mt (TM_FILE): Update.
494 * config/alpha/alpha-linux.mt (TM_FILE): Update.
495
362646f5
AC
496 Eliminate event_loop_p, always has the value 1.
497 * defs.h (event_loop_p): Delete macro.
498 * breakpoint.c (until_break_command): Simplify.
499 * utils.c (prompt_for_continue): Simplify.
500 * tracepoint.c (read_actions): Simplify.
501 * top.c (throw_exception, execute_command, gdb_readline_wrapper)
502 (gdb_rl_operate_and_get_next, command_line_input, get_prompt)
503 (set_prompt, init_main): Simplify.
504 (init_signals, disconnect): Delete, unused.
505 * remote.c (remote_async_resume)
506 (extended_remote_async_create_inferior): Simplify.
507 * mi/mi-interp.c (mi_input): Delete, unused.
508 (mi_interpreter_resume, mi_command_loop): Simplify.
509 * interps.c (current_interp_command_loop): Simplify.
510 * infrun.c (proceed): Simplify.
511 * infcmd.c (run_command, continue_command, step_1, jump_command)
512 (until_command, advance_command, finish_command)
513 (interrupt_target_command): Simplify.
514 * event-top.c (gdb_setup_readline, gdb_disable_readline): Simplify.
515
ee31a58d
AC
516 * config/i386/nm-i386.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
517 * config/s390/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
518 * config/pa/nm-hppah.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
519 * config/ia64/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
520 * config/frv/tm-frv.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
521 * mips-tdep.c (mips_dump_tdep): Do not print same.
522
b7ffc4a8
AC
5232004-09-12 Andrew Cagney <cagney@gnu.org>
524
2bfb72ee
AC
525 * valprint.c (print_longest): Use fputs_filtered. Make "val"
526 const.
527 * Makefile.in (valprint.o): Delete explict rule.
528
4f17c3c1
AC
529 * config/m68k/nbsdelf.mh: Add missing trailing newline. Problem
530 reported by Dave Anderson.
531
f810308b
AC
532 * target.c (target_info): Delete #ifdef call to FILES_INFO_HOOK.
533
b7ffc4a8
AC
534 * inferior.h (STORE_STRUCT_RETURN): Delete macro.
535
28b41c52
AC
5362004-09-12 Salvador E. Tropea <set@users.sf.net>
537 Andrew Cagney <cagney@gnu.org>
538
539 * mi/mi-main.c (mi_cmd_data_list_changed_registers)
540 (mi_cmd_data_list_register_values)
541 (mi_cmd_data_write_register_values): Include the PSEUDO_REGS in
542 the register number computation.
543
5bf970f9
AC
5442004-09-12 Andrew Cagney <cagney@gnu.org>
545
546 * ppcnbsd-nat.c: Include "inf-ptrace.h".
547 (ppcnbsd_fetch_inferior_registers): Rename fetch_inferior_registers.
548 (ppcnbsd_store_inferior_registers): Rename store_inferior_registers.
549 (_initialize_ppcnbsd_nat): Create and add a NetBSD/PPC ptrace
550 target.
551 * config/powerpc/nbsd.mh (NATDEPFILES): Replace and inftarg.o with
552 inf-ptrace.o and inf-child.o.
553 * inf-ptrace.h, inf-ptrace.c, inf-child.h, inf-child.c: New files.
554 * Makefile.in: Update dependencies.
555
0759e0bf
AC
5562004-09-11 Andrew Cagney <cagney@gnu.org>
557
558 * language.c (hex_string, hex_string_custom): Move from here ...
559 * utils.c (hex_string, hex_string_custom): ... to here, rewrite.
560 (CELLSIZE): Increase to 50.
561 * language.h (hex_string, hex_string_custom): Move from here ...
562 * defs.h: ... to here.
563 * Makefile.in: Update all dependencies.
564
bb599908
PH
5652004-09-11 Paul N. Hilfinger <hilfinger@gnat.com>
566
567 * language.c (local_hex_format_custom): Remove.
568 (local_hex_string): Rename to hex_string, use C format, and move to
569 utils.c
570 (local_hex_string_custom): Rename to hex_string_custom and change
571 interface. Now uses C format. Move to utils.c
572 (local_octal_format_custom): Remove.
573 (local_decimal_format_custom): Remove.
574 (unknown_language_defn): Remove language-specific number
575 formatting entries.
576 (auto_language_defn): Ditto.
577 (local_language_defn): Ditto.
578 * language.h (struct language_format_info): Delete declaration.
579 (struct language_defn): Remove language_format_info fields
580 la_binary_format, la_octal_format, la_decimal_format, la_hex_format.
581 (local_binary_format): Remove macro.
582 (local_binary_format_prefix): Remove macro.
583 (local_binary_format_specifier): Remove macro.
584 (local_binary_format_suffix): Remove macro.
585 (local_octal_format): Remove macro.
586 (local_octal_format_prefix): Remove macro.
587 (local_octal_format_specifier): Remove macro.
588 (local_octal_format_suffix): Remove macro.
589 (local_decimal_format): Remove macro.
590 (local_decimal_format_prefix): Remove macro.
591 (local_decimal_format_specifier): Remove macro.
592 (local_decimal_format_suffix): Remove macro.
593 (local_hex_format): Remove macro.
594 (local_hex_format_prefix): Remove macro.
595 (local_hex_format_specifier): Remove macro.
596 (local_hex_format_suffix): Remove macro.
597 (local_decimal_format_custom): Remove.
598 (local_octal_format_custom): Remove.
599 (local_hex_format_custom): Remove.
600 (local_hex_string): Rename to hex_string and move to defs.h.
601 (local_hex_string_custom): Rename to hex_string_custom, change
602 interface, and move to defs.h.
603 * utils.c: (int_string): New function.
604 (hex_string): New function (from language.c).
605 (hex_string_custom): New function (from language.c).
606 (octal2str): New function.
607 (decimal2str): Add width parameter.
608 (paddr_u): Use new decimal2str interface.
609 (paddr_d): Ditto.
610 * defs.h (hex_string): Declare.
611 (hex_string_custom): Declare.
612 (int_string): Declare.
613 * printcmd.c (print_scalar_formatted): Remove localized binary
614 formatting.
615 * valprint.c (print_longest): Use int_string.
616 (print_floating): Use C hex format.
617 (print_hex_chars): Ditto.
618 (print_binary_chars): Remove language-specific formatting.
619 (print_octal_chars): Use C octal format.
620 (print_decimal_chars): Delocalize format.
621 (print_decimal): Remove.
622 * ada-lang.c (ada_language_defn): Remove language-specific number
623 formatting entries.
624 * p-lang.c (pascal_language_defn): Ditto.
625 * c-lang.c (c_language_defn): Ditto.
626 (cplus_language_defn): Ditto.
627 (asm_language_defn): Ditto.
628 (minimal_language_defn): Ditto.
629 * f-lang.c (f_language_defn): Ditto.
630 * jv-lang.c (java_language_defn): Ditto.
631 * m2-lang.c (m2_language_defn): Ditto.
632 * scm-lang.c (scm_language_defn): Ditto.
633 * objc-lang.c (objc_language_defn): Ditto.
634 * memattr.c (mem_info_command): Use renamed hex_string_custom with
635 new interface.
636 * pa64solib.c (pa64_sharedlibrary_info_command): Ditto.
637 * ui-out.c (ui_out_field_core_addr): Ditto.
638 * breakpoint.c (breakpoint_adjustment_warning): Ditto.
639 * exec.c (print_section_info): Ditto.
640 * i387-tdep.c (print_i387_status_word): Ditto.
641 (print_i387_control_word): Ditto.
642 (i387_print_float_info): Ditto.
643 * maint.c (maint_print_section_info): Ditto.
644 * solib.c (info_sharedlibrary_command): Ditto.
645 * somsolib.c (som_sharedlibrary_info_command): Ditto.
646 * symtab.c (print_msymbol_info): Ditto.
647 * tracepoint.c (tracepoints_info): Ditto.
648 * solib-frv.c (lm_base): Ditto.
649 (frv_current_sos): Ditto.
650 (enable_break2): Ditto.
651 (enable_break): Ditto.
652 * dbxread.c (read_dbx_symtab): Use renamed hex_string.
653 (process_one_symbol): Ditto.
654 * infcmd.c (program_info): Ditto.
655 * mdebugread.c (parse_partial_symbols): Ditto.
656 * symfile.c (add_symbol_file_command): Ditto.
657 * cli/cli-cmds.c (edit_command): Ditto.
658 (list_command): Ditto.
659 * infcall.c (call_function_by_hand): Ditto.
660 * remote-vx.c (vx_run_files_info): Ditto.
661 (vx_wait): Ditto.
662 (vx_attach): Ditto.
663 (vx_detach): Ditto.
664 (vx_kill): Ditto.
665 * aix-thread.c (pdc_symbol_addrs): Ditto.
666 (pdc_read_regs): Ditto.
667 (pdc_write_regs): Ditto.
668 (pdc_read_data): Ditto.
669 (pdc_write_data): Ditto.
670 * d10v-tdep.c (display_trace): Ditto.
671 * rs6000-nat.c (find_toc_address): Ditto.
672 * aix-thread.c: Don't include language.h.
673 * buildsym.c: Ditto.
674 * dbxread.c: Ditto.
675 * mdebugread.c: Ditto.
676 * rs6000-nat.c: Ditto.
677 * buildsym.c (make_blockvector): Use renamed hex_string.
678
33f2d567
JM
6792004-09-10 Jason Molenda (jmolenda@apple.com)
680
681 * cli/cli-script.c (read_next_line): Accept zero or more whitespace
682 chars after 'if' or 'while' commands in user-defined commands.
683
7b90c3f9
JB
6842004-09-08 Jim Blandy <jimb@redhat.com>
685
686 Fix bug reported and analyzed by Olivier Crete:
687 * symfile.c (copy_section_addr_info): New function.
688 (symbol_file_add_with_addrs_or_offsets): Use it to save the
689 original set of address arguments, instead of handwritten code
690 that uses one length to allocate and a different length to
691 initialize. Use make_cleanup_free_section_addr_info.
692 * symfile.h (copy_section_addr_info): New declaration.
693 * utils.c: #include "symfile.h".
694 (do_free_section_addr_info, make_cleanup_free_section_addr_info):
695 New functions.
696 * defs.h (make_cleanup_free_section_addr_info): New declaration.
697 * Makefile.in (utils.o): Update dependencies.
698
b26a6851
AC
6992004-09-08 Andrew Cagney <cagney@gnu.org>
700
701 * thread-db.c (keep_thread_db): Delete.
702 (thread_db_new_objfile, thread_db_create_inferior)
703 (thread_db_mourn_inferior): Simplify assuming !keep_thread_db.
704
be24b061
MK
7052004-09-08 Mark Kettenis <kettenis@gnu.org>
706
f6792ef4
MK
707 * i386-tdep.h (FPC_REGNUM, FCTRL_REGNUM, FSTAT_REGNUM, FTAG_REGNUM)
708 (FISEG_REGNUM, FIOFF_REGNUM, FOSEG_REGNUM, FOOFF_REGNUM)
709 (FOP_REGNUM, XMM0_REGNUM, MXCSR_REGNUM): Remove macros.
710 (i386_frameless_signal_p): Remove prototype.
711 * i386-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
712 (GETFPXREGS_SUPPLIES): Define using I386_ST0_REGNUM and
713 I386_SSE_NUM_REGS.
714 * i386-nto-tdep.c (i386nto_supply_gregset): Use I386_NUM_GREGS
715 instead of FP0_REGNUM.
716 (i386nto_regset_id): Use I386_NUM_GREGS and I386_NUM_FREGS instead
717 of FP0_REGNUM and FPC_REGNUM.
718
eeefdaa7
MK
719 * solib-sunos.c (sunos_relocate_main_executable): Remove function.
720 (sunos_solib_create_inferior_hook): Don't call
721 sunos_relocate_main_executable.
722
be24b061
MK
723 * sparcnbsd-tdep.c (sparc32nbsd_elf_init_abi): Set
724 solib_svr4_fetch_link_map_offsets to
725 svr4_ilp32_fetch_link_map_offsets.
726 * sparcobsd-tdep.c: Don't include "nbsd-tdep.h".
727 (sparc32obsd_init_abi): Set solib_svr4_fetch_link_map_offsets to
728 svr4_ilp32_fetch_link_map_offsets.
729 * Makefile.in (sparcobsd-tdep.o): Update dependencies.
730
7c679d16
JB
7312004-09-07 Jim Blandy <jimb@redhat.com>
732
733 * frame.h (frame_register): Doc fix.
734
1f04aa62
AC
7352004-09-07 Andrew Cagney <cagney@gnu.org>
736
737 * vx-share/wait.h: Delete #ifdef USG.
738 * utils.c (request_quit): Ditto.
739 * tui/tui.c (tui_reset): Ditto.
740 * remote.c: Ditto.
741 * remote-sds.c: Ditto.
742 * remote-rdi.c: Ditto.
743 * mdebugread.c: Ditto.
744 * m68klinux-nat.c: Ditto.
745 * infttrace.c: Ditto.
746 * infptrace.c: Ditto.
747 * i386v-nat.c: Ditto.
748 * exec.c: Ditto.
749 * dbxread.c: Ditto.
750 * core-aout.c: Ditto.
751
90edbfbc
JB
7522004-09-05 Joel Brobecker <brobecker@gnat.com>
753
754 * mips-tdep.c (mips_insn16_frame_cache): Fix parameter in call to
755 heuristic_proc_desc.
756 (mips_insn32_frame_cache): Likewise.
757
01f4bf2b
JB
7582004-09-04 Joel Brobecker <brobecker@gnat.com>
759
760 * mips-tdep.c (mips32_heuristic_proc_desc): Remove code that was
761 left behind by error.
762
8511a048
JB
7632004-09-04 Joel Brobecker <brobecker@gnat.com>
764
765 * config/alpha/nm-osf.h (PTRACE_ARG3_TYPE): Remove define.
766 * config/powerpc/nm-aix.h (PTRACE_ARG3_TYPE): Likewise.
767
649dfe9f
JB
7682004-09-04 Joel Brobecker <brobecker@gnat.com>
769
770 * config/rs6000/xm-aix4.h: Remove this file.
771 * config/rs6000/aix4.mh (XM_FILE): Delete.
772
6e50f889
JB
7732004-09-04 Joel Brobecker <brobecker@gnat.com>
774
775 * config/rs6000/xm-rs6000.h: Remove this file.
776 * config/rs6000/rs6000.mh (XM_FILE): Remove.
777
b8c4aece
AC
7782004-09-03 Andrew Cagney <cagney@gnu.org>
779
fb603883
AC
780 * mips-tdep.c (PROC_DESC_IS_DUMMY, SET_PROC_DESC_IS_DUMMY)
781 (_PROC_MAGIC_, after_prologue, mips_dump_tdep): Delete macros and
782 only use.
783
c9343fd1
AC
784 * mips-tdep.c (temp_saved_regs): Delete.
785 (set_reg_offset): Replace saved_regs parameter with this_cache.
786 (heuristic_proc_desc, mips16_heuristic_proc_desc)
787 (mips32_heuristic_proc_desc): Add this_cache parameter.
788 (mips_insn32_frame_cache, mips_insn16_frame_cache)
789 (after_prologue): Pass a NULL this_cache.
790
9733cfe1
AC
791 * mips-tdep.c (mips_mdebug_frame_cache): Delete code handling
792 non-kernel trap prologues.
793
0d5febcc
AC
794 * mips-tdep.c (find_proc_desc): Delete function.
795 (mips_mdebug_frame_cache): Inline call to find_proc_desc,
796 simplify.
797 (mips_insn16_frame_cache): Replace find_proc_desc with code from
798 mips_insn32_frame_cache.
799
9733cfe1 800 * mips-tdep.c (after_prologue): Inline call to find_proc_desc.
283be873
AC
801 Simplify as NEXT_FRAME is NULL.
802 (find_proc_desc): Simplify as NEXT_FRAME is non-NULL.
803
177f84a3
AC
804 * mips-tdep.c (after_prologue): Replace proc_desc parameter with
805 local variable.
806 (mips_skip_prologue): Update.
807
465f7520
AC
808 * mips-tdep.c (find_proc_desc, heuristic_proc_desc): Delete
809 "cur_frame" parameter.
177f84a3
AC
810 (after_prologue, mips_mdebug_frame_cache, mips_insn16_frame_cache):
811 (mips_insn32_frame_cache, find_proc_desc): Update
465f7520 812
e38b8658
AC
813 * config/vax/nm-obsd.h: Delete file.
814 * config/vax/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
815 * config/vax/nm-nbsd.h: Delete file.
816 * config/vax/nm-nbsdaout.h: Include config/nm-nbsd.h.
817 * config/vax/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
818 * config/sh/nm-nbsd.h: Delete file.
819 * config/sh/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
820 * config/rs6000/nm-rs6000ly.h: Delete file.
821 * config/djgpp/fnchange.lst: Do not rename nm-rs6000ly.h.
822 * config/rs6000/rs6000lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
823 * config/powerpc/nm-obsd.h: Delete file.
824 * config/powerpc/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
825 * config/powerpc/nm-nbsd.h: Delete file.
826 * config/powerpc/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
827 * config/pa/nm-obsd.h: Delete file.
828 * config/pa/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
829 * config/mips/nm-nbsd.h: Delete file.
830 * config/mips/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
831 * config/m88k/nm-obsd.h: Delete file.
832 * config/m88k/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
833 * config/m68k/nm-nbsd.h: Delete file.
834 * config/m68k/nm-nbsdaout.h: Include config/nm-nbsd.h.
835 * config/m68k/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
836 * config/i386/nm-nbsd.h: Delete file.
837 * config/i386/nm-nbsdaout.h: Include config/nm-nbsd.h.
838 * config/i386/obsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
839 * config/i386/nbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
840 * config/i386/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
841 * config/i386/nm-i386lynx.h: Delete file.
842 * config/i386/i386lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
843 * config/arm/nm-nbsd.h: Delete file.
844 * config/arm/nm-nbsdaout.h: Include config/nm-nbsd.h.
845 * config/arm/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
846
be1ed680
AC
847 * config/i386/tm-fbsd.h: Delete file.
848 * config/i386/fbsd64.mt (TM_FILE): Set to solib.h.
849 * config/i386/fbsd.mt (TM_FILE): Set to solib.h.
850
4b392b26
AC
851 * config/rs6000/tm-rs6000-aix4.h: Delete file.
852 * config/djgpp/fnchange.lst: Do not rename tm-rs6000-aix4.h.
853 * config/rs6000/aix4.mt (TM_FILE): Set to
854 config/rs6000/tm-rs6000.h.
855 * config/powerpc/tm-ppc-aix.h: Delete file.
856 * config/powerpc/aix.mt (TM_FILE): Set to
857 config/rs6000/tm-rs6000.h.
858 * config/m68k/tm-linux.h: Delete file.
859 * config/m68k/linux.mt (TM_FILE): Set to solib.h
860 * config/i386/tm-linux64.h: Delete file.
861 * config/i386/linux64.mt (TM_FILE): Set to solib.h.
862 * config/djgpp/fnchange.lst: Do not rename tm-linux.h.
863
f3219c75
AC
864 * config/m68k/tm-linux.h (SVR4_SHARED_LIBS): Delete.
865 * config/i386/tm-linux64.h (SVR4_SHARED_LIBS): Delete.
866 * config/i386/nm-i386sco5.h (SVR4_SHARED_LIBS): Delete.
867 * config/tm-linux.h (SVR4_SHARED_LIBS): Delete.
868 * config/nm-sysv4.h (SVR4_SHARED_LIBS): Delete.
869 * config/nm-linux.h (SVR4_SHARED_LIBS): Delete.
870 * config/nm-gnu.h (SVR4_SHARED_LIBS): Delete.
871 * sh64-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
872 * sh-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
873
b8c4aece
AC
874 * configure.in (GDB_TM_FILE): Fix typo, use gdb_target_cpu and not
875 gdb_host_cpu.
876
8ac2e020
JB
8772004-09-02 Joel Brobecker <brobecker@gnat.com>
878
879 * mips-tdep.c (mips_insn32_frame_cache): Remove some dead code.
880 Minor reformatting. Some code factoring.
881
c185a355
AC
8822004-09-02 Andrew Cagney <cagney@gnu.org>
883
63f22f0d
AC
884 * config/vax/nbsd.mt (TM_FILE): Set to solib.h.
885 * config/vax/tm-nbsd.h: Delete file.
886 * config/sparc/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
887 * config/sparc/tm-vxworks.h: Delete file.
888 * config/sparc/nbsd.mt (TM_FILE): Set to solib.h.
889 * config/sparc/tm-nbsd.h: Delete file.
890 * config/sparc/linux64.mt (TM_FILE): Set to solib.h.
891 * config/sparc/linux.mt (TM_FILE): Set to solib.h.
892 * config/sparc/tm-linux.h: Delete file.
893 * config/s390/s390.mt (TM_FILE): Set to config/tm-linux.h
894 * config/s390/tm-linux.h: Delete file.
895 * config/pa/obsd.mt (TM_FILE): Set to solib.h.
896 * config/pa/tm-bsd.h: Delete file.
897 * config/m68k/obsd.mt (TM_FILE): Set to solib.h.
898 * config/m68k/tm-obsd.h: Delete file.
899 * config/m68k/nbsd.mt (TM_FILE): Set to solib.h.
900 * config/m68k/tm-nbsd.h: Delete file.
901 * config/i386/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
902 * config/i386/tm-vxworks.h: Delete file.
903 * config/i386/obsd64.mt (TM_FILE): Set to solib.h.
904 * config/i386/obsd.mt (TM_FILE): Set to solib.h.
905 * config/i386/nbsd64.mt (TM_FILE): Set to solib.h.
906 * config/i386/nbsd.mt (TM_FILE): Set to solib.h.
907 * config/i386/tm-nbsd.h: Delete file.
908 * config/i386/i386lynx.mt (TM_FILE): Set to config/tm-lynx.h.
909 * config/i386/tm-i386lynx.h: Delete file.
910 * config/cris/cris.mt (TM_FILE): Set to solib.h.
911 * config/cris/tm-cris.h: Delete file.
912
0f475e27
AC
913 * configure.in: Let TM_FILE, XM_FILE and NAT_FILE specify a path.
914 * configure: Re-generate.
915 * config/arm/nbsd.mt (TM_FILE): Set to "solib.h".
916 * config/arm/tm-nbsd.h: Delete file.
917
458ed000
AC
918 * config/powerpc/tm-ppcle-sim.h: Delete.
919 * config/powerpc/tm-ppcle-eabi.h: Delete.
920 * config/powerpc/tm-nbsd.h: Delete.
921 * config/powerpc/nbsd.mt (TM_FILE): Set to tm-ppc-eabi.h.
922 * config/djgpp/fnchange.lst: Do not rename tm-ppcle-sim.h or
923 tm-ppcle-eabi.h.
924
f14375f3
AC
925 * config/i386/nto.mh (NAT_FILE): Delete.
926 * config/i386/nm-nto.h: Delete.
927
c34d127c
AC
928 * config/m68k/tm-vx68.h: Do not include "tm-m68k.h".
929 * config/m68k/tm-os68k.h: Ditto.
930 * config/m68k/tm-monitor.h: Ditto.
931 * config/m68k/tm-cisco.h: Ditto.
932 * config/m68k/st2000.mt (TM_FILE): Delete.
933 * config/m68k/tm-vx68.h (GET_LONGJMP_TARGET): Delete.
934 * config/m68k/tm-cisco.h (GET_LONGJMP_TARGET): Delete.
935 * config/m68k/tm-m68k.h (m68k_get_longjmp_target): Delete file.
936 * m68k-tdep.c (m68k_get_longjmp_target): Make static.
937
f7f0fe03
AC
938 * config/m68k/tm-st2000.h: Delete.
939 * config/m68k/st2000.mt (TM_FILE): Set to tm-m68k.h.
940 * config/sparc/fbsd.mt (TM_FILE): Delete.
941 * config/sparc/tm-fbsd.h: Delete.
942
a2558533
AC
943 * acconfig.h (GDB_MULTI_ARCH): Delete undef.
944 * defs.h (GDB_MULTI_ARCH_PARTIAL, GDB_MULTI_ARCH_TM)
945 (GDB_MULTI_ARCH_PURE, GDB_MULTI_ARCH): Delete macros.
946
b78960be
AC
947 * gdbarch.sh: Instead of GDB_MULTI_ARCH print GDB_NM_FILE,
948 GDB_TM_FILE and GDB_XM_FILE.
949 * gdbarch.c: Re-generate.
950 * configure.in (GDB_XM_FILE, GDB_NM_FILE, GDB_TM_FILE): Include
951 quotes in macro definition.
952 * configure.in: Re-generate.
953
4d60522e
AC
954 * gdbarch.sh: Delete check for GDB_MULTI_ARCH_PARTIAL when
955 validating architecture methods.
956 * gdbarch.c: Re-generate.
957
5010d38b
AC
958 * gdbarch.sh: Delete check for consistency between GDB_MULTI_ARCH
959 and GDB_TM_FILE. Check for GDB_TM_FILE instead of
960 GDB_MULTI_ARCH_PARTIAL.
961 * gdbarch.h: Re-generate.
962
c185a355
AC
963 * config/sparc/tm-vxworks.h (GDB_MULTI_ARCH): Delete.
964 * config/sparc/tm-sol2.h (GDB_MULTI_ARCH): Delete.
965 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete.
966 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete.
967 * config/sparc/tm-fbsd.h (GDB_MULTI_ARCH): Delete.
968 * config/sh/tm-sh.h (GDB_MULTI_ARCH): Delete.
969 * config/rs6000/tm-rs6000.h (GDB_MULTI_ARCH): Delete.
970 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Delete.
971 * config/mips/tm-mips.h (GDB_MULTI_ARCH): Delete.
972 * config/ia64/tm-ia64.h (GDB_MULTI_ARCH): Delete.
973 * config/cris/tm-cris.h (GDB_MULTI_ARCH): Delete.
974 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Delete.
975
14aaa6ab
AC
9762004-09-01 Andrew Cagney <cagney@gnu.org>
977
978 * objfiles.h (struct entry_info): Delete fields main_func_lowpc
979 and main_func_highpc.
980 (INVALID_ENTRY_LOWPC, INVALID_ENTRY_HIGHPC): Delete macros.
981 * objfiles.c (init_entry_point_info, objfile_relocate): Update
982 * nlmread.c (nlm_symfile_read): Update.
983
a343eb3c
JB
9842004-09-01 Joel Brobecker <brobecker@gnat.com>
985
986 * mips-tdep.c (linked_proc_desc_table): Delete, not used.
987 (mips_insn32_frame_cache): Inline call to find_proc_desc.
988 (find_proc_desc): Remove dead code.
989
4fbbbd07
JB
9902004-09-01 Joel Brobecker <brobecker@gnat.com>
991
992 * mips-tdep.c (mips_mdebug_frame_cache): Minor reformatting.
993
84acb35a
JJ
9942004-09-01 Jeff Johnston <jjohnstn@redhat.com>
995
996 * observer.sh: Add struct so_list declaration.
997 * Makefile.in: Add dependencies on observer.h for solib.c and
998 breakpoint.c.
999 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): New
1000 function.
1001 (_initialize_breakpoint): Register
1002 disable_breakpoints_in_unloaded_shlib as an observer of the
1003 "solib unloaded" observation event.
1004 (re_enable_breakpoints_in_shlibs): For bp_shlib_disabled breakpoints,
1005 call decode_line_1 so unfound breakpoint errors are silent.
1006 * solib.c (update_solib_list): When a solib is discovered to have
1007 been unloaded by the program, notify all observers of the
1008 "solib unloaded" observation event.
1009
c8cd9f6c
AC
10102004-09-01 Andrew Cagney <cagney@gnu.org>
1011
1012 * frame.c: Include "objfiles.h".
1013 (inside_main_func): New function.
1014 (get_prev_frame): Use new inside_main_func.
1015 * Makefile.in (frame.o): Update dependencies.
1016 * defs.h (inside_main_func): Delete declaration.
1017 * blockframe.c (inside_main_func): Delete function.
1018
1168df01
JB
10192004-08-31 Jim Blandy <jimb@redhat.com>
1020
1021 * dwarf2read.c (is_vtable_name): New function, based on logic from
1022 read_structure_type, but passing the correct length to strncmp,
1023 and using 'sizeof' instead of 'strlen'.
1024 (read_structure_type): Call it.
1025
f14f9744
JB
10262004-08-31 Joel Brobecker <brobecker@gnat.com>
1027
1028 * config/powerpc/aix.mh: Add comment.
1029
386d4518
PG
10302004-08-31 Paul GIlliam <pgilliam@us.ibm.com>
1031
1032 * MAINTAINERS: Add self to Write-After-Approval.
1033
7d97d5e2
MI
10342004-08-30 Manoj Iyer <manjo@austin.ibm.com>
1035
1036 * MAINTAINERS: Add self to Write-After-Approval.
1037
68f53502
AC
10382004-08-30 Andrew Cagney <cagney@gnu.org>
1039
1040 Fix PR breakpoints/1757.
1041 * infrun.c (struct execution_control_state): Replace
1042 remove_breakpoints_on_following_step with
1043 step_after_step_resume_breakpoint.
1044 (init_execution_control_state): Update.
1045 (handle_inferior_event): For signals, when stepping off a
1046 breakpoint, set step_after_step_resume_breakpoint. When
1047 BPSTAT_WHAT_STEP_RESUME, do a single-step off the breakpoint.
1048 (keep_going): Delete code handling
1049 remove_breakpoints_on_following_step.
1050
7ca2d3a3
DL
10512004-08-29 David Lecomber <david@streamline-computing.com>
1052
1053 Fix PR gdb/648
1054 * language.h (enum array_ordering): New enum.
1055 * language.h (struct language_defn): New la_array_ordering
1056 attribute.
1057 * language.c (unknown_language_defn, auto_language_defn)
1058 (local_language_defn): Ditto.
1059 * ada-lang.c (ada_language_defn): Ditto.
1060 * c-lang.c (c_language_defn, cplus_language_defn)
1061 (asm_language_defn, minimal_language_defn): Ditto.
1062 * f-lang.c (f_language_defn): Ditto.
1063 * jv-lang.c (java_language_defn): Ditto.
1064 * m2-lang.c (f_language_defn): Ditto.
1065 * objc-lang.c (objc_language_defn): Ditto.
1066 * p-lang.c (pascal_language_defn): Ditto.
1067 * scm-lang.c (scm_language_defn): Ditto.
1068 * eval.c (evaluate_subexp_standard): Assume Fortran arrays are
1069 oriented large to small in type structure.
1070 * dwarf2read.c (read_array_order): New function.
1071 (read_array_type): Use read_array_order to check row/column
1072 major ordering.
1073
e354df01
NW
10742004-08-27 Nathan J. Williams <nathanw@wasabisystems.com>
1075
1076 * target.c (target_resize_to_sections): Check
1077 current_target.to_sections for an old value when updating.
1078
9185ddce
JB
10792004-08-27 Joel Brobecker <brobecker@gnat.com>
1080
1081 * procfs.c (dbx_link_bpt_addr): New static global variable.
1082 (dbx_link_shadow_contents): New static global variable.
1083 (procfs_wait, case <PR_SYSEXIT>): Handle syssgi events.
1084 (procfs_wait, case <FLTBPT>): Remove the __dbx_link brekapoint
1085 if we just hit it.
1086 (procfs_init_inferior): Enable syssgi() syscall trace if appropriate.
1087 Reset dbx_link_bpt_addr as the address of __dbx_link() may change
1088 from run to run.
1089 (procfs_create_inferior): Remove syssgi syscall-exit notifications
1090 after the inferior has been forked.
1091 (remove_dbx_link_breakpoint): New function.
1092 (dbx_link_addr): New function.
1093 (insert_dbx_link_bpt_in_file): New function.
1094 (insert_dbx_link_bpt_in_region): New function.
1095 (insert_dbx_link_breakpoint): New function.
1096 (proc_trace_syscalls_1): New function, extracted from
1097 proc_trace_syscalls.
1098 (proc_trace_syscalls): Replace extract code by call to
1099 proc_trace_syscalls_1.
1100 * solib-irix.c (disable_break): Remove stop_pc assertion, as it
1101 is no longer valid.
1102
e6742ace
JB
11032004-08-25 Jim Blandy <jimb@redhat.com>
1104
1105 * gdbtypes.h (TYPE_CODE_ARRAY): Doc fix.
1106
8fb3e588
AC
11072004-08-25 Andrew Cagney <cagney@gnu.org>
1108
629a41ee
AC
1109 * infrun.c (struct execution_control_state): Delete field
1110 "stepping_through_sigtramp".
1111 (init_execution_control_state): Do not set same.
1112 (context_switch): Do not pass same to save_infrun_state and
1113 load_infrun_state.
1114 * gdbthread.h (struct thread_info): Delete field
1115 stepping_through_sigtramp.
1116 (save_infrun_state, load_infrun_state): Delete parameter
1117 stepping_through_sigtramp.
1118 * thread.c (load_infrun_state, save_infrun_state): Update.
1119
8fb3e588
AC
1120 * infrun.c: Re-indent. Move expression operators to the beginning
1121 of the line. Remove long disabled #if 0 code.
1122
49c54768
AC
11232004-08-24 Andrew Cagney <cagney@gnu.org>
1124
1125 * doublest.h (floatformat_ieee_quad): Rename
1126 floatformat_ia64_quad.
1127 * doublest.c (floatformat_ieee_quad): Rename
1128 floatformat_ia64_quad.
1129 (_initialize_doublest): Update.
1130
5ca2e327
JB
11312004-08-24 Jim Blandy <jimb@redhat.com>
1132
87808bd6
JB
1133 * dwarf2expr.h (struct dwarf_expr_context): New members
1134 'num_pieces' and 'pieces', for returning the result of an
1135 expression that uses DW_OP_piece.
1136 (struct dwarf_expr_piece): New struct type.
1137 * dwarf2expr.c (new_dwarf_expr_context): Initialize num_pieces and
1138 pieces.
1139 (free_dwarf_expr_context): Free pieces, if any.
1140 (add_piece): New function.
1141 (execute_stack_op): Implement DW_OP_piece.
1142 * dwarf2loc.c (dwarf2_evaluate_loc_desc): If the result of the
1143 expression is a list of pieces, print an error message.
1144 (dwarf2_loc_desc_needs_frame): If the expression yields
1145 pieces, and any piece is in a register, then we need a frame.
1146
5ca2e327
JB
1147 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Wait to fetch the top of
1148 the stack until we've decided what sort of result the evaluation
1149 has produced. Use separate variables, with more specific names.
1150
2afeb6b8
RE
11512004-08-23 Richard Earnshaw <rearnsha@arm.com>
1152
1153 * armnbsd-tdep.c (arm_nbsd_arm_be_breakpoint): Define.
1154 (arm_nbsd_thumb_[lb]e_breakpoint): Define.
1155 (arm_netbsd_init_abi_common): Register them.
1156
5885ab49
MK
11572004-08-22 Mark Kettenis <kettenis@gnu.org>
1158
fda820a6
MK
1159 * config/vax/vax.mh (NATDEPFILES): Add vax-nat.c.
1160
1c5bf419
MK
1161 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Use
1162 safe_frame_unwind_memory instead of target_read_memory.
1163
8cbba7c8
MK
1164 * infptrace.c: Remove #ifdef'ed out inclusion of gdb_stat.h.
1165 Reorder includes.
1166 (fetch_register, store_register): Remove prototypes.
1167 (child_resume): Reorganize code and comments such that it is
1168 grouped a bit more logically.
1169 (attach): Explicitly compare errno against 0.
1170 (detach): Likewise. Use perror_with_name instead of
1171 print_sys_errmsg.
1172 * Makefile.in (infptrace.o): Update dependencies.
1173
c5fa4245
MK
1174 * ia64-linux-nat.c: Update copyright year.
1175 (fetch_debug_register, store_debug_register)
1176 (ia64_linux_stopped_by_watchpoint): Replace PTRACE_ARG3_TYPE with
1177 PTRACE_TYPE_ARG3.
1178 * config/ia64/nm-linux.h: Update copyright year.
1179 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove defines.
1180
387c058c
MK
1181 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Change argument
1182 from CORE_ADDR to struct frame_info *. Use
1183 safe_frame_unwind_memory instead of deprecated_read_memory_nobpt.
1184 (amd64_linux_sigtramp_p): Adjust for changed signature of
1185 and64_linux_sigtramp_start
1186
277215a6
MK
1187 * gdb_ptrace.h: GNU/Linux.
1188
25f6178e
MK
1189 * config/alpha/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
1190 Remove defines.
1191
652fc137
MK
1192 * infptrace.c: Include "gdb_assert.h".
1193 (PTRACE_XFER_TYPE): Remove define.
1194 (offsetof): Only define if U_REGS_OFFSET isn't defined.
1195 (fetch_register, store_register): Rewrite to use PTRACE_TYPE_RET.
1196 Tweak comment.
1197 (fetch_inferior_registers, store_inferior_registers): Remove
1198 redundant culry braces. Tweak comment. s/regno/regnum.
1199 * Makefile.in (infptrace.o): Update dependencies.
1200
5885ab49
MK
1201 * configure.in: Change test for return type of ptrace to default
1202 to `long' instead of `int'.
1203 * configure: Regenerate.
1204
11003ae3
MK
12052004-08-21 Mark Kettenis <kettenis@gnu.org>
1206
6b95110c
MK
1207 * config/alpha/alpha-linux.mh (LOADLIBES): New variable.
1208
bcb3dc3d
MK
1209 * configure.in: Check for ttrace function.
1210 * configure, config.in: Regenerate.
1211
11003ae3
MK
1212 * gdb_ptrace.h: New file.
1213 * infptrace.c: Include "gdb_ptrace.h" instead of <ptrace.h> or
1214 <sys/ptrace.h>.
1215 (PT_READ_I, PT_READ_D, PT_READ_U, PT_WRITE_I, PT_WRITE_D)
1216 (PT_WRITE_U, PT_CONTINUE, PT_STEP, PT_KILL): Remove defines.
1217 (attach): Don't define PT_ATTACH.
1218 (detach): Don't define PT_DETACH.
1219 * Makefile.in (gdb_ptrace_h): New variable.
1220 (infptrace.o): Update dependencies.
1221
f8707cac
MK
12222004-08-16 Mark Kettenis <kettenis@gnu.org>
1223
1224 * inferior.h (PTRACE_ARG3_TYPE): Define as PTRACE_TYPE_ARG3
1225 instead of `int' if not already defined.
1226 (call_ptrace): Revert change that replaced PTRACE_ARG3_TYPE with
1227 PTRACE_TYPE_ARG3.
1228 * infptrace.c (call_ptrace): Revert change that replaced
1229 PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1230
655c5466
MK
12312004-08-15 Mark Kettenis <kettenis@gnu.org>
1232
156e5ba7
MK
1233 * config/i386/nm-linux64.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
1234 Remove defines.
1235
de9a9e51
MK
1236 * linux-nat.c (kill_inferior): Add missing third and fourth
1237 arguments to ptrace call. Don't use PTRACE_ARG3_TYPE.
1238
88800403
MK
1239 * infptrace.c (child_xfer_memory): Replace PTRACE_XFER_TYPE with
1240 PTRACE_TYPE_RET.
1241
849a1d7c
MK
1242 * proc-why.c (proc_prettyfprint_why): Fix format string.
1243
61ad16d1
MK
1244 * solib-osf.c (osf_current_sos): Remove unsused label.
1245
a6ed5501
MK
1246 * configure.in: Add <ncurses/ncurses.h> to the list of possible
1247 curses headers.
1248 * configure, config.in: Regenerate.
1249 * gdb_curses.h [HAVE_NCURSES_NCURSES_H]: Include
1250 <ncurses/ncurses.h>.
1251
016ddeca
MK
1252 * config/nm-bsd.h (PTRACE_ARG3_TYPE): Remove define.
1253 * config/nm-nbsd.h: Update copyright year.
1254 (PTRACE_ARG3_TYPE): Remove define.
1255
49ec097f
MK
1256 * sparc-nat.c (fetch_inferior_registers)
1257 (store_inferior_registers, sparc_xfer_wcookie):
1258 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1259
9f8e0089
MK
1260 * alphabsd-nat.c (fetch_inferior_registers):
1261 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1262 PTRACE_TYPE_ARG3.
1263 * amd64bsd-nat.c (fetch_inferior_registers)
1264 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1265 PTRACE_TYPE_ARG3.
1266 * armnbsd-nat.c: Update copyright year.
1267 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs)
1268 (store_register, store_regs, store_fp_register, store_fp_regs):
1269 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1270 * hppabsd-nat.c (fetch_inferior_registers)
1271 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1272 PTRACE_TYPE_ARG3.
1273 * i386bsd-nat.c (fetch_inferior_registers)
1274 (store_inferior_registers, i386bsd_dr_set, i386bsd_dr_get_status):
1275 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1276 * m68kbsd-nat.c (fetch_inferior_registers)
1277 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1278 PTRACE_TYPE_ARG3.
1279 * m88kbsd-nat.c (fetch_inferior_registers)
1280 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1281 PTRACE_TYPE_ARG3.
1282 * mipsnbsd-nat.c: Update copyright year.
1283 (fetch_inferior_registers, store_inferior_registers):
1284 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1285 * ns32knbsd-nat.c: Update copyright year.
1286 (fetch_inferior_registers, store_inferior_registers):
1287 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1288 * ppcnbsd-nat.c (fetch_inferior_registers):
1289 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1290 PTRACE_TYPE_ARG3.
1291 * ppcobsd-nat.c (fetch_inferior_registers):
1292 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1293 PTRACE_TYPE_ARG3.
1294 * shnbsd-nat.c: Update copyright year.
1295 (fetch_inferior_registers, store_inferior_registers):
1296 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1297 * vaxbsd-nat.c (fetch_inferior_registers)
1298 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1299 PTRACE_TYPE_ARG3.
1300
655c5466
MK
1301 * inferior.h (call_ptrace): Replace PTRACE_ARG3_TYPE with
1302 PTRACE_TYPE_ARG3.
1303 * infptrace.c (call_ptrace, child_resume, attach, detach)
1304 (U_REGS_OFFSET, fetch_register, store_register, child_xfer_memory)
1305 (udot_info): Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1306 * inftarg.c (ptrace_me): Replace PTRACE_ARG3_TYPE with
1307 PTRACE_TYPE_ARG3.
1308
c40d0d10
MK
13092004-08-14 Mark Kettenis <kettenis@gnu.org>
1310
5cb0ff31
MK
1311 * defs.h: Remove out-of-date comment.
1312 [!FCLOSE_PROVIDED] (fclose): Remove prototype.
1313 [!GETENV_PROVIDED] (getenv): Remove prototype.
1314
5f0f34cb
MK
1315 * standalone.c: Remove file.
1316 * Makefile.in (standalone.o): Remove dependency.
1317
7532965f
MK
1318 * i386-linux-nat.c (dummy_sse_values): Remove function and
1319 prototype.
1320 (i386_linux_dr_get): Fix typo in comment.
1321 (LINUX_SYSCALL_REGNUM): Define as I386_EAX_REGNUM.
1322
1bdc6c53
MK
1323 * config/i386/obsd64.mt (TDEPFILES): Add i386obsd-tdep.o.
1324
c40d0d10
MK
1325 * defs.h (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
1326 from declaration.
1327 * top.c (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
1328 from definition.
1329
64218d3e
MK
13302004-08-13 Mark Kettenis <kettenis@gnu.org>
1331
1332 * configure.in (PTRACE_TYPE_ARG3, PTRACE_TYPE_ARG5): Don't use
1333 parenthesis in definition.
1334 * configure: Regenerated.
1335
926c94e7
MC
13362004-08-12 Michael Chastain <mec.gnu@mindspring.com>
1337
1338 * PROBLEMS: Mention build/1411.
1339
69489883
NN
13402004-08-09 Robert Millan <robertmh@gnu.org>
1341
1342 Committed by Nathanael Nerode.
1343 * configure.host: Match kfreebsd*-gnu and knetbsd*-gnu.
1344 * configure.tgt: Match kfreebsd*-gnu and knetbsd*-gnu.
1345
ebb7c577
AC
13462004-08-12 Andrew Cagney <cagney@gnu.org>
1347
1348 * NEWS: Mention fixes in GDB 6.2.1.
1349 * PROBLEMS: Remove mention of mips-irix.
1350
232d697c
JB
13512004-08-11 Joel Brobecker <brobecker@gnat.com>
1352
1353 * config/powerpc/xm-aix.h: Delete.
1354 * config/powerpc/aix.mh (MH_FILE): Remove.
1355 * config/powerpc/aix432.mh (MH_FILE): Remove.
1356
72f4e82b
JB
13572004-08-11 Joel Brobecker <brobecker@gnat.com>
1358
1359 * config/powerpc/aix.mh: Remove obsolete comment.
1360 * config/powerpc/aix432.mh: Likewise.
1361
0687ccb2
JB
13622004-08-11 Joel Brobecker <brobecker@gnat.com>
1363
1364 * config/powerpc/xm-aix.h (UINT_MAX): Remove undef.
1365
dbf3ada7
JB
13662004-08-11 Joel Brobecker <brobecker@gnat.com>
1367
e08e1886
JB
1368 * config/rs6000/xm-aix4.h: Remove "config/xm-aix4.h" include,
1369 this file is now empty.
1370 * config/xm-aix4.h: Remove, this file is no longer included
1371 anywhere.
1372
13732004-08-11 Joel Brobecker <brobecker@gnat.com>
1374
1375 * config/powerpc/xm-aix.h: Remove "config/xm-aix4.h" include,
1376 that file is now empty.
dbf3ada7
JB
1377 (termdef): Remove prototype, function no longer used.
1378
4c525ef6
JB
13792004-08-11 Joel Brobecker <brobecker@gnat.com>
1380
1381 * doc/gdbint.texinfo (Host Definition): Remove documentation
1382 for USE_O_NOCTTY, no longer used.
1383 * config/xm-aix4.h (USE_O_NOCTTY): Remove, no longer used.
1384 * config/rs6000/xm-rs6000.h (USE_O_NOCTTY): Likewise.
1385
82e0b968
JB
13862004-08-11 Joel Brobecker <brobecker@gnat.com>
1387
1388 * config/xm-aix4.h (FIVE_ARG_PTRACE): Remove, no longer used.
1389 * config/pa/nm-hppah.h (FIVE_ARG_PTRACE): Likewise.
1390 * config/rs6000/xm-rs6000.h (FIVE_ARG_PTRACE): Likewise.
1391
f2acbe1c
MK
13922004-08-11 Mark Kettenis <kettenis@gnu.org>
1393
daa98270
MK
1394 * infptrace.c (call_ptrace): Select code based on PTRACE_TYPE_ARG5
1395 instead of FIVE_ARG_PTRACE.
1396
f2acbe1c
MK
1397 * inflow.c (O_NOCTTY): Define to zero if not already defined.
1398 (new_tty): Use O_NOCTTY unconditionally.
1399
cc377e6b
MK
14002004-08-10 Mark Kettenis <kettenis@gnu.org>
1401
1402 * procfs.c (procfs_detach): Cleanup. Print process ID, not LWP
1403 ID. Use comma in output. Use gdb_flush on gdb_stdout instead of
1404 fflush on stdout.
1405
3bcc18fa
JB
14062004-08-10 Joel Brobecker <brobecker@gnat.com>
1407
1408 * xcoff_symfile_finish: Replace last call to xmfree by call
1409 to xfree.
1410
7936743b
AC
14112004-08-10 Andrew Cagney <cagney@gnu.org>
1412
cc503c8a
AC
1413 * main.c (captured_main): Delete call to init_malloc.
1414 * defs.h (init_malloc): Delete declaration.
1415 * utils.c (mmalloc, mrealloc, mcalloc, mfree)
1416 (init_malloc): Delete functions.
1417
2dc74dc1
AC
1418 * defs.h (xmfree): Delete.
1419 * utils.c (xmfree): Delete function.
1420 (xfree): Inline calls to xmfree and mfree.
1421 * symmisc.c (free_symtab_block, free_symtab): Use xfree.
1422 * symfile.c (reread_symbols, init_psymbol_list): Ditto.
1423 * source.c (forget_cached_source_info, find_and_open_source): Ditto.
1424 * somread.c (som_symfile_finish): Ditto.
1425 * objfiles.c (allocate_objfile, free_objfile):
1426 * nlmread.c (nlm_symfile_finish): Ditto.
1427 * hpread.c (hpread_symfile_finish): Ditto.
1428 * elfread.c (free_elfinfo, elf_symfile_finish): Ditto.
1429 * dbxread.c (dbx_symfile_finish, free_bincl_list): Ditto.
1430 * coffread.c (coff_symfile_finish): Ditto.
1431
aa2ee5f6
AC
1432 * defs.h (xmcalloc): Delete declaration.
1433 * utils.c (xmcalloc): Delete.
1434 (xcalloc): Inline calls to xmcalloc and mcalloc.
1435 * ada-lang.c (_initialize_ada_language): Use htab_create_alloc,
1436 xcalloc and xfree.
1437 * symtab.c (create_demangled_names_hash): Ditto.
1438
0efffb96
AC
1439 * defs.h (xmrealloc): Delete.
1440 * utils.c (xmrealloc): Delete.
1441 (xrealloc): Inline calls to xmrealloc, mmalloc and mrealloc.
1442 * symmisc.c (extend_psymbol_list): Use xrealloc.
1443 * source.c (find_source_lines): Ditto.
1444 * hpread.c (hpread_lookup_type): Ditto.
1445 * dbxread.c (add_bincl_to_list): Ditto.
1446
7936743b
AC
1447 * utils.c (xmmalloc): Delete.
1448 (xmalloc): Inline xmmalloc and mmalloc calls.
1449 (msavestring): Use xmalloc.
1450 * defs.h (xmmalloc): Delete declaration.
1451 * xcoffread.c (xcoff_symfile_init): Use xmalloc instead of
1452 xmmalloc.
1453 * symmisc.c (extend_psymbol_list): Ditto.
1454 * symfile.c (init_psymbol_list): Ditto.
1455 * source.c (find_source_lines): Ditto.
1456 * hpread.c (hpread_symfile_init, hpread_lookup_type): Ditto.
1457 * elfread.c (elf_symtab_read): Ditto.
1458 * dbxread.c (dbx_symfile_init, init_bincl_list): Ditto.
1459 * coffread.c (coff_symfile_init): Ditto.
1460
252ab814
DC
14612004-08-10 David Carlton <carlton@bactrian.org>
1462
1463 * MAINTAINERS: Remove David Carlton from c++ testsuite
1464 maintainers.
1465
8f5ba92b
JG
14662004-08-10 Jerome Guitton <guitton@gnat.com>
1467
1468 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure to
1469 print a line feed before the prompt.
1470
21749010
MK
14712004-08-10 Mark Kettenis <kettenis@gnu.org>
1472
1473 * procfs.c (procfs_pid_to_str): Use "%ld" to print LWP.
1474
1f011ce2
JB
14752004-08-09 Joel Brobecker <brobecker@gnat.com>
1476
1477 General cleanup of the AIX xm include file:
1478 * config/xm-aix4.h (fd_set): Remove undefine.
1479 Remove include of <sys/select.h>.
1480 (HAVE_TERMIO): Remove define.
1481 (USG): Likewise.
1482 (NULL): Remove redefine.
1483 (alloca): Remove #pragma.
1484 (vfork): Remove define.
1485 (termdef): Remove.
1486 (SIGWINCH_HANDLER): Remove.
1487 (SIGWINCH_HANDLER_BODY): Remove.
1488
cf4e7692
MK
14892004-08-09 Mark Kettenis <kettenis@gnu.org>
1490
1491 * configure.tgt (x86_64-*-openbsd*): Set gdb_osabi to
1492 GDB_OSABI_OPENBSD_ELF.
1493
ac5754fa
MK
14942004-08-07 Robert Millan <robertmh@gnu.org>
1495
1496 * bsd-kvm.c: Check for nlist.h before including it.
1497
086ec9eb
MK
14982004-08-09 Mark Kettenis <kettenis@gnu.org>
1499
bbe06c74
MK
1500 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove `struct
1501 sigcontext' offset consistency checks for ancient BSD.
1502
3aa7b3b3
MK
1503 * gdb_curses.h [HAVE_CURSESX_H]: Include <cursesX.h>
1504
086ec9eb
MK
1505 * configure.in: Check for <sys/types.h>. Check return and
1506 argument types of ptrace.
1507 * configure, config.in: Regenerate.
1508
09991fa0
JB
15092004-08-09 Jim Blandy <jimb@redhat.com>
1510
1511 * rs6000-tdep.c (set_sim_regno, init_sim_regno_table,
1512 rs6000_register_sim_regno): Doc fixes.
1513
fed7ba43
JB
15142004-08-08 Joel Brobecker <brobecker@gnat.com>
1515
1516 * mips-tdep.c: Include "floatformat.h".
1517 (n32n64_floatformat_always_valid): New function.
1518 (floatformat_n32n64_long_double_big): New constant.
1519 (mips_gdbarch_init): Set size and format of long double
1520 for N32 and N64 ABIs.
1521 * Makefile.in (mips-tdep.o): Update dependencies.
1522
456fcf94
AC
15232004-08-08 Andrew Cagney <cagney@gnu.org>
1524
2f9b146e
AC
1525 * gdbarch.sh: Delete "fmt" and "attrib" fields. Always use %s to
1526 print. Improve script's error messages.
1527 * gdbarch.h: Re-generate.
1528
456fcf94
AC
1529 * gdbarch.sh (pformat): New function.
1530 (float_format, double_format, long_double_format): List with bit
1531 members. Use pformat when printing.
1532 * gdbarch.c, gdbarch.h: Re-generate.
1533
69e9e646
NW
15342004-08-08 Nathan J. Williams <nathanw@wasabisystems.com>
1535
1536 * ppcnbsd-nat.c: Include <machine/frame.h>, <machine/pcb.h>,
1537 "gdbcore.h", "regcache.h", and "bsd-kvm.h".
1538 (ppcnbsd_supply_pcb): New function.
1539 (_initialize_ppcnbsd_nat): New prototype and function.
1540 * config/powerpc/nbsd.mh (NATDEPFILES): Add bsd-kvm.o.
1541 (LOADLIBES): New variable.
1542 * Makefile.in (ppcnbsd-nat.o): Update dependencies.
1543
5ef2d0aa
AC
15442004-08-08 Andrew Cagney <cagney@gnu.org>
1545
1546 * gdbtypes.c (builtin_type_arm_ext, builtin_type_ieee_single)
1547 (builtin_type_ieee_double, builtin_type_ia64_quad)
1548 (builtin_type_ia64_spill, _initialize_gdbtypes): Add tables of
1549 BE/LE floating-point types.
1550 * gdbtypes.h (builtin_type_arm_ext, builtin_type_ieee_single)
1551 (builtin_type_ieee_double, builtin_type_ia64_quad)
1552 (builtin_type_ia64_spill): Declare.
1553 * doublest.c (_initialize_doublest, floatformat_ieee_single)
1554 (floatformat_ieee_double, floatformat_arm_ext)
1555 (floatformat_ia64_spill, floatformat_ia64_quad): Add tables
1556 of LE/BE floatformats.
1557 * doublest.h: (struct floatformat, floatformat_ieee_single)
1558 (floatformat_ieee_double, floatformat_arm_ext)
1559 (floatformat_ia64_spill, floatformat_ia64_quad): Declare.
1560
5c7f2947
MK
15612004-08-08 Mark Kettenis <kettenis@gnu.org>
1562
ecac404d
MK
1563 * i386gnu-nat.c (gnu_store_registers): Fix typo.
1564
9b8607ce
MK
1565 * i386gnu-nat.c (gnu_store_registers): Use regcache_raw_collect
1566 instead of regcache_raw_supply when storing the registers.
1567
f6052080
MK
1568 * i386gnu-nat.c: Update copyright year.
1569 (gnu_store_registers): Don't use deprecated_registers and
1570 deprecated_registers_valid. Use regcache_valid_p and
1571 regcache_raw_supply instead.
1572
17777823
MK
1573 * vax-tdep.c (vax_frame_this_id): Use frame_func_unwind instead of
1574 frame_pc_unwind.
1575
5240ceac
MK
1576 * procfs.c (procfs_pid_to_str): Remove redundant and unused
1577 variables. Incapitalized "process".
1578
5c7f2947
MK
1579 * configure.in: Add cursesX to the list of possible curses libs.
1580 Add cursesX.h to the list of possible curses headers.
1581 * configure, config.in: Regenerate.
1582
da7d81e3
NW
15832004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
1584
1585 * configure.in: Test for struct lwp in <sys/lwp.h>.
1586 * bsd-kvm.c (bsd_kvm_proc_cmd): If HAVE_STRUCT_LWP is defined, use
1587 the offset of l_addr in struct lwp.
1588
7f245d65
NW
15892004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
1590
1591 * bsd-kvm.c: Include "gdbcore.h"
1592 (bsd_kvm_open): Use get_exec_file() to set 'execfile'.
1593
47b3f456
AC
15942004-08-07 Andrew Cagney <cagney@gnu.org>
1595
70bd8e24
AC
1596 * gdbtypes.c (build_flt, build_complex): New functions.
1597 (gdbtypes_post_init): Use.
1598
9b0dea39
AC
1599 * doublest.c (floatformat_from_length): Fix tipo, "*" not "&".
1600
5cf7abac
AC
1601 * gdbtypes.c (_initialize_gdbtypes): Do not swap builtin_type_int8
1602 through to builtin_type_uint128.
1603
64d2b26d
AC
1604 * c-exp.y: Use builtin_type function to obtain builtin types.
1605
7ad6570d
AC
1606 * gdbtypes.h (struct builtin_type): Delete builtin_int0 through to
1607 builtin_uint128.
1608 * gdbtypes.c (gdbtypes_post_init): Update.
1609 (build_gdbtypes): Move initialization of builtin_type_int0
1610 through to builtin_type_uint128 from here ...
1611 (_initialize_gdbtypes): ... to here.
1612 * d10v-tdep.c (d10v_register_type): Update.
1613
47b3f456
AC
1614 * doublest.c: Update copyright.
1615 (floatformat_from_length): Call error when floatformat is NULL.
1616 (extract_floating_by_length): Remove NULL fmt check.
1617 (store_floating_by_length): Ditto.
1618
0a8146bf
AC
16192004-08-07 Andrew Cagney <cagney@gnu.org>
1620
1621 * regcache.c (regcache_raw_read): For the moment, #ifdef assert
1622 that the register is valid.
1623
c0ccb908
MK
16242004-08-05 Mark Kettenis <kettenis@chello.nl>
1625
8e6bed05
MK
1626 * i386-linux-tdep.c (i386_linux_sigtramp_start)
1627 (i386_linux_rt_sigtramp_start): Change argument from CORE_ADDR to
1628 struct frame_info *. Use safe_frame_unwind_memory instead of
1629 deprecated_read_memory_nobpt.
1630 (i386_linux_sigtramp_p, i386_linux_sigcontext_addr): Adjust for
1631 changed signature of i386_linux_sigtramp_start and
1632 i386_linux_rt_sigtramp_start.
1633
24f9f5e3
MK
1634 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Change argument from
1635 CORE_ADDR to struct frame_info *. Use safe_frame_unwind_memory
1636 instead of deprecated_read_memory_nobpt.
1637 (i386nbsd_sigtramp_p): Adjust for changed signature of
1638 i386nbsd_sigtramp_offset.
1639
c822af0c
MK
1640 * i386obsd-tdep.c (i386obsd_sigtramp_p): Use
1641 safe_frame_unwind_memory instead of target_read_memory.
1642
c0ccb908
MK
1643 * infptrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
1644 !NO_SYS_FILE.
1645 [KERNEL_U_ADDR_BSD]: Don't include <a.out.h>.
1646 [KERNEL_U_ADDR_BSD] (kernel_u_addr): Remove variable.
1647 (_initialize_kernel_u_addr): Remove prototype and function.
1648 * infttrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
1649 !NO_SYS_FILE.
1650 * xcoffread.c: Likewise.
1651
b9e1c0d6
MK
16522004-08-06 Mark Kettenis <kettenis@gnu.org>
1653
1654 * vax-nat.c: New file.
1655 * vaxbsd-nat.c: Tweak comment.
1656 * Makefile.in (ALLDEPFILES): Add vax-nat.c, vaxbsd-nat.c and
1657 vaxnbsd-tdep.c.
1658 (vax-nat.o): New dependency.
1659 * configure.host (vax-*-bsd*, vax-*-ultrix*): Set gdb_host to vax.
1660 (vax-*-ultrix2*): Remove.
1661 * config/vax/vax.mh: New file.
1662 * config/vax/nm-vax.h (vax_kernel_u_addr): New extern declaration.
1663 (KERNEL_U_ADDR): Define as vax_kernel_u_addr.
1664 (vax_register_u_addr): New prototype.
1665 (REGISTER_U_ADDR): Define using vax_register_u_addr.
1666 * config/vax/vaxult2.mh: Remove file.
1667 * config/vax/vaxult.mh: Remove file.
1668 * config/vax/vaxbsd.mh: Remove file.
1669 * config/vax/vax.mt (TM_FILE): Remove.
1670 * config/vax/tm-vaxbsd.h: Remove file.
1671
9ad7bec7
JB
16722004-08-06 Joel Brobecker <brobecker@gnat.com>
1673
1674 * aix-thread.c (get_signaled_thread): New function.
1675 (iter_trap): Delete, no longer used.
1676 (iter_tid): New function.
1677 (pd_update): Find the thread that received the SIGTRAP signal
1678 by first locating the kernel thread, and then finding its
1679 associated thread.
1680
bf0d233d
UW
16812004-08-06 Ulrich Weigand <uweigand@de.ibm.com>
1682
1683 * lin-lwp.c (child_wait): Continue inferior after processing
1684 PTRACE_EVENT_CLONE event.
1685
d0f853e1
NN
16862004-08-05 Nathanael Nerode <neroden@gcc.gnu.org>
1687
1688 * MAINTAINERS: Add self to Write-After-Approval.
1689
ab14aeb0
JJ
16902004-08-05 Jeff Johnston <jjohnstn@redhat.com>
1691
1692 * libunwind-frame.c (LIBUNWIND_SO): Change to be of form:
1693 libunwind-xxxx.so" where xxxx is UNW_TARGET.
1694
9c8dbfa9
AC
16952004-08-05 Andrew Cagney <cagney@gnu.org>
1696
c8f3ca46
AC
1697 * config/xm-sysv4.h: Delete file.
1698 * config/mips/xm-irix5.h: Delete file.
1699 * config/mips/irix6.mh (XM_FILE, XM_CLIBS): Delete.
1700 * config/mips/irix5.mh (XM_FILE, XM_CLIBS): Delete.
1701 * config/ia64/xm-aix.h: Delete file.
1702 * config/ia64/aix.mh (XM_FILE): Delete.
1703 * config/pa/xm-hppah.h: Delete file.
1704 * config/pa/hpux11w.mh (XM_FILE): Delete.
1705 * config/pa/hpux11.mh (XM_FILE): Delete.
1706 * config/pa/hpux1020.mh (XM_FILE): Delete.
1707 * config/pa/hppahpux.mh (XM_FILE): Delete.
1708
5f7daaff
AC
1709 * config/alpha/xm-alphalinux.h: Delete file.
1710 * config/djgpp/fnchange.lst: Do not fix xm-alphalinux.h.
1711 * config/alpha/alpha-linux.mh (XM_FILE, LOADLIBES): Delete.
1712 * config/alpha/xm-alphaosf.h: Delete file.
1713 * config/djgpp/fnchange.lst: Do not fix xm-alphaosf.h.
1714 * config/alpha/alpha-osf3.mh (XM_FILE): Delete.
1715 * config/alpha/alpha-osf2.mh (XM_FILE): Delete.
1716 * config/alpha/alpha-osf1.mh (XM_FILE): Delete.
1717
69babf95
AC
1718 * config/i386/xm-i386v.h: Delete file.
1719 * config/i386/i386v.mh (XM_FILE, XM_CLIBS): Delete.
1720 * config/i386/i386sco5.mh (XM_FILE, XM_CLIBS): Delete.
1721 * config/i386/xm-i386sco.h: Delete file.
1722 * config/i386/i386sco4.mh (XM_FILE, XM_CLIBS, MH_CFLAGS): Delete.
1723 * config/i386/i386sco.mh (XM_FILE, XM_CLIBS, CC): Delete.
1724 * config/i386/xm-i386v4.h: Delete file.
1725 * config/djgpp/fnchange.lst: Do not fix xm-i386v4.h.
1726 * config/i386/ncr3000.mh (CC, CFLAGS, XM_FILE): Delete.
1727 * config/i386/i386v42mp.mh (XM_FILE, XM_CLIBS): Delete.
1728 * config/i386/i386v4.mh (XM_FILE, XM_CLIBS): Delete.
1729
6f009c8a
AC
1730 * config/vax/xm-vax.h: Delete file.
1731 * Makefile.in (xm-vaxult.h, xm-vaxbsd.h): Delete.
1732 * config/vax/xm-vaxult2.h: Delete file.
1733 * config/djgpp/fnchange.lst: Do not fix xm-vaxult2.h.
1734 * config/vax/vaxult2.mh (XM_FILE): Delete.
1735 * config/vax/xm-vaxult.h: Delete file.
1736 * config/vax/vaxult.mh (XM_FILE): Delete.
1737 * config/vax/xm-vaxbsd.h: Delete file.
1738 * config/vax/vaxbsd.mh (XM_FILE): Delete.
1739
9c8dbfa9
AC
1740 * gdbarch.sh (deprecated_frame_saved_pc): Delete.
1741 * gdbarch.h, gdbarch.c: Re-generate.
1742 * regcache.c (deprecated_read_fp, deprecated_write_sp): Delete.
1743 * inferior.h (deprecated_read_fp, deprecated_write_sp): Delete.
1744 * frame.h: Delete deprecated_read_fp from comments.
1745 * arch-utils.c (deprecated_init_frame_pc_default): Delete.
1746 * arch-utils.h (deprecated_init_frame_pc_default): Delete.
1747
84367a3e
MK
17482004-08-04 Mark Kettenis <kettenis@gnu.org>
1749
9c8e3411
MK
1750 * i386obsd-tdep.c (i386obsd_sigtramp_p): Adjust for changed signal
1751 trampoline in OpenBSD 3.5-current.
1752
b87bc0d8
MK
1753 * i387-tdep.c (i387_supply_fsave): Provide summy values for the
1754 SSE registers.
1755
84367a3e
MK
1756 * Makefile.in: Remove embedded page breaks.
1757
a44bddec
JB
17582004-08-04 Jim Blandy <jimb@redhat.com>
1759
7ab3286f
JB
1760 * regcache.c (regcache_raw_read): Assert that, after calling
1761 target_fetch_registers, the register we're reading is cached.
1762
a44bddec
JB
1763 * ppc-linux-nat.c (fetch_register): Replace 'gdb_assert (0)' with
1764 a call to 'internal_error', with a more helpful error message.
1765 * rs6000-tdep.c (e500_pseudo_register_read,
870d65d5 1766 e500_pseudo_register_write, rs6000_store_return_value): Same.
a44bddec 1767
35124113
AC
17682004-08-04 Andrew Cagney <cagney@gnu.org>
1769
1770 * Makefile.in: Update dependencies.
1771
9f643768
JB
17722004-08-04 Jim Blandy <jimb@redhat.com>
1773
6ced10dd
JB
1774 Change the layout of the PowerPC E500 raw register cache to allow
1775 the lower 32-bit halves of the GPRS to be their own raw registers,
1776 not pseudoregisters.
1777 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_gprs_pseudo_p flag;
1778 add ppc_ev0_upper_regnum flag.
1779 * rs6000-tdep.c: #include "reggroups.h".
1780 (spe_register_p): Recognize the ev upper half registers as SPE
1781 registers.
1782 (init_sim_regno_table): Build gdb->sim mappings for the upper-half
1783 registers.
1784 (e500_move_ev_register): New function.
1785 (e500_pseudo_register_read, e500_pseudo_register_write): The 'ev'
1786 vector registers are the pseudo-registers now, formed by splicing
1787 together the gprs and the upper-half registers.
1788 (e500_register_reggroup_p): New function.
1789 (P): Macro deleted.
1790 (P8, A4): New macro.
1791 (PPC_EV_REGS, PPC_GPRS_PSEUDO_REGS): Macros deleted.
1792 (PPC_SPE_GP_REGS, PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): New
1793 macros.
1794 (registers_e500): Rearrange register set so that the raw register
1795 set contains 32-bit GPRs and upper-half registers, and the SPE
1796 vector registers become pseudo-registers.
1797 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gprs_pseudo_p;
1798 it has been deleted. Initialize ppc_ev0_upper_regnum. Many other
1799 register numbers are now the same for the E500 as they are for
1800 other PowerPC variants. Register e500_register_reggroup_p as the
1801 register group function for the E500.
1802 * Makefile.in (rs6000-tdep.o): Update dependencies.
1803
1804 Adapt PPC E500 native support to the new raw regcache layout.
1805 * ppc-linux-nat.c (struct gdb_evrregset_t): Doc fixes.
1806 (read_spliced_spe_reg, write_spliced_spe_reg): Deleted.
1807 (fetch_spe_register, store_spe_register): Handle fetching/storing
1808 all the SPE registers at once, if regno == -1. These now take
1809 over the job of fetch_spe_registers and store_spe_registers.
1810 (fetch_spe_registers, store_spe_registers): Deleted.
1811 (fetch_ppc_registers, store_ppc_registers): Fetch/store gprs
1812 unconditionally; they're always raw. Fetch/store SPE upper half
1813 registers, if present, instead of ev registers.
1814 (fetch_register, store_register): Remove sanity checks: gprs are
1815 never pseudo-registers now, so we never need to even mention any
1816 registers that are ever pseudoregisters.
1817
9f643768
JB
1818 Use a fixed register numbering when communicating with the PowerPC
1819 simulator.
1820 * ppc-tdep.h (struct gdbarch_tdep): New member: 'sim_regno'.
1821 * rs6000-tdep.c: #include "sim-regno.h" and "gdb/sim-ppc.h".
1822 (set_sim_regno, init_sim_regno_table, rs6000_register_sim_regno):
1823 New functions.
1824 (rs6000_gdbarch_init): Register rs6000_register_sim_regno. Call
1825 init_sim_regno_table.
1826 * Makefile.in (gdb_sim_ppc_h): New variable.
1827 (rs6000-tdep.o): Update dependencies.
1828
1e2279c8
AC
18292004-08-02 Andrew Cagney <cagney@gnu.org>
1830
1d94326f
AC
1831 * cris-tdep.c (cris_register_size): Restore function, still used
1832 locally.
1833
331ae7ed
AC
1834 * gdbarch.sh (deprecated_target_read_fp)
1835 (deprecated_frame_locals_address, deprecated_frame_args_address)
1836 (deprecated_frame_chain_valid, deprecated_frame_chain)
1837 (deprecated_init_extra_frame_info, deprecated_pop_frame)
1838 (deprecated_frame_init_saved_regs, deprecated_get_saved_register)
1839 (deprecated_do_registers_info, deprecated_init_frame_pc): Delete.
1840 * gdbarch.h, gdbarch.c: Re-generate.
1841 * regcache.c (deprecated_read_fp): Do not call
1842 DEPRECATED_TARGET_READ_FP_P.
1843 * infcmd.c (default_print_registers_info): Do not call
1844 DEPRECATED_DO_REGISTERS_INFO.
1845 * frame-base.c (default_frame_locals_address): Do not call
1846 DEPRECATED_FRAME_LOCALS_ADDRESS.
1847 (default_frame_args_address): Do not call
1848 DEPRECATED_FRAME_ARGS_ADDRESS.
1849
1e2279c8
AC
1850 * gdbarch.sh (deprecated_register_raw_size)
1851 (deprecated_register_virtual_size:int): Delete.
1852 * gdbarch.h, gdbarch.c: Re-generate.
1853 * cris-tdep.c (cris_register_size): Delete.
1854 (cris_gdbarch_init): Update.
1855 * alpha-tdep.c (alpha_register_raw_size)
1856 (alpha_register_virtual_size): Delete.
1857 (alpha_gdbarch_init): Update.
1858
a90c06b4
AC
1859 * gdbarch.sh (deprecated_register_virtual_type)
1860 (deprecated_save_dummy_frame_tos, deprecated_push_return_address)
1861 (deprecated_dummy_write_sp): Delete.
1862 * gdbarch.h, gdbarch.c: Re-generate.
1863
f42accbe
AC
1864 * gdbarch.sh (deprecated_register_bytes): Delete.
1865 * gdbarch.h, gdbarch.c: Re-generate.
1866 * regcache.c (deprecated_register_bytes): New function.
1867 * regcache.h (deprecated_register_bytes): Declare.
1868 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1869 * v850-tdep.c (v850_gdbarch_init): Update.
1870 * sh64-tdep.c (sh64_gdbarch_init): Update.
1871 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
1872 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1873 * mcore-tdep.c (mcore_gdbarch_init): Update.
1874 * cris-tdep.c (cris_gdbarch_init): Update.
1875 * arm-tdep.c (arm_gdbarch_init): Update.
1876 * remote.c (init_remote_state): Update.
1877 * remote-vx.c (vx_prepare_to_store): Update.
1878 * remote-sds.c (sds_fetch_registers, sds_prepare_to_store): Update.
1879 * irix5-nat.c (fetch_core_registers): Update.
1880 * cris-tdep.c (cris_register_bytes_ok): Update.
1881 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
1882
45c9dd44
AC
1883 * mips-tdep.c (mips_gdbarch_init, mips_insn16_frame_cache)
1884 (mips_insn16_frame_this_id, mips_insn16_frame_prev_register)
1885 (mips_insn16_frame_unwind, mips_insn16_frame_sniffer)
1886 (mips_insn16_frame_base_address, mips_insn16_frame_base)
1887 (mips_insn16_frame_base_sniffer, mips_insn32_frame_cache)
1888 (mips_insn32_frame_this_id, mips_insn32_frame_prev_register)
1889 (mips_insn32_frame_unwind, mips_insn32_frame_sniffer)
1890 (mips_insn32_frame_base_address, mips_insn32_frame_base)
1891 (mips_insn32_frame_base_sniffer): Replace mips16 / mips32 prefix
1892 with mips_insn16 and mips_insn32.
1893
3acba339
AC
1894 Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
1895 * rs6000-tdep.c (rs6000_push_dummy_call)
1896 (rs6000_extract_return_value): Use register_size.
1897 * xstormy16-tdep.c (xstormy16_get_saved_register)
1898 (xstormy16_extract_return_value): Ditto.
1899 * valops.c (value_assign): Ditto.
1900 * v850ice.c (v850ice_fetch_registers, v850ice_store_registers):
1901 * v850-tdep.c (v850_extract_return_value): Ditto.
1902 * tracepoint.c (collect_symbol): Ditto.
1903 * target.c (debug_print_register): Ditto.
1904 * stack.c (frame_info): Ditto.
1905 * rs6000-nat.c (ARCH64, fetch_register, store_register): Ditto.
1906 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
1907 * remote.c (struct packet_reg, remote_wait, remote_async_wait)
1908 (store_register_using_P): Ditto.
1909 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
1910 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Ditto.
1911 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
1912 * remote-e7000.c (fetch_regs_from_dump, sub2_from_pc): Ditto.
1913 * regcache.c (deprecated_read_register_bytes)
1914 (deprecated_write_register_bytes, read_register)
1915 (write_register): Ditto.
1916 * ppc-linux-nat.c (fetch_altivec_register, fetch_register)
1917 (supply_vrregset, store_altivec_register, fill_vrregset): Ditto.
1918 * monitor.c (monitor_supply_register, monitor_fetch_register)
1919 (monitor_store_register): Ditto.
1920 * mn10300-tdep.c (mn10300_pop_frame_regular)
1921 (mn10300_print_register): Ditto.
1922 * mipsv4-nat.c (fill_fpregset): Ditto.
1923 * mips-linux-tdep.c (supply_32bit_reg, fill_fpregset)
1924 (mips64_fill_fpregset): Ditto.
1925 * mi/mi-main.c (register_changed_p, get_register)
1926 (mi_cmd_data_write_register_values): Ditto.
1927 * lynx-nat.c (fetch_inferior_registers, store_inferior_registers):
1928 * irix5-nat.c (fill_gregset, fetch_core_registers):
1929 * infrun.c (write_inferior_status_register): Ditto.
1930 * infptrace.c (fetch_register, store_register): Ditto.
1931 * infcmd.c (default_print_registers_info): Ditto.
1932 * ia64-linux-nat.c (COPY_REG, fill_fpregset): Ditto.
1933 * ia64-aix-nat.c (COPY_REG, fill_gregset): Ditto.
1934 * i386gnu-nat.c (gnu_store_registers, fill): Ditto.
1935 * hpux-thread.c (hpux_thread_fetch_registers)
1936 (hpux_thread_store_registers): Ditto.
1937 * hppah-nat.c (store_inferior_registers, fetch_register):
1938 * findvar.c (value_from_register): Ditto.
1939 * dve3900-rom.c (fetch_bitmapped_register):
1940 * cris-tdep.c (cris_gdbarch_init): Ditto.
1941 * alpha-tdep.h: Ditto.
1942 * aix-thread.c (pd_enable, fill_sprs64, fill_sprs32): Ditto.
1943
01e1877c
AC
1944 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_SIZE and
1945 DEPRECATED_REGISTER_RAW_SIZE from comments.
1946 * regcache.c (init_regcache_descr, regcache_dump): Do not check or
1947 use DEPRECATED_REGISTER_VIRTUAL_SIZE and
1948 DEPRECATED_REGISTER_RAW_SIZE.
1949 * findvar.c (value_of_register): Simplify by assuming that the
1950 registers raw and virtual sizes are identical.
1951 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_TYPE in
1952 comment.
1953 * arch-utils.c (generic_register_size): Simplify by assuming
1954 register_type.
1955
73f458fb
AC
1956 * regcache.c (legacy_read_register_gen, real_register)
1957 (legacy_write_register_gen): Delete, not used.
1958
336a3131
AC
1959 * regcache.c (struct regcache_descr): Delete legacy_p.
1960 (init_legacy_regcache_descr): Delete function.
1961 (init_regcache_descr): Delete call to init_legacy_regcache_descr.
1962 Do not use deprecated register functions.
1963 (regcache_raw_read, deprecated_write_register_gen):
1964 (deprecated_read_register_gen, regcache_raw_write): Delete code
1965 predicated on legacy_p.
1966 (register_size): Delete check against register raw size.
1967
c1d546cd
AC
1968 * cris-tdep.c (cris_register_type): Replace
1969 cris_register_virtual_type.
1970 (cris_gdbarch_init): Update, set register_type.
1971
48c2c0a6
AC
1972 * gdbarch.sh (deprecated_frameless_function_invocation): Delete.
1973 * gdbarch.h, gdbarch.c: Re-generate.
1974 * arm-tdep.c (arm_frameless_function_invocation): Delete.
1975 (arm_gdbarch_init) Do not set frameless function invocation.
1976 * frame.h (legacy_frameless_look_for_prologue): Delete declaration.
1977 * blockframe.c (legacy_frameless_look_for_prologue): Delete function.
1978 * frv-tdep.c (frv_frameless_function_invocation): Delete.
1979 (frv_gdbarch_init): Do not set frameless function invocation.
1980 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
1981 * sh-tdep.c (sh_gdbarch_init): Ditto.
1982 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
1983 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1984 * avr-tdep.c (avr_gdbarch_init): Ditto.
1985
474093a6
AC
1986 * blockframe.c (legacy_frame_chain_valid): Delete function.
1987
3c109c8b
AC
1988 * dummy-frame.c (struct dummy_frame): Delete call_lo, call_hi, top
1989 and pc. Update comments.
1990 (pc_in_dummy_frame): Delete function.
1991 (deprecated_pc_in_call_dummy): Inline old pc_in_dummy_frame code,
1992 use the "id".
1993 (dummy_frame_push, dummy_frame_sniffer): Instead of call_lo,
1994 call_hi, top and pc, use the id.
1995 (fprint_dummy_frames): Do not print call_lo, call_hi, top and pc.
1996
96860204
AC
1997 * dummy-frame.c: Include "gdb_string.h".
1998 (generic_save_call_dummy_addr, generic_push_dummy_frame)
1999 (generic_save_dummy_frame_tos): Delete.
2000 (dummy_frame_push): New function, replaces above.
2001 * dummy-frame.h: Update copyright.
2002 (dummy_frame_push): Declare.
2003 * frame.h (generic_save_dummy_frame_tos, generic_push_dummy_frame)
2004 (generic_save_call_dummy_addr): Delete declarations.
2005 * infcall.c: Include "dummy-frame.h".
2006 (call_function_by_hand): Add locals caller_regcache,
2007 caller_regcache_cleanup and dummy_id. Replace push_dummy_frame
2008 with call to frame_save_as_regcache plus cleanup. Delete calls to
2009 generic_save_call_dummy_addr and generic_save_dummy_frame_tos.
2010 Move clear_proceed_status to just before the resume, add call to
2011 dummy_frame_push (discard cleanup).
2012 * Makefile.in (infcall.o): Add $(dummy_frame_h).
2013 (dummy-frame.o): Add $(gdb_string_h).
2014
d67ec5db
AC
20152004-08-01 Andrew Cagney <cagney@gnu.org>
2016
2017 * dummy-frame.h (dummy_frame_unwind): Replace dummy_frame_sniffer.
2018 * frame-unwind.c (frame_unwind_init): Use dummy_frame_unwind.
2019 * dummy-frame.c (find_dummy_frame): Delete.
2020 (struct dummy_frame_cache, dummy_frame_sniffer)
2021 (dummy_frame_prev_register, dummy_frame_this_id)
2022 (dummy_frame_unwinder, dummy_frame_unwind): Re-implement dummy
2023 frame unwinder using a dummy_frame_cache.
2024
a81dcb05
AC
20252004-08-01 Andrew Cagney <cagney@gnu.org>
2026
2027 * frame.h (frame_save_as_regcache): Declare.
2028 * frame.c (frame_save_as_regcache): New function.
2029 (do_frame_read_register): Replace do_frame_unwind_register.
2030 (frame_pop): Use frame_save_as_regcache.
2031 * dummy-frame.c (generic_push_dummy_frame): Use
2032 frame_save_as_regcache.
2033
aa495d11
JB
20342004-08-01 Joel Brobecker <brobecker@gnat.com>
2035
2036 * dwarf2read.c (dwarf_decode_lines): Do not consider the current
2037 file as included until we record the first line in the linetable.
2038
ff65ac78
AC
20392004-08-01 Andrew Cagney <cagney@gnu.org>
2040
2041 * frame.h (deprecated_pop_dummy_frame)
2042 (deprecated_read_register_dummy)
2043 (deprecated_generic_find_dummy_frame): Delete.
2044 * dummy-frame.c (deprecated_generic_find_dummy_frame)
2045 (deprecated_read_register_dummy)
2046 (deprecated_find_dummy_frame_regcache)
2047 (discard_innermost_dummy)
2048 (deprecated_pop_dummy_frame): Delete.
2049 (dummy_frame_this_id): Simplify.
2050 (struct dummy_frame): Delete "fp" and "sp".
2051 (find_dummy_frame): Simplify.
2052 (generic_push_dummy_frame): Do not set "fp" or "sp".
2053 (fprint_dummy_frames): Do not print "fp" and "sp"
2054
37bdc87e
MK
20552004-08-01 Mark Kettenis <kettenis@gnu.org>
2056
2057 * i386-tdep.c (I386_MAX_INSN_LEN): New define.
2058 (struct i386_insn): New structure.
2059 (i386_match_insn): New function.
2060 (i386_frame_setup_skip_insns): New variable.
2061 (i386_analyze_frame_setup): Change to use i386_match_insn and the
2062 array i386_frame_setup_insns of instructions that should be
2063 skipped inside the frame setup sequence.
2064
8241eaa6
AC
20652004-08-01 Andrew Cagney <cagney@gnu.org>
2066
5bc602c7
AC
2067 * frame.h (deprecated_frame_xmalloc_with_cleanup)
2068 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
2069 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
2070 * stack.c (frame_info): Delete references to
2071 DEPRECATED_FRAME_INIT_SAVED_REGS and
2072 deprecated_get_frame_saved_regs.
2073 * frame.c (struct frame_info): Delete saved_regs and extra_info.
2074 (frame_pc_unwind): Do not use DEPRECATED_FRAME_SAVED_PC.
2075 (frame_register): Do not use DEPRECATED_GET_SAVED_REGISTER.
2076 (frame_unwind_register_signed)
2077 (frame_unwind_register_unsigned)
2078 (frame_unwind_unsigned_register): Use register_size.
2079 (create_new_frame): Do not use DEPRECATED_INIT_EXTRA_FRAME_INFO.
2080 (deprecated_frame_xmalloc_with_cleanup)
2081 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
2082 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
2083
03d363a1
AC
2084 * sh-tdep.c (sh_gdbarch_init): Disable call to sh64_gdbarch_init.
2085 * config/sh/nbsd.mt (TDEPFILES): Remove sh64-tdep.o.
2086 * config/sh/linux.mt (TDEPFILES): Remove sh64-tdep.o.
2087 * config/sh/embed.mt (TDEPFILES): Remove sh64-tdep.o.
2088
8241eaa6
AC
2089 * infcall.c (call_function_by_hand): Do not use
2090 DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP,
2091 DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_TARGET_READ_FP,
2092 DEPRECATED_FP_REGNUM, DEPRECATED_STORE_STRUCT_RETURN, and
2093 DEPRECATED_STACK_ALIGN.
2094
f00df8b7
AC
20952004-07-30 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
2096
2097 Committed by Andrew Cagney.
2098 * arm-tdep.c: Remove references to add_setshow_cmd_full for apcs32 .
2099
eec63939
AC
21002004-08-01 Andrew Cagney <cagney@gnu.org>
2101
2102 * mips-tdep.c (mips16_frame_cache)
2103 (mips16_frame_this_id, mips16_frame_prev_register)
2104 (mips16_frame_unwind, mips16_frame_sniffer)
2105 (mips16_frame_base_address, mips16_frame_base)
2106 (mips16_frame_base_sniffer, mips32_frame_cache)
2107 (mips32_frame_this_id, mips32_frame_prev_register)
2108 (mips32_frame_unwind, mips32_frame_sniffer)
2109 (mips32_frame_base_address, mips32_frame_base)
2110 (mips32_frame_base_sniffer): Clone the mdebug unwinder into
2111 separate heuristic mips16 and mips32 unwinders.
2112 (mips_stub_frame_cache, mips_stub_frame_this_id)
2113 (mips_stub_frame_prev_register)
2114 (mips_stub_frame_unwind, mips_stub_frame_sniffer)
2115 (mips_stub_frame_base_address, mips_stub_frame_base)
2116 (mips_stub_frame_base_sniffer): Add a simple stub unwinder.
2117 (mips_mdebug_frame_base_sniffer, mips_mdebug_frame_sniffer): Only
2118 match true mdebug frames.
2119 (non_heuristic_proc_desc): Add forward declaration.
2120
e66299b3
AC
21212004-08-01 Andrew Cagney <cagney@gnu.org>
2122
83cbbf3e
AC
2123 * config/mips/tm-irix6.h: Delete file.
2124 * config/mips/tm-irix5.h: Delete file.
2125 * config/mips/irix5.mt (TM_FILE): Set to tm-mips.h
2126 * config/mips/irix6.mt (TM_FILE): Set to tm-mips.h
2127
22d41b37
AC
2128 * config/ia64/tm-linux.h (IA64_GNULINUX_TARGET): Delete.
2129 * config/alpha/nm-osf2.h (PROCFS_SIGPEND_OFFSET): Delete.
2130 * config/nm-gnu.h (NO_CORE_OPS): Delete.
2131 * config/pa/nm-hppah.h (MAY_SWITCH_FROM_INFERIOR_PID): Delete.
2132 * config/i386/nm-i386v4.h (LOSING_POLL): Delete.
2133 * config/alpha/nm-osf2.h (LOSING_POLL): Delete.
2134 * config/tm-nto.h (RAW_SIGNAL_LO, RAW_SIGNAL_HI): Delete.
2135 * config/m68k/tm-vx68.h (VX_SIZE_FPREGS): Delete.
2136 * config/nm-linux.h (USE_THREAD_STEP_NEEDED): Delete.
2137 * config/pa/nm-hppah.h (USE_THREAD_STEP_NEEDED): Delete.
2138 * config/tm-nto.h (TARGET_SIGNAL_RAW_TABLE) Delete.
2139 (TARGET_SIGNAL_RAW_VALUES): Delete.
2140 * config/pa/nm-hppah.h (TARGET_RANGE_PROFITABLE_FOR_HW_WATCHPOINT):
2141 Delete.
2142 * config/frv/tm-frv.h (TARGET_HW_BREAK_LIMIT)
2143 (TARGET_HW_WATCH_LIMIT): Delete.
2144 * Makefile.in (minimon_h, HFILES_NO_SRCDIR): Remove minimon.h.
2145 * minimon.h: Delete file.
2146
e66299b3
AC
2147 * trad-frame.c (trad_frame_get_this_base)
2148 (trad_frame_set_this_base, trad_frame_set_reg_realreg): New
2149 functions.
2150 * trad-frame.h (trad_frame_set_this_base)
2151 (trad_frame_get_this_base, trad_frame_set_reg_realreg): Declare.
2152
1f67027d
AC
21532004-07-31 Andrew Cagney <cagney@gnu.org>
2154
2155 * trad-frame.c (trad_frame_get_prev_register): Rename
2156 trad_frame_get_prev_register.
2157 * vax-tdep.c (vax_frame_prev_register): Update.
2158 * trad-frame.h: Update.
2159 * trad-frame.c (trad_frame_get_register): Update.
2160 * sparcobsd-tdep.c (sparc32obsd_frame_prev_register): Update.
2161 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_prev_register):
2162 Update.
2163 * sparc64obsd-tdep.c (sparc64obsd_frame_prev_register): Update.
2164 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_prev_register):
2165 Update.
2166 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_prev_register):
2167 Update.
2168 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_prev_register):
2169 Update.
2170 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_prev_register):
2171 Update.
2172 * sparc-linux-tdep.c (sparc32_linux_sigtramp_frame_prev_register):
2173 Update.
2174 * s390-tdep.c (s390_frame_prev_register)
2175 (s390_stub_frame_prev_register)
2176 (s390_sigtramp_frame_prev_register): Update.
2177 * rs6000-tdep.c (rs6000_frame_prev_register): Update.
2178 * ppc-linux-tdep.c (ppc_linux_sigtramp_prev_register): Update.
2179 * mips-tdep.c (mips_mdebug_frame_prev_register): Update.
2180 * m88k-tdep.c (m88k_frame_prev_register)
2181 * m68hc11-tdep.c (m68hc11_frame_prev_register)
2182 * m32r-tdep.c (m32r_frame_prev_register): Update.
2183 * hppa-tdep.c (hppa_frame_prev_register_helper)
2184 * frv-tdep.c (frv_frame_prev_register): Update.
2185 * d10v-tdep.c (d10v_frame_prev_register): Update.
2186 * cris-tdep.c (cris_frame_prev_register): Update.
2187 * avr-tdep.c (avr_frame_prev_register): Update.
2188 * arm-tdep.c (arm_prologue_prev_register)
2189 (arm_sigtramp_prev_register): Update.
2190
c1bf6f65
AC
21912004-07-31 Andrew Cagney <cagney@gnu.org>
2192
2193 * frame.h (legacy_saved_regs_unwind)
2194 (legacy_frame_chain_valid, legacy_frame_p)
2195 (enum frame_type): Delete UNKNOWN_FRAME.
01fbbd97
AC
2196 * dummy-frame.c (dummy_frame_this_id): Simplify.
2197 * frame-unwind.c (frame_unwind_find_by_frame): Simplify.
c1bf6f65
AC
2198 * frame.c (struct frame_info): Delete the field "type".
2199 (legacy_saved_regs_prev_register, legacy_get_prev_frame)
2200 (legacy_saved_regs_this_id, legacy_saved_regs_unwinder)
2201 (legacy_saved_regs_unwind, legacy_frame_p)
2202 (frame_type_from_pc): Delete.
2203 (get_frame_id, frame_pop, frame_register_unwind, get_prev_frame_1)
2204 (fprint_frame, create_new_frame, fprint_frame_type): Simplify.
2205
dc856692
MK
22062004-07-31 Mark Kettenis <kettenis@gnu.org>
2207
5a5effe1
MK
2208 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Fix
2209 indentation.
2210
d4fd50a6
MK
2211 * mips-nat.c: Remove file.
2212 * Makefile.in (ALLDEPFILES): Remove mips-nat.c
2213 (mips-nat.o): Remove dependency.
2214
2689df5a
MK
2215 * infptrace.c: Update copyright year.
2216 (fetch_register): Pass NULL in regcache_raw_supply call instead of
2217 explicitly setting the buffer to all zeroes.
2218
dc856692
MK
2219 * sparc64obsd-tdep.c (sparc64obsd_sigreturn_offset): New variable.
2220 (sparc64obsd_pc_in_sigtramp): Reorganize to avoid goto.
2221
763910e0
AC
22222004-07-30 Andrew Cagney <cagney@gnu.org>
2223
2224 * GDB 6.2 released from gdb_6_2-branch.
2225
0b66e38c
EZ
22262004-07-30 Baurjan Ismagulov <ibr@ata.cs.hun.edu.tr>
2227
2228 * defs.h (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH): New macros.
2229
2230 * exec.c (exec_file_attach):
2231 * nto-tdep.c (nto_find_and_open_solib):
2232 * pa64solib.c (pa64_solib_sizeof_symbol_table):
2233 * solib.c (solib_open):
2234 * somsolib.c (som_solib_sizeof_symbol_table):
2235 * source.c (is_regular_file, openp, open_source_file):
2236 * symfile.c (symfile_bfd_open):
2237 * wince.c (upload_to_device): Differentiate between the search for
2238 binary and source files.
2239
be7d7357
AC
22402004-07-30 Andrew Cagney <cagney@gnu.org>
2241
2242 * complaints.c (_initialize_complaints): Pass NULL to
2243 add_setshow_zinteger_cmd for help_doc.
2244 * cli/cli-decode.c (add_setshow_cmd_full): Handle a NULL help_doc.
2245
ddc9cd0f
AC
22462004-07-30 Andrew Cagney <cagney@gnu.org>
2247
2248 Fix PR i18n/761.
2249 * Makefile.in (.SUFFIXES): Add po .gmo, and .pox.
2250 (.PHONY): Add all-po install-po, uninstall-po, clean-po,
2251 $(PACKAGE).pot and update-po.
2252 (all-po, .po.gmo, .po.pox, install-po, $(PACKAGE).pot)
2253 (po/$(PACKAGE).pot, clean-po, uninstall-po, install-po)
2254 (update-po): New rules.
2255 (localedir): Define using autoconf.
2256 (diststuff): Add $(PACKAGE).pot and $(CATALOGS)
2257 (GDB_CFLAGS): Define LOCALEDIR using $(localedir).
2258 (XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): Define.
2259 * configure.in: Generate CATALOGS and LINGUAS from contents of
2260 src/gdb/po/ directory. Set @localedir@ in Makefile.in.
2261 * configure: Re-generate.
2262 * po/gdbtext: New file
2263
e92f3704
JG
22642004-07-30 Jerome Guitton <guitton@gnat.com>
2265
2266 * MAINTAINERS: Reorder Write After Approval list in alphabetical
2267 order.
2268
b0f35d58
DL
22692004-07-30 David Lecomber <dsl@sources.redhat.com>
2270
2271 * dwarf2read.c (read_file_scope): Set producer if attribute
2272 present.
2273 (struct dwarf2_cu): Added new member producer.
2274
ce7d4522
JG
22752004-07-30 Jerome Guitton <guitton@gnat.com>
2276
2277 * inflow.c (kill_command): release file handles in BFD.
2278 * exec.c (exec_file_attach): Ditto.
2279 * symfile.c (symbol_file_add_with_addrs_or_offsets): Ditto.
2280
05ee07c7
AC
22812004-07-29 Andrew Cagney <cagney@gnu.org>
2282
2283 * PROBLEMS (mips-irix): Note that it is broken.
2284
62eceb47
AC
22852004-07-29 Andrew Cagney <cagney@gnu.org>
2286
e57b8d41
AC
2287 * config/mips/xm-irix5.h (REGISTER_U_ADDR): Move from here ...
2288 * config/mips/nm-irix5.h (REGISTER_U_ADDR): ... to here.
2289
d334389b
AC
2290 * config/xm-nbsd.h: Delete file.
2291 * config/arm/xm-nbsd.h: Delete file.
2292 * config/i386/xm-nbsd.h: Delete file.
2293 * config/ns32k/xm-nbsd.h: Delete file.
2294 * config/ns32k/nbsdaout.mh (XM_FILE): Delete.
2295 * config/i386/nbsdelf.mh (XM_FILE): Delete.
2296 * config/i386/nbsdaout.mh (XM_FILE): Delete.
2297 * config/arm/nbsdelf.mh (XM_FILE): Delete.
2298 * config/arm/nbsdaout.mh (XM_FILE): Delete.
2299
e910f676
AC
2300 * config/i386/xm-i386v.h (KERNEL_U_ADDR): Move from here ...
2301 * config/i386/nm-i386v42mp.h (KERNEL_U_ADDR): ... to here, ...
2302 * config/i386/nm-i386v4.h (KERNEL_U_ADDR): ... here, ...
2303 * config/i386/nm-i386v.h (KERNEL_U_ADDR): ... and here.
2304 * config/vax/xm-vax.h (KERNEL_U_ADDR): Move from here ...
2305 * config/vax/nm-vax.h (KERNEL_U_ADDR): ... to here.
2306
6fa856b9
AC
2307 * config/powerpc/xm-linux.h: Delete empty file.
2308 * config/powerpc/ppc64-linux.mh (XM_FILE): Delete.
2309 * config/powerpc/linux.mh (XM_FILE): Delete.
2310 * config/m68k/xm-linux.h: Delete empty file.
2311 * config/m68k/linux.mh (XM_FILE): Delete.
2312 * config/ia64/xm-linux.h: Delete empty file.
2313 * config/ia64/linux.mh (XM_FILE): Delete.
2314 * config/arm/xm-linux.h: Delete empty file.
2315 * config/arm/linux.mh (XM_FILE): Delete.
2316
471ae5ae
AC
2317 * config/powerpc/xm-linux.h (KERNEL_U_ADDR): Move from here ...
2318 * config/powerpc/nm-linux.h (KERNEL_U_ADDR): ... to here.
2319 * config/m68k/xm-linux.h (KERNEL_U_ADDR): Move from here ...
2320 * config/m68k/nm-linux.h (KERNEL_U_ADDR): ... to here.
2321 * config/ia64/xm-linux.h (KERNEL_U_ADDR): Move from here ...
2322 * config/ia64/nm-linux.h (KERNEL_U_ADDR): ... to here.
2323 * config/arm/xm-linux.h (KERNEL_U_ADDR): Move from here ...
2324 * config/arm/nm-linux.h (KERNEL_U_ADDR): ... to here.
2325
62eceb47
AC
2326 * config/m68k/xm-m68k.h: Delete file.
2327 * config/m68k/xm-linux.h: Do not include "m68k/xm-m68k.h". Update
2328 copyright.
2329 (HOST_LONG_DOUBLE_FORMAT): Delete macro.
2330 * config/pa/xm-linux.h: Delete empty file.
2331 * config/pa/linux.mh (XM_FILE): Delete.
2332 * config/i386/xm-i386.h: Delete empty file.
2333 * config/i386/xm-nbsd.h, config/i386/xm-go32.h: Do not include
2334 "i386/xm-i386.h".
2335 * config/i386/obsdaout.mh (XM_FILE): Delete.
2336 * config/i386/obsd64.mh (XM_FILE): Delete.
2337 * config/i386/fbsd64.mh (XM_FILE): Delete.
2338 * config/i386/nto.mh (XM_FILE): Delete.
2339 * config/i386/obsd.mh (XM_FILE): Delete.
2340 * config/i386/linux64.mh (XM_FILE): Delete.
2341 * config/i386/linux.mh (XM_FILE): Delete.
2342 * config/i386/i386sol2.mh (XM_FILE): Delete.
2343 * config/i386/i386gnu.mh (XM_FILE): Delete.
2344 * config/i386/fbsd.mh (XM_FILE): Delete.
2345 * config/i386/nbsd64.mh (XM_FILE): Delete.
2346
c35f4ffc
AC
23472004-07-29 Andrew Cagney <cagney@gnu.org>
2348
2349 * config/pa/xm-linux.h: Do not include "floatformat.h".
2350 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
2351 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
2352 * config/i386/xm-i386.h: Do not include "floatformat.h".
2353 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
2354 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
2355 * doublest.c (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
2356 (HOST_LONG_DOUBLE_FORMAT): Delete macros. Use
2357 GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT and
2358 GDB_HOST_LONG_DOUBLE_FORMAT instead.
2359 * configure.in (GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT)
2360 (GDB_HOST_LONG_DOUBLE_FORMAT): Define.
2361 * configure, config.in: Regenerate.
2362 * configure.host (gdb_host_float_format, gdb_host_double_format)
2363 (gdb_host_long_double_format): Set according to the host.
2364
624a44a3
AC
23652004-07-29 Andrew Cagney <cagney@gnu.org>
2366
2367 * Makefile.in (CONFIG_CLEAN): Delete duplicate definition.
2368
0dea2468
AC
23692004-07-28 Andrew Cagney <cagney@gnu.org>
2370
2371 * PROBLEMS: Mention threads/1650.
2372 * NEWS: Mention the NPTL fix.
2373
b3f42336
AC
23742004-07-28 Andrew Cagney <cagney@gnu.org>
2375
2376 * cli/cli-decode.c (add_setshow_cmd): Delete function.
2377 (add_setshow_cmd_full): Make static.
2378 * command.h (add_setshow_cmd, add_setshow_cmd_full): Delete.
2379 (add_setshow_filename_cmd, add_setshow_string_cmd): Declare.
2380 * cli/cli-decode.c (add_setshow_filename_cmd)
2381 (add_setshow_string_cmd): New functions.
2382 * nto-tdep.c (_initialize_nto_tdep): Update. Fix parameters.
2383 * mips-tdep.c (_initialize_mips_tdep): Update.
2384 * m32r-rom.c (_initialize_m32r_rom): Update. Update copyright.
2385 * cli/cli-logging.c (_initialize_cli_logging): Update.
2386 * complaints.c (_initialize_complaints): Update.
2387 * remote.c (_initialize_remote): Update.
2388
3b64bf98
AC
23892004-07-28 Andrew Cagney <cagney@gnu.org>
2390
2391 * cli/cli-decode.c (add_setshow_zinteger_cmd)
2392 (add_setshow_cmd, add_setshow_auto_boolean_cmd)
2393 (add_setshow_boolean_cmd, add_setshow_cmd_full): Add help_doc and
2394 print parameters. Make string parameters constant.
2395 * command.h: Update. Update copyright.
2396 * remote.c (add_packet_config_cmd, _initialize_remote): Ditto.
2397 * observer.c (_initialize_observer): Ditto.
2398 * frame.c (_initialize_frame): Ditto.
2399 * complaints.c (_initialize_complaints): Ditto.
2400 * maint.c (_initialize_maint_cmds): Ditto.
2401 * target.c (initialize_targets): Ditto.
2402 * cli/cli-logging.c (_initialize_cli_logging): Ditto.
2403 * infcall.c (_initialize_infcall): Ditto.
2404 * arm-tdep.c (_initialize_arm_tdep): Ditto.
2405 * m32r-rom.c (_initialize_m32r_rom): Ditto.
2406 * remote-rdi.c (_initialize_remote_rdi): Ditto.
2407 * d10v-tdep.c (_initialize_d10v_tdep): Ditto.
2408 * mips-tdep.c (_initialize_mips_tdep): Ditto.
2409
e9667a65
AC
24102004-07-28 Andrew Cagney <cagney@gnu.org>
2411
54a5b07d
AC
2412 * gdbtypes.c (lookup_primitive_typename): Delete function.
2413 * gdbtypes.h (lookup_primitive_typename): Delete declaration.
2414 * ada-lex.l: Use language_lookup_primitive_type_by_name.
2415 * gdbtypes.c (lookup_typename): Ditto.
2416 * f-exp.y (yylex): Ditto.
2417 * c-exp.y (yylex): Ditto, eliminate assignment in "if".
2418
e9667a65
AC
2419 * scm-lang.c (c_builtin_types): Delete extern declaration.
2420 (scm_language_defn): Replace
2421 string_char_type and primitive_type_vector with
2422 la_language_arch_info.
2423 * jv-lang.c (java_language_defn): Replace
2424 string_char_type and primitive_type_vector with
2425 la_language_arch_info.
2426 * config/i386/i386sco4.mh (NATDEPFILES): Remove reference to
2427 c_builtin_types in comment.
2428 * c-lang.h (struct language_arch_info): Declare opaque.
2429 (c_language_arch_info): Declare.
2430 (c_builtin_types): Delete declaration.
2431 * c-lang.c (c_language_arch_info): Set string_char_type to
2432 builtin_char, not builtin_true_char. Make global.
2433 (c_builtin_types): Delete array.
2434 (asm_language_defn, minimal_language_defn): Replace
2435 string_char_type and primitive_type_vector with
2436 la_language_arch_info.
2437
685419e2
AC
24382004-07-28 Andrew Cagney <cagney@gnu.org>
2439
2440 * gdbtypes.h (struct builtin_type): Rename true_char to
2441 builtin_true_char.
2442 * gdbtypes.c (gdbtypes_post_init): Update.
2443 * c-lang.c (arch_info): New function.
2444 (enum c_primitive_types): New enum.
2445 (c_language_defn): Instead of string_char_type and
2446 primitive_type_vector set la_language_arch_info.
2447
5a44ea29
AC
24482004-07-28 Andrew Cagney <cagney@gnu.org>
2449
2450 * language.h (struct language_arch_info): Fix typo
2451 s/primative/primitive/.
2452 * gdbtypes.c (lookup_primitive_typename): Ditto.
2453 * language.c (language_lookup_primitive_type_by_name)
2454 (unknown_language_arch_info): Ditto.
2455
f290d38e
AC
24562004-07-27 Andrew Cagney <cagney@gnu.org>
2457
2458 * defs.h (enum language): Add nr_languages.
2459 * language.h (struct language_arch_info): Define.
2460 (struct language_defn): Add la_language_arch_info.
2461 (language_lookup_primative_type_by_name): Declare.
2462 (language_string_char_type): Declare.
2463 * language.c (_initialize_language, language_gdbarch_post_init)
2464 (struct language_gdbarch, language_gdbarch_data): Implement
2465 per-architecture language information.
2466 (unknown_language_arch_info, language_string_char_type)
2467 (language_lookup_primative_type_by_name): New functions.
2468 (unknown_language_defn, auto_language_defn)
2469 (local_language_defn): Set la_language_arch_info to
2470 unknown_language_arch_info.
2471 (unknown_builtin_types): Delete.
2472 * gdbtypes.c (lookup_primitive_typename): Use
2473 language_lookup_primative_type_by_name.
2474 (create_string_type): Use language_string_char_type.
2475 * values.c (value_from_string): Use language_string_char_type.
2476 * scm-lang.c (scm_language_defn): Add NULL la_language_arch_info.
2477 * p-lang.c (pascal_language_defn): Ditto.
2478 * m2-lang.c (m2_language_defn): Ditto.
2479 * jv-lang.c (java_language_defn): Ditto.
2480 * objc-lang.c (objc_language_defn): Ditto.
2481 * f-lang.c (f_language_defn): Ditto.
2482 * c-lang.c (c_language_defn, cplus_language_defn)
2483 (asm_language_defn, minimal_language_defn): Ditto.
2484
000177f0
AC
24852004-07-27 Andrew Cagney <cagney@gnu.org>
2486
2487 * gdbtypes.h (struct builtin_type): Declare.
2488 (builtin_type): Declare.
2489 * d10v-tdep.c (d10v_register_type): Use builtin_type.
2490 * gdbtypes.c (_initialize_gdbtypes): Register gdbtypes_post_init.
2491 (gdbtypes_post_init): New function.
2492 (builtin_type): New function.
2493
e22f895c
KI
24942004-07-27 Kei Sakamoto <sakamoto.kei@renesas.com>
2495
2496 * remote-m32r-sdi.c: Fix breakpoint bug.
2497 (send_cmd, send_one_arg_cmd, send_two_arg_cmd, send_three_arg_cmd,
2498 recv_char_data, recv_long_data): New functions to replace communication
2499 sequences.
2500
536517dd
MC
25012004-07-26 Michael Chastain <mec.gnu@mindspring.com>
2502
2503 Document PR threads/1650.
2504 * PROBLEMS (Threads): Document problem with many threads
2505
a0a44d18
AC
25062004-07-26 Andrew Cagney <cagney@gnu.org>
2507
2508 * gdb-mi.el: Move from here ...
2509 * mi/gdb-mi.el: ... to here.
2510
7ac4ac06
AC
25112004-07-26 Andrew Cagney <cagney@gnu.org>
2512
2513 Problem reported by Ashley Pittman <ashley@quadrics.com>.
2514 * main.c (captured_main): When in batch mode always detach.
2515
a1b461bf
AC
25162004-07-26 Andrew Cagney <cagney@gnu.org>
2517
2518 * MAINTAINERS: Mark the xstormy16, sh64, ns32k, mn10300, mcore,
2519 and h8300 as broken.
2520 * NEWS: END-OF-LIFE frame compatibility module.
2521 * PROBLEMS: For "Stack backtraces", remove powerpc, hppa and mips
2522 specific comments.
2523
cb1a6d5f
AC
25242004-07-26 Andrew Cagney <cagney@gnu.org>
2525
2526 * cli/cli-decode.c (deprecated_add_show_from_set): Deprecate.
2527 * xcoffsolib.c (_initialize_xcoffsolib): Update.
2528 * wince.c (_initialize_wince): Update.
2529 * win32-nat.c (_initialize_win32_nat): Update.
2530 * varobj.c (_initialize_varobj): Update.
2531 * valops.c (_initialize_valops): Update.
2532 * utils.c (initialize_utils, initialize_utils): Update.
2533 * tui/tui-win.c (_initialize_tui_win): Update.
2534 * top.c (init_main): Update.
2535 * symfile.c (_initialize_symfile): Update.
2536 * source.c (_initialize_source): Update.
2537 * somsolib.c (_initialize_som_solib): Update.
2538 * solib.c (_initialize_solib): Update.
2539 * solib-frv.c (_initialize_frv_solib): Update.
2540 * serial.c (_initialize_serial): Update.
2541 * ser-go32.c (_initialize_ser_dos, _initialize_ser_dos): Update.
2542 * remote.c (_initialize_remote, _initialize_remote): Update.
2543 * remote-vx.c (_initialize_vx): Update.
2544 * remote-utils.c (_initialize_sr_support): Update.
2545 * remote-sds.c (_initialize_remote_sds): Update.
2546 * remote-mips.c (_initialize_remote_mips): Update.
2547 * remote-e7000.c (_initialize_remote_e7000): Update.
2548 * proc-api.c (_initialize_proc_api): Update.
2549 * printcmd.c: Update.
2550 * parse.c (_initialize_parse): Update.
2551 * pa64solib.c (_initialize_pa64_solib): Update.
2552 * p-valprint.c (_initialize_pascal_valprint): Update.
2553 * monitor.c (_initialize_remote_monitors): Update.
2554 * mips-tdep.c (_initialize_mips_tdep): Update.
2555 * mcore-tdep.c (_initialize_mcore_tdep): Update.
2556 * maint.c (_initialize_maint_cmds): Update.
2557 * lin-lwp.c (_initialize_lin_lwp): Update.
2558 * language.c (_initialize_language): Update.
2559 * kod.c (_initialize_kod): Update.
2560 * infrun.c (set_schedlock_func, _initialize_infrun): Update.
2561 * i386-tdep.c (_initialize_i386_tdep): Update.
2562 * gdbtypes.c (build_gdbtypes, _initialize_gdbtypes): Update.
2563 * gdbarch.sh: Update.
2564 * gdbarch.c: Re-generate.
2565 * gdb-events.sh: Update.
2566 * gdb-events.c: Re-generate.
2567 * frame.c (_initialize_frame): Update.
2568 * exec.c: Update.
2569 * demangle.c (_initialize_demangler): Update.
2570 * dcache.c (_initialize_dcache): Update.
2571 * cris-tdep.c (_initialize_cris_tdep, cris_version_update): Update.
2572 * cp-valprint.c (_initialize_cp_valprint): Update.
2573 * corefile.c (_initialize_core): Update.
2574 * command.h: Update.
2575 * cli/cli-decode.h: Update.
2576 * cli/cli-cmds.c (init_cli_cmds): Update.
2577 * charset.c (_initialize_charset): Update.
2578 * breakpoint.c (_initialize_breakpoint): Update.
2579 * arm-tdep.c (_initialize_arm_tdep_initialize_arm_tdep): Update.
2580 * alpha-tdep.c (_initialize_alpha_tdep): Update.
2581 * aix-thread.c (_initialize_aix_thread): Update.
2582
b4632131
MK
25832004-07-24 Mark Kettenis <kettenis@gnu.org>
2584
2585 Partial fix for PR backtrace/1718.
2586 * i386-tdep.c (i386_analyze_frame_setup): Handle more instructions
2587 that GCC migrates into the prolugue. Don't handle any
2588 instructions that clobber %ebx.
2589
822c9732
AC
25902004-07-23 Andrew Cagney <cagney@gnu.org>
2591
2592 Use regcache_raw_collect instead of regcache_collect.
2593 * regcache.h (regcache_collect): Delete declaration.
2594 * regcache.c (regcache_colect): Delete function.
2595 * win32-nat.c (do_child_store_inferior_registers): Update.
2596 * sol-thread.c (sol_thread_store_registers): Update.
2597 * shnbsd-tdep.c (shnbsd_fill_reg): Update.
2598 * rs6000-nat.c (store_register): Update.
2599 * remote.c (store_register_using_P, remote_store_registers): Update.
2600 * ppcnbsd-tdep.c (ppcnbsd_fill_reg): Update.
2601 * ppc-linux-nat.c (store_altivec_register, store_spe_register)
2602 (fill_vrregset, store_spe_registers, fill_gregset)
2603 (fill_gregset): Update.
2604 * nto-procfs.c (procfs_store_registers): Update.
2605 * mipsnbsd-tdep.c (mipsnbsd_fill_reg): Update.
2606 * mips-linux-tdep.c (fill_gregset, mips64_fill_gregset): Update.
2607 * m68klinux-nat.c (store_register, fill_gregset): Update.
2608 * m68k-tdep.c (fill_gregset): Update.
2609 * infptrace.c (store_register): Update.
2610 * i386-nto-tdep.c (i386nto_regset_fill): Update.
2611 * i386-linux-nat.c (store_register, fill_gregset): Update.
2612 * hppa-linux-nat.c (fill_gregset): Update.
2613 * go32-nat.c (store_register): Update.
2614 * armnbsd-nat.c (store_register, store_regs, store_fp_register)
2615 (store_fp_regs): Update.
2616 * arm-linux-nat.c (store_nwfpe_single, store_nwfpe_double)
2617 (store_nwfpe_extended, store_fpregister, store_fpregs)
2618 (store_register, store_regs, fill_gregset, fill_fpregset): Update.
2619 * alpha-tdep.c (alpha_fill_int_regs, alpha_fill_fp_regs): Update.
2620 * aix-thread.c (fill_gprs64, fill_fprs, fill_sprs64, fill_sprs32)
2621 (store_regs_user_thread, store_regs_kernel_thread): Update.
2622
32b05c07
MK
26232004-07-24 Mark Kettenis <kettenis@gnu.org>
2624
2625 * dwarf2-frame.c (struct dwarf2_cie): Delete `addr_size' member.
2626 (decode_frame_entry_1): Use DW_EH_PE_absptr as default for CIE
2627 encoding.
2628 (dwarf2_build_frame_info): Adjust for removal of `addr_size'
2629 member of `struct comp_unit'.
2630
8567c30f
AC
26312004-07-23 Andrew Cagney <cagney@gnu.org>
2632
2633 * infrun.c (handle_inferior_event): Separate the STEP_OVER_ALL and
2634 DEPRECATED_IGNORE_HELPER_CALL cases, only #ifdef the latter.
2635
f6da8dd8
MH
26362004-07-23 Martin Hunt <hunt@redhat.com>
2637 Kevin Buettner <kevinb@redhat.com>
2638
2639 * dwarf2-frame.c (execute_cfa_program): Fix typo in which the
2640 alignment was being added to the offset instead of multiplied.
2641
bd921882
MK
26422004-07-23 Mark Kettenis <kettenis@gnu.org>
2643
24f033e8
MK
2644 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Adjust for
2645 changed signal trampoline in OpenBSD 3.5-current.
2646
90f3cecd
MK
2647 * sparc64nbsd-nat.c: Include "regcache.h", <sys/types.h>,
2648 <machine/pcb.h> and "bsd-kvm.h".
2649 (sparc64nbsd_supply_pcb): New function.
2650 (_initialize_sparc64nbsd_nat): Renamed from
2651 _initialize_sparcnbsd_nat. Enable libkvm interface.
2652 * Makefile.in (sparc64nbsd-nat.o): Update dependencies.
2653 * config/sparc/nbsd64.mh (NATDEPFILES): Add bsd-kvm.o
2654 (LOADLIBES): New variable.
2655
a4954a62
MK
2656 * config/sparc/obsd64.mt (TDEPFILES): Add sparcobsd-tdep.o.
2657
bd921882
MK
2658 * sparcnbsd-nat.c (sparc32nbsd_supply_pcb): Fix typo in comment.
2659
23a6d369
AC
26602004-07-21 Andrew Cagney <cagney@gnu.org>
2661
2662 Use regcache_raw_supply instead of supply_register.
2663 * regcache.h (supply_register): Delete declaration.
2664 * regcache.c (supply_register): Delete function.
2665 * wince.c (do_child_fetch_inferior_registers): Update.
2666 * win32-nat.c (do_child_fetch_inferior_registers)
2667 (fetch_elf_core_registers): Update.
2668 * v850ice.c (v850ice_fetch_registers): Update.
2669 * thread-db.c (thread_db_store_registers): Update.
2670 * sol-thread.c (sol_thread_store_registers): Update.
2671 * shnbsd-tdep.c (shnbsd_supply_reg): Update.
2672 * rs6000-nat.c (fetch_register): Update.
2673 * rom68k-rom.c (rom68k_supply_one_register): Update.
2674 * remote.c (remote_wait, remote_async_wait): Update.
2675 * remote-st.c (get_hex_regs): Update.
2676 * remote-sim.c (gdbsim_fetch_register): Update.
2677 * remote-sds.c (sds_fetch_registers): Update.
2678 * remote-rdp.c (remote_rdp_fetch_register): Update.
2679 * remote-rdi.c (arm_rdi_fetch_registers): Update.
2680 * remote-mips.c (mips_wait, mips_fetch_registers): Update.
2681 * remote-m32r-sdi.c (m32r_fetch_register): Update.
2682 * remote-hms.c (init_hms_cmds): Update.
2683 * remote-est.c (init_est_cmds): Update.
2684 * remote-e7000.c (get_hex_regs, fetch_regs_from_dump)
2685 (e7000_fetch_registers, sub2_from_pc, e7000_wait): Update.
2686 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_supply_fpreg): Update.
2687 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register)
2688 (fetch_register, supply_vrregset, supply_vrregset)
2689 (fetch_spe_registers): Update.
2690 * ppc-bdm.c (bdm_ppc_fetch_registers): Update.
2691 * monitor.c (monitor_supply_register): Update.
2692 * mipsv4-nat.c (supply_gregset, supply_fpregset): Update.
2693 * mipsnbsd-tdep.c (mipsnbsd_supply_reg)
2694 (mipsnbsd_supply_fpreg): Update.
2695 * mips-nat.c (fetch_inferior_registers)
2696 (fetch_core_registers): Update.
2697 * mips-linux-tdep.c (supply_32bit_reg, supply_gregset)
2698 (supply_fpregset, mips64_supply_gregset)
2699 (mips64_supply_fpregset): Update.
2700 * m68klinux-nat.c (fetch_register, supply_gregset)
2701 (supply_fpregset): Update.
2702 * m68k-tdep.c (supply_gregset, supply_fpregset): Update.
2703 * m32r-rom.c (init_m32r_cmds, init_mon2000_cmds): Update.
2704 * lynx-nat.c (fetch_inferior_registers, fetch_core_registers): Update.
2705 * irix5-nat.c (supply_gregset, supply_fpregset): Update.
2706 * infptrace.c (fetch_register): Update.
2707 * ia64-linux-nat.c (supply_gregset, supply_fpregset): Update.
2708 * ia64-aix-nat.c (supply_gregset, supply_fpregset): Update.
2709 * i386gnu-nat.c (fetch_fpregs, supply_gregset)
2710 (gnu_fetch_registers, gnu_store_registers): Update.
2711 * i386-nto-tdep.c (i386nto_supply_gregset): Update.
2712 * i386-linux-nat.c (fetch_register, supply_gregset)
2713 (dummy_sse_values): Update.
2714 * hpux-thread.c (hpux_thread_fetch_registers): Update.
2715 * hppah-nat.c (fetch_register): Update.
2716 * hppa-linux-nat.c (fetch_register, supply_gregset)
2717 (supply_fpregset): Update.
2718 * go32-nat.c (fetch_register): Update.
2719 * dve3900-rom.c (fetch_bitmapped_register)
2720 (_initialize_r3900_rom): Update.
2721 * cris-tdep.c (supply_gregset): Update.
2722 * abug-rom.c (init_abug_cmds): Update.
2723 * core-aout.c (fetch_core_registers): Update.
2724 * armnbsd-nat.c (supply_gregset, supply_fparegset)
2725 (fetch_register, fetch_fp_register): Update.
2726 * arm-linux-nat.c (fetch_nwfpe_single, fetch_nwfpe_none)
2727 (fetch_nwfpe_extended, fetch_fpregister, fetch_fpregs)
2728 (fetch_register, fetch_regs, supply_gregset, supply_fpregset): Update.
2729 * alphanbsd-tdep.c (fetch_core_registers): Update.
2730 * alpha-tdep.c (alpha_supply_int_regs, alpha_supply_fp_regs): Update.
2731 * alpha-nat.c (fetch_osf_core_registers)
2732 (fetch_osf_core_registers, fetch_osf_core_registers): Update.
2733 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs)
2734 (supply_sprs64, supply_sprs32, fetch_regs_kernel_thread): Update.
2735
73cc75f3
AC
27362004-07-21 Andrew Cagney <cagney@gnu.org>
2737
2738 * PROBLEMS: Mention breakpoints/1702.
2739 * NEWS: For signal trampolines, cite s390 GNU/Linux as a system
2740 that is known to work.
2741
a53c66de
AC
27422004-07-21 Andrew Cagney <cagney@gnu.org>
2743
2744 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Deprecate.
2745 * mips-tdep.c (mips_dump_tdep, mips_ignore_helper): Update.
2746 * infrun.c (DEPRECATED_IGNORE_HELPER_CALL): Delete macro.
2747 (handle_inferior_event): Wrap call to deprecated
2748 IGNORE_HELPER_CALL in #ifdef.
2749 * config/mips/tm-nbsd.h: Update.
2750
708ff411
JB
27512004-07-20 Jim Blandy <jimb@redhat.com>
2752
412b3060
JB
2753 * rs6000-tdep.c (rs6000_gdbarch_init): The register set used for
2754 bfd_mach_ppc has no segment registers.
2755
13ac140c
JB
2756 Include PowerPC SPR numbers for special-purpose registers.
2757 * rs6000-tdep.c (struct reg): Add new member, 'spr_num'.
2758 (R, R4, R8, R16, F, P, R32, R64, R0): Include value for
2759 new member in initializer.
2760 (S, S4, SN4, S64): New macros for defining special-purpose
2761 registers.
2762 (PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS, PPC_OEA_SPRS, registers_power,
2763 registers_403, registers_403GC, registers_505, registers_860,
2764 registers_601, registers_602, registers_603, registers_604,
2765 registers_750, registers_e500): Use them.
2766
708ff411
JB
2767 * rs6000-tdep.c (rs6000_gdbarch_init): Delete variable 'power';
2768 replace references with expression used to initialize variable.
2769
1f602b35
AC
27702004-07-20 Andrew Cagney <cagney@gnu.org>
2771
2772 * breakpoint.c (deprecated_read_memory_nobpt): Rename
2773 read_memory_nobpt.
2774 * sparc-linux-tdep.c (sparc_linux_sigtramp_start): Update.
2775 * s390-tdep.c (s390_readinstruction, s390_in_function_epilogue_p)
2776 (s390_sigtramp_frame_sniffer): Update.
2777 * mn10300-tdep.c (mn10300_analyze_prologue): Update.
2778 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Update.
2779 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
2780 (mips32_fetch_instruction): Update.
2781 * mcore-tdep.c (get_insn): Update.
2782 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Update.
2783 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Update.
2784 * i386ly-tdep.c (i386lynx_saved_pc_after_call): Update.
2785 * i386-linux-tdep.c (i386_linux_sigtramp_start)
2786 (i386_linux_rt_sigtramp_start): Update.
2787 * i386-linux-nat.c (child_resume): Update.
2788 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Update.
2789 * hppa-linux-tdep.c (insns_match_pattern): Update.
2790 * gdbcore.h: Update.
2791 * frv-tdep.c (frv_gdbarch_adjust_breakpoint_address): Update.
2792 * frame.c (safe_frame_unwind_memory): Update.
2793 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Update.
2794 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Update.
2795 * alpha-tdep.c (alpha_read_insn): Update.
2796
2cd8546d
AC
27972004-07-20 Andrew Cagney <cagney@gnu.org>
2798
2799 * tramp-frame.h (struct tramp_frame): Change "insn" to a struct
2800 containing both bytes and mask. Add "frame_type".
2801 * tramp-frame.c (tramp_frame_start): Update.
2802 (tramp_frame_prepend_unwinder): Update.
2803 * mips-linux-tdep.c (mips_linux_o32_sigframe)
2804 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
2805 (mips_linux_n64_rt_sigframe): Update. Make "static const".
2806 * ppcnbsd-tdep.c (tramp_frame ppcnbsd_sigtramp): Update.
2807
f928dd62
EZ
28082004-07-19 Eli Zaretskii <eliz@gnu.org>
2809
2810 * config/djgpp/fnchange.lst: Add remapping for bfd/elf32-cr*.c,
2811 bfd/elf32-sh-symbian.c, bfd/elf32-sh64-com.c,
2812 sim/testsuite/sim/mips/hilo-hazard-[123].s, and
2813 sim/testsuite/sim/mips/fpu64-ps-sb1.s.
2814
d5c560f7
AC
28152004-07-17 Andrew Cagney <cagney@gnu.org>
2816
860660cb
AC
2817 * NEWS, PROBLEMS: Update for 6.2.
2818
8c266f54
AC
2819 * README: Update to 6.2.
2820
a552edd9
AC
2821 * utils.c (xvasprintf): Call xstrvprintf.
2822
c4a172b5
AC
2823 * parse.c: Update copyright.
2824 (null_post_parser): Eliminate ARGSUSED.
2825
da745b36
AC
2826 * ppc-linux-nat.c (store_spe_registers): Eliminate K&R C.
2827 * tui/tui-win.c (tui_get_cmd_list): Ditto.
2828 * symfile-mem.c (_initialize_symfile_mem): Ditto.
2829
9cbc6ef0
AC
2830 * ppc-linux-tdep.c (ppc_linux_init_abi): Add [sic] to Linux.
2831 * ppc-linux-nat.c: Use "Linux kernel".
2832 * hppa-linux-tdep.c: Use GNU/Linux.
2833 * hppa-linux-nat.c: Use GNU/Linux.
2834 * dwarfread.c: Add [sic] to use of Linux.
2835
1b89295f
AC
2836 * hppa-linux-nat.c: Do not include <string.h>.
2837 (supply_fpregset): Remove "register" attribute.
2838
d5c560f7
AC
2839 * solib-frv.c (fetch_loadmap): Use xfree, not free.
2840
7ddd7709
MK
28412004-07-17 Mark Kettenis <kettenis@gnu.org>
2842
b1d19a62
MK
2843 * configure.in: Define _MSE_INT_H on Solaris 9 too.
2844 * configure, config.in: Regenerated.
2845
7ddd7709
MK
2846 * vaxbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
2847 "bsd-kvm.h".
2848 (vaxbsd_supply_pcb): New function.
2849 (_initialize_vaxbsd_nat): New prototype and function.
2850 * config/vax/nbsdaout.mh (NATDEPFILES): Add bsd-kvm.o, solib.o and
2851 solib-sunos.o.
2852 (LOADLIBES): New variable.
2853 * config/vax/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
2854 (LOADLIBES): New variable.
2855 * config/vax/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
2856 (LOADLIBES): New variable.
2857 * Makefile.in (vaxbsd-nat.o): Update dependencies.
2858
2c07db7a
AC
28592004-07-16 Andrew Cagney <cagney@gnu.org>
2860
2861 * defs.h (event_loop_p): Replace variable declaration with macro,
2862 always 1.
2863 * main.c (captured_main): Delete options "-async" and "-noasync".
2864 (event_loop_p): Delete variable.
2865 * NEWS: Mention that "-async" and "-noasync" were removed.
2866
717eb1cf
AC
28672004-07-16 Andrew Cagney <cagney@gnu.org>
2868
2869 * remote-m32r-sdi.c: Re-indent.
2870
c101bc14
JB
28712004-07-16 Jim Blandy <jimb@redhat.com>
2872
5109a438
JB
2873 * ppc-tdep.h (ppc_spr_asr): Add missing OEA SPR.
2874 (ppc_spr_mi_dbcam, ppc_spr_mi_dbram0, ppc_spr_mi_dbram1)
2875 (ppc_spr_md_cam, ppc_spr_md_ram0, ppc_spr_md_ram1): Add
2876 missing MPC823 SPRs.
2877 (ppc_spr_m_twb): Renamed from ppc_spr_md_twb; the old name was
2878 incorrect. (This was corrected in GDB's register name tables on
2879 2004-07-14.)
2880
c101bc14
JB
2881 * rs6000-tdep.c (registers_602): Correct register name: "esassr"
2882 should be "esasrr" ("ESA Save and Restore Register").
2883
7ce450bd
AC
28842004-07-16 Andrew Cagney <cagney@gnu.org>
2885
2886 * infrun.c (insert_step_resume_breakpoint): Delete gdb_assert
2887 calls, no longer applicable. Update comments and rename parameter
2888 "step_frame" to "return_frame".
2889
ca73dd9d
AC
28902004-07-16 Andrew Cagney <cagney@gnu.org>
2891
2892 * frame.c (fprint_field): New function.
2893 (fprint_frame_id): Use fprint_field.
2894
31941f6d
JB
28952004-07-15 Joel Brobecker <brobecker@gnat.com>
2896
2897 * ada-lang.c (ada_language_defn): Remove commented out code.
2898
f86a7158
JB
28992004-07-15 Jim Blandy <jimb@redhat.com>
2900
2901 * ppc-tdep.h (struct gdbarch_tdep): New member: ppc_sr0_regnum.
2902 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it.
2903
c24791ec
JB
29042004-07-14 Jim Blandy <jimb@redhat.com>
2905
29bb1356
JB
2906 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): Delete; unused.
2907
cc98b5cc
JB
2908 * ppc-tdep.h (ppc_num_vrs): New enum constant.
2909
8f088af7
JB
2910 * ppc-tdep.h (ppc_num_srs): New enum constant.
2911
0ea0ec5f
JB
2912 * ppc-tdep.h (ppc_spr_mq, ppc_spr_xer, ppc_spr_rtcu, ppc_spr_rtcl)
2913 (ppc_spr_lr, ppc_spr_ctr, ppc_spr_cnt, ppc_spr_dsisr, ppc_spr_dar)
2914 (ppc_spr_dec, ppc_spr_sdr1, ppc_spr_srr0, ppc_spr_srr1)
2915 (ppc_spr_eie, ppc_spr_eid, ppc_spr_nri, ppc_spr_sp, ppc_spr_cmpa)
2916 (ppc_spr_cmpb, ppc_spr_cmpc, ppc_spr_cmpd, ppc_spr_icr)
2917 (ppc_spr_der, ppc_spr_counta, ppc_spr_countb, ppc_spr_cmpe)
2918 (ppc_spr_cmpf, ppc_spr_cmpg, ppc_spr_cmph, ppc_spr_lctrl1)
2919 (ppc_spr_lctrl2, ppc_spr_ictrl, ppc_spr_bar, ppc_spr_vrsave)
2920 (ppc_spr_sprg0, ppc_spr_sprg1, ppc_spr_sprg2, ppc_spr_sprg3)
2921 (ppc_spr_ear, ppc_spr_tbl, ppc_spr_tbu, ppc_spr_pvr)
2922 (ppc_spr_spefscr, ppc_spr_ibat0u, ppc_spr_ibat0l, ppc_spr_ibat1u)
2923 (ppc_spr_ibat1l, ppc_spr_ibat2u, ppc_spr_ibat2l, ppc_spr_ibat3u)
2924 (ppc_spr_ibat3l, ppc_spr_dbat0u, ppc_spr_dbat0l, ppc_spr_dbat1u)
2925 (ppc_spr_dbat1l, ppc_spr_dbat2u, ppc_spr_dbat2l, ppc_spr_dbat3u)
2926 (ppc_spr_dbat3l, ppc_spr_ic_cst, ppc_spr_ic_adr, ppc_spr_ic_dat)
2927 (ppc_spr_dc_cst, ppc_spr_dc_adr, ppc_spr_dc_dat, ppc_spr_dpdr)
2928 (ppc_spr_dpir, ppc_spr_immr, ppc_spr_mi_ctr, ppc_spr_mi_ap)
2929 (ppc_spr_mi_epn, ppc_spr_mi_twc, ppc_spr_mi_rpn, ppc_spr_mi_cam)
2930 (ppc_spr_mi_ram0, ppc_spr_mi_ram1, ppc_spr_md_ctr, ppc_spr_m_casid)
2931 (ppc_spr_md_ap, ppc_spr_md_epn, ppc_spr_md_twb, ppc_spr_md_twc)
2932 (ppc_spr_md_rpn, ppc_spr_m_tw, ppc_spr_md_dbcam, ppc_spr_md_dbram0)
2933 (ppc_spr_md_dbram1, ppc_spr_ummcr0, ppc_spr_upmc1, ppc_spr_upmc2)
2934 (ppc_spr_usia, ppc_spr_ummcr1, ppc_spr_upmc3, ppc_spr_upmc4)
2935 (ppc_spr_zpr, ppc_spr_pid, ppc_spr_mmcr0, ppc_spr_pmc1)
2936 (ppc_spr_sgr, ppc_spr_pmc2, ppc_spr_dcwr, ppc_spr_sia)
2937 (ppc_spr_mmcr1, ppc_spr_pmc3, ppc_spr_pmc4, ppc_spr_sda)
2938 (ppc_spr_tbhu, ppc_spr_tblu, ppc_spr_dmiss, ppc_spr_dcmp)
2939 (ppc_spr_hash1, ppc_spr_hash2, ppc_spr_icdbdr, ppc_spr_imiss)
2940 (ppc_spr_esr, ppc_spr_icmp, ppc_spr_dear, ppc_spr_rpa)
2941 (ppc_spr_evpr, ppc_spr_cdbcr, ppc_spr_tsr, ppc_spr_602_tcr)
2942 (ppc_spr_403_tcr, ppc_spr_ibr, ppc_spr_pit, ppc_spr_esasrr)
2943 (ppc_spr_tbhi, ppc_spr_tblo, ppc_spr_srr2, ppc_spr_sebr)
2944 (ppc_spr_srr3, ppc_spr_ser, ppc_spr_hid0, ppc_spr_dbsr)
2945 (ppc_spr_hid1, ppc_spr_iabr, ppc_spr_dbcr, ppc_spr_iac1)
2946 (ppc_spr_dabr, ppc_spr_iac2, ppc_spr_dac1, ppc_spr_dac2)
2947 (ppc_spr_l2cr, ppc_spr_dccr, ppc_spr_ictc, ppc_spr_iccr)
2948 (ppc_spr_thrm1, ppc_spr_pbl1, ppc_spr_thrm2, ppc_spr_pbu1)
2949 (ppc_spr_thrm3, ppc_spr_pbl2, ppc_spr_fpecr, ppc_spr_lt)
2950 (ppc_spr_pir, ppc_spr_pbu2): New enum constants for PowerPC
2951 special-purpose register numbers.
2952
c24791ec
JB
2953 * rs6000-tdep.c (registers_860): Correct register name. (No PPC
2954 manual mentions 'md_twb', but many mention 'm_twb', and at that
2955 point in the register list.)
2956
d833db3b
AC
29572004-07-14 Andrew Cagney <cagney@gnu.org>
2958
2959 * utils.c (internal_warning_problem): Fix typo, "internal-warning"
2960 instead of "internal-error".
2961
080228b2
JB
29622004-07-10 Joel Brobecker <brobecker@gnat.com>
2963
2964 * hppa-hpux-tdep.c: Fix a compilation failure due to a comment
2965 that was inserted inside a comment.
2966
c268433a
RC
29672004-07-10 Randolph Chung <tausq@debian.org>
2968
2969 * hppa-hpux-tdep.c (hppa_hpux_som_find_global_pointer): New
2970 function.
2971 (hppa_hpux_push_dummy_code): New function.
2972 (hppa_hpux_init_abi): Set push_dummy_code and call_dummy_location.
2973 Set find_global_pointer method.
2974
71009278
MK
29752004-07-10 Mark Kettenis <kettenis@gnu.org>
2976
2977 * NEWS: Mention BSD libkvm interface.
2978
b2fa5097
MS
29792004-07-10 Michael Snyder <msnyder@redhat.com>
2980
2981 * symfile.c (generic_load): Comment typo.
2982 * stack.c (get_selected_block): Ditto.
2983 * regcache.c (regcache_cooked_read): Ditto.
2984 * monitor.c (monitor_debug): Ditto.
2985 * mips-tdep.c (mips_read_pc): Ditto.
2986 * i386-linux-nat.c (ps_get_thread_area): Ditto.
2987 * gdb_mbuild.sh: Ditto.
2988 * gdbarch.sh: Ditto.
2989 * gdbarch.h: Ditto.
2990
c3e5cd34
PH
29912004-07-09 Paul N. Hilfinger <Hilfinger@gnat.com>
2992
8a2225b2
PH
2993 * ada-tasks.c: Remove file.
2994
c3e5cd34
PH
2995 Remove ARI problems:
2996
2997 * ada-exp.y (write_var_from_sym): Reformat to put operator at
2998 beginning of line.
2999
3000 * ada-lang.c (MAX_OF_SIZE): Rename max_of_size.
3001 Add comment.
3002 Add comment concerning MAX_OF_TYPE and MIN_OF_TYPE.
3003 (MIN_OF_SIZE): Rename min_of_size. Add comment.
3004 (UMAX_OF_SIZE): Renmae umax_of_size. Add comment.
3005 (UMIN_OF_SIZE): Remove.
3006 (max_of_type): New function to replace orphan macro in gdbtypes.h
3007 (min_of_type): Ditto.
3008 (discrete_type_high_bound): Use max_of_type.
3009 (discrete_type_low_bound): Use min_of_type.
3010 (possible_user_operator_p): Move operator to beginning of line.
3011 (ada_is_variant_part): Ditto.
3012 (ensure_lval): Rewrite to avoid deprecated operations.
3013 (ada_finish_decode_line_1): Use gdbarch_convert_from_func_ptr_addr
3014 rather than adding DEPRECATED_FUNCTION_START_OFFSET.
3015 (ada_enum_name): Remove assignments in 'if' statements.
3016 (build_ada_types): Add gdbarch parameter.
3017 (_initialize_ada_language): Replace deprecated_register_gdbarch_swap
3018 with gdbarch_data_register_post_init.
3019 Use add_setshow_uinteger_cmd rather than add_set_cmd and
3020 add_show_from_set.
3021
3022 * ada-valprint.c (inspect_it): Remove declaration.
3023 (repeat_count_threshold): Remove declaration.
3024 (ada_print_floating): Remove assignments in 'if' statements.
3025 (print_str): Move operator to beginning of line.
3026
61ce229a
JB
30272004-07-08 Jim Blandy <jimb@redhat.com>
3028
3029 * rs6000-tdep.c (registers_powerpc_nofp): Unused; deleted.
3030
09bcec80
BR
30312004-07-08 Bob Rossi <bob@brasko.net>
3032
3033 * symtab.c (lookup_symtab): check return value of symtab_to_fullname
3034
31c27f77
JJ
30352004-07-06 Jeff Johnston <jjohnstn@redhat.com>
3036
3037 * language.h (struct_language_defn): Add new function pointer:
3038 la_class_name_from_physname. Also add new prototype for
3039 language_class_name_from_physname.
3040 * language.c (language_class_name_from_physname): New function.
3041 (unk_lang_class_name): Ditto.
3042 (unknown_language_defn, auto_language_defn): Change
3043 to add unk_lang_class_name function pointer for
3044 la_class_name_from_physname.
3045 (local_language_defn): Ditto.
3046 * dwarf2read.c (guess_structure_name): Change to call
3047 language_class_name_from_physname.
3048 (determine_class_name): Ditto.
3049 * cp-support.c (class_name_from_physname): Renamed.
3050 (cp_class_name_from_physname): New name of function.
3051 * cp-support.h: Ditto.
3052 * c-lang.c (c_language_defn): Change to add NULL
3053 for class_name_from_physname function pointer.
3054 (cplus_language_defn): Change to add cp_class_name_from_physname.
3055 * jv-lang.c (java_class_name_physname): New function.
3056 (java_find_last_component): New static routine.
3057 (java_language_defn): Add java_class_name_from_physname pointer.
3058 * ada-lang.c (ada_language_defn): Change to add NULL
3059 for class_name_from_physname function pointer.
3060 * f-lang.c (f_language_defn): Ditto.
3061 * m2-lang.c (m2_language_defn): Ditto.
3062 * objc-lang.c (objc_language_defn): Ditto.
3063 * p-lang.c (pascal_language_defn): Ditto.
3064 * scm-lang.c (scm_language_defn): Ditto.
3065
ee28ca0f
AC
30662004-07-06 Andrew Cagney <cagney@gnu.org>
3067
3068 Patch from Bart Robinson.
3069 * corelow.c (core_open): Add variable "flags", or in O_LARGEFILE.
3070 (O_LARGEFILE): Define to 0, if not defined.
3071
fdb1bf9d
MK
30722004-07-03 Mark Kettenis <kettenis@gnu.org>
3073
cb162ff6
MK
3074 * m68kbsd-nat.c: Include "gdbcore.h", <sys/types.h>,
3075 <machine/pcb.h> and "bsd-kvm.h".
3076 (PCB_REGS_FP, PCB_REGS_SP): Define if not already defined.
3077 (m68kbsd_supply_pcb): New function.
3078 (_initialize_m68kbsd_nat): New prototype and function.
3079 * Makefile.in (m68kbsd-nat.o): Update dependencies.
3080 * config/m68k/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
3081 (LOADLIBES): New variable.
3082 * config/m68k/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
3083 (LOADLIBES): New variable.
3084
fdb1bf9d
MK
3085 * bsd-kvm.c (bsd_kvm_cmdlist): Remove unecessary initialization.
3086
963c4174
MK
30872004-07-03 Mark Kettenis <kettenis@gnu.org>
3088
3089 * bsd-kvm.c: Include "cli/cli-cmds.h", "command.h", "value.h" and
3090 <sys/proc.h>.
3091 (bsd_kvm_cmdlist): New variable.
3092 (bsd_kvm_cmd, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): New functions.
3093 (bsd_kvm_add_target): Register "kvm" command prefix, "kvm pcb"
3094 command and "kvm proc" command.
3095 * Makefile.in (bsd-kvm.o): Update dependencies.
3096
533f1d8f
MK
30972004-07-02 Mark Kettenis <kettenis@gnu.org>
3098
3099 * osabi.c: Update copyright year.
3100 (generic_elf_osabi_sniffer): Tweak comment. Look for OS-specific
3101 notes if EI_OSABI is set to ELFOSABI_HPUX.
3102
6780dcde
MS
31032004-07-01 Michael Snyder <msnyder@redhat.com>
3104
3105 * win32-nat.c (core_dll_symbols_add): Re-indent a small section
3106 that seems to have gotten whacked out of line.
3107
67bebe79
MK
31082004-07-01 Mark Kettenis <kettenis@gnu.org>
3109
3110 * dbxread.c (process_one_symbol) [PCC_SOL_BROKEN]: Remove dead
3111 code.
3112
0b5d8877
PH
31132004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
3114
3115 * ada-lang.c (decode_packed_array): Minor change to comment.
3116 (ada_value_slice_ptr): New function.
3117 (ada_value_slice): New function.
3118 (ada_evaluate_subexp): Remove XVS-suffix code from subscripting
3119 test. Don't know why it is there.
3120 Change slice code to use ada_value_slice_ptr and ada_value_slice, and
3121 to avoid dereferencing huge arrays from which one is slicing.
3122 (empty_array): Correct to return an array rather than
3123 a subrange value.
3124 * ada-valprint.c (print_optional_low_bound): Don't print lower bound
3125 on empty arrays (let'em use 'FIRST instead).
3126
19c1ef65
PH
31272004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
3128
3129 Address complaints from gdb_ari.sh:
3130
3131 * ada-exp.y: Include gdb_string.h rather than string.h.
3132 (convert_char_literal): Reformat declaration.
3133 * ada-lang.h: Include opaque struct declaration for struct frame_info.
3134 * ada-lex.l: Change use of free to xfree (the macro would do so
3135 anyway, but this is harmless).
3136 Include gdb_string.h rather than string.h.
3137 * ada-valprint.c (ada_val_print_stub): Change PTR => void*.
3138
3139 * ada-lang.c (parse): Remove K&Rism in parameter list.
3140 (is_name_suffix): Correct Linux => GNU/Linux in comment.
3141
d81cbc94
MK
31422004-06-30 Mark Kettenis <kettenis@gnu.org>
3143
3144 * dbxread.c (process_one_symbol) [SUN_FIXED_LBRAC_BUG]: Remove
3145 dead code.
3146
07681759
MK
31472004-06-30 Mark Kettenis <kettenis@gnu.org>
3148
3149 * alphabsd-nat.c: Update copyright year.
3150 (getregs_supplies): Use ALPHA_PC_REGNUM instead of PC_REGNUM.
3151
f7948b5f
JB
31522004-06-29 Joel Brobecker <brobecker@gnat.com>
3153
6e0cdd28 3154 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): New function.
f7948b5f
JB
3155 (i386_cygwin_in_solib_call_trampoline): New function.
3156 (i386_cygwin_init_abi): Initialize the in_solib_call_trampoline
3157 and skip_trampoline_code gdbarch methods.
3158
8f113c9a
JB
31592004-06-29 Jim Blandy <jimb@redhat.com>
3160
3161 * Makefile.in (gdb_callback_h): Renamed from callback_h to the
3162 name actually used in the dependency lists.
3163
97dc871c
RC
31642004-06-29 Randolph Chung <tausq@debian.org>
3165
3166 * NEWS (New native configurations): Mention GNU/Linux/hppa.
3167
47216e51
CV
31682004-06-29 Corinna Vinschen <vinschen@redhat.com>
3169
3170 * win32-nat.c (child_pid_to_exec_file): New function.
6780dcde 3171 (init_child_ops): Add child_pid_to_exec_file as to_pid_to_exec_file
47216e51
CV
3172 functionality.
3173
e623b504
AC
31742004-06-28 Andrew Cagney <cagney@gnu.org>
3175
3176 * defs.h (xstrvprintf): Declare.
3177 * utils.c (xstrvprintf): New function.
3178 (internal_vproblem, xstrprintf, xasprintf)
3179 (vfprintf_maybe_filtered, vfprintf_unfiltered): Use xstrvprintf.
3180 * serial.c (serial_printf): Ditto.
3181 * complaints.c (vcomplaint): Ditto.
3182
79acc9b3
CV
31832004-06-29 Corinna Vinschen <vinschen@redhat.com>
3184
3185 * infcmd.c (attach_command): Move call to target_terminal_inferior
3186 behind loading symbol table.
3187
1daf35d9
AC
31882004-06-28 Andrew Cagney <cagney@gnu.org>
3189
3190 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Revert 2004-06-24
3191 change - add back extern deprecated_ui_loop_hook declaration.
3192
b435e160
AC
31932004-06-28 Andrew Cagney <cagney@gnu.org>
3194
3195 * xcoffsolib.c (xcoff_solib_address): Replace xasprintf with
3196 xstrprintf.
3197 * varobj.c (varobj_gen_name, create_child, c_name_of_child)
3198 (c_value_of_variable): Ditto.
3199 * utils.c (internal_vproblem): Ditto.
3200 * solib-aix5.c (build_so_list_from_mapfile): Ditto.
3201 * remote.c (add_packet_config_cmd): Ditto.
3202 * remote-rdp.c (rdp_set_command_line): Ditto.
3203 * regcache.c (regcache_dump): Ditto.
3204 * frv-tdep.c (new_variant, new_variant): Ditto.
3205 * fbsd-proc.c (child_pid_to_exec_file): Ditto.
3206 (fbsd_find_memory_regions): Ditto.
3207 * breakpoint.c (create_thread_event_breakpoint)
3208 (create_breakpoints): Ditto.
3209 * aix-thread.c (aix_thread_pid_to_str): Ditto.
3210 * ada-lang.c (is_package_name): Ditto. Also delete xmalloc call.
3211
06d5cf63
JB
32122004-06-28 Joel Brobecker <brobecker@gnat.com>
3213
3214 * ada-lang.c: Re-indent file, with some massaging to help indent
3215 a bit when the result is otherwise really too ugly.
3216
35809fad
UW
32172004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
3218
3219 * frame.h (struct frame_id): Change bit field type of stack_addr_p,
3220 code_addr_p and special_addr_p to 'unsigned int'.
3221
40e20472
MK
32222004-06-27 Mark Kettenis <kettenis@gnu.org>
3223
3224 * i386v4-nat.c: Update copyright year and tweak comment.
3225 (regmap): Remove trailing comma.
3226 (supply_gregset): Rename local variable i to regnum. Call
3227 regcache_raw_supply instead of supply_register.
3228 (fill_gregset): Rename argument regno to regnum. Call
3229 regcache_raw_collect instead of regcache_collect.
3230
12b0b6de
UW
32312004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
3232
3233 * frame.h (struct frame_id): New fields stack_addr_p, code_addr_p
3234 and special_addr_p.
3235 (frame_id_build, frame_id_build_special): Update comments.
3236 (frame_id_build_wild): New prototype.
3237 * frame.c (frame_id_build, frame_id_build_special): Fill in new
3238 struct frame_id fields.
3239 (frame_id_build_wild): New function.
3240 (frame_id_eq, frame_id_inner): Use new struct frame_id fields.
3241
47b42a3e
MK
32422004-06-27 Mark Kettenis <kettenis@gnu.org>
3243
3244 * config/djgpp/fnchange.lst: Add entries for hppabsd-nat.c and
3245 hppabsd-tdep.c.
3246
1265e4aa
JB
32472004-06-27 Joel Brobecker <brobecker@gnat.com>
3248
3249 * ada-lang.c: Minor reformatting to conform to GNU coding standards.
3250
76a01679
JB
32512004-06-27 Joel Brobecker <brobecker@gnat.com>
3252
3253 * ada-lang.c: Re-indent file.
3254
7aca490a
JB
32552004-06-27 Joel Brobecker <brobecker@gnat.com>
3256
3257 * ada-lang.c (symtab_symbol_info): Remove unused declaration.
3258 (no_symtab_msg): Likewise.
3259
5e987968
AS
32602004-06-27 Andreas Schwab <schwab@suse.de>
3261
3262 * source.c: Fix whitespace.
3263
315c4276
MK
32642004-06-27 Mark Kettenis <kettenis@gnu.org>
3265
d15be926
MK
3266 * configure.in: Include <sys/param.h> for td_pcb test.
3267 * configure: Regenerated.
3268
9062529b
MK
3269 * i386nbsd-nat.c: New file.
3270 * Makefile.in (ALLDEPFILES): Add i386nbsd-nat.c, i386nbsd-tdep.c,
3271 i386obsd-nat.c and i386obsd-tdep.c.
3272 (i386nbsd-nat.o): New dependency.
3273 * config/i386/obsd.mh (NATDEPFILES): Add i386nbsd-nat.o and
3274 bsd-kvm.o.
3275 (LOADLIBES): New variable.
3276 * config/i386/nbsdelf.mh (NATDEPFILES): Add i386nbsd-nat.o and
3277 bsd-kvm.o.
3278 (LOADLIBES): New variable.
3279
8010310e
MK
3280 * config/i386/fbsd64.mh (NATDEPFILES): Add bsd-kvm.o.
3281 (LOADLIBES): New variable.
3282
efe1d7b9
MK
3283 * bsd-kvm.c (bsd_kvm_fetch_registers): Directly return after
3284 fetching from BSD_KVM_PADDR. Correctly lookup address for
3285 "_thread0".
3286
315c4276
MK
3287 * amd64fbsd-nat.c: Include <sys/types.h, <machine/pcb.h> and
3288 "bsd-kvm.h".
3289 (amd64fbsd_supply_pcb): New funcion.
3290 (_initialize_amd64fbsd_nat): Enable libkvm interface.
3291
399cfac6
DL
32922004-06-27 <david@streamline-computing.com>
3293
3294 Partial fix for PR cli/1056.
3295 * valarith.c: Check for zero in division and remainder
3296 evaluation.
3297
6235f9c8
MK
32982004-06-27 Mark Kettenis <kettenis@gnu.org>
3299
3300 * i387-tdep.c: Remove excessive whitespace.
3301
2726dafc
AC
33022004-06-26 Andrew Cagney <cagney@gnu.org>
3303
3304 * gdb-events.sh (deprecated_set_gdb_event_hooks): Deprecated.
3305 * gdb-events.h, gdb-events.c: Re-generate.
3306 * tui/tui-hooks.c (tui_install_hooks): Update.
3307 (tui_remove_hooks): Update.
3308 * mi/mi-cmd-break.c (mi_cmd_break_insert): Update.
3309
0e56aeaf
MK
33102004-06-26 Mark Kettenis <kettenis@gnu.org>
3311
cb461069
MK
3312 * amd64fbsd-nat.c: Don't include <sys/procfs.h> and "gregset.h".
3313 (gregset_t, fpregset_t): Remove typedefs.
3314 (REG_OFFSET): Rename argument.
3315 (amd64bsd_r_reg_offset): Rename from reg_offset.
3316 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
3317 Remove functions.
3318 (_initialize_amd64fbsd_nat): Use amd64fbsd64_r_reg_offset instead
3319 of reg_offset.
3320 * Makefile.in (amd64fbsd-nat.o): Update dependencies.
3321
ecba89de
MK
3322 * amd64-nat.c (amd64_supply_native_gregset): Fix comment.
3323
4cd80476
MK
3324 * vax-tdep.c: Tweak comment.
3325
0e56aeaf
MK
3326 Add OpenBSD/hppa support.
3327 * NEWS (New native configurations): Mention OpenBSD/hppa.
3328 * hppabsd-nat.c, hppabsd-tdep.c, config/pa/obsd.mh,
3329 config/pa/obsd.mt, config/pa/nm-obsd.h, config/pa/tm-bsd.h: New
3330 files.
3331 * Makefile.in (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
3332 (hppabsd-nat.o, hppabsd-tdep.c): New dependencies.
3333 * configure.host: Add hppa*-*-openbsd*.
3334 * configure.tgt: Add hppa*-*-openbsd*.
3335
98bbd631
AC
33362004-06-25 Andrew Cagney <cagney@gnu.org>
3337
3338 * defs.h (deprecated_ui_loop_hook): Deprecated.
3339 * wince.c (child_wait): Update.
3340 * win32-nat.c (child_wait): Update.
3341 * v850ice.c (v850ice_wait): Update.
3342 * top.c (deprecated_ui_loop_hook): Update.
3343 * serial.h: Update.
3344 * ser-unix.c (do_hardwire_readchar, do_hardwire_readchar)
3345 (do_unix_readchar): Update.
3346 * ser-tcp.c (net_open): Update.
3347 * remote-sim.c (gdb_os_poll_quit): Update.
3348 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Update.
3349
769d7dc4
AC
33502004-06-24 Andrew Cagney <cagney@gnu.org>
3351
3352 * defs.h (deprecated_pre_add_symbol_hook)
3353 (deprecated_post_add_symbol_hook): Deprecated.
3354 * symfile.c (symbol_file_add_with_addrs_or_offsets)
3355 (symbol_file_add_with_addrs_or_offsets): Update references.
3356
11c949aa
AC
33572004-06-24 Andrew Cagney <cagney@gnu.org>
3358
3359 * defs.h (post_add_symbol_hook, pre_add_symbol_hook)
3360 (ui_loop_hook, selected_frame_level_changed_hook): Declare.
3361 * wince.c (ui_loop_hook): Delete extern declaration.
3362 * win32-nat.c (ui_loop_hook): Delete extern declaration..
3363 * v850ice.c (ui_loop_hook): Delete extern declaration..
3364 * ser-unix.c (ui_loop_hook): Delete extern declaration..
3365 * ser-tcp.c (ui_loop_hook): Delete extern declaration..
3366 * remote-sim.c (ui_loop_hook): Delete extern declaration..
3367 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Delete extern.
3368 ui_loop_hook declaration.
3369
eedc19af
AC
33702004-06-24 Andrew Cagney <cagney@gnu.org>
3371
3372 * objfiles.h (struct entry_info): Delete entry_func_lowpc and
3373 entry_func_highpc fields.
3374 * objfiles.c (init_entry_point_info): Do not clear
3375 entry_func_lowpc and entry_func_highpc.
3376 (objfile_relocate): Do not relocate entry_func_lowpc and
3377 entry_func_highpc.
3378 * dwarfread.c (read_func_scope): Do not set entry_func_lowpc and
3379 entry_func_highpc.
3380 * dwarf2read.c (read_func_scope): Do not set entry_func_lowpc and
3381 entry_func_highpc.
3382 * blockframe.c (legacy_frame_chain_valid): Replace tests against
3383 entry_func_lowpc and entry_func_highpc with call to
3384 inside_entry_func.
3385
d47079be
MK
33862004-06-24 Mark Kettenis <kettenis@gnu.org>
3387
3388 * sparc64-tdep.c (sparc64_store_arguments): Fix passing
3389 quad-precision floating point arguments in registers.
3390
2107e348
MK
33912004-06-24 Mark Kettenis <kettenis@gnu.org>
3392
3393 From Michael Mueller <m.mueller99@kay-mueller.de>:
3394 * sparc64-tdep.c (sparc64_frame_base_address): Take BIAS into
3395 account.
3396
46587c42
JJ
33972004-06-22 Jeff Johnston <jjohnstn@redhat.com>
3398
3399 * infrun.c (handle_inferior_event): Initialize stopped_by_watchpoint
3400 to -1.
3401 * breakpoint.c (bpstat_stop_status): Move check for ignoring
3402 untriggered watchpoints to a separate if clause. Update function
3403 comment regarding STOPPED_BY_WATCHPOINT argument.
3404
226f5cf4
JB
34052004-06-22 Jim Blandy <jimb@redhat.com>
3406
3407 * gdbarch.sh: Doc fix.
3408
f10683bb
MH
34092004-06-21 Martin Hunt <hunt@redhat.com>
3410 Kevin Buettner <kevinb@redhat.com>
3411
3412 * config/mips/tm-mips.h (SP_REGNUM): Delete define.
3413 * mips-tdep.h (MIPS_SP_REGNUM): Define.
3414 * mips-tdep.c (mips_gdbarch_init): Set SP_REGNUM via call
3415 to set_gdbarch_sp_regnum(). Use cooked register number.
3416 (SP_REGNUM): Replace all occurrences with MIPS_SP_REGNUM.
3417
412d5987
AC
34182004-06-21 Andrew Cagney <cagney@gnu.org>
3419
3420 * gdbarch.sh: When the macro field is empty, do not generate a
3421 macro definition. When the macro field is "=", generate the macro
3422 name from the upper-case function name.
3423 (NUM_REGS, NUM_PSEUDO_REGS, SP_REGNUM, PC_REGNUM, PS_REGNUM)
3424 (FP0_REGNUM, STAB_REG_TO_REGNUM, ECOFF_REG_TO_REGNUM)
3425 (DWARF_REG_TO_REGNUM, SDB_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM)
3426 (REGISTER_NAME, DEPRECATED_REGISTER_VIRTUAL_TYPE)
3427 (DEPRECATED_REGISTER_BYTES, DEPRECATED_REGISTER_BYTE)
3428 (DEPRECATED_REGISTER_RAW_SIZE, DEPRECATED_REGISTER_VIRTUAL_SIZE)
3429 (DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_FP_REGNUM)
3430 (DEPRECATED_TARGET_READ_FP, DEPRECATED_PUSH_ARGUMENTS)
3431 (DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP)
3432 (DEPRECATED_REGISTER_SIZE, CALL_DUMMY_LOCATION)
3433 (DEPRECATED_DO_REGISTERS_INFO, REGISTER_SIM_REGNO)
3434 (REGISTER_BYTES_OK, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER)
3435 (GET_LONGJMP_TARGET, DEPRECATED_INIT_FRAME_PC)
3436 (BELIEVE_PCC_PROMOTION, DEPRECATED_GET_SAVED_REGISTER)
3437 (CONVERT_REGISTER_P, REGISTER_TO_VALUE, VALUE_TO_REGISTER)
3438 (POINTER_TO_ADDRESS, ADDRESS_TO_POINTER, INTEGER_TO_ADDRESS)
3439 (DEPRECATED_POP_FRAME, DEPRECATED_STORE_STRUCT_RETURN)
3440 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE)
3441 (DEPRECATED_EXTRACT_RETURN_VALUE, DEPRECATED_STORE_RETURN_VALUE)
3442 (DEPRECATED_USE_STRUCT_CONVENTION)
3443 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
3444 (DEPRECATED_FRAME_INIT_SAVED_REGS)
3445 (DEPRECATED_INIT_EXTRA_FRAME_INFO, SKIP_PROLOGUE, INNER_THAN)
3446 (BREAKPOINT_FROM_PC, MEMORY_INSERT_BREAKPOINT)
3447 (MEMORY_REMOVE_BREAKPOINT, DECR_PC_AFTER_BREAK)
3448 (DEPRECATED_FUNCTION_START_OFFSET, FRAME_ARGS_SKIP)
3449 (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION, DEPRECATED_FRAME_CHAIN)
3450 (DEPRECATED_FRAME_CHAIN_VALID, DEPRECATED_FRAME_SAVED_PC)
3451 (DEPRECATED_FRAME_ARGS_ADDRESS, DEPRECATED_FRAME_LOCALS_ADDRESS)
3452 (DEPRECATED_SAVED_PC_AFTER_CALL, FRAME_NUM_ARGS)
3453 (DEPRECATED_STACK_ALIGN, DEPRECATED_REG_STRUCT_HAS_ADDR)
3454 (FRAME_RED_ZONE_SIZE, ADDR_BITS_REMOVE, SMASH_TEXT_ADDRESS)
3455 (SOFTWARE_SINGLE_STEP, SKIP_TRAMPOLINE_CODE)
3456 (IN_SOLIB_CALL_TRAMPOLINE, IN_SOLIB_RETURN_TRAMPOLINE)
3457 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL)
3458 (NAME_OF_MALLOC, CANNOT_STEP_BREAKPOINT)
3459 (HAVE_NONSTEPPABLE_WATCHPOINT, ADDRESS_CLASS_TYPE_FLAGS)
3460 (FETCH_POINTER_ARGUMENT): Replace the macro name with "=".
3461
68908a3e
AC
34622004-06-21 Andrew Cagney <cagney@gnu.org>
3463
48f7351b
AC
3464 * gdbarch.sh: For gdbarch_dump, print the "function" rather than
3465 macro name, and the function rather than macro value. Only wrap
3466 macro print statements in #ifdef. Move format logic to where it
3467 is needed.
3468 * gdbarch.c: Re-generate.
3469
283354d8
AC
3470 * gdbarch.sh (read): Delete "print_p" and "description", add
3471 "garbage_at_eol". Check for non-empty garbage at end-of-line.
3472 Delete references to print_p.
3473 (TARGET_ARCHITECTURE): Delete print predicate.
3474 * gdbarch.c: Re-generate.
3475
68908a3e
AC
3476 * gdbarch.sh: Check that multi-arch methods do not provide a
3477 macro.
3478 (register_type, unwind_dummy_id, push_dummy_call, push_dummy_code)
3479 (print_registers_info, print_float_info, print_vector_info)
3480 (adjust_breakpoint_address, remote_translate_xfer_address)
3481 (construct_inferior_arguments, skip_solib_resolver, unwind_pc)
3482 (address_class_type_flags_to_name, unwind_sp): Remove the macro
3483 name from the multi-arch definition.
3484
a2428dbe
AC
34852004-06-20 Andrew Cagney <cagney@gnu.org>
3486
3487 * gdbarch.sh: Sort by the function, instead of macro name.
3488 * gdbarch.c: Re-generate.
3489
750eb019
AC
34902004-06-20 Andrew Cagney <cagney@gnu.org>
3491
66d659b1
AC
3492 * gdbarch.sh: Use the function, instead of macro name in
3493 errors and the log file.
3494 (return_value): Remove stray ":" in spec.
3495
750eb019
AC
3496 * gdbarch.sh (RETURN_VALUE): Default to legacy_return_value.
3497 * gdbarch.h, gdbarch.c: Re-generate.
3498 * Makefile.in (arch-utils.o): Update dependencies.
3499 * values.c (using_struct_return): Move code calling
3500 USE_STRUCT_CONVENTION to legacy_return_value, simplify.
3501 * stack.c (return_command): Move code calling STORE_RETURN_VALUE
3502 to legacy_return_value, simplify.
3503 * infcmd.c (print_return_value): Move code calling
3504 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS and EXTRACT_RETURN_VALUE
3505 to legacy_return_value, simplify.
3506 * infcall.c (call_function_by_hand): Move code calling
3507 EXTRACT_RETURN_VALUE to legacy_return_value, simplify.
3508 * arch-utils.c: Update copyright. Include "gdbcore.h".
3509 (legacy_return_value): New function.
3510 * arch-utils.h: Update copyright.
3511 (legacy_return_value): Declare.
3512
b5622e8d
AC
35132004-06-20 Andrew Cagney <cagney@gnu.org>
3514
3515 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Deprecated.
3516 * gdbarch.h, gdbarch.c: Re-generate.
3517 * values.c (using_struct_return): Update call.
3518 * mcore-tdep.c: Update comment.
3519 * infcall.c (call_function_by_hand): Update comment.
3520 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3521 * arch-utils.h (always_use_struct_convention): Update.
3522 * v850-tdep.c (v850_gdbarch_init): Update.
3523 * sh64-tdep.c (sh64_gdbarch_init): Update.
3524 * sh-tdep.c (sh_gdbarch_init): Update.
3525 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3526 * mips-tdep.c (mips_gdbarch_init): Update.
3527 * mcore-tdep.c (mcore_gdbarch_init): Update.
3528 * m32r-tdep.c (m32r_gdbarch_init): Update.
3529 * ia64-tdep.c (ia64_gdbarch_init): Update.
3530 * h8300-tdep.c (h8300_gdbarch_init): Update.
3531 * frv-tdep.c (frv_gdbarch_init): Update.
3532 * cris-tdep.c (cris_gdbarch_init): Update.
3533 * arm-tdep.c (arm_gdbarch_init): Update.
3534 * alpha-tdep.c (alpha_gdbarch_init): Update.
3535
5191de37
MC
35362004-06-18 Michael Chastain <mec.gnu@mindspring.com>
3537
3538 * PROBLEMS: Add more specific information, and a work-around,
3539 for PR gdb/1458.
3540
782263ab
AC
35412004-06-18 Andrew Cagney <cagney@gnu.org>
3542
3543 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Deprecated.
3544 * gdbarch.h, gdbarch.c: Re-generate.
3545 * ada-lang.c (ada_finish_decode_line_1): Update.
3546 * infrun.c (handle_inferior_event): Update.
3547 * infcall.c (find_function_addr): Update.
3548 * linespec.c (minsym_found): Update.
3549 * symtab.c (find_function_start_sal, skip_prologue_using_sal):
3550 Update.
3551 * blockframe.c (legacy_frameless_look_for_prologue): Update.
3552 * cli/cli-cmds.c (disassemble_command): Update.
3553 * vax-tdep.c (vax_gdbarch_init): Update.
3554
2f305df1
MK
35552004-06-18 Mark Kettenis <kettenis@gnu.org>
3556
3557 * i386-tdep.c (i386_collect_fpregset): Fix comment.
3558
e5fe55f7
AC
35592004-06-17 Andrew Cagney <cagney@gnu.org>
3560
3561 GDB 6.1.1 released from the GDB 6.1 branch.
3562 * NEWS: Merge in 6.1.1 NEWS from 6.1 branch.
3563 * PROBLEMS: Ditto.
3564
473b7be6
DJ
35652004-06-16 Daniel Jacobowitz <dan@debian.org>
3566
3567 PR gdb/1658
3568 * dwarf2read.c (dwarf_decode_lines): Read the length of the extended
3569 operation as a uleb128. Found by Michael Coulter.
3570
96d887e8
PH
35712004-06-16 Paul N. Hilfinger <Hilfinger@gnat.com>
3572
3573 * ada-tasks.c: Rename build_task_list to ada_build_task_list, and
3574 make it non-static.
3575 * ada-lang.h (task_control_block): declaration moved from ada-task.c
3576 to ada-lang.h; this is needed to be able to implement the kill command
3577 in multi-task mode.
3578 (task_ptid): Ditto.
3579 (task_entry): Ditto.
3580 (task_list): Ditto.
3581 (ada_build_task_list): Ditto.
3582
3583 * ada-lang.c: Conditionalize routines and data structures related
3584 to breakpoints, exceptions, completion, and symbol caching on
3585 GNAT_GDB, since these are not yet used in the submitted public sources.
3586 (ada_main_name): Editorial: Move definition out of exception-related
3587 code.
3588
31eef181
AC
35892004-06-15 Andrew Cagney <cagney@gnu.org>
3590
3591 * mips-tdep.c (non_heuristic_proc_desc): Delete call to
3592 deprecated_pc_in_call_dummy.
3593
2c500098
AM
35942004-06-15 Alan Modra <amodra@bigpond.net.au>
3595
3596 * dsrec.c (load_srec, make_srec): Use bfd_get_section_size instead of
3597 bfd_get_section_size_before_reloc or _raw_size.
3598 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
3599 * dwarf2read.c (dwarf2_locate_sections): Likewise.
3600 (dwarf2_read_section): Likewise.
3601 * elfread.c (elf_locate_sections): Likewise.
3602 * gcore.c (derive_heap_segment): Likewise.
3603 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
3604 * remote-e7000.c (e7000_load): Likewise.
3605 * remote-m32r-sdi.c (m32r_load): Likewise.
3606 * remote-mips.c (mips_load_srec): Likewise.
3607 (pmon_load_fast): Likewise.
3608 * remote.c (compare_sections_command): Likewise.
3609 * symfile.c (add_section_size_callback): Likewise.
3610 (load_section_callback): Likewise.
3611 (pc_in_unmapped_range): Likewise.
3612 (pc_in_mapped_range): Likewise.
3613 (sections_overlap): Likewise.
3614 (list_overlays_command): Likewise.
3615 (simple_overlay_update_1): Likewise.
3616 (simple_overlay_update): Likewise.
3617 * tracepoint.c (remote_set_transparent_ranges): Likewise.
3618 * win32-nat.c (core_section_load_dll_symbols): Likewise.
3619
90f943f1
RC
36202004-06-14 Randolph Chung <tausq@debian.org>
3621
3622 * Makefile.in (hppa-hpux-tdep.o): Update dependency.
3623 * hppa-hpux-tdep.c (hp_cxx_exception_support_initialized): Make
3624 static.
3625 (hppa_hpux_inferior_created): New function.
3626 (hppa_hpux_init_abi): Register observer.
3627 * symfile.c (hp_cxx_exception_support_initialized)
3628 (RESET_HP_UX_GLOBALS): Remove HPUXHPPA specific hacks.
3629 (symbol_file_add_main_1, symbol_file_clear): Likewise.
3630
700c15aa
RC
36312004-06-14 Randolph Chung <tausq@debian.org>
3632
3973a7d3
AC
3633 * MAINTAINERS (Write After Approval): Alphabetize my entry
3634 correctly.
700c15aa 3635
cea4838c
AC
36362004-06-14 Andrew Cagney <cagney@gnu.org>
3637
3638 * MAINTAINERS (testsuite): List Michael Chastain as the lead
3639 testsuite maintainer.
3640
97092415
AC
36412004-06-13 Andrew Cagney <cagney@gnu.org>
3642
e8c3165b
AC
3643 * infcmd.c (print_return_value): Fix logic, allow
3644 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS when struct_return.
3645
bceabdd8
AC
3646 * gdbarch.sh: For predicates, do not check GDB_MULTI_ARCH when
3647 defining any macros.
3648 * gdbarch.h: Re-generate.
3649
57010b1c
AC
3650 * gdbarch.sh: Delete "level" attribute. Only check for a macro
3651 redefinition when multi-arch greater than GDB_MULTI_ARCH_PARTIAL.
3652 * gdbarch.h: Re-generate.
3653
bc87dfa0
AC
3654 * values.c (generic_use_struct_convention): Don't check gcc_p.
3655
15ac804d
AC
3656 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE)
3657 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Delete.
3658 * gdbarch.h, gdbarch.c: Regenerate.
3659 * ns32k-tdep.h (NS32K_MAX_REGISTER_RAW_SIZE)
3660 (NS32K_MAX_REGISTER_VIRTUAL_SIZE): Delete macros.
3661 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
3662 deprecated_max_register_raw_size and
3663 deprecated_max_register_virtual_size.
3664 * v850-tdep.c (v850_gdbarch_init): Ditto.
3665 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
3666 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3667 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
3668 * cris-tdep.c (cris_gdbarch_init): Ditto.
3669
97092415
AC
3670 * gdbarch.sh (RETURN_VALUE_ON_STACK): Delete method.
3671 * gdbarch.h, gdbarch.c: Re-generate.
3672 * m68hc11-tdep.c (m68hc11_return_value_on_stack): Delete function.
3673 (m68hc11_use_struct_convention): Delete function.
3674 (m68hc11_extract_struct_value_address): Delete function.
3675 (m68hc11_return_value): New function.
3676 (m68hc11_gdbarch_init): Instead of store_return_value,
3677 extract_return_value, return_value_on_stack,
3678 deprecated_extract_struct_value_address and use_struct_convention,
3679 set return_value.
3680 * values.c (using_struct_return): Do not call
3681 RETURN_VALUE_ON_STACK.
3682 * arch-utils.h (generic_return_value_on_stack_not): Delete
3683 declaration.
3684 * arch-utils.c (generic_return_value_on_stack_not): Delete
3685 function.
3686
44e5158b
AC
36872004-06-12 Andrew Cagney <cagney@gnu.org>
3688
3689 * values.c (register_value_being_returned): Delete function.
3690 * infcmd.c (legacy_return_value): Delete function.
3691 * infcall.c (call_function_by_hand): Inline
3692 "register_value_being_returned", simplify.
3693 * values.c (using_struct_return): Update comment, refer to
3694 print_return_value instead of register_value_being_returned.
3695 * infcmd.c (print_return_value): Inline calls to
3696 register_value_being_returned and legacy_return_value. Simplify.
3697
b887c273
RC
36982004-06-11 Randolph Chung <tausq@debian.org>
3699
3700 * somread.c (som_symtab_read): Exclude gcc local symbols.
3701
1b2bfbb9
RC
37022004-06-11 Randolph Chung <tausq@debian.org>
3703
3973a7d3
AC
3704 * infrun.c (handle_inferior_event): Handle the case when a
3705 trampoline ends up in the runtime resolver, and if the trampoline
3706 has no name. Rearrange the code so that all the trampoline
3707 processing happens before other step-out-of-range handling.
1b2bfbb9 3708
a9d61c86
MH
37092004-06-11 Martin Hunt <hunt@redhat.com>
3710
3711 * mips-tdep.c (mips_gdbarch_init): Recognize vr4120
3712 has no fpu.
3713
2c87cf5a
AC
37142004-06-10 Andrew Cagney <cagney@gnu.org>
3715
3716 * blockframe.c (legacy_inside_entry_func): Delete.
3717 (legacy_frame_chain_valid): Inline call to
3718 legacy_inside_entry_func, simplify.
3719
0b67b468 37202004-06-10 Bob Rossi <bob@brasko.net>
57c22c6c
BR
3721
3722 * dbxread.c (read_dbx_symtab): Set pst->dirname when known.
3973a7d3
AC
3723 * dwarf2read.c (partial_die_info): Add dirname field.
3724 (dwarf2_build_psymtabs_hard): Set pst->dirname when known.
3725 (read_partial_die): Save away DW_AT_comp_dir.
3726 * defs.h (symtab_to_filename): Removed.
3727 * source.c (find_and_open_source): Added.
57c22c6c 3728 (open_source_file): Just calls find_and_open_source.
3973a7d3
AC
3729 (symtab_to_filename): Removed.
3730 (symtab_to_fullname, psymtab_to_fullname): Added.
57c22c6c
BR
3731 * source.h (psymtab_to_fullname,symtab_to_fullname): Added.
3732 * symtab.c (lookup_symtab): Call symtab_to_fullname instead of
3733 symtab_to_filename.
3734 * symtab.h (partial_symtab): Add dirname field.
3735 * mi/mi-cmd-file.c (FILENAME,FULLNAME): Added.
3973a7d3
AC
3736 (mi_cmd_file_list_exec_source_file): Call new function
3737 symtab_to_fullname to find fullname.
57c22c6c 3738 (mi_cmd_file_list_exec_source_files): Added.
3973a7d3 3739 * mi/mi-cmds.c (mi_cmd_mi_cmds): Add -file-list-exec-source-files.
57c22c6c
BR
3740 * mi/mi-cmds.h (mi_cmd_file_list_exec_source_files): Added.
3741
9a1dd1ad
AC
37422004-06-10 Andrew Cagney <cagney@gnu.org>
3743
239ae8c7
AC
3744 * avr-tdep.c (avr_gdbarch_init): Do not set use_struct_convention
3745 to generic_use_struct_convention, the default value.
3746
fc720350
AC
3747 * mn10300-tdep.c (mn10300_type_align): Call internal_error instead
3748 of abort.
3749
9a1dd1ad
AC
3750 * ns32k-tdep.c (ns32k_push_arguments): New function.
3751 (ns32k_gdbarch_init): Set deprecated_push_arguments.
3752 * infcall.c (call_function_by_hand): Call error instead of
3753 legacy_push_arguments.
3754 * value.h (legacy_push_arguments): Delete declaration.
3755 * valops.c (legacy_push_arguments): Delete function.
3756 (value_push): Delete function.
3757
fea25152
BF
37582004-06-10 Brian Ford <ford@vss.fsi.com>
3759
3760 * coffread.c (coff_symfile_read): Prevent mixed debugging formats
3761 from corrupting/reinitializing the psymtab. Support DWARF 2 frame
3762 info.
3763 * dbxread.c (elfstab_build_psymtabs): Remove bogus comment.
3764
30a4a8e0
AC
37652004-06-10 Andrew Cagney <cagney@gnu.org>
3766
3767 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Delete.
3768 * gdbarch.h, gdbarch.c: Re-generate.
3769 * frame.h (deprecated_pc_in_call_dummy): Delete "sp" and "fp"
3770 parameters.
3771 * dummy-frame.c (deprecated_pc_in_call_dummy): Update.
3772 * arm-tdep.c (arm_pc_is_thumb_dummy): Call
3773 deprecated_pc_in_call_dummy instead of
3774 DEPRECATED_PC_IN_CALL_DUMMY.
3775 (arm_skip_prologue): Ditto.
3776 * xstormy16-tdep.c (xstormy16_pop_frame, xstormy16_scan_prologue)
3777 (xstormy16_frame_saved_pc, xstormy16_frame_chain): Ditto.
3778 * v850-tdep.c (v850_find_callers_reg, v850_frame_chain)
3779 (v850_pop_frame, v850_frame_saved_pc, v850_frame_init_saved_regs):
3780 Ditto.
3781 * sh64-tdep.c (sh64_frame_chain, sh64_get_saved_pr)
3782 (sh64_init_extra_frame_info, sh64_get_saved_register)
3783 (sh64_pop_frame): Ditto.
3784 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
3785 * mcore-tdep.c (mcore_find_callers_reg, mcore_frame_saved_pc)
3786 (mcore_pop_frame, mcore_init_extra_frame_info): Ditto.
3787 * h8300-tdep.c (h8300_frame_chain, h8300_frame_saved_pc)
3788 (h8300_pop_frame): Ditto.
3789 * blockframe.c (legacy_inside_entry_func)
3790 (legacy_frame_chain_valid): Ditto.
3791 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update call
3792 to deprecated_pc_in_call_dummy.
3793
81cfbe54
AC
37942004-06-09 Andrew Cagney <cagney@gnu.org>
3795
a1f4a1b6
AC
3796 * gdbarch.sh (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Do not
3797 provide a default value.
3798 (CONVERT_REGISTER_P): Default to generic_convert_register_p.
3799 * gdbarch.h, gdbarch.c: Re-generate.
3800 * arch-utils.c (generic_convert_register_p): Rename
3801 legacy_convert_register_p
3802 (legacy_register_to_value, legacy_value_to_register): Delete
3803 functions.
3804 * arch-utils.h (generic_convert_register_p): Rename
3805 legacy_convert_register_p.
3806 (legacy_register_to_value, legacy_value_to_register): Delete
3807 declarations.
3808
9730f241
AC
3809 * gdbarch.sh (DEPRECATED_REGISTER_CONVERT_TO_RAW)
3810 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL)
3811 (DEPRECATED_REGISTER_CONVERTIBLE): Delete.
3812 * gdbarch.h, gdbarch.c: Re-generate.
3813 * infcmd.c (default_print_registers_info): Simplify.
3814 * findvar.c (value_of_register): Simplify.
3815 * mi/mi-main.c (get_register): Simplify.
3816 * arch-utils.c (legacy_convert_register_p): Always return 0.
3817 (legacy_register_to_value, legacy_value_to_register): Always call
3818 internal_error.
3819
8a1bf479
AC
3820 * infptrace.c (child_xfer_memory) [CLEAR_INSN_CACHE]: Delete
3821 #ifdef CLEAR_INSN_CACHE code.
3822 * target.c (generic_mourn_inferior) [CLEAR_DEFERRED_STORES]:
3823 Delete #ifdef CLEAR_DEFERRED_STORES code.
3824
4b38d6f1
AC
3825 * solib-svr4.c [HANDLE_SVR4_EXEC_EMULATORS]: Delete #ifdef code.
3826
2d62ecc7
AC
3827 * config/ia64/tm-linux.h (TARGET_ELF64): Delete macro, Update
3828 copyright.
3829 * config/ia64/tm-aix.h (TARGET_ELF64): Ditto.
3830
be4f7469
AC
3831 * config/mips/mipsv4.mh: Delete file.
3832
81cfbe54
AC
3833 * config/pa/tm-hppa64.h (HPREAD_ADJUST_STACK_ADDRESS): Delete
3834 unreferenced macro.
3835 (hpread_adjust_stack_address): Delete declaration.
3836
d966f0cb
AC
38372004-06-08 Andrew Cagney <cagney@gnu.org>
3838
3839 * infptrace.c [ATTACH_DETACH]: Remove #ifdef wrappers.
3840 (attach, detach): When neither PT_ATTACH / PT_DETACH nor
3841 PTRACE_ATTACH / PTRACE_DETACH available call error.
3842 (PT_ATTACH, PT_DETACH): Move definition to attach / detach.
3843 * infttrace.c (update_thread_state_after_attach, attach, detach):
3844 Remove #ifdef wrappers.
3845 * inftarg.c (child_attach, child_detach): Remove #ifdef wrappers.
3846 * gnu-nat.c [ATTACH_DETACH]: Remove #ifdef wrappers.
3847 * config/nm-bsd.h (ATTACH_DETACH): Delete.
3848 * config/nm-sysv4.h (ATTACH_DETACH): Delete.
3849 * config/nm-nbsd.h (ATTACH_DETACH): Delete.
3850 * config/nm-linux.h (ATTACH_DETACH): Delete.
3851 * config/rs6000/nm-rs6000.h (ATTACH_DETACH): Delete.
3852 * config/pa/nm-hppah.h (ATTACH_DETACH): Delete.
3853 * config/i386/nm-i386sco5.h (ATTACH_DETACH): Delete.
3854 * config/i386/nm-i386sco4.h (ATTACH_DETACH): Delete.
3855 * config/i386/nm-i386gnu.h (ATTACH_DETACH): Delete.
3856
d91670b9
CV
38572004-06-08 Corinna Vinschen <vinschen@redhat.com>
3858
3859 * configure.in: Set $configdir to the right OS specific value.
3860 Use value when setting $tcldir and $tkdir.
3861 * configure: Regenerate.
3862
28ba0b33
PB
38632004-06-06 Paul Brook <paul@codesourcery.com>
3864
3865 * gdb/dwarf2-frame.c (decode_frame_entry_1): Decode version 3 CIE
3866 records.
3867
f26caa11
PH
38682004-06-08 Paul N. Hilfinger <Hilfinger@gnat.com>
3869
3870 * ada-lang.c (lookup_symbol_in_language): New function to allow
3871 re-use of another language's symbol lookup code. (Placed here
3872 temporarily while Ada support is being integrated into the public
3873 tree).
3874 (restore_language): New auxiliary function for
3875 lookup_symbol_in_language.
3876 * ada-lang.h (lookup_symbol_in_language): Declare (Placed here
3877 temporarily while Ada support is being integrated into the public
3878 tree).
3879
d560a54b
AO
38802004-06-08 Alexandre Oliva <aoliva@redhat.com>
3881
e75d110c
AO
3882 * Makefile.in (check//%): New.
3883
d560a54b
AO
3884 * mn10300-tdep.c (mn10300_extract_return_value): Rewrite.
3885 (mn10300_store_return_value): Rewrite.
3886 (mn10300_type_align): New.
3887 (mn10300_use_struct_convention): Rewrite.
3888 (mn10300_return_value): New, using all of the above.
3889 (mn10300_pop_frame_regular): Add saved_regs_size.
3890 (mn10300_gdbarch_init): Remove deprecated rewritten entry points.
3891
a72fbdb7
AO
3892 * mn10300-tdep.c (mn10300_analyze_prologue): Don't compute saved
3893 regs if PC is on movm.
3894
01904826
JB
38952004-06-07 Jim Blandy <jimb@redhat.com>
3896
3897 Add native Linux support for the PowerPC E500.
3898 * ppc-tdep.h (struct gdbarch_tdep): New member: 'ppc_gprs_pseudo_p'.
3899 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it to false on
3900 all architectures except the E500.
3901 * ppc-linux-nat.c: (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): New
3902 #definitions.
3903 (struct gdb_evrregset_t): New type.
3904 (have_ptrace_getsetevrregs): New variable.
3905 (get_spe_registers, read_spliced_spe_reg, fetch_spe_register,
3906 fetch_spe_registers): New functions.
3907 (fetch_register): Call fetch_spe_register as appropriate.
3908 Assert that we're only passed raw register numbers.
3909 (fetch_ppc_registers): Call fetch_spe_registers as appropriate.
3910 Don't fetch gprs if they're pseudoregisters.
3911 (set_spe_registers, write_spliced_spe_reg, store_spe_register,
3912 store_spe_registers): New functions.
3913 (store_register): Call store_spe_register as appropriate.
3914 Assert that we're only passed raw register numbers.
3915 (store_ppc_registers): Call store_spe_registers as appropriate.
3916 Don't store gprs if they're pseudoregisters.
3917
f90ef764
JJ
39182004-06-07 Jeff Johnston <jjohnstn@redhat.com>
3919
3920 * thread-db.c (thread_get_info_callback): Fill in the thread_info
3921 struct if one exists, even if we are dealing with a zombie thread.
3922
45b75230
AC
39232004-06-07 Andrew Cagney <cagney@gnu.org>
3924
3925 * target.h (PC_REQUIRES_RUN_BEFORE_USE): Delete definition.
3926 * config/pa/tm-hppa.h (DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE):
3927 Rename PC_REQUIRES_RUN_BEFORE_USE.
3928 * breakpoint.c (breakpoint_sals_to_pc): Update. Wrap reference in
3929 #ifdef.
3930
1658da49
RC
39312004-06-07 Randolph Chung <tausq@debian.org>
3932
3933 * hppa-tdep.c (hppa_frame_cache): Handle the cases when we start
3934 unwinding after sp has been saved to the stack but before the end
3935 of the prologue, and after the fp has been modified but before it has
3936 been saved to the stack.
3937 (hppa_frame_base_address, hppa_frame_base, hppa_frame_base_sniffer):
3938 Remove superfluous definitions.
3939 (hppa_gdbarch_init): Remove superfluous frame base sniffer.
3940
9a727a3c
RC
39412004-06-07 Guy Martin <gmsoft@gentoo.org>
3942
3943 Committed by Randolph Chung.
3944 * hppa-linux-nat.c: Include the correct version of the header file
3945 depending on the kernel version.
3946
9e500012
RC
39472004-06-06 Randolph Chung <tausq@debian.org>
3948
3949 * infrun.c (trap_expected_after_continue): Remove HP_OS_BUG workaround.
3950 (proceed, init_wait_for_inferior, handle_inferior_event): Likewise.
3951
3388d7ff
RC
39522004-06-06 Randolph Chung <tausq@debian.org>
3953
3954 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
3955 (hppa_hpux_skip_trampoline_code): Don't cache symbol values.
3956 * hppa-linux-tdep.c (hppa_linux_in_dyncall): Likewise.
3957 * hppa-tdep.c (hppa_symbol_address): New function definition.
3958 * hppa-tdep.h (hppa_symbol_address): New function declaration.
3959
d49771ef
RC
39602004-06-06 Randolph Chung <tausq@debian.org>
3961
3962 * hppa-tdep.h (struct value): Forward declaration.
3963 (gdbarch_tdep): Define tdep find_global_pointer method.
3964 * hppa-tdep.c (hppa32_push_dummy_call): Find the global pointer
3965 associated with the function we are trying to call, and write it
3966 to the gp register.
3967 (hppa32_convert_from_funct_ptr_addr): New function.
3968 (hppa_find_global_pointer): New function.
3969 (hppa_gdbarch_init): Set default find_global_pointer method; set
3970 convert_from_func_ptr_addr method.
3971 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): New function.
3972 (hppa_linux_init_abi): Set find_global_pointer method.
3973 * Makefile.in (hppa-linux-tdep.o): Add value.h dependency.
3974
7d9b040b
RC
39752004-06-06 Randolph Chung <tausq@debian.org>
3976
3977 * gdbarch.sh (PUSH_DUMMY_CALL): Change CORE_ADDR func_addr argument
3978 to struct value *function.
3979 * gdbarch.c: Regenerate.
3980 * gdbarch.h: Likewise.
3981 * infcall.c (call_function_by_hand): Pass entire function value
3982 to push_dummy_call.
3983
3984 * Makefile.in (alpha-tdep.o, frv-tdep.o, ia64-tdep.o, mips-tdep.o)
3985 (ppc-sysv-tdep.o, rs6000-tdep.o): Update dependencies.
3986 * alpha-tdep.c (alpha_push_dummy_call): Update call signature.
3987 * amd64-tdep.c (amd64_push_dummy_call): Likewise.
3988 * arm-tdep.c (arm_push_dummy_call): Likewise.
3989 * avr-tdep.c (avr_push_dummy_call): Likewise.
3990 * cris-tdep.c (cris_push_dummy_call): Likewise.
3991 * d10v-tdep.c (d10v_push_dummy_call): Likewise.
3992 * frv-tdep.c (frv_push_dummy_call): Likewise.
3993 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
3994 * hppa-tdep.c (hppa32_push_dummy_call)
3995 (hppa64_push_dummy_call): Likewise.
3996 * i386-tdep.c (i386_push_dummy_call): Likewise.
3997 * ia64-tdep.c (ia64_push_dummy_call): Likewise.
3998 * m32r-tdep.c (m32r_push_dummy_call): Likewise.
3999 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
4000 * m68k-tdep.c (m68k_push_dummy_call): Likewise.
4001 * m88k-tdep.c (m88k_push_dummy_call): Likewise.
4002 * mips-tdep.c (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
4003 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Likewise.
4004 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
4005 (ppc64_sysv_abi_push_dummy_call): Likewise.
4006 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call)
4007 (ppc64_sysv_abi_push_dummy_call): Likewise.
4008 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
4009 * s390-tdep.c (s390_push_dummy_call): Likewise.
4010 * sh-tdep.c (sh_push_dummy_call_fpu)
4011 (sh_push_dummy_call_nofpu): Likewise.
4012 * sparc-tdep.c (sparc32_push_dummy_call): Likewise.
4013 * sparc64-tdep.c (sparc64_push_dummy_call): Likewise.
4014 * vax-tdep.c (vax_push_dummy_call): Likewise.
4015
4a19ea35
JB
40162004-06-04 Jim Blandy <jimb@redhat.com>
4017
8327ccee
JB
4018 * ppc-linux-nat.c (fetch_register): Don't forget to pass the
4019 gdbarch argument to register_size.
4020
a3c001ce
JB
4021 * rs6000-tdep.c (rs6000_store_return_value): Use
4022 regcache_cooked_write_part instead of
4023 deprecated_write_register_bytes.
4024 (rs6000_gdbarch_init): Register it for gdbarch_store_return_value,
4025 not gdbarch_deprecated_store_return_value.
4026
4a19ea35
JB
4027 * ppc-linux-nat.c (store_register, fetch_register): Remove
4028 incorrect assertions. Simplify and generalize handling of
4029 transfers whose sizes are not multiples of, or less than, sizeof
4030 (PTRACE_XFER_TYPE).
4031
b9b5d7ea
JJ
40322004-06-04 Jeff Johnston <jjohnstn@redhat.com>
4033
4034 * infrun.c (handle_inferior_event): Don't treat an invalid ptid
4035 as a new thread event.
720c7d64 4036 * thread-db.c (thread_get_info_callback): If the thread is a
b9b5d7ea 4037 zombie, return TD_THR_ZOMBIE.
720c7d64 4038 (thread_from_lwp): If thread_get_info_callback returns
b9b5d7ea
JJ
4039 TD_THR_ZOMBIE, check if the thread is still on the thread list
4040 and return a -1 ptid if not found.
4041 (thread_db_wait): If thread_from_lwp returns a -1 ptid, then
4042 change the status to TARGET_WAITKIND_SPURIOUS.
4043
c8a3b559
CV
40442004-06-03 Corinna Vinschen <vinschen@redhat.com>
4045
4046 * sh-tdep.c (sh3e_sh4_store_return_value): Correctly store
4047 double values in little endian mode.
4048
20605361
AC
40492004-06-02 Albert Chin-A-Young <china@thewrittenword.com>
4050
4051 Committed by Andrew Cagney.
4052 * gdb/dictionary.c, gdb/gdbtypes.h: Remove trailing comma
4053 after last enum constant to avoid error from IBM C
4054 compiler.
4055
bc97b3ba
JB
40562004-06-02 Jim Blandy <jimb@redhat.com>
4057
4058 * ppc-linux-nat.c (store_register, fetch_register): Rename 'mess'
4059 to 'message', and make it local to the lone block that uses it.
4060
1da28ab0
JB
4061 * ppc-linux-nat.c (store_register): Remove unused local 'offset'.
4062
4c4b4cd2
PH
40632004-06-02 Paul N. Hilfinger <hilfinger@gnat.com>
4064
8a2225b2
PH
4065 * ada-exp.y: Update copyright notice.
4066 Include block.h.
4067
4068 Replace REGNAME, LAST, INTERNAL_VARIABLE with
4069 SPECIAL_VARIABLE and unify the treatment of these cases.
4070
4071 (write_attribute_call0): Remove.
4072 (write_attribute_call1): Remove.
4073 (write_attribute_calln): Remove.
4074 (save_qualifier): Add missing semicolon.
4075
4076 (simple_exp,exp): Decomment (i.e., reactivate) code that was
4077 temporarily disabled to allow compilation with FSF head version.
4078
4079 (simple_exp syntax): Remove use of OP_ADA_ATTRIBUTE and
4080 use individual operators (OP_*) for all attributes.
4081 (exp syntax): Use write_int.
4082 Handle STRING literals with OP_STRING.
4083 (variable syntax): Add limit parameter to calls to
4084 write_object_renaming.
4085
4086 (temp_parse_space): New definition to hold entities that need
4087 only live until the next call to ada_parse.
4088 (string_to_operator): Rename fields of ada_opname_table entries.
4089
4090 (write_var_from_sym): Record block.
4091 (write_var_from_name): Minor reformatting.
4092 Make sure saved name is properly encoded in the case of multiple
4093 matches, and set its language to Ada.
4094 Update comment.
4095 Modify to indicate unresolved name as symbol in the UNRESOLVED
4096 namespace, allocated in temp_parse_space.
4097 (write_int): New function.
4098
4099 (write_object_renaming): Add max_depth parameter to limit
4100 chains of object renamings.
4101 Handle case where root of renaming expression is itself a renaming.
4102 Use temp_parse_space for temporary name buffer.
4103 Handle renamings to dereferenced pointers (___XEXA suffices).
4104
4105 (ada_parse, yyerror, string_to_operator,
4106 write_var_from_sym, write_var_from_name, write_attribute_call0,
4107 write_attribute_call1, write_attribute_calln,
4108 write_object_renaming): Protoize.
4109
4110 (_initialize_ada_exp): New function.
4111
4112 * ada-lang.c: Update copyright notice.
4113 General terminology change to conform to GNAT compiler usage:
4114 mangle => encode, demangle => decode
4115 Include gdb_obstack.h.
4116 Include gdb_regex.h
4117 Include frame.h
4118 Include hashtab.h
4119 Include completer.h
4120 Include gdb_stat.h
4121 Include block.h
4122 Include infcall.h
4123
4124 (ADA_RETAIN_DOTS): Make sure this is defined.
4125 (TRUNCATION_TOWARDS_ZERO): Define.
4126 (struct string_vector): Define.
4127 (unresolved_names): Remove definition.
4128 (xnew_string_vector): New function.
4129 (string_vector_append): New function.
4130 (extract_string): Make static.
4131 (ada_unqualified_name): New function.
4132 (add_angle_brackets): New function.
4133 (function_name_from_pc): New function.
4134 (place_on_stack): Rename to ensure_lval.
4135
4136 (ensure_lval): Renamed from place_on_stack.
4137 Make identity on lvals.
4138 Update comment.
4139 (is_nonfunction): New interface.
4140 Only symbols in LOC_CONST class can be enumerals.
4141 (fill_in_ada_prototype): Remove; now independent of language.
4142 (add_defn_to_vec): Add obstack and symtab arguments.
4143 Use obstack to hold collected definitions.
4144 (num_defns_collected): New function.
4145 (defns_collected): New function.
4146 (ada_resolve_subexp): Rename to resolve_subexp.
4147 (resolve_subexp): Renamed from ada_resolve_subexp.
4148 (ada_op_name): Return non-const result.
4149 (ada_decoded_op_name): Renamed from ada_op_name, now used for
4150 other purposes.
4151
4152 (to_fixed_array_type): Add declaration.
4153 (coerce_unspec_val_to_type): Remove offset parameter.
4154 (find_sal_from_funcs_and_line): New interface.
4155 (find_line_in_linetable): Ditto.
4156
4157 (all_sals_for_line): Rename to ada_sals_for_line and make
4158 global.
4159 Add new parameter. When set, do not ask the user to choose the
4160 instance, but use the first one found instead.
4161 Use given line number in returned sals.
4162 Fix comment.
4163 Skip the prologue if funfirstline is set.
4164 Correct for memory leak when 0 lines found.
4165
4166 (value_pos_atr): Use pos_atr.
4167 (pos_atr): New function.
4168 (standard_lookup): Add block parameter.
4169
4170 (makeTimeStart): Remove declaration and uses.
4171 (makeTimeStop): Remove declaration and uses.
4172
4173 (ada_completer_word_break_characters): Allow for VMS.
4174 (ADA_MAIN_PROGRAM_SYMBOL_NAME): Make into constant.
4175 (raise_sym_name): New constant.
4176 (raise_unhandled_sym_name): New constant.
4177 (raise_assert_sym_name): New constant.
4178 (process_raise_exception_name): New constant.
4179 (longest_exception_template): New constant.
4180 (warning_limit): New variable to limit warnings during expression
4181 evaluation.
4182 (warnings_issued): New variable to keep track of warnings issued.
4183 (known_runtime_file_name_patterns): New constant.
4184 (known_auxiliary_function_name_patterns): New constant.
4185 (symbol_list_obstack): New variable.
4186
4187 (field_name_match,is_suffix,is_suppressed_name,ada_encode,
4188 ada_decode,ada_match_name,encoded_ordered_before,equiv_types,
4189 lesseq_defined_than,is_nondebugging_type,is_name_suffix,wild_match,
4190 find_sal_from_funcs_and_line, ada_breakpoint_rewrite,
4191 ada_is_tagged_type, ada_is_parent_field, ada_is_wrapper_field,
4192 ada_variant_discrim_name, field_alignment, dynamic_template_type,
4193 ada_is_character_type, ada_is_aligner_type, ada_is_vax_floating_type):
4194 Replace use of deprecated STREQ and STREQN macros by calls to strncmp
4195 and strcmp.
4196
4197 (ada_get_field_index): New function.
4198 (lim_warning): New function.
4199 (ada_translate_error_message): New function.
4200 (MAX_OF_SIZE): New function.
4201 (MIN_OF_SIZE): New function.
4202 (UMAX_OF_SIZE): New function.
4203 (UMIN_OF_SIZE): New function.
4204 (discrete_type_high_bound): New function.
4205 (discrete_type_low_bound): New function.
4206 (base_type): New function.
4207 (do_command): Remove.
4208
4209 (ada_update_initial_language): Use language_ada, not language_unknown.
4210 (ada_encode): Renamed from ada_mangle.
4211 Obey ADA_RETAIN_DOTS.
4212 (ada_decode): Renamed from ada_demangle.
4213 Update coding conventions.
4214 (decoded_names_store): New hash table.
4215 (ada_decode_symbol): New function.
4216 (ada_la_decode): New function.
4217
4218 (modify_general_field): Correct computations of offset and bit
4219 position.
4220 (desc_base_type): Handle ref types, too.
4221 (ada_is_direct_array_type): New function.
4222
4223 (ada_is_simple_array): Rename to ada_is_simple_array_type.
4224 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
4225 (ada_is_bogus_array_descriptor,ada_type_of_array,
4226 ada_coerce_to_simple_array_ptr,ada_coerce_to_simple_array,
4227 ada_type_match,convert_actual,ada_evaluate_subexp): Use renamed
4228 ada_is_array_descriptor_type.
4229
4230 (ada_coerce_to_simple_array_type): Fix incorrect value freeing.
4231 (ada_is_packed_array_type): Handle pointers or
4232 references to packed arrays as well.
4233 (packed_array_type): Uncomment use of TYPE_FLAG_FIXED_INSTANCE.
4234 (decode_packed_array_type): Search for the packed array type
4235 symbol in the currently selected block and associated
4236 superblocks too.
4237 Use lookup_symbol again.
4238
4239 (decode_packed_array): Handle pointers and references.
4240 Update call to coerce_unspec_val_to_type.
4241 (decode_packed_array_type,value_subscript_packed): Limit warnings.
4242 (ada_value_primitive_packed_val): Improve comment.
4243
4244 (ada_index_type): Substitute int type for "undefined".
4245 (ada_index_type,ada_array_bound_from_type,ada_array_bound,
4246 ada_array_langth, ada_is_string_type): Use renamed
4247 ada_is_simple_array_type.
4248 (empty_array): New function.
4249
4250 (ada_resolve): Rename to resolve.
4251 (resolve): Make static.
4252 Call renamed resolve_subexp.
4253 Update comment.
4254 (ada_resolve_subexp): Rename to resolve_subexp.
4255 (resolve_subexp): Update comment.
4256 Decomment disabled code.
4257 Add LOC_COMPUTED* cases.
4258 Modify to use temporary struct symbols (marked as being in
4259 UNDEF_NAMESPACE) to indicate unresolved names, instead of
4260 OP_UNRESOLVED_VALUE.
4261 Remove OP_ATTRIBUTE; use individual opcodes for attributes.
4262 Add OP_STRING case.
4263 Remove OP_ARRAY.
4264 Use SYMBOL_PRINT_NAME instead of ada_demangle.
4265 Use new ada_lookup_symbol_list interface.
4266 Use new ada_resolve_function interface.
4267 Remove OP_TYPE case.
4268
4269 (ada_args_match): Idiot proof against null actuals.
4270 Use intermediate variables to clarify.
4271 (ada_resolve_function): Update comment and interface.
4272 (mangled_ordered_before): Rename to encoded_ordered_before and
4273 update comment.
4274 (sort_choices): Update comment and interface.
4275 Use SYMBOL_LINKAGE_NAME in place of SYMBOL_NAME.
4276 (user_select_syms): New interface.
4277 Use new sort_choices interface.
4278 Use SYMBOL_PRINT_NAME rather than SYMBOL_SOURCE_NAME.
4279 (possible_user_operator_p): Idiot-proof against null values.
4280 (ada_simple_renamed_entity): Don't make cleanup; rely on
4281 caller to free result string.
4282 Remove const from return type.
4283 (make_array_descriptor): Rename uses of place_on_stack to
4284 ensure_lval.
4285 Make sure that arrays are on stack.
4286
4287 (HASH_SIZE): Define.
4288 (struct cache_entry): Define.
4289 (cache_space): Define.
4290 (cache): Define.
4291 (clear_ada_sym_cache): New function.
4292 (find_entry): New function.
4293 (lookup_cached_symbol): New function.
4294 (defn_vector_size): Define.
4295 (cache_symbol): New function.
4296 (defn_symbols): Remove.
4297
4298 (standard_lookup): Use lookup_symbol_in_language to get effect of
4299 C lookup.
4300 Cache results.
4301
4302 (symbol_completion_match): New function.
4303 (symbol_completion_add): New function.
4304 (ada_make_symbol_completion_list): New function.
4305
4306 (ada_lookup_partial_symbol,ada_lookup_simple_minsym,
4307 add_symbols_from_enclosing_procs,remove_extra_symbols): Replace
4308 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
4309 (symtab_for_sym): Handle LOC_COMPUTED, LOC_COMPUTED_ARG.
4310
4311 (ada_lookup_simple_minsym): New function.
4312 (ada_lookup_minimal_symbol): Use ada_lookup_simple_minsym.
4313
4314 (add_symbols_from_enclosing_procs): New interface.
4315 Conditionalize more helpfully.
4316 Don't bother if program isn't running.
4317 Use new interface to get_frame_block.
4318 Limit number of levels searched with MAX_LEXICAL_LEVELS, just in case.
4319
4320 (remove_extra_symbols): New interface.
4321 (xget_renaming_scope): New function.
4322 (is_package_name): New function.
4323 (renaming_is_visible): New function.
4324 (remove_out_of_scope_renamings): New function.
4325
4326 (ada_lookup_symbol_list): New interface.
4327 Properly reinitialize the symbol list obstack.
4328 Don't call add_symbols_from_enclosing_procs if we start from a
4329 static or global block.
4330 Use new interfaces to ada_add_block_symbols, add_defn_to_vec,
4331 add_symbols_from_enclosing_procs.
4332 Add symtab data to cached entries.
4333 Handle symbols prefixed with
4334 "standard__" specially; strip prefix and don't look in local symbols.
4335 Do not include out of scope renaming symbols in list of
4336 symbols returned.
4337 Add const to block parameter.
4338 Move check for non-local, non-global symbols earlier.
4339 Remove timing stuff.
4340 (ada_lookup_symbol): New interface.
4341 Find symtab as well.
4342 (ada_lookup_symbol_nonlocal): New function.
4343
4344 (is_name_suffix): Enhance suffix detection to recognize
4345 an optional "__[:digit:]+" before any "\.[:digit:]+" suffix.
4346 (is_dot_digits_suffix): New function.
4347 (wild_match): Ignore ".[:digit:]*" suffixes during matches.
4348
4349 (ada_add_block_symbols): New interface. Use obstack to return results
4350 in a vector of struct ada_symbol_infos. Add symtab argument.
4351 Use new interface to add_defn_to_vec.
4352 Remove calls to fill_in_ada_prototype.
4353 Use BLOCK_BUCKETS, BLOCK_BUCKET.
4354
4355 (ada_finish_decode_line_1): Add const qualification to local to fix
4356 warning.
4357 Start looking in static block for functions to avoid attempts
4358 to search frame chain for up-level variables.
4359 Adapt to new ada_sals_for_line interface.
4360 Use new interfaces to ada_lookup_symbol_list and user_select_syms.
4361 Handle quoting of the function name inside the spec string.
4362 Skip prologue when funfirstline is set and update the
4363 function documentation to that effect.
4364
4365 (debug_print_lines, debug_print_block, debug_print_blocks,
4366 debug_print_symtab): Remove.
4367
4368 (ada_main_name): New function.
4369 (ada_exception_breakpoint_type): New function.
4370 (is_known_support_routine): New function.
4371 (ada_find_printable_frame): Renamed from find_printable_frame and made
4372 global.
4373 Remove level parameter.
4374 Use new interface to select_frame.
4375
4376 (begin_command): Remove.
4377 (ada_adjust_exception_stop): New function.
4378 (ada_print_exception_stop): New function.
4379 (exception_name_from_cond): New function.
4380 (ada_report_exception_break): Replace disabled code with
4381 conditionalization on GNAT_GDB.
4382 Get the exception name from the condition string.
4383 Remove and move functionality into new functions
4384 ada_print_exception_breakpoint_task and
4385 ada_print_exception_breakpoint_nontask.
4386 (error_breakpoint_runtime_sym_not_found): New function.
4387 (is_runtime_sym_defined): New function.
4388 (ada_breakpoint_rewrite): Uncomment suppressed code.
4389 Use symbolic error-message and runtime-symbol names.
4390 Surround runtime symbol names in quotes.
4391 Allow non-specific breakpoints on exceptions and assertions before
4392 program starts.
4393
4394 (ada_is_tagged_type): Add parameter.
4395 (ada_is_tag_type): New function.
4396 (ada_tag_type): Use new ada_lookup_struct_elt_type interface.
4397 (ada_variant_discrim_type): Ditto.
4398 (value_tag_from_contents_and_address): New function.
4399 (type_from_tag): New function.
4400 (struct tag_args): New structure used to communicate with
4401 ada_tag_name_1.
4402 (ada_tag_name_1): New function.
4403 (ada_tag_name): New function.
4404
4405 (ada_scan_number): Update comment.
4406 (find_struct_field): New function.
4407 (ada_search_struct_field): Make static.
4408 (ada_value_struct_elt): New version that returns references when
4409 given pointers or references to structs.
4410 (ada_lookup_struct_elt_type): Add 'refok' parameter.
4411 (ada_which_variant_applies): Use new ada_lookup_struct_elt_type
4412 interface.
4413 (ada_value_ind): Use new ada_to_fixed_value interface.
4414 (ada_coerce_ref): Ditto.
4415 (field_offset): Remove.
4416
4417 (ada_find_any_symbol): New function, extracted from ada_find_any_type.
4418 (ada_find_renaming_symbol): New function.
4419 (ada_prefer_type): Prefer named types over unnamed ones.
4420 (variant_field_index): New function.
4421 (contains_variant_part): Removed: subsumed by variant_field_index.
4422 (ada_template_to_fixed_record_type): New function, mostly from
4423 template_to_fixed_record_type.
4424 (template_to_fixed_record_type):
4425 Do not scan the type fields beyond the last one; prevents a
4426 potential SEGV.
4427 Handle case where variant field is listed BEFORE discriminant it
4428 depends on.
4429 Fix calculation of record length when bit length is
4430 not evenly divisible by char length.
4431 Move code to ada_template_to_fixed_record_type and call it.
4432
4433 (template_to_static_fixed_type): Revise comment.
4434 Modify to work on ordinary record types as well as templates,
4435 so as to handle fields that use ___XVE or ___XVU encodings.
4436 (to_record_with_fixed_variant_part): Fill out comment.
4437 Initialize C++ stuff in right type.
4438 Allow case where DVAL is null.
4439 Handle case where variant field is not last.
4440 Fix typo concerning record length.
4441 (to_fixed_record_type): Decomment disabled code.
4442 (to_fixed_record_type): Use variant_field_index instead of
4443 contains_variant_part.
4444 (to_fixed_variant_branch_type): Ditto.
4445 (to_fixed_array_type): Decomment disabled code.
4446 (ada_to_fixed_type): Convert tagged types to the specific type.
4447 Deactivate the size-check for array types in order to avoid
4448 some false size alarms.
4449 (to_static_fixed_type): Decomment disabled code.
4450 Modify to call template_to_static_fixed_type
4451 on ordinary structs, not just ___XVE- and ___XVU-encoded fields.
4452 (ada_to_fixed_value_create): Renamed version of old ada_to_fixed_value.
4453 Remove valaddr argument, as it is never really used.
4454 (ada_to_fixed_value): Change interface to act on single struct value*
4455 operand.
4456 (adjust_pc_past_prologue): New function.
4457 (ada_attribute_name): Modify to take enum exp_opcode argument.
4458
4459 (ada_enum_name): Recognize new homonym-distinguishing convention.
4460 Adjust local variable's type to remove compiler warning.
4461 Fix a small problem in the part that unqualifies the enumeration name.
4462 (ada_value_binop): New function.
4463 (ada_value_equal): New function.
4464
4465 (ada_evaluate_subexp): Use new ada_lookup_struct_elt_type interface.
4466 Don't give error message when not doing normal evaluation
4467 and a tagged type doesn't seem to contain a structure member.
4468 Give error message for packed arrays.
4469 For indexing arrays, handle pointers to packed arrays correctly.
4470 Handle case of 'first and 'last attributes of bare integral type
4471 without encoded subtype info.
4472 Remove some unnecessary casts.
4473 Fix uninitialized value of type in computing 'first, 'last, or 'length
4474 of array object.
4475 Add BINOP_EQUAL and BINOP_NOTEQUAL cases.
4476 Remove binop_user_defined_p tests and value_x_binop and value_x_unop
4477 calls.
4478 Attributes are now exp_opcode values.
4479 Correct treatment of 'modulus.
4480 Better error message for taking 'length of wrong kind of type;
4481 improve comment.
4482 Change EVAL_NORMAL to noside for consistency.
4483 Use ada_value_binop for DIV, MOD, REM.
4484 Make special case out of array of length 0, since an argument
4485 of 0 upsets some platforms' malloc.
4486 Use OP_STRING instead of OP_ARRAY.
4487 For slice, add check that we have an array type before extracting
4488 a slice out of it. Avoids a SEGV.
4489 When evaluating an array slice, if the array type is a reference to
4490 an aligner type, then replace the aligner type by the actual type.
4491 Decomment disabled code.
4492 Remove some dead code.
4493 Use temporary struct symbols (marked as being in UNDEF_NAMESPACE)
4494 to indicate unresolved names, instead of OP_UNRESOLVED_VALUE.
4495 Rename BINOP_MBR to BINOP_IN_BOUNDS, TERNOP_MBR to TERNOP_IN_RANGE,
4496 and UNOP_MBR to UNOP_IN_RANGE.
4497 If an array type has a parallel ___XVE type, then use it.
4498 Turn arrays into pointers for lvalue arrays.
4499 Change TERNOP_SLICE code to work even when bounds are unknown, ignoring
4500 bounds error and handle 0-length slices.
4501 Use lim_warning.
4502 When selecting fields, apply ada_to_fixed_value (because the fields
4503 might have ___XVU or ___XVE encodings even if not dynamic.)
4504 Use ada_to_fixed_value_create and new ada_to_fixed_value interface.
4505 (ada_is_system_address_type): New function.
4506
4507 (get_var_value): Use new interface to ada_lookup_symbol_list.
4508 (get_int_var_value): New interface.
4509 (to_fixed_range_type): Allow unknown bound, with warning.
4510 (ada_is_modular_type): Decomment disabled code.
4511 (ADA_OPERATORS): New definition.
4512 (ada_operator_length): New function.
4513 (ada_expr_op_name): New function.
4514 (ada_forward_operator_length): New function.
4515 (ada_dump_subexp_body): New function.
4516 (ada_print_subexp): New function.
4517 (ada_exp_descriptor): New constant.
4518 (ada_op_print_tab): Add 'size. Remove FIXMEs.
4519 (ada_language_defn): Add ada_exp_descriptor entry.
4520 Change ada_parse => parse.
4521 Add post-parser entry.
4522 Use ada-specific non-local symbol lookup.
4523 Don't use C-style arrays.
4524 String lower-bound is 1.
4525 Decomment disabled code.
4526 (parse): New function.
4527 New fields ada_translate_error_message, ada_lookup_symbol,
4528 ada_lookup_minimal_symbol.
4529
4530 * ada-lang.h: Update copyright dates.
4531 Replace the mangle/demangle terminology throughout by the
4532 more appropriate encode/decode one.
4533 Include breakpoint.h.
4534 Forward declare struct partial_symbol, struct block.
4535 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Define.
4536 (EXTRACT_ADDRESS): Remove.
4537 (EXTRACT_INT): Remove.
4538 (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Define.
4539 (MAX_ENCLOSING_FRAME_LEVELS): Define.
4540 (MAX_RENAMING_CHAIN_LENGTH): Define.
4541 (struct ada_opname_map): mangled => decoded, demangled=>encoded.
4542
4543 (enum task_states): Remove.
4544 ada_task_states: Remove.
4545 (fat_string): Remove.
4546 (struct entry_call): Remove.
4547 (struct task_fields): Remove.
4548 (struct task_entry): Remove.
4549
4550 (struct ada_symbol_info): Define.
4551 (enum ada_attribute): Remove.
4552 (enum ada_operator): Define.
4553
4554 (ada_get_field_index): Declare.
4555 (ada_coerce_to_simple_array): Rename to ada_coerce_to_simple_array_ptr.
4556 (ada_is_simple_array): Rename to ada_is_simple_array_type.
4557 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
4558 (ada_lookup_symbol_list): New interface.
4559 (ada_decode_symbol): Declare.
4560 (ada_decode): Declare.
4561 (ada_lookup_symbol): New interface.
4562 (ada_update_initial_language): Declare.
4563 (ada_lookup_simple_minsym): Declare.
4564 (user_select_syms): New interface.
4565 (ada_sals_for_line): Declare.
4566 (ada_is_tagged_type): New interface.
4567 (ada_tag_name): Declare.
4568 (ada_lookup_struct_elt_type): Remove declaration.
4569 (ada_search_struct_field): Remove declaration.
4570 (ada_attribute_name): New interface.
4571 (ada_is_system_address_type): Declare.
4572 (ada_to_fixed_value): Remove declaration.
4573 (ada_template_to_fixed_record_type_1): Declare.
4574 (get_int_var_value): New interface.
4575 (ada_find_any_symbol): Declare.
4576 (ada_find_renaming_symbol): Declare.
4577 (ada_mangle): Rename to ada_encode.
4578 (ada_simple_renamed_entity): Remove const.
4579 (ada_main_name): Declare.
4580 (get_current_task): Rename to ada_get_current_task.
4581 (get_entry_number): Remove declaration.
4582 (ada_report_exception_break): Remove declaration.
4583 (ada_print_exception_breakpoint_nontask): Declare.
4584 (ada_print_exception_breakpoint_task): Declare.
4585 (ada_find_printable_frame): Declare.
4586
4587 * ada-lex.l: Update copyright notices.
4588 Use xmalloc and xfree instead of malloc and free.
4589 Use new interface to name_lookup.
4590 Use new interface to
4591 ada_mangle=>ada_encode.
4592 Redo handling of '$...' variable to parallel current treatment
4593 in c-exp.y.
4594 (resize_tempbuf, canonicalizeNumeral, is_digit_in_base,
4595 digit_to_int, strtoulst, processInt, processReal, processId,
4596 block_lookup, name_lookup, find_dot_all, subseqMatch, processAttribute,
4597 yywrap): Protoize.
4598
4599 (processInt): Use cast to remove harmless warning.
4600 (processReal): Modify to get rid of compiler warning on scan formats.
4601
4602 (processId): Replace xmalloc with obstack_alloc for name and remove
4603 call to ada_name_string_cleanup.
4604 Remove obsolete disabled code.
4605 (name_lookup): Ditto.
4606 New interface.
4607 Use obsavestring on temp_parse_space instead of savestring
4608 on name, and remove call to ada_name_string_cleanup.
4609 Free string returned from ada_simple_renamed_entity.
4610 Use new interface to ada_lookup_symbol_list.
4611 Decomment disabled code.
4612 Treat LOC_COMPUTED and LOC_COMPUTED_ARG symbols as variables,
4613 not types.
4614 When a type name lookup succeeds as a result of
4615 lookup_primitive_typename, check for regular type entry that has not
4616 yet been read in.
4617 Limit length of chain of renamed symbols we are willing to follow.
4618 Do not break names beginning with "standard__" into segments.
4619 (block_lookup): Use new interface to ada_lookup_symbol_list.
4620
4621 * ada-typeprint.c: Update copyright notice.
4622 (demangled_type_name): Rename to decoded_type_name.
4623 (ada_typedef_print): Use SYMBOL_PRINT_NAME.
4624 (print_range_bound): Correct handling of negative
4625 bounds that make the index type looked unsigned under STABS.
4626 (print_dynamic_range_bound): Use new interface to get_int_var_value.
4627 (print_range_type_named): Use the builtin int type if no type
4628 corresponding to the given type name could be found.
4629 (print_array_type): ada_is_simple_array => ada_is_simple_array_type.
4630 Add some bullet-proofing.
4631 (print_variant_clauses): Allow for variant branches with ___XVU
4632 encodings that are not dynamic fields.
4633 Use new interface to ada_is_tagged_type.
4634 (print_record_type): Allow for fields with ___XVE encodings that
4635 are not dynamic fields.
4636 Use new interface to ada_is_tagged_type.
4637 (ada_print_type): ada_is_array_descriptor =>
4638 ada_is_array_descriptor_type.
4639
4640 * ada-valprint.c: Update copyright notice.
4641 Include gdb_string.h
4642 Include infcall.h
4643 (ui_memcpy): New function.
4644 (ada_print_floating): New function.
4645 (ada_print_str): Order arguments correctly.
4646 Correct handling of empty arrays and arrays of 0-length items.
4647 ada_is_array_descriptor => ada_is_array_descriptor_type
4648 Print values of type System.Address in hexadecimal format.
4649 Use ada_print_floating to print floating-point numbers in Ada format.
4650 Print class tag values with type names.
4651 No longer print the address of reference values. Avoids
4652 a potential confusion.
4653 (ada_value_print): Stop printing the object type for reference
4654 values, but preserve that behavior for access types. Avoids
4655 a potential confusion.
4656 Simplify one conditional expression, as the first part is now
4657 necessarily true.
4658 ada_is_array_descriptor => ada_is_array_descriptor_type
4659 Add check for arrays for null records, and print them by hand.
4c4b4cd2 4660
f65f91b5
JB
46612004-06-01 Jim Blandy <jimb@redhat.com>
4662
4663 * ppc-tdep.h: Delete unused 'regoff' member.
4664 * rs6000-tdep.c (rs6000_gdbarch_init): Don't initialize it.
4665
d4687fa0
MC
46662004-06-01 Michael Chastain <mec.gnu@mindspring.com>
4667
4668 Fix PR symtab/1661.
4669 * hpread.c (hpread_pxdb_needed): Call memset after alloca.
4670 (hpread_read_struct_type): Likewise.
4671
de169ec9
AC
46722004-06-01 Andrew Cagney <cagney@gnu.org>
4673
c6902d46
AC
4674 * mi/mi-cmd-env.c (env_execute_cli_command): Use xstrprintf
4675 instead of xasprintf.
4676 * mi/mi-main.c (mi_error_last_message, mi_cmd_exec_interrupt)
4677 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
4678 (mi_cmd_data_list_register_names)
4679 (mi_cmd_data_list_changed_registers)
4680 (mi_cmd_data_list_register_values)
4681 (get_register, mi_cmd_data_write_register_values)
4682 (mi_cmd_data_write_register_values)
4683 (mi_cmd_data_assign, mi_cmd_data_evaluate_expression)
4684 (mi_cmd_target_download, mi_cmd_target_select)
4685 (mi_cmd_data_read_memory, mi_cmd_data_write_memory)
4686 (mi_execute_cli_command, mi_execute_async_cli_command)
4687 (mi_execute_async_cli_command): Ditto.
4688 * mi/mi-interp.c (mi_cmd_interpreter_exec) Ditto.
4689 * mi/mi-cmd-var.c (mi_cmd_var_create): Ditto.
4690
6085fc2d
AC
4691 * mi/mi-cmds.h (mi_error_last_message): Delete declaration.
4692 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call
4693 error_last_message instead of mi_error_last_message.
4694 * mi/mi-main.c (mi_error_last_message): Delete function.
4695
de169ec9
AC
4696 * mi/mi-main.c (mi_cmd_data_read_memory): Add missing return for
4697 "invalid number of columns" error. Delete redundant "out of
4698 memory" check.
4699
1fc7d519
MK
47002004-05-31 Mark Kettenis <kettenis@gnu.org>
4701
6cfb2041
MK
4702 * i386bsd-nat.c: Don't include <sys/procfs.h>.
4703 (gregset_t, fpregset_t): Remove typedefs.
4704 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Remove macros.
4705 (REG_OFFSET): Rename argument.
4706 (i386bsd_r_reg_offset): Rename from reg_offset.
4707 (REG_ADDR): Remove macro.
4708 (cannot_fetch_register, supply_gregset, fill_gregset): Remove
4709 functions.
4710 (i386bsd_supply_gregset, i386bsd_collect_gregset): New functions.
4711 (fetch_inferior_registers): Use `struct reg' and `struct fpreg'
4712 instead of gregset_t and fpregset_t. Use i386bsd_supply_gregset
4713 instead of supply_gregset.
4714 (store_inferior_registers): Use `struct reg' and `struct fpreg'
4715 instead of gregset_t and fpregset_t. Use i386bsd_collect_gregset
4716 instead of fill_gregset.
4717 (register_u_addr): Use i386_r_reg_offset instead of REG_ADDR.
4718
1fc7d519
MK
4719 * i386bsd-nat.c: Don't include "gregset.h".
4720 (supply_gregset, fill_gregset): Make static.
4721 (supply_fpregset, fill_fpregset): Remove.
4722 * Makefile.in (i386bsd-nat.o): Update dependencies.
4723
2c34abbe
MK
47242004-05-30 Mark Kettenis <kettenis@gnu.org>
4725
448724fb
MK
4726 * fbsd-proc.c: Include "regcache.h", "regset.h" and
4727 "gdb_assert.h". Con't include "gregset.h".
4728 (fbsd_make_corefile_notes): Use regset-based core file support
4729 instead off fill_gregset and fill_fpregset.
4730 * Makefile.in (fbsd-proc.o): Update dependencies.
4731
5ca8ca7c
MK
4732 * m88k-tdep.c (m88k_analyze_prologue): Fix handling of branch
4733 instructions.
4734 (m88k_frame_prev_register): Simplify code a bit.
4735
593adc23
MK
4736 * amd64-tdep.c (amd64_supply_fpregset): Adjust comment.
4737 (amd64_collect_fpregset): New function.
4738 (amd64_regset_from_core_section): Use amd64_collect_fpregset.
4739
8d1b517b
MK
4740 * hppa-tdep.h (hppa_regnum): Add HPPA_R31_REGNUM.
4741
7fdafb5a
MK
4742 * i386-tdep.c (i386_supply_gregset): Adjust comment.
4743 (i386_collect_gregset): New function.
4744 (i386_supply_fpregset): Adjust comment.
4745 (i386_collect_fpregset): New function.
4746 (i386_regset_from_core_section): Use i386_collect_gregset and
4747 i386_collect_fpregset.
4748
8693c419
MK
4749 * hppa-tdep.c (hppa_frame_prev_register_helper): Reimplement to
4750 handle VALUEP being null.
4751
2c34abbe
MK
4752 * regset.h (collect_regset_ftype): Unconstify fourth argument.
4753
45d134d8
MK
47542004-05-29 Mark Kettenis <kettenis@gnu.org>
4755
1698f4e7
MK
4756 * MAINTAINERS: Undelete m88k. Add myself as maintainer.
4757
45d134d8
MK
4758 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Adjust for new
4759 assembler in OpenBSD 3.5-current.
4760 (amd64obsd_sigcontext_addr): Likewise.
4761
691d145a
JB
47622004-05-28 Jim Blandy <jimb@redhat.com>
4763
4764 * rs6000-tdep.c: Use the modern gdbarch methods for handling the
4765 register set, so our regcache isn't declared "legacy" and our E500
4766 pseudoregister read and write functions aren't ignored.
4767 (rs6000_register_byte, rs6000_register_raw_size,
4768 rs6000_register_virtual_type, rs6000_register_convertible,
4769 rs6000_register_convert_to_virtual,
4770 rs6000_register_convert_to_raw): Deleted.
4771 (rs6000_register_type, rs6000_convert_register_p,
4772 rs6000_register_to_value, rs6000_value_to_register): New
4773 functions.
4774 (rs6000_gdbarch_init): Don't register
4775 gdbarch_deprecated_register_size,
4776 gdbarch_deprecated_register_bytes,
4777 gdbarch_deprecated_register_byte,
4778 gdbarch_deprecated_register_raw_size,
4779 gdbarch_deprecated_register_virtual_type,
4780 gdbarch_deprecated_register_convertible,
4781 gdbarch_deprecated_register_convert_to_virtual, or
4782 gdbarch_deprecated_register_convert_to_raw methods. Instead,
4783 register gdbarch_register_type, gdbarch_convert_register_p,
4784 gdbarch_register_to_value, and gdbarch_value_to_register methods.
4785
18ed0c4e
JB
47862004-05-26 Jim Blandy <jimb@redhat.com>
4787
4788 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): Deleted.
4789 (rs6000_stab_reg_to_regnum, rs6000_dwarf2_reg_to_regnum): New
4790 functions, updated to match the register numberings used in GCC.
4791 (rs6000_gdbarch_init): Register rs6000_stab_reg_to_regnum and
4792 rs6000_dwarf2_reg_to_regnum as register number conversions
4793 functions for STABS and Dwarf2.
4794
779af9e3
RC
47952004-05-26 Randolph Chung <tausq@debian.org>
4796
4797 * infttrace.h (target_waitkind): Forward declare type instead of pulling
4798 in header file.
4799
c23968a2
JB
48002004-05-25 Joel Brobecker <brobecker@gnat.com>
4801
4802 * NEWS: Document new "start" command.
4803
3a7d1c27
RC
48042004-05-25 Randolph Chung <tausq@debian.org>
4805
4806 * hppa-linux-tdep.c (hppa_linux_init_abi): sizeof(long double) == 8 on
4807 hppa-linux.
4808
43613416
RC
48092004-05-25 Randolph Chung <tausq@debian.org>
4810
4811 * hppa-hpux-tdep.c (offsetof): Define.
4812 (hppa_hpux_pc_in_sigtramp, hppa32_hpux_frame_saved_pc_in_sigtramp)
4813 (hppa32_hpux_frame_base_before_sigtramp)
4814 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
4815 (hppa64_hpux_frame_saved_pc_in_sigtramp)
4816 (hppa64_hpux_frame_base_before_sigtramp)
4817 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): Remove unused
4818 functions.
4819 (struct hppa_hpux_sigtramp_unwind_cache, hppa_hpux_tramp_reg)
4820 (hppa_hpux_sigtramp_frame_unwind_cache)
4821 (hppa_hpux_sigtramp_frame_this_id)
4822 (hppa_hpux_sigtramp_frame_prev_register)
4823 (hppa_hpux_sigtramp_frame_unwind)
4824 (hppa_hpux_sigtramp_unwind_sniffer): New signal trampoline unwinder.
4825 (hppa_hpux_init_abi): Register sigtramp unwinder.
4826 * Makefile.in (hppa-hpux-tdep.o): Update dependencies.
4827
6d1be3f1
RC
48282004-05-25 Randolph Chung <tausq@debian.org>
4829
4830 * hppa-tdep.c (hppa_fallback_frame_cache): Handle stack adjustment,
4831 and multiple stack unwinds.
4832 (hppa_stub_unwind_sniffer): Handle unwind from pc == 0.
4833
97c34f65
AC
48342004-05-25 Andrew Cagney <cagney@gnu.org>
4835
4836 * symfile.h (symbol_file_add_from_memory): Delete declaration.
4837 * symfile-mem.h: Delete file.
4838 * symfile-mem.c: Do not include "symfile-mem.h".
4839 (symbol_file_add_from_memory): Make static. Use "struct bfd" and
4840 "struct bfd_section". When an error do not bother returning NULL.
4841 (add_symbol_file_from_memory_command): Use "struct bfd" and
4842 "struct bfd_section".
4843 * Makefile.in (symfile_mem_h): Delete.
4844 (symfile-mem.o): Update dependencies.
4845
e23cbd82
NR
48462004-05-25 Nick Roberts <nickrob@gnu.org>
4847
4848 * gdb-mi.el: New file.
4849
20d2ca3e
AC
48502004-05-25 Andrew Cagney <cagney@gnu.org>
4851
4852 * inftarg.c: Include "observer.h".
4853 (child_attach, child_create_inferior): Notify inferior_created.
4854 * corelow.c: Include "observer.h".
4855 (core_open): Notify inferior_created.
4856 * Makefile.in (inftarg.o, corelow.o): Update dependencies.
4857
c27cda74
AC
48582004-05-25 Andrew Cagney <cagney@gnu.org>
4859
4860 * target.h (struct target_ops): Add from_tty to
4861 to_create_inferior.
4862 (target_create_inferior, find_default_create_inferior): Update.
4863 * infcmd.c (run_command): Update.
4864 * wince.c (child_create_inferior): Update.
4865 * win32-nat.c (child_create_inferior): Update.
4866 * uw-thread.c (uw_thread_create_inferior): Update.
4867 * thread-db.c (thread_db_create_inferior): Update.
4868 * target.c (debug_to_create_inferior)
4869 (find_default_create_inferior): Update.
4870 (maybe_kill_then_create_inferior): Update.
4871 * sol-thread.c (sol_thread_create_inferior): Update.
4872 * remote.c (extended_remote_async_create_inferior)
4873 (extended_remote_create_inferior): Update.
4874 * remote-vx.c (vx_create_inferior): Update.
4875 * remote-st.c (st2000_create_inferior): Update.
4876 * remote-sim.c (gdbsim_create_inferior): Update.
4877 * remote-sds.c (sds_create_inferior): Update.
4878 * remote-rdp.c (remote_rdp_create_inferior): Update.
4879 * remote-rdi.c (arm_rdi_create_inferior): Update.
4880 * remote-m32r-sdi.c (m32r_create_inferior): Update.
4881 * remote-e7000.c (e7000_create_inferior): Update.
4882 * procfs.c (procfs_create_inferior): Update.
4883 * ocd.c (ocd_create_inferior): Update.
4884 * ocd.h (ocd_create_inferior): Update.
4885 * nto-procfs.c (procfs_create_inferior): Update.
4886 * monitor.c (monitor_create_inferior): Update.
4887 * lin-lwp.c (lin_lwp_create_inferior): Update.
4888 * inftarg.c (child_create_inferior): Update.
4889 * hpux-thread.c (hpux_thread_create_inferior): Update.
4890 * gnu-nat.c (gnu_create_inferior): Update.
4891
1db2a798
AC
48922004-05-25 Andrew Cagney <cagney@gnu.com>
4893
4894 * MAINTAINERS: Update e-mail address.
4895
007d08bb
RC
48962004-05-24 Randolph Chung <tausq@debian.org>
4897
4898 * thread.c (info_threads_command, thread_apply_all_command)
4899 (thread_apply_command, thread_command, do_captured_thread_select):
4900 Remove HPUXHPPA-specific code.
4901
69e7b95e
RC
49022004-05-24 Randolph Chung <tausq@debian.org>
4903
4904 * hppa-tdep.c (SR4EXPORT_LDIL_OFFSET, SR4EXPORT_LDO_OFFSET): Remove
4905 unused symbols.
4906 * hppa-tdep.h (HPPA_INSTRUCTION_SIZE): Remove, since there are no more
4907 references.
4908
a4d5f2e0
JB
49092004-05-24 Joel Brobecker <brobecker@gnat.com>
4910
4911 * infcmd.c (kill_if_already_running): New function, extracted
4912 from run_command().
4913 (run_command): Replace extracted code by call to
4914 kill_if_already_running().
4915 (start_command): New function.
4916 (_initialize_infcmd): Add "start" command.
4917
bf2ca189
MK
49182004-05-24 Mark Kettenis <kettenis@gnu.org>
4919
4920 Add OpenBSD/m88k support.
4921 * NEWS (New native configurations): Mention OpenBSD/m88k.
4922 * m88k-tdep.c, m88k-tdep.h, m88kbsd-nat.c, config/m88k/nm-obsd.h,
4923 config/m88k/obsd.mh, config/m88k/obsd.mt: New files.
4924 * Makefile.in (m88k_tdep_h): New variable.
4925 (ALLDEPFILES): Add m88k-tdep.c and m88kbsd-nat.c.
4926 (m88kbsd-nat.o, m88k-tdep.o): New dependencies.
4927 * configure.host: Add m88*-*-openbsd*.
4928 * configure.tgt: Add m88*-*-openbsd*.
4929
80fadb11
JB
49302004-05-24 Jim Blandy <jimb@redhat.com>
4931
4932 * MAINTAINERS (tracing bytecode stuff): Allow global maintainers
4933 to approve changes.
4934
19e2d14b
KB
49352004-05-24 Kevin Buettner <kevinb@redhat.com>
4936
4937 * symtab.c (fixup_section): Search section table when lookup by
4938 name fails.
4939
1b07b470
RC
49402004-05-24 Randolph Chung <tausq@debian.org>
4941
4942 * hppa-tdep.c: Fix handling of 8-byte structures; they should not
4943 be "small_struct".
4944
368702b1
MK
49452004-05-24 Mark Kettenis <kettenis@gnu.org>
4946
5df97fde
MK
4947 * m68kbsd-nat.c (m68kbsd_collect_gregset): Specify correct
4948 register number in regcache_raw_collect call.
4949 (m68kbsd_collect_fpregset): Likewise.
4950 * vaxbsd-nat.c (vaxbsd_collect_gregset): Likewise.
4951
368702b1
MK
4952 * regset.h (struct regset): Add back `regset' member.
4953
a770d4ec
MK
49542004-05-23 Mark Kettenis <kettenis@gnu.org>
4955
70f9f479
MK
4956 * configure.in: Check for td_pcb in `struct thread'.
4957 * configure, config.in: Regenerated.
4958
2e16d79e
MK
4959 * dpx2-nat.c: Remove file.
4960 * Makefile.in (ALLDEPFILES): Remove dpx2-nat.c.
4961 (dpx2-nat.o): Remove dependencies.
4962
492cf391
MK
4963 * amd64obsd-nat.c: Include "gdbcore.h", "regcache.h",
4964 <sys/types.h>, <machine/frame.h>, <machine/pcb.h> and "bsd-kvm.h".
4965 (amd64obsd_supply_pcb): New function.
4966 (_initialize_amd64obsd_nat): Enable libkvm interface.
4967 * Makefile.in (amd64obsd-nat.o): Update dependencies.
4968 * config/i386/obsd64.mh (NATDEPFILES): Add bsd-kvm.o
4969 (LOADLIBES): New variable.
4970
a770d4ec
MK
4971 * sparcnbsd-nat.c: Include "gdbcore.h", "regcache.h",
4972 <sys/types.h>, <machine/pcb.h> and "bsd-kvm.h".
4973 (sparc32nbsd_supply_pcb): New function.
4974 (_initialize_sparcnbsd_nat): Enable libkvm interface.
4975 * Makefile.in (sparcnbsd-nat.o): Update dependencies.
4976 * config/sparc/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
4977 (LOADLIBES): New variable.
4978
9ea75c57
MK
49792004-05-22 Mark Kettenis <kettenis@gnu.org>
4980
2e0c3539
MK
4981 * bsd-kvm.c, bsd-kvm.h: New files.
4982 * i386fbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
4983 "bsd-kvm.h".
4984 (i386fbsd_supply_pcb): New function.
4985 * Makefile.in (ALLDEPFILES): Add bsd-kvm.c.
4986 (i386fbsd-nat.o): Update dependencies.
4987 (bsd_kvm_h): New variable.
4988 (bsd-kvm.o): New dependency.
4989 * config/i386/fbsd.mh (NATDEPFILES): Add bsd-kvm.o.
4990 (LOADLIBES): New variable.
4991
9ea75c57
MK
4992 * regset.c: Tweak comment.
4993 (regset_alloc): Remove descr argument. Use GDBARCH_OBSTACK_ZALLOC
4994 macro.
4995 * regset.h: Update copyright year.
4996 (struct regset): Remove `descr' member, add `gdbarch' member.
4997 (regset_alloc): Adjust prototype and comment.
4998 * i386-tdep.c (i386_supply_gregset): Get TDEP from REGSET->arch.
4999 (i386_supply_fpregset): Likewise.
5000 (i386_regset_from_core_section): Update call to regset_alloc.
5001 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get TDEP from
5002 REGSET->arch.
5003 (i386obsd_aout_regset_from_core_section): Update call to
5004 regset_alloc.
5005 * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Get TDEP from
5006 REGSET->arch.
5007 (i386nbsd_aout_regset_from_core_section): Update call to
5008 regset_alloc.
5009 * amd64-tdep.c (amd64_supply_fpregset): Get TDEP from
5010 REGSET->arch.
5011 (amd64_regset_from_core_section): Update call to regset_alloc.
5012 * amd64obsd-tdep.c (amd64obsd_supply_regset): Get TDEP from
5013 REGSET->arch.
5014 (amd64obsd_regset_from_core_section): Update call to regset_alloc.
5015 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Directly pass
5016 &sparc32nbsd_gregset in sparc32_supply_gregset call.
5017 (sparc32nbsd_init_abi): Update call to regset_alloc.
5018 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Directly pass
5019 &sparc64obsd_core_gregset in sparc64_supply_gregset call.
5020 (sparc64obsd_init_abi): Update call to regset_alloc.
5021 * sparc64nbsd-tdep.c (sparc64nbsd_supply_gregset): Directly pass
5022 &sparc64nbsd_gregset in sparc64_supply_gregset call.
5023 (sparc64nbsd_init_abi): Update call to regset_alloc.
5024 * sparc64fbsd-tdep.c (sparc64fbsd_supply_gregset): Directly pass
5025 &sparc64fbsd_gregset in sparc64_supply_gregset call.
5026 (sparc64fbsd_init_abi): Update call to regset_alloc.
5027
867e2dc5
JB
50282004-05-22 Jim Blandy <jimb@redhat.com>
5029
5030 * ppc-tdep.h (spe_register_p): New declaration.
5031 (struct gdbarch_tdep): New members: ppc_acc_regnum and
5032 ppc_spefscr_regnum.
5033 * rs6000-tdep.c (spe_register_p): New function.
5034 (rs6000_dwarf2_stab_reg_to_regnum): Recognize numbers for acc and
5035 spefscr.
5036 (rs6000_gdbarch_init): Initialize the new members of the tdep
5037 structure.
5038
617a4cba
JB
50392004-05-21 Jim Blandy <jimb@redhat.com>
5040
0397dee1
JB
5041 * ppc-linux-nat.c (fetch_register): Move code back to be next
5042 to the comment that describes it. (Moved code, instead of
5043 comment, for symmetry with store_register.)
5044
617a4cba
JB
5045 Allocate regset structures in the gdbarch's obstack, not using
5046 xmalloc.
5047 * regset.c (regset_alloc): Renamed from regset_xmalloc.
5048 Add 'arch' argument. Allocate the regset on arch's obstack, not
5049 using xmalloc.
5050 * regset.h (regset_alloc): Update declaration.
5051 * am64-tdep.c (amd64_regset_from_core_section): Update call; pass
5052 gdbarch argument.
5053 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
5054 * i386-tdep.c (i386_regset_from_core_section): Same.
5055 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
5056 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
5057 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
5058 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
5059 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
5060 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
5061
9aa3914d
JB
50622004-05-21 Joel Brobecker <brobecker@gnat.com>
5063
5064 * config/djgpp/fnchange.lst: Undo previous change, was useless.
5065
99c87dab
JB
50662004-05-21 Jim Blandy <jimb@redhat.com>
5067
5068 * dwarf2expr.c (execute_stack_op): Add 'break' statements after
5069 cases for DW_OP_div and DW_OP_shr. (Thanks to Reva Cuthbertson.)
5070
c2b6b4aa
JB
50712004-05-20 Jim Blandy <jimb@redhat.com>
5072
5073 * rs6000-tdep.c (rs6000_push_dummy_call): Formatting fixes.
5074
144529d0
MK
50752004-05-20 Mark Kettenis <kettenis@gnu.org>
5076
5077 * regset.h: Make prototype const-correct.
5078 * regset.c (regset_xmalloc): Make const-correct.
5079
4725b721
PH
50802004-05-20 Paul N. Hilfinger <hilfinger@gnat.com>
5081
5082 * symtab.h (SYMBOL_SEARCH_NAME): New definition.
5083 (SYMBOL_MATCHES_SEARCH_NAME): New definition.
5084 (symbol_search_name): Declare.
5085
5086 * dictionary.c (iter_name_first_hashed): Match on SYMBOL_SEARCH_NAME.
5087 (iter_name_next_hashed): Ditto.
5088 (iter_name_next_linear): Ditto.
5089 (insert_symbol_hashed): Hash on SYMBOL_SEARCH_NAME.
5090
5091 * symtab.c (lookup_partial_symbol): Assume symbols ordered by
5092 search name, using SYMBOL_SEARCH_NAME and SYMBOL_MATCHES_SEARCH_NAME.
5093 (symbol_search_name): New function.
5094
5095 * symfile.c (compare_psymbols): Order by SYMBOL_SEARCH_NAME.
5096
5097 * minsyms.c (build_minimal_symbol_hash_tables): Change
5098 test for adding to demangled hash table to check for difference
5099 between SYMBOL_SEARCH_NAME and SYMBOL_LINKAGE_NAME.
5100
be07a590
JB
51012004-05-19 Jim Blandy <jimb@redhat.com>
5102
5103 Use a constructor function to create regset structures.
5104 * regset.h (supply_regset_ftype, collect_regset_ftype): New typedefs.
5105 (struct regset): Use supply_regset_ftype. Add new
5106 'collect_regset' member.
5107 (regset_xmalloc): New declaration.
5108 * regset.c: New file.
5109 * am64-tdep.c (amd64_regset_from_core_section): Use
5110 regset_xmalloc to construct regset structures.
5111 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
5112 * i386-tdep.c (i386_regset_from_core_section): Same.
5113 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
5114 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
5115 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
5116 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
5117 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
5118 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
5119 * Makefile.in (COMMON_OBS): Add regset.o.
5120 (regset.o): New rule.
5121
604368f5
JB
51222004-05-19 Joel Brobecker <brobecker@gnat.com>
5123
5124 * config/djgpp/fnchange.lst: Add entries for pthread_cond_wait.exp
5125 and pthread_cond_wait.c.
5126
82d69f8b
JB
51272004-05-18 Jim Blandy <jimb@redhat.com>
5128
5129 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize tdep fields
5130 before the mach-specific switch, and then let the individual cases
5131 override the defaults, rather than leaving them uninitialized
5132 until the switch and then setting them in each case.
5133
5859efe5
RC
51342004-05-18 Randolph Chung <tausq@debian.org>
5135
5136 * hppa-tdep.c (hppa_frame_cache): Check for validity of r31 for
5137 millicode functions.
5138
9ca80cf8
RC
51392004-05-18 Randolph Chung <tausq@debian.org>
5140
5141 * somsolib.c (som_solib_remove_inferior_hook): Make all the size
5142 references to dld_flags_buffer consistent.
5143
ed70ba00
RC
51442004-05-18 Randolph Chung <tausq@debian.org>
5145
5146 * hppa-tdep.c (hppa_frame_cache): If a frame pointer is available, use
5147 it for unwinding the stack.
5148
63100632
RC
51492004-05-18 Randolph Chung <tausq@debian.org>
5150
5151 * config/pa/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE)
5152 Undefine these so we can overide them using gdbarch.
5153
090ccbb7
RC
51542004-05-18 Randolph Chung <tausq@debian.org>
5155
5156 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Don't do export stub
5157 handling for 64-bit HPUX (elf).
5158
594706e6
DJ
51592004-05-18 Daniel Jacobowitz <dan@debian.org>
5160
5161 * alpha-tdep.c (alpha_gdbarch_init): Use LL suffix for large
5162 constants.
5163 * amd64-tdep.c (amd64_skip_prologue): Likewise.
5164 * ia64-tdep.c (examine_prologue): Likewise.
5165 * ns32k-tdep.c (ns32k_fix_call_dummy): Remove unused function.
5166 * v850-tdep.c (v850_fix_call_dummy): Likewise.
5167
e5483145
MK
51682004-05-18 Mark Kettenis <kettenis@gnu.org>
5169
5170 * vax-tdep.c (vax_return_value): Implement
5171 RETURN_VALUE_ABI_RETURNS_ADDRESS.
5172
caed1a45
MK
51732004-05-17 Mark Kettenis <kettenis@gnu.org>
5174
5175 * vax-tdep.c (vax_return_value): Fix typo.
5176
3c0b7db2
AC
51772004-05-17 Andrew Cagney <cagney@redhat.com>
5178
5aae53e5
AC
5179 * MAINTAINERS: Mark Salter was also responsible for
5180 testsuite/config/
5181
3c0b7db2
AC
5182 * NEWS: Mention signal fixes.
5183
22b0923d
RC
51842004-05-17 Randolph Chung <tausq@debian.org>
5185
5186 * hppa-tdep.c (hppa_stub_frame_unwind_cache): For HPUX stub unwinding,
5187 check to see if we are unwinding an export stub. Export stubs clobber
5188 the %rp in the call path and stores the original rp in a stack slot.
5189
22f2b2f3
JB
51902004-05-17 Jim Blandy <jimb@redhat.com>
5191
5192 * MAINTAINERS: Update address for J.T. Conklin.
5193
cea96d64
RC
51942004-05-17 Randolph Chung <tausq@debian.org>
5195
5196 * hppa-tdep.c: Remove superfluous #include's.
5197 * Makefile.in (hppa-tdep.o): Update dependencies.
5198
f08f6a4a
RC
51992004-05-17 Randolph Chung <tausq@debian.org>
5200
5201 * hppa-tdep.c (THREAD_INITIAL_FRAME_SYMBOL): Delete unused symbol.
5202 (THREAD_INITIAL_FRAME_SYM_LEN): Likewise.
5203 (unwind_command, hppa_alignof, prologue_inst_adjust_sp)
5204 (is_branch, inst_saves_gr, inst_saves_fr, compare_unwind_entries)
5205 (read_unwind_info, internalize_unwinds, record_text_segment_lowaddr):
5206 Remove static function declarations.
5207
51da707a
MK
52082004-05-17 Mark Kettenis <kettenis@gnu.org>
5209
caed1a45
MK
5210 * alphabsd-nat.c: Update copyright year.
5211 (getregs_supplies): Replace PC_REGNUM with ALPHA_PC_REGNUM.
5212
c0c2b0db
MK
5213 * m68k-tdep.h (m68k_regnum): Add M68K_D2_REGNUM, M68K_D7_REGNUM
5214 and M68K_A2_REGNUM.
5215
51da707a
MK
5216 * m68k-tdep.c (m68k_svr4_return_value): Implement
5217 RETURN_VALUE_ABI_RETURNS_ADDRESS.
5218
8d027a04
MK
52192004-05-16 Mark Kettenis <kettenis@gnu.org>
5220
5221 * sol-thread.c Update copyright year. Fix various coding
5222 standards violations. Tweak a few comments.
5223 (td_err_string, td_state_string, thread_to_lwp, lwp_to_thread):
5224 Delete prototypes.
5225
0d99fdb9
RC
52262004-05-15 Randolph Chung <tausq@debian.org>
5227
5228 * hppa-tdep.h (hppa_frame_prev_register_helper): Pass save_regs
5229 as pointer instead of array reference since HPUX compiler does
5230 not accept unsized array arguments.
5231 * somsolib.c (dld_flags_buffer): Use constant array size.
5232
f7e3843a
MK
52332004-05-15 Mark Kettenis <kettenis@gnu.org>
5234
0fe85704
MK
5235 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Replace hexadecimal
5236 offset with decimal offset.
5237 (amd64obsd_sigcontext_addr): Return correct address for entire
5238 signal trampoline.
5239
a54f9a00
MK
5240 * vax-tdep.c (vax_frame_num_args): Use get_frame_base_address
5241 instead of get_frame_base.
5242
feae6502
MK
5243 * i386bsd-nat.c (supply_gregset): Use regcache_raw_supply.
5244 (fill_gregset): Use regcache_raw_collect.
5245
0382d099
MK
5246 * config/djgpp/fnchange.lst: Add entries for ppcobsd-nat.c and
5247 ppcobsd-tdep.c.
5248
f7e3843a
MK
5249 * config/sparc/tm-nbsd64.h: Remove file.
5250 * config/tm-sunos.h: Remove file.
5251
773df3e5
JB
52522004-05-15 Joel Brobecker <brobecker@gnat.com>
5253
5254 * rs6000-tdep.c (store_param_on_stack_p): New function,
5255 an improved version of some code extracted from skip_prologue().
5256 (skip_prologue): Use store_param_on_stack_p() to detect
5257 instructions saving a parameter on the stack. Detect when r0
5258 is used to save a parameter.
5259 Do not mark "li rx, SIMM" instructions as part of the prologue,
5260 unless the following instruction is also part of the prologue.
5261
95918acb
AC
52622004-05-14 Andrew Cagney <cagney@redhat.com>
5263
06f32659
AC
5264 * infrun.c (handle_inferior_event): Simplify
5265 STEP_OVER_UNDEBUGGABLE.
5266
95918acb
AC
5267 * infrun.c (handle_step_into_function): Delete function.
5268 (handle_inferior_event): Inline calls to
5269 handle_step_into_function.
5270
40711ff1 52712004-05-14 Jerome Guitton <guitton@gnat.com>
42203e46
JG
5272
5273 * rs6000-nat.c: Fix a comment.
5274
02f60eae
JB
52752004-05-12 David Anderson <davea@sgi.com>
5276
5277 Committed by Jim Blandy <jimb@redhat.com>:
5278 * regcache.c (struct regcache_descr): fix comment spelling.
5279
552e377b
JB
52802004-05-13 J. Brobecker <brobecker@gnat.com>
5281
5282 * aix-thread.c: s/ppc_floating_point_p/ppc_floating_point_unit_p/.
5283 Fixes a link link failure.
5284
349766b2
JB
52852004-05-13 J. Brobecker <brobecker@gnat.com>
5286
5287 * aix-thread.c (store_regs_kernel_thread): Fix a little obvious
5288 error that was causing the build to fail.
5289
0d4d5484
JB
52902004-05-13 J. Brobecker <brobecker@gnat.com>
5291
5292 * aix-thread.c: #include "gdb_string.h". Needed for memset and memcopy.
5293 * Makefile.in (aix-thread.o): Add dependency on gdb_string.h.
5294
0b30808c
AC
52952004-05-13 Andrew Cagney <cagney@redhat.com>
5296
5297 * infrun.c (handle_inferior_event): Check for
5298 STEP_OVER_UNDEBUGGABLE after signal trampolines and function
5299 calls. Update comments.
5300
cdf2c5f5
JB
53012004-05-13 Jim Blandy <jimb@redhat.com>
5302
063715bf
JB
5303 * aix-thread.c (pdc_read_regs, supply_gprs64, supply_fprs)
5304 (fetch_regs_user_thread, fetch_regs_kernel_thread)
5305 (store_regs_user_thread, store_regs_kernel_thread): Use
5306 ppc_num_gprs and ppc_num_fprs instead of '32' and '31'.
5307 * ppc-linux-nat.c (fill_gregset): Same.
5308 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
5309 (ppc_linux_sigtramp_cache): Same.
5310 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg)
5311 (ppcnbsd_sigtramp_cache_init): Same.
5312 * rs6000-nat.c (fetch_core_registers): Same.
5313 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
5314 (rs6000_frame_cache): Same.
5315
cdf2c5f5
JB
5316 * aix-thread.c (supply_gprs64, fetch_regs_user_thread)
5317 (store_regs_user_thread): Use tdep->ppc_gp0_regnum, instead
5318 of assuming that the gprs are numbered starting with zero.
5319 * ppc-linux-nat.c (fill_gregset): Same.
5320 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Same.
5321 * ppcnbsd-nat.c (getregs_supplies): Same.
5322 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg): Same.
5323 * rs6000-nat.c (fetch_core_registers): Same.
5324 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset): Same.
5325
450bd37b
MS
53262004-05-07 Michael Snyder <msnyder@redhat.com>
5327
5328 * tracepoint.c (scope_info): Add handling for LOC_COMPUTED,
5329 LOC_COMPUTED_ARG, and LOC_INDIRECT.
5330
4a72a2a6
AC
53312004-05-13 Andrew Cagney <cagney@redhat.com>
5332
5333 * infrun.c (handle_inferior_event): Use frame_unwind_id.
5334
8edfa926
BM
53352004-05-13 Bryce McKinlay <mckinlay@redhat.com>
5336
5337 * dwarf2loc.c (find_location_expression): Use ANOFFSET to adjust
5338 base_address for shared libraries.
5339
723e0e3d
BM
53402004-05-13 Bryce McKinlay <mckinlay@redhat.com>
5341
5342 * MAINTAINERS (write after approval): Add myself.
5343
00d4360e
UW
53442004-05-13 Ulrich Weigand <uweigand@de.ibm.com>
5345
5346 * breakpoint.c (bpstat_stop_status): Add new argument
5347 STOPPED_BY_WATCHPOINT. Use it instead of testing
5348 target_stopped_data_address agaist 0 to check whether
5349 or not we stopped due to a hardware watchpoint.
5350 * breakpoint.h (bpstat_stop_status): Adapt prototype.
5351 * infrun.c (handle_inferior_event): Call bpstat_stop_status
5352 with new argument.
5353
ec76baa5
JB
53542004-05-12 Jim Blandy <jimb@redhat.com>
5355
5356 * configure.in: When checking whether we should use the -bbigtoc
5357 option, don't forget to restore the original value of LDFLAGS.
5358 * configure: Regenerated.
5359
f2c9ca08
AC
53602004-05-12 Andrew Cagney <cagney@redhat.com>
5361
5362 * thread.c (load_infrun_state): Delete step_sp.
5363 * infrun.c (context_switch): Ditto.
5364 * inferior.h (step_sp): Ditto.
5365 * infcmd.c (step_sp, step_1, step_once, until_next_command): Ditto.
5366 * gdbthread.h (struct thread_info, save_infrun_state)
5367 (restore_infrun_state): Ditto.
5368
090ddb2a
UW
53692004-05-12 Ulrich Weigand <uweigand@de.ibm.com>
5370
5371 * MAINTAINERS (write after approval): Add myself.
5372
8aad930b
AC
53732004-05-12 Andrew Cagney <cagney@redhat.com>
5374
5375 * infrun.c (adjust_pc_after_break): Rewrite decr logic,
5376 eliminate reference to step_sp.
5377 (struct execution_control_state, init_execution_control_state)
5378 (handle_inferior_event, keep_going): Delete update_step_sp and
5379 step_sp.
5380 * infcmd.c (step_sp): Note that variable is unused.
5381
922d5ae0
AC
53822004-05-11 Andrew Cagney <cagney@redhat.com>
5383
5384 * infrun.c (step_over_function): Delete function.
5385 (handle_step_into_function): Use insert_step_resume_breakpoint.
5386 (insert_step_resume_breakpoint): Fix assertion.
5387
017c5ca5
NR
53882004-05-11 Nick Roberts <nickrob@gnu.org>
5389
5390 * utils.c (defaulted_query): Just use the normal query input type
5391 when printing the annotations.
5392
42edda50
AC
53932004-05-11 Andrew Cagney <cagney@redhat.com>
5394
5395 * infrun.c (handle_inferior_event): Simplify code handling
5396 step-into or return-from a signal trampoline.
5397
d28b44a7
AC
53982004-05-11 Andrew Cagney <cagney@redhat.com>
5399
5400 * ppcnbsd-tdep.c: Include "gdb_assert.h".
5401 * Makefile.in (ppcnbsd-tdep.o): Update dependencies.
5402
383f0f5b
JB
54032004-05-10 Jim Blandy <jimb@redhat.com>
5404
d0b57c3a
JB
5405 * ppc-bdm.c (bdm_ppc_fetch_registers): Replace utterly broken code
5406 with a call to internal_error.
5407
383f0f5b
JB
5408 * ppc-tdep.h (struct gdbarch_tdep): Change definition of
5409 ppc_fp0_regnum and ppc_fpscr_regnum: if they are -1, then this
5410 processor variant lacks those registers.
5411 (ppc_floating_point_unit_p): Change description to make it clear
5412 that this returns info about the ISA, not the ABI.
5413 * rs6000-tdep.c (ppc_floating_point_unit_p): Decide whether to
5414 return true or false by checking tdep->ppc_fp0_regnum and
5415 tdep->ppc_fpscr_regnum. The original code replicated the BFD
5416 arch/mach switching done in rs6000_gdbarch_init; it's better to
5417 keep that logic there, and just check the results here.
5418 (rs6000_gdbarch_init): On the E500, set tdep->ppc_fp0_regnum and
5419 tdep->ppc_fpscr_regnum to -1 to indicate that we have no
5420 floating-point registers.
5421 (ppc_supply_fpregset, ppc_collect_fpregset)
5422 (rs6000_push_dummy_call, rs6000_extract_return_value)
5423 (rs6000_store_return_value): Assert that we have floating-point
5424 registers.
5425 (rs6000_dwarf2_stab_reg_to_regnum): Add FIXME.
5426 (rs6000_frame_cache): Don't note the locations at which
5427 floating-point registers were saved if we have no fprs.
5428 * aix-thread.c (supply_fprs, fill_fprs): Assert that we have FP
5429 registers.
5430 (fetch_regs_user_thread, fetch_regs_kernel_thread)
5431 (store_regs_user_thread, store_regs_kernel_thread): Only call
5432 supply_fprs / fill_fprs if we actually have floating-point
5433 registers.
5434 (special_register_p): Check ppc_fpscr_regnum before matching
5435 against it.
5436 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32): Don't
5437 supply / collect fpscr if we don't have it.
5438 * ppc-bdm.c: #include "gdb_assert.h".
5439 (bdm_ppc_fetch_registers, bdm_ppc_store_registers): Assert that we
5440 have floating-point registers, since I can't test this code on
5441 FP-free systems to adapt it.
5442 * ppc-linux-nat.c (ppc_register_u_addr): Don't match against the
5443 fpscr and floating point register numbers if they don't exist.
5444 (fetch_register): Assert that we have floating-point registers
5445 before we reach the code that handles them.
5446 (store_register): Same. And use tdep instead of calling
5447 gdbarch_tdep again.
5448 (fill_fpregset): Don't try to collect FP registers and fpscr if we
5449 don't have them.
5450 (ppc_linux_sigtramp_cache): Don't record the saved locations of
5451 fprs and fpscr if we don't have them.
5452 (ppc_linux_supply_fpregset): Don't supply fp regs and fpscr if we
5453 don't have them.
5454 * ppcnbsd-nat.c: #include "gdb_assert.h".
5455 (getfpregs_supplies): Assert that we have floating-point registers.
5456 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg): Same.
5457 * ppcobsd-tdep.c: #include "gdb_assert.h".
5458 (ppcobsd_supply_gregset, ppcobsd_collect_gregset): Assert that we
5459 have floating-point registers.
5460 * rs6000-nat.c (regmap): Don't match against the fpscr and
5461 floating point register numbers if they don't exist.
5462 (fetch_inferior_registers, store_inferior_registers,
5463 fetch_core_registers): Only fetch / store / supply the
5464 floating-point registers and the fpscr if we have them.
5465 * Makefile.in (ppc-bdm.o, ppc-linux-nat.o, ppcnbsd-nat.o)
5466 (ppcobsd-tdep.o): Update dependencies.
5467
15960608
AC
54682004-05-10 Andrew Cagney <cagney@redhat.com>
5469
5470 * infrun.c (through_sigtramp_breakpoint): Delete variable.
5471 (context_switch): Do not switch through_sigtramp_breakpoint.
5472 * gdbthread.h (save_infrun_state, load_infrun_state)
5473 (struct thread_info): Delete through_sigtramp_breakpoint parameter
5474 and structure member.
5475 * thread.c (load_infrun_state, save_infrun_state): Update.
5476
5ab5aa0f
MK
54772004-05-10 Mark Kettenis <kettenis@gnu.org>
5478
5479 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Call m68k_svr4_init_abi.
5480
da78b0e7
DJ
54812004-05-10 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
5482
5483 * acinclude.m4: Quote macro names being defined by AC_DEFUN
5484 throughout.
5485 * aclocal.m4: Regenerate.
5486
cca0d3b0
NW
54872004-05-10 Nathan J. Williams <nathanw@wasabisystems.com>
5488
5489 * alphanbsd-tdep.c: Fix include of "gdb_string.h".
5490
d303a6c7
AC
54912004-05-10 Andrew Cagney <cagney@redhat.com>
5492
5493 * infrun.c (check_sigtramp2): Delete function.
5494 (handle_inferior_event): When single stepping, and taking a
5495 signal, set a breakpoint at the signal return address. Delete
5496 redundant calls to check_sigtramp2.
5497 (insert_step_resume_breakpoint): New function.
5498 (through_sigtramp_breakpoint, handle_inferior_event)
5499 (follow_exec, wait_for_inferior, fetch_inferior_event)
5500 (currently_stepping, keep_going): Delete most uses of
5501 through_sigtramp_breakpoint, not that it should be deleted.
5502 (delete_breakpoint_current_contents): Delete function.
5503
03f4cc20
RC
55042004-05-10 Randolph Chung <tausq@debian.org>
5505
5506 * config/pa/linux.mt (TM_FILE): Use new tm-linux.h for hppa-linux
5507 target.
5508 * config/pa/tm-linux.h: New file.
5509
37fc812e
DJ
55102004-05-10 Daniel Jacobowitz <drow@mvista.com>
5511
5512 * cli/cli-setshow.c (cmd_show_list): Check for "show" in the middle
5513 of prefixes. Don't print the prefix twice in the CLI.
5514
26c0b942
JB
55152004-05-10 Jim Blandy <jimb@redhat.com>
5516
2e56e9c1
JB
5517 * rs6000-tdep.c (ppc_collect_gregset): When regnum == -1, do
5518 collect all the gprs.
5519
26c0b942
JB
5520 * rs6000-tdep.c (ppc_collect_gregset): Correct off-by-one error in
5521 loop collecting gprs.
5522
dc497459
AC
55232004-05-09 Andrew Cagney <cagney@redhat.com>
5524
5525 * remote-vx.c (net_step): Delete step-range code.
5526 * remote.c (remote_resume, init_all_packet_configs)
5527 (set_remote_protocol_E_packet_cmd)
5528 (show_remote_protocol_E_packet_cmd)
5529 (remote_protocol_E, show_remote_cmd, _initialize_remote)
5530 (remote_protocol_e, set_remote_protocol_e_packet_cmd)
5531 (show_remote_protocol_e_packet_cmd): Ditto.
5532
0543f387
MK
55332004-05-09 Mark Kettenis <kettenis@gnu.org>
5534
c481d1ca
MK
5535 * hppa-tdep.h (enum hppa_regnum): Name enum, add HPPA_R1_REGNUM.
5536
f626a069
MK
5537 * hppa-tdep.h: Update copyright year.
5538 (struct trad_frame_saved_reg): Add opaque declaration.
5539
6fa57a7d
MK
5540 * amd64-tdep.c (amd64_return_value): Implement
5541 RETURN_VALUE_ABI_RETURNS_ADDRESS.
5542
e47577ab
MK
5543 * m68k-tdep.c (m68k_convert_register_p, m68k_register_to_value)
5544 (m68k_value_to_register): New functions.
5545 (m68k_gdbarch_init): Set convert_register_p, register_to_value and
5546 value_to_register.
5547
31db7b6c
MK
5548 * defs.h (enum return_value_convention): Add
5549 RETURN_VALUE_ABI_RETURNS_ADDRESS and
5550 RETURN_VALUE_ABI_PRESERVES_ADDRESS.
5551 * infcmd.c (legacy_return_value): New function.
5552 (print_return_value): Rwerite to implement
5553 RETURN_VALUE_ABI_RETURNS_ADDRESS.
5554 * values.c (using_struct_return): Check for inequality to
5555 RETURN_VALUE_REGISTER_CONVENTION instead of equality to
5556 RETURN_VALUE_STRUCT_CONVENTION.
5557 * i386-tdep.c (i386_return_value): Implement
5558 RETURN_VALUE_ABI_RETURNS_ADDRESS.
5559
0543f387
MK
5560 * vax-tdep.c: Tweak comments. Reorder include files. Don't
5561 include "symtab.h", "opcode/vax.h" and "inferior.h".
5562 (vax_skip_prologue): Replace calls to read_memory_integer by calls
5563 to read_memory_unsigned_integer.
5564 (vax_gdbarch_init): Reorder.
5565 (_initialize_vax_tdep): Spell out prototype.
5566 * Makefile.in (vax-tdep.o): Update dependencies.
5567
0c93b7b6
AC
55682004-05-08 Andrew Cagney <cagney@redhat.com>
5569
e6b55ae2
AC
5570 * infrun.c (resume): Delete call to DO_DEFERRED_STORES.
5571 * target.c (target_detach, target_disconnect): Ditto.
5572
1ac839b8
AC
5573 * infcall.c (call_function_by_hand): When no
5574 DEPRECATED_SAVE_DUMMY_FRAME_TOS call generic_save_dummy_frame_tos.
5575 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set
5576 DEPRECATED_SAVE_DUMMY_FRAME_TOS.
5577 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5578 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5579
28954179
AC
5580 * gdbarch.sh (DEPRECATED_FIX_CALL_DUMMY): Delete.
5581 * gdbarch.h, gdbarch.c: Re-generate.
5582 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
5583 deprecated_fix_call_dummy.
5584 * v850-tdep.c (v850_gdbarch_init): Ditto.
5585 * infcall.c (call_function_by_hand): Do not call
5586 DEPRECATED_FIX_CALL_DUMMY.
5587
434b87dd
AC
5588 * gdbarch.sh (DEPRECATED_CALL_DUMMY_WORDS)
5589 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Delete.
5590 * gdbarch.h, gdbarch.c: Re-generate.
5591 * arm-linux-tdep.c (arm_linux_call_dummy_words)
5592 (arm_linux_init_abi): Do not set deprecated_call_dummy_words or
5593 deprecated_sizeof_call_dummy_words.
5594 * arm-tdep.c (arm_call_dummy_words, arm_gdbarch_init): Ditto.
5595 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
5596 * v850-tdep.c (v850_gdbarch_init): Ditto.
5597 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
5598 * ns32k-tdep.c (ns32k_call_dummy_words, ns32k_gdbarch_init): Ditto.
5599 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5600 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5601 * arch-utils.h (legacy_call_dummy_words)
5602 (legacy_sizeof_call_dummy_words): Delete declarations.
5603 * arch-utils.c (legacy_call_dummy_words)
5604 (legacy_sizeof_call_dummy_words): Delete variables.
5605
58d28df8
AC
5606 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Delete.
5607 * gdbarch.h, gdbarch.c: Re-generate.
5608 * inferior.h (PUSH_DUMMY_FRAME): Delete macro.
5609 * infcall.c (call_function_by_hand): Eliminate call to
5610 DEPRECATED_PUSH_DUMMY_FRAME.
5611 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
5612 push_dummy_frame.
5613 (ns32k_push_dummy_frame): Delete function.
5614
e4a2df64
AC
5615 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
5616 deprecated_call_dummy_breakpoint_offset or
5617 deprecated_call_dummy_start_offset.
5618 * dummy-frame.c, arm-tdep.c: Update comments.
5619 * gdbarch.sh (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET)
5620 (DEPRECATED_CALL_DUMMY_START_OFFSET): Delete.
5621 * gdbarch.h, gdbarch.c: Re-generate.
5622
d3712828
AC
5623 * infcall.c (legacy_push_dummy_code): Delete function.
5624 (push_dummy_code): Delete call.
5625
7a882905
AC
5626 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete.
5627 * gdbarch.h, gdbarch.c: Re-generate.
5628 * blockframe.c (legacy_frame_chain_valid): Simplify by eliminating
5629 DEPRECATED_USE_GENERIC_DUMMY_FRAMES.
5630 * infcall.c (legacy_push_dummy_code, call_function_by_hand): Ditto.
5631 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Ditto.
5632
0ec5872b
AC
5633 * breakpoint.h (deprecated_frame_in_dummy): Delete declaration.
5634 (struct frame_info): Delete opaque declaration.
5635 * breakpoint.c (deprecated_frame_in_dummy): Delete function.
5636 * frame.c (get_frame_type): Delete call.
5637
0c93b7b6
AC
5638 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
5639 pc_in_call_dummy.
5640 * inferior.h (deprecated_pc_in_call_dummy_on_stack): Delete.
5641 * blockframe.c (deprecated_pc_in_call_dummy_on_stack): Delete.
5642
75536971
MK
56432004-05-08 Mark Kettenis <kettenis@gnu.org>
5644
527ca6bb
MK
5645 * alphanbsd-tdep.c: Include "gdb_string.h".
5646 * armnbsd-tdep.c: Update copyright year.
5647 Include "gdb_string.h".
5648 * Makefile.in (alphanbsd-tdep.o, armnbsd-tdep.o): Update
5649 dependencies.
5650
d39fdc61
MK
5651 * delta68-nat.c: Remove file.
5652 * m68k-tdep.c (delta68_in_sigtramp, delta68_frame_args_address)
5653 (delta68_frame_saved_pc, delta68_frame_num_args): Remove functions.
5654 * Makefile.in (ALLDEPFILES): Remove delta68-nat.c.
5655 (delta68-nat.o): Remove dependency.
5656
75536971
MK
5657 * m68k-tdep.c (m68k_frameless_function_invocation): Remove
5658 function.
5659 (m68k_gdbarch_init): Don't set
5660 deprecated_frameless_function_invocation.
5661
f4ca1d1f
RC
56622004-05-07 Randolph Chung <tausq@debian.org>
5663
5664 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Use
5665 read_memory_nobpt for code reading when doing frame unwinding.
5666 * hppa-linux-tdep.c (insns_match_pattern): Likewise.
5667
2f0e8c7a
RC
56682004-05-07 Randolph Chung <tausq@debian.org>
5669
5670 * hppa-linux-tdep.c (hppa_linux_sigtramp_find_sigcontext): Pass in pc
5671 instead of sp, handle sigaltstack case.
5672 (hppa_linux_sigtramp_frame_unwind_cache): Adjust calls to
5673 hppa_linux_sigtramp_find_sigcontext, and set base to the frame of the
5674 signal handler and not that of the caller.
5675 (hppa_linux_sigtramp_unwind_sniffer): Adjust calls to
5676 hppa_linux_sigtramp_find_sigcontext.
5677
959464ff
RC
56782004-05-07 Randolph Chung <tausq@debian.org>
5679
5680 * Makefile.in (ALLDEPFILES): Add hppa-linux-tdep.c and
5681 hppa-linux-nat.c.
5682 (hppa-linux-tdep.o, hppa-linux-nat.o): Define rules.
5683 * hppa-linux-nat.c (fetch_register, store_register): Define.
5684 (fetch_inferior_registers, store_inferior_registers): Define.
5685 (supply_gregset): Add comment and clean up some unneeded code.
5686 (fill_gregset): Add comment and fix so that it saves registers in
5687 the right place in the gregset.
5688 (fill_fpregset): Fix buffer overrun problem.
5689 * config/pa/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
5690
0da28f8a
RC
56912004-05-07 Randolph Chung <tausq@debian.org>
5692
5693 * hppa-tdep.c (hppa_frame_prev_register_helper): New function to
5694 do common handling of the pcoqt register.
5695 (hppa_frame_prev_register, hppa_stub_frame_prev_register): Convert
5696 to use helper function.
5697 (hppa_frame_unwind_sniffer): Only use if unwind entry is present.
5698 (hppa_fallback_frame_cache, hppa_fallback_frame_this_id)
5699 (hppa_fallback_frame_prev_register, hppa_fallback_frame_unwind): New
5700 generic fallback unwinder when all else fails.
5701 (hppa_gdbarch_init): Add fallback sniffer.
5702 * hppa-tdep.h (hppa_frame_prev_register_helper): Prototype.
5703 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register): Convert
5704 to use helper function.
5705
b9ec757a
JB
57062004-05-08 Joel Brobecker <brobecker@gnat.com>
5707
5708 * config/djgpp/fnchange.lst: Add translation rules for
5709 gdb.arch/powerpc-aix-prologue.c and gdb.arch/powerpc-aix-prologue.exp.
5710
756e95f1
MK
57112004-05-08 Mark Kettenis <kettenis@gnu.org>
5712
5713 * frame.c (get_prev_frame_1): Work around GCC bug.
5714 * frame.h: Add comment about GCC bug.
5715
2b4855ab
AC
57162004-05-07 Andrew Cagney <cagney@redhat.com>
5717
5718 * observer.c: Include "commands.h" and "gdbcmd.h".
5719 (observer_debug, _initialize_observer): Add the
5720 command "set/show debug observer".
5721 * observer.sh: When observer debugging, log notify calls.
5722 * Makefile.in (observer.o): Update dependencies.
5723
ba3e8e46
JM
57242004-05-07 Jason Molenda (jmolenda@apple.com)
5725
5726 * cli/cli-decode.c: Fix "SHOW_DOR" comment typeos.
5727
16796152
JB
57282004-05-07 Jim Blandy <jimb@redhat.com>
5729
daf6dc85
JB
5730 * aix-thread.c (fetch_regs_kernel_thread, fill_gprs64,
5731 fill_gprs32, store_regs_kernel_thread): Use tdep->ppc_gp0_regnum
5732 to recognize gpr regnums, instead of assuming that
5733 tdep->ppc_fp0_regnum marks the end of the general-purpose
5734 registers.
5735
16796152
JB
5736 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Assert that
5737 the given architecture has floating-point registers.
5738
c69b8bfc
AC
57392004-05-07 Andrew Cagney <cagney@redhat.com>
5740
5741 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Replace with
5742 macro defined to 1.
5743 * gdbarch.h, gdbarch.c: Re-generate.
5744 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
5745 deprecated_use_generic_dummy_frames.
5746
7243600a
BF
57472004-05-07 Brian Ford <ford@vss.fsi.com>
5748
5749 * NEWS: Mention Cygwin DWARF 2 support.
5750
73c1e0a1
AC
57512004-05-07 Andrew Cagney <cagney@redhat.com>
5752
5753 * objfiles.h (struct entry_info): Delete unused fields
5754 deprecated_entry_file_lowpc and deprecated_entry_file_highpc.
5755 * objfiles.c (init_entry_point_info, objfile_relocate): Update.
5756 * mipsread.c (mipscoff_symfile_read): Update.
5757 * mdebugread.c (parse_partial_symbols): Update.
5758 * dwarfread.c (read_file_scope): Update.
5759 * dwarf2read.c (read_file_scope): Update.
5760 * dbxread.c (read_dbx_symtab, read_dbx_symtab): Update.
5761 * coffread.c (complete_symtab): Update.
5762
1d3056ac
MK
57632004-05-07 Mark Kettenis <kettenis@gnu.org>
5764
5765 * infcall.c (_initialize_infcall): Fix typo.
5766
15170568
AC
57672004-05-07 Andrew Cagney <cagney@redhat.com>
5768
5769 * cli/cli-decode.c (add_setshow_zinteger_cmd): New function.
5770 * command.h (add_setshow_zinteger_cmd): Declare.
5771
34f75cc1
RC
57722004-05-06 Randolph Chung <tausq@debian.org>
5773
5774 * config/pa/tm-hppa.h (RO_REGNUM, FLAGS_REGNUM, RP_REGNUM)
5775 (HPPA_FP_REGNUM, HPPA_SP_REGNUM, SAR_REGNUM, IPSW_REGNUM)
5776 (PCOQ_HEAD_REGNUM, PCSQ_HEAD_REGNUM, PCOQ_TAIL_REGNUM, PCSQ_TAIL_REGNUM)
5777 (EIEM_REGNUM, IIR_REGNUM, ISR_REGNUM, IOR_REGNUM, SR4_REGNUM)
5778 (RCR_REGNUM, PID0_REGNUM, PID1_REGNUM, PID2_REGNUM, PID3_REGNUM)
5779 (CCR_REGNUM, TR0_REGNUM, CR27_REGNUM, HPPA_FP0_REGNUM, FP4_REGNUM)
5780 (ARG0_REGNUM, ARG1_REGNUM, ARG2_REGNUM, ARG3_REGNUM): Move *_REGNUM
5781 definitions ...
5782 * hppa-tdep.h: ... to here, with HPPA_ prefix.
5783 * Makefile.in (hppah-nat.o): Add $(hppa_tdep_h)
5784 * hppa-hpux-tdep.c (hppa32_hpux_frame_find_saved_regs_in_sig)
5785 (hppa64_hpux_frame_find_saved_regs_in_sig)
5786 (child_get_current_exception_event): Add HPPA_ prefix to *_REGNUM usage.
5787 * hppa-linux-nat.c (GR_REGNUM, TR_REGNUM, greg_map): Likewise.
5788 * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum)
5789 (hppa_linux_target_write_pc, hppa_linux_sigtramp_frame_unwind_cache)
5790 (hppa_linux_sigtramp_frame_prev_register): Likewise.
5791 * hppa-tdep.c (hppa32_return_value, hppa64_return_value)
5792 (hppa32_push_dummy_call, hppa64_push_dummy_call, hppa64_frame_align)
5793 (hppa_target_read_pc, hppa_target_write_pc, hppa_frame_cache)
5794 (hppa_frame_prev_register, hppa_stub_frame_unwind_cache)
5795 (hppa_stub_frame_prev_register, hppa_unwind_dummy_id)
5796 (hppa_skip_permanent_breakpoint, hppa_instruction_nullified)
5797 (hppa32_register_type, hppa_cannot_store_register)
5798 (hppa_fetch_pointer_argument, hppa_pseudo_register_read): Likewise.
5799 * hppah-nat.c (store_inferior_registers, fetch_register): Likewise.
5800 * hpread.c (hpread_process_one_debug_symbol): Likewise.
5801 * pa64solib.c (pa64_solib_have_load_event)
5802 (pa64_solib_have_unload_event, pa64_solib_loaded_library_pathname)
5803 (pa64_solib_unloaded_library_pathname): Likewise.
5804 * somsolib.c (som_solib_have_load_event, som_solib_have_unload_event)
5805 (som_solib_library_pathname): Likewise.
5806
0a5e7efe
JI
58072004-05-05 Jim Ingham <jingham@apple.com>
5808
5809 * breakpoint.c (create_breakpoints): Copy the ignore count and
5810 thread id over from the pended breakpoint to the actual
5811 breakpoint.
5812
10a4b113
AC
58132004-05-05 Andrew Cagney <cagney@redhat.com>
5814
5815 * gdbarch.sh (PARM_BOUNDARY): Delete.
5816 gdbarch.h, gdbarch.c: Re-generate.
5817 * valops.c (PARM_BOUNDARY): Delete macro.
5818 (value_push): Delete PARM_BOUNDARY code.
5819 * m68k-tdep.c (m68k_gdbarch_init): Do not set parm_boundary.
5820
366f009f
JB
58212004-05-04 Jim Blandy <jimb@redhat.com>
5822
32b99774
JB
5823 * ppc-linux-nat.c (fetch_ppc_registers, store_ppc_registers):
5824 Don't assume that the gprs, fprs, and UISA sprs are
5825 contiguous, start at register number zero, and end with fpscr.
5826 Instead, use the numbers from the tdep structure.
5827
366f009f
JB
5828 * config/rs6000/tm-rs6000.h (FP0_REGNUM): Document that this
5829 should no longer be used in code specific to the RS6000 and its
5830 derivatives.
5831 * ppc-tdep.h (struct gdbarch_tdep): Add 'ppc_fp0_regnum' member.
5832 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize
5833 tdep->ppc_fp0_regnum.
5834 (ppc_supply_fpregset, ppc_collect_fpregset)
5835 (rs6000_push_dummy_call, rs6000_extract_return_value)
5836 (rs6000_dwarf2_stab_reg_to_regnum, rs6000_store_return_value)
5837 (rs6000_frame_cache): Use tdep->ppc_fp0_regnum instead of
5838 FP0_REGNUM.
5839 * aix-thread.c (supply_fprs, fetch_regs_kernel_thread)
5840 (fill_gprs64, fill_gprs32, fill_fprs, store_regs_kernel_thread):
5841 Same.
5842 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_fetch_registers,
5843 bdm_ppc_store_registers): Same.
5844 * ppc-linux-nat.c (ppc_register_u_addr, fetch_register)
5845 (store_register, fill_fpregset): Same.
5846 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache)
5847 (ppc_linux_supply_fpregset): Same.
5848 * ppcnbsd-nat.c (getfpregs_supplies): Same.
5849 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg):
5850 Same.
5851 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call,
5852 do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call,
5853 ppc64_sysv_abi_return_value): Same.
5854 * rs6000-nat.c (regmap, fetch_inferior_registers)
5855 (store_inferior_registers, fetch_core_registers): Same.
5856
827f338d
MK
58572004-05-01 Mark Kettenis <kettenis@gnu.org>
5858
5859 * m68knbsd-nat.c: Remove file.
5860 * m68knbsd-tdep.c: Remove file.
5861 * Makefile.in: (m68knbsd-nat.o, m68knbsd-tdep.o): Remove
5862 dependencies.
5863 * configure.host: Add m68k-*-netbsdelf*.
5864 * configure.tgt (m68k-*-netbsd*): Set gdb_target to nbsd.
5865 * config/m68k/nbsdaout.mh (NATDEPFILES): Add m68kbsd-nat.o,
5866 solib.o and solib-sunos.o. Remove m68knbsd-nat.o, corelow.o.
5867 (XM_FILE): Remove.
5868 * config/m68k/nbsdelf.mh: New file.
5869 * config/m68k/nbsd.mt: New file.
5870 * config/m68k/nbsdaout.mt: Remove file.
5871 * config/m68k/tm-nbsd.h: Don't include <sys/param.h>,
5872 <machine/vmparam.h> and "m68k/tm-m68k.h". Include "solib.h".
5873 (BPT_VECTOR, STACK_END_ADDR): Remove defines.
5874 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Likewise.
5875 (use_struct_convention): Remove prototype.
5876 (USE_STRUCT_CONVENTION): Remove define.
5877 * config/m68k/xm-nbsd.h: Remove file.
5878
66894781
MS
58792004-05-04 Michael Snyder <msnyder@redhat.com>
5880
5881 * m68k-tdep.c (m68k_gdbarch_init): Default to using
5882 reg_struct_return method (as gcc usually does for cross targets).
5883
f0f63663
AC
58842004-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5885
5886 Committed by Andrew Cagney.
5887 * s390-tdep.c (s390_sigtramp_frame_unwind_cache): Account for
5888 alignment padding when accessing ucontext struct members.
5889
edf61169
JB
58902004-05-04 Jim Blandy <jimb@redhat.com>
5891
8bf659e8
JB
5892 * config/ppc-tdep.h (struct gdbarch_tdep): Delete
5893 'ppc_gplast_regnum' member.
5894 (ppc_num_gprs): New enum constant.
5895 * ppc-linux-nat.c (ppc_register_u_addr): Use tdep->ppc_gp0_regnum
5896 and ppc_num_gprs instead of tdep->ppc_gplast_regnum.
5897 * rs6000-nat.c (regmap, fetch_inferior_registers,
5898 store_inferior_registers): Same.
5899 * rs6000-tdep.c (e500_pseudo_register_read)
5900 (e500_pseudo_register_write): Same.
5901 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gplast_regnum.
5902
b967e06f
JB
5903 * config/rs6000/tm-rs6000.h (FPLAST_REGNUM): Delete #definition.
5904 * ppc-tdep.h (ppc_num_fprs): New enum constant.
5905 * aix-thread.c (fetch_regs_kernel_thread, fill_fprs,
5906 store_regs_kernel_thread): Use FP0_REGNUM + ppc_num_fprs, not
5907 FPLAST_REGNUM.
5908 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
5909 Same.
5910 * ppc-linux-nat.c (ppc_register_u_addr): Same.
5911 * rs6000-nat.c (regmap, fetch_inferior_registers)
5912 (store_inferior_registers): Same.
5913
edf61169
JB
5914 * aix-thread.c (fill_fprs): Fix off-by-one error comparing regno
5915 with FPLAST_REGNUM.
5916
58a9656e
JB
59172004-05-03 Joel Brobecker <brobecker@gnat.com>
5918
5919 * dwarf2read.c (dwarf2_create_include_psymtab): Fix build
5920 failure detected by recent versions of GCC.
5921 (psymtab_to_symtab_1): No longer use the PST_PRIVATE macro
5922 to be consistent with the usage in dwarf2_create_include_psymtab.
5923
dc305454
MS
59242004-05-03 Michael Snyder <msnyder@redhat.com>
5925
5926 * mips-tdep.c (mips_gdbarch_init): Fix typo in comment.
5927 (heuristic_proc_start): Whitespace cleanup.
5928
29972665
MK
59292004-05-04 Mark Kettenis <kettenis@gnu.org>
5930
6b57680d
MK
5931 * sun3-nat.c: Remove file.
5932 * Makefile.in (tm-sun3.h tm-altos.h tm-sun2.h tm-3b1.h): Remove
5933 dependencies.
5934 (ALLDEPFILES): Remove sun3-nat.c.
5935 (sun3-nat.o): Remove dependencies.
5936
29972665
MK
5937 * i386-interix-nat.c, i386-interix-tdep.c,
5938 config/i386/nm-interix.h, config/i386/interix.mh,
5939 config/i386/interix.mt: Remove files.
5940 * Makefile.in (i386-interix-nat.o, i386-interix-tdep.o): Remove
5941 dependencies.
5942
f595cb19
MK
59432004-05-03 Mark Kettenis <kettenis@gnu.org>
5944
5945 * m68k-tdep.h (struct gdbarch_tdep): Add member
5946 struct_value_regnum.
5947 (m68k_svr4_init_abi): New prototype.
5948 * m68k-tdep.c: Include "floatformat.h". Add comment about all the
5949 different calling conventions.
5950 (m68k_extract_return_value): Remove code dealing with single-field
5951 structs.
5952 (m68k_store_return_value): Remove code dealing with single-field
5953 structs. Correctly store return values of 5, 6, 7 or 8 bytes.
5954 (m68k_extract_struct_value_address): Remove function.
5955 (m68k_svr4_extract_return_value,m68k_svr4_store_return_value)
5956 (m68k_reg_struct_return_p, m68k_return_value)
5957 (m68k_svr4_return_value): New functions.
5958 (m68k_use_struct_convention): Remove function.
5959 (m68k_push_dummy_call): Use new struct_value_regnum member of
5960 `struct gdbarch_tdep' instead of hardcoded register number to
5961 store STRUCT_ADDR.
5962 (m68k_svr4_init_abi): New function.
5963 (m68k_gdbarch_init): Don't set extract_return_value,
5964 store_return_values, deprecated_extract_struct_value_address and
5965 use_struct_convention. Set return_value instead. Initialize new
5966 struct_value_regnum member of `struct gdbarch_tdep'.
5967 * m68klinux-tdep.c: Update copyright year.
5968 (m68k_linux_extract_return_value, m68k_linux_store_return_value)
5969 (m68k_linux_extract_struct_value_address): Remove function.
5970 (m68k_linux_init_abi): Don't set extract_return_value,
5971 store_return_values, deprecated_extract_struct_value_address and
5972 use_struct_convention. Call m68k_svr4_init_abi but override the
5973 new struct_value_regnum member of `struct gdbarch_tdep'.
5974 * Makefile.in (m68k-tdep.o): Update dependencies.
5975
aaa75496
JB
59762004-05-03 J. Brobecker <brobecker@gnat.com>
5977
5978 * dwarf2read.c (line_header): Add new included_p field in
5979 field file_names.
5980 (partial_die_info): New field has_stmt_list. New field line_offset.
5981 (dwarf2_create_include_psymtab): New function.
5982 (dwarf2_build_include_psymtabs): New function.
5983 (add_file_name): Add forward declaration. Initialize new field.
5984 (dwarf_decode_lines): Add new parameter. Enhance this procedure
5985 to be able to determine the list of files included by the
5986 given unit, and build their associated psymtabs.
5987 (dwarf2_build_psymtabs_hard): Build the psymtabs for the included
5988 files as well.
5989 (psymtab_to_symtab_1): Build the symtabs of all dependencies as well.
5990 (read_file_scope): Update call to dwarf_decode_lines.
5991 (read_partial_die): Handle DW_AT_stmt_list attributes.
5992
c848556f
MC
59932004-05-02 Michael Chastain <mec.gnu@mindspring.com>
5994
5995 Unfix PR gdb/1626.
5996 * configure.in: Revert special case for osf5.*.
5997 * configure: Regenerate.
5998
eb4556d7
JB
59992004-05-02 Jim Blandy <jimb@redhat.com>
6000
6001 Move the symbol-file-from-memory functions into their own file.
6002 * symfile-mem.c, symfile-mem.h: New files.
6003 * symfile.c (symbol_file_add_from_bfd): New function.
6004 (symbol_file_add): Call symbol_file_add_from_bfd.
6005 (symbol_file_add_from_memory, add_symbol_file_from_memory_command):
6006 Moved to symfile-mem.c.
6007 (_initialize_symfile): Move definition of
6008 add-symbol-file-from-memory command to symfile-mem.c.
6009 * symfile.h (symbol_file_add_from_bfd): New declaration.
6010 * config/i386/linux.mt (TDEPFILES): Add symfile-mem.o.
6011 * config/powerpc/linux.mt (TDEPFILES): Same.
6012 * Makefile.in (SFILES): Add symfile-mem.c.
6013 (symfile_mem_h): New variable.
6014 (HFILES_NO_SRCDIR): Add symfile-mem.h.
6015 (symfile-mem.o): New rule.
6016
80bb239e
AC
60172004-05-01 Andrew Cagney <cagney@redhat.com>
6018
7789d0fa
AC
6019 * breakpoint.c (insert_bp_location): Use get_frame_id, and
6020 frame_find_by_id instead of frame_relative_level.
6021 (do_enable_breakpoint): Ditto.
6022 * thread.c: Update copyright.
6023 (info_threads_command): Ditto, simplify.
6024
80bb239e
AC
6025 * frame.c (deprecated_generic_get_saved_register): Delete
6026 function, moved to "xstormy16-tdep.c".
6027 * xstormy16-tdep.c (xstormy16_get_saved_register): Inline
6028 deprecated_generic_get_saved_register from "frame.c".
6029 (xstormy16_frame_saved_register): Call
6030 xstormy16_get_saved_register.
6031 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Make
6032 static.
6033 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Delete.
6034 * frame.h (deprecated_generic_get_saved_register): Delete.
6035
b2a871dd
MC
60362004-05-01 Michael Chastain <mec.gnu@mindspring.com>
6037
6038 * dwarfread.c: Update documentation on the state of dwarf-1.
6039
0e100dab
AC
60402004-05-01 Andrew Cagney <cagney@redhat.com>
6041
acd8056e
AC
6042 * stack.c (select_frame_command): Delete call to
6043 frame_relative_level.
6044 (print_frame, set_backtrace_limit_command, backtrace_limit_info):
6045 Delete #if0 code.
6046 (frame_info): Do not print FRAMELESS.
6047 (print_block_frame_labels): Replace DEPRECATED_STREQ.
6048 (catch_info): Delete #if0 code.
6049
0e100dab
AC
6050 * frame.c (create_sentinel_frame): Set type to SENTINEL_FRAME.
6051 * dummy-frame.c (dummy_frame_this_id): Use get_frame_type, instead
6052 of frame_relative_level.
6053 * sentinel-frame.c (sentinel_frame_unwinder): Set unwinder's type
6054 to SENTINEL_FRAME.
6055 * frame.h (enum frame_type): Add SENTINEL_FRAME.
6056 * s390-tdep.c (s390_prologue_frame_unwind_cache): Delete calls to
6057 frame_relative_level.
6058
55699d59
AC
6059 * frame.h (deprecated_set_frame_type): Delete declaration.
6060 * frame.c (deprecated_set_frame_type): Delete function, update
6061 comments.
6062
fcf70625
AC
6063 * gdbarch.sh (DEPRECATED_PC_IN_SIGTRAMP): Delete.
6064 * gdbarch.h, gdbarch.c: Re-generate.
6065 * shnbsd-tdep.c (shnbsd_init_abi): Do not set pc_in_sigtramp.
6066 (shnbsd_pc_in_sigtramp): Delete.
6067 * i386-interix-tdep.c (i386_interix_init_abi): Do not set
6068 pc_in_sigtramp.
6069 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Do not set
6070 pc_in_sigtramp.
6071 * frame.h: Update comments.
6072 * ppc-linux-tdep.c: Update comments.
6073 * breakpoint.c (bpstat_what): Update comments.
6074
ac5eccb7
AC
6075 * Makefile.in (m68klinux-tdep.o, m68klinux-nat.o): Fix
6076 m68klinux-tdep.o's dependencies, were previously added to
6077 m68klinux-nat.o.
6078
f2524b93
AC
6079 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Use pc_in_sigtramp.
6080 * alpha-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp.
6081 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
6082 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
6083 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
6084
17e20bce
AC
6085 * Makefile.in (m68klinux-nat.o): Update dependencies.
6086 * m68klinux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
6087 (m68k_linux_sigtramp_frame_cache)
6088 (m68k_linux_sigtramp_frame_this_id)
6089 (m68k_linux_sigtramp_frame_prev_register)
6090 (m68k_linux_sigtramp_frame_unwind)
6091 (m68k_linux_sigtramp_frame_sniffer)
6092 (struct m68k_linux_sigtramp_info, m68k_linux_init_abi): Code from
6093 m68k-tdep.h and m68k-tdep.c, add "linux" to function and variable
6094 names, use trad-frame.h.
6095 * m68k-tdep.h (struct gdbarch_tdep): Delete get_sigtramp_info.
6096 (struct m68k_sigtramp_info): Delete.
6097 * m68k-tdep.c (m68k_sigtramp_frame_cache)
6098 (m68k_sigtramp_frame_this_id, m68k_sigtramp_frame_prev_register)
6099 (m68k_sigtramp_frame_unwind, m68k_sigtramp_frame_sniffer)
6100 (m68k_gdbarch_init): Delete all the sigtramp code, moved to
6101 "m68klinux-tdep.c".
6102
c8864fa2
AC
6103 * infrun.c (check_sigtramp2): Delete check for
6104 DEPRECATED_PC_IN_SIGTRAMP and INNER_THAN.
6105
511dd2cd
MK
61062004-05-01 Mark Kettenis <kettenis@gnu.org>
6107
6108 * m68k-tdep.h (m68kbsd_fpreg_offset): New prototype.
6109
8c6b0e06
AC
61102004-05-01 Andrew Cagney <cagney@redhat.com>
6111
9df0bb3f
AC
6112 * frv-linux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
6113 (frv_linux_sigtramp_frame_cache)
6114 (frv_linux_sigtramp_frame_this_id)
6115 (frv_linux_sigtramp_frame_prev_register)
6116 (frv_linux_sigtramp_frame_unwind)
6117 (frv_linux_sigtramp_frame_sniffer): Copied from frv-tdep.c,
6118 include "linux" in function and variable names, directly call
6119 frv_linux_pc_in_sigtramp and frv_linux_sigcontext_reg_addr, use
6120 the latest trad-frame code.
6121 (frv_linux_init_abi): Append frv_linux_sigtramp_frame_sniffer, do
6122 not set frv_sigcontext_reg_addr or deprecated_pc_in_sigtramp
6123 * Makefile.in (frv-linux-tdep.o): Update dependencies.
6124 * frv-tdep.h (frv_set_sigcontext_reg_addr): Delete declaration.
6125 * frv-tdep.c (frv_sigtramp_frame_cache)
6126 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
6127 (frv_sigtramp_frame_unwind, frv_sigtramp_frame_sniffer): Moved to
6128 frv-linux-tdep.c.
6129 (frv_gdbarch_init): Do not append a sigtramp sniffer.
6130 (struct gdbarch_tdep): Delete sigcontext_reg_addr.
6131 (frv_set_sigcontext_reg_addr): Delete function.
6132
8c6b0e06
AC
6133 * gdbarch.sh (DEPRECATED_SIGTRAMP_START)
6134 (DEPRECATED_SIGTRAMP_END): Delete.
6135 * gdbarch.h, gdbarch.c: Re-generate.
6136 * arch-utils.c (legacy_pc_in_sigtramp): Simplify.
6137 * config/vax/tm-vaxbsd.h: Update copyright.
6138 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
6139 (DEPRECATED_IN_SIGTRAMP): Define.
6140 * config/m68k/tm-nbsd.h: Update copyright.
6141 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
6142 (DEPRECATED_IN_SIGTRAMP): Define.
6143
50ea7769
MK
61442004-05-01 Mark Kettenis <kettenis@gnu.org>
6145
03ac2a74
MK
6146 * dwarf2-frame.c (read_encoded_value): Handle DW_EH_PE_funcrel
6147 encondings. Fixes PR gdb/1628.
6148
50ea7769
MK
6149 * dwarf2-frame.c (execute_cfa_program): Complain if we encounter a
6150 DW_CFA_restore state without a matching DW_CFA_remember_state
6151 instead of aborting. Fixes PR backtrace/1589.
6152
9a5d7be1
JB
61532004-04-30 Joel Brobecker <brobecker@gnat.com>
6154
6155 * MAINTAINERS: Add self as AIX maintainer.
6156 Update my e-mail address in write-after-approval section.
6157
2593d1cd
AC
61582004-04-30 Andrew Cagney <cagney@redhat.com>
6159
ce12bbf9
AC
6160 * frame.c (frame_type_from_pc): Delete call to PC_IN_SIGTRAMP.
6161 (legacy_get_prev_frame): Ditto.
6162
36710c63
AC
6163 * mips-tdep.c (mips_pc_in_sigtramp): Delete.
6164 (mips_gdbarch_init): Do not set pc_in_sigtramp.
6165 * mipsread.c (sigtramp_address): Delete extern variable.
6166 (mipscoff_new_init): Delete reference.
6167 * mdebugread.c (sigtramp_address, sigtramp_end): Delete variables.
6168 (fixup_sigtramp): Delete function.
6169 * config/mips/tm-mips.h (sigtramp_address, sigtramp_end)
6170 (fixup_sigtramp): Delete declarations.
6171
2593d1cd
AC
6172 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Do not set
6173 deprecated_pc_in_sigtramp.
6174 (ppcnbsd_pc_in_sigtramp): Delete function.
6175
2a25f91c
MK
61762004-05-01 Mark Kettenis <kettenis@gnu.org>
6177
6178 * config/m68k/nm-nbsd.h: Tweak comments.
6179 * config/m68k/nm-nbsdaout.h: Likewise.
6180
0b281939
AC
61812004-04-30 Andrew Cagney <cagney@redhat.com>
6182
6183 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Call
6184 legacy_pc_in_sigtramp.
6185 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Ditto.
6186
8f2d3ea0
MK
61872004-05-01 Mark Kettenis <kettenis@gnu.org>
6188
6189 Add OpenBSD/m68k support.
6190 * NEWS (New native configurations): Mention OpenBSD/m68k.
6191 * m68kbsd-tdep.c: New file.
6192 * m68kbsd-nat.c: New file.
6193 * Makefile.in (ALLDEPFILES): Add m68kbsd-nat.c and m68kbsd-tdep.c.
6194 (m68kbsd-nat.o, m68kbsd-tdep.o): New dependencies.
6195 * configure.host: Add m68k-*-openbsd.
6196 * configure.tgt: Add m68k-*-openbsd.
6197 * config/m68k/tm-obsd.h: New file.
6198 * config/m68k/obsd.mt: New file.
6199 * config/m68k/obsd.mh: New file.
6200 * config/djgpp/fnchange.lst: Add entries for m68kbsd-nat.c and
6201 m68kbsd-tdep.c.
6202
c40f49a4
AC
62032004-04-30 Andrew Cagney <cagney@redhat.com>
6204
6205 * mipsnbsd-tdep.c (mipsnbsd_pc_in_sigtramp): Delete function.
6206 (mipsnbsd_init_abi): Do not set pc_in_sigtramp.
6207
e81554cd
MK
62082004-04-30 Mark Kettenis <kettenis@gnu.org>
6209
6210 * m68k-tdep.c (REMOTE_BPT_VECTOR): Remove define.
6211 * config/m68k/tm-nbsd.h (REMOTE_BPT_VECTOR): Remove define.
6212
d4dc1a91
BF
62132004-04-30 Brian Ford <ford@vss.fsi.com>
6214
6215 Revert 2004-04-16 change.
6216 * i386-tdep.c (i386_gdbarch_init): Fix comment typos.
6217 (i386_coff_init_abi): Remove.
6218 * i386-tdep.h (i386_coff_init_abi): Remove.
6219 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Remove call to above.
6220
2f72f850
AC
62212004-04-30 Andrew Cagney <cagney@redhat.com>
6222
e492f9d6
AC
6223 * blockframe.c (find_pc_partial_function): Delete use of
6224 DEPRECATED_PC_IN_SIGTRAMP, DEPRECATED_SIGTRAMP_START and
6225 DEPRECATED_SIGTRAMP_END.
6226
7b7adad0
AC
6227 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Delete.
6228 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Delete.
6229 * config/mips/tm-nbsd.h: Delete undef DEPRECATED_IN_SIGTRAMP.
6230 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Delete.
6231 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Delete.
6232
2f72f850
AC
6233 * defs.h (deprecated_inside_entry_file): Delete declaration.
6234 * blockframe.c (deprecated_inside_entry_file): Delete function.
6235 (legacy_frame_chain_valid): Delete call.
6236 * sh64-tdep.c (sh64_frame_chain): Delete call.
6237 * objfiles.h: Update comments.
6238 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Delete
6239 call.
6240 * frame.c (get_prev_frame): Delete call, update comments.
6241
283f90a7
BF
62422004-04-30 Brian Ford <ford@vss.fsi.com>
6243
6244 * MAINTAINERS (Write After Approval): Add myself.
6245
8ee56bcf
AC
62462004-04-30 Andrew Cagney <cagney@redhat.com>
6247
6248 * gdbarch.sh (BELIEVE_PCC_PROMOTION_TYPE): Delete.
6249 * gdbarch.h, gdbarch.c: Re-generate.
6250 * stabsread.c (define_symbol): Delete BELIEVE_PCC_PROMOTION_TYPE
6251 code.
6252
ee27e1b6
AC
62532004-04-30 Andrew Cagney <cagney@redhat.com>
6254
6255 * gdb-events.sh (selected_thread_changed)
6256 (selected_frame_level_changed, target_changed): Delete.
6257 * gdb-events.h, gdb-events.c: Re-generate.
6258 * valops.c (value_assign): Update.
6259 * stack.c (select_frame_command, up_silently_base)
6260 (down_silently_base): Update.
6261
d5ac5a39
AC
62622004-04-29 Andrew Cagney <cagney@redhat.com>
6263
6264 * mips-tdep.c (mips_register_type): Re-write, handle 32-bit ABI
6265 registers correctly.
6266 (print_gp_register_row, mips32_heuristic_proc_desc)
6267 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
6268 (mips_o64_push_dummy_call, mips_eabi_push_dummy_call): Eliminate
6269 references to mips_isa_regsize.
6270
ceae6e75
AC
62712004-04-29 Andrew Cagney <cagney@redhat.com>
6272
6273 * mips-tdep.c (struct gdbarch_tdep): Delete
6274 mips_fp_register_double.
6275 (FP_REGISTER_DOUBLE): Delete macro, replace with test for
6276 mips_abi_regsize.
6277 (mips_gdbarch_init): Do not set mips_fp_register_double.
6278 (mips_dump_tdep): Do not print FP_REGISTER_DOUBLE.
6279
a587af0b
AC
62802004-04-29 Joel Brobecker <brobecker@gnat.com>
6281
6282 Committed by Andrew Cagney.
6283 * infrun.c (handle_inferior_event): Rely on frame IDs to detect
6284 function calls.
6285
13326b4e
AC
62862004-04-29 Andrew Cagney <cagney@redhat.com>
6287
6288 * mips-tdep.c (mips_abi_regsize): Replace tdep parameter with
6289 gdbarch, use mips_abi, update callers.
6290 (mips_stack_argsize): Replace tdep parameter with gdbarch, use
6291 mips_abi_regsize, update callers.
6292 (struct gdbarch_tdep): Delete mips_default_stack_argsize and
6293 mips_default_abi_regsize.
6294 (mips_gdbarch_init): Do not set mips_default_stack_argsize and
6295 mips_default_abi_regsize.
6296
711cc5cd
AC
62972004-04-29 Andrew Cagney <cagney@redhat.com>
6298
1b13c4f6
AC
6299 * mips-tdep.c (mips_abi_regsize): Rename mips_saved_regsize.
6300 (mips_abi_regsize_string): Rename mips_saved_regsize_string.
6301 (struct gdbarch_tdep): Rename mips_default_saved_regsize to
6302 mips_default_abi_regsize.
6303 (mips_isa_regsize): Rename mips_regisze.
6304 * mipsnbsd-tdep.c: Update.
6305 * mips-linux-tdep.c: Update.
6306 * irix5-nat.c: Update.
6307 * mips-tdep.h (mips_isa_regsize): Update.
6308
711cc5cd
AC
6309 * gdb-events.sh (WITH_GDB_EVENTS): Delete macro and references.
6310 Delete all disabled code.
6311 * gdb-events.h, gdb-events.c: Re-generate.
6312
e63bbc88
MK
63132004-04-19 Jerome Guitton <guitton@gnat.com>
6314 Mark Kettenis <kettenis@gnu.org>
6315
6316 * i386-tdep.c (i386_skip_prologue): follow the last jump only if
6317 the function begins with a branch instruction.
6318
fd35795f
MK
63192004-04-29 Mark Kettenis <kettenis@gnu.org>
6320
6321 * i386-tdep.c: Fix spelling mistakes.
6322
c960c18f
AC
63232004-04-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6324 Andrew Cagney <cagney@redhat.com>
6325
6326 * configure.in (mips-sgi-irix5*): Define _KMEMUSER for
6327 <sys/proc.h>.
6328 * acconfig.h: Provide default _KMEMUSER value.
6329 * config.in, configure: Re-generate.
6330 * NEWS: Mention fix.
6331
50306a9d
RC
63322004-04-24 Randolph Chung <tausq@debian.org>
6333
6334 * configure.host (hppa*-*-linux*): New target.
6335 * configure.tgt (hppa*-*-linux*): Likewise.
6336 * hppa-tdep.c (hppa_gdbarch_init): Set cannot_fetch_register, move
6337 gdbarch_init_osabi() call earlier so that osabi-specific frame
6338 unwinders can be registered first.
6339 * config/djgpp/fnchange.lst: Add entries for hppa-linux-tdep.c and
6340 hppa-linux-nat.c.
6341 * config/pa/tm-hppa.h (ISR_REGNUM, PID0_REGNUM, PID1_REGNUM)
6342 (PID2_REGNUM, PID3_REGNUM): Add definitions of some register numbers.
6343 * config/pa/linux.mh: New file.
6344 * config/pa/linux.mt: New file.
6345 * config/pa/nm-linux.h: New file.
6346 * config/pa/xm-linux.h: New file.
6347 * hppa-linux-nat.c: New file.
6348 * hppa-linux-tdep.c: New file.
6349
2a6228ef
RC
63502004-04-28 Randolph Chung <tausq@debian.org>
6351
6352 * hppa-tdep.c (hppa32_return_value): Handle both 4- and 8-byte fp
6353 return values.
6354 (hppa32_push_dummy_call): Fix small struct and floating point argument
6355 passing, and make sure the stack frame is properly aligned.
6356
82c10df6
AC
63572004-04-28 Andrew Cagney <cagney@redhat.com>
6358
d762c46a
AC
6359 * stack.c (print_stack_frame): Fix description.
6360
82c10df6
AC
6361 * NEWS: Mention gdb/gdbserver/configure execute permission
6362 changed. PR server/519.
6363
0faf0076
AC
63642004-04-28 Andrew Cagney <cagney@redhat.com>
6365
6366 * stack.c (print_stack_frame_stub): Delete declaration.
6367 (struct print_stack_frame_args, print_stack_frame)
6368 (print_frame_info, print_frame): Replace "source" with print what.
6369 Replace "print" with "print_level". Replace "args" with
6370 "print_args".
6371 * frame.h (show_and_print_stack_frame, print_stack_frame)
6372 (print_frame_info): Update declarations.
6373 * stack.c (select_and_print_frame, frame_command)
6374 (current_frame_command, up_command, down_command): Update calls -
6375 use get_selected_frame, pass "enum print_what" for source, do not
6376 call frame_relative_level.
6377 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Ditto.
6378 * remote-rdp.c (remote_rdp_open): Ditto.
6379 * remote-mips.c (common_open): Ditto.
6380 * remote-e7000.c (e7000_start_remote): Ditto.
6381 * ocd.c (ocd_start_remote): Ditto.
6382 * mi/mi-main.c (mi_cmd_exec_return): Ditto.
6383 * infrun.c (normal_stop): Ditto.
6384 * inflow.c (kill_command): Ditto.
6385 * infcmd.c (finish_command): Ditto.
6386 * corelow.c (core_open): Ditto.
6387 * tracepoint.c (finish_tfind_command): Ditto.
6388 * thread.c (info_threads_command, info_threads_command)
6389 (restore_current_thread, do_captured_thread_select): Ditto.
6390 * ada-tasks.c (task_command): Ditto.
6391
f4c5303c
OF
63922004-04-26 Orjan Friberg <orjanf@axis.com>
6393
6394 * frame.c: Include "observer.h".
6395 (frame_observer_target_changed): New function.
6396 (_initialize_frame): Attach target_changed observer.
6397 * regcache.c: Include "observer.h".
6398 (regcache_observer_target_changed): New function.
6399 (_initialize_regcache): Attach target_changed observer.
6400 * valops.c: Include "observer.h".
6401 (value_assign): Notify target_changed event when modifying register.
6402 * Makefile.in (frame.o, regcache.o, valops.o): Add $(observer_h).
6403
7270d8f2
OF
64042004-04-26 Orjan Friberg <orjanf@axis.com>
6405
6406 From Paul Koning <pkoning@equallogic.com>:
6407 * breakpoint.c (free_valchain): New function.
6408 (insert_bp_location, delete_breakpoint): Use free_valchain.
6409 (remove_breakpoint): Do not remove the valchain.
6410 (bpstat_stop_status): If not stopped by watchpoint, skip
6411 watchpoints when generating stop status list.
6412 * infrun.c (handle_inferior_event): Make
6413 stepped_after_stopped_by_watchpoint a global variable.
6414 * remote.c (remote_stopped_data_address): Return watch data
6415 address rather than zero if stepped_after_stopped_by_watchpoint is
6416 set.
6417
02d62932
MC
64182004-04-25 Michael Chastain <mec.gnu@mindspring.com>
6419
6420 Fix PR gdb/1626.
6421 * configure.in: Check for curses after termcap.
6422 On osf5.*, do not check for ncurses.
6423 * configure: Regenerate.
6424
3e9a183c
MK
64252004-04-25 Mark Kettenis <kettenis@gnu.org>
6426
c79ac407
MK
6427 * ppcobsd-nat.c: Include "ppc-tdep.h".
6428 * Makefile.in (ppcobsd-nat.o): Update dependencies.
6429
3e9a183c
MK
6430 * stack.c (return_command): Use CHECK_TYPEDEF on the return type.
6431 Fixes PR tdep/1623 and PR tdep/1624.
6432
38cc9c28
MC
64332004-04-24 Michael Chastain <mec.gnu@mindspring.com>
6434
6435 * xmodem.h, xmodem.c: Remove files.
6436 * Makefile.in: Remove references to xmodem.h, xmodem.c.
6437
7f07c5b6
RC
64382004-04-23 Randolph Chung <tausq@debian.org>
6439
6440 * hppa-tdep.c (hppa_stub_unwind_cache, hppa_stub_frame_unwind_cache)
6441 (hppa_stub_frame_this_id, hppa_stub_frame_prev_register)
6442 (hppa_stub_frame_unwind, hppa_stub_unwind_sniffer): New stub unwinder
6443 for handling stackless frames.
6444 (hppa_gdbarch_init): Link in hppa_stub_unwind_sniffer.
6445
9f7194c3
RC
64462004-04-23 Randolph Chung <tausq@debian.org>
6447
6448 * hppa-tdep.c (hppa_frame_cache): Handle the case when frame unwind
6449 starts at a pc before the frame is created.
6450
dcff6009
JB
64512004-04-23 Joel Brobecker <brobecker@gnat.com>
6452
6453 * ChangeLog-2002: Fix year in one of the ChangeLog entries.
6454
40711ff1 64552004-04-23 Jerome Guitton <guitton@gnat.com>
65951cd9
JG
6456
6457 * rs6000-tdep.c (rs6000_extract_return_value): When extracting a float,
6458 use convert_typed_floating to get the appropriate format.
6459
abc485a1
RC
64602004-04-22 Randolph Chung <tausq@debian.org>
6461
6462 * hppa-tdep.h (find_unwind_entry, hppa_get_field, hppa_extract_5_load)
6463 (hppa_extract_5R_store, hppa_extract_5r_store, hppa_extract_17)
6464 (hppa_extract_21, hppa_extract_14, hppa_low_sign_extend)
6465 (hppa_sign_extend): Add prototype.
6466 * hppa-tdep.c (get_field, extract_5_load, extract_5R_store)
6467 (extract_5r_store, extract_17, extract_21, extract_14, low_sign_extend)
6468 (sign_extend): Rename with hppa_ prefix and make non-static. Other
6469 hppa targets will also use these functions.
6470 (find_unwind_entry): Remove prototype (moved to hppa-tdep.h).
6471 (hppa_in_solib_call_trampoline, hppa_in_solib_return_trampoline)
6472 (hppa_skip_trampoline_code): Move to hppa-hpux-tdep.c
6473 (hppa_gdbarch_init): Remove gdbarch setting of
6474 skip_trampoline_code, in_solib_call_trampoline and
6475 in_solib_return_trampoline.
6476 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
6477 (hppa64_hpux_in_solib_call_trampoline): New functions, split from
6478 hppa_in_solib_call_trampoline.
6479 (hppa_hpux_in_solib_return_trampoline, hppa_hpux_skip_trampoline_code):
6480 Moved from hppa-tdep.c.
6481 (hppa_hpux_init_abi): Set gdbarch for skip_trampoline_code,
6482 in_solib_call_trampoline and in_solib_return_trampoline.
6483
369aa520
RC
64842004-04-22 Randolph Chung <tausq@debian.org>
6485
6486 * hppa-tdep.c (hppa_debug): New variable.
6487 (find_unwind_entry, hppa_frame_cache): Add debug output.
6488 (_initialize_hppa_tdep): Add command to set debug flag.
6489
476be15e
AC
64902004-04-22 Andrew Cagney <cagney@redhat.com>
6491
6492 * ppcnbsd-tdep.c: Update copyright. Include "tramp-frame.h" and
6493 "trad-frame.h".
6494 (ppcnbsd_sigtramp_cache_init, ppcnbsd_sigtramp): Implement a NetBSD
6495 signal trampoline unwinder.
6496 (ppcnbsd_init_abi): Register ppcnbsd_sigtramp.
6497
d195bc9f
MK
64982004-04-22 Mark Kettenis <kettenis@gnu.org>
6499
6500 Add OpenBSD/powerpc support.
6501 * NEWS (New native configurations): Mention OpenBSD/powerpc.
6502 * ppc-tdep.h (struct ppc_reg_offsets): New structure.
6503 (ppc_supply_gregset, ppc_supply_fpregset, ppc_collect_gregset)
6504 (ppc_collect_fpregset): New prototypes.
6505 * ppcobsd-nat.c: New file.
6506 * ppcobsd-tdep.c: New file.
6507 * ppcobsd-tdep.h: New file.
6508 * rs6000-tdep.c: Include "regset.h".
6509 (ppc_supply_reg, ppc_collect_reg, ppc_supply_gregset)
6510 (ppc_supply_fpregset, ppc_collect_gregset, ppc_collect_fpregset):
6511 New functions.
6512 * Makefile.in (ALLDEPFILES): Add pccobsd-nat.c and ppcobsd-tdep.c.
6513 (ppcobsd-nat.o, ppcobsd-tdep.o): New dependencies.
6514 (rs6000-tdep.o): Update dependencies.
6515 * configure.host: Add powerpc-*-openbsd.
6516 * configure.tgt: Add powerpc-*-openbsd.
6517 * config/powerpc/obsd.mh: New file.
6518 * config/powerpc/nm-obsd.h: New file.
6519 * config/powerpc/obsd.mt: New file.
6520
6f14cc33
AC
65212004-04-22 Andrew Cagney <cagney@redhat.com>
6522
fcf29e5f
AC
6523 * frame.h (show_frame_info): Delete declaration.
6524
6f14cc33
AC
6525 * arm-tdep.c (arm_prologue_this_id): Delete redundant cycle test.
6526 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
6527 * m32r-tdep.c (m32r_frame_this_id): Ditto.
6528 * frv-tdep.c (frv_frame_this_id): Ditto.
6529 * avr-tdep.c (avr_frame_this_id): Ditto.
6530
e5786a5c
EZ
65312004-04-22 Elena Zannoni <ezannoni@redhat.com>
6532
6533 * MAINTAINERS: Drop maintenance of gdb.stabs, and linespec.c.
6534
26e75e5c
JB
65352004-04-22 Jim Blandy <jimb@redhat.com>
6536
6537 * ppc-linux-nat.c (ppc_register_u_addr): Don't assume that r0 is
6538 register number zero.
6539
d8d65dd3
MS
65402004-04-21 Michael Snyder <msnyder@redhat.com>
6541
6542 * mips-tdep.c (heuristic_proc_start):
6543 Warning() already prefixes "Warning: ".
6544
9a4105ab
AC
65452004-04-21 Andrew Cagney <cagney@redhat.com>
6546
6547 * annotate.h (deprecated_annotate_starting_hook)
6548 (deprecated_annotate_stopped_hook)
6549 (deprecated_annotate_exited_hook)
6550 (deprecated_annotate_signal_hook)
6551 (deprecated_annotate_signalled_hook): Deprecate.
6552 * tracepoint.h (deprecated_create_tracepoint_hook)
6553 (deprecated_delete_tracepoint_hook)
6554 (deprecated_modify_tracepoint_hook)
6555 (deprecated_trace_find_hook)
6556 (deprecated_trace_start_stop_hook): Deprecate.
6557 * target.h (deprecated_target_new_objfile_hook): Deprecate.
6558 * remote.h (deprecated_target_resume_hook)
6559 (deprecated_target_wait_loop_hook): Deprecate.
6560 * gdbcore.h (deprecated_exec_file_display_hook)
6561 (deprecated_file_changed_hook): Deprecate.
6562 * frame.h (deprecated_selected_frame_level_changed_hook): Deprecate.
6563 * defs.h (deprecated_modify_breakpoint_hook)
6564 (deprecated_command_loop_hook, deprecated_show_load_progress)
6565 (deprecated_print_frame_info_listing_hook)
6566 (deprecated_query_hook, deprecated_warning_hook)
6567 (deprecated_flush_hook, deprecated_create_breakpoint_hook)
6568 (deprecated_delete_breakpoint_hook)
6569 (deprecated_interactive_hook, deprecated_registers_changed_hook)
6570 (deprecated_readline_begin_hook, deprecated_readline_hook)
6571 (deprecated_readline_end_hook, deprecated_register_changed_hook)
6572 (deprecated_memory_changed_hook, deprecated_init_ui_hook)
6573 (deprecated_context_hook, deprecated_target_wait_hook)
6574 (deprecated_attach_hook, deprecated_detach_hook)
6575 (deprecated_call_command_hook, deprecated_set_hook)
6576 (deprecated_error_hook, deprecated_error_begin_hook)
6577 (deprecated_ui_load_progress_hook): Deprecate.
6578 * valops.c, uw-thread.c, utils.c, tui/tui-io.c: Update.
6579 * tui/tui-hooks.c, tracepoint.c, top.c, thread-db.c: Update.
6580 * target.c, symfile.c, stack.c, sol-thread.c, rs6000-nat.c: Update.
6581 * remote.c, remote-mips.c, regcache.c, mi/mi-interp.c: Update.
6582 * main.c, interps.c, infcmd.c, hpux-thread.c, frame.c: Update.
6583 * exec.c, dsrec.c, d10v-tdep.c, corefile.c, complaints.c: Update.
6584 * cli/cli-script.c, cli/cli-setshow.c, breakpoint.c: Update.
6585 * annotate.c, aix-thread.c: Update.
6586
62cf13cc
AC
65872004-04-21 Andrew Cagney <cagney@redhat.com>
6588
b2e31a62
AC
6589 * Makefile.in (vaxnbsd-tdep.o): Update dependencies.
6590 * vaxnbsd-tdep.c: Include "gdb_string.h".
6591
62cf13cc
AC
6592 * symfile.c (symbol_file_add_from_memory): #if 0 function.
6593 (add_symbol_file_from_memory_command): #if 0 function body, call
6594 error instead.
6595
00e32a35
AC
65962004-04-21 Andrew Cagney <cagney@redhat.com>
6597
6598 * gdbcore.h: Update copyright.
6599 (deprecated_add_core_fns): Rename add_core_fns.
6600 * win32-nat.c (_initialize_core_win32): Update.
6601 * sun3-nat.c (_initialize_core_sun3): Update.
6602 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Update.
6603 * rs6000-nat.c (_initialize_core_rs6000): Update.
6604 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Update.
6605 * nto-tdep.c (_initialize_nto_tdep): Update.
6606 * ns32knbsd-nat.c (_initialize_ns32knbsd_nat): Update.
6607 * mipsnbsd-tdep.c (_initialize_mipsnbsd_tdep): Update.
6608 * mips-nat.c (_initialize_core_mips): Update.
6609 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
6610 * m68knbsd-nat.c (_initialize_m68knbsd_nat): Update.
6611 * m68klinux-nat.c (_initialize_m68k_linux_nat): Update.
6612 * lynx-nat.c (_initialize_core_lynx): Update.
6613 * irix5-nat.c (_initialize_core_irix5): Update.
6614 * i386-interix-nat.c (_initialize_core_interix): Update.
6615 * cris-tdep.c (_initialize_cris_tdep): Update.
6616 * corelow.c (deprecated_add_core_fns): Update.
6617 * core-regset.c (_initialize_core_regset): Update.
6618 * core-aout.c (_initialize_core_aout): Update.
6619 * armnbsd-nat.c (_initialize_arm_netbsd_nat): Update.
6620 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Update.
6621 * alpha-nat.c (_initialize_core_alpha): Update.
6622
13c7b1ca
JB
66232004-04-21 Jim Blandy <jimb@redhat.com>
6624
6625 * rs6000-tdep.c (registers_e500, registers_7400): Doc fixes.
6626
7b5a2f43
DJ
66272004-04-19 Daniel Jacobowitz <drow@mvista.com>
6628
6629 * dwarf2read.c (dwarf2_tmp_obstack, dwarf2_free_tmp_obstack):
6630 Delete.
6631 (dwarf_alloc_block): Take a CU argument. Use the comp_unit_obstack.
6632 (read_attribute_value): Update calls to dwarf_alloc_block.
6633 (dwarf2_build_psymtabs_hard): Don't initialize or clean up
6634 dwarf2_tmp_obstack.
6635 (psymtab_to_symtab_1): Likewise. Clean up using
6636 free_stack_comp_unit.
6637 (add_to_cu_func_list): Use the comp_unit_obstack.
6638
05cf31d1
JB
66392004-04-19 Joel Brobecker <brobecker@gnat.com>
6640
6641 * dwarf2read.c (dwarf2_flag_true_p): New function.
6642 (die_is_declaration): Use the function above. Add some comments.
6643
adf93a2f
MK
66442004-04-19 Mark Kettenis <kettenis@gnu.org>
6645
6646 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Specify
6647 architecture when registering sparcnbsd_core_osabi_sniffer.
6648 Adjust comment.
6649
748894bf
MK
66502004-04-18 Mark Kettenis <kettenis@gnu.org>
6651
f622ad42
MK
6652 * infcall.c (find_function_addr): Add FUNCTION_START_OFFSET to
6653 return value.
6654
c4fc7f1b
MK
6655 Based on a patch from Brian Ford <ford@vss.fsi.com>:
6656 * i386-tdep.c: Correct register numbering scheme comments
6657 throughout.
6658 (i386_stab_reg_to_regnum): Rename to i386_dbx_reg_to_regnum.
6659 (i386_dwarf_reg_to_regnum): Rename to i386_svr4_reg_to_regnum.
6660 (i386_coff_init_abi, i386_elf_init_abi): Accomodate renames above.
6661 (i386_gdb_arch_init): Likewise.
6662
b4ead1bd
MK
6663 * Makefile.in (ALLDEPFILES): List ppc-sysv-tdep.c, ppcnbsd-nat.c
6664 and ppcnbsd-tdep.c instead of ppc-sysv-tdep.o, ppcnbsd-nat.o and
6665 ppcnbsd-tdep.o.
6666
748894bf
MK
6667 * m68k-tdep.h: Tweak comments.
6668 * m68k-tdep.c: Tweak comment.
6669
fdd72f95
RC
66702004-04-17 Randolph Chung <tausq@debian.org>
6671
6672 * Makefile.in (hppa-hpux-tdep.o): Add $(hppa_tdep_h).
6673 * hppa-hpux-tdep.c (hppa-tdep.h): Include.
6674 (hppa_hpux_som_init_abi): Set is_elf to 0.
6675 (hppa_hpux_elf_init_abi): Set is_elf to 1.
6676 * hppa-tdep.c (low_text_segment_address): Remove global.
6677 (record_text_segment_lowaddr): Pass in low address as parameter. Use
6678 section offset to calculate segment address.
6679 (internalize_unwinds): Define low_text_segment_address as local and
6680 pass to record_text_segment_lowaddr for ELF targets.
6681 (hppa_gdbarch_init): Zero fill tdep structure.
6682 (hppa_dump_tdep): Print tdep structure.
6683 * hppa-tdep.h (gdbarch_tdep): Add is_elf member to tdep structure.
6684
0f8d9d59
RC
66852004-04-17 Randolph Chung <tausq@debian.org>
6686
6687 * hppa-tdep.c (hppa_pseudo_register_read): Define.
6688 (hppa_gdbarch_init): Set pseudo_register_read.
6689 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Remove.
6690 * regcache.c (supply_register): Remove check for
6691 DEPRECATED_CLEAN_UP_REGISTER_VALUE since we've removed the last user.
6692
7c46b9fb
RC
66932004-04-17 Randolph Chung <tausq@debian.org>
6694
6695 * Makefile.in (hpread.o, pa64solib.o, somsolib.o): Add $(hppa_tdep_h)
6696 * hppa-tdep.h (INSTRUCTION_SIZE): Move from tm-hppa.h.
6697 (hpread_adjust_stack_address): Move to hpread.c.
6698 * hppa-tdep.h (unwind_table_entry, unwind_stub_types, obj_unwind_info,
6699 obj_private_struct): Move from tm-hppa.h.
6700 * hpread.c (hppa-tdep.h): Include.
6701 (hpread_adjust_stack_address): Move from hppa-tdep.c.
6702 (hpread_read_function_type, hpread_read_doc_function_type)
6703 (hpread_process_one_debug_symbol): Call hpread_adjust_stack_address
6704 directly.
6705 * pa64solib.c (hppa-tdep.h): Include.
6706 * somsolib.c (hppa-tdep.h): Include.
6707 * config/pa/tm-hppa.h (frame_info, frame_saved_regs, value, type,
6708 inferior_status): Remove unused forward declarations.
6709 (INSTRUCTION_SIZE): Move to hppa-tdep.c.
6710 (unwind_table_entry, unwind_stub_types, obj_unwind_info,
6711 obj_private_struct): Move to hppa-tdep.h.
6712 (HPREAD_ADJUST_STACK_ADDRESS): Remove.
6713
8d153463
RC
67142004-04-17 Randolph Chung <tausq@debian.org>
6715
6716 * hppa-tdep.c (hppa_reg_struct_has_addr, hppa_skip_prologue)
6717 (hppa_skip_trampoline_code, hppa_in_solib_call_trampoline)
6718 (hppa_in_solib_return_trampoline, hppa_cannot_store_register)
6719 (hppa_smash_text_address, hppa_target_read_pc, hppa_target_write_pc):
6720 Remove forward declaration and make static.
6721 (hppa_reg_struct_has_addr): Remove.
6722
350c2e5b
JB
67232004-04-16 Joel Brobecker <brobecker@gnat.com>
6724
6725 * observer.sh: Move comments in sed command to first column.
6726
bbde78fa
JM
67272004-04-16 Jason Molenda (jmolenda@apple.com)
6728
6729 * frame.c: Minor typeo corrections in comments.
6730
e0270fd9
JB
67312004-04-16 Joel Brobecker <brobecker@gnat.com>
6732
6733 * observer.c (observer_test_first_notification_function): Update
6734 function profile.
6735 (observer_test_second_notification_function): Likewise.
6736 (observer_test_third_notification_function): Likewise.
6737
3d049254
MK
67382004-04-16 Mark Kettenis <kettenis@gnu.org>
6739
6740 From Brian Ford <ford@vss.fsi.com>:
6741 * i386-tdep.c (i386_coff_init_abi): New function.
6742 * i386-tdep.h (i386_coff_init_abi): New prototype.
6743 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Call it. Use correct
6744 register number translation functions for DWARF and DWARF 2.
6745
7867684d
JB
67462004-04-16 Joel Brobecker <brobecker@gnat.com>
6747
6748 * dwarf2read.c: Back out my previous change, it was incorrect.
6749
72bf9492
DJ
67502004-04-16 Daniel Jacobowitz <drow@mvista.com>
6751
6752 * dwarf2read.c: Include "hashtab.h".
6753 (struct dwarf2_cu): Add partial_dies, comp_unit_obstack,
6754 has_namespace_info.
6755 (struct partial_die_info): Add comments. Use bitfields to reduce
6756 memory footprint. Add scope, scope_set, has_specification,
6757 spec_offset, die_parent, die_child, and die_sibling.
6758 (peek_die_abbrev): Add prototype.
6759 (partial_read_comp_unit_head): New function, broken out from
6760 dwarf2_build_psymtabs_hard.
6761 (dwarf2_build_psymtabs_hard): Remove unused variable abbrev_ptr.
6762 Use partial_read_comp_unit_head. Initialize the CU and
6763 comp_unit_obstack. Update calls to read_partial_die and
6764 scan_partial_symbols. Use free_stack_comp_unit and
6765 load_partial_dies.
6766 (scan_partial_symbols): Change PDI to a pointer. Use the child and
6767 sibling pointers to walk partial DIEs. Call fixup_partial_die.
6768 Update calls to helper functions. Remove NAMESPACE argument.
6769 Update comments.
6770 (partial_die_parent_scope, partial_die_full_name): New functions.
6771 (add_partial_symbol): Remove namespace argument. Update call to
6772 pdi_needs_namespace. Use partial_die_full_name. Handle
6773 DW_TAG_namespace. Check has_namespace_info flag.
6774 (pdi_needs_namespace): Remove NAMESPACE argument. Just check the
6775 tag. Handle namespaces.
6776 (add_partial_namespace, add_partial_enumeration): Simplify.
6777 (guess_structure_name): New function, derived from
6778 add_partial_structure.
6779 (add_partial_structure): Remove.
6780 (determine_class_name): Update comment.
6781 (dwarf2_read_abbrevs): Set has_namespace_info flag.
6782 (is_type_tag_for_partial, load_partial_dies): New functions.
6783 (read_partial_die): Pass abbrev and abbrev_len as arguments.
6784 Record specifications instead of following them immediately.
6785 (find_partial_die_in_comp_unit, find_partial_die)
6786 (fixup_partial_die, free_stack_comp_unit)
6787 (hashtab_obstack_allocate, dummy_obstack_deallocate)
6788 (partial_die_hash, partial_die_eq): New functions.
6789 * Makefile.in (hashtab_h): Define.
6790 (dwarf2read.o): Update dependencies.
6791 (observer_inc, observer_h): Move to the correct section.
6792
fdc860a3
JB
67932004-04-15 Joel Brobecker <brobecker@gnat.com>
6794
6795 * dwarf2read.c (dwarf2_attribute_true_p): New function.
6796 (die_is_declaration): Use the function above. Add comment.
6797
dc718098
JB
67982004-04-15 Joel Brobecker <brobecker@gnat.com>
6799
6800 * dwarf2read.c (read_structure_scope): Identify stub types
6801 using die_is_declaration() only.
6802
8718a420
RM
68032004-04-15 Roland McGrath <roland@redhat.com>
6804
6805 * symfile.c (symbol_file_add_with_addrs_or_offsets): Take ABFD as
6806 argument instead of NAME.
6807 (symbol_file_add, reread_separate_symbols): Call symfile_bfd_open
6808 in call to symbol_file_add_with_addrs_or_offsets.
6809 (build_addr_info): New function, helper for ...
6810 (symbol_file_add_from_memory): New function.
6811 (add_symbol_file_from_memory_command): New function using that.
6812 (_initialize_symfile): Register it for add-symbol-file-from-memory.
6813 (pre_add_symbol_hook): Add const to argument type.
6814 * symfile.h (symbol_file_add_from_memory): Declare it.
6815
8b910bab
MK
68162004-04-15 Mark Kettenis <kettenis@gnu.org>
6817
9f076e7a
MK
6818 * NEWS (New native configurations): Mention OpenBSD/vax.
6819 * configure.host: Add vax-*-openbsd*.
6820 * config/vax/obsd.mh: New file.
6821 * config/vax/nm-obsd.h: New file.
6822
8b910bab
MK
6823 * vax-tdep.c: Include "regset.h".
6824 (vax_supply_gregset): New function.
6825 (vax_gregset): New variable.
6826 (vax_regset_from_core_section): New function.
6827 (vax_gdbarch_init): Set regset_from_core_section.
6828 * Makefile.in (vax-tdep.o): Update dependencies.
6829
7a464420
AC
68302004-04-15 Andrew Cagney <cagney@redhat.com>
6831
6832 * observer.c (normal_stop_subject, observer_notify_normal_stop)
6833 (observer_normal_stop_notification_stub)
6834 (observer_attach_normal_stop, observer_detach_normal_stop):
6835 Delete, replaced by #include "observer.inc".
6836 * infrun.c (normal_stop): Pass "stop_bpstat" to
6837 observer_notify_normal_stop.
6838 * Makefile.in (observer_inc): Define.
6839 (observer.o): Update dependencies.
6840 (observer.h, observer.inc): New rules.
6841 * observer.h: Delete file.
6842 * observer.sh: New file.
6843
e36ad527
MK
68442004-04-15 Mark Kettenis <kettenis@gnu.org>
6845
6846 * vax-tdep.c (vax_frame_cache): Fix typo.
6847
67b441e1
MK
68482004-04-14 Mark Kettenis <kettenis@gnu.org>
6849
6f606e1c
MK
6850 * NEWS (New native configurations): Mention NetBSD/vax.
6851 * configure.host: Add vax-*-netbsdelf* and vax-*-netbsd*.
6852 * config/vax/nbsdelf.mh: New file.
6853 * config/vax/nbsdaout.mh: New file.
6854 * config/vax/nm-nbsd.h: New file.
6855 * config/vax/nm-nbsdaout.h: New file.
6856
9c5519a5
MK
6857 * vaxnbsd-tdep.c: New file.
6858 * Makefile.in (vaxnbsd-tdep.o): New dependency.
6859 * configure.tgt: Add vax-*-netbsd* and vax-*-openbsd*.
6860 * config/vax/nbsd.mt: New file.
6861 * config/vax/tm-nbsd.h: New file.
6862
4844a614
MK
6863 * Makefile.in (vaxbsd-nat.o): New dependency.
6864
67b441e1
MK
6865 * vax-tdep.h (vax_regnum): Add VAX_R0_REGNUM and VAX_R1_REGNUM.
6866 * vax-tdep.c (vax_store_arguments): Remove struct_return and
6867 struct_addr arguments. Don't push return value address.
6868 (vax_push_dummy_call): Don't pass STRUCT_RETURN and STRUCT_ADDR as
6869 arguments to vax_store_arguments. Store return value address in
6870 R1.
6871 (vax_store_struct_return, vax_extract_return_value)
6872 (vax_store_return_value): Remove functions.
6873 (vax_return_value): New function.
6874 (vax_gdbarch_init): Set return value. Don't set
6875 deprecated_store_struct_return, deprecated_extract_struct_return
6876 and deprecated_store_return_value.
6877
6672f2ae
AS
68782004-04-14 Andreas Schwab <schwab@suse.de>
6879
6880 * ia64-tdep.c (ia64_libunwind_frame_prev_register): Handle null
6881 value buffer.
6882 * libunwind-frame.c (libunwind_frame_prev_register): Likewise.
6883
7346c184
MK
68842004-04-14 Mark Kettenis <kettenis@gnu.org>
6885
6886 * vax-tdep.c (vax_store_arguments, vax_push_dummy_call)
6887 (vax_unwind_dummy_id): New functions.
6888 (vax_push_dummy_frame, vax_pop_frame): Remove functions.
6889 (vax_call_dummy_words, sizeof_vax_call_dummy_words): Remove
6890 variables.
6891 (vax_fix_call_dummy): Remove function.
6892 (vax_gdbarch_init): Set push_dummy_call and unwind_dummy_id.
6893 Don't set deprecated_push_dummy_frame, deprecated_pop_frame,
6894 call_dummy_location, deprecated_call_dummy_words,
6895 deprecated_sizeof_call_dummy_words,
6896 deprecated_call_dummy_breakpoint_offset,
6897 deprecated_use_generic_dummy_frames, deprecated_pc_in_call_dummy,
6898 and deprecated_dummy_write_sp.
6899
58e23df4
DC
69002004-04-13 David Carlton <carlton@kealia.com>
6901
6902 * MAINTAINERS: Move myself to "paper trail" section.
6903
5e6b39ff
MK
69042004-04-12 Mark Kettenis <kettenis@gnu.org>
6905
7def7fef
MK
6906 * vax-tdep.c: Include "frame-base.h", "frame-unwind.h" and
6907 "trad-frame.h".
6908 (vax_frame_init_saved_regs): Remove function.
6909 (vax_sigtramp_saved_pc): Remove function.
6910 (vax_frame_saved_pc): Remove function.
6911 (vax_frame_args_address): Remove function.
6912 (vax_frame_num_args): Rewrite.
6913 (vax_frame_chain): Remove function.
6914 (vax_push_dummy_frame): Replace DEPRECATED_FP_REGNUM with
6915 VAX_FP_REGNUM.
6916 (vax_pop_frame): Likewise.
6917 (vax_saved_pc_after_call): Remove function.
6918 (struct vax_frame_cache): New structure.
6919 (vax_frame_cache): New function.
6920 (vax_frame_this_id): New function.
6921 (vax_frame_prev_register): New function.
6922 (vax_frame_unwind): New variable.
6923 (vax_frame_sniffer): New function.
6924 (vax_frame_base_address): New function.
6925 (vax_frame_args_address): New function.
6926 (vax_frame_base): New variable.
6927 (vax_unwind_pc): New function.
6928 (vax_gdbarch_init): Don't set deprecated_init_frame_pc,
6929 deprecated_fp_regnum, deprecated_saved_pc_after_call,
6930 deprecated_frame_chain, deprecated_frame_saved_pc,
6931 deprecated_frame_args_address and
6932 deprecated_frame_init_saved_regs.
6933 * Makefile.in (vax-tdep.o): Update dependencies.
6934
53284fc1
MK
6935 * vaxbsd-nat.c: New file.
6936
5e6b39ff
MK
6937 * vax-tdep.h: Update copyright year. Adjust comments.
6938 (VAX_REGISTER_SIZE, VAX_REGISTER_BYTES, VAX_MAX_REGISTER_RAW_SIZE,
6939 VAX_MAX_REGISTER_VIRTUAL_SIZE): Remove macros.
6940 (vax_regnum): New enum. Replacing...
6941 (VAX_AP_REGNUM, VAX_FP_REGNUM, VAX_SP_REGNUM, VAX_PC_REGNUM)
6942 (VAX_PS_REGNUM): ... these removed macros.
6943 * vax-tdep.c (vax_register_name): Remove prototype.
6944 (vax_register_name): Reorganize somewhat. Use ARRAY_SIZE.
6945 (vax_register_byte, vax_register_raw_size,
6946 vax_register_virtual_size, vax_register_virtual_type): Remove
6947 functions.
6948 (vax_register_type): New function.
6949 (vax_breakpoint_from_pc): Reorganize.
6950 (vax_gdbarch_init): Set register_type. Don't set
6951 deprecated_register_size, deprecated_register_bytes,
6952 deprecated_register_byte, deprecated_register_raw_size,
6953 deprecated_max_register_raw_size,
6954 deprecated_register_virtual_size,
6955 deprecated_max_register_virtual_size and
6956 deprecated_register_virtual_type. Add comment on stack direction.
6957
e9c71e9f
MK
69582004-04-11 Mark Kettenis <kettenis@gnu.org>
6959
6960 * amd64-tdep.h (amd64_regnum): Add AMD64_CS_REGNUM,
6961 AMD64_SS_REGNUM, AMD64_DS_REGNUM, AMD64_ES_REGNUM,
296bc76f 6962 AMD64_FS_REGNUM and AMD64_GS_REGNUM.
e9c71e9f 6963
d46f1176 69642004-04-10 Randolph Chung <tausq@debian.org>
8718a420 6965
d46f1176
RC
6966 * MAINTAINERS (write after approval): Add myself.
6967
a2a84a72
RC
69682004-04-07 Randolph Chung <tausq@debian.org>
6969
6970 * hppa-tdep.c (hppa_inner_than): Remove.
6971 (is_pa_2): Remove unused static variable.
8718a420 6972 (hppa_gdbarch_init): Use core_addr_greaterthan instead of own version.
a2a84a72 6973
e85c3284
PH
69742004-03-10 Paul N. Hilfinger <Hilfinger@gnat.com>
6975
6976 * language.h (language_defn): Add new la_post_parser field.
6977 * parser-defs.h (null_post_parser): New declaration (default for
6978 la_post_parser).
8718a420 6979
e85c3284
PH
6980 * parse.c (parse_exp_1): Move code to parse_exp_in_context and
6981 insert call to that function.
6982 (parse_exp_in_context): New function, including code formerly in
8718a420 6983 parse_exp_1. Calls language-dependent post-parser after
e85c3284
PH
6984 prefixification.
6985 (parse_expression_in_context): New exported function.
6986 (null_post_parser): New definition.
6987 * expression.h (parse_expression_in_context): Add declaration.
8718a420 6988
e85c3284
PH
6989 * p-lang.c (pascal_language_defn): Add trivial post-parser.
6990 * c-lang.c (c_language_defn): Ditto.
6991 (cplus_language_defn): Ditto.
6992 (asm_language_defn): Ditto.
6993 (minimal_language_defn): Ditto.
6994 * f-lang.c (f_language_defn): Ditto.
6995 * jv-lang.c (java_language_defn): Ditto.
6996 * language.c (unknown_language_defn): Ditto.
6997 (auto_language_defn): Ditto.
6998 (local_language_defn): Ditto.
6999 * m2-lang.c (m2_language_defn): Ditto.
7000 * scm-lang.c (scm_language_defn): Ditto.
7001 * obj-lang.c (objc_language_defn): Ditto.
8718a420 7002
d9f8c85b
MK
70032004-04-10 Mark Kettenis <kettenis@gnu.org>
7004
fa34704a
MK
7005 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Remove function.
7006 (amd64nbsd_mcontext_addr): New function.
7007 (amd64nbsd_init_abi): Initialize TDEP->sigcontext_addr as
7008 amd64nbsd_mcontext_addr. Directly initialize TDEP->sc_reg_offset
7009 with amd64nbsd_r_reg_offset, instead of building it on the fly.
7010
403e1656
MK
7011 * corelow.c (core_xfer_partial): Fix coding standards violation.
7012 Add support for TARGET_OBJECT_WCOOKIE.
7013
a57e5a95
MK
7014 * sparc-linux-tdep.c (sparc32_linux_init_abi): Don't set
7015 deprecated_pc_in_sigtramp.
7016 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
7017 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
7018 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Likewise.
7019 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
7020 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Likewise.
7021 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
7022 * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
7023
377d9ebd
MK
7024 * amd64-linux-tdep.c, amd64nbsd-tdep.c, amd64obsd-tdep.c,
7025 i386-linux-tdep.c, i386-tdep.c, i386nbsd-tdep.c, i386obsd-tdep.c:
7026 Fix typo.
7027
f0ef85a5
MK
7028 * amd64-tdep.c (amd64_supply_fxsave): Only fiddle with
7029 I387_FISEG_REGNUM and I387_FOSEG_REGNUM in 64-bit mode.
7030 (amd64_collect_fxsave): Likewise.
7031
d9f8c85b
MK
7032 * i386-sol2-tdep.c: Include "gdb_string.h".
7033 (i386_sol2_sigtramp_p): Recognize signal trampoline based on its
7034 name.
7035 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
7036
75f501b5
MK
70372004-04-10 Mark Kettenis <kettenis@gnu.org>
7038
7039 * i386-sol2-tdep.c: Include "solib-svr4.h".
7040 (i386_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
7041 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
7042 * config/i386/tm-i386sol2.h: Include :solib.h".
7043 * config/i386/i386sol2.mh (NATDEPFILES): Remove solib.o,
7044 solib-svr4.o and solib-legacy.o.
7045 * config/i386/i386sol2.mt (TDEPFILES): Add solib.o and
7046 solib-svr4.o.
7047
b31bc724
MK
70482004-04-09 Mark Kettenis <kettenis@gnu.org>
7049
18bbbd9e
MK
7050 * amd64-linux-nat.c (fetch_inferior_registers): Correctly check
7051 whether a register is supplied by PTRACE_GETFPREGS.
7052 (store_inferior_registers): Likewise.
7053 * amd64bsd-nat.c (fetch_inferior_registers): Correctly check
7054 whether a register is supplied by PT_GETFPREGS.
7055 (store_inferior_registers): Likewise.
7056
3c30bf1b
MK
7057 * config/i386/linux.mt (TDEPFILES): Remove solib-legacy.o.
7058 * config/i386/linux64.mt (TDEPFILES): Likewise.
7059
a4194092
MK
7060 * i386-linux-nat.c: Update copyrigth year. Tweak comment.
7061
911bc6ee
MK
7062 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Rewrite to use new
7063 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
7064 the program counter is in the range specified by `struct
7065 gdbarch_tdep'.
7066 * amd64-linux-tdep.c: Include "symtab.h".
7067 (amd64_linux_pc_in_sigtramp): Remove function.
7068 (amd64_linux_sigtramp_p): New function.
7069 (amd64_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
7070 deprecated_pc_in_sigtramp.
7071 * amd64nbsd-tdep.c: Include "symtab.h".
7072 (amd64nbsd_sigtramp_p): New function.
7073 (amd64nbsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
7074 deprecated_pc_in_sigtramp.
7075 * amd64obsd-tdep.c: Include "symtab.h" and "objfiles.h". Add a
7076 few comments.
7077 (amd64obsd_pc_in_sigtramp): Remove function.
7078 (amd64obsd_sigtramp_p): New function.
7079 (amd64obsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
7080 deprecated_pc_in_sigtramp.
7081 * i386-tdep.h (struct gdbarch_tdep): Add sigtramp_p member.
7082 (i386bsd_pc_ins_sigtramp): Remove prototype.
7083 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove prototypes.
7084 * i386-tdep.c (i386_sigtramp_frame_sniffer): Rewrite to use new
7085 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
7086 the program counter is in the range specified by `struct
7087 gdbarch_tdep'.
7088 (i386_pc_in_sigtramp, i386_svr4_pc_in_sigtramp): Remove functions.
7089 (i386_sigtramp_p, i386_svr4_sigtramp_p): New functions.
7090 (i386_go32_pc_in_sigtramp): Remove function.
7091 (i386_svr4_init_abi): Don't set deprecated_pc_in_sigtramp.
7092 Initialize TDEP->sigtramp_p.
7093 (i386_go32_init_abi): Initialize TDEP->sigtramp_p to NULL.
7094 (i386_gdbarch_init): Initialize TDEP->sigtramp_p. Don't set
7095 deprecated_pc_in_sigtramp.
7096 * i386-linux-tdep.c: Adjust comments.
7097 (i386_linux_pc_in_sigtramp): Remove function.
7098 (i386_linux_sigtramp_p): New function.
7099 (i386_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
7100 deprecated_pc_in_sigtramp.
7101 * i386-nto-tdep.c: Update copyright year.
7102 (i386nto_pc_in_sigtramp): Remove function.
7103 (i386nto_sigtramp_p): New function.
7104 (i386nto_sigcontext_addr): Use I386_ESP_REGNUM instead of
7105 SP_REGNUM.
7106 (i386nto_init_abi): Initialize TDEP->sigtramp_p. Don't set
7107 deprecated_pc_in_sigtramp.
7108 * i386-sol2-tdep.c: Update copyright year.
7109 (i386_sol2_pc_in_sigtramp): Remove function.
7110 (i386_sol2_sigtramp_p): New function.
7111 (i386_sol2_init_abi): Initialize TDEP->sigtramp_p. Don't set
7112 deprecated_pc_in_sigtramp.
7113 * i386bsd-tdep.c (i386bsd_pc_in_sigtramp): Remove function.
7114 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove functions.
7115 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
7116 deprecated_sigtramp_start and deprecated_sigtramp_end.
7117 * i386nbsd-tdep.c: Include "frame.h" and "symtab.h".
7118 (i386nbsd_pc_in_sigtramp): Remove function.
7119 (i386nbsd_sigtramp_p): New function.
7120 (i386nbsd_init_abi): Don't set deprecated_pc_in_sigtramp,
7121 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
7122 TDEP->sigtramp_start, TDEP->sigtramp_end and TDEP->sigtramp_p.
7123 * i386obsd-tdep.c: Include "frame.h", "symtab.h" and "objfiles.h".
7124 (i386obsd_pc_in_sigtramp): Remove function.
7125 (i386obsd_sigtramp_p): New function.
7126 (i386obsd_sigtramp_start, i386obsd_sigtramp_end): Remove
7127 functions.
7128 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
7129 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
7130 TDEP->sigtramp_p.
7131 * Makefile.in (amd64-linux-tdep.o, amd64nbsd-tdep.o,
7132 amd64obsd-tdep.o, i386nbsd-tdep.o, i386obsd-tdep.o): Update
7133 dependencies.
7134
e083e6ec
MK
7135 * config/i386/i386aout.mt: Remove file.
7136
bd153b94
MK
7137 * configure.tgt: Remove i[34567]86-*-go32*,
7138 i[34567]86-*-msdosdjgpp*, i[34567]86-*-sco*, i[34567]86-*-sysv*
7139 and i[34567]86-*-isc*. Set gdb_target to i386 for
7140 i[34567]86-*-netware* and i[34567]86-*-*.
7141 * config/i386/i386.mt: New file.
7142 * config/i386/embed.mt: Remove file.
7143 * config/i386/go32.mt: Remove file.
7144 * config/i386/i386nw.mt: Remove file.
7145 * config/i386/i386v.mt: Remove file.
7146 * config/i386/tm-go32.h: Remove file.
7147
4a1bcc8c
MK
7148 * tui/tui-hooks.c: Include "readline/readline.h" after
7149 "gdb_curses.h" instead of before.
7150 * tui/tui-io.c: Likewise.
7151
f9a79064
MK
7152 * tui/tui.c: Fix typo in comment.
7153
b31bc724
MK
7154 * sparc64-tdep.c (sparc_address_from_register): Remove function.
7155
f83f82bc
AC
71562004-04-08 Andrew Cagney <cagney@redhat.com>
7157
7158 * breakpoint.h (deprecated_exception_catchpoints_are_fragile)
7159 (deprecated_exception_support_initialized): Declare.
8718a420 7160 * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support)
f83f82bc
AC
7161 (initialize_hp_cxx_exception_support)
7162 (child_enable_exception_callback): Update.
7163 * breakpoint.c (deprecated_exception_catchpoints_are_fragile)
7164 (deprecated_exception_support_initialized): Rename
7165 deprecated_exception_catchpoints_are_fragile and
7166 deprecated_exception_support_initialized.
7167 (breakpoint_init_inferior, breakpoint_init_inferior): Update.
7168
7169 * symtab.c (deprecated_hp_som_som_object_present): Rename
7170 hp_som_som_object_present.
7171 * symtab.h (deprecated_hp_som_som_object_present): Declare.
7172 * symfile.c (hp_som_som_object_present, RESET_HP_UX_GLOBALS):
7173 Update. Delete extern declaration.
7174 * valops.c (hp_som_som_object_present): Ditto.
8718a420 7175 * parse.c (deprecated_hp_som_som_object_present)
f83f82bc
AC
7176 (parse_nested_classes_for_hpacc): Ditto.
7177 * hpread.c (hp_som_som_object_present, hpread_expand_symtab): Ditto.
8718a420 7178 * hppa-hpux-tdep.c (hp_som_som_object_present)
f83f82bc
AC
7179 (initialize_hp_cxx_exception_support): Ditto.
7180 * eval.c (hp_som_som_object_present, evaluate_subexp_standard): Ditto.
8718a420 7181 * cp-valprint.c (hp_som_som_object_present)
f83f82bc 7182 (cp_print_class_method): Ditto.
8718a420 7183 * c-typeprint.c (hp_som_som_object_present):
f83f82bc
AC
7184 (c_type_print_base): Ditto.
7185 * c-exp.y (hp_som_som_object_present): Ditto.
7186
fb2be677
AC
71872004-04-08 Andrew Cagney <cagney@redhat.com>
7188
7189 * frame-unwind.c (struct frame_unwind_table, frame_unwind_init)
7190 (frame_unwind_prepend_unwinder, frame_unwind_append_sniffer)
7191 (frame_unwind_find_by_frame): Re-implement the unwind code so
7192 that it can both prepend and append sniffers. Replace
7193 frame_unwind_register_unwinder with frame_unwind_prepend_unwinder.
7194 * tramp-frame.c (tramp_frame_append): Use
7195 frame_unwind_prepend_unwinder.
7196 * frame-unwind.h (frame_unwind_prepend_unwinder): Replace
7197 frame_unwind_register_unwinder.
7198 * tramp-frame.h (tramp_frame_prepend_unwinder): Rename
7199 tramp_frame_append.
7200 * tramp-frame.c (tramp_frame_prepend_unwinder): Update.
8718a420 7201 * mips-linux-tdep.c (mips_linux_init_abi, mips_linux_init_abi)
fb2be677
AC
7202 (mips_linux_init_abi): Update.
7203
67faf007
KB
72042004-04-08 Kevin Buettner <kevinb@redhat.com>
7205
7206 * ppc-linux-tdep.c (ELF_NREG, ELF_NFPREG, ELF_NVRREG)
7207 (ELF_FPREGSET_SIZE): Delete constants formerly used in core
7208 file support.
7209
8973ff21
KB
72102004-04-07 Kevin Buettner <kevinb@redhat.com>
7211
7212 * ia64-tdep.c (elf.h): Don't include.
7213 (elf/ia64.h) [HAVE_LIBUNWIND_IA64_H]: Include.
7214
4a0e2f88
JM
72152004-04-07 Jason Molenda (jmolenda@apple.com)
7216
7217 * frame.h: Typeo corrections in comments.
7218
9872ad24
JB
72192004-04-07 Jim Blandy <jimb@redhat.com>
7220
7221 * i386-tdep.c (i386_stab_reg_to_regnum): Correct numbering for
7222 %esp and %ebp
7223
70b216c8
MK
72242004-04-07 Mark Kettenis <kettenis@gnu.org>
7225
11d5789c
MK
7226 * config/sparc/linux.mt (TDEPFILES): Remove solib-legacy.o.
7227 * config/sparc/linux64.mt (TDEPFILES): Likewise.
7228 * config/sparc/sol2.mt (TDEPFILES): Add solib.o and solib-svr4.o.
7229 * config/sparc/sol2.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
7230 and solib-legacy.o.
7231 * config/sparc/sol2-64.mt (TDEPFILES): Add solib.o and
7232 solib-svr4.o.
7233 * config/sparc/tm-sol2.h: Update copyright year. Include
7234 "solib.h".
7235
70b216c8
MK
7236 * sparc-sol2-tdep.c: Update copyright year. Include
7237 "solib-svr4.h".
7238 (sparc32_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
7239 * sparc64-sol2-tdep.c: Include "solib-svr4.h".
7240 (sparc64_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
096f864c 7241 * Makefile.in (sparc-sol2-tdep.o, sparc64-sol2-tdep.o): Update
70b216c8
MK
7242 dependencies.
7243
6339dc9e
AC
72442004-04-06 Andrew Cagney <cagney@redhat.com>
7245
7246 * infttrace.c: Include "infttrace.h".
7247 * infttrace.h: Include "target.h".
7248 * Makefile.in (infttrace_h): Update.
7249 (infttrace.o): Update.
8718a420 7250
93449403
AC
72512004-04-06 Andrew Cagney <cagney@redhat.com>
7252
6d518969
AC
7253 * hppah-nat.c (hpux_has_forked, hpux_has_vforked)
7254 (hpux_has_execd, hpux_has_syscall_event): Include "infttrace.h",
7255 move extern declarations from here ...
7256 * infttrace.h: ... to here.
7257 * Makefile.in (hppah-nat.o): Update dependencies.
7258
85f4f2d8
AC
7259 * hppa-tdep.c (hppa_breakpoint_from_pc): Make static.
7260 (hppa_gdbarch_init): Set gdbarch_breakpoint_from_pc
8718a420 7261 * config/pa/tm-hppa.h (BREAKPOINT_FROM_PC, BREAKPOINT32):
85f4f2d8
AC
7262 (hppa_breakpoint_from_pc): Delete.
7263
93449403
AC
7264 * MAINTAINERS: Mark hppa-elf as buildable with -Werror.
7265
71456ec6
AC
72662004-04-05 Andrew Cagney <cagney@redhat.com>
7267
7268 * hppa-tdep.c: Do not include <sys/types.h>, <sys/param.h>,
7269 <signal.h>, <sys/ptrace.h>, #include "a.out.encap.h",
7270 <sys/file.h>.
8718a420 7271
4c02c60c
AC
72722004-04-06 Randolph Chung <tausq@debian.org>
7273
7274 Committed by Andrew Cagney (mechanical change).
7275 * hppa-tdep.c: (args_for_find_stub, hp_som_som_object_present,
7276 exception_catchpoints_are_fragile, find_stub_with_shl_get,
7277 cover_find_stub_with_shl_get, initialize_hp_cxx_exception_support,
7278 child_enable_exception_callback, current_ex_event,
7279 null_symtab_and_line, child_get_current_exception_event,
7280 HP_ACC_EH_notify_hook, HP_ACC_EH_set_hook_value,
7281 HP_ACC_EH_notify_callback, HP_ACC_EH_break, HP_ACC_EH_catch_throw,
7282 HP_ACC_EH_catch_catch, __eh_notification, hp_cxx_exception_support,
7283 hp_cxx_exception_support_initialized, eh_notify_hook_addr,
7284 eh_notify_callback_addr, eh_break_addr, eh_catch_catch_addr,
7285 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior):
7286 Move hpux-specific definitions ...
7287 * hppa-hpux-tdep.c: ... to here.
7288
3a515653
AC
72892004-04-05 Andrew Cagney <cagney@redhat.com>
7290
7291 * hppa-tdep.c (hppa_frame_cache): Pass the frame's func to
7292 skip_prologue_using_sal.
7293
c1730d02
AC
72942004-04-05 Andrew Cagney <cagney@redhat.com>
7295
7296 * config/i386/tm-i386.h: Delete file.
7297 * config/i386/tm-vxworks.h: Update copyright, do not include
7298 "tm-i386.h".
7299 * config/i386/tm-nto.h, config/i386/tm-linux.h: Ditto.
7300 * config/i386/tm-i386sol2.h, config/i386/tm-i386lynx.h: Ditto.
7301 * config/i386/tm-go32.h, config/i386/tm-cygwin.h: Ditto.
7302 * config/i386/ncr3000.mt (TM_FILE): Delete.
7303 * config/i386/interix.mt (TM_FILE): Delete.
7304 * config/i386/i386v.mt (TM_FILE): Delete.
7305 * config/i386/i386nw.mt (TM_FILE): Delete.
7306 * config/i386/i386gnu.mt (TM_FILE): Delete.
7307 * config/i386/i386aout.mt (TM_FILE): Delete.
7308 * config/i386/embed.mt (TM_FILE): Delete.
7309
8b67aa36
KB
73102004-04-05 Kevin Buettner <kevinb@redhat.com>
7311
7312 * frv-tdep.h (fsr0_regnum, acc0_regnum, acc7_regnum, accg0123_regnum)
7313 (accg4567_regnum, msr0_regnum, msr1_regnum, gner0_regnum)
7314 (gner1_regnum, fner0_regnum, fner1_regnum, accg0_regnum)
7315 (accg7_regnum): New constants.
7316 (last_spr_regnum, last_pseudo_regnum): Update.
c2f59a1a
KB
7317 * frv-tdep.c (new_variant): Initialize names for fsr0, acc0-acc7,
7318 accg0-accg7, msr0, msr1, gner0, gner1, fner0, and fner1.
8b67aa36
KB
7319 (frv_pseudo_register_read, frv_pseudo_register_write): Add support
7320 for accg registers.
7321 (frv_register_sim_regno): Update spr_map[].
7322
3c7012f5
AC
73232004-04-04 Andrew Cagney <cagney@redhat.com>
7324
7325 * config/mips/xm-riscos.h: Delete.
7326 * config/mips/xm-mipsv4.h, config/mips/xm-mips.h: Delete.
7327 * config/mips/tm-mipsv4.h, config/mips/riscos.mh: Delete.
7328 * config/mips/nm-riscos.h, config/mips/nm-news-mips.h: Delete.
7329 * config/mips/nm-mips.h, config/mips/news-mips.mh: Delete.
7330 * config/mips/news-mips.mh, config/m68k/tm-m68kv4.h: Delete.
7331 * config/mips/decstation.mh, config/mips/littlemips.mh: Delete.
7332 * config/mips/mipsv4.mt, config/m68k/tm-sun3.h: Delete.
7333 * config/m68k/xm-sun3os4.h, config/m68k/xm-sun3.h: Delete.
7334 * config/m68k/xm-sun2.h, config/m68k/xm-m68kv4.h: Delete.
7335 * config/m68k/xm-dpx2.h, config/m68k/xm-delta68.h: Delete.
7336 * config/m68k/xm-3b1.h, config/m68k/tm-sun3os4.h: Delete.
7337 * config/m68k/tm-m68klynx.h, config/m68k/tm-dpx2.h: Delete.
7338 * config/m68k/tm-delta68.h, config/m68k/tm-3b1.h: Delete.
7339 * config/m68k/sun3os4.mt, config/m68k/nm-sysv4.h: Delete.
7340 * config/m68k/nm-sun3.h, config/m68k/sun3os4.mh: Delete.
7341 * config/m68k/sun2os3.mh, config/m68k/nm-sun2.h: Delete.
7342 * config/m68k/nm-m68klynx.h, config/m68k/sun3os3.mt: Delete.
7343 * config/m68k/nm-dpx2.h, config/m68k/sun2os3.mt: Delete.
7344 * config/m68k/dpx2.mh, config/m68k/sun3os3.mh: Delete.
7345 * config/m68k/sun2os4.mh, config/m68k/nm-delta68.h: Delete.
7346 * config/m68k/m68kv4.mt, config/m68k/m68klynx.mt: Delete.
7347 * config/m68k/3b1.mt, config/m68k/m68klynx.mh: Delete.
7348 * config/m68k/m68kv4.mh, config/m68k/sun2os4.mt: Delete.
7349 * config/m68k/tm-sun2os4.h, config/m68k/3b1.mh: Delete.
7350 * config/m68k/dpx2.mt, config/m68k/delta68.mt: Delete.
7351 * config/m68k/tm-sun2.h, config/m68k/delta68.mh: Delete.
8718a420 7352
3c7012f5
AC
7353 * configure.tgt: Remove m68000-*-sunos3*, m68000-*-sunos4*,
7354 m68*-bull-sysv*, m68*-att-*, m68*-motorola-*, m68*-*-lynxos*,
7355 m68*-*-sunos3*, m68*-*-sunos4*, m68*-*-sysv4*, mips*-*-sysv4*.
7356 * configure.host: Remove m680[01]0-sun-sunos3*,
7357 m680[01]0-sun-sunos4*, m68*-att-*, m68*-bull*-sysv*,
7358 m68*-*-lynxos*, m68*-*-sysv4*, m68*-motorola-*, m68*-sun-sunos3*,
7359 m68*-sun-sunos4*, m68*-sun-*, mips-dec-*, mips-little-*,
7360 mips-sony-*, mips-*-mach3*, mips-*-sysv4*, mips-*-sysv*,
7361 mips-*-riscos*.
7362 * NEWS: Mention removed systems.
7363
99d16a21
AC
73642004-04-04 Andrew Cagney <cagney@redhat.com>
7365
7366 GDB 6.1 release created from 6.1 branch.
7367
6cdf9d98
AC
73682004-04-04 Andrew Cagney <cagney@redhat.com>
7369
98d346c3
AC
7370 * gnu-nat.c (gnu_wait): Use memcpy instead of bcopy.
7371 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
7372 * remote-vx68.c (vx_read_register, vx_write_register): Ditto.
7373
6cdf9d98
AC
7374 * config/vax/xm-vax.h (FAULT_CODE_ORIGIN, INIT_STACK): Delete.
7375 * config/alpha/xm-alphaosf.h (NO_SIGINTERRUPT): Delete.
7376 * config/alpha/xm-alphalinux.h (NO_SIGINTERRUPT): Delete.
7377
859a326d
JB
73782004-04-03 Jim Blandy <jimb@redhat.com>
7379
7380 * MAINTAINERS: Chris Faylor has changed employers; add him to
7381 "paper trail" section, and update his E-mail address.
7382
b87178c3
AC
73832004-04-03 Andrew Cagney <cagney@redhat.com>
7384
4ea2acf0
AC
7385 * frame-unwind.c (frame_unwind_find_by_frame): Delete check for
7386 generic dummy frames.
7387 * dummy-frame.c: Update copyright.
7388 (dummy_frame_sniffer): Delete check for generic dummy frames.
7389
d0bd2d18 7390 * config/pa/tm-hppa.h (REG_PARM_STACK_SPACE): Delete.
8718a420 7391 * config/pa/tm-hppa64.h (PA20W_CALLING_CONVENTIONS)
d0bd2d18
AC
7392 (REG_PARM_STACK_SPACE): Delete.
7393 * hppa-tdep.c (hppa64_push_dummy_call, hppa32_push_dummy_call):
7394 Inline reference to REG_PARM_STACK_SPACE.
7395
b87178c3
AC
7396 * config/pa/tm-hppah.h (FRAME_SAVED_PC_IN_SIGTRAMP)
7397 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
7398 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
7399 (FRAME_BASE_BEFORE_SIGTRAMP)
7400 (hppa32_hpux_frame_base_before_sigtramp)
7401 (hppa32_hpux_frame_saved_pc_in_sigtramp): Delete.
7402 * config/pa/tm-hppa64.h (hppa64_hpux_frame_saved_pc_in_sigtramp)
7403 (hppa64_hpux_frame_find_saved_regs_in_sigtramp)
7404 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
7405 (FRAME_BASE_BEFORE_SIGTRAMP)
7406 (hppa64_hpux_frame_base_before_sigtramp)
7407 (FRAME_SAVED_PC_IN_SIGTRAMP): Delete.
7408
43e2e1a0
AC
74092004-04-03 Andrew Cagney <cagney@redhat.com>
7410
7411 * PROBLEMS: Mention that GDB doesn't build on HP/UX 11.00.
7412
ddc135a4
AC
74132004-04-02 Andrew Cagney <cagney@redhat.com>
7414
7415 * sh64-tdep.c (sh64_init_extra_frame_info): Replace
7416 DEPRECATED_CALL_DUMMY_LENGTH with 0, simplify.
7417 * dummy-frame.h: Delete out-of-date comments.
7418 * gdbarch.sh (DEPRECATED_CALL_DUMMY_LENGTH): Delete.
7419 * gdbarch.h, gdbarch.c: Re-generate.
7420
d15bfd3a 74212004-04-02 Joel Brobecker <brobecker@gnat.com>
8718a420 7422
d15bfd3a
AC
7423 Committed by Andrew Cagney <cagney@redhat.com>.
7424 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Do not take
7425 into account an instruction saving a register if we have already
7426 seen an earlier instruction saving that same register.
7427
f04ceafa
AC
74282004-04-02 Andrew Cagney <cagney@redhat.com>
7429
08be3abd
AC
7430 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Delete.
7431 * gdbarch.h, gdbarch.c: Re-generate.
7432 * frame.c (legacy_get_prev_frame): Delete references to
7433 DEPRECATED_INIT_FRAME_PC_FIRST.
7434
f04ceafa
AC
7435 * infrun.c (pc_in_sigtramp): Delete function.
7436 (check_sigtramp2): Inline call to pc_in_sigtramp, use
7437 get_frame_type.
7438
08e69816
AC
74392004-04-02 Andrew Cagney <cagney@redhat.com>
7440
7441 * infrun.c (handle_step_into_function): Delete code conditional on
7442 legacy_frame_p.
7443 (handle_inferior_event, step_over_function): Ditto.
7444
adb54772
AC
74452004-04-02 Andrew Cagney <cagney@redhat.com>
7446
7447 * frame.c (get_prev_frame_1): Exclude signal trampolines from the
7448 "previous frame inner to this frame" test.
7449
304396fb
AC
74502004-04-02 Andrew Cagney <cagney@redhat.com>
7451
7452 * frame.c (safe_frame_unwind_memory): New function.
7453 * frame.h (safe_frame_unwind_memory): Declare. Update description
7454 of /safe_/ methods.
7455 * tramp-frame.c (tramp_frame_start): Re-order parmeters, add
7456 "next_frame". Use safe_frame_unwind_memory.
7457 (tramp_frame_sniffer): Update call to tramp_frame_start.
7458
6502dd73
DJ
74592004-04-01 Daniel Jacobowitz <drow@mvista.com>
7460
7461 * dwarf2read.c (dwarf2_objfile_data_key): New.
7462 (struct dwarf2_per_objfile, dwarf2_per_objfile): New.
7463 (dwarf_info_size, dwarf_abbrev_size, dwarf_line_size)
7464 (dwarf_pubnames_size, dwarf_aranges_size, dwarf_loc_size)
7465 (dwarf_macinfo_size, dwarf_str_size, dwarf_ranges_size)
7466 (dwarf_frame_size, dwarf_eh_frame_size, dwarf_info_buffer)
7467 (dwarf_abbrev_buffer, dwarf_line_buffer, dwarf_str_buffer)
7468 (dwarf_macinfo_buffer, dwarf_ranges_buffer, dwarf_loc_buffer):
7469 Remove variables.
7470 (struct dwarf2_pinfo): Remove per-objfile members. Update comments.
7471 (DWARF_ABBREV_SIZE, DWARF_LINE_SIZE)
7472 (DWARF_LOC_SIZE, DWARF_MACINFO_SIZE, DWARF_STR_SIZE)
7473 (DWARF_RANGES_SIZE, DWARF_INFO_BUFFER)
7474 (DWARF_ABBREV_BUFFER, DWARF_LINE_BUFFER, DWARF_STR_BUFFER)
7475 (DWARF_MACINFO_BUFFER, DWARF_RANGES_BUFFER, DWARF_LOC_BUFFER):
7476 Remove macros.
7477 (dwarf2_has_info): Take an objfile argument. Allocate per-objfile
7478 data.
7479 (dwarf2_locate_sections, dwarf2_build_psymtabs)
7480 (dwarf2_build_psymtabs_easy, dwarf2_build_psymtabs_hard)
7481 (skip_one_die, dwarf2_get_pc_bounds, dwarf2_read_abbrevs)
7482 (read_partial_die, read_full_die, read_indirect_string)
7483 (dwarf_decode_line_header, dwarf_decode_macros)
7484 (dwarf2_symbol_mark_computed): Remove use of removed macros.
7485 Update uses of removed variables.
7486 (psymtab_to_symtab_1): Restore per-objfile data pointer. Remove use
7487 of removed macros.
7488 (_initialize_dwarf2_read): New function.
7489 * symfile.h (dwarf2_has_info): Update prototype.
7490 * coffread.c (coff_symfile_read): Update call to dwarf2_has_info.
7491 * elfread.c (elf_symfile_read): Likewise.
7492
408752b0
JB
74932004-04-01 Jim Blandy <jimb@redhat.com>
7494
9f744501
JB
7495 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): New, unified
7496 function for register numbers on all the rs6000-derived targets.
7497 (rs6000_gdbarch_init): Don't register a separate
7498 gdbarch_dwarf2_reg_to_regnum function for the E500. Use
7499 rs6000_dwarf2_stab_reg_to_regnum for both Dwarf 2 and stabs on all
7500 variants.
7501
408752b0
JB
7502 * i386-tdep.c: Add FIXME regarding STABS vs. Dwarf 2 register
7503 numbering.
7504
2de41bce
PH
75052004-04-01 Paul N. Hilfinger <Hilfinger@gnat.com>
7506
7507 * valarith.c: Update copyright notice.
7508 (value_add): Handle range types.
7509 (value_sub): Ditto.
7510 (value_equal): Ditto.
7511 (value_less): Ditto.
7512 (value_neg): Ditto.
7513 (value_complement): Ditto.
8718a420 7514 (value_binop): Simplify slightly by using is_integral_type and
2de41bce 7515 eliminiating unnecessary COERCE_ENUMs.
8718a420 7516
5613d8d3
AC
75172004-03-31 Andrew Cagney <cagney@redhat.com>
7518
7519 * frame.h (frame_unwind_id): Declare.
7520 * frame.c (frame_unwind_id): New function.
7521 (get_prev_frame_1): New function.
7522 (frame_debug_got_null_frame): New function.
7523 (get_prev_frame): Use frame_debug_got_null_frame. Move unwind
7524 code proper to prev_frame, update description.
7525 * infrun.c (step_over_function): Use frame_unwind_id.
7526
c4557624
JB
75272004-04-31 J. Brobecker <brobecker@gnat.com>
7528
7529 * hppa-tdep.c (hppa32_push_dummy_call): Set the Stack Pointer.
7530 (hppa64_push_dummy_call): Likewise.
7531
3e6bb910
JB
75322004-03-30 Jim Blandy <jimb@redhat.com>
7533
7534 From Ulrich Weigand:
7535 * utils.c (query): Do not use a va_list variable multiple times.
7536
a2f23071
DJ
75372004-03-29 Daniel Jacobowitz <drow@mvista.com>
7538
7539 * Makefile.in (linux_nat_h): Update dependencies.
7540 * configure.in: Check for <gnu/libc-version.h>.
7541 * configure: Regenerate.
7542 * config.in: Regenerate.
7543 * linux-nat.h: Include "target.h". Add waitstatus field to
7544 struct lwp_info.
7545 * lin-lwp.c (add_lwp): Initialize waitstatus.kind.
7546 (lin_lwp_attach_lwp): Don't attach to LWPs we have already attached
7547 to.
7548 (lin_lwp_handle_extended): New function. Handle clone events.
7549 (wait_lwp): Use lin_lwp_handle_extended. Update comment about
7550 thread exit events.
7551 (child_wait): Handle clone events.
7552 (lin_lwp_wait: Use lin_lwp_handle_extended and handle clone events.
7553 * linux-nat.c (linux_enable_event_reporting): Turn on
7554 PTRACE_O_TRACECLONE.
7555 (linux_handle_extended_wait): Handle clone events.
7556 * thread-db.c: Include <gnu/libc-version.h>.
7557 (struct private_thread_info): Add dying flag.
7558 (enable_thread_event_reporting): Enable TD_DEATH for glibc 2.2 and
7559 higher.
7560 (attach_thread): Update comments. Handle dying threads.
7561 (detach_thread): Set the dying flag.
7562 (check_event): Always call attach_thread.
7563
8d5f9dcb
DJ
75642004-03-29 Daniel Jacobowitz <drow@mvista.com>
7565
7566 * mips-tdep.c (mips_pdr_data): New.
7567 (non_heuristic_proc_desc): Use objfile_data and set_objfile_data.
7568 (_initialize_mips_tdep): Initialize mips_pdr_data.
7569
66337bb1
CV
75702004-03-29 Corinna Vinschen <vinschen@redhat.com>
7571
7572 * minsyms.c (install_minimal_symbols): Move dropping leading
7573 char from linkage name from here...
7574 (prim_record_minimal_symbol_and_info): ...to here. Simplify
7575 test for "__gnu_compiled*" symbols.
7576
e802b915
JB
75772004-03-28 Jim Blandy <jimb@redhat.com>
7578
7579 * rs6000-tdep.c (skip_prologue): Recognize moves from argument
7580 registers to temp register r0 and byte stores as prologue
7581 instructions.
7582
72b56458
AC
75832004-03-28 Andrew Cagney <cagney@redhat.com>
7584
7585 * PROBLEMS (Stack backtraces): Rewrite. Remove reference to
7586 arm*-*-*.
7587
0bfbda3b
SC
75882004-03-28 Stephane Carrez <stcarrez@nerim.fr>
7589
7590 * tui/tui-regs.c (tui_show_registers): Make sure the TUI is active
7591 and switch the layout to force a display of register window.
7592
5a7225ed
JB
75932004-02-26 J. Brobecker <brobecker@gnat.com>
7594
7595 * amd64-tdep.c (amd64_classify): make RANGE_TYPE objects be part
7596 of the INTEGER class.
7597
81a07a45
JB
75982004-03-26 Jim Blandy <jimb@redhat.com>
7599
7600 * ppc-linux-tdep.c (ppc_linux_init_abi): Long doubles are eight
7601 bytes long on PPC GNU/Linux.
7602
8c691c7a
DC
76032004-03-26 David Carlton <carlton@kealia.com>
7604
7605 * PROBLEMS: Refer to gdb/1588 instead of gdb/826.
7606
103a0089
AC
76072004-03-25 Andrew Cagney <cagney@redhat.com>
7608
7609 * PROBLEMS: Add general section titles, remove references to
7610 specific releases.
7611
7a5ea0d4
DJ
76122004-03-25 Daniel Jacobowitz <drow@mvista.com>
7613
7614 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE): Define to
7615 INT_REGISTER_SIZE.
7616 (arm_linux_push_arguments): Use TARGET_DOUBLE_BIT instead of
7617 FP_REGISTER_VIRTUAL_SIZE.
7618 * arm-tdep.c (arm_make_sigtramp_cache): Use register_size instead
7619 of DEPRECATED_REGISTER_RAW_SIZE.
7620 (arm_register_type): Add gdbarch argument.
7621 (arm_register_raw_size, arm_register_virtual_size): Delete.
7622 (arm_register_byte, arm_extract_return_value)
7623 (arm_store_return_value, arm_get_longjmp_target): Update references
7624 to INT_REGISTER_RAW_SIZE and FP_REGISTER_RAW_SIZE.
7625 (arm_gdbarch_init): Likewise. Don't set
7626 deprecated_register_raw_size, deprecated_register_virtual_size,
7627 deprecated_max_register_raw_size,
7628 deprecated_max_register_virtual_size, or
7629 deprecated_max_register_virtual_type. Do set register_type.
7630 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE)
7631 (ARM_MAX_REGISTER_VIRTUAL_SIZE, INT_REGISTER_VIRTUAL_SIZE)
7632 (FP_REGISTER_VIRTUAL_SIZE): Delete.
7633 (INT_REGISTER_RAW_SIZE): Rename to INT_REGISTER_SIZE.
7634 (FP_REGISTER_RAW_SIZE): Rename to FP_REGISTER_SIZE.
7635 * arm-linux-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Define to
7636 INT_REGISTER_SIZE.
7637 * remote-rdp.c (remote_rdp_fetch_register): Use MAX_REGISTER_SIZE.
7638 (remote_rdp_store_register): Likewise.
7639
5792a79b
DJ
76402004-03-24 Daniel Jacobowitz <drow@mvista.com>
7641
7642 * Makefile.in (mips-linux-tdep.o): Update dependencies.
7643 * mips-tdep.c (mips_gdbarch_init): Move frame predicates
7644 to after osabi initialization.
7645 * mips-linux-tdep.c: Include "trad-frame.h" and "tramp-frame.h".
7646 (mips_linux_o32_sigframe_init, mips_linux_n32n64_sigframe_init): New
7647 functions.
7648 (mips_linux_o32_sigframe, mips_linux_o32_rt_sigframe)
7649 (mips_linux_n32_rt_sigframe, mips_linux_n64_rt_sigframe): New
7650 variables.
7651 (mips_linux_init_abi): Append signal trampoline unwinders.
7652
1196bfda
AC
76532004-03-24 Andrew Cagney <cagney@redhat.com>
7654
7655 * tramp-frame.h (TRAMP_SENTINEL_INSN): Define, document.
7656 * tramp-frame.c: Include "gdb_assert.h".
7657 (tramp_frame_start): Use TRAMP_SENTINEL_INSN. Use ULONGEST and
7658 correct sizeof.
7659 (tramp_frame_append): Validate the tramp frame's instructions.
7660 * Makefile.in (tramp-frame.o): Update dependencies.
7661
4be282b4
AC
76622004-03-23 Andrew Cagney <cagney@redhat.com>
7663
7664 * trad-frame.h (trad_frame_set_reg_addr): Declare.
7665
69aec09b
AC
76662004-03-23 Andrew Cagney <cagney@redhat.com>
7667
7668 * MAINTAINERS (Past Maintainers): Add Mark Salter and Fernando
7669 Nasser as past testsuite/lib/ (and other) maintainers.
7670
63ed89b4
DJ
76712004-03-23 Daniel Jacobowitz <drow@mvista.com>
7672
7673 * infcmd.c (attach_command): Reread symbols if we already have
7674 an exec file.
7675
f3b36427
AC
76762004-03-23 Andrew Cagney <cagney@redhat.com>
7677
7678 * rs6000-tdep.c (frame_get_saved_regs): Delete unused function.
7679
aa2a3f87
AC
76802004-03-23 Andrew Cagney <cagney@redhat.com>
7681
7682 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): Deprecate.
7683 * gdbarch.h, gdbarch.c: Re-generate.
7684 * i386obsd-tdep.c (i386obsd_init_abi): Update.
7685 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
7686 * i386bsd-tdep.c (i386bsd_init_abi): Update.
8718a420 7687 * config/vax/tm-vaxbsd.h (DEPRECATED_SIGTRAMP_END)
aa2a3f87 7688 (DEPRECATED_SIGTRAMP_START): Update.
8718a420 7689 * config/m68k/tm-nbsd.h (DEPRECATED_SIGTRAMP_END)
aa2a3f87
AC
7690 (DEPRECATED_SIGTRAMP_START): Update.
7691 * blockframe.c (find_pc_sect_partial_function): Update.
7692 * arch-utils.c (legacy_pc_in_sigtramp): Update.
7693
00cac895
DJ
76942004-03-23 Daniel Jacobowitz <drow@mvista.com>
7695
7696 * remote.c (remote_open_1): Reopen the exec file and reread symbols
7697 if necessary.
7698
f561f026
AC
76992004-03-23 Andrew Cagney <cagney@redhat.com>
7700
7701 * gdbarch.sh (PC_IN_SIGTRAMP): Change to a function with
7702 predicate, deprecate.
7703 * gdbarch.h, gdbarch.c: Re-generate.
7704 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
7705 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
7706 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Update.
7707 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
7708 * alphanbsd-tdep.c (alphanbsd_init_abi): Update.
7709 * amd64-linux-tdep.c (amd64_linux_init_abi): Update.
7710 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Update.
7711 * amd64nbsd-tdep.c (amd64nbsd_init_abi): Update.
7712 * amd64obsd-tdep.c (amd64obsd_init_abi): Update.
7713 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Update.
7714 * blockframe.c (find_pc_partial_function): Update.
7715 * breakpoint.c (bpstat_what): Update.
7716 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update.
7717 * frv-linux-tdep.c (frv_linux_init_abi): Update.
7718 * frv-tdep.c (frv_sigtramp_frame_sniffer): Update.
7719 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Update.
7720 * i386-interix-tdep.c (i386_interix_init_abi): Update.
7721 * i386-linux-tdep.c (i386_linux_init_abi): Update.
7722 * i386-nto-tdep.c (i386nto_init_abi): Update.
7723 * i386-sol2-tdep.c (i386_sol2_init_abi): Update.
7724 * i386-tdep.c (i386_sigtramp_frame_sniffer)
7725 (i386_svr4_init_abi, i386_go32_init_abi, i386_gdbarch_init): Update.
7726 * i386bsd-tdep.c (i386bsd_init_abi): Update.
7727 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
7728 * i386obsd-tdep.c (i386obsd_init_abi): Update.
7729 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Update.
7730 * infrun.c (pc_in_sigtramp): Update.
7731 * m68k-tdep.c (m68k_sigtramp_frame_sniffer): Update.
7732 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
7733 * mips-tdep.c (mips_gdbarch_init): Update.
7734 * mipsnbsd-tdep.c (mipsnbsd_init_abi): Update.
7735 * ppc-linux-tdep.c: Update comment.
7736 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Update.
7737 * shnbsd-tdep.c (shnbsd_init_abi): Update.
7738 * sparc-linux-tdep.c (sparc32_linux_init_abi): Update.
7739 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Update.
7740 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Update.
7741 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Update.
7742 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Update.
7743 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Update.
7744 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Update.
7745 * sparcobsd-tdep.c (sparc32obsd_init_abi): Update.
8718a420 7746
8050c72f
AC
77472004-03-23 Andrew Cagney <cagney@redhat.com>
7748
d2259dd3
AC
7749 * tramp-frame.h, tramp-frame.h: New files.
7750 * Makefile.in (SFILES, tramp_frame_h, COMMON_OBS, tramp-frame.o):
7751 Update rules to include "tramp-frame.h" and "tramp-frame.c".
7752
8050c72f
AC
7753 * Makefile.in: Update all dependencies.
7754
0db9b4b7
AC
77552004-03-23 Andrew Cagney <cagney@redhat.com>
7756
7757 * Makefile.in (trad_frame_h): Add $(frame_h).
7758 * trad-frame.h: Update copyright. Include "frame.h".
7759 (struct trad_frame_cache, trad_frame_cache_zalloc): Declare.
7760 (trad_frame_set_id, trad_frame_get_id): Declare.
7761 (trad_frame_set_reg_addr, trad_frame_get_register): Declare.
7762 * trad-frame.c: Update copyright.
7763 (struct trad_frame_cache): Define.
7764 (trad_frame_cache_zalloc): New function.
7765 (trad_frame_set_id, trad_frame_get_id): New functions.
7766 (trad_frame_set_reg_addr, trad_frame_get_register): New functions.
8718a420 7767
8e645ae7
AC
77682004-03-22 Andrew Cagney <cagney@redhat.com>
7769
7770 * s390-tdep.c (struct s390_stub_unwind_cache): Rename
7771 s390_pltstub_unwind_cache.
7772 (s390_stub_frame_unwind_cache): Rename
7773 s390_pltstub_frame_unwind_cache.
7774 (s390_stub_frame_this_id): Rename s390_pltstub_frame_this_id.
7775 (s390_stub_frame_prev_register): Rename
7776 s390_pltstub_frame_prev_register.
7777 (s390_stub_frame_unwind): Rename s390_pltstub_frame_unwind.
7778 (s390_stub_frame_sniffer): Rename s390_stub_frame_sniffer.
7779
7780 From Ulrich Weigand:
7781 * s390-tdep.c (s390_pltstub_frame_sniffer): Handle invalid function
7782 pointer calls like PLT calls.
7783
34fcf120
DJ
77842004-03-22 Daniel Jacobowitz <drow@mvista.com>
7785
7786 * mips-tdep.c (non_heuristic_proc_desc): Search using the specified
7787 PC rather than the partial function start address. Use the start
7788 address to sanity check the found PDR.
7789
5b917078
DJ
77902004-03-22 Daniel Jacobowitz <drow@mvista.com>
7791
7792 * lin-lwp.c (lin_lwp_wait): Pass the LWP ID to
7793 linux_handle_extended_wait.
7794
8adf9e78
AC
77952004-03-22 Andrew Cagney <cagney@redhat.com>
7796
c3122434
AC
7797 * rs6000-tdep.c (frame_initial_stack_address): Delete unused
7798 function.
7799
8adf9e78
AC
7800 * frame.h (generic_pop_current_frame): Delete declaration.
7801 (deprecate_pop_dummy_frame): Deprecate
7802 generic_pop_dummy_frame.
7803 * dummy-frame.c (deprecated_pop_dummy_frame): Update.
7804 (generic_pop_current_frame): Delete function.
7805 * mn10300-tdep.c (mn10300_pop_frame): Eliminate call to
7806 generic_pop_current_frame.
7807 * v850-tdep.c (v850_pop_frame): Update.
7808 * mcore-tdep.c (mcore_pop_frame): Update.
7809 * sh64-tdep.c (sh64_pop_frame): Update.
7810 * h8300-tdep.c (h8300_pop_frame): Update.
7811
90ba813f
AC
78122004-03-22 Andrew Cagney <cagney@redhat.com>
7813
7814 * frame.h (deprecated_pc_in_call_dummy): Rename
7815 generic_pc_in_call_dummy.
7816 * dummy-frame.h (pc_in_dummy_frame): Delete declaration.
7817 * dummy-frame.c (deprecated_pc_in_call_dummy): Rename
7818 generic_pc_in_call_dummy.
7819 (pc_in_dummy_frame): Make static.
7820 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Update.
7821 * gdbarch.h, gdbarch.c: Re-generate.
7822 * dummy-frame.c (dummy_frame_sniffer): Simplify.
7823 * frame.c (frame_type_from_pc): Call deprecated_pc_in_call_dummy.
7824 (legacy_get_prev_frame): Ditto.
7825 * inferior.h: Delete reference to generic_pc_in_call_dummy in
7826 comment.
8718a420 7827
ca4bb888
AC
78282004-03-21 Andrew Cagney <cagney@redhat.com>
7829
244675f9
AC
7830 * inferior.h (deprecated_pc_in_call_dummy_at_entry_point): Delete
7831 declaration and out-of-date comment.
7832 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
7833 Delete function.
7834 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
7835 deprecated_pc_in_call_dummy.
7836
ca4bb888
AC
7837 * infrun.c (handle_inferior_event): For non legacy frames, use the
7838 frame ID and frame type to identify a signal trampoline. Update
7839 comments.
7840
1777c7b4
NW
78412004-03-21 Nathan J. Williams <nathanw@wasabisystems.com>
7842
7843 * mipsnbsd-tdep.c: Update copyright. Include "mips-tdep.h".
7844 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
7845
82417da5
AC
78462004-03-21 Andrew Cagney <cagney@redhat.com>
7847
7848 * frame-unwind.h: Update copyright.
7849 (struct frame_data): Add opaque declaration.
7850 (frame_sniffer_ftype): Declare.
7851 (struct frame_unwind): Add "unwind_data" and "sniffer".
7852 (frame_unwind_register_unwinder): Declare.
7853 (frame_unwind_find_by_frame): Add parameter "this_cache".
7854 * frame.c (get_frame_id, create_new_frame, legacy_get_prev_frame)
7855 (legacy_get_prev_frame, legacy_get_prev_frame)
7856 (get_frame_type): Pass the prologue_cache to
7857 frame_unwind_find_by_frame.
7858 * frame-unwind.c (struct frame_unwind_table_entry): Add field
7859 "unwinder".
7860 (frame_unwind_register_unwinder): New function.
7861 (frame_unwind_find_by_frame): Handle an unwind sniffer.
7862
b2ba182e
PH
78632004-03-20 Paul Hilfinger <hilfingr@nile.gnat.com>
7864
7865 * bcache.c (print_percentage): Use floating point to avoid
7866 incorrect results when portion*100 overflows.
7867
81332287
KB
78682004-03-19 Kevin Buettner <kevinb@redhat.com>
7869
7870 * ppc_tdep.h (ppc_linux_frame_saved_pc)
7871 (ppc_linux_init_extra_frame_info)
7872 (ppc_linux_frameless_function_invocation)
7873 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain)
7874 (rs6000_frame_saved_pc, rs6000_init_extra_frame_info)
7875 (rs6000_frameless_function_invocation, rs6000_frame_init_saved_regs)
7876 (rs6000_frame_chain): Delete declarations.
7877 * ppc-linux-tdep.c (ppc_linux_frame_saved_pc)
7878 (ppc_linux_init_extra_frame_info)
7879 (ppc_linux_frameless_function_invocation)
7880 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain): Delete.
7881 (ppc_linux_init_abi): Remove registration of above deleted functions.
7882 * rs6000-tdep.c (rs6000_init_extra_frame_info)
7883 (rs6000_frame_init_saved_regs, rs6000_init_frame_pc_first)
7884 (rs6000_frame_args_address, rs6000_saved_pc_after_call)
7885 (rs6000_pop_frame, rs6000_frameless_function_invocation)
7886 (rs6000_frame_saved_pc, rs6000_frame_chain): Delete.
7887 (rs6000_gdbarch_init): Remove registration of above deleted functions.
7888 Use rs6000_unwind_pc(), rs6000_frame_sniffer(),
7889 rs6000_unwind_dummy_id(), and rs6000_frame_base_sniffer() for
7890 frame management for all OSABIs.
7891
61a65099
KB
78922004-03-19 Andrew Cagney <cagney@redhat.com>
7893
7894 Committed by Kevin Buettner <kevinb@redhat.com>.
7895
7896 * ppc-linux-tdep.c: Include "trad-frame.h", and "frame-unwind.h".
7897 Update copyright.
7898 (struct ppc_linux_sigtramp_cache, ppc_linux_sigtramp_cache)
7899 (ppc_linux_sigtramp_this_id, ppc_linux_sigtramp_prev_register)
7900 (ppc_linux_sigtramp_unwind, ppc_linux_sigtramp_sniffer)
7901 (ppc_linux_init_abi): Add both 32- and 64-bit signal trampoline
7902 unwinders. #ifdef legacy frame code.
7903 * rs6000-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
7904 "frame-base.h".
7905 (rs6000_unwind_pc, rs6000_unwind_dummy_id)
7906 (struct rs6000_frame_cache, rs6000_frame_cache)
7907 (rs6000_frame_this_id, rs6000_frame_prev_register)
7908 (rs6000_frame_sniffer, rs6000_frame_unwind)
7909 (rs6000_frame_base_address, rs6000_frame_base_sniffer)
7910 (rs6000_frame_base): Implement a traditional frame unwinder.
7911 (rs6000_gdbarch_init): When unknown, NetBSD, or GNU/Linux use the
7912 frame unwinder.
7913
88f7da05
KB
79142004-03-19 Kevin Buettner <kevinb@redhat.com>
7915
7916 * breakpoint.c (adjust_breakpoint_address): Don't adjust
7917 breakpoint address for watchpoints or the catch eventpoints.
7918 Add new paramter ``bptype''. Adjust all callers.
7919
f826dce1
AC
79202004-03-19 Andrew Cagney <cagney@redhat.com>
7921
33cb8b0f
AC
7922 * config/pa/tm-hppa.h (GDB_TARGET_IS_HPPA): Delete unused macro.
7923
f826dce1
AC
7924 * PROBLEMS: Delete note that ARM does not use frame code, problem
7925 fixed.
7926
43b1ab88
AC
79272004-03-18 Andrew Cagney <cagney@redhat.com>
7928
292ab034
AC
7929 * stack.c (return_command): Delete code wrapped in #ifdef
7930 DEPRECATED_CALL_DUMMY_HAS_COMPLETED, macro no longer defined.
7931
43b1ab88
AC
7932 * rs6000-tdep.c (skip_prologue): Record only the first LR save.
7933
dbfe4626
AC
79342004-03-18 Andrew Cagney <cagney@redhat.com>
7935
7936 * config/mips/tm-nbsd.h: Replace IN_SIGTRAMP with
7937 DEPRECATED_IN_SIGTRAMP.
7938 * config/powerpc/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7939 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP) Ditto.
7940 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7941 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7942 * config/ia64/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7943 * config/ia64/tm-aix.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7944 * config/arm/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7945 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7946 * arch-utils.c (legacy_pc_in_sigtramp): Ditto.
7947 * arch-utils.h: Remove reference to IN_SIGTRAMP in comment.
7948
0cad6aec
AC
79492004-03-18 Andrew Cagney <cagney@redhat.com>
7950
7951 * frame-base.c: Update copyright. Include "gdb_obstack.h".
7952 (struct frame_base_table_entry): Define.
7953 (struct frame_base_table): Re-implement as a linked list.
7954 (frame_base_init): Re-implement.
7955 (frame_base_table): Delete function.
7956 (append_predicate): Delete function.
7957 (frame_base_append_sniffer): Update.
7958 (frame_base_set_default): Update.
7959 (frame_base_find_by_frame): Update.
7960 (_initialize_frame_base): Use gdbarch_data_register_pre_init.
7961 * Makefile.in (frame-base.o): Update dependencies.
7962
9982c2e7
AC
79632004-03-17 Andrew Cagney <cagney@redhat.com>
7964
7965 * frame.c (legacy_get_prev_frame): Pass correct frame to
7966 frame_unwind_find_by_frame.
7967
8dfe8985
DC
79682004-03-17 David Carlton <carlton@kealia.com>
7969
7970 * NEWS: Mention C++ nested types and namespaces
7971
ed47347a
MC
79722004-03-16 Michael Chastain <mec.gnu@mindspring.com>
7973
7974 * PROBLEMS: Add section headers, "Regressions since gdb 6.0"
7975 and "Regressions since gdb 5.3.". Add known regressions since
7976 gdb 6.0.
7977
90aeadfc
DC
79782004-03-16 David Carlton <carlton@kealia.com>
7979
7980 * dwarf2read.c (process_structure_scope): Process children even
7981 when we're a declaration.
7982
73912b9b
AC
79832004-03-16 Andrew Cagney <cagney@redhat.com>
7984
7985 * symtab.h (find_pc_sect_partial_function): Delete declaration.
7986 * blockframe.c (find_pc_partial_function)
7987 (find_pc_sect_partial_function): Merge into a single
7988 find_pc_partial_function.
7989
283accbc
MK
79902004-03-16 Mark Kettenis <kettenis@gnu.org>
7991
7992 * i386bsd-nat.c: s/regno/regnum/g.
7993 (fetch_inferior_registers): Use I386_ST0_REGNUM instead of
7994 FP0_REGNUM.
7995 (store_inferior_registers): Likewise.
7996
f5b1afdf
MK
79972004-03-16 Mark Kettenis <kettenis@gnu.org>
7998
7999 * i386bsd-nat.c (fill_fpregset): Call i387_collect_fsave instead
8000 of i387_fill_fsave.
8001 (store_inferior_registers): Call i387_collect_fsave and
8002 i387_collect_fxsave instead of i387_fill_fsave and
8003 i387_fill_fxsave.
8004
41fe5eb3
AC
80052004-03-15 Andrew Cagney <cagney@redhat.com>
8006
8007 * Makefile.in (frame-unwind.o): Update dependencies.
8008 * frame-unwind.c: Include "gdb_obstack.h".
8009 (frame_unwind_init): Replace "gdbarch" parameter with an "obstack"
8010 parameter.
8011 (append_predicate): Delete function.
8012 (struct frame_unwind_table_entry): New structure.
8013 (struct frame_unwind_table): Replace "sniffer" with "head" and
8014 "tail".
8015 (frame_unwind_append_sniffer): Update.
8016 (frame_unwind_find_by_frame): Update.
8017 (_initialize_frame_unwind): Registe frame_unwind_init using
8018 gdbarch_data_register_pre_init.
8019
3f63813d
MK
80202004-03-15 Mark Kettenis <kettenis@gnu.org>
8021
8022 * i386bsd-nat.c: Update copyright year.
8023 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Undefine and then
8024 define unconditionally.
8025
3248c325 80262004-03-15 Mark Kettenis <kettenis@gnu.org>
63b6c53f
MK
8027
8028 * i387-tdep.h (i387_collect_fsave): New prototype.
8029 * i387-tdep.c (i387_collect_fsave): New function containing most
8030 of the code from i387_fill_fsave.
3248c325 8031 (i387_fill_fsave): Call i387_collect_fsave.
63b6c53f 8032
871fbe6a
MK
80332004-03-15 Mark Kettenis <kettenis@gnu.org>
8034
8035 * i386-linux-tdep.c: Update copyright year.
8036 (i386_linux_svr4_fetch_link_map_offsets): Remove function.
8037 (i386_linux_init_abi): Set solib_svr4_fetch_link_maop_offsets to
8038 svr4_ilp32_link_map_offsets instead of
8039 i386_linux_svr4_fetch_link_map_offsets.
8040
8176b9b8
DC
80412004-03-15 David Carlton <carlton@kealia.com>
8042
8043 Fix for PR c++/1553:
8044 * dwarf2read.c (read_structure_type): Determine type name by
8045 calling determine_class_name.
8046 (determine_class_name): New.
8047 (determine_prefix): Look at TYPE_TAG_NAME and call
8048 determine_class_name when appropriate.
8049 (determine_prefix_aux, class_name): Delete.
9d58e29d 8050 (read_namespace): Set die->type.
8176b9b8 8051
fe8bf7d7
KB
80522004-03-15 Kevin Buettner <kevinb@redhat.com>
8053
8054 * breakpoint.c (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete
8055 unused macro definition. The definition in target.h (or perhaps
8056 elsewhere) takes precedence.
8057
ed6edd9b
AC
80582004-03-15 Andrew Cagney <cagney@redhat.com>
8059
f9be684a
AC
8060 * ppc-tdep.h: Update copyright.
8061 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Change
8062 function signatures to match "regsets.h".
8063 * ppc-linux-tdep.c: Include "regset.h".
8064 (ELF_GREGSET_SIZE): Delete.
8065 (right_supply_register): New function.
8066 (ppc_linux_supply_fpregset, ppc_linux_supply_gregset): Rewrite
8067 using right_supply_register.
8068 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): New
8069 functions.
8070 (ppc64_linux_gregset, ppc32_linux_gregset): Define.
8071 (ppc_linux_init_abi): Register ppc_linux_regset_from_core_section.
8072 (_initialize_ppc_linux_tdep): Do not register
8073 ppc_linux_regset_core_fns.
8074 (ppc_linux_regset_from_core_section): Replace
8075 fetch_core_registers.
8076 (ppc_linux_regset_core_fns): Delete.
8077 * ppc-linux-nat.c: (right_fill_reg): New function.
8078 (supply_gregset): Update call to ppc_linux_supply_gregset.
8079 (fill_gregset): Clear the register set, use right_fill_reg.
8080 (supply_fpregset): Update call to ppc_linux_supply_fpregset.
8081 (fill_fpregset): Use right_fill_reg, correctly compute FP offsets.
8082
ed6edd9b
AC
8083 * rs6000-tdep.c (rs6000_register_virtual_type): Make registers
8084 unsigned.
8085
030f20e1
AC
80862004-03-15 Andrew Cagney <cagney@redhat.com>
8087
8088 * gdbarch.sh (gdbarch_data_pre_init_fytpe)
8089 (gdbarch_data_register_pre_init, gdbarch_data_post_init_fytpe)
8090 (gdbarch_data_register_post_init): Replace gdbarch_data_init_ftype
8091 and register_gdbarch_data.
8092 (deprecated_set_gdbarch_data): Rename set_gdbarch_data.
8093 (struct gdbarch_data): Replace "init" by "pre_init" and
8094 "post_init".
8095 * gdbarch.h, gdbarch.c: Re-generate.
8096 * dwarf2-frame.c (dwarf2_frame_init): Replace "gdbarch" paramter
8097 with"obstack", use OBSTACK_ZALLOC.
8098 (dwarf2_frame_ops): Delete.
8099 (dwarf2_frame_set_init_reg): Use gdbarch_data.
8100 (dwarf2_frame_init_reg): Use gdbarch_data.
8101 (_initialize_dwarf2_frame): Use gdbarch_data_register_pre_init.
8718a420 8102 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets)
030f20e1
AC
8103 (_initialize_svr4_solib): Update.
8104 * user-regs.c (_initialize_user_regs): Update.
8105 * reggroups.c (_initialize_reggroup): Update.
8106 * regcache.c (_initialize_regcache): Update.
8107 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
8108 * libunwind-frame.c (_initialize_libunwind_frame): Update.
8109 * gnu-v3-abi.c (init_gnuv3_ops): Update.
8110 * frame-unwind.c (_initialize_frame_unwind): Update.
8111 * frame-base.c (_initialize_frame_base): Update.
8112 * user-regs.c (user_reg_add): Update.
8113 * reggroups.c (reggroup_add): Update.
8114 * mips-linux-tdep.c (set_mips_linux_register_addr): Update.
8115 * libunwind-frame.c (libunwind_frame_set_descr): Update.
8116 * frame-unwind.c (frame_unwind_append_sniffer): Update.
8117 * frame-base.c (frame_base_table): Update.
8118 * remote.c (_initialize_remote): Update.
8119 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Define.
8718a420 8120
3111a3fc
AC
81212004-03-15 Andrew Cagney <cagney@redhat.com>
8122
8123 * cris-tdep.c (bfd_lookup_symbol): Delete unused function.
8124
5ecb7103
KB
81252004-03-15 Kevin Buettner <kevinb@redhat.com>
8126
8127 * Makefile.in (frv-linux-tdep.o): Add dependencies.
8128 * frv-linux-tdep.c: New file.
8129 * frv-tdep.c (struct gdbarch_tdep): Add new field
8130 ``sigcontext_reg_addr''.
8131 (frv_set_sigcontext_reg_addr, frv_sigtramp,frame_cache)
8132 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
8133 (frv_sigramp_frame_sniffer): New functions.
8134 (frv_sigtramp_frame_unwind): New static global.
8135 (frv_gdbarch_init): Hook in ABI-specific overrides. Hook up frame
8136 sniffers.
8137 * frv-tdep.h (frv_set_sigcontext_reg_addr): New function.
8138 * config/frv/frv.mt (TDEPFILES): Add frv-linux-tdep.o.
8139
1ccda5e9
KB
81402004-03-15 Kevin Buettner <kevinb@redhat.com>
8141
8142 * frv-tdep.c (frv_analyze_prologue): Terminate prologue scan,
8143 but not via a call to error(), when unable to read memory.
8144
b375a0a5
KB
81452004-03-15 Kevin Buettner <kevinb@redhat.com>
8146
8147 * frv-tdep.c (frv_call_dummy_words): Delete.
8148 (frv_frame_unwind_cache): Delete unused variable, ``prev_sp''.
8149
4fdf6121
AC
81502004-03-15 Andrew Cagney <cagney@redhat.com>
8151
8152 * infrun.c (handle_step_into_function, step_over_function): Only
8153 update and use STEP_FRAME_ID when the system is using legacy
8154 frames. Update comments.
8155
34021503
MK
81562004-03-14 Mark Kettenis <kettenis@gnu.org>
8157
187e21d1
MK
8158 * amd64-linux-tdep.h: Remove file.
8159 * amd64-linux-tdep.c: Don't include "inferior.h" and
8160 "amd64-linux-tdep.h". Include "frame.h" and "solib-svr4.h".
8161 (USER_R15, USER_R14, USER_R13, USER_R12, USER_RBP, USER_RBX)
8162 (USER_R11, USER_R10, USER_R9, USER_R8, USER_RAX, USER_RCX)
8163 (USER_RDX, USER_RSI, USER_RDI, USER_RIP, USER_CS, USER_EFLAGS)
8164 (USER_RSP, USER_SS, USER_DS, USER_ES, USER_FS, USER_GS): Remove
8165 macros.
8166 (user_to_gdb_regmap): Remove variable.
8167 (amd64_linux_gregset_reg_offset): New variable.
8168 (amd64_core_fns): Remove variable.
8169 (fetch_core_registers): Remove function.
8170 (amd64_linux_supply_gregset, amd64_linux_fill_gregset): Remove
8171 functions.
8172 (_initialize_amd64_linux_tdep): Don't set add_core_fns.
8173 * amd64-linux-nat.c: Don't include "amd64-linux-tdep.h".
8174 * Makefile.in (amd64_linux_tdep_h): Remove.
8175 (amd64-linux-nat.o): Update dependencies.
8176 (amd64-linux-tdep.o): Update dependencies.
8177
99679982
MK
8178 * amd64-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
8179 (fetch_regs, fetch_fpregs, store_regs, store_fpregs): Remove
8180 functions.
8181 (fetch_inferior_registers, store_inferior_registers): Rewrite.
8182
34021503
MK
8183 * amd64-tdep.h (amd64_fill_fxsave): Remove prototype.
8184 * amd64-tdep.c (amd64_fill_fxsave): Remove function.
8185
134d01f1
DJ
81862004-03-14 Daniel Jacobowitz <drow@mvista.com>
8187
8188 * dwarf2read.c (read_structure_type): Rename from
8718a420 8189 read_structure_scope. Don't create a symbol or call process_die.
134d01f1
DJ
8190 Return immediately if die->type is set. Call read_type_die before
8191 dwarf2_add_member_fn.
8192 (process_structure_scope): New function.
8193 (read_enumeration_type, process_enumeration_scope): New functions,
8194 broken out from read_enumeration. Don't create the enumeration
8195 type if it has already been created.
8196 (read_enumeration): Removed.
8197 (process_die): Call read_structure_type, process_structure_scope,
8198 read_enumeration_type, and process_enumeration_scope. Just call
8199 new_symbol for base and subrange types. Add a comment about other
8200 type dies.
8201 (read_type_die): Call read_enumeration_type.
8202 (add_partial_structure, new_symbol): Update comments.
8203
65760afb
SC
82042004-03-13 Stephane Carrez <stcarrez@nerim.fr>
8205
8206 * m68hc11-tdep.c (m68hc11_register_name): Get soft reg information.
8207
10f59415
SC
82082004-03-13 Stephane Carrez <stcarrez@nerim.fr>
8209
8210 * tui/tui-win.h (tui_get_cmd_list): Declare.
8211 * tui/tui-win.c (tui_command): New function.
8212 (tui_get_cmd_list): New function.
8213 (_initialize_tui_win): Moved initialization of tui command in
8214 tui_get_cmd_list.
8215
8216 * tui/tui-data.c (init_content_element): Setup new data members.
8217 (init_win_info): Likewise.
8218 (free_content_elements): Free it.
8219 * tui/tui-data.h (struct tui_data_element): Store the register
8220 content to print.
8221 (struct tui_data_info): Keep the current register group.
8222
8223 * tui/tui-layout.c (tui_set_layout): Update call to tui_show_registers.
8224
8225 * tui/tui-regs.h (tui_show_registers): Update prototype.
8226 (tui_toggle_float_regs, tui_calculate_regs_column_count): Remove.
8227 (tui_resize_all): No need to calculate anything for register window.
8228 * tui/tui-regs.c (tui_calculate_regs_column_count): Remove.
8229 (tui_set_register_element, tui_set_general_regs_content): Remove.
8230 (tui_set_special_regs_content): Remove.
8231 (tui_set_general_and_special_regs_content): Remove.
8232 (tui_set_float_regs_content): Remove.
8233 (tui_reg_value_has_changed, tui_get_register_raw_value): Remove.
8234 (tui_set_regs_content): Remove.
8235 (tui_toggle_float_regs, _tui_toggle_float_regs_command): Remove.
8236 (tui_v_show_registers_command_support): Remove.
8237 (tui_show_registers): Use a reggroup to specify the registers to show.
8238 (tui_show_register_group): New function.
8239 (tui_display_registers_from): Compute the layout of register window
8240 and refresh with new API; be sure to delete old register windows.
8241 (tui_check_register_values): Update to use tui_get_register and
8242 tui_display_data.
8243 (tui_display_register): Just refresh the register window part.
8244 (tui_register_format): Format registers and save in tui_data_element.
8245 (tui_get_register): New to combine tui_reg_value_has_changed and
8246 tui_get_register_raw_value; fix to use the new gdb API.
8247 (tui_show_float_command): Renamed tui_reg_float_command.
8248 (tui_show_general_command): Renamed tui_reg_general_command.
8249 (tui_show_special_command): Renamed tui_reg_system_command.
8250 (_initialize_tui_regs): Remove unused commands.
8251
c3364ea4
MK
82522004-03-13 Mark Kettenis <kettenis@gnu.org>
8253
27d1e716
MK
8254 * NEWS (New native configurations): Mention OpenBSD/amd64.
8255
c3364ea4
MK
8256 * config/i386/nm-fbsd.h: Include "config/nm-bsd.h".
8257 (PTRACE_ARG3_TYPE, FETCH_INFERIOR_REGISTERS, ATTACH_DETACH):
8258 Remove defines.
8259 * config/i386/nm-fbsd64.h: Likewise.
8260 * config/i386/nm-obsd.h: Likewise.
8261 * config/sparc/nm-fbsd.h: Likewise. Update copyright year.
8262 * config/alpha/nm-fbsd.h: Likewise. Update copyright year.
8263
b2d6d697
KB
82642004-03-12 Kevin Buettner <kevinb@redhat.com>
8265
8266 * frv-tdep.c (set_variant_scratch_registers): New function.
b2d6d697
KB
8267 * frv-tdep.h (scr0_regnum, scr1_regnum, scr2_regnum, scr3_regnum):
8268 New constants.
8269
76e43199
KB
8270 From Richard Sandiford <rsandifo@redhat.com>:
8271 * frv-tdep.c (frv_gdbarch_init): Add FR450 support.
8272
34ce532e
KB
82732004-03-12 Kevin Buettner <kevinb@redhat.com>
8274
8275 * frv-tdep.c, frv-tdep.h (first_gpr_regnum, sp_regnum, fp_regnum)
8276 (struct_return_regnum, last_gpr_regnum, first_fpr_regnum)
8277 (last_fpr_regnum, pc_regnum, first_spr_regnum, psr_regnum, ccr_regnum)
8278 (cccr_regnum, fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum)
8279 (tbr_regnum, brr_regnum, dbar0_regnum, dbar1_regnum, dbar2_regnum)
8280 (dbar3_regnum, lr_regnum, lcr_regnum, iacc0h_regnum, iacc0l_regnum)
8281 (last_spr_regnum, frv_num_regs, first_pseudo_regnum, iacc0_regnum)
8282 (last_pseudo_regnum, frv_num_pseudo_regs): Move constant (enum)
8283 definitions from frv-tdep.c to frv-tdep.h.
8284
c4d10515
KB
82852004-03-12 Kevin Buettner <kevinb@redhat.com>
8286
8287 Add shared library support for FR-V FDPIC ABI:
8288 * Makefile.in (solib-frv.o): Add dependencies.
8289 * frv-tdep.c (find_func_descr, frv_convert_from_func_ptr_addr):
8290 New functions.
8291 (frv_push_dummy_call): Add support for FDPIC ABI.
8292 (frv_gdbarch_init): Call set_gdbarch_convert_from_func_ptr_addr()
8293 for FDPIC ABI.
8294 * frv-tdep.h (frv_fdpic_find_global_pointer): Declare.
8295 (frv_fdpic_find_canonical_descriptor): Declare.
8296 * solib-frv.c: New file.
8297 * config/frv/frv.mt (TDEPFILES): Add solib.o and solib-frv.o.
8298 * config/frv/tm-frv.h (solib.h): Include.
8299
ed1bd989
KB
83002004-03-12 Kevin Buettner <kevinb@redhat.com>
8301
8302 * Makefile.in (elf_frv_h, frv_tdep_h): Define.
8303 (frv-tdep.o): Update dependencies.
8304 * frv-tdep.h: New file.
8305 * frv-tdep.c (elf-bfd.h, elf/frv.h, osabi.h, frv-tdep.h): Include.
8306 (fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum): New
8307 constants.
8308 (struct gdbarch_tdep): Add new member ``frv_abi''.
8309 (frv_abi, frv_fdpic_loadmap_addresses, set_variant_abi_fdpic): New
8310 functions.
8311 (new_variant): Set ``frv_abi'' field.
8312 (gdb_arch_init): Detect FDPIC executables.
8313
82b38f72
MK
83142004-03-12 Mark Kettenis <kettenis@gnu.org>
8315
8316 * solib-svr4.h: Change SOLIB_SVR4 wrapper into SOLIB_SVR4_H
8317 wrapper.
8318
db1ea9ba
AC
83192004-03-11 Andrew Cagney <cagney@redhat.com>
8320
8321 * solib-svr4.h: Add #ifndef SOLIB_SVR4 wrapper.
8322
f8766ec1
KB
83232004-03-11 Kevin Buettner <kevinb@redhat.com>
8324
8325 * solist.h (master_so_list): New function.
8326 * solib.c (master_so_list): Likewise.
8327 * solib-svr4.c (enable_break): Iterate over so_list entries
8328 obtained from master list instead of entries obtained directly
8329 via svr4_current_sos().
8330
523f6a27
BE
83312004-03-10 Ben Elliston <bje@gnu.org>
8332
8333 * MAINTAINERS: Update my mail address.
8334
37814c18
KI
83352004-03-10 Kei Sakamoto <sakamoto.kei@renesas.com>
8336
8337 * remote-m32r-sdi.c: Support hardware watchpoint.
8338
8b9740d8
DJ
83392004-03-09 Daniel Jacobowitz <drow@mvista.com>
8340
8341 * user-regs.c: Update copyright years.
8342 (struct user_regs): Rename to gdb_user_regs.
8343 (append_user_reg, builtin_user_regs, user_regs_init)
8344 (user_reg_add, user_reg_map_name_to_regnum)
8345 (usernum_to_user_reg): Update.
8346
4bb7a0a7
DJ
83472004-03-09 Daniel Jacobowitz <drow@mvista.com>
8348
8349 * dwarf2read.c (skip_leb128, peek_die_abbrev, skip_one_die)
8350 (skip_children): New functions.
8351 (locate_pdi_sibling): Call skip_children.
8352
44e1a9eb
DJ
83532004-03-09 Daniel Jacobowitz <drow@mvista.com>
8354
8355 * arm-tdep.c (arm_use_struct_convention): Look through typedefs.
8356 * gdbtypes.c (check_typedef): Update comments.
8357
f3dd6933
DJ
83582004-03-09 Daniel Jacobowitz <drow@mvista.com>
8359
8360 * dwarf2read.c (struct comp_unit_head): Remove dwarf2_abbrevs array.
8361 (struct dwarf2_cu): Add abbrev_obstack and dwarf2_abbrevs
8362 pointer. Update comment about comp_unit_head.
8363 (struct abbrev_info): Shorten two int flags.
8364 (dwarf_alloc_abbrev): Take a CU argument.
8365 (dwarf2_build_psymtabs_hard): Call dwarf2_free_abbrev_table
8366 each time through the loop. Update cleanup argument.
8367 (psymtab_to_symtab_1): Update cleanup call.
8368 (dwarf2_read_abbrevs, dwarf2_alloc_abbrev): Allocate on the
8369 abbrev_obstack.
8370 (dwarf2_free_abbrev_table): Renamed from dwarf2_empty_abbrev_table.
8371 Just call obstack_free and clear the pointer.
8372
b40c7d58
DJ
83732004-03-09 Daniel Jacobowitz <drow@mvista.com>
8374
8375 * infrun.c (handle_inferior_event): Remove short-circuit code for
8376 events in a different thread.
8377
333dabeb
DJ
83782004-03-09 Daniel Jacobowitz <drow@mvista.com>
8379
8380 * target.c (debug_to_xfer_memory): If targetdebug is 1, don't
8381 print the whole transfer.
8382 (initialize_targets): Update description of "set debug target".
8383
aa17d93e
DJ
83842004-03-09 Daniel Jacobowitz <drow@mvista.com>
8385
8386 * arm-tdep.c (thumb_get_next_pc): Handle Thumb BLX.
8387
0b71f08f
NW
83882004-03-08 Nathan J. Williams <nathanw@wasabisystems.com>
8389
8390 * MAINTAINERS (write after approval): Add myself.
8391
3930f270
CV
83922004-03-08 Corinna Vinschen <vinschen@redhat.com>
8393
8394 * sh-tdep.c (sh_print_registers_info): Use for loop.
8395 Don't skip multiple registers when a float register is encountered.
8396
a2b4a96c
CV
83972004-03-08 Corinna Vinschen <vinschen@redhat.com>
8398
8399 Fix PR tdep/1291.
8400 * sh-tdep.c (sh_analyze_prologue): Align PC relative addressing
8401 to official SH documentation.
8402
f15a4bc0
AC
84032004-03-07 Andrew Cagney <cagney@redhat.com>
8404
8405 * ppc-linux-nat.c (ppc_ptrace_cannot_fetch_store_register): Delete
8406 unused function.
8407
9498281f
DJ
84082004-03-07 Daniel Jacobowitz <drow@mvista.com>
8409
8410 * arm-tdep.c (thumb_get_next_pc): Handle BX.
8411 (arm_get_next_pc): Handle BX and BLX.
8412
449e1137
AC
84132004-03-07 Andrew Cagney <cagney@redhat.com>
8414
eded0a31
AC
8415 * hppa-tdep.c: Replace DEPRECATED_FP_REGNUM with HPPA_FP_REGNUM,
8416 FP0_REGNUM with HPPA_FP0_REGNUM, and SP_REGNUM with
8417 HPPA_SP_REGNUM.
8418 (hppa_register_raw_size, hppa_register_byte, hppa_read_fp)
8419 (hppa_target_read_fp): Delete.
8420 (hppa_gdbarch_init): Do not set deprecated register_raw_size,
8421 register_virtual_size, max_register_raw_size,
8422 max_register_virtual_size, register_byte, register_size,
8423 target_read_fp, fp_regnum, and register_bytes. Set register_type
8424 instead of register_virtual_type.
8425 (hppa32_register_type, hppa64_register_type): Replace
8426 hppa32_register_virtual_type and hppa64_register_virtual_type.
8427 * config/pa/tm-hppa.h (HPPA_FP0_REGNUM, HPPA_SP_REGNUM)
8428 (HPPA_FP_REGNUM): Define.
8429
f5f907e2
AC
8430 * hppa-tdep.c (hppa_gdbarch_init): Add missing "break".
8431
69b4bbe4
AC
8432 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO)
8433 (pa_do_registers_info): Delete.
8434 * hppa-tdep.c (pa_do_registers_info, pa_do_strcat_registers_info)
8718a420 8435 (pa_print_registers, pa_print_fp_reg, pa_strcat_registers)
69b4bbe4 8436 (pa_strcat_fp_reg, pa_register_look_aside): Delete.
f5f907e2 8437
78161e48
AC
8438 * infcall.c (legacy_push_dummy_code): Delete #ifdef
8439 GDB_TARGET_IS_HPPA code.
8440 * config/pa/tm-hppa.h (DEPRECATED_FIX_CALL_DUMMY)
8718a420 8441 (hppa_fix_call_dummy, DEPRECATED_CALL_DUMMY_HAS_COMPLETED)
78161e48
AC
8442 (DEPRECATED_DUMMY_WRITE_SP, CALL_DUMMY): Delete.
8443 * config/pa/tm-hppa64.h (CALL_DUMMY): Delete.
8718a420
RM
8444 * hppa-tdep.c (hppa_frame_chain, hppa_frame_chain_valid)
8445 (hppa_push_dummy_frame, hppa_pop_frame, hppa_push_arguments)
8446 (hppa_fix_call_dummy, hppa64_stack_align, hppa_frame_saved_pc)
78161e48 8447 (hppa_init_extra_frame_info, hppa_saved_pc_after_call)
8718a420
RM
8448 (hppa64_call_dummy_breakpoint_offset, hppa_frame_init_saved_regs)
8449 (hppa_frameless_function_invocation, hppa64_store_return_value)
8450 (hppa_store_struct_return, hppa64_extract_return_value)
78161e48 8451 (hppa64_use_struct_convention, hppa_frame_find_saved_regs)
8718a420 8452 (hppa32_call_dummy_length, hppa64_call_dummy_length)
78161e48 8453 (find_dummy_frame_regs, FUNC_LDIL_OFFSET, FUNC_LDO_OFFSET)
8718a420
RM
8454 (find_proc_framesize, deposit_21, restore_pc_queue)
8455 (find_return_regnum, pc_in_interrupt_handler, deposit_14)
210197d2 8456 (rp_saved, pc_in_linker_stub): Delete.
78161e48 8457
782eae8b
AC
8458 Unconditionally enable 64-bit frame and ABI code.
8459 * hppa-tdep.c (hppa_gdbarch_init): Do not set deprecated
8460 call_dummy_breakpoint_offset, call_dummy_length, stack_align,
8461 push_dummy_frame, fix_call_dummy, push_arguments,
8462 call_dummy_location, extract_return_value, use_struct_convention,
8463 store_return_value, store_struct_return, saved_pc_after_call,
8464 init_frame_pc, frame_init_saved_regs, init_extra_frame_info,
8465 frame_chain, frame_chain_valid, frameless_function_invocation,
8466 frame_saved_pc, and pop_frame.
78161e48 8467
449e1137
AC
8468 * hppa-tdep.c: Replace PC_REGNUM with PCOQ_HEAD_REGNUM.
8469 (hppa64_return_value, hppa64_push_dummy_call): Rewrite.
8470 (hppa_gdbarch_init): Do not set PC_REGNUM.
8471
12507572
MK
84722004-03-06 Mark Kettenis <kettenis@gnu.org>
8473
8474 * config/alpha/tm-fbsd.h: Remove file.
8475 * config/alpha/fbsd.mt: Tweak comment.
8476 (TM_FILE): Set to tm-alpha.h.
8477
c107cc1b
AC
84782004-03-05 Andrew Cagney <cagney@redhat.com>
8479
8480 * infrun.c (step_over_function): When non-legacy code, and no
8481 step_frame_id, use the unwinder to get the caller's frame ID.
8482
f2e7c15d
MK
84832004-03-05 Mark Kettenis <kettenis@gnu.org>
8484
8b0c3633
MK
8485 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Register
8486 i386bsd_core_osabi_sniffer for bfd_arch_i386 instead of
8487 bfd_arch_unknown. Adjust comment.
8488
f2e7c15d
MK
8489 * i386-nat.c: Fix typo in comment. Re-introduce paranoiac.
8490 * i386obsd-tdep.c: Correct spelling in comment.
8491 * i386nbsd-tdep.c: Correct spelling in comment.
8492 * sparc-tdep.c: Correct spelling in comments.
8493
1198ecbe
DC
84942004-03-05 David Carlton <carlton@kealia.com>
8495
8496 * cp-namespace.c (cp_lookup_transparent_type_loop): Fix recursion
8497 bug.
8498
9eb42ed1
MK
84992004-03-05 Mark Kettenis <kettenis@gnu.org>
8500
8501 * sparc-tdep.c: Fix typo in comment.
8502
52b5e991
JB
85032004-03-04 J. Brobecker <brobecker@gnat.com>
8504
8505 * hppa-tdep.c (hppa_frame_cache): Avoid undefined return value.
8506
d8151005
DJ
85072004-03-04 Daniel Jacobowitz <drow@mvista.com>
8508
8509 * dwarf2read.c: Add comment describing memory lifetimes.
8510 (struct dwarf2_pinfo): Update comment.
8511 (dwarf2_add_field, dwarf2_add_member_fn, read_structure_scope)
8512 (read_enumeration, new_symbol): Don't use obsavestring.
8513
cbeae229
MK
85142004-03-04 Mark Kettenis <kettenis@gnu.org>
8515
722d18c2
MK
8516 * amd64-linux-nat.c (fill_fpregset): Call amd64_colletc_fxsave
8517 instead of amd64_fill_fxsave.
8518 * amd64bsd-nat.c (store_inferior_registers): Likewise.
8519 * amd64fbsd-nat.c (fill_fpregset): Likewise.
8520
cbeae229
MK
8521 * sparc-tdep.c (sparc_frame_cache): Don't bail out if %fp is zero.
8522 Reorganize code a bit.
8523
b4206d25
OF
85242004-03-04 Orjan Friberg <orjanf@axis.com>
8525
8526 * cris-tdep.c (cris_scan_prologue): Save the frame pointer's offset
8718a420
RM
8527 when the frame pointer is pushed. Don't set the frame pointer's
8528 address on the stack unless it's actually located there.
b4206d25
OF
8529 Set the SRP's address on the stack correctly when the PC is still in
8530 the prologue.
8531 (cris_return_value): New function.
8532 (cris_gdbarch_init): Clear deprecated store_return_value,
8533 extract_return_value.
8534
49b0b195
JB
85352004-03-02 Jim Blandy <jimb@redhat.com>
8536
8537 * stabsread.c (reg_value_complaint): The maximum register number
8538 is one less than the number of registers.
8539
e9ff708b
AC
85402004-03-02 Andrew Cagney <cagney@redhat.com>
8541
8542 * i386-tdep.h (enum i386_regnum): Add I386_DS_REGNUM,
8543 I386_ES_REGNUM, I386_FS_REGNUM, and I386_GS_REGNUM. Remove
8544 trailing comma and redundant assignment of I386_ST0_REGNUM.
8545 * amd64-nat.c (amd64_collect_native_gregset): Zero-extend the
8546 32-bit segment registers.
8547
d4715e41
AC
85482004-03-01 Andrew Cagney <cagney@redhat.com>
8549
8550 * rs6000-tdep.c (rs6000_init_frame_pc_first): Fix compiler error,
8551 use frame_relative_level and get_next_frame.
8552
3ce2bf18
AC
85532004-02-29 Andrew Cagney <cagney@redhat.com>
8554
8555 * rs6000-tdep.c (rs6000_init_frame_pc_first): New function.
8556 (rs6000_gdbarch_init): Set deprecated_init_frame_pc_first.
8557 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST):
8558 Delete macro.
8559
2da6aac3
DJ
85602004-02-29 Daniel Jacobowitz <drow@mvista.com>
8561
8562 * inflow.c (terminal_inferior): Don't give up the terminal if we
8563 previously couldn't get the inferior's terminal state.
8564
6ba34a8d
DJ
85652004-02-29 Daniel Jacobowitz <drow@mvista.com>
8566
8567 * regcache.c (read_pc_pid): Restore inferior_ptid after reading
8568 PC_REGNUM.
8569
faae5abe
AC
85702004-02-28 Andrew Cagney <cagney@redhat.com>
8571
8572 * NEWS: Refer to GDB 6.1.
8573 * README: Refer to GDB 6.1.
8574 * PROBLEMS: Refer to GDB 6.1.
8575
2227a3c5
DJ
85762004-02-28 Daniel Jacobowitz <drow@mvista.com>
8577
8578 * thread-db.c (disable_thread_signals): Remove unused function.
8579
80571bff
MK
85802004-02-28 Mark Kettenis <kettenis@gnu.org>
8581
041bd74b
MK
8582 * amd64-nat.c: Include "gdb_string.h".
8583 (amd64_collect_native_gregset): Zero-extend the 32-bit
8584 general-purpose registers and %eip.
8585
3c017e40
MK
8586 * amd64-tdep.h: (amd64_collect_fxsave): New prototype.
8587 * amd64-tdep.c (amd64_collect_fxsave): New function.
8588 (amd64_fill_fxsave): Simply call amd64_collect_fxsave.
8589
80571bff
MK
8590 * i387-tdep.h: Update copyright year.
8591 (i387_collect_fxsave): New prototype.
8592 * i387-tdep.c: Update copyright year.
8593 (i387_collect_fxsave): New function containing most of the code
8594 from i387_fill_fxsave.
8595 (i387_fill_fxsave): Call i387_collect_fxsave.
8596
50d71875
AC
85972004-02-28 Andrew Cagney <cagney@redhat.com>
8598
8599 * amd64-linux-nat.c (ps_get_thread_area): When architecture is
8600 i386 use PTRACE_GET_THREAD_AREA. Suggested by Roland McGrath.
8601
4a28816e
MK
86022004-02-28 Mark Kettenis <kettenis@gnu.org>
8603
8604 * amd64-tdep.c (amd64_frame_cache): Fix comment.
8605
dbda9972
AC
86062004-02-28 Andrew Cagney <cagney@redhat.com>
8607
8608 * utils.c: Use "", instead of <>, to include readline.
8609 tui/tui-win.c, tui/tui.c, tui/tui-hooks.c: Ditto.
8610 * tracepoint.c, top.c, symmisc.c, symfile.c: Ditto.
8611 * source.c, solib.c, exec.c, event-top.c: Ditto.
8612 * corelow.c, completer.c, cli/cli-setshow.c: Ditto.
8613 * cli/cli-dump.c, cli/cli-cmds.c: Ditto.
8614 * Makefile.in: Update all dependencies.
8615 (readline_tilde_h, readline_history_h): Define.
8616 (readline_headers): Delete.
8617
83277a99
MK
86182004-02-28 Mark Kettenis <kettenis@gnu.org>
8619
91ae4303
MK
8620 * config/djgpp/fnchange.lst: Rename "config/i386/nm-linux64.h" to
8621 "config/i386/nm-lx64.h" and "config/i386/tm-linux64.h" to
8622 "config/i386/tm-lx64.h".
8623
83277a99
MK
8624 * config/djgpp/fnchange.lst: Rename "amd64-linux-tdep.c" to
8625 "amd64-ltdep.c" and "amd64-linux-nat.c" to "amd64-lnat.c". Remove
8626 rules for "x86-64-linux-tdep.c" and "x86-64-linux-nat.c".
8627
6e1d7d6c
AC
86282004-02-28 Andrew Cagney <cagney@redhat.com>
8629
ecc9ac84
AC
8630 * dwarf2-frame.h (struct gdbarch): Add opaque declaration.
8631
6e1d7d6c
AC
8632 * breakpoint.c (_initialize_breakpoint): Use
8633 "add_setshow_auto_boolean_cmd. Better word-wrap help messages.
8634 Add help to show command.
8635
9671aeef
MK
86362004-02-28 Mark Kettenis <kettenis@gnu.org>
8637
7fa2737c
MK
8638 * i386-nat.c: Reformat to be closer to coding standards.
8639 (i386_handle_nonaligned_watchpoint): Rename local variable `rv' to
8640 `retval'. Make variables `align' and `size' local to while-loop.
8641 (i386_stopped_data_address): Rename local variable `ret' to `addr'.
8642 (_initialize_i386_nat): New prototype.
8643
9671aeef
MK
8644 * tui/tui.c: Include <readline/readline.h> instead of
8645 "readline/readline.h". Include it after <term.h> and
8646 "gdb_curses.h".
8647
fca7aa43
AC
86482004-02-27 Andrew Cagney <cagney@redhat.com>
8649
412275d5
AC
8650 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always use
8651 the new frame unwind code.
8652 (hppa_frame_cache): Use PCOQ_HEAD_REGNUM instead of PC_REGNUM.
8653 (hppa_frame_prev_register): Compute PCOQ_TAIL_REGNUM from
8654 PCOQ_HEAD_REGNUM.
8655
fca7aa43
AC
8656 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always
8657 "return_value" and "push_dummy_call".
8658 (hppa32_use_struct_convention): Delete unused function.
8659 (hppa32_store_return_value): Delete unused function.
8660 (hppa32_extract_return_value): Delete unused function.
8661 (hppa32_stack_align): Delete function.
8662
e6a8a7d2
EZ
86632004-02-27 Eli Zaretskii <eliz@elta.co.il>
8664
8665 * coffread.c (enter_linenos): Don't let rawptr reference memory
8666 outside linetab[]'s limits.
8667
1797a8f6
AC
86682004-02-27 Andrew Cagney <cagney@redhat.com>
8669
8670 * hppa-tdep.c (hppa32_push_dummy_call): Fix code reserving
8671 inferior stack space - the stack needs to grow upwards.
8672 (hppa32_frame_align): New function.
8673 (hppa64_frame_align): Replace hppa_frame_align.
8674 (hppa_gdbarch_init): Update.
8675
2e4b5889
OF
86762004-02-26 Orjan Friberg <orjanf@axis.com>
8677
8678 * cris-tdep.c (frame_unwind.h, frame-base.h, trad-frame.h)
8679 (dwarf2-frame.h): Include.
8680 (enum cris_regnums): New enum CRIS_FP_REGNUM.
8681 Remove static variables related to ABI setting.
8682 (struct gdbarch_tdep): Remove cris_abi member.
8683 (struct frame_extra_info): Remove.
8684 (cris_unwind_cache, stack_item): New structs.
8685 (cris_frame_unwind, cris_frame_base): New variables.
8686 (push_stack_item, pop_stack_item)
8687 (cris_frame_unwind_cache, cris_frame_this_id)
8688 (cris_frame_prev_register, cris_unwind_dummy_id, cris_frame_align)
8689 (cris_push_dummy_code, cris_push_dummy_call, cris_frame_sniffer)
8690 (cris_frame_base_address, cris_scan_prologue, cris_unwind_pc)
8691 (cris_unwind_sp, cris_store_return_value, cris_extract_return_value)
8692 (cris_reg_struct_has_addr): New functions.
8693 (cris_examine, cris_frame_init_saved_regs, cris_frame_chain)
8718a420 8694 (cris_frame_saved_pc, cris_saved_pc_after_call,
2e4b5889
OF
8695 (cris_store_struct_return, cris_frameless_function_invocation)
8696 (cris_pop_frame, cris_skip_prologue_main)
8697 (cris_abi_original_store_return_value)
8698 (cris_abi_v2_store_return_value)
8699 (cris_abi_original_extract_return_value)
8700 (cris_abi_v2_extract_return_value)
8701 (cris_abi_original_reg_struct_has_addr)
8702 (cris_abi_v2_reg_struct_has_addr)
8703 (cris_abi_original_push_arguments, cris_abi_v2_push_arguments)
8704 (cris_push_return_address, cris_abi_update): Remove.
8705 (_initialize_cris_tdep): Remove ABI command.
8706 (cris_dump_tdep): Ditto.
8718a420 8707 (cris_gdbarch_init): Remove ABI command.
2e4b5889
OF
8708 Set store_return_value, extract_return_value, push_dummy_code,
8709 push_dummy_call, frame_align, unwind_pc, unwind_sp, unwind_dummy_id,
8710 frame_unwind_append_sniffer, frame_base_set_default.
8711 Clear deprecated init_frame_pc, push_arguments, store_return_value,
8712 extract_return_value, fp_regnum, pc_in_call_dummy, call_dummy_words,
8713 sizeof_call_dummy_words, get_saved_register, push_return_address,
8718a420 8714 pop_frame, store_struct_return, frame_init_saved_regs,
2e4b5889
OF
8715 init_extra_frame_info, frameless_function_invocation, frame_chain,
8716 frame_saved_pc, saved_pc_after_call, save_dummy_frame_tos,
8717 dummy_write_sp.
8718a420 8718
6b9acc27
JJ
87192004-02-26 Jeff Johnston <jjohnstn@redhat.com>
8720
8721 * valprint.h (print_hex_chars, print_char_chars): New prototypes.
8722 * valprint.c (print_hex_chars): Change from static to external.
8723 (print_char_chars): New function.
8724 * printcmd.c (print_scalar_formatted): For integer and enum types
8725 that are longer than LONGEST, perform processing via appropriate
8726 print_*_chars routines.
8727
a431654a
AC
87282004-02-26 Andrew Cagney <cagney@redhat.com>
8729
8730 * Makefile.in: Update dependencies.
8731 Changes from Ulrich Weigand,
8732 * s390-tdep.c: Include "dwarf2-frame.h".
8733 (s390_dwarf2_frame_init_reg): New function.
8734 (s390_gdbarch_init): Install dwarf2_frame_sniffer and
8735 dwarf2_frame_base_sniffer. Call dwarf2_frame_set_init_reg.
8736
fa8d40ab
JJ
87372004-02-26 Jeff Johnston <jjohnstn@redhat.com>
8738
8739 * breakpoint.c (pending_break_support): New setting variable.
8740 (break_command_1): Account for pending_break_support setting
8741 when creating pending breakpoints.
8742 (set_breakpoint_cmd, show_breakpoint_cmd): New functions.
8743 (_initialize_breakpoint): Add "set breakpoint pending" and
8744 "show breakpoint pending" commands.
8745
0dcd613f
AC
87462004-02-26 Andrew Cagney <cagney@redhat.com>
8747
8748 Fix PR i18n/1570.
8749 * charset.c (backslashable, backslashed, represented): Remove 'e'
8750 from list of escaped characters, not part of ISO-C.
8751
479272a3
JB
87522004-02-25 J. Brobecker <brobecker@gnat.com>
8753
8754 From Peter Schauer <schauer@pdf.de>:
8755 * tui/tui.c: Move system header includes after local includes.
8756 Fixes a build failure on solaris systems.
8757
7613d933
JB
87582004-02-25 J. Brobecker <brobecker@gnat.com>
8759
8760 * configure.in: Refine the previous change.
8761 * configure: Regenerate.
8762
9c1488cb
MK
87632004-02-25 Mark Kettenis <kettenis@gnu.org>
8764
8765 * amd64-tdep.h: Renamed from x86-64-tdep.h.
8766 * amd64-tdep.c: Renamed from x86-64-tdep.c. Include
8767 "amd64-tdep.h" instead of "x86-64-tdep.h".
8768 * amd64-nat.c: Include "amd64-tdep.h" instead of "x86-64-tdep.h".
8769 * amd64-linux-tdep.h: Renamed from x86-64-linux.h.
8770 * amd64-linux-tdep.c: Renamed from x86-64-linux-tdep.c. Include
8771 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
8772 and "x86-64-tdep.c".
8773 * amd64-linux-nat.c: Renamed from x86-64-linux-nat.c. Include
8774 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
8775 and "x86-64-tdep.c".
8776 * amd64bsd-nat.c: Update copyright year.
8777 Include "amd64-tdep.h" instead of "x86-64-tdep.h".
8778 * amd64fbsd-tdep.c: Include "amd64-tdep.h" instead of
8779 "x86-64-tdep.h".
8780 * amd64fbsd-nat.c: Include "amd64-tdep.h" instead of
8781 "x86-64-tdep.h".
8782 * amd64nbsd-tdep.c: Include "amd64-tdep.h" instead of
8783 "x86-64-tdep.h".
8784 * amd64nbsd-nat.c: Include "amd64-tdep.h" instead of
8785 "x86-64-tdep.h".
8786 * amd64obsd-tdep.c: Include "amd64-tdep.h" instead of
8787 "x86-64-tdep.h".
8788 * amd64obsd-nat.c: Include "amd64-tdep.h" instead of
8789 "x86-64-tdep.h".
8718a420 8790 * configure.host: (x86_64-*-linux*): Set gdb_target to linux64.
9c1488cb
MK
8791 * configure.tgt (x86_64-*-linux*): Set gdb_target to linux64.
8792 * Makefile.in (amd64_linux_tdep_h): Renamed from
8793 x86_64_linux_tdep_h.
8794 (amd64_tdep_h): Renamed from x86_64_tdep_h.
8795 (amd64bsd-nat.o, amd64fbsd-nat.o, amd64fbsd-tdep.o, amd64-nat.o)
8796 (amd64nbsd-nat.o, amd64nbsd-tdep.o, amd64obsd-nat.o)
8797 (amd64obsd-tdep.o): Update dependencies.
8798 (amd64-tdep.o, amd64-linux-nat.o, amd64-linux-tdep.o): New
8799 dependencies.
8800 (x86-64-linux-nat.o, x86-64-linux-tdep.o, x86-64-tdep.o): Remove
8801 dependencies.
8802 (ALLDEPFILES): Add amd64-tdep.c, amd64obsd-nat.c, amd64obsd-nat.c,
8803 amd64-linux-nat.c amd64-linux-tdep.c.
8804 * config/i386/tm-linux64.h: Renamed from tm-x86-64linux.h
8805 * config/i386/nm-linux64.h: Renamed from nm-x86-64linux.h.
8806 * config/i386/linux64.mt: Renamed from x86-64linux.mt.
8807 (TDEPFILES): Replace x86-64-tdep.o and x86-64-linux-tdep.o with
8808 amd64-tdep.o and amd64-linux-tdep.o.
8809 (TM_FILE): Set to tm-linux64.h.
8810 * config/i386/linux64.mh: Renamed from x86-64linux.mh.
8811 (NAT_FILE): Set to nm-linux64.h.
8812 (NATDEPFILES): Replace x86-64-linux-nat.o with amd64-linux-nat.o.
8813 * config/i386/fbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
8814 amd64-tdep.o.
8815 * config/i386/nbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
8816 amd64-tdep.o.
8817 * config/i386/obsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
8818 amd64-tdep.o.
8819
4b8dad4a
RM
88202004-02-25 Roland McGrath <roland@redhat.com>
8821
8822 * remote.c (remote_protocol_qPart_auxv): New variable.
8823 (init_all_packet_configs): Initialize it.
8824 (set_remote_protocol_qPart_auxv_packet_cmd): New function.
8825 (show_remote_protocol_qPart_auxv_packet_cmd): New function.
8826 (show_remote_cmd): Call it.
8827 (_initialize_remote): Initialize commands.
8828 (remote_xfer_partial): If enabled, use qPart:auxv:read:... query to
8829 service TARGET_OBJECT_AUXV requests.
8830
66745969
JB
88312004-02-25 J. Brobecker <brobecker@gnat.com>
8832
8833 * configure.in: Make sure that the wborder function is available.
8834 Otherwise, search for it in the cur_colr library.
8835 * configure: Regenerate.
8836
79508e1e
AC
88372004-02-25 Andrew Cagney <cagney@redhat.com>
8838
8839 * hppa-tdep.c (hppa32_push_dummy_call): Rewrite.
8840
571ee600
MK
88412004-02-25 Mark Kettenis <kettenis@gnu.org>
8842
8843 * config/i386/tm-x86-64linux.h: Tweak comments.
8844
2b1b322f 88452004-02-25 Richard Sandiford <rsandifo@redhat.com>
ad74788f
RS
8846
8847 * MAINTAINERS: Add self to write-after-approval list.
8848
4d2acc65
AC
88492004-02-25 Andrew Cagney <cagney@redhat.com>
8850
4b8dad4a 8851 PR cli/1566. Problem found, and fix suggested by David Allan.
4d2acc65
AC
8852 * cli/cli-script.c (execute_control_command): Unconditionally
8853 install a cleanup. Default "ret" to "invalid_control". Use
8854 "break" instead of "return" to escape from the switch.
8855
4cfcaf21
JB
88562004-02-24 J. Brobecker <brobecker@gnat.com>
8857
8858 * tui/tui-disasm.c: %s/lines/asm_lines/g to avoid a collision
8859 with the lines macro defined in term.h on AiX.
8860 * tui/tui-regs.c: %s/label_width/tui_label_width/g, to avoid
8861 a collision with the label_width macro defined in term.h on AiX.
8862
54a5c8d8
KB
88632004-02-23 David Mosberger <davidm@hpl.hp.com>
8864
8865 Committed by Kevin Buettner <kevinb@redhat.com>.
8866
8867 * ia64-tdep.h (ia64_write_pc, ia64_linux_write_pc): Declare.
8868 * ia64-tdep.c (ia64_write_pc): Make it a global function.
8869 (ia64_gdbarch_init): For Linux targets, use ia64_linux_write_pc()
8870 instead of ia64_write_pc().
8871 * ia64-linux-tdep.c (regcache.h): Include.
8872 (ia64_linux_write_pc): New function.
4b8dad4a 8873
8a1dac83
RM
88742004-02-23 Roland McGrath <roland@redhat.com>
8875
8876 * auxv.c (info_auxv_command): Fix typos in error messages.
8877
90f90721
MK
88782004-02-23 Mark Kettenis <kettenis@gnu.org>
8879
8a1dac83 8880 * x86-64-tdep.h: Tweak comment.
90f90721
MK
8881 (enum amd64_regnum): New.
8882 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM)
8883 (X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM)
8884 (X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM)
8885 (X86_64_XMM1_REGNUM): Removed.
8886 (AMD64_NUM_GREGS): Renamed from X86_64_NUM_GREGS.
8887 (amd64_init_abi, amd64_supply_fxsave, amd64_fill_fxsave): Adjust
8888 prototypes for renamed functions.
8889 * x86-64-tdep.c: Fix typo.
8890 (amd64_dwarf_regmap): Use constants from `enum amd64_regnum' for
8891 register numbers.
8892 (amd64_return_value, amd64_push_arguments, amd64_push_dummy_call):
8893 Use constants from `enum amd64_regnum' for register numbers.
8894 (AMD64_NUM_SAVED_REGS): Adjust for renamed macros.
8895 (amd64_analyze_prologue, amd64_frame_cache,
8896 amd64_sigtramp_frame_cache): Use constants from `enum
8897 amd64_regnum' for register numbers.
8898 (amd64_supply_fpregset): Adjust for renamed functions.
8899 (amd64_init_abi): Rename from x86_64_init_abi. Use constants from
8900 `enum amd64_regnum' for register numbers.
8901 (I387_ST0_REGNUM): Use constant from `enum amd64_regnum'.
8902 (amd64_supply_fxsave): Rename from x86_64_supply_fxsave.
8903 (amd64_fill_fxsave): Rename fro x86_64_fill_fxsave.
8904 * x86-64-linux-tdep.c (amd64_linux_supply_gregset)
8905 (amd64_linux_fill_gregset): Adjust for renamed macros.
8906 (fetch_core_registers): Adjust for renamed functions.
8907 (amd64_linux_init_abi): Adjust for renamed functions.
8908 * x86-64-linux-nat.c (supply_gregset, fill_gregset): Adjust for
8909 renamed functions.
8910 * amd64-nat.c: Adjust for renamed macros.
8911 * amd64bsd-nat.c (fetch_inferior_registers)
8912 (store_inferior_registers): Use constants from `enum amd64_regnum'
8913 for register numbers. Adjust for renamed variables.
8914 * amd64fbsd-nat.c (supply_gregset, fill_gregset): Adjust for
8915 renamed variables.
8916 (_initialize_amd64fbsd_nat): Use constants from `enum
8917 amd64_regnum' for register numbers.
8918 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use constants from
8919 `enum amd64_regnum' for register numbers.
8920 (amd64fbsd_init_abi): Adjust for renamed functions.
8921 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Use constants from
8922 `enum amd64_regnum' for register numbers.
8923 (amd64nbsd_init_abi): Adjust for renamed functions.
8924 (_initialize_amd64nbsd_ndep): Adjust for renamed macros.
8925 * amd64obsd-tdep.c (amd64obsd_sigcontext_addr): Use constants from
8926 `enum amd64_regnum' for register numbers.
8927 (amd64obsd_init_abi): Adjust for renamed functions.
8928 (_initialize_amd64obsd_ndep): Adjust for renamed macros.
8929
d5479188
JJ
89302004-02-23 Jeff Johnston <jjohnstn@redhat.com>
8931
8932 * breakpoint.c (print_one_breakpoint): Do not output spaces
8933 after printing <PENDING> for a pending breakpoint.
8934
81cb7cc9
JJ
89352004-02-23 Jeff Johnston <jjohnstn@redhat.com>
8936
8937 * printcmd.c (print_scalar_formatted): Initialize val_long
8938 to remove compiler warning message.
8939
cbdeadca
JJ
89402004-02-23 Jeff Johnston <jjohnstn@redhat.com>
8941
8942 * defs.h (nquery, yquery): New prototypes.
8943 * breakpoint.c (break_command_1): Use new nquery interface.
8944 * utils.c (defaulted_query, nquery, yquery): New functions.
8945
da6bab63
AC
89462004-02-23 Andrew Cagney <cagney@redhat.com>
8947
2f690297
AC
8948 * hppa-tdep.c (hppa_frame_align): New function.
8949 (hppa32_push_dummy_call): New function.
8950 (hppa64_push_dummy_call): New function.
8951 (hppa_gdbarch_init): Set frame_align and push_dummy_call; keep
8952 disabled.
8a1dac83 8953
da6bab63
AC
8954 * infcall.c (legacy_push_dummy_code): Don't call deprecated
8955 FIX_CALL_DUMMY when push_dummy_call is available.
8956 (call_function_by_hand, push_dummy_code): Ditto.
8957
abf9b42d
AC
89582004-02-22 Andrew Cagney <cagney@redhat.com>
8959
8960 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Delete macro.
8961 (DEPRECATED_PC_IN_CALL_DUMMY): Delete macro.
8962 (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete macro.
8963 * hppa-tdep.c (hppa_gdbarch_init): Clear deprecated
8964 use_generic_dummy_frames, set deprecated pc_in_call_dummy, set
8965 call_dummy_location to ON_STACK.
8966
10fc94a4
MK
89672004-02-22 Mark Kettenis <kettenis@gnu.org>
8968
51433e4b
MK
8969 * x86-64-linux-tdep.c: Tweak comment.
8970 (amd64_linux_supply_gregset): Renamed from
8971 x86_64_linux_supply_gresget.
8972 (amd64_linux_fill_gregset): Renamed from
8973 x86_64_linux_fill_gregset.
8974 (fetch_core_registers): Adjust for renamed functions.
8975 (amd64_core_fns): Renamed from x86_64_core_fns.
8976 (amd64_linux_sigtramp_start): Renamed from
8977 x86_64_linux_sigtramp_start.
8978 (amd64_linux_pc_in_sigtramp): Renamed from
8979 x86_64_linux_pc_in_sigtramp. Adjust for renamed functions.
8980 (AMD64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Renamed from
8981 X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET.
8982 (amd64_linux_sigcontext_addr): Renamed from
8983 x86_64_linux_sigcontext_addr.
8984 (amd64_linux_sc_reg_offset): Renamed from
8985 x86_64_linux_sc_reg_offset.
8986 (amd64_linux_init_abi): Renamed from x86_64_linux_init_abi.
8987 Adjust for renamed functions and variables.
8988 (_initialize_amd64_linux_tdep): Renamed from
8989 _initialize_x86_64_linux_tdep. Adjust for renamed functions and
8990 variables.
8991 * x86-64-linux-tdep.h: Update copyright year. Tweak comment.
8992 Adjust for renamed functions.
8993
430eaf2e
MK
8994 * x86-64-linux-nat.c (amd64_linux_gregset64_reg_offset): Rename
8995 from x86_64_linux_gregset64_reg_offset.
8996 (amd64_linux_gregset32_reg_offset): Rename from
8997 x86_64_linux_gregset64_reg_offset.
8998 (amd64_linux_dr_get): Renamed from x86_64_linux_dr_get.
8999 (amd64_linux_dr_set): Renamed from x86_64_linux_dr_set.
9000 (amd64_linux_dr_set_control): Renamed from
9001 x86_64_linux_dr_set_control. Adjust for renamed functions.
9002 (amd64_linux_dr_set_addr): Renamed from x86_64_linux_dr_set_addr.
9003 Adjust for renamed functions.
9004 (amd64_linux_dr_reset_addr): Renamed from
9005 x86_64_linux_dr_reset_addr. Adjust for renamed functions.
9006 (amd64_linux_dr_get_status): Renamed from
9007 x86_64_linux_dr_get_status. Adjust for renamed functions.
9008 (_initialize_amd64_linux_nat): Renamed from
9009 _initialize_x86_64_linux_nat. Adjust for renamed variables and
9010 functions.
9011 * config/i386/nm-x86-64linux.h: Update copyright year.
9012 Adjust for renamed functions.
9013
10fc94a4
MK
9014 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_start_addr): Renamed from
9015 amd64fbsd_sigtramp_start.
9016 (amd64fbsd_sigtramp_end_addr): Renamed from
9017 amd64fbsd_sigtramp_end.
9018 (amd64fbsd_init_abi): Adjust for renamed variables.
9019 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Adjust for renamed
9020 variables.
9021 * x86-64-tdep.h (amd64fbsd_sigtramp_start_addr): Renamed from
9022 amd64fbsd_sigtramp_start.
9023 (amd64fbsd_sigtramp_end_addr): Renamed from
9024 amd64fbsd_sigtramp_end.
9025
343af405
AC
90262004-02-22 Andrew Cagney <cagney@redhat.com>
9027
537987fc
AC
9028 * hppa-tdep.c (hppa32_return_value): New function.
9029 (hppa64_return_value): New function.
9030 (hppa_gdbarch_init): Set return_value; keep disabled.
9031
fad850b2
AC
9032 * hppa-tdep.c (hppa_gdbarch_init): Re-order separating
9033 struct-return and inferior function call methods.
9034
26d08f08
AC
9035 * hppa-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
9036 "frame-base.h".
9037 (struct hppa_frame_cache): Define.
9038 (hppa_frame_cache, hppa_frame_this_id): New functions.
9039 (hppa_frame_prev_register): New function.
9040 (hppa_frame_unwind, hppa_frame_base): New variables.
9041 (hppa_frame_unwind_sniffer): New function.
9042 (hppa_frame_base_address, hppa_unwind_pc): New function.
9043 (hppa_gdbarch_init): Set unwind_dummy_id, unwind_pc, frame unwind
9044 sniffer, and frame base sniffer; keep disabled.
9045 (hppa_frame_base_sniffer, hppa_unwind_dummy_id): New functions.
9046 * Makefile.in: Update dependencies, fix s/nbsd/obsd/ typo.
9047
e7d7bd65
AC
9048 * frame-unwind.c (frame_unwind_find_by_frame): Add legacy_frame_p
9049 to predicates for "seriously old code".
9050
e963316f
AC
9051 * hppa-tdep.c (hppa_gdbarch_init): Convert compile time #if0s into
9052 runtime if(0).
9053
56132691
AC
9054 * hppa-tdep.c (hppa_breakpoint_from_pc): Make "breakpoint"
9055 unsigned.
9056 (hppa_frame_find_saved_regs): Fix "std" instruction pattern
e963316f 9057
343af405
AC
9058 * config/pa/tm-hppa.h: Update copyright.
9059 (DEPRECATED_INIT_FRAME_PC): Delete macro.
9060 (deprecated_init_frame_pc_default): Delete declaration.
9061 (hppa_frame_init_saved_regs): Delete declaration.
9062 (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
9063 * hppa-tdep.c: Include "arch-utils.h".
9064 (hppa_gdbarch_init): Set deprecated init_frame_pc
9065 and deprecated frame_init_saved_regs.
9066 (hppa_frame_init_saved_regs): Make static.
9067
f5859b4d
MK
90682004-02-22 Mark Kettenis <kettenis@gnu.org>
9069
86f6f8e7 9070 Remove old 386BSD support.
cf7c5c23 9071 * NEWS (REMOVED configurations and files): Add i[3456]86-*-bsd*.
86f6f8e7
MK
9072 * configure.host: Remove i[34567]86-*-bsd*.
9073 * configure.tgt: Remove i[34567]86-*-bsd*.
9074 * i386b-nat.c: Removed.
9075 * Makefile.in (ALLDEPFILES): Remove i386b-nat.c.
cf7c5c23
MK
9076 (i386b-nat.o): Remove dependencies.
9077
86f6f8e7
MK
9078 * config/i386/i386bsd.mh: Removed.
9079 * config/i386/i386bsd.mt: Removed.
9080 * config/i386/nm-i386bsd.h: Removed.
9081 * config/i386/tm-i386bsd.h: Removed.
9082 * config/i386/xm-i386bsd.h: Removed.
9083
971218cd
MK
9084 * x86-64-tdep.h (amd64obsd_r_reg_offset): New extern declaration.
9085
7e654c37
MK
9086 * amd64fbsd-tdep.c: Include "solib-svr4.h".
9087 (amd64fbsd_init_abi): Set link map offsets.
9088 * amd64nbsd-tdep.c: Include "slib-svr4.h".
9089 (amd64nbsd_init_abi): Set link map offsets.
9090 * amd64obsd-tdep.c: Include "solib-svr4.h".
9091 (amd64obsd_init_abi): Set link map offsets.
9092 * i386fbsd-tdep.c: Include "solib-svr4.h".
9093 (i386fbsd_init_abi): Set link map offsets.
9094 * i386nbsd-tdep.c: Include "solib-svr4.h".
9095 (i386nbsdelf_init_abi): Set link map offsets.
9096 * Makefile.in (amd64fbsd-tdep.o, amd64nbsd-tdep.o)
9097 (amd64obsd-tdep.o, i386fbsd-tdep.o): Update dependencies.
9098 * config/i386/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o,
9099 solib-legacy.o and core-aout.o. Reformat.
9100 * config/i386/fbsd64.mh (NATDEPFILES): Remove solib.o,
9101 solib-svr4.o, solib-legacy.o. Reformat.
9102 * config/i386/nbsdaout.mh (NATDEPFILES): Add solib.o. Reformat.
9103 * config/i386/nbsdelf.mh: Reformat.
9104 * config/i386/nbsd64.mh (NATDEPFILES): Remove solib.o,
9105 solib-svr4.o, solib-legacy.o and corelow.o.
9106 * config/i386/obsd.mh, config/i386/obsdaout.mh: Reformat.
9107 * config/i386/obsd64.mh (NATDEPFILES): Remove solib.o,
9108 solib-svr4.o, solib-legacy.o and corelow.o. Reformat.
9109 * config/i386/fbsd.mt (TDEPFILES): Add solib.o, solib-svr4.o.
9110 * config/i386/fbsd64.mt (TDEPFILES): Add solib.o, solib-svr4.o.
9111 (TM_FILE): Set to tm-fbsd.h.
9112 * config/i386/nbsd.mt (TDEPFILES): Reformat.
9113 * config/i386/nbsd64.mt (TDEPFILES): Add corelow.o, solib.o and
9114 solib-svr4.o.
9115 * config/i386/obsd.mt (TDEPFILES): Add corelow.o, solib.o and
9116 solib-svr4.o.
9117 (TM_FILE): Set to nm-nbsd.h.
9118 * config/i386/nm-fbsd.h: Update copyright year. Tweak comments.
9119 Simplify shared library support. Don't include "elf/common.h".
9120 (SVR4_SHARED_LIBS): Don't define.
9121 * config/i386/nm-fbsd64.h: Update copyright year. Don't include
9122 "solib.h".
9123 * config/i386/nm-nbsd.h, config/i386/nm-nbsdaout.h,
9124 config/i386/nm-obsd.h: Update copyright year. Tweak comments.
9125 * config/i386/tm-fbsd.h: Update copyright tear. Tweak comments.
9126 Don't include "i386/tm-i386.h". Include "solib.h".
9127 * config/i386/tm-nbsd.h: Update copyright year. Tweak comments.
9128 Don't include "i386/tm-i386.h".
9129 * config/i386/xm-i386.h: Update copyright year. Tweak comments.
9130 * config/i386/xm-nbsd.h: Update copyright year. Tweak comments.
9131 Include "i386/xm-i386.h".
9132 (HOST_LONG_DOUBLE_FORMAT): Remove.
9133
5d93ae8c
MK
9134 Fix OpenBSD/i386 sigtramp recognition.
9135 * i386-tdep.h: Update copyright year.
9136 (i386bsd_pc_in_sigtramp, i386bsd_sigtramp_start)
9137 (i386bsd_sigtramp_end): New prototypes.
9138 (i386fbsd_sigtramp_start_addr): Renamed from
9139 i386fbsd_sigtramp_start.
9140 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
9141 (i386obsd_sigtramp_start_addr): Renamed from
9142 i386obsd_sigtramp_start.
9143 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
9144 * i386bsd-tdep.c: Update copyright year.
9145 (i386bsd_pc_in_sigtramp): Make public.
9146 * i386fbsd-nat.c: Update copyright year.
9147 (_initialize_i386fbsd_nat): Adjust for renamed variables.
9148 * i386fbsd-tdep.c: Update copyright year.
9149 (i386fbsd_sigtramp_start_addr): Renamed from
9150 i386fbsd_sigtramp_start.
9151 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
9152 (i386fbsdaout_init_abi): Adjust for renamed variables.
9153 * i386obsd-nat.c: Update copyright year.
9154 (_initialize_i386obsd_nat): Adjust for renamed variables.
9155 * i386obsd-tdep.c: Include "target.h".
9156 (i386obsd_page_size): New variable.
9157 (i386obsd_pc_in_sigtramp, i386obsd_sigtramp_start)
9158 (i386obsd_sigtramp_end): New functions.
9159 (i386obsd_sigtramp_start_addr): Renamed from
9160 i386obsd_sigtramp_start.
9161 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
9162 (i386obsd_init_abi): Adjust for renamed variables. Set
9163 pc_in_sigtramp, sigtramp_start and sigtramp_end.
9164 * Makefile.in (i386obsd-tdep.o): Update dependencies.
9165
84d04465
MK
9166 * amd64obsd-tdep.c (amd64obsd_pc_in_sigtramp): Adjust for signal
9167 trampoline change in OpenBSD kernel.
9168
b053aceb
MK
9169 * amd64-nat.c: Update copyright year.
9170 (amd64_supply_native_gregset, amd64_collect_native_gregset): Use
9171 architecture from REGCACHE.
9172
f5859b4d
MK
9173 * x86-64-linux-nat.c (x86_64_linux_gregset32_reg_offset): Use
9174 symbolic constants from <sys/reg.h> instead of hard-coded numbers.
9175
e4bbbda8
MK
91762004-02-21 Mark Kettenis <kettenis@gnu.org>
9177
ba361932
MK
9178 * configure.host: Add i[34567]86-*-openbsd[0-2].* and
9179 i[34567]86-*-openbsd3.[0-3].
9180 * config/i386/obsdaout.mh: New file.
9181
d3e48264
MK
9182 * config/i386/obsd.mh (MH_FLAGS): Remove.
9183
60a6eeb6
MK
9184 Fix PR build/1549.
9185 * i386obsd-tdep.c: Update copyright years. Include
9186 "solib-svr4.h".
9187 (i386obsd_init_abi): Don't set regset_from_core_section here.
9188 (i386obsd_aout_init_abi): New function. Set
9189 regset_from_core_section here.
9190 (i386obsd_elf_init_abi): New function.
9191 (_initialize_i386obsd_tdep): Register OS/ABI for OpenBSD ELF.
9192 * Makefile.in (i386obsd-tdep.o): Update dependecies.
9193 * config/i386/obsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
9194 (TM_FILE): Set to tm-nbsd.h.
9195
9196 * config/i386/obsd.mh (NATDEPFILES): Remove solib.o and
9197 solib-sunos.o.
9198
e4bbbda8
MK
9199 * solib-svr4.h: Update copyright year.
9200 (svr4_ilp32_fetch_link_map_offsets)
9201 (svr4_lp64_fetch_link_map_offsets): New prototype.
9202 * solib-svr4.c: Update copyright year.
9203 (svr4_ilp32_fetch_link_map_offsets)
9204 (svr4_lp64_fetch_link_map_offsets): New function.
9205
f6fe98ef
DJ
92062004-02-20 Daniel Jacobowitz <drow@mvista.com>
9207
9208 * dwarf2read.c (add_partial_symbol): Fix typo in adding enumerators
9209 to the partial symbol table.
9210
589ca796
JB
92112004-02-20 J. brobecker <brobecker@gnat.com>
9212
9213 * PROBLEMS: Add description of problem documented under gdb/1560.
9214
2031c21a
MK
92152004-02-20 Mark Kettenis <kettenis@gnu.org>
9216
30b344b1
MK
9217 * amd64obsd-tdep.c: Include "regset.h" and "i387-tdep.h". Fix
9218 comments.
9219 (amd64obsd_supply_regset, amd64obsd_regset_from_core_section): New
9220 functions.
9221 (amd64obsd_init_abi): Reorder initializations. Use
9222 amd64obsd_r_reg_offset to initialize the general-purpose register
9223 set details. Set regset_from_core_section.
9224 (_initialize_amd64obsd_tdep): Rename from
9225 _initialize_amd64obsd_ndep. Add OS ABI handler for core dumps.
9226 * Makefile.in (amd64obsd-tdep.o): Update dependencies.
9227 * config/i386/obsd64.mt (TDEPFILES): Add i386-tdep.o.
9228
2031c21a
MK
9229 * NEWS (New native configurations): Mention OpenBSD/alpha.
9230 * configure.tgt: Add alpha*-*-openbsd*.
9231 * configure.host: Add alpha*-*-openbsd*.
9232 * alphanbsd-tdep.c: Update copyright year.
9233 (_initialize_alphanbsd_tdep): Register OS ABI for OpenBSD ELF.
9234
42471775
AC
92352004-02-20 Andrew Cagney <cagney@redhat.com>
9236
9237 Fix PR tdep/1372.
9238 * configure.tgt: Delete target "none-*-*".
9239 * configure.host: Delete host "none-*-*".
9240 * config/none/none.mh: Delete file.
9241 * config/none/none.mt: Delete file.
9242 * config/none/xm-none.h: Delete file.
9243 * config/none/tm-none.h: Delete file.
9244 * config/none/nm-none.h: Delete file.
9245
960ccd7d
FF
92462004-02-19 Fred Fish <fnf@redhat.com>
9247
9248 * sh-tdep.c (sh_analyze_prologue): Eliminate useless test of
9249 cache->uses_fp prior to setting it.
9250
5f883edd
FF
92512004-02-19 Fred Fish <fnf@redhat.com>
9252
9253 Fix for PR breakpoint/1558.
9254 * sh-tdep.c (IS_JSR): New macro.
9255 (sh_analyze_prologue): Use IS_JSR to terminate prologue scan.
9256
f98c22d5
JB
92572004-02-19 Jim Blandy <jimb@redhat.com>
9258
9259 * findvar.c (value_from_register): Doc fix.
9260
95051d27
JJ
92612004-02-19 Jeff Johnston <jjohnstn@redhat.com>
9262
9263 * printcmd.c (print_scalar_formatted): Do not check for sizeof
9264 type being greater than sizeof of host's LONGEST. Always use
9265 unpack_long() unless format 'f' chosen.
9266
ccefbec3
EZ
92672004-02-19 Joel Brobecker <brobecker@gnat.com>
9268
9269 Committed by Elena Zannoni <ezannoni@redhat.com>
2ede629f 9270
ccefbec3
EZ
9271 * symtab.c (find_pc_sect_psymtab): Return the psymtab that
9272 contains a symbol wich is the best, non-exact match for the given
9273 pc. Update comments.
9274
92752004-02-19 Elena Zannoni <ezannoni@redhat.com>
8a1dac83 9276
2ede629f
EZ
9277 * event-top.c (async_request_quit): Remove uses of REQUEST_QUIT
9278 macro, which was part of the now removed Mach 3 port.
9279 * utils.c (request_quit): Ditto.
9280
567ee972
MK
92812004-02-18 Mark Kettenis <kettenis@gnu.org>
9282
9283 * config/djgpp/fnchange.lst: Rename "amd64obsd-tdep.c" and
9284 "amd64obsd-nat.c" to "a64ob-tdep.c" and "a64ob-nat.c".
9285
50cca7bb
MK
92862004-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9287
9288 Committed by Mark Kettenis <kettenis@gnu.org>.
9289
9290 * config/s390/nm-linux.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT):
9291 Define.
9292
226361c4
AC
92932004-02-18 Andrew Cagney <cagney@redhat.com>
9294
9295 * configure.in: Add a TUI target to CONFIG_ALL, CONFIG_CLEAN,
9296 CONFIG_INSTALL and CONFIG_UNINSTALL.
9297 * configure: Re-generate.
9298 * interps.h (INTERP_TUI): Define.
9299 * Makefile.in: Update dependencies.
9300 (TUI): New macro.
9301 (tui-main.o): Specify dependencies.
9302 (install-tui, uninstall-tui, clean-tui, all-tui): New rules.
9303 * tui/tui-main.c: New file.
9304
49cfa46f
MK
93052004-02-18 Mark Kettenis <kettenis@gnu.org>
9306
e2879ccb
MK
9307 * amd64obsd-tdep.c, amd64obsd-nat.c: New files.
9308 * Makefile.in (amd64obsd-nat.o, amd64obsd-tdep.o): New
9309 dependencies.
9310 * configure.host: Add x86_64-*-openbsd*.
9311 * configure.tgt: Add x86_64-*-openbsd*.
9312 * config/i386/obsd64.mt, config/i386/obsd64.mh: New files.
9313
c43f4bec
MK
9314 * tui/tui.c: Don't include <malloc.h>.
9315
09ae75b6
MK
9316 * Makefile.in (ALLDEPFILES): Add amd64-nat.c, amd64bsd-nat.c,
9317 amdfbsd-nat.c, amd64-fbsd-tdep.c, amd64nbsd-nat.c and
9318 amd64nbsd-tdep.c.
9319
49cfa46f 9320 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Make
8a1dac83 9321 static. Remove extraneous whitespace.
49cfa46f
MK
9322 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Make
9323 static.
9324
05957fdb
JB
93252004-02-17 Jim Blandy <jimb@redhat.com>
9326
9327 * findvar.c (value_from_register): Doc fix.
9328
d0f54f9d
JB
93292004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9330
9331 Committed by Jim Blandy <jimb@redhat.com>.
e1457d83 9332
8a1dac83 9333 * eval.c (evaluate_subexp_standard, case OP_OBJC_MSGCALL): Use
c253954e
JB
9334 CORE_ADDR as type for selectors. Correct types for GNU run time
9335 message lookup function to use double indirection.
9336 * objc-lang.c (lookup_child_selector): Use CORE_ADDR as return type.
9337 * objc-lang.h (lookup_child_selector): Adapt prototype.
9338
9cbd5950
JB
9339 * s390-nat.c (SUBOFF): New macro.
9340 (supply_gregset, fill_gregset): Use it to handle debugging
9341 of 32-bit exectuables running under a 64-bit kernel.
9342 * s390-tdep.c: Include "solib-svr4.h".
9343 (s390_svr4_fetch_link_map_offset): New function.
9344 (s390x_svr_fetch_link_map_offset): Likewise.
9345 (s390_gdbarch_init): Call set_solib_svr4_fetch_link_map_offsets.
9346 * Makefile.in (s390-tdep.o): Update dependencies.
9347
a8c99f38
JB
9348 * s390-tdep.c: Include "trad-frame.h", "frame-base.h", and
9349 "frame-unwind.h".
9350 (s390_readinstruction): Reformat. Use read_memory_nobpt.
9351 (GDB_TARGET_IS_ESAME, S390_GPR_SIZE, S390_FPR_SIZE): Remove.
9352 (S390_SYSCALL_OPCODE, S390_SYSCALL_SIZE): Remove.
9353 (S390_SIGCONTEXT_SREGS_OFFSET, S390X_SIGCONTEXT_SREGS_OFFSET,
9354 S390_SIGREGS_FP0_OFFSET, S390X_SIGREGS_FP0_OFFSET,
9355 S390_UC_MCONTEXT_OFFSET, S390X_UC_MCONTEXT_OFFSET,
8a1dac83 9356 S390_SIGNAL_FRAMESIZE,
a8c99f38
JB
9357 s390_NR_sigreturn, s390_NR_rt_sigreturn): Remove.
9358 (struct frame_extra_info): Remove.
9359 (s390_memset_extra_info): Remove.
f73b1eff
JB
9360 (op1_ag, op1_ay, op1_brasl, op1_brc, op1_brcl, op1_lay, op1_lg)
9361 (op1_lmy, op1_ly, op1_sg, op1_stmy, op1_sty, op1_sy, op_a)
9362 (op_agr, op_bas, op_bc, op_bcr, op_sgr, op_sr): New opcodes.
a8c99f38
JB
9363 (is_rse): Renamed to ...
9364 (is_rsy): ... this. Support long displacements.
9365 (is_rxe): Renamed to ...
9366 (is_rxy): ... this. Support long displacements.
9367 (compute_x_addr): Support long displacements.
9368 (struct s390_prologue_data): New data type.
9369 (s390_on_stack): Change API to use struct s390_prologue_data.
9370 (s390_store): Reimplement.
9371 (s390_load): New function.
9372 (s390_get_signal_frame_info): Remove.
9373 (s390_get_frame_info): Remove, replace by ...
9374 (s390_analyze_prolog): ... this new function.
9375 (s390_check_function_end): Remove.
9376 (s390_function_start): Remove.
9377 (s390_frameless_function_invokation): Remove.
9378 (s390_is_sigreturn): Remove.
9379 (s390_init_frame_pc_first): Remove.
9380 (s390_init_frame_extra_info): Remove.
9381 (s390_frame_init_saved_regs): Remove.
9382 (s390_frame_saved_pc_nofix): Remove.
9383 (s390_frame_saved_pc): Remove.
9384 (s390_frame_chain): Remove.
9385 (s390_fp_regnum, s390_read_fp): Remove.
9386 (s390_pop_frame_regular, s390_pop_frame): Remove.
9387 (s390_saved_pc_after_call): Remove.
9388 (s390_skip_prologue): Reimplement.
9389 (s390_in_function_epilogue_p): Support long displacements.
9390 (struct s390_unwind_cache): New data structure.
9391 (s390_frame_unwind_cache): New function.
9392 (s390_prologue_frame_unwind_cache): Likewise.
9393 (s390_backchain_frame_unwind_cache): Likewise.
9394 (s390_frame_this_id, s390_frame_prev_register): Likewise.
9395 (s390_frame_unwind): Define.
9396 (s390_frame_sniffer): New function.
9397 (struct s390_pltstub_unwind_cache): New data structure.
9398 (s390_pltstub_frame_unwind_cache): New function.
9399 (s390_pltstub_frame_this_id): Likewise.
9400 (s390_pltstub_frame_prev_register): Likewise.
9401 (s390_pltstub_frame_unwind): Define.
9402 (s390_pltstub_frame_sniffer): New function.
9403 (struct s390_sigtramp_unwind_cache): New data structure.
9404 (s390_sigtramp_frame_unwind_cache): New function.
9405 (s390_sigtramp_frame_this_id): Likewise.
9406 (s390_sigtramp_frame_prev_register): Likewise.
9407 (s390_sigtramp_frame_unwind): Define.
9408 (s390_sigtramp_frame_sniffer): New function.
9409 (s390_frame_base_address, s390_local_base_address): New functions.
9410 (s390_frame_base): Define.
9411 (s390_unwind_pc, s390_unwind_sp): New function.
9412 (s390_push_dummy_call): Use new frame base location.
9413 (s390_unwind_dummy_id): Likewise.
9414 (s390_gdbarch_init): Remove calls to:
9415 set_gdbarch_frameless_function_invocation,
9416 set_gdbarch_deprecated_init_frame_pc,
9417 set_gdbarch_deprecated_frame_chain,
9418 set_gdbarch_deprecated_frame_init_saved_regs,
9419 set_gdbarch_deprecated_pop_frame,
9420 set_gdbarch_deprecated_init_extra_frame_info,
9421 set_gdbarch_deprecated_init_frame_pc_first,
9422 set_gdbarch_deprecated_target_read_fp,
9423 set_gdbarch_deprecated_frame_saved_pc,
9424 set_gdbarch_deprecated_saved_pc_after_call,
9425 set_gdbarch_deprecated_fp_regnum.
9426 Add calls to:
9427 set_gdbarch_in_solib_call_trampoline,
9428 frame_unwind_append_sniffer,
9429 frame_base_set_default,
9430 set_gdbarch_unwind_pc,
9431 set_gdbarch_unwind_sp.
9432 * Makefile.in (s390-tdep.o): Update dependencies.
9433
b0cf273e
JB
9434 * s390-tdep.c (struct gdbarch_tdep): Add 'abi' member.
9435 (S390_STACK_FRAME_OVERHEAD): Remove.
9436 (S390_STACK_PARAMETER_ALIGNMENT): Remove.
9437 (S390_NUM_FP_PARAMETER_REGISTERS): Remove.
9438 (s390_promote_integer_argument): Remove.
9439 (s390_cannot_extract_struct_value_address): Remove.
9440 (s390_use_struct_convention, s390_store_struct_return): Remove.
9441 (s390_extract_return_value, s390_store_return_value): Remove.
9442 (s390_return_value_convention, s390_return_value): New functions.
9443 (is_float_singleton): Handle typedefs.
8a1dac83 9444 (is_double_or_float, is_double_arg, is_simple_arg, pass_by_copy_ref):
b0cf273e
JB
9445 Remove, replace by ...
9446 (s390_function_arg_pass_by_reference, s390_function_arg_float,
9447 s390_function_arg_integer): ... these new functions.
9448 (s390_push_arguments, s390_push_return_address): Remove, replace by ...
9449 (s390_push_dummy_call, s390_unwind_dummy_id): ... these new functions.
9450 (s390_gdbarch_init): Remove s390_call_dummy_words and elf_flags.
9451 Fill in tdep->abi.
9452 Remove calls to:
9453 set_gdbarch_deprecated_store_struct_return,
9454 set_gdbarch_deprecated_extract_return_value,
9455 set_gdbarch_deprecated_store_return_value,
9456 set_gdbarch_use_struct_convention,
9457 set_gdbarch_extract_struct_value_address,
9458 set_gdbarch_deprecated_pc_in_call_dummy,
9459 set_gdbarch_deprecated_push_arguments,
9460 set_gdbarch_deprecated_save_dummy_frame_tos,
9461 set_gdbarch_deprecated_push_return_address,
9462 set_gdbarch_deprecated_sizeof_call_dummy_words,
9463 set_gdbarch_deprecated_call_dummy_words,
9464 set_gdbarch_deprecated_dummy_write_sp.
9465 Add calls to:
9466 set_gdbarch_push_dummy_call,
9467 set_gdbarch_unwind_dummy_id,
9468 set_gdbarch_return_value.
8a1dac83 9469
e1457d83
JB
9470 * config/s390/nm-linux.h: Update comments.
9471 (target_insert_watchpoint, target_remove_watchpoint): Redefine.
9472 (STOPPED_BY_WATCHPOINT): Redefine.
9473 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Redefine to 1.
9474 (s390_insert_watchpoint, s390_remove_watchpoint): Update prototype.
9475 (s390_stopped_by_watchpoint): Likewise.
9476 (watch_area_cnt): Remove.
9477 * s390-nat.c: Update comments.
9478 (watch_area): Remove typedef.
9479 Global replace watch_area by struct watch_area.
9480 (watch_area_cnt, watch_lo_addr, watch_hi_addr): Remove.
8a1dac83 9481 (s390_stopped_by_watchpoint): Remove pid argument,
e1457d83
JB
9482 use s390_inferior_tid. Add short-cut for the no watchpoint case.
9483 (s390_fix_watch_points): Remove pid argument,
9484 use s390_inferior_tid. Recompute area spanned by watchpoints.
9485 (s390_insert_watchpoint, s390_remove_watchpoint): Remove pid
9486 argument. Reimplement.
9487
d0f54f9d
JB
9488 * config/s390/nm-linux.h: Update comments. Do not include "solib.h".
9489 (KERNEL_U_ADDR, REGISTER_U_ADDR, U_REGS_OFFSET): Remove.
9490 (FETCH_INFERIOR_REGISTERS): Define.
8a1dac83 9491 * config/s390/s390.mh (NATDEPFILES): Remove core-aout.o and
d0f54f9d
JB
9492 core-regset.o.
9493 * config/s390/s390x.mt: Remove.
9494 * config/s390/tm-s390.h: Remove.
9495 * config/s390/tm-linux.h: Do not include "s390/tm-s390.h".
9496 (TARGET_ELF64): Remove.
9497 (SKIP_TRAMPOLINE_CODE): Do not undefine.
9498 * configure.tgt [s390-*-*, s390x-*-*]: Merge into single
9499 s390*-*-* case; always set gdb_target to s390.
9500 * regformats/reg-s390.dat: Remove control registers.
9501 * regformats/reg-s390x.dat: Likewise.
9502 * s390-tdep.h: New file.
8a1dac83 9503 * s390-nat.c: Do not include <asm/processor.h> or <value.h>.
d0f54f9d
JB
9504 Include "inferior.h" and "s390-tdep.h".
9505 Remove private definition of offsetof.
9506 (s390_register_u_addr): Remove.
9507 (regmap_gregset, regmap_fpregset): Define.
9508 (supply_gregset, fill_gregset): Reimplement.
9509 (supply_fpregset, fill_fpregset): Likewise.
9510 (s390_inferior_tid): New function.
9511 (fetch_regs, store_regs, fetch_fpregs, store_fpregs): Likewise.
9512 (fetch_inferior_registers, store_inferior_registers): Likewise.
9513 * s390-tdep.c: Do not define S390_TDEP. Include "defs.h" instead
9514 of <defs.h>. Include "reggroups.h", "regset.h", and "s390-tdep.h".
9515 Global replace of S390_GP0_REGNUM by S390_R0_REGNUM.
9516 Global replace of S390_FP0_REGNUM by S390_F0_REGNUM.
9517 (struct gdbarch_tdep): Define.
9518 (struct s390_register_info): Define.
9519 (s390_register_info): New variable.
9520 (s390_register_name): Reimplement.
9521 (s390_register_type): New function.
9522 (s390_register_raw_size, s390x_register_raw_size): Remove.
9523 (s390_cannot_fetch_register): Remove.
9524 (s390_register_byte): Remove.
9525 (s390_register_virtual_type, s390x_register_virtual_type): Remove.
9526 (s390_dwarf_regmap): New variable.
9527 (s390_dwarf_reg_to_regnum): New function.
9528 (s390_stab_reg_to_regnum): Remove.
9529 (s390_pseudo_register_read, s390_pseudo_register_write): New functions.
9530 (s390x_pseudo_register_read, s390x_pseudo_register_write): Likewise.
9531 (s390_convert_register_p): Likewise.
9532 (s390_register_to_value, s390_value_to_register): Likewise.
9533 (s390_register_reggroup_p): Likewise.
9534 (s390_regmap_gregset, s390x_regmap_gregset, s390_regmap_fpregset,
9535 s390_gregset, s390x_gregset, s390_fpregset): New variables.
9536 (s390_supply_regset, s390_regset_from_core_section): New functions.
9537 (GDB_TARGET_IS_ESAME): Move here from tm-s390.h.
9538 (S390_FPR_SIZE): Likewise.
9539 (S390_GPR_SIZE): Likewise. Redefine in terms of GDB_TARGET_IS_ESAME.
9540 Global replace of DEPRECATED_REGISTER_SIZE by S390_GPR_SIZE.
9541 (S390_NUM_GPRS): Move here from tm-s390.h.
9542 (S390_NUM_FPRS): Likewise.
9543 (s390_in_function_epilogue_p): New function.
9544 (s390_is_sigreturn): Replace S390_PSW_ADDR_SIZE by S390_GPR_SIZE.
9545 Replace S390_PC_REGNUM by S390_PSWA_REGNUM.
9546 (s390_gdbarch_init): Allocate and set up gdbarch_tdep structure.
9547 Replace s390_stab_reg_to_regnum by s390_dwarf_reg_to_regnum.
9548 Replace S390_FP_REGNUM by S390_SP_REGNUM.
9549 Remove calls to:
9550 set_gdbarch_deprecated_max_register_raw_size,
8a1dac83
RM
9551 set_gdbarch_deprecated_max_register_virtual_size,
9552 set_gdbarch_deprecated_register_byte,
d0f54f9d 9553 set_gdbarch_cannot_fetch_register,
8a1dac83 9554 set_gdbarch_cannot_store_register,
d0f54f9d
JB
9555 set_gdbarch_deprecated_register_size,
9556 set_gdbarch_deprecated_register_raw_size,
9557 set_gdbarch_deprecated_register_virtual_size,
9558 set_gdbarch_deprecated_register_virtual_type,
9559 set_gdbarch_deprecated_register_bytes.
9560 Add calls to:
9561 set_gdbarch_num_pseudo_regs,
9562 set_gdbarch_register_type,
9563 set_gdbarch_convert_register_p,
9564 set_gdbarch_register_to_value,
9565 set_gdbarch_value_to_register,
9566 set_gdbarch_register_reggroup_p,
9567 set_gdbarch_regset_from_core_section,
9568 set_gdbarch_pseudo_register_read,
9569 set_gdbarch_pseudo_register_write,
9570 set_gdbarch_in_function_epilogue_p.
9571 * Makefile.in (s390-nat.o, s390-tdep.o): Update dependencies.
9572 (s390_tdep_h): New variable.
9573
8cfe231d
JB
95742004-02-17 Jim Blandy <jimb@redhat.com>
9575
4589a601
JB
9576 * findvar.c (value_from_register): If the type has no length, just
9577 return an acceptable value --- don't report an internal error.
9578
8cfe231d
JB
9579 * stabsread.c (read_type): If we find any type numbers that are
9580 forward references, complain if the references aren't resolved by
9581 the time we're finished reading.
9582 (cleanup_undefined_types): Make error message more appropriate for
9583 a complaint.
9584
5bf0017e
EZ
95852004-02-17 Elena Zannoni <ezannoni@redhat.com>
9586
9d62932d
EZ
9587 * Makefile.in (defs_h): Remove dependency on progress_h.
9588 * defs.h (QUIT): Remove use of PROGRESS macro. Remove include of
9589 progress.h.
9590 * main.c (captured_main): Delete use of START_PROGRESS and
9591 END_PROGRESS.
9592
95932004-02-17 Elena Zannoni <ezannoni@redhat.com>
8a1dac83 9594
5bf0017e
EZ
9595 * objfiles.c (terminate_minimal_symbol_table): Add back
9596 initialization of MSYMBOL_TYPE.
9597
9fc9f5e2
AC
95982004-02-17 David Mosberger <davidm@hpl.hp.com>
9599
9600 Committed by Andrew Cagney.
9601 * Makefile.in (ia64_tdep_h): New macro.
9602 (ia64-linux-tdep.o): Mention $(ia64_tdep_h).
9603 (ia64-tdep.o): Likewise.
9604 * ia64-tdep.h: New file.
9605 * ia64-tdep.c: Update copyright notice. Include "ia64-tdep.h".
9606 (ia64_linux_sigcontext_register_address): Move decl to ia64-tdep.h.
9607 (ia64_aix_sigcontext_register_address): Likewise.
9608 (ia64_linux_getunwind_table): Delete declaration.
9609 * ia64-linux-tdep.c: Likewise.
9610
76cd2bd9
CV
96112004-02-17 Corinna Vinschen <vinschen@redhat.com>
9612
9613 * sh-tdep.c (sh_dsp_register_sim_regno): Use DSP_Rx_BANK_REGNUM.
9614 * sh-tdep.h: Rename R0_BANK_REGNUM and R7_BANK_REGNUM to
9615 DSP_R0_BANK_REGNUM and DSP_R7_BANK_REGNUM.
9616
634aa483
AC
96172004-02-17 Andrew Cagney <cagney@redhat.com>
9618
9619 * symtab.c (skip_prologue_using_sal): New function.
9620 * symtab.h (skip_prologue_using_sal): Declare.
9621 * frv-tdep.c: Include "symtab.h".
9622 (skip_prologue_using_sal): Delete function.
9623 * mips-tdep.c (skip_prologue_using_sal): Delete function.
9624 * rs6000-tdep.c (refine_prologue_limit): Mention
9625 skip_prologue_using_sal.
9626 * ia64-tdep.c (refine_prologue_limit): Ditto.
9627 * Makefile.in: Update dependencies.
9628
96292004-02-16 Andrew Cagney <cagney@redhat.com>
19772a2c 9630
39ce7b3f
AC
9631 * config/alpha/tm-nbsd.h: Update copyright, delete #undef
9632 START_INFERIOR_TRAPS_EXPECTED.
9633 * config/alpha/tm-fbsd.h: Update copyright, delete #undef
9634 START_INFERIOR_TRAPS_EXPECTED.
9635 * config/alpha/tm-alphalinux.h (START_INFERIOR_TRAPS_EXPECTED):
9636 Delete macro.
9637 * config/alpha/tm-alpha.h (START_INFERIOR_TRAPS_EXPECTED): Delete
9638 macro, moved to "nm-osf.h". Update copyright.
9639 * config/alpha/nm-osf.h (START_INFERIOR_TRAPS_EXPECTED): Define,
9640 update copyright.
9641
19772a2c
AC
9642 * gdbarch.sh (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION): Predicate
9643 and function replacing FRAMELESS_FUNCTION_INVOCATION.
9644 * blockframe.c (legacy_frameless_look_for_prologue): Rename
9645 frameless_look_for_prologue.
9646 * frame.h (legacy_frameless_look_for_prologue): Rename
9647 frameless_look_for_prologue.
9648 * gdbarch.h, gdbarch.c: Re-generate.
9649 * sh64-tdep.c (sh64_gdbarch_init): Update.
9650 * sh-tdep.c (sh_gdbarch_init): Update.
9651 * s390-tdep.c (s390_gdbarch_init): Update.
9652 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9653 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9654 * m68k-tdep.c (m68k_gdbarch_init): Update.
9655 (delta68_frame_args_address): Update.
9656 * m32r-tdep.c (m32r_gdbarch_init): Update.
9657 * hppa-tdep.c (hppa_gdbarch_init): Update.
9658 * h8300-tdep.c (h8300_gdbarch_init): Update.
9659 * frv-tdep.c (frv_gdbarch_init): Update.
9660 (frv_frameless_function_invocation): Update.
9661 * cris-tdep.c (cris_gdbarch_init): Update.
9662 (cris_frameless_function_invocation): Update.
9663 * avr-tdep.c (avr_gdbarch_init): Update.
9664 * arm-tdep.c (arm_gdbarch_init): Update.
9665 * stack.c (frame_info): Update, call predicate.
9666 * rs6000-tdep.c (rs6000_frame_chain): Update, call predicate..
9667 * frame.c (legacy_get_prev_frame): Update, call predicate..
9668 * arch-utils.c (generic_frameless_function_invocation_not): Delete.
9669 * arch-utils.h (generic_frameless_function_invocation_not): Delete.
9670 * alpha-tdep.c (alpha_gdbarch_init): Do not set frameless function
9671 invocation.
9672 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9673 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
9674 * vax-tdep.c (vax_gdbarch_init): Ditto.
2be8b3c1
AC
9675
9676 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): Delete unused
9677 function.
9678
7dcaac91
DJ
96792004-02-16 Daniel Jacobowitz <drow@mvista.com>
9680
9681 * objfiles.c (terminate_minimal_symbol_table): Remove unnecessary
9682 initializations.
9683
88289b6e
AC
96842004-02-16 Andrew Cagney <cagney@redhat.com>
9685
9686 * tui/tui-windata.c: Include "gdb_string.h".
9687 * tui/tui-source.c, tui/tui-winsource.c: Ditto.
9688 * tui/tui-layout.c, tui/tui-command.c: Ditto.
9689 * Makefile.in: Update dependencies.
9690
9f976b41
DJ
96912004-02-16 Daniel Jacobowitz <drow@mvista.com>
9692
9693 * Makefile.in (infrun.o): Add $(gdb_assert_h).
9694 * infrun.c: Include "gdb_assert.h".
9695 (singlestep_ptid, saved_singlestep_ptid)
9696 (stepping_past_singlestep_breakpoint): New variables.
9697 (resume): Set singlestep_ptid. Check for singlestep thread
9698 hop.
9699 (init_wait_for_inferior): Clear stepping_past_singlestep_breakpoint.
9700 (handle_inferior_event): Handle singlestep thread hop.
9701
c324d747
AC
97022004-02-16 Andrew Cagney <cagney@redhat.com>
9703
f090b9b1
AC
9704 * dwarf2-frame.c (dwarf2_frame_ops): New function.
9705 (dwarf2_frame_set_init_reg): Use, instead of gdbarch_data.
9706 (dwarf2_frame_init_reg): Ditto.
9707
fd33e6cb
AC
9708 * printcmd.c (display_command): Check that EXP isn't NULL. Fix
9709 suggested by Joshua Neuheisel
9710
c324d747
AC
9711 * configure.in: Always check for curses, including pdcurses.
9712 Warn, instead of error, when no curses are found. Enable TUI when
9713 curses is available.
9714 * configure: Re-generate.
9715
b66ba949
CV
97162004-02-16 Corinna Vinschen <vinschen@redhat.com>
9717
9718 * sh-tdep.c (sh_register_convert_to_virtual): Rename from
9719 sh_sh4_register_convert_to_virtual.
9720 (sh_register_convert_to_raw): Rename from
9721 sh_sh4_register_convert_to_raw.
9722 (sh_pseudo_register_read): Accomodate above name change.
9723 (sh_pseudo_register_write): Ditto.
9724
b58cbbf2
CV
97252004-02-16 Corinna Vinschen <vinschen@redhat.com>
9726
9727 * sh-tdep.c (sh_generic_register_name): Remove.
9728 (sh_gdbarch_init): Use sh_sh_register_name in default case.
9729
5929a910
AC
97302004-02-15 Andrew Cagney <cagney@redhat.com>
9731
4566dfcf
AC
9732 * configure.in (build_warnings): Add -Wunused-function.
9733 * configure: Re-generate.
9734
db11ed55
AC
9735 * config/tm-lynx.h (START_INFERIOR_TRAPS_EXPECTED): Delete macro.
9736 * config/rs6000/tm-rs6000.h (START_INFERIOR_TRAPS_EXPECTED): Ditto.
9737
46ac7a5d
AC
9738 * procfs.c (procfs_init_inferior): Assume that
9739 START_INFERIOR_TRAPS_EXPECTED is defined.
9740 * config/ns32k/nbsdaout.mt (TM_FILE): Set to tm-ns32k.h.
9741 * config/ns32k/tm-nbsd.h: Delete file,
9742 START_INFERIOR_TRAPS_EXPECTED already defined as 2.
9743
ba801595
AC
9744 * config/vax/tm-vaxbsd.h: Do not include "tm-vax.h".
9745 * config/vax/tm-vax.h: Delete file.
9746
5929a910
AC
9747 * config/mips/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
9748 * config/i386/tm-i386bsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
9749 * config/arm/tm-linux.h (SIGCONTEXT_PC_OFFSET): Delete macro.
9750 * config/vax/tm-vaxbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
9751 * vax-tdep.c (vax_sigtramp_saved_pc): Inline only reference.
9752 * config/ns32k/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
9753 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Inline only reference.
9754
8f22cb90
MK
97552004-02-15 Mark Kettenis <kettenis@gnu.org>
9756
9757 * dwarf2-frame.h (dwarf2_frame_set_init_reg): New prototype.
9758 * dwarf2-frame.c (dwarf2_frame_data): New variable.
9759 (struct dwarf2_frame_ops): New.
9760 (dwarf2_frame_default_init_reg): New function, based on
9761 dwarf2_frame_init_reg.
9762 (dwarf2_frame_init, dwarf2_frame_set_init_reg): New function.
9763 (dwarf2_frame_init_reg): Call architecture-specific function.
9764 (dwarf2_frame_objfile_data): Renamed from dwarf2_frame_data.
9765 (dwarf2_frame_find_fde, add_fde): Use dwarf2_frame_objfile_data
9766 instead of dwarf2_frame_data.
9767 (_initialize_dwarf2_frame): Initailize new dwarf2_frame_data.
9768 Initialize dwarf2_frame_objfile instead of old dwarf2_frame_data.
9769
8132723e
AC
97702004-02-15 Andrew Cagney <cagney@redhat.com>
9771
046a4708
AC
9772 * gdbarch.sh (deprecated_register_gdbarch_swap): Rename
9773 register_gdbarch_swap.
9774 (DEPRECATED_REGISTER_GDBARCH_SWAP): Rename REGISTER_GDBARCH_SWAP.
9775 * f-lang.c (_initialize_f_language): Update, use
9776 DEPRECATED_REGISTER_GDBARCH_SWAP.
9777 * remote.c (_initialize_remote): Ditto.
9778 * regcache.c (_initialize_regcache): Ditto.
9779 * parse.c (_initialize_parse): Ditto.
9780 * infrun.c (_initialize_infrun): Ditto.
9781 * mi/mi-main.c (_initialize_mi_main): Ditto.
9782 * gdbtypes.c (_initialize_gdbtypes): Ditto.
8a1dac83 9783
549c1eea
AC
9784 * solib.c (solib_map_sections): Use bfd_set_cacheable instead of
9785 poking .cacheable directly.
9786 * symfile.c (symfile_bfd_open): Ditto.
9787
0c0b39de
AC
9788 * Makefile.in: Update all dependencies.
9789
8132723e
AC
9790 * Makefile.in: (.SUFFIXES): Add ".l" and ".y".
9791 (.y.c, .l.c): Specify implicit rule. Instead of .tab.c, generate
9792 .c. Update references. Delete unnecessary .tab.c and -lex.c rules.
9793 (ada-exp.o, c-exp.o, f-exp.o): Replace ada-exp.tab.o et.al. rule.
9794 (jv-exp.o, m2-exp.o, objc-exp.o, p-exp.o): Similar.
0c0b39de 9795
b9d26eb9
AC
97962004-02-14 Andrew Cagney <cagney@redhat.com>
9797
8e1f669a
AC
9798 * arch-utils.c (legacy_convert_register_p): Check
9799 DEPRECATED_REGISTER_CONVERTIBLE_P.
9800 * findvar.c (value_of_register): Ditto.
9801
cd0bfa36
AC
9802 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Add predicate.
9803 * gdbarch.h, gdbarch.c: Re-generate.
9804 * arch-utils.c (deprecated_register_convertible_not): Delete.
9805 * arch-utils.h (deprecated_register_convertible_not): Delete.
9806 * mi/mi-main.c (get_register): Update. Update copyright.
9807 * infcmd.c (default_print_registers_info): Update.
9808
b9d26eb9
AC
9809 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
9810 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Delete.
9811 (DEPRECATED_CALL_DUMMY_ADDRESS): Delete.
8a1dac83 9812 * gdbarch.h, gdbarch.c: Re-generate.
b9d26eb9
AC
9813 * frame.c (deprecated_get_next_frame_hack): Delete function.
9814 * frame.h (deprecated_get_next_frame_hack): Delete declaration.
9815 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
9816 Update.
9817 * infcall.c (call_function_by_hand): Update.
9818
9ab9195f
EZ
98192004-02-14 Elena Zannoni <ezannoni@redhat.com>
9820
9821 * symfile.c (init_entry_point_info, entry_point_address): Move
8a1dac83 9822 from here...
9ab9195f
EZ
9823 * objfiles.c (init_entry_point_info, entry_point_address):..to
9824 here.
9825 * symfile.h (init_entry_point_info, entry_point_address): Remove
9826 prototypes.
9827 * objfiles.h (init_entry_point_info, entry_point_address):Add
8a1dac83 9828 prototypes.
9ab9195f
EZ
9829 * cris-tdep.c: Remove include of symfile.h. Add include of
9830 objfiles.h.
9831 * infcall.c: Ditto.
9832 * mcore-tdep.c: Ditto.
9833 * mn10300-tdep.c: Ditto.
9834 * sh64-tdep.c: Ditto.
9835 * v850-tdep.c: Ditto.
9836 * arm-tdep.c: Remove include of symfile.h.
9837 * blockframe.c: Ditto.
9838 * coffread.c: Ditto.
9839 * dbxread.c: Ditto.
9840 * dwarf2read.c: Ditto.
9841 * dwarfread.c: Ditto.
8a1dac83 9842 * frv-tdep.c: Ditto.
9ab9195f
EZ
9843 * ia64-tdep.c: Ditto.
9844 * mdebugread.c: Ditto.
9845 * mipsread.c: Ditto.
8a1dac83 9846 * rs6000-tdep.c: Ditto.
9ab9195f
EZ
9847 * s390-tdep.c: Ditto.
9848 * sh-tdep.c: Ditto.
8a1dac83 9849 * xstormy16-tdep.c: Ditto.
9ab9195f
EZ
9850 * gdbarch.sh: Remove include of symfile.h.
9851 * gdbarch.c: Regenerate.
9852 * solib-irix.c (enable_break): Use entry_point_address().
9853 Add comment about include file.
9854 * xcoffread.c: Add comment about include file.
8a1dac83
RM
9855 * Makefile.in (arm-tdep.o, blockframe.o, coffread.o, cris-tdep.o)
9856 (dbxread.o, dwarf2read.o, dwarfread.o, frv-tdep.o, gdbarch.o)
9857 (ia64-tdep.o, infcall.o, mcore-tdep.o, mdebugread.o, mipsread.o)
9858 (mn10300-tdep.o, rs6000-nat.o, s390-tdep.o, sh64-tdep.o)
9ab9195f
EZ
9859 (sh-tdep.o, v850-tdep.o, xstormy16-tdep.o): Update dependencies.
9860
c4c5b7ba
AC
98612004-02-13 Andrew Cagney <cagney@redhat.com>
9862
9863 * corelow.c (core_xfer_partial): Use "struct bfd_section".
9864 * config/sparc/nm-nbsd.h (struct target_ops): Declare, update
9865 copyright.
9866 * mips-linux-tdep.c: Use "GNU/Linux", update copyright.
9867
3e7879de
FF
98682004-02-12 Fred Fish <fnf@redhat.com>
9869
9870 * m68hc11-tdep.c (m68hc11_gdbarch_init): Remove duplicate call to
9871 set_gdbarch_store_return_value.
9872
6a7760b6
AC
98732004-02-12 Andrew Cagney <cagney@redhat.com>
9874
9875 * remote-rdi.c (arm_rdi_start_remote): Delete unused function.
9876 (arm_rdi_interrupt, arm_rdi_interrupt_twice): Ditto.
9877 (interrupt_query): Ditto.
9878 (ofunc): Delete unused variable.
9879 * cris-tdep.c (cris_abi): Delete unused function.
9880 (reg_pop_op, move_reg_to_mem_index_inc_op): Ditto.
9881 (cris_get_wide_opcode, cris_get_short_size): Ditto.
9882 (cris_get_asr_quick_shift_steps): Ditto.
9883 (cris_skip_prologue_frameless_p): Ditto.
9884 * arm-tdep.c (arm_push_return_address): Delete unused function.
9885 (arm_push_dummy_frame, arm_fix_call_dummy): Ditto.
9886 * rs6000-tdep.c (rs6000_pc_in_call_dummy): Delete unused function.
9887 * s390-tdep.c (s390_function_start): Delete unused function.
9888
31687c3c
AC
98892004-02-12 Andrew Cagney <cagney@redhat.com>
9890
9891 * gdbarch.sh (PROLOGUE_FRAMELESS_P): Delete.
9892 gdbarch.h, gdbarch.c: Re-generate.
9893 * cris-tdep.c (cris_gdbarch_init): Do not set prologue_frameless_p
9894 to generic_prologue_frameless_p.
9895 * arch-utils.h (generic_prologue_frameless_p): Delete declaration.
9896 * arch-utils.c (generic_prologue_frameless_p): Delete function.
9897
6de918a6
DJ
98982004-02-11 Daniel Jacobowitz <drow@mvista.com>
9899
9900 * mips-linux-tdep.c: Include "frame.h".
9901 (mips_linux_in_dynsym_stub, mips_linux_in_dynsym_resolve_code)
9902 (mips_linux_skip_resolver): New functions.
9903 (mips_linux_init_abi): Call set_gdbarch_skip_solib_resolver
9904 and set_gdbarch_in_solib_call_trampoline.
9905 * mips-tdep.c (mips_gdbarch_init): Move gdbarch_init_osabi call
9906 to after set_gdbarch_in_solib_return_trampoline. Only set the
9907 solib hooks to mips16 functions if the OS ABI is unknown.
9908 * config/mips/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Undefine after
9909 including "config/tm-linux.h".
9910 (IN_SOLIB_DYNSYM_RESOLVE_CODE): Define.
9911 * Makefile.in (mips-linux-tdep.o): Update.
9912
87b3ede8
DC
99132004-02-11 David Carlton <carlton@kealia.com>
9914
9915 * linespec.c (decode_compound): Only look for a class symbol when
9916 considering all but the rightmost component.
9917
5979bc46
AC
99182004-02-11 Andrew Cagney <cagney@redhat.com>
9919
9920 * hppa-tdep.c (hppa_gdbarch_init): Re-order so that the frame and
9921 abi code are are separatly grouped.
9922
5867a2fb
AC
99232004-02-11 Andrew Cagney <cagney@redhat.com>
9924
9925 * gdbarch.sh (FRAME_ARGS_SKIP): Default to 0.
9926 * gdbarch.h, gdbarch.c: Re-generate.
9927 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9928 * v850-tdep.c (v850_gdbarch_init): Update.
9929 * sh64-tdep.c (sh64_gdbarch_init): Update.
9930 * sh-tdep.c (sh_gdbarch_init): Update.
9931 * s390-tdep.c (s390_gdbarch_init): Update.
9932 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9933 * mips-tdep.c (mips_gdbarch_init): Update.
9934 * mcore-tdep.c (mcore_gdbarch_init): Update.
9935 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9936 * m32r-tdep.c (m32r_gdbarch_init): Update.
9937 * ia64-tdep.c (ia64_gdbarch_init): Update.
9938 * hppa-tdep.c (hppa_gdbarch_init): Update.
9939 * h8300-tdep.c (h8300_gdbarch_init): Update.
9940 * frv-tdep.c (frv_gdbarch_init): Update.
9941 * d10v-tdep.c (d10v_gdbarch_init): Update.
9942 * cris-tdep.c (cris_gdbarch_init): Update.
9943 * avr-tdep.c (avr_gdbarch_init): Update.
9944 * arm-tdep.c (arm_gdbarch_init): Update.
9945 * alpha-tdep.c (alpha_gdbarch_init): Update.
9946
026a72f8
CV
99472004-02-11 Corinna Vinschen <vinschen@redhat.com>
9948
9949 * sh-tdep.c (sh_sh3_dsp_register_name): Fix formatting. Add missing
9950 comma.
9951 (sh_sh4al_dsp_register_name): Ditto.
9952
3903d437
AC
99532004-02-10 Andrew Cagney <cagney@redhat.com>
9954
9955 * mips-tdep.c (mips_gdbarch_init): Delete deprecated frame code.
9956 (mips_init_frame_pc_first): Delete function.
9957 (mips_frame_saved_pc): Delete function.
9958 (mips_frame_chain): Delete function.
9959 (mips_init_extra_frame_info): Delete function.
9960 (mips_xfer_register): Delete unused variable "reg".
9961 (mips_n32n64_push_dummy_call): Delete unused variable "valbuf".
9962 (mips_n32n64_return_value): Delete unused variable "reg".
9963 (mips_n32n64_return_value): Delete unused variable "pos".
9964 (mips_o32_push_dummy_call): Delete unused variable "valbuf".
9965 (mips_o32_return_value): Delete unused variable "pos".
9966 (mips_o64_push_dummy_call): Delete unused variable "valbuf".
9967 (mips_print_fp_register): Delete unused variable "namelen"
9968 (mips_print_fp_register): Delete unused variable "flt2"
9969 (get_frame_pointer): Delete function.
9970 (cached_proc_desc): Delete static variable.
9971 (mips_pop_frame): Delete function.
9972 (mips_find_saved_regs): Delete function.
9973 (mips_get_saved_register): Delete function.
9974 (mips_saved_pc_after_call): Delete function.
9975 (SIGFRAME_BASE): Delete macro.
9976 (SIGFRAME_FPREGSAVE_OFF): Delete macro.
9977 (SIGFRAME_PC_OFF): Delete macro.
9978 (SIGFRAME_REGSAVE_OFF): Delete macro.
9979 (mips_dump_tdep): Do not print deleted macro definitions.
9980
b9fb98bd
AC
99812004-02-10 Andrew Cagney <cagney@redhat.com>
9982
9983 * Makefile.in (SFILES): Remove explictly listed tui files.
9984 (SUBDIR_GDBTK_SRCS): Fix path to gdbtk-interp.c.
9985
78ced177 99862004-02-10 Jeff Johnston <jjohnstn@redhat.com>
8a1dac83 9987
78ced177
JJ
9988 * ia64-tdep.c (ia64_frame_this_id): Fix tracing print statement
9989 to use paddr functions to format ia64 addresses and long values.
9990 (ia64_frame_prev_register, ia64_sigtramp_frame_this_id): Ditto.
9991 (ia64_sigtramp_frame_prev_register, ia64_access_reg): Ditto.
9992 (get_kernel_table, ia64_find_proc_info_x): Ditto.
9993 (ia64_get_dyn_info_list, ia64_libunwind_this_frame_id): Ditto.
9994 (ia64_libunwind_frame_prev_register, ia64_unwind_dummy_id): Ditto.
9995
6a83354a
AC
99962004-02-10 Andrew Cagney <cagney@redhat.com>
9997
9998 * defs.h: Do not include "tui.h".
9999 * gdb_curses.h: New file.
10000 * tui/tui-hooks.h: New file.
10001 * tui/tui.h (tui_update_all_exec_infos): Delete declaration.
10002 (tui_install_hooks, tui_remove_hooks): Delete declarations.
10003 (tui_initialize_io): Delete declaration.
10004 (tui_initialize_readline: Delete redundant declaration.
10005 (struct tui_point): Delete definition.
10006 * tui/tui-data.h (struct tui_point): Define.
10007 * cli/cli-decode.c [TUI]: Include "tui/tui.h".
10008 * utils.c: Include "tui/tui.h".
10009 * tui/tui-data.h: Include "tui/tui.h" and "gdb_curses.h".
10010 * printcmd.c [TUI]: Include "tui/tui.h".
10011 * cli/cli-cmds.c [TUI]: Include "tui/tui.h".
10012 * tui/tui-command.c: Include "gdb_curses.h".
10013 * tui/tui.c, tui/tui-winsource.c, tui/tui-wingeneral.c: Ditto.
10014 * tui/tui-windata.c, tui/tui-win.c, tui/tui-stack.c: Ditto.
10015 * tui/tui-source.c, tui/tui-regs.c, tui/tui-layout.c: Ditto.
10016 * tui/tui-io.c, tui/tui-disasm.c, tui/tui-data.c: : Ditto.
10017 * tui/tui-hooks.c: Include "tui-hooks.h" and "gdb_curses.h".
10018 * Makefile.in: Update all dependencies.
10019 (tui_hooks_h, gdb_curses_h): Define.
10020 (SUBDIR_TUI_CFLAGS): Remove -I${srcdir}/tui.
10021
997470ef
EZ
100222004-02-10 Elena Zannoni <ezannoni@redhat.com>
10023
10024 * objfiles.h (struct objfile): Remove unused fields auxf1 and
10025 auxf2. Add comments about some other rarely used fields.
10026
4ff2cc4d
AC
100272004-02-10 Andrew Cagney <cagney@redhat.com>
10028
10029 * Makefile.in (init.c): Fix script removing duplicates. Problem
10030 reported by Peter Schauer.
10031
1ab21617
EZ
100322004-02-09 Elena Zannoni <ezannoni@redhat.com>
10033
10034 * bcache.c (bcache_xmalloc): Use obstack_init instead of
10035 obstack_specify_allocation.
10036 * objfiles.c (allocate_objfile): Ditto.
8a1dac83 10037 * solib-sunos.c (solib_add_common_symbols)
1ab21617
EZ
10038 (allocate_rt_common_objfile): Ditto.
10039 * symfile.c (reread_symbols): Ditto.
10040 * gdb_obstack.h: Add comment.
10041
17763fd9
EZ
100422004-02-09 Elena Zannoni <ezannoni@redhat.com>
10043
10044 * linespec.c (decode_line_1, locate_first_half)
10045 (decode_compound, lookup_prefix_sym): Update comments. Delete old
10046 commented out code.
10047
ec5cdd75
DJ
100482004-02-09 Daniel Jacobowitz <drow@mvista.com>
10049
10050 * cp-namespace.c (check_one_possible_namespace_symbol): Don't use
10051 obstack_free.
10052
43b54b88
AC
100532004-02-09 Andrew Cagney <cagney@redhat.com>
10054
10055 * blockframe.c (find_pc_partial_function): If find_pc_overlay
10056 fails, try find_pc_section. Fix PR c++/1267.
10057 * minsyms.c (lookup_minimal_symbol_by_pc): Use find_pc_section
10058 instead of find_pc_mapped_section.
10059 (lookup_minimal_symbol_by_pc_section): If the SECTION is NULL, do
10060 not default to the section containing PC. Fix PR symtab/1519.
10061
edfae063
AC
100622004-02-09 Andrew Cagney <cagney@redhat.com>
10063
10064 * Makefile.in (mips-tdep.o): Update dependencies.
10065 * mips-tdep.c: Include "frame-unwind.h", "frame-base.h" and
10066 "trad-frame.h".
10067 (mips_unwind_pc): Return the pseudo PC register.
10068 (mips_unwind_dummy_id): New function.
10069 (mips16_fetch_instruction): New function.
10070 (mips32_fetch_instruction): New function.
10071 (struct mips_frame_cache): Define.
10072 (mips_mdebug_frame_cache): New function.
10073 (mips_mdebug_frame_this_id): New function.
10074 (mips_mdebug_frame_prev_register): New function.
10075 (mips_mdebug_frame_unwind): Define.
10076 (mips_mdebug_frame_sniffer): New function.
10077 (mips_mdebug_frame_base_address): New function.
10078 (mips_mdebug_frame_base): Define.
10079 (mips_mdebug_frame_base_sniffer): New function.
10080 (mips_gdbarch_init): Append unwind and base sniffers. Set
10081 unwind_dummy_id.
10082
defc864c
AC
100832004-02-08 Andrew Cagney <cagney@redhat.com>
10084
6764ddad
AC
10085 * frame.c: Print both the register number and name.
10086
defc864c
AC
10087 * Makefile.in (init.c): Eliminate duplicates. Combine two greps
10088 and a sed into a single sed. Make .c and .o patterns more robust.
10089 (OBS): Delete.
10090 (INIT_FILES): Replace OBS with COMMON_OBS.
10091 (COMMON_OBS): Move DEPFILES and YYOBJ to start of definition.
10092
645d6d10
MK
100932004-02-08 Mark Kettenis <kettenis@gnu.org>
10094
10095 * sparc-nat.c (sparc_xfer_wcookie): Try to fetch the cookie using
10096 the PT_WCOOKIE request.
10097
23e3c3fc
AC
100982004-02-08 Andrew Cagney <cagney@redhat.com>
10099
58dfe9ff
AC
10100 * mips-tdep.c (mips_unwind_pc): New function.
10101 (mips_gdbarch_init): Set mips_unwind_pc.
10102
1152e35e
AC
10103 * frame.c (legacy_saved_regs_this_id): Return a null frame ID.
10104 (get_frame_id): Allow the UNKNOWN_FRAME.
10105 (frame_register_unwind, get_frame_type): Ditto.
10106
31b75dbf
AC
10107 * frame.c (legacy_frame_p): Check for DEPRECATED_TARGET_READ_FP_P
10108 and DEPRECATED_FP_REGNUM. Don't assume that the lack of
10109 unwind_dummy_id indicates a legacy frame.
10110
3483b318
AC
10111 * configure.in (CONFIG_LIB_OBS): Replace with CONFIG_OBS.
10112 * configure: Re-generate.
10113
23e3c3fc
AC
10114 * mips-tdep.c (mips_gdbarch_init): Group deprecated frame unwind
10115 methods.
10116
33f8ca73
AC
101172004-02-08 Andrew Cagney <cagney@redhat.com>
10118
10119 * configure.in (CONFIG_ALL): Set to Makefile target, and not
10120 makefile macro.
10121 * configure: Re-generate.
10122 (CONFIG_CLEAN, CONFIG_INSTALL, CONFIG_UNINSTALL): Ditto.
10123 * Makefile.in (SUBDIR_CLI_CLEAN): Delete.
10124 (SUBDIR_CLI_INSTALL, SUBDIR_CLI_UNINSTALL): Delete.
10125 (SUBDIR_CLI_ALL, SUBDIR_GDBTK_ALL): Delete.
10126 (SUBDIR_GDBTK_CLEAN, SUBDIR_GDBTK_INSTALL): Delete.
10127 (SUBDIR_GDBTK_UNINSTALL, SUBDIR_MI_ALL): Delete.
10128 (SUBDIR_MI_CLEAN, SUBDIR_MI_INSTALL): Delete.
10129 (SUBDIR_MI_UNINSTALL, SUBDIR_TUI_ALL): Delete.
10130 (SUBDIR_TUI_CLEAN, SUBDIR_TUI_INSTALL): Delete.
10131 (SUBDIR_TUI_UNINSTALL, SUBDIR_CLI_CLEAN): Delete.
10132
6ba8e26f 101332004-02-07 Andrew Cagney <cagney@redhat.com>
d836ee13 10134
20d286a5
AC
10135 * Makefile.in: Update all dependencies.
10136
d836ee13
AC
10137 * configure.in (CONFIG_INITS, CONFIG_LIB_OBS): Delete.
10138 * configure: Re-generate.
10139 * Makefile.in (INIT_FILES): Replace CONFIG_INITS with CONFIG_SRCS.
10140 (CONFIG_LIB_OBS, CONFIG_INITS): Delete.
10141 (COMMON_OBS): Add "main.o" and "annotate.o".
10142 (ANNOTATE_OBS): Delete.
10143 (OBS): Remove ANNOTATE_OBS.
10144 (DEPFILES): Replace CONFIG_LIB_OBS with CONFIG_LIB_OBS, remove
10145 CONFIG_INITS.
10146 (gdb$(EXEEXT), insight$(EXEEXT)): Do not depend on, or link
10147 against CONFIG_OBS and "main.o".
10148 (SUBDIR_CLI_INITS, SUBDIR_MI_INITS): Delete.
10149 (SUBDIR_TUI_INITS, SUBDIR_GDBTK_INITS): Delete.
10150
d02c80cd
AC
10151 * tui/tui-command.c: Include "gdb_string.h", delete register
10152 attribute, use ISO-C function signatures.
10153 * tui/tui-disasm.c, tui/tui-file.c, tui/tui-io.c: Ditto.
10154 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
10155 * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Ditto.
10156 * tui/tui.c: Ditto.
6ba8e26f
AC
10157
10158 * tui/tui-command.c: Change variable and function names to lower
10159 case.
10160 * tui/tui-data.c, tui/tui-disasm.c: Ditto.
10161 * tui/tui-hooks.c, tui/tui-io.c, tui/tui-layout.c: Ditto.
10162 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
10163 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
10164 * tui/tui-winsource.c, tui/tui.c: Ditto.
10165
4a146b47
EZ
101662004-02-07 Elena Zannoni <ezannoni@redhat.com>
10167
10168 * buildsym.c (free_pending_blocks, finish_block)
10169 (record_pending_block, make_blockvector, end_symtab): Replace
10170 symbol_obstack with objfile_obstack.
8a1dac83 10171 * coffread.c (process_coff_symbol, coff_read_struct_type)
4a146b47 10172 (coff_read_enum_type): Ditto.
8a1dac83 10173 * cp-namespace.c (initialize_namespace_symtab)
4a146b47 10174 (check_one_possible_namespace_symbol): Ditto.
8a1dac83 10175 * dwarf2read.c (new_symbol, dwarf2_const_value, macro_start_file)
4a146b47
EZ
10176 (dwarf2_symbol_mark_computed): Ditto.
10177 * dwarfread.c (enum_type, new_symbol, synthesize_typedef): Ditto.
10178 * elfread.c (elf_symtab_read): Ditto.
10179 * hpread.c (hpread_symfile_init, hpread_symfile_init)
10180 (hpread_read_enum_type, hpread_read_function_type)
10181 (hpread_read_doc_function_type, hpread_process_one_debug_symbol):
10182 Ditto.
8a1dac83 10183 * jv-lang.c (get_java_class_symtab, add_class_symbol)
4a146b47 10184 (java_link_class_type): Ditto.
8a1dac83 10185 * mdebugread.c (parse_symbol, psymtab_to_symtab_1, new_symtab)
4a146b47
EZ
10186 (new_symbol): Ditto.
10187 * minsyms.c (install_minimal_symbols): Ditto.
10188 * objfiles.c (allocate_objfile): Remove init of symbol_obstack.
10189 (terminate_minimal_symbol_table): Replace symbol_obstack with
10190 objfile_obstack.
10191 (free_objfile): Remove freeing of symbol_obstack.
10192 * objfiles.h: Remove symbol_obstack field.
10193 * pa64solib.c (add_to_solist): Replace symbol_obstack with
10194 objfile_obstack.
10195 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
10196 symbol_obstack.
10197 (solib_add_common_symbols): Replace symbol_obstack with
10198 objfile_obstack.
10199 * somsolib.c (som_solib_add): Ditto.
10200 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
10201 (common_block_start, common_block_end): Ditto.
10202 * symfile.c (reread_symbols): Remove freeing and init of
10203 symbol_obstack.
10204 (allocate_symtab): Rename symbol_obstack to objfile_obstack.
10205 * symfile.h: Update comment.
10206 * symmisc.c (print_objfile_statistics): Remove symbol_obstack
10207 stats printing.
10208 * symtab.c (symbol_set_names): Replace symbol_obstack with
10209 objfile_obstack.
10210 * symtab.h (struct general_symbol_info, struct minimal_symbol):
10211 Update comments.
10212 * xcoffread.c (read_xcoff_symtab, SYMBOL_DUP, SYMNAME_ALLOC)
10213 (init_stringtab, xcoff_initial_scan): Replace symbol_obstack with
10214 objfile_obstack.
10215
6d012f14
AC
102162004-02-07 Andrew Cagney <cagney@redhat.com>
10217
10218 * tui/tui.h: Do not include <stdarg.h>, <string.h>, and
10219 "ansidecl.h". Do not undef "reg" and "chtype". Fix case of
10220 fields and variables.
10221 * tui/tui-wingeneral.h (m_beVisible): Delete macro.
10222 (m_beInvisible): Delete macro.
10223 * tui/tui-data.h: Fix case case fields and variables.
10224 (m_genWinPtrIsNull): Delete macro.
10225 (tui_win_list): Rename winList.
10226 (TUI_SRC_WIN): Rename srcWin.
10227 (TUI_DISASM_WIN): Rename disassemWin.
10228 (TUI_DATA_WIN): Rename dataWin.
10229 (TUI_CMD_WIN): Rename cmdWin.
10230 (m_genWinPtrNotNull): Delete macro.
10231 (m_winPtrIsNull): Delete macro.
10232 (m_winPtrNotNull): Delete macro.
10233 (tui_win_is_source_type): Replace m_winIsSourceType
10234 (tui_win_is_auxillary): Replace m_winIsAuzillary.
10235 (tui_win_has_locator): Replace m_hasLocator.
10236 (tui_set_win_highlight): Replace m_setWinHighlightOn and
10237 m_setWinHighlightOff.
10238 * tui/tui-data.c: Update references.
10239 (tui_win_is_source_type, tui_set_win_highlight): New functions.
10240 (tui_win_has_locator, tui_win_is_auxillary): New functions.
10241 * tui/tui-command.c, tui/tui-disasm.c: Update references.
10242 * tui/tui-io.c, tui/tui-layout.c, tui/tui-regs.c: Ditto.
10243 * tui/tui-regs.h, tui/tui-source.c, tui/tui-stack.c: Ditto.
10244 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
10245 * tui/tui-winsource.c, tui/tui.c: Ditto.
10246
7d34766b
MK
102472004-02-07 Mark Kettenis <kettenis@gnu.org>
10248
1c800673
MK
10249 * sparc-tdep.h (sparc_fetch_wcookie): New prototype.
10250 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Handle
10251 StackGhost.
10252
7d34766b
MK
10253 * sparc-tdep.c (sparc32_frame_prev_register): Rename local
10254 variable `i6' to `i7'.
10255 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
10256
22940a24
AC
102572004-02-07 Andrew Cagney <cagney@redhat.com>
10258
10259 * tui/tui.h (Opaque, OpaquePtr OpaqueList): Delete definition.
10260 (TuiPoint, TuiPointPtr): Ditto.
10261 (TuiStatus, TuiStatusPtr): Ditto.
10262 (TuiWinType, TuiWinTypePtr): Ditto.
10263 (struct tui_point): Rename _TuiPoint.
10264 (tui_get_low_disassembly_address): Rename
10265 tuiGetLowDisassemblyAddress.
10266 (tui_update_all_exec_infos): Rename tuiUpdateAllExecInfos.
10267 (tuiFree): Delete declaration.
10268 (OpaqueFuncPtr, TuiOpaqueFuncPtr): Delete definitions.
10269 (TuiVoidFuncPtr, TuiIntFuncPtr): Delete definitions.
10270 * tui/tui.c (tuiFree): Delete function.
10271 * cli/cli-cmds.c (disassemble_command): Update references.
10272 * tui/tui-data.c, tui/tui-data.h, tui/tui-disasm.c: Ditto.
10273 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
10274 * tui/tui-stack.c, tui/tui-win.c, tui/tui-wingeneral.c: Ditto.
10275 * tui/tui-winsource.c: Ditto.
10276
8b92e4d5
EZ
102772004-02-07 Elena Zannoni <ezannoni@redhat.com>
10278
10279 * dbxread.c (dbx_symfile_init, start_psymtab, end_psymtab,
10280 coffstab_build_psymtabs, elfstab_build_psymtabs)
10281 (stabsect_build_psymtabs): Replace psymbol_obstack with
10282 objfile_obstack.
10283 * dwarf2-frame.c (decode_frame_entry_1): Ditto.
10284 * dwarf2read.c (dwarf2_build_psymtabs_hard, dwarf2_read_section):
10285 Ditto.
10286 * dwarfread.c (scan_compilation_units): Ditto.
10287 * elfread.c (elfstab_offset_sections): Ditto.
10288 * hppa-tdep.c (read_unwind_info): Ditto.
10289 * hpread.c (hpread_build_psymtabs, hpread_start_psymtab)
10290 (hpread_end_psymtab): Ditto.
10291 * mdebugread.c (mdebug_build_psymtabs, add_pending)
10292 (parse_partial_symbols, new_psymtab, elfmdebug_build_psymtabs):
10293 Ditto.
10294 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
8a1dac83 10295 * objfiles.c (add_to_objfile_sections)
8b92e4d5
EZ
10296 (build_objfile_section_table): Ditto.
10297 (allocate_objfile): Remove init of psymbol_obstack.
10298 (free_objfile): Remove freeing of psymbol_obstack.
10299 * objfiles.h (struct objfile): Remove field
10300 psymbol_obstack. Update comments.
10301 * pa64solib.c (pa64_solib_add_solib_objfile): Replace
10302 psymbol_obstack with objfile_obstack.
10303 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
10304 psymbol_obstack.
10305 * somread.c (som_symfile_offsets, init_import_symbols)
10306 (init_export_symbols): Replace psymbol_obstack with
10307 objfile_obstack.
10308 * somsolib.c (som_solib_add_solib_objfile): Ditto.
10309 * symfile.c (default_symfile_offsets, syms_from_objfile)
10310 (reread_symbols): Remove freeing and init of psymbol_obstack.
10311 (cashier_psymtab): Update comment.
10312 * symmisc.c (print_objfile_statistics): Don't report stats for
10313 psymbol obstack.
10314 * symtab.h (struct general_symbol_info, struct partial_symtab):
10315 Update comments.
10316 * xcoffread.c (xcoff_start_psymtab, xcoff_end_psymtab, swap_sym)
10317 (xcoff_symfile_offsets): Replace psymbol_obstack with
10318 objfile_obstack.
10319
b99607ea
EZ
103202004-02-07 Elena Zannoni <ezannoni@redhat.com>
10321
10322 * objfiles.h (struct objfile): Add objfile_obstack field.
10323 Remove type_obstack field.
10324
10325 * dwarf2read.c (dwarf2_add_field,dwarf2_add_member_fn,
10326 read_structure_scope read_enumeration, new_symbol): Replace
10327 type_obstack with objfile_obstack.
10328 * dwarfread.c (struct_type, enum_type): Ditto.
8a1dac83 10329 * gdbtypes.c (alloc_type, alloc_type_instance, init_type)
b99607ea
EZ
10330 (lookup_fundamental_type): Ditto.
10331 * gdbtypes.h (TYPE_ALLOC): Ditto.
8a1dac83
RM
10332 * hpread.c (hpread_read_enum_type, hpread_read_function_type)
10333 (hpread_read_doc_function_type, hpread_read_struct_type)
10334 (fix_static_member_physnames, hpread_read_array_type)
b99607ea 10335 (hpread_read_subrange_type, hpread_type_lookup): Ditto.
8a1dac83 10336 * jv-lang.c (java_lookup_class, type_from_class, type_from_class)
b99607ea
EZ
10337 (java_link_class_type): Ditto.
10338 * mdebugread.c (parse_type): Ditto.
10339 * objfiles.c (allocate_objfile, free_objfile): Ditto.
10340 * solib-sunos.c (solib_add_common_symbols): Ditto.
10341 * stabsread.c (define_symbol, read_type, read_member_functions,
10342 read_cpp_abbrev, read_one_struct_field): Ditto.
10343 * symfile.c (reread_symbols): Ditto.
10344 * symmisc.c (print_objfile_statistics): Ditto.
8a1dac83 10345
2a8854a7
AC
103462004-02-07 Andrew Cagney <cagney@redhat.com>
10347
10348 * tui/tui-data.h (tui_win_element): Rename TuiWinElement.
10349 (tui_exec_info_content): Rename TuiExecInfoContent.
10350 (TuiGenWinInfo, TuiGenWinInfoPtr): Delete definitions.
10351 (TuiWinInfo, TuiWinInfoPtr): Ditto.
10352 (TuiScrollDirection, TuiScrollDirectionPtr): Ditto.
10353 (TuiList, TuiListPtr): Ditto.
10354 (TuiLayoutType, TuiLayoutTypePtr): Ditto.
10355 (TuiDataType, TuiDataTypePtr): Ditto.
10356 (TuiRegisterDisplayType, TuiRegisterDisplayTypePtr): Ditto.
10357 (TuiLineOrAddress, TuiLineOrAddressPtr): Ditto.
10358 (TuiLayoutDef, TuiLayoutDefPtr): Ditto.
10359 (TuiSourceElement, TuiSourceElementPtr): Ditto.
10360 (TuiDataElement, TuiDataElementPtr): Ditto.
10361 (TuiWinElement, TuiWinElementPtr): Ditto.
10362 (TuiDataInfo, TuiDataInfoPtr): Ditto.
10363 (TuiCommandElement, TuiCommandElementPtr): Ditto.
10364 (TuiLocatorElement, TuiLocatorElementPtr): Ditto.
10365 (TuiWhichElement, TuiWhichElementPtr): Ditto.
10366 (TuiSourceInfo, TuiSourceInfoPtr): Ditto.
10367 (TuiCommandInfo, TuiCommandInfoPtr): Ditto.
10368 * tui/tui-command.c, tui/tui-data.c: Update references.
10369 * tui/tui-data.h, tui/tui-disasm.c, tui/tui-layout.c: Ditto.
10370 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
10371 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
10372 * tui/tui-winsource.c, tui/tui.c: Ditto.
8a1dac83 10373
05cbe71a
MK
103742004-02-07 Mark Kettenis <kettenis@gnu.org>
10375
10376 * dwarf2-frame.h: Update copyright.
10377 (enum dwarf2_frame_reg_rule): New.
10378 (struct dwarf2_frame_state_reg): New.
10379 (dwarf2_frame_sniffer, dwarf2_frame_base_sniffer): Make extern.
10380 * dwarf2-frame.c: Update copyright.
10381 (enum dwarf2_reg_rule): Remove.
10382 (struct dwarf2_frame_state): Remove defenition of `struct
10383 dwarf2_frame_state_reg'.
10384 (read_reg): Call get_frame_arch to get the architecture instead of
10385 using CURRENT_GDBARCH.
10386 (execute_cfa_program): Prefix old `enum dwarf2_reg_rule' tags with
10387 DWARF2_FRAME_.
10388 (dwarf2_frame_init_reg): New function.
10389 (dwarf2_frame_cache): Call get_frame_arch to get the architecture
10390 instead of using CURRENT_GDBARCH. Call dwarf2_frame_init_reg to
10391 initialize the register state. Prefix old `enum dwarf2_reg_rule'
10392 tags with DWARF2_FRAME_.
10393 (dwarf2_frame_prev_register): Call get_frame_arch to get the
10394 architecture instead of using CURRENT_GDBARCH. Prefix old `enum
10395 dwarf2_reg_rule' tags with DWARF2_FRAME_.
10396
ec7d9e56
AC
103972004-02-06 Andrew Cagney <cagney@redhat.com>
10398
dd1abb8c
AC
10399 * tui/tui-data.h (struct tui_list): Rename _TuiList.
10400 (enum tui_data_type): Rename _TuiDataType.
10401 (struct tui_layout_def): Rename _TuiLayoutDef.
10402 (struct tui_source_element): Rename _TuiSourceElement.
10403 (struct tui_data_element): Rename _TuiDataElement.
10404 (struct tui_command_element): Rename _TuiCommandElement.
10405 (struct tui_locator_element): Rename _TuiLocatorElement.
10406 (union tui_which_element): Define.
10407 (struct tui_win_element): Rename _TuiWinElement.
10408 (struct tui_data_info): Rename _TuiDataInfo.
10409 (struct tui_source_info): Rename _TuiSourceInfo.
10410 (struct tui_command_info): Rename _TuiCommandInfo.
10411 (tui_initialize_static_data): Rename initializeStaticData.
10412 (tui_alloc_generic_win_info): Rename allocGenericWinInfo.
10413 (tui_alloc_win_info): Rename allocWinInfo.
10414 (tui_init_generic_part): Rename initGenericPart.
10415 (tui_init_win_info): Rename initWinInfo.
10416 (tui_alloc_content): Rename allocContent.
10417 (tui_add_content_elements): Rename addContentElements.
10418 (tui_init_content_element): Rename initContentElement.
10419 (tui_free_window): Rename freeWindow.
10420 (tui_free_win_content): Rename freeWinContent.
10421 (tui_free_data_content): Rename freeDataContent.
10422 (tui_free_all_source_wins_content): Rename
10423 freeAllSourceWinsContent.
10424 (tui_del_window): Rename tuiDelWindow.
10425 (tui_del_data_windows): Rename tuiDelDataWindows.
10426 (tui_partial_win_by_name): Rename partialWinByName.
10427 (tui_win_name): Rename winName.
10428 (tui_current_layout): Rename currentLayout.
10429 (tui_set_current_layout_to): Rename setCurrentLayoutTo.
10430 (tui_term_height): Rename termHeight.
10431 (tui_set_term_height_to): Rename setTermHeightTo.
10432 (tui_term_width): Rename termWidth.
10433 (tui_set_term_width_to): Rename setTermWidthTo.
10434 (tui_set_gen_win_origin): Rename setGenWinOrigin.
10435 (tui_locator_win_info_ptr): Rename locatorWinInfoPtr.
10436 (tui_source_exec_info_win_ptr): Rename tui_gen_win_info.
10437 (tui_disassem_exec_info_win_ptr): Rename disassemExecInfoWinPtr.
10438 (tui_source_windows): Rename sourceWindows.
10439 (tui_clear_source_windows): Rename clearSourceWindows.
10440 (tui_clear_source_windows_detail): Rename
10441 clearSourceWindowsDetail.
10442 (tui_clear_win_detail): Rename clearWinDetail.
10443 (tui_add_to_source_windows): Rename tuiAddToSourceWindows.
10444 (tui_default_tab_len): Rename tuiDefaultTabLen.
10445 (tui_set_default_tab_len): Rename tuiSetDefaultTabLen.
10446 (tui_win_with_focus): Rename tuiWinWithFocus.
10447 (tui_set_win_with_focus): Rename tuiSetWinWithFocus.
10448 (tui_layout_def): Rename tuiLayoutDef.
10449 (tui_win_resized): Rename tuiWinResized.
10450 (tui_set_win_resized_to): Rename tuiSetWinResizedTo.
10451 (tui_next_win): Rename tuiNextWin.
10452 (tui_prev_win): Rename tuiPrevWin.
10453 (tui_add_to_source_windows): Rename addToSourceWindows.
10454 * tui/tui-winsource.c, tui/tui-win.c: Update references.
10455 * tui/tui-layout.c, tui/tui-source.c: Ditto.
10456 * tui/tui-stack.c, tui/tui-io.c: Ditto.
10457 * tui/tui.c, tui/tui-data.c: Ditto.
10458 * tui/tui-interp.c, tui/tui-data.c: Ditto.
10459 * tui/tui-disasm.c, tui/tui-command.c: Ditto.
10460
a358af15
AC
10461 * tui/tui-source.h: Update copyright. Include "tui-data.h".
10462 (struct symtab): Declare.
10463 (tui_set_source_content): Rename tuiSetSourceContent.
10464 (tui_show_symtab_source): Rename tuiShowSource.
10465 (tui_source_is_displayed): Rename tuiSourceIsDisplayed.
10466 (tui_vertical_source_scroll): Rename tuiVerticalSourceScroll.
10467 * tui/tui-source.c: Update copyright. Update references.
10468 * tui/tui-win.c, tui/tui-winsource.c: Update references.
10469 * tui/tui-stack.c: Update references.
10470
a21fcd8f
AC
10471 * tui/tui-win.h: Update copyright. Include "tui-data.h".
10472 (struct tui_win_info): Declare.
10473 (tui_scroll_forward): Rename tuiScrollForward.
10474 (tui_scroll_backward): Rename tuiScrollBackward.
10475 (tui_scroll_left): Rename tuiScrollLeft.
10476 (tui_scroll_right): Rename tuiScrollRight.
10477 (tui_set_win_focus_to): Rename tuiSetWinFocusTo.
10478 (tui_resize_all): Rename tuiResizeAll.
10479 (tui_refresh_all_win): Rename tuiRefreshAll.
10480 (tui_sigwinch_handler): Rename tuiSigwinchHandler.
10481 * tui/tui-layout.c, * tui/tui-io.c: Update references.
10482 * tui/tui-wingeneral.h, * tui/tui.c: Update references.
10483 * tui/tui-disasm.c, * tui/tui-command.c: Update references.
10484
edae1ccf
AC
10485 * tui/tui-windata.h: Update copyright. Include "tui-data.h".
10486 (tui_erase_data_content): Rename tuiEraseDataContent.
10487 (tui_display_all_data): Rename tuiDisplayAllData.
10488 (tui_check_data_values): Rename tuiCheckDataValues.
10489 (tui_display_data_from_line): Rename tuiDisplayDataFromLine.
10490 (tui_first_data_item_displayed): Rename tuiFirstDataItemDisplayed.
10491 (tui_first_data_element_no_in_line): Rename
10492 tuiFirstDataElementNoInLine.
10493 (tui_delete_data_content_windows): Rename
10494 tuiDeleteDataContentWindows.
10495 (tui_refresh_data_win): Rename tuiRefreshDataWin.
10496 (tui_display_data_from): Rename tuiDisplayDataFrom.
10497 (tui_vertical_data_scroll): Rename tuiVerticalDataScroll.
10498 * tui/tui-windata.c, tui/tui-hooks.c: Update references.
10499 * tui/tui-win.c, tui/tui-regs.c: Update references.
10500 * tui/tui-layout.c, tui/tui.c: Update references.
10501
ec7d9e56
AC
10502 * tui/tui-wingeneral.h: Update copyright.
10503 (m_allBeVisible): Delete macro.
8a1dac83 10504 (m_allBeInvisible): Delete macro.
ec7d9e56
AC
10505 (struct tui_gen_win_info): Declare.
10506 (struct tui_win_info): Declare.
10507 (tui_unhighlight_win): Rename unhighlightWin.
10508 (tui_make_visible, tui_make_invisible): Replace makeVisible.
10509 (tui_make_all_visible, tui_make_all_invisible): Replace makeAllVisible.
10510 (tui_make_window): Rename makeWindow.
10511 (tui_copy_win): Rename copyWin.
10512 (tui_box_win): Rename boxWin.
10513 (tui_highlight_win): Rename highlightWin.
10514 (tui_check_and_display_highlight_if_needed): Rename
10515 checkAndDisplayHighlightIfNeeded.
10516 (tui_refresh_all): Rename refreshAll.
10517 (tui_delete_win): Rename tuiDelwin.
10518 (tui_refresh_win): Rename tuiRefreshWin.
10519 * tui/tui-wingeneral.c (make_visible): Rename makeVisible.
10520 (tui_make_visible, tui_make_invisible): New functions.
10521 (tui_make_all_visible, tui_make_all_invisible): New functions.
10522 (make_all_visible): Rename makeAllVisible.
10523 * tui/tui-winsource.c, tui/tui-windata.c: Update references.
10524 * tui/tui-data.c, tui/tui-winsource.c: Update references.
10525 * tui/tui-windata.c, tui/tui-win.c: Update references.
10526 * tui/tui-regs.c, tui/tui-layout.c: Update references.
10527 * tui/tui-data.h (struct tui_gen_win_info): Rename _TuiGenWinInfo.
10528
1e52e2eb
MK
105292004-02-06 Mark Kettenis <kettenis@gnu.org>
10530
10531 * proc-api.c (write_with_trace): Initialize local variable to
10532 silence compiler warning.
10533
f80bda8e
AC
105342004-02-06 Andrew Cagney <cagney@redhat.com>
10535
10536 * tui/tui-source.h: Do not include "defs.h".
10537 (struct tui_win_info): Declare.
10538 (tui_set_source_content_nil): Declare.
10539 * tui/tui-data.h (struct tui_win_info): Rename _TuiWinInfo.
10540 (union tui_line_or_address): Rename _TuiLineOrAddress.
10541 * tui/tui-winsource.h: Update copyright. Include "tui-data.h".
10542 (tui_update_source_window): Rename tuiUpdateSourceWindow.
10543 (tui_update_source_window_as_is): Rename
10544 tuiUpdateSourceWindowAsIs.
10545 (tui_update_source_windows_with_addr): Rename
10546 tuiUpdateSourceWindowsWithAddr.
10547 (tui_update_source_windows_with_line): Rename
10548 tuiUpdateSourceWindowsWithLine.
10549 (tui_clear_source_content): Rename tuiClearSourceContent.
10550 (tui_erase_source_content): Rename tuiEraseSourceContent.
10551 (tui_set_source_content_nil): Rename tuiSetSourceContentNil.
10552 (tui_show_source_content): Rename tuiShowSourceContent.
10553 (tui_horizontal_source_scroll): Rename tuiHorizontalSourceScroll.
10554 (tui_set_exec_info_content): Rename tuiSetExecInfoContent.
10555 (tui_show_exec_info_content): Rename tuiShowExecInfoContent.
10556 (tui_erase_exec_info_content): Rename tuiEraseExecInfoContent.
10557 (tui_clear_exec_info_content): Rename tuiClearExecInfoContent.
10558 (tui_update_exec_info): Rename tuiUpdateExecInfo.
10559 (tui_set_is_exec_point_at): Rename tuiSetIsExecPointAt.
10560 (tui_alloc_source_buffer): Rename tuiAllocSourceBuffer.
10561 (tui_line_is_displayed): Rename tuiLineIsDisplayed.
10562 (tui_addr_is_displayed): Rename tuiAddrIsDisplayed.
10563 (struct tui_win_info): Declare.
10564 * tui/tui-stack.c: Update references.
10565 * tui/tui-layout.c, tui/tui-winsource.c: Ditto.
10566 * tui/tui-win.c, tui/tui-source.c: Ditto.
10567 * tui/tui.c, tui/tui-disasm.c: Ditto.
10568
9fbfb822
MK
105692004-02-06 Mark Kettenis <kettenis@gnu.org>
10570
10571 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Fix calculation
10572 of UCONTEXT_ADDR. Fixes PR backtrace/1545.
10573
03cebad2
MK
105742004-02-05 Mark Kettenis <kettenis@gnu.org>
10575
10576 * infrun.c (handle_inferior_event): Allow for breakpoint
10577 instructions to generate a SIGSEGV in addition to SIGTRAP, SIGILL
10578 and SIGEMT. Update comments.
10579 * NEWS (Revised SPARC target): Mention support for non-executable
10580 stack.
10581
290281b1
MK
105822004-02-04 Mark Kettenis <kettenis@gnu.org>
10583
10584 * target.h (target_object): Add TARGET_OBJECT_WCOOKIE.
10585 * inftarg.c: Update copyright year.
10586 (child_xfer_partial): Add support for TARGET_OBJECT_WCOOKIE.
10587 * sparc-nat.c: Include "target.h" and "gdb_assert.h".
10588 (sparc_xfer_wcookie): New function.
10589 * sparc-tdep.c (sparc_fetch_wcookie): New function.
10590 * Makefile.in (sparc-nat.o): Update dependencies.
10591 * config/sparc/nm-nbsd.h: Include "target.h".
10592 (NATIVE_XFER_WCOOKIE): New define.
10593 (sparc_xfer_wcookie): New prototype.
10594
212161df
AC
105952004-02-04 Andrew Cagney <cagney@redhat.com>
10596
10597 * m68k-tdep.c (m68k_saved_pc_after_call): Delete #ifdef
10598 SYSCALL_TRAP function.
10599 (m68k_gdbarch_init): Delete #ifdef SYSCALL_TRAP code.
10600
6e4c6c91
DJ
106012004-02-04 Andrew Cagney <cagney@redhat.com>
10602 Daniel Jacobowitz <drow@mvista.com>
10603
10604 * objfiles.h: Delete comments refering to inside_entry_func and
10605 DEPRECATED_FRAME_CHAIN_VALID.
10606 * defs.h (inside_entry_func): Update prototype..
10607 * blockframe.c (inside_entry_func): Rename to
10608 legacy_inside_entry_func. Add new inside_entry_func taking a frame.
10609 * frame.c (get_prev_frame): Pass the frame to inside_entry_func.
10610
cae688ec
JJ
106112004-02-03 Jeff Johnston <jjohnstn@redhat.com>
10612
10613 * breakpoint.c (struct captured_parse_breakpoint_args): Move
10614 outside of #ifdef SOLIB_ADD region.
10615 (do_restore_lang_radix_cleanup): Ditto.
10616 (resolve_pending_breakpoint): Ditto.
10617
19217676
AC
106182004-02-03 Andrew Cagney <cagney@redhat.com>
10619
10620 * ia64-tdep.c (read_sigcontext_register): Delete unused function.
10621 (process_note_abi_tag_sections): Delete unused function.
10622 (ia64_read_fp): Delete unused function.
10623 (gdbarch_extract_struct_value_address): Delete declaration.
10624
876753be
AC
106252004-02-02 Andrew Cagney <cagney@redhat.com>
10626
10627 * vax-tdep.c (vax_frame_chain): Delete call to
10628 deprecated_inside_entry_file.
10629 * ns32k-tdep.c (ns32k_frame_chain): Ditto.
10630
d4f10bf2
MK
106312004-02-02 Mark Kettenis <kettenis@gnu.org>
10632
10633 * dwarf2-frame.c (dwarf2_frame_cache): Deal with a return address
10634 column that's "empty" or "same value" when eliminating REG_RA
10635 rules.
10636
cae688ec
JJ
106372004-02-02 Jeff Johnston <jjohnstn@redhat.com>
10638
10639 * NEWS: Add information about new pending breakpoint support.
10640
0101ce28
JJ
106412004-02-02 Jeff Johnston <jjohnstn@redhat.com>
10642
10643 * breakpoint.h (struct breakpoint): Add new flag, from_tty,
10644 and pending fields for pending breakpoint support.
10645 * breakpoint.c (breakpoint_enabled): Add check for not pending.
10646 (condition_command): Only parse condition if not a pending
10647 breakpoint.
10648 (print_one_breakpoint): Add support for pending breakpoints.
10649 (describe_other_breakpoints): Add checks to verify we are not
10650 dealing with pending breakpoints.
10651 (check_duplicates): Don't check pending breakpoints.
10652 (set_raw_breakpoint): Initialize pending flag.
10653 (do_restore_lang_radix_cleanup): New cleanup routine.
10654 (resolve_pending_breakpoint): New function.
10655 (re_enable_breakpoints_in_shlibs): Try and resolve any
10656 pending breakpoints via resolve_pending_breakpoint.
10657 (mention): Add pending breakpoint support.
10658 (parse_breakpoint_sals): Add new parameter to pass to
10659 decode_line_1 to indicate silent errors when files or functions
10660 are not found. Change all callers.
10661 (do_captured_parse_breakpoint): New function.
10662 (break_command_1): Change prototype to return an rc value and to
10663 take an optional pending breakpoint pointer. Support creating
10664 a pending breakpoint if a "not found" form of error occurs when
10665 parsing the breakpoint. Also support resolving an existing pending
10666 breakpoint and be silent if the resolution fails.
10667 (create_breakpoints): Change prototype to take pending breakpoint
10668 pointer. When resolving a pending breakpoint, use the new pointer
10669 to provide a conditional or commands added by the end-user.
10670 (delete_breakpoint): Add appropriate check for pending.
10671 (breakpoint_re_set_one): Ditto.
10672 (do_enable_breakpoint): Ditto.
10673
8d577d32
DC
106742004-02-02 David Carlton <carlton@kealia.com>
10675
10676 * valops.c (enum oload_classification): New.
10677 (find_overload_match): Break implementation into separate
10678 functions; delete #if 0'd code; look for symbols within
10679 namespaces.
10680 (find_oload_champ_namespace,find_oload_champ_namespace_loop)
10681 (find_oload_champ,oload_method_static,classify_oload_match): New.
10682 * cp-support.h: Add declaration for cp_func_name; update
10683 declaration for make_symbol_overload_list.
10684 * cp-support.c (cp_func_name): New.
10685 (overload_list_add_symbol): Fix comment, use
10686 SYMBOL_LINKAGE_NAME and SYMBOL_NATURAL_NAME.
10687 (make_symbol_overload_list): Take a function name and a namespace
10688 instead of a symbol; change implementation.
10689 (make_symbol_overload_list_using): New.
10690 (make_symbol_overload_list_qualified, read_in_psymtabs): New.
10691
22e8e3c7
FF
106922004-02-02 Fred Fish <fnf@redhat.com>
10693
10694 * main.c (gdb_stdtarg): Move definition to group with other
15390fef 10695 gdb_stdtarg definitions and update copyright years.
22e8e3c7
FF
10696 * remote-sim.c (gdb_os_write_stderr): Write output to
10697 gdb_stdtargerr stream instead of gdb_stdtarg stream.
10698 (gdb_os_flush_stderr): Flush gdb_stdtargerr steam instead of
15390fef 10699 gdb_stderr stream and update copyright years.
22e8e3c7 10700
6b753f60
DJ
107012004-02-01 Daniel Jacobowitz <drow@mvista.com>
10702
10703 * Makefile.in (mips-linux-nat.o): Update dependencies.
10704 * mips-linux-nat.c: Include mips-tdep.h.
10705
107062004-02-01 Roland McGrath <roland@redhat.com>
2cb6b099
RM
10707
10708 * sol-thread.c (sol_thread_xfer_partial): New function.
10709 (init_sol_thread_ops): Use that for to_xfer_partial hook.
10710 (init_sol_core_ops): Likewise.
10711
10712 * procfs.c (procfs_xfer_partial): New function.
10713 (init_procfs_ops): Use that for procfs_ops.to_xfer_partial.
10714 * Makefile.in (procfs.o): Add $(auxv_h) dep.
10715
10716 * config/nm-linux.h (NATIVE_XFER_AUXV): New macro, uses auxv.c's
10717 procfs_xfer_auxv function.
10718
10719 * procfs.c (procfs_make_note_section): If we can read
10720 TARGET_OBJECT_AUXV data, add an NT_AUXV note containing it.
10721 * linux-proc.c (linux_make_note_section): Likewise.
10722
10723 * auxv.h: New file.
10724 * auxv.c: New file.
10725 * Makefile.in (auxv_h): New variable.
10726 (COMMON_OBS): Add auxv.o here.
10727 (auxv.o): New target.
10728
10729 * corelow.c (core_xfer_partial): New function.
10730 (init_core_ops): Use it for core_ops.to_xfer_partial.
10731
10732 * target.h (enum target_object): Add TARGET_OBJECT_AUXV.
10733 * inftarg.c (child_xfer_partial): Support it using NATIVE_XFER_AUXV
10734 macro if that is defined.
10735
fa5281d0
DJ
107362004-02-01 Daniel Jacobowitz <drow@mvista.com>
10737
10738 * breakpoint.c (bpstat_stop_status): Take a ptid_t argument,
10739 and check the specified thread for each breakpoint.
10740 * breakpoint.h (bpstat_stop_status): Update prototype.
10741 * infrun.c (handle_inferior_event): Update calls to
10742 bpstat_stop_status.
10743
26ee262d
DJ
107442004-02-01 Daniel Jacobowitz <drow@mvista.com>
10745
10746 * Makefile.in (cli-cmds.o): Add $(readline_h).
10747
d9b52655
DJ
107482004-02-01 Daniel Jacobowitz <drow@mvista.com>
10749
10750 * cli/cli-cmds.c: Include readline.h.
10751 (complete_command): Pass the start of the last word to
10752 complete_line.
10753
9709f61c
DJ
107542004-01-31 Daniel Jacobowitz <drow@mvista.com>
10755
10756 * breakpoint.c (bpstat_stop_status): Remove not_a_sw_breakpoint
10757 argument, and change first argument to a CORE_ADDR.
10758 * breakpoint.h (bpstat_stop_status): Update prototype.
10759 * infrun.c (adjust_pc_after_break): Add a new comment.
10760 (handle_inferior_event): Update calls to bpstat_stop_status.
10761
4f1280bb
DJ
107622004-01-31 Daniel Jacobowitz <drow@mvista.com>
10763
10764 * breakpoint.h: Update copyright years.
10765
4fa8626c
DJ
107662004-01-31 Daniel Jacobowitz <drow@mvista.com>
10767
10768 * breakpoint.c (software_breakpoint_inserted_here_p): New function.
10769 (bpstat_stop_status): Don't decrement PC.
10770 * breakpoint.h (software_breakpoint_inserted_here_p): Add
10771 prototype.
10772 * infrun.c (adjust_pc_after_break): New function.
10773 (handle_inferior_event): Call it, early. Remove later references
10774 to DECR_PC_AFTER_BREAK.
10775 (normal_stop): Add commentary.
10776
fad0733a
DJ
107772004-01-31 Daniel Jacobowitz <drow@mvista.com>
10778
10779 * breakpoint.c (breakpoint_re_set_one): Add missing chunk of
10780 2004-01-27 double-free fix.
10781
42cdca6c
MK
107822004-01-31 Mark Kettenis <kettenis@gnu.org>
10783
10784 * sparc-tdep.c (sparc_fetch_wcookie): New function.
10785 (sparc32_frame_prev_register): Handle StackGhost.
10786 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
10787
932d5416
RM
107882004-01-29 Roland McGrath <roland@redhat.com>
10789
10790 * configure.in (NEW_PROC_API): Also match solaris2.9 for this test.
10791 * configure: Regenerated.
10792
10793 * procfs.c: Include gdb_string.h for str* decls, otherwise warnings.
10794 * Makefile.in (procfs.o): Add dep.
10795
47d3492a
AC
107962004-01-28 Andrew Cagney <cagney@redhat.com>
10797
10798 * tui/tui-stack.h: Update copyright.
10799 (struct frame_info): Add opaque declaration.
10800 (tui_update_locator_filename): Rename tuiUpdateLocatorFilename.
10801 (tui_show_locator_content): Rename tuiShowLocatorContent.
10802 (tui_show_frame_info): Rename tuiShowFrameInfo.
10803 * tui/tui-stack.c: Update copyright. Update references.
10804 * tui/tui-winsource.c: Update references.
10805 * tui/tui-win.c: Update references.
10806 * tui/tui-layout.c: Update references.
10807 * tui/tui-hooks.c: Update copyright, update references.
10808 * tui/tui.c: Update copyright, update references.
10809 * tui/tui-disasm.c: Update references.
10810
5d51ca54
DC
108112004-01-28 David Carlton <carlton@kealia.com>
10812
10813 * dwarf2read.c (add_partial_structure): Use demangled name if
10814 namespace equals "".
10815
086ed43d
JB
108162004-01-27 Jim Blandy <jimb@redhat.com>
10817
10818 Clean up misapplied patch:
10819 * dwarf2read.c (determine_prefix): Change one of the two forward
10820 declarations for 'determine_prefix_aux' to a declaration for this.
10821 (read_func_scope): Use cu->language, not cu_language. Pass 'cu'
10822 argument to 'die_specification'.
10823
2a35147e
JB
10824 * dwarf2read.c (read_func_scope): Re-indent comment.
10825
a355c7de 108262004-01-27 Paul N. Hilfinger <hilfinger@gnat.com>
932d5416 10827
a355c7de
AC
10828 * breakpoint.c (breakpoint_re_set_one): Set b->cond, b->val, and
10829 b->exp to NULL after freeing so that error during re-parsing or
10830 evaluation of expressions associated with breakpoint don't
10831 eventually lead to re-freeing of storage.
10832 Committed by Andrew Cagney.
10833
63ff5125
AC
108342004-01-27 Andrew Cagney <cagney@redhat.com>
10835
10836 * source.c (ambiguous_line_spec): Delete undefined declaration.
10837 * m32r-rom.c (m32r_set_board_address): Delete unused function.
10838 (m32r_set_server_address, m32r_set_download_path): Ditto.
10839 * remote-fileio.c (remote_fileio_to_fio_int): Ditto.
10840
e142c38c
DJ
108412004-01-27 Daniel Jacobowitz <drow@mvista.com>
10842
10843 * dwarf2read.c: Update calls to changed and renamed functions, and
10844 references to moved variables.
10845
10846 (struct dwarf2_cu): Add first_fn, last_fn, cached_fn,
10847 language, language_defn, list_in_scope, and ftypes members.
10848 (cu_first_fn, cu_last_fn, cu_cached_fn, cu_language)
10849 (cu_language_defn, list_in_scope, ftypes, cu_header_offset)
10850 (baseaddr): Remove globals.
10851
10852 (dwarf_attr): Renamed to dwarf2_attr. Add CU argument.
10853 (set_cu_language, die_is_declaration, die_specification)
10854 (determine_prefix, determin_prefix_aux, class_name, namespace_name)
10855 (dwarf2_linkage_name, dwarf2_name, dwarf2_extension)
10856 (dwarf2_get_ref_die_offset, dwarf2_fundamental_type)
10857 (initialize_cu_func_list, add_to_cu_func_list): Add CU argument.
10858
10859 (dwarf2_build_psymtabs_hard): Add local baseaddr. Initialize
10860 cu.list_in_scope. Don't initialize cu_header_offset.
10861 (add_partial_symbol): Add local baseaddr.
10862 (psymtab_to_symtab_1): Add local baseaddr. Use
10863 objfile->section_offsets for consistency. Don't initialize
10864 cu_header_offset; do initialize cu.header.offset and
10865 cu.list_in_scope.
10866 (read_file_scope, read_func_scope, read_lexical_block_scope)
10867 (dwarf_decode_lines, new_symbol): Add local baseaddr.
10868
c6e06ede
MC
108692004-01-27 Michael Chastain <mec.gnu@mindspring.com>
10870
fb328ecc 10871 * PROBLEMS: Add gdb/1516.
c6e06ede 10872
48184fd4
AC
108732003-12-29 Robert Millan <robertmh@gnu.org>
10874
10875 Patch committed by Andrw Cagney.
10876 * configure.host: Match knetbsd*-gnu and kfreebsd*-gnu.
10877 * configure.tgt: Match knetbsd*-gnu.
10878
c1321b30
AC
108792004-01-26 Andrew Cagney <cagney@redhat.com>
10880
f3699be3
AC
10881 * breakpoint.c (catch_command_1): Delete #ifdef code.
10882 (catch_fork_command_1): Delete #ifdef wrapper.
10883 (catch_exec_command_1): Ditto.
10884 (catch_load_command_1): Ditto.
10885 (catch_unload_command_1): Ditto.
10886
c1321b30
AC
10887 * breakpoint.c (watchpoint_check): Delete #if0ed variable.
10888 (catch_breakpoint): Delete #if0ed function.
10889 (disable_catch_breakpoint): Ditto.
10890 (delete_catch_breakpoint, enable_catch_breakpoint): Ditto.
10891 (disable_catch, enable_catch, delete_catch): Ditto.
10892
b4501125
AC
108932004-01-26 Andrew Cagney <cagney@redhat.com>
10894
10895 * remote.c (echo_check, quit_flag): Delete variables.
10896 (cisco_kernel_mode): Delete variable.
10897 (minitelnet_return, tty_input, escape_count): Delete variables.
10898 (remote_cisco_mode): Delete variable.
10899 (remote_cisco_open, remote_cisco_close): Delete function.
10900 (remote_cisco_mourn, remote_cisco_wait): Delete function.
10901 (init_remote_cisco_ops): Delete function.
10902 (_initialize_remote): Do not install "remote cisco" code.
10903 (read_frame): Delete cisco specific code.
10904 (remote_info_process): Delete function.
10905 (remote_wait): Delete cisco specific code.
10906 (remote_cisco_section_offsets): Delete function.
10907 (remote_cisco_objfile_relocate): Delete function.
10908 (remote_async_wait): Delete cisco specific code.
10909 (minitelnet, readtty, readsocket): Delete function.
10910
74055713
AC
109112004-01-26 Andrew Cagney <cagney@redhat.com>
10912
10913 * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS): Deprecate. Add
10914 comments mentioning extract_returned_value_address.
10915 * infcmd.c (print_return_value): Update. Add comments on
10916 extract_returned_value_address.
10917 * stack.c (return_command): Add comments on
10918 extract_returned_value_address.
10919 * values.c: Update comment.
10920 * m32r-tdep.c: Update comment.
10921 * sparc-tdep.c: Update comment.
10922 * ia64-tdep.c (ia64_use_struct_convention): Update comment.
10923 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10924 * sh64-tdep.c (sh64_gdbarch_init): Update.
10925 * sh-tdep.c (sh_gdbarch_init): Update.
10926 * s390-tdep.c (s390_gdbarch_init): Update.
10927 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10928 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
10929 * m68k-tdep.c (m68k_gdbarch_init): Update.
10930 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10931 * m32r-tdep.c (m32r_gdbarch_init): Update.
10932 * ia64-tdep.c (ia64_gdbarch_init): Update.
10933 * h8300-tdep.c (h8300_gdbarch_init): Update.
10934 * frv-tdep.c (frv_gdbarch_init): Update.
10935 * arm-tdep.c (arm_gdbarch_init): Update.
10936 * alpha-tdep.c (alpha_gdbarch_init): Update.
10937
a67af2b9
AC
109382004-01-26 Andrew Cagney <cagney@redhat.com>
10939
10940 * dwarf2loc.c (dwarf_expr_frame_base): Use SYMBOL_OPS instead of
10941 SYMBOL_LOCATION_FUNCS
10942 (dwarf2_loclist_funcs, dwarf2_locexpr_funcs): Change type to
10943 "struct symbol_ops".
10944 * dwarf2loc.h (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Change
10945 type to "struct symbol_ops".
10946 * symtab.h (struct symbol_ops): Rename "struct location_funcs".
10947 (struct symbol): Replace ".aux_value.loc.funcs" and
10948 ".aux_value.loc.baton" with ".ops" and ".aux_value.ptr".
10949 (SYMBOL_OBJFILE): Delete macro.
10950 (SYMBOL_LOCATION_FUNCS): Delete macro.
10951 (SYMBOL_LOCATION_BATON): Update.
10952 * dwarf2read.c (dwarf2_symbol_mark_computed): Set SYMBOL_OPS
10953 intead of SYMBOL_LOCATION_FUNCS.
10954 * ax-gdb.c (gen_var_ref): Ditto.
10955 * printcmd.c (address_info): Ditto.
10956 * findvar.c (read_var_value): Ditto.
10957 (symbol_read_needs_frame): Ditto.
10958
c034e007
AC
109592004-01-26 Andrew Cagney <cagney@redhat.com>
10960
10961 * dwarf2read.c (read_func_scope): Document frame-base hack.
10962
bb472c1e
MK
109632004-01-25 Mark Kettenis <kettenis@gnu.org>
10964
10965 * infcmd.c (print_return_value): Plug memory leak; delete
10966 ui_stream object. Rename argument `structure_return' to
10967 `struct_return'.
10968
c8e737d5
MK
109692004-01-25 Mark Kettenis <kettenis@gnu.org>
10970
f941662f
MK
10971 * infcmd.c (print_return_value): Wrap long lines.
10972 (finish_command_continuation, finish_command): Remove unused
10973 variable `funcaddr'. Fix some coding-standards problems.
10974
c558d81a 10975 * sparc-tdep.c (sparc_regset_from_core_section): Check whether
d8d65dd3 10976 SECT_SIZE is large enough, not whether it's exactly the right size.
c558d81a
MK
10977 (sparc32_gdbarch_init): Initialize TDEP->sizeof_gregset and
10978 TDEP->fpregset to zero.
10979
bf1e5861 10980 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Also supply the
c8e737d5
MK
10981 floating-point registers for traditional NetBSD core files.
10982 (sparc32nbsd_init_abi): Initialize TDEP->sizeof_gregset and
10983 TDEP->sizeof_fpregset here.
10984
4c72d57a
MK
109852004-01-25 Mark Kettenis <kettenis@gnu.org>
10986
566626fa
MK
10987 * sparc-tdep.h (sparc32nbsd_sigcontext_saved_regs): New prototype.
10988 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): New
10989 function with code split out from
10990 sparc32nbsd_sigcontext_frame_cache.
10991 (sparc32nbsd_sigcontext_frame_cache): Use
10992 sparc32nbsd_sigcontext_saved_regs.
10993 (_initialize_sparc32nbsd_tdep): Don't register OS ABI handler for
10994 OpenBSD.
10995 * sparcobsd-tdep.c: New file.
10996 * Makefile.in (ALLDEPFILES): Add sparcobsd-tdep.c.
10997 (sparcobsd-tdep.o): New dependency.
10998 * configure.tgt (sparc-*-openbsd*): Set gdb_target to obsd.
10999 * config/sparc/obsd.mt: New file.
11000
4c72d57a
MK
11001 * sparc-tdep.c (sparc32_gdbarch_init): Don't require
11002 TDEP->fpregset to be initialized to enable core file register
11003 sets.
11004
7e5e9f88
MK
110052004-01-24 Mark Kettenis <kettenis@gnu.org>
11006
f0f207fd 11007 * sparc64-tdep.h (struct frame_info, struct trad_frame_saved_reg):
1e067c66
MK
11008 Add opaque declarations.
11009 (sparc64nbsd_sigcontext_saved_regs): New prototype.
11010 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): New
11011 function with code split out from
11012 sparc64nbsd_sigcontext_frame_cache.
11013 (sparc64nbsd_sigcontext_frame_cache): Use
11014 sparc64nbsd_sigcontext_saved_regs.
11015 (_initialize_sparc64nbsd_tdep): Don't register OS ABI handler for
11016 OpenBSD.
11017 * sparc64obsd-tdep.c: New file.
11018 * Makefile.in (ALLDEPFILES): Add sparc64obsd-tdep.c.
11019 (sparc64obsd-tdep.o): New dependency.
11020 * configure.tgt (sparc64-*-openbsd*): Set gdb_target to obsd64 and
11021 gdb_osabi to GDB_OSABI_OPENBSD_ELF.
11022 * config/sparc/obsd64.mt: New file.
11023
690668cc
MK
11024 * sparc-tdep.c (sparc_fetch_instruction): Return zero if we can't
11025 read the instruction at PC.
11026
7e5e9f88
MK
11027 * sparcnbsd-tdep.c (GDB_OSABI_NETBSD_CORE): Define, based on the
11028 value of GDB_OSABI_DEFAULT.
11029 (sparcnbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_CORE
11030 instead of GDB_OSABI_NETBSD_AOUT.
11031
68b6dce9
NR
110322004-01-24 Nick Roberts <nick@nick.uklinux.net>
11033
11034 * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-cmds.h: Update
11035 copyright.
11036
080ce8c0
AC
110372004-01-23 Andrew Cagney <cagney@redhat.com>
11038
11039 * printcmd.c (display_command): Replace tui_set_display call with
11040 tui_set_layout_for_display_command.
11041 * tui/tui.h (enum tui_win_type): Define.
11042 (tui_set_layout): Delete declaration.
11043 (tui_set_layout_for_display_command): Rename set_tui_layout.
11044 * tui/tui-data.h (enum tui_layout_type): Define.
11045 * tui/tui-layout.h: Update copyright. Include "tui-data.h" and
11046 "tui.h".
11047 (tui_add_win_to_layout): Rename tuiAddWinToLayout.
11048 (tui_default_win_height): Rename tuiDefaultWinHeight.
11049 (tui_default_win_viewport_height): Rename
11050 tuiDefaultWinViewportHeight.
11051 (tui_set_layout): RenametuiSetLayout.
11052 * tui/tui-layout.c: Update references.
11053 * tui/tui.c: Update references.
11054 * tui/tui-disasm.c: Update references.
11055
b368761e
DC
110562004-01-23 David Carlton <carlton@kealia.com>
11057
11058 Partial workaround for PR c++/1511:
11059 * cp-namespace.c: Include frame.h.
11060 (cp_lookup_transparent_type): New
11061 (cp_lookup_transparent_type_loop): New.
11062 * cp-support.h: Declare cp_lookup_transparent_type.
11063 * symtab.c (basic_lookup_transparent_type): Renamed from
11064 lookup_transparent_type.
11065 (lookup_transparent_type): Replace old body by a call to
11066 current_language->la_lookup_transparent_type.
11067 * symtab.h: Update copyright. Declare
11068 basic_lookup_transparent_type.
11069 * language.h: Update copyright.
11070 (struct language_defn): Add la_lookup_transparent_type.
11071 * language.c: Update copyright.
11072 (unknown_language_defn): Add basic_lookup_transparent_type.
11073 (auto_language_defn): Add basic_lookup_transparent_type.
11074 (local_language_defn): Add basic_lookup_transparent_type.
11075 * ada-lang.c: Update copyright.
11076 (ada_language_defn): Add basic_lookup_transparent_type.
11077 * c-lang.c: Update copyright.
11078 (c_language_defn): Add basic_lookup_transparent_type.
11079 (cplus_language_defn): Add basic_lookup_transparent_type.
11080 (asm_language_defn): Add basic_lookup_transparent_type.
11081 (minimal_language_defn): Add basic_lookup_transparent_type.
11082 * f-lang.c: Update copyright.
11083 (f_language_defn): Add basic_lookup_transparent_type.
11084 * jv-lang.c: Update copyright.
11085 (java_language_defn): Add basic_lookup_transparent_type.
11086 * m2-lang.c: Update copyright.
11087 (m2_language_defn): Add basic_lookup_transparent_type.
11088 * objc-lang.c: Update copyright.
11089 (objc_language_defn): Add basic_lookup_transparent_type.
11090 * p-lang.c: Update copyright.
11091 (p_language_defn): Add basic_lookup_transparent_type.
11092 * scm-lang.c: Update copyright.
11093 (scm_language_defn): Add basic_lookup_transparent_type.
11094 * Makefile.in (cp-namespace.o): Depend on frame.h.
11095
fdde2d81
DC
110962004-01-23 David Carlton <carlton@kealia.com>
11097
11098 Patch for PR c++/1520:
11099 * dwarf2read.c (read_func_scope): Set processing_current_prefix
11100 properly if we have a specification die.
11101 (determine_prefix_aux): Rename from determine_prefix.
11102 (determine_prefix): Like the old determine_prefix, but never
11103 returns NULL.
11104
5b828b6b
TR
111052004-01-23 Theodore A. Roth <troth@openavr.org>
11106
11107 * avr-tdep.c: Update copyright.
11108 (avr_iaddr_p): Delete unused function.
11109 (avr_saddr_p): Delete unused function.
11110
a1b8c067
DC
111112004-01-23 David Carlton <carlton@kealia.com>
11112
11113 * symfile.c (reread_symbols): Clear objfile->cp_namespace_symtab.
11114 Fix for PR symtab/1534.
11115
f2cab569
MK
111162004-01-23 Mark Kettenis <kettenis@gnu.org>
11117
11118 * NEWS (New native configurations): Mention OpenBSD/sparc and
11119 OpenBSD/sparc64.
11120 * configure.tgt: Add sparc-*-openbsd* and sparc64-*-openbsd*.
11121 * configure.host: Likewise.
11122 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Register OS ABI
11123 handler for OpenBSD.
11124 * sparc64nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Likewise.
11125
642d8300
MK
111262004-01-22 Mark Kettenis <kettenis@gnu.org>
11127
89aac506
MK
11128 * sparcnbsd-tdep.c (sparcnbsd_core_osabi_sniffer): New function.
11129 (_initialize_sparnbsd_tdep): Register sparcnbsd_core_osabi_sniffer.
11130
36662fde
MK
11131 * ser-pipe.c (pipe_open): Use proper null pointer in execl call.
11132 * cli/cli-cmds.c (shell_escape): Likewise.
11133
642d8300
MK
11134 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Recognize
11135 OpenBSD .note.openbsd.ident sections.
11136
fae299cd
DC
111372004-01-22 David Carlton <carlton@kealia.com>
11138
11139 * dwarf2read.c (psymtab_to_symtab_1): Calculate lowpc, highpc via
11140 get_scope_pc_bounds.
11141 (read_file_scope): Ditto.
11142 (get_scope_pc_bounds): New function, produced by extracting code
11143 from the above two functions, consolidating it, and adding support
11144 for DW_TAG_namespace.
11145
a49d618c
MK
111462004-01-22 Mark Kettenis <kettenis@gnu.org>
11147
11148 * osabi.c (MAX_NOTESZ): New define.
11149 (check_note): New function.
11150 (generic_elf_osabi_sniff_abi_tag_sections): Reorganize code using
11151 check_note.
11152
fe61caab
RM
111532004-01-21 Roland McGrath <roland@redhat.com>
11154
11155 * MAINTAINERS (write after approval): Add myself.
11156
ec145965
EZ
111572004-01-21 Eli Zaretskii <eliz@gnu.org>
11158
11159 * utils.c (init_page_info): Move declarations of `rows' and
11160 `cols' before the __GO32__-specific code. Move the closing brace
11161 outside the #ifdef __GO32__..#endif block.
11162 [__GO32__]: Use `rows' and `cols' to avoid compiler warnings.
11163
877522db
PB
111642004-01-21 Paul Brook <paul@codesourcery.com>
11165
11166 * infrun.c (handle_inferior_event): Check stop_stack_dummy if handling
11167 BPSTAT_WHAT_CHECK_SHLIBS.
11168
dbf5be1c
PB
111692004-01-21 Paul Brook <paul@codesourcery.com>
11170
11171 * MAINTAINERS: Add myself to write-after-approval.
11172
81f08b92
AC
111732004-01-20 Andrew Cagney <cagney@redhat.com>
11174
5a1efed7
AC
11175 * ax-gdb.c (print_axs_value): Delete unused function.
11176 * jv-lang.c (java_lookup_type): Delete unused function.
11177 * cli/cli-dump.c (dump_filetype): Delete unused function.
11178 * remote-mips.c (remote_mips_insert_hw_breakpoint)
11179 (remote_mips_remove_hw_breakpoint): Delete unused functions.
11180 (mips_getstring): Delete unused function.
11181 (pmon_insert_breakpoint): Delete #if0ed function.
11182 (PMON_MAX_BP): Delete #if0ed MACRO.
11183 (mips_pmon_bp_info): Delete #if0ed variable.
11184 (pmon_remove_breakpoint): Delete #if0ed function.
11185 * monitor.c (monitor_write_even_block): Delete unused function.
11186 (monitor_write_memory_block): Delete #if0ed code.
11187 * dink32-rom.c (dink32_load): Delete unused function.
11188 (_initialize_dink32_rom): Delete #if0ed code.
11189 * d10v-tdep.c (d10v_daddr_p): Delete unused function.
11190
b0a30fce
AC
11191 * tui/tui-command.c: Update references.
11192 * tui/tui-io.c: Update references.
11193 * tui/tui-command.h: Update copyright.
11194 (tui_dispatch_ctrl_char): Rename tuiDispatchCtrlChar.
11195
81f08b92
AC
11196 * source.c (ambiguous_line_spec): Delete never-defined function.
11197 * remote-rdi.c (arm_rdi_mourn, arm_rdi_send): Ditto.
11198 * gdbtypes.c (add_name, add_mangled_type): Ditto.
11199 * cli/cli-cmds.c (validate_comname): Ditto.
11200
65f05602
AC
11201 * tui/tui-disasm.h: Update copyright. Include "tui.h" and
11202 "tui-data.h".
11203 (tui_set_disassem_content): Rename tuiSetDisassemContent.
11204 (tui_show_disassem): Rename tuiShowDisassem.
11205 (tui_show_disassem_and_update_source): Rename
11206 tuiVerticalDisassemScroll.
11207 (tui_vertical_disassem_scroll): Rename tuiVerticalDisassemScroll.
11208 (tui_get_begin_asm_address): Rename tuiGetBeginAsmAddress.
11209 * tui/tui.h: Update copyright.
11210 (enum tui_status): Define.
11211 * tui/tui-data.h (enum tui_scroll_direction): Define.
11212 * tui/tui-disasm.c: Update copyright. Update references.
11213 * tui/tui-winsource.c: Update copyright. Update references.
11214 * tui/tui-win.c: Update references.
11215 * tui/tui-layout.c: Update references.
11216
6bb0384f
AC
112172004-01-20 Andrew Cagney <cagney@redhat.com>
11218
11219 * mi/mi-cmd-stack.c (list_args_or_locals): Move declaration of
11220 sym2 to start of block.
11221
9175c9a3
MC
112222004-01-19 Michael Chastain <mec.gnu@mindspring.com>
11223
11224 * MAINTAINERS: Delete mmalloc.
11225 * Makefile.in: Delete MMALLOC, MMALLOC_CFLAGS, -lmmalloc, mmalloc_h.
11226 * NEWS: Mention removal of --with-malloc.
11227 * acconfig.h: Delete USE_MMALLOC, MMCHECK_FORCE.
11228 * config.in: Regenerate.
11229 * configure: Regenerate.
6bb0384f
AC
11230 * configure.in: Delete MMALLOC_CFLAGS, MMALLOC, --with-mmalloc,
11231 USE_MMALLOC, MMCHECK_FORCE.
9175c9a3
MC
11232 * gdbinit.in: Remove mmalloc.
11233 * utils.c: Delete USE_MMALLOC, NO_MMCHECK, MMCHECK_FORCE, malloc_botch.
11234 * config/alpha/alpha-linux.mh: Delete MMALLOC, MMALLOC_CFLAGS.
11235 * config/i386/go32.mh: Likewise.
11236 * config/i386/interix.mh: Likewise.
11237 * config/powerpc/xm-linux.h: Delete MMAP_BASE_ADDRESS, MMAP_INCREMENT.
11238
4fcef00a
JJ
112392004-01-19 Jeff Johnston <jjohnstn@redhat.com>
11240
11241 * linespec.c (decode_variable, symtab_from_filename): Call
11242 error_silent with error message instead of throwing an exception
11243 directly.
11244 * defs.h (error_silent, error_output_message): Add prototypes.
11245 (catch_exceptions_with_msg): Ditto.
11246 * utils.c (error_silent, error_output_message): New functions.
11247 * top.c (catch_exceptions_with_msg): New function.
11248
8e94b928
NR
112492004-01-20 Nick Roberts <nick@nick.uklinux.net>
11250
11251 * mi/mi-cmds.h (enum print_values): Add definition.
11252
11253 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Print the name,
11254 type and value for simple data types and just the name and type
11255 for complex ones, if required.
11256
11257 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Print the values of the
11258 children, if required.
11259
a02d6af8
KB
112602004-01-19 Kevin Buettner <kevinb@redhat.com>
11261
11262 * frv-tdep.c (frv_push_arguments, frv_saved_pc_after_call): Delete
11263 unused declarations.
11264
78a4a9b9
AC
112652004-01-19 Andrew Cagney <cagney@redhat.com>
11266
11267 * top.h (mapped_symbol_files): Delete declaration.
11268 * main.c (captured_main): Delete option "m" and "mapped".
11269 * objfiles.c (mapped_symbol_files): Delete variable.
11270 * symfile.c (symbol_file_command): Delete mmap code.
11271 (symbol_file_add_with_addrs_or_offsets): Ditto.
11272 (add_symbol_file_command, reread_separate_symbols): Ditto.
11273 * objfiles.h (OBJF_MAPPED): Delete.
11274 * objfiles.c (allocate_objfile) [USE_MMALLOC]: Delete.
11275 (free_objfile) [USE_MMALLOC]: Ditto.
11276 (open_existing_mapped_file): Delete function.
11277 (open_mapped_file): Delete function.
11278 (map_to_file): Delete function.
11279
2dbd5e30
KB
112802004-01-19 Kevin Buettner <kevinb@redhat.com>
11281
11282 * infrun.c (step_into_function): Account for possible breakpoint
11283 adjustment when computing ``stop_func_start''.
11284
437b434f
KB
112852004-01-19 Kevin Buettner <kevinb@redhat.com>
11286
11287 * target.c (default_region_size_ok_for_hw_watchpoint): Compare
11288 the region size against the size of a pointer, not the size of
11289 a register as given by DEPRECATED_REGISTER_SIZE.
11290
55fb0713
AC
112912004-01-19 Andrew Cagney <cagney@redhat.com>
11292
11293 * tui/tui-regs.h: Include "tui-data.h".
11294 (tuiFirstRegElementNoInLine): Delete declaration.
11295 (tui_display_registers_from): Rename tuiDisplayRegistersFrom.
11296 (tui_last_regs_line_no): Rename tuiLastRegsLineNo.
11297 (tui_line_from_reg_element_no): Rename tuiLineFromRegElementNo.
11298 (tui_calculate_regs_column_count): Rename
11299 tuiCalculateRegsColumnCount.
11300 (tui_check_register_values): Rename tuiCheckRegisterValues.
11301 (tui_show_registers): Rename tuiShowRegisters.
11302 (tui_display_registers_from_line): Rename
11303 tuiDisplayRegistersFromLine.
11304 (tui_first_reg_element_inline): Rename tuiFirstRegElementInLine.
11305 (tui_toggle_float_regs): Rename tuiToggleFloatRegs.
11306 (tui_first_reg_element_no_inline): Rename
11307 tuiFirstRegElementNoInLine.
11308 * tui/tui-data.h: Update copyright.
11309 (enum tui_register_display_type): Rename _TuiRegisterDisplayType.
11310 * tui/tui-windata.c: Update copyright, update references.
11311 * tui/tui-regs.c: Update copyright, update references.
11312 * tui/tui-win.c: Update copyright, update references.
11313 * tui/tui-layout.c: Update copyright, update references.
fe61caab 11314
cebe9500
AC
113152004-01-18 Andrew Cagney <cagney@redhat.com>
11316
bcdf1568
AC
11317 * tui/tui-io.c: Update copyright.
11318 (key_is_end_sequence, key_is_backspace): New functions.
11319 (key_is_command_char, key_is_start_sequence): New function.
11320 (tui_getc): Update references.
11321 * tui/tui-io.h: Update copyright.
11322 (m_tuiStartNewLine): Delete macro.
11323 (m_isBackspace, m_isDeleteChar): Delete macros.
11324 (m_isDeleteLine, m_isDeleteToEol): Delete macros.
11325 (m_isNextPage, m_isPrevPage): Delete macros.
11326 (m_isLeftArrow, m_isRightArrow): Delete macros.
11327 (m_isXdbStyleCommandChar): Delete macro.
11328 (key_is_start_sequence): Declare, replace m_isStartSequence.
11329 (key_is_end_sequence): Declare, replace m_isEndSequence.
11330 (key_is_backspace): Declare ,replace m_isBackspace.
11331 (key_is_command_char): Declare, replace m_isCommandChar.
11332 * tui/tui-command.c: Update copyright.
11333 (tuiDispatchCtrlChar): Update references.
11334
130d87e6
AC
11335 * config/djgpp/fnchange.lst: Delete tui/tuiSourceWin.c and
11336 tuiSourceWin.h.
11337
d7b2e967
AC
11338 * tui/tui-command.c: Rename tui/tuiCommand.c.
11339 * tui/tui-command.h: Rename tui/tuiCommand.h.
11340 * tui/tui-data.c: Rename tui/tuiData.c.
11341 * tui/tui-data.h: Rename tui/tuiData.h.
11342 * tui/tui-disasm.c: Rename tui/tuiDisassem.c.
11343 * tui/tui-disasm.h: Rename tui/tuiDisassem.h.
11344 * tui/tui-io.c: Rename tui/tuiIO.c.
11345 * tui/tui-io.h: Rename tui/tuiIO.h.
11346 * tui/tui-layout.c: Rename tui/tuiLayout.c.
11347 * tui/tui-layout.h: Rename tui/tuiLayout.h.
11348 * tui/tui-regs.c: Rename tui/tuiRegs.c.
11349 * tui/tui-regs.h: Rename tui/tuiRegs.h.
11350 * tui/tui-source.c: Rename tui/tuiSource.c.
11351 * tui/tui-source.h: Rename tui/tuiSource.h.
11352 * tui/tui-stack.c: Rename tui/tuiStack.c.
11353 * tui/tui-stack.h: Rename tui/tuiStack.h.
11354 * tui/tui-win.c: Rename tui/tuiWin.c.
11355 * tui/tui-win.h: Rename tui/tuiWin.h.
11356 * tui/tui-windata.c: Rename tui/tuiDataWin.c.
11357 * tui/tui-windata.h: Rename tui/tuiDataWin.h.
11358 * tui/tui-wingeneral.c: Rename tui/tuiGeneralWin.c.
11359 * tui/tui-wingeneral.h: Rename tui/tuiGeneralWin.h.
11360 * tui/tui-winsource.c: Rename tui/tuiSourceWin.c.
11361 * tui/tui-winsource.h: Rename tui/tuiSourceWin.h.
11362 * tui/tui-file.c: Update includes.
11363 * tui/tui-hooks.c: Update includes.
11364 * tui/tui-interp.c: Update includes.
11365 * tui/tui.c: Update includes.
11366 * Makefile.in: Update all tui/ dependencies.
11367 (SUBDIR_TUI_OBS, SUBDIR_TUI_SRCS): Update file names.
11368
b2100910
AC
11369 * Makefile.in: Update copyright. Update dependencies.
11370
cebe9500
AC
11371 * tui/tuiSourceWin.c (tui_update_breakpoint_info): Fix compile
11372 problem.
11373
c6f0559b
AC
113742004-01-18 Andrew Cagney <cagney@redhat.com>
11375
43e9390b
AC
11376 * mn10300-tdep.c (_initialize_mn10300_tdep): Call gdbarch_register
11377 instead of register_gdbarch_init.
11378
c6f0559b
AC
11379 * remote-sds.c (tohex): Delete unused function. Update copyright.
11380 * xstormy16-tdep.c (xstormy16_register_virtual_size): Ditto.
11381 * v850-tdep.c (v850_register_virtual_size): Ditto.
11382 * target.c (normal_target_post_startup_inferior): Ditto.
11383 * source.c (ambiguous_line_spec): Ditto.
11384 * remote.c (adapt_remote_get_threadinfo): Ditto.
11385 * mi/mi-out.c (out_field_fmt): Ditto.
11386 * mi/mi-interp.c (mi_interp_read_one_line_hook): Ditto.
11387 (output_control_change_notification): Ditto.
11388 * m68k-tdep.c (m68k_register_byte): Ditto.
11389 (m68k_remote_breakpoint_from_pc): Ditto.
11390 * ui-out.c (init_ui_out_state): Delete unused declaration.
11391 * stabsread.c (search_value): Ditto.
11392 * mi/mi-cmd-env.c (env_cli_command): Ditto.
11393 * maint.c (print_section_table): Ditto.
11394 * infrun.c (set_follow_fork_mode_command): Ditto.
11395
a8504492
MK
113962004-01-18 Mark Kettenis <kettenis@gnu.org>
11397
11398 * dwarf2-frame.c (execute_cfa_program): Move DWA_CFA_nop before
11399 DW_CFA_def_cfa_exporession. Add support for
11400 DW_CFA_offset_extendend_sf, DW_CFA_def_cfa_sf and
11401 DW_CFA_def_cfa_offset_sf. This should fix PR backtrace/1391.
11402
0bd8997e
AC
114032004-01-18 Andrew Cagney <cagney@redhat.com>
11404
11405 * ocd.c: Update copyright.
11406 (bdm_read_register_command): Delete unused function.
11407 (_initialize_remote_ocd): Delete commented out reference.
11408 (get_quoted_char, reset_packet): Delete #if0ed function.
11409 (output_packet, put_quoted_char): Delete #if0ed function.
11410 (stu_put_packet, stu_get_packet): Delete #if0ed function.
11411 (ocd_start_remote): Delete #if0ed code, remove #if1 wrapper.
11412 (BDM_BREAKPOINT): Delete #if0ed macro.
11413 (remote_timeout): Delete #if0ed variable.
11414
31bb40e4
MK
114152004-01-18 Mark Kettenis <kettenis@gnu.org>
11416
11417 * Makefile.in (ALLDEPFILES): Remove core-sol2.c.
11418 (core-sol2.o): Remove dependency.
11419 * core-sol2.c: Remove file.
11420
887432a5
AC
114212004-01-17 Andrew Cagney <cagney@redhat.com>
11422
11423 * mdebugread.c (compare_blocks): Make addr_diff a LONGEST.
11424 * block.h: Make GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOOCK
11425 enums.
11426
29182b13
DJ
114272004-01-17 Daniel Jacobowitz <drow@mvista.com>
11428
11429 * remote.c: Update copyright years.
11430
2963ee1d
DJ
114312004-01-17 Daniel Jacobowitz <drow@mvista.com>
11432
11433 * remote.c (remote_vcont_resume): Use xstrprintf instead of sprintf.
11434
79d45cd4
AC
114352004-01-17 Andrew Cagney <cagney@redhat.com>
11436
ee300cd4
AC
11437 * mdebugread.c: Update copyright.
11438 (parse_symbol): Replace DEPRECATED_STREQ with strcmp.
11439 (parse_type, parse_procedure): Ditto.
11440 (parse_partial_symbols, psymtab_to_symtab_1): Ditto.
11441
fcacc9c2
AC
11442 * cris-tdep.c (cris_store_struct_return): Put back accidently
11443 deleted function.
11444
79d45cd4
AC
11445 * gdbarch.sh: Update copyright year.
11446 * gdbarch.h, gdbarch.c: Re-generate.
11447
b263358a
DJ
114482004-01-17 Daniel Jacobowitz <drow@mvista.com>
11449
11450 Suggested by George Anzinger.
11451 * dwarf2expr.c (execute_stack_op): Fetch the second item from the
11452 correct stack offset. Include unknown opcode numbers in the error
11453 message.
11454
931aecf5
AC
114552004-01-17 Andrew Cagney <cagney@redhat.com>
11456
11457 * x86-64-tdep.c (x86_64_init_abi): No need to clear
11458 extract_struct_value_address, i386 does not set it.
11459 * sparc64-tdep.c (sparc64_init_abi): Do not set
11460 extract_struct_value_address, never called.
11461 (sparc64_extract_struct_value_address): Delete function.
11462 * m68hc11-tdep.c: Update copyright.
11463 (m68hc11_gdbarch_init): Delete redundant assignment of
11464 extract_struct_value_address.
11465 * i386-tdep.c: Update copyright.
11466 (i386_gdbarch_init): Do not set extract_struct_value_address,
11467 never called.
11468 (i386_extract_struct_value_address): Delete function.
11469 * sparc-tdep.c (sparc32_gdbarch_init): Do not set
11470 extract_struct_value_address, never called.
11471 (sparc32_extract_struct_value_address): #if 0 function. Add
11472 comments explaining its future.
11473
756fe439
DJ
114742004-01-17 Daniel Jacobowitz <drow@mvista.com>
11475
11476 * arm-tdep.c (arm_write_pc): New function.
11477 (arm_gdbarch_init): Call set_gdbarch_write_pc.
11478
e74f0f02
DJ
114792004-01-17 Daniel Jacobowitz <drow@mvista.com>
11480
11481 * breakpoint.c (must_shift_inst_regs): Delete.
11482 (bpstat_stop_status): Delete references to DECR_PC_AFTER_HW_BREAK
11483 and SHIFT_INST_REGS.
11484 * infcmd.c (step_1, step_1_continuation): Delete references to
11485 SHIFT_INST_REGS.
11486 * infrun.c (keep_going): Likewise.
11487 * target.h (DECR_PC_AFTER_HW_BREAK): Don't define.
11488 * config/i386/nm-i386.h (DECR_PC_AFTER_HW_BREAK): Likewise.
11489
b6cb9035
AC
114902004-01-17 Andrew Cagney <cagney@redhat.com>
11491
444a1e2e
AC
11492 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
11493 * gdbarch.h, gdbarch.c: Re-generate.
11494 * infcmd.c (print_return_value): Delete reference to
11495 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
11496
def7e6ed
AC
11497 * cris-tdep.c (cris_gdbarch_init): Do not set
11498 deprecated_extract_struct_value_address.
11499
07be497a
AC
11500 * xstormy16-tdep.c: Update copyright.
11501 (xstormy16_extract_struct_value_address): Update to current
11502 extract struct value address interface.
11503 (xstormy16_gdbarch_init): Set extract_struct_value_address.
11504 * sh64-tdep.c (sh64_extract_struct_value_address): Update to
11505 current extract struct value address interface.
11506 (sh64_gdbarch_init): Set extract_struct_value_address.
11507
6b4d5c91
AC
11508 * cris-tdep.c: Update copyright.
11509 (cris_extract_struct_value_address): Delete function.
11510 (struct_return_address): Delete variable.
11511 (cris_store_struct_return): Do not set struct_return_address.
11512
464e0365
AC
11513 * mcore-tdep.c: Update copyright.
11514 (mcore_extract_struct_value_address): Delete function. Update
11515 comments.
11516 (mcore_gdbarch_init): Update.
11517 * mn10300-tdep.c: Update copyright.
11518 (mn10300_extract_struct_value_address): Delete function.
11519 (mn10300_gdbarch_init): Update.
11520 * v850-tdep.c: Update copyright.
11521 (v850_extract_struct_value_address): Delete.
11522 (v850_gdbarch_init): Update.
11523 * ns32k-tdep.c: Update copyright.
11524 (ns32k_extract_struct_value_address): Delete.
11525 (ns32k_gdbarch_init): Update.
11526 * hppa-tdep.c (hppa_extract_struct_value_address): Delete.
11527 (hppa_gdbarch_init): Update.
11528 * vax-tdep.c: Update copyright.
11529 (vax_extract_struct_value_address): Delete.
11530 (vax_gdbarch_init): Update.
11531
afb18d0f
AC
11532 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Delete.
11533 * gdbarch.h, gdbarch.c: Re-generate.
11534 * procfs.c (procfs_fetch_registers): Delete reference to
11535 DEPRECATED_NPC_REGNUM.
11536 (procfs_store_registers): Ditto.
11537 * regcache.c (generic_target_write_pc): Simplify.
11538 * lynx-nat.c: Delete #ifdef SPARC code. Not used.
11539
a698f53e
AC
11540 * core-sol2.c (fetch_core_registers): Replace
11541 DEPRECATED_NPC_REGNUM with equivalent tdep value.
11542
adc11376
AC
11543 * hppa-tdep.c: Update copyright year.
11544 (hppa_target_write_pc): Use PCOQ_TAIL_REGNUM instead of
11545 NPC_REGNUM.
11546 (hppa_gdbarch_init): Do not set deprecated_npc_regnum.
11547
b6cb9035
AC
11548 * mips-tdep.c (mips_write_pc): New function.
11549 (mips_gdbarch_init): Set "write_pc" to "mips_write_pc".
11550 (mips_read_pc): Use mips_regnum instead of PC_REGNUM.
11551 (mips_find_saved_regs, mips_software_single_step: Ditto.
11552 (mips_frame_saved_pc, mips_frame_saved_pc): Ditto.
11553 mips_init_extra_frame_info, mips_pop_frame): Ditto.
11554
6d82d43b
AC
115552004-01-17 Andrew Cagney <cagney@redhat.com>
11556
11557 * mips-tdep.c: Re-indent. Group functions by ABI.
11558
71bd6bd4
AC
115592004-01-17 Andrew Cagney <cagney@redhat.com>
11560
11561 * gdbarch.sh (DECR_PC_AFTER_BREAK): Make zero the default.
11562 * gdbarch.c: Re-generate.
11563 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
11564 DECR_PC_AFTER_BREAK to zero.
11565 * vax-tdep.c (vax_gdbarch_init): Ditto.
11566 * v850-tdep.c (v850_gdbarch_init): Ditto.
11567 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
11568 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
11569 * sh-tdep.c (sh_gdbarch_init): Ditto.
11570 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
11571 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
11572 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11573 * mips-tdep.c (mips_gdbarch_init): Ditto.
11574 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11575 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11576 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
11577 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11578 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
11579 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
11580 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11581 * frv-tdep.c (frv_gdbarch_init): Ditto.
11582 * cris-tdep.c (cris_gdbarch_init): Ditto.
11583 * avr-tdep.c (avr_gdbarch_init): Ditto.
11584 * arm-tdep.c (arm_gdbarch_init): Ditto.
11585 * i386-nto-tdep.c (i386nto_init_abi): Add comment.
11586
a02abb62
JB
115872004-01-17 J. Brobecker <brobecker@gnat.com>
11588
11589 * dwarf2read.c (dwarf2_non_const_array_bound_ignored_complaint):
11590 Delete, no longer used.
11591 (read_subrange_type): New function, mostly extracted from
11592 read_array_type().
11593 (read_array_type): Replace extracted code by call to
11594 read_subrange_type().
11595 (dwarf2_get_attr_constant_value): New function.
11596 (scan_partial_symbols): Add handling for DW_TAG_subrange_type.
11597 (add_partial_symbol): Likewise.
11598 (process_die): Likewise.
11599 (new_symbol): Likewise.
11600 (read_type_die): Likewise.
11601
cf5b2f1b
AC
116022004-01-16 Andrew Cagney <cagney@redhat.com>
11603
11604 * symfile.c: Update copyright year.
11605 (compare_symbols): Delete unused function.
11606 * stabsread.c: Update copyright year.
11607 (lrs_general_complaint): Delete unused function.
11608 (ref_search_value): Ditto.
11609 (get_substring): Delete declaration.
11610 * sh64-tdep.c: Update copyright year.
11611 (sh64_get_gdb_regnum): Delete unused function.
11612 * dwarf2read.c (dwarf2_unsupported_at_frame_base_complaint):
11613 Delete unused function.
11614
d33b9831
MK
116152004-01-17 Mark Kettenis <kettenis@gnu.org>
11616
11617 * defs.h (gdb_osabi): Add GDB_OSABI_OPENBSD_ELF.
11618 * osabi.c (gdb_osabi_names): Add "OpenBSD ELF".
11619
7aea86e6
AC
116202004-01-16 Andrew Cagney <cagney@redhat.com>
11621
11622 Changes from Peter Schauer.
11623 * rs6000-tdep.c: Update copyright year.
11624 (rs6000_push_dummy_call): Update the stack pointer before
11625 accessing the corresponding stack region.
11626 * rs6000-nat.c: Update copyright year.
11627 (set_host_arch): Set "info.abfd" to "exec_bfd".
11628
26b0da32
MK
116292004-01-15 Mark Kettenis <kettenis@gnu.org>
11630
11631 * blockframe.c: Update copyright year.
11632 (inside_entry_func): Don't treat a zero PC specially.
11633
86fbe6cc
EZ
116342004-01-14 Elena Zannoni <ezannoni@redhat.com>
11635
11636 * gcore.c (gcore_copy_callback): Use paddr_d to print size
11637 variable.
11638 (gcore_create_callback): Ditto. Skip any memory segment that has
11639 no permissions set.
11640
63d06c5c
DC
116412004-01-14 David Carlton <carlton@kealia.com>
11642
11643 Change symbols for C++ nested types to contain the fully qualified
11644 name, if possible. (At least in the DWARF-2 case.) Partial fix
11645 for PR's c++/57, c++/488, c++/539, c++/573, c++/609, c++/832,
11646 c++/895.
11647 * c-exp.y (qualified_type): Handle types nested within classes.
11648 * cp-namespace.c: Update comments.
11649 (cp_set_block_scope): Delete #if 0.
11650 (cp_lookup_nested_type): Handle types nested within classes.
11651 * dwarf2read.c: (scan_partial_symbols): Call add_partial_structure
11652 when appropriate.
11653 (add_partial_symbol): Add the name of the enclosing namespace to
11654 types.
11655 (pdi_needs_namespace): New.
11656 (add_partial_namespace): Tweak comment.
11657 (add_partial_structure): New.
11658 (psymtab_to_symtab_1): Initialize processing_current_prefix
11659 here...
11660 (process_die): instead of here.
11661 (read_structure_scope): Try to figure out the name of the class or
11662 namespace that the structure might be defined within.
11663 (read_enumeration): Generate fully-qualified names, if possible.
11664 (read_namespace): Don't set name to NULL.
11665 (die_specification): New.
11666 (new_symbol): Generate fully-qualified names for types.
11667 (read_type_die): Determine appropriate prefix.
11668 (determine_prefix): New.
11669 (typename_concat): New.
11670 (class_name): New.
11671 * valops.c (value_aggregate_elt): Pass NOSIDE to
11672 value_struct_elt_for_reference.
11673 (value_struct_elt_for_reference): Make static, add NOSIDE
11674 parameter, call value_maybe_namespace_elt as a last resort.
11675 (value_namespace_elt): Break out code into
11676 value_maybe_namespace_elt.
11677 (value_maybe_namespace_elt): New.
11678
87783b8b
AC
116792004-01-12 Andrew Cagney <cagney@redhat.com>
11680
11681 * mips-tdep.c (mips_convert_register_p): Handle both raw and
11682 cooked floating-point registers.
11683 (mips_gdbarch_init): Set convert_register_p, register_to_value,
11684 and value_to_register.
11685
6503b91e
AC
116862004-01-13 Andrew Cagney <cagney@redhat.com>
11687
11688 * gdbarch.sh (FUNCTION_START_OFFSET): Make zero the default.
11689 * gdbarch.c: Re-generate.
11690 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
11691 FUNCTION_START_OFFSET.
11692 * v850-tdep.c (v850_gdbarch_init): Ditto.
11693 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
11694 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
11695 * sh-tdep.c (sh_gdbarch_init): Ditto.
11696 * s390-tdep.c (s390_gdbarch_init): Ditto.
11697 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
11698 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
11699 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11700 * mips-tdep.c (mips_gdbarch_init): Ditto.
11701 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11702 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
11703 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11704 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
11705 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11706 * i386-tdep.c (i386_gdbarch_init): Ditto.
11707 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
11708 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11709 * frv-tdep.c (frv_gdbarch_init): Ditto.
11710 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11711 * cris-tdep.c (cris_gdbarch_init): Ditto.
11712 * avr-tdep.c (avr_gdbarch_init): Ditto.
11713 * arm-tdep.c (arm_gdbarch_init): Ditto.
11714 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
11715
ea1dd7bc
DJ
117162004-01-13 Daniel Jacobowitz <drow@mvista.com>
11717
11718 * infrun.c (follow_fork_mode_ask): Remove.
11719 (follow_fork_mode_kind_names): Remove follow_fork_mode_ask.
11720 (follow_fork): Simplify and remove internal error for
11721 follow_fork_mode_ask.
11722 (_initialize_infrun): Update "set follow-fork-mode" help text.
11723
0f0cffd2
AC
117242004-01-13 Andrew Cagney <cagney@redhat.com>
11725
11726 * configure.in: Update copyright year.
11727 (build_warnings): Add -Wunused-label.
11728 * configure: Re-generate.
11729
de38af99
AC
117302004-01-12 Andrew Cagney <cagney@redhat.com>
11731
954a7fba
AC
11732 * exec.h (exec_ops): Make "extern".
11733
de38af99
AC
11734 * mips-tdep.c (mips_pseudo_register_read): Don't return a value,
11735 the function is void.
11736 (mips_pseudo_register_write): Ditto.
11737
1a111ce3
AC
117382004-01-12 Andrew Cagney <cagney@redhat.com>
11739
11740 * stack.c (frame_info): Delete DEPRECATED_PRINT_EXTRA_FRAME_INFO
11741 call. Never defined.
11742 * sparc-tdep.h (struct frame_info): Add opaque declaration.
11743 * sparc64-tdep.h (struct gdbarch): Add opaque declaration.
11744 (struct sparc_gregset, struct regcache): Ditto.
11745 * sparc-nat.c: Update copyright. Specify "GNU/Linux".
11746
48efe704
AC
117472004-01-12 Andrew Cagney <cagney@redhat.com>
11748
11749 * mi/ChangeLog: Delete file. Renamed to ...
11750 * mi/ChangeLog-1999-2003: New file.
11751 * tui/ChangeLog: Delete file. Renamed to ...
11752 * tui/ChangeLog-1998-2003: New file.
fe61caab 11753
a54124c5
MK
117542004-01-11 Mark Kettenis <kettenis@gnu.org>
11755
2ca62865
MK
11756 * sparc64nbsd-tdep.c: Include "regset.h".
11757 (sparc64nbsd_sizeof_struct_reg, sparc64nbsd_sizeof_struct_fpreg):
11758 Remove variables.
11759 (fetch_core_registers): Remove function.
11760 (sparc64nbsd_core_fns): Remove variable.
11761 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): New
11762 functions.
11763 (sparc64nbsd_init_abi): Initialize TDEP->gregset,
11764 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
11765 (_initialize_sparc64nbsd_tdep): Remove call to add_core_fns.
11766
ca9d58e9
MK
11767 * sparc-tdep.c (sparc32_extract_struct_value_address): Rename from
11768 sparc_extract_struct_value_address.
11769 (sparc32_gdbarch_init): Set extract_struct_value_address.
11770 * sparc64-tdep.c (sparc64_extract_struct_value_address): New
11771 function.
11772 (sparc64_init_abi): Set extract_struct_value_address. Don't set
11773 return_value_on_stack.
11774
3cc87ec0
MK
11775 * NEWS: Mention that %cs and %ss have been added to the AMD64
11776 configurations
11777
5bf00f29
MK
11778 * frame.c: Update copyright year.
11779 (get_prev_frame): Improve comment.
11780
4f7ec84e
MK
11781 * sparc64fbsd-tdep.c: Include "regset.h".
11782 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
11783 Remove variables.
11784 (fetch_core_registers): Remove function.
11785 (sparc64fbsd_core_fns): Remove variable.
11786 (sparc64fbsd_supply_gregset, sparc64fbsd_supply_fpregset): New
11787 functions.
11788 (sparc64fbsd_init_abi): Initialize TDEP->gregset,
11789 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
46b58ce9 11790 (_initialize_sparc64fbsd_tdep): Remove call to add_core_fns.
4f7ec84e 11791
4e7b0cd3
MK
11792 * sparcnbsd-tdep.c: Include "regset.h".
11793 (fetch_core_registers): Remove function.
11794 (sparcnbsd_core_fns, sparcnbsd_elfcore_fns): Remove varaibles.
11795 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): New
11796 functions.
11797 (sparc32nbsd_init_abi): Initialize TDEP->gregset and
11798 TDEP->fpregset.
46b58ce9 11799 (_initialize_sparcnbsd_tdep): Remove calls to add_core_fns.
4e7b0cd3 11800
a54124c5
MK
11801 * sparc-tdep.h (struct regset): Provide opaque declaration.
11802 (struct gdbarch_tdep): Add gregset, sizeof_gregset,
11803 fpregset and sizeof_fpregset members.
11804 * sparc-tdep.c (struct regset): Provide opaque declaration.
11805 (sparc_regset_from_core_section): New function.
11806 (sparc32_gdbarch_init): Initialize TDEP->gregset,
11807 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_fpregset.
11808 Set regset_from_core_section when appropriate.
11809
29ff87c5
MK
118102004-01-10 Mark Kettenis <kettenis@gnu.org>
11811
79b1ab3d
MK
11812 * x86-64-tdep.c (amd64_non_pod_p): New function.
11813 (amd64_classify_aggregate): Return class memory for non-POD
11814 C++ structure types.
11815
6470d250
MK
11816 * x86-64-tdep.c (amd64_push_arguments): Add struct_return
11817 argument. Use it to reserve a register if necessary.
11818 (amd64_push_dummy_call): Pass STRUCT_RETURN in call to
11819 amd64_push_arguments.
11820
562c50c2
MK
11821 * x86-64-tdep.c (amd64_classify_aggregate): Ignore static fields.
11822
af233647
MK
11823 * x86-64-tdep.c (amd64_register_info): Add %cs and %ss. Adjust
11824 register numbers in comments.
11825 * x86-64-tdep.h: Update copyright year.
11826 (X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM):
11827 Adjust for addition of %cs and %ss.
11828 * amd64fbsd-nat.c: Update copyright year.
11829 (reg_offset): Add register offsets for %cs and %ss.
11830 * amd64fbsd-tdep.c: Update copyright year.
11831 (amd64fbsd_r_reg_offset): Add register offsets for %cs and %ss.
11832 (amd64fbsd_sc_reg_offset): Likewise.
11833 * x86-64-linux-nat.c: Update copyright year.
11834 (x86_64_linux_gregset64_reg_offset): Add register offsets for %cs
11835 and %ss.
11836 * amd64nbsd-nat.c: Update copyright year.
11837 (amd64nbsd32_r_reg_offset): Add register offsets for %cs and %ss.
11838 * amd64nbsd-tdep.c: Update copyright year.
11839 (amd64nbsd_r_reg_offset): Add register offsets for %cs and %ss.
11840 * x86-64-linux-tdep.c: Update copyright year.
11841 (user_to_gdb_regmap): Add mapping for %cs and %ss.
11842 (x86_64_linux_sc_reg_offset): Adjust for addition of %cs and %ss.
11843 * regformats/reg-x86-64.dat: Add %cs and %ss.
11844
29ff87c5
MK
11845 * blockframe.c (inside_entry_func): Reformat. Introduce new local
11846 variables to prevent long lines. Update comments to reflect
11847 reality.
11848
38d518c9
EZ
118492004-01-09 David Carlton <carlton@kealia.com>
11850
11851 Checked in by Elena Zannoni <ezannoni@redhat.com>.
11852 * dwarf2read.c (read_namespace): Pull out name-generating code
11853 into namespace_name. Rename previous_namespace to previous_prefix
11854 and processing_current_namespace to processing_current_prefix..
11855 (namespace_name): New function.
11856 (add_partial_symbol): Substitute uses of pdi->name with
11857 actual_name.
11858 * cp-support.h: Rename processing_current_namespace to
11859 processing_current_prefix.
11860 Update copyright year.
11861 * cp-namespace.c: Rename processing_current_namespace to
11862 processing_current_prefix.
11863 Update copyright year.
fe61caab 11864
1e4728e7
AC
118652004-01-09 Andrew Cagney <cagney@redhat.com>
11866
11867 * jv-valprint.c, ser-unix.c: Add missing copyright years.
11868
c77c642a
MK
118692004-01-09 Mark Kettenis <kettenis@gnu.org>
11870
11871 * dbxread.c (read_dbx_symtab): Ignore N_PATCH stabs instead of
11872 complaining.
11873 (process_one_symbol): Deal with N_PATCH stabs.
11874
b44e9041
EZ
118752004-01-09 Elena Zannoni <ezannoni@redhat.com>
11876
11877 * dwarf2read.c (read_array_type): Discard FORTRAN_HACK macro and
11878 ifdeffed code.
11879 Update copyright year.
38d518c9 11880
eccfb640
MC
118812004-01-08 Michael Chastain <mec.gnu@mindspring.com>
11882
11883 * config/pa/tm-hppa.h: Update extern declarations for
11884 hppa32_hpux_frame_saved_pc_in_sigtramp,
11885 hppa32_hpux_frame_base_before_sigtramp, and
11886 hppa32_hpux_frame_find_saved_regs_in_sigtramp.
11887
848c5feb
MC
118882004-01-08 Michael Chastain <mec.gnu@mindspring.com>
11889
11890 * config/pa/tm-hppah.h: Update copyright years.
11891
3cc5d663
AC
118922004-01-08 Andrew Cagney <cagney@redhat.com>
11893
11894 * mips-tdep.c (mips_n32n64_reg_struct_has_addr): Delete function.
11895 (mips_o32_reg_struct_has_addr): Delete function.
11896 (mips_gdbarch_init): Update.
11897 (mips_extract_struct_value_address): Delete function.
11898
bfec0b41
JJ
118992004-01-08 David Mosberger <davidm@hpl.hp.com>
11900
11901 * ia64-linux-tdep.c: Update GATE_AREA_END value to reflect
11902 reality.
11903
16e109ca
AC
119042004-01-07 Andrew Cagney <cagney@redhat.com>
11905
6214a8a1
AC
11906 * mips-tdep.c (mips_gdbarch_init): Set elf_flags to the previous
11907 architecture's elf flags (when available).
11908
8d5838b5
AC
11909 * mips-tdep.c (mips_gdbarch_init): Move code determining the MIPS
11910 FPU to the start, check the MIPS FPU when looking for an old
11911 architecture.
11912 (set_mipsfpu_single_command): Update the architecture.
11913 (set_mipsfpu_double_command, set_mipsfpu_none_command): Ditto.
11914
480d3dd2
AC
11915 * mips-tdep.c (MIPS_DEFAULT_MASK_ADDRESS_P): Delete macro.
11916 (mips_mask_address_p): Add "tdep" parameter.
11917 (show_mask_address, mips_addr_bits_remove): Update.
11918 (mips_dump_tdep): Update.
11919 (MIPS_DEFAULT_STACK_ARGSIZE): Delete macro.
11920 (MIPS_STACK_ARGSIZE): Delete macro.
11921 (mips_stack_argsize, mips_eabi_push_dummy_call): Update.
11922 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call): Update.
11923 (mips_o64_push_dummy_call, mips_o32_return_value): Update.
11924 (mips_dump_tdep): Update.
11925 (MIPS_SAVED_REGSIZE): Delete macro.
11926 (MIPS_DEFAULT_SAVED_REGSIZE): Delete macro.
11927 (mips_saved_regsize, mips_eabi_use_struct_convention): Update.
11928 (mips_eabi_reg_struct_has_addr, mips_find_saved_regs): Update.
11929 (mips_frame_saved_pc, mips16_heuristic_proc_desc): Update.
11930 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call): Update.
11931 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update.
11932 (mips_pop_frame, return_value_location): Update.
11933 (mips_n32n64_return_value, mips_dump_tdep): Update.
11934
ec03c1ac
AC
11935 * mips-tdep.c (mips_gdbarch_init): Clean up code selecting the
11936 MIPS ABI.
11937
16e109ca
AC
11938 * mips-tdep.c: Update copyright.
11939 (mips_gdbarch_init): Merge two code blocks handling the register
11940 name and number layout.
11941
15255275
MS
119422004-01-02 Pawel Ostrowski <pasza@zodiac.mimuw.edu.pl>
11943
11944 * tracepoint.c (validate_actionline): Fix segv at EOF
11945
9f9057da
MC
119462004-01-07 Michael Chastain <mec.gnu@mindspring.com>
11947
11948 * hpread.c (hpread_read_struct_type): Call SET_FIELD_PHYSNAME
11949 properly for static fields.
11950
0127c0d3 119512004-01-06 Jeff Johnston <jjohnstn@redhat.com>
91562f53 11952 Jason Molenda <jmolenda@apple.com>
0127c0d3
JJ
11953
11954 * disasm.c: Update copyright to include 2004.
11955 (do_mixed_source_and_assembly): For uiout asm list
11956 and tuple cleanups, initialize to null_cleanup instead of
fe61caab 11957 NULL and do so prior to loop. Only reset when we close off
0127c0d3 11958 the tuple/list. Move check for whether to close off the
fe61caab 11959 asm tuple/list to after dump_insns call where it will be run
0127c0d3
JJ
11960 on each loop iteration.
11961
5269965e
AC
119622004-01-05 Andrew Cagney <cagney@redhat.com>
11963
54f1137d
AC
11964 * ser-unix.c (ser_unix_async): Fix tipo, "NOTHING_SECHEDULED"
11965 should be a switch case and not a label.
11966 * mips-tdep.c (mips32_next_pc): Delete unused labels
11967 "greater_equal_branch" and "less_zero_branch".
11968 * jv-valprint.c (java_print_value_fields): Delete unused label
11969 "flush_it".
11970
5269965e
AC
11971 * target.c (unpush_target): Only close a target that is in the
11972 target stack.
11973
dbc22fa1
MK
119742004-01-05 Mark Kettenis <kettenis@gnu.org>
11975
9515395e
MK
11976 * sparc-tdep.c (sparc_extract_struct_value_address): Get the
11977 address from [sp + 64] instead of %o2.
11978
dbc22fa1
MK
11979 * frame.c (get_prev_frame): Don't try to unwind the PC. This
11980 fixes PR backtrace/1476.
11981
5439edaa
AC
119822004-01-05 Andrew Cagney <cagney@redhat.com>
11983
11984 * libunwind-frame.h (struct frame_id): Add opaque declaration,
11985 move to start of file.
11986 * i386-tdep.h (struct regcache): Add opaque declaration.
11987 * config/ia64/nm-linux.h (struct target_ops): Add opaque
11988 declaration.
11989 * ia64-tdep.c (ia64_find_proc_info_x): Do not use __FUNCTION__.
11990 (ia64_gdbarch_init): Use "GNU/Linux" in comment.
11991 * win32-nat.c (fake_create_process): Use ISO C style definition.
11992 * stabsread.c (define_symbol): Delete #ifndef
11993 DEPRECATED_USE_REGISTER_NOT_ARG wrapper around
11994 stabs_argument_has_addr call, macro never defined.
11995
19061abe
MC
119962004-01-04 Michael Chastain <mec.gnu@mindspring.com>
11997
11998 * op50-rom.c: Delete.
11999 * w89k-rom.c: Delete.
12000 * Makefile.in: Remove references.
12001
e53bef9f
MK
120022004-01-04 Mark Kettenis <kettenis@gnu.org>
12003
12004 * x86-64-tdep.c: Update copyright year.
12005 (struct amd64_register_info): Rename from x86_64_register_info.
12006 (amd64_register_info): Rename from x86_64_register_info.
12007 (AMD64_NUM_REGS): Rename from X86_64_NUM_REGS.
12008 (amd64_register_name): Rename from x86_64_register_name.
12009 (amd64_register_type): Rename from x86_64_register_type.
12010 (amd64_dwarf_regmap): Rename from x86_64_dwarf_regmap.
12011 (amd64_dwarf_regmap_len): Rename from x86_64_dwarf_regmap_len.
12012 (amd64_dwarf_reg_to_regnum): Rename from
12013 x86_64_dwarf_reg_to_regnum.
12014 (amd64_convert_register_p): Rename from x86_64_convert_register_p.
12015 (amd64_push_dummy_call): Rename from x86_64_push_dummy_call.
12016 (AMD64_NUM_SAVED_REGS): Rename from X86_64_NUM_SAVED_REGS.
12017 (struct amd64_frame_cache): Renamed from x86_64_frame_cache.
12018 (amd64_alloc_frame_cache): Renamed from x86_64_alloc_frame_cache.
12019 (amd64_analyze_prologue): Rename from x86_64_analyze_prologue.
12020 (amd64_skip_prologue): Rename from x86_64_skip_prologue.
12021 (amd64_frame_cache): Rename from x86_64_frame_cache.
12022 (amd64_frame_this_id): Rename from x86_64_frame_this_id.
12023 (amd64_frame_prev_register): Rename from
12024 x86_64_frame_prev_register.
12025 (amd64_frame_unwind): Rename from x86_64_frame_unwind.
12026 (amd64_frame_sniffer): Rename from x86_64_frame_sniffer.
12027 (amd64_sigtramp_frame_cache): Rename from
12028 x86_64_sigtramp_frame_cache.
12029 (amd64_sigtramp_frame_prev_register): Rename from
12030 x86_64_sigtramp_frame_prev_register.
12031 (amd64_sigtramp_frame_unwind): Rename from
12032 x86_64_sigtramp_frame_unwind.
12033 (amd64_sigtramp_frame_sniffer): Rename from
12034 x86_64_sigtramp_frame_sniffer.
12035 (amd64_frame_base_address): Rename from x86_64_frame_base_address.
12036 (amd64_frame_base): Rename from x86_64_frame_base.
12037 (amd64_unwind_dummy_id): Rename from x86_64_unwind_dummy_id.
12038 (amd64_frame_align): Rename from x86_64_frame_align.
12039 (amd64_supply_fpregset): Rename from x86_64_supply_fpregset.
12040 (amd64_regset_from_core_section): Rename from
12041 x86_64_regset_from_core_section.
12042 (x86_64_init_abi): Update comments.
12043
fca6aa58
NR
120442004-01-04 Nick Roberts <nick@nick.uklinux.net>
12045
12046 * MAINTAINERS (write after approval): Add myself.
12047
8ada74e3
MK
120482004-01-04 Mark Kettenis <kettenis@gnu.org>
12049
12050 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
12051 `float' arguments.
12052
5154b0cd
MK
120532004-01-04 Mark Kettenis <kettenis@gnu.org>
12054
12055 * sparc64-tdep.c (sparc64_store_floating_fields): Update comment
12056 such that it mentions a specific version of GCC that exhibits this
12057 bug.
12058
fb316966
MK
120592004-01-03 Mark Kettenis <kettenis@gnu.org>
12060
200cc553
MK
12061 * sparc64-tdep.c (sparc64_store_floating_fields): If TYPE is a
12062 structure that has a single `float' member, store it in %f1 in
12063 addition to %f0.
12064
e226a4a0
MK
12065 * sparc-sol2-nat.c: Add missing '\'.
12066
b9d4c5ed
MK
12067 * sparc-tdep.c (sparc32_return_value): New function.
12068 (sparc32_use_struct_convention, sparc32_return_value_on_stack):
12069 Remove functions.
12070 (sparc32_gdbarch_init): Set return_value, don't set
12071 extract_return_value, store_return_value, use_struct_convention
12072 and return_value_on_stack.
12073
fb316966
MK
12074 * sparc-sol2-nat.c: Add missing ')'.
12075
1af510a8
JB
120762004-01-03 J. Brobecker <brobecker@gnat.com>
12077
12078 * infrun.c (handle_step_into_function): New function.
12079 (handle_inferior_event): Extract out some code into the new
12080 function above.
12081
5cf4d23a
JB
120822004-01-03 J. Brobecker <brobecker@gnat.com>
12083
12084 * infrun.c (handle_inferior_event): Move the declaration of
12085 real_stop_pc inside the if blocks where it is used.
12086
60af1db2
MK
120872004-01-03 Mark Kettenis <kettenis@gnu.org>
12088
12089 * sparc64-tdep.c (sparc64_16_byte_align_p)
12090 (sparc64_store_floating_fields, sparc64_store_floating_fields):
12091 Use check_typedef to get subtypes of structures and unions.
12092 (sparc64_store_return_value): Fix calculation of the appropriate
12093 offset into VALBUF when storing a structure or union.
12094 (sparc64_return_value): New function.
12095 (sparc64_use_struct_convention): Remove function.
12096 (sparc64_init_abi): Set return_value, don't set
12097 extract_return_value, store_return_value and
12098 use_struct_convention.
12099
1a901d3f
EZ
121002004-01-03 Eli Zaretskii <eliz@elta.co.il>
12101
12102 * config/djgpp/fnchange.lst: Add lines for COPYING.LIBGLOSS,
12103 bfd/doc/ChangeLog-9103, bfd/elf32-m68hc1x.c,
12104 gdb/config/alpha/xm-alphaosf.h,
12105 gdb/config/powerpc/tm-ppcle-eabi.h,
12106 gdb/config/rs6000/tm-rs6000-aix4.h, gdb/gdbtk/ChangeLog-2001,
12107 gdb/gdbtk/ChangeLog-2002, gdb/gdbtk/ChangeLog-2003,
12108 gdb/gdbtk/plugins/intel-pentium/intel-pentium.tcl.in,
12109 gdb/gdbtk/plugins/rhabout/rhabout.tcl.in, gdb/i386-linux-nat.c,
12110 gdb/ia64-aix-nat.c, gdb/ia64-aix-tdep.c, gdb/ia64-linux-nat.c,
12111 gdb/ia64-linux-nat.c, gdb/ppc-linux-tdep.c, gdb/ppc-linux-nat.c,
12112 gdb/sparc64nbsd-nat.c, gdb/sparc64nbsd-tdep.c,
12113 gdb/sparc64-linux-nat.c, gdb/sparc64-linux-tdep.c,
12114 gdb/sparc64-nat.c, gdb/sparc64-tdep.c, gdb/sparc64-sol2-tdep.c,
12115 gdb/sparc-sol2-nat.c, gdb/sparc-sol2-tdep.c,
12116 gdb/testsuite/gdb.gdbtk/, gdb/testsuite/gdb.mi/mi-var-child.exp,
12117 nclude/ChangeLog-9103, include/coff/ChangeLog-9103,
12118 include/elf/ChangeLog-9103, include/opcode/ChangeLog-9103,
12119 opcodes/ChangeLog-0001, opcodes/ChangeLog-0203,
12120 opcodes/openrisc-dis.c, opcodes/openrisc-desc.h,
12121 sim/frv/profile-fr550.c, sim/frv/profile-fr550.h,
12122 sim/sh64/sem-compact-switch.c, sim/sh64/sem-media-switch.c,
12123 sim/testsuite/sim/sh64/compact/ldsl-mach.cgs,
12124 sim/testsuite/sim/sh64/compact/ldsl-macl.cgs,
12125 sim/testsuite/sim/sh64/compact/stsl-mach.cgs, and
12126 sim/testsuite/sim/sh64/compact/stsl-macl.cgs.
12127 Remove lines for .cvsignore files.
12128
ef52e463
JB
121292004-01-03 J. Brobecker <brobecker@gnat.com>
12130
12131 * infrun.c: Back out the previous change.
12132
cb1bf9dc
MK
121332004-01-03 Mark Kettenis <kettenis@gnu.org>
12134
f0424ef6
MK
12135 * NEWS: Mention revised SPARC target. Add sparc-*-lynxos* and
12136 sparc-*-sunos4* to the list of REMOVED configurations.
12137
cb1bf9dc
MK
12138 * configure.tgt: Add back sparc-*-vxworks*.
12139 * remote-vxsparc.c: Remove all includes except for "defs.h",
12140 "regcache.h", "vx-share/ptrace.h" and "vx-share/regPacket.h".
12141 Include "sparc-tdep.h".
12142 (SPARC_R_G1): New define.
12143 (vxsparc_gregset): New variable.
12144 (ext_format_sparc): Remove extern declaration.
12145 (vx_read_register): Rewrite to use sparc32_supply_gregset and
12146 sparc32_supply_fpregset.
12147 (vx_write_register): Rewrite to use sparc32_collect_gregset,
12148 sparc_collect_rwindow and sparc32_collect_fpregset.
12149 * config/sparc/tm-vxworks.h: New file, based on recently removed
12150 tm-vxsparc.h.
12151 * config/sparc/vxworks.mt: New file, based on recently removed
12152 vxworks.mt.
fe61caab 12153
5e938f9f
JB
121542004-01-03 J. Brobecker <brobecker@gnat.com>
12155
12156 * infrun.c (handle_step_into_function): New function.
12157 (handle_inferior_event): Extract out some code into the new
12158 function above.
12159
386c036b
MK
121602004-01-02 Mark Kettenis <kettenis@gnu.org>
12161
12162 * Makefile.in (ALLDEPFILES): Remove sparc-linux-nat.c and
12163 sparcl-tdep.c. Add sparc-linux-tdep.c, sparc-sol2-nat.c,
12164 sparc-sol2-tdep.c, sparc-sol2-nat.c, sparc-sol2-tdep.c,
12165 sparc64-linux-nat.c, sparc64-linux-tdep.c, sparc64-nat.c,
12166 sparc64-sol2-tdep.c, sparc64-tdep.c, sparc64fbsd-nat.c,
12167 sparc64fbsd-tdep.c, sparcnbsd-nat.c, sparcnbsd-tdep.c.
12168 (sparc_nat_h): New variable.
12169 (sparcbsd_nat_h, sparcnbsd_tdep_h): Remove variables.
12170 (tm-sun4os4.h): Remove dependency.
12171 (sparcbsd-nat.o, sparc-linux-nat.o): Remove dependencies.
12172 (sparc64fbsd-nat.o, sparc64fbsd-tdep.o, sparc64nbsd-nat.o,
12173 sparc64-tdep.o, sparc-nat.o, sparcnbsd-nat.o, sparcnbsd-tdep.o,
12174 sparc-tdep.o): Update dependencies.
12175 (sparc-linux-tdep.o, sparc-sol2-nat.o, sparc-sol2-tdep.o,
12176 sparc64-linux-nat.o, sparc64-linux-tdep.o, sparc64-nat.o,
12177 sparc64-sol2-tdep.o, sparc64-tdep.o, sparc64nbsd-tdep.o): New
12178 dependencies.
12179 * configure.host: Remove existing sparc-*-lynxos*,
12180 sparc-*-solaris*, sparc-*-sunos4*, sparc-*-sunos5*, sparc-*-*,
12181 ultrasparc-*-freebsd, sparcv9-*-freebsd, sparc64-*-linux*,
12182 sparcv9-*-* and sparc64-*-* triplets. Add new sparc64-*-linux*,
12183 sparc-*-solaris2*, sparcv9-*-solaris2* and sparc64-*-solaris2*
12184 triplets.
12185 * configure.tgt: Remove exitsing sparc-*-aout*, sparc-*-coff*,
12186 sparc-*-elf*, sparc*-lynxos*, sparc-*-solars2*, sparc-*-sunos4*,
12187 sparc-*-sunos5*, sparc-*-vxworks*, sparc64-*linux*, sparc64-*-*,
12188 sparcv9-*-* and commented out sparc64-*-solars2* triplets. Add
12189 new sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*,
12190 sparc64-*-linux, sparc-*-solaris2*, sparcv9-*-solaris*,
12191 sparc64-*-solaris2* and sparc64-*-* triplets.
12192 * sparc64-tdep.c: Update copyright year. Include "inferior.h",
12193 "symtab.h" and "objfiles.h".
12194 (BIAS): Remove define.
12195 (X_OP, X_RD, X_A, X_COND, X_OP2, X_IMM22, X_OP3, X_I, X_DISP22)
12196 (X_DISP19): Remove macros.
12197 (sparc_fetch_instruction): Remove function.
12198 (struct gdbarch_tdep): Remove definition.
12199 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use ARRAY_SIZE.
12200 (sparc_breakpoint_from_pc): Remove function.
12201 (struct sparc64_frame_cache): Remove definition.
12202 (sparc64_alloc_frame_cache, sparc64_analyze_prologue,
12203 sparc64_unwind_pc): Remove functions.
12204 (sparc64_skip_prologue): Use `struct sparc_frame_cache' instead of
12205 `struct sparc64_frame_cache. Call sparc_analyze_prologue instead
12206 of sparc64_analyze_prologue. Mark constant as ULL instead of UL.
12207 (sparc64_frame_cache): Change return type to `struct
12208 sparc_frame_cache *'. Simply call sparc_frame_cache.
12209 (sparc64_frame_this_id, sparc64_frame_prev_register,
12210 sparc64_frame_base_address): Use `struct sparc_frame_cache'
12211 instead of `struct sparc64_frame_cache.
12212 (sparc_unwind_dummy_id, sparc_extract_struct_value_address,
12213 sparc_analyze_control_transfer, sparc_software_single_step,
12214 sparc64_gdbarch_init, sparc_supply_rwindow, sparc_fill_rwindow,
12215 _initialize_sparc64_tdep): Remove functions.
12216 (TSTATE_CWP, TSTATE_ICC, TSTATE_XCC): New macros.
12217 (PSR_S, PSR_ICC, PSR_VERS, PSR_IMPL, PSR_V8PLUS, PSR_XCC): New
12218 macros.
12219 (sparc64_supply_gregset, sparc64_collect_gregset,
12220 sparc64_supply_fpregset, sparc64_collect_fpregset): New functions.
12221 (sparc64_init_abi): New function.
12222 * sparc64-tdep.h: Update copyright year. Fix typo in multiple
12223 inclusion guard. Include "sparc-tdep.h".
12224 (BIAS): Define.
12225 (r_tstate_offset, r_fprs_offset): New defines.
12226 (enum sparc_regnum): Remove defenition.
12227 (enum sparc64_regnum): Reformat.
12228 (sparc_supply_rwindow, sparc_fill_rwindow): Remove prototypes.
12229 (sparc64_init_abi, sparc64_supply_gregset,
12230 sparc64_collect_gregset, sparc64_supply_fpregset,
12231 sparc64_collect_fpregset): New prototypes.
12232 (sparc64_sol2_gregset, sparc64nbsd_gregset, sparc64fbsd_gregset):
12233 Add extern declarations.
12234 (sparc64_sol2_init_abi): New prototype.
12235 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
12236 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
12237 prototypes.
12238 * sparc64fbsd-nat.c: Include "sparc-nat.h", don't include
12239 "sparnbsd-nat.h".
12240 (sparc64fbsd_reg_supplies_p, sparc64fbsd_fpreg_supplies_p): Remove
12241 functions.
12242 (_initialize_sparc64fbsd_nat): Remove initialization of
12243 sparcbsd_supply_reg, sparcbsd_fill_reg, sparcbsd_supply_fpreg,
12244 sparcbsd_fill_fpreg, sparcbsd_reg_supplies_p,
fe61caab 12245 sparcbsd_fpreg_supplies_p. Initialize sparc_gregset.
386c036b
MK
12246 * sparc64fbsd-tdep.c: Update copyright year. Include "frame.h",
12247 "frame-unwind.h", "trad-frame.h" and "gdb_assert.h".
12248 (sparc64fbsd_r_global_offset, sparc64fbsd_r_out_offset)
12249 (sparc64fbsd_r_fprs_offset, sparc64fbsd_r_tnpc_offset)
12250 (sparc64fbsd_r_tpc_offset, sparc64fbsd_r_tstate_offset)
12251 (sparc64fbsd_r_y_offset): Remove variables.
12252 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
12253 Make static and const.
12254 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
12255 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
12256 functions.
12257 (sparc64fbsd_gregset): New variable.
12258 (fetch_core_registers): Replace calls to sparc64fbsd_supply_reg
12259 and sparc64fbsd_supply_fpreg with calls to sparc64_supply_gregset
12260 and sparc64_supply_fpregset.
12261 (sparc64fbsd_pc_in_sigtramp, sparc64fbsd_sigtramp_frame_cache)
12262 (sparc64fbsd_sigtramp_frame_this_id)
12263 (sparc64fbsd_sigtramp_frame_prev_register): New functions.
12264 (sparc64fbsd_sigtramp_frame_unwind): New variable.
12265 (sparc64fbsd_sigtramp_frame_sniffer): New function.
12266 (sparc64fbsd_init_abi): Set pc_in_sigtramp, append
12267 sparc64fbsd_sigtramp_frame_sniffer. Call sparc64_init_abi.
12268 * sparcnbsd-tdep.c: Update copyright year. Include
12269 "floatformat.h", "frame.h", "frame-unwind.h", "symtab.h",
12270 "trad-frame.h" and "gdb_assert.h", don't include "target.h",
12271 "value.h" and "sparcnbsd-tdep.h".
12272 (REG32_OFFSET_PSR, REG32_OFFSET_PC, REG32_OFFSET_NPC)
12273 (REG32_OFFSET_Y, REG32_OFFSET_GLOBAL, REG32_OFFSET_OUT)
12274 (REG64_OFFSET_TSTATE, REG64_OFFSET_PC, REG64_OFFSET_NPC)
12275 (REG64_OFFSET_Y, REG64_OFFSET_GLOBAL, REG64_OFFSET_OUT): Remove
12276 defines.
12277 (sparcnbsd_gregset): New variable.
12278 (sparcnbsd_supply_reg32, sparcnbsd_supply_reg64)
12279 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64)
12280 (sparcnbsd_supply_fpreg32, sparcnbsd_supply_fpreg64)
12281 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64): Remove functions.
12282 (sparc32nbsd_sigtramp_start, sparc32nbsd_sigtramp_end): New
12283 variables.
12284 (sparc32nbsd_pc_in_sigtramp, sparc32nbsd_sigcontext_frame_cache)
12285 (sparc32nbsd_sigcontext_frame_this_id)
12286 (sparc32nbsd_sigcontext_frame_prev_register): New functions.
12287 (sparc32nbsd_sigcontext_frame_unwind): New variable.
12288 (sparc32nbsd_sigtramp_frame_sniffer): New function.
12289 (sparcnbsd_get_longjmp_target_32,
12290 sparcnbsd_get_longjmp_target_64): Remove functions.
12291 (sparcnbsd_aout_in_solib_call_trampoline): Rewrite.
12292 (sparcnbsd_init_abi_common, sparcnbsd_init_aout,
12293 sparcnbsd_init_elf): Remove.
12294 (sparcnbsd_init_abi, sparcnbsd_aout_init_abi)
12295 (sparcnbsd_elf_init_abi): New functions.
12296 (_initialize_sparcnbsd_tdep): New prototype.
12297 (_initialize_sparnbsd_tdep): Update.
12298 * config/sparc/fbsd.mh (NATDEPFILES): Remove sparcbsd-nat.o and
12299 corelow.o. Add sparc64-nat.o and sparc-nat.o.
12300 * config/sparc/fbsd.mt (TDEPFILES): Add sparc-tdep.o and corelow.o.
12301 * config/sparc/linux.mh: Update comment.
12302 (XM_FILE, HOST_IPC): Remove variables.
12303 (NATDEPFILES): Add sparc-sol2-nat.o and core-regset.o. Remove
12304 sparc-linux-nat.o.
12305 * config/sparc/linux.mt: Update comment.
12306 (TDEPFILES): Add sparc-sol2-tdep.o and sparc-linux-tdep.o.
12307 * config/sparc/nbsd.mt: Reformat.
12308 * config/sparc/nbsd64.mh: Update comment.
12309 (NATDEPFILES): Add sparc-nat.o.
12310 * config/sparc/nbsd64.mt: Update comment.
12311 (TDEPFILES): Add sparc64-tdep.o and sparc64nbsd-tdep.o.
12312 (TM_FILE): Set to tm-nbsd.h.
12313 * config/sparc/nbsdelf.mh: Update comment.
12314 (NATDEPFILES): Add sparc-nat.o.
12315 (XM_FILE): Delete.
12316 * config/sparc/nbsdaout.mh: Update comment.
12317 (NATDEPFILES): Add sparc-nat.o
12318 (XM_FILE): Delete.
12319 * config/sparc/nm-linux.h: Update copyright year. Don't include
12320 "config/nm-svr4.h" and "solib.h". Add protection against multiple
12321 inclusion.
12322 (KERNEL_U_SIZE): Remove define.
12323 (kernel_u_size): Remove prototype.
12324 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define.
12325 * config/sparc/nm-nbsd.h: Update copyright. Don't include
12326 "regcache.h".
12327 (CHILD_PREPARE_TO_STORE): Remove define.
12328 * config/sparc/nm-nbsdaout.h: Tweak some comments.
12329 * sparc-nat.c, sparc-tdep.c, sparc-tdep.h, sparc64nbsd-nat.c,
12330 sparcnbsd-nat.c: Rewrite files.
12331 * config/sparc/tm-linux.h, config/sparc/tm-nbsd.h: Rewrite files.
12332 * sparc-linux-nat.c, sparcbsd-nat.c, sparcbsd-nat.h,
12333 sparcnbsd-tdep.h: Remove files.
12334 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4os4.h,
12335 config/sparc/nm-sun4sol2.h, config/sparc/sp64.mt,
12336 config/sparc/sp64linux.mt, config/sparc/sp64sol2.mt,
12337 config/sparc/sparc-em.mt, config/sparc/sparclynx.mh,
12338 config/sparc/sparclynx.mt, config/sparc/sun4os4.mh,
12339 config/sparc/sun4os4.mt, config/sparc/sun4sol2.mh,
12340 config/sparc/sun4sol2.mt, config/sparc/tm-sp64.h,
12341 config/sparc/tm-sp64linux.h, config/sparc/tm-sparc.h,
12342 config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
12343 config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
12344 config/sparc/tm-vxsparc.h, config/sparc/vxsparc.mt,
12345 config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h: Remove files.
12346 * sparc-linux-tdep.c, sparc-nat.h, sparc-sol2-nat.c,
12347 sparc-sol2-tdep.c, sparc64-linux-nat.c, sparc64-linux-t dep.c,
12348 sparc64-nat.c, sparc64-sol2-tdep.c, sparc64nbsd-tdep.c: New files.
12349 * config/sparc/linux64.mh, config/sparc/linux64.mt,
12350 config/sparc/nm-sol2.h, config/sparc/sol2-64.mt,
12351 config/sparc/sol2.mh, config/sparc/sol2.mt, config/sparc/sparc.mt,
12352 config/sparc/sparc64.mt, config/sparc/tm-sol2.h: New files.
12353
ee84457a
AC
123542004-01-02 Andrew Cagney <cagney@redhat.com>
12355
12356 From 2003-12-18 Kazuhiro Inaoka:
12357 * configure.host: Add m32r-linux target.
12358
0bc2134e
MC
123592004-01-02 Michael Chastain <mec.gnu@mindspring.com>
12360
12361 * top.c (print_gdb_version): Update year to 2004.
12362
89a72f9c
MM
123632004-01-02 Mark Mitchell <mark@codesourcery.com>
12364
12365 * MAINTAINERS: Add myself to the write-after-approval category.
12366
86b013ed
DJ
123672004-01-02 Daniel Jacobowitz <drow@mvista.com>
12368
12369 From Bernardo Innocenti <bernie@develer.com>:
12370 * configure.tgt: Add uClinux target.
12371
e42c9534
AC
123722004-01-02 Andrew Cagney <cagney@redhat.com>
12373
12374 * utils.c (do_my_cleanups): Make static, add forward declaration.
12375 * defs.h (do_my_cleanups): Delete declaration.
12376
162467d3
EZ
123772004-01-02 Eli Zaretskii <eliz@elta.co.il>
12378
12379 * config/djgpp/fnchange.lst: Add lines for gdb/ChangeLog-2003 and
12380 bfd/ChangeLog-0203.
12381
78434e59
MK
123822004-01-02 Mark Kettenis <kettenis@gnu.org>
12383
12384 * configure.in: Check for <machine/reg.h>. Check for `struct reg'
12385 in <machine/reg.h>.
12386 * configure, config.in: Regenerate.
12387
48efe704
AC
12388For older changes see ChangeLog-2003, mi/ChangeLog-1999-2003, and
12389tui/ChangeLog-1998-2003.
c906108c
SS
12390\f
12391Local Variables:
12392mode: change-log
12393left-margin: 8
12394fill-column: 74
12395version-control: never
12396End:
This page took 1.157454 seconds and 4 git commands to generate.