* language.c (language_gdbarch_post_init): Fix off-by one error.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2004-09-22 Mark Kettenis <kettenis@gnu.org>
2
3 * language.c (language_gdbarch_post_init): Fix off-by one error.
4
5 2004-09-21 Daniel Jacobowitz <dan@debian.org>
6
7 * dwarf2read.c (struct dwarf2_per_cu_data): New field type_hash.
8 (struct dwarf2_offset_and_type): New.
9 (set_die_type, reset_die_and_siblings_types, get_die_type)
10 (offset_and_type_hash, offset_and_type_eq): New functions.
11 (read_structure_type, read_enumeration_type, read_array_type)
12 (read_namespace, read_tag_pointer_type, read_tag_ptr_to_member_type)
13 (read_tag_reference_type, read_tag_const_type)
14 (read_tag_volatile_type, read_tag_string_type, read_subroutine_type)
15 (read_typedef, read_base_type, read_subrange_type): Use
16 set_die_type.
17
18 2004-09-20 Daniel Jacobowitz <dan@debian.org>
19
20 * Makefile.in (dwarf2read.o): Update dependencies.
21 * dwarf2read.c: Include "command.h" and "gdbcmd.h".
22 (struct dwarf2_per_objfile): Add all_comp_units, n_comp_units,
23 and read_in_chain.
24 (struct dwarf2_cu): Add read_in_chain, per_cu, last_used,
25 mark, and has_form_ref_addr.
26 (struct dwarf2_per_cu_data): New.
27 (dwarf2_max_cache_age): New.
28 (dwarf2_build_psymtabs_hard): Free cached compilation units
29 after loading. Create and manage the list of compilation units.
30 Remove unnecessary NULL initialization. Fix indentation.
31 (psymtab_to_symtab_1): Initialize all of CU.
32 (dwarf2_read_abbrevs): Set has_form_ref_addr.
33 (find_partial_die): Use dwarf2_find_containing_comp_unit
34 and load_comp_unit.
35 (free_stack_comp_unit): Update comments. Clear the per-cu
36 pointer. Handle aging.
37 (dwarf2_find_containing_comp_unit, free_cached_comp_units)
38 (age_cached_comp_units, free_one_cached_comp_unit)
39 (dwarf2_mark, dwarf2_clear_marks, create_all_comp_units)
40 (load_comp_unit, dwarf2_find_comp_unit, free_one_comp_unit)
41 (set_dwarf2_cmdlist, show_dwarf2_cmdlist, set_dwarf2_cmd)
42 (show_dwarf2_cmd): New.
43 (_initialize_dwarf2_read): Provide "maint set dwarf2 max-cache-age"
44 and "maint show dwarf2 max-cache-age".
45 * gdbcmd.h (maintenance_set_cmdlist, maintenance_show_cmdlist): New
46 externs.
47 * maint.c (maintenance_set_cmdlist, maintenance_show_cmdlist): Make
48 global.
49
50 2004-09-20 Jeff Johnston <jjohnstn@redhat.com>
51
52 * dwarf2read.c (typename_concat): Change prototype to accept obstack
53 and dwarf2_cu struct pointer as arguments. Change function to use
54 obstack if provided and use dwarf2_cu to determine language-specific
55 separator.
56 (partial_die_parent_scope): Change comment to include java. Use
57 new version of typename_concat instead of obconcat.
58 (partial_die_full_name): Use typename_concat.
59 (read_namespace): Ditto.
60 (read_enumeration_type): Use typename_concat instead of obconcat.
61 (new_symbol): Ditto.
62 (add_partial_symbol): Enhance tests for C++ to also test for Java.
63 (guess_structure_name): Ditto.
64 (read_subroutine_type): Ditto.
65 (read_structure_type): Ditto.
66 (is_vtable_name): Add Java support.
67 (determine_class_name): Switch to new typename_concat call.
68 (determine_prefix): Switch to new typename_concat call.
69 * jv-exp.y (FuncStart): New pattern.
70 (MethodInvocation): Add support for simple function calls. Change
71 warning message for other forms of inferior call currently not
72 supported.
73 * valarith.c (value_subscript): Treat an array with upper-bound
74 of -1 as unknown size.
75
76 2004-09-20 Daniel Jacobowitz <dan@debian.org>
77
78 * symtab.c (lookup_partial_symtab): Use psymtab_to_fullname.
79 (lookup_partial_symtab): Use symtab_to_fullname.
80
81 2004-09-19 Jim Blandy <jimb@redhat.com>
82
83 * minsyms.c (lookup_minimal_symbol): Doc fix.
84
85 2004-09-20 Andrew Cagney <cagney@gnu.org>
86
87 * config/nm-lynx.h (DEPRECATED_CHILD_RESUME): Deprecate
88 CHILD_RESUME.
89 * config/i386/nm-linux.h (DEPRECATED_CHILD_RESUME): Ditto.
90 * config/nm-linux.h (DEPRECATED_KILL_INFERIOR): Deprecate
91 KILL_INFERIOR.
92 * infptrace.c: Update.
93
94 2004-09-19 Daniel Jacobowitz <dan@debian.org>
95
96 * symtab.c (output_source_filename): Mark first argument as const.
97 (sources_info): Use symtab_to_fullname and psymtab_to_fullname
98 for "info sources" output.
99
100 2004-09-20 Mark Kettenis <kettenis@gnu.org>
101
102 * config/i386/nm-fbsd.h, config/i386/nm-obsd.h: Don't include
103 <machine/vmparam.h>.
104 (KERNEL_U_ADDR, REGISTER_U_ADDR): Remove defines.
105 (register_u_addr): Remove prototype.
106
107 2004-09-19 Mark Kettenis <kettenis@gnu.org>
108
109 * i386bsd-nat.c: Include "i386bsd-nat.h" and "inf-ptrace.h".
110 (i386bsd_fetch_inferior_registers): Rename from
111 fetch_inferior_registers. Make static.
112 (i386bsd_store_inferior_registers): Rename from
113 store_inferior_registers. Make static.
114 (i386bsd_target): New function.
115 * i386bsd-nat.h: New file.
116 * i386fbsd-nat.c: Include "target.h", "fbsd-nat.h" and
117 "i386bsd-nat.h".
118 (i386fbsd_resume): Rename from child_resume. Make static.
119 (_initialize_i386fbsd_nat): Construct and add target vector.
120 * i386nbsd-nat.c: Include "target.h" and "i386bsd-nat.h".
121 (_initialize_i386nbsd_nat): Construct and add target vector.
122 * config/i386/nm-fbsd.h: (CHILD_RESUME, CHILD_PID_TO_EXEC_FILE):
123 Remove defines.
124 * config/i386/fbsd.mh (NATDEPFILES): Add inf-child.o, inf-ptrace.o
125 and fbsd-nat.o. Remove inftarg.o and fbsd-proc.o.
126 * config/i386/nbsdaout.mh (NATDEPFILES): Add inf-child.o,
127 inf-ptrace.o, i386bsd-nat.o and bsd-kvm.o. Remove inftarg.o.
128 (LOADLIBES): New variable.
129 * config/i386/nbsdelf.mh (NATDEPFILES): Add inf-child.o and
130 inf-ptrace.o. Remove inftarg.o.
131 * config/i386/obsd.mh (NATDEPFILES): Add inf-child.o and
132 inf-ptrace.o. Remove inftarg.o.
133 * config/i386/obsdaout.mh (NATDEPFILES): Add inf-child.o,
134 inf-ptrace.o, i386nbsd-nat.o and bsd-kvm.o. Remove inftarg.o.
135 (LOADLIBES): New variable.
136 * Makefile.in (i386bsd_nat_h): New variable.
137 (i386bsd-nat.o, i386fbsd-nat.o, i386nbsd-nat.o): Update
138 dependencies.
139
140 * sparc64nbsd-tdep.c: Include "objfiles.h".
141 (sparc64nbsd_init_abi): Set in_solib_call_trampoline and
142 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
143 svr4_lp64_fetch_link_map_offsets.
144 * sparc64obsd-tdep.c: Include "objfiles.h". Don't include
145 "nbsd-tdep.h".
146 (sparc64obsd_init_abi): Set in_solib_call_trampoline and
147 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
148 svr4_lp64_fetch_link_map_offsets.
149 * Makefile.in (sparc64nbsd-tdep.o, sparc64obsd-tdep.o): Update
150 dependencies.
151
152 * fbsd-nat.c: New files with cleaned up contents of fbsd-proc.c.
153 * fbsd-nat.h: New file.
154 * Makefile.in (ALLDEPFILES): Add fbsd-nat.c.
155 (fbsd_nat_h): New variable.
156 (fbsd-nat.o): New dependency.
157
158 * config/sparc/nbsd64.mt, config/sparc/obsd.mt,
159 config/sparc/obsd64.mt (DEPRECATED_TM_FILE): Set to solib.h.
160
161 * inf-child.c (inf_child_post_wait): Remove stray whitespace in
162 comment.
163
164 2004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
165
166 * ada-exp.y (type_int): New function to add layer of abstraction
167 around references to expression types.
168 (type_long): Ditto.
169 (type_long_long): Ditto.
170 (type_float): Ditto.
171 (type_double): Ditto.
172 (type_long_double): Ditto.
173 (type_char): Ditto.
174 (type_system_address): Ditto.
175 (simple_exp): Use type_* functions in place of builtin_*
176 variables.
177 (exp): Ditto.
178 (write_var_from_name): Ditto.
179 (write_object_renaming): Ditto.
180 * ada-lang.c (ada_create_fundamental_type): Remove redundant
181 declaration.
182 (build_ada_types): Remove, replacing with...
183 (ada_language_arch_info): New function to initialize primitive
184 type vector in language_arch_info.
185 (ada_array_length): Remove use of builtin_type_ada_int.
186 (value_pos_atr): Ditto.
187 (ada_evaluate_subexp): Ditto.
188 (builtin_type_ada_int, builtin_type_ada_short, builtin_type_ada_long,
189 builtin_type_ada_long_long, builtin_type_ada_char,
190 builtin_type_ada_float, builtin_type_ada_double,
191 builtin_type_ada_long_double, builtin_type_ada_natural,
192 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
193 (ada_builtin_types): Remove.
194 (ada_language_defn): Remove entries for la_builtin_type_vector and
195 string_char_type and use ada_language_arch_info.
196 (_initialize_ada_language): Do type-vector initialization along
197 the lines of c-lang.c.
198 (ada_create_fundamental_type): Break up line.
199 (ada_dump_symtab): Remove unused function.
200 (enum ada_primitive_types): Define.
201 * ada-lang.h (builtin_type_ada_int, builtin_type_ada_short,
202 builtin_type_ada_long,builtin_type_ada_long_long,builtin_type_ada_char,
203 builtin_type_ada_float, builtin_type_ada_double,
204 builtin_type_ada_long_double, builtin_type_ada_natural,
205 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
206 * ada-lex.l: Use type_* functions in place of builtin_* variables.
207 (processInt): Ditto.
208 (processReal): Ditto.
209 (name_lookup): Ditto.
210 * ada-typeprint.c (print_range): Use builtin_type_int, not
211 builtin_type_ada_int.
212
213 2004-09-18 Mark Kettenis <kettenis@gnu.org>
214
215 * i386-tdep.c (i386_register_name): Rename regno to regnum.
216
217 * config/pa/hpux1020.mh (MH_CFLAGS): Remove -D__HP_CURSES.
218 * config/pa/hpux11.mh (MH_CFLAGS): Likewise.
219 * config/pa/hpux11w.mh (MH_CFLAGS): Likewise.
220 * configure.in: Improve checks for curses library by checking for
221 mvwaddstr instead of initscr. Drop HP curses in favour of
222 standard curses on HP-UX.
223 * configure: Regenerated.
224
225 2004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
226
227 * ada-lang.c: (ada_main_name, ada_value_slice_ptr, ada_value_slice,
228 ada_breakpoint_rewrite, ada_template_to_fixed_record_type_1):
229 Minor formatting changes.
230 (empty_array): Slight rewrite for formatting.
231 (emit_char,parse,ada_language_defn,build_ada_types,
232 ada_is_exception_sym, _initialize_ada_language): Move
233 definitions around.
234 (ada_dump_symtab): Remove unused definition.
235 (ada_maybe_exception_partial_symbol): Remove unused definition.
236
237 2004-09-16 Andrew Cagney <cagney@gnu.org>
238
239 * inf-child.c: Include "gdb_string.h".
240 (inf_child_core_file_to_sym_file): Delete.
241 (inf_child_target): Set to_fetch_registers and to_store_registers.
242 * inf-ptrace.c: Include "gdb_string.h".
243 * Makefile.in: Update all dependencies.
244
245 * Makefile.in (gnu-v3-abi.o): Add explict rule to avoid -Werror
246 problem.
247
248 2004-09-14 Joel Brobecker <brobecker@gnat.com>
249
250 * mips-tdep.c (mips_insn32_frame_cache): Pass frame cache in
251 call to heuristic_proc_desc. Remove code that became redundant
252 as a consequence.
253 (read_next_frame_reg): Remove special case for SP_REGNUM.
254 (set_reg_offset): Fix small typo.
255 (reset_saved_regs): New procedure.
256 (mips32_heuristic_proc_desc): No longer compute a fake
257 procedure descriptor. Compute the full frame cache instead.
258 Some minor comment reformatting.
259
260 2004-09-14 Andrew Cagney <cagney@gnu.org>
261
262 * MAINTAINERS: Add Michael Chastain as the backup gdb.threads
263 maintainer.
264
265 * thread-db.c (thread_db_new_objfile): Assume that there is a
266 child process.
267
268 2004-09-13 Jim Blandy <jimb@redhat.com>
269
270 * valops.c (value_assign): Move 'buffer' to the enclosing block,
271 so that its storage isn't referenced after its lifetime ends.
272
273 * valops.c (value_assign): 'use_buffer' is initialized to zero,
274 and never assigned to. Delete it, and the 'if (use_buffer)'
275 clauses. Delete 'raw_buffer', since it is now unused.
276
277 2004-09-13 Andrew Cagney <cagney@gnu.org>
278
279 * configure.in (frags): Replace TM_FILE with DEPRECATED_TM_FILE.
280 * configure: Re-generate.
281 * nlm/Makefile.in (TAGS): Update.
282 * Makefile.in (TAGS): Update.
283 * config/vax/nbsd.mt (TM_FILE): Update.
284 * config/sparc/vxworks.mt (TM_FILE): Update.
285 * config/sparc/sol2.mt (TM_FILE): Update.
286 * config/sparc/sol2-64.mt (TM_FILE): Update.
287 * config/sparc/obsd64.mt (TM_FILE): Update.
288 * config/sparc/obsd.mt (TM_FILE): Update.
289 * config/sparc/nbsd64.mt (TM_FILE): Update.
290 * config/sparc/nbsd.mt (TM_FILE): Update.
291 * config/sparc/linux64.mt (TM_FILE): Update.
292 * config/sparc/linux.mt (TM_FILE): Update.
293 * config/sparc/fbsd.mt (TM_FILE): Update.
294 * config/sh/wince.mt (TM_FILE): Update.
295 * config/sh/nbsd.mt (TM_FILE): Update.
296 * config/sh/linux.mt (TM_FILE): Update.
297 * config/sh/embed.mt (TM_FILE): Update.
298 * config/s390/s390.mt (TM_FILE): Update.
299 * config/rs6000/rs6000lynx.mt (TM_FILE): Update.
300 * config/rs6000/rs6000.mt (TM_FILE): Update.
301 * config/rs6000/aix4.mt (TM_FILE): Update.
302 * config/powerpc/vxworks.mt (TM_FILE): Update.
303 * config/powerpc/ppc-sim.mt (TM_FILE): Update.
304 * config/powerpc/ppc-eabi.mt (TM_FILE): Update.
305 * config/powerpc/obsd.mt (TM_FILE): Update.
306 * config/powerpc/nbsd.mt (TM_FILE): Update.
307 * config/powerpc/linux.mt (TM_FILE): Update.
308 * config/powerpc/aix.mt (TM_FILE): Update.
309 * config/pa/obsd.mt (TM_FILE): Update.
310 * config/pa/linux.mt (TM_FILE): Update.
311 * config/pa/hppahpux.mt (TM_FILE): Update.
312 * config/pa/hppa64.mt (TM_FILE): Update.
313 * config/pa/hppa.mt (TM_FILE): Update.
314 * config/ns32k/nbsdaout.mt (TM_FILE): Update.
315 * config/mips/wince.mt (TM_FILE): Update.
316 * config/mips/vxmips.mt (TM_FILE): Update.
317 * config/mips/nbsd.mt (TM_FILE): Update.
318 * config/mips/linux.mt (TM_FILE): Update.
319 * config/mips/irix6.mt (TM_FILE): Update.
320 * config/mips/irix5.mt (TM_FILE): Update.
321 * config/mips/embed.mt (TM_FILE): Update.
322 * config/m68k/vxworks68.mt (TM_FILE): Update.
323 * config/m68k/st2000.mt (TM_FILE): Update.
324 * config/m68k/os68k.mt (TM_FILE): Update.
325 * config/m68k/obsd.mt (TM_FILE): Update.
326 * config/m68k/nbsd.mt (TM_FILE): Update.
327 * config/m68k/monitor.mt (TM_FILE): Update.
328 * config/m68k/linux.mt (TM_FILE): Update.
329 * config/m68k/cisco.mt (TM_FILE): Update.
330 * config/ia64/linux.mt (TM_FILE): Update.
331 * config/ia64/aix.mt (TM_FILE): Update.
332 * config/ia64/ia64.mt (TM_FILE): Update.
333 * config/i386/vxworks.mt (TM_FILE): Update.
334 * config/i386/obsd64.mt (TM_FILE): Update.
335 * config/i386/obsd.mt (TM_FILE): Update.
336 * config/i386/nto.mt (TM_FILE): Update.
337 * config/i386/nbsd64.mt (TM_FILE): Update.
338 * config/i386/nbsd.mt (TM_FILE): Update.
339 * config/i386/linux64.mt (TM_FILE): Update.
340 * config/i386/linux.mt (TM_FILE): Update.
341 * config/i386/i386sol2.mt (TM_FILE): Update.
342 * config/i386/i386lynx.mt (TM_FILE): Update.
343 * config/i386/fbsd64.mt (TM_FILE): Update.
344 * config/i386/fbsd.mt (TM_FILE): Update.
345 * config/i386/cygwin.mt (TM_FILE): Update.
346 * config/h8300/h8300.mt (TM_FILE): Update.
347 * config/frv/frv.mt (TM_FILE): Update.
348 * config/cris/cris.mt (TM_FILE): Update.
349 * config/arm/wince.mt (TM_FILE): Update.
350 * config/arm/nbsd.mt (TM_FILE): Update.
351 * config/arm/linux.mt (TM_FILE): Update.
352 * config/arm/embed.mt (TM_FILE): Update.
353 * config/alpha/nbsd.mt (TM_FILE): Update.
354 * config/alpha/fbsd.mt (TM_FILE): Update.
355 * config/alpha/alpha.mt (TM_FILE): Update.
356 * config/alpha/alpha-osf1.mt (TM_FILE): Update.
357 * config/alpha/alpha-linux.mt (TM_FILE): Update.
358
359 Eliminate event_loop_p, always has the value 1.
360 * defs.h (event_loop_p): Delete macro.
361 * breakpoint.c (until_break_command): Simplify.
362 * utils.c (prompt_for_continue): Simplify.
363 * tracepoint.c (read_actions): Simplify.
364 * top.c (throw_exception, execute_command, gdb_readline_wrapper)
365 (gdb_rl_operate_and_get_next, command_line_input, get_prompt)
366 (set_prompt, init_main): Simplify.
367 (init_signals, disconnect): Delete, unused.
368 * remote.c (remote_async_resume)
369 (extended_remote_async_create_inferior): Simplify.
370 * mi/mi-interp.c (mi_input): Delete, unused.
371 (mi_interpreter_resume, mi_command_loop): Simplify.
372 * interps.c (current_interp_command_loop): Simplify.
373 * infrun.c (proceed): Simplify.
374 * infcmd.c (run_command, continue_command, step_1, jump_command)
375 (until_command, advance_command, finish_command)
376 (interrupt_target_command): Simplify.
377 * event-top.c (gdb_setup_readline, gdb_disable_readline): Simplify.
378
379 * config/i386/nm-i386.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
380 * config/s390/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
381 * config/pa/nm-hppah.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
382 * config/ia64/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
383 * config/frv/tm-frv.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
384 * mips-tdep.c (mips_dump_tdep): Do not print same.
385
386 2004-09-12 Andrew Cagney <cagney@gnu.org>
387
388 * valprint.c (print_longest): Use fputs_filtered. Make "val"
389 const.
390 * Makefile.in (valprint.o): Delete explict rule.
391
392 * config/m68k/nbsdelf.mh: Add missing trailing newline. Problem
393 reported by Dave Anderson.
394
395 * target.c (target_info): Delete #ifdef call to FILES_INFO_HOOK.
396
397 * inferior.h (STORE_STRUCT_RETURN): Delete macro.
398
399 2004-09-12 Salvador E. Tropea <set@users.sf.net>
400 Andrew Cagney <cagney@gnu.org>
401
402 * mi/mi-main.c (mi_cmd_data_list_changed_registers)
403 (mi_cmd_data_list_register_values)
404 (mi_cmd_data_write_register_values): Include the PSEUDO_REGS in
405 the register number computation.
406
407 2004-09-12 Andrew Cagney <cagney@gnu.org>
408
409 * ppcnbsd-nat.c: Include "inf-ptrace.h".
410 (ppcnbsd_fetch_inferior_registers): Rename fetch_inferior_registers.
411 (ppcnbsd_store_inferior_registers): Rename store_inferior_registers.
412 (_initialize_ppcnbsd_nat): Create and add a NetBSD/PPC ptrace
413 target.
414 * config/powerpc/nbsd.mh (NATDEPFILES): Replace and inftarg.o with
415 inf-ptrace.o and inf-child.o.
416 * inf-ptrace.h, inf-ptrace.c, inf-child.h, inf-child.c: New files.
417 * Makefile.in: Update dependencies.
418
419 2004-09-11 Andrew Cagney <cagney@gnu.org>
420
421 * language.c (hex_string, hex_string_custom): Move from here ...
422 * utils.c (hex_string, hex_string_custom): ... to here, rewrite.
423 (CELLSIZE): Increase to 50.
424 * language.h (hex_string, hex_string_custom): Move from here ...
425 * defs.h: ... to here.
426 * Makefile.in: Update all dependencies.
427
428 2004-09-11 Paul N. Hilfinger <hilfinger@gnat.com>
429
430 * language.c (local_hex_format_custom): Remove.
431 (local_hex_string): Rename to hex_string, use C format, and move to
432 utils.c
433 (local_hex_string_custom): Rename to hex_string_custom and change
434 interface. Now uses C format. Move to utils.c
435 (local_octal_format_custom): Remove.
436 (local_decimal_format_custom): Remove.
437 (unknown_language_defn): Remove language-specific number
438 formatting entries.
439 (auto_language_defn): Ditto.
440 (local_language_defn): Ditto.
441 * language.h (struct language_format_info): Delete declaration.
442 (struct language_defn): Remove language_format_info fields
443 la_binary_format, la_octal_format, la_decimal_format, la_hex_format.
444 (local_binary_format): Remove macro.
445 (local_binary_format_prefix): Remove macro.
446 (local_binary_format_specifier): Remove macro.
447 (local_binary_format_suffix): Remove macro.
448 (local_octal_format): Remove macro.
449 (local_octal_format_prefix): Remove macro.
450 (local_octal_format_specifier): Remove macro.
451 (local_octal_format_suffix): Remove macro.
452 (local_decimal_format): Remove macro.
453 (local_decimal_format_prefix): Remove macro.
454 (local_decimal_format_specifier): Remove macro.
455 (local_decimal_format_suffix): Remove macro.
456 (local_hex_format): Remove macro.
457 (local_hex_format_prefix): Remove macro.
458 (local_hex_format_specifier): Remove macro.
459 (local_hex_format_suffix): Remove macro.
460 (local_decimal_format_custom): Remove.
461 (local_octal_format_custom): Remove.
462 (local_hex_format_custom): Remove.
463 (local_hex_string): Rename to hex_string and move to defs.h.
464 (local_hex_string_custom): Rename to hex_string_custom, change
465 interface, and move to defs.h.
466 * utils.c: (int_string): New function.
467 (hex_string): New function (from language.c).
468 (hex_string_custom): New function (from language.c).
469 (octal2str): New function.
470 (decimal2str): Add width parameter.
471 (paddr_u): Use new decimal2str interface.
472 (paddr_d): Ditto.
473 * defs.h (hex_string): Declare.
474 (hex_string_custom): Declare.
475 (int_string): Declare.
476 * printcmd.c (print_scalar_formatted): Remove localized binary
477 formatting.
478 * valprint.c (print_longest): Use int_string.
479 (print_floating): Use C hex format.
480 (print_hex_chars): Ditto.
481 (print_binary_chars): Remove language-specific formatting.
482 (print_octal_chars): Use C octal format.
483 (print_decimal_chars): Delocalize format.
484 (print_decimal): Remove.
485 * ada-lang.c (ada_language_defn): Remove language-specific number
486 formatting entries.
487 * p-lang.c (pascal_language_defn): Ditto.
488 * c-lang.c (c_language_defn): Ditto.
489 (cplus_language_defn): Ditto.
490 (asm_language_defn): Ditto.
491 (minimal_language_defn): Ditto.
492 * f-lang.c (f_language_defn): Ditto.
493 * jv-lang.c (java_language_defn): Ditto.
494 * m2-lang.c (m2_language_defn): Ditto.
495 * scm-lang.c (scm_language_defn): Ditto.
496 * objc-lang.c (objc_language_defn): Ditto.
497 * memattr.c (mem_info_command): Use renamed hex_string_custom with
498 new interface.
499 * pa64solib.c (pa64_sharedlibrary_info_command): Ditto.
500 * ui-out.c (ui_out_field_core_addr): Ditto.
501 * breakpoint.c (breakpoint_adjustment_warning): Ditto.
502 * exec.c (print_section_info): Ditto.
503 * i387-tdep.c (print_i387_status_word): Ditto.
504 (print_i387_control_word): Ditto.
505 (i387_print_float_info): Ditto.
506 * maint.c (maint_print_section_info): Ditto.
507 * solib.c (info_sharedlibrary_command): Ditto.
508 * somsolib.c (som_sharedlibrary_info_command): Ditto.
509 * symtab.c (print_msymbol_info): Ditto.
510 * tracepoint.c (tracepoints_info): Ditto.
511 * solib-frv.c (lm_base): Ditto.
512 (frv_current_sos): Ditto.
513 (enable_break2): Ditto.
514 (enable_break): Ditto.
515 * dbxread.c (read_dbx_symtab): Use renamed hex_string.
516 (process_one_symbol): Ditto.
517 * infcmd.c (program_info): Ditto.
518 * mdebugread.c (parse_partial_symbols): Ditto.
519 * symfile.c (add_symbol_file_command): Ditto.
520 * cli/cli-cmds.c (edit_command): Ditto.
521 (list_command): Ditto.
522 * infcall.c (call_function_by_hand): Ditto.
523 * remote-vx.c (vx_run_files_info): Ditto.
524 (vx_wait): Ditto.
525 (vx_attach): Ditto.
526 (vx_detach): Ditto.
527 (vx_kill): Ditto.
528 * aix-thread.c (pdc_symbol_addrs): Ditto.
529 (pdc_read_regs): Ditto.
530 (pdc_write_regs): Ditto.
531 (pdc_read_data): Ditto.
532 (pdc_write_data): Ditto.
533 * d10v-tdep.c (display_trace): Ditto.
534 * rs6000-nat.c (find_toc_address): Ditto.
535 * aix-thread.c: Don't include language.h.
536 * buildsym.c: Ditto.
537 * dbxread.c: Ditto.
538 * mdebugread.c: Ditto.
539 * rs6000-nat.c: Ditto.
540 * buildsym.c (make_blockvector): Use renamed hex_string.
541
542 2004-09-10 Jason Molenda (jmolenda@apple.com)
543
544 * cli/cli-script.c (read_next_line): Accept zero or more whitespace
545 chars after 'if' or 'while' commands in user-defined commands.
546
547 2004-09-08 Jim Blandy <jimb@redhat.com>
548
549 Fix bug reported and analyzed by Olivier Crete:
550 * symfile.c (copy_section_addr_info): New function.
551 (symbol_file_add_with_addrs_or_offsets): Use it to save the
552 original set of address arguments, instead of handwritten code
553 that uses one length to allocate and a different length to
554 initialize. Use make_cleanup_free_section_addr_info.
555 * symfile.h (copy_section_addr_info): New declaration.
556 * utils.c: #include "symfile.h".
557 (do_free_section_addr_info, make_cleanup_free_section_addr_info):
558 New functions.
559 * defs.h (make_cleanup_free_section_addr_info): New declaration.
560 * Makefile.in (utils.o): Update dependencies.
561
562 2004-09-08 Andrew Cagney <cagney@gnu.org>
563
564 * thread-db.c (keep_thread_db): Delete.
565 (thread_db_new_objfile, thread_db_create_inferior)
566 (thread_db_mourn_inferior): Simplify assuming !keep_thread_db.
567
568 2004-09-08 Mark Kettenis <kettenis@gnu.org>
569
570 * i386-tdep.h (FPC_REGNUM, FCTRL_REGNUM, FSTAT_REGNUM, FTAG_REGNUM)
571 (FISEG_REGNUM, FIOFF_REGNUM, FOSEG_REGNUM, FOOFF_REGNUM)
572 (FOP_REGNUM, XMM0_REGNUM, MXCSR_REGNUM): Remove macros.
573 (i386_frameless_signal_p): Remove prototype.
574 * i386-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
575 (GETFPXREGS_SUPPLIES): Define using I386_ST0_REGNUM and
576 I386_SSE_NUM_REGS.
577 * i386-nto-tdep.c (i386nto_supply_gregset): Use I386_NUM_GREGS
578 instead of FP0_REGNUM.
579 (i386nto_regset_id): Use I386_NUM_GREGS and I386_NUM_FREGS instead
580 of FP0_REGNUM and FPC_REGNUM.
581
582 * solib-sunos.c (sunos_relocate_main_executable): Remove function.
583 (sunos_solib_create_inferior_hook): Don't call
584 sunos_relocate_main_executable.
585
586 * sparcnbsd-tdep.c (sparc32nbsd_elf_init_abi): Set
587 solib_svr4_fetch_link_map_offsets to
588 svr4_ilp32_fetch_link_map_offsets.
589 * sparcobsd-tdep.c: Don't include "nbsd-tdep.h".
590 (sparc32obsd_init_abi): Set solib_svr4_fetch_link_map_offsets to
591 svr4_ilp32_fetch_link_map_offsets.
592 * Makefile.in (sparcobsd-tdep.o): Update dependencies.
593
594 2004-09-07 Jim Blandy <jimb@redhat.com>
595
596 * frame.h (frame_register): Doc fix.
597
598 2004-09-07 Andrew Cagney <cagney@gnu.org>
599
600 * vx-share/wait.h: Delete #ifdef USG.
601 * utils.c (request_quit): Ditto.
602 * tui/tui.c (tui_reset): Ditto.
603 * remote.c: Ditto.
604 * remote-sds.c: Ditto.
605 * remote-rdi.c: Ditto.
606 * mdebugread.c: Ditto.
607 * m68klinux-nat.c: Ditto.
608 * infttrace.c: Ditto.
609 * infptrace.c: Ditto.
610 * i386v-nat.c: Ditto.
611 * exec.c: Ditto.
612 * dbxread.c: Ditto.
613 * core-aout.c: Ditto.
614
615 2004-09-05 Joel Brobecker <brobecker@gnat.com>
616
617 * mips-tdep.c (mips_insn16_frame_cache): Fix parameter in call to
618 heuristic_proc_desc.
619 (mips_insn32_frame_cache): Likewise.
620
621 2004-09-04 Joel Brobecker <brobecker@gnat.com>
622
623 * mips-tdep.c (mips32_heuristic_proc_desc): Remove code that was
624 left behind by error.
625
626 2004-09-04 Joel Brobecker <brobecker@gnat.com>
627
628 * config/alpha/nm-osf.h (PTRACE_ARG3_TYPE): Remove define.
629 * config/powerpc/nm-aix.h (PTRACE_ARG3_TYPE): Likewise.
630
631 2004-09-04 Joel Brobecker <brobecker@gnat.com>
632
633 * config/rs6000/xm-aix4.h: Remove this file.
634 * config/rs6000/aix4.mh (XM_FILE): Delete.
635
636 2004-09-04 Joel Brobecker <brobecker@gnat.com>
637
638 * config/rs6000/xm-rs6000.h: Remove this file.
639 * config/rs6000/rs6000.mh (XM_FILE): Remove.
640
641 2004-09-03 Andrew Cagney <cagney@gnu.org>
642
643 * mips-tdep.c (PROC_DESC_IS_DUMMY, SET_PROC_DESC_IS_DUMMY)
644 (_PROC_MAGIC_, after_prologue, mips_dump_tdep): Delete macros and
645 only use.
646
647 * mips-tdep.c (temp_saved_regs): Delete.
648 (set_reg_offset): Replace saved_regs parameter with this_cache.
649 (heuristic_proc_desc, mips16_heuristic_proc_desc)
650 (mips32_heuristic_proc_desc): Add this_cache parameter.
651 (mips_insn32_frame_cache, mips_insn16_frame_cache)
652 (after_prologue): Pass a NULL this_cache.
653
654 * mips-tdep.c (mips_mdebug_frame_cache): Delete code handling
655 non-kernel trap prologues.
656
657 * mips-tdep.c (find_proc_desc): Delete function.
658 (mips_mdebug_frame_cache): Inline call to find_proc_desc,
659 simplify.
660 (mips_insn16_frame_cache): Replace find_proc_desc with code from
661 mips_insn32_frame_cache.
662
663 * mips-tdep.c (after_prologue): Inline call to find_proc_desc.
664 Simplify as NEXT_FRAME is NULL.
665 (find_proc_desc): Simplify as NEXT_FRAME is non-NULL.
666
667 * mips-tdep.c (after_prologue): Replace proc_desc parameter with
668 local variable.
669 (mips_skip_prologue): Update.
670
671 * mips-tdep.c (find_proc_desc, heuristic_proc_desc): Delete
672 "cur_frame" parameter.
673 (after_prologue, mips_mdebug_frame_cache, mips_insn16_frame_cache):
674 (mips_insn32_frame_cache, find_proc_desc): Update
675
676 * config/vax/nm-obsd.h: Delete file.
677 * config/vax/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
678 * config/vax/nm-nbsd.h: Delete file.
679 * config/vax/nm-nbsdaout.h: Include config/nm-nbsd.h.
680 * config/vax/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
681 * config/sh/nm-nbsd.h: Delete file.
682 * config/sh/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
683 * config/rs6000/nm-rs6000ly.h: Delete file.
684 * config/djgpp/fnchange.lst: Do not rename nm-rs6000ly.h.
685 * config/rs6000/rs6000lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
686 * config/powerpc/nm-obsd.h: Delete file.
687 * config/powerpc/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
688 * config/powerpc/nm-nbsd.h: Delete file.
689 * config/powerpc/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
690 * config/pa/nm-obsd.h: Delete file.
691 * config/pa/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
692 * config/mips/nm-nbsd.h: Delete file.
693 * config/mips/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
694 * config/m88k/nm-obsd.h: Delete file.
695 * config/m88k/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
696 * config/m68k/nm-nbsd.h: Delete file.
697 * config/m68k/nm-nbsdaout.h: Include config/nm-nbsd.h.
698 * config/m68k/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
699 * config/i386/nm-nbsd.h: Delete file.
700 * config/i386/nm-nbsdaout.h: Include config/nm-nbsd.h.
701 * config/i386/obsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
702 * config/i386/nbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
703 * config/i386/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
704 * config/i386/nm-i386lynx.h: Delete file.
705 * config/i386/i386lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
706 * config/arm/nm-nbsd.h: Delete file.
707 * config/arm/nm-nbsdaout.h: Include config/nm-nbsd.h.
708 * config/arm/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
709
710 * config/i386/tm-fbsd.h: Delete file.
711 * config/i386/fbsd64.mt (TM_FILE): Set to solib.h.
712 * config/i386/fbsd.mt (TM_FILE): Set to solib.h.
713
714 * config/rs6000/tm-rs6000-aix4.h: Delete file.
715 * config/djgpp/fnchange.lst: Do not rename tm-rs6000-aix4.h.
716 * config/rs6000/aix4.mt (TM_FILE): Set to
717 config/rs6000/tm-rs6000.h.
718 * config/powerpc/tm-ppc-aix.h: Delete file.
719 * config/powerpc/aix.mt (TM_FILE): Set to
720 config/rs6000/tm-rs6000.h.
721 * config/m68k/tm-linux.h: Delete file.
722 * config/m68k/linux.mt (TM_FILE): Set to solib.h
723 * config/i386/tm-linux64.h: Delete file.
724 * config/i386/linux64.mt (TM_FILE): Set to solib.h.
725 * config/djgpp/fnchange.lst: Do not rename tm-linux.h.
726
727 * config/m68k/tm-linux.h (SVR4_SHARED_LIBS): Delete.
728 * config/i386/tm-linux64.h (SVR4_SHARED_LIBS): Delete.
729 * config/i386/nm-i386sco5.h (SVR4_SHARED_LIBS): Delete.
730 * config/tm-linux.h (SVR4_SHARED_LIBS): Delete.
731 * config/nm-sysv4.h (SVR4_SHARED_LIBS): Delete.
732 * config/nm-linux.h (SVR4_SHARED_LIBS): Delete.
733 * config/nm-gnu.h (SVR4_SHARED_LIBS): Delete.
734 * sh64-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
735 * sh-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
736
737 * configure.in (GDB_TM_FILE): Fix typo, use gdb_target_cpu and not
738 gdb_host_cpu.
739
740 2004-09-02 Joel Brobecker <brobecker@gnat.com>
741
742 * mips-tdep.c (mips_insn32_frame_cache): Remove some dead code.
743 Minor reformatting. Some code factoring.
744
745 2004-09-02 Andrew Cagney <cagney@gnu.org>
746
747 * config/vax/nbsd.mt (TM_FILE): Set to solib.h.
748 * config/vax/tm-nbsd.h: Delete file.
749 * config/sparc/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
750 * config/sparc/tm-vxworks.h: Delete file.
751 * config/sparc/nbsd.mt (TM_FILE): Set to solib.h.
752 * config/sparc/tm-nbsd.h: Delete file.
753 * config/sparc/linux64.mt (TM_FILE): Set to solib.h.
754 * config/sparc/linux.mt (TM_FILE): Set to solib.h.
755 * config/sparc/tm-linux.h: Delete file.
756 * config/s390/s390.mt (TM_FILE): Set to config/tm-linux.h
757 * config/s390/tm-linux.h: Delete file.
758 * config/pa/obsd.mt (TM_FILE): Set to solib.h.
759 * config/pa/tm-bsd.h: Delete file.
760 * config/m68k/obsd.mt (TM_FILE): Set to solib.h.
761 * config/m68k/tm-obsd.h: Delete file.
762 * config/m68k/nbsd.mt (TM_FILE): Set to solib.h.
763 * config/m68k/tm-nbsd.h: Delete file.
764 * config/i386/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
765 * config/i386/tm-vxworks.h: Delete file.
766 * config/i386/obsd64.mt (TM_FILE): Set to solib.h.
767 * config/i386/obsd.mt (TM_FILE): Set to solib.h.
768 * config/i386/nbsd64.mt (TM_FILE): Set to solib.h.
769 * config/i386/nbsd.mt (TM_FILE): Set to solib.h.
770 * config/i386/tm-nbsd.h: Delete file.
771 * config/i386/i386lynx.mt (TM_FILE): Set to config/tm-lynx.h.
772 * config/i386/tm-i386lynx.h: Delete file.
773 * config/cris/cris.mt (TM_FILE): Set to solib.h.
774 * config/cris/tm-cris.h: Delete file.
775
776 * configure.in: Let TM_FILE, XM_FILE and NAT_FILE specify a path.
777 * configure: Re-generate.
778 * config/arm/nbsd.mt (TM_FILE): Set to "solib.h".
779 * config/arm/tm-nbsd.h: Delete file.
780
781 * config/powerpc/tm-ppcle-sim.h: Delete.
782 * config/powerpc/tm-ppcle-eabi.h: Delete.
783 * config/powerpc/tm-nbsd.h: Delete.
784 * config/powerpc/nbsd.mt (TM_FILE): Set to tm-ppc-eabi.h.
785 * config/djgpp/fnchange.lst: Do not rename tm-ppcle-sim.h or
786 tm-ppcle-eabi.h.
787
788 * config/i386/nto.mh (NAT_FILE): Delete.
789 * config/i386/nm-nto.h: Delete.
790
791 * config/m68k/tm-vx68.h: Do not include "tm-m68k.h".
792 * config/m68k/tm-os68k.h: Ditto.
793 * config/m68k/tm-monitor.h: Ditto.
794 * config/m68k/tm-cisco.h: Ditto.
795 * config/m68k/st2000.mt (TM_FILE): Delete.
796 * config/m68k/tm-vx68.h (GET_LONGJMP_TARGET): Delete.
797 * config/m68k/tm-cisco.h (GET_LONGJMP_TARGET): Delete.
798 * config/m68k/tm-m68k.h (m68k_get_longjmp_target): Delete file.
799 * m68k-tdep.c (m68k_get_longjmp_target): Make static.
800
801 * config/m68k/tm-st2000.h: Delete.
802 * config/m68k/st2000.mt (TM_FILE): Set to tm-m68k.h.
803 * config/sparc/fbsd.mt (TM_FILE): Delete.
804 * config/sparc/tm-fbsd.h: Delete.
805
806 * acconfig.h (GDB_MULTI_ARCH): Delete undef.
807 * defs.h (GDB_MULTI_ARCH_PARTIAL, GDB_MULTI_ARCH_TM)
808 (GDB_MULTI_ARCH_PURE, GDB_MULTI_ARCH): Delete macros.
809
810 * gdbarch.sh: Instead of GDB_MULTI_ARCH print GDB_NM_FILE,
811 GDB_TM_FILE and GDB_XM_FILE.
812 * gdbarch.c: Re-generate.
813 * configure.in (GDB_XM_FILE, GDB_NM_FILE, GDB_TM_FILE): Include
814 quotes in macro definition.
815 * configure.in: Re-generate.
816
817 * gdbarch.sh: Delete check for GDB_MULTI_ARCH_PARTIAL when
818 validating architecture methods.
819 * gdbarch.c: Re-generate.
820
821 * gdbarch.sh: Delete check for consistency between GDB_MULTI_ARCH
822 and GDB_TM_FILE. Check for GDB_TM_FILE instead of
823 GDB_MULTI_ARCH_PARTIAL.
824 * gdbarch.h: Re-generate.
825
826 * config/sparc/tm-vxworks.h (GDB_MULTI_ARCH): Delete.
827 * config/sparc/tm-sol2.h (GDB_MULTI_ARCH): Delete.
828 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete.
829 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete.
830 * config/sparc/tm-fbsd.h (GDB_MULTI_ARCH): Delete.
831 * config/sh/tm-sh.h (GDB_MULTI_ARCH): Delete.
832 * config/rs6000/tm-rs6000.h (GDB_MULTI_ARCH): Delete.
833 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Delete.
834 * config/mips/tm-mips.h (GDB_MULTI_ARCH): Delete.
835 * config/ia64/tm-ia64.h (GDB_MULTI_ARCH): Delete.
836 * config/cris/tm-cris.h (GDB_MULTI_ARCH): Delete.
837 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Delete.
838
839 2004-09-01 Andrew Cagney <cagney@gnu.org>
840
841 * objfiles.h (struct entry_info): Delete fields main_func_lowpc
842 and main_func_highpc.
843 (INVALID_ENTRY_LOWPC, INVALID_ENTRY_HIGHPC): Delete macros.
844 * objfiles.c (init_entry_point_info, objfile_relocate): Update
845 * nlmread.c (nlm_symfile_read): Update.
846
847 2004-09-01 Joel Brobecker <brobecker@gnat.com>
848
849 * mips-tdep.c (linked_proc_desc_table): Delete, not used.
850 (mips_insn32_frame_cache): Inline call to find_proc_desc.
851 (find_proc_desc): Remove dead code.
852
853 2004-09-01 Joel Brobecker <brobecker@gnat.com>
854
855 * mips-tdep.c (mips_mdebug_frame_cache): Minor reformatting.
856
857 2004-09-01 Jeff Johnston <jjohnstn@redhat.com>
858
859 * observer.sh: Add struct so_list declaration.
860 * Makefile.in: Add dependencies on observer.h for solib.c and
861 breakpoint.c.
862 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): New
863 function.
864 (_initialize_breakpoint): Register
865 disable_breakpoints_in_unloaded_shlib as an observer of the
866 "solib unloaded" observation event.
867 (re_enable_breakpoints_in_shlibs): For bp_shlib_disabled breakpoints,
868 call decode_line_1 so unfound breakpoint errors are silent.
869 * solib.c (update_solib_list): When a solib is discovered to have
870 been unloaded by the program, notify all observers of the
871 "solib unloaded" observation event.
872
873 2004-09-01 Andrew Cagney <cagney@gnu.org>
874
875 * frame.c: Include "objfiles.h".
876 (inside_main_func): New function.
877 (get_prev_frame): Use new inside_main_func.
878 * Makefile.in (frame.o): Update dependencies.
879 * defs.h (inside_main_func): Delete declaration.
880 * blockframe.c (inside_main_func): Delete function.
881
882 2004-08-31 Jim Blandy <jimb@redhat.com>
883
884 * dwarf2read.c (is_vtable_name): New function, based on logic from
885 read_structure_type, but passing the correct length to strncmp,
886 and using 'sizeof' instead of 'strlen'.
887 (read_structure_type): Call it.
888
889 2004-08-31 Joel Brobecker <brobecker@gnat.com>
890
891 * config/powerpc/aix.mh: Add comment.
892
893 2004-08-31 Paul GIlliam <pgilliam@us.ibm.com>
894
895 * MAINTAINERS: Add self to Write-After-Approval.
896
897 2004-08-30 Manoj Iyer <manjo@austin.ibm.com>
898
899 * MAINTAINERS: Add self to Write-After-Approval.
900
901 2004-08-30 Andrew Cagney <cagney@gnu.org>
902
903 Fix PR breakpoints/1757.
904 * infrun.c (struct execution_control_state): Replace
905 remove_breakpoints_on_following_step with
906 step_after_step_resume_breakpoint.
907 (init_execution_control_state): Update.
908 (handle_inferior_event): For signals, when stepping off a
909 breakpoint, set step_after_step_resume_breakpoint. When
910 BPSTAT_WHAT_STEP_RESUME, do a single-step off the breakpoint.
911 (keep_going): Delete code handling
912 remove_breakpoints_on_following_step.
913
914 2004-08-29 David Lecomber <david@streamline-computing.com>
915
916 Fix PR gdb/648
917 * language.h (enum array_ordering): New enum.
918 * language.h (struct language_defn): New la_array_ordering
919 attribute.
920 * language.c (unknown_language_defn, auto_language_defn)
921 (local_language_defn): Ditto.
922 * ada-lang.c (ada_language_defn): Ditto.
923 * c-lang.c (c_language_defn, cplus_language_defn)
924 (asm_language_defn, minimal_language_defn): Ditto.
925 * f-lang.c (f_language_defn): Ditto.
926 * jv-lang.c (java_language_defn): Ditto.
927 * m2-lang.c (f_language_defn): Ditto.
928 * objc-lang.c (objc_language_defn): Ditto.
929 * p-lang.c (pascal_language_defn): Ditto.
930 * scm-lang.c (scm_language_defn): Ditto.
931 * eval.c (evaluate_subexp_standard): Assume Fortran arrays are
932 oriented large to small in type structure.
933 * dwarf2read.c (read_array_order): New function.
934 (read_array_type): Use read_array_order to check row/column
935 major ordering.
936
937 2004-08-27 Nathan J. Williams <nathanw@wasabisystems.com>
938
939 * target.c (target_resize_to_sections): Check
940 current_target.to_sections for an old value when updating.
941
942 2004-08-27 Joel Brobecker <brobecker@gnat.com>
943
944 * procfs.c (dbx_link_bpt_addr): New static global variable.
945 (dbx_link_shadow_contents): New static global variable.
946 (procfs_wait, case <PR_SYSEXIT>): Handle syssgi events.
947 (procfs_wait, case <FLTBPT>): Remove the __dbx_link brekapoint
948 if we just hit it.
949 (procfs_init_inferior): Enable syssgi() syscall trace if appropriate.
950 Reset dbx_link_bpt_addr as the address of __dbx_link() may change
951 from run to run.
952 (procfs_create_inferior): Remove syssgi syscall-exit notifications
953 after the inferior has been forked.
954 (remove_dbx_link_breakpoint): New function.
955 (dbx_link_addr): New function.
956 (insert_dbx_link_bpt_in_file): New function.
957 (insert_dbx_link_bpt_in_region): New function.
958 (insert_dbx_link_breakpoint): New function.
959 (proc_trace_syscalls_1): New function, extracted from
960 proc_trace_syscalls.
961 (proc_trace_syscalls): Replace extract code by call to
962 proc_trace_syscalls_1.
963 * solib-irix.c (disable_break): Remove stop_pc assertion, as it
964 is no longer valid.
965
966 2004-08-25 Jim Blandy <jimb@redhat.com>
967
968 * gdbtypes.h (TYPE_CODE_ARRAY): Doc fix.
969
970 2004-08-25 Andrew Cagney <cagney@gnu.org>
971
972 * infrun.c (struct execution_control_state): Delete field
973 "stepping_through_sigtramp".
974 (init_execution_control_state): Do not set same.
975 (context_switch): Do not pass same to save_infrun_state and
976 load_infrun_state.
977 * gdbthread.h (struct thread_info): Delete field
978 stepping_through_sigtramp.
979 (save_infrun_state, load_infrun_state): Delete parameter
980 stepping_through_sigtramp.
981 * thread.c (load_infrun_state, save_infrun_state): Update.
982
983 * infrun.c: Re-indent. Move expression operators to the beginning
984 of the line. Remove long disabled #if 0 code.
985
986 2004-08-24 Andrew Cagney <cagney@gnu.org>
987
988 * doublest.h (floatformat_ieee_quad): Rename
989 floatformat_ia64_quad.
990 * doublest.c (floatformat_ieee_quad): Rename
991 floatformat_ia64_quad.
992 (_initialize_doublest): Update.
993
994 2004-08-24 Jim Blandy <jimb@redhat.com>
995
996 * dwarf2expr.h (struct dwarf_expr_context): New members
997 'num_pieces' and 'pieces', for returning the result of an
998 expression that uses DW_OP_piece.
999 (struct dwarf_expr_piece): New struct type.
1000 * dwarf2expr.c (new_dwarf_expr_context): Initialize num_pieces and
1001 pieces.
1002 (free_dwarf_expr_context): Free pieces, if any.
1003 (add_piece): New function.
1004 (execute_stack_op): Implement DW_OP_piece.
1005 * dwarf2loc.c (dwarf2_evaluate_loc_desc): If the result of the
1006 expression is a list of pieces, print an error message.
1007 (dwarf2_loc_desc_needs_frame): If the expression yields
1008 pieces, and any piece is in a register, then we need a frame.
1009
1010 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Wait to fetch the top of
1011 the stack until we've decided what sort of result the evaluation
1012 has produced. Use separate variables, with more specific names.
1013
1014 2004-08-23 Richard Earnshaw <rearnsha@arm.com>
1015
1016 * armnbsd-tdep.c (arm_nbsd_arm_be_breakpoint): Define.
1017 (arm_nbsd_thumb_[lb]e_breakpoint): Define.
1018 (arm_netbsd_init_abi_common): Register them.
1019
1020 2004-08-22 Mark Kettenis <kettenis@gnu.org>
1021
1022 * config/vax/vax.mh (NATDEPFILES): Add vax-nat.c.
1023
1024 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Use
1025 safe_frame_unwind_memory instead of target_read_memory.
1026
1027 * infptrace.c: Remove #ifdef'ed out inclusion of gdb_stat.h.
1028 Reorder includes.
1029 (fetch_register, store_register): Remove prototypes.
1030 (child_resume): Reorganize code and comments such that it is
1031 grouped a bit more logically.
1032 (attach): Explicitly compare errno against 0.
1033 (detach): Likewise. Use perror_with_name instead of
1034 print_sys_errmsg.
1035 * Makefile.in (infptrace.o): Update dependencies.
1036
1037 * ia64-linux-nat.c: Update copyright year.
1038 (fetch_debug_register, store_debug_register)
1039 (ia64_linux_stopped_by_watchpoint): Replace PTRACE_ARG3_TYPE with
1040 PTRACE_TYPE_ARG3.
1041 * config/ia64/nm-linux.h: Update copyright year.
1042 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove defines.
1043
1044 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Change argument
1045 from CORE_ADDR to struct frame_info *. Use
1046 safe_frame_unwind_memory instead of deprecated_read_memory_nobpt.
1047 (amd64_linux_sigtramp_p): Adjust for changed signature of
1048 and64_linux_sigtramp_start
1049
1050 * gdb_ptrace.h: GNU/Linux.
1051
1052 * config/alpha/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
1053 Remove defines.
1054
1055 * infptrace.c: Include "gdb_assert.h".
1056 (PTRACE_XFER_TYPE): Remove define.
1057 (offsetof): Only define if U_REGS_OFFSET isn't defined.
1058 (fetch_register, store_register): Rewrite to use PTRACE_TYPE_RET.
1059 Tweak comment.
1060 (fetch_inferior_registers, store_inferior_registers): Remove
1061 redundant culry braces. Tweak comment. s/regno/regnum.
1062 * Makefile.in (infptrace.o): Update dependencies.
1063
1064 * configure.in: Change test for return type of ptrace to default
1065 to `long' instead of `int'.
1066 * configure: Regenerate.
1067
1068 2004-08-21 Mark Kettenis <kettenis@gnu.org>
1069
1070 * config/alpha/alpha-linux.mh (LOADLIBES): New variable.
1071
1072 * configure.in: Check for ttrace function.
1073 * configure, config.in: Regenerate.
1074
1075 * gdb_ptrace.h: New file.
1076 * infptrace.c: Include "gdb_ptrace.h" instead of <ptrace.h> or
1077 <sys/ptrace.h>.
1078 (PT_READ_I, PT_READ_D, PT_READ_U, PT_WRITE_I, PT_WRITE_D)
1079 (PT_WRITE_U, PT_CONTINUE, PT_STEP, PT_KILL): Remove defines.
1080 (attach): Don't define PT_ATTACH.
1081 (detach): Don't define PT_DETACH.
1082 * Makefile.in (gdb_ptrace_h): New variable.
1083 (infptrace.o): Update dependencies.
1084
1085 2004-08-16 Mark Kettenis <kettenis@gnu.org>
1086
1087 * inferior.h (PTRACE_ARG3_TYPE): Define as PTRACE_TYPE_ARG3
1088 instead of `int' if not already defined.
1089 (call_ptrace): Revert change that replaced PTRACE_ARG3_TYPE with
1090 PTRACE_TYPE_ARG3.
1091 * infptrace.c (call_ptrace): Revert change that replaced
1092 PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1093
1094 2004-08-15 Mark Kettenis <kettenis@gnu.org>
1095
1096 * config/i386/nm-linux64.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
1097 Remove defines.
1098
1099 * linux-nat.c (kill_inferior): Add missing third and fourth
1100 arguments to ptrace call. Don't use PTRACE_ARG3_TYPE.
1101
1102 * infptrace.c (child_xfer_memory): Replace PTRACE_XFER_TYPE with
1103 PTRACE_TYPE_RET.
1104
1105 * proc-why.c (proc_prettyfprint_why): Fix format string.
1106
1107 * solib-osf.c (osf_current_sos): Remove unsused label.
1108
1109 * configure.in: Add <ncurses/ncurses.h> to the list of possible
1110 curses headers.
1111 * configure, config.in: Regenerate.
1112 * gdb_curses.h [HAVE_NCURSES_NCURSES_H]: Include
1113 <ncurses/ncurses.h>.
1114
1115 * config/nm-bsd.h (PTRACE_ARG3_TYPE): Remove define.
1116 * config/nm-nbsd.h: Update copyright year.
1117 (PTRACE_ARG3_TYPE): Remove define.
1118
1119 * sparc-nat.c (fetch_inferior_registers)
1120 (store_inferior_registers, sparc_xfer_wcookie):
1121 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1122
1123 * alphabsd-nat.c (fetch_inferior_registers):
1124 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1125 PTRACE_TYPE_ARG3.
1126 * amd64bsd-nat.c (fetch_inferior_registers)
1127 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1128 PTRACE_TYPE_ARG3.
1129 * armnbsd-nat.c: Update copyright year.
1130 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs)
1131 (store_register, store_regs, store_fp_register, store_fp_regs):
1132 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1133 * hppabsd-nat.c (fetch_inferior_registers)
1134 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1135 PTRACE_TYPE_ARG3.
1136 * i386bsd-nat.c (fetch_inferior_registers)
1137 (store_inferior_registers, i386bsd_dr_set, i386bsd_dr_get_status):
1138 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1139 * m68kbsd-nat.c (fetch_inferior_registers)
1140 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1141 PTRACE_TYPE_ARG3.
1142 * m88kbsd-nat.c (fetch_inferior_registers)
1143 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1144 PTRACE_TYPE_ARG3.
1145 * mipsnbsd-nat.c: Update copyright year.
1146 (fetch_inferior_registers, store_inferior_registers):
1147 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1148 * ns32knbsd-nat.c: Update copyright year.
1149 (fetch_inferior_registers, store_inferior_registers):
1150 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1151 * ppcnbsd-nat.c (fetch_inferior_registers):
1152 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1153 PTRACE_TYPE_ARG3.
1154 * ppcobsd-nat.c (fetch_inferior_registers):
1155 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1156 PTRACE_TYPE_ARG3.
1157 * shnbsd-nat.c: Update copyright year.
1158 (fetch_inferior_registers, store_inferior_registers):
1159 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1160 * vaxbsd-nat.c (fetch_inferior_registers)
1161 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1162 PTRACE_TYPE_ARG3.
1163
1164 * inferior.h (call_ptrace): Replace PTRACE_ARG3_TYPE with
1165 PTRACE_TYPE_ARG3.
1166 * infptrace.c (call_ptrace, child_resume, attach, detach)
1167 (U_REGS_OFFSET, fetch_register, store_register, child_xfer_memory)
1168 (udot_info): Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1169 * inftarg.c (ptrace_me): Replace PTRACE_ARG3_TYPE with
1170 PTRACE_TYPE_ARG3.
1171
1172 2004-08-14 Mark Kettenis <kettenis@gnu.org>
1173
1174 * defs.h: Remove out-of-date comment.
1175 [!FCLOSE_PROVIDED] (fclose): Remove prototype.
1176 [!GETENV_PROVIDED] (getenv): Remove prototype.
1177
1178 * standalone.c: Remove file.
1179 * Makefile.in (standalone.o): Remove dependency.
1180
1181 * i386-linux-nat.c (dummy_sse_values): Remove function and
1182 prototype.
1183 (i386_linux_dr_get): Fix typo in comment.
1184 (LINUX_SYSCALL_REGNUM): Define as I386_EAX_REGNUM.
1185
1186 * config/i386/obsd64.mt (TDEPFILES): Add i386obsd-tdep.o.
1187
1188 * defs.h (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
1189 from declaration.
1190 * top.c (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
1191 from definition.
1192
1193 2004-08-13 Mark Kettenis <kettenis@gnu.org>
1194
1195 * configure.in (PTRACE_TYPE_ARG3, PTRACE_TYPE_ARG5): Don't use
1196 parenthesis in definition.
1197 * configure: Regenerated.
1198
1199 2004-08-12 Michael Chastain <mec.gnu@mindspring.com>
1200
1201 * PROBLEMS: Mention build/1411.
1202
1203 2004-08-09 Robert Millan <robertmh@gnu.org>
1204
1205 Committed by Nathanael Nerode.
1206 * configure.host: Match kfreebsd*-gnu and knetbsd*-gnu.
1207 * configure.tgt: Match kfreebsd*-gnu and knetbsd*-gnu.
1208
1209 2004-08-12 Andrew Cagney <cagney@gnu.org>
1210
1211 * NEWS: Mention fixes in GDB 6.2.1.
1212 * PROBLEMS: Remove mention of mips-irix.
1213
1214 2004-08-11 Joel Brobecker <brobecker@gnat.com>
1215
1216 * config/powerpc/xm-aix.h: Delete.
1217 * config/powerpc/aix.mh (MH_FILE): Remove.
1218 * config/powerpc/aix432.mh (MH_FILE): Remove.
1219
1220 2004-08-11 Joel Brobecker <brobecker@gnat.com>
1221
1222 * config/powerpc/aix.mh: Remove obsolete comment.
1223 * config/powerpc/aix432.mh: Likewise.
1224
1225 2004-08-11 Joel Brobecker <brobecker@gnat.com>
1226
1227 * config/powerpc/xm-aix.h (UINT_MAX): Remove undef.
1228
1229 2004-08-11 Joel Brobecker <brobecker@gnat.com>
1230
1231 * config/rs6000/xm-aix4.h: Remove "config/xm-aix4.h" include,
1232 this file is now empty.
1233 * config/xm-aix4.h: Remove, this file is no longer included
1234 anywhere.
1235
1236 2004-08-11 Joel Brobecker <brobecker@gnat.com>
1237
1238 * config/powerpc/xm-aix.h: Remove "config/xm-aix4.h" include,
1239 that file is now empty.
1240 (termdef): Remove prototype, function no longer used.
1241
1242 2004-08-11 Joel Brobecker <brobecker@gnat.com>
1243
1244 * doc/gdbint.texinfo (Host Definition): Remove documentation
1245 for USE_O_NOCTTY, no longer used.
1246 * config/xm-aix4.h (USE_O_NOCTTY): Remove, no longer used.
1247 * config/rs6000/xm-rs6000.h (USE_O_NOCTTY): Likewise.
1248
1249 2004-08-11 Joel Brobecker <brobecker@gnat.com>
1250
1251 * config/xm-aix4.h (FIVE_ARG_PTRACE): Remove, no longer used.
1252 * config/pa/nm-hppah.h (FIVE_ARG_PTRACE): Likewise.
1253 * config/rs6000/xm-rs6000.h (FIVE_ARG_PTRACE): Likewise.
1254
1255 2004-08-11 Mark Kettenis <kettenis@gnu.org>
1256
1257 * infptrace.c (call_ptrace): Select code based on PTRACE_TYPE_ARG5
1258 instead of FIVE_ARG_PTRACE.
1259
1260 * inflow.c (O_NOCTTY): Define to zero if not already defined.
1261 (new_tty): Use O_NOCTTY unconditionally.
1262
1263 2004-08-10 Mark Kettenis <kettenis@gnu.org>
1264
1265 * procfs.c (procfs_detach): Cleanup. Print process ID, not LWP
1266 ID. Use comma in output. Use gdb_flush on gdb_stdout instead of
1267 fflush on stdout.
1268
1269 2004-08-10 Joel Brobecker <brobecker@gnat.com>
1270
1271 * xcoff_symfile_finish: Replace last call to xmfree by call
1272 to xfree.
1273
1274 2004-08-10 Andrew Cagney <cagney@gnu.org>
1275
1276 * main.c (captured_main): Delete call to init_malloc.
1277 * defs.h (init_malloc): Delete declaration.
1278 * utils.c (mmalloc, mrealloc, mcalloc, mfree)
1279 (init_malloc): Delete functions.
1280
1281 * defs.h (xmfree): Delete.
1282 * utils.c (xmfree): Delete function.
1283 (xfree): Inline calls to xmfree and mfree.
1284 * symmisc.c (free_symtab_block, free_symtab): Use xfree.
1285 * symfile.c (reread_symbols, init_psymbol_list): Ditto.
1286 * source.c (forget_cached_source_info, find_and_open_source): Ditto.
1287 * somread.c (som_symfile_finish): Ditto.
1288 * objfiles.c (allocate_objfile, free_objfile):
1289 * nlmread.c (nlm_symfile_finish): Ditto.
1290 * hpread.c (hpread_symfile_finish): Ditto.
1291 * elfread.c (free_elfinfo, elf_symfile_finish): Ditto.
1292 * dbxread.c (dbx_symfile_finish, free_bincl_list): Ditto.
1293 * coffread.c (coff_symfile_finish): Ditto.
1294
1295 * defs.h (xmcalloc): Delete declaration.
1296 * utils.c (xmcalloc): Delete.
1297 (xcalloc): Inline calls to xmcalloc and mcalloc.
1298 * ada-lang.c (_initialize_ada_language): Use htab_create_alloc,
1299 xcalloc and xfree.
1300 * symtab.c (create_demangled_names_hash): Ditto.
1301
1302 * defs.h (xmrealloc): Delete.
1303 * utils.c (xmrealloc): Delete.
1304 (xrealloc): Inline calls to xmrealloc, mmalloc and mrealloc.
1305 * symmisc.c (extend_psymbol_list): Use xrealloc.
1306 * source.c (find_source_lines): Ditto.
1307 * hpread.c (hpread_lookup_type): Ditto.
1308 * dbxread.c (add_bincl_to_list): Ditto.
1309
1310 * utils.c (xmmalloc): Delete.
1311 (xmalloc): Inline xmmalloc and mmalloc calls.
1312 (msavestring): Use xmalloc.
1313 * defs.h (xmmalloc): Delete declaration.
1314 * xcoffread.c (xcoff_symfile_init): Use xmalloc instead of
1315 xmmalloc.
1316 * symmisc.c (extend_psymbol_list): Ditto.
1317 * symfile.c (init_psymbol_list): Ditto.
1318 * source.c (find_source_lines): Ditto.
1319 * hpread.c (hpread_symfile_init, hpread_lookup_type): Ditto.
1320 * elfread.c (elf_symtab_read): Ditto.
1321 * dbxread.c (dbx_symfile_init, init_bincl_list): Ditto.
1322 * coffread.c (coff_symfile_init): Ditto.
1323
1324 2004-08-10 David Carlton <carlton@bactrian.org>
1325
1326 * MAINTAINERS: Remove David Carlton from c++ testsuite
1327 maintainers.
1328
1329 2004-08-10 Jerome Guitton <guitton@gnat.com>
1330
1331 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure to
1332 print a line feed before the prompt.
1333
1334 2004-08-10 Mark Kettenis <kettenis@gnu.org>
1335
1336 * procfs.c (procfs_pid_to_str): Use "%ld" to print LWP.
1337
1338 2004-08-09 Joel Brobecker <brobecker@gnat.com>
1339
1340 General cleanup of the AIX xm include file:
1341 * config/xm-aix4.h (fd_set): Remove undefine.
1342 Remove include of <sys/select.h>.
1343 (HAVE_TERMIO): Remove define.
1344 (USG): Likewise.
1345 (NULL): Remove redefine.
1346 (alloca): Remove #pragma.
1347 (vfork): Remove define.
1348 (termdef): Remove.
1349 (SIGWINCH_HANDLER): Remove.
1350 (SIGWINCH_HANDLER_BODY): Remove.
1351
1352 2004-08-09 Mark Kettenis <kettenis@gnu.org>
1353
1354 * configure.tgt (x86_64-*-openbsd*): Set gdb_osabi to
1355 GDB_OSABI_OPENBSD_ELF.
1356
1357 2004-08-07 Robert Millan <robertmh@gnu.org>
1358
1359 * bsd-kvm.c: Check for nlist.h before including it.
1360
1361 2004-08-09 Mark Kettenis <kettenis@gnu.org>
1362
1363 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove `struct
1364 sigcontext' offset consistency checks for ancient BSD.
1365
1366 * gdb_curses.h [HAVE_CURSESX_H]: Include <cursesX.h>
1367
1368 * configure.in: Check for <sys/types.h>. Check return and
1369 argument types of ptrace.
1370 * configure, config.in: Regenerate.
1371
1372 2004-08-09 Jim Blandy <jimb@redhat.com>
1373
1374 * rs6000-tdep.c (set_sim_regno, init_sim_regno_table,
1375 rs6000_register_sim_regno): Doc fixes.
1376
1377 2004-08-08 Joel Brobecker <brobecker@gnat.com>
1378
1379 * mips-tdep.c: Include "floatformat.h".
1380 (n32n64_floatformat_always_valid): New function.
1381 (floatformat_n32n64_long_double_big): New constant.
1382 (mips_gdbarch_init): Set size and format of long double
1383 for N32 and N64 ABIs.
1384 * Makefile.in (mips-tdep.o): Update dependencies.
1385
1386 2004-08-08 Andrew Cagney <cagney@gnu.org>
1387
1388 * gdbarch.sh: Delete "fmt" and "attrib" fields. Always use %s to
1389 print. Improve script's error messages.
1390 * gdbarch.h: Re-generate.
1391
1392 * gdbarch.sh (pformat): New function.
1393 (float_format, double_format, long_double_format): List with bit
1394 members. Use pformat when printing.
1395 * gdbarch.c, gdbarch.h: Re-generate.
1396
1397 2004-08-08 Nathan J. Williams <nathanw@wasabisystems.com>
1398
1399 * ppcnbsd-nat.c: Include <machine/frame.h>, <machine/pcb.h>,
1400 "gdbcore.h", "regcache.h", and "bsd-kvm.h".
1401 (ppcnbsd_supply_pcb): New function.
1402 (_initialize_ppcnbsd_nat): New prototype and function.
1403 * config/powerpc/nbsd.mh (NATDEPFILES): Add bsd-kvm.o.
1404 (LOADLIBES): New variable.
1405 * Makefile.in (ppcnbsd-nat.o): Update dependencies.
1406
1407 2004-08-08 Andrew Cagney <cagney@gnu.org>
1408
1409 * gdbtypes.c (builtin_type_arm_ext, builtin_type_ieee_single)
1410 (builtin_type_ieee_double, builtin_type_ia64_quad)
1411 (builtin_type_ia64_spill, _initialize_gdbtypes): Add tables of
1412 BE/LE floating-point types.
1413 * gdbtypes.h (builtin_type_arm_ext, builtin_type_ieee_single)
1414 (builtin_type_ieee_double, builtin_type_ia64_quad)
1415 (builtin_type_ia64_spill): Declare.
1416 * doublest.c (_initialize_doublest, floatformat_ieee_single)
1417 (floatformat_ieee_double, floatformat_arm_ext)
1418 (floatformat_ia64_spill, floatformat_ia64_quad): Add tables
1419 of LE/BE floatformats.
1420 * doublest.h: (struct floatformat, floatformat_ieee_single)
1421 (floatformat_ieee_double, floatformat_arm_ext)
1422 (floatformat_ia64_spill, floatformat_ia64_quad): Declare.
1423
1424 2004-08-08 Mark Kettenis <kettenis@gnu.org>
1425
1426 * i386gnu-nat.c (gnu_store_registers): Fix typo.
1427
1428 * i386gnu-nat.c (gnu_store_registers): Use regcache_raw_collect
1429 instead of regcache_raw_supply when storing the registers.
1430
1431 * i386gnu-nat.c: Update copyright year.
1432 (gnu_store_registers): Don't use deprecated_registers and
1433 deprecated_registers_valid. Use regcache_valid_p and
1434 regcache_raw_supply instead.
1435
1436 * vax-tdep.c (vax_frame_this_id): Use frame_func_unwind instead of
1437 frame_pc_unwind.
1438
1439 * procfs.c (procfs_pid_to_str): Remove redundant and unused
1440 variables. Incapitalized "process".
1441
1442 * configure.in: Add cursesX to the list of possible curses libs.
1443 Add cursesX.h to the list of possible curses headers.
1444 * configure, config.in: Regenerate.
1445
1446 2004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
1447
1448 * configure.in: Test for struct lwp in <sys/lwp.h>.
1449 * bsd-kvm.c (bsd_kvm_proc_cmd): If HAVE_STRUCT_LWP is defined, use
1450 the offset of l_addr in struct lwp.
1451
1452 2004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
1453
1454 * bsd-kvm.c: Include "gdbcore.h"
1455 (bsd_kvm_open): Use get_exec_file() to set 'execfile'.
1456
1457 2004-08-07 Andrew Cagney <cagney@gnu.org>
1458
1459 * gdbtypes.c (build_flt, build_complex): New functions.
1460 (gdbtypes_post_init): Use.
1461
1462 * doublest.c (floatformat_from_length): Fix tipo, "*" not "&".
1463
1464 * gdbtypes.c (_initialize_gdbtypes): Do not swap builtin_type_int8
1465 through to builtin_type_uint128.
1466
1467 * c-exp.y: Use builtin_type function to obtain builtin types.
1468
1469 * gdbtypes.h (struct builtin_type): Delete builtin_int0 through to
1470 builtin_uint128.
1471 * gdbtypes.c (gdbtypes_post_init): Update.
1472 (build_gdbtypes): Move initialization of builtin_type_int0
1473 through to builtin_type_uint128 from here ...
1474 (_initialize_gdbtypes): ... to here.
1475 * d10v-tdep.c (d10v_register_type): Update.
1476
1477 * doublest.c: Update copyright.
1478 (floatformat_from_length): Call error when floatformat is NULL.
1479 (extract_floating_by_length): Remove NULL fmt check.
1480 (store_floating_by_length): Ditto.
1481
1482 2004-08-07 Andrew Cagney <cagney@gnu.org>
1483
1484 * regcache.c (regcache_raw_read): For the moment, #ifdef assert
1485 that the register is valid.
1486
1487 2004-08-05 Mark Kettenis <kettenis@chello.nl>
1488
1489 * i386-linux-tdep.c (i386_linux_sigtramp_start)
1490 (i386_linux_rt_sigtramp_start): Change argument from CORE_ADDR to
1491 struct frame_info *. Use safe_frame_unwind_memory instead of
1492 deprecated_read_memory_nobpt.
1493 (i386_linux_sigtramp_p, i386_linux_sigcontext_addr): Adjust for
1494 changed signature of i386_linux_sigtramp_start and
1495 i386_linux_rt_sigtramp_start.
1496
1497 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Change argument from
1498 CORE_ADDR to struct frame_info *. Use safe_frame_unwind_memory
1499 instead of deprecated_read_memory_nobpt.
1500 (i386nbsd_sigtramp_p): Adjust for changed signature of
1501 i386nbsd_sigtramp_offset.
1502
1503 * i386obsd-tdep.c (i386obsd_sigtramp_p): Use
1504 safe_frame_unwind_memory instead of target_read_memory.
1505
1506 * infptrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
1507 !NO_SYS_FILE.
1508 [KERNEL_U_ADDR_BSD]: Don't include <a.out.h>.
1509 [KERNEL_U_ADDR_BSD] (kernel_u_addr): Remove variable.
1510 (_initialize_kernel_u_addr): Remove prototype and function.
1511 * infttrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
1512 !NO_SYS_FILE.
1513 * xcoffread.c: Likewise.
1514
1515 2004-08-06 Mark Kettenis <kettenis@gnu.org>
1516
1517 * vax-nat.c: New file.
1518 * vaxbsd-nat.c: Tweak comment.
1519 * Makefile.in (ALLDEPFILES): Add vax-nat.c, vaxbsd-nat.c and
1520 vaxnbsd-tdep.c.
1521 (vax-nat.o): New dependency.
1522 * configure.host (vax-*-bsd*, vax-*-ultrix*): Set gdb_host to vax.
1523 (vax-*-ultrix2*): Remove.
1524 * config/vax/vax.mh: New file.
1525 * config/vax/nm-vax.h (vax_kernel_u_addr): New extern declaration.
1526 (KERNEL_U_ADDR): Define as vax_kernel_u_addr.
1527 (vax_register_u_addr): New prototype.
1528 (REGISTER_U_ADDR): Define using vax_register_u_addr.
1529 * config/vax/vaxult2.mh: Remove file.
1530 * config/vax/vaxult.mh: Remove file.
1531 * config/vax/vaxbsd.mh: Remove file.
1532 * config/vax/vax.mt (TM_FILE): Remove.
1533 * config/vax/tm-vaxbsd.h: Remove file.
1534
1535 2004-08-06 Joel Brobecker <brobecker@gnat.com>
1536
1537 * aix-thread.c (get_signaled_thread): New function.
1538 (iter_trap): Delete, no longer used.
1539 (iter_tid): New function.
1540 (pd_update): Find the thread that received the SIGTRAP signal
1541 by first locating the kernel thread, and then finding its
1542 associated thread.
1543
1544 2004-08-06 Ulrich Weigand <uweigand@de.ibm.com>
1545
1546 * lin-lwp.c (child_wait): Continue inferior after processing
1547 PTRACE_EVENT_CLONE event.
1548
1549 2004-08-05 Nathanael Nerode <neroden@gcc.gnu.org>
1550
1551 * MAINTAINERS: Add self to Write-After-Approval.
1552
1553 2004-08-05 Jeff Johnston <jjohnstn@redhat.com>
1554
1555 * libunwind-frame.c (LIBUNWIND_SO): Change to be of form:
1556 libunwind-xxxx.so" where xxxx is UNW_TARGET.
1557
1558 2004-08-05 Andrew Cagney <cagney@gnu.org>
1559
1560 * config/xm-sysv4.h: Delete file.
1561 * config/mips/xm-irix5.h: Delete file.
1562 * config/mips/irix6.mh (XM_FILE, XM_CLIBS): Delete.
1563 * config/mips/irix5.mh (XM_FILE, XM_CLIBS): Delete.
1564 * config/ia64/xm-aix.h: Delete file.
1565 * config/ia64/aix.mh (XM_FILE): Delete.
1566 * config/pa/xm-hppah.h: Delete file.
1567 * config/pa/hpux11w.mh (XM_FILE): Delete.
1568 * config/pa/hpux11.mh (XM_FILE): Delete.
1569 * config/pa/hpux1020.mh (XM_FILE): Delete.
1570 * config/pa/hppahpux.mh (XM_FILE): Delete.
1571
1572 * config/alpha/xm-alphalinux.h: Delete file.
1573 * config/djgpp/fnchange.lst: Do not fix xm-alphalinux.h.
1574 * config/alpha/alpha-linux.mh (XM_FILE, LOADLIBES): Delete.
1575 * config/alpha/xm-alphaosf.h: Delete file.
1576 * config/djgpp/fnchange.lst: Do not fix xm-alphaosf.h.
1577 * config/alpha/alpha-osf3.mh (XM_FILE): Delete.
1578 * config/alpha/alpha-osf2.mh (XM_FILE): Delete.
1579 * config/alpha/alpha-osf1.mh (XM_FILE): Delete.
1580
1581 * config/i386/xm-i386v.h: Delete file.
1582 * config/i386/i386v.mh (XM_FILE, XM_CLIBS): Delete.
1583 * config/i386/i386sco5.mh (XM_FILE, XM_CLIBS): Delete.
1584 * config/i386/xm-i386sco.h: Delete file.
1585 * config/i386/i386sco4.mh (XM_FILE, XM_CLIBS, MH_CFLAGS): Delete.
1586 * config/i386/i386sco.mh (XM_FILE, XM_CLIBS, CC): Delete.
1587 * config/i386/xm-i386v4.h: Delete file.
1588 * config/djgpp/fnchange.lst: Do not fix xm-i386v4.h.
1589 * config/i386/ncr3000.mh (CC, CFLAGS, XM_FILE): Delete.
1590 * config/i386/i386v42mp.mh (XM_FILE, XM_CLIBS): Delete.
1591 * config/i386/i386v4.mh (XM_FILE, XM_CLIBS): Delete.
1592
1593 * config/vax/xm-vax.h: Delete file.
1594 * Makefile.in (xm-vaxult.h, xm-vaxbsd.h): Delete.
1595 * config/vax/xm-vaxult2.h: Delete file.
1596 * config/djgpp/fnchange.lst: Do not fix xm-vaxult2.h.
1597 * config/vax/vaxult2.mh (XM_FILE): Delete.
1598 * config/vax/xm-vaxult.h: Delete file.
1599 * config/vax/vaxult.mh (XM_FILE): Delete.
1600 * config/vax/xm-vaxbsd.h: Delete file.
1601 * config/vax/vaxbsd.mh (XM_FILE): Delete.
1602
1603 * gdbarch.sh (deprecated_frame_saved_pc): Delete.
1604 * gdbarch.h, gdbarch.c: Re-generate.
1605 * regcache.c (deprecated_read_fp, deprecated_write_sp): Delete.
1606 * inferior.h (deprecated_read_fp, deprecated_write_sp): Delete.
1607 * frame.h: Delete deprecated_read_fp from comments.
1608 * arch-utils.c (deprecated_init_frame_pc_default): Delete.
1609 * arch-utils.h (deprecated_init_frame_pc_default): Delete.
1610
1611 2004-08-04 Mark Kettenis <kettenis@gnu.org>
1612
1613 * i386obsd-tdep.c (i386obsd_sigtramp_p): Adjust for changed signal
1614 trampoline in OpenBSD 3.5-current.
1615
1616 * i387-tdep.c (i387_supply_fsave): Provide summy values for the
1617 SSE registers.
1618
1619 * Makefile.in: Remove embedded page breaks.
1620
1621 2004-08-04 Jim Blandy <jimb@redhat.com>
1622
1623 * regcache.c (regcache_raw_read): Assert that, after calling
1624 target_fetch_registers, the register we're reading is cached.
1625
1626 * ppc-linux-nat.c (fetch_register): Replace 'gdb_assert (0)' with
1627 a call to 'internal_error', with a more helpful error message.
1628 * rs6000-tdep.c (e500_pseudo_register_read,
1629 e500_pseudo_register_write, rs6000_store_return_value): Same.
1630
1631 2004-08-04 Andrew Cagney <cagney@gnu.org>
1632
1633 * Makefile.in: Update dependencies.
1634
1635 2004-08-04 Jim Blandy <jimb@redhat.com>
1636
1637 Change the layout of the PowerPC E500 raw register cache to allow
1638 the lower 32-bit halves of the GPRS to be their own raw registers,
1639 not pseudoregisters.
1640 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_gprs_pseudo_p flag;
1641 add ppc_ev0_upper_regnum flag.
1642 * rs6000-tdep.c: #include "reggroups.h".
1643 (spe_register_p): Recognize the ev upper half registers as SPE
1644 registers.
1645 (init_sim_regno_table): Build gdb->sim mappings for the upper-half
1646 registers.
1647 (e500_move_ev_register): New function.
1648 (e500_pseudo_register_read, e500_pseudo_register_write): The 'ev'
1649 vector registers are the pseudo-registers now, formed by splicing
1650 together the gprs and the upper-half registers.
1651 (e500_register_reggroup_p): New function.
1652 (P): Macro deleted.
1653 (P8, A4): New macro.
1654 (PPC_EV_REGS, PPC_GPRS_PSEUDO_REGS): Macros deleted.
1655 (PPC_SPE_GP_REGS, PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): New
1656 macros.
1657 (registers_e500): Rearrange register set so that the raw register
1658 set contains 32-bit GPRs and upper-half registers, and the SPE
1659 vector registers become pseudo-registers.
1660 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gprs_pseudo_p;
1661 it has been deleted. Initialize ppc_ev0_upper_regnum. Many other
1662 register numbers are now the same for the E500 as they are for
1663 other PowerPC variants. Register e500_register_reggroup_p as the
1664 register group function for the E500.
1665 * Makefile.in (rs6000-tdep.o): Update dependencies.
1666
1667 Adapt PPC E500 native support to the new raw regcache layout.
1668 * ppc-linux-nat.c (struct gdb_evrregset_t): Doc fixes.
1669 (read_spliced_spe_reg, write_spliced_spe_reg): Deleted.
1670 (fetch_spe_register, store_spe_register): Handle fetching/storing
1671 all the SPE registers at once, if regno == -1. These now take
1672 over the job of fetch_spe_registers and store_spe_registers.
1673 (fetch_spe_registers, store_spe_registers): Deleted.
1674 (fetch_ppc_registers, store_ppc_registers): Fetch/store gprs
1675 unconditionally; they're always raw. Fetch/store SPE upper half
1676 registers, if present, instead of ev registers.
1677 (fetch_register, store_register): Remove sanity checks: gprs are
1678 never pseudo-registers now, so we never need to even mention any
1679 registers that are ever pseudoregisters.
1680
1681 Use a fixed register numbering when communicating with the PowerPC
1682 simulator.
1683 * ppc-tdep.h (struct gdbarch_tdep): New member: 'sim_regno'.
1684 * rs6000-tdep.c: #include "sim-regno.h" and "gdb/sim-ppc.h".
1685 (set_sim_regno, init_sim_regno_table, rs6000_register_sim_regno):
1686 New functions.
1687 (rs6000_gdbarch_init): Register rs6000_register_sim_regno. Call
1688 init_sim_regno_table.
1689 * Makefile.in (gdb_sim_ppc_h): New variable.
1690 (rs6000-tdep.o): Update dependencies.
1691
1692 2004-08-02 Andrew Cagney <cagney@gnu.org>
1693
1694 * cris-tdep.c (cris_register_size): Restore function, still used
1695 locally.
1696
1697 * gdbarch.sh (deprecated_target_read_fp)
1698 (deprecated_frame_locals_address, deprecated_frame_args_address)
1699 (deprecated_frame_chain_valid, deprecated_frame_chain)
1700 (deprecated_init_extra_frame_info, deprecated_pop_frame)
1701 (deprecated_frame_init_saved_regs, deprecated_get_saved_register)
1702 (deprecated_do_registers_info, deprecated_init_frame_pc): Delete.
1703 * gdbarch.h, gdbarch.c: Re-generate.
1704 * regcache.c (deprecated_read_fp): Do not call
1705 DEPRECATED_TARGET_READ_FP_P.
1706 * infcmd.c (default_print_registers_info): Do not call
1707 DEPRECATED_DO_REGISTERS_INFO.
1708 * frame-base.c (default_frame_locals_address): Do not call
1709 DEPRECATED_FRAME_LOCALS_ADDRESS.
1710 (default_frame_args_address): Do not call
1711 DEPRECATED_FRAME_ARGS_ADDRESS.
1712
1713 * gdbarch.sh (deprecated_register_raw_size)
1714 (deprecated_register_virtual_size:int): Delete.
1715 * gdbarch.h, gdbarch.c: Re-generate.
1716 * cris-tdep.c (cris_register_size): Delete.
1717 (cris_gdbarch_init): Update.
1718 * alpha-tdep.c (alpha_register_raw_size)
1719 (alpha_register_virtual_size): Delete.
1720 (alpha_gdbarch_init): Update.
1721
1722 * gdbarch.sh (deprecated_register_virtual_type)
1723 (deprecated_save_dummy_frame_tos, deprecated_push_return_address)
1724 (deprecated_dummy_write_sp): Delete.
1725 * gdbarch.h, gdbarch.c: Re-generate.
1726
1727 * gdbarch.sh (deprecated_register_bytes): Delete.
1728 * gdbarch.h, gdbarch.c: Re-generate.
1729 * regcache.c (deprecated_register_bytes): New function.
1730 * regcache.h (deprecated_register_bytes): Declare.
1731 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1732 * v850-tdep.c (v850_gdbarch_init): Update.
1733 * sh64-tdep.c (sh64_gdbarch_init): Update.
1734 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
1735 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1736 * mcore-tdep.c (mcore_gdbarch_init): Update.
1737 * cris-tdep.c (cris_gdbarch_init): Update.
1738 * arm-tdep.c (arm_gdbarch_init): Update.
1739 * remote.c (init_remote_state): Update.
1740 * remote-vx.c (vx_prepare_to_store): Update.
1741 * remote-sds.c (sds_fetch_registers, sds_prepare_to_store): Update.
1742 * irix5-nat.c (fetch_core_registers): Update.
1743 * cris-tdep.c (cris_register_bytes_ok): Update.
1744 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
1745
1746 * mips-tdep.c (mips_gdbarch_init, mips_insn16_frame_cache)
1747 (mips_insn16_frame_this_id, mips_insn16_frame_prev_register)
1748 (mips_insn16_frame_unwind, mips_insn16_frame_sniffer)
1749 (mips_insn16_frame_base_address, mips_insn16_frame_base)
1750 (mips_insn16_frame_base_sniffer, mips_insn32_frame_cache)
1751 (mips_insn32_frame_this_id, mips_insn32_frame_prev_register)
1752 (mips_insn32_frame_unwind, mips_insn32_frame_sniffer)
1753 (mips_insn32_frame_base_address, mips_insn32_frame_base)
1754 (mips_insn32_frame_base_sniffer): Replace mips16 / mips32 prefix
1755 with mips_insn16 and mips_insn32.
1756
1757 Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
1758 * rs6000-tdep.c (rs6000_push_dummy_call)
1759 (rs6000_extract_return_value): Use register_size.
1760 * xstormy16-tdep.c (xstormy16_get_saved_register)
1761 (xstormy16_extract_return_value): Ditto.
1762 * valops.c (value_assign): Ditto.
1763 * v850ice.c (v850ice_fetch_registers, v850ice_store_registers):
1764 * v850-tdep.c (v850_extract_return_value): Ditto.
1765 * tracepoint.c (collect_symbol): Ditto.
1766 * target.c (debug_print_register): Ditto.
1767 * stack.c (frame_info): Ditto.
1768 * rs6000-nat.c (ARCH64, fetch_register, store_register): Ditto.
1769 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
1770 * remote.c (struct packet_reg, remote_wait, remote_async_wait)
1771 (store_register_using_P): Ditto.
1772 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
1773 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Ditto.
1774 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
1775 * remote-e7000.c (fetch_regs_from_dump, sub2_from_pc): Ditto.
1776 * regcache.c (deprecated_read_register_bytes)
1777 (deprecated_write_register_bytes, read_register)
1778 (write_register): Ditto.
1779 * ppc-linux-nat.c (fetch_altivec_register, fetch_register)
1780 (supply_vrregset, store_altivec_register, fill_vrregset): Ditto.
1781 * monitor.c (monitor_supply_register, monitor_fetch_register)
1782 (monitor_store_register): Ditto.
1783 * mn10300-tdep.c (mn10300_pop_frame_regular)
1784 (mn10300_print_register): Ditto.
1785 * mipsv4-nat.c (fill_fpregset): Ditto.
1786 * mips-linux-tdep.c (supply_32bit_reg, fill_fpregset)
1787 (mips64_fill_fpregset): Ditto.
1788 * mi/mi-main.c (register_changed_p, get_register)
1789 (mi_cmd_data_write_register_values): Ditto.
1790 * lynx-nat.c (fetch_inferior_registers, store_inferior_registers):
1791 * irix5-nat.c (fill_gregset, fetch_core_registers):
1792 * infrun.c (write_inferior_status_register): Ditto.
1793 * infptrace.c (fetch_register, store_register): Ditto.
1794 * infcmd.c (default_print_registers_info): Ditto.
1795 * ia64-linux-nat.c (COPY_REG, fill_fpregset): Ditto.
1796 * ia64-aix-nat.c (COPY_REG, fill_gregset): Ditto.
1797 * i386gnu-nat.c (gnu_store_registers, fill): Ditto.
1798 * hpux-thread.c (hpux_thread_fetch_registers)
1799 (hpux_thread_store_registers): Ditto.
1800 * hppah-nat.c (store_inferior_registers, fetch_register):
1801 * findvar.c (value_from_register): Ditto.
1802 * dve3900-rom.c (fetch_bitmapped_register):
1803 * cris-tdep.c (cris_gdbarch_init): Ditto.
1804 * alpha-tdep.h: Ditto.
1805 * aix-thread.c (pd_enable, fill_sprs64, fill_sprs32): Ditto.
1806
1807 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_SIZE and
1808 DEPRECATED_REGISTER_RAW_SIZE from comments.
1809 * regcache.c (init_regcache_descr, regcache_dump): Do not check or
1810 use DEPRECATED_REGISTER_VIRTUAL_SIZE and
1811 DEPRECATED_REGISTER_RAW_SIZE.
1812 * findvar.c (value_of_register): Simplify by assuming that the
1813 registers raw and virtual sizes are identical.
1814 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_TYPE in
1815 comment.
1816 * arch-utils.c (generic_register_size): Simplify by assuming
1817 register_type.
1818
1819 * regcache.c (legacy_read_register_gen, real_register)
1820 (legacy_write_register_gen): Delete, not used.
1821
1822 * regcache.c (struct regcache_descr): Delete legacy_p.
1823 (init_legacy_regcache_descr): Delete function.
1824 (init_regcache_descr): Delete call to init_legacy_regcache_descr.
1825 Do not use deprecated register functions.
1826 (regcache_raw_read, deprecated_write_register_gen):
1827 (deprecated_read_register_gen, regcache_raw_write): Delete code
1828 predicated on legacy_p.
1829 (register_size): Delete check against register raw size.
1830
1831 * cris-tdep.c (cris_register_type): Replace
1832 cris_register_virtual_type.
1833 (cris_gdbarch_init): Update, set register_type.
1834
1835 * gdbarch.sh (deprecated_frameless_function_invocation): Delete.
1836 * gdbarch.h, gdbarch.c: Re-generate.
1837 * arm-tdep.c (arm_frameless_function_invocation): Delete.
1838 (arm_gdbarch_init) Do not set frameless function invocation.
1839 * frame.h (legacy_frameless_look_for_prologue): Delete declaration.
1840 * blockframe.c (legacy_frameless_look_for_prologue): Delete function.
1841 * frv-tdep.c (frv_frameless_function_invocation): Delete.
1842 (frv_gdbarch_init): Do not set frameless function invocation.
1843 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
1844 * sh-tdep.c (sh_gdbarch_init): Ditto.
1845 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
1846 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1847 * avr-tdep.c (avr_gdbarch_init): Ditto.
1848
1849 * blockframe.c (legacy_frame_chain_valid): Delete function.
1850
1851 * dummy-frame.c (struct dummy_frame): Delete call_lo, call_hi, top
1852 and pc. Update comments.
1853 (pc_in_dummy_frame): Delete function.
1854 (deprecated_pc_in_call_dummy): Inline old pc_in_dummy_frame code,
1855 use the "id".
1856 (dummy_frame_push, dummy_frame_sniffer): Instead of call_lo,
1857 call_hi, top and pc, use the id.
1858 (fprint_dummy_frames): Do not print call_lo, call_hi, top and pc.
1859
1860 * dummy-frame.c: Include "gdb_string.h".
1861 (generic_save_call_dummy_addr, generic_push_dummy_frame)
1862 (generic_save_dummy_frame_tos): Delete.
1863 (dummy_frame_push): New function, replaces above.
1864 * dummy-frame.h: Update copyright.
1865 (dummy_frame_push): Declare.
1866 * frame.h (generic_save_dummy_frame_tos, generic_push_dummy_frame)
1867 (generic_save_call_dummy_addr): Delete declarations.
1868 * infcall.c: Include "dummy-frame.h".
1869 (call_function_by_hand): Add locals caller_regcache,
1870 caller_regcache_cleanup and dummy_id. Replace push_dummy_frame
1871 with call to frame_save_as_regcache plus cleanup. Delete calls to
1872 generic_save_call_dummy_addr and generic_save_dummy_frame_tos.
1873 Move clear_proceed_status to just before the resume, add call to
1874 dummy_frame_push (discard cleanup).
1875 * Makefile.in (infcall.o): Add $(dummy_frame_h).
1876 (dummy-frame.o): Add $(gdb_string_h).
1877
1878 2004-08-01 Andrew Cagney <cagney@gnu.org>
1879
1880 * dummy-frame.h (dummy_frame_unwind): Replace dummy_frame_sniffer.
1881 * frame-unwind.c (frame_unwind_init): Use dummy_frame_unwind.
1882 * dummy-frame.c (find_dummy_frame): Delete.
1883 (struct dummy_frame_cache, dummy_frame_sniffer)
1884 (dummy_frame_prev_register, dummy_frame_this_id)
1885 (dummy_frame_unwinder, dummy_frame_unwind): Re-implement dummy
1886 frame unwinder using a dummy_frame_cache.
1887
1888 2004-08-01 Andrew Cagney <cagney@gnu.org>
1889
1890 * frame.h (frame_save_as_regcache): Declare.
1891 * frame.c (frame_save_as_regcache): New function.
1892 (do_frame_read_register): Replace do_frame_unwind_register.
1893 (frame_pop): Use frame_save_as_regcache.
1894 * dummy-frame.c (generic_push_dummy_frame): Use
1895 frame_save_as_regcache.
1896
1897 2004-08-01 Joel Brobecker <brobecker@gnat.com>
1898
1899 * dwarf2read.c (dwarf_decode_lines): Do not consider the current
1900 file as included until we record the first line in the linetable.
1901
1902 2004-08-01 Andrew Cagney <cagney@gnu.org>
1903
1904 * frame.h (deprecated_pop_dummy_frame)
1905 (deprecated_read_register_dummy)
1906 (deprecated_generic_find_dummy_frame): Delete.
1907 * dummy-frame.c (deprecated_generic_find_dummy_frame)
1908 (deprecated_read_register_dummy)
1909 (deprecated_find_dummy_frame_regcache)
1910 (discard_innermost_dummy)
1911 (deprecated_pop_dummy_frame): Delete.
1912 (dummy_frame_this_id): Simplify.
1913 (struct dummy_frame): Delete "fp" and "sp".
1914 (find_dummy_frame): Simplify.
1915 (generic_push_dummy_frame): Do not set "fp" or "sp".
1916 (fprint_dummy_frames): Do not print "fp" and "sp"
1917
1918 2004-08-01 Mark Kettenis <kettenis@gnu.org>
1919
1920 * i386-tdep.c (I386_MAX_INSN_LEN): New define.
1921 (struct i386_insn): New structure.
1922 (i386_match_insn): New function.
1923 (i386_frame_setup_skip_insns): New variable.
1924 (i386_analyze_frame_setup): Change to use i386_match_insn and the
1925 array i386_frame_setup_insns of instructions that should be
1926 skipped inside the frame setup sequence.
1927
1928 2004-08-01 Andrew Cagney <cagney@gnu.org>
1929
1930 * frame.h (deprecated_frame_xmalloc_with_cleanup)
1931 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
1932 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
1933 * stack.c (frame_info): Delete references to
1934 DEPRECATED_FRAME_INIT_SAVED_REGS and
1935 deprecated_get_frame_saved_regs.
1936 * frame.c (struct frame_info): Delete saved_regs and extra_info.
1937 (frame_pc_unwind): Do not use DEPRECATED_FRAME_SAVED_PC.
1938 (frame_register): Do not use DEPRECATED_GET_SAVED_REGISTER.
1939 (frame_unwind_register_signed)
1940 (frame_unwind_register_unsigned)
1941 (frame_unwind_unsigned_register): Use register_size.
1942 (create_new_frame): Do not use DEPRECATED_INIT_EXTRA_FRAME_INFO.
1943 (deprecated_frame_xmalloc_with_cleanup)
1944 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
1945 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
1946
1947 * sh-tdep.c (sh_gdbarch_init): Disable call to sh64_gdbarch_init.
1948 * config/sh/nbsd.mt (TDEPFILES): Remove sh64-tdep.o.
1949 * config/sh/linux.mt (TDEPFILES): Remove sh64-tdep.o.
1950 * config/sh/embed.mt (TDEPFILES): Remove sh64-tdep.o.
1951
1952 * infcall.c (call_function_by_hand): Do not use
1953 DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP,
1954 DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_TARGET_READ_FP,
1955 DEPRECATED_FP_REGNUM, DEPRECATED_STORE_STRUCT_RETURN, and
1956 DEPRECATED_STACK_ALIGN.
1957
1958 2004-07-30 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
1959
1960 Committed by Andrew Cagney.
1961 * arm-tdep.c: Remove references to add_setshow_cmd_full for apcs32 .
1962
1963 2004-08-01 Andrew Cagney <cagney@gnu.org>
1964
1965 * mips-tdep.c (mips16_frame_cache)
1966 (mips16_frame_this_id, mips16_frame_prev_register)
1967 (mips16_frame_unwind, mips16_frame_sniffer)
1968 (mips16_frame_base_address, mips16_frame_base)
1969 (mips16_frame_base_sniffer, mips32_frame_cache)
1970 (mips32_frame_this_id, mips32_frame_prev_register)
1971 (mips32_frame_unwind, mips32_frame_sniffer)
1972 (mips32_frame_base_address, mips32_frame_base)
1973 (mips32_frame_base_sniffer): Clone the mdebug unwinder into
1974 separate heuristic mips16 and mips32 unwinders.
1975 (mips_stub_frame_cache, mips_stub_frame_this_id)
1976 (mips_stub_frame_prev_register)
1977 (mips_stub_frame_unwind, mips_stub_frame_sniffer)
1978 (mips_stub_frame_base_address, mips_stub_frame_base)
1979 (mips_stub_frame_base_sniffer): Add a simple stub unwinder.
1980 (mips_mdebug_frame_base_sniffer, mips_mdebug_frame_sniffer): Only
1981 match true mdebug frames.
1982 (non_heuristic_proc_desc): Add forward declaration.
1983
1984 2004-08-01 Andrew Cagney <cagney@gnu.org>
1985
1986 * config/mips/tm-irix6.h: Delete file.
1987 * config/mips/tm-irix5.h: Delete file.
1988 * config/mips/irix5.mt (TM_FILE): Set to tm-mips.h
1989 * config/mips/irix6.mt (TM_FILE): Set to tm-mips.h
1990
1991 * config/ia64/tm-linux.h (IA64_GNULINUX_TARGET): Delete.
1992 * config/alpha/nm-osf2.h (PROCFS_SIGPEND_OFFSET): Delete.
1993 * config/nm-gnu.h (NO_CORE_OPS): Delete.
1994 * config/pa/nm-hppah.h (MAY_SWITCH_FROM_INFERIOR_PID): Delete.
1995 * config/i386/nm-i386v4.h (LOSING_POLL): Delete.
1996 * config/alpha/nm-osf2.h (LOSING_POLL): Delete.
1997 * config/tm-nto.h (RAW_SIGNAL_LO, RAW_SIGNAL_HI): Delete.
1998 * config/m68k/tm-vx68.h (VX_SIZE_FPREGS): Delete.
1999 * config/nm-linux.h (USE_THREAD_STEP_NEEDED): Delete.
2000 * config/pa/nm-hppah.h (USE_THREAD_STEP_NEEDED): Delete.
2001 * config/tm-nto.h (TARGET_SIGNAL_RAW_TABLE) Delete.
2002 (TARGET_SIGNAL_RAW_VALUES): Delete.
2003 * config/pa/nm-hppah.h (TARGET_RANGE_PROFITABLE_FOR_HW_WATCHPOINT):
2004 Delete.
2005 * config/frv/tm-frv.h (TARGET_HW_BREAK_LIMIT)
2006 (TARGET_HW_WATCH_LIMIT): Delete.
2007 * Makefile.in (minimon_h, HFILES_NO_SRCDIR): Remove minimon.h.
2008 * minimon.h: Delete file.
2009
2010 * trad-frame.c (trad_frame_get_this_base)
2011 (trad_frame_set_this_base, trad_frame_set_reg_realreg): New
2012 functions.
2013 * trad-frame.h (trad_frame_set_this_base)
2014 (trad_frame_get_this_base, trad_frame_set_reg_realreg): Declare.
2015
2016 2004-07-31 Andrew Cagney <cagney@gnu.org>
2017
2018 * trad-frame.c (trad_frame_get_prev_register): Rename
2019 trad_frame_get_prev_register.
2020 * vax-tdep.c (vax_frame_prev_register): Update.
2021 * trad-frame.h: Update.
2022 * trad-frame.c (trad_frame_get_register): Update.
2023 * sparcobsd-tdep.c (sparc32obsd_frame_prev_register): Update.
2024 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_prev_register):
2025 Update.
2026 * sparc64obsd-tdep.c (sparc64obsd_frame_prev_register): Update.
2027 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_prev_register):
2028 Update.
2029 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_prev_register):
2030 Update.
2031 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_prev_register):
2032 Update.
2033 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_prev_register):
2034 Update.
2035 * sparc-linux-tdep.c (sparc32_linux_sigtramp_frame_prev_register):
2036 Update.
2037 * s390-tdep.c (s390_frame_prev_register)
2038 (s390_stub_frame_prev_register)
2039 (s390_sigtramp_frame_prev_register): Update.
2040 * rs6000-tdep.c (rs6000_frame_prev_register): Update.
2041 * ppc-linux-tdep.c (ppc_linux_sigtramp_prev_register): Update.
2042 * mips-tdep.c (mips_mdebug_frame_prev_register): Update.
2043 * m88k-tdep.c (m88k_frame_prev_register)
2044 * m68hc11-tdep.c (m68hc11_frame_prev_register)
2045 * m32r-tdep.c (m32r_frame_prev_register): Update.
2046 * hppa-tdep.c (hppa_frame_prev_register_helper)
2047 * frv-tdep.c (frv_frame_prev_register): Update.
2048 * d10v-tdep.c (d10v_frame_prev_register): Update.
2049 * cris-tdep.c (cris_frame_prev_register): Update.
2050 * avr-tdep.c (avr_frame_prev_register): Update.
2051 * arm-tdep.c (arm_prologue_prev_register)
2052 (arm_sigtramp_prev_register): Update.
2053
2054 2004-07-31 Andrew Cagney <cagney@gnu.org>
2055
2056 * frame.h (legacy_saved_regs_unwind)
2057 (legacy_frame_chain_valid, legacy_frame_p)
2058 (enum frame_type): Delete UNKNOWN_FRAME.
2059 * dummy-frame.c (dummy_frame_this_id): Simplify.
2060 * frame-unwind.c (frame_unwind_find_by_frame): Simplify.
2061 * frame.c (struct frame_info): Delete the field "type".
2062 (legacy_saved_regs_prev_register, legacy_get_prev_frame)
2063 (legacy_saved_regs_this_id, legacy_saved_regs_unwinder)
2064 (legacy_saved_regs_unwind, legacy_frame_p)
2065 (frame_type_from_pc): Delete.
2066 (get_frame_id, frame_pop, frame_register_unwind, get_prev_frame_1)
2067 (fprint_frame, create_new_frame, fprint_frame_type): Simplify.
2068
2069 2004-07-31 Mark Kettenis <kettenis@gnu.org>
2070
2071 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Fix
2072 indentation.
2073
2074 * mips-nat.c: Remove file.
2075 * Makefile.in (ALLDEPFILES): Remove mips-nat.c
2076 (mips-nat.o): Remove dependency.
2077
2078 * infptrace.c: Update copyright year.
2079 (fetch_register): Pass NULL in regcache_raw_supply call instead of
2080 explicitly setting the buffer to all zeroes.
2081
2082 * sparc64obsd-tdep.c (sparc64obsd_sigreturn_offset): New variable.
2083 (sparc64obsd_pc_in_sigtramp): Reorganize to avoid goto.
2084
2085 2004-07-30 Andrew Cagney <cagney@gnu.org>
2086
2087 * GDB 6.2 released from gdb_6_2-branch.
2088
2089 2004-07-30 Baurjan Ismagulov <ibr@ata.cs.hun.edu.tr>
2090
2091 * defs.h (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH): New macros.
2092
2093 * exec.c (exec_file_attach):
2094 * nto-tdep.c (nto_find_and_open_solib):
2095 * pa64solib.c (pa64_solib_sizeof_symbol_table):
2096 * solib.c (solib_open):
2097 * somsolib.c (som_solib_sizeof_symbol_table):
2098 * source.c (is_regular_file, openp, open_source_file):
2099 * symfile.c (symfile_bfd_open):
2100 * wince.c (upload_to_device): Differentiate between the search for
2101 binary and source files.
2102
2103 2004-07-30 Andrew Cagney <cagney@gnu.org>
2104
2105 * complaints.c (_initialize_complaints): Pass NULL to
2106 add_setshow_zinteger_cmd for help_doc.
2107 * cli/cli-decode.c (add_setshow_cmd_full): Handle a NULL help_doc.
2108
2109 2004-07-30 Andrew Cagney <cagney@gnu.org>
2110
2111 Fix PR i18n/761.
2112 * Makefile.in (.SUFFIXES): Add po .gmo, and .pox.
2113 (.PHONY): Add all-po install-po, uninstall-po, clean-po,
2114 $(PACKAGE).pot and update-po.
2115 (all-po, .po.gmo, .po.pox, install-po, $(PACKAGE).pot)
2116 (po/$(PACKAGE).pot, clean-po, uninstall-po, install-po)
2117 (update-po): New rules.
2118 (localedir): Define using autoconf.
2119 (diststuff): Add $(PACKAGE).pot and $(CATALOGS)
2120 (GDB_CFLAGS): Define LOCALEDIR using $(localedir).
2121 (XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): Define.
2122 * configure.in: Generate CATALOGS and LINGUAS from contents of
2123 src/gdb/po/ directory. Set @localedir@ in Makefile.in.
2124 * configure: Re-generate.
2125 * po/gdbtext: New file
2126
2127 2004-07-30 Jerome Guitton <guitton@gnat.com>
2128
2129 * MAINTAINERS: Reorder Write After Approval list in alphabetical
2130 order.
2131
2132 2004-07-30 David Lecomber <dsl@sources.redhat.com>
2133
2134 * dwarf2read.c (read_file_scope): Set producer if attribute
2135 present.
2136 (struct dwarf2_cu): Added new member producer.
2137
2138 2004-07-30 Jerome Guitton <guitton@gnat.com>
2139
2140 * inflow.c (kill_command): release file handles in BFD.
2141 * exec.c (exec_file_attach): Ditto.
2142 * symfile.c (symbol_file_add_with_addrs_or_offsets): Ditto.
2143
2144 2004-07-29 Andrew Cagney <cagney@gnu.org>
2145
2146 * PROBLEMS (mips-irix): Note that it is broken.
2147
2148 2004-07-29 Andrew Cagney <cagney@gnu.org>
2149
2150 * config/mips/xm-irix5.h (REGISTER_U_ADDR): Move from here ...
2151 * config/mips/nm-irix5.h (REGISTER_U_ADDR): ... to here.
2152
2153 * config/xm-nbsd.h: Delete file.
2154 * config/arm/xm-nbsd.h: Delete file.
2155 * config/i386/xm-nbsd.h: Delete file.
2156 * config/ns32k/xm-nbsd.h: Delete file.
2157 * config/ns32k/nbsdaout.mh (XM_FILE): Delete.
2158 * config/i386/nbsdelf.mh (XM_FILE): Delete.
2159 * config/i386/nbsdaout.mh (XM_FILE): Delete.
2160 * config/arm/nbsdelf.mh (XM_FILE): Delete.
2161 * config/arm/nbsdaout.mh (XM_FILE): Delete.
2162
2163 * config/i386/xm-i386v.h (KERNEL_U_ADDR): Move from here ...
2164 * config/i386/nm-i386v42mp.h (KERNEL_U_ADDR): ... to here, ...
2165 * config/i386/nm-i386v4.h (KERNEL_U_ADDR): ... here, ...
2166 * config/i386/nm-i386v.h (KERNEL_U_ADDR): ... and here.
2167 * config/vax/xm-vax.h (KERNEL_U_ADDR): Move from here ...
2168 * config/vax/nm-vax.h (KERNEL_U_ADDR): ... to here.
2169
2170 * config/powerpc/xm-linux.h: Delete empty file.
2171 * config/powerpc/ppc64-linux.mh (XM_FILE): Delete.
2172 * config/powerpc/linux.mh (XM_FILE): Delete.
2173 * config/m68k/xm-linux.h: Delete empty file.
2174 * config/m68k/linux.mh (XM_FILE): Delete.
2175 * config/ia64/xm-linux.h: Delete empty file.
2176 * config/ia64/linux.mh (XM_FILE): Delete.
2177 * config/arm/xm-linux.h: Delete empty file.
2178 * config/arm/linux.mh (XM_FILE): Delete.
2179
2180 * config/powerpc/xm-linux.h (KERNEL_U_ADDR): Move from here ...
2181 * config/powerpc/nm-linux.h (KERNEL_U_ADDR): ... to here.
2182 * config/m68k/xm-linux.h (KERNEL_U_ADDR): Move from here ...
2183 * config/m68k/nm-linux.h (KERNEL_U_ADDR): ... to here.
2184 * config/ia64/xm-linux.h (KERNEL_U_ADDR): Move from here ...
2185 * config/ia64/nm-linux.h (KERNEL_U_ADDR): ... to here.
2186 * config/arm/xm-linux.h (KERNEL_U_ADDR): Move from here ...
2187 * config/arm/nm-linux.h (KERNEL_U_ADDR): ... to here.
2188
2189 * config/m68k/xm-m68k.h: Delete file.
2190 * config/m68k/xm-linux.h: Do not include "m68k/xm-m68k.h". Update
2191 copyright.
2192 (HOST_LONG_DOUBLE_FORMAT): Delete macro.
2193 * config/pa/xm-linux.h: Delete empty file.
2194 * config/pa/linux.mh (XM_FILE): Delete.
2195 * config/i386/xm-i386.h: Delete empty file.
2196 * config/i386/xm-nbsd.h, config/i386/xm-go32.h: Do not include
2197 "i386/xm-i386.h".
2198 * config/i386/obsdaout.mh (XM_FILE): Delete.
2199 * config/i386/obsd64.mh (XM_FILE): Delete.
2200 * config/i386/fbsd64.mh (XM_FILE): Delete.
2201 * config/i386/nto.mh (XM_FILE): Delete.
2202 * config/i386/obsd.mh (XM_FILE): Delete.
2203 * config/i386/linux64.mh (XM_FILE): Delete.
2204 * config/i386/linux.mh (XM_FILE): Delete.
2205 * config/i386/i386sol2.mh (XM_FILE): Delete.
2206 * config/i386/i386gnu.mh (XM_FILE): Delete.
2207 * config/i386/fbsd.mh (XM_FILE): Delete.
2208 * config/i386/nbsd64.mh (XM_FILE): Delete.
2209
2210 2004-07-29 Andrew Cagney <cagney@gnu.org>
2211
2212 * config/pa/xm-linux.h: Do not include "floatformat.h".
2213 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
2214 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
2215 * config/i386/xm-i386.h: Do not include "floatformat.h".
2216 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
2217 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
2218 * doublest.c (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
2219 (HOST_LONG_DOUBLE_FORMAT): Delete macros. Use
2220 GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT and
2221 GDB_HOST_LONG_DOUBLE_FORMAT instead.
2222 * configure.in (GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT)
2223 (GDB_HOST_LONG_DOUBLE_FORMAT): Define.
2224 * configure, config.in: Regenerate.
2225 * configure.host (gdb_host_float_format, gdb_host_double_format)
2226 (gdb_host_long_double_format): Set according to the host.
2227
2228 2004-07-29 Andrew Cagney <cagney@gnu.org>
2229
2230 * Makefile.in (CONFIG_CLEAN): Delete duplicate definition.
2231
2232 2004-07-28 Andrew Cagney <cagney@gnu.org>
2233
2234 * PROBLEMS: Mention threads/1650.
2235 * NEWS: Mention the NPTL fix.
2236
2237 2004-07-28 Andrew Cagney <cagney@gnu.org>
2238
2239 * cli/cli-decode.c (add_setshow_cmd): Delete function.
2240 (add_setshow_cmd_full): Make static.
2241 * command.h (add_setshow_cmd, add_setshow_cmd_full): Delete.
2242 (add_setshow_filename_cmd, add_setshow_string_cmd): Declare.
2243 * cli/cli-decode.c (add_setshow_filename_cmd)
2244 (add_setshow_string_cmd): New functions.
2245 * nto-tdep.c (_initialize_nto_tdep): Update. Fix parameters.
2246 * mips-tdep.c (_initialize_mips_tdep): Update.
2247 * m32r-rom.c (_initialize_m32r_rom): Update. Update copyright.
2248 * cli/cli-logging.c (_initialize_cli_logging): Update.
2249 * complaints.c (_initialize_complaints): Update.
2250 * remote.c (_initialize_remote): Update.
2251
2252 2004-07-28 Andrew Cagney <cagney@gnu.org>
2253
2254 * cli/cli-decode.c (add_setshow_zinteger_cmd)
2255 (add_setshow_cmd, add_setshow_auto_boolean_cmd)
2256 (add_setshow_boolean_cmd, add_setshow_cmd_full): Add help_doc and
2257 print parameters. Make string parameters constant.
2258 * command.h: Update. Update copyright.
2259 * remote.c (add_packet_config_cmd, _initialize_remote): Ditto.
2260 * observer.c (_initialize_observer): Ditto.
2261 * frame.c (_initialize_frame): Ditto.
2262 * complaints.c (_initialize_complaints): Ditto.
2263 * maint.c (_initialize_maint_cmds): Ditto.
2264 * target.c (initialize_targets): Ditto.
2265 * cli/cli-logging.c (_initialize_cli_logging): Ditto.
2266 * infcall.c (_initialize_infcall): Ditto.
2267 * arm-tdep.c (_initialize_arm_tdep): Ditto.
2268 * m32r-rom.c (_initialize_m32r_rom): Ditto.
2269 * remote-rdi.c (_initialize_remote_rdi): Ditto.
2270 * d10v-tdep.c (_initialize_d10v_tdep): Ditto.
2271 * mips-tdep.c (_initialize_mips_tdep): Ditto.
2272
2273 2004-07-28 Andrew Cagney <cagney@gnu.org>
2274
2275 * gdbtypes.c (lookup_primitive_typename): Delete function.
2276 * gdbtypes.h (lookup_primitive_typename): Delete declaration.
2277 * ada-lex.l: Use language_lookup_primitive_type_by_name.
2278 * gdbtypes.c (lookup_typename): Ditto.
2279 * f-exp.y (yylex): Ditto.
2280 * c-exp.y (yylex): Ditto, eliminate assignment in "if".
2281
2282 * scm-lang.c (c_builtin_types): Delete extern declaration.
2283 (scm_language_defn): Replace
2284 string_char_type and primitive_type_vector with
2285 la_language_arch_info.
2286 * jv-lang.c (java_language_defn): Replace
2287 string_char_type and primitive_type_vector with
2288 la_language_arch_info.
2289 * config/i386/i386sco4.mh (NATDEPFILES): Remove reference to
2290 c_builtin_types in comment.
2291 * c-lang.h (struct language_arch_info): Declare opaque.
2292 (c_language_arch_info): Declare.
2293 (c_builtin_types): Delete declaration.
2294 * c-lang.c (c_language_arch_info): Set string_char_type to
2295 builtin_char, not builtin_true_char. Make global.
2296 (c_builtin_types): Delete array.
2297 (asm_language_defn, minimal_language_defn): Replace
2298 string_char_type and primitive_type_vector with
2299 la_language_arch_info.
2300
2301 2004-07-28 Andrew Cagney <cagney@gnu.org>
2302
2303 * gdbtypes.h (struct builtin_type): Rename true_char to
2304 builtin_true_char.
2305 * gdbtypes.c (gdbtypes_post_init): Update.
2306 * c-lang.c (arch_info): New function.
2307 (enum c_primitive_types): New enum.
2308 (c_language_defn): Instead of string_char_type and
2309 primitive_type_vector set la_language_arch_info.
2310
2311 2004-07-28 Andrew Cagney <cagney@gnu.org>
2312
2313 * language.h (struct language_arch_info): Fix typo
2314 s/primative/primitive/.
2315 * gdbtypes.c (lookup_primitive_typename): Ditto.
2316 * language.c (language_lookup_primitive_type_by_name)
2317 (unknown_language_arch_info): Ditto.
2318
2319 2004-07-27 Andrew Cagney <cagney@gnu.org>
2320
2321 * defs.h (enum language): Add nr_languages.
2322 * language.h (struct language_arch_info): Define.
2323 (struct language_defn): Add la_language_arch_info.
2324 (language_lookup_primative_type_by_name): Declare.
2325 (language_string_char_type): Declare.
2326 * language.c (_initialize_language, language_gdbarch_post_init)
2327 (struct language_gdbarch, language_gdbarch_data): Implement
2328 per-architecture language information.
2329 (unknown_language_arch_info, language_string_char_type)
2330 (language_lookup_primative_type_by_name): New functions.
2331 (unknown_language_defn, auto_language_defn)
2332 (local_language_defn): Set la_language_arch_info to
2333 unknown_language_arch_info.
2334 (unknown_builtin_types): Delete.
2335 * gdbtypes.c (lookup_primitive_typename): Use
2336 language_lookup_primative_type_by_name.
2337 (create_string_type): Use language_string_char_type.
2338 * values.c (value_from_string): Use language_string_char_type.
2339 * scm-lang.c (scm_language_defn): Add NULL la_language_arch_info.
2340 * p-lang.c (pascal_language_defn): Ditto.
2341 * m2-lang.c (m2_language_defn): Ditto.
2342 * jv-lang.c (java_language_defn): Ditto.
2343 * objc-lang.c (objc_language_defn): Ditto.
2344 * f-lang.c (f_language_defn): Ditto.
2345 * c-lang.c (c_language_defn, cplus_language_defn)
2346 (asm_language_defn, minimal_language_defn): Ditto.
2347
2348 2004-07-27 Andrew Cagney <cagney@gnu.org>
2349
2350 * gdbtypes.h (struct builtin_type): Declare.
2351 (builtin_type): Declare.
2352 * d10v-tdep.c (d10v_register_type): Use builtin_type.
2353 * gdbtypes.c (_initialize_gdbtypes): Register gdbtypes_post_init.
2354 (gdbtypes_post_init): New function.
2355 (builtin_type): New function.
2356
2357 2004-07-27 Kei Sakamoto <sakamoto.kei@renesas.com>
2358
2359 * remote-m32r-sdi.c: Fix breakpoint bug.
2360 (send_cmd, send_one_arg_cmd, send_two_arg_cmd, send_three_arg_cmd,
2361 recv_char_data, recv_long_data): New functions to replace communication
2362 sequences.
2363
2364 2004-07-26 Michael Chastain <mec.gnu@mindspring.com>
2365
2366 Document PR threads/1650.
2367 * PROBLEMS (Threads): Document problem with many threads
2368
2369 2004-07-26 Andrew Cagney <cagney@gnu.org>
2370
2371 * gdb-mi.el: Move from here ...
2372 * mi/gdb-mi.el: ... to here.
2373
2374 2004-07-26 Andrew Cagney <cagney@gnu.org>
2375
2376 Problem reported by Ashley Pittman <ashley@quadrics.com>.
2377 * main.c (captured_main): When in batch mode always detach.
2378
2379 2004-07-26 Andrew Cagney <cagney@gnu.org>
2380
2381 * MAINTAINERS: Mark the xstormy16, sh64, ns32k, mn10300, mcore,
2382 and h8300 as broken.
2383 * NEWS: END-OF-LIFE frame compatibility module.
2384 * PROBLEMS: For "Stack backtraces", remove powerpc, hppa and mips
2385 specific comments.
2386
2387 2004-07-26 Andrew Cagney <cagney@gnu.org>
2388
2389 * cli/cli-decode.c (deprecated_add_show_from_set): Deprecate.
2390 * xcoffsolib.c (_initialize_xcoffsolib): Update.
2391 * wince.c (_initialize_wince): Update.
2392 * win32-nat.c (_initialize_win32_nat): Update.
2393 * varobj.c (_initialize_varobj): Update.
2394 * valops.c (_initialize_valops): Update.
2395 * utils.c (initialize_utils, initialize_utils): Update.
2396 * tui/tui-win.c (_initialize_tui_win): Update.
2397 * top.c (init_main): Update.
2398 * symfile.c (_initialize_symfile): Update.
2399 * source.c (_initialize_source): Update.
2400 * somsolib.c (_initialize_som_solib): Update.
2401 * solib.c (_initialize_solib): Update.
2402 * solib-frv.c (_initialize_frv_solib): Update.
2403 * serial.c (_initialize_serial): Update.
2404 * ser-go32.c (_initialize_ser_dos, _initialize_ser_dos): Update.
2405 * remote.c (_initialize_remote, _initialize_remote): Update.
2406 * remote-vx.c (_initialize_vx): Update.
2407 * remote-utils.c (_initialize_sr_support): Update.
2408 * remote-sds.c (_initialize_remote_sds): Update.
2409 * remote-mips.c (_initialize_remote_mips): Update.
2410 * remote-e7000.c (_initialize_remote_e7000): Update.
2411 * proc-api.c (_initialize_proc_api): Update.
2412 * printcmd.c: Update.
2413 * parse.c (_initialize_parse): Update.
2414 * pa64solib.c (_initialize_pa64_solib): Update.
2415 * p-valprint.c (_initialize_pascal_valprint): Update.
2416 * monitor.c (_initialize_remote_monitors): Update.
2417 * mips-tdep.c (_initialize_mips_tdep): Update.
2418 * mcore-tdep.c (_initialize_mcore_tdep): Update.
2419 * maint.c (_initialize_maint_cmds): Update.
2420 * lin-lwp.c (_initialize_lin_lwp): Update.
2421 * language.c (_initialize_language): Update.
2422 * kod.c (_initialize_kod): Update.
2423 * infrun.c (set_schedlock_func, _initialize_infrun): Update.
2424 * i386-tdep.c (_initialize_i386_tdep): Update.
2425 * gdbtypes.c (build_gdbtypes, _initialize_gdbtypes): Update.
2426 * gdbarch.sh: Update.
2427 * gdbarch.c: Re-generate.
2428 * gdb-events.sh: Update.
2429 * gdb-events.c: Re-generate.
2430 * frame.c (_initialize_frame): Update.
2431 * exec.c: Update.
2432 * demangle.c (_initialize_demangler): Update.
2433 * dcache.c (_initialize_dcache): Update.
2434 * cris-tdep.c (_initialize_cris_tdep, cris_version_update): Update.
2435 * cp-valprint.c (_initialize_cp_valprint): Update.
2436 * corefile.c (_initialize_core): Update.
2437 * command.h: Update.
2438 * cli/cli-decode.h: Update.
2439 * cli/cli-cmds.c (init_cli_cmds): Update.
2440 * charset.c (_initialize_charset): Update.
2441 * breakpoint.c (_initialize_breakpoint): Update.
2442 * arm-tdep.c (_initialize_arm_tdep_initialize_arm_tdep): Update.
2443 * alpha-tdep.c (_initialize_alpha_tdep): Update.
2444 * aix-thread.c (_initialize_aix_thread): Update.
2445
2446 2004-07-24 Mark Kettenis <kettenis@gnu.org>
2447
2448 Partial fix for PR backtrace/1718.
2449 * i386-tdep.c (i386_analyze_frame_setup): Handle more instructions
2450 that GCC migrates into the prolugue. Don't handle any
2451 instructions that clobber %ebx.
2452
2453 2004-07-23 Andrew Cagney <cagney@gnu.org>
2454
2455 Use regcache_raw_collect instead of regcache_collect.
2456 * regcache.h (regcache_collect): Delete declaration.
2457 * regcache.c (regcache_colect): Delete function.
2458 * win32-nat.c (do_child_store_inferior_registers): Update.
2459 * sol-thread.c (sol_thread_store_registers): Update.
2460 * shnbsd-tdep.c (shnbsd_fill_reg): Update.
2461 * rs6000-nat.c (store_register): Update.
2462 * remote.c (store_register_using_P, remote_store_registers): Update.
2463 * ppcnbsd-tdep.c (ppcnbsd_fill_reg): Update.
2464 * ppc-linux-nat.c (store_altivec_register, store_spe_register)
2465 (fill_vrregset, store_spe_registers, fill_gregset)
2466 (fill_gregset): Update.
2467 * nto-procfs.c (procfs_store_registers): Update.
2468 * mipsnbsd-tdep.c (mipsnbsd_fill_reg): Update.
2469 * mips-linux-tdep.c (fill_gregset, mips64_fill_gregset): Update.
2470 * m68klinux-nat.c (store_register, fill_gregset): Update.
2471 * m68k-tdep.c (fill_gregset): Update.
2472 * infptrace.c (store_register): Update.
2473 * i386-nto-tdep.c (i386nto_regset_fill): Update.
2474 * i386-linux-nat.c (store_register, fill_gregset): Update.
2475 * hppa-linux-nat.c (fill_gregset): Update.
2476 * go32-nat.c (store_register): Update.
2477 * armnbsd-nat.c (store_register, store_regs, store_fp_register)
2478 (store_fp_regs): Update.
2479 * arm-linux-nat.c (store_nwfpe_single, store_nwfpe_double)
2480 (store_nwfpe_extended, store_fpregister, store_fpregs)
2481 (store_register, store_regs, fill_gregset, fill_fpregset): Update.
2482 * alpha-tdep.c (alpha_fill_int_regs, alpha_fill_fp_regs): Update.
2483 * aix-thread.c (fill_gprs64, fill_fprs, fill_sprs64, fill_sprs32)
2484 (store_regs_user_thread, store_regs_kernel_thread): Update.
2485
2486 2004-07-24 Mark Kettenis <kettenis@gnu.org>
2487
2488 * dwarf2-frame.c (struct dwarf2_cie): Delete `addr_size' member.
2489 (decode_frame_entry_1): Use DW_EH_PE_absptr as default for CIE
2490 encoding.
2491 (dwarf2_build_frame_info): Adjust for removal of `addr_size'
2492 member of `struct comp_unit'.
2493
2494 2004-07-23 Andrew Cagney <cagney@gnu.org>
2495
2496 * infrun.c (handle_inferior_event): Separate the STEP_OVER_ALL and
2497 DEPRECATED_IGNORE_HELPER_CALL cases, only #ifdef the latter.
2498
2499 2004-07-23 Martin Hunt <hunt@redhat.com>
2500 Kevin Buettner <kevinb@redhat.com>
2501
2502 * dwarf2-frame.c (execute_cfa_program): Fix typo in which the
2503 alignment was being added to the offset instead of multiplied.
2504
2505 2004-07-23 Mark Kettenis <kettenis@gnu.org>
2506
2507 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Adjust for
2508 changed signal trampoline in OpenBSD 3.5-current.
2509
2510 * sparc64nbsd-nat.c: Include "regcache.h", <sys/types.h>,
2511 <machine/pcb.h> and "bsd-kvm.h".
2512 (sparc64nbsd_supply_pcb): New function.
2513 (_initialize_sparc64nbsd_nat): Renamed from
2514 _initialize_sparcnbsd_nat. Enable libkvm interface.
2515 * Makefile.in (sparc64nbsd-nat.o): Update dependencies.
2516 * config/sparc/nbsd64.mh (NATDEPFILES): Add bsd-kvm.o
2517 (LOADLIBES): New variable.
2518
2519 * config/sparc/obsd64.mt (TDEPFILES): Add sparcobsd-tdep.o.
2520
2521 * sparcnbsd-nat.c (sparc32nbsd_supply_pcb): Fix typo in comment.
2522
2523 2004-07-21 Andrew Cagney <cagney@gnu.org>
2524
2525 Use regcache_raw_supply instead of supply_register.
2526 * regcache.h (supply_register): Delete declaration.
2527 * regcache.c (supply_register): Delete function.
2528 * wince.c (do_child_fetch_inferior_registers): Update.
2529 * win32-nat.c (do_child_fetch_inferior_registers)
2530 (fetch_elf_core_registers): Update.
2531 * v850ice.c (v850ice_fetch_registers): Update.
2532 * thread-db.c (thread_db_store_registers): Update.
2533 * sol-thread.c (sol_thread_store_registers): Update.
2534 * shnbsd-tdep.c (shnbsd_supply_reg): Update.
2535 * rs6000-nat.c (fetch_register): Update.
2536 * rom68k-rom.c (rom68k_supply_one_register): Update.
2537 * remote.c (remote_wait, remote_async_wait): Update.
2538 * remote-st.c (get_hex_regs): Update.
2539 * remote-sim.c (gdbsim_fetch_register): Update.
2540 * remote-sds.c (sds_fetch_registers): Update.
2541 * remote-rdp.c (remote_rdp_fetch_register): Update.
2542 * remote-rdi.c (arm_rdi_fetch_registers): Update.
2543 * remote-mips.c (mips_wait, mips_fetch_registers): Update.
2544 * remote-m32r-sdi.c (m32r_fetch_register): Update.
2545 * remote-hms.c (init_hms_cmds): Update.
2546 * remote-est.c (init_est_cmds): Update.
2547 * remote-e7000.c (get_hex_regs, fetch_regs_from_dump)
2548 (e7000_fetch_registers, sub2_from_pc, e7000_wait): Update.
2549 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_supply_fpreg): Update.
2550 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register)
2551 (fetch_register, supply_vrregset, supply_vrregset)
2552 (fetch_spe_registers): Update.
2553 * ppc-bdm.c (bdm_ppc_fetch_registers): Update.
2554 * monitor.c (monitor_supply_register): Update.
2555 * mipsv4-nat.c (supply_gregset, supply_fpregset): Update.
2556 * mipsnbsd-tdep.c (mipsnbsd_supply_reg)
2557 (mipsnbsd_supply_fpreg): Update.
2558 * mips-nat.c (fetch_inferior_registers)
2559 (fetch_core_registers): Update.
2560 * mips-linux-tdep.c (supply_32bit_reg, supply_gregset)
2561 (supply_fpregset, mips64_supply_gregset)
2562 (mips64_supply_fpregset): Update.
2563 * m68klinux-nat.c (fetch_register, supply_gregset)
2564 (supply_fpregset): Update.
2565 * m68k-tdep.c (supply_gregset, supply_fpregset): Update.
2566 * m32r-rom.c (init_m32r_cmds, init_mon2000_cmds): Update.
2567 * lynx-nat.c (fetch_inferior_registers, fetch_core_registers): Update.
2568 * irix5-nat.c (supply_gregset, supply_fpregset): Update.
2569 * infptrace.c (fetch_register): Update.
2570 * ia64-linux-nat.c (supply_gregset, supply_fpregset): Update.
2571 * ia64-aix-nat.c (supply_gregset, supply_fpregset): Update.
2572 * i386gnu-nat.c (fetch_fpregs, supply_gregset)
2573 (gnu_fetch_registers, gnu_store_registers): Update.
2574 * i386-nto-tdep.c (i386nto_supply_gregset): Update.
2575 * i386-linux-nat.c (fetch_register, supply_gregset)
2576 (dummy_sse_values): Update.
2577 * hpux-thread.c (hpux_thread_fetch_registers): Update.
2578 * hppah-nat.c (fetch_register): Update.
2579 * hppa-linux-nat.c (fetch_register, supply_gregset)
2580 (supply_fpregset): Update.
2581 * go32-nat.c (fetch_register): Update.
2582 * dve3900-rom.c (fetch_bitmapped_register)
2583 (_initialize_r3900_rom): Update.
2584 * cris-tdep.c (supply_gregset): Update.
2585 * abug-rom.c (init_abug_cmds): Update.
2586 * core-aout.c (fetch_core_registers): Update.
2587 * armnbsd-nat.c (supply_gregset, supply_fparegset)
2588 (fetch_register, fetch_fp_register): Update.
2589 * arm-linux-nat.c (fetch_nwfpe_single, fetch_nwfpe_none)
2590 (fetch_nwfpe_extended, fetch_fpregister, fetch_fpregs)
2591 (fetch_register, fetch_regs, supply_gregset, supply_fpregset): Update.
2592 * alphanbsd-tdep.c (fetch_core_registers): Update.
2593 * alpha-tdep.c (alpha_supply_int_regs, alpha_supply_fp_regs): Update.
2594 * alpha-nat.c (fetch_osf_core_registers)
2595 (fetch_osf_core_registers, fetch_osf_core_registers): Update.
2596 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs)
2597 (supply_sprs64, supply_sprs32, fetch_regs_kernel_thread): Update.
2598
2599 2004-07-21 Andrew Cagney <cagney@gnu.org>
2600
2601 * PROBLEMS: Mention breakpoints/1702.
2602 * NEWS: For signal trampolines, cite s390 GNU/Linux as a system
2603 that is known to work.
2604
2605 2004-07-21 Andrew Cagney <cagney@gnu.org>
2606
2607 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Deprecate.
2608 * mips-tdep.c (mips_dump_tdep, mips_ignore_helper): Update.
2609 * infrun.c (DEPRECATED_IGNORE_HELPER_CALL): Delete macro.
2610 (handle_inferior_event): Wrap call to deprecated
2611 IGNORE_HELPER_CALL in #ifdef.
2612 * config/mips/tm-nbsd.h: Update.
2613
2614 2004-07-20 Jim Blandy <jimb@redhat.com>
2615
2616 * rs6000-tdep.c (rs6000_gdbarch_init): The register set used for
2617 bfd_mach_ppc has no segment registers.
2618
2619 Include PowerPC SPR numbers for special-purpose registers.
2620 * rs6000-tdep.c (struct reg): Add new member, 'spr_num'.
2621 (R, R4, R8, R16, F, P, R32, R64, R0): Include value for
2622 new member in initializer.
2623 (S, S4, SN4, S64): New macros for defining special-purpose
2624 registers.
2625 (PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS, PPC_OEA_SPRS, registers_power,
2626 registers_403, registers_403GC, registers_505, registers_860,
2627 registers_601, registers_602, registers_603, registers_604,
2628 registers_750, registers_e500): Use them.
2629
2630 * rs6000-tdep.c (rs6000_gdbarch_init): Delete variable 'power';
2631 replace references with expression used to initialize variable.
2632
2633 2004-07-20 Andrew Cagney <cagney@gnu.org>
2634
2635 * breakpoint.c (deprecated_read_memory_nobpt): Rename
2636 read_memory_nobpt.
2637 * sparc-linux-tdep.c (sparc_linux_sigtramp_start): Update.
2638 * s390-tdep.c (s390_readinstruction, s390_in_function_epilogue_p)
2639 (s390_sigtramp_frame_sniffer): Update.
2640 * mn10300-tdep.c (mn10300_analyze_prologue): Update.
2641 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Update.
2642 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
2643 (mips32_fetch_instruction): Update.
2644 * mcore-tdep.c (get_insn): Update.
2645 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Update.
2646 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Update.
2647 * i386ly-tdep.c (i386lynx_saved_pc_after_call): Update.
2648 * i386-linux-tdep.c (i386_linux_sigtramp_start)
2649 (i386_linux_rt_sigtramp_start): Update.
2650 * i386-linux-nat.c (child_resume): Update.
2651 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Update.
2652 * hppa-linux-tdep.c (insns_match_pattern): Update.
2653 * gdbcore.h: Update.
2654 * frv-tdep.c (frv_gdbarch_adjust_breakpoint_address): Update.
2655 * frame.c (safe_frame_unwind_memory): Update.
2656 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Update.
2657 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Update.
2658 * alpha-tdep.c (alpha_read_insn): Update.
2659
2660 2004-07-20 Andrew Cagney <cagney@gnu.org>
2661
2662 * tramp-frame.h (struct tramp_frame): Change "insn" to a struct
2663 containing both bytes and mask. Add "frame_type".
2664 * tramp-frame.c (tramp_frame_start): Update.
2665 (tramp_frame_prepend_unwinder): Update.
2666 * mips-linux-tdep.c (mips_linux_o32_sigframe)
2667 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
2668 (mips_linux_n64_rt_sigframe): Update. Make "static const".
2669 * ppcnbsd-tdep.c (tramp_frame ppcnbsd_sigtramp): Update.
2670
2671 2004-07-19 Eli Zaretskii <eliz@gnu.org>
2672
2673 * config/djgpp/fnchange.lst: Add remapping for bfd/elf32-cr*.c,
2674 bfd/elf32-sh-symbian.c, bfd/elf32-sh64-com.c,
2675 sim/testsuite/sim/mips/hilo-hazard-[123].s, and
2676 sim/testsuite/sim/mips/fpu64-ps-sb1.s.
2677
2678 2004-07-17 Andrew Cagney <cagney@gnu.org>
2679
2680 * NEWS, PROBLEMS: Update for 6.2.
2681
2682 * README: Update to 6.2.
2683
2684 * utils.c (xvasprintf): Call xstrvprintf.
2685
2686 * parse.c: Update copyright.
2687 (null_post_parser): Eliminate ARGSUSED.
2688
2689 * ppc-linux-nat.c (store_spe_registers): Eliminate K&R C.
2690 * tui/tui-win.c (tui_get_cmd_list): Ditto.
2691 * symfile-mem.c (_initialize_symfile_mem): Ditto.
2692
2693 * ppc-linux-tdep.c (ppc_linux_init_abi): Add [sic] to Linux.
2694 * ppc-linux-nat.c: Use "Linux kernel".
2695 * hppa-linux-tdep.c: Use GNU/Linux.
2696 * hppa-linux-nat.c: Use GNU/Linux.
2697 * dwarfread.c: Add [sic] to use of Linux.
2698
2699 * hppa-linux-nat.c: Do not include <string.h>.
2700 (supply_fpregset): Remove "register" attribute.
2701
2702 * solib-frv.c (fetch_loadmap): Use xfree, not free.
2703
2704 2004-07-17 Mark Kettenis <kettenis@gnu.org>
2705
2706 * configure.in: Define _MSE_INT_H on Solaris 9 too.
2707 * configure, config.in: Regenerated.
2708
2709 * vaxbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
2710 "bsd-kvm.h".
2711 (vaxbsd_supply_pcb): New function.
2712 (_initialize_vaxbsd_nat): New prototype and function.
2713 * config/vax/nbsdaout.mh (NATDEPFILES): Add bsd-kvm.o, solib.o and
2714 solib-sunos.o.
2715 (LOADLIBES): New variable.
2716 * config/vax/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
2717 (LOADLIBES): New variable.
2718 * config/vax/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
2719 (LOADLIBES): New variable.
2720 * Makefile.in (vaxbsd-nat.o): Update dependencies.
2721
2722 2004-07-16 Andrew Cagney <cagney@gnu.org>
2723
2724 * defs.h (event_loop_p): Replace variable declaration with macro,
2725 always 1.
2726 * main.c (captured_main): Delete options "-async" and "-noasync".
2727 (event_loop_p): Delete variable.
2728 * NEWS: Mention that "-async" and "-noasync" were removed.
2729
2730 2004-07-16 Andrew Cagney <cagney@gnu.org>
2731
2732 * remote-m32r-sdi.c: Re-indent.
2733
2734 2004-07-16 Jim Blandy <jimb@redhat.com>
2735
2736 * ppc-tdep.h (ppc_spr_asr): Add missing OEA SPR.
2737 (ppc_spr_mi_dbcam, ppc_spr_mi_dbram0, ppc_spr_mi_dbram1)
2738 (ppc_spr_md_cam, ppc_spr_md_ram0, ppc_spr_md_ram1): Add
2739 missing MPC823 SPRs.
2740 (ppc_spr_m_twb): Renamed from ppc_spr_md_twb; the old name was
2741 incorrect. (This was corrected in GDB's register name tables on
2742 2004-07-14.)
2743
2744 * rs6000-tdep.c (registers_602): Correct register name: "esassr"
2745 should be "esasrr" ("ESA Save and Restore Register").
2746
2747 2004-07-16 Andrew Cagney <cagney@gnu.org>
2748
2749 * infrun.c (insert_step_resume_breakpoint): Delete gdb_assert
2750 calls, no longer applicable. Update comments and rename parameter
2751 "step_frame" to "return_frame".
2752
2753 2004-07-16 Andrew Cagney <cagney@gnu.org>
2754
2755 * frame.c (fprint_field): New function.
2756 (fprint_frame_id): Use fprint_field.
2757
2758 2004-07-15 Joel Brobecker <brobecker@gnat.com>
2759
2760 * ada-lang.c (ada_language_defn): Remove commented out code.
2761
2762 2004-07-15 Jim Blandy <jimb@redhat.com>
2763
2764 * ppc-tdep.h (struct gdbarch_tdep): New member: ppc_sr0_regnum.
2765 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it.
2766
2767 2004-07-14 Jim Blandy <jimb@redhat.com>
2768
2769 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): Delete; unused.
2770
2771 * ppc-tdep.h (ppc_num_vrs): New enum constant.
2772
2773 * ppc-tdep.h (ppc_num_srs): New enum constant.
2774
2775 * ppc-tdep.h (ppc_spr_mq, ppc_spr_xer, ppc_spr_rtcu, ppc_spr_rtcl)
2776 (ppc_spr_lr, ppc_spr_ctr, ppc_spr_cnt, ppc_spr_dsisr, ppc_spr_dar)
2777 (ppc_spr_dec, ppc_spr_sdr1, ppc_spr_srr0, ppc_spr_srr1)
2778 (ppc_spr_eie, ppc_spr_eid, ppc_spr_nri, ppc_spr_sp, ppc_spr_cmpa)
2779 (ppc_spr_cmpb, ppc_spr_cmpc, ppc_spr_cmpd, ppc_spr_icr)
2780 (ppc_spr_der, ppc_spr_counta, ppc_spr_countb, ppc_spr_cmpe)
2781 (ppc_spr_cmpf, ppc_spr_cmpg, ppc_spr_cmph, ppc_spr_lctrl1)
2782 (ppc_spr_lctrl2, ppc_spr_ictrl, ppc_spr_bar, ppc_spr_vrsave)
2783 (ppc_spr_sprg0, ppc_spr_sprg1, ppc_spr_sprg2, ppc_spr_sprg3)
2784 (ppc_spr_ear, ppc_spr_tbl, ppc_spr_tbu, ppc_spr_pvr)
2785 (ppc_spr_spefscr, ppc_spr_ibat0u, ppc_spr_ibat0l, ppc_spr_ibat1u)
2786 (ppc_spr_ibat1l, ppc_spr_ibat2u, ppc_spr_ibat2l, ppc_spr_ibat3u)
2787 (ppc_spr_ibat3l, ppc_spr_dbat0u, ppc_spr_dbat0l, ppc_spr_dbat1u)
2788 (ppc_spr_dbat1l, ppc_spr_dbat2u, ppc_spr_dbat2l, ppc_spr_dbat3u)
2789 (ppc_spr_dbat3l, ppc_spr_ic_cst, ppc_spr_ic_adr, ppc_spr_ic_dat)
2790 (ppc_spr_dc_cst, ppc_spr_dc_adr, ppc_spr_dc_dat, ppc_spr_dpdr)
2791 (ppc_spr_dpir, ppc_spr_immr, ppc_spr_mi_ctr, ppc_spr_mi_ap)
2792 (ppc_spr_mi_epn, ppc_spr_mi_twc, ppc_spr_mi_rpn, ppc_spr_mi_cam)
2793 (ppc_spr_mi_ram0, ppc_spr_mi_ram1, ppc_spr_md_ctr, ppc_spr_m_casid)
2794 (ppc_spr_md_ap, ppc_spr_md_epn, ppc_spr_md_twb, ppc_spr_md_twc)
2795 (ppc_spr_md_rpn, ppc_spr_m_tw, ppc_spr_md_dbcam, ppc_spr_md_dbram0)
2796 (ppc_spr_md_dbram1, ppc_spr_ummcr0, ppc_spr_upmc1, ppc_spr_upmc2)
2797 (ppc_spr_usia, ppc_spr_ummcr1, ppc_spr_upmc3, ppc_spr_upmc4)
2798 (ppc_spr_zpr, ppc_spr_pid, ppc_spr_mmcr0, ppc_spr_pmc1)
2799 (ppc_spr_sgr, ppc_spr_pmc2, ppc_spr_dcwr, ppc_spr_sia)
2800 (ppc_spr_mmcr1, ppc_spr_pmc3, ppc_spr_pmc4, ppc_spr_sda)
2801 (ppc_spr_tbhu, ppc_spr_tblu, ppc_spr_dmiss, ppc_spr_dcmp)
2802 (ppc_spr_hash1, ppc_spr_hash2, ppc_spr_icdbdr, ppc_spr_imiss)
2803 (ppc_spr_esr, ppc_spr_icmp, ppc_spr_dear, ppc_spr_rpa)
2804 (ppc_spr_evpr, ppc_spr_cdbcr, ppc_spr_tsr, ppc_spr_602_tcr)
2805 (ppc_spr_403_tcr, ppc_spr_ibr, ppc_spr_pit, ppc_spr_esasrr)
2806 (ppc_spr_tbhi, ppc_spr_tblo, ppc_spr_srr2, ppc_spr_sebr)
2807 (ppc_spr_srr3, ppc_spr_ser, ppc_spr_hid0, ppc_spr_dbsr)
2808 (ppc_spr_hid1, ppc_spr_iabr, ppc_spr_dbcr, ppc_spr_iac1)
2809 (ppc_spr_dabr, ppc_spr_iac2, ppc_spr_dac1, ppc_spr_dac2)
2810 (ppc_spr_l2cr, ppc_spr_dccr, ppc_spr_ictc, ppc_spr_iccr)
2811 (ppc_spr_thrm1, ppc_spr_pbl1, ppc_spr_thrm2, ppc_spr_pbu1)
2812 (ppc_spr_thrm3, ppc_spr_pbl2, ppc_spr_fpecr, ppc_spr_lt)
2813 (ppc_spr_pir, ppc_spr_pbu2): New enum constants for PowerPC
2814 special-purpose register numbers.
2815
2816 * rs6000-tdep.c (registers_860): Correct register name. (No PPC
2817 manual mentions 'md_twb', but many mention 'm_twb', and at that
2818 point in the register list.)
2819
2820 2004-07-14 Andrew Cagney <cagney@gnu.org>
2821
2822 * utils.c (internal_warning_problem): Fix typo, "internal-warning"
2823 instead of "internal-error".
2824
2825 2004-07-10 Joel Brobecker <brobecker@gnat.com>
2826
2827 * hppa-hpux-tdep.c: Fix a compilation failure due to a comment
2828 that was inserted inside a comment.
2829
2830 2004-07-10 Randolph Chung <tausq@debian.org>
2831
2832 * hppa-hpux-tdep.c (hppa_hpux_som_find_global_pointer): New
2833 function.
2834 (hppa_hpux_push_dummy_code): New function.
2835 (hppa_hpux_init_abi): Set push_dummy_code and call_dummy_location.
2836 Set find_global_pointer method.
2837
2838 2004-07-10 Mark Kettenis <kettenis@gnu.org>
2839
2840 * NEWS: Mention BSD libkvm interface.
2841
2842 2004-07-10 Michael Snyder <msnyder@redhat.com>
2843
2844 * symfile.c (generic_load): Comment typo.
2845 * stack.c (get_selected_block): Ditto.
2846 * regcache.c (regcache_cooked_read): Ditto.
2847 * monitor.c (monitor_debug): Ditto.
2848 * mips-tdep.c (mips_read_pc): Ditto.
2849 * i386-linux-nat.c (ps_get_thread_area): Ditto.
2850 * gdb_mbuild.sh: Ditto.
2851 * gdbarch.sh: Ditto.
2852 * gdbarch.h: Ditto.
2853
2854 2004-07-09 Paul N. Hilfinger <Hilfinger@gnat.com>
2855
2856 * ada-tasks.c: Remove file.
2857
2858 Remove ARI problems:
2859
2860 * ada-exp.y (write_var_from_sym): Reformat to put operator at
2861 beginning of line.
2862
2863 * ada-lang.c (MAX_OF_SIZE): Rename max_of_size.
2864 Add comment.
2865 Add comment concerning MAX_OF_TYPE and MIN_OF_TYPE.
2866 (MIN_OF_SIZE): Rename min_of_size. Add comment.
2867 (UMAX_OF_SIZE): Renmae umax_of_size. Add comment.
2868 (UMIN_OF_SIZE): Remove.
2869 (max_of_type): New function to replace orphan macro in gdbtypes.h
2870 (min_of_type): Ditto.
2871 (discrete_type_high_bound): Use max_of_type.
2872 (discrete_type_low_bound): Use min_of_type.
2873 (possible_user_operator_p): Move operator to beginning of line.
2874 (ada_is_variant_part): Ditto.
2875 (ensure_lval): Rewrite to avoid deprecated operations.
2876 (ada_finish_decode_line_1): Use gdbarch_convert_from_func_ptr_addr
2877 rather than adding DEPRECATED_FUNCTION_START_OFFSET.
2878 (ada_enum_name): Remove assignments in 'if' statements.
2879 (build_ada_types): Add gdbarch parameter.
2880 (_initialize_ada_language): Replace deprecated_register_gdbarch_swap
2881 with gdbarch_data_register_post_init.
2882 Use add_setshow_uinteger_cmd rather than add_set_cmd and
2883 add_show_from_set.
2884
2885 * ada-valprint.c (inspect_it): Remove declaration.
2886 (repeat_count_threshold): Remove declaration.
2887 (ada_print_floating): Remove assignments in 'if' statements.
2888 (print_str): Move operator to beginning of line.
2889
2890 2004-07-08 Jim Blandy <jimb@redhat.com>
2891
2892 * rs6000-tdep.c (registers_powerpc_nofp): Unused; deleted.
2893
2894 2004-07-08 Bob Rossi <bob@brasko.net>
2895
2896 * symtab.c (lookup_symtab): check return value of symtab_to_fullname
2897
2898 2004-07-06 Jeff Johnston <jjohnstn@redhat.com>
2899
2900 * language.h (struct_language_defn): Add new function pointer:
2901 la_class_name_from_physname. Also add new prototype for
2902 language_class_name_from_physname.
2903 * language.c (language_class_name_from_physname): New function.
2904 (unk_lang_class_name): Ditto.
2905 (unknown_language_defn, auto_language_defn): Change
2906 to add unk_lang_class_name function pointer for
2907 la_class_name_from_physname.
2908 (local_language_defn): Ditto.
2909 * dwarf2read.c (guess_structure_name): Change to call
2910 language_class_name_from_physname.
2911 (determine_class_name): Ditto.
2912 * cp-support.c (class_name_from_physname): Renamed.
2913 (cp_class_name_from_physname): New name of function.
2914 * cp-support.h: Ditto.
2915 * c-lang.c (c_language_defn): Change to add NULL
2916 for class_name_from_physname function pointer.
2917 (cplus_language_defn): Change to add cp_class_name_from_physname.
2918 * jv-lang.c (java_class_name_physname): New function.
2919 (java_find_last_component): New static routine.
2920 (java_language_defn): Add java_class_name_from_physname pointer.
2921 * ada-lang.c (ada_language_defn): Change to add NULL
2922 for class_name_from_physname function pointer.
2923 * f-lang.c (f_language_defn): Ditto.
2924 * m2-lang.c (m2_language_defn): Ditto.
2925 * objc-lang.c (objc_language_defn): Ditto.
2926 * p-lang.c (pascal_language_defn): Ditto.
2927 * scm-lang.c (scm_language_defn): Ditto.
2928
2929 2004-07-06 Andrew Cagney <cagney@gnu.org>
2930
2931 Patch from Bart Robinson.
2932 * corelow.c (core_open): Add variable "flags", or in O_LARGEFILE.
2933 (O_LARGEFILE): Define to 0, if not defined.
2934
2935 2004-07-03 Mark Kettenis <kettenis@gnu.org>
2936
2937 * m68kbsd-nat.c: Include "gdbcore.h", <sys/types.h>,
2938 <machine/pcb.h> and "bsd-kvm.h".
2939 (PCB_REGS_FP, PCB_REGS_SP): Define if not already defined.
2940 (m68kbsd_supply_pcb): New function.
2941 (_initialize_m68kbsd_nat): New prototype and function.
2942 * Makefile.in (m68kbsd-nat.o): Update dependencies.
2943 * config/m68k/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
2944 (LOADLIBES): New variable.
2945 * config/m68k/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
2946 (LOADLIBES): New variable.
2947
2948 * bsd-kvm.c (bsd_kvm_cmdlist): Remove unecessary initialization.
2949
2950 2004-07-03 Mark Kettenis <kettenis@gnu.org>
2951
2952 * bsd-kvm.c: Include "cli/cli-cmds.h", "command.h", "value.h" and
2953 <sys/proc.h>.
2954 (bsd_kvm_cmdlist): New variable.
2955 (bsd_kvm_cmd, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): New functions.
2956 (bsd_kvm_add_target): Register "kvm" command prefix, "kvm pcb"
2957 command and "kvm proc" command.
2958 * Makefile.in (bsd-kvm.o): Update dependencies.
2959
2960 2004-07-02 Mark Kettenis <kettenis@gnu.org>
2961
2962 * osabi.c: Update copyright year.
2963 (generic_elf_osabi_sniffer): Tweak comment. Look for OS-specific
2964 notes if EI_OSABI is set to ELFOSABI_HPUX.
2965
2966 2004-07-01 Michael Snyder <msnyder@redhat.com>
2967
2968 * win32-nat.c (core_dll_symbols_add): Re-indent a small section
2969 that seems to have gotten whacked out of line.
2970
2971 2004-07-01 Mark Kettenis <kettenis@gnu.org>
2972
2973 * dbxread.c (process_one_symbol) [PCC_SOL_BROKEN]: Remove dead
2974 code.
2975
2976 2004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
2977
2978 * ada-lang.c (decode_packed_array): Minor change to comment.
2979 (ada_value_slice_ptr): New function.
2980 (ada_value_slice): New function.
2981 (ada_evaluate_subexp): Remove XVS-suffix code from subscripting
2982 test. Don't know why it is there.
2983 Change slice code to use ada_value_slice_ptr and ada_value_slice, and
2984 to avoid dereferencing huge arrays from which one is slicing.
2985 (empty_array): Correct to return an array rather than
2986 a subrange value.
2987 * ada-valprint.c (print_optional_low_bound): Don't print lower bound
2988 on empty arrays (let'em use 'FIRST instead).
2989
2990 2004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
2991
2992 Address complaints from gdb_ari.sh:
2993
2994 * ada-exp.y: Include gdb_string.h rather than string.h.
2995 (convert_char_literal): Reformat declaration.
2996 * ada-lang.h: Include opaque struct declaration for struct frame_info.
2997 * ada-lex.l: Change use of free to xfree (the macro would do so
2998 anyway, but this is harmless).
2999 Include gdb_string.h rather than string.h.
3000 * ada-valprint.c (ada_val_print_stub): Change PTR => void*.
3001
3002 * ada-lang.c (parse): Remove K&Rism in parameter list.
3003 (is_name_suffix): Correct Linux => GNU/Linux in comment.
3004
3005 2004-06-30 Mark Kettenis <kettenis@gnu.org>
3006
3007 * dbxread.c (process_one_symbol) [SUN_FIXED_LBRAC_BUG]: Remove
3008 dead code.
3009
3010 2004-06-30 Mark Kettenis <kettenis@gnu.org>
3011
3012 * alphabsd-nat.c: Update copyright year.
3013 (getregs_supplies): Use ALPHA_PC_REGNUM instead of PC_REGNUM.
3014
3015 2004-06-29 Joel Brobecker <brobecker@gnat.com>
3016
3017 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): New function.
3018 (i386_cygwin_in_solib_call_trampoline): New function.
3019 (i386_cygwin_init_abi): Initialize the in_solib_call_trampoline
3020 and skip_trampoline_code gdbarch methods.
3021
3022 2004-06-29 Jim Blandy <jimb@redhat.com>
3023
3024 * Makefile.in (gdb_callback_h): Renamed from callback_h to the
3025 name actually used in the dependency lists.
3026
3027 2004-06-29 Randolph Chung <tausq@debian.org>
3028
3029 * NEWS (New native configurations): Mention GNU/Linux/hppa.
3030
3031 2004-06-29 Corinna Vinschen <vinschen@redhat.com>
3032
3033 * win32-nat.c (child_pid_to_exec_file): New function.
3034 (init_child_ops): Add child_pid_to_exec_file as to_pid_to_exec_file
3035 functionality.
3036
3037 2004-06-28 Andrew Cagney <cagney@gnu.org>
3038
3039 * defs.h (xstrvprintf): Declare.
3040 * utils.c (xstrvprintf): New function.
3041 (internal_vproblem, xstrprintf, xasprintf)
3042 (vfprintf_maybe_filtered, vfprintf_unfiltered): Use xstrvprintf.
3043 * serial.c (serial_printf): Ditto.
3044 * complaints.c (vcomplaint): Ditto.
3045
3046 2004-06-29 Corinna Vinschen <vinschen@redhat.com>
3047
3048 * infcmd.c (attach_command): Move call to target_terminal_inferior
3049 behind loading symbol table.
3050
3051 2004-06-28 Andrew Cagney <cagney@gnu.org>
3052
3053 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Revert 2004-06-24
3054 change - add back extern deprecated_ui_loop_hook declaration.
3055
3056 2004-06-28 Andrew Cagney <cagney@gnu.org>
3057
3058 * xcoffsolib.c (xcoff_solib_address): Replace xasprintf with
3059 xstrprintf.
3060 * varobj.c (varobj_gen_name, create_child, c_name_of_child)
3061 (c_value_of_variable): Ditto.
3062 * utils.c (internal_vproblem): Ditto.
3063 * solib-aix5.c (build_so_list_from_mapfile): Ditto.
3064 * remote.c (add_packet_config_cmd): Ditto.
3065 * remote-rdp.c (rdp_set_command_line): Ditto.
3066 * regcache.c (regcache_dump): Ditto.
3067 * frv-tdep.c (new_variant, new_variant): Ditto.
3068 * fbsd-proc.c (child_pid_to_exec_file): Ditto.
3069 (fbsd_find_memory_regions): Ditto.
3070 * breakpoint.c (create_thread_event_breakpoint)
3071 (create_breakpoints): Ditto.
3072 * aix-thread.c (aix_thread_pid_to_str): Ditto.
3073 * ada-lang.c (is_package_name): Ditto. Also delete xmalloc call.
3074
3075 2004-06-28 Joel Brobecker <brobecker@gnat.com>
3076
3077 * ada-lang.c: Re-indent file, with some massaging to help indent
3078 a bit when the result is otherwise really too ugly.
3079
3080 2004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
3081
3082 * frame.h (struct frame_id): Change bit field type of stack_addr_p,
3083 code_addr_p and special_addr_p to 'unsigned int'.
3084
3085 2004-06-27 Mark Kettenis <kettenis@gnu.org>
3086
3087 * i386v4-nat.c: Update copyright year and tweak comment.
3088 (regmap): Remove trailing comma.
3089 (supply_gregset): Rename local variable i to regnum. Call
3090 regcache_raw_supply instead of supply_register.
3091 (fill_gregset): Rename argument regno to regnum. Call
3092 regcache_raw_collect instead of regcache_collect.
3093
3094 2004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
3095
3096 * frame.h (struct frame_id): New fields stack_addr_p, code_addr_p
3097 and special_addr_p.
3098 (frame_id_build, frame_id_build_special): Update comments.
3099 (frame_id_build_wild): New prototype.
3100 * frame.c (frame_id_build, frame_id_build_special): Fill in new
3101 struct frame_id fields.
3102 (frame_id_build_wild): New function.
3103 (frame_id_eq, frame_id_inner): Use new struct frame_id fields.
3104
3105 2004-06-27 Mark Kettenis <kettenis@gnu.org>
3106
3107 * config/djgpp/fnchange.lst: Add entries for hppabsd-nat.c and
3108 hppabsd-tdep.c.
3109
3110 2004-06-27 Joel Brobecker <brobecker@gnat.com>
3111
3112 * ada-lang.c: Minor reformatting to conform to GNU coding standards.
3113
3114 2004-06-27 Joel Brobecker <brobecker@gnat.com>
3115
3116 * ada-lang.c: Re-indent file.
3117
3118 2004-06-27 Joel Brobecker <brobecker@gnat.com>
3119
3120 * ada-lang.c (symtab_symbol_info): Remove unused declaration.
3121 (no_symtab_msg): Likewise.
3122
3123 2004-06-27 Andreas Schwab <schwab@suse.de>
3124
3125 * source.c: Fix whitespace.
3126
3127 2004-06-27 Mark Kettenis <kettenis@gnu.org>
3128
3129 * configure.in: Include <sys/param.h> for td_pcb test.
3130 * configure: Regenerated.
3131
3132 * i386nbsd-nat.c: New file.
3133 * Makefile.in (ALLDEPFILES): Add i386nbsd-nat.c, i386nbsd-tdep.c,
3134 i386obsd-nat.c and i386obsd-tdep.c.
3135 (i386nbsd-nat.o): New dependency.
3136 * config/i386/obsd.mh (NATDEPFILES): Add i386nbsd-nat.o and
3137 bsd-kvm.o.
3138 (LOADLIBES): New variable.
3139 * config/i386/nbsdelf.mh (NATDEPFILES): Add i386nbsd-nat.o and
3140 bsd-kvm.o.
3141 (LOADLIBES): New variable.
3142
3143 * config/i386/fbsd64.mh (NATDEPFILES): Add bsd-kvm.o.
3144 (LOADLIBES): New variable.
3145
3146 * bsd-kvm.c (bsd_kvm_fetch_registers): Directly return after
3147 fetching from BSD_KVM_PADDR. Correctly lookup address for
3148 "_thread0".
3149
3150 * amd64fbsd-nat.c: Include <sys/types.h, <machine/pcb.h> and
3151 "bsd-kvm.h".
3152 (amd64fbsd_supply_pcb): New funcion.
3153 (_initialize_amd64fbsd_nat): Enable libkvm interface.
3154
3155 2004-06-27 <david@streamline-computing.com>
3156
3157 Partial fix for PR cli/1056.
3158 * valarith.c: Check for zero in division and remainder
3159 evaluation.
3160
3161 2004-06-27 Mark Kettenis <kettenis@gnu.org>
3162
3163 * i387-tdep.c: Remove excessive whitespace.
3164
3165 2004-06-26 Andrew Cagney <cagney@gnu.org>
3166
3167 * gdb-events.sh (deprecated_set_gdb_event_hooks): Deprecated.
3168 * gdb-events.h, gdb-events.c: Re-generate.
3169 * tui/tui-hooks.c (tui_install_hooks): Update.
3170 (tui_remove_hooks): Update.
3171 * mi/mi-cmd-break.c (mi_cmd_break_insert): Update.
3172
3173 2004-06-26 Mark Kettenis <kettenis@gnu.org>
3174
3175 * amd64fbsd-nat.c: Don't include <sys/procfs.h> and "gregset.h".
3176 (gregset_t, fpregset_t): Remove typedefs.
3177 (REG_OFFSET): Rename argument.
3178 (amd64bsd_r_reg_offset): Rename from reg_offset.
3179 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
3180 Remove functions.
3181 (_initialize_amd64fbsd_nat): Use amd64fbsd64_r_reg_offset instead
3182 of reg_offset.
3183 * Makefile.in (amd64fbsd-nat.o): Update dependencies.
3184
3185 * amd64-nat.c (amd64_supply_native_gregset): Fix comment.
3186
3187 * vax-tdep.c: Tweak comment.
3188
3189 Add OpenBSD/hppa support.
3190 * NEWS (New native configurations): Mention OpenBSD/hppa.
3191 * hppabsd-nat.c, hppabsd-tdep.c, config/pa/obsd.mh,
3192 config/pa/obsd.mt, config/pa/nm-obsd.h, config/pa/tm-bsd.h: New
3193 files.
3194 * Makefile.in (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
3195 (hppabsd-nat.o, hppabsd-tdep.c): New dependencies.
3196 * configure.host: Add hppa*-*-openbsd*.
3197 * configure.tgt: Add hppa*-*-openbsd*.
3198
3199 2004-06-25 Andrew Cagney <cagney@gnu.org>
3200
3201 * defs.h (deprecated_ui_loop_hook): Deprecated.
3202 * wince.c (child_wait): Update.
3203 * win32-nat.c (child_wait): Update.
3204 * v850ice.c (v850ice_wait): Update.
3205 * top.c (deprecated_ui_loop_hook): Update.
3206 * serial.h: Update.
3207 * ser-unix.c (do_hardwire_readchar, do_hardwire_readchar)
3208 (do_unix_readchar): Update.
3209 * ser-tcp.c (net_open): Update.
3210 * remote-sim.c (gdb_os_poll_quit): Update.
3211 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Update.
3212
3213 2004-06-24 Andrew Cagney <cagney@gnu.org>
3214
3215 * defs.h (deprecated_pre_add_symbol_hook)
3216 (deprecated_post_add_symbol_hook): Deprecated.
3217 * symfile.c (symbol_file_add_with_addrs_or_offsets)
3218 (symbol_file_add_with_addrs_or_offsets): Update references.
3219
3220 2004-06-24 Andrew Cagney <cagney@gnu.org>
3221
3222 * defs.h (post_add_symbol_hook, pre_add_symbol_hook)
3223 (ui_loop_hook, selected_frame_level_changed_hook): Declare.
3224 * wince.c (ui_loop_hook): Delete extern declaration.
3225 * win32-nat.c (ui_loop_hook): Delete extern declaration..
3226 * v850ice.c (ui_loop_hook): Delete extern declaration..
3227 * ser-unix.c (ui_loop_hook): Delete extern declaration..
3228 * ser-tcp.c (ui_loop_hook): Delete extern declaration..
3229 * remote-sim.c (ui_loop_hook): Delete extern declaration..
3230 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Delete extern.
3231 ui_loop_hook declaration.
3232
3233 2004-06-24 Andrew Cagney <cagney@gnu.org>
3234
3235 * objfiles.h (struct entry_info): Delete entry_func_lowpc and
3236 entry_func_highpc fields.
3237 * objfiles.c (init_entry_point_info): Do not clear
3238 entry_func_lowpc and entry_func_highpc.
3239 (objfile_relocate): Do not relocate entry_func_lowpc and
3240 entry_func_highpc.
3241 * dwarfread.c (read_func_scope): Do not set entry_func_lowpc and
3242 entry_func_highpc.
3243 * dwarf2read.c (read_func_scope): Do not set entry_func_lowpc and
3244 entry_func_highpc.
3245 * blockframe.c (legacy_frame_chain_valid): Replace tests against
3246 entry_func_lowpc and entry_func_highpc with call to
3247 inside_entry_func.
3248
3249 2004-06-24 Mark Kettenis <kettenis@gnu.org>
3250
3251 * sparc64-tdep.c (sparc64_store_arguments): Fix passing
3252 quad-precision floating point arguments in registers.
3253
3254 2004-06-24 Mark Kettenis <kettenis@gnu.org>
3255
3256 From Michael Mueller <m.mueller99@kay-mueller.de>:
3257 * sparc64-tdep.c (sparc64_frame_base_address): Take BIAS into
3258 account.
3259
3260 2004-06-22 Jeff Johnston <jjohnstn@redhat.com>
3261
3262 * infrun.c (handle_inferior_event): Initialize stopped_by_watchpoint
3263 to -1.
3264 * breakpoint.c (bpstat_stop_status): Move check for ignoring
3265 untriggered watchpoints to a separate if clause. Update function
3266 comment regarding STOPPED_BY_WATCHPOINT argument.
3267
3268 2004-06-22 Jim Blandy <jimb@redhat.com>
3269
3270 * gdbarch.sh: Doc fix.
3271
3272 2004-06-21 Martin Hunt <hunt@redhat.com>
3273 Kevin Buettner <kevinb@redhat.com>
3274
3275 * config/mips/tm-mips.h (SP_REGNUM): Delete define.
3276 * mips-tdep.h (MIPS_SP_REGNUM): Define.
3277 * mips-tdep.c (mips_gdbarch_init): Set SP_REGNUM via call
3278 to set_gdbarch_sp_regnum(). Use cooked register number.
3279 (SP_REGNUM): Replace all occurrences with MIPS_SP_REGNUM.
3280
3281 2004-06-21 Andrew Cagney <cagney@gnu.org>
3282
3283 * gdbarch.sh: When the macro field is empty, do not generate a
3284 macro definition. When the macro field is "=", generate the macro
3285 name from the upper-case function name.
3286 (NUM_REGS, NUM_PSEUDO_REGS, SP_REGNUM, PC_REGNUM, PS_REGNUM)
3287 (FP0_REGNUM, STAB_REG_TO_REGNUM, ECOFF_REG_TO_REGNUM)
3288 (DWARF_REG_TO_REGNUM, SDB_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM)
3289 (REGISTER_NAME, DEPRECATED_REGISTER_VIRTUAL_TYPE)
3290 (DEPRECATED_REGISTER_BYTES, DEPRECATED_REGISTER_BYTE)
3291 (DEPRECATED_REGISTER_RAW_SIZE, DEPRECATED_REGISTER_VIRTUAL_SIZE)
3292 (DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_FP_REGNUM)
3293 (DEPRECATED_TARGET_READ_FP, DEPRECATED_PUSH_ARGUMENTS)
3294 (DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP)
3295 (DEPRECATED_REGISTER_SIZE, CALL_DUMMY_LOCATION)
3296 (DEPRECATED_DO_REGISTERS_INFO, REGISTER_SIM_REGNO)
3297 (REGISTER_BYTES_OK, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER)
3298 (GET_LONGJMP_TARGET, DEPRECATED_INIT_FRAME_PC)
3299 (BELIEVE_PCC_PROMOTION, DEPRECATED_GET_SAVED_REGISTER)
3300 (CONVERT_REGISTER_P, REGISTER_TO_VALUE, VALUE_TO_REGISTER)
3301 (POINTER_TO_ADDRESS, ADDRESS_TO_POINTER, INTEGER_TO_ADDRESS)
3302 (DEPRECATED_POP_FRAME, DEPRECATED_STORE_STRUCT_RETURN)
3303 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE)
3304 (DEPRECATED_EXTRACT_RETURN_VALUE, DEPRECATED_STORE_RETURN_VALUE)
3305 (DEPRECATED_USE_STRUCT_CONVENTION)
3306 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
3307 (DEPRECATED_FRAME_INIT_SAVED_REGS)
3308 (DEPRECATED_INIT_EXTRA_FRAME_INFO, SKIP_PROLOGUE, INNER_THAN)
3309 (BREAKPOINT_FROM_PC, MEMORY_INSERT_BREAKPOINT)
3310 (MEMORY_REMOVE_BREAKPOINT, DECR_PC_AFTER_BREAK)
3311 (DEPRECATED_FUNCTION_START_OFFSET, FRAME_ARGS_SKIP)
3312 (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION, DEPRECATED_FRAME_CHAIN)
3313 (DEPRECATED_FRAME_CHAIN_VALID, DEPRECATED_FRAME_SAVED_PC)
3314 (DEPRECATED_FRAME_ARGS_ADDRESS, DEPRECATED_FRAME_LOCALS_ADDRESS)
3315 (DEPRECATED_SAVED_PC_AFTER_CALL, FRAME_NUM_ARGS)
3316 (DEPRECATED_STACK_ALIGN, DEPRECATED_REG_STRUCT_HAS_ADDR)
3317 (FRAME_RED_ZONE_SIZE, ADDR_BITS_REMOVE, SMASH_TEXT_ADDRESS)
3318 (SOFTWARE_SINGLE_STEP, SKIP_TRAMPOLINE_CODE)
3319 (IN_SOLIB_CALL_TRAMPOLINE, IN_SOLIB_RETURN_TRAMPOLINE)
3320 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL)
3321 (NAME_OF_MALLOC, CANNOT_STEP_BREAKPOINT)
3322 (HAVE_NONSTEPPABLE_WATCHPOINT, ADDRESS_CLASS_TYPE_FLAGS)
3323 (FETCH_POINTER_ARGUMENT): Replace the macro name with "=".
3324
3325 2004-06-21 Andrew Cagney <cagney@gnu.org>
3326
3327 * gdbarch.sh: For gdbarch_dump, print the "function" rather than
3328 macro name, and the function rather than macro value. Only wrap
3329 macro print statements in #ifdef. Move format logic to where it
3330 is needed.
3331 * gdbarch.c: Re-generate.
3332
3333 * gdbarch.sh (read): Delete "print_p" and "description", add
3334 "garbage_at_eol". Check for non-empty garbage at end-of-line.
3335 Delete references to print_p.
3336 (TARGET_ARCHITECTURE): Delete print predicate.
3337 * gdbarch.c: Re-generate.
3338
3339 * gdbarch.sh: Check that multi-arch methods do not provide a
3340 macro.
3341 (register_type, unwind_dummy_id, push_dummy_call, push_dummy_code)
3342 (print_registers_info, print_float_info, print_vector_info)
3343 (adjust_breakpoint_address, remote_translate_xfer_address)
3344 (construct_inferior_arguments, skip_solib_resolver, unwind_pc)
3345 (address_class_type_flags_to_name, unwind_sp): Remove the macro
3346 name from the multi-arch definition.
3347
3348 2004-06-20 Andrew Cagney <cagney@gnu.org>
3349
3350 * gdbarch.sh: Sort by the function, instead of macro name.
3351 * gdbarch.c: Re-generate.
3352
3353 2004-06-20 Andrew Cagney <cagney@gnu.org>
3354
3355 * gdbarch.sh: Use the function, instead of macro name in
3356 errors and the log file.
3357 (return_value): Remove stray ":" in spec.
3358
3359 * gdbarch.sh (RETURN_VALUE): Default to legacy_return_value.
3360 * gdbarch.h, gdbarch.c: Re-generate.
3361 * Makefile.in (arch-utils.o): Update dependencies.
3362 * values.c (using_struct_return): Move code calling
3363 USE_STRUCT_CONVENTION to legacy_return_value, simplify.
3364 * stack.c (return_command): Move code calling STORE_RETURN_VALUE
3365 to legacy_return_value, simplify.
3366 * infcmd.c (print_return_value): Move code calling
3367 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS and EXTRACT_RETURN_VALUE
3368 to legacy_return_value, simplify.
3369 * infcall.c (call_function_by_hand): Move code calling
3370 EXTRACT_RETURN_VALUE to legacy_return_value, simplify.
3371 * arch-utils.c: Update copyright. Include "gdbcore.h".
3372 (legacy_return_value): New function.
3373 * arch-utils.h: Update copyright.
3374 (legacy_return_value): Declare.
3375
3376 2004-06-20 Andrew Cagney <cagney@gnu.org>
3377
3378 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Deprecated.
3379 * gdbarch.h, gdbarch.c: Re-generate.
3380 * values.c (using_struct_return): Update call.
3381 * mcore-tdep.c: Update comment.
3382 * infcall.c (call_function_by_hand): Update comment.
3383 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3384 * arch-utils.h (always_use_struct_convention): Update.
3385 * v850-tdep.c (v850_gdbarch_init): Update.
3386 * sh64-tdep.c (sh64_gdbarch_init): Update.
3387 * sh-tdep.c (sh_gdbarch_init): Update.
3388 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3389 * mips-tdep.c (mips_gdbarch_init): Update.
3390 * mcore-tdep.c (mcore_gdbarch_init): Update.
3391 * m32r-tdep.c (m32r_gdbarch_init): Update.
3392 * ia64-tdep.c (ia64_gdbarch_init): Update.
3393 * h8300-tdep.c (h8300_gdbarch_init): Update.
3394 * frv-tdep.c (frv_gdbarch_init): Update.
3395 * cris-tdep.c (cris_gdbarch_init): Update.
3396 * arm-tdep.c (arm_gdbarch_init): Update.
3397 * alpha-tdep.c (alpha_gdbarch_init): Update.
3398
3399 2004-06-18 Michael Chastain <mec.gnu@mindspring.com>
3400
3401 * PROBLEMS: Add more specific information, and a work-around,
3402 for PR gdb/1458.
3403
3404 2004-06-18 Andrew Cagney <cagney@gnu.org>
3405
3406 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Deprecated.
3407 * gdbarch.h, gdbarch.c: Re-generate.
3408 * ada-lang.c (ada_finish_decode_line_1): Update.
3409 * infrun.c (handle_inferior_event): Update.
3410 * infcall.c (find_function_addr): Update.
3411 * linespec.c (minsym_found): Update.
3412 * symtab.c (find_function_start_sal, skip_prologue_using_sal):
3413 Update.
3414 * blockframe.c (legacy_frameless_look_for_prologue): Update.
3415 * cli/cli-cmds.c (disassemble_command): Update.
3416 * vax-tdep.c (vax_gdbarch_init): Update.
3417
3418 2004-06-18 Mark Kettenis <kettenis@gnu.org>
3419
3420 * i386-tdep.c (i386_collect_fpregset): Fix comment.
3421
3422 2004-06-17 Andrew Cagney <cagney@gnu.org>
3423
3424 GDB 6.1.1 released from the GDB 6.1 branch.
3425 * NEWS: Merge in 6.1.1 NEWS from 6.1 branch.
3426 * PROBLEMS: Ditto.
3427
3428 2004-06-16 Daniel Jacobowitz <dan@debian.org>
3429
3430 PR gdb/1658
3431 * dwarf2read.c (dwarf_decode_lines): Read the length of the extended
3432 operation as a uleb128. Found by Michael Coulter.
3433
3434 2004-06-16 Paul N. Hilfinger <Hilfinger@gnat.com>
3435
3436 * ada-tasks.c: Rename build_task_list to ada_build_task_list, and
3437 make it non-static.
3438 * ada-lang.h (task_control_block): declaration moved from ada-task.c
3439 to ada-lang.h; this is needed to be able to implement the kill command
3440 in multi-task mode.
3441 (task_ptid): Ditto.
3442 (task_entry): Ditto.
3443 (task_list): Ditto.
3444 (ada_build_task_list): Ditto.
3445
3446 * ada-lang.c: Conditionalize routines and data structures related
3447 to breakpoints, exceptions, completion, and symbol caching on
3448 GNAT_GDB, since these are not yet used in the submitted public sources.
3449 (ada_main_name): Editorial: Move definition out of exception-related
3450 code.
3451
3452 2004-06-15 Andrew Cagney <cagney@gnu.org>
3453
3454 * mips-tdep.c (non_heuristic_proc_desc): Delete call to
3455 deprecated_pc_in_call_dummy.
3456
3457 2004-06-15 Alan Modra <amodra@bigpond.net.au>
3458
3459 * dsrec.c (load_srec, make_srec): Use bfd_get_section_size instead of
3460 bfd_get_section_size_before_reloc or _raw_size.
3461 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
3462 * dwarf2read.c (dwarf2_locate_sections): Likewise.
3463 (dwarf2_read_section): Likewise.
3464 * elfread.c (elf_locate_sections): Likewise.
3465 * gcore.c (derive_heap_segment): Likewise.
3466 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
3467 * remote-e7000.c (e7000_load): Likewise.
3468 * remote-m32r-sdi.c (m32r_load): Likewise.
3469 * remote-mips.c (mips_load_srec): Likewise.
3470 (pmon_load_fast): Likewise.
3471 * remote.c (compare_sections_command): Likewise.
3472 * symfile.c (add_section_size_callback): Likewise.
3473 (load_section_callback): Likewise.
3474 (pc_in_unmapped_range): Likewise.
3475 (pc_in_mapped_range): Likewise.
3476 (sections_overlap): Likewise.
3477 (list_overlays_command): Likewise.
3478 (simple_overlay_update_1): Likewise.
3479 (simple_overlay_update): Likewise.
3480 * tracepoint.c (remote_set_transparent_ranges): Likewise.
3481 * win32-nat.c (core_section_load_dll_symbols): Likewise.
3482
3483 2004-06-14 Randolph Chung <tausq@debian.org>
3484
3485 * Makefile.in (hppa-hpux-tdep.o): Update dependency.
3486 * hppa-hpux-tdep.c (hp_cxx_exception_support_initialized): Make
3487 static.
3488 (hppa_hpux_inferior_created): New function.
3489 (hppa_hpux_init_abi): Register observer.
3490 * symfile.c (hp_cxx_exception_support_initialized)
3491 (RESET_HP_UX_GLOBALS): Remove HPUXHPPA specific hacks.
3492 (symbol_file_add_main_1, symbol_file_clear): Likewise.
3493
3494 2004-06-14 Randolph Chung <tausq@debian.org>
3495
3496 * MAINTAINERS (Write After Approval): Alphabetize my entry
3497 correctly.
3498
3499 2004-06-14 Andrew Cagney <cagney@gnu.org>
3500
3501 * MAINTAINERS (testsuite): List Michael Chastain as the lead
3502 testsuite maintainer.
3503
3504 2004-06-13 Andrew Cagney <cagney@gnu.org>
3505
3506 * infcmd.c (print_return_value): Fix logic, allow
3507 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS when struct_return.
3508
3509 * gdbarch.sh: For predicates, do not check GDB_MULTI_ARCH when
3510 defining any macros.
3511 * gdbarch.h: Re-generate.
3512
3513 * gdbarch.sh: Delete "level" attribute. Only check for a macro
3514 redefinition when multi-arch greater than GDB_MULTI_ARCH_PARTIAL.
3515 * gdbarch.h: Re-generate.
3516
3517 * values.c (generic_use_struct_convention): Don't check gcc_p.
3518
3519 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE)
3520 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Delete.
3521 * gdbarch.h, gdbarch.c: Regenerate.
3522 * ns32k-tdep.h (NS32K_MAX_REGISTER_RAW_SIZE)
3523 (NS32K_MAX_REGISTER_VIRTUAL_SIZE): Delete macros.
3524 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
3525 deprecated_max_register_raw_size and
3526 deprecated_max_register_virtual_size.
3527 * v850-tdep.c (v850_gdbarch_init): Ditto.
3528 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
3529 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3530 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
3531 * cris-tdep.c (cris_gdbarch_init): Ditto.
3532
3533 * gdbarch.sh (RETURN_VALUE_ON_STACK): Delete method.
3534 * gdbarch.h, gdbarch.c: Re-generate.
3535 * m68hc11-tdep.c (m68hc11_return_value_on_stack): Delete function.
3536 (m68hc11_use_struct_convention): Delete function.
3537 (m68hc11_extract_struct_value_address): Delete function.
3538 (m68hc11_return_value): New function.
3539 (m68hc11_gdbarch_init): Instead of store_return_value,
3540 extract_return_value, return_value_on_stack,
3541 deprecated_extract_struct_value_address and use_struct_convention,
3542 set return_value.
3543 * values.c (using_struct_return): Do not call
3544 RETURN_VALUE_ON_STACK.
3545 * arch-utils.h (generic_return_value_on_stack_not): Delete
3546 declaration.
3547 * arch-utils.c (generic_return_value_on_stack_not): Delete
3548 function.
3549
3550 2004-06-12 Andrew Cagney <cagney@gnu.org>
3551
3552 * values.c (register_value_being_returned): Delete function.
3553 * infcmd.c (legacy_return_value): Delete function.
3554 * infcall.c (call_function_by_hand): Inline
3555 "register_value_being_returned", simplify.
3556 * values.c (using_struct_return): Update comment, refer to
3557 print_return_value instead of register_value_being_returned.
3558 * infcmd.c (print_return_value): Inline calls to
3559 register_value_being_returned and legacy_return_value. Simplify.
3560
3561 2004-06-11 Randolph Chung <tausq@debian.org>
3562
3563 * somread.c (som_symtab_read): Exclude gcc local symbols.
3564
3565 2004-06-11 Randolph Chung <tausq@debian.org>
3566
3567 * infrun.c (handle_inferior_event): Handle the case when a
3568 trampoline ends up in the runtime resolver, and if the trampoline
3569 has no name. Rearrange the code so that all the trampoline
3570 processing happens before other step-out-of-range handling.
3571
3572 2004-06-11 Martin Hunt <hunt@redhat.com>
3573
3574 * mips-tdep.c (mips_gdbarch_init): Recognize vr4120
3575 has no fpu.
3576
3577 2004-06-10 Andrew Cagney <cagney@gnu.org>
3578
3579 * blockframe.c (legacy_inside_entry_func): Delete.
3580 (legacy_frame_chain_valid): Inline call to
3581 legacy_inside_entry_func, simplify.
3582
3583 2004-06-10 Bob Rossi <bob@brasko.net>
3584
3585 * dbxread.c (read_dbx_symtab): Set pst->dirname when known.
3586 * dwarf2read.c (partial_die_info): Add dirname field.
3587 (dwarf2_build_psymtabs_hard): Set pst->dirname when known.
3588 (read_partial_die): Save away DW_AT_comp_dir.
3589 * defs.h (symtab_to_filename): Removed.
3590 * source.c (find_and_open_source): Added.
3591 (open_source_file): Just calls find_and_open_source.
3592 (symtab_to_filename): Removed.
3593 (symtab_to_fullname, psymtab_to_fullname): Added.
3594 * source.h (psymtab_to_fullname,symtab_to_fullname): Added.
3595 * symtab.c (lookup_symtab): Call symtab_to_fullname instead of
3596 symtab_to_filename.
3597 * symtab.h (partial_symtab): Add dirname field.
3598 * mi/mi-cmd-file.c (FILENAME,FULLNAME): Added.
3599 (mi_cmd_file_list_exec_source_file): Call new function
3600 symtab_to_fullname to find fullname.
3601 (mi_cmd_file_list_exec_source_files): Added.
3602 * mi/mi-cmds.c (mi_cmd_mi_cmds): Add -file-list-exec-source-files.
3603 * mi/mi-cmds.h (mi_cmd_file_list_exec_source_files): Added.
3604
3605 2004-06-10 Andrew Cagney <cagney@gnu.org>
3606
3607 * avr-tdep.c (avr_gdbarch_init): Do not set use_struct_convention
3608 to generic_use_struct_convention, the default value.
3609
3610 * mn10300-tdep.c (mn10300_type_align): Call internal_error instead
3611 of abort.
3612
3613 * ns32k-tdep.c (ns32k_push_arguments): New function.
3614 (ns32k_gdbarch_init): Set deprecated_push_arguments.
3615 * infcall.c (call_function_by_hand): Call error instead of
3616 legacy_push_arguments.
3617 * value.h (legacy_push_arguments): Delete declaration.
3618 * valops.c (legacy_push_arguments): Delete function.
3619 (value_push): Delete function.
3620
3621 2004-06-10 Brian Ford <ford@vss.fsi.com>
3622
3623 * coffread.c (coff_symfile_read): Prevent mixed debugging formats
3624 from corrupting/reinitializing the psymtab. Support DWARF 2 frame
3625 info.
3626 * dbxread.c (elfstab_build_psymtabs): Remove bogus comment.
3627
3628 2004-06-10 Andrew Cagney <cagney@gnu.org>
3629
3630 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Delete.
3631 * gdbarch.h, gdbarch.c: Re-generate.
3632 * frame.h (deprecated_pc_in_call_dummy): Delete "sp" and "fp"
3633 parameters.
3634 * dummy-frame.c (deprecated_pc_in_call_dummy): Update.
3635 * arm-tdep.c (arm_pc_is_thumb_dummy): Call
3636 deprecated_pc_in_call_dummy instead of
3637 DEPRECATED_PC_IN_CALL_DUMMY.
3638 (arm_skip_prologue): Ditto.
3639 * xstormy16-tdep.c (xstormy16_pop_frame, xstormy16_scan_prologue)
3640 (xstormy16_frame_saved_pc, xstormy16_frame_chain): Ditto.
3641 * v850-tdep.c (v850_find_callers_reg, v850_frame_chain)
3642 (v850_pop_frame, v850_frame_saved_pc, v850_frame_init_saved_regs):
3643 Ditto.
3644 * sh64-tdep.c (sh64_frame_chain, sh64_get_saved_pr)
3645 (sh64_init_extra_frame_info, sh64_get_saved_register)
3646 (sh64_pop_frame): Ditto.
3647 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
3648 * mcore-tdep.c (mcore_find_callers_reg, mcore_frame_saved_pc)
3649 (mcore_pop_frame, mcore_init_extra_frame_info): Ditto.
3650 * h8300-tdep.c (h8300_frame_chain, h8300_frame_saved_pc)
3651 (h8300_pop_frame): Ditto.
3652 * blockframe.c (legacy_inside_entry_func)
3653 (legacy_frame_chain_valid): Ditto.
3654 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update call
3655 to deprecated_pc_in_call_dummy.
3656
3657 2004-06-09 Andrew Cagney <cagney@gnu.org>
3658
3659 * gdbarch.sh (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Do not
3660 provide a default value.
3661 (CONVERT_REGISTER_P): Default to generic_convert_register_p.
3662 * gdbarch.h, gdbarch.c: Re-generate.
3663 * arch-utils.c (generic_convert_register_p): Rename
3664 legacy_convert_register_p
3665 (legacy_register_to_value, legacy_value_to_register): Delete
3666 functions.
3667 * arch-utils.h (generic_convert_register_p): Rename
3668 legacy_convert_register_p.
3669 (legacy_register_to_value, legacy_value_to_register): Delete
3670 declarations.
3671
3672 * gdbarch.sh (DEPRECATED_REGISTER_CONVERT_TO_RAW)
3673 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL)
3674 (DEPRECATED_REGISTER_CONVERTIBLE): Delete.
3675 * gdbarch.h, gdbarch.c: Re-generate.
3676 * infcmd.c (default_print_registers_info): Simplify.
3677 * findvar.c (value_of_register): Simplify.
3678 * mi/mi-main.c (get_register): Simplify.
3679 * arch-utils.c (legacy_convert_register_p): Always return 0.
3680 (legacy_register_to_value, legacy_value_to_register): Always call
3681 internal_error.
3682
3683 * infptrace.c (child_xfer_memory) [CLEAR_INSN_CACHE]: Delete
3684 #ifdef CLEAR_INSN_CACHE code.
3685 * target.c (generic_mourn_inferior) [CLEAR_DEFERRED_STORES]:
3686 Delete #ifdef CLEAR_DEFERRED_STORES code.
3687
3688 * solib-svr4.c [HANDLE_SVR4_EXEC_EMULATORS]: Delete #ifdef code.
3689
3690 * config/ia64/tm-linux.h (TARGET_ELF64): Delete macro, Update
3691 copyright.
3692 * config/ia64/tm-aix.h (TARGET_ELF64): Ditto.
3693
3694 * config/mips/mipsv4.mh: Delete file.
3695
3696 * config/pa/tm-hppa64.h (HPREAD_ADJUST_STACK_ADDRESS): Delete
3697 unreferenced macro.
3698 (hpread_adjust_stack_address): Delete declaration.
3699
3700 2004-06-08 Andrew Cagney <cagney@gnu.org>
3701
3702 * infptrace.c [ATTACH_DETACH]: Remove #ifdef wrappers.
3703 (attach, detach): When neither PT_ATTACH / PT_DETACH nor
3704 PTRACE_ATTACH / PTRACE_DETACH available call error.
3705 (PT_ATTACH, PT_DETACH): Move definition to attach / detach.
3706 * infttrace.c (update_thread_state_after_attach, attach, detach):
3707 Remove #ifdef wrappers.
3708 * inftarg.c (child_attach, child_detach): Remove #ifdef wrappers.
3709 * gnu-nat.c [ATTACH_DETACH]: Remove #ifdef wrappers.
3710 * config/nm-bsd.h (ATTACH_DETACH): Delete.
3711 * config/nm-sysv4.h (ATTACH_DETACH): Delete.
3712 * config/nm-nbsd.h (ATTACH_DETACH): Delete.
3713 * config/nm-linux.h (ATTACH_DETACH): Delete.
3714 * config/rs6000/nm-rs6000.h (ATTACH_DETACH): Delete.
3715 * config/pa/nm-hppah.h (ATTACH_DETACH): Delete.
3716 * config/i386/nm-i386sco5.h (ATTACH_DETACH): Delete.
3717 * config/i386/nm-i386sco4.h (ATTACH_DETACH): Delete.
3718 * config/i386/nm-i386gnu.h (ATTACH_DETACH): Delete.
3719
3720 2004-06-08 Corinna Vinschen <vinschen@redhat.com>
3721
3722 * configure.in: Set $configdir to the right OS specific value.
3723 Use value when setting $tcldir and $tkdir.
3724 * configure: Regenerate.
3725
3726 2004-06-06 Paul Brook <paul@codesourcery.com>
3727
3728 * gdb/dwarf2-frame.c (decode_frame_entry_1): Decode version 3 CIE
3729 records.
3730
3731 2004-06-08 Paul N. Hilfinger <Hilfinger@gnat.com>
3732
3733 * ada-lang.c (lookup_symbol_in_language): New function to allow
3734 re-use of another language's symbol lookup code. (Placed here
3735 temporarily while Ada support is being integrated into the public
3736 tree).
3737 (restore_language): New auxiliary function for
3738 lookup_symbol_in_language.
3739 * ada-lang.h (lookup_symbol_in_language): Declare (Placed here
3740 temporarily while Ada support is being integrated into the public
3741 tree).
3742
3743 2004-06-08 Alexandre Oliva <aoliva@redhat.com>
3744
3745 * Makefile.in (check//%): New.
3746
3747 * mn10300-tdep.c (mn10300_extract_return_value): Rewrite.
3748 (mn10300_store_return_value): Rewrite.
3749 (mn10300_type_align): New.
3750 (mn10300_use_struct_convention): Rewrite.
3751 (mn10300_return_value): New, using all of the above.
3752 (mn10300_pop_frame_regular): Add saved_regs_size.
3753 (mn10300_gdbarch_init): Remove deprecated rewritten entry points.
3754
3755 * mn10300-tdep.c (mn10300_analyze_prologue): Don't compute saved
3756 regs if PC is on movm.
3757
3758 2004-06-07 Jim Blandy <jimb@redhat.com>
3759
3760 Add native Linux support for the PowerPC E500.
3761 * ppc-tdep.h (struct gdbarch_tdep): New member: 'ppc_gprs_pseudo_p'.
3762 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it to false on
3763 all architectures except the E500.
3764 * ppc-linux-nat.c: (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): New
3765 #definitions.
3766 (struct gdb_evrregset_t): New type.
3767 (have_ptrace_getsetevrregs): New variable.
3768 (get_spe_registers, read_spliced_spe_reg, fetch_spe_register,
3769 fetch_spe_registers): New functions.
3770 (fetch_register): Call fetch_spe_register as appropriate.
3771 Assert that we're only passed raw register numbers.
3772 (fetch_ppc_registers): Call fetch_spe_registers as appropriate.
3773 Don't fetch gprs if they're pseudoregisters.
3774 (set_spe_registers, write_spliced_spe_reg, store_spe_register,
3775 store_spe_registers): New functions.
3776 (store_register): Call store_spe_register as appropriate.
3777 Assert that we're only passed raw register numbers.
3778 (store_ppc_registers): Call store_spe_registers as appropriate.
3779 Don't store gprs if they're pseudoregisters.
3780
3781 2004-06-07 Jeff Johnston <jjohnstn@redhat.com>
3782
3783 * thread-db.c (thread_get_info_callback): Fill in the thread_info
3784 struct if one exists, even if we are dealing with a zombie thread.
3785
3786 2004-06-07 Andrew Cagney <cagney@gnu.org>
3787
3788 * target.h (PC_REQUIRES_RUN_BEFORE_USE): Delete definition.
3789 * config/pa/tm-hppa.h (DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE):
3790 Rename PC_REQUIRES_RUN_BEFORE_USE.
3791 * breakpoint.c (breakpoint_sals_to_pc): Update. Wrap reference in
3792 #ifdef.
3793
3794 2004-06-07 Randolph Chung <tausq@debian.org>
3795
3796 * hppa-tdep.c (hppa_frame_cache): Handle the cases when we start
3797 unwinding after sp has been saved to the stack but before the end
3798 of the prologue, and after the fp has been modified but before it has
3799 been saved to the stack.
3800 (hppa_frame_base_address, hppa_frame_base, hppa_frame_base_sniffer):
3801 Remove superfluous definitions.
3802 (hppa_gdbarch_init): Remove superfluous frame base sniffer.
3803
3804 2004-06-07 Guy Martin <gmsoft@gentoo.org>
3805
3806 Committed by Randolph Chung.
3807 * hppa-linux-nat.c: Include the correct version of the header file
3808 depending on the kernel version.
3809
3810 2004-06-06 Randolph Chung <tausq@debian.org>
3811
3812 * infrun.c (trap_expected_after_continue): Remove HP_OS_BUG workaround.
3813 (proceed, init_wait_for_inferior, handle_inferior_event): Likewise.
3814
3815 2004-06-06 Randolph Chung <tausq@debian.org>
3816
3817 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
3818 (hppa_hpux_skip_trampoline_code): Don't cache symbol values.
3819 * hppa-linux-tdep.c (hppa_linux_in_dyncall): Likewise.
3820 * hppa-tdep.c (hppa_symbol_address): New function definition.
3821 * hppa-tdep.h (hppa_symbol_address): New function declaration.
3822
3823 2004-06-06 Randolph Chung <tausq@debian.org>
3824
3825 * hppa-tdep.h (struct value): Forward declaration.
3826 (gdbarch_tdep): Define tdep find_global_pointer method.
3827 * hppa-tdep.c (hppa32_push_dummy_call): Find the global pointer
3828 associated with the function we are trying to call, and write it
3829 to the gp register.
3830 (hppa32_convert_from_funct_ptr_addr): New function.
3831 (hppa_find_global_pointer): New function.
3832 (hppa_gdbarch_init): Set default find_global_pointer method; set
3833 convert_from_func_ptr_addr method.
3834 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): New function.
3835 (hppa_linux_init_abi): Set find_global_pointer method.
3836 * Makefile.in (hppa-linux-tdep.o): Add value.h dependency.
3837
3838 2004-06-06 Randolph Chung <tausq@debian.org>
3839
3840 * gdbarch.sh (PUSH_DUMMY_CALL): Change CORE_ADDR func_addr argument
3841 to struct value *function.
3842 * gdbarch.c: Regenerate.
3843 * gdbarch.h: Likewise.
3844 * infcall.c (call_function_by_hand): Pass entire function value
3845 to push_dummy_call.
3846
3847 * Makefile.in (alpha-tdep.o, frv-tdep.o, ia64-tdep.o, mips-tdep.o)
3848 (ppc-sysv-tdep.o, rs6000-tdep.o): Update dependencies.
3849 * alpha-tdep.c (alpha_push_dummy_call): Update call signature.
3850 * amd64-tdep.c (amd64_push_dummy_call): Likewise.
3851 * arm-tdep.c (arm_push_dummy_call): Likewise.
3852 * avr-tdep.c (avr_push_dummy_call): Likewise.
3853 * cris-tdep.c (cris_push_dummy_call): Likewise.
3854 * d10v-tdep.c (d10v_push_dummy_call): Likewise.
3855 * frv-tdep.c (frv_push_dummy_call): Likewise.
3856 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
3857 * hppa-tdep.c (hppa32_push_dummy_call)
3858 (hppa64_push_dummy_call): Likewise.
3859 * i386-tdep.c (i386_push_dummy_call): Likewise.
3860 * ia64-tdep.c (ia64_push_dummy_call): Likewise.
3861 * m32r-tdep.c (m32r_push_dummy_call): Likewise.
3862 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
3863 * m68k-tdep.c (m68k_push_dummy_call): Likewise.
3864 * m88k-tdep.c (m88k_push_dummy_call): Likewise.
3865 * mips-tdep.c (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
3866 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Likewise.
3867 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
3868 (ppc64_sysv_abi_push_dummy_call): Likewise.
3869 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call)
3870 (ppc64_sysv_abi_push_dummy_call): Likewise.
3871 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
3872 * s390-tdep.c (s390_push_dummy_call): Likewise.
3873 * sh-tdep.c (sh_push_dummy_call_fpu)
3874 (sh_push_dummy_call_nofpu): Likewise.
3875 * sparc-tdep.c (sparc32_push_dummy_call): Likewise.
3876 * sparc64-tdep.c (sparc64_push_dummy_call): Likewise.
3877 * vax-tdep.c (vax_push_dummy_call): Likewise.
3878
3879 2004-06-04 Jim Blandy <jimb@redhat.com>
3880
3881 * ppc-linux-nat.c (fetch_register): Don't forget to pass the
3882 gdbarch argument to register_size.
3883
3884 * rs6000-tdep.c (rs6000_store_return_value): Use
3885 regcache_cooked_write_part instead of
3886 deprecated_write_register_bytes.
3887 (rs6000_gdbarch_init): Register it for gdbarch_store_return_value,
3888 not gdbarch_deprecated_store_return_value.
3889
3890 * ppc-linux-nat.c (store_register, fetch_register): Remove
3891 incorrect assertions. Simplify and generalize handling of
3892 transfers whose sizes are not multiples of, or less than, sizeof
3893 (PTRACE_XFER_TYPE).
3894
3895 2004-06-04 Jeff Johnston <jjohnstn@redhat.com>
3896
3897 * infrun.c (handle_inferior_event): Don't treat an invalid ptid
3898 as a new thread event.
3899 * thread-db.c (thread_get_info_callback): If the thread is a
3900 zombie, return TD_THR_ZOMBIE.
3901 (thread_from_lwp): If thread_get_info_callback returns
3902 TD_THR_ZOMBIE, check if the thread is still on the thread list
3903 and return a -1 ptid if not found.
3904 (thread_db_wait): If thread_from_lwp returns a -1 ptid, then
3905 change the status to TARGET_WAITKIND_SPURIOUS.
3906
3907 2004-06-03 Corinna Vinschen <vinschen@redhat.com>
3908
3909 * sh-tdep.c (sh3e_sh4_store_return_value): Correctly store
3910 double values in little endian mode.
3911
3912 2004-06-02 Albert Chin-A-Young <china@thewrittenword.com>
3913
3914 Committed by Andrew Cagney.
3915 * gdb/dictionary.c, gdb/gdbtypes.h: Remove trailing comma
3916 after last enum constant to avoid error from IBM C
3917 compiler.
3918
3919 2004-06-02 Jim Blandy <jimb@redhat.com>
3920
3921 * ppc-linux-nat.c (store_register, fetch_register): Rename 'mess'
3922 to 'message', and make it local to the lone block that uses it.
3923
3924 * ppc-linux-nat.c (store_register): Remove unused local 'offset'.
3925
3926 2004-06-02 Paul N. Hilfinger <hilfinger@gnat.com>
3927
3928 * ada-exp.y: Update copyright notice.
3929 Include block.h.
3930
3931 Replace REGNAME, LAST, INTERNAL_VARIABLE with
3932 SPECIAL_VARIABLE and unify the treatment of these cases.
3933
3934 (write_attribute_call0): Remove.
3935 (write_attribute_call1): Remove.
3936 (write_attribute_calln): Remove.
3937 (save_qualifier): Add missing semicolon.
3938
3939 (simple_exp,exp): Decomment (i.e., reactivate) code that was
3940 temporarily disabled to allow compilation with FSF head version.
3941
3942 (simple_exp syntax): Remove use of OP_ADA_ATTRIBUTE and
3943 use individual operators (OP_*) for all attributes.
3944 (exp syntax): Use write_int.
3945 Handle STRING literals with OP_STRING.
3946 (variable syntax): Add limit parameter to calls to
3947 write_object_renaming.
3948
3949 (temp_parse_space): New definition to hold entities that need
3950 only live until the next call to ada_parse.
3951 (string_to_operator): Rename fields of ada_opname_table entries.
3952
3953 (write_var_from_sym): Record block.
3954 (write_var_from_name): Minor reformatting.
3955 Make sure saved name is properly encoded in the case of multiple
3956 matches, and set its language to Ada.
3957 Update comment.
3958 Modify to indicate unresolved name as symbol in the UNRESOLVED
3959 namespace, allocated in temp_parse_space.
3960 (write_int): New function.
3961
3962 (write_object_renaming): Add max_depth parameter to limit
3963 chains of object renamings.
3964 Handle case where root of renaming expression is itself a renaming.
3965 Use temp_parse_space for temporary name buffer.
3966 Handle renamings to dereferenced pointers (___XEXA suffices).
3967
3968 (ada_parse, yyerror, string_to_operator,
3969 write_var_from_sym, write_var_from_name, write_attribute_call0,
3970 write_attribute_call1, write_attribute_calln,
3971 write_object_renaming): Protoize.
3972
3973 (_initialize_ada_exp): New function.
3974
3975 * ada-lang.c: Update copyright notice.
3976 General terminology change to conform to GNAT compiler usage:
3977 mangle => encode, demangle => decode
3978 Include gdb_obstack.h.
3979 Include gdb_regex.h
3980 Include frame.h
3981 Include hashtab.h
3982 Include completer.h
3983 Include gdb_stat.h
3984 Include block.h
3985 Include infcall.h
3986
3987 (ADA_RETAIN_DOTS): Make sure this is defined.
3988 (TRUNCATION_TOWARDS_ZERO): Define.
3989 (struct string_vector): Define.
3990 (unresolved_names): Remove definition.
3991 (xnew_string_vector): New function.
3992 (string_vector_append): New function.
3993 (extract_string): Make static.
3994 (ada_unqualified_name): New function.
3995 (add_angle_brackets): New function.
3996 (function_name_from_pc): New function.
3997 (place_on_stack): Rename to ensure_lval.
3998
3999 (ensure_lval): Renamed from place_on_stack.
4000 Make identity on lvals.
4001 Update comment.
4002 (is_nonfunction): New interface.
4003 Only symbols in LOC_CONST class can be enumerals.
4004 (fill_in_ada_prototype): Remove; now independent of language.
4005 (add_defn_to_vec): Add obstack and symtab arguments.
4006 Use obstack to hold collected definitions.
4007 (num_defns_collected): New function.
4008 (defns_collected): New function.
4009 (ada_resolve_subexp): Rename to resolve_subexp.
4010 (resolve_subexp): Renamed from ada_resolve_subexp.
4011 (ada_op_name): Return non-const result.
4012 (ada_decoded_op_name): Renamed from ada_op_name, now used for
4013 other purposes.
4014
4015 (to_fixed_array_type): Add declaration.
4016 (coerce_unspec_val_to_type): Remove offset parameter.
4017 (find_sal_from_funcs_and_line): New interface.
4018 (find_line_in_linetable): Ditto.
4019
4020 (all_sals_for_line): Rename to ada_sals_for_line and make
4021 global.
4022 Add new parameter. When set, do not ask the user to choose the
4023 instance, but use the first one found instead.
4024 Use given line number in returned sals.
4025 Fix comment.
4026 Skip the prologue if funfirstline is set.
4027 Correct for memory leak when 0 lines found.
4028
4029 (value_pos_atr): Use pos_atr.
4030 (pos_atr): New function.
4031 (standard_lookup): Add block parameter.
4032
4033 (makeTimeStart): Remove declaration and uses.
4034 (makeTimeStop): Remove declaration and uses.
4035
4036 (ada_completer_word_break_characters): Allow for VMS.
4037 (ADA_MAIN_PROGRAM_SYMBOL_NAME): Make into constant.
4038 (raise_sym_name): New constant.
4039 (raise_unhandled_sym_name): New constant.
4040 (raise_assert_sym_name): New constant.
4041 (process_raise_exception_name): New constant.
4042 (longest_exception_template): New constant.
4043 (warning_limit): New variable to limit warnings during expression
4044 evaluation.
4045 (warnings_issued): New variable to keep track of warnings issued.
4046 (known_runtime_file_name_patterns): New constant.
4047 (known_auxiliary_function_name_patterns): New constant.
4048 (symbol_list_obstack): New variable.
4049
4050 (field_name_match,is_suffix,is_suppressed_name,ada_encode,
4051 ada_decode,ada_match_name,encoded_ordered_before,equiv_types,
4052 lesseq_defined_than,is_nondebugging_type,is_name_suffix,wild_match,
4053 find_sal_from_funcs_and_line, ada_breakpoint_rewrite,
4054 ada_is_tagged_type, ada_is_parent_field, ada_is_wrapper_field,
4055 ada_variant_discrim_name, field_alignment, dynamic_template_type,
4056 ada_is_character_type, ada_is_aligner_type, ada_is_vax_floating_type):
4057 Replace use of deprecated STREQ and STREQN macros by calls to strncmp
4058 and strcmp.
4059
4060 (ada_get_field_index): New function.
4061 (lim_warning): New function.
4062 (ada_translate_error_message): New function.
4063 (MAX_OF_SIZE): New function.
4064 (MIN_OF_SIZE): New function.
4065 (UMAX_OF_SIZE): New function.
4066 (UMIN_OF_SIZE): New function.
4067 (discrete_type_high_bound): New function.
4068 (discrete_type_low_bound): New function.
4069 (base_type): New function.
4070 (do_command): Remove.
4071
4072 (ada_update_initial_language): Use language_ada, not language_unknown.
4073 (ada_encode): Renamed from ada_mangle.
4074 Obey ADA_RETAIN_DOTS.
4075 (ada_decode): Renamed from ada_demangle.
4076 Update coding conventions.
4077 (decoded_names_store): New hash table.
4078 (ada_decode_symbol): New function.
4079 (ada_la_decode): New function.
4080
4081 (modify_general_field): Correct computations of offset and bit
4082 position.
4083 (desc_base_type): Handle ref types, too.
4084 (ada_is_direct_array_type): New function.
4085
4086 (ada_is_simple_array): Rename to ada_is_simple_array_type.
4087 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
4088 (ada_is_bogus_array_descriptor,ada_type_of_array,
4089 ada_coerce_to_simple_array_ptr,ada_coerce_to_simple_array,
4090 ada_type_match,convert_actual,ada_evaluate_subexp): Use renamed
4091 ada_is_array_descriptor_type.
4092
4093 (ada_coerce_to_simple_array_type): Fix incorrect value freeing.
4094 (ada_is_packed_array_type): Handle pointers or
4095 references to packed arrays as well.
4096 (packed_array_type): Uncomment use of TYPE_FLAG_FIXED_INSTANCE.
4097 (decode_packed_array_type): Search for the packed array type
4098 symbol in the currently selected block and associated
4099 superblocks too.
4100 Use lookup_symbol again.
4101
4102 (decode_packed_array): Handle pointers and references.
4103 Update call to coerce_unspec_val_to_type.
4104 (decode_packed_array_type,value_subscript_packed): Limit warnings.
4105 (ada_value_primitive_packed_val): Improve comment.
4106
4107 (ada_index_type): Substitute int type for "undefined".
4108 (ada_index_type,ada_array_bound_from_type,ada_array_bound,
4109 ada_array_langth, ada_is_string_type): Use renamed
4110 ada_is_simple_array_type.
4111 (empty_array): New function.
4112
4113 (ada_resolve): Rename to resolve.
4114 (resolve): Make static.
4115 Call renamed resolve_subexp.
4116 Update comment.
4117 (ada_resolve_subexp): Rename to resolve_subexp.
4118 (resolve_subexp): Update comment.
4119 Decomment disabled code.
4120 Add LOC_COMPUTED* cases.
4121 Modify to use temporary struct symbols (marked as being in
4122 UNDEF_NAMESPACE) to indicate unresolved names, instead of
4123 OP_UNRESOLVED_VALUE.
4124 Remove OP_ATTRIBUTE; use individual opcodes for attributes.
4125 Add OP_STRING case.
4126 Remove OP_ARRAY.
4127 Use SYMBOL_PRINT_NAME instead of ada_demangle.
4128 Use new ada_lookup_symbol_list interface.
4129 Use new ada_resolve_function interface.
4130 Remove OP_TYPE case.
4131
4132 (ada_args_match): Idiot proof against null actuals.
4133 Use intermediate variables to clarify.
4134 (ada_resolve_function): Update comment and interface.
4135 (mangled_ordered_before): Rename to encoded_ordered_before and
4136 update comment.
4137 (sort_choices): Update comment and interface.
4138 Use SYMBOL_LINKAGE_NAME in place of SYMBOL_NAME.
4139 (user_select_syms): New interface.
4140 Use new sort_choices interface.
4141 Use SYMBOL_PRINT_NAME rather than SYMBOL_SOURCE_NAME.
4142 (possible_user_operator_p): Idiot-proof against null values.
4143 (ada_simple_renamed_entity): Don't make cleanup; rely on
4144 caller to free result string.
4145 Remove const from return type.
4146 (make_array_descriptor): Rename uses of place_on_stack to
4147 ensure_lval.
4148 Make sure that arrays are on stack.
4149
4150 (HASH_SIZE): Define.
4151 (struct cache_entry): Define.
4152 (cache_space): Define.
4153 (cache): Define.
4154 (clear_ada_sym_cache): New function.
4155 (find_entry): New function.
4156 (lookup_cached_symbol): New function.
4157 (defn_vector_size): Define.
4158 (cache_symbol): New function.
4159 (defn_symbols): Remove.
4160
4161 (standard_lookup): Use lookup_symbol_in_language to get effect of
4162 C lookup.
4163 Cache results.
4164
4165 (symbol_completion_match): New function.
4166 (symbol_completion_add): New function.
4167 (ada_make_symbol_completion_list): New function.
4168
4169 (ada_lookup_partial_symbol,ada_lookup_simple_minsym,
4170 add_symbols_from_enclosing_procs,remove_extra_symbols): Replace
4171 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
4172 (symtab_for_sym): Handle LOC_COMPUTED, LOC_COMPUTED_ARG.
4173
4174 (ada_lookup_simple_minsym): New function.
4175 (ada_lookup_minimal_symbol): Use ada_lookup_simple_minsym.
4176
4177 (add_symbols_from_enclosing_procs): New interface.
4178 Conditionalize more helpfully.
4179 Don't bother if program isn't running.
4180 Use new interface to get_frame_block.
4181 Limit number of levels searched with MAX_LEXICAL_LEVELS, just in case.
4182
4183 (remove_extra_symbols): New interface.
4184 (xget_renaming_scope): New function.
4185 (is_package_name): New function.
4186 (renaming_is_visible): New function.
4187 (remove_out_of_scope_renamings): New function.
4188
4189 (ada_lookup_symbol_list): New interface.
4190 Properly reinitialize the symbol list obstack.
4191 Don't call add_symbols_from_enclosing_procs if we start from a
4192 static or global block.
4193 Use new interfaces to ada_add_block_symbols, add_defn_to_vec,
4194 add_symbols_from_enclosing_procs.
4195 Add symtab data to cached entries.
4196 Handle symbols prefixed with
4197 "standard__" specially; strip prefix and don't look in local symbols.
4198 Do not include out of scope renaming symbols in list of
4199 symbols returned.
4200 Add const to block parameter.
4201 Move check for non-local, non-global symbols earlier.
4202 Remove timing stuff.
4203 (ada_lookup_symbol): New interface.
4204 Find symtab as well.
4205 (ada_lookup_symbol_nonlocal): New function.
4206
4207 (is_name_suffix): Enhance suffix detection to recognize
4208 an optional "__[:digit:]+" before any "\.[:digit:]+" suffix.
4209 (is_dot_digits_suffix): New function.
4210 (wild_match): Ignore ".[:digit:]*" suffixes during matches.
4211
4212 (ada_add_block_symbols): New interface. Use obstack to return results
4213 in a vector of struct ada_symbol_infos. Add symtab argument.
4214 Use new interface to add_defn_to_vec.
4215 Remove calls to fill_in_ada_prototype.
4216 Use BLOCK_BUCKETS, BLOCK_BUCKET.
4217
4218 (ada_finish_decode_line_1): Add const qualification to local to fix
4219 warning.
4220 Start looking in static block for functions to avoid attempts
4221 to search frame chain for up-level variables.
4222 Adapt to new ada_sals_for_line interface.
4223 Use new interfaces to ada_lookup_symbol_list and user_select_syms.
4224 Handle quoting of the function name inside the spec string.
4225 Skip prologue when funfirstline is set and update the
4226 function documentation to that effect.
4227
4228 (debug_print_lines, debug_print_block, debug_print_blocks,
4229 debug_print_symtab): Remove.
4230
4231 (ada_main_name): New function.
4232 (ada_exception_breakpoint_type): New function.
4233 (is_known_support_routine): New function.
4234 (ada_find_printable_frame): Renamed from find_printable_frame and made
4235 global.
4236 Remove level parameter.
4237 Use new interface to select_frame.
4238
4239 (begin_command): Remove.
4240 (ada_adjust_exception_stop): New function.
4241 (ada_print_exception_stop): New function.
4242 (exception_name_from_cond): New function.
4243 (ada_report_exception_break): Replace disabled code with
4244 conditionalization on GNAT_GDB.
4245 Get the exception name from the condition string.
4246 Remove and move functionality into new functions
4247 ada_print_exception_breakpoint_task and
4248 ada_print_exception_breakpoint_nontask.
4249 (error_breakpoint_runtime_sym_not_found): New function.
4250 (is_runtime_sym_defined): New function.
4251 (ada_breakpoint_rewrite): Uncomment suppressed code.
4252 Use symbolic error-message and runtime-symbol names.
4253 Surround runtime symbol names in quotes.
4254 Allow non-specific breakpoints on exceptions and assertions before
4255 program starts.
4256
4257 (ada_is_tagged_type): Add parameter.
4258 (ada_is_tag_type): New function.
4259 (ada_tag_type): Use new ada_lookup_struct_elt_type interface.
4260 (ada_variant_discrim_type): Ditto.
4261 (value_tag_from_contents_and_address): New function.
4262 (type_from_tag): New function.
4263 (struct tag_args): New structure used to communicate with
4264 ada_tag_name_1.
4265 (ada_tag_name_1): New function.
4266 (ada_tag_name): New function.
4267
4268 (ada_scan_number): Update comment.
4269 (find_struct_field): New function.
4270 (ada_search_struct_field): Make static.
4271 (ada_value_struct_elt): New version that returns references when
4272 given pointers or references to structs.
4273 (ada_lookup_struct_elt_type): Add 'refok' parameter.
4274 (ada_which_variant_applies): Use new ada_lookup_struct_elt_type
4275 interface.
4276 (ada_value_ind): Use new ada_to_fixed_value interface.
4277 (ada_coerce_ref): Ditto.
4278 (field_offset): Remove.
4279
4280 (ada_find_any_symbol): New function, extracted from ada_find_any_type.
4281 (ada_find_renaming_symbol): New function.
4282 (ada_prefer_type): Prefer named types over unnamed ones.
4283 (variant_field_index): New function.
4284 (contains_variant_part): Removed: subsumed by variant_field_index.
4285 (ada_template_to_fixed_record_type): New function, mostly from
4286 template_to_fixed_record_type.
4287 (template_to_fixed_record_type):
4288 Do not scan the type fields beyond the last one; prevents a
4289 potential SEGV.
4290 Handle case where variant field is listed BEFORE discriminant it
4291 depends on.
4292 Fix calculation of record length when bit length is
4293 not evenly divisible by char length.
4294 Move code to ada_template_to_fixed_record_type and call it.
4295
4296 (template_to_static_fixed_type): Revise comment.
4297 Modify to work on ordinary record types as well as templates,
4298 so as to handle fields that use ___XVE or ___XVU encodings.
4299 (to_record_with_fixed_variant_part): Fill out comment.
4300 Initialize C++ stuff in right type.
4301 Allow case where DVAL is null.
4302 Handle case where variant field is not last.
4303 Fix typo concerning record length.
4304 (to_fixed_record_type): Decomment disabled code.
4305 (to_fixed_record_type): Use variant_field_index instead of
4306 contains_variant_part.
4307 (to_fixed_variant_branch_type): Ditto.
4308 (to_fixed_array_type): Decomment disabled code.
4309 (ada_to_fixed_type): Convert tagged types to the specific type.
4310 Deactivate the size-check for array types in order to avoid
4311 some false size alarms.
4312 (to_static_fixed_type): Decomment disabled code.
4313 Modify to call template_to_static_fixed_type
4314 on ordinary structs, not just ___XVE- and ___XVU-encoded fields.
4315 (ada_to_fixed_value_create): Renamed version of old ada_to_fixed_value.
4316 Remove valaddr argument, as it is never really used.
4317 (ada_to_fixed_value): Change interface to act on single struct value*
4318 operand.
4319 (adjust_pc_past_prologue): New function.
4320 (ada_attribute_name): Modify to take enum exp_opcode argument.
4321
4322 (ada_enum_name): Recognize new homonym-distinguishing convention.
4323 Adjust local variable's type to remove compiler warning.
4324 Fix a small problem in the part that unqualifies the enumeration name.
4325 (ada_value_binop): New function.
4326 (ada_value_equal): New function.
4327
4328 (ada_evaluate_subexp): Use new ada_lookup_struct_elt_type interface.
4329 Don't give error message when not doing normal evaluation
4330 and a tagged type doesn't seem to contain a structure member.
4331 Give error message for packed arrays.
4332 For indexing arrays, handle pointers to packed arrays correctly.
4333 Handle case of 'first and 'last attributes of bare integral type
4334 without encoded subtype info.
4335 Remove some unnecessary casts.
4336 Fix uninitialized value of type in computing 'first, 'last, or 'length
4337 of array object.
4338 Add BINOP_EQUAL and BINOP_NOTEQUAL cases.
4339 Remove binop_user_defined_p tests and value_x_binop and value_x_unop
4340 calls.
4341 Attributes are now exp_opcode values.
4342 Correct treatment of 'modulus.
4343 Better error message for taking 'length of wrong kind of type;
4344 improve comment.
4345 Change EVAL_NORMAL to noside for consistency.
4346 Use ada_value_binop for DIV, MOD, REM.
4347 Make special case out of array of length 0, since an argument
4348 of 0 upsets some platforms' malloc.
4349 Use OP_STRING instead of OP_ARRAY.
4350 For slice, add check that we have an array type before extracting
4351 a slice out of it. Avoids a SEGV.
4352 When evaluating an array slice, if the array type is a reference to
4353 an aligner type, then replace the aligner type by the actual type.
4354 Decomment disabled code.
4355 Remove some dead code.
4356 Use temporary struct symbols (marked as being in UNDEF_NAMESPACE)
4357 to indicate unresolved names, instead of OP_UNRESOLVED_VALUE.
4358 Rename BINOP_MBR to BINOP_IN_BOUNDS, TERNOP_MBR to TERNOP_IN_RANGE,
4359 and UNOP_MBR to UNOP_IN_RANGE.
4360 If an array type has a parallel ___XVE type, then use it.
4361 Turn arrays into pointers for lvalue arrays.
4362 Change TERNOP_SLICE code to work even when bounds are unknown, ignoring
4363 bounds error and handle 0-length slices.
4364 Use lim_warning.
4365 When selecting fields, apply ada_to_fixed_value (because the fields
4366 might have ___XVU or ___XVE encodings even if not dynamic.)
4367 Use ada_to_fixed_value_create and new ada_to_fixed_value interface.
4368 (ada_is_system_address_type): New function.
4369
4370 (get_var_value): Use new interface to ada_lookup_symbol_list.
4371 (get_int_var_value): New interface.
4372 (to_fixed_range_type): Allow unknown bound, with warning.
4373 (ada_is_modular_type): Decomment disabled code.
4374 (ADA_OPERATORS): New definition.
4375 (ada_operator_length): New function.
4376 (ada_expr_op_name): New function.
4377 (ada_forward_operator_length): New function.
4378 (ada_dump_subexp_body): New function.
4379 (ada_print_subexp): New function.
4380 (ada_exp_descriptor): New constant.
4381 (ada_op_print_tab): Add 'size. Remove FIXMEs.
4382 (ada_language_defn): Add ada_exp_descriptor entry.
4383 Change ada_parse => parse.
4384 Add post-parser entry.
4385 Use ada-specific non-local symbol lookup.
4386 Don't use C-style arrays.
4387 String lower-bound is 1.
4388 Decomment disabled code.
4389 (parse): New function.
4390 New fields ada_translate_error_message, ada_lookup_symbol,
4391 ada_lookup_minimal_symbol.
4392
4393 * ada-lang.h: Update copyright dates.
4394 Replace the mangle/demangle terminology throughout by the
4395 more appropriate encode/decode one.
4396 Include breakpoint.h.
4397 Forward declare struct partial_symbol, struct block.
4398 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Define.
4399 (EXTRACT_ADDRESS): Remove.
4400 (EXTRACT_INT): Remove.
4401 (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Define.
4402 (MAX_ENCLOSING_FRAME_LEVELS): Define.
4403 (MAX_RENAMING_CHAIN_LENGTH): Define.
4404 (struct ada_opname_map): mangled => decoded, demangled=>encoded.
4405
4406 (enum task_states): Remove.
4407 ada_task_states: Remove.
4408 (fat_string): Remove.
4409 (struct entry_call): Remove.
4410 (struct task_fields): Remove.
4411 (struct task_entry): Remove.
4412
4413 (struct ada_symbol_info): Define.
4414 (enum ada_attribute): Remove.
4415 (enum ada_operator): Define.
4416
4417 (ada_get_field_index): Declare.
4418 (ada_coerce_to_simple_array): Rename to ada_coerce_to_simple_array_ptr.
4419 (ada_is_simple_array): Rename to ada_is_simple_array_type.
4420 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
4421 (ada_lookup_symbol_list): New interface.
4422 (ada_decode_symbol): Declare.
4423 (ada_decode): Declare.
4424 (ada_lookup_symbol): New interface.
4425 (ada_update_initial_language): Declare.
4426 (ada_lookup_simple_minsym): Declare.
4427 (user_select_syms): New interface.
4428 (ada_sals_for_line): Declare.
4429 (ada_is_tagged_type): New interface.
4430 (ada_tag_name): Declare.
4431 (ada_lookup_struct_elt_type): Remove declaration.
4432 (ada_search_struct_field): Remove declaration.
4433 (ada_attribute_name): New interface.
4434 (ada_is_system_address_type): Declare.
4435 (ada_to_fixed_value): Remove declaration.
4436 (ada_template_to_fixed_record_type_1): Declare.
4437 (get_int_var_value): New interface.
4438 (ada_find_any_symbol): Declare.
4439 (ada_find_renaming_symbol): Declare.
4440 (ada_mangle): Rename to ada_encode.
4441 (ada_simple_renamed_entity): Remove const.
4442 (ada_main_name): Declare.
4443 (get_current_task): Rename to ada_get_current_task.
4444 (get_entry_number): Remove declaration.
4445 (ada_report_exception_break): Remove declaration.
4446 (ada_print_exception_breakpoint_nontask): Declare.
4447 (ada_print_exception_breakpoint_task): Declare.
4448 (ada_find_printable_frame): Declare.
4449
4450 * ada-lex.l: Update copyright notices.
4451 Use xmalloc and xfree instead of malloc and free.
4452 Use new interface to name_lookup.
4453 Use new interface to
4454 ada_mangle=>ada_encode.
4455 Redo handling of '$...' variable to parallel current treatment
4456 in c-exp.y.
4457 (resize_tempbuf, canonicalizeNumeral, is_digit_in_base,
4458 digit_to_int, strtoulst, processInt, processReal, processId,
4459 block_lookup, name_lookup, find_dot_all, subseqMatch, processAttribute,
4460 yywrap): Protoize.
4461
4462 (processInt): Use cast to remove harmless warning.
4463 (processReal): Modify to get rid of compiler warning on scan formats.
4464
4465 (processId): Replace xmalloc with obstack_alloc for name and remove
4466 call to ada_name_string_cleanup.
4467 Remove obsolete disabled code.
4468 (name_lookup): Ditto.
4469 New interface.
4470 Use obsavestring on temp_parse_space instead of savestring
4471 on name, and remove call to ada_name_string_cleanup.
4472 Free string returned from ada_simple_renamed_entity.
4473 Use new interface to ada_lookup_symbol_list.
4474 Decomment disabled code.
4475 Treat LOC_COMPUTED and LOC_COMPUTED_ARG symbols as variables,
4476 not types.
4477 When a type name lookup succeeds as a result of
4478 lookup_primitive_typename, check for regular type entry that has not
4479 yet been read in.
4480 Limit length of chain of renamed symbols we are willing to follow.
4481 Do not break names beginning with "standard__" into segments.
4482 (block_lookup): Use new interface to ada_lookup_symbol_list.
4483
4484 * ada-typeprint.c: Update copyright notice.
4485 (demangled_type_name): Rename to decoded_type_name.
4486 (ada_typedef_print): Use SYMBOL_PRINT_NAME.
4487 (print_range_bound): Correct handling of negative
4488 bounds that make the index type looked unsigned under STABS.
4489 (print_dynamic_range_bound): Use new interface to get_int_var_value.
4490 (print_range_type_named): Use the builtin int type if no type
4491 corresponding to the given type name could be found.
4492 (print_array_type): ada_is_simple_array => ada_is_simple_array_type.
4493 Add some bullet-proofing.
4494 (print_variant_clauses): Allow for variant branches with ___XVU
4495 encodings that are not dynamic fields.
4496 Use new interface to ada_is_tagged_type.
4497 (print_record_type): Allow for fields with ___XVE encodings that
4498 are not dynamic fields.
4499 Use new interface to ada_is_tagged_type.
4500 (ada_print_type): ada_is_array_descriptor =>
4501 ada_is_array_descriptor_type.
4502
4503 * ada-valprint.c: Update copyright notice.
4504 Include gdb_string.h
4505 Include infcall.h
4506 (ui_memcpy): New function.
4507 (ada_print_floating): New function.
4508 (ada_print_str): Order arguments correctly.
4509 Correct handling of empty arrays and arrays of 0-length items.
4510 ada_is_array_descriptor => ada_is_array_descriptor_type
4511 Print values of type System.Address in hexadecimal format.
4512 Use ada_print_floating to print floating-point numbers in Ada format.
4513 Print class tag values with type names.
4514 No longer print the address of reference values. Avoids
4515 a potential confusion.
4516 (ada_value_print): Stop printing the object type for reference
4517 values, but preserve that behavior for access types. Avoids
4518 a potential confusion.
4519 Simplify one conditional expression, as the first part is now
4520 necessarily true.
4521 ada_is_array_descriptor => ada_is_array_descriptor_type
4522 Add check for arrays for null records, and print them by hand.
4523
4524 2004-06-01 Jim Blandy <jimb@redhat.com>
4525
4526 * ppc-tdep.h: Delete unused 'regoff' member.
4527 * rs6000-tdep.c (rs6000_gdbarch_init): Don't initialize it.
4528
4529 2004-06-01 Michael Chastain <mec.gnu@mindspring.com>
4530
4531 Fix PR symtab/1661.
4532 * hpread.c (hpread_pxdb_needed): Call memset after alloca.
4533 (hpread_read_struct_type): Likewise.
4534
4535 2004-06-01 Andrew Cagney <cagney@gnu.org>
4536
4537 * mi/mi-cmd-env.c (env_execute_cli_command): Use xstrprintf
4538 instead of xasprintf.
4539 * mi/mi-main.c (mi_error_last_message, mi_cmd_exec_interrupt)
4540 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
4541 (mi_cmd_data_list_register_names)
4542 (mi_cmd_data_list_changed_registers)
4543 (mi_cmd_data_list_register_values)
4544 (get_register, mi_cmd_data_write_register_values)
4545 (mi_cmd_data_write_register_values)
4546 (mi_cmd_data_assign, mi_cmd_data_evaluate_expression)
4547 (mi_cmd_target_download, mi_cmd_target_select)
4548 (mi_cmd_data_read_memory, mi_cmd_data_write_memory)
4549 (mi_execute_cli_command, mi_execute_async_cli_command)
4550 (mi_execute_async_cli_command): Ditto.
4551 * mi/mi-interp.c (mi_cmd_interpreter_exec) Ditto.
4552 * mi/mi-cmd-var.c (mi_cmd_var_create): Ditto.
4553
4554 * mi/mi-cmds.h (mi_error_last_message): Delete declaration.
4555 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call
4556 error_last_message instead of mi_error_last_message.
4557 * mi/mi-main.c (mi_error_last_message): Delete function.
4558
4559 * mi/mi-main.c (mi_cmd_data_read_memory): Add missing return for
4560 "invalid number of columns" error. Delete redundant "out of
4561 memory" check.
4562
4563 2004-05-31 Mark Kettenis <kettenis@gnu.org>
4564
4565 * i386bsd-nat.c: Don't include <sys/procfs.h>.
4566 (gregset_t, fpregset_t): Remove typedefs.
4567 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Remove macros.
4568 (REG_OFFSET): Rename argument.
4569 (i386bsd_r_reg_offset): Rename from reg_offset.
4570 (REG_ADDR): Remove macro.
4571 (cannot_fetch_register, supply_gregset, fill_gregset): Remove
4572 functions.
4573 (i386bsd_supply_gregset, i386bsd_collect_gregset): New functions.
4574 (fetch_inferior_registers): Use `struct reg' and `struct fpreg'
4575 instead of gregset_t and fpregset_t. Use i386bsd_supply_gregset
4576 instead of supply_gregset.
4577 (store_inferior_registers): Use `struct reg' and `struct fpreg'
4578 instead of gregset_t and fpregset_t. Use i386bsd_collect_gregset
4579 instead of fill_gregset.
4580 (register_u_addr): Use i386_r_reg_offset instead of REG_ADDR.
4581
4582 * i386bsd-nat.c: Don't include "gregset.h".
4583 (supply_gregset, fill_gregset): Make static.
4584 (supply_fpregset, fill_fpregset): Remove.
4585 * Makefile.in (i386bsd-nat.o): Update dependencies.
4586
4587 2004-05-30 Mark Kettenis <kettenis@gnu.org>
4588
4589 * fbsd-proc.c: Include "regcache.h", "regset.h" and
4590 "gdb_assert.h". Con't include "gregset.h".
4591 (fbsd_make_corefile_notes): Use regset-based core file support
4592 instead off fill_gregset and fill_fpregset.
4593 * Makefile.in (fbsd-proc.o): Update dependencies.
4594
4595 * m88k-tdep.c (m88k_analyze_prologue): Fix handling of branch
4596 instructions.
4597 (m88k_frame_prev_register): Simplify code a bit.
4598
4599 * amd64-tdep.c (amd64_supply_fpregset): Adjust comment.
4600 (amd64_collect_fpregset): New function.
4601 (amd64_regset_from_core_section): Use amd64_collect_fpregset.
4602
4603 * hppa-tdep.h (hppa_regnum): Add HPPA_R31_REGNUM.
4604
4605 * i386-tdep.c (i386_supply_gregset): Adjust comment.
4606 (i386_collect_gregset): New function.
4607 (i386_supply_fpregset): Adjust comment.
4608 (i386_collect_fpregset): New function.
4609 (i386_regset_from_core_section): Use i386_collect_gregset and
4610 i386_collect_fpregset.
4611
4612 * hppa-tdep.c (hppa_frame_prev_register_helper): Reimplement to
4613 handle VALUEP being null.
4614
4615 * regset.h (collect_regset_ftype): Unconstify fourth argument.
4616
4617 2004-05-29 Mark Kettenis <kettenis@gnu.org>
4618
4619 * MAINTAINERS: Undelete m88k. Add myself as maintainer.
4620
4621 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Adjust for new
4622 assembler in OpenBSD 3.5-current.
4623 (amd64obsd_sigcontext_addr): Likewise.
4624
4625 2004-05-28 Jim Blandy <jimb@redhat.com>
4626
4627 * rs6000-tdep.c: Use the modern gdbarch methods for handling the
4628 register set, so our regcache isn't declared "legacy" and our E500
4629 pseudoregister read and write functions aren't ignored.
4630 (rs6000_register_byte, rs6000_register_raw_size,
4631 rs6000_register_virtual_type, rs6000_register_convertible,
4632 rs6000_register_convert_to_virtual,
4633 rs6000_register_convert_to_raw): Deleted.
4634 (rs6000_register_type, rs6000_convert_register_p,
4635 rs6000_register_to_value, rs6000_value_to_register): New
4636 functions.
4637 (rs6000_gdbarch_init): Don't register
4638 gdbarch_deprecated_register_size,
4639 gdbarch_deprecated_register_bytes,
4640 gdbarch_deprecated_register_byte,
4641 gdbarch_deprecated_register_raw_size,
4642 gdbarch_deprecated_register_virtual_type,
4643 gdbarch_deprecated_register_convertible,
4644 gdbarch_deprecated_register_convert_to_virtual, or
4645 gdbarch_deprecated_register_convert_to_raw methods. Instead,
4646 register gdbarch_register_type, gdbarch_convert_register_p,
4647 gdbarch_register_to_value, and gdbarch_value_to_register methods.
4648
4649 2004-05-26 Jim Blandy <jimb@redhat.com>
4650
4651 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): Deleted.
4652 (rs6000_stab_reg_to_regnum, rs6000_dwarf2_reg_to_regnum): New
4653 functions, updated to match the register numberings used in GCC.
4654 (rs6000_gdbarch_init): Register rs6000_stab_reg_to_regnum and
4655 rs6000_dwarf2_reg_to_regnum as register number conversions
4656 functions for STABS and Dwarf2.
4657
4658 2004-05-26 Randolph Chung <tausq@debian.org>
4659
4660 * infttrace.h (target_waitkind): Forward declare type instead of pulling
4661 in header file.
4662
4663 2004-05-25 Joel Brobecker <brobecker@gnat.com>
4664
4665 * NEWS: Document new "start" command.
4666
4667 2004-05-25 Randolph Chung <tausq@debian.org>
4668
4669 * hppa-linux-tdep.c (hppa_linux_init_abi): sizeof(long double) == 8 on
4670 hppa-linux.
4671
4672 2004-05-25 Randolph Chung <tausq@debian.org>
4673
4674 * hppa-hpux-tdep.c (offsetof): Define.
4675 (hppa_hpux_pc_in_sigtramp, hppa32_hpux_frame_saved_pc_in_sigtramp)
4676 (hppa32_hpux_frame_base_before_sigtramp)
4677 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
4678 (hppa64_hpux_frame_saved_pc_in_sigtramp)
4679 (hppa64_hpux_frame_base_before_sigtramp)
4680 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): Remove unused
4681 functions.
4682 (struct hppa_hpux_sigtramp_unwind_cache, hppa_hpux_tramp_reg)
4683 (hppa_hpux_sigtramp_frame_unwind_cache)
4684 (hppa_hpux_sigtramp_frame_this_id)
4685 (hppa_hpux_sigtramp_frame_prev_register)
4686 (hppa_hpux_sigtramp_frame_unwind)
4687 (hppa_hpux_sigtramp_unwind_sniffer): New signal trampoline unwinder.
4688 (hppa_hpux_init_abi): Register sigtramp unwinder.
4689 * Makefile.in (hppa-hpux-tdep.o): Update dependencies.
4690
4691 2004-05-25 Randolph Chung <tausq@debian.org>
4692
4693 * hppa-tdep.c (hppa_fallback_frame_cache): Handle stack adjustment,
4694 and multiple stack unwinds.
4695 (hppa_stub_unwind_sniffer): Handle unwind from pc == 0.
4696
4697 2004-05-25 Andrew Cagney <cagney@gnu.org>
4698
4699 * symfile.h (symbol_file_add_from_memory): Delete declaration.
4700 * symfile-mem.h: Delete file.
4701 * symfile-mem.c: Do not include "symfile-mem.h".
4702 (symbol_file_add_from_memory): Make static. Use "struct bfd" and
4703 "struct bfd_section". When an error do not bother returning NULL.
4704 (add_symbol_file_from_memory_command): Use "struct bfd" and
4705 "struct bfd_section".
4706 * Makefile.in (symfile_mem_h): Delete.
4707 (symfile-mem.o): Update dependencies.
4708
4709 2004-05-25 Nick Roberts <nickrob@gnu.org>
4710
4711 * gdb-mi.el: New file.
4712
4713 2004-05-25 Andrew Cagney <cagney@gnu.org>
4714
4715 * inftarg.c: Include "observer.h".
4716 (child_attach, child_create_inferior): Notify inferior_created.
4717 * corelow.c: Include "observer.h".
4718 (core_open): Notify inferior_created.
4719 * Makefile.in (inftarg.o, corelow.o): Update dependencies.
4720
4721 2004-05-25 Andrew Cagney <cagney@gnu.org>
4722
4723 * target.h (struct target_ops): Add from_tty to
4724 to_create_inferior.
4725 (target_create_inferior, find_default_create_inferior): Update.
4726 * infcmd.c (run_command): Update.
4727 * wince.c (child_create_inferior): Update.
4728 * win32-nat.c (child_create_inferior): Update.
4729 * uw-thread.c (uw_thread_create_inferior): Update.
4730 * thread-db.c (thread_db_create_inferior): Update.
4731 * target.c (debug_to_create_inferior)
4732 (find_default_create_inferior): Update.
4733 (maybe_kill_then_create_inferior): Update.
4734 * sol-thread.c (sol_thread_create_inferior): Update.
4735 * remote.c (extended_remote_async_create_inferior)
4736 (extended_remote_create_inferior): Update.
4737 * remote-vx.c (vx_create_inferior): Update.
4738 * remote-st.c (st2000_create_inferior): Update.
4739 * remote-sim.c (gdbsim_create_inferior): Update.
4740 * remote-sds.c (sds_create_inferior): Update.
4741 * remote-rdp.c (remote_rdp_create_inferior): Update.
4742 * remote-rdi.c (arm_rdi_create_inferior): Update.
4743 * remote-m32r-sdi.c (m32r_create_inferior): Update.
4744 * remote-e7000.c (e7000_create_inferior): Update.
4745 * procfs.c (procfs_create_inferior): Update.
4746 * ocd.c (ocd_create_inferior): Update.
4747 * ocd.h (ocd_create_inferior): Update.
4748 * nto-procfs.c (procfs_create_inferior): Update.
4749 * monitor.c (monitor_create_inferior): Update.
4750 * lin-lwp.c (lin_lwp_create_inferior): Update.
4751 * inftarg.c (child_create_inferior): Update.
4752 * hpux-thread.c (hpux_thread_create_inferior): Update.
4753 * gnu-nat.c (gnu_create_inferior): Update.
4754
4755 2004-05-25 Andrew Cagney <cagney@gnu.com>
4756
4757 * MAINTAINERS: Update e-mail address.
4758
4759 2004-05-24 Randolph Chung <tausq@debian.org>
4760
4761 * thread.c (info_threads_command, thread_apply_all_command)
4762 (thread_apply_command, thread_command, do_captured_thread_select):
4763 Remove HPUXHPPA-specific code.
4764
4765 2004-05-24 Randolph Chung <tausq@debian.org>
4766
4767 * hppa-tdep.c (SR4EXPORT_LDIL_OFFSET, SR4EXPORT_LDO_OFFSET): Remove
4768 unused symbols.
4769 * hppa-tdep.h (HPPA_INSTRUCTION_SIZE): Remove, since there are no more
4770 references.
4771
4772 2004-05-24 Joel Brobecker <brobecker@gnat.com>
4773
4774 * infcmd.c (kill_if_already_running): New function, extracted
4775 from run_command().
4776 (run_command): Replace extracted code by call to
4777 kill_if_already_running().
4778 (start_command): New function.
4779 (_initialize_infcmd): Add "start" command.
4780
4781 2004-05-24 Mark Kettenis <kettenis@gnu.org>
4782
4783 Add OpenBSD/m88k support.
4784 * NEWS (New native configurations): Mention OpenBSD/m88k.
4785 * m88k-tdep.c, m88k-tdep.h, m88kbsd-nat.c, config/m88k/nm-obsd.h,
4786 config/m88k/obsd.mh, config/m88k/obsd.mt: New files.
4787 * Makefile.in (m88k_tdep_h): New variable.
4788 (ALLDEPFILES): Add m88k-tdep.c and m88kbsd-nat.c.
4789 (m88kbsd-nat.o, m88k-tdep.o): New dependencies.
4790 * configure.host: Add m88*-*-openbsd*.
4791 * configure.tgt: Add m88*-*-openbsd*.
4792
4793 2004-05-24 Jim Blandy <jimb@redhat.com>
4794
4795 * MAINTAINERS (tracing bytecode stuff): Allow global maintainers
4796 to approve changes.
4797
4798 2004-05-24 Kevin Buettner <kevinb@redhat.com>
4799
4800 * symtab.c (fixup_section): Search section table when lookup by
4801 name fails.
4802
4803 2004-05-24 Randolph Chung <tausq@debian.org>
4804
4805 * hppa-tdep.c: Fix handling of 8-byte structures; they should not
4806 be "small_struct".
4807
4808 2004-05-24 Mark Kettenis <kettenis@gnu.org>
4809
4810 * m68kbsd-nat.c (m68kbsd_collect_gregset): Specify correct
4811 register number in regcache_raw_collect call.
4812 (m68kbsd_collect_fpregset): Likewise.
4813 * vaxbsd-nat.c (vaxbsd_collect_gregset): Likewise.
4814
4815 * regset.h (struct regset): Add back `regset' member.
4816
4817 2004-05-23 Mark Kettenis <kettenis@gnu.org>
4818
4819 * configure.in: Check for td_pcb in `struct thread'.
4820 * configure, config.in: Regenerated.
4821
4822 * dpx2-nat.c: Remove file.
4823 * Makefile.in (ALLDEPFILES): Remove dpx2-nat.c.
4824 (dpx2-nat.o): Remove dependencies.
4825
4826 * amd64obsd-nat.c: Include "gdbcore.h", "regcache.h",
4827 <sys/types.h>, <machine/frame.h>, <machine/pcb.h> and "bsd-kvm.h".
4828 (amd64obsd_supply_pcb): New function.
4829 (_initialize_amd64obsd_nat): Enable libkvm interface.
4830 * Makefile.in (amd64obsd-nat.o): Update dependencies.
4831 * config/i386/obsd64.mh (NATDEPFILES): Add bsd-kvm.o
4832 (LOADLIBES): New variable.
4833
4834 * sparcnbsd-nat.c: Include "gdbcore.h", "regcache.h",
4835 <sys/types.h>, <machine/pcb.h> and "bsd-kvm.h".
4836 (sparc32nbsd_supply_pcb): New function.
4837 (_initialize_sparcnbsd_nat): Enable libkvm interface.
4838 * Makefile.in (sparcnbsd-nat.o): Update dependencies.
4839 * config/sparc/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
4840 (LOADLIBES): New variable.
4841
4842 2004-05-22 Mark Kettenis <kettenis@gnu.org>
4843
4844 * bsd-kvm.c, bsd-kvm.h: New files.
4845 * i386fbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
4846 "bsd-kvm.h".
4847 (i386fbsd_supply_pcb): New function.
4848 * Makefile.in (ALLDEPFILES): Add bsd-kvm.c.
4849 (i386fbsd-nat.o): Update dependencies.
4850 (bsd_kvm_h): New variable.
4851 (bsd-kvm.o): New dependency.
4852 * config/i386/fbsd.mh (NATDEPFILES): Add bsd-kvm.o.
4853 (LOADLIBES): New variable.
4854
4855 * regset.c: Tweak comment.
4856 (regset_alloc): Remove descr argument. Use GDBARCH_OBSTACK_ZALLOC
4857 macro.
4858 * regset.h: Update copyright year.
4859 (struct regset): Remove `descr' member, add `gdbarch' member.
4860 (regset_alloc): Adjust prototype and comment.
4861 * i386-tdep.c (i386_supply_gregset): Get TDEP from REGSET->arch.
4862 (i386_supply_fpregset): Likewise.
4863 (i386_regset_from_core_section): Update call to regset_alloc.
4864 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get TDEP from
4865 REGSET->arch.
4866 (i386obsd_aout_regset_from_core_section): Update call to
4867 regset_alloc.
4868 * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Get TDEP from
4869 REGSET->arch.
4870 (i386nbsd_aout_regset_from_core_section): Update call to
4871 regset_alloc.
4872 * amd64-tdep.c (amd64_supply_fpregset): Get TDEP from
4873 REGSET->arch.
4874 (amd64_regset_from_core_section): Update call to regset_alloc.
4875 * amd64obsd-tdep.c (amd64obsd_supply_regset): Get TDEP from
4876 REGSET->arch.
4877 (amd64obsd_regset_from_core_section): Update call to regset_alloc.
4878 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Directly pass
4879 &sparc32nbsd_gregset in sparc32_supply_gregset call.
4880 (sparc32nbsd_init_abi): Update call to regset_alloc.
4881 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Directly pass
4882 &sparc64obsd_core_gregset in sparc64_supply_gregset call.
4883 (sparc64obsd_init_abi): Update call to regset_alloc.
4884 * sparc64nbsd-tdep.c (sparc64nbsd_supply_gregset): Directly pass
4885 &sparc64nbsd_gregset in sparc64_supply_gregset call.
4886 (sparc64nbsd_init_abi): Update call to regset_alloc.
4887 * sparc64fbsd-tdep.c (sparc64fbsd_supply_gregset): Directly pass
4888 &sparc64fbsd_gregset in sparc64_supply_gregset call.
4889 (sparc64fbsd_init_abi): Update call to regset_alloc.
4890
4891 2004-05-22 Jim Blandy <jimb@redhat.com>
4892
4893 * ppc-tdep.h (spe_register_p): New declaration.
4894 (struct gdbarch_tdep): New members: ppc_acc_regnum and
4895 ppc_spefscr_regnum.
4896 * rs6000-tdep.c (spe_register_p): New function.
4897 (rs6000_dwarf2_stab_reg_to_regnum): Recognize numbers for acc and
4898 spefscr.
4899 (rs6000_gdbarch_init): Initialize the new members of the tdep
4900 structure.
4901
4902 2004-05-21 Jim Blandy <jimb@redhat.com>
4903
4904 * ppc-linux-nat.c (fetch_register): Move code back to be next
4905 to the comment that describes it. (Moved code, instead of
4906 comment, for symmetry with store_register.)
4907
4908 Allocate regset structures in the gdbarch's obstack, not using
4909 xmalloc.
4910 * regset.c (regset_alloc): Renamed from regset_xmalloc.
4911 Add 'arch' argument. Allocate the regset on arch's obstack, not
4912 using xmalloc.
4913 * regset.h (regset_alloc): Update declaration.
4914 * am64-tdep.c (amd64_regset_from_core_section): Update call; pass
4915 gdbarch argument.
4916 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
4917 * i386-tdep.c (i386_regset_from_core_section): Same.
4918 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
4919 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
4920 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
4921 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
4922 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
4923 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
4924
4925 2004-05-21 Joel Brobecker <brobecker@gnat.com>
4926
4927 * config/djgpp/fnchange.lst: Undo previous change, was useless.
4928
4929 2004-05-21 Jim Blandy <jimb@redhat.com>
4930
4931 * dwarf2expr.c (execute_stack_op): Add 'break' statements after
4932 cases for DW_OP_div and DW_OP_shr. (Thanks to Reva Cuthbertson.)
4933
4934 2004-05-20 Jim Blandy <jimb@redhat.com>
4935
4936 * rs6000-tdep.c (rs6000_push_dummy_call): Formatting fixes.
4937
4938 2004-05-20 Mark Kettenis <kettenis@gnu.org>
4939
4940 * regset.h: Make prototype const-correct.
4941 * regset.c (regset_xmalloc): Make const-correct.
4942
4943 2004-05-20 Paul N. Hilfinger <hilfinger@gnat.com>
4944
4945 * symtab.h (SYMBOL_SEARCH_NAME): New definition.
4946 (SYMBOL_MATCHES_SEARCH_NAME): New definition.
4947 (symbol_search_name): Declare.
4948
4949 * dictionary.c (iter_name_first_hashed): Match on SYMBOL_SEARCH_NAME.
4950 (iter_name_next_hashed): Ditto.
4951 (iter_name_next_linear): Ditto.
4952 (insert_symbol_hashed): Hash on SYMBOL_SEARCH_NAME.
4953
4954 * symtab.c (lookup_partial_symbol): Assume symbols ordered by
4955 search name, using SYMBOL_SEARCH_NAME and SYMBOL_MATCHES_SEARCH_NAME.
4956 (symbol_search_name): New function.
4957
4958 * symfile.c (compare_psymbols): Order by SYMBOL_SEARCH_NAME.
4959
4960 * minsyms.c (build_minimal_symbol_hash_tables): Change
4961 test for adding to demangled hash table to check for difference
4962 between SYMBOL_SEARCH_NAME and SYMBOL_LINKAGE_NAME.
4963
4964 2004-05-19 Jim Blandy <jimb@redhat.com>
4965
4966 Use a constructor function to create regset structures.
4967 * regset.h (supply_regset_ftype, collect_regset_ftype): New typedefs.
4968 (struct regset): Use supply_regset_ftype. Add new
4969 'collect_regset' member.
4970 (regset_xmalloc): New declaration.
4971 * regset.c: New file.
4972 * am64-tdep.c (amd64_regset_from_core_section): Use
4973 regset_xmalloc to construct regset structures.
4974 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
4975 * i386-tdep.c (i386_regset_from_core_section): Same.
4976 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
4977 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
4978 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
4979 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
4980 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
4981 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
4982 * Makefile.in (COMMON_OBS): Add regset.o.
4983 (regset.o): New rule.
4984
4985 2004-05-19 Joel Brobecker <brobecker@gnat.com>
4986
4987 * config/djgpp/fnchange.lst: Add entries for pthread_cond_wait.exp
4988 and pthread_cond_wait.c.
4989
4990 2004-05-18 Jim Blandy <jimb@redhat.com>
4991
4992 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize tdep fields
4993 before the mach-specific switch, and then let the individual cases
4994 override the defaults, rather than leaving them uninitialized
4995 until the switch and then setting them in each case.
4996
4997 2004-05-18 Randolph Chung <tausq@debian.org>
4998
4999 * hppa-tdep.c (hppa_frame_cache): Check for validity of r31 for
5000 millicode functions.
5001
5002 2004-05-18 Randolph Chung <tausq@debian.org>
5003
5004 * somsolib.c (som_solib_remove_inferior_hook): Make all the size
5005 references to dld_flags_buffer consistent.
5006
5007 2004-05-18 Randolph Chung <tausq@debian.org>
5008
5009 * hppa-tdep.c (hppa_frame_cache): If a frame pointer is available, use
5010 it for unwinding the stack.
5011
5012 2004-05-18 Randolph Chung <tausq@debian.org>
5013
5014 * config/pa/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE)
5015 Undefine these so we can overide them using gdbarch.
5016
5017 2004-05-18 Randolph Chung <tausq@debian.org>
5018
5019 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Don't do export stub
5020 handling for 64-bit HPUX (elf).
5021
5022 2004-05-18 Daniel Jacobowitz <dan@debian.org>
5023
5024 * alpha-tdep.c (alpha_gdbarch_init): Use LL suffix for large
5025 constants.
5026 * amd64-tdep.c (amd64_skip_prologue): Likewise.
5027 * ia64-tdep.c (examine_prologue): Likewise.
5028 * ns32k-tdep.c (ns32k_fix_call_dummy): Remove unused function.
5029 * v850-tdep.c (v850_fix_call_dummy): Likewise.
5030
5031 2004-05-18 Mark Kettenis <kettenis@gnu.org>
5032
5033 * vax-tdep.c (vax_return_value): Implement
5034 RETURN_VALUE_ABI_RETURNS_ADDRESS.
5035
5036 2004-05-17 Mark Kettenis <kettenis@gnu.org>
5037
5038 * vax-tdep.c (vax_return_value): Fix typo.
5039
5040 2004-05-17 Andrew Cagney <cagney@redhat.com>
5041
5042 * MAINTAINERS: Mark Salter was also responsible for
5043 testsuite/config/
5044
5045 * NEWS: Mention signal fixes.
5046
5047 2004-05-17 Randolph Chung <tausq@debian.org>
5048
5049 * hppa-tdep.c (hppa_stub_frame_unwind_cache): For HPUX stub unwinding,
5050 check to see if we are unwinding an export stub. Export stubs clobber
5051 the %rp in the call path and stores the original rp in a stack slot.
5052
5053 2004-05-17 Jim Blandy <jimb@redhat.com>
5054
5055 * MAINTAINERS: Update address for J.T. Conklin.
5056
5057 2004-05-17 Randolph Chung <tausq@debian.org>
5058
5059 * hppa-tdep.c: Remove superfluous #include's.
5060 * Makefile.in (hppa-tdep.o): Update dependencies.
5061
5062 2004-05-17 Randolph Chung <tausq@debian.org>
5063
5064 * hppa-tdep.c (THREAD_INITIAL_FRAME_SYMBOL): Delete unused symbol.
5065 (THREAD_INITIAL_FRAME_SYM_LEN): Likewise.
5066 (unwind_command, hppa_alignof, prologue_inst_adjust_sp)
5067 (is_branch, inst_saves_gr, inst_saves_fr, compare_unwind_entries)
5068 (read_unwind_info, internalize_unwinds, record_text_segment_lowaddr):
5069 Remove static function declarations.
5070
5071 2004-05-17 Mark Kettenis <kettenis@gnu.org>
5072
5073 * alphabsd-nat.c: Update copyright year.
5074 (getregs_supplies): Replace PC_REGNUM with ALPHA_PC_REGNUM.
5075
5076 * m68k-tdep.h (m68k_regnum): Add M68K_D2_REGNUM, M68K_D7_REGNUM
5077 and M68K_A2_REGNUM.
5078
5079 * m68k-tdep.c (m68k_svr4_return_value): Implement
5080 RETURN_VALUE_ABI_RETURNS_ADDRESS.
5081
5082 2004-05-16 Mark Kettenis <kettenis@gnu.org>
5083
5084 * sol-thread.c Update copyright year. Fix various coding
5085 standards violations. Tweak a few comments.
5086 (td_err_string, td_state_string, thread_to_lwp, lwp_to_thread):
5087 Delete prototypes.
5088
5089 2004-05-15 Randolph Chung <tausq@debian.org>
5090
5091 * hppa-tdep.h (hppa_frame_prev_register_helper): Pass save_regs
5092 as pointer instead of array reference since HPUX compiler does
5093 not accept unsized array arguments.
5094 * somsolib.c (dld_flags_buffer): Use constant array size.
5095
5096 2004-05-15 Mark Kettenis <kettenis@gnu.org>
5097
5098 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Replace hexadecimal
5099 offset with decimal offset.
5100 (amd64obsd_sigcontext_addr): Return correct address for entire
5101 signal trampoline.
5102
5103 * vax-tdep.c (vax_frame_num_args): Use get_frame_base_address
5104 instead of get_frame_base.
5105
5106 * i386bsd-nat.c (supply_gregset): Use regcache_raw_supply.
5107 (fill_gregset): Use regcache_raw_collect.
5108
5109 * config/djgpp/fnchange.lst: Add entries for ppcobsd-nat.c and
5110 ppcobsd-tdep.c.
5111
5112 * config/sparc/tm-nbsd64.h: Remove file.
5113 * config/tm-sunos.h: Remove file.
5114
5115 2004-05-15 Joel Brobecker <brobecker@gnat.com>
5116
5117 * rs6000-tdep.c (store_param_on_stack_p): New function,
5118 an improved version of some code extracted from skip_prologue().
5119 (skip_prologue): Use store_param_on_stack_p() to detect
5120 instructions saving a parameter on the stack. Detect when r0
5121 is used to save a parameter.
5122 Do not mark "li rx, SIMM" instructions as part of the prologue,
5123 unless the following instruction is also part of the prologue.
5124
5125 2004-05-14 Andrew Cagney <cagney@redhat.com>
5126
5127 * infrun.c (handle_inferior_event): Simplify
5128 STEP_OVER_UNDEBUGGABLE.
5129
5130 * infrun.c (handle_step_into_function): Delete function.
5131 (handle_inferior_event): Inline calls to
5132 handle_step_into_function.
5133
5134 2004-05-14 Jerome Guitton <guitton@gnat.com>
5135
5136 * rs6000-nat.c: Fix a comment.
5137
5138 2004-05-12 David Anderson <davea@sgi.com>
5139
5140 Committed by Jim Blandy <jimb@redhat.com>:
5141 * regcache.c (struct regcache_descr): fix comment spelling.
5142
5143 2004-05-13 J. Brobecker <brobecker@gnat.com>
5144
5145 * aix-thread.c: s/ppc_floating_point_p/ppc_floating_point_unit_p/.
5146 Fixes a link link failure.
5147
5148 2004-05-13 J. Brobecker <brobecker@gnat.com>
5149
5150 * aix-thread.c (store_regs_kernel_thread): Fix a little obvious
5151 error that was causing the build to fail.
5152
5153 2004-05-13 J. Brobecker <brobecker@gnat.com>
5154
5155 * aix-thread.c: #include "gdb_string.h". Needed for memset and memcopy.
5156 * Makefile.in (aix-thread.o): Add dependency on gdb_string.h.
5157
5158 2004-05-13 Andrew Cagney <cagney@redhat.com>
5159
5160 * infrun.c (handle_inferior_event): Check for
5161 STEP_OVER_UNDEBUGGABLE after signal trampolines and function
5162 calls. Update comments.
5163
5164 2004-05-13 Jim Blandy <jimb@redhat.com>
5165
5166 * aix-thread.c (pdc_read_regs, supply_gprs64, supply_fprs)
5167 (fetch_regs_user_thread, fetch_regs_kernel_thread)
5168 (store_regs_user_thread, store_regs_kernel_thread): Use
5169 ppc_num_gprs and ppc_num_fprs instead of '32' and '31'.
5170 * ppc-linux-nat.c (fill_gregset): Same.
5171 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
5172 (ppc_linux_sigtramp_cache): Same.
5173 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg)
5174 (ppcnbsd_sigtramp_cache_init): Same.
5175 * rs6000-nat.c (fetch_core_registers): Same.
5176 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
5177 (rs6000_frame_cache): Same.
5178
5179 * aix-thread.c (supply_gprs64, fetch_regs_user_thread)
5180 (store_regs_user_thread): Use tdep->ppc_gp0_regnum, instead
5181 of assuming that the gprs are numbered starting with zero.
5182 * ppc-linux-nat.c (fill_gregset): Same.
5183 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Same.
5184 * ppcnbsd-nat.c (getregs_supplies): Same.
5185 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg): Same.
5186 * rs6000-nat.c (fetch_core_registers): Same.
5187 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset): Same.
5188
5189 2004-05-07 Michael Snyder <msnyder@redhat.com>
5190
5191 * tracepoint.c (scope_info): Add handling for LOC_COMPUTED,
5192 LOC_COMPUTED_ARG, and LOC_INDIRECT.
5193
5194 2004-05-13 Andrew Cagney <cagney@redhat.com>
5195
5196 * infrun.c (handle_inferior_event): Use frame_unwind_id.
5197
5198 2004-05-13 Bryce McKinlay <mckinlay@redhat.com>
5199
5200 * dwarf2loc.c (find_location_expression): Use ANOFFSET to adjust
5201 base_address for shared libraries.
5202
5203 2004-05-13 Bryce McKinlay <mckinlay@redhat.com>
5204
5205 * MAINTAINERS (write after approval): Add myself.
5206
5207 2004-05-13 Ulrich Weigand <uweigand@de.ibm.com>
5208
5209 * breakpoint.c (bpstat_stop_status): Add new argument
5210 STOPPED_BY_WATCHPOINT. Use it instead of testing
5211 target_stopped_data_address agaist 0 to check whether
5212 or not we stopped due to a hardware watchpoint.
5213 * breakpoint.h (bpstat_stop_status): Adapt prototype.
5214 * infrun.c (handle_inferior_event): Call bpstat_stop_status
5215 with new argument.
5216
5217 2004-05-12 Jim Blandy <jimb@redhat.com>
5218
5219 * configure.in: When checking whether we should use the -bbigtoc
5220 option, don't forget to restore the original value of LDFLAGS.
5221 * configure: Regenerated.
5222
5223 2004-05-12 Andrew Cagney <cagney@redhat.com>
5224
5225 * thread.c (load_infrun_state): Delete step_sp.
5226 * infrun.c (context_switch): Ditto.
5227 * inferior.h (step_sp): Ditto.
5228 * infcmd.c (step_sp, step_1, step_once, until_next_command): Ditto.
5229 * gdbthread.h (struct thread_info, save_infrun_state)
5230 (restore_infrun_state): Ditto.
5231
5232 2004-05-12 Ulrich Weigand <uweigand@de.ibm.com>
5233
5234 * MAINTAINERS (write after approval): Add myself.
5235
5236 2004-05-12 Andrew Cagney <cagney@redhat.com>
5237
5238 * infrun.c (adjust_pc_after_break): Rewrite decr logic,
5239 eliminate reference to step_sp.
5240 (struct execution_control_state, init_execution_control_state)
5241 (handle_inferior_event, keep_going): Delete update_step_sp and
5242 step_sp.
5243 * infcmd.c (step_sp): Note that variable is unused.
5244
5245 2004-05-11 Andrew Cagney <cagney@redhat.com>
5246
5247 * infrun.c (step_over_function): Delete function.
5248 (handle_step_into_function): Use insert_step_resume_breakpoint.
5249 (insert_step_resume_breakpoint): Fix assertion.
5250
5251 2004-05-11 Nick Roberts <nickrob@gnu.org>
5252
5253 * utils.c (defaulted_query): Just use the normal query input type
5254 when printing the annotations.
5255
5256 2004-05-11 Andrew Cagney <cagney@redhat.com>
5257
5258 * infrun.c (handle_inferior_event): Simplify code handling
5259 step-into or return-from a signal trampoline.
5260
5261 2004-05-11 Andrew Cagney <cagney@redhat.com>
5262
5263 * ppcnbsd-tdep.c: Include "gdb_assert.h".
5264 * Makefile.in (ppcnbsd-tdep.o): Update dependencies.
5265
5266 2004-05-10 Jim Blandy <jimb@redhat.com>
5267
5268 * ppc-bdm.c (bdm_ppc_fetch_registers): Replace utterly broken code
5269 with a call to internal_error.
5270
5271 * ppc-tdep.h (struct gdbarch_tdep): Change definition of
5272 ppc_fp0_regnum and ppc_fpscr_regnum: if they are -1, then this
5273 processor variant lacks those registers.
5274 (ppc_floating_point_unit_p): Change description to make it clear
5275 that this returns info about the ISA, not the ABI.
5276 * rs6000-tdep.c (ppc_floating_point_unit_p): Decide whether to
5277 return true or false by checking tdep->ppc_fp0_regnum and
5278 tdep->ppc_fpscr_regnum. The original code replicated the BFD
5279 arch/mach switching done in rs6000_gdbarch_init; it's better to
5280 keep that logic there, and just check the results here.
5281 (rs6000_gdbarch_init): On the E500, set tdep->ppc_fp0_regnum and
5282 tdep->ppc_fpscr_regnum to -1 to indicate that we have no
5283 floating-point registers.
5284 (ppc_supply_fpregset, ppc_collect_fpregset)
5285 (rs6000_push_dummy_call, rs6000_extract_return_value)
5286 (rs6000_store_return_value): Assert that we have floating-point
5287 registers.
5288 (rs6000_dwarf2_stab_reg_to_regnum): Add FIXME.
5289 (rs6000_frame_cache): Don't note the locations at which
5290 floating-point registers were saved if we have no fprs.
5291 * aix-thread.c (supply_fprs, fill_fprs): Assert that we have FP
5292 registers.
5293 (fetch_regs_user_thread, fetch_regs_kernel_thread)
5294 (store_regs_user_thread, store_regs_kernel_thread): Only call
5295 supply_fprs / fill_fprs if we actually have floating-point
5296 registers.
5297 (special_register_p): Check ppc_fpscr_regnum before matching
5298 against it.
5299 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32): Don't
5300 supply / collect fpscr if we don't have it.
5301 * ppc-bdm.c: #include "gdb_assert.h".
5302 (bdm_ppc_fetch_registers, bdm_ppc_store_registers): Assert that we
5303 have floating-point registers, since I can't test this code on
5304 FP-free systems to adapt it.
5305 * ppc-linux-nat.c (ppc_register_u_addr): Don't match against the
5306 fpscr and floating point register numbers if they don't exist.
5307 (fetch_register): Assert that we have floating-point registers
5308 before we reach the code that handles them.
5309 (store_register): Same. And use tdep instead of calling
5310 gdbarch_tdep again.
5311 (fill_fpregset): Don't try to collect FP registers and fpscr if we
5312 don't have them.
5313 (ppc_linux_sigtramp_cache): Don't record the saved locations of
5314 fprs and fpscr if we don't have them.
5315 (ppc_linux_supply_fpregset): Don't supply fp regs and fpscr if we
5316 don't have them.
5317 * ppcnbsd-nat.c: #include "gdb_assert.h".
5318 (getfpregs_supplies): Assert that we have floating-point registers.
5319 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg): Same.
5320 * ppcobsd-tdep.c: #include "gdb_assert.h".
5321 (ppcobsd_supply_gregset, ppcobsd_collect_gregset): Assert that we
5322 have floating-point registers.
5323 * rs6000-nat.c (regmap): Don't match against the fpscr and
5324 floating point register numbers if they don't exist.
5325 (fetch_inferior_registers, store_inferior_registers,
5326 fetch_core_registers): Only fetch / store / supply the
5327 floating-point registers and the fpscr if we have them.
5328 * Makefile.in (ppc-bdm.o, ppc-linux-nat.o, ppcnbsd-nat.o)
5329 (ppcobsd-tdep.o): Update dependencies.
5330
5331 2004-05-10 Andrew Cagney <cagney@redhat.com>
5332
5333 * infrun.c (through_sigtramp_breakpoint): Delete variable.
5334 (context_switch): Do not switch through_sigtramp_breakpoint.
5335 * gdbthread.h (save_infrun_state, load_infrun_state)
5336 (struct thread_info): Delete through_sigtramp_breakpoint parameter
5337 and structure member.
5338 * thread.c (load_infrun_state, save_infrun_state): Update.
5339
5340 2004-05-10 Mark Kettenis <kettenis@gnu.org>
5341
5342 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Call m68k_svr4_init_abi.
5343
5344 2004-05-10 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
5345
5346 * acinclude.m4: Quote macro names being defined by AC_DEFUN
5347 throughout.
5348 * aclocal.m4: Regenerate.
5349
5350 2004-05-10 Nathan J. Williams <nathanw@wasabisystems.com>
5351
5352 * alphanbsd-tdep.c: Fix include of "gdb_string.h".
5353
5354 2004-05-10 Andrew Cagney <cagney@redhat.com>
5355
5356 * infrun.c (check_sigtramp2): Delete function.
5357 (handle_inferior_event): When single stepping, and taking a
5358 signal, set a breakpoint at the signal return address. Delete
5359 redundant calls to check_sigtramp2.
5360 (insert_step_resume_breakpoint): New function.
5361 (through_sigtramp_breakpoint, handle_inferior_event)
5362 (follow_exec, wait_for_inferior, fetch_inferior_event)
5363 (currently_stepping, keep_going): Delete most uses of
5364 through_sigtramp_breakpoint, not that it should be deleted.
5365 (delete_breakpoint_current_contents): Delete function.
5366
5367 2004-05-10 Randolph Chung <tausq@debian.org>
5368
5369 * config/pa/linux.mt (TM_FILE): Use new tm-linux.h for hppa-linux
5370 target.
5371 * config/pa/tm-linux.h: New file.
5372
5373 2004-05-10 Daniel Jacobowitz <drow@mvista.com>
5374
5375 * cli/cli-setshow.c (cmd_show_list): Check for "show" in the middle
5376 of prefixes. Don't print the prefix twice in the CLI.
5377
5378 2004-05-10 Jim Blandy <jimb@redhat.com>
5379
5380 * rs6000-tdep.c (ppc_collect_gregset): When regnum == -1, do
5381 collect all the gprs.
5382
5383 * rs6000-tdep.c (ppc_collect_gregset): Correct off-by-one error in
5384 loop collecting gprs.
5385
5386 2004-05-09 Andrew Cagney <cagney@redhat.com>
5387
5388 * remote-vx.c (net_step): Delete step-range code.
5389 * remote.c (remote_resume, init_all_packet_configs)
5390 (set_remote_protocol_E_packet_cmd)
5391 (show_remote_protocol_E_packet_cmd)
5392 (remote_protocol_E, show_remote_cmd, _initialize_remote)
5393 (remote_protocol_e, set_remote_protocol_e_packet_cmd)
5394 (show_remote_protocol_e_packet_cmd): Ditto.
5395
5396 2004-05-09 Mark Kettenis <kettenis@gnu.org>
5397
5398 * hppa-tdep.h (enum hppa_regnum): Name enum, add HPPA_R1_REGNUM.
5399
5400 * hppa-tdep.h: Update copyright year.
5401 (struct trad_frame_saved_reg): Add opaque declaration.
5402
5403 * amd64-tdep.c (amd64_return_value): Implement
5404 RETURN_VALUE_ABI_RETURNS_ADDRESS.
5405
5406 * m68k-tdep.c (m68k_convert_register_p, m68k_register_to_value)
5407 (m68k_value_to_register): New functions.
5408 (m68k_gdbarch_init): Set convert_register_p, register_to_value and
5409 value_to_register.
5410
5411 * defs.h (enum return_value_convention): Add
5412 RETURN_VALUE_ABI_RETURNS_ADDRESS and
5413 RETURN_VALUE_ABI_PRESERVES_ADDRESS.
5414 * infcmd.c (legacy_return_value): New function.
5415 (print_return_value): Rwerite to implement
5416 RETURN_VALUE_ABI_RETURNS_ADDRESS.
5417 * values.c (using_struct_return): Check for inequality to
5418 RETURN_VALUE_REGISTER_CONVENTION instead of equality to
5419 RETURN_VALUE_STRUCT_CONVENTION.
5420 * i386-tdep.c (i386_return_value): Implement
5421 RETURN_VALUE_ABI_RETURNS_ADDRESS.
5422
5423 * vax-tdep.c: Tweak comments. Reorder include files. Don't
5424 include "symtab.h", "opcode/vax.h" and "inferior.h".
5425 (vax_skip_prologue): Replace calls to read_memory_integer by calls
5426 to read_memory_unsigned_integer.
5427 (vax_gdbarch_init): Reorder.
5428 (_initialize_vax_tdep): Spell out prototype.
5429 * Makefile.in (vax-tdep.o): Update dependencies.
5430
5431 2004-05-08 Andrew Cagney <cagney@redhat.com>
5432
5433 * infrun.c (resume): Delete call to DO_DEFERRED_STORES.
5434 * target.c (target_detach, target_disconnect): Ditto.
5435
5436 * infcall.c (call_function_by_hand): When no
5437 DEPRECATED_SAVE_DUMMY_FRAME_TOS call generic_save_dummy_frame_tos.
5438 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set
5439 DEPRECATED_SAVE_DUMMY_FRAME_TOS.
5440 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5441 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5442
5443 * gdbarch.sh (DEPRECATED_FIX_CALL_DUMMY): Delete.
5444 * gdbarch.h, gdbarch.c: Re-generate.
5445 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
5446 deprecated_fix_call_dummy.
5447 * v850-tdep.c (v850_gdbarch_init): Ditto.
5448 * infcall.c (call_function_by_hand): Do not call
5449 DEPRECATED_FIX_CALL_DUMMY.
5450
5451 * gdbarch.sh (DEPRECATED_CALL_DUMMY_WORDS)
5452 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Delete.
5453 * gdbarch.h, gdbarch.c: Re-generate.
5454 * arm-linux-tdep.c (arm_linux_call_dummy_words)
5455 (arm_linux_init_abi): Do not set deprecated_call_dummy_words or
5456 deprecated_sizeof_call_dummy_words.
5457 * arm-tdep.c (arm_call_dummy_words, arm_gdbarch_init): Ditto.
5458 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
5459 * v850-tdep.c (v850_gdbarch_init): Ditto.
5460 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
5461 * ns32k-tdep.c (ns32k_call_dummy_words, ns32k_gdbarch_init): Ditto.
5462 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5463 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5464 * arch-utils.h (legacy_call_dummy_words)
5465 (legacy_sizeof_call_dummy_words): Delete declarations.
5466 * arch-utils.c (legacy_call_dummy_words)
5467 (legacy_sizeof_call_dummy_words): Delete variables.
5468
5469 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Delete.
5470 * gdbarch.h, gdbarch.c: Re-generate.
5471 * inferior.h (PUSH_DUMMY_FRAME): Delete macro.
5472 * infcall.c (call_function_by_hand): Eliminate call to
5473 DEPRECATED_PUSH_DUMMY_FRAME.
5474 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
5475 push_dummy_frame.
5476 (ns32k_push_dummy_frame): Delete function.
5477
5478 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
5479 deprecated_call_dummy_breakpoint_offset or
5480 deprecated_call_dummy_start_offset.
5481 * dummy-frame.c, arm-tdep.c: Update comments.
5482 * gdbarch.sh (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET)
5483 (DEPRECATED_CALL_DUMMY_START_OFFSET): Delete.
5484 * gdbarch.h, gdbarch.c: Re-generate.
5485
5486 * infcall.c (legacy_push_dummy_code): Delete function.
5487 (push_dummy_code): Delete call.
5488
5489 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete.
5490 * gdbarch.h, gdbarch.c: Re-generate.
5491 * blockframe.c (legacy_frame_chain_valid): Simplify by eliminating
5492 DEPRECATED_USE_GENERIC_DUMMY_FRAMES.
5493 * infcall.c (legacy_push_dummy_code, call_function_by_hand): Ditto.
5494 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Ditto.
5495
5496 * breakpoint.h (deprecated_frame_in_dummy): Delete declaration.
5497 (struct frame_info): Delete opaque declaration.
5498 * breakpoint.c (deprecated_frame_in_dummy): Delete function.
5499 * frame.c (get_frame_type): Delete call.
5500
5501 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
5502 pc_in_call_dummy.
5503 * inferior.h (deprecated_pc_in_call_dummy_on_stack): Delete.
5504 * blockframe.c (deprecated_pc_in_call_dummy_on_stack): Delete.
5505
5506 2004-05-08 Mark Kettenis <kettenis@gnu.org>
5507
5508 * alphanbsd-tdep.c: Include "gdb_string.h".
5509 * armnbsd-tdep.c: Update copyright year.
5510 Include "gdb_string.h".
5511 * Makefile.in (alphanbsd-tdep.o, armnbsd-tdep.o): Update
5512 dependencies.
5513
5514 * delta68-nat.c: Remove file.
5515 * m68k-tdep.c (delta68_in_sigtramp, delta68_frame_args_address)
5516 (delta68_frame_saved_pc, delta68_frame_num_args): Remove functions.
5517 * Makefile.in (ALLDEPFILES): Remove delta68-nat.c.
5518 (delta68-nat.o): Remove dependency.
5519
5520 * m68k-tdep.c (m68k_frameless_function_invocation): Remove
5521 function.
5522 (m68k_gdbarch_init): Don't set
5523 deprecated_frameless_function_invocation.
5524
5525 2004-05-07 Randolph Chung <tausq@debian.org>
5526
5527 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Use
5528 read_memory_nobpt for code reading when doing frame unwinding.
5529 * hppa-linux-tdep.c (insns_match_pattern): Likewise.
5530
5531 2004-05-07 Randolph Chung <tausq@debian.org>
5532
5533 * hppa-linux-tdep.c (hppa_linux_sigtramp_find_sigcontext): Pass in pc
5534 instead of sp, handle sigaltstack case.
5535 (hppa_linux_sigtramp_frame_unwind_cache): Adjust calls to
5536 hppa_linux_sigtramp_find_sigcontext, and set base to the frame of the
5537 signal handler and not that of the caller.
5538 (hppa_linux_sigtramp_unwind_sniffer): Adjust calls to
5539 hppa_linux_sigtramp_find_sigcontext.
5540
5541 2004-05-07 Randolph Chung <tausq@debian.org>
5542
5543 * Makefile.in (ALLDEPFILES): Add hppa-linux-tdep.c and
5544 hppa-linux-nat.c.
5545 (hppa-linux-tdep.o, hppa-linux-nat.o): Define rules.
5546 * hppa-linux-nat.c (fetch_register, store_register): Define.
5547 (fetch_inferior_registers, store_inferior_registers): Define.
5548 (supply_gregset): Add comment and clean up some unneeded code.
5549 (fill_gregset): Add comment and fix so that it saves registers in
5550 the right place in the gregset.
5551 (fill_fpregset): Fix buffer overrun problem.
5552 * config/pa/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
5553
5554 2004-05-07 Randolph Chung <tausq@debian.org>
5555
5556 * hppa-tdep.c (hppa_frame_prev_register_helper): New function to
5557 do common handling of the pcoqt register.
5558 (hppa_frame_prev_register, hppa_stub_frame_prev_register): Convert
5559 to use helper function.
5560 (hppa_frame_unwind_sniffer): Only use if unwind entry is present.
5561 (hppa_fallback_frame_cache, hppa_fallback_frame_this_id)
5562 (hppa_fallback_frame_prev_register, hppa_fallback_frame_unwind): New
5563 generic fallback unwinder when all else fails.
5564 (hppa_gdbarch_init): Add fallback sniffer.
5565 * hppa-tdep.h (hppa_frame_prev_register_helper): Prototype.
5566 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register): Convert
5567 to use helper function.
5568
5569 2004-05-08 Joel Brobecker <brobecker@gnat.com>
5570
5571 * config/djgpp/fnchange.lst: Add translation rules for
5572 gdb.arch/powerpc-aix-prologue.c and gdb.arch/powerpc-aix-prologue.exp.
5573
5574 2004-05-08 Mark Kettenis <kettenis@gnu.org>
5575
5576 * frame.c (get_prev_frame_1): Work around GCC bug.
5577 * frame.h: Add comment about GCC bug.
5578
5579 2004-05-07 Andrew Cagney <cagney@redhat.com>
5580
5581 * observer.c: Include "commands.h" and "gdbcmd.h".
5582 (observer_debug, _initialize_observer): Add the
5583 command "set/show debug observer".
5584 * observer.sh: When observer debugging, log notify calls.
5585 * Makefile.in (observer.o): Update dependencies.
5586
5587 2004-05-07 Jason Molenda (jmolenda@apple.com)
5588
5589 * cli/cli-decode.c: Fix "SHOW_DOR" comment typeos.
5590
5591 2004-05-07 Jim Blandy <jimb@redhat.com>
5592
5593 * aix-thread.c (fetch_regs_kernel_thread, fill_gprs64,
5594 fill_gprs32, store_regs_kernel_thread): Use tdep->ppc_gp0_regnum
5595 to recognize gpr regnums, instead of assuming that
5596 tdep->ppc_fp0_regnum marks the end of the general-purpose
5597 registers.
5598
5599 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Assert that
5600 the given architecture has floating-point registers.
5601
5602 2004-05-07 Andrew Cagney <cagney@redhat.com>
5603
5604 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Replace with
5605 macro defined to 1.
5606 * gdbarch.h, gdbarch.c: Re-generate.
5607 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
5608 deprecated_use_generic_dummy_frames.
5609
5610 2004-05-07 Brian Ford <ford@vss.fsi.com>
5611
5612 * NEWS: Mention Cygwin DWARF 2 support.
5613
5614 2004-05-07 Andrew Cagney <cagney@redhat.com>
5615
5616 * objfiles.h (struct entry_info): Delete unused fields
5617 deprecated_entry_file_lowpc and deprecated_entry_file_highpc.
5618 * objfiles.c (init_entry_point_info, objfile_relocate): Update.
5619 * mipsread.c (mipscoff_symfile_read): Update.
5620 * mdebugread.c (parse_partial_symbols): Update.
5621 * dwarfread.c (read_file_scope): Update.
5622 * dwarf2read.c (read_file_scope): Update.
5623 * dbxread.c (read_dbx_symtab, read_dbx_symtab): Update.
5624 * coffread.c (complete_symtab): Update.
5625
5626 2004-05-07 Mark Kettenis <kettenis@gnu.org>
5627
5628 * infcall.c (_initialize_infcall): Fix typo.
5629
5630 2004-05-07 Andrew Cagney <cagney@redhat.com>
5631
5632 * cli/cli-decode.c (add_setshow_zinteger_cmd): New function.
5633 * command.h (add_setshow_zinteger_cmd): Declare.
5634
5635 2004-05-06 Randolph Chung <tausq@debian.org>
5636
5637 * config/pa/tm-hppa.h (RO_REGNUM, FLAGS_REGNUM, RP_REGNUM)
5638 (HPPA_FP_REGNUM, HPPA_SP_REGNUM, SAR_REGNUM, IPSW_REGNUM)
5639 (PCOQ_HEAD_REGNUM, PCSQ_HEAD_REGNUM, PCOQ_TAIL_REGNUM, PCSQ_TAIL_REGNUM)
5640 (EIEM_REGNUM, IIR_REGNUM, ISR_REGNUM, IOR_REGNUM, SR4_REGNUM)
5641 (RCR_REGNUM, PID0_REGNUM, PID1_REGNUM, PID2_REGNUM, PID3_REGNUM)
5642 (CCR_REGNUM, TR0_REGNUM, CR27_REGNUM, HPPA_FP0_REGNUM, FP4_REGNUM)
5643 (ARG0_REGNUM, ARG1_REGNUM, ARG2_REGNUM, ARG3_REGNUM): Move *_REGNUM
5644 definitions ...
5645 * hppa-tdep.h: ... to here, with HPPA_ prefix.
5646 * Makefile.in (hppah-nat.o): Add $(hppa_tdep_h)
5647 * hppa-hpux-tdep.c (hppa32_hpux_frame_find_saved_regs_in_sig)
5648 (hppa64_hpux_frame_find_saved_regs_in_sig)
5649 (child_get_current_exception_event): Add HPPA_ prefix to *_REGNUM usage.
5650 * hppa-linux-nat.c (GR_REGNUM, TR_REGNUM, greg_map): Likewise.
5651 * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum)
5652 (hppa_linux_target_write_pc, hppa_linux_sigtramp_frame_unwind_cache)
5653 (hppa_linux_sigtramp_frame_prev_register): Likewise.
5654 * hppa-tdep.c (hppa32_return_value, hppa64_return_value)
5655 (hppa32_push_dummy_call, hppa64_push_dummy_call, hppa64_frame_align)
5656 (hppa_target_read_pc, hppa_target_write_pc, hppa_frame_cache)
5657 (hppa_frame_prev_register, hppa_stub_frame_unwind_cache)
5658 (hppa_stub_frame_prev_register, hppa_unwind_dummy_id)
5659 (hppa_skip_permanent_breakpoint, hppa_instruction_nullified)
5660 (hppa32_register_type, hppa_cannot_store_register)
5661 (hppa_fetch_pointer_argument, hppa_pseudo_register_read): Likewise.
5662 * hppah-nat.c (store_inferior_registers, fetch_register): Likewise.
5663 * hpread.c (hpread_process_one_debug_symbol): Likewise.
5664 * pa64solib.c (pa64_solib_have_load_event)
5665 (pa64_solib_have_unload_event, pa64_solib_loaded_library_pathname)
5666 (pa64_solib_unloaded_library_pathname): Likewise.
5667 * somsolib.c (som_solib_have_load_event, som_solib_have_unload_event)
5668 (som_solib_library_pathname): Likewise.
5669
5670 2004-05-05 Jim Ingham <jingham@apple.com>
5671
5672 * breakpoint.c (create_breakpoints): Copy the ignore count and
5673 thread id over from the pended breakpoint to the actual
5674 breakpoint.
5675
5676 2004-05-05 Andrew Cagney <cagney@redhat.com>
5677
5678 * gdbarch.sh (PARM_BOUNDARY): Delete.
5679 gdbarch.h, gdbarch.c: Re-generate.
5680 * valops.c (PARM_BOUNDARY): Delete macro.
5681 (value_push): Delete PARM_BOUNDARY code.
5682 * m68k-tdep.c (m68k_gdbarch_init): Do not set parm_boundary.
5683
5684 2004-05-04 Jim Blandy <jimb@redhat.com>
5685
5686 * ppc-linux-nat.c (fetch_ppc_registers, store_ppc_registers):
5687 Don't assume that the gprs, fprs, and UISA sprs are
5688 contiguous, start at register number zero, and end with fpscr.
5689 Instead, use the numbers from the tdep structure.
5690
5691 * config/rs6000/tm-rs6000.h (FP0_REGNUM): Document that this
5692 should no longer be used in code specific to the RS6000 and its
5693 derivatives.
5694 * ppc-tdep.h (struct gdbarch_tdep): Add 'ppc_fp0_regnum' member.
5695 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize
5696 tdep->ppc_fp0_regnum.
5697 (ppc_supply_fpregset, ppc_collect_fpregset)
5698 (rs6000_push_dummy_call, rs6000_extract_return_value)
5699 (rs6000_dwarf2_stab_reg_to_regnum, rs6000_store_return_value)
5700 (rs6000_frame_cache): Use tdep->ppc_fp0_regnum instead of
5701 FP0_REGNUM.
5702 * aix-thread.c (supply_fprs, fetch_regs_kernel_thread)
5703 (fill_gprs64, fill_gprs32, fill_fprs, store_regs_kernel_thread):
5704 Same.
5705 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_fetch_registers,
5706 bdm_ppc_store_registers): Same.
5707 * ppc-linux-nat.c (ppc_register_u_addr, fetch_register)
5708 (store_register, fill_fpregset): Same.
5709 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache)
5710 (ppc_linux_supply_fpregset): Same.
5711 * ppcnbsd-nat.c (getfpregs_supplies): Same.
5712 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg):
5713 Same.
5714 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call,
5715 do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call,
5716 ppc64_sysv_abi_return_value): Same.
5717 * rs6000-nat.c (regmap, fetch_inferior_registers)
5718 (store_inferior_registers, fetch_core_registers): Same.
5719
5720 2004-05-01 Mark Kettenis <kettenis@gnu.org>
5721
5722 * m68knbsd-nat.c: Remove file.
5723 * m68knbsd-tdep.c: Remove file.
5724 * Makefile.in: (m68knbsd-nat.o, m68knbsd-tdep.o): Remove
5725 dependencies.
5726 * configure.host: Add m68k-*-netbsdelf*.
5727 * configure.tgt (m68k-*-netbsd*): Set gdb_target to nbsd.
5728 * config/m68k/nbsdaout.mh (NATDEPFILES): Add m68kbsd-nat.o,
5729 solib.o and solib-sunos.o. Remove m68knbsd-nat.o, corelow.o.
5730 (XM_FILE): Remove.
5731 * config/m68k/nbsdelf.mh: New file.
5732 * config/m68k/nbsd.mt: New file.
5733 * config/m68k/nbsdaout.mt: Remove file.
5734 * config/m68k/tm-nbsd.h: Don't include <sys/param.h>,
5735 <machine/vmparam.h> and "m68k/tm-m68k.h". Include "solib.h".
5736 (BPT_VECTOR, STACK_END_ADDR): Remove defines.
5737 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Likewise.
5738 (use_struct_convention): Remove prototype.
5739 (USE_STRUCT_CONVENTION): Remove define.
5740 * config/m68k/xm-nbsd.h: Remove file.
5741
5742 2004-05-04 Michael Snyder <msnyder@redhat.com>
5743
5744 * m68k-tdep.c (m68k_gdbarch_init): Default to using
5745 reg_struct_return method (as gcc usually does for cross targets).
5746
5747 2004-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5748
5749 Committed by Andrew Cagney.
5750 * s390-tdep.c (s390_sigtramp_frame_unwind_cache): Account for
5751 alignment padding when accessing ucontext struct members.
5752
5753 2004-05-04 Jim Blandy <jimb@redhat.com>
5754
5755 * config/ppc-tdep.h (struct gdbarch_tdep): Delete
5756 'ppc_gplast_regnum' member.
5757 (ppc_num_gprs): New enum constant.
5758 * ppc-linux-nat.c (ppc_register_u_addr): Use tdep->ppc_gp0_regnum
5759 and ppc_num_gprs instead of tdep->ppc_gplast_regnum.
5760 * rs6000-nat.c (regmap, fetch_inferior_registers,
5761 store_inferior_registers): Same.
5762 * rs6000-tdep.c (e500_pseudo_register_read)
5763 (e500_pseudo_register_write): Same.
5764 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gplast_regnum.
5765
5766 * config/rs6000/tm-rs6000.h (FPLAST_REGNUM): Delete #definition.
5767 * ppc-tdep.h (ppc_num_fprs): New enum constant.
5768 * aix-thread.c (fetch_regs_kernel_thread, fill_fprs,
5769 store_regs_kernel_thread): Use FP0_REGNUM + ppc_num_fprs, not
5770 FPLAST_REGNUM.
5771 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
5772 Same.
5773 * ppc-linux-nat.c (ppc_register_u_addr): Same.
5774 * rs6000-nat.c (regmap, fetch_inferior_registers)
5775 (store_inferior_registers): Same.
5776
5777 * aix-thread.c (fill_fprs): Fix off-by-one error comparing regno
5778 with FPLAST_REGNUM.
5779
5780 2004-05-03 Joel Brobecker <brobecker@gnat.com>
5781
5782 * dwarf2read.c (dwarf2_create_include_psymtab): Fix build
5783 failure detected by recent versions of GCC.
5784 (psymtab_to_symtab_1): No longer use the PST_PRIVATE macro
5785 to be consistent with the usage in dwarf2_create_include_psymtab.
5786
5787 2004-05-03 Michael Snyder <msnyder@redhat.com>
5788
5789 * mips-tdep.c (mips_gdbarch_init): Fix typo in comment.
5790 (heuristic_proc_start): Whitespace cleanup.
5791
5792 2004-05-04 Mark Kettenis <kettenis@gnu.org>
5793
5794 * sun3-nat.c: Remove file.
5795 * Makefile.in (tm-sun3.h tm-altos.h tm-sun2.h tm-3b1.h): Remove
5796 dependencies.
5797 (ALLDEPFILES): Remove sun3-nat.c.
5798 (sun3-nat.o): Remove dependencies.
5799
5800 * i386-interix-nat.c, i386-interix-tdep.c,
5801 config/i386/nm-interix.h, config/i386/interix.mh,
5802 config/i386/interix.mt: Remove files.
5803 * Makefile.in (i386-interix-nat.o, i386-interix-tdep.o): Remove
5804 dependencies.
5805
5806 2004-05-03 Mark Kettenis <kettenis@gnu.org>
5807
5808 * m68k-tdep.h (struct gdbarch_tdep): Add member
5809 struct_value_regnum.
5810 (m68k_svr4_init_abi): New prototype.
5811 * m68k-tdep.c: Include "floatformat.h". Add comment about all the
5812 different calling conventions.
5813 (m68k_extract_return_value): Remove code dealing with single-field
5814 structs.
5815 (m68k_store_return_value): Remove code dealing with single-field
5816 structs. Correctly store return values of 5, 6, 7 or 8 bytes.
5817 (m68k_extract_struct_value_address): Remove function.
5818 (m68k_svr4_extract_return_value,m68k_svr4_store_return_value)
5819 (m68k_reg_struct_return_p, m68k_return_value)
5820 (m68k_svr4_return_value): New functions.
5821 (m68k_use_struct_convention): Remove function.
5822 (m68k_push_dummy_call): Use new struct_value_regnum member of
5823 `struct gdbarch_tdep' instead of hardcoded register number to
5824 store STRUCT_ADDR.
5825 (m68k_svr4_init_abi): New function.
5826 (m68k_gdbarch_init): Don't set extract_return_value,
5827 store_return_values, deprecated_extract_struct_value_address and
5828 use_struct_convention. Set return_value instead. Initialize new
5829 struct_value_regnum member of `struct gdbarch_tdep'.
5830 * m68klinux-tdep.c: Update copyright year.
5831 (m68k_linux_extract_return_value, m68k_linux_store_return_value)
5832 (m68k_linux_extract_struct_value_address): Remove function.
5833 (m68k_linux_init_abi): Don't set extract_return_value,
5834 store_return_values, deprecated_extract_struct_value_address and
5835 use_struct_convention. Call m68k_svr4_init_abi but override the
5836 new struct_value_regnum member of `struct gdbarch_tdep'.
5837 * Makefile.in (m68k-tdep.o): Update dependencies.
5838
5839 2004-05-03 J. Brobecker <brobecker@gnat.com>
5840
5841 * dwarf2read.c (line_header): Add new included_p field in
5842 field file_names.
5843 (partial_die_info): New field has_stmt_list. New field line_offset.
5844 (dwarf2_create_include_psymtab): New function.
5845 (dwarf2_build_include_psymtabs): New function.
5846 (add_file_name): Add forward declaration. Initialize new field.
5847 (dwarf_decode_lines): Add new parameter. Enhance this procedure
5848 to be able to determine the list of files included by the
5849 given unit, and build their associated psymtabs.
5850 (dwarf2_build_psymtabs_hard): Build the psymtabs for the included
5851 files as well.
5852 (psymtab_to_symtab_1): Build the symtabs of all dependencies as well.
5853 (read_file_scope): Update call to dwarf_decode_lines.
5854 (read_partial_die): Handle DW_AT_stmt_list attributes.
5855
5856 2004-05-02 Michael Chastain <mec.gnu@mindspring.com>
5857
5858 Unfix PR gdb/1626.
5859 * configure.in: Revert special case for osf5.*.
5860 * configure: Regenerate.
5861
5862 2004-05-02 Jim Blandy <jimb@redhat.com>
5863
5864 Move the symbol-file-from-memory functions into their own file.
5865 * symfile-mem.c, symfile-mem.h: New files.
5866 * symfile.c (symbol_file_add_from_bfd): New function.
5867 (symbol_file_add): Call symbol_file_add_from_bfd.
5868 (symbol_file_add_from_memory, add_symbol_file_from_memory_command):
5869 Moved to symfile-mem.c.
5870 (_initialize_symfile): Move definition of
5871 add-symbol-file-from-memory command to symfile-mem.c.
5872 * symfile.h (symbol_file_add_from_bfd): New declaration.
5873 * config/i386/linux.mt (TDEPFILES): Add symfile-mem.o.
5874 * config/powerpc/linux.mt (TDEPFILES): Same.
5875 * Makefile.in (SFILES): Add symfile-mem.c.
5876 (symfile_mem_h): New variable.
5877 (HFILES_NO_SRCDIR): Add symfile-mem.h.
5878 (symfile-mem.o): New rule.
5879
5880 2004-05-01 Andrew Cagney <cagney@redhat.com>
5881
5882 * breakpoint.c (insert_bp_location): Use get_frame_id, and
5883 frame_find_by_id instead of frame_relative_level.
5884 (do_enable_breakpoint): Ditto.
5885 * thread.c: Update copyright.
5886 (info_threads_command): Ditto, simplify.
5887
5888 * frame.c (deprecated_generic_get_saved_register): Delete
5889 function, moved to "xstormy16-tdep.c".
5890 * xstormy16-tdep.c (xstormy16_get_saved_register): Inline
5891 deprecated_generic_get_saved_register from "frame.c".
5892 (xstormy16_frame_saved_register): Call
5893 xstormy16_get_saved_register.
5894 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Make
5895 static.
5896 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Delete.
5897 * frame.h (deprecated_generic_get_saved_register): Delete.
5898
5899 2004-05-01 Michael Chastain <mec.gnu@mindspring.com>
5900
5901 * dwarfread.c: Update documentation on the state of dwarf-1.
5902
5903 2004-05-01 Andrew Cagney <cagney@redhat.com>
5904
5905 * stack.c (select_frame_command): Delete call to
5906 frame_relative_level.
5907 (print_frame, set_backtrace_limit_command, backtrace_limit_info):
5908 Delete #if0 code.
5909 (frame_info): Do not print FRAMELESS.
5910 (print_block_frame_labels): Replace DEPRECATED_STREQ.
5911 (catch_info): Delete #if0 code.
5912
5913 * frame.c (create_sentinel_frame): Set type to SENTINEL_FRAME.
5914 * dummy-frame.c (dummy_frame_this_id): Use get_frame_type, instead
5915 of frame_relative_level.
5916 * sentinel-frame.c (sentinel_frame_unwinder): Set unwinder's type
5917 to SENTINEL_FRAME.
5918 * frame.h (enum frame_type): Add SENTINEL_FRAME.
5919 * s390-tdep.c (s390_prologue_frame_unwind_cache): Delete calls to
5920 frame_relative_level.
5921
5922 * frame.h (deprecated_set_frame_type): Delete declaration.
5923 * frame.c (deprecated_set_frame_type): Delete function, update
5924 comments.
5925
5926 * gdbarch.sh (DEPRECATED_PC_IN_SIGTRAMP): Delete.
5927 * gdbarch.h, gdbarch.c: Re-generate.
5928 * shnbsd-tdep.c (shnbsd_init_abi): Do not set pc_in_sigtramp.
5929 (shnbsd_pc_in_sigtramp): Delete.
5930 * i386-interix-tdep.c (i386_interix_init_abi): Do not set
5931 pc_in_sigtramp.
5932 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Do not set
5933 pc_in_sigtramp.
5934 * frame.h: Update comments.
5935 * ppc-linux-tdep.c: Update comments.
5936 * breakpoint.c (bpstat_what): Update comments.
5937
5938 * Makefile.in (m68klinux-tdep.o, m68klinux-nat.o): Fix
5939 m68klinux-tdep.o's dependencies, were previously added to
5940 m68klinux-nat.o.
5941
5942 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Use pc_in_sigtramp.
5943 * alpha-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp.
5944 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
5945 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
5946 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
5947
5948 * Makefile.in (m68klinux-nat.o): Update dependencies.
5949 * m68klinux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
5950 (m68k_linux_sigtramp_frame_cache)
5951 (m68k_linux_sigtramp_frame_this_id)
5952 (m68k_linux_sigtramp_frame_prev_register)
5953 (m68k_linux_sigtramp_frame_unwind)
5954 (m68k_linux_sigtramp_frame_sniffer)
5955 (struct m68k_linux_sigtramp_info, m68k_linux_init_abi): Code from
5956 m68k-tdep.h and m68k-tdep.c, add "linux" to function and variable
5957 names, use trad-frame.h.
5958 * m68k-tdep.h (struct gdbarch_tdep): Delete get_sigtramp_info.
5959 (struct m68k_sigtramp_info): Delete.
5960 * m68k-tdep.c (m68k_sigtramp_frame_cache)
5961 (m68k_sigtramp_frame_this_id, m68k_sigtramp_frame_prev_register)
5962 (m68k_sigtramp_frame_unwind, m68k_sigtramp_frame_sniffer)
5963 (m68k_gdbarch_init): Delete all the sigtramp code, moved to
5964 "m68klinux-tdep.c".
5965
5966 * infrun.c (check_sigtramp2): Delete check for
5967 DEPRECATED_PC_IN_SIGTRAMP and INNER_THAN.
5968
5969 2004-05-01 Mark Kettenis <kettenis@gnu.org>
5970
5971 * m68k-tdep.h (m68kbsd_fpreg_offset): New prototype.
5972
5973 2004-05-01 Andrew Cagney <cagney@redhat.com>
5974
5975 * frv-linux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
5976 (frv_linux_sigtramp_frame_cache)
5977 (frv_linux_sigtramp_frame_this_id)
5978 (frv_linux_sigtramp_frame_prev_register)
5979 (frv_linux_sigtramp_frame_unwind)
5980 (frv_linux_sigtramp_frame_sniffer): Copied from frv-tdep.c,
5981 include "linux" in function and variable names, directly call
5982 frv_linux_pc_in_sigtramp and frv_linux_sigcontext_reg_addr, use
5983 the latest trad-frame code.
5984 (frv_linux_init_abi): Append frv_linux_sigtramp_frame_sniffer, do
5985 not set frv_sigcontext_reg_addr or deprecated_pc_in_sigtramp
5986 * Makefile.in (frv-linux-tdep.o): Update dependencies.
5987 * frv-tdep.h (frv_set_sigcontext_reg_addr): Delete declaration.
5988 * frv-tdep.c (frv_sigtramp_frame_cache)
5989 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
5990 (frv_sigtramp_frame_unwind, frv_sigtramp_frame_sniffer): Moved to
5991 frv-linux-tdep.c.
5992 (frv_gdbarch_init): Do not append a sigtramp sniffer.
5993 (struct gdbarch_tdep): Delete sigcontext_reg_addr.
5994 (frv_set_sigcontext_reg_addr): Delete function.
5995
5996 * gdbarch.sh (DEPRECATED_SIGTRAMP_START)
5997 (DEPRECATED_SIGTRAMP_END): Delete.
5998 * gdbarch.h, gdbarch.c: Re-generate.
5999 * arch-utils.c (legacy_pc_in_sigtramp): Simplify.
6000 * config/vax/tm-vaxbsd.h: Update copyright.
6001 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
6002 (DEPRECATED_IN_SIGTRAMP): Define.
6003 * config/m68k/tm-nbsd.h: Update copyright.
6004 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
6005 (DEPRECATED_IN_SIGTRAMP): Define.
6006
6007 2004-05-01 Mark Kettenis <kettenis@gnu.org>
6008
6009 * dwarf2-frame.c (read_encoded_value): Handle DW_EH_PE_funcrel
6010 encondings. Fixes PR gdb/1628.
6011
6012 * dwarf2-frame.c (execute_cfa_program): Complain if we encounter a
6013 DW_CFA_restore state without a matching DW_CFA_remember_state
6014 instead of aborting. Fixes PR backtrace/1589.
6015
6016 2004-04-30 Joel Brobecker <brobecker@gnat.com>
6017
6018 * MAINTAINERS: Add self as AIX maintainer.
6019 Update my e-mail address in write-after-approval section.
6020
6021 2004-04-30 Andrew Cagney <cagney@redhat.com>
6022
6023 * frame.c (frame_type_from_pc): Delete call to PC_IN_SIGTRAMP.
6024 (legacy_get_prev_frame): Ditto.
6025
6026 * mips-tdep.c (mips_pc_in_sigtramp): Delete.
6027 (mips_gdbarch_init): Do not set pc_in_sigtramp.
6028 * mipsread.c (sigtramp_address): Delete extern variable.
6029 (mipscoff_new_init): Delete reference.
6030 * mdebugread.c (sigtramp_address, sigtramp_end): Delete variables.
6031 (fixup_sigtramp): Delete function.
6032 * config/mips/tm-mips.h (sigtramp_address, sigtramp_end)
6033 (fixup_sigtramp): Delete declarations.
6034
6035 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Do not set
6036 deprecated_pc_in_sigtramp.
6037 (ppcnbsd_pc_in_sigtramp): Delete function.
6038
6039 2004-05-01 Mark Kettenis <kettenis@gnu.org>
6040
6041 * config/m68k/nm-nbsd.h: Tweak comments.
6042 * config/m68k/nm-nbsdaout.h: Likewise.
6043
6044 2004-04-30 Andrew Cagney <cagney@redhat.com>
6045
6046 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Call
6047 legacy_pc_in_sigtramp.
6048 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Ditto.
6049
6050 2004-05-01 Mark Kettenis <kettenis@gnu.org>
6051
6052 Add OpenBSD/m68k support.
6053 * NEWS (New native configurations): Mention OpenBSD/m68k.
6054 * m68kbsd-tdep.c: New file.
6055 * m68kbsd-nat.c: New file.
6056 * Makefile.in (ALLDEPFILES): Add m68kbsd-nat.c and m68kbsd-tdep.c.
6057 (m68kbsd-nat.o, m68kbsd-tdep.o): New dependencies.
6058 * configure.host: Add m68k-*-openbsd.
6059 * configure.tgt: Add m68k-*-openbsd.
6060 * config/m68k/tm-obsd.h: New file.
6061 * config/m68k/obsd.mt: New file.
6062 * config/m68k/obsd.mh: New file.
6063 * config/djgpp/fnchange.lst: Add entries for m68kbsd-nat.c and
6064 m68kbsd-tdep.c.
6065
6066 2004-04-30 Andrew Cagney <cagney@redhat.com>
6067
6068 * mipsnbsd-tdep.c (mipsnbsd_pc_in_sigtramp): Delete function.
6069 (mipsnbsd_init_abi): Do not set pc_in_sigtramp.
6070
6071 2004-04-30 Mark Kettenis <kettenis@gnu.org>
6072
6073 * m68k-tdep.c (REMOTE_BPT_VECTOR): Remove define.
6074 * config/m68k/tm-nbsd.h (REMOTE_BPT_VECTOR): Remove define.
6075
6076 2004-04-30 Brian Ford <ford@vss.fsi.com>
6077
6078 Revert 2004-04-16 change.
6079 * i386-tdep.c (i386_gdbarch_init): Fix comment typos.
6080 (i386_coff_init_abi): Remove.
6081 * i386-tdep.h (i386_coff_init_abi): Remove.
6082 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Remove call to above.
6083
6084 2004-04-30 Andrew Cagney <cagney@redhat.com>
6085
6086 * blockframe.c (find_pc_partial_function): Delete use of
6087 DEPRECATED_PC_IN_SIGTRAMP, DEPRECATED_SIGTRAMP_START and
6088 DEPRECATED_SIGTRAMP_END.
6089
6090 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Delete.
6091 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Delete.
6092 * config/mips/tm-nbsd.h: Delete undef DEPRECATED_IN_SIGTRAMP.
6093 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Delete.
6094 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Delete.
6095
6096 * defs.h (deprecated_inside_entry_file): Delete declaration.
6097 * blockframe.c (deprecated_inside_entry_file): Delete function.
6098 (legacy_frame_chain_valid): Delete call.
6099 * sh64-tdep.c (sh64_frame_chain): Delete call.
6100 * objfiles.h: Update comments.
6101 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Delete
6102 call.
6103 * frame.c (get_prev_frame): Delete call, update comments.
6104
6105 2004-04-30 Brian Ford <ford@vss.fsi.com>
6106
6107 * MAINTAINERS (Write After Approval): Add myself.
6108
6109 2004-04-30 Andrew Cagney <cagney@redhat.com>
6110
6111 * gdbarch.sh (BELIEVE_PCC_PROMOTION_TYPE): Delete.
6112 * gdbarch.h, gdbarch.c: Re-generate.
6113 * stabsread.c (define_symbol): Delete BELIEVE_PCC_PROMOTION_TYPE
6114 code.
6115
6116 2004-04-30 Andrew Cagney <cagney@redhat.com>
6117
6118 * gdb-events.sh (selected_thread_changed)
6119 (selected_frame_level_changed, target_changed): Delete.
6120 * gdb-events.h, gdb-events.c: Re-generate.
6121 * valops.c (value_assign): Update.
6122 * stack.c (select_frame_command, up_silently_base)
6123 (down_silently_base): Update.
6124
6125 2004-04-29 Andrew Cagney <cagney@redhat.com>
6126
6127 * mips-tdep.c (mips_register_type): Re-write, handle 32-bit ABI
6128 registers correctly.
6129 (print_gp_register_row, mips32_heuristic_proc_desc)
6130 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
6131 (mips_o64_push_dummy_call, mips_eabi_push_dummy_call): Eliminate
6132 references to mips_isa_regsize.
6133
6134 2004-04-29 Andrew Cagney <cagney@redhat.com>
6135
6136 * mips-tdep.c (struct gdbarch_tdep): Delete
6137 mips_fp_register_double.
6138 (FP_REGISTER_DOUBLE): Delete macro, replace with test for
6139 mips_abi_regsize.
6140 (mips_gdbarch_init): Do not set mips_fp_register_double.
6141 (mips_dump_tdep): Do not print FP_REGISTER_DOUBLE.
6142
6143 2004-04-29 Joel Brobecker <brobecker@gnat.com>
6144
6145 Committed by Andrew Cagney.
6146 * infrun.c (handle_inferior_event): Rely on frame IDs to detect
6147 function calls.
6148
6149 2004-04-29 Andrew Cagney <cagney@redhat.com>
6150
6151 * mips-tdep.c (mips_abi_regsize): Replace tdep parameter with
6152 gdbarch, use mips_abi, update callers.
6153 (mips_stack_argsize): Replace tdep parameter with gdbarch, use
6154 mips_abi_regsize, update callers.
6155 (struct gdbarch_tdep): Delete mips_default_stack_argsize and
6156 mips_default_abi_regsize.
6157 (mips_gdbarch_init): Do not set mips_default_stack_argsize and
6158 mips_default_abi_regsize.
6159
6160 2004-04-29 Andrew Cagney <cagney@redhat.com>
6161
6162 * mips-tdep.c (mips_abi_regsize): Rename mips_saved_regsize.
6163 (mips_abi_regsize_string): Rename mips_saved_regsize_string.
6164 (struct gdbarch_tdep): Rename mips_default_saved_regsize to
6165 mips_default_abi_regsize.
6166 (mips_isa_regsize): Rename mips_regisze.
6167 * mipsnbsd-tdep.c: Update.
6168 * mips-linux-tdep.c: Update.
6169 * irix5-nat.c: Update.
6170 * mips-tdep.h (mips_isa_regsize): Update.
6171
6172 * gdb-events.sh (WITH_GDB_EVENTS): Delete macro and references.
6173 Delete all disabled code.
6174 * gdb-events.h, gdb-events.c: Re-generate.
6175
6176 2004-04-19 Jerome Guitton <guitton@gnat.com>
6177 Mark Kettenis <kettenis@gnu.org>
6178
6179 * i386-tdep.c (i386_skip_prologue): follow the last jump only if
6180 the function begins with a branch instruction.
6181
6182 2004-04-29 Mark Kettenis <kettenis@gnu.org>
6183
6184 * i386-tdep.c: Fix spelling mistakes.
6185
6186 2004-04-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6187 Andrew Cagney <cagney@redhat.com>
6188
6189 * configure.in (mips-sgi-irix5*): Define _KMEMUSER for
6190 <sys/proc.h>.
6191 * acconfig.h: Provide default _KMEMUSER value.
6192 * config.in, configure: Re-generate.
6193 * NEWS: Mention fix.
6194
6195 2004-04-24 Randolph Chung <tausq@debian.org>
6196
6197 * configure.host (hppa*-*-linux*): New target.
6198 * configure.tgt (hppa*-*-linux*): Likewise.
6199 * hppa-tdep.c (hppa_gdbarch_init): Set cannot_fetch_register, move
6200 gdbarch_init_osabi() call earlier so that osabi-specific frame
6201 unwinders can be registered first.
6202 * config/djgpp/fnchange.lst: Add entries for hppa-linux-tdep.c and
6203 hppa-linux-nat.c.
6204 * config/pa/tm-hppa.h (ISR_REGNUM, PID0_REGNUM, PID1_REGNUM)
6205 (PID2_REGNUM, PID3_REGNUM): Add definitions of some register numbers.
6206 * config/pa/linux.mh: New file.
6207 * config/pa/linux.mt: New file.
6208 * config/pa/nm-linux.h: New file.
6209 * config/pa/xm-linux.h: New file.
6210 * hppa-linux-nat.c: New file.
6211 * hppa-linux-tdep.c: New file.
6212
6213 2004-04-28 Randolph Chung <tausq@debian.org>
6214
6215 * hppa-tdep.c (hppa32_return_value): Handle both 4- and 8-byte fp
6216 return values.
6217 (hppa32_push_dummy_call): Fix small struct and floating point argument
6218 passing, and make sure the stack frame is properly aligned.
6219
6220 2004-04-28 Andrew Cagney <cagney@redhat.com>
6221
6222 * stack.c (print_stack_frame): Fix description.
6223
6224 * NEWS: Mention gdb/gdbserver/configure execute permission
6225 changed. PR server/519.
6226
6227 2004-04-28 Andrew Cagney <cagney@redhat.com>
6228
6229 * stack.c (print_stack_frame_stub): Delete declaration.
6230 (struct print_stack_frame_args, print_stack_frame)
6231 (print_frame_info, print_frame): Replace "source" with print what.
6232 Replace "print" with "print_level". Replace "args" with
6233 "print_args".
6234 * frame.h (show_and_print_stack_frame, print_stack_frame)
6235 (print_frame_info): Update declarations.
6236 * stack.c (select_and_print_frame, frame_command)
6237 (current_frame_command, up_command, down_command): Update calls -
6238 use get_selected_frame, pass "enum print_what" for source, do not
6239 call frame_relative_level.
6240 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Ditto.
6241 * remote-rdp.c (remote_rdp_open): Ditto.
6242 * remote-mips.c (common_open): Ditto.
6243 * remote-e7000.c (e7000_start_remote): Ditto.
6244 * ocd.c (ocd_start_remote): Ditto.
6245 * mi/mi-main.c (mi_cmd_exec_return): Ditto.
6246 * infrun.c (normal_stop): Ditto.
6247 * inflow.c (kill_command): Ditto.
6248 * infcmd.c (finish_command): Ditto.
6249 * corelow.c (core_open): Ditto.
6250 * tracepoint.c (finish_tfind_command): Ditto.
6251 * thread.c (info_threads_command, info_threads_command)
6252 (restore_current_thread, do_captured_thread_select): Ditto.
6253 * ada-tasks.c (task_command): Ditto.
6254
6255 2004-04-26 Orjan Friberg <orjanf@axis.com>
6256
6257 * frame.c: Include "observer.h".
6258 (frame_observer_target_changed): New function.
6259 (_initialize_frame): Attach target_changed observer.
6260 * regcache.c: Include "observer.h".
6261 (regcache_observer_target_changed): New function.
6262 (_initialize_regcache): Attach target_changed observer.
6263 * valops.c: Include "observer.h".
6264 (value_assign): Notify target_changed event when modifying register.
6265 * Makefile.in (frame.o, regcache.o, valops.o): Add $(observer_h).
6266
6267 2004-04-26 Orjan Friberg <orjanf@axis.com>
6268
6269 From Paul Koning <pkoning@equallogic.com>:
6270 * breakpoint.c (free_valchain): New function.
6271 (insert_bp_location, delete_breakpoint): Use free_valchain.
6272 (remove_breakpoint): Do not remove the valchain.
6273 (bpstat_stop_status): If not stopped by watchpoint, skip
6274 watchpoints when generating stop status list.
6275 * infrun.c (handle_inferior_event): Make
6276 stepped_after_stopped_by_watchpoint a global variable.
6277 * remote.c (remote_stopped_data_address): Return watch data
6278 address rather than zero if stepped_after_stopped_by_watchpoint is
6279 set.
6280
6281 2004-04-25 Michael Chastain <mec.gnu@mindspring.com>
6282
6283 Fix PR gdb/1626.
6284 * configure.in: Check for curses after termcap.
6285 On osf5.*, do not check for ncurses.
6286 * configure: Regenerate.
6287
6288 2004-04-25 Mark Kettenis <kettenis@gnu.org>
6289
6290 * ppcobsd-nat.c: Include "ppc-tdep.h".
6291 * Makefile.in (ppcobsd-nat.o): Update dependencies.
6292
6293 * stack.c (return_command): Use CHECK_TYPEDEF on the return type.
6294 Fixes PR tdep/1623 and PR tdep/1624.
6295
6296 2004-04-24 Michael Chastain <mec.gnu@mindspring.com>
6297
6298 * xmodem.h, xmodem.c: Remove files.
6299 * Makefile.in: Remove references to xmodem.h, xmodem.c.
6300
6301 2004-04-23 Randolph Chung <tausq@debian.org>
6302
6303 * hppa-tdep.c (hppa_stub_unwind_cache, hppa_stub_frame_unwind_cache)
6304 (hppa_stub_frame_this_id, hppa_stub_frame_prev_register)
6305 (hppa_stub_frame_unwind, hppa_stub_unwind_sniffer): New stub unwinder
6306 for handling stackless frames.
6307 (hppa_gdbarch_init): Link in hppa_stub_unwind_sniffer.
6308
6309 2004-04-23 Randolph Chung <tausq@debian.org>
6310
6311 * hppa-tdep.c (hppa_frame_cache): Handle the case when frame unwind
6312 starts at a pc before the frame is created.
6313
6314 2004-04-23 Joel Brobecker <brobecker@gnat.com>
6315
6316 * ChangeLog-2002: Fix year in one of the ChangeLog entries.
6317
6318 2004-04-23 Jerome Guitton <guitton@gnat.com>
6319
6320 * rs6000-tdep.c (rs6000_extract_return_value): When extracting a float,
6321 use convert_typed_floating to get the appropriate format.
6322
6323 2004-04-22 Randolph Chung <tausq@debian.org>
6324
6325 * hppa-tdep.h (find_unwind_entry, hppa_get_field, hppa_extract_5_load)
6326 (hppa_extract_5R_store, hppa_extract_5r_store, hppa_extract_17)
6327 (hppa_extract_21, hppa_extract_14, hppa_low_sign_extend)
6328 (hppa_sign_extend): Add prototype.
6329 * hppa-tdep.c (get_field, extract_5_load, extract_5R_store)
6330 (extract_5r_store, extract_17, extract_21, extract_14, low_sign_extend)
6331 (sign_extend): Rename with hppa_ prefix and make non-static. Other
6332 hppa targets will also use these functions.
6333 (find_unwind_entry): Remove prototype (moved to hppa-tdep.h).
6334 (hppa_in_solib_call_trampoline, hppa_in_solib_return_trampoline)
6335 (hppa_skip_trampoline_code): Move to hppa-hpux-tdep.c
6336 (hppa_gdbarch_init): Remove gdbarch setting of
6337 skip_trampoline_code, in_solib_call_trampoline and
6338 in_solib_return_trampoline.
6339 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
6340 (hppa64_hpux_in_solib_call_trampoline): New functions, split from
6341 hppa_in_solib_call_trampoline.
6342 (hppa_hpux_in_solib_return_trampoline, hppa_hpux_skip_trampoline_code):
6343 Moved from hppa-tdep.c.
6344 (hppa_hpux_init_abi): Set gdbarch for skip_trampoline_code,
6345 in_solib_call_trampoline and in_solib_return_trampoline.
6346
6347 2004-04-22 Randolph Chung <tausq@debian.org>
6348
6349 * hppa-tdep.c (hppa_debug): New variable.
6350 (find_unwind_entry, hppa_frame_cache): Add debug output.
6351 (_initialize_hppa_tdep): Add command to set debug flag.
6352
6353 2004-04-22 Andrew Cagney <cagney@redhat.com>
6354
6355 * ppcnbsd-tdep.c: Update copyright. Include "tramp-frame.h" and
6356 "trad-frame.h".
6357 (ppcnbsd_sigtramp_cache_init, ppcnbsd_sigtramp): Implement a NetBSD
6358 signal trampoline unwinder.
6359 (ppcnbsd_init_abi): Register ppcnbsd_sigtramp.
6360
6361 2004-04-22 Mark Kettenis <kettenis@gnu.org>
6362
6363 Add OpenBSD/powerpc support.
6364 * NEWS (New native configurations): Mention OpenBSD/powerpc.
6365 * ppc-tdep.h (struct ppc_reg_offsets): New structure.
6366 (ppc_supply_gregset, ppc_supply_fpregset, ppc_collect_gregset)
6367 (ppc_collect_fpregset): New prototypes.
6368 * ppcobsd-nat.c: New file.
6369 * ppcobsd-tdep.c: New file.
6370 * ppcobsd-tdep.h: New file.
6371 * rs6000-tdep.c: Include "regset.h".
6372 (ppc_supply_reg, ppc_collect_reg, ppc_supply_gregset)
6373 (ppc_supply_fpregset, ppc_collect_gregset, ppc_collect_fpregset):
6374 New functions.
6375 * Makefile.in (ALLDEPFILES): Add pccobsd-nat.c and ppcobsd-tdep.c.
6376 (ppcobsd-nat.o, ppcobsd-tdep.o): New dependencies.
6377 (rs6000-tdep.o): Update dependencies.
6378 * configure.host: Add powerpc-*-openbsd.
6379 * configure.tgt: Add powerpc-*-openbsd.
6380 * config/powerpc/obsd.mh: New file.
6381 * config/powerpc/nm-obsd.h: New file.
6382 * config/powerpc/obsd.mt: New file.
6383
6384 2004-04-22 Andrew Cagney <cagney@redhat.com>
6385
6386 * frame.h (show_frame_info): Delete declaration.
6387
6388 * arm-tdep.c (arm_prologue_this_id): Delete redundant cycle test.
6389 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
6390 * m32r-tdep.c (m32r_frame_this_id): Ditto.
6391 * frv-tdep.c (frv_frame_this_id): Ditto.
6392 * avr-tdep.c (avr_frame_this_id): Ditto.
6393
6394 2004-04-22 Elena Zannoni <ezannoni@redhat.com>
6395
6396 * MAINTAINERS: Drop maintenance of gdb.stabs, and linespec.c.
6397
6398 2004-04-22 Jim Blandy <jimb@redhat.com>
6399
6400 * ppc-linux-nat.c (ppc_register_u_addr): Don't assume that r0 is
6401 register number zero.
6402
6403 2004-04-21 Michael Snyder <msnyder@redhat.com>
6404
6405 * mips-tdep.c (heuristic_proc_start):
6406 Warning() already prefixes "Warning: ".
6407
6408 2004-04-21 Andrew Cagney <cagney@redhat.com>
6409
6410 * annotate.h (deprecated_annotate_starting_hook)
6411 (deprecated_annotate_stopped_hook)
6412 (deprecated_annotate_exited_hook)
6413 (deprecated_annotate_signal_hook)
6414 (deprecated_annotate_signalled_hook): Deprecate.
6415 * tracepoint.h (deprecated_create_tracepoint_hook)
6416 (deprecated_delete_tracepoint_hook)
6417 (deprecated_modify_tracepoint_hook)
6418 (deprecated_trace_find_hook)
6419 (deprecated_trace_start_stop_hook): Deprecate.
6420 * target.h (deprecated_target_new_objfile_hook): Deprecate.
6421 * remote.h (deprecated_target_resume_hook)
6422 (deprecated_target_wait_loop_hook): Deprecate.
6423 * gdbcore.h (deprecated_exec_file_display_hook)
6424 (deprecated_file_changed_hook): Deprecate.
6425 * frame.h (deprecated_selected_frame_level_changed_hook): Deprecate.
6426 * defs.h (deprecated_modify_breakpoint_hook)
6427 (deprecated_command_loop_hook, deprecated_show_load_progress)
6428 (deprecated_print_frame_info_listing_hook)
6429 (deprecated_query_hook, deprecated_warning_hook)
6430 (deprecated_flush_hook, deprecated_create_breakpoint_hook)
6431 (deprecated_delete_breakpoint_hook)
6432 (deprecated_interactive_hook, deprecated_registers_changed_hook)
6433 (deprecated_readline_begin_hook, deprecated_readline_hook)
6434 (deprecated_readline_end_hook, deprecated_register_changed_hook)
6435 (deprecated_memory_changed_hook, deprecated_init_ui_hook)
6436 (deprecated_context_hook, deprecated_target_wait_hook)
6437 (deprecated_attach_hook, deprecated_detach_hook)
6438 (deprecated_call_command_hook, deprecated_set_hook)
6439 (deprecated_error_hook, deprecated_error_begin_hook)
6440 (deprecated_ui_load_progress_hook): Deprecate.
6441 * valops.c, uw-thread.c, utils.c, tui/tui-io.c: Update.
6442 * tui/tui-hooks.c, tracepoint.c, top.c, thread-db.c: Update.
6443 * target.c, symfile.c, stack.c, sol-thread.c, rs6000-nat.c: Update.
6444 * remote.c, remote-mips.c, regcache.c, mi/mi-interp.c: Update.
6445 * main.c, interps.c, infcmd.c, hpux-thread.c, frame.c: Update.
6446 * exec.c, dsrec.c, d10v-tdep.c, corefile.c, complaints.c: Update.
6447 * cli/cli-script.c, cli/cli-setshow.c, breakpoint.c: Update.
6448 * annotate.c, aix-thread.c: Update.
6449
6450 2004-04-21 Andrew Cagney <cagney@redhat.com>
6451
6452 * Makefile.in (vaxnbsd-tdep.o): Update dependencies.
6453 * vaxnbsd-tdep.c: Include "gdb_string.h".
6454
6455 * symfile.c (symbol_file_add_from_memory): #if 0 function.
6456 (add_symbol_file_from_memory_command): #if 0 function body, call
6457 error instead.
6458
6459 2004-04-21 Andrew Cagney <cagney@redhat.com>
6460
6461 * gdbcore.h: Update copyright.
6462 (deprecated_add_core_fns): Rename add_core_fns.
6463 * win32-nat.c (_initialize_core_win32): Update.
6464 * sun3-nat.c (_initialize_core_sun3): Update.
6465 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Update.
6466 * rs6000-nat.c (_initialize_core_rs6000): Update.
6467 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Update.
6468 * nto-tdep.c (_initialize_nto_tdep): Update.
6469 * ns32knbsd-nat.c (_initialize_ns32knbsd_nat): Update.
6470 * mipsnbsd-tdep.c (_initialize_mipsnbsd_tdep): Update.
6471 * mips-nat.c (_initialize_core_mips): Update.
6472 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
6473 * m68knbsd-nat.c (_initialize_m68knbsd_nat): Update.
6474 * m68klinux-nat.c (_initialize_m68k_linux_nat): Update.
6475 * lynx-nat.c (_initialize_core_lynx): Update.
6476 * irix5-nat.c (_initialize_core_irix5): Update.
6477 * i386-interix-nat.c (_initialize_core_interix): Update.
6478 * cris-tdep.c (_initialize_cris_tdep): Update.
6479 * corelow.c (deprecated_add_core_fns): Update.
6480 * core-regset.c (_initialize_core_regset): Update.
6481 * core-aout.c (_initialize_core_aout): Update.
6482 * armnbsd-nat.c (_initialize_arm_netbsd_nat): Update.
6483 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Update.
6484 * alpha-nat.c (_initialize_core_alpha): Update.
6485
6486 2004-04-21 Jim Blandy <jimb@redhat.com>
6487
6488 * rs6000-tdep.c (registers_e500, registers_7400): Doc fixes.
6489
6490 2004-04-19 Daniel Jacobowitz <drow@mvista.com>
6491
6492 * dwarf2read.c (dwarf2_tmp_obstack, dwarf2_free_tmp_obstack):
6493 Delete.
6494 (dwarf_alloc_block): Take a CU argument. Use the comp_unit_obstack.
6495 (read_attribute_value): Update calls to dwarf_alloc_block.
6496 (dwarf2_build_psymtabs_hard): Don't initialize or clean up
6497 dwarf2_tmp_obstack.
6498 (psymtab_to_symtab_1): Likewise. Clean up using
6499 free_stack_comp_unit.
6500 (add_to_cu_func_list): Use the comp_unit_obstack.
6501
6502 2004-04-19 Joel Brobecker <brobecker@gnat.com>
6503
6504 * dwarf2read.c (dwarf2_flag_true_p): New function.
6505 (die_is_declaration): Use the function above. Add some comments.
6506
6507 2004-04-19 Mark Kettenis <kettenis@gnu.org>
6508
6509 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Specify
6510 architecture when registering sparcnbsd_core_osabi_sniffer.
6511 Adjust comment.
6512
6513 2004-04-18 Mark Kettenis <kettenis@gnu.org>
6514
6515 * infcall.c (find_function_addr): Add FUNCTION_START_OFFSET to
6516 return value.
6517
6518 Based on a patch from Brian Ford <ford@vss.fsi.com>:
6519 * i386-tdep.c: Correct register numbering scheme comments
6520 throughout.
6521 (i386_stab_reg_to_regnum): Rename to i386_dbx_reg_to_regnum.
6522 (i386_dwarf_reg_to_regnum): Rename to i386_svr4_reg_to_regnum.
6523 (i386_coff_init_abi, i386_elf_init_abi): Accomodate renames above.
6524 (i386_gdb_arch_init): Likewise.
6525
6526 * Makefile.in (ALLDEPFILES): List ppc-sysv-tdep.c, ppcnbsd-nat.c
6527 and ppcnbsd-tdep.c instead of ppc-sysv-tdep.o, ppcnbsd-nat.o and
6528 ppcnbsd-tdep.o.
6529
6530 * m68k-tdep.h: Tweak comments.
6531 * m68k-tdep.c: Tweak comment.
6532
6533 2004-04-17 Randolph Chung <tausq@debian.org>
6534
6535 * Makefile.in (hppa-hpux-tdep.o): Add $(hppa_tdep_h).
6536 * hppa-hpux-tdep.c (hppa-tdep.h): Include.
6537 (hppa_hpux_som_init_abi): Set is_elf to 0.
6538 (hppa_hpux_elf_init_abi): Set is_elf to 1.
6539 * hppa-tdep.c (low_text_segment_address): Remove global.
6540 (record_text_segment_lowaddr): Pass in low address as parameter. Use
6541 section offset to calculate segment address.
6542 (internalize_unwinds): Define low_text_segment_address as local and
6543 pass to record_text_segment_lowaddr for ELF targets.
6544 (hppa_gdbarch_init): Zero fill tdep structure.
6545 (hppa_dump_tdep): Print tdep structure.
6546 * hppa-tdep.h (gdbarch_tdep): Add is_elf member to tdep structure.
6547
6548 2004-04-17 Randolph Chung <tausq@debian.org>
6549
6550 * hppa-tdep.c (hppa_pseudo_register_read): Define.
6551 (hppa_gdbarch_init): Set pseudo_register_read.
6552 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Remove.
6553 * regcache.c (supply_register): Remove check for
6554 DEPRECATED_CLEAN_UP_REGISTER_VALUE since we've removed the last user.
6555
6556 2004-04-17 Randolph Chung <tausq@debian.org>
6557
6558 * Makefile.in (hpread.o, pa64solib.o, somsolib.o): Add $(hppa_tdep_h)
6559 * hppa-tdep.h (INSTRUCTION_SIZE): Move from tm-hppa.h.
6560 (hpread_adjust_stack_address): Move to hpread.c.
6561 * hppa-tdep.h (unwind_table_entry, unwind_stub_types, obj_unwind_info,
6562 obj_private_struct): Move from tm-hppa.h.
6563 * hpread.c (hppa-tdep.h): Include.
6564 (hpread_adjust_stack_address): Move from hppa-tdep.c.
6565 (hpread_read_function_type, hpread_read_doc_function_type)
6566 (hpread_process_one_debug_symbol): Call hpread_adjust_stack_address
6567 directly.
6568 * pa64solib.c (hppa-tdep.h): Include.
6569 * somsolib.c (hppa-tdep.h): Include.
6570 * config/pa/tm-hppa.h (frame_info, frame_saved_regs, value, type,
6571 inferior_status): Remove unused forward declarations.
6572 (INSTRUCTION_SIZE): Move to hppa-tdep.c.
6573 (unwind_table_entry, unwind_stub_types, obj_unwind_info,
6574 obj_private_struct): Move to hppa-tdep.h.
6575 (HPREAD_ADJUST_STACK_ADDRESS): Remove.
6576
6577 2004-04-17 Randolph Chung <tausq@debian.org>
6578
6579 * hppa-tdep.c (hppa_reg_struct_has_addr, hppa_skip_prologue)
6580 (hppa_skip_trampoline_code, hppa_in_solib_call_trampoline)
6581 (hppa_in_solib_return_trampoline, hppa_cannot_store_register)
6582 (hppa_smash_text_address, hppa_target_read_pc, hppa_target_write_pc):
6583 Remove forward declaration and make static.
6584 (hppa_reg_struct_has_addr): Remove.
6585
6586 2004-04-16 Joel Brobecker <brobecker@gnat.com>
6587
6588 * observer.sh: Move comments in sed command to first column.
6589
6590 2004-04-16 Jason Molenda (jmolenda@apple.com)
6591
6592 * frame.c: Minor typeo corrections in comments.
6593
6594 2004-04-16 Joel Brobecker <brobecker@gnat.com>
6595
6596 * observer.c (observer_test_first_notification_function): Update
6597 function profile.
6598 (observer_test_second_notification_function): Likewise.
6599 (observer_test_third_notification_function): Likewise.
6600
6601 2004-04-16 Mark Kettenis <kettenis@gnu.org>
6602
6603 From Brian Ford <ford@vss.fsi.com>:
6604 * i386-tdep.c (i386_coff_init_abi): New function.
6605 * i386-tdep.h (i386_coff_init_abi): New prototype.
6606 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Call it. Use correct
6607 register number translation functions for DWARF and DWARF 2.
6608
6609 2004-04-16 Joel Brobecker <brobecker@gnat.com>
6610
6611 * dwarf2read.c: Back out my previous change, it was incorrect.
6612
6613 2004-04-16 Daniel Jacobowitz <drow@mvista.com>
6614
6615 * dwarf2read.c: Include "hashtab.h".
6616 (struct dwarf2_cu): Add partial_dies, comp_unit_obstack,
6617 has_namespace_info.
6618 (struct partial_die_info): Add comments. Use bitfields to reduce
6619 memory footprint. Add scope, scope_set, has_specification,
6620 spec_offset, die_parent, die_child, and die_sibling.
6621 (peek_die_abbrev): Add prototype.
6622 (partial_read_comp_unit_head): New function, broken out from
6623 dwarf2_build_psymtabs_hard.
6624 (dwarf2_build_psymtabs_hard): Remove unused variable abbrev_ptr.
6625 Use partial_read_comp_unit_head. Initialize the CU and
6626 comp_unit_obstack. Update calls to read_partial_die and
6627 scan_partial_symbols. Use free_stack_comp_unit and
6628 load_partial_dies.
6629 (scan_partial_symbols): Change PDI to a pointer. Use the child and
6630 sibling pointers to walk partial DIEs. Call fixup_partial_die.
6631 Update calls to helper functions. Remove NAMESPACE argument.
6632 Update comments.
6633 (partial_die_parent_scope, partial_die_full_name): New functions.
6634 (add_partial_symbol): Remove namespace argument. Update call to
6635 pdi_needs_namespace. Use partial_die_full_name. Handle
6636 DW_TAG_namespace. Check has_namespace_info flag.
6637 (pdi_needs_namespace): Remove NAMESPACE argument. Just check the
6638 tag. Handle namespaces.
6639 (add_partial_namespace, add_partial_enumeration): Simplify.
6640 (guess_structure_name): New function, derived from
6641 add_partial_structure.
6642 (add_partial_structure): Remove.
6643 (determine_class_name): Update comment.
6644 (dwarf2_read_abbrevs): Set has_namespace_info flag.
6645 (is_type_tag_for_partial, load_partial_dies): New functions.
6646 (read_partial_die): Pass abbrev and abbrev_len as arguments.
6647 Record specifications instead of following them immediately.
6648 (find_partial_die_in_comp_unit, find_partial_die)
6649 (fixup_partial_die, free_stack_comp_unit)
6650 (hashtab_obstack_allocate, dummy_obstack_deallocate)
6651 (partial_die_hash, partial_die_eq): New functions.
6652 * Makefile.in (hashtab_h): Define.
6653 (dwarf2read.o): Update dependencies.
6654 (observer_inc, observer_h): Move to the correct section.
6655
6656 2004-04-15 Joel Brobecker <brobecker@gnat.com>
6657
6658 * dwarf2read.c (dwarf2_attribute_true_p): New function.
6659 (die_is_declaration): Use the function above. Add comment.
6660
6661 2004-04-15 Joel Brobecker <brobecker@gnat.com>
6662
6663 * dwarf2read.c (read_structure_scope): Identify stub types
6664 using die_is_declaration() only.
6665
6666 2004-04-15 Roland McGrath <roland@redhat.com>
6667
6668 * symfile.c (symbol_file_add_with_addrs_or_offsets): Take ABFD as
6669 argument instead of NAME.
6670 (symbol_file_add, reread_separate_symbols): Call symfile_bfd_open
6671 in call to symbol_file_add_with_addrs_or_offsets.
6672 (build_addr_info): New function, helper for ...
6673 (symbol_file_add_from_memory): New function.
6674 (add_symbol_file_from_memory_command): New function using that.
6675 (_initialize_symfile): Register it for add-symbol-file-from-memory.
6676 (pre_add_symbol_hook): Add const to argument type.
6677 * symfile.h (symbol_file_add_from_memory): Declare it.
6678
6679 2004-04-15 Mark Kettenis <kettenis@gnu.org>
6680
6681 * NEWS (New native configurations): Mention OpenBSD/vax.
6682 * configure.host: Add vax-*-openbsd*.
6683 * config/vax/obsd.mh: New file.
6684 * config/vax/nm-obsd.h: New file.
6685
6686 * vax-tdep.c: Include "regset.h".
6687 (vax_supply_gregset): New function.
6688 (vax_gregset): New variable.
6689 (vax_regset_from_core_section): New function.
6690 (vax_gdbarch_init): Set regset_from_core_section.
6691 * Makefile.in (vax-tdep.o): Update dependencies.
6692
6693 2004-04-15 Andrew Cagney <cagney@redhat.com>
6694
6695 * observer.c (normal_stop_subject, observer_notify_normal_stop)
6696 (observer_normal_stop_notification_stub)
6697 (observer_attach_normal_stop, observer_detach_normal_stop):
6698 Delete, replaced by #include "observer.inc".
6699 * infrun.c (normal_stop): Pass "stop_bpstat" to
6700 observer_notify_normal_stop.
6701 * Makefile.in (observer_inc): Define.
6702 (observer.o): Update dependencies.
6703 (observer.h, observer.inc): New rules.
6704 * observer.h: Delete file.
6705 * observer.sh: New file.
6706
6707 2004-04-15 Mark Kettenis <kettenis@gnu.org>
6708
6709 * vax-tdep.c (vax_frame_cache): Fix typo.
6710
6711 2004-04-14 Mark Kettenis <kettenis@gnu.org>
6712
6713 * NEWS (New native configurations): Mention NetBSD/vax.
6714 * configure.host: Add vax-*-netbsdelf* and vax-*-netbsd*.
6715 * config/vax/nbsdelf.mh: New file.
6716 * config/vax/nbsdaout.mh: New file.
6717 * config/vax/nm-nbsd.h: New file.
6718 * config/vax/nm-nbsdaout.h: New file.
6719
6720 * vaxnbsd-tdep.c: New file.
6721 * Makefile.in (vaxnbsd-tdep.o): New dependency.
6722 * configure.tgt: Add vax-*-netbsd* and vax-*-openbsd*.
6723 * config/vax/nbsd.mt: New file.
6724 * config/vax/tm-nbsd.h: New file.
6725
6726 * Makefile.in (vaxbsd-nat.o): New dependency.
6727
6728 * vax-tdep.h (vax_regnum): Add VAX_R0_REGNUM and VAX_R1_REGNUM.
6729 * vax-tdep.c (vax_store_arguments): Remove struct_return and
6730 struct_addr arguments. Don't push return value address.
6731 (vax_push_dummy_call): Don't pass STRUCT_RETURN and STRUCT_ADDR as
6732 arguments to vax_store_arguments. Store return value address in
6733 R1.
6734 (vax_store_struct_return, vax_extract_return_value)
6735 (vax_store_return_value): Remove functions.
6736 (vax_return_value): New function.
6737 (vax_gdbarch_init): Set return value. Don't set
6738 deprecated_store_struct_return, deprecated_extract_struct_return
6739 and deprecated_store_return_value.
6740
6741 2004-04-14 Andreas Schwab <schwab@suse.de>
6742
6743 * ia64-tdep.c (ia64_libunwind_frame_prev_register): Handle null
6744 value buffer.
6745 * libunwind-frame.c (libunwind_frame_prev_register): Likewise.
6746
6747 2004-04-14 Mark Kettenis <kettenis@gnu.org>
6748
6749 * vax-tdep.c (vax_store_arguments, vax_push_dummy_call)
6750 (vax_unwind_dummy_id): New functions.
6751 (vax_push_dummy_frame, vax_pop_frame): Remove functions.
6752 (vax_call_dummy_words, sizeof_vax_call_dummy_words): Remove
6753 variables.
6754 (vax_fix_call_dummy): Remove function.
6755 (vax_gdbarch_init): Set push_dummy_call and unwind_dummy_id.
6756 Don't set deprecated_push_dummy_frame, deprecated_pop_frame,
6757 call_dummy_location, deprecated_call_dummy_words,
6758 deprecated_sizeof_call_dummy_words,
6759 deprecated_call_dummy_breakpoint_offset,
6760 deprecated_use_generic_dummy_frames, deprecated_pc_in_call_dummy,
6761 and deprecated_dummy_write_sp.
6762
6763 2004-04-13 David Carlton <carlton@kealia.com>
6764
6765 * MAINTAINERS: Move myself to "paper trail" section.
6766
6767 2004-04-12 Mark Kettenis <kettenis@gnu.org>
6768
6769 * vax-tdep.c: Include "frame-base.h", "frame-unwind.h" and
6770 "trad-frame.h".
6771 (vax_frame_init_saved_regs): Remove function.
6772 (vax_sigtramp_saved_pc): Remove function.
6773 (vax_frame_saved_pc): Remove function.
6774 (vax_frame_args_address): Remove function.
6775 (vax_frame_num_args): Rewrite.
6776 (vax_frame_chain): Remove function.
6777 (vax_push_dummy_frame): Replace DEPRECATED_FP_REGNUM with
6778 VAX_FP_REGNUM.
6779 (vax_pop_frame): Likewise.
6780 (vax_saved_pc_after_call): Remove function.
6781 (struct vax_frame_cache): New structure.
6782 (vax_frame_cache): New function.
6783 (vax_frame_this_id): New function.
6784 (vax_frame_prev_register): New function.
6785 (vax_frame_unwind): New variable.
6786 (vax_frame_sniffer): New function.
6787 (vax_frame_base_address): New function.
6788 (vax_frame_args_address): New function.
6789 (vax_frame_base): New variable.
6790 (vax_unwind_pc): New function.
6791 (vax_gdbarch_init): Don't set deprecated_init_frame_pc,
6792 deprecated_fp_regnum, deprecated_saved_pc_after_call,
6793 deprecated_frame_chain, deprecated_frame_saved_pc,
6794 deprecated_frame_args_address and
6795 deprecated_frame_init_saved_regs.
6796 * Makefile.in (vax-tdep.o): Update dependencies.
6797
6798 * vaxbsd-nat.c: New file.
6799
6800 * vax-tdep.h: Update copyright year. Adjust comments.
6801 (VAX_REGISTER_SIZE, VAX_REGISTER_BYTES, VAX_MAX_REGISTER_RAW_SIZE,
6802 VAX_MAX_REGISTER_VIRTUAL_SIZE): Remove macros.
6803 (vax_regnum): New enum. Replacing...
6804 (VAX_AP_REGNUM, VAX_FP_REGNUM, VAX_SP_REGNUM, VAX_PC_REGNUM)
6805 (VAX_PS_REGNUM): ... these removed macros.
6806 * vax-tdep.c (vax_register_name): Remove prototype.
6807 (vax_register_name): Reorganize somewhat. Use ARRAY_SIZE.
6808 (vax_register_byte, vax_register_raw_size,
6809 vax_register_virtual_size, vax_register_virtual_type): Remove
6810 functions.
6811 (vax_register_type): New function.
6812 (vax_breakpoint_from_pc): Reorganize.
6813 (vax_gdbarch_init): Set register_type. Don't set
6814 deprecated_register_size, deprecated_register_bytes,
6815 deprecated_register_byte, deprecated_register_raw_size,
6816 deprecated_max_register_raw_size,
6817 deprecated_register_virtual_size,
6818 deprecated_max_register_virtual_size and
6819 deprecated_register_virtual_type. Add comment on stack direction.
6820
6821 2004-04-11 Mark Kettenis <kettenis@gnu.org>
6822
6823 * amd64-tdep.h (amd64_regnum): Add AMD64_CS_REGNUM,
6824 AMD64_SS_REGNUM, AMD64_DS_REGNUM, AMD64_ES_REGNUM,
6825 AMD64_FS_REGNUM and AMD64_GS_REGNUM.
6826
6827 2004-04-10 Randolph Chung <tausq@debian.org>
6828
6829 * MAINTAINERS (write after approval): Add myself.
6830
6831 2004-04-07 Randolph Chung <tausq@debian.org>
6832
6833 * hppa-tdep.c (hppa_inner_than): Remove.
6834 (is_pa_2): Remove unused static variable.
6835 (hppa_gdbarch_init): Use core_addr_greaterthan instead of own version.
6836
6837 2004-03-10 Paul N. Hilfinger <Hilfinger@gnat.com>
6838
6839 * language.h (language_defn): Add new la_post_parser field.
6840 * parser-defs.h (null_post_parser): New declaration (default for
6841 la_post_parser).
6842
6843 * parse.c (parse_exp_1): Move code to parse_exp_in_context and
6844 insert call to that function.
6845 (parse_exp_in_context): New function, including code formerly in
6846 parse_exp_1. Calls language-dependent post-parser after
6847 prefixification.
6848 (parse_expression_in_context): New exported function.
6849 (null_post_parser): New definition.
6850 * expression.h (parse_expression_in_context): Add declaration.
6851
6852 * p-lang.c (pascal_language_defn): Add trivial post-parser.
6853 * c-lang.c (c_language_defn): Ditto.
6854 (cplus_language_defn): Ditto.
6855 (asm_language_defn): Ditto.
6856 (minimal_language_defn): Ditto.
6857 * f-lang.c (f_language_defn): Ditto.
6858 * jv-lang.c (java_language_defn): Ditto.
6859 * language.c (unknown_language_defn): Ditto.
6860 (auto_language_defn): Ditto.
6861 (local_language_defn): Ditto.
6862 * m2-lang.c (m2_language_defn): Ditto.
6863 * scm-lang.c (scm_language_defn): Ditto.
6864 * obj-lang.c (objc_language_defn): Ditto.
6865
6866 2004-04-10 Mark Kettenis <kettenis@gnu.org>
6867
6868 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Remove function.
6869 (amd64nbsd_mcontext_addr): New function.
6870 (amd64nbsd_init_abi): Initialize TDEP->sigcontext_addr as
6871 amd64nbsd_mcontext_addr. Directly initialize TDEP->sc_reg_offset
6872 with amd64nbsd_r_reg_offset, instead of building it on the fly.
6873
6874 * corelow.c (core_xfer_partial): Fix coding standards violation.
6875 Add support for TARGET_OBJECT_WCOOKIE.
6876
6877 * sparc-linux-tdep.c (sparc32_linux_init_abi): Don't set
6878 deprecated_pc_in_sigtramp.
6879 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
6880 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
6881 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Likewise.
6882 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
6883 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Likewise.
6884 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
6885 * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
6886
6887 * amd64-linux-tdep.c, amd64nbsd-tdep.c, amd64obsd-tdep.c,
6888 i386-linux-tdep.c, i386-tdep.c, i386nbsd-tdep.c, i386obsd-tdep.c:
6889 Fix typo.
6890
6891 * amd64-tdep.c (amd64_supply_fxsave): Only fiddle with
6892 I387_FISEG_REGNUM and I387_FOSEG_REGNUM in 64-bit mode.
6893 (amd64_collect_fxsave): Likewise.
6894
6895 * i386-sol2-tdep.c: Include "gdb_string.h".
6896 (i386_sol2_sigtramp_p): Recognize signal trampoline based on its
6897 name.
6898 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
6899
6900 2004-04-10 Mark Kettenis <kettenis@gnu.org>
6901
6902 * i386-sol2-tdep.c: Include "solib-svr4.h".
6903 (i386_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
6904 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
6905 * config/i386/tm-i386sol2.h: Include :solib.h".
6906 * config/i386/i386sol2.mh (NATDEPFILES): Remove solib.o,
6907 solib-svr4.o and solib-legacy.o.
6908 * config/i386/i386sol2.mt (TDEPFILES): Add solib.o and
6909 solib-svr4.o.
6910
6911 2004-04-09 Mark Kettenis <kettenis@gnu.org>
6912
6913 * amd64-linux-nat.c (fetch_inferior_registers): Correctly check
6914 whether a register is supplied by PTRACE_GETFPREGS.
6915 (store_inferior_registers): Likewise.
6916 * amd64bsd-nat.c (fetch_inferior_registers): Correctly check
6917 whether a register is supplied by PT_GETFPREGS.
6918 (store_inferior_registers): Likewise.
6919
6920 * config/i386/linux.mt (TDEPFILES): Remove solib-legacy.o.
6921 * config/i386/linux64.mt (TDEPFILES): Likewise.
6922
6923 * i386-linux-nat.c: Update copyrigth year. Tweak comment.
6924
6925 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Rewrite to use new
6926 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
6927 the program counter is in the range specified by `struct
6928 gdbarch_tdep'.
6929 * amd64-linux-tdep.c: Include "symtab.h".
6930 (amd64_linux_pc_in_sigtramp): Remove function.
6931 (amd64_linux_sigtramp_p): New function.
6932 (amd64_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
6933 deprecated_pc_in_sigtramp.
6934 * amd64nbsd-tdep.c: Include "symtab.h".
6935 (amd64nbsd_sigtramp_p): New function.
6936 (amd64nbsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
6937 deprecated_pc_in_sigtramp.
6938 * amd64obsd-tdep.c: Include "symtab.h" and "objfiles.h". Add a
6939 few comments.
6940 (amd64obsd_pc_in_sigtramp): Remove function.
6941 (amd64obsd_sigtramp_p): New function.
6942 (amd64obsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
6943 deprecated_pc_in_sigtramp.
6944 * i386-tdep.h (struct gdbarch_tdep): Add sigtramp_p member.
6945 (i386bsd_pc_ins_sigtramp): Remove prototype.
6946 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove prototypes.
6947 * i386-tdep.c (i386_sigtramp_frame_sniffer): Rewrite to use new
6948 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
6949 the program counter is in the range specified by `struct
6950 gdbarch_tdep'.
6951 (i386_pc_in_sigtramp, i386_svr4_pc_in_sigtramp): Remove functions.
6952 (i386_sigtramp_p, i386_svr4_sigtramp_p): New functions.
6953 (i386_go32_pc_in_sigtramp): Remove function.
6954 (i386_svr4_init_abi): Don't set deprecated_pc_in_sigtramp.
6955 Initialize TDEP->sigtramp_p.
6956 (i386_go32_init_abi): Initialize TDEP->sigtramp_p to NULL.
6957 (i386_gdbarch_init): Initialize TDEP->sigtramp_p. Don't set
6958 deprecated_pc_in_sigtramp.
6959 * i386-linux-tdep.c: Adjust comments.
6960 (i386_linux_pc_in_sigtramp): Remove function.
6961 (i386_linux_sigtramp_p): New function.
6962 (i386_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
6963 deprecated_pc_in_sigtramp.
6964 * i386-nto-tdep.c: Update copyright year.
6965 (i386nto_pc_in_sigtramp): Remove function.
6966 (i386nto_sigtramp_p): New function.
6967 (i386nto_sigcontext_addr): Use I386_ESP_REGNUM instead of
6968 SP_REGNUM.
6969 (i386nto_init_abi): Initialize TDEP->sigtramp_p. Don't set
6970 deprecated_pc_in_sigtramp.
6971 * i386-sol2-tdep.c: Update copyright year.
6972 (i386_sol2_pc_in_sigtramp): Remove function.
6973 (i386_sol2_sigtramp_p): New function.
6974 (i386_sol2_init_abi): Initialize TDEP->sigtramp_p. Don't set
6975 deprecated_pc_in_sigtramp.
6976 * i386bsd-tdep.c (i386bsd_pc_in_sigtramp): Remove function.
6977 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove functions.
6978 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
6979 deprecated_sigtramp_start and deprecated_sigtramp_end.
6980 * i386nbsd-tdep.c: Include "frame.h" and "symtab.h".
6981 (i386nbsd_pc_in_sigtramp): Remove function.
6982 (i386nbsd_sigtramp_p): New function.
6983 (i386nbsd_init_abi): Don't set deprecated_pc_in_sigtramp,
6984 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
6985 TDEP->sigtramp_start, TDEP->sigtramp_end and TDEP->sigtramp_p.
6986 * i386obsd-tdep.c: Include "frame.h", "symtab.h" and "objfiles.h".
6987 (i386obsd_pc_in_sigtramp): Remove function.
6988 (i386obsd_sigtramp_p): New function.
6989 (i386obsd_sigtramp_start, i386obsd_sigtramp_end): Remove
6990 functions.
6991 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
6992 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
6993 TDEP->sigtramp_p.
6994 * Makefile.in (amd64-linux-tdep.o, amd64nbsd-tdep.o,
6995 amd64obsd-tdep.o, i386nbsd-tdep.o, i386obsd-tdep.o): Update
6996 dependencies.
6997
6998 * config/i386/i386aout.mt: Remove file.
6999
7000 * configure.tgt: Remove i[34567]86-*-go32*,
7001 i[34567]86-*-msdosdjgpp*, i[34567]86-*-sco*, i[34567]86-*-sysv*
7002 and i[34567]86-*-isc*. Set gdb_target to i386 for
7003 i[34567]86-*-netware* and i[34567]86-*-*.
7004 * config/i386/i386.mt: New file.
7005 * config/i386/embed.mt: Remove file.
7006 * config/i386/go32.mt: Remove file.
7007 * config/i386/i386nw.mt: Remove file.
7008 * config/i386/i386v.mt: Remove file.
7009 * config/i386/tm-go32.h: Remove file.
7010
7011 * tui/tui-hooks.c: Include "readline/readline.h" after
7012 "gdb_curses.h" instead of before.
7013 * tui/tui-io.c: Likewise.
7014
7015 * tui/tui.c: Fix typo in comment.
7016
7017 * sparc64-tdep.c (sparc_address_from_register): Remove function.
7018
7019 2004-04-08 Andrew Cagney <cagney@redhat.com>
7020
7021 * breakpoint.h (deprecated_exception_catchpoints_are_fragile)
7022 (deprecated_exception_support_initialized): Declare.
7023 * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support)
7024 (initialize_hp_cxx_exception_support)
7025 (child_enable_exception_callback): Update.
7026 * breakpoint.c (deprecated_exception_catchpoints_are_fragile)
7027 (deprecated_exception_support_initialized): Rename
7028 deprecated_exception_catchpoints_are_fragile and
7029 deprecated_exception_support_initialized.
7030 (breakpoint_init_inferior, breakpoint_init_inferior): Update.
7031
7032 * symtab.c (deprecated_hp_som_som_object_present): Rename
7033 hp_som_som_object_present.
7034 * symtab.h (deprecated_hp_som_som_object_present): Declare.
7035 * symfile.c (hp_som_som_object_present, RESET_HP_UX_GLOBALS):
7036 Update. Delete extern declaration.
7037 * valops.c (hp_som_som_object_present): Ditto.
7038 * parse.c (deprecated_hp_som_som_object_present)
7039 (parse_nested_classes_for_hpacc): Ditto.
7040 * hpread.c (hp_som_som_object_present, hpread_expand_symtab): Ditto.
7041 * hppa-hpux-tdep.c (hp_som_som_object_present)
7042 (initialize_hp_cxx_exception_support): Ditto.
7043 * eval.c (hp_som_som_object_present, evaluate_subexp_standard): Ditto.
7044 * cp-valprint.c (hp_som_som_object_present)
7045 (cp_print_class_method): Ditto.
7046 * c-typeprint.c (hp_som_som_object_present):
7047 (c_type_print_base): Ditto.
7048 * c-exp.y (hp_som_som_object_present): Ditto.
7049
7050 2004-04-08 Andrew Cagney <cagney@redhat.com>
7051
7052 * frame-unwind.c (struct frame_unwind_table, frame_unwind_init)
7053 (frame_unwind_prepend_unwinder, frame_unwind_append_sniffer)
7054 (frame_unwind_find_by_frame): Re-implement the unwind code so
7055 that it can both prepend and append sniffers. Replace
7056 frame_unwind_register_unwinder with frame_unwind_prepend_unwinder.
7057 * tramp-frame.c (tramp_frame_append): Use
7058 frame_unwind_prepend_unwinder.
7059 * frame-unwind.h (frame_unwind_prepend_unwinder): Replace
7060 frame_unwind_register_unwinder.
7061 * tramp-frame.h (tramp_frame_prepend_unwinder): Rename
7062 tramp_frame_append.
7063 * tramp-frame.c (tramp_frame_prepend_unwinder): Update.
7064 * mips-linux-tdep.c (mips_linux_init_abi, mips_linux_init_abi)
7065 (mips_linux_init_abi): Update.
7066
7067 2004-04-08 Kevin Buettner <kevinb@redhat.com>
7068
7069 * ppc-linux-tdep.c (ELF_NREG, ELF_NFPREG, ELF_NVRREG)
7070 (ELF_FPREGSET_SIZE): Delete constants formerly used in core
7071 file support.
7072
7073 2004-04-07 Kevin Buettner <kevinb@redhat.com>
7074
7075 * ia64-tdep.c (elf.h): Don't include.
7076 (elf/ia64.h) [HAVE_LIBUNWIND_IA64_H]: Include.
7077
7078 2004-04-07 Jason Molenda (jmolenda@apple.com)
7079
7080 * frame.h: Typeo corrections in comments.
7081
7082 2004-04-07 Jim Blandy <jimb@redhat.com>
7083
7084 * i386-tdep.c (i386_stab_reg_to_regnum): Correct numbering for
7085 %esp and %ebp
7086
7087 2004-04-07 Mark Kettenis <kettenis@gnu.org>
7088
7089 * config/sparc/linux.mt (TDEPFILES): Remove solib-legacy.o.
7090 * config/sparc/linux64.mt (TDEPFILES): Likewise.
7091 * config/sparc/sol2.mt (TDEPFILES): Add solib.o and solib-svr4.o.
7092 * config/sparc/sol2.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
7093 and solib-legacy.o.
7094 * config/sparc/sol2-64.mt (TDEPFILES): Add solib.o and
7095 solib-svr4.o.
7096 * config/sparc/tm-sol2.h: Update copyright year. Include
7097 "solib.h".
7098
7099 * sparc-sol2-tdep.c: Update copyright year. Include
7100 "solib-svr4.h".
7101 (sparc32_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
7102 * sparc64-sol2-tdep.c: Include "solib-svr4.h".
7103 (sparc64_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
7104 * Makefile.in (sparc-sol2-tdep.o, sparc64-sol2-tdep.o): Update
7105 dependencies.
7106
7107 2004-04-06 Andrew Cagney <cagney@redhat.com>
7108
7109 * infttrace.c: Include "infttrace.h".
7110 * infttrace.h: Include "target.h".
7111 * Makefile.in (infttrace_h): Update.
7112 (infttrace.o): Update.
7113
7114 2004-04-06 Andrew Cagney <cagney@redhat.com>
7115
7116 * hppah-nat.c (hpux_has_forked, hpux_has_vforked)
7117 (hpux_has_execd, hpux_has_syscall_event): Include "infttrace.h",
7118 move extern declarations from here ...
7119 * infttrace.h: ... to here.
7120 * Makefile.in (hppah-nat.o): Update dependencies.
7121
7122 * hppa-tdep.c (hppa_breakpoint_from_pc): Make static.
7123 (hppa_gdbarch_init): Set gdbarch_breakpoint_from_pc
7124 * config/pa/tm-hppa.h (BREAKPOINT_FROM_PC, BREAKPOINT32):
7125 (hppa_breakpoint_from_pc): Delete.
7126
7127 * MAINTAINERS: Mark hppa-elf as buildable with -Werror.
7128
7129 2004-04-05 Andrew Cagney <cagney@redhat.com>
7130
7131 * hppa-tdep.c: Do not include <sys/types.h>, <sys/param.h>,
7132 <signal.h>, <sys/ptrace.h>, #include "a.out.encap.h",
7133 <sys/file.h>.
7134
7135 2004-04-06 Randolph Chung <tausq@debian.org>
7136
7137 Committed by Andrew Cagney (mechanical change).
7138 * hppa-tdep.c: (args_for_find_stub, hp_som_som_object_present,
7139 exception_catchpoints_are_fragile, find_stub_with_shl_get,
7140 cover_find_stub_with_shl_get, initialize_hp_cxx_exception_support,
7141 child_enable_exception_callback, current_ex_event,
7142 null_symtab_and_line, child_get_current_exception_event,
7143 HP_ACC_EH_notify_hook, HP_ACC_EH_set_hook_value,
7144 HP_ACC_EH_notify_callback, HP_ACC_EH_break, HP_ACC_EH_catch_throw,
7145 HP_ACC_EH_catch_catch, __eh_notification, hp_cxx_exception_support,
7146 hp_cxx_exception_support_initialized, eh_notify_hook_addr,
7147 eh_notify_callback_addr, eh_break_addr, eh_catch_catch_addr,
7148 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior):
7149 Move hpux-specific definitions ...
7150 * hppa-hpux-tdep.c: ... to here.
7151
7152 2004-04-05 Andrew Cagney <cagney@redhat.com>
7153
7154 * hppa-tdep.c (hppa_frame_cache): Pass the frame's func to
7155 skip_prologue_using_sal.
7156
7157 2004-04-05 Andrew Cagney <cagney@redhat.com>
7158
7159 * config/i386/tm-i386.h: Delete file.
7160 * config/i386/tm-vxworks.h: Update copyright, do not include
7161 "tm-i386.h".
7162 * config/i386/tm-nto.h, config/i386/tm-linux.h: Ditto.
7163 * config/i386/tm-i386sol2.h, config/i386/tm-i386lynx.h: Ditto.
7164 * config/i386/tm-go32.h, config/i386/tm-cygwin.h: Ditto.
7165 * config/i386/ncr3000.mt (TM_FILE): Delete.
7166 * config/i386/interix.mt (TM_FILE): Delete.
7167 * config/i386/i386v.mt (TM_FILE): Delete.
7168 * config/i386/i386nw.mt (TM_FILE): Delete.
7169 * config/i386/i386gnu.mt (TM_FILE): Delete.
7170 * config/i386/i386aout.mt (TM_FILE): Delete.
7171 * config/i386/embed.mt (TM_FILE): Delete.
7172
7173 2004-04-05 Kevin Buettner <kevinb@redhat.com>
7174
7175 * frv-tdep.h (fsr0_regnum, acc0_regnum, acc7_regnum, accg0123_regnum)
7176 (accg4567_regnum, msr0_regnum, msr1_regnum, gner0_regnum)
7177 (gner1_regnum, fner0_regnum, fner1_regnum, accg0_regnum)
7178 (accg7_regnum): New constants.
7179 (last_spr_regnum, last_pseudo_regnum): Update.
7180 * frv-tdep.c (new_variant): Initialize names for fsr0, acc0-acc7,
7181 accg0-accg7, msr0, msr1, gner0, gner1, fner0, and fner1.
7182 (frv_pseudo_register_read, frv_pseudo_register_write): Add support
7183 for accg registers.
7184 (frv_register_sim_regno): Update spr_map[].
7185
7186 2004-04-04 Andrew Cagney <cagney@redhat.com>
7187
7188 * config/mips/xm-riscos.h: Delete.
7189 * config/mips/xm-mipsv4.h, config/mips/xm-mips.h: Delete.
7190 * config/mips/tm-mipsv4.h, config/mips/riscos.mh: Delete.
7191 * config/mips/nm-riscos.h, config/mips/nm-news-mips.h: Delete.
7192 * config/mips/nm-mips.h, config/mips/news-mips.mh: Delete.
7193 * config/mips/news-mips.mh, config/m68k/tm-m68kv4.h: Delete.
7194 * config/mips/decstation.mh, config/mips/littlemips.mh: Delete.
7195 * config/mips/mipsv4.mt, config/m68k/tm-sun3.h: Delete.
7196 * config/m68k/xm-sun3os4.h, config/m68k/xm-sun3.h: Delete.
7197 * config/m68k/xm-sun2.h, config/m68k/xm-m68kv4.h: Delete.
7198 * config/m68k/xm-dpx2.h, config/m68k/xm-delta68.h: Delete.
7199 * config/m68k/xm-3b1.h, config/m68k/tm-sun3os4.h: Delete.
7200 * config/m68k/tm-m68klynx.h, config/m68k/tm-dpx2.h: Delete.
7201 * config/m68k/tm-delta68.h, config/m68k/tm-3b1.h: Delete.
7202 * config/m68k/sun3os4.mt, config/m68k/nm-sysv4.h: Delete.
7203 * config/m68k/nm-sun3.h, config/m68k/sun3os4.mh: Delete.
7204 * config/m68k/sun2os3.mh, config/m68k/nm-sun2.h: Delete.
7205 * config/m68k/nm-m68klynx.h, config/m68k/sun3os3.mt: Delete.
7206 * config/m68k/nm-dpx2.h, config/m68k/sun2os3.mt: Delete.
7207 * config/m68k/dpx2.mh, config/m68k/sun3os3.mh: Delete.
7208 * config/m68k/sun2os4.mh, config/m68k/nm-delta68.h: Delete.
7209 * config/m68k/m68kv4.mt, config/m68k/m68klynx.mt: Delete.
7210 * config/m68k/3b1.mt, config/m68k/m68klynx.mh: Delete.
7211 * config/m68k/m68kv4.mh, config/m68k/sun2os4.mt: Delete.
7212 * config/m68k/tm-sun2os4.h, config/m68k/3b1.mh: Delete.
7213 * config/m68k/dpx2.mt, config/m68k/delta68.mt: Delete.
7214 * config/m68k/tm-sun2.h, config/m68k/delta68.mh: Delete.
7215
7216 * configure.tgt: Remove m68000-*-sunos3*, m68000-*-sunos4*,
7217 m68*-bull-sysv*, m68*-att-*, m68*-motorola-*, m68*-*-lynxos*,
7218 m68*-*-sunos3*, m68*-*-sunos4*, m68*-*-sysv4*, mips*-*-sysv4*.
7219 * configure.host: Remove m680[01]0-sun-sunos3*,
7220 m680[01]0-sun-sunos4*, m68*-att-*, m68*-bull*-sysv*,
7221 m68*-*-lynxos*, m68*-*-sysv4*, m68*-motorola-*, m68*-sun-sunos3*,
7222 m68*-sun-sunos4*, m68*-sun-*, mips-dec-*, mips-little-*,
7223 mips-sony-*, mips-*-mach3*, mips-*-sysv4*, mips-*-sysv*,
7224 mips-*-riscos*.
7225 * NEWS: Mention removed systems.
7226
7227 2004-04-04 Andrew Cagney <cagney@redhat.com>
7228
7229 GDB 6.1 release created from 6.1 branch.
7230
7231 2004-04-04 Andrew Cagney <cagney@redhat.com>
7232
7233 * gnu-nat.c (gnu_wait): Use memcpy instead of bcopy.
7234 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
7235 * remote-vx68.c (vx_read_register, vx_write_register): Ditto.
7236
7237 * config/vax/xm-vax.h (FAULT_CODE_ORIGIN, INIT_STACK): Delete.
7238 * config/alpha/xm-alphaosf.h (NO_SIGINTERRUPT): Delete.
7239 * config/alpha/xm-alphalinux.h (NO_SIGINTERRUPT): Delete.
7240
7241 2004-04-03 Jim Blandy <jimb@redhat.com>
7242
7243 * MAINTAINERS: Chris Faylor has changed employers; add him to
7244 "paper trail" section, and update his E-mail address.
7245
7246 2004-04-03 Andrew Cagney <cagney@redhat.com>
7247
7248 * frame-unwind.c (frame_unwind_find_by_frame): Delete check for
7249 generic dummy frames.
7250 * dummy-frame.c: Update copyright.
7251 (dummy_frame_sniffer): Delete check for generic dummy frames.
7252
7253 * config/pa/tm-hppa.h (REG_PARM_STACK_SPACE): Delete.
7254 * config/pa/tm-hppa64.h (PA20W_CALLING_CONVENTIONS)
7255 (REG_PARM_STACK_SPACE): Delete.
7256 * hppa-tdep.c (hppa64_push_dummy_call, hppa32_push_dummy_call):
7257 Inline reference to REG_PARM_STACK_SPACE.
7258
7259 * config/pa/tm-hppah.h (FRAME_SAVED_PC_IN_SIGTRAMP)
7260 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
7261 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
7262 (FRAME_BASE_BEFORE_SIGTRAMP)
7263 (hppa32_hpux_frame_base_before_sigtramp)
7264 (hppa32_hpux_frame_saved_pc_in_sigtramp): Delete.
7265 * config/pa/tm-hppa64.h (hppa64_hpux_frame_saved_pc_in_sigtramp)
7266 (hppa64_hpux_frame_find_saved_regs_in_sigtramp)
7267 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
7268 (FRAME_BASE_BEFORE_SIGTRAMP)
7269 (hppa64_hpux_frame_base_before_sigtramp)
7270 (FRAME_SAVED_PC_IN_SIGTRAMP): Delete.
7271
7272 2004-04-03 Andrew Cagney <cagney@redhat.com>
7273
7274 * PROBLEMS: Mention that GDB doesn't build on HP/UX 11.00.
7275
7276 2004-04-02 Andrew Cagney <cagney@redhat.com>
7277
7278 * sh64-tdep.c (sh64_init_extra_frame_info): Replace
7279 DEPRECATED_CALL_DUMMY_LENGTH with 0, simplify.
7280 * dummy-frame.h: Delete out-of-date comments.
7281 * gdbarch.sh (DEPRECATED_CALL_DUMMY_LENGTH): Delete.
7282 * gdbarch.h, gdbarch.c: Re-generate.
7283
7284 2004-04-02 Joel Brobecker <brobecker@gnat.com>
7285
7286 Committed by Andrew Cagney <cagney@redhat.com>.
7287 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Do not take
7288 into account an instruction saving a register if we have already
7289 seen an earlier instruction saving that same register.
7290
7291 2004-04-02 Andrew Cagney <cagney@redhat.com>
7292
7293 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Delete.
7294 * gdbarch.h, gdbarch.c: Re-generate.
7295 * frame.c (legacy_get_prev_frame): Delete references to
7296 DEPRECATED_INIT_FRAME_PC_FIRST.
7297
7298 * infrun.c (pc_in_sigtramp): Delete function.
7299 (check_sigtramp2): Inline call to pc_in_sigtramp, use
7300 get_frame_type.
7301
7302 2004-04-02 Andrew Cagney <cagney@redhat.com>
7303
7304 * infrun.c (handle_step_into_function): Delete code conditional on
7305 legacy_frame_p.
7306 (handle_inferior_event, step_over_function): Ditto.
7307
7308 2004-04-02 Andrew Cagney <cagney@redhat.com>
7309
7310 * frame.c (get_prev_frame_1): Exclude signal trampolines from the
7311 "previous frame inner to this frame" test.
7312
7313 2004-04-02 Andrew Cagney <cagney@redhat.com>
7314
7315 * frame.c (safe_frame_unwind_memory): New function.
7316 * frame.h (safe_frame_unwind_memory): Declare. Update description
7317 of /safe_/ methods.
7318 * tramp-frame.c (tramp_frame_start): Re-order parmeters, add
7319 "next_frame". Use safe_frame_unwind_memory.
7320 (tramp_frame_sniffer): Update call to tramp_frame_start.
7321
7322 2004-04-01 Daniel Jacobowitz <drow@mvista.com>
7323
7324 * dwarf2read.c (dwarf2_objfile_data_key): New.
7325 (struct dwarf2_per_objfile, dwarf2_per_objfile): New.
7326 (dwarf_info_size, dwarf_abbrev_size, dwarf_line_size)
7327 (dwarf_pubnames_size, dwarf_aranges_size, dwarf_loc_size)
7328 (dwarf_macinfo_size, dwarf_str_size, dwarf_ranges_size)
7329 (dwarf_frame_size, dwarf_eh_frame_size, dwarf_info_buffer)
7330 (dwarf_abbrev_buffer, dwarf_line_buffer, dwarf_str_buffer)
7331 (dwarf_macinfo_buffer, dwarf_ranges_buffer, dwarf_loc_buffer):
7332 Remove variables.
7333 (struct dwarf2_pinfo): Remove per-objfile members. Update comments.
7334 (DWARF_ABBREV_SIZE, DWARF_LINE_SIZE)
7335 (DWARF_LOC_SIZE, DWARF_MACINFO_SIZE, DWARF_STR_SIZE)
7336 (DWARF_RANGES_SIZE, DWARF_INFO_BUFFER)
7337 (DWARF_ABBREV_BUFFER, DWARF_LINE_BUFFER, DWARF_STR_BUFFER)
7338 (DWARF_MACINFO_BUFFER, DWARF_RANGES_BUFFER, DWARF_LOC_BUFFER):
7339 Remove macros.
7340 (dwarf2_has_info): Take an objfile argument. Allocate per-objfile
7341 data.
7342 (dwarf2_locate_sections, dwarf2_build_psymtabs)
7343 (dwarf2_build_psymtabs_easy, dwarf2_build_psymtabs_hard)
7344 (skip_one_die, dwarf2_get_pc_bounds, dwarf2_read_abbrevs)
7345 (read_partial_die, read_full_die, read_indirect_string)
7346 (dwarf_decode_line_header, dwarf_decode_macros)
7347 (dwarf2_symbol_mark_computed): Remove use of removed macros.
7348 Update uses of removed variables.
7349 (psymtab_to_symtab_1): Restore per-objfile data pointer. Remove use
7350 of removed macros.
7351 (_initialize_dwarf2_read): New function.
7352 * symfile.h (dwarf2_has_info): Update prototype.
7353 * coffread.c (coff_symfile_read): Update call to dwarf2_has_info.
7354 * elfread.c (elf_symfile_read): Likewise.
7355
7356 2004-04-01 Jim Blandy <jimb@redhat.com>
7357
7358 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): New, unified
7359 function for register numbers on all the rs6000-derived targets.
7360 (rs6000_gdbarch_init): Don't register a separate
7361 gdbarch_dwarf2_reg_to_regnum function for the E500. Use
7362 rs6000_dwarf2_stab_reg_to_regnum for both Dwarf 2 and stabs on all
7363 variants.
7364
7365 * i386-tdep.c: Add FIXME regarding STABS vs. Dwarf 2 register
7366 numbering.
7367
7368 2004-04-01 Paul N. Hilfinger <Hilfinger@gnat.com>
7369
7370 * valarith.c: Update copyright notice.
7371 (value_add): Handle range types.
7372 (value_sub): Ditto.
7373 (value_equal): Ditto.
7374 (value_less): Ditto.
7375 (value_neg): Ditto.
7376 (value_complement): Ditto.
7377 (value_binop): Simplify slightly by using is_integral_type and
7378 eliminiating unnecessary COERCE_ENUMs.
7379
7380 2004-03-31 Andrew Cagney <cagney@redhat.com>
7381
7382 * frame.h (frame_unwind_id): Declare.
7383 * frame.c (frame_unwind_id): New function.
7384 (get_prev_frame_1): New function.
7385 (frame_debug_got_null_frame): New function.
7386 (get_prev_frame): Use frame_debug_got_null_frame. Move unwind
7387 code proper to prev_frame, update description.
7388 * infrun.c (step_over_function): Use frame_unwind_id.
7389
7390 2004-04-31 J. Brobecker <brobecker@gnat.com>
7391
7392 * hppa-tdep.c (hppa32_push_dummy_call): Set the Stack Pointer.
7393 (hppa64_push_dummy_call): Likewise.
7394
7395 2004-03-30 Jim Blandy <jimb@redhat.com>
7396
7397 From Ulrich Weigand:
7398 * utils.c (query): Do not use a va_list variable multiple times.
7399
7400 2004-03-29 Daniel Jacobowitz <drow@mvista.com>
7401
7402 * Makefile.in (linux_nat_h): Update dependencies.
7403 * configure.in: Check for <gnu/libc-version.h>.
7404 * configure: Regenerate.
7405 * config.in: Regenerate.
7406 * linux-nat.h: Include "target.h". Add waitstatus field to
7407 struct lwp_info.
7408 * lin-lwp.c (add_lwp): Initialize waitstatus.kind.
7409 (lin_lwp_attach_lwp): Don't attach to LWPs we have already attached
7410 to.
7411 (lin_lwp_handle_extended): New function. Handle clone events.
7412 (wait_lwp): Use lin_lwp_handle_extended. Update comment about
7413 thread exit events.
7414 (child_wait): Handle clone events.
7415 (lin_lwp_wait: Use lin_lwp_handle_extended and handle clone events.
7416 * linux-nat.c (linux_enable_event_reporting): Turn on
7417 PTRACE_O_TRACECLONE.
7418 (linux_handle_extended_wait): Handle clone events.
7419 * thread-db.c: Include <gnu/libc-version.h>.
7420 (struct private_thread_info): Add dying flag.
7421 (enable_thread_event_reporting): Enable TD_DEATH for glibc 2.2 and
7422 higher.
7423 (attach_thread): Update comments. Handle dying threads.
7424 (detach_thread): Set the dying flag.
7425 (check_event): Always call attach_thread.
7426
7427 2004-03-29 Daniel Jacobowitz <drow@mvista.com>
7428
7429 * mips-tdep.c (mips_pdr_data): New.
7430 (non_heuristic_proc_desc): Use objfile_data and set_objfile_data.
7431 (_initialize_mips_tdep): Initialize mips_pdr_data.
7432
7433 2004-03-29 Corinna Vinschen <vinschen@redhat.com>
7434
7435 * minsyms.c (install_minimal_symbols): Move dropping leading
7436 char from linkage name from here...
7437 (prim_record_minimal_symbol_and_info): ...to here. Simplify
7438 test for "__gnu_compiled*" symbols.
7439
7440 2004-03-28 Jim Blandy <jimb@redhat.com>
7441
7442 * rs6000-tdep.c (skip_prologue): Recognize moves from argument
7443 registers to temp register r0 and byte stores as prologue
7444 instructions.
7445
7446 2004-03-28 Andrew Cagney <cagney@redhat.com>
7447
7448 * PROBLEMS (Stack backtraces): Rewrite. Remove reference to
7449 arm*-*-*.
7450
7451 2004-03-28 Stephane Carrez <stcarrez@nerim.fr>
7452
7453 * tui/tui-regs.c (tui_show_registers): Make sure the TUI is active
7454 and switch the layout to force a display of register window.
7455
7456 2004-02-26 J. Brobecker <brobecker@gnat.com>
7457
7458 * amd64-tdep.c (amd64_classify): make RANGE_TYPE objects be part
7459 of the INTEGER class.
7460
7461 2004-03-26 Jim Blandy <jimb@redhat.com>
7462
7463 * ppc-linux-tdep.c (ppc_linux_init_abi): Long doubles are eight
7464 bytes long on PPC GNU/Linux.
7465
7466 2004-03-26 David Carlton <carlton@kealia.com>
7467
7468 * PROBLEMS: Refer to gdb/1588 instead of gdb/826.
7469
7470 2004-03-25 Andrew Cagney <cagney@redhat.com>
7471
7472 * PROBLEMS: Add general section titles, remove references to
7473 specific releases.
7474
7475 2004-03-25 Daniel Jacobowitz <drow@mvista.com>
7476
7477 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE): Define to
7478 INT_REGISTER_SIZE.
7479 (arm_linux_push_arguments): Use TARGET_DOUBLE_BIT instead of
7480 FP_REGISTER_VIRTUAL_SIZE.
7481 * arm-tdep.c (arm_make_sigtramp_cache): Use register_size instead
7482 of DEPRECATED_REGISTER_RAW_SIZE.
7483 (arm_register_type): Add gdbarch argument.
7484 (arm_register_raw_size, arm_register_virtual_size): Delete.
7485 (arm_register_byte, arm_extract_return_value)
7486 (arm_store_return_value, arm_get_longjmp_target): Update references
7487 to INT_REGISTER_RAW_SIZE and FP_REGISTER_RAW_SIZE.
7488 (arm_gdbarch_init): Likewise. Don't set
7489 deprecated_register_raw_size, deprecated_register_virtual_size,
7490 deprecated_max_register_raw_size,
7491 deprecated_max_register_virtual_size, or
7492 deprecated_max_register_virtual_type. Do set register_type.
7493 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE)
7494 (ARM_MAX_REGISTER_VIRTUAL_SIZE, INT_REGISTER_VIRTUAL_SIZE)
7495 (FP_REGISTER_VIRTUAL_SIZE): Delete.
7496 (INT_REGISTER_RAW_SIZE): Rename to INT_REGISTER_SIZE.
7497 (FP_REGISTER_RAW_SIZE): Rename to FP_REGISTER_SIZE.
7498 * arm-linux-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Define to
7499 INT_REGISTER_SIZE.
7500 * remote-rdp.c (remote_rdp_fetch_register): Use MAX_REGISTER_SIZE.
7501 (remote_rdp_store_register): Likewise.
7502
7503 2004-03-24 Daniel Jacobowitz <drow@mvista.com>
7504
7505 * Makefile.in (mips-linux-tdep.o): Update dependencies.
7506 * mips-tdep.c (mips_gdbarch_init): Move frame predicates
7507 to after osabi initialization.
7508 * mips-linux-tdep.c: Include "trad-frame.h" and "tramp-frame.h".
7509 (mips_linux_o32_sigframe_init, mips_linux_n32n64_sigframe_init): New
7510 functions.
7511 (mips_linux_o32_sigframe, mips_linux_o32_rt_sigframe)
7512 (mips_linux_n32_rt_sigframe, mips_linux_n64_rt_sigframe): New
7513 variables.
7514 (mips_linux_init_abi): Append signal trampoline unwinders.
7515
7516 2004-03-24 Andrew Cagney <cagney@redhat.com>
7517
7518 * tramp-frame.h (TRAMP_SENTINEL_INSN): Define, document.
7519 * tramp-frame.c: Include "gdb_assert.h".
7520 (tramp_frame_start): Use TRAMP_SENTINEL_INSN. Use ULONGEST and
7521 correct sizeof.
7522 (tramp_frame_append): Validate the tramp frame's instructions.
7523 * Makefile.in (tramp-frame.o): Update dependencies.
7524
7525 2004-03-23 Andrew Cagney <cagney@redhat.com>
7526
7527 * trad-frame.h (trad_frame_set_reg_addr): Declare.
7528
7529 2004-03-23 Andrew Cagney <cagney@redhat.com>
7530
7531 * MAINTAINERS (Past Maintainers): Add Mark Salter and Fernando
7532 Nasser as past testsuite/lib/ (and other) maintainers.
7533
7534 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
7535
7536 * infcmd.c (attach_command): Reread symbols if we already have
7537 an exec file.
7538
7539 2004-03-23 Andrew Cagney <cagney@redhat.com>
7540
7541 * rs6000-tdep.c (frame_get_saved_regs): Delete unused function.
7542
7543 2004-03-23 Andrew Cagney <cagney@redhat.com>
7544
7545 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): Deprecate.
7546 * gdbarch.h, gdbarch.c: Re-generate.
7547 * i386obsd-tdep.c (i386obsd_init_abi): Update.
7548 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
7549 * i386bsd-tdep.c (i386bsd_init_abi): Update.
7550 * config/vax/tm-vaxbsd.h (DEPRECATED_SIGTRAMP_END)
7551 (DEPRECATED_SIGTRAMP_START): Update.
7552 * config/m68k/tm-nbsd.h (DEPRECATED_SIGTRAMP_END)
7553 (DEPRECATED_SIGTRAMP_START): Update.
7554 * blockframe.c (find_pc_sect_partial_function): Update.
7555 * arch-utils.c (legacy_pc_in_sigtramp): Update.
7556
7557 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
7558
7559 * remote.c (remote_open_1): Reopen the exec file and reread symbols
7560 if necessary.
7561
7562 2004-03-23 Andrew Cagney <cagney@redhat.com>
7563
7564 * gdbarch.sh (PC_IN_SIGTRAMP): Change to a function with
7565 predicate, deprecate.
7566 * gdbarch.h, gdbarch.c: Re-generate.
7567 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
7568 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
7569 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Update.
7570 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
7571 * alphanbsd-tdep.c (alphanbsd_init_abi): Update.
7572 * amd64-linux-tdep.c (amd64_linux_init_abi): Update.
7573 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Update.
7574 * amd64nbsd-tdep.c (amd64nbsd_init_abi): Update.
7575 * amd64obsd-tdep.c (amd64obsd_init_abi): Update.
7576 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Update.
7577 * blockframe.c (find_pc_partial_function): Update.
7578 * breakpoint.c (bpstat_what): Update.
7579 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update.
7580 * frv-linux-tdep.c (frv_linux_init_abi): Update.
7581 * frv-tdep.c (frv_sigtramp_frame_sniffer): Update.
7582 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Update.
7583 * i386-interix-tdep.c (i386_interix_init_abi): Update.
7584 * i386-linux-tdep.c (i386_linux_init_abi): Update.
7585 * i386-nto-tdep.c (i386nto_init_abi): Update.
7586 * i386-sol2-tdep.c (i386_sol2_init_abi): Update.
7587 * i386-tdep.c (i386_sigtramp_frame_sniffer)
7588 (i386_svr4_init_abi, i386_go32_init_abi, i386_gdbarch_init): Update.
7589 * i386bsd-tdep.c (i386bsd_init_abi): Update.
7590 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
7591 * i386obsd-tdep.c (i386obsd_init_abi): Update.
7592 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Update.
7593 * infrun.c (pc_in_sigtramp): Update.
7594 * m68k-tdep.c (m68k_sigtramp_frame_sniffer): Update.
7595 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
7596 * mips-tdep.c (mips_gdbarch_init): Update.
7597 * mipsnbsd-tdep.c (mipsnbsd_init_abi): Update.
7598 * ppc-linux-tdep.c: Update comment.
7599 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Update.
7600 * shnbsd-tdep.c (shnbsd_init_abi): Update.
7601 * sparc-linux-tdep.c (sparc32_linux_init_abi): Update.
7602 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Update.
7603 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Update.
7604 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Update.
7605 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Update.
7606 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Update.
7607 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Update.
7608 * sparcobsd-tdep.c (sparc32obsd_init_abi): Update.
7609
7610 2004-03-23 Andrew Cagney <cagney@redhat.com>
7611
7612 * tramp-frame.h, tramp-frame.h: New files.
7613 * Makefile.in (SFILES, tramp_frame_h, COMMON_OBS, tramp-frame.o):
7614 Update rules to include "tramp-frame.h" and "tramp-frame.c".
7615
7616 * Makefile.in: Update all dependencies.
7617
7618 2004-03-23 Andrew Cagney <cagney@redhat.com>
7619
7620 * Makefile.in (trad_frame_h): Add $(frame_h).
7621 * trad-frame.h: Update copyright. Include "frame.h".
7622 (struct trad_frame_cache, trad_frame_cache_zalloc): Declare.
7623 (trad_frame_set_id, trad_frame_get_id): Declare.
7624 (trad_frame_set_reg_addr, trad_frame_get_register): Declare.
7625 * trad-frame.c: Update copyright.
7626 (struct trad_frame_cache): Define.
7627 (trad_frame_cache_zalloc): New function.
7628 (trad_frame_set_id, trad_frame_get_id): New functions.
7629 (trad_frame_set_reg_addr, trad_frame_get_register): New functions.
7630
7631 2004-03-22 Andrew Cagney <cagney@redhat.com>
7632
7633 * s390-tdep.c (struct s390_stub_unwind_cache): Rename
7634 s390_pltstub_unwind_cache.
7635 (s390_stub_frame_unwind_cache): Rename
7636 s390_pltstub_frame_unwind_cache.
7637 (s390_stub_frame_this_id): Rename s390_pltstub_frame_this_id.
7638 (s390_stub_frame_prev_register): Rename
7639 s390_pltstub_frame_prev_register.
7640 (s390_stub_frame_unwind): Rename s390_pltstub_frame_unwind.
7641 (s390_stub_frame_sniffer): Rename s390_stub_frame_sniffer.
7642
7643 From Ulrich Weigand:
7644 * s390-tdep.c (s390_pltstub_frame_sniffer): Handle invalid function
7645 pointer calls like PLT calls.
7646
7647 2004-03-22 Daniel Jacobowitz <drow@mvista.com>
7648
7649 * mips-tdep.c (non_heuristic_proc_desc): Search using the specified
7650 PC rather than the partial function start address. Use the start
7651 address to sanity check the found PDR.
7652
7653 2004-03-22 Daniel Jacobowitz <drow@mvista.com>
7654
7655 * lin-lwp.c (lin_lwp_wait): Pass the LWP ID to
7656 linux_handle_extended_wait.
7657
7658 2004-03-22 Andrew Cagney <cagney@redhat.com>
7659
7660 * rs6000-tdep.c (frame_initial_stack_address): Delete unused
7661 function.
7662
7663 * frame.h (generic_pop_current_frame): Delete declaration.
7664 (deprecate_pop_dummy_frame): Deprecate
7665 generic_pop_dummy_frame.
7666 * dummy-frame.c (deprecated_pop_dummy_frame): Update.
7667 (generic_pop_current_frame): Delete function.
7668 * mn10300-tdep.c (mn10300_pop_frame): Eliminate call to
7669 generic_pop_current_frame.
7670 * v850-tdep.c (v850_pop_frame): Update.
7671 * mcore-tdep.c (mcore_pop_frame): Update.
7672 * sh64-tdep.c (sh64_pop_frame): Update.
7673 * h8300-tdep.c (h8300_pop_frame): Update.
7674
7675 2004-03-22 Andrew Cagney <cagney@redhat.com>
7676
7677 * frame.h (deprecated_pc_in_call_dummy): Rename
7678 generic_pc_in_call_dummy.
7679 * dummy-frame.h (pc_in_dummy_frame): Delete declaration.
7680 * dummy-frame.c (deprecated_pc_in_call_dummy): Rename
7681 generic_pc_in_call_dummy.
7682 (pc_in_dummy_frame): Make static.
7683 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Update.
7684 * gdbarch.h, gdbarch.c: Re-generate.
7685 * dummy-frame.c (dummy_frame_sniffer): Simplify.
7686 * frame.c (frame_type_from_pc): Call deprecated_pc_in_call_dummy.
7687 (legacy_get_prev_frame): Ditto.
7688 * inferior.h: Delete reference to generic_pc_in_call_dummy in
7689 comment.
7690
7691 2004-03-21 Andrew Cagney <cagney@redhat.com>
7692
7693 * inferior.h (deprecated_pc_in_call_dummy_at_entry_point): Delete
7694 declaration and out-of-date comment.
7695 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
7696 Delete function.
7697 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
7698 deprecated_pc_in_call_dummy.
7699
7700 * infrun.c (handle_inferior_event): For non legacy frames, use the
7701 frame ID and frame type to identify a signal trampoline. Update
7702 comments.
7703
7704 2004-03-21 Nathan J. Williams <nathanw@wasabisystems.com>
7705
7706 * mipsnbsd-tdep.c: Update copyright. Include "mips-tdep.h".
7707 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
7708
7709 2004-03-21 Andrew Cagney <cagney@redhat.com>
7710
7711 * frame-unwind.h: Update copyright.
7712 (struct frame_data): Add opaque declaration.
7713 (frame_sniffer_ftype): Declare.
7714 (struct frame_unwind): Add "unwind_data" and "sniffer".
7715 (frame_unwind_register_unwinder): Declare.
7716 (frame_unwind_find_by_frame): Add parameter "this_cache".
7717 * frame.c (get_frame_id, create_new_frame, legacy_get_prev_frame)
7718 (legacy_get_prev_frame, legacy_get_prev_frame)
7719 (get_frame_type): Pass the prologue_cache to
7720 frame_unwind_find_by_frame.
7721 * frame-unwind.c (struct frame_unwind_table_entry): Add field
7722 "unwinder".
7723 (frame_unwind_register_unwinder): New function.
7724 (frame_unwind_find_by_frame): Handle an unwind sniffer.
7725
7726 2004-03-20 Paul Hilfinger <hilfingr@nile.gnat.com>
7727
7728 * bcache.c (print_percentage): Use floating point to avoid
7729 incorrect results when portion*100 overflows.
7730
7731 2004-03-19 Kevin Buettner <kevinb@redhat.com>
7732
7733 * ppc_tdep.h (ppc_linux_frame_saved_pc)
7734 (ppc_linux_init_extra_frame_info)
7735 (ppc_linux_frameless_function_invocation)
7736 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain)
7737 (rs6000_frame_saved_pc, rs6000_init_extra_frame_info)
7738 (rs6000_frameless_function_invocation, rs6000_frame_init_saved_regs)
7739 (rs6000_frame_chain): Delete declarations.
7740 * ppc-linux-tdep.c (ppc_linux_frame_saved_pc)
7741 (ppc_linux_init_extra_frame_info)
7742 (ppc_linux_frameless_function_invocation)
7743 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain): Delete.
7744 (ppc_linux_init_abi): Remove registration of above deleted functions.
7745 * rs6000-tdep.c (rs6000_init_extra_frame_info)
7746 (rs6000_frame_init_saved_regs, rs6000_init_frame_pc_first)
7747 (rs6000_frame_args_address, rs6000_saved_pc_after_call)
7748 (rs6000_pop_frame, rs6000_frameless_function_invocation)
7749 (rs6000_frame_saved_pc, rs6000_frame_chain): Delete.
7750 (rs6000_gdbarch_init): Remove registration of above deleted functions.
7751 Use rs6000_unwind_pc(), rs6000_frame_sniffer(),
7752 rs6000_unwind_dummy_id(), and rs6000_frame_base_sniffer() for
7753 frame management for all OSABIs.
7754
7755 2004-03-19 Andrew Cagney <cagney@redhat.com>
7756
7757 Committed by Kevin Buettner <kevinb@redhat.com>.
7758
7759 * ppc-linux-tdep.c: Include "trad-frame.h", and "frame-unwind.h".
7760 Update copyright.
7761 (struct ppc_linux_sigtramp_cache, ppc_linux_sigtramp_cache)
7762 (ppc_linux_sigtramp_this_id, ppc_linux_sigtramp_prev_register)
7763 (ppc_linux_sigtramp_unwind, ppc_linux_sigtramp_sniffer)
7764 (ppc_linux_init_abi): Add both 32- and 64-bit signal trampoline
7765 unwinders. #ifdef legacy frame code.
7766 * rs6000-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
7767 "frame-base.h".
7768 (rs6000_unwind_pc, rs6000_unwind_dummy_id)
7769 (struct rs6000_frame_cache, rs6000_frame_cache)
7770 (rs6000_frame_this_id, rs6000_frame_prev_register)
7771 (rs6000_frame_sniffer, rs6000_frame_unwind)
7772 (rs6000_frame_base_address, rs6000_frame_base_sniffer)
7773 (rs6000_frame_base): Implement a traditional frame unwinder.
7774 (rs6000_gdbarch_init): When unknown, NetBSD, or GNU/Linux use the
7775 frame unwinder.
7776
7777 2004-03-19 Kevin Buettner <kevinb@redhat.com>
7778
7779 * breakpoint.c (adjust_breakpoint_address): Don't adjust
7780 breakpoint address for watchpoints or the catch eventpoints.
7781 Add new paramter ``bptype''. Adjust all callers.
7782
7783 2004-03-19 Andrew Cagney <cagney@redhat.com>
7784
7785 * config/pa/tm-hppa.h (GDB_TARGET_IS_HPPA): Delete unused macro.
7786
7787 * PROBLEMS: Delete note that ARM does not use frame code, problem
7788 fixed.
7789
7790 2004-03-18 Andrew Cagney <cagney@redhat.com>
7791
7792 * stack.c (return_command): Delete code wrapped in #ifdef
7793 DEPRECATED_CALL_DUMMY_HAS_COMPLETED, macro no longer defined.
7794
7795 * rs6000-tdep.c (skip_prologue): Record only the first LR save.
7796
7797 2004-03-18 Andrew Cagney <cagney@redhat.com>
7798
7799 * config/mips/tm-nbsd.h: Replace IN_SIGTRAMP with
7800 DEPRECATED_IN_SIGTRAMP.
7801 * config/powerpc/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7802 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP) Ditto.
7803 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7804 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7805 * config/ia64/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7806 * config/ia64/tm-aix.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7807 * config/arm/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7808 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7809 * arch-utils.c (legacy_pc_in_sigtramp): Ditto.
7810 * arch-utils.h: Remove reference to IN_SIGTRAMP in comment.
7811
7812 2004-03-18 Andrew Cagney <cagney@redhat.com>
7813
7814 * frame-base.c: Update copyright. Include "gdb_obstack.h".
7815 (struct frame_base_table_entry): Define.
7816 (struct frame_base_table): Re-implement as a linked list.
7817 (frame_base_init): Re-implement.
7818 (frame_base_table): Delete function.
7819 (append_predicate): Delete function.
7820 (frame_base_append_sniffer): Update.
7821 (frame_base_set_default): Update.
7822 (frame_base_find_by_frame): Update.
7823 (_initialize_frame_base): Use gdbarch_data_register_pre_init.
7824 * Makefile.in (frame-base.o): Update dependencies.
7825
7826 2004-03-17 Andrew Cagney <cagney@redhat.com>
7827
7828 * frame.c (legacy_get_prev_frame): Pass correct frame to
7829 frame_unwind_find_by_frame.
7830
7831 2004-03-17 David Carlton <carlton@kealia.com>
7832
7833 * NEWS: Mention C++ nested types and namespaces
7834
7835 2004-03-16 Michael Chastain <mec.gnu@mindspring.com>
7836
7837 * PROBLEMS: Add section headers, "Regressions since gdb 6.0"
7838 and "Regressions since gdb 5.3.". Add known regressions since
7839 gdb 6.0.
7840
7841 2004-03-16 David Carlton <carlton@kealia.com>
7842
7843 * dwarf2read.c (process_structure_scope): Process children even
7844 when we're a declaration.
7845
7846 2004-03-16 Andrew Cagney <cagney@redhat.com>
7847
7848 * symtab.h (find_pc_sect_partial_function): Delete declaration.
7849 * blockframe.c (find_pc_partial_function)
7850 (find_pc_sect_partial_function): Merge into a single
7851 find_pc_partial_function.
7852
7853 2004-03-16 Mark Kettenis <kettenis@gnu.org>
7854
7855 * i386bsd-nat.c: s/regno/regnum/g.
7856 (fetch_inferior_registers): Use I386_ST0_REGNUM instead of
7857 FP0_REGNUM.
7858 (store_inferior_registers): Likewise.
7859
7860 2004-03-16 Mark Kettenis <kettenis@gnu.org>
7861
7862 * i386bsd-nat.c (fill_fpregset): Call i387_collect_fsave instead
7863 of i387_fill_fsave.
7864 (store_inferior_registers): Call i387_collect_fsave and
7865 i387_collect_fxsave instead of i387_fill_fsave and
7866 i387_fill_fxsave.
7867
7868 2004-03-15 Andrew Cagney <cagney@redhat.com>
7869
7870 * Makefile.in (frame-unwind.o): Update dependencies.
7871 * frame-unwind.c: Include "gdb_obstack.h".
7872 (frame_unwind_init): Replace "gdbarch" parameter with an "obstack"
7873 parameter.
7874 (append_predicate): Delete function.
7875 (struct frame_unwind_table_entry): New structure.
7876 (struct frame_unwind_table): Replace "sniffer" with "head" and
7877 "tail".
7878 (frame_unwind_append_sniffer): Update.
7879 (frame_unwind_find_by_frame): Update.
7880 (_initialize_frame_unwind): Registe frame_unwind_init using
7881 gdbarch_data_register_pre_init.
7882
7883 2004-03-15 Mark Kettenis <kettenis@gnu.org>
7884
7885 * i386bsd-nat.c: Update copyright year.
7886 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Undefine and then
7887 define unconditionally.
7888
7889 2004-03-15 Mark Kettenis <kettenis@gnu.org>
7890
7891 * i387-tdep.h (i387_collect_fsave): New prototype.
7892 * i387-tdep.c (i387_collect_fsave): New function containing most
7893 of the code from i387_fill_fsave.
7894 (i387_fill_fsave): Call i387_collect_fsave.
7895
7896 2004-03-15 Mark Kettenis <kettenis@gnu.org>
7897
7898 * i386-linux-tdep.c: Update copyright year.
7899 (i386_linux_svr4_fetch_link_map_offsets): Remove function.
7900 (i386_linux_init_abi): Set solib_svr4_fetch_link_maop_offsets to
7901 svr4_ilp32_link_map_offsets instead of
7902 i386_linux_svr4_fetch_link_map_offsets.
7903
7904 2004-03-15 David Carlton <carlton@kealia.com>
7905
7906 Fix for PR c++/1553:
7907 * dwarf2read.c (read_structure_type): Determine type name by
7908 calling determine_class_name.
7909 (determine_class_name): New.
7910 (determine_prefix): Look at TYPE_TAG_NAME and call
7911 determine_class_name when appropriate.
7912 (determine_prefix_aux, class_name): Delete.
7913 (read_namespace): Set die->type.
7914
7915 2004-03-15 Kevin Buettner <kevinb@redhat.com>
7916
7917 * breakpoint.c (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete
7918 unused macro definition. The definition in target.h (or perhaps
7919 elsewhere) takes precedence.
7920
7921 2004-03-15 Andrew Cagney <cagney@redhat.com>
7922
7923 * ppc-tdep.h: Update copyright.
7924 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Change
7925 function signatures to match "regsets.h".
7926 * ppc-linux-tdep.c: Include "regset.h".
7927 (ELF_GREGSET_SIZE): Delete.
7928 (right_supply_register): New function.
7929 (ppc_linux_supply_fpregset, ppc_linux_supply_gregset): Rewrite
7930 using right_supply_register.
7931 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): New
7932 functions.
7933 (ppc64_linux_gregset, ppc32_linux_gregset): Define.
7934 (ppc_linux_init_abi): Register ppc_linux_regset_from_core_section.
7935 (_initialize_ppc_linux_tdep): Do not register
7936 ppc_linux_regset_core_fns.
7937 (ppc_linux_regset_from_core_section): Replace
7938 fetch_core_registers.
7939 (ppc_linux_regset_core_fns): Delete.
7940 * ppc-linux-nat.c: (right_fill_reg): New function.
7941 (supply_gregset): Update call to ppc_linux_supply_gregset.
7942 (fill_gregset): Clear the register set, use right_fill_reg.
7943 (supply_fpregset): Update call to ppc_linux_supply_fpregset.
7944 (fill_fpregset): Use right_fill_reg, correctly compute FP offsets.
7945
7946 * rs6000-tdep.c (rs6000_register_virtual_type): Make registers
7947 unsigned.
7948
7949 2004-03-15 Andrew Cagney <cagney@redhat.com>
7950
7951 * gdbarch.sh (gdbarch_data_pre_init_fytpe)
7952 (gdbarch_data_register_pre_init, gdbarch_data_post_init_fytpe)
7953 (gdbarch_data_register_post_init): Replace gdbarch_data_init_ftype
7954 and register_gdbarch_data.
7955 (deprecated_set_gdbarch_data): Rename set_gdbarch_data.
7956 (struct gdbarch_data): Replace "init" by "pre_init" and
7957 "post_init".
7958 * gdbarch.h, gdbarch.c: Re-generate.
7959 * dwarf2-frame.c (dwarf2_frame_init): Replace "gdbarch" paramter
7960 with"obstack", use OBSTACK_ZALLOC.
7961 (dwarf2_frame_ops): Delete.
7962 (dwarf2_frame_set_init_reg): Use gdbarch_data.
7963 (dwarf2_frame_init_reg): Use gdbarch_data.
7964 (_initialize_dwarf2_frame): Use gdbarch_data_register_pre_init.
7965 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets)
7966 (_initialize_svr4_solib): Update.
7967 * user-regs.c (_initialize_user_regs): Update.
7968 * reggroups.c (_initialize_reggroup): Update.
7969 * regcache.c (_initialize_regcache): Update.
7970 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
7971 * libunwind-frame.c (_initialize_libunwind_frame): Update.
7972 * gnu-v3-abi.c (init_gnuv3_ops): Update.
7973 * frame-unwind.c (_initialize_frame_unwind): Update.
7974 * frame-base.c (_initialize_frame_base): Update.
7975 * user-regs.c (user_reg_add): Update.
7976 * reggroups.c (reggroup_add): Update.
7977 * mips-linux-tdep.c (set_mips_linux_register_addr): Update.
7978 * libunwind-frame.c (libunwind_frame_set_descr): Update.
7979 * frame-unwind.c (frame_unwind_append_sniffer): Update.
7980 * frame-base.c (frame_base_table): Update.
7981 * remote.c (_initialize_remote): Update.
7982 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Define.
7983
7984 2004-03-15 Andrew Cagney <cagney@redhat.com>
7985
7986 * cris-tdep.c (bfd_lookup_symbol): Delete unused function.
7987
7988 2004-03-15 Kevin Buettner <kevinb@redhat.com>
7989
7990 * Makefile.in (frv-linux-tdep.o): Add dependencies.
7991 * frv-linux-tdep.c: New file.
7992 * frv-tdep.c (struct gdbarch_tdep): Add new field
7993 ``sigcontext_reg_addr''.
7994 (frv_set_sigcontext_reg_addr, frv_sigtramp,frame_cache)
7995 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
7996 (frv_sigramp_frame_sniffer): New functions.
7997 (frv_sigtramp_frame_unwind): New static global.
7998 (frv_gdbarch_init): Hook in ABI-specific overrides. Hook up frame
7999 sniffers.
8000 * frv-tdep.h (frv_set_sigcontext_reg_addr): New function.
8001 * config/frv/frv.mt (TDEPFILES): Add frv-linux-tdep.o.
8002
8003 2004-03-15 Kevin Buettner <kevinb@redhat.com>
8004
8005 * frv-tdep.c (frv_analyze_prologue): Terminate prologue scan,
8006 but not via a call to error(), when unable to read memory.
8007
8008 2004-03-15 Kevin Buettner <kevinb@redhat.com>
8009
8010 * frv-tdep.c (frv_call_dummy_words): Delete.
8011 (frv_frame_unwind_cache): Delete unused variable, ``prev_sp''.
8012
8013 2004-03-15 Andrew Cagney <cagney@redhat.com>
8014
8015 * infrun.c (handle_step_into_function, step_over_function): Only
8016 update and use STEP_FRAME_ID when the system is using legacy
8017 frames. Update comments.
8018
8019 2004-03-14 Mark Kettenis <kettenis@gnu.org>
8020
8021 * amd64-linux-tdep.h: Remove file.
8022 * amd64-linux-tdep.c: Don't include "inferior.h" and
8023 "amd64-linux-tdep.h". Include "frame.h" and "solib-svr4.h".
8024 (USER_R15, USER_R14, USER_R13, USER_R12, USER_RBP, USER_RBX)
8025 (USER_R11, USER_R10, USER_R9, USER_R8, USER_RAX, USER_RCX)
8026 (USER_RDX, USER_RSI, USER_RDI, USER_RIP, USER_CS, USER_EFLAGS)
8027 (USER_RSP, USER_SS, USER_DS, USER_ES, USER_FS, USER_GS): Remove
8028 macros.
8029 (user_to_gdb_regmap): Remove variable.
8030 (amd64_linux_gregset_reg_offset): New variable.
8031 (amd64_core_fns): Remove variable.
8032 (fetch_core_registers): Remove function.
8033 (amd64_linux_supply_gregset, amd64_linux_fill_gregset): Remove
8034 functions.
8035 (_initialize_amd64_linux_tdep): Don't set add_core_fns.
8036 * amd64-linux-nat.c: Don't include "amd64-linux-tdep.h".
8037 * Makefile.in (amd64_linux_tdep_h): Remove.
8038 (amd64-linux-nat.o): Update dependencies.
8039 (amd64-linux-tdep.o): Update dependencies.
8040
8041 * amd64-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
8042 (fetch_regs, fetch_fpregs, store_regs, store_fpregs): Remove
8043 functions.
8044 (fetch_inferior_registers, store_inferior_registers): Rewrite.
8045
8046 * amd64-tdep.h (amd64_fill_fxsave): Remove prototype.
8047 * amd64-tdep.c (amd64_fill_fxsave): Remove function.
8048
8049 2004-03-14 Daniel Jacobowitz <drow@mvista.com>
8050
8051 * dwarf2read.c (read_structure_type): Rename from
8052 read_structure_scope. Don't create a symbol or call process_die.
8053 Return immediately if die->type is set. Call read_type_die before
8054 dwarf2_add_member_fn.
8055 (process_structure_scope): New function.
8056 (read_enumeration_type, process_enumeration_scope): New functions,
8057 broken out from read_enumeration. Don't create the enumeration
8058 type if it has already been created.
8059 (read_enumeration): Removed.
8060 (process_die): Call read_structure_type, process_structure_scope,
8061 read_enumeration_type, and process_enumeration_scope. Just call
8062 new_symbol for base and subrange types. Add a comment about other
8063 type dies.
8064 (read_type_die): Call read_enumeration_type.
8065 (add_partial_structure, new_symbol): Update comments.
8066
8067 2004-03-13 Stephane Carrez <stcarrez@nerim.fr>
8068
8069 * m68hc11-tdep.c (m68hc11_register_name): Get soft reg information.
8070
8071 2004-03-13 Stephane Carrez <stcarrez@nerim.fr>
8072
8073 * tui/tui-win.h (tui_get_cmd_list): Declare.
8074 * tui/tui-win.c (tui_command): New function.
8075 (tui_get_cmd_list): New function.
8076 (_initialize_tui_win): Moved initialization of tui command in
8077 tui_get_cmd_list.
8078
8079 * tui/tui-data.c (init_content_element): Setup new data members.
8080 (init_win_info): Likewise.
8081 (free_content_elements): Free it.
8082 * tui/tui-data.h (struct tui_data_element): Store the register
8083 content to print.
8084 (struct tui_data_info): Keep the current register group.
8085
8086 * tui/tui-layout.c (tui_set_layout): Update call to tui_show_registers.
8087
8088 * tui/tui-regs.h (tui_show_registers): Update prototype.
8089 (tui_toggle_float_regs, tui_calculate_regs_column_count): Remove.
8090 (tui_resize_all): No need to calculate anything for register window.
8091 * tui/tui-regs.c (tui_calculate_regs_column_count): Remove.
8092 (tui_set_register_element, tui_set_general_regs_content): Remove.
8093 (tui_set_special_regs_content): Remove.
8094 (tui_set_general_and_special_regs_content): Remove.
8095 (tui_set_float_regs_content): Remove.
8096 (tui_reg_value_has_changed, tui_get_register_raw_value): Remove.
8097 (tui_set_regs_content): Remove.
8098 (tui_toggle_float_regs, _tui_toggle_float_regs_command): Remove.
8099 (tui_v_show_registers_command_support): Remove.
8100 (tui_show_registers): Use a reggroup to specify the registers to show.
8101 (tui_show_register_group): New function.
8102 (tui_display_registers_from): Compute the layout of register window
8103 and refresh with new API; be sure to delete old register windows.
8104 (tui_check_register_values): Update to use tui_get_register and
8105 tui_display_data.
8106 (tui_display_register): Just refresh the register window part.
8107 (tui_register_format): Format registers and save in tui_data_element.
8108 (tui_get_register): New to combine tui_reg_value_has_changed and
8109 tui_get_register_raw_value; fix to use the new gdb API.
8110 (tui_show_float_command): Renamed tui_reg_float_command.
8111 (tui_show_general_command): Renamed tui_reg_general_command.
8112 (tui_show_special_command): Renamed tui_reg_system_command.
8113 (_initialize_tui_regs): Remove unused commands.
8114
8115 2004-03-13 Mark Kettenis <kettenis@gnu.org>
8116
8117 * NEWS (New native configurations): Mention OpenBSD/amd64.
8118
8119 * config/i386/nm-fbsd.h: Include "config/nm-bsd.h".
8120 (PTRACE_ARG3_TYPE, FETCH_INFERIOR_REGISTERS, ATTACH_DETACH):
8121 Remove defines.
8122 * config/i386/nm-fbsd64.h: Likewise.
8123 * config/i386/nm-obsd.h: Likewise.
8124 * config/sparc/nm-fbsd.h: Likewise. Update copyright year.
8125 * config/alpha/nm-fbsd.h: Likewise. Update copyright year.
8126
8127 2004-03-12 Kevin Buettner <kevinb@redhat.com>
8128
8129 * frv-tdep.c (set_variant_scratch_registers): New function.
8130 * frv-tdep.h (scr0_regnum, scr1_regnum, scr2_regnum, scr3_regnum):
8131 New constants.
8132
8133 From Richard Sandiford <rsandifo@redhat.com>:
8134 * frv-tdep.c (frv_gdbarch_init): Add FR450 support.
8135
8136 2004-03-12 Kevin Buettner <kevinb@redhat.com>
8137
8138 * frv-tdep.c, frv-tdep.h (first_gpr_regnum, sp_regnum, fp_regnum)
8139 (struct_return_regnum, last_gpr_regnum, first_fpr_regnum)
8140 (last_fpr_regnum, pc_regnum, first_spr_regnum, psr_regnum, ccr_regnum)
8141 (cccr_regnum, fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum)
8142 (tbr_regnum, brr_regnum, dbar0_regnum, dbar1_regnum, dbar2_regnum)
8143 (dbar3_regnum, lr_regnum, lcr_regnum, iacc0h_regnum, iacc0l_regnum)
8144 (last_spr_regnum, frv_num_regs, first_pseudo_regnum, iacc0_regnum)
8145 (last_pseudo_regnum, frv_num_pseudo_regs): Move constant (enum)
8146 definitions from frv-tdep.c to frv-tdep.h.
8147
8148 2004-03-12 Kevin Buettner <kevinb@redhat.com>
8149
8150 Add shared library support for FR-V FDPIC ABI:
8151 * Makefile.in (solib-frv.o): Add dependencies.
8152 * frv-tdep.c (find_func_descr, frv_convert_from_func_ptr_addr):
8153 New functions.
8154 (frv_push_dummy_call): Add support for FDPIC ABI.
8155 (frv_gdbarch_init): Call set_gdbarch_convert_from_func_ptr_addr()
8156 for FDPIC ABI.
8157 * frv-tdep.h (frv_fdpic_find_global_pointer): Declare.
8158 (frv_fdpic_find_canonical_descriptor): Declare.
8159 * solib-frv.c: New file.
8160 * config/frv/frv.mt (TDEPFILES): Add solib.o and solib-frv.o.
8161 * config/frv/tm-frv.h (solib.h): Include.
8162
8163 2004-03-12 Kevin Buettner <kevinb@redhat.com>
8164
8165 * Makefile.in (elf_frv_h, frv_tdep_h): Define.
8166 (frv-tdep.o): Update dependencies.
8167 * frv-tdep.h: New file.
8168 * frv-tdep.c (elf-bfd.h, elf/frv.h, osabi.h, frv-tdep.h): Include.
8169 (fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum): New
8170 constants.
8171 (struct gdbarch_tdep): Add new member ``frv_abi''.
8172 (frv_abi, frv_fdpic_loadmap_addresses, set_variant_abi_fdpic): New
8173 functions.
8174 (new_variant): Set ``frv_abi'' field.
8175 (gdb_arch_init): Detect FDPIC executables.
8176
8177 2004-03-12 Mark Kettenis <kettenis@gnu.org>
8178
8179 * solib-svr4.h: Change SOLIB_SVR4 wrapper into SOLIB_SVR4_H
8180 wrapper.
8181
8182 2004-03-11 Andrew Cagney <cagney@redhat.com>
8183
8184 * solib-svr4.h: Add #ifndef SOLIB_SVR4 wrapper.
8185
8186 2004-03-11 Kevin Buettner <kevinb@redhat.com>
8187
8188 * solist.h (master_so_list): New function.
8189 * solib.c (master_so_list): Likewise.
8190 * solib-svr4.c (enable_break): Iterate over so_list entries
8191 obtained from master list instead of entries obtained directly
8192 via svr4_current_sos().
8193
8194 2004-03-10 Ben Elliston <bje@gnu.org>
8195
8196 * MAINTAINERS: Update my mail address.
8197
8198 2004-03-10 Kei Sakamoto <sakamoto.kei@renesas.com>
8199
8200 * remote-m32r-sdi.c: Support hardware watchpoint.
8201
8202 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
8203
8204 * user-regs.c: Update copyright years.
8205 (struct user_regs): Rename to gdb_user_regs.
8206 (append_user_reg, builtin_user_regs, user_regs_init)
8207 (user_reg_add, user_reg_map_name_to_regnum)
8208 (usernum_to_user_reg): Update.
8209
8210 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
8211
8212 * dwarf2read.c (skip_leb128, peek_die_abbrev, skip_one_die)
8213 (skip_children): New functions.
8214 (locate_pdi_sibling): Call skip_children.
8215
8216 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
8217
8218 * arm-tdep.c (arm_use_struct_convention): Look through typedefs.
8219 * gdbtypes.c (check_typedef): Update comments.
8220
8221 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
8222
8223 * dwarf2read.c (struct comp_unit_head): Remove dwarf2_abbrevs array.
8224 (struct dwarf2_cu): Add abbrev_obstack and dwarf2_abbrevs
8225 pointer. Update comment about comp_unit_head.
8226 (struct abbrev_info): Shorten two int flags.
8227 (dwarf_alloc_abbrev): Take a CU argument.
8228 (dwarf2_build_psymtabs_hard): Call dwarf2_free_abbrev_table
8229 each time through the loop. Update cleanup argument.
8230 (psymtab_to_symtab_1): Update cleanup call.
8231 (dwarf2_read_abbrevs, dwarf2_alloc_abbrev): Allocate on the
8232 abbrev_obstack.
8233 (dwarf2_free_abbrev_table): Renamed from dwarf2_empty_abbrev_table.
8234 Just call obstack_free and clear the pointer.
8235
8236 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
8237
8238 * infrun.c (handle_inferior_event): Remove short-circuit code for
8239 events in a different thread.
8240
8241 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
8242
8243 * target.c (debug_to_xfer_memory): If targetdebug is 1, don't
8244 print the whole transfer.
8245 (initialize_targets): Update description of "set debug target".
8246
8247 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
8248
8249 * arm-tdep.c (thumb_get_next_pc): Handle Thumb BLX.
8250
8251 2004-03-08 Nathan J. Williams <nathanw@wasabisystems.com>
8252
8253 * MAINTAINERS (write after approval): Add myself.
8254
8255 2004-03-08 Corinna Vinschen <vinschen@redhat.com>
8256
8257 * sh-tdep.c (sh_print_registers_info): Use for loop.
8258 Don't skip multiple registers when a float register is encountered.
8259
8260 2004-03-08 Corinna Vinschen <vinschen@redhat.com>
8261
8262 Fix PR tdep/1291.
8263 * sh-tdep.c (sh_analyze_prologue): Align PC relative addressing
8264 to official SH documentation.
8265
8266 2004-03-07 Andrew Cagney <cagney@redhat.com>
8267
8268 * ppc-linux-nat.c (ppc_ptrace_cannot_fetch_store_register): Delete
8269 unused function.
8270
8271 2004-03-07 Daniel Jacobowitz <drow@mvista.com>
8272
8273 * arm-tdep.c (thumb_get_next_pc): Handle BX.
8274 (arm_get_next_pc): Handle BX and BLX.
8275
8276 2004-03-07 Andrew Cagney <cagney@redhat.com>
8277
8278 * hppa-tdep.c: Replace DEPRECATED_FP_REGNUM with HPPA_FP_REGNUM,
8279 FP0_REGNUM with HPPA_FP0_REGNUM, and SP_REGNUM with
8280 HPPA_SP_REGNUM.
8281 (hppa_register_raw_size, hppa_register_byte, hppa_read_fp)
8282 (hppa_target_read_fp): Delete.
8283 (hppa_gdbarch_init): Do not set deprecated register_raw_size,
8284 register_virtual_size, max_register_raw_size,
8285 max_register_virtual_size, register_byte, register_size,
8286 target_read_fp, fp_regnum, and register_bytes. Set register_type
8287 instead of register_virtual_type.
8288 (hppa32_register_type, hppa64_register_type): Replace
8289 hppa32_register_virtual_type and hppa64_register_virtual_type.
8290 * config/pa/tm-hppa.h (HPPA_FP0_REGNUM, HPPA_SP_REGNUM)
8291 (HPPA_FP_REGNUM): Define.
8292
8293 * hppa-tdep.c (hppa_gdbarch_init): Add missing "break".
8294
8295 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO)
8296 (pa_do_registers_info): Delete.
8297 * hppa-tdep.c (pa_do_registers_info, pa_do_strcat_registers_info)
8298 (pa_print_registers, pa_print_fp_reg, pa_strcat_registers)
8299 (pa_strcat_fp_reg, pa_register_look_aside): Delete.
8300
8301 * infcall.c (legacy_push_dummy_code): Delete #ifdef
8302 GDB_TARGET_IS_HPPA code.
8303 * config/pa/tm-hppa.h (DEPRECATED_FIX_CALL_DUMMY)
8304 (hppa_fix_call_dummy, DEPRECATED_CALL_DUMMY_HAS_COMPLETED)
8305 (DEPRECATED_DUMMY_WRITE_SP, CALL_DUMMY): Delete.
8306 * config/pa/tm-hppa64.h (CALL_DUMMY): Delete.
8307 * hppa-tdep.c (hppa_frame_chain, hppa_frame_chain_valid)
8308 (hppa_push_dummy_frame, hppa_pop_frame, hppa_push_arguments)
8309 (hppa_fix_call_dummy, hppa64_stack_align, hppa_frame_saved_pc)
8310 (hppa_init_extra_frame_info, hppa_saved_pc_after_call)
8311 (hppa64_call_dummy_breakpoint_offset, hppa_frame_init_saved_regs)
8312 (hppa_frameless_function_invocation, hppa64_store_return_value)
8313 (hppa_store_struct_return, hppa64_extract_return_value)
8314 (hppa64_use_struct_convention, hppa_frame_find_saved_regs)
8315 (hppa32_call_dummy_length, hppa64_call_dummy_length)
8316 (find_dummy_frame_regs, FUNC_LDIL_OFFSET, FUNC_LDO_OFFSET)
8317 (find_proc_framesize, deposit_21, restore_pc_queue)
8318 (find_return_regnum, pc_in_interrupt_handler, deposit_14)
8319 (rp_saved, pc_in_linker_stub): Delete.
8320
8321 Unconditionally enable 64-bit frame and ABI code.
8322 * hppa-tdep.c (hppa_gdbarch_init): Do not set deprecated
8323 call_dummy_breakpoint_offset, call_dummy_length, stack_align,
8324 push_dummy_frame, fix_call_dummy, push_arguments,
8325 call_dummy_location, extract_return_value, use_struct_convention,
8326 store_return_value, store_struct_return, saved_pc_after_call,
8327 init_frame_pc, frame_init_saved_regs, init_extra_frame_info,
8328 frame_chain, frame_chain_valid, frameless_function_invocation,
8329 frame_saved_pc, and pop_frame.
8330
8331 * hppa-tdep.c: Replace PC_REGNUM with PCOQ_HEAD_REGNUM.
8332 (hppa64_return_value, hppa64_push_dummy_call): Rewrite.
8333 (hppa_gdbarch_init): Do not set PC_REGNUM.
8334
8335 2004-03-06 Mark Kettenis <kettenis@gnu.org>
8336
8337 * config/alpha/tm-fbsd.h: Remove file.
8338 * config/alpha/fbsd.mt: Tweak comment.
8339 (TM_FILE): Set to tm-alpha.h.
8340
8341 2004-03-05 Andrew Cagney <cagney@redhat.com>
8342
8343 * infrun.c (step_over_function): When non-legacy code, and no
8344 step_frame_id, use the unwinder to get the caller's frame ID.
8345
8346 2004-03-05 Mark Kettenis <kettenis@gnu.org>
8347
8348 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Register
8349 i386bsd_core_osabi_sniffer for bfd_arch_i386 instead of
8350 bfd_arch_unknown. Adjust comment.
8351
8352 * i386-nat.c: Fix typo in comment. Re-introduce paranoiac.
8353 * i386obsd-tdep.c: Correct spelling in comment.
8354 * i386nbsd-tdep.c: Correct spelling in comment.
8355 * sparc-tdep.c: Correct spelling in comments.
8356
8357 2004-03-05 David Carlton <carlton@kealia.com>
8358
8359 * cp-namespace.c (cp_lookup_transparent_type_loop): Fix recursion
8360 bug.
8361
8362 2004-03-05 Mark Kettenis <kettenis@gnu.org>
8363
8364 * sparc-tdep.c: Fix typo in comment.
8365
8366 2004-03-04 J. Brobecker <brobecker@gnat.com>
8367
8368 * hppa-tdep.c (hppa_frame_cache): Avoid undefined return value.
8369
8370 2004-03-04 Daniel Jacobowitz <drow@mvista.com>
8371
8372 * dwarf2read.c: Add comment describing memory lifetimes.
8373 (struct dwarf2_pinfo): Update comment.
8374 (dwarf2_add_field, dwarf2_add_member_fn, read_structure_scope)
8375 (read_enumeration, new_symbol): Don't use obsavestring.
8376
8377 2004-03-04 Mark Kettenis <kettenis@gnu.org>
8378
8379 * amd64-linux-nat.c (fill_fpregset): Call amd64_colletc_fxsave
8380 instead of amd64_fill_fxsave.
8381 * amd64bsd-nat.c (store_inferior_registers): Likewise.
8382 * amd64fbsd-nat.c (fill_fpregset): Likewise.
8383
8384 * sparc-tdep.c (sparc_frame_cache): Don't bail out if %fp is zero.
8385 Reorganize code a bit.
8386
8387 2004-03-04 Orjan Friberg <orjanf@axis.com>
8388
8389 * cris-tdep.c (cris_scan_prologue): Save the frame pointer's offset
8390 when the frame pointer is pushed. Don't set the frame pointer's
8391 address on the stack unless it's actually located there.
8392 Set the SRP's address on the stack correctly when the PC is still in
8393 the prologue.
8394 (cris_return_value): New function.
8395 (cris_gdbarch_init): Clear deprecated store_return_value,
8396 extract_return_value.
8397
8398 2004-03-02 Jim Blandy <jimb@redhat.com>
8399
8400 * stabsread.c (reg_value_complaint): The maximum register number
8401 is one less than the number of registers.
8402
8403 2004-03-02 Andrew Cagney <cagney@redhat.com>
8404
8405 * i386-tdep.h (enum i386_regnum): Add I386_DS_REGNUM,
8406 I386_ES_REGNUM, I386_FS_REGNUM, and I386_GS_REGNUM. Remove
8407 trailing comma and redundant assignment of I386_ST0_REGNUM.
8408 * amd64-nat.c (amd64_collect_native_gregset): Zero-extend the
8409 32-bit segment registers.
8410
8411 2004-03-01 Andrew Cagney <cagney@redhat.com>
8412
8413 * rs6000-tdep.c (rs6000_init_frame_pc_first): Fix compiler error,
8414 use frame_relative_level and get_next_frame.
8415
8416 2004-02-29 Andrew Cagney <cagney@redhat.com>
8417
8418 * rs6000-tdep.c (rs6000_init_frame_pc_first): New function.
8419 (rs6000_gdbarch_init): Set deprecated_init_frame_pc_first.
8420 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST):
8421 Delete macro.
8422
8423 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
8424
8425 * inflow.c (terminal_inferior): Don't give up the terminal if we
8426 previously couldn't get the inferior's terminal state.
8427
8428 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
8429
8430 * regcache.c (read_pc_pid): Restore inferior_ptid after reading
8431 PC_REGNUM.
8432
8433 2004-02-28 Andrew Cagney <cagney@redhat.com>
8434
8435 * NEWS: Refer to GDB 6.1.
8436 * README: Refer to GDB 6.1.
8437 * PROBLEMS: Refer to GDB 6.1.
8438
8439 2004-02-28 Daniel Jacobowitz <drow@mvista.com>
8440
8441 * thread-db.c (disable_thread_signals): Remove unused function.
8442
8443 2004-02-28 Mark Kettenis <kettenis@gnu.org>
8444
8445 * amd64-nat.c: Include "gdb_string.h".
8446 (amd64_collect_native_gregset): Zero-extend the 32-bit
8447 general-purpose registers and %eip.
8448
8449 * amd64-tdep.h: (amd64_collect_fxsave): New prototype.
8450 * amd64-tdep.c (amd64_collect_fxsave): New function.
8451 (amd64_fill_fxsave): Simply call amd64_collect_fxsave.
8452
8453 * i387-tdep.h: Update copyright year.
8454 (i387_collect_fxsave): New prototype.
8455 * i387-tdep.c: Update copyright year.
8456 (i387_collect_fxsave): New function containing most of the code
8457 from i387_fill_fxsave.
8458 (i387_fill_fxsave): Call i387_collect_fxsave.
8459
8460 2004-02-28 Andrew Cagney <cagney@redhat.com>
8461
8462 * amd64-linux-nat.c (ps_get_thread_area): When architecture is
8463 i386 use PTRACE_GET_THREAD_AREA. Suggested by Roland McGrath.
8464
8465 2004-02-28 Mark Kettenis <kettenis@gnu.org>
8466
8467 * amd64-tdep.c (amd64_frame_cache): Fix comment.
8468
8469 2004-02-28 Andrew Cagney <cagney@redhat.com>
8470
8471 * utils.c: Use "", instead of <>, to include readline.
8472 tui/tui-win.c, tui/tui.c, tui/tui-hooks.c: Ditto.
8473 * tracepoint.c, top.c, symmisc.c, symfile.c: Ditto.
8474 * source.c, solib.c, exec.c, event-top.c: Ditto.
8475 * corelow.c, completer.c, cli/cli-setshow.c: Ditto.
8476 * cli/cli-dump.c, cli/cli-cmds.c: Ditto.
8477 * Makefile.in: Update all dependencies.
8478 (readline_tilde_h, readline_history_h): Define.
8479 (readline_headers): Delete.
8480
8481 2004-02-28 Mark Kettenis <kettenis@gnu.org>
8482
8483 * config/djgpp/fnchange.lst: Rename "config/i386/nm-linux64.h" to
8484 "config/i386/nm-lx64.h" and "config/i386/tm-linux64.h" to
8485 "config/i386/tm-lx64.h".
8486
8487 * config/djgpp/fnchange.lst: Rename "amd64-linux-tdep.c" to
8488 "amd64-ltdep.c" and "amd64-linux-nat.c" to "amd64-lnat.c". Remove
8489 rules for "x86-64-linux-tdep.c" and "x86-64-linux-nat.c".
8490
8491 2004-02-28 Andrew Cagney <cagney@redhat.com>
8492
8493 * dwarf2-frame.h (struct gdbarch): Add opaque declaration.
8494
8495 * breakpoint.c (_initialize_breakpoint): Use
8496 "add_setshow_auto_boolean_cmd. Better word-wrap help messages.
8497 Add help to show command.
8498
8499 2004-02-28 Mark Kettenis <kettenis@gnu.org>
8500
8501 * i386-nat.c: Reformat to be closer to coding standards.
8502 (i386_handle_nonaligned_watchpoint): Rename local variable `rv' to
8503 `retval'. Make variables `align' and `size' local to while-loop.
8504 (i386_stopped_data_address): Rename local variable `ret' to `addr'.
8505 (_initialize_i386_nat): New prototype.
8506
8507 * tui/tui.c: Include <readline/readline.h> instead of
8508 "readline/readline.h". Include it after <term.h> and
8509 "gdb_curses.h".
8510
8511 2004-02-27 Andrew Cagney <cagney@redhat.com>
8512
8513 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always use
8514 the new frame unwind code.
8515 (hppa_frame_cache): Use PCOQ_HEAD_REGNUM instead of PC_REGNUM.
8516 (hppa_frame_prev_register): Compute PCOQ_TAIL_REGNUM from
8517 PCOQ_HEAD_REGNUM.
8518
8519 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always
8520 "return_value" and "push_dummy_call".
8521 (hppa32_use_struct_convention): Delete unused function.
8522 (hppa32_store_return_value): Delete unused function.
8523 (hppa32_extract_return_value): Delete unused function.
8524 (hppa32_stack_align): Delete function.
8525
8526 2004-02-27 Eli Zaretskii <eliz@elta.co.il>
8527
8528 * coffread.c (enter_linenos): Don't let rawptr reference memory
8529 outside linetab[]'s limits.
8530
8531 2004-02-27 Andrew Cagney <cagney@redhat.com>
8532
8533 * hppa-tdep.c (hppa32_push_dummy_call): Fix code reserving
8534 inferior stack space - the stack needs to grow upwards.
8535 (hppa32_frame_align): New function.
8536 (hppa64_frame_align): Replace hppa_frame_align.
8537 (hppa_gdbarch_init): Update.
8538
8539 2004-02-26 Orjan Friberg <orjanf@axis.com>
8540
8541 * cris-tdep.c (frame_unwind.h, frame-base.h, trad-frame.h)
8542 (dwarf2-frame.h): Include.
8543 (enum cris_regnums): New enum CRIS_FP_REGNUM.
8544 Remove static variables related to ABI setting.
8545 (struct gdbarch_tdep): Remove cris_abi member.
8546 (struct frame_extra_info): Remove.
8547 (cris_unwind_cache, stack_item): New structs.
8548 (cris_frame_unwind, cris_frame_base): New variables.
8549 (push_stack_item, pop_stack_item)
8550 (cris_frame_unwind_cache, cris_frame_this_id)
8551 (cris_frame_prev_register, cris_unwind_dummy_id, cris_frame_align)
8552 (cris_push_dummy_code, cris_push_dummy_call, cris_frame_sniffer)
8553 (cris_frame_base_address, cris_scan_prologue, cris_unwind_pc)
8554 (cris_unwind_sp, cris_store_return_value, cris_extract_return_value)
8555 (cris_reg_struct_has_addr): New functions.
8556 (cris_examine, cris_frame_init_saved_regs, cris_frame_chain)
8557 (cris_frame_saved_pc, cris_saved_pc_after_call,
8558 (cris_store_struct_return, cris_frameless_function_invocation)
8559 (cris_pop_frame, cris_skip_prologue_main)
8560 (cris_abi_original_store_return_value)
8561 (cris_abi_v2_store_return_value)
8562 (cris_abi_original_extract_return_value)
8563 (cris_abi_v2_extract_return_value)
8564 (cris_abi_original_reg_struct_has_addr)
8565 (cris_abi_v2_reg_struct_has_addr)
8566 (cris_abi_original_push_arguments, cris_abi_v2_push_arguments)
8567 (cris_push_return_address, cris_abi_update): Remove.
8568 (_initialize_cris_tdep): Remove ABI command.
8569 (cris_dump_tdep): Ditto.
8570 (cris_gdbarch_init): Remove ABI command.
8571 Set store_return_value, extract_return_value, push_dummy_code,
8572 push_dummy_call, frame_align, unwind_pc, unwind_sp, unwind_dummy_id,
8573 frame_unwind_append_sniffer, frame_base_set_default.
8574 Clear deprecated init_frame_pc, push_arguments, store_return_value,
8575 extract_return_value, fp_regnum, pc_in_call_dummy, call_dummy_words,
8576 sizeof_call_dummy_words, get_saved_register, push_return_address,
8577 pop_frame, store_struct_return, frame_init_saved_regs,
8578 init_extra_frame_info, frameless_function_invocation, frame_chain,
8579 frame_saved_pc, saved_pc_after_call, save_dummy_frame_tos,
8580 dummy_write_sp.
8581
8582 2004-02-26 Jeff Johnston <jjohnstn@redhat.com>
8583
8584 * valprint.h (print_hex_chars, print_char_chars): New prototypes.
8585 * valprint.c (print_hex_chars): Change from static to external.
8586 (print_char_chars): New function.
8587 * printcmd.c (print_scalar_formatted): For integer and enum types
8588 that are longer than LONGEST, perform processing via appropriate
8589 print_*_chars routines.
8590
8591 2004-02-26 Andrew Cagney <cagney@redhat.com>
8592
8593 * Makefile.in: Update dependencies.
8594 Changes from Ulrich Weigand,
8595 * s390-tdep.c: Include "dwarf2-frame.h".
8596 (s390_dwarf2_frame_init_reg): New function.
8597 (s390_gdbarch_init): Install dwarf2_frame_sniffer and
8598 dwarf2_frame_base_sniffer. Call dwarf2_frame_set_init_reg.
8599
8600 2004-02-26 Jeff Johnston <jjohnstn@redhat.com>
8601
8602 * breakpoint.c (pending_break_support): New setting variable.
8603 (break_command_1): Account for pending_break_support setting
8604 when creating pending breakpoints.
8605 (set_breakpoint_cmd, show_breakpoint_cmd): New functions.
8606 (_initialize_breakpoint): Add "set breakpoint pending" and
8607 "show breakpoint pending" commands.
8608
8609 2004-02-26 Andrew Cagney <cagney@redhat.com>
8610
8611 Fix PR i18n/1570.
8612 * charset.c (backslashable, backslashed, represented): Remove 'e'
8613 from list of escaped characters, not part of ISO-C.
8614
8615 2004-02-25 J. Brobecker <brobecker@gnat.com>
8616
8617 From Peter Schauer <schauer@pdf.de>:
8618 * tui/tui.c: Move system header includes after local includes.
8619 Fixes a build failure on solaris systems.
8620
8621 2004-02-25 J. Brobecker <brobecker@gnat.com>
8622
8623 * configure.in: Refine the previous change.
8624 * configure: Regenerate.
8625
8626 2004-02-25 Mark Kettenis <kettenis@gnu.org>
8627
8628 * amd64-tdep.h: Renamed from x86-64-tdep.h.
8629 * amd64-tdep.c: Renamed from x86-64-tdep.c. Include
8630 "amd64-tdep.h" instead of "x86-64-tdep.h".
8631 * amd64-nat.c: Include "amd64-tdep.h" instead of "x86-64-tdep.h".
8632 * amd64-linux-tdep.h: Renamed from x86-64-linux.h.
8633 * amd64-linux-tdep.c: Renamed from x86-64-linux-tdep.c. Include
8634 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
8635 and "x86-64-tdep.c".
8636 * amd64-linux-nat.c: Renamed from x86-64-linux-nat.c. Include
8637 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
8638 and "x86-64-tdep.c".
8639 * amd64bsd-nat.c: Update copyright year.
8640 Include "amd64-tdep.h" instead of "x86-64-tdep.h".
8641 * amd64fbsd-tdep.c: Include "amd64-tdep.h" instead of
8642 "x86-64-tdep.h".
8643 * amd64fbsd-nat.c: Include "amd64-tdep.h" instead of
8644 "x86-64-tdep.h".
8645 * amd64nbsd-tdep.c: Include "amd64-tdep.h" instead of
8646 "x86-64-tdep.h".
8647 * amd64nbsd-nat.c: Include "amd64-tdep.h" instead of
8648 "x86-64-tdep.h".
8649 * amd64obsd-tdep.c: Include "amd64-tdep.h" instead of
8650 "x86-64-tdep.h".
8651 * amd64obsd-nat.c: Include "amd64-tdep.h" instead of
8652 "x86-64-tdep.h".
8653 * configure.host: (x86_64-*-linux*): Set gdb_target to linux64.
8654 * configure.tgt (x86_64-*-linux*): Set gdb_target to linux64.
8655 * Makefile.in (amd64_linux_tdep_h): Renamed from
8656 x86_64_linux_tdep_h.
8657 (amd64_tdep_h): Renamed from x86_64_tdep_h.
8658 (amd64bsd-nat.o, amd64fbsd-nat.o, amd64fbsd-tdep.o, amd64-nat.o)
8659 (amd64nbsd-nat.o, amd64nbsd-tdep.o, amd64obsd-nat.o)
8660 (amd64obsd-tdep.o): Update dependencies.
8661 (amd64-tdep.o, amd64-linux-nat.o, amd64-linux-tdep.o): New
8662 dependencies.
8663 (x86-64-linux-nat.o, x86-64-linux-tdep.o, x86-64-tdep.o): Remove
8664 dependencies.
8665 (ALLDEPFILES): Add amd64-tdep.c, amd64obsd-nat.c, amd64obsd-nat.c,
8666 amd64-linux-nat.c amd64-linux-tdep.c.
8667 * config/i386/tm-linux64.h: Renamed from tm-x86-64linux.h
8668 * config/i386/nm-linux64.h: Renamed from nm-x86-64linux.h.
8669 * config/i386/linux64.mt: Renamed from x86-64linux.mt.
8670 (TDEPFILES): Replace x86-64-tdep.o and x86-64-linux-tdep.o with
8671 amd64-tdep.o and amd64-linux-tdep.o.
8672 (TM_FILE): Set to tm-linux64.h.
8673 * config/i386/linux64.mh: Renamed from x86-64linux.mh.
8674 (NAT_FILE): Set to nm-linux64.h.
8675 (NATDEPFILES): Replace x86-64-linux-nat.o with amd64-linux-nat.o.
8676 * config/i386/fbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
8677 amd64-tdep.o.
8678 * config/i386/nbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
8679 amd64-tdep.o.
8680 * config/i386/obsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
8681 amd64-tdep.o.
8682
8683 2004-02-25 Roland McGrath <roland@redhat.com>
8684
8685 * remote.c (remote_protocol_qPart_auxv): New variable.
8686 (init_all_packet_configs): Initialize it.
8687 (set_remote_protocol_qPart_auxv_packet_cmd): New function.
8688 (show_remote_protocol_qPart_auxv_packet_cmd): New function.
8689 (show_remote_cmd): Call it.
8690 (_initialize_remote): Initialize commands.
8691 (remote_xfer_partial): If enabled, use qPart:auxv:read:... query to
8692 service TARGET_OBJECT_AUXV requests.
8693
8694 2004-02-25 J. Brobecker <brobecker@gnat.com>
8695
8696 * configure.in: Make sure that the wborder function is available.
8697 Otherwise, search for it in the cur_colr library.
8698 * configure: Regenerate.
8699
8700 2004-02-25 Andrew Cagney <cagney@redhat.com>
8701
8702 * hppa-tdep.c (hppa32_push_dummy_call): Rewrite.
8703
8704 2004-02-25 Mark Kettenis <kettenis@gnu.org>
8705
8706 * config/i386/tm-x86-64linux.h: Tweak comments.
8707
8708 2004-02-25 Richard Sandiford <rsandifo@redhat.com>
8709
8710 * MAINTAINERS: Add self to write-after-approval list.
8711
8712 2004-02-25 Andrew Cagney <cagney@redhat.com>
8713
8714 PR cli/1566. Problem found, and fix suggested by David Allan.
8715 * cli/cli-script.c (execute_control_command): Unconditionally
8716 install a cleanup. Default "ret" to "invalid_control". Use
8717 "break" instead of "return" to escape from the switch.
8718
8719 2004-02-24 J. Brobecker <brobecker@gnat.com>
8720
8721 * tui/tui-disasm.c: %s/lines/asm_lines/g to avoid a collision
8722 with the lines macro defined in term.h on AiX.
8723 * tui/tui-regs.c: %s/label_width/tui_label_width/g, to avoid
8724 a collision with the label_width macro defined in term.h on AiX.
8725
8726 2004-02-23 David Mosberger <davidm@hpl.hp.com>
8727
8728 Committed by Kevin Buettner <kevinb@redhat.com>.
8729
8730 * ia64-tdep.h (ia64_write_pc, ia64_linux_write_pc): Declare.
8731 * ia64-tdep.c (ia64_write_pc): Make it a global function.
8732 (ia64_gdbarch_init): For Linux targets, use ia64_linux_write_pc()
8733 instead of ia64_write_pc().
8734 * ia64-linux-tdep.c (regcache.h): Include.
8735 (ia64_linux_write_pc): New function.
8736
8737 2004-02-23 Roland McGrath <roland@redhat.com>
8738
8739 * auxv.c (info_auxv_command): Fix typos in error messages.
8740
8741 2004-02-23 Mark Kettenis <kettenis@gnu.org>
8742
8743 * x86-64-tdep.h: Tweak comment.
8744 (enum amd64_regnum): New.
8745 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM)
8746 (X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM)
8747 (X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM)
8748 (X86_64_XMM1_REGNUM): Removed.
8749 (AMD64_NUM_GREGS): Renamed from X86_64_NUM_GREGS.
8750 (amd64_init_abi, amd64_supply_fxsave, amd64_fill_fxsave): Adjust
8751 prototypes for renamed functions.
8752 * x86-64-tdep.c: Fix typo.
8753 (amd64_dwarf_regmap): Use constants from `enum amd64_regnum' for
8754 register numbers.
8755 (amd64_return_value, amd64_push_arguments, amd64_push_dummy_call):
8756 Use constants from `enum amd64_regnum' for register numbers.
8757 (AMD64_NUM_SAVED_REGS): Adjust for renamed macros.
8758 (amd64_analyze_prologue, amd64_frame_cache,
8759 amd64_sigtramp_frame_cache): Use constants from `enum
8760 amd64_regnum' for register numbers.
8761 (amd64_supply_fpregset): Adjust for renamed functions.
8762 (amd64_init_abi): Rename from x86_64_init_abi. Use constants from
8763 `enum amd64_regnum' for register numbers.
8764 (I387_ST0_REGNUM): Use constant from `enum amd64_regnum'.
8765 (amd64_supply_fxsave): Rename from x86_64_supply_fxsave.
8766 (amd64_fill_fxsave): Rename fro x86_64_fill_fxsave.
8767 * x86-64-linux-tdep.c (amd64_linux_supply_gregset)
8768 (amd64_linux_fill_gregset): Adjust for renamed macros.
8769 (fetch_core_registers): Adjust for renamed functions.
8770 (amd64_linux_init_abi): Adjust for renamed functions.
8771 * x86-64-linux-nat.c (supply_gregset, fill_gregset): Adjust for
8772 renamed functions.
8773 * amd64-nat.c: Adjust for renamed macros.
8774 * amd64bsd-nat.c (fetch_inferior_registers)
8775 (store_inferior_registers): Use constants from `enum amd64_regnum'
8776 for register numbers. Adjust for renamed variables.
8777 * amd64fbsd-nat.c (supply_gregset, fill_gregset): Adjust for
8778 renamed variables.
8779 (_initialize_amd64fbsd_nat): Use constants from `enum
8780 amd64_regnum' for register numbers.
8781 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use constants from
8782 `enum amd64_regnum' for register numbers.
8783 (amd64fbsd_init_abi): Adjust for renamed functions.
8784 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Use constants from
8785 `enum amd64_regnum' for register numbers.
8786 (amd64nbsd_init_abi): Adjust for renamed functions.
8787 (_initialize_amd64nbsd_ndep): Adjust for renamed macros.
8788 * amd64obsd-tdep.c (amd64obsd_sigcontext_addr): Use constants from
8789 `enum amd64_regnum' for register numbers.
8790 (amd64obsd_init_abi): Adjust for renamed functions.
8791 (_initialize_amd64obsd_ndep): Adjust for renamed macros.
8792
8793 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
8794
8795 * breakpoint.c (print_one_breakpoint): Do not output spaces
8796 after printing <PENDING> for a pending breakpoint.
8797
8798 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
8799
8800 * printcmd.c (print_scalar_formatted): Initialize val_long
8801 to remove compiler warning message.
8802
8803 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
8804
8805 * defs.h (nquery, yquery): New prototypes.
8806 * breakpoint.c (break_command_1): Use new nquery interface.
8807 * utils.c (defaulted_query, nquery, yquery): New functions.
8808
8809 2004-02-23 Andrew Cagney <cagney@redhat.com>
8810
8811 * hppa-tdep.c (hppa_frame_align): New function.
8812 (hppa32_push_dummy_call): New function.
8813 (hppa64_push_dummy_call): New function.
8814 (hppa_gdbarch_init): Set frame_align and push_dummy_call; keep
8815 disabled.
8816
8817 * infcall.c (legacy_push_dummy_code): Don't call deprecated
8818 FIX_CALL_DUMMY when push_dummy_call is available.
8819 (call_function_by_hand, push_dummy_code): Ditto.
8820
8821 2004-02-22 Andrew Cagney <cagney@redhat.com>
8822
8823 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Delete macro.
8824 (DEPRECATED_PC_IN_CALL_DUMMY): Delete macro.
8825 (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete macro.
8826 * hppa-tdep.c (hppa_gdbarch_init): Clear deprecated
8827 use_generic_dummy_frames, set deprecated pc_in_call_dummy, set
8828 call_dummy_location to ON_STACK.
8829
8830 2004-02-22 Mark Kettenis <kettenis@gnu.org>
8831
8832 * x86-64-linux-tdep.c: Tweak comment.
8833 (amd64_linux_supply_gregset): Renamed from
8834 x86_64_linux_supply_gresget.
8835 (amd64_linux_fill_gregset): Renamed from
8836 x86_64_linux_fill_gregset.
8837 (fetch_core_registers): Adjust for renamed functions.
8838 (amd64_core_fns): Renamed from x86_64_core_fns.
8839 (amd64_linux_sigtramp_start): Renamed from
8840 x86_64_linux_sigtramp_start.
8841 (amd64_linux_pc_in_sigtramp): Renamed from
8842 x86_64_linux_pc_in_sigtramp. Adjust for renamed functions.
8843 (AMD64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Renamed from
8844 X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET.
8845 (amd64_linux_sigcontext_addr): Renamed from
8846 x86_64_linux_sigcontext_addr.
8847 (amd64_linux_sc_reg_offset): Renamed from
8848 x86_64_linux_sc_reg_offset.
8849 (amd64_linux_init_abi): Renamed from x86_64_linux_init_abi.
8850 Adjust for renamed functions and variables.
8851 (_initialize_amd64_linux_tdep): Renamed from
8852 _initialize_x86_64_linux_tdep. Adjust for renamed functions and
8853 variables.
8854 * x86-64-linux-tdep.h: Update copyright year. Tweak comment.
8855 Adjust for renamed functions.
8856
8857 * x86-64-linux-nat.c (amd64_linux_gregset64_reg_offset): Rename
8858 from x86_64_linux_gregset64_reg_offset.
8859 (amd64_linux_gregset32_reg_offset): Rename from
8860 x86_64_linux_gregset64_reg_offset.
8861 (amd64_linux_dr_get): Renamed from x86_64_linux_dr_get.
8862 (amd64_linux_dr_set): Renamed from x86_64_linux_dr_set.
8863 (amd64_linux_dr_set_control): Renamed from
8864 x86_64_linux_dr_set_control. Adjust for renamed functions.
8865 (amd64_linux_dr_set_addr): Renamed from x86_64_linux_dr_set_addr.
8866 Adjust for renamed functions.
8867 (amd64_linux_dr_reset_addr): Renamed from
8868 x86_64_linux_dr_reset_addr. Adjust for renamed functions.
8869 (amd64_linux_dr_get_status): Renamed from
8870 x86_64_linux_dr_get_status. Adjust for renamed functions.
8871 (_initialize_amd64_linux_nat): Renamed from
8872 _initialize_x86_64_linux_nat. Adjust for renamed variables and
8873 functions.
8874 * config/i386/nm-x86-64linux.h: Update copyright year.
8875 Adjust for renamed functions.
8876
8877 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_start_addr): Renamed from
8878 amd64fbsd_sigtramp_start.
8879 (amd64fbsd_sigtramp_end_addr): Renamed from
8880 amd64fbsd_sigtramp_end.
8881 (amd64fbsd_init_abi): Adjust for renamed variables.
8882 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Adjust for renamed
8883 variables.
8884 * x86-64-tdep.h (amd64fbsd_sigtramp_start_addr): Renamed from
8885 amd64fbsd_sigtramp_start.
8886 (amd64fbsd_sigtramp_end_addr): Renamed from
8887 amd64fbsd_sigtramp_end.
8888
8889 2004-02-22 Andrew Cagney <cagney@redhat.com>
8890
8891 * hppa-tdep.c (hppa32_return_value): New function.
8892 (hppa64_return_value): New function.
8893 (hppa_gdbarch_init): Set return_value; keep disabled.
8894
8895 * hppa-tdep.c (hppa_gdbarch_init): Re-order separating
8896 struct-return and inferior function call methods.
8897
8898 * hppa-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
8899 "frame-base.h".
8900 (struct hppa_frame_cache): Define.
8901 (hppa_frame_cache, hppa_frame_this_id): New functions.
8902 (hppa_frame_prev_register): New function.
8903 (hppa_frame_unwind, hppa_frame_base): New variables.
8904 (hppa_frame_unwind_sniffer): New function.
8905 (hppa_frame_base_address, hppa_unwind_pc): New function.
8906 (hppa_gdbarch_init): Set unwind_dummy_id, unwind_pc, frame unwind
8907 sniffer, and frame base sniffer; keep disabled.
8908 (hppa_frame_base_sniffer, hppa_unwind_dummy_id): New functions.
8909 * Makefile.in: Update dependencies, fix s/nbsd/obsd/ typo.
8910
8911 * frame-unwind.c (frame_unwind_find_by_frame): Add legacy_frame_p
8912 to predicates for "seriously old code".
8913
8914 * hppa-tdep.c (hppa_gdbarch_init): Convert compile time #if0s into
8915 runtime if(0).
8916
8917 * hppa-tdep.c (hppa_breakpoint_from_pc): Make "breakpoint"
8918 unsigned.
8919 (hppa_frame_find_saved_regs): Fix "std" instruction pattern
8920
8921 * config/pa/tm-hppa.h: Update copyright.
8922 (DEPRECATED_INIT_FRAME_PC): Delete macro.
8923 (deprecated_init_frame_pc_default): Delete declaration.
8924 (hppa_frame_init_saved_regs): Delete declaration.
8925 (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
8926 * hppa-tdep.c: Include "arch-utils.h".
8927 (hppa_gdbarch_init): Set deprecated init_frame_pc
8928 and deprecated frame_init_saved_regs.
8929 (hppa_frame_init_saved_regs): Make static.
8930
8931 2004-02-22 Mark Kettenis <kettenis@gnu.org>
8932
8933 Remove old 386BSD support.
8934 * NEWS (REMOVED configurations and files): Add i[3456]86-*-bsd*.
8935 * configure.host: Remove i[34567]86-*-bsd*.
8936 * configure.tgt: Remove i[34567]86-*-bsd*.
8937 * i386b-nat.c: Removed.
8938 * Makefile.in (ALLDEPFILES): Remove i386b-nat.c.
8939 (i386b-nat.o): Remove dependencies.
8940
8941 * config/i386/i386bsd.mh: Removed.
8942 * config/i386/i386bsd.mt: Removed.
8943 * config/i386/nm-i386bsd.h: Removed.
8944 * config/i386/tm-i386bsd.h: Removed.
8945 * config/i386/xm-i386bsd.h: Removed.
8946
8947 * x86-64-tdep.h (amd64obsd_r_reg_offset): New extern declaration.
8948
8949 * amd64fbsd-tdep.c: Include "solib-svr4.h".
8950 (amd64fbsd_init_abi): Set link map offsets.
8951 * amd64nbsd-tdep.c: Include "slib-svr4.h".
8952 (amd64nbsd_init_abi): Set link map offsets.
8953 * amd64obsd-tdep.c: Include "solib-svr4.h".
8954 (amd64obsd_init_abi): Set link map offsets.
8955 * i386fbsd-tdep.c: Include "solib-svr4.h".
8956 (i386fbsd_init_abi): Set link map offsets.
8957 * i386nbsd-tdep.c: Include "solib-svr4.h".
8958 (i386nbsdelf_init_abi): Set link map offsets.
8959 * Makefile.in (amd64fbsd-tdep.o, amd64nbsd-tdep.o)
8960 (amd64obsd-tdep.o, i386fbsd-tdep.o): Update dependencies.
8961 * config/i386/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o,
8962 solib-legacy.o and core-aout.o. Reformat.
8963 * config/i386/fbsd64.mh (NATDEPFILES): Remove solib.o,
8964 solib-svr4.o, solib-legacy.o. Reformat.
8965 * config/i386/nbsdaout.mh (NATDEPFILES): Add solib.o. Reformat.
8966 * config/i386/nbsdelf.mh: Reformat.
8967 * config/i386/nbsd64.mh (NATDEPFILES): Remove solib.o,
8968 solib-svr4.o, solib-legacy.o and corelow.o.
8969 * config/i386/obsd.mh, config/i386/obsdaout.mh: Reformat.
8970 * config/i386/obsd64.mh (NATDEPFILES): Remove solib.o,
8971 solib-svr4.o, solib-legacy.o and corelow.o. Reformat.
8972 * config/i386/fbsd.mt (TDEPFILES): Add solib.o, solib-svr4.o.
8973 * config/i386/fbsd64.mt (TDEPFILES): Add solib.o, solib-svr4.o.
8974 (TM_FILE): Set to tm-fbsd.h.
8975 * config/i386/nbsd.mt (TDEPFILES): Reformat.
8976 * config/i386/nbsd64.mt (TDEPFILES): Add corelow.o, solib.o and
8977 solib-svr4.o.
8978 * config/i386/obsd.mt (TDEPFILES): Add corelow.o, solib.o and
8979 solib-svr4.o.
8980 (TM_FILE): Set to nm-nbsd.h.
8981 * config/i386/nm-fbsd.h: Update copyright year. Tweak comments.
8982 Simplify shared library support. Don't include "elf/common.h".
8983 (SVR4_SHARED_LIBS): Don't define.
8984 * config/i386/nm-fbsd64.h: Update copyright year. Don't include
8985 "solib.h".
8986 * config/i386/nm-nbsd.h, config/i386/nm-nbsdaout.h,
8987 config/i386/nm-obsd.h: Update copyright year. Tweak comments.
8988 * config/i386/tm-fbsd.h: Update copyright tear. Tweak comments.
8989 Don't include "i386/tm-i386.h". Include "solib.h".
8990 * config/i386/tm-nbsd.h: Update copyright year. Tweak comments.
8991 Don't include "i386/tm-i386.h".
8992 * config/i386/xm-i386.h: Update copyright year. Tweak comments.
8993 * config/i386/xm-nbsd.h: Update copyright year. Tweak comments.
8994 Include "i386/xm-i386.h".
8995 (HOST_LONG_DOUBLE_FORMAT): Remove.
8996
8997 Fix OpenBSD/i386 sigtramp recognition.
8998 * i386-tdep.h: Update copyright year.
8999 (i386bsd_pc_in_sigtramp, i386bsd_sigtramp_start)
9000 (i386bsd_sigtramp_end): New prototypes.
9001 (i386fbsd_sigtramp_start_addr): Renamed from
9002 i386fbsd_sigtramp_start.
9003 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
9004 (i386obsd_sigtramp_start_addr): Renamed from
9005 i386obsd_sigtramp_start.
9006 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
9007 * i386bsd-tdep.c: Update copyright year.
9008 (i386bsd_pc_in_sigtramp): Make public.
9009 * i386fbsd-nat.c: Update copyright year.
9010 (_initialize_i386fbsd_nat): Adjust for renamed variables.
9011 * i386fbsd-tdep.c: Update copyright year.
9012 (i386fbsd_sigtramp_start_addr): Renamed from
9013 i386fbsd_sigtramp_start.
9014 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
9015 (i386fbsdaout_init_abi): Adjust for renamed variables.
9016 * i386obsd-nat.c: Update copyright year.
9017 (_initialize_i386obsd_nat): Adjust for renamed variables.
9018 * i386obsd-tdep.c: Include "target.h".
9019 (i386obsd_page_size): New variable.
9020 (i386obsd_pc_in_sigtramp, i386obsd_sigtramp_start)
9021 (i386obsd_sigtramp_end): New functions.
9022 (i386obsd_sigtramp_start_addr): Renamed from
9023 i386obsd_sigtramp_start.
9024 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
9025 (i386obsd_init_abi): Adjust for renamed variables. Set
9026 pc_in_sigtramp, sigtramp_start and sigtramp_end.
9027 * Makefile.in (i386obsd-tdep.o): Update dependencies.
9028
9029 * amd64obsd-tdep.c (amd64obsd_pc_in_sigtramp): Adjust for signal
9030 trampoline change in OpenBSD kernel.
9031
9032 * amd64-nat.c: Update copyright year.
9033 (amd64_supply_native_gregset, amd64_collect_native_gregset): Use
9034 architecture from REGCACHE.
9035
9036 * x86-64-linux-nat.c (x86_64_linux_gregset32_reg_offset): Use
9037 symbolic constants from <sys/reg.h> instead of hard-coded numbers.
9038
9039 2004-02-21 Mark Kettenis <kettenis@gnu.org>
9040
9041 * configure.host: Add i[34567]86-*-openbsd[0-2].* and
9042 i[34567]86-*-openbsd3.[0-3].
9043 * config/i386/obsdaout.mh: New file.
9044
9045 * config/i386/obsd.mh (MH_FLAGS): Remove.
9046
9047 Fix PR build/1549.
9048 * i386obsd-tdep.c: Update copyright years. Include
9049 "solib-svr4.h".
9050 (i386obsd_init_abi): Don't set regset_from_core_section here.
9051 (i386obsd_aout_init_abi): New function. Set
9052 regset_from_core_section here.
9053 (i386obsd_elf_init_abi): New function.
9054 (_initialize_i386obsd_tdep): Register OS/ABI for OpenBSD ELF.
9055 * Makefile.in (i386obsd-tdep.o): Update dependecies.
9056 * config/i386/obsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
9057 (TM_FILE): Set to tm-nbsd.h.
9058
9059 * config/i386/obsd.mh (NATDEPFILES): Remove solib.o and
9060 solib-sunos.o.
9061
9062 * solib-svr4.h: Update copyright year.
9063 (svr4_ilp32_fetch_link_map_offsets)
9064 (svr4_lp64_fetch_link_map_offsets): New prototype.
9065 * solib-svr4.c: Update copyright year.
9066 (svr4_ilp32_fetch_link_map_offsets)
9067 (svr4_lp64_fetch_link_map_offsets): New function.
9068
9069 2004-02-20 Daniel Jacobowitz <drow@mvista.com>
9070
9071 * dwarf2read.c (add_partial_symbol): Fix typo in adding enumerators
9072 to the partial symbol table.
9073
9074 2004-02-20 J. brobecker <brobecker@gnat.com>
9075
9076 * PROBLEMS: Add description of problem documented under gdb/1560.
9077
9078 2004-02-20 Mark Kettenis <kettenis@gnu.org>
9079
9080 * amd64obsd-tdep.c: Include "regset.h" and "i387-tdep.h". Fix
9081 comments.
9082 (amd64obsd_supply_regset, amd64obsd_regset_from_core_section): New
9083 functions.
9084 (amd64obsd_init_abi): Reorder initializations. Use
9085 amd64obsd_r_reg_offset to initialize the general-purpose register
9086 set details. Set regset_from_core_section.
9087 (_initialize_amd64obsd_tdep): Rename from
9088 _initialize_amd64obsd_ndep. Add OS ABI handler for core dumps.
9089 * Makefile.in (amd64obsd-tdep.o): Update dependencies.
9090 * config/i386/obsd64.mt (TDEPFILES): Add i386-tdep.o.
9091
9092 * NEWS (New native configurations): Mention OpenBSD/alpha.
9093 * configure.tgt: Add alpha*-*-openbsd*.
9094 * configure.host: Add alpha*-*-openbsd*.
9095 * alphanbsd-tdep.c: Update copyright year.
9096 (_initialize_alphanbsd_tdep): Register OS ABI for OpenBSD ELF.
9097
9098 2004-02-20 Andrew Cagney <cagney@redhat.com>
9099
9100 Fix PR tdep/1372.
9101 * configure.tgt: Delete target "none-*-*".
9102 * configure.host: Delete host "none-*-*".
9103 * config/none/none.mh: Delete file.
9104 * config/none/none.mt: Delete file.
9105 * config/none/xm-none.h: Delete file.
9106 * config/none/tm-none.h: Delete file.
9107 * config/none/nm-none.h: Delete file.
9108
9109 2004-02-19 Fred Fish <fnf@redhat.com>
9110
9111 * sh-tdep.c (sh_analyze_prologue): Eliminate useless test of
9112 cache->uses_fp prior to setting it.
9113
9114 2004-02-19 Fred Fish <fnf@redhat.com>
9115
9116 Fix for PR breakpoint/1558.
9117 * sh-tdep.c (IS_JSR): New macro.
9118 (sh_analyze_prologue): Use IS_JSR to terminate prologue scan.
9119
9120 2004-02-19 Jim Blandy <jimb@redhat.com>
9121
9122 * findvar.c (value_from_register): Doc fix.
9123
9124 2004-02-19 Jeff Johnston <jjohnstn@redhat.com>
9125
9126 * printcmd.c (print_scalar_formatted): Do not check for sizeof
9127 type being greater than sizeof of host's LONGEST. Always use
9128 unpack_long() unless format 'f' chosen.
9129
9130 2004-02-19 Joel Brobecker <brobecker@gnat.com>
9131
9132 Committed by Elena Zannoni <ezannoni@redhat.com>
9133
9134 * symtab.c (find_pc_sect_psymtab): Return the psymtab that
9135 contains a symbol wich is the best, non-exact match for the given
9136 pc. Update comments.
9137
9138 2004-02-19 Elena Zannoni <ezannoni@redhat.com>
9139
9140 * event-top.c (async_request_quit): Remove uses of REQUEST_QUIT
9141 macro, which was part of the now removed Mach 3 port.
9142 * utils.c (request_quit): Ditto.
9143
9144 2004-02-18 Mark Kettenis <kettenis@gnu.org>
9145
9146 * config/djgpp/fnchange.lst: Rename "amd64obsd-tdep.c" and
9147 "amd64obsd-nat.c" to "a64ob-tdep.c" and "a64ob-nat.c".
9148
9149 2004-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9150
9151 Committed by Mark Kettenis <kettenis@gnu.org>.
9152
9153 * config/s390/nm-linux.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT):
9154 Define.
9155
9156 2004-02-18 Andrew Cagney <cagney@redhat.com>
9157
9158 * configure.in: Add a TUI target to CONFIG_ALL, CONFIG_CLEAN,
9159 CONFIG_INSTALL and CONFIG_UNINSTALL.
9160 * configure: Re-generate.
9161 * interps.h (INTERP_TUI): Define.
9162 * Makefile.in: Update dependencies.
9163 (TUI): New macro.
9164 (tui-main.o): Specify dependencies.
9165 (install-tui, uninstall-tui, clean-tui, all-tui): New rules.
9166 * tui/tui-main.c: New file.
9167
9168 2004-02-18 Mark Kettenis <kettenis@gnu.org>
9169
9170 * amd64obsd-tdep.c, amd64obsd-nat.c: New files.
9171 * Makefile.in (amd64obsd-nat.o, amd64obsd-tdep.o): New
9172 dependencies.
9173 * configure.host: Add x86_64-*-openbsd*.
9174 * configure.tgt: Add x86_64-*-openbsd*.
9175 * config/i386/obsd64.mt, config/i386/obsd64.mh: New files.
9176
9177 * tui/tui.c: Don't include <malloc.h>.
9178
9179 * Makefile.in (ALLDEPFILES): Add amd64-nat.c, amd64bsd-nat.c,
9180 amdfbsd-nat.c, amd64-fbsd-tdep.c, amd64nbsd-nat.c and
9181 amd64nbsd-tdep.c.
9182
9183 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Make
9184 static. Remove extraneous whitespace.
9185 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Make
9186 static.
9187
9188 2004-02-17 Jim Blandy <jimb@redhat.com>
9189
9190 * findvar.c (value_from_register): Doc fix.
9191
9192 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9193
9194 Committed by Jim Blandy <jimb@redhat.com>.
9195
9196 * eval.c (evaluate_subexp_standard, case OP_OBJC_MSGCALL): Use
9197 CORE_ADDR as type for selectors. Correct types for GNU run time
9198 message lookup function to use double indirection.
9199 * objc-lang.c (lookup_child_selector): Use CORE_ADDR as return type.
9200 * objc-lang.h (lookup_child_selector): Adapt prototype.
9201
9202 * s390-nat.c (SUBOFF): New macro.
9203 (supply_gregset, fill_gregset): Use it to handle debugging
9204 of 32-bit exectuables running under a 64-bit kernel.
9205 * s390-tdep.c: Include "solib-svr4.h".
9206 (s390_svr4_fetch_link_map_offset): New function.
9207 (s390x_svr_fetch_link_map_offset): Likewise.
9208 (s390_gdbarch_init): Call set_solib_svr4_fetch_link_map_offsets.
9209 * Makefile.in (s390-tdep.o): Update dependencies.
9210
9211 * s390-tdep.c: Include "trad-frame.h", "frame-base.h", and
9212 "frame-unwind.h".
9213 (s390_readinstruction): Reformat. Use read_memory_nobpt.
9214 (GDB_TARGET_IS_ESAME, S390_GPR_SIZE, S390_FPR_SIZE): Remove.
9215 (S390_SYSCALL_OPCODE, S390_SYSCALL_SIZE): Remove.
9216 (S390_SIGCONTEXT_SREGS_OFFSET, S390X_SIGCONTEXT_SREGS_OFFSET,
9217 S390_SIGREGS_FP0_OFFSET, S390X_SIGREGS_FP0_OFFSET,
9218 S390_UC_MCONTEXT_OFFSET, S390X_UC_MCONTEXT_OFFSET,
9219 S390_SIGNAL_FRAMESIZE,
9220 s390_NR_sigreturn, s390_NR_rt_sigreturn): Remove.
9221 (struct frame_extra_info): Remove.
9222 (s390_memset_extra_info): Remove.
9223 (op1_ag, op1_ay, op1_brasl, op1_brc, op1_brcl, op1_lay, op1_lg)
9224 (op1_lmy, op1_ly, op1_sg, op1_stmy, op1_sty, op1_sy, op_a)
9225 (op_agr, op_bas, op_bc, op_bcr, op_sgr, op_sr): New opcodes.
9226 (is_rse): Renamed to ...
9227 (is_rsy): ... this. Support long displacements.
9228 (is_rxe): Renamed to ...
9229 (is_rxy): ... this. Support long displacements.
9230 (compute_x_addr): Support long displacements.
9231 (struct s390_prologue_data): New data type.
9232 (s390_on_stack): Change API to use struct s390_prologue_data.
9233 (s390_store): Reimplement.
9234 (s390_load): New function.
9235 (s390_get_signal_frame_info): Remove.
9236 (s390_get_frame_info): Remove, replace by ...
9237 (s390_analyze_prolog): ... this new function.
9238 (s390_check_function_end): Remove.
9239 (s390_function_start): Remove.
9240 (s390_frameless_function_invokation): Remove.
9241 (s390_is_sigreturn): Remove.
9242 (s390_init_frame_pc_first): Remove.
9243 (s390_init_frame_extra_info): Remove.
9244 (s390_frame_init_saved_regs): Remove.
9245 (s390_frame_saved_pc_nofix): Remove.
9246 (s390_frame_saved_pc): Remove.
9247 (s390_frame_chain): Remove.
9248 (s390_fp_regnum, s390_read_fp): Remove.
9249 (s390_pop_frame_regular, s390_pop_frame): Remove.
9250 (s390_saved_pc_after_call): Remove.
9251 (s390_skip_prologue): Reimplement.
9252 (s390_in_function_epilogue_p): Support long displacements.
9253 (struct s390_unwind_cache): New data structure.
9254 (s390_frame_unwind_cache): New function.
9255 (s390_prologue_frame_unwind_cache): Likewise.
9256 (s390_backchain_frame_unwind_cache): Likewise.
9257 (s390_frame_this_id, s390_frame_prev_register): Likewise.
9258 (s390_frame_unwind): Define.
9259 (s390_frame_sniffer): New function.
9260 (struct s390_pltstub_unwind_cache): New data structure.
9261 (s390_pltstub_frame_unwind_cache): New function.
9262 (s390_pltstub_frame_this_id): Likewise.
9263 (s390_pltstub_frame_prev_register): Likewise.
9264 (s390_pltstub_frame_unwind): Define.
9265 (s390_pltstub_frame_sniffer): New function.
9266 (struct s390_sigtramp_unwind_cache): New data structure.
9267 (s390_sigtramp_frame_unwind_cache): New function.
9268 (s390_sigtramp_frame_this_id): Likewise.
9269 (s390_sigtramp_frame_prev_register): Likewise.
9270 (s390_sigtramp_frame_unwind): Define.
9271 (s390_sigtramp_frame_sniffer): New function.
9272 (s390_frame_base_address, s390_local_base_address): New functions.
9273 (s390_frame_base): Define.
9274 (s390_unwind_pc, s390_unwind_sp): New function.
9275 (s390_push_dummy_call): Use new frame base location.
9276 (s390_unwind_dummy_id): Likewise.
9277 (s390_gdbarch_init): Remove calls to:
9278 set_gdbarch_frameless_function_invocation,
9279 set_gdbarch_deprecated_init_frame_pc,
9280 set_gdbarch_deprecated_frame_chain,
9281 set_gdbarch_deprecated_frame_init_saved_regs,
9282 set_gdbarch_deprecated_pop_frame,
9283 set_gdbarch_deprecated_init_extra_frame_info,
9284 set_gdbarch_deprecated_init_frame_pc_first,
9285 set_gdbarch_deprecated_target_read_fp,
9286 set_gdbarch_deprecated_frame_saved_pc,
9287 set_gdbarch_deprecated_saved_pc_after_call,
9288 set_gdbarch_deprecated_fp_regnum.
9289 Add calls to:
9290 set_gdbarch_in_solib_call_trampoline,
9291 frame_unwind_append_sniffer,
9292 frame_base_set_default,
9293 set_gdbarch_unwind_pc,
9294 set_gdbarch_unwind_sp.
9295 * Makefile.in (s390-tdep.o): Update dependencies.
9296
9297 * s390-tdep.c (struct gdbarch_tdep): Add 'abi' member.
9298 (S390_STACK_FRAME_OVERHEAD): Remove.
9299 (S390_STACK_PARAMETER_ALIGNMENT): Remove.
9300 (S390_NUM_FP_PARAMETER_REGISTERS): Remove.
9301 (s390_promote_integer_argument): Remove.
9302 (s390_cannot_extract_struct_value_address): Remove.
9303 (s390_use_struct_convention, s390_store_struct_return): Remove.
9304 (s390_extract_return_value, s390_store_return_value): Remove.
9305 (s390_return_value_convention, s390_return_value): New functions.
9306 (is_float_singleton): Handle typedefs.
9307 (is_double_or_float, is_double_arg, is_simple_arg, pass_by_copy_ref):
9308 Remove, replace by ...
9309 (s390_function_arg_pass_by_reference, s390_function_arg_float,
9310 s390_function_arg_integer): ... these new functions.
9311 (s390_push_arguments, s390_push_return_address): Remove, replace by ...
9312 (s390_push_dummy_call, s390_unwind_dummy_id): ... these new functions.
9313 (s390_gdbarch_init): Remove s390_call_dummy_words and elf_flags.
9314 Fill in tdep->abi.
9315 Remove calls to:
9316 set_gdbarch_deprecated_store_struct_return,
9317 set_gdbarch_deprecated_extract_return_value,
9318 set_gdbarch_deprecated_store_return_value,
9319 set_gdbarch_use_struct_convention,
9320 set_gdbarch_extract_struct_value_address,
9321 set_gdbarch_deprecated_pc_in_call_dummy,
9322 set_gdbarch_deprecated_push_arguments,
9323 set_gdbarch_deprecated_save_dummy_frame_tos,
9324 set_gdbarch_deprecated_push_return_address,
9325 set_gdbarch_deprecated_sizeof_call_dummy_words,
9326 set_gdbarch_deprecated_call_dummy_words,
9327 set_gdbarch_deprecated_dummy_write_sp.
9328 Add calls to:
9329 set_gdbarch_push_dummy_call,
9330 set_gdbarch_unwind_dummy_id,
9331 set_gdbarch_return_value.
9332
9333 * config/s390/nm-linux.h: Update comments.
9334 (target_insert_watchpoint, target_remove_watchpoint): Redefine.
9335 (STOPPED_BY_WATCHPOINT): Redefine.
9336 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Redefine to 1.
9337 (s390_insert_watchpoint, s390_remove_watchpoint): Update prototype.
9338 (s390_stopped_by_watchpoint): Likewise.
9339 (watch_area_cnt): Remove.
9340 * s390-nat.c: Update comments.
9341 (watch_area): Remove typedef.
9342 Global replace watch_area by struct watch_area.
9343 (watch_area_cnt, watch_lo_addr, watch_hi_addr): Remove.
9344 (s390_stopped_by_watchpoint): Remove pid argument,
9345 use s390_inferior_tid. Add short-cut for the no watchpoint case.
9346 (s390_fix_watch_points): Remove pid argument,
9347 use s390_inferior_tid. Recompute area spanned by watchpoints.
9348 (s390_insert_watchpoint, s390_remove_watchpoint): Remove pid
9349 argument. Reimplement.
9350
9351 * config/s390/nm-linux.h: Update comments. Do not include "solib.h".
9352 (KERNEL_U_ADDR, REGISTER_U_ADDR, U_REGS_OFFSET): Remove.
9353 (FETCH_INFERIOR_REGISTERS): Define.
9354 * config/s390/s390.mh (NATDEPFILES): Remove core-aout.o and
9355 core-regset.o.
9356 * config/s390/s390x.mt: Remove.
9357 * config/s390/tm-s390.h: Remove.
9358 * config/s390/tm-linux.h: Do not include "s390/tm-s390.h".
9359 (TARGET_ELF64): Remove.
9360 (SKIP_TRAMPOLINE_CODE): Do not undefine.
9361 * configure.tgt [s390-*-*, s390x-*-*]: Merge into single
9362 s390*-*-* case; always set gdb_target to s390.
9363 * regformats/reg-s390.dat: Remove control registers.
9364 * regformats/reg-s390x.dat: Likewise.
9365 * s390-tdep.h: New file.
9366 * s390-nat.c: Do not include <asm/processor.h> or <value.h>.
9367 Include "inferior.h" and "s390-tdep.h".
9368 Remove private definition of offsetof.
9369 (s390_register_u_addr): Remove.
9370 (regmap_gregset, regmap_fpregset): Define.
9371 (supply_gregset, fill_gregset): Reimplement.
9372 (supply_fpregset, fill_fpregset): Likewise.
9373 (s390_inferior_tid): New function.
9374 (fetch_regs, store_regs, fetch_fpregs, store_fpregs): Likewise.
9375 (fetch_inferior_registers, store_inferior_registers): Likewise.
9376 * s390-tdep.c: Do not define S390_TDEP. Include "defs.h" instead
9377 of <defs.h>. Include "reggroups.h", "regset.h", and "s390-tdep.h".
9378 Global replace of S390_GP0_REGNUM by S390_R0_REGNUM.
9379 Global replace of S390_FP0_REGNUM by S390_F0_REGNUM.
9380 (struct gdbarch_tdep): Define.
9381 (struct s390_register_info): Define.
9382 (s390_register_info): New variable.
9383 (s390_register_name): Reimplement.
9384 (s390_register_type): New function.
9385 (s390_register_raw_size, s390x_register_raw_size): Remove.
9386 (s390_cannot_fetch_register): Remove.
9387 (s390_register_byte): Remove.
9388 (s390_register_virtual_type, s390x_register_virtual_type): Remove.
9389 (s390_dwarf_regmap): New variable.
9390 (s390_dwarf_reg_to_regnum): New function.
9391 (s390_stab_reg_to_regnum): Remove.
9392 (s390_pseudo_register_read, s390_pseudo_register_write): New functions.
9393 (s390x_pseudo_register_read, s390x_pseudo_register_write): Likewise.
9394 (s390_convert_register_p): Likewise.
9395 (s390_register_to_value, s390_value_to_register): Likewise.
9396 (s390_register_reggroup_p): Likewise.
9397 (s390_regmap_gregset, s390x_regmap_gregset, s390_regmap_fpregset,
9398 s390_gregset, s390x_gregset, s390_fpregset): New variables.
9399 (s390_supply_regset, s390_regset_from_core_section): New functions.
9400 (GDB_TARGET_IS_ESAME): Move here from tm-s390.h.
9401 (S390_FPR_SIZE): Likewise.
9402 (S390_GPR_SIZE): Likewise. Redefine in terms of GDB_TARGET_IS_ESAME.
9403 Global replace of DEPRECATED_REGISTER_SIZE by S390_GPR_SIZE.
9404 (S390_NUM_GPRS): Move here from tm-s390.h.
9405 (S390_NUM_FPRS): Likewise.
9406 (s390_in_function_epilogue_p): New function.
9407 (s390_is_sigreturn): Replace S390_PSW_ADDR_SIZE by S390_GPR_SIZE.
9408 Replace S390_PC_REGNUM by S390_PSWA_REGNUM.
9409 (s390_gdbarch_init): Allocate and set up gdbarch_tdep structure.
9410 Replace s390_stab_reg_to_regnum by s390_dwarf_reg_to_regnum.
9411 Replace S390_FP_REGNUM by S390_SP_REGNUM.
9412 Remove calls to:
9413 set_gdbarch_deprecated_max_register_raw_size,
9414 set_gdbarch_deprecated_max_register_virtual_size,
9415 set_gdbarch_deprecated_register_byte,
9416 set_gdbarch_cannot_fetch_register,
9417 set_gdbarch_cannot_store_register,
9418 set_gdbarch_deprecated_register_size,
9419 set_gdbarch_deprecated_register_raw_size,
9420 set_gdbarch_deprecated_register_virtual_size,
9421 set_gdbarch_deprecated_register_virtual_type,
9422 set_gdbarch_deprecated_register_bytes.
9423 Add calls to:
9424 set_gdbarch_num_pseudo_regs,
9425 set_gdbarch_register_type,
9426 set_gdbarch_convert_register_p,
9427 set_gdbarch_register_to_value,
9428 set_gdbarch_value_to_register,
9429 set_gdbarch_register_reggroup_p,
9430 set_gdbarch_regset_from_core_section,
9431 set_gdbarch_pseudo_register_read,
9432 set_gdbarch_pseudo_register_write,
9433 set_gdbarch_in_function_epilogue_p.
9434 * Makefile.in (s390-nat.o, s390-tdep.o): Update dependencies.
9435 (s390_tdep_h): New variable.
9436
9437 2004-02-17 Jim Blandy <jimb@redhat.com>
9438
9439 * findvar.c (value_from_register): If the type has no length, just
9440 return an acceptable value --- don't report an internal error.
9441
9442 * stabsread.c (read_type): If we find any type numbers that are
9443 forward references, complain if the references aren't resolved by
9444 the time we're finished reading.
9445 (cleanup_undefined_types): Make error message more appropriate for
9446 a complaint.
9447
9448 2004-02-17 Elena Zannoni <ezannoni@redhat.com>
9449
9450 * Makefile.in (defs_h): Remove dependency on progress_h.
9451 * defs.h (QUIT): Remove use of PROGRESS macro. Remove include of
9452 progress.h.
9453 * main.c (captured_main): Delete use of START_PROGRESS and
9454 END_PROGRESS.
9455
9456 2004-02-17 Elena Zannoni <ezannoni@redhat.com>
9457
9458 * objfiles.c (terminate_minimal_symbol_table): Add back
9459 initialization of MSYMBOL_TYPE.
9460
9461 2004-02-17 David Mosberger <davidm@hpl.hp.com>
9462
9463 Committed by Andrew Cagney.
9464 * Makefile.in (ia64_tdep_h): New macro.
9465 (ia64-linux-tdep.o): Mention $(ia64_tdep_h).
9466 (ia64-tdep.o): Likewise.
9467 * ia64-tdep.h: New file.
9468 * ia64-tdep.c: Update copyright notice. Include "ia64-tdep.h".
9469 (ia64_linux_sigcontext_register_address): Move decl to ia64-tdep.h.
9470 (ia64_aix_sigcontext_register_address): Likewise.
9471 (ia64_linux_getunwind_table): Delete declaration.
9472 * ia64-linux-tdep.c: Likewise.
9473
9474 2004-02-17 Corinna Vinschen <vinschen@redhat.com>
9475
9476 * sh-tdep.c (sh_dsp_register_sim_regno): Use DSP_Rx_BANK_REGNUM.
9477 * sh-tdep.h: Rename R0_BANK_REGNUM and R7_BANK_REGNUM to
9478 DSP_R0_BANK_REGNUM and DSP_R7_BANK_REGNUM.
9479
9480 2004-02-17 Andrew Cagney <cagney@redhat.com>
9481
9482 * symtab.c (skip_prologue_using_sal): New function.
9483 * symtab.h (skip_prologue_using_sal): Declare.
9484 * frv-tdep.c: Include "symtab.h".
9485 (skip_prologue_using_sal): Delete function.
9486 * mips-tdep.c (skip_prologue_using_sal): Delete function.
9487 * rs6000-tdep.c (refine_prologue_limit): Mention
9488 skip_prologue_using_sal.
9489 * ia64-tdep.c (refine_prologue_limit): Ditto.
9490 * Makefile.in: Update dependencies.
9491
9492 2004-02-16 Andrew Cagney <cagney@redhat.com>
9493
9494 * config/alpha/tm-nbsd.h: Update copyright, delete #undef
9495 START_INFERIOR_TRAPS_EXPECTED.
9496 * config/alpha/tm-fbsd.h: Update copyright, delete #undef
9497 START_INFERIOR_TRAPS_EXPECTED.
9498 * config/alpha/tm-alphalinux.h (START_INFERIOR_TRAPS_EXPECTED):
9499 Delete macro.
9500 * config/alpha/tm-alpha.h (START_INFERIOR_TRAPS_EXPECTED): Delete
9501 macro, moved to "nm-osf.h". Update copyright.
9502 * config/alpha/nm-osf.h (START_INFERIOR_TRAPS_EXPECTED): Define,
9503 update copyright.
9504
9505 * gdbarch.sh (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION): Predicate
9506 and function replacing FRAMELESS_FUNCTION_INVOCATION.
9507 * blockframe.c (legacy_frameless_look_for_prologue): Rename
9508 frameless_look_for_prologue.
9509 * frame.h (legacy_frameless_look_for_prologue): Rename
9510 frameless_look_for_prologue.
9511 * gdbarch.h, gdbarch.c: Re-generate.
9512 * sh64-tdep.c (sh64_gdbarch_init): Update.
9513 * sh-tdep.c (sh_gdbarch_init): Update.
9514 * s390-tdep.c (s390_gdbarch_init): Update.
9515 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9516 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9517 * m68k-tdep.c (m68k_gdbarch_init): Update.
9518 (delta68_frame_args_address): Update.
9519 * m32r-tdep.c (m32r_gdbarch_init): Update.
9520 * hppa-tdep.c (hppa_gdbarch_init): Update.
9521 * h8300-tdep.c (h8300_gdbarch_init): Update.
9522 * frv-tdep.c (frv_gdbarch_init): Update.
9523 (frv_frameless_function_invocation): Update.
9524 * cris-tdep.c (cris_gdbarch_init): Update.
9525 (cris_frameless_function_invocation): Update.
9526 * avr-tdep.c (avr_gdbarch_init): Update.
9527 * arm-tdep.c (arm_gdbarch_init): Update.
9528 * stack.c (frame_info): Update, call predicate.
9529 * rs6000-tdep.c (rs6000_frame_chain): Update, call predicate..
9530 * frame.c (legacy_get_prev_frame): Update, call predicate..
9531 * arch-utils.c (generic_frameless_function_invocation_not): Delete.
9532 * arch-utils.h (generic_frameless_function_invocation_not): Delete.
9533 * alpha-tdep.c (alpha_gdbarch_init): Do not set frameless function
9534 invocation.
9535 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9536 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
9537 * vax-tdep.c (vax_gdbarch_init): Ditto.
9538
9539 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): Delete unused
9540 function.
9541
9542 2004-02-16 Daniel Jacobowitz <drow@mvista.com>
9543
9544 * objfiles.c (terminate_minimal_symbol_table): Remove unnecessary
9545 initializations.
9546
9547 2004-02-16 Andrew Cagney <cagney@redhat.com>
9548
9549 * tui/tui-windata.c: Include "gdb_string.h".
9550 * tui/tui-source.c, tui/tui-winsource.c: Ditto.
9551 * tui/tui-layout.c, tui/tui-command.c: Ditto.
9552 * Makefile.in: Update dependencies.
9553
9554 2004-02-16 Daniel Jacobowitz <drow@mvista.com>
9555
9556 * Makefile.in (infrun.o): Add $(gdb_assert_h).
9557 * infrun.c: Include "gdb_assert.h".
9558 (singlestep_ptid, saved_singlestep_ptid)
9559 (stepping_past_singlestep_breakpoint): New variables.
9560 (resume): Set singlestep_ptid. Check for singlestep thread
9561 hop.
9562 (init_wait_for_inferior): Clear stepping_past_singlestep_breakpoint.
9563 (handle_inferior_event): Handle singlestep thread hop.
9564
9565 2004-02-16 Andrew Cagney <cagney@redhat.com>
9566
9567 * dwarf2-frame.c (dwarf2_frame_ops): New function.
9568 (dwarf2_frame_set_init_reg): Use, instead of gdbarch_data.
9569 (dwarf2_frame_init_reg): Ditto.
9570
9571 * printcmd.c (display_command): Check that EXP isn't NULL. Fix
9572 suggested by Joshua Neuheisel
9573
9574 * configure.in: Always check for curses, including pdcurses.
9575 Warn, instead of error, when no curses are found. Enable TUI when
9576 curses is available.
9577 * configure: Re-generate.
9578
9579 2004-02-16 Corinna Vinschen <vinschen@redhat.com>
9580
9581 * sh-tdep.c (sh_register_convert_to_virtual): Rename from
9582 sh_sh4_register_convert_to_virtual.
9583 (sh_register_convert_to_raw): Rename from
9584 sh_sh4_register_convert_to_raw.
9585 (sh_pseudo_register_read): Accomodate above name change.
9586 (sh_pseudo_register_write): Ditto.
9587
9588 2004-02-16 Corinna Vinschen <vinschen@redhat.com>
9589
9590 * sh-tdep.c (sh_generic_register_name): Remove.
9591 (sh_gdbarch_init): Use sh_sh_register_name in default case.
9592
9593 2004-02-15 Andrew Cagney <cagney@redhat.com>
9594
9595 * configure.in (build_warnings): Add -Wunused-function.
9596 * configure: Re-generate.
9597
9598 * config/tm-lynx.h (START_INFERIOR_TRAPS_EXPECTED): Delete macro.
9599 * config/rs6000/tm-rs6000.h (START_INFERIOR_TRAPS_EXPECTED): Ditto.
9600
9601 * procfs.c (procfs_init_inferior): Assume that
9602 START_INFERIOR_TRAPS_EXPECTED is defined.
9603 * config/ns32k/nbsdaout.mt (TM_FILE): Set to tm-ns32k.h.
9604 * config/ns32k/tm-nbsd.h: Delete file,
9605 START_INFERIOR_TRAPS_EXPECTED already defined as 2.
9606
9607 * config/vax/tm-vaxbsd.h: Do not include "tm-vax.h".
9608 * config/vax/tm-vax.h: Delete file.
9609
9610 * config/mips/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
9611 * config/i386/tm-i386bsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
9612 * config/arm/tm-linux.h (SIGCONTEXT_PC_OFFSET): Delete macro.
9613 * config/vax/tm-vaxbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
9614 * vax-tdep.c (vax_sigtramp_saved_pc): Inline only reference.
9615 * config/ns32k/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
9616 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Inline only reference.
9617
9618 2004-02-15 Mark Kettenis <kettenis@gnu.org>
9619
9620 * dwarf2-frame.h (dwarf2_frame_set_init_reg): New prototype.
9621 * dwarf2-frame.c (dwarf2_frame_data): New variable.
9622 (struct dwarf2_frame_ops): New.
9623 (dwarf2_frame_default_init_reg): New function, based on
9624 dwarf2_frame_init_reg.
9625 (dwarf2_frame_init, dwarf2_frame_set_init_reg): New function.
9626 (dwarf2_frame_init_reg): Call architecture-specific function.
9627 (dwarf2_frame_objfile_data): Renamed from dwarf2_frame_data.
9628 (dwarf2_frame_find_fde, add_fde): Use dwarf2_frame_objfile_data
9629 instead of dwarf2_frame_data.
9630 (_initialize_dwarf2_frame): Initailize new dwarf2_frame_data.
9631 Initialize dwarf2_frame_objfile instead of old dwarf2_frame_data.
9632
9633 2004-02-15 Andrew Cagney <cagney@redhat.com>
9634
9635 * gdbarch.sh (deprecated_register_gdbarch_swap): Rename
9636 register_gdbarch_swap.
9637 (DEPRECATED_REGISTER_GDBARCH_SWAP): Rename REGISTER_GDBARCH_SWAP.
9638 * f-lang.c (_initialize_f_language): Update, use
9639 DEPRECATED_REGISTER_GDBARCH_SWAP.
9640 * remote.c (_initialize_remote): Ditto.
9641 * regcache.c (_initialize_regcache): Ditto.
9642 * parse.c (_initialize_parse): Ditto.
9643 * infrun.c (_initialize_infrun): Ditto.
9644 * mi/mi-main.c (_initialize_mi_main): Ditto.
9645 * gdbtypes.c (_initialize_gdbtypes): Ditto.
9646
9647 * solib.c (solib_map_sections): Use bfd_set_cacheable instead of
9648 poking .cacheable directly.
9649 * symfile.c (symfile_bfd_open): Ditto.
9650
9651 * Makefile.in: Update all dependencies.
9652
9653 * Makefile.in: (.SUFFIXES): Add ".l" and ".y".
9654 (.y.c, .l.c): Specify implicit rule. Instead of .tab.c, generate
9655 .c. Update references. Delete unnecessary .tab.c and -lex.c rules.
9656 (ada-exp.o, c-exp.o, f-exp.o): Replace ada-exp.tab.o et.al. rule.
9657 (jv-exp.o, m2-exp.o, objc-exp.o, p-exp.o): Similar.
9658
9659 2004-02-14 Andrew Cagney <cagney@redhat.com>
9660
9661 * arch-utils.c (legacy_convert_register_p): Check
9662 DEPRECATED_REGISTER_CONVERTIBLE_P.
9663 * findvar.c (value_of_register): Ditto.
9664
9665 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Add predicate.
9666 * gdbarch.h, gdbarch.c: Re-generate.
9667 * arch-utils.c (deprecated_register_convertible_not): Delete.
9668 * arch-utils.h (deprecated_register_convertible_not): Delete.
9669 * mi/mi-main.c (get_register): Update. Update copyright.
9670 * infcmd.c (default_print_registers_info): Update.
9671
9672 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
9673 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Delete.
9674 (DEPRECATED_CALL_DUMMY_ADDRESS): Delete.
9675 * gdbarch.h, gdbarch.c: Re-generate.
9676 * frame.c (deprecated_get_next_frame_hack): Delete function.
9677 * frame.h (deprecated_get_next_frame_hack): Delete declaration.
9678 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
9679 Update.
9680 * infcall.c (call_function_by_hand): Update.
9681
9682 2004-02-14 Elena Zannoni <ezannoni@redhat.com>
9683
9684 * symfile.c (init_entry_point_info, entry_point_address): Move
9685 from here...
9686 * objfiles.c (init_entry_point_info, entry_point_address):..to
9687 here.
9688 * symfile.h (init_entry_point_info, entry_point_address): Remove
9689 prototypes.
9690 * objfiles.h (init_entry_point_info, entry_point_address):Add
9691 prototypes.
9692 * cris-tdep.c: Remove include of symfile.h. Add include of
9693 objfiles.h.
9694 * infcall.c: Ditto.
9695 * mcore-tdep.c: Ditto.
9696 * mn10300-tdep.c: Ditto.
9697 * sh64-tdep.c: Ditto.
9698 * v850-tdep.c: Ditto.
9699 * arm-tdep.c: Remove include of symfile.h.
9700 * blockframe.c: Ditto.
9701 * coffread.c: Ditto.
9702 * dbxread.c: Ditto.
9703 * dwarf2read.c: Ditto.
9704 * dwarfread.c: Ditto.
9705 * frv-tdep.c: Ditto.
9706 * ia64-tdep.c: Ditto.
9707 * mdebugread.c: Ditto.
9708 * mipsread.c: Ditto.
9709 * rs6000-tdep.c: Ditto.
9710 * s390-tdep.c: Ditto.
9711 * sh-tdep.c: Ditto.
9712 * xstormy16-tdep.c: Ditto.
9713 * gdbarch.sh: Remove include of symfile.h.
9714 * gdbarch.c: Regenerate.
9715 * solib-irix.c (enable_break): Use entry_point_address().
9716 Add comment about include file.
9717 * xcoffread.c: Add comment about include file.
9718 * Makefile.in (arm-tdep.o, blockframe.o, coffread.o, cris-tdep.o)
9719 (dbxread.o, dwarf2read.o, dwarfread.o, frv-tdep.o, gdbarch.o)
9720 (ia64-tdep.o, infcall.o, mcore-tdep.o, mdebugread.o, mipsread.o)
9721 (mn10300-tdep.o, rs6000-nat.o, s390-tdep.o, sh64-tdep.o)
9722 (sh-tdep.o, v850-tdep.o, xstormy16-tdep.o): Update dependencies.
9723
9724 2004-02-13 Andrew Cagney <cagney@redhat.com>
9725
9726 * corelow.c (core_xfer_partial): Use "struct bfd_section".
9727 * config/sparc/nm-nbsd.h (struct target_ops): Declare, update
9728 copyright.
9729 * mips-linux-tdep.c: Use "GNU/Linux", update copyright.
9730
9731 2004-02-12 Fred Fish <fnf@redhat.com>
9732
9733 * m68hc11-tdep.c (m68hc11_gdbarch_init): Remove duplicate call to
9734 set_gdbarch_store_return_value.
9735
9736 2004-02-12 Andrew Cagney <cagney@redhat.com>
9737
9738 * remote-rdi.c (arm_rdi_start_remote): Delete unused function.
9739 (arm_rdi_interrupt, arm_rdi_interrupt_twice): Ditto.
9740 (interrupt_query): Ditto.
9741 (ofunc): Delete unused variable.
9742 * cris-tdep.c (cris_abi): Delete unused function.
9743 (reg_pop_op, move_reg_to_mem_index_inc_op): Ditto.
9744 (cris_get_wide_opcode, cris_get_short_size): Ditto.
9745 (cris_get_asr_quick_shift_steps): Ditto.
9746 (cris_skip_prologue_frameless_p): Ditto.
9747 * arm-tdep.c (arm_push_return_address): Delete unused function.
9748 (arm_push_dummy_frame, arm_fix_call_dummy): Ditto.
9749 * rs6000-tdep.c (rs6000_pc_in_call_dummy): Delete unused function.
9750 * s390-tdep.c (s390_function_start): Delete unused function.
9751
9752 2004-02-12 Andrew Cagney <cagney@redhat.com>
9753
9754 * gdbarch.sh (PROLOGUE_FRAMELESS_P): Delete.
9755 gdbarch.h, gdbarch.c: Re-generate.
9756 * cris-tdep.c (cris_gdbarch_init): Do not set prologue_frameless_p
9757 to generic_prologue_frameless_p.
9758 * arch-utils.h (generic_prologue_frameless_p): Delete declaration.
9759 * arch-utils.c (generic_prologue_frameless_p): Delete function.
9760
9761 2004-02-11 Daniel Jacobowitz <drow@mvista.com>
9762
9763 * mips-linux-tdep.c: Include "frame.h".
9764 (mips_linux_in_dynsym_stub, mips_linux_in_dynsym_resolve_code)
9765 (mips_linux_skip_resolver): New functions.
9766 (mips_linux_init_abi): Call set_gdbarch_skip_solib_resolver
9767 and set_gdbarch_in_solib_call_trampoline.
9768 * mips-tdep.c (mips_gdbarch_init): Move gdbarch_init_osabi call
9769 to after set_gdbarch_in_solib_return_trampoline. Only set the
9770 solib hooks to mips16 functions if the OS ABI is unknown.
9771 * config/mips/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Undefine after
9772 including "config/tm-linux.h".
9773 (IN_SOLIB_DYNSYM_RESOLVE_CODE): Define.
9774 * Makefile.in (mips-linux-tdep.o): Update.
9775
9776 2004-02-11 David Carlton <carlton@kealia.com>
9777
9778 * linespec.c (decode_compound): Only look for a class symbol when
9779 considering all but the rightmost component.
9780
9781 2004-02-11 Andrew Cagney <cagney@redhat.com>
9782
9783 * hppa-tdep.c (hppa_gdbarch_init): Re-order so that the frame and
9784 abi code are are separatly grouped.
9785
9786 2004-02-11 Andrew Cagney <cagney@redhat.com>
9787
9788 * gdbarch.sh (FRAME_ARGS_SKIP): Default to 0.
9789 * gdbarch.h, gdbarch.c: Re-generate.
9790 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9791 * v850-tdep.c (v850_gdbarch_init): Update.
9792 * sh64-tdep.c (sh64_gdbarch_init): Update.
9793 * sh-tdep.c (sh_gdbarch_init): Update.
9794 * s390-tdep.c (s390_gdbarch_init): Update.
9795 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9796 * mips-tdep.c (mips_gdbarch_init): Update.
9797 * mcore-tdep.c (mcore_gdbarch_init): Update.
9798 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9799 * m32r-tdep.c (m32r_gdbarch_init): Update.
9800 * ia64-tdep.c (ia64_gdbarch_init): Update.
9801 * hppa-tdep.c (hppa_gdbarch_init): Update.
9802 * h8300-tdep.c (h8300_gdbarch_init): Update.
9803 * frv-tdep.c (frv_gdbarch_init): Update.
9804 * d10v-tdep.c (d10v_gdbarch_init): Update.
9805 * cris-tdep.c (cris_gdbarch_init): Update.
9806 * avr-tdep.c (avr_gdbarch_init): Update.
9807 * arm-tdep.c (arm_gdbarch_init): Update.
9808 * alpha-tdep.c (alpha_gdbarch_init): Update.
9809
9810 2004-02-11 Corinna Vinschen <vinschen@redhat.com>
9811
9812 * sh-tdep.c (sh_sh3_dsp_register_name): Fix formatting. Add missing
9813 comma.
9814 (sh_sh4al_dsp_register_name): Ditto.
9815
9816 2004-02-10 Andrew Cagney <cagney@redhat.com>
9817
9818 * mips-tdep.c (mips_gdbarch_init): Delete deprecated frame code.
9819 (mips_init_frame_pc_first): Delete function.
9820 (mips_frame_saved_pc): Delete function.
9821 (mips_frame_chain): Delete function.
9822 (mips_init_extra_frame_info): Delete function.
9823 (mips_xfer_register): Delete unused variable "reg".
9824 (mips_n32n64_push_dummy_call): Delete unused variable "valbuf".
9825 (mips_n32n64_return_value): Delete unused variable "reg".
9826 (mips_n32n64_return_value): Delete unused variable "pos".
9827 (mips_o32_push_dummy_call): Delete unused variable "valbuf".
9828 (mips_o32_return_value): Delete unused variable "pos".
9829 (mips_o64_push_dummy_call): Delete unused variable "valbuf".
9830 (mips_print_fp_register): Delete unused variable "namelen"
9831 (mips_print_fp_register): Delete unused variable "flt2"
9832 (get_frame_pointer): Delete function.
9833 (cached_proc_desc): Delete static variable.
9834 (mips_pop_frame): Delete function.
9835 (mips_find_saved_regs): Delete function.
9836 (mips_get_saved_register): Delete function.
9837 (mips_saved_pc_after_call): Delete function.
9838 (SIGFRAME_BASE): Delete macro.
9839 (SIGFRAME_FPREGSAVE_OFF): Delete macro.
9840 (SIGFRAME_PC_OFF): Delete macro.
9841 (SIGFRAME_REGSAVE_OFF): Delete macro.
9842 (mips_dump_tdep): Do not print deleted macro definitions.
9843
9844 2004-02-10 Andrew Cagney <cagney@redhat.com>
9845
9846 * Makefile.in (SFILES): Remove explictly listed tui files.
9847 (SUBDIR_GDBTK_SRCS): Fix path to gdbtk-interp.c.
9848
9849 2004-02-10 Jeff Johnston <jjohnstn@redhat.com>
9850
9851 * ia64-tdep.c (ia64_frame_this_id): Fix tracing print statement
9852 to use paddr functions to format ia64 addresses and long values.
9853 (ia64_frame_prev_register, ia64_sigtramp_frame_this_id): Ditto.
9854 (ia64_sigtramp_frame_prev_register, ia64_access_reg): Ditto.
9855 (get_kernel_table, ia64_find_proc_info_x): Ditto.
9856 (ia64_get_dyn_info_list, ia64_libunwind_this_frame_id): Ditto.
9857 (ia64_libunwind_frame_prev_register, ia64_unwind_dummy_id): Ditto.
9858
9859 2004-02-10 Andrew Cagney <cagney@redhat.com>
9860
9861 * defs.h: Do not include "tui.h".
9862 * gdb_curses.h: New file.
9863 * tui/tui-hooks.h: New file.
9864 * tui/tui.h (tui_update_all_exec_infos): Delete declaration.
9865 (tui_install_hooks, tui_remove_hooks): Delete declarations.
9866 (tui_initialize_io): Delete declaration.
9867 (tui_initialize_readline: Delete redundant declaration.
9868 (struct tui_point): Delete definition.
9869 * tui/tui-data.h (struct tui_point): Define.
9870 * cli/cli-decode.c [TUI]: Include "tui/tui.h".
9871 * utils.c: Include "tui/tui.h".
9872 * tui/tui-data.h: Include "tui/tui.h" and "gdb_curses.h".
9873 * printcmd.c [TUI]: Include "tui/tui.h".
9874 * cli/cli-cmds.c [TUI]: Include "tui/tui.h".
9875 * tui/tui-command.c: Include "gdb_curses.h".
9876 * tui/tui.c, tui/tui-winsource.c, tui/tui-wingeneral.c: Ditto.
9877 * tui/tui-windata.c, tui/tui-win.c, tui/tui-stack.c: Ditto.
9878 * tui/tui-source.c, tui/tui-regs.c, tui/tui-layout.c: Ditto.
9879 * tui/tui-io.c, tui/tui-disasm.c, tui/tui-data.c: : Ditto.
9880 * tui/tui-hooks.c: Include "tui-hooks.h" and "gdb_curses.h".
9881 * Makefile.in: Update all dependencies.
9882 (tui_hooks_h, gdb_curses_h): Define.
9883 (SUBDIR_TUI_CFLAGS): Remove -I${srcdir}/tui.
9884
9885 2004-02-10 Elena Zannoni <ezannoni@redhat.com>
9886
9887 * objfiles.h (struct objfile): Remove unused fields auxf1 and
9888 auxf2. Add comments about some other rarely used fields.
9889
9890 2004-02-10 Andrew Cagney <cagney@redhat.com>
9891
9892 * Makefile.in (init.c): Fix script removing duplicates. Problem
9893 reported by Peter Schauer.
9894
9895 2004-02-09 Elena Zannoni <ezannoni@redhat.com>
9896
9897 * bcache.c (bcache_xmalloc): Use obstack_init instead of
9898 obstack_specify_allocation.
9899 * objfiles.c (allocate_objfile): Ditto.
9900 * solib-sunos.c (solib_add_common_symbols)
9901 (allocate_rt_common_objfile): Ditto.
9902 * symfile.c (reread_symbols): Ditto.
9903 * gdb_obstack.h: Add comment.
9904
9905 2004-02-09 Elena Zannoni <ezannoni@redhat.com>
9906
9907 * linespec.c (decode_line_1, locate_first_half)
9908 (decode_compound, lookup_prefix_sym): Update comments. Delete old
9909 commented out code.
9910
9911 2004-02-09 Daniel Jacobowitz <drow@mvista.com>
9912
9913 * cp-namespace.c (check_one_possible_namespace_symbol): Don't use
9914 obstack_free.
9915
9916 2004-02-09 Andrew Cagney <cagney@redhat.com>
9917
9918 * blockframe.c (find_pc_partial_function): If find_pc_overlay
9919 fails, try find_pc_section. Fix PR c++/1267.
9920 * minsyms.c (lookup_minimal_symbol_by_pc): Use find_pc_section
9921 instead of find_pc_mapped_section.
9922 (lookup_minimal_symbol_by_pc_section): If the SECTION is NULL, do
9923 not default to the section containing PC. Fix PR symtab/1519.
9924
9925 2004-02-09 Andrew Cagney <cagney@redhat.com>
9926
9927 * Makefile.in (mips-tdep.o): Update dependencies.
9928 * mips-tdep.c: Include "frame-unwind.h", "frame-base.h" and
9929 "trad-frame.h".
9930 (mips_unwind_pc): Return the pseudo PC register.
9931 (mips_unwind_dummy_id): New function.
9932 (mips16_fetch_instruction): New function.
9933 (mips32_fetch_instruction): New function.
9934 (struct mips_frame_cache): Define.
9935 (mips_mdebug_frame_cache): New function.
9936 (mips_mdebug_frame_this_id): New function.
9937 (mips_mdebug_frame_prev_register): New function.
9938 (mips_mdebug_frame_unwind): Define.
9939 (mips_mdebug_frame_sniffer): New function.
9940 (mips_mdebug_frame_base_address): New function.
9941 (mips_mdebug_frame_base): Define.
9942 (mips_mdebug_frame_base_sniffer): New function.
9943 (mips_gdbarch_init): Append unwind and base sniffers. Set
9944 unwind_dummy_id.
9945
9946 2004-02-08 Andrew Cagney <cagney@redhat.com>
9947
9948 * frame.c: Print both the register number and name.
9949
9950 * Makefile.in (init.c): Eliminate duplicates. Combine two greps
9951 and a sed into a single sed. Make .c and .o patterns more robust.
9952 (OBS): Delete.
9953 (INIT_FILES): Replace OBS with COMMON_OBS.
9954 (COMMON_OBS): Move DEPFILES and YYOBJ to start of definition.
9955
9956 2004-02-08 Mark Kettenis <kettenis@gnu.org>
9957
9958 * sparc-nat.c (sparc_xfer_wcookie): Try to fetch the cookie using
9959 the PT_WCOOKIE request.
9960
9961 2004-02-08 Andrew Cagney <cagney@redhat.com>
9962
9963 * mips-tdep.c (mips_unwind_pc): New function.
9964 (mips_gdbarch_init): Set mips_unwind_pc.
9965
9966 * frame.c (legacy_saved_regs_this_id): Return a null frame ID.
9967 (get_frame_id): Allow the UNKNOWN_FRAME.
9968 (frame_register_unwind, get_frame_type): Ditto.
9969
9970 * frame.c (legacy_frame_p): Check for DEPRECATED_TARGET_READ_FP_P
9971 and DEPRECATED_FP_REGNUM. Don't assume that the lack of
9972 unwind_dummy_id indicates a legacy frame.
9973
9974 * configure.in (CONFIG_LIB_OBS): Replace with CONFIG_OBS.
9975 * configure: Re-generate.
9976
9977 * mips-tdep.c (mips_gdbarch_init): Group deprecated frame unwind
9978 methods.
9979
9980 2004-02-08 Andrew Cagney <cagney@redhat.com>
9981
9982 * configure.in (CONFIG_ALL): Set to Makefile target, and not
9983 makefile macro.
9984 * configure: Re-generate.
9985 (CONFIG_CLEAN, CONFIG_INSTALL, CONFIG_UNINSTALL): Ditto.
9986 * Makefile.in (SUBDIR_CLI_CLEAN): Delete.
9987 (SUBDIR_CLI_INSTALL, SUBDIR_CLI_UNINSTALL): Delete.
9988 (SUBDIR_CLI_ALL, SUBDIR_GDBTK_ALL): Delete.
9989 (SUBDIR_GDBTK_CLEAN, SUBDIR_GDBTK_INSTALL): Delete.
9990 (SUBDIR_GDBTK_UNINSTALL, SUBDIR_MI_ALL): Delete.
9991 (SUBDIR_MI_CLEAN, SUBDIR_MI_INSTALL): Delete.
9992 (SUBDIR_MI_UNINSTALL, SUBDIR_TUI_ALL): Delete.
9993 (SUBDIR_TUI_CLEAN, SUBDIR_TUI_INSTALL): Delete.
9994 (SUBDIR_TUI_UNINSTALL, SUBDIR_CLI_CLEAN): Delete.
9995
9996 2004-02-07 Andrew Cagney <cagney@redhat.com>
9997
9998 * Makefile.in: Update all dependencies.
9999
10000 * configure.in (CONFIG_INITS, CONFIG_LIB_OBS): Delete.
10001 * configure: Re-generate.
10002 * Makefile.in (INIT_FILES): Replace CONFIG_INITS with CONFIG_SRCS.
10003 (CONFIG_LIB_OBS, CONFIG_INITS): Delete.
10004 (COMMON_OBS): Add "main.o" and "annotate.o".
10005 (ANNOTATE_OBS): Delete.
10006 (OBS): Remove ANNOTATE_OBS.
10007 (DEPFILES): Replace CONFIG_LIB_OBS with CONFIG_LIB_OBS, remove
10008 CONFIG_INITS.
10009 (gdb$(EXEEXT), insight$(EXEEXT)): Do not depend on, or link
10010 against CONFIG_OBS and "main.o".
10011 (SUBDIR_CLI_INITS, SUBDIR_MI_INITS): Delete.
10012 (SUBDIR_TUI_INITS, SUBDIR_GDBTK_INITS): Delete.
10013
10014 * tui/tui-command.c: Include "gdb_string.h", delete register
10015 attribute, use ISO-C function signatures.
10016 * tui/tui-disasm.c, tui/tui-file.c, tui/tui-io.c: Ditto.
10017 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
10018 * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Ditto.
10019 * tui/tui.c: Ditto.
10020
10021 * tui/tui-command.c: Change variable and function names to lower
10022 case.
10023 * tui/tui-data.c, tui/tui-disasm.c: Ditto.
10024 * tui/tui-hooks.c, tui/tui-io.c, tui/tui-layout.c: Ditto.
10025 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
10026 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
10027 * tui/tui-winsource.c, tui/tui.c: Ditto.
10028
10029 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
10030
10031 * buildsym.c (free_pending_blocks, finish_block)
10032 (record_pending_block, make_blockvector, end_symtab): Replace
10033 symbol_obstack with objfile_obstack.
10034 * coffread.c (process_coff_symbol, coff_read_struct_type)
10035 (coff_read_enum_type): Ditto.
10036 * cp-namespace.c (initialize_namespace_symtab)
10037 (check_one_possible_namespace_symbol): Ditto.
10038 * dwarf2read.c (new_symbol, dwarf2_const_value, macro_start_file)
10039 (dwarf2_symbol_mark_computed): Ditto.
10040 * dwarfread.c (enum_type, new_symbol, synthesize_typedef): Ditto.
10041 * elfread.c (elf_symtab_read): Ditto.
10042 * hpread.c (hpread_symfile_init, hpread_symfile_init)
10043 (hpread_read_enum_type, hpread_read_function_type)
10044 (hpread_read_doc_function_type, hpread_process_one_debug_symbol):
10045 Ditto.
10046 * jv-lang.c (get_java_class_symtab, add_class_symbol)
10047 (java_link_class_type): Ditto.
10048 * mdebugread.c (parse_symbol, psymtab_to_symtab_1, new_symtab)
10049 (new_symbol): Ditto.
10050 * minsyms.c (install_minimal_symbols): Ditto.
10051 * objfiles.c (allocate_objfile): Remove init of symbol_obstack.
10052 (terminate_minimal_symbol_table): Replace symbol_obstack with
10053 objfile_obstack.
10054 (free_objfile): Remove freeing of symbol_obstack.
10055 * objfiles.h: Remove symbol_obstack field.
10056 * pa64solib.c (add_to_solist): Replace symbol_obstack with
10057 objfile_obstack.
10058 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
10059 symbol_obstack.
10060 (solib_add_common_symbols): Replace symbol_obstack with
10061 objfile_obstack.
10062 * somsolib.c (som_solib_add): Ditto.
10063 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
10064 (common_block_start, common_block_end): Ditto.
10065 * symfile.c (reread_symbols): Remove freeing and init of
10066 symbol_obstack.
10067 (allocate_symtab): Rename symbol_obstack to objfile_obstack.
10068 * symfile.h: Update comment.
10069 * symmisc.c (print_objfile_statistics): Remove symbol_obstack
10070 stats printing.
10071 * symtab.c (symbol_set_names): Replace symbol_obstack with
10072 objfile_obstack.
10073 * symtab.h (struct general_symbol_info, struct minimal_symbol):
10074 Update comments.
10075 * xcoffread.c (read_xcoff_symtab, SYMBOL_DUP, SYMNAME_ALLOC)
10076 (init_stringtab, xcoff_initial_scan): Replace symbol_obstack with
10077 objfile_obstack.
10078
10079 2004-02-07 Andrew Cagney <cagney@redhat.com>
10080
10081 * tui/tui.h: Do not include <stdarg.h>, <string.h>, and
10082 "ansidecl.h". Do not undef "reg" and "chtype". Fix case of
10083 fields and variables.
10084 * tui/tui-wingeneral.h (m_beVisible): Delete macro.
10085 (m_beInvisible): Delete macro.
10086 * tui/tui-data.h: Fix case case fields and variables.
10087 (m_genWinPtrIsNull): Delete macro.
10088 (tui_win_list): Rename winList.
10089 (TUI_SRC_WIN): Rename srcWin.
10090 (TUI_DISASM_WIN): Rename disassemWin.
10091 (TUI_DATA_WIN): Rename dataWin.
10092 (TUI_CMD_WIN): Rename cmdWin.
10093 (m_genWinPtrNotNull): Delete macro.
10094 (m_winPtrIsNull): Delete macro.
10095 (m_winPtrNotNull): Delete macro.
10096 (tui_win_is_source_type): Replace m_winIsSourceType
10097 (tui_win_is_auxillary): Replace m_winIsAuzillary.
10098 (tui_win_has_locator): Replace m_hasLocator.
10099 (tui_set_win_highlight): Replace m_setWinHighlightOn and
10100 m_setWinHighlightOff.
10101 * tui/tui-data.c: Update references.
10102 (tui_win_is_source_type, tui_set_win_highlight): New functions.
10103 (tui_win_has_locator, tui_win_is_auxillary): New functions.
10104 * tui/tui-command.c, tui/tui-disasm.c: Update references.
10105 * tui/tui-io.c, tui/tui-layout.c, tui/tui-regs.c: Ditto.
10106 * tui/tui-regs.h, tui/tui-source.c, tui/tui-stack.c: Ditto.
10107 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
10108 * tui/tui-winsource.c, tui/tui.c: Ditto.
10109
10110 2004-02-07 Mark Kettenis <kettenis@gnu.org>
10111
10112 * sparc-tdep.h (sparc_fetch_wcookie): New prototype.
10113 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Handle
10114 StackGhost.
10115
10116 * sparc-tdep.c (sparc32_frame_prev_register): Rename local
10117 variable `i6' to `i7'.
10118 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
10119
10120 2004-02-07 Andrew Cagney <cagney@redhat.com>
10121
10122 * tui/tui.h (Opaque, OpaquePtr OpaqueList): Delete definition.
10123 (TuiPoint, TuiPointPtr): Ditto.
10124 (TuiStatus, TuiStatusPtr): Ditto.
10125 (TuiWinType, TuiWinTypePtr): Ditto.
10126 (struct tui_point): Rename _TuiPoint.
10127 (tui_get_low_disassembly_address): Rename
10128 tuiGetLowDisassemblyAddress.
10129 (tui_update_all_exec_infos): Rename tuiUpdateAllExecInfos.
10130 (tuiFree): Delete declaration.
10131 (OpaqueFuncPtr, TuiOpaqueFuncPtr): Delete definitions.
10132 (TuiVoidFuncPtr, TuiIntFuncPtr): Delete definitions.
10133 * tui/tui.c (tuiFree): Delete function.
10134 * cli/cli-cmds.c (disassemble_command): Update references.
10135 * tui/tui-data.c, tui/tui-data.h, tui/tui-disasm.c: Ditto.
10136 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
10137 * tui/tui-stack.c, tui/tui-win.c, tui/tui-wingeneral.c: Ditto.
10138 * tui/tui-winsource.c: Ditto.
10139
10140 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
10141
10142 * dbxread.c (dbx_symfile_init, start_psymtab, end_psymtab,
10143 coffstab_build_psymtabs, elfstab_build_psymtabs)
10144 (stabsect_build_psymtabs): Replace psymbol_obstack with
10145 objfile_obstack.
10146 * dwarf2-frame.c (decode_frame_entry_1): Ditto.
10147 * dwarf2read.c (dwarf2_build_psymtabs_hard, dwarf2_read_section):
10148 Ditto.
10149 * dwarfread.c (scan_compilation_units): Ditto.
10150 * elfread.c (elfstab_offset_sections): Ditto.
10151 * hppa-tdep.c (read_unwind_info): Ditto.
10152 * hpread.c (hpread_build_psymtabs, hpread_start_psymtab)
10153 (hpread_end_psymtab): Ditto.
10154 * mdebugread.c (mdebug_build_psymtabs, add_pending)
10155 (parse_partial_symbols, new_psymtab, elfmdebug_build_psymtabs):
10156 Ditto.
10157 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
10158 * objfiles.c (add_to_objfile_sections)
10159 (build_objfile_section_table): Ditto.
10160 (allocate_objfile): Remove init of psymbol_obstack.
10161 (free_objfile): Remove freeing of psymbol_obstack.
10162 * objfiles.h (struct objfile): Remove field
10163 psymbol_obstack. Update comments.
10164 * pa64solib.c (pa64_solib_add_solib_objfile): Replace
10165 psymbol_obstack with objfile_obstack.
10166 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
10167 psymbol_obstack.
10168 * somread.c (som_symfile_offsets, init_import_symbols)
10169 (init_export_symbols): Replace psymbol_obstack with
10170 objfile_obstack.
10171 * somsolib.c (som_solib_add_solib_objfile): Ditto.
10172 * symfile.c (default_symfile_offsets, syms_from_objfile)
10173 (reread_symbols): Remove freeing and init of psymbol_obstack.
10174 (cashier_psymtab): Update comment.
10175 * symmisc.c (print_objfile_statistics): Don't report stats for
10176 psymbol obstack.
10177 * symtab.h (struct general_symbol_info, struct partial_symtab):
10178 Update comments.
10179 * xcoffread.c (xcoff_start_psymtab, xcoff_end_psymtab, swap_sym)
10180 (xcoff_symfile_offsets): Replace psymbol_obstack with
10181 objfile_obstack.
10182
10183 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
10184
10185 * objfiles.h (struct objfile): Add objfile_obstack field.
10186 Remove type_obstack field.
10187
10188 * dwarf2read.c (dwarf2_add_field,dwarf2_add_member_fn,
10189 read_structure_scope read_enumeration, new_symbol): Replace
10190 type_obstack with objfile_obstack.
10191 * dwarfread.c (struct_type, enum_type): Ditto.
10192 * gdbtypes.c (alloc_type, alloc_type_instance, init_type)
10193 (lookup_fundamental_type): Ditto.
10194 * gdbtypes.h (TYPE_ALLOC): Ditto.
10195 * hpread.c (hpread_read_enum_type, hpread_read_function_type)
10196 (hpread_read_doc_function_type, hpread_read_struct_type)
10197 (fix_static_member_physnames, hpread_read_array_type)
10198 (hpread_read_subrange_type, hpread_type_lookup): Ditto.
10199 * jv-lang.c (java_lookup_class, type_from_class, type_from_class)
10200 (java_link_class_type): Ditto.
10201 * mdebugread.c (parse_type): Ditto.
10202 * objfiles.c (allocate_objfile, free_objfile): Ditto.
10203 * solib-sunos.c (solib_add_common_symbols): Ditto.
10204 * stabsread.c (define_symbol, read_type, read_member_functions,
10205 read_cpp_abbrev, read_one_struct_field): Ditto.
10206 * symfile.c (reread_symbols): Ditto.
10207 * symmisc.c (print_objfile_statistics): Ditto.
10208
10209 2004-02-07 Andrew Cagney <cagney@redhat.com>
10210
10211 * tui/tui-data.h (tui_win_element): Rename TuiWinElement.
10212 (tui_exec_info_content): Rename TuiExecInfoContent.
10213 (TuiGenWinInfo, TuiGenWinInfoPtr): Delete definitions.
10214 (TuiWinInfo, TuiWinInfoPtr): Ditto.
10215 (TuiScrollDirection, TuiScrollDirectionPtr): Ditto.
10216 (TuiList, TuiListPtr): Ditto.
10217 (TuiLayoutType, TuiLayoutTypePtr): Ditto.
10218 (TuiDataType, TuiDataTypePtr): Ditto.
10219 (TuiRegisterDisplayType, TuiRegisterDisplayTypePtr): Ditto.
10220 (TuiLineOrAddress, TuiLineOrAddressPtr): Ditto.
10221 (TuiLayoutDef, TuiLayoutDefPtr): Ditto.
10222 (TuiSourceElement, TuiSourceElementPtr): Ditto.
10223 (TuiDataElement, TuiDataElementPtr): Ditto.
10224 (TuiWinElement, TuiWinElementPtr): Ditto.
10225 (TuiDataInfo, TuiDataInfoPtr): Ditto.
10226 (TuiCommandElement, TuiCommandElementPtr): Ditto.
10227 (TuiLocatorElement, TuiLocatorElementPtr): Ditto.
10228 (TuiWhichElement, TuiWhichElementPtr): Ditto.
10229 (TuiSourceInfo, TuiSourceInfoPtr): Ditto.
10230 (TuiCommandInfo, TuiCommandInfoPtr): Ditto.
10231 * tui/tui-command.c, tui/tui-data.c: Update references.
10232 * tui/tui-data.h, tui/tui-disasm.c, tui/tui-layout.c: Ditto.
10233 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
10234 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
10235 * tui/tui-winsource.c, tui/tui.c: Ditto.
10236
10237 2004-02-07 Mark Kettenis <kettenis@gnu.org>
10238
10239 * dwarf2-frame.h: Update copyright.
10240 (enum dwarf2_frame_reg_rule): New.
10241 (struct dwarf2_frame_state_reg): New.
10242 (dwarf2_frame_sniffer, dwarf2_frame_base_sniffer): Make extern.
10243 * dwarf2-frame.c: Update copyright.
10244 (enum dwarf2_reg_rule): Remove.
10245 (struct dwarf2_frame_state): Remove defenition of `struct
10246 dwarf2_frame_state_reg'.
10247 (read_reg): Call get_frame_arch to get the architecture instead of
10248 using CURRENT_GDBARCH.
10249 (execute_cfa_program): Prefix old `enum dwarf2_reg_rule' tags with
10250 DWARF2_FRAME_.
10251 (dwarf2_frame_init_reg): New function.
10252 (dwarf2_frame_cache): Call get_frame_arch to get the architecture
10253 instead of using CURRENT_GDBARCH. Call dwarf2_frame_init_reg to
10254 initialize the register state. Prefix old `enum dwarf2_reg_rule'
10255 tags with DWARF2_FRAME_.
10256 (dwarf2_frame_prev_register): Call get_frame_arch to get the
10257 architecture instead of using CURRENT_GDBARCH. Prefix old `enum
10258 dwarf2_reg_rule' tags with DWARF2_FRAME_.
10259
10260 2004-02-06 Andrew Cagney <cagney@redhat.com>
10261
10262 * tui/tui-data.h (struct tui_list): Rename _TuiList.
10263 (enum tui_data_type): Rename _TuiDataType.
10264 (struct tui_layout_def): Rename _TuiLayoutDef.
10265 (struct tui_source_element): Rename _TuiSourceElement.
10266 (struct tui_data_element): Rename _TuiDataElement.
10267 (struct tui_command_element): Rename _TuiCommandElement.
10268 (struct tui_locator_element): Rename _TuiLocatorElement.
10269 (union tui_which_element): Define.
10270 (struct tui_win_element): Rename _TuiWinElement.
10271 (struct tui_data_info): Rename _TuiDataInfo.
10272 (struct tui_source_info): Rename _TuiSourceInfo.
10273 (struct tui_command_info): Rename _TuiCommandInfo.
10274 (tui_initialize_static_data): Rename initializeStaticData.
10275 (tui_alloc_generic_win_info): Rename allocGenericWinInfo.
10276 (tui_alloc_win_info): Rename allocWinInfo.
10277 (tui_init_generic_part): Rename initGenericPart.
10278 (tui_init_win_info): Rename initWinInfo.
10279 (tui_alloc_content): Rename allocContent.
10280 (tui_add_content_elements): Rename addContentElements.
10281 (tui_init_content_element): Rename initContentElement.
10282 (tui_free_window): Rename freeWindow.
10283 (tui_free_win_content): Rename freeWinContent.
10284 (tui_free_data_content): Rename freeDataContent.
10285 (tui_free_all_source_wins_content): Rename
10286 freeAllSourceWinsContent.
10287 (tui_del_window): Rename tuiDelWindow.
10288 (tui_del_data_windows): Rename tuiDelDataWindows.
10289 (tui_partial_win_by_name): Rename partialWinByName.
10290 (tui_win_name): Rename winName.
10291 (tui_current_layout): Rename currentLayout.
10292 (tui_set_current_layout_to): Rename setCurrentLayoutTo.
10293 (tui_term_height): Rename termHeight.
10294 (tui_set_term_height_to): Rename setTermHeightTo.
10295 (tui_term_width): Rename termWidth.
10296 (tui_set_term_width_to): Rename setTermWidthTo.
10297 (tui_set_gen_win_origin): Rename setGenWinOrigin.
10298 (tui_locator_win_info_ptr): Rename locatorWinInfoPtr.
10299 (tui_source_exec_info_win_ptr): Rename tui_gen_win_info.
10300 (tui_disassem_exec_info_win_ptr): Rename disassemExecInfoWinPtr.
10301 (tui_source_windows): Rename sourceWindows.
10302 (tui_clear_source_windows): Rename clearSourceWindows.
10303 (tui_clear_source_windows_detail): Rename
10304 clearSourceWindowsDetail.
10305 (tui_clear_win_detail): Rename clearWinDetail.
10306 (tui_add_to_source_windows): Rename tuiAddToSourceWindows.
10307 (tui_default_tab_len): Rename tuiDefaultTabLen.
10308 (tui_set_default_tab_len): Rename tuiSetDefaultTabLen.
10309 (tui_win_with_focus): Rename tuiWinWithFocus.
10310 (tui_set_win_with_focus): Rename tuiSetWinWithFocus.
10311 (tui_layout_def): Rename tuiLayoutDef.
10312 (tui_win_resized): Rename tuiWinResized.
10313 (tui_set_win_resized_to): Rename tuiSetWinResizedTo.
10314 (tui_next_win): Rename tuiNextWin.
10315 (tui_prev_win): Rename tuiPrevWin.
10316 (tui_add_to_source_windows): Rename addToSourceWindows.
10317 * tui/tui-winsource.c, tui/tui-win.c: Update references.
10318 * tui/tui-layout.c, tui/tui-source.c: Ditto.
10319 * tui/tui-stack.c, tui/tui-io.c: Ditto.
10320 * tui/tui.c, tui/tui-data.c: Ditto.
10321 * tui/tui-interp.c, tui/tui-data.c: Ditto.
10322 * tui/tui-disasm.c, tui/tui-command.c: Ditto.
10323
10324 * tui/tui-source.h: Update copyright. Include "tui-data.h".
10325 (struct symtab): Declare.
10326 (tui_set_source_content): Rename tuiSetSourceContent.
10327 (tui_show_symtab_source): Rename tuiShowSource.
10328 (tui_source_is_displayed): Rename tuiSourceIsDisplayed.
10329 (tui_vertical_source_scroll): Rename tuiVerticalSourceScroll.
10330 * tui/tui-source.c: Update copyright. Update references.
10331 * tui/tui-win.c, tui/tui-winsource.c: Update references.
10332 * tui/tui-stack.c: Update references.
10333
10334 * tui/tui-win.h: Update copyright. Include "tui-data.h".
10335 (struct tui_win_info): Declare.
10336 (tui_scroll_forward): Rename tuiScrollForward.
10337 (tui_scroll_backward): Rename tuiScrollBackward.
10338 (tui_scroll_left): Rename tuiScrollLeft.
10339 (tui_scroll_right): Rename tuiScrollRight.
10340 (tui_set_win_focus_to): Rename tuiSetWinFocusTo.
10341 (tui_resize_all): Rename tuiResizeAll.
10342 (tui_refresh_all_win): Rename tuiRefreshAll.
10343 (tui_sigwinch_handler): Rename tuiSigwinchHandler.
10344 * tui/tui-layout.c, * tui/tui-io.c: Update references.
10345 * tui/tui-wingeneral.h, * tui/tui.c: Update references.
10346 * tui/tui-disasm.c, * tui/tui-command.c: Update references.
10347
10348 * tui/tui-windata.h: Update copyright. Include "tui-data.h".
10349 (tui_erase_data_content): Rename tuiEraseDataContent.
10350 (tui_display_all_data): Rename tuiDisplayAllData.
10351 (tui_check_data_values): Rename tuiCheckDataValues.
10352 (tui_display_data_from_line): Rename tuiDisplayDataFromLine.
10353 (tui_first_data_item_displayed): Rename tuiFirstDataItemDisplayed.
10354 (tui_first_data_element_no_in_line): Rename
10355 tuiFirstDataElementNoInLine.
10356 (tui_delete_data_content_windows): Rename
10357 tuiDeleteDataContentWindows.
10358 (tui_refresh_data_win): Rename tuiRefreshDataWin.
10359 (tui_display_data_from): Rename tuiDisplayDataFrom.
10360 (tui_vertical_data_scroll): Rename tuiVerticalDataScroll.
10361 * tui/tui-windata.c, tui/tui-hooks.c: Update references.
10362 * tui/tui-win.c, tui/tui-regs.c: Update references.
10363 * tui/tui-layout.c, tui/tui.c: Update references.
10364
10365 * tui/tui-wingeneral.h: Update copyright.
10366 (m_allBeVisible): Delete macro.
10367 (m_allBeInvisible): Delete macro.
10368 (struct tui_gen_win_info): Declare.
10369 (struct tui_win_info): Declare.
10370 (tui_unhighlight_win): Rename unhighlightWin.
10371 (tui_make_visible, tui_make_invisible): Replace makeVisible.
10372 (tui_make_all_visible, tui_make_all_invisible): Replace makeAllVisible.
10373 (tui_make_window): Rename makeWindow.
10374 (tui_copy_win): Rename copyWin.
10375 (tui_box_win): Rename boxWin.
10376 (tui_highlight_win): Rename highlightWin.
10377 (tui_check_and_display_highlight_if_needed): Rename
10378 checkAndDisplayHighlightIfNeeded.
10379 (tui_refresh_all): Rename refreshAll.
10380 (tui_delete_win): Rename tuiDelwin.
10381 (tui_refresh_win): Rename tuiRefreshWin.
10382 * tui/tui-wingeneral.c (make_visible): Rename makeVisible.
10383 (tui_make_visible, tui_make_invisible): New functions.
10384 (tui_make_all_visible, tui_make_all_invisible): New functions.
10385 (make_all_visible): Rename makeAllVisible.
10386 * tui/tui-winsource.c, tui/tui-windata.c: Update references.
10387 * tui/tui-data.c, tui/tui-winsource.c: Update references.
10388 * tui/tui-windata.c, tui/tui-win.c: Update references.
10389 * tui/tui-regs.c, tui/tui-layout.c: Update references.
10390 * tui/tui-data.h (struct tui_gen_win_info): Rename _TuiGenWinInfo.
10391
10392 2004-02-06 Mark Kettenis <kettenis@gnu.org>
10393
10394 * proc-api.c (write_with_trace): Initialize local variable to
10395 silence compiler warning.
10396
10397 2004-02-06 Andrew Cagney <cagney@redhat.com>
10398
10399 * tui/tui-source.h: Do not include "defs.h".
10400 (struct tui_win_info): Declare.
10401 (tui_set_source_content_nil): Declare.
10402 * tui/tui-data.h (struct tui_win_info): Rename _TuiWinInfo.
10403 (union tui_line_or_address): Rename _TuiLineOrAddress.
10404 * tui/tui-winsource.h: Update copyright. Include "tui-data.h".
10405 (tui_update_source_window): Rename tuiUpdateSourceWindow.
10406 (tui_update_source_window_as_is): Rename
10407 tuiUpdateSourceWindowAsIs.
10408 (tui_update_source_windows_with_addr): Rename
10409 tuiUpdateSourceWindowsWithAddr.
10410 (tui_update_source_windows_with_line): Rename
10411 tuiUpdateSourceWindowsWithLine.
10412 (tui_clear_source_content): Rename tuiClearSourceContent.
10413 (tui_erase_source_content): Rename tuiEraseSourceContent.
10414 (tui_set_source_content_nil): Rename tuiSetSourceContentNil.
10415 (tui_show_source_content): Rename tuiShowSourceContent.
10416 (tui_horizontal_source_scroll): Rename tuiHorizontalSourceScroll.
10417 (tui_set_exec_info_content): Rename tuiSetExecInfoContent.
10418 (tui_show_exec_info_content): Rename tuiShowExecInfoContent.
10419 (tui_erase_exec_info_content): Rename tuiEraseExecInfoContent.
10420 (tui_clear_exec_info_content): Rename tuiClearExecInfoContent.
10421 (tui_update_exec_info): Rename tuiUpdateExecInfo.
10422 (tui_set_is_exec_point_at): Rename tuiSetIsExecPointAt.
10423 (tui_alloc_source_buffer): Rename tuiAllocSourceBuffer.
10424 (tui_line_is_displayed): Rename tuiLineIsDisplayed.
10425 (tui_addr_is_displayed): Rename tuiAddrIsDisplayed.
10426 (struct tui_win_info): Declare.
10427 * tui/tui-stack.c: Update references.
10428 * tui/tui-layout.c, tui/tui-winsource.c: Ditto.
10429 * tui/tui-win.c, tui/tui-source.c: Ditto.
10430 * tui/tui.c, tui/tui-disasm.c: Ditto.
10431
10432 2004-02-06 Mark Kettenis <kettenis@gnu.org>
10433
10434 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Fix calculation
10435 of UCONTEXT_ADDR. Fixes PR backtrace/1545.
10436
10437 2004-02-05 Mark Kettenis <kettenis@gnu.org>
10438
10439 * infrun.c (handle_inferior_event): Allow for breakpoint
10440 instructions to generate a SIGSEGV in addition to SIGTRAP, SIGILL
10441 and SIGEMT. Update comments.
10442 * NEWS (Revised SPARC target): Mention support for non-executable
10443 stack.
10444
10445 2004-02-04 Mark Kettenis <kettenis@gnu.org>
10446
10447 * target.h (target_object): Add TARGET_OBJECT_WCOOKIE.
10448 * inftarg.c: Update copyright year.
10449 (child_xfer_partial): Add support for TARGET_OBJECT_WCOOKIE.
10450 * sparc-nat.c: Include "target.h" and "gdb_assert.h".
10451 (sparc_xfer_wcookie): New function.
10452 * sparc-tdep.c (sparc_fetch_wcookie): New function.
10453 * Makefile.in (sparc-nat.o): Update dependencies.
10454 * config/sparc/nm-nbsd.h: Include "target.h".
10455 (NATIVE_XFER_WCOOKIE): New define.
10456 (sparc_xfer_wcookie): New prototype.
10457
10458 2004-02-04 Andrew Cagney <cagney@redhat.com>
10459
10460 * m68k-tdep.c (m68k_saved_pc_after_call): Delete #ifdef
10461 SYSCALL_TRAP function.
10462 (m68k_gdbarch_init): Delete #ifdef SYSCALL_TRAP code.
10463
10464 2004-02-04 Andrew Cagney <cagney@redhat.com>
10465 Daniel Jacobowitz <drow@mvista.com>
10466
10467 * objfiles.h: Delete comments refering to inside_entry_func and
10468 DEPRECATED_FRAME_CHAIN_VALID.
10469 * defs.h (inside_entry_func): Update prototype..
10470 * blockframe.c (inside_entry_func): Rename to
10471 legacy_inside_entry_func. Add new inside_entry_func taking a frame.
10472 * frame.c (get_prev_frame): Pass the frame to inside_entry_func.
10473
10474 2004-02-03 Jeff Johnston <jjohnstn@redhat.com>
10475
10476 * breakpoint.c (struct captured_parse_breakpoint_args): Move
10477 outside of #ifdef SOLIB_ADD region.
10478 (do_restore_lang_radix_cleanup): Ditto.
10479 (resolve_pending_breakpoint): Ditto.
10480
10481 2004-02-03 Andrew Cagney <cagney@redhat.com>
10482
10483 * ia64-tdep.c (read_sigcontext_register): Delete unused function.
10484 (process_note_abi_tag_sections): Delete unused function.
10485 (ia64_read_fp): Delete unused function.
10486 (gdbarch_extract_struct_value_address): Delete declaration.
10487
10488 2004-02-02 Andrew Cagney <cagney@redhat.com>
10489
10490 * vax-tdep.c (vax_frame_chain): Delete call to
10491 deprecated_inside_entry_file.
10492 * ns32k-tdep.c (ns32k_frame_chain): Ditto.
10493
10494 2004-02-02 Mark Kettenis <kettenis@gnu.org>
10495
10496 * dwarf2-frame.c (dwarf2_frame_cache): Deal with a return address
10497 column that's "empty" or "same value" when eliminating REG_RA
10498 rules.
10499
10500 2004-02-02 Jeff Johnston <jjohnstn@redhat.com>
10501
10502 * NEWS: Add information about new pending breakpoint support.
10503
10504 2004-02-02 Jeff Johnston <jjohnstn@redhat.com>
10505
10506 * breakpoint.h (struct breakpoint): Add new flag, from_tty,
10507 and pending fields for pending breakpoint support.
10508 * breakpoint.c (breakpoint_enabled): Add check for not pending.
10509 (condition_command): Only parse condition if not a pending
10510 breakpoint.
10511 (print_one_breakpoint): Add support for pending breakpoints.
10512 (describe_other_breakpoints): Add checks to verify we are not
10513 dealing with pending breakpoints.
10514 (check_duplicates): Don't check pending breakpoints.
10515 (set_raw_breakpoint): Initialize pending flag.
10516 (do_restore_lang_radix_cleanup): New cleanup routine.
10517 (resolve_pending_breakpoint): New function.
10518 (re_enable_breakpoints_in_shlibs): Try and resolve any
10519 pending breakpoints via resolve_pending_breakpoint.
10520 (mention): Add pending breakpoint support.
10521 (parse_breakpoint_sals): Add new parameter to pass to
10522 decode_line_1 to indicate silent errors when files or functions
10523 are not found. Change all callers.
10524 (do_captured_parse_breakpoint): New function.
10525 (break_command_1): Change prototype to return an rc value and to
10526 take an optional pending breakpoint pointer. Support creating
10527 a pending breakpoint if a "not found" form of error occurs when
10528 parsing the breakpoint. Also support resolving an existing pending
10529 breakpoint and be silent if the resolution fails.
10530 (create_breakpoints): Change prototype to take pending breakpoint
10531 pointer. When resolving a pending breakpoint, use the new pointer
10532 to provide a conditional or commands added by the end-user.
10533 (delete_breakpoint): Add appropriate check for pending.
10534 (breakpoint_re_set_one): Ditto.
10535 (do_enable_breakpoint): Ditto.
10536
10537 2004-02-02 David Carlton <carlton@kealia.com>
10538
10539 * valops.c (enum oload_classification): New.
10540 (find_overload_match): Break implementation into separate
10541 functions; delete #if 0'd code; look for symbols within
10542 namespaces.
10543 (find_oload_champ_namespace,find_oload_champ_namespace_loop)
10544 (find_oload_champ,oload_method_static,classify_oload_match): New.
10545 * cp-support.h: Add declaration for cp_func_name; update
10546 declaration for make_symbol_overload_list.
10547 * cp-support.c (cp_func_name): New.
10548 (overload_list_add_symbol): Fix comment, use
10549 SYMBOL_LINKAGE_NAME and SYMBOL_NATURAL_NAME.
10550 (make_symbol_overload_list): Take a function name and a namespace
10551 instead of a symbol; change implementation.
10552 (make_symbol_overload_list_using): New.
10553 (make_symbol_overload_list_qualified, read_in_psymtabs): New.
10554
10555 2004-02-02 Fred Fish <fnf@redhat.com>
10556
10557 * main.c (gdb_stdtarg): Move definition to group with other
10558 gdb_stdtarg definitions and update copyright years.
10559 * remote-sim.c (gdb_os_write_stderr): Write output to
10560 gdb_stdtargerr stream instead of gdb_stdtarg stream.
10561 (gdb_os_flush_stderr): Flush gdb_stdtargerr steam instead of
10562 gdb_stderr stream and update copyright years.
10563
10564 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
10565
10566 * Makefile.in (mips-linux-nat.o): Update dependencies.
10567 * mips-linux-nat.c: Include mips-tdep.h.
10568
10569 2004-02-01 Roland McGrath <roland@redhat.com>
10570
10571 * sol-thread.c (sol_thread_xfer_partial): New function.
10572 (init_sol_thread_ops): Use that for to_xfer_partial hook.
10573 (init_sol_core_ops): Likewise.
10574
10575 * procfs.c (procfs_xfer_partial): New function.
10576 (init_procfs_ops): Use that for procfs_ops.to_xfer_partial.
10577 * Makefile.in (procfs.o): Add $(auxv_h) dep.
10578
10579 * config/nm-linux.h (NATIVE_XFER_AUXV): New macro, uses auxv.c's
10580 procfs_xfer_auxv function.
10581
10582 * procfs.c (procfs_make_note_section): If we can read
10583 TARGET_OBJECT_AUXV data, add an NT_AUXV note containing it.
10584 * linux-proc.c (linux_make_note_section): Likewise.
10585
10586 * auxv.h: New file.
10587 * auxv.c: New file.
10588 * Makefile.in (auxv_h): New variable.
10589 (COMMON_OBS): Add auxv.o here.
10590 (auxv.o): New target.
10591
10592 * corelow.c (core_xfer_partial): New function.
10593 (init_core_ops): Use it for core_ops.to_xfer_partial.
10594
10595 * target.h (enum target_object): Add TARGET_OBJECT_AUXV.
10596 * inftarg.c (child_xfer_partial): Support it using NATIVE_XFER_AUXV
10597 macro if that is defined.
10598
10599 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
10600
10601 * breakpoint.c (bpstat_stop_status): Take a ptid_t argument,
10602 and check the specified thread for each breakpoint.
10603 * breakpoint.h (bpstat_stop_status): Update prototype.
10604 * infrun.c (handle_inferior_event): Update calls to
10605 bpstat_stop_status.
10606
10607 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
10608
10609 * Makefile.in (cli-cmds.o): Add $(readline_h).
10610
10611 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
10612
10613 * cli/cli-cmds.c: Include readline.h.
10614 (complete_command): Pass the start of the last word to
10615 complete_line.
10616
10617 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
10618
10619 * breakpoint.c (bpstat_stop_status): Remove not_a_sw_breakpoint
10620 argument, and change first argument to a CORE_ADDR.
10621 * breakpoint.h (bpstat_stop_status): Update prototype.
10622 * infrun.c (adjust_pc_after_break): Add a new comment.
10623 (handle_inferior_event): Update calls to bpstat_stop_status.
10624
10625 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
10626
10627 * breakpoint.h: Update copyright years.
10628
10629 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
10630
10631 * breakpoint.c (software_breakpoint_inserted_here_p): New function.
10632 (bpstat_stop_status): Don't decrement PC.
10633 * breakpoint.h (software_breakpoint_inserted_here_p): Add
10634 prototype.
10635 * infrun.c (adjust_pc_after_break): New function.
10636 (handle_inferior_event): Call it, early. Remove later references
10637 to DECR_PC_AFTER_BREAK.
10638 (normal_stop): Add commentary.
10639
10640 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
10641
10642 * breakpoint.c (breakpoint_re_set_one): Add missing chunk of
10643 2004-01-27 double-free fix.
10644
10645 2004-01-31 Mark Kettenis <kettenis@gnu.org>
10646
10647 * sparc-tdep.c (sparc_fetch_wcookie): New function.
10648 (sparc32_frame_prev_register): Handle StackGhost.
10649 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
10650
10651 2004-01-29 Roland McGrath <roland@redhat.com>
10652
10653 * configure.in (NEW_PROC_API): Also match solaris2.9 for this test.
10654 * configure: Regenerated.
10655
10656 * procfs.c: Include gdb_string.h for str* decls, otherwise warnings.
10657 * Makefile.in (procfs.o): Add dep.
10658
10659 2004-01-28 Andrew Cagney <cagney@redhat.com>
10660
10661 * tui/tui-stack.h: Update copyright.
10662 (struct frame_info): Add opaque declaration.
10663 (tui_update_locator_filename): Rename tuiUpdateLocatorFilename.
10664 (tui_show_locator_content): Rename tuiShowLocatorContent.
10665 (tui_show_frame_info): Rename tuiShowFrameInfo.
10666 * tui/tui-stack.c: Update copyright. Update references.
10667 * tui/tui-winsource.c: Update references.
10668 * tui/tui-win.c: Update references.
10669 * tui/tui-layout.c: Update references.
10670 * tui/tui-hooks.c: Update copyright, update references.
10671 * tui/tui.c: Update copyright, update references.
10672 * tui/tui-disasm.c: Update references.
10673
10674 2004-01-28 David Carlton <carlton@kealia.com>
10675
10676 * dwarf2read.c (add_partial_structure): Use demangled name if
10677 namespace equals "".
10678
10679 2004-01-27 Jim Blandy <jimb@redhat.com>
10680
10681 Clean up misapplied patch:
10682 * dwarf2read.c (determine_prefix): Change one of the two forward
10683 declarations for 'determine_prefix_aux' to a declaration for this.
10684 (read_func_scope): Use cu->language, not cu_language. Pass 'cu'
10685 argument to 'die_specification'.
10686
10687 * dwarf2read.c (read_func_scope): Re-indent comment.
10688
10689 2004-01-27 Paul N. Hilfinger <hilfinger@gnat.com>
10690
10691 * breakpoint.c (breakpoint_re_set_one): Set b->cond, b->val, and
10692 b->exp to NULL after freeing so that error during re-parsing or
10693 evaluation of expressions associated with breakpoint don't
10694 eventually lead to re-freeing of storage.
10695 Committed by Andrew Cagney.
10696
10697 2004-01-27 Andrew Cagney <cagney@redhat.com>
10698
10699 * source.c (ambiguous_line_spec): Delete undefined declaration.
10700 * m32r-rom.c (m32r_set_board_address): Delete unused function.
10701 (m32r_set_server_address, m32r_set_download_path): Ditto.
10702 * remote-fileio.c (remote_fileio_to_fio_int): Ditto.
10703
10704 2004-01-27 Daniel Jacobowitz <drow@mvista.com>
10705
10706 * dwarf2read.c: Update calls to changed and renamed functions, and
10707 references to moved variables.
10708
10709 (struct dwarf2_cu): Add first_fn, last_fn, cached_fn,
10710 language, language_defn, list_in_scope, and ftypes members.
10711 (cu_first_fn, cu_last_fn, cu_cached_fn, cu_language)
10712 (cu_language_defn, list_in_scope, ftypes, cu_header_offset)
10713 (baseaddr): Remove globals.
10714
10715 (dwarf_attr): Renamed to dwarf2_attr. Add CU argument.
10716 (set_cu_language, die_is_declaration, die_specification)
10717 (determine_prefix, determin_prefix_aux, class_name, namespace_name)
10718 (dwarf2_linkage_name, dwarf2_name, dwarf2_extension)
10719 (dwarf2_get_ref_die_offset, dwarf2_fundamental_type)
10720 (initialize_cu_func_list, add_to_cu_func_list): Add CU argument.
10721
10722 (dwarf2_build_psymtabs_hard): Add local baseaddr. Initialize
10723 cu.list_in_scope. Don't initialize cu_header_offset.
10724 (add_partial_symbol): Add local baseaddr.
10725 (psymtab_to_symtab_1): Add local baseaddr. Use
10726 objfile->section_offsets for consistency. Don't initialize
10727 cu_header_offset; do initialize cu.header.offset and
10728 cu.list_in_scope.
10729 (read_file_scope, read_func_scope, read_lexical_block_scope)
10730 (dwarf_decode_lines, new_symbol): Add local baseaddr.
10731
10732 2004-01-27 Michael Chastain <mec.gnu@mindspring.com>
10733
10734 * PROBLEMS: Add gdb/1516.
10735
10736 2003-12-29 Robert Millan <robertmh@gnu.org>
10737
10738 Patch committed by Andrw Cagney.
10739 * configure.host: Match knetbsd*-gnu and kfreebsd*-gnu.
10740 * configure.tgt: Match knetbsd*-gnu.
10741
10742 2004-01-26 Andrew Cagney <cagney@redhat.com>
10743
10744 * breakpoint.c (catch_command_1): Delete #ifdef code.
10745 (catch_fork_command_1): Delete #ifdef wrapper.
10746 (catch_exec_command_1): Ditto.
10747 (catch_load_command_1): Ditto.
10748 (catch_unload_command_1): Ditto.
10749
10750 * breakpoint.c (watchpoint_check): Delete #if0ed variable.
10751 (catch_breakpoint): Delete #if0ed function.
10752 (disable_catch_breakpoint): Ditto.
10753 (delete_catch_breakpoint, enable_catch_breakpoint): Ditto.
10754 (disable_catch, enable_catch, delete_catch): Ditto.
10755
10756 2004-01-26 Andrew Cagney <cagney@redhat.com>
10757
10758 * remote.c (echo_check, quit_flag): Delete variables.
10759 (cisco_kernel_mode): Delete variable.
10760 (minitelnet_return, tty_input, escape_count): Delete variables.
10761 (remote_cisco_mode): Delete variable.
10762 (remote_cisco_open, remote_cisco_close): Delete function.
10763 (remote_cisco_mourn, remote_cisco_wait): Delete function.
10764 (init_remote_cisco_ops): Delete function.
10765 (_initialize_remote): Do not install "remote cisco" code.
10766 (read_frame): Delete cisco specific code.
10767 (remote_info_process): Delete function.
10768 (remote_wait): Delete cisco specific code.
10769 (remote_cisco_section_offsets): Delete function.
10770 (remote_cisco_objfile_relocate): Delete function.
10771 (remote_async_wait): Delete cisco specific code.
10772 (minitelnet, readtty, readsocket): Delete function.
10773
10774 2004-01-26 Andrew Cagney <cagney@redhat.com>
10775
10776 * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS): Deprecate. Add
10777 comments mentioning extract_returned_value_address.
10778 * infcmd.c (print_return_value): Update. Add comments on
10779 extract_returned_value_address.
10780 * stack.c (return_command): Add comments on
10781 extract_returned_value_address.
10782 * values.c: Update comment.
10783 * m32r-tdep.c: Update comment.
10784 * sparc-tdep.c: Update comment.
10785 * ia64-tdep.c (ia64_use_struct_convention): Update comment.
10786 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10787 * sh64-tdep.c (sh64_gdbarch_init): Update.
10788 * sh-tdep.c (sh_gdbarch_init): Update.
10789 * s390-tdep.c (s390_gdbarch_init): Update.
10790 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10791 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
10792 * m68k-tdep.c (m68k_gdbarch_init): Update.
10793 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10794 * m32r-tdep.c (m32r_gdbarch_init): Update.
10795 * ia64-tdep.c (ia64_gdbarch_init): Update.
10796 * h8300-tdep.c (h8300_gdbarch_init): Update.
10797 * frv-tdep.c (frv_gdbarch_init): Update.
10798 * arm-tdep.c (arm_gdbarch_init): Update.
10799 * alpha-tdep.c (alpha_gdbarch_init): Update.
10800
10801 2004-01-26 Andrew Cagney <cagney@redhat.com>
10802
10803 * dwarf2loc.c (dwarf_expr_frame_base): Use SYMBOL_OPS instead of
10804 SYMBOL_LOCATION_FUNCS
10805 (dwarf2_loclist_funcs, dwarf2_locexpr_funcs): Change type to
10806 "struct symbol_ops".
10807 * dwarf2loc.h (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Change
10808 type to "struct symbol_ops".
10809 * symtab.h (struct symbol_ops): Rename "struct location_funcs".
10810 (struct symbol): Replace ".aux_value.loc.funcs" and
10811 ".aux_value.loc.baton" with ".ops" and ".aux_value.ptr".
10812 (SYMBOL_OBJFILE): Delete macro.
10813 (SYMBOL_LOCATION_FUNCS): Delete macro.
10814 (SYMBOL_LOCATION_BATON): Update.
10815 * dwarf2read.c (dwarf2_symbol_mark_computed): Set SYMBOL_OPS
10816 intead of SYMBOL_LOCATION_FUNCS.
10817 * ax-gdb.c (gen_var_ref): Ditto.
10818 * printcmd.c (address_info): Ditto.
10819 * findvar.c (read_var_value): Ditto.
10820 (symbol_read_needs_frame): Ditto.
10821
10822 2004-01-26 Andrew Cagney <cagney@redhat.com>
10823
10824 * dwarf2read.c (read_func_scope): Document frame-base hack.
10825
10826 2004-01-25 Mark Kettenis <kettenis@gnu.org>
10827
10828 * infcmd.c (print_return_value): Plug memory leak; delete
10829 ui_stream object. Rename argument `structure_return' to
10830 `struct_return'.
10831
10832 2004-01-25 Mark Kettenis <kettenis@gnu.org>
10833
10834 * infcmd.c (print_return_value): Wrap long lines.
10835 (finish_command_continuation, finish_command): Remove unused
10836 variable `funcaddr'. Fix some coding-standards problems.
10837
10838 * sparc-tdep.c (sparc_regset_from_core_section): Check whether
10839 SECT_SIZE is large enough, not whether it's exactly the right size.
10840 (sparc32_gdbarch_init): Initialize TDEP->sizeof_gregset and
10841 TDEP->fpregset to zero.
10842
10843 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Also supply the
10844 floating-point registers for traditional NetBSD core files.
10845 (sparc32nbsd_init_abi): Initialize TDEP->sizeof_gregset and
10846 TDEP->sizeof_fpregset here.
10847
10848 2004-01-25 Mark Kettenis <kettenis@gnu.org>
10849
10850 * sparc-tdep.h (sparc32nbsd_sigcontext_saved_regs): New prototype.
10851 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): New
10852 function with code split out from
10853 sparc32nbsd_sigcontext_frame_cache.
10854 (sparc32nbsd_sigcontext_frame_cache): Use
10855 sparc32nbsd_sigcontext_saved_regs.
10856 (_initialize_sparc32nbsd_tdep): Don't register OS ABI handler for
10857 OpenBSD.
10858 * sparcobsd-tdep.c: New file.
10859 * Makefile.in (ALLDEPFILES): Add sparcobsd-tdep.c.
10860 (sparcobsd-tdep.o): New dependency.
10861 * configure.tgt (sparc-*-openbsd*): Set gdb_target to obsd.
10862 * config/sparc/obsd.mt: New file.
10863
10864 * sparc-tdep.c (sparc32_gdbarch_init): Don't require
10865 TDEP->fpregset to be initialized to enable core file register
10866 sets.
10867
10868 2004-01-24 Mark Kettenis <kettenis@gnu.org>
10869
10870 * sparc64-tdep.h (struct frame_info, struct trad_frame_saved_reg):
10871 Add opaque declarations.
10872 (sparc64nbsd_sigcontext_saved_regs): New prototype.
10873 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): New
10874 function with code split out from
10875 sparc64nbsd_sigcontext_frame_cache.
10876 (sparc64nbsd_sigcontext_frame_cache): Use
10877 sparc64nbsd_sigcontext_saved_regs.
10878 (_initialize_sparc64nbsd_tdep): Don't register OS ABI handler for
10879 OpenBSD.
10880 * sparc64obsd-tdep.c: New file.
10881 * Makefile.in (ALLDEPFILES): Add sparc64obsd-tdep.c.
10882 (sparc64obsd-tdep.o): New dependency.
10883 * configure.tgt (sparc64-*-openbsd*): Set gdb_target to obsd64 and
10884 gdb_osabi to GDB_OSABI_OPENBSD_ELF.
10885 * config/sparc/obsd64.mt: New file.
10886
10887 * sparc-tdep.c (sparc_fetch_instruction): Return zero if we can't
10888 read the instruction at PC.
10889
10890 * sparcnbsd-tdep.c (GDB_OSABI_NETBSD_CORE): Define, based on the
10891 value of GDB_OSABI_DEFAULT.
10892 (sparcnbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_CORE
10893 instead of GDB_OSABI_NETBSD_AOUT.
10894
10895 2004-01-24 Nick Roberts <nick@nick.uklinux.net>
10896
10897 * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-cmds.h: Update
10898 copyright.
10899
10900 2004-01-23 Andrew Cagney <cagney@redhat.com>
10901
10902 * printcmd.c (display_command): Replace tui_set_display call with
10903 tui_set_layout_for_display_command.
10904 * tui/tui.h (enum tui_win_type): Define.
10905 (tui_set_layout): Delete declaration.
10906 (tui_set_layout_for_display_command): Rename set_tui_layout.
10907 * tui/tui-data.h (enum tui_layout_type): Define.
10908 * tui/tui-layout.h: Update copyright. Include "tui-data.h" and
10909 "tui.h".
10910 (tui_add_win_to_layout): Rename tuiAddWinToLayout.
10911 (tui_default_win_height): Rename tuiDefaultWinHeight.
10912 (tui_default_win_viewport_height): Rename
10913 tuiDefaultWinViewportHeight.
10914 (tui_set_layout): RenametuiSetLayout.
10915 * tui/tui-layout.c: Update references.
10916 * tui/tui.c: Update references.
10917 * tui/tui-disasm.c: Update references.
10918
10919 2004-01-23 David Carlton <carlton@kealia.com>
10920
10921 Partial workaround for PR c++/1511:
10922 * cp-namespace.c: Include frame.h.
10923 (cp_lookup_transparent_type): New
10924 (cp_lookup_transparent_type_loop): New.
10925 * cp-support.h: Declare cp_lookup_transparent_type.
10926 * symtab.c (basic_lookup_transparent_type): Renamed from
10927 lookup_transparent_type.
10928 (lookup_transparent_type): Replace old body by a call to
10929 current_language->la_lookup_transparent_type.
10930 * symtab.h: Update copyright. Declare
10931 basic_lookup_transparent_type.
10932 * language.h: Update copyright.
10933 (struct language_defn): Add la_lookup_transparent_type.
10934 * language.c: Update copyright.
10935 (unknown_language_defn): Add basic_lookup_transparent_type.
10936 (auto_language_defn): Add basic_lookup_transparent_type.
10937 (local_language_defn): Add basic_lookup_transparent_type.
10938 * ada-lang.c: Update copyright.
10939 (ada_language_defn): Add basic_lookup_transparent_type.
10940 * c-lang.c: Update copyright.
10941 (c_language_defn): Add basic_lookup_transparent_type.
10942 (cplus_language_defn): Add basic_lookup_transparent_type.
10943 (asm_language_defn): Add basic_lookup_transparent_type.
10944 (minimal_language_defn): Add basic_lookup_transparent_type.
10945 * f-lang.c: Update copyright.
10946 (f_language_defn): Add basic_lookup_transparent_type.
10947 * jv-lang.c: Update copyright.
10948 (java_language_defn): Add basic_lookup_transparent_type.
10949 * m2-lang.c: Update copyright.
10950 (m2_language_defn): Add basic_lookup_transparent_type.
10951 * objc-lang.c: Update copyright.
10952 (objc_language_defn): Add basic_lookup_transparent_type.
10953 * p-lang.c: Update copyright.
10954 (p_language_defn): Add basic_lookup_transparent_type.
10955 * scm-lang.c: Update copyright.
10956 (scm_language_defn): Add basic_lookup_transparent_type.
10957 * Makefile.in (cp-namespace.o): Depend on frame.h.
10958
10959 2004-01-23 David Carlton <carlton@kealia.com>
10960
10961 Patch for PR c++/1520:
10962 * dwarf2read.c (read_func_scope): Set processing_current_prefix
10963 properly if we have a specification die.
10964 (determine_prefix_aux): Rename from determine_prefix.
10965 (determine_prefix): Like the old determine_prefix, but never
10966 returns NULL.
10967
10968 2004-01-23 Theodore A. Roth <troth@openavr.org>
10969
10970 * avr-tdep.c: Update copyright.
10971 (avr_iaddr_p): Delete unused function.
10972 (avr_saddr_p): Delete unused function.
10973
10974 2004-01-23 David Carlton <carlton@kealia.com>
10975
10976 * symfile.c (reread_symbols): Clear objfile->cp_namespace_symtab.
10977 Fix for PR symtab/1534.
10978
10979 2004-01-23 Mark Kettenis <kettenis@gnu.org>
10980
10981 * NEWS (New native configurations): Mention OpenBSD/sparc and
10982 OpenBSD/sparc64.
10983 * configure.tgt: Add sparc-*-openbsd* and sparc64-*-openbsd*.
10984 * configure.host: Likewise.
10985 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Register OS ABI
10986 handler for OpenBSD.
10987 * sparc64nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Likewise.
10988
10989 2004-01-22 Mark Kettenis <kettenis@gnu.org>
10990
10991 * sparcnbsd-tdep.c (sparcnbsd_core_osabi_sniffer): New function.
10992 (_initialize_sparnbsd_tdep): Register sparcnbsd_core_osabi_sniffer.
10993
10994 * ser-pipe.c (pipe_open): Use proper null pointer in execl call.
10995 * cli/cli-cmds.c (shell_escape): Likewise.
10996
10997 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Recognize
10998 OpenBSD .note.openbsd.ident sections.
10999
11000 2004-01-22 David Carlton <carlton@kealia.com>
11001
11002 * dwarf2read.c (psymtab_to_symtab_1): Calculate lowpc, highpc via
11003 get_scope_pc_bounds.
11004 (read_file_scope): Ditto.
11005 (get_scope_pc_bounds): New function, produced by extracting code
11006 from the above two functions, consolidating it, and adding support
11007 for DW_TAG_namespace.
11008
11009 2004-01-22 Mark Kettenis <kettenis@gnu.org>
11010
11011 * osabi.c (MAX_NOTESZ): New define.
11012 (check_note): New function.
11013 (generic_elf_osabi_sniff_abi_tag_sections): Reorganize code using
11014 check_note.
11015
11016 2004-01-21 Roland McGrath <roland@redhat.com>
11017
11018 * MAINTAINERS (write after approval): Add myself.
11019
11020 2004-01-21 Eli Zaretskii <eliz@gnu.org>
11021
11022 * utils.c (init_page_info): Move declarations of `rows' and
11023 `cols' before the __GO32__-specific code. Move the closing brace
11024 outside the #ifdef __GO32__..#endif block.
11025 [__GO32__]: Use `rows' and `cols' to avoid compiler warnings.
11026
11027 2004-01-21 Paul Brook <paul@codesourcery.com>
11028
11029 * infrun.c (handle_inferior_event): Check stop_stack_dummy if handling
11030 BPSTAT_WHAT_CHECK_SHLIBS.
11031
11032 2004-01-21 Paul Brook <paul@codesourcery.com>
11033
11034 * MAINTAINERS: Add myself to write-after-approval.
11035
11036 2004-01-20 Andrew Cagney <cagney@redhat.com>
11037
11038 * ax-gdb.c (print_axs_value): Delete unused function.
11039 * jv-lang.c (java_lookup_type): Delete unused function.
11040 * cli/cli-dump.c (dump_filetype): Delete unused function.
11041 * remote-mips.c (remote_mips_insert_hw_breakpoint)
11042 (remote_mips_remove_hw_breakpoint): Delete unused functions.
11043 (mips_getstring): Delete unused function.
11044 (pmon_insert_breakpoint): Delete #if0ed function.
11045 (PMON_MAX_BP): Delete #if0ed MACRO.
11046 (mips_pmon_bp_info): Delete #if0ed variable.
11047 (pmon_remove_breakpoint): Delete #if0ed function.
11048 * monitor.c (monitor_write_even_block): Delete unused function.
11049 (monitor_write_memory_block): Delete #if0ed code.
11050 * dink32-rom.c (dink32_load): Delete unused function.
11051 (_initialize_dink32_rom): Delete #if0ed code.
11052 * d10v-tdep.c (d10v_daddr_p): Delete unused function.
11053
11054 * tui/tui-command.c: Update references.
11055 * tui/tui-io.c: Update references.
11056 * tui/tui-command.h: Update copyright.
11057 (tui_dispatch_ctrl_char): Rename tuiDispatchCtrlChar.
11058
11059 * source.c (ambiguous_line_spec): Delete never-defined function.
11060 * remote-rdi.c (arm_rdi_mourn, arm_rdi_send): Ditto.
11061 * gdbtypes.c (add_name, add_mangled_type): Ditto.
11062 * cli/cli-cmds.c (validate_comname): Ditto.
11063
11064 * tui/tui-disasm.h: Update copyright. Include "tui.h" and
11065 "tui-data.h".
11066 (tui_set_disassem_content): Rename tuiSetDisassemContent.
11067 (tui_show_disassem): Rename tuiShowDisassem.
11068 (tui_show_disassem_and_update_source): Rename
11069 tuiVerticalDisassemScroll.
11070 (tui_vertical_disassem_scroll): Rename tuiVerticalDisassemScroll.
11071 (tui_get_begin_asm_address): Rename tuiGetBeginAsmAddress.
11072 * tui/tui.h: Update copyright.
11073 (enum tui_status): Define.
11074 * tui/tui-data.h (enum tui_scroll_direction): Define.
11075 * tui/tui-disasm.c: Update copyright. Update references.
11076 * tui/tui-winsource.c: Update copyright. Update references.
11077 * tui/tui-win.c: Update references.
11078 * tui/tui-layout.c: Update references.
11079
11080 2004-01-20 Andrew Cagney <cagney@redhat.com>
11081
11082 * mi/mi-cmd-stack.c (list_args_or_locals): Move declaration of
11083 sym2 to start of block.
11084
11085 2004-01-19 Michael Chastain <mec.gnu@mindspring.com>
11086
11087 * MAINTAINERS: Delete mmalloc.
11088 * Makefile.in: Delete MMALLOC, MMALLOC_CFLAGS, -lmmalloc, mmalloc_h.
11089 * NEWS: Mention removal of --with-malloc.
11090 * acconfig.h: Delete USE_MMALLOC, MMCHECK_FORCE.
11091 * config.in: Regenerate.
11092 * configure: Regenerate.
11093 * configure.in: Delete MMALLOC_CFLAGS, MMALLOC, --with-mmalloc,
11094 USE_MMALLOC, MMCHECK_FORCE.
11095 * gdbinit.in: Remove mmalloc.
11096 * utils.c: Delete USE_MMALLOC, NO_MMCHECK, MMCHECK_FORCE, malloc_botch.
11097 * config/alpha/alpha-linux.mh: Delete MMALLOC, MMALLOC_CFLAGS.
11098 * config/i386/go32.mh: Likewise.
11099 * config/i386/interix.mh: Likewise.
11100 * config/powerpc/xm-linux.h: Delete MMAP_BASE_ADDRESS, MMAP_INCREMENT.
11101
11102 2004-01-19 Jeff Johnston <jjohnstn@redhat.com>
11103
11104 * linespec.c (decode_variable, symtab_from_filename): Call
11105 error_silent with error message instead of throwing an exception
11106 directly.
11107 * defs.h (error_silent, error_output_message): Add prototypes.
11108 (catch_exceptions_with_msg): Ditto.
11109 * utils.c (error_silent, error_output_message): New functions.
11110 * top.c (catch_exceptions_with_msg): New function.
11111
11112 2004-01-20 Nick Roberts <nick@nick.uklinux.net>
11113
11114 * mi/mi-cmds.h (enum print_values): Add definition.
11115
11116 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Print the name,
11117 type and value for simple data types and just the name and type
11118 for complex ones, if required.
11119
11120 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Print the values of the
11121 children, if required.
11122
11123 2004-01-19 Kevin Buettner <kevinb@redhat.com>
11124
11125 * frv-tdep.c (frv_push_arguments, frv_saved_pc_after_call): Delete
11126 unused declarations.
11127
11128 2004-01-19 Andrew Cagney <cagney@redhat.com>
11129
11130 * top.h (mapped_symbol_files): Delete declaration.
11131 * main.c (captured_main): Delete option "m" and "mapped".
11132 * objfiles.c (mapped_symbol_files): Delete variable.
11133 * symfile.c (symbol_file_command): Delete mmap code.
11134 (symbol_file_add_with_addrs_or_offsets): Ditto.
11135 (add_symbol_file_command, reread_separate_symbols): Ditto.
11136 * objfiles.h (OBJF_MAPPED): Delete.
11137 * objfiles.c (allocate_objfile) [USE_MMALLOC]: Delete.
11138 (free_objfile) [USE_MMALLOC]: Ditto.
11139 (open_existing_mapped_file): Delete function.
11140 (open_mapped_file): Delete function.
11141 (map_to_file): Delete function.
11142
11143 2004-01-19 Kevin Buettner <kevinb@redhat.com>
11144
11145 * infrun.c (step_into_function): Account for possible breakpoint
11146 adjustment when computing ``stop_func_start''.
11147
11148 2004-01-19 Kevin Buettner <kevinb@redhat.com>
11149
11150 * target.c (default_region_size_ok_for_hw_watchpoint): Compare
11151 the region size against the size of a pointer, not the size of
11152 a register as given by DEPRECATED_REGISTER_SIZE.
11153
11154 2004-01-19 Andrew Cagney <cagney@redhat.com>
11155
11156 * tui/tui-regs.h: Include "tui-data.h".
11157 (tuiFirstRegElementNoInLine): Delete declaration.
11158 (tui_display_registers_from): Rename tuiDisplayRegistersFrom.
11159 (tui_last_regs_line_no): Rename tuiLastRegsLineNo.
11160 (tui_line_from_reg_element_no): Rename tuiLineFromRegElementNo.
11161 (tui_calculate_regs_column_count): Rename
11162 tuiCalculateRegsColumnCount.
11163 (tui_check_register_values): Rename tuiCheckRegisterValues.
11164 (tui_show_registers): Rename tuiShowRegisters.
11165 (tui_display_registers_from_line): Rename
11166 tuiDisplayRegistersFromLine.
11167 (tui_first_reg_element_inline): Rename tuiFirstRegElementInLine.
11168 (tui_toggle_float_regs): Rename tuiToggleFloatRegs.
11169 (tui_first_reg_element_no_inline): Rename
11170 tuiFirstRegElementNoInLine.
11171 * tui/tui-data.h: Update copyright.
11172 (enum tui_register_display_type): Rename _TuiRegisterDisplayType.
11173 * tui/tui-windata.c: Update copyright, update references.
11174 * tui/tui-regs.c: Update copyright, update references.
11175 * tui/tui-win.c: Update copyright, update references.
11176 * tui/tui-layout.c: Update copyright, update references.
11177
11178 2004-01-18 Andrew Cagney <cagney@redhat.com>
11179
11180 * tui/tui-io.c: Update copyright.
11181 (key_is_end_sequence, key_is_backspace): New functions.
11182 (key_is_command_char, key_is_start_sequence): New function.
11183 (tui_getc): Update references.
11184 * tui/tui-io.h: Update copyright.
11185 (m_tuiStartNewLine): Delete macro.
11186 (m_isBackspace, m_isDeleteChar): Delete macros.
11187 (m_isDeleteLine, m_isDeleteToEol): Delete macros.
11188 (m_isNextPage, m_isPrevPage): Delete macros.
11189 (m_isLeftArrow, m_isRightArrow): Delete macros.
11190 (m_isXdbStyleCommandChar): Delete macro.
11191 (key_is_start_sequence): Declare, replace m_isStartSequence.
11192 (key_is_end_sequence): Declare, replace m_isEndSequence.
11193 (key_is_backspace): Declare ,replace m_isBackspace.
11194 (key_is_command_char): Declare, replace m_isCommandChar.
11195 * tui/tui-command.c: Update copyright.
11196 (tuiDispatchCtrlChar): Update references.
11197
11198 * config/djgpp/fnchange.lst: Delete tui/tuiSourceWin.c and
11199 tuiSourceWin.h.
11200
11201 * tui/tui-command.c: Rename tui/tuiCommand.c.
11202 * tui/tui-command.h: Rename tui/tuiCommand.h.
11203 * tui/tui-data.c: Rename tui/tuiData.c.
11204 * tui/tui-data.h: Rename tui/tuiData.h.
11205 * tui/tui-disasm.c: Rename tui/tuiDisassem.c.
11206 * tui/tui-disasm.h: Rename tui/tuiDisassem.h.
11207 * tui/tui-io.c: Rename tui/tuiIO.c.
11208 * tui/tui-io.h: Rename tui/tuiIO.h.
11209 * tui/tui-layout.c: Rename tui/tuiLayout.c.
11210 * tui/tui-layout.h: Rename tui/tuiLayout.h.
11211 * tui/tui-regs.c: Rename tui/tuiRegs.c.
11212 * tui/tui-regs.h: Rename tui/tuiRegs.h.
11213 * tui/tui-source.c: Rename tui/tuiSource.c.
11214 * tui/tui-source.h: Rename tui/tuiSource.h.
11215 * tui/tui-stack.c: Rename tui/tuiStack.c.
11216 * tui/tui-stack.h: Rename tui/tuiStack.h.
11217 * tui/tui-win.c: Rename tui/tuiWin.c.
11218 * tui/tui-win.h: Rename tui/tuiWin.h.
11219 * tui/tui-windata.c: Rename tui/tuiDataWin.c.
11220 * tui/tui-windata.h: Rename tui/tuiDataWin.h.
11221 * tui/tui-wingeneral.c: Rename tui/tuiGeneralWin.c.
11222 * tui/tui-wingeneral.h: Rename tui/tuiGeneralWin.h.
11223 * tui/tui-winsource.c: Rename tui/tuiSourceWin.c.
11224 * tui/tui-winsource.h: Rename tui/tuiSourceWin.h.
11225 * tui/tui-file.c: Update includes.
11226 * tui/tui-hooks.c: Update includes.
11227 * tui/tui-interp.c: Update includes.
11228 * tui/tui.c: Update includes.
11229 * Makefile.in: Update all tui/ dependencies.
11230 (SUBDIR_TUI_OBS, SUBDIR_TUI_SRCS): Update file names.
11231
11232 * Makefile.in: Update copyright. Update dependencies.
11233
11234 * tui/tuiSourceWin.c (tui_update_breakpoint_info): Fix compile
11235 problem.
11236
11237 2004-01-18 Andrew Cagney <cagney@redhat.com>
11238
11239 * mn10300-tdep.c (_initialize_mn10300_tdep): Call gdbarch_register
11240 instead of register_gdbarch_init.
11241
11242 * remote-sds.c (tohex): Delete unused function. Update copyright.
11243 * xstormy16-tdep.c (xstormy16_register_virtual_size): Ditto.
11244 * v850-tdep.c (v850_register_virtual_size): Ditto.
11245 * target.c (normal_target_post_startup_inferior): Ditto.
11246 * source.c (ambiguous_line_spec): Ditto.
11247 * remote.c (adapt_remote_get_threadinfo): Ditto.
11248 * mi/mi-out.c (out_field_fmt): Ditto.
11249 * mi/mi-interp.c (mi_interp_read_one_line_hook): Ditto.
11250 (output_control_change_notification): Ditto.
11251 * m68k-tdep.c (m68k_register_byte): Ditto.
11252 (m68k_remote_breakpoint_from_pc): Ditto.
11253 * ui-out.c (init_ui_out_state): Delete unused declaration.
11254 * stabsread.c (search_value): Ditto.
11255 * mi/mi-cmd-env.c (env_cli_command): Ditto.
11256 * maint.c (print_section_table): Ditto.
11257 * infrun.c (set_follow_fork_mode_command): Ditto.
11258
11259 2004-01-18 Mark Kettenis <kettenis@gnu.org>
11260
11261 * dwarf2-frame.c (execute_cfa_program): Move DWA_CFA_nop before
11262 DW_CFA_def_cfa_exporession. Add support for
11263 DW_CFA_offset_extendend_sf, DW_CFA_def_cfa_sf and
11264 DW_CFA_def_cfa_offset_sf. This should fix PR backtrace/1391.
11265
11266 2004-01-18 Andrew Cagney <cagney@redhat.com>
11267
11268 * ocd.c: Update copyright.
11269 (bdm_read_register_command): Delete unused function.
11270 (_initialize_remote_ocd): Delete commented out reference.
11271 (get_quoted_char, reset_packet): Delete #if0ed function.
11272 (output_packet, put_quoted_char): Delete #if0ed function.
11273 (stu_put_packet, stu_get_packet): Delete #if0ed function.
11274 (ocd_start_remote): Delete #if0ed code, remove #if1 wrapper.
11275 (BDM_BREAKPOINT): Delete #if0ed macro.
11276 (remote_timeout): Delete #if0ed variable.
11277
11278 2004-01-18 Mark Kettenis <kettenis@gnu.org>
11279
11280 * Makefile.in (ALLDEPFILES): Remove core-sol2.c.
11281 (core-sol2.o): Remove dependency.
11282 * core-sol2.c: Remove file.
11283
11284 2004-01-17 Andrew Cagney <cagney@redhat.com>
11285
11286 * mdebugread.c (compare_blocks): Make addr_diff a LONGEST.
11287 * block.h: Make GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOOCK
11288 enums.
11289
11290 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
11291
11292 * remote.c: Update copyright years.
11293
11294 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
11295
11296 * remote.c (remote_vcont_resume): Use xstrprintf instead of sprintf.
11297
11298 2004-01-17 Andrew Cagney <cagney@redhat.com>
11299
11300 * mdebugread.c: Update copyright.
11301 (parse_symbol): Replace DEPRECATED_STREQ with strcmp.
11302 (parse_type, parse_procedure): Ditto.
11303 (parse_partial_symbols, psymtab_to_symtab_1): Ditto.
11304
11305 * cris-tdep.c (cris_store_struct_return): Put back accidently
11306 deleted function.
11307
11308 * gdbarch.sh: Update copyright year.
11309 * gdbarch.h, gdbarch.c: Re-generate.
11310
11311 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
11312
11313 Suggested by George Anzinger.
11314 * dwarf2expr.c (execute_stack_op): Fetch the second item from the
11315 correct stack offset. Include unknown opcode numbers in the error
11316 message.
11317
11318 2004-01-17 Andrew Cagney <cagney@redhat.com>
11319
11320 * x86-64-tdep.c (x86_64_init_abi): No need to clear
11321 extract_struct_value_address, i386 does not set it.
11322 * sparc64-tdep.c (sparc64_init_abi): Do not set
11323 extract_struct_value_address, never called.
11324 (sparc64_extract_struct_value_address): Delete function.
11325 * m68hc11-tdep.c: Update copyright.
11326 (m68hc11_gdbarch_init): Delete redundant assignment of
11327 extract_struct_value_address.
11328 * i386-tdep.c: Update copyright.
11329 (i386_gdbarch_init): Do not set extract_struct_value_address,
11330 never called.
11331 (i386_extract_struct_value_address): Delete function.
11332 * sparc-tdep.c (sparc32_gdbarch_init): Do not set
11333 extract_struct_value_address, never called.
11334 (sparc32_extract_struct_value_address): #if 0 function. Add
11335 comments explaining its future.
11336
11337 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
11338
11339 * arm-tdep.c (arm_write_pc): New function.
11340 (arm_gdbarch_init): Call set_gdbarch_write_pc.
11341
11342 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
11343
11344 * breakpoint.c (must_shift_inst_regs): Delete.
11345 (bpstat_stop_status): Delete references to DECR_PC_AFTER_HW_BREAK
11346 and SHIFT_INST_REGS.
11347 * infcmd.c (step_1, step_1_continuation): Delete references to
11348 SHIFT_INST_REGS.
11349 * infrun.c (keep_going): Likewise.
11350 * target.h (DECR_PC_AFTER_HW_BREAK): Don't define.
11351 * config/i386/nm-i386.h (DECR_PC_AFTER_HW_BREAK): Likewise.
11352
11353 2004-01-17 Andrew Cagney <cagney@redhat.com>
11354
11355 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
11356 * gdbarch.h, gdbarch.c: Re-generate.
11357 * infcmd.c (print_return_value): Delete reference to
11358 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
11359
11360 * cris-tdep.c (cris_gdbarch_init): Do not set
11361 deprecated_extract_struct_value_address.
11362
11363 * xstormy16-tdep.c: Update copyright.
11364 (xstormy16_extract_struct_value_address): Update to current
11365 extract struct value address interface.
11366 (xstormy16_gdbarch_init): Set extract_struct_value_address.
11367 * sh64-tdep.c (sh64_extract_struct_value_address): Update to
11368 current extract struct value address interface.
11369 (sh64_gdbarch_init): Set extract_struct_value_address.
11370
11371 * cris-tdep.c: Update copyright.
11372 (cris_extract_struct_value_address): Delete function.
11373 (struct_return_address): Delete variable.
11374 (cris_store_struct_return): Do not set struct_return_address.
11375
11376 * mcore-tdep.c: Update copyright.
11377 (mcore_extract_struct_value_address): Delete function. Update
11378 comments.
11379 (mcore_gdbarch_init): Update.
11380 * mn10300-tdep.c: Update copyright.
11381 (mn10300_extract_struct_value_address): Delete function.
11382 (mn10300_gdbarch_init): Update.
11383 * v850-tdep.c: Update copyright.
11384 (v850_extract_struct_value_address): Delete.
11385 (v850_gdbarch_init): Update.
11386 * ns32k-tdep.c: Update copyright.
11387 (ns32k_extract_struct_value_address): Delete.
11388 (ns32k_gdbarch_init): Update.
11389 * hppa-tdep.c (hppa_extract_struct_value_address): Delete.
11390 (hppa_gdbarch_init): Update.
11391 * vax-tdep.c: Update copyright.
11392 (vax_extract_struct_value_address): Delete.
11393 (vax_gdbarch_init): Update.
11394
11395 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Delete.
11396 * gdbarch.h, gdbarch.c: Re-generate.
11397 * procfs.c (procfs_fetch_registers): Delete reference to
11398 DEPRECATED_NPC_REGNUM.
11399 (procfs_store_registers): Ditto.
11400 * regcache.c (generic_target_write_pc): Simplify.
11401 * lynx-nat.c: Delete #ifdef SPARC code. Not used.
11402
11403 * core-sol2.c (fetch_core_registers): Replace
11404 DEPRECATED_NPC_REGNUM with equivalent tdep value.
11405
11406 * hppa-tdep.c: Update copyright year.
11407 (hppa_target_write_pc): Use PCOQ_TAIL_REGNUM instead of
11408 NPC_REGNUM.
11409 (hppa_gdbarch_init): Do not set deprecated_npc_regnum.
11410
11411 * mips-tdep.c (mips_write_pc): New function.
11412 (mips_gdbarch_init): Set "write_pc" to "mips_write_pc".
11413 (mips_read_pc): Use mips_regnum instead of PC_REGNUM.
11414 (mips_find_saved_regs, mips_software_single_step: Ditto.
11415 (mips_frame_saved_pc, mips_frame_saved_pc): Ditto.
11416 mips_init_extra_frame_info, mips_pop_frame): Ditto.
11417
11418 2004-01-17 Andrew Cagney <cagney@redhat.com>
11419
11420 * mips-tdep.c: Re-indent. Group functions by ABI.
11421
11422 2004-01-17 Andrew Cagney <cagney@redhat.com>
11423
11424 * gdbarch.sh (DECR_PC_AFTER_BREAK): Make zero the default.
11425 * gdbarch.c: Re-generate.
11426 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
11427 DECR_PC_AFTER_BREAK to zero.
11428 * vax-tdep.c (vax_gdbarch_init): Ditto.
11429 * v850-tdep.c (v850_gdbarch_init): Ditto.
11430 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
11431 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
11432 * sh-tdep.c (sh_gdbarch_init): Ditto.
11433 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
11434 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
11435 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11436 * mips-tdep.c (mips_gdbarch_init): Ditto.
11437 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11438 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11439 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
11440 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11441 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
11442 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
11443 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11444 * frv-tdep.c (frv_gdbarch_init): Ditto.
11445 * cris-tdep.c (cris_gdbarch_init): Ditto.
11446 * avr-tdep.c (avr_gdbarch_init): Ditto.
11447 * arm-tdep.c (arm_gdbarch_init): Ditto.
11448 * i386-nto-tdep.c (i386nto_init_abi): Add comment.
11449
11450 2004-01-17 J. Brobecker <brobecker@gnat.com>
11451
11452 * dwarf2read.c (dwarf2_non_const_array_bound_ignored_complaint):
11453 Delete, no longer used.
11454 (read_subrange_type): New function, mostly extracted from
11455 read_array_type().
11456 (read_array_type): Replace extracted code by call to
11457 read_subrange_type().
11458 (dwarf2_get_attr_constant_value): New function.
11459 (scan_partial_symbols): Add handling for DW_TAG_subrange_type.
11460 (add_partial_symbol): Likewise.
11461 (process_die): Likewise.
11462 (new_symbol): Likewise.
11463 (read_type_die): Likewise.
11464
11465 2004-01-16 Andrew Cagney <cagney@redhat.com>
11466
11467 * symfile.c: Update copyright year.
11468 (compare_symbols): Delete unused function.
11469 * stabsread.c: Update copyright year.
11470 (lrs_general_complaint): Delete unused function.
11471 (ref_search_value): Ditto.
11472 (get_substring): Delete declaration.
11473 * sh64-tdep.c: Update copyright year.
11474 (sh64_get_gdb_regnum): Delete unused function.
11475 * dwarf2read.c (dwarf2_unsupported_at_frame_base_complaint):
11476 Delete unused function.
11477
11478 2004-01-17 Mark Kettenis <kettenis@gnu.org>
11479
11480 * defs.h (gdb_osabi): Add GDB_OSABI_OPENBSD_ELF.
11481 * osabi.c (gdb_osabi_names): Add "OpenBSD ELF".
11482
11483 2004-01-16 Andrew Cagney <cagney@redhat.com>
11484
11485 Changes from Peter Schauer.
11486 * rs6000-tdep.c: Update copyright year.
11487 (rs6000_push_dummy_call): Update the stack pointer before
11488 accessing the corresponding stack region.
11489 * rs6000-nat.c: Update copyright year.
11490 (set_host_arch): Set "info.abfd" to "exec_bfd".
11491
11492 2004-01-15 Mark Kettenis <kettenis@gnu.org>
11493
11494 * blockframe.c: Update copyright year.
11495 (inside_entry_func): Don't treat a zero PC specially.
11496
11497 2004-01-14 Elena Zannoni <ezannoni@redhat.com>
11498
11499 * gcore.c (gcore_copy_callback): Use paddr_d to print size
11500 variable.
11501 (gcore_create_callback): Ditto. Skip any memory segment that has
11502 no permissions set.
11503
11504 2004-01-14 David Carlton <carlton@kealia.com>
11505
11506 Change symbols for C++ nested types to contain the fully qualified
11507 name, if possible. (At least in the DWARF-2 case.) Partial fix
11508 for PR's c++/57, c++/488, c++/539, c++/573, c++/609, c++/832,
11509 c++/895.
11510 * c-exp.y (qualified_type): Handle types nested within classes.
11511 * cp-namespace.c: Update comments.
11512 (cp_set_block_scope): Delete #if 0.
11513 (cp_lookup_nested_type): Handle types nested within classes.
11514 * dwarf2read.c: (scan_partial_symbols): Call add_partial_structure
11515 when appropriate.
11516 (add_partial_symbol): Add the name of the enclosing namespace to
11517 types.
11518 (pdi_needs_namespace): New.
11519 (add_partial_namespace): Tweak comment.
11520 (add_partial_structure): New.
11521 (psymtab_to_symtab_1): Initialize processing_current_prefix
11522 here...
11523 (process_die): instead of here.
11524 (read_structure_scope): Try to figure out the name of the class or
11525 namespace that the structure might be defined within.
11526 (read_enumeration): Generate fully-qualified names, if possible.
11527 (read_namespace): Don't set name to NULL.
11528 (die_specification): New.
11529 (new_symbol): Generate fully-qualified names for types.
11530 (read_type_die): Determine appropriate prefix.
11531 (determine_prefix): New.
11532 (typename_concat): New.
11533 (class_name): New.
11534 * valops.c (value_aggregate_elt): Pass NOSIDE to
11535 value_struct_elt_for_reference.
11536 (value_struct_elt_for_reference): Make static, add NOSIDE
11537 parameter, call value_maybe_namespace_elt as a last resort.
11538 (value_namespace_elt): Break out code into
11539 value_maybe_namespace_elt.
11540 (value_maybe_namespace_elt): New.
11541
11542 2004-01-12 Andrew Cagney <cagney@redhat.com>
11543
11544 * mips-tdep.c (mips_convert_register_p): Handle both raw and
11545 cooked floating-point registers.
11546 (mips_gdbarch_init): Set convert_register_p, register_to_value,
11547 and value_to_register.
11548
11549 2004-01-13 Andrew Cagney <cagney@redhat.com>
11550
11551 * gdbarch.sh (FUNCTION_START_OFFSET): Make zero the default.
11552 * gdbarch.c: Re-generate.
11553 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
11554 FUNCTION_START_OFFSET.
11555 * v850-tdep.c (v850_gdbarch_init): Ditto.
11556 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
11557 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
11558 * sh-tdep.c (sh_gdbarch_init): Ditto.
11559 * s390-tdep.c (s390_gdbarch_init): Ditto.
11560 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
11561 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
11562 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11563 * mips-tdep.c (mips_gdbarch_init): Ditto.
11564 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11565 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
11566 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11567 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
11568 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11569 * i386-tdep.c (i386_gdbarch_init): Ditto.
11570 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
11571 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11572 * frv-tdep.c (frv_gdbarch_init): Ditto.
11573 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11574 * cris-tdep.c (cris_gdbarch_init): Ditto.
11575 * avr-tdep.c (avr_gdbarch_init): Ditto.
11576 * arm-tdep.c (arm_gdbarch_init): Ditto.
11577 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
11578
11579 2004-01-13 Daniel Jacobowitz <drow@mvista.com>
11580
11581 * infrun.c (follow_fork_mode_ask): Remove.
11582 (follow_fork_mode_kind_names): Remove follow_fork_mode_ask.
11583 (follow_fork): Simplify and remove internal error for
11584 follow_fork_mode_ask.
11585 (_initialize_infrun): Update "set follow-fork-mode" help text.
11586
11587 2004-01-13 Andrew Cagney <cagney@redhat.com>
11588
11589 * configure.in: Update copyright year.
11590 (build_warnings): Add -Wunused-label.
11591 * configure: Re-generate.
11592
11593 2004-01-12 Andrew Cagney <cagney@redhat.com>
11594
11595 * exec.h (exec_ops): Make "extern".
11596
11597 * mips-tdep.c (mips_pseudo_register_read): Don't return a value,
11598 the function is void.
11599 (mips_pseudo_register_write): Ditto.
11600
11601 2004-01-12 Andrew Cagney <cagney@redhat.com>
11602
11603 * stack.c (frame_info): Delete DEPRECATED_PRINT_EXTRA_FRAME_INFO
11604 call. Never defined.
11605 * sparc-tdep.h (struct frame_info): Add opaque declaration.
11606 * sparc64-tdep.h (struct gdbarch): Add opaque declaration.
11607 (struct sparc_gregset, struct regcache): Ditto.
11608 * sparc-nat.c: Update copyright. Specify "GNU/Linux".
11609
11610 2004-01-12 Andrew Cagney <cagney@redhat.com>
11611
11612 * mi/ChangeLog: Delete file. Renamed to ...
11613 * mi/ChangeLog-1999-2003: New file.
11614 * tui/ChangeLog: Delete file. Renamed to ...
11615 * tui/ChangeLog-1998-2003: New file.
11616
11617 2004-01-11 Mark Kettenis <kettenis@gnu.org>
11618
11619 * sparc64nbsd-tdep.c: Include "regset.h".
11620 (sparc64nbsd_sizeof_struct_reg, sparc64nbsd_sizeof_struct_fpreg):
11621 Remove variables.
11622 (fetch_core_registers): Remove function.
11623 (sparc64nbsd_core_fns): Remove variable.
11624 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): New
11625 functions.
11626 (sparc64nbsd_init_abi): Initialize TDEP->gregset,
11627 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
11628 (_initialize_sparc64nbsd_tdep): Remove call to add_core_fns.
11629
11630 * sparc-tdep.c (sparc32_extract_struct_value_address): Rename from
11631 sparc_extract_struct_value_address.
11632 (sparc32_gdbarch_init): Set extract_struct_value_address.
11633 * sparc64-tdep.c (sparc64_extract_struct_value_address): New
11634 function.
11635 (sparc64_init_abi): Set extract_struct_value_address. Don't set
11636 return_value_on_stack.
11637
11638 * NEWS: Mention that %cs and %ss have been added to the AMD64
11639 configurations
11640
11641 * frame.c: Update copyright year.
11642 (get_prev_frame): Improve comment.
11643
11644 * sparc64fbsd-tdep.c: Include "regset.h".
11645 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
11646 Remove variables.
11647 (fetch_core_registers): Remove function.
11648 (sparc64fbsd_core_fns): Remove variable.
11649 (sparc64fbsd_supply_gregset, sparc64fbsd_supply_fpregset): New
11650 functions.
11651 (sparc64fbsd_init_abi): Initialize TDEP->gregset,
11652 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
11653 (_initialize_sparc64fbsd_tdep): Remove call to add_core_fns.
11654
11655 * sparcnbsd-tdep.c: Include "regset.h".
11656 (fetch_core_registers): Remove function.
11657 (sparcnbsd_core_fns, sparcnbsd_elfcore_fns): Remove varaibles.
11658 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): New
11659 functions.
11660 (sparc32nbsd_init_abi): Initialize TDEP->gregset and
11661 TDEP->fpregset.
11662 (_initialize_sparcnbsd_tdep): Remove calls to add_core_fns.
11663
11664 * sparc-tdep.h (struct regset): Provide opaque declaration.
11665 (struct gdbarch_tdep): Add gregset, sizeof_gregset,
11666 fpregset and sizeof_fpregset members.
11667 * sparc-tdep.c (struct regset): Provide opaque declaration.
11668 (sparc_regset_from_core_section): New function.
11669 (sparc32_gdbarch_init): Initialize TDEP->gregset,
11670 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_fpregset.
11671 Set regset_from_core_section when appropriate.
11672
11673 2004-01-10 Mark Kettenis <kettenis@gnu.org>
11674
11675 * x86-64-tdep.c (amd64_non_pod_p): New function.
11676 (amd64_classify_aggregate): Return class memory for non-POD
11677 C++ structure types.
11678
11679 * x86-64-tdep.c (amd64_push_arguments): Add struct_return
11680 argument. Use it to reserve a register if necessary.
11681 (amd64_push_dummy_call): Pass STRUCT_RETURN in call to
11682 amd64_push_arguments.
11683
11684 * x86-64-tdep.c (amd64_classify_aggregate): Ignore static fields.
11685
11686 * x86-64-tdep.c (amd64_register_info): Add %cs and %ss. Adjust
11687 register numbers in comments.
11688 * x86-64-tdep.h: Update copyright year.
11689 (X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM):
11690 Adjust for addition of %cs and %ss.
11691 * amd64fbsd-nat.c: Update copyright year.
11692 (reg_offset): Add register offsets for %cs and %ss.
11693 * amd64fbsd-tdep.c: Update copyright year.
11694 (amd64fbsd_r_reg_offset): Add register offsets for %cs and %ss.
11695 (amd64fbsd_sc_reg_offset): Likewise.
11696 * x86-64-linux-nat.c: Update copyright year.
11697 (x86_64_linux_gregset64_reg_offset): Add register offsets for %cs
11698 and %ss.
11699 * amd64nbsd-nat.c: Update copyright year.
11700 (amd64nbsd32_r_reg_offset): Add register offsets for %cs and %ss.
11701 * amd64nbsd-tdep.c: Update copyright year.
11702 (amd64nbsd_r_reg_offset): Add register offsets for %cs and %ss.
11703 * x86-64-linux-tdep.c: Update copyright year.
11704 (user_to_gdb_regmap): Add mapping for %cs and %ss.
11705 (x86_64_linux_sc_reg_offset): Adjust for addition of %cs and %ss.
11706 * regformats/reg-x86-64.dat: Add %cs and %ss.
11707
11708 * blockframe.c (inside_entry_func): Reformat. Introduce new local
11709 variables to prevent long lines. Update comments to reflect
11710 reality.
11711
11712 2004-01-09 David Carlton <carlton@kealia.com>
11713
11714 Checked in by Elena Zannoni <ezannoni@redhat.com>.
11715 * dwarf2read.c (read_namespace): Pull out name-generating code
11716 into namespace_name. Rename previous_namespace to previous_prefix
11717 and processing_current_namespace to processing_current_prefix..
11718 (namespace_name): New function.
11719 (add_partial_symbol): Substitute uses of pdi->name with
11720 actual_name.
11721 * cp-support.h: Rename processing_current_namespace to
11722 processing_current_prefix.
11723 Update copyright year.
11724 * cp-namespace.c: Rename processing_current_namespace to
11725 processing_current_prefix.
11726 Update copyright year.
11727
11728 2004-01-09 Andrew Cagney <cagney@redhat.com>
11729
11730 * jv-valprint.c, ser-unix.c: Add missing copyright years.
11731
11732 2004-01-09 Mark Kettenis <kettenis@gnu.org>
11733
11734 * dbxread.c (read_dbx_symtab): Ignore N_PATCH stabs instead of
11735 complaining.
11736 (process_one_symbol): Deal with N_PATCH stabs.
11737
11738 2004-01-09 Elena Zannoni <ezannoni@redhat.com>
11739
11740 * dwarf2read.c (read_array_type): Discard FORTRAN_HACK macro and
11741 ifdeffed code.
11742 Update copyright year.
11743
11744 2004-01-08 Michael Chastain <mec.gnu@mindspring.com>
11745
11746 * config/pa/tm-hppa.h: Update extern declarations for
11747 hppa32_hpux_frame_saved_pc_in_sigtramp,
11748 hppa32_hpux_frame_base_before_sigtramp, and
11749 hppa32_hpux_frame_find_saved_regs_in_sigtramp.
11750
11751 2004-01-08 Michael Chastain <mec.gnu@mindspring.com>
11752
11753 * config/pa/tm-hppah.h: Update copyright years.
11754
11755 2004-01-08 Andrew Cagney <cagney@redhat.com>
11756
11757 * mips-tdep.c (mips_n32n64_reg_struct_has_addr): Delete function.
11758 (mips_o32_reg_struct_has_addr): Delete function.
11759 (mips_gdbarch_init): Update.
11760 (mips_extract_struct_value_address): Delete function.
11761
11762 2004-01-08 David Mosberger <davidm@hpl.hp.com>
11763
11764 * ia64-linux-tdep.c: Update GATE_AREA_END value to reflect
11765 reality.
11766
11767 2004-01-07 Andrew Cagney <cagney@redhat.com>
11768
11769 * mips-tdep.c (mips_gdbarch_init): Set elf_flags to the previous
11770 architecture's elf flags (when available).
11771
11772 * mips-tdep.c (mips_gdbarch_init): Move code determining the MIPS
11773 FPU to the start, check the MIPS FPU when looking for an old
11774 architecture.
11775 (set_mipsfpu_single_command): Update the architecture.
11776 (set_mipsfpu_double_command, set_mipsfpu_none_command): Ditto.
11777
11778 * mips-tdep.c (MIPS_DEFAULT_MASK_ADDRESS_P): Delete macro.
11779 (mips_mask_address_p): Add "tdep" parameter.
11780 (show_mask_address, mips_addr_bits_remove): Update.
11781 (mips_dump_tdep): Update.
11782 (MIPS_DEFAULT_STACK_ARGSIZE): Delete macro.
11783 (MIPS_STACK_ARGSIZE): Delete macro.
11784 (mips_stack_argsize, mips_eabi_push_dummy_call): Update.
11785 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call): Update.
11786 (mips_o64_push_dummy_call, mips_o32_return_value): Update.
11787 (mips_dump_tdep): Update.
11788 (MIPS_SAVED_REGSIZE): Delete macro.
11789 (MIPS_DEFAULT_SAVED_REGSIZE): Delete macro.
11790 (mips_saved_regsize, mips_eabi_use_struct_convention): Update.
11791 (mips_eabi_reg_struct_has_addr, mips_find_saved_regs): Update.
11792 (mips_frame_saved_pc, mips16_heuristic_proc_desc): Update.
11793 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call): Update.
11794 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update.
11795 (mips_pop_frame, return_value_location): Update.
11796 (mips_n32n64_return_value, mips_dump_tdep): Update.
11797
11798 * mips-tdep.c (mips_gdbarch_init): Clean up code selecting the
11799 MIPS ABI.
11800
11801 * mips-tdep.c: Update copyright.
11802 (mips_gdbarch_init): Merge two code blocks handling the register
11803 name and number layout.
11804
11805 2004-01-02 Pawel Ostrowski <pasza@zodiac.mimuw.edu.pl>
11806
11807 * tracepoint.c (validate_actionline): Fix segv at EOF
11808
11809 2004-01-07 Michael Chastain <mec.gnu@mindspring.com>
11810
11811 * hpread.c (hpread_read_struct_type): Call SET_FIELD_PHYSNAME
11812 properly for static fields.
11813
11814 2004-01-06 Jeff Johnston <jjohnstn@redhat.com>
11815 Jason Molenda <jmolenda@apple.com>
11816
11817 * disasm.c: Update copyright to include 2004.
11818 (do_mixed_source_and_assembly): For uiout asm list
11819 and tuple cleanups, initialize to null_cleanup instead of
11820 NULL and do so prior to loop. Only reset when we close off
11821 the tuple/list. Move check for whether to close off the
11822 asm tuple/list to after dump_insns call where it will be run
11823 on each loop iteration.
11824
11825 2004-01-05 Andrew Cagney <cagney@redhat.com>
11826
11827 * ser-unix.c (ser_unix_async): Fix tipo, "NOTHING_SECHEDULED"
11828 should be a switch case and not a label.
11829 * mips-tdep.c (mips32_next_pc): Delete unused labels
11830 "greater_equal_branch" and "less_zero_branch".
11831 * jv-valprint.c (java_print_value_fields): Delete unused label
11832 "flush_it".
11833
11834 * target.c (unpush_target): Only close a target that is in the
11835 target stack.
11836
11837 2004-01-05 Mark Kettenis <kettenis@gnu.org>
11838
11839 * sparc-tdep.c (sparc_extract_struct_value_address): Get the
11840 address from [sp + 64] instead of %o2.
11841
11842 * frame.c (get_prev_frame): Don't try to unwind the PC. This
11843 fixes PR backtrace/1476.
11844
11845 2004-01-05 Andrew Cagney <cagney@redhat.com>
11846
11847 * libunwind-frame.h (struct frame_id): Add opaque declaration,
11848 move to start of file.
11849 * i386-tdep.h (struct regcache): Add opaque declaration.
11850 * config/ia64/nm-linux.h (struct target_ops): Add opaque
11851 declaration.
11852 * ia64-tdep.c (ia64_find_proc_info_x): Do not use __FUNCTION__.
11853 (ia64_gdbarch_init): Use "GNU/Linux" in comment.
11854 * win32-nat.c (fake_create_process): Use ISO C style definition.
11855 * stabsread.c (define_symbol): Delete #ifndef
11856 DEPRECATED_USE_REGISTER_NOT_ARG wrapper around
11857 stabs_argument_has_addr call, macro never defined.
11858
11859 2004-01-04 Michael Chastain <mec.gnu@mindspring.com>
11860
11861 * op50-rom.c: Delete.
11862 * w89k-rom.c: Delete.
11863 * Makefile.in: Remove references.
11864
11865 2004-01-04 Mark Kettenis <kettenis@gnu.org>
11866
11867 * x86-64-tdep.c: Update copyright year.
11868 (struct amd64_register_info): Rename from x86_64_register_info.
11869 (amd64_register_info): Rename from x86_64_register_info.
11870 (AMD64_NUM_REGS): Rename from X86_64_NUM_REGS.
11871 (amd64_register_name): Rename from x86_64_register_name.
11872 (amd64_register_type): Rename from x86_64_register_type.
11873 (amd64_dwarf_regmap): Rename from x86_64_dwarf_regmap.
11874 (amd64_dwarf_regmap_len): Rename from x86_64_dwarf_regmap_len.
11875 (amd64_dwarf_reg_to_regnum): Rename from
11876 x86_64_dwarf_reg_to_regnum.
11877 (amd64_convert_register_p): Rename from x86_64_convert_register_p.
11878 (amd64_push_dummy_call): Rename from x86_64_push_dummy_call.
11879 (AMD64_NUM_SAVED_REGS): Rename from X86_64_NUM_SAVED_REGS.
11880 (struct amd64_frame_cache): Renamed from x86_64_frame_cache.
11881 (amd64_alloc_frame_cache): Renamed from x86_64_alloc_frame_cache.
11882 (amd64_analyze_prologue): Rename from x86_64_analyze_prologue.
11883 (amd64_skip_prologue): Rename from x86_64_skip_prologue.
11884 (amd64_frame_cache): Rename from x86_64_frame_cache.
11885 (amd64_frame_this_id): Rename from x86_64_frame_this_id.
11886 (amd64_frame_prev_register): Rename from
11887 x86_64_frame_prev_register.
11888 (amd64_frame_unwind): Rename from x86_64_frame_unwind.
11889 (amd64_frame_sniffer): Rename from x86_64_frame_sniffer.
11890 (amd64_sigtramp_frame_cache): Rename from
11891 x86_64_sigtramp_frame_cache.
11892 (amd64_sigtramp_frame_prev_register): Rename from
11893 x86_64_sigtramp_frame_prev_register.
11894 (amd64_sigtramp_frame_unwind): Rename from
11895 x86_64_sigtramp_frame_unwind.
11896 (amd64_sigtramp_frame_sniffer): Rename from
11897 x86_64_sigtramp_frame_sniffer.
11898 (amd64_frame_base_address): Rename from x86_64_frame_base_address.
11899 (amd64_frame_base): Rename from x86_64_frame_base.
11900 (amd64_unwind_dummy_id): Rename from x86_64_unwind_dummy_id.
11901 (amd64_frame_align): Rename from x86_64_frame_align.
11902 (amd64_supply_fpregset): Rename from x86_64_supply_fpregset.
11903 (amd64_regset_from_core_section): Rename from
11904 x86_64_regset_from_core_section.
11905 (x86_64_init_abi): Update comments.
11906
11907 2004-01-04 Nick Roberts <nick@nick.uklinux.net>
11908
11909 * MAINTAINERS (write after approval): Add myself.
11910
11911 2004-01-04 Mark Kettenis <kettenis@gnu.org>
11912
11913 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
11914 `float' arguments.
11915
11916 2004-01-04 Mark Kettenis <kettenis@gnu.org>
11917
11918 * sparc64-tdep.c (sparc64_store_floating_fields): Update comment
11919 such that it mentions a specific version of GCC that exhibits this
11920 bug.
11921
11922 2004-01-03 Mark Kettenis <kettenis@gnu.org>
11923
11924 * sparc64-tdep.c (sparc64_store_floating_fields): If TYPE is a
11925 structure that has a single `float' member, store it in %f1 in
11926 addition to %f0.
11927
11928 * sparc-sol2-nat.c: Add missing '\'.
11929
11930 * sparc-tdep.c (sparc32_return_value): New function.
11931 (sparc32_use_struct_convention, sparc32_return_value_on_stack):
11932 Remove functions.
11933 (sparc32_gdbarch_init): Set return_value, don't set
11934 extract_return_value, store_return_value, use_struct_convention
11935 and return_value_on_stack.
11936
11937 * sparc-sol2-nat.c: Add missing ')'.
11938
11939 2004-01-03 J. Brobecker <brobecker@gnat.com>
11940
11941 * infrun.c (handle_step_into_function): New function.
11942 (handle_inferior_event): Extract out some code into the new
11943 function above.
11944
11945 2004-01-03 J. Brobecker <brobecker@gnat.com>
11946
11947 * infrun.c (handle_inferior_event): Move the declaration of
11948 real_stop_pc inside the if blocks where it is used.
11949
11950 2004-01-03 Mark Kettenis <kettenis@gnu.org>
11951
11952 * sparc64-tdep.c (sparc64_16_byte_align_p)
11953 (sparc64_store_floating_fields, sparc64_store_floating_fields):
11954 Use check_typedef to get subtypes of structures and unions.
11955 (sparc64_store_return_value): Fix calculation of the appropriate
11956 offset into VALBUF when storing a structure or union.
11957 (sparc64_return_value): New function.
11958 (sparc64_use_struct_convention): Remove function.
11959 (sparc64_init_abi): Set return_value, don't set
11960 extract_return_value, store_return_value and
11961 use_struct_convention.
11962
11963 2004-01-03 Eli Zaretskii <eliz@elta.co.il>
11964
11965 * config/djgpp/fnchange.lst: Add lines for COPYING.LIBGLOSS,
11966 bfd/doc/ChangeLog-9103, bfd/elf32-m68hc1x.c,
11967 gdb/config/alpha/xm-alphaosf.h,
11968 gdb/config/powerpc/tm-ppcle-eabi.h,
11969 gdb/config/rs6000/tm-rs6000-aix4.h, gdb/gdbtk/ChangeLog-2001,
11970 gdb/gdbtk/ChangeLog-2002, gdb/gdbtk/ChangeLog-2003,
11971 gdb/gdbtk/plugins/intel-pentium/intel-pentium.tcl.in,
11972 gdb/gdbtk/plugins/rhabout/rhabout.tcl.in, gdb/i386-linux-nat.c,
11973 gdb/ia64-aix-nat.c, gdb/ia64-aix-tdep.c, gdb/ia64-linux-nat.c,
11974 gdb/ia64-linux-nat.c, gdb/ppc-linux-tdep.c, gdb/ppc-linux-nat.c,
11975 gdb/sparc64nbsd-nat.c, gdb/sparc64nbsd-tdep.c,
11976 gdb/sparc64-linux-nat.c, gdb/sparc64-linux-tdep.c,
11977 gdb/sparc64-nat.c, gdb/sparc64-tdep.c, gdb/sparc64-sol2-tdep.c,
11978 gdb/sparc-sol2-nat.c, gdb/sparc-sol2-tdep.c,
11979 gdb/testsuite/gdb.gdbtk/, gdb/testsuite/gdb.mi/mi-var-child.exp,
11980 nclude/ChangeLog-9103, include/coff/ChangeLog-9103,
11981 include/elf/ChangeLog-9103, include/opcode/ChangeLog-9103,
11982 opcodes/ChangeLog-0001, opcodes/ChangeLog-0203,
11983 opcodes/openrisc-dis.c, opcodes/openrisc-desc.h,
11984 sim/frv/profile-fr550.c, sim/frv/profile-fr550.h,
11985 sim/sh64/sem-compact-switch.c, sim/sh64/sem-media-switch.c,
11986 sim/testsuite/sim/sh64/compact/ldsl-mach.cgs,
11987 sim/testsuite/sim/sh64/compact/ldsl-macl.cgs,
11988 sim/testsuite/sim/sh64/compact/stsl-mach.cgs, and
11989 sim/testsuite/sim/sh64/compact/stsl-macl.cgs.
11990 Remove lines for .cvsignore files.
11991
11992 2004-01-03 J. Brobecker <brobecker@gnat.com>
11993
11994 * infrun.c: Back out the previous change.
11995
11996 2004-01-03 Mark Kettenis <kettenis@gnu.org>
11997
11998 * NEWS: Mention revised SPARC target. Add sparc-*-lynxos* and
11999 sparc-*-sunos4* to the list of REMOVED configurations.
12000
12001 * configure.tgt: Add back sparc-*-vxworks*.
12002 * remote-vxsparc.c: Remove all includes except for "defs.h",
12003 "regcache.h", "vx-share/ptrace.h" and "vx-share/regPacket.h".
12004 Include "sparc-tdep.h".
12005 (SPARC_R_G1): New define.
12006 (vxsparc_gregset): New variable.
12007 (ext_format_sparc): Remove extern declaration.
12008 (vx_read_register): Rewrite to use sparc32_supply_gregset and
12009 sparc32_supply_fpregset.
12010 (vx_write_register): Rewrite to use sparc32_collect_gregset,
12011 sparc_collect_rwindow and sparc32_collect_fpregset.
12012 * config/sparc/tm-vxworks.h: New file, based on recently removed
12013 tm-vxsparc.h.
12014 * config/sparc/vxworks.mt: New file, based on recently removed
12015 vxworks.mt.
12016
12017 2004-01-03 J. Brobecker <brobecker@gnat.com>
12018
12019 * infrun.c (handle_step_into_function): New function.
12020 (handle_inferior_event): Extract out some code into the new
12021 function above.
12022
12023 2004-01-02 Mark Kettenis <kettenis@gnu.org>
12024
12025 * Makefile.in (ALLDEPFILES): Remove sparc-linux-nat.c and
12026 sparcl-tdep.c. Add sparc-linux-tdep.c, sparc-sol2-nat.c,
12027 sparc-sol2-tdep.c, sparc-sol2-nat.c, sparc-sol2-tdep.c,
12028 sparc64-linux-nat.c, sparc64-linux-tdep.c, sparc64-nat.c,
12029 sparc64-sol2-tdep.c, sparc64-tdep.c, sparc64fbsd-nat.c,
12030 sparc64fbsd-tdep.c, sparcnbsd-nat.c, sparcnbsd-tdep.c.
12031 (sparc_nat_h): New variable.
12032 (sparcbsd_nat_h, sparcnbsd_tdep_h): Remove variables.
12033 (tm-sun4os4.h): Remove dependency.
12034 (sparcbsd-nat.o, sparc-linux-nat.o): Remove dependencies.
12035 (sparc64fbsd-nat.o, sparc64fbsd-tdep.o, sparc64nbsd-nat.o,
12036 sparc64-tdep.o, sparc-nat.o, sparcnbsd-nat.o, sparcnbsd-tdep.o,
12037 sparc-tdep.o): Update dependencies.
12038 (sparc-linux-tdep.o, sparc-sol2-nat.o, sparc-sol2-tdep.o,
12039 sparc64-linux-nat.o, sparc64-linux-tdep.o, sparc64-nat.o,
12040 sparc64-sol2-tdep.o, sparc64-tdep.o, sparc64nbsd-tdep.o): New
12041 dependencies.
12042 * configure.host: Remove existing sparc-*-lynxos*,
12043 sparc-*-solaris*, sparc-*-sunos4*, sparc-*-sunos5*, sparc-*-*,
12044 ultrasparc-*-freebsd, sparcv9-*-freebsd, sparc64-*-linux*,
12045 sparcv9-*-* and sparc64-*-* triplets. Add new sparc64-*-linux*,
12046 sparc-*-solaris2*, sparcv9-*-solaris2* and sparc64-*-solaris2*
12047 triplets.
12048 * configure.tgt: Remove exitsing sparc-*-aout*, sparc-*-coff*,
12049 sparc-*-elf*, sparc*-lynxos*, sparc-*-solars2*, sparc-*-sunos4*,
12050 sparc-*-sunos5*, sparc-*-vxworks*, sparc64-*linux*, sparc64-*-*,
12051 sparcv9-*-* and commented out sparc64-*-solars2* triplets. Add
12052 new sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*,
12053 sparc64-*-linux, sparc-*-solaris2*, sparcv9-*-solaris*,
12054 sparc64-*-solaris2* and sparc64-*-* triplets.
12055 * sparc64-tdep.c: Update copyright year. Include "inferior.h",
12056 "symtab.h" and "objfiles.h".
12057 (BIAS): Remove define.
12058 (X_OP, X_RD, X_A, X_COND, X_OP2, X_IMM22, X_OP3, X_I, X_DISP22)
12059 (X_DISP19): Remove macros.
12060 (sparc_fetch_instruction): Remove function.
12061 (struct gdbarch_tdep): Remove definition.
12062 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use ARRAY_SIZE.
12063 (sparc_breakpoint_from_pc): Remove function.
12064 (struct sparc64_frame_cache): Remove definition.
12065 (sparc64_alloc_frame_cache, sparc64_analyze_prologue,
12066 sparc64_unwind_pc): Remove functions.
12067 (sparc64_skip_prologue): Use `struct sparc_frame_cache' instead of
12068 `struct sparc64_frame_cache. Call sparc_analyze_prologue instead
12069 of sparc64_analyze_prologue. Mark constant as ULL instead of UL.
12070 (sparc64_frame_cache): Change return type to `struct
12071 sparc_frame_cache *'. Simply call sparc_frame_cache.
12072 (sparc64_frame_this_id, sparc64_frame_prev_register,
12073 sparc64_frame_base_address): Use `struct sparc_frame_cache'
12074 instead of `struct sparc64_frame_cache.
12075 (sparc_unwind_dummy_id, sparc_extract_struct_value_address,
12076 sparc_analyze_control_transfer, sparc_software_single_step,
12077 sparc64_gdbarch_init, sparc_supply_rwindow, sparc_fill_rwindow,
12078 _initialize_sparc64_tdep): Remove functions.
12079 (TSTATE_CWP, TSTATE_ICC, TSTATE_XCC): New macros.
12080 (PSR_S, PSR_ICC, PSR_VERS, PSR_IMPL, PSR_V8PLUS, PSR_XCC): New
12081 macros.
12082 (sparc64_supply_gregset, sparc64_collect_gregset,
12083 sparc64_supply_fpregset, sparc64_collect_fpregset): New functions.
12084 (sparc64_init_abi): New function.
12085 * sparc64-tdep.h: Update copyright year. Fix typo in multiple
12086 inclusion guard. Include "sparc-tdep.h".
12087 (BIAS): Define.
12088 (r_tstate_offset, r_fprs_offset): New defines.
12089 (enum sparc_regnum): Remove defenition.
12090 (enum sparc64_regnum): Reformat.
12091 (sparc_supply_rwindow, sparc_fill_rwindow): Remove prototypes.
12092 (sparc64_init_abi, sparc64_supply_gregset,
12093 sparc64_collect_gregset, sparc64_supply_fpregset,
12094 sparc64_collect_fpregset): New prototypes.
12095 (sparc64_sol2_gregset, sparc64nbsd_gregset, sparc64fbsd_gregset):
12096 Add extern declarations.
12097 (sparc64_sol2_init_abi): New prototype.
12098 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
12099 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
12100 prototypes.
12101 * sparc64fbsd-nat.c: Include "sparc-nat.h", don't include
12102 "sparnbsd-nat.h".
12103 (sparc64fbsd_reg_supplies_p, sparc64fbsd_fpreg_supplies_p): Remove
12104 functions.
12105 (_initialize_sparc64fbsd_nat): Remove initialization of
12106 sparcbsd_supply_reg, sparcbsd_fill_reg, sparcbsd_supply_fpreg,
12107 sparcbsd_fill_fpreg, sparcbsd_reg_supplies_p,
12108 sparcbsd_fpreg_supplies_p. Initialize sparc_gregset.
12109 * sparc64fbsd-tdep.c: Update copyright year. Include "frame.h",
12110 "frame-unwind.h", "trad-frame.h" and "gdb_assert.h".
12111 (sparc64fbsd_r_global_offset, sparc64fbsd_r_out_offset)
12112 (sparc64fbsd_r_fprs_offset, sparc64fbsd_r_tnpc_offset)
12113 (sparc64fbsd_r_tpc_offset, sparc64fbsd_r_tstate_offset)
12114 (sparc64fbsd_r_y_offset): Remove variables.
12115 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
12116 Make static and const.
12117 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
12118 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
12119 functions.
12120 (sparc64fbsd_gregset): New variable.
12121 (fetch_core_registers): Replace calls to sparc64fbsd_supply_reg
12122 and sparc64fbsd_supply_fpreg with calls to sparc64_supply_gregset
12123 and sparc64_supply_fpregset.
12124 (sparc64fbsd_pc_in_sigtramp, sparc64fbsd_sigtramp_frame_cache)
12125 (sparc64fbsd_sigtramp_frame_this_id)
12126 (sparc64fbsd_sigtramp_frame_prev_register): New functions.
12127 (sparc64fbsd_sigtramp_frame_unwind): New variable.
12128 (sparc64fbsd_sigtramp_frame_sniffer): New function.
12129 (sparc64fbsd_init_abi): Set pc_in_sigtramp, append
12130 sparc64fbsd_sigtramp_frame_sniffer. Call sparc64_init_abi.
12131 * sparcnbsd-tdep.c: Update copyright year. Include
12132 "floatformat.h", "frame.h", "frame-unwind.h", "symtab.h",
12133 "trad-frame.h" and "gdb_assert.h", don't include "target.h",
12134 "value.h" and "sparcnbsd-tdep.h".
12135 (REG32_OFFSET_PSR, REG32_OFFSET_PC, REG32_OFFSET_NPC)
12136 (REG32_OFFSET_Y, REG32_OFFSET_GLOBAL, REG32_OFFSET_OUT)
12137 (REG64_OFFSET_TSTATE, REG64_OFFSET_PC, REG64_OFFSET_NPC)
12138 (REG64_OFFSET_Y, REG64_OFFSET_GLOBAL, REG64_OFFSET_OUT): Remove
12139 defines.
12140 (sparcnbsd_gregset): New variable.
12141 (sparcnbsd_supply_reg32, sparcnbsd_supply_reg64)
12142 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64)
12143 (sparcnbsd_supply_fpreg32, sparcnbsd_supply_fpreg64)
12144 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64): Remove functions.
12145 (sparc32nbsd_sigtramp_start, sparc32nbsd_sigtramp_end): New
12146 variables.
12147 (sparc32nbsd_pc_in_sigtramp, sparc32nbsd_sigcontext_frame_cache)
12148 (sparc32nbsd_sigcontext_frame_this_id)
12149 (sparc32nbsd_sigcontext_frame_prev_register): New functions.
12150 (sparc32nbsd_sigcontext_frame_unwind): New variable.
12151 (sparc32nbsd_sigtramp_frame_sniffer): New function.
12152 (sparcnbsd_get_longjmp_target_32,
12153 sparcnbsd_get_longjmp_target_64): Remove functions.
12154 (sparcnbsd_aout_in_solib_call_trampoline): Rewrite.
12155 (sparcnbsd_init_abi_common, sparcnbsd_init_aout,
12156 sparcnbsd_init_elf): Remove.
12157 (sparcnbsd_init_abi, sparcnbsd_aout_init_abi)
12158 (sparcnbsd_elf_init_abi): New functions.
12159 (_initialize_sparcnbsd_tdep): New prototype.
12160 (_initialize_sparnbsd_tdep): Update.
12161 * config/sparc/fbsd.mh (NATDEPFILES): Remove sparcbsd-nat.o and
12162 corelow.o. Add sparc64-nat.o and sparc-nat.o.
12163 * config/sparc/fbsd.mt (TDEPFILES): Add sparc-tdep.o and corelow.o.
12164 * config/sparc/linux.mh: Update comment.
12165 (XM_FILE, HOST_IPC): Remove variables.
12166 (NATDEPFILES): Add sparc-sol2-nat.o and core-regset.o. Remove
12167 sparc-linux-nat.o.
12168 * config/sparc/linux.mt: Update comment.
12169 (TDEPFILES): Add sparc-sol2-tdep.o and sparc-linux-tdep.o.
12170 * config/sparc/nbsd.mt: Reformat.
12171 * config/sparc/nbsd64.mh: Update comment.
12172 (NATDEPFILES): Add sparc-nat.o.
12173 * config/sparc/nbsd64.mt: Update comment.
12174 (TDEPFILES): Add sparc64-tdep.o and sparc64nbsd-tdep.o.
12175 (TM_FILE): Set to tm-nbsd.h.
12176 * config/sparc/nbsdelf.mh: Update comment.
12177 (NATDEPFILES): Add sparc-nat.o.
12178 (XM_FILE): Delete.
12179 * config/sparc/nbsdaout.mh: Update comment.
12180 (NATDEPFILES): Add sparc-nat.o
12181 (XM_FILE): Delete.
12182 * config/sparc/nm-linux.h: Update copyright year. Don't include
12183 "config/nm-svr4.h" and "solib.h". Add protection against multiple
12184 inclusion.
12185 (KERNEL_U_SIZE): Remove define.
12186 (kernel_u_size): Remove prototype.
12187 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define.
12188 * config/sparc/nm-nbsd.h: Update copyright. Don't include
12189 "regcache.h".
12190 (CHILD_PREPARE_TO_STORE): Remove define.
12191 * config/sparc/nm-nbsdaout.h: Tweak some comments.
12192 * sparc-nat.c, sparc-tdep.c, sparc-tdep.h, sparc64nbsd-nat.c,
12193 sparcnbsd-nat.c: Rewrite files.
12194 * config/sparc/tm-linux.h, config/sparc/tm-nbsd.h: Rewrite files.
12195 * sparc-linux-nat.c, sparcbsd-nat.c, sparcbsd-nat.h,
12196 sparcnbsd-tdep.h: Remove files.
12197 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4os4.h,
12198 config/sparc/nm-sun4sol2.h, config/sparc/sp64.mt,
12199 config/sparc/sp64linux.mt, config/sparc/sp64sol2.mt,
12200 config/sparc/sparc-em.mt, config/sparc/sparclynx.mh,
12201 config/sparc/sparclynx.mt, config/sparc/sun4os4.mh,
12202 config/sparc/sun4os4.mt, config/sparc/sun4sol2.mh,
12203 config/sparc/sun4sol2.mt, config/sparc/tm-sp64.h,
12204 config/sparc/tm-sp64linux.h, config/sparc/tm-sparc.h,
12205 config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
12206 config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
12207 config/sparc/tm-vxsparc.h, config/sparc/vxsparc.mt,
12208 config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h: Remove files.
12209 * sparc-linux-tdep.c, sparc-nat.h, sparc-sol2-nat.c,
12210 sparc-sol2-tdep.c, sparc64-linux-nat.c, sparc64-linux-t dep.c,
12211 sparc64-nat.c, sparc64-sol2-tdep.c, sparc64nbsd-tdep.c: New files.
12212 * config/sparc/linux64.mh, config/sparc/linux64.mt,
12213 config/sparc/nm-sol2.h, config/sparc/sol2-64.mt,
12214 config/sparc/sol2.mh, config/sparc/sol2.mt, config/sparc/sparc.mt,
12215 config/sparc/sparc64.mt, config/sparc/tm-sol2.h: New files.
12216
12217 2004-01-02 Andrew Cagney <cagney@redhat.com>
12218
12219 From 2003-12-18 Kazuhiro Inaoka:
12220 * configure.host: Add m32r-linux target.
12221
12222 2004-01-02 Michael Chastain <mec.gnu@mindspring.com>
12223
12224 * top.c (print_gdb_version): Update year to 2004.
12225
12226 2004-01-02 Mark Mitchell <mark@codesourcery.com>
12227
12228 * MAINTAINERS: Add myself to the write-after-approval category.
12229
12230 2004-01-02 Daniel Jacobowitz <drow@mvista.com>
12231
12232 From Bernardo Innocenti <bernie@develer.com>:
12233 * configure.tgt: Add uClinux target.
12234
12235 2004-01-02 Andrew Cagney <cagney@redhat.com>
12236
12237 * utils.c (do_my_cleanups): Make static, add forward declaration.
12238 * defs.h (do_my_cleanups): Delete declaration.
12239
12240 2004-01-02 Eli Zaretskii <eliz@elta.co.il>
12241
12242 * config/djgpp/fnchange.lst: Add lines for gdb/ChangeLog-2003 and
12243 bfd/ChangeLog-0203.
12244
12245 2004-01-02 Mark Kettenis <kettenis@gnu.org>
12246
12247 * configure.in: Check for <machine/reg.h>. Check for `struct reg'
12248 in <machine/reg.h>.
12249 * configure, config.in: Regenerate.
12250
12251 For older changes see ChangeLog-2003, mi/ChangeLog-1999-2003, and
12252 tui/ChangeLog-1998-2003.
12253 \f
12254 Local Variables:
12255 mode: change-log
12256 left-margin: 8
12257 fill-column: 74
12258 version-control: never
12259 End:
This page took 0.283414 seconds and 4 git commands to generate.